@expandorg/components
Advanced tools
Comparing version 0.2.14 to 0.2.15
{ | ||
"name": "@expandorg/components", | ||
"version": "0.2.14", | ||
"version": "0.2.15", | ||
"description": "expand UI components library", | ||
@@ -35,3 +35,3 @@ "main": "index.js", | ||
}, | ||
"gitHead": "123793c33978a85943c458bd476274a83ccf702d" | ||
"gitHead": "578f710456342a22f56b30d336cc8c5e8010bea8" | ||
} |
@@ -7,3 +7,3 @@ import React, { Component } from 'react'; | ||
class Sidebar extends Component { | ||
export class Sidebar extends Component { | ||
render() { | ||
@@ -10,0 +10,0 @@ const { children } = this.props; |
@@ -42,3 +42,2 @@ import React, { Component, createRef } from 'react'; | ||
this.containerRef = createRef(); | ||
this.state = { | ||
@@ -45,0 +44,0 @@ focus: false, |
@@ -12,2 +12,3 @@ import React, { Component, forwardRef } from 'react'; | ||
theme: PropTypes.string, | ||
size: PropTypes.oneOf(['medium', 'small']), | ||
forwardedRef: PropTypes.object, // eslint-disable-line | ||
@@ -20,2 +21,3 @@ }; | ||
type: 'button', | ||
size: 'medium', | ||
theme: null, | ||
@@ -30,2 +32,3 @@ }; | ||
theme, | ||
size, | ||
forwardedRef, | ||
@@ -35,3 +38,8 @@ ...rest | ||
const classes = cn('gem-button', `gem-button-${theme}`, className); | ||
const classes = cn( | ||
'gem-button', | ||
`gem-button-${theme}`, | ||
`gem-button-${size}`, | ||
className | ||
); | ||
@@ -38,0 +46,0 @@ return ( |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
118934
125
2443