@commercetools-uikit/creatable-select-input 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.
|
@@ -124,7 +124,7 @@ const CreatableSelectInput = _ref => {
|
|
|
124
124
|
// state as an array instead of a boolean only.
|
|
125
125
|
// Otherwise the shapes would clash on submission, as
|
|
126
126
|
// Formik will create an array on submission anyways.
|
|
127
|
-
return props.name ?
|
|
127
|
+
return props.name ? "".concat(props.name, ".0") : undefined;
|
|
128
128
|
})()
|
|
129
129
|
},
|
|
130
130
|
persist: () => {}
|
|
@@ -132,6 +132,7 @@ const CreatableSelectInput = _ref => {
|
|
|
132
132
|
props.onBlur && props.onBlur(event);
|
|
133
133
|
} : undefined,
|
|
134
134
|
onChange: (value, info) => {
|
|
135
|
+
var _props$onChange;
|
|
135
136
|
// selectedOptions is either an array, or a single option, or null
|
|
136
137
|
// depending on whether we're in multi-mode or not (isMulti)
|
|
137
138
|
|
|
@@ -139,7 +140,7 @@ const CreatableSelectInput = _ref => {
|
|
|
139
140
|
if (props.isMulti && !newValue) {
|
|
140
141
|
newValue = [];
|
|
141
142
|
}
|
|
142
|
-
props.onChange
|
|
143
|
+
(_props$onChange = props.onChange) === null || _props$onChange === void 0 || _props$onChange.call(props, {
|
|
143
144
|
target: {
|
|
144
145
|
id: props.id,
|
|
145
146
|
name: props.name,
|
|
@@ -221,7 +222,7 @@ CreatableSelectInput.ValueContainer = reactSelect.components.ValueContainer;
|
|
|
221
222
|
var CreatableSelectInput$1 = CreatableSelectInput;
|
|
222
223
|
|
|
223
224
|
// NOTE: This string will be replaced on build time with the package version.
|
|
224
|
-
var version = "20.
|
|
225
|
+
var version = "20.3.0";
|
|
225
226
|
|
|
226
227
|
exports["default"] = CreatableSelectInput$1;
|
|
227
228
|
exports.version = version;
|
|
@@ -122,7 +122,7 @@ const CreatableSelectInput = _ref => {
|
|
|
122
122
|
// state as an array instead of a boolean only.
|
|
123
123
|
// Otherwise the shapes would clash on submission, as
|
|
124
124
|
// Formik will create an array on submission anyways.
|
|
125
|
-
return props.name ?
|
|
125
|
+
return props.name ? "".concat(props.name, ".0") : undefined;
|
|
126
126
|
})()
|
|
127
127
|
},
|
|
128
128
|
persist: () => {}
|
|
@@ -130,6 +130,7 @@ const CreatableSelectInput = _ref => {
|
|
|
130
130
|
props.onBlur && props.onBlur(event);
|
|
131
131
|
} : undefined,
|
|
132
132
|
onChange: (value, info) => {
|
|
133
|
+
var _props$onChange;
|
|
133
134
|
// selectedOptions is either an array, or a single option, or null
|
|
134
135
|
// depending on whether we're in multi-mode or not (isMulti)
|
|
135
136
|
|
|
@@ -137,7 +138,7 @@ const CreatableSelectInput = _ref => {
|
|
|
137
138
|
if (props.isMulti && !newValue) {
|
|
138
139
|
newValue = [];
|
|
139
140
|
}
|
|
140
|
-
props.onChange
|
|
141
|
+
(_props$onChange = props.onChange) === null || _props$onChange === void 0 || _props$onChange.call(props, {
|
|
141
142
|
target: {
|
|
142
143
|
id: props.id,
|
|
143
144
|
name: props.name,
|
|
@@ -219,7 +220,7 @@ CreatableSelectInput.ValueContainer = reactSelect.components.ValueContainer;
|
|
|
219
220
|
var CreatableSelectInput$1 = CreatableSelectInput;
|
|
220
221
|
|
|
221
222
|
// NOTE: This string will be replaced on build time with the package version.
|
|
222
|
-
var version = "20.
|
|
223
|
+
var version = "20.3.0";
|
|
223
224
|
|
|
224
225
|
exports["default"] = CreatableSelectInput$1;
|
|
225
226
|
exports.version = version;
|
|
@@ -106,7 +106,7 @@ const CreatableSelectInput = _ref => {
|
|
|
106
106
|
// state as an array instead of a boolean only.
|
|
107
107
|
// Otherwise the shapes would clash on submission, as
|
|
108
108
|
// Formik will create an array on submission anyways.
|
|
109
|
-
return props.name ?
|
|
109
|
+
return props.name ? "".concat(props.name, ".0") : undefined;
|
|
110
110
|
})()
|
|
111
111
|
},
|
|
112
112
|
persist: () => {}
|
|
@@ -114,6 +114,7 @@ const CreatableSelectInput = _ref => {
|
|
|
114
114
|
props.onBlur && props.onBlur(event);
|
|
115
115
|
} : undefined,
|
|
116
116
|
onChange: (value, info) => {
|
|
117
|
+
var _props$onChange;
|
|
117
118
|
// selectedOptions is either an array, or a single option, or null
|
|
118
119
|
// depending on whether we're in multi-mode or not (isMulti)
|
|
119
120
|
|
|
@@ -121,7 +122,7 @@ const CreatableSelectInput = _ref => {
|
|
|
121
122
|
if (props.isMulti && !newValue) {
|
|
122
123
|
newValue = [];
|
|
123
124
|
}
|
|
124
|
-
props.onChange
|
|
125
|
+
(_props$onChange = props.onChange) === null || _props$onChange === void 0 || _props$onChange.call(props, {
|
|
125
126
|
target: {
|
|
126
127
|
id: props.id,
|
|
127
128
|
name: props.name,
|
|
@@ -203,6 +204,6 @@ CreatableSelectInput.ValueContainer = components.ValueContainer;
|
|
|
203
204
|
var CreatableSelectInput$1 = CreatableSelectInput;
|
|
204
205
|
|
|
205
206
|
// NOTE: This string will be replaced on build time with the package version.
|
|
206
|
-
var version = "20.
|
|
207
|
+
var version = "20.3.0";
|
|
207
208
|
|
|
208
209
|
export { CreatableSelectInput$1 as default, version };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commercetools-uikit/creatable-select-input",
|
|
3
3
|
"description": "An input component 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,21 +21,21 @@
|
|
|
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/design-system": "20.
|
|
26
|
-
"@commercetools-uikit/icons": "20.
|
|
27
|
-
"@commercetools-uikit/select-utils": "20.
|
|
28
|
-
"@commercetools-uikit/spacings": "20.
|
|
29
|
-
"@commercetools-uikit/text": "20.
|
|
30
|
-
"@commercetools-uikit/utils": "20.
|
|
24
|
+
"@commercetools-uikit/constraints": "20.3.0",
|
|
25
|
+
"@commercetools-uikit/design-system": "20.3.0",
|
|
26
|
+
"@commercetools-uikit/icons": "20.3.0",
|
|
27
|
+
"@commercetools-uikit/select-utils": "20.3.0",
|
|
28
|
+
"@commercetools-uikit/spacings": "20.3.0",
|
|
29
|
+
"@commercetools-uikit/text": "20.3.0",
|
|
30
|
+
"@commercetools-uikit/utils": "20.3.0",
|
|
31
31
|
"@emotion/react": "^11.10.5",
|
|
32
32
|
"@emotion/styled": "^11.10.5",
|
|
33
33
|
"lodash": "4.17.21",
|
|
34
|
-
"react-select": "5.10.
|
|
34
|
+
"react-select": "5.10.2"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"react": "19.
|
|
38
|
-
"react-dom": "19.
|
|
37
|
+
"react": "19.2.0",
|
|
38
|
+
"react-dom": "19.2.0",
|
|
39
39
|
"react-intl": "^7.1.4"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|