@commercetools-uikit/async-creatable-select-input 15.10.0 → 15.11.0
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.
|
@@ -21,6 +21,7 @@ var Constraints = require('@commercetools-uikit/constraints');
|
|
|
21
21
|
var LoadingSpinner = require('@commercetools-uikit/loading-spinner');
|
|
22
22
|
var selectUtils = require('@commercetools-uikit/select-utils');
|
|
23
23
|
var utils = require('@commercetools-uikit/utils');
|
|
24
|
+
var designSystem = require('@commercetools-uikit/design-system');
|
|
24
25
|
var jsxRuntime = require('@emotion/react/jsx-runtime');
|
|
25
26
|
|
|
26
27
|
function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
|
|
@@ -67,6 +68,10 @@ var defaultProps = {
|
|
|
67
68
|
|
|
68
69
|
var AsyncCreatableSelectInput = function AsyncCreatableSelectInput(props) {
|
|
69
70
|
var intl = reactIntl.useIntl();
|
|
71
|
+
|
|
72
|
+
var _useTheme = designSystem.useTheme(),
|
|
73
|
+
isNewTheme = _useTheme.isNewTheme;
|
|
74
|
+
|
|
70
75
|
var placeholder = props.placeholder || intl.formatMessage(selectUtils.messages.placeholder);
|
|
71
76
|
|
|
72
77
|
if (!props.isReadOnly) {
|
|
@@ -104,7 +109,8 @@ var AsyncCreatableSelectInput = function AsyncCreatableSelectInput(props) {
|
|
|
104
109
|
isReadOnly: props.isReadOnly,
|
|
105
110
|
iconLeft: props.iconLeft,
|
|
106
111
|
isMulti: props.isMulti,
|
|
107
|
-
hasValue: !isEmpty__default["default"](props.value)
|
|
112
|
+
hasValue: !isEmpty__default["default"](props.value),
|
|
113
|
+
isNewTheme: isNewTheme
|
|
108
114
|
}),
|
|
109
115
|
filterOption: props.filterOption // react-select uses "id" (for the container) and "inputId" (for the input),
|
|
110
116
|
// but we use "id" (for the input) and "containerId" (for the container)
|
|
@@ -257,7 +263,7 @@ AsyncCreatableSelectInput.ValueContainer = reactSelect.components.ValueContainer
|
|
|
257
263
|
var AsyncCreatableSelectInput$1 = AsyncCreatableSelectInput;
|
|
258
264
|
|
|
259
265
|
// NOTE: This string will be replaced on build time with the package version.
|
|
260
|
-
var version = "15.
|
|
266
|
+
var version = "15.11.0";
|
|
261
267
|
|
|
262
268
|
exports["default"] = AsyncCreatableSelectInput$1;
|
|
263
269
|
exports.version = version;
|
|
@@ -21,6 +21,7 @@ var Constraints = require('@commercetools-uikit/constraints');
|
|
|
21
21
|
var LoadingSpinner = require('@commercetools-uikit/loading-spinner');
|
|
22
22
|
var selectUtils = require('@commercetools-uikit/select-utils');
|
|
23
23
|
var utils = require('@commercetools-uikit/utils');
|
|
24
|
+
var designSystem = require('@commercetools-uikit/design-system');
|
|
24
25
|
var jsxRuntime = require('@emotion/react/jsx-runtime');
|
|
25
26
|
|
|
26
27
|
function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
|
|
@@ -65,6 +66,10 @@ var defaultProps = {
|
|
|
65
66
|
|
|
66
67
|
var AsyncCreatableSelectInput = function AsyncCreatableSelectInput(props) {
|
|
67
68
|
var intl = reactIntl.useIntl();
|
|
69
|
+
|
|
70
|
+
var _useTheme = designSystem.useTheme(),
|
|
71
|
+
isNewTheme = _useTheme.isNewTheme;
|
|
72
|
+
|
|
68
73
|
var placeholder = props.placeholder || intl.formatMessage(selectUtils.messages.placeholder);
|
|
69
74
|
|
|
70
75
|
if (!props.isReadOnly) ;
|
|
@@ -98,7 +103,8 @@ var AsyncCreatableSelectInput = function AsyncCreatableSelectInput(props) {
|
|
|
98
103
|
isReadOnly: props.isReadOnly,
|
|
99
104
|
iconLeft: props.iconLeft,
|
|
100
105
|
isMulti: props.isMulti,
|
|
101
|
-
hasValue: !isEmpty__default["default"](props.value)
|
|
106
|
+
hasValue: !isEmpty__default["default"](props.value),
|
|
107
|
+
isNewTheme: isNewTheme
|
|
102
108
|
}),
|
|
103
109
|
filterOption: props.filterOption // react-select uses "id" (for the container) and "inputId" (for the input),
|
|
104
110
|
// but we use "id" (for the input) and "containerId" (for the container)
|
|
@@ -240,7 +246,7 @@ AsyncCreatableSelectInput.ValueContainer = reactSelect.components.ValueContainer
|
|
|
240
246
|
var AsyncCreatableSelectInput$1 = AsyncCreatableSelectInput;
|
|
241
247
|
|
|
242
248
|
// NOTE: This string will be replaced on build time with the package version.
|
|
243
|
-
var version = "15.
|
|
249
|
+
var version = "15.11.0";
|
|
244
250
|
|
|
245
251
|
exports["default"] = AsyncCreatableSelectInput$1;
|
|
246
252
|
exports.version = version;
|
|
@@ -17,6 +17,7 @@ import Constraints from '@commercetools-uikit/constraints';
|
|
|
17
17
|
import LoadingSpinner from '@commercetools-uikit/loading-spinner';
|
|
18
18
|
import { messages, customComponentsWithIcons, createSelectStyles, DropdownIndicator, ClearIndicator, TagRemove } from '@commercetools-uikit/select-utils';
|
|
19
19
|
import { warning, filterDataAttributes } from '@commercetools-uikit/utils';
|
|
20
|
+
import { useTheme } from '@commercetools-uikit/design-system';
|
|
20
21
|
import { jsx } from '@emotion/react/jsx-runtime';
|
|
21
22
|
|
|
22
23
|
function ownKeys(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
@@ -46,6 +47,10 @@ var defaultProps = {
|
|
|
46
47
|
|
|
47
48
|
var AsyncCreatableSelectInput = function AsyncCreatableSelectInput(props) {
|
|
48
49
|
var intl = useIntl();
|
|
50
|
+
|
|
51
|
+
var _useTheme = useTheme(),
|
|
52
|
+
isNewTheme = _useTheme.isNewTheme;
|
|
53
|
+
|
|
49
54
|
var placeholder = props.placeholder || intl.formatMessage(messages.placeholder);
|
|
50
55
|
|
|
51
56
|
if (!props.isReadOnly) {
|
|
@@ -83,7 +88,8 @@ var AsyncCreatableSelectInput = function AsyncCreatableSelectInput(props) {
|
|
|
83
88
|
isReadOnly: props.isReadOnly,
|
|
84
89
|
iconLeft: props.iconLeft,
|
|
85
90
|
isMulti: props.isMulti,
|
|
86
|
-
hasValue: !isEmpty(props.value)
|
|
91
|
+
hasValue: !isEmpty(props.value),
|
|
92
|
+
isNewTheme: isNewTheme
|
|
87
93
|
}),
|
|
88
94
|
filterOption: props.filterOption // react-select uses "id" (for the container) and "inputId" (for the input),
|
|
89
95
|
// but we use "id" (for the input) and "containerId" (for the container)
|
|
@@ -236,6 +242,6 @@ AsyncCreatableSelectInput.ValueContainer = components.ValueContainer;
|
|
|
236
242
|
var AsyncCreatableSelectInput$1 = AsyncCreatableSelectInput;
|
|
237
243
|
|
|
238
244
|
// NOTE: This string will be replaced on build time with the package version.
|
|
239
|
-
var version = "15.
|
|
245
|
+
var version = "15.11.0";
|
|
240
246
|
|
|
241
247
|
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": "15.
|
|
4
|
+
"version": "15.11.0",
|
|
5
5
|
"bugs": "https://github.com/commercetools/ui-kit/issues",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -21,14 +21,14 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@babel/runtime": "^7.19.0",
|
|
23
23
|
"@babel/runtime-corejs3": "^7.19.1",
|
|
24
|
-
"@commercetools-uikit/constraints": "15.
|
|
25
|
-
"@commercetools-uikit/design-system": "15.
|
|
26
|
-
"@commercetools-uikit/icons": "15.
|
|
27
|
-
"@commercetools-uikit/loading-spinner": "15.
|
|
28
|
-
"@commercetools-uikit/select-utils": "15.
|
|
29
|
-
"@commercetools-uikit/spacings": "15.
|
|
30
|
-
"@commercetools-uikit/text": "15.
|
|
31
|
-
"@commercetools-uikit/utils": "15.
|
|
24
|
+
"@commercetools-uikit/constraints": "15.11.0",
|
|
25
|
+
"@commercetools-uikit/design-system": "15.11.0",
|
|
26
|
+
"@commercetools-uikit/icons": "15.11.0",
|
|
27
|
+
"@commercetools-uikit/loading-spinner": "15.11.0",
|
|
28
|
+
"@commercetools-uikit/select-utils": "15.11.0",
|
|
29
|
+
"@commercetools-uikit/spacings": "15.11.0",
|
|
30
|
+
"@commercetools-uikit/text": "15.11.0",
|
|
31
|
+
"@commercetools-uikit/utils": "15.11.0",
|
|
32
32
|
"@emotion/is-prop-valid": "1.2.0",
|
|
33
33
|
"@emotion/react": "^11.4.0",
|
|
34
34
|
"@emotion/styled": "^11.3.0",
|