altum 0.0.3 → 0.0.5
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 +10 -0
- package/README.md +47 -1
- package/dist/base/DialogBase/DialogBase.js +1 -1
- package/dist/base/Flex/Flex.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.module.css.js +1 -1
- package/dist/components/ActionList/ActionList.js +1 -1
- package/dist/components/Alert/Alert.js +1 -1
- package/dist/components/Alert/Alert.module.css.js +1 -1
- package/dist/components/Attachment/Attachment.module.css.js +1 -1
- package/dist/components/Avatar/Avatar.module.css.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/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 +1 -1
- 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/Chip/Chip.js +1 -1
- package/dist/components/Chip/Chip.module.css.js +1 -1
- package/dist/components/ColorSwatchGroup/ColorSwatchGroup.module.css.js +1 -1
- package/dist/components/ConfirmDialog/ConfirmDialog.js +1 -1
- package/dist/components/CustomSelect/CustomSelect.Filter.js +1 -1
- package/dist/components/CustomSelect/CustomSelect.Shell.js +1 -1
- package/dist/components/CustomSelect/CustomSelect.Shell.module.css.js +1 -1
- package/dist/components/DateField/DateField.js +1 -0
- package/dist/components/DateRangeField/DateRangeField.js +1 -0
- package/dist/components/DateRangeField/DateRangeField.module.css.js +1 -0
- package/dist/components/DayStripCalendar/DayStripCalendar.js +1 -1
- package/dist/components/Dropdown/Dropdown.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/Item/Item.js +1 -1
- package/dist/components/Item/Item.module.css.js +1 -1
- package/dist/components/LocaleProvider/LocaleProvider.js +1 -1
- package/dist/components/MaskedField/MaskedField.js +1 -1
- package/dist/components/Notification/Notification.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/Overflow/OverflowActionsMode.js +1 -1
- package/dist/components/Overflow/OverflowMeasure.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/RelativeTime/RelativeTime.js +1 -1
- package/dist/components/SearchField/SearchField.js +1 -1
- package/dist/components/Select/Select.js +1 -1
- package/dist/components/Steps/Steps.module.css.js +1 -1
- package/dist/components/SuggestField/SuggestField.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 -0
- package/dist/components/TimeField/TimeField.module.css.js +1 -0
- package/dist/components/WheelTimePicker/WheelTimePicker.js +1 -0
- package/dist/components/WheelTimePicker/WheelTimePicker.module.css.js +1 -0
- package/dist/entries/hooks.js +1 -1
- package/dist/entries/locales.js +1 -0
- package/dist/entries/utils.js +1 -1
- package/dist/hooks/useForm.js +1 -1
- package/dist/hooks/useFormProvider.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/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/toggleBox.module.css.js +1 -1
- 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/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/docs/COMPONENTS.md +11 -10
- package/docs/LAYOUT.md +3 -3
- package/docs/THEMING.md +4 -4
- package/package.json +6 -1
- package/types/entries/hooks.d.ts +61 -13
- package/types/entries/locales.d.ts +280 -0
- package/types/entries/utils.d.ts +70 -8
- package/types/index.d.ts +89 -60
- package/dist/base/ButtonBase/ButtonBase.js +0 -1
- package/dist/base/ButtonBase/ButtonBase.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/DatePicker/DatePicker.js +0 -1
- package/dist/components/DateRangePicker/DateRangePicker.js +0 -1
- package/dist/components/DateRangePicker/DateRangePicker.module.css.js +0 -1
- package/dist/components/TimePicker/TimePicker.js +0 -1
- package/dist/components/TimePicker/TimePicker.module.css.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/utils/controlTrack.js +0 -1
- package/dist/utils/fieldPlaceholder.js +0 -1
- /package/dist/components/{DatePicker/DatePicker.utils.js → DateField/DateField.utils.js} +0 -0
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import{ru as e}from"./locales/ru.js";import{en as p}from"./locales/en.js";import{Accordion as f}from"./components/Accordion/Accordion.js";import{ActionList as a}from"./components/ActionList/ActionList.js";import{ActionSheetTrigger as l}from"./components/ActionSheetTrigger/ActionSheetTrigger.js";import{Alert as d}from"./components/Alert/Alert.js";import{AspectRatio as u}from"./components/AspectRatio/AspectRatio.js";import{Attachment as S}from"./components/Attachment/Attachment.js";import{Avatar as g,AvatarGroup as
|
|
1
|
+
"use client";import{ru as e}from"./locales/ru.js";import{en as p}from"./locales/en.js";import{Accordion as f}from"./components/Accordion/Accordion.js";import{ActionList as a}from"./components/ActionList/ActionList.js";import{ActionSheetTrigger as l}from"./components/ActionSheetTrigger/ActionSheetTrigger.js";import{Alert as d}from"./components/Alert/Alert.js";import{AspectRatio as u}from"./components/AspectRatio/AspectRatio.js";import{Attachment as S}from"./components/Attachment/Attachment.js";import{Avatar as g,AvatarGroup as T}from"./components/Avatar/Avatar.js";import{Backdrop as L}from"./components/Backdrop/Backdrop.js";import{Badge as B}from"./components/Badge/Badge.js";import{BarChart as b}from"./components/BarChart/BarChart.js";import{Box as A}from"./components/Box/Box.js";import{Bubble as G}from"./components/Bubble/Bubble.js";import{Button as R}from"./components/Button/Button.js";import{ButtonGroup as w}from"./components/ButtonGroup/ButtonGroup.js";import{ButtonIcon as M}from"./components/ButtonIcon/ButtonIcon.js";import{Calendar as H}from"./components/Calendar/Calendar.js";import{CalendarBoard as O}from"./components/CalendarBoard/CalendarBoard.js";import{Card as V}from"./components/Card/Card.js";import{Checkbox as W,CheckboxGroup as Z}from"./components/Checkbox/Checkbox.js";import{Chip as j,ChipGroup as q}from"./components/Chip/Chip.js";import{Collapse as J}from"./components/Collapse/Collapse.js";import{ColorSwatchGroup as X}from"./components/ColorSwatchGroup/ColorSwatchGroup.js";import{CommandPalette as $}from"./components/CommandPalette/CommandPalette.js";import{ConfirmDialog as ro}from"./components/ConfirmDialog/ConfirmDialog.js";import{Container as to,Page as po}from"./components/Container/Container.js";import{ControlRow as fo}from"./components/Layout/ControlRow.js";import{CustomSelect as ao}from"./components/CustomSelect/CustomSelect.js";import{DateField as lo}from"./components/DateField/DateField.js";import{DateRangeField as so}from"./components/DateRangeField/DateRangeField.js";import{DayStripCalendar as co}from"./components/DayStripCalendar/DayStripCalendar.js";import{DescriptionList as Co}from"./components/DescriptionList/DescriptionList.js";import{DonutChart as To}from"./components/DonutChart/DonutChart.js";import{Dropdown as Lo}from"./components/Dropdown/Dropdown.js";import{EmptyState as Bo}from"./components/EmptyState/EmptyState.js";import{FieldBaseButton as bo,FieldBaseIcon as yo,TextField as Ao}from"./components/TextField/TextField.js";import{FieldLabel as Go}from"./components/FieldLabel/FieldLabel.js";import{Fieldset as Ro}from"./components/Fieldset/Fieldset.js";import{FileList as wo}from"./components/FileList/FileList.js";import{FormMessage as Mo}from"./components/FormMessage/FormMessage.js";import{GRID_BREAKPOINTS as Ho}from"./components/Grid/Grid.utils.js";import{Grid as Oo,GridItem as Eo}from"./components/Grid/Grid.js";import{ImageCrop as Uo}from"./components/ImageCrop/ImageCrop.js";import{ImageGallery as Zo}from"./components/ImageGallery/ImageGallery.js";import{ImageLightbox as jo}from"./components/ImageLightbox/ImageLightbox.js";import{Inline as zo}from"./components/Layout/Inline.js";import{Item as Qo}from"./components/Item/Item.js";import{Kbd as Yo,KbdGroup as $o}from"./components/Kbd/Kbd.js";import{Layout as rr,LayoutContent as er,LayoutFooter as tr,LayoutHeader as pr,LayoutRoot as mr}from"./components/Layout/Layout.js";import{LayoutItem as xr}from"./components/Layout/LayoutItem.js";import{LineChart as ir}from"./components/LineChart/LineChart.js";import{Link as nr}from"./components/Link/Link.js";import{Listbox as sr}from"./components/Listbox/Listbox.js";import{LocaleProvider as cr}from"./components/LocaleProvider/LocaleProvider.js";import{Marker as Cr}from"./components/Marker/Marker.js";import{MaskedField as Tr}from"./components/MaskedField/MaskedField.js";import{Media as Lr}from"./components/Media/Media.js";import{Menu as Br}from"./components/Menu/Menu.js";import{Modal as br}from"./components/Modal/Modal.js";import{Notification as Ar}from"./components/Notification/Notification.js";import{NotificationProvider as Gr,dismiss as Ir,dismissAll as Rr,notify as vr,useNotify as wr}from"./components/Notification/toast.js";import{NumberField as Mr}from"./components/NumberField/NumberField.js";import{Overflow as Hr}from"./components/Overflow/Overflow.js";import{Overlay as Or}from"./components/Overlay/Overlay.js";import{Pagination as Vr}from"./components/Pagination/Pagination.js";import{PasswordField as Wr,getPasswordStrength as Zr}from"./components/PasswordField/PasswordField.js";import{PinInput as jr}from"./components/PinInput/PinInput.js";import{Popover as zr}from"./components/Popover/Popover.js";import{Progress as Qr,ProgressCircle as Xr}from"./components/Progress/Progress.js";import{PullToRefresh as $r}from"./components/PullToRefresh/PullToRefresh.js";import{Radio as re,RadioGroup as ee}from"./components/Radio/Radio.js";import{Rating as pe}from"./components/Rating/Rating.js";import{RelativeTime as fe,formatRelativeTime as xe}from"./components/RelativeTime/RelativeTime.js";import{SafeArea as ie}from"./components/SafeArea/SafeArea.js";import{ScrollArea as ne}from"./components/ScrollArea/ScrollArea.js";import{SearchField as se}from"./components/SearchField/SearchField.js";import{SegmentedControl as ce}from"./components/SegmentedControl/SegmentedControl.js";import{Select as Ce}from"./components/Select/Select.js";import{SelectionGroup as Te}from"./components/SelectionGroup/SelectionGroup.js";import{Separator as Le}from"./components/Separator/Separator.js";import{Sheet as Be}from"./components/Sheet/Sheet.js";import{Sidebar as be}from"./components/Sidebar/Sidebar.js";import{Skeleton as Ae}from"./components/Skeleton/Skeleton.js";import{SkipLink as Ge}from"./components/SkipLink/SkipLink.js";import{Slider as Re}from"./components/Slider/Slider.js";import{SortableList as we}from"./components/SortableList/SortableList.js";import{Spinner as Me}from"./components/Spinner/Spinner.js";import{Split as He}from"./components/Layout/Split.js";import{Stack as Oe}from"./components/Layout/Stack.js";import{StatBadge as Ve}from"./components/StatBadge/StatBadge.js";import{Steps as We}from"./components/Steps/Steps.js";import{SuggestField as _e}from"./components/SuggestField/SuggestField.js";import{SwipeToAction as qe}from"./components/SwipeToAction/SwipeToAction.js";import{Switch as Je}from"./components/Switch/Switch.js";import{Table as Xe}from"./components/Table/Table.js";import{Tabs as $e}from"./components/Tabs/Tabs.js";import{Text as rt}from"./components/Text/Text.js";import{TextareaField as tt}from"./components/TextareaField/TextareaField.js";import{ThemeProvider as mt,useTheme as ft}from"./components/ThemeProvider/ThemeProvider.js";import{TimeField as at}from"./components/TimeField/TimeField.js";import{Timeline as lt}from"./components/Timeline/Timeline.js";import{Title as dt}from"./components/Title/Title.js";import{Tooltip as ut}from"./components/Tooltip/Tooltip.js";import{UploadZone as St}from"./components/UploadZone/UploadZone.js";import{VirtualList as gt}from"./components/VirtualList/VirtualList.js";import{VisuallyHidden as ht}from"./components/VisuallyHidden/VisuallyHidden.js";import{WheelTimePicker as Ft}from"./components/WheelTimePicker/WheelTimePicker.js";import{useCalendarBoardContext as Pt,useCalendarBoardTaskHover as bt}from"./components/CalendarBoard/CalendarBoard.context.js";import{useLocale as At,useT as kt}from"./locales/localeContext.js";export{f as Accordion,a as ActionList,l as ActionSheetTrigger,d as Alert,u as AspectRatio,S as Attachment,g as Avatar,T as AvatarGroup,L as Backdrop,B as Badge,b as BarChart,A as Box,G as Bubble,R as Button,w as ButtonGroup,M as ButtonIcon,H as Calendar,O as CalendarBoard,V as Card,W as Checkbox,Z as CheckboxGroup,j as Chip,q as ChipGroup,J as Collapse,X as ColorSwatchGroup,$ as CommandPalette,ro as ConfirmDialog,to as Container,fo as ControlRow,ao as CustomSelect,lo as DateField,so as DateRangeField,co as DayStripCalendar,Co as DescriptionList,To as DonutChart,Lo as Dropdown,Bo as EmptyState,bo as FieldBaseButton,yo as FieldBaseIcon,Go as FieldLabel,Ro as Fieldset,wo as FileList,Mo as FormMessage,Ho as GRID_BREAKPOINTS,Oo as Grid,Eo as GridItem,Uo as ImageCrop,Zo as ImageGallery,jo as ImageLightbox,zo as Inline,Qo as Item,Yo as Kbd,$o as KbdGroup,rr as Layout,er as LayoutContent,tr as LayoutFooter,pr as LayoutHeader,xr as LayoutItem,mr as LayoutRoot,ir as LineChart,nr as Link,sr as Listbox,cr as LocaleProvider,Cr as Marker,Tr as MaskedField,Lr as Media,Br as Menu,br as Modal,Ar as Notification,Gr as NotificationProvider,Mr as NumberField,Hr as Overflow,Or as Overlay,po as Page,Vr as Pagination,Wr as PasswordField,jr as PinInput,zr as Popover,Qr as Progress,Xr as ProgressCircle,$r as PullToRefresh,re as Radio,ee as RadioGroup,pe as Rating,fe as RelativeTime,ie as SafeArea,ne as ScrollArea,se as SearchField,ce as SegmentedControl,Ce as Select,Te as SelectionGroup,Le as Separator,Be as Sheet,be as Sidebar,Ae as Skeleton,Ge as SkipLink,Re as Slider,we as SortableList,Me as Spinner,He as Split,Oe as Stack,Ve as StatBadge,We as Steps,_e as SuggestField,qe as SwipeToAction,Je as Switch,Xe as Table,$e as Tabs,rt as Text,Ao as TextField,tt as TextareaField,mt as ThemeProvider,at as TimeField,lt as Timeline,dt as Title,ut as Tooltip,St as UploadZone,gt as VirtualList,ht as VisuallyHidden,Ft as WheelTimePicker,Ir as dismiss,Rr as dismissAll,p as en,xe as formatRelativeTime,Zr as getPasswordStrength,vr as notify,e as ru,Pt as useCalendarBoardContext,bt as useCalendarBoardTaskHover,At as useLocale,wr as useNotify,kt as useT,ft as useTheme};
|
package/dist/locales/en.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const e={common:{close:"Close",clear:"Clear",collapse:"Collapse"},calendar:{months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],weekdaysShort:["Mo","Tu","We","Th","Fr","Sa","Su"],prevMonth:"Previous month",nextMonth:"Next month",prevYear:"Previous year",nextYear:"Next year",prevYears:"Previous years",nextYears:"Next years",selectYear:"Select year, currently {year}",selectMonth:"Select month, currently {month}",monthsOfYear:"Months {year}",yearsRange:"Years {start}\u2013{end}"},calendarBoard:{ariaLabel:"Calendar board",prevPeriod:"Previous period",nextPeriod:"Next period",viewSwitchAria:"Calendar view",views:{month:"Month",week:"Week",day:"Day",year:"Year"},scheduleAria:"Schedule",allDay:"All-day events",allDayShort:"all day",dayWithTasks:"{day} {month}, tasks: {count}",dayWithoutTasks:"{day} {month}",moreTasks:"{count} more"},dayStrip:{ariaLabel:"Day navigation",prev:"Previous day",next:"Next day",days:"Days"},
|
|
1
|
+
const e={common:{close:"Close",clear:"Clear",collapse:"Collapse"},calendar:{months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],weekdaysShort:["Mo","Tu","We","Th","Fr","Sa","Su"],prevMonth:"Previous month",nextMonth:"Next month",prevYear:"Previous year",nextYear:"Next year",prevYears:"Previous years",nextYears:"Next years",selectYear:"Select year, currently {year}",selectMonth:"Select month, currently {month}",monthsOfYear:"Months {year}",yearsRange:"Years {start}\u2013{end}"},calendarBoard:{ariaLabel:"Calendar board",prevPeriod:"Previous period",nextPeriod:"Next period",viewSwitchAria:"Calendar view",views:{month:"Month",week:"Week",day:"Day",year:"Year"},scheduleAria:"Schedule",allDay:"All-day events",allDayShort:"all day",dayWithTasks:{one:"{day} {month}, {count} task",few:"{day} {month}, {count} tasks",many:"{day} {month}, {count} tasks"},dayWithoutTasks:"{day} {month}",moreTasks:{one:"{count} more task",few:"{count} more tasks",many:"{count} more tasks"}},dayStrip:{ariaLabel:"Day navigation",prev:"Previous day",next:"Next day",days:"Days"},timeField:{hours:"Hours",minutes:"Minutes"},dateRangeField:{label:"Period",start:"From",end:"To"},select:{removeItem:"Remove {label}"},customSelect:{filterPlaceholder:"Search...",noOptions:"No results found"},listbox:{noOptions:"No results found"},suggestField:{noOptions:"No results found"},sheet:{ariaLabel:"Sheet"},modal:{ariaLabel:"Dialog"},confirmDialog:{confirm:"Confirm",cancel:"Cancel"},table:{expandColumn:"Expand",selectAll:"Select all rows",selectRow:"Select row {id}",resizeColumn:"Resize {header}",emptyTitle:"No data",rowActions:"Row actions"},pagination:{ariaLabel:"Pagination",prev:"Previous page",next:"Next page",page:"Page {page}",summary:"{start}\u2013{end} of {total}",pageSizeLabel:"Per page",pageSizeAria:"Page size"},sortable:{moveUp:"Move up",moveDown:"Move down",moved:"Position {position} of {total}: item moved",dragItem:"Drag item"},upload:{dropHint:"Drop files here or",choose:"browse",selectedCount:{one:"{count} file selected",few:"{count} files selected",many:"{count} files selected"},release:"Release to upload"},imageCrop:{title:"Crop image",confirm:"Apply",cancel:"Cancel",choose:"Choose an image",hint:"Drag the image or scale from the corners",loadError:"Failed to load image",cropError:"Failed to crop image",exportError:"Failed to export image",scaleHandle:"Scale {corner}"},imageGallery:{empty:"No images",prev:"Previous image",next:"Next image",imageN:"Image {index}"},imageLightbox:{close:"Close gallery",ariaLabel:"Image gallery"},sidebar:{ariaLabel:"Sidebar navigation",openMenu:"Open menu",expand:"Expand",collapse:"Collapse",expandSidebar:"Expand sidebar",collapseSidebar:"Collapse sidebar"},password:{reveal:"Show password",hide:"Hide password",strength:{weak:"Weak",fair:"Fair",good:"Good",strong:"Strong"}},numberField:{group:"Change value",decrement:"Decrease",increment:"Increase"},pinInput:{ariaLabel:"Confirmation code",digit:"Digit {index}"},searchField:{label:"Search"},slider:{ariaLabel:"Slider",from:"From",to:"To"},rating:{ariaLabel:"Rating"},actionList:{filterPlaceholder:"Filter\u2026",empty:"No results found",ariaLabel:"Action list"},commandPalette:{placeholder:"Search commands\u2026",title:"Command palette"},pullToRefresh:{pull:"Pull to refresh",release:"Release",refreshing:"Refreshing\u2026"},spinner:{typing:"Typing",loading:"Loading"},steps:{ariaLabel:"Progress steps"},segmentedControl:{ariaLabel:"Segmented control"},bubble:{expand:"More",collapse:"Collapse",reactions:"Reactions"},chip:{remove:"Remove",groupChips:"Chips",groupTags:"Tags"},fileList:{remove:"Remove",retry:"Retry"},virtualList:{ariaLabel:"List"},skipLink:{label:"Skip to content"},overflow:{title:"Actions",ariaLabel:"Actions",more:"More actions",groupTitle:"More",groupAriaLabel:"Group",groupMore:"Show more"},buttonGroup:{ariaLabel:"Button group"},menu:{mobileTitle:"Menu",ariaLabel:"Menu",contextAriaLabel:"Context menu"}};export{e as en};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{useContext as a,createContext as c}from"react";import{ru as l}from"./ru.js";import{translate as s}from"./translate.js";const t=l,e={locale:"ru",messages:t,t:(n,u)=>s(t,n,u)},o=c(null);function r(){return a(o)??e}function m(){return r().t}export{o as LocaleContext,e as defaultLocaleContext,r as useLocale,m as useT};
|
|
1
|
+
import{useContext as a,createContext as c}from"react";import{ru as l}from"./ru.js";import{translate as s}from"./translate.js";const t=l,e={locale:"ru",messages:t,t:(n,u)=>s(t,n,u,"ru")},o=c(null);function r(){return a(o)??e}function m(){return r().t}export{o as LocaleContext,e as defaultLocaleContext,r as useLocale,m as useT};
|
package/dist/locales/ru.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const u={common:{close:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C",clear:"\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C",collapse:"\u0421\u0432\u0435\u0440\u043D\u0443\u0442\u044C"},calendar:{months:["\u042F\u043D\u0432\u0430\u0440\u044C","\u0424\u0435\u0432\u0440\u0430\u043B\u044C","\u041C\u0430\u0440\u0442","\u0410\u043F\u0440\u0435\u043B\u044C","\u041C\u0430\u0439","\u0418\u044E\u043D\u044C","\u0418\u044E\u043B\u044C","\u0410\u0432\u0433\u0443\u0441\u0442","\u0421\u0435\u043D\u0442\u044F\u0431\u0440\u044C","\u041E\u043A\u0442\u044F\u0431\u0440\u044C","\u041D\u043E\u044F\u0431\u0440\u044C","\u0414\u0435\u043A\u0430\u0431\u0440\u044C"],monthsShort:["\u042F\u043D\u0432","\u0424\u0435\u0432","\u041C\u0430\u0440","\u0410\u043F\u0440","\u041C\u0430\u0439","\u0418\u044E\u043D","\u0418\u044E\u043B","\u0410\u0432\u0433","\u0421\u0435\u043D","\u041E\u043A\u0442","\u041D\u043E\u044F","\u0414\u0435\u043A"],weekdaysShort:["\u041F\u043D","\u0412\u0442","\u0421\u0440","\u0427\u0442","\u041F\u0442","\u0421\u0431","\u0412\u0441"],prevMonth:"\u041F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0438\u0439 \u043C\u0435\u0441\u044F\u0446",nextMonth:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0438\u0439 \u043C\u0435\u0441\u044F\u0446",prevYear:"\u041F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0438\u0439 \u0433\u043E\u0434",nextYear:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0438\u0439 \u0433\u043E\u0434",prevYears:"\u041F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0438\u0435 \u0433\u043E\u0434\u044B",nextYears:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0438\u0435 \u0433\u043E\u0434\u044B",selectYear:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u0433\u043E\u0434, \u0441\u0435\u0439\u0447\u0430\u0441 {year}",selectMonth:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u043C\u0435\u0441\u044F\u0446, \u0441\u0435\u0439\u0447\u0430\u0441 {month}",monthsOfYear:"\u041C\u0435\u0441\u044F\u0446\u044B {year}",yearsRange:"\u0413\u043E\u0434\u044B {start}\u2013{end}"},calendarBoard:{ariaLabel:"\u041A\u0430\u043B\u0435\u043D\u0434\u0430\u0440\u043D\u0430\u044F \u0434\u043E\u0441\u043A\u0430",prevPeriod:"\u041F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0438\u0439 \u043F\u0435\u0440\u0438\u043E\u0434",nextPeriod:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0438\u0439 \u043F\u0435\u0440\u0438\u043E\u0434",viewSwitchAria:"\u041F\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043B\u0435\u043D\u0438\u0435 \u043A\u0430\u043B\u0435\u043D\u0434\u0430\u0440\u044F",views:{month:"\u041C\u0435\u0441\u044F\u0446",week:"\u041D\u0435\u0434\u0435\u043B\u044F",day:"\u0414\u0435\u043D\u044C",year:"\u0413\u043E\u0434"},scheduleAria:"\u0420\u0430\u0441\u043F\u0438\u0441\u0430\u043D\u0438\u0435",allDay:"\u0421\u043E\u0431\u044B\u0442\u0438\u044F \u043D\u0430 \u0432\u0435\u0441\u044C \u0434\u0435\u043D\u044C",allDayShort:"\u0432\u0435\u0441\u044C \u0434\u0435\u043D\u044C",dayWithTasks:"{day} {month}, \u0437\u0430\u0434\u0430\u0447: {count}",dayWithoutTasks:"{day} {month}",moreTasks:"\u0435\u0449\u0451 {count}"},dayStrip:{ariaLabel:"\u041D\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u044F \u043F\u043E \u0434\u043D\u044F\u043C",prev:"\u041F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0438\u0439 \u0434\u0435\u043D\u044C",next:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0438\u0439 \u0434\u0435\u043D\u044C",days:"\u0414\u043D\u0438"},timePicker:{hours:"\u0427\u0430\u0441\u044B",minutes:"\u041C\u0438\u043D\u0443\u0442\u044B"},dateRangePicker:{label:"\u041F\u0435\u0440\u0438\u043E\u0434",start:"\u0421",end:"\u041F\u043E"},select:{removeItem:"\u0423\u0434\u0430\u043B\u0438\u0442\u044C {label}"},customSelect:{filterPlaceholder:"\u041F\u043E\u0438\u0441\u043A...",noOptions:"\u041D\u0438\u0447\u0435\u0433\u043E \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D\u043E"},listbox:{noOptions:"\u041D\u0438\u0447\u0435\u0433\u043E \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D\u043E"},suggestField:{noOptions:"\u041D\u0438\u0447\u0435\u0433\u043E \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D\u043E"},sheet:{ariaLabel:"\u041F\u0430\u043D\u0435\u043B\u044C"},modal:{ariaLabel:"\u0414\u0438\u0430\u043B\u043E\u0433"},confirmDialog:{confirm:"\u041F\u043E\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u044C",cancel:"\u041E\u0442\u043C\u0435\u043D\u0430"},table:{expandColumn:"\u0420\u0430\u0437\u0432\u0435\u0440\u043D\u0443\u0442\u044C",selectAll:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u0432\u0441\u0435 \u0441\u0442\u0440\u043E\u043A\u0438",selectRow:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u0441\u0442\u0440\u043E\u043A\u0443 {id}",resizeColumn:"\u0418\u0437\u043C\u0435\u043D\u0438\u0442\u044C \u0448\u0438\u0440\u0438\u043D\u0443: {header}",emptyTitle:"\u041D\u0435\u0442 \u0434\u0430\u043D\u043D\u044B\u0445",rowActions:"\u0414\u0435\u0439\u0441\u0442\u0432\u0438\u044F \u0441\u0442\u0440\u043E\u043A\u0438"},pagination:{ariaLabel:"\u041F\u0430\u0433\u0438\u043D\u0430\u0446\u0438\u044F",prev:"\u041F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0430\u044F \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u0430",next:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0430\u044F \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u0430",page:"\u0421\u0442\u0440\u0430\u043D\u0438\u0446\u0430 {page}",summary:"{start}\u2013{end} \u0438\u0437 {total}",pageSizeLabel:"\u041D\u0430 \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u0435",pageSizeAria:"\u0420\u0430\u0437\u043C\u0435\u0440 \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u044B"},sortable:{moveUp:"\u041F\u0435\u0440\u0435\u043C\u0435\u0441\u0442\u0438\u0442\u044C \u0432\u0432\u0435\u0440\u0445",moveDown:"\u041F\u0435\u0440\u0435\u043C\u0435\u0441\u0442\u0438\u0442\u044C \u0432\u043D\u0438\u0437",moved:"\u041F\u043E\u0437\u0438\u0446\u0438\u044F {position} \u0438\u0437 {total}: \u044D\u043B\u0435\u043C\u0435\u043D\u0442 \u043F\u0435\u0440\u0435\u043C\u0435\u0449\u0451\u043D",dragItem:"\u041F\u0435\u0440\u0435\u0442\u0430\u0449\u0438\u0442\u044C \u044D\u043B\u0435\u043C\u0435\u043D\u0442"},upload:{dropHint:"\u041F\u0435\u0440\u0435\u0442\u0430\u0449\u0438\u0442\u0435 \u0444\u0430\u0439\u043B\u044B \u0441\u044E\u0434\u0430 \u0438\u043B\u0438",choose:"\u0432\u044B\u0431\u0435\u0440\u0438\u0442\u0435",selectedCount:"\u0412\u044B\u0431\u0440\u0430\u043D\u043E \u0444\u0430\u0439\u043B\u043E\u0432: {count}",release:"\u041E\u0442\u043F\u0443\u0441\u0442\u0438\u0442\u0435 \u0444\u0430\u0439\u043B \u0434\u043B\u044F \u0437\u0430\u0433\u0440\u0443\u0437\u043A\u0438"},imageCrop:{title:"\u041E\u0431\u0440\u0435\u0437\u043A\u0430 \u0438\u0437\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u044F",confirm:"\u041F\u0440\u0438\u043C\u0435\u043D\u0438\u0442\u044C",cancel:"\u041E\u0442\u043C\u0435\u043D\u0430",choose:"\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0438\u0437\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435",hint:"\u041F\u0435\u0440\u0435\u0442\u0430\u0449\u0438\u0442\u0435 \u0440\u0430\u043C\u043A\u0443 \u0438\u043B\u0438 \u0438\u0437\u043C\u0435\u043D\u0438\u0442\u0435 \u043C\u0430\u0441\u0448\u0442\u0430\u0431 \u0437\u0430 \u0443\u0433\u043B\u044B",loadError:"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u0438\u0437\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435",cropError:"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u043E\u0431\u0440\u0435\u0437\u0430\u0442\u044C \u0438\u0437\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435",exportError:"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u044D\u043A\u0441\u043F\u043E\u0440\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0438\u0437\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435",scaleHandle:"\u041C\u0430\u0441\u0448\u0442\u0430\u0431 {corner}"},imageGallery:{empty:"\u041D\u0435\u0442 \u0438\u0437\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0439",prev:"\u041F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u0435 \u0438\u0437\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435",next:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0438\u0437\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435",imageN:"\u0418\u0437\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435 {index}"},imageLightbox:{close:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u0433\u0430\u043B\u0435\u0440\u0435\u044E",ariaLabel:"\u0413\u0430\u043B\u0435\u0440\u0435\u044F \u0438\u0437\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0439"},sidebar:{ariaLabel:"\u041D\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u044F \u0441\u0430\u0439\u0434\u0431\u0430\u0440\u0430",openMenu:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043C\u0435\u043D\u044E",expand:"\u0420\u0430\u0437\u0432\u0435\u0440\u043D\u0443\u0442\u044C",collapse:"\u0421\u0432\u0435\u0440\u043D\u0443\u0442\u044C",expandSidebar:"\u0420\u0430\u0437\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0441\u0430\u0439\u0434\u0431\u0430\u0440",collapseSidebar:"\u0421\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0441\u0430\u0439\u0434\u0431\u0430\u0440"},password:{reveal:"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043F\u0430\u0440\u043E\u043B\u044C",hide:"\u0421\u043A\u0440\u044B\u0442\u044C \u043F\u0430\u0440\u043E\u043B\u044C",strength:{weak:"\u0421\u043B\u0430\u0431\u044B\u0439",fair:"\u0421\u0440\u0435\u0434\u043D\u0438\u0439",good:"\u0425\u043E\u0440\u043E\u0448\u0438\u0439",strong:"\u041D\u0430\u0434\u0451\u0436\u043D\u044B\u0439"}},numberField:{group:"\u0418\u0437\u043C\u0435\u043D\u0438\u0442\u044C \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435",decrement:"\u0423\u043C\u0435\u043D\u044C\u0448\u0438\u0442\u044C",increment:"\u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C"},pinInput:{ariaLabel:"\u041A\u043E\u0434 \u043F\u043E\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043D\u0438\u044F",digit:"\u0426\u0438\u0444\u0440\u0430 {index}"},searchField:{label:"\u041F\u043E\u0438\u0441\u043A"},slider:{ariaLabel:"\u041F\u043E\u043B\u0437\u0443\u043D\u043E\u043A",from:"\u041E\u0442",to:"\u0414\u043E"},rating:{ariaLabel:"\u0420\u0435\u0439\u0442\u0438\u043D\u0433"},actionList:{filterPlaceholder:"\u0424\u0438\u043B\u044C\u0442\u0440\u2026",empty:"\u041D\u0438\u0447\u0435\u0433\u043E \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D\u043E",ariaLabel:"\u0421\u043F\u0438\u0441\u043E\u043A \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439"},commandPalette:{placeholder:"\u041F\u043E\u0438\u0441\u043A \u043A\u043E\u043C\u0430\u043D\u0434\u2026",title:"\u041A\u043E\u043C\u0430\u043D\u0434\u043D\u0430\u044F \u043F\u0430\u043B\u0438\u0442\u0440\u0430"},pullToRefresh:{pull:"\u041F\u043E\u0442\u044F\u043D\u0438\u0442\u0435 \u0434\u043B\u044F \u043E\u0431\u043D\u043E\u0432\u043B\u0435\u043D\u0438\u044F",release:"\u041E\u0442\u043F\u0443\u0441\u0442\u0438\u0442\u0435",refreshing:"\u041E\u0431\u043D\u043E\u0432\u043B\u0435\u043D\u0438\u0435\u2026"},spinner:{typing:"\u041F\u0435\u0447\u0430\u0442\u0430\u0435\u0442",loading:"\u0417\u0430\u0433\u0440\u0443\u0437\u043A\u0430"},steps:{ariaLabel:"\u0428\u0430\u0433\u0438"},segmentedControl:{ariaLabel:"\u0421\u0435\u0433\u043C\u0435\u043D\u0442\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0439 \u043A\u043E\u043D\u0442\u0440\u043E\u043B\u044C"},bubble:{expand:"\u0415\u0449\u0451",collapse:"\u0421\u0432\u0435\u0440\u043D\u0443\u0442\u044C",reactions:"\u0420\u0435\u0430\u043A\u0446\u0438\u0438"},chip:{remove:"\u0423\u0434\u0430\u043B\u0438\u0442\u044C",groupChips:"\u0427\u0438\u043F\u044B",groupTags:"\u0422\u0435\u0433\u0438"},fileList:{remove:"\u0423\u0434\u0430\u043B\u0438\u0442\u044C",retry:"\u041F\u043E\u0432\u0442\u043E\u0440\u0438\u0442\u044C"},virtualList:{ariaLabel:"\u0421\u043F\u0438\u0441\u043E\u043A"},skipLink:{label:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043E\u0434\u0435\u0440\u0436\u0438\u043C\u043E\u043C\u0443"},overflow:{title:"\u0414\u0435\u0439\u0441\u0442\u0432\u0438\u044F",ariaLabel:"\u0414\u0435\u0439\u0441\u0442\u0432\u0438\u044F",more:"\u0415\u0449\u0451 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044F",groupTitle:"\u0415\u0449\u0451",groupAriaLabel:"\u0413\u0440\u0443\u043F\u043F\u0430",groupMore:"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u0435\u0449\u0451"},buttonGroup:{ariaLabel:"\u0413\u0440\u0443\u043F\u043F\u0430 \u043A\u043D\u043E\u043F\u043E\u043A"},menu:{mobileTitle:"\u041C\u0435\u043D\u044E",ariaLabel:"\u041C\u0435\u043D\u044E",contextAriaLabel:"\u041A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E"}};export{u as ru};
|
|
1
|
+
const u={common:{close:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C",clear:"\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C",collapse:"\u0421\u0432\u0435\u0440\u043D\u0443\u0442\u044C"},calendar:{months:["\u042F\u043D\u0432\u0430\u0440\u044C","\u0424\u0435\u0432\u0440\u0430\u043B\u044C","\u041C\u0430\u0440\u0442","\u0410\u043F\u0440\u0435\u043B\u044C","\u041C\u0430\u0439","\u0418\u044E\u043D\u044C","\u0418\u044E\u043B\u044C","\u0410\u0432\u0433\u0443\u0441\u0442","\u0421\u0435\u043D\u0442\u044F\u0431\u0440\u044C","\u041E\u043A\u0442\u044F\u0431\u0440\u044C","\u041D\u043E\u044F\u0431\u0440\u044C","\u0414\u0435\u043A\u0430\u0431\u0440\u044C"],monthsShort:["\u042F\u043D\u0432","\u0424\u0435\u0432","\u041C\u0430\u0440","\u0410\u043F\u0440","\u041C\u0430\u0439","\u0418\u044E\u043D","\u0418\u044E\u043B","\u0410\u0432\u0433","\u0421\u0435\u043D","\u041E\u043A\u0442","\u041D\u043E\u044F","\u0414\u0435\u043A"],weekdaysShort:["\u041F\u043D","\u0412\u0442","\u0421\u0440","\u0427\u0442","\u041F\u0442","\u0421\u0431","\u0412\u0441"],prevMonth:"\u041F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0438\u0439 \u043C\u0435\u0441\u044F\u0446",nextMonth:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0438\u0439 \u043C\u0435\u0441\u044F\u0446",prevYear:"\u041F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0438\u0439 \u0433\u043E\u0434",nextYear:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0438\u0439 \u0433\u043E\u0434",prevYears:"\u041F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0438\u0435 \u0433\u043E\u0434\u044B",nextYears:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0438\u0435 \u0433\u043E\u0434\u044B",selectYear:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u0433\u043E\u0434, \u0441\u0435\u0439\u0447\u0430\u0441 {year}",selectMonth:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u043C\u0435\u0441\u044F\u0446, \u0441\u0435\u0439\u0447\u0430\u0441 {month}",monthsOfYear:"\u041C\u0435\u0441\u044F\u0446\u044B {year}",yearsRange:"\u0413\u043E\u0434\u044B {start}\u2013{end}"},calendarBoard:{ariaLabel:"\u041A\u0430\u043B\u0435\u043D\u0434\u0430\u0440\u043D\u0430\u044F \u0434\u043E\u0441\u043A\u0430",prevPeriod:"\u041F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0438\u0439 \u043F\u0435\u0440\u0438\u043E\u0434",nextPeriod:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0438\u0439 \u043F\u0435\u0440\u0438\u043E\u0434",viewSwitchAria:"\u041F\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043B\u0435\u043D\u0438\u0435 \u043A\u0430\u043B\u0435\u043D\u0434\u0430\u0440\u044F",views:{month:"\u041C\u0435\u0441\u044F\u0446",week:"\u041D\u0435\u0434\u0435\u043B\u044F",day:"\u0414\u0435\u043D\u044C",year:"\u0413\u043E\u0434"},scheduleAria:"\u0420\u0430\u0441\u043F\u0438\u0441\u0430\u043D\u0438\u0435",allDay:"\u0421\u043E\u0431\u044B\u0442\u0438\u044F \u043D\u0430 \u0432\u0435\u0441\u044C \u0434\u0435\u043D\u044C",allDayShort:"\u0432\u0435\u0441\u044C \u0434\u0435\u043D\u044C",dayWithTasks:{one:"{day} {month}, {count} \u0437\u0430\u0434\u0430\u0447\u0430",few:"{day} {month}, {count} \u0437\u0430\u0434\u0430\u0447\u0438",many:"{day} {month}, {count} \u0437\u0430\u0434\u0430\u0447"},dayWithoutTasks:"{day} {month}",moreTasks:{one:"\u0435\u0449\u0451 {count} \u0437\u0430\u0434\u0430\u0447\u0430",few:"\u0435\u0449\u0451 {count} \u0437\u0430\u0434\u0430\u0447\u0438",many:"\u0435\u0449\u0451 {count} \u0437\u0430\u0434\u0430\u0447"}},dayStrip:{ariaLabel:"\u041D\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u044F \u043F\u043E \u0434\u043D\u044F\u043C",prev:"\u041F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0438\u0439 \u0434\u0435\u043D\u044C",next:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0438\u0439 \u0434\u0435\u043D\u044C",days:"\u0414\u043D\u0438"},timeField:{hours:"\u0427\u0430\u0441\u044B",minutes:"\u041C\u0438\u043D\u0443\u0442\u044B"},dateRangeField:{label:"\u041F\u0435\u0440\u0438\u043E\u0434",start:"\u0421",end:"\u041F\u043E"},select:{removeItem:"\u0423\u0434\u0430\u043B\u0438\u0442\u044C {label}"},customSelect:{filterPlaceholder:"\u041F\u043E\u0438\u0441\u043A...",noOptions:"\u041D\u0438\u0447\u0435\u0433\u043E \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D\u043E"},listbox:{noOptions:"\u041D\u0438\u0447\u0435\u0433\u043E \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D\u043E"},suggestField:{noOptions:"\u041D\u0438\u0447\u0435\u0433\u043E \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D\u043E"},sheet:{ariaLabel:"\u041F\u0430\u043D\u0435\u043B\u044C"},modal:{ariaLabel:"\u0414\u0438\u0430\u043B\u043E\u0433"},confirmDialog:{confirm:"\u041F\u043E\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u044C",cancel:"\u041E\u0442\u043C\u0435\u043D\u0430"},table:{expandColumn:"\u0420\u0430\u0437\u0432\u0435\u0440\u043D\u0443\u0442\u044C",selectAll:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u0432\u0441\u0435 \u0441\u0442\u0440\u043E\u043A\u0438",selectRow:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u0441\u0442\u0440\u043E\u043A\u0443 {id}",resizeColumn:"\u0418\u0437\u043C\u0435\u043D\u0438\u0442\u044C \u0448\u0438\u0440\u0438\u043D\u0443: {header}",emptyTitle:"\u041D\u0435\u0442 \u0434\u0430\u043D\u043D\u044B\u0445",rowActions:"\u0414\u0435\u0439\u0441\u0442\u0432\u0438\u044F \u0441\u0442\u0440\u043E\u043A\u0438"},pagination:{ariaLabel:"\u041F\u0430\u0433\u0438\u043D\u0430\u0446\u0438\u044F",prev:"\u041F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0430\u044F \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u0430",next:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0430\u044F \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u0430",page:"\u0421\u0442\u0440\u0430\u043D\u0438\u0446\u0430 {page}",summary:"{start}\u2013{end} \u0438\u0437 {total}",pageSizeLabel:"\u041D\u0430 \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u0435",pageSizeAria:"\u0420\u0430\u0437\u043C\u0435\u0440 \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u044B"},sortable:{moveUp:"\u041F\u0435\u0440\u0435\u043C\u0435\u0441\u0442\u0438\u0442\u044C \u0432\u0432\u0435\u0440\u0445",moveDown:"\u041F\u0435\u0440\u0435\u043C\u0435\u0441\u0442\u0438\u0442\u044C \u0432\u043D\u0438\u0437",moved:"\u041F\u043E\u0437\u0438\u0446\u0438\u044F {position} \u0438\u0437 {total}: \u044D\u043B\u0435\u043C\u0435\u043D\u0442 \u043F\u0435\u0440\u0435\u043C\u0435\u0449\u0451\u043D",dragItem:"\u041F\u0435\u0440\u0435\u0442\u0430\u0449\u0438\u0442\u044C \u044D\u043B\u0435\u043C\u0435\u043D\u0442"},upload:{dropHint:"\u041F\u0435\u0440\u0435\u0442\u0430\u0449\u0438\u0442\u0435 \u0444\u0430\u0439\u043B\u044B \u0441\u044E\u0434\u0430 \u0438\u043B\u0438",choose:"\u0432\u044B\u0431\u0435\u0440\u0438\u0442\u0435",selectedCount:{one:"\u0412\u044B\u0431\u0440\u0430\u043D {count} \u0444\u0430\u0439\u043B",few:"\u0412\u044B\u0431\u0440\u0430\u043D\u043E {count} \u0444\u0430\u0439\u043B\u0430",many:"\u0412\u044B\u0431\u0440\u0430\u043D\u043E {count} \u0444\u0430\u0439\u043B\u043E\u0432"},release:"\u041E\u0442\u043F\u0443\u0441\u0442\u0438\u0442\u0435 \u0444\u0430\u0439\u043B \u0434\u043B\u044F \u0437\u0430\u0433\u0440\u0443\u0437\u043A\u0438"},imageCrop:{title:"\u041E\u0431\u0440\u0435\u0437\u043A\u0430 \u0438\u0437\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u044F",confirm:"\u041F\u0440\u0438\u043C\u0435\u043D\u0438\u0442\u044C",cancel:"\u041E\u0442\u043C\u0435\u043D\u0430",choose:"\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0438\u0437\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435",hint:"\u041F\u0435\u0440\u0435\u0442\u0430\u0449\u0438\u0442\u0435 \u0438\u0437\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435 \u0438\u043B\u0438 \u0438\u0437\u043C\u0435\u043D\u0438\u0442\u0435 \u043C\u0430\u0441\u0448\u0442\u0430\u0431 \u0437\u0430 \u0443\u0433\u043B\u044B",loadError:"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u0438\u0437\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435",cropError:"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u043E\u0431\u0440\u0435\u0437\u0430\u0442\u044C \u0438\u0437\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435",exportError:"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u044D\u043A\u0441\u043F\u043E\u0440\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0438\u0437\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435",scaleHandle:"\u041C\u0430\u0441\u0448\u0442\u0430\u0431 {corner}"},imageGallery:{empty:"\u041D\u0435\u0442 \u0438\u0437\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0439",prev:"\u041F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u0435 \u0438\u0437\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435",next:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0438\u0437\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435",imageN:"\u0418\u0437\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435 {index}"},imageLightbox:{close:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u0433\u0430\u043B\u0435\u0440\u0435\u044E",ariaLabel:"\u0413\u0430\u043B\u0435\u0440\u0435\u044F \u0438\u0437\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0439"},sidebar:{ariaLabel:"\u041D\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u044F \u0441\u0430\u0439\u0434\u0431\u0430\u0440\u0430",openMenu:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043C\u0435\u043D\u044E",expand:"\u0420\u0430\u0437\u0432\u0435\u0440\u043D\u0443\u0442\u044C",collapse:"\u0421\u0432\u0435\u0440\u043D\u0443\u0442\u044C",expandSidebar:"\u0420\u0430\u0437\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0441\u0430\u0439\u0434\u0431\u0430\u0440",collapseSidebar:"\u0421\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0441\u0430\u0439\u0434\u0431\u0430\u0440"},password:{reveal:"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043F\u0430\u0440\u043E\u043B\u044C",hide:"\u0421\u043A\u0440\u044B\u0442\u044C \u043F\u0430\u0440\u043E\u043B\u044C",strength:{weak:"\u0421\u043B\u0430\u0431\u044B\u0439",fair:"\u0421\u0440\u0435\u0434\u043D\u0438\u0439",good:"\u0425\u043E\u0440\u043E\u0448\u0438\u0439",strong:"\u041D\u0430\u0434\u0451\u0436\u043D\u044B\u0439"}},numberField:{group:"\u0418\u0437\u043C\u0435\u043D\u0438\u0442\u044C \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435",decrement:"\u0423\u043C\u0435\u043D\u044C\u0448\u0438\u0442\u044C",increment:"\u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C"},pinInput:{ariaLabel:"\u041A\u043E\u0434 \u043F\u043E\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043D\u0438\u044F",digit:"\u0426\u0438\u0444\u0440\u0430 {index}"},searchField:{label:"\u041F\u043E\u0438\u0441\u043A"},slider:{ariaLabel:"\u041F\u043E\u043B\u0437\u0443\u043D\u043E\u043A",from:"\u041E\u0442",to:"\u0414\u043E"},rating:{ariaLabel:"\u0420\u0435\u0439\u0442\u0438\u043D\u0433"},actionList:{filterPlaceholder:"\u0424\u0438\u043B\u044C\u0442\u0440\u2026",empty:"\u041D\u0438\u0447\u0435\u0433\u043E \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D\u043E",ariaLabel:"\u0421\u043F\u0438\u0441\u043E\u043A \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439"},commandPalette:{placeholder:"\u041F\u043E\u0438\u0441\u043A \u043A\u043E\u043C\u0430\u043D\u0434\u2026",title:"\u041A\u043E\u043C\u0430\u043D\u0434\u043D\u0430\u044F \u043F\u0430\u043B\u0438\u0442\u0440\u0430"},pullToRefresh:{pull:"\u041F\u043E\u0442\u044F\u043D\u0438\u0442\u0435 \u0434\u043B\u044F \u043E\u0431\u043D\u043E\u0432\u043B\u0435\u043D\u0438\u044F",release:"\u041E\u0442\u043F\u0443\u0441\u0442\u0438\u0442\u0435",refreshing:"\u041E\u0431\u043D\u043E\u0432\u043B\u0435\u043D\u0438\u0435\u2026"},spinner:{typing:"\u041F\u0435\u0447\u0430\u0442\u0430\u0435\u0442",loading:"\u0417\u0430\u0433\u0440\u0443\u0437\u043A\u0430"},steps:{ariaLabel:"\u0428\u0430\u0433\u0438"},segmentedControl:{ariaLabel:"\u0421\u0435\u0433\u043C\u0435\u043D\u0442\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0439 \u043A\u043E\u043D\u0442\u0440\u043E\u043B\u044C"},bubble:{expand:"\u0415\u0449\u0451",collapse:"\u0421\u0432\u0435\u0440\u043D\u0443\u0442\u044C",reactions:"\u0420\u0435\u0430\u043A\u0446\u0438\u0438"},chip:{remove:"\u0423\u0434\u0430\u043B\u0438\u0442\u044C",groupChips:"\u0427\u0438\u043F\u044B",groupTags:"\u0422\u0435\u0433\u0438"},fileList:{remove:"\u0423\u0434\u0430\u043B\u0438\u0442\u044C",retry:"\u041F\u043E\u0432\u0442\u043E\u0440\u0438\u0442\u044C"},virtualList:{ariaLabel:"\u0421\u043F\u0438\u0441\u043E\u043A"},skipLink:{label:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043E\u0434\u0435\u0440\u0436\u0438\u043C\u043E\u043C\u0443"},overflow:{title:"\u0414\u0435\u0439\u0441\u0442\u0432\u0438\u044F",ariaLabel:"\u0414\u0435\u0439\u0441\u0442\u0432\u0438\u044F",more:"\u0415\u0449\u0451 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044F",groupTitle:"\u0415\u0449\u0451",groupAriaLabel:"\u0413\u0440\u0443\u043F\u043F\u0430",groupMore:"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u0435\u0449\u0451"},buttonGroup:{ariaLabel:"\u0413\u0440\u0443\u043F\u043F\u0430 \u043A\u043D\u043E\u043F\u043E\u043A"},menu:{mobileTitle:"\u041C\u0435\u043D\u044E",ariaLabel:"\u041C\u0435\u043D\u044E",contextAriaLabel:"\u041A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E"}};export{u as ru};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function u(r){return r!==null&&typeof r=="object"&&!Array.isArray(r)}function
|
|
1
|
+
import{plural as c}from"../utils/plural.js";function u(r){return r!==null&&typeof r=="object"&&!Array.isArray(r)}function i(r,t){if(!u(t))return t;if(!u(r))return{...t};const e={...r};for(const n of Object.keys(t)){const o=t[n];o!==void 0&&(e[n]=i(r[n],o))}return e}function l(r,t){return t?i(r,t):r}function p(r,t){const e=t.split(".");let n=r;for(const o of e){if(n==null||typeof n!="object")return;n=n[o]}return n}const f=["one","few","many"];function y(r){return u(r)?Object.keys(r).length===f.length&&f.every(t=>typeof r[t]=="string"):!1}function a(r){const t=r?.count;if(typeof t=="number"&&Number.isFinite(t))return t;if(typeof t=="string"&&t.trim()!==""){const e=Number(t);if(Number.isFinite(e))return e}return 0}function s(r,t){return t?r.replace(/\{(\w+)\}/g,(e,n)=>{const o=t[n];return o==null?`{${n}}`:String(o)}):r}function g(r,t,e,n="ru"){const o=p(r,t);return y(o)?s(c(n,a(e),o),e):typeof o!="string"?t:s(o,e)}export{l as deepMergeMessages,g as translate};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const p=new Set(["__proto__","constructor","prototype"]),y=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;function i(r){if(typeof r!="string")return r.map(e=>String(e));const t=[];return r.replace(y,(e,o,n,u)=>{const c=n?String(u).replace(/\\(\\)?/g,"$1"):o||e;return t.push(c),e}),t}function s(r){return/^(?:0|[1-9]\d*)$/.test(r)&&Number(r)<=Number.MAX_SAFE_INTEGER}function f(r){if(r===null||typeof r!="object"||Array.isArray(r))return!1;const t=Object.getPrototypeOf(r);return t===Object.prototype||t===null}function l(r,t){return Array.isArray(r)?r.slice():f(r)?{...r}:s(t)?[]:{}}function A(r,t){if(Array.isArray(r)||f(r))return r[t]}function g(r,t,e){if(Array.isArray(r)&&s(t)){r[Number(t)]=e;return}r[t]=e}function a(r,t,e,o){const n=t[e];if(n===void 0)return r;const u=l(r,n),c=e===t.length-1?o:a(A(r,n),t,e+1,o);return g(u,n,c),u}function b(r,t,e){const o=i(t);return o.length===0||o.some(n=>p.has(n))?r:a(r,o,0,e)}export{b as set,i as toPath};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function n(t){return t==null||t===""}function o(t){return r=>n(r)?t:void 0}function f(t,r){return e=>{if(!n(e))return t.test(String(e))?void 0:r}}function c(...t){return(r,e)=>{for(const u of t){const i=u(r,e);if(i)return i}}}function a(t){return r=>{if(t.required&&n(r))return t.required;if(t.pattern&&!t.pattern.value.test(String(r??"")))return t.pattern.message;if(!t.validate)return;const e=t.validate(r);if(typeof e=="string")return e;if(e===!1)return t.required||"Invalid"}}function d(t){const r=t;return!!(r&&typeof r=="object"&&r.target?.checked)}export{d as checkedValue,c as compose,a as fieldRules,f as pattern,o as required};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function o(e){const t=Object.getPrototypeOf(e);return t===Object.prototype||t===null}function a(e,t){if(Object.is(e,t))return!0;if(e instanceof Date||t instanceof Date)return e instanceof Date&&t instanceof Date&&e.getTime()===t.getTime();if(typeof e!="object"||typeof t!="object"||e===null||t===null)return!1;if(Array.isArray(e)||Array.isArray(t))return!Array.isArray(e)||!Array.isArray(t)||e.length!==t.length?!1:e.every((r,s)=>a(r,t[s]));if(!o(e)||!o(t))return!1;const f=Object.keys(e),i=Object.keys(t);return f.length!==i.length?!1:f.every(r=>a(e[r],t[r]))}export{a as formValuesEqual};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import{injectCss as o}from"../utils/injectCss.js";var r='._9TRXw[data-align=start] .yMKDd{margin-top:var(--altum-toggle-align-nudge)}._9TRXw:active .sppC0:not(:disabled,[aria-readonly=true])~.yMKDd,._9TRXw:hover .sppC0:not(:checked):not(:disabled,[aria-readonly=true])~.yMKDd{border-color:var(--altum-color-border-hover)}._9TRXw:has(.sppC0[aria-readonly=true]) .yMKDd{background-color:var(--altum-color-control-bg-readonly);border-color:var(--altum-color-control-border-readonly);border-style:dashed}._9TRXw:has(.sppC0[aria-readonly=true]):hover .yMKDd{border-color:var(--altum-color-control-border-readonly)}._9TRXw .sppC0:checked~.yMKDd{background-color:var(--altum-color-control-bg-checked);border-color:var(--altum-color-control-border-checked)}:is(._9TRXw .sppC0:checked~.yMKDd):after{opacity:1}._9TRXw .sppC0:focus-visible~.yMKDd{outline:var(--altum-focus-ring-width) solid var(--altum-focus-ring-color);outline-offset:var(--altum-focus-ring-offset)}.sppC0{appearance:none}.yMKDd{background-color:var(--altum-color-control-bg);border:1px solid var(--altum-color-control-border);box-sizing:border-box;display:inline-block;height:var(--altum-toggle-box-size);position:relative;width:var(--altum-toggle-box-size)}.yMKDd,.yMKDd:after{transition:var(--altum-transition-smooth)}.yMKDd:after{content:"";left:50%;opacity:0;position:absolute;top:50%}@media (prefers-reduced-motion:reduce){.yMKDd,.yMKDd:after{transition:none}}';const
|
|
1
|
+
"use client";import{injectCss as o}from"../utils/injectCss.js";var r='._9TRXw[data-align=start] .yMKDd{margin-top:var(--altum-toggle-align-nudge)}._9TRXw:active .sppC0:not(:disabled,[aria-readonly=true])~.yMKDd,._9TRXw:hover .sppC0:not(:checked):not(:disabled,[aria-readonly=true])~.yMKDd{border-color:var(--altum-color-border-hover)}._9TRXw:has(.sppC0[aria-readonly=true]) .yMKDd{background-color:var(--altum-color-control-bg-readonly);border-color:var(--altum-color-control-border-readonly);border-style:dashed}._9TRXw:has(.sppC0[aria-readonly=true]):hover .yMKDd{border-color:var(--altum-color-control-border-readonly)}._9TRXw .sppC0:checked~.yMKDd{background-color:var(--altum-color-control-bg-checked);border-color:var(--altum-color-control-border-checked)}:is(._9TRXw .sppC0:checked~.yMKDd):after{opacity:1}._9TRXw .sppC0:focus-visible~.yMKDd{outline:var(--altum-focus-ring-width) solid var(--altum-focus-ring-color);outline-offset:var(--altum-focus-ring-offset)}.sppC0{appearance:none}.yMKDd{background-color:var(--altum-color-control-bg);border:1px solid var(--altum-color-control-border);box-sizing:border-box;display:inline-block;flex-shrink:0;height:var(--altum-toggle-box-size);min-height:var(--altum-toggle-box-size);min-width:var(--altum-toggle-box-size);position:relative;width:var(--altum-toggle-box-size)}.yMKDd,.yMKDd:after{transition:var(--altum-transition-smooth)}.yMKDd:after{content:"";left:50%;opacity:0;position:absolute;top:50%}@media (prefers-reduced-motion:reduce){.yMKDd,.yMKDd:after{transition:none}}';const e={root:"_9TRXw",box:"yMKDd",input:"sppC0"};o(r);export{e as default};
|
package/dist/utils/autoHeight.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function n(e,
|
|
1
|
+
function n(e,o={}){const{minHeightPx:t=0,maxHeight:a}=o;e.style.maxHeight=a!==void 0?typeof a=="number"?`${a}px`:a:"",e.style.height="auto";const i=e.scrollHeight,r=parseFloat(getComputedStyle(e).maxHeight),h=Number.isFinite(r)?r:1/0,l=Math.min(Math.max(i,t),h);e.style.height=`${l}px`,e.style.overflowY=i>h?"auto":"hidden"}function p(e,o){const t=getComputedStyle(e),a=parseFloat(t.getPropertyValue("--altum-field-size-height"))||0,i=parseFloat(t.lineHeight)||parseFloat(t.fontSize)*1.25,r=parseFloat(t.paddingTop)+parseFloat(t.paddingBottom),h=parseFloat(t.borderTopWidth)+parseFloat(t.borderBottomWidth),l=r+h+i*o;return o<=1&&a>0?Math.max(l,a):l}export{n as adjustElementHeight,p as getTextareaMinHeightPx};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{localeToBcp47 as D}from"./locale.js";function u(t,e=1){const r=new Date(t),n=r.getDay(),a=e===1?n===0?6:n-1:n;return r.setDate(r.getDate()-a),r.setHours(0,0,0,0),r}function l(t,e=1){const r=u(t,e);return Array.from({length:7},(n,a)=>{const o=new Date(r);return o.setDate(r.getDate()+a),o})}function c(t,e,r){const n=new Date(t.getTime());switch(r){case"minute":n.setMinutes(n.getMinutes()+e);break;case"hour":n.setHours(n.getHours()+e);break;case"day":n.setDate(n.getDate()+e);break;case"week":n.setDate(n.getDate()+e*7);break;case"month":n.setMonth(n.getMonth()+e);break;case"year":n.setFullYear(n.getFullYear()+e);break;default:return r}return n}function s(t){return new Date(t.getFullYear(),t.getMonth(),t.getDate())}function f(t,e){return c(s(t),e,"day")}function m(t,e){return g(t,e)===0}function g(t,e){const r=t.getFullYear()-e.getFullYear();if(r)return r<0?-1:1;const n=t.getMonth()-e.getMonth();if(n)return n<0?-1:1;const a=t.getDate()-e.getDate();return a<0?-1:a>0?1:0}function d(t){const e=/^(\d{4})-(\d{2})-(\d{2})$/.exec(t);if(!e)return null;const r=Number(e[1]),n=Number(e[2]),a=Number(e[3]),o=new Date(r,n-1,a);return o.getFullYear()!==r||o.getMonth()!==n-1||o.getDate()!==a?null:o}function h(t){const e=String(t.getMonth()+1).padStart(2,"0"),r=String(t.getDate()).padStart(2,"0");return`${t.getFullYear()}-${e}-${r}`}function i(t){return(Math.trunc(t)%24+24)%24}function b(t,e){const r=new Date(Date.UTC(2020,0,15,i(t),0,0));return new Intl.DateTimeFormat(D(e),{timeZone:"UTC",hour:"numeric",minute:"2-digit"}).format(r)}function y(t){return`${String(i(t)).padStart(2,"0")}:00`}export{f as addDays,c as addToDate,g as compareDay,b as formatHourLabel,y as formatHourTime,h as formatLocalDate,l as getWeekDays,u as getWeekStart,m as isSameDay,d as parseLocalDate,s as startOfDay};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const i=60,o=3600,t=86400,r=604800,e={minute:60,hour:3600,day:86400,week:604800};function S(n,u){return n/e[u]}function a(n,u){return n*e[u]}function c(n){return n!==0&&n%604800===0?{unit:"week",value:n/604800}:n!==0&&n%86400===0?{unit:"day",value:n/86400}:n!==0&&n%3600===0?{unit:"hour",value:n/3600}:{unit:"minute",value:n/60}}export{t as DAY_SECONDS,o as HOUR_SECONDS,i as MINUTE_SECONDS,r as WEEK_SECONDS,c as getDurationUnitAndValue,S as secondsToUnit,a as unitToSeconds};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const i=["input","textarea","select","a",'[contenteditable="true"]'].join(", "),r=['[role="dialog"]','[role="listbox"]','[role="menu"]','[role="tree"]',"[data-side]"].join(",");function a(e){return`[class*="${e.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"]`}function s(e){if(typeof HTMLElement>"u"||!(e instanceof HTMLElement))return!1;const{tagName:t}=e;return t==="INPUT"||t==="TEXTAREA"||t==="SELECT"||e.isContentEditable}function l(e,t){return typeof Element>"u"||!(e instanceof Element)||!t?!1:!!e.closest(t)}function c(e,t,n,o){return typeof Node>"u"||!(e instanceof Node)?!0:!(t?.contains(e)||e instanceof Element&&(n&&e.closest(n)||o&&e.closest(a(o))))}export{i as DEFAULT_DRAG_BLOCKED_SELECTOR,r as DEFAULT_PORTAL_SELECTOR,l as isDragBlockedTarget,s as isEditableTarget,c as isOutsideFormInteraction};
|
package/dist/utils/injectCss.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function n(t){if(typeof document>"u")return;const e=document.createElement("style");e.textContent
|
|
1
|
+
function n(t){if(typeof document>"u")return;const e=document.createElement("style");e.textContent=`@layer altum{${t}}`,document.head.appendChild(e)}export{n as injectCss};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function n(e){return e==="en"?"en-US":"ru-RU"}export{n as localeToBcp47};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function o(u,t,n,l){const e=Math.abs(Math.trunc(u)),a=e%10,r=e%100;return a===1&&r!==11?t:a>=2&&a<=4&&(r<12||r>14)?n:l}function c(u,t,n){return Math.abs(Math.trunc(u))===1?t:n}function f(u,t,n){return u==="en"?c(t,n.one,n.many):o(t,n.one,n.few,n.many)}export{f as plural,c as pluralEn,o as pluralRu};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{localeToBcp47 as m}from"./locale.js";const c=["UTC","Africa/Cairo","Africa/Johannesburg","America/Anchorage","America/Argentina/Buenos_Aires","America/Chicago","America/Denver","America/Los_Angeles","America/Mexico_City","America/New_York","America/Sao_Paulo","Asia/Dubai","Asia/Hong_Kong","Asia/Kolkata","Asia/Shanghai","Asia/Singapore","Asia/Tokyo","Australia/Sydney","Europe/Berlin","Europe/London","Europe/Moscow","Europe/Paris","Pacific/Auckland","Pacific/Honolulu"];function s(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone||"UTC"}catch{return"UTC"}}function f(){const e=Intl,t=typeof e.supportedValuesOf=="function"?[...e.supportedValuesOf("timeZone")]:[...c];return t.includes("UTC")||t.unshift("UTC"),t}function l(e){if(!e)return!1;try{return!0}catch{return!1}}function a(e,t){try{const n=new Intl.DateTimeFormat("en-US",{timeZone:t,hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).formatToParts(e),r={};for(const i of n)i.type!=="literal"&&(r[i.type]=i.value);const o=Number(r.hour);return{year:Number(r.year),month:Number(r.month),day:Number(r.day),hour:o===24?0:o,minute:Number(r.minute),second:Number(r.second)}}catch{return null}}function d(e,t=new Date){const n=a(t,e);if(!n)return null;const r=Date.UTC(n.year,n.month-1,n.day,n.hour,n.minute,n.second);return Math.round((r-t.getTime())/6e4)}function y(e,t,n){const r=a(e,n),o=a(t,n);return!r||!o?!1:r.year===o.year&&r.month===o.month&&r.day===o.day}function h(e,t,n,r={}){try{return new Intl.DateTimeFormat(m(n),{...r,timeZone:t}).format(e)}catch{return""}}function u(e,t=new Date){try{return new Intl.DateTimeFormat("en-US",{timeZone:e,timeZoneName:"shortOffset"}).formatToParts(t).find(n=>n.type==="timeZoneName")?.value??""}catch{return""}}function A(e){const t=u(e);return t?`${e} (${t})`:e}export{h as formatInTimeZone,A as formatTimezoneLabel,u as formatTimezoneOffset,s as getBrowserTimezone,f as getSupportedTimezones,d as getTimezoneOffsetMinutes,a as getZonedParts,y as isSameZonedDay,l as isValidTimeZone};
|
package/docs/COMPONENTS.md
CHANGED
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
|
|
13
13
|
| Компонент | Описание |
|
|
14
14
|
|-----------|----------|
|
|
15
|
-
| **Button** | Кнопка: `variant` (`primary` / `tinted` / `secondary` / `
|
|
16
|
-
| **ButtonIcon** |
|
|
15
|
+
| **Button** | Кнопка: `variant` (`primary` / `tinted` / `secondary` / `danger` / `danger_tinted` / `ghost` / `link`), `prefix` / `postfix`, `loading`, `fullWidth`. |
|
|
16
|
+
| **ButtonIcon** | Иконка-кнопка на базе **Button**; `circle` / `square`; по умолчанию `variant="ghost"`. |
|
|
17
17
|
| **ButtonGroup** | Составная группа (`ButtonGroup` + `ButtonGroup.Item`): `mode` `button` (независимые, выбранность через `active` на Item) / `toggle` (один выбранный, слайдер) / `multi_toggle` (несколько); `itemFit` `equal` \| `content`; `width` `auto` \| `full`; `variant` / `status` / `size` / `borderless` на Root. |
|
|
18
18
|
| **SegmentedControl** | Обёртка над `ButtonGroup` (`mode="toggle"`, `width="full"`): `options` + `value` / `onChange`; `itemFit` `equal` \| `content`; варианты `primary` / `tinted` / `secondary` (по умолчанию) / `ghost` / `plain`. |
|
|
19
19
|
| **Overflow** | Лишние пункты за ⋯ в `Dropdown`. `Overflow.Item` — панель действий; прочие дети — измерение ширины. `longPress` открывает меню долгим нажатием (хост — **`ActionSheetTrigger`**). |
|
|
@@ -26,13 +26,13 @@
|
|
|
26
26
|
|
|
27
27
|
| Компонент | Описание |
|
|
28
28
|
|-----------|----------|
|
|
29
|
-
| **TextField** |
|
|
29
|
+
| **TextField** | Примитив поля: chrome + `as` (`input` / `textarea` / `button` / `div`). `label` — floating-лейбл; без `label` — поле без подписи (`aria-label` / `placeholder`). `description` — подсказка или слот под chrome. `keepPlaceholder` — не скрывать placeholder при фокусе пустого поля. |
|
|
30
30
|
| **PasswordField** | Пароль на базе TextField: показать/скрыть, опциональный индикатор сложности. |
|
|
31
|
-
| **SearchField** | Обёртка над `TextField` с
|
|
32
|
-
| **TextareaField** | Многострочное поле на **
|
|
31
|
+
| **SearchField** | Обёртка над `TextField` с иконкой поиска (`onClear` от TextField). Без `label` — тулбарный вид. |
|
|
32
|
+
| **TextareaField** | Многострочное поле на **TextField** `as="textarea"`; авто-рост высоты. |
|
|
33
33
|
| **NumberField** | Числовой ввод на базе `TextField` с кнопками +/-. |
|
|
34
34
|
| **MaskedField** | Поле с маской ввода (телефон, дата и т.п.) на базе `TextField`; опционально `maskAsPlaceholder`. Не переопределяйте `padding` / `font-size` на inner `input`. |
|
|
35
|
-
| **PinInput** | PIN / OTP
|
|
35
|
+
| **PinInput** | PIN / OTP: группа ячеек на **TextField**. `label` — **FieldLabel**; `description` / `error` — **FormMessage**. |
|
|
36
36
|
| **Rating** | Оценка звёздами. |
|
|
37
37
|
| **FormMessage** | Подсказка / ошибка / успех под полем; `variant` `hint` / `error` / `success`. |
|
|
38
38
|
| **Select** | Поле выбора: `options`, `value` / `onChange`, `label`, `filterable`; `selectionMode="multiple"` рисует chips. |
|
|
@@ -43,9 +43,10 @@
|
|
|
43
43
|
| **Radio** / **RadioGroup** | Радиокнопка и группа; `labelSide`, `onCheckedChange` на `Radio`. |
|
|
44
44
|
| **SelectionGroup** | Без собственного chrome: составной `Root` / `List` / `Item` / `Panel` (roving focus). На нём собраны **Tabs** и **ColorSwatchGroup**. Внешний вид — через `className`. |
|
|
45
45
|
| **Slider** | Ползунок: `value: number` или диапазон `value: [from, to]` (два thumb). |
|
|
46
|
-
| **
|
|
47
|
-
| **
|
|
48
|
-
| **
|
|
46
|
+
| **DateField** | Выбор даты: MaskedField + календарь; по умолчанию prefix — `FieldBaseIcon` + календарь; chrome от **`FieldBaseProps`**. |
|
|
47
|
+
| **DateRangeField** | Диапазон дат (`value`/`onChange` как `{ start?, end? }`); chrome от **`FieldBaseProps`**; `layout` `single` / `split`. |
|
|
48
|
+
| **TimeField** | Поле времени с маской `HH:MM` и барабанами **`WheelTimePicker`**; по умолчанию prefix — иконка часов. |
|
|
49
|
+
| **WheelTimePicker** | Два барабана часов и минут (`TimeValue`); выбор кликом или прокруткой применяется сразу. |
|
|
49
50
|
| **Calendar** | Составной: `Provider` / `Root` / `Header` / `Title` / `Nav` / `Body`. `selectionMode` `single` \| `range` на Provider. `value` — `Date` или `DateRangeValue`. |
|
|
50
51
|
| **DayStripCalendar** | Горизонтальная полоса дней: `daysCount`, prev/next выбирают соседний день, `value` / `onChange`, `renderDay`. |
|
|
51
52
|
| **ColorSwatchGroup** | Выбор цвета из набора цветных точек. |
|
|
@@ -91,7 +92,7 @@
|
|
|
91
92
|
| **Accordion** | `Accordion.Item` с `title` и содержимым в `children`; `flush` (по умолчанию) / `bordered`; `multiple`, отключённый пункт. |
|
|
92
93
|
| **Badge** | `size` sm/md, `position` overlay/standalone, `variant` включая `error`; overlay — `--altum-badge-overhang`. Числовой `label` ограничивается через `max`; `children` — якорь overlay. |
|
|
93
94
|
| **Avatar** / **AvatarGroup** | Размеры `xs`…`xl`, кольцо статуса, запасная иконка; группа с наложением. |
|
|
94
|
-
| **Chip** | Тег / фильтр: `mode` `chip` \| `tag` \| `toggle` (`as` — deprecated-алиас), `size`, `onRemove` / `onClick`. **`ChipGroup`**: `mode` `chip` \| `tag`, `
|
|
95
|
+
| **Chip** | Тег / фильтр: `mode` `chip` \| `tag` \| `toggle` (`as` — deprecated-алиас), `size`, `onRemove` / `onClick`. **`ChipGroup`**: `mode` `chip` \| `tag`, `gap`. |
|
|
95
96
|
| **StatBadge** | Компактный блок статистики: число + подпись; `variant` `default` / `success` / `warning` / `error`; `size` `md` / `sm`. |
|
|
96
97
|
| **EmptyState** | Пустое состояние: иконка (`--altum-color-empty-icon`), заголовок, описание, действие; `size` для вложенных панелей. |
|
|
97
98
|
| **DescriptionList** | Список «ключ — значение» (`stacked` / `inline`, колонки). |
|
package/docs/LAYOUT.md
CHANGED
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
} from 'altum';
|
|
20
20
|
```
|
|
21
21
|
|
|
22
|
-
Связанные: **
|
|
22
|
+
Связанные: **TextField** — см. [COMPONENTS.md](./COMPONENTS.md).
|
|
23
23
|
|
|
24
24
|
---
|
|
25
25
|
|
|
@@ -34,7 +34,7 @@ import {
|
|
|
34
34
|
| Поля + Chip + Button в одной строке фильтров | **ControlRow** |
|
|
35
35
|
| Одному ребёнку — `flex: 1` или «не сжимать» | **LayoutItem** (`ControlRow.Item` / `Layout.Item`) |
|
|
36
36
|
| Колонки сетки | **Grid** |
|
|
37
|
-
| Оболочка input (label / prefix / clear) | **
|
|
37
|
+
| Оболочка input (label / prefix / clear) | **TextField** |
|
|
38
38
|
|
|
39
39
|
---
|
|
40
40
|
|
|
@@ -279,4 +279,4 @@ Flex-ячейка внутри Stack / Inline / Split / ControlRow.
|
|
|
279
279
|
| `Stack` для чипов в ряд | **Inline** |
|
|
280
280
|
| `div` + `display:flex` + px `gap` | **Stack** / **Inline** с токенами |
|
|
281
281
|
| Оборачивать всё в `LayoutItem` | Только где нужны `grow` / `shrink` |
|
|
282
|
-
| Путать `Layout` и `
|
|
282
|
+
| Путать `Layout` и `TextField` | `Layout` — панель UI; `TextField` — оболочка поля ввода |
|
package/docs/THEMING.md
CHANGED
|
@@ -4,7 +4,7 @@ altum использует **CSS custom properties** для всех дизай
|
|
|
4
4
|
|
|
5
5
|
## Быстрый старт
|
|
6
6
|
|
|
7
|
-
Оберните приложение в `ThemeProvider` (установка — [README](../README.md)). Стили инжектятся из JS — отдельный `styles.css` не нужен. По умолчанию `applyTo="wrapper"`. Для порталов (`Modal`, `Sheet`, выпадающие панели, `Notification`) используйте **`applyTo="document"`**, чтобы классы и `data-theme` попали на `html` / `body
|
|
7
|
+
Оберните приложение в `ThemeProvider` (установка — [README](../README.md)). Стили инжектятся из JS — отдельный `styles.css` не нужен. По умолчанию `applyTo="wrapper"`. Для порталов (`Modal`, `Sheet`, выпадающие панели, `Notification`) используйте **`applyTo="document"`**, чтобы классы и `data-theme` попали на `html` / `body` и не дублировались на обёртке. Тогда переопределение токенов на `body` доходит до детей. Синхронизация идёт в **`useLayoutEffect`**, чтобы первый кадр совпадал с `initialTheme` / контролируемой `theme`.
|
|
8
8
|
|
|
9
9
|
### Контролируемая тема и хранилище
|
|
10
10
|
|
|
@@ -240,13 +240,13 @@ return (
|
|
|
240
240
|
|
|
241
241
|
### Опасность / деструктив (`--altum-color-danger-*`)
|
|
242
242
|
|
|
243
|
-
Действия удаления, состояния ошибки. API кнопки: `
|
|
243
|
+
Действия удаления, состояния ошибки. API кнопки: `variant="danger"` (заливка) и `variant="danger_tinted"` (мягкая смывка).
|
|
244
244
|
|
|
245
245
|
| Переменная | Назначение |
|
|
246
246
|
|------------|------------|
|
|
247
247
|
| `--altum-color-danger-bg-solid` | Залитая деструктивная кнопка |
|
|
248
|
-
| `--altum-color-danger-text-secondary` | Текст контурной деструктивной
|
|
249
|
-
| `--altum-color-danger-tint-bg` / `--altum-color-danger-tint-text` | Мягкий tint опасности (`variant="
|
|
248
|
+
| `--altum-color-danger-text-secondary` | Текст контурной деструктивной |
|
|
249
|
+
| `--altum-color-danger-tint-bg` / `--altum-color-danger-tint-text` | Мягкий tint опасности (`variant="danger_tinted"`) |
|
|
250
250
|
|
|
251
251
|
### Контролы формы (`--altum-color-input-*`, `--altum-color-control-*`)
|
|
252
252
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "altum",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.5",
|
|
4
4
|
"description": "Библиотека React + TypeScript UI-компонентов: CSS Modules, токены ThemeProvider, адаптация overlay/sheet.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Alexander <azeeson@gmail.com>",
|
|
@@ -40,6 +40,11 @@
|
|
|
40
40
|
"import": "./dist/entries/icons.js",
|
|
41
41
|
"default": "./dist/entries/icons.js"
|
|
42
42
|
},
|
|
43
|
+
"./locales": {
|
|
44
|
+
"types": "./types/entries/locales.d.ts",
|
|
45
|
+
"import": "./dist/entries/locales.js",
|
|
46
|
+
"default": "./dist/entries/locales.js"
|
|
47
|
+
},
|
|
43
48
|
"./package.json": "./package.json"
|
|
44
49
|
},
|
|
45
50
|
"files": [
|
package/types/entries/hooks.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
|
-
import { RefObject, PointerEvent, MouseEvent as MouseEvent$1 } from 'react';
|
|
2
|
+
import { RefObject, PointerEvent, MouseEvent as MouseEvent$1, Dispatch, SetStateAction, ReactNode } from 'react';
|
|
3
3
|
|
|
4
4
|
interface UseOutsideClickOptions {
|
|
5
5
|
enabled?: boolean;
|
|
@@ -84,6 +84,62 @@ declare function usePresence(open: boolean, durationMs: number): {
|
|
|
84
84
|
presented: boolean;
|
|
85
85
|
};
|
|
86
86
|
|
|
87
|
+
type FormErrors<T extends Record<string, unknown>> = Partial<Record<keyof T, string>>;
|
|
88
|
+
type FieldValidate<T extends Record<string, unknown>, K extends keyof T> = (value: T[K], values: T) => string | undefined;
|
|
89
|
+
interface RegisterOptions<T extends Record<string, unknown>, K extends keyof T> {
|
|
90
|
+
getValue?: (payload: unknown) => T[K];
|
|
91
|
+
validate?: FieldValidate<T, K>;
|
|
92
|
+
}
|
|
93
|
+
declare function useForm<T extends Record<string, unknown>>(initialValues: T): {
|
|
94
|
+
values: T;
|
|
95
|
+
errors: Partial<Record<keyof T, string>>;
|
|
96
|
+
isDirty: boolean;
|
|
97
|
+
register: <K extends keyof T>(name: K, options?: RegisterOptions<T, K>) => {
|
|
98
|
+
value: T[K];
|
|
99
|
+
onChange: (payload: unknown) => void;
|
|
100
|
+
};
|
|
101
|
+
hasErrors: boolean;
|
|
102
|
+
setValues: Dispatch<SetStateAction<T>>;
|
|
103
|
+
setValue: <K extends keyof T>(name: K, value: T[K]) => void;
|
|
104
|
+
setError: (name: keyof T, message: string) => void;
|
|
105
|
+
clearErrors: (name?: keyof T) => void;
|
|
106
|
+
reset: (next?: T) => void;
|
|
107
|
+
handleSubmit: (onValid: (values: T) => void) => (event?: {
|
|
108
|
+
preventDefault?: () => void;
|
|
109
|
+
}) => void;
|
|
110
|
+
};
|
|
111
|
+
type UseFormReturn<T extends Record<string, unknown>> = ReturnType<typeof useForm<T>>;
|
|
112
|
+
|
|
113
|
+
declare function useFormContext<T extends Record<string, unknown>>(): UseFormReturn<T>;
|
|
114
|
+
declare function useFormProvider<T extends Record<string, unknown>>(initialValues: T): {
|
|
115
|
+
FormProvider: {
|
|
116
|
+
({ children }: {
|
|
117
|
+
children?: ReactNode;
|
|
118
|
+
}): react.FunctionComponentElement<react.ProviderProps<UseFormReturn<Record<string, unknown>> | null>>;
|
|
119
|
+
displayName: string;
|
|
120
|
+
};
|
|
121
|
+
values: T;
|
|
122
|
+
errors: Partial<Record<keyof T, string>>;
|
|
123
|
+
isDirty: boolean;
|
|
124
|
+
register: <K extends keyof T>(name: K, options?: RegisterOptions<T, K> | undefined) => {
|
|
125
|
+
value: T[K];
|
|
126
|
+
onChange: (payload: unknown) => void;
|
|
127
|
+
};
|
|
128
|
+
hasErrors: boolean;
|
|
129
|
+
setValues: react.Dispatch<react.SetStateAction<T>>;
|
|
130
|
+
setValue: <K extends keyof T>(name: K, value: T[K]) => void;
|
|
131
|
+
setError: (name: keyof T, message: string) => void;
|
|
132
|
+
clearErrors: (name?: keyof T | undefined) => void;
|
|
133
|
+
reset: (next?: T | undefined) => void;
|
|
134
|
+
handleSubmit: (onValid: (values: T) => void) => (event?: {
|
|
135
|
+
preventDefault?: (() => void) | undefined;
|
|
136
|
+
}) => void;
|
|
137
|
+
};
|
|
138
|
+
|
|
139
|
+
type FormRule<T extends Record<string, unknown> = Record<string, unknown>> = (value: unknown, values: T) => string | undefined;
|
|
140
|
+
declare function required(message: string): FormRule;
|
|
141
|
+
declare function pattern(regex: RegExp, message: string): FormRule;
|
|
142
|
+
declare function compose<T extends Record<string, unknown> = Record<string, unknown>>(...rules: FormRule<T>[]): FormRule<T>;
|
|
87
143
|
interface ValidationRules {
|
|
88
144
|
required?: string;
|
|
89
145
|
pattern?: {
|
|
@@ -92,16 +148,8 @@ interface ValidationRules {
|
|
|
92
148
|
};
|
|
93
149
|
validate?: (val: unknown) => string | boolean;
|
|
94
150
|
}
|
|
95
|
-
declare function
|
|
96
|
-
|
|
97
|
-
errors: Record<string, string>;
|
|
98
|
-
register: (name: keyof T, rules?: ValidationRules) => {
|
|
99
|
-
value: T[keyof T];
|
|
100
|
-
onChange: (val: unknown) => void;
|
|
101
|
-
};
|
|
102
|
-
hasErrors: boolean;
|
|
103
|
-
setValues: react.Dispatch<react.SetStateAction<T>>;
|
|
104
|
-
};
|
|
151
|
+
declare function fieldRules(rules: ValidationRules): FormRule;
|
|
152
|
+
declare function checkedValue(payload: unknown): boolean;
|
|
105
153
|
|
|
106
|
-
export { MOBILE_MEDIA_QUERY, REDUCED_MOTION_QUERY, useBodyScrollLock, useControlledState, useControlledStateWithCallback, useDocumentKeyDown, useEscapeKey, useFocusRestore, useFocusTrap, useForm, useInertSiblings, useLongPress, useMediaQuery, useNow, useOutsideClick, useOverlay, useOverlayPanel, usePrefersReducedMotion, usePresence };
|
|
107
|
-
export type { DocumentKeyDownTarget, UseDocumentKeyDownOptions, UseEscapeKeyOptions, UseFocusTrapOptions, UseLongPressHandlers, UseLongPressOptions, UseOutsideClickOptions, UseOverlayOptions, UseOverlayPanelOptions, ValidationRules };
|
|
154
|
+
export { MOBILE_MEDIA_QUERY, REDUCED_MOTION_QUERY, checkedValue, compose, fieldRules, pattern, required, useBodyScrollLock, useControlledState, useControlledStateWithCallback, useDocumentKeyDown, useEscapeKey, useFocusRestore, useFocusTrap, useForm, useFormContext, useFormProvider, useInertSiblings, useLongPress, useMediaQuery, useNow, useOutsideClick, useOverlay, useOverlayPanel, usePrefersReducedMotion, usePresence };
|
|
155
|
+
export type { DocumentKeyDownTarget, FieldValidate, FormErrors, FormRule, RegisterOptions, UseDocumentKeyDownOptions, UseEscapeKeyOptions, UseFocusTrapOptions, UseFormReturn, UseLongPressHandlers, UseLongPressOptions, UseOutsideClickOptions, UseOverlayOptions, UseOverlayPanelOptions, ValidationRules };
|