@commercetools-uikit/async-select-input 15.2.3 → 15.3.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.
|
@@ -14,7 +14,6 @@ var _defineProperty = require('@babel/runtime-corejs3/helpers/defineProperty');
|
|
|
14
14
|
var _pt = require('prop-types');
|
|
15
15
|
var reactIntl = require('react-intl');
|
|
16
16
|
var isEmpty = require('lodash/isEmpty');
|
|
17
|
-
var react = require('@emotion/react');
|
|
18
17
|
var reactSelect = require('react-select');
|
|
19
18
|
var AsyncSelect = require('react-select/async');
|
|
20
19
|
var utils = require('@commercetools-uikit/utils');
|
|
@@ -65,7 +64,6 @@ var defaultProps = {
|
|
|
65
64
|
};
|
|
66
65
|
|
|
67
66
|
var AsyncSelectInput = function AsyncSelectInput(props) {
|
|
68
|
-
var theme = react.useTheme();
|
|
69
67
|
var intl = reactIntl.useIntl();
|
|
70
68
|
|
|
71
69
|
if (!props.isReadOnly) {
|
|
@@ -110,7 +108,7 @@ var AsyncSelectInput = function AsyncSelectInput(props) {
|
|
|
110
108
|
iconLeft: props.iconLeft,
|
|
111
109
|
isMulti: props.isMulti,
|
|
112
110
|
hasValue: !isEmpty__default["default"](props.value)
|
|
113
|
-
}
|
|
111
|
+
}),
|
|
114
112
|
filterOption: props.filterOption // react-select uses "id" (for the container) and "inputId" (for the input),
|
|
115
113
|
// but we use "id" (for the input) and "containerId" (for the container)
|
|
116
114
|
// instead.
|
|
@@ -254,7 +252,7 @@ AsyncSelectInput.ValueContainer = reactSelect.components.ValueContainer;
|
|
|
254
252
|
var AsyncSelectInput$1 = AsyncSelectInput;
|
|
255
253
|
|
|
256
254
|
// NOTE: This string will be replaced on build time with the package version.
|
|
257
|
-
var version = "15.
|
|
255
|
+
var version = "15.3.0";
|
|
258
256
|
|
|
259
257
|
exports["default"] = AsyncSelectInput$1;
|
|
260
258
|
exports.version = version;
|
|
@@ -14,7 +14,6 @@ var _defineProperty = require('@babel/runtime-corejs3/helpers/defineProperty');
|
|
|
14
14
|
require('prop-types');
|
|
15
15
|
var reactIntl = require('react-intl');
|
|
16
16
|
var isEmpty = require('lodash/isEmpty');
|
|
17
|
-
var react = require('@emotion/react');
|
|
18
17
|
var reactSelect = require('react-select');
|
|
19
18
|
var AsyncSelect = require('react-select/async');
|
|
20
19
|
var utils = require('@commercetools-uikit/utils');
|
|
@@ -64,7 +63,6 @@ var defaultProps = {
|
|
|
64
63
|
};
|
|
65
64
|
|
|
66
65
|
var AsyncSelectInput = function AsyncSelectInput(props) {
|
|
67
|
-
var theme = react.useTheme();
|
|
68
66
|
var intl = reactIntl.useIntl();
|
|
69
67
|
|
|
70
68
|
if (!props.isReadOnly) ;
|
|
@@ -107,7 +105,7 @@ var AsyncSelectInput = function AsyncSelectInput(props) {
|
|
|
107
105
|
iconLeft: props.iconLeft,
|
|
108
106
|
isMulti: props.isMulti,
|
|
109
107
|
hasValue: !isEmpty__default["default"](props.value)
|
|
110
|
-
}
|
|
108
|
+
}),
|
|
111
109
|
filterOption: props.filterOption // react-select uses "id" (for the container) and "inputId" (for the input),
|
|
112
110
|
// but we use "id" (for the input) and "containerId" (for the container)
|
|
113
111
|
// instead.
|
|
@@ -238,7 +236,7 @@ AsyncSelectInput.ValueContainer = reactSelect.components.ValueContainer;
|
|
|
238
236
|
var AsyncSelectInput$1 = AsyncSelectInput;
|
|
239
237
|
|
|
240
238
|
// NOTE: This string will be replaced on build time with the package version.
|
|
241
|
-
var version = "15.
|
|
239
|
+
var version = "15.3.0";
|
|
242
240
|
|
|
243
241
|
exports["default"] = AsyncSelectInput$1;
|
|
244
242
|
exports.version = version;
|
|
@@ -10,7 +10,6 @@ import _defineProperty from '@babel/runtime-corejs3/helpers/esm/defineProperty';
|
|
|
10
10
|
import _pt from 'prop-types';
|
|
11
11
|
import { useIntl } from 'react-intl';
|
|
12
12
|
import isEmpty from 'lodash/isEmpty';
|
|
13
|
-
import { useTheme } from '@emotion/react';
|
|
14
13
|
import { components } from 'react-select';
|
|
15
14
|
import AsyncSelect from 'react-select/async';
|
|
16
15
|
import { warning, filterDataAttributes } from '@commercetools-uikit/utils';
|
|
@@ -45,7 +44,6 @@ var defaultProps = {
|
|
|
45
44
|
};
|
|
46
45
|
|
|
47
46
|
var AsyncSelectInput = function AsyncSelectInput(props) {
|
|
48
|
-
var theme = useTheme();
|
|
49
47
|
var intl = useIntl();
|
|
50
48
|
|
|
51
49
|
if (!props.isReadOnly) {
|
|
@@ -90,7 +88,7 @@ var AsyncSelectInput = function AsyncSelectInput(props) {
|
|
|
90
88
|
iconLeft: props.iconLeft,
|
|
91
89
|
isMulti: props.isMulti,
|
|
92
90
|
hasValue: !isEmpty(props.value)
|
|
93
|
-
}
|
|
91
|
+
}),
|
|
94
92
|
filterOption: props.filterOption // react-select uses "id" (for the container) and "inputId" (for the input),
|
|
95
93
|
// but we use "id" (for the input) and "containerId" (for the container)
|
|
96
94
|
// instead.
|
|
@@ -234,6 +232,6 @@ AsyncSelectInput.ValueContainer = components.ValueContainer;
|
|
|
234
232
|
var AsyncSelectInput$1 = AsyncSelectInput;
|
|
235
233
|
|
|
236
234
|
// NOTE: This string will be replaced on build time with the package version.
|
|
237
|
-
var version = "15.
|
|
235
|
+
var version = "15.3.0";
|
|
238
236
|
|
|
239
237
|
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": "15.
|
|
4
|
+
"version": "15.3.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.3.0",
|
|
25
|
+
"@commercetools-uikit/design-system": "15.3.0",
|
|
26
|
+
"@commercetools-uikit/icons": "15.3.0",
|
|
27
|
+
"@commercetools-uikit/loading-spinner": "15.3.0",
|
|
28
|
+
"@commercetools-uikit/select-utils": "15.3.0",
|
|
29
|
+
"@commercetools-uikit/spacings": "15.3.0",
|
|
30
|
+
"@commercetools-uikit/text": "15.3.0",
|
|
31
|
+
"@commercetools-uikit/utils": "15.3.0",
|
|
32
32
|
"@emotion/react": "^11.4.0",
|
|
33
33
|
"@emotion/styled": "^11.3.0",
|
|
34
34
|
"lodash": "4.17.21",
|