@commercetools-uikit/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.
|
@@ -16,7 +16,6 @@ var _Object$defineProperties = require('@babel/runtime-corejs3/core-js-stable/ob
|
|
|
16
16
|
var _Object$defineProperty = require('@babel/runtime-corejs3/core-js-stable/object/define-property');
|
|
17
17
|
var reactIntl = require('react-intl');
|
|
18
18
|
var isEmpty = require('lodash/isEmpty');
|
|
19
|
-
var react = require('@emotion/react');
|
|
20
19
|
var has = require('lodash/has');
|
|
21
20
|
var flatMap = require('lodash/flatMap');
|
|
22
21
|
var Select = require('react-select');
|
|
@@ -61,7 +60,6 @@ var SelectInput = function SelectInput(props) {
|
|
|
61
60
|
var _context, _context2;
|
|
62
61
|
|
|
63
62
|
var intl = reactIntl.useIntl();
|
|
64
|
-
var theme = react.useTheme();
|
|
65
63
|
var placeholder = props.placeholder || intl.formatMessage(selectUtils.messages.placeholder); // Options can be grouped as
|
|
66
64
|
// const colourOptions = [{ value: 'green', label: 'Green' }];
|
|
67
65
|
// const flavourOptions = [{ value: 'vanilla', label: 'Vanilla' }];
|
|
@@ -111,7 +109,7 @@ var SelectInput = function SelectInput(props) {
|
|
|
111
109
|
iconLeft: props.iconLeft,
|
|
112
110
|
isMulti: props.isMulti,
|
|
113
111
|
hasValue: !isEmpty__default["default"](selectedOptions)
|
|
114
|
-
}
|
|
112
|
+
}),
|
|
115
113
|
filterOption: props.filterOption // react-select uses "id" (for the container) and "inputId" (for the input),
|
|
116
114
|
// but we use "id" (for the input) and "containerId" (for the container)
|
|
117
115
|
// instead.
|
|
@@ -260,7 +258,7 @@ SelectInput.ValueContainer = Select.components.ValueContainer;
|
|
|
260
258
|
var SelectInput$1 = SelectInput;
|
|
261
259
|
|
|
262
260
|
// NOTE: This string will be replaced on build time with the package version.
|
|
263
|
-
var version = "15.
|
|
261
|
+
var version = "15.3.0";
|
|
264
262
|
|
|
265
263
|
exports["default"] = SelectInput$1;
|
|
266
264
|
exports.version = version;
|
|
@@ -16,7 +16,6 @@ var _Object$defineProperties = require('@babel/runtime-corejs3/core-js-stable/ob
|
|
|
16
16
|
var _Object$defineProperty = require('@babel/runtime-corejs3/core-js-stable/object/define-property');
|
|
17
17
|
var reactIntl = require('react-intl');
|
|
18
18
|
var isEmpty = require('lodash/isEmpty');
|
|
19
|
-
var react = require('@emotion/react');
|
|
20
19
|
var has = require('lodash/has');
|
|
21
20
|
var flatMap = require('lodash/flatMap');
|
|
22
21
|
var Select = require('react-select');
|
|
@@ -60,7 +59,6 @@ var SelectInput = function SelectInput(props) {
|
|
|
60
59
|
var _context, _context2;
|
|
61
60
|
|
|
62
61
|
var intl = reactIntl.useIntl();
|
|
63
|
-
var theme = react.useTheme();
|
|
64
62
|
var placeholder = props.placeholder || intl.formatMessage(selectUtils.messages.placeholder); // Options can be grouped as
|
|
65
63
|
// const colourOptions = [{ value: 'green', label: 'Green' }];
|
|
66
64
|
// const flavourOptions = [{ value: 'vanilla', label: 'Vanilla' }];
|
|
@@ -110,7 +108,7 @@ var SelectInput = function SelectInput(props) {
|
|
|
110
108
|
iconLeft: props.iconLeft,
|
|
111
109
|
isMulti: props.isMulti,
|
|
112
110
|
hasValue: !isEmpty__default["default"](selectedOptions)
|
|
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.
|
|
@@ -239,7 +237,7 @@ SelectInput.ValueContainer = Select.components.ValueContainer;
|
|
|
239
237
|
var SelectInput$1 = SelectInput;
|
|
240
238
|
|
|
241
239
|
// NOTE: This string will be replaced on build time with the package version.
|
|
242
|
-
var version = "15.
|
|
240
|
+
var version = "15.3.0";
|
|
243
241
|
|
|
244
242
|
exports["default"] = SelectInput$1;
|
|
245
243
|
exports.version = version;
|
|
@@ -12,7 +12,6 @@ import _Object$defineProperties from '@babel/runtime-corejs3/core-js-stable/obje
|
|
|
12
12
|
import _Object$defineProperty from '@babel/runtime-corejs3/core-js-stable/object/define-property';
|
|
13
13
|
import { useIntl } from 'react-intl';
|
|
14
14
|
import isEmpty from 'lodash/isEmpty';
|
|
15
|
-
import { useTheme } from '@emotion/react';
|
|
16
15
|
import has from 'lodash/has';
|
|
17
16
|
import flatMap from 'lodash/flatMap';
|
|
18
17
|
import Select, { components } from 'react-select';
|
|
@@ -38,7 +37,6 @@ var SelectInput = function SelectInput(props) {
|
|
|
38
37
|
var _context, _context2;
|
|
39
38
|
|
|
40
39
|
var intl = useIntl();
|
|
41
|
-
var theme = useTheme();
|
|
42
40
|
var placeholder = props.placeholder || intl.formatMessage(messages.placeholder); // Options can be grouped as
|
|
43
41
|
// const colourOptions = [{ value: 'green', label: 'Green' }];
|
|
44
42
|
// const flavourOptions = [{ value: 'vanilla', label: 'Vanilla' }];
|
|
@@ -88,7 +86,7 @@ var SelectInput = function SelectInput(props) {
|
|
|
88
86
|
iconLeft: props.iconLeft,
|
|
89
87
|
isMulti: props.isMulti,
|
|
90
88
|
hasValue: !isEmpty(selectedOptions)
|
|
91
|
-
}
|
|
89
|
+
}),
|
|
92
90
|
filterOption: props.filterOption // react-select uses "id" (for the container) and "inputId" (for the input),
|
|
93
91
|
// but we use "id" (for the input) and "containerId" (for the container)
|
|
94
92
|
// instead.
|
|
@@ -237,6 +235,6 @@ SelectInput.ValueContainer = components.ValueContainer;
|
|
|
237
235
|
var SelectInput$1 = SelectInput;
|
|
238
236
|
|
|
239
237
|
// NOTE: This string will be replaced on build time with the package version.
|
|
240
|
-
var version = "15.
|
|
238
|
+
var version = "15.3.0";
|
|
241
239
|
|
|
242
240
|
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": "15.
|
|
4
|
+
"version": "15.3.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.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/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/utils": "15.3.0",
|
|
29
29
|
"@emotion/is-prop-valid": "1.2.0",
|
|
30
30
|
"@emotion/react": "^11.4.0",
|
|
31
31
|
"@emotion/styled": "^11.3.0",
|