@dhis2-ui/card 10.16.3-alpha.1 → 10.16.4
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/card.js +11 -14
- package/build/es/card.js +11 -14
- package/package.json +2 -2
package/build/cjs/card.js
CHANGED
|
@@ -10,20 +10,17 @@ var _classnames = _interopRequireDefault(require("classnames"));
|
|
|
10
10
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
11
|
var _react = _interopRequireDefault(require("react"));
|
|
12
12
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
13
|
-
const Card =
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
dynamic: [_uiConstants.colors.white, _uiConstants.elevations.e100]
|
|
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
|
-
};
|
|
13
|
+
const Card = ({
|
|
14
|
+
className,
|
|
15
|
+
children,
|
|
16
|
+
dataTest = 'dhis2-uicore-card'
|
|
17
|
+
}) => /*#__PURE__*/_react.default.createElement("div", {
|
|
18
|
+
"data-test": dataTest,
|
|
19
|
+
className: _style.default.dynamic([["3454125090", [_uiConstants.colors.white, _uiConstants.elevations.e100]]]) + " " + ((0, _classnames.default)(className) || "")
|
|
20
|
+
}, children, /*#__PURE__*/_react.default.createElement(_style.default, {
|
|
21
|
+
id: "3454125090",
|
|
22
|
+
dynamic: [_uiConstants.colors.white, _uiConstants.elevations.e100]
|
|
23
|
+
}, [`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};}`]));
|
|
27
24
|
exports.Card = Card;
|
|
28
25
|
Card.propTypes = {
|
|
29
26
|
children: _propTypes.default.node,
|
package/build/es/card.js
CHANGED
|
@@ -3,20 +3,17 @@ import { colors, elevations } from '@dhis2/ui-constants';
|
|
|
3
3
|
import cx from 'classnames';
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
5
|
import React from 'react';
|
|
6
|
-
const Card =
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
dynamic: [colors.white, elevations.e100]
|
|
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
|
-
};
|
|
6
|
+
const Card = ({
|
|
7
|
+
className,
|
|
8
|
+
children,
|
|
9
|
+
dataTest = 'dhis2-uicore-card'
|
|
10
|
+
}) => /*#__PURE__*/React.createElement("div", {
|
|
11
|
+
"data-test": dataTest,
|
|
12
|
+
className: _JSXStyle.dynamic([["3454125090", [colors.white, elevations.e100]]]) + " " + (cx(className) || "")
|
|
13
|
+
}, children, /*#__PURE__*/React.createElement(_JSXStyle, {
|
|
14
|
+
id: "3454125090",
|
|
15
|
+
dynamic: [colors.white, elevations.e100]
|
|
16
|
+
}, [`div.__jsx-style-dynamic-selector{display:inline-block;position:relative;width:100%;height:100%;border-radius:3px;background:${colors.white};box-shadow:${elevations.e100};}`]));
|
|
20
17
|
Card.propTypes = {
|
|
21
18
|
children: PropTypes.node,
|
|
22
19
|
className: PropTypes.string,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dhis2-ui/card",
|
|
3
|
-
"version": "10.16.
|
|
3
|
+
"version": "10.16.4",
|
|
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": "10.16.
|
|
36
|
+
"@dhis2/ui-constants": "10.16.4",
|
|
37
37
|
"classnames": "^2.3.1",
|
|
38
38
|
"prop-types": "^15.7.2"
|
|
39
39
|
},
|