@dhis2-ui/button 7.7.7 → 7.8.0
Sign up to get free protection for your applications and to get access to all the features.
@@ -31,17 +31,17 @@ const ButtonStrip = ({
|
|
31
31
|
dataTest
|
32
32
|
}) => /*#__PURE__*/_react.default.createElement("div", {
|
33
33
|
"data-test": dataTest,
|
34
|
-
className: _style.default.dynamic([["
|
34
|
+
className: _style.default.dynamic([["1268901109", [_uiConstants.spacers.dp8]]]) + " " + ((0, _classnames.default)(className, {
|
35
35
|
start: !middle && !end,
|
36
36
|
middle,
|
37
37
|
end
|
38
38
|
}) || "")
|
39
39
|
}, _react.Children.map(children, child => /*#__PURE__*/_react.default.createElement("div", {
|
40
|
-
className: _style.default.dynamic([["
|
40
|
+
className: _style.default.dynamic([["1268901109", [_uiConstants.spacers.dp8]]]) + " " + "box"
|
41
41
|
}, child)), /*#__PURE__*/_react.default.createElement(_style.default, {
|
42
|
-
id: "
|
43
|
-
dynamic: [_uiConstants.spacers.
|
44
|
-
}, ["div.__jsx-style-dynamic-selector{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;}", "div.middle.__jsx-style-dynamic-selector{-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;}", "div.end.__jsx-style-dynamic-selector{-webkit-box-pack:end;-webkit-justify-content:flex-end;-ms-flex-pack:end;justify-content:flex-end;}", `.box.__jsx-style-dynamic-selector{margin-left:${_uiConstants.spacers.
|
42
|
+
id: "1268901109",
|
43
|
+
dynamic: [_uiConstants.spacers.dp8]
|
44
|
+
}, ["div.__jsx-style-dynamic-selector{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;}", "div.middle.__jsx-style-dynamic-selector{-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;}", "div.end.__jsx-style-dynamic-selector{-webkit-box-pack:end;-webkit-justify-content:flex-end;-ms-flex-pack:end;justify-content:flex-end;}", `.box.__jsx-style-dynamic-selector{margin-left:${_uiConstants.spacers.dp8};}`, ".box.__jsx-style-dynamic-selector:first-child{margin-left:0;}"]));
|
45
45
|
|
46
46
|
exports.ButtonStrip = ButtonStrip;
|
47
47
|
const alignmentPropType = (0, _propTypes.mutuallyExclusive)(['middle', 'end'], _propTypes2.default.bool);
|
@@ -13,17 +13,17 @@ const ButtonStrip = ({
|
|
13
13
|
dataTest
|
14
14
|
}) => /*#__PURE__*/React.createElement("div", {
|
15
15
|
"data-test": dataTest,
|
16
|
-
className: _JSXStyle.dynamic([["
|
16
|
+
className: _JSXStyle.dynamic([["1268901109", [spacers.dp8]]]) + " " + (cx(className, {
|
17
17
|
start: !middle && !end,
|
18
18
|
middle,
|
19
19
|
end
|
20
20
|
}) || "")
|
21
21
|
}, Children.map(children, child => /*#__PURE__*/React.createElement("div", {
|
22
|
-
className: _JSXStyle.dynamic([["
|
22
|
+
className: _JSXStyle.dynamic([["1268901109", [spacers.dp8]]]) + " " + "box"
|
23
23
|
}, child)), /*#__PURE__*/React.createElement(_JSXStyle, {
|
24
|
-
id: "
|
25
|
-
dynamic: [spacers.
|
26
|
-
}, ["div.__jsx-style-dynamic-selector{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;}", "div.middle.__jsx-style-dynamic-selector{-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;}", "div.end.__jsx-style-dynamic-selector{-webkit-box-pack:end;-webkit-justify-content:flex-end;-ms-flex-pack:end;justify-content:flex-end;}", `.box.__jsx-style-dynamic-selector{margin-left:${spacers.
|
24
|
+
id: "1268901109",
|
25
|
+
dynamic: [spacers.dp8]
|
26
|
+
}, ["div.__jsx-style-dynamic-selector{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;}", "div.middle.__jsx-style-dynamic-selector{-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;}", "div.end.__jsx-style-dynamic-selector{-webkit-box-pack:end;-webkit-justify-content:flex-end;-ms-flex-pack:end;justify-content:flex-end;}", `.box.__jsx-style-dynamic-selector{margin-left:${spacers.dp8};}`, ".box.__jsx-style-dynamic-selector:first-child{margin-left:0;}"]));
|
27
27
|
|
28
28
|
const alignmentPropType = mutuallyExclusive(['middle', 'end'], PropTypes.bool);
|
29
29
|
ButtonStrip.defaultProps = {
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@dhis2-ui/button",
|
3
|
-
"version": "7.
|
3
|
+
"version": "7.8.0",
|
4
4
|
"description": "UI Button",
|
5
5
|
"repository": {
|
6
6
|
"type": "git",
|
@@ -32,11 +32,11 @@
|
|
32
32
|
},
|
33
33
|
"dependencies": {
|
34
34
|
"@dhis2/prop-types": "^3.0.0-beta.1",
|
35
|
-
"@dhis2-ui/layer": "7.
|
36
|
-
"@dhis2-ui/loader": "7.
|
37
|
-
"@dhis2-ui/popper": "7.
|
38
|
-
"@dhis2/ui-constants": "7.
|
39
|
-
"@dhis2/ui-icons": "7.
|
35
|
+
"@dhis2-ui/layer": "7.8.0",
|
36
|
+
"@dhis2-ui/loader": "7.8.0",
|
37
|
+
"@dhis2-ui/popper": "7.8.0",
|
38
|
+
"@dhis2/ui-constants": "7.8.0",
|
39
|
+
"@dhis2/ui-icons": "7.8.0",
|
40
40
|
"classnames": "^2.3.1",
|
41
41
|
"prop-types": "^15.7.2"
|
42
42
|
},
|