altum 0.0.4 → 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 +24 -0
- package/README.md +47 -1
- 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/Accordion/Accordion.module.css.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/Avatar/Avatar.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/Bubble/Bubble.module.css.js +1 -1
- package/dist/components/Button/Button.js +1 -1
- package/dist/components/Button/Button.module.css.js +1 -0
- package/dist/components/ButtonGroup/ButtonGroup.js +1 -1
- package/dist/components/ButtonGroup/ButtonGroup.module.css.js +1 -1
- package/dist/components/ButtonIcon/ButtonIcon.js +1 -1
- package/dist/components/ButtonIcon/ButtonIcon.module.css.js +1 -0
- 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.Schedule.module.css.js +1 -1
- package/dist/components/CalendarBoard/CalendarBoard.Schedule.utils.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.context.js +1 -1
- package/dist/components/CalendarBoard/CalendarBoard.module.css.js +1 -1
- package/dist/components/CalendarBoard/CalendarBoard.utils.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/ColorSwatchGroup/ColorSwatchGroup.module.css.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/Grid/Grid.js +1 -1
- package/dist/components/Grid/Grid.utils.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/PasswordField/PasswordField.module.css.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/RelativeTime/RelativeTime.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/Steps/Steps.module.css.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 -0
- package/dist/components/TextareaField/TextareaField.js +1 -1
- package/dist/components/TextareaField/TextareaField.module.css.js +1 -0
- 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/hooks.js +1 -1
- package/dist/entries/icons.js +1 -1
- package/dist/entries/locales.js +1 -0
- package/dist/entries/utils.js +1 -1
- package/dist/hooks/useAutoResize.js +1 -1
- package/dist/hooks/useForm.js +1 -1
- package/dist/hooks/useFormProvider.js +1 -0
- 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/locales/translate.js +1 -1
- package/dist/shared/form/Form.utils.js +1 -0
- package/dist/shared/form/formRules.js +1 -0
- package/dist/shared/form/formValues.js +1 -0
- package/dist/styles/calendarChrome.module.css.js +1 -1
- package/dist/styles/status.module.css.js +1 -1
- package/dist/styles/toggleBox.module.css.js +1 -1
- package/dist/styles/visuallyHidden.module.css.js +1 -0
- package/dist/utils/autoHeight.js +1 -1
- package/dist/utils/date.js +1 -0
- package/dist/utils/duration.js +1 -0
- package/dist/utils/eventTarget.js +1 -0
- package/dist/utils/fieldMessage.js +1 -0
- package/dist/utils/injectCss.js +1 -1
- package/dist/utils/locale.js +1 -0
- package/dist/utils/plural.js +1 -0
- package/dist/utils/timezone.js +1 -0
- package/dist/utils/visitElementTree.js +1 -1
- package/docs/COMPONENTS.md +18 -16
- package/docs/LAYOUT.md +9 -9
- package/docs/THEMING.md +9 -16
- package/package.json +6 -1
- package/types/entries/hooks.d.ts +61 -13
- package/types/entries/icons.d.ts +3 -1
- package/types/entries/locales.d.ts +275 -0
- package/types/entries/utils.d.ts +71 -8
- package/types/index.d.ts +583 -661
- package/dist/base/ButtonBase/ButtonBase.js +0 -1
- package/dist/base/ButtonBase/ButtonBase.module.css.js +0 -1
- 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/base/FieldBase/FieldBase.js +0 -1
- package/dist/base/FieldBase/FieldBase.module.css.js +0 -1
- package/dist/base/TextControl/TextControl.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/hooks/useFieldControl.js +0 -1
- package/dist/hooks/useOverflowEdges.js +0 -1
- package/dist/hooks/useScrollFocusedChildIntoView.js +0 -1
- package/dist/styles/ControlTrack.module.css.js +0 -1
- package/dist/styles/srOnly.module.css.js +0 -1
- package/dist/utils/controlTrack.js +0 -1
- package/dist/utils/fieldPlaceholder.js +0 -1
|
@@ -0,0 +1,275 @@
|
|
|
1
|
+
declare const ru: {
|
|
2
|
+
readonly common: {
|
|
3
|
+
readonly close: "Закрыть";
|
|
4
|
+
readonly clear: "Очистить";
|
|
5
|
+
readonly collapse: "Свернуть";
|
|
6
|
+
};
|
|
7
|
+
readonly calendar: {
|
|
8
|
+
readonly months: readonly ["Январь", "Февраль", "Март", "Апрель", "Май", "Июнь", "Июль", "Август", "Сентябрь", "Октябрь", "Ноябрь", "Декабрь"];
|
|
9
|
+
readonly monthsShort: readonly ["Янв", "Фев", "Мар", "Апр", "Май", "Июн", "Июл", "Авг", "Сен", "Окт", "Ноя", "Дек"];
|
|
10
|
+
readonly weekdaysShort: readonly ["Пн", "Вт", "Ср", "Чт", "Пт", "Сб", "Вс"];
|
|
11
|
+
readonly prevMonth: "Предыдущий месяц";
|
|
12
|
+
readonly nextMonth: "Следующий месяц";
|
|
13
|
+
readonly prevYear: "Предыдущий год";
|
|
14
|
+
readonly nextYear: "Следующий год";
|
|
15
|
+
readonly prevYears: "Предыдущие годы";
|
|
16
|
+
readonly nextYears: "Следующие годы";
|
|
17
|
+
readonly selectYear: "Выбрать год, сейчас {year}";
|
|
18
|
+
readonly selectMonth: "Выбрать месяц, сейчас {month}";
|
|
19
|
+
readonly monthsOfYear: "Месяцы {year}";
|
|
20
|
+
readonly yearsRange: "Годы {start}–{end}";
|
|
21
|
+
};
|
|
22
|
+
readonly calendarBoard: {
|
|
23
|
+
readonly ariaLabel: "Календарная доска";
|
|
24
|
+
readonly prevPeriod: "Предыдущий период";
|
|
25
|
+
readonly nextPeriod: "Следующий период";
|
|
26
|
+
readonly viewSwitchAria: "Представление календаря";
|
|
27
|
+
readonly views: {
|
|
28
|
+
readonly month: "Месяц";
|
|
29
|
+
readonly week: "Неделя";
|
|
30
|
+
readonly day: "День";
|
|
31
|
+
readonly year: "Год";
|
|
32
|
+
};
|
|
33
|
+
readonly scheduleAria: "Расписание";
|
|
34
|
+
readonly allDay: "События на весь день";
|
|
35
|
+
readonly allDayShort: "весь день";
|
|
36
|
+
readonly dayWithTasks: {
|
|
37
|
+
readonly one: "{day} {month}, {count} задача";
|
|
38
|
+
readonly few: "{day} {month}, {count} задачи";
|
|
39
|
+
readonly many: "{day} {month}, {count} задач";
|
|
40
|
+
};
|
|
41
|
+
readonly dayWithoutTasks: "{day} {month}";
|
|
42
|
+
readonly moreTasks: {
|
|
43
|
+
readonly one: "ещё {count} задача";
|
|
44
|
+
readonly few: "ещё {count} задачи";
|
|
45
|
+
readonly many: "ещё {count} задач";
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
readonly dayStrip: {
|
|
49
|
+
readonly ariaLabel: "Навигация по дням";
|
|
50
|
+
readonly prev: "Предыдущий день";
|
|
51
|
+
readonly next: "Следующий день";
|
|
52
|
+
readonly days: "Дни";
|
|
53
|
+
};
|
|
54
|
+
readonly timeField: {
|
|
55
|
+
readonly hours: "Часы";
|
|
56
|
+
readonly minutes: "Минуты";
|
|
57
|
+
};
|
|
58
|
+
readonly dateRangeField: {
|
|
59
|
+
readonly label: "Период";
|
|
60
|
+
readonly start: "С";
|
|
61
|
+
readonly end: "По";
|
|
62
|
+
};
|
|
63
|
+
readonly select: {
|
|
64
|
+
readonly removeItem: "Удалить {label}";
|
|
65
|
+
};
|
|
66
|
+
readonly customSelect: {
|
|
67
|
+
readonly filterPlaceholder: "Поиск...";
|
|
68
|
+
readonly noOptions: "Ничего не найдено";
|
|
69
|
+
};
|
|
70
|
+
readonly listbox: {
|
|
71
|
+
readonly noOptions: "Ничего не найдено";
|
|
72
|
+
};
|
|
73
|
+
readonly suggestField: {
|
|
74
|
+
readonly noOptions: "Ничего не найдено";
|
|
75
|
+
};
|
|
76
|
+
readonly sheet: {
|
|
77
|
+
readonly ariaLabel: "Панель";
|
|
78
|
+
};
|
|
79
|
+
readonly modal: {
|
|
80
|
+
readonly ariaLabel: "Диалог";
|
|
81
|
+
};
|
|
82
|
+
readonly confirmDialog: {
|
|
83
|
+
readonly confirm: "Подтвердить";
|
|
84
|
+
readonly cancel: "Отмена";
|
|
85
|
+
};
|
|
86
|
+
readonly table: {
|
|
87
|
+
readonly expandColumn: "Развернуть";
|
|
88
|
+
readonly selectAll: "Выбрать все строки";
|
|
89
|
+
readonly selectRow: "Выбрать строку {id}";
|
|
90
|
+
readonly resizeColumn: "Изменить ширину: {header}";
|
|
91
|
+
readonly emptyTitle: "Нет данных";
|
|
92
|
+
readonly rowActions: "Действия строки";
|
|
93
|
+
};
|
|
94
|
+
readonly pagination: {
|
|
95
|
+
readonly ariaLabel: "Пагинация";
|
|
96
|
+
readonly prev: "Предыдущая страница";
|
|
97
|
+
readonly next: "Следующая страница";
|
|
98
|
+
readonly page: "Страница {page}";
|
|
99
|
+
readonly summary: "{start}–{end} из {total}";
|
|
100
|
+
readonly pageSizeLabel: "На странице";
|
|
101
|
+
};
|
|
102
|
+
readonly sortable: {
|
|
103
|
+
readonly moveUp: "Переместить вверх";
|
|
104
|
+
readonly moveDown: "Переместить вниз";
|
|
105
|
+
readonly moved: "Позиция {position} из {total}: элемент перемещён";
|
|
106
|
+
readonly dragItem: "Перетащить элемент";
|
|
107
|
+
};
|
|
108
|
+
readonly upload: {
|
|
109
|
+
readonly dropHint: "Перетащите файлы сюда или";
|
|
110
|
+
readonly choose: "выберите";
|
|
111
|
+
readonly selectedCount: {
|
|
112
|
+
readonly one: "Выбран {count} файл";
|
|
113
|
+
readonly few: "Выбрано {count} файла";
|
|
114
|
+
readonly many: "Выбрано {count} файлов";
|
|
115
|
+
};
|
|
116
|
+
readonly release: "Отпустите файл для загрузки";
|
|
117
|
+
};
|
|
118
|
+
readonly imageCrop: {
|
|
119
|
+
readonly title: "Обрезка изображения";
|
|
120
|
+
readonly confirm: "Применить";
|
|
121
|
+
readonly cancel: "Отмена";
|
|
122
|
+
readonly choose: "Выберите изображение";
|
|
123
|
+
readonly hint: "Перетащите изображение или измените масштаб за углы";
|
|
124
|
+
readonly loadError: "Не удалось загрузить изображение";
|
|
125
|
+
readonly cropError: "Не удалось обрезать изображение";
|
|
126
|
+
readonly exportError: "Не удалось экспортировать изображение";
|
|
127
|
+
readonly scaleHandle: "Масштаб {corner}";
|
|
128
|
+
};
|
|
129
|
+
readonly imageGallery: {
|
|
130
|
+
readonly empty: "Нет изображений";
|
|
131
|
+
readonly prev: "Предыдущее изображение";
|
|
132
|
+
readonly next: "Следующее изображение";
|
|
133
|
+
readonly imageN: "Изображение {index}";
|
|
134
|
+
};
|
|
135
|
+
readonly imageLightbox: {
|
|
136
|
+
readonly close: "Закрыть галерею";
|
|
137
|
+
readonly ariaLabel: "Галерея изображений";
|
|
138
|
+
};
|
|
139
|
+
readonly sidebar: {
|
|
140
|
+
readonly ariaLabel: "Навигация сайдбара";
|
|
141
|
+
readonly openMenu: "Открыть меню";
|
|
142
|
+
readonly expand: "Развернуть";
|
|
143
|
+
readonly collapse: "Свернуть";
|
|
144
|
+
readonly expandSidebar: "Развернуть сайдбар";
|
|
145
|
+
readonly collapseSidebar: "Свернуть сайдбар";
|
|
146
|
+
};
|
|
147
|
+
readonly password: {
|
|
148
|
+
readonly reveal: "Показать пароль";
|
|
149
|
+
readonly hide: "Скрыть пароль";
|
|
150
|
+
readonly strength: {
|
|
151
|
+
readonly weak: "Слабый";
|
|
152
|
+
readonly fair: "Средний";
|
|
153
|
+
readonly good: "Хороший";
|
|
154
|
+
readonly strong: "Надёжный";
|
|
155
|
+
};
|
|
156
|
+
};
|
|
157
|
+
readonly numberField: {
|
|
158
|
+
readonly decrement: "Уменьшить";
|
|
159
|
+
readonly increment: "Увеличить";
|
|
160
|
+
};
|
|
161
|
+
readonly pinInput: {
|
|
162
|
+
readonly ariaLabel: "Код подтверждения";
|
|
163
|
+
readonly digit: "Цифра {index}";
|
|
164
|
+
};
|
|
165
|
+
readonly searchField: {
|
|
166
|
+
readonly label: "Поиск";
|
|
167
|
+
};
|
|
168
|
+
readonly slider: {
|
|
169
|
+
readonly ariaLabel: "Ползунок";
|
|
170
|
+
readonly from: "От";
|
|
171
|
+
readonly to: "До";
|
|
172
|
+
};
|
|
173
|
+
readonly rating: {
|
|
174
|
+
readonly ariaLabel: "Рейтинг";
|
|
175
|
+
};
|
|
176
|
+
readonly actionList: {
|
|
177
|
+
readonly filterPlaceholder: "Фильтр…";
|
|
178
|
+
readonly empty: "Ничего не найдено";
|
|
179
|
+
readonly ariaLabel: "Список действий";
|
|
180
|
+
};
|
|
181
|
+
readonly commandPalette: {
|
|
182
|
+
readonly placeholder: "Поиск команд…";
|
|
183
|
+
readonly title: "Командная палитра";
|
|
184
|
+
};
|
|
185
|
+
readonly pullToRefresh: {
|
|
186
|
+
readonly pull: "Потяните для обновления";
|
|
187
|
+
readonly release: "Отпустите";
|
|
188
|
+
readonly refreshing: "Обновление…";
|
|
189
|
+
};
|
|
190
|
+
readonly spinner: {
|
|
191
|
+
readonly typing: "Печатает";
|
|
192
|
+
readonly loading: "Загрузка";
|
|
193
|
+
};
|
|
194
|
+
readonly steps: {
|
|
195
|
+
readonly ariaLabel: "Шаги";
|
|
196
|
+
};
|
|
197
|
+
readonly bubble: {
|
|
198
|
+
readonly expand: "Ещё";
|
|
199
|
+
readonly collapse: "Свернуть";
|
|
200
|
+
readonly reactions: "Реакции";
|
|
201
|
+
};
|
|
202
|
+
readonly chip: {
|
|
203
|
+
readonly remove: "Удалить";
|
|
204
|
+
readonly groupChips: "Чипы";
|
|
205
|
+
readonly groupTags: "Теги";
|
|
206
|
+
};
|
|
207
|
+
readonly fileList: {
|
|
208
|
+
readonly remove: "Удалить";
|
|
209
|
+
readonly retry: "Повторить";
|
|
210
|
+
};
|
|
211
|
+
readonly virtualList: {
|
|
212
|
+
readonly ariaLabel: "Список";
|
|
213
|
+
};
|
|
214
|
+
readonly skipLink: {
|
|
215
|
+
readonly label: "Перейти к содержимому";
|
|
216
|
+
};
|
|
217
|
+
readonly overflow: {
|
|
218
|
+
readonly title: "Действия";
|
|
219
|
+
readonly ariaLabel: "Действия";
|
|
220
|
+
readonly more: "Ещё действия";
|
|
221
|
+
readonly groupTitle: "Ещё";
|
|
222
|
+
readonly groupAriaLabel: "Группа";
|
|
223
|
+
readonly groupMore: "Показать ещё";
|
|
224
|
+
};
|
|
225
|
+
readonly buttonGroup: {
|
|
226
|
+
readonly ariaLabel: "Группа кнопок";
|
|
227
|
+
};
|
|
228
|
+
readonly menu: {
|
|
229
|
+
readonly mobileTitle: "Меню";
|
|
230
|
+
readonly ariaLabel: "Меню";
|
|
231
|
+
readonly contextAriaLabel: "Контекстное меню";
|
|
232
|
+
};
|
|
233
|
+
};
|
|
234
|
+
|
|
235
|
+
type DeepStringify<T> = T extends string ? string : T extends readonly (infer U)[] ? DeepStringify<U>[] : T extends object ? {
|
|
236
|
+
[K in keyof T]: DeepStringify<T[K]>;
|
|
237
|
+
} : T;
|
|
238
|
+
type Messages = DeepStringify<typeof ru>;
|
|
239
|
+
type DeepPartialMessages = {
|
|
240
|
+
[K in keyof Messages]?: Messages[K] extends (infer U)[] ? U[] : Messages[K] extends object ? {
|
|
241
|
+
[P in keyof Messages[K]]?: DeepPartialMessagesValue<Messages[K][P]>;
|
|
242
|
+
} : Messages[K];
|
|
243
|
+
};
|
|
244
|
+
type DeepPartialMessagesValue<T> = T extends (infer U)[] ? U[] : T extends object ? {
|
|
245
|
+
[P in keyof T]?: DeepPartialMessagesValue<T[P]>;
|
|
246
|
+
} : T;
|
|
247
|
+
type LocaleCode = 'ru' | 'en';
|
|
248
|
+
interface PluralMessage {
|
|
249
|
+
one: string;
|
|
250
|
+
few: string;
|
|
251
|
+
many: string;
|
|
252
|
+
}
|
|
253
|
+
interface MessageTree {
|
|
254
|
+
[key: string]: string | PluralMessage | readonly string[] | MessageTree;
|
|
255
|
+
}
|
|
256
|
+
type TranslationParams = Record<string, string | number>;
|
|
257
|
+
|
|
258
|
+
declare const en: Messages;
|
|
259
|
+
|
|
260
|
+
declare const builtInMessages: Record<LocaleCode, Messages>;
|
|
261
|
+
|
|
262
|
+
declare function deepMergeMessages(base: Messages, override?: DeepPartialMessages): Messages;
|
|
263
|
+
declare function translate(messages: MessageTree, key: string, params?: TranslationParams, locale?: LocaleCode): string;
|
|
264
|
+
type TranslateFn = (key: string, params?: TranslationParams) => string;
|
|
265
|
+
|
|
266
|
+
interface LocaleContextValue {
|
|
267
|
+
locale: LocaleCode;
|
|
268
|
+
messages: Messages;
|
|
269
|
+
t: TranslateFn;
|
|
270
|
+
}
|
|
271
|
+
declare function useLocale(fallback?: MessageTree): LocaleContextValue;
|
|
272
|
+
declare function useT(): TranslateFn;
|
|
273
|
+
|
|
274
|
+
export { builtInMessages, deepMergeMessages, en, ru, translate, useLocale, useT };
|
|
275
|
+
export type { DeepPartialMessages, LocaleCode, LocaleContextValue, MessageTree, Messages, PluralMessage, TranslateFn, TranslationParams };
|
package/types/entries/utils.d.ts
CHANGED
|
@@ -82,6 +82,75 @@ declare function getFormControlState(options: {
|
|
|
82
82
|
isInteractive: boolean;
|
|
83
83
|
};
|
|
84
84
|
|
|
85
|
+
type PropertyPath = string | readonly (string | number)[];
|
|
86
|
+
declare function toPath(path: PropertyPath): string[];
|
|
87
|
+
declare function set<T>(source: T, path: PropertyPath, value: unknown): T;
|
|
88
|
+
|
|
89
|
+
declare const DEFAULT_DRAG_BLOCKED_SELECTOR: string;
|
|
90
|
+
declare const DEFAULT_PORTAL_SELECTOR: string;
|
|
91
|
+
declare function isEditableTarget(target: EventTarget | null): boolean;
|
|
92
|
+
declare function isDragBlockedTarget(target: EventTarget | null, selector: string): boolean;
|
|
93
|
+
declare function isOutsideFormInteraction(target: EventTarget | null, container: HTMLElement | null, portalSelector: string, classNamePart?: string): boolean;
|
|
94
|
+
|
|
95
|
+
type LocaleCode = 'ru' | 'en';
|
|
96
|
+
|
|
97
|
+
interface ZonedDateParts {
|
|
98
|
+
year: number;
|
|
99
|
+
month: number;
|
|
100
|
+
day: number;
|
|
101
|
+
hour: number;
|
|
102
|
+
minute: number;
|
|
103
|
+
second: number;
|
|
104
|
+
}
|
|
105
|
+
declare function getBrowserTimezone(): string;
|
|
106
|
+
declare function getSupportedTimezones(): string[];
|
|
107
|
+
declare function isValidTimeZone(timeZone: string): boolean;
|
|
108
|
+
declare function getZonedParts(date: Date, timeZone: string): ZonedDateParts | null;
|
|
109
|
+
declare function getTimezoneOffsetMinutes(timeZone: string, date?: Date): number | null;
|
|
110
|
+
declare function isSameZonedDay(a: Date, b: Date, timeZone: string): boolean;
|
|
111
|
+
declare function formatInTimeZone(date: Date, timeZone: string, locale: LocaleCode, options?: Intl.DateTimeFormatOptions): string;
|
|
112
|
+
declare function formatTimezoneOffset(timeZone: string, date?: Date): string;
|
|
113
|
+
declare function formatTimezoneLabel(timeZone: string): string;
|
|
114
|
+
|
|
115
|
+
type WeekStartsOn = 0 | 1;
|
|
116
|
+
type DateAddUnit = 'minute' | 'hour' | 'day' | 'week' | 'month' | 'year';
|
|
117
|
+
declare function getWeekStart(date: Date, weekStartsOn?: WeekStartsOn): Date;
|
|
118
|
+
declare function getWeekDays(anchor: Date, weekStartsOn?: WeekStartsOn): Date[];
|
|
119
|
+
declare function addToDate(date: Date, amount: number, unit: DateAddUnit): Date;
|
|
120
|
+
declare function startOfDay(date: Date): Date;
|
|
121
|
+
declare function addDays(date: Date, days: number): Date;
|
|
122
|
+
declare function isSameDay(a: Date, b: Date): boolean;
|
|
123
|
+
declare function compareDay(a: Date, b: Date): number;
|
|
124
|
+
declare function isExistingLocalDate(year: number, monthIndex: number, day: number): boolean;
|
|
125
|
+
declare function parseLocalDate(value: string): Date | null;
|
|
126
|
+
declare function formatLocalDate(date: Date): string;
|
|
127
|
+
declare function formatHourLabel(hour: number, locale: LocaleCode): string;
|
|
128
|
+
declare function formatHourTime(hour: number): string;
|
|
129
|
+
|
|
130
|
+
declare const MINUTE_SECONDS = 60;
|
|
131
|
+
declare const HOUR_SECONDS: number;
|
|
132
|
+
declare const DAY_SECONDS: number;
|
|
133
|
+
declare const WEEK_SECONDS: number;
|
|
134
|
+
type DurationUnit = 'minute' | 'hour' | 'day' | 'week';
|
|
135
|
+
interface DurationUnitValue {
|
|
136
|
+
unit: DurationUnit;
|
|
137
|
+
value: number;
|
|
138
|
+
}
|
|
139
|
+
declare function secondsToUnit(seconds: number, unit: DurationUnit): number;
|
|
140
|
+
declare function unitToSeconds(value: number, unit: DurationUnit): number;
|
|
141
|
+
declare function getDurationUnitAndValue(seconds: number): DurationUnitValue;
|
|
142
|
+
|
|
143
|
+
declare function localeToBcp47(locale: LocaleCode): string;
|
|
144
|
+
|
|
145
|
+
interface PluralForms {
|
|
146
|
+
one: string;
|
|
147
|
+
few: string;
|
|
148
|
+
many: string;
|
|
149
|
+
}
|
|
150
|
+
declare function pluralRu(count: number, one: string, few: string, many: string): string;
|
|
151
|
+
declare function pluralEn(count: number, one: string, other: string): string;
|
|
152
|
+
declare function plural(locale: LocaleCode, count: number, forms: PluralForms): string;
|
|
153
|
+
|
|
85
154
|
type KeyboardShortcutParts = {
|
|
86
155
|
key: string;
|
|
87
156
|
mod: boolean;
|
|
@@ -118,12 +187,6 @@ declare function liveStatus(hidden: AriaHidden, label?: string): {
|
|
|
118
187
|
'aria-label'?: string;
|
|
119
188
|
};
|
|
120
189
|
|
|
121
|
-
type ControlTrackVariant = 'primary' | 'tinted' | 'secondary' | 'ghost' | 'plain' | 'link';
|
|
122
|
-
|
|
123
|
-
declare function controlTrackClassName(variant: ControlTrackVariant, options?: {
|
|
124
|
-
readOnly?: boolean;
|
|
125
|
-
}): string;
|
|
126
|
-
|
|
127
190
|
declare function mergeStyles(internal?: CSSProperties | null, external?: CSSProperties | null): CSSProperties | undefined;
|
|
128
191
|
|
|
129
192
|
type AnyProps = Record<string, unknown>;
|
|
@@ -171,5 +234,5 @@ type Density = 'default' | 'compact';
|
|
|
171
234
|
|
|
172
235
|
type SurfaceVariant = 'primary' | 'tinted' | 'secondary' | 'ghost' | 'plain';
|
|
173
236
|
|
|
174
|
-
export { OVERLAY_Z_INDEX_DEFAULT, OverlayStackProvider, SPACING_TOKEN_CSS, Slot, adjustElementHeight, clamp, clampToViewport, cn, composeEventHandlers, composeRefs, computeAnchorPosition,
|
|
175
|
-
export type { AnchorAlign, AnchorPositionResult, AnchorPositionStyle, AnchorSide,
|
|
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 };
|
|
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 };
|