@commercetools-uikit/select-utils 16.0.0 → 16.1.1
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.
|
@@ -31,28 +31,25 @@ var messages$1 = defineMessages({
|
|
|
31
31
|
});
|
|
32
32
|
|
|
33
33
|
const _excluded = ["ref", "onMouseDown"];
|
|
34
|
-
|
|
35
34
|
function ownKeys$6(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; }
|
|
36
|
-
|
|
37
35
|
function _objectSpread$6(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys$6(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys$6(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
38
|
-
|
|
39
36
|
const ClearIndicator = props => {
|
|
40
37
|
const intl = useIntl();
|
|
41
|
-
|
|
42
38
|
const getStyles = props.getStyles,
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
39
|
+
_props$innerProps = props.innerProps,
|
|
40
|
+
ref = _props$innerProps.ref,
|
|
41
|
+
onMouseDown = _props$innerProps.onMouseDown,
|
|
42
|
+
restInnerProps = _objectWithoutProperties(_props$innerProps, _excluded);
|
|
48
43
|
return jsx("button", _objectSpread$6(_objectSpread$6({}, restInnerProps), {}, {
|
|
49
44
|
ref: ref,
|
|
50
45
|
css: /*#__PURE__*/css("border:none;cursor:pointer;background:none;box-sizing:border-box;text-decoration:none;fill:", designTokens.fontColorForClearInputIcon, ";:hover svg *{fill:", designTokens.fontColorForClearInputIconWhenHovered, ";}" + (process.env.NODE_ENV === "production" ? "" : ";label:ClearIndicator;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImNsZWFyLWluZGljYXRvci50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBMEJjIiwiZmlsZSI6ImNsZWFyLWluZGljYXRvci50c3giLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgdHlwZSB7IENTU1Byb3BlcnRpZXMsIExlZ2FjeVJlZiB9IGZyb20gJ3JlYWN0JztcbmltcG9ydCB0eXBlIHsgQ2xlYXJJbmRpY2F0b3JQcm9wcyB9IGZyb20gJ3JlYWN0LXNlbGVjdCc7XG5pbXBvcnQgeyBjc3MgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5pbXBvcnQgeyB1c2VJbnRsIH0gZnJvbSAncmVhY3QtaW50bCc7XG5pbXBvcnQgeyBkZXNpZ25Ub2tlbnMgfSBmcm9tICdAY29tbWVyY2V0b29scy11aWtpdC9kZXNpZ24tc3lzdGVtJztcbmltcG9ydCB7IENsb3NlSWNvbiB9IGZyb20gJ0Bjb21tZXJjZXRvb2xzLXVpa2l0L2ljb25zJztcbmltcG9ydCBtZXNzYWdlcyBmcm9tICcuL21lc3NhZ2VzJztcblxudHlwZSBUSW5uZXJQcm9wcyA9IHtcbiAgcmVmOiBMZWdhY3lSZWY8SFRNTEJ1dHRvbkVsZW1lbnQ+O1xufSAmIEpTWC5JbnRyaW5zaWNFbGVtZW50c1snYnV0dG9uJ107XG5cbmV4cG9ydCB0eXBlIFRDbGVhckluZGljYXRvclByb3BzID0ge1xuICBpbm5lclByb3BzOiBUSW5uZXJQcm9wcztcbn0gJiBDbGVhckluZGljYXRvclByb3BzO1xuXG5jb25zdCBDbGVhckluZGljYXRvciA9IChwcm9wczogVENsZWFySW5kaWNhdG9yUHJvcHMpID0+IHtcbiAgY29uc3QgaW50bCA9IHVzZUludGwoKTtcbiAgY29uc3Qge1xuICAgIGdldFN0eWxlcyxcbiAgICBpbm5lclByb3BzOiB7IHJlZiwgb25Nb3VzZURvd24sIC4uLnJlc3RJbm5lclByb3BzIH0sXG4gIH0gPSBwcm9wcztcbiAgcmV0dXJuIChcbiAgICA8YnV0dG9uXG4gICAgICB7Li4ucmVzdElubmVyUHJvcHN9XG4gICAgICByZWY9e3JlZn1cbiAgICAgIGNzcz17Y3NzYFxuICAgICAgICBib3JkZXI6IG5vbmU7XG4gICAgICAgIGN1cnNvcjogcG9pbnRlcjtcbiAgICAgICAgYmFja2dyb3VuZDogbm9uZTtcbiAgICAgICAgYm94LXNpemluZzogYm9yZGVyLWJveDtcbiAgICAgICAgdGV4dC1kZWNvcmF0aW9uOiBub25lO1xuICAgICAgICBmaWxsOiAke2Rlc2lnblRva2Vucy5mb250Q29sb3JGb3JDbGVhcklucHV0SWNvbn07XG4gICAgICAgIDpob3ZlciBzdmcgKiB7XG4gICAgICAgICAgZmlsbDogJHtkZXNpZ25Ub2tlbnMuZm9udENvbG9yRm9yQ2xlYXJJbnB1dEljb25XaGVuSG92ZXJlZH07XG4gICAgICAgIH1cbiAgICAgIGB9XG4gICAgICBzdHlsZT17Z2V0U3R5bGVzKCdjbGVhckluZGljYXRvcicsIHByb3BzKSBhcyBDU1NQcm9wZXJ0aWVzfVxuICAgICAgdGl0bGU9e2ludGwuZm9ybWF0TWVzc2FnZShtZXNzYWdlcy5jbGVhckJ1dHRvbkxhYmVsKX1cbiAgICAgIGFyaWEtbGFiZWw9e2ludGwuZm9ybWF0TWVzc2FnZShtZXNzYWdlcy5jbGVhckJ1dHRvbkxhYmVsKX1cbiAgICAgIC8vIG92ZXJyaWRpbmcgdGhlIGRlZmF1bHQgYGFyaWEtaGlkZGVuYCBwcm9wIHZhbHVlIHRvIG1ha2UgdGhlIGNvbXBvbmVudCBhY2Nlc3NpYmxlIGJ5IGtleWJvYXJkIC0gaHR0cHM6Ly9naXRodWIuY29tL0plZFdhdHNvbi9yZWFjdC1zZWxlY3QvaXNzdWVzLzQ3OTNcbiAgICAgIGFyaWEtaGlkZGVuPXtmYWxzZX1cbiAgICAgIC8vIG9ubHkgb25Nb3VzZURvd24gYW5kIG9uVG91Y2hFbmQgZXZlbnQgaGFuZGxlcnMgYXJlIHBhc3NlZCBieSBgcmVhY3Qtc2VsZWN0YCB0byB0aGUgY29tcG9uZW50IGJ5IGRlZmF1bHQsIHdoaWNoIG1ha2VzIGl0IG5vdCBhY2Nlc3NpYmxlIGJ5IGtleWJvYXJkXG4gICAgICBvbkNsaWNrPXtvbk1vdXNlRG93bn1cbiAgICA+XG4gICAgICA8Q2xvc2VJY29uIHNpemU9XCJtZWRpdW1cIiAvPlxuICAgIDwvYnV0dG9uPlxuICApO1xufTtcblxuQ2xlYXJJbmRpY2F0b3IuZGlzcGxheU5hbWUgPSAnQ2xlYXJJbmRpY2F0b3InO1xuXG5leHBvcnQgZGVmYXVsdCBDbGVhckluZGljYXRvcjtcbiJdfQ== */"),
|
|
51
46
|
style: getStyles('clearIndicator', props),
|
|
52
47
|
title: intl.formatMessage(messages$1.clearButtonLabel),
|
|
53
|
-
"aria-label": intl.formatMessage(messages$1.clearButtonLabel)
|
|
48
|
+
"aria-label": intl.formatMessage(messages$1.clearButtonLabel)
|
|
49
|
+
// overriding the default `aria-hidden` prop value to make the component accessible by keyboard - https://github.com/JedWatson/react-select/issues/4793
|
|
54
50
|
,
|
|
55
|
-
"aria-hidden": false
|
|
51
|
+
"aria-hidden": false
|
|
52
|
+
// only onMouseDown and onTouchEnd event handlers are passed by `react-select` to the component by default, which makes it not accessible by keyboard
|
|
56
53
|
,
|
|
57
54
|
onClick: onMouseDown,
|
|
58
55
|
children: jsx(CloseIcon, {
|
|
@@ -60,20 +57,17 @@ const ClearIndicator = props => {
|
|
|
60
57
|
})
|
|
61
58
|
}));
|
|
62
59
|
};
|
|
63
|
-
|
|
64
60
|
ClearIndicator.displayName = 'ClearIndicator';
|
|
65
61
|
var ClearIndicator$1 = ClearIndicator;
|
|
66
62
|
|
|
67
63
|
function ownKeys$5(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; }
|
|
68
|
-
|
|
69
64
|
function _objectSpread$5(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys$5(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys$5(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
70
65
|
// see https://github.com/JedWatson/react-select/blob/44e9fb29b230e49a754a2f0d6f30c2250aa45009/src/components/MultiValue.js
|
|
71
66
|
const removeProps = ['onClick', 'onTouchEnd', 'onMouseDown'];
|
|
72
|
-
|
|
73
67
|
const TagRemove = props => {
|
|
74
|
-
const isDisabled = Boolean(props.selectProps.isDisabled || props.selectProps.isReadOnly);
|
|
68
|
+
const isDisabled = Boolean(props.selectProps.isDisabled || props.selectProps.isReadOnly);
|
|
69
|
+
// when the select input is disabled,
|
|
75
70
|
// we don't want to spread the removeProp event handlers
|
|
76
|
-
|
|
77
71
|
const innerProps = isDisabled ? omit(props.innerProps, removeProps) : props.innerProps;
|
|
78
72
|
return jsx(AccessibleButton, _objectSpread$5(_objectSpread$5({
|
|
79
73
|
label: "Remove"
|
|
@@ -84,28 +78,22 @@ const TagRemove = props => {
|
|
|
84
78
|
})
|
|
85
79
|
}));
|
|
86
80
|
};
|
|
87
|
-
|
|
88
81
|
TagRemove.displayName = 'TagRemove';
|
|
89
82
|
var TagRemove$1 = TagRemove;
|
|
90
83
|
|
|
91
84
|
function ownKeys$4(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; }
|
|
92
|
-
|
|
93
85
|
function _objectSpread$4(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys$4(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys$4(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
94
|
-
|
|
95
86
|
const DropdownIndicator = props => jsx(components.DropdownIndicator, _objectSpread$4(_objectSpread$4({}, props), {}, {
|
|
96
87
|
children: jsx(CaretDownIcon, {
|
|
97
88
|
color: props.isDisabled ? 'neutral60' : undefined,
|
|
98
89
|
size: "small"
|
|
99
90
|
})
|
|
100
91
|
}));
|
|
101
|
-
|
|
102
92
|
DropdownIndicator.displayName = 'DropdownIndicator';
|
|
103
93
|
var DropdownIndicator$1 = DropdownIndicator;
|
|
104
94
|
|
|
105
95
|
function ownKeys$3(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; }
|
|
106
|
-
|
|
107
96
|
function _objectSpread$3(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys$3(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys$3(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
108
|
-
|
|
109
97
|
const SearchIconDropdownIndicator = props => {
|
|
110
98
|
return jsx(components.DropdownIndicator, _objectSpread$3(_objectSpread$3({}, props), {}, {
|
|
111
99
|
children: jsx(SearchIcon, {
|
|
@@ -114,27 +102,21 @@ const SearchIconDropdownIndicator = props => {
|
|
|
114
102
|
})
|
|
115
103
|
}));
|
|
116
104
|
};
|
|
117
|
-
|
|
118
105
|
SearchIconDropdownIndicator.displayName = 'SearchIconDropdownIndicator';
|
|
119
106
|
var SearchIconDropdownIndicator$1 = SearchIconDropdownIndicator;
|
|
120
107
|
|
|
121
108
|
function ownKeys$2(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; }
|
|
122
|
-
|
|
123
109
|
function _objectSpread$2(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys$2(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys$2(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
124
|
-
|
|
125
110
|
const getDefaultComponent = type => {
|
|
126
111
|
if (type === 'singleValue') return components.SingleValue;
|
|
127
112
|
if (type === 'placeholder') return components.Placeholder;
|
|
128
113
|
return null;
|
|
129
114
|
};
|
|
130
|
-
|
|
131
115
|
const WrapperWithIcon = props => {
|
|
132
116
|
const DefaultComponent = getDefaultComponent(props.type);
|
|
133
|
-
|
|
134
117
|
if (!DefaultComponent) {
|
|
135
118
|
return null;
|
|
136
119
|
}
|
|
137
|
-
|
|
138
120
|
return jsxs(Fragment, {
|
|
139
121
|
children: [props.selectProps.iconLeft && /*#__PURE__*/cloneElement(props.selectProps.iconLeft, {
|
|
140
122
|
size: 'big'
|
|
@@ -147,7 +129,6 @@ const WrapperWithIcon = props => {
|
|
|
147
129
|
})]
|
|
148
130
|
});
|
|
149
131
|
};
|
|
150
|
-
|
|
151
132
|
WrapperWithIcon.displayName = 'WrapperWithIcon';
|
|
152
133
|
var WrapperWithIcon$1 = WrapperWithIcon;
|
|
153
134
|
const customComponents = {
|
|
@@ -167,7 +148,6 @@ const SELECT_DROPDOWN_OPTION_TYPES = {
|
|
|
167
148
|
};
|
|
168
149
|
|
|
169
150
|
function ownKeys$1(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; }
|
|
170
|
-
|
|
171
151
|
function _objectSpread$1(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys$1(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys$1(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
172
152
|
const MultiplePropertiesSelectInputOption = props => {
|
|
173
153
|
const data = props.data;
|
|
@@ -205,20 +185,16 @@ const DoublePropertySelectInputOption = props => {
|
|
|
205
185
|
DoublePropertySelectInputOption.displayName = 'DoublePropertySelectInputOption';
|
|
206
186
|
const CustomSelectInputOption = props => {
|
|
207
187
|
var _props$optionInnerPro;
|
|
208
|
-
|
|
209
188
|
const noValueFallback = props.noValueFallback || NO_VALUE_FALLBACK;
|
|
210
|
-
|
|
211
189
|
switch (props.optionType) {
|
|
212
190
|
case SELECT_DROPDOWN_OPTION_TYPES.MULTIPLE_PROPERTIES:
|
|
213
191
|
return jsx(MultiplePropertiesSelectInputOption, _objectSpread$1(_objectSpread$1({}, props.optionInnerProps), {}, {
|
|
214
192
|
noValueFallback: noValueFallback
|
|
215
193
|
}));
|
|
216
|
-
|
|
217
194
|
case SELECT_DROPDOWN_OPTION_TYPES.DOUBLE_PROPERTY:
|
|
218
195
|
return jsx(DoublePropertySelectInputOption, _objectSpread$1(_objectSpread$1({}, props.optionInnerProps), {}, {
|
|
219
196
|
noValueFallback: noValueFallback
|
|
220
197
|
}));
|
|
221
|
-
|
|
222
198
|
default:
|
|
223
199
|
return jsx(components.Option, _objectSpread$1(_objectSpread$1({}, props.optionInnerProps), {}, {
|
|
224
200
|
children: jsx(Text.Detail, {
|
|
@@ -258,32 +234,24 @@ var messages = defineMessages({
|
|
|
258
234
|
});
|
|
259
235
|
|
|
260
236
|
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; }
|
|
261
|
-
|
|
262
237
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var _context9, _context10; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context9 = ownKeys(Object(source), !0)).call(_context9, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context10 = ownKeys(Object(source))).call(_context10, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
263
|
-
|
|
264
238
|
const getControlBorderColor = (props, defaultColor) => {
|
|
265
239
|
if (props.isDisabled) {
|
|
266
240
|
return designTokens.borderColorForInputWhenDisabled;
|
|
267
241
|
}
|
|
268
|
-
|
|
269
242
|
if (props.isReadOnly) {
|
|
270
243
|
return designTokens.borderColorForSelectInputWhenReadonly;
|
|
271
244
|
}
|
|
272
|
-
|
|
273
245
|
if (props.hasError) {
|
|
274
246
|
return designTokens.borderColorForInputWhenError;
|
|
275
247
|
}
|
|
276
|
-
|
|
277
248
|
if (props.hasWarning) {
|
|
278
249
|
return designTokens.borderColorForInputWhenWarning;
|
|
279
250
|
}
|
|
280
|
-
|
|
281
251
|
return defaultColor;
|
|
282
252
|
};
|
|
283
|
-
|
|
284
253
|
const controlStyles = props => (base, state) => {
|
|
285
254
|
var _context;
|
|
286
|
-
|
|
287
255
|
return _objectSpread(_objectSpread({}, base), {}, {
|
|
288
256
|
fontSize: designTokens.fontSizeForInput,
|
|
289
257
|
backgroundColor: (() => {
|
|
@@ -317,7 +285,6 @@ const controlStyles = props => (base, state) => {
|
|
|
317
285
|
'&:focus-within': {
|
|
318
286
|
boxShadow: (() => {
|
|
319
287
|
var _context2;
|
|
320
|
-
|
|
321
288
|
if (!props.isDisabled && !props.isReadOnly) return _concatInstanceProperty(_context2 = "".concat(designTokens.boxShadowForSelectInputWhenFocused, " ")).call(_context2, designTokens.borderColorForInputWhenFocused);
|
|
322
289
|
return null;
|
|
323
290
|
})(),
|
|
@@ -337,7 +304,6 @@ const controlStyles = props => (base, state) => {
|
|
|
337
304
|
color: props.isDisabled || props.isReadOnly ? designTokens.fontColorForInputWhenDisabled : base.fontColorForInput
|
|
338
305
|
});
|
|
339
306
|
};
|
|
340
|
-
|
|
341
307
|
const menuStyles = props => base => {
|
|
342
308
|
return _objectSpread(_objectSpread({}, base), {}, {
|
|
343
309
|
border: "1px solid ".concat(designTokens.borderColorForSelectInputMenu),
|
|
@@ -354,7 +320,6 @@ const menuStyles = props => base => {
|
|
|
354
320
|
})()
|
|
355
321
|
});
|
|
356
322
|
};
|
|
357
|
-
|
|
358
323
|
const indicatorSeparatorStyles = () => base => {
|
|
359
324
|
return _objectSpread(_objectSpread({}, base), {}, {
|
|
360
325
|
display: 'none',
|
|
@@ -363,7 +328,6 @@ const indicatorSeparatorStyles = () => base => {
|
|
|
363
328
|
marginLeft: designTokens.spacing10
|
|
364
329
|
});
|
|
365
330
|
};
|
|
366
|
-
|
|
367
331
|
const dropdownIndicatorStyles = props => base => {
|
|
368
332
|
return _objectSpread(_objectSpread({}, base), {}, {
|
|
369
333
|
color: designTokens.fontColorForInput,
|
|
@@ -378,13 +342,11 @@ const dropdownIndicatorStyles = props => base => {
|
|
|
378
342
|
})()
|
|
379
343
|
});
|
|
380
344
|
};
|
|
381
|
-
|
|
382
345
|
const clearIndicatorStyles = () => base => _objectSpread(_objectSpread({}, base), {}, {
|
|
383
346
|
display: 'flex',
|
|
384
347
|
padding: 0,
|
|
385
348
|
marginLeft: designTokens.marginForSelectInputIcon
|
|
386
349
|
});
|
|
387
|
-
|
|
388
350
|
const menuListStyles = () => base => {
|
|
389
351
|
return _objectSpread(_objectSpread({}, base), {}, {
|
|
390
352
|
padding: designTokens.paddingForSelectInputMenu,
|
|
@@ -392,10 +354,8 @@ const menuListStyles = () => base => {
|
|
|
392
354
|
backgroundColor: designTokens.backgroundColorForInput
|
|
393
355
|
});
|
|
394
356
|
};
|
|
395
|
-
|
|
396
357
|
const optionStyles = () => (base, state) => {
|
|
397
358
|
var _context3, _context4;
|
|
398
|
-
|
|
399
359
|
return _objectSpread(_objectSpread({}, base), {}, {
|
|
400
360
|
transition: _concatInstanceProperty(_context3 = _concatInstanceProperty(_context4 = "border-color ".concat(designTokens.transitionStandard, ",\n background-color ")).call(_context4, designTokens.transitionStandard, ",\n color ")).call(_context3, designTokens.transitionStandard),
|
|
401
361
|
paddingLeft: designTokens.paddingLeftForSelectInputOptions,
|
|
@@ -422,7 +382,6 @@ const optionStyles = () => (base, state) => {
|
|
|
422
382
|
}
|
|
423
383
|
});
|
|
424
384
|
};
|
|
425
|
-
|
|
426
385
|
const placeholderStyles = props => base => {
|
|
427
386
|
return _objectSpread(_objectSpread({}, base), {}, {
|
|
428
387
|
color: (() => {
|
|
@@ -435,8 +394,8 @@ const placeholderStyles = props => base => {
|
|
|
435
394
|
fill: props.isDisabled || props.isReadOnly ? designTokens.fontColorForInputWhenDisabled : base.fontColorForInput
|
|
436
395
|
});
|
|
437
396
|
};
|
|
438
|
-
|
|
439
397
|
const valueContainerStyles = props => base => {
|
|
398
|
+
var _props$controlShouldR;
|
|
440
399
|
return _objectSpread(_objectSpread({}, base), {}, {
|
|
441
400
|
padding: '0',
|
|
442
401
|
backgroundColor: 'none',
|
|
@@ -444,29 +403,25 @@ const valueContainerStyles = props => base => {
|
|
|
444
403
|
// Display property should be grid when isMulti and has no value so the Placeholder component is positioned correctly with the Input
|
|
445
404
|
// Display property should be Flex when there is an iconLeft, also when the input has some values when isMulti.
|
|
446
405
|
// See PR from react select for more insight https://github.com/JedWatson/react-select/pull/4833
|
|
447
|
-
display: props.iconLeft && !props.isMulti || props.isMulti && props.hasValue && props.controlShouldRenderValue ? 'flex' : 'grid',
|
|
406
|
+
display: props.iconLeft && !props.isMulti || props.isMulti && props.hasValue && ((_props$controlShouldR = props.controlShouldRenderValue) !== null && _props$controlShouldR !== void 0 ? _props$controlShouldR : true) ? 'flex' : 'grid',
|
|
448
407
|
fill: props.isDisabled || props.isReadOnly ? designTokens.fontColorForInputWhenDisabled : designTokens.fontColorForSelectInputIcon
|
|
449
408
|
});
|
|
450
409
|
};
|
|
451
|
-
|
|
452
410
|
const singleValueStyles = props => base => {
|
|
453
411
|
return _objectSpread(_objectSpread({}, base), {}, {
|
|
454
412
|
color: (() => {
|
|
455
413
|
if (props.isDisabled) {
|
|
456
414
|
return designTokens.fontColorForInputWhenDisabled;
|
|
457
415
|
}
|
|
458
|
-
|
|
459
416
|
if (props.isReadOnly) {
|
|
460
417
|
return designTokens.fontColorForInputWhenReadonly;
|
|
461
418
|
}
|
|
462
|
-
|
|
463
419
|
if (props.hasError) return designTokens.fontColorForSelectInputWhenError;
|
|
464
420
|
if (props.hasWarning) return designTokens.fontColorForSelectInputWhenWarning;
|
|
465
421
|
return designTokens.fontColorForInput;
|
|
466
422
|
})()
|
|
467
423
|
});
|
|
468
424
|
};
|
|
469
|
-
|
|
470
425
|
const groupStyles = props => base => {
|
|
471
426
|
return _objectSpread(_objectSpread({}, base), {}, {
|
|
472
427
|
padding: 0,
|
|
@@ -475,10 +430,8 @@ const groupStyles = props => base => {
|
|
|
475
430
|
}
|
|
476
431
|
});
|
|
477
432
|
};
|
|
478
|
-
|
|
479
433
|
const groupHeadingStyles = () => base => {
|
|
480
434
|
var _context5;
|
|
481
|
-
|
|
482
435
|
return _objectSpread(_objectSpread({}, base), {}, {
|
|
483
436
|
color: designTokens.fontColorForInputWhenReadonly,
|
|
484
437
|
fontSize: designTokens.fontSizeSmall,
|
|
@@ -490,7 +443,6 @@ const groupHeadingStyles = () => base => {
|
|
|
490
443
|
}
|
|
491
444
|
});
|
|
492
445
|
};
|
|
493
|
-
|
|
494
446
|
const containerStyles = () => (base, state) => {
|
|
495
447
|
return _objectSpread(_objectSpread({}, base), {}, {
|
|
496
448
|
fontFamily: 'inherit',
|
|
@@ -500,17 +452,14 @@ const containerStyles = () => (base, state) => {
|
|
|
500
452
|
boxShadow: state.isFocused ? 'none' : base.boxShadow
|
|
501
453
|
});
|
|
502
454
|
};
|
|
503
|
-
|
|
504
455
|
const indicatorsContainerStyles = () => () => ({
|
|
505
456
|
background: 'none',
|
|
506
457
|
display: 'flex',
|
|
507
458
|
alignItems: 'center'
|
|
508
459
|
});
|
|
509
|
-
|
|
510
460
|
const menuPortalStyles = props => base => _objectSpread(_objectSpread({}, base), {}, {
|
|
511
461
|
zIndex: props.menuPortalZIndex
|
|
512
462
|
});
|
|
513
|
-
|
|
514
463
|
const multiValueStyles = () => base => {
|
|
515
464
|
return _objectSpread(_objectSpread({}, base), {}, {
|
|
516
465
|
display: 'flex',
|
|
@@ -521,10 +470,8 @@ const multiValueStyles = () => base => {
|
|
|
521
470
|
border: designTokens.borderForSelectInputTag
|
|
522
471
|
});
|
|
523
472
|
};
|
|
524
|
-
|
|
525
473
|
const multiValueLabelStyles = props => base => {
|
|
526
474
|
var _context6, _context7;
|
|
527
|
-
|
|
528
475
|
return _objectSpread(_objectSpread({}, base), {}, {
|
|
529
476
|
fontSize: designTokens.fontSizeForSelectInputTag,
|
|
530
477
|
color: (() => {
|
|
@@ -534,7 +481,7 @@ const multiValueLabelStyles = props => base => {
|
|
|
534
481
|
})(),
|
|
535
482
|
padding: _concatInstanceProperty(_context6 = "".concat(designTokens.spacing10, " ")).call(_context6, designTokens.spacing20),
|
|
536
483
|
borderRadius: _concatInstanceProperty(_context7 = "".concat(designTokens.borderRadiusForTag, " 0 0 ")).call(_context7, designTokens.borderRadiusForTag),
|
|
537
|
-
border:
|
|
484
|
+
border: 'none',
|
|
538
485
|
borderWidth: '1px 0 1px 1px',
|
|
539
486
|
'&:last-child': {
|
|
540
487
|
borderRadius: designTokens.borderRadiusForTag,
|
|
@@ -542,16 +489,14 @@ const multiValueLabelStyles = props => base => {
|
|
|
542
489
|
}
|
|
543
490
|
});
|
|
544
491
|
};
|
|
545
|
-
|
|
546
492
|
const multiValueRemoveStyles = props => (base, state) => {
|
|
547
493
|
var _context8;
|
|
548
|
-
|
|
549
494
|
return _objectSpread(_objectSpread({}, base), {}, {
|
|
550
495
|
borderColor: designTokens.borderColorForTag,
|
|
551
496
|
padding: "0 ".concat(designTokens.spacing10),
|
|
552
497
|
borderRadius: _concatInstanceProperty(_context8 = "0 ".concat(designTokens.borderRadiusForTag, " ")).call(_context8, designTokens.borderRadiusForTag, " 0"),
|
|
553
|
-
borderStyle:
|
|
554
|
-
borderWidth:
|
|
498
|
+
borderStyle: 'none',
|
|
499
|
+
borderWidth: '0',
|
|
555
500
|
pointerEvents: state.isDisabled || props.isReadOnly ? 'none' : base.pointerEvents,
|
|
556
501
|
backgroundColor: designTokens.backgroundColorForTag,
|
|
557
502
|
'svg *': {
|
|
@@ -566,7 +511,6 @@ const multiValueRemoveStyles = props => (base, state) => {
|
|
|
566
511
|
}
|
|
567
512
|
});
|
|
568
513
|
};
|
|
569
|
-
|
|
570
514
|
function createSelectStyles(props) {
|
|
571
515
|
return {
|
|
572
516
|
control: controlStyles(props),
|
|
@@ -591,7 +535,6 @@ function createSelectStyles(props) {
|
|
|
591
535
|
}
|
|
592
536
|
|
|
593
537
|
const getMessage = componentName => "".concat(componentName, ": use `menuPortalZIndex` in conjunction with `menuPortalTarget`");
|
|
594
|
-
|
|
595
538
|
const warnIfMenuPortalPropsAreMissing = props => {
|
|
596
539
|
if (typeof props.menuPortalZIndex !== 'undefined' && props.menuPortalZIndex !== 1 // 1 is the value passed in default props
|
|
597
540
|
) {
|
|
@@ -600,6 +543,6 @@ const warnIfMenuPortalPropsAreMissing = props => {
|
|
|
600
543
|
};
|
|
601
544
|
|
|
602
545
|
// NOTE: This string will be replaced on build time with the package version.
|
|
603
|
-
var version = "16.
|
|
546
|
+
var version = "16.1.1";
|
|
604
547
|
|
|
605
548
|
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 };
|
|
@@ -26,16 +26,14 @@ type TState = {
|
|
|
26
26
|
isDisabled?: boolean;
|
|
27
27
|
isSelected?: boolean;
|
|
28
28
|
};
|
|
29
|
-
export default function createSelectStyles(props: TProps
|
|
30
|
-
isNewTheme: boolean;
|
|
31
|
-
}): {
|
|
29
|
+
export default function createSelectStyles(props: TProps): {
|
|
32
30
|
control: (base: TBase, state: TState) => {
|
|
33
31
|
fontSize: "var(--font-size-for-input, 1rem)";
|
|
34
|
-
backgroundColor: "var(--background-color-for-input, #fff)" | "var(--background-color-for-input-when-disabled, hsl(
|
|
35
|
-
borderColor: "var(--border-color-for-input,
|
|
36
|
-
borderWidth: "var(--border-width-1, 1px)" | "var(--border-width-for-select-input,
|
|
37
|
-
borderRadius: "var(--border-radius-for-input,
|
|
38
|
-
minHeight: "var(--height-for-input,
|
|
32
|
+
backgroundColor: "var(--background-color-for-input, #fff)" | "var(--background-color-for-input-when-disabled, hsl(0, 0%, 95%))" | "var(--background-color-for-input-when-readonly, hsl(0, 0%, 95%))";
|
|
33
|
+
borderColor: "var(--border-color-for-input, #ccc)" | "var(--border-color-for-input-when-focused, #00b39e)" | "var(--border-color-for-input-when-disabled, #ccc)" | "var(--border-color-for-input-when-error, #e60050)" | "var(--border-color-for-input-when-warning, #f16d0e)" | "var(--border-color-for-select-input-when-readonly, hsl(0, 0%, 95%))";
|
|
34
|
+
borderWidth: "var(--border-width-1, 1px)" | "var(--border-width-for-select-input, 2px)";
|
|
35
|
+
borderRadius: "var(--border-radius-for-input, 4px)";
|
|
36
|
+
minHeight: "var(--height-for-input, 40px)";
|
|
39
37
|
cursor: string;
|
|
40
38
|
padding: string;
|
|
41
39
|
transition: string;
|
|
@@ -47,7 +45,7 @@ export default function createSelectStyles(props: TProps & {
|
|
|
47
45
|
};
|
|
48
46
|
'&:hover': {
|
|
49
47
|
borderColor: string;
|
|
50
|
-
backgroundColor: "var(--background-color-for-input-when-hovered,
|
|
48
|
+
backgroundColor: "var(--background-color-for-input-when-hovered, hsl(0, 0%, 98%))" | null;
|
|
51
49
|
};
|
|
52
50
|
pointerEvents: string;
|
|
53
51
|
color: string | undefined;
|
|
@@ -57,9 +55,9 @@ export default function createSelectStyles(props: TProps & {
|
|
|
57
55
|
};
|
|
58
56
|
menu: (base: TBase) => {
|
|
59
57
|
border: string;
|
|
60
|
-
borderRadius: "var(--border-radius-for-input,
|
|
58
|
+
borderRadius: "var(--border-radius-for-input, 4px)";
|
|
61
59
|
backgroundColor: "var(--background-color-for-input, #fff)";
|
|
62
|
-
boxShadow: "var(--shadow-for-select-input-menu, 0
|
|
60
|
+
boxShadow: "var(--shadow-for-select-input-menu, 0 2px 5px 0px rgba(0, 0, 0, 0.15))";
|
|
63
61
|
fontSize: "var(--font-size-for-input, 1rem)";
|
|
64
62
|
fontFamily: string;
|
|
65
63
|
margin: string;
|
|
@@ -88,8 +86,8 @@ export default function createSelectStyles(props: TProps & {
|
|
|
88
86
|
color: "var(--font-color-for-input, #1a1a1a)";
|
|
89
87
|
margin: string;
|
|
90
88
|
padding: string;
|
|
91
|
-
marginLeft: "var(--margin-for-select-input-icon,
|
|
92
|
-
fill: "var(--font-color-for-input-when-disabled, hsl(0, 0%, 60%))" | "var(--font-color-for-select-input-icon,
|
|
89
|
+
marginLeft: "var(--margin-for-select-input-icon, 8px)";
|
|
90
|
+
fill: "var(--font-color-for-input-when-disabled, hsl(0, 0%, 60%))" | "var(--font-color-for-select-input-icon, hsl(0, 0%, 60%))" | "var(--font-color-for-select-input-icon-when-error, #e60050)" | "var(--font-color-for-select-input-icon-when-warning, #f16d0e)";
|
|
93
91
|
fontColorForInput?: string | undefined;
|
|
94
92
|
borderColorForInput?: string | undefined;
|
|
95
93
|
backgroundColor?: string | undefined;
|
|
@@ -101,7 +99,7 @@ export default function createSelectStyles(props: TProps & {
|
|
|
101
99
|
clearIndicator: (base: TBase) => {
|
|
102
100
|
display: string;
|
|
103
101
|
padding: number;
|
|
104
|
-
marginLeft: "var(--margin-for-select-input-icon,
|
|
102
|
+
marginLeft: "var(--margin-for-select-input-icon, 8px)";
|
|
105
103
|
fontColorForInput?: string | undefined;
|
|
106
104
|
borderColorForInput?: string | undefined;
|
|
107
105
|
color?: string | undefined;
|
|
@@ -112,8 +110,8 @@ export default function createSelectStyles(props: TProps & {
|
|
|
112
110
|
pointerEvents?: string | undefined;
|
|
113
111
|
};
|
|
114
112
|
menuList: (base: TBase) => {
|
|
115
|
-
padding: "var(--padding-for-select-input-menu,
|
|
116
|
-
borderRadius: "var(--border-radius-for-input,
|
|
113
|
+
padding: "var(--padding-for-select-input-menu, var(--spacing-10) 0)";
|
|
114
|
+
borderRadius: "var(--border-radius-for-input, 4px)";
|
|
117
115
|
backgroundColor: "var(--background-color-for-input, #fff)";
|
|
118
116
|
fontColorForInput?: string | undefined;
|
|
119
117
|
borderColorForInput?: string | undefined;
|
|
@@ -136,11 +134,11 @@ export default function createSelectStyles(props: TProps & {
|
|
|
136
134
|
};
|
|
137
135
|
multiValue: (base: TBase) => {
|
|
138
136
|
display: string;
|
|
139
|
-
alignItems: "var(--align-items-for-select-input-tag,
|
|
140
|
-
height: "var(--height-for-select-input-tag,
|
|
137
|
+
alignItems: "var(--align-items-for-select-input-tag, center)";
|
|
138
|
+
height: "var(--height-for-select-input-tag, 32px)";
|
|
141
139
|
backgroundColor: "var(--background-color-for-tag, hsl(0, 0%, 95%))";
|
|
142
140
|
padding: string;
|
|
143
|
-
border: "var(--border-for-select-input-tag,
|
|
141
|
+
border: "var(--border-for-select-input-tag, 1px solid var(--color-neutral-85))";
|
|
144
142
|
fontColorForInput?: string | undefined;
|
|
145
143
|
borderColorForInput?: string | undefined;
|
|
146
144
|
color?: string | undefined;
|
|
@@ -150,7 +148,7 @@ export default function createSelectStyles(props: TProps & {
|
|
|
150
148
|
pointerEvents?: string | undefined;
|
|
151
149
|
};
|
|
152
150
|
multiValueLabel: (base: TBase) => {
|
|
153
|
-
fontSize: "var(--font-size-for-select-input-tag,
|
|
151
|
+
fontSize: "var(--font-size-for-select-input-tag, 1rem)";
|
|
154
152
|
color: string | undefined;
|
|
155
153
|
padding: string;
|
|
156
154
|
borderRadius: string;
|
|
@@ -169,7 +167,7 @@ export default function createSelectStyles(props: TProps & {
|
|
|
169
167
|
pointerEvents?: string | undefined;
|
|
170
168
|
};
|
|
171
169
|
multiValueRemove: (base: TBase, state: TState) => {
|
|
172
|
-
borderColor: "var(--border-color-for-tag,
|
|
170
|
+
borderColor: "var(--border-color-for-tag, #ccc)";
|
|
173
171
|
padding: string;
|
|
174
172
|
borderRadius: string;
|
|
175
173
|
borderStyle: string;
|
|
@@ -183,7 +181,7 @@ export default function createSelectStyles(props: TProps & {
|
|
|
183
181
|
borderColor: "var(--border-color-for-tag-warning, #f16d0e)";
|
|
184
182
|
backgroundColor: "var(--background-color-for-tag, hsl(0, 0%, 95%))";
|
|
185
183
|
'svg *': {
|
|
186
|
-
fill: "var(--font-color-for-clear-input-icon-when-hovered, #
|
|
184
|
+
fill: "var(--font-color-for-clear-input-icon-when-hovered, #e60050)";
|
|
187
185
|
};
|
|
188
186
|
};
|
|
189
187
|
fontColorForInput?: string | undefined;
|
|
@@ -199,16 +197,16 @@ export default function createSelectStyles(props: TProps & {
|
|
|
199
197
|
};
|
|
200
198
|
option: (base: TBase, state: TState) => {
|
|
201
199
|
transition: string;
|
|
202
|
-
paddingLeft: "var(--padding-left-for-select-input-options,
|
|
203
|
-
paddingRight: "var(--padding-right-for-select-input-options,
|
|
204
|
-
paddingTop: "var(--padding-top-for-select-input-options,
|
|
205
|
-
paddingBottom: "var(--padding-bottom-for-select-input-options,
|
|
206
|
-
lineHeight: "var(--line-height-for-select-input-options,
|
|
200
|
+
paddingLeft: "var(--padding-left-for-select-input-options, 16px)";
|
|
201
|
+
paddingRight: "var(--padding-right-for-select-input-options, 16px)";
|
|
202
|
+
paddingTop: "var(--padding-top-for-select-input-options, 8px)";
|
|
203
|
+
paddingBottom: "var(--padding-bottom-for-select-input-options, 8px)";
|
|
204
|
+
lineHeight: "var(--line-height-for-select-input-options, 1.625rem)";
|
|
207
205
|
color: string | undefined;
|
|
208
206
|
backgroundColor: string | undefined;
|
|
209
207
|
'&:active': {
|
|
210
208
|
color: string | undefined;
|
|
211
|
-
backgroundColor: "var(--background-color-for-input-when-active, hsl(
|
|
209
|
+
backgroundColor: "var(--background-color-for-input-when-active, hsl(203.05555555555554, 93.9130434783%, 95%))";
|
|
212
210
|
};
|
|
213
211
|
fontColorForInput?: string | undefined;
|
|
214
212
|
borderColorForInput?: string | undefined;
|
|
@@ -237,7 +235,7 @@ export default function createSelectStyles(props: TProps & {
|
|
|
237
235
|
backgroundColor: string;
|
|
238
236
|
overflow: string;
|
|
239
237
|
display: string;
|
|
240
|
-
fill: "var(--font-color-for-input-when-disabled, hsl(0, 0%, 60%))" | "var(--font-color-for-select-input-icon,
|
|
238
|
+
fill: "var(--font-color-for-input-when-disabled, hsl(0, 0%, 60%))" | "var(--font-color-for-select-input-icon, hsl(0, 0%, 60%))";
|
|
241
239
|
fontColorForInput?: string | undefined;
|
|
242
240
|
borderColorForInput?: string | undefined;
|
|
243
241
|
color?: string | undefined;
|
|
@@ -247,7 +245,7 @@ export default function createSelectStyles(props: TProps & {
|
|
|
247
245
|
pointerEvents?: string | undefined;
|
|
248
246
|
};
|
|
249
247
|
singleValue: (base: TBase) => {
|
|
250
|
-
color: "var(--font-color-for-input, #1a1a1a)" | "var(--font-color-for-input-when-disabled, hsl(0, 0%, 60%))" | "var(--font-color-for-input-when-readonly, hsl(0, 0%,
|
|
248
|
+
color: "var(--font-color-for-input, #1a1a1a)" | "var(--font-color-for-input-when-disabled, hsl(0, 0%, 60%))" | "var(--font-color-for-input-when-readonly, hsl(0, 0%, 40%))" | "var(--font-color-for-select-input-when-error, #e60050)" | "var(--font-color-for-select-input-when-warning, #f16d0e)";
|
|
251
249
|
fontColorForInput?: string | undefined;
|
|
252
250
|
borderColorForInput?: string | undefined;
|
|
253
251
|
backgroundColor?: string | undefined;
|
|
@@ -271,7 +269,7 @@ export default function createSelectStyles(props: TProps & {
|
|
|
271
269
|
pointerEvents?: string | undefined;
|
|
272
270
|
};
|
|
273
271
|
groupHeading: (base: TBase) => {
|
|
274
|
-
color: "var(--font-color-for-input-when-readonly, hsl(0, 0%,
|
|
272
|
+
color: "var(--font-color-for-input-when-readonly, hsl(0, 0%, 40%))";
|
|
275
273
|
fontSize: "var(--font-size-small, 0.9231rem)";
|
|
276
274
|
textTransform: string;
|
|
277
275
|
fontWeight: string;
|
|
@@ -290,7 +288,7 @@ export default function createSelectStyles(props: TProps & {
|
|
|
290
288
|
container: (base: TBase, state: TState) => {
|
|
291
289
|
fontFamily: string;
|
|
292
290
|
minHeight: "var(--size-height-input, 32px)";
|
|
293
|
-
borderRadius: "var(--border-radius-for-input,
|
|
291
|
+
borderRadius: "var(--border-radius-for-input, 4px)";
|
|
294
292
|
borderColor: string | undefined;
|
|
295
293
|
boxShadow: string | undefined;
|
|
296
294
|
fontColorForInput?: string | undefined;
|
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": "16.
|
|
4
|
+
"version": "16.1.1",
|
|
5
5
|
"bugs": "https://github.com/commercetools/ui-kit/issues",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -21,17 +21,17 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@babel/runtime": "^7.20.13",
|
|
23
23
|
"@babel/runtime-corejs3": "^7.20.13",
|
|
24
|
-
"@commercetools-uikit/accessible-button": "16.
|
|
25
|
-
"@commercetools-uikit/design-system": "16.
|
|
26
|
-
"@commercetools-uikit/icons": "16.
|
|
27
|
-
"@commercetools-uikit/spacings": "16.
|
|
28
|
-
"@commercetools-uikit/text": "16.
|
|
29
|
-
"@commercetools-uikit/utils": "16.
|
|
24
|
+
"@commercetools-uikit/accessible-button": "16.1.1",
|
|
25
|
+
"@commercetools-uikit/design-system": "16.1.1",
|
|
26
|
+
"@commercetools-uikit/icons": "16.1.1",
|
|
27
|
+
"@commercetools-uikit/spacings": "16.1.1",
|
|
28
|
+
"@commercetools-uikit/text": "16.1.1",
|
|
29
|
+
"@commercetools-uikit/utils": "16.1.1",
|
|
30
30
|
"@emotion/react": "^11.10.5",
|
|
31
31
|
"@emotion/styled": "^11.10.5",
|
|
32
32
|
"lodash": "4.17.21",
|
|
33
33
|
"prop-types": "15.8.1",
|
|
34
|
-
"react-select": "5.7.
|
|
34
|
+
"react-select": "5.7.3"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"react": "17.0.2",
|