@hina-ui/vue 1.7.6 → 1.7.8
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/dist/index.js +7952 -663
- package/dist/index.js.map +1 -1
- package/dist/shared/behavior/anchor-follow.ts +20 -11
- package/dist/shared/lib/command-palette/match.ts +9 -0
- package/dist/shared/lib/float-button.ts +14 -0
- package/dist/shared/lib/line-clamp.ts +76 -0
- package/dist/shared/lib/scroll-restore.ts +145 -0
- package/dist/shared/locale/en-US.ts +4 -0
- package/dist/shared/locale/index.ts +2 -0
- package/dist/shared/locale/ja-JP.ts +229 -0
- package/dist/shared/locale/types.ts +4 -0
- package/dist/shared/locale/zh-CN.ts +4 -0
- package/dist/shared/primitives/accordion/LICENSE +21 -0
- package/dist/shared/primitives/accordion/index.ts +34 -0
- package/dist/shared/primitives/arrow-navigation/LICENSE +21 -0
- package/dist/shared/primitives/arrow-navigation/index.ts +90 -0
- package/dist/shared/primitives/body-scroll-lock/LICENSE +21 -0
- package/dist/shared/primitives/body-scroll-lock/index.ts +115 -0
- package/dist/shared/primitives/checkbox/LICENSE +21 -0
- package/dist/shared/primitives/checkbox/index.ts +23 -0
- package/dist/shared/primitives/collapsible/LICENSE +21 -0
- package/dist/shared/primitives/collapsible/index.ts +31 -0
- package/dist/shared/primitives/collection/LICENSE +21 -0
- package/dist/shared/primitives/collection/index.ts +19 -0
- package/dist/shared/primitives/dismissable-layer/LICENSE +21 -0
- package/dist/shared/primitives/dismissable-layer/index.ts +203 -0
- package/dist/shared/primitives/focus-guards/LICENSE +21 -0
- package/dist/shared/primitives/focus-guards/index.ts +24 -0
- package/dist/shared/primitives/focus-scope/LICENSE +21 -0
- package/dist/shared/primitives/focus-scope/index.ts +216 -0
- package/dist/shared/primitives/label/LICENSE +21 -0
- package/dist/shared/primitives/label/index.ts +4 -0
- package/dist/shared/primitives/pagination/LICENSE +21 -0
- package/dist/shared/primitives/pagination/index.ts +99 -0
- package/dist/shared/primitives/pin-input/LICENSE +21 -0
- package/dist/shared/primitives/pin-input/index.ts +126 -0
- package/dist/shared/primitives/presence/LICENSE +21 -0
- package/dist/shared/primitives/presence/index.ts +135 -0
- package/dist/shared/primitives/progress/LICENSE +21 -0
- package/dist/shared/primitives/progress/index.ts +41 -0
- package/dist/shared/primitives/radio-group/LICENSE +21 -0
- package/dist/shared/primitives/radio-group/index.ts +46 -0
- package/dist/shared/primitives/rating/LICENSE +21 -0
- package/dist/shared/primitives/rating/index.ts +37 -0
- package/dist/shared/primitives/roving-focus/LICENSE +21 -0
- package/dist/shared/primitives/roving-focus/index.ts +44 -0
- package/dist/shared/primitives/separator/LICENSE +21 -0
- package/dist/shared/primitives/separator/index.ts +14 -0
- package/dist/shared/primitives/size/LICENSE +21 -0
- package/dist/shared/primitives/size/index.ts +19 -0
- package/dist/shared/primitives/slider/LICENSE +21 -0
- package/dist/shared/primitives/slider/index.ts +183 -0
- package/dist/shared/primitives/splitter/LICENSE +21 -0
- package/dist/shared/primitives/splitter/arrays.ts +6 -0
- package/dist/shared/primitives/splitter/assert.ts +9 -0
- package/dist/shared/primitives/splitter/calculate.ts +139 -0
- package/dist/shared/primitives/splitter/callPanelCallbacks.ts +40 -0
- package/dist/shared/primitives/splitter/compare.ts +13 -0
- package/dist/shared/primitives/splitter/constants.ts +1 -0
- package/dist/shared/primitives/splitter/debounce.ts +10 -0
- package/dist/shared/primitives/splitter/dom.ts +64 -0
- package/dist/shared/primitives/splitter/events.ts +29 -0
- package/dist/shared/primitives/splitter/flags.ts +4 -0
- package/dist/shared/primitives/splitter/layout.ts +153 -0
- package/dist/shared/primitives/splitter/pivot.ts +10 -0
- package/dist/shared/primitives/splitter/rects.ts +24 -0
- package/dist/shared/primitives/splitter/registry.ts +231 -0
- package/dist/shared/primitives/splitter/resizePanel.ts +30 -0
- package/dist/shared/primitives/splitter/stackingOrder.ts +88 -0
- package/dist/shared/primitives/splitter/storage.ts +95 -0
- package/dist/shared/primitives/splitter/style.ts +95 -0
- package/dist/shared/primitives/splitter/types.ts +48 -0
- package/dist/shared/primitives/splitter/units.ts +123 -0
- package/dist/shared/primitives/splitter/validation.ts +55 -0
- package/dist/shared/primitives/stepper/LICENSE +21 -0
- package/dist/shared/primitives/stepper/index.ts +58 -0
- package/dist/shared/primitives/tabs/LICENSE +21 -0
- package/dist/shared/primitives/tabs/index.ts +18 -0
- package/dist/shared/primitives/toggle/LICENSE +21 -0
- package/dist/shared/primitives/toggle/index.ts +5 -0
- package/dist/shared/primitives/value/LICENSE +21 -0
- package/dist/shared/primitives/value/index.ts +80 -0
- package/dist/shared/primitives/visually-hidden/LICENSE +21 -0
- package/dist/shared/primitives/visually-hidden/index.ts +25 -0
- package/dist/shared/styles/density.css +4 -0
- package/dist/shared/styles/float-button.css +20 -6
- package/dist/shared/styles/line-clamp.css +98 -0
- package/dist/shared/styles/tokens.css +1 -0
- package/dist/shared/styles/typography.css +18 -0
- package/dist/shared/variants/button.ts +2 -0
- package/dist/shared/variants/command-palette.ts +4 -0
- package/dist/shared/variants/line-clamp.ts +13 -0
- package/dist/shared/variants/panel.ts +5 -0
- package/dist/shared/variants/tag.ts +1 -0
- package/dist/types/shared/src/behavior/anchor-follow.d.ts.map +1 -1
- package/dist/types/shared/src/lib/command-palette/match.d.ts +5 -0
- package/dist/types/shared/src/lib/command-palette/match.d.ts.map +1 -1
- package/dist/types/shared/src/lib/float-button.d.ts +15 -0
- package/dist/types/shared/src/lib/float-button.d.ts.map +1 -0
- package/dist/types/shared/src/lib/line-clamp.d.ts +6 -0
- package/dist/types/shared/src/lib/line-clamp.d.ts.map +1 -0
- package/dist/types/shared/src/lib/scroll-restore.d.ts +14 -0
- package/dist/types/shared/src/lib/scroll-restore.d.ts.map +1 -1
- package/dist/types/shared/src/locale/en-US.d.ts.map +1 -1
- package/dist/types/shared/src/locale/index.d.ts +1 -0
- package/dist/types/shared/src/locale/index.d.ts.map +1 -1
- package/dist/types/shared/src/locale/ja-JP.d.ts +3 -0
- package/dist/types/shared/src/locale/ja-JP.d.ts.map +1 -0
- package/dist/types/shared/src/locale/types.d.ts +4 -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/accordion/index.d.ts +9 -0
- package/dist/types/shared/src/primitives/accordion/index.d.ts.map +1 -0
- package/dist/types/shared/src/primitives/arrow-navigation/index.d.ts +12 -0
- package/dist/types/shared/src/primitives/arrow-navigation/index.d.ts.map +1 -0
- package/dist/types/shared/src/primitives/checkbox/index.d.ts +6 -0
- package/dist/types/shared/src/primitives/checkbox/index.d.ts.map +1 -0
- package/dist/types/shared/src/primitives/collapsible/index.d.ts +12 -0
- package/dist/types/shared/src/primitives/collapsible/index.d.ts.map +1 -0
- package/dist/types/shared/src/primitives/collection/index.d.ts +6 -0
- package/dist/types/shared/src/primitives/collection/index.d.ts.map +1 -0
- package/dist/types/shared/src/primitives/dismissable-layer/index.d.ts +41 -0
- package/dist/types/shared/src/primitives/dismissable-layer/index.d.ts.map +1 -0
- package/dist/types/shared/src/primitives/focus-scope/index.d.ts +51 -0
- package/dist/types/shared/src/primitives/focus-scope/index.d.ts.map +1 -0
- package/dist/types/shared/src/primitives/label/index.d.ts +2 -0
- package/dist/types/shared/src/primitives/label/index.d.ts.map +1 -0
- package/dist/types/shared/src/primitives/pagination/index.d.ts +17 -0
- package/dist/types/shared/src/primitives/pagination/index.d.ts.map +1 -0
- package/dist/types/shared/src/primitives/pin-input/index.d.ts +31 -0
- package/dist/types/shared/src/primitives/pin-input/index.d.ts.map +1 -0
- package/dist/types/shared/src/primitives/presence/index.d.ts +14 -0
- package/dist/types/shared/src/primitives/presence/index.d.ts.map +1 -0
- package/dist/types/shared/src/primitives/progress/index.d.ts +10 -0
- package/dist/types/shared/src/primitives/progress/index.d.ts.map +1 -0
- package/dist/types/shared/src/primitives/radio-group/index.d.ts +12 -0
- package/dist/types/shared/src/primitives/radio-group/index.d.ts.map +1 -0
- package/dist/types/shared/src/primitives/rating/index.d.ts +8 -0
- package/dist/types/shared/src/primitives/rating/index.d.ts.map +1 -0
- package/dist/types/shared/src/primitives/roving-focus/index.d.ts +13 -0
- package/dist/types/shared/src/primitives/roving-focus/index.d.ts.map +1 -0
- package/dist/types/shared/src/primitives/separator/index.d.ts +10 -0
- package/dist/types/shared/src/primitives/separator/index.d.ts.map +1 -0
- package/dist/types/shared/src/primitives/size/index.d.ts +7 -0
- package/dist/types/shared/src/primitives/size/index.d.ts.map +1 -0
- package/dist/types/shared/src/primitives/slider/index.d.ts +60 -0
- package/dist/types/shared/src/primitives/slider/index.d.ts.map +1 -0
- package/dist/types/shared/src/primitives/splitter/arrays.d.ts +2 -0
- package/dist/types/shared/src/primitives/splitter/arrays.d.ts.map +1 -0
- package/dist/types/shared/src/primitives/splitter/assert.d.ts +2 -0
- package/dist/types/shared/src/primitives/splitter/assert.d.ts.map +1 -0
- package/dist/types/shared/src/primitives/splitter/calculate.d.ts +15 -0
- package/dist/types/shared/src/primitives/splitter/calculate.d.ts.map +1 -0
- package/dist/types/shared/src/primitives/splitter/callPanelCallbacks.d.ts +3 -0
- package/dist/types/shared/src/primitives/splitter/callPanelCallbacks.d.ts.map +1 -0
- package/dist/types/shared/src/primitives/splitter/compare.d.ts +3 -0
- package/dist/types/shared/src/primitives/splitter/compare.d.ts.map +1 -0
- package/dist/types/shared/src/primitives/splitter/constants.d.ts +2 -0
- package/dist/types/shared/src/primitives/splitter/constants.d.ts.map +1 -0
- package/dist/types/shared/src/primitives/splitter/debounce.d.ts +2 -0
- package/dist/types/shared/src/primitives/splitter/debounce.d.ts.map +1 -0
- package/dist/types/shared/src/primitives/splitter/dom.d.ts +8 -0
- package/dist/types/shared/src/primitives/splitter/dom.d.ts.map +1 -0
- package/dist/types/shared/src/primitives/splitter/events.d.ts +10 -0
- package/dist/types/shared/src/primitives/splitter/events.d.ts.map +1 -0
- package/dist/types/shared/src/primitives/splitter/flags.d.ts +5 -0
- package/dist/types/shared/src/primitives/splitter/flags.d.ts.map +1 -0
- package/dist/types/shared/src/primitives/splitter/layout.d.ts +10 -0
- package/dist/types/shared/src/primitives/splitter/layout.d.ts.map +1 -0
- package/dist/types/shared/src/primitives/splitter/pivot.d.ts +2 -0
- package/dist/types/shared/src/primitives/splitter/pivot.d.ts.map +1 -0
- package/dist/types/shared/src/primitives/splitter/rects.d.ts +8 -0
- package/dist/types/shared/src/primitives/splitter/rects.d.ts.map +1 -0
- package/dist/types/shared/src/primitives/splitter/registry.d.ts +5 -0
- package/dist/types/shared/src/primitives/splitter/registry.d.ts.map +1 -0
- package/dist/types/shared/src/primitives/splitter/resizePanel.d.ts +7 -0
- package/dist/types/shared/src/primitives/splitter/resizePanel.d.ts.map +1 -0
- package/dist/types/shared/src/primitives/splitter/stackingOrder.d.ts +2 -0
- package/dist/types/shared/src/primitives/splitter/stackingOrder.d.ts.map +1 -0
- package/dist/types/shared/src/primitives/splitter/storage.d.ts +9 -0
- package/dist/types/shared/src/primitives/splitter/storage.d.ts.map +1 -0
- package/dist/types/shared/src/primitives/splitter/style.d.ts +21 -0
- package/dist/types/shared/src/primitives/splitter/style.d.ts.map +1 -0
- package/dist/types/shared/src/primitives/splitter/types.d.ts +42 -0
- package/dist/types/shared/src/primitives/splitter/types.d.ts.map +1 -0
- package/dist/types/shared/src/primitives/splitter/units.d.ts +13 -0
- package/dist/types/shared/src/primitives/splitter/units.d.ts.map +1 -0
- package/dist/types/shared/src/primitives/splitter/validation.d.ts +6 -0
- package/dist/types/shared/src/primitives/splitter/validation.d.ts.map +1 -0
- package/dist/types/shared/src/primitives/stepper/index.d.ts +21 -0
- package/dist/types/shared/src/primitives/stepper/index.d.ts.map +1 -0
- package/dist/types/shared/src/primitives/tabs/index.d.ts +7 -0
- package/dist/types/shared/src/primitives/tabs/index.d.ts.map +1 -0
- package/dist/types/shared/src/primitives/toggle/index.d.ts +3 -0
- package/dist/types/shared/src/primitives/toggle/index.d.ts.map +1 -0
- package/dist/types/shared/src/primitives/value/index.d.ts +15 -0
- package/dist/types/shared/src/primitives/value/index.d.ts.map +1 -0
- package/dist/types/shared/src/primitives/visually-hidden/index.d.ts +19 -0
- package/dist/types/shared/src/primitives/visually-hidden/index.d.ts.map +1 -0
- package/dist/types/shared/src/variants/button.d.ts +6 -0
- package/dist/types/shared/src/variants/button.d.ts.map +1 -1
- package/dist/types/shared/src/variants/command-palette.d.ts +1 -0
- package/dist/types/shared/src/variants/command-palette.d.ts.map +1 -1
- package/dist/types/shared/src/variants/line-clamp.d.ts +4 -0
- package/dist/types/shared/src/variants/line-clamp.d.ts.map +1 -0
- package/dist/types/shared/src/variants/panel.d.ts +13 -1
- package/dist/types/shared/src/variants/panel.d.ts.map +1 -1
- package/dist/types/shared/src/variants/tag.d.ts +3 -0
- package/dist/types/shared/src/variants/tag.d.ts.map +1 -1
- package/dist/types/shared/src/variants/toggle.d.ts +7 -0
- package/dist/types/shared/src/variants/toggle.d.ts.map +1 -1
- package/dist/types/vue/src/components/accordion/Accordion.vue.d.ts.map +1 -1
- package/dist/types/vue/src/components/app-shell/AppShell.vue.d.ts +2 -2
- package/dist/types/vue/src/components/app-shell/AppShell.vue.d.ts.map +1 -1
- package/dist/types/vue/src/components/breadcrumb/BreadcrumbItem.vue.d.ts +2 -2
- package/dist/types/vue/src/components/breadcrumb/BreadcrumbItem.vue.d.ts.map +1 -1
- package/dist/types/vue/src/components/button/Button.vue.d.ts +2 -2
- package/dist/types/vue/src/components/button/Button.vue.d.ts.map +1 -1
- package/dist/types/vue/src/components/card/Card.vue.d.ts +2 -2
- package/dist/types/vue/src/components/card/Card.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/chip/Chip.vue.d.ts +1 -1
- package/dist/types/vue/src/components/chip/Chip.vue.d.ts.map +1 -1
- package/dist/types/vue/src/components/chip/composables/useChipRoot.d.ts +2 -2
- package/dist/types/vue/src/components/chip/composables/useChipRoot.d.ts.map +1 -1
- package/dist/types/vue/src/components/close-button/CloseButton.vue.d.ts +1 -1
- package/dist/types/vue/src/components/collapsible/Collapsible.vue.d.ts.map +1 -1
- package/dist/types/vue/src/components/command-palette/CommandPalette.vue.d.ts +40 -34
- package/dist/types/vue/src/components/command-palette/CommandPalette.vue.d.ts.map +1 -1
- package/dist/types/vue/src/components/command-palette/CommandPaletteInput.vue.d.ts +8 -0
- package/dist/types/vue/src/components/command-palette/CommandPaletteInput.vue.d.ts.map +1 -0
- package/dist/types/vue/src/components/command-palette/CommandPaletteItem.vue.d.ts +21 -7
- package/dist/types/vue/src/components/command-palette/CommandPaletteItem.vue.d.ts.map +1 -1
- package/dist/types/vue/src/components/command-palette/CommandPalettePanel.vue.d.ts +37 -31
- package/dist/types/vue/src/components/command-palette/CommandPalettePanel.vue.d.ts.map +1 -1
- package/dist/types/vue/src/components/command-palette/composables/useCommandItems.d.ts +6 -6
- package/dist/types/vue/src/components/command-palette/composables/useCommandItems.d.ts.map +1 -1
- package/dist/types/vue/src/components/command-palette/context.d.ts +11 -0
- package/dist/types/vue/src/components/command-palette/context.d.ts.map +1 -0
- package/dist/types/vue/src/components/command-palette/types.d.ts +16 -5
- package/dist/types/vue/src/components/command-palette/types.d.ts.map +1 -1
- package/dist/types/vue/src/components/command-palette/utils/match.d.ts +3 -3
- package/dist/types/vue/src/components/command-palette/utils/match.d.ts.map +1 -1
- package/dist/types/vue/src/components/copy-button/CopyButton.vue.d.ts +1 -1
- package/dist/types/vue/src/components/data-list/DataList.vue.d.ts +2 -2
- package/dist/types/vue/src/components/data-table/DataTable.vue.d.ts +2 -2
- package/dist/types/vue/src/components/description-list/DescriptionList.vue.d.ts +1 -0
- package/dist/types/vue/src/components/description-list/DescriptionList.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/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/float-button/FloatButton.vue.d.ts +1 -1
- package/dist/types/vue/src/components/float-button/FloatButton.vue.d.ts.map +1 -1
- package/dist/types/vue/src/components/float-button/types.d.ts +3 -2
- package/dist/types/vue/src/components/float-button/types.d.ts.map +1 -1
- package/dist/types/vue/src/components/form/Form.vue.d.ts +5 -0
- package/dist/types/vue/src/components/form/Form.vue.d.ts.map +1 -1
- package/dist/types/vue/src/components/form/scope.d.ts +4 -0
- package/dist/types/vue/src/components/form/scope.d.ts.map +1 -0
- package/dist/types/vue/src/components/heading/Heading.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.map +1 -1
- package/dist/types/vue/src/components/indicator/Indicator.vue.d.ts +2 -2
- package/dist/types/vue/src/components/indicator/Indicator.vue.d.ts.map +1 -1
- package/dist/types/vue/src/components/line-clamp/LineClamp.vue.d.ts +28 -0
- package/dist/types/vue/src/components/line-clamp/LineClamp.vue.d.ts.map +1 -0
- package/dist/types/vue/src/components/line-clamp/line-clamp.variants.d.ts +2 -0
- package/dist/types/vue/src/components/line-clamp/line-clamp.variants.d.ts.map +1 -0
- package/dist/types/vue/src/components/link/Link.vue.d.ts +2 -2
- package/dist/types/vue/src/components/link/Link.vue.d.ts.map +1 -1
- package/dist/types/vue/src/components/multi-select/MultiSelect.vue.d.ts.map +1 -1
- package/dist/types/vue/src/components/nav-link/NavLink.vue.d.ts +9 -5
- 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 +27 -0
- package/dist/types/vue/src/components/nav-link/NavLinkChild.d.ts.map +1 -0
- package/dist/types/vue/src/components/navigation-menu/NavigationMenuLink.vue.d.ts +2 -2
- package/dist/types/vue/src/components/navigation-menu/NavigationMenuLink.vue.d.ts.map +1 -1
- package/dist/types/vue/src/components/pagination/PaginationControl.vue.d.ts.map +1 -1
- package/dist/types/vue/src/components/prev-next/PrevNextLink.vue.d.ts +2 -2
- package/dist/types/vue/src/components/prev-next/PrevNextLink.vue.d.ts.map +1 -1
- package/dist/types/vue/src/components/prose/Prose.vue.d.ts +2 -2
- package/dist/types/vue/src/components/prose/Prose.vue.d.ts.map +1 -1
- package/dist/types/vue/src/components/section/Section.vue.d.ts.map +1 -1
- package/dist/types/vue/src/components/segmented-control/SegmentedControl.vue.d.ts.map +1 -1
- package/dist/types/vue/src/components/sheet/Sheet.vue.d.ts +3 -0
- package/dist/types/vue/src/components/sheet/Sheet.vue.d.ts.map +1 -1
- package/dist/types/vue/src/components/sidebar/Sidebar.vue.d.ts.map +1 -1
- package/dist/types/vue/src/components/sidebar/context.d.ts +2 -0
- package/dist/types/vue/src/components/sidebar/context.d.ts.map +1 -1
- package/dist/types/vue/src/components/slider/SliderHandle.vue.d.ts.map +1 -1
- package/dist/types/vue/src/components/split-button/SplitButton.vue.d.ts +1 -1
- package/dist/types/vue/src/components/split-button/types.d.ts +1 -1
- package/dist/types/vue/src/components/split-button/types.d.ts.map +1 -1
- package/dist/types/vue/src/components/tag/Tag.vue.d.ts +2 -2
- package/dist/types/vue/src/components/tag/Tag.vue.d.ts.map +1 -1
- package/dist/types/vue/src/components/text/Text.vue.d.ts +2 -2
- package/dist/types/vue/src/components/text/Text.vue.d.ts.map +1 -1
- package/dist/types/vue/src/components/time/Time.vue.d.ts +2 -0
- package/dist/types/vue/src/components/time/Time.vue.d.ts.map +1 -1
- package/dist/types/vue/src/components/toast/Toaster.vue.d.ts.map +1 -1
- package/dist/types/vue/src/components/toggle/Toggle.vue.d.ts.map +1 -1
- package/dist/types/vue/src/components/toolbar/ToolbarControl.vue.d.ts +1 -1
- package/dist/types/vue/src/components/toolbar/ToolbarLink.vue.d.ts +1 -1
- package/dist/types/vue/src/components/toolbar/ToolbarToggleGroup.vue.d.ts.map +1 -1
- package/dist/types/vue/src/components/toolbar/types.d.ts +1 -1
- package/dist/types/vue/src/components/toolbar/types.d.ts.map +1 -1
- package/dist/types/vue/src/components/virtual-list/composables/useVirtualList.d.ts +1 -1
- package/dist/types/vue/src/components/visually-hidden/VisuallyHidden.vue.d.ts +2 -2
- package/dist/types/vue/src/components/visually-hidden/VisuallyHidden.vue.d.ts.map +1 -1
- package/dist/types/vue/src/index.d.ts +6 -4
- package/dist/types/vue/src/index.d.ts.map +1 -1
- package/dist/types/vue/src/lib/useDirection.d.ts +2 -2
- package/dist/types/vue/src/lib/useDirection.d.ts.map +1 -1
- package/dist/types/vue/src/locale/index.d.ts +1 -1
- package/dist/types/vue/src/locale/index.d.ts.map +1 -1
- package/dist/types/vue/src/primitives/accordion/AccordionContent.d.ts +40 -0
- package/dist/types/vue/src/primitives/accordion/AccordionContent.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/accordion/AccordionHeader.d.ts +33 -0
- package/dist/types/vue/src/primitives/accordion/AccordionHeader.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/accordion/AccordionItem.d.ts +61 -0
- package/dist/types/vue/src/primitives/accordion/AccordionItem.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/accordion/AccordionRoot.d.ts +122 -0
- package/dist/types/vue/src/primitives/accordion/AccordionRoot.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/accordion/AccordionTrigger.d.ts +30 -0
- package/dist/types/vue/src/primitives/accordion/AccordionTrigger.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/accordion/context.d.ts +27 -0
- package/dist/types/vue/src/primitives/accordion/context.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/accordion/index.d.ts +7 -0
- package/dist/types/vue/src/primitives/accordion/index.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/aspect-ratio/AspectRatio.d.ts +42 -0
- package/dist/types/vue/src/primitives/aspect-ratio/AspectRatio.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/aspect-ratio/index.d.ts +2 -0
- package/dist/types/vue/src/primitives/aspect-ratio/index.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/checkbox/CheckboxGroupRoot.d.ts +121 -0
- package/dist/types/vue/src/primitives/checkbox/CheckboxGroupRoot.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/checkbox/CheckboxRoot.d.ts +127 -0
- package/dist/types/vue/src/primitives/checkbox/CheckboxRoot.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/checkbox/context.d.ts +14 -0
- package/dist/types/vue/src/primitives/checkbox/context.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/checkbox/index.d.ts +4 -0
- package/dist/types/vue/src/primitives/checkbox/index.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/collapsible/CollapsibleContent.d.ts +45 -0
- package/dist/types/vue/src/primitives/collapsible/CollapsibleContent.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/collapsible/CollapsibleRoot.d.ts +81 -0
- package/dist/types/vue/src/primitives/collapsible/CollapsibleRoot.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/collapsible/CollapsibleTrigger.d.ts +33 -0
- package/dist/types/vue/src/primitives/collapsible/CollapsibleTrigger.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/collapsible/context.d.ts +10 -0
- package/dist/types/vue/src/primitives/collapsible/context.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/collapsible/index.d.ts +5 -0
- package/dist/types/vue/src/primitives/collapsible/index.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/collection/index.d.ts +28 -0
- package/dist/types/vue/src/primitives/collection/index.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/number-field/NumberFieldDecrement.vue.d.ts +2 -2
- package/dist/types/vue/src/primitives/number-field/NumberFieldDecrement.vue.d.ts.map +1 -1
- package/dist/types/vue/src/primitives/number-field/NumberFieldIncrement.vue.d.ts +2 -2
- package/dist/types/vue/src/primitives/number-field/NumberFieldIncrement.vue.d.ts.map +1 -1
- package/dist/types/vue/src/primitives/number-field/NumberFieldInput.vue.d.ts +2 -2
- package/dist/types/vue/src/primitives/number-field/NumberFieldInput.vue.d.ts.map +1 -1
- package/dist/types/vue/src/primitives/number-field/NumberFieldRoot.vue.d.ts +2 -2
- package/dist/types/vue/src/primitives/number-field/NumberFieldRoot.vue.d.ts.map +1 -1
- package/dist/types/vue/src/primitives/pagination/PaginationEdge.d.ts +111 -0
- package/dist/types/vue/src/primitives/pagination/PaginationEdge.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/pagination/PaginationList.d.ts +30 -0
- package/dist/types/vue/src/primitives/pagination/PaginationList.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/pagination/PaginationListItem.d.ts +42 -0
- package/dist/types/vue/src/primitives/pagination/PaginationListItem.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/pagination/PaginationRoot.d.ts +114 -0
- package/dist/types/vue/src/primitives/pagination/PaginationRoot.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/pagination/context.d.ts +11 -0
- package/dist/types/vue/src/primitives/pagination/context.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/pagination/index.d.ts +6 -0
- package/dist/types/vue/src/primitives/pagination/index.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/pin-input/PinInputInput.d.ts +52 -0
- package/dist/types/vue/src/primitives/pin-input/PinInputInput.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/pin-input/PinInputRoot.d.ts +149 -0
- package/dist/types/vue/src/primitives/pin-input/PinInputRoot.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/pin-input/context.d.ts +20 -0
- package/dist/types/vue/src/primitives/pin-input/context.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/pin-input/index.d.ts +4 -0
- package/dist/types/vue/src/primitives/pin-input/index.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/presence/Presence.d.ts +31 -0
- package/dist/types/vue/src/primitives/presence/Presence.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/presence/index.d.ts +3 -0
- package/dist/types/vue/src/primitives/presence/index.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/presence/usePresence.d.ts +5 -0
- package/dist/types/vue/src/primitives/presence/usePresence.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/primitive/Primitive.d.ts +31 -0
- package/dist/types/vue/src/primitives/primitive/Primitive.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/primitive/Slot.d.ts +6 -0
- package/dist/types/vue/src/primitives/primitive/Slot.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/primitive/index.d.ts +3 -0
- package/dist/types/vue/src/primitives/primitive/index.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/progress/ProgressIndicator.vue.d.ts +14 -0
- package/dist/types/vue/src/primitives/progress/ProgressIndicator.vue.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/progress/ProgressRoot.vue.d.ts +33 -0
- package/dist/types/vue/src/primitives/progress/ProgressRoot.vue.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/progress/context.d.ts +9 -0
- package/dist/types/vue/src/primitives/progress/context.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/progress/index.d.ts +4 -0
- package/dist/types/vue/src/primitives/progress/index.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/radio-group/Radio.d.ts +88 -0
- package/dist/types/vue/src/primitives/radio-group/Radio.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/radio-group/RadioGroupIndicator.d.ts +43 -0
- package/dist/types/vue/src/primitives/radio-group/RadioGroupIndicator.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/radio-group/RadioGroupItem.d.ts +85 -0
- package/dist/types/vue/src/primitives/radio-group/RadioGroupItem.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/radio-group/RadioGroupRoot.d.ts +119 -0
- package/dist/types/vue/src/primitives/radio-group/RadioGroupRoot.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/radio-group/context.d.ts +19 -0
- package/dist/types/vue/src/primitives/radio-group/context.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/radio-group/index.d.ts +5 -0
- package/dist/types/vue/src/primitives/radio-group/index.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/rating/RatingItem.d.ts +42 -0
- package/dist/types/vue/src/primitives/rating/RatingItem.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/rating/RatingItemIndicator.d.ts +39 -0
- package/dist/types/vue/src/primitives/rating/RatingItemIndicator.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/rating/RatingRoot.d.ts +159 -0
- package/dist/types/vue/src/primitives/rating/RatingRoot.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/rating/context.d.ts +16 -0
- package/dist/types/vue/src/primitives/rating/context.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/rating/index.d.ts +5 -0
- package/dist/types/vue/src/primitives/rating/index.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/roving-focus/RovingFocusGroup.vue.d.ts +38 -0
- package/dist/types/vue/src/primitives/roving-focus/RovingFocusGroup.vue.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/roving-focus/RovingFocusItem.vue.d.ts +21 -0
- package/dist/types/vue/src/primitives/roving-focus/RovingFocusItem.vue.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/roving-focus/context.d.ts +15 -0
- package/dist/types/vue/src/primitives/roving-focus/context.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/roving-focus/index.d.ts +4 -0
- package/dist/types/vue/src/primitives/roving-focus/index.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/separator/Separator.vue.d.ts +19 -0
- package/dist/types/vue/src/primitives/separator/Separator.vue.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/separator/index.d.ts +2 -0
- package/dist/types/vue/src/primitives/separator/index.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/slider/SliderImpl.d.ts +36 -0
- package/dist/types/vue/src/primitives/slider/SliderImpl.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/slider/SliderOrientation.d.ts +91 -0
- package/dist/types/vue/src/primitives/slider/SliderOrientation.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/slider/SliderRoot.d.ts +187 -0
- package/dist/types/vue/src/primitives/slider/SliderRoot.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/slider/SliderThumb.d.ts +33 -0
- package/dist/types/vue/src/primitives/slider/SliderThumb.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/slider/SliderTrack.d.ts +33 -0
- package/dist/types/vue/src/primitives/slider/SliderTrack.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/slider/context.d.ts +22 -0
- package/dist/types/vue/src/primitives/slider/context.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/slider/index.d.ts +5 -0
- package/dist/types/vue/src/primitives/slider/index.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/splitter/SplitterGroup.d.ts +90 -0
- package/dist/types/vue/src/primitives/splitter/SplitterGroup.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/splitter/SplitterPanel.d.ts +113 -0
- package/dist/types/vue/src/primitives/splitter/SplitterPanel.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/splitter/SplitterResizeHandle.d.ts +85 -0
- package/dist/types/vue/src/primitives/splitter/SplitterResizeHandle.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/splitter/behaviors.d.ts +22 -0
- package/dist/types/vue/src/primitives/splitter/behaviors.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/splitter/context.d.ts +23 -0
- package/dist/types/vue/src/primitives/splitter/context.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/splitter/index.d.ts +6 -0
- package/dist/types/vue/src/primitives/splitter/index.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/stepper/StepperItem.d.ts +63 -0
- package/dist/types/vue/src/primitives/stepper/StepperItem.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/stepper/StepperParts.d.ts +130 -0
- package/dist/types/vue/src/primitives/stepper/StepperParts.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/stepper/StepperRoot.d.ts +91 -0
- package/dist/types/vue/src/primitives/stepper/StepperRoot.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/stepper/StepperTrigger.d.ts +33 -0
- package/dist/types/vue/src/primitives/stepper/StepperTrigger.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/stepper/context.d.ts +23 -0
- package/dist/types/vue/src/primitives/stepper/context.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/stepper/index.d.ts +6 -0
- package/dist/types/vue/src/primitives/stepper/index.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/switch/SwitchRoot.d.ts +133 -0
- package/dist/types/vue/src/primitives/switch/SwitchRoot.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/switch/index.d.ts +2 -0
- package/dist/types/vue/src/primitives/switch/index.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/tabs/TabsContent.d.ts +50 -0
- package/dist/types/vue/src/primitives/tabs/TabsContent.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/tabs/TabsList.d.ts +42 -0
- package/dist/types/vue/src/primitives/tabs/TabsList.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/tabs/TabsRoot.d.ts +101 -0
- package/dist/types/vue/src/primitives/tabs/TabsRoot.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/tabs/TabsTrigger.d.ts +55 -0
- package/dist/types/vue/src/primitives/tabs/TabsTrigger.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/tabs/context.d.ts +19 -0
- package/dist/types/vue/src/primitives/tabs/context.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/tabs/index.d.ts +6 -0
- package/dist/types/vue/src/primitives/tabs/index.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/toggle/Toggle.d.ts +91 -0
- package/dist/types/vue/src/primitives/toggle/Toggle.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/toggle/index.d.ts +2 -0
- package/dist/types/vue/src/primitives/toggle/index.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/toggle-group/ToggleGroupItem.d.ts +53 -0
- package/dist/types/vue/src/primitives/toggle-group/ToggleGroupItem.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/toggle-group/ToggleGroupRoot.d.ts +141 -0
- package/dist/types/vue/src/primitives/toggle-group/ToggleGroupRoot.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/toggle-group/context.d.ts +16 -0
- package/dist/types/vue/src/primitives/toggle-group/context.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/toggle-group/index.d.ts +4 -0
- package/dist/types/vue/src/primitives/toggle-group/index.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/toolbar/ToolbarButton.d.ts +43 -0
- package/dist/types/vue/src/primitives/toolbar/ToolbarButton.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/toolbar/ToolbarRoot.d.ts +63 -0
- package/dist/types/vue/src/primitives/toolbar/ToolbarRoot.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/toolbar/ToolbarToggleGroup.d.ts +135 -0
- package/dist/types/vue/src/primitives/toolbar/ToolbarToggleGroup.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/toolbar/ToolbarToggleItem.d.ts +50 -0
- package/dist/types/vue/src/primitives/toolbar/ToolbarToggleItem.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/toolbar/context.d.ts +9 -0
- package/dist/types/vue/src/primitives/toolbar/context.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/toolbar/index.d.ts +6 -0
- package/dist/types/vue/src/primitives/toolbar/index.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/utils/config.d.ts +2 -0
- package/dist/types/vue/src/primitives/utils/config.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/utils/createContext.d.ts +2 -0
- package/dist/types/vue/src/primitives/utils/createContext.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/utils/renderSlotFragments.d.ts +3 -0
- package/dist/types/vue/src/primitives/utils/renderSlotFragments.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/utils/types.d.ts +2 -0
- package/dist/types/vue/src/primitives/utils/types.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/utils/useComposing.d.ts +8 -0
- package/dist/types/vue/src/primitives/utils/useComposing.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/utils/useDirection.d.ts +4 -0
- package/dist/types/vue/src/primitives/utils/useDirection.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/utils/useEmitAsProps.d.ts +2 -0
- package/dist/types/vue/src/primitives/utils/useEmitAsProps.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/utils/useFormControl.d.ts +4 -0
- package/dist/types/vue/src/primitives/utils/useFormControl.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/utils/useForwardExpose.d.ts +7 -0
- package/dist/types/vue/src/primitives/utils/useForwardExpose.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/utils/useForwardProps.d.ts +3 -0
- package/dist/types/vue/src/primitives/utils/useForwardProps.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/utils/useForwardPropsEmits.d.ts +3 -0
- package/dist/types/vue/src/primitives/utils/useForwardPropsEmits.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/utils/useForwardScopeId.d.ts +2 -0
- package/dist/types/vue/src/primitives/utils/useForwardScopeId.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/utils/useId.d.ts +2 -0
- package/dist/types/vue/src/primitives/utils/useId.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/utils/useNonce.d.ts +3 -0
- package/dist/types/vue/src/primitives/utils/useNonce.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/utils/useSingleOrMultipleValue.d.ts +12 -0
- package/dist/types/vue/src/primitives/utils/useSingleOrMultipleValue.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/utils/useSize.d.ts +7 -0
- package/dist/types/vue/src/primitives/utils/useSize.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/visually-hidden/VisuallyHidden.vue.d.ts +19 -0
- package/dist/types/vue/src/primitives/visually-hidden/VisuallyHidden.vue.d.ts.map +1 -0
- package/dist/types/vue/src/primitives/visually-hidden/VisuallyHiddenInput.d.ts +2 -2
- package/dist/types/vue/src/primitives/visually-hidden/VisuallyHiddenInput.d.ts.map +1 -1
- package/dist/types/vue/src/primitives/visually-hidden/VisuallyHiddenInputBubble.vue.d.ts +1 -1
- package/dist/types/vue/src/primitives/visually-hidden/VisuallyHiddenInputBubble.vue.d.ts.map +1 -1
- package/dist/types/vue/src/primitives/visually-hidden/index.d.ts +3 -0
- package/dist/types/vue/src/primitives/visually-hidden/index.d.ts.map +1 -0
- package/package.json +1 -1
- package/src/components/accordion/Accordion.vue +2 -1
- package/src/components/accordion/AccordionContent.vue +1 -1
- package/src/components/accordion/AccordionItem.vue +1 -1
- package/src/components/accordion/AccordionTrigger.vue +3 -3
- package/src/components/app-shell/AppShell.vue +54 -4
- package/src/components/aspect-ratio/AspectRatio.vue +1 -1
- package/src/components/breadcrumb/BreadcrumbItem.vue +2 -1
- package/src/components/button/Button.vue +2 -1
- package/src/components/card/Card.vue +2 -1
- package/src/components/checkbox/Checkbox.vue +1 -1
- package/src/components/checkbox-group/CheckboxGroup.vue +1 -1
- package/src/components/chip/Chip.vue +2 -1
- package/src/components/chip/composables/useChipRoot.ts +1 -1
- package/src/components/collapsible/Collapsible.vue +2 -1
- package/src/components/collapsible/CollapsibleContent.vue +1 -1
- package/src/components/collapsible/CollapsibleTrigger.vue +2 -2
- package/src/components/command-palette/CommandPalette.vue +53 -16
- package/src/components/command-palette/CommandPaletteInput.vue +32 -0
- package/src/components/command-palette/CommandPaletteItem.vue +7 -5
- package/src/components/command-palette/CommandPalettePanel.vue +95 -34
- package/src/components/command-palette/composables/useCommandItems.ts +16 -14
- package/src/components/command-palette/context.ts +28 -0
- package/src/components/command-palette/types.ts +21 -5
- package/src/components/command-palette/utils/match.ts +6 -3
- package/src/components/description-list/DescriptionList.vue +8 -2
- package/src/components/dialog/Dialog.vue +13 -8
- package/src/components/divider/Divider.vue +1 -1
- package/src/components/drawer/Drawer.vue +13 -8
- package/src/components/float-button/FloatButton.vue +4 -11
- package/src/components/float-button/types.ts +3 -2
- package/src/components/form/Form.vue +14 -1
- package/src/components/form/scope.ts +39 -0
- package/src/components/heading/Heading.vue +1 -1
- package/src/components/icon-button/IconButton.vue +2 -1
- package/src/components/image/Image.vue +1 -1
- package/src/components/indicator/Indicator.vue +2 -1
- package/src/components/input/InputAction.vue +1 -1
- package/src/components/line-clamp/LineClamp.vue +105 -0
- package/src/components/line-clamp/line-clamp.variants.ts +1 -0
- package/src/components/link/Link.vue +2 -1
- package/src/components/multi-select/MultiSelect.vue +4 -1
- package/src/components/nav-link/NavLink.vue +33 -4
- package/src/components/nav-link/NavLinkChild.ts +57 -0
- package/src/components/navigation-menu/NavigationMenuLink.vue +1 -1
- package/src/components/pagination/Pagination.vue +1 -1
- package/src/components/pagination/PaginationContent.vue +1 -1
- package/src/components/pagination/PaginationControl.vue +6 -1
- package/src/components/pagination/PaginationPage.vue +1 -1
- package/src/components/panel/Panel.vue +1 -1
- package/src/components/pin-input/PinInput.vue +1 -1
- package/src/components/prev-next/PrevNextLink.vue +2 -1
- package/src/components/progress/Progress.vue +1 -1
- package/src/components/prose/Prose.vue +2 -1
- package/src/components/radio-group/RadioGroup.vue +1 -1
- package/src/components/range-slider/RangeSlider.vue +1 -1
- package/src/components/rating/Rating.vue +1 -1
- package/src/components/ring-progress/RingProgress.vue +1 -1
- package/src/components/section/Section.vue +13 -2
- package/src/components/segmented-control/SegmentedControl.vue +2 -1
- package/src/components/sheet/Sheet.vue +14 -10
- package/src/components/sidebar/Sidebar.vue +2 -1
- package/src/components/sidebar/context.ts +9 -0
- package/src/components/slider/Slider.vue +1 -1
- package/src/components/slider/SliderHandle.vue +2 -1
- package/src/components/split-button/types.ts +1 -1
- package/src/components/splitter/Splitter.vue +1 -1
- package/src/components/splitter/SplitterHandle.vue +1 -1
- package/src/components/splitter/SplitterPanel.vue +1 -1
- package/src/components/statistic/Statistic.vue +2 -2
- package/src/components/stepper/Stepper.vue +1 -1
- package/src/components/stepper/StepperStep.vue +1 -1
- package/src/components/switch/Switch.vue +1 -1
- package/src/components/tabs/Tabs.vue +1 -1
- package/src/components/tabs/TabsContent.vue +1 -1
- package/src/components/tabs/TabsList.vue +1 -1
- package/src/components/tabs/TabsTrigger.vue +1 -1
- package/src/components/tag/Tag.vue +2 -1
- package/src/components/text/Text.vue +2 -1
- package/src/components/time/Time.vue +22 -5
- package/src/components/toast/Toaster.vue +1 -0
- package/src/components/toggle/Toggle.vue +2 -1
- package/src/components/toolbar/Toolbar.vue +1 -1
- package/src/components/toolbar/ToolbarButton.vue +1 -1
- package/src/components/toolbar/ToolbarLink.vue +1 -1
- package/src/components/toolbar/ToolbarSeparator.vue +1 -1
- package/src/components/toolbar/ToolbarToggleGroup.vue +2 -1
- package/src/components/toolbar/ToolbarToggleItem.vue +1 -1
- package/src/components/toolbar/types.ts +1 -1
- package/src/components/visually-hidden/VisuallyHidden.vue +4 -18
- package/src/index.ts +15 -2
- package/src/lib/useDirection.ts +2 -1
- package/src/locale/index.ts +1 -1
- package/src/primitives/accordion/AccordionContent.ts +47 -0
- package/src/primitives/accordion/AccordionHeader.ts +35 -0
- package/src/primitives/accordion/AccordionItem.ts +83 -0
- package/src/primitives/accordion/AccordionRoot.ts +75 -0
- package/src/primitives/accordion/AccordionTrigger.ts +55 -0
- package/src/primitives/accordion/LICENSE +44 -0
- package/src/primitives/accordion/context.ts +34 -0
- package/src/primitives/accordion/index.ts +11 -0
- package/src/primitives/aspect-ratio/AspectRatio.ts +47 -0
- package/src/primitives/aspect-ratio/LICENSE +44 -0
- package/src/primitives/aspect-ratio/index.ts +1 -0
- package/src/primitives/checkbox/CheckboxGroupRoot.ts +93 -0
- package/src/primitives/checkbox/CheckboxRoot.ts +170 -0
- package/src/primitives/checkbox/LICENSE +44 -0
- package/src/primitives/checkbox/context.ts +20 -0
- package/src/primitives/checkbox/index.ts +8 -0
- package/src/primitives/collapsible/CollapsibleContent.ts +124 -0
- package/src/primitives/collapsible/CollapsibleRoot.ts +63 -0
- package/src/primitives/collapsible/CollapsibleTrigger.ts +43 -0
- package/src/primitives/collapsible/LICENSE +44 -0
- package/src/primitives/collapsible/context.ts +13 -0
- package/src/primitives/collapsible/index.ts +12 -0
- package/src/primitives/collection/LICENSE +44 -0
- package/src/primitives/collection/index.ts +82 -0
- package/src/primitives/number-field/NumberFieldDecrement.vue +2 -3
- package/src/primitives/number-field/NumberFieldIncrement.vue +2 -3
- package/src/primitives/number-field/NumberFieldInput.vue +2 -3
- package/src/primitives/number-field/NumberFieldRoot.vue +3 -3
- package/src/primitives/pagination/LICENSE +44 -0
- package/src/primitives/pagination/PaginationEdge.ts +77 -0
- package/src/primitives/pagination/PaginationList.ts +46 -0
- package/src/primitives/pagination/PaginationListItem.ts +61 -0
- package/src/primitives/pagination/PaginationRoot.ts +73 -0
- package/src/primitives/pagination/context.ts +14 -0
- package/src/primitives/pagination/index.ts +15 -0
- package/src/primitives/pin-input/LICENSE +44 -0
- package/src/primitives/pin-input/PinInputInput.ts +218 -0
- package/src/primitives/pin-input/PinInputRoot.ts +136 -0
- package/src/primitives/pin-input/context.ts +24 -0
- package/src/primitives/pin-input/index.ts +3 -0
- package/src/primitives/presence/LICENSE +44 -0
- package/src/primitives/presence/Presence.ts +70 -0
- package/src/primitives/presence/index.ts +2 -0
- package/src/primitives/presence/usePresence.ts +28 -0
- package/src/primitives/primitive/LICENSE +44 -0
- package/src/primitives/primitive/Primitive.ts +45 -0
- package/src/primitives/primitive/Slot.ts +22 -0
- package/src/primitives/primitive/index.ts +2 -0
- package/src/primitives/progress/LICENSE +44 -0
- package/src/primitives/progress/ProgressIndicator.vue +24 -0
- package/src/primitives/progress/ProgressRoot.vue +95 -0
- package/src/primitives/progress/context.ts +12 -0
- package/src/primitives/progress/index.ts +7 -0
- package/src/primitives/radio-group/LICENSE +44 -0
- package/src/primitives/radio-group/Radio.ts +110 -0
- package/src/primitives/radio-group/RadioGroupIndicator.ts +54 -0
- package/src/primitives/radio-group/RadioGroupItem.ts +116 -0
- package/src/primitives/radio-group/RadioGroupRoot.ts +108 -0
- package/src/primitives/radio-group/context.ts +25 -0
- package/src/primitives/radio-group/index.ts +9 -0
- package/src/primitives/rating/LICENSE +44 -0
- package/src/primitives/rating/RatingItem.ts +35 -0
- package/src/primitives/rating/RatingItemIndicator.ts +87 -0
- package/src/primitives/rating/RatingRoot.ts +111 -0
- package/src/primitives/rating/context.ts +22 -0
- package/src/primitives/rating/index.ts +9 -0
- package/src/primitives/roving-focus/LICENSE +44 -0
- package/src/primitives/roving-focus/RovingFocusGroup.vue +125 -0
- package/src/primitives/roving-focus/RovingFocusItem.vue +99 -0
- package/src/primitives/roving-focus/context.ts +18 -0
- package/src/primitives/roving-focus/index.ts +7 -0
- package/src/primitives/separator/LICENSE +44 -0
- package/src/primitives/separator/Separator.vue +26 -0
- package/src/primitives/separator/index.ts +1 -0
- package/src/primitives/slider/LICENSE +44 -0
- package/src/primitives/slider/SliderImpl.ts +66 -0
- package/src/primitives/slider/SliderOrientation.ts +100 -0
- package/src/primitives/slider/SliderRoot.ts +214 -0
- package/src/primitives/slider/SliderThumb.ts +139 -0
- package/src/primitives/slider/SliderTrack.ts +37 -0
- package/src/primitives/slider/context.ts +31 -0
- package/src/primitives/slider/index.ts +8 -0
- package/src/primitives/splitter/LICENSE +44 -0
- package/src/primitives/splitter/SplitterGroup.ts +642 -0
- package/src/primitives/splitter/SplitterPanel.ts +170 -0
- package/src/primitives/splitter/SplitterResizeHandle.ts +170 -0
- package/src/primitives/splitter/behaviors.ts +173 -0
- package/src/primitives/splitter/context.ts +33 -0
- package/src/primitives/splitter/index.ts +13 -0
- package/src/primitives/stepper/LICENSE +44 -0
- package/src/primitives/stepper/StepperItem.ts +68 -0
- package/src/primitives/stepper/StepperParts.ts +103 -0
- package/src/primitives/stepper/StepperRoot.ts +171 -0
- package/src/primitives/stepper/StepperTrigger.ts +119 -0
- package/src/primitives/stepper/context.ts +29 -0
- package/src/primitives/stepper/index.ts +17 -0
- package/src/primitives/switch/LICENSE +44 -0
- package/src/primitives/switch/SwitchRoot.ts +151 -0
- package/src/primitives/switch/index.ts +6 -0
- package/src/primitives/tabs/LICENSE +44 -0
- package/src/primitives/tabs/TabsContent.ts +94 -0
- package/src/primitives/tabs/TabsList.ts +52 -0
- package/src/primitives/tabs/TabsRoot.ts +99 -0
- package/src/primitives/tabs/TabsTrigger.ts +97 -0
- package/src/primitives/tabs/context.ts +22 -0
- package/src/primitives/tabs/index.ts +5 -0
- package/src/primitives/toggle/LICENSE +44 -0
- package/src/primitives/toggle/Toggle.ts +116 -0
- package/src/primitives/toggle/index.ts +1 -0
- package/src/primitives/toggle-group/LICENSE +44 -0
- package/src/primitives/toggle-group/ToggleGroupItem.ts +80 -0
- package/src/primitives/toggle-group/ToggleGroupRoot.ts +113 -0
- package/src/primitives/toggle-group/context.ts +19 -0
- package/src/primitives/toggle-group/index.ts +7 -0
- package/src/primitives/toolbar/LICENSE +44 -0
- package/src/primitives/toolbar/ToolbarButton.ts +44 -0
- package/src/primitives/toolbar/ToolbarRoot.ts +53 -0
- package/src/primitives/toolbar/ToolbarToggleGroup.ts +69 -0
- package/src/primitives/toolbar/ToolbarToggleItem.ts +43 -0
- package/src/primitives/toolbar/context.ts +12 -0
- package/src/primitives/toolbar/index.ts +9 -0
- package/src/primitives/utils/config.ts +1 -0
- package/src/primitives/utils/createContext.ts +34 -0
- package/src/primitives/utils/renderSlotFragments.ts +8 -0
- package/src/primitives/utils/types.ts +1 -0
- package/src/primitives/utils/useComposing.ts +44 -0
- package/src/primitives/utils/useDirection.ts +9 -0
- package/src/primitives/utils/useEmitAsProps.ts +13 -0
- package/src/primitives/utils/useFormControl.ts +6 -0
- package/src/primitives/utils/useForwardExpose.ts +78 -0
- package/src/primitives/utils/useForwardProps.ts +29 -0
- package/src/primitives/utils/useForwardPropsEmits.ts +12 -0
- package/src/primitives/utils/useForwardScopeId.ts +6 -0
- package/src/primitives/utils/useId.ts +9 -0
- package/src/primitives/utils/useNonce.ts +7 -0
- package/src/primitives/utils/useSingleOrMultipleValue.ts +36 -0
- package/src/primitives/utils/useSize.ts +25 -0
- package/src/primitives/visually-hidden/VisuallyHidden.vue +30 -0
- package/src/primitives/visually-hidden/VisuallyHiddenInput.ts +1 -1
- package/src/primitives/visually-hidden/VisuallyHiddenInputBubble.vue +2 -2
- package/src/primitives/visually-hidden/index.ts +2 -0
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
+
import { computed } from 'vue'
|
|
2
3
|
import {
|
|
3
4
|
DialogRoot,
|
|
4
5
|
DialogTrigger,
|
|
@@ -17,6 +18,7 @@
|
|
|
17
18
|
import { useOverlayPortal } from '../../lib/overlay-portal'
|
|
18
19
|
import { useScrollViewport } from '../../lib/scroll-viewport'
|
|
19
20
|
import { cn } from '../../lib/cn'
|
|
21
|
+
import { provideFormScope } from '../form/scope'
|
|
20
22
|
import { dialogWrapper, dialogCard, type DialogVariants } from './dialog.variants'
|
|
21
23
|
|
|
22
24
|
defineOptions({ name: 'HnDialog' })
|
|
@@ -39,13 +41,16 @@
|
|
|
39
41
|
default?(): unknown
|
|
40
42
|
icon?(): unknown
|
|
41
43
|
title?(): unknown
|
|
42
|
-
body?(props: { close: () => void }): unknown
|
|
43
|
-
content?(props: { close: () => void }): unknown
|
|
44
|
-
footer?(props: { close: () => void }): unknown
|
|
44
|
+
body?(props: { close: () => void; submitting: boolean }): unknown
|
|
45
|
+
content?(props: { close: () => void; submitting: boolean }): unknown
|
|
46
|
+
footer?(props: { close: () => void; submitting: boolean }): unknown
|
|
45
47
|
}>()
|
|
46
48
|
|
|
49
|
+
const submitting = provideFormScope()
|
|
50
|
+
const locked = computed(() => props.locked || submitting.value)
|
|
51
|
+
|
|
47
52
|
function guard(e: Event) {
|
|
48
|
-
if (
|
|
53
|
+
if (locked.value) e.preventDefault()
|
|
49
54
|
}
|
|
50
55
|
|
|
51
56
|
const { scrollArea, viewport } = useScrollViewport()
|
|
@@ -92,7 +97,7 @@
|
|
|
92
97
|
{{ props.description }}
|
|
93
98
|
</DialogDescription>
|
|
94
99
|
</template>
|
|
95
|
-
<slot v-if="slots.body" name="body" :close="close" />
|
|
100
|
+
<slot v-if="slots.body" name="body" :close="close" :submitting="submitting" />
|
|
96
101
|
<template v-else>
|
|
97
102
|
<div
|
|
98
103
|
v-if="props.header"
|
|
@@ -118,19 +123,19 @@
|
|
|
118
123
|
</DialogDescription>
|
|
119
124
|
</div>
|
|
120
125
|
<DialogClose v-if="props.closable" as-child>
|
|
121
|
-
<CloseButton :disabled="
|
|
126
|
+
<CloseButton :disabled="locked" class="-mt-1.5 -me-1.5 shrink-0" />
|
|
122
127
|
</DialogClose>
|
|
123
128
|
</div>
|
|
124
129
|
<ScrollArea v-if="$slots.content" ref="scrollArea" class="min-h-0">
|
|
125
130
|
<div class="px-(--hn-panel-p) py-1">
|
|
126
|
-
<slot name="content" :close="close" />
|
|
131
|
+
<slot name="content" :close="close" :submitting="submitting" />
|
|
127
132
|
</div>
|
|
128
133
|
</ScrollArea>
|
|
129
134
|
<div
|
|
130
135
|
v-if="$slots.footer"
|
|
131
136
|
class="flex shrink-0 justify-end gap-(--hn-inline-gap) px-(--hn-panel-p)"
|
|
132
137
|
>
|
|
133
|
-
<slot name="footer" :close="close" />
|
|
138
|
+
<slot name="footer" :close="close" :submitting="submitting" />
|
|
134
139
|
</div>
|
|
135
140
|
</template>
|
|
136
141
|
</Card>
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
+
import { computed } from 'vue'
|
|
2
3
|
import {
|
|
3
4
|
DialogRoot,
|
|
4
5
|
DialogTrigger,
|
|
@@ -17,6 +18,7 @@
|
|
|
17
18
|
import { useOverlayPortal } from '../../lib/overlay-portal'
|
|
18
19
|
import { useScrollViewport } from '../../lib/scroll-viewport'
|
|
19
20
|
import { cn } from '../../lib/cn'
|
|
21
|
+
import { provideFormScope } from '../form/scope'
|
|
20
22
|
import { drawerCard } from './drawer.variants'
|
|
21
23
|
|
|
22
24
|
defineOptions({ name: 'HnDrawer' })
|
|
@@ -39,13 +41,16 @@
|
|
|
39
41
|
default?(): unknown
|
|
40
42
|
icon?(): unknown
|
|
41
43
|
title?(): unknown
|
|
42
|
-
body?(props: { close: () => void }): unknown
|
|
43
|
-
content?(props: { close: () => void }): unknown
|
|
44
|
-
footer?(props: { close: () => void }): unknown
|
|
44
|
+
body?(props: { close: () => void; submitting: boolean }): unknown
|
|
45
|
+
content?(props: { close: () => void; submitting: boolean }): unknown
|
|
46
|
+
footer?(props: { close: () => void; submitting: boolean }): unknown
|
|
45
47
|
}>()
|
|
46
48
|
|
|
49
|
+
const submitting = provideFormScope()
|
|
50
|
+
const locked = computed(() => props.locked || submitting.value)
|
|
51
|
+
|
|
47
52
|
function guard(e: Event) {
|
|
48
|
-
if (
|
|
53
|
+
if (locked.value) e.preventDefault()
|
|
49
54
|
}
|
|
50
55
|
|
|
51
56
|
const { scrollArea, viewport } = useScrollViewport()
|
|
@@ -84,7 +89,7 @@
|
|
|
84
89
|
{{ props.description }}
|
|
85
90
|
</DialogDescription>
|
|
86
91
|
</template>
|
|
87
|
-
<slot v-if="slots.body" name="body" :close="close" />
|
|
92
|
+
<slot v-if="slots.body" name="body" :close="close" :submitting="submitting" />
|
|
88
93
|
<template v-else>
|
|
89
94
|
<div
|
|
90
95
|
v-if="props.header"
|
|
@@ -110,19 +115,19 @@
|
|
|
110
115
|
</DialogDescription>
|
|
111
116
|
</div>
|
|
112
117
|
<DialogClose v-if="props.closable" as-child>
|
|
113
|
-
<CloseButton :disabled="
|
|
118
|
+
<CloseButton :disabled="locked" class="-mt-1.5 -me-1.5 shrink-0" />
|
|
114
119
|
</DialogClose>
|
|
115
120
|
</div>
|
|
116
121
|
<ScrollArea v-if="$slots.content" ref="scrollArea" class="min-h-0 grow">
|
|
117
122
|
<div class="px-(--hn-panel-p) py-1">
|
|
118
|
-
<slot name="content" :close="close" />
|
|
123
|
+
<slot name="content" :close="close" :submitting="submitting" />
|
|
119
124
|
</div>
|
|
120
125
|
</ScrollArea>
|
|
121
126
|
<div
|
|
122
127
|
v-if="$slots.footer"
|
|
123
128
|
class="flex shrink-0 justify-end gap-(--hn-inline-gap) px-(--hn-panel-p)"
|
|
124
129
|
>
|
|
125
|
-
<slot name="footer" :close="close" />
|
|
130
|
+
<slot name="footer" :close="close" :submitting="submitting" />
|
|
126
131
|
</div>
|
|
127
132
|
</template>
|
|
128
133
|
</Card>
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
import Button from '../button/Button.vue'
|
|
5
5
|
import { vTooltip } from '../tooltip/directive'
|
|
6
6
|
import { floatButton } from './float-button.variants'
|
|
7
|
+
import { floatButtonOffset } from '../../../../shared/src/lib/float-button'
|
|
7
8
|
import type { FloatButtonProps } from './types'
|
|
8
9
|
|
|
9
10
|
defineOptions({ name: 'HnFloatButton', inheritAttrs: false })
|
|
@@ -26,15 +27,7 @@
|
|
|
26
27
|
const tooltip = computed(() =>
|
|
27
28
|
props.tooltip && !props.extended ? { content: props.label, side: props.tooltipSide } : false,
|
|
28
29
|
)
|
|
29
|
-
const offset = computed(() =>
|
|
30
|
-
props.offset === undefined
|
|
31
|
-
? undefined
|
|
32
|
-
: typeof props.offset === 'number'
|
|
33
|
-
? Number.isFinite(props.offset)
|
|
34
|
-
? `${Math.max(0, props.offset)}px`
|
|
35
|
-
: undefined
|
|
36
|
-
: props.offset,
|
|
37
|
-
)
|
|
30
|
+
const offset = computed(() => floatButtonOffset(props.offset))
|
|
38
31
|
const element = computed(() => button.value?.$el as HTMLElement | undefined)
|
|
39
32
|
function focus() {
|
|
40
33
|
if (!props.disabled && !props.loading) element.value?.focus({ preventScroll: true })
|
|
@@ -52,7 +45,7 @@
|
|
|
52
45
|
<Transition
|
|
53
46
|
enter-active-class="hn-transition-base"
|
|
54
47
|
enter-from-class="scale-90 opacity-0"
|
|
55
|
-
leave-active-class="hn-
|
|
48
|
+
leave-active-class="hn-float-button-leave"
|
|
56
49
|
leave-to-class="scale-90 opacity-0"
|
|
57
50
|
@before-enter="enter"
|
|
58
51
|
@before-leave="leave"
|
|
@@ -87,7 +80,7 @@
|
|
|
87
80
|
props.class,
|
|
88
81
|
)
|
|
89
82
|
"
|
|
90
|
-
:style="[
|
|
83
|
+
:style="[offset, props.style]"
|
|
91
84
|
>
|
|
92
85
|
<template v-if="props.extended" #icon><slot /></template>
|
|
93
86
|
<span v-if="props.extended" class="min-w-0 truncate">{{ props.label }}</span>
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { StyleValue } from 'vue'
|
|
2
|
-
import type { PrimitiveProps } from 'reka-ui'
|
|
3
2
|
import type { ButtonVariants } from '../button/button.variants'
|
|
3
|
+
import type { PrimitiveProps } from '../../primitives/primitive'
|
|
4
|
+
import type { FloatButtonOffset } from '../../../../shared/src/lib/float-button'
|
|
4
5
|
|
|
5
6
|
export interface FloatButtonProps {
|
|
6
7
|
label: string
|
|
@@ -9,7 +10,7 @@ export interface FloatButtonProps {
|
|
|
9
10
|
type?: 'button' | 'submit' | 'reset'
|
|
10
11
|
position?: 'fixed' | 'absolute' | 'static'
|
|
11
12
|
placement?: 'top-start' | 'top-end' | 'bottom-start' | 'bottom-end'
|
|
12
|
-
offset?:
|
|
13
|
+
offset?: FloatButtonOffset
|
|
13
14
|
size?: 'sm' | 'md' | 'lg'
|
|
14
15
|
shape?: 'circle' | 'square'
|
|
15
16
|
extended?: boolean
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
import { cn } from '../../lib/cn'
|
|
4
4
|
import { useForm, type FormValidateOn } from './composables/useForm'
|
|
5
5
|
import { provideForm } from './context'
|
|
6
|
+
import { reportFormScope } from './scope'
|
|
6
7
|
import { formRoot } from './form.variants'
|
|
7
8
|
import { focusFirstInvalid } from './utils/focus'
|
|
8
9
|
import type { FormErrors, FormRules, FormValues } from './standard-schema'
|
|
@@ -47,7 +48,19 @@
|
|
|
47
48
|
form.setErrors(errors)
|
|
48
49
|
}
|
|
49
50
|
|
|
50
|
-
|
|
51
|
+
reportFormScope(form.submitting)
|
|
52
|
+
|
|
53
|
+
defineExpose({
|
|
54
|
+
submit,
|
|
55
|
+
validate: form.validate,
|
|
56
|
+
reset: form.reset,
|
|
57
|
+
setErrors,
|
|
58
|
+
errors: form.errors,
|
|
59
|
+
error: form.formError,
|
|
60
|
+
invalid: form.invalid,
|
|
61
|
+
submitting: form.submitting,
|
|
62
|
+
submitted: form.submitted,
|
|
63
|
+
})
|
|
51
64
|
</script>
|
|
52
65
|
|
|
53
66
|
<template>
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import {
|
|
2
|
+
computed,
|
|
3
|
+
inject,
|
|
4
|
+
onScopeDispose,
|
|
5
|
+
provide,
|
|
6
|
+
shallowRef,
|
|
7
|
+
watch,
|
|
8
|
+
type ComputedRef,
|
|
9
|
+
type InjectionKey,
|
|
10
|
+
type Ref,
|
|
11
|
+
} from 'vue'
|
|
12
|
+
|
|
13
|
+
interface FormScope {
|
|
14
|
+
set: (id: symbol, submitting: boolean) => void
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
const FORM_SCOPE_KEY = Symbol('hn-form-scope') as InjectionKey<FormScope>
|
|
18
|
+
|
|
19
|
+
export function provideFormScope(): ComputedRef<boolean> {
|
|
20
|
+
const active = shallowRef<ReadonlySet<symbol>>(new Set())
|
|
21
|
+
provide(FORM_SCOPE_KEY, {
|
|
22
|
+
set(id, submitting) {
|
|
23
|
+
if (active.value.has(id) === submitting) return
|
|
24
|
+
const next = new Set(active.value)
|
|
25
|
+
if (submitting) next.add(id)
|
|
26
|
+
else next.delete(id)
|
|
27
|
+
active.value = next
|
|
28
|
+
},
|
|
29
|
+
})
|
|
30
|
+
return computed(() => active.value.size > 0)
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export function reportFormScope(submitting: Ref<boolean>) {
|
|
34
|
+
const scope = inject(FORM_SCOPE_KEY, null)
|
|
35
|
+
if (!scope) return
|
|
36
|
+
const id = Symbol('form')
|
|
37
|
+
watch(submitting, value => scope.set(id, value), { immediate: true, flush: 'sync' })
|
|
38
|
+
onScopeDispose(() => scope.set(id, false))
|
|
39
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import { computed } from 'vue'
|
|
3
|
-
import { Primitive } from 'reka-ui'
|
|
4
3
|
import { cn } from '../../lib/cn'
|
|
5
4
|
import { heading, type HeadingVariants } from './heading.variants'
|
|
5
|
+
import { Primitive } from '../../primitives/primitive'
|
|
6
6
|
|
|
7
7
|
defineOptions({ name: 'HnHeading' })
|
|
8
8
|
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import { injectTooltipProviderContext
|
|
2
|
+
import { injectTooltipProviderContext } from 'reka-ui'
|
|
3
3
|
import Button from '../button/Button.vue'
|
|
4
4
|
import Tooltip from '../tooltip/Tooltip.vue'
|
|
5
5
|
import { Passthrough } from '../../lib/passthrough'
|
|
6
6
|
import type { ButtonVariants } from '../button/button.variants'
|
|
7
|
+
import type { PrimitiveProps } from '../../primitives/primitive'
|
|
7
8
|
|
|
8
9
|
defineOptions({ name: 'HnIconButton', inheritAttrs: false })
|
|
9
10
|
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import { computed, onBeforeUnmount, shallowRef, useId, watch, type StyleValue } from 'vue'
|
|
3
|
-
import { Primitive } from 'reka-ui'
|
|
4
3
|
import { cn } from '../../lib/cn'
|
|
5
4
|
import { useRequiredLabel } from '../../lib/a11y'
|
|
6
5
|
import Skeleton from '../skeleton/Skeleton.vue'
|
|
@@ -10,6 +9,7 @@
|
|
|
10
9
|
import { useImage } from './composables/useImage'
|
|
11
10
|
import { useImageGroup } from './context'
|
|
12
11
|
import { useImageResolver } from './resolver'
|
|
12
|
+
import { Primitive } from '../../primitives/primitive'
|
|
13
13
|
|
|
14
14
|
defineOptions({ name: 'HnImage', inheritAttrs: false })
|
|
15
15
|
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import { Primitive, type PrimitiveProps } from 'reka-ui'
|
|
3
2
|
import VisuallyHidden from '../visually-hidden/VisuallyHidden.vue'
|
|
4
3
|
import { cn } from '../../lib/cn'
|
|
5
4
|
import { indicator, type IndicatorVariants } from './indicator.variants'
|
|
5
|
+
import type { PrimitiveProps } from '../../primitives/primitive'
|
|
6
|
+
import { Primitive } from '../../primitives/primitive'
|
|
6
7
|
|
|
7
8
|
defineOptions({ name: 'HnIndicator' })
|
|
8
9
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import { Primitive } from 'reka-ui'
|
|
3
2
|
import { cn } from '../../lib/cn'
|
|
4
3
|
import { inputAction, inputAdornment } from './input.variants'
|
|
4
|
+
import { Primitive } from '../../primitives/primitive'
|
|
5
5
|
|
|
6
6
|
defineOptions({ name: 'HnInputAction' })
|
|
7
7
|
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { computed, onBeforeUnmount, onMounted, onUpdated, shallowRef, useId } from 'vue'
|
|
3
|
+
import { useResizeObserver } from '@vueuse/core'
|
|
4
|
+
import { cn } from '../../lib/cn'
|
|
5
|
+
import { useUiLocale } from '../../locale'
|
|
6
|
+
import Button from '../button/Button.vue'
|
|
7
|
+
import {
|
|
8
|
+
animateLineClamp,
|
|
9
|
+
lineClampCount,
|
|
10
|
+
measureLineClamp,
|
|
11
|
+
revealLineClamp,
|
|
12
|
+
} from '../../../../shared/src/lib/line-clamp'
|
|
13
|
+
import { lineClampContent, lineClampRoot, lineClampToggle } from './line-clamp.variants'
|
|
14
|
+
|
|
15
|
+
defineOptions({ name: 'HnLineClamp' })
|
|
16
|
+
|
|
17
|
+
const props = defineProps<{
|
|
18
|
+
lines?: number
|
|
19
|
+
expandLabel?: string
|
|
20
|
+
collapseLabel?: string
|
|
21
|
+
class?: string
|
|
22
|
+
}>()
|
|
23
|
+
|
|
24
|
+
const expanded = defineModel<boolean>('expanded', { default: false })
|
|
25
|
+
|
|
26
|
+
const t = useUiLocale()
|
|
27
|
+
const id = useId()
|
|
28
|
+
const root = shallowRef<HTMLElement | null>(null)
|
|
29
|
+
const content = shallowRef<HTMLElement | null>(null)
|
|
30
|
+
const truncated = shallowRef<boolean | null>(null)
|
|
31
|
+
const truncation = computed(() => (truncated.value === null ? undefined : `${truncated.value}`))
|
|
32
|
+
const count = computed(() => lineClampCount(props.lines))
|
|
33
|
+
|
|
34
|
+
let shown = expanded.value
|
|
35
|
+
let reveal = false
|
|
36
|
+
let stop: (() => void) | undefined
|
|
37
|
+
|
|
38
|
+
function measure() {
|
|
39
|
+
if (!content.value) return
|
|
40
|
+
const next = measureLineClamp(content.value)
|
|
41
|
+
if (next !== null) truncated.value = next
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
function sync() {
|
|
45
|
+
const element = content.value
|
|
46
|
+
if (element && shown !== expanded.value) {
|
|
47
|
+
shown = expanded.value
|
|
48
|
+
const scroll = reveal && !shown
|
|
49
|
+
reveal = false
|
|
50
|
+
stop?.()
|
|
51
|
+
stop = animateLineClamp(element, shown, () => {
|
|
52
|
+
measure()
|
|
53
|
+
if (scroll) revealLineClamp(root.value)
|
|
54
|
+
})
|
|
55
|
+
}
|
|
56
|
+
measure()
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
onMounted(() => {
|
|
60
|
+
measure()
|
|
61
|
+
void document.fonts?.ready.then(measure)
|
|
62
|
+
})
|
|
63
|
+
onUpdated(sync)
|
|
64
|
+
useResizeObserver(content, measure)
|
|
65
|
+
onBeforeUnmount(() => stop?.())
|
|
66
|
+
|
|
67
|
+
function toggle() {
|
|
68
|
+
reveal = expanded.value
|
|
69
|
+
expanded.value = !expanded.value
|
|
70
|
+
}
|
|
71
|
+
</script>
|
|
72
|
+
|
|
73
|
+
<template>
|
|
74
|
+
<div
|
|
75
|
+
ref="root"
|
|
76
|
+
:data-expanded="expanded ? '' : undefined"
|
|
77
|
+
:data-truncated="truncation"
|
|
78
|
+
:class="cn(lineClampRoot(), props.class)"
|
|
79
|
+
>
|
|
80
|
+
<div
|
|
81
|
+
:id="id"
|
|
82
|
+
ref="content"
|
|
83
|
+
:data-expanded="expanded ? '' : undefined"
|
|
84
|
+
:style="{ '--hn-line-clamp': count }"
|
|
85
|
+
:class="lineClampContent()"
|
|
86
|
+
>
|
|
87
|
+
<slot />
|
|
88
|
+
</div>
|
|
89
|
+
<span :class="lineClampToggle()">
|
|
90
|
+
<Button
|
|
91
|
+
variant="link"
|
|
92
|
+
size="sm"
|
|
93
|
+
:aria-expanded="expanded"
|
|
94
|
+
:aria-controls="id"
|
|
95
|
+
@click="toggle"
|
|
96
|
+
>
|
|
97
|
+
{{
|
|
98
|
+
expanded
|
|
99
|
+
? (props.collapseLabel ?? t.lineClamp.collapse)
|
|
100
|
+
: (props.expandLabel ?? t.lineClamp.expand)
|
|
101
|
+
}}
|
|
102
|
+
</Button>
|
|
103
|
+
</span>
|
|
104
|
+
</div>
|
|
105
|
+
</template>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../../../../shared/src/variants/line-clamp'
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import { Primitive, type PrimitiveProps } from 'reka-ui'
|
|
3
2
|
import { cn } from '../../lib/cn'
|
|
4
3
|
import { link, type LinkVariants } from './link.variants'
|
|
4
|
+
import type { PrimitiveProps } from '../../primitives/primitive'
|
|
5
|
+
import { Primitive } from '../../primitives/primitive'
|
|
5
6
|
|
|
6
7
|
defineOptions({ name: 'HnLink' })
|
|
7
8
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
<script setup lang="ts" generic="T extends SelectOption = SelectOption">
|
|
2
2
|
import { computed, ref } from 'vue'
|
|
3
|
-
import { SelectRoot, SelectTrigger
|
|
3
|
+
import { SelectRoot, SelectTrigger } from 'reka-ui'
|
|
4
|
+
import { VisuallyHidden } from '../../primitives/visually-hidden'
|
|
4
5
|
import { cn } from '../../lib/cn'
|
|
5
6
|
import type { VirtualizeOptions } from '../../lib/virtual/types'
|
|
6
7
|
import { useUiLocale } from '../../locale'
|
|
@@ -55,6 +56,7 @@
|
|
|
55
56
|
const size = computed(() => (group ? group.size.value : props.size))
|
|
56
57
|
const {
|
|
57
58
|
id: fieldId,
|
|
59
|
+
labelledBy,
|
|
58
60
|
invalid,
|
|
59
61
|
disabled,
|
|
60
62
|
describedBy,
|
|
@@ -101,6 +103,7 @@
|
|
|
101
103
|
v-bind="$attrs"
|
|
102
104
|
as="div"
|
|
103
105
|
:id="fieldId"
|
|
106
|
+
:aria-labelledby="labelledBy"
|
|
104
107
|
:aria-describedby="describedBy"
|
|
105
108
|
data-hn-multi-select
|
|
106
109
|
@keydown="keyboard = true"
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import { computed } from 'vue'
|
|
3
|
-
import { Primitive, type PrimitiveProps } from 'reka-ui'
|
|
4
3
|
import { cn } from '../../lib/cn'
|
|
5
4
|
import { Passthrough } from '../../lib/passthrough'
|
|
6
5
|
import Tooltip from '../tooltip/Tooltip.vue'
|
|
7
|
-
import { useSidebar } from '../sidebar/context'
|
|
6
|
+
import { useInSidebar, useSidebar } from '../sidebar/context'
|
|
8
7
|
import { navLink, navLinkLabel } from './nav-link.variants'
|
|
8
|
+
import type { PrimitiveProps } from '../../primitives/primitive'
|
|
9
|
+
import { Primitive } from '../../primitives/primitive'
|
|
10
|
+
import NavLinkChild from './NavLinkChild'
|
|
9
11
|
|
|
10
12
|
defineOptions({ name: 'HnNavLink', inheritAttrs: false })
|
|
11
13
|
|
|
@@ -21,18 +23,45 @@
|
|
|
21
23
|
{ as: 'a', active: false, disabled: false },
|
|
22
24
|
)
|
|
23
25
|
|
|
24
|
-
const sidebar = useSidebar()
|
|
26
|
+
const sidebar = useInSidebar() ? useSidebar() : null
|
|
25
27
|
const rail = computed(() => sidebar?.state.value === 'rail')
|
|
26
28
|
|
|
27
29
|
const Wrapper = sidebar ? Tooltip : Passthrough
|
|
30
|
+
|
|
31
|
+
const linkProps = computed(() => ({
|
|
32
|
+
'aria-current': props.active ? ('page' as const) : undefined,
|
|
33
|
+
'data-state': props.active ? 'selected' : undefined,
|
|
34
|
+
'aria-disabled': props.disabled ? ('true' as const) : undefined,
|
|
35
|
+
'data-disabled': props.disabled ? '' : undefined,
|
|
36
|
+
tabindex: props.disabled ? -1 : undefined,
|
|
37
|
+
'aria-label': rail.value ? props.label : undefined,
|
|
38
|
+
class: cn(navLink({ active: props.active }), props.class),
|
|
39
|
+
}))
|
|
40
|
+
|
|
41
|
+
const labelProps = computed(() => ({
|
|
42
|
+
'aria-hidden': rail.value ? ('true' as const) : undefined,
|
|
43
|
+
inert: rail.value,
|
|
44
|
+
'data-collapsed': rail.value ? '' : undefined,
|
|
45
|
+
'data-hn-label': '',
|
|
46
|
+
class: navLinkLabel(),
|
|
47
|
+
}))
|
|
28
48
|
</script>
|
|
29
49
|
|
|
30
50
|
<template>
|
|
31
51
|
<Wrapper :disabled="!rail || !props.label" :content="props.label" side="right">
|
|
52
|
+
<NavLinkChild
|
|
53
|
+
v-if="props.asChild"
|
|
54
|
+
v-bind="{ ...$attrs, ...linkProps }"
|
|
55
|
+
:as="props.as"
|
|
56
|
+
:label-props="labelProps"
|
|
57
|
+
>
|
|
58
|
+
<template v-if="$slots.icon" #icon><slot name="icon" /></template>
|
|
59
|
+
<slot />
|
|
60
|
+
</NavLinkChild>
|
|
32
61
|
<Primitive
|
|
62
|
+
v-else
|
|
33
63
|
v-bind="$attrs"
|
|
34
64
|
:as="props.as"
|
|
35
|
-
:as-child="props.asChild"
|
|
36
65
|
:aria-current="props.active ? 'page' : undefined"
|
|
37
66
|
:data-state="props.active ? 'selected' : undefined"
|
|
38
67
|
:aria-disabled="props.disabled ? 'true' : undefined"
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Comment,
|
|
3
|
+
defineComponent,
|
|
4
|
+
h,
|
|
5
|
+
mergeProps,
|
|
6
|
+
Text,
|
|
7
|
+
type PropType,
|
|
8
|
+
type Slots,
|
|
9
|
+
type VNode,
|
|
10
|
+
type VNodeArrayChildren,
|
|
11
|
+
} from 'vue'
|
|
12
|
+
import { Primitive, type PrimitiveProps } from '../../primitives/primitive'
|
|
13
|
+
import { renderSlotFragments } from '../../primitives/utils/renderSlotFragments'
|
|
14
|
+
|
|
15
|
+
type Content = string | VNodeArrayChildren | null | undefined
|
|
16
|
+
|
|
17
|
+
const CHILDREN_FLAGS = 8 | 16 | 32
|
|
18
|
+
|
|
19
|
+
export default defineComponent({
|
|
20
|
+
name: 'HnNavLinkChild',
|
|
21
|
+
inheritAttrs: false,
|
|
22
|
+
props: {
|
|
23
|
+
as: { type: [String, Object] as PropType<PrimitiveProps['as']>, default: 'a' },
|
|
24
|
+
labelProps: { type: Object as PropType<Record<string, unknown>>, required: true },
|
|
25
|
+
},
|
|
26
|
+
setup(props, { attrs, slots }) {
|
|
27
|
+
const inner = (content: Content) => [
|
|
28
|
+
...(slots.icon?.() ?? []),
|
|
29
|
+
h('span', props.labelProps, content ?? undefined),
|
|
30
|
+
]
|
|
31
|
+
|
|
32
|
+
return () => {
|
|
33
|
+
const children = renderSlotFragments(slots.default?.())
|
|
34
|
+
const child = children.find(node => node.type !== Comment && node.type !== Text)
|
|
35
|
+
if (!child) return h(Primitive, mergeProps(attrs, { as: props.as }), () => inner(children))
|
|
36
|
+
|
|
37
|
+
const { ref: _, ...own } = child.props ?? {}
|
|
38
|
+
const merged = mergeProps(attrs, own)
|
|
39
|
+
const bare = {
|
|
40
|
+
...child,
|
|
41
|
+
props: {},
|
|
42
|
+
children: null,
|
|
43
|
+
shapeFlag: child.shapeFlag & ~CHILDREN_FLAGS,
|
|
44
|
+
} as VNode
|
|
45
|
+
if (typeof child.type === 'string') return h(bare, merged, inner(child.children as Content))
|
|
46
|
+
|
|
47
|
+
const given = (child.children ?? {}) as Slots
|
|
48
|
+
const forwarded = Object.fromEntries(
|
|
49
|
+
Object.entries(given).filter(([name]) => !name.startsWith('_') && name !== 'default'),
|
|
50
|
+
)
|
|
51
|
+
return h(bare, merged, {
|
|
52
|
+
...forwarded,
|
|
53
|
+
default: (...args: unknown[]) => inner(given.default?.(...(args as [])) as Content),
|
|
54
|
+
})
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
})
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
import {
|
|
3
3
|
NavigationMenuLink as RekaNavigationMenuLink,
|
|
4
4
|
type NavigationMenuLinkEmits,
|
|
5
|
-
type PrimitiveProps,
|
|
6
5
|
} from 'reka-ui'
|
|
7
6
|
import { cn } from '../../lib/cn'
|
|
8
7
|
import { useNavigationMenu } from './context'
|
|
@@ -11,6 +10,7 @@
|
|
|
11
10
|
navigationMenuLink,
|
|
12
11
|
navigationMenuIcon,
|
|
13
12
|
} from './navigation-menu.variants'
|
|
13
|
+
import type { PrimitiveProps } from '../../primitives/primitive'
|
|
14
14
|
|
|
15
15
|
defineOptions({ name: 'HnNavigationMenuLink', inheritAttrs: false })
|
|
16
16
|
const props = withDefaults(
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import { computed } from 'vue'
|
|
3
|
-
import { PaginationRoot } from '
|
|
3
|
+
import { PaginationRoot } from '../../primitives/pagination'
|
|
4
4
|
import { cn } from '../../lib/cn'
|
|
5
5
|
import { useDirection } from '../../lib/useDirection'
|
|
6
6
|
import { useUiLocale } from '../../locale'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import { shallowRef } from 'vue'
|
|
3
|
-
import { PaginationList } from '
|
|
3
|
+
import { PaginationList } from '../../primitives/pagination'
|
|
4
4
|
import { cn } from '../../lib/cn'
|
|
5
5
|
import PaginationPages from './PaginationPages.vue'
|
|
6
6
|
import { paginationList } from './pagination.variants'
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import { ChevronLeft, ChevronRight, ChevronsLeft, ChevronsRight } from '@lucide/vue'
|
|
3
|
-
import {
|
|
3
|
+
import {
|
|
4
|
+
PaginationFirst,
|
|
5
|
+
PaginationPrev,
|
|
6
|
+
PaginationNext,
|
|
7
|
+
PaginationLast,
|
|
8
|
+
} from '../../primitives/pagination'
|
|
4
9
|
import { useUiLocale } from '../../locale'
|
|
5
10
|
import Button from '../button/Button.vue'
|
|
6
11
|
import type { ButtonVariants } from '../button/button.variants'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import { useTemplateRef } from 'vue'
|
|
3
|
-
import { PaginationListItem } from '
|
|
3
|
+
import { PaginationListItem } from '../../primitives/pagination'
|
|
4
4
|
import Button from '../button/Button.vue'
|
|
5
5
|
import { vTooltip } from '../tooltip/directive'
|
|
6
6
|
import { useUiLocale } from '../../locale'
|