@dhis2-ui/required 8.1.11 → 8.2.2
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/required.js +12 -9
- package/build/es/required.js +12 -9
- package/package.json +2 -2
package/build/cjs/required.js
CHANGED
|
@@ -15,15 +15,18 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
15
15
|
|
|
16
16
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
17
|
|
|
18
|
-
const Required =
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
18
|
+
const Required = _ref => {
|
|
19
|
+
let {
|
|
20
|
+
dataTest
|
|
21
|
+
} = _ref;
|
|
22
|
+
return /*#__PURE__*/_react.default.createElement("span", {
|
|
23
|
+
"data-test": dataTest,
|
|
24
|
+
className: _style.default.dynamic([["149033372", [_uiConstants.spacers.dp4]]])
|
|
25
|
+
}, "*", /*#__PURE__*/_react.default.createElement(_style.default, {
|
|
26
|
+
id: "149033372",
|
|
27
|
+
dynamic: [_uiConstants.spacers.dp4]
|
|
28
|
+
}, ["span.__jsx-style-dynamic-selector{padding-left:".concat(_uiConstants.spacers.dp4, ";}")]));
|
|
29
|
+
};
|
|
27
30
|
|
|
28
31
|
exports.Required = Required;
|
|
29
32
|
Required.propTypes = {
|
package/build/es/required.js
CHANGED
|
@@ -2,15 +2,18 @@ import _JSXStyle from "styled-jsx/style";
|
|
|
2
2
|
import { spacers } from '@dhis2/ui-constants';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import React from 'react';
|
|
5
|
-
export const Required =
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
5
|
+
export const Required = _ref => {
|
|
6
|
+
let {
|
|
7
|
+
dataTest
|
|
8
|
+
} = _ref;
|
|
9
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
10
|
+
"data-test": dataTest,
|
|
11
|
+
className: _JSXStyle.dynamic([["149033372", [spacers.dp4]]])
|
|
12
|
+
}, "*", /*#__PURE__*/React.createElement(_JSXStyle, {
|
|
13
|
+
id: "149033372",
|
|
14
|
+
dynamic: [spacers.dp4]
|
|
15
|
+
}, ["span.__jsx-style-dynamic-selector{padding-left:".concat(spacers.dp4, ";}")]));
|
|
16
|
+
};
|
|
14
17
|
Required.propTypes = {
|
|
15
18
|
dataTest: PropTypes.string.isRequired
|
|
16
19
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dhis2-ui/required",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.2.2",
|
|
4
4
|
"description": "UI Required",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@dhis2/prop-types": "^3.0.0-beta.1",
|
|
35
|
-
"@dhis2/ui-constants": "8.
|
|
35
|
+
"@dhis2/ui-constants": "8.2.2",
|
|
36
36
|
"classnames": "^2.3.1",
|
|
37
37
|
"prop-types": "^15.7.2"
|
|
38
38
|
},
|