@commercetools-uikit/creatable-select-input 20.5.0 → 20.6.1

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 `yarn generate-readme` script. -->
2
+ <!-- This file is created by the `pnpm generate-readme` script. -->
3
3
 
4
4
  # CreatableSelectInput
5
5
 
@@ -10,7 +10,7 @@ An input component getting a selection from the user, and where options can also
10
10
  ## Installation
11
11
 
12
12
  ```
13
- yarn add @commercetools-uikit/creatable-select-input
13
+ pnpm add @commercetools-uikit/creatable-select-input
14
14
  ```
15
15
 
16
16
  ```
@@ -20,7 +20,7 @@ npm --save install @commercetools-uikit/creatable-select-input
20
20
  Additionally install the peer dependencies (if not present)
21
21
 
22
22
  ```
23
- yarn add react react-dom react-intl
23
+ pnpm add react react-dom react-intl
24
24
  ```
25
25
 
26
26
  ```
@@ -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 ? "".concat(props.name, ".0") : undefined;
127
+ return props.name ? `${props.name}.0` : undefined;
128
128
  })()
129
129
  },
130
130
  persist: () => {}
@@ -132,7 +132,6 @@ const CreatableSelectInput = _ref => {
132
132
  props.onBlur && props.onBlur(event);
133
133
  } : undefined,
134
134
  onChange: (value, info) => {
135
- var _props$onChange;
136
135
  // selectedOptions is either an array, or a single option, or null
137
136
  // depending on whether we're in multi-mode or not (isMulti)
138
137
 
@@ -140,7 +139,7 @@ const CreatableSelectInput = _ref => {
140
139
  if (props.isMulti && !newValue) {
141
140
  newValue = [];
142
141
  }
143
- (_props$onChange = props.onChange) === null || _props$onChange === void 0 || _props$onChange.call(props, {
142
+ props.onChange?.({
144
143
  target: {
145
144
  id: props.id,
146
145
  name: props.name,
@@ -222,7 +221,7 @@ CreatableSelectInput.ValueContainer = reactSelect.components.ValueContainer;
222
221
  var CreatableSelectInput$1 = CreatableSelectInput;
223
222
 
224
223
  // NOTE: This string will be replaced on build time with the package version.
225
- var version = "20.5.0";
224
+ var version = "20.6.1";
226
225
 
227
226
  exports["default"] = CreatableSelectInput$1;
228
227
  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 ? "".concat(props.name, ".0") : undefined;
125
+ return props.name ? `${props.name}.0` : undefined;
126
126
  })()
127
127
  },
128
128
  persist: () => {}
@@ -130,7 +130,6 @@ const CreatableSelectInput = _ref => {
130
130
  props.onBlur && props.onBlur(event);
131
131
  } : undefined,
132
132
  onChange: (value, info) => {
133
- var _props$onChange;
134
133
  // selectedOptions is either an array, or a single option, or null
135
134
  // depending on whether we're in multi-mode or not (isMulti)
136
135
 
@@ -138,7 +137,7 @@ const CreatableSelectInput = _ref => {
138
137
  if (props.isMulti && !newValue) {
139
138
  newValue = [];
140
139
  }
141
- (_props$onChange = props.onChange) === null || _props$onChange === void 0 || _props$onChange.call(props, {
140
+ props.onChange?.({
142
141
  target: {
143
142
  id: props.id,
144
143
  name: props.name,
@@ -220,7 +219,7 @@ CreatableSelectInput.ValueContainer = reactSelect.components.ValueContainer;
220
219
  var CreatableSelectInput$1 = CreatableSelectInput;
221
220
 
222
221
  // NOTE: This string will be replaced on build time with the package version.
223
- var version = "20.5.0";
222
+ var version = "20.6.1";
224
223
 
225
224
  exports["default"] = CreatableSelectInput$1;
226
225
  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 ? "".concat(props.name, ".0") : undefined;
109
+ return props.name ? `${props.name}.0` : undefined;
110
110
  })()
111
111
  },
112
112
  persist: () => {}
@@ -114,7 +114,6 @@ const CreatableSelectInput = _ref => {
114
114
  props.onBlur && props.onBlur(event);
115
115
  } : undefined,
116
116
  onChange: (value, info) => {
117
- var _props$onChange;
118
117
  // selectedOptions is either an array, or a single option, or null
119
118
  // depending on whether we're in multi-mode or not (isMulti)
120
119
 
@@ -122,7 +121,7 @@ const CreatableSelectInput = _ref => {
122
121
  if (props.isMulti && !newValue) {
123
122
  newValue = [];
124
123
  }
125
- (_props$onChange = props.onChange) === null || _props$onChange === void 0 || _props$onChange.call(props, {
124
+ props.onChange?.({
126
125
  target: {
127
126
  id: props.id,
128
127
  name: props.name,
@@ -204,6 +203,6 @@ CreatableSelectInput.ValueContainer = components.ValueContainer;
204
203
  var CreatableSelectInput$1 = CreatableSelectInput;
205
204
 
206
205
  // NOTE: This string will be replaced on build time with the package version.
207
- var version = "20.5.0";
206
+ var version = "20.6.1";
208
207
 
209
208
  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.5.0",
4
+ "version": "20.6.1",
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/creatable-select-input"
10
10
  },
11
11
  "homepage": "https://uikit.commercetools.com",
12
- "keywords": ["javascript", "typescript", "design-system", "react", "uikit"],
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-creatable-select-input.cjs.js",
19
25
  "module": "dist/commercetools-uikit-creatable-select-input.esm.js",
20
- "files": ["dist"],
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.5.0",
25
- "@commercetools-uikit/design-system": "20.5.0",
26
- "@commercetools-uikit/icons": "20.5.0",
27
- "@commercetools-uikit/select-utils": "20.5.0",
28
- "@commercetools-uikit/spacings": "20.5.0",
29
- "@commercetools-uikit/text": "20.5.0",
30
- "@commercetools-uikit/utils": "20.5.0",
31
32
  "@emotion/react": "^11.10.5",
32
33
  "@emotion/styled": "^11.10.5",
33
- "lodash": "4.17.23",
34
- "react-select": "5.10.2"
34
+ "lodash": "4.18.1",
35
+ "react-select": "5.10.2",
36
+ "@commercetools-uikit/constraints": "^20.6.1",
37
+ "@commercetools-uikit/design-system": "^20.6.1",
38
+ "@commercetools-uikit/icons": "^20.6.1",
39
+ "@commercetools-uikit/select-utils": "^20.6.1",
40
+ "@commercetools-uikit/spacings": "^20.6.1",
41
+ "@commercetools-uikit/text": "^20.6.1",
42
+ "@commercetools-uikit/utils": "^20.6.1"
35
43
  },
36
44
  "devDependencies": {
37
- "react": "19.2.0",
38
- "react-dom": "19.2.0",
45
+ "prop-types": "^15.8.1",
46
+ "react": "19.2.6",
47
+ "react-dom": "19.2.6",
39
48
  "react-intl": "^7.1.4"
40
49
  },
41
50
  "peerDependencies": {
@@ -43,4 +52,4 @@
43
52
  "react-dom": "19.x",
44
53
  "react-intl": "7.x"
45
54
  }
46
- }
55
+ }