@commercetools-uikit/creatable-select-input 12.2.7 → 12.2.9

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.
@@ -14,6 +14,7 @@ var _defineProperty = require('@babel/runtime-corejs3/helpers/defineProperty');
14
14
  var _concatInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/concat');
15
15
  var PropTypes = require('prop-types');
16
16
  var reactIntl = require('react-intl');
17
+ var isEmpty = require('lodash/isEmpty');
17
18
  var react = require('@emotion/react');
18
19
  var reactSelect = require('react-select');
19
20
  var CreatableSelect = require('react-select/creatable');
@@ -34,6 +35,7 @@ var _Object$defineProperties__default = /*#__PURE__*/_interopDefault(_Object$def
34
35
  var _Object$defineProperty__default = /*#__PURE__*/_interopDefault(_Object$defineProperty);
35
36
  var _concatInstanceProperty__default = /*#__PURE__*/_interopDefault(_concatInstanceProperty);
36
37
  var PropTypes__default = /*#__PURE__*/_interopDefault(PropTypes);
38
+ var isEmpty__default = /*#__PURE__*/_interopDefault(isEmpty);
37
39
  var CreatableSelect__default = /*#__PURE__*/_interopDefault(CreatableSelect);
38
40
  var Constraints__default = /*#__PURE__*/_interopDefault(Constraints);
39
41
 
@@ -73,7 +75,10 @@ var CreatableSelectInput = function CreatableSelectInput(props) {
73
75
  showOptionGroupDivider: props.showOptionGroupDivider,
74
76
  menuPortalZIndex: props.menuPortalZIndex,
75
77
  isDisabled: props.isDisabled,
76
- isReadOnly: props.isReadOnly
78
+ isReadOnly: props.isReadOnly,
79
+ iconLeft: props.iconLeft,
80
+ isMulti: props.isMulti,
81
+ hasValue: !isEmpty__default["default"](props.value)
77
82
  }, theme),
78
83
  filterOption: props.filterOption // react-select uses "id" (for the container) and "inputId" (for the input),
79
84
  // but we use "id" (for the input) and "containerId" (for the container)
@@ -417,7 +422,7 @@ utils.addStaticFields(CreatableSelectInput, _objectSpread(_objectSpread(_objectS
417
422
  var CreatableSelectInput$1 = CreatableSelectInput;
418
423
 
419
424
  // NOTE: This string will be replaced on build time with the package version.
420
- var version = "12.2.7";
425
+ var version = "12.2.9";
421
426
 
422
427
  exports["default"] = CreatableSelectInput$1;
423
428
  exports.version = version;
@@ -14,6 +14,7 @@ var _defineProperty = require('@babel/runtime-corejs3/helpers/defineProperty');
14
14
  require('@babel/runtime-corejs3/core-js-stable/instance/concat');
15
15
  require('prop-types');
16
16
  var reactIntl = require('react-intl');
17
+ var isEmpty = require('lodash/isEmpty');
17
18
  var react = require('@emotion/react');
18
19
  var reactSelect = require('react-select');
19
20
  var CreatableSelect = require('react-select/creatable');
@@ -32,6 +33,7 @@ var _forEachInstanceProperty__default = /*#__PURE__*/_interopDefault(_forEachIns
32
33
  var _Object$getOwnPropertyDescriptors__default = /*#__PURE__*/_interopDefault(_Object$getOwnPropertyDescriptors);
33
34
  var _Object$defineProperties__default = /*#__PURE__*/_interopDefault(_Object$defineProperties);
34
35
  var _Object$defineProperty__default = /*#__PURE__*/_interopDefault(_Object$defineProperty);
36
+ var isEmpty__default = /*#__PURE__*/_interopDefault(isEmpty);
35
37
  var CreatableSelect__default = /*#__PURE__*/_interopDefault(CreatableSelect);
36
38
  var Constraints__default = /*#__PURE__*/_interopDefault(Constraints);
37
39
 
@@ -71,7 +73,10 @@ var CreatableSelectInput = function CreatableSelectInput(props) {
71
73
  showOptionGroupDivider: props.showOptionGroupDivider,
72
74
  menuPortalZIndex: props.menuPortalZIndex,
73
75
  isDisabled: props.isDisabled,
74
- isReadOnly: props.isReadOnly
76
+ isReadOnly: props.isReadOnly,
77
+ iconLeft: props.iconLeft,
78
+ isMulti: props.isMulti,
79
+ hasValue: !isEmpty__default["default"](props.value)
75
80
  }, theme),
76
81
  filterOption: props.filterOption // react-select uses "id" (for the container) and "inputId" (for the input),
77
82
  // but we use "id" (for the input) and "containerId" (for the container)
@@ -182,7 +187,7 @@ utils.addStaticFields(CreatableSelectInput, _objectSpread(_objectSpread(_objectS
182
187
  var CreatableSelectInput$1 = CreatableSelectInput;
183
188
 
184
189
  // NOTE: This string will be replaced on build time with the package version.
185
- var version = "12.2.7";
190
+ var version = "12.2.9";
186
191
 
187
192
  exports["default"] = CreatableSelectInput$1;
188
193
  exports.version = version;
@@ -10,6 +10,7 @@ import _defineProperty from '@babel/runtime-corejs3/helpers/esm/defineProperty';
10
10
  import _concatInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/concat';
11
11
  import PropTypes from 'prop-types';
12
12
  import { useIntl } from 'react-intl';
13
+ import isEmpty from 'lodash/isEmpty';
13
14
  import { useTheme } from '@emotion/react';
14
15
  import { components } from 'react-select';
15
16
  import CreatableSelect from 'react-select/creatable';
@@ -54,7 +55,10 @@ var CreatableSelectInput = function CreatableSelectInput(props) {
54
55
  showOptionGroupDivider: props.showOptionGroupDivider,
55
56
  menuPortalZIndex: props.menuPortalZIndex,
56
57
  isDisabled: props.isDisabled,
57
- isReadOnly: props.isReadOnly
58
+ isReadOnly: props.isReadOnly,
59
+ iconLeft: props.iconLeft,
60
+ isMulti: props.isMulti,
61
+ hasValue: !isEmpty(props.value)
58
62
  }, theme),
59
63
  filterOption: props.filterOption // react-select uses "id" (for the container) and "inputId" (for the input),
60
64
  // but we use "id" (for the input) and "containerId" (for the container)
@@ -398,6 +402,6 @@ addStaticFields(CreatableSelectInput, _objectSpread(_objectSpread(_objectSpread(
398
402
  var CreatableSelectInput$1 = CreatableSelectInput;
399
403
 
400
404
  // NOTE: This string will be replaced on build time with the package version.
401
- var version = "12.2.7";
405
+ var version = "12.2.9";
402
406
 
403
407
  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": "12.2.7",
4
+ "version": "12.2.9",
5
5
  "bugs": "https://github.com/commercetools/ui-kit/issues",
6
6
  "repository": {
7
7
  "type": "git",
@@ -19,25 +19,25 @@
19
19
  "module": "dist/commercetools-uikit-creatable-select-input.esm.js",
20
20
  "files": ["dist"],
21
21
  "dependencies": {
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/spacings": "12.2.5",
29
- "@commercetools-uikit/text": "12.2.5",
30
- "@commercetools-uikit/utils": "12.2.5",
22
+ "@babel/runtime": "7.16.5",
23
+ "@babel/runtime-corejs3": "7.16.5",
24
+ "@commercetools-uikit/constraints": "12.2.9",
25
+ "@commercetools-uikit/design-system": "12.2.9",
26
+ "@commercetools-uikit/icons": "12.2.9",
27
+ "@commercetools-uikit/select-utils": "12.2.9",
28
+ "@commercetools-uikit/spacings": "12.2.9",
29
+ "@commercetools-uikit/text": "12.2.9",
30
+ "@commercetools-uikit/utils": "12.2.9",
31
31
  "@emotion/react": "^11.4.0",
32
32
  "@emotion/styled": "^11.3.0",
33
33
  "lodash": "4.17.21",
34
34
  "prop-types": "15.7.2",
35
- "react-select": "4.3.1"
35
+ "react-select": "5.2.1"
36
36
  },
37
37
  "devDependencies": {
38
38
  "react": "17.0.2",
39
39
  "react-dom": "17.0.2",
40
- "react-intl": "5.21.2"
40
+ "react-intl": "5.23.0"
41
41
  },
42
42
  "peerDependencies": {
43
43
  "react": "17.x",