@commercetools-uikit/async-creatable-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 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)
|
|
@@ -431,8 +436,8 @@ utils.addStaticFields(AsyncCreatableSelectInput, _objectSpread(_objectSpread(_ob
|
|
|
431
436
|
}));
|
|
432
437
|
var AsyncCreatableSelectInput$1 = AsyncCreatableSelectInput;
|
|
433
438
|
|
|
434
|
-
// NOTE: This string will be replaced
|
|
435
|
-
var version =
|
|
439
|
+
// NOTE: This string will be replaced on build time with the package version.
|
|
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)
|
|
@@ -191,8 +196,8 @@ utils.addStaticFields(AsyncCreatableSelectInput, _objectSpread(_objectSpread(_ob
|
|
|
191
196
|
}));
|
|
192
197
|
var AsyncCreatableSelectInput$1 = AsyncCreatableSelectInput;
|
|
193
198
|
|
|
194
|
-
// NOTE: This string will be replaced
|
|
195
|
-
var version =
|
|
199
|
+
// NOTE: This string will be replaced on build time with the package version.
|
|
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)
|
|
@@ -411,7 +415,7 @@ addStaticFields(AsyncCreatableSelectInput, _objectSpread(_objectSpread(_objectSp
|
|
|
411
415
|
}));
|
|
412
416
|
var AsyncCreatableSelectInput$1 = AsyncCreatableSelectInput;
|
|
413
417
|
|
|
414
|
-
// NOTE: This string will be replaced
|
|
415
|
-
var version =
|
|
418
|
+
// NOTE: This string will be replaced on build time with the package version.
|
|
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.
|
|
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,31 +18,28 @@
|
|
|
19
18
|
"main": "dist/commercetools-uikit-async-creatable-select-input.cjs.js",
|
|
20
19
|
"module": "dist/commercetools-uikit-async-creatable-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.
|
|
36
|
-
"@emotion/is-prop-valid": "1.1.
|
|
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
|
+
"@emotion/is-prop-valid": "1.1.1",
|
|
37
33
|
"@emotion/react": "^11.4.0",
|
|
38
34
|
"@emotion/styled": "^11.3.0",
|
|
39
35
|
"lodash": "4.17.21",
|
|
40
36
|
"prop-types": "15.7.2",
|
|
41
|
-
"react-select": "
|
|
37
|
+
"react-select": "5.2.1"
|
|
42
38
|
},
|
|
43
39
|
"devDependencies": {
|
|
44
40
|
"react": "17.0.2",
|
|
45
41
|
"react-dom": "17.0.2",
|
|
46
|
-
"react-intl": "5.
|
|
42
|
+
"react-intl": "5.23.0"
|
|
47
43
|
},
|
|
48
44
|
"peerDependencies": {
|
|
49
45
|
"react": "17.x",
|