@dhis2-ui/alert 7.11.0 → 7.11.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.
@@ -9,7 +9,7 @@ var _uiConstants = require("@dhis2/ui-constants");
|
|
9
9
|
|
10
10
|
const ANIMATION_TIME = 350;
|
11
11
|
exports.ANIMATION_TIME = ANIMATION_TIME;
|
12
|
-
const _defaultExport = [`div.jsx-
|
13
|
-
_defaultExport.__hash = "
|
12
|
+
const _defaultExport = [`div.jsx-2593868549{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;border-radius:4px;box-shadow:${_uiConstants.elevations.e300};padding-top:${_uiConstants.spacers.dp8};padding-right:${_uiConstants.spacers.dp8};padding-bottom:${_uiConstants.spacers.dp8};padding-left:${_uiConstants.spacers.dp24};margin-bottom:${_uiConstants.spacers.dp16};max-width:600px;min-width:300px;font-size:14px;pointer-events:all;}`, `div.info.jsx-2593868549{background-color:${_uiConstants.colors.grey900};color:${_uiConstants.colors.white};}`, `div.success.jsx-2593868549{background-color:${_uiConstants.colors.green800};color:${_uiConstants.colors.white};}`, `div.warning.jsx-2593868549{background-color:${_uiConstants.colors.yellow300};color:${_uiConstants.colors.yellow900};}`, `div.critical.jsx-2593868549{background-color:${_uiConstants.colors.red800};color:${_uiConstants.colors.white};}`, "@-webkit-keyframes slidein-jsx-2593868549{from{-webkit-transform:translateY(1000px);-ms-transform:translateY(1000px);transform:translateY(1000px);}to{-webkit-transform:translateY(0);-ms-transform:translateY(0);transform:translateY(0);}}", "@keyframes slidein-jsx-2593868549{from{-webkit-transform:translateY(1000px);-ms-transform:translateY(1000px);transform:translateY(1000px);}to{-webkit-transform:translateY(0);-ms-transform:translateY(0);transform:translateY(0);}}", "@-webkit-keyframes slideout-jsx-2593868549{from{-webkit-transform:translateY(0);-ms-transform:translateY(0);transform:translateY(0);}to{-webkit-transform:translateY(1000px);-ms-transform:translateY(1000px);transform:translateY(1000px);}}", "@keyframes slideout-jsx-2593868549{from{-webkit-transform:translateY(0);-ms-transform:translateY(0);transform:translateY(0);}to{-webkit-transform:translateY(1000px);-ms-transform:translateY(1000px);transform:translateY(1000px);}}", `div.inViewport.jsx-2593868549{-webkit-animation-duration:${ANIMATION_TIME}ms;animation-duration:${ANIMATION_TIME}ms;-webkit-animation-name:slidein-jsx-2593868549;animation-name:slidein-jsx-2593868549;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;-webkit-animation-timing-function:cubic-bezier(0.4,0,0.6,1);animation-timing-function:cubic-bezier(0.4,0,0.6,1);}`, `div.jsx-2593868549{-webkit-animation-duration:${ANIMATION_TIME}ms;animation-duration:${ANIMATION_TIME}ms;-webkit-animation-name:slideout-jsx-2593868549;animation-name:slideout-jsx-2593868549;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;-webkit-animation-timing-function:cubic-bezier(0.4,0,0.6,1);animation-timing-function:cubic-bezier(0.4,0,0.6,1);}`];
|
13
|
+
_defaultExport.__hash = "2593868549";
|
14
14
|
var _default = _defaultExport;
|
15
15
|
exports.default = _default;
|
@@ -16,10 +16,10 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
16
16
|
const Message = ({
|
17
17
|
children
|
18
18
|
}) => /*#__PURE__*/_react.default.createElement("div", {
|
19
|
-
className: "jsx-
|
19
|
+
className: "jsx-2181391309"
|
20
20
|
}, children, /*#__PURE__*/_react.default.createElement(_style.default, {
|
21
|
-
id: "
|
22
|
-
}, ["div.jsx-
|
21
|
+
id: "2181391309"
|
22
|
+
}, ["div.jsx-2181391309{-webkit-box-flex:1;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1;}"]));
|
23
23
|
|
24
24
|
exports.Message = Message;
|
25
25
|
Message.propTypes = {
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { colors, spacers, elevations } from '@dhis2/ui-constants';
|
2
2
|
export const ANIMATION_TIME = 350;
|
3
|
-
const _defaultExport = [`div.jsx-
|
4
|
-
_defaultExport.__hash = "
|
3
|
+
const _defaultExport = [`div.jsx-2593868549{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;border-radius:4px;box-shadow:${elevations.e300};padding-top:${spacers.dp8};padding-right:${spacers.dp8};padding-bottom:${spacers.dp8};padding-left:${spacers.dp24};margin-bottom:${spacers.dp16};max-width:600px;min-width:300px;font-size:14px;pointer-events:all;}`, `div.info.jsx-2593868549{background-color:${colors.grey900};color:${colors.white};}`, `div.success.jsx-2593868549{background-color:${colors.green800};color:${colors.white};}`, `div.warning.jsx-2593868549{background-color:${colors.yellow300};color:${colors.yellow900};}`, `div.critical.jsx-2593868549{background-color:${colors.red800};color:${colors.white};}`, "@-webkit-keyframes slidein-jsx-2593868549{from{-webkit-transform:translateY(1000px);-ms-transform:translateY(1000px);transform:translateY(1000px);}to{-webkit-transform:translateY(0);-ms-transform:translateY(0);transform:translateY(0);}}", "@keyframes slidein-jsx-2593868549{from{-webkit-transform:translateY(1000px);-ms-transform:translateY(1000px);transform:translateY(1000px);}to{-webkit-transform:translateY(0);-ms-transform:translateY(0);transform:translateY(0);}}", "@-webkit-keyframes slideout-jsx-2593868549{from{-webkit-transform:translateY(0);-ms-transform:translateY(0);transform:translateY(0);}to{-webkit-transform:translateY(1000px);-ms-transform:translateY(1000px);transform:translateY(1000px);}}", "@keyframes slideout-jsx-2593868549{from{-webkit-transform:translateY(0);-ms-transform:translateY(0);transform:translateY(0);}to{-webkit-transform:translateY(1000px);-ms-transform:translateY(1000px);transform:translateY(1000px);}}", `div.inViewport.jsx-2593868549{-webkit-animation-duration:${ANIMATION_TIME}ms;animation-duration:${ANIMATION_TIME}ms;-webkit-animation-name:slidein-jsx-2593868549;animation-name:slidein-jsx-2593868549;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;-webkit-animation-timing-function:cubic-bezier(0.4,0,0.6,1);animation-timing-function:cubic-bezier(0.4,0,0.6,1);}`, `div.jsx-2593868549{-webkit-animation-duration:${ANIMATION_TIME}ms;animation-duration:${ANIMATION_TIME}ms;-webkit-animation-name:slideout-jsx-2593868549;animation-name:slideout-jsx-2593868549;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;-webkit-animation-timing-function:cubic-bezier(0.4,0,0.6,1);animation-timing-function:cubic-bezier(0.4,0,0.6,1);}`];
|
4
|
+
_defaultExport.__hash = "2593868549";
|
5
5
|
export default _defaultExport;
|
@@ -5,10 +5,10 @@ import React from 'react';
|
|
5
5
|
const Message = ({
|
6
6
|
children
|
7
7
|
}) => /*#__PURE__*/React.createElement("div", {
|
8
|
-
className: "jsx-
|
8
|
+
className: "jsx-2181391309"
|
9
9
|
}, children, /*#__PURE__*/React.createElement(_JSXStyle, {
|
10
|
-
id: "
|
11
|
-
}, ["div.jsx-
|
10
|
+
id: "2181391309"
|
11
|
+
}, ["div.jsx-2181391309{-webkit-box-flex:1;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1;}"]));
|
12
12
|
|
13
13
|
Message.propTypes = {
|
14
14
|
children: PropTypes.string.isRequired
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@dhis2-ui/alert",
|
3
|
-
"version": "7.11.
|
3
|
+
"version": "7.11.4",
|
4
4
|
"description": "UI Alert",
|
5
5
|
"repository": {
|
6
6
|
"type": "git",
|
@@ -32,9 +32,9 @@
|
|
32
32
|
},
|
33
33
|
"dependencies": {
|
34
34
|
"@dhis2/prop-types": "^3.0.0-beta.1",
|
35
|
-
"@dhis2-ui/portal": "7.11.
|
36
|
-
"@dhis2/ui-constants": "7.11.
|
37
|
-
"@dhis2/ui-icons": "7.11.
|
35
|
+
"@dhis2-ui/portal": "7.11.4",
|
36
|
+
"@dhis2/ui-constants": "7.11.4",
|
37
|
+
"@dhis2/ui-icons": "7.11.4",
|
38
38
|
"classnames": "^2.3.1",
|
39
39
|
"prop-types": "^15.7.2"
|
40
40
|
},
|