@commercetools-uikit/field-label 15.15.0 → 16.0.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.
- package/dist/commercetools-uikit-field-label.cjs.d.ts +1 -0
- package/dist/commercetools-uikit-field-label.cjs.d.ts.map +1 -0
- package/dist/commercetools-uikit-field-label.cjs.dev.js +5 -5
- package/dist/commercetools-uikit-field-label.cjs.prod.js +5 -5
- package/dist/commercetools-uikit-field-label.esm.js +5 -5
- package/package.json +11 -11
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"commercetools-uikit-field-label.cjs.d.ts","sourceRoot":"","sources":["./declarations/src/index.d.ts"],"names":[],"mappings":"AAAA"}
|
|
@@ -39,7 +39,7 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
|
|
|
39
39
|
The implementation is tightly coupled to how we currently wrap
|
|
40
40
|
those props, so if we change that, we will need to adjust this as well.
|
|
41
41
|
*/
|
|
42
|
-
|
|
42
|
+
const LabelRowWrapper = /*#__PURE__*/_styled__default["default"]("div", process.env.NODE_ENV === "production" ? {
|
|
43
43
|
target: "erir8oc0"
|
|
44
44
|
} : {
|
|
45
45
|
target: "erir8oc0",
|
|
@@ -56,9 +56,9 @@ var _ref = process.env.NODE_ENV === "production" ? {
|
|
|
56
56
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
57
57
|
};
|
|
58
58
|
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
59
|
+
const FieldLabel = props => {
|
|
60
|
+
const _useTheme = designSystem.useTheme(),
|
|
61
|
+
theme = _useTheme.theme;
|
|
62
62
|
|
|
63
63
|
if (props.hintIcon) {
|
|
64
64
|
process.env.NODE_ENV !== "production" ? utils.warning(props.hintIcon.props.size === undefined, 'ui-kit/FieldLabel: setting `hintIcon` size is not supported.') : void 0;
|
|
@@ -137,7 +137,7 @@ FieldLabel.defaultProps = {
|
|
|
137
137
|
var FieldLabel$1 = FieldLabel;
|
|
138
138
|
|
|
139
139
|
// NOTE: This string will be replaced on build time with the package version.
|
|
140
|
-
var version = "
|
|
140
|
+
var version = "16.0.0";
|
|
141
141
|
|
|
142
142
|
exports["default"] = FieldLabel$1;
|
|
143
143
|
exports.version = version;
|
|
@@ -36,7 +36,7 @@ var Label__default = /*#__PURE__*/_interopDefault(Label);
|
|
|
36
36
|
The implementation is tightly coupled to how we currently wrap
|
|
37
37
|
those props, so if we change that, we will need to adjust this as well.
|
|
38
38
|
*/
|
|
39
|
-
|
|
39
|
+
const LabelRowWrapper = /*#__PURE__*/_styled__default["default"]("div", {
|
|
40
40
|
target: "erir8oc0"
|
|
41
41
|
} )("& [data-key='field-label-hint-wrapper'],& [data-key='field-label-description-wrapper']{margin-top:", designSystem.designTokens.spacing10, "!important;}& [data-key='field-label-hint-wrapper']:empty,& [data-key='field-label-description-wrapper']:empty{margin-top:0!important;}" + ("" ));
|
|
42
42
|
|
|
@@ -45,9 +45,9 @@ var _ref = {
|
|
|
45
45
|
styles: "display:flex;justify-content:flex-end"
|
|
46
46
|
} ;
|
|
47
47
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
48
|
+
const FieldLabel = props => {
|
|
49
|
+
const _useTheme = designSystem.useTheme(),
|
|
50
|
+
theme = _useTheme.theme;
|
|
51
51
|
|
|
52
52
|
if (props.hintIcon) ;
|
|
53
53
|
|
|
@@ -111,7 +111,7 @@ FieldLabel.defaultProps = {
|
|
|
111
111
|
var FieldLabel$1 = FieldLabel;
|
|
112
112
|
|
|
113
113
|
// NOTE: This string will be replaced on build time with the package version.
|
|
114
|
-
var version = "
|
|
114
|
+
var version = "16.0.0";
|
|
115
115
|
|
|
116
116
|
exports["default"] = FieldLabel$1;
|
|
117
117
|
exports.version = version;
|
|
@@ -25,7 +25,7 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
|
|
|
25
25
|
The implementation is tightly coupled to how we currently wrap
|
|
26
26
|
those props, so if we change that, we will need to adjust this as well.
|
|
27
27
|
*/
|
|
28
|
-
|
|
28
|
+
const LabelRowWrapper = /*#__PURE__*/_styled("div", process.env.NODE_ENV === "production" ? {
|
|
29
29
|
target: "erir8oc0"
|
|
30
30
|
} : {
|
|
31
31
|
target: "erir8oc0",
|
|
@@ -42,9 +42,9 @@ var _ref = process.env.NODE_ENV === "production" ? {
|
|
|
42
42
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
43
43
|
};
|
|
44
44
|
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
45
|
+
const FieldLabel = props => {
|
|
46
|
+
const _useTheme = useTheme(),
|
|
47
|
+
theme = _useTheme.theme;
|
|
48
48
|
|
|
49
49
|
if (props.hintIcon) {
|
|
50
50
|
process.env.NODE_ENV !== "production" ? warning(props.hintIcon.props.size === undefined, 'ui-kit/FieldLabel: setting `hintIcon` size is not supported.') : void 0;
|
|
@@ -123,6 +123,6 @@ FieldLabel.defaultProps = {
|
|
|
123
123
|
var FieldLabel$1 = FieldLabel;
|
|
124
124
|
|
|
125
125
|
// NOTE: This string will be replaced on build time with the package version.
|
|
126
|
-
var version = "
|
|
126
|
+
var version = "16.0.0";
|
|
127
127
|
|
|
128
128
|
export { FieldLabel$1 as default, version };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commercetools-uikit/field-label",
|
|
3
3
|
"description": "The FieldLabel component represents the label for a field in a form.",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "16.0.0",
|
|
5
5
|
"bugs": "https://github.com/commercetools/ui-kit/issues",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -21,19 +21,19 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@babel/runtime": "^7.20.13",
|
|
23
23
|
"@babel/runtime-corejs3": "^7.20.13",
|
|
24
|
-
"@commercetools-uikit/constraints": "
|
|
25
|
-
"@commercetools-uikit/design-system": "
|
|
26
|
-
"@commercetools-uikit/icon-button": "
|
|
27
|
-
"@commercetools-uikit/icons": "
|
|
28
|
-
"@commercetools-uikit/label": "
|
|
29
|
-
"@commercetools-uikit/spacings-inline": "
|
|
30
|
-
"@commercetools-uikit/spacings-stack": "
|
|
31
|
-
"@commercetools-uikit/text": "
|
|
32
|
-
"@commercetools-uikit/utils": "
|
|
24
|
+
"@commercetools-uikit/constraints": "16.0.0",
|
|
25
|
+
"@commercetools-uikit/design-system": "16.0.0",
|
|
26
|
+
"@commercetools-uikit/icon-button": "16.0.0",
|
|
27
|
+
"@commercetools-uikit/icons": "16.0.0",
|
|
28
|
+
"@commercetools-uikit/label": "16.0.0",
|
|
29
|
+
"@commercetools-uikit/spacings-inline": "16.0.0",
|
|
30
|
+
"@commercetools-uikit/spacings-stack": "16.0.0",
|
|
31
|
+
"@commercetools-uikit/text": "16.0.0",
|
|
32
|
+
"@commercetools-uikit/utils": "16.0.0",
|
|
33
33
|
"@emotion/react": "^11.10.5",
|
|
34
34
|
"@emotion/styled": "^11.10.5",
|
|
35
35
|
"prop-types": "15.8.1",
|
|
36
|
-
"react-intl": "^
|
|
36
|
+
"react-intl": "^6.3.2"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"react": "17.0.2"
|