@commercetools-uikit/select-utils 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.
- package/dist/commercetools-uikit-select-utils.cjs.d.ts +1 -0
- package/dist/commercetools-uikit-select-utils.cjs.dev.js +42 -83
- package/dist/commercetools-uikit-select-utils.cjs.prod.js +35 -40
- package/dist/commercetools-uikit-select-utils.esm.js +41 -81
- package/dist/declarations/src/clear-indicator/clear-indicator.d.ts +13 -0
- package/dist/declarations/src/clear-indicator/index.d.ts +1 -0
- package/dist/declarations/src/clear-indicator/messages.d.ts +8 -0
- package/dist/declarations/src/create-select-styles.d.ts +294 -0
- package/dist/declarations/src/custom-styled-select-options/constants.d.ts +6 -0
- package/dist/declarations/src/custom-styled-select-options/custom-styled-select-options.d.ts +29 -0
- package/dist/declarations/src/custom-styled-select-options/index.d.ts +2 -0
- package/dist/declarations/src/dropdown-indicator/dropdown-indicator.d.ts +6 -0
- package/dist/declarations/src/dropdown-indicator/index.d.ts +1 -0
- package/dist/declarations/src/index.d.ts +10 -0
- package/dist/declarations/src/messages.d.ts +28 -0
- package/dist/declarations/src/search-icon-dropdown-indicator/index.d.ts +1 -0
- package/dist/declarations/src/search-icon-dropdown-indicator/search-icon-dropdown-indicator.d.ts +6 -0
- package/dist/declarations/src/tag-remove/index.d.ts +1 -0
- package/dist/declarations/src/tag-remove/tag-remove.d.ts +12 -0
- package/dist/declarations/src/version.d.ts +2 -0
- package/dist/declarations/src/wrapper-with-icon/index.d.ts +1 -0
- package/dist/declarations/src/wrapper-with-icon/wrapper-with-icon.d.ts +19 -0
- package/package.json +11 -15
|
@@ -11,15 +11,14 @@ import _defineProperty from '@babel/runtime-corejs3/helpers/esm/defineProperty';
|
|
|
11
11
|
import _concatInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/concat';
|
|
12
12
|
import { customProperties, designTokens } from '@commercetools-uikit/design-system';
|
|
13
13
|
import _objectWithoutProperties from '@babel/runtime-corejs3/helpers/esm/objectWithoutProperties';
|
|
14
|
-
import PropTypes from 'prop-types';
|
|
15
14
|
import { css } from '@emotion/react';
|
|
16
15
|
import { CloseIcon, CloseBoldIcon, CaretDownIcon, SearchIcon } from '@commercetools-uikit/icons';
|
|
17
16
|
import { jsx, jsxs, Fragment } from '@emotion/react/jsx-runtime';
|
|
18
17
|
import omit from 'lodash/omit';
|
|
19
18
|
import AccessibleButton from '@commercetools-uikit/accessible-button';
|
|
20
19
|
import { components } from 'react-select';
|
|
20
|
+
import _pt from 'prop-types';
|
|
21
21
|
import { cloneElement, Fragment as Fragment$1 } from 'react';
|
|
22
|
-
import _Object$values from '@babel/runtime-corejs3/core-js-stable/object/values';
|
|
23
22
|
import Spacings from '@commercetools-uikit/spacings';
|
|
24
23
|
import Text from '@commercetools-uikit/text';
|
|
25
24
|
|
|
@@ -31,7 +30,7 @@ var messages$1 = defineMessages({
|
|
|
31
30
|
}
|
|
32
31
|
});
|
|
33
32
|
|
|
34
|
-
var _excluded
|
|
33
|
+
var _excluded = ["ref"];
|
|
35
34
|
|
|
36
35
|
function ownKeys$6(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); if (enumerableOnly) { symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
37
36
|
|
|
@@ -43,11 +42,11 @@ var ClearIndicator = function ClearIndicator(props) {
|
|
|
43
42
|
var getStyles = props.getStyles,
|
|
44
43
|
_props$innerProps = props.innerProps,
|
|
45
44
|
ref = _props$innerProps.ref,
|
|
46
|
-
restInnerProps = _objectWithoutProperties(_props$innerProps, _excluded
|
|
45
|
+
restInnerProps = _objectWithoutProperties(_props$innerProps, _excluded);
|
|
47
46
|
|
|
48
47
|
return jsx("button", _objectSpread$6(_objectSpread$6({}, restInnerProps), {}, {
|
|
49
48
|
ref: ref,
|
|
50
|
-
css: /*#__PURE__*/css("border:none;cursor:pointer;background:none;box-sizing:border-box;text-decoration:none;:hover svg *{fill:", customProperties.colorWarning, ";}" + (process.env.NODE_ENV === "production" ? "" : ";label:ClearIndicator;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
|
49
|
+
css: /*#__PURE__*/css("border:none;cursor:pointer;background:none;box-sizing:border-box;text-decoration:none;:hover svg *{fill:", customProperties.colorWarning, ";}" + (process.env.NODE_ENV === "production" ? "" : ";label:ClearIndicator;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImNsZWFyLWluZGljYXRvci50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBMEJjIiwiZmlsZSI6ImNsZWFyLWluZGljYXRvci50c3giLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgdHlwZSB7IENTU1Byb3BlcnRpZXMsIExlZ2FjeVJlZiB9IGZyb20gJ3JlYWN0JztcbmltcG9ydCB0eXBlIHsgQ2xlYXJJbmRpY2F0b3JQcm9wcyB9IGZyb20gJ3JlYWN0LXNlbGVjdCc7XG5pbXBvcnQgeyBjc3MgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5pbXBvcnQgeyB1c2VJbnRsIH0gZnJvbSAncmVhY3QtaW50bCc7XG5pbXBvcnQgeyBjdXN0b21Qcm9wZXJ0aWVzIGFzIHZhcnMgfSBmcm9tICdAY29tbWVyY2V0b29scy11aWtpdC9kZXNpZ24tc3lzdGVtJztcbmltcG9ydCB7IENsb3NlSWNvbiB9IGZyb20gJ0Bjb21tZXJjZXRvb2xzLXVpa2l0L2ljb25zJztcbmltcG9ydCBtZXNzYWdlcyBmcm9tICcuL21lc3NhZ2VzJztcblxudHlwZSBUSW5uZXJQcm9wcyA9IHtcbiAgcmVmOiBMZWdhY3lSZWY8SFRNTEJ1dHRvbkVsZW1lbnQ+O1xufSAmIEpTWC5JbnRyaW5zaWNFbGVtZW50c1snYnV0dG9uJ107XG5cbnR5cGUgVENsZWFySW5kaWNhdG9yID0ge1xuICBpbm5lclByb3BzOiBUSW5uZXJQcm9wcztcbn0gJiBDbGVhckluZGljYXRvclByb3BzO1xuXG5jb25zdCBDbGVhckluZGljYXRvciA9IChwcm9wczogVENsZWFySW5kaWNhdG9yKSA9PiB7XG4gIGNvbnN0IGludGwgPSB1c2VJbnRsKCk7XG4gIGNvbnN0IHtcbiAgICBnZXRTdHlsZXMsXG4gICAgaW5uZXJQcm9wczogeyByZWYsIC4uLnJlc3RJbm5lclByb3BzIH0sXG4gIH0gPSBwcm9wcztcbiAgcmV0dXJuIChcbiAgICA8YnV0dG9uXG4gICAgICB7Li4ucmVzdElubmVyUHJvcHN9XG4gICAgICByZWY9e3JlZn1cbiAgICAgIGNzcz17Y3NzYFxuICAgICAgICBib3JkZXI6IG5vbmU7XG4gICAgICAgIGN1cnNvcjogcG9pbnRlcjtcbiAgICAgICAgYmFja2dyb3VuZDogbm9uZTtcbiAgICAgICAgYm94LXNpemluZzogYm9yZGVyLWJveDtcbiAgICAgICAgdGV4dC1kZWNvcmF0aW9uOiBub25lO1xuICAgICAgICA6aG92ZXIgc3ZnICoge1xuICAgICAgICAgIGZpbGw6ICR7dmFycy5jb2xvcldhcm5pbmd9O1xuICAgICAgICB9XG4gICAgICBgfVxuICAgICAgc3R5bGU9e2dldFN0eWxlcygnY2xlYXJJbmRpY2F0b3InLCBwcm9wcykgYXMgQ1NTUHJvcGVydGllc31cbiAgICAgIHRpdGxlPXtpbnRsLmZvcm1hdE1lc3NhZ2UobWVzc2FnZXMuY2xlYXJCdXR0b25MYWJlbCl9XG4gICAgICBhcmlhLWxhYmVsPXtpbnRsLmZvcm1hdE1lc3NhZ2UobWVzc2FnZXMuY2xlYXJCdXR0b25MYWJlbCl9XG4gICAgPlxuICAgICAgPENsb3NlSWNvbiBjb2xvcj1cInNvbGlkXCIgc2l6ZT1cIm1lZGl1bVwiIC8+XG4gICAgPC9idXR0b24+XG4gICk7XG59O1xuXG5DbGVhckluZGljYXRvci5kaXNwbGF5TmFtZSA9ICdDbGVhckluZGljYXRvcic7XG5cbmV4cG9ydCBkZWZhdWx0IENsZWFySW5kaWNhdG9yO1xuIl19 */"),
|
|
51
50
|
style: getStyles('clearIndicator', props),
|
|
52
51
|
title: intl.formatMessage(messages$1.clearButtonLabel),
|
|
53
52
|
"aria-label": intl.formatMessage(messages$1.clearButtonLabel),
|
|
@@ -59,15 +58,12 @@ var ClearIndicator = function ClearIndicator(props) {
|
|
|
59
58
|
};
|
|
60
59
|
|
|
61
60
|
ClearIndicator.displayName = 'ClearIndicator';
|
|
62
|
-
ClearIndicator.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
63
|
-
innerProps: PropTypes.object,
|
|
64
|
-
getStyles: PropTypes.func.isRequired
|
|
65
|
-
} : {};
|
|
66
61
|
var ClearIndicator$1 = ClearIndicator;
|
|
67
62
|
|
|
68
63
|
function ownKeys$5(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); if (enumerableOnly) { symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
69
64
|
|
|
70
65
|
function _objectSpread$5(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { var _context; _forEachInstanceProperty(_context = ownKeys$5(Object(source), true)).call(_context, function (key) { _defineProperty(target, key, source[key]); }); } else if (_Object$getOwnPropertyDescriptors) { _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)); } else { var _context2; _forEachInstanceProperty(_context2 = ownKeys$5(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
66
|
+
// see https://github.com/JedWatson/react-select/blob/44e9fb29b230e49a754a2f0d6f30c2250aa45009/src/components/MultiValue.js
|
|
71
67
|
var removeProps = ['onClick', 'onTouchEnd', 'onMouseDown'];
|
|
72
68
|
|
|
73
69
|
var TagRemove = function TagRemove(props) {
|
|
@@ -86,13 +82,6 @@ var TagRemove = function TagRemove(props) {
|
|
|
86
82
|
};
|
|
87
83
|
|
|
88
84
|
TagRemove.displayName = 'TagRemove';
|
|
89
|
-
TagRemove.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
90
|
-
selectProps: PropTypes.shape({
|
|
91
|
-
isDisabled: PropTypes.bool.isRequired,
|
|
92
|
-
isReadOnly: PropTypes.bool
|
|
93
|
-
}).isRequired,
|
|
94
|
-
innerProps: PropTypes.object
|
|
95
|
-
} : {};
|
|
96
85
|
var TagRemove$1 = TagRemove;
|
|
97
86
|
|
|
98
87
|
function ownKeys$4(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); if (enumerableOnly) { symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
@@ -109,9 +98,6 @@ var DropdownIndicator = function DropdownIndicator(props) {
|
|
|
109
98
|
};
|
|
110
99
|
|
|
111
100
|
DropdownIndicator.displayName = 'DropdownIndicator';
|
|
112
|
-
DropdownIndicator.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
113
|
-
isDisabled: PropTypes.bool
|
|
114
|
-
} : {};
|
|
115
101
|
var DropdownIndicator$1 = DropdownIndicator;
|
|
116
102
|
|
|
117
103
|
function ownKeys$3(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); if (enumerableOnly) { symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
@@ -130,8 +116,6 @@ var SearchIconDropdownIndicator = function SearchIconDropdownIndicator(props) {
|
|
|
130
116
|
SearchIconDropdownIndicator.displayName = 'SearchIconDropdownIndicator';
|
|
131
117
|
var SearchIconDropdownIndicator$1 = SearchIconDropdownIndicator;
|
|
132
118
|
|
|
133
|
-
var _excluded = ["children"];
|
|
134
|
-
|
|
135
119
|
function ownKeys$2(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); if (enumerableOnly) { symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
136
120
|
|
|
137
121
|
function _objectSpread$2(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { var _context; _forEachInstanceProperty(_context = ownKeys$2(Object(source), true)).call(_context, function (key) { _defineProperty(target, key, source[key]); }); } else if (_Object$getOwnPropertyDescriptors) { _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)); } else { var _context2; _forEachInstanceProperty(_context2 = ownKeys$2(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
@@ -142,10 +126,7 @@ var getDefaultComponent = function getDefaultComponent(type) {
|
|
|
142
126
|
return Fragment$1;
|
|
143
127
|
};
|
|
144
128
|
|
|
145
|
-
var WrapperWithIcon = function WrapperWithIcon(
|
|
146
|
-
var children = _ref.children,
|
|
147
|
-
props = _objectWithoutProperties(_ref, _excluded);
|
|
148
|
-
|
|
129
|
+
var WrapperWithIcon = function WrapperWithIcon(props) {
|
|
149
130
|
var Component = getDefaultComponent(props.type);
|
|
150
131
|
return jsxs(Fragment, {
|
|
151
132
|
children: [props.selectProps.iconLeft && /*#__PURE__*/cloneElement(props.selectProps.iconLeft, {
|
|
@@ -154,20 +135,19 @@ var WrapperWithIcon = function WrapperWithIcon(_ref) {
|
|
|
154
135
|
// react-select uses absolute positioning for the SingleValue/Placeholder
|
|
155
136
|
// the icon has a fixed size of 24px (== SpacingsXl), therefore we can use a fixed margin
|
|
156
137
|
// spacingsXs is the margin between the icon and value
|
|
157
|
-
css: /*#__PURE__*/css("margin-left:", customProperties.spacingXl + customProperties.spacingXs, ";" + (process.env.NODE_ENV === "production" ? "" : ";label:WrapperWithIcon;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
|
138
|
+
css: /*#__PURE__*/css("margin-left:", customProperties.spacingXl + customProperties.spacingXs, ";" + (process.env.NODE_ENV === "production" ? "" : ";label:WrapperWithIcon;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndyYXBwZXItd2l0aC1pY29uLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFzQ2dCIiwiZmlsZSI6IndyYXBwZXItd2l0aC1pY29uLnRzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IEZyYWdtZW50LCBjbG9uZUVsZW1lbnQsIFJlYWN0RWxlbWVudCB9IGZyb20gJ3JlYWN0JztcbmltcG9ydCB7IGNzcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcbmltcG9ydCB7IGN1c3RvbVByb3BlcnRpZXMgfSBmcm9tICdAY29tbWVyY2V0b29scy11aWtpdC9kZXNpZ24tc3lzdGVtJztcbmltcG9ydCB7XG4gIGNvbXBvbmVudHMgYXMgZGVmYXVsdENvbXBvbmVudHMsXG4gIFNpbmdsZVZhbHVlUHJvcHMsXG4gIFBsYWNlaG9sZGVyUHJvcHMsXG59IGZyb20gJ3JlYWN0LXNlbGVjdCc7XG5cbmV4cG9ydCB0eXBlIFRXcmFwcGVyV2l0aEljb25Qcm9wcyA9IHtcbiAgdHlwZTogc3RyaW5nO1xuICBzZWxlY3RQcm9wczogVFNlbGVjdFByb3BzO1xufSAmIFNpbmdsZVZhbHVlUHJvcHMgJlxuICBQbGFjZWhvbGRlclByb3BzO1xuXG5jb25zdCBnZXREZWZhdWx0Q29tcG9uZW50ID0gKHR5cGU6IFRXcmFwcGVyV2l0aEljb25Qcm9wc1sndHlwZSddKSA9PiB7XG4gIGlmICh0eXBlID09PSAnc2luZ2xlVmFsdWUnKSByZXR1cm4gZGVmYXVsdENvbXBvbmVudHMuU2luZ2xlVmFsdWU7XG4gIGlmICh0eXBlID09PSAncGxhY2Vob2xkZXInKSByZXR1cm4gZGVmYXVsdENvbXBvbmVudHMuUGxhY2Vob2xkZXI7XG4gIHJldHVybiBGcmFnbWVudDtcbn07XG5cbnR5cGUgVFNlbGVjdFByb3BzID0ge1xuICBpY29uTGVmdDogUmVhY3RFbGVtZW50O1xufTtcblxuY29uc3QgV3JhcHBlcldpdGhJY29uID0gKHByb3BzOiBUV3JhcHBlcldpdGhJY29uUHJvcHMpID0+IHtcbiAgY29uc3QgQ29tcG9uZW50ID0gZ2V0RGVmYXVsdENvbXBvbmVudChwcm9wcy50eXBlKTtcblxuICByZXR1cm4gKFxuICAgIDw+XG4gICAgICB7cHJvcHMuc2VsZWN0UHJvcHMuaWNvbkxlZnQgJiZcbiAgICAgICAgY2xvbmVFbGVtZW50KHByb3BzLnNlbGVjdFByb3BzLmljb25MZWZ0LCB7XG4gICAgICAgICAgc2l6ZTogJ2JpZycsXG4gICAgICAgIH0pfVxuICAgICAgPHNwYW5cbiAgICAgICAgLy8gcmVhY3Qtc2VsZWN0IHVzZXMgYWJzb2x1dGUgcG9zaXRpb25pbmcgZm9yIHRoZSBTaW5nbGVWYWx1ZS9QbGFjZWhvbGRlclxuICAgICAgICAvLyB0aGUgaWNvbiBoYXMgYSBmaXhlZCBzaXplIG9mIDI0cHggKD09IFNwYWNpbmdzWGwpLCB0aGVyZWZvcmUgd2UgY2FuIHVzZSBhIGZpeGVkIG1hcmdpblxuICAgICAgICAvLyBzcGFjaW5nc1hzIGlzIHRoZSBtYXJnaW4gYmV0d2VlbiB0aGUgaWNvbiBhbmQgdmFsdWVcbiAgICAgICAgY3NzPXtjc3NgXG4gICAgICAgICAgbWFyZ2luLWxlZnQ6ICR7Y3VzdG9tUHJvcGVydGllcy5zcGFjaW5nWGwgK1xuICAgICAgICAgIGN1c3RvbVByb3BlcnRpZXMuc3BhY2luZ1hzfTtcbiAgICAgICAgYH1cbiAgICAgID5cbiAgICAgICAgPENvbXBvbmVudCB7Li4ucHJvcHN9Pntwcm9wcy5jaGlsZHJlbn08L0NvbXBvbmVudD5cbiAgICAgIDwvc3Bhbj5cbiAgICA8Lz5cbiAgKTtcbn07XG5cbldyYXBwZXJXaXRoSWNvbi5kaXNwbGF5TmFtZSA9ICdXcmFwcGVyV2l0aEljb24nO1xuXG5leHBvcnQgZGVmYXVsdCBXcmFwcGVyV2l0aEljb247XG5cbi8qIGVzbGludC1kaXNhYmxlIHJlYWN0L2Rpc3BsYXktbmFtZSAqL1xuY29uc3QgY3VzdG9tQ29tcG9uZW50cyA9IHtcbiAgU2luZ2xlVmFsdWU6IChwcm9wczogVFdyYXBwZXJXaXRoSWNvblByb3BzKSA9PiAoXG4gICAgPFdyYXBwZXJXaXRoSWNvbiB7Li4ucHJvcHN9IHR5cGU9XCJzaW5nbGVWYWx1ZVwiIC8+XG4gICksXG4gIFBsYWNlaG9sZGVyOiAocHJvcHM6IFRXcmFwcGVyV2l0aEljb25Qcm9wcykgPT4gKFxuICAgIDxXcmFwcGVyV2l0aEljb24gey4uLnByb3BzfSB0eXBlPVwicGxhY2Vob2xkZXJcIiAvPlxuICApLFxufTtcbi8qIGVzbGludC1lbmFibGUgcmVhY3QvZGlzcGxheS1uYW1lICovXG5cbmV4cG9ydCB7IGN1c3RvbUNvbXBvbmVudHMgfTtcbiJdfQ== */"),
|
|
158
139
|
children: jsx(Component, _objectSpread$2(_objectSpread$2({}, props), {}, {
|
|
159
|
-
children: children
|
|
140
|
+
children: props.children
|
|
160
141
|
}))
|
|
161
142
|
})]
|
|
162
143
|
});
|
|
163
144
|
};
|
|
164
145
|
|
|
165
146
|
WrapperWithIcon.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
})
|
|
147
|
+
type: _pt.string.isRequired,
|
|
148
|
+
selectProps: _pt.shape({
|
|
149
|
+
iconLeft: _pt.element.isRequired
|
|
150
|
+
}).isRequired
|
|
171
151
|
} : {};
|
|
172
152
|
WrapperWithIcon.displayName = 'WrapperWithIcon';
|
|
173
153
|
var WrapperWithIcon$1 = WrapperWithIcon;
|
|
@@ -204,24 +184,16 @@ var MultiplePropertiesSelectInputOption = function MultiplePropertiesSelectInput
|
|
|
204
184
|
scale: "xs",
|
|
205
185
|
children: [jsx(Text.Detail, {
|
|
206
186
|
isBold: true,
|
|
207
|
-
children: data.label || noValueFallback
|
|
187
|
+
children: (data === null || data === void 0 ? void 0 : data.label) || noValueFallback
|
|
208
188
|
}), jsxs(Text.Detail, {
|
|
209
|
-
children: ["Key: ", data.key || noValueFallback]
|
|
189
|
+
children: ["Key: ", (data === null || data === void 0 ? void 0 : data.key) || noValueFallback]
|
|
210
190
|
}), jsxs(Text.Detail, {
|
|
211
|
-
children: ["ID: ", data.id || noValueFallback]
|
|
191
|
+
children: ["ID: ", (data === null || data === void 0 ? void 0 : data.id) || noValueFallback]
|
|
212
192
|
})]
|
|
213
193
|
})
|
|
214
194
|
}));
|
|
215
195
|
};
|
|
216
196
|
MultiplePropertiesSelectInputOption.displayName = 'MultiplePropertiesSelectInputOption';
|
|
217
|
-
MultiplePropertiesSelectInputOption.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
218
|
-
data: PropTypes.shape({
|
|
219
|
-
label: PropTypes.string,
|
|
220
|
-
key: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
221
|
-
id: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
|
|
222
|
-
}),
|
|
223
|
-
noValueFallback: PropTypes.string
|
|
224
|
-
} : {};
|
|
225
197
|
var DoublePropertySelectInputOption = function DoublePropertySelectInputOption(props) {
|
|
226
198
|
var data = props.data;
|
|
227
199
|
var noValueFallback = props.noValueFallback || NO_VALUE_FALLBACK;
|
|
@@ -230,22 +202,17 @@ var DoublePropertySelectInputOption = function DoublePropertySelectInputOption(p
|
|
|
230
202
|
scale: "xs",
|
|
231
203
|
children: [jsx(Text.Detail, {
|
|
232
204
|
isBold: true,
|
|
233
|
-
children: data.label || noValueFallback
|
|
205
|
+
children: (data === null || data === void 0 ? void 0 : data.label) || noValueFallback
|
|
234
206
|
}), jsxs(Text.Detail, {
|
|
235
|
-
children: ["Key: ", data.key || noValueFallback]
|
|
207
|
+
children: ["Key: ", (data === null || data === void 0 ? void 0 : data.key) || noValueFallback]
|
|
236
208
|
})]
|
|
237
209
|
})
|
|
238
210
|
}));
|
|
239
211
|
};
|
|
240
212
|
DoublePropertySelectInputOption.displayName = 'DoublePropertySelectInputOption';
|
|
241
|
-
DoublePropertySelectInputOption.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
242
|
-
data: PropTypes.shape({
|
|
243
|
-
label: PropTypes.string,
|
|
244
|
-
key: PropTypes.string
|
|
245
|
-
}),
|
|
246
|
-
noValueFallback: PropTypes.string
|
|
247
|
-
} : {};
|
|
248
213
|
var CustomSelectInputOption = function CustomSelectInputOption(props) {
|
|
214
|
+
var _props$optionInnerPro;
|
|
215
|
+
|
|
249
216
|
var noValueFallback = props.noValueFallback || NO_VALUE_FALLBACK;
|
|
250
217
|
|
|
251
218
|
switch (props.optionType) {
|
|
@@ -262,23 +229,12 @@ var CustomSelectInputOption = function CustomSelectInputOption(props) {
|
|
|
262
229
|
default:
|
|
263
230
|
return jsx(components.Option, _objectSpread$1(_objectSpread$1({}, props.optionInnerProps), {}, {
|
|
264
231
|
children: jsx(Text.Detail, {
|
|
265
|
-
children: props.optionInnerProps.data.label || noValueFallback
|
|
232
|
+
children: ((_props$optionInnerPro = props.optionInnerProps.data) === null || _props$optionInnerPro === void 0 ? void 0 : _props$optionInnerPro.label) || noValueFallback
|
|
266
233
|
})
|
|
267
234
|
}));
|
|
268
235
|
}
|
|
269
236
|
};
|
|
270
237
|
CustomSelectInputOption.displayName = 'CustomSelectInputOption';
|
|
271
|
-
CustomSelectInputOption.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
272
|
-
optionType: PropTypes.oneOf(_Object$values(SELECT_DROPDOWN_OPTION_TYPES)),
|
|
273
|
-
noValueFallback: PropTypes.string,
|
|
274
|
-
optionInnerProps: PropTypes.shape({
|
|
275
|
-
data: PropTypes.shape({
|
|
276
|
-
label: PropTypes.string,
|
|
277
|
-
key: PropTypes.string,
|
|
278
|
-
id: PropTypes.string
|
|
279
|
-
})
|
|
280
|
-
}).isRequired
|
|
281
|
-
} : {};
|
|
282
238
|
|
|
283
239
|
var messages = defineMessages({
|
|
284
240
|
createLabel: {
|
|
@@ -383,7 +339,7 @@ var menuStyles = function menuStyles(props, theme) {
|
|
|
383
339
|
};
|
|
384
340
|
};
|
|
385
341
|
|
|
386
|
-
var indicatorSeparatorStyles = function indicatorSeparatorStyles(
|
|
342
|
+
var indicatorSeparatorStyles = function indicatorSeparatorStyles(theme) {
|
|
387
343
|
return function (base) {
|
|
388
344
|
var overwrittenVars = _objectSpread(_objectSpread({}, customProperties), theme);
|
|
389
345
|
|
|
@@ -419,7 +375,7 @@ var clearIndicatorStyles = function clearIndicatorStyles() {
|
|
|
419
375
|
};
|
|
420
376
|
};
|
|
421
377
|
|
|
422
|
-
var menuListStyles = function menuListStyles(
|
|
378
|
+
var menuListStyles = function menuListStyles(theme) {
|
|
423
379
|
return function (base) {
|
|
424
380
|
var overwrittenVars = _objectSpread(_objectSpread({}, customProperties), theme);
|
|
425
381
|
|
|
@@ -431,7 +387,7 @@ var menuListStyles = function menuListStyles(props, theme) {
|
|
|
431
387
|
};
|
|
432
388
|
};
|
|
433
389
|
|
|
434
|
-
var optionStyles = function optionStyles(
|
|
390
|
+
var optionStyles = function optionStyles(theme) {
|
|
435
391
|
return function (base, state) {
|
|
436
392
|
var _context2, _context3;
|
|
437
393
|
|
|
@@ -485,6 +441,10 @@ var valueContainerStyles = function valueContainerStyles(props, theme) {
|
|
|
485
441
|
padding: '0',
|
|
486
442
|
backgroundColor: 'none',
|
|
487
443
|
overflow: 'hidden',
|
|
444
|
+
// Display property should be grid when isMulti and has no value so the Placeholder component is positioned correctly with the Input
|
|
445
|
+
// Display property should be Flex when there is an iconLeft, also when the input has some values when isMulti.
|
|
446
|
+
// 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 ? 'flex' : 'grid',
|
|
488
448
|
fill: props.isDisabled || props.isReadOnly ? overwrittenVars[designTokens.fontColorForInputWhenDisabled] : base.fontColorForInput
|
|
489
449
|
});
|
|
490
450
|
};
|
|
@@ -523,7 +483,7 @@ var groupStyles = function groupStyles(props, theme) {
|
|
|
523
483
|
};
|
|
524
484
|
};
|
|
525
485
|
|
|
526
|
-
var groupHeadingStyles = function groupHeadingStyles(
|
|
486
|
+
var groupHeadingStyles = function groupHeadingStyles(theme) {
|
|
527
487
|
return function (base) {
|
|
528
488
|
var _context4;
|
|
529
489
|
|
|
@@ -543,7 +503,7 @@ var groupHeadingStyles = function groupHeadingStyles(props, theme) {
|
|
|
543
503
|
};
|
|
544
504
|
};
|
|
545
505
|
|
|
546
|
-
var containerStyles = function containerStyles(
|
|
506
|
+
var containerStyles = function containerStyles(theme) {
|
|
547
507
|
return function (base, state) {
|
|
548
508
|
var overwrittenVars = _objectSpread(_objectSpread({}, customProperties), theme);
|
|
549
509
|
|
|
@@ -575,7 +535,7 @@ var menuPortalStyles = function menuPortalStyles(props) {
|
|
|
575
535
|
};
|
|
576
536
|
};
|
|
577
537
|
|
|
578
|
-
var multiValueStyles = function multiValueStyles(
|
|
538
|
+
var multiValueStyles = function multiValueStyles(theme) {
|
|
579
539
|
return function (base) {
|
|
580
540
|
var overwrittenVars = _objectSpread(_objectSpread({}, customProperties), theme);
|
|
581
541
|
|
|
@@ -644,26 +604,26 @@ function createSelectStyles(props, theme) {
|
|
|
644
604
|
return {
|
|
645
605
|
control: controlStyles(props, theme),
|
|
646
606
|
menu: menuStyles(props, theme),
|
|
647
|
-
indicatorSeparator: indicatorSeparatorStyles(
|
|
607
|
+
indicatorSeparator: indicatorSeparatorStyles(theme),
|
|
648
608
|
dropdownIndicator: dropdownIndicatorStyles(props, theme),
|
|
649
|
-
clearIndicator: clearIndicatorStyles(
|
|
650
|
-
menuList: menuListStyles(
|
|
651
|
-
menuPortal: menuPortalStyles(props
|
|
652
|
-
multiValue: multiValueStyles(
|
|
609
|
+
clearIndicator: clearIndicatorStyles(),
|
|
610
|
+
menuList: menuListStyles(theme),
|
|
611
|
+
menuPortal: menuPortalStyles(props),
|
|
612
|
+
multiValue: multiValueStyles(theme),
|
|
653
613
|
multiValueLabel: multiValueLabelStyles(props, theme),
|
|
654
614
|
multiValueRemove: multiValueRemoveStyles(props, theme),
|
|
655
|
-
indicatorsContainer: indicatorsContainerStyles(
|
|
656
|
-
option: optionStyles(
|
|
615
|
+
indicatorsContainer: indicatorsContainerStyles(),
|
|
616
|
+
option: optionStyles(theme),
|
|
657
617
|
placeholder: placeholderStyles(props, theme),
|
|
658
618
|
valueContainer: valueContainerStyles(props, theme),
|
|
659
619
|
singleValue: singleValueStyles(props, theme),
|
|
660
620
|
group: groupStyles(props, theme),
|
|
661
|
-
groupHeading: groupHeadingStyles(
|
|
662
|
-
container: containerStyles(
|
|
621
|
+
groupHeading: groupHeadingStyles(theme),
|
|
622
|
+
container: containerStyles(theme)
|
|
663
623
|
};
|
|
664
624
|
}
|
|
665
625
|
|
|
666
|
-
// NOTE: This string will be replaced
|
|
667
|
-
var version =
|
|
626
|
+
// NOTE: This string will be replaced on build time with the package version.
|
|
627
|
+
var version = "12.2.9";
|
|
668
628
|
|
|
669
629
|
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 };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { LegacyRef } from 'react';
|
|
2
|
+
import type { ClearIndicatorProps } from 'react-select';
|
|
3
|
+
declare type TInnerProps = {
|
|
4
|
+
ref: LegacyRef<HTMLButtonElement>;
|
|
5
|
+
} & JSX.IntrinsicElements['button'];
|
|
6
|
+
declare type TClearIndicator = {
|
|
7
|
+
innerProps: TInnerProps;
|
|
8
|
+
} & ClearIndicatorProps;
|
|
9
|
+
declare const ClearIndicator: {
|
|
10
|
+
(props: TClearIndicator): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
11
|
+
displayName: string;
|
|
12
|
+
};
|
|
13
|
+
export default ClearIndicator;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './clear-indicator';
|
|
@@ -0,0 +1,294 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { Theme } from '@emotion/react';
|
|
3
|
+
declare type TProps = {
|
|
4
|
+
isDisabled?: boolean;
|
|
5
|
+
hasError?: boolean;
|
|
6
|
+
hasWarning?: boolean;
|
|
7
|
+
isReadOnly?: boolean;
|
|
8
|
+
showOptionGroupDivider?: boolean;
|
|
9
|
+
menuPortalZIndex?: number;
|
|
10
|
+
iconLeft?: ReactNode;
|
|
11
|
+
isMulti?: boolean;
|
|
12
|
+
hasValue?: boolean;
|
|
13
|
+
};
|
|
14
|
+
declare type TBase = {
|
|
15
|
+
fontColorForInput?: string;
|
|
16
|
+
borderColorForInput?: string;
|
|
17
|
+
color?: string;
|
|
18
|
+
backgroundColor?: string;
|
|
19
|
+
borderTop?: string;
|
|
20
|
+
borderColor?: string;
|
|
21
|
+
boxShadow?: string;
|
|
22
|
+
pointerEvents?: string;
|
|
23
|
+
};
|
|
24
|
+
declare type TState = {
|
|
25
|
+
isFocused?: boolean;
|
|
26
|
+
isDisabled?: boolean;
|
|
27
|
+
isSelected?: boolean;
|
|
28
|
+
};
|
|
29
|
+
export default function createSelectStyles(props: TProps, theme: Theme): {
|
|
30
|
+
control: (base: TBase, state: TState) => {
|
|
31
|
+
fontSize: "1rem";
|
|
32
|
+
backgroundColor: "hsl(195, 35.2941176471%, 98%)" | "#fff";
|
|
33
|
+
borderColor: "#00b39e" | "#ccc" | "hsl(0, 0%, 60%)" | "#f16d0e" | "#e60050";
|
|
34
|
+
borderRadius: "6px";
|
|
35
|
+
minHeight: "32px";
|
|
36
|
+
cursor: string;
|
|
37
|
+
padding: string;
|
|
38
|
+
transition: string;
|
|
39
|
+
outline: number;
|
|
40
|
+
boxShadow: string;
|
|
41
|
+
'&:focus-within': {
|
|
42
|
+
boxShadow: string | null;
|
|
43
|
+
borderColor: "#00b39e" | null;
|
|
44
|
+
};
|
|
45
|
+
'&:hover': {
|
|
46
|
+
borderColor: "#00b39e" | null;
|
|
47
|
+
};
|
|
48
|
+
pointerEvents: string;
|
|
49
|
+
color: string | undefined;
|
|
50
|
+
fontColorForInput?: string | undefined;
|
|
51
|
+
borderColorForInput?: string | undefined;
|
|
52
|
+
borderTop?: string | undefined;
|
|
53
|
+
};
|
|
54
|
+
menu: (base: TBase) => {
|
|
55
|
+
border: string;
|
|
56
|
+
borderRadius: "6px";
|
|
57
|
+
backgroundColor: "#fff";
|
|
58
|
+
boxShadow: "0 -1px 1.5px 0 rgba(0, 0, 0, 0.12), 0 1px 1px 0 rgba(0, 0, 0, 0.24)";
|
|
59
|
+
fontSize: "1rem";
|
|
60
|
+
fontFamily: string;
|
|
61
|
+
margin: string;
|
|
62
|
+
borderColor: string | undefined;
|
|
63
|
+
fontColorForInput?: string | undefined;
|
|
64
|
+
borderColorForInput?: string | undefined;
|
|
65
|
+
color?: string | undefined;
|
|
66
|
+
borderTop?: string | undefined;
|
|
67
|
+
pointerEvents?: string | undefined;
|
|
68
|
+
};
|
|
69
|
+
indicatorSeparator: (base: TBase) => {
|
|
70
|
+
display: string;
|
|
71
|
+
margin: string;
|
|
72
|
+
padding: string;
|
|
73
|
+
marginLeft: "4px";
|
|
74
|
+
fontColorForInput?: string | undefined;
|
|
75
|
+
borderColorForInput?: string | undefined;
|
|
76
|
+
color?: string | undefined;
|
|
77
|
+
backgroundColor?: string | undefined;
|
|
78
|
+
borderTop?: string | undefined;
|
|
79
|
+
borderColor?: string | undefined;
|
|
80
|
+
boxShadow?: string | undefined;
|
|
81
|
+
pointerEvents?: string | undefined;
|
|
82
|
+
};
|
|
83
|
+
dropdownIndicator: (base: TBase) => {
|
|
84
|
+
color: "#1a1a1a";
|
|
85
|
+
margin: string;
|
|
86
|
+
padding: string;
|
|
87
|
+
marginLeft: "4px";
|
|
88
|
+
fill: string | undefined;
|
|
89
|
+
fontColorForInput?: string | undefined;
|
|
90
|
+
borderColorForInput?: string | undefined;
|
|
91
|
+
backgroundColor?: string | undefined;
|
|
92
|
+
borderTop?: string | undefined;
|
|
93
|
+
borderColor?: string | undefined;
|
|
94
|
+
boxShadow?: string | undefined;
|
|
95
|
+
pointerEvents?: string | undefined;
|
|
96
|
+
};
|
|
97
|
+
clearIndicator: (base: TBase) => {
|
|
98
|
+
display: string;
|
|
99
|
+
padding: number;
|
|
100
|
+
fontColorForInput?: string | undefined;
|
|
101
|
+
borderColorForInput?: string | undefined;
|
|
102
|
+
color?: string | undefined;
|
|
103
|
+
backgroundColor?: string | undefined;
|
|
104
|
+
borderTop?: string | undefined;
|
|
105
|
+
borderColor?: string | undefined;
|
|
106
|
+
boxShadow?: string | undefined;
|
|
107
|
+
pointerEvents?: string | undefined;
|
|
108
|
+
};
|
|
109
|
+
menuList: (base: TBase) => {
|
|
110
|
+
padding: string;
|
|
111
|
+
borderRadius: "6px";
|
|
112
|
+
backgroundColor: "#fff";
|
|
113
|
+
fontColorForInput?: string | undefined;
|
|
114
|
+
borderColorForInput?: string | undefined;
|
|
115
|
+
color?: string | undefined;
|
|
116
|
+
borderTop?: string | undefined;
|
|
117
|
+
borderColor?: string | undefined;
|
|
118
|
+
boxShadow?: string | undefined;
|
|
119
|
+
pointerEvents?: string | undefined;
|
|
120
|
+
};
|
|
121
|
+
menuPortal: (base: TBase) => {
|
|
122
|
+
zIndex: number | undefined;
|
|
123
|
+
fontColorForInput?: string | undefined;
|
|
124
|
+
borderColorForInput?: string | undefined;
|
|
125
|
+
color?: string | undefined;
|
|
126
|
+
backgroundColor?: string | undefined;
|
|
127
|
+
borderTop?: string | undefined;
|
|
128
|
+
borderColor?: string | undefined;
|
|
129
|
+
boxShadow?: string | undefined;
|
|
130
|
+
pointerEvents?: string | undefined;
|
|
131
|
+
};
|
|
132
|
+
multiValue: (base: TBase) => {
|
|
133
|
+
height: "26px";
|
|
134
|
+
backgroundColor: "hsl(0, 0%, 95%)";
|
|
135
|
+
padding: string;
|
|
136
|
+
fontColorForInput?: string | undefined;
|
|
137
|
+
borderColorForInput?: string | undefined;
|
|
138
|
+
color?: string | undefined;
|
|
139
|
+
borderTop?: string | undefined;
|
|
140
|
+
borderColor?: string | undefined;
|
|
141
|
+
boxShadow?: string | undefined;
|
|
142
|
+
pointerEvents?: string | undefined;
|
|
143
|
+
};
|
|
144
|
+
multiValueLabel: (base: TBase) => {
|
|
145
|
+
fontSize: "0.9231rem";
|
|
146
|
+
color: string | undefined;
|
|
147
|
+
padding: string;
|
|
148
|
+
borderRadius: string;
|
|
149
|
+
border: string;
|
|
150
|
+
borderWidth: string;
|
|
151
|
+
'&:last-child': {
|
|
152
|
+
borderRadius: "2px";
|
|
153
|
+
borderWidth: string;
|
|
154
|
+
};
|
|
155
|
+
fontColorForInput?: string | undefined;
|
|
156
|
+
borderColorForInput?: string | undefined;
|
|
157
|
+
backgroundColor?: string | undefined;
|
|
158
|
+
borderTop?: string | undefined;
|
|
159
|
+
borderColor?: string | undefined;
|
|
160
|
+
boxShadow?: string | undefined;
|
|
161
|
+
pointerEvents?: string | undefined;
|
|
162
|
+
};
|
|
163
|
+
multiValueRemove: (base: TBase, state: TState) => {
|
|
164
|
+
borderColor: "hsl(0, 0%, 60%)";
|
|
165
|
+
padding: string;
|
|
166
|
+
borderRadius: string;
|
|
167
|
+
borderStyle: string;
|
|
168
|
+
borderWidth: string;
|
|
169
|
+
pointerEvents: string | undefined;
|
|
170
|
+
backgroundColor: "hsl(0, 0%, 95%)";
|
|
171
|
+
'svg *': {
|
|
172
|
+
fill: string;
|
|
173
|
+
};
|
|
174
|
+
'&:hover, &:focus': {
|
|
175
|
+
borderColor: "#f16d0e";
|
|
176
|
+
backgroundColor: "hsl(0, 0%, 95%)";
|
|
177
|
+
'svg *': {
|
|
178
|
+
fill: "#f16d0e";
|
|
179
|
+
};
|
|
180
|
+
};
|
|
181
|
+
fontColorForInput?: string | undefined;
|
|
182
|
+
borderColorForInput?: string | undefined;
|
|
183
|
+
color?: string | undefined;
|
|
184
|
+
borderTop?: string | undefined;
|
|
185
|
+
boxShadow?: string | undefined;
|
|
186
|
+
};
|
|
187
|
+
indicatorsContainer: () => {
|
|
188
|
+
background: string;
|
|
189
|
+
display: string;
|
|
190
|
+
alignItems: string;
|
|
191
|
+
};
|
|
192
|
+
option: (base: TBase, state: TState) => {
|
|
193
|
+
transition: string;
|
|
194
|
+
paddingLeft: "8px";
|
|
195
|
+
paddingRight: "8px";
|
|
196
|
+
color: string | undefined;
|
|
197
|
+
backgroundColor: string | undefined;
|
|
198
|
+
'&:active': {
|
|
199
|
+
color: string | undefined;
|
|
200
|
+
backgroundColor: "hsl(195, 35.2941176471%, 95%)";
|
|
201
|
+
};
|
|
202
|
+
fontColorForInput?: string | undefined;
|
|
203
|
+
borderColorForInput?: string | undefined;
|
|
204
|
+
borderTop?: string | undefined;
|
|
205
|
+
borderColor?: string | undefined;
|
|
206
|
+
boxShadow?: string | undefined;
|
|
207
|
+
pointerEvents?: string | undefined;
|
|
208
|
+
};
|
|
209
|
+
placeholder: (base: TBase) => {
|
|
210
|
+
color: "hsl(0, 0%, 60%)";
|
|
211
|
+
width: string;
|
|
212
|
+
overflow: string;
|
|
213
|
+
whiteSpace: string;
|
|
214
|
+
textOverflow: string;
|
|
215
|
+
fill: string | undefined;
|
|
216
|
+
fontColorForInput?: string | undefined;
|
|
217
|
+
borderColorForInput?: string | undefined;
|
|
218
|
+
backgroundColor?: string | undefined;
|
|
219
|
+
borderTop?: string | undefined;
|
|
220
|
+
borderColor?: string | undefined;
|
|
221
|
+
boxShadow?: string | undefined;
|
|
222
|
+
pointerEvents?: string | undefined;
|
|
223
|
+
};
|
|
224
|
+
valueContainer: (base: TBase) => {
|
|
225
|
+
padding: string;
|
|
226
|
+
backgroundColor: string;
|
|
227
|
+
overflow: string;
|
|
228
|
+
display: string;
|
|
229
|
+
fill: string | undefined;
|
|
230
|
+
fontColorForInput?: string | undefined;
|
|
231
|
+
borderColorForInput?: string | undefined;
|
|
232
|
+
color?: string | undefined;
|
|
233
|
+
borderTop?: string | undefined;
|
|
234
|
+
borderColor?: string | undefined;
|
|
235
|
+
boxShadow?: string | undefined;
|
|
236
|
+
pointerEvents?: string | undefined;
|
|
237
|
+
};
|
|
238
|
+
singleValue: (base: TBase) => {
|
|
239
|
+
color: "hsl(0, 0%, 60%)" | "#1a1a1a";
|
|
240
|
+
fontColorForInput?: string | undefined;
|
|
241
|
+
borderColorForInput?: string | undefined;
|
|
242
|
+
backgroundColor?: string | undefined;
|
|
243
|
+
borderTop?: string | undefined;
|
|
244
|
+
borderColor?: string | undefined;
|
|
245
|
+
boxShadow?: string | undefined;
|
|
246
|
+
pointerEvents?: string | undefined;
|
|
247
|
+
};
|
|
248
|
+
group: (base: TBase) => {
|
|
249
|
+
padding: number;
|
|
250
|
+
'&:not(:first-of-type)': {
|
|
251
|
+
borderTop: string | undefined;
|
|
252
|
+
};
|
|
253
|
+
fontColorForInput?: string | undefined;
|
|
254
|
+
borderColorForInput?: string | undefined;
|
|
255
|
+
color?: string | undefined;
|
|
256
|
+
backgroundColor?: string | undefined;
|
|
257
|
+
borderTop?: string | undefined;
|
|
258
|
+
borderColor?: string | undefined;
|
|
259
|
+
boxShadow?: string | undefined;
|
|
260
|
+
pointerEvents?: string | undefined;
|
|
261
|
+
};
|
|
262
|
+
groupHeading: (base: TBase) => {
|
|
263
|
+
color: "hsl(0, 0%, 60%)";
|
|
264
|
+
fontSize: "0.9231rem";
|
|
265
|
+
textTransform: string;
|
|
266
|
+
fontWeight: string;
|
|
267
|
+
margin: string;
|
|
268
|
+
padding: string;
|
|
269
|
+
'&:empty': {
|
|
270
|
+
padding: number;
|
|
271
|
+
};
|
|
272
|
+
fontColorForInput?: string | undefined;
|
|
273
|
+
borderColorForInput?: string | undefined;
|
|
274
|
+
backgroundColor?: string | undefined;
|
|
275
|
+
borderTop?: string | undefined;
|
|
276
|
+
borderColor?: string | undefined;
|
|
277
|
+
boxShadow?: string | undefined;
|
|
278
|
+
pointerEvents?: string | undefined;
|
|
279
|
+
};
|
|
280
|
+
container: (base: TBase, state: TState) => {
|
|
281
|
+
fontFamily: string;
|
|
282
|
+
minHeight: "32px";
|
|
283
|
+
borderRadius: "6px";
|
|
284
|
+
borderColor: string | undefined;
|
|
285
|
+
boxShadow: string | undefined;
|
|
286
|
+
fontColorForInput?: string | undefined;
|
|
287
|
+
borderColorForInput?: string | undefined;
|
|
288
|
+
color?: string | undefined;
|
|
289
|
+
backgroundColor?: string | undefined;
|
|
290
|
+
borderTop?: string | undefined;
|
|
291
|
+
pointerEvents?: string | undefined;
|
|
292
|
+
};
|
|
293
|
+
};
|
|
294
|
+
export {};
|