Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@dhis2-ui/button

Package Overview
Dependencies
Maintainers
2
Versions
314
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dhis2-ui/button - npm Package Compare versions

Comparing version 9.12.0-alpha.4 to 9.12.0

5

build/cjs/button-strip/button-strip.js

@@ -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,

8

build/cjs/button/button.js

@@ -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"

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc