@dhis2-ui/tag 9.3.0 → 9.4.0-alpha.1
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/tag-icon.js +3 -3
- package/build/cjs/tag.stories.js +10 -1
- package/build/es/tag-icon.js +3 -3
- package/build/es/tag.stories.js +6 -0
- package/package.json +2 -2
package/build/cjs/tag-icon.js
CHANGED
|
@@ -20,10 +20,10 @@ const TagIcon = _ref => {
|
|
|
20
20
|
} = _ref;
|
|
21
21
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
22
22
|
"data-test": dataTest,
|
|
23
|
-
className: "jsx-
|
|
23
|
+
className: "jsx-1638813748"
|
|
24
24
|
}, children, /*#__PURE__*/_react.default.createElement(_style.default, {
|
|
25
|
-
id: "
|
|
26
|
-
}, [".jsx-
|
|
25
|
+
id: "1638813748"
|
|
26
|
+
}, [".jsx-1638813748{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;margin-inline-end:4px;max-height:16px;max-width:16px;}"]));
|
|
27
27
|
};
|
|
28
28
|
|
|
29
29
|
exports.TagIcon = TagIcon;
|
package/build/cjs/tag.stories.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.default = exports.WithLargeIcon = exports.WithIcon = exports.WithClippedTextAndMaxWidth = exports.WithClippedLongText = exports.Positive = exports.Neutral = exports.Negative = exports.Default = exports.Bold = void 0;
|
|
6
|
+
exports.default = exports.WithLargeIcon = exports.WithIcon = exports.WithClippedTextAndMaxWidth = exports.WithClippedLongText = exports.RTL = exports.Positive = exports.Neutral = exports.Negative = exports.Default = exports.Bold = void 0;
|
|
7
7
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
|
|
@@ -124,4 +124,13 @@ exports.WithClippedTextAndMaxWidth = WithClippedTextAndMaxWidth;
|
|
|
124
124
|
WithClippedTextAndMaxWidth.args = {
|
|
125
125
|
children: 'I am long text',
|
|
126
126
|
maxWidth: '50px'
|
|
127
|
+
};
|
|
128
|
+
|
|
129
|
+
const RTL = args => /*#__PURE__*/_react.default.createElement("div", {
|
|
130
|
+
dir: "rtl"
|
|
131
|
+
}, /*#__PURE__*/_react.default.createElement(Template, args));
|
|
132
|
+
|
|
133
|
+
exports.RTL = RTL;
|
|
134
|
+
RTL.args = {
|
|
135
|
+
icon: /*#__PURE__*/_react.default.createElement(ExampleIcon, null)
|
|
127
136
|
};
|
package/build/es/tag-icon.js
CHANGED
|
@@ -8,10 +8,10 @@ export const TagIcon = _ref => {
|
|
|
8
8
|
} = _ref;
|
|
9
9
|
return /*#__PURE__*/React.createElement("div", {
|
|
10
10
|
"data-test": dataTest,
|
|
11
|
-
className: "jsx-
|
|
11
|
+
className: "jsx-1638813748"
|
|
12
12
|
}, children, /*#__PURE__*/React.createElement(_JSXStyle, {
|
|
13
|
-
id: "
|
|
14
|
-
}, [".jsx-
|
|
13
|
+
id: "1638813748"
|
|
14
|
+
}, [".jsx-1638813748{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;margin-inline-end:4px;max-height:16px;max-width:16px;}"]));
|
|
15
15
|
};
|
|
16
16
|
TagIcon.propTypes = {
|
|
17
17
|
dataTest: PropTypes.string.isRequired,
|
package/build/es/tag.stories.js
CHANGED
|
@@ -103,4 +103,10 @@ export const WithClippedTextAndMaxWidth = Template.bind({});
|
|
|
103
103
|
WithClippedTextAndMaxWidth.args = {
|
|
104
104
|
children: 'I am long text',
|
|
105
105
|
maxWidth: '50px'
|
|
106
|
+
};
|
|
107
|
+
export const RTL = args => /*#__PURE__*/React.createElement("div", {
|
|
108
|
+
dir: "rtl"
|
|
109
|
+
}, /*#__PURE__*/React.createElement(Template, args));
|
|
110
|
+
RTL.args = {
|
|
111
|
+
icon: /*#__PURE__*/React.createElement(ExampleIcon, null)
|
|
106
112
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dhis2-ui/tag",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.4.0-alpha.1",
|
|
4
4
|
"description": "UI Tag",
|
|
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.
|
|
36
|
+
"@dhis2/ui-constants": "9.4.0-alpha.1",
|
|
37
37
|
"classnames": "^2.3.1",
|
|
38
38
|
"prop-types": "^15.7.2"
|
|
39
39
|
},
|