@commercetools-uikit/creatable-select-input 16.1.0 → 16.1.1
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.
|
@@ -19,7 +19,6 @@ var CreatableSelect = require('react-select/creatable');
|
|
|
19
19
|
var Constraints = require('@commercetools-uikit/constraints');
|
|
20
20
|
var utils = require('@commercetools-uikit/utils');
|
|
21
21
|
var selectUtils = require('@commercetools-uikit/select-utils');
|
|
22
|
-
var designSystem = require('@commercetools-uikit/design-system');
|
|
23
22
|
var jsxRuntime = require('@emotion/react/jsx-runtime');
|
|
24
23
|
|
|
25
24
|
function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
|
|
@@ -59,8 +58,6 @@ const defaultProps = {
|
|
|
59
58
|
};
|
|
60
59
|
const CreatableSelectInput = props => {
|
|
61
60
|
const intl = reactIntl.useIntl();
|
|
62
|
-
const _useTheme = designSystem.useTheme(),
|
|
63
|
-
isNewTheme = _useTheme.isNewTheme;
|
|
64
61
|
if (!props.isReadOnly) {
|
|
65
62
|
process.env.NODE_ENV !== "production" ? utils.warning(typeof props.onChange === 'function', 'CreatableSelectInput: `onChange` is required when input is not read only.') : void 0;
|
|
66
63
|
}
|
|
@@ -90,8 +87,7 @@ const CreatableSelectInput = props => {
|
|
|
90
87
|
isReadOnly: props.isReadOnly,
|
|
91
88
|
iconLeft: props.iconLeft,
|
|
92
89
|
isMulti: props.isMulti,
|
|
93
|
-
hasValue: !isEmpty__default["default"](props.value)
|
|
94
|
-
isNewTheme
|
|
90
|
+
hasValue: !isEmpty__default["default"](props.value)
|
|
95
91
|
}),
|
|
96
92
|
filterOption: props.filterOption
|
|
97
93
|
// react-select uses "id" (for the container) and "inputId" (for the input),
|
|
@@ -244,7 +240,7 @@ CreatableSelectInput.ValueContainer = reactSelect.components.ValueContainer;
|
|
|
244
240
|
var CreatableSelectInput$1 = CreatableSelectInput;
|
|
245
241
|
|
|
246
242
|
// NOTE: This string will be replaced on build time with the package version.
|
|
247
|
-
var version = "16.1.
|
|
243
|
+
var version = "16.1.1";
|
|
248
244
|
|
|
249
245
|
exports["default"] = CreatableSelectInput$1;
|
|
250
246
|
exports.version = version;
|
|
@@ -19,7 +19,6 @@ var CreatableSelect = require('react-select/creatable');
|
|
|
19
19
|
var Constraints = require('@commercetools-uikit/constraints');
|
|
20
20
|
var utils = require('@commercetools-uikit/utils');
|
|
21
21
|
var selectUtils = require('@commercetools-uikit/select-utils');
|
|
22
|
-
var designSystem = require('@commercetools-uikit/design-system');
|
|
23
22
|
var jsxRuntime = require('@emotion/react/jsx-runtime');
|
|
24
23
|
|
|
25
24
|
function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
|
|
@@ -58,8 +57,6 @@ const defaultProps = {
|
|
|
58
57
|
};
|
|
59
58
|
const CreatableSelectInput = props => {
|
|
60
59
|
const intl = reactIntl.useIntl();
|
|
61
|
-
const _useTheme = designSystem.useTheme(),
|
|
62
|
-
isNewTheme = _useTheme.isNewTheme;
|
|
63
60
|
if (!props.isReadOnly) ;
|
|
64
61
|
const placeholder = props.placeholder || intl.formatMessage(selectUtils.messages.placeholder);
|
|
65
62
|
return jsxRuntime.jsx(Constraints__default["default"].Horizontal, {
|
|
@@ -87,8 +84,7 @@ const CreatableSelectInput = props => {
|
|
|
87
84
|
isReadOnly: props.isReadOnly,
|
|
88
85
|
iconLeft: props.iconLeft,
|
|
89
86
|
isMulti: props.isMulti,
|
|
90
|
-
hasValue: !isEmpty__default["default"](props.value)
|
|
91
|
-
isNewTheme
|
|
87
|
+
hasValue: !isEmpty__default["default"](props.value)
|
|
92
88
|
}),
|
|
93
89
|
filterOption: props.filterOption
|
|
94
90
|
// react-select uses "id" (for the container) and "inputId" (for the input),
|
|
@@ -221,7 +217,7 @@ CreatableSelectInput.ValueContainer = reactSelect.components.ValueContainer;
|
|
|
221
217
|
var CreatableSelectInput$1 = CreatableSelectInput;
|
|
222
218
|
|
|
223
219
|
// NOTE: This string will be replaced on build time with the package version.
|
|
224
|
-
var version = "16.1.
|
|
220
|
+
var version = "16.1.1";
|
|
225
221
|
|
|
226
222
|
exports["default"] = CreatableSelectInput$1;
|
|
227
223
|
exports.version = version;
|
|
@@ -15,7 +15,6 @@ import CreatableSelect from 'react-select/creatable';
|
|
|
15
15
|
import Constraints from '@commercetools-uikit/constraints';
|
|
16
16
|
import { warning, filterDataAttributes } from '@commercetools-uikit/utils';
|
|
17
17
|
import { messages, customComponentsWithIcons, createSelectStyles, DropdownIndicator, ClearIndicator, TagRemove } from '@commercetools-uikit/select-utils';
|
|
18
|
-
import { useTheme } from '@commercetools-uikit/design-system';
|
|
19
18
|
import { jsx } from '@emotion/react/jsx-runtime';
|
|
20
19
|
|
|
21
20
|
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; }
|
|
@@ -40,8 +39,6 @@ const defaultProps = {
|
|
|
40
39
|
};
|
|
41
40
|
const CreatableSelectInput = props => {
|
|
42
41
|
const intl = useIntl();
|
|
43
|
-
const _useTheme = useTheme(),
|
|
44
|
-
isNewTheme = _useTheme.isNewTheme;
|
|
45
42
|
if (!props.isReadOnly) {
|
|
46
43
|
process.env.NODE_ENV !== "production" ? warning(typeof props.onChange === 'function', 'CreatableSelectInput: `onChange` is required when input is not read only.') : void 0;
|
|
47
44
|
}
|
|
@@ -71,8 +68,7 @@ const CreatableSelectInput = props => {
|
|
|
71
68
|
isReadOnly: props.isReadOnly,
|
|
72
69
|
iconLeft: props.iconLeft,
|
|
73
70
|
isMulti: props.isMulti,
|
|
74
|
-
hasValue: !isEmpty(props.value)
|
|
75
|
-
isNewTheme
|
|
71
|
+
hasValue: !isEmpty(props.value)
|
|
76
72
|
}),
|
|
77
73
|
filterOption: props.filterOption
|
|
78
74
|
// react-select uses "id" (for the container) and "inputId" (for the input),
|
|
@@ -225,6 +221,6 @@ CreatableSelectInput.ValueContainer = components.ValueContainer;
|
|
|
225
221
|
var CreatableSelectInput$1 = CreatableSelectInput;
|
|
226
222
|
|
|
227
223
|
// NOTE: This string will be replaced on build time with the package version.
|
|
228
|
-
var version = "16.1.
|
|
224
|
+
var version = "16.1.1";
|
|
229
225
|
|
|
230
226
|
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": "16.1.
|
|
4
|
+
"version": "16.1.1",
|
|
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.20.13",
|
|
23
23
|
"@babel/runtime-corejs3": "^7.20.13",
|
|
24
|
-
"@commercetools-uikit/constraints": "16.1.
|
|
25
|
-
"@commercetools-uikit/design-system": "16.1.
|
|
26
|
-
"@commercetools-uikit/icons": "16.1.
|
|
27
|
-
"@commercetools-uikit/select-utils": "16.1.
|
|
28
|
-
"@commercetools-uikit/spacings": "16.1.
|
|
29
|
-
"@commercetools-uikit/text": "16.1.
|
|
30
|
-
"@commercetools-uikit/utils": "16.1.
|
|
24
|
+
"@commercetools-uikit/constraints": "16.1.1",
|
|
25
|
+
"@commercetools-uikit/design-system": "16.1.1",
|
|
26
|
+
"@commercetools-uikit/icons": "16.1.1",
|
|
27
|
+
"@commercetools-uikit/select-utils": "16.1.1",
|
|
28
|
+
"@commercetools-uikit/spacings": "16.1.1",
|
|
29
|
+
"@commercetools-uikit/text": "16.1.1",
|
|
30
|
+
"@commercetools-uikit/utils": "16.1.1",
|
|
31
31
|
"@emotion/react": "^11.10.5",
|
|
32
32
|
"@emotion/styled": "^11.10.5",
|
|
33
33
|
"lodash": "4.17.21",
|