@dhis2-ui/button
Advanced tools
Comparing version 9.12.0-alpha.4 to 9.12.0
@@ -22,3 +22,3 @@ "use strict"; | ||
end, | ||
dataTest | ||
dataTest = 'dhis2-uicore-buttonstrip' | ||
} = _ref; | ||
@@ -41,5 +41,2 @@ return /*#__PURE__*/_react.default.createElement("div", { | ||
const alignmentPropType = (0, _propTypes.mutuallyExclusive)(['middle', 'end'], _propTypes2.default.bool); | ||
ButtonStrip.defaultProps = { | ||
dataTest: 'dhis2-uicore-buttonstrip' | ||
}; | ||
ButtonStrip.propTypes = { | ||
@@ -46,0 +43,0 @@ children: _propTypes2.default.node, |
@@ -22,3 +22,3 @@ "use strict"; | ||
className, | ||
dataTest, | ||
dataTest = 'dhis2-uicore-button', | ||
destructive, | ||
@@ -35,3 +35,3 @@ disabled, | ||
toggled, | ||
type, | ||
type = 'button', | ||
value, | ||
@@ -112,6 +112,2 @@ onBlur, | ||
exports.Button = Button; | ||
Button.defaultProps = { | ||
type: 'button', | ||
dataTest: 'dhis2-uicore-button' | ||
}; | ||
Button.propTypes = { | ||
@@ -118,0 +114,0 @@ /** Component to render inside the button */ |
@@ -128,3 +128,3 @@ "use strict"; | ||
initialFocus, | ||
dataTest | ||
dataTest = 'dhis2-uicore-dropdownbutton' | ||
} = this.props; | ||
@@ -168,5 +168,5 @@ const open = typeof this.props.open === 'boolean' ? this.props.open : this.state.open; | ||
exports.DropdownButton = DropdownButton; | ||
DropdownButton.defaultProps = { | ||
_defineProperty(DropdownButton, "defaultProps", { | ||
dataTest: 'dhis2-uicore-dropdownbutton' | ||
}; | ||
}); | ||
DropdownButton.propTypes = { | ||
@@ -173,0 +173,0 @@ /** Children to render inside the buton */ |
@@ -86,3 +86,3 @@ "use strict"; | ||
tabIndex, | ||
dataTest, | ||
dataTest = 'dhis2-uicore-splitbutton', | ||
initialFocus | ||
@@ -140,5 +140,5 @@ } = this.props; | ||
exports.SplitButton = SplitButton; | ||
SplitButton.defaultProps = { | ||
_defineProperty(SplitButton, "defaultProps", { | ||
dataTest: 'dhis2-uicore-splitbutton' | ||
}; | ||
}); | ||
SplitButton.propTypes = { | ||
@@ -145,0 +145,0 @@ children: _propTypes.default.string, |
@@ -13,3 +13,3 @@ import _JSXStyle from "styled-jsx/style"; | ||
end, | ||
dataTest | ||
dataTest = 'dhis2-uicore-buttonstrip' | ||
} = _ref; | ||
@@ -31,5 +31,2 @@ return /*#__PURE__*/React.createElement("div", { | ||
const alignmentPropType = mutuallyExclusive(['middle', 'end'], PropTypes.bool); | ||
ButtonStrip.defaultProps = { | ||
dataTest: 'dhis2-uicore-buttonstrip' | ||
}; | ||
ButtonStrip.propTypes = { | ||
@@ -36,0 +33,0 @@ children: PropTypes.node, |
@@ -13,3 +13,3 @@ import _JSXStyle from "styled-jsx/style"; | ||
className, | ||
dataTest, | ||
dataTest = 'dhis2-uicore-button', | ||
destructive, | ||
@@ -26,3 +26,3 @@ disabled, | ||
toggled, | ||
type, | ||
type = 'button', | ||
value, | ||
@@ -102,6 +102,2 @@ onBlur, | ||
}; | ||
Button.defaultProps = { | ||
type: 'button', | ||
dataTest: 'dhis2-uicore-button' | ||
}; | ||
Button.propTypes = { | ||
@@ -108,0 +104,0 @@ /** Component to render inside the button */ |
@@ -119,3 +119,3 @@ import _JSXStyle from "styled-jsx/style"; | ||
initialFocus, | ||
dataTest | ||
dataTest = 'dhis2-uicore-dropdownbutton' | ||
} = this.props; | ||
@@ -158,5 +158,5 @@ const open = typeof this.props.open === 'boolean' ? this.props.open : this.state.open; | ||
} | ||
DropdownButton.defaultProps = { | ||
_defineProperty(DropdownButton, "defaultProps", { | ||
dataTest: 'dhis2-uicore-dropdownbutton' | ||
}; | ||
}); | ||
DropdownButton.propTypes = { | ||
@@ -163,0 +163,0 @@ /** Children to render inside the buton */ |
@@ -77,3 +77,3 @@ import _JSXStyle from "styled-jsx/style"; | ||
tabIndex, | ||
dataTest, | ||
dataTest = 'dhis2-uicore-splitbutton', | ||
initialFocus | ||
@@ -130,5 +130,5 @@ } = this.props; | ||
} | ||
SplitButton.defaultProps = { | ||
_defineProperty(SplitButton, "defaultProps", { | ||
dataTest: 'dhis2-uicore-splitbutton' | ||
}; | ||
}); | ||
SplitButton.propTypes = { | ||
@@ -135,0 +135,0 @@ children: PropTypes.string, |
{ | ||
"name": "@dhis2-ui/button", | ||
"version": "9.12.0-alpha.4", | ||
"version": "9.12.0", | ||
"description": "UI Button", | ||
@@ -36,7 +36,7 @@ "repository": { | ||
"@dhis2/prop-types": "^3.1.2", | ||
"@dhis2-ui/layer": "9.12.0-alpha.4", | ||
"@dhis2-ui/loader": "9.12.0-alpha.4", | ||
"@dhis2-ui/popper": "9.12.0-alpha.4", | ||
"@dhis2/ui-constants": "9.12.0-alpha.4", | ||
"@dhis2/ui-icons": "9.12.0-alpha.4", | ||
"@dhis2-ui/layer": "9.12.0", | ||
"@dhis2-ui/loader": "9.12.0", | ||
"@dhis2-ui/popper": "9.12.0", | ||
"@dhis2/ui-constants": "9.12.0", | ||
"@dhis2/ui-icons": "9.12.0", | ||
"classnames": "^2.3.1", | ||
@@ -43,0 +43,0 @@ "prop-types": "^15.7.2" |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
1
187931
4133
+ Added@dhis2-ui/layer@9.12.0(transitive)
+ Added@dhis2-ui/loader@9.12.0(transitive)
+ Added@dhis2-ui/popper@9.12.0(transitive)
+ Added@dhis2-ui/portal@9.12.0(transitive)
+ Added@dhis2/ui-constants@9.12.0(transitive)
+ Added@dhis2/ui-icons@9.12.0(transitive)
+ Addedelectron-to-chromium@1.5.63(transitive)
- Removed@dhis2-ui/layer@9.12.0-alpha.4(transitive)
- Removed@dhis2-ui/loader@9.12.0-alpha.4(transitive)
- Removed@dhis2-ui/popper@9.12.0-alpha.4(transitive)
- Removed@dhis2-ui/portal@9.12.0-alpha.4(transitive)
- Removed@dhis2/ui-constants@9.12.0-alpha.4(transitive)
- Removed@dhis2/ui-icons@9.12.0-alpha.4(transitive)
- Removedelectron-to-chromium@1.5.64(transitive)
Updated@dhis2-ui/layer@9.12.0
Updated@dhis2-ui/loader@9.12.0
Updated@dhis2-ui/popper@9.12.0
Updated@dhis2/ui-constants@9.12.0
Updated@dhis2/ui-icons@9.12.0