@the-control-group/ui
Advanced tools
Comparing version 1.7.21 to 1.7.22
@@ -90,4 +90,2 @@ /** | ||
}); | ||
this.accordionContent.current.parentNode.style.height = 'auto'; | ||
} | ||
@@ -152,3 +150,3 @@ } | ||
render() { | ||
const { title, header, children, className, headerClassName, notificationStyle, toggleTextShow, toggleTextHide, buttonStyleToggle } = this.props, | ||
const { title, header, children, className, headerClassName, notificationStyle, toggleTextShow, toggleTextHide, buttonStyleToggle, defaultExpanded } = this.props, | ||
{ showContent, toggle } = this.state, | ||
@@ -180,3 +178,3 @@ toggleText = toggle === 'show' ? toggleTextShow : toggleTextHide; | ||
<div className="ui-accordion-content-wrapper"> | ||
<div className={classNames('ui-accordion-content-wrapper', defaultExpanded && 'default-expanded')}> | ||
<div className="ui-accordion-content" ref={this.accordionContent}> | ||
@@ -183,0 +181,0 @@ {showContent && children} |
@@ -23,2 +23,3 @@ /** | ||
plain, | ||
pill, | ||
...other | ||
@@ -35,3 +36,4 @@ }) => { | ||
full && 'full', | ||
loading && 'loading' | ||
loading && 'loading', | ||
pill && 'pill' | ||
); | ||
@@ -75,5 +77,7 @@ | ||
/* No styles */ | ||
plain: PropTypes.bool | ||
plain: PropTypes.bool, | ||
/* Pill style (border radius) */ | ||
pill: PropTypes.bool | ||
}; | ||
export default Button; |
{ | ||
"name": "@the-control-group/ui", | ||
"version": "1.7.21", | ||
"version": "1.7.22", | ||
"description": "UI kit based on ReactJS for TCG projects", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
76426
1569