@commercetools-uikit/select-input 12.2.3 → 12.2.7

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.
@@ -44,9 +44,9 @@ var flatMap__default = /*#__PURE__*/_interopDefault(flatMap);
44
44
  var Select__default = /*#__PURE__*/_interopDefault(Select);
45
45
  var Constraints__default = /*#__PURE__*/_interopDefault(Constraints);
46
46
 
47
- function ownKeys(object, enumerableOnly) { var keys = _Object$keys__default['default'](object); if (_Object$getOwnPropertySymbols__default['default']) { var symbols = _Object$getOwnPropertySymbols__default['default'](object); if (enumerableOnly) { symbols = _filterInstanceProperty__default['default'](symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor__default['default'](object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
47
+ function ownKeys(object, enumerableOnly) { var keys = _Object$keys__default["default"](object); if (_Object$getOwnPropertySymbols__default["default"]) { var symbols = _Object$getOwnPropertySymbols__default["default"](object); if (enumerableOnly) { symbols = _filterInstanceProperty__default["default"](symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor__default["default"](object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
48
48
 
49
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { var _context5; _forEachInstanceProperty__default['default'](_context5 = ownKeys(Object(source), true)).call(_context5, function (key) { _defineProperty(target, key, source[key]); }); } else if (_Object$getOwnPropertyDescriptors__default['default']) { _Object$defineProperties__default['default'](target, _Object$getOwnPropertyDescriptors__default['default'](source)); } else { var _context6; _forEachInstanceProperty__default['default'](_context6 = ownKeys(Object(source))).call(_context6, function (key) { _Object$defineProperty__default['default'](target, key, _Object$getOwnPropertyDescriptor__default['default'](source, key)); }); } } return target; }
49
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { var _context5; _forEachInstanceProperty__default["default"](_context5 = ownKeys(Object(source), true)).call(_context5, function (key) { _defineProperty(target, key, source[key]); }); } else if (_Object$getOwnPropertyDescriptors__default["default"]) { _Object$defineProperties__default["default"](target, _Object$getOwnPropertyDescriptors__default["default"](source)); } else { var _context6; _forEachInstanceProperty__default["default"](_context6 = ownKeys(Object(source))).call(_context6, function (key) { _Object$defineProperty__default["default"](target, key, _Object$getOwnPropertyDescriptor__default["default"](source, key)); }); } } return target; }
50
50
  var customizedComponents = {
51
51
  DropdownIndicator: selectUtils.DropdownIndicator,
52
52
  ClearIndicator: selectUtils.ClearIndicator,
@@ -67,22 +67,22 @@ var SelectInput = function SelectInput(props) {
67
67
  // ];
68
68
  // So we "ungroup" the options by merging them all into one list first.
69
69
 
70
- var optionsWithoutGroups = flatMap__default['default'](props.options, function (option) {
71
- return has__default['default'](option, 'value') ? option : option.options;
70
+ var optionsWithoutGroups = flatMap__default["default"](props.options, function (option) {
71
+ return has__default["default"](option, 'value') ? option : option.options;
72
72
  });
73
- var selectedOptions = props.isMulti ? _filterInstanceProperty__default['default'](_context = _mapInstanceProperty__default['default'](_context2 = props.value // Pass the options in the order selected by the use, so that the
73
+ var selectedOptions = props.isMulti ? _filterInstanceProperty__default["default"](_context = _mapInstanceProperty__default["default"](_context2 = props.value // Pass the options in the order selected by the use, so that the
74
74
  // sorting is not lost
75
75
  ).call(_context2, function (value) {
76
- return _findInstanceProperty__default['default'](optionsWithoutGroups).call(optionsWithoutGroups, function (option) {
76
+ return _findInstanceProperty__default["default"](optionsWithoutGroups).call(optionsWithoutGroups, function (option) {
77
77
  return option.value === value;
78
78
  });
79
- })).call(_context, Boolean) : _findInstanceProperty__default['default'](optionsWithoutGroups).call(optionsWithoutGroups, function (option) {
80
- return has__default['default'](option, 'value') && option.value === props.value;
79
+ })).call(_context, Boolean) : _findInstanceProperty__default["default"](optionsWithoutGroups).call(optionsWithoutGroups, function (option) {
80
+ return has__default["default"](option, 'value') && option.value === props.value;
81
81
  }) || null;
82
- return jsxRuntime.jsx(Constraints__default['default'].Horizontal, {
82
+ return jsxRuntime.jsx(Constraints__default["default"].Horizontal, {
83
83
  max: props.horizontalConstraint,
84
84
  children: jsxRuntime.jsx("div", _objectSpread(_objectSpread({}, utils.filterDataAttributes(props)), {}, {
85
- children: jsxRuntime.jsx(Select__default['default'], {
85
+ children: jsxRuntime.jsx(Select__default["default"], {
86
86
  "aria-label": props['aria-label'],
87
87
  "aria-labelledby": props['aria-labelledby'],
88
88
  autoFocus: props.isAutofocussed,
@@ -152,7 +152,7 @@ var SelectInput = function SelectInput(props) {
152
152
 
153
153
  if (props.isMulti) {
154
154
  if (nextSelectedOptions) {
155
- value = _mapInstanceProperty__default['default'](nextSelectedOptions).call(nextSelectedOptions, function (option) {
155
+ value = _mapInstanceProperty__default["default"](nextSelectedOptions).call(nextSelectedOptions, function (option) {
156
156
  return option.value;
157
157
  });
158
158
  } else {
@@ -196,27 +196,27 @@ SelectInput.defaultProps = {
196
196
  menuPortalZIndex: 1
197
197
  };
198
198
  SelectInput.propTypes = process.env.NODE_ENV !== "production" ? {
199
- horizontalConstraint: PropTypes__default['default'].oneOf([3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 'scale', 'auto']),
199
+ horizontalConstraint: PropTypes__default["default"].oneOf([3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 'scale', 'auto']),
200
200
 
201
201
  /**
202
202
  * Indicates that input has errors
203
203
  */
204
- hasError: PropTypes__default['default'].bool,
204
+ hasError: PropTypes__default["default"].bool,
205
205
 
206
206
  /**
207
207
  * Is the select read-only
208
208
  */
209
- isReadOnly: PropTypes__default['default'].bool,
209
+ isReadOnly: PropTypes__default["default"].bool,
210
210
 
211
211
  /**
212
212
  * Control to indicate on the input if there are selected values that are potentially invalid
213
213
  */
214
- hasWarning: PropTypes__default['default'].bool,
214
+ hasWarning: PropTypes__default["default"].bool,
215
215
 
216
216
  /**
217
217
  * Icon to display on the left of the placeholder text and selected value. Has no effect when isMulti is enabled.
218
218
  */
219
- iconLeft: PropTypes__default['default'].node,
219
+ iconLeft: PropTypes__default["default"].node,
220
220
  // react-select base props
221
221
  //
222
222
  // Currently unsupported props are commented out. In case you need one of
@@ -229,22 +229,22 @@ SelectInput.propTypes = process.env.NODE_ENV !== "production" ? {
229
229
  /**
230
230
  * Aria label (for assistive tech)
231
231
  */
232
- 'aria-label': PropTypes__default['default'].string,
232
+ 'aria-label': PropTypes__default["default"].string,
233
233
 
234
234
  /**
235
235
  * HTML ID of an element that should be used as the label (for assistive tech)
236
236
  */
237
- 'aria-labelledby': PropTypes__default['default'].string,
237
+ 'aria-labelledby': PropTypes__default["default"].string,
238
238
 
239
239
  /**
240
240
  * Focus the control when it is mounted
241
241
  */
242
- isAutofocussed: PropTypes__default['default'].bool,
242
+ isAutofocussed: PropTypes__default["default"].bool,
243
243
 
244
244
  /**
245
245
  * Remove the currently focused option when the user presses backspace
246
246
  */
247
- backspaceRemovesValue: PropTypes__default['default'].bool,
247
+ backspaceRemovesValue: PropTypes__default["default"].bool,
248
248
  // blurInputOnSelect: PropTypes.bool,
249
249
  // captureMenuScroll: PropTypes.bool,
250
250
  // className: PropTypes.string,
@@ -255,7 +255,7 @@ SelectInput.propTypes = process.env.NODE_ENV !== "production" ? {
255
255
  /**
256
256
  * Map of components to overwrite the default ones, see what components you can override
257
257
  */
258
- components: PropTypes__default['default'].objectOf(PropTypes__default['default'].func),
258
+ components: PropTypes__default["default"].objectOf(PropTypes__default["default"].func),
259
259
  // controlShouldRenderValue: PropTypes.bool,
260
260
  // delimiter: PropTypes.string,
261
261
  // escapeClearsValue: PropTypes.bool,
@@ -265,7 +265,7 @@ SelectInput.propTypes = process.env.NODE_ENV !== "production" ? {
265
265
  * <br />
266
266
  * Signature: `(option, rawInput) => boolean`
267
267
  */
268
- filterOption: PropTypes__default['default'].func,
268
+ filterOption: PropTypes__default["default"].func,
269
269
  // formatGroupLabel: PropTypes.func,
270
270
  // formatOptionLabel: PropTypes.func,
271
271
  // getOptionLabel: PropTypes.func,
@@ -276,50 +276,50 @@ SelectInput.propTypes = process.env.NODE_ENV !== "production" ? {
276
276
  * Used as HTML id property. An id is generated automatically when not provided.
277
277
  *This forwarded as react-select's "inputId"
278
278
  */
279
- id: PropTypes__default['default'].string,
280
- inputValue: PropTypes__default['default'].string,
279
+ id: PropTypes__default["default"].string,
280
+ inputValue: PropTypes__default["default"].string,
281
281
 
282
282
  /**
283
283
  * The id to set on the SelectContainer component
284
284
  * This is forwarded as react-select's "id"
285
285
  */
286
- containerId: PropTypes__default['default'].string,
286
+ containerId: PropTypes__default["default"].string,
287
287
  // instanceId: PropTypes.string,
288
288
 
289
289
  /**
290
290
  * Is the select value clearable
291
291
  */
292
- isClearable: PropTypes__default['default'].bool,
292
+ isClearable: PropTypes__default["default"].bool,
293
293
 
294
294
  /**
295
295
  * Is the select disabled
296
296
  */
297
- isDisabled: PropTypes__default['default'].bool,
297
+ isDisabled: PropTypes__default["default"].bool,
298
298
  // isLoading: PropTypes.bool,
299
299
 
300
300
  /**
301
301
  * Override the built-in logic to detect whether an option is disabled
302
302
  */
303
- isOptionDisabled: PropTypes__default['default'].func,
303
+ isOptionDisabled: PropTypes__default["default"].func,
304
304
  // isOptionSelected: PropTypes.func,
305
305
 
306
306
  /**
307
307
  * Support multiple selected options
308
308
  */
309
- isMulti: PropTypes__default['default'].bool,
309
+ isMulti: PropTypes__default["default"].bool,
310
310
  // isRtl: PropTypes.bool,
311
311
 
312
312
  /**
313
313
  * Whether to enable search functionality
314
314
  */
315
- isSearchable: PropTypes__default['default'].bool,
315
+ isSearchable: PropTypes__default["default"].bool,
316
316
  // loadingMessage: PropTypes.func,
317
317
  // minMenuHeight: PropTypes.number,
318
318
 
319
319
  /**
320
320
  * Maximum height of the menu before scrolling
321
321
  */
322
- maxMenuHeight: PropTypes__default['default'].number,
322
+ maxMenuHeight: PropTypes__default["default"].number,
323
323
  // menuIsOpen: PropTypes.bool,
324
324
  // menuPlacement: PropTypes.oneOf(['auto', 'bottom', 'top']),
325
325
  // menuPosition: PropTypes.oneOf(['absolute', 'fixed']),
@@ -327,23 +327,23 @@ SelectInput.propTypes = process.env.NODE_ENV !== "production" ? {
327
327
  /**
328
328
  * Dom element to portal the select menu to
329
329
  */
330
- menuPortalTarget: PropTypes__default['default'].instanceOf(utils.SafeHTMLElement),
330
+ menuPortalTarget: PropTypes__default["default"].instanceOf(utils.SafeHTMLElement),
331
331
 
332
332
  /**
333
333
  * z-index value for the menu portal
334
334
  */
335
- menuPortalZIndex: PropTypes__default['default'].number,
335
+ menuPortalZIndex: PropTypes__default["default"].number,
336
336
 
337
337
  /**
338
338
  * whether the menu should block scroll while open
339
339
  */
340
- menuShouldBlockScroll: PropTypes__default['default'].bool,
340
+ menuShouldBlockScroll: PropTypes__default["default"].bool,
341
341
  // menuShouldScrollIntoView: PropTypes.bool,
342
342
 
343
343
  /**
344
344
  * Name of the HTML Input (optional - without this, no input will be rendered)
345
345
  */
346
- name: PropTypes__default['default'].string,
346
+ name: PropTypes__default["default"].string,
347
347
 
348
348
  /**
349
349
  * Can be used to render a custom value when there are no options (either because of no search results, or all options have been used, or there were none in the first place). Gets called with { inputValue: String }.
@@ -352,14 +352,14 @@ SelectInput.propTypes = process.env.NODE_ENV !== "production" ? {
352
352
  * <br />
353
353
  * Signature: `({ inputValue}) => string`
354
354
  */
355
- noOptionsMessage: PropTypes__default['default'].func,
355
+ noOptionsMessage: PropTypes__default["default"].func,
356
356
 
357
357
  /**
358
358
  * Handle blur events on the control
359
359
  * <br />
360
360
  * Signature: `(event) => void`
361
361
  */
362
- onBlur: PropTypes__default['default'].func,
362
+ onBlur: PropTypes__default["default"].func,
363
363
 
364
364
  /**
365
365
  * Called with a fake event when value changes. The event's target.name will be the name supplied in props. The event's target.value will hold the value.
@@ -368,21 +368,21 @@ SelectInput.propTypes = process.env.NODE_ENV !== "production" ? {
368
368
  * <br />
369
369
  * Signature: `(event) => void`
370
370
  */
371
- onChange: PropTypes__default['default'].func,
371
+ onChange: PropTypes__default["default"].func,
372
372
 
373
373
  /**
374
374
  * Handle focus events on the control
375
375
  * <br />
376
376
  * Signature: `(event) => void`
377
377
  */
378
- onFocus: PropTypes__default['default'].func,
378
+ onFocus: PropTypes__default["default"].func,
379
379
 
380
380
  /**
381
381
  * Handle change events on the input
382
382
  * <br />
383
383
  * Signature: `(newValue, actionMeta) => void`
384
384
  */
385
- onInputChange: PropTypes__default['default'].func,
385
+ onInputChange: PropTypes__default["default"].func,
386
386
  // onKeyDown: PropTypes.func,
387
387
  // onMenuOpen: PropTypes.func,
388
388
  // onMenuClose: PropTypes.func,
@@ -394,20 +394,20 @@ SelectInput.propTypes = process.env.NODE_ENV !== "production" ? {
394
394
  /**
395
395
  * Array of options that populate the select menu
396
396
  */
397
- options: PropTypes__default['default'].arrayOf(PropTypes__default['default'].oneOfType([PropTypes__default['default'].shape({
398
- value: PropTypes__default['default'].string.isRequired
399
- }), PropTypes__default['default'].shape({
400
- options: PropTypes__default['default'].arrayOf(PropTypes__default['default'].shape({
401
- value: PropTypes__default['default'].string.isRequired
397
+ options: PropTypes__default["default"].arrayOf(PropTypes__default["default"].oneOfType([PropTypes__default["default"].shape({
398
+ value: PropTypes__default["default"].string.isRequired
399
+ }), PropTypes__default["default"].shape({
400
+ options: PropTypes__default["default"].arrayOf(PropTypes__default["default"].shape({
401
+ value: PropTypes__default["default"].string.isRequired
402
402
  }))
403
403
  })])),
404
- showOptionGroupDivider: PropTypes__default['default'].bool,
404
+ showOptionGroupDivider: PropTypes__default["default"].bool,
405
405
  // pageSize: PropTypes.number,
406
406
 
407
407
  /**
408
408
  * Placeholder text for the select value
409
409
  */
410
- placeholder: PropTypes__default['default'].string,
410
+ placeholder: PropTypes__default["default"].string,
411
411
  // screenReaderStatus: PropTypes.func,
412
412
  // styles: PropTypes.objectOf(PropTypes.func),
413
413
  // theme: PropTypes.object,
@@ -415,12 +415,12 @@ SelectInput.propTypes = process.env.NODE_ENV !== "production" ? {
415
415
  /**
416
416
  * Sets the tabIndex attribute on the input
417
417
  */
418
- tabIndex: PropTypes__default['default'].string,
418
+ tabIndex: PropTypes__default["default"].string,
419
419
 
420
420
  /**
421
421
  * Select the currently focused option when the user presses tab
422
422
  */
423
- tabSelectsValue: PropTypes__default['default'].bool,
423
+ tabSelectsValue: PropTypes__default["default"].bool,
424
424
 
425
425
  /**
426
426
  * The value of the select; reflected by the selected option
@@ -432,7 +432,7 @@ SelectInput.propTypes = process.env.NODE_ENV !== "production" ? {
432
432
  rest[_key - 1] = arguments[_key];
433
433
  }
434
434
 
435
- return props.isMulti ? (_PropTypes$arrayOf = PropTypes__default['default'].arrayOf(PropTypes__default['default'].string)).isRequired.apply(_PropTypes$arrayOf, _concatInstanceProperty__default['default'](_context3 = [props]).call(_context3, rest)) : PropTypes__default['default'].string.apply(PropTypes__default['default'], _concatInstanceProperty__default['default'](_context4 = [props]).call(_context4, rest));
435
+ return props.isMulti ? (_PropTypes$arrayOf = PropTypes__default["default"].arrayOf(PropTypes__default["default"].string)).isRequired.apply(_PropTypes$arrayOf, _concatInstanceProperty__default["default"](_context3 = [props]).call(_context3, rest)) : PropTypes__default["default"].string.apply(PropTypes__default["default"], _concatInstanceProperty__default["default"](_context4 = [props]).call(_context4, rest));
436
436
  }
437
437
  } : {};
438
438
  utils.addStaticFields(SelectInput, _objectSpread(_objectSpread(_objectSpread({}, Select.components), customizedComponents), {}, {
@@ -440,8 +440,8 @@ utils.addStaticFields(SelectInput, _objectSpread(_objectSpread(_objectSpread({},
440
440
  }));
441
441
  var SelectInput$1 = SelectInput;
442
442
 
443
- // NOTE: This string will be replaced in the `prepare` script by the `scripts/version.js` file.
444
- var version = '12.2.3';
443
+ // NOTE: This string will be replaced on build time with the package version.
444
+ var version = "12.2.7";
445
445
 
446
- exports['default'] = SelectInput$1;
446
+ exports["default"] = SelectInput$1;
447
447
  exports.version = version;
@@ -42,9 +42,9 @@ var flatMap__default = /*#__PURE__*/_interopDefault(flatMap);
42
42
  var Select__default = /*#__PURE__*/_interopDefault(Select);
43
43
  var Constraints__default = /*#__PURE__*/_interopDefault(Constraints);
44
44
 
45
- function ownKeys(object, enumerableOnly) { var keys = _Object$keys__default['default'](object); if (_Object$getOwnPropertySymbols__default['default']) { var symbols = _Object$getOwnPropertySymbols__default['default'](object); if (enumerableOnly) { symbols = _filterInstanceProperty__default['default'](symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor__default['default'](object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
45
+ function ownKeys(object, enumerableOnly) { var keys = _Object$keys__default["default"](object); if (_Object$getOwnPropertySymbols__default["default"]) { var symbols = _Object$getOwnPropertySymbols__default["default"](object); if (enumerableOnly) { symbols = _filterInstanceProperty__default["default"](symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor__default["default"](object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
46
46
 
47
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { var _context5; _forEachInstanceProperty__default['default'](_context5 = ownKeys(Object(source), true)).call(_context5, function (key) { _defineProperty(target, key, source[key]); }); } else if (_Object$getOwnPropertyDescriptors__default['default']) { _Object$defineProperties__default['default'](target, _Object$getOwnPropertyDescriptors__default['default'](source)); } else { var _context6; _forEachInstanceProperty__default['default'](_context6 = ownKeys(Object(source))).call(_context6, function (key) { _Object$defineProperty__default['default'](target, key, _Object$getOwnPropertyDescriptor__default['default'](source, key)); }); } } return target; }
47
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { var _context5; _forEachInstanceProperty__default["default"](_context5 = ownKeys(Object(source), true)).call(_context5, function (key) { _defineProperty(target, key, source[key]); }); } else if (_Object$getOwnPropertyDescriptors__default["default"]) { _Object$defineProperties__default["default"](target, _Object$getOwnPropertyDescriptors__default["default"](source)); } else { var _context6; _forEachInstanceProperty__default["default"](_context6 = ownKeys(Object(source))).call(_context6, function (key) { _Object$defineProperty__default["default"](target, key, _Object$getOwnPropertyDescriptor__default["default"](source, key)); }); } } return target; }
48
48
  var customizedComponents = {
49
49
  DropdownIndicator: selectUtils.DropdownIndicator,
50
50
  ClearIndicator: selectUtils.ClearIndicator,
@@ -65,22 +65,22 @@ var SelectInput = function SelectInput(props) {
65
65
  // ];
66
66
  // So we "ungroup" the options by merging them all into one list first.
67
67
 
68
- var optionsWithoutGroups = flatMap__default['default'](props.options, function (option) {
69
- return has__default['default'](option, 'value') ? option : option.options;
68
+ var optionsWithoutGroups = flatMap__default["default"](props.options, function (option) {
69
+ return has__default["default"](option, 'value') ? option : option.options;
70
70
  });
71
- var selectedOptions = props.isMulti ? _filterInstanceProperty__default['default'](_context = _mapInstanceProperty__default['default'](_context2 = props.value // Pass the options in the order selected by the use, so that the
71
+ var selectedOptions = props.isMulti ? _filterInstanceProperty__default["default"](_context = _mapInstanceProperty__default["default"](_context2 = props.value // Pass the options in the order selected by the use, so that the
72
72
  // sorting is not lost
73
73
  ).call(_context2, function (value) {
74
- return _findInstanceProperty__default['default'](optionsWithoutGroups).call(optionsWithoutGroups, function (option) {
74
+ return _findInstanceProperty__default["default"](optionsWithoutGroups).call(optionsWithoutGroups, function (option) {
75
75
  return option.value === value;
76
76
  });
77
- })).call(_context, Boolean) : _findInstanceProperty__default['default'](optionsWithoutGroups).call(optionsWithoutGroups, function (option) {
78
- return has__default['default'](option, 'value') && option.value === props.value;
77
+ })).call(_context, Boolean) : _findInstanceProperty__default["default"](optionsWithoutGroups).call(optionsWithoutGroups, function (option) {
78
+ return has__default["default"](option, 'value') && option.value === props.value;
79
79
  }) || null;
80
- return jsxRuntime.jsx(Constraints__default['default'].Horizontal, {
80
+ return jsxRuntime.jsx(Constraints__default["default"].Horizontal, {
81
81
  max: props.horizontalConstraint,
82
82
  children: jsxRuntime.jsx("div", _objectSpread(_objectSpread({}, utils.filterDataAttributes(props)), {}, {
83
- children: jsxRuntime.jsx(Select__default['default'], {
83
+ children: jsxRuntime.jsx(Select__default["default"], {
84
84
  "aria-label": props['aria-label'],
85
85
  "aria-labelledby": props['aria-labelledby'],
86
86
  autoFocus: props.isAutofocussed,
@@ -150,7 +150,7 @@ var SelectInput = function SelectInput(props) {
150
150
 
151
151
  if (props.isMulti) {
152
152
  if (nextSelectedOptions) {
153
- value = _mapInstanceProperty__default['default'](nextSelectedOptions).call(nextSelectedOptions, function (option) {
153
+ value = _mapInstanceProperty__default["default"](nextSelectedOptions).call(nextSelectedOptions, function (option) {
154
154
  return option.value;
155
155
  });
156
156
  } else {
@@ -199,8 +199,8 @@ utils.addStaticFields(SelectInput, _objectSpread(_objectSpread(_objectSpread({},
199
199
  }));
200
200
  var SelectInput$1 = SelectInput;
201
201
 
202
- // NOTE: This string will be replaced in the `prepare` script by the `scripts/version.js` file.
203
- var version = '12.2.3';
202
+ // NOTE: This string will be replaced on build time with the package version.
203
+ var version = "12.2.7";
204
204
 
205
- exports['default'] = SelectInput$1;
205
+ exports["default"] = SelectInput$1;
206
206
  exports.version = version;
@@ -417,7 +417,7 @@ addStaticFields(SelectInput, _objectSpread(_objectSpread(_objectSpread({}, compo
417
417
  }));
418
418
  var SelectInput$1 = SelectInput;
419
419
 
420
- // NOTE: This string will be replaced in the `prepare` script by the `scripts/version.js` file.
421
- var version = '12.2.3';
420
+ // NOTE: This string will be replaced on build time with the package version.
421
+ var version = "12.2.7";
422
422
 
423
423
  export { SelectInput$1 as default, version };
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": "12.2.3",
4
+ "version": "12.2.7",
5
5
  "bugs": "https://github.com/commercetools/ui-kit/issues",
6
6
  "repository": {
7
7
  "type": "git",
@@ -11,7 +11,6 @@
11
11
  "homepage": "https://uikit.commercetools.com",
12
12
  "keywords": ["javascript", "design system", "react", "uikit"],
13
13
  "license": "MIT",
14
- "private": false,
15
14
  "publishConfig": {
16
15
  "access": "public"
17
16
  },
@@ -19,18 +18,15 @@
19
18
  "main": "dist/commercetools-uikit-select-input.cjs.js",
20
19
  "module": "dist/commercetools-uikit-select-input.esm.js",
21
20
  "files": ["dist"],
22
- "scripts": {
23
- "prepare": "../../../../scripts/version.js replace"
24
- },
25
21
  "dependencies": {
26
- "@babel/runtime": "7.14.8",
27
- "@babel/runtime-corejs3": "7.14.9",
28
- "@commercetools-uikit/constraints": "12.2.3",
29
- "@commercetools-uikit/design-system": "12.2.3",
30
- "@commercetools-uikit/icons": "12.2.3",
31
- "@commercetools-uikit/select-utils": "12.2.3",
32
- "@commercetools-uikit/utils": "12.2.0",
33
- "@emotion/is-prop-valid": "1.1.0",
22
+ "@babel/runtime": "7.16.3",
23
+ "@babel/runtime-corejs3": "7.16.3",
24
+ "@commercetools-uikit/constraints": "12.2.5",
25
+ "@commercetools-uikit/design-system": "12.2.5",
26
+ "@commercetools-uikit/icons": "12.2.7",
27
+ "@commercetools-uikit/select-utils": "12.2.7",
28
+ "@commercetools-uikit/utils": "12.2.5",
29
+ "@emotion/is-prop-valid": "1.1.1",
34
30
  "@emotion/react": "^11.4.0",
35
31
  "@emotion/styled": "^11.3.0",
36
32
  "lodash": "4.17.21",
@@ -39,7 +35,7 @@
39
35
  },
40
36
  "devDependencies": {
41
37
  "react": "17.0.2",
42
- "react-intl": "5.20.7"
38
+ "react-intl": "5.21.2"
43
39
  },
44
40
  "peerDependencies": {
45
41
  "react": "17.x",