@commercetools-uikit/select-utils 17.0.1 → 17.1.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.
|
@@ -51,8 +51,8 @@ var messages$1 = reactIntl.defineMessages({
|
|
|
51
51
|
});
|
|
52
52
|
|
|
53
53
|
const _excluded = ["ref", "onMouseDown"];
|
|
54
|
-
function ownKeys$6(
|
|
55
|
-
function _objectSpread$6(
|
|
54
|
+
function ownKeys$6(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
55
|
+
function _objectSpread$6(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$6(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$6(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
56
56
|
const ClearIndicator = props => {
|
|
57
57
|
const intl = reactIntl.useIntl();
|
|
58
58
|
const getStyles = props.getStyles,
|
|
@@ -80,8 +80,8 @@ const ClearIndicator = props => {
|
|
|
80
80
|
ClearIndicator.displayName = 'ClearIndicator';
|
|
81
81
|
var ClearIndicator$1 = ClearIndicator;
|
|
82
82
|
|
|
83
|
-
function ownKeys$5(
|
|
84
|
-
function _objectSpread$5(
|
|
83
|
+
function ownKeys$5(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
84
|
+
function _objectSpread$5(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$5(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$5(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
85
85
|
// see https://github.com/JedWatson/react-select/blob/44e9fb29b230e49a754a2f0d6f30c2250aa45009/src/components/MultiValue.js
|
|
86
86
|
const removeProps = ['onClick', 'onTouchEnd', 'onMouseDown'];
|
|
87
87
|
const TagRemove = props => {
|
|
@@ -101,8 +101,8 @@ const TagRemove = props => {
|
|
|
101
101
|
TagRemove.displayName = 'TagRemove';
|
|
102
102
|
var TagRemove$1 = TagRemove;
|
|
103
103
|
|
|
104
|
-
function ownKeys$4(
|
|
105
|
-
function _objectSpread$4(
|
|
104
|
+
function ownKeys$4(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
105
|
+
function _objectSpread$4(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$4(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$4(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
106
106
|
const DropdownIndicator = props => jsxRuntime.jsx(reactSelect.components.DropdownIndicator, _objectSpread$4(_objectSpread$4({}, props), {}, {
|
|
107
107
|
children: jsxRuntime.jsx(icons.CaretDownIcon, {
|
|
108
108
|
color: props.isDisabled ? 'neutral60' : undefined,
|
|
@@ -112,8 +112,8 @@ const DropdownIndicator = props => jsxRuntime.jsx(reactSelect.components.Dropdow
|
|
|
112
112
|
DropdownIndicator.displayName = 'DropdownIndicator';
|
|
113
113
|
var DropdownIndicator$1 = DropdownIndicator;
|
|
114
114
|
|
|
115
|
-
function ownKeys$3(
|
|
116
|
-
function _objectSpread$3(
|
|
115
|
+
function ownKeys$3(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
116
|
+
function _objectSpread$3(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$3(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$3(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
117
117
|
const SearchIconDropdownIndicator = props => {
|
|
118
118
|
return jsxRuntime.jsx(reactSelect.components.DropdownIndicator, _objectSpread$3(_objectSpread$3({}, props), {}, {
|
|
119
119
|
children: jsxRuntime.jsx(icons.SearchIcon, {
|
|
@@ -125,8 +125,8 @@ const SearchIconDropdownIndicator = props => {
|
|
|
125
125
|
SearchIconDropdownIndicator.displayName = 'SearchIconDropdownIndicator';
|
|
126
126
|
var SearchIconDropdownIndicator$1 = SearchIconDropdownIndicator;
|
|
127
127
|
|
|
128
|
-
function ownKeys$2(
|
|
129
|
-
function _objectSpread$2(
|
|
128
|
+
function ownKeys$2(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
129
|
+
function _objectSpread$2(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$2(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$2(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
130
130
|
const getDefaultComponent = type => {
|
|
131
131
|
if (type === 'singleValue') return reactSelect.components.SingleValue;
|
|
132
132
|
if (type === 'placeholder') return reactSelect.components.Placeholder;
|
|
@@ -167,8 +167,8 @@ const SELECT_DROPDOWN_OPTION_TYPES = {
|
|
|
167
167
|
MULTIPLE_PROPERTIES: 'multiple-properties'
|
|
168
168
|
};
|
|
169
169
|
|
|
170
|
-
function ownKeys$1(
|
|
171
|
-
function _objectSpread$1(
|
|
170
|
+
function ownKeys$1(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
171
|
+
function _objectSpread$1(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$1(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$1(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
172
172
|
const MultiplePropertiesSelectInputOption = props => {
|
|
173
173
|
const data = props.data;
|
|
174
174
|
const noValueFallback = props.noValueFallback || NO_VALUE_FALLBACK;
|
|
@@ -253,8 +253,8 @@ var messages = reactIntl.defineMessages({
|
|
|
253
253
|
}
|
|
254
254
|
});
|
|
255
255
|
|
|
256
|
-
function ownKeys(
|
|
257
|
-
function _objectSpread(
|
|
256
|
+
function ownKeys(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
257
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var _context8, _context9; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context8 = ownKeys(Object(t), !0)).call(_context8, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context9 = ownKeys(Object(t))).call(_context9, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
258
258
|
const getHorizontalConstraintValue = value => {
|
|
259
259
|
switch (value) {
|
|
260
260
|
case 'auto':
|
|
@@ -614,7 +614,7 @@ const warnIfMenuPortalPropsAreMissing = props => {
|
|
|
614
614
|
};
|
|
615
615
|
|
|
616
616
|
// NOTE: This string will be replaced on build time with the package version.
|
|
617
|
-
var version = "17.0
|
|
617
|
+
var version = "17.1.0";
|
|
618
618
|
|
|
619
619
|
exports.ClearIndicator = ClearIndicator$1;
|
|
620
620
|
exports.CustomSelectInputOption = CustomSelectInputOption;
|
|
@@ -51,8 +51,8 @@ var messages$1 = reactIntl.defineMessages({
|
|
|
51
51
|
});
|
|
52
52
|
|
|
53
53
|
const _excluded = ["ref", "onMouseDown"];
|
|
54
|
-
function ownKeys$6(
|
|
55
|
-
function _objectSpread$6(
|
|
54
|
+
function ownKeys$6(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
55
|
+
function _objectSpread$6(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$6(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$6(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
56
56
|
const ClearIndicator = props => {
|
|
57
57
|
const intl = reactIntl.useIntl();
|
|
58
58
|
const getStyles = props.getStyles,
|
|
@@ -80,8 +80,8 @@ const ClearIndicator = props => {
|
|
|
80
80
|
ClearIndicator.displayName = 'ClearIndicator';
|
|
81
81
|
var ClearIndicator$1 = ClearIndicator;
|
|
82
82
|
|
|
83
|
-
function ownKeys$5(
|
|
84
|
-
function _objectSpread$5(
|
|
83
|
+
function ownKeys$5(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
84
|
+
function _objectSpread$5(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$5(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$5(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
85
85
|
// see https://github.com/JedWatson/react-select/blob/44e9fb29b230e49a754a2f0d6f30c2250aa45009/src/components/MultiValue.js
|
|
86
86
|
const removeProps = ['onClick', 'onTouchEnd', 'onMouseDown'];
|
|
87
87
|
const TagRemove = props => {
|
|
@@ -101,8 +101,8 @@ const TagRemove = props => {
|
|
|
101
101
|
TagRemove.displayName = 'TagRemove';
|
|
102
102
|
var TagRemove$1 = TagRemove;
|
|
103
103
|
|
|
104
|
-
function ownKeys$4(
|
|
105
|
-
function _objectSpread$4(
|
|
104
|
+
function ownKeys$4(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
105
|
+
function _objectSpread$4(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$4(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$4(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
106
106
|
const DropdownIndicator = props => jsxRuntime.jsx(reactSelect.components.DropdownIndicator, _objectSpread$4(_objectSpread$4({}, props), {}, {
|
|
107
107
|
children: jsxRuntime.jsx(icons.CaretDownIcon, {
|
|
108
108
|
color: props.isDisabled ? 'neutral60' : undefined,
|
|
@@ -112,8 +112,8 @@ const DropdownIndicator = props => jsxRuntime.jsx(reactSelect.components.Dropdow
|
|
|
112
112
|
DropdownIndicator.displayName = 'DropdownIndicator';
|
|
113
113
|
var DropdownIndicator$1 = DropdownIndicator;
|
|
114
114
|
|
|
115
|
-
function ownKeys$3(
|
|
116
|
-
function _objectSpread$3(
|
|
115
|
+
function ownKeys$3(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
116
|
+
function _objectSpread$3(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$3(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$3(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
117
117
|
const SearchIconDropdownIndicator = props => {
|
|
118
118
|
return jsxRuntime.jsx(reactSelect.components.DropdownIndicator, _objectSpread$3(_objectSpread$3({}, props), {}, {
|
|
119
119
|
children: jsxRuntime.jsx(icons.SearchIcon, {
|
|
@@ -125,8 +125,8 @@ const SearchIconDropdownIndicator = props => {
|
|
|
125
125
|
SearchIconDropdownIndicator.displayName = 'SearchIconDropdownIndicator';
|
|
126
126
|
var SearchIconDropdownIndicator$1 = SearchIconDropdownIndicator;
|
|
127
127
|
|
|
128
|
-
function ownKeys$2(
|
|
129
|
-
function _objectSpread$2(
|
|
128
|
+
function ownKeys$2(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
129
|
+
function _objectSpread$2(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$2(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$2(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
130
130
|
const getDefaultComponent = type => {
|
|
131
131
|
if (type === 'singleValue') return reactSelect.components.SingleValue;
|
|
132
132
|
if (type === 'placeholder') return reactSelect.components.Placeholder;
|
|
@@ -167,8 +167,8 @@ const SELECT_DROPDOWN_OPTION_TYPES = {
|
|
|
167
167
|
MULTIPLE_PROPERTIES: 'multiple-properties'
|
|
168
168
|
};
|
|
169
169
|
|
|
170
|
-
function ownKeys$1(
|
|
171
|
-
function _objectSpread$1(
|
|
170
|
+
function ownKeys$1(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
171
|
+
function _objectSpread$1(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$1(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$1(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
172
172
|
const MultiplePropertiesSelectInputOption = props => {
|
|
173
173
|
const data = props.data;
|
|
174
174
|
const noValueFallback = props.noValueFallback || NO_VALUE_FALLBACK;
|
|
@@ -253,8 +253,8 @@ var messages = reactIntl.defineMessages({
|
|
|
253
253
|
}
|
|
254
254
|
});
|
|
255
255
|
|
|
256
|
-
function ownKeys(
|
|
257
|
-
function _objectSpread(
|
|
256
|
+
function ownKeys(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
257
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var _context8, _context9; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context8 = ownKeys(Object(t), !0)).call(_context8, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context9 = ownKeys(Object(t))).call(_context9, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
258
258
|
const getHorizontalConstraintValue = value => {
|
|
259
259
|
switch (value) {
|
|
260
260
|
case 'auto':
|
|
@@ -611,7 +611,7 @@ const warnIfMenuPortalPropsAreMissing = props => {
|
|
|
611
611
|
};
|
|
612
612
|
|
|
613
613
|
// NOTE: This string will be replaced on build time with the package version.
|
|
614
|
-
var version = "17.0
|
|
614
|
+
var version = "17.1.0";
|
|
615
615
|
|
|
616
616
|
exports.ClearIndicator = ClearIndicator$1;
|
|
617
617
|
exports.CustomSelectInputOption = CustomSelectInputOption;
|
|
@@ -31,8 +31,8 @@ var messages$1 = defineMessages({
|
|
|
31
31
|
});
|
|
32
32
|
|
|
33
33
|
const _excluded = ["ref", "onMouseDown"];
|
|
34
|
-
function ownKeys$6(
|
|
35
|
-
function _objectSpread$6(
|
|
34
|
+
function ownKeys$6(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
35
|
+
function _objectSpread$6(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$6(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$6(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
36
36
|
const ClearIndicator = props => {
|
|
37
37
|
const intl = useIntl();
|
|
38
38
|
const getStyles = props.getStyles,
|
|
@@ -60,8 +60,8 @@ const ClearIndicator = props => {
|
|
|
60
60
|
ClearIndicator.displayName = 'ClearIndicator';
|
|
61
61
|
var ClearIndicator$1 = ClearIndicator;
|
|
62
62
|
|
|
63
|
-
function ownKeys$5(
|
|
64
|
-
function _objectSpread$5(
|
|
63
|
+
function ownKeys$5(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
64
|
+
function _objectSpread$5(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$5(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$5(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
65
65
|
// see https://github.com/JedWatson/react-select/blob/44e9fb29b230e49a754a2f0d6f30c2250aa45009/src/components/MultiValue.js
|
|
66
66
|
const removeProps = ['onClick', 'onTouchEnd', 'onMouseDown'];
|
|
67
67
|
const TagRemove = props => {
|
|
@@ -81,8 +81,8 @@ const TagRemove = props => {
|
|
|
81
81
|
TagRemove.displayName = 'TagRemove';
|
|
82
82
|
var TagRemove$1 = TagRemove;
|
|
83
83
|
|
|
84
|
-
function ownKeys$4(
|
|
85
|
-
function _objectSpread$4(
|
|
84
|
+
function ownKeys$4(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
85
|
+
function _objectSpread$4(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$4(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$4(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
86
86
|
const DropdownIndicator = props => jsx(components.DropdownIndicator, _objectSpread$4(_objectSpread$4({}, props), {}, {
|
|
87
87
|
children: jsx(CaretDownIcon, {
|
|
88
88
|
color: props.isDisabled ? 'neutral60' : undefined,
|
|
@@ -92,8 +92,8 @@ const DropdownIndicator = props => jsx(components.DropdownIndicator, _objectSpre
|
|
|
92
92
|
DropdownIndicator.displayName = 'DropdownIndicator';
|
|
93
93
|
var DropdownIndicator$1 = DropdownIndicator;
|
|
94
94
|
|
|
95
|
-
function ownKeys$3(
|
|
96
|
-
function _objectSpread$3(
|
|
95
|
+
function ownKeys$3(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
96
|
+
function _objectSpread$3(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$3(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$3(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
97
97
|
const SearchIconDropdownIndicator = props => {
|
|
98
98
|
return jsx(components.DropdownIndicator, _objectSpread$3(_objectSpread$3({}, props), {}, {
|
|
99
99
|
children: jsx(SearchIcon, {
|
|
@@ -105,8 +105,8 @@ const SearchIconDropdownIndicator = props => {
|
|
|
105
105
|
SearchIconDropdownIndicator.displayName = 'SearchIconDropdownIndicator';
|
|
106
106
|
var SearchIconDropdownIndicator$1 = SearchIconDropdownIndicator;
|
|
107
107
|
|
|
108
|
-
function ownKeys$2(
|
|
109
|
-
function _objectSpread$2(
|
|
108
|
+
function ownKeys$2(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
109
|
+
function _objectSpread$2(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$2(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$2(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
110
110
|
const getDefaultComponent = type => {
|
|
111
111
|
if (type === 'singleValue') return components.SingleValue;
|
|
112
112
|
if (type === 'placeholder') return components.Placeholder;
|
|
@@ -147,8 +147,8 @@ const SELECT_DROPDOWN_OPTION_TYPES = {
|
|
|
147
147
|
MULTIPLE_PROPERTIES: 'multiple-properties'
|
|
148
148
|
};
|
|
149
149
|
|
|
150
|
-
function ownKeys$1(
|
|
151
|
-
function _objectSpread$1(
|
|
150
|
+
function ownKeys$1(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
151
|
+
function _objectSpread$1(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$1(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$1(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
152
152
|
const MultiplePropertiesSelectInputOption = props => {
|
|
153
153
|
const data = props.data;
|
|
154
154
|
const noValueFallback = props.noValueFallback || NO_VALUE_FALLBACK;
|
|
@@ -233,8 +233,8 @@ var messages = defineMessages({
|
|
|
233
233
|
}
|
|
234
234
|
});
|
|
235
235
|
|
|
236
|
-
function ownKeys(
|
|
237
|
-
function _objectSpread(
|
|
236
|
+
function ownKeys(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
237
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var _context8, _context9; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context8 = ownKeys(Object(t), !0)).call(_context8, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context9 = ownKeys(Object(t))).call(_context9, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
238
238
|
const getHorizontalConstraintValue = value => {
|
|
239
239
|
switch (value) {
|
|
240
240
|
case 'auto':
|
|
@@ -594,6 +594,6 @@ const warnIfMenuPortalPropsAreMissing = props => {
|
|
|
594
594
|
};
|
|
595
595
|
|
|
596
596
|
// NOTE: This string will be replaced on build time with the package version.
|
|
597
|
-
var version = "17.0
|
|
597
|
+
var version = "17.1.0";
|
|
598
598
|
|
|
599
599
|
export { ClearIndicator$1 as ClearIndicator, CustomSelectInputOption, DoublePropertySelectInputOption, DropdownIndicator$1 as DropdownIndicator, MultiplePropertiesSelectInputOption, SELECT_DROPDOWN_OPTION_TYPES, SearchIconDropdownIndicator$1 as SearchIconDropdownIndicator, TagRemove$1 as TagRemove, WrapperWithIcon$1 as ValueWrapperWithIcon, createSelectStyles, customComponents as customComponentsWithIcons, messages, version, warnIfMenuPortalPropsAreMissing };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commercetools-uikit/select-utils",
|
|
3
3
|
"description": "Utilities for working with select components.",
|
|
4
|
-
"version": "17.0
|
|
4
|
+
"version": "17.1.0",
|
|
5
5
|
"bugs": "https://github.com/commercetools/ui-kit/issues",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -21,12 +21,12 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@babel/runtime": "^7.20.13",
|
|
23
23
|
"@babel/runtime-corejs3": "^7.20.13",
|
|
24
|
-
"@commercetools-uikit/accessible-button": "17.0
|
|
25
|
-
"@commercetools-uikit/design-system": "17.0
|
|
26
|
-
"@commercetools-uikit/icons": "17.0
|
|
27
|
-
"@commercetools-uikit/spacings": "17.0
|
|
28
|
-
"@commercetools-uikit/text": "17.0
|
|
29
|
-
"@commercetools-uikit/utils": "17.0
|
|
24
|
+
"@commercetools-uikit/accessible-button": "17.1.0",
|
|
25
|
+
"@commercetools-uikit/design-system": "17.1.0",
|
|
26
|
+
"@commercetools-uikit/icons": "17.1.0",
|
|
27
|
+
"@commercetools-uikit/spacings": "17.1.0",
|
|
28
|
+
"@commercetools-uikit/text": "17.1.0",
|
|
29
|
+
"@commercetools-uikit/utils": "17.1.0",
|
|
30
30
|
"@emotion/react": "^11.10.5",
|
|
31
31
|
"@emotion/styled": "^11.10.5",
|
|
32
32
|
"lodash": "4.17.21",
|