@commercetools-uikit/label 20.2.2 → 20.3.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.
@@ -32,7 +32,7 @@ var _Object$defineProperty__default = /*#__PURE__*/_interopDefault(_Object$defin
32
32
  var Text__default = /*#__PURE__*/_interopDefault(Text);
33
33
 
34
34
  const RequiredIndicator = () => jsxRuntime.jsx("em", {
35
- css: /*#__PURE__*/react.css("color:", designSystem.designTokens.colorWarning, ";font-style:normal;margin-left:2px;" + (process.env.NODE_ENV === "production" ? "" : ";label:RequiredIndicator;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInJlcXVpcmVkLWluZGljYXRvci50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBS1kiLCJmaWxlIjoicmVxdWlyZWQtaW5kaWNhdG9yLnRzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IGNzcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcbmltcG9ydCB7IGRlc2lnblRva2VucyB9IGZyb20gJ0Bjb21tZXJjZXRvb2xzLXVpa2l0L2Rlc2lnbi1zeXN0ZW0nO1xuXG5jb25zdCBSZXF1aXJlZEluZGljYXRvciA9ICgpID0+IChcbiAgPGVtXG4gICAgY3NzPXtjc3NgXG4gICAgICBjb2xvcjogJHtkZXNpZ25Ub2tlbnMuY29sb3JXYXJuaW5nfTtcbiAgICAgIGZvbnQtc3R5bGU6IG5vcm1hbDtcbiAgICAgIG1hcmdpbi1sZWZ0OiAycHg7XG4gICAgYH1cbiAgPlxuICAgIHsnKid9XG4gIDwvZW0+XG4pO1xuUmVxdWlyZWRJbmRpY2F0b3IuZGlzcGxheU5hbWUgPSAnUmVxdWlyZWRJbmRpY2F0b3InO1xuXG5leHBvcnQgZGVmYXVsdCBSZXF1aXJlZEluZGljYXRvcjtcbiJdfQ== */"),
35
+ css: /*#__PURE__*/react.css("color:", designSystem.designTokens.colorWarning40, ";font-style:normal;margin-left:2px;" + (process.env.NODE_ENV === "production" ? "" : ";label:RequiredIndicator;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInJlcXVpcmVkLWluZGljYXRvci50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBS1kiLCJmaWxlIjoicmVxdWlyZWQtaW5kaWNhdG9yLnRzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IGNzcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcbmltcG9ydCB7IGRlc2lnblRva2VucyB9IGZyb20gJ0Bjb21tZXJjZXRvb2xzLXVpa2l0L2Rlc2lnbi1zeXN0ZW0nO1xuXG5jb25zdCBSZXF1aXJlZEluZGljYXRvciA9ICgpID0+IChcbiAgPGVtXG4gICAgY3NzPXtjc3NgXG4gICAgICBjb2xvcjogJHtkZXNpZ25Ub2tlbnMuY29sb3JXYXJuaW5nNDB9O1xuICAgICAgZm9udC1zdHlsZTogbm9ybWFsO1xuICAgICAgbWFyZ2luLWxlZnQ6IDJweDtcbiAgICBgfVxuICA+XG4gICAgeycqJ31cbiAgPC9lbT5cbik7XG5SZXF1aXJlZEluZGljYXRvci5kaXNwbGF5TmFtZSA9ICdSZXF1aXJlZEluZGljYXRvcic7XG5cbmV4cG9ydCBkZWZhdWx0IFJlcXVpcmVkSW5kaWNhdG9yO1xuIl19 */"),
36
36
  children: '*'
37
37
  });
38
38
  RequiredIndicator.displayName = 'RequiredIndicator';
@@ -50,7 +50,7 @@ var _ref = process.env.NODE_ENV === "production" ? {
50
50
  toString: _EMOTION_STRINGIFIED_CSS_ERROR__
51
51
  };
52
52
  const Label = props => {
53
- 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;
53
+ 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;
54
54
  const hasContent = props.intlMessage || Boolean(react$1.Children.count(props.children));
55
55
  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;
56
56
  return jsxRuntime.jsx("label", {
@@ -73,7 +73,7 @@ Label.displayName = 'Label';
73
73
  var Label$1 = Label;
74
74
 
75
75
  // NOTE: This string will be replaced on build time with the package version.
76
- var version = "20.2.2";
76
+ var version = "20.3.0";
77
77
 
78
78
  exports["default"] = Label$1;
79
79
  exports.version = version;
@@ -32,7 +32,7 @@ var _Object$defineProperty__default = /*#__PURE__*/_interopDefault(_Object$defin
32
32
  var Text__default = /*#__PURE__*/_interopDefault(Text);
33
33
 
34
34
  const RequiredIndicator = () => jsxRuntime.jsx("em", {
35
- css: /*#__PURE__*/react.css("color:", designSystem.designTokens.colorWarning, ";font-style:normal;margin-left:2px;" + ("" ), "" ),
35
+ css: /*#__PURE__*/react.css("color:", designSystem.designTokens.colorWarning40, ";font-style:normal;margin-left:2px;" + ("" ), "" ),
36
36
  children: '*'
37
37
  });
38
38
  RequiredIndicator.displayName = 'RequiredIndicator';
@@ -66,7 +66,7 @@ Label.displayName = 'Label';
66
66
  var Label$1 = Label;
67
67
 
68
68
  // NOTE: This string will be replaced on build time with the package version.
69
- var version = "20.2.2";
69
+ var version = "20.3.0";
70
70
 
71
71
  exports["default"] = Label$1;
72
72
  exports.version = version;
@@ -16,7 +16,7 @@ import { designTokens } from '@commercetools-uikit/design-system';
16
16
  import { jsx, jsxs } from '@emotion/react/jsx-runtime';
17
17
 
18
18
  const RequiredIndicator = () => jsx("em", {
19
- css: /*#__PURE__*/css("color:", designTokens.colorWarning, ";font-style:normal;margin-left:2px;" + (process.env.NODE_ENV === "production" ? "" : ";label:RequiredIndicator;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInJlcXVpcmVkLWluZGljYXRvci50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBS1kiLCJmaWxlIjoicmVxdWlyZWQtaW5kaWNhdG9yLnRzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IGNzcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcbmltcG9ydCB7IGRlc2lnblRva2VucyB9IGZyb20gJ0Bjb21tZXJjZXRvb2xzLXVpa2l0L2Rlc2lnbi1zeXN0ZW0nO1xuXG5jb25zdCBSZXF1aXJlZEluZGljYXRvciA9ICgpID0+IChcbiAgPGVtXG4gICAgY3NzPXtjc3NgXG4gICAgICBjb2xvcjogJHtkZXNpZ25Ub2tlbnMuY29sb3JXYXJuaW5nfTtcbiAgICAgIGZvbnQtc3R5bGU6IG5vcm1hbDtcbiAgICAgIG1hcmdpbi1sZWZ0OiAycHg7XG4gICAgYH1cbiAgPlxuICAgIHsnKid9XG4gIDwvZW0+XG4pO1xuUmVxdWlyZWRJbmRpY2F0b3IuZGlzcGxheU5hbWUgPSAnUmVxdWlyZWRJbmRpY2F0b3InO1xuXG5leHBvcnQgZGVmYXVsdCBSZXF1aXJlZEluZGljYXRvcjtcbiJdfQ== */"),
19
+ css: /*#__PURE__*/css("color:", designTokens.colorWarning40, ";font-style:normal;margin-left:2px;" + (process.env.NODE_ENV === "production" ? "" : ";label:RequiredIndicator;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInJlcXVpcmVkLWluZGljYXRvci50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBS1kiLCJmaWxlIjoicmVxdWlyZWQtaW5kaWNhdG9yLnRzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IGNzcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcbmltcG9ydCB7IGRlc2lnblRva2VucyB9IGZyb20gJ0Bjb21tZXJjZXRvb2xzLXVpa2l0L2Rlc2lnbi1zeXN0ZW0nO1xuXG5jb25zdCBSZXF1aXJlZEluZGljYXRvciA9ICgpID0+IChcbiAgPGVtXG4gICAgY3NzPXtjc3NgXG4gICAgICBjb2xvcjogJHtkZXNpZ25Ub2tlbnMuY29sb3JXYXJuaW5nNDB9O1xuICAgICAgZm9udC1zdHlsZTogbm9ybWFsO1xuICAgICAgbWFyZ2luLWxlZnQ6IDJweDtcbiAgICBgfVxuICA+XG4gICAgeycqJ31cbiAgPC9lbT5cbik7XG5SZXF1aXJlZEluZGljYXRvci5kaXNwbGF5TmFtZSA9ICdSZXF1aXJlZEluZGljYXRvcic7XG5cbmV4cG9ydCBkZWZhdWx0IFJlcXVpcmVkSW5kaWNhdG9yO1xuIl19 */"),
20
20
  children: '*'
21
21
  });
22
22
  RequiredIndicator.displayName = 'RequiredIndicator';
@@ -34,7 +34,7 @@ var _ref = process.env.NODE_ENV === "production" ? {
34
34
  toString: _EMOTION_STRINGIFIED_CSS_ERROR__
35
35
  };
36
36
  const Label = props => {
37
- 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;
37
+ 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;
38
38
  const hasContent = props.intlMessage || Boolean(Children.count(props.children));
39
39
  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;
40
40
  return jsx("label", {
@@ -57,6 +57,6 @@ Label.displayName = 'Label';
57
57
  var Label$1 = Label;
58
58
 
59
59
  // NOTE: This string will be replaced on build time with the package version.
60
- var version = "20.2.2";
60
+ var version = "20.3.0";
61
61
 
62
62
  export { Label$1 as default, version };
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": "20.2.2",
4
+ "version": "20.3.0",
5
5
  "bugs": "https://github.com/commercetools/ui-kit/issues",
6
6
  "repository": {
7
7
  "type": "git",
@@ -21,14 +21,14 @@
21
21
  "dependencies": {
22
22
  "@babel/runtime": "^7.20.13",
23
23
  "@babel/runtime-corejs3": "^7.20.13",
24
- "@commercetools-uikit/design-system": "20.2.2",
25
- "@commercetools-uikit/text": "20.2.2",
26
- "@commercetools-uikit/utils": "20.2.2",
24
+ "@commercetools-uikit/design-system": "20.3.0",
25
+ "@commercetools-uikit/text": "20.3.0",
26
+ "@commercetools-uikit/utils": "20.3.0",
27
27
  "@emotion/react": "^11.10.5",
28
28
  "@emotion/styled": "^11.10.5"
29
29
  },
30
30
  "devDependencies": {
31
- "react": "19.1.0",
31
+ "react": "19.2.0",
32
32
  "react-intl": "^7.1.4"
33
33
  },
34
34
  "peerDependencies": {