@commercetools-uikit/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 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)
|
|
@@ -416,8 +421,8 @@ utils.addStaticFields(CreatableSelectInput, _objectSpread(_objectSpread(_objectS
|
|
|
416
421
|
}));
|
|
417
422
|
var CreatableSelectInput$1 = CreatableSelectInput;
|
|
418
423
|
|
|
419
|
-
// NOTE: This string will be replaced
|
|
420
|
-
var version =
|
|
424
|
+
// NOTE: This string will be replaced on build time with the package version.
|
|
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)
|
|
@@ -181,8 +186,8 @@ utils.addStaticFields(CreatableSelectInput, _objectSpread(_objectSpread(_objectS
|
|
|
181
186
|
}));
|
|
182
187
|
var CreatableSelectInput$1 = CreatableSelectInput;
|
|
183
188
|
|
|
184
|
-
// NOTE: This string will be replaced
|
|
185
|
-
var version =
|
|
189
|
+
// NOTE: This string will be replaced on build time with the package version.
|
|
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)
|
|
@@ -397,7 +401,7 @@ addStaticFields(CreatableSelectInput, _objectSpread(_objectSpread(_objectSpread(
|
|
|
397
401
|
}));
|
|
398
402
|
var CreatableSelectInput$1 = CreatableSelectInput;
|
|
399
403
|
|
|
400
|
-
// NOTE: This string will be replaced
|
|
401
|
-
var version =
|
|
404
|
+
// NOTE: This string will be replaced on build time with the package version.
|
|
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.
|
|
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,29 +18,26 @@
|
|
|
19
18
|
"main": "dist/commercetools-uikit-creatable-select-input.cjs.js",
|
|
20
19
|
"module": "dist/commercetools-uikit-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/select-utils": "12.2.
|
|
32
|
-
"@commercetools-uikit/spacings": "12.2.
|
|
33
|
-
"@commercetools-uikit/text": "12.2.
|
|
34
|
-
"@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/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",
|
|
35
31
|
"@emotion/react": "^11.4.0",
|
|
36
32
|
"@emotion/styled": "^11.3.0",
|
|
37
33
|
"lodash": "4.17.21",
|
|
38
34
|
"prop-types": "15.7.2",
|
|
39
|
-
"react-select": "
|
|
35
|
+
"react-select": "5.2.1"
|
|
40
36
|
},
|
|
41
37
|
"devDependencies": {
|
|
42
38
|
"react": "17.0.2",
|
|
43
39
|
"react-dom": "17.0.2",
|
|
44
|
-
"react-intl": "5.
|
|
40
|
+
"react-intl": "5.23.0"
|
|
45
41
|
},
|
|
46
42
|
"peerDependencies": {
|
|
47
43
|
"react": "17.x",
|