@lt-ui/uikit 0.0.1 → 0.0.2

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 (126) hide show
  1. package/_internal/base-button/styles.module.css +1 -1
  2. package/_internal/field/_motion.css +0 -0
  3. package/_internal/field/field.module.css +21 -23
  4. package/_internal/picker/picker-field.module.css +1 -1
  5. package/_internal/picker/picker-sheet.module.css +1 -1
  6. package/accordion/styles.module.css +3 -4
  7. package/alert/styles/alert.module.css +8 -8
  8. package/avatar/avatar-group.module.css +1 -1
  9. package/avatar/styles.module.css +3 -3
  10. package/badge/styles.module.css +3 -3
  11. package/breadcrumbs/styles.module.css +4 -4
  12. package/button/styles.module.css +7 -7
  13. package/calendar/styles.module.css +11 -11
  14. package/caption/styles.module.css +1 -1
  15. package/checkbox/styles/style.module.css +10 -12
  16. package/chip/styles.module.css +3 -3
  17. package/cjs/_internal/base-button/styles.module.css +1 -1
  18. package/cjs/_internal/field/_motion.css +0 -0
  19. package/cjs/_internal/field/field.module.css +21 -23
  20. package/cjs/_internal/picker/picker-field.module.css +1 -1
  21. package/cjs/_internal/picker/picker-sheet.module.css +1 -1
  22. package/cjs/accordion/styles.module.css +3 -4
  23. package/cjs/alert/styles/alert.module.css +8 -8
  24. package/cjs/avatar/avatar-group.module.css +1 -1
  25. package/cjs/avatar/styles.module.css +3 -3
  26. package/cjs/badge/styles.module.css +3 -3
  27. package/cjs/breadcrumbs/styles.module.css +4 -4
  28. package/cjs/button/styles.module.css +7 -7
  29. package/cjs/calendar/styles.module.css +11 -11
  30. package/cjs/caption/styles.module.css +1 -1
  31. package/cjs/checkbox/styles/style.module.css +10 -12
  32. package/cjs/chip/styles.module.css +3 -3
  33. package/cjs/date-picker/styles.module.css +10 -10
  34. package/cjs/drawer/styles.module.css +10 -12
  35. package/cjs/file/styles.module.css +3 -4
  36. package/cjs/hint/styles/buttons.module.css +2 -2
  37. package/cjs/hint/styles/hint-content.module.css +3 -3
  38. package/cjs/hint/styles/hint.module.css +2 -2
  39. package/cjs/image/viewer.module.css +1 -1
  40. package/cjs/list/list-divider/styles.module.css +2 -2
  41. package/cjs/list/list-item/styles.module.css +2 -2
  42. package/cjs/list/list-section/styles.module.css +4 -4
  43. package/cjs/modal/styles/modal-footer.module.css +3 -3
  44. package/cjs/modal/styles/modal-header.module.css +5 -5
  45. package/cjs/modal/styles/modal.module.css +2 -2
  46. package/cjs/navigation/navigation.js +2 -1
  47. package/cjs/navigation/styles/navigation.module.css +96 -81
  48. package/cjs/pagination/styles.module.css +2 -2
  49. package/cjs/pin-input/styles.module.css +2 -2
  50. package/cjs/progress-bar/styles.module.css +1 -1
  51. package/cjs/quantity-input/styles.module.css +3 -3
  52. package/cjs/radio/styles.module.css +4 -5
  53. package/cjs/radio-group/styles.module.css +1 -1
  54. package/cjs/segmented-control/styles/segmented-control-item.module.css +9 -9
  55. package/cjs/segmented-control/styles/segmented-control.module.css +4 -4
  56. package/cjs/select/components/select-field-multiselect-value.js +2 -2
  57. package/cjs/select/components/select-field.js +8 -6
  58. package/cjs/select/hooks/use-select-view-model.js +3 -1
  59. package/cjs/select/styles/select-field.module.css +20 -1
  60. package/cjs/select/styles/select.module.css +2 -2
  61. package/cjs/select/views/select-view.js +2 -2
  62. package/cjs/select/views/styles.module.css +1 -1
  63. package/cjs/snackbar/styles/snack.module.css +1 -1
  64. package/cjs/switch/styles/base.module.css +2 -2
  65. package/cjs/tabs/styles/tab-list.module.css +1 -1
  66. package/cjs/tabs/styles/tab.module.css +6 -6
  67. package/cjs/textarea/styles.module.css +1 -1
  68. package/cjs/theme-provider/styles.module.css +6 -6
  69. package/cjs/time-picker/styles.module.css +9 -9
  70. package/cjs/tree/styles.module.css +5 -5
  71. package/cjs/tree/tree-select.module.css +2 -2
  72. package/date-picker/styles.module.css +10 -10
  73. package/drawer/styles.module.css +10 -12
  74. package/file/styles.module.css +3 -4
  75. package/hint/styles/buttons.module.css +2 -2
  76. package/hint/styles/hint-content.module.css +3 -3
  77. package/hint/styles/hint.module.css +2 -2
  78. package/image/viewer.module.css +1 -1
  79. package/list/list-divider/styles.module.css +2 -2
  80. package/list/list-item/styles.module.css +2 -2
  81. package/list/list-section/styles.module.css +4 -4
  82. package/modal/styles/modal-footer.module.css +3 -3
  83. package/modal/styles/modal-header.module.css +5 -5
  84. package/modal/styles/modal.module.css +2 -2
  85. package/navigation/navigation.d.ts +1 -0
  86. package/navigation/navigation.js +2 -1
  87. package/navigation/styles/navigation.module.css +96 -81
  88. package/navigation/types.d.ts +2 -2
  89. package/package.json +6 -2
  90. package/pagination/styles.module.css +2 -2
  91. package/pin-input/styles.module.css +2 -2
  92. package/progress-bar/styles.module.css +1 -1
  93. package/quantity-input/styles.module.css +3 -3
  94. package/radio/styles.module.css +4 -5
  95. package/radio-group/styles.module.css +1 -1
  96. package/scss/_functions.scss +12 -24
  97. package/scss/_grid.scss +2 -2
  98. package/scss/_index.scss +1 -6
  99. package/scss/_interaction.scss +3 -3
  100. package/scss/_mixins.scss +5 -51
  101. package/scss/_tokens.generated.scss +578 -0
  102. package/scss/_tokens.scss +2 -396
  103. package/scss/_typography.scss +0 -1
  104. package/segmented-control/styles/segmented-control-item.module.css +9 -9
  105. package/segmented-control/styles/segmented-control.module.css +4 -4
  106. package/select/components/select-field-multiselect-value.d.ts +1 -0
  107. package/select/components/select-field-multiselect-value.js +2 -2
  108. package/select/components/select-field.d.ts +3 -1
  109. package/select/components/select-field.js +8 -6
  110. package/select/hooks/use-select-view-model.d.ts +3 -1
  111. package/select/hooks/use-select-view-model.js +3 -1
  112. package/select/select.d.ts +2 -1
  113. package/select/styles/select-field.module.css +20 -1
  114. package/select/styles/select.module.css +2 -2
  115. package/select/types.d.ts +3 -1
  116. package/select/views/select-view.js +2 -2
  117. package/select/views/styles.module.css +1 -1
  118. package/snackbar/styles/snack.module.css +1 -1
  119. package/switch/styles/base.module.css +2 -2
  120. package/tabs/styles/tab-list.module.css +1 -1
  121. package/tabs/styles/tab.module.css +6 -6
  122. package/textarea/styles.module.css +1 -1
  123. package/theme-provider/styles.module.css +6 -6
  124. package/time-picker/styles.module.css +9 -9
  125. package/tree/styles.module.css +5 -5
  126. package/tree/tree-select.module.css +2 -2
@@ -86,7 +86,7 @@ function useRestoreFocusAfterClose(open, focused, comboboxRef, inputRef) {
86
86
  return () => cancelAnimationFrame(frame);
87
87
  }, [open, comboboxRef, inputRef]);
88
88
  }
89
- exports.SelectField = (0, compat_1.withRef)(function SelectField({ label, placeholder, displayValue, mode = 'single', multiselectLabels = [], chipsVariant = 'none', open, disabled, status, theme, filled, size = 'l', variant = 'outline', fullWidth, allowClear, onClear, showSearch, searchValue = '', selectedValueText, onSearchChange, onOpen, onToggle, overflowSelectedLabel, caption, className, controlRef, activeDescendantId, onComboboxKeyDown, 'data-testid': testId = 'select-field', listboxId, }, ref) {
89
+ exports.SelectField = (0, compat_1.withRef)(function SelectField({ label, 'aria-label': ariaLabel, startAdornment, placeholder, displayValue, mode = 'single', multiselectLabels = [], chipsVariant = 'none', open, disabled, status, theme, filled, size = 'l', variant = 'outline', fullWidth, allowClear, onClear, showSearch, searchValue = '', selectedValueText, onSearchChange, onOpen, onToggle, overflowSelectedLabel, caption, className, controlRef, activeDescendantId, onComboboxKeyDown, 'data-testid': testId = 'select-field', listboxId, }, ref) {
90
90
  const { t } = (0, use_locale_1.useLocale)();
91
91
  // По умолчанию свёрнутый multiselect подписывает скрытые значения: «ещё 2»
92
92
  const defaultOverflowLabel = (0, react_1.useCallback)((hiddenCount) => t('select.moreSelected', { count: hiddenCount }), [t]);
@@ -122,6 +122,7 @@ exports.SelectField = (0, compat_1.withRef)(function SelectField({ label, placeh
122
122
  const openPlaceholderOverride = selectedValueText !== null && selectedValueText !== void 0 ? selectedValueText : multiselectPlaceholderText;
123
123
  const mergedSearchInputRef = (0, react_1.useMemo)(() => (0, utils_1.mergeRefs)([mergedControlRef, setMultiselectPlaceholderMeasureTarget]), [mergedControlRef, setMultiselectPlaceholderMeasureTarget]);
124
124
  const comboboxA11yProps = {
125
+ 'aria-label': ariaLabel !== null && ariaLabel !== void 0 ? ariaLabel : (variant === 'trigger' ? label : undefined),
125
126
  'aria-activedescendant': open && activeDescendantId ? activeDescendantId : undefined,
126
127
  'aria-disabled': disabled || undefined,
127
128
  };
@@ -191,14 +192,15 @@ exports.SelectField = (0, compat_1.withRef)(function SelectField({ label, placeh
191
192
  const inactiveValueText = getInactiveValueText({
192
193
  hasDisplayValue,
193
194
  fieldActive,
194
- hasLabel: !!label,
195
+ hasLabel: !!label && variant !== 'trigger',
195
196
  placeholder,
196
197
  displayValue,
197
198
  });
198
- const showPlaceholderStyle = !hasDisplayValue && (fieldActive || !label);
199
- const labelledBy = label ? `${fieldId}-label` : undefined;
199
+ const showPlaceholderStyle = !hasDisplayValue && (fieldActive || !label || variant === 'trigger');
200
+ const labelledBy = label && variant !== 'trigger' ? `${fieldId}-label` : undefined;
200
201
  const multiselectValueProps = {
201
202
  labelledBy,
203
+ ariaLabel: ariaLabel !== null && ariaLabel !== void 0 ? ariaLabel : (variant === 'trigger' ? label : undefined),
202
204
  labels: multiselectLabels,
203
205
  size,
204
206
  overflowSelectedLabel: overflowLabel,
@@ -214,6 +216,6 @@ exports.SelectField = (0, compat_1.withRef)(function SelectField({ label, placeh
214
216
  onBlur: onInputBlur,
215
217
  ref: mergedComboboxRef,
216
218
  };
217
- const valueContent = ((0, jsx_runtime_1.jsx)(select_field_value_1.SelectFieldValue, { fieldId: fieldId, testId: testId, mode: mode, showSearch: showSearch, open: open, disabled: disabled, listboxId: listboxId, labelledBy: labelledBy, valueClassName: valueClassName, showPlaceholderStyle: showPlaceholderStyle, hasLabel: Boolean(label), hasDisplayValue: hasDisplayValue, displayValue: displayValue, inactiveValueText: inactiveValueText, searchValue: searchValue, placeholder: placeholder, openPlaceholderOverride: openPlaceholderOverride, collapsedMultiselect: showSearch ? showMultiselectCollapsedValue : showMultiselectCollapsedValueNonSearch, multiselectValueProps: multiselectValueProps, searchInputRef: mergedSearchInputRef, comboboxRef: mergedComboboxRef, comboboxA11yProps: comboboxA11yProps, onSearchChange: onSearchChange, onOpen: onOpen, onFieldClick: onFieldClick, onFieldKeyDown: onFieldKeyDown, onInputFocus: onInputFocus, onInputBlur: onInputBlur, onSearchInputMouseDown: onSearchInputMouseDown }));
218
- return ((0, jsx_runtime_1.jsx)(field_1.FieldFrame, { ref: ref, size: size, label: label, controlId: fieldId, active: fieldActive, focused: focused || open, status: status, theme: theme, disabled: disabled, underline: variant === 'underline', fullWidth: fullWidth, withClear: showClear, caption: caption, className: (0, clsx_1.default)(select_field_module_scss_1.default.selectRoot, classNames.root, className), clear: showClear ? ((0, jsx_runtime_1.jsx)(field_1.FieldClearButton, { size: size, disabled: disabled, label: t('select.clearValue'), onClear: onClearClick, className: classNames.clear })) : undefined, endAdornment: (0, jsx_runtime_1.jsx)("button", { type: "button", tabIndex: -1, className: (0, clsx_1.default)(select_field_module_scss_1.default.arrowButton, disabled && select_field_module_scss_1.default.arrowButtonDisabled, classNames.arrow), disabled: disabled, "aria-disabled": disabled, "aria-label": open ? t('select.close') : t('select.open'), onMouseDown: onAdornmentMouseDown, onClick: onArrowClick, children: (0, jsx_runtime_1.jsx)(icon_1.Icon, { size: size === 's' ? 16 : 20, color: disabled ? 'text-minor' : 'text-primary', children: (0, jsx_runtime_1.jsx)(icons_1.ArrowIcon, { direction: open ? 'top' : 'bottom' }) }) }), children: valueContent }));
219
+ const valueContent = ((0, jsx_runtime_1.jsx)(select_field_value_1.SelectFieldValue, { fieldId: fieldId, testId: testId, mode: mode, showSearch: showSearch, open: open, disabled: disabled, listboxId: listboxId, labelledBy: labelledBy, valueClassName: valueClassName, showPlaceholderStyle: showPlaceholderStyle, hasLabel: Boolean(label) && variant !== 'trigger', hasDisplayValue: hasDisplayValue, displayValue: displayValue, inactiveValueText: inactiveValueText, searchValue: searchValue, placeholder: placeholder, openPlaceholderOverride: openPlaceholderOverride, collapsedMultiselect: showSearch ? showMultiselectCollapsedValue : showMultiselectCollapsedValueNonSearch, multiselectValueProps: multiselectValueProps, searchInputRef: mergedSearchInputRef, comboboxRef: mergedComboboxRef, comboboxA11yProps: comboboxA11yProps, onSearchChange: onSearchChange, onOpen: onOpen, onFieldClick: onFieldClick, onFieldKeyDown: onFieldKeyDown, onInputFocus: onInputFocus, onInputBlur: onInputBlur, onSearchInputMouseDown: onSearchInputMouseDown }));
220
+ return ((0, jsx_runtime_1.jsx)(field_1.FieldFrame, { ref: ref, size: size, label: variant === 'trigger' ? undefined : label, startAdornment: startAdornment, controlId: fieldId, active: fieldActive, focused: focused || open, status: status, theme: theme, disabled: disabled, underline: variant === 'underline', fullWidth: fullWidth, withClear: showClear, caption: caption, className: (0, clsx_1.default)(select_field_module_scss_1.default.selectRoot, variant === 'trigger' && select_field_module_scss_1.default.trigger, classNames.root, className), clear: showClear ? ((0, jsx_runtime_1.jsx)(field_1.FieldClearButton, { size: size, disabled: disabled, label: t('select.clearValue'), onClear: onClearClick, className: classNames.clear })) : undefined, endAdornment: (0, jsx_runtime_1.jsx)("button", { type: "button", tabIndex: -1, className: (0, clsx_1.default)(select_field_module_scss_1.default.arrowButton, disabled && select_field_module_scss_1.default.arrowButtonDisabled, classNames.arrow), disabled: disabled, "aria-disabled": disabled, "aria-label": open ? t('select.close') : t('select.open'), onMouseDown: onAdornmentMouseDown, onClick: onArrowClick, children: (0, jsx_runtime_1.jsx)(icon_1.Icon, { size: size === 's' ? 16 : 20, color: disabled ? 'text-minor' : 'text-primary', children: (0, jsx_runtime_1.jsx)(icons_1.ArrowIcon, { direction: open ? 'top' : 'bottom' }) }) }), children: valueContent }));
219
221
  });
@@ -11,7 +11,7 @@ const normalize_value_1 = require("../utils/normalize-value");
11
11
  const use_select_1 = require("./use-select");
12
12
  const use_select_multiselect_panel_state_1 = require("./use-select-multiselect-panel-state");
13
13
  function useSelectViewModel(props, ref) {
14
- const { value, defaultValue, onUpdate, mode, options, showSearch, strict, filterOption, disabled, open, defaultOpen, onOpenChange, allowClear: allowClearProp, placeholder, searchValue, onSearch, searchDelay, closeOnSelect, clearSearchOnSelect, loading, fetching, minCharsToSearch, notFoundContent, minCharsContent, loadingContent, onListScroll: onListScrollProp, hasMore = false, onLoadMore, chipsVariant = 'none', defaultChipsExpanded = false, chipsExpandedMode = 'auto', showPanelHeader: showPanelHeaderProp, hideHeaderOnSearch = false, emptySelectionLabel, selectedCountLabel, overflowSelectedLabel, collapseLabel, clearLabel, dropdownMaxHeight, virtualized, multiselectChipsMaxRows, label, status, theme, caption, mobile, variant: variantProp, fullWidth, className, size: sizeProp, popoverClassName, dropdownWidth = 'field', placement = 'bottom-start', container, children, 'data-testid': testId = 'select', } = props;
14
+ const { value, defaultValue, onUpdate, mode, options, showSearch, strict, filterOption, disabled, open, defaultOpen, onOpenChange, allowClear: allowClearProp, placeholder, searchValue, onSearch, searchDelay, closeOnSelect, clearSearchOnSelect, loading, fetching, minCharsToSearch, notFoundContent, minCharsContent, loadingContent, onListScroll: onListScrollProp, hasMore = false, onLoadMore, chipsVariant = 'none', defaultChipsExpanded = false, chipsExpandedMode = 'auto', showPanelHeader: showPanelHeaderProp, hideHeaderOnSearch = false, emptySelectionLabel, selectedCountLabel, overflowSelectedLabel, collapseLabel, clearLabel, dropdownMaxHeight, virtualized, multiselectChipsMaxRows, label, startAdornment, status, theme, caption, mobile, variant: variantProp, fullWidth, className, size: sizeProp, popoverClassName, dropdownWidth = 'field', placement = 'bottom-start', container, children, 'data-testid': testId = 'select', } = props;
15
15
  // Подгрузка порциями: `onLoadMore` вызывается при прокрутке списка к концу, пока `hasMore` и не `fetching`
16
16
  const loadMore = (0, use_load_more_1.useLoadMore)({
17
17
  hasMore,
@@ -120,9 +120,11 @@ function useSelectViewModel(props, ref) {
120
120
  return {
121
121
  testId,
122
122
  dataProps: (0, data_attributes_1.getDataAttributes)(props),
123
+ ariaLabel: props['aria-label'],
123
124
  select,
124
125
  isMultiple,
125
126
  label,
127
+ startAdornment,
126
128
  status,
127
129
  theme,
128
130
  caption,
@@ -3,6 +3,25 @@
3
3
  --input-right-padding: var(--space-16);
4
4
  }
5
5
 
6
+ .trigger {
7
+ border-radius: var(--rounding-m);
8
+ }
9
+ .trigger > [aria-hidden=true] {
10
+ display: none;
11
+ }
12
+ @media (hover: hover) and (min-width: 768px) {
13
+ .trigger:hover {
14
+ background: var(--background-secondary);
15
+ }
16
+ }
17
+ .trigger:active {
18
+ background: var(--background-secondary);
19
+ }
20
+ .trigger:focus-within {
21
+ outline: 2px solid var(--control-primary);
22
+ outline-offset: 2px;
23
+ }
24
+
6
25
  .selectRoot_withClear {
7
26
  --field-cross-w: 24px;
8
27
  }
@@ -45,7 +64,7 @@
45
64
  }
46
65
 
47
66
  .selectValuePlaceholderReveal {
48
- animation: select-placeholder-reveal calc(var(--field-label-duration) / 2) var(--field-label-easing) calc(var(--field-label-duration) * 0.6) both;
67
+ animation: select-placeholder-reveal 0.1s ease-in-out 0.12s both;
49
68
  }
50
69
 
51
70
  @keyframes select-placeholder-reveal {
@@ -111,7 +111,7 @@
111
111
  gap: 6px;
112
112
  align-items: center;
113
113
  max-width: 100%;
114
- padding: 6px 8px 6px 12px;
114
+ padding: 6px var(--space-8) 6px var(--space-12);
115
115
  color: var(--text-invert);
116
116
  background: var(--control-primary);
117
117
  border: none;
@@ -446,7 +446,7 @@
446
446
  line-height: 1.2307692308;
447
447
  letter-spacing: 0.25px;
448
448
  display: block;
449
- padding: 8px 16px 4px;
449
+ padding: var(--space-8) var(--space-16) var(--space-4);
450
450
  color: var(--text-minor);
451
451
  }
452
452
 
@@ -24,7 +24,7 @@ const styles_module_scss_1 = __importDefault(require("./styles.module.css"));
24
24
  const SHEET_MULTISELECT_HEIGHT = 'calc(90dvh - 230px)';
25
25
  function SelectView({ vm }) {
26
26
  var _a;
27
- const { testId, select, isMultiple, label, status, theme, caption, placeholder, disabled, fullWidth, className, size, fieldDisplayValue, selectedValueText, hasValue, popoverClassName, dropdownWidth, placement, container, children, presentation, variant, listSize, onOpen, onToggle, onSearchChange, onClear, onRemoveChip, onToggleChips, onChipsOverflow, chipsVariant, showPanelHeader, multiselectPanel, emptySelectionLabel, selectedCountLabel, overflowSelectedLabel, collapseLabel, clearLabel, dropdownMaxHeight, virtualized, multiselectChipsMaxRows, selectedArray, onListScroll, fetching, } = vm;
27
+ const { testId, select, isMultiple, label, ariaLabel, startAdornment, status, theme, caption, placeholder, disabled, fullWidth, className, size, fieldDisplayValue, selectedValueText, hasValue, popoverClassName, dropdownWidth, placement, container, children, presentation, variant, listSize, onOpen, onToggle, onSearchChange, onClear, onRemoveChip, onToggleChips, onChipsOverflow, chipsVariant, showPanelHeader, multiselectPanel, emptySelectionLabel, selectedCountLabel, overflowSelectedLabel, collapseLabel, clearLabel, dropdownMaxHeight, virtualized, multiselectChipsMaxRows, selectedArray, onListScroll, fetching, } = vm;
28
28
  const { t } = (0, use_locale_1.useLocale)();
29
29
  const sheet = presentation !== 'popup';
30
30
  const classNames = (0, class_names_context_1.useSelectClassNames)();
@@ -45,7 +45,7 @@ function SelectView({ vm }) {
45
45
  popupRef,
46
46
  inputRef: select.inputRef,
47
47
  });
48
- const field = ((0, jsx_runtime_1.jsx)(select_field_1.SelectField, { ref: activatorRef, label: label, placeholder: placeholder, displayValue: fieldDisplayValue, mode: select.mode, multiselectLabels: select.multiselectDisplayLabels, chipsVariant: chipsVariant, open: select.open, disabled: disabled, status: status, theme: theme, filled: hasValue, size: size, variant: variant, fullWidth: fullWidth,
48
+ const field = ((0, jsx_runtime_1.jsx)(select_field_1.SelectField, { ref: activatorRef, label: label, "aria-label": ariaLabel, startAdornment: startAdornment, placeholder: placeholder, displayValue: fieldDisplayValue, mode: select.mode, multiselectLabels: select.multiselectDisplayLabels, chipsVariant: chipsVariant, open: select.open, disabled: disabled, status: status, theme: theme, filled: hasValue, size: size, variant: variant, fullWidth: fullWidth,
49
49
  // В шторке поле только открывает её: запрос вводят в строке поиска шторки, иначе клавиатура закрыла бы список
50
50
  showSearch: select.showSearch && !sheet, searchValue: select.searchValue, selectedValueText: selectedValueText, onSearchChange: onSearchChange, onOpen: onOpen, onToggle: onToggle, overflowSelectedLabel: overflowSelectedLabel, allowClear: select.allowClear, onClear: onClear, caption: caption, className: className, listboxId: select.listboxId, controlRef: select.inputRef, activeDescendantId: select.activeOptionId, onComboboxKeyDown: select.onComboboxKeyDown }));
51
51
  const panel = isMultiple ? ((0, jsx_runtime_1.jsx)(select_multiselect_panel_1.SelectMultiselectPanel, { id: select.listboxId, options: select.listOptions, chipOptions: select.options, searchActive: !!select.searchValue, value: selectedArray, onUpdate: select.handleSelect, onRemoveChip: onRemoveChip, onClear: onClear, showPanelHeader: showPanelHeader, chipsExpanded: multiselectPanel.chipsExpanded, chipsExpandedMode: multiselectPanel.mode, onToggleChips: onToggleChips, onChipsOverflow: onChipsOverflow, emptySelectionLabel: emptySelectionLabel, selectedCountLabel: selectedCountLabel, collapseLabel: collapseLabel, clearLabel: clearLabel, virtualized: virtualized, chipsMaxRows: multiselectChipsMaxRows, size: listSize, open: select.open, showLoader: select.showLoader, showNotFound: select.showNotFound, showMinCharsHint: select.showMinCharsHint, notFoundContent: select.notFoundContent, minCharsContent: select.minCharsContent, loadingContent: select.loadingContent, className: panelClassName, activeValue: select.activeOptionValue, onOptionMouseMove: select.onOptionMouseMove, onListMouseMove: select.onListMouseMove, keyboardNavActive: select.keyboardNavActive, restoreComboboxFocus: select.restoreComboboxFocus, maxHeight: sheet ? SHEET_MULTISELECT_HEIGHT : dropdownMaxHeight, mobile: sheet, children: children })) : ((0, jsx_runtime_1.jsx)(select_single_panel_1.SelectSinglePanel, { id: select.listboxId, selectionMode: "single", value: select.selectedValues, onUpdate: select.handleSelect, options: select.listOptions, size: listSize, open: select.open, showNotFound: select.showNotFound, showMinCharsHint: select.showMinCharsHint, notFoundContent: select.notFoundContent, minCharsContent: select.minCharsContent, loadingContent: select.loadingContent, loading: select.loading, fetching: fetching, maxHeight: sheet ? 'none' : dropdownMaxHeight, virtualized: virtualized, onListScroll: onListScroll, activeValue: select.activeOptionValue, onOptionMouseMove: select.onOptionMouseMove, onListMouseMove: select.onListMouseMove, keyboardNavActive: select.keyboardNavActive, className: panelClassName, mobile: sheet, children: children }));
@@ -26,7 +26,7 @@
26
26
  }
27
27
 
28
28
  .searchListboxCaption {
29
- padding: 12px 16px;
29
+ padding: var(--space-12) var(--space-16);
30
30
  color: var(--text-minor);
31
31
  }
32
32
 
@@ -18,7 +18,7 @@
18
18
  }
19
19
  .snackHeader .icon {
20
20
  height: 32px;
21
- padding: 4px;
21
+ padding: var(--space-4);
22
22
  }
23
23
  .snackHeader .textInfo {
24
24
  display: flex;
@@ -19,7 +19,7 @@
19
19
  }
20
20
  @media (pointer: coarse) {
21
21
  .switchRoot {
22
- padding-inline: 4px;
22
+ padding-inline: var(--space-4);
23
23
  }
24
24
  }
25
25
  .switchRoot.disabled {
@@ -120,7 +120,7 @@
120
120
  }
121
121
 
122
122
  .label {
123
- gap: 12px;
123
+ gap: var(--space-12);
124
124
  align-items: center;
125
125
  }
126
126
  .label.labelLeft {
@@ -15,7 +15,7 @@
15
15
  }
16
16
 
17
17
  .pills {
18
- gap: 4px;
18
+ gap: var(--space-4);
19
19
  }
20
20
 
21
21
  .enclosed {
@@ -33,7 +33,7 @@
33
33
  align-items: center;
34
34
  justify-content: center;
35
35
  padding-block: var(--tab-padding);
36
- margin-inline: 8px;
36
+ margin-inline: var(--space-8);
37
37
  color: var(--lt-ui-tabs-color, var(--text-minor));
38
38
  touch-action: manipulation;
39
39
  background-color: transparent;
@@ -82,7 +82,7 @@
82
82
 
83
83
  .variant-pills {
84
84
  padding-inline: 14px;
85
- margin-inline: 2px;
85
+ margin-inline: var(--space-2);
86
86
  border-radius: var(--rounding-circular);
87
87
  }
88
88
  .variant-pills:not(.divider, .active) {
@@ -105,7 +105,7 @@
105
105
  }
106
106
 
107
107
  .variant-enclosed {
108
- padding-inline: 16px;
108
+ padding-inline: var(--space-16);
109
109
  margin-inline: 0 -1px;
110
110
  background-color: var(--control-minor);
111
111
  border: 1px solid var(--control-secondary);
@@ -151,7 +151,7 @@
151
151
  }
152
152
 
153
153
  .xl {
154
- --tab-padding: 12px;
154
+ --tab-padding: var(--space-12);
155
155
  --tab-icon-size: 28px;
156
156
  --tab-badge-size: 28px;
157
157
  font-size: 27px;
@@ -180,7 +180,7 @@
180
180
  .tabIcon {
181
181
  width: var(--tab-icon-size);
182
182
  height: var(--tab-icon-size);
183
- margin-inline: 4px;
183
+ margin-inline: var(--space-4);
184
184
  }
185
185
 
186
186
  .tabBadge {
@@ -189,7 +189,7 @@
189
189
  justify-content: center;
190
190
  min-width: var(--tab-badge-size);
191
191
  height: var(--tab-badge-size);
192
- margin-inline: 4px;
192
+ margin-inline: var(--space-4);
193
193
  }
194
194
  .tabBadge [role=status] {
195
195
  opacity: 0.5;
@@ -19,7 +19,7 @@
19
19
  width: 20px;
20
20
  height: 20px;
21
21
  padding: 3px;
22
- margin: 0 2px 2px 0;
22
+ margin: 0 var(--space-2) var(--space-2) 0;
23
23
  color: var(--control-secondary);
24
24
  touch-action: none;
25
25
  }
@@ -68,6 +68,12 @@
68
68
  --palette-red-light: #FFD7D4;
69
69
  --palette-black: #000000;
70
70
  --palette-white: #FFFFFF;
71
+ --box-shadow-s: 0 1px 4px rgba(0, 0, 0, 0.16), 0 2px 9px rgba(0, 0, 0, 0.02);
72
+ --box-shadow-m: 0 1.17px 2px rgba(0, 0, 0, 0.0196802), 0 1.4px 5px rgba(0, 0, 0, 0.03), 0 2px 10px rgba(0, 0, 0, 0.03), 0 2px 18px rgba(0, 0, 0, 0.04), 0 9px 33px rgba(0, 0, 0, 0.03);
73
+ --box-shadow-l: 0 0.166035px 2.21381px rgba(0, 0, 0, 0.0196802), 0 0.399006px 5.32008px rgba(0, 0, 0, 0.0282725), 0 0.751293px 10.0172px rgba(0, 0, 0, 0.035), 0 12px 40px rgba(0, 0, 0, 0.08);
74
+ --box-shadow-s-up: 0 -1px 4px rgba(0, 0, 0, 0.16), 0 -2px 9px rgba(0, 0, 0, 0.02);
75
+ --box-shadow-m-up: 0 -1.17px 2px rgba(0, 0, 0, 0.0196802), 0 -1.4px 5px rgba(0, 0, 0, 0.03), 0 -2px 10px rgba(0, 0, 0, 0.03), 0 -2px 18px rgba(0, 0, 0, 0.04), 0 -9px 33px rgba(0, 0, 0, 0.03);
76
+ --box-shadow-l-up: 0 -0.166035px 2.21381px rgba(0, 0, 0, 0.0196802), 0 -0.399006px 5.32008px rgba(0, 0, 0, 0.0282725), 0 -0.751293px 10.0172px rgba(0, 0, 0, 0.035), 0 -12px 40px rgba(0, 0, 0, 0.08);
71
77
  --space-2: 2px;
72
78
  --space-4: 4px;
73
79
  --space-8: 8px;
@@ -85,12 +91,6 @@
85
91
  --rounding-l: 8px;
86
92
  --rounding-xl: 16px;
87
93
  --rounding-circular: 100vmin;
88
- --box-shadow-s: 0 1px 4px rgba(0, 0, 0, 0.16), 0 2px 9px rgba(0, 0, 0, 0.02);
89
- --box-shadow-m: 0 1.17px 2px rgba(0, 0, 0, 0.0196802), 0 1.4px 5px rgba(0, 0, 0, 0.03), 0 2px 10px rgba(0, 0, 0, 0.03), 0 2px 18px rgba(0, 0, 0, 0.04), 0 9px 33px rgba(0, 0, 0, 0.03);
90
- --box-shadow-l: 0 0.166035px 2.21381px rgba(0, 0, 0, 0.0196802), 0 0.399006px 5.32008px rgba(0, 0, 0, 0.0282725), 0 0.751293px 10.0172px rgba(0, 0, 0, 0.035), 0 12px 40px rgba(0, 0, 0, 0.08);
91
- --box-shadow-s-up: 0 -1px 4px rgba(0, 0, 0, 0.16), 0 -2px 9px rgba(0, 0, 0, 0.02);
92
- --box-shadow-m-up: 0 -1.17px 2px rgba(0, 0, 0, 0.0196802), 0 -1.4px 5px rgba(0, 0, 0, 0.03), 0 -2px 10px rgba(0, 0, 0, 0.03), 0 -2px 18px rgba(0, 0, 0, 0.04), 0 -9px 33px rgba(0, 0, 0, 0.03);
93
- --box-shadow-l-up: 0 -0.166035px 2.21381px rgba(0, 0, 0, 0.0196802), 0 -0.399006px 5.32008px rgba(0, 0, 0, 0.0282725), 0 -0.751293px 10.0172px rgba(0, 0, 0, 0.035), 0 -12px 40px rgba(0, 0, 0, 0.08);
94
94
  --opacity-40: 0.4;
95
95
  --opacity-60: 0.6;
96
96
  --opacity-80: 0.8;
@@ -2,8 +2,8 @@
2
2
  --time-option-h: 36px;
3
3
  --time-column-w: 56px;
4
4
  display: inline-flex;
5
- gap: 4px;
6
- padding: 8px;
5
+ gap: var(--space-4);
6
+ padding: var(--space-8);
7
7
  }
8
8
 
9
9
  .s {
@@ -15,9 +15,9 @@
15
15
  position: relative;
16
16
  display: flex;
17
17
  flex-direction: column;
18
- gap: 2px;
18
+ gap: var(--space-2);
19
19
  width: var(--time-column-w);
20
- height: calc(var(--time-option-h) * 6 + 10px);
20
+ height: calc(var(--time-option-h) * 6 + var(--space-2) * 5);
21
21
  padding: 0;
22
22
  overflow-y: auto;
23
23
  overscroll-behavior: contain;
@@ -92,15 +92,15 @@
92
92
 
93
93
  .rangePanels {
94
94
  display: flex;
95
- gap: 4px;
96
- padding: 4px;
95
+ gap: var(--space-4);
96
+ padding: var(--space-4);
97
97
  }
98
98
 
99
99
  .rangePanels > hr.rangeDivider {
100
100
  --vertical-length: auto;
101
101
  align-self: stretch;
102
102
  height: auto;
103
- margin: 8px 0;
103
+ margin: var(--space-8) 0;
104
104
  }
105
105
 
106
106
  .rangeColumn {
@@ -113,12 +113,12 @@
113
113
  font-weight: 600;
114
114
  line-height: 1.2;
115
115
  letter-spacing: 0.2px;
116
- padding: 8px 8px 0;
116
+ padding: var(--space-8) var(--space-8) 0;
117
117
  color: var(--text-primary);
118
118
  }
119
119
 
120
120
  .sheetPanel {
121
121
  display: flex;
122
122
  justify-content: center;
123
- padding: 0 16px 8px;
123
+ padding: 0 var(--space-16) var(--space-8);
124
124
  }
@@ -33,7 +33,7 @@
33
33
  gap: var(--tree-gap);
34
34
  align-items: center;
35
35
  min-height: var(--tree-row-height);
36
- padding-inline-end: 8px;
36
+ padding-inline-end: var(--space-8);
37
37
  cursor: pointer;
38
38
  user-select: none;
39
39
  outline: none;
@@ -89,7 +89,7 @@
89
89
  margin-inline-end: calc(var(--tree-gap) * -1);
90
90
  }
91
91
  .guide:first-child {
92
- margin-inline-start: 8px;
92
+ margin-inline-start: var(--space-8);
93
93
  }
94
94
  .guide::before, .guide::after {
95
95
  position: absolute;
@@ -144,7 +144,7 @@
144
144
  }
145
145
 
146
146
  .row:not(:has(.guide)) {
147
- padding-inline-start: 8px;
147
+ padding-inline-start: var(--space-8);
148
148
  }
149
149
 
150
150
  .indicator {
@@ -239,13 +239,13 @@
239
239
  .end {
240
240
  display: inline-flex;
241
241
  flex: 0 0 auto;
242
- gap: 8px;
242
+ gap: var(--space-8);
243
243
  align-items: center;
244
244
  margin-inline-start: auto;
245
245
  }
246
246
 
247
247
  .empty {
248
- padding: 12px 8px;
248
+ padding: var(--space-12) var(--space-8);
249
249
  color: var(--text-minor);
250
250
  }
251
251
 
@@ -21,11 +21,11 @@
21
21
  }
22
22
 
23
23
  .search {
24
- padding: 12px 12px 4px;
24
+ padding: var(--space-12) var(--space-12) var(--space-4);
25
25
  }
26
26
 
27
27
  .scroll {
28
- padding: 8px;
28
+ padding: var(--space-8);
29
29
  overflow: auto;
30
30
  overscroll-behavior: contain;
31
31
  }
@@ -14,13 +14,13 @@
14
14
  .time {
15
15
  display: flex;
16
16
  align-items: center;
17
- padding: 16px 16px 16px 0;
17
+ padding: var(--space-16) var(--space-16) var(--space-16) 0;
18
18
  border-left: 1px solid var(--control-minor);
19
19
  }
20
20
 
21
21
  .withTime .time {
22
- padding-inline-start: 8px;
23
- margin-inline-start: -8px;
22
+ padding-inline-start: var(--space-8);
23
+ margin-inline-start: calc(-1 * var(--space-8));
24
24
  }
25
25
 
26
26
  @media (max-width: 767.98px) {
@@ -29,7 +29,7 @@
29
29
  }
30
30
  .withTime .time {
31
31
  justify-content: center;
32
- padding: 0 16px 16px;
32
+ padding: 0 var(--space-16) var(--space-16);
33
33
  margin: 0;
34
34
  border-top: 1px solid var(--control-minor);
35
35
  border-left: 0;
@@ -37,7 +37,7 @@
37
37
  }
38
38
  .rangeTime {
39
39
  flex-direction: column;
40
- gap: 8px;
40
+ gap: var(--space-8);
41
41
  align-items: stretch;
42
42
  min-width: 0;
43
43
  }
@@ -81,7 +81,7 @@
81
81
  font-weight: 600;
82
82
  line-height: 1.2;
83
83
  letter-spacing: 0.2px;
84
- padding: 0 16px 4px;
84
+ padding: 0 var(--space-16) var(--space-4);
85
85
  color: var(--text-primary);
86
86
  }
87
87
 
@@ -91,7 +91,7 @@
91
91
  width: 100%;
92
92
  }
93
93
  .sheetBody > :first-child {
94
- --calendar-pad-x: 8px;
94
+ --calendar-pad-x: var(--space-8);
95
95
  flex: 1 0 0;
96
96
  min-width: 224px;
97
97
  }
@@ -100,7 +100,7 @@
100
100
  flex: 0 1 auto;
101
101
  align-items: stretch;
102
102
  min-width: 0;
103
- padding: 8px 2px;
103
+ padding: var(--space-8) var(--space-2);
104
104
  margin: 0;
105
105
  overflow: hidden;
106
106
  border-left: 1px solid var(--control-minor);
@@ -110,9 +110,9 @@
110
110
  --time-option-h: 32px;
111
111
  --time-column-w: 38px;
112
112
  flex: 0 1 auto;
113
- gap: 2px;
113
+ gap: var(--space-2);
114
114
  min-width: 0;
115
- padding: 0 2px;
115
+ padding: 0 var(--space-2);
116
116
  }
117
117
  .sheetTime .sheetTimePanel.sheetTimePanel > * {
118
118
  flex: 0 1 var(--time-column-w);
@@ -1,8 +1,6 @@
1
1
  .root {
2
2
  --drawer-duration-in: var(--lt-ui-drawer-duration-in, 320ms);
3
3
  --drawer-duration-out: var(--lt-ui-drawer-duration-out, 220ms);
4
- --drawer-ease-in: cubic-bezier(0.32, 0.72, 0, 1);
5
- --drawer-ease-out: cubic-bezier(0.4, 0, 1, 1);
6
4
  --drawer-scrim-opacity: var(--lt-ui-drawer-scrim-opacity, 0.6);
7
5
  --drawer-padding: var(--lt-ui-drawer-padding, 24px);
8
6
  position: fixed;
@@ -11,7 +9,7 @@
11
9
  }
12
10
  @media (max-width: 479.98px) {
13
11
  .root {
14
- --drawer-padding: 16px;
12
+ --drawer-padding: var(--space-16);
15
13
  }
16
14
  }
17
15
  .root:global([data-lt-ui-theme='dark']) {
@@ -153,7 +151,7 @@
153
151
  }
154
152
  .transitionEnterActive .panel {
155
153
  transform: translate3d(0, 0, 0);
156
- transition: transform var(--drawer-duration-in) var(--drawer-ease-in);
154
+ transition: transform var(--drawer-duration-in) cubic-bezier(0.32, 0.72, 0, 1);
157
155
  will-change: transform;
158
156
  }
159
157
 
@@ -167,7 +165,7 @@
167
165
  }
168
166
  .transitionExitActive .panel {
169
167
  transform: var(--drawer-from);
170
- transition: transform var(--drawer-duration-out) var(--drawer-ease-out);
168
+ transition: transform var(--drawer-duration-out) cubic-bezier(0.4, 0, 1, 1);
171
169
  }
172
170
 
173
171
  .root[data-dragging] .panel {
@@ -187,7 +185,7 @@
187
185
  display: flex;
188
186
  flex: none;
189
187
  justify-content: center;
190
- padding: 10px 0 2px;
188
+ padding: 10px 0 var(--space-2);
191
189
  touch-action: none;
192
190
  cursor: grab;
193
191
  }
@@ -217,9 +215,9 @@
217
215
  z-index: 2;
218
216
  display: flex;
219
217
  flex: none;
220
- gap: 8px;
218
+ gap: var(--space-8);
221
219
  align-items: center;
222
- padding: 12px calc(var(--drawer-padding) - 8px) 12px var(--drawer-padding);
220
+ padding: var(--space-12) calc(var(--drawer-padding) - var(--space-8)) var(--space-12) var(--drawer-padding);
223
221
  background-color: var(--background-elevated);
224
222
  transition: box-shadow 150ms ease-out;
225
223
  }
@@ -237,13 +235,13 @@
237
235
  .actions {
238
236
  display: flex;
239
237
  flex: none;
240
- gap: 4px;
238
+ gap: var(--space-4);
241
239
  align-items: center;
242
240
  }
243
241
 
244
242
  .back {
245
243
  flex: none;
246
- margin-inline-start: -8px;
244
+ margin-inline-start: calc(-1 * var(--space-8));
247
245
  }
248
246
 
249
247
  .close {
@@ -256,9 +254,9 @@
256
254
  z-index: 2;
257
255
  display: flex;
258
256
  flex: none;
259
- gap: 12px;
257
+ gap: var(--space-12);
260
258
  justify-content: space-between;
261
- padding: 16px var(--drawer-padding) max(16px, env(safe-area-inset-bottom, 0px));
259
+ padding: var(--space-16) var(--drawer-padding) max(var(--space-16), env(safe-area-inset-bottom, 0px));
262
260
  margin-top: auto;
263
261
  background-color: var(--background-elevated);
264
262
  transition: box-shadow 150ms ease-out;
@@ -10,23 +10,22 @@
10
10
  --file-pill-width: 132px;
11
11
  --file-pill-height: var(--space-32);
12
12
  --file-emblem-size: var(--space-24);
13
- --file-name-chrome: 76px;
13
+ --file-name-max-width: 56px;
14
14
  }
15
15
  .root.m {
16
16
  --file-pill-width: 144px;
17
17
  --file-pill-height: var(--space-40);
18
18
  --file-emblem-size: var(--space-32);
19
- --file-name-chrome: 92px;
19
+ --file-name-max-width: 52px;
20
20
  }
21
21
  .root.l {
22
22
  --file-pill-width: 152px;
23
23
  --file-pill-height: var(--space-48);
24
24
  --file-emblem-size: var(--space-32);
25
- --file-name-chrome: 92px;
25
+ --file-name-max-width: 60px;
26
26
  }
27
27
  .root:not(.imageRoot) {
28
28
  width: var(--file-pill-width);
29
- --file-name-max-width: calc(var(--file-pill-width) - var(--file-name-chrome));
30
29
  }
31
30
  .root:not(.imageRoot) .pillBody .fileName {
32
31
  max-width: var(--file-name-max-width);
@@ -3,12 +3,12 @@
3
3
  justify-self: end;
4
4
  width: fit-content;
5
5
  height: fit-content;
6
- margin: -4px -4px -4px 8px;
6
+ margin: calc(-1 * var(--space-4)) calc(-1 * var(--space-4)) calc(-1 * var(--space-4)) var(--space-8);
7
7
  }
8
8
 
9
9
  .actionButton {
10
10
  width: 100%;
11
- padding: 4px 10px;
11
+ padding: var(--space-4) 10px;
12
12
  }
13
13
 
14
14
  .extraButton {
@@ -4,11 +4,11 @@
4
4
  }
5
5
 
6
6
  .hasChild {
7
- margin: 0 0 0 12px;
7
+ margin: 0 0 0 var(--space-12);
8
8
  }
9
9
  .hasChild.column {
10
10
  grid-area: 2/1/3/4;
11
- margin: 12px 0 0;
11
+ margin: var(--space-12) 0 0;
12
12
  }
13
13
 
14
14
  .header {
@@ -29,5 +29,5 @@
29
29
  color: var(--text-primary);
30
30
  }
31
31
  .paragraph:nth-child(2) {
32
- margin-top: 4px;
32
+ margin-top: var(--space-4);
33
33
  }
@@ -23,9 +23,9 @@
23
23
  .buttonBlock {
24
24
  display: flex;
25
25
  grid-area: button;
26
- gap: 8px;
26
+ gap: var(--space-8);
27
27
  justify-content: flex-end;
28
- margin-top: 16px;
28
+ margin-top: var(--space-16);
29
29
  }
30
30
 
31
31
  .extraButton {
@@ -15,7 +15,7 @@
15
15
  right: 16px;
16
16
  z-index: 1;
17
17
  display: flex;
18
- gap: 8px;
18
+ gap: var(--space-8);
19
19
  }
20
20
 
21
21
  .close .tool {
@@ -1,7 +1,7 @@
1
1
  .m {
2
- margin: 4px 0 3px;
2
+ margin: var(--space-4) 0 3px;
3
3
  }
4
4
 
5
5
  .l {
6
- margin: 8px 0 7px;
6
+ margin: var(--space-8) 0 7px;
7
7
  }