@commercetools-uikit/creatable-select-field 20.2.3 → 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.
|
@@ -95,8 +95,8 @@ let CreatableSelectField = /*#__PURE__*/function (_Component) {
|
|
|
95
95
|
process.env.NODE_ENV !== "production" ? utils.warning(_Array$isArray__default["default"](this.props.value), 'CreatableSelectField: `value` is expected to be an array of string when isMulti is true') : void 0;
|
|
96
96
|
process.env.NODE_ENV !== "production" ? utils.warning(typeof this.props.touched === 'undefined' || _Array$isArray__default["default"](this.props.touched), 'CreatableSelectField: `touched` is expected to be an array of boolean when isMulti is true') : void 0;
|
|
97
97
|
}
|
|
98
|
-
const errorsContainerId =
|
|
99
|
-
const warningsContainerId =
|
|
98
|
+
const errorsContainerId = "".concat(this.state.id, "-errors");
|
|
99
|
+
const warningsContainerId = "".concat(this.state.id, "-warnings");
|
|
100
100
|
return jsxRuntime.jsx(Constraints__default["default"].Horizontal, {
|
|
101
101
|
max: this.props.horizontalConstraint,
|
|
102
102
|
children: jsxRuntime.jsxs(Spacings__default["default"].Stack, {
|
|
@@ -191,7 +191,7 @@ CreatableSelectField.getDerivedStateFromProps = (props, state) => ({
|
|
|
191
191
|
});
|
|
192
192
|
|
|
193
193
|
// NOTE: This string will be replaced on build time with the package version.
|
|
194
|
-
var version = "20.
|
|
194
|
+
var version = "20.3.0";
|
|
195
195
|
|
|
196
196
|
exports["default"] = CreatableSelectField;
|
|
197
197
|
exports.version = version;
|
|
@@ -87,8 +87,8 @@ let CreatableSelectField = /*#__PURE__*/function (_Component) {
|
|
|
87
87
|
if (!this.props.isReadOnly) ;
|
|
88
88
|
if (this.props.hintIcon) ;
|
|
89
89
|
if (this.props.isMulti) ;
|
|
90
|
-
const errorsContainerId =
|
|
91
|
-
const warningsContainerId =
|
|
90
|
+
const errorsContainerId = "".concat(this.state.id, "-errors");
|
|
91
|
+
const warningsContainerId = "".concat(this.state.id, "-warnings");
|
|
92
92
|
return jsxRuntime.jsx(Constraints__default["default"].Horizontal, {
|
|
93
93
|
max: this.props.horizontalConstraint,
|
|
94
94
|
children: jsxRuntime.jsxs(Spacings__default["default"].Stack, {
|
|
@@ -183,7 +183,7 @@ CreatableSelectField.getDerivedStateFromProps = (props, state) => ({
|
|
|
183
183
|
});
|
|
184
184
|
|
|
185
185
|
// NOTE: This string will be replaced on build time with the package version.
|
|
186
|
-
var version = "20.
|
|
186
|
+
var version = "20.3.0";
|
|
187
187
|
|
|
188
188
|
exports["default"] = CreatableSelectField;
|
|
189
189
|
exports.version = version;
|
|
@@ -70,8 +70,8 @@ let CreatableSelectField = /*#__PURE__*/function (_Component) {
|
|
|
70
70
|
process.env.NODE_ENV !== "production" ? warning(_Array$isArray(this.props.value), 'CreatableSelectField: `value` is expected to be an array of string when isMulti is true') : void 0;
|
|
71
71
|
process.env.NODE_ENV !== "production" ? warning(typeof this.props.touched === 'undefined' || _Array$isArray(this.props.touched), 'CreatableSelectField: `touched` is expected to be an array of boolean when isMulti is true') : void 0;
|
|
72
72
|
}
|
|
73
|
-
const errorsContainerId =
|
|
74
|
-
const warningsContainerId =
|
|
73
|
+
const errorsContainerId = "".concat(this.state.id, "-errors");
|
|
74
|
+
const warningsContainerId = "".concat(this.state.id, "-warnings");
|
|
75
75
|
return jsx(Constraints.Horizontal, {
|
|
76
76
|
max: this.props.horizontalConstraint,
|
|
77
77
|
children: jsxs(Spacings.Stack, {
|
|
@@ -166,6 +166,6 @@ CreatableSelectField.getDerivedStateFromProps = (props, state) => ({
|
|
|
166
166
|
});
|
|
167
167
|
|
|
168
168
|
// NOTE: This string will be replaced on build time with the package version.
|
|
169
|
-
var version = "20.
|
|
169
|
+
var version = "20.3.0";
|
|
170
170
|
|
|
171
171
|
export { CreatableSelectField as default, version };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commercetools-uikit/creatable-select-field",
|
|
3
3
|
"description": "A controlled input component with validation states and a label getting a selection from the user, and where options can also be created by the user.",
|
|
4
|
-
"version": "20.
|
|
4
|
+
"version": "20.3.0",
|
|
5
5
|
"bugs": "https://github.com/commercetools/ui-kit/issues",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -21,20 +21,20 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@babel/runtime": "^7.20.13",
|
|
23
23
|
"@babel/runtime-corejs3": "^7.20.13",
|
|
24
|
-
"@commercetools-uikit/constraints": "20.
|
|
25
|
-
"@commercetools-uikit/creatable-select-input": "20.
|
|
26
|
-
"@commercetools-uikit/design-system": "20.
|
|
27
|
-
"@commercetools-uikit/field-errors": "20.
|
|
28
|
-
"@commercetools-uikit/field-label": "20.
|
|
29
|
-
"@commercetools-uikit/field-warnings": "20.
|
|
30
|
-
"@commercetools-uikit/spacings": "20.
|
|
31
|
-
"@commercetools-uikit/utils": "20.
|
|
24
|
+
"@commercetools-uikit/constraints": "20.3.0",
|
|
25
|
+
"@commercetools-uikit/creatable-select-input": "20.3.0",
|
|
26
|
+
"@commercetools-uikit/design-system": "20.3.0",
|
|
27
|
+
"@commercetools-uikit/field-errors": "20.3.0",
|
|
28
|
+
"@commercetools-uikit/field-label": "20.3.0",
|
|
29
|
+
"@commercetools-uikit/field-warnings": "20.3.0",
|
|
30
|
+
"@commercetools-uikit/spacings": "20.3.0",
|
|
31
|
+
"@commercetools-uikit/utils": "20.3.0",
|
|
32
32
|
"@emotion/react": "^11.10.5",
|
|
33
33
|
"@emotion/styled": "^11.10.5",
|
|
34
34
|
"react-intl": "^7.1.4"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"react": "19.
|
|
37
|
+
"react": "19.2.0"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
40
40
|
"react": "19.x"
|