@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,155 @@
|
|
|
1
|
+
export declare const buttonTheme: import("tailwind-variants").TVReturnType<{
|
|
2
|
+
color: {
|
|
3
|
+
primary: "";
|
|
4
|
+
neutral: "";
|
|
5
|
+
secondary: "";
|
|
6
|
+
success: "";
|
|
7
|
+
danger: "";
|
|
8
|
+
info: "";
|
|
9
|
+
warning: "";
|
|
10
|
+
};
|
|
11
|
+
variant: {
|
|
12
|
+
solid: "";
|
|
13
|
+
soft: "";
|
|
14
|
+
outline: "";
|
|
15
|
+
ghost: "";
|
|
16
|
+
text: "";
|
|
17
|
+
};
|
|
18
|
+
size: {
|
|
19
|
+
sm: {
|
|
20
|
+
base: string;
|
|
21
|
+
leadingIcon: string;
|
|
22
|
+
trailingIcon: string;
|
|
23
|
+
};
|
|
24
|
+
md: {
|
|
25
|
+
base: string;
|
|
26
|
+
leadingIcon: string;
|
|
27
|
+
trailingIcon: string;
|
|
28
|
+
};
|
|
29
|
+
lg: {
|
|
30
|
+
base: string;
|
|
31
|
+
leadingIcon: string;
|
|
32
|
+
trailingIcon: string;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
block: {
|
|
36
|
+
true: {
|
|
37
|
+
base: string;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
raised: {
|
|
41
|
+
true: {
|
|
42
|
+
base: string;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
square: {
|
|
46
|
+
true: {};
|
|
47
|
+
};
|
|
48
|
+
}, {
|
|
49
|
+
base: string;
|
|
50
|
+
leadingIcon: string;
|
|
51
|
+
trailingIcon: string;
|
|
52
|
+
}, undefined, {
|
|
53
|
+
color: {
|
|
54
|
+
primary: "";
|
|
55
|
+
neutral: "";
|
|
56
|
+
secondary: "";
|
|
57
|
+
success: "";
|
|
58
|
+
danger: "";
|
|
59
|
+
info: "";
|
|
60
|
+
warning: "";
|
|
61
|
+
};
|
|
62
|
+
variant: {
|
|
63
|
+
solid: "";
|
|
64
|
+
soft: "";
|
|
65
|
+
outline: "";
|
|
66
|
+
ghost: "";
|
|
67
|
+
text: "";
|
|
68
|
+
};
|
|
69
|
+
size: {
|
|
70
|
+
sm: {
|
|
71
|
+
base: string;
|
|
72
|
+
leadingIcon: string;
|
|
73
|
+
trailingIcon: string;
|
|
74
|
+
};
|
|
75
|
+
md: {
|
|
76
|
+
base: string;
|
|
77
|
+
leadingIcon: string;
|
|
78
|
+
trailingIcon: string;
|
|
79
|
+
};
|
|
80
|
+
lg: {
|
|
81
|
+
base: string;
|
|
82
|
+
leadingIcon: string;
|
|
83
|
+
trailingIcon: string;
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
block: {
|
|
87
|
+
true: {
|
|
88
|
+
base: string;
|
|
89
|
+
};
|
|
90
|
+
};
|
|
91
|
+
raised: {
|
|
92
|
+
true: {
|
|
93
|
+
base: string;
|
|
94
|
+
};
|
|
95
|
+
};
|
|
96
|
+
square: {
|
|
97
|
+
true: {};
|
|
98
|
+
};
|
|
99
|
+
}, {
|
|
100
|
+
base: string;
|
|
101
|
+
leadingIcon: string;
|
|
102
|
+
trailingIcon: string;
|
|
103
|
+
}, import("tailwind-variants").TVReturnTypeLike<{
|
|
104
|
+
color: {
|
|
105
|
+
primary: "";
|
|
106
|
+
neutral: "";
|
|
107
|
+
secondary: "";
|
|
108
|
+
success: "";
|
|
109
|
+
danger: "";
|
|
110
|
+
info: "";
|
|
111
|
+
warning: "";
|
|
112
|
+
};
|
|
113
|
+
variant: {
|
|
114
|
+
solid: "";
|
|
115
|
+
soft: "";
|
|
116
|
+
outline: "";
|
|
117
|
+
ghost: "";
|
|
118
|
+
text: "";
|
|
119
|
+
};
|
|
120
|
+
size: {
|
|
121
|
+
sm: {
|
|
122
|
+
base: string;
|
|
123
|
+
leadingIcon: string;
|
|
124
|
+
trailingIcon: string;
|
|
125
|
+
};
|
|
126
|
+
md: {
|
|
127
|
+
base: string;
|
|
128
|
+
leadingIcon: string;
|
|
129
|
+
trailingIcon: string;
|
|
130
|
+
};
|
|
131
|
+
lg: {
|
|
132
|
+
base: string;
|
|
133
|
+
leadingIcon: string;
|
|
134
|
+
trailingIcon: string;
|
|
135
|
+
};
|
|
136
|
+
};
|
|
137
|
+
block: {
|
|
138
|
+
true: {
|
|
139
|
+
base: string;
|
|
140
|
+
};
|
|
141
|
+
};
|
|
142
|
+
raised: {
|
|
143
|
+
true: {
|
|
144
|
+
base: string;
|
|
145
|
+
};
|
|
146
|
+
};
|
|
147
|
+
square: {
|
|
148
|
+
true: {};
|
|
149
|
+
};
|
|
150
|
+
}, {
|
|
151
|
+
base: string;
|
|
152
|
+
leadingIcon: string;
|
|
153
|
+
trailingIcon: string;
|
|
154
|
+
}>>;
|
|
155
|
+
export type ButtonThemeSlots = keyof (typeof buttonTheme)['slots'];
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import { tv } from "tailwind-variants";
|
|
2
|
+
export const buttonTheme = tv({
|
|
3
|
+
slots: {
|
|
4
|
+
base: "inline-flex items-center justify-center gap-1.5 font-medium rounded-[var(--ui-radius-md)] transition-colors disabled:opacity-50 disabled:pointer-events-none focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[var(--ui-primary)]",
|
|
5
|
+
leadingIcon: "shrink-0",
|
|
6
|
+
trailingIcon: "shrink-0"
|
|
7
|
+
},
|
|
8
|
+
variants: {
|
|
9
|
+
color: {
|
|
10
|
+
primary: "",
|
|
11
|
+
neutral: "",
|
|
12
|
+
secondary: "",
|
|
13
|
+
success: "",
|
|
14
|
+
danger: "",
|
|
15
|
+
info: "",
|
|
16
|
+
warning: ""
|
|
17
|
+
},
|
|
18
|
+
variant: {
|
|
19
|
+
solid: "",
|
|
20
|
+
soft: "",
|
|
21
|
+
outline: "",
|
|
22
|
+
ghost: "",
|
|
23
|
+
text: ""
|
|
24
|
+
},
|
|
25
|
+
size: {
|
|
26
|
+
sm: { base: "h-8 px-3 text-sm", leadingIcon: "size-4", trailingIcon: "size-4" },
|
|
27
|
+
md: { base: "h-10 px-4 text-sm", leadingIcon: "size-4.5", trailingIcon: "size-4.5" },
|
|
28
|
+
lg: { base: "h-11 px-5 text-base", leadingIcon: "size-5", trailingIcon: "size-5" }
|
|
29
|
+
},
|
|
30
|
+
block: {
|
|
31
|
+
true: { base: "w-full" }
|
|
32
|
+
},
|
|
33
|
+
raised: {
|
|
34
|
+
true: { base: "shadow-[var(--ui-shadow-md)]" }
|
|
35
|
+
},
|
|
36
|
+
square: {
|
|
37
|
+
true: {}
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
compoundVariants: [
|
|
41
|
+
// Icon-only: swap the size's text-oriented horizontal padding for an
|
|
42
|
+
// equal-width square matching its own height.
|
|
43
|
+
{ size: "sm", square: true, class: { base: "w-8 px-0" } },
|
|
44
|
+
{ size: "md", square: true, class: { base: "w-10 px-0" } },
|
|
45
|
+
{ size: "lg", square: true, class: { base: "w-11 px-0" } },
|
|
46
|
+
// :active (mouse-down) always goes one step further than :hover in the
|
|
47
|
+
// same direction - solid presses to the -active (700) token, soft/
|
|
48
|
+
// outline/ghost (which have no visible bg by default, or a pale -soft
|
|
49
|
+
// one on hover) press to a stronger tint of the role's own main color
|
|
50
|
+
// rather than a new token. Tailwind's default variant order puts
|
|
51
|
+
// active after hover, so :active wins when both apply (mouse down
|
|
52
|
+
// while hovering) - no extra specificity needed.
|
|
53
|
+
{ color: "primary", variant: "solid", class: { base: "bg-[var(--ui-primary)] text-[var(--ui-primary-foreground)] hover:bg-[var(--ui-primary-hover)] active:bg-[var(--ui-primary-active)]" } },
|
|
54
|
+
{ color: "primary", variant: "soft", class: { base: "bg-[var(--ui-primary-soft)] text-[var(--ui-primary)] hover:bg-[var(--ui-primary-soft)]/70 active:bg-[var(--ui-primary)]/20" } },
|
|
55
|
+
{ color: "primary", variant: "outline", class: { base: "ring-1 ring-inset ring-[var(--ui-primary)] text-[var(--ui-primary)] hover:bg-[var(--ui-primary-soft)] active:bg-[var(--ui-primary)]/10" } },
|
|
56
|
+
{ color: "primary", variant: "ghost", class: { base: "text-[var(--ui-primary)] hover:bg-[var(--ui-primary-soft)] active:bg-[var(--ui-primary)]/10" } },
|
|
57
|
+
{ color: "neutral", variant: "solid", class: { base: "bg-[var(--ui-neutral)] text-[var(--ui-neutral-foreground)] hover:bg-[var(--ui-neutral-hover)] active:bg-[var(--ui-neutral-active)]" } },
|
|
58
|
+
{ color: "neutral", variant: "soft", class: { base: "bg-[var(--ui-neutral-soft)] text-[var(--ui-text)] hover:bg-[var(--ui-neutral-soft)]/70 active:bg-[var(--ui-neutral)]/20" } },
|
|
59
|
+
{ color: "neutral", variant: "outline", class: { base: "ring-1 ring-inset ring-[var(--ui-border)] text-[var(--ui-text)] hover:bg-[var(--ui-neutral-soft)] active:bg-[var(--ui-neutral)]/10" } },
|
|
60
|
+
{ color: "neutral", variant: "ghost", class: { base: "text-[var(--ui-text)] hover:bg-[var(--ui-neutral-soft)] active:bg-[var(--ui-neutral)]/10" } },
|
|
61
|
+
{ color: "secondary", variant: "solid", class: { base: "bg-[var(--ui-secondary)] text-[var(--ui-secondary-foreground)] hover:bg-[var(--ui-secondary-hover)] active:bg-[var(--ui-secondary-active)]" } },
|
|
62
|
+
{ color: "secondary", variant: "soft", class: { base: "bg-[var(--ui-secondary-soft)] text-[var(--ui-secondary)] hover:bg-[var(--ui-secondary-soft)]/70 active:bg-[var(--ui-secondary)]/20" } },
|
|
63
|
+
{ color: "secondary", variant: "outline", class: { base: "ring-1 ring-inset ring-[var(--ui-secondary)] text-[var(--ui-secondary)] hover:bg-[var(--ui-secondary-soft)] active:bg-[var(--ui-secondary)]/10" } },
|
|
64
|
+
{ color: "secondary", variant: "ghost", class: { base: "text-[var(--ui-secondary)] hover:bg-[var(--ui-secondary-soft)] active:bg-[var(--ui-secondary)]/10" } },
|
|
65
|
+
{ color: "success", variant: "solid", class: { base: "bg-[var(--ui-success)] text-[var(--ui-success-foreground)] hover:bg-[var(--ui-success-hover)] active:bg-[var(--ui-success-active)]" } },
|
|
66
|
+
{ color: "success", variant: "soft", class: { base: "bg-[var(--ui-success-soft)] text-[var(--ui-success)] hover:bg-[var(--ui-success-soft)]/70 active:bg-[var(--ui-success)]/20" } },
|
|
67
|
+
{ color: "success", variant: "outline", class: { base: "ring-1 ring-inset ring-[var(--ui-success)] text-[var(--ui-success)] hover:bg-[var(--ui-success-soft)] active:bg-[var(--ui-success)]/10" } },
|
|
68
|
+
{ color: "success", variant: "ghost", class: { base: "text-[var(--ui-success)] hover:bg-[var(--ui-success-soft)] active:bg-[var(--ui-success)]/10" } },
|
|
69
|
+
{ color: "danger", variant: "solid", class: { base: "bg-[var(--ui-danger)] text-[var(--ui-danger-foreground)] hover:bg-[var(--ui-danger-hover)] active:bg-[var(--ui-danger-active)]" } },
|
|
70
|
+
{ color: "danger", variant: "soft", class: { base: "bg-[var(--ui-danger-soft)] text-[var(--ui-danger)] hover:bg-[var(--ui-danger-soft)]/70 active:bg-[var(--ui-danger)]/20" } },
|
|
71
|
+
{ color: "danger", variant: "outline", class: { base: "ring-1 ring-inset ring-[var(--ui-danger)] text-[var(--ui-danger)] hover:bg-[var(--ui-danger-soft)] active:bg-[var(--ui-danger)]/10" } },
|
|
72
|
+
{ color: "danger", variant: "ghost", class: { base: "text-[var(--ui-danger)] hover:bg-[var(--ui-danger-soft)] active:bg-[var(--ui-danger)]/10" } },
|
|
73
|
+
{ color: "info", variant: "solid", class: { base: "bg-[var(--ui-info)] text-[var(--ui-info-foreground)] hover:bg-[var(--ui-info-hover)] active:bg-[var(--ui-info-active)]" } },
|
|
74
|
+
{ color: "info", variant: "soft", class: { base: "bg-[var(--ui-info-soft)] text-[var(--ui-info)] hover:bg-[var(--ui-info-soft)]/70 active:bg-[var(--ui-info)]/20" } },
|
|
75
|
+
{ color: "info", variant: "outline", class: { base: "ring-1 ring-inset ring-[var(--ui-info)] text-[var(--ui-info)] hover:bg-[var(--ui-info-soft)] active:bg-[var(--ui-info)]/10" } },
|
|
76
|
+
{ color: "info", variant: "ghost", class: { base: "text-[var(--ui-info)] hover:bg-[var(--ui-info-soft)] active:bg-[var(--ui-info)]/10" } },
|
|
77
|
+
{ color: "warning", variant: "solid", class: { base: "bg-[var(--ui-warning)] text-[var(--ui-warning-foreground)] hover:bg-[var(--ui-warning-hover)] active:bg-[var(--ui-warning-active)]" } },
|
|
78
|
+
{ color: "warning", variant: "soft", class: { base: "bg-[var(--ui-warning-soft)] text-[var(--ui-warning)] hover:bg-[var(--ui-warning-soft)]/70 active:bg-[var(--ui-warning)]/20" } },
|
|
79
|
+
{ color: "warning", variant: "outline", class: { base: "ring-1 ring-inset ring-[var(--ui-warning)] text-[var(--ui-warning)] hover:bg-[var(--ui-warning-soft)] active:bg-[var(--ui-warning)]/10" } },
|
|
80
|
+
{ color: "warning", variant: "ghost", class: { base: "text-[var(--ui-warning)] hover:bg-[var(--ui-warning-soft)] active:bg-[var(--ui-warning)]/10" } },
|
|
81
|
+
// `text`: for an icon button sitting tight against another control's own
|
|
82
|
+
// border (a field's clear button, a stepper) - `ghost`'s hover background
|
|
83
|
+
// fill would visually compete with that adjacent border, so this variant
|
|
84
|
+
// never paints a background at any state and only shifts the text/icon
|
|
85
|
+
// color on hover.
|
|
86
|
+
{ color: "primary", variant: "text", class: { base: "text-[var(--ui-primary)] hover:text-[var(--ui-primary-hover)]" } },
|
|
87
|
+
{ color: "neutral", variant: "text", class: { base: "text-[var(--ui-text-muted)] hover:text-[var(--ui-text)]" } },
|
|
88
|
+
{ color: "secondary", variant: "text", class: { base: "text-[var(--ui-secondary)] hover:text-[var(--ui-secondary-hover)]" } },
|
|
89
|
+
{ color: "success", variant: "text", class: { base: "text-[var(--ui-success)] hover:text-[var(--ui-success-hover)]" } },
|
|
90
|
+
{ color: "danger", variant: "text", class: { base: "text-[var(--ui-danger)] hover:text-[var(--ui-danger-hover)]" } },
|
|
91
|
+
{ color: "info", variant: "text", class: { base: "text-[var(--ui-info)] hover:text-[var(--ui-info-hover)]" } },
|
|
92
|
+
{ color: "warning", variant: "text", class: { base: "text-[var(--ui-warning)] hover:text-[var(--ui-warning-hover)]" } }
|
|
93
|
+
],
|
|
94
|
+
defaultVariants: {
|
|
95
|
+
color: "primary",
|
|
96
|
+
variant: "solid",
|
|
97
|
+
size: "md"
|
|
98
|
+
}
|
|
99
|
+
});
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
export declare const calloutTheme: import("tailwind-variants").TVReturnType<{
|
|
2
|
+
type: {
|
|
3
|
+
note: {
|
|
4
|
+
root: string;
|
|
5
|
+
icon: string;
|
|
6
|
+
};
|
|
7
|
+
tip: {
|
|
8
|
+
root: string;
|
|
9
|
+
icon: string;
|
|
10
|
+
};
|
|
11
|
+
warning: {
|
|
12
|
+
root: string;
|
|
13
|
+
icon: string;
|
|
14
|
+
};
|
|
15
|
+
danger: {
|
|
16
|
+
root: string;
|
|
17
|
+
icon: string;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
}, {
|
|
21
|
+
root: string;
|
|
22
|
+
icon: string;
|
|
23
|
+
content: string;
|
|
24
|
+
title: string;
|
|
25
|
+
}, undefined, {
|
|
26
|
+
type: {
|
|
27
|
+
note: {
|
|
28
|
+
root: string;
|
|
29
|
+
icon: string;
|
|
30
|
+
};
|
|
31
|
+
tip: {
|
|
32
|
+
root: string;
|
|
33
|
+
icon: string;
|
|
34
|
+
};
|
|
35
|
+
warning: {
|
|
36
|
+
root: string;
|
|
37
|
+
icon: string;
|
|
38
|
+
};
|
|
39
|
+
danger: {
|
|
40
|
+
root: string;
|
|
41
|
+
icon: string;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
}, {
|
|
45
|
+
root: string;
|
|
46
|
+
icon: string;
|
|
47
|
+
content: string;
|
|
48
|
+
title: string;
|
|
49
|
+
}, import("tailwind-variants").TVReturnTypeLike<{
|
|
50
|
+
type: {
|
|
51
|
+
note: {
|
|
52
|
+
root: string;
|
|
53
|
+
icon: string;
|
|
54
|
+
};
|
|
55
|
+
tip: {
|
|
56
|
+
root: string;
|
|
57
|
+
icon: string;
|
|
58
|
+
};
|
|
59
|
+
warning: {
|
|
60
|
+
root: string;
|
|
61
|
+
icon: string;
|
|
62
|
+
};
|
|
63
|
+
danger: {
|
|
64
|
+
root: string;
|
|
65
|
+
icon: string;
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
}, {
|
|
69
|
+
root: string;
|
|
70
|
+
icon: string;
|
|
71
|
+
content: string;
|
|
72
|
+
title: string;
|
|
73
|
+
}>>;
|
|
74
|
+
export type CalloutThemeSlots = keyof (typeof calloutTheme)['slots'];
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { tv } from "tailwind-variants";
|
|
2
|
+
export const calloutTheme = tv({
|
|
3
|
+
slots: {
|
|
4
|
+
// Border-only accent (not a filled background like Alert) - a callout
|
|
5
|
+
// sits inline in a long stretch of prose, so it stays closer to a
|
|
6
|
+
// styled blockquote than a standalone UI element.
|
|
7
|
+
root: "flex gap-3 rounded-[var(--ui-radius-md)] border-s-4 bg-[var(--ui-bg-elevated)] p-4",
|
|
8
|
+
icon: "mt-0.5 size-5 shrink-0",
|
|
9
|
+
content: "min-w-0 flex-1 text-sm text-[var(--ui-text-muted)] [&>:first-child]:mt-0 [&>:last-child]:mb-0",
|
|
10
|
+
title: "font-medium text-[var(--ui-text)]"
|
|
11
|
+
},
|
|
12
|
+
variants: {
|
|
13
|
+
type: {
|
|
14
|
+
note: { root: "border-s-[var(--ui-info)]", icon: "text-[var(--ui-info)]" },
|
|
15
|
+
tip: { root: "border-s-[var(--ui-success)]", icon: "text-[var(--ui-success)]" },
|
|
16
|
+
warning: { root: "border-s-[var(--ui-warning)]", icon: "text-[var(--ui-warning)]" },
|
|
17
|
+
danger: { root: "border-s-[var(--ui-danger)]", icon: "text-[var(--ui-danger)]" }
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
defaultVariants: {
|
|
21
|
+
type: "note"
|
|
22
|
+
}
|
|
23
|
+
});
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
export declare const cardGroupTheme: import("tailwind-variants").TVReturnType<{
|
|
2
|
+
cols: {
|
|
3
|
+
2: {
|
|
4
|
+
root: string;
|
|
5
|
+
};
|
|
6
|
+
3: {
|
|
7
|
+
root: string;
|
|
8
|
+
};
|
|
9
|
+
4: {
|
|
10
|
+
root: string;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
}, {
|
|
14
|
+
root: string;
|
|
15
|
+
}, undefined, {
|
|
16
|
+
cols: {
|
|
17
|
+
2: {
|
|
18
|
+
root: string;
|
|
19
|
+
};
|
|
20
|
+
3: {
|
|
21
|
+
root: string;
|
|
22
|
+
};
|
|
23
|
+
4: {
|
|
24
|
+
root: string;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
}, {
|
|
28
|
+
root: string;
|
|
29
|
+
}, import("tailwind-variants").TVReturnTypeLike<{
|
|
30
|
+
cols: {
|
|
31
|
+
2: {
|
|
32
|
+
root: string;
|
|
33
|
+
};
|
|
34
|
+
3: {
|
|
35
|
+
root: string;
|
|
36
|
+
};
|
|
37
|
+
4: {
|
|
38
|
+
root: string;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
}, {
|
|
42
|
+
root: string;
|
|
43
|
+
}>>;
|
|
44
|
+
export type CardGroupThemeSlots = keyof (typeof cardGroupTheme)['slots'];
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { tv } from "tailwind-variants";
|
|
2
|
+
export const cardGroupTheme = tv({
|
|
3
|
+
slots: {
|
|
4
|
+
root: "grid grid-cols-1 gap-4"
|
|
5
|
+
},
|
|
6
|
+
variants: {
|
|
7
|
+
// Matches Card's own most common comparison use (two options, a
|
|
8
|
+
// before/after) as the default - `cols={3}` covers a wider spread
|
|
9
|
+
// without needing an arbitrary `ui` override for the common cases.
|
|
10
|
+
cols: {
|
|
11
|
+
2: { root: "sm:grid-cols-2" },
|
|
12
|
+
3: { root: "sm:grid-cols-2 lg:grid-cols-3" },
|
|
13
|
+
4: { root: "sm:grid-cols-2 lg:grid-cols-4" }
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
defaultVariants: {
|
|
17
|
+
cols: 2
|
|
18
|
+
}
|
|
19
|
+
});
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
export declare const cardTheme: import("tailwind-variants").TVReturnType<{
|
|
2
|
+
variant: {
|
|
3
|
+
outline: {
|
|
4
|
+
root: string;
|
|
5
|
+
};
|
|
6
|
+
solid: {
|
|
7
|
+
root: string;
|
|
8
|
+
};
|
|
9
|
+
soft: {
|
|
10
|
+
root: string;
|
|
11
|
+
};
|
|
12
|
+
subtle: {
|
|
13
|
+
root: string;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
}, {
|
|
17
|
+
root: string;
|
|
18
|
+
header: string;
|
|
19
|
+
body: string;
|
|
20
|
+
footer: string;
|
|
21
|
+
}, undefined, {
|
|
22
|
+
variant: {
|
|
23
|
+
outline: {
|
|
24
|
+
root: string;
|
|
25
|
+
};
|
|
26
|
+
solid: {
|
|
27
|
+
root: string;
|
|
28
|
+
};
|
|
29
|
+
soft: {
|
|
30
|
+
root: string;
|
|
31
|
+
};
|
|
32
|
+
subtle: {
|
|
33
|
+
root: string;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
}, {
|
|
37
|
+
root: string;
|
|
38
|
+
header: string;
|
|
39
|
+
body: string;
|
|
40
|
+
footer: string;
|
|
41
|
+
}, import("tailwind-variants").TVReturnTypeLike<{
|
|
42
|
+
variant: {
|
|
43
|
+
outline: {
|
|
44
|
+
root: string;
|
|
45
|
+
};
|
|
46
|
+
solid: {
|
|
47
|
+
root: string;
|
|
48
|
+
};
|
|
49
|
+
soft: {
|
|
50
|
+
root: string;
|
|
51
|
+
};
|
|
52
|
+
subtle: {
|
|
53
|
+
root: string;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
}, {
|
|
57
|
+
root: string;
|
|
58
|
+
header: string;
|
|
59
|
+
body: string;
|
|
60
|
+
footer: string;
|
|
61
|
+
}>>;
|
|
62
|
+
export type CardThemeSlots = keyof (typeof cardTheme)['slots'];
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { tv } from "tailwind-variants";
|
|
2
|
+
export const cardTheme = tv({
|
|
3
|
+
slots: {
|
|
4
|
+
root: "rounded-[var(--ui-radius-md)] overflow-hidden",
|
|
5
|
+
header: "p-4 border-b border-[var(--ui-border)]",
|
|
6
|
+
body: "p-4",
|
|
7
|
+
footer: "p-4 border-t border-[var(--ui-border)]"
|
|
8
|
+
},
|
|
9
|
+
variants: {
|
|
10
|
+
variant: {
|
|
11
|
+
outline: { root: "bg-[var(--ui-bg)] ring-1 ring-[var(--ui-border)]" },
|
|
12
|
+
solid: { root: "bg-[var(--ui-bg-elevated)] shadow-[var(--ui-shadow-md)]" },
|
|
13
|
+
soft: { root: "bg-[var(--ui-bg-elevated)]" },
|
|
14
|
+
// Same elevated background as soft, plus outline's own border - a
|
|
15
|
+
// middle ground between the two rather than a combination of their
|
|
16
|
+
// literal classes, so it stays its own single, ordinary variant.
|
|
17
|
+
subtle: { root: "bg-[var(--ui-bg-elevated)] ring-1 ring-[var(--ui-border)]" }
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
defaultVariants: {
|
|
21
|
+
variant: "outline"
|
|
22
|
+
}
|
|
23
|
+
});
|