@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,74 @@
|
|
|
1
|
+
import { tv } from "tailwind-variants";
|
|
2
|
+
export const selectTheme = tv({
|
|
3
|
+
slots: {
|
|
4
|
+
root: "w-full",
|
|
5
|
+
// Hover ring excludes all three focus-ish states (focus, focus-within,
|
|
6
|
+
// the popover being open) - without it, hovering while any of those is
|
|
7
|
+
// true (unavoidable while interacting with the trigger or its options)
|
|
8
|
+
// let the plain gray hover ring beat the primary one in the cascade,
|
|
9
|
+
// since they're all equal-specificity pseudo-class/attribute selectors.
|
|
10
|
+
trigger: "inline-flex w-full min-h-10 flex-wrap items-center gap-1.5 rounded-[var(--ui-radius-md)] bg-[var(--ui-bg)] px-3 py-1.5 text-sm ring-1 ring-inset ring-[var(--ui-border)] outline-none transition-[color,background-color,box-shadow] not-focus:not-focus-within:not-data-[state=open]:hover:ring-[var(--ui-border-hover)] hover:bg-[var(--ui-bg-elevated)] focus:ring-2 focus-within:ring-2 data-[state=open]:ring-2 disabled:opacity-50 disabled:pointer-events-none",
|
|
11
|
+
value: "flex-1 truncate text-start text-[var(--ui-text)] data-[placeholder]:text-[var(--ui-text-muted)]",
|
|
12
|
+
// Both chip display branches render a real Chip (see
|
|
13
|
+
// ComboboxSelectBase.vue) instead of hand-rolled markup, styled/
|
|
14
|
+
// colored via its own props and :ui override - only the "+N more"
|
|
15
|
+
// overflow indicator still needs a Select-owned slot. bg-primary-soft
|
|
16
|
+
// (not bg-elevated) - elevated is the same token the trigger itself
|
|
17
|
+
// switches to on hover, so it used to vanish on hover exactly like
|
|
18
|
+
// the chips did before they moved to Chip's own primary/soft. Text
|
|
19
|
+
// matches the chips' own primary too, not text-muted - muted-on-
|
|
20
|
+
// primary-soft measures 4.46:1, just under AA; primary-on-primary-
|
|
21
|
+
// soft (the same pairing Chip's own soft variant uses) clears 6.5:1.
|
|
22
|
+
chipOverflow: "inline-flex items-center rounded-[var(--ui-radius-sm)] bg-[var(--ui-primary-soft)] px-2 py-0.5 text-xs text-[var(--ui-primary)]",
|
|
23
|
+
icon: "shrink-0 text-[var(--ui-text-muted)]",
|
|
24
|
+
// Rendered as an <SButton> (ghost/neutral) - real chrome, focus ring
|
|
25
|
+
// and touch target come from Button's own theme; only rounded-full
|
|
26
|
+
// (this dismiss-glyph family reads better circular) stays here.
|
|
27
|
+
clear: "shrink-0 rounded-full",
|
|
28
|
+
dropdown: "shrink-0 rounded-[var(--ui-radius-sm)] p-0.5 text-[var(--ui-text-muted)] transition-colors hover:bg-[var(--ui-border)] hover:text-[var(--ui-text)] focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[var(--ui-primary)]",
|
|
29
|
+
searchWrapper: "flex items-center gap-2 border-b border-[var(--ui-border)] px-2",
|
|
30
|
+
searchInput: "h-9 min-w-16 flex-1 bg-transparent text-sm text-[var(--ui-text)] outline-none placeholder:text-[var(--ui-text-muted)]",
|
|
31
|
+
content: "z-[var(--ui-z-dropdown)] max-h-72 min-w-[var(--reka-combobox-trigger-width)] overflow-hidden rounded-[var(--ui-radius-md)] bg-[var(--ui-bg)] shadow-[var(--ui-shadow-md)] ring-1 ring-[var(--ui-border)] data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95",
|
|
32
|
+
// The `mobileModal` path's own content wrapper - none of `content`'s
|
|
33
|
+
// own popover chrome (ring/shadow/rounded/animate-in, sized off the
|
|
34
|
+
// trigger's own width via --reka-combobox-trigger-width, which is
|
|
35
|
+
// only ever set while position="popper" is active) applies here,
|
|
36
|
+
// since Modal's own card already provides that surface; this only
|
|
37
|
+
// needs to fill Modal's content slot width.
|
|
38
|
+
mobileContent: "w-full",
|
|
39
|
+
viewport: "max-h-72 overflow-y-auto p-1",
|
|
40
|
+
group: "px-2 pt-2 pb-1 text-xs font-medium text-[var(--ui-text-muted)]",
|
|
41
|
+
item: "relative flex items-center gap-2 rounded-[var(--ui-radius-sm)] py-1.5 ps-2 pe-8 text-sm text-[var(--ui-text)] outline-none cursor-pointer select-none data-[highlighted]:bg-[var(--ui-bg-elevated)] data-[disabled]:opacity-50 data-[disabled]:pointer-events-none",
|
|
42
|
+
itemIndicator: "absolute end-2 flex items-center text-[var(--ui-primary)]",
|
|
43
|
+
empty: "px-2 py-6 text-center text-sm text-[var(--ui-text-muted)]",
|
|
44
|
+
arrow: "fill-[var(--ui-bg)] stroke-[var(--ui-border)] stroke-1"
|
|
45
|
+
},
|
|
46
|
+
variants: {
|
|
47
|
+
size: {
|
|
48
|
+
sm: { trigger: "min-h-8 text-sm" },
|
|
49
|
+
md: { trigger: "min-h-10" },
|
|
50
|
+
lg: { trigger: "min-h-11 text-base" }
|
|
51
|
+
},
|
|
52
|
+
// Focus-ring color only - the resting ring stays --ui-border regardless
|
|
53
|
+
// of `color`, matching Input's own scope (see input.ts).
|
|
54
|
+
color: {
|
|
55
|
+
primary: { trigger: "focus:ring-[var(--ui-primary)] focus-within:ring-[var(--ui-primary)] data-[state=open]:ring-[var(--ui-primary)]" },
|
|
56
|
+
neutral: { trigger: "focus:ring-[var(--ui-bg-inverted)] focus-within:ring-[var(--ui-bg-inverted)] data-[state=open]:ring-[var(--ui-bg-inverted)]" },
|
|
57
|
+
secondary: { trigger: "focus:ring-[var(--ui-secondary)] focus-within:ring-[var(--ui-secondary)] data-[state=open]:ring-[var(--ui-secondary)]" },
|
|
58
|
+
success: { trigger: "focus:ring-[var(--ui-success)] focus-within:ring-[var(--ui-success)] data-[state=open]:ring-[var(--ui-success)]" },
|
|
59
|
+
danger: { trigger: "focus:ring-[var(--ui-danger)] focus-within:ring-[var(--ui-danger)] data-[state=open]:ring-[var(--ui-danger)]" },
|
|
60
|
+
info: { trigger: "focus:ring-[var(--ui-info)] focus-within:ring-[var(--ui-info)] data-[state=open]:ring-[var(--ui-info)]" },
|
|
61
|
+
warning: { trigger: "focus:ring-[var(--ui-warning)] focus-within:ring-[var(--ui-warning)] data-[state=open]:ring-[var(--ui-warning)]" }
|
|
62
|
+
},
|
|
63
|
+
// Declared last (after color) so tailwind-merge lets its own ring
|
|
64
|
+
// overrides win over color's - see input.ts for why declaration order
|
|
65
|
+
// (not runtime call order) is what decides this.
|
|
66
|
+
invalid: {
|
|
67
|
+
true: { trigger: "ring-[var(--ui-danger)] hover:ring-[var(--ui-danger)] focus:ring-[var(--ui-danger)] focus-within:ring-[var(--ui-danger)] data-[state=open]:ring-[var(--ui-danger)]" }
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
defaultVariants: {
|
|
71
|
+
size: "md",
|
|
72
|
+
color: "primary"
|
|
73
|
+
}
|
|
74
|
+
});
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
export declare const separatorTheme: import("tailwind-variants").TVReturnType<{
|
|
2
|
+
orientation: {
|
|
3
|
+
horizontal: {
|
|
4
|
+
root: string;
|
|
5
|
+
line: string;
|
|
6
|
+
};
|
|
7
|
+
vertical: {
|
|
8
|
+
root: string;
|
|
9
|
+
line: string;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
variant: {
|
|
13
|
+
solid: {
|
|
14
|
+
line: string;
|
|
15
|
+
};
|
|
16
|
+
dashed: {
|
|
17
|
+
line: string;
|
|
18
|
+
};
|
|
19
|
+
dotted: {
|
|
20
|
+
line: string;
|
|
21
|
+
};
|
|
22
|
+
double: {
|
|
23
|
+
line: string;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
color: {
|
|
27
|
+
neutral: {
|
|
28
|
+
line: string;
|
|
29
|
+
};
|
|
30
|
+
primary: {
|
|
31
|
+
line: string;
|
|
32
|
+
};
|
|
33
|
+
secondary: {
|
|
34
|
+
line: string;
|
|
35
|
+
};
|
|
36
|
+
success: {
|
|
37
|
+
line: string;
|
|
38
|
+
};
|
|
39
|
+
danger: {
|
|
40
|
+
line: string;
|
|
41
|
+
};
|
|
42
|
+
info: {
|
|
43
|
+
line: string;
|
|
44
|
+
};
|
|
45
|
+
warning: {
|
|
46
|
+
line: string;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
}, {
|
|
50
|
+
root: string;
|
|
51
|
+
line: string;
|
|
52
|
+
label: string;
|
|
53
|
+
}, undefined, {
|
|
54
|
+
orientation: {
|
|
55
|
+
horizontal: {
|
|
56
|
+
root: string;
|
|
57
|
+
line: string;
|
|
58
|
+
};
|
|
59
|
+
vertical: {
|
|
60
|
+
root: string;
|
|
61
|
+
line: string;
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
variant: {
|
|
65
|
+
solid: {
|
|
66
|
+
line: string;
|
|
67
|
+
};
|
|
68
|
+
dashed: {
|
|
69
|
+
line: string;
|
|
70
|
+
};
|
|
71
|
+
dotted: {
|
|
72
|
+
line: string;
|
|
73
|
+
};
|
|
74
|
+
double: {
|
|
75
|
+
line: string;
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
color: {
|
|
79
|
+
neutral: {
|
|
80
|
+
line: string;
|
|
81
|
+
};
|
|
82
|
+
primary: {
|
|
83
|
+
line: string;
|
|
84
|
+
};
|
|
85
|
+
secondary: {
|
|
86
|
+
line: string;
|
|
87
|
+
};
|
|
88
|
+
success: {
|
|
89
|
+
line: string;
|
|
90
|
+
};
|
|
91
|
+
danger: {
|
|
92
|
+
line: string;
|
|
93
|
+
};
|
|
94
|
+
info: {
|
|
95
|
+
line: string;
|
|
96
|
+
};
|
|
97
|
+
warning: {
|
|
98
|
+
line: string;
|
|
99
|
+
};
|
|
100
|
+
};
|
|
101
|
+
}, {
|
|
102
|
+
root: string;
|
|
103
|
+
line: string;
|
|
104
|
+
label: string;
|
|
105
|
+
}, import("tailwind-variants").TVReturnTypeLike<{
|
|
106
|
+
orientation: {
|
|
107
|
+
horizontal: {
|
|
108
|
+
root: string;
|
|
109
|
+
line: string;
|
|
110
|
+
};
|
|
111
|
+
vertical: {
|
|
112
|
+
root: string;
|
|
113
|
+
line: string;
|
|
114
|
+
};
|
|
115
|
+
};
|
|
116
|
+
variant: {
|
|
117
|
+
solid: {
|
|
118
|
+
line: string;
|
|
119
|
+
};
|
|
120
|
+
dashed: {
|
|
121
|
+
line: string;
|
|
122
|
+
};
|
|
123
|
+
dotted: {
|
|
124
|
+
line: string;
|
|
125
|
+
};
|
|
126
|
+
double: {
|
|
127
|
+
line: string;
|
|
128
|
+
};
|
|
129
|
+
};
|
|
130
|
+
color: {
|
|
131
|
+
neutral: {
|
|
132
|
+
line: string;
|
|
133
|
+
};
|
|
134
|
+
primary: {
|
|
135
|
+
line: string;
|
|
136
|
+
};
|
|
137
|
+
secondary: {
|
|
138
|
+
line: string;
|
|
139
|
+
};
|
|
140
|
+
success: {
|
|
141
|
+
line: string;
|
|
142
|
+
};
|
|
143
|
+
danger: {
|
|
144
|
+
line: string;
|
|
145
|
+
};
|
|
146
|
+
info: {
|
|
147
|
+
line: string;
|
|
148
|
+
};
|
|
149
|
+
warning: {
|
|
150
|
+
line: string;
|
|
151
|
+
};
|
|
152
|
+
};
|
|
153
|
+
}, {
|
|
154
|
+
root: string;
|
|
155
|
+
line: string;
|
|
156
|
+
label: string;
|
|
157
|
+
}>>;
|
|
158
|
+
export type SeparatorThemeSlots = keyof (typeof separatorTheme)['slots'];
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { tv } from "tailwind-variants";
|
|
2
|
+
export const separatorTheme = tv({
|
|
3
|
+
slots: {
|
|
4
|
+
root: "flex shrink-0 items-center",
|
|
5
|
+
// A zero-size box with a themed border on the relevant side, not a
|
|
6
|
+
// background fill - a background-color only ever looks solid
|
|
7
|
+
// regardless of variant, and dashed/dotted need a real border-style
|
|
8
|
+
// to render at all. flex-1 - with no label this is the only child,
|
|
9
|
+
// so it alone fills the root's full length and looks identical to a
|
|
10
|
+
// plain bar; with a label, a second one of these renders after it
|
|
11
|
+
// (see Separator.vue), splitting the available space evenly on both
|
|
12
|
+
// sides of the text.
|
|
13
|
+
line: "shrink-0 border-[var(--ui-border)]",
|
|
14
|
+
// Always muted, independent of `color` - a colored line with
|
|
15
|
+
// matching bright label text reads as garish rather than
|
|
16
|
+
// informative; the label stays legible/neutral regardless of how
|
|
17
|
+
// much the line itself is emphasized.
|
|
18
|
+
label: "shrink-0 px-2 text-xs text-[var(--ui-text-muted)] whitespace-nowrap"
|
|
19
|
+
},
|
|
20
|
+
variants: {
|
|
21
|
+
orientation: {
|
|
22
|
+
horizontal: { root: "w-full flex-row", line: "h-0 flex-1 border-t" },
|
|
23
|
+
vertical: { root: "h-full flex-col", line: "w-0 flex-1 border-l" }
|
|
24
|
+
},
|
|
25
|
+
variant: {
|
|
26
|
+
solid: { line: "border-solid" },
|
|
27
|
+
dashed: { line: "border-dashed" },
|
|
28
|
+
dotted: { line: "border-dotted" },
|
|
29
|
+
// CSS's own double border-style needs real width to show two
|
|
30
|
+
// distinct lines at all - at the 1px default the two lines and
|
|
31
|
+
// the gap between them have no room to render separately, so this
|
|
32
|
+
// also widens the border (see the compoundVariants below, one per
|
|
33
|
+
// orientation since the thickened side differs).
|
|
34
|
+
double: { line: "border-double" }
|
|
35
|
+
},
|
|
36
|
+
// Unlike Input/PinInput's own `color` (focus-ring only), the line is
|
|
37
|
+
// always visible with no interactive state to gate a color reveal
|
|
38
|
+
// behind - it just tints directly. `neutral` here means the same
|
|
39
|
+
// subtle --ui-border this component always used, not the bold
|
|
40
|
+
// --ui-bg-inverted "neutral" means elsewhere (Checkbox, Slider, ...) -
|
|
41
|
+
// a divider's own default has to stay subtle, matching precedent for
|
|
42
|
+
// "neutral" carrying whatever's contextually right per component
|
|
43
|
+
// (Badge's own soft variant does the same with --ui-bg-elevated).
|
|
44
|
+
color: {
|
|
45
|
+
neutral: { line: "border-[var(--ui-border)]" },
|
|
46
|
+
primary: { line: "border-[var(--ui-primary)]" },
|
|
47
|
+
secondary: { line: "border-[var(--ui-secondary)]" },
|
|
48
|
+
success: { line: "border-[var(--ui-success)]" },
|
|
49
|
+
danger: { line: "border-[var(--ui-danger)]" },
|
|
50
|
+
info: { line: "border-[var(--ui-info)]" },
|
|
51
|
+
warning: { line: "border-[var(--ui-warning)]" }
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
compoundVariants: [
|
|
55
|
+
{ variant: "double", orientation: "horizontal", class: { line: "border-t-[3px]" } },
|
|
56
|
+
{ variant: "double", orientation: "vertical", class: { line: "border-l-[3px]" } }
|
|
57
|
+
],
|
|
58
|
+
defaultVariants: {
|
|
59
|
+
orientation: "horizontal",
|
|
60
|
+
variant: "solid",
|
|
61
|
+
color: "neutral"
|
|
62
|
+
}
|
|
63
|
+
});
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export declare const skeletonTheme: import("tailwind-variants").TVReturnType<{
|
|
2
|
+
animation: {
|
|
3
|
+
pulse: {
|
|
4
|
+
base: string;
|
|
5
|
+
};
|
|
6
|
+
shimmer: {
|
|
7
|
+
base: string;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
}, {
|
|
11
|
+
base: string;
|
|
12
|
+
}, undefined, {
|
|
13
|
+
animation: {
|
|
14
|
+
pulse: {
|
|
15
|
+
base: string;
|
|
16
|
+
};
|
|
17
|
+
shimmer: {
|
|
18
|
+
base: string;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
}, {
|
|
22
|
+
base: string;
|
|
23
|
+
}, import("tailwind-variants").TVReturnTypeLike<{
|
|
24
|
+
animation: {
|
|
25
|
+
pulse: {
|
|
26
|
+
base: string;
|
|
27
|
+
};
|
|
28
|
+
shimmer: {
|
|
29
|
+
base: string;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
}, {
|
|
33
|
+
base: string;
|
|
34
|
+
}>>;
|
|
35
|
+
export type SkeletonThemeSlots = keyof (typeof skeletonTheme)['slots'];
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { tv } from "tailwind-variants";
|
|
2
|
+
export const skeletonTheme = tv({
|
|
3
|
+
slots: {
|
|
4
|
+
// --ui-bg-elevated (neutral-50) reads as barely-off-white against the
|
|
5
|
+
// page background it's normally shown on - fine for a soft surface
|
|
6
|
+
// tint, but a loading placeholder needs to actually be visible.
|
|
7
|
+
// --ui-border is the same "visible neutral block on white" token
|
|
8
|
+
// Slider's own track already uses for the identical reason.
|
|
9
|
+
base: "block rounded-[var(--ui-radius-md)] bg-[var(--ui-border)]"
|
|
10
|
+
},
|
|
11
|
+
variants: {
|
|
12
|
+
animation: {
|
|
13
|
+
pulse: { base: "animate-pulse" },
|
|
14
|
+
// Tailwind has no built-in gradient-sweep utility (unlike pulse's
|
|
15
|
+
// animate-pulse) - the keyframe itself lives in theme.css, next to
|
|
16
|
+
// the other custom animations (selaras-ripple, selaras-accordion-*).
|
|
17
|
+
// A 200%-wide gradient slides across the block's own width via
|
|
18
|
+
// background-position, giving the light band somewhere to travel.
|
|
19
|
+
shimmer: {
|
|
20
|
+
base: "bg-[linear-gradient(90deg,var(--ui-border)_25%,var(--ui-border-hover)_50%,var(--ui-border)_75%)] bg-[length:200%_100%] animate-[selaras-skeleton-shimmer_1.6s_ease-in-out_infinite]"
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
defaultVariants: {
|
|
25
|
+
animation: "pulse"
|
|
26
|
+
}
|
|
27
|
+
});
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
export declare const slideoverTheme: import("tailwind-variants").TVReturnType<{
|
|
2
|
+
side: {
|
|
3
|
+
top: {
|
|
4
|
+
content: string;
|
|
5
|
+
};
|
|
6
|
+
bottom: {
|
|
7
|
+
content: string;
|
|
8
|
+
};
|
|
9
|
+
left: {
|
|
10
|
+
content: string;
|
|
11
|
+
};
|
|
12
|
+
right: {
|
|
13
|
+
content: string;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
inset: {
|
|
17
|
+
true: {
|
|
18
|
+
content: string;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
transition: {
|
|
22
|
+
true: {
|
|
23
|
+
overlay: string;
|
|
24
|
+
};
|
|
25
|
+
false: {};
|
|
26
|
+
};
|
|
27
|
+
}, {
|
|
28
|
+
overlay: string;
|
|
29
|
+
content: string;
|
|
30
|
+
header: string;
|
|
31
|
+
title: string;
|
|
32
|
+
description: string;
|
|
33
|
+
close: string;
|
|
34
|
+
body: string;
|
|
35
|
+
footer: string;
|
|
36
|
+
}, undefined, {
|
|
37
|
+
side: {
|
|
38
|
+
top: {
|
|
39
|
+
content: string;
|
|
40
|
+
};
|
|
41
|
+
bottom: {
|
|
42
|
+
content: string;
|
|
43
|
+
};
|
|
44
|
+
left: {
|
|
45
|
+
content: string;
|
|
46
|
+
};
|
|
47
|
+
right: {
|
|
48
|
+
content: string;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
inset: {
|
|
52
|
+
true: {
|
|
53
|
+
content: string;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
transition: {
|
|
57
|
+
true: {
|
|
58
|
+
overlay: string;
|
|
59
|
+
};
|
|
60
|
+
false: {};
|
|
61
|
+
};
|
|
62
|
+
}, {
|
|
63
|
+
overlay: string;
|
|
64
|
+
content: string;
|
|
65
|
+
header: string;
|
|
66
|
+
title: string;
|
|
67
|
+
description: string;
|
|
68
|
+
close: string;
|
|
69
|
+
body: string;
|
|
70
|
+
footer: string;
|
|
71
|
+
}, import("tailwind-variants").TVReturnTypeLike<{
|
|
72
|
+
side: {
|
|
73
|
+
top: {
|
|
74
|
+
content: string;
|
|
75
|
+
};
|
|
76
|
+
bottom: {
|
|
77
|
+
content: string;
|
|
78
|
+
};
|
|
79
|
+
left: {
|
|
80
|
+
content: string;
|
|
81
|
+
};
|
|
82
|
+
right: {
|
|
83
|
+
content: string;
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
inset: {
|
|
87
|
+
true: {
|
|
88
|
+
content: string;
|
|
89
|
+
};
|
|
90
|
+
};
|
|
91
|
+
transition: {
|
|
92
|
+
true: {
|
|
93
|
+
overlay: string;
|
|
94
|
+
};
|
|
95
|
+
false: {};
|
|
96
|
+
};
|
|
97
|
+
}, {
|
|
98
|
+
overlay: string;
|
|
99
|
+
content: string;
|
|
100
|
+
header: string;
|
|
101
|
+
title: string;
|
|
102
|
+
description: string;
|
|
103
|
+
close: string;
|
|
104
|
+
body: string;
|
|
105
|
+
footer: string;
|
|
106
|
+
}>>;
|
|
107
|
+
export type SlideoverThemeSlots = keyof (typeof slideoverTheme)['slots'];
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { tv } from "tailwind-variants";
|
|
2
|
+
export const slideoverTheme = tv({
|
|
3
|
+
slots: {
|
|
4
|
+
overlay: "fixed inset-0 z-[var(--ui-z-modal-overlay)] bg-black/50",
|
|
5
|
+
content: "fixed z-[var(--ui-z-modal)] flex flex-col bg-[var(--ui-bg)] shadow-[var(--ui-shadow-lg)] focus:outline-none",
|
|
6
|
+
header: "flex items-start justify-between gap-4 p-4 sm:px-6",
|
|
7
|
+
title: "text-base font-semibold text-[var(--ui-text)]",
|
|
8
|
+
description: "mt-1 text-sm text-[var(--ui-text-muted)]",
|
|
9
|
+
close: "shrink-0 rounded-full",
|
|
10
|
+
body: "flex-1 overflow-y-auto p-4 sm:px-6",
|
|
11
|
+
footer: "flex items-center justify-end gap-2 p-4 sm:px-6"
|
|
12
|
+
},
|
|
13
|
+
variants: {
|
|
14
|
+
// Deliberately no height/width here for any side - inset-x-*/inset-y-*
|
|
15
|
+
// below (varying by `inset`) supply both edges and let the browser
|
|
16
|
+
// derive the size implicitly. Setting an explicit h-full/w-full here
|
|
17
|
+
// too would over-constrain the box: for a fixed element with top,
|
|
18
|
+
// bottom, AND height all specified, height wins and the browser
|
|
19
|
+
// recomputes bottom from it - silently discarding inset-y-4's margin
|
|
20
|
+
// and letting the panel overflow past the viewport edge. Found via a
|
|
21
|
+
// real browser check on the inset example (side=right defaulted):
|
|
22
|
+
// the panel's own bottom sat 16px past the viewport bottom, exactly
|
|
23
|
+
// matching inset-y-4's 16px top offset carried straight through to
|
|
24
|
+
// an unconstrained h-full height.
|
|
25
|
+
side: {
|
|
26
|
+
top: { content: "" },
|
|
27
|
+
bottom: { content: "" },
|
|
28
|
+
left: { content: "max-w-md" },
|
|
29
|
+
right: { content: "max-w-md" }
|
|
30
|
+
},
|
|
31
|
+
inset: {
|
|
32
|
+
true: { content: "rounded-[var(--ui-radius-lg)] ring-1 ring-[var(--ui-border)]" }
|
|
33
|
+
},
|
|
34
|
+
// The animation classes live entirely in this variant (and the
|
|
35
|
+
// compoundVariants below) rather than the base slot strings above -
|
|
36
|
+
// see modal.ts for why: tailwind-merge doesn't recognize
|
|
37
|
+
// animate-in/animate-none as a conflicting pair, so keeping both
|
|
38
|
+
// states' full class sets inside the variant avoids that entirely.
|
|
39
|
+
transition: {
|
|
40
|
+
true: { overlay: "data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=closed]:animate-out data-[state=closed]:fade-out-0" },
|
|
41
|
+
false: {}
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
compoundVariants: [
|
|
45
|
+
{ side: "top", inset: true, class: { content: "inset-x-4 top-4 max-h-[calc(100%-2rem)]" } },
|
|
46
|
+
{ side: "top", inset: false, class: { content: "inset-x-0 top-0 max-h-full" } },
|
|
47
|
+
{ side: "bottom", inset: true, class: { content: "inset-x-4 bottom-4 max-h-[calc(100%-2rem)]" } },
|
|
48
|
+
{ side: "bottom", inset: false, class: { content: "inset-x-0 bottom-0 max-h-full" } },
|
|
49
|
+
{ side: "left", inset: true, class: { content: "inset-y-4 left-4 w-[calc(100%-2rem)]" } },
|
|
50
|
+
{ side: "left", inset: false, class: { content: "inset-y-0 left-0 w-full" } },
|
|
51
|
+
{ side: "right", inset: true, class: { content: "inset-y-4 right-4 w-[calc(100%-2rem)]" } },
|
|
52
|
+
{ side: "right", inset: false, class: { content: "inset-y-0 right-0 w-full" } },
|
|
53
|
+
{ side: "top", transition: true, class: { content: "data-[state=open]:animate-in data-[state=open]:slide-in-from-top-full data-[state=closed]:animate-out data-[state=closed]:slide-out-to-top-full" } },
|
|
54
|
+
{ side: "bottom", transition: true, class: { content: "data-[state=open]:animate-in data-[state=open]:slide-in-from-bottom-full data-[state=closed]:animate-out data-[state=closed]:slide-out-to-bottom-full" } },
|
|
55
|
+
{ side: "left", transition: true, class: { content: "data-[state=open]:animate-in data-[state=open]:slide-in-from-left-full data-[state=closed]:animate-out data-[state=closed]:slide-out-to-left-full" } },
|
|
56
|
+
{ side: "right", transition: true, class: { content: "data-[state=open]:animate-in data-[state=open]:slide-in-from-right-full data-[state=closed]:animate-out data-[state=closed]:slide-out-to-right-full" } }
|
|
57
|
+
],
|
|
58
|
+
defaultVariants: {
|
|
59
|
+
side: "right",
|
|
60
|
+
transition: true
|
|
61
|
+
}
|
|
62
|
+
});
|