@commercetools-uikit/select-input 12.2.7 → 12.2.9
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,6 +16,7 @@ var _findInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/insta
|
|
|
16
16
|
var _concatInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/concat');
|
|
17
17
|
var PropTypes = require('prop-types');
|
|
18
18
|
var reactIntl = require('react-intl');
|
|
19
|
+
var isEmpty = require('lodash/isEmpty');
|
|
19
20
|
var react = require('@emotion/react');
|
|
20
21
|
var has = require('lodash/has');
|
|
21
22
|
var flatMap = require('lodash/flatMap');
|
|
@@ -39,6 +40,7 @@ var _mapInstanceProperty__default = /*#__PURE__*/_interopDefault(_mapInstancePro
|
|
|
39
40
|
var _findInstanceProperty__default = /*#__PURE__*/_interopDefault(_findInstanceProperty);
|
|
40
41
|
var _concatInstanceProperty__default = /*#__PURE__*/_interopDefault(_concatInstanceProperty);
|
|
41
42
|
var PropTypes__default = /*#__PURE__*/_interopDefault(PropTypes);
|
|
43
|
+
var isEmpty__default = /*#__PURE__*/_interopDefault(isEmpty);
|
|
42
44
|
var has__default = /*#__PURE__*/_interopDefault(has);
|
|
43
45
|
var flatMap__default = /*#__PURE__*/_interopDefault(flatMap);
|
|
44
46
|
var Select__default = /*#__PURE__*/_interopDefault(Select);
|
|
@@ -102,7 +104,10 @@ var SelectInput = function SelectInput(props) {
|
|
|
102
104
|
showOptionGroupDivider: props.showOptionGroupDivider,
|
|
103
105
|
menuPortalZIndex: props.menuPortalZIndex,
|
|
104
106
|
isDisabled: props.isDisabled,
|
|
105
|
-
isReadOnly: props.isReadOnly
|
|
107
|
+
isReadOnly: props.isReadOnly,
|
|
108
|
+
iconLeft: props.iconLeft,
|
|
109
|
+
isMulti: props.isMulti,
|
|
110
|
+
hasValue: !isEmpty__default["default"](selectedOptions)
|
|
106
111
|
}, theme),
|
|
107
112
|
filterOption: props.filterOption // react-select uses "id" (for the container) and "inputId" (for the input),
|
|
108
113
|
// but we use "id" (for the input) and "containerId" (for the container)
|
|
@@ -441,7 +446,7 @@ utils.addStaticFields(SelectInput, _objectSpread(_objectSpread(_objectSpread({},
|
|
|
441
446
|
var SelectInput$1 = SelectInput;
|
|
442
447
|
|
|
443
448
|
// NOTE: This string will be replaced on build time with the package version.
|
|
444
|
-
var version = "12.2.
|
|
449
|
+
var version = "12.2.9";
|
|
445
450
|
|
|
446
451
|
exports["default"] = SelectInput$1;
|
|
447
452
|
exports.version = version;
|
|
@@ -16,6 +16,7 @@ var _findInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/insta
|
|
|
16
16
|
require('@babel/runtime-corejs3/core-js-stable/instance/concat');
|
|
17
17
|
require('prop-types');
|
|
18
18
|
var reactIntl = require('react-intl');
|
|
19
|
+
var isEmpty = require('lodash/isEmpty');
|
|
19
20
|
var react = require('@emotion/react');
|
|
20
21
|
var has = require('lodash/has');
|
|
21
22
|
var flatMap = require('lodash/flatMap');
|
|
@@ -37,6 +38,7 @@ var _Object$defineProperty__default = /*#__PURE__*/_interopDefault(_Object$defin
|
|
|
37
38
|
var _filterInstanceProperty__default = /*#__PURE__*/_interopDefault(_filterInstanceProperty);
|
|
38
39
|
var _mapInstanceProperty__default = /*#__PURE__*/_interopDefault(_mapInstanceProperty);
|
|
39
40
|
var _findInstanceProperty__default = /*#__PURE__*/_interopDefault(_findInstanceProperty);
|
|
41
|
+
var isEmpty__default = /*#__PURE__*/_interopDefault(isEmpty);
|
|
40
42
|
var has__default = /*#__PURE__*/_interopDefault(has);
|
|
41
43
|
var flatMap__default = /*#__PURE__*/_interopDefault(flatMap);
|
|
42
44
|
var Select__default = /*#__PURE__*/_interopDefault(Select);
|
|
@@ -100,7 +102,10 @@ var SelectInput = function SelectInput(props) {
|
|
|
100
102
|
showOptionGroupDivider: props.showOptionGroupDivider,
|
|
101
103
|
menuPortalZIndex: props.menuPortalZIndex,
|
|
102
104
|
isDisabled: props.isDisabled,
|
|
103
|
-
isReadOnly: props.isReadOnly
|
|
105
|
+
isReadOnly: props.isReadOnly,
|
|
106
|
+
iconLeft: props.iconLeft,
|
|
107
|
+
isMulti: props.isMulti,
|
|
108
|
+
hasValue: !isEmpty__default["default"](selectedOptions)
|
|
104
109
|
}, theme),
|
|
105
110
|
filterOption: props.filterOption // react-select uses "id" (for the container) and "inputId" (for the input),
|
|
106
111
|
// but we use "id" (for the input) and "containerId" (for the container)
|
|
@@ -200,7 +205,7 @@ utils.addStaticFields(SelectInput, _objectSpread(_objectSpread(_objectSpread({},
|
|
|
200
205
|
var SelectInput$1 = SelectInput;
|
|
201
206
|
|
|
202
207
|
// NOTE: This string will be replaced on build time with the package version.
|
|
203
|
-
var version = "12.2.
|
|
208
|
+
var version = "12.2.9";
|
|
204
209
|
|
|
205
210
|
exports["default"] = SelectInput$1;
|
|
206
211
|
exports.version = version;
|
|
@@ -12,6 +12,7 @@ import _findInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instanc
|
|
|
12
12
|
import _concatInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/concat';
|
|
13
13
|
import PropTypes from 'prop-types';
|
|
14
14
|
import { useIntl } from 'react-intl';
|
|
15
|
+
import isEmpty from 'lodash/isEmpty';
|
|
15
16
|
import { useTheme } from '@emotion/react';
|
|
16
17
|
import has from 'lodash/has';
|
|
17
18
|
import flatMap from 'lodash/flatMap';
|
|
@@ -79,7 +80,10 @@ var SelectInput = function SelectInput(props) {
|
|
|
79
80
|
showOptionGroupDivider: props.showOptionGroupDivider,
|
|
80
81
|
menuPortalZIndex: props.menuPortalZIndex,
|
|
81
82
|
isDisabled: props.isDisabled,
|
|
82
|
-
isReadOnly: props.isReadOnly
|
|
83
|
+
isReadOnly: props.isReadOnly,
|
|
84
|
+
iconLeft: props.iconLeft,
|
|
85
|
+
isMulti: props.isMulti,
|
|
86
|
+
hasValue: !isEmpty(selectedOptions)
|
|
83
87
|
}, theme),
|
|
84
88
|
filterOption: props.filterOption // react-select uses "id" (for the container) and "inputId" (for the input),
|
|
85
89
|
// but we use "id" (for the input) and "containerId" (for the container)
|
|
@@ -418,6 +422,6 @@ addStaticFields(SelectInput, _objectSpread(_objectSpread(_objectSpread({}, compo
|
|
|
418
422
|
var SelectInput$1 = SelectInput;
|
|
419
423
|
|
|
420
424
|
// NOTE: This string will be replaced on build time with the package version.
|
|
421
|
-
var version = "12.2.
|
|
425
|
+
var version = "12.2.9";
|
|
422
426
|
|
|
423
427
|
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": "12.2.
|
|
4
|
+
"version": "12.2.9",
|
|
5
5
|
"bugs": "https://github.com/commercetools/ui-kit/issues",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -19,23 +19,23 @@
|
|
|
19
19
|
"module": "dist/commercetools-uikit-select-input.esm.js",
|
|
20
20
|
"files": ["dist"],
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@babel/runtime": "7.16.
|
|
23
|
-
"@babel/runtime-corejs3": "7.16.
|
|
24
|
-
"@commercetools-uikit/constraints": "12.2.
|
|
25
|
-
"@commercetools-uikit/design-system": "12.2.
|
|
26
|
-
"@commercetools-uikit/icons": "12.2.
|
|
27
|
-
"@commercetools-uikit/select-utils": "12.2.
|
|
28
|
-
"@commercetools-uikit/utils": "12.2.
|
|
22
|
+
"@babel/runtime": "7.16.5",
|
|
23
|
+
"@babel/runtime-corejs3": "7.16.5",
|
|
24
|
+
"@commercetools-uikit/constraints": "12.2.9",
|
|
25
|
+
"@commercetools-uikit/design-system": "12.2.9",
|
|
26
|
+
"@commercetools-uikit/icons": "12.2.9",
|
|
27
|
+
"@commercetools-uikit/select-utils": "12.2.9",
|
|
28
|
+
"@commercetools-uikit/utils": "12.2.9",
|
|
29
29
|
"@emotion/is-prop-valid": "1.1.1",
|
|
30
30
|
"@emotion/react": "^11.4.0",
|
|
31
31
|
"@emotion/styled": "^11.3.0",
|
|
32
32
|
"lodash": "4.17.21",
|
|
33
33
|
"prop-types": "15.7.2",
|
|
34
|
-
"react-select": "
|
|
34
|
+
"react-select": "5.2.1"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"react": "17.0.2",
|
|
38
|
-
"react-intl": "5.
|
|
38
|
+
"react-intl": "5.23.0"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
41
|
"react": "17.x",
|