@dhis2-ui/help 10.16.3 → 10.16.5
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/help.js +16 -19
- package/build/es/help.js +16 -19
- package/package.json +2 -2
package/build/cjs/help.js
CHANGED
|
@@ -10,27 +10,24 @@ var _classnames = _interopRequireDefault(require("classnames"));
|
|
|
10
10
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
11
|
var _react = _interopRequireDefault(require("react"));
|
|
12
12
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
13
|
-
const Help =
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
const Help = ({
|
|
14
|
+
children,
|
|
15
|
+
valid,
|
|
16
|
+
error,
|
|
17
|
+
warning,
|
|
18
|
+
className,
|
|
19
|
+
dataTest = 'dhis2-uicore-help'
|
|
20
|
+
}) => /*#__PURE__*/_react.default.createElement("p", {
|
|
21
|
+
"data-test": dataTest,
|
|
22
|
+
className: _style.default.dynamic([["1832050605", [_uiConstants.spacers.dp4, _uiConstants.theme.default, _uiConstants.colors.blue700, _uiConstants.theme.error, _uiConstants.colors.yellow800]]]) + " " + ((0, _classnames.default)(className, {
|
|
16
23
|
valid,
|
|
17
24
|
error,
|
|
18
|
-
warning
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
className: _style.default.dynamic([["1832050605", [_uiConstants.spacers.dp4, _uiConstants.theme.default, _uiConstants.colors.blue700, _uiConstants.theme.error, _uiConstants.colors.yellow800]]]) + " " + ((0, _classnames.default)(className, {
|
|
25
|
-
valid,
|
|
26
|
-
error,
|
|
27
|
-
warning
|
|
28
|
-
}) || "")
|
|
29
|
-
}, children, /*#__PURE__*/_react.default.createElement(_style.default, {
|
|
30
|
-
id: "1832050605",
|
|
31
|
-
dynamic: [_uiConstants.spacers.dp4, _uiConstants.theme.default, _uiConstants.colors.blue700, _uiConstants.theme.error, _uiConstants.colors.yellow800]
|
|
32
|
-
}, [`p.__jsx-style-dynamic-selector{margin-top:${_uiConstants.spacers.dp4};margin-right:0;margin-bottom:0;margin-left:0;font-size:12px;line-height:14px;color:${_uiConstants.theme.default};}`, `.valid.__jsx-style-dynamic-selector{color:${_uiConstants.colors.blue700};}`, `.error.__jsx-style-dynamic-selector{color:${_uiConstants.theme.error};}`, `.warning.__jsx-style-dynamic-selector{color:${_uiConstants.colors.yellow800};}`]));
|
|
33
|
-
};
|
|
25
|
+
warning
|
|
26
|
+
}) || "")
|
|
27
|
+
}, children, /*#__PURE__*/_react.default.createElement(_style.default, {
|
|
28
|
+
id: "1832050605",
|
|
29
|
+
dynamic: [_uiConstants.spacers.dp4, _uiConstants.theme.default, _uiConstants.colors.blue700, _uiConstants.theme.error, _uiConstants.colors.yellow800]
|
|
30
|
+
}, [`p.__jsx-style-dynamic-selector{margin-top:${_uiConstants.spacers.dp4};margin-right:0;margin-bottom:0;margin-left:0;font-size:12px;line-height:14px;color:${_uiConstants.theme.default};}`, `.valid.__jsx-style-dynamic-selector{color:${_uiConstants.colors.blue700};}`, `.error.__jsx-style-dynamic-selector{color:${_uiConstants.theme.error};}`, `.warning.__jsx-style-dynamic-selector{color:${_uiConstants.colors.yellow800};}`]));
|
|
34
31
|
exports.Help = Help;
|
|
35
32
|
Help.propTypes = {
|
|
36
33
|
children: _propTypes.default.string,
|
package/build/es/help.js
CHANGED
|
@@ -3,27 +3,24 @@ import { spacers, theme, colors, sharedPropTypes } from '@dhis2/ui-constants';
|
|
|
3
3
|
import cx from 'classnames';
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
5
|
import React from 'react';
|
|
6
|
-
const Help =
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
const Help = ({
|
|
7
|
+
children,
|
|
8
|
+
valid,
|
|
9
|
+
error,
|
|
10
|
+
warning,
|
|
11
|
+
className,
|
|
12
|
+
dataTest = 'dhis2-uicore-help'
|
|
13
|
+
}) => /*#__PURE__*/React.createElement("p", {
|
|
14
|
+
"data-test": dataTest,
|
|
15
|
+
className: _JSXStyle.dynamic([["1832050605", [spacers.dp4, theme.default, colors.blue700, theme.error, colors.yellow800]]]) + " " + (cx(className, {
|
|
9
16
|
valid,
|
|
10
17
|
error,
|
|
11
|
-
warning
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
className: _JSXStyle.dynamic([["1832050605", [spacers.dp4, theme.default, colors.blue700, theme.error, colors.yellow800]]]) + " " + (cx(className, {
|
|
18
|
-
valid,
|
|
19
|
-
error,
|
|
20
|
-
warning
|
|
21
|
-
}) || "")
|
|
22
|
-
}, children, /*#__PURE__*/React.createElement(_JSXStyle, {
|
|
23
|
-
id: "1832050605",
|
|
24
|
-
dynamic: [spacers.dp4, theme.default, colors.blue700, theme.error, colors.yellow800]
|
|
25
|
-
}, [`p.__jsx-style-dynamic-selector{margin-top:${spacers.dp4};margin-right:0;margin-bottom:0;margin-left:0;font-size:12px;line-height:14px;color:${theme.default};}`, `.valid.__jsx-style-dynamic-selector{color:${colors.blue700};}`, `.error.__jsx-style-dynamic-selector{color:${theme.error};}`, `.warning.__jsx-style-dynamic-selector{color:${colors.yellow800};}`]));
|
|
26
|
-
};
|
|
18
|
+
warning
|
|
19
|
+
}) || "")
|
|
20
|
+
}, children, /*#__PURE__*/React.createElement(_JSXStyle, {
|
|
21
|
+
id: "1832050605",
|
|
22
|
+
dynamic: [spacers.dp4, theme.default, colors.blue700, theme.error, colors.yellow800]
|
|
23
|
+
}, [`p.__jsx-style-dynamic-selector{margin-top:${spacers.dp4};margin-right:0;margin-bottom:0;margin-left:0;font-size:12px;line-height:14px;color:${theme.default};}`, `.valid.__jsx-style-dynamic-selector{color:${colors.blue700};}`, `.error.__jsx-style-dynamic-selector{color:${theme.error};}`, `.warning.__jsx-style-dynamic-selector{color:${colors.yellow800};}`]));
|
|
27
24
|
Help.propTypes = {
|
|
28
25
|
children: PropTypes.string,
|
|
29
26
|
className: PropTypes.string,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dhis2-ui/help",
|
|
3
|
-
"version": "10.16.
|
|
3
|
+
"version": "10.16.5",
|
|
4
4
|
"description": "UI Help",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@dhis2/prop-types": "^3.1.2",
|
|
36
|
-
"@dhis2/ui-constants": "10.16.
|
|
36
|
+
"@dhis2/ui-constants": "10.16.5",
|
|
37
37
|
"classnames": "^2.3.1",
|
|
38
38
|
"prop-types": "^15.7.2"
|
|
39
39
|
},
|