@expandorg/components
Advanced tools
Comparing version 0.2.48 to 0.2.49
{ | ||
"name": "@expandorg/components", | ||
"version": "0.2.48", | ||
"version": "0.2.49", | ||
"description": "expand UI components library", | ||
@@ -35,3 +35,3 @@ "main": "index.js", | ||
}, | ||
"gitHead": "f6025645bd7444bd1c5f0905af0703671bc3c869" | ||
"gitHead": "3a201053aecf461dba9254fffa89ad89d831c3dd" | ||
} |
@@ -10,4 +10,10 @@ import React, { Component } from 'react'; | ||
static propTypes = { | ||
tooltipPosition: PropTypes.oneOf(['left', 'right', 'center']), | ||
tooltipOrientation: PropTypes.oneOf(['top', 'bottom', 'left', 'right']), | ||
tooltipPosition: PropTypes.oneOf([ | ||
'top', | ||
'bottom', | ||
'left', | ||
'right', | ||
'center', | ||
]), | ||
tooltipOrientation: PropTypes.oneOf(['top', 'bottom', 'right']), | ||
tooltip: PropTypes.oneOfType([PropTypes.string, PropTypes.node]), | ||
@@ -45,6 +51,3 @@ }; | ||
`gem-tooltip-orientation-${tooltipOrientation}`, | ||
{ | ||
[`gem-tooltip-position-${tooltipPosition}`]: | ||
tooltipOrientation !== 'left' && tooltipOrientation !== 'right', | ||
} | ||
`gem-tooltip-position-${tooltipPosition}` | ||
); | ||
@@ -51,0 +54,0 @@ |
Sorry, the diff of this file is not supported yet
181603
172
3256