@dhis2-ui/card 9.11.3 → 9.11.5
Sign up to get free protection for your applications and to get access to all the features.
- package/build/cjs/card.js +1 -4
- package/build/cjs/card.prod.stories.js +13 -3
- package/build/es/card.js +1 -4
- package/build/es/card.prod.stories.js +13 -3
- package/package.json +2 -2
package/build/cjs/card.js
CHANGED
@@ -14,7 +14,7 @@ const Card = _ref => {
|
|
14
14
|
let {
|
15
15
|
className,
|
16
16
|
children,
|
17
|
-
dataTest
|
17
|
+
dataTest = 'dhis2-uicore-card'
|
18
18
|
} = _ref;
|
19
19
|
return /*#__PURE__*/_react.default.createElement("div", {
|
20
20
|
"data-test": dataTest,
|
@@ -25,9 +25,6 @@ const Card = _ref => {
|
|
25
25
|
}, [`div.__jsx-style-dynamic-selector{display:inline-block;position:relative;width:100%;height:100%;border-radius:3px;background:${_uiConstants.colors.white};box-shadow:${_uiConstants.elevations.e100};}`]));
|
26
26
|
};
|
27
27
|
exports.Card = Card;
|
28
|
-
Card.defaultProps = {
|
29
|
-
dataTest: 'dhis2-uicore-card'
|
30
|
-
};
|
31
28
|
Card.propTypes = {
|
32
29
|
children: _propTypes.default.node,
|
33
30
|
className: _propTypes.default.string,
|
@@ -34,10 +34,20 @@ var _default = exports.default = {
|
|
34
34
|
component: description
|
35
35
|
}
|
36
36
|
}
|
37
|
+
},
|
38
|
+
argTypes: {
|
39
|
+
children: {
|
40
|
+
control: {
|
41
|
+
type: 'text'
|
42
|
+
}
|
43
|
+
}
|
37
44
|
}
|
38
45
|
};
|
39
46
|
const Default = args => /*#__PURE__*/_react.default.createElement(_box.Box, {
|
40
|
-
width: "
|
41
|
-
height: "
|
47
|
+
width: "200px",
|
48
|
+
height: "75px"
|
42
49
|
}, /*#__PURE__*/_react.default.createElement(_card.Card, args));
|
43
|
-
exports.Default = Default;
|
50
|
+
exports.Default = Default;
|
51
|
+
Default.args = {
|
52
|
+
children: 'Card content'
|
53
|
+
};
|
package/build/es/card.js
CHANGED
@@ -7,7 +7,7 @@ const Card = _ref => {
|
|
7
7
|
let {
|
8
8
|
className,
|
9
9
|
children,
|
10
|
-
dataTest
|
10
|
+
dataTest = 'dhis2-uicore-card'
|
11
11
|
} = _ref;
|
12
12
|
return /*#__PURE__*/React.createElement("div", {
|
13
13
|
"data-test": dataTest,
|
@@ -17,9 +17,6 @@ const Card = _ref => {
|
|
17
17
|
dynamic: [colors.white, elevations.e100]
|
18
18
|
}, [`div.__jsx-style-dynamic-selector{display:inline-block;position:relative;width:100%;height:100%;border-radius:3px;background:${colors.white};box-shadow:${elevations.e100};}`]));
|
19
19
|
};
|
20
|
-
Card.defaultProps = {
|
21
|
-
dataTest: 'dhis2-uicore-card'
|
22
|
-
};
|
23
20
|
Card.propTypes = {
|
24
21
|
children: PropTypes.node,
|
25
22
|
className: PropTypes.string,
|
@@ -27,9 +27,19 @@ export default {
|
|
27
27
|
component: description
|
28
28
|
}
|
29
29
|
}
|
30
|
+
},
|
31
|
+
argTypes: {
|
32
|
+
children: {
|
33
|
+
control: {
|
34
|
+
type: 'text'
|
35
|
+
}
|
36
|
+
}
|
30
37
|
}
|
31
38
|
};
|
32
39
|
export const Default = args => /*#__PURE__*/React.createElement(Box, {
|
33
|
-
width: "
|
34
|
-
height: "
|
35
|
-
}, /*#__PURE__*/React.createElement(Card, args));
|
40
|
+
width: "200px",
|
41
|
+
height: "75px"
|
42
|
+
}, /*#__PURE__*/React.createElement(Card, args));
|
43
|
+
Default.args = {
|
44
|
+
children: 'Card content'
|
45
|
+
};
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@dhis2-ui/card",
|
3
|
-
"version": "9.11.
|
3
|
+
"version": "9.11.5",
|
4
4
|
"description": "UI Card",
|
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.11.
|
36
|
+
"@dhis2/ui-constants": "9.11.5",
|
37
37
|
"classnames": "^2.3.1",
|
38
38
|
"prop-types": "^15.7.2"
|
39
39
|
},
|