@hina-ui/vue 1.7.11 → 1.7.13
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 +25614 -10189
- package/dist/index.js.map +1 -1
- package/dist/shared/lib/css-time.ts +6 -0
- package/dist/shared/lib/line-clamp.ts +8 -8
- package/dist/shared/lib/tour.ts +261 -0
- package/dist/shared/locale/en-US.ts +8 -0
- package/dist/shared/locale/index.ts +1 -0
- package/dist/shared/locale/ja-JP.ts +9 -0
- package/dist/shared/locale/types.ts +8 -0
- package/dist/shared/locale/zh-CN.ts +8 -0
- package/dist/shared/primitives/combobox/LICENSE +44 -0
- package/dist/shared/primitives/combobox/index.ts +49 -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/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/pin-input/index.ts +394 -97
- 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/interaction.css +6 -2
- package/dist/shared/styles/line-clamp.css +6 -2
- package/dist/shared/styles/pin-input.css +84 -0
- package/dist/shared/styles/tokens.css +2 -0
- package/dist/shared/styles/tour.css +29 -0
- package/dist/shared/variants/nav-link.ts +6 -2
- package/dist/shared/variants/pin-input.ts +26 -7
- package/dist/shared/variants/tour.ts +29 -0
- package/dist/types/shared/src/lib/css-time.d.ts +2 -0
- package/dist/types/shared/src/lib/css-time.d.ts.map +1 -0
- package/dist/types/shared/src/lib/line-clamp.d.ts.map +1 -1
- package/dist/types/shared/src/lib/tour.d.ts +81 -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 +8 -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/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/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/pin-input/index.d.ts +35 -27
- package/dist/types/shared/src/primitives/pin-input/index.d.ts.map +1 -1
- 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/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/pin-input.d.ts +30 -10
- package/dist/types/shared/src/variants/pin-input.d.ts.map +1 -1
- package/dist/types/shared/src/variants/tour.d.ts +10 -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/ModalContent.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 +1 -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.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/pagination/composables/usePaginationWindow.d.ts +6 -6
- package/dist/types/vue/src/components/pin-input/PinInput.vue.d.ts +2 -0
- package/dist/types/vue/src/components/pin-input/PinInput.vue.d.ts.map +1 -1
- 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 +1 -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 +34 -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 +33 -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 +5 -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/{pin-input/PinInputRoot.d.ts → listbox/ListboxRoot.d.ts} +60 -53
- 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/{pin-input/PinInputInput.d.ts → tags-input/TagsInputInput.d.ts} +23 -14
- 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 +5 -5
- package/src/components/alert-dialog/AlertDialog.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 +1 -1
- package/src/components/dialog/ModalContent.vue +2 -1
- package/src/components/drawer/Drawer.vue +1 -1
- 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/composables/useImage.ts +2 -1
- 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/pagination/PaginationPopup.vue +1 -1
- package/src/components/pin-input/PinInput.vue +103 -33
- 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 +1 -1
- 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 +447 -0
- package/src/components/tour/tour.variants.ts +1 -0
- package/src/components/tour/types.ts +43 -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 +15 -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/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 +36 -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
- package/dist/types/vue/src/primitives/pin-input/PinInputInput.d.ts.map +0 -1
- package/dist/types/vue/src/primitives/pin-input/PinInputRoot.d.ts.map +0 -1
- package/dist/types/vue/src/primitives/pin-input/context.d.ts +0 -20
- package/dist/types/vue/src/primitives/pin-input/context.d.ts.map +0 -1
- package/dist/types/vue/src/primitives/pin-input/index.d.ts +0 -4
- package/dist/types/vue/src/primitives/pin-input/index.d.ts.map +0 -1
- package/src/primitives/pin-input/PinInputInput.ts +0 -218
- package/src/primitives/pin-input/PinInputRoot.ts +0 -136
- package/src/primitives/pin-input/context.ts +0 -24
- package/src/primitives/pin-input/index.ts +0 -3
- /package/dist/shared/primitives/{pin-input → date}/LICENSE +0 -0
- /package/src/primitives/{pin-input → alert-dialog}/LICENSE +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../shared/src/primitives/grace-area/index.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,KAAK;IACpB,CAAC,EAAE,MAAM,CAAA;IACT,CAAC,EAAE,MAAM,CAAA;CACV;AAED,MAAM,MAAM,OAAO,GAAG,KAAK,EAAE,CAAA;AAE7B,KAAK,IAAI,GAAG,KAAK,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAA;AAE/C,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,OAAO,GAAG,IAAI,CAelE;AAED,wBAAgB,gBAAgB,CAAC,SAAS,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,SAAI,GAAG,KAAK,EAAE,CAuBvF;AAED,wBAAgB,cAAc,CAAC,IAAI,EAAE,OAAO,GAAG,KAAK,EAAE,CAQrD;AAED,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,WAU9D;AAqCD,wBAAgB,IAAI,CAAC,MAAM,EAAE,KAAK,EAAE,WAGnC"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { type FocusIntent } from '../roving-focus';
|
|
2
|
+
import { isEqual } from '../value';
|
|
3
|
+
export { isEqual };
|
|
4
|
+
export type Comparator<T = unknown> = string | ((a: T, b: T) => boolean);
|
|
5
|
+
export type ListboxSelectionBehavior = 'toggle' | 'replace';
|
|
6
|
+
export interface ListboxEntry<V = unknown> {
|
|
7
|
+
ref: HTMLElement;
|
|
8
|
+
value?: V;
|
|
9
|
+
}
|
|
10
|
+
export declare const LISTBOX_SELECT = "listbox.select";
|
|
11
|
+
export type ListboxSelectEvent<T = unknown> = CustomEvent<{
|
|
12
|
+
originalEvent: Event;
|
|
13
|
+
value: T;
|
|
14
|
+
}>;
|
|
15
|
+
export declare function dispatchListboxSelect<T>(event: Event, value: T, callback: (event: ListboxSelectEvent<T>) => void): void;
|
|
16
|
+
export declare function compare<T>(value: T | undefined, currentValue: T | undefined, comparator?: Comparator<T>): boolean;
|
|
17
|
+
export declare function valueComparator<T>(value: T | T[] | undefined, currentValue: T, comparator?: Comparator<T>): boolean;
|
|
18
|
+
export declare function findValuesBetween<T>(array: T[], start: T, end: T): T[];
|
|
19
|
+
export declare function nextListboxValue<T>(model: T | T[] | undefined, value: T, options: {
|
|
20
|
+
multiple: boolean;
|
|
21
|
+
selectionBehavior: ListboxSelectionBehavior;
|
|
22
|
+
by?: Comparator<T>;
|
|
23
|
+
}): {
|
|
24
|
+
value: T | T[] | undefined;
|
|
25
|
+
anchor: boolean;
|
|
26
|
+
};
|
|
27
|
+
export declare function enabledListboxItems(items: HTMLElement[]): HTMLElement[];
|
|
28
|
+
export declare function listboxNavigation(items: HTMLElement[], current: HTMLElement | null | undefined, intent: FocusIntent): {
|
|
29
|
+
target: HTMLElement | undefined;
|
|
30
|
+
rangeTarget: HTMLElement | undefined;
|
|
31
|
+
extendsRange: boolean;
|
|
32
|
+
};
|
|
33
|
+
export declare function listboxRangeValues<V>(event: Pick<KeyboardEvent, 'key' | 'shiftKey' | 'altKey' | 'ctrlKey' | 'metaKey'>, items: ListboxEntry<V>[], target: HTMLElement | undefined, firstValue: V | undefined): V[] | undefined;
|
|
34
|
+
export declare function listboxContentTabIndex(focusable: boolean, highlighted: boolean): "-1" | "0";
|
|
35
|
+
export declare function listboxItemTabIndex(focusable: boolean, highlighted: boolean): -1 | "-1" | "0";
|
|
36
|
+
export declare function ignoresListboxArrow(key: string, orientation: 'vertical' | 'horizontal'): boolean;
|
|
37
|
+
export declare function getNextMatch(values: string[], search: string, currentMatch?: string): string | undefined;
|
|
38
|
+
export declare function createTypeahead(timeout?: number): {
|
|
39
|
+
readonly search: string;
|
|
40
|
+
reset(): void;
|
|
41
|
+
handle(key: string, items: {
|
|
42
|
+
ref: HTMLElement;
|
|
43
|
+
value?: unknown;
|
|
44
|
+
}[]): HTMLElement | undefined;
|
|
45
|
+
dispose(): void;
|
|
46
|
+
};
|
|
47
|
+
export type Typeahead = ReturnType<typeof createTypeahead>;
|
|
48
|
+
export interface EventHook<T> {
|
|
49
|
+
on: (listener: (value: T) => void) => {
|
|
50
|
+
off: () => void;
|
|
51
|
+
};
|
|
52
|
+
trigger: (value: T) => void;
|
|
53
|
+
}
|
|
54
|
+
export declare function createEventHook<T>(): EventHook<T>;
|
|
55
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../shared/src/primitives/listbox/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAa,KAAK,WAAW,EAAE,MAAM,iBAAiB,CAAA;AAC7D,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAA;AAElC,OAAO,EAAE,OAAO,EAAE,CAAA;AAElB,MAAM,MAAM,UAAU,CAAC,CAAC,GAAG,OAAO,IAAI,MAAM,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,OAAO,CAAC,CAAA;AACxE,MAAM,MAAM,wBAAwB,GAAG,QAAQ,GAAG,SAAS,CAAA;AAE3D,MAAM,WAAW,YAAY,CAAC,CAAC,GAAG,OAAO;IACvC,GAAG,EAAE,WAAW,CAAA;IAChB,KAAK,CAAC,EAAE,CAAC,CAAA;CACV;AAED,eAAO,MAAM,cAAc,mBAAmB,CAAA;AAE9C,MAAM,MAAM,kBAAkB,CAAC,CAAC,GAAG,OAAO,IAAI,WAAW,CAAC;IAAE,aAAa,EAAE,KAAK,CAAC;IAAC,KAAK,EAAE,CAAC,CAAA;CAAE,CAAC,CAAA;AAE7F,wBAAgB,qBAAqB,CAAC,CAAC,EACrC,KAAK,EAAE,KAAK,EACZ,KAAK,EAAE,CAAC,EACR,QAAQ,E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AAY,CAAC,CAAC,CAAC,EAAE,EACxB,MAAM,EAAE,WAAW,GAAG,SAAS,EAC/B,UAAU,EAAE,CAAC,GAAG,SAAS,mBAc1B;AAED,wBAAgB,sBAAsB,CAAC,SAAS,EAAE,OAAO,EAAE,WAAW,EAAE,OAAO,cAE9E;AAED,wBAAgB,mBAAmB,CAAC,SAAS,EAAE,OAAO,EAAE,WAAW,EAAE,OAAO,mBAE3E;AAED,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,MAAM,EAAE,WAAW,EAAE,UAAU,GAAG,YAAY,WAKtF;AAED,wBAAgB,YAAY,CAAC,MAAM,EAAE,MAAM,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,MAAM,sBAUnF;AAED,wBAAgB,eAAe,CAAC,OAAO,SAAO;;;gBAkB9B,MAAM,SAAS;QAAE,GAAG,EAAE,WAAW,CAAC;QAAC,KAAK,CAAC,EAAE,OAAO,CAAA;KAAE,EAAE;;EAqBrE;AAED,MAAM,MAAM,SAAS,GAAG,UAAU,CAAC,OAAO,eAAe,CAAC,CAAA;AAE1D,MAAM,WAAW,SAAS,CAAC,CAAC;IAC1B,EAAE,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI,KAAK;QAAE,GAAG,EAAE,MAAM,IAAI,CAAA;KAAE,CAAA;IACzD,OAAO,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI,CAAA;CAC5B;AAED,wBAAgB,eAAe,CAAC,CAAC,KAAK,SAAS,CAAC,CAAC,CAAC,CAWjD"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { type Polygon } from '../grace-area';
|
|
2
|
+
export type CheckedState = boolean | 'indeterminate';
|
|
3
|
+
export type MenuDirection = 'ltr' | 'rtl';
|
|
4
|
+
export type GraceSide = 'left' | 'right';
|
|
5
|
+
export interface GraceIntent {
|
|
6
|
+
area: Polygon;
|
|
7
|
+
side: GraceSide;
|
|
8
|
+
}
|
|
9
|
+
export declare const ITEM_SELECT = "menu.itemSelect";
|
|
10
|
+
export declare const SELECTION_KEYS: string[];
|
|
11
|
+
export declare const FIRST_KEYS: string[];
|
|
12
|
+
export declare const LAST_KEYS: string[];
|
|
13
|
+
export declare const FIRST_LAST_KEYS: string[];
|
|
14
|
+
export declare const SUB_OPEN_KEYS: Record<MenuDirection, string[]>;
|
|
15
|
+
export declare const SUB_CLOSE_KEYS: Record<MenuDirection, string[]>;
|
|
16
|
+
export declare function getOpenState(open: boolean): "closed" | "open";
|
|
17
|
+
export declare function isIndeterminate(checked?: CheckedState): checked is 'indeterminate';
|
|
18
|
+
export declare function getCheckedState(checked: CheckedState): "indeterminate" | "checked" | "unchecked";
|
|
19
|
+
export declare function isPointerInGraceArea(event: {
|
|
20
|
+
clientX: number;
|
|
21
|
+
clientY: number;
|
|
22
|
+
}, area?: Polygon): boolean;
|
|
23
|
+
export declare function isMouseEvent(event: {
|
|
24
|
+
pointerType: string;
|
|
25
|
+
}): boolean;
|
|
26
|
+
export declare function submenuGraceIntent(event: {
|
|
27
|
+
clientX: number;
|
|
28
|
+
clientY: number;
|
|
29
|
+
}, contentRect: {
|
|
30
|
+
left: number;
|
|
31
|
+
right: number;
|
|
32
|
+
top: number;
|
|
33
|
+
bottom: number;
|
|
34
|
+
}, side: GraceSide): GraceIntent;
|
|
35
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../shared/src/primitives/menu/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,KAAK,OAAO,EAAE,MAAM,eAAe,CAAA;AAE9D,MAAM,MAAM,YAAY,GAAG,OAAO,GAAG,eAAe,CAAA;AACpD,MAAM,MAAM,aAAa,GAAG,KAAK,GAAG,KAAK,CAAA;AACzC,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,OAAO,CAAA;AAExC,MAAM,WAAW,WAAW;I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
3
|
+
export declare function makeTriggerId(baseId: string, value: string): string;
|
|
4
|
+
export declare function makeContentId(baseId: string, value: string): string;
|
|
5
|
+
export declare const LINK_SELECT = "navigationMenu.linkSelect";
|
|
6
|
+
export declare const EVENT_ROOT_CONTENT_DISMISS = "navigationMenu.rootContentDismiss";
|
|
7
|
+
export declare function getTabbableCandidates(container: HTMLElement): HTMLElement[];
|
|
8
|
+
export declare function focusFirst(candidates: HTMLElement[]): boolean;
|
|
9
|
+
export declare function removeFromTabOrder(candidates: HTMLElement[]): () => void;
|
|
10
|
+
export declare function whenMouse<E extends PointerEvent>(handler: (event: E) => void): (event: E) => void;
|
|
11
|
+
export interface MotionState {
|
|
12
|
+
triggers: HTMLElement[];
|
|
13
|
+
dir: 'ltr' | 'rtl';
|
|
14
|
+
modelValue: string;
|
|
15
|
+
previousValue: string;
|
|
16
|
+
value: string;
|
|
17
|
+
}
|
|
18
|
+
export declare function getMotionAttribute(state: MotionState): "from-end" | "from-start" | "to-start" | "to-end" | null | undefined;
|
|
19
|
+
export declare function getViewportPosition(root: HTMLElement, trigger: HTMLElement, content: HTMLElement, align: NavigationMenuAlign | string | undefined): {
|
|
20
|
+
left: number;
|
|
21
|
+
top: number;
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../shared/src/primitives/navigation-menu/index.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,mBAAmB,GAAG,OAAO,GAAG,QAAQ,GAAG,KAAK,CAAA;AAE5D,wBAAgB,YAAY,CAAC,IAAI,EAAE,OAAO,qBAEzC;AAED,wBAAgB,aAAa,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,UAE1D;AAED,wBAAgB,aAAa,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,UAE1D;AAED,eAAO,MAAM,WAAW,8BAA8B,CAAA;AACtD,eAAO,MAAM,0BAA0B,sCAAsC,CAAA;AAE7E,wBAAgB,qBAAqB,CAAC,SAAS,EAAE,WAAW,iBAY3D;AAED,wBAAgB,UAAU,CAAC,UAAU,EAAE,WAAW,EAAE,WAOnD;AAED,wBAAgB,kBAAkB,CAAC,UAAU,EAAE,WAAW,EAAE,cAW3D;AAED,wBAAgB,SAAS,CAAC,CAAC,SAAS,YAAY,EAAE,OAAO,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI,IACnE,OAAO,CAAC,UACjB;AAED,MAAM,WAAW,WAAW;IAC1B,QAAQ,EAAE,WAAW,EAAE,CAAA;IACvB,GAAG,EAAE,KAAK,GAAG,KAAK,CAAA;IAClB,UAAU,EAAE,MAAM,CAAA;IAClB,aAAa,EAAE,MAAM,CAAA;IACrB,KAAK,EAAE,MAAM,CAAA;CACd;AAED,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,WAAW,wEAapD;AAED,wBAAgB,mBAAmB,CACjC,IAAI,EAAE,WAAW,EACjB,OAAO,EAAE,WAAW,EACpB,OAAO,EAAE,WAAW,EACpB,KAAK,EAAE,mBAAmB,GAAG,MAAM,GAAG,SAAS;;;EAsChD"}
|
|
@@ -1,31 +1,39 @@
|
|
|
1
|
-
export
|
|
2
|
-
|
|
3
|
-
export declare function isPinInputComplete(values: PinInputValue, count: number, numeric: boolean): boolean;
|
|
4
|
-
export declare function stripPinNonNumbers(value: string): string;
|
|
5
|
-
export declare function setPinValueAt(current: PinInputValue, index: number, value: string, numeric: boolean): PinInputValue;
|
|
6
|
-
export declare function spreadPinValue(current: PinInputValue, characters: string, index: number, count: number, numeric: boolean): {
|
|
7
|
-
values: (string | number | undefined)[];
|
|
8
|
-
filled: number[];
|
|
1
|
+
export interface PinRange {
|
|
2
|
+
start: number;
|
|
9
3
|
end: number;
|
|
10
|
-
}
|
|
11
|
-
export
|
|
12
|
-
|
|
13
|
-
}
|
|
14
|
-
|
|
4
|
+
}
|
|
5
|
+
export interface PinInputSelection extends PinRange {
|
|
6
|
+
focused: boolean;
|
|
7
|
+
}
|
|
8
|
+
export interface PinEdit extends PinRange {
|
|
15
9
|
value: string;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
10
|
+
}
|
|
11
|
+
export interface PinCell {
|
|
12
|
+
char: string;
|
|
13
|
+
active: boolean;
|
|
14
|
+
caret: boolean;
|
|
15
|
+
}
|
|
16
|
+
export interface PinInputOptions {
|
|
17
|
+
length: () => number;
|
|
18
|
+
numeric: () => boolean;
|
|
19
|
+
value: () => string;
|
|
20
|
+
rtl: () => boolean;
|
|
21
|
+
cells: () => ArrayLike<Element>;
|
|
22
|
+
change: (value: string) => void;
|
|
23
|
+
select: (selection: PinInputSelection) => void;
|
|
24
|
+
}
|
|
25
|
+
export interface PinInputController {
|
|
26
|
+
sync: () => void;
|
|
27
|
+
dispose: () => void;
|
|
28
|
+
}
|
|
29
|
+
export declare function cleanPinText(text: string, numeric: boolean): string;
|
|
30
|
+
export declare function pinInputValue(value: string, length: number): string;
|
|
31
|
+
export declare function pinSelectionAt(caret: number, size: number, length: number, backward?: boolean): [number, number];
|
|
32
|
+
export declare function editPinValue(base: string, raw: string, selection: PinRange | null, length: number, numeric: boolean, type?: string): PinEdit;
|
|
33
|
+
export declare function movePinSelection(selection: PinRange, backward: boolean, size: number, length: number, target: number | 'previous' | 'next', extend: boolean): PinRange & {
|
|
34
|
+
backward: boolean;
|
|
22
35
|
};
|
|
23
|
-
export declare function
|
|
24
|
-
export declare function
|
|
25
|
-
export declare function
|
|
26
|
-
export declare function pinFocusRedirect(values: PinInputValue, count: number, index: number): number;
|
|
27
|
-
export declare function isPinNavigationKey(key: string): boolean;
|
|
28
|
-
export declare function navigatePin(event: KeyboardEvent, current: HTMLElement | null, inputs: HTMLElement[], dir: 'ltr' | 'rtl'): void;
|
|
29
|
-
export declare function pinPlaceholder(element: HTMLInputElement, active: Element | null, placeholder: string): void;
|
|
30
|
-
export declare function pinInputLabel(index: number, count: number): string;
|
|
36
|
+
export declare function pinCells(value: string, length: number, selection: PinInputSelection): PinCell[];
|
|
37
|
+
export declare function pinCellAt(cells: ArrayLike<Element>, x: number): number;
|
|
38
|
+
export declare function createPinInput(input: HTMLInputElement, options: PinInputOptions): PinInputController;
|
|
31
39
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../shared/src/primitives/pin-input/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../shared/src/primitives/pin-input/index.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,QAAQ;IACvB,KAAK,EAAE,MAAM,CAAA;IACb,GAAG,EAAE,MAAM,CAAA;CACZ;AAED,MAAM,WAAW,iBAAkB,SAAQ,QAAQ;IACjD,OAAO,EAAE,OAAO,CAAA;CACjB;AAED,MAAM,WAAW,OAAQ,SAAQ,QAAQ;IACvC,KAAK,EAAE,MAAM,CAAA;CACd;AAED,MAAM,WAAW,OAAO;IACtB,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,OAAO,CAAA;IACf,KAAK,EAAE,OAAO,CAAA;CACf;AAED,MAAM,WAAW,eAAe;IAC9B,MAAM,EAAE,MAAM,MAAM,CAAA;IACpB,OAAO,EAAE,MAAM,OAAO,CAAA;IACtB,KAAK,EAAE,MAAM,MAAM,CAAA;IACnB,GAAG,EAAE,MAAM,OAAO,CAAA;IAClB,KAAK,EAAE,MAAM,SAAS,CAAC,OAAO,CAAC,CAAA;IAC/B,MAAM,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IAC/B,MAAM,EAAE,CAAC,SAAS,EAAE,iBAAiB,KAAK,IAAI,CAAA;CAC/C;AAED,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,MAAM,IAAI,CAAA;IAChB,OAAO,EAAE,MAAM,IAAI,CAAA;CACpB;AAOD,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,UAK1D;AAED,wBAAgB,aAAa,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,UAE1D;AAED,wBAAgB,cAAc,CAC5B,KAAK,EAAE,MAAM,EACb,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,MAAM,EACd,QAAQ,UAAQ,GACf,CAAC,MAAM,EAAE,MAAM,CAAC,CAIlB;AAED,wBAAgB,YAAY,CAC1B,IAAI,EAAE,MAAM,EACZ,GAAG,EAAE,MAAM,EACX,SAAS,EAAE,QAAQ,GAAG,IAAI,EAC1B,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,OAAO,EAChB,IAAI,SAAK,GACR,OAAO,CAiCT;AAED,wBAAgB,gBAAgB,CAC9B,SAAS,EAAE,QAAQ,EACnB,QAAQ,EAAE,OAAO,EACjB,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,GAAG,UAAU,GAAG,MAAM,EACpC,MAAM,EAAE,OAAO,GACd,QAAQ,GAAG;IAAE,QAAQ,EAAE,OAAO,CAAA;CAAE,CAwBlC;AAED,wBAAgB,QAAQ,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,iBAAiB,GAAG,OAAO,EAAE,CAS/F;AAED,wBAAgB,SAAS,CAAC,KAAK,EAAE,SAAS,CAAC,OAAO,CAAC,EAAE,CAAC,EAAE,MAAM,UAY7D;AAQD,wBAAgB,cAAc,CAC5B,KAAK,EAAE,gBAAgB,EACvB,OAAO,EAAE,eAAe,GACvB,kBAAkB,CA4PpB"}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { type Middleware, type MiddlewareData, type Placement } from '@floating-ui/dom';
|
|
2
|
+
declare const SIDE_OPTIONS: readonly ["top", "right", "bottom", "left"];
|
|
3
|
+
declare const ALIGN_OPTIONS: readonly ["start", "center", "end"];
|
|
4
|
+
export type Side = (typeof SIDE_OPTIONS)[number];
|
|
5
|
+
export type Align = (typeof ALIGN_OPTIONS)[number];
|
|
6
|
+
export type Direction = 'ltr' | 'rtl';
|
|
7
|
+
export declare function isNotNull<T>(value: T | null): value is T;
|
|
8
|
+
export declare function transformOrigin(options: {
|
|
9
|
+
arrowWidth: number;
|
|
10
|
+
arrowHeight: number;
|
|
11
|
+
dir?: Direction;
|
|
12
|
+
}): Middleware;
|
|
13
|
+
export declare function getSideAndAlignFromPlacement(placement: Placement): readonly ["bottom" | "left" | "right" | "top", "end" | "start" | "center"];
|
|
14
|
+
export type PopperSticky = 'partial' | 'always';
|
|
15
|
+
export type PopperStrategy = 'absolute' | 'fixed';
|
|
16
|
+
export type PopperUpdateStrategy = 'optimized' | 'always';
|
|
17
|
+
export declare const POPPER_CONTENT_DEFAULTS: {
|
|
18
|
+
side: Side;
|
|
19
|
+
sideOffset: number;
|
|
20
|
+
sideFlip: boolean;
|
|
21
|
+
align: Align;
|
|
22
|
+
alignOffset: number;
|
|
23
|
+
alignFlip: boolean;
|
|
24
|
+
arrowPadding: number;
|
|
25
|
+
hideShiftedArrow: boolean;
|
|
26
|
+
avoidCollisions: boolean;
|
|
27
|
+
collisionBoundary: () => Element[];
|
|
28
|
+
collisionPadding: number;
|
|
29
|
+
sticky: PopperSticky;
|
|
30
|
+
hideWhenDetached: boolean;
|
|
31
|
+
positionStrategy: PopperStrategy;
|
|
32
|
+
updatePositionStrategy: PopperUpdateStrategy;
|
|
33
|
+
prioritizePosition: boolean;
|
|
34
|
+
};
|
|
35
|
+
export declare function popperPlacement(side: Side, align: Align): Placement;
|
|
36
|
+
export interface PopperMiddlewareOptions {
|
|
37
|
+
sideOffset: number;
|
|
38
|
+
alignOffset: number;
|
|
39
|
+
sideFlip: boolean;
|
|
40
|
+
alignFlip: boolean;
|
|
41
|
+
avoidCollisions: boolean;
|
|
42
|
+
prioritizePosition: boolean;
|
|
43
|
+
sticky: PopperSticky;
|
|
44
|
+
collisionPadding: number | Partial<Record<Side, number>>;
|
|
45
|
+
collisionBoundary: Element | null | Array<Element | null>;
|
|
46
|
+
arrow: HTMLElement | null | undefined;
|
|
47
|
+
arrowWidth: number;
|
|
48
|
+
arrowHeight: number;
|
|
49
|
+
arrowPadding: number;
|
|
50
|
+
hideWhenDetached: boolean;
|
|
51
|
+
dir: Direction;
|
|
52
|
+
prefix: 'reka' | 'radix';
|
|
53
|
+
}
|
|
54
|
+
export declare function popperMiddleware(options: PopperMiddlewareOptions): Middleware[];
|
|
55
|
+
export declare function popperWrapperStyle(floatingStyles: object & {
|
|
56
|
+
transform?: unknown;
|
|
57
|
+
}, options: {
|
|
58
|
+
isPositioned: boolean;
|
|
59
|
+
zIndex: string;
|
|
60
|
+
middlewareData: MiddlewareData;
|
|
61
|
+
prefix: 'reka' | 'radix';
|
|
62
|
+
}): {
|
|
63
|
+
visibility?: string | undefined;
|
|
64
|
+
pointerEvents?: string | undefined;
|
|
65
|
+
transform: unknown;
|
|
66
|
+
minWidth: string;
|
|
67
|
+
zIndex: string;
|
|
68
|
+
};
|
|
69
|
+
export declare function shouldHidePopperArrow(hideShiftedArrow: boolean, middlewareData: MiddlewareData): boolean;
|
|
70
|
+
export declare const OPPOSITE_SIDE: Record<Side, Side>;
|
|
71
|
+
export declare const ARROW_PATH = "M0 0L6 6L12 0";
|
|
72
|
+
export declare const ROUNDED_ARROW_PATH = "M0 0L4.58579 4.58579C5.36683 5.36683 6.63316 5.36684 7.41421 4.58579L12 0";
|
|
73
|
+
export declare function popperArrowStyle(placedSide: Side, arrowX: number | undefined, arrowY: number | undefined, hidden: boolean): {
|
|
74
|
+
readonly [x: string]: string | 0 | undefined;
|
|
75
|
+
readonly position: "absolute";
|
|
76
|
+
readonly left: string | undefined;
|
|
77
|
+
readonly top: string | undefined;
|
|
78
|
+
readonly transformOrigin: string;
|
|
79
|
+
readonly transform: string;
|
|
80
|
+
readonly visibility: "hidden" | undefined;
|
|
81
|
+
};
|
|
82
|
+
export {};
|
|
83
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../shared/src/primitives/popper/index.ts"],"names":[],"mappings":"AAAA,OAAO,EASL,KAAK,UAAU,EACf,KAAK,cAAc,EAEnB,KAAK,SAAS,EACf,MAAM,kBAAkB,CAAA;AAEzB,QAAA,MAAM,YAAY,6CAA8C,CAAA;AAChE,QAAA,MAAM,aAAa,qCAAsC,CAAA;AAEzD,MAAM,MAAM,IAAI,GAAG,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,CAAC,CAAA;AAChD,MAAM,MAAM,KAAK,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,CAAC,CAAA;AAClD,MAAM,MAAM,SAAS,GAAG,KAAK,GAAG,KAAK,CAAA;AAErC,wBAAgB,SAAS,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,IAAI,GAAG,KAAK,IAAI,CAAC,CAExD;AAED,wBAAgB,eAAe,CAAC,OAAO,EAAE;IACvC,UAAU,EAAE,MAAM,CAAA;IAClB,WAAW,EAAE,MAAM,CAAA;IACnB,GAAG,CAAC,EAAE,SAAS,CAAA;CAChB,GAAG,UAAU,CA+Cb;AAED,wBAAgB,4BAA4B,CAAC,SAAS,EAAE,SAAS,8EAGhE;AAED,MAAM,MAAM,YAAY,GAAG,SAAS,GAAG,QAAQ,CAAA;AAC/C,MAAM,MAAM,cAAc,GAAG,UAAU,GAAG,OAAO,CAAA;AACjD,MAAM,MAAM,oBAAoB,GAAG,WAAW,GAAG,QAAQ,CAAA;AAEzD,eAAO,MAAM,uBAAuB;UAChB,IAAI;;;WAGH,KAAK;;;;;;6BAMO,OAAO,EAAE;;YAEnB,YAAY;;sBAEJ,cAAc;4BACJ,oBAAoB;;CAE5D,CAAA;AAED,wBAAgB,eAAe,CAAC,IAAI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,UAAU,kBAAkB,CAAA;AACzC,eAAO,MAAM,kBAAkB,8EAC8C,CAAA;AAE7E,wBAAgB,gBAAgB,CAC9B,UAAU,EAAE,IAAI,EAChB,MAAM,EAAE,MAAM,GAAG,SAAS,EAC1B,MAAM,EAAE,MAAM,GAAG,SAAS,EAC1B,MAAM,EAAE,OAAO;;;;;;;;EAgBhB"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { type Comparator } from '../listbox';
|
|
2
|
+
export declare const OPEN_KEYS: string[];
|
|
3
|
+
export declare const SELECTION_KEYS: string[];
|
|
4
|
+
export declare const CONTENT_MARGIN = 10;
|
|
5
|
+
export declare const SELECT_SELECT = "select.select";
|
|
6
|
+
export declare function isNullish(value: unknown): value is null | undefined;
|
|
7
|
+
export declare function shouldShowPlaceholder(value: unknown): boolean;
|
|
8
|
+
export declare function toggleSelectValue<T>(current: unknown, value: T, by?: Comparator<T>): T[];
|
|
9
|
+
export declare function selectNavigationCandidates(items: HTMLElement[], key: string, target: EventTarget | null): HTMLElement[] | null;
|
|
10
|
+
export interface TriggerReleaseOptions {
|
|
11
|
+
content: HTMLElement;
|
|
12
|
+
origin: () => {
|
|
13
|
+
x: number;
|
|
14
|
+
y: number;
|
|
15
|
+
} | null | undefined;
|
|
16
|
+
onOutsideRelease: () => void;
|
|
17
|
+
onRelease: () => void;
|
|
18
|
+
}
|
|
19
|
+
export declare function trackTriggerRelease(options: TriggerReleaseOptions): () => void;
|
|
20
|
+
export declare function createSelectedItemTracker(): {
|
|
21
|
+
item(isSelected: boolean, disabled: boolean | undefined, multiple: boolean): boolean;
|
|
22
|
+
text(isSelected: boolean, disabled: boolean | undefined): boolean;
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../shared/src/primitives/select/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAW,KAAK,UAAU,EAAE,MAAM,YAAY,CAAA;AAErD,eAAO,MAAM,SAAS,UAAyC,CAAA;AAC/D,eAAO,MAAM,cAAc,UAAiB,CAAA;AAC5C,eAAO,MAAM,cAAc,KAAK,CAAA;AAChC,eAAO,MAAM,aAAa,kBAAkB,CAAA;AAE5C,wBAAgB,SAAS,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,IAAI,GAAG,SAAS,CAEnE;AAED,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,OAAO,WAOnD;AAED,wBAAgB,iBAAiB,CAAC,CAAC,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,CAAC,EAAE,UAAU,CAAC,CAAC,CAAC,OAMlF;AAED,wBAAgB,0BAA0B,CACxC,KAAK,EAAE,WAAW,EAAE,EACpB,GAAG,EAAE,MAAM,EACX,MAAM,EAAE,WAAW,GAAG,IAAI,wBAU3B;AAED,MAAM,WAAW,qBAAqB;IACpC,OAAO,EAAE,WAAW,CAAA;IACpB,MAAM,EAAE,MAAM;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,GAAG,SAAS,CAAA;IACzD,gBAAgB,EAAE,MAAM,IAAI,CAAA;IAC5B,SAAS,EAAE,MAAM,IAAI,CAAA;CACtB;AAED,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,qBAAqB,cAwBjE;AAED,wBAAgB,yBAAyB;qBAIpB,OAAO,YAAY,OAAO,GAAG,SAAS,YAAY,OAAO;qBAazD,OAAO,YAAY,OAAO,GAAG,SAAS;EAI1D"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export type AcceptableInputValue = string | number | bigint | Record<string, any>;
|
|
2
|
+
export type TagsInputDirection = 'ltr' | 'rtl';
|
|
3
|
+
export declare function tagsInputDisplayValue(value: AcceptableInputValue): string;
|
|
4
|
+
export type TagsInputAddResult<T> = {
|
|
5
|
+
added: true;
|
|
6
|
+
value: T[];
|
|
7
|
+
payload: T;
|
|
8
|
+
} | {
|
|
9
|
+
added: false;
|
|
10
|
+
payload: T;
|
|
11
|
+
duplicate: boolean;
|
|
12
|
+
};
|
|
13
|
+
export declare function addTagsInputValue<T extends AcceptableInputValue>(model: T[] | null | undefined, text: string, options: {
|
|
14
|
+
duplicate: boolean;
|
|
15
|
+
max: number;
|
|
16
|
+
defaultValue: T[];
|
|
17
|
+
convertValue?: (value: string) => T;
|
|
18
|
+
}): TagsInputAddResult<T>;
|
|
19
|
+
export declare function removeTagsInputValue<T>(model: T[], index: number): T[];
|
|
20
|
+
export declare function tagsInputValueIndex<T>(model: T[], value: unknown): number;
|
|
21
|
+
export interface TagsInputKeydownResult {
|
|
22
|
+
select?: {
|
|
23
|
+
element: HTMLElement | undefined;
|
|
24
|
+
};
|
|
25
|
+
remove?: HTMLElement;
|
|
26
|
+
preventDefault: boolean;
|
|
27
|
+
}
|
|
28
|
+
export declare function tagsInputKeydown(event: KeyboardEvent, state: {
|
|
29
|
+
caretAtStart: boolean;
|
|
30
|
+
items: HTMLElement[];
|
|
31
|
+
selected: HTMLElement | undefined;
|
|
32
|
+
dir: TagsInputDirection;
|
|
33
|
+
}): TagsInputKeydownResult | undefined;
|
|
34
|
+
export declare function matchesTagsInputDelimiter(delimiter: string | RegExp, data: string): boolean;
|
|
35
|
+
export declare function splitTagsInputPaste(value: string, delimiter: string | RegExp): string[];
|
|
36
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../shared/src/primitives/tags-input/index.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,oBAAoB,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;AACjF,MAAM,MAAM,kBAAkB,GAAG,KAAK,GAAG,KAAK,CAAA;AAE9C,wBAAgB,qBAAqB,CAAC,K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,SAAS,CA8CpC;AAED,wBAAgB,yBAAyB,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,EAAE,IAAI,EAAE,MAAM,WAEjF;AAED,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM,YAE5E"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
export declare const TOAST_SWIPE_START = "toast.swipeStart";
|
|
2
|
+
export declare const TOAST_SWIPE_MOVE = "toast.swipeMove";
|
|
3
|
+
export declare const TOAST_SWIPE_CANCEL = "toast.swipeCancel";
|
|
4
|
+
export declare const TOAST_SWIPE_END = "toast.swipeEnd";
|
|
5
|
+
export declare const VIEWPORT_PAUSE = "toast.viewportPause";
|
|
6
|
+
export declare const VIEWPORT_RESUME = "toast.viewportResume";
|
|
7
|
+
export type SwipeDirection = 'up' | 'down' | 'left' | 'right';
|
|
8
|
+
export interface SwipeDetail {
|
|
9
|
+
originalEvent: PointerEvent;
|
|
10
|
+
delta: {
|
|
11
|
+
x: number;
|
|
12
|
+
y: number;
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
export type SwipeEvent = CustomEvent<SwipeDetail> & {
|
|
16
|
+
currentTarget: HTMLElement;
|
|
17
|
+
};
|
|
18
|
+
export declare function dispatchSwipeEvent(name: string, target: EventTarget, handler: ((event: SwipeEvent) => void) | undefined, detail: SwipeDetail): void;
|
|
19
|
+
export declare function isDeltaInDirection(delta: {
|
|
20
|
+
x: number;
|
|
21
|
+
y: number;
|
|
22
|
+
}, direction: SwipeDirection, threshold?: number): boolean;
|
|
23
|
+
export declare function swipeDelta(start: {
|
|
24
|
+
x: number;
|
|
25
|
+
y: number;
|
|
26
|
+
}, point: {
|
|
27
|
+
clientX: number;
|
|
28
|
+
clientY: number;
|
|
29
|
+
}, direction: SwipeDirection): {
|
|
30
|
+
x: number;
|
|
31
|
+
y: number;
|
|
32
|
+
delta: {
|
|
33
|
+
x: number;
|
|
34
|
+
y: number;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
export declare function swipeStartBuffer(pointerType: string): 10 | 2;
|
|
38
|
+
export declare function getAnnounceTextContent(container: HTMLElement, prefix: 'reka' | 'radix'): string[];
|
|
39
|
+
export declare function hotkeyMessage(hotkey: string[]): string;
|
|
40
|
+
export declare function viewportLabel(label: string | ((hotkey: string) => string), hotkey: string): string;
|
|
41
|
+
export declare function sortTabbableCandidates(toasts: HTMLElement[], tabbingDirection: 'forwards' | 'backwards'): HTMLElement[];
|
|
42
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../shared/src/primitives/toast/index.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,iBAAiB,qBAAqB,CAAA;AACnD,eAAO,MAAM,gBAAgB,oBAAoB,CAAA;AACjD,eAAO,MAAM,kBAAkB,sBAAsB,CAAA;AACrD,eAAO,MAAM,eAAe,mBAAmB,CAAA;AAC/C,eAAO,MAAM,cAAc,wBAAwB,CAAA;AACnD,eAAO,MAAM,eAAe,yBAAyB,CAAA;AAErD,MAAM,MAAM,cAAc,GAAG,IAAI,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAA;AAE7D,MAAM,WAAW,WAAW;IAC1B,aAAa,EAAE,YAAY,CAAA;IAC3B,KAAK,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,CAAA;CAChC;AAED,MAAM,MAAM,UAAU,GAAG,WAAW,CAAC,WAAW,CAAC,GAAG;IAAE,aAAa,EAAE,WAAW,CAAA;CAAE,CAAA;AAElF,wBAAgB,kBAAkB,CAChC,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,WAAW,EACnB,OAAO,EAAE,CAAC,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,CAAC,GAAG,SAAS,EAClD,MAAM,EAAE,WAAW,QAKpB;AAED,wBAAgB,kBAAkB,CAChC,KAAK,EAAE;IAAE,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAA;CAAE,EAC/B,SAAS,EAAE,cAAc,EACzB,SAAS,SAAI,WAOd;AAED,wBAAgB,UAAU,CACxB,KAAK,EAAE;IAAE,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAA;CAAE,EAC/B,KAAK,EAAE;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,EAC3C,SAAS,EAAE,cAAc;;;;;;;EAW1B;AAED,wBAAgB,gBAAgB,CAAC,WAAW,EAAE,MAAM,UAEnD;AAMD,wBAAgB,sBAAsB,CAAC,SAAS,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,YAiBtF;AAED,wBAAgB,aAAa,CAAC,MAAM,EAAE,MAAM,EAAE,UAE7C;AAED,wBAAgB,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,CAAC,CAAC,MAAM,EAAE,MAAM,KAAK,MAAM,CAAC,EAAE,MAAM,EAAE,MAAM,UAEzF;AAED,wBAAgB,sBAAsB,CACpC,MAAM,EAAE,WAAW,EAAE,EACrB,gBAAgB,EAAE,UAAU,GAAG,WAAW,iBAW3C"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { type ListboxSelectionBehavior } from '../listbox';
|
|
2
|
+
import type { FocusIntent } from '../roving-focus';
|
|
3
|
+
export type TreeValue = Record<string, any>;
|
|
4
|
+
export interface FlattenedItem<T> {
|
|
5
|
+
_id: string;
|
|
6
|
+
index: number;
|
|
7
|
+
value: T;
|
|
8
|
+
level: number;
|
|
9
|
+
hasChildren: boolean;
|
|
10
|
+
parentItem?: T;
|
|
11
|
+
bind: {
|
|
12
|
+
value: T;
|
|
13
|
+
level: number;
|
|
14
|
+
'aria-setsize': number;
|
|
15
|
+
'aria-posinset': number;
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
export interface TreeAccessors<T> {
|
|
19
|
+
getKey: (value: T) => string;
|
|
20
|
+
getChildren: (value: T) => T[] | undefined;
|
|
21
|
+
}
|
|
22
|
+
export declare const TREE_SELECT = "tree.select";
|
|
23
|
+
export declare const TREE_TOGGLE = "tree.toggle";
|
|
24
|
+
export declare const TREE_KEY_TO_INTENT: Record<string, FocusIntent>;
|
|
25
|
+
export declare function defaultTreeChildren<T extends TreeValue>(value: T): T[] | undefined;
|
|
26
|
+
export declare function flatten<U, T extends {
|
|
27
|
+
children?: any[];
|
|
28
|
+
}>(items: T[]): U[];
|
|
29
|
+
export declare function flattenTree<T>(items: T[], accessors: TreeAccessors<T>, expanded: string[], level?: number, parentItem?: T): FlattenedItem<T>[];
|
|
30
|
+
export declare function treeSelectedKeys<T>(model: unknown, multiple: boolean, getKey: (value: T) => string): string[];
|
|
31
|
+
export interface TreeSelectionOptions<T> extends TreeAccessors<T> {
|
|
32
|
+
multiple: boolean;
|
|
33
|
+
selectionBehavior: ListboxSelectionBehavior;
|
|
34
|
+
propagateSelect: boolean;
|
|
35
|
+
bubbleSelect: boolean;
|
|
36
|
+
flattened: FlattenedItem<T>[];
|
|
37
|
+
}
|
|
38
|
+
export declare function nextTreeSelection<T>(model: unknown, value: T, options: TreeSelectionOptions<T>): {
|
|
39
|
+
value: unknown;
|
|
40
|
+
anchor: boolean;
|
|
41
|
+
};
|
|
42
|
+
export declare function treeRangeValues(intent: FocusIntent | undefined, current: Element | null, entries: {
|
|
43
|
+
ref: HTMLElement;
|
|
44
|
+
value?: unknown;
|
|
45
|
+
}[], options: unknown[], state: {
|
|
46
|
+
firstValue: unknown;
|
|
47
|
+
multiple: boolean;
|
|
48
|
+
model: unknown;
|
|
49
|
+
}): unknown[] | null | undefined;
|
|
50
|
+
export declare function toggleTreeExpanded(expanded: string[], key: string): string[];
|
|
51
|
+
export declare function treeIndeterminate<T>(input: {
|
|
52
|
+
value: T;
|
|
53
|
+
model: unknown;
|
|
54
|
+
isSelected: boolean;
|
|
55
|
+
hasChildren: boolean;
|
|
56
|
+
bubbleSelect: boolean;
|
|
57
|
+
propagateSelect: boolean;
|
|
58
|
+
getKey: (value: T) => string;
|
|
59
|
+
getChildren: (value: T) => T[] | undefined;
|
|
60
|
+
}): boolean | undefined;
|
|
61
|
+
export declare function treeChildTarget(collection: HTMLElement[], current: Element | null, level: number): HTMLElement | undefined;
|
|
62
|
+
export declare function treeParentTarget(collection: HTMLElement[], current: Element | null, level: number): HTMLElement | undefined;
|
|
63
|
+
export interface TreeItemEventDetail<T> {
|
|
64
|
+
originalEvent: Event;
|
|
65
|
+
value?: T;
|
|
66
|
+
isExpanded: boolean;
|
|
67
|
+
isSelected: boolean;
|
|
68
|
+
}
|
|
69
|
+
export type TreeItemSelectEvent<T> = CustomEvent<TreeItemEventDetail<T>>;
|
|
70
|
+
export type TreeItemToggleEvent<T> = CustomEvent<TreeItemEventDetail<T>>;
|
|
71
|
+
export declare function dispatchTreeItemEvent<T>(name: typeof TREE_SELECT | typeof TREE_TOGGLE, handler: (event: CustomEvent<TreeItemEventDetail<T>>) => void, detail: TreeItemEventDetail<T>): void;
|
|
72
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../shared/src/primitives/tree/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAqB,KAAK,wBAAwB,EAAE,MAAM,YAAY,CAAA;AAC7E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAA;AAElD,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;AAE3C,MAAM,WAAW,aAAa,CAAC,CAAC;IAC9B,GAAG,EAAE,MAAM,CAAA;IACX,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,CAAC,CAAA;IACR,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,EAAE,OAAO,CAAA;IAC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AC3C,uBAaA;AAMD,wBAAgB,eAAe,CAAC,UAAU,EAAE,WAAW,EAAE,EAAE,OAAO,EAAE,OAAO,GAAG,IAAI,EAAE,KAAK,EAAE,MAAM,2BAGhG;AAED,wBAAgB,gBAAgB,CAC9B,UAAU,EAAE,WAAW,EAAE,EACzB,OAAO,EAAE,OAAO,GAAG,IAAI,EACvB,KAAK,EAAE,MAAM,2BAOd;AAED,MAAM,WAAW,mBAAmB,CAAC,CAAC;IACpC,aAAa,EAAE,KAAK,CAAA;IACpB,KAAK,CAAC,EAAE,CAAC,CAAA;IACT,UAAU,EAAE,OAAO,CAAA;IACnB,UAAU,EAAE,OAAO,CAAA;CACpB;AAED,MAAM,MAAM,mBAAmB,CAAC,CAAC,IAAI,WAAW,CAAC,mBAAmB,CAAC,CAAC,CAAC,CAAC,CAAA;AACxE,MAAM,MAAM,mBAAmB,CAAC,CAAC,IAAI,WAAW,CAAC,mBAAmB,CAAC,CAAC,CAAC,CAAC,CAAA;AAExE,wBAAgB,qBAAqB,CAAC,CAAC,EACrC,IAAI,EAAE,OAAO,WAAW,GAAG,OAAO,WAAW,EAC7C,OAAO,EAAE,CAAC,KAAK,EAAE,WAAW,CAAC,mBAAmB,CAAC,CAAC,CAAC,CAAC,KAAK,IAAI,EAC7D,MAAM,EAAE,mBAAmB,CAAC,CAAC,CAAC,QAG/B"}
|
|
@@ -14,5 +14,6 @@ export declare const navLink: import("tailwind-variants").TVReturnType<{
|
|
|
14
14
|
false: "text-muted";
|
|
15
15
|
};
|
|
16
16
|
}, undefined>>;
|
|
17
|
-
export declare const navLinkLabel: import("tailwind-variants").TVReturnType<{} | {} | {}, undefined, "hn-sidebar-label
|
|
17
|
+
export declare const navLinkLabel: import("tailwind-variants").TVReturnType<{} | {} | {}, undefined, "hn-sidebar-label min-w-0 truncate", {} | {}, undefined, import("tailwind-variants").TVReturnTypeLike<unknown, undefined>>;
|
|
18
|
+
export declare const navLinkTrailing: import("tailwind-variants").TVReturnType<{} | {} | {}, undefined, "hn-sidebar-label ms-auto flex shrink-0 items-center", {} | {}, undefined, import("tailwind-variants").TVReturnTypeLike<unknown, undefined>>;
|
|
18
19
|
//# sourceMappingURL=nav-link.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nav-link.d.ts","sourceRoot":"","sources":["../../../../../../shared/src/variants/nav-link.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;cAclB,CAAA;AAEF,eAAO,MAAM,YAAY,
|
|
1
|
+
{"version":3,"file":"nav-link.d.ts","sourceRoot":"","sources":["../../../../../../shared/src/variants/nav-link.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;cAclB,CAAA;AAEF,eAAO,MAAM,YAAY,8LAEvB,CAAA;AAEF,eAAO,MAAM,eAAe,gNAE1B,CAAA"}
|
|
@@ -1,14 +1,32 @@
|
|
|
1
1
|
import { type VariantProps } from '../lib/tv';
|
|
2
|
-
export declare const pinInput: import("tailwind-variants").TVReturnType<{
|
|
2
|
+
export declare const pinInput: import("tailwind-variants").TVReturnType<{
|
|
3
|
+
size: {
|
|
4
|
+
sm: "[--hn-pin-size:var(--hn-control-h-sm)]";
|
|
5
|
+
md: "[--hn-pin-size:var(--hn-control-h-md)]";
|
|
6
|
+
lg: "[--hn-pin-size:var(--hn-control-h-lg)]";
|
|
7
|
+
};
|
|
8
|
+
}, undefined, "relative inline-flex max-w-full gap-2", {
|
|
9
|
+
size: {
|
|
10
|
+
sm: "[--hn-pin-size:var(--hn-control-h-sm)]";
|
|
11
|
+
md: "[--hn-pin-size:var(--hn-control-h-md)]";
|
|
12
|
+
lg: "[--hn-pin-size:var(--hn-control-h-lg)]";
|
|
13
|
+
};
|
|
14
|
+
}, undefined, import("tailwind-variants").TVReturnTypeLike<{
|
|
15
|
+
size: {
|
|
16
|
+
sm: "[--hn-pin-size:var(--hn-control-h-sm)]";
|
|
17
|
+
md: "[--hn-pin-size:var(--hn-control-h-md)]";
|
|
18
|
+
lg: "[--hn-pin-size:var(--hn-control-h-lg)]";
|
|
19
|
+
};
|
|
20
|
+
}, undefined>>;
|
|
3
21
|
export declare const pinInputCell: import("tailwind-variants").TVReturnType<{
|
|
4
22
|
variant: {
|
|
5
23
|
primary: "border-line [--hn-field-bg:var(--hn-surface)] [--hn-field-shadow:var(--hn-shadow-sm)]";
|
|
6
24
|
secondary: "border-transparent [--hn-field-bg:var(--hn-bg-inset)]";
|
|
7
25
|
};
|
|
8
26
|
size: {
|
|
9
|
-
sm: "
|
|
10
|
-
md: "
|
|
11
|
-
lg: "
|
|
27
|
+
sm: "text-sm";
|
|
28
|
+
md: "text-base";
|
|
29
|
+
lg: "text-md";
|
|
12
30
|
};
|
|
13
31
|
}, undefined, string[], {
|
|
14
32
|
variant: {
|
|
@@ -16,9 +34,9 @@ export declare const pinInputCell: import("tailwind-variants").TVReturnType<{
|
|
|
16
34
|
secondary: "border-transparent [--hn-field-bg:var(--hn-bg-inset)]";
|
|
17
35
|
};
|
|
18
36
|
size: {
|
|
19
|
-
sm: "
|
|
20
|
-
md: "
|
|
21
|
-
lg: "
|
|
37
|
+
sm: "text-sm";
|
|
38
|
+
md: "text-base";
|
|
39
|
+
lg: "text-md";
|
|
22
40
|
};
|
|
23
41
|
}, undefined, import("tailwind-variants").TVReturnTypeLike<{
|
|
24
42
|
variant: {
|
|
@@ -26,10 +44,12 @@ export declare const pinInputCell: import("tailwind-variants").TVReturnType<{
|
|
|
26
44
|
secondary: "border-transparent [--hn-field-bg:var(--hn-bg-inset)]";
|
|
27
45
|
};
|
|
28
46
|
size: {
|
|
29
|
-
sm: "
|
|
30
|
-
md: "
|
|
31
|
-
lg: "
|
|
47
|
+
sm: "text-sm";
|
|
48
|
+
md: "text-base";
|
|
49
|
+
lg: "text-md";
|
|
32
50
|
};
|
|
33
51
|
}, undefined>>;
|
|
52
|
+
export declare const pinInputNative: import("tailwind-variants").TVReturnType<{} | {} | {}, undefined, "hn-pin-native", {} | {}, undefined, import("tailwind-variants").TVReturnTypeLike<unknown, undefined>>;
|
|
53
|
+
export declare const pinInputCaret: import("tailwind-variants").TVReturnType<{} | {} | {}, undefined, "hn-pin-caret", {} | {}, undefined, import("tailwind-variants").TVReturnTypeLike<unknown, undefined>>;
|
|
34
54
|
export type PinInputVariants = VariantProps<typeof pinInputCell>;
|
|
35
55
|
//# sourceMappingURL=pin-input.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pin-input.d.ts","sourceRoot":"","sources":["../../../../../../shared/src/variants/pin-input.ts"],"names":[],"mappings":"AAAA,OAAO,EAAM,KAAK,YAAY,EAAE,MAAM,WAAW,CAAA;AAEjD,eAAO,MAAM,QAAQ,
|
|
1
|
+
{"version":3,"file":"pin-input.d.ts","sourceRoot":"","sources":["../../../../../../shared/src/variants/pin-input.ts"],"names":[],"mappings":"AAAA,OAAO,EAAM,KAAK,YAAY,EAAE,MAAM,WAAW,CAAA;AAEjD,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;cAYnB,CAAA;AAEF,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAuBvB,CAAA;AAEF,eAAO,MAAM,cAAc,0KAEzB,CAAA;AAEF,eAAO,MAAM,aAAa,yKAExB,CAAA;AAEF,MAAM,MAAM,gBAAgB,GAAG,YAAY,CAAC,OAAO,YAAY,CAAC,CAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare const tourMask: import("tailwind-variants").TVReturnType<{} | {} | {}, undefined, "hn-scrim hn-tour-mask", {} | {}, undefined, import("tailwind-variants").TVReturnTypeLike<unknown, undefined>>;
|
|
2
|
+
export declare const tourBlocker: import("tailwind-variants").TVReturnType<{} | {} | {}, undefined, "fixed z-(--hn-z-overlay)", {} | {}, undefined, import("tailwind-variants").TVReturnTypeLike<unknown, undefined>>;
|
|
3
|
+
export declare const tourCard: import("tailwind-variants").TVReturnType<{} | {} | {}, undefined, "relative z-(--hn-z-overlay) flex w-80 max-w-[calc(100vw-2rem)] flex-col gap-3 overflow-visible p-4 shadow-lg outline-none", {} | {}, undefined, import("tailwind-variants").TVReturnTypeLike<unknown, undefined>>;
|
|
4
|
+
export declare const tourCentered: import("tailwind-variants").TVReturnType<{} | {} | {}, undefined, "pointer-events-none fixed inset-0 z-(--hn-z-overlay) grid place-items-center p-4 [&>*]:pointer-events-auto", {} | {}, undefined, import("tailwind-variants").TVReturnTypeLike<unknown, undefined>>;
|
|
5
|
+
export declare const tourBeacon: import("tailwind-variants").TVReturnType<{} | {} | {}, undefined, "hn-focus-ring fixed z-(--hn-z-overlay) size-4 -translate-x-1/2 -translate-y-1/2 cursor-pointer rounded-full", {} | {}, undefined, import("tailwind-variants").TVReturnTypeLike<unknown, undefined>>;
|
|
6
|
+
export declare const tourBeaconPulse: import("tailwind-variants").TVReturnType<{} | {} | {}, undefined, "hn-ping bg-accent pointer-events-none absolute inset-0 rounded-full", {} | {}, undefined, import("tailwind-variants").TVReturnTypeLike<unknown, undefined>>;
|
|
7
|
+
export declare const tourBeaconDot: import("tailwind-variants").TVReturnType<{} | {} | {}, undefined, "bg-accent ring-surface pointer-events-none relative block size-full rounded-full ring-2", {} | {}, undefined, import("tailwind-variants").TVReturnTypeLike<unknown, undefined>>;
|
|
8
|
+
export declare const tourHeader: import("tailwind-variants").TVReturnType<{} | {} | {}, undefined, "flex items-start gap-2", {} | {}, undefined, import("tailwind-variants").TVReturnTypeLike<unknown, undefined>>;
|
|
9
|
+
export declare const tourFooter: import("tailwind-variants").TVReturnType<{} | {} | {}, undefined, "flex items-center gap-2", {} | {}, undefined, import("tailwind-variants").TVReturnTypeLike<unknown, undefined>>;
|
|
10
|
+
//# sourceMappingURL=tour.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tour.d.ts","sourceRoot":"","sources":["../../../../../../shared/src/variants/tour.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,QAAQ,kLAAwC,CAAA;AAE7D,eAAO,MAAM,WAAW,qLAA2C,CAAA;AAEnE,eAAO,MAAM,QAAQ,sRAEnB,CAAA;AAEF,eAAO,MAAM,YAAY,uQAEvB,CAAA;AAEF,eAAO,MAAM,UAAU,wQAErB,CAAA;AAEF,eAAO,MAAM,eAAe,gOAE1B,CAAA;AAEF,eAAO,MAAM,aAAa,oPAExB,CAAA;AAEF,eAAO,MAAM,UAAU,mLAAyC,CAAA;AAEhE,eAAO,MAAM,UAAU,oLAA0C,CAAA"}
|