@dhis2-ui/chip 9.12.0-alpha.3 → 9.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/chip.js +3 -8
- package/build/es/chip.js +3 -8
- package/package.json +2 -2
package/build/cjs/chip.js
CHANGED
|
@@ -27,11 +27,11 @@ const Chip = _ref => {
|
|
|
27
27
|
onRemove,
|
|
28
28
|
onClick,
|
|
29
29
|
icon,
|
|
30
|
-
dataTest,
|
|
31
|
-
marginBottom,
|
|
30
|
+
dataTest = 'dhis2-uicore-chip',
|
|
31
|
+
marginBottom = 4,
|
|
32
32
|
marginLeft,
|
|
33
33
|
marginRight,
|
|
34
|
-
marginTop,
|
|
34
|
+
marginTop = 4,
|
|
35
35
|
marginInlineStart,
|
|
36
36
|
marginInlineEnd
|
|
37
37
|
} = _ref;
|
|
@@ -65,11 +65,6 @@ const Chip = _ref => {
|
|
|
65
65
|
}, [`span.__jsx-style-dynamic-selector{${marginBottom && `margin-bottom: ${marginBottom}px;`} margin-inline-start:${(_ref4 = marginInlineStart !== null && marginInlineStart !== void 0 ? marginInlineStart : marginLeft) !== null && _ref4 !== void 0 ? _ref4 : DEFAULT_INLINE_MARGIN}px;margin-inline-end:${(_ref5 = marginInlineEnd !== null && marginInlineEnd !== void 0 ? marginInlineEnd : marginRight) !== null && _ref5 !== void 0 ? _ref5 : DEFAULT_INLINE_MARGIN}px;${marginTop && `margin-top: ${marginTop}px`};}`]));
|
|
66
66
|
};
|
|
67
67
|
exports.Chip = Chip;
|
|
68
|
-
Chip.defaultProps = {
|
|
69
|
-
dataTest: 'dhis2-uicore-chip',
|
|
70
|
-
marginBottom: 4,
|
|
71
|
-
marginTop: 4
|
|
72
|
-
};
|
|
73
68
|
Chip.propTypes = {
|
|
74
69
|
children: _propTypes.default.any,
|
|
75
70
|
className: _propTypes.default.string,
|
package/build/es/chip.js
CHANGED
|
@@ -20,11 +20,11 @@ const Chip = _ref => {
|
|
|
20
20
|
onRemove,
|
|
21
21
|
onClick,
|
|
22
22
|
icon,
|
|
23
|
-
dataTest,
|
|
24
|
-
marginBottom,
|
|
23
|
+
dataTest = 'dhis2-uicore-chip',
|
|
24
|
+
marginBottom = 4,
|
|
25
25
|
marginLeft,
|
|
26
26
|
marginRight,
|
|
27
|
-
marginTop,
|
|
27
|
+
marginTop = 4,
|
|
28
28
|
marginInlineStart,
|
|
29
29
|
marginInlineEnd
|
|
30
30
|
} = _ref;
|
|
@@ -57,11 +57,6 @@ const Chip = _ref => {
|
|
|
57
57
|
dynamic: [marginBottom && `margin-bottom: ${marginBottom}px;`, (_ref2 = marginInlineStart !== null && marginInlineStart !== void 0 ? marginInlineStart : marginLeft) !== null && _ref2 !== void 0 ? _ref2 : DEFAULT_INLINE_MARGIN, (_ref3 = marginInlineEnd !== null && marginInlineEnd !== void 0 ? marginInlineEnd : marginRight) !== null && _ref3 !== void 0 ? _ref3 : DEFAULT_INLINE_MARGIN, marginTop && `margin-top: ${marginTop}px`]
|
|
58
58
|
}, [`span.__jsx-style-dynamic-selector{${marginBottom && `margin-bottom: ${marginBottom}px;`} margin-inline-start:${(_ref4 = marginInlineStart !== null && marginInlineStart !== void 0 ? marginInlineStart : marginLeft) !== null && _ref4 !== void 0 ? _ref4 : DEFAULT_INLINE_MARGIN}px;margin-inline-end:${(_ref5 = marginInlineEnd !== null && marginInlineEnd !== void 0 ? marginInlineEnd : marginRight) !== null && _ref5 !== void 0 ? _ref5 : DEFAULT_INLINE_MARGIN}px;${marginTop && `margin-top: ${marginTop}px`};}`]));
|
|
59
59
|
};
|
|
60
|
-
Chip.defaultProps = {
|
|
61
|
-
dataTest: 'dhis2-uicore-chip',
|
|
62
|
-
marginBottom: 4,
|
|
63
|
-
marginTop: 4
|
|
64
|
-
};
|
|
65
60
|
Chip.propTypes = {
|
|
66
61
|
children: PropTypes.any,
|
|
67
62
|
className: PropTypes.string,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dhis2-ui/chip",
|
|
3
|
-
"version": "9.12.0
|
|
3
|
+
"version": "9.12.0",
|
|
4
4
|
"description": "UI Chip",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@dhis2/prop-types": "^3.1.2",
|
|
36
|
-
"@dhis2/ui-constants": "9.12.0
|
|
36
|
+
"@dhis2/ui-constants": "9.12.0",
|
|
37
37
|
"classnames": "^2.3.1",
|
|
38
38
|
"prop-types": "^15.7.2"
|
|
39
39
|
},
|