@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 formFieldTheme: import("tailwind-variants").TVReturnType<{
|
|
2
|
+
size: {
|
|
3
|
+
sm: {
|
|
4
|
+
label: string;
|
|
5
|
+
};
|
|
6
|
+
md: {};
|
|
7
|
+
lg: {
|
|
8
|
+
label: string;
|
|
9
|
+
description: string;
|
|
10
|
+
hint: string;
|
|
11
|
+
error: string;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
orientation: {
|
|
15
|
+
vertical: {};
|
|
16
|
+
horizontal: {
|
|
17
|
+
body: string;
|
|
18
|
+
header: string;
|
|
19
|
+
container: string;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
}, {
|
|
23
|
+
root: string;
|
|
24
|
+
body: string;
|
|
25
|
+
header: string;
|
|
26
|
+
label: string;
|
|
27
|
+
required: string;
|
|
28
|
+
description: string;
|
|
29
|
+
container: string;
|
|
30
|
+
hint: string;
|
|
31
|
+
error: string;
|
|
32
|
+
}, undefined, {
|
|
33
|
+
size: {
|
|
34
|
+
sm: {
|
|
35
|
+
label: string;
|
|
36
|
+
};
|
|
37
|
+
md: {};
|
|
38
|
+
lg: {
|
|
39
|
+
label: string;
|
|
40
|
+
description: string;
|
|
41
|
+
hint: string;
|
|
42
|
+
error: string;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
orientation: {
|
|
46
|
+
vertical: {};
|
|
47
|
+
horizontal: {
|
|
48
|
+
body: string;
|
|
49
|
+
header: string;
|
|
50
|
+
container: string;
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
}, {
|
|
54
|
+
root: string;
|
|
55
|
+
body: string;
|
|
56
|
+
header: string;
|
|
57
|
+
label: string;
|
|
58
|
+
required: string;
|
|
59
|
+
description: string;
|
|
60
|
+
container: string;
|
|
61
|
+
hint: string;
|
|
62
|
+
error: string;
|
|
63
|
+
}, import("tailwind-variants").TVReturnTypeLike<{
|
|
64
|
+
size: {
|
|
65
|
+
sm: {
|
|
66
|
+
label: string;
|
|
67
|
+
};
|
|
68
|
+
md: {};
|
|
69
|
+
lg: {
|
|
70
|
+
label: string;
|
|
71
|
+
description: string;
|
|
72
|
+
hint: string;
|
|
73
|
+
error: string;
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
orientation: {
|
|
77
|
+
vertical: {};
|
|
78
|
+
horizontal: {
|
|
79
|
+
body: string;
|
|
80
|
+
header: string;
|
|
81
|
+
container: string;
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
}, {
|
|
85
|
+
root: string;
|
|
86
|
+
body: string;
|
|
87
|
+
header: string;
|
|
88
|
+
label: string;
|
|
89
|
+
required: string;
|
|
90
|
+
description: string;
|
|
91
|
+
container: string;
|
|
92
|
+
hint: string;
|
|
93
|
+
error: string;
|
|
94
|
+
}>>;
|
|
95
|
+
export type FormFieldThemeSlots = keyof (typeof formFieldTheme)['slots'];
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { tv } from "tailwind-variants";
|
|
2
|
+
export const formFieldTheme = tv({
|
|
3
|
+
slots: {
|
|
4
|
+
root: "flex flex-col gap-1.5",
|
|
5
|
+
// Groups label+description as one unit next to `container` in
|
|
6
|
+
// horizontal orientation - plain flex-col stacking (matching root's
|
|
7
|
+
// own default look exactly) in vertical.
|
|
8
|
+
body: "flex flex-col gap-1.5",
|
|
9
|
+
header: "",
|
|
10
|
+
label: "text-sm font-medium text-[var(--ui-text)]",
|
|
11
|
+
required: "ms-0.5 text-[var(--ui-danger)]",
|
|
12
|
+
description: "text-xs text-[var(--ui-text-muted)]",
|
|
13
|
+
container: "",
|
|
14
|
+
hint: "text-xs text-[var(--ui-text-muted)]",
|
|
15
|
+
error: "text-xs text-[var(--ui-danger)]"
|
|
16
|
+
},
|
|
17
|
+
variants: {
|
|
18
|
+
// Scales FormField's own label/description/hint/error text to match
|
|
19
|
+
// the size passed to the wrapped control (that part already flows
|
|
20
|
+
// through FormFieldContext - this is just making FormField's own
|
|
21
|
+
// text visually agree with it too).
|
|
22
|
+
size: {
|
|
23
|
+
sm: { label: "text-xs" },
|
|
24
|
+
md: {},
|
|
25
|
+
// matches the base slot classes above exactly
|
|
26
|
+
lg: { label: "text-base", description: "text-sm", hint: "text-sm", error: "text-sm" }
|
|
27
|
+
},
|
|
28
|
+
orientation: {
|
|
29
|
+
vertical: {},
|
|
30
|
+
horizontal: { body: "flex-row items-start gap-3", header: "shrink-0", container: "flex-1 min-w-0" }
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
defaultVariants: {
|
|
34
|
+
size: "md",
|
|
35
|
+
orientation: "vertical"
|
|
36
|
+
}
|
|
37
|
+
});
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
export declare const headerTheme: import("tailwind-variants").TVReturnType<{
|
|
2
|
+
[key: string]: {
|
|
3
|
+
[key: string]: import("tailwind-variants").ClassValue | {
|
|
4
|
+
root?: import("tailwind-variants").ClassValue;
|
|
5
|
+
right?: import("tailwind-variants").ClassValue;
|
|
6
|
+
left?: import("tailwind-variants").ClassValue;
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
} | {
|
|
10
|
+
[x: string]: {
|
|
11
|
+
[x: string]: import("tailwind-variants").ClassValue | {
|
|
12
|
+
root?: import("tailwind-variants").ClassValue;
|
|
13
|
+
right?: import("tailwind-variants").ClassValue;
|
|
14
|
+
left?: import("tailwind-variants").ClassValue;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
} | {}, {
|
|
18
|
+
root: string;
|
|
19
|
+
left: string;
|
|
20
|
+
right: string;
|
|
21
|
+
}, undefined, {
|
|
22
|
+
[key: string]: {
|
|
23
|
+
[key: string]: import("tailwind-variants").ClassValue | {
|
|
24
|
+
root?: import("tailwind-variants").ClassValue;
|
|
25
|
+
right?: import("tailwind-variants").ClassValue;
|
|
26
|
+
left?: import("tailwind-variants").ClassValue;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
} | {}, {
|
|
30
|
+
root: string;
|
|
31
|
+
left: string;
|
|
32
|
+
right: string;
|
|
33
|
+
}, import("tailwind-variants").TVReturnTypeLike<unknown, {
|
|
34
|
+
root: string;
|
|
35
|
+
left: string;
|
|
36
|
+
right: string;
|
|
37
|
+
}>>;
|
|
38
|
+
export type HeaderThemeSlots = keyof (typeof headerTheme)['slots'];
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { tv } from "tailwind-variants";
|
|
2
|
+
export const headerTheme = tv({
|
|
3
|
+
slots: {
|
|
4
|
+
root: "sticky top-0 z-20 flex h-16 shrink-0 items-center justify-between gap-4 border-b border-[var(--ui-border)] bg-[var(--ui-bg)] px-4 sm:px-6",
|
|
5
|
+
left: "flex min-w-0 items-center gap-2",
|
|
6
|
+
right: "flex shrink-0 items-center gap-2"
|
|
7
|
+
}
|
|
8
|
+
});
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
export declare const iconTheme: import("tailwind-variants").TVReturnType<{
|
|
2
|
+
color: {
|
|
3
|
+
primary: {
|
|
4
|
+
base: string;
|
|
5
|
+
};
|
|
6
|
+
neutral: {
|
|
7
|
+
base: string;
|
|
8
|
+
};
|
|
9
|
+
secondary: {
|
|
10
|
+
base: string;
|
|
11
|
+
};
|
|
12
|
+
success: {
|
|
13
|
+
base: string;
|
|
14
|
+
};
|
|
15
|
+
danger: {
|
|
16
|
+
base: string;
|
|
17
|
+
};
|
|
18
|
+
info: {
|
|
19
|
+
base: string;
|
|
20
|
+
};
|
|
21
|
+
warning: {
|
|
22
|
+
base: string;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
}, {
|
|
26
|
+
base: string;
|
|
27
|
+
}, undefined, {
|
|
28
|
+
color: {
|
|
29
|
+
primary: {
|
|
30
|
+
base: string;
|
|
31
|
+
};
|
|
32
|
+
neutral: {
|
|
33
|
+
base: string;
|
|
34
|
+
};
|
|
35
|
+
secondary: {
|
|
36
|
+
base: string;
|
|
37
|
+
};
|
|
38
|
+
success: {
|
|
39
|
+
base: string;
|
|
40
|
+
};
|
|
41
|
+
danger: {
|
|
42
|
+
base: string;
|
|
43
|
+
};
|
|
44
|
+
info: {
|
|
45
|
+
base: string;
|
|
46
|
+
};
|
|
47
|
+
warning: {
|
|
48
|
+
base: string;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
}, {
|
|
52
|
+
base: string;
|
|
53
|
+
}, import("tailwind-variants").TVReturnTypeLike<{
|
|
54
|
+
color: {
|
|
55
|
+
primary: {
|
|
56
|
+
base: string;
|
|
57
|
+
};
|
|
58
|
+
neutral: {
|
|
59
|
+
base: string;
|
|
60
|
+
};
|
|
61
|
+
secondary: {
|
|
62
|
+
base: string;
|
|
63
|
+
};
|
|
64
|
+
success: {
|
|
65
|
+
base: string;
|
|
66
|
+
};
|
|
67
|
+
danger: {
|
|
68
|
+
base: string;
|
|
69
|
+
};
|
|
70
|
+
info: {
|
|
71
|
+
base: string;
|
|
72
|
+
};
|
|
73
|
+
warning: {
|
|
74
|
+
base: string;
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
}, {
|
|
78
|
+
base: string;
|
|
79
|
+
}>>;
|
|
80
|
+
export type IconThemeSlots = keyof (typeof iconTheme)['slots'];
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { tv } from "tailwind-variants";
|
|
2
|
+
export const iconTheme = tv({
|
|
3
|
+
slots: {
|
|
4
|
+
base: "shrink-0"
|
|
5
|
+
},
|
|
6
|
+
variants: {
|
|
7
|
+
// No default - an unset color inherits currentColor from wherever the
|
|
8
|
+
// icon is placed, which is what every internal usage elsewhere in this
|
|
9
|
+
// library already relies on (e.g. Input's --ui-text-muted icon slots).
|
|
10
|
+
// No size variant (deliberately) - every internal consumer needs its
|
|
11
|
+
// own precise size (size-2.5/3/3.5/4/4.5/5/6 depending on component and
|
|
12
|
+
// slot), none of which map cleanly onto a shared sm/md/lg scale. Pass
|
|
13
|
+
// whatever size class you need via `class` instead, same as any other
|
|
14
|
+
// icon usage - a raw `class="text-*"` still overrides `color` too,
|
|
15
|
+
// since both just flow through the same tailwind-merge below.
|
|
16
|
+
color: {
|
|
17
|
+
primary: { base: "text-[var(--ui-primary)]" },
|
|
18
|
+
neutral: { base: "text-[var(--ui-text)]" },
|
|
19
|
+
secondary: { base: "text-[var(--ui-secondary)]" },
|
|
20
|
+
success: { base: "text-[var(--ui-success)]" },
|
|
21
|
+
danger: { base: "text-[var(--ui-danger)]" },
|
|
22
|
+
info: { base: "text-[var(--ui-info)]" },
|
|
23
|
+
warning: { base: "text-[var(--ui-warning)]" }
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
});
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
export declare const inputGroupTheme: import("tailwind-variants").TVReturnType<{
|
|
2
|
+
orientation: {
|
|
3
|
+
horizontal: {
|
|
4
|
+
root: string;
|
|
5
|
+
};
|
|
6
|
+
vertical: {
|
|
7
|
+
root: string;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
}, {
|
|
11
|
+
/**
|
|
12
|
+
* Same mechanism as button-group.ts, plus a second, deeper rule per
|
|
13
|
+
* side: Button's own root IS its styled box, so the shallow
|
|
14
|
+
* `[&>*:not(...)]` rule alone is enough for it - but Input/Textarea/
|
|
15
|
+
* Select wrap their real ring/radius one level deeper (their root is
|
|
16
|
+
* a plain unstyled div), so the shallow rule is a harmless no-op for
|
|
17
|
+
* them. The `[data-ui-group-item]` descendant rule reaches that real
|
|
18
|
+
* inner element instead (see Input.vue/Textarea.vue/
|
|
19
|
+
* ComboboxSelectBase.vue for where that attribute lives). Both rules
|
|
20
|
+
* stay active together - each is a no-op on the child type the other
|
|
21
|
+
* one targets.
|
|
22
|
+
*
|
|
23
|
+
* `:focus-within` (not ButtonGroup's `:focus-visible`) - it fires
|
|
24
|
+
* whether the focused element is the child itself (Button) or nested
|
|
25
|
+
* inside it (Input/Textarea/Select's real focusable element), and
|
|
26
|
+
* matches Input's own existing convention of an unconditional
|
|
27
|
+
* `focus:` ring rather than `focus-visible:`. `:hover` needs no
|
|
28
|
+
* change - it already applies to an ancestor whenever the pointer is
|
|
29
|
+
* over it or any descendant.
|
|
30
|
+
*/
|
|
31
|
+
root: string;
|
|
32
|
+
}, undefined, {
|
|
33
|
+
orientation: {
|
|
34
|
+
horizontal: {
|
|
35
|
+
root: string;
|
|
36
|
+
};
|
|
37
|
+
vertical: {
|
|
38
|
+
root: string;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
}, {
|
|
42
|
+
/**
|
|
43
|
+
* Same mechanism as button-group.ts, plus a second, deeper rule per
|
|
44
|
+
* side: Button's own root IS its styled box, so the shallow
|
|
45
|
+
* `[&>*:not(...)]` rule alone is enough for it - but Input/Textarea/
|
|
46
|
+
* Select wrap their real ring/radius one level deeper (their root is
|
|
47
|
+
* a plain unstyled div), so the shallow rule is a harmless no-op for
|
|
48
|
+
* them. The `[data-ui-group-item]` descendant rule reaches that real
|
|
49
|
+
* inner element instead (see Input.vue/Textarea.vue/
|
|
50
|
+
* ComboboxSelectBase.vue for where that attribute lives). Both rules
|
|
51
|
+
* stay active together - each is a no-op on the child type the other
|
|
52
|
+
* one targets.
|
|
53
|
+
*
|
|
54
|
+
* `:focus-within` (not ButtonGroup's `:focus-visible`) - it fires
|
|
55
|
+
* whether the focused element is the child itself (Button) or nested
|
|
56
|
+
* inside it (Input/Textarea/Select's real focusable element), and
|
|
57
|
+
* matches Input's own existing convention of an unconditional
|
|
58
|
+
* `focus:` ring rather than `focus-visible:`. `:hover` needs no
|
|
59
|
+
* change - it already applies to an ancestor whenever the pointer is
|
|
60
|
+
* over it or any descendant.
|
|
61
|
+
*/
|
|
62
|
+
root: string;
|
|
63
|
+
}, import("tailwind-variants").TVReturnTypeLike<{
|
|
64
|
+
orientation: {
|
|
65
|
+
horizontal: {
|
|
66
|
+
root: string;
|
|
67
|
+
};
|
|
68
|
+
vertical: {
|
|
69
|
+
root: string;
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
}, {
|
|
73
|
+
/**
|
|
74
|
+
* Same mechanism as button-group.ts, plus a second, deeper rule per
|
|
75
|
+
* side: Button's own root IS its styled box, so the shallow
|
|
76
|
+
* `[&>*:not(...)]` rule alone is enough for it - but Input/Textarea/
|
|
77
|
+
* Select wrap their real ring/radius one level deeper (their root is
|
|
78
|
+
* a plain unstyled div), so the shallow rule is a harmless no-op for
|
|
79
|
+
* them. The `[data-ui-group-item]` descendant rule reaches that real
|
|
80
|
+
* inner element instead (see Input.vue/Textarea.vue/
|
|
81
|
+
* ComboboxSelectBase.vue for where that attribute lives). Both rules
|
|
82
|
+
* stay active together - each is a no-op on the child type the other
|
|
83
|
+
* one targets.
|
|
84
|
+
*
|
|
85
|
+
* `:focus-within` (not ButtonGroup's `:focus-visible`) - it fires
|
|
86
|
+
* whether the focused element is the child itself (Button) or nested
|
|
87
|
+
* inside it (Input/Textarea/Select's real focusable element), and
|
|
88
|
+
* matches Input's own existing convention of an unconditional
|
|
89
|
+
* `focus:` ring rather than `focus-visible:`. `:hover` needs no
|
|
90
|
+
* change - it already applies to an ancestor whenever the pointer is
|
|
91
|
+
* over it or any descendant.
|
|
92
|
+
*/
|
|
93
|
+
root: string;
|
|
94
|
+
}>>;
|
|
95
|
+
export type InputGroupThemeSlots = keyof (typeof inputGroupTheme)['slots'];
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { tv } from "tailwind-variants";
|
|
2
|
+
export const inputGroupTheme = tv({
|
|
3
|
+
slots: {
|
|
4
|
+
/**
|
|
5
|
+
* Same mechanism as button-group.ts, plus a second, deeper rule per
|
|
6
|
+
* side: Button's own root IS its styled box, so the shallow
|
|
7
|
+
* `[&>*:not(...)]` rule alone is enough for it - but Input/Textarea/
|
|
8
|
+
* Select wrap their real ring/radius one level deeper (their root is
|
|
9
|
+
* a plain unstyled div), so the shallow rule is a harmless no-op for
|
|
10
|
+
* them. The `[data-ui-group-item]` descendant rule reaches that real
|
|
11
|
+
* inner element instead (see Input.vue/Textarea.vue/
|
|
12
|
+
* ComboboxSelectBase.vue for where that attribute lives). Both rules
|
|
13
|
+
* stay active together - each is a no-op on the child type the other
|
|
14
|
+
* one targets.
|
|
15
|
+
*
|
|
16
|
+
* `:focus-within` (not ButtonGroup's `:focus-visible`) - it fires
|
|
17
|
+
* whether the focused element is the child itself (Button) or nested
|
|
18
|
+
* inside it (Input/Textarea/Select's real focusable element), and
|
|
19
|
+
* matches Input's own existing convention of an unconditional
|
|
20
|
+
* `focus:` ring rather than `focus-visible:`. `:hover` needs no
|
|
21
|
+
* change - it already applies to an ancestor whenever the pointer is
|
|
22
|
+
* over it or any descendant.
|
|
23
|
+
*/
|
|
24
|
+
root: "[&>*]:relative [&>*:hover]:z-10 [&>*:focus-within]:z-10"
|
|
25
|
+
},
|
|
26
|
+
variants: {
|
|
27
|
+
orientation: {
|
|
28
|
+
horizontal: {
|
|
29
|
+
root: "inline-flex [&>*:not(:first-child)]:-ms-px [&>*:not(:first-child)]:rounded-s-none [&>*:not(:last-child)]:rounded-e-none [&>*:not(:first-child)_[data-ui-group-item]]:rounded-s-none [&>*:not(:last-child)_[data-ui-group-item]]:rounded-e-none"
|
|
30
|
+
},
|
|
31
|
+
vertical: {
|
|
32
|
+
root: "inline-flex flex-col [&>*:not(:first-child)]:-mt-px [&>*:not(:first-child)]:rounded-t-none [&>*:not(:last-child)]:rounded-b-none [&>*:not(:first-child)_[data-ui-group-item]]:rounded-t-none [&>*:not(:last-child)_[data-ui-group-item]]:rounded-b-none"
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
defaultVariants: {
|
|
37
|
+
orientation: "horizontal"
|
|
38
|
+
}
|
|
39
|
+
});
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
export declare const inputNumberTheme: import("tailwind-variants").TVReturnType<{
|
|
2
|
+
size: {
|
|
3
|
+
sm: {
|
|
4
|
+
root: string;
|
|
5
|
+
input: string;
|
|
6
|
+
};
|
|
7
|
+
md: {
|
|
8
|
+
root: string;
|
|
9
|
+
input: string;
|
|
10
|
+
};
|
|
11
|
+
lg: {
|
|
12
|
+
root: string;
|
|
13
|
+
input: string;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
color: {
|
|
17
|
+
primary: {
|
|
18
|
+
root: string;
|
|
19
|
+
};
|
|
20
|
+
neutral: {
|
|
21
|
+
root: string;
|
|
22
|
+
};
|
|
23
|
+
secondary: {
|
|
24
|
+
root: string;
|
|
25
|
+
};
|
|
26
|
+
success: {
|
|
27
|
+
root: string;
|
|
28
|
+
};
|
|
29
|
+
danger: {
|
|
30
|
+
root: string;
|
|
31
|
+
};
|
|
32
|
+
info: {
|
|
33
|
+
root: string;
|
|
34
|
+
};
|
|
35
|
+
warning: {
|
|
36
|
+
root: string;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
orientation: {
|
|
40
|
+
horizontal: {};
|
|
41
|
+
vertical: {
|
|
42
|
+
input: string;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
invalid: {
|
|
46
|
+
true: {
|
|
47
|
+
root: string;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
}, {
|
|
51
|
+
root: string;
|
|
52
|
+
input: string;
|
|
53
|
+
stepper: string;
|
|
54
|
+
stepperButton: string;
|
|
55
|
+
}, undefined, {
|
|
56
|
+
size: {
|
|
57
|
+
sm: {
|
|
58
|
+
root: string;
|
|
59
|
+
input: string;
|
|
60
|
+
};
|
|
61
|
+
md: {
|
|
62
|
+
root: string;
|
|
63
|
+
input: string;
|
|
64
|
+
};
|
|
65
|
+
lg: {
|
|
66
|
+
root: string;
|
|
67
|
+
input: string;
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
color: {
|
|
71
|
+
primary: {
|
|
72
|
+
root: string;
|
|
73
|
+
};
|
|
74
|
+
neutral: {
|
|
75
|
+
root: string;
|
|
76
|
+
};
|
|
77
|
+
secondary: {
|
|
78
|
+
root: string;
|
|
79
|
+
};
|
|
80
|
+
success: {
|
|
81
|
+
root: string;
|
|
82
|
+
};
|
|
83
|
+
danger: {
|
|
84
|
+
root: string;
|
|
85
|
+
};
|
|
86
|
+
info: {
|
|
87
|
+
root: string;
|
|
88
|
+
};
|
|
89
|
+
warning: {
|
|
90
|
+
root: string;
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
orientation: {
|
|
94
|
+
horizontal: {};
|
|
95
|
+
vertical: {
|
|
96
|
+
input: string;
|
|
97
|
+
};
|
|
98
|
+
};
|
|
99
|
+
invalid: {
|
|
100
|
+
true: {
|
|
101
|
+
root: string;
|
|
102
|
+
};
|
|
103
|
+
};
|
|
104
|
+
}, {
|
|
105
|
+
root: string;
|
|
106
|
+
input: string;
|
|
107
|
+
stepper: string;
|
|
108
|
+
stepperButton: string;
|
|
109
|
+
}, import("tailwind-variants").TVReturnTypeLike<{
|
|
110
|
+
size: {
|
|
111
|
+
sm: {
|
|
112
|
+
root: string;
|
|
113
|
+
input: string;
|
|
114
|
+
};
|
|
115
|
+
md: {
|
|
116
|
+
root: string;
|
|
117
|
+
input: string;
|
|
118
|
+
};
|
|
119
|
+
lg: {
|
|
120
|
+
root: string;
|
|
121
|
+
input: string;
|
|
122
|
+
};
|
|
123
|
+
};
|
|
124
|
+
color: {
|
|
125
|
+
primary: {
|
|
126
|
+
root: string;
|
|
127
|
+
};
|
|
128
|
+
neutral: {
|
|
129
|
+
root: string;
|
|
130
|
+
};
|
|
131
|
+
secondary: {
|
|
132
|
+
root: string;
|
|
133
|
+
};
|
|
134
|
+
success: {
|
|
135
|
+
root: string;
|
|
136
|
+
};
|
|
137
|
+
danger: {
|
|
138
|
+
root: string;
|
|
139
|
+
};
|
|
140
|
+
info: {
|
|
141
|
+
root: string;
|
|
142
|
+
};
|
|
143
|
+
warning: {
|
|
144
|
+
root: string;
|
|
145
|
+
};
|
|
146
|
+
};
|
|
147
|
+
orientation: {
|
|
148
|
+
horizontal: {};
|
|
149
|
+
vertical: {
|
|
150
|
+
input: string;
|
|
151
|
+
};
|
|
152
|
+
};
|
|
153
|
+
invalid: {
|
|
154
|
+
true: {
|
|
155
|
+
root: string;
|
|
156
|
+
};
|
|
157
|
+
};
|
|
158
|
+
}, {
|
|
159
|
+
root: string;
|
|
160
|
+
input: string;
|
|
161
|
+
stepper: string;
|
|
162
|
+
stepperButton: string;
|
|
163
|
+
}>>;
|
|
164
|
+
export type InputNumberThemeSlots = keyof (typeof inputNumberTheme)['slots'];
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { tv } from "tailwind-variants";
|
|
2
|
+
export const inputNumberTheme = tv({
|
|
3
|
+
slots: {
|
|
4
|
+
// Same ring/bg/radius/hover/focus-within box language as Input's own
|
|
5
|
+
// `base` (theme/input.ts) - this wraps real interactive children
|
|
6
|
+
// (decrement button, input, increment button) rather than being the
|
|
7
|
+
// input itself, so the focus ring keys off :focus-within, and the
|
|
8
|
+
// disabled look off :has(:disabled) instead of a bare `disabled` prop.
|
|
9
|
+
// Scoped to `has-[input:disabled]` specifically, not a bare
|
|
10
|
+
// `has-[:disabled]` - the two step buttons independently become
|
|
11
|
+
// `:disabled` whenever they hit their own min/max boundary (e.g. a
|
|
12
|
+
// fresh 0-23 hour field starts at its own minimum), which is normal,
|
|
13
|
+
// expected state, not "the whole control is disabled." A bare
|
|
14
|
+
// `has-[:disabled]` matched that too and killed pointer-events for the
|
|
15
|
+
// entire root - including the input and the OTHER, non-boundary button
|
|
16
|
+
// - the moment either step button reached its own boundary; only the
|
|
17
|
+
// real `disabled` prop (bound solely to the <input>) should trigger this.
|
|
18
|
+
// `relative` is unused in the default horizontal layout but required by
|
|
19
|
+
// `stepper` below once orientation="vertical" positions against it.
|
|
20
|
+
// not-focus-within: on the hover ring specifically - without it, hovering
|
|
21
|
+
// anywhere in here (which is unavoidable while clicking the +/- buttons,
|
|
22
|
+
// since the pointer sits right on top of them) let the plain gray hover
|
|
23
|
+
// ring beat the primary focus-within ring in the cascade, since both are
|
|
24
|
+
// equal-specificity pseudo-class selectors and hover's happened to win.
|
|
25
|
+
// bg's own hover change is left unscoped - there's no competing
|
|
26
|
+
// focus-driven background to conflict with, so it can keep showing
|
|
27
|
+
// regardless of focus state.
|
|
28
|
+
root: "relative inline-flex w-full items-center gap-1 rounded-[var(--ui-radius-md)] bg-[var(--ui-bg)] ring-1 ring-inset ring-[var(--ui-border)] transition-[color,background-color,box-shadow] not-focus-within:hover:ring-[var(--ui-border-hover)] hover:bg-[var(--ui-bg-elevated)] focus-within:ring-2 has-[input:disabled]:opacity-50 has-[input:disabled]:pointer-events-none",
|
|
29
|
+
// Borderless/transparent - root already carries the visual box, this is
|
|
30
|
+
// just the editable text. Centered + tabular-nums so digits don't shift
|
|
31
|
+
// width as the value changes - orientation="vertical" overrides the
|
|
32
|
+
// centering below, since the stepper only occupies the end edge there.
|
|
33
|
+
input: "w-full min-w-0 flex-1 border-0 bg-transparent text-center tabular-nums text-[var(--ui-text)] outline-none placeholder:text-[var(--ui-text-muted)] disabled:cursor-not-allowed",
|
|
34
|
+
// orientation="vertical" only - a compact up/down pair pinned to the
|
|
35
|
+
// end edge, replacing the two full-height flanking buttons.
|
|
36
|
+
stepper: "absolute end-1 inset-y-1 flex flex-col justify-center gap-px",
|
|
37
|
+
// Each vertical stepper button - not a <SButton> composition (see
|
|
38
|
+
// DatePicker.vue's drill-down heading for the same precedent): Button's
|
|
39
|
+
// own size scale has no step small enough for two of these to stack
|
|
40
|
+
// inside one field's own height, and fighting its fixed sm classes with
|
|
41
|
+
// overrides is more fragile than a plain, purpose-built button here.
|
|
42
|
+
stepperButton: "flex h-3.5 w-5 items-center justify-center rounded-[var(--ui-radius-sm)] text-[var(--ui-text-muted)] transition-colors hover:text-[var(--ui-text)] disabled:opacity-50 disabled:pointer-events-none"
|
|
43
|
+
},
|
|
44
|
+
variants: {
|
|
45
|
+
size: {
|
|
46
|
+
sm: { root: "h-8 px-1", input: "text-sm" },
|
|
47
|
+
md: { root: "h-10 px-1.5", input: "text-sm" },
|
|
48
|
+
lg: { root: "h-11 px-2", input: "text-base" }
|
|
49
|
+
},
|
|
50
|
+
// Focus-ring color only - the resting ring stays --ui-border regardless
|
|
51
|
+
// of `color`, matching Input's own scope (see input.ts).
|
|
52
|
+
color: {
|
|
53
|
+
primary: { root: "focus-within:ring-[var(--ui-primary)]" },
|
|
54
|
+
neutral: { root: "focus-within:ring-[var(--ui-bg-inverted)]" },
|
|
55
|
+
secondary: { root: "focus-within:ring-[var(--ui-secondary)]" },
|
|
56
|
+
success: { root: "focus-within:ring-[var(--ui-success)]" },
|
|
57
|
+
danger: { root: "focus-within:ring-[var(--ui-danger)]" },
|
|
58
|
+
info: { root: "focus-within:ring-[var(--ui-info)]" },
|
|
59
|
+
warning: { root: "focus-within:ring-[var(--ui-warning)]" }
|
|
60
|
+
},
|
|
61
|
+
orientation: {
|
|
62
|
+
horizontal: {},
|
|
63
|
+
vertical: { input: "text-start ps-1.5 pe-7" }
|
|
64
|
+
},
|
|
65
|
+
// Declared last (after color) so tailwind-merge lets its own
|
|
66
|
+
// focus-within:ring override win over color's - see input.ts for why
|
|
67
|
+
// declaration order (not runtime call order) is what decides this.
|
|
68
|
+
invalid: {
|
|
69
|
+
true: { root: "ring-[var(--ui-danger)] hover:ring-[var(--ui-danger)] focus-within:ring-[var(--ui-danger)]" }
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
defaultVariants: {
|
|
73
|
+
size: "md",
|
|
74
|
+
color: "primary"
|
|
75
|
+
}
|
|
76
|
+
});
|