@commercetools-uikit/select-input 15.1.2 → 15.2.2

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.
@@ -207,10 +207,12 @@ SelectInput.propTypes = process.env.NODE_ENV !== "production" ? {
207
207
  onBlur: _pt__default["default"].func,
208
208
  onChange: _pt__default["default"].func,
209
209
  options: _pt__default["default"].oneOfType([_pt__default["default"].arrayOf(_pt__default["default"].shape({
210
- value: _pt__default["default"].string.isRequired
210
+ value: _pt__default["default"].string.isRequired,
211
+ label: _pt__default["default"].string.isRequired
211
212
  })), _pt__default["default"].arrayOf(_pt__default["default"].shape({
212
213
  options: _pt__default["default"].arrayOf(_pt__default["default"].shape({
213
- value: _pt__default["default"].string.isRequired
214
+ value: _pt__default["default"].string.isRequired,
215
+ label: _pt__default["default"].string.isRequired
214
216
  })).isRequired
215
217
  }))]),
216
218
  showOptionGroupDivider: _pt__default["default"].bool
@@ -258,7 +260,7 @@ SelectInput.ValueContainer = Select.components.ValueContainer;
258
260
  var SelectInput$1 = SelectInput;
259
261
 
260
262
  // NOTE: This string will be replaced on build time with the package version.
261
- var version = "15.1.2";
263
+ var version = "15.2.2";
262
264
 
263
265
  exports["default"] = SelectInput$1;
264
266
  exports.version = version;
@@ -239,7 +239,7 @@ SelectInput.ValueContainer = Select.components.ValueContainer;
239
239
  var SelectInput$1 = SelectInput;
240
240
 
241
241
  // NOTE: This string will be replaced on build time with the package version.
242
- var version = "15.1.2";
242
+ var version = "15.2.2";
243
243
 
244
244
  exports["default"] = SelectInput$1;
245
245
  exports.version = version;
@@ -184,10 +184,12 @@ SelectInput.propTypes = process.env.NODE_ENV !== "production" ? {
184
184
  onBlur: _pt.func,
185
185
  onChange: _pt.func,
186
186
  options: _pt.oneOfType([_pt.arrayOf(_pt.shape({
187
- value: _pt.string.isRequired
187
+ value: _pt.string.isRequired,
188
+ label: _pt.string.isRequired
188
189
  })), _pt.arrayOf(_pt.shape({
189
190
  options: _pt.arrayOf(_pt.shape({
190
- value: _pt.string.isRequired
191
+ value: _pt.string.isRequired,
192
+ label: _pt.string.isRequired
191
193
  })).isRequired
192
194
  }))]),
193
195
  showOptionGroupDivider: _pt.bool
@@ -235,6 +237,6 @@ SelectInput.ValueContainer = components.ValueContainer;
235
237
  var SelectInput$1 = SelectInput;
236
238
 
237
239
  // NOTE: This string will be replaced on build time with the package version.
238
- var version = "15.1.2";
240
+ var version = "15.2.2";
239
241
 
240
242
  export { SelectInput$1 as default, version };
@@ -2,6 +2,7 @@ import type { ReactNode } from 'react';
2
2
  import { type Props as ReactSelectProps } from 'react-select';
3
3
  declare type TOption = {
4
4
  value: string;
5
+ label: string;
5
6
  };
6
7
  declare type TOptionObject = {
7
8
  options: TOption[];
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@commercetools-uikit/select-input",
3
3
  "description": "An input component getting a selection from the user.",
4
- "version": "15.1.2",
4
+ "version": "15.2.2",
5
5
  "bugs": "https://github.com/commercetools/ui-kit/issues",
6
6
  "repository": {
7
7
  "type": "git",
@@ -21,17 +21,17 @@
21
21
  "dependencies": {
22
22
  "@babel/runtime": "^7.17.2",
23
23
  "@babel/runtime-corejs3": "^7.17.2",
24
- "@commercetools-uikit/constraints": "15.1.2",
25
- "@commercetools-uikit/design-system": "15.1.2",
26
- "@commercetools-uikit/icons": "15.1.2",
27
- "@commercetools-uikit/select-utils": "15.1.2",
28
- "@commercetools-uikit/utils": "15.1.2",
29
- "@emotion/is-prop-valid": "1.1.3",
24
+ "@commercetools-uikit/constraints": "15.2.2",
25
+ "@commercetools-uikit/design-system": "15.2.2",
26
+ "@commercetools-uikit/icons": "15.2.2",
27
+ "@commercetools-uikit/select-utils": "15.2.2",
28
+ "@commercetools-uikit/utils": "15.2.2",
29
+ "@emotion/is-prop-valid": "1.2.0",
30
30
  "@emotion/react": "^11.4.0",
31
31
  "@emotion/styled": "^11.3.0",
32
32
  "lodash": "4.17.21",
33
33
  "prop-types": "15.8.1",
34
- "react-select": "5.3.2"
34
+ "react-select": "5.4.0"
35
35
  },
36
36
  "devDependencies": {
37
37
  "react": "17.0.2",