@dhis2-ui/label 10.0.0-alpha.6 → 10.0.0-alpha.8

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.
@@ -29,7 +29,7 @@ const Label = _ref2 => {
29
29
  required,
30
30
  disabled,
31
31
  className,
32
- dataTest
32
+ dataTest = 'dhis2-uicore-label'
33
33
  } = _ref2;
34
34
  return /*#__PURE__*/_react.default.createElement("label", {
35
35
  htmlFor: htmlFor,
@@ -47,9 +47,6 @@ const Label = _ref2 => {
47
47
  }, styles));
48
48
  };
49
49
  exports.Label = Label;
50
- Label.defaultProps = {
51
- dataTest: 'dhis2-uicore-label'
52
- };
53
50
  Label.propTypes = {
54
51
  children: _propTypes.default.string,
55
52
  className: _propTypes.default.string,
package/build/es/label.js CHANGED
@@ -22,7 +22,7 @@ export const Label = _ref2 => {
22
22
  required,
23
23
  disabled,
24
24
  className,
25
- dataTest
25
+ dataTest = 'dhis2-uicore-label'
26
26
  } = _ref2;
27
27
  return /*#__PURE__*/React.createElement("label", {
28
28
  htmlFor: htmlFor,
@@ -39,9 +39,6 @@ export const Label = _ref2 => {
39
39
  id: styles.__hash
40
40
  }, styles));
41
41
  };
42
- Label.defaultProps = {
43
- dataTest: 'dhis2-uicore-label'
44
- };
45
42
  Label.propTypes = {
46
43
  children: PropTypes.string,
47
44
  className: PropTypes.string,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhis2-ui/label",
3
- "version": "10.0.0-alpha.6",
3
+ "version": "10.0.0-alpha.8",
4
4
  "description": "UI Label",
5
5
  "repository": {
6
6
  "type": "git",
@@ -27,14 +27,14 @@
27
27
  "test": "d2-app-scripts test --jestConfig ../../jest.config.shared.js"
28
28
  },
29
29
  "peerDependencies": {
30
- "react": "^16.13",
31
- "react-dom": "^16.13",
30
+ "react": "^16.13 || ^18",
31
+ "react-dom": "^16.13 || ^18",
32
32
  "styled-jsx": "^4"
33
33
  },
34
34
  "dependencies": {
35
35
  "@dhis2/prop-types": "^3.1.2",
36
- "@dhis2-ui/required": "10.0.0-alpha.6",
37
- "@dhis2/ui-constants": "10.0.0-alpha.6",
36
+ "@dhis2-ui/required": "10.0.0-alpha.8",
37
+ "@dhis2/ui-constants": "10.0.0-alpha.8",
38
38
  "classnames": "^2.3.1",
39
39
  "prop-types": "^15.7.2"
40
40
  },
@@ -43,8 +43,8 @@
43
43
  "types"
44
44
  ],
45
45
  "devDependencies": {
46
- "react": "16.13",
47
- "react-dom": "16.13",
46
+ "react": "^18.3.1",
47
+ "react-dom": "^18.3.1",
48
48
  "styled-jsx": "^4.0.1"
49
49
  },
50
50
  "types": "types"