@commercetools-uikit/select-input 16.1.0 → 16.2.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.
|
@@ -22,7 +22,6 @@ var Select = require('react-select');
|
|
|
22
22
|
var Constraints = require('@commercetools-uikit/constraints');
|
|
23
23
|
var selectUtils = require('@commercetools-uikit/select-utils');
|
|
24
24
|
var utils = require('@commercetools-uikit/utils');
|
|
25
|
-
var designSystem = require('@commercetools-uikit/design-system');
|
|
26
25
|
var jsxRuntime = require('@emotion/react/jsx-runtime');
|
|
27
26
|
|
|
28
27
|
function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
|
|
@@ -60,8 +59,6 @@ const isOptionObject = option => option.options !== undefined;
|
|
|
60
59
|
const SelectInput = props => {
|
|
61
60
|
var _context, _context2, _context3;
|
|
62
61
|
const intl = reactIntl.useIntl();
|
|
63
|
-
const _useTheme = designSystem.useTheme(),
|
|
64
|
-
isNewTheme = _useTheme.isNewTheme;
|
|
65
62
|
selectUtils.warnIfMenuPortalPropsAreMissing({
|
|
66
63
|
menuPortalZIndex: props.menuPortalZIndex,
|
|
67
64
|
menuPortalTarget: props.menuPortalTarget,
|
|
@@ -112,8 +109,7 @@ const SelectInput = props => {
|
|
|
112
109
|
iconLeft: props.iconLeft,
|
|
113
110
|
isMulti: props.isMulti,
|
|
114
111
|
hasValue: !isEmpty__default["default"](selectedOptions),
|
|
115
|
-
controlShouldRenderValue: props.controlShouldRenderValue
|
|
116
|
-
isNewTheme
|
|
112
|
+
controlShouldRenderValue: props.controlShouldRenderValue
|
|
117
113
|
}),
|
|
118
114
|
filterOption: props.filterOption
|
|
119
115
|
// react-select uses "id" (for the container) and "inputId" (for the input),
|
|
@@ -259,7 +255,7 @@ SelectInput.ValueContainer = Select.components.ValueContainer;
|
|
|
259
255
|
var SelectInput$1 = SelectInput;
|
|
260
256
|
|
|
261
257
|
// NOTE: This string will be replaced on build time with the package version.
|
|
262
|
-
var version = "16.
|
|
258
|
+
var version = "16.2.0";
|
|
263
259
|
|
|
264
260
|
exports["default"] = SelectInput$1;
|
|
265
261
|
exports.version = version;
|
|
@@ -22,7 +22,6 @@ var Select = require('react-select');
|
|
|
22
22
|
var Constraints = require('@commercetools-uikit/constraints');
|
|
23
23
|
var selectUtils = require('@commercetools-uikit/select-utils');
|
|
24
24
|
var utils = require('@commercetools-uikit/utils');
|
|
25
|
-
var designSystem = require('@commercetools-uikit/design-system');
|
|
26
25
|
var jsxRuntime = require('@emotion/react/jsx-runtime');
|
|
27
26
|
|
|
28
27
|
function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
|
|
@@ -59,8 +58,6 @@ const isOptionObject = option => option.options !== undefined;
|
|
|
59
58
|
const SelectInput = props => {
|
|
60
59
|
var _context, _context2, _context3;
|
|
61
60
|
const intl = reactIntl.useIntl();
|
|
62
|
-
const _useTheme = designSystem.useTheme(),
|
|
63
|
-
isNewTheme = _useTheme.isNewTheme;
|
|
64
61
|
selectUtils.warnIfMenuPortalPropsAreMissing({
|
|
65
62
|
menuPortalZIndex: props.menuPortalZIndex,
|
|
66
63
|
menuPortalTarget: props.menuPortalTarget,
|
|
@@ -111,8 +108,7 @@ const SelectInput = props => {
|
|
|
111
108
|
iconLeft: props.iconLeft,
|
|
112
109
|
isMulti: props.isMulti,
|
|
113
110
|
hasValue: !isEmpty__default["default"](selectedOptions),
|
|
114
|
-
controlShouldRenderValue: props.controlShouldRenderValue
|
|
115
|
-
isNewTheme
|
|
111
|
+
controlShouldRenderValue: props.controlShouldRenderValue
|
|
116
112
|
}),
|
|
117
113
|
filterOption: props.filterOption
|
|
118
114
|
// react-select uses "id" (for the container) and "inputId" (for the input),
|
|
@@ -238,7 +234,7 @@ SelectInput.ValueContainer = Select.components.ValueContainer;
|
|
|
238
234
|
var SelectInput$1 = SelectInput;
|
|
239
235
|
|
|
240
236
|
// NOTE: This string will be replaced on build time with the package version.
|
|
241
|
-
var version = "16.
|
|
237
|
+
var version = "16.2.0";
|
|
242
238
|
|
|
243
239
|
exports["default"] = SelectInput$1;
|
|
244
240
|
exports.version = version;
|
|
@@ -18,7 +18,6 @@ import Select, { components } from 'react-select';
|
|
|
18
18
|
import Constraints from '@commercetools-uikit/constraints';
|
|
19
19
|
import { warnIfMenuPortalPropsAreMissing, messages, customComponentsWithIcons, createSelectStyles, DropdownIndicator, ClearIndicator, TagRemove } from '@commercetools-uikit/select-utils';
|
|
20
20
|
import { filterDataAttributes } from '@commercetools-uikit/utils';
|
|
21
|
-
import { useTheme } from '@commercetools-uikit/design-system';
|
|
22
21
|
import { jsx } from '@emotion/react/jsx-runtime';
|
|
23
22
|
|
|
24
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; }
|
|
@@ -37,8 +36,6 @@ const isOptionObject = option => option.options !== undefined;
|
|
|
37
36
|
const SelectInput = props => {
|
|
38
37
|
var _context, _context2, _context3;
|
|
39
38
|
const intl = useIntl();
|
|
40
|
-
const _useTheme = useTheme(),
|
|
41
|
-
isNewTheme = _useTheme.isNewTheme;
|
|
42
39
|
warnIfMenuPortalPropsAreMissing({
|
|
43
40
|
menuPortalZIndex: props.menuPortalZIndex,
|
|
44
41
|
menuPortalTarget: props.menuPortalTarget,
|
|
@@ -89,8 +86,7 @@ const SelectInput = props => {
|
|
|
89
86
|
iconLeft: props.iconLeft,
|
|
90
87
|
isMulti: props.isMulti,
|
|
91
88
|
hasValue: !isEmpty(selectedOptions),
|
|
92
|
-
controlShouldRenderValue: props.controlShouldRenderValue
|
|
93
|
-
isNewTheme
|
|
89
|
+
controlShouldRenderValue: props.controlShouldRenderValue
|
|
94
90
|
}),
|
|
95
91
|
filterOption: props.filterOption
|
|
96
92
|
// react-select uses "id" (for the container) and "inputId" (for the input),
|
|
@@ -236,6 +232,6 @@ SelectInput.ValueContainer = components.ValueContainer;
|
|
|
236
232
|
var SelectInput$1 = SelectInput;
|
|
237
233
|
|
|
238
234
|
// NOTE: This string will be replaced on build time with the package version.
|
|
239
|
-
var version = "16.
|
|
235
|
+
var version = "16.2.0";
|
|
240
236
|
|
|
241
237
|
export { SelectInput$1 as default, version };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commercetools-uikit/select-input",
|
|
3
3
|
"description": "An input component getting a selection from the user.",
|
|
4
|
-
"version": "16.
|
|
4
|
+
"version": "16.2.0",
|
|
5
5
|
"bugs": "https://github.com/commercetools/ui-kit/issues",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -21,11 +21,11 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@babel/runtime": "^7.20.13",
|
|
23
23
|
"@babel/runtime-corejs3": "^7.20.13",
|
|
24
|
-
"@commercetools-uikit/constraints": "16.
|
|
25
|
-
"@commercetools-uikit/design-system": "16.
|
|
26
|
-
"@commercetools-uikit/icons": "16.
|
|
27
|
-
"@commercetools-uikit/select-utils": "16.
|
|
28
|
-
"@commercetools-uikit/utils": "16.
|
|
24
|
+
"@commercetools-uikit/constraints": "16.2.0",
|
|
25
|
+
"@commercetools-uikit/design-system": "16.2.0",
|
|
26
|
+
"@commercetools-uikit/icons": "16.2.0",
|
|
27
|
+
"@commercetools-uikit/select-utils": "16.2.0",
|
|
28
|
+
"@commercetools-uikit/utils": "16.2.0",
|
|
29
29
|
"@emotion/is-prop-valid": "1.2.1",
|
|
30
30
|
"@emotion/react": "^11.10.5",
|
|
31
31
|
"@emotion/styled": "^11.10.5",
|