@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,185 @@
|
|
|
1
|
+
export declare const inputTheme: import("tailwind-variants").TVReturnType<{
|
|
2
|
+
size: {
|
|
3
|
+
sm: {
|
|
4
|
+
base: string;
|
|
5
|
+
leadingIcon: string;
|
|
6
|
+
trailingIcon: string;
|
|
7
|
+
clear: string;
|
|
8
|
+
};
|
|
9
|
+
md: {
|
|
10
|
+
base: string;
|
|
11
|
+
leadingIcon: string;
|
|
12
|
+
trailingIcon: string;
|
|
13
|
+
clear: string;
|
|
14
|
+
};
|
|
15
|
+
lg: {
|
|
16
|
+
base: string;
|
|
17
|
+
leadingIcon: string;
|
|
18
|
+
trailingIcon: string;
|
|
19
|
+
clear: string;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
color: {
|
|
23
|
+
primary: {
|
|
24
|
+
base: string;
|
|
25
|
+
};
|
|
26
|
+
neutral: {
|
|
27
|
+
base: string;
|
|
28
|
+
};
|
|
29
|
+
secondary: {
|
|
30
|
+
base: string;
|
|
31
|
+
};
|
|
32
|
+
success: {
|
|
33
|
+
base: string;
|
|
34
|
+
};
|
|
35
|
+
danger: {
|
|
36
|
+
base: string;
|
|
37
|
+
};
|
|
38
|
+
info: {
|
|
39
|
+
base: string;
|
|
40
|
+
};
|
|
41
|
+
warning: {
|
|
42
|
+
base: string;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
hasLeadingIcon: {
|
|
46
|
+
true: {};
|
|
47
|
+
};
|
|
48
|
+
hasTrailingIcon: {
|
|
49
|
+
true: {};
|
|
50
|
+
};
|
|
51
|
+
invalid: {
|
|
52
|
+
true: {
|
|
53
|
+
base: string;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
}, {
|
|
57
|
+
root: string;
|
|
58
|
+
base: string;
|
|
59
|
+
leadingIcon: string;
|
|
60
|
+
trailingIcon: string;
|
|
61
|
+
clear: string;
|
|
62
|
+
}, undefined, {
|
|
63
|
+
size: {
|
|
64
|
+
sm: {
|
|
65
|
+
base: string;
|
|
66
|
+
leadingIcon: string;
|
|
67
|
+
trailingIcon: string;
|
|
68
|
+
clear: string;
|
|
69
|
+
};
|
|
70
|
+
md: {
|
|
71
|
+
base: string;
|
|
72
|
+
leadingIcon: string;
|
|
73
|
+
trailingIcon: string;
|
|
74
|
+
clear: string;
|
|
75
|
+
};
|
|
76
|
+
lg: {
|
|
77
|
+
base: string;
|
|
78
|
+
leadingIcon: string;
|
|
79
|
+
trailingIcon: string;
|
|
80
|
+
clear: string;
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
color: {
|
|
84
|
+
primary: {
|
|
85
|
+
base: string;
|
|
86
|
+
};
|
|
87
|
+
neutral: {
|
|
88
|
+
base: string;
|
|
89
|
+
};
|
|
90
|
+
secondary: {
|
|
91
|
+
base: string;
|
|
92
|
+
};
|
|
93
|
+
success: {
|
|
94
|
+
base: string;
|
|
95
|
+
};
|
|
96
|
+
danger: {
|
|
97
|
+
base: string;
|
|
98
|
+
};
|
|
99
|
+
info: {
|
|
100
|
+
base: string;
|
|
101
|
+
};
|
|
102
|
+
warning: {
|
|
103
|
+
base: string;
|
|
104
|
+
};
|
|
105
|
+
};
|
|
106
|
+
hasLeadingIcon: {
|
|
107
|
+
true: {};
|
|
108
|
+
};
|
|
109
|
+
hasTrailingIcon: {
|
|
110
|
+
true: {};
|
|
111
|
+
};
|
|
112
|
+
invalid: {
|
|
113
|
+
true: {
|
|
114
|
+
base: string;
|
|
115
|
+
};
|
|
116
|
+
};
|
|
117
|
+
}, {
|
|
118
|
+
root: string;
|
|
119
|
+
base: string;
|
|
120
|
+
leadingIcon: string;
|
|
121
|
+
trailingIcon: string;
|
|
122
|
+
clear: string;
|
|
123
|
+
}, import("tailwind-variants").TVReturnTypeLike<{
|
|
124
|
+
size: {
|
|
125
|
+
sm: {
|
|
126
|
+
base: string;
|
|
127
|
+
leadingIcon: string;
|
|
128
|
+
trailingIcon: string;
|
|
129
|
+
clear: string;
|
|
130
|
+
};
|
|
131
|
+
md: {
|
|
132
|
+
base: string;
|
|
133
|
+
leadingIcon: string;
|
|
134
|
+
trailingIcon: string;
|
|
135
|
+
clear: string;
|
|
136
|
+
};
|
|
137
|
+
lg: {
|
|
138
|
+
base: string;
|
|
139
|
+
leadingIcon: string;
|
|
140
|
+
trailingIcon: string;
|
|
141
|
+
clear: string;
|
|
142
|
+
};
|
|
143
|
+
};
|
|
144
|
+
color: {
|
|
145
|
+
primary: {
|
|
146
|
+
base: string;
|
|
147
|
+
};
|
|
148
|
+
neutral: {
|
|
149
|
+
base: string;
|
|
150
|
+
};
|
|
151
|
+
secondary: {
|
|
152
|
+
base: string;
|
|
153
|
+
};
|
|
154
|
+
success: {
|
|
155
|
+
base: string;
|
|
156
|
+
};
|
|
157
|
+
danger: {
|
|
158
|
+
base: string;
|
|
159
|
+
};
|
|
160
|
+
info: {
|
|
161
|
+
base: string;
|
|
162
|
+
};
|
|
163
|
+
warning: {
|
|
164
|
+
base: string;
|
|
165
|
+
};
|
|
166
|
+
};
|
|
167
|
+
hasLeadingIcon: {
|
|
168
|
+
true: {};
|
|
169
|
+
};
|
|
170
|
+
hasTrailingIcon: {
|
|
171
|
+
true: {};
|
|
172
|
+
};
|
|
173
|
+
invalid: {
|
|
174
|
+
true: {
|
|
175
|
+
base: string;
|
|
176
|
+
};
|
|
177
|
+
};
|
|
178
|
+
}, {
|
|
179
|
+
root: string;
|
|
180
|
+
base: string;
|
|
181
|
+
leadingIcon: string;
|
|
182
|
+
trailingIcon: string;
|
|
183
|
+
clear: string;
|
|
184
|
+
}>>;
|
|
185
|
+
export type InputThemeSlots = keyof (typeof inputTheme)['slots'];
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { tv } from "tailwind-variants";
|
|
2
|
+
export const inputTheme = tv({
|
|
3
|
+
slots: {
|
|
4
|
+
root: "relative inline-flex items-center w-full",
|
|
5
|
+
// not-focus: on the hover ring - without it, hovering while focused
|
|
6
|
+
// (unavoidable while the pointer sits on the input) let the plain gray
|
|
7
|
+
// hover ring beat the primary focus ring, since both are equal-
|
|
8
|
+
// specificity pseudo-class selectors and hover's happened to win. The
|
|
9
|
+
// focus ring's own color comes from the `color` variant below, not
|
|
10
|
+
// hardcoded here - hover's own color stays neutral regardless of
|
|
11
|
+
// `color`, matching every other component's own hover state.
|
|
12
|
+
base: "w-full rounded-[var(--ui-radius-md)] bg-[var(--ui-bg)] text-[var(--ui-text)] ring-1 ring-inset ring-[var(--ui-border)] placeholder:text-[var(--ui-text-muted)] outline-none transition-[color,background-color,box-shadow] not-focus:hover:ring-[var(--ui-border-hover)] hover:bg-[var(--ui-bg-elevated)] focus:ring-2 disabled:opacity-50 disabled:pointer-events-none",
|
|
13
|
+
leadingIcon: "absolute start-2.5 shrink-0 text-[var(--ui-text-muted)]",
|
|
14
|
+
trailingIcon: "absolute end-2.5 shrink-0 text-[var(--ui-text-muted)]",
|
|
15
|
+
// A separate slot from trailingIcon (not reused) - that one is a
|
|
16
|
+
// decorative, non-interactive icon; this is a real dismiss button.
|
|
17
|
+
// Rendered as an <SButton> (ghost/neutral) - real chrome, focus ring
|
|
18
|
+
// and rounded-full (this dismiss-glyph family reads better circular
|
|
19
|
+
// than the library's usual rounded-md) come from Button's own theme;
|
|
20
|
+
// this slot only positions it and shrinks it below the input's full
|
|
21
|
+
// height (Button's own size steps match that height exactly, which
|
|
22
|
+
// once centered still touches both edges with zero margin) - explicit
|
|
23
|
+
// top-1/2 -translate-y-1/2 centering, not the root's items-center,
|
|
24
|
+
// since position:absolute drops it out of that flex flow.
|
|
25
|
+
clear: "absolute end-1 top-1/2 -translate-y-1/2 shrink-0 rounded-full"
|
|
26
|
+
},
|
|
27
|
+
variants: {
|
|
28
|
+
size: {
|
|
29
|
+
sm: { base: "h-8 px-2.5 text-sm", leadingIcon: "size-4", trailingIcon: "size-4", clear: "size-7" },
|
|
30
|
+
md: { base: "h-10 px-3 text-sm", leadingIcon: "size-4.5", trailingIcon: "size-4.5", clear: "size-9" },
|
|
31
|
+
lg: { base: "h-11 px-3.5 text-base", leadingIcon: "size-5", trailingIcon: "size-5", clear: "size-10" }
|
|
32
|
+
},
|
|
33
|
+
// Focus-ring color only - the resting ring stays --ui-border regardless
|
|
34
|
+
// of `color`, matching a Nuxt-ecosystem component kit's own Input
|
|
35
|
+
// (confirmed by reading its docs directly, not assumed).
|
|
36
|
+
color: {
|
|
37
|
+
primary: { base: "focus:ring-[var(--ui-primary)]" },
|
|
38
|
+
neutral: { base: "focus:ring-[var(--ui-bg-inverted)]" },
|
|
39
|
+
secondary: { base: "focus:ring-[var(--ui-secondary)]" },
|
|
40
|
+
success: { base: "focus:ring-[var(--ui-success)]" },
|
|
41
|
+
danger: { base: "focus:ring-[var(--ui-danger)]" },
|
|
42
|
+
info: { base: "focus:ring-[var(--ui-info)]" },
|
|
43
|
+
warning: { base: "focus:ring-[var(--ui-warning)]" }
|
|
44
|
+
},
|
|
45
|
+
hasLeadingIcon: {
|
|
46
|
+
true: {}
|
|
47
|
+
},
|
|
48
|
+
hasTrailingIcon: {
|
|
49
|
+
true: {}
|
|
50
|
+
},
|
|
51
|
+
// Declared last (after color) so tailwind-merge lets its own focus:ring
|
|
52
|
+
// override win over color's - invalid should always show danger
|
|
53
|
+
// regardless of what color was also requested. See this session's own
|
|
54
|
+
// Checkbox/Switch fix for why declaration order (not runtime call
|
|
55
|
+
// order) is what decides this.
|
|
56
|
+
invalid: {
|
|
57
|
+
true: { base: "ring-[var(--ui-danger)] hover:ring-[var(--ui-danger)] focus:ring-[var(--ui-danger)]" }
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
compoundVariants: [
|
|
61
|
+
{ size: "sm", hasLeadingIcon: true, class: { base: "ps-8" } },
|
|
62
|
+
{ size: "md", hasLeadingIcon: true, class: { base: "ps-9" } },
|
|
63
|
+
{ size: "lg", hasLeadingIcon: true, class: { base: "ps-10" } },
|
|
64
|
+
{ size: "sm", hasTrailingIcon: true, class: { base: "pe-8" } },
|
|
65
|
+
{ size: "md", hasTrailingIcon: true, class: { base: "pe-9" } },
|
|
66
|
+
{ size: "lg", hasTrailingIcon: true, class: { base: "pe-10" } }
|
|
67
|
+
],
|
|
68
|
+
defaultVariants: {
|
|
69
|
+
size: "md",
|
|
70
|
+
color: "primary"
|
|
71
|
+
}
|
|
72
|
+
});
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
export declare const kbdTheme: import("tailwind-variants").TVReturnType<{
|
|
2
|
+
size: {
|
|
3
|
+
sm: {
|
|
4
|
+
base: string;
|
|
5
|
+
};
|
|
6
|
+
md: {
|
|
7
|
+
base: string;
|
|
8
|
+
};
|
|
9
|
+
lg: {
|
|
10
|
+
base: string;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
}, {
|
|
14
|
+
base: string;
|
|
15
|
+
}, undefined, {
|
|
16
|
+
size: {
|
|
17
|
+
sm: {
|
|
18
|
+
base: string;
|
|
19
|
+
};
|
|
20
|
+
md: {
|
|
21
|
+
base: string;
|
|
22
|
+
};
|
|
23
|
+
lg: {
|
|
24
|
+
base: string;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
}, {
|
|
28
|
+
base: string;
|
|
29
|
+
}, import("tailwind-variants").TVReturnTypeLike<{
|
|
30
|
+
size: {
|
|
31
|
+
sm: {
|
|
32
|
+
base: string;
|
|
33
|
+
};
|
|
34
|
+
md: {
|
|
35
|
+
base: string;
|
|
36
|
+
};
|
|
37
|
+
lg: {
|
|
38
|
+
base: string;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
}, {
|
|
42
|
+
base: string;
|
|
43
|
+
}>>;
|
|
44
|
+
export type KbdThemeSlots = keyof (typeof kbdTheme)['slots'];
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { tv } from "tailwind-variants";
|
|
2
|
+
export const kbdTheme = tv({
|
|
3
|
+
slots: {
|
|
4
|
+
base: "inline-flex items-center justify-center rounded-[var(--ui-radius-sm)] border border-[var(--ui-border)] bg-[var(--ui-bg-elevated)] font-mono font-medium text-[var(--ui-text-muted)]"
|
|
5
|
+
},
|
|
6
|
+
variants: {
|
|
7
|
+
size: {
|
|
8
|
+
sm: { base: "h-4.5 min-w-4.5 px-1 text-[10px]" },
|
|
9
|
+
md: { base: "h-5 min-w-5 px-1.5 text-xs" },
|
|
10
|
+
lg: { base: "h-6 min-w-6 px-2 text-sm" }
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
defaultVariants: {
|
|
14
|
+
size: "md"
|
|
15
|
+
}
|
|
16
|
+
});
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
export declare const modalTheme: import("tailwind-variants").TVReturnType<{
|
|
2
|
+
fullscreen: {
|
|
3
|
+
true: {
|
|
4
|
+
content: string;
|
|
5
|
+
};
|
|
6
|
+
};
|
|
7
|
+
transition: {
|
|
8
|
+
true: {
|
|
9
|
+
overlay: string;
|
|
10
|
+
content: string;
|
|
11
|
+
};
|
|
12
|
+
false: {};
|
|
13
|
+
};
|
|
14
|
+
}, {
|
|
15
|
+
overlay: string;
|
|
16
|
+
content: string;
|
|
17
|
+
header: string;
|
|
18
|
+
title: string;
|
|
19
|
+
description: string;
|
|
20
|
+
headerActions: string;
|
|
21
|
+
close: string;
|
|
22
|
+
maximize: string;
|
|
23
|
+
body: string;
|
|
24
|
+
footer: string;
|
|
25
|
+
}, undefined, {
|
|
26
|
+
fullscreen: {
|
|
27
|
+
true: {
|
|
28
|
+
content: string;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
transition: {
|
|
32
|
+
true: {
|
|
33
|
+
overlay: string;
|
|
34
|
+
content: string;
|
|
35
|
+
};
|
|
36
|
+
false: {};
|
|
37
|
+
};
|
|
38
|
+
}, {
|
|
39
|
+
overlay: string;
|
|
40
|
+
content: string;
|
|
41
|
+
header: string;
|
|
42
|
+
title: string;
|
|
43
|
+
description: string;
|
|
44
|
+
headerActions: string;
|
|
45
|
+
close: string;
|
|
46
|
+
maximize: string;
|
|
47
|
+
body: string;
|
|
48
|
+
footer: string;
|
|
49
|
+
}, import("tailwind-variants").TVReturnTypeLike<{
|
|
50
|
+
fullscreen: {
|
|
51
|
+
true: {
|
|
52
|
+
content: string;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
transition: {
|
|
56
|
+
true: {
|
|
57
|
+
overlay: string;
|
|
58
|
+
content: string;
|
|
59
|
+
};
|
|
60
|
+
false: {};
|
|
61
|
+
};
|
|
62
|
+
}, {
|
|
63
|
+
overlay: string;
|
|
64
|
+
content: string;
|
|
65
|
+
header: string;
|
|
66
|
+
title: string;
|
|
67
|
+
description: string;
|
|
68
|
+
headerActions: string;
|
|
69
|
+
close: string;
|
|
70
|
+
maximize: string;
|
|
71
|
+
body: string;
|
|
72
|
+
footer: string;
|
|
73
|
+
}>>;
|
|
74
|
+
export type ModalThemeSlots = keyof (typeof modalTheme)['slots'];
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { tv } from "tailwind-variants";
|
|
2
|
+
export const modalTheme = tv({
|
|
3
|
+
slots: {
|
|
4
|
+
overlay: "fixed inset-0 z-[var(--ui-z-modal-overlay)] bg-black/50",
|
|
5
|
+
// flex flex-col + the header/footer's own shrink-0 (native to a flex
|
|
6
|
+
// child, no extra class needed) let a tall body scroll internally via
|
|
7
|
+
// its own overflow-y-auto below, capped to the viewport height so a
|
|
8
|
+
// centered dialog can never overflow past the screen edges regardless
|
|
9
|
+
// of content length.
|
|
10
|
+
content: "fixed left-1/2 top-1/2 z-[var(--ui-z-modal)] flex max-h-[calc(100vh-2rem)] w-[calc(100%-2rem)] max-w-md -translate-x-1/2 -translate-y-1/2 flex-col rounded-[var(--ui-radius-lg)] bg-[var(--ui-bg)] shadow-[var(--ui-shadow-lg)] focus:outline-none",
|
|
11
|
+
header: "flex items-start justify-between gap-4 p-4 sm:px-6",
|
|
12
|
+
title: "text-base font-semibold text-[var(--ui-text)]",
|
|
13
|
+
description: "mt-1 text-sm text-[var(--ui-text-muted)]",
|
|
14
|
+
// Groups the maximize + close buttons as header's second flex item, so
|
|
15
|
+
// `header`'s own justify-between still splits [title block] / [buttons]
|
|
16
|
+
// correctly regardless of how many buttons are actually shown.
|
|
17
|
+
headerActions: "flex shrink-0 items-center gap-1",
|
|
18
|
+
// Rendered as an <SButton> (ghost/neutral) - real chrome, focus ring and
|
|
19
|
+
// touch target now come from Button's own theme; rounded-full overrides
|
|
20
|
+
// its default rounded-md just for this dismiss-glyph family (close/clear).
|
|
21
|
+
close: "shrink-0 rounded-full",
|
|
22
|
+
maximize: "shrink-0 rounded-full",
|
|
23
|
+
// flex-1 - without it, body only grows to its own content's height, so
|
|
24
|
+
// in `fullscreen` (a real fixed h-full, not just a max-h cap) the
|
|
25
|
+
// footer ends up stranded right after a short body instead of pinned
|
|
26
|
+
// to the bottom of the viewport. Harmless for the default compact
|
|
27
|
+
// card too: a flex-growing child in a max-h-capped column still just
|
|
28
|
+
// shrinks to fit short content the same as before - this only matters
|
|
29
|
+
// once the column's own height is truly fixed, not merely capped.
|
|
30
|
+
body: "flex-1 overflow-y-auto p-4 sm:px-6",
|
|
31
|
+
footer: "flex items-center justify-end gap-2 p-4 sm:px-6"
|
|
32
|
+
},
|
|
33
|
+
variants: {
|
|
34
|
+
fullscreen: {
|
|
35
|
+
true: { content: "inset-0 h-full max-h-none w-full max-w-none translate-x-0 translate-y-0 rounded-none" }
|
|
36
|
+
},
|
|
37
|
+
// The animation classes live entirely in this variant rather than the
|
|
38
|
+
// base slot strings above - tailwind-merge doesn't know `animate-in`/
|
|
39
|
+
// `animate-none` conflict (they're `tw-animate-css` utilities, not
|
|
40
|
+
// core Tailwind, so they're outside its built-in conflict map), so
|
|
41
|
+
// adding an `animate-none` override on top of an already-present
|
|
42
|
+
// `animate-in` in the base string does NOT replace it - both classes
|
|
43
|
+
// would just coexist in the final string. Keeping the "on" state's
|
|
44
|
+
// classes here too (not just "off") sidesteps that entirely: only one
|
|
45
|
+
// branch's classes are ever present at once, nothing to conflict-
|
|
46
|
+
// resolve at all.
|
|
47
|
+
transition: {
|
|
48
|
+
true: {
|
|
49
|
+
overlay: "data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=closed]:animate-out data-[state=closed]:fade-out-0",
|
|
50
|
+
content: "data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95"
|
|
51
|
+
},
|
|
52
|
+
false: {}
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
defaultVariants: {
|
|
56
|
+
transition: true
|
|
57
|
+
}
|
|
58
|
+
});
|
|
@@ -0,0 +1,224 @@
|
|
|
1
|
+
export declare const navigationMenuTheme: import("tailwind-variants").TVReturnType<{
|
|
2
|
+
orientation: {
|
|
3
|
+
horizontal: {
|
|
4
|
+
root: string;
|
|
5
|
+
list: string;
|
|
6
|
+
content: string;
|
|
7
|
+
childList: string;
|
|
8
|
+
};
|
|
9
|
+
vertical: {
|
|
10
|
+
root: string;
|
|
11
|
+
list: string;
|
|
12
|
+
content: string;
|
|
13
|
+
childList: string;
|
|
14
|
+
childItem: string;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
color: {
|
|
18
|
+
primary: "";
|
|
19
|
+
neutral: "";
|
|
20
|
+
secondary: "";
|
|
21
|
+
success: "";
|
|
22
|
+
danger: "";
|
|
23
|
+
info: "";
|
|
24
|
+
warning: "";
|
|
25
|
+
};
|
|
26
|
+
variant: {
|
|
27
|
+
pill: "";
|
|
28
|
+
link: "";
|
|
29
|
+
};
|
|
30
|
+
active: {
|
|
31
|
+
true: {};
|
|
32
|
+
false: {
|
|
33
|
+
link: string;
|
|
34
|
+
childLink: string;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
disabled: {
|
|
38
|
+
true: {
|
|
39
|
+
link: string;
|
|
40
|
+
childLink: string;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
highlight: {
|
|
44
|
+
true: {};
|
|
45
|
+
};
|
|
46
|
+
collapsed: {
|
|
47
|
+
true: {
|
|
48
|
+
link: string;
|
|
49
|
+
linkLabel: string;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
flyoutRoot: {
|
|
53
|
+
true: {
|
|
54
|
+
childList: string;
|
|
55
|
+
childItem: string;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
}, {
|
|
59
|
+
root: string;
|
|
60
|
+
list: string;
|
|
61
|
+
item: string;
|
|
62
|
+
link: string;
|
|
63
|
+
linkIcon: string;
|
|
64
|
+
linkIconFallback: string;
|
|
65
|
+
linkLabel: string;
|
|
66
|
+
linkTrailingIcon: string;
|
|
67
|
+
content: string;
|
|
68
|
+
viewport: string;
|
|
69
|
+
childList: string;
|
|
70
|
+
childItem: string;
|
|
71
|
+
childLink: string;
|
|
72
|
+
childLinkLabel: string;
|
|
73
|
+
groupLabel: string;
|
|
74
|
+
separator: string;
|
|
75
|
+
}, undefined, {
|
|
76
|
+
orientation: {
|
|
77
|
+
horizontal: {
|
|
78
|
+
root: string;
|
|
79
|
+
list: string;
|
|
80
|
+
content: string;
|
|
81
|
+
childList: string;
|
|
82
|
+
};
|
|
83
|
+
vertical: {
|
|
84
|
+
root: string;
|
|
85
|
+
list: string;
|
|
86
|
+
content: string;
|
|
87
|
+
childList: string;
|
|
88
|
+
childItem: string;
|
|
89
|
+
};
|
|
90
|
+
};
|
|
91
|
+
color: {
|
|
92
|
+
primary: "";
|
|
93
|
+
neutral: "";
|
|
94
|
+
secondary: "";
|
|
95
|
+
success: "";
|
|
96
|
+
danger: "";
|
|
97
|
+
info: "";
|
|
98
|
+
warning: "";
|
|
99
|
+
};
|
|
100
|
+
variant: {
|
|
101
|
+
pill: "";
|
|
102
|
+
link: "";
|
|
103
|
+
};
|
|
104
|
+
active: {
|
|
105
|
+
true: {};
|
|
106
|
+
false: {
|
|
107
|
+
link: string;
|
|
108
|
+
childLink: string;
|
|
109
|
+
};
|
|
110
|
+
};
|
|
111
|
+
disabled: {
|
|
112
|
+
true: {
|
|
113
|
+
link: string;
|
|
114
|
+
childLink: string;
|
|
115
|
+
};
|
|
116
|
+
};
|
|
117
|
+
highlight: {
|
|
118
|
+
true: {};
|
|
119
|
+
};
|
|
120
|
+
collapsed: {
|
|
121
|
+
true: {
|
|
122
|
+
link: string;
|
|
123
|
+
linkLabel: string;
|
|
124
|
+
};
|
|
125
|
+
};
|
|
126
|
+
flyoutRoot: {
|
|
127
|
+
true: {
|
|
128
|
+
childList: string;
|
|
129
|
+
childItem: string;
|
|
130
|
+
};
|
|
131
|
+
};
|
|
132
|
+
}, {
|
|
133
|
+
root: string;
|
|
134
|
+
list: string;
|
|
135
|
+
item: string;
|
|
136
|
+
link: string;
|
|
137
|
+
linkIcon: string;
|
|
138
|
+
linkIconFallback: string;
|
|
139
|
+
linkLabel: string;
|
|
140
|
+
linkTrailingIcon: string;
|
|
141
|
+
content: string;
|
|
142
|
+
viewport: string;
|
|
143
|
+
childList: string;
|
|
144
|
+
childItem: string;
|
|
145
|
+
childLink: string;
|
|
146
|
+
childLinkLabel: string;
|
|
147
|
+
groupLabel: string;
|
|
148
|
+
separator: string;
|
|
149
|
+
}, import("tailwind-variants").TVReturnTypeLike<{
|
|
150
|
+
orientation: {
|
|
151
|
+
horizontal: {
|
|
152
|
+
root: string;
|
|
153
|
+
list: string;
|
|
154
|
+
content: string;
|
|
155
|
+
childList: string;
|
|
156
|
+
};
|
|
157
|
+
vertical: {
|
|
158
|
+
root: string;
|
|
159
|
+
list: string;
|
|
160
|
+
content: string;
|
|
161
|
+
childList: string;
|
|
162
|
+
childItem: string;
|
|
163
|
+
};
|
|
164
|
+
};
|
|
165
|
+
color: {
|
|
166
|
+
primary: "";
|
|
167
|
+
neutral: "";
|
|
168
|
+
secondary: "";
|
|
169
|
+
success: "";
|
|
170
|
+
danger: "";
|
|
171
|
+
info: "";
|
|
172
|
+
warning: "";
|
|
173
|
+
};
|
|
174
|
+
variant: {
|
|
175
|
+
pill: "";
|
|
176
|
+
link: "";
|
|
177
|
+
};
|
|
178
|
+
active: {
|
|
179
|
+
true: {};
|
|
180
|
+
false: {
|
|
181
|
+
link: string;
|
|
182
|
+
childLink: string;
|
|
183
|
+
};
|
|
184
|
+
};
|
|
185
|
+
disabled: {
|
|
186
|
+
true: {
|
|
187
|
+
link: string;
|
|
188
|
+
childLink: string;
|
|
189
|
+
};
|
|
190
|
+
};
|
|
191
|
+
highlight: {
|
|
192
|
+
true: {};
|
|
193
|
+
};
|
|
194
|
+
collapsed: {
|
|
195
|
+
true: {
|
|
196
|
+
link: string;
|
|
197
|
+
linkLabel: string;
|
|
198
|
+
};
|
|
199
|
+
};
|
|
200
|
+
flyoutRoot: {
|
|
201
|
+
true: {
|
|
202
|
+
childList: string;
|
|
203
|
+
childItem: string;
|
|
204
|
+
};
|
|
205
|
+
};
|
|
206
|
+
}, {
|
|
207
|
+
root: string;
|
|
208
|
+
list: string;
|
|
209
|
+
item: string;
|
|
210
|
+
link: string;
|
|
211
|
+
linkIcon: string;
|
|
212
|
+
linkIconFallback: string;
|
|
213
|
+
linkLabel: string;
|
|
214
|
+
linkTrailingIcon: string;
|
|
215
|
+
content: string;
|
|
216
|
+
viewport: string;
|
|
217
|
+
childList: string;
|
|
218
|
+
childItem: string;
|
|
219
|
+
childLink: string;
|
|
220
|
+
childLinkLabel: string;
|
|
221
|
+
groupLabel: string;
|
|
222
|
+
separator: string;
|
|
223
|
+
}>>;
|
|
224
|
+
export type NavigationMenuThemeSlots = keyof (typeof navigationMenuTheme)['slots'];
|