@hina-ui/vue 1.7.12 → 1.7.14
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/README.md +1 -1
- package/dist/index.js +25634 -9251
- package/dist/index.js.map +1 -1
- package/dist/shared/lib/thumbhash.ts +12 -0
- package/dist/shared/lib/tour-engine.ts +721 -0
- package/dist/shared/lib/tour.ts +439 -0
- package/dist/shared/locale/en-US.ts +9 -0
- package/dist/shared/locale/index.ts +1 -0
- package/dist/shared/locale/ja-JP.ts +10 -0
- package/dist/shared/locale/types.ts +9 -0
- package/dist/shared/locale/zh-CN.ts +9 -0
- package/dist/shared/primitives/combobox/LICENSE +44 -0
- package/dist/shared/primitives/combobox/index.ts +49 -0
- package/dist/shared/primitives/date/LICENSE +21 -0
- package/dist/shared/primitives/date/calendar-view.ts +264 -0
- package/dist/shared/primitives/date/calendar.ts +126 -0
- package/dist/shared/primitives/date/comparators.ts +144 -0
- package/dist/shared/primitives/date/field.ts +551 -0
- package/dist/shared/primitives/date/formatter.ts +110 -0
- package/dist/shared/primitives/date/parser.ts +182 -0
- package/dist/shared/primitives/date/parts.ts +16 -0
- package/dist/shared/primitives/date/picker-view.ts +186 -0
- package/dist/shared/primitives/date/placeholders.ts +485 -0
- package/dist/shared/primitives/date/range-calendar-view.ts +181 -0
- package/dist/shared/primitives/date/segment.ts +44 -0
- package/dist/shared/primitives/date/utils.ts +169 -0
- package/dist/shared/primitives/dialog/LICENSE +21 -0
- package/dist/shared/primitives/dialog/index.ts +73 -0
- package/dist/shared/primitives/dismissable-layer/index.ts +48 -1
- package/dist/shared/primitives/focus-scope/index.ts +5 -3
- package/dist/shared/primitives/grace-area/LICENSE +21 -0
- package/dist/shared/primitives/grace-area/index.ts +112 -0
- package/dist/shared/primitives/listbox/LICENSE +21 -0
- package/dist/shared/primitives/listbox/index.ts +213 -0
- package/dist/shared/primitives/menu/LICENSE +21 -0
- package/dist/shared/primitives/menu/index.ts +66 -0
- package/dist/shared/primitives/navigation-menu/LICENSE +44 -0
- package/dist/shared/primitives/navigation-menu/index.ts +125 -0
- package/dist/shared/primitives/popper/LICENSE +21 -0
- package/dist/shared/primitives/popper/index.ts +246 -0
- package/dist/shared/primitives/select/index.ts +98 -0
- package/dist/shared/primitives/tags-input/LICENSE +21 -0
- package/dist/shared/primitives/tags-input/index.ts +113 -0
- package/dist/shared/primitives/toast/LICENSE +44 -0
- package/dist/shared/primitives/toast/index.ts +106 -0
- package/dist/shared/primitives/tree/LICENSE +21 -0
- package/dist/shared/primitives/tree/index.ts +248 -0
- package/dist/shared/styles/semantic.css +1 -0
- package/dist/shared/styles/tokens.css +1 -0
- package/dist/shared/styles/tour.css +134 -0
- package/dist/shared/variants/image.ts +28 -0
- package/dist/shared/variants/nav-link.ts +6 -2
- package/dist/shared/variants/tour.ts +47 -0
- package/dist/types/shared/src/lib/thumbhash.d.ts +2 -0
- package/dist/types/shared/src/lib/thumbhash.d.ts.map +1 -0
- package/dist/types/shared/src/lib/tour-engine.d.ts +47 -0
- package/dist/types/shared/src/lib/tour-engine.d.ts.map +1 -0
- package/dist/types/shared/src/lib/tour.d.ts +137 -0
- package/dist/types/shared/src/lib/tour.d.ts.map +1 -0
- package/dist/types/shared/src/lib/virtual/filter.d.ts +6 -0
- package/dist/types/shared/src/lib/virtual/filter.d.ts.map +1 -0
- package/dist/types/shared/src/locale/en-US.d.ts.map +1 -1
- package/dist/types/shared/src/locale/index.d.ts.map +1 -1
- package/dist/types/shared/src/locale/ja-JP.d.ts.map +1 -1
- package/dist/types/shared/src/locale/types.d.ts +9 -0
- package/dist/types/shared/src/locale/types.d.ts.map +1 -1
- package/dist/types/shared/src/locale/zh-CN.d.ts.map +1 -1
- package/dist/types/shared/src/primitives/body-scroll-lock/index.d.ts +10 -0
- package/dist/types/shared/src/primitives/body-scroll-lock/index.d.ts.map +1 -0
- package/dist/types/shared/src/primitives/collapsible/index.d.ts +1 -1
- package/dist/types/shared/src/primitives/combobox/index.d.ts +9 -0
- package/dist/types/shared/src/primitives/combobox/index.d.ts.map +1 -0
- package/dist/types/shared/src/primitives/date/calendar-view.d.ts +53 -0
- package/dist/types/shared/src/primitives/date/calendar-view.d.ts.map +1 -0
- package/dist/types/shared/src/primitives/date/calendar.d.ts +39 -0
- package/dist/types/shared/src/primitives/date/calendar.d.ts.map +1 -0
- package/dist/types/shared/src/primitives/date/comparators.d.ts +31 -0
- package/dist/types/shared/src/primitives/date/comparators.d.ts.map +1 -0
- package/dist/types/shared/src/primitives/date/field.d.ts +46 -0
- package/dist/types/shared/src/primitives/date/field.d.ts.map +1 -0
- package/dist/types/shared/src/primitives/date/formatter.d.ts +20 -0
- package/dist/types/shared/src/primitives/date/formatter.d.ts.map +1 -0
- package/dist/types/shared/src/primitives/date/parser.d.ts +49 -0
- package/dist/types/shared/src/primitives/date/parser.d.ts.map +1 -0
- package/dist/types/shared/src/primitives/date/parts.d.ts +10 -0
- package/dist/types/shared/src/primitives/date/parts.d.ts.map +1 -0
- package/dist/types/shared/src/primitives/date/picker-view.d.ts +34 -0
- package/dist/types/shared/src/primitives/date/picker-view.d.ts.map +1 -0
- package/dist/types/shared/src/primitives/date/placeholders.d.ts +2 -0
- package/dist/types/shared/src/primitives/date/placeholders.d.ts.map +1 -0
- package/dist/types/shared/src/primitives/date/range-calendar-view.d.ts +67 -0
- package/dist/types/shared/src/primitives/date/range-calendar-view.d.ts.map +1 -0
- package/dist/types/shared/src/primitives/date/segment.d.ts +6 -0
- package/dist/types/shared/src/primitives/date/segment.d.ts.map +1 -0
- package/dist/types/shared/src/primitives/date/utils.d.ts +37 -0
- package/dist/types/shared/src/primitives/date/utils.d.ts.map +1 -0
- package/dist/types/shared/src/primitives/dialog/index.d.ts +32 -0
- package/dist/types/shared/src/primitives/dialog/index.d.ts.map +1 -0
- package/dist/types/shared/src/primitives/dismissable-layer/index.d.ts +1 -0
- package/dist/types/shared/src/primitives/dismissable-layer/index.d.ts.map +1 -1
- package/dist/types/shared/src/primitives/focus-guards/index.d.ts +2 -0
- package/dist/types/shared/src/primitives/focus-guards/index.d.ts.map +1 -0
- package/dist/types/shared/src/primitives/focus-scope/index.d.ts.map +1 -1
- package/dist/types/shared/src/primitives/grace-area/index.d.ts +13 -0
- package/dist/types/shared/src/primitives/grace-area/index.d.ts.map +1 -0
- package/dist/types/shared/src/primitives/listbox/index.d.ts +55 -0
- package/dist/types/shared/src/primitives/listbox/index.d.ts.map +1 -0
- package/dist/types/shared/src/primitives/menu/index.d.ts +35 -0
- package/dist/types/shared/src/primitives/menu/index.d.ts.map +1 -0
- package/dist/types/shared/src/primitives/navigation-menu/index.d.ts +23 -0
- package/dist/types/shared/src/primitives/navigation-menu/index.d.ts.map +1 -0
- package/dist/types/shared/src/primitives/popper/index.d.ts +83 -0
- package/dist/types/shared/src/primitives/popper/index.d.ts.map +1 -0
- package/dist/types/shared/src/primitives/select/index.d.ts +24 -0
- package/dist/types/shared/src/primitives/select/index.d.ts.map +1 -0
- package/dist/types/shared/src/primitives/tags-input/index.d.ts +36 -0
- package/dist/types/shared/src/primitives/tags-input/index.d.ts.map +1 -0
- package/dist/types/shared/src/primitives/toast/index.d.ts +42 -0
- package/dist/types/shared/src/primitives/toast/index.d.ts.map +1 -0
- package/dist/types/shared/src/primitives/tree/index.d.ts +72 -0
- package/dist/types/shared/src/primitives/tree/index.d.ts.map +1 -0
- package/dist/types/shared/src/variants/image.d.ts +35 -0
- package/dist/types/shared/src/variants/image.d.ts.map +1 -1
- package/dist/types/shared/src/variants/nav-link.d.ts +2 -1
- package/dist/types/shared/src/variants/nav-link.d.ts.map +1 -1
- package/dist/types/shared/src/variants/tour.d.ts +15 -0
- package/dist/types/shared/src/variants/tour.d.ts.map +1 -0
- package/dist/types/vue/src/components/app-shell/AppShell.vue.d.ts +6 -6
- package/dist/types/vue/src/components/button/Button.vue.d.ts +1 -1
- package/dist/types/vue/src/components/button/Button.vue.d.ts.map +1 -1
- package/dist/types/vue/src/components/calendar/Calendar.vue.d.ts +1 -1
- package/dist/types/vue/src/components/calendar/Calendar.vue.d.ts.map +1 -1
- package/dist/types/vue/src/components/carousel/composables/useCarousel.d.ts +1 -1
- package/dist/types/vue/src/components/combobox/Combobox.vue.d.ts.map +1 -1
- package/dist/types/vue/src/components/command-palette/CommandPalettePanel.vue.d.ts.map +1 -1
- package/dist/types/vue/src/components/config-provider/ConfigProvider.vue.d.ts +20 -0
- package/dist/types/vue/src/components/config-provider/ConfigProvider.vue.d.ts.map +1 -0
- package/dist/types/vue/src/components/config-provider/types.d.ts +10 -0
- package/dist/types/vue/src/components/config-provider/types.d.ts.map +1 -0
- package/dist/types/vue/src/components/config-provider/useConfig.d.ts +2 -0
- package/dist/types/vue/src/components/config-provider/useConfig.d.ts.map +1 -0
- package/dist/types/vue/src/components/date-range-field/DateRangeField.vue.d.ts.map +1 -1
- package/dist/types/vue/src/components/date-time-picker/DateTimePicker.vue.d.ts +1 -1
- package/dist/types/vue/src/components/date-time-picker/DateTimePicker.vue.d.ts.map +1 -1
- package/dist/types/vue/src/components/dialog/Dialog.vue.d.ts +3 -0
- package/dist/types/vue/src/components/dialog/Dialog.vue.d.ts.map +1 -1
- package/dist/types/vue/src/components/dialog/ModalContent.vue.d.ts.map +1 -1
- package/dist/types/vue/src/components/drawer/Drawer.vue.d.ts +3 -0
- package/dist/types/vue/src/components/drawer/Drawer.vue.d.ts.map +1 -1
- package/dist/types/vue/src/components/dropdown-menu/DropdownMenu.vue.d.ts +20 -8
- package/dist/types/vue/src/components/dropdown-menu/DropdownMenu.vue.d.ts.map +1 -1
- package/dist/types/vue/src/components/dropdown-menu/DropdownMenuCheckboxItem.vue.d.ts.map +1 -1
- package/dist/types/vue/src/components/float-button/FloatButton.vue.d.ts +2 -2
- package/dist/types/vue/src/components/hover-card/HoverCard.vue.d.ts +1 -1
- package/dist/types/vue/src/components/hover-card/HoverCard.vue.d.ts.map +1 -1
- package/dist/types/vue/src/components/icon-button/IconButton.vue.d.ts +2 -2
- package/dist/types/vue/src/components/icon-button/IconButton.vue.d.ts.map +1 -1
- package/dist/types/vue/src/components/image/Image.vue.d.ts +2 -1
- package/dist/types/vue/src/components/image/Image.vue.d.ts.map +1 -1
- package/dist/types/vue/src/components/image/composables/useImage.d.ts +2 -0
- package/dist/types/vue/src/components/image/composables/useImage.d.ts.map +1 -1
- package/dist/types/vue/src/components/lightbox/Lightbox.vue.d.ts.map +1 -1
- package/dist/types/vue/src/components/menubar/MenubarMenu.vue.d.ts.map +1 -1
- package/dist/types/vue/src/components/menubar/MenubarSub.vue.d.ts.map +1 -1
- package/dist/types/vue/src/components/month-grid/MonthGrid.vue.d.ts +1 -1
- package/dist/types/vue/src/components/multi-combobox/MultiCombobox.vue.d.ts.map +1 -1
- package/dist/types/vue/src/components/nav-link/NavLink.vue.d.ts +5 -10
- package/dist/types/vue/src/components/nav-link/NavLink.vue.d.ts.map +1 -1
- package/dist/types/vue/src/components/nav-link/NavLinkChild.d.ts +8 -0
- package/dist/types/vue/src/components/nav-link/NavLinkChild.d.ts.map +1 -1
- package/dist/types/vue/src/components/navigation-menu/NavigationMenu.vue.d.ts +2 -2
- package/dist/types/vue/src/components/navigation-menu/NavigationMenu.vue.d.ts.map +1 -1
- package/dist/types/vue/src/components/navigation-menu/NavigationMenuContent.vue.d.ts +6 -6
- package/dist/types/vue/src/components/overlay-branch/OverlayBranch.vue.d.ts +17 -0
- package/dist/types/vue/src/components/overlay-branch/OverlayBranch.vue.d.ts.map +1 -0
- package/dist/types/vue/src/components/pagination/composables/usePaginationWindow.d.ts +6 -6
- package/dist/types/vue/src/components/popconfirm/Popconfirm.vue.d.ts.map +1 -1
- package/dist/types/vue/src/components/popover/Popover.vue.d.ts +9 -9
- package/dist/types/vue/src/components/popover/Popover.vue.d.ts.map +1 -1
- package/dist/types/vue/src/components/popover/PopoverContent.vue.d.ts +9 -9
- package/dist/types/vue/src/components/popover/PopoverContent.vue.d.ts.map +1 -1
- package/dist/types/vue/src/components/range-calendar/RangeCalendar.vue.d.ts +1 -1
- package/dist/types/vue/src/components/range-calendar/RangeCalendar.vue.d.ts.map +1 -1
- package/dist/types/vue/src/components/range-slider/RangeSlider.vue.d.ts +2 -2
- package/dist/types/vue/src/components/scroll-area/ScrollArea.vue.d.ts +1 -1
- package/dist/types/vue/src/components/scroll-area/ScrollArea.vue.d.ts.map +1 -1
- package/dist/types/vue/src/components/select/Select.vue.d.ts.map +1 -1
- package/dist/types/vue/src/components/sheet/Sheet.vue.d.ts +4 -1
- package/dist/types/vue/src/components/sheet/Sheet.vue.d.ts.map +1 -1
- package/dist/types/vue/src/components/slider/Slider.vue.d.ts +2 -2
- package/dist/types/vue/src/components/split-button/SplitButton.vue.d.ts +1 -1
- package/dist/types/vue/src/components/tags-input/TagsInput.vue.d.ts +1 -1
- package/dist/types/vue/src/components/tags-input/TagsInput.vue.d.ts.map +1 -1
- package/dist/types/vue/src/components/toolbar/Toolbar.vue.d.ts +1 -1
- package/dist/types/vue/src/components/toolbar/ToolbarControl.vue.d.ts +1 -1
- package/dist/types/vue/src/components/tour/Tour.vue.d.ts +43 -0
- package/dist/types/vue/src/components/tour/Tour.vue.d.ts.map +1 -0
- package/dist/types/vue/src/components/tour/tour.variants.d.ts +2 -0
- package/dist/types/vue/src/components/tour/tour.variants.d.ts.map +1 -0
- package/dist/types/vue/src/components/tour/types.d.ts +39 -0
- package/dist/types/vue/src/components/tour/types.d.ts.map +1 -0
- package/dist/types/vue/src/components/tree/TreeRows.vue.d.ts +1 -1
- package/dist/types/vue/src/components/tree/TreeRows.vue.d.ts.map +1 -1
- package/dist/types/vue/src/components/tree/VirtualTreeWindow.vue.d.ts +1 -1
- package/dist/types/vue/src/components/tree/VirtualTreeWindow.vue.d.ts.map +1 -1
- package/dist/types/vue/src/components/tree-select/TreeSelect.vue.d.ts.map +1 -1
- package/dist/types/vue/src/components/virtual-list/composables/useVirtualList.d.ts +7 -7
- package/dist/types/vue/src/index.d.ts +6 -0
- package/dist/types/vue/src/index.d.ts.map +1 -1
- package/dist/types/vue/src/lib/anchored-overlay.d.ts +11 -5
- package/dist/types/vue/src/lib/anchored-overlay.d.ts.map +1 -1
- package/dist/types/vue/src/lib/reka/useVirtualChoices.d.ts +6 -6
- package/dist/types/vue/src/lib/reka/useVirtualChoices.d.ts.map +1 -1
- package/dist/types/vue/src/lib/reka/useVirtualTree.d.ts +1 -1
- package/dist/types/vue/src/lib/reka/useVirtualTree.d.ts.map +1 -1
- package/dist/types/vue/src/lib/useDirection.d.ts +1 -1
- package/dist/types/vue/src/primitives/alert-dialog/index.d.ts +133 -0
- package/dist/types/vue/src/primitives/alert-dialog/index.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/calendar/CalendarCellTrigger.d.ts +52 -0
- package/dist/types/vue/src/primitives/calendar/CalendarCellTrigger.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/calendar/CalendarGrid.d.ts +227 -0
- package/dist/types/vue/src/primitives/calendar/CalendarGrid.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/calendar/CalendarNav.d.ts +140 -0
- package/dist/types/vue/src/primitives/calendar/CalendarNav.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/calendar/CalendarRoot.d.ts +313 -0
- package/dist/types/vue/src/primitives/calendar/CalendarRoot.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/calendar/context.d.ts +48 -0
- package/dist/types/vue/src/primitives/calendar/context.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/calendar/index.d.ts +6 -0
- package/dist/types/vue/src/primitives/calendar/index.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/calendar/useCalendar.d.ts +65 -0
- package/dist/types/vue/src/primitives/calendar/useCalendar.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/combobox/ComboboxContent.d.ts +273 -0
- package/dist/types/vue/src/primitives/combobox/ComboboxContent.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/combobox/ComboboxItem.d.ts +166 -0
- package/dist/types/vue/src/primitives/combobox/ComboboxItem.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/combobox/ComboboxRoot.d.ts +376 -0
- package/dist/types/vue/src/primitives/combobox/ComboboxRoot.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/combobox/context.d.ts +68 -0
- package/dist/types/vue/src/primitives/combobox/context.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/combobox/index.d.ts +5 -0
- package/dist/types/vue/src/primitives/combobox/index.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/context-menu/index.d.ts +949 -0
- package/dist/types/vue/src/primitives/context-menu/index.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/date-field/DateFieldInput.d.ts +40 -0
- package/dist/types/vue/src/primitives/date-field/DateFieldInput.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/date-field/DateFieldRoot.d.ts +233 -0
- package/dist/types/vue/src/primitives/date-field/DateFieldRoot.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/date-field/context.d.ts +26 -0
- package/dist/types/vue/src/primitives/date-field/context.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/date-field/index.d.ts +4 -0
- package/dist/types/vue/src/primitives/date-field/index.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/date-field/segmentInput.d.ts +36 -0
- package/dist/types/vue/src/primitives/date-field/segmentInput.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/date-field/useDateFieldSegment.d.ts +32 -0
- package/dist/types/vue/src/primitives/date-field/useDateFieldSegment.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/date-range-field/DateRangeFieldInput.d.ts +51 -0
- package/dist/types/vue/src/primitives/date-range-field/DateRangeFieldInput.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/date-range-field/DateRangeFieldRoot.d.ts +221 -0
- package/dist/types/vue/src/primitives/date-range-field/DateRangeFieldRoot.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/date-range-field/context.d.ts +31 -0
- package/dist/types/vue/src/primitives/date-range-field/context.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/date-range-field/index.d.ts +4 -0
- package/dist/types/vue/src/primitives/date-range-field/index.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/dialog/DialogContent.d.ts +54 -0
- package/dist/types/vue/src/primitives/dialog/DialogContent.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/dialog/DialogContentImpl.d.ts +65 -0
- package/dist/types/vue/src/primitives/dialog/DialogContentImpl.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/dialog/DialogOverlay.d.ts +40 -0
- package/dist/types/vue/src/primitives/dialog/DialogOverlay.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/dialog/DialogPortal.d.ts +49 -0
- package/dist/types/vue/src/primitives/dialog/DialogPortal.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/dialog/DialogRoot.d.ts +62 -0
- package/dist/types/vue/src/primitives/dialog/DialogRoot.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/dialog/DialogText.d.ts +85 -0
- package/dist/types/vue/src/primitives/dialog/DialogText.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/dialog/DialogTrigger.d.ts +33 -0
- package/dist/types/vue/src/primitives/dialog/DialogTrigger.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/dialog/context.d.ts +16 -0
- package/dist/types/vue/src/primitives/dialog/context.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/dialog/index.d.ts +8 -0
- package/dist/types/vue/src/primitives/dialog/index.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/dismissable-layer/DismissableLayer.d.ts +76 -0
- package/dist/types/vue/src/primitives/dismissable-layer/DismissableLayer.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/dismissable-layer/DismissableLayerBranch.d.ts +26 -0
- package/dist/types/vue/src/primitives/dismissable-layer/DismissableLayerBranch.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/dismissable-layer/index.d.ts +3 -0
- package/dist/types/vue/src/primitives/dismissable-layer/index.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/dropdown-menu/index.d.ts +1033 -0
- package/dist/types/vue/src/primitives/dropdown-menu/index.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/focus-scope/FocusScope.d.ts +72 -0
- package/dist/types/vue/src/primitives/focus-scope/FocusScope.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/focus-scope/index.d.ts +2 -0
- package/dist/types/vue/src/primitives/focus-scope/index.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/hover-card/index.d.ts +442 -0
- package/dist/types/vue/src/primitives/hover-card/index.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/listbox/ListboxContent.d.ts +30 -0
- package/dist/types/vue/src/primitives/listbox/ListboxContent.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/listbox/ListboxFilter.d.ts +67 -0
- package/dist/types/vue/src/primitives/listbox/ListboxFilter.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/listbox/ListboxGroup.d.ts +82 -0
- package/dist/types/vue/src/primitives/listbox/ListboxGroup.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/listbox/ListboxItem.d.ts +58 -0
- package/dist/types/vue/src/primitives/listbox/ListboxItem.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/listbox/ListboxRoot.d.ts +156 -0
- package/dist/types/vue/src/primitives/listbox/ListboxRoot.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/listbox/context.d.ts +49 -0
- package/dist/types/vue/src/primitives/listbox/context.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/listbox/index.d.ts +7 -0
- package/dist/types/vue/src/primitives/listbox/index.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/menu/MenuContentImpl.d.ts +394 -0
- package/dist/types/vue/src/primitives/menu/MenuContentImpl.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/menu/MenuItem.d.ts +396 -0
- package/dist/types/vue/src/primitives/menu/MenuItem.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/menu/MenuRoot.d.ts +746 -0
- package/dist/types/vue/src/primitives/menu/MenuRoot.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/menu/context.d.ts +74 -0
- package/dist/types/vue/src/primitives/menu/context.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/menu/index.d.ts +5 -0
- package/dist/types/vue/src/primitives/menu/index.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/menu/wrap.d.ts +14 -0
- package/dist/types/vue/src/primitives/menu/wrap.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/menubar/index.d.ts +1036 -0
- package/dist/types/vue/src/primitives/menubar/index.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/navigation-menu/NavigationMenuContent.d.ts +101 -0
- package/dist/types/vue/src/primitives/navigation-menu/NavigationMenuContent.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/navigation-menu/NavigationMenuParts.d.ts +165 -0
- package/dist/types/vue/src/primitives/navigation-menu/NavigationMenuParts.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/navigation-menu/NavigationMenuRoot.d.ts +187 -0
- package/dist/types/vue/src/primitives/navigation-menu/NavigationMenuRoot.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/navigation-menu/context.d.ts +40 -0
- package/dist/types/vue/src/primitives/navigation-menu/context.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/navigation-menu/index.d.ts +5 -0
- package/dist/types/vue/src/primitives/navigation-menu/index.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/number-field/NumberFieldRoot.vue.d.ts +1 -1
- package/dist/types/vue/src/primitives/number-field/NumberFieldRoot.vue.d.ts.map +1 -1
- package/dist/types/vue/src/primitives/picker/createPicker.d.ts +247 -0
- package/dist/types/vue/src/primitives/picker/createPicker.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/picker/index.d.ts +414 -0
- package/dist/types/vue/src/primitives/picker/index.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/popover/PopoverContent.d.ts +257 -0
- package/dist/types/vue/src/primitives/popover/PopoverContent.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/popover/PopoverParts.d.ts +183 -0
- package/dist/types/vue/src/primitives/popover/PopoverParts.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/popover/PopoverRoot.d.ts +50 -0
- package/dist/types/vue/src/primitives/popover/PopoverRoot.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/popover/context.d.ts +13 -0
- package/dist/types/vue/src/primitives/popover/context.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/popover/index.d.ts +5 -0
- package/dist/types/vue/src/primitives/popover/index.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/popper/Arrow.d.ts +67 -0
- package/dist/types/vue/src/primitives/popper/Arrow.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/popper/PopperAnchor.d.ts +40 -0
- package/dist/types/vue/src/primitives/popper/PopperAnchor.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/popper/PopperArrow.d.ts +61 -0
- package/dist/types/vue/src/primitives/popper/PopperArrow.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/popper/PopperContent.d.ts +370 -0
- package/dist/types/vue/src/primitives/popper/PopperContent.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/popper/PopperRoot.d.ts +4 -0
- package/dist/types/vue/src/primitives/popper/PopperRoot.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/popper/context.d.ts +17 -0
- package/dist/types/vue/src/primitives/popper/context.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/popper/index.d.ts +7 -0
- package/dist/types/vue/src/primitives/popper/index.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/radio-group/RadioGroupRoot.d.ts +1 -1
- package/dist/types/vue/src/primitives/range-calendar/RangeCalendarCellTrigger.d.ts +52 -0
- package/dist/types/vue/src/primitives/range-calendar/RangeCalendarCellTrigger.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/range-calendar/RangeCalendarGrid.d.ts +252 -0
- package/dist/types/vue/src/primitives/range-calendar/RangeCalendarGrid.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/range-calendar/RangeCalendarRoot.d.ts +345 -0
- package/dist/types/vue/src/primitives/range-calendar/RangeCalendarRoot.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/range-calendar/context.d.ts +64 -0
- package/dist/types/vue/src/primitives/range-calendar/context.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/range-calendar/index.d.ts +6 -0
- package/dist/types/vue/src/primitives/range-calendar/index.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/rating/RatingRoot.d.ts +1 -1
- package/dist/types/vue/src/primitives/roving-focus/RovingFocusGroup.vue.d.ts +3 -3
- package/dist/types/vue/src/primitives/roving-focus/RovingFocusGroup.vue.d.ts.map +1 -1
- package/dist/types/vue/src/primitives/select/SelectContent.d.ts +265 -0
- package/dist/types/vue/src/primitives/select/SelectContent.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/select/SelectItem.d.ts +107 -0
- package/dist/types/vue/src/primitives/select/SelectItem.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/select/SelectRoot.d.ts +275 -0
- package/dist/types/vue/src/primitives/select/SelectRoot.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/select/context.d.ts +73 -0
- package/dist/types/vue/src/primitives/select/context.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/select/index.d.ts +5 -0
- package/dist/types/vue/src/primitives/select/index.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/slider/SliderRoot.d.ts +1 -1
- package/dist/types/vue/src/primitives/stepper/StepperRoot.d.ts +1 -1
- package/dist/types/vue/src/primitives/tags-input/TagsInputInput.d.ts +61 -0
- package/dist/types/vue/src/primitives/tags-input/TagsInputInput.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/tags-input/TagsInputItem.d.ts +76 -0
- package/dist/types/vue/src/primitives/tags-input/TagsInputItem.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/tags-input/TagsInputRoot.d.ts +196 -0
- package/dist/types/vue/src/primitives/tags-input/TagsInputRoot.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/tags-input/context.d.ts +30 -0
- package/dist/types/vue/src/primitives/tags-input/context.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/tags-input/index.d.ts +5 -0
- package/dist/types/vue/src/primitives/tags-input/index.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/teleport/Teleport.d.ts +49 -0
- package/dist/types/vue/src/primitives/teleport/Teleport.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/teleport/index.d.ts +2 -0
- package/dist/types/vue/src/primitives/teleport/index.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/time-field/TimeFieldInput.d.ts +40 -0
- package/dist/types/vue/src/primitives/time-field/TimeFieldInput.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/time-field/TimeFieldRoot.d.ts +220 -0
- package/dist/types/vue/src/primitives/time-field/TimeFieldRoot.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/time-field/context.d.ts +25 -0
- package/dist/types/vue/src/primitives/time-field/context.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/time-field/index.d.ts +5 -0
- package/dist/types/vue/src/primitives/time-field/index.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/toast/ToastProvider.d.ts +177 -0
- package/dist/types/vue/src/primitives/toast/ToastProvider.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/toast/ToastRoot.d.ts +233 -0
- package/dist/types/vue/src/primitives/toast/ToastRoot.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/toast/index.d.ts +3 -0
- package/dist/types/vue/src/primitives/toast/index.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/toolbar/ToolbarRoot.d.ts +1 -1
- package/dist/types/vue/src/primitives/tooltip/TooltipParts.d.ts +267 -0
- package/dist/types/vue/src/primitives/tooltip/TooltipParts.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/tooltip/TooltipRoot.d.ts +162 -0
- package/dist/types/vue/src/primitives/tooltip/TooltipRoot.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/tooltip/context.d.ts +32 -0
- package/dist/types/vue/src/primitives/tooltip/context.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/tooltip/index.d.ts +4 -0
- package/dist/types/vue/src/primitives/tooltip/index.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/tree/TreeItem.d.ts +40 -0
- package/dist/types/vue/src/primitives/tree/TreeItem.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/tree/TreeRoot.d.ts +50 -0
- package/dist/types/vue/src/primitives/tree/TreeRoot.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/tree/context.d.ts +29 -0
- package/dist/types/vue/src/primitives/tree/context.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/tree/index.d.ts +5 -0
- package/dist/types/vue/src/primitives/tree/index.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/utils/config.d.ts +14 -1
- package/dist/types/vue/src/primitives/utils/config.d.ts.map +1 -1
- package/dist/types/vue/src/primitives/utils/defu.d.ts +2 -0
- package/dist/types/vue/src/primitives/utils/defu.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/utils/env.d.ts +2 -0
- package/dist/types/vue/src/primitives/utils/env.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/utils/layers.d.ts +5 -0
- package/dist/types/vue/src/primitives/utils/layers.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/utils/propsWithoutDefaults.d.ts +2 -0
- package/dist/types/vue/src/primitives/utils/propsWithoutDefaults.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/utils/useBodyScrollLock.d.ts +2 -0
- package/dist/types/vue/src/primitives/utils/useBodyScrollLock.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/utils/useDirection.d.ts +1 -1
- package/dist/types/vue/src/primitives/utils/useDirection.d.ts.map +1 -1
- package/dist/types/vue/src/primitives/utils/useFocusGuards.d.ts +2 -0
- package/dist/types/vue/src/primitives/utils/useFocusGuards.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/utils/useGraceArea.d.ts +6 -0
- package/dist/types/vue/src/primitives/utils/useGraceArea.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/utils/useHideOthers.d.ts +4 -0
- package/dist/types/vue/src/primitives/utils/useHideOthers.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/utils/useIsUsingKeyboard.d.ts +4 -0
- package/dist/types/vue/src/primitives/utils/useIsUsingKeyboard.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/utils/useLocale.d.ts +3 -0
- package/dist/types/vue/src/primitives/utils/useLocale.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/utils/useVModel.d.ts +1 -0
- package/dist/types/vue/src/primitives/utils/useVModel.d.ts.map +1 -1
- package/dist/types/vue/src/primitives/visually-hidden/VisuallyHiddenInput.d.ts +1 -1
- package/dist/types/vue/src/singletons.d.ts +1 -1
- package/dist/types/vue/src/singletons.d.ts.map +1 -1
- package/package.json +6 -5
- package/src/components/alert-dialog/AlertDialog.vue +1 -1
- package/src/components/button/Button.vue +1 -1
- package/src/components/calendar/Calendar.vue +1 -1
- package/src/components/calendar/CalendarLevels.vue +1 -1
- package/src/components/combobox/Combobox.vue +6 -1
- package/src/components/combobox/ComboboxList.vue +1 -1
- package/src/components/command-palette/CommandPalette.vue +2 -2
- package/src/components/command-palette/CommandPaletteInput.vue +1 -1
- package/src/components/command-palette/CommandPaletteItem.vue +1 -1
- package/src/components/command-palette/CommandPalettePanel.vue +6 -1
- package/src/components/config-provider/ConfigProvider.vue +24 -0
- package/src/components/config-provider/types.ts +11 -0
- package/src/components/config-provider/useConfig.ts +5 -0
- package/src/components/context-menu/ContextMenu.vue +1 -1
- package/src/components/context-menu/ContextMenuCheckboxItem.vue +1 -1
- package/src/components/context-menu/ContextMenuGroup.vue +1 -1
- package/src/components/context-menu/ContextMenuItem.vue +1 -1
- package/src/components/context-menu/ContextMenuLabel.vue +1 -1
- package/src/components/context-menu/ContextMenuRadioGroup.vue +1 -1
- package/src/components/context-menu/ContextMenuRadioItem.vue +1 -1
- package/src/components/context-menu/ContextMenuSeparator.vue +1 -1
- package/src/components/context-menu/ContextMenuSub.vue +1 -1
- package/src/components/data-table/DataTableDragPreview.vue +1 -1
- package/src/components/date-field/DateField.vue +1 -1
- package/src/components/date-picker/DatePicker.vue +1 -1
- package/src/components/date-range-field/DateRangeField.vue +5 -1
- package/src/components/date-range-picker/DateRangePicker.vue +1 -1
- package/src/components/date-time-picker/DateTimePicker.vue +1 -1
- package/src/components/dialog/Dialog.vue +15 -2
- package/src/components/dialog/ModalContent.vue +2 -1
- package/src/components/drawer/Drawer.vue +15 -2
- package/src/components/dropdown-menu/DropdownMenu.vue +1 -1
- package/src/components/dropdown-menu/DropdownMenuCheckboxItem.vue +4 -1
- package/src/components/dropdown-menu/DropdownMenuGroup.vue +1 -1
- package/src/components/dropdown-menu/DropdownMenuItem.vue +1 -1
- package/src/components/dropdown-menu/DropdownMenuLabel.vue +1 -1
- package/src/components/dropdown-menu/DropdownMenuRadioGroup.vue +1 -1
- package/src/components/dropdown-menu/DropdownMenuRadioItem.vue +1 -1
- package/src/components/dropdown-menu/DropdownMenuSeparator.vue +1 -1
- package/src/components/dropdown-menu/DropdownMenuSub.vue +1 -1
- package/src/components/hover-card/HoverCard.vue +6 -1
- package/src/components/hover-card/composables/useHoverCardAnchor.ts +1 -1
- package/src/components/icon-button/IconButton.vue +1 -1
- package/src/components/image/Image.vue +58 -24
- package/src/components/image/composables/useImage.ts +46 -21
- package/src/components/lightbox/Lightbox.vue +2 -1
- package/src/components/lightbox/LightboxChrome.vue +1 -1
- package/src/components/listbox/Listbox.vue +1 -1
- package/src/components/listbox/ListboxOptionContent.vue +1 -1
- package/src/components/menubar/Menubar.vue +1 -1
- package/src/components/menubar/MenubarCheckboxItem.vue +1 -1
- package/src/components/menubar/MenubarGroup.vue +1 -1
- package/src/components/menubar/MenubarItem.vue +1 -1
- package/src/components/menubar/MenubarLabel.vue +1 -1
- package/src/components/menubar/MenubarMenu.vue +6 -1
- package/src/components/menubar/MenubarRadioGroup.vue +1 -1
- package/src/components/menubar/MenubarRadioItem.vue +1 -1
- package/src/components/menubar/MenubarSeparator.vue +1 -1
- package/src/components/menubar/MenubarSub.vue +6 -1
- package/src/components/multi-combobox/MultiCombobox.vue +6 -1
- package/src/components/multi-select/MultiSelect.vue +1 -1
- package/src/components/nav-link/NavLink.vue +21 -2
- package/src/components/nav-link/NavLinkChild.ts +2 -0
- package/src/components/navigation-menu/NavigationMenu.vue +5 -1
- package/src/components/navigation-menu/NavigationMenuContent.vue +2 -2
- package/src/components/navigation-menu/NavigationMenuItem.vue +1 -1
- package/src/components/navigation-menu/NavigationMenuLink.vue +1 -1
- package/src/components/navigation-menu/NavigationMenuTrigger.vue +1 -1
- package/src/components/number-input/NumberInput.vue +1 -1
- package/src/components/overlay-branch/OverlayBranch.vue +14 -0
- package/src/components/pagination/PaginationPopup.vue +1 -1
- package/src/components/popconfirm/Popconfirm.vue +6 -1
- package/src/components/popover/Popover.vue +6 -1
- package/src/components/popover/PopoverContent.vue +2 -2
- package/src/components/popover/composables/usePopoverCloseFocus.ts +1 -1
- package/src/components/range-calendar/RangeCalendar.vue +1 -1
- package/src/components/select/Select.vue +2 -1
- package/src/components/select/SelectList.vue +1 -1
- package/src/components/sheet/Sheet.vue +15 -2
- package/src/components/slider/SliderHandle.vue +1 -1
- package/src/components/tags-input/TagsInput.vue +1 -1
- package/src/components/tags-input/TagsInputChip.vue +1 -1
- package/src/components/time/Time.vue +1 -1
- package/src/components/time-field/TimeField.vue +1 -1
- package/src/components/toast/Toaster.vue +1 -1
- package/src/components/toggle/Toggle.vue +1 -1
- package/src/components/toolbar/ToolbarControl.vue +1 -1
- package/src/components/tooltip/Tooltip.vue +1 -1
- package/src/components/tooltip/TooltipBubble.vue +1 -1
- package/src/components/tooltip/TooltipDirectiveRoot.ts +1 -1
- package/src/components/tooltip/TooltipProvider.vue +1 -1
- package/src/components/tooltip/composables/useTooltipTarget.ts +1 -1
- package/src/components/tour/Tour.vue +608 -0
- package/src/components/tour/tour.variants.ts +1 -0
- package/src/components/tour/types.ts +74 -0
- package/src/components/tree/Tree.vue +1 -1
- package/src/components/tree/TreeRows.vue +1 -1
- package/src/components/tree/VirtualTreeWindow.vue +1 -1
- package/src/components/tree-select/TreeSelect.vue +2 -3
- package/src/components/tree-select/composables/useTreeSelect.ts +2 -2
- package/src/index.ts +26 -0
- package/src/lib/anchored-overlay.ts +2 -1
- package/src/lib/dialog-focus.ts +1 -1
- package/src/lib/reka/useVirtualChoices.ts +7 -8
- package/src/lib/reka/useVirtualTree.ts +1 -1
- package/src/primitives/alert-dialog/LICENSE +44 -0
- package/src/primitives/alert-dialog/index.ts +166 -0
- package/src/primitives/calendar/CalendarCellTrigger.ts +190 -0
- package/src/primitives/calendar/CalendarGrid.ts +101 -0
- package/src/primitives/calendar/CalendarNav.ts +88 -0
- package/src/primitives/calendar/CalendarRoot.ts +324 -0
- package/src/primitives/calendar/LICENSE +44 -0
- package/src/primitives/calendar/context.ts +55 -0
- package/src/primitives/calendar/index.ts +12 -0
- package/src/primitives/calendar/useCalendar.ts +164 -0
- package/src/primitives/combobox/ComboboxContent.ts +199 -0
- package/src/primitives/combobox/ComboboxItem.ts +209 -0
- package/src/primitives/combobox/ComboboxRoot.ts +489 -0
- package/src/primitives/combobox/LICENSE +44 -0
- package/src/primitives/combobox/context.ts +47 -0
- package/src/primitives/combobox/index.ts +23 -0
- package/src/primitives/context-menu/LICENSE +44 -0
- package/src/primitives/context-menu/index.ts +388 -0
- package/src/primitives/date-field/DateFieldInput.ts +29 -0
- package/src/primitives/date-field/DateFieldRoot.ts +343 -0
- package/src/primitives/date-field/LICENSE +44 -0
- package/src/primitives/date-field/context.ts +29 -0
- package/src/primitives/date-field/index.ts +3 -0
- package/src/primitives/date-field/segmentInput.ts +96 -0
- package/src/primitives/date-field/useDateFieldSegment.ts +63 -0
- package/src/primitives/date-range-field/DateRangeFieldInput.ts +42 -0
- package/src/primitives/date-range-field/DateRangeFieldRoot.ts +389 -0
- package/src/primitives/date-range-field/LICENSE +44 -0
- package/src/primitives/date-range-field/context.ts +36 -0
- package/src/primitives/date-range-field/index.ts +12 -0
- package/src/primitives/dialog/DialogContent.ts +193 -0
- package/src/primitives/dialog/DialogContentImpl.ts +114 -0
- package/src/primitives/dialog/DialogOverlay.ts +99 -0
- package/src/primitives/dialog/DialogPortal.ts +33 -0
- package/src/primitives/dialog/DialogRoot.ts +61 -0
- package/src/primitives/dialog/DialogText.ts +59 -0
- package/src/primitives/dialog/DialogTrigger.ts +46 -0
- package/src/primitives/dialog/LICENSE +44 -0
- package/src/primitives/dialog/context.ts +19 -0
- package/src/primitives/dialog/index.ts +7 -0
- package/src/primitives/dismissable-layer/DismissableLayer.ts +212 -0
- package/src/primitives/dismissable-layer/DismissableLayerBranch.ts +27 -0
- package/src/primitives/dismissable-layer/LICENSE +44 -0
- package/src/primitives/dismissable-layer/index.ts +11 -0
- package/src/primitives/dropdown-menu/LICENSE +44 -0
- package/src/primitives/dropdown-menu/index.ts +344 -0
- package/src/primitives/focus-scope/FocusScope.ts +118 -0
- package/src/primitives/focus-scope/LICENSE +44 -0
- package/src/primitives/focus-scope/index.ts +1 -0
- package/src/primitives/hover-card/LICENSE +44 -0
- package/src/primitives/hover-card/index.ts +357 -0
- package/src/primitives/listbox/LICENSE +44 -0
- package/src/primitives/listbox/ListboxContent.ts +80 -0
- package/src/primitives/listbox/ListboxFilter.ts +130 -0
- package/src/primitives/listbox/ListboxGroup.ts +67 -0
- package/src/primitives/listbox/ListboxItem.ts +125 -0
- package/src/primitives/listbox/ListboxRoot.ts +376 -0
- package/src/primitives/listbox/context.ts +62 -0
- package/src/primitives/listbox/index.ts +17 -0
- package/src/primitives/menu/LICENSE +44 -0
- package/src/primitives/menu/MenuContentImpl.ts +304 -0
- package/src/primitives/menu/MenuItem.ts +495 -0
- package/src/primitives/menu/MenuRoot.ts +295 -0
- package/src/primitives/menu/context.ts +72 -0
- package/src/primitives/menu/index.ts +26 -0
- package/src/primitives/menu/wrap.ts +53 -0
- package/src/primitives/menubar/index.ts +494 -0
- package/src/primitives/navigation-menu/LICENSE +44 -0
- package/src/primitives/navigation-menu/NavigationMenuContent.ts +375 -0
- package/src/primitives/navigation-menu/NavigationMenuParts.ts +432 -0
- package/src/primitives/navigation-menu/NavigationMenuRoot.ts +260 -0
- package/src/primitives/navigation-menu/context.ts +50 -0
- package/src/primitives/navigation-menu/index.ts +20 -0
- package/src/primitives/number-field/__snapshots__/NumberField.test.ts.snap +288 -0
- package/src/primitives/picker/LICENSE +44 -0
- package/src/primitives/picker/createPicker.ts +618 -0
- package/src/primitives/picker/index.ts +26 -0
- package/src/primitives/popover/LICENSE +44 -0
- package/src/primitives/popover/PopoverContent.ts +243 -0
- package/src/primitives/popover/PopoverParts.ts +143 -0
- package/src/primitives/popover/PopoverRoot.ts +58 -0
- package/src/primitives/popover/context.ts +16 -0
- package/src/primitives/popover/index.ts +14 -0
- package/src/primitives/popper/Arrow.ts +49 -0
- package/src/primitives/popper/LICENSE +44 -0
- package/src/primitives/popper/PopperAnchor.ts +33 -0
- package/src/primitives/popper/PopperArrow.ts +77 -0
- package/src/primitives/popper/PopperContent.ts +262 -0
- package/src/primitives/popper/PopperRoot.ts +16 -0
- package/src/primitives/popper/context.ts +23 -0
- package/src/primitives/popper/index.ts +11 -0
- package/src/primitives/range-calendar/LICENSE +44 -0
- package/src/primitives/range-calendar/RangeCalendarCellTrigger.ts +241 -0
- package/src/primitives/range-calendar/RangeCalendarGrid.ts +90 -0
- package/src/primitives/range-calendar/RangeCalendarRoot.ts +413 -0
- package/src/primitives/range-calendar/context.ts +71 -0
- package/src/primitives/range-calendar/index.ts +21 -0
- package/src/primitives/select/LICENSE +44 -0
- package/src/primitives/select/SelectContent.ts +330 -0
- package/src/primitives/select/SelectItem.ts +204 -0
- package/src/primitives/select/SelectRoot.ts +408 -0
- package/src/primitives/select/context.ts +74 -0
- package/src/primitives/select/index.ts +17 -0
- package/src/primitives/tags-input/LICENSE +44 -0
- package/src/primitives/tags-input/TagsInputInput.ts +148 -0
- package/src/primitives/tags-input/TagsInputItem.ts +105 -0
- package/src/primitives/tags-input/TagsInputRoot.ts +215 -0
- package/src/primitives/tags-input/context.ts +36 -0
- package/src/primitives/tags-input/index.ts +9 -0
- package/src/primitives/teleport/LICENSE +44 -0
- package/src/primitives/teleport/Teleport.ts +41 -0
- package/src/primitives/teleport/index.ts +1 -0
- package/src/primitives/time-field/LICENSE +44 -0
- package/src/primitives/time-field/TimeFieldInput.ts +29 -0
- package/src/primitives/time-field/TimeFieldRoot.ts +379 -0
- package/src/primitives/time-field/context.ts +28 -0
- package/src/primitives/time-field/index.ts +4 -0
- package/src/primitives/toast/LICENSE +44 -0
- package/src/primitives/toast/ToastProvider.ts +311 -0
- package/src/primitives/toast/ToastRoot.ts +518 -0
- package/src/primitives/toast/index.ts +16 -0
- package/src/primitives/tooltip/LICENSE +44 -0
- package/src/primitives/tooltip/TooltipParts.ts +351 -0
- package/src/primitives/tooltip/TooltipRoot.ts +170 -0
- package/src/primitives/tooltip/context.ts +39 -0
- package/src/primitives/tooltip/index.ts +9 -0
- package/src/primitives/tree/LICENSE +44 -0
- package/src/primitives/tree/TreeItem.ts +256 -0
- package/src/primitives/tree/TreeRoot.ts +273 -0
- package/src/primitives/tree/context.ts +34 -0
- package/src/primitives/tree/index.ts +4 -0
- package/src/primitives/utils/config.ts +19 -1
- package/src/primitives/utils/defu.ts +26 -0
- package/src/primitives/utils/env.ts +5 -0
- package/src/primitives/utils/layers.ts +4 -0
- package/src/primitives/utils/propsWithoutDefaults.ts +8 -0
- package/src/primitives/utils/useBodyScrollLock.ts +29 -0
- package/src/primitives/utils/useFocusGuards.ts +10 -0
- package/src/primitives/utils/useGraceArea.ts +85 -0
- package/src/primitives/utils/useHideOthers.ts +18 -0
- package/src/primitives/utils/useIsUsingKeyboard.ts +25 -0
- package/src/primitives/utils/useLocale.ts +7 -0
- package/src/primitives/utils/useVModel.ts +8 -3
- package/src/singletons.ts +1 -1
|
@@ -0,0 +1,485 @@
|
|
|
1
|
+
const supportedLocales: string[] = [
|
|
2
|
+
'ach',
|
|
3
|
+
'af',
|
|
4
|
+
'am',
|
|
5
|
+
'an',
|
|
6
|
+
'ar',
|
|
7
|
+
'ast',
|
|
8
|
+
'az',
|
|
9
|
+
'be',
|
|
10
|
+
'bg',
|
|
11
|
+
'bn',
|
|
12
|
+
'br',
|
|
13
|
+
'bs',
|
|
14
|
+
'ca',
|
|
15
|
+
'cak',
|
|
16
|
+
'ckb',
|
|
17
|
+
'cs',
|
|
18
|
+
'cy',
|
|
19
|
+
'da',
|
|
20
|
+
'de',
|
|
21
|
+
'dsb',
|
|
22
|
+
'el',
|
|
23
|
+
'en',
|
|
24
|
+
'eo',
|
|
25
|
+
'es',
|
|
26
|
+
'et',
|
|
27
|
+
'eu',
|
|
28
|
+
'fa',
|
|
29
|
+
'ff',
|
|
30
|
+
'fi',
|
|
31
|
+
'fr',
|
|
32
|
+
'fy',
|
|
33
|
+
'ga',
|
|
34
|
+
'gd',
|
|
35
|
+
'gl',
|
|
36
|
+
'he',
|
|
37
|
+
'hr',
|
|
38
|
+
'hsb',
|
|
39
|
+
'hu',
|
|
40
|
+
'ia',
|
|
41
|
+
'id',
|
|
42
|
+
'it',
|
|
43
|
+
'ja',
|
|
44
|
+
'ka',
|
|
45
|
+
'kk',
|
|
46
|
+
'kn',
|
|
47
|
+
'ko',
|
|
48
|
+
'lb',
|
|
49
|
+
'lo',
|
|
50
|
+
'lt',
|
|
51
|
+
'lv',
|
|
52
|
+
'meh',
|
|
53
|
+
'ml',
|
|
54
|
+
'ms',
|
|
55
|
+
'nl',
|
|
56
|
+
'nn',
|
|
57
|
+
'no',
|
|
58
|
+
'oc',
|
|
59
|
+
'pl',
|
|
60
|
+
'pt',
|
|
61
|
+
'rm',
|
|
62
|
+
'ro',
|
|
63
|
+
'ru',
|
|
64
|
+
'sc',
|
|
65
|
+
'scn',
|
|
66
|
+
'sk',
|
|
67
|
+
'sl',
|
|
68
|
+
'sr',
|
|
69
|
+
'sv',
|
|
70
|
+
'szl',
|
|
71
|
+
'tg',
|
|
72
|
+
'th',
|
|
73
|
+
'tr',
|
|
74
|
+
'uk',
|
|
75
|
+
'zh-CN',
|
|
76
|
+
'zh-TW',
|
|
77
|
+
]
|
|
78
|
+
const placeholderFields: string[] = ['year', 'month', 'day']
|
|
79
|
+
const placeholders: Record<string, { year: string; month: string; day: string }> = {
|
|
80
|
+
ach: {
|
|
81
|
+
year: 'mwaka',
|
|
82
|
+
month: 'dwe',
|
|
83
|
+
day: 'nino',
|
|
84
|
+
},
|
|
85
|
+
af: {
|
|
86
|
+
year: 'jjjj',
|
|
87
|
+
month: 'mm',
|
|
88
|
+
day: 'dd',
|
|
89
|
+
},
|
|
90
|
+
am: {
|
|
91
|
+
year: 'ዓዓዓዓ',
|
|
92
|
+
month: 'ሚሜ',
|
|
93
|
+
day: 'ቀቀ',
|
|
94
|
+
},
|
|
95
|
+
an: {
|
|
96
|
+
year: 'aaaa',
|
|
97
|
+
month: 'mm',
|
|
98
|
+
day: 'dd',
|
|
99
|
+
},
|
|
100
|
+
ar: {
|
|
101
|
+
year: 'سنة',
|
|
102
|
+
month: 'شهر',
|
|
103
|
+
day: 'يوم',
|
|
104
|
+
},
|
|
105
|
+
ast: {
|
|
106
|
+
year: 'aaaa',
|
|
107
|
+
month: 'mm',
|
|
108
|
+
day: 'dd',
|
|
109
|
+
},
|
|
110
|
+
az: {
|
|
111
|
+
year: 'iiii',
|
|
112
|
+
month: 'aa',
|
|
113
|
+
day: 'gg',
|
|
114
|
+
},
|
|
115
|
+
be: {
|
|
116
|
+
year: 'гггг',
|
|
117
|
+
month: 'мм',
|
|
118
|
+
day: 'дд',
|
|
119
|
+
},
|
|
120
|
+
bg: {
|
|
121
|
+
year: 'гггг',
|
|
122
|
+
month: 'мм',
|
|
123
|
+
day: 'дд',
|
|
124
|
+
},
|
|
125
|
+
bn: {
|
|
126
|
+
year: 'yyyy',
|
|
127
|
+
month: 'মিমি',
|
|
128
|
+
day: 'dd',
|
|
129
|
+
},
|
|
130
|
+
br: {
|
|
131
|
+
year: 'bbbb',
|
|
132
|
+
month: 'mm',
|
|
133
|
+
day: 'dd',
|
|
134
|
+
},
|
|
135
|
+
bs: {
|
|
136
|
+
year: 'gggg',
|
|
137
|
+
month: 'mm',
|
|
138
|
+
day: 'dd',
|
|
139
|
+
},
|
|
140
|
+
ca: {
|
|
141
|
+
year: 'aaaa',
|
|
142
|
+
month: 'mm',
|
|
143
|
+
day: 'dd',
|
|
144
|
+
},
|
|
145
|
+
cak: {
|
|
146
|
+
year: 'jjjj',
|
|
147
|
+
month: 'ii',
|
|
148
|
+
day: "q'q'",
|
|
149
|
+
},
|
|
150
|
+
ckb: {
|
|
151
|
+
year: 'ساڵ',
|
|
152
|
+
month: 'مانگ',
|
|
153
|
+
day: 'ڕۆژ',
|
|
154
|
+
},
|
|
155
|
+
cs: {
|
|
156
|
+
year: 'rrrr',
|
|
157
|
+
month: 'mm',
|
|
158
|
+
day: 'dd',
|
|
159
|
+
},
|
|
160
|
+
cy: {
|
|
161
|
+
year: 'bbbb',
|
|
162
|
+
month: 'mm',
|
|
163
|
+
day: 'dd',
|
|
164
|
+
},
|
|
165
|
+
da: {
|
|
166
|
+
year: 'åååå',
|
|
167
|
+
month: 'mm',
|
|
168
|
+
day: 'dd',
|
|
169
|
+
},
|
|
170
|
+
de: {
|
|
171
|
+
year: 'jjjj',
|
|
172
|
+
month: 'mm',
|
|
173
|
+
day: 'tt',
|
|
174
|
+
},
|
|
175
|
+
dsb: {
|
|
176
|
+
year: 'llll',
|
|
177
|
+
month: 'mm',
|
|
178
|
+
day: 'źź',
|
|
179
|
+
},
|
|
180
|
+
el: {
|
|
181
|
+
year: 'εεεε',
|
|
182
|
+
month: 'μμ',
|
|
183
|
+
day: 'ηη',
|
|
184
|
+
},
|
|
185
|
+
en: {
|
|
186
|
+
year: 'yyyy',
|
|
187
|
+
month: 'mm',
|
|
188
|
+
day: 'dd',
|
|
189
|
+
},
|
|
190
|
+
eo: {
|
|
191
|
+
year: 'jjjj',
|
|
192
|
+
month: 'mm',
|
|
193
|
+
day: 'tt',
|
|
194
|
+
},
|
|
195
|
+
es: {
|
|
196
|
+
year: 'aaaa',
|
|
197
|
+
month: 'mm',
|
|
198
|
+
day: 'dd',
|
|
199
|
+
},
|
|
200
|
+
et: {
|
|
201
|
+
year: 'aaaa',
|
|
202
|
+
month: 'kk',
|
|
203
|
+
day: 'pp',
|
|
204
|
+
},
|
|
205
|
+
eu: {
|
|
206
|
+
year: 'uuuu',
|
|
207
|
+
month: 'hh',
|
|
208
|
+
day: 'ee',
|
|
209
|
+
},
|
|
210
|
+
fa: {
|
|
211
|
+
year: 'سال',
|
|
212
|
+
month: 'ماه',
|
|
213
|
+
day: 'روز',
|
|
214
|
+
},
|
|
215
|
+
ff: {
|
|
216
|
+
year: 'hhhh',
|
|
217
|
+
month: 'll',
|
|
218
|
+
day: 'ññ',
|
|
219
|
+
},
|
|
220
|
+
fi: {
|
|
221
|
+
year: 'vvvv',
|
|
222
|
+
month: 'kk',
|
|
223
|
+
day: 'pp',
|
|
224
|
+
},
|
|
225
|
+
fr: {
|
|
226
|
+
year: 'aaaa',
|
|
227
|
+
month: 'mm',
|
|
228
|
+
day: 'jj',
|
|
229
|
+
},
|
|
230
|
+
fy: {
|
|
231
|
+
year: 'jjjj',
|
|
232
|
+
month: 'mm',
|
|
233
|
+
day: 'dd',
|
|
234
|
+
},
|
|
235
|
+
ga: {
|
|
236
|
+
year: 'bbbb',
|
|
237
|
+
month: 'mm',
|
|
238
|
+
day: 'll',
|
|
239
|
+
},
|
|
240
|
+
gd: {
|
|
241
|
+
year: 'bbbb',
|
|
242
|
+
month: 'mm',
|
|
243
|
+
day: 'll',
|
|
244
|
+
},
|
|
245
|
+
gl: {
|
|
246
|
+
year: 'aaaa',
|
|
247
|
+
month: 'mm',
|
|
248
|
+
day: 'dd',
|
|
249
|
+
},
|
|
250
|
+
he: {
|
|
251
|
+
year: 'שנה',
|
|
252
|
+
month: 'חודש',
|
|
253
|
+
day: 'יום',
|
|
254
|
+
},
|
|
255
|
+
hr: {
|
|
256
|
+
year: 'gggg',
|
|
257
|
+
month: 'mm',
|
|
258
|
+
day: 'dd',
|
|
259
|
+
},
|
|
260
|
+
hsb: {
|
|
261
|
+
year: 'llll',
|
|
262
|
+
month: 'mm',
|
|
263
|
+
day: 'dd',
|
|
264
|
+
},
|
|
265
|
+
hu: {
|
|
266
|
+
year: 'éééé',
|
|
267
|
+
month: 'hh',
|
|
268
|
+
day: 'nn',
|
|
269
|
+
},
|
|
270
|
+
ia: {
|
|
271
|
+
year: 'aaaa',
|
|
272
|
+
month: 'mm',
|
|
273
|
+
day: 'dd',
|
|
274
|
+
},
|
|
275
|
+
id: {
|
|
276
|
+
year: 'tttt',
|
|
277
|
+
month: 'bb',
|
|
278
|
+
day: 'hh',
|
|
279
|
+
},
|
|
280
|
+
it: {
|
|
281
|
+
year: 'aaaa',
|
|
282
|
+
month: 'mm',
|
|
283
|
+
day: 'gg',
|
|
284
|
+
},
|
|
285
|
+
ja: {
|
|
286
|
+
year: ' 年 ',
|
|
287
|
+
month: '月',
|
|
288
|
+
day: '日',
|
|
289
|
+
},
|
|
290
|
+
ka: {
|
|
291
|
+
year: 'წწწწ',
|
|
292
|
+
month: 'თთ',
|
|
293
|
+
day: 'რრ',
|
|
294
|
+
},
|
|
295
|
+
kk: {
|
|
296
|
+
year: 'жжжж',
|
|
297
|
+
month: 'аа',
|
|
298
|
+
day: 'кк',
|
|
299
|
+
},
|
|
300
|
+
kn: {
|
|
301
|
+
year: 'ವವವವ',
|
|
302
|
+
month: 'ಮಿಮೀ',
|
|
303
|
+
day: 'ದಿದಿ',
|
|
304
|
+
},
|
|
305
|
+
ko: {
|
|
306
|
+
year: '연도',
|
|
307
|
+
month: '월',
|
|
308
|
+
day: '일',
|
|
309
|
+
},
|
|
310
|
+
lb: {
|
|
311
|
+
year: 'jjjj',
|
|
312
|
+
month: 'mm',
|
|
313
|
+
day: 'dd',
|
|
314
|
+
},
|
|
315
|
+
lo: {
|
|
316
|
+
year: 'ປປປປ',
|
|
317
|
+
month: 'ດດ',
|
|
318
|
+
day: 'ວວ',
|
|
319
|
+
},
|
|
320
|
+
lt: {
|
|
321
|
+
year: 'mmmm',
|
|
322
|
+
month: 'mm',
|
|
323
|
+
day: 'dd',
|
|
324
|
+
},
|
|
325
|
+
lv: {
|
|
326
|
+
year: 'gggg',
|
|
327
|
+
month: 'mm',
|
|
328
|
+
day: 'dd',
|
|
329
|
+
},
|
|
330
|
+
meh: {
|
|
331
|
+
year: 'aaaa',
|
|
332
|
+
month: 'mm',
|
|
333
|
+
day: 'dd',
|
|
334
|
+
},
|
|
335
|
+
ml: {
|
|
336
|
+
year: 'വർഷം',
|
|
337
|
+
month: 'മാസം',
|
|
338
|
+
day: 'തീയതി',
|
|
339
|
+
},
|
|
340
|
+
ms: {
|
|
341
|
+
year: 'tttt',
|
|
342
|
+
month: 'mm',
|
|
343
|
+
day: 'hh',
|
|
344
|
+
},
|
|
345
|
+
nl: {
|
|
346
|
+
year: 'jjjj',
|
|
347
|
+
month: 'mm',
|
|
348
|
+
day: 'dd',
|
|
349
|
+
},
|
|
350
|
+
nn: {
|
|
351
|
+
year: 'åååå',
|
|
352
|
+
month: 'mm',
|
|
353
|
+
day: 'dd',
|
|
354
|
+
},
|
|
355
|
+
no: {
|
|
356
|
+
year: 'åååå',
|
|
357
|
+
month: 'mm',
|
|
358
|
+
day: 'dd',
|
|
359
|
+
},
|
|
360
|
+
oc: {
|
|
361
|
+
year: 'aaaa',
|
|
362
|
+
month: 'mm',
|
|
363
|
+
day: 'jj',
|
|
364
|
+
},
|
|
365
|
+
pl: {
|
|
366
|
+
year: 'rrrr',
|
|
367
|
+
month: 'mm',
|
|
368
|
+
day: 'dd',
|
|
369
|
+
},
|
|
370
|
+
pt: {
|
|
371
|
+
year: 'aaaa',
|
|
372
|
+
month: 'mm',
|
|
373
|
+
day: 'dd',
|
|
374
|
+
},
|
|
375
|
+
rm: {
|
|
376
|
+
year: 'oooo',
|
|
377
|
+
month: 'mm',
|
|
378
|
+
day: 'dd',
|
|
379
|
+
},
|
|
380
|
+
ro: {
|
|
381
|
+
year: 'aaaa',
|
|
382
|
+
month: 'll',
|
|
383
|
+
day: 'zz',
|
|
384
|
+
},
|
|
385
|
+
ru: {
|
|
386
|
+
year: 'гггг',
|
|
387
|
+
month: 'мм',
|
|
388
|
+
day: 'дд',
|
|
389
|
+
},
|
|
390
|
+
sc: {
|
|
391
|
+
year: 'aaaa',
|
|
392
|
+
month: 'mm',
|
|
393
|
+
day: 'dd',
|
|
394
|
+
},
|
|
395
|
+
scn: {
|
|
396
|
+
year: 'aaaa',
|
|
397
|
+
month: 'mm',
|
|
398
|
+
day: 'jj',
|
|
399
|
+
},
|
|
400
|
+
sk: {
|
|
401
|
+
year: 'rrrr',
|
|
402
|
+
month: 'mm',
|
|
403
|
+
day: 'dd',
|
|
404
|
+
},
|
|
405
|
+
sl: {
|
|
406
|
+
year: 'llll',
|
|
407
|
+
month: 'mm',
|
|
408
|
+
day: 'dd',
|
|
409
|
+
},
|
|
410
|
+
sr: {
|
|
411
|
+
year: 'гггг',
|
|
412
|
+
month: 'мм',
|
|
413
|
+
day: 'дд',
|
|
414
|
+
},
|
|
415
|
+
sv: {
|
|
416
|
+
year: 'åååå',
|
|
417
|
+
month: 'mm',
|
|
418
|
+
day: 'dd',
|
|
419
|
+
},
|
|
420
|
+
szl: {
|
|
421
|
+
year: 'rrrr',
|
|
422
|
+
month: 'mm',
|
|
423
|
+
day: 'dd',
|
|
424
|
+
},
|
|
425
|
+
tg: {
|
|
426
|
+
year: 'сссс',
|
|
427
|
+
month: 'мм',
|
|
428
|
+
day: 'рр',
|
|
429
|
+
},
|
|
430
|
+
th: {
|
|
431
|
+
year: 'ปปปป',
|
|
432
|
+
month: 'ดด',
|
|
433
|
+
day: 'วว',
|
|
434
|
+
},
|
|
435
|
+
tr: {
|
|
436
|
+
year: 'yyyy',
|
|
437
|
+
month: 'aa',
|
|
438
|
+
day: 'gg',
|
|
439
|
+
},
|
|
440
|
+
uk: {
|
|
441
|
+
year: 'рррр',
|
|
442
|
+
month: 'мм',
|
|
443
|
+
day: 'дд',
|
|
444
|
+
},
|
|
445
|
+
'zh-CN': {
|
|
446
|
+
year: '年',
|
|
447
|
+
month: '月',
|
|
448
|
+
day: '日',
|
|
449
|
+
},
|
|
450
|
+
'zh-TW': {
|
|
451
|
+
year: '年',
|
|
452
|
+
month: '月',
|
|
453
|
+
day: '日',
|
|
454
|
+
},
|
|
455
|
+
}
|
|
456
|
+
function getPlaceholderObj(locale: string) {
|
|
457
|
+
if (!isSupportedLocale(locale)) {
|
|
458
|
+
const localeLanguage = getLocaleLanguage(locale)
|
|
459
|
+
if (!isSupportedLocale(localeLanguage)) return placeholders.en
|
|
460
|
+
else return placeholders[localeLanguage]
|
|
461
|
+
} else return placeholders[locale]
|
|
462
|
+
}
|
|
463
|
+
export function getPlaceholder(field: string, value: string, locale: string) {
|
|
464
|
+
if (isPlaceholderField(field))
|
|
465
|
+
return getPlaceholderObj(locale)![field as 'year' | 'month' | 'day']
|
|
466
|
+
if (isDefaultField(field)) return value
|
|
467
|
+
if (isTimeField(field)) return '––'
|
|
468
|
+
return ''
|
|
469
|
+
}
|
|
470
|
+
function isSupportedLocale(locale: string) {
|
|
471
|
+
return supportedLocales.includes(locale)
|
|
472
|
+
}
|
|
473
|
+
function isPlaceholderField(field: string) {
|
|
474
|
+
return placeholderFields.includes(field)
|
|
475
|
+
}
|
|
476
|
+
function isTimeField(field: string) {
|
|
477
|
+
return field === 'hour' || field === 'minute' || field === 'second'
|
|
478
|
+
}
|
|
479
|
+
function isDefaultField(field: string) {
|
|
480
|
+
return field === 'era' || field === 'dayPeriod'
|
|
481
|
+
}
|
|
482
|
+
function getLocaleLanguage(locale: string) {
|
|
483
|
+
if (Intl.Locale) return new Intl.Locale(locale).language
|
|
484
|
+
return locale.split('-')[0]!
|
|
485
|
+
}
|
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
import { isSameDay, type DateValue } from '@internationalized/date'
|
|
2
|
+
import { getDaysBetween } from './calendar'
|
|
3
|
+
import type { Matcher } from './calendar-view'
|
|
4
|
+
import { areAllDaysBetweenValid, isBefore, isBetween } from './comparators'
|
|
5
|
+
|
|
6
|
+
export type FixedDate = 'start' | 'end' | undefined
|
|
7
|
+
|
|
8
|
+
export interface CalendarRange {
|
|
9
|
+
start: DateValue | undefined
|
|
10
|
+
end: DateValue | undefined
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export interface RangeLimits {
|
|
14
|
+
start: DateValue | undefined
|
|
15
|
+
end: DateValue | undefined
|
|
16
|
+
fixedDate: FixedDate
|
|
17
|
+
maximumDays: number | undefined
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export function isRangeInvalid(range: CalendarRange, isDateDisabled: Matcher) {
|
|
21
|
+
if (range.start && isDateDisabled(range.start)) return true
|
|
22
|
+
if (range.end && isDateDisabled(range.end)) return true
|
|
23
|
+
return !!(range.start && range.end && isBefore(range.end, range.start))
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export function isRangeDateSelected(range: CalendarRange, date: DateValue) {
|
|
27
|
+
if (range.start && isSameDay(range.start, date)) return true
|
|
28
|
+
if (range.end && isSameDay(range.end, date)) return true
|
|
29
|
+
if (range.end && range.start) return isBetween(date, range.start, range.end)
|
|
30
|
+
return false
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export function isRangeDateDisabled(date: DateValue, limits: RangeLimits, isDateDisabled: Matcher) {
|
|
34
|
+
if (isDateDisabled(date)) return true
|
|
35
|
+
if (!limits.maximumDays) return false
|
|
36
|
+
if (limits.start && limits.end) {
|
|
37
|
+
if (limits.fixedDate) {
|
|
38
|
+
const diff = getDaysBetween(limits.start, limits.end).length
|
|
39
|
+
if (diff <= limits.maximumDays) {
|
|
40
|
+
const daysLeft = limits.maximumDays - diff - 1
|
|
41
|
+
const startLimit = limits.start.subtract({ days: daysLeft })
|
|
42
|
+
const endLimit = limits.end.add({ days: daysLeft })
|
|
43
|
+
return !isBetween(date, startLimit, endLimit)
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
return false
|
|
47
|
+
}
|
|
48
|
+
if (limits.start) {
|
|
49
|
+
const maxDate = limits.start.add({ days: limits.maximumDays })
|
|
50
|
+
const minDate = limits.start.subtract({ days: limits.maximumDays })
|
|
51
|
+
return !isBetween(date, minDate, maxDate)
|
|
52
|
+
}
|
|
53
|
+
return false
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function highlightedCalendarRange(input: {
|
|
57
|
+
start: DateValue | undefined
|
|
58
|
+
end: DateValue | undefined
|
|
59
|
+
focused: DateValue | undefined
|
|
60
|
+
fixedDate: FixedDate
|
|
61
|
+
maximumDays: number | undefined
|
|
62
|
+
allowNonContiguousRanges: boolean
|
|
63
|
+
isDateUnavailable: Matcher
|
|
64
|
+
isDateDisabled: Matcher
|
|
65
|
+
isDateHighlightable?: Matcher
|
|
66
|
+
}): { start: DateValue; end: DateValue } | null {
|
|
67
|
+
if (input.start && input.end && !input.fixedDate) return null
|
|
68
|
+
if (!input.start || !input.focused) return null
|
|
69
|
+
const isStartBeforeFocused = isBefore(input.start, input.focused)
|
|
70
|
+
const start = isStartBeforeFocused ? input.start : input.focused
|
|
71
|
+
const end = isStartBeforeFocused ? input.focused : input.start
|
|
72
|
+
if (isSameDay(start, end)) return { start, end }
|
|
73
|
+
if (input.maximumDays && !input.end) {
|
|
74
|
+
const anchor = input.start
|
|
75
|
+
if (!isBefore(input.focused, anchor))
|
|
76
|
+
return { start: anchor, end: anchor.add({ days: input.maximumDays - 1 }) }
|
|
77
|
+
return { start: anchor.subtract({ days: input.maximumDays - 1 }), end: anchor }
|
|
78
|
+
}
|
|
79
|
+
const isValid = areAllDaysBetweenValid(
|
|
80
|
+
start,
|
|
81
|
+
end,
|
|
82
|
+
input.allowNonContiguousRanges ? () => false : input.isDateUnavailable,
|
|
83
|
+
input.isDateDisabled,
|
|
84
|
+
input.isDateHighlightable,
|
|
85
|
+
)
|
|
86
|
+
return isValid ? { start, end } : null
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
export function rangeSelectionFocus(range: CalendarRange, isDateDisabled: Matcher) {
|
|
90
|
+
const isStartDisabled = !!(range.start && isDateDisabled(range.start))
|
|
91
|
+
const isEndDisabled = !!(range.end && isDateDisabled(range.end))
|
|
92
|
+
const hasStart = !!range.start
|
|
93
|
+
const hasEnd = !!range.end
|
|
94
|
+
let isSelectedDisabled = false
|
|
95
|
+
if (hasStart && hasEnd) isSelectedDisabled = isStartDisabled && isEndDisabled
|
|
96
|
+
else if (hasStart || hasEnd)
|
|
97
|
+
isSelectedDisabled = (hasStart && isStartDisabled) || (hasEnd && isEndDisabled)
|
|
98
|
+
const selectedFocusableDate =
|
|
99
|
+
range.start && !isStartDisabled
|
|
100
|
+
? range.start
|
|
101
|
+
: range.end && !isEndDisabled
|
|
102
|
+
? range.end
|
|
103
|
+
: undefined
|
|
104
|
+
return { hasSelectedDate: hasStart || hasEnd, isSelectedDisabled, selectedFocusableDate }
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
export function isRangeFocusedDate(input: {
|
|
108
|
+
day: DateValue
|
|
109
|
+
outsideView: boolean
|
|
110
|
+
disabled: boolean
|
|
111
|
+
rootDisabled: boolean
|
|
112
|
+
placeholderFocusable: boolean
|
|
113
|
+
placeholder: DateValue
|
|
114
|
+
selectedFocusableDate: DateValue | undefined
|
|
115
|
+
hasSelectedDate: boolean
|
|
116
|
+
selectedDisabled: boolean
|
|
117
|
+
firstFocusableDate: DateValue | undefined
|
|
118
|
+
}) {
|
|
119
|
+
if (input.outsideView || input.disabled) return false
|
|
120
|
+
if (input.rootDisabled) return false
|
|
121
|
+
if (input.placeholderFocusable && isSameDay(input.day, input.placeholder)) return true
|
|
122
|
+
if (input.selectedFocusableDate && !input.placeholderFocusable)
|
|
123
|
+
return isSameDay(input.day, input.selectedFocusableDate)
|
|
124
|
+
if ((!input.hasSelectedDate || input.selectedDisabled) && !input.placeholderFocusable)
|
|
125
|
+
return !!input.firstFocusableDate && isSameDay(input.day, input.firstFocusableDate)
|
|
126
|
+
return false
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
export interface RangeChange {
|
|
130
|
+
start?: { value: DateValue | undefined }
|
|
131
|
+
end?: { value: DateValue | undefined }
|
|
132
|
+
placeholder?: DateValue
|
|
133
|
+
lastPressed?: DateValue
|
|
134
|
+
preventDefault?: boolean
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
export function nextRangeSelection(
|
|
138
|
+
date: DateValue,
|
|
139
|
+
state: {
|
|
140
|
+
start: DateValue | undefined
|
|
141
|
+
end: DateValue | undefined
|
|
142
|
+
highlighted: boolean
|
|
143
|
+
lastPressed: DateValue | undefined
|
|
144
|
+
preventDeselect: boolean
|
|
145
|
+
fixedDate: FixedDate
|
|
146
|
+
},
|
|
147
|
+
): RangeChange {
|
|
148
|
+
const { start, end } = state
|
|
149
|
+
if (start && !state.highlighted) {
|
|
150
|
+
if (isSameDay(date, start) && !state.preventDeselect && !end)
|
|
151
|
+
return { start: { value: undefined }, placeholder: date, lastPressed: date.copy() }
|
|
152
|
+
if (!end)
|
|
153
|
+
return {
|
|
154
|
+
start:
|
|
155
|
+
state.lastPressed && isSameDay(state.lastPressed, date)
|
|
156
|
+
? { value: date.copy() }
|
|
157
|
+
: undefined,
|
|
158
|
+
lastPressed: date.copy(),
|
|
159
|
+
preventDefault: true,
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
const lastPressed = date.copy()
|
|
163
|
+
if (start && end && isSameDay(start, end) && isSameDay(start, date) && !state.preventDeselect)
|
|
164
|
+
return {
|
|
165
|
+
lastPressed,
|
|
166
|
+
start: { value: undefined },
|
|
167
|
+
end: { value: undefined },
|
|
168
|
+
placeholder: date,
|
|
169
|
+
}
|
|
170
|
+
if (!start) return { lastPressed, start: { value: date.copy() } }
|
|
171
|
+
if (!end) return { lastPressed, end: { value: date.copy() } }
|
|
172
|
+
if (!state.fixedDate)
|
|
173
|
+
return { lastPressed, end: { value: undefined }, start: { value: date.copy() } }
|
|
174
|
+
if (state.fixedDate === 'start')
|
|
175
|
+
return date.compare(start) < 0
|
|
176
|
+
? { lastPressed, start: { value: date.copy() } }
|
|
177
|
+
: { lastPressed, end: { value: date.copy() } }
|
|
178
|
+
return date.compare(end) > 0
|
|
179
|
+
? { lastPressed, end: { value: date.copy() } }
|
|
180
|
+
: { lastPressed, start: { value: date.copy() } }
|
|
181
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { kbd } from './utils'
|
|
2
|
+
|
|
3
|
+
export function isSegmentNavigationKey(key: string) {
|
|
4
|
+
return key === kbd.ARROW_RIGHT || key === kbd.ARROW_LEFT
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
export function isNumberString(value: string) {
|
|
8
|
+
return !Number.isNaN(Number.parseInt(value))
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export function isAcceptableSegmentKey(key: string) {
|
|
12
|
+
const acceptableSegmentKeys: string[] = [
|
|
13
|
+
kbd.ENTER,
|
|
14
|
+
kbd.ARROW_UP,
|
|
15
|
+
kbd.ARROW_DOWN,
|
|
16
|
+
kbd.ARROW_LEFT,
|
|
17
|
+
kbd.ARROW_RIGHT,
|
|
18
|
+
kbd.BACKSPACE,
|
|
19
|
+
kbd.SPACE,
|
|
20
|
+
'a',
|
|
21
|
+
'A',
|
|
22
|
+
'p',
|
|
23
|
+
'P',
|
|
24
|
+
]
|
|
25
|
+
if (acceptableSegmentKeys.includes(key)) return true
|
|
26
|
+
return isNumberString(key)
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export function getSegmentElements(
|
|
30
|
+
parentElement: HTMLElement | null | undefined,
|
|
31
|
+
attribute = 'data-radix-date-field-segment',
|
|
32
|
+
) {
|
|
33
|
+
if (!parentElement) return []
|
|
34
|
+
return Array.from(parentElement.querySelectorAll<HTMLElement>(`[${attribute}]`)).filter(
|
|
35
|
+
item => item.getAttribute(attribute) !== 'literal',
|
|
36
|
+
)
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export function getTimeFieldSegmentElements(
|
|
40
|
+
parentElement: HTMLElement | null | undefined,
|
|
41
|
+
attribute = 'data-radix-time-field-segment',
|
|
42
|
+
) {
|
|
43
|
+
return getSegmentElements(parentElement, attribute)
|
|
44
|
+
}
|