@commercetools-uikit/creatable-select-input 15.2.4 → 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 CreatableSelect = require('react-select/creatable');
|
|
20
19
|
var Constraints = require('@commercetools-uikit/constraints');
|
|
@@ -61,7 +60,6 @@ var defaultProps = {
|
|
|
61
60
|
|
|
62
61
|
var CreatableSelectInput = function CreatableSelectInput(props) {
|
|
63
62
|
var intl = reactIntl.useIntl();
|
|
64
|
-
var theme = react.useTheme();
|
|
65
63
|
|
|
66
64
|
if (!props.isReadOnly) {
|
|
67
65
|
process.env.NODE_ENV !== "production" ? utils.warning(typeof props.onChange === 'function', 'CreatableSelectInput: `onChange` is required when input is not read only.') : void 0;
|
|
@@ -96,7 +94,7 @@ var CreatableSelectInput = function CreatableSelectInput(props) {
|
|
|
96
94
|
iconLeft: props.iconLeft,
|
|
97
95
|
isMulti: props.isMulti,
|
|
98
96
|
hasValue: !isEmpty__default["default"](props.value)
|
|
99
|
-
}
|
|
97
|
+
}),
|
|
100
98
|
filterOption: props.filterOption // react-select uses "id" (for the container) and "inputId" (for the input),
|
|
101
99
|
// but we use "id" (for the input) and "containerId" (for the container)
|
|
102
100
|
// instead.
|
|
@@ -251,7 +249,7 @@ CreatableSelectInput.ValueContainer = reactSelect.components.ValueContainer;
|
|
|
251
249
|
var CreatableSelectInput$1 = CreatableSelectInput;
|
|
252
250
|
|
|
253
251
|
// NOTE: This string will be replaced on build time with the package version.
|
|
254
|
-
var version = "15.
|
|
252
|
+
var version = "15.3.0";
|
|
255
253
|
|
|
256
254
|
exports["default"] = CreatableSelectInput$1;
|
|
257
255
|
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 CreatableSelect = require('react-select/creatable');
|
|
20
19
|
var Constraints = require('@commercetools-uikit/constraints');
|
|
@@ -60,7 +59,6 @@ var defaultProps = {
|
|
|
60
59
|
|
|
61
60
|
var CreatableSelectInput = function CreatableSelectInput(props) {
|
|
62
61
|
var intl = reactIntl.useIntl();
|
|
63
|
-
var theme = react.useTheme();
|
|
64
62
|
|
|
65
63
|
if (!props.isReadOnly) ;
|
|
66
64
|
|
|
@@ -93,7 +91,7 @@ var CreatableSelectInput = function CreatableSelectInput(props) {
|
|
|
93
91
|
iconLeft: props.iconLeft,
|
|
94
92
|
isMulti: props.isMulti,
|
|
95
93
|
hasValue: !isEmpty__default["default"](props.value)
|
|
96
|
-
}
|
|
94
|
+
}),
|
|
97
95
|
filterOption: props.filterOption // react-select uses "id" (for the container) and "inputId" (for the input),
|
|
98
96
|
// but we use "id" (for the input) and "containerId" (for the container)
|
|
99
97
|
// instead.
|
|
@@ -228,7 +226,7 @@ CreatableSelectInput.ValueContainer = reactSelect.components.ValueContainer;
|
|
|
228
226
|
var CreatableSelectInput$1 = CreatableSelectInput;
|
|
229
227
|
|
|
230
228
|
// NOTE: This string will be replaced on build time with the package version.
|
|
231
|
-
var version = "15.
|
|
229
|
+
var version = "15.3.0";
|
|
232
230
|
|
|
233
231
|
exports["default"] = CreatableSelectInput$1;
|
|
234
232
|
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 CreatableSelect from 'react-select/creatable';
|
|
16
15
|
import Constraints from '@commercetools-uikit/constraints';
|
|
@@ -42,7 +41,6 @@ var defaultProps = {
|
|
|
42
41
|
|
|
43
42
|
var CreatableSelectInput = function CreatableSelectInput(props) {
|
|
44
43
|
var intl = useIntl();
|
|
45
|
-
var theme = useTheme();
|
|
46
44
|
|
|
47
45
|
if (!props.isReadOnly) {
|
|
48
46
|
process.env.NODE_ENV !== "production" ? warning(typeof props.onChange === 'function', 'CreatableSelectInput: `onChange` is required when input is not read only.') : void 0;
|
|
@@ -77,7 +75,7 @@ var CreatableSelectInput = function CreatableSelectInput(props) {
|
|
|
77
75
|
iconLeft: props.iconLeft,
|
|
78
76
|
isMulti: props.isMulti,
|
|
79
77
|
hasValue: !isEmpty(props.value)
|
|
80
|
-
}
|
|
78
|
+
}),
|
|
81
79
|
filterOption: props.filterOption // react-select uses "id" (for the container) and "inputId" (for the input),
|
|
82
80
|
// but we use "id" (for the input) and "containerId" (for the container)
|
|
83
81
|
// instead.
|
|
@@ -232,6 +230,6 @@ CreatableSelectInput.ValueContainer = components.ValueContainer;
|
|
|
232
230
|
var CreatableSelectInput$1 = CreatableSelectInput;
|
|
233
231
|
|
|
234
232
|
// NOTE: This string will be replaced on build time with the package version.
|
|
235
|
-
var version = "15.
|
|
233
|
+
var version = "15.3.0";
|
|
236
234
|
|
|
237
235
|
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": "15.
|
|
4
|
+
"version": "15.3.0",
|
|
5
5
|
"bugs": "https://github.com/commercetools/ui-kit/issues",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -21,13 +21,13 @@
|
|
|
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/select-utils": "15.
|
|
28
|
-
"@commercetools-uikit/spacings": "15.
|
|
29
|
-
"@commercetools-uikit/text": "15.
|
|
30
|
-
"@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/select-utils": "15.3.0",
|
|
28
|
+
"@commercetools-uikit/spacings": "15.3.0",
|
|
29
|
+
"@commercetools-uikit/text": "15.3.0",
|
|
30
|
+
"@commercetools-uikit/utils": "15.3.0",
|
|
31
31
|
"@emotion/react": "^11.4.0",
|
|
32
32
|
"@emotion/styled": "^11.3.0",
|
|
33
33
|
"lodash": "4.17.21",
|