@dhis2-ui/modal 8.1.8 → 8.1.9
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/modal/modal.js
CHANGED
|
@@ -55,7 +55,7 @@ const Modal = ({
|
|
|
55
55
|
role: "dialog",
|
|
56
56
|
"aria-modal": "true",
|
|
57
57
|
"data-test": dataTest,
|
|
58
|
-
className: _style.default.dynamic([["
|
|
58
|
+
className: _style.default.dynamic([["332269773", [2 * _uiConstants.spacersNum.dp64, 2 * _uiConstants.spacersNum.dp64]]]) + " " + ((0, _classnames.default)(className, {
|
|
59
59
|
small,
|
|
60
60
|
large,
|
|
61
61
|
fluid
|
|
@@ -63,11 +63,11 @@ const Modal = ({
|
|
|
63
63
|
}, /*#__PURE__*/_react.default.createElement(_card.Card, null, onClose && /*#__PURE__*/_react.default.createElement(_closeButton.CloseButton, {
|
|
64
64
|
onClick: onClose
|
|
65
65
|
}), /*#__PURE__*/_react.default.createElement("div", {
|
|
66
|
-
className: _style.default.dynamic([["
|
|
66
|
+
className: _style.default.dynamic([["332269773", [2 * _uiConstants.spacersNum.dp64, 2 * _uiConstants.spacersNum.dp64]]])
|
|
67
67
|
}, children))), layerStyles.styles), /*#__PURE__*/_react.default.createElement(_style.default, {
|
|
68
|
-
id: "
|
|
69
|
-
dynamic: [2 * _uiConstants.spacersNum.dp64, 2 * _uiConstants.spacersNum.dp64
|
|
70
|
-
}, [`
|
|
68
|
+
id: "332269773",
|
|
69
|
+
dynamic: [2 * _uiConstants.spacersNum.dp64, 2 * _uiConstants.spacersNum.dp64]
|
|
70
|
+
}, [`aside.__jsx-style-dynamic-selector{height:auto;width:600px;max-width:calc(100vw - ${2 * _uiConstants.spacersNum.dp64}px);max-height:calc(100vh - ${2 * _uiConstants.spacersNum.dp64}px);}`, "aside.small.__jsx-style-dynamic-selector{width:400px;}", "aside.large.__jsx-style-dynamic-selector{width:800px;}", "aside.fluid.__jsx-style-dynamic-selector{width:auto;}", "div.__jsx-style-dynamic-selector{padding:24px;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-flow:column;-ms-flex-flow:column;flex-flow:column;max-width:100%;max-height:100%;}"]));
|
|
71
71
|
};
|
|
72
72
|
|
|
73
73
|
exports.Modal = Modal;
|
package/build/es/modal/modal.js
CHANGED
|
@@ -38,7 +38,7 @@ export const Modal = ({
|
|
|
38
38
|
role: "dialog",
|
|
39
39
|
"aria-modal": "true",
|
|
40
40
|
"data-test": dataTest,
|
|
41
|
-
className: _JSXStyle.dynamic([["
|
|
41
|
+
className: _JSXStyle.dynamic([["332269773", [2 * spacersNum.dp64, 2 * spacersNum.dp64]]]) + " " + (cx(className, {
|
|
42
42
|
small,
|
|
43
43
|
large,
|
|
44
44
|
fluid
|
|
@@ -46,11 +46,11 @@ export const Modal = ({
|
|
|
46
46
|
}, /*#__PURE__*/React.createElement(Card, null, onClose && /*#__PURE__*/React.createElement(CloseButton, {
|
|
47
47
|
onClick: onClose
|
|
48
48
|
}), /*#__PURE__*/React.createElement("div", {
|
|
49
|
-
className: _JSXStyle.dynamic([["
|
|
49
|
+
className: _JSXStyle.dynamic([["332269773", [2 * spacersNum.dp64, 2 * spacersNum.dp64]]])
|
|
50
50
|
}, children))), layerStyles.styles), /*#__PURE__*/React.createElement(_JSXStyle, {
|
|
51
|
-
id: "
|
|
52
|
-
dynamic: [2 * spacersNum.dp64, 2 * spacersNum.dp64
|
|
53
|
-
}, [`
|
|
51
|
+
id: "332269773",
|
|
52
|
+
dynamic: [2 * spacersNum.dp64, 2 * spacersNum.dp64]
|
|
53
|
+
}, [`aside.__jsx-style-dynamic-selector{height:auto;width:600px;max-width:calc(100vw - ${2 * spacersNum.dp64}px);max-height:calc(100vh - ${2 * spacersNum.dp64}px);}`, "aside.small.__jsx-style-dynamic-selector{width:400px;}", "aside.large.__jsx-style-dynamic-selector{width:800px;}", "aside.fluid.__jsx-style-dynamic-selector{width:auto;}", "div.__jsx-style-dynamic-selector{padding:24px;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-flow:column;-ms-flex-flow:column;flex-flow:column;max-width:100%;max-height:100%;}"]));
|
|
54
54
|
};
|
|
55
55
|
Modal.defaultProps = {
|
|
56
56
|
dataTest: 'dhis2-uicore-modal',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dhis2-ui/modal",
|
|
3
|
-
"version": "8.1.
|
|
3
|
+
"version": "8.1.9",
|
|
4
4
|
"description": "UI Modal",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -32,12 +32,12 @@
|
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@dhis2/prop-types": "^3.0.0-beta.1",
|
|
35
|
-
"@dhis2-ui/card": "8.1.
|
|
36
|
-
"@dhis2-ui/center": "8.1.
|
|
37
|
-
"@dhis2-ui/layer": "8.1.
|
|
38
|
-
"@dhis2-ui/portal": "8.1.
|
|
39
|
-
"@dhis2/ui-constants": "8.1.
|
|
40
|
-
"@dhis2/ui-icons": "8.1.
|
|
35
|
+
"@dhis2-ui/card": "8.1.9",
|
|
36
|
+
"@dhis2-ui/center": "8.1.9",
|
|
37
|
+
"@dhis2-ui/layer": "8.1.9",
|
|
38
|
+
"@dhis2-ui/portal": "8.1.9",
|
|
39
|
+
"@dhis2/ui-constants": "8.1.9",
|
|
40
|
+
"@dhis2/ui-icons": "8.1.9",
|
|
41
41
|
"classnames": "^2.3.1",
|
|
42
42
|
"prop-types": "^15.7.2"
|
|
43
43
|
},
|