altum 0.0.5 → 0.0.6
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/CHANGELOG.md +18 -0
- package/dist/base/FieldPopup/FieldPopup.js +1 -1
- package/dist/base/PeriodHeader/PeriodHeader.js +1 -1
- package/dist/base/ToggleControlBase/ToggleControlBase.js +1 -1
- package/dist/base/ToggleControlBase/ToggleControlBase.module.css.js +1 -1
- package/dist/components/Accordion/Accordion.js +1 -1
- package/dist/components/ActionList/ActionList.js +1 -1
- package/dist/components/ActionList/ActionList.module.css.js +1 -1
- package/dist/components/ActionSheetTrigger/ActionSheetTrigger.js +1 -1
- package/dist/components/ActionSheetTrigger/ActionSheetTrigger.module.css.js +1 -1
- package/dist/components/Alert/Alert.js +1 -1
- package/dist/components/Alert/Alert.module.css.js +1 -1
- package/dist/components/Badge/Badge.js +1 -1
- package/dist/components/Badge/Badge.module.css.js +1 -1
- package/dist/components/Box/Box.js +1 -1
- package/dist/components/Box/Box.module.css.js +1 -1
- package/dist/components/Bubble/Bubble.js +1 -1
- package/dist/components/Button/Button.js +1 -1
- package/dist/components/Button/Button.module.css.js +1 -1
- package/dist/components/ButtonGroup/ButtonGroup.js +1 -1
- package/dist/components/ButtonIcon/OverlayCloseButton.js +1 -0
- package/dist/components/Calendar/Calendar.context.js +1 -1
- package/dist/components/Calendar/Calendar.module.css.js +1 -1
- package/dist/components/Calendar/Calendar.slots.js +1 -1
- package/dist/components/Calendar/Calendar.utils.js +1 -1
- package/dist/components/Calendar/Calendar.views.js +1 -1
- package/dist/components/CalendarBoard/CalendarBoard.MonthView.js +1 -1
- package/dist/components/CalendarBoard/CalendarBoard.Schedule.js +1 -1
- package/dist/components/CalendarBoard/CalendarBoard.YearView.js +2 -2
- package/dist/components/CalendarBoard/CalendarBoard.chrome.js +1 -1
- package/dist/components/CalendarBoard/CalendarBoard.module.css.js +1 -1
- package/dist/components/CalendarBoard/calendar.schedule.js +1 -1
- package/dist/components/Card/Card.js +1 -1
- package/dist/components/Card/Card.module.css.js +1 -1
- package/dist/components/Chip/Chip.js +1 -1
- package/dist/components/Chip/Chip.module.css.js +1 -1
- package/dist/components/ColorSwatchGroup/ColorSwatchGroup.js +1 -1
- package/dist/components/CommandPalette/CommandPalette.js +1 -1
- package/dist/components/CommandPalette/CommandPalette.module.css.js +1 -1
- package/dist/components/ConfirmDialog/ConfirmDialog.js +1 -1
- package/dist/components/DateField/DateField.js +1 -1
- package/dist/components/DateField/DateField.utils.js +1 -1
- package/dist/components/DateRangeField/DateRangeField.js +1 -1
- package/dist/components/DayStripCalendar/DayStripCalendar.js +1 -1
- package/dist/components/DialogLayout/DialogLayout.js +1 -0
- package/dist/components/DialogLayout/DialogLayout.module.css.js +1 -0
- package/dist/components/Dropdown/Dropdown.js +1 -1
- package/dist/components/Dropdown/Dropdown.module.css.js +1 -1
- package/dist/components/Dropdown/DropdownMobileSheet.js +1 -1
- package/dist/components/FileList/FileList.js +1 -1
- package/dist/components/ImageCrop/ImageCrop.js +1 -1
- package/dist/components/ImageCrop/ImageCrop.module.css.js +1 -1
- package/dist/components/ImageGallery/ImageGallery.js +1 -1
- package/dist/components/ImageGallery/ImageGallery.module.css.js +1 -1
- package/dist/components/ImageLightbox/ImageLightbox.js +1 -1
- package/dist/components/ImageLightbox/ImageLightbox.module.css.js +1 -1
- package/dist/components/Layout/Layout.js +1 -1
- package/dist/components/Layout/Layout.module.css.js +1 -1
- package/dist/components/Link/Link.js +1 -1
- package/dist/components/Listbox/Listbox.js +1 -1
- package/dist/components/Listbox/Listbox.module.css.js +1 -1
- package/dist/components/LiveRegion/LiveRegion.js +1 -0
- package/dist/components/LocaleProvider/LocaleProvider.js +1 -1
- package/dist/components/MaskedField/MaskedField.js +1 -1
- package/dist/components/MaskedField/MaskedField.module.css.js +1 -1
- package/dist/components/Menu/Menu.js +1 -1
- package/dist/components/Menu/Menu.module.css.js +1 -1
- package/dist/components/Modal/Modal.js +1 -1
- package/dist/components/Modal/Modal.module.css.js +1 -1
- package/dist/components/Notification/Notification.js +1 -1
- package/dist/components/Notification/Notification.module.css.js +1 -1
- package/dist/components/Notification/toast.js +1 -1
- package/dist/components/NumberField/NumberField.js +1 -1
- package/dist/components/Overflow/Overflow.js +1 -1
- package/dist/components/Overflow/Overflow.module.css.js +1 -1
- package/dist/components/Overlay/Overlay.frame.js +1 -0
- package/dist/components/Overlay/Overlay.js +1 -1
- package/dist/components/Overlay/Overlay.module.css.js +1 -1
- package/dist/components/Pagination/Pagination.js +1 -1
- package/dist/components/PasswordField/PasswordField.js +1 -1
- package/dist/components/PinInput/PinInput.js +1 -1
- package/dist/components/PinInput/PinInput.module.css.js +1 -1
- package/dist/components/Popover/Popover.js +1 -1
- package/dist/components/Popover/Popover.module.css.js +1 -1
- package/dist/components/PopupSwitch/PopupSwitch.js +1 -0
- package/dist/components/PopupSwitch/PopupSwitch.module.css.js +1 -0
- package/dist/components/PopupSwitch/PopupSwitch.utils.js +1 -0
- package/dist/components/PullToRefresh/PullToRefresh.js +1 -1
- package/dist/components/Rating/Rating.js +1 -1
- package/dist/components/SearchField/SearchField.js +1 -1
- package/dist/components/SegmentedControl/SegmentedControl.js +1 -1
- package/dist/components/Select/Select.js +1 -1
- package/dist/components/Select/Select.module.css.js +1 -1
- package/dist/components/SelectionGroup/SelectionGroup.js +1 -1
- package/dist/components/Sheet/Sheet.js +1 -1
- package/dist/components/Sheet/Sheet.module.css.js +1 -1
- package/dist/components/Sidebar/Sidebar.js +1 -1
- package/dist/components/Sidebar/Sidebar.module.css.js +1 -1
- package/dist/components/SkipLink/SkipLink.js +1 -1
- package/dist/components/Slider/Slider.js +1 -1
- package/dist/components/SortableList/SortableList.js +1 -1
- package/dist/components/SortableList/SortableList.module.css.js +1 -1
- package/dist/components/Spinner/Spinner.js +1 -1
- package/dist/components/Steps/Steps.js +1 -1
- package/dist/components/SuggestField/SuggestField.js +1 -1
- package/dist/components/Table/Table.js +1 -1
- package/dist/components/Table/TableRowActions.js +1 -1
- package/dist/components/Table/TableView.js +1 -1
- package/dist/components/TextField/TextField.js +1 -1
- package/dist/components/TextField/TextField.module.css.js +1 -1
- package/dist/components/TextareaField/TextareaField.js +1 -1
- package/dist/components/TextareaField/TextareaField.module.css.js +1 -1
- package/dist/components/ThemeProvider/ThemeProvider.js +1 -1
- package/dist/components/ThemeProvider/ThemeProvider.module.css.js +1 -1
- package/dist/components/TimeField/TimeField.js +1 -1
- package/dist/components/Tooltip/Tooltip.js +1 -1
- package/dist/components/Tooltip/Tooltip.module.css.js +1 -1
- package/dist/components/UploadZone/UploadZone.js +1 -1
- package/dist/components/VirtualList/VirtualList.js +1 -1
- package/dist/components/VirtualList/VirtualList.module.css.js +1 -1
- package/dist/components/VirtualList/VirtualList.utils.js +1 -1
- package/dist/components/VisuallyHidden/VisuallyHidden.js +1 -1
- package/dist/components/WheelTimePicker/WheelTimePicker.js +1 -1
- package/dist/entries/icons.js +1 -1
- package/dist/entries/utils.js +1 -1
- package/dist/hooks/useAutoResize.js +1 -1
- package/dist/hooks/useOtpInputs.js +1 -1
- package/dist/hooks/useTrackThumb.js +1 -1
- package/dist/icons/icons/IconChevronUpDown.js +1 -0
- package/dist/index.js +1 -1
- package/dist/locales/en.js +1 -1
- package/dist/locales/localeContext.js +1 -1
- package/dist/locales/ru.js +1 -1
- package/dist/locales/slices/actionList.en.js +1 -0
- package/dist/locales/slices/actionList.ru.js +1 -0
- package/dist/locales/slices/bubble.en.js +1 -0
- package/dist/locales/slices/bubble.ru.js +1 -0
- package/dist/locales/slices/buttonGroup.en.js +1 -0
- package/dist/locales/slices/buttonGroup.ru.js +1 -0
- package/dist/locales/slices/calendar.en.js +1 -0
- package/dist/locales/slices/calendar.ru.js +1 -0
- package/dist/locales/slices/calendarBoard.en.js +1 -0
- package/dist/locales/slices/calendarBoard.ru.js +1 -0
- package/dist/locales/slices/chip.en.js +1 -0
- package/dist/locales/slices/chip.ru.js +1 -0
- package/dist/locales/slices/commandPalette.en.js +1 -0
- package/dist/locales/slices/commandPalette.ru.js +1 -0
- package/dist/locales/slices/common.en.js +1 -0
- package/dist/locales/slices/common.ru.js +1 -0
- package/dist/locales/slices/confirmDialog.en.js +1 -0
- package/dist/locales/slices/confirmDialog.ru.js +1 -0
- package/dist/locales/slices/customSelect.en.js +1 -0
- package/dist/locales/slices/customSelect.ru.js +1 -0
- package/dist/locales/slices/dateRangeField.en.js +1 -0
- package/dist/locales/slices/dateRangeField.ru.js +1 -0
- package/dist/locales/slices/dayStrip.en.js +1 -0
- package/dist/locales/slices/dayStrip.ru.js +1 -0
- package/dist/locales/slices/fileList.en.js +1 -0
- package/dist/locales/slices/fileList.ru.js +1 -0
- package/dist/locales/slices/imageCrop.en.js +1 -0
- package/dist/locales/slices/imageCrop.ru.js +1 -0
- package/dist/locales/slices/imageGallery.en.js +1 -0
- package/dist/locales/slices/imageGallery.ru.js +1 -0
- package/dist/locales/slices/imageLightbox.en.js +1 -0
- package/dist/locales/slices/imageLightbox.ru.js +1 -0
- package/dist/locales/slices/listbox.en.js +1 -0
- package/dist/locales/slices/listbox.ru.js +1 -0
- package/dist/locales/slices/menu.en.js +1 -0
- package/dist/locales/slices/menu.ru.js +1 -0
- package/dist/locales/slices/modal.en.js +1 -0
- package/dist/locales/slices/modal.ru.js +1 -0
- package/dist/locales/slices/numberField.en.js +1 -0
- package/dist/locales/slices/numberField.ru.js +1 -0
- package/dist/locales/slices/overflow.en.js +1 -0
- package/dist/locales/slices/overflow.ru.js +1 -0
- package/dist/locales/slices/pagination.en.js +1 -0
- package/dist/locales/slices/pagination.ru.js +1 -0
- package/dist/locales/slices/password.en.js +1 -0
- package/dist/locales/slices/password.ru.js +1 -0
- package/dist/locales/slices/pinInput.en.js +1 -0
- package/dist/locales/slices/pinInput.ru.js +1 -0
- package/dist/locales/slices/pullToRefresh.en.js +1 -0
- package/dist/locales/slices/pullToRefresh.ru.js +1 -0
- package/dist/locales/slices/rating.en.js +1 -0
- package/dist/locales/slices/rating.ru.js +1 -0
- package/dist/locales/slices/searchField.en.js +1 -0
- package/dist/locales/slices/searchField.ru.js +1 -0
- package/dist/locales/slices/select.en.js +1 -0
- package/dist/locales/slices/select.ru.js +1 -0
- package/dist/locales/slices/sheet.en.js +1 -0
- package/dist/locales/slices/sheet.ru.js +1 -0
- package/dist/locales/slices/sidebar.en.js +1 -0
- package/dist/locales/slices/sidebar.ru.js +1 -0
- package/dist/locales/slices/skipLink.en.js +1 -0
- package/dist/locales/slices/skipLink.ru.js +1 -0
- package/dist/locales/slices/slider.en.js +1 -0
- package/dist/locales/slices/slider.ru.js +1 -0
- package/dist/locales/slices/sortable.en.js +1 -0
- package/dist/locales/slices/sortable.ru.js +1 -0
- package/dist/locales/slices/spinner.en.js +1 -0
- package/dist/locales/slices/spinner.ru.js +1 -0
- package/dist/locales/slices/steps.en.js +1 -0
- package/dist/locales/slices/steps.ru.js +1 -0
- package/dist/locales/slices/suggestField.en.js +1 -0
- package/dist/locales/slices/suggestField.ru.js +1 -0
- package/dist/locales/slices/table.en.js +1 -0
- package/dist/locales/slices/table.ru.js +1 -0
- package/dist/locales/slices/timeField.en.js +1 -0
- package/dist/locales/slices/timeField.ru.js +1 -0
- package/dist/locales/slices/upload.en.js +1 -0
- package/dist/locales/slices/upload.ru.js +1 -0
- package/dist/locales/slices/virtualList.en.js +1 -0
- package/dist/locales/slices/virtualList.ru.js +1 -0
- package/dist/styles/calendarChrome.module.css.js +1 -1
- package/dist/styles/status.module.css.js +1 -1
- package/dist/styles/visuallyHidden.module.css.js +1 -0
- package/dist/utils/date.js +1 -1
- package/dist/utils/fieldMessage.js +1 -0
- package/dist/utils/visitElementTree.js +1 -1
- package/docs/COMPONENTS.md +12 -10
- package/docs/LAYOUT.md +6 -6
- package/docs/THEMING.md +5 -12
- package/package.json +1 -1
- package/types/entries/icons.d.ts +3 -1
- package/types/entries/locales.d.ts +1 -6
- package/types/entries/utils.d.ts +2 -1
- package/types/index.d.ts +527 -620
- package/dist/base/ChevronButton/ChevronButton.js +0 -1
- package/dist/base/DialogBase/DialogBase.js +0 -1
- package/dist/base/DialogBase/DialogBase.module.css.js +0 -1
- package/dist/components/CustomSelect/CustomSelect.Filter.js +0 -1
- package/dist/components/CustomSelect/CustomSelect.List.js +0 -1
- package/dist/components/CustomSelect/CustomSelect.Shell.js +0 -1
- package/dist/components/CustomSelect/CustomSelect.Shell.module.css.js +0 -1
- package/dist/components/CustomSelect/CustomSelect.context.js +0 -1
- package/dist/components/CustomSelect/CustomSelect.js +0 -1
- package/dist/components/CustomSelect/CustomSelect.module.css.js +0 -1
- package/dist/components/CustomSelect/useCustomSelectComboboxKeyboard.js +0 -1
- package/dist/components/FocusTrap/FocusTrap.js +0 -1
- package/dist/components/Overflow/OverflowActionsMode.js +0 -1
- package/dist/components/Overflow/OverflowMeasure.js +0 -1
- package/dist/components/Overflow/OverflowMore.js +0 -1
- package/dist/components/Overlay/Overlay.Dismiss.js +0 -1
- package/dist/components/Overlay/Overlay.Positioner.js +0 -1
- package/dist/components/Overlay/Overlay.types.js +0 -1
- package/dist/components/SortableList/SortableList.types.js +0 -1
- package/dist/components/SortableList/useSortableListDnD.js +0 -1
- package/dist/components/TimeField/TimeField.module.css.js +0 -1
- package/dist/hooks/useDigitMask.js +0 -1
- package/dist/styles/srOnly.module.css.js +0 -1
package/docs/THEMING.md
CHANGED
|
@@ -72,7 +72,7 @@ return (
|
|
|
72
72
|
| `--altum-field-width-default` | Макс. ширина поля при `width="md"` (320px) |
|
|
73
73
|
| `--altum-badge-size-sm` / `md` / `--altum-badge-font-size` / `--altum-badge-font-size-sm` | Компактный chrome счётчика (Badge / Tabs); sm-кегль для числового standalone |
|
|
74
74
|
| `--altum-g-space-1` … `--altum-g-space-9` | Шкала отступов (4px … 36px) |
|
|
75
|
-
| `--altum-shadow-
|
|
75
|
+
| `--altum-shadow-surface` / `--altum-shadow-dropdown` / `--altum-shadow-lg` | Тени карточки, выпадающего слоя и глубокого возвышения |
|
|
76
76
|
|
|
77
77
|
### Типографика
|
|
78
78
|
|
|
@@ -97,15 +97,9 @@ return (
|
|
|
97
97
|
|
|
98
98
|
| Переменная | По умолчанию | Назначение |
|
|
99
99
|
|------------|--------------|------------|
|
|
100
|
-
| `--altum-dialog-header-padding` | асимметричный `--altum-g-space-4` / `--altum-g-space-3` | Шапка Modal / Sheet |
|
|
101
|
-
| `--altum-dialog-body-padding` | `--altum-g-space-4` | Тело Modal / Sheet |
|
|
102
|
-
| `--altum-dialog-footer-padding` | асимметричный футер | Футер Modal / Sheet |
|
|
103
|
-
| `--altum-dialog-title-size` | `--altum-g-font-size-lg` | Заголовок диалога |
|
|
104
|
-
| `--altum-dialog-title-weight` | `--altum-g-font-weight-semibold` | Начертание заголовка |
|
|
105
100
|
| `--altum-dialog-body-size` | `--altum-g-font-size-base` | Текст тела диалога |
|
|
106
|
-
| `--altum-dialog-max-width-
|
|
101
|
+
| `--altum-dialog-max-width-md` / `lg` | 500 / 600 | Modal / Sheet |
|
|
107
102
|
| `--altum-dialog-max-height` | 85vh | Максимальная высота Modal |
|
|
108
|
-
| `--altum-list-max-height` | 280px | Область скролла выпадающего списка |
|
|
109
103
|
| `--altum-option-padding-y` / `--altum-option-padding-x` | `--altum-g-space-2` / `--altum-g-space-3` | Внутренние отступы опции списка |
|
|
110
104
|
|
|
111
105
|
### Тоггл / фокус / chrome оверлея
|
|
@@ -131,7 +125,7 @@ return (
|
|
|
131
125
|
| `--altum-button-focus-inner` / `--altum-button-focus-outer` | light 1px / 3px; dark 2px / 4px | Ширины двойного кольца кнопки |
|
|
132
126
|
| `--altum-opacity-disabled` | 0.5 | Отключённые контролы; **Button** — та же заливка × opacity |
|
|
133
127
|
| `--altum-field-disabled-opacity` | 0.8 | Chrome отключённого поля (текст остаётся читаемым) |
|
|
134
|
-
| `--altum-field-
|
|
128
|
+
| `--altum-field-message-gap` | `--altum-g-space-1` | Зазор helper и ошибки |
|
|
135
129
|
| `--altum-form-helper-indent` | `--altum-g-space-1` | Левый отступ helper / ошибки |
|
|
136
130
|
| `--altum-field-placeholder` / `--altum-color-input-placeholder` | `color-mix(… label 88%, transparent)` | Текст плейсхолдера |
|
|
137
131
|
| `--altum-switch-track-width/height/thumb-size-*` | sm/md/lg | Геометрия Switch (из toggle-box + inset) |
|
|
@@ -139,7 +133,6 @@ return (
|
|
|
139
133
|
| `--altum-overlay-close-size` | 28px | Хит-зона закрытия Overlay / Alert / Notification |
|
|
140
134
|
| `--altum-overlay-close-icon-size` | 16px | Кегль × в overlay-close |
|
|
141
135
|
| `--altum-overlay-close-fg` / `--altum-overlay-close-fg-hover` / `--altum-overlay-close-bg` / `--altum-overlay-close-bg-hover` | тема | Голый крестик overlay (Modal / Sheet, `ButtonIcon` `diskClose`); chrome только на hover |
|
|
142
|
-
| `--altum-overlay-arrow-size` | 8px | Стрелка Popover / tooltip |
|
|
143
136
|
| `--altum-badge-overhang` | `space-1` + `control-inset` (6px) | Запас раскладки + смещение overlay-бейджа |
|
|
144
137
|
| `--altum-badge-digit-nudge` | `0.5px` | Сдвиг цифры в круглом **Badge** вниз (оптический центр) |
|
|
145
138
|
| `--altum-slider-track-height` | `3px` | Высота трека **Slider** |
|
|
@@ -272,10 +265,10 @@ TextField, Checkbox (`mode="task"`), Switch, Radio. Примитивы — ис
|
|
|
272
265
|
| Поле | `--altum-color-field-bg`, `--altum-color-field-border`, `--altum-color-border-hover`, `--altum-color-field-text`, `--altum-field-label` |
|
|
273
266
|
| Кнопка (secondary / tinted / ghost) | `--altum-color-button-secondary-bg`, `--altum-color-button-tinted-border`, `--altum-color-button-ghost-text` (muted, не secondary), `--altum-color-button-ghost-hover-bg` |
|
|
274
267
|
| Chip | `--altum-color-chip-secondary-bg`, `--altum-color-chip-tinted-text` |
|
|
275
|
-
| Segmented | `--altum-color-segmented
|
|
268
|
+
| Segmented | `--altum-color-segmented-ghost-slider-bg`, `--altum-color-segmented-slider-shadow` |
|
|
276
269
|
| Панель | `--altum-color-panel-bg`, `--altum-color-panel-border`, `--altum-color-panel-bg-hover` |
|
|
277
270
|
| Типографика | `--altum-color-type`, `--altum-color-type-secondary`, `--altum-color-type-tertiary`, `--altum-color-type-muted` (`Title` / `Text`) |
|
|
278
|
-
| Ссылка | `--altum-color-link-color`, `--altum-color-link-secondary`, `--altum-color-link-muted`, `--altum-color-link-danger
|
|
271
|
+
| Ссылка | `--altum-color-link-color`, `--altum-color-link-secondary`, `--altum-color-link-muted`, `--altum-color-link-danger`. Фокус — `--altum-focus-ring-color` |
|
|
279
272
|
| Tooltip | `--altum-color-tooltip-bg` / `--altum-color-tooltip-fg` (инверсия ink, не brand-кнопка) |
|
|
280
273
|
| Индикатор Tabs / Pagination | `--altum-color-tabs-indicator` |
|
|
281
274
|
|
package/package.json
CHANGED
package/types/entries/icons.d.ts
CHANGED
|
@@ -105,6 +105,8 @@ declare const IconChevronRight: react.FC<IconProps>;
|
|
|
105
105
|
|
|
106
106
|
declare const IconChevronUp: react.FC<IconProps>;
|
|
107
107
|
|
|
108
|
+
declare const IconChevronUpDown: react.FC<IconProps>;
|
|
109
|
+
|
|
108
110
|
declare const IconClipboard: react.FC<IconProps>;
|
|
109
111
|
|
|
110
112
|
declare const IconClock: react.FC<IconProps>;
|
|
@@ -411,5 +413,5 @@ declare const IconZoomIn: react.FC<IconProps>;
|
|
|
411
413
|
|
|
412
414
|
declare const IconZoomOut: react.FC<IconProps>;
|
|
413
415
|
|
|
414
|
-
export { IconAlarm, IconAlignCenter, IconAlignJustify, IconAlignLeft, IconAlignRight, IconAnchor, IconArchive, IconArrowDown, IconArrowLeft, IconArrowRight, IconArrowThinDown, IconArrowThinLeft, IconArrowThinRight, IconArrowThinUp, IconArrowUp, IconArticle, IconBackspace, IconBasket, IconBasketball, IconBatteryEmpty, IconBatteryFull, IconBatteryLow, IconBatteryMedium, IconBell, IconBlog, IconBluetooth, IconBold, IconBookmark, IconBookmarks, IconBox, IconBriefcase, IconBrightnessLow, IconBrightnessMax, IconBrightnessMedium, IconBroadcast, IconBrowser, IconBrowserUpload, IconBrush, IconCalendar, IconCamcorder, IconCamera, IconCard, IconCart, IconChecklist, IconCheckmark, IconChevronDown, IconChevronLeft, IconChevronRight, IconChevronUp, IconClipboard, IconClock, IconClockwise, IconCloud, IconCloudDownload, IconCloudUpload, IconCode, IconContract, IconContract2, IconConversation, IconCopy, IconCrop, IconCross, IconCrosshair, IconCutlery, IconDeviceDesktop, IconDeviceMobile, IconDeviceTablet, IconDirection, IconDisc, IconDocument, IconDocumentDelete, IconDocumentEdit, IconDocumentNew, IconDocumentRemove, IconDot, IconDots2, IconDots3, IconDownload, IconDragHandle, IconDuplicate, IconEnter, IconExit, IconExpand, IconExpand2, IconExperiment, IconExport, IconFeed, IconFlag, IconFlashlight, IconFolder, IconFolderOpen, IconForward, IconGaming, IconGear, IconGraduation, IconGraphBar, IconGraphLine, IconGraphPie, IconHeadset, IconHeart, IconHelp, IconHome, IconHourglass, IconInbox, IconInformation, IconItalic, IconJewel, IconLifting, IconLightbulb, IconLink, IconLinkBroken, IconList, IconLoading, IconLocation, IconLock, IconLockOpen, IconMail, IconMap, IconMediaLoop, IconMediaNext, IconMediaPause, IconMediaPlay, IconMediaPrevious, IconMediaRecord, IconMediaShuffle, IconMediaStop, IconMedical, IconMenu, IconMessage, IconMeter, IconMicrophone, IconMinus, IconMonitor, IconMove, IconMusic, IconNetwork1, IconNetwork2, IconNetwork3, IconNetwork4, IconNetwork5, IconPamphlet, IconPaperclip, IconPencil, IconPhone, IconPhoto, IconPhotoGroup, IconPill, IconPin, IconPlus, IconPower, IconPreview, IconPreviewOff, IconPrint, IconPulse, IconQuestion, IconReply, IconReplyAll, IconReturn, IconRetweet, IconRocket, IconScale, IconSearch, IconShoppingBag, IconSkip, IconStack, IconStar, IconStopwatch, IconStore, IconSuitcase, IconSwap, IconTag, IconTagDelete, IconTags, IconThumbsDown, IconThumbsUp, IconTicket, IconTimeReverse, IconToDo, IconToggles, IconTrash, IconTrophy, IconUpload, IconUser, IconUserGroup, IconUserId, IconVibrate, IconViewApps, IconViewList, IconViewListLarge, IconViewThumb, IconVolumeFull, IconVolumeLow, IconVolumeMedium, IconVolumeOff, IconWallet, IconWarning, IconWeb, IconWeight, IconWifi, IconWrong, IconZoomIn, IconZoomOut, createIcon };
|
|
416
|
+
export { IconAlarm, IconAlignCenter, IconAlignJustify, IconAlignLeft, IconAlignRight, IconAnchor, IconArchive, IconArrowDown, IconArrowLeft, IconArrowRight, IconArrowThinDown, IconArrowThinLeft, IconArrowThinRight, IconArrowThinUp, IconArrowUp, IconArticle, IconBackspace, IconBasket, IconBasketball, IconBatteryEmpty, IconBatteryFull, IconBatteryLow, IconBatteryMedium, IconBell, IconBlog, IconBluetooth, IconBold, IconBookmark, IconBookmarks, IconBox, IconBriefcase, IconBrightnessLow, IconBrightnessMax, IconBrightnessMedium, IconBroadcast, IconBrowser, IconBrowserUpload, IconBrush, IconCalendar, IconCamcorder, IconCamera, IconCard, IconCart, IconChecklist, IconCheckmark, IconChevronDown, IconChevronLeft, IconChevronRight, IconChevronUp, IconChevronUpDown, IconClipboard, IconClock, IconClockwise, IconCloud, IconCloudDownload, IconCloudUpload, IconCode, IconContract, IconContract2, IconConversation, IconCopy, IconCrop, IconCross, IconCrosshair, IconCutlery, IconDeviceDesktop, IconDeviceMobile, IconDeviceTablet, IconDirection, IconDisc, IconDocument, IconDocumentDelete, IconDocumentEdit, IconDocumentNew, IconDocumentRemove, IconDot, IconDots2, IconDots3, IconDownload, IconDragHandle, IconDuplicate, IconEnter, IconExit, IconExpand, IconExpand2, IconExperiment, IconExport, IconFeed, IconFlag, IconFlashlight, IconFolder, IconFolderOpen, IconForward, IconGaming, IconGear, IconGraduation, IconGraphBar, IconGraphLine, IconGraphPie, IconHeadset, IconHeart, IconHelp, IconHome, IconHourglass, IconInbox, IconInformation, IconItalic, IconJewel, IconLifting, IconLightbulb, IconLink, IconLinkBroken, IconList, IconLoading, IconLocation, IconLock, IconLockOpen, IconMail, IconMap, IconMediaLoop, IconMediaNext, IconMediaPause, IconMediaPlay, IconMediaPrevious, IconMediaRecord, IconMediaShuffle, IconMediaStop, IconMedical, IconMenu, IconMessage, IconMeter, IconMicrophone, IconMinus, IconMonitor, IconMove, IconMusic, IconNetwork1, IconNetwork2, IconNetwork3, IconNetwork4, IconNetwork5, IconPamphlet, IconPaperclip, IconPencil, IconPhone, IconPhoto, IconPhotoGroup, IconPill, IconPin, IconPlus, IconPower, IconPreview, IconPreviewOff, IconPrint, IconPulse, IconQuestion, IconReply, IconReplyAll, IconReturn, IconRetweet, IconRocket, IconScale, IconSearch, IconShoppingBag, IconSkip, IconStack, IconStar, IconStopwatch, IconStore, IconSuitcase, IconSwap, IconTag, IconTagDelete, IconTags, IconThumbsDown, IconThumbsUp, IconTicket, IconTimeReverse, IconToDo, IconToggles, IconTrash, IconTrophy, IconUpload, IconUser, IconUserGroup, IconUserId, IconVibrate, IconViewApps, IconViewList, IconViewListLarge, IconViewThumb, IconVolumeFull, IconVolumeLow, IconVolumeMedium, IconVolumeOff, IconWallet, IconWarning, IconWeb, IconWeight, IconWifi, IconWrong, IconZoomIn, IconZoomOut, createIcon };
|
|
415
417
|
export type { IconProps };
|
|
@@ -98,7 +98,6 @@ declare const ru: {
|
|
|
98
98
|
readonly page: "Страница {page}";
|
|
99
99
|
readonly summary: "{start}–{end} из {total}";
|
|
100
100
|
readonly pageSizeLabel: "На странице";
|
|
101
|
-
readonly pageSizeAria: "Размер страницы";
|
|
102
101
|
};
|
|
103
102
|
readonly sortable: {
|
|
104
103
|
readonly moveUp: "Переместить вверх";
|
|
@@ -156,7 +155,6 @@ declare const ru: {
|
|
|
156
155
|
};
|
|
157
156
|
};
|
|
158
157
|
readonly numberField: {
|
|
159
|
-
readonly group: "Изменить значение";
|
|
160
158
|
readonly decrement: "Уменьшить";
|
|
161
159
|
readonly increment: "Увеличить";
|
|
162
160
|
};
|
|
@@ -196,9 +194,6 @@ declare const ru: {
|
|
|
196
194
|
readonly steps: {
|
|
197
195
|
readonly ariaLabel: "Шаги";
|
|
198
196
|
};
|
|
199
|
-
readonly segmentedControl: {
|
|
200
|
-
readonly ariaLabel: "Сегментированный контроль";
|
|
201
|
-
};
|
|
202
197
|
readonly bubble: {
|
|
203
198
|
readonly expand: "Ещё";
|
|
204
199
|
readonly collapse: "Свернуть";
|
|
@@ -273,7 +268,7 @@ interface LocaleContextValue {
|
|
|
273
268
|
messages: Messages;
|
|
274
269
|
t: TranslateFn;
|
|
275
270
|
}
|
|
276
|
-
declare function useLocale(): LocaleContextValue;
|
|
271
|
+
declare function useLocale(fallback?: MessageTree): LocaleContextValue;
|
|
277
272
|
declare function useT(): TranslateFn;
|
|
278
273
|
|
|
279
274
|
export { builtInMessages, deepMergeMessages, en, ru, translate, useLocale, useT };
|
package/types/entries/utils.d.ts
CHANGED
|
@@ -121,6 +121,7 @@ declare function startOfDay(date: Date): Date;
|
|
|
121
121
|
declare function addDays(date: Date, days: number): Date;
|
|
122
122
|
declare function isSameDay(a: Date, b: Date): boolean;
|
|
123
123
|
declare function compareDay(a: Date, b: Date): number;
|
|
124
|
+
declare function isExistingLocalDate(year: number, monthIndex: number, day: number): boolean;
|
|
124
125
|
declare function parseLocalDate(value: string): Date | null;
|
|
125
126
|
declare function formatLocalDate(date: Date): string;
|
|
126
127
|
declare function formatHourLabel(hour: number, locale: LocaleCode): string;
|
|
@@ -233,5 +234,5 @@ type Density = 'default' | 'compact';
|
|
|
233
234
|
|
|
234
235
|
type SurfaceVariant = 'primary' | 'tinted' | 'secondary' | 'ghost' | 'plain';
|
|
235
236
|
|
|
236
|
-
export { DAY_SECONDS, DEFAULT_DRAG_BLOCKED_SELECTOR, DEFAULT_PORTAL_SELECTOR, HOUR_SECONDS, MINUTE_SECONDS, OVERLAY_Z_INDEX_DEFAULT, OverlayStackProvider, SPACING_TOKEN_CSS, Slot, WEEK_SECONDS, addDays, addToDate, adjustElementHeight, clamp, clampToViewport, cn, compareDay, composeEventHandlers, composeRefs, computeAnchorPosition, defaultListboxFilterFn, elevateAboveOverlayStack, filterListboxOptions, findEnabledListboxIndex, findListboxOption, flattenResolvedListboxGroups, formatAriaKeyShortcuts, formatBytes, formatHourLabel, formatHourTime, formatInTimeZone, formatKeyboardShortcut, formatLocalDate, formatTimezoneLabel, formatTimezoneOffset, getAnchorSideSpace, getBrowserTimezone, getDurationUnitAndValue, getFormControlState, getListboxDisplayValue, getListboxOptionDomId, getListboxOptionText, getListboxPath, getSupportedTimezones, getTextareaMinHeightPx, getTimezoneOffsetMinutes, getTranslateXFromTransform, getWeekDays, getWeekStart, getZonedParts, isDragBlockedTarget, isEditableTarget, isOutsideFormInteraction, isSameDay, isSameZonedDay, isValidTimeZone, liveStatus, localeToBcp47, matchListboxOption, matchesKeyboardShortcut, mergeSlotProps, mergeStyles, moveArrayItem, moveListboxHighlight, parseKeyboardShortcut, parseLocalDate, plural, pluralEn, pluralRu, renderChildren, resolveListboxGroups, resolveOverlayZIndex, resolvePreferredSide, resolveSpacingCss, resolveStackedOverlayZIndex, secondsToUnit, set, startOfDay, toCssSize, toPath, toggleSet, unitToSeconds, useOverlayStackZIndex };
|
|
237
|
+
export { DAY_SECONDS, DEFAULT_DRAG_BLOCKED_SELECTOR, DEFAULT_PORTAL_SELECTOR, HOUR_SECONDS, MINUTE_SECONDS, OVERLAY_Z_INDEX_DEFAULT, OverlayStackProvider, SPACING_TOKEN_CSS, Slot, WEEK_SECONDS, addDays, addToDate, adjustElementHeight, clamp, clampToViewport, cn, compareDay, composeEventHandlers, composeRefs, computeAnchorPosition, defaultListboxFilterFn, elevateAboveOverlayStack, filterListboxOptions, findEnabledListboxIndex, findListboxOption, flattenResolvedListboxGroups, formatAriaKeyShortcuts, formatBytes, formatHourLabel, formatHourTime, formatInTimeZone, formatKeyboardShortcut, formatLocalDate, formatTimezoneLabel, formatTimezoneOffset, getAnchorSideSpace, getBrowserTimezone, getDurationUnitAndValue, getFormControlState, getListboxDisplayValue, getListboxOptionDomId, getListboxOptionText, getListboxPath, getSupportedTimezones, getTextareaMinHeightPx, getTimezoneOffsetMinutes, getTranslateXFromTransform, getWeekDays, getWeekStart, getZonedParts, isDragBlockedTarget, isEditableTarget, isExistingLocalDate, isOutsideFormInteraction, isSameDay, isSameZonedDay, isValidTimeZone, liveStatus, localeToBcp47, matchListboxOption, matchesKeyboardShortcut, mergeSlotProps, mergeStyles, moveArrayItem, moveListboxHighlight, parseKeyboardShortcut, parseLocalDate, plural, pluralEn, pluralRu, renderChildren, resolveListboxGroups, resolveOverlayZIndex, resolvePreferredSide, resolveSpacingCss, resolveStackedOverlayZIndex, secondsToUnit, set, startOfDay, toCssSize, toPath, toggleSet, unitToSeconds, useOverlayStackZIndex };
|
|
237
238
|
export type { AnchorAlign, AnchorPositionResult, AnchorPositionStyle, AnchorSide, DateAddUnit, Density, DurationUnit, DurationUnitValue, EnrichedThroughChild, EnrichedThroughFn, GroupGap, KeyboardShortcutParts, ListboxFilterFn, ListboxGroup, ListboxOption, OverlayZIndexTier, PluralForms, PossibleRef, PropertyPath, RenderChildrenFn, RenderChildrenOptions, ResolvedListboxGroup, SlotProps, SpacingToken, SpacingValue, SurfaceVariant, WeekStartsOn, WithEnrichedChildren, ZonedDateParts };
|