@commercetools-uikit/label 16.0.0 → 16.1.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.
@@ -37,20 +37,16 @@ const RequiredIndicator = () => jsxRuntime.jsx("em", {
37
37
  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== */"),
38
38
  children: '*'
39
39
  });
40
-
41
40
  RequiredIndicator.displayName = 'RequiredIndicator';
42
41
  var RequiredIndicator$1 = RequiredIndicator;
43
42
 
44
43
  function ownKeys(object, enumerableOnly) { var keys = _Object$keys__default["default"](object); if (_Object$getOwnPropertySymbols__default["default"]) { var symbols = _Object$getOwnPropertySymbols__default["default"](object); enumerableOnly && (symbols = _filterInstanceProperty__default["default"](symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor__default["default"](object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
45
-
46
44
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](target, _Object$getOwnPropertyDescriptors__default["default"](source)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys(Object(source))).call(_context2, function (key) { _Object$defineProperty__default["default"](target, key, _Object$getOwnPropertyDescriptor__default["default"](source, key)); }); } return target; }
47
-
48
45
  const Label = props => {
49
46
  const _useTheme = designSystem.useTheme(),
50
- theme = _useTheme.theme; // TODO: This is a temporary solution due to theme migration. After the new
47
+ theme = _useTheme.theme;
48
+ // TODO: This is a temporary solution due to theme migration. After the new
51
49
  // theme is published, we must remove this and just use the `Text.Detail` component
52
-
53
-
54
50
  const TextComponent = theme === 'default' ? Text__default["default"].Body : Text__default["default"].Detail;
55
51
  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;
56
52
  const hasContent = props.intlMessage || Boolean(react$1.Children.count(props.children));
@@ -66,7 +62,6 @@ const Label = props => {
66
62
  })
67
63
  });
68
64
  };
69
-
70
65
  Label.propTypes = process.env.NODE_ENV !== "production" ? {
71
66
  id: _pt__default["default"].string,
72
67
  htmlFor: _pt__default["default"].string,
@@ -82,7 +77,7 @@ Label.displayName = 'Label';
82
77
  var Label$1 = Label;
83
78
 
84
79
  // NOTE: This string will be replaced on build time with the package version.
85
- var version = "16.0.0";
80
+ var version = "16.1.0";
86
81
 
87
82
  exports["default"] = Label$1;
88
83
  exports.version = version;
@@ -36,20 +36,16 @@ const RequiredIndicator = () => jsxRuntime.jsx("em", {
36
36
  css: /*#__PURE__*/react.css("color:", designSystem.designTokens.colorWarning, ";font-style:normal;margin-left:2px;" + ("" ), "" ),
37
37
  children: '*'
38
38
  });
39
-
40
39
  RequiredIndicator.displayName = 'RequiredIndicator';
41
40
  var RequiredIndicator$1 = RequiredIndicator;
42
41
 
43
42
  function ownKeys(object, enumerableOnly) { var keys = _Object$keys__default["default"](object); if (_Object$getOwnPropertySymbols__default["default"]) { var symbols = _Object$getOwnPropertySymbols__default["default"](object); enumerableOnly && (symbols = _filterInstanceProperty__default["default"](symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor__default["default"](object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
44
-
45
43
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](target, _Object$getOwnPropertyDescriptors__default["default"](source)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys(Object(source))).call(_context2, function (key) { _Object$defineProperty__default["default"](target, key, _Object$getOwnPropertyDescriptor__default["default"](source, key)); }); } return target; }
46
-
47
44
  const Label = props => {
48
45
  const _useTheme = designSystem.useTheme(),
49
- theme = _useTheme.theme; // TODO: This is a temporary solution due to theme migration. After the new
46
+ theme = _useTheme.theme;
47
+ // TODO: This is a temporary solution due to theme migration. After the new
50
48
  // theme is published, we must remove this and just use the `Text.Detail` component
51
-
52
-
53
49
  const TextComponent = theme === 'default' ? Text__default["default"].Body : Text__default["default"].Detail;
54
50
  props.intlMessage || Boolean(react$1.Children.count(props.children));
55
51
  return jsxRuntime.jsx("label", {
@@ -63,13 +59,12 @@ const Label = props => {
63
59
  })
64
60
  });
65
61
  };
66
-
67
62
  Label.propTypes = {};
68
63
  Label.displayName = 'Label';
69
64
  var Label$1 = Label;
70
65
 
71
66
  // NOTE: This string will be replaced on build time with the package version.
72
- var version = "16.0.0";
67
+ var version = "16.1.0";
73
68
 
74
69
  exports["default"] = Label$1;
75
70
  exports.version = version;
@@ -20,20 +20,16 @@ const RequiredIndicator = () => jsx("em", {
20
20
  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== */"),
21
21
  children: '*'
22
22
  });
23
-
24
23
  RequiredIndicator.displayName = 'RequiredIndicator';
25
24
  var RequiredIndicator$1 = RequiredIndicator;
26
25
 
27
26
  function ownKeys(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
28
-
29
27
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
30
-
31
28
  const Label = props => {
32
29
  const _useTheme = useTheme(),
33
- theme = _useTheme.theme; // TODO: This is a temporary solution due to theme migration. After the new
30
+ theme = _useTheme.theme;
31
+ // TODO: This is a temporary solution due to theme migration. After the new
34
32
  // theme is published, we must remove this and just use the `Text.Detail` component
35
-
36
-
37
33
  const TextComponent = theme === 'default' ? Text.Body : Text.Detail;
38
34
  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;
39
35
  const hasContent = props.intlMessage || Boolean(Children.count(props.children));
@@ -49,7 +45,6 @@ const Label = props => {
49
45
  })
50
46
  });
51
47
  };
52
-
53
48
  Label.propTypes = process.env.NODE_ENV !== "production" ? {
54
49
  id: _pt.string,
55
50
  htmlFor: _pt.string,
@@ -65,6 +60,6 @@ Label.displayName = 'Label';
65
60
  var Label$1 = Label;
66
61
 
67
62
  // NOTE: This string will be replaced on build time with the package version.
68
- var version = "16.0.0";
63
+ var version = "16.1.0";
69
64
 
70
65
  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": "16.0.0",
4
+ "version": "16.1.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": "16.0.0",
25
- "@commercetools-uikit/text": "16.0.0",
26
- "@commercetools-uikit/utils": "16.0.0",
24
+ "@commercetools-uikit/design-system": "16.1.0",
25
+ "@commercetools-uikit/text": "16.1.0",
26
+ "@commercetools-uikit/utils": "16.1.0",
27
27
  "@emotion/react": "^11.10.5",
28
28
  "@emotion/styled": "^11.10.5",
29
29
  "prop-types": "15.8.1"