@dhis2-ui/notice-box 9.12.0-alpha.4 → 9.12.0

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.
@@ -14,7 +14,7 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e
14
14
  const NoticeBoxContent = _ref => {
15
15
  let {
16
16
  children,
17
- dataTest,
17
+ dataTest = 'dhis2-uicore-noticebox-content',
18
18
  title
19
19
  } = _ref;
20
20
  return /*#__PURE__*/_react.default.createElement("div", {
@@ -31,9 +31,6 @@ const NoticeBoxContent = _ref => {
31
31
  }, [`div.__jsx-style-dynamic-selector{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;gap:${_uiConstants.spacers.dp8};padding-block-start:3px;}`]));
32
32
  };
33
33
  exports.NoticeBoxContent = NoticeBoxContent;
34
- NoticeBoxContent.defaultProps = {
35
- dataTest: 'dhis2-uicore-noticebox-content'
36
- };
37
34
  NoticeBoxContent.propTypes = {
38
35
  children: _propTypes.default.node,
39
36
  dataTest: _propTypes.default.string,
@@ -17,7 +17,7 @@ const NoticeBox = _ref => {
17
17
  let {
18
18
  className,
19
19
  children,
20
- dataTest,
20
+ dataTest = 'dhis2-uicore-noticebox',
21
21
  title,
22
22
  warning,
23
23
  error,
@@ -47,9 +47,6 @@ const NoticeBox = _ref => {
47
47
  }, [`.root.__jsx-style-dynamic-selector{background:${_uiConstants.colors.blue050};border:1px solid ${_uiConstants.colors.blue200};border-radius:3px;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;padding-block:${_uiConstants.spacers.dp12};padding-inline:${_uiConstants.spacers.dp16};}`, `.root.warning.__jsx-style-dynamic-selector{background:${_uiConstants.colors.yellow050};border:1px solid ${_uiConstants.colors.yellow200};}`, `.root.error.__jsx-style-dynamic-selector{background:${_uiConstants.colors.red050};border:2px solid ${_uiConstants.colors.red500};}`, `.root.valid.__jsx-style-dynamic-selector{background:${_uiConstants.colors.green050};border:1px solid ${_uiConstants.colors.green200};}`]));
48
48
  };
49
49
  exports.NoticeBox = NoticeBox;
50
- NoticeBox.defaultProps = {
51
- dataTest: 'dhis2-uicore-noticebox'
52
- };
53
50
  NoticeBox.propTypes = {
54
51
  children: _propTypes2.default.node,
55
52
  className: _propTypes2.default.string,
@@ -7,7 +7,7 @@ import { NoticeBoxTitle } from './notice-box-title.js';
7
7
  export const NoticeBoxContent = _ref => {
8
8
  let {
9
9
  children,
10
- dataTest,
10
+ dataTest = 'dhis2-uicore-noticebox-content',
11
11
  title
12
12
  } = _ref;
13
13
  return /*#__PURE__*/React.createElement("div", {
@@ -23,9 +23,6 @@ export const NoticeBoxContent = _ref => {
23
23
  dynamic: [spacers.dp8]
24
24
  }, [`div.__jsx-style-dynamic-selector{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;gap:${spacers.dp8};padding-block-start:3px;}`]));
25
25
  };
26
- NoticeBoxContent.defaultProps = {
27
- dataTest: 'dhis2-uicore-noticebox-content'
28
- };
29
26
  NoticeBoxContent.propTypes = {
30
27
  children: PropTypes.node,
31
28
  dataTest: PropTypes.string,
@@ -10,7 +10,7 @@ export const NoticeBox = _ref => {
10
10
  let {
11
11
  className,
12
12
  children,
13
- dataTest,
13
+ dataTest = 'dhis2-uicore-noticebox',
14
14
  title,
15
15
  warning,
16
16
  error,
@@ -39,9 +39,6 @@ export const NoticeBox = _ref => {
39
39
  dynamic: [colors.blue050, colors.blue200, spacers.dp12, spacers.dp16, colors.yellow050, colors.yellow200, colors.red050, colors.red500, colors.green050, colors.green200]
40
40
  }, [`.root.__jsx-style-dynamic-selector{background:${colors.blue050};border:1px solid ${colors.blue200};border-radius:3px;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;padding-block:${spacers.dp12};padding-inline:${spacers.dp16};}`, `.root.warning.__jsx-style-dynamic-selector{background:${colors.yellow050};border:1px solid ${colors.yellow200};}`, `.root.error.__jsx-style-dynamic-selector{background:${colors.red050};border:2px solid ${colors.red500};}`, `.root.valid.__jsx-style-dynamic-selector{background:${colors.green050};border:1px solid ${colors.green200};}`]));
41
41
  };
42
- NoticeBox.defaultProps = {
43
- dataTest: 'dhis2-uicore-noticebox'
44
- };
45
42
  NoticeBox.propTypes = {
46
43
  children: PropTypes.node,
47
44
  className: PropTypes.string,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhis2-ui/notice-box",
3
- "version": "9.12.0-alpha.4",
3
+ "version": "9.12.0",
4
4
  "description": "UI NoticeBox",
5
5
  "repository": {
6
6
  "type": "git",
@@ -33,8 +33,8 @@
33
33
  },
34
34
  "dependencies": {
35
35
  "@dhis2/prop-types": "^3.1.2",
36
- "@dhis2/ui-constants": "9.12.0-alpha.4",
37
- "@dhis2/ui-icons": "9.12.0-alpha.4",
36
+ "@dhis2/ui-constants": "9.12.0",
37
+ "@dhis2/ui-icons": "9.12.0",
38
38
  "classnames": "^2.3.1",
39
39
  "prop-types": "^15.7.2"
40
40
  },