@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,106 @@
|
|
|
1
|
+
import { tv } from "tailwind-variants";
|
|
2
|
+
export const stepperTheme = tv({
|
|
3
|
+
slots: {
|
|
4
|
+
root: "flex w-full items-start",
|
|
5
|
+
// flex-1 (not sized to its own content) - items sit edge-to-edge with
|
|
6
|
+
// no gap between them so the separator living inside the *current*
|
|
7
|
+
// item's own connector (see below - Reka's StepperSeparator injects
|
|
8
|
+
// that item's own context, so it can't be a root-level sibling) can
|
|
9
|
+
// visually reach all the way to the next item's indicator.
|
|
10
|
+
item: "flex flex-1 flex-col items-center gap-2 text-center",
|
|
11
|
+
// Anchors the indicator at the item's own true center (`justify-center`,
|
|
12
|
+
// horizontal mode) - `labels` below centers within this same `item`
|
|
13
|
+
// column, so both need the *same* horizontal anchor to line up. Also
|
|
14
|
+
// the positioning context for the separator, which is taken out of
|
|
15
|
+
// flow entirely (see its own comment) rather than laid out as a flex
|
|
16
|
+
// sibling here, precisely so it can't push the indicator off-center.
|
|
17
|
+
connector: "relative flex items-center",
|
|
18
|
+
trigger: "shrink-0 rounded-full focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--ui-primary)] focus-visible:ring-offset-2 focus-visible:ring-offset-[var(--ui-bg)] disabled:opacity-50 disabled:pointer-events-none",
|
|
19
|
+
indicator: "relative z-10 flex shrink-0 items-center justify-center rounded-full bg-[var(--ui-bg)] font-medium text-[var(--ui-text-muted)] ring-2 ring-[var(--ui-border)] transition-colors",
|
|
20
|
+
icon: "shrink-0",
|
|
21
|
+
labels: "flex flex-col",
|
|
22
|
+
title: "text-sm font-medium text-[var(--ui-text)]",
|
|
23
|
+
description: "text-xs text-[var(--ui-text-muted)]",
|
|
24
|
+
// bg-border by default, switching to the color's own solid shade via
|
|
25
|
+
// data-[state=completed] (set by Reka from the *preceding* item's own
|
|
26
|
+
// state) - that's what makes the line "fill in" as steps complete.
|
|
27
|
+
separator: "absolute bg-[var(--ui-border)] transition-colors"
|
|
28
|
+
},
|
|
29
|
+
variants: {
|
|
30
|
+
orientation: {
|
|
31
|
+
horizontal: {
|
|
32
|
+
root: "flex-row",
|
|
33
|
+
connector: "w-full justify-center",
|
|
34
|
+
// Every item is an equal-width flex-1 column, so a line starting
|
|
35
|
+
// at *this* item's own center (start-1/2, matching connector's own
|
|
36
|
+
// justify-center anchor above) and spanning one more full item-
|
|
37
|
+
// width (w-full, relative to this same connector) lands exactly
|
|
38
|
+
// on the *next* item's center - reaching a correctly-centered
|
|
39
|
+
// indicator there regardless of either item's own label width.
|
|
40
|
+
// A logical `start` (not physical `left`) so it still reaches
|
|
41
|
+
// forward - not backward - once flex-row's own item order flips
|
|
42
|
+
// under `dir="rtl"`.
|
|
43
|
+
separator: "start-1/2 top-1/2 h-0.5 w-full -translate-y-1/2"
|
|
44
|
+
},
|
|
45
|
+
vertical: {
|
|
46
|
+
// No items-start here (default align-items: stretch) - connector
|
|
47
|
+
// and labels are the item's only two children, and connector
|
|
48
|
+
// needs to stretch to the item's full row height for the
|
|
49
|
+
// separator below to have real height to grow into. labels opts
|
|
50
|
+
// back out of that stretch itself (self-start below).
|
|
51
|
+
root: "flex-col",
|
|
52
|
+
item: "w-full flex-row gap-3 text-start",
|
|
53
|
+
connector: "w-auto flex-col",
|
|
54
|
+
// Extra bottom padding gives the connecting line a decent
|
|
55
|
+
// minimum length even for a single short line of title text.
|
|
56
|
+
labels: "shrink-0 self-start pb-6",
|
|
57
|
+
// Items can differ in height (description length varies), so
|
|
58
|
+
// horizontal's own "reaches exactly the next center" trick
|
|
59
|
+
// doesn't transfer - a real in-flow flex-1 line stretching to
|
|
60
|
+
// fill whatever height the (stretched) connector column has is
|
|
61
|
+
// the more robust fit here.
|
|
62
|
+
separator: "relative w-0.5 min-h-6 flex-1"
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
size: {
|
|
66
|
+
sm: { indicator: "size-6 text-xs", title: "text-xs", description: "text-xs" },
|
|
67
|
+
md: { indicator: "size-8 text-sm", title: "text-sm", description: "text-xs" },
|
|
68
|
+
lg: { indicator: "size-10 text-base", title: "text-base", description: "text-sm" }
|
|
69
|
+
},
|
|
70
|
+
color: {
|
|
71
|
+
primary: {
|
|
72
|
+
indicator: "data-[state=active]:ring-[var(--ui-primary)] data-[state=active]:text-[var(--ui-primary)] data-[state=completed]:bg-[var(--ui-primary)] data-[state=completed]:ring-[var(--ui-primary)] data-[state=completed]:text-[var(--ui-primary-foreground)]",
|
|
73
|
+
separator: "data-[state=completed]:bg-[var(--ui-primary)]"
|
|
74
|
+
},
|
|
75
|
+
neutral: {
|
|
76
|
+
indicator: "data-[state=active]:ring-[var(--ui-bg-inverted)] data-[state=active]:text-[var(--ui-text)] data-[state=completed]:bg-[var(--ui-bg-inverted)] data-[state=completed]:ring-[var(--ui-bg-inverted)] data-[state=completed]:text-[var(--ui-text-inverted)]",
|
|
77
|
+
separator: "data-[state=completed]:bg-[var(--ui-bg-inverted)]"
|
|
78
|
+
},
|
|
79
|
+
secondary: {
|
|
80
|
+
indicator: "data-[state=active]:ring-[var(--ui-secondary)] data-[state=active]:text-[var(--ui-secondary)] data-[state=completed]:bg-[var(--ui-secondary)] data-[state=completed]:ring-[var(--ui-secondary)] data-[state=completed]:text-[var(--ui-secondary-foreground)]",
|
|
81
|
+
separator: "data-[state=completed]:bg-[var(--ui-secondary)]"
|
|
82
|
+
},
|
|
83
|
+
success: {
|
|
84
|
+
indicator: "data-[state=active]:ring-[var(--ui-success)] data-[state=active]:text-[var(--ui-success)] data-[state=completed]:bg-[var(--ui-success)] data-[state=completed]:ring-[var(--ui-success)] data-[state=completed]:text-[var(--ui-success-foreground)]",
|
|
85
|
+
separator: "data-[state=completed]:bg-[var(--ui-success)]"
|
|
86
|
+
},
|
|
87
|
+
danger: {
|
|
88
|
+
indicator: "data-[state=active]:ring-[var(--ui-danger)] data-[state=active]:text-[var(--ui-danger)] data-[state=completed]:bg-[var(--ui-danger)] data-[state=completed]:ring-[var(--ui-danger)] data-[state=completed]:text-[var(--ui-danger-foreground)]",
|
|
89
|
+
separator: "data-[state=completed]:bg-[var(--ui-danger)]"
|
|
90
|
+
},
|
|
91
|
+
info: {
|
|
92
|
+
indicator: "data-[state=active]:ring-[var(--ui-info)] data-[state=active]:text-[var(--ui-info)] data-[state=completed]:bg-[var(--ui-info)] data-[state=completed]:ring-[var(--ui-info)] data-[state=completed]:text-[var(--ui-info-foreground)]",
|
|
93
|
+
separator: "data-[state=completed]:bg-[var(--ui-info)]"
|
|
94
|
+
},
|
|
95
|
+
warning: {
|
|
96
|
+
indicator: "data-[state=active]:ring-[var(--ui-warning)] data-[state=active]:text-[var(--ui-warning)] data-[state=completed]:bg-[var(--ui-warning)] data-[state=completed]:ring-[var(--ui-warning)] data-[state=completed]:text-[var(--ui-warning-foreground)]",
|
|
97
|
+
separator: "data-[state=completed]:bg-[var(--ui-warning)]"
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
defaultVariants: {
|
|
102
|
+
orientation: "horizontal",
|
|
103
|
+
size: "md",
|
|
104
|
+
color: "primary"
|
|
105
|
+
}
|
|
106
|
+
});
|
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
export declare const switchTheme: import("tailwind-variants").TVReturnType<{
|
|
2
|
+
color: {
|
|
3
|
+
primary: {
|
|
4
|
+
track: string;
|
|
5
|
+
thumb: string;
|
|
6
|
+
};
|
|
7
|
+
neutral: {
|
|
8
|
+
track: string;
|
|
9
|
+
thumb: string;
|
|
10
|
+
};
|
|
11
|
+
secondary: {
|
|
12
|
+
track: string;
|
|
13
|
+
thumb: string;
|
|
14
|
+
};
|
|
15
|
+
success: {
|
|
16
|
+
track: string;
|
|
17
|
+
thumb: string;
|
|
18
|
+
};
|
|
19
|
+
danger: {
|
|
20
|
+
track: string;
|
|
21
|
+
thumb: string;
|
|
22
|
+
};
|
|
23
|
+
info: {
|
|
24
|
+
track: string;
|
|
25
|
+
thumb: string;
|
|
26
|
+
};
|
|
27
|
+
warning: {
|
|
28
|
+
track: string;
|
|
29
|
+
thumb: string;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
size: {
|
|
33
|
+
sm: {
|
|
34
|
+
track: string;
|
|
35
|
+
thumb: string;
|
|
36
|
+
icon: string;
|
|
37
|
+
label: string;
|
|
38
|
+
description: string;
|
|
39
|
+
};
|
|
40
|
+
md: {
|
|
41
|
+
track: string;
|
|
42
|
+
thumb: string;
|
|
43
|
+
icon: string;
|
|
44
|
+
label: string;
|
|
45
|
+
description: string;
|
|
46
|
+
};
|
|
47
|
+
lg: {
|
|
48
|
+
track: string;
|
|
49
|
+
thumb: string;
|
|
50
|
+
icon: string;
|
|
51
|
+
label: string;
|
|
52
|
+
description: string;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
invalid: {
|
|
56
|
+
true: {
|
|
57
|
+
track: string;
|
|
58
|
+
thumb: string;
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
}, {
|
|
62
|
+
root: string;
|
|
63
|
+
track: string;
|
|
64
|
+
thumb: string;
|
|
65
|
+
icon: string;
|
|
66
|
+
label: string;
|
|
67
|
+
description: string;
|
|
68
|
+
labelGroup: string;
|
|
69
|
+
}, undefined, {
|
|
70
|
+
color: {
|
|
71
|
+
primary: {
|
|
72
|
+
track: string;
|
|
73
|
+
thumb: string;
|
|
74
|
+
};
|
|
75
|
+
neutral: {
|
|
76
|
+
track: string;
|
|
77
|
+
thumb: string;
|
|
78
|
+
};
|
|
79
|
+
secondary: {
|
|
80
|
+
track: string;
|
|
81
|
+
thumb: string;
|
|
82
|
+
};
|
|
83
|
+
success: {
|
|
84
|
+
track: string;
|
|
85
|
+
thumb: string;
|
|
86
|
+
};
|
|
87
|
+
danger: {
|
|
88
|
+
track: string;
|
|
89
|
+
thumb: string;
|
|
90
|
+
};
|
|
91
|
+
info: {
|
|
92
|
+
track: string;
|
|
93
|
+
thumb: string;
|
|
94
|
+
};
|
|
95
|
+
warning: {
|
|
96
|
+
track: string;
|
|
97
|
+
thumb: string;
|
|
98
|
+
};
|
|
99
|
+
};
|
|
100
|
+
size: {
|
|
101
|
+
sm: {
|
|
102
|
+
track: string;
|
|
103
|
+
thumb: string;
|
|
104
|
+
icon: string;
|
|
105
|
+
label: string;
|
|
106
|
+
description: string;
|
|
107
|
+
};
|
|
108
|
+
md: {
|
|
109
|
+
track: string;
|
|
110
|
+
thumb: string;
|
|
111
|
+
icon: string;
|
|
112
|
+
label: string;
|
|
113
|
+
description: string;
|
|
114
|
+
};
|
|
115
|
+
lg: {
|
|
116
|
+
track: string;
|
|
117
|
+
thumb: string;
|
|
118
|
+
icon: string;
|
|
119
|
+
label: string;
|
|
120
|
+
description: string;
|
|
121
|
+
};
|
|
122
|
+
};
|
|
123
|
+
invalid: {
|
|
124
|
+
true: {
|
|
125
|
+
track: string;
|
|
126
|
+
thumb: string;
|
|
127
|
+
};
|
|
128
|
+
};
|
|
129
|
+
}, {
|
|
130
|
+
root: string;
|
|
131
|
+
track: string;
|
|
132
|
+
thumb: string;
|
|
133
|
+
icon: string;
|
|
134
|
+
label: string;
|
|
135
|
+
description: string;
|
|
136
|
+
labelGroup: string;
|
|
137
|
+
}, import("tailwind-variants").TVReturnTypeLike<{
|
|
138
|
+
color: {
|
|
139
|
+
primary: {
|
|
140
|
+
track: string;
|
|
141
|
+
thumb: string;
|
|
142
|
+
};
|
|
143
|
+
neutral: {
|
|
144
|
+
track: string;
|
|
145
|
+
thumb: string;
|
|
146
|
+
};
|
|
147
|
+
secondary: {
|
|
148
|
+
track: string;
|
|
149
|
+
thumb: string;
|
|
150
|
+
};
|
|
151
|
+
success: {
|
|
152
|
+
track: string;
|
|
153
|
+
thumb: string;
|
|
154
|
+
};
|
|
155
|
+
danger: {
|
|
156
|
+
track: string;
|
|
157
|
+
thumb: string;
|
|
158
|
+
};
|
|
159
|
+
info: {
|
|
160
|
+
track: string;
|
|
161
|
+
thumb: string;
|
|
162
|
+
};
|
|
163
|
+
warning: {
|
|
164
|
+
track: string;
|
|
165
|
+
thumb: string;
|
|
166
|
+
};
|
|
167
|
+
};
|
|
168
|
+
size: {
|
|
169
|
+
sm: {
|
|
170
|
+
track: string;
|
|
171
|
+
thumb: string;
|
|
172
|
+
icon: string;
|
|
173
|
+
label: string;
|
|
174
|
+
description: string;
|
|
175
|
+
};
|
|
176
|
+
md: {
|
|
177
|
+
track: string;
|
|
178
|
+
thumb: string;
|
|
179
|
+
icon: string;
|
|
180
|
+
label: string;
|
|
181
|
+
description: string;
|
|
182
|
+
};
|
|
183
|
+
lg: {
|
|
184
|
+
track: string;
|
|
185
|
+
thumb: string;
|
|
186
|
+
icon: string;
|
|
187
|
+
label: string;
|
|
188
|
+
description: string;
|
|
189
|
+
};
|
|
190
|
+
};
|
|
191
|
+
invalid: {
|
|
192
|
+
true: {
|
|
193
|
+
track: string;
|
|
194
|
+
thumb: string;
|
|
195
|
+
};
|
|
196
|
+
};
|
|
197
|
+
}, {
|
|
198
|
+
root: string;
|
|
199
|
+
track: string;
|
|
200
|
+
thumb: string;
|
|
201
|
+
icon: string;
|
|
202
|
+
label: string;
|
|
203
|
+
description: string;
|
|
204
|
+
labelGroup: string;
|
|
205
|
+
}>>;
|
|
206
|
+
export type SwitchThemeSlots = keyof (typeof switchTheme)['slots'];
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { tv } from "tailwind-variants";
|
|
2
|
+
export const switchTheme = tv({
|
|
3
|
+
slots: {
|
|
4
|
+
root: "inline-flex items-center gap-2 cursor-pointer has-[[data-disabled]]:cursor-not-allowed has-[[data-disabled]]:opacity-50",
|
|
5
|
+
// `group` here, not `isolate` - the track (not the thumb) is the real
|
|
6
|
+
// interactive element (a real <button role="switch">), so the thumb's
|
|
7
|
+
// own hover/focus-visible halo has to react to the TRACK's state via
|
|
8
|
+
// Tailwind's group-*: variants rather than its own :hover/
|
|
9
|
+
// :focus-visible, which would never fire on a plain decorative child.
|
|
10
|
+
// outline-none replaces the old focus-visible:outline box, same as
|
|
11
|
+
// RadioGroup/Checkbox, now that the halo is the focus indicator. Color
|
|
12
|
+
// (the checked-state fill) comes entirely from the `color` variant
|
|
13
|
+
// below now, not hardcoded here - same reasoning as every other
|
|
14
|
+
// themed component that exposes `color`.
|
|
15
|
+
track: "group relative inline-flex h-4.5 w-8 shrink-0 items-center rounded-[var(--ui-radius-full)] bg-[var(--ui-border)] transition-colors focus-visible:outline-none",
|
|
16
|
+
// Track/thumb sized down from the original 40x24/20px to 32x18/16px - a
|
|
17
|
+
// 1px inset on each side at rest (translate-x-px, thumb centered
|
|
18
|
+
// vertically via the track's own items-center), traveling to 15px when
|
|
19
|
+
// checked (32 track - 16 thumb - 1px inset = 15). Same halo mechanism
|
|
20
|
+
// as RadioGroup/Checkbox (see their theme files for the full
|
|
21
|
+
// derivation), rescaled to this thumb's own 16px size (32px halo, -8px
|
|
22
|
+
// inset each side, was -10px at the old 20px size). `relative isolate`
|
|
23
|
+
// still needed here even though hover/focus come from the track
|
|
24
|
+
// (group-hover/group-focus-visible) - the -z-10 pseudo itself still
|
|
25
|
+
// needs its own stacking context to stay scoped to the thumb, not
|
|
26
|
+
// escape past it.
|
|
27
|
+
thumb: "relative isolate flex items-center justify-center size-4 translate-x-px rounded-full bg-white shadow-[var(--ui-shadow-sm)] transition-transform before:absolute before:-inset-[8px] before:-z-10 before:[transform:scale(0)] before:rounded-full before:bg-[var(--ui-border-hover)] before:opacity-35 before:transition-transform before:duration-200 before:content-[''] group-hover:before:[transform:scale(1)] group-focus-visible:before:[transform:scale(1)] data-[state=checked]:translate-x-[15px]",
|
|
28
|
+
// The checked/unchecked/loading glyph rendered inside the thumb -
|
|
29
|
+
// muted gray by default (the thumb itself stays white regardless of
|
|
30
|
+
// `color`, so an icon needs its own contrast rather than inheriting
|
|
31
|
+
// currentColor from a colored parent).
|
|
32
|
+
icon: "size-2.5 text-[var(--ui-text-muted)]",
|
|
33
|
+
label: "select-none text-sm text-[var(--ui-text)]",
|
|
34
|
+
description: "block select-none text-xs text-[var(--ui-text-muted)]",
|
|
35
|
+
// Only rendered when there's a description (wrapping the label and
|
|
36
|
+
// description together so they stack under one another) - same font-
|
|
37
|
+
// baseline correction as RadioGroup's own labelGroup slot (see its
|
|
38
|
+
// theme file for the full derivation): the label text visually sits a
|
|
39
|
+
// bit lower than its own line box's true center, so this nudges the
|
|
40
|
+
// whole block up slightly to compensate.
|
|
41
|
+
labelGroup: "-mt-[2.5px]"
|
|
42
|
+
},
|
|
43
|
+
variants: {
|
|
44
|
+
// Only affects the checked state - unchecked always stays the same
|
|
45
|
+
// neutral border color regardless of `color`, matching how this
|
|
46
|
+
// library's other "off" states (e.g. Chip's unselected variant) never
|
|
47
|
+
// take on the color prop either.
|
|
48
|
+
color: {
|
|
49
|
+
primary: { track: "data-[state=checked]:bg-[var(--ui-primary)]", thumb: "data-[state=checked]:before:bg-[var(--ui-primary)]" },
|
|
50
|
+
neutral: { track: "data-[state=checked]:bg-[var(--ui-bg-inverted)]", thumb: "data-[state=checked]:before:bg-[var(--ui-bg-inverted)]" },
|
|
51
|
+
secondary: { track: "data-[state=checked]:bg-[var(--ui-secondary)]", thumb: "data-[state=checked]:before:bg-[var(--ui-secondary)]" },
|
|
52
|
+
success: { track: "data-[state=checked]:bg-[var(--ui-success)]", thumb: "data-[state=checked]:before:bg-[var(--ui-success)]" },
|
|
53
|
+
danger: { track: "data-[state=checked]:bg-[var(--ui-danger)]", thumb: "data-[state=checked]:before:bg-[var(--ui-danger)]" },
|
|
54
|
+
info: { track: "data-[state=checked]:bg-[var(--ui-info)]", thumb: "data-[state=checked]:before:bg-[var(--ui-info)]" },
|
|
55
|
+
warning: { track: "data-[state=checked]:bg-[var(--ui-warning)]", thumb: "data-[state=checked]:before:bg-[var(--ui-warning)]" }
|
|
56
|
+
},
|
|
57
|
+
// Same +4px-per-step scale RadioGroup's own `size` variant uses (its
|
|
58
|
+
// item goes size-3.5/4.5/5.5 across sm/md/lg) - track/thumb/halo/travel
|
|
59
|
+
// distance all re-derived from that same 1px-inset math at each size
|
|
60
|
+
// (see the `thumb` slot's own comment for the base md derivation).
|
|
61
|
+
size: {
|
|
62
|
+
sm: { track: "h-3.5 w-6", thumb: "size-3 data-[state=checked]:translate-x-[11px] before:-inset-[6px]", icon: "size-2", label: "text-xs", description: "text-xs" },
|
|
63
|
+
md: { track: "h-4.5 w-8", thumb: "size-4 data-[state=checked]:translate-x-[15px] before:-inset-[8px]", icon: "size-2.5", label: "text-sm", description: "text-xs" },
|
|
64
|
+
lg: { track: "h-5.5 w-10", thumb: "size-5 data-[state=checked]:translate-x-[19px] before:-inset-[10px]", icon: "size-3", label: "text-base", description: "text-sm" }
|
|
65
|
+
},
|
|
66
|
+
// Declared last (after color) so tailwind-merge lets its own
|
|
67
|
+
// data-[state=checked] override win over color's - invalid should
|
|
68
|
+
// always show danger regardless of what color was also requested, on
|
|
69
|
+
// the checked track/thumb too, not just via the ring below (which
|
|
70
|
+
// alone would leave an invalid-but-checked switch showing a red ring
|
|
71
|
+
// around an otherwise normally-colored track).
|
|
72
|
+
invalid: {
|
|
73
|
+
// ring rather than an offset outline - the track has no border of
|
|
74
|
+
// its own to recolor (unlike Radio/Checkbox's ring-inset), but an
|
|
75
|
+
// offset outline left a visible gap between it and the pill, unlike
|
|
76
|
+
// every other invalid state in this library, which sits flush.
|
|
77
|
+
true: { track: "ring-2 ring-[var(--ui-danger)] data-[state=checked]:bg-[var(--ui-danger)]", thumb: "data-[state=checked]:before:bg-[var(--ui-danger)]" }
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
defaultVariants: {
|
|
81
|
+
color: "primary",
|
|
82
|
+
size: "md"
|
|
83
|
+
}
|
|
84
|
+
});
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
export declare const tableTheme: import("tailwind-variants").TVReturnType<{
|
|
2
|
+
size: {
|
|
3
|
+
sm: {
|
|
4
|
+
th: string;
|
|
5
|
+
td: string;
|
|
6
|
+
};
|
|
7
|
+
md: {
|
|
8
|
+
th: string;
|
|
9
|
+
td: string;
|
|
10
|
+
};
|
|
11
|
+
lg: {
|
|
12
|
+
th: string;
|
|
13
|
+
td: string;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
gridlines: {
|
|
17
|
+
true: {
|
|
18
|
+
table: string;
|
|
19
|
+
th: string;
|
|
20
|
+
td: string;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
striped: {
|
|
24
|
+
true: {
|
|
25
|
+
table: string;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
scrollable: {
|
|
29
|
+
true: {
|
|
30
|
+
wrapper: string;
|
|
31
|
+
thead: string;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
}, {
|
|
35
|
+
root: string;
|
|
36
|
+
wrapper: string;
|
|
37
|
+
table: string;
|
|
38
|
+
thead: string;
|
|
39
|
+
tr: string;
|
|
40
|
+
th: string;
|
|
41
|
+
thSortable: string;
|
|
42
|
+
sortIcon: string;
|
|
43
|
+
td: string;
|
|
44
|
+
tfoot: string;
|
|
45
|
+
emptyState: string;
|
|
46
|
+
filterInput: string;
|
|
47
|
+
paginationWrapper: string;
|
|
48
|
+
paginationInfo: string;
|
|
49
|
+
paginationButtons: string;
|
|
50
|
+
loadingOverlay: string;
|
|
51
|
+
loadingIcon: string;
|
|
52
|
+
expandButton: string;
|
|
53
|
+
expandChevron: string;
|
|
54
|
+
expandedRow: string;
|
|
55
|
+
expandedCell: string;
|
|
56
|
+
columnToggle: string;
|
|
57
|
+
columnTogglePanel: string;
|
|
58
|
+
columnToggleItem: string;
|
|
59
|
+
}, undefined, {
|
|
60
|
+
size: {
|
|
61
|
+
sm: {
|
|
62
|
+
th: string;
|
|
63
|
+
td: string;
|
|
64
|
+
};
|
|
65
|
+
md: {
|
|
66
|
+
th: string;
|
|
67
|
+
td: string;
|
|
68
|
+
};
|
|
69
|
+
lg: {
|
|
70
|
+
th: string;
|
|
71
|
+
td: string;
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
gridlines: {
|
|
75
|
+
true: {
|
|
76
|
+
table: string;
|
|
77
|
+
th: string;
|
|
78
|
+
td: string;
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
striped: {
|
|
82
|
+
true: {
|
|
83
|
+
table: string;
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
scrollable: {
|
|
87
|
+
true: {
|
|
88
|
+
wrapper: string;
|
|
89
|
+
thead: string;
|
|
90
|
+
};
|
|
91
|
+
};
|
|
92
|
+
}, {
|
|
93
|
+
root: string;
|
|
94
|
+
wrapper: string;
|
|
95
|
+
table: string;
|
|
96
|
+
thead: string;
|
|
97
|
+
tr: string;
|
|
98
|
+
th: string;
|
|
99
|
+
thSortable: string;
|
|
100
|
+
sortIcon: string;
|
|
101
|
+
td: string;
|
|
102
|
+
tfoot: string;
|
|
103
|
+
emptyState: string;
|
|
104
|
+
filterInput: string;
|
|
105
|
+
paginationWrapper: string;
|
|
106
|
+
paginationInfo: string;
|
|
107
|
+
paginationButtons: string;
|
|
108
|
+
loadingOverlay: string;
|
|
109
|
+
loadingIcon: string;
|
|
110
|
+
expandButton: string;
|
|
111
|
+
expandChevron: string;
|
|
112
|
+
expandedRow: string;
|
|
113
|
+
expandedCell: string;
|
|
114
|
+
columnToggle: string;
|
|
115
|
+
columnTogglePanel: string;
|
|
116
|
+
columnToggleItem: string;
|
|
117
|
+
}, import("tailwind-variants").TVReturnTypeLike<{
|
|
118
|
+
size: {
|
|
119
|
+
sm: {
|
|
120
|
+
th: string;
|
|
121
|
+
td: string;
|
|
122
|
+
};
|
|
123
|
+
md: {
|
|
124
|
+
th: string;
|
|
125
|
+
td: string;
|
|
126
|
+
};
|
|
127
|
+
lg: {
|
|
128
|
+
th: string;
|
|
129
|
+
td: string;
|
|
130
|
+
};
|
|
131
|
+
};
|
|
132
|
+
gridlines: {
|
|
133
|
+
true: {
|
|
134
|
+
table: string;
|
|
135
|
+
th: string;
|
|
136
|
+
td: string;
|
|
137
|
+
};
|
|
138
|
+
};
|
|
139
|
+
striped: {
|
|
140
|
+
true: {
|
|
141
|
+
table: string;
|
|
142
|
+
};
|
|
143
|
+
};
|
|
144
|
+
scrollable: {
|
|
145
|
+
true: {
|
|
146
|
+
wrapper: string;
|
|
147
|
+
thead: string;
|
|
148
|
+
};
|
|
149
|
+
};
|
|
150
|
+
}, {
|
|
151
|
+
root: string;
|
|
152
|
+
wrapper: string;
|
|
153
|
+
table: string;
|
|
154
|
+
thead: string;
|
|
155
|
+
tr: string;
|
|
156
|
+
th: string;
|
|
157
|
+
thSortable: string;
|
|
158
|
+
sortIcon: string;
|
|
159
|
+
td: string;
|
|
160
|
+
tfoot: string;
|
|
161
|
+
emptyState: string;
|
|
162
|
+
filterInput: string;
|
|
163
|
+
paginationWrapper: string;
|
|
164
|
+
paginationInfo: string;
|
|
165
|
+
paginationButtons: string;
|
|
166
|
+
loadingOverlay: string;
|
|
167
|
+
loadingIcon: string;
|
|
168
|
+
expandButton: string;
|
|
169
|
+
expandChevron: string;
|
|
170
|
+
expandedRow: string;
|
|
171
|
+
expandedCell: string;
|
|
172
|
+
columnToggle: string;
|
|
173
|
+
columnTogglePanel: string;
|
|
174
|
+
columnToggleItem: string;
|
|
175
|
+
}>>;
|
|
176
|
+
export type TableThemeSlots = keyof (typeof tableTheme)['slots'];
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { tv } from "tailwind-variants";
|
|
2
|
+
export const tableTheme = tv({
|
|
3
|
+
slots: {
|
|
4
|
+
root: "relative w-full",
|
|
5
|
+
wrapper: "overflow-x-auto rounded-[var(--ui-radius-md)] ring-1 ring-[var(--ui-border)]",
|
|
6
|
+
table: "w-full border-collapse",
|
|
7
|
+
thead: "bg-[var(--ui-bg-elevated)]",
|
|
8
|
+
tr: "border-b border-[var(--ui-border)] last:border-b-0",
|
|
9
|
+
th: "text-start font-medium text-[var(--ui-text-muted)] whitespace-nowrap data-[pinned]:sticky data-[pinned]:z-[1] data-[pinned]:bg-[var(--ui-bg-elevated)]",
|
|
10
|
+
thSortable: "cursor-pointer select-none hover:text-[var(--ui-text)] focus-visible:outline-2 focus-visible:outline-offset-[-2px] focus-visible:outline-[var(--ui-primary)]",
|
|
11
|
+
sortIcon: "ms-1 inline-block size-3.5 align-text-bottom text-[var(--ui-text-muted)]",
|
|
12
|
+
td: "text-[var(--ui-text)] data-[pinned]:sticky data-[pinned]:z-[1] data-[pinned]:bg-[var(--ui-bg)]",
|
|
13
|
+
tfoot: "bg-[var(--ui-bg-elevated)] font-medium",
|
|
14
|
+
emptyState: "px-3 py-8 text-center text-sm text-[var(--ui-text-muted)]",
|
|
15
|
+
filterInput: "mt-1",
|
|
16
|
+
paginationWrapper: "flex items-center justify-between gap-3 px-3 py-2",
|
|
17
|
+
paginationInfo: "text-sm text-[var(--ui-text-muted)]",
|
|
18
|
+
paginationButtons: "flex items-center gap-2",
|
|
19
|
+
loadingOverlay: "absolute inset-0 z-10 flex items-center justify-center bg-[var(--ui-bg)]/60",
|
|
20
|
+
loadingIcon: "size-6 animate-spin text-[var(--ui-primary)]",
|
|
21
|
+
expandButton: "flex size-5 shrink-0 items-center justify-center text-[var(--ui-text-muted)]",
|
|
22
|
+
// Points toward the reading-start direction while collapsed - 0deg
|
|
23
|
+
// (right) under LTR, 180deg (left) under RTL - then always rotates to
|
|
24
|
+
// an absolute 90deg once expanded, which already points down under
|
|
25
|
+
// either direction, so that state needs no separate RTL variant of
|
|
26
|
+
// its own. The rtl:data-[expanded] compound pins that absolute value
|
|
27
|
+
// for the one case where both conditions hold at once, rather than
|
|
28
|
+
// leaving the outcome to rely on Tailwind's variant cascade order.
|
|
29
|
+
expandChevron: "size-4 transition-transform rtl:rotate-180 data-[expanded]:rotate-90 rtl:data-[expanded]:rotate-90",
|
|
30
|
+
expandedRow: "border-b border-[var(--ui-border)] last:border-b-0",
|
|
31
|
+
expandedCell: "bg-[var(--ui-bg-elevated)] px-3 py-3 text-[var(--ui-text)]",
|
|
32
|
+
columnToggle: "relative",
|
|
33
|
+
columnTogglePanel: "absolute end-0 z-20 mt-1 flex min-w-40 flex-col gap-1 rounded-[var(--ui-radius-md)] bg-[var(--ui-bg)] p-2 shadow-[var(--ui-shadow-md)] ring-1 ring-[var(--ui-border)]",
|
|
34
|
+
columnToggleItem: "flex items-center gap-2 rounded-[var(--ui-radius-sm)] px-2 py-1.5 text-sm text-[var(--ui-text)] hover:bg-[var(--ui-bg-elevated)]"
|
|
35
|
+
},
|
|
36
|
+
variants: {
|
|
37
|
+
size: {
|
|
38
|
+
sm: { th: "px-2 py-1.5 text-xs", td: "px-2 py-1.5 text-xs" },
|
|
39
|
+
md: { th: "px-3 py-2 text-sm", td: "px-3 py-2 text-sm" },
|
|
40
|
+
lg: { th: "px-4 py-3 text-base", td: "px-4 py-3 text-base" }
|
|
41
|
+
},
|
|
42
|
+
gridlines: {
|
|
43
|
+
true: {
|
|
44
|
+
table: "border border-[var(--ui-border)]",
|
|
45
|
+
th: "border border-[var(--ui-border)]",
|
|
46
|
+
td: "border border-[var(--ui-border)]"
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
striped: {
|
|
50
|
+
true: { table: "[&>tbody>tr:nth-child(even)]:bg-[var(--ui-bg-elevated)]" }
|
|
51
|
+
},
|
|
52
|
+
scrollable: {
|
|
53
|
+
true: { wrapper: "overflow-y-auto", thead: "sticky top-0 z-[1]" }
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
defaultVariants: {
|
|
57
|
+
size: "md"
|
|
58
|
+
}
|
|
59
|
+
});
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
export declare const tabsTheme: import("tailwind-variants").TVReturnType<{
|
|
2
|
+
variant: {
|
|
3
|
+
underline: {
|
|
4
|
+
list: string;
|
|
5
|
+
indicator: string;
|
|
6
|
+
};
|
|
7
|
+
pill: {
|
|
8
|
+
list: string;
|
|
9
|
+
trigger: string;
|
|
10
|
+
indicator: string;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
}, {
|
|
14
|
+
root: string;
|
|
15
|
+
list: string;
|
|
16
|
+
trigger: string;
|
|
17
|
+
icon: string;
|
|
18
|
+
indicator: string;
|
|
19
|
+
content: string;
|
|
20
|
+
}, undefined, {
|
|
21
|
+
variant: {
|
|
22
|
+
underline: {
|
|
23
|
+
list: string;
|
|
24
|
+
indicator: string;
|
|
25
|
+
};
|
|
26
|
+
pill: {
|
|
27
|
+
list: string;
|
|
28
|
+
trigger: string;
|
|
29
|
+
indicator: string;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
}, {
|
|
33
|
+
root: string;
|
|
34
|
+
list: string;
|
|
35
|
+
trigger: string;
|
|
36
|
+
icon: string;
|
|
37
|
+
indicator: string;
|
|
38
|
+
content: string;
|
|
39
|
+
}, import("tailwind-variants").TVReturnTypeLike<{
|
|
40
|
+
variant: {
|
|
41
|
+
underline: {
|
|
42
|
+
list: string;
|
|
43
|
+
indicator: string;
|
|
44
|
+
};
|
|
45
|
+
pill: {
|
|
46
|
+
list: string;
|
|
47
|
+
trigger: string;
|
|
48
|
+
indicator: string;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
}, {
|
|
52
|
+
root: string;
|
|
53
|
+
list: string;
|
|
54
|
+
trigger: string;
|
|
55
|
+
icon: string;
|
|
56
|
+
indicator: string;
|
|
57
|
+
content: string;
|
|
58
|
+
}>>;
|
|
59
|
+
export type TabsThemeSlots = keyof (typeof tabsTheme)['slots'];
|