@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,248 @@
|
|
|
1
|
+
import { handleAndDispatchCustomEvent } from '../dismissable-layer'
|
|
2
|
+
import { findValuesBetween, type ListboxSelectionBehavior } from '../listbox'
|
|
3
|
+
import type { FocusIntent } from '../roving-focus'
|
|
4
|
+
|
|
5
|
+
export type TreeValue = Record<string, any>
|
|
6
|
+
|
|
7
|
+
export interface FlattenedItem<T> {
|
|
8
|
+
_id: string
|
|
9
|
+
index: number
|
|
10
|
+
value: T
|
|
11
|
+
level: number
|
|
12
|
+
hasChildren: boolean
|
|
13
|
+
parentItem?: T
|
|
14
|
+
bind: {
|
|
15
|
+
value: T
|
|
16
|
+
level: number
|
|
17
|
+
'aria-setsize': number
|
|
18
|
+
'aria-posinset': number
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export interface TreeAccessors<T> {
|
|
23
|
+
getKey: (value: T) => string
|
|
24
|
+
getChildren: (value: T) => T[] | undefined
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export const TREE_SELECT = 'tree.select'
|
|
28
|
+
export const TREE_TOGGLE = 'tree.toggle'
|
|
29
|
+
|
|
30
|
+
export const TREE_KEY_TO_INTENT: Record<string, FocusIntent> = {
|
|
31
|
+
ArrowLeft: 'prev',
|
|
32
|
+
ArrowUp: 'prev',
|
|
33
|
+
ArrowRight: 'next',
|
|
34
|
+
ArrowDown: 'next',
|
|
35
|
+
PageUp: 'first',
|
|
36
|
+
Home: 'first',
|
|
37
|
+
PageDown: 'last',
|
|
38
|
+
End: 'last',
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export function defaultTreeChildren<T extends TreeValue>(value: T) {
|
|
42
|
+
return value.children as T[] | undefined
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function flatten<U, T extends { children?: any[] }>(items: T[]): U[] {
|
|
46
|
+
return items.reduce((acc: any[], item: T) => {
|
|
47
|
+
acc.push(item)
|
|
48
|
+
if (item.children) acc.push(...flatten(item.children))
|
|
49
|
+
return acc
|
|
50
|
+
}, [])
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export function flattenTree<T>(
|
|
54
|
+
items: T[],
|
|
55
|
+
accessors: TreeAccessors<T>,
|
|
56
|
+
expanded: string[],
|
|
57
|
+
level = 1,
|
|
58
|
+
parentItem?: T,
|
|
59
|
+
): FlattenedItem<T>[] {
|
|
60
|
+
return items.reduce((acc: FlattenedItem<T>[], item: T, index: number) => {
|
|
61
|
+
const key = accessors.getKey(item)
|
|
62
|
+
const children = accessors.getChildren(item)
|
|
63
|
+
acc.push({
|
|
64
|
+
_id: key,
|
|
65
|
+
value: item,
|
|
66
|
+
index,
|
|
67
|
+
level,
|
|
68
|
+
parentItem,
|
|
69
|
+
hasChildren: !!children,
|
|
70
|
+
bind: {
|
|
71
|
+
value: item,
|
|
72
|
+
level,
|
|
73
|
+
'aria-setsize': items.length,
|
|
74
|
+
'aria-posinset': index + 1,
|
|
75
|
+
},
|
|
76
|
+
})
|
|
77
|
+
if (children && expanded.includes(key))
|
|
78
|
+
acc.push(...flattenTree(children, accessors, expanded, level + 1, item))
|
|
79
|
+
return acc
|
|
80
|
+
}, [])
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function treeSelectedKeys<T>(
|
|
84
|
+
model: unknown,
|
|
85
|
+
multiple: boolean,
|
|
86
|
+
getKey: (value: T) => string,
|
|
87
|
+
) {
|
|
88
|
+
if (multiple && Array.isArray(model)) return model.map(item => getKey(item as T))
|
|
89
|
+
return [getKey((model ?? {}) as T)]
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export interface TreeSelectionOptions<T> extends TreeAccessors<T> {
|
|
93
|
+
multiple: boolean
|
|
94
|
+
selectionBehavior: ListboxSelectionBehavior
|
|
95
|
+
propagateSelect: boolean
|
|
96
|
+
bubbleSelect: boolean
|
|
97
|
+
flattened: FlattenedItem<T>[]
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
function bubbleSelection<T>(
|
|
101
|
+
item: FlattenedItem<T>,
|
|
102
|
+
model: T[],
|
|
103
|
+
options: TreeSelectionOptions<T>,
|
|
104
|
+
): T[] {
|
|
105
|
+
const { getKey, getChildren, flattened } = options
|
|
106
|
+
if (item.parentItem == null || !options.multiple) return model
|
|
107
|
+
const parentItem = flattened.find(
|
|
108
|
+
entry => item.parentItem != null && getKey(entry.value) === getKey(item.parentItem),
|
|
109
|
+
)
|
|
110
|
+
if (parentItem == null) return model
|
|
111
|
+
const all = getChildren(parentItem.value)?.every(child =>
|
|
112
|
+
model.find(value => getKey(value) === getKey(child)),
|
|
113
|
+
)
|
|
114
|
+
const next = all
|
|
115
|
+
? [...model, parentItem.value]
|
|
116
|
+
: model.filter(value => getKey(value) !== getKey(parentItem.value))
|
|
117
|
+
return bubbleSelection(parentItem, next, options)
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
export function nextTreeSelection<T>(
|
|
121
|
+
model: unknown,
|
|
122
|
+
value: T,
|
|
123
|
+
options: TreeSelectionOptions<T>,
|
|
124
|
+
): { value: unknown; anchor: boolean } {
|
|
125
|
+
const { getKey, getChildren, multiple, selectionBehavior } = options
|
|
126
|
+
const condition = (base: unknown) => getKey((base ?? {}) as T) === getKey(value)
|
|
127
|
+
const exist = multiple && Array.isArray(model) ? model.findIndex(condition) !== -1 : undefined
|
|
128
|
+
let next: unknown
|
|
129
|
+
let anchor = false
|
|
130
|
+
if (multiple && Array.isArray(model)) {
|
|
131
|
+
if (selectionBehavior === 'replace') {
|
|
132
|
+
next = [value]
|
|
133
|
+
anchor = true
|
|
134
|
+
} else {
|
|
135
|
+
const index = model.findIndex(item => condition(item))
|
|
136
|
+
next = index !== -1 ? model.filter((_, i) => i !== index) : [...model, value]
|
|
137
|
+
}
|
|
138
|
+
} else if (selectionBehavior === 'replace') next = { ...value }
|
|
139
|
+
else if (!Array.isArray(model) && condition(model)) next = undefined
|
|
140
|
+
else next = { ...value }
|
|
141
|
+
|
|
142
|
+
if (options.bubbleSelect && multiple && Array.isArray(next)) {
|
|
143
|
+
const item = options.flattened.find(entry => getKey(entry.value) === getKey(value))
|
|
144
|
+
if (item != null) next = bubbleSelection(item, next as T[], options)
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
if (options.propagateSelect && multiple && Array.isArray(next)) {
|
|
148
|
+
const children = flatten<T, any>((getChildren(value) ?? []) as any[])
|
|
149
|
+
next = exist
|
|
150
|
+
? (next as T[]).filter(
|
|
151
|
+
item => !children.some(child => getKey((item ?? {}) as T) === getKey(child)),
|
|
152
|
+
)
|
|
153
|
+
: [...(next as T[]), ...children]
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
return { value: next, anchor }
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
export function treeRangeValues(
|
|
160
|
+
intent: FocusIntent | undefined,
|
|
161
|
+
current: Element | null,
|
|
162
|
+
entries: { ref: HTMLElement; value?: unknown }[],
|
|
163
|
+
options: unknown[],
|
|
164
|
+
state: { firstValue: unknown; multiple: boolean; model: unknown },
|
|
165
|
+
): unknown[] | null | undefined {
|
|
166
|
+
if (!state.firstValue || !state.multiple || !Array.isArray(state.model)) return
|
|
167
|
+
const lastValue = entries
|
|
168
|
+
.filter(item => item.ref.dataset.disabled !== '')
|
|
169
|
+
.find(item => item.ref === current)?.value
|
|
170
|
+
if (!lastValue) return
|
|
171
|
+
switch (intent) {
|
|
172
|
+
case 'prev':
|
|
173
|
+
case 'next':
|
|
174
|
+
return findValuesBetween(options, state.firstValue, lastValue)
|
|
175
|
+
case 'first':
|
|
176
|
+
return findValuesBetween(options, state.firstValue, options[0])
|
|
177
|
+
case 'last':
|
|
178
|
+
return findValuesBetween(options, state.firstValue, options.at(-1))
|
|
179
|
+
}
|
|
180
|
+
return null
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
export function toggleTreeExpanded(expanded: string[], key: string) {
|
|
184
|
+
return expanded.includes(key) ? expanded.filter(item => item !== key) : [...expanded, key]
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
export function treeIndeterminate<T>(input: {
|
|
188
|
+
value: T
|
|
189
|
+
model: unknown
|
|
190
|
+
isSelected: boolean
|
|
191
|
+
hasChildren: boolean
|
|
192
|
+
bubbleSelect: boolean
|
|
193
|
+
propagateSelect: boolean
|
|
194
|
+
getKey: (value: T) => string
|
|
195
|
+
getChildren: (value: T) => T[] | undefined
|
|
196
|
+
}) {
|
|
197
|
+
const { model, getKey } = input
|
|
198
|
+
if (!input.hasChildren || !Array.isArray(model)) return undefined
|
|
199
|
+
const found = (child: T) => model.find(item => getKey(item as T) === getKey(child))
|
|
200
|
+
if (input.bubbleSelect) {
|
|
201
|
+
const children = flatten<T, any>((input.getChildren(input.value) || []) as any[])
|
|
202
|
+
return children.some(found) && !children.every(found)
|
|
203
|
+
}
|
|
204
|
+
if (input.propagateSelect && input.isSelected) {
|
|
205
|
+
const children = flatten<T, any>((input.getChildren(input.value) || []) as any[])
|
|
206
|
+
return !children.every(found)
|
|
207
|
+
}
|
|
208
|
+
return undefined
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
function indent(element: HTMLElement) {
|
|
212
|
+
return Number(element.getAttribute('data-indent'))
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
export function treeChildTarget(collection: HTMLElement[], current: Element | null, level: number) {
|
|
216
|
+
const index = collection.indexOf(current as HTMLElement)
|
|
217
|
+
return collection.slice(index).find(element => indent(element) === level + 1)
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
export function treeParentTarget(
|
|
221
|
+
collection: HTMLElement[],
|
|
222
|
+
current: Element | null,
|
|
223
|
+
level: number,
|
|
224
|
+
) {
|
|
225
|
+
const index = collection.indexOf(current as HTMLElement)
|
|
226
|
+
return collection
|
|
227
|
+
.slice(0, index)
|
|
228
|
+
.reverse()
|
|
229
|
+
.find(element => indent(element) === level - 1)
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
export interface TreeItemEventDetail<T> {
|
|
233
|
+
originalEvent: Event
|
|
234
|
+
value?: T
|
|
235
|
+
isExpanded: boolean
|
|
236
|
+
isSelected: boolean
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
export type TreeItemSelectEvent<T> = CustomEvent<TreeItemEventDetail<T>>
|
|
240
|
+
export type TreeItemToggleEvent<T> = CustomEvent<TreeItemEventDetail<T>>
|
|
241
|
+
|
|
242
|
+
export function dispatchTreeItemEvent<T>(
|
|
243
|
+
name: typeof TREE_SELECT | typeof TREE_TOGGLE,
|
|
244
|
+
handler: (event: CustomEvent<TreeItemEventDetail<T>>) => void,
|
|
245
|
+
detail: TreeItemEventDetail<T>,
|
|
246
|
+
) {
|
|
247
|
+
handleAndDispatchCustomEvent<CustomEvent<TreeItemEventDetail<T>>>(name, handler, detail)
|
|
248
|
+
}
|
|
@@ -88,6 +88,7 @@
|
|
|
88
88
|
--hn-bg-subtle: #141414;
|
|
89
89
|
--hn-bg-inset: var(--color-neutral-800);
|
|
90
90
|
--hn-bg-scrim: rgb(0 0 0 / 0.6);
|
|
91
|
+
--hn-bg-veil: color-mix(in srgb, var(--hn-surface) 70%, transparent);
|
|
91
92
|
|
|
92
93
|
--hn-fg-default: var(--color-neutral-150);
|
|
93
94
|
--hn-fg-max: var(--color-neutral-0);
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
@keyframes hn-tour-hole-in {
|
|
2
|
+
from {
|
|
3
|
+
clip-path: var(--hn-tour-hole-origin);
|
|
4
|
+
}
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
@keyframes hn-tour-hole-out {
|
|
8
|
+
from {
|
|
9
|
+
clip-path: var(--hn-tour-hole);
|
|
10
|
+
}
|
|
11
|
+
to {
|
|
12
|
+
clip-path: var(--hn-tour-hole-origin);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
@keyframes hn-tour-ripple {
|
|
17
|
+
from {
|
|
18
|
+
opacity: 0.6;
|
|
19
|
+
transform: translate(-50%, -50%) scale(0.2);
|
|
20
|
+
}
|
|
21
|
+
to {
|
|
22
|
+
opacity: 0;
|
|
23
|
+
transform: translate(-50%, -50%) scale(1);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
@keyframes hn-tour-press {
|
|
28
|
+
from {
|
|
29
|
+
opacity: 0.15;
|
|
30
|
+
transform: translate(-50%, -50%) scale(0.4);
|
|
31
|
+
}
|
|
32
|
+
to {
|
|
33
|
+
opacity: 0.45;
|
|
34
|
+
transform: translate(-50%, -50%) scale(1);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
@keyframes hn-tour-key-press {
|
|
39
|
+
50% {
|
|
40
|
+
scale: 0.92;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
@utility hn-tour-mask {
|
|
45
|
+
&[data-hn-tour-mask] {
|
|
46
|
+
z-index: calc(var(--hn-z-overlay) + 1);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
&[data-mask='dim'] {
|
|
50
|
+
backdrop-filter: none;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
&[data-state='open'][data-hn-tour-hole='shown'] {
|
|
54
|
+
animation:
|
|
55
|
+
hn-fade-in var(--hn-duration-base) var(--hn-ease-enter),
|
|
56
|
+
hn-tour-hole-in var(--hn-duration-base) var(--hn-ease-enter);
|
|
57
|
+
}
|
|
58
|
+
&[data-state='open'][data-hn-tour-hole='hidden'] {
|
|
59
|
+
animation:
|
|
60
|
+
hn-fade-in var(--hn-duration-base) var(--hn-ease-enter),
|
|
61
|
+
hn-tour-hole-out var(--hn-duration-base) var(--hn-ease-move);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
@utility hn-tour-pointer {
|
|
66
|
+
position: fixed;
|
|
67
|
+
left: 0;
|
|
68
|
+
top: 0;
|
|
69
|
+
z-index: calc(var(--hn-z-overlay) + 2);
|
|
70
|
+
pointer-events: none;
|
|
71
|
+
opacity: 0;
|
|
72
|
+
transition: opacity var(--hn-duration-fast) var(--hn-ease-move);
|
|
73
|
+
|
|
74
|
+
&[data-state='shown'] {
|
|
75
|
+
opacity: 1;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
& [data-hn-tour-pointer-glyph] {
|
|
79
|
+
transition: scale var(--hn-duration-fast) var(--hn-ease-press);
|
|
80
|
+
}
|
|
81
|
+
&[data-kind='mouse'] [data-hn-tour-pointer-glyph] {
|
|
82
|
+
transform-origin: 4px 2px;
|
|
83
|
+
}
|
|
84
|
+
&[data-pressed] [data-hn-tour-pointer-glyph] {
|
|
85
|
+
scale: 0.85;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
& [data-hn-tour-ripple],
|
|
89
|
+
& [data-hn-tour-pointer-ring] {
|
|
90
|
+
position: absolute;
|
|
91
|
+
left: 0;
|
|
92
|
+
top: 0;
|
|
93
|
+
width: 3rem;
|
|
94
|
+
height: 3rem;
|
|
95
|
+
border-radius: 9999px;
|
|
96
|
+
pointer-events: none;
|
|
97
|
+
}
|
|
98
|
+
& [data-hn-tour-ripple] {
|
|
99
|
+
border: 2px solid var(--hn-accent);
|
|
100
|
+
animation: hn-tour-ripple var(--hn-duration-slow) var(--hn-ease-enter) forwards;
|
|
101
|
+
}
|
|
102
|
+
& [data-hn-tour-pointer-ring] {
|
|
103
|
+
background-color: var(--hn-accent);
|
|
104
|
+
opacity: 0;
|
|
105
|
+
transform: translate(-50%, -50%);
|
|
106
|
+
}
|
|
107
|
+
&[data-pressed='long'] [data-hn-tour-pointer-ring] {
|
|
108
|
+
animation: hn-tour-press var(--hn-tour-press, 800ms) linear forwards;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
@media (prefers-reduced-motion: reduce) {
|
|
112
|
+
& [data-hn-tour-ripple],
|
|
113
|
+
&[data-pressed='long'] [data-hn-tour-pointer-ring] {
|
|
114
|
+
animation: none;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
@utility hn-tour-key {
|
|
120
|
+
position: fixed;
|
|
121
|
+
left: 0;
|
|
122
|
+
top: 0;
|
|
123
|
+
z-index: calc(var(--hn-z-overlay) + 2);
|
|
124
|
+
pointer-events: none;
|
|
125
|
+
opacity: 0;
|
|
126
|
+
transition: opacity var(--hn-duration-fast) var(--hn-ease-move);
|
|
127
|
+
|
|
128
|
+
&[data-state='shown'] {
|
|
129
|
+
opacity: 1;
|
|
130
|
+
}
|
|
131
|
+
&[data-state='shown'] > * {
|
|
132
|
+
animation: hn-tour-key-press var(--hn-duration-base) var(--hn-ease-press);
|
|
133
|
+
}
|
|
134
|
+
}
|
|
@@ -17,6 +17,9 @@ export const image = tv({
|
|
|
17
17
|
lazy: {
|
|
18
18
|
true: 'transition-opacity duration-(--hn-duration-base) ease-enter motion-reduce:transition-none',
|
|
19
19
|
},
|
|
20
|
+
placeholder: {
|
|
21
|
+
true: '',
|
|
22
|
+
},
|
|
20
23
|
fit: {
|
|
21
24
|
cover: 'object-cover',
|
|
22
25
|
contain: 'object-contain',
|
|
@@ -25,6 +28,31 @@ export const image = tv({
|
|
|
25
28
|
'scale-down': 'object-scale-down',
|
|
26
29
|
},
|
|
27
30
|
},
|
|
31
|
+
compoundVariants: [
|
|
32
|
+
{
|
|
33
|
+
lazy: true,
|
|
34
|
+
placeholder: true,
|
|
35
|
+
class: 'duration-(--hn-duration-slow) ease-move',
|
|
36
|
+
},
|
|
37
|
+
],
|
|
38
|
+
defaultVariants: { fit: 'cover' },
|
|
39
|
+
})
|
|
40
|
+
|
|
41
|
+
export const imageFrame = tv({
|
|
42
|
+
base: 'relative isolate block size-full',
|
|
43
|
+
})
|
|
44
|
+
|
|
45
|
+
export const imagePlaceholder = tv({
|
|
46
|
+
base: 'bg-center bg-no-repeat',
|
|
47
|
+
variants: {
|
|
48
|
+
fit: {
|
|
49
|
+
cover: 'bg-cover',
|
|
50
|
+
contain: 'bg-contain',
|
|
51
|
+
fill: 'bg-size-[100%_100%]',
|
|
52
|
+
none: 'bg-cover',
|
|
53
|
+
'scale-down': 'bg-contain',
|
|
54
|
+
},
|
|
55
|
+
},
|
|
28
56
|
defaultVariants: { fit: 'cover' },
|
|
29
57
|
})
|
|
30
58
|
|
|
@@ -2,7 +2,7 @@ import { tv, type VariantProps } from '../lib/tv'
|
|
|
2
2
|
|
|
3
3
|
export const navLink = tv({
|
|
4
4
|
base: [
|
|
5
|
-
'hn-interactive hn-state-layer hn-press-none relative isolate flex cursor-pointer items-center',
|
|
5
|
+
'hn-interactive hn-state-layer hn-press-none relative isolate flex min-w-0 cursor-pointer items-center',
|
|
6
6
|
'data-disabled:pointer-events-none data-disabled:opacity-50',
|
|
7
7
|
'h-9 gap-[var(--hn-control-gap)] rounded-md ps-2.5 pe-2 text-sm select-none',
|
|
8
8
|
'[&_svg]:size-4 [&_svg]:shrink-0',
|
|
@@ -17,5 +17,9 @@ export const navLink = tv({
|
|
|
17
17
|
})
|
|
18
18
|
|
|
19
19
|
export const navLinkLabel = tv({
|
|
20
|
-
base: 'hn-sidebar-label
|
|
20
|
+
base: 'hn-sidebar-label min-w-0 truncate',
|
|
21
|
+
})
|
|
22
|
+
|
|
23
|
+
export const navLinkTrailing = tv({
|
|
24
|
+
base: 'hn-sidebar-label ms-auto flex shrink-0 items-center',
|
|
21
25
|
})
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { tv } from '../lib/tv'
|
|
2
|
+
|
|
3
|
+
const layer = 'z-[calc(var(--hn-z-overlay)+1)]'
|
|
4
|
+
|
|
5
|
+
export const tourMask = tv({ base: 'hn-scrim hn-tour-mask' })
|
|
6
|
+
|
|
7
|
+
export const tourBlocker = tv({ base: `fixed ${layer}` })
|
|
8
|
+
|
|
9
|
+
export const tourCard = tv({
|
|
10
|
+
base: `relative ${layer} flex w-80 max-w-[calc(100vw-2rem)] flex-col gap-3 overflow-visible p-4 shadow-lg outline-none`,
|
|
11
|
+
})
|
|
12
|
+
|
|
13
|
+
export const tourCentered = tv({
|
|
14
|
+
base: `pointer-events-none fixed inset-0 ${layer} grid place-items-center p-4 [&>*]:pointer-events-auto`,
|
|
15
|
+
})
|
|
16
|
+
|
|
17
|
+
export const tourBeacon = tv({
|
|
18
|
+
base: `hn-focus-ring fixed ${layer} size-4 -translate-x-1/2 -translate-y-1/2 cursor-pointer rounded-full`,
|
|
19
|
+
})
|
|
20
|
+
|
|
21
|
+
export const tourBeaconPulse = tv({
|
|
22
|
+
base: 'hn-ping bg-accent pointer-events-none absolute inset-0 rounded-full',
|
|
23
|
+
})
|
|
24
|
+
|
|
25
|
+
export const tourBeaconDot = tv({
|
|
26
|
+
base: 'bg-accent ring-surface pointer-events-none relative block size-full rounded-full ring-2',
|
|
27
|
+
})
|
|
28
|
+
|
|
29
|
+
export const tourHeader = tv({ base: 'flex items-start gap-2' })
|
|
30
|
+
|
|
31
|
+
export const tourFooter = tv({ base: 'flex items-center gap-2' })
|
|
32
|
+
|
|
33
|
+
export const tourPointer = tv({ base: 'hn-tour-pointer' })
|
|
34
|
+
|
|
35
|
+
export const tourPointerArrow = tv({
|
|
36
|
+
base: 'fill-fg stroke-surface absolute top-0 size-6 -translate-x-1 -translate-y-0.5 drop-shadow-md',
|
|
37
|
+
})
|
|
38
|
+
|
|
39
|
+
export const tourPointerTouch = tv({
|
|
40
|
+
base: 'bg-fg/30 ring-surface absolute top-0 block size-9 -translate-x-1/2 -translate-y-1/2 rounded-full shadow-md ring-2',
|
|
41
|
+
})
|
|
42
|
+
|
|
43
|
+
export const tourKey = tv({ base: 'hn-tour-key' })
|
|
44
|
+
|
|
45
|
+
export const tourKeyCap = tv({
|
|
46
|
+
base: 'border-line bg-surface text-fg block min-w-8 -translate-x-1/2 rounded-md border px-2 py-1 text-center text-sm font-medium whitespace-nowrap shadow-md',
|
|
47
|
+
})
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"thumbhash.d.ts","sourceRoot":"","sources":["../../../../../../shared/src/lib/thumbhash.ts"],"names":[],"mappings":"AAEA,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAS9D"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { type Bezier } from '../motion';
|
|
2
|
+
import { type TourPoint, type TourPointerKind, type TourRect, type TourStepBase, type TourTarget } from './tour';
|
|
3
|
+
export type TourStatus = 'idle' | 'waiting' | 'ready' | 'missing';
|
|
4
|
+
export interface TourEngineState {
|
|
5
|
+
status: TourStatus;
|
|
6
|
+
settled: boolean;
|
|
7
|
+
hole: TourRect | null;
|
|
8
|
+
targetRect: TourRect | null;
|
|
9
|
+
radius: number;
|
|
10
|
+
elements: HTMLElement[];
|
|
11
|
+
playing: boolean;
|
|
12
|
+
viewport: {
|
|
13
|
+
width: number;
|
|
14
|
+
height: number;
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
export interface TourEngineOptions {
|
|
18
|
+
pointer: () => HTMLElement | null | undefined;
|
|
19
|
+
keyBadge: () => HTMLElement | null | undefined;
|
|
20
|
+
pointerKind: () => TourPointerKind;
|
|
21
|
+
cardGap?: () => number;
|
|
22
|
+
}
|
|
23
|
+
export declare const TOUR_SPRING: {
|
|
24
|
+
stiffness: number;
|
|
25
|
+
damping: number;
|
|
26
|
+
};
|
|
27
|
+
export declare function stepSpring(position: TourRect, velocity: TourRect, goal: TourRect, seconds: number, { stiffness, damping }?: {
|
|
28
|
+
stiffness: number;
|
|
29
|
+
damping: number;
|
|
30
|
+
}): boolean;
|
|
31
|
+
export declare function bezierEasing([x1, y1, x2, y2]: Bezier): (progress: number) => number;
|
|
32
|
+
export declare function isAbortError(error: unknown): boolean;
|
|
33
|
+
export declare function tourSleep(ms: number, signal: AbortSignal): Promise<void>;
|
|
34
|
+
export declare function tween(duration: number, onFrame: (progress: number) => void, signal: AbortSignal, easing?: (progress: number) => number): Promise<void>;
|
|
35
|
+
export declare function tourPointerPoint(target: TourTarget | TourPoint): TourPoint | null;
|
|
36
|
+
export declare function createTourEngine(options: TourEngineOptions): {
|
|
37
|
+
subscribe(listener: () => void): () => void;
|
|
38
|
+
getState: () => TourEngineState;
|
|
39
|
+
pointerKind: () => TourPointerKind;
|
|
40
|
+
enter(next: TourStepBase, number: number): Promise<"empty" | "ready" | "missing" | "stale">;
|
|
41
|
+
play: () => void;
|
|
42
|
+
replay(): void;
|
|
43
|
+
leave(): void;
|
|
44
|
+
close(): void;
|
|
45
|
+
};
|
|
46
|
+
export type TourEngine = ReturnType<typeof createTourEngine>;
|
|
47
|
+
//# sourceMappingURL=tour-engine.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tour-engine.d.ts","sourceRoot":"","sources":["../../../../../../shared/src/lib/tour-engine.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,MAAM,EAAE,MAAM,WAAW,CAAA;AAC7C,OAAO,EASL,KAAK,SAAS,EAEd,KAAK,eAAe,EACpB,KAAK,QAAQ,EAGb,KAAK,YAAY,EACjB,KAAK,UAAU,EAChB,MAAM,QAAQ,CAAA;AAEf,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,CAAA;AAEjE,MAAM,WAAW,eAAe;IAC9B,MAAM,EAAE,UAAU,CAAA;IAClB,OAAO,EAAE,OAAO,CAAA;IAChB,IAAI,EAAE,QAAQ,GAAG,IAAI,CAAA;IACrB,UAAU,EAAE,QAAQ,GAAG,IAAI,CAAA;IAC3B,MAAM,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE,WAAW,EAAE,CAAA;IACvB,OAAO,EAAE,OAAO,CAAA;IAChB,QAAQ,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAA;CAC5C;AAED,MAAM,WAAW,iBAAiB;IAChC,OAAO,EAAE,MAAM,WAAW,GAAG,IAAI,GAAG,SAAS,CAAA;IAC7C,QAAQ,EAAE,MAAM,WAAW,GAAG,IAAI,GAAG,SAAS,CAAA;IAC9C,WAAW,EAAE,MAAM,eAAe,CAAA;IAClC,OAAO,CAAC,EAAE,MAAM,MAAM,CAAA;CACvB;AAaD,eAAO,MAAM,WAAW;;;CAAkC,CAAA;AAK1D,wBAAgB,UAAU,CACxB,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,QAAQ,EAClB,IAAI,EAAE,QAAQ,EACd,OAAO,EAAE,MAAM,EACf,EAAE,SAAS,EAAE,OAAO,EAAE;;;CAAc,WAgBrC;AAED,wBAAgB,YAAY,CAAC,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE,MAAM,IAK3C,UAAU,MAAM,YAYzB;AAeD,wBAAgB,YAAY,CAAC,KAAK,EAAE,OAAO,WAE1C;AAMD,wBAAgB,SAAS,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,iBAcxD;AAED,wBAAgB,KAAK,CACnB,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,EACnC,MAAM,EAAE,WAAW,EACnB,MAAM,GAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,MAAiB,iBA0BhD;AA6DD,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,UAAU,GAAG,SAAS,GAAG,SAAS,GAAG,IAAI,CAMjF;AAsHD,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,iBAAiB;wBAySnC,MAAM,IAAI;;uBAnmBb,eAAe;gBA2mBpB,YAAY,UAAU,MAAM;;;;;EA+D3C;AAED,MAAM,MAAM,UAAU,GAAG,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAA"}
|