@commercetools-uikit/select-input 12.2.4 → 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)
|
|
@@ -440,8 +445,8 @@ utils.addStaticFields(SelectInput, _objectSpread(_objectSpread(_objectSpread({},
|
|
|
440
445
|
}));
|
|
441
446
|
var SelectInput$1 = SelectInput;
|
|
442
447
|
|
|
443
|
-
// NOTE: This string will be replaced
|
|
444
|
-
var version =
|
|
448
|
+
// NOTE: This string will be replaced on build time with the package version.
|
|
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)
|
|
@@ -199,8 +204,8 @@ utils.addStaticFields(SelectInput, _objectSpread(_objectSpread(_objectSpread({},
|
|
|
199
204
|
}));
|
|
200
205
|
var SelectInput$1 = SelectInput;
|
|
201
206
|
|
|
202
|
-
// NOTE: This string will be replaced
|
|
203
|
-
var version =
|
|
207
|
+
// NOTE: This string will be replaced on build time with the package version.
|
|
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)
|
|
@@ -417,7 +421,7 @@ addStaticFields(SelectInput, _objectSpread(_objectSpread(_objectSpread({}, compo
|
|
|
417
421
|
}));
|
|
418
422
|
var SelectInput$1 = SelectInput;
|
|
419
423
|
|
|
420
|
-
// NOTE: This string will be replaced
|
|
421
|
-
var version =
|
|
424
|
+
// NOTE: This string will be replaced on build time with the package version.
|
|
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",
|
|
@@ -11,7 +11,6 @@
|
|
|
11
11
|
"homepage": "https://uikit.commercetools.com",
|
|
12
12
|
"keywords": ["javascript", "design system", "react", "uikit"],
|
|
13
13
|
"license": "MIT",
|
|
14
|
-
"private": false,
|
|
15
14
|
"publishConfig": {
|
|
16
15
|
"access": "public"
|
|
17
16
|
},
|
|
@@ -19,27 +18,24 @@
|
|
|
19
18
|
"main": "dist/commercetools-uikit-select-input.cjs.js",
|
|
20
19
|
"module": "dist/commercetools-uikit-select-input.esm.js",
|
|
21
20
|
"files": ["dist"],
|
|
22
|
-
"scripts": {
|
|
23
|
-
"prepare": "../../../../scripts/version.js replace"
|
|
24
|
-
},
|
|
25
21
|
"dependencies": {
|
|
26
|
-
"@babel/runtime": "7.
|
|
27
|
-
"@babel/runtime-corejs3": "7.
|
|
28
|
-
"@commercetools-uikit/constraints": "12.2.
|
|
29
|
-
"@commercetools-uikit/design-system": "12.2.
|
|
30
|
-
"@commercetools-uikit/icons": "12.2.
|
|
31
|
-
"@commercetools-uikit/select-utils": "12.2.
|
|
32
|
-
"@commercetools-uikit/utils": "12.2.
|
|
33
|
-
"@emotion/is-prop-valid": "1.1.
|
|
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
|
+
"@emotion/is-prop-valid": "1.1.1",
|
|
34
30
|
"@emotion/react": "^11.4.0",
|
|
35
31
|
"@emotion/styled": "^11.3.0",
|
|
36
32
|
"lodash": "4.17.21",
|
|
37
33
|
"prop-types": "15.7.2",
|
|
38
|
-
"react-select": "
|
|
34
|
+
"react-select": "5.2.1"
|
|
39
35
|
},
|
|
40
36
|
"devDependencies": {
|
|
41
37
|
"react": "17.0.2",
|
|
42
|
-
"react-intl": "5.
|
|
38
|
+
"react-intl": "5.23.0"
|
|
43
39
|
},
|
|
44
40
|
"peerDependencies": {
|
|
45
41
|
"react": "17.x",
|