@commercetools-uikit/async-creatable-select-input 20.4.0 → 20.6.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/README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<!-- THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. -->
|
|
2
|
-
<!-- This file is created by the `
|
|
2
|
+
<!-- This file is created by the `pnpm generate-readme` script. -->
|
|
3
3
|
|
|
4
4
|
# AsyncCreatableSelectInput
|
|
5
5
|
|
|
@@ -10,7 +10,7 @@ An input component getting a selection from an asynchronously loaded list from t
|
|
|
10
10
|
## Installation
|
|
11
11
|
|
|
12
12
|
```
|
|
13
|
-
|
|
13
|
+
pnpm add @commercetools-uikit/async-creatable-select-input
|
|
14
14
|
```
|
|
15
15
|
|
|
16
16
|
```
|
|
@@ -20,7 +20,7 @@ npm --save install @commercetools-uikit/async-creatable-select-input
|
|
|
20
20
|
Additionally install the peer dependencies (if not present)
|
|
21
21
|
|
|
22
22
|
```
|
|
23
|
-
|
|
23
|
+
pnpm add react react-dom react-intl
|
|
24
24
|
```
|
|
25
25
|
|
|
26
26
|
```
|
|
@@ -142,7 +142,7 @@ const AsyncCreatableSelectInput = _ref => {
|
|
|
142
142
|
// state as an array instead of a boolean only.
|
|
143
143
|
// Otherwise the shapes would clash on submission, as
|
|
144
144
|
// Formik will create an array on submission anyways.
|
|
145
|
-
return
|
|
145
|
+
return `${props.name}.0`;
|
|
146
146
|
})()
|
|
147
147
|
},
|
|
148
148
|
persist: () => {}
|
|
@@ -150,13 +150,12 @@ const AsyncCreatableSelectInput = _ref => {
|
|
|
150
150
|
props.onBlur && props.onBlur(event);
|
|
151
151
|
} : undefined,
|
|
152
152
|
onChange: (value, info) => {
|
|
153
|
-
var _props$onChange;
|
|
154
153
|
// wrapping breaking changes made in react-select v3
|
|
155
154
|
let newValue = value;
|
|
156
155
|
if (props.isMulti && !newValue) {
|
|
157
156
|
newValue = [];
|
|
158
157
|
}
|
|
159
|
-
|
|
158
|
+
props.onChange?.({
|
|
160
159
|
target: {
|
|
161
160
|
id: props.id,
|
|
162
161
|
name: props.name,
|
|
@@ -245,7 +244,7 @@ AsyncCreatableSelectInput.ValueContainer = reactSelect.components.ValueContainer
|
|
|
245
244
|
var AsyncCreatableSelectInput$1 = AsyncCreatableSelectInput;
|
|
246
245
|
|
|
247
246
|
// NOTE: This string will be replaced on build time with the package version.
|
|
248
|
-
var version = "20.
|
|
247
|
+
var version = "20.6.0";
|
|
249
248
|
|
|
250
249
|
exports["default"] = AsyncCreatableSelectInput$1;
|
|
251
250
|
exports.version = version;
|
|
@@ -137,7 +137,7 @@ const AsyncCreatableSelectInput = _ref => {
|
|
|
137
137
|
// state as an array instead of a boolean only.
|
|
138
138
|
// Otherwise the shapes would clash on submission, as
|
|
139
139
|
// Formik will create an array on submission anyways.
|
|
140
|
-
return
|
|
140
|
+
return `${props.name}.0`;
|
|
141
141
|
})()
|
|
142
142
|
},
|
|
143
143
|
persist: () => {}
|
|
@@ -145,13 +145,12 @@ const AsyncCreatableSelectInput = _ref => {
|
|
|
145
145
|
props.onBlur && props.onBlur(event);
|
|
146
146
|
} : undefined,
|
|
147
147
|
onChange: (value, info) => {
|
|
148
|
-
var _props$onChange;
|
|
149
148
|
// wrapping breaking changes made in react-select v3
|
|
150
149
|
let newValue = value;
|
|
151
150
|
if (props.isMulti && !newValue) {
|
|
152
151
|
newValue = [];
|
|
153
152
|
}
|
|
154
|
-
|
|
153
|
+
props.onChange?.({
|
|
155
154
|
target: {
|
|
156
155
|
id: props.id,
|
|
157
156
|
name: props.name,
|
|
@@ -240,7 +239,7 @@ AsyncCreatableSelectInput.ValueContainer = reactSelect.components.ValueContainer
|
|
|
240
239
|
var AsyncCreatableSelectInput$1 = AsyncCreatableSelectInput;
|
|
241
240
|
|
|
242
241
|
// NOTE: This string will be replaced on build time with the package version.
|
|
243
|
-
var version = "20.
|
|
242
|
+
var version = "20.6.0";
|
|
244
243
|
|
|
245
244
|
exports["default"] = AsyncCreatableSelectInput$1;
|
|
246
245
|
exports.version = version;
|
|
@@ -122,7 +122,7 @@ const AsyncCreatableSelectInput = _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
|
|
125
|
+
return `${props.name}.0`;
|
|
126
126
|
})()
|
|
127
127
|
},
|
|
128
128
|
persist: () => {}
|
|
@@ -130,13 +130,12 @@ const AsyncCreatableSelectInput = _ref => {
|
|
|
130
130
|
props.onBlur && props.onBlur(event);
|
|
131
131
|
} : undefined,
|
|
132
132
|
onChange: (value, info) => {
|
|
133
|
-
var _props$onChange;
|
|
134
133
|
// wrapping breaking changes made in react-select v3
|
|
135
134
|
let newValue = value;
|
|
136
135
|
if (props.isMulti && !newValue) {
|
|
137
136
|
newValue = [];
|
|
138
137
|
}
|
|
139
|
-
|
|
138
|
+
props.onChange?.({
|
|
140
139
|
target: {
|
|
141
140
|
id: props.id,
|
|
142
141
|
name: props.name,
|
|
@@ -225,6 +224,6 @@ AsyncCreatableSelectInput.ValueContainer = components.ValueContainer;
|
|
|
225
224
|
var AsyncCreatableSelectInput$1 = AsyncCreatableSelectInput;
|
|
226
225
|
|
|
227
226
|
// NOTE: This string will be replaced on build time with the package version.
|
|
228
|
-
var version = "20.
|
|
227
|
+
var version = "20.6.0";
|
|
229
228
|
|
|
230
229
|
export { AsyncCreatableSelectInput$1 as default, version };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commercetools-uikit/async-creatable-select-input",
|
|
3
3
|
"description": "An input component getting a selection from an asynchronously loaded list from the user, and where options can be created by the user.",
|
|
4
|
-
"version": "20.
|
|
4
|
+
"version": "20.6.0",
|
|
5
5
|
"bugs": "https://github.com/commercetools/ui-kit/issues",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -9,7 +9,13 @@
|
|
|
9
9
|
"directory": "packages/components/inputs/async-creatable-select-input"
|
|
10
10
|
},
|
|
11
11
|
"homepage": "https://uikit.commercetools.com",
|
|
12
|
-
"keywords": [
|
|
12
|
+
"keywords": [
|
|
13
|
+
"javascript",
|
|
14
|
+
"typescript",
|
|
15
|
+
"design-system",
|
|
16
|
+
"react",
|
|
17
|
+
"uikit"
|
|
18
|
+
],
|
|
13
19
|
"license": "MIT",
|
|
14
20
|
"publishConfig": {
|
|
15
21
|
"access": "public"
|
|
@@ -17,25 +23,28 @@
|
|
|
17
23
|
"sideEffects": false,
|
|
18
24
|
"main": "dist/commercetools-uikit-async-creatable-select-input.cjs.js",
|
|
19
25
|
"module": "dist/commercetools-uikit-async-creatable-select-input.esm.js",
|
|
20
|
-
"files": [
|
|
26
|
+
"files": [
|
|
27
|
+
"dist"
|
|
28
|
+
],
|
|
21
29
|
"dependencies": {
|
|
22
30
|
"@babel/runtime": "^7.20.13",
|
|
23
31
|
"@babel/runtime-corejs3": "^7.20.13",
|
|
24
|
-
"@commercetools-uikit/constraints": "20.4.0",
|
|
25
|
-
"@commercetools-uikit/design-system": "20.4.0",
|
|
26
|
-
"@commercetools-uikit/icons": "20.4.0",
|
|
27
|
-
"@commercetools-uikit/loading-spinner": "20.4.0",
|
|
28
|
-
"@commercetools-uikit/select-utils": "20.4.0",
|
|
29
|
-
"@commercetools-uikit/spacings": "20.4.0",
|
|
30
|
-
"@commercetools-uikit/text": "20.4.0",
|
|
31
|
-
"@commercetools-uikit/utils": "20.4.0",
|
|
32
32
|
"@emotion/is-prop-valid": "1.4.0",
|
|
33
33
|
"@emotion/react": "^11.10.5",
|
|
34
34
|
"@emotion/styled": "^11.10.5",
|
|
35
|
-
"lodash": "4.
|
|
36
|
-
"react-select": "5.10.2"
|
|
35
|
+
"lodash": "4.18.1",
|
|
36
|
+
"react-select": "5.10.2",
|
|
37
|
+
"@commercetools-uikit/design-system": "^20.6.0",
|
|
38
|
+
"@commercetools-uikit/icons": "^20.6.0",
|
|
39
|
+
"@commercetools-uikit/loading-spinner": "^20.6.0",
|
|
40
|
+
"@commercetools-uikit/spacings": "^20.6.0",
|
|
41
|
+
"@commercetools-uikit/constraints": "^20.6.0",
|
|
42
|
+
"@commercetools-uikit/text": "^20.6.0",
|
|
43
|
+
"@commercetools-uikit/utils": "^20.6.0",
|
|
44
|
+
"@commercetools-uikit/select-utils": "^20.6.0"
|
|
37
45
|
},
|
|
38
46
|
"devDependencies": {
|
|
47
|
+
"prop-types": "^15.8.1",
|
|
39
48
|
"react": "19.2.0",
|
|
40
49
|
"react-dom": "19.2.0",
|
|
41
50
|
"react-intl": "^7.1.4"
|
|
@@ -45,4 +54,4 @@
|
|
|
45
54
|
"react-dom": "19.x",
|
|
46
55
|
"react-intl": "7.x"
|
|
47
56
|
}
|
|
48
|
-
}
|
|
57
|
+
}
|