@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,95 @@
|
|
|
1
|
+
export declare const collapsibleTheme: import("tailwind-variants").TVReturnType<{
|
|
2
|
+
size: {
|
|
3
|
+
sm: {
|
|
4
|
+
trigger: string;
|
|
5
|
+
content: string;
|
|
6
|
+
};
|
|
7
|
+
md: {
|
|
8
|
+
trigger: string;
|
|
9
|
+
content: string;
|
|
10
|
+
};
|
|
11
|
+
lg: {
|
|
12
|
+
trigger: string;
|
|
13
|
+
content: string;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
direction: {
|
|
17
|
+
down: {
|
|
18
|
+
root: string;
|
|
19
|
+
};
|
|
20
|
+
up: {
|
|
21
|
+
root: string;
|
|
22
|
+
chevron: string;
|
|
23
|
+
contentInner: string;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
}, {
|
|
27
|
+
root: string;
|
|
28
|
+
trigger: string;
|
|
29
|
+
chevron: string;
|
|
30
|
+
content: string;
|
|
31
|
+
contentInner: string;
|
|
32
|
+
}, undefined, {
|
|
33
|
+
size: {
|
|
34
|
+
sm: {
|
|
35
|
+
trigger: string;
|
|
36
|
+
content: string;
|
|
37
|
+
};
|
|
38
|
+
md: {
|
|
39
|
+
trigger: string;
|
|
40
|
+
content: string;
|
|
41
|
+
};
|
|
42
|
+
lg: {
|
|
43
|
+
trigger: string;
|
|
44
|
+
content: string;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
direction: {
|
|
48
|
+
down: {
|
|
49
|
+
root: string;
|
|
50
|
+
};
|
|
51
|
+
up: {
|
|
52
|
+
root: string;
|
|
53
|
+
chevron: string;
|
|
54
|
+
contentInner: string;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
}, {
|
|
58
|
+
root: string;
|
|
59
|
+
trigger: string;
|
|
60
|
+
chevron: string;
|
|
61
|
+
content: string;
|
|
62
|
+
contentInner: string;
|
|
63
|
+
}, import("tailwind-variants").TVReturnTypeLike<{
|
|
64
|
+
size: {
|
|
65
|
+
sm: {
|
|
66
|
+
trigger: string;
|
|
67
|
+
content: string;
|
|
68
|
+
};
|
|
69
|
+
md: {
|
|
70
|
+
trigger: string;
|
|
71
|
+
content: string;
|
|
72
|
+
};
|
|
73
|
+
lg: {
|
|
74
|
+
trigger: string;
|
|
75
|
+
content: string;
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
direction: {
|
|
79
|
+
down: {
|
|
80
|
+
root: string;
|
|
81
|
+
};
|
|
82
|
+
up: {
|
|
83
|
+
root: string;
|
|
84
|
+
chevron: string;
|
|
85
|
+
contentInner: string;
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
}, {
|
|
89
|
+
root: string;
|
|
90
|
+
trigger: string;
|
|
91
|
+
chevron: string;
|
|
92
|
+
content: string;
|
|
93
|
+
contentInner: string;
|
|
94
|
+
}>>;
|
|
95
|
+
export type CollapsibleThemeSlots = keyof (typeof collapsibleTheme)['slots'];
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { tv } from "tailwind-variants";
|
|
2
|
+
export const collapsibleTheme = tv({
|
|
3
|
+
slots: {
|
|
4
|
+
root: "w-full",
|
|
5
|
+
trigger: "group flex w-full items-center justify-between gap-2 text-start font-medium text-[var(--ui-text)] transition-colors hover:text-[var(--ui-primary)] disabled:opacity-50 disabled:pointer-events-none",
|
|
6
|
+
chevron: "size-4 shrink-0 text-[var(--ui-text-muted)] transition-transform group-data-[state=open]:rotate-180",
|
|
7
|
+
// overflow-hidden clips the panel to its own animated height (without
|
|
8
|
+
// it, content would visibly spill out mid-animation); the two
|
|
9
|
+
// data-state keyframes interpolate between 0 and Reka's own measured
|
|
10
|
+
// --reka-collapsible-content-height, so this never hardcodes a height.
|
|
11
|
+
content: "overflow-hidden text-[var(--ui-text-muted)] data-[state=open]:animate-[selaras-collapsible-down_200ms_ease-out] data-[state=closed]:animate-[selaras-collapsible-up_200ms_ease-out]",
|
|
12
|
+
// A separate slot (not `content` itself) for the padding - the padding
|
|
13
|
+
// must NOT be part of the height being animated (animating a 0-to-N
|
|
14
|
+
// height with vertical padding baked in either clips the last few
|
|
15
|
+
// pixels of padding at 0, or overshoots the real content height), so
|
|
16
|
+
// it moves one level in.
|
|
17
|
+
contentInner: "pt-2"
|
|
18
|
+
},
|
|
19
|
+
variants: {
|
|
20
|
+
size: {
|
|
21
|
+
sm: { trigger: "text-sm", content: "text-sm" },
|
|
22
|
+
md: { trigger: "text-sm", content: "text-sm" },
|
|
23
|
+
lg: { trigger: "text-base", content: "text-base" }
|
|
24
|
+
},
|
|
25
|
+
// Reka always renders the trigger before the content in the DOM -
|
|
26
|
+
// that never changes. `flex-col-reverse` only flips the *visual*
|
|
27
|
+
// order, so `up` still reveals below the same trigger element in
|
|
28
|
+
// the accessibility tree/tab order, it just displays above it.
|
|
29
|
+
direction: {
|
|
30
|
+
down: { root: "flex flex-col" },
|
|
31
|
+
up: {
|
|
32
|
+
root: "flex flex-col-reverse",
|
|
33
|
+
// Base chevron points down at rest, rotates to point up once
|
|
34
|
+
// open - backwards for `up`, where content reveals upward.
|
|
35
|
+
// Flipped here so it still points toward where the content
|
|
36
|
+
// will appear: up at rest, back down once open.
|
|
37
|
+
chevron: "rotate-180 group-data-[state=open]:rotate-0",
|
|
38
|
+
contentInner: "pt-0 pb-2"
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
defaultVariants: {
|
|
43
|
+
size: "md",
|
|
44
|
+
direction: "down"
|
|
45
|
+
}
|
|
46
|
+
});
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
export declare const colorPickerTheme: import("tailwind-variants").TVReturnType<{
|
|
2
|
+
size: {
|
|
3
|
+
sm: {
|
|
4
|
+
trigger: string;
|
|
5
|
+
};
|
|
6
|
+
md: {
|
|
7
|
+
trigger: string;
|
|
8
|
+
};
|
|
9
|
+
lg: {
|
|
10
|
+
trigger: string;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
color: {
|
|
14
|
+
primary: {
|
|
15
|
+
trigger: string;
|
|
16
|
+
};
|
|
17
|
+
neutral: {
|
|
18
|
+
trigger: string;
|
|
19
|
+
};
|
|
20
|
+
secondary: {
|
|
21
|
+
trigger: string;
|
|
22
|
+
};
|
|
23
|
+
success: {
|
|
24
|
+
trigger: string;
|
|
25
|
+
};
|
|
26
|
+
danger: {
|
|
27
|
+
trigger: string;
|
|
28
|
+
};
|
|
29
|
+
info: {
|
|
30
|
+
trigger: string;
|
|
31
|
+
};
|
|
32
|
+
warning: {
|
|
33
|
+
trigger: string;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
}, {
|
|
37
|
+
trigger: string;
|
|
38
|
+
triggerSwatch: string;
|
|
39
|
+
triggerValue: string;
|
|
40
|
+
content: string;
|
|
41
|
+
mobileContent: string;
|
|
42
|
+
area: string;
|
|
43
|
+
thumb: string;
|
|
44
|
+
sliderRoot: string;
|
|
45
|
+
track: string;
|
|
46
|
+
field: string;
|
|
47
|
+
swatchList: string;
|
|
48
|
+
swatch: string;
|
|
49
|
+
swatchFill: string;
|
|
50
|
+
swatchIndicator: string;
|
|
51
|
+
}, undefined, {
|
|
52
|
+
size: {
|
|
53
|
+
sm: {
|
|
54
|
+
trigger: string;
|
|
55
|
+
};
|
|
56
|
+
md: {
|
|
57
|
+
trigger: string;
|
|
58
|
+
};
|
|
59
|
+
lg: {
|
|
60
|
+
trigger: string;
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
color: {
|
|
64
|
+
primary: {
|
|
65
|
+
trigger: string;
|
|
66
|
+
};
|
|
67
|
+
neutral: {
|
|
68
|
+
trigger: string;
|
|
69
|
+
};
|
|
70
|
+
secondary: {
|
|
71
|
+
trigger: string;
|
|
72
|
+
};
|
|
73
|
+
success: {
|
|
74
|
+
trigger: string;
|
|
75
|
+
};
|
|
76
|
+
danger: {
|
|
77
|
+
trigger: string;
|
|
78
|
+
};
|
|
79
|
+
info: {
|
|
80
|
+
trigger: string;
|
|
81
|
+
};
|
|
82
|
+
warning: {
|
|
83
|
+
trigger: string;
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
}, {
|
|
87
|
+
trigger: string;
|
|
88
|
+
triggerSwatch: string;
|
|
89
|
+
triggerValue: string;
|
|
90
|
+
content: string;
|
|
91
|
+
mobileContent: string;
|
|
92
|
+
area: string;
|
|
93
|
+
thumb: string;
|
|
94
|
+
sliderRoot: string;
|
|
95
|
+
track: string;
|
|
96
|
+
field: string;
|
|
97
|
+
swatchList: string;
|
|
98
|
+
swatch: string;
|
|
99
|
+
swatchFill: string;
|
|
100
|
+
swatchIndicator: string;
|
|
101
|
+
}, import("tailwind-variants").TVReturnTypeLike<{
|
|
102
|
+
size: {
|
|
103
|
+
sm: {
|
|
104
|
+
trigger: string;
|
|
105
|
+
};
|
|
106
|
+
md: {
|
|
107
|
+
trigger: string;
|
|
108
|
+
};
|
|
109
|
+
lg: {
|
|
110
|
+
trigger: string;
|
|
111
|
+
};
|
|
112
|
+
};
|
|
113
|
+
color: {
|
|
114
|
+
primary: {
|
|
115
|
+
trigger: string;
|
|
116
|
+
};
|
|
117
|
+
neutral: {
|
|
118
|
+
trigger: string;
|
|
119
|
+
};
|
|
120
|
+
secondary: {
|
|
121
|
+
trigger: string;
|
|
122
|
+
};
|
|
123
|
+
success: {
|
|
124
|
+
trigger: string;
|
|
125
|
+
};
|
|
126
|
+
danger: {
|
|
127
|
+
trigger: string;
|
|
128
|
+
};
|
|
129
|
+
info: {
|
|
130
|
+
trigger: string;
|
|
131
|
+
};
|
|
132
|
+
warning: {
|
|
133
|
+
trigger: string;
|
|
134
|
+
};
|
|
135
|
+
};
|
|
136
|
+
}, {
|
|
137
|
+
trigger: string;
|
|
138
|
+
triggerSwatch: string;
|
|
139
|
+
triggerValue: string;
|
|
140
|
+
content: string;
|
|
141
|
+
mobileContent: string;
|
|
142
|
+
area: string;
|
|
143
|
+
thumb: string;
|
|
144
|
+
sliderRoot: string;
|
|
145
|
+
track: string;
|
|
146
|
+
field: string;
|
|
147
|
+
swatchList: string;
|
|
148
|
+
swatch: string;
|
|
149
|
+
swatchFill: string;
|
|
150
|
+
swatchIndicator: string;
|
|
151
|
+
}>>;
|
|
152
|
+
export type ColorPickerThemeSlots = keyof (typeof colorPickerTheme)['slots'];
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { tv } from "tailwind-variants";
|
|
2
|
+
export const colorPickerTheme = tv({
|
|
3
|
+
slots: {
|
|
4
|
+
// Same chrome as Select's own trigger (select.ts) - both are a form
|
|
5
|
+
// field that opens a popover, so they share the exact ring/hover/
|
|
6
|
+
// focus/disabled treatment rather than reinventing it here.
|
|
7
|
+
trigger: "inline-flex w-full min-h-10 items-center gap-2 rounded-[var(--ui-radius-md)] bg-[var(--ui-bg)] px-3 py-1.5 text-sm ring-1 ring-inset ring-[var(--ui-border)] outline-none transition-[color,background-color,box-shadow] not-focus:not-data-[state=open]:hover:ring-[var(--ui-border-hover)] hover:bg-[var(--ui-bg-elevated)] focus:ring-2 data-[state=open]:ring-2 disabled:opacity-50 disabled:pointer-events-none",
|
|
8
|
+
// Painted via ColorSwatch's own exposed --reka-color-swatch-color
|
|
9
|
+
// custom property - ColorSwatch.js applies no background of its own,
|
|
10
|
+
// only exposes that var, so every consumer of it (this trigger swatch
|
|
11
|
+
// and each preset item's own swatch below) pulls color from the same
|
|
12
|
+
// arbitrary background color utility, spelled out fully below rather
|
|
13
|
+
// than abbreviated here. Tailwind's own class scanner treats bracketed
|
|
14
|
+
// text like that as a candidate utility even inside a plain comment,
|
|
15
|
+
// so an abbreviated, non-CSS placeholder in place of the real value
|
|
16
|
+
// gets a real attempt at CSS generation and chokes on it - confirmed:
|
|
17
|
+
// that's exactly what produced a real build warning once.
|
|
18
|
+
triggerSwatch: "size-5 shrink-0 rounded-[var(--ui-radius-sm)] bg-[var(--reka-color-swatch-color)] ring-1 ring-inset ring-black/10",
|
|
19
|
+
triggerValue: "flex-1 truncate text-start font-mono text-[var(--ui-text)]",
|
|
20
|
+
content: "z-[var(--ui-z-dropdown)] w-64 space-y-3 rounded-[var(--ui-radius-md)] bg-[var(--ui-bg)] p-3 shadow-[var(--ui-shadow-md)] ring-1 ring-[var(--ui-border)] data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95",
|
|
21
|
+
// The `mobileModal` path's own content wrapper - none of `content`'s
|
|
22
|
+
// own popover chrome (width/background/shadow/ring/rounded/animate)
|
|
23
|
+
// applies here, since Modal's own card already provides that surface;
|
|
24
|
+
// this only needs this picker's own internal spacing/padding, same
|
|
25
|
+
// reasoning as Select's own mobileContent (select.ts).
|
|
26
|
+
mobileContent: "w-full space-y-3 p-4",
|
|
27
|
+
area: "relative h-40 w-full overflow-hidden rounded-[var(--ui-radius-sm)] cursor-crosshair",
|
|
28
|
+
// Shared by the area thumb and both slider thumbs below - all three
|
|
29
|
+
// are the same plain white ring-bordered circle sitting on top of a
|
|
30
|
+
// color surface Reka itself paints (the area's own gradient, each
|
|
31
|
+
// slider track's own gradient) - a colored ring here would fight
|
|
32
|
+
// that surface instead of marking a position on it, the same reason
|
|
33
|
+
// Slider.vue's own thumb stays neutral against its colored range.
|
|
34
|
+
thumb: "block size-4 shrink-0 rounded-full border-2 border-white shadow-[var(--ui-shadow-sm)] ring-1 ring-[var(--ui-border)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--ui-primary)]",
|
|
35
|
+
// ColorSliderRoot itself (bound onto directly, no dedicated slot of
|
|
36
|
+
// its own since nothing else needs to reach it) - Reka's own default
|
|
37
|
+
// `as` for it is a bare inline `span` (confirmed in Slider/SliderRoot.js,
|
|
38
|
+
// which this wraps), so it needs `block` before `w-full` on the track
|
|
39
|
+
// below means anything (`width` doesn't apply to non-replaced inline
|
|
40
|
+
// boxes at all, not just "shrinks to content" - a span child of this
|
|
41
|
+
// stayed effectively zero-width without it).
|
|
42
|
+
sliderRoot: "block w-full",
|
|
43
|
+
// Shared by the hue and alpha sliders - both are a plain rounded-full
|
|
44
|
+
// track whose gradient comes from Reka's own injected inline style
|
|
45
|
+
// (ColorSliderTrack.js), not this class. Same inline-`span`-by-default
|
|
46
|
+
// reasoning as sliderRoot above applies here too - `block` first.
|
|
47
|
+
track: "relative block h-3 w-full cursor-pointer rounded-full ring-1 ring-inset ring-black/10",
|
|
48
|
+
field: "w-full rounded-[var(--ui-radius-sm)] bg-[var(--ui-bg)] px-2 py-1.5 text-sm font-mono text-[var(--ui-text)] ring-1 ring-inset ring-[var(--ui-border)] outline-none transition-[color,background-color,box-shadow] not-focus:hover:ring-[var(--ui-border-hover)] focus:ring-2 focus:ring-[var(--ui-primary)]",
|
|
49
|
+
swatchList: "flex flex-wrap gap-1.5",
|
|
50
|
+
swatch: "relative size-6 shrink-0 rounded-[var(--ui-radius-sm)] ring-1 ring-inset ring-black/10 cursor-pointer data-[highlighted]:ring-2 data-[highlighted]:ring-[var(--ui-border-hover)] data-[state=checked]:ring-2 data-[state=checked]:ring-[var(--ui-primary)] data-[disabled]:opacity-50 data-[disabled]:pointer-events-none",
|
|
51
|
+
// The preset item's own color fill - same --reka-color-swatch-color
|
|
52
|
+
// var as triggerSwatch, sized to fill its parent `swatch` item
|
|
53
|
+
// (rounded-[inherit] so it doesn't poke past that item's own corners).
|
|
54
|
+
swatchFill: "absolute inset-0 size-full rounded-[inherit] bg-[var(--reka-color-swatch-color)]",
|
|
55
|
+
// Centered over the swatch (relative) it belongs to - only rendered
|
|
56
|
+
// once selected (Reka's own ListboxItemIndicator gates that).
|
|
57
|
+
swatchIndicator: "absolute inset-0 flex items-center justify-center text-white mix-blend-difference"
|
|
58
|
+
},
|
|
59
|
+
variants: {
|
|
60
|
+
// Same height steps as Select's own trigger (select.ts) - the two
|
|
61
|
+
// are the same "form field that opens a popover" shape.
|
|
62
|
+
size: {
|
|
63
|
+
sm: { trigger: "min-h-8 text-sm" },
|
|
64
|
+
md: { trigger: "min-h-10" },
|
|
65
|
+
lg: { trigger: "min-h-11 text-base" }
|
|
66
|
+
},
|
|
67
|
+
// Focus-ring color only, same scope as Select's own `color` variant -
|
|
68
|
+
// the resting ring stays --ui-border regardless.
|
|
69
|
+
color: {
|
|
70
|
+
primary: { trigger: "focus:ring-[var(--ui-primary)] data-[state=open]:ring-[var(--ui-primary)]" },
|
|
71
|
+
neutral: { trigger: "focus:ring-[var(--ui-bg-inverted)] data-[state=open]:ring-[var(--ui-bg-inverted)]" },
|
|
72
|
+
secondary: { trigger: "focus:ring-[var(--ui-secondary)] data-[state=open]:ring-[var(--ui-secondary)]" },
|
|
73
|
+
success: { trigger: "focus:ring-[var(--ui-success)] data-[state=open]:ring-[var(--ui-success)]" },
|
|
74
|
+
danger: { trigger: "focus:ring-[var(--ui-danger)] data-[state=open]:ring-[var(--ui-danger)]" },
|
|
75
|
+
info: { trigger: "focus:ring-[var(--ui-info)] data-[state=open]:ring-[var(--ui-info)]" },
|
|
76
|
+
warning: { trigger: "focus:ring-[var(--ui-warning)] data-[state=open]:ring-[var(--ui-warning)]" }
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
defaultVariants: {
|
|
80
|
+
size: "md",
|
|
81
|
+
color: "primary"
|
|
82
|
+
}
|
|
83
|
+
});
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
export declare const commandPaletteTheme: import("tailwind-variants").TVReturnType<{
|
|
2
|
+
[key: string]: {
|
|
3
|
+
[key: string]: import("tailwind-variants").ClassValue | {
|
|
4
|
+
item?: import("tailwind-variants").ClassValue;
|
|
5
|
+
header?: import("tailwind-variants").ClassValue;
|
|
6
|
+
content?: import("tailwind-variants").ClassValue;
|
|
7
|
+
list?: import("tailwind-variants").ClassValue;
|
|
8
|
+
overlay?: import("tailwind-variants").ClassValue;
|
|
9
|
+
footer?: import("tailwind-variants").ClassValue;
|
|
10
|
+
input?: import("tailwind-variants").ClassValue;
|
|
11
|
+
group?: import("tailwind-variants").ClassValue;
|
|
12
|
+
empty?: import("tailwind-variants").ClassValue;
|
|
13
|
+
searchIcon?: import("tailwind-variants").ClassValue;
|
|
14
|
+
groupLabel?: import("tailwind-variants").ClassValue;
|
|
15
|
+
itemIcon?: import("tailwind-variants").ClassValue;
|
|
16
|
+
itemLabel?: import("tailwind-variants").ClassValue;
|
|
17
|
+
itemShortcut?: import("tailwind-variants").ClassValue;
|
|
18
|
+
footerKey?: import("tailwind-variants").ClassValue;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
} | {
|
|
22
|
+
[x: string]: {
|
|
23
|
+
[x: string]: import("tailwind-variants").ClassValue | {
|
|
24
|
+
item?: import("tailwind-variants").ClassValue;
|
|
25
|
+
header?: import("tailwind-variants").ClassValue;
|
|
26
|
+
content?: import("tailwind-variants").ClassValue;
|
|
27
|
+
list?: import("tailwind-variants").ClassValue;
|
|
28
|
+
overlay?: import("tailwind-variants").ClassValue;
|
|
29
|
+
footer?: import("tailwind-variants").ClassValue;
|
|
30
|
+
input?: import("tailwind-variants").ClassValue;
|
|
31
|
+
group?: import("tailwind-variants").ClassValue;
|
|
32
|
+
empty?: import("tailwind-variants").ClassValue;
|
|
33
|
+
searchIcon?: import("tailwind-variants").ClassValue;
|
|
34
|
+
groupLabel?: import("tailwind-variants").ClassValue;
|
|
35
|
+
itemIcon?: import("tailwind-variants").ClassValue;
|
|
36
|
+
itemLabel?: import("tailwind-variants").ClassValue;
|
|
37
|
+
itemShortcut?: import("tailwind-variants").ClassValue;
|
|
38
|
+
footerKey?: import("tailwind-variants").ClassValue;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
} | {}, {
|
|
42
|
+
overlay: string;
|
|
43
|
+
content: string;
|
|
44
|
+
header: string;
|
|
45
|
+
searchIcon: string;
|
|
46
|
+
input: string;
|
|
47
|
+
list: string;
|
|
48
|
+
group: string;
|
|
49
|
+
groupLabel: string;
|
|
50
|
+
item: string;
|
|
51
|
+
itemIcon: string;
|
|
52
|
+
itemLabel: string;
|
|
53
|
+
itemShortcut: string;
|
|
54
|
+
empty: string;
|
|
55
|
+
footer: string;
|
|
56
|
+
footerKey: string;
|
|
57
|
+
}, undefined, {
|
|
58
|
+
[key: string]: {
|
|
59
|
+
[key: string]: import("tailwind-variants").ClassValue | {
|
|
60
|
+
item?: import("tailwind-variants").ClassValue;
|
|
61
|
+
header?: import("tailwind-variants").ClassValue;
|
|
62
|
+
content?: import("tailwind-variants").ClassValue;
|
|
63
|
+
list?: import("tailwind-variants").ClassValue;
|
|
64
|
+
overlay?: import("tailwind-variants").ClassValue;
|
|
65
|
+
footer?: import("tailwind-variants").ClassValue;
|
|
66
|
+
input?: import("tailwind-variants").ClassValue;
|
|
67
|
+
group?: import("tailwind-variants").ClassValue;
|
|
68
|
+
empty?: import("tailwind-variants").ClassValue;
|
|
69
|
+
searchIcon?: import("tailwind-variants").ClassValue;
|
|
70
|
+
groupLabel?: import("tailwind-variants").ClassValue;
|
|
71
|
+
itemIcon?: import("tailwind-variants").ClassValue;
|
|
72
|
+
itemLabel?: import("tailwind-variants").ClassValue;
|
|
73
|
+
itemShortcut?: import("tailwind-variants").ClassValue;
|
|
74
|
+
footerKey?: import("tailwind-variants").ClassValue;
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
} | {}, {
|
|
78
|
+
overlay: string;
|
|
79
|
+
content: string;
|
|
80
|
+
header: string;
|
|
81
|
+
searchIcon: string;
|
|
82
|
+
input: string;
|
|
83
|
+
list: string;
|
|
84
|
+
group: string;
|
|
85
|
+
groupLabel: string;
|
|
86
|
+
item: string;
|
|
87
|
+
itemIcon: string;
|
|
88
|
+
itemLabel: string;
|
|
89
|
+
itemShortcut: string;
|
|
90
|
+
empty: string;
|
|
91
|
+
footer: string;
|
|
92
|
+
footerKey: string;
|
|
93
|
+
}, import("tailwind-variants").TVReturnTypeLike<unknown, {
|
|
94
|
+
overlay: string;
|
|
95
|
+
content: string;
|
|
96
|
+
header: string;
|
|
97
|
+
searchIcon: string;
|
|
98
|
+
input: string;
|
|
99
|
+
list: string;
|
|
100
|
+
group: string;
|
|
101
|
+
groupLabel: string;
|
|
102
|
+
item: string;
|
|
103
|
+
itemIcon: string;
|
|
104
|
+
itemLabel: string;
|
|
105
|
+
itemShortcut: string;
|
|
106
|
+
empty: string;
|
|
107
|
+
footer: string;
|
|
108
|
+
footerKey: string;
|
|
109
|
+
}>>;
|
|
110
|
+
export type CommandPaletteThemeSlots = keyof (typeof commandPaletteTheme)['slots'];
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { tv } from "tailwind-variants";
|
|
2
|
+
export const commandPaletteTheme = tv({
|
|
3
|
+
slots: {
|
|
4
|
+
overlay: "fixed inset-0 z-[var(--ui-z-modal-overlay)] bg-black/50 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=closed]:animate-out data-[state=closed]:fade-out-0",
|
|
5
|
+
// Top-anchored (not vertically centered like Modal) - the conventional
|
|
6
|
+
// command-palette position, and it means the dialog doesn't visibly
|
|
7
|
+
// jump up and down as the result list grows/shrinks while typing.
|
|
8
|
+
content: "fixed left-1/2 top-24 z-[var(--ui-z-modal)] flex max-h-[min(28rem,calc(100vh-8rem))] w-[calc(100%-2rem)] max-w-lg -translate-x-1/2 flex-col overflow-hidden rounded-[var(--ui-radius-lg)] bg-[var(--ui-bg)] shadow-[var(--ui-shadow-lg)] focus:outline-none 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",
|
|
9
|
+
header: "flex shrink-0 items-center gap-2 border-b border-[var(--ui-border)] px-4",
|
|
10
|
+
searchIcon: "size-4.5 shrink-0 text-[var(--ui-text-muted)]",
|
|
11
|
+
input: "h-12 flex-1 bg-transparent text-sm text-[var(--ui-text)] placeholder:text-[var(--ui-text-muted)] focus:outline-none",
|
|
12
|
+
list: "flex-1 overflow-y-auto p-1",
|
|
13
|
+
group: "py-1",
|
|
14
|
+
groupLabel: "px-2 py-1 text-xs font-medium text-[var(--ui-text-muted)]",
|
|
15
|
+
item: "flex items-center gap-2 rounded-[var(--ui-radius-sm)] px-2 py-2 text-sm text-[var(--ui-text)] cursor-pointer select-none outline-none data-[highlighted]:bg-[var(--ui-bg-elevated)] data-[disabled]:opacity-50 data-[disabled]:pointer-events-none",
|
|
16
|
+
itemIcon: "size-4 shrink-0 text-[var(--ui-text-muted)]",
|
|
17
|
+
itemLabel: "flex-1",
|
|
18
|
+
itemShortcut: "flex shrink-0 items-center gap-1",
|
|
19
|
+
empty: "p-6 text-center text-sm text-[var(--ui-text-muted)]",
|
|
20
|
+
footer: "flex shrink-0 items-center gap-3 border-t border-[var(--ui-border)] px-3 py-2 text-xs text-[var(--ui-text-muted)]",
|
|
21
|
+
footerKey: "flex items-center gap-1"
|
|
22
|
+
}
|
|
23
|
+
});
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
export declare const containerTheme: 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
|
+
xl: {
|
|
13
|
+
base: string;
|
|
14
|
+
};
|
|
15
|
+
full: {
|
|
16
|
+
base: string;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
}, {
|
|
20
|
+
base: string;
|
|
21
|
+
}, undefined, {
|
|
22
|
+
size: {
|
|
23
|
+
sm: {
|
|
24
|
+
base: string;
|
|
25
|
+
};
|
|
26
|
+
md: {
|
|
27
|
+
base: string;
|
|
28
|
+
};
|
|
29
|
+
lg: {
|
|
30
|
+
base: string;
|
|
31
|
+
};
|
|
32
|
+
xl: {
|
|
33
|
+
base: string;
|
|
34
|
+
};
|
|
35
|
+
full: {
|
|
36
|
+
base: string;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
}, {
|
|
40
|
+
base: string;
|
|
41
|
+
}, import("tailwind-variants").TVReturnTypeLike<{
|
|
42
|
+
size: {
|
|
43
|
+
sm: {
|
|
44
|
+
base: string;
|
|
45
|
+
};
|
|
46
|
+
md: {
|
|
47
|
+
base: string;
|
|
48
|
+
};
|
|
49
|
+
lg: {
|
|
50
|
+
base: string;
|
|
51
|
+
};
|
|
52
|
+
xl: {
|
|
53
|
+
base: string;
|
|
54
|
+
};
|
|
55
|
+
full: {
|
|
56
|
+
base: string;
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
}, {
|
|
60
|
+
base: string;
|
|
61
|
+
}>>;
|
|
62
|
+
export type ContainerThemeSlots = keyof (typeof containerTheme)['slots'];
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { tv } from "tailwind-variants";
|
|
2
|
+
export const containerTheme = tv({
|
|
3
|
+
slots: {
|
|
4
|
+
base: "w-full mx-auto px-4 sm:px-6 lg:px-8"
|
|
5
|
+
},
|
|
6
|
+
variants: {
|
|
7
|
+
size: {
|
|
8
|
+
sm: { base: "max-w-3xl" },
|
|
9
|
+
md: { base: "max-w-5xl" },
|
|
10
|
+
lg: { base: "max-w-6xl" },
|
|
11
|
+
xl: { base: "max-w-7xl" },
|
|
12
|
+
full: { base: "max-w-none" }
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
defaultVariants: {
|
|
16
|
+
size: "lg"
|
|
17
|
+
}
|
|
18
|
+
});
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
export declare const contentNavigationTheme: import("tailwind-variants").TVReturnType<{
|
|
2
|
+
isNested: {
|
|
3
|
+
true: {
|
|
4
|
+
item: string;
|
|
5
|
+
};
|
|
6
|
+
};
|
|
7
|
+
}, {
|
|
8
|
+
root: string;
|
|
9
|
+
item: string;
|
|
10
|
+
link: string;
|
|
11
|
+
linkActive: string;
|
|
12
|
+
trigger: string;
|
|
13
|
+
icon: string;
|
|
14
|
+
chevron: string;
|
|
15
|
+
content: string;
|
|
16
|
+
}, undefined, {
|
|
17
|
+
isNested: {
|
|
18
|
+
true: {
|
|
19
|
+
item: string;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
}, {
|
|
23
|
+
root: string;
|
|
24
|
+
item: string;
|
|
25
|
+
link: string;
|
|
26
|
+
linkActive: string;
|
|
27
|
+
trigger: string;
|
|
28
|
+
icon: string;
|
|
29
|
+
chevron: string;
|
|
30
|
+
content: string;
|
|
31
|
+
}, import("tailwind-variants").TVReturnTypeLike<{
|
|
32
|
+
isNested: {
|
|
33
|
+
true: {
|
|
34
|
+
item: string;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
}, {
|
|
38
|
+
root: string;
|
|
39
|
+
item: string;
|
|
40
|
+
link: string;
|
|
41
|
+
linkActive: string;
|
|
42
|
+
trigger: string;
|
|
43
|
+
icon: string;
|
|
44
|
+
chevron: string;
|
|
45
|
+
content: string;
|
|
46
|
+
}>>;
|
|
47
|
+
export type ContentNavigationThemeSlots = keyof (typeof contentNavigationTheme)['slots'];
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { tv } from "tailwind-variants";
|
|
2
|
+
export const contentNavigationTheme = tv({
|
|
3
|
+
slots: {
|
|
4
|
+
root: "flex flex-col gap-0.5 text-sm",
|
|
5
|
+
item: "flex flex-col",
|
|
6
|
+
// py-2.5 (+ text-sm's 20px line-height) lands close to the 44px touch
|
|
7
|
+
// target guideline without doubling the sidebar's height the way a
|
|
8
|
+
// literal py-3 would across ~40 entries.
|
|
9
|
+
link: "flex items-center gap-2 rounded-[var(--ui-radius-sm)] px-2 py-2.5 text-[var(--ui-text-muted)] transition-colors hover:bg-[var(--ui-bg-elevated)] hover:text-[var(--ui-text)]",
|
|
10
|
+
linkActive: "flex items-center gap-2 rounded-[var(--ui-radius-sm)] bg-[var(--ui-primary-soft)] px-2 py-2.5 text-[var(--ui-primary)]",
|
|
11
|
+
trigger: "group flex w-full items-center justify-between gap-2 rounded-[var(--ui-radius-sm)] px-2 py-2.5 text-start font-medium text-[var(--ui-text)] transition-colors hover:bg-[var(--ui-bg-elevated)]",
|
|
12
|
+
// A separate slot from label - this styles the icon a link/group-header
|
|
13
|
+
// shows before its title, not the title text itself.
|
|
14
|
+
icon: "size-4 shrink-0 text-[var(--ui-text-muted)]",
|
|
15
|
+
chevron: "size-4 shrink-0 text-[var(--ui-text-muted)] transition-transform group-data-[state=open]:rotate-180",
|
|
16
|
+
// `ps-4` (16px) reserves the gutter each child's own trunk segment
|
|
17
|
+
// and elbow (on the `item` slot above) reach back into - the trunk
|
|
18
|
+
// line itself has no presence here at all, see theme.css's own
|
|
19
|
+
// `.selaras-nav-elbow` comment for why it lives per-item instead.
|
|
20
|
+
content: "ms-3 flex flex-col gap-0.5 ps-4"
|
|
21
|
+
},
|
|
22
|
+
variants: {
|
|
23
|
+
// ContentNavigation.vue recurses into itself for every nested group,
|
|
24
|
+
// reusing this exact same `item` slot at every depth - unlike
|
|
25
|
+
// NavigationMenu's own `item`/`childItem` (genuinely different slot
|
|
26
|
+
// names for top-level vs nested), there's only one slot name here,
|
|
27
|
+
// so root-level entries and nested ones need telling apart some
|
|
28
|
+
// other way. `isNested` (see ContentToc.vue's own prop of the same
|
|
29
|
+
// name for the established precedent) gates the tree-connector rail
|
|
30
|
+
// onto nested entries only - a root-level entry has no parent trunk
|
|
31
|
+
// to its left to branch off of, so giving it the rail drew a
|
|
32
|
+
// disconnected elbow floating next to it with nothing feeding into
|
|
33
|
+
// it from above.
|
|
34
|
+
isNested: {
|
|
35
|
+
true: { item: "selaras-nav-elbow selaras-nav-elbow--content-navigation" }
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
});
|