@dhis2-ui/notice-box 7.0.1 → 7.2.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.
|
@@ -7,12 +7,14 @@ exports.NoticeBoxIcon = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _style = _interopRequireDefault(require("styled-jsx/style"));
|
|
9
9
|
|
|
10
|
-
var _propTypes =
|
|
10
|
+
var _propTypes = require("@dhis2/prop-types");
|
|
11
11
|
|
|
12
12
|
var _uiConstants = require("@dhis2/ui-constants");
|
|
13
13
|
|
|
14
14
|
var _uiIcons = require("@dhis2/ui-icons");
|
|
15
15
|
|
|
16
|
+
var _propTypes2 = _interopRequireDefault(require("prop-types"));
|
|
17
|
+
|
|
16
18
|
var _react = _interopRequireDefault(require("react"));
|
|
17
19
|
|
|
18
20
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
@@ -50,7 +52,7 @@ const NoticeBoxIcon = ({
|
|
|
50
52
|
|
|
51
53
|
exports.NoticeBoxIcon = NoticeBoxIcon;
|
|
52
54
|
NoticeBoxIcon.propTypes = {
|
|
53
|
-
dataTest:
|
|
54
|
-
error: _propTypes.
|
|
55
|
-
warning: _propTypes.
|
|
55
|
+
dataTest: _propTypes2.default.string.isRequired,
|
|
56
|
+
error: (0, _propTypes.mutuallyExclusive)(['error', 'warning'], _propTypes2.default.bool),
|
|
57
|
+
warning: (0, _propTypes.mutuallyExclusive)(['error', 'warning'], _propTypes2.default.bool)
|
|
56
58
|
};
|
|
@@ -7,10 +7,10 @@ exports.NoticeBoxMessage = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _style = _interopRequireDefault(require("styled-jsx/style"));
|
|
9
9
|
|
|
10
|
-
var _propTypes = _interopRequireDefault(require("@dhis2/prop-types"));
|
|
11
|
-
|
|
12
10
|
var _uiConstants = require("@dhis2/ui-constants");
|
|
13
11
|
|
|
12
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
13
|
+
|
|
14
14
|
var _react = _interopRequireDefault(require("react"));
|
|
15
15
|
|
|
16
16
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
@@ -7,10 +7,10 @@ exports.NoticeBoxTitle = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _style = _interopRequireDefault(require("styled-jsx/style"));
|
|
9
9
|
|
|
10
|
-
var _propTypes = _interopRequireDefault(require("@dhis2/prop-types"));
|
|
11
|
-
|
|
12
10
|
var _uiConstants = require("@dhis2/ui-constants");
|
|
13
11
|
|
|
12
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
13
|
+
|
|
14
14
|
var _react = _interopRequireDefault(require("react"));
|
|
15
15
|
|
|
16
16
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import _JSXStyle from "styled-jsx/style";
|
|
2
|
-
import
|
|
2
|
+
import { mutuallyExclusive } from '@dhis2/prop-types';
|
|
3
3
|
import { colors, spacers } from '@dhis2/ui-constants';
|
|
4
4
|
import { IconErrorFilled24, IconWarningFilled24, IconInfoFilled24 } from '@dhis2/ui-icons';
|
|
5
|
+
import PropTypes from 'prop-types';
|
|
5
6
|
import React from 'react';
|
|
6
7
|
export const NoticeBoxIcon = ({
|
|
7
8
|
warning,
|
|
@@ -34,7 +35,7 @@ export const NoticeBoxIcon = ({
|
|
|
34
35
|
}, [`.__jsx-style-dynamic-selector{margin-right:${spacers.dp12};}`]));
|
|
35
36
|
};
|
|
36
37
|
NoticeBoxIcon.propTypes = {
|
|
37
|
-
dataTest:
|
|
38
|
-
error:
|
|
39
|
-
warning:
|
|
38
|
+
dataTest: PropTypes.string.isRequired,
|
|
39
|
+
error: mutuallyExclusive(['error', 'warning'], PropTypes.bool),
|
|
40
|
+
warning: mutuallyExclusive(['error', 'warning'], PropTypes.bool)
|
|
40
41
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _JSXStyle from "styled-jsx/style";
|
|
2
|
-
import propTypes from '@dhis2/prop-types';
|
|
3
2
|
import { colors } from '@dhis2/ui-constants';
|
|
3
|
+
import PropTypes from 'prop-types';
|
|
4
4
|
import React from 'react';
|
|
5
5
|
export const NoticeBoxMessage = ({
|
|
6
6
|
children,
|
|
@@ -19,6 +19,6 @@ export const NoticeBoxMessage = ({
|
|
|
19
19
|
}, [`div.__jsx-style-dynamic-selector{color:${colors.grey900};font-size:14px;line-height:20px;}`]));
|
|
20
20
|
};
|
|
21
21
|
NoticeBoxMessage.propTypes = {
|
|
22
|
-
dataTest:
|
|
23
|
-
children:
|
|
22
|
+
dataTest: PropTypes.string.isRequired,
|
|
23
|
+
children: PropTypes.node
|
|
24
24
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _JSXStyle from "styled-jsx/style";
|
|
2
|
-
import propTypes from '@dhis2/prop-types';
|
|
3
2
|
import { colors, spacers } from '@dhis2/ui-constants';
|
|
3
|
+
import PropTypes from 'prop-types';
|
|
4
4
|
import React from 'react';
|
|
5
5
|
export const NoticeBoxTitle = ({
|
|
6
6
|
title,
|
|
@@ -19,6 +19,6 @@ export const NoticeBoxTitle = ({
|
|
|
19
19
|
}, [`h6.__jsx-style-dynamic-selector{color:${colors.grey900};font-size:14px;font-weight:500;line-height:20px;margin:0 0 ${spacers.dp12} 0;}`]));
|
|
20
20
|
};
|
|
21
21
|
NoticeBoxTitle.propTypes = {
|
|
22
|
-
dataTest:
|
|
23
|
-
title:
|
|
22
|
+
dataTest: PropTypes.string.isRequired,
|
|
23
|
+
title: PropTypes.string
|
|
24
24
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dhis2-ui/notice-box",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.2.1",
|
|
4
4
|
"description": "UI NoticeBox",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -31,9 +31,9 @@
|
|
|
31
31
|
"styled-jsx": "^4"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@dhis2/prop-types": "^
|
|
35
|
-
"@dhis2/ui-constants": "7.
|
|
36
|
-
"@dhis2/ui-icons": "7.
|
|
34
|
+
"@dhis2/prop-types": "^3.0.0-beta.1",
|
|
35
|
+
"@dhis2/ui-constants": "7.2.1",
|
|
36
|
+
"@dhis2/ui-icons": "7.2.1",
|
|
37
37
|
"classnames": "^2.3.1",
|
|
38
38
|
"prop-types": "^15.7.2"
|
|
39
39
|
},
|