@commercetools-uikit/label 19.11.0 → 19.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.
|
@@ -53,7 +53,7 @@ var _ref = process.env.NODE_ENV === "production" ? {
|
|
|
53
53
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
54
54
|
};
|
|
55
55
|
const Label = props => {
|
|
56
|
-
process.env.NODE_ENV !== "production" ? utils.warning(!(Boolean(props.id) && Boolean(props.htmlFor)),
|
|
56
|
+
process.env.NODE_ENV !== "production" ? utils.warning(!(Boolean(props.id) && Boolean(props.htmlFor)), `ui-kit/Label: provide only the "id" or the "htmlFor" properties, not both.`) : void 0;
|
|
57
57
|
const hasContent = props.intlMessage || Boolean(react$1.Children.count(props.children));
|
|
58
58
|
process.env.NODE_ENV !== "production" ? utils.warning(hasContent, ['ui-kit/Label:', '"intlMessage" is required when "children" is `undefined` and vice versa.', 'Provide "intlMessage" or "children"'].join(' ')) : void 0;
|
|
59
59
|
return jsxRuntime.jsx("label", {
|
|
@@ -36,7 +36,7 @@ var _ref = process.env.NODE_ENV === "production" ? {
|
|
|
36
36
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
37
37
|
};
|
|
38
38
|
const Label = props => {
|
|
39
|
-
process.env.NODE_ENV !== "production" ? warning(!(Boolean(props.id) && Boolean(props.htmlFor)),
|
|
39
|
+
process.env.NODE_ENV !== "production" ? warning(!(Boolean(props.id) && Boolean(props.htmlFor)), `ui-kit/Label: provide only the "id" or the "htmlFor" properties, not both.`) : void 0;
|
|
40
40
|
const hasContent = props.intlMessage || Boolean(Children.count(props.children));
|
|
41
41
|
process.env.NODE_ENV !== "production" ? warning(hasContent, ['ui-kit/Label:', '"intlMessage" is required when "children" is `undefined` and vice versa.', 'Provide "intlMessage" or "children"'].join(' ')) : void 0;
|
|
42
42
|
return jsx("label", {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commercetools-uikit/label",
|
|
3
3
|
"description": "The Label component represents the primitive label for a form field component.",
|
|
4
|
-
"version": "19.
|
|
4
|
+
"version": "19.12.0",
|
|
5
5
|
"bugs": "https://github.com/commercetools/ui-kit/issues",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@babel/runtime": "^7.20.13",
|
|
23
23
|
"@babel/runtime-corejs3": "^7.20.13",
|
|
24
|
-
"@commercetools-uikit/design-system": "19.
|
|
25
|
-
"@commercetools-uikit/text": "19.
|
|
26
|
-
"@commercetools-uikit/utils": "19.
|
|
24
|
+
"@commercetools-uikit/design-system": "19.12.0",
|
|
25
|
+
"@commercetools-uikit/text": "19.12.0",
|
|
26
|
+
"@commercetools-uikit/utils": "19.12.0",
|
|
27
27
|
"@emotion/react": "^11.10.5",
|
|
28
28
|
"@emotion/styled": "^11.10.5",
|
|
29
29
|
"prop-types": "15.8.1"
|