@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,134 @@
|
|
|
1
|
+
import { tv } from "tailwind-variants";
|
|
2
|
+
export const radioGroupTheme = tv({
|
|
3
|
+
slots: {
|
|
4
|
+
root: "flex",
|
|
5
|
+
// card's has-[[data-state=checked]] targets the RadioGroupItem button
|
|
6
|
+
// rendered directly inside this label, matching the existing
|
|
7
|
+
// has-[[data-disabled]] pattern already used here for the disabled look.
|
|
8
|
+
itemWrapper: "inline-flex items-center gap-2 cursor-pointer has-[[data-disabled]]:cursor-not-allowed has-[[data-disabled]]:opacity-50",
|
|
9
|
+
// The item itself is a hollow ring (transparent center, no fill) so
|
|
10
|
+
// that the before:* radial halo below can show through it as one
|
|
11
|
+
// continuous disc rather than being blocked by an opaque background -
|
|
12
|
+
// a soft circular "state layer" sitting behind the ring, twice the
|
|
13
|
+
// item's own diameter (an inset of half that diameter on each side,
|
|
14
|
+
// scaled per size variant below), invisible at rest (scaled to 0),
|
|
15
|
+
// growing in on hover and keyboard focus. Fill animated via transform
|
|
16
|
+
// scale rather than opacity, gray at rest and switched to the primary
|
|
17
|
+
// color by the checked-state variant below - an explicit var per
|
|
18
|
+
// state rather than currentColor, since this slot's own text color
|
|
19
|
+
// isn't otherwise tied to checked/unchecked here. Uses
|
|
20
|
+
// --ui-border-hover for the gray fill - lighter than a plain mid-gray
|
|
21
|
+
// text color would give, while still clearing the plain --ui-border
|
|
22
|
+
// token, which reads as basically invisible at any reasonable opacity
|
|
23
|
+
// since it's already very close to the page background. scale(0)/
|
|
24
|
+
// scale(1) use Tailwind's arbitrary-value [transform:] syntax, not the
|
|
25
|
+
// named scale-0/scale-100 utilities - those silently failed to
|
|
26
|
+
// generate any CSS in this project's Tailwind v4 setup even though
|
|
27
|
+
// other before: utilities on the same element worked fine; not worth
|
|
28
|
+
// chasing why, arbitrary values sidestep it reliably. -z-10 keeps it
|
|
29
|
+
// behind the ring/dot rather than covering them; keyboard focus relies
|
|
30
|
+
// on the halo alone (no separate focus-visible:outline box) since the
|
|
31
|
+
// halo itself already grows on focus-visible and a second, crisper
|
|
32
|
+
// outline on top of it read as redundant. `isolate` is load-bearing
|
|
33
|
+
// here, not decorative - without it, `relative` alone doesn't give the
|
|
34
|
+
// item its own stacking context, so the -z-10 pseudo escapes all the
|
|
35
|
+
// way up to the page's root stacking context instead of staying
|
|
36
|
+
// scoped to this element. Any ancestor between the item and <body>
|
|
37
|
+
// that has an opaque background but no stacking context of its own
|
|
38
|
+
// (true of every plain Tailwind utility div, including this library's
|
|
39
|
+
// own page layout wrapper) then paints *after* that root-level
|
|
40
|
+
// negative-z layer and fully covers it - found by comparing a real
|
|
41
|
+
// page render against an isolated one: identical computed styles,
|
|
42
|
+
// completely invisible halo on the real page, and
|
|
43
|
+
// document.elementsFromPoint() at the halo's own pixels confirmed an
|
|
44
|
+
// ancestor's background was winning the paint order despite being
|
|
45
|
+
// nested outside the button in the DOM. ring-[1.5px] rather than the
|
|
46
|
+
// plain ring-1 (1px) utility - a full 1px stroke on an 18px circle
|
|
47
|
+
// rendered visibly jagged at normal (non-zoomed) browser scale; the
|
|
48
|
+
// fractional width needs the arbitrary-value form since Tailwind's
|
|
49
|
+
// named ring scale only has integer steps.
|
|
50
|
+
item: "relative isolate flex shrink-0 items-center justify-center rounded-full ring-[1.5px] ring-inset ring-[var(--ui-border)] transition-colors before:absolute 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-[''] hover:before:[transform:scale(1)] focus-visible:outline-none focus-visible:before:[transform:scale(1)]",
|
|
51
|
+
// force-mount (see RadioGroup.vue) keeps this in the DOM for every
|
|
52
|
+
// item regardless of checked state, so switching the selection scales
|
|
53
|
+
// the old dot out and the new one in instead of an abrupt pop -
|
|
54
|
+
// needed because this project's Presence-driven show/hide only
|
|
55
|
+
// coordinates exit animations for real @keyframes animations (it
|
|
56
|
+
// detects them via computed animation-name), not plain CSS
|
|
57
|
+
// transitions, so a transition-only version without force-mount would
|
|
58
|
+
// just vanish instantly.
|
|
59
|
+
indicator: "rounded-full [transform:scale(0)] transition-transform duration-200 data-[state=checked]:[transform:scale(1)]",
|
|
60
|
+
label: "select-none text-[var(--ui-text)]",
|
|
61
|
+
description: "block select-none text-[var(--ui-text-muted)]",
|
|
62
|
+
// Only rendered when an item has a description (wrapping the label and
|
|
63
|
+
// description together so they stack under one another). The label
|
|
64
|
+
// text visually sits a bit lower than its own line box's true center -
|
|
65
|
+
// a font/line-height rendering characteristic (Plus Jakarta Sans specifically,
|
|
66
|
+
// confirmed against a real browser rather than assumed), not a layout
|
|
67
|
+
// bug - so this nudges the whole block up slightly to compensate. Left
|
|
68
|
+
// untouched by size, since it wasn't verified per size and it's a small
|
|
69
|
+
// enough correction to not obviously need it.
|
|
70
|
+
labelGroup: "-mt-[2.5px]"
|
|
71
|
+
},
|
|
72
|
+
variants: {
|
|
73
|
+
size: {
|
|
74
|
+
sm: { item: "size-3.5 before:-inset-[7px]", indicator: "size-2", label: "text-xs", description: "text-xs" },
|
|
75
|
+
md: { item: "size-4.5 before:-inset-[9px]", indicator: "size-2.5", label: "text-sm", description: "text-xs" },
|
|
76
|
+
lg: { item: "size-5.5 before:-inset-[11px]", indicator: "size-3", label: "text-base", description: "text-sm" }
|
|
77
|
+
},
|
|
78
|
+
orientation: {
|
|
79
|
+
vertical: { root: "flex-col gap-2" },
|
|
80
|
+
horizontal: { root: "flex-row flex-wrap gap-x-6 gap-y-2" }
|
|
81
|
+
},
|
|
82
|
+
// card wraps each item in its own bordered box (a common alternative
|
|
83
|
+
// to the plain inline list, useful for pairing a description or price
|
|
84
|
+
// with the option via the label slot) - selected state comes from the
|
|
85
|
+
// same has-[[data-state=checked]] the disabled look already uses. The
|
|
86
|
+
// color-dependent part of that highlight (border/background tint)
|
|
87
|
+
// lives in the compoundVariants below instead, since it has to follow
|
|
88
|
+
// `color` - this block only keeps the structural bits.
|
|
89
|
+
variant: {
|
|
90
|
+
default: {},
|
|
91
|
+
card: {
|
|
92
|
+
itemWrapper: "w-full items-start gap-3 rounded-[var(--ui-radius-md)] border border-[var(--ui-border)] px-3.5 py-3 transition-colors",
|
|
93
|
+
item: "mt-0.5"
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
// Recolors the ring/dot when checked - unchecked always stays the same
|
|
97
|
+
// neutral ring regardless of `color`, matching Checkbox's/Switch's own
|
|
98
|
+
// `color` variant exactly (same reasoning, same token pattern).
|
|
99
|
+
color: {
|
|
100
|
+
primary: { item: "data-[state=checked]:ring-[var(--ui-primary)] data-[state=checked]:before:bg-[var(--ui-primary)]", indicator: "bg-[var(--ui-primary)]" },
|
|
101
|
+
neutral: { item: "data-[state=checked]:ring-[var(--ui-neutral)] data-[state=checked]:before:bg-[var(--ui-neutral)]", indicator: "bg-[var(--ui-neutral)]" },
|
|
102
|
+
secondary: { item: "data-[state=checked]:ring-[var(--ui-secondary)] data-[state=checked]:before:bg-[var(--ui-secondary)]", indicator: "bg-[var(--ui-secondary)]" },
|
|
103
|
+
success: { item: "data-[state=checked]:ring-[var(--ui-success)] data-[state=checked]:before:bg-[var(--ui-success)]", indicator: "bg-[var(--ui-success)]" },
|
|
104
|
+
danger: { item: "data-[state=checked]:ring-[var(--ui-danger)] data-[state=checked]:before:bg-[var(--ui-danger)]", indicator: "bg-[var(--ui-danger)]" },
|
|
105
|
+
info: { item: "data-[state=checked]:ring-[var(--ui-info)] data-[state=checked]:before:bg-[var(--ui-info)]", indicator: "bg-[var(--ui-info)]" },
|
|
106
|
+
warning: { item: "data-[state=checked]:ring-[var(--ui-warning)] data-[state=checked]:before:bg-[var(--ui-warning)]", indicator: "bg-[var(--ui-warning)]" }
|
|
107
|
+
},
|
|
108
|
+
// Recolors the existing ring rather than adding a second outline
|
|
109
|
+
// outside it (an earlier version did that, which read as a double
|
|
110
|
+
// ring) - matches how Input/Select handle their own invalid ring.
|
|
111
|
+
// data-[state=checked] needs its own danger override too, since it'd
|
|
112
|
+
// otherwise win the ring color back whenever an already-invalid group
|
|
113
|
+
// has something selected.
|
|
114
|
+
invalid: {
|
|
115
|
+
true: { item: "ring-[var(--ui-danger)] data-[state=checked]:ring-[var(--ui-danger)]" }
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
compoundVariants: [
|
|
119
|
+
// The card variant's own checked-state highlight, following `color`.
|
|
120
|
+
{ variant: "card", color: "primary", class: { itemWrapper: "has-[[data-state=checked]]:border-[var(--ui-primary)] has-[[data-state=checked]]:bg-[var(--ui-primary-soft)]" } },
|
|
121
|
+
{ variant: "card", color: "neutral", class: { itemWrapper: "has-[[data-state=checked]]:border-[var(--ui-neutral)] has-[[data-state=checked]]:bg-[var(--ui-neutral-soft)]" } },
|
|
122
|
+
{ variant: "card", color: "secondary", class: { itemWrapper: "has-[[data-state=checked]]:border-[var(--ui-secondary)] has-[[data-state=checked]]:bg-[var(--ui-secondary-soft)]" } },
|
|
123
|
+
{ variant: "card", color: "success", class: { itemWrapper: "has-[[data-state=checked]]:border-[var(--ui-success)] has-[[data-state=checked]]:bg-[var(--ui-success-soft)]" } },
|
|
124
|
+
{ variant: "card", color: "danger", class: { itemWrapper: "has-[[data-state=checked]]:border-[var(--ui-danger)] has-[[data-state=checked]]:bg-[var(--ui-danger-soft)]" } },
|
|
125
|
+
{ variant: "card", color: "info", class: { itemWrapper: "has-[[data-state=checked]]:border-[var(--ui-info)] has-[[data-state=checked]]:bg-[var(--ui-info-soft)]" } },
|
|
126
|
+
{ variant: "card", color: "warning", class: { itemWrapper: "has-[[data-state=checked]]:border-[var(--ui-warning)] has-[[data-state=checked]]:bg-[var(--ui-warning-soft)]" } }
|
|
127
|
+
],
|
|
128
|
+
defaultVariants: {
|
|
129
|
+
size: "md",
|
|
130
|
+
color: "primary",
|
|
131
|
+
orientation: "vertical",
|
|
132
|
+
variant: "default"
|
|
133
|
+
}
|
|
134
|
+
});
|
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
export declare const ratingTheme: import("tailwind-variants").TVReturnType<{
|
|
2
|
+
orientation: {
|
|
3
|
+
horizontal: {
|
|
4
|
+
root: string;
|
|
5
|
+
};
|
|
6
|
+
vertical: {
|
|
7
|
+
root: string;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
size: {
|
|
11
|
+
sm: {
|
|
12
|
+
item: string;
|
|
13
|
+
icon: string;
|
|
14
|
+
fillIcon: string;
|
|
15
|
+
};
|
|
16
|
+
md: {
|
|
17
|
+
item: string;
|
|
18
|
+
icon: string;
|
|
19
|
+
fillIcon: string;
|
|
20
|
+
};
|
|
21
|
+
lg: {
|
|
22
|
+
item: string;
|
|
23
|
+
icon: string;
|
|
24
|
+
fillIcon: string;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
color: {
|
|
28
|
+
primary: {
|
|
29
|
+
fillIcon: string;
|
|
30
|
+
};
|
|
31
|
+
neutral: {
|
|
32
|
+
fillIcon: string;
|
|
33
|
+
};
|
|
34
|
+
secondary: {
|
|
35
|
+
fillIcon: string;
|
|
36
|
+
};
|
|
37
|
+
success: {
|
|
38
|
+
fillIcon: string;
|
|
39
|
+
};
|
|
40
|
+
danger: {
|
|
41
|
+
fillIcon: string;
|
|
42
|
+
};
|
|
43
|
+
info: {
|
|
44
|
+
fillIcon: string;
|
|
45
|
+
};
|
|
46
|
+
warning: {
|
|
47
|
+
fillIcon: string;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
}, {
|
|
51
|
+
root: string;
|
|
52
|
+
item: string;
|
|
53
|
+
icon: string;
|
|
54
|
+
indicator: string;
|
|
55
|
+
fillIcon: string;
|
|
56
|
+
}, undefined, {
|
|
57
|
+
orientation: {
|
|
58
|
+
horizontal: {
|
|
59
|
+
root: string;
|
|
60
|
+
};
|
|
61
|
+
vertical: {
|
|
62
|
+
root: string;
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
size: {
|
|
66
|
+
sm: {
|
|
67
|
+
item: string;
|
|
68
|
+
icon: string;
|
|
69
|
+
fillIcon: string;
|
|
70
|
+
};
|
|
71
|
+
md: {
|
|
72
|
+
item: string;
|
|
73
|
+
icon: string;
|
|
74
|
+
fillIcon: string;
|
|
75
|
+
};
|
|
76
|
+
lg: {
|
|
77
|
+
item: string;
|
|
78
|
+
icon: string;
|
|
79
|
+
fillIcon: string;
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
color: {
|
|
83
|
+
primary: {
|
|
84
|
+
fillIcon: string;
|
|
85
|
+
};
|
|
86
|
+
neutral: {
|
|
87
|
+
fillIcon: string;
|
|
88
|
+
};
|
|
89
|
+
secondary: {
|
|
90
|
+
fillIcon: string;
|
|
91
|
+
};
|
|
92
|
+
success: {
|
|
93
|
+
fillIcon: string;
|
|
94
|
+
};
|
|
95
|
+
danger: {
|
|
96
|
+
fillIcon: string;
|
|
97
|
+
};
|
|
98
|
+
info: {
|
|
99
|
+
fillIcon: string;
|
|
100
|
+
};
|
|
101
|
+
warning: {
|
|
102
|
+
fillIcon: string;
|
|
103
|
+
};
|
|
104
|
+
};
|
|
105
|
+
}, {
|
|
106
|
+
root: string;
|
|
107
|
+
item: string;
|
|
108
|
+
icon: string;
|
|
109
|
+
indicator: string;
|
|
110
|
+
fillIcon: string;
|
|
111
|
+
}, import("tailwind-variants").TVReturnTypeLike<{
|
|
112
|
+
orientation: {
|
|
113
|
+
horizontal: {
|
|
114
|
+
root: string;
|
|
115
|
+
};
|
|
116
|
+
vertical: {
|
|
117
|
+
root: string;
|
|
118
|
+
};
|
|
119
|
+
};
|
|
120
|
+
size: {
|
|
121
|
+
sm: {
|
|
122
|
+
item: string;
|
|
123
|
+
icon: string;
|
|
124
|
+
fillIcon: string;
|
|
125
|
+
};
|
|
126
|
+
md: {
|
|
127
|
+
item: string;
|
|
128
|
+
icon: string;
|
|
129
|
+
fillIcon: string;
|
|
130
|
+
};
|
|
131
|
+
lg: {
|
|
132
|
+
item: string;
|
|
133
|
+
icon: string;
|
|
134
|
+
fillIcon: string;
|
|
135
|
+
};
|
|
136
|
+
};
|
|
137
|
+
color: {
|
|
138
|
+
primary: {
|
|
139
|
+
fillIcon: string;
|
|
140
|
+
};
|
|
141
|
+
neutral: {
|
|
142
|
+
fillIcon: string;
|
|
143
|
+
};
|
|
144
|
+
secondary: {
|
|
145
|
+
fillIcon: string;
|
|
146
|
+
};
|
|
147
|
+
success: {
|
|
148
|
+
fillIcon: string;
|
|
149
|
+
};
|
|
150
|
+
danger: {
|
|
151
|
+
fillIcon: string;
|
|
152
|
+
};
|
|
153
|
+
info: {
|
|
154
|
+
fillIcon: string;
|
|
155
|
+
};
|
|
156
|
+
warning: {
|
|
157
|
+
fillIcon: string;
|
|
158
|
+
};
|
|
159
|
+
};
|
|
160
|
+
}, {
|
|
161
|
+
root: string;
|
|
162
|
+
item: string;
|
|
163
|
+
icon: string;
|
|
164
|
+
indicator: string;
|
|
165
|
+
fillIcon: string;
|
|
166
|
+
}>>;
|
|
167
|
+
export type RatingThemeSlots = keyof (typeof ratingTheme)['slots'];
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { tv } from "tailwind-variants";
|
|
2
|
+
export const ratingTheme = tv({
|
|
3
|
+
slots: {
|
|
4
|
+
root: "inline-flex items-center",
|
|
5
|
+
// The shared positioning context for one star's backdrop plus every
|
|
6
|
+
// one of its overlapping step indicators - a fixed size (via `size`
|
|
7
|
+
// below) so absolutely-positioned children have something concrete
|
|
8
|
+
// to size/crop against.
|
|
9
|
+
// has-[:focus-visible] rather than the usual focus-visible directly -
|
|
10
|
+
// keyboard focus lands on whichever sub-step's own (possibly
|
|
11
|
+
// narrower-than-the-whole-star) indicator button is current, but the
|
|
12
|
+
// ring should still outline the *whole* star, not just that step's
|
|
13
|
+
// own cropped hit region.
|
|
14
|
+
item: "relative shrink-0 rounded-[var(--ui-radius-sm)] transition-shadow has-[:focus-visible]:outline-2 has-[:focus-visible]:outline-offset-2 has-[:focus-visible]:outline-[var(--ui-primary)]",
|
|
15
|
+
// The empty/outline star, always visible, sitting behind every step
|
|
16
|
+
// indicator - what a not-yet-filled star reads as.
|
|
17
|
+
icon: "absolute inset-0 text-[var(--ui-border)]",
|
|
18
|
+
// One per fractional sub-step (Rating.vue renders one
|
|
19
|
+
// RatingItemIndicator per entry in RatingItem's own `steps`, a single
|
|
20
|
+
// entry `[N]` when `step` is the default 1, several overlapping ones
|
|
21
|
+
// for a fractional step) - overflow-hidden + a width pinned to Reka's
|
|
22
|
+
// own --reka-rating-item-step-width is what turns the *fixed-size*
|
|
23
|
+
// fillIcon inside it into a correctly-cropped partial fill instead of
|
|
24
|
+
// a squished one. z-index/opacity are also Reka's own exposed custom
|
|
25
|
+
// properties - see RatingItemIndicator's compiled source
|
|
26
|
+
// (node_modules/reka-ui/dist/Rating/RatingItemIndicator.js) for what
|
|
27
|
+
// each one tracks (narrower/earlier sub-steps stack in front so their
|
|
28
|
+
// smaller click region wins over the full-width one behind it;
|
|
29
|
+
// opacity hides a redundant overlapping layer mid-hover-transition).
|
|
30
|
+
// Marked group/step so the nested fillIcon can react to *this*
|
|
31
|
+
// element's own data-state=active (has this step's value been
|
|
32
|
+
// reached by the current hover-or-model value) without needing to
|
|
33
|
+
// duplicate that computation itself.
|
|
34
|
+
// p-0 + flex + leading-none reset the real <button> Reka renders this
|
|
35
|
+
// as - its default UA padding/line-height otherwise pushes fillIcon a
|
|
36
|
+
// few fixed pixels off the backdrop icon's own position. A fixed
|
|
37
|
+
// offset is invisible at lg (a small fraction of a 24px icon) but
|
|
38
|
+
// reads as a visibly "cut" star at sm (the same few px against a
|
|
39
|
+
// 16px icon) - confirmed via getBoundingClientRect(): fillIcon sat
|
|
40
|
+
// 2px lower than the backdrop/indicator/item box it should exactly
|
|
41
|
+
// match, entirely explained by the button's own default padding.
|
|
42
|
+
indicator: "group/step absolute inset-y-0 start-0 flex items-start justify-start overflow-hidden p-0 leading-none [opacity:var(--reka-rating-item-step-opacity)] [width:var(--reka-rating-item-step-width)] [z-index:var(--reka-rating-item-step-z-index)] disabled:cursor-not-allowed",
|
|
43
|
+
// Same star shape again, same fixed size as the backdrop - see the
|
|
44
|
+
// indicator slot's own comment for why this can't be sized relative
|
|
45
|
+
// to its own (intentionally shrunk) indicator parent. Transparent at
|
|
46
|
+
// rest - a transparent star atop the muted backdrop simply shows the
|
|
47
|
+
// backdrop through it, reading as "not filled" with no shape swap
|
|
48
|
+
// needed - recolored once its own indicator's data-state flips to
|
|
49
|
+
// active.
|
|
50
|
+
fillIcon: "text-transparent transition-colors group-data-[state=active]/step:text-[var(--ui-primary)]"
|
|
51
|
+
},
|
|
52
|
+
variants: {
|
|
53
|
+
orientation: {
|
|
54
|
+
horizontal: { root: "flex-row gap-1" },
|
|
55
|
+
vertical: { root: "flex-col gap-1" }
|
|
56
|
+
},
|
|
57
|
+
size: {
|
|
58
|
+
sm: { item: "size-4", icon: "size-4", fillIcon: "size-4" },
|
|
59
|
+
md: { item: "size-5", icon: "size-5", fillIcon: "size-5" },
|
|
60
|
+
lg: { item: "size-6", icon: "size-6", fillIcon: "size-6" }
|
|
61
|
+
},
|
|
62
|
+
color: {
|
|
63
|
+
primary: { fillIcon: "group-data-[state=active]/step:text-[var(--ui-primary)]" },
|
|
64
|
+
neutral: { fillIcon: "group-data-[state=active]/step:text-[var(--ui-bg-inverted)]" },
|
|
65
|
+
secondary: { fillIcon: "group-data-[state=active]/step:text-[var(--ui-secondary)]" },
|
|
66
|
+
success: { fillIcon: "group-data-[state=active]/step:text-[var(--ui-success)]" },
|
|
67
|
+
danger: { fillIcon: "group-data-[state=active]/step:text-[var(--ui-danger)]" },
|
|
68
|
+
info: { fillIcon: "group-data-[state=active]/step:text-[var(--ui-info)]" },
|
|
69
|
+
warning: { fillIcon: "group-data-[state=active]/step:text-[var(--ui-warning)]" }
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
defaultVariants: {
|
|
73
|
+
orientation: "horizontal",
|
|
74
|
+
size: "md",
|
|
75
|
+
color: "primary"
|
|
76
|
+
}
|
|
77
|
+
});
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
export declare const readMoreTheme: import("tailwind-variants").TVReturnType<{
|
|
2
|
+
open: {
|
|
3
|
+
true: {
|
|
4
|
+
triggerIcon: string;
|
|
5
|
+
};
|
|
6
|
+
};
|
|
7
|
+
}, {
|
|
8
|
+
root: string;
|
|
9
|
+
content: string;
|
|
10
|
+
fade: string;
|
|
11
|
+
trigger: string;
|
|
12
|
+
triggerIcon: string;
|
|
13
|
+
}, undefined, {
|
|
14
|
+
open: {
|
|
15
|
+
true: {
|
|
16
|
+
triggerIcon: string;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
}, {
|
|
20
|
+
root: string;
|
|
21
|
+
content: string;
|
|
22
|
+
fade: string;
|
|
23
|
+
trigger: string;
|
|
24
|
+
triggerIcon: string;
|
|
25
|
+
}, import("tailwind-variants").TVReturnTypeLike<{
|
|
26
|
+
open: {
|
|
27
|
+
true: {
|
|
28
|
+
triggerIcon: string;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
}, {
|
|
32
|
+
root: string;
|
|
33
|
+
content: string;
|
|
34
|
+
fade: string;
|
|
35
|
+
trigger: string;
|
|
36
|
+
triggerIcon: string;
|
|
37
|
+
}>>;
|
|
38
|
+
export type ReadMoreThemeSlots = keyof (typeof readMoreTheme)['slots'];
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { tv } from "tailwind-variants";
|
|
2
|
+
export const readMoreTheme = tv({
|
|
3
|
+
slots: {
|
|
4
|
+
root: "relative",
|
|
5
|
+
// max-height (not height) is what actually animates - see
|
|
6
|
+
// ReadMore.vue's own comment on why this needs a measured pixel value
|
|
7
|
+
// rather than the `auto` keyword, which CSS transitions can't animate.
|
|
8
|
+
content: "overflow-hidden transition-[max-height] duration-300 ease-out",
|
|
9
|
+
// A fade rather than a hard cut - signals there's more below without a
|
|
10
|
+
// visible seam at the truncation line. Reads from --ui-bg since it
|
|
11
|
+
// needs to blend into whatever's directly behind it, not a fixed color.
|
|
12
|
+
fade: "pointer-events-none absolute inset-x-0 bottom-8 h-16 bg-gradient-to-t from-[var(--ui-bg)] to-transparent",
|
|
13
|
+
trigger: "relative mt-2 inline-flex items-center gap-1 text-sm font-medium text-[var(--ui-primary)] transition-colors hover:text-[var(--ui-primary-hover)]",
|
|
14
|
+
triggerIcon: "size-4 transition-transform duration-200"
|
|
15
|
+
},
|
|
16
|
+
variants: {
|
|
17
|
+
open: {
|
|
18
|
+
true: { triggerIcon: "rotate-180" }
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
});
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
export declare const scrollAreaTheme: import("tailwind-variants").TVReturnType<{
|
|
2
|
+
[key: string]: {
|
|
3
|
+
[key: string]: import("tailwind-variants").ClassValue | {
|
|
4
|
+
root?: import("tailwind-variants").ClassValue;
|
|
5
|
+
viewport?: import("tailwind-variants").ClassValue;
|
|
6
|
+
thumb?: import("tailwind-variants").ClassValue;
|
|
7
|
+
scrollbar?: import("tailwind-variants").ClassValue;
|
|
8
|
+
corner?: import("tailwind-variants").ClassValue;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
} | {
|
|
12
|
+
[x: string]: {
|
|
13
|
+
[x: string]: import("tailwind-variants").ClassValue | {
|
|
14
|
+
root?: import("tailwind-variants").ClassValue;
|
|
15
|
+
viewport?: import("tailwind-variants").ClassValue;
|
|
16
|
+
thumb?: import("tailwind-variants").ClassValue;
|
|
17
|
+
scrollbar?: import("tailwind-variants").ClassValue;
|
|
18
|
+
corner?: import("tailwind-variants").ClassValue;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
} | {}, {
|
|
22
|
+
root: string;
|
|
23
|
+
viewport: string;
|
|
24
|
+
scrollbar: string;
|
|
25
|
+
thumb: string;
|
|
26
|
+
corner: string;
|
|
27
|
+
}, undefined, {
|
|
28
|
+
[key: string]: {
|
|
29
|
+
[key: string]: import("tailwind-variants").ClassValue | {
|
|
30
|
+
root?: import("tailwind-variants").ClassValue;
|
|
31
|
+
viewport?: import("tailwind-variants").ClassValue;
|
|
32
|
+
thumb?: import("tailwind-variants").ClassValue;
|
|
33
|
+
scrollbar?: import("tailwind-variants").ClassValue;
|
|
34
|
+
corner?: import("tailwind-variants").ClassValue;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
} | {}, {
|
|
38
|
+
root: string;
|
|
39
|
+
viewport: string;
|
|
40
|
+
scrollbar: string;
|
|
41
|
+
thumb: string;
|
|
42
|
+
corner: string;
|
|
43
|
+
}, import("tailwind-variants").TVReturnTypeLike<unknown, {
|
|
44
|
+
root: string;
|
|
45
|
+
viewport: string;
|
|
46
|
+
scrollbar: string;
|
|
47
|
+
thumb: string;
|
|
48
|
+
corner: string;
|
|
49
|
+
}>>;
|
|
50
|
+
export type ScrollAreaThemeSlots = keyof (typeof scrollAreaTheme)['slots'];
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { tv } from "tailwind-variants";
|
|
2
|
+
export const scrollAreaTheme = tv({
|
|
3
|
+
slots: {
|
|
4
|
+
root: "relative overflow-hidden",
|
|
5
|
+
viewport: "h-full w-full rounded-[inherit]",
|
|
6
|
+
scrollbar: "flex touch-none select-none p-0.5 transition-colors data-[orientation=vertical]:w-2 data-[orientation=horizontal]:h-2 data-[orientation=horizontal]:flex-col",
|
|
7
|
+
thumb: "relative flex-1 rounded-full bg-[var(--ui-border)] before:absolute before:left-1/2 before:top-1/2 before:h-full before:min-h-11 before:w-full before:min-w-11 before:-translate-x-1/2 before:-translate-y-1/2",
|
|
8
|
+
corner: "bg-[var(--ui-bg-elevated)]"
|
|
9
|
+
}
|
|
10
|
+
});
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
export declare const selectTheme: import("tailwind-variants").TVReturnType<{
|
|
2
|
+
size: {
|
|
3
|
+
sm: {
|
|
4
|
+
trigger: string;
|
|
5
|
+
};
|
|
6
|
+
md: {
|
|
7
|
+
trigger: string;
|
|
8
|
+
};
|
|
9
|
+
lg: {
|
|
10
|
+
trigger: string;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
color: {
|
|
14
|
+
primary: {
|
|
15
|
+
trigger: string;
|
|
16
|
+
};
|
|
17
|
+
neutral: {
|
|
18
|
+
trigger: string;
|
|
19
|
+
};
|
|
20
|
+
secondary: {
|
|
21
|
+
trigger: string;
|
|
22
|
+
};
|
|
23
|
+
success: {
|
|
24
|
+
trigger: string;
|
|
25
|
+
};
|
|
26
|
+
danger: {
|
|
27
|
+
trigger: string;
|
|
28
|
+
};
|
|
29
|
+
info: {
|
|
30
|
+
trigger: string;
|
|
31
|
+
};
|
|
32
|
+
warning: {
|
|
33
|
+
trigger: string;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
invalid: {
|
|
37
|
+
true: {
|
|
38
|
+
trigger: string;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
}, {
|
|
42
|
+
root: string;
|
|
43
|
+
trigger: string;
|
|
44
|
+
value: string;
|
|
45
|
+
chipOverflow: string;
|
|
46
|
+
icon: string;
|
|
47
|
+
clear: string;
|
|
48
|
+
dropdown: string;
|
|
49
|
+
searchWrapper: string;
|
|
50
|
+
searchInput: string;
|
|
51
|
+
content: string;
|
|
52
|
+
mobileContent: string;
|
|
53
|
+
viewport: string;
|
|
54
|
+
group: string;
|
|
55
|
+
item: string;
|
|
56
|
+
itemIndicator: string;
|
|
57
|
+
empty: string;
|
|
58
|
+
arrow: string;
|
|
59
|
+
}, undefined, {
|
|
60
|
+
size: {
|
|
61
|
+
sm: {
|
|
62
|
+
trigger: string;
|
|
63
|
+
};
|
|
64
|
+
md: {
|
|
65
|
+
trigger: string;
|
|
66
|
+
};
|
|
67
|
+
lg: {
|
|
68
|
+
trigger: string;
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
color: {
|
|
72
|
+
primary: {
|
|
73
|
+
trigger: string;
|
|
74
|
+
};
|
|
75
|
+
neutral: {
|
|
76
|
+
trigger: string;
|
|
77
|
+
};
|
|
78
|
+
secondary: {
|
|
79
|
+
trigger: string;
|
|
80
|
+
};
|
|
81
|
+
success: {
|
|
82
|
+
trigger: string;
|
|
83
|
+
};
|
|
84
|
+
danger: {
|
|
85
|
+
trigger: string;
|
|
86
|
+
};
|
|
87
|
+
info: {
|
|
88
|
+
trigger: string;
|
|
89
|
+
};
|
|
90
|
+
warning: {
|
|
91
|
+
trigger: string;
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
invalid: {
|
|
95
|
+
true: {
|
|
96
|
+
trigger: string;
|
|
97
|
+
};
|
|
98
|
+
};
|
|
99
|
+
}, {
|
|
100
|
+
root: string;
|
|
101
|
+
trigger: string;
|
|
102
|
+
value: string;
|
|
103
|
+
chipOverflow: string;
|
|
104
|
+
icon: string;
|
|
105
|
+
clear: string;
|
|
106
|
+
dropdown: string;
|
|
107
|
+
searchWrapper: string;
|
|
108
|
+
searchInput: string;
|
|
109
|
+
content: string;
|
|
110
|
+
mobileContent: string;
|
|
111
|
+
viewport: string;
|
|
112
|
+
group: string;
|
|
113
|
+
item: string;
|
|
114
|
+
itemIndicator: string;
|
|
115
|
+
empty: string;
|
|
116
|
+
arrow: string;
|
|
117
|
+
}, import("tailwind-variants").TVReturnTypeLike<{
|
|
118
|
+
size: {
|
|
119
|
+
sm: {
|
|
120
|
+
trigger: string;
|
|
121
|
+
};
|
|
122
|
+
md: {
|
|
123
|
+
trigger: string;
|
|
124
|
+
};
|
|
125
|
+
lg: {
|
|
126
|
+
trigger: string;
|
|
127
|
+
};
|
|
128
|
+
};
|
|
129
|
+
color: {
|
|
130
|
+
primary: {
|
|
131
|
+
trigger: string;
|
|
132
|
+
};
|
|
133
|
+
neutral: {
|
|
134
|
+
trigger: string;
|
|
135
|
+
};
|
|
136
|
+
secondary: {
|
|
137
|
+
trigger: string;
|
|
138
|
+
};
|
|
139
|
+
success: {
|
|
140
|
+
trigger: string;
|
|
141
|
+
};
|
|
142
|
+
danger: {
|
|
143
|
+
trigger: string;
|
|
144
|
+
};
|
|
145
|
+
info: {
|
|
146
|
+
trigger: string;
|
|
147
|
+
};
|
|
148
|
+
warning: {
|
|
149
|
+
trigger: string;
|
|
150
|
+
};
|
|
151
|
+
};
|
|
152
|
+
invalid: {
|
|
153
|
+
true: {
|
|
154
|
+
trigger: string;
|
|
155
|
+
};
|
|
156
|
+
};
|
|
157
|
+
}, {
|
|
158
|
+
root: string;
|
|
159
|
+
trigger: string;
|
|
160
|
+
value: string;
|
|
161
|
+
chipOverflow: string;
|
|
162
|
+
icon: string;
|
|
163
|
+
clear: string;
|
|
164
|
+
dropdown: string;
|
|
165
|
+
searchWrapper: string;
|
|
166
|
+
searchInput: string;
|
|
167
|
+
content: string;
|
|
168
|
+
mobileContent: string;
|
|
169
|
+
viewport: string;
|
|
170
|
+
group: string;
|
|
171
|
+
item: string;
|
|
172
|
+
itemIndicator: string;
|
|
173
|
+
empty: string;
|
|
174
|
+
arrow: string;
|
|
175
|
+
}>>;
|
|
176
|
+
export type SelectThemeSlots = keyof (typeof selectTheme)['slots'];
|