@commercetools-uikit/async-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 AsyncCreatableSelect = require('react-select/async-creatable');
@@ -35,6 +36,7 @@ var _Object$defineProperties__default = /*#__PURE__*/_interopDefault(_Object$def
35
36
  var _Object$defineProperty__default = /*#__PURE__*/_interopDefault(_Object$defineProperty);
36
37
  var _concatInstanceProperty__default = /*#__PURE__*/_interopDefault(_concatInstanceProperty);
37
38
  var PropTypes__default = /*#__PURE__*/_interopDefault(PropTypes);
39
+ var isEmpty__default = /*#__PURE__*/_interopDefault(isEmpty);
38
40
  var AsyncCreatableSelect__default = /*#__PURE__*/_interopDefault(AsyncCreatableSelect);
39
41
  var Constraints__default = /*#__PURE__*/_interopDefault(Constraints);
40
42
  var LoadingSpinner__default = /*#__PURE__*/_interopDefault(LoadingSpinner);
@@ -84,7 +86,10 @@ var AsyncCreatableSelectInput = function AsyncCreatableSelectInput(props) {
84
86
  showOptionGroupDivider: props.showOptionGroupDivider,
85
87
  menuPortalZIndex: props.menuPortalZIndex,
86
88
  isDisabled: props.isDisabled,
87
- isReadOnly: props.isReadOnly
89
+ isReadOnly: props.isReadOnly,
90
+ iconLeft: props.iconLeft,
91
+ isMulti: props.isMulti,
92
+ hasValue: !isEmpty__default["default"](props.value)
88
93
  }, theme),
89
94
  filterOption: props.filterOption // react-select uses "id" (for the container) and "inputId" (for the input),
90
95
  // but we use "id" (for the input) and "containerId" (for the container)
@@ -432,7 +437,7 @@ utils.addStaticFields(AsyncCreatableSelectInput, _objectSpread(_objectSpread(_ob
432
437
  var AsyncCreatableSelectInput$1 = AsyncCreatableSelectInput;
433
438
 
434
439
  // NOTE: This string will be replaced on build time with the package version.
435
- var version = "12.2.7";
440
+ var version = "12.2.9";
436
441
 
437
442
  exports["default"] = AsyncCreatableSelectInput$1;
438
443
  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 AsyncCreatableSelect = require('react-select/async-creatable');
@@ -33,6 +34,7 @@ var _forEachInstanceProperty__default = /*#__PURE__*/_interopDefault(_forEachIns
33
34
  var _Object$getOwnPropertyDescriptors__default = /*#__PURE__*/_interopDefault(_Object$getOwnPropertyDescriptors);
34
35
  var _Object$defineProperties__default = /*#__PURE__*/_interopDefault(_Object$defineProperties);
35
36
  var _Object$defineProperty__default = /*#__PURE__*/_interopDefault(_Object$defineProperty);
37
+ var isEmpty__default = /*#__PURE__*/_interopDefault(isEmpty);
36
38
  var AsyncCreatableSelect__default = /*#__PURE__*/_interopDefault(AsyncCreatableSelect);
37
39
  var Constraints__default = /*#__PURE__*/_interopDefault(Constraints);
38
40
  var LoadingSpinner__default = /*#__PURE__*/_interopDefault(LoadingSpinner);
@@ -82,7 +84,10 @@ var AsyncCreatableSelectInput = function AsyncCreatableSelectInput(props) {
82
84
  showOptionGroupDivider: props.showOptionGroupDivider,
83
85
  menuPortalZIndex: props.menuPortalZIndex,
84
86
  isDisabled: props.isDisabled,
85
- isReadOnly: props.isReadOnly
87
+ isReadOnly: props.isReadOnly,
88
+ iconLeft: props.iconLeft,
89
+ isMulti: props.isMulti,
90
+ hasValue: !isEmpty__default["default"](props.value)
86
91
  }, theme),
87
92
  filterOption: props.filterOption // react-select uses "id" (for the container) and "inputId" (for the input),
88
93
  // but we use "id" (for the input) and "containerId" (for the container)
@@ -192,7 +197,7 @@ utils.addStaticFields(AsyncCreatableSelectInput, _objectSpread(_objectSpread(_ob
192
197
  var AsyncCreatableSelectInput$1 = AsyncCreatableSelectInput;
193
198
 
194
199
  // NOTE: This string will be replaced on build time with the package version.
195
- var version = "12.2.7";
200
+ var version = "12.2.9";
196
201
 
197
202
  exports["default"] = AsyncCreatableSelectInput$1;
198
203
  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 AsyncCreatableSelect from 'react-select/async-creatable';
@@ -64,7 +65,10 @@ var AsyncCreatableSelectInput = function AsyncCreatableSelectInput(props) {
64
65
  showOptionGroupDivider: props.showOptionGroupDivider,
65
66
  menuPortalZIndex: props.menuPortalZIndex,
66
67
  isDisabled: props.isDisabled,
67
- isReadOnly: props.isReadOnly
68
+ isReadOnly: props.isReadOnly,
69
+ iconLeft: props.iconLeft,
70
+ isMulti: props.isMulti,
71
+ hasValue: !isEmpty(props.value)
68
72
  }, theme),
69
73
  filterOption: props.filterOption // react-select uses "id" (for the container) and "inputId" (for the input),
70
74
  // but we use "id" (for the input) and "containerId" (for the container)
@@ -412,6 +416,6 @@ addStaticFields(AsyncCreatableSelectInput, _objectSpread(_objectSpread(_objectSp
412
416
  var AsyncCreatableSelectInput$1 = AsyncCreatableSelectInput;
413
417
 
414
418
  // NOTE: This string will be replaced on build time with the package version.
415
- var version = "12.2.7";
419
+ var version = "12.2.9";
416
420
 
417
421
  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": "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,27 +19,27 @@
19
19
  "module": "dist/commercetools-uikit-async-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/loading-spinner": "12.2.5",
28
- "@commercetools-uikit/select-utils": "12.2.7",
29
- "@commercetools-uikit/spacings": "12.2.5",
30
- "@commercetools-uikit/text": "12.2.5",
31
- "@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/loading-spinner": "12.2.9",
28
+ "@commercetools-uikit/select-utils": "12.2.9",
29
+ "@commercetools-uikit/spacings": "12.2.9",
30
+ "@commercetools-uikit/text": "12.2.9",
31
+ "@commercetools-uikit/utils": "12.2.9",
32
32
  "@emotion/is-prop-valid": "1.1.1",
33
33
  "@emotion/react": "^11.4.0",
34
34
  "@emotion/styled": "^11.3.0",
35
35
  "lodash": "4.17.21",
36
36
  "prop-types": "15.7.2",
37
- "react-select": "4.3.1"
37
+ "react-select": "5.2.1"
38
38
  },
39
39
  "devDependencies": {
40
40
  "react": "17.0.2",
41
41
  "react-dom": "17.0.2",
42
- "react-intl": "5.21.2"
42
+ "react-intl": "5.23.0"
43
43
  },
44
44
  "peerDependencies": {
45
45
  "react": "17.x",