@rescui/select 0.14.4-RUI-286-Fix-tooltip-stacking-f4145b01.1 → 0.15.1-RUI-280-Update-select-component-026338d06.52

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.
Files changed (91) hide show
  1. package/lib/_virtual/index.css.js +12 -12
  2. package/lib/common-prop-types.d.ts +9 -14
  3. package/lib/common-prop-types.js +4 -3
  4. package/lib/constants.d.ts +7 -0
  5. package/lib/constants.js +8 -0
  6. package/lib/hooks/use-css-context-transfer.d.ts +14 -0
  7. package/lib/hooks/use-css-context-transfer.js +40 -0
  8. package/lib/hooks/use-label-focus.d.ts +11 -0
  9. package/lib/hooks/use-label-focus.js +28 -0
  10. package/lib/hooks/use-multi-option-serialization.d.ts +10 -0
  11. package/lib/hooks/use-multi-option-serialization.js +82 -0
  12. package/lib/hooks/use-option-serialization.d.ts +10 -0
  13. package/lib/hooks/use-option-serialization.js +59 -0
  14. package/lib/index.css +1700 -705
  15. package/lib/index.d.ts +4 -6
  16. package/lib/index.js +3 -3
  17. package/lib/multiselect.d.ts +29 -0
  18. package/lib/multiselect.js +239 -0
  19. package/lib/native-select.d.ts +4 -0
  20. package/lib/native-select.js +182 -0
  21. package/lib/parts/foldable.js +5 -7
  22. package/lib/parts/form-trigger-wrapper.d.ts +21 -3
  23. package/lib/parts/form-trigger-wrapper.js +30 -40
  24. package/lib/parts/icons.d.ts +17 -0
  25. package/lib/parts/icons.js +75 -0
  26. package/lib/parts/list-box.d.ts +19 -0
  27. package/lib/parts/list-box.js +146 -0
  28. package/lib/parts/multi-trigger.d.ts +11 -0
  29. package/lib/parts/multi-trigger.js +62 -0
  30. package/lib/parts/native-select-options-with-groups.d.ts +8 -0
  31. package/lib/parts/native-select-options-with-groups.js +76 -0
  32. package/lib/parts/native-select-trigger.d.ts +18 -0
  33. package/lib/parts/native-select-trigger.js +54 -0
  34. package/lib/parts/popover.d.ts +12 -0
  35. package/lib/parts/popover.js +62 -0
  36. package/lib/parts/popup-content.d.ts +19 -0
  37. package/lib/parts/popup-content.js +76 -0
  38. package/lib/public-api.p.css +401 -1022
  39. package/lib/public-api.pcss +401 -1022
  40. package/lib/select-basic.d.ts +3 -0
  41. package/lib/select-basic.js +143 -0
  42. package/lib/select-searchable.d.ts +3 -0
  43. package/lib/select-searchable.js +168 -0
  44. package/lib/select.d.ts +27 -86
  45. package/lib/select.js +58 -352
  46. package/lib/styles/common.p.module.css.js +27 -0
  47. package/lib/styles/form-trigger.p.module.css.js +15 -0
  48. package/lib/styles/list-box.p.module.css.js +16 -0
  49. package/lib/styles/native-select-trigger.p.module.css.js +17 -0
  50. package/lib/styles/native-select.p.module.css.js +9 -0
  51. package/lib/styles/popover.p.module.css.js +10 -0
  52. package/lib/types.d.ts +167 -4
  53. package/lib/utils/calculate-max-height-by-items.d.ts +13 -0
  54. package/lib/utils/calculate-max-height-by-items.js +22 -0
  55. package/lib/utils/convert-options.d.ts +3 -0
  56. package/lib/utils/convert-options.js +52 -0
  57. package/lib/utils/convert-placement.d.ts +3 -0
  58. package/lib/utils/convert-placement.js +22 -0
  59. package/lib/utils/css-vars-utils.d.ts +3 -0
  60. package/lib/utils/css-vars-utils.js +20 -0
  61. package/lib/utils/get-empty-message.d.ts +6 -0
  62. package/lib/utils/get-empty-message.js +32 -0
  63. package/lib/utils/get-option-value.d.ts +2 -0
  64. package/lib/utils/get-option-value.js +11 -0
  65. package/lib/utils/get-real-items-cnt.d.ts +2 -0
  66. package/lib/utils/get-real-items-cnt.js +21 -0
  67. package/lib/utils/get-text-from-nodes.d.ts +2 -0
  68. package/lib/utils/get-text-from-nodes.js +28 -0
  69. package/lib/utils/is-option-a-group.d.ts +2 -0
  70. package/lib/utils/is-option-a-group.js +5 -0
  71. package/lib/utils/throttle.d.ts +1 -0
  72. package/package.json +12 -8
  73. package/lib/_virtual/warning.js +0 -106
  74. package/lib/key-codes.d.ts +0 -7
  75. package/lib/key-codes.js +0 -8
  76. package/lib/parts/common-select.p.module.css.js +0 -15
  77. package/lib/parts/form-trigger.p.module.css.js +0 -13
  78. package/lib/parts/multiselect.d.ts +0 -81
  79. package/lib/parts/multiselect.js +0 -441
  80. package/lib/parts/native-select.d.ts +0 -30
  81. package/lib/parts/native-select.js +0 -244
  82. package/lib/parts/native-select.p.module.css.js +0 -9
  83. package/lib/parts/throttle.d.ts +0 -1
  84. package/lib/parts/trigger.d.ts +0 -37
  85. package/lib/parts/trigger.js +0 -255
  86. package/lib/parts/trigger.p.module.css.js +0 -31
  87. package/lib/utils.d.ts +0 -22
  88. package/lib/utils.js +0 -201
  89. /package/lib/{parts → hooks}/use-observable-force-rerender.d.ts +0 -0
  90. /package/lib/{parts → hooks}/use-observable-force-rerender.js +0 -0
  91. /package/lib/{parts → utils}/throttle.js +0 -0
package/lib/select.js CHANGED
@@ -1,100 +1,25 @@
1
1
  "use client";
2
- import _includesInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/includes";
3
- import React, { useState, useRef, useEffect, useMemo, useCallback } from 'react';
4
- import PropTypes from 'prop-types';
5
- import cn from 'classnames';
6
- import scrollIntoView from 'scroll-into-view-if-needed';
7
- import { Dropdown } from '@rescui/dropdown';
8
- import { Menu, MenuItem, Divider, GroupHeader } from '@rescui/menu';
2
+ import React from 'react';
9
3
  import { useThemeWithUndefined } from '@rescui/ui-contexts';
10
- import SelectTrigger from './parts/trigger.js';
11
- import FormTriggerWrapper from './parts/form-trigger-wrapper.js';
12
- import { useObservableForceRerender } from './parts/use-observable-force-rerender.js';
13
- import { optionType, optionsGroupType, noOptionsMessageConfigType } from './common-prop-types.js';
14
- import { useStrongMemo, getDefaultCursorIndex, isGroupsEmpty, getMovedCursorIndex, shouldOpenSelect, isIndexMatchCursor, withoutGroupsLabel, getPlainOptionsFromGroups, getEmptyMessage, OptionGroupTypes, getOptionValue, convertToOptionGroupsIfNeeded, escapeRegex, getTextFromNodes, calculateMaxHeight } from './utils.js';
15
- import { ARROW_DOWN, ARROW_UP, ENTER, SPACE, TAB, ESCAPE, BACKSPACE } from './key-codes.js';
16
- import styles from './parts/common-select.p.module.css.js'; // eslint-disable-next-line complexity
17
-
18
- const Option = _ref => {
19
- let {
20
- selected,
21
- cursorIndex,
22
- item,
23
- isLastItem,
24
- highlightedItemRef,
25
- handleSelectIndex,
26
- handleHighlightIndex
27
- } = _ref;
28
-
29
- if (item.type === OptionGroupTypes.OPTION) {
30
- const {
31
- index,
32
- label
33
- } = item;
34
- const value = getOptionValue(item);
35
- const isSelected = selected && value === getOptionValue(selected);
36
- const isHighlighted = isIndexMatchCursor(cursorIndex, index);
37
- return /*#__PURE__*/React.createElement(MenuItem, {
38
- selected: isSelected,
39
- highlighted: isHighlighted,
40
- ref: isHighlighted ? highlightedItemRef : null,
41
- onMouseMove: () => handleHighlightIndex(index),
42
- onClick: () => handleSelectIndex(index),
43
- className: cn(isLastItem && styles.lastOption),
44
- "data-test": ['select-menu-item', isHighlighted && 'select-menu-item-highlighted', isSelected && 'select-menu-item-selected'].filter(Boolean).join(' ')
45
- }, label);
46
- }
47
-
48
- if (item.type === OptionGroupTypes.DIVIDER) {
49
- return /*#__PURE__*/React.createElement(Divider, {
50
- className: styles.divider
51
- });
52
- }
53
-
54
- if (item.type === OptionGroupTypes.HEADER) {
55
- const {
56
- label
57
- } = item;
58
- return /*#__PURE__*/React.createElement(GroupHeader, {
59
- text: label
60
- });
61
- }
62
-
63
- return null;
64
- };
65
-
66
- const getOptionKey = (item, i) => {
67
- if (item.type === OptionGroupTypes.OPTION) {
68
- const value = getOptionValue(item);
69
- return `${value}_${item.index[0]}`;
70
- } else if (item.type === OptionGroupTypes.DIVIDER) {
71
- return `divider${i}`;
72
- } else if (item.type === OptionGroupTypes.HEADER) {
73
- return `header${i}`;
74
- }
75
-
76
- return null;
77
- };
78
-
79
- const SIZE_STYLES = {
80
- s: styles.sizeS,
81
- m: styles.sizeM,
82
- l: styles.sizeL
83
- };
84
- const MENU_SIZE_STYLES = {
85
- s: styles.menuSizeS,
86
- m: styles.menuSizeM,
87
- l: styles.menuSizeL
88
- }; // eslint-disable-next-line complexity
89
-
90
- const Select = _ref2 => {
4
+ import PropTypes from 'prop-types';
5
+ import { ErrorMessage } from '@rescui/form-field';
6
+ import { optionType, optionsGroupType, noOptionsMessageType } from './common-prop-types.js';
7
+ import { useOptionSerialization } from './hooks/use-option-serialization.js';
8
+ import { convertOptions } from './utils/convert-options.js';
9
+ import { convertPlacement } from './utils/convert-placement.js';
10
+ import { getOptionValue } from './utils/get-option-value.js';
11
+ import { SelectBasic } from './select-basic.js';
12
+ import { SelectSearchable } from './select-searchable.js';
13
+
14
+ const Select = _ref => {
91
15
  let {
92
- options,
16
+ options = [],
93
17
  size = 'm',
94
18
  mode = 'classic',
95
19
  theme: themeFromProps,
96
- className = null,
97
- value = undefined,
20
+ className,
21
+ style,
22
+ value,
98
23
  onChange,
99
24
  placeholder,
100
25
  isClearable = false,
@@ -102,272 +27,53 @@ const Select = _ref2 => {
102
27
  isDisabled = false,
103
28
  isSearchable = false,
104
29
  noOptionsMessage,
30
+ error,
105
31
  placement = 'bottom',
106
- boldLabel,
32
+ boldLabel = true,
33
+ reserveErrorLine = false,
34
+ note,
35
+ maxVisibleItems = 5,
107
36
  ...restProps
108
- } = _ref2;
109
- const [triggerFormWrapperRef, setTriggerFormWrapperRef] = useState(null);
37
+ } = _ref;
110
38
  const theme = useThemeWithUndefined(themeFromProps);
111
- const dropdownRef = useRef(null);
112
- const highlightedItemRef = /*#__PURE__*/React.createRef();
113
- const [isKeyboardNavigating, setIsKeyboardNavigating] = useState(false);
114
- const skipScrollingRef = useRef(false);
115
- const [searchString, setSearchString] = useState('');
116
- const groups = useStrongMemo(() => convertToOptionGroupsIfNeeded(options), [options]);
117
- const filteredGroups = useStrongMemo(() => {
118
- if (searchString === '') {
119
- return groups;
120
- }
121
-
122
- const filter = new RegExp(`(?:^|\\s)${escapeRegex(searchString)}`, 'i');
123
- return groups.map(g => ({ ...g,
124
- options: g.options.filter(_ref3 => {
125
- let {
126
- label
127
- } = _ref3;
128
- return filter.test(getTextFromNodes(label));
129
- })
130
- }));
131
- }, [searchString, groups]);
132
- const [menuIsOpen, setMenuIsOpen] = useState(false);
133
- const [cursorIndex, setCursorIndex] = useState(() => getDefaultCursorIndex(filteredGroups));
134
- useEffect(() => {
135
- setCursorIndex(getDefaultCursorIndex(filteredGroups));
136
-
137
- if (searchString !== '') {
138
- setMenuIsOpen(true);
139
- }
140
- }, [searchString, filteredGroups]);
141
- const isEmptyMenu = useMemo(() => isGroupsEmpty(filteredGroups), [filteredGroups]);
142
- const handleSelectIndex = useCallback(index => {
143
- const [grpIndex, optIndex] = index;
144
- const selectedOption = filteredGroups[grpIndex].options[optIndex];
145
- setMenuIsOpen(false);
146
- setSearchString('');
147
- setIsKeyboardNavigating(false);
148
-
149
- if (onChange) {
150
- onChange(selectedOption);
151
- }
152
- }, [onChange, filteredGroups]);
153
- useEffect(() => {
154
- if (dropdownRef.current) {
155
- dropdownRef.current.scheduleUpdate();
156
- }
157
- }, [searchString]);
158
- const handleMouseMove = useCallback(() => setIsKeyboardNavigating(false), []);
159
- useEffect(() => {
160
- if (isKeyboardNavigating) {
161
- document.addEventListener('mousemove', handleMouseMove);
162
- }
163
-
164
- return () => document.removeEventListener('mousemove', handleMouseMove);
165
- }, [handleMouseMove, isKeyboardNavigating]);
166
- useEffect(() => {
167
- if (isKeyboardNavigating && highlightedItemRef.current) {
168
- if (skipScrollingRef.current) {
169
- skipScrollingRef.current = false;
170
- } else {
171
- let elementToScrollTo = highlightedItemRef.current;
172
-
173
- if (cursorIndex[0] === 0 && cursorIndex[1] === 0) {
174
- const groupHeader = highlightedItemRef.current.previousSibling;
175
-
176
- if (groupHeader) {
177
- elementToScrollTo = groupHeader;
178
- }
179
- }
180
-
181
- scrollIntoView(elementToScrollTo, {
182
- behavior: 'instant',
183
- scrollMode: 'if-needed',
184
- block: 'nearest',
185
- inline: 'nearest'
186
- });
187
- }
188
- }
189
- }, [highlightedItemRef, cursorIndex, isKeyboardNavigating]);
190
- const handleClose = useCallback(() => {
191
- setSearchString('');
192
- setMenuIsOpen(false);
193
- setIsKeyboardNavigating(false);
194
- }, []);
195
- const handleKeyNavigation = useCallback( // eslint-disable-next-line complexity
196
- e => {
197
- if (e.key === ARROW_DOWN || e.key === ARROW_UP) {
198
- const isDownDirection = e.key === ARROW_DOWN;
199
- setCursorIndex(getMovedCursorIndex(filteredGroups, cursorIndex, isDownDirection));
200
- setIsKeyboardNavigating(true);
201
- e.preventDefault();
202
- }
203
-
204
- if (e.key === ENTER || !isSearchable && e.key === SPACE) {
205
- if (cursorIndex !== null) {
206
- handleSelectIndex(cursorIndex);
207
- } else {
208
- handleClose();
209
- }
210
-
211
- e.preventDefault();
212
- }
213
-
214
- if (e.key === TAB) {
215
- handleClose();
216
- }
217
- }, [filteredGroups, cursorIndex, handleClose, handleSelectIndex, isSearchable]);
218
- const handleClick = useCallback(() => {
219
- if (isDisabled) {
220
- return;
221
- }
222
-
223
- setMenuIsOpen(currentMenuIsOpen => !currentMenuIsOpen);
224
- setSearchString('');
225
- }, [isDisabled]);
226
- const handleSearchInputChange = useCallback(searchValue => setSearchString(searchValue), []);
227
- const handleClearClick = useCallback(() => {
228
- setCursorIndex(getDefaultCursorIndex(filteredGroups));
229
- setMenuIsOpen(false);
230
-
231
- if (onChange) {
232
- onChange(null);
233
- }
234
- }, [filteredGroups, onChange]);
235
- const handleTriggerKeyDown = useCallback(e => {
236
- if (e.key === ESCAPE) {
237
- handleClose();
238
- e.preventDefault();
239
- }
240
-
241
- if (isDisabled) {
242
- return;
243
- }
244
-
245
- if (menuIsOpen) {
246
- handleKeyNavigation(e);
247
- } else {
248
- const target = e.target;
249
- const trigger = target.closest('[data-target="trigger"]');
250
- const isTriggerTarget = trigger === target;
251
-
252
- if (shouldOpenSelect(e.key, isTriggerTarget)) {
253
- setMenuIsOpen(true);
254
- setSearchString('');
255
- setIsKeyboardNavigating(true);
256
- skipScrollingRef.current = true;
257
- trigger.focus();
258
- e.preventDefault();
259
- }
260
-
261
- if (e.key === BACKSPACE && isClearable) {
262
- handleClearClick();
263
- trigger.focus();
264
- e.preventDefault();
265
- }
266
- }
267
- }, [menuIsOpen, isDisabled, isClearable, handleClose, handleClearClick, handleKeyNavigation]);
268
- const handleHighlightIndex = useCallback(index => {
269
- if (!isIndexMatchCursor(cursorIndex, index)) {
270
- setCursorIndex(index);
271
- }
272
- }, [cursorIndex]); // We use invisible and "untouchable" dummy element to observe `size` changes from css to trigger force rerenders
273
-
274
- const observableRef = useObservableForceRerender();
275
- let sizeFromCss = null;
276
-
277
- if (triggerFormWrapperRef && menuIsOpen) {
278
- var _context;
279
-
280
- // In theory this part of the code might cause issues with SSR.
281
- // But in this specific context, because of checking ref "triggerFormWrapperRef",
282
- // we are sure that the value will still be "null" on the first render.
283
- // Therefore, the first render on the client will be the same as on the server.
284
- // Also, there will be no layout shifts on the following renders because
285
- // it's a dropdown-content and in most cases it opens only on-demand.
286
- // In additional, we use "observable" el to watch size changes between rerenders (@media query case).
287
- const triggerFormWrapperStyles = getComputedStyle(triggerFormWrapperRef);
288
- const rawSizeFromCss = triggerFormWrapperStyles.getPropertyValue('--_rs-select-size');
289
- sizeFromCss = _includesInstanceProperty(_context = ['s', 'm', 'l']).call(_context, rawSizeFromCss) ? rawSizeFromCss : null;
290
- }
291
-
292
- const actualSize = sizeFromCss || size;
293
- const maxHeight = calculateMaxHeight(actualSize);
294
- const withGroupsLabel = !withoutGroupsLabel(filteredGroups);
295
- return /*#__PURE__*/React.createElement(Dropdown, {
296
- theme: theme,
297
- onRequestClose: handleClose,
298
- placement: placement,
39
+ const {
40
+ selectedKey,
41
+ findOptionByKey,
42
+ virtualOption
43
+ } = useOptionSerialization(options, value);
44
+
45
+ const handleSelectionChange = key => {
46
+ const option = findOptionByKey(key);
47
+ onChange === null || onChange === void 0 || onChange(option);
48
+ };
49
+
50
+ const InnerSingleComponent = isSearchable ? SelectSearchable : SelectBasic;
51
+ return /*#__PURE__*/React.createElement(InnerSingleComponent, { ...restProps,
52
+ isDisabled: isDisabled,
53
+ value: selectedKey,
54
+ onChange: handleSelectionChange,
55
+ placeholder: placeholder,
56
+ isClearable: isClearable,
57
+ isLoading: isLoading,
58
+ className: className,
59
+ style: style,
60
+ size: size,
299
61
  mode: mode,
300
- ref: dropdownRef,
301
- cancelCloseAnimation: true,
302
- minWidth: "trigger",
303
- maxWidth: "trigger",
304
- maxHeight: maxHeight,
305
- leastMaxHeight: maxHeight,
306
- disableFocusLock: true,
307
- trigger: _ref4 => {
308
- let {
309
- ref
310
- } = _ref4;
311
- return /*#__PURE__*/React.createElement(FormTriggerWrapper, {
312
- ref: setTriggerFormWrapperRef,
313
- className: cn(className, SIZE_STYLES[size]),
314
- theme: theme,
315
- size: size,
316
- error: restProps.error,
317
- label: restProps.label,
318
- note: restProps.note,
319
- onKeyDown: handleTriggerKeyDown,
320
- boldLabel: boldLabel
321
- }, /*#__PURE__*/React.createElement("div", {
322
- ref: observableRef,
323
- className: styles.observable
324
- }), restProps.name && /*#__PURE__*/React.createElement("input", {
325
- type: "hidden",
326
- name: restProps.name,
327
- value: value && value.value || ''
328
- }), /*#__PURE__*/React.createElement(SelectTrigger, {
329
- theme: theme,
330
- mode: mode,
331
- size: size,
332
- isOpen: menuIsOpen,
333
- triggerRef: ref,
334
- selected: value,
335
- placeholder: placeholder,
336
- isClearable: isClearable,
337
- isLoading: isLoading,
338
- isDisabled: isDisabled,
339
- searchInput: searchString,
340
- isSearchable: isSearchable,
341
- onSearchChange: handleSearchInputChange,
342
- onClick: handleClick,
343
- onClearClick: handleClearClick,
344
- error: Boolean(restProps.error),
345
- id: restProps.id,
346
- "data-target": "trigger"
347
- }));
348
- },
349
- isOpen: menuIsOpen
350
- }, /*#__PURE__*/React.createElement(Menu, {
351
- size: actualSize,
352
- disableCursor: isKeyboardNavigating,
353
- className: cn(styles.menu, withGroupsLabel && styles.withGroupsLabel, MENU_SIZE_STYLES[actualSize]),
354
- enableKeyboardNavigation: false
355
- }, !isEmptyMenu ? getPlainOptionsFromGroups(filteredGroups).map((item, i, collection) => /*#__PURE__*/React.createElement(Option, {
356
- item: item,
357
- isLastItem: i === collection.length - 1,
358
- key: getOptionKey(item, i),
359
- selected: value,
360
- cursorIndex: cursorIndex,
361
- highlightedItemRef: highlightedItemRef,
362
- handleSelectIndex: handleSelectIndex,
363
- handleHighlightIndex: handleHighlightIndex
364
- })) : /*#__PURE__*/React.createElement(MenuItem, {
365
- disabled: true
366
- }, getEmptyMessage(isLoading, isSearchable && searchString.length > 0, noOptionsMessage))));
62
+ theme: theme,
63
+ errorMessage: error,
64
+ placement: convertPlacement(placement),
65
+ boldLabel: boldLabel,
66
+ reserveErrorLine: reserveErrorLine,
67
+ description: note,
68
+ noOptionsMessage: noOptionsMessage,
69
+ maxVisibleItems: maxVisibleItems,
70
+ disabledKeys: virtualOption ? [getOptionValue(virtualOption)] : []
71
+ }, convertOptions(options, [virtualOption].filter(Boolean)));
367
72
  };
368
73
 
369
74
  Select.propTypes = {
370
75
  className: PropTypes.string,
76
+ style: PropTypes.object,
371
77
  options: PropTypes.oneOfType([PropTypes.arrayOf(optionType), PropTypes.arrayOf(optionsGroupType)]),
372
78
  value: optionType,
373
79
  onChange: PropTypes.func,
@@ -379,12 +85,12 @@ Select.propTypes = {
379
85
  isSearchable: PropTypes.bool,
380
86
  isDisabled: PropTypes.bool,
381
87
  isLoading: PropTypes.bool,
382
- error: PropTypes.oneOfType([PropTypes.bool, PropTypes.node]),
88
+ error: ErrorMessage.propTypes.children,
383
89
  label: PropTypes.node,
384
90
  id: PropTypes.string,
385
91
  note: PropTypes.node,
386
- noOptionsMessage: PropTypes.oneOfType([PropTypes.string, noOptionsMessageConfigType]),
92
+ noOptionsMessage: noOptionsMessageType,
387
93
  placement: PropTypes.oneOf(['auto-start', 'auto', 'auto-end', 'top-start', 'top', 'top-end', 'right-start', 'right', 'right-end', 'bottom-end', 'bottom', 'bottom-start', 'left-end', 'left', 'left-start']),
388
94
  name: PropTypes.string
389
95
  };
390
- export { Select as default };
96
+ export { Select };
@@ -0,0 +1,27 @@
1
+ var styles = {
2
+ "themeLight": "_themeLight_ml8w5m_6",
3
+ "themeDark": "_themeDark_ml8w5m_9",
4
+ "sizeS": "_sizeS_ml8w5m_13",
5
+ "sizeM": "_sizeM_ml8w5m_16",
6
+ "sizeL": "_sizeL_ml8w5m_19",
7
+ "classic": "_classic_ml8w5m_23",
8
+ "rock": "_rock_ml8w5m_26",
9
+ "root": "_root_ml8w5m_30",
10
+ "trigger": "_trigger_ml8w5m_36",
11
+ "error": "_error_ml8w5m_69",
12
+ "enabled": "_enabled_ml8w5m_74",
13
+ "disabled": "_disabled_ml8w5m_78",
14
+ "canBeMultiline": "_canBeMultiline_ml8w5m_119",
15
+ "iconsWrapper": "_iconsWrapper_ml8w5m_123",
16
+ "triggerText": "_triggerText_ml8w5m_138",
17
+ "searchInput": "_searchInput_ml8w5m_144",
18
+ "labelNotSelected": "_labelNotSelected_ml8w5m_188",
19
+ "multi": "_multi_ml8w5m_202",
20
+ "tagsContainer": "_tagsContainer_ml8w5m_218",
21
+ "tag": "_tag_ml8w5m_218",
22
+ "filledTag": "_filledTag_ml8w5m_240",
23
+ "toggle": "_toggle_ml8w5m_248",
24
+ "icon": "_icon_ml8w5m_123",
25
+ "clearIcon": "_clearIcon_ml8w5m_315"
26
+ };
27
+ export { styles as default };
@@ -0,0 +1,15 @@
1
+ var styles = {
2
+ "themeLight": "_themeLight_1kfr4zx_6",
3
+ "themeDark": "_themeDark_1kfr4zx_9",
4
+ "sizeS": "_sizeS_1kfr4zx_13",
5
+ "sizeM": "_sizeM_1kfr4zx_16",
6
+ "sizeL": "_sizeL_1kfr4zx_19",
7
+ "main": "_main_1kfr4zx_23",
8
+ "label": "_label_1kfr4zx_27",
9
+ "disabled": "_disabled_1kfr4zx_33",
10
+ "footer": "_footer_1kfr4zx_38",
11
+ "errorMessage": "_errorMessage_1kfr4zx_45",
12
+ "error": "_error_1kfr4zx_45",
13
+ "note": "_note_1kfr4zx_54"
14
+ };
15
+ export { styles as default };
@@ -0,0 +1,16 @@
1
+ var styles = {
2
+ "sizeS": "_sizeS_s1h2lh_6",
3
+ "sizeM": "_sizeM_s1h2lh_9",
4
+ "sizeL": "_sizeL_s1h2lh_12",
5
+ "modeClassic": "_modeClassic_s1h2lh_16",
6
+ "modeRock": "_modeRock_s1h2lh_19",
7
+ "listBox": "_listBox_s1h2lh_23",
8
+ "item": "_item_s1h2lh_36",
9
+ "selected": "_selected_s1h2lh_82",
10
+ "disabled": "_disabled_s1h2lh_93",
11
+ "checkIcon": "_checkIcon_s1h2lh_100",
12
+ "visible": "_visible_s1h2lh_107",
13
+ "divider": "_divider_s1h2lh_114",
14
+ "groupHeader": "_groupHeader_s1h2lh_128"
15
+ };
16
+ export { styles as default };
@@ -0,0 +1,17 @@
1
+ var styles = {
2
+ "themeLight": "_themeLight_13zihya_6",
3
+ "themeDark": "_themeDark_13zihya_9",
4
+ "sizeS": "_sizeS_13zihya_13",
5
+ "sizeM": "_sizeM_13zihya_16",
6
+ "sizeL": "_sizeL_13zihya_19",
7
+ "trigger": "_trigger_13zihya_23",
8
+ "error": "_error_13zihya_61",
9
+ "enabled": "_enabled_13zihya_66",
10
+ "disabled": "_disabled_13zihya_70",
11
+ "iconsWrapper": "_iconsWrapper_13zihya_103",
12
+ "triggerText": "_triggerText_13zihya_118",
13
+ "labelNotSelected": "_labelNotSelected_13zihya_144",
14
+ "toggle": "_toggle_13zihya_155",
15
+ "icon": "_icon_13zihya_103"
16
+ };
17
+ export { styles as default };
@@ -0,0 +1,9 @@
1
+ var styles = {
2
+ "sizeS": "_sizeS_1d2tn9z_6",
3
+ "sizeM": "_sizeM_1d2tn9z_9",
4
+ "sizeL": "_sizeL_1d2tn9z_12",
5
+ "main": "_main_1d2tn9z_16",
6
+ "wrapper": "_wrapper_1d2tn9z_20",
7
+ "select": "_select_1d2tn9z_24"
8
+ };
9
+ export { styles as default };
@@ -0,0 +1,10 @@
1
+ var styles = {
2
+ "classic": "_classic_1cb1cqj_32",
3
+ "rock": "_rock_1cb1cqj_35",
4
+ "popover": "_popover_1cb1cqj_39",
5
+ "contentWrapper": "_contentWrapper_1cb1cqj_46",
6
+ "fadeInBottomToTop": "_fadeInBottomToTop_1cb1cqj_1",
7
+ "fadeInTopToBottom": "_fadeInTopToBottom_1cb1cqj_1",
8
+ "observable": "_observable_1cb1cqj_62"
9
+ };
10
+ export { styles as default };