@commercetools-uikit/async-select-input 12.2.4 → 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)
|
|
@@ -403,8 +408,8 @@ utils.addStaticFields(AsyncSelectInput, _objectSpread(_objectSpread(_objectSprea
|
|
|
403
408
|
}));
|
|
404
409
|
var AsyncSelectInput$1 = AsyncSelectInput;
|
|
405
410
|
|
|
406
|
-
// NOTE: This string will be replaced
|
|
407
|
-
var version =
|
|
411
|
+
// NOTE: This string will be replaced on build time with the package version.
|
|
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)
|
|
@@ -189,8 +194,8 @@ utils.addStaticFields(AsyncSelectInput, _objectSpread(_objectSpread(_objectSprea
|
|
|
189
194
|
}));
|
|
190
195
|
var AsyncSelectInput$1 = AsyncSelectInput;
|
|
191
196
|
|
|
192
|
-
// NOTE: This string will be replaced
|
|
193
|
-
var version =
|
|
197
|
+
// NOTE: This string will be replaced on build time with the package version.
|
|
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)
|
|
@@ -383,7 +387,7 @@ addStaticFields(AsyncSelectInput, _objectSpread(_objectSpread(_objectSpread({},
|
|
|
383
387
|
}));
|
|
384
388
|
var AsyncSelectInput$1 = AsyncSelectInput;
|
|
385
389
|
|
|
386
|
-
// NOTE: This string will be replaced
|
|
387
|
-
var version =
|
|
390
|
+
// NOTE: This string will be replaced on build time with the package version.
|
|
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.
|
|
4
|
+
"version": "12.2.9",
|
|
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,30 +18,27 @@
|
|
|
19
18
|
"main": "dist/commercetools-uikit-async-select-input.cjs.js",
|
|
20
19
|
"module": "dist/commercetools-uikit-async-select-input.esm.js",
|
|
21
20
|
"files": ["dist"],
|
|
22
|
-
"scripts": {
|
|
23
|
-
"prepare": "../../../../scripts/version.js replace"
|
|
24
|
-
},
|
|
25
21
|
"dependencies": {
|
|
26
|
-
"@babel/runtime": "7.
|
|
27
|
-
"@babel/runtime-corejs3": "7.
|
|
28
|
-
"@commercetools-uikit/constraints": "12.2.
|
|
29
|
-
"@commercetools-uikit/design-system": "12.2.
|
|
30
|
-
"@commercetools-uikit/icons": "12.2.
|
|
31
|
-
"@commercetools-uikit/loading-spinner": "12.2.
|
|
32
|
-
"@commercetools-uikit/select-utils": "12.2.
|
|
33
|
-
"@commercetools-uikit/spacings": "12.2.
|
|
34
|
-
"@commercetools-uikit/text": "12.2.
|
|
35
|
-
"@commercetools-uikit/utils": "12.2.
|
|
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",
|
|
36
32
|
"@emotion/react": "^11.4.0",
|
|
37
33
|
"@emotion/styled": "^11.3.0",
|
|
38
34
|
"lodash": "4.17.21",
|
|
39
35
|
"prop-types": "15.7.2",
|
|
40
|
-
"react-select": "
|
|
36
|
+
"react-select": "5.2.1"
|
|
41
37
|
},
|
|
42
38
|
"devDependencies": {
|
|
43
39
|
"react": "17.0.2",
|
|
44
40
|
"react-dom": "17.0.2",
|
|
45
|
-
"react-intl": "5.
|
|
41
|
+
"react-intl": "5.23.0"
|
|
46
42
|
},
|
|
47
43
|
"peerDependencies": {
|
|
48
44
|
"react": "17.x",
|