@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,99 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { computed } from "vue";
|
|
3
|
+
import Button from "../components/Button.vue";
|
|
4
|
+
import InputNumber from "../components/InputNumber.vue";
|
|
5
|
+
import { useLocale } from "../composables/use-locale";
|
|
6
|
+
const props = defineProps({
|
|
7
|
+
hour: { type: Number, required: true },
|
|
8
|
+
minute: { type: Number, required: false },
|
|
9
|
+
granularity: { type: String, required: true },
|
|
10
|
+
hourCycle: { type: Number, required: false },
|
|
11
|
+
minuteStep: { type: Number, required: false, default: 1 },
|
|
12
|
+
locale: { type: String, required: false },
|
|
13
|
+
size: { type: String, required: false },
|
|
14
|
+
hourId: { type: String, required: false },
|
|
15
|
+
minuteId: { type: String, required: false }
|
|
16
|
+
});
|
|
17
|
+
const emit = defineEmits(["update:hour", "update:minute"]);
|
|
18
|
+
const effectiveLocale = computed(() => props.locale ?? useLocale().value);
|
|
19
|
+
const resolvedIs12Hour = computed(() => {
|
|
20
|
+
if (props.hourCycle === 12)
|
|
21
|
+
return true;
|
|
22
|
+
if (props.hourCycle === 24)
|
|
23
|
+
return false;
|
|
24
|
+
const resolved = new Intl.DateTimeFormat(effectiveLocale.value, { hour: "numeric" }).resolvedOptions().hourCycle;
|
|
25
|
+
return resolved === "h11" || resolved === "h12";
|
|
26
|
+
});
|
|
27
|
+
const isPM = computed(() => props.hour >= 12);
|
|
28
|
+
const meridiemText = computed(() => {
|
|
29
|
+
const parts = new Intl.DateTimeFormat(effectiveLocale.value, { hour: "numeric", hour12: true }).formatToParts(new Date(2020, 0, 1, isPM.value ? 13 : 1));
|
|
30
|
+
return parts.find((part) => part.type === "dayPeriod")?.value ?? (isPM.value ? "PM" : "AM");
|
|
31
|
+
});
|
|
32
|
+
function to12Hour(hour24) {
|
|
33
|
+
const hour = hour24 % 12;
|
|
34
|
+
return hour === 0 ? 12 : hour;
|
|
35
|
+
}
|
|
36
|
+
function from12Hour(hour12, pm) {
|
|
37
|
+
const hour = hour12 % 12;
|
|
38
|
+
return pm ? hour + 12 : hour;
|
|
39
|
+
}
|
|
40
|
+
const displayHour = computed(() => resolvedIs12Hour.value ? to12Hour(props.hour) : props.hour);
|
|
41
|
+
function setHour(value) {
|
|
42
|
+
if (value === void 0)
|
|
43
|
+
return;
|
|
44
|
+
if (!resolvedIs12Hour.value) {
|
|
45
|
+
emit("update:hour", value);
|
|
46
|
+
return;
|
|
47
|
+
}
|
|
48
|
+
const crossesBoundary = displayHour.value === 11 && value === 12 || displayHour.value === 12 && value === 11;
|
|
49
|
+
const pm = crossesBoundary ? !isPM.value : isPM.value;
|
|
50
|
+
emit("update:hour", from12Hour(value, pm));
|
|
51
|
+
}
|
|
52
|
+
function setMinute(value) {
|
|
53
|
+
if (value === void 0)
|
|
54
|
+
return;
|
|
55
|
+
emit("update:minute", value);
|
|
56
|
+
}
|
|
57
|
+
function toggleMeridiem() {
|
|
58
|
+
emit("update:hour", isPM.value ? props.hour - 12 : props.hour + 12);
|
|
59
|
+
}
|
|
60
|
+
const twoDigitFormat = { minimumIntegerDigits: 2 };
|
|
61
|
+
const effectiveSize = computed(() => props.size ?? "sm");
|
|
62
|
+
</script>
|
|
63
|
+
|
|
64
|
+
<template>
|
|
65
|
+
<InputNumber
|
|
66
|
+
:id="hourId"
|
|
67
|
+
:model-value="displayHour"
|
|
68
|
+
:min="resolvedIs12Hour ? 1 : 0"
|
|
69
|
+
:max="resolvedIs12Hour ? 12 : 23"
|
|
70
|
+
wrap
|
|
71
|
+
:format-options="twoDigitFormat"
|
|
72
|
+
:size="effectiveSize"
|
|
73
|
+
class="w-28"
|
|
74
|
+
@update:model-value="setHour"
|
|
75
|
+
/>
|
|
76
|
+
<span v-if="granularity === 'minute'" class="text-[var(--ui-text-muted)]">:</span>
|
|
77
|
+
<InputNumber
|
|
78
|
+
v-if="granularity === 'minute'"
|
|
79
|
+
:id="minuteId"
|
|
80
|
+
:model-value="minute"
|
|
81
|
+
:min="0"
|
|
82
|
+
:max="59"
|
|
83
|
+
:step="minuteStep"
|
|
84
|
+
wrap
|
|
85
|
+
:format-options="twoDigitFormat"
|
|
86
|
+
:size="effectiveSize"
|
|
87
|
+
class="w-28"
|
|
88
|
+
@update:model-value="setMinute"
|
|
89
|
+
/>
|
|
90
|
+
<Button
|
|
91
|
+
v-if="resolvedIs12Hour"
|
|
92
|
+
variant="outline"
|
|
93
|
+
color="neutral"
|
|
94
|
+
:size="effectiveSize"
|
|
95
|
+
@click="toggleMeridiem"
|
|
96
|
+
>
|
|
97
|
+
{{ meridiemText }}
|
|
98
|
+
</Button>
|
|
99
|
+
</template>
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export interface TimeStepperProps {
|
|
2
|
+
/** Always 24-hour (0-23), regardless of what's displayed. */
|
|
3
|
+
hour: number;
|
|
4
|
+
/** Only read/rendered when granularity is 'minute'. */
|
|
5
|
+
minute?: number;
|
|
6
|
+
granularity: 'hour' | 'minute';
|
|
7
|
+
/** Forces 12-hour or 24-hour display; defaults to whatever `locale` itself resolves to. */
|
|
8
|
+
hourCycle?: 12 | 24;
|
|
9
|
+
minuteStep?: number;
|
|
10
|
+
locale?: string;
|
|
11
|
+
size?: 'sm' | 'md' | 'lg';
|
|
12
|
+
/** Ids for the caller's own paired <label for> elements - neither SInputNumber nor SInput forward a bare aria-label to their inner <input>, so callers pair a real sr-only label instead. */
|
|
13
|
+
hourId?: string;
|
|
14
|
+
minuteId?: string;
|
|
15
|
+
}
|
|
16
|
+
export interface TimeStepperEmits {
|
|
17
|
+
'update:hour': [value: number];
|
|
18
|
+
'update:minute': [value: number];
|
|
19
|
+
}
|
|
20
|
+
declare const __VLS_export: import("vue").DefineComponent<TimeStepperProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
21
|
+
"update:hour": (value: number) => any;
|
|
22
|
+
"update:minute": (value: number) => any;
|
|
23
|
+
}, string, import("vue").PublicProps, Readonly<TimeStepperProps> & Readonly<{
|
|
24
|
+
"onUpdate:hour"?: ((value: number) => any) | undefined;
|
|
25
|
+
"onUpdate:minute"?: ((value: number) => any) | undefined;
|
|
26
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
27
|
+
declare const _default: typeof __VLS_export;
|
|
28
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@layer base, selaras-prose, utilities;@layer selaras-prose{:root{--selaras-prose-font-body:inherit;--selaras-prose-font-heading:inherit;--selaras-prose-font-mono:var(--font-mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace)}.selaras-prose{color:var(--ui-text);font-family:var(--selaras-prose-font-body);font-size:1rem;line-height:1.75;overflow-wrap:break-word}.selaras-prose :where(.not-prose){line-height:1.5}.selaras-prose>:where(*+*){margin-block-start:1.25em}.selaras-prose :where(h1,h2,h3,h4,h5,h6):not(:where(.not-prose,.not-prose *)){color:var(--ui-text);font-family:var(--selaras-prose-font-heading);font-weight:600;letter-spacing:-.025em;margin-block-start:2em;scroll-margin-top:5rem}.selaras-prose :where(h1):not(:where(.not-prose,.not-prose *)){font-size:1.875rem;line-height:2.25rem}.selaras-prose :where(h2):not(:where(.not-prose,.not-prose *)){font-size:1.5rem;line-height:2rem}.selaras-prose :where(h3):not(:where(.not-prose,.not-prose *)){font-size:1.25rem;line-height:1.75rem}.selaras-prose :where(h4):not(:where(.not-prose,.not-prose *)){font-size:1.125rem;line-height:1.75rem}.selaras-prose :where(h5,h6):not(:where(.not-prose,.not-prose *)){font-size:1rem;line-height:1.5rem}.selaras-prose :where(a):not(:where(.not-prose,.not-prose *)){color:var(--ui-primary);font-weight:500;text-decoration-line:underline;text-underline-offset:4px}.selaras-prose :where(a:hover):not(:where(.not-prose,.not-prose *)){color:var(--ui-primary-hover)}.selaras-prose :where(h1,h2,h3,h4,h5,h6) :where(a):not(:where(.not-prose,.not-prose *)){color:inherit;font-weight:inherit}.selaras-prose :where(strong):not(:where(.not-prose,.not-prose *)){color:var(--ui-text);font-weight:600}.selaras-prose :where(em):not(:where(.not-prose,.not-prose *)){font-style:italic}.selaras-prose :where(blockquote):not(:where(.not-prose,.not-prose *)){border-inline-start:2px solid var(--ui-border);color:var(--ui-text-muted);font-style:italic;padding-inline-start:1rem}.selaras-prose :where(hr):not(:where(.not-prose,.not-prose *)){border-color:var(--ui-border)}.selaras-prose :where(img):not(:where(.not-prose,.not-prose *)){border-radius:var(--ui-radius-md);max-width:100%}.selaras-prose :where(ul,ol):not(:where(.not-prose,.not-prose *)){color:var(--ui-text);padding-inline-start:1.5rem}.selaras-prose :where(ul):not(:where(.not-prose,.not-prose *)){list-style-type:disc}.selaras-prose :where(ol):not(:where(.not-prose,.not-prose *)){list-style-type:decimal}.selaras-prose :where(li+li):not(:where(.not-prose,.not-prose *)){margin-block-start:.25em}.selaras-prose :where(code):not(:where(.not-prose,.not-prose *)){background-color:var(--ui-bg-elevated);border-radius:var(--ui-radius-sm);color:var(--ui-text);font-family:var(--selaras-prose-font-mono);font-size:.875em;padding-block:.125rem;padding-inline:.375rem}.selaras-prose :where(pre):not(:where(.not-prose,.not-prose *)){background-color:var(--ui-bg-elevated);border-radius:var(--ui-radius-md);font-family:var(--selaras-prose-font-mono);font-size:.875rem;line-height:1.625;overflow-x:auto;padding:1rem}.selaras-prose :where(pre code):not(:where(.not-prose,.not-prose *)){background-color:transparent;border-radius:0;font-size:1em;padding:0}.selaras-prose :where(table):not(:where(.not-prose,.not-prose *)){border-collapse:collapse;display:block;font-size:.875rem;overflow-x:auto;width:100%}.selaras-prose :where(thead):not(:where(.not-prose,.not-prose *)){background-color:var(--ui-bg-elevated)}.selaras-prose :where(th):not(:where(.not-prose,.not-prose *)){border-bottom:1px solid var(--ui-border);color:var(--ui-text-muted);font-weight:500;padding-block:.5rem;padding-inline:.75rem;text-align:start}.selaras-prose :where(td):not(:where(.not-prose,.not-prose *)){border-bottom:1px solid var(--ui-border-muted);color:var(--ui-text);padding-block:.5rem;padding-inline:.75rem}}
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
export declare const accordionTheme: 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
|
+
chevronPosition: {
|
|
17
|
+
end: {
|
|
18
|
+
trigger: string;
|
|
19
|
+
};
|
|
20
|
+
start: {
|
|
21
|
+
trigger: string;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
variant: {
|
|
25
|
+
list: {
|
|
26
|
+
item: string;
|
|
27
|
+
};
|
|
28
|
+
pill: {
|
|
29
|
+
root: string;
|
|
30
|
+
item: string;
|
|
31
|
+
trigger: string;
|
|
32
|
+
contentInner: string;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
}, {
|
|
36
|
+
root: string;
|
|
37
|
+
item: string;
|
|
38
|
+
header: string;
|
|
39
|
+
trigger: string;
|
|
40
|
+
label: string;
|
|
41
|
+
chevron: string;
|
|
42
|
+
content: string;
|
|
43
|
+
contentInner: string;
|
|
44
|
+
}, undefined, {
|
|
45
|
+
size: {
|
|
46
|
+
sm: {
|
|
47
|
+
trigger: string;
|
|
48
|
+
content: string;
|
|
49
|
+
};
|
|
50
|
+
md: {
|
|
51
|
+
trigger: string;
|
|
52
|
+
content: string;
|
|
53
|
+
};
|
|
54
|
+
lg: {
|
|
55
|
+
trigger: string;
|
|
56
|
+
content: string;
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
chevronPosition: {
|
|
60
|
+
end: {
|
|
61
|
+
trigger: string;
|
|
62
|
+
};
|
|
63
|
+
start: {
|
|
64
|
+
trigger: string;
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
variant: {
|
|
68
|
+
list: {
|
|
69
|
+
item: string;
|
|
70
|
+
};
|
|
71
|
+
pill: {
|
|
72
|
+
root: string;
|
|
73
|
+
item: string;
|
|
74
|
+
trigger: string;
|
|
75
|
+
contentInner: string;
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
}, {
|
|
79
|
+
root: string;
|
|
80
|
+
item: string;
|
|
81
|
+
header: string;
|
|
82
|
+
trigger: string;
|
|
83
|
+
label: string;
|
|
84
|
+
chevron: string;
|
|
85
|
+
content: string;
|
|
86
|
+
contentInner: string;
|
|
87
|
+
}, import("tailwind-variants").TVReturnTypeLike<{
|
|
88
|
+
size: {
|
|
89
|
+
sm: {
|
|
90
|
+
trigger: string;
|
|
91
|
+
content: string;
|
|
92
|
+
};
|
|
93
|
+
md: {
|
|
94
|
+
trigger: string;
|
|
95
|
+
content: string;
|
|
96
|
+
};
|
|
97
|
+
lg: {
|
|
98
|
+
trigger: string;
|
|
99
|
+
content: string;
|
|
100
|
+
};
|
|
101
|
+
};
|
|
102
|
+
chevronPosition: {
|
|
103
|
+
end: {
|
|
104
|
+
trigger: string;
|
|
105
|
+
};
|
|
106
|
+
start: {
|
|
107
|
+
trigger: string;
|
|
108
|
+
};
|
|
109
|
+
};
|
|
110
|
+
variant: {
|
|
111
|
+
list: {
|
|
112
|
+
item: string;
|
|
113
|
+
};
|
|
114
|
+
pill: {
|
|
115
|
+
root: string;
|
|
116
|
+
item: string;
|
|
117
|
+
trigger: string;
|
|
118
|
+
contentInner: string;
|
|
119
|
+
};
|
|
120
|
+
};
|
|
121
|
+
}, {
|
|
122
|
+
root: string;
|
|
123
|
+
item: string;
|
|
124
|
+
header: string;
|
|
125
|
+
trigger: string;
|
|
126
|
+
label: string;
|
|
127
|
+
chevron: string;
|
|
128
|
+
content: string;
|
|
129
|
+
contentInner: string;
|
|
130
|
+
}>>;
|
|
131
|
+
export type AccordionThemeSlots = keyof (typeof accordionTheme)['slots'];
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { tv } from "tailwind-variants";
|
|
2
|
+
export const accordionTheme = tv({
|
|
3
|
+
slots: {
|
|
4
|
+
// w-full - without an explicit width, the root shrinks to fit
|
|
5
|
+
// whichever child happens to be widest at that moment (a closed
|
|
6
|
+
// item's own title vs an open item's own content), so the whole
|
|
7
|
+
// accordion visibly resized itself as items opened/closed.
|
|
8
|
+
root: "w-full flex flex-col",
|
|
9
|
+
item: "",
|
|
10
|
+
header: "",
|
|
11
|
+
trigger: "group flex w-full items-center gap-2 text-start font-medium text-[var(--ui-text)] transition-colors hover:text-[var(--ui-primary)] disabled:opacity-50 disabled:pointer-events-none",
|
|
12
|
+
label: "",
|
|
13
|
+
chevron: "size-4 shrink-0 text-[var(--ui-text-muted)] transition-transform group-data-[state=open]:rotate-180",
|
|
14
|
+
// overflow-hidden clips the panel to its own animated height (without
|
|
15
|
+
// it, content would visibly spill out mid-animation); the two
|
|
16
|
+
// data-state keyframes interpolate between 0 and Reka's own measured
|
|
17
|
+
// --reka-accordion-content-height, so this never hardcodes a height.
|
|
18
|
+
content: "overflow-hidden text-[var(--ui-text-muted)] data-[state=open]:animate-[selaras-accordion-down_200ms_ease-out] data-[state=closed]:animate-[selaras-accordion-up_200ms_ease-out]",
|
|
19
|
+
// A separate slot (not `content` itself) for the padding that used to
|
|
20
|
+
// live on `content` directly - the padding must NOT be part of the
|
|
21
|
+
// height being animated (animating a 0-to-N height with vertical
|
|
22
|
+
// padding baked in either clips the last few pixels of padding at 0,
|
|
23
|
+
// or overshoots the real content height), so it moves one level in.
|
|
24
|
+
contentInner: "pb-3"
|
|
25
|
+
},
|
|
26
|
+
variants: {
|
|
27
|
+
size: {
|
|
28
|
+
sm: { trigger: "py-2 text-sm", content: "text-sm" },
|
|
29
|
+
md: { trigger: "py-3 text-sm", content: "text-sm" },
|
|
30
|
+
lg: { trigger: "py-4 text-base", content: "text-base" }
|
|
31
|
+
},
|
|
32
|
+
// Lives on `trigger` (not baked into its base string) so a consumer's
|
|
33
|
+
// own :ui.trigger override doesn't have to fight a hardcoded
|
|
34
|
+
// justify-between/justify-start to move the chevron.
|
|
35
|
+
chevronPosition: {
|
|
36
|
+
end: { trigger: "justify-between" },
|
|
37
|
+
start: { trigger: "justify-start" }
|
|
38
|
+
},
|
|
39
|
+
// list: the original flat look - a single shared divider between
|
|
40
|
+
// items, no per-item shape of its own.
|
|
41
|
+
// pill: each item becomes its own bordered, rounded card (same visual
|
|
42
|
+
// language as Card's own `outline` variant) with a gap between items
|
|
43
|
+
// instead of a shared divider - overflow-hidden on `item` clips the
|
|
44
|
+
// content panel's corners to match, the same way Card's root does.
|
|
45
|
+
variant: {
|
|
46
|
+
list: { item: "border-b border-[var(--ui-border)] last:border-b-0" },
|
|
47
|
+
pill: {
|
|
48
|
+
root: "gap-2",
|
|
49
|
+
item: "rounded-[var(--ui-radius-md)] bg-[var(--ui-bg)] ring-1 ring-[var(--ui-border)] overflow-hidden",
|
|
50
|
+
trigger: "px-3 hover:bg-[var(--ui-bg-elevated)] hover:text-[var(--ui-text)]",
|
|
51
|
+
contentInner: "px-3"
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
defaultVariants: {
|
|
56
|
+
size: "md",
|
|
57
|
+
variant: "list",
|
|
58
|
+
chevronPosition: "end"
|
|
59
|
+
}
|
|
60
|
+
});
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
export declare const alertDialogTheme: import("tailwind-variants").TVReturnType<{
|
|
2
|
+
transition: {
|
|
3
|
+
true: {
|
|
4
|
+
overlay: string;
|
|
5
|
+
content: string;
|
|
6
|
+
};
|
|
7
|
+
false: {};
|
|
8
|
+
};
|
|
9
|
+
}, {
|
|
10
|
+
overlay: string;
|
|
11
|
+
content: string;
|
|
12
|
+
header: string;
|
|
13
|
+
title: string;
|
|
14
|
+
description: string;
|
|
15
|
+
body: string;
|
|
16
|
+
footer: string;
|
|
17
|
+
}, undefined, {
|
|
18
|
+
transition: {
|
|
19
|
+
true: {
|
|
20
|
+
overlay: string;
|
|
21
|
+
content: string;
|
|
22
|
+
};
|
|
23
|
+
false: {};
|
|
24
|
+
};
|
|
25
|
+
}, {
|
|
26
|
+
overlay: string;
|
|
27
|
+
content: string;
|
|
28
|
+
header: string;
|
|
29
|
+
title: string;
|
|
30
|
+
description: string;
|
|
31
|
+
body: string;
|
|
32
|
+
footer: string;
|
|
33
|
+
}, import("tailwind-variants").TVReturnTypeLike<{
|
|
34
|
+
transition: {
|
|
35
|
+
true: {
|
|
36
|
+
overlay: string;
|
|
37
|
+
content: string;
|
|
38
|
+
};
|
|
39
|
+
false: {};
|
|
40
|
+
};
|
|
41
|
+
}, {
|
|
42
|
+
overlay: string;
|
|
43
|
+
content: string;
|
|
44
|
+
header: string;
|
|
45
|
+
title: string;
|
|
46
|
+
description: string;
|
|
47
|
+
body: string;
|
|
48
|
+
footer: string;
|
|
49
|
+
}>>;
|
|
50
|
+
export type AlertDialogThemeSlots = keyof (typeof alertDialogTheme)['slots'];
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { tv } from "tailwind-variants";
|
|
2
|
+
export const alertDialogTheme = tv({
|
|
3
|
+
slots: {
|
|
4
|
+
// Same layer as Modal's own overlay/content - an alert dialog is the
|
|
5
|
+
// same kind of centered, blocking surface, just a distinct semantic
|
|
6
|
+
// (Reka's AlertDialogContent unconditionally blocks outside-click
|
|
7
|
+
// dismissal itself, so there's no need for a second z-index tier).
|
|
8
|
+
overlay: "fixed inset-0 z-[var(--ui-z-modal-overlay)] bg-black/50",
|
|
9
|
+
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 gap-4 rounded-[var(--ui-radius-lg)] bg-[var(--ui-bg)] p-6 shadow-[var(--ui-shadow-lg)] focus:outline-none",
|
|
10
|
+
header: "flex flex-col gap-1",
|
|
11
|
+
title: "text-base font-semibold text-[var(--ui-text)]",
|
|
12
|
+
description: "text-sm text-[var(--ui-text-muted)]",
|
|
13
|
+
body: "text-sm text-[var(--ui-text-muted)]",
|
|
14
|
+
footer: "flex items-center justify-end gap-2"
|
|
15
|
+
},
|
|
16
|
+
variants: {
|
|
17
|
+
// See Modal's own theme for why the animation classes live entirely
|
|
18
|
+
// inside this variant rather than the base slot strings.
|
|
19
|
+
transition: {
|
|
20
|
+
true: {
|
|
21
|
+
overlay: "data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=closed]:animate-out data-[state=closed]:fade-out-0",
|
|
22
|
+
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"
|
|
23
|
+
},
|
|
24
|
+
false: {}
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
defaultVariants: {
|
|
28
|
+
transition: true
|
|
29
|
+
}
|
|
30
|
+
});
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
export declare const alertTheme: import("tailwind-variants").TVReturnType<{
|
|
2
|
+
color: {
|
|
3
|
+
success: {};
|
|
4
|
+
danger: {};
|
|
5
|
+
warning: {};
|
|
6
|
+
info: {};
|
|
7
|
+
};
|
|
8
|
+
variant: {
|
|
9
|
+
solid: {};
|
|
10
|
+
soft: {};
|
|
11
|
+
outline: {};
|
|
12
|
+
};
|
|
13
|
+
}, {
|
|
14
|
+
root: string;
|
|
15
|
+
icon: string;
|
|
16
|
+
content: string;
|
|
17
|
+
title: string;
|
|
18
|
+
description: string;
|
|
19
|
+
actions: string;
|
|
20
|
+
close: string;
|
|
21
|
+
}, undefined, {
|
|
22
|
+
color: {
|
|
23
|
+
success: {};
|
|
24
|
+
danger: {};
|
|
25
|
+
warning: {};
|
|
26
|
+
info: {};
|
|
27
|
+
};
|
|
28
|
+
variant: {
|
|
29
|
+
solid: {};
|
|
30
|
+
soft: {};
|
|
31
|
+
outline: {};
|
|
32
|
+
};
|
|
33
|
+
}, {
|
|
34
|
+
root: string;
|
|
35
|
+
icon: string;
|
|
36
|
+
content: string;
|
|
37
|
+
title: string;
|
|
38
|
+
description: string;
|
|
39
|
+
actions: string;
|
|
40
|
+
close: string;
|
|
41
|
+
}, import("tailwind-variants").TVReturnTypeLike<{
|
|
42
|
+
color: {
|
|
43
|
+
success: {};
|
|
44
|
+
danger: {};
|
|
45
|
+
warning: {};
|
|
46
|
+
info: {};
|
|
47
|
+
};
|
|
48
|
+
variant: {
|
|
49
|
+
solid: {};
|
|
50
|
+
soft: {};
|
|
51
|
+
outline: {};
|
|
52
|
+
};
|
|
53
|
+
}, {
|
|
54
|
+
root: string;
|
|
55
|
+
icon: string;
|
|
56
|
+
content: string;
|
|
57
|
+
title: string;
|
|
58
|
+
description: string;
|
|
59
|
+
actions: string;
|
|
60
|
+
close: string;
|
|
61
|
+
}>>;
|
|
62
|
+
export type AlertThemeSlots = keyof (typeof alertTheme)['slots'];
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { tv } from "tailwind-variants";
|
|
2
|
+
export const alertTheme = tv({
|
|
3
|
+
slots: {
|
|
4
|
+
root: "relative flex items-start gap-3 rounded-[var(--ui-radius-md)] p-4",
|
|
5
|
+
icon: "size-5 shrink-0",
|
|
6
|
+
content: "min-w-0 flex-1",
|
|
7
|
+
title: "text-sm font-medium text-[var(--ui-text)]",
|
|
8
|
+
description: "mt-1 text-sm text-[var(--ui-text-muted)]",
|
|
9
|
+
actions: "mt-3 flex items-center gap-2",
|
|
10
|
+
// Rendered as an <SButton> (ghost/neutral) - matches Toast's own
|
|
11
|
+
// close slot exactly (theme/toast.ts).
|
|
12
|
+
close: "shrink-0 rounded-full"
|
|
13
|
+
},
|
|
14
|
+
variants: {
|
|
15
|
+
color: {
|
|
16
|
+
success: {},
|
|
17
|
+
danger: {},
|
|
18
|
+
warning: {},
|
|
19
|
+
info: {}
|
|
20
|
+
},
|
|
21
|
+
variant: {
|
|
22
|
+
solid: {},
|
|
23
|
+
soft: {},
|
|
24
|
+
outline: {}
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
compoundVariants: [
|
|
28
|
+
// soft/outline keep title/description neutral - only the icon (and,
|
|
29
|
+
// for outline, the ring) pick up color, matching Toast's own split
|
|
30
|
+
// (theme/toast.ts) where the message text never recolors. solid is
|
|
31
|
+
// the one exception: the background itself becomes the solid color,
|
|
32
|
+
// so title/description have to flip to that color's own
|
|
33
|
+
// `-foreground` token to stay legible, the same pairing Button's
|
|
34
|
+
// own solid variant already uses.
|
|
35
|
+
{ color: "success", variant: "soft", class: { root: "bg-[var(--ui-success-soft)]", icon: "text-[var(--ui-success)]" } },
|
|
36
|
+
{ color: "success", variant: "outline", class: { root: "bg-[var(--ui-bg)] ring-1 ring-[var(--ui-success)]", icon: "text-[var(--ui-success)]" } },
|
|
37
|
+
{ color: "success", variant: "solid", class: { root: "bg-[var(--ui-success)]", icon: "text-[var(--ui-success-foreground)]", title: "text-[var(--ui-success-foreground)]", description: "text-[var(--ui-success-foreground)] opacity-80" } },
|
|
38
|
+
{ color: "danger", variant: "soft", class: { root: "bg-[var(--ui-danger-soft)]", icon: "text-[var(--ui-danger)]" } },
|
|
39
|
+
{ color: "danger", variant: "outline", class: { root: "bg-[var(--ui-bg)] ring-1 ring-[var(--ui-danger)]", icon: "text-[var(--ui-danger)]" } },
|
|
40
|
+
{ color: "danger", variant: "solid", class: { root: "bg-[var(--ui-danger)]", icon: "text-[var(--ui-danger-foreground)]", title: "text-[var(--ui-danger-foreground)]", description: "text-[var(--ui-danger-foreground)] opacity-80" } },
|
|
41
|
+
{ color: "warning", variant: "soft", class: { root: "bg-[var(--ui-warning-soft)]", icon: "text-[var(--ui-warning)]" } },
|
|
42
|
+
{ color: "warning", variant: "outline", class: { root: "bg-[var(--ui-bg)] ring-1 ring-[var(--ui-warning)]", icon: "text-[var(--ui-warning)]" } },
|
|
43
|
+
{ color: "warning", variant: "solid", class: { root: "bg-[var(--ui-warning)]", icon: "text-[var(--ui-warning-foreground)]", title: "text-[var(--ui-warning-foreground)]", description: "text-[var(--ui-warning-foreground)] opacity-80" } },
|
|
44
|
+
{ color: "info", variant: "soft", class: { root: "bg-[var(--ui-info-soft)]", icon: "text-[var(--ui-info)]" } },
|
|
45
|
+
{ color: "info", variant: "outline", class: { root: "bg-[var(--ui-bg)] ring-1 ring-[var(--ui-info)]", icon: "text-[var(--ui-info)]" } },
|
|
46
|
+
{ color: "info", variant: "solid", class: { root: "bg-[var(--ui-info)]", icon: "text-[var(--ui-info-foreground)]", title: "text-[var(--ui-info-foreground)]", description: "text-[var(--ui-info-foreground)] opacity-80" } }
|
|
47
|
+
],
|
|
48
|
+
defaultVariants: {
|
|
49
|
+
color: "info",
|
|
50
|
+
variant: "soft"
|
|
51
|
+
}
|
|
52
|
+
});
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
export declare const avatarGroupTheme: import("tailwind-variants").TVReturnType<{
|
|
2
|
+
size: {
|
|
3
|
+
sm: {
|
|
4
|
+
item: string;
|
|
5
|
+
count: string;
|
|
6
|
+
};
|
|
7
|
+
md: {
|
|
8
|
+
item: string;
|
|
9
|
+
count: string;
|
|
10
|
+
};
|
|
11
|
+
lg: {
|
|
12
|
+
item: string;
|
|
13
|
+
count: string;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
}, {
|
|
17
|
+
root: string;
|
|
18
|
+
item: string;
|
|
19
|
+
count: string;
|
|
20
|
+
}, undefined, {
|
|
21
|
+
size: {
|
|
22
|
+
sm: {
|
|
23
|
+
item: string;
|
|
24
|
+
count: string;
|
|
25
|
+
};
|
|
26
|
+
md: {
|
|
27
|
+
item: string;
|
|
28
|
+
count: string;
|
|
29
|
+
};
|
|
30
|
+
lg: {
|
|
31
|
+
item: string;
|
|
32
|
+
count: string;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
}, {
|
|
36
|
+
root: string;
|
|
37
|
+
item: string;
|
|
38
|
+
count: string;
|
|
39
|
+
}, import("tailwind-variants").TVReturnTypeLike<{
|
|
40
|
+
size: {
|
|
41
|
+
sm: {
|
|
42
|
+
item: string;
|
|
43
|
+
count: string;
|
|
44
|
+
};
|
|
45
|
+
md: {
|
|
46
|
+
item: string;
|
|
47
|
+
count: string;
|
|
48
|
+
};
|
|
49
|
+
lg: {
|
|
50
|
+
item: string;
|
|
51
|
+
count: string;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
}, {
|
|
55
|
+
root: string;
|
|
56
|
+
item: string;
|
|
57
|
+
count: string;
|
|
58
|
+
}>>;
|
|
59
|
+
export type AvatarGroupThemeSlots = keyof (typeof avatarGroupTheme)['slots'];
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { tv } from "tailwind-variants";
|
|
2
|
+
export const avatarGroupTheme = tv({
|
|
3
|
+
slots: {
|
|
4
|
+
root: "inline-flex flex-row-reverse justify-end",
|
|
5
|
+
item: "relative rounded-full ring-[var(--ui-bg)]",
|
|
6
|
+
count: "relative rounded-full bg-[var(--ui-bg-elevated)] text-[var(--ui-text-muted)] font-medium flex items-center justify-center"
|
|
7
|
+
},
|
|
8
|
+
variants: {
|
|
9
|
+
size: {
|
|
10
|
+
sm: { item: "ring-1 -me-1", count: "ring-1 -me-1 size-6 text-[10px]" },
|
|
11
|
+
md: { item: "ring-2 -me-1.5", count: "ring-2 -me-1.5 size-8 text-xs" },
|
|
12
|
+
lg: { item: "ring-2 -me-2", count: "ring-2 -me-2 size-10 text-sm" }
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
defaultVariants: {
|
|
16
|
+
size: "md"
|
|
17
|
+
}
|
|
18
|
+
});
|