@commercetools-uikit/async-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 AsyncSelect = require('react-select/async');
@@ -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 AsyncSelect__default = /*#__PURE__*/_interopDefault(AsyncSelect);
39
41
  var Constraints__default = /*#__PURE__*/_interopDefault(Constraints);
40
42
  var LoadingSpinner__default = /*#__PURE__*/_interopDefault(LoadingSpinner);
@@ -93,7 +95,10 @@ var AsyncSelectInput = function AsyncSelectInput(props) {
93
95
  showOptionGroupDivider: props.showOptionGroupDivider,
94
96
  menuPortalZIndex: props.menuPortalZIndex,
95
97
  isDisabled: props.isDisabled,
96
- isReadOnly: props.isReadOnly
98
+ isReadOnly: props.isReadOnly,
99
+ iconLeft: props.iconLeft,
100
+ isMulti: props.isMulti,
101
+ hasValue: !isEmpty__default["default"](props.value)
97
102
  }, theme),
98
103
  filterOption: props.filterOption // react-select uses "id" (for the container) and "inputId" (for the input),
99
104
  // but we use "id" (for the input) and "containerId" (for the container)
@@ -404,7 +409,7 @@ utils.addStaticFields(AsyncSelectInput, _objectSpread(_objectSpread(_objectSprea
404
409
  var AsyncSelectInput$1 = AsyncSelectInput;
405
410
 
406
411
  // NOTE: This string will be replaced on build time with the package version.
407
- var version = "12.2.7";
412
+ var version = "12.2.9";
408
413
 
409
414
  exports["default"] = AsyncSelectInput$1;
410
415
  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 AsyncSelect = require('react-select/async');
@@ -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 AsyncSelect__default = /*#__PURE__*/_interopDefault(AsyncSelect);
37
39
  var Constraints__default = /*#__PURE__*/_interopDefault(Constraints);
38
40
  var LoadingSpinner__default = /*#__PURE__*/_interopDefault(LoadingSpinner);
@@ -91,7 +93,10 @@ var AsyncSelectInput = function AsyncSelectInput(props) {
91
93
  showOptionGroupDivider: props.showOptionGroupDivider,
92
94
  menuPortalZIndex: props.menuPortalZIndex,
93
95
  isDisabled: props.isDisabled,
94
- isReadOnly: props.isReadOnly
96
+ isReadOnly: props.isReadOnly,
97
+ iconLeft: props.iconLeft,
98
+ isMulti: props.isMulti,
99
+ hasValue: !isEmpty__default["default"](props.value)
95
100
  }, theme),
96
101
  filterOption: props.filterOption // react-select uses "id" (for the container) and "inputId" (for the input),
97
102
  // but we use "id" (for the input) and "containerId" (for the container)
@@ -190,7 +195,7 @@ utils.addStaticFields(AsyncSelectInput, _objectSpread(_objectSpread(_objectSprea
190
195
  var AsyncSelectInput$1 = AsyncSelectInput;
191
196
 
192
197
  // NOTE: This string will be replaced on build time with the package version.
193
- var version = "12.2.7";
198
+ var version = "12.2.9";
194
199
 
195
200
  exports["default"] = AsyncSelectInput$1;
196
201
  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 AsyncSelect from 'react-select/async';
@@ -73,7 +74,10 @@ var AsyncSelectInput = function AsyncSelectInput(props) {
73
74
  showOptionGroupDivider: props.showOptionGroupDivider,
74
75
  menuPortalZIndex: props.menuPortalZIndex,
75
76
  isDisabled: props.isDisabled,
76
- isReadOnly: props.isReadOnly
77
+ isReadOnly: props.isReadOnly,
78
+ iconLeft: props.iconLeft,
79
+ isMulti: props.isMulti,
80
+ hasValue: !isEmpty(props.value)
77
81
  }, theme),
78
82
  filterOption: props.filterOption // react-select uses "id" (for the container) and "inputId" (for the input),
79
83
  // but we use "id" (for the input) and "containerId" (for the container)
@@ -384,6 +388,6 @@ addStaticFields(AsyncSelectInput, _objectSpread(_objectSpread(_objectSpread({},
384
388
  var AsyncSelectInput$1 = AsyncSelectInput;
385
389
 
386
390
  // NOTE: This string will be replaced on build time with the package version.
387
- var version = "12.2.7";
391
+ var version = "12.2.9";
388
392
 
389
393
  export { AsyncSelectInput$1 as default, version };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@commercetools-uikit/async-select-input",
3
3
  "description": "An input component getting a selection from an asynchronously loaded list from 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,26 +19,26 @@
19
19
  "module": "dist/commercetools-uikit-async-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/react": "^11.4.0",
33
33
  "@emotion/styled": "^11.3.0",
34
34
  "lodash": "4.17.21",
35
35
  "prop-types": "15.7.2",
36
- "react-select": "4.3.1"
36
+ "react-select": "5.2.1"
37
37
  },
38
38
  "devDependencies": {
39
39
  "react": "17.0.2",
40
40
  "react-dom": "17.0.2",
41
- "react-intl": "5.21.2"
41
+ "react-intl": "5.23.0"
42
42
  },
43
43
  "peerDependencies": {
44
44
  "react": "17.x",