@sewadah/selaras 0.1.1
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/LICENSE +21 -0
- package/README.md +131 -0
- package/dist/module.d.mts +22 -0
- package/dist/module.json +9 -0
- package/dist/module.mjs +127 -0
- package/dist/runtime/components/Accordion.d.vue.ts +59 -0
- package/dist/runtime/components/Accordion.vue +65 -0
- package/dist/runtime/components/Accordion.vue.d.ts +59 -0
- package/dist/runtime/components/Alert.d.vue.ts +39 -0
- package/dist/runtime/components/Alert.vue +64 -0
- package/dist/runtime/components/Alert.vue.d.ts +39 -0
- package/dist/runtime/components/AlertDialog.d.vue.ts +66 -0
- package/dist/runtime/components/AlertDialog.vue +116 -0
- package/dist/runtime/components/AlertDialog.vue.d.ts +66 -0
- package/dist/runtime/components/App.d.vue.ts +32 -0
- package/dist/runtime/components/App.vue +26 -0
- package/dist/runtime/components/App.vue.d.ts +32 -0
- package/dist/runtime/components/Autocomplete.d.vue.ts +61 -0
- package/dist/runtime/components/Autocomplete.vue +41 -0
- package/dist/runtime/components/Autocomplete.vue.d.ts +61 -0
- package/dist/runtime/components/Avatar.d.vue.ts +46 -0
- package/dist/runtime/components/Avatar.vue +64 -0
- package/dist/runtime/components/Avatar.vue.d.ts +46 -0
- package/dist/runtime/components/AvatarGroup.d.vue.ts +14 -0
- package/dist/runtime/components/AvatarGroup.vue +41 -0
- package/dist/runtime/components/AvatarGroup.vue.d.ts +14 -0
- package/dist/runtime/components/Badge.d.vue.ts +37 -0
- package/dist/runtime/components/Badge.vue +47 -0
- package/dist/runtime/components/Badge.vue.d.ts +37 -0
- package/dist/runtime/components/Breadcrumb.d.vue.ts +37 -0
- package/dist/runtime/components/Breadcrumb.vue +109 -0
- package/dist/runtime/components/Breadcrumb.vue.d.ts +37 -0
- package/dist/runtime/components/Button.d.vue.ts +45 -0
- package/dist/runtime/components/Button.vue +67 -0
- package/dist/runtime/components/Button.vue.d.ts +45 -0
- package/dist/runtime/components/ButtonGroup.d.vue.ts +22 -0
- package/dist/runtime/components/ButtonGroup.vue +21 -0
- package/dist/runtime/components/ButtonGroup.vue.d.ts +22 -0
- package/dist/runtime/components/Callout.d.vue.ts +27 -0
- package/dist/runtime/components/Callout.vue +47 -0
- package/dist/runtime/components/Callout.vue.d.ts +27 -0
- package/dist/runtime/components/Card.d.vue.ts +25 -0
- package/dist/runtime/components/Card.vue +30 -0
- package/dist/runtime/components/Card.vue.d.ts +25 -0
- package/dist/runtime/components/CardGroup.d.vue.ts +23 -0
- package/dist/runtime/components/CardGroup.vue +19 -0
- package/dist/runtime/components/CardGroup.vue.d.ts +23 -0
- package/dist/runtime/components/Checkbox.d.vue.ts +45 -0
- package/dist/runtime/components/Checkbox.vue +76 -0
- package/dist/runtime/components/Checkbox.vue.d.ts +45 -0
- package/dist/runtime/components/Chip.d.vue.ts +50 -0
- package/dist/runtime/components/Chip.vue +75 -0
- package/dist/runtime/components/Chip.vue.d.ts +50 -0
- package/dist/runtime/components/CodeButton.d.vue.ts +21 -0
- package/dist/runtime/components/CodeButton.vue +33 -0
- package/dist/runtime/components/CodeButton.vue.d.ts +21 -0
- package/dist/runtime/components/CodeGroup.d.vue.ts +3 -0
- package/dist/runtime/components/CodeGroup.vue +46 -0
- package/dist/runtime/components/CodeGroup.vue.d.ts +3 -0
- package/dist/runtime/components/CodeTree.d.vue.ts +17 -0
- package/dist/runtime/components/CodeTree.vue +56 -0
- package/dist/runtime/components/CodeTree.vue.d.ts +17 -0
- package/dist/runtime/components/Collapsible.d.vue.ts +44 -0
- package/dist/runtime/components/Collapsible.vue +52 -0
- package/dist/runtime/components/Collapsible.vue.d.ts +44 -0
- package/dist/runtime/components/ColorModeToggle.d.vue.ts +3 -0
- package/dist/runtime/components/ColorModeToggle.vue +24 -0
- package/dist/runtime/components/ColorModeToggle.vue.d.ts +3 -0
- package/dist/runtime/components/ColorPicker.d.vue.ts +30 -0
- package/dist/runtime/components/ColorPicker.vue +112 -0
- package/dist/runtime/components/ColorPicker.vue.d.ts +30 -0
- package/dist/runtime/components/Column.d.ts +72 -0
- package/dist/runtime/components/Column.js +34 -0
- package/dist/runtime/components/ColumnGroup.d.ts +33 -0
- package/dist/runtime/components/ColumnGroup.js +17 -0
- package/dist/runtime/components/CommandPalette.d.vue.ts +41 -0
- package/dist/runtime/components/CommandPalette.vue +208 -0
- package/dist/runtime/components/CommandPalette.vue.d.ts +41 -0
- package/dist/runtime/components/Container.d.vue.ts +22 -0
- package/dist/runtime/components/Container.vue +21 -0
- package/dist/runtime/components/Container.vue.d.ts +22 -0
- package/dist/runtime/components/ContentNavigation.d.vue.ts +31 -0
- package/dist/runtime/components/ContentNavigation.vue +64 -0
- package/dist/runtime/components/ContentNavigation.vue.d.ts +31 -0
- package/dist/runtime/components/ContentSurround.d.vue.ts +16 -0
- package/dist/runtime/components/ContentSurround.vue +46 -0
- package/dist/runtime/components/ContentSurround.vue.d.ts +16 -0
- package/dist/runtime/components/ContentToc.d.vue.ts +35 -0
- package/dist/runtime/components/ContentToc.vue +265 -0
- package/dist/runtime/components/ContentToc.vue.d.ts +35 -0
- package/dist/runtime/components/ContextMenu.d.vue.ts +33 -0
- package/dist/runtime/components/ContextMenu.vue +49 -0
- package/dist/runtime/components/ContextMenu.vue.d.ts +33 -0
- package/dist/runtime/components/DashboardGroup.d.vue.ts +24 -0
- package/dist/runtime/components/DashboardGroup.vue +52 -0
- package/dist/runtime/components/DashboardGroup.vue.d.ts +24 -0
- package/dist/runtime/components/DashboardNavbar.d.vue.ts +23 -0
- package/dist/runtime/components/DashboardNavbar.vue +33 -0
- package/dist/runtime/components/DashboardNavbar.vue.d.ts +23 -0
- package/dist/runtime/components/DashboardPanel.d.vue.ts +22 -0
- package/dist/runtime/components/DashboardPanel.vue +26 -0
- package/dist/runtime/components/DashboardPanel.vue.d.ts +22 -0
- package/dist/runtime/components/DashboardResizeHandle.d.vue.ts +8 -0
- package/dist/runtime/components/DashboardResizeHandle.vue +19 -0
- package/dist/runtime/components/DashboardResizeHandle.vue.d.ts +8 -0
- package/dist/runtime/components/DashboardSidebar.d.vue.ts +40 -0
- package/dist/runtime/components/DashboardSidebar.vue +117 -0
- package/dist/runtime/components/DashboardSidebar.vue.d.ts +40 -0
- package/dist/runtime/components/DashboardSidebarToggle.d.vue.ts +21 -0
- package/dist/runtime/components/DashboardSidebarToggle.vue +42 -0
- package/dist/runtime/components/DashboardSidebarToggle.vue.d.ts +21 -0
- package/dist/runtime/components/DatePicker.d.vue.ts +165 -0
- package/dist/runtime/components/DatePicker.vue +796 -0
- package/dist/runtime/components/DatePicker.vue.d.ts +165 -0
- package/dist/runtime/components/Drawer.d.vue.ts +74 -0
- package/dist/runtime/components/Drawer.vue +157 -0
- package/dist/runtime/components/Drawer.vue.d.ts +74 -0
- package/dist/runtime/components/DrawerRenderer.d.vue.ts +3 -0
- package/dist/runtime/components/DrawerRenderer.vue +30 -0
- package/dist/runtime/components/DrawerRenderer.vue.d.ts +3 -0
- package/dist/runtime/components/Dropdown.d.vue.ts +35 -0
- package/dist/runtime/components/Dropdown.vue +51 -0
- package/dist/runtime/components/Dropdown.vue.d.ts +35 -0
- package/dist/runtime/components/FileTree.d.vue.ts +28 -0
- package/dist/runtime/components/FileTree.vue +68 -0
- package/dist/runtime/components/FileTree.vue.d.ts +28 -0
- package/dist/runtime/components/FileUpload.d.vue.ts +68 -0
- package/dist/runtime/components/FileUpload.vue +226 -0
- package/dist/runtime/components/FileUpload.vue.d.ts +68 -0
- package/dist/runtime/components/FormField.d.vue.ts +37 -0
- package/dist/runtime/components/FormField.vue +72 -0
- package/dist/runtime/components/FormField.vue.d.ts +37 -0
- package/dist/runtime/components/Header.d.vue.ts +20 -0
- package/dist/runtime/components/Header.vue +23 -0
- package/dist/runtime/components/Header.vue.d.ts +20 -0
- package/dist/runtime/components/Icon.d.vue.ts +14 -0
- package/dist/runtime/components/Icon.vue +18 -0
- package/dist/runtime/components/Icon.vue.d.ts +14 -0
- package/dist/runtime/components/Input.d.vue.ts +41 -0
- package/dist/runtime/components/Input.vue +86 -0
- package/dist/runtime/components/Input.vue.d.ts +41 -0
- package/dist/runtime/components/InputGroup.d.vue.ts +22 -0
- package/dist/runtime/components/InputGroup.vue +21 -0
- package/dist/runtime/components/InputGroup.vue.d.ts +22 -0
- package/dist/runtime/components/InputNumber.d.vue.ts +37 -0
- package/dist/runtime/components/InputNumber.vue +173 -0
- package/dist/runtime/components/InputNumber.vue.d.ts +37 -0
- package/dist/runtime/components/Kbd.d.vue.ts +24 -0
- package/dist/runtime/components/Kbd.vue +42 -0
- package/dist/runtime/components/Kbd.vue.d.ts +24 -0
- package/dist/runtime/components/Modal.d.vue.ts +72 -0
- package/dist/runtime/components/Modal.vue +178 -0
- package/dist/runtime/components/Modal.vue.d.ts +72 -0
- package/dist/runtime/components/ModalRenderer.d.vue.ts +3 -0
- package/dist/runtime/components/ModalRenderer.vue +25 -0
- package/dist/runtime/components/ModalRenderer.vue.d.ts +3 -0
- package/dist/runtime/components/NavigationMenu.d.vue.ts +108 -0
- package/dist/runtime/components/NavigationMenu.vue +166 -0
- package/dist/runtime/components/NavigationMenu.vue.d.ts +108 -0
- package/dist/runtime/components/NavigationMenuAccordionItem.d.vue.ts +23 -0
- package/dist/runtime/components/NavigationMenuAccordionItem.vue +106 -0
- package/dist/runtime/components/NavigationMenuAccordionItem.vue.d.ts +23 -0
- package/dist/runtime/components/NavigationMenuFlyoutList.d.vue.ts +19 -0
- package/dist/runtime/components/NavigationMenuFlyoutList.vue +44 -0
- package/dist/runtime/components/NavigationMenuFlyoutList.vue.d.ts +19 -0
- package/dist/runtime/components/NavigationMenuFlyoutTrigger.d.vue.ts +49 -0
- package/dist/runtime/components/NavigationMenuFlyoutTrigger.vue +116 -0
- package/dist/runtime/components/NavigationMenuFlyoutTrigger.vue.d.ts +49 -0
- package/dist/runtime/components/PageAside.d.vue.ts +20 -0
- package/dist/runtime/components/PageAside.vue +26 -0
- package/dist/runtime/components/PageAside.vue.d.ts +20 -0
- package/dist/runtime/components/PageHeader.d.vue.ts +24 -0
- package/dist/runtime/components/PageHeader.vue +30 -0
- package/dist/runtime/components/PageHeader.vue.d.ts +24 -0
- package/dist/runtime/components/Pagination.d.vue.ts +42 -0
- package/dist/runtime/components/Pagination.vue +113 -0
- package/dist/runtime/components/Pagination.vue.d.ts +42 -0
- package/dist/runtime/components/PinInput.d.vue.ts +40 -0
- package/dist/runtime/components/PinInput.vue +66 -0
- package/dist/runtime/components/PinInput.vue.d.ts +40 -0
- package/dist/runtime/components/Popover.d.vue.ts +52 -0
- package/dist/runtime/components/Popover.vue +77 -0
- package/dist/runtime/components/Popover.vue.d.ts +52 -0
- package/dist/runtime/components/Progress.d.vue.ts +32 -0
- package/dist/runtime/components/Progress.vue +76 -0
- package/dist/runtime/components/Progress.vue.d.ts +32 -0
- package/dist/runtime/components/ProseH1.d.vue.ts +18 -0
- package/dist/runtime/components/ProseH1.vue +21 -0
- package/dist/runtime/components/ProseH1.vue.d.ts +18 -0
- package/dist/runtime/components/ProseH2.d.vue.ts +18 -0
- package/dist/runtime/components/ProseH2.vue +21 -0
- package/dist/runtime/components/ProseH2.vue.d.ts +18 -0
- package/dist/runtime/components/ProseH3.d.vue.ts +18 -0
- package/dist/runtime/components/ProseH3.vue +21 -0
- package/dist/runtime/components/ProseH3.vue.d.ts +18 -0
- package/dist/runtime/components/ProseH4.d.vue.ts +18 -0
- package/dist/runtime/components/ProseH4.vue +21 -0
- package/dist/runtime/components/ProseH4.vue.d.ts +18 -0
- package/dist/runtime/components/ProseH5.d.vue.ts +18 -0
- package/dist/runtime/components/ProseH5.vue +21 -0
- package/dist/runtime/components/ProseH5.vue.d.ts +18 -0
- package/dist/runtime/components/ProseH6.d.vue.ts +18 -0
- package/dist/runtime/components/ProseH6.vue +21 -0
- package/dist/runtime/components/ProseH6.vue.d.ts +18 -0
- package/dist/runtime/components/ProsePre.d.vue.ts +20 -0
- package/dist/runtime/components/ProsePre.vue +50 -0
- package/dist/runtime/components/ProsePre.vue.d.ts +20 -0
- package/dist/runtime/components/RadioGroup.d.vue.ts +50 -0
- package/dist/runtime/components/RadioGroup.vue +82 -0
- package/dist/runtime/components/RadioGroup.vue.d.ts +50 -0
- package/dist/runtime/components/Rating.d.vue.ts +36 -0
- package/dist/runtime/components/Rating.vue +83 -0
- package/dist/runtime/components/Rating.vue.d.ts +36 -0
- package/dist/runtime/components/ReadMore.d.vue.ts +20 -0
- package/dist/runtime/components/ReadMore.vue +59 -0
- package/dist/runtime/components/ReadMore.vue.d.ts +20 -0
- package/dist/runtime/components/ScrollArea.d.vue.ts +19 -0
- package/dist/runtime/components/ScrollArea.vue +37 -0
- package/dist/runtime/components/ScrollArea.vue.d.ts +19 -0
- package/dist/runtime/components/Select.d.vue.ts +60 -0
- package/dist/runtime/components/Select.vue +40 -0
- package/dist/runtime/components/Select.vue.d.ts +60 -0
- package/dist/runtime/components/Separator.d.vue.ts +27 -0
- package/dist/runtime/components/Separator.vue +36 -0
- package/dist/runtime/components/Separator.vue.d.ts +27 -0
- package/dist/runtime/components/Skeleton.d.vue.ts +13 -0
- package/dist/runtime/components/Skeleton.vue +17 -0
- package/dist/runtime/components/Skeleton.vue.d.ts +13 -0
- package/dist/runtime/components/Slideover.d.vue.ts +65 -0
- package/dist/runtime/components/Slideover.vue +140 -0
- package/dist/runtime/components/Slideover.vue.d.ts +65 -0
- package/dist/runtime/components/SlideoverRenderer.d.vue.ts +3 -0
- package/dist/runtime/components/SlideoverRenderer.vue +27 -0
- package/dist/runtime/components/SlideoverRenderer.vue.d.ts +3 -0
- package/dist/runtime/components/Slider.d.vue.ts +60 -0
- package/dist/runtime/components/Slider.vue +186 -0
- package/dist/runtime/components/Slider.vue.d.ts +60 -0
- package/dist/runtime/components/Splitter.d.vue.ts +41 -0
- package/dist/runtime/components/Splitter.vue +31 -0
- package/dist/runtime/components/Splitter.vue.d.ts +41 -0
- package/dist/runtime/components/SplitterPanel.d.vue.ts +55 -0
- package/dist/runtime/components/SplitterPanel.vue +52 -0
- package/dist/runtime/components/SplitterPanel.vue.d.ts +55 -0
- package/dist/runtime/components/SplitterResizeHandle.d.vue.ts +14 -0
- package/dist/runtime/components/SplitterResizeHandle.vue +22 -0
- package/dist/runtime/components/SplitterResizeHandle.vue.d.ts +14 -0
- package/dist/runtime/components/Stepper.d.vue.ts +57 -0
- package/dist/runtime/components/Stepper.vue +101 -0
- package/dist/runtime/components/Stepper.vue.d.ts +57 -0
- package/dist/runtime/components/Switch.d.vue.ts +49 -0
- package/dist/runtime/components/Switch.vue +73 -0
- package/dist/runtime/components/Switch.vue.d.ts +49 -0
- package/dist/runtime/components/Table.d.vue.ts +83 -0
- package/dist/runtime/components/Table.vue +339 -0
- package/dist/runtime/components/Table.vue.d.ts +83 -0
- package/dist/runtime/components/Tabs.d.vue.ts +43 -0
- package/dist/runtime/components/Tabs.vue +60 -0
- package/dist/runtime/components/Tabs.vue.d.ts +43 -0
- package/dist/runtime/components/Textarea.d.vue.ts +45 -0
- package/dist/runtime/components/Textarea.vue +110 -0
- package/dist/runtime/components/Textarea.vue.d.ts +45 -0
- package/dist/runtime/components/Theme.d.vue.ts +19 -0
- package/dist/runtime/components/Theme.vue +18 -0
- package/dist/runtime/components/Theme.vue.d.ts +19 -0
- package/dist/runtime/components/Toast.d.vue.ts +8 -0
- package/dist/runtime/components/Toast.vue +58 -0
- package/dist/runtime/components/Toast.vue.d.ts +8 -0
- package/dist/runtime/components/Toggle.d.vue.ts +38 -0
- package/dist/runtime/components/Toggle.vue +44 -0
- package/dist/runtime/components/Toggle.vue.d.ts +38 -0
- package/dist/runtime/components/ToggleGroup.d.vue.ts +48 -0
- package/dist/runtime/components/ToggleGroup.vue +61 -0
- package/dist/runtime/components/ToggleGroup.vue.d.ts +48 -0
- package/dist/runtime/components/Tooltip.d.vue.ts +28 -0
- package/dist/runtime/components/Tooltip.vue +40 -0
- package/dist/runtime/components/Tooltip.vue.d.ts +28 -0
- package/dist/runtime/components/Tree.d.vue.ts +64 -0
- package/dist/runtime/components/Tree.vue +139 -0
- package/dist/runtime/components/Tree.vue.d.ts +64 -0
- package/dist/runtime/composables/use-combobox-select.d.ts +45 -0
- package/dist/runtime/composables/use-combobox-select.js +80 -0
- package/dist/runtime/composables/use-command-palette.d.ts +8 -0
- package/dist/runtime/composables/use-command-palette.js +14 -0
- package/dist/runtime/composables/use-drawer.d.ts +42 -0
- package/dist/runtime/composables/use-drawer.js +44 -0
- package/dist/runtime/composables/use-form-field.d.ts +10 -0
- package/dist/runtime/composables/use-form-field.js +8 -0
- package/dist/runtime/composables/use-icons.d.ts +10 -0
- package/dist/runtime/composables/use-icons.js +7 -0
- package/dist/runtime/composables/use-locale.d.ts +12 -0
- package/dist/runtime/composables/use-locale.js +6 -0
- package/dist/runtime/composables/use-media-query.d.ts +11 -0
- package/dist/runtime/composables/use-media-query.js +15 -0
- package/dist/runtime/composables/use-messages.d.ts +12 -0
- package/dist/runtime/composables/use-messages.js +7 -0
- package/dist/runtime/composables/use-modal.d.ts +32 -0
- package/dist/runtime/composables/use-modal.js +39 -0
- package/dist/runtime/composables/use-ripple.d.ts +15 -0
- package/dist/runtime/composables/use-ripple.js +6 -0
- package/dist/runtime/composables/use-slideover.d.ts +36 -0
- package/dist/runtime/composables/use-slideover.js +41 -0
- package/dist/runtime/composables/use-table.d.ts +63 -0
- package/dist/runtime/composables/use-table.js +142 -0
- package/dist/runtime/composables/use-toast.d.ts +15 -0
- package/dist/runtime/composables/use-toast.js +16 -0
- package/dist/runtime/directives/index.d.ts +1 -0
- package/dist/runtime/directives/index.js +1 -0
- package/dist/runtime/directives/ripple.d.ts +16 -0
- package/dist/runtime/directives/ripple.js +80 -0
- package/dist/runtime/internal/ColorPickerBody.d.vue.ts +26 -0
- package/dist/runtime/internal/ColorPickerBody.vue +111 -0
- package/dist/runtime/internal/ColorPickerBody.vue.d.ts +26 -0
- package/dist/runtime/internal/ComboboxSelectBase.d.vue.ts +122 -0
- package/dist/runtime/internal/ComboboxSelectBase.vue +590 -0
- package/dist/runtime/internal/ComboboxSelectBase.vue.d.ts +122 -0
- package/dist/runtime/internal/ComboboxSelectBody.d.vue.ts +71 -0
- package/dist/runtime/internal/ComboboxSelectBody.vue +146 -0
- package/dist/runtime/internal/ComboboxSelectBody.vue.d.ts +71 -0
- package/dist/runtime/internal/DatePickerCalendarBody.d.vue.ts +71 -0
- package/dist/runtime/internal/DatePickerCalendarBody.vue +215 -0
- package/dist/runtime/internal/DatePickerCalendarBody.vue.d.ts +71 -0
- package/dist/runtime/internal/DatePickerRangeCalendarBody.d.vue.ts +37 -0
- package/dist/runtime/internal/DatePickerRangeCalendarBody.vue +96 -0
- package/dist/runtime/internal/DatePickerRangeCalendarBody.vue.d.ts +37 -0
- package/dist/runtime/internal/DatePickerTimeBody.d.vue.ts +33 -0
- package/dist/runtime/internal/DatePickerTimeBody.vue +53 -0
- package/dist/runtime/internal/DatePickerTimeBody.vue.d.ts +33 -0
- package/dist/runtime/internal/TimeStepper.d.vue.ts +28 -0
- package/dist/runtime/internal/TimeStepper.vue +99 -0
- package/dist/runtime/internal/TimeStepper.vue.d.ts +28 -0
- package/dist/runtime/prose.css +1 -0
- package/dist/runtime/server/tsconfig.json +3 -0
- package/dist/runtime/theme/accordion.d.ts +131 -0
- package/dist/runtime/theme/accordion.js +60 -0
- package/dist/runtime/theme/alert-dialog.d.ts +50 -0
- package/dist/runtime/theme/alert-dialog.js +30 -0
- package/dist/runtime/theme/alert.d.ts +62 -0
- package/dist/runtime/theme/alert.js +52 -0
- package/dist/runtime/theme/avatar-group.d.ts +59 -0
- package/dist/runtime/theme/avatar-group.js +18 -0
- package/dist/runtime/theme/avatar.d.ts +206 -0
- package/dist/runtime/theme/avatar.js +67 -0
- package/dist/runtime/theme/badge.d.ts +140 -0
- package/dist/runtime/theme/badge.js +90 -0
- package/dist/runtime/theme/breadcrumb.d.ts +86 -0
- package/dist/runtime/theme/breadcrumb.js +22 -0
- package/dist/runtime/theme/button-group.d.ts +53 -0
- package/dist/runtime/theme/button-group.js +21 -0
- package/dist/runtime/theme/button.d.ts +155 -0
- package/dist/runtime/theme/button.js +99 -0
- package/dist/runtime/theme/callout.d.ts +74 -0
- package/dist/runtime/theme/callout.js +23 -0
- package/dist/runtime/theme/card-group.d.ts +44 -0
- package/dist/runtime/theme/card-group.js +19 -0
- package/dist/runtime/theme/card.d.ts +62 -0
- package/dist/runtime/theme/card.js +23 -0
- package/dist/runtime/theme/checkbox.d.ts +218 -0
- package/dist/runtime/theme/checkbox.js +113 -0
- package/dist/runtime/theme/chip.d.ts +155 -0
- package/dist/runtime/theme/chip.js +86 -0
- package/dist/runtime/theme/code-button.d.ts +32 -0
- package/dist/runtime/theme/code-button.js +7 -0
- package/dist/runtime/theme/code-tree.d.ts +50 -0
- package/dist/runtime/theme/code-tree.js +13 -0
- package/dist/runtime/theme/collapsible.d.ts +95 -0
- package/dist/runtime/theme/collapsible.js +46 -0
- package/dist/runtime/theme/color-picker.d.ts +152 -0
- package/dist/runtime/theme/color-picker.js +83 -0
- package/dist/runtime/theme/command-palette.d.ts +110 -0
- package/dist/runtime/theme/command-palette.js +23 -0
- package/dist/runtime/theme/container.d.ts +62 -0
- package/dist/runtime/theme/container.js +18 -0
- package/dist/runtime/theme/content-navigation.d.ts +47 -0
- package/dist/runtime/theme/content-navigation.js +38 -0
- package/dist/runtime/theme/content-surround.d.ts +53 -0
- package/dist/runtime/theme/content-surround.js +22 -0
- package/dist/runtime/theme/content-toc.d.ts +56 -0
- package/dist/runtime/theme/content-toc.js +41 -0
- package/dist/runtime/theme/context-menu.d.ts +38 -0
- package/dist/runtime/theme/context-menu.js +21 -0
- package/dist/runtime/theme/dashboard-group.d.ts +26 -0
- package/dist/runtime/theme/dashboard-group.js +9 -0
- package/dist/runtime/theme/dashboard-navbar.d.ts +44 -0
- package/dist/runtime/theme/dashboard-navbar.js +9 -0
- package/dist/runtime/theme/dashboard-panel.d.ts +26 -0
- package/dist/runtime/theme/dashboard-panel.js +6 -0
- package/dist/runtime/theme/dashboard-resize-handle.d.ts +26 -0
- package/dist/runtime/theme/dashboard-resize-handle.js +17 -0
- package/dist/runtime/theme/dashboard-sidebar.d.ts +50 -0
- package/dist/runtime/theme/dashboard-sidebar.js +40 -0
- package/dist/runtime/theme/date-picker.d.ts +119 -0
- package/dist/runtime/theme/date-picker.js +75 -0
- package/dist/runtime/theme/drawer.d.ts +95 -0
- package/dist/runtime/theme/drawer.js +57 -0
- package/dist/runtime/theme/dropdown.d.ts +41 -0
- package/dist/runtime/theme/dropdown.js +21 -0
- package/dist/runtime/theme/file-tree.d.ts +56 -0
- package/dist/runtime/theme/file-tree.js +33 -0
- package/dist/runtime/theme/file-upload.d.ts +233 -0
- package/dist/runtime/theme/file-upload.js +63 -0
- package/dist/runtime/theme/form-field.d.ts +95 -0
- package/dist/runtime/theme/form-field.js +37 -0
- package/dist/runtime/theme/header.d.ts +38 -0
- package/dist/runtime/theme/header.js +8 -0
- package/dist/runtime/theme/icon.d.ts +80 -0
- package/dist/runtime/theme/icon.js +26 -0
- package/dist/runtime/theme/input-group.d.ts +95 -0
- package/dist/runtime/theme/input-group.js +39 -0
- package/dist/runtime/theme/input-number.d.ts +164 -0
- package/dist/runtime/theme/input-number.js +76 -0
- package/dist/runtime/theme/input.d.ts +185 -0
- package/dist/runtime/theme/input.js +72 -0
- package/dist/runtime/theme/kbd.d.ts +44 -0
- package/dist/runtime/theme/kbd.js +16 -0
- package/dist/runtime/theme/modal.d.ts +74 -0
- package/dist/runtime/theme/modal.js +58 -0
- package/dist/runtime/theme/navigation-menu.d.ts +224 -0
- package/dist/runtime/theme/navigation-menu.js +232 -0
- package/dist/runtime/theme/page-aside.d.ts +44 -0
- package/dist/runtime/theme/page-aside.js +17 -0
- package/dist/runtime/theme/page-header.d.ts +38 -0
- package/dist/runtime/theme/page-header.js +8 -0
- package/dist/runtime/theme/pagination.d.ts +68 -0
- package/dist/runtime/theme/pagination.js +21 -0
- package/dist/runtime/theme/pin-input.d.ts +131 -0
- package/dist/runtime/theme/pin-input.js +40 -0
- package/dist/runtime/theme/popover.d.ts +32 -0
- package/dist/runtime/theme/popover.js +7 -0
- package/dist/runtime/theme/progress.d.ts +185 -0
- package/dist/runtime/theme/progress.js +54 -0
- package/dist/runtime/theme/prose.d.ts +92 -0
- package/dist/runtime/theme/prose.js +17 -0
- package/dist/runtime/theme/radio-group.d.ts +239 -0
- package/dist/runtime/theme/radio-group.js +134 -0
- package/dist/runtime/theme/rating.d.ts +167 -0
- package/dist/runtime/theme/rating.js +77 -0
- package/dist/runtime/theme/read-more.d.ts +38 -0
- package/dist/runtime/theme/read-more.js +21 -0
- package/dist/runtime/theme/scroll-area.d.ts +50 -0
- package/dist/runtime/theme/scroll-area.js +10 -0
- package/dist/runtime/theme/select.d.ts +176 -0
- package/dist/runtime/theme/select.js +74 -0
- package/dist/runtime/theme/separator.d.ts +158 -0
- package/dist/runtime/theme/separator.js +63 -0
- package/dist/runtime/theme/skeleton.d.ts +35 -0
- package/dist/runtime/theme/skeleton.js +27 -0
- package/dist/runtime/theme/slideover.d.ts +107 -0
- package/dist/runtime/theme/slideover.js +62 -0
- package/dist/runtime/theme/slider.d.ts +227 -0
- package/dist/runtime/theme/slider.js +73 -0
- package/dist/runtime/theme/splitter-panel.d.ts +26 -0
- package/dist/runtime/theme/splitter-panel.js +9 -0
- package/dist/runtime/theme/splitter-resize-handle.d.ts +44 -0
- package/dist/runtime/theme/splitter-resize-handle.js +18 -0
- package/dist/runtime/theme/splitter.d.ts +35 -0
- package/dist/runtime/theme/splitter.js +15 -0
- package/dist/runtime/theme/stepper.d.ts +221 -0
- package/dist/runtime/theme/stepper.js +106 -0
- package/dist/runtime/theme/switch.d.ts +206 -0
- package/dist/runtime/theme/switch.js +84 -0
- package/dist/runtime/theme/table.d.ts +176 -0
- package/dist/runtime/theme/table.js +59 -0
- package/dist/runtime/theme/tabs.d.ts +59 -0
- package/dist/runtime/theme/tabs.js +44 -0
- package/dist/runtime/theme/textarea.d.ts +212 -0
- package/dist/runtime/theme/textarea.js +56 -0
- package/dist/runtime/theme/toast.d.ts +80 -0
- package/dist/runtime/theme/toast.js +31 -0
- package/dist/runtime/theme/toggle-group.d.ts +110 -0
- package/dist/runtime/theme/toggle-group.js +48 -0
- package/dist/runtime/theme/toggle.d.ts +92 -0
- package/dist/runtime/theme/toggle.js +48 -0
- package/dist/runtime/theme/tooltip.d.ts +44 -0
- package/dist/runtime/theme/tooltip.js +14 -0
- package/dist/runtime/theme/tree.d.ts +80 -0
- package/dist/runtime/theme/tree.js +32 -0
- package/dist/runtime/theme.css +1 -0
- package/dist/runtime/types/app-config.d.ts +15 -0
- package/dist/runtime/types/index.d.ts +82 -0
- package/dist/runtime/types/index.js +2 -0
- package/dist/runtime/utils/format-bytes.d.ts +2 -0
- package/dist/runtime/utils/format-bytes.js +9 -0
- package/dist/runtime/utils/fuzzy-match.d.ts +12 -0
- package/dist/runtime/utils/fuzzy-match.js +21 -0
- package/dist/runtime/utils/icons.d.ts +38 -0
- package/dist/runtime/utils/icons.js +51 -0
- package/dist/runtime/utils/injection-keys.d.ts +69 -0
- package/dist/runtime/utils/injection-keys.js +3 -0
- package/dist/runtime/utils/messages.d.ts +70 -0
- package/dist/runtime/utils/messages.js +68 -0
- package/dist/runtime/utils/navigation-menu.d.ts +32 -0
- package/dist/runtime/utils/navigation-menu.js +5 -0
- package/dist/runtime/utils/table-columns.d.ts +30 -0
- package/dist/runtime/utils/table-columns.js +89 -0
- package/dist/runtime/utils/table-export.d.ts +12 -0
- package/dist/runtime/utils/table-export.js +29 -0
- package/dist/runtime/utils/ui.d.ts +124 -0
- package/dist/runtime/utils/ui.js +74 -0
- package/dist/types.d.mts +3 -0
- package/package.json +99 -0
|
@@ -0,0 +1,232 @@
|
|
|
1
|
+
import { tv } from "tailwind-variants";
|
|
2
|
+
export const navigationMenuTheme = tv({
|
|
3
|
+
slots: {
|
|
4
|
+
// w-full - without it, Root shrink-wraps to just its own trigger
|
|
5
|
+
// buttons' natural width inside whatever flex/grid container it sits
|
|
6
|
+
// in (confirmed: inside the docs site's own demo wrapper, a bare
|
|
7
|
+
// `flex` nav ended up narrower than its own dropdown content). Since
|
|
8
|
+
// `viewport` below is sized `w-full` *relative to Root*, a narrow
|
|
9
|
+
// Root clipped any dropdown content wider than the nav's own row -
|
|
10
|
+
// visible as text cut off mid-word in a custom-content example wider
|
|
11
|
+
// than the default trigger row. A real navbar spans its container's
|
|
12
|
+
// width anyway (the standard pattern), so this is correct regardless
|
|
13
|
+
// of the clipping bug it also happens to fix.
|
|
14
|
+
root: "flex w-full",
|
|
15
|
+
list: "flex list-none",
|
|
16
|
+
item: "min-w-0",
|
|
17
|
+
// `link` is the *only* row style vertical orientation ever uses, at
|
|
18
|
+
// every depth - a top-level leaf, a top-level trigger, a 3rd-level
|
|
19
|
+
// leaf nested three accordions deep, all get this same class, recursed
|
|
20
|
+
// through NavigationMenuAccordionItem.vue rather than switching to a
|
|
21
|
+
// separate "child" style partway down. `childLink` below still exists,
|
|
22
|
+
// but only for horizontal's own dropdown panel - a real second row
|
|
23
|
+
// style there, not a nesting-depth concern. This mirrors a comparable
|
|
24
|
+
// reference's own real navigation-menu source (confirmed by reading
|
|
25
|
+
// it directly): it has no `childLink` at all for vertical mode, only
|
|
26
|
+
// ever `link` with a `level` variant. An earlier version of this
|
|
27
|
+
// file tried to keep two
|
|
28
|
+
// parallel row styles in sync across every nesting level instead (a
|
|
29
|
+
// `childLink` used from 2nd level down, `ps-0`/gap fixes chasing each
|
|
30
|
+
// new place the two silently drifted apart) - genuinely not worth it;
|
|
31
|
+
// one style everywhere is both simpler and correct by construction.
|
|
32
|
+
link: "group relative flex items-center gap-2 rounded-[var(--ui-radius-md)] px-2.5 py-1.5 text-sm font-medium focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[var(--ui-primary)]",
|
|
33
|
+
linkIcon: "size-4 shrink-0",
|
|
34
|
+
// Collapsed-rail fallback for a top-level item with no icon (see the
|
|
35
|
+
// `collapsed` variant below) - same box size as `linkIcon` so it
|
|
36
|
+
// drops into the exact same visual slot instead of the row looking
|
|
37
|
+
// empty. Purely decorative (`aria-hidden` at the call site) - the
|
|
38
|
+
// item's real accessible name is still `linkLabel`, kept in the DOM
|
|
39
|
+
// via `sr-only` rather than removed.
|
|
40
|
+
linkIconFallback: "flex size-4 shrink-0 items-center justify-center text-[10px] font-semibold uppercase",
|
|
41
|
+
linkLabel: "truncate",
|
|
42
|
+
linkTrailingIcon: "size-4 shrink-0 transition-transform duration-200 group-data-[state=open]:rotate-180",
|
|
43
|
+
// `content` and `childList` below are shared between horizontal's
|
|
44
|
+
// NavigationMenuContent (stacked absolutely inside the shared
|
|
45
|
+
// viewport, wide/multi-column) and vertical's own accordion panel
|
|
46
|
+
// (a normal in-flow, single-column nested list - see
|
|
47
|
+
// NavigationMenuAccordionItem.vue). Regression: an earlier version put
|
|
48
|
+
// the horizontal-only absolute positioning and multi-column grid
|
|
49
|
+
// directly in these base strings, which broke vertical mode entirely
|
|
50
|
+
// (ripped its accordion content out of normal flow, and turned its
|
|
51
|
+
// indented nested list into a multi-column grid). Both now live in
|
|
52
|
+
// the `orientation` variant below instead, so vertical gets none of it.
|
|
53
|
+
content: "p-2",
|
|
54
|
+
viewport: "absolute inset-x-0 top-full z-[var(--ui-z-dropdown)] h-[var(--reka-navigation-menu-viewport-height)] w-full overflow-hidden rounded-[var(--ui-radius-md)] bg-[var(--ui-bg)] shadow-[var(--ui-shadow-md)] ring-1 ring-[var(--ui-border)] transition-[height] duration-200",
|
|
55
|
+
childList: "grid gap-1",
|
|
56
|
+
childItem: "",
|
|
57
|
+
childLink: "group relative flex items-center gap-2 rounded-[var(--ui-radius-md)] px-3 py-2 text-sm focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[var(--ui-primary)]",
|
|
58
|
+
childLinkLabel: "truncate",
|
|
59
|
+
// `type: 'label'`/`'separator'` items (see NavigationMenuItem's own
|
|
60
|
+
// doc comment) - non-interactive, so neither gets `link`'s own
|
|
61
|
+
// hover/focus/active treatment. groupLabel's own px-2.5 matches
|
|
62
|
+
// link's, so a "Links"-style heading sits flush with the real items
|
|
63
|
+
// below it.
|
|
64
|
+
groupLabel: "px-2.5 pb-1 pt-3 text-xs font-semibold uppercase tracking-wide text-[var(--ui-text-muted)] first:pt-0",
|
|
65
|
+
separator: "my-1 h-px bg-[var(--ui-border)]"
|
|
66
|
+
},
|
|
67
|
+
variants: {
|
|
68
|
+
orientation: {
|
|
69
|
+
// `content`: full width of the nav bar, not sized to its own
|
|
70
|
+
// content - confirmed directly against two comparable references
|
|
71
|
+
// (one's own real theme sizes this `w-full`; the other's own
|
|
72
|
+
// mega-menu-style wide panel component - not its own separate
|
|
73
|
+
// narrow cascading-submenu component - does the same). Each open
|
|
74
|
+
// item's own panel stacks absolutely inside the shared viewport
|
|
75
|
+
// (only one visible via Presence), rather than sizing the
|
|
76
|
+
// viewport to whichever is active.
|
|
77
|
+
// `childList`: adaptive column count (not a fixed grid-cols-2 like
|
|
78
|
+
// a comparable reference's own default) - a fixed count leaves an
|
|
79
|
+
// awkward empty cell for an odd number of children. `auto-fit`,
|
|
80
|
+
// not `auto-fill` - fill reserves empty phantom tracks for
|
|
81
|
+
// however many columns WOULD fit the container width, leaving
|
|
82
|
+
// that much dead space when there are fewer actual children than
|
|
83
|
+
// that - exactly what showed up as a wide empty gap next to a
|
|
84
|
+
// 4-item grid in a very wide panel. `auto-fit` collapses those
|
|
85
|
+
// phantom tracks to 0 instead, so existing children always
|
|
86
|
+
// stretch to fill the full width.
|
|
87
|
+
horizontal: {
|
|
88
|
+
root: "relative items-center",
|
|
89
|
+
list: "items-center gap-1",
|
|
90
|
+
content: "absolute inset-x-0 top-0 w-full max-h-[70vh] overflow-y-auto",
|
|
91
|
+
childList: "grid-cols-[repeat(auto-fit,minmax(11rem,1fr))]"
|
|
92
|
+
},
|
|
93
|
+
// The whole indent story for a nested tree, confirmed against Nuxt
|
|
94
|
+
// UI's own real source: every level of nesting reuses the exact
|
|
95
|
+
// same `link` row unstyled by depth - what actually creates the
|
|
96
|
+
// step-in per level is the *wrapping* childList/childItem, not the
|
|
97
|
+
// row itself. `childList`'s own start-margin (ms-6) is the only
|
|
98
|
+
// margin-based indent here - ms-6 (rather than a plainer ms-5)
|
|
99
|
+
// nudges the whole nested block a bit further right than the
|
|
100
|
+
// parent row's own start: at ms-5, the rail read as sticking out
|
|
101
|
+
// past the parent's own text rather than tucking in under it.
|
|
102
|
+
//
|
|
103
|
+
// The tree-connector trunk+elbow (see theme.css's own
|
|
104
|
+
// `.selaras-nav-elbow` comment for the full technique) live on
|
|
105
|
+
// `childItem`, but the gutter they reach back into is reserved by
|
|
106
|
+
// `ps-1.5` on `childList` - not on `childItem` itself, even though
|
|
107
|
+
// the rail visually sits right at each item's own edge. Putting
|
|
108
|
+
// padding on `childItem` instead (an earlier version did, with
|
|
109
|
+
// `ps-4`) double-counts the offset: the rail's own fixed `-16px`
|
|
110
|
+
// mask offset and the padding would both measure from childItem's
|
|
111
|
+
// own edge in opposite directions, widening the rail-to-text gap
|
|
112
|
+
// well past what `ps-1.5` alone reserves. Reserving the gutter on
|
|
113
|
+
// `childList` instead means childItem's own edge is *already*
|
|
114
|
+
// shifted right of the rail before the mask's own offset even
|
|
115
|
+
// applies - same single-application geometry ContentNavigation's
|
|
116
|
+
// own rail uses (mask on `item`, padding on the wrapping
|
|
117
|
+
// `content`), just tuned to a tighter `ps-1.5` here instead of
|
|
118
|
+
// matching the mask's own 16px width exactly.
|
|
119
|
+
vertical: {
|
|
120
|
+
root: "flex-col",
|
|
121
|
+
list: "flex-col gap-1",
|
|
122
|
+
content: "px-0 py-1",
|
|
123
|
+
childList: "ms-6 ps-1.5",
|
|
124
|
+
childItem: "selaras-nav-elbow selaras-nav-elbow--navigation-menu"
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
color: {
|
|
128
|
+
primary: "",
|
|
129
|
+
neutral: "",
|
|
130
|
+
secondary: "",
|
|
131
|
+
success: "",
|
|
132
|
+
danger: "",
|
|
133
|
+
info: "",
|
|
134
|
+
warning: ""
|
|
135
|
+
},
|
|
136
|
+
variant: {
|
|
137
|
+
pill: "",
|
|
138
|
+
link: ""
|
|
139
|
+
},
|
|
140
|
+
active: {
|
|
141
|
+
true: {},
|
|
142
|
+
false: { link: "text-[var(--ui-text-muted)] hover:text-[var(--ui-text)]", childLink: "text-[var(--ui-text-muted)] hover:text-[var(--ui-text)]" }
|
|
143
|
+
},
|
|
144
|
+
disabled: {
|
|
145
|
+
true: { link: "pointer-events-none opacity-50", childLink: "pointer-events-none opacity-50" }
|
|
146
|
+
},
|
|
147
|
+
highlight: {
|
|
148
|
+
true: {}
|
|
149
|
+
},
|
|
150
|
+
// Icon-only rail mode (vertical only - see NavigationMenu.vue's own
|
|
151
|
+
// `collapsed` prop). `sr-only` on the label, not a `v-if` removing it
|
|
152
|
+
// from the template - keeps every link's accessible name intact for
|
|
153
|
+
// assistive tech while hiding it visually, the same reasoning
|
|
154
|
+
// Button's own icon-only buttons already lean on via `aria-label`.
|
|
155
|
+
// `size-10 p-0 mx-auto` (matching Button's own `square` md size)
|
|
156
|
+
// makes the row a fixed, centered square instead of a short rectangle
|
|
157
|
+
// stretched to the rail's full width with only the icon centered
|
|
158
|
+
// inside it - a plain `link` otherwise fills its container's width
|
|
159
|
+
// the same way an `<a>`/`<div>` always does (see NavigationMenu.vue's
|
|
160
|
+
// own note on that), which reads as "wide button with a tiny icon in
|
|
161
|
+
// it" rather than a real icon button once the label's gone. `p-0`
|
|
162
|
+
// overrides the base row's own `px-2.5 py-1.5` outright (twMerge
|
|
163
|
+
// resolves a bare `p-0` against a `px-*`/`py-*` pair correctly, same
|
|
164
|
+
// as every other partial-padding-override case in this file);
|
|
165
|
+
// `justify-center` (kept from before) centers the icon inside that
|
|
166
|
+
// now-fixed box.
|
|
167
|
+
collapsed: {
|
|
168
|
+
true: { link: "size-10 justify-center p-0 mx-auto", linkLabel: "sr-only" }
|
|
169
|
+
},
|
|
170
|
+
// A flyout's own *root* child list - the one rendered directly inside
|
|
171
|
+
// the collapsed rail's Popover content, with no visible parent row
|
|
172
|
+
// above it inside that popover (the real "parent" is the icon trigger
|
|
173
|
+
// sitting outside the popover entirely) - draws no guide line, since
|
|
174
|
+
// there's nothing inside the popover for it to visually connect to.
|
|
175
|
+
// A *nested* group further down the same flyout (e.g. a 3rd-level
|
|
176
|
+
// group's own children, sitting right below its own real, visible
|
|
177
|
+
// heading row) keeps the normal indent/line treatment untouched - see
|
|
178
|
+
// NavigationMenuFlyoutList.vue's own `root` prop, which is what wires
|
|
179
|
+
// this variant in only for that outermost call. `ps-0` cancels
|
|
180
|
+
// `childList`'s own `ps-1.5` normally via tailwind-merge (a real
|
|
181
|
+
// conflicting utility, same as ms-0/ms-6). `childItem`'s own
|
|
182
|
+
// `.selaras-nav-elbow` is a hand-written CSS class though, not a
|
|
183
|
+
// Tailwind utility - tailwind-merge can't dedupe it away, so
|
|
184
|
+
// `before:!content-none` and `after:!content-none` force both masked
|
|
185
|
+
// pseudo-elements to stop rendering via a real cascade override
|
|
186
|
+
// instead (the class name itself stays in the DOM either way, just
|
|
187
|
+
// with no visible effect).
|
|
188
|
+
flyoutRoot: {
|
|
189
|
+
true: { childList: "ms-0 ps-0", childItem: "before:!content-none after:!content-none" }
|
|
190
|
+
}
|
|
191
|
+
},
|
|
192
|
+
compoundVariants: [
|
|
193
|
+
{ variant: "pill", active: false, class: { link: "hover:bg-[var(--ui-bg-elevated)]", childLink: "hover:bg-[var(--ui-bg-elevated)]" } },
|
|
194
|
+
{ variant: "pill", active: true, color: "primary", class: { link: "bg-[var(--ui-primary-soft)] text-[var(--ui-primary)]" } },
|
|
195
|
+
{ variant: "pill", active: true, color: "neutral", class: { link: "bg-[var(--ui-neutral-soft)] text-[var(--ui-text)]" } },
|
|
196
|
+
{ variant: "pill", active: true, color: "secondary", class: { link: "bg-[var(--ui-secondary-soft)] text-[var(--ui-secondary)]" } },
|
|
197
|
+
{ variant: "pill", active: true, color: "success", class: { link: "bg-[var(--ui-success-soft)] text-[var(--ui-success)]" } },
|
|
198
|
+
{ variant: "pill", active: true, color: "danger", class: { link: "bg-[var(--ui-danger-soft)] text-[var(--ui-danger)]" } },
|
|
199
|
+
{ variant: "pill", active: true, color: "info", class: { link: "bg-[var(--ui-info-soft)] text-[var(--ui-info)]" } },
|
|
200
|
+
{ variant: "pill", active: true, color: "warning", class: { link: "bg-[var(--ui-warning-soft)] text-[var(--ui-warning)]" } },
|
|
201
|
+
{ variant: "link", active: true, color: "primary", class: { link: "text-[var(--ui-primary)]" } },
|
|
202
|
+
{ variant: "link", active: true, color: "neutral", class: { link: "text-[var(--ui-text)]" } },
|
|
203
|
+
{ variant: "link", active: true, color: "secondary", class: { link: "text-[var(--ui-secondary)]" } },
|
|
204
|
+
{ variant: "link", active: true, color: "success", class: { link: "text-[var(--ui-success)]" } },
|
|
205
|
+
{ variant: "link", active: true, color: "danger", class: { link: "text-[var(--ui-danger)]" } },
|
|
206
|
+
{ variant: "link", active: true, color: "info", class: { link: "text-[var(--ui-info)]" } },
|
|
207
|
+
{ variant: "link", active: true, color: "warning", class: { link: "text-[var(--ui-warning)]" } },
|
|
208
|
+
// Child links (inside horizontal's own dropdown panel) always get the
|
|
209
|
+
// "active" text-color treatment regardless of `variant` - a pill-style
|
|
210
|
+
// background on every list row in a dropdown would be visual noise.
|
|
211
|
+
{ active: true, color: "primary", class: { childLink: "text-[var(--ui-primary)]" } },
|
|
212
|
+
{ active: true, color: "neutral", class: { childLink: "text-[var(--ui-text)]" } },
|
|
213
|
+
{ active: true, color: "secondary", class: { childLink: "text-[var(--ui-secondary)]" } },
|
|
214
|
+
{ active: true, color: "success", class: { childLink: "text-[var(--ui-success)]" } },
|
|
215
|
+
{ active: true, color: "danger", class: { childLink: "text-[var(--ui-danger)]" } },
|
|
216
|
+
{ active: true, color: "info", class: { childLink: "text-[var(--ui-info)]" } },
|
|
217
|
+
{ active: true, color: "warning", class: { childLink: "text-[var(--ui-warning)]" } },
|
|
218
|
+
// The highlight bar reuses whatever text color `active` already set via
|
|
219
|
+
// the compound variants above (`after:bg-current`) instead of a second,
|
|
220
|
+
// parallel per-color axis - it's only ever visible together with the
|
|
221
|
+
// matching `active:true` color class already on the same element.
|
|
222
|
+
{ orientation: "horizontal", highlight: true, active: true, class: { link: "after:absolute after:-bottom-2 after:inset-x-2.5 after:block after:h-px after:rounded-full after:bg-current" } },
|
|
223
|
+
{ orientation: "horizontal", highlight: true, active: false, class: { link: "after:hidden" } },
|
|
224
|
+
{ orientation: "vertical", highlight: true, active: true, class: { link: "after:absolute after:-start-1.5 after:inset-y-0.5 after:block after:w-px after:rounded-full after:bg-current" } },
|
|
225
|
+
{ orientation: "vertical", highlight: true, active: false, class: { link: "after:hidden" } }
|
|
226
|
+
],
|
|
227
|
+
defaultVariants: {
|
|
228
|
+
orientation: "horizontal",
|
|
229
|
+
color: "primary",
|
|
230
|
+
variant: "pill"
|
|
231
|
+
}
|
|
232
|
+
});
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
export declare const pageAsideTheme: import("tailwind-variants").TVReturnType<{
|
|
2
|
+
[key: string]: {
|
|
3
|
+
[key: string]: import("tailwind-variants").ClassValue | {
|
|
4
|
+
root?: import("tailwind-variants").ClassValue;
|
|
5
|
+
header?: import("tailwind-variants").ClassValue;
|
|
6
|
+
body?: import("tailwind-variants").ClassValue;
|
|
7
|
+
scrollArea?: import("tailwind-variants").ClassValue;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
} | {
|
|
11
|
+
[x: string]: {
|
|
12
|
+
[x: string]: import("tailwind-variants").ClassValue | {
|
|
13
|
+
root?: import("tailwind-variants").ClassValue;
|
|
14
|
+
header?: import("tailwind-variants").ClassValue;
|
|
15
|
+
body?: import("tailwind-variants").ClassValue;
|
|
16
|
+
scrollArea?: import("tailwind-variants").ClassValue;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
} | {}, {
|
|
20
|
+
root: string;
|
|
21
|
+
header: string;
|
|
22
|
+
scrollArea: string;
|
|
23
|
+
body: string;
|
|
24
|
+
}, undefined, {
|
|
25
|
+
[key: string]: {
|
|
26
|
+
[key: string]: import("tailwind-variants").ClassValue | {
|
|
27
|
+
root?: import("tailwind-variants").ClassValue;
|
|
28
|
+
header?: import("tailwind-variants").ClassValue;
|
|
29
|
+
body?: import("tailwind-variants").ClassValue;
|
|
30
|
+
scrollArea?: import("tailwind-variants").ClassValue;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
} | {}, {
|
|
34
|
+
root: string;
|
|
35
|
+
header: string;
|
|
36
|
+
scrollArea: string;
|
|
37
|
+
body: string;
|
|
38
|
+
}, import("tailwind-variants").TVReturnTypeLike<unknown, {
|
|
39
|
+
root: string;
|
|
40
|
+
header: string;
|
|
41
|
+
scrollArea: string;
|
|
42
|
+
body: string;
|
|
43
|
+
}>>;
|
|
44
|
+
export type PageAsideThemeSlots = keyof (typeof pageAsideTheme)['slots'];
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { tv } from "tailwind-variants";
|
|
2
|
+
export const pageAsideTheme = tv({
|
|
3
|
+
slots: {
|
|
4
|
+
// `hidden lg:flex` - a fixed w-64 rail sitting alongside the main
|
|
5
|
+
// content column has nowhere to go on a narrow viewport (this is
|
|
6
|
+
// used for both a docs site's own left nav and its right ToC rail -
|
|
7
|
+
// see PageAside.vue's own doc comment). Below `lg`, it simply isn't
|
|
8
|
+
// rendered; a consumer that still needs the nav reachable on mobile
|
|
9
|
+
// (this docs site's own layout does) surfaces it another way - a
|
|
10
|
+
// Drawer triggered from the header, say - rather than this
|
|
11
|
+
// component trying to grow a second, drawer-shaped mode of its own.
|
|
12
|
+
root: "sticky top-0 hidden h-screen w-64 shrink-0 flex-col overflow-hidden lg:flex",
|
|
13
|
+
header: "shrink-0 p-4",
|
|
14
|
+
scrollArea: "flex-1",
|
|
15
|
+
body: "flex flex-col gap-1 p-4"
|
|
16
|
+
}
|
|
17
|
+
});
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
export declare const pageHeaderTheme: import("tailwind-variants").TVReturnType<{
|
|
2
|
+
[key: string]: {
|
|
3
|
+
[key: string]: import("tailwind-variants").ClassValue | {
|
|
4
|
+
root?: import("tailwind-variants").ClassValue;
|
|
5
|
+
title?: import("tailwind-variants").ClassValue;
|
|
6
|
+
description?: import("tailwind-variants").ClassValue;
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
} | {
|
|
10
|
+
[x: string]: {
|
|
11
|
+
[x: string]: import("tailwind-variants").ClassValue | {
|
|
12
|
+
root?: import("tailwind-variants").ClassValue;
|
|
13
|
+
title?: import("tailwind-variants").ClassValue;
|
|
14
|
+
description?: import("tailwind-variants").ClassValue;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
} | {}, {
|
|
18
|
+
root: string;
|
|
19
|
+
title: string;
|
|
20
|
+
description: string;
|
|
21
|
+
}, undefined, {
|
|
22
|
+
[key: string]: {
|
|
23
|
+
[key: string]: import("tailwind-variants").ClassValue | {
|
|
24
|
+
root?: import("tailwind-variants").ClassValue;
|
|
25
|
+
title?: import("tailwind-variants").ClassValue;
|
|
26
|
+
description?: import("tailwind-variants").ClassValue;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
} | {}, {
|
|
30
|
+
root: string;
|
|
31
|
+
title: string;
|
|
32
|
+
description: string;
|
|
33
|
+
}, import("tailwind-variants").TVReturnTypeLike<unknown, {
|
|
34
|
+
root: string;
|
|
35
|
+
title: string;
|
|
36
|
+
description: string;
|
|
37
|
+
}>>;
|
|
38
|
+
export type PageHeaderThemeSlots = keyof (typeof pageHeaderTheme)['slots'];
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { tv } from "tailwind-variants";
|
|
2
|
+
export const pageHeaderTheme = tv({
|
|
3
|
+
slots: {
|
|
4
|
+
root: "flex flex-col gap-2 border-b border-[var(--ui-border)] pb-6",
|
|
5
|
+
title: "text-3xl font-semibold tracking-tight text-[var(--ui-text)]",
|
|
6
|
+
description: "text-base text-[var(--ui-text-muted)]"
|
|
7
|
+
}
|
|
8
|
+
});
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
export declare const paginationTheme: import("tailwind-variants").TVReturnType<{
|
|
2
|
+
size: {
|
|
3
|
+
sm: {
|
|
4
|
+
root: string;
|
|
5
|
+
list: string;
|
|
6
|
+
ellipsis: string;
|
|
7
|
+
};
|
|
8
|
+
md: {
|
|
9
|
+
root: string;
|
|
10
|
+
list: string;
|
|
11
|
+
ellipsis: string;
|
|
12
|
+
};
|
|
13
|
+
lg: {
|
|
14
|
+
root: string;
|
|
15
|
+
list: string;
|
|
16
|
+
ellipsis: string;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
}, {
|
|
20
|
+
root: string;
|
|
21
|
+
list: string;
|
|
22
|
+
ellipsis: string;
|
|
23
|
+
}, undefined, {
|
|
24
|
+
size: {
|
|
25
|
+
sm: {
|
|
26
|
+
root: string;
|
|
27
|
+
list: string;
|
|
28
|
+
ellipsis: string;
|
|
29
|
+
};
|
|
30
|
+
md: {
|
|
31
|
+
root: string;
|
|
32
|
+
list: string;
|
|
33
|
+
ellipsis: string;
|
|
34
|
+
};
|
|
35
|
+
lg: {
|
|
36
|
+
root: string;
|
|
37
|
+
list: string;
|
|
38
|
+
ellipsis: string;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
}, {
|
|
42
|
+
root: string;
|
|
43
|
+
list: string;
|
|
44
|
+
ellipsis: string;
|
|
45
|
+
}, import("tailwind-variants").TVReturnTypeLike<{
|
|
46
|
+
size: {
|
|
47
|
+
sm: {
|
|
48
|
+
root: string;
|
|
49
|
+
list: string;
|
|
50
|
+
ellipsis: string;
|
|
51
|
+
};
|
|
52
|
+
md: {
|
|
53
|
+
root: string;
|
|
54
|
+
list: string;
|
|
55
|
+
ellipsis: string;
|
|
56
|
+
};
|
|
57
|
+
lg: {
|
|
58
|
+
root: string;
|
|
59
|
+
list: string;
|
|
60
|
+
ellipsis: string;
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
}, {
|
|
64
|
+
root: string;
|
|
65
|
+
list: string;
|
|
66
|
+
ellipsis: string;
|
|
67
|
+
}>>;
|
|
68
|
+
export type PaginationThemeSlots = keyof (typeof paginationTheme)['slots'];
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { tv } from "tailwind-variants";
|
|
2
|
+
export const paginationTheme = tv({
|
|
3
|
+
slots: {
|
|
4
|
+
root: "inline-flex items-center gap-1",
|
|
5
|
+
list: "flex items-center gap-1",
|
|
6
|
+
// Sized per-variant to match Button's own square icon-button dimensions
|
|
7
|
+
// (w-8/w-10/w-11) so the ellipsis lines up with the surrounding
|
|
8
|
+
// page-number buttons instead of collapsing to its own text size.
|
|
9
|
+
ellipsis: "inline-flex items-center justify-center text-[var(--ui-text-muted)]"
|
|
10
|
+
},
|
|
11
|
+
variants: {
|
|
12
|
+
size: {
|
|
13
|
+
sm: { root: "gap-1", list: "gap-1", ellipsis: "size-8 text-sm" },
|
|
14
|
+
md: { root: "gap-1.5", list: "gap-1.5", ellipsis: "size-10 text-sm" },
|
|
15
|
+
lg: { root: "gap-2", list: "gap-2", ellipsis: "size-11 text-base" }
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
defaultVariants: {
|
|
19
|
+
size: "md"
|
|
20
|
+
}
|
|
21
|
+
});
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
export declare const pinInputTheme: import("tailwind-variants").TVReturnType<{
|
|
2
|
+
size: {
|
|
3
|
+
sm: {
|
|
4
|
+
input: string;
|
|
5
|
+
};
|
|
6
|
+
md: {
|
|
7
|
+
input: string;
|
|
8
|
+
};
|
|
9
|
+
lg: {
|
|
10
|
+
input: string;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
color: {
|
|
14
|
+
primary: {
|
|
15
|
+
input: string;
|
|
16
|
+
};
|
|
17
|
+
neutral: {
|
|
18
|
+
input: string;
|
|
19
|
+
};
|
|
20
|
+
secondary: {
|
|
21
|
+
input: string;
|
|
22
|
+
};
|
|
23
|
+
success: {
|
|
24
|
+
input: string;
|
|
25
|
+
};
|
|
26
|
+
danger: {
|
|
27
|
+
input: string;
|
|
28
|
+
};
|
|
29
|
+
info: {
|
|
30
|
+
input: string;
|
|
31
|
+
};
|
|
32
|
+
warning: {
|
|
33
|
+
input: string;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
invalid: {
|
|
37
|
+
true: {
|
|
38
|
+
input: string;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
}, {
|
|
42
|
+
root: string;
|
|
43
|
+
input: string;
|
|
44
|
+
}, undefined, {
|
|
45
|
+
size: {
|
|
46
|
+
sm: {
|
|
47
|
+
input: string;
|
|
48
|
+
};
|
|
49
|
+
md: {
|
|
50
|
+
input: string;
|
|
51
|
+
};
|
|
52
|
+
lg: {
|
|
53
|
+
input: string;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
color: {
|
|
57
|
+
primary: {
|
|
58
|
+
input: string;
|
|
59
|
+
};
|
|
60
|
+
neutral: {
|
|
61
|
+
input: string;
|
|
62
|
+
};
|
|
63
|
+
secondary: {
|
|
64
|
+
input: string;
|
|
65
|
+
};
|
|
66
|
+
success: {
|
|
67
|
+
input: string;
|
|
68
|
+
};
|
|
69
|
+
danger: {
|
|
70
|
+
input: string;
|
|
71
|
+
};
|
|
72
|
+
info: {
|
|
73
|
+
input: string;
|
|
74
|
+
};
|
|
75
|
+
warning: {
|
|
76
|
+
input: string;
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
invalid: {
|
|
80
|
+
true: {
|
|
81
|
+
input: string;
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
}, {
|
|
85
|
+
root: string;
|
|
86
|
+
input: string;
|
|
87
|
+
}, import("tailwind-variants").TVReturnTypeLike<{
|
|
88
|
+
size: {
|
|
89
|
+
sm: {
|
|
90
|
+
input: string;
|
|
91
|
+
};
|
|
92
|
+
md: {
|
|
93
|
+
input: string;
|
|
94
|
+
};
|
|
95
|
+
lg: {
|
|
96
|
+
input: string;
|
|
97
|
+
};
|
|
98
|
+
};
|
|
99
|
+
color: {
|
|
100
|
+
primary: {
|
|
101
|
+
input: string;
|
|
102
|
+
};
|
|
103
|
+
neutral: {
|
|
104
|
+
input: string;
|
|
105
|
+
};
|
|
106
|
+
secondary: {
|
|
107
|
+
input: string;
|
|
108
|
+
};
|
|
109
|
+
success: {
|
|
110
|
+
input: string;
|
|
111
|
+
};
|
|
112
|
+
danger: {
|
|
113
|
+
input: string;
|
|
114
|
+
};
|
|
115
|
+
info: {
|
|
116
|
+
input: string;
|
|
117
|
+
};
|
|
118
|
+
warning: {
|
|
119
|
+
input: string;
|
|
120
|
+
};
|
|
121
|
+
};
|
|
122
|
+
invalid: {
|
|
123
|
+
true: {
|
|
124
|
+
input: string;
|
|
125
|
+
};
|
|
126
|
+
};
|
|
127
|
+
}, {
|
|
128
|
+
root: string;
|
|
129
|
+
input: string;
|
|
130
|
+
}>>;
|
|
131
|
+
export type PinInputThemeSlots = keyof (typeof pinInputTheme)['slots'];
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { tv } from "tailwind-variants";
|
|
2
|
+
export const pinInputTheme = tv({
|
|
3
|
+
slots: {
|
|
4
|
+
root: "inline-flex items-center gap-2",
|
|
5
|
+
// Mirrors Input.vue's own `base` slot look (theme/input.ts) - same
|
|
6
|
+
// ring/hover/focus/disabled treatment - but square instead of
|
|
7
|
+
// full-width, one box per character.
|
|
8
|
+
input: "rounded-[var(--ui-radius-md)] bg-[var(--ui-bg)] text-center font-medium text-[var(--ui-text)] ring-1 ring-inset ring-[var(--ui-border)] outline-none transition-[color,background-color,box-shadow] not-focus:hover:ring-[var(--ui-border-hover)] hover:bg-[var(--ui-bg-elevated)] focus:ring-2 disabled:opacity-50 disabled:pointer-events-none"
|
|
9
|
+
},
|
|
10
|
+
variants: {
|
|
11
|
+
// Square boxes matching Input's own h-8/h-10/h-11 height scale for
|
|
12
|
+
// both dimensions.
|
|
13
|
+
size: {
|
|
14
|
+
sm: { input: "size-8 text-sm" },
|
|
15
|
+
md: { input: "size-10 text-base" },
|
|
16
|
+
lg: { input: "size-11 text-lg" }
|
|
17
|
+
},
|
|
18
|
+
// Focus-ring color only - the resting ring stays --ui-border
|
|
19
|
+
// regardless, matching Input's own `color` variant exactly.
|
|
20
|
+
color: {
|
|
21
|
+
primary: { input: "focus:ring-[var(--ui-primary)]" },
|
|
22
|
+
neutral: { input: "focus:ring-[var(--ui-bg-inverted)]" },
|
|
23
|
+
secondary: { input: "focus:ring-[var(--ui-secondary)]" },
|
|
24
|
+
success: { input: "focus:ring-[var(--ui-success)]" },
|
|
25
|
+
danger: { input: "focus:ring-[var(--ui-danger)]" },
|
|
26
|
+
info: { input: "focus:ring-[var(--ui-info)]" },
|
|
27
|
+
warning: { input: "focus:ring-[var(--ui-warning)]" }
|
|
28
|
+
},
|
|
29
|
+
// Declared last (after color) so tailwind-merge lets its own
|
|
30
|
+
// focus:ring override win over color's - matches Input's own
|
|
31
|
+
// documented reasoning for this order.
|
|
32
|
+
invalid: {
|
|
33
|
+
true: { input: "ring-[var(--ui-danger)] hover:ring-[var(--ui-danger)] focus:ring-[var(--ui-danger)]" }
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
defaultVariants: {
|
|
37
|
+
size: "md",
|
|
38
|
+
color: "primary"
|
|
39
|
+
}
|
|
40
|
+
});
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export declare const popoverTheme: import("tailwind-variants").TVReturnType<{
|
|
2
|
+
[key: string]: {
|
|
3
|
+
[key: string]: import("tailwind-variants").ClassValue | {
|
|
4
|
+
content?: import("tailwind-variants").ClassValue;
|
|
5
|
+
arrow?: import("tailwind-variants").ClassValue;
|
|
6
|
+
};
|
|
7
|
+
};
|
|
8
|
+
} | {
|
|
9
|
+
[x: string]: {
|
|
10
|
+
[x: string]: import("tailwind-variants").ClassValue | {
|
|
11
|
+
content?: import("tailwind-variants").ClassValue;
|
|
12
|
+
arrow?: import("tailwind-variants").ClassValue;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
} | {}, {
|
|
16
|
+
content: string;
|
|
17
|
+
arrow: string;
|
|
18
|
+
}, undefined, {
|
|
19
|
+
[key: string]: {
|
|
20
|
+
[key: string]: import("tailwind-variants").ClassValue | {
|
|
21
|
+
content?: import("tailwind-variants").ClassValue;
|
|
22
|
+
arrow?: import("tailwind-variants").ClassValue;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
} | {}, {
|
|
26
|
+
content: string;
|
|
27
|
+
arrow: string;
|
|
28
|
+
}, import("tailwind-variants").TVReturnTypeLike<unknown, {
|
|
29
|
+
content: string;
|
|
30
|
+
arrow: string;
|
|
31
|
+
}>>;
|
|
32
|
+
export type PopoverThemeSlots = keyof (typeof popoverTheme)['slots'];
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { tv } from "tailwind-variants";
|
|
2
|
+
export const popoverTheme = tv({
|
|
3
|
+
slots: {
|
|
4
|
+
content: "z-[var(--ui-z-dropdown)] rounded-[var(--ui-radius-md)] bg-[var(--ui-bg)] p-4 shadow-[var(--ui-shadow-md)] ring-1 ring-[var(--ui-border)] data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=top]:slide-in-from-bottom-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2",
|
|
5
|
+
arrow: "fill-[var(--ui-bg)] stroke-[var(--ui-border)] stroke-1"
|
|
6
|
+
}
|
|
7
|
+
});
|