@sewadah/selaras 0.1.1 → 0.3.0
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/README.md +67 -20
- package/dist/module.d.mts +10 -0
- package/dist/module.json +1 -1
- package/dist/module.mjs +123 -36
- package/dist/runtime/components/Accordion.d.vue.ts +3 -0
- package/dist/runtime/components/Accordion.vue +5 -1
- package/dist/runtime/components/Accordion.vue.d.ts +3 -0
- package/dist/runtime/components/Alert.d.vue.ts +2 -1
- package/dist/runtime/components/Alert.vue +6 -3
- package/dist/runtime/components/Alert.vue.d.ts +2 -1
- package/dist/runtime/components/AlertDialog.d.vue.ts +2 -0
- package/dist/runtime/components/AlertDialog.vue +21 -8
- package/dist/runtime/components/AlertDialog.vue.d.ts +2 -0
- package/dist/runtime/components/App.vue +9 -2
- package/dist/runtime/components/Autocomplete.d.vue.ts +22 -58
- package/dist/runtime/components/Autocomplete.vue +50 -11
- package/dist/runtime/components/Autocomplete.vue.d.ts +22 -58
- package/dist/runtime/components/Avatar.d.vue.ts +2 -1
- package/dist/runtime/components/Avatar.vue +4 -2
- package/dist/runtime/components/Avatar.vue.d.ts +2 -1
- package/dist/runtime/components/Badge.d.vue.ts +3 -2
- package/dist/runtime/components/Badge.vue +8 -5
- package/dist/runtime/components/Badge.vue.d.ts +3 -2
- package/dist/runtime/components/Breadcrumb.d.vue.ts +3 -0
- package/dist/runtime/components/Breadcrumb.vue +5 -2
- package/dist/runtime/components/Breadcrumb.vue.d.ts +3 -0
- package/dist/runtime/components/Button.d.vue.ts +5 -2
- package/dist/runtime/components/Button.vue +5 -2
- package/dist/runtime/components/Button.vue.d.ts +5 -2
- package/dist/runtime/components/Checkbox.d.vue.ts +2 -1
- package/dist/runtime/components/Checkbox.vue +4 -2
- package/dist/runtime/components/Checkbox.vue.d.ts +2 -1
- package/dist/runtime/components/Chip.d.vue.ts +2 -1
- package/dist/runtime/components/Chip.vue +4 -2
- package/dist/runtime/components/Chip.vue.d.ts +2 -1
- package/dist/runtime/components/Collapsible.d.vue.ts +3 -0
- package/dist/runtime/components/Collapsible.vue +11 -6
- package/dist/runtime/components/Collapsible.vue.d.ts +3 -0
- package/dist/runtime/components/ColorPicker.d.vue.ts +13 -3
- package/dist/runtime/components/ColorPicker.vue +60 -14
- package/dist/runtime/components/ColorPicker.vue.d.ts +13 -3
- package/dist/runtime/components/Column.d.ts +1 -1
- package/dist/runtime/components/CommandPalette.vue +18 -16
- package/dist/runtime/components/ContentNavigation.d.vue.ts +3 -0
- package/dist/runtime/components/ContentNavigation.vue +6 -3
- package/dist/runtime/components/ContentNavigation.vue.d.ts +3 -0
- package/dist/runtime/components/ContentSurround.d.vue.ts +3 -0
- package/dist/runtime/components/ContentSurround.vue +7 -4
- package/dist/runtime/components/ContentSurround.vue.d.ts +3 -0
- package/dist/runtime/components/ContentToc.d.vue.ts +3 -0
- package/dist/runtime/components/ContentToc.vue +22 -12
- package/dist/runtime/components/ContentToc.vue.d.ts +3 -0
- package/dist/runtime/components/ContextMenu.vue +3 -2
- package/dist/runtime/components/DashboardSidebar.vue +1 -1
- package/dist/runtime/components/DashboardSidebarToggle.d.vue.ts +1 -0
- package/dist/runtime/components/DashboardSidebarToggle.vue +3 -1
- package/dist/runtime/components/DashboardSidebarToggle.vue.d.ts +1 -0
- package/dist/runtime/components/DatePicker.d.vue.ts +32 -23
- package/dist/runtime/components/DatePicker.vue +130 -60
- package/dist/runtime/components/DatePicker.vue.d.ts +32 -23
- package/dist/runtime/components/Drawer.d.vue.ts +2 -0
- package/dist/runtime/components/Drawer.vue +21 -8
- package/dist/runtime/components/Drawer.vue.d.ts +2 -0
- package/dist/runtime/components/DrawerRenderer.vue +28 -21
- package/dist/runtime/components/Dropdown.d.vue.ts +14 -4
- package/dist/runtime/components/Dropdown.vue +19 -4
- package/dist/runtime/components/Dropdown.vue.d.ts +14 -4
- package/dist/runtime/components/FileTree.d.vue.ts +3 -0
- package/dist/runtime/components/FileTree.vue +7 -3
- package/dist/runtime/components/FileTree.vue.d.ts +3 -0
- package/dist/runtime/components/FileUpload.d.vue.ts +2 -1
- package/dist/runtime/components/FileUpload.vue +75 -32
- package/dist/runtime/components/FileUpload.vue.d.ts +2 -1
- package/dist/runtime/components/FormField.d.vue.ts +2 -0
- package/dist/runtime/components/FormField.vue +12 -9
- package/dist/runtime/components/FormField.vue.d.ts +2 -0
- package/dist/runtime/components/Icon.d.vue.ts +2 -4
- package/dist/runtime/components/Icon.vue +7 -2
- package/dist/runtime/components/Icon.vue.d.ts +2 -4
- package/dist/runtime/components/Input.d.vue.ts +2 -1
- package/dist/runtime/components/Input.vue +12 -6
- package/dist/runtime/components/Input.vue.d.ts +2 -1
- package/dist/runtime/components/InputNumber.d.vue.ts +4 -1
- package/dist/runtime/components/InputNumber.vue +21 -8
- package/dist/runtime/components/InputNumber.vue.d.ts +4 -1
- package/dist/runtime/components/Modal.d.vue.ts +2 -0
- package/dist/runtime/components/Modal.vue +21 -8
- package/dist/runtime/components/Modal.vue.d.ts +2 -0
- package/dist/runtime/components/ModalRenderer.vue +23 -16
- package/dist/runtime/components/NavigationMenu.d.vue.ts +2 -4
- package/dist/runtime/components/NavigationMenu.vue +8 -4
- package/dist/runtime/components/NavigationMenu.vue.d.ts +2 -4
- package/dist/runtime/components/NavigationMenuAccordionItem.d.vue.ts +2 -4
- package/dist/runtime/components/NavigationMenuAccordionItem.vue +5 -3
- package/dist/runtime/components/NavigationMenuAccordionItem.vue.d.ts +2 -4
- package/dist/runtime/components/NavigationMenuFlyoutList.d.vue.ts +2 -4
- package/dist/runtime/components/NavigationMenuFlyoutList.vue +7 -4
- package/dist/runtime/components/NavigationMenuFlyoutList.vue.d.ts +2 -4
- package/dist/runtime/components/NavigationMenuFlyoutTrigger.d.vue.ts +2 -4
- package/dist/runtime/components/NavigationMenuFlyoutTrigger.vue +9 -2
- package/dist/runtime/components/NavigationMenuFlyoutTrigger.vue.d.ts +2 -4
- package/dist/runtime/components/Pagination.d.vue.ts +3 -2
- package/dist/runtime/components/Pagination.vue.d.ts +3 -2
- package/dist/runtime/components/PinInput.d.vue.ts +2 -1
- package/dist/runtime/components/PinInput.vue +17 -6
- package/dist/runtime/components/PinInput.vue.d.ts +2 -1
- package/dist/runtime/components/Popover.d.vue.ts +2 -0
- package/dist/runtime/components/Popover.vue +14 -7
- package/dist/runtime/components/Popover.vue.d.ts +2 -0
- package/dist/runtime/components/Progress.d.vue.ts +2 -1
- package/dist/runtime/components/Progress.vue +6 -4
- package/dist/runtime/components/Progress.vue.d.ts +2 -1
- package/dist/runtime/components/ProseH1.d.vue.ts +2 -0
- package/dist/runtime/components/ProseH1.vue +7 -4
- package/dist/runtime/components/ProseH1.vue.d.ts +2 -0
- package/dist/runtime/components/ProseH2.d.vue.ts +2 -0
- package/dist/runtime/components/ProseH2.vue +7 -4
- package/dist/runtime/components/ProseH2.vue.d.ts +2 -0
- package/dist/runtime/components/ProseH3.d.vue.ts +2 -0
- package/dist/runtime/components/ProseH3.vue +7 -4
- package/dist/runtime/components/ProseH3.vue.d.ts +2 -0
- package/dist/runtime/components/ProseH4.d.vue.ts +2 -0
- package/dist/runtime/components/ProseH4.vue +7 -4
- package/dist/runtime/components/ProseH4.vue.d.ts +2 -0
- package/dist/runtime/components/ProseH5.d.vue.ts +2 -0
- package/dist/runtime/components/ProseH5.vue +7 -4
- package/dist/runtime/components/ProseH5.vue.d.ts +2 -0
- package/dist/runtime/components/ProseH6.d.vue.ts +2 -0
- package/dist/runtime/components/ProseH6.vue +7 -4
- package/dist/runtime/components/ProseH6.vue.d.ts +2 -0
- package/dist/runtime/components/ProsePre.d.vue.ts +4 -2
- package/dist/runtime/components/ProsePre.vue +9 -3
- package/dist/runtime/components/ProsePre.vue.d.ts +4 -2
- package/dist/runtime/components/RadioGroup.d.vue.ts +2 -1
- package/dist/runtime/components/RadioGroup.vue +9 -5
- package/dist/runtime/components/RadioGroup.vue.d.ts +2 -1
- package/dist/runtime/components/Rating.d.vue.ts +2 -1
- package/dist/runtime/components/Rating.vue +4 -1
- package/dist/runtime/components/Rating.vue.d.ts +2 -1
- package/dist/runtime/components/ReadMore.d.vue.ts +3 -0
- package/dist/runtime/components/ReadMore.vue +24 -6
- package/dist/runtime/components/ReadMore.vue.d.ts +3 -0
- package/dist/runtime/components/Select.d.vue.ts +21 -57
- package/dist/runtime/components/Select.vue +58 -9
- package/dist/runtime/components/Select.vue.d.ts +21 -57
- package/dist/runtime/components/Separator.d.vue.ts +2 -1
- package/dist/runtime/components/Separator.vue +4 -2
- package/dist/runtime/components/Separator.vue.d.ts +2 -1
- package/dist/runtime/components/Slideover.d.vue.ts +2 -0
- package/dist/runtime/components/Slideover.vue +21 -8
- package/dist/runtime/components/Slideover.vue.d.ts +2 -0
- package/dist/runtime/components/SlideoverRenderer.vue +25 -18
- package/dist/runtime/components/Slider.d.vue.ts +2 -1
- package/dist/runtime/components/Slider.vue +4 -1
- package/dist/runtime/components/Slider.vue.d.ts +2 -1
- package/dist/runtime/components/SplitterResizeHandle.d.vue.ts +3 -0
- package/dist/runtime/components/SplitterResizeHandle.vue +5 -2
- package/dist/runtime/components/SplitterResizeHandle.vue.d.ts +3 -0
- package/dist/runtime/components/Stepper.d.vue.ts +2 -1
- package/dist/runtime/components/Stepper.vue +4 -1
- package/dist/runtime/components/Stepper.vue.d.ts +2 -1
- package/dist/runtime/components/Switch.d.vue.ts +2 -1
- package/dist/runtime/components/Switch.vue +4 -2
- package/dist/runtime/components/Switch.vue.d.ts +2 -1
- package/dist/runtime/components/Table.d.vue.ts +28 -80
- package/dist/runtime/components/Table.vue +25 -13
- package/dist/runtime/components/Table.vue.d.ts +28 -80
- package/dist/runtime/components/Tabs.d.vue.ts +3 -0
- package/dist/runtime/components/Tabs.vue +5 -1
- package/dist/runtime/components/Tabs.vue.d.ts +3 -0
- package/dist/runtime/components/Textarea.d.vue.ts +2 -1
- package/dist/runtime/components/Textarea.vue +11 -6
- package/dist/runtime/components/Textarea.vue.d.ts +2 -1
- package/dist/runtime/components/Theme.d.vue.ts +16 -5
- package/dist/runtime/components/Theme.vue +30 -5
- package/dist/runtime/components/Theme.vue.d.ts +16 -5
- package/dist/runtime/components/Toast.vue +11 -39
- package/dist/runtime/components/Toggle.d.vue.ts +2 -1
- package/dist/runtime/components/Toggle.vue +4 -1
- package/dist/runtime/components/Toggle.vue.d.ts +2 -1
- package/dist/runtime/components/ToggleGroup.d.vue.ts +2 -1
- package/dist/runtime/components/ToggleGroup.vue +4 -1
- package/dist/runtime/components/ToggleGroup.vue.d.ts +2 -1
- package/dist/runtime/components/Tooltip.vue +3 -2
- package/dist/runtime/components/Tree.d.vue.ts +5 -2
- package/dist/runtime/components/Tree.vue +5 -1
- package/dist/runtime/components/Tree.vue.d.ts +5 -2
- package/dist/runtime/composables/use-drawer.d.ts +1 -22
- package/dist/runtime/composables/use-drawer.js +12 -18
- package/dist/runtime/composables/use-form-field.d.ts +1 -0
- package/dist/runtime/composables/use-icons.d.ts +2 -2
- package/dist/runtime/composables/use-icons.js +1 -1
- package/dist/runtime/composables/use-locale.d.ts +2 -2
- package/dist/runtime/composables/use-locale.js +1 -1
- package/dist/runtime/composables/use-media-query.d.ts +6 -8
- package/dist/runtime/composables/use-media-query.js +7 -2
- package/dist/runtime/composables/use-messages.d.ts +2 -2
- package/dist/runtime/composables/use-messages.js +1 -1
- package/dist/runtime/composables/use-modal.d.ts +1 -17
- package/dist/runtime/composables/use-modal.js +12 -18
- package/dist/runtime/composables/use-ripple.d.ts +2 -2
- package/dist/runtime/composables/use-ripple.js +1 -1
- package/dist/runtime/composables/use-slideover.d.ts +1 -19
- package/dist/runtime/composables/use-slideover.js +12 -18
- package/dist/runtime/composables/use-table.d.ts +74 -17
- package/dist/runtime/composables/use-table.js +4 -1
- package/dist/runtime/composables/use-toast.d.ts +8 -8
- package/dist/runtime/composables/use-toast.js +9 -11
- package/dist/runtime/default-color-metadata.d.ts +4 -0
- package/dist/runtime/default-color-metadata.js +4 -0
- package/dist/runtime/default-colors.css +1 -0
- package/dist/runtime/internal/ColorPickerBody.d.vue.ts +1 -0
- package/dist/runtime/internal/ColorPickerBody.vue +24 -1
- package/dist/runtime/internal/ColorPickerBody.vue.d.ts +1 -0
- package/dist/runtime/internal/ComboboxSelectBase.d.vue.ts +50 -46
- package/dist/runtime/internal/ComboboxSelectBase.vue +340 -93
- package/dist/runtime/internal/ComboboxSelectBase.vue.d.ts +50 -46
- package/dist/runtime/internal/ComboboxSelectBody.d.vue.ts +29 -23
- package/dist/runtime/internal/ComboboxSelectBody.vue +74 -40
- package/dist/runtime/internal/ComboboxSelectBody.vue.d.ts +29 -23
- package/dist/runtime/internal/DatePickerCalendarBody.d.vue.ts +3 -5
- package/dist/runtime/internal/DatePickerCalendarBody.vue +2 -2
- package/dist/runtime/internal/DatePickerCalendarBody.vue.d.ts +3 -5
- package/dist/runtime/internal/DatePickerRangeCalendarBody.d.vue.ts +3 -5
- package/dist/runtime/internal/DatePickerRangeCalendarBody.vue +1 -1
- package/dist/runtime/internal/DatePickerRangeCalendarBody.vue.d.ts +3 -5
- package/dist/runtime/internal/DatePickerTimeBody.d.vue.ts +2 -4
- package/dist/runtime/internal/DatePickerTimeBody.vue.d.ts +2 -4
- package/dist/runtime/internal/ProgrammaticTheme.d.vue.ts +17 -0
- package/dist/runtime/internal/ProgrammaticTheme.vue +41 -0
- package/dist/runtime/internal/ProgrammaticTheme.vue.d.ts +17 -0
- package/dist/runtime/internal/TimeStepper.vue +1 -1
- package/dist/runtime/internal/ToastItemRenderer.d.vue.ts +14 -0
- package/dist/runtime/internal/ToastItemRenderer.vue +54 -0
- package/dist/runtime/internal/ToastItemRenderer.vue.d.ts +14 -0
- package/dist/runtime/internal/combobox-select.d.ts +52 -0
- package/dist/runtime/{composables/use-combobox-select.js → internal/combobox-select.js} +26 -11
- package/dist/runtime/internal/programmatic-services.d.ts +71 -0
- package/dist/runtime/internal/programmatic-services.js +61 -0
- package/dist/runtime/prose.css +1 -1
- package/dist/runtime/structural.css +1 -0
- package/dist/runtime/table.d.ts +3 -0
- package/dist/runtime/table.js +1 -0
- package/dist/runtime/theme/accordion.d.ts +27 -0
- package/dist/runtime/theme/accordion.js +15 -6
- package/dist/runtime/theme/alert-dialog.js +5 -5
- package/dist/runtime/theme/alert.js +6 -15
- package/dist/runtime/theme/avatar-group.js +2 -2
- package/dist/runtime/theme/avatar.js +12 -18
- package/dist/runtime/theme/badge.d.ts +39 -9
- package/dist/runtime/theme/badge.js +11 -40
- package/dist/runtime/theme/breadcrumb.d.ts +29 -47
- package/dist/runtime/theme/breadcrumb.js +16 -5
- package/dist/runtime/theme/button.d.ts +45 -15
- package/dist/runtime/theme/button.js +10 -57
- package/dist/runtime/theme/callout.js +7 -7
- package/dist/runtime/theme/card.js +7 -7
- package/dist/runtime/theme/checkbox.d.ts +21 -84
- package/dist/runtime/theme/checkbox.js +15 -36
- package/dist/runtime/theme/chip.js +4 -22
- package/dist/runtime/theme/code-button.js +2 -2
- package/dist/runtime/theme/code-tree.d.ts +3 -3
- package/dist/runtime/theme/code-tree.js +4 -4
- package/dist/runtime/theme/collapsible.d.ts +27 -0
- package/dist/runtime/theme/collapsible.js +12 -3
- package/dist/runtime/theme/color-picker.d.ts +18 -54
- package/dist/runtime/theme/color-picker.js +19 -18
- package/dist/runtime/theme/command-palette.d.ts +6 -6
- package/dist/runtime/theme/command-palette.js +12 -10
- package/dist/runtime/theme/content-navigation.d.ts +27 -0
- package/dist/runtime/theme/content-navigation.js +14 -5
- package/dist/runtime/theme/content-surround.d.ts +27 -0
- package/dist/runtime/theme/content-surround.js +13 -4
- package/dist/runtime/theme/content-toc.d.ts +27 -0
- package/dist/runtime/theme/content-toc.js +14 -5
- package/dist/runtime/theme/context-menu.js +7 -7
- package/dist/runtime/theme/dashboard-navbar.d.ts +6 -6
- package/dist/runtime/theme/dashboard-navbar.js +2 -2
- package/dist/runtime/theme/dashboard-resize-handle.js +3 -3
- package/dist/runtime/theme/dashboard-sidebar.js +3 -3
- package/dist/runtime/theme/date-picker.js +10 -10
- package/dist/runtime/theme/drawer.js +9 -9
- package/dist/runtime/theme/dropdown.js +7 -7
- package/dist/runtime/theme/file-tree.d.ts +27 -0
- package/dist/runtime/theme/file-tree.js +12 -3
- package/dist/runtime/theme/file-upload.d.ts +18 -72
- package/dist/runtime/theme/file-upload.js +20 -19
- package/dist/runtime/theme/form-field.js +5 -5
- package/dist/runtime/theme/header.d.ts +3 -3
- package/dist/runtime/theme/header.js +1 -1
- package/dist/runtime/theme/icon.d.ts +30 -57
- package/dist/runtime/theme/icon.js +19 -9
- package/dist/runtime/theme/input-number.d.ts +21 -63
- package/dist/runtime/theme/input-number.js +12 -12
- package/dist/runtime/theme/input.d.ts +21 -63
- package/dist/runtime/theme/input.js +12 -12
- package/dist/runtime/theme/kbd.js +1 -1
- package/dist/runtime/theme/modal.js +4 -4
- package/dist/runtime/theme/navigation-menu.d.ts +2 -0
- package/dist/runtime/theme/navigation-menu.js +17 -28
- package/dist/runtime/theme/page-header.js +3 -3
- package/dist/runtime/theme/pagination.js +1 -1
- package/dist/runtime/theme/pin-input.d.ts +21 -63
- package/dist/runtime/theme/pin-input.js +13 -11
- package/dist/runtime/theme/popover.js +2 -2
- package/dist/runtime/theme/progress.d.ts +21 -84
- package/dist/runtime/theme/progress.js +12 -12
- package/dist/runtime/theme/prose.d.ts +35 -50
- package/dist/runtime/theme/prose.js +24 -11
- package/dist/runtime/theme/radio-group.d.ts +21 -84
- package/dist/runtime/theme/radio-group.js +16 -22
- package/dist/runtime/theme/rating.d.ts +21 -63
- package/dist/runtime/theme/rating.js +10 -10
- package/dist/runtime/theme/read-more.d.ts +27 -0
- package/dist/runtime/theme/read-more.js +13 -4
- package/dist/runtime/theme/scroll-area.d.ts +3 -3
- package/dist/runtime/theme/scroll-area.js +2 -2
- package/dist/runtime/theme/select.d.ts +21 -54
- package/dist/runtime/theme/select.js +32 -24
- package/dist/runtime/theme/separator.d.ts +18 -54
- package/dist/runtime/theme/separator.js +16 -12
- package/dist/runtime/theme/skeleton.js +4 -4
- package/dist/runtime/theme/slideover.js +5 -5
- package/dist/runtime/theme/slider.d.ts +21 -84
- package/dist/runtime/theme/slider.js +14 -14
- package/dist/runtime/theme/splitter-resize-handle.d.ts +27 -0
- package/dist/runtime/theme/splitter-resize-handle.js +11 -1
- package/dist/runtime/theme/stepper.d.ts +21 -84
- package/dist/runtime/theme/stepper.js +12 -33
- package/dist/runtime/theme/switch.d.ts +21 -84
- package/dist/runtime/theme/switch.js +13 -13
- package/dist/runtime/theme/table.d.ts +27 -0
- package/dist/runtime/theme/table.js +31 -21
- package/dist/runtime/theme/tabs.d.ts +27 -0
- package/dist/runtime/theme/tabs.js +17 -7
- package/dist/runtime/theme/textarea.d.ts +21 -63
- package/dist/runtime/theme/textarea.js +12 -12
- package/dist/runtime/theme/toast.d.ts +12 -48
- package/dist/runtime/theme/toast.js +9 -9
- package/dist/runtime/theme/toggle-group.js +5 -11
- package/dist/runtime/theme/toggle.js +2 -12
- package/dist/runtime/theme/tooltip.d.ts +3 -3
- package/dist/runtime/theme/tooltip.js +3 -3
- package/dist/runtime/theme/tree.d.ts +27 -0
- package/dist/runtime/theme/tree.js +13 -3
- package/dist/runtime/theme-api.d.ts +15 -0
- package/dist/runtime/theme-api.js +12 -0
- package/dist/runtime/theme-config.d.ts +470 -0
- package/dist/runtime/theme-config.js +0 -0
- package/dist/runtime/theme.css +1 -1
- package/dist/runtime/types/app-config.d.ts +11 -8
- package/dist/runtime/types/index.d.ts +19 -1
- package/dist/runtime/utils/app-scoped-state.d.ts +2 -0
- package/dist/runtime/utils/app-scoped-state.js +13 -0
- package/dist/runtime/utils/autocomplete-contracts.d.ts +24 -0
- package/dist/runtime/utils/autocomplete-contracts.js +0 -0
- package/dist/runtime/utils/color-registry.d.ts +62 -0
- package/dist/runtime/utils/color-registry.js +191 -0
- package/dist/runtime/utils/dtcg-colors.d.ts +25 -0
- package/dist/runtime/utils/dtcg-colors.js +40 -0
- package/dist/runtime/utils/file-icons.d.ts +8 -0
- package/dist/runtime/utils/file-icons.js +131 -0
- package/dist/runtime/utils/functional-tokens.d.ts +26 -0
- package/dist/runtime/utils/functional-tokens.js +54 -0
- package/dist/runtime/utils/icons.d.ts +3 -0
- package/dist/runtime/utils/icons.js +4 -0
- package/dist/runtime/utils/injection-keys.d.ts +12 -3
- package/dist/runtime/utils/native-input.d.ts +5 -0
- package/dist/runtime/utils/native-input.js +32 -0
- package/dist/runtime/utils/navigation-menu.d.ts +3 -0
- package/dist/runtime/utils/programmatic-theme.d.ts +17 -0
- package/dist/runtime/utils/programmatic-theme.js +59 -0
- package/dist/runtime/utils/registered-colors.d.ts +3 -0
- package/dist/runtime/utils/registered-colors.js +14 -0
- package/dist/runtime/utils/seed-colors.d.ts +19 -0
- package/dist/runtime/utils/seed-colors.js +207 -0
- package/dist/runtime/utils/select-contracts.d.ts +101 -0
- package/dist/runtime/utils/select-contracts.js +0 -0
- package/dist/runtime/utils/table-contracts.d.ts +60 -0
- package/dist/runtime/utils/table-contracts.js +0 -0
- package/dist/runtime/utils/ui.d.ts +26 -4
- package/dist/runtime/utils/ui.js +38 -5
- package/dist/tokens/default-colors.tokens.json +879 -0
- package/package.json +83 -16
- package/dist/runtime/composables/use-combobox-select.d.ts +0 -45
|
@@ -0,0 +1,470 @@
|
|
|
1
|
+
import type { VariantProps } from 'tailwind-variants';
|
|
2
|
+
import type { accordionTheme, AccordionThemeSlots } from './theme/accordion.js';
|
|
3
|
+
import type { alertTheme, AlertThemeSlots } from './theme/alert.js';
|
|
4
|
+
import type { alertDialogTheme, AlertDialogThemeSlots } from './theme/alert-dialog.js';
|
|
5
|
+
import type { avatarTheme, AvatarThemeSlots } from './theme/avatar.js';
|
|
6
|
+
import type { avatarGroupTheme, AvatarGroupThemeSlots } from './theme/avatar-group.js';
|
|
7
|
+
import type { badgeTheme, BadgeThemeSlots } from './theme/badge.js';
|
|
8
|
+
import type { breadcrumbTheme, BreadcrumbThemeSlots } from './theme/breadcrumb.js';
|
|
9
|
+
import type { buttonTheme, ButtonThemeSlots } from './theme/button.js';
|
|
10
|
+
import type { buttonGroupTheme, ButtonGroupThemeSlots } from './theme/button-group.js';
|
|
11
|
+
import type { calloutTheme, CalloutThemeSlots } from './theme/callout.js';
|
|
12
|
+
import type { cardTheme, CardThemeSlots } from './theme/card.js';
|
|
13
|
+
import type { cardGroupTheme, CardGroupThemeSlots } from './theme/card-group.js';
|
|
14
|
+
import type { checkboxTheme, CheckboxThemeSlots } from './theme/checkbox.js';
|
|
15
|
+
import type { chipTheme, ChipThemeSlots } from './theme/chip.js';
|
|
16
|
+
import type { codeButtonTheme, CodeButtonThemeSlots } from './theme/code-button.js';
|
|
17
|
+
import type { codeTreeTheme, CodeTreeThemeSlots } from './theme/code-tree.js';
|
|
18
|
+
import type { collapsibleTheme, CollapsibleThemeSlots } from './theme/collapsible.js';
|
|
19
|
+
import type { colorPickerTheme, ColorPickerThemeSlots } from './theme/color-picker.js';
|
|
20
|
+
import type { commandPaletteTheme, CommandPaletteThemeSlots } from './theme/command-palette.js';
|
|
21
|
+
import type { containerTheme, ContainerThemeSlots } from './theme/container.js';
|
|
22
|
+
import type { contentNavigationTheme, ContentNavigationThemeSlots } from './theme/content-navigation.js';
|
|
23
|
+
import type { contentSurroundTheme, ContentSurroundThemeSlots } from './theme/content-surround.js';
|
|
24
|
+
import type { contentTocTheme, ContentTocThemeSlots } from './theme/content-toc.js';
|
|
25
|
+
import type { contextMenuTheme, ContextMenuThemeSlots } from './theme/context-menu.js';
|
|
26
|
+
import type { dashboardGroupTheme, DashboardGroupThemeSlots } from './theme/dashboard-group.js';
|
|
27
|
+
import type { dashboardNavbarTheme, DashboardNavbarThemeSlots } from './theme/dashboard-navbar.js';
|
|
28
|
+
import type { dashboardPanelTheme, DashboardPanelThemeSlots } from './theme/dashboard-panel.js';
|
|
29
|
+
import type { dashboardResizeHandleTheme, DashboardResizeHandleThemeSlots } from './theme/dashboard-resize-handle.js';
|
|
30
|
+
import type { dashboardSidebarTheme, DashboardSidebarThemeSlots } from './theme/dashboard-sidebar.js';
|
|
31
|
+
import type { datePickerTheme, DatePickerThemeSlots } from './theme/date-picker.js';
|
|
32
|
+
import type { drawerTheme, DrawerThemeSlots } from './theme/drawer.js';
|
|
33
|
+
import type { dropdownTheme, DropdownThemeSlots } from './theme/dropdown.js';
|
|
34
|
+
import type { fileTreeTheme, FileTreeThemeSlots } from './theme/file-tree.js';
|
|
35
|
+
import type { fileUploadTheme, FileUploadThemeSlots } from './theme/file-upload.js';
|
|
36
|
+
import type { formFieldTheme, FormFieldThemeSlots } from './theme/form-field.js';
|
|
37
|
+
import type { headerTheme, HeaderThemeSlots } from './theme/header.js';
|
|
38
|
+
import type { iconTheme, IconThemeSlots } from './theme/icon.js';
|
|
39
|
+
import type { inputTheme, InputThemeSlots } from './theme/input.js';
|
|
40
|
+
import type { inputGroupTheme, InputGroupThemeSlots } from './theme/input-group.js';
|
|
41
|
+
import type { inputNumberTheme, InputNumberThemeSlots } from './theme/input-number.js';
|
|
42
|
+
import type { kbdTheme, KbdThemeSlots } from './theme/kbd.js';
|
|
43
|
+
import type { modalTheme, ModalThemeSlots } from './theme/modal.js';
|
|
44
|
+
import type { navigationMenuTheme, NavigationMenuThemeSlots } from './theme/navigation-menu.js';
|
|
45
|
+
import type { pageAsideTheme, PageAsideThemeSlots } from './theme/page-aside.js';
|
|
46
|
+
import type { pageHeaderTheme, PageHeaderThemeSlots } from './theme/page-header.js';
|
|
47
|
+
import type { paginationTheme, PaginationThemeSlots } from './theme/pagination.js';
|
|
48
|
+
import type { pinInputTheme, PinInputThemeSlots } from './theme/pin-input.js';
|
|
49
|
+
import type { popoverTheme, PopoverThemeSlots } from './theme/popover.js';
|
|
50
|
+
import type { progressTheme, ProgressThemeSlots } from './theme/progress.js';
|
|
51
|
+
import type { proseTheme, ProseThemeSlots } from './theme/prose.js';
|
|
52
|
+
import type { radioGroupTheme, RadioGroupThemeSlots } from './theme/radio-group.js';
|
|
53
|
+
import type { ratingTheme, RatingThemeSlots } from './theme/rating.js';
|
|
54
|
+
import type { readMoreTheme, ReadMoreThemeSlots } from './theme/read-more.js';
|
|
55
|
+
import type { scrollAreaTheme, ScrollAreaThemeSlots } from './theme/scroll-area.js';
|
|
56
|
+
import type { selectTheme, SelectThemeSlots } from './theme/select.js';
|
|
57
|
+
import type { separatorTheme, SeparatorThemeSlots } from './theme/separator.js';
|
|
58
|
+
import type { skeletonTheme, SkeletonThemeSlots } from './theme/skeleton.js';
|
|
59
|
+
import type { slideoverTheme, SlideoverThemeSlots } from './theme/slideover.js';
|
|
60
|
+
import type { sliderTheme, SliderThemeSlots } from './theme/slider.js';
|
|
61
|
+
import type { splitterTheme, SplitterThemeSlots } from './theme/splitter.js';
|
|
62
|
+
import type { splitterPanelTheme, SplitterPanelThemeSlots } from './theme/splitter-panel.js';
|
|
63
|
+
import type { splitterResizeHandleTheme, SplitterResizeHandleThemeSlots } from './theme/splitter-resize-handle.js';
|
|
64
|
+
import type { stepperTheme, StepperThemeSlots } from './theme/stepper.js';
|
|
65
|
+
import type { switchTheme, SwitchThemeSlots } from './theme/switch.js';
|
|
66
|
+
import type { tableTheme, TableThemeSlots } from './theme/table.js';
|
|
67
|
+
import type { tabsTheme, TabsThemeSlots } from './theme/tabs.js';
|
|
68
|
+
import type { textareaTheme, TextareaThemeSlots } from './theme/textarea.js';
|
|
69
|
+
import type { toastTheme, ToastThemeSlots } from './theme/toast.js';
|
|
70
|
+
import type { toggleTheme, ToggleThemeSlots } from './theme/toggle.js';
|
|
71
|
+
import type { toggleGroupTheme, ToggleGroupThemeSlots } from './theme/toggle-group.js';
|
|
72
|
+
import type { tooltipTheme, TooltipThemeSlots } from './theme/tooltip.js';
|
|
73
|
+
import type { treeTheme, TreeThemeSlots } from './theme/tree.js';
|
|
74
|
+
import type { ColorRole, RuntimeTokenOverrides } from './utils/color-registry.js';
|
|
75
|
+
type AccordionVariants = VariantProps<typeof accordionTheme>;
|
|
76
|
+
type AlertVariants = VariantProps<typeof alertTheme>;
|
|
77
|
+
type AvatarVariants = VariantProps<typeof avatarTheme>;
|
|
78
|
+
type AvatarGroupVariants = VariantProps<typeof avatarGroupTheme>;
|
|
79
|
+
type BadgeVariants = VariantProps<typeof badgeTheme>;
|
|
80
|
+
type BreadcrumbVariants = VariantProps<typeof breadcrumbTheme>;
|
|
81
|
+
type ButtonVariants = VariantProps<typeof buttonTheme>;
|
|
82
|
+
type ButtonGroupVariants = VariantProps<typeof buttonGroupTheme>;
|
|
83
|
+
type CalloutVariants = VariantProps<typeof calloutTheme>;
|
|
84
|
+
type CardVariants = VariantProps<typeof cardTheme>;
|
|
85
|
+
type CardGroupVariants = VariantProps<typeof cardGroupTheme>;
|
|
86
|
+
type CheckboxVariants = VariantProps<typeof checkboxTheme>;
|
|
87
|
+
type ChipVariants = VariantProps<typeof chipTheme>;
|
|
88
|
+
type CollapsibleVariants = VariantProps<typeof collapsibleTheme>;
|
|
89
|
+
type ColorPickerVariants = VariantProps<typeof colorPickerTheme>;
|
|
90
|
+
type DashboardGroupVariants = VariantProps<typeof dashboardGroupTheme>;
|
|
91
|
+
type DashboardNavbarVariants = VariantProps<typeof dashboardNavbarTheme>;
|
|
92
|
+
type DashboardPanelVariants = VariantProps<typeof dashboardPanelTheme>;
|
|
93
|
+
type DashboardResizeHandleVariants = VariantProps<typeof dashboardResizeHandleTheme>;
|
|
94
|
+
type DashboardSidebarVariants = VariantProps<typeof dashboardSidebarTheme>;
|
|
95
|
+
type ContainerVariants = VariantProps<typeof containerTheme>;
|
|
96
|
+
type ContentNavigationVariants = VariantProps<typeof contentNavigationTheme>;
|
|
97
|
+
type ContentSurroundVariants = VariantProps<typeof contentSurroundTheme>;
|
|
98
|
+
type ContentTocVariants = VariantProps<typeof contentTocTheme>;
|
|
99
|
+
type InputVariants = VariantProps<typeof inputTheme>;
|
|
100
|
+
type InputGroupVariants = VariantProps<typeof inputGroupTheme>;
|
|
101
|
+
type InputNumberVariants = VariantProps<typeof inputNumberTheme>;
|
|
102
|
+
type KbdVariants = VariantProps<typeof kbdTheme>;
|
|
103
|
+
type FileUploadVariants = VariantProps<typeof fileUploadTheme>;
|
|
104
|
+
type FormFieldVariants = VariantProps<typeof formFieldTheme>;
|
|
105
|
+
type IconVariants = VariantProps<typeof iconTheme>;
|
|
106
|
+
type NavigationMenuVariants = VariantProps<typeof navigationMenuTheme>;
|
|
107
|
+
type PaginationVariants = VariantProps<typeof paginationTheme>;
|
|
108
|
+
type PinInputVariants = VariantProps<typeof pinInputTheme>;
|
|
109
|
+
type ProgressVariants = VariantProps<typeof progressTheme>;
|
|
110
|
+
type RadioGroupVariants = VariantProps<typeof radioGroupTheme>;
|
|
111
|
+
type RatingVariants = VariantProps<typeof ratingTheme>;
|
|
112
|
+
type ReadMoreVariants = VariantProps<typeof readMoreTheme>;
|
|
113
|
+
type SelectVariants = VariantProps<typeof selectTheme>;
|
|
114
|
+
type SeparatorVariants = VariantProps<typeof separatorTheme>;
|
|
115
|
+
type SkeletonVariants = VariantProps<typeof skeletonTheme>;
|
|
116
|
+
type SliderVariants = VariantProps<typeof sliderTheme>;
|
|
117
|
+
type SwitchVariants = VariantProps<typeof switchTheme>;
|
|
118
|
+
type StepperVariants = VariantProps<typeof stepperTheme>;
|
|
119
|
+
type TabsVariants = VariantProps<typeof tabsTheme>;
|
|
120
|
+
type TextareaVariants = VariantProps<typeof textareaTheme>;
|
|
121
|
+
type ToastVariants = VariantProps<typeof toastTheme>;
|
|
122
|
+
type ToggleVariants = VariantProps<typeof toggleTheme>;
|
|
123
|
+
type ToggleGroupVariants = VariantProps<typeof toggleGroupTheme>;
|
|
124
|
+
type ContextMenuVariants = VariantProps<typeof contextMenuTheme>;
|
|
125
|
+
type DrawerVariants = VariantProps<typeof drawerTheme>;
|
|
126
|
+
type DropdownVariants = VariantProps<typeof dropdownTheme>;
|
|
127
|
+
type ModalVariants = VariantProps<typeof modalTheme>;
|
|
128
|
+
type PopoverVariants = VariantProps<typeof popoverTheme>;
|
|
129
|
+
type SlideoverVariants = VariantProps<typeof slideoverTheme>;
|
|
130
|
+
type TooltipVariants = VariantProps<typeof tooltipTheme>;
|
|
131
|
+
type WithRegisteredColor<T> = Omit<T, 'color'> & {
|
|
132
|
+
color?: ColorRole;
|
|
133
|
+
};
|
|
134
|
+
/**
|
|
135
|
+
* The finite component configuration contract. A `ui` entry exists when the
|
|
136
|
+
* component consumes a scoped Tailwind Variants recipe. Only entries that
|
|
137
|
+
* explicitly declare `defaults` consume scoped presentation defaults;
|
|
138
|
+
* behavioral props never belong there. Add entries alongside runtime and
|
|
139
|
+
* contract tests.
|
|
140
|
+
*/
|
|
141
|
+
export interface ThemeComponentRegistry {
|
|
142
|
+
alertDialog: {
|
|
143
|
+
slots: AlertDialogThemeSlots;
|
|
144
|
+
conditions: Pick<VariantProps<typeof alertDialogTheme>, 'transition'>;
|
|
145
|
+
};
|
|
146
|
+
codeButton: {
|
|
147
|
+
slots: CodeButtonThemeSlots;
|
|
148
|
+
conditions: Pick<VariantProps<typeof codeButtonTheme>, never>;
|
|
149
|
+
};
|
|
150
|
+
codeTree: {
|
|
151
|
+
slots: CodeTreeThemeSlots;
|
|
152
|
+
conditions: Pick<VariantProps<typeof codeTreeTheme>, never>;
|
|
153
|
+
};
|
|
154
|
+
commandPalette: {
|
|
155
|
+
slots: CommandPaletteThemeSlots;
|
|
156
|
+
conditions: Pick<VariantProps<typeof commandPaletteTheme>, never>;
|
|
157
|
+
};
|
|
158
|
+
datePicker: {
|
|
159
|
+
slots: DatePickerThemeSlots;
|
|
160
|
+
conditions: Pick<VariantProps<typeof datePickerTheme>, 'size' | 'invalid' | 'range'>;
|
|
161
|
+
};
|
|
162
|
+
/** Dashboard layout primitives are slot-only compositions; behavior stays on their props. */
|
|
163
|
+
dashboardGroup: {
|
|
164
|
+
slots: DashboardGroupThemeSlots;
|
|
165
|
+
conditions: Pick<DashboardGroupVariants, never>;
|
|
166
|
+
};
|
|
167
|
+
dashboardNavbar: {
|
|
168
|
+
slots: DashboardNavbarThemeSlots;
|
|
169
|
+
conditions: Pick<DashboardNavbarVariants, never>;
|
|
170
|
+
};
|
|
171
|
+
dashboardPanel: {
|
|
172
|
+
slots: DashboardPanelThemeSlots;
|
|
173
|
+
conditions: Pick<DashboardPanelVariants, never>;
|
|
174
|
+
};
|
|
175
|
+
/** This recipe owns the wrapper background; SplitterResizeHandle retains its own line recipe. */
|
|
176
|
+
dashboardResizeHandle: {
|
|
177
|
+
slots: DashboardResizeHandleThemeSlots;
|
|
178
|
+
conditions: Pick<DashboardResizeHandleVariants, never>;
|
|
179
|
+
};
|
|
180
|
+
dashboardSidebar: {
|
|
181
|
+
slots: DashboardSidebarThemeSlots;
|
|
182
|
+
conditions: Pick<DashboardSidebarVariants, never>;
|
|
183
|
+
};
|
|
184
|
+
fileTree: {
|
|
185
|
+
slots: FileTreeThemeSlots;
|
|
186
|
+
conditions: WithRegisteredColor<Pick<VariantProps<typeof fileTreeTheme>, 'color' | 'selected' | 'isNested'>>;
|
|
187
|
+
};
|
|
188
|
+
prose: {
|
|
189
|
+
slots: ProseThemeSlots;
|
|
190
|
+
conditions: WithRegisteredColor<Pick<VariantProps<typeof proseTheme>, 'color'>>;
|
|
191
|
+
};
|
|
192
|
+
splitter: {
|
|
193
|
+
slots: SplitterThemeSlots;
|
|
194
|
+
conditions: Pick<VariantProps<typeof splitterTheme>, 'direction'>;
|
|
195
|
+
};
|
|
196
|
+
splitterPanel: {
|
|
197
|
+
slots: SplitterPanelThemeSlots;
|
|
198
|
+
conditions: Pick<VariantProps<typeof splitterPanelTheme>, never>;
|
|
199
|
+
};
|
|
200
|
+
splitterResizeHandle: {
|
|
201
|
+
slots: SplitterResizeHandleThemeSlots;
|
|
202
|
+
conditions: WithRegisteredColor<Pick<VariantProps<typeof splitterResizeHandleTheme>, 'color' | 'direction'>>;
|
|
203
|
+
};
|
|
204
|
+
table: {
|
|
205
|
+
slots: TableThemeSlots;
|
|
206
|
+
conditions: WithRegisteredColor<Pick<VariantProps<typeof tableTheme>, 'color' | 'size' | 'gridlines' | 'striped' | 'scrollable'>>;
|
|
207
|
+
};
|
|
208
|
+
tree: {
|
|
209
|
+
slots: TreeThemeSlots;
|
|
210
|
+
conditions: WithRegisteredColor<Pick<VariantProps<typeof treeTheme>, 'color' | 'size'>>;
|
|
211
|
+
};
|
|
212
|
+
accordion: {
|
|
213
|
+
slots: AccordionThemeSlots;
|
|
214
|
+
conditions: WithRegisteredColor<Pick<AccordionVariants, 'color' | 'size' | 'variant' | 'chevronPosition'>>;
|
|
215
|
+
};
|
|
216
|
+
alert: {
|
|
217
|
+
slots: AlertThemeSlots;
|
|
218
|
+
conditions: WithRegisteredColor<Pick<AlertVariants, 'color' | 'variant'>>;
|
|
219
|
+
};
|
|
220
|
+
avatar: {
|
|
221
|
+
slots: AvatarThemeSlots;
|
|
222
|
+
conditions: WithRegisteredColor<Pick<AvatarVariants, 'color' | 'statusColor' | 'size' | 'shape'>>;
|
|
223
|
+
defaults: WithRegisteredColor<Pick<AvatarVariants, 'color' | 'size'>>;
|
|
224
|
+
};
|
|
225
|
+
avatarGroup: {
|
|
226
|
+
slots: AvatarGroupThemeSlots;
|
|
227
|
+
conditions: Pick<AvatarGroupVariants, 'size'>;
|
|
228
|
+
};
|
|
229
|
+
badge: {
|
|
230
|
+
slots: BadgeThemeSlots;
|
|
231
|
+
conditions: WithRegisteredColor<Pick<BadgeVariants, 'color' | 'variant' | 'size' | 'dotOnly' | 'iconOnly'>>;
|
|
232
|
+
defaults: WithRegisteredColor<Pick<BadgeVariants, 'color' | 'size'>>;
|
|
233
|
+
};
|
|
234
|
+
breadcrumb: {
|
|
235
|
+
slots: BreadcrumbThemeSlots;
|
|
236
|
+
conditions: WithRegisteredColor<Pick<BreadcrumbVariants, 'color'>>;
|
|
237
|
+
};
|
|
238
|
+
button: {
|
|
239
|
+
slots: ButtonThemeSlots;
|
|
240
|
+
conditions: WithRegisteredColor<Pick<ButtonVariants, 'color' | 'variant' | 'size' | 'block' | 'raised' | 'square'>>;
|
|
241
|
+
defaults: WithRegisteredColor<Pick<ButtonVariants, 'color' | 'size'>>;
|
|
242
|
+
};
|
|
243
|
+
buttonGroup: {
|
|
244
|
+
slots: ButtonGroupThemeSlots;
|
|
245
|
+
conditions: Pick<ButtonGroupVariants, 'orientation'>;
|
|
246
|
+
};
|
|
247
|
+
callout: {
|
|
248
|
+
slots: CalloutThemeSlots;
|
|
249
|
+
conditions: Pick<CalloutVariants, 'type'>;
|
|
250
|
+
};
|
|
251
|
+
card: {
|
|
252
|
+
slots: CardThemeSlots;
|
|
253
|
+
conditions: Pick<CardVariants, 'variant'>;
|
|
254
|
+
};
|
|
255
|
+
cardGroup: {
|
|
256
|
+
slots: CardGroupThemeSlots;
|
|
257
|
+
conditions: Pick<CardGroupVariants, 'cols'>;
|
|
258
|
+
};
|
|
259
|
+
chip: {
|
|
260
|
+
slots: ChipThemeSlots;
|
|
261
|
+
conditions: WithRegisteredColor<Pick<ChipVariants, 'color' | 'size'>>;
|
|
262
|
+
defaults: WithRegisteredColor<Pick<ChipVariants, 'color' | 'size'>>;
|
|
263
|
+
};
|
|
264
|
+
collapsible: {
|
|
265
|
+
slots: CollapsibleThemeSlots;
|
|
266
|
+
conditions: WithRegisteredColor<Pick<CollapsibleVariants, 'color' | 'size' | 'direction'>>;
|
|
267
|
+
};
|
|
268
|
+
input: {
|
|
269
|
+
slots: InputThemeSlots;
|
|
270
|
+
conditions: WithRegisteredColor<Pick<InputVariants, 'color' | 'size' | 'hasLeadingIcon' | 'hasTrailingIcon' | 'invalid'>>;
|
|
271
|
+
defaults: WithRegisteredColor<Pick<InputVariants, 'color' | 'size'>>;
|
|
272
|
+
};
|
|
273
|
+
inputGroup: {
|
|
274
|
+
slots: InputGroupThemeSlots;
|
|
275
|
+
conditions: Pick<InputGroupVariants, 'orientation'>;
|
|
276
|
+
};
|
|
277
|
+
checkbox: {
|
|
278
|
+
slots: CheckboxThemeSlots;
|
|
279
|
+
conditions: WithRegisteredColor<Pick<CheckboxVariants, 'color' | 'size' | 'variant' | 'invalid'>>;
|
|
280
|
+
};
|
|
281
|
+
colorPicker: {
|
|
282
|
+
slots: ColorPickerThemeSlots;
|
|
283
|
+
conditions: WithRegisteredColor<Pick<ColorPickerVariants, 'color' | 'size'>>;
|
|
284
|
+
};
|
|
285
|
+
container: {
|
|
286
|
+
slots: ContainerThemeSlots;
|
|
287
|
+
conditions: Pick<ContainerVariants, 'size'>;
|
|
288
|
+
};
|
|
289
|
+
/** Nested groups use Accordion internally; this key owns the navigation-tree adaptation. */
|
|
290
|
+
contentNavigation: {
|
|
291
|
+
slots: ContentNavigationThemeSlots;
|
|
292
|
+
conditions: WithRegisteredColor<Pick<ContentNavigationVariants, 'color' | 'isNested'>>;
|
|
293
|
+
};
|
|
294
|
+
contentSurround: {
|
|
295
|
+
slots: ContentSurroundThemeSlots;
|
|
296
|
+
conditions: WithRegisteredColor<Pick<ContentSurroundVariants, 'color' | 'align'>>;
|
|
297
|
+
};
|
|
298
|
+
contentToc: {
|
|
299
|
+
slots: ContentTocThemeSlots;
|
|
300
|
+
conditions: WithRegisteredColor<Pick<ContentTocVariants, 'color' | 'active'>>;
|
|
301
|
+
};
|
|
302
|
+
fileUpload: {
|
|
303
|
+
slots: FileUploadThemeSlots;
|
|
304
|
+
conditions: WithRegisteredColor<Pick<FileUploadVariants, 'color' | 'size' | 'invalid'>>;
|
|
305
|
+
};
|
|
306
|
+
formField: {
|
|
307
|
+
slots: FormFieldThemeSlots;
|
|
308
|
+
conditions: Pick<FormFieldVariants, 'size' | 'orientation'>;
|
|
309
|
+
};
|
|
310
|
+
header: {
|
|
311
|
+
slots: HeaderThemeSlots;
|
|
312
|
+
conditions: Pick<VariantProps<typeof headerTheme>, never>;
|
|
313
|
+
};
|
|
314
|
+
/** Shared primitive recipe used by direct SIcon and icons inside components. */
|
|
315
|
+
icon: {
|
|
316
|
+
slots: IconThemeSlots;
|
|
317
|
+
conditions: WithRegisteredColor<Pick<IconVariants, 'color'>>;
|
|
318
|
+
};
|
|
319
|
+
inputNumber: {
|
|
320
|
+
slots: InputNumberThemeSlots;
|
|
321
|
+
conditions: WithRegisteredColor<Pick<InputNumberVariants, 'color' | 'size' | 'orientation' | 'invalid'>>;
|
|
322
|
+
};
|
|
323
|
+
kbd: {
|
|
324
|
+
slots: KbdThemeSlots;
|
|
325
|
+
conditions: Pick<KbdVariants, 'size'>;
|
|
326
|
+
};
|
|
327
|
+
/** Shared by the public component and its recursive accordion/flyout renderers. */
|
|
328
|
+
navigationMenu: {
|
|
329
|
+
slots: NavigationMenuThemeSlots;
|
|
330
|
+
conditions: WithRegisteredColor<Pick<NavigationMenuVariants, 'orientation' | 'color' | 'variant' | 'active' | 'disabled' | 'highlight' | 'collapsed' | 'flyoutRoot'>>;
|
|
331
|
+
};
|
|
332
|
+
/** Page controls are Button recipes; this key owns wrapper and ellipsis layout. */
|
|
333
|
+
pagination: {
|
|
334
|
+
slots: PaginationThemeSlots;
|
|
335
|
+
conditions: Pick<PaginationVariants, 'size'>;
|
|
336
|
+
};
|
|
337
|
+
pageHeader: {
|
|
338
|
+
slots: PageHeaderThemeSlots;
|
|
339
|
+
conditions: Pick<VariantProps<typeof pageHeaderTheme>, never>;
|
|
340
|
+
};
|
|
341
|
+
/** Owns PageAside layout; its nested ScrollArea remains independently configurable. */
|
|
342
|
+
pageAside: {
|
|
343
|
+
slots: PageAsideThemeSlots;
|
|
344
|
+
conditions: Pick<VariantProps<typeof pageAsideTheme>, never>;
|
|
345
|
+
};
|
|
346
|
+
pinInput: {
|
|
347
|
+
slots: PinInputThemeSlots;
|
|
348
|
+
conditions: WithRegisteredColor<Pick<PinInputVariants, 'color' | 'size' | 'invalid'>>;
|
|
349
|
+
};
|
|
350
|
+
progress: {
|
|
351
|
+
slots: ProgressThemeSlots;
|
|
352
|
+
conditions: WithRegisteredColor<Pick<ProgressVariants, 'color' | 'size' | 'indeterminate'>>;
|
|
353
|
+
};
|
|
354
|
+
radioGroup: {
|
|
355
|
+
slots: RadioGroupThemeSlots;
|
|
356
|
+
conditions: WithRegisteredColor<Pick<RadioGroupVariants, 'color' | 'size' | 'orientation' | 'variant' | 'invalid'>>;
|
|
357
|
+
};
|
|
358
|
+
rating: {
|
|
359
|
+
slots: RatingThemeSlots;
|
|
360
|
+
conditions: WithRegisteredColor<Pick<RatingVariants, 'color' | 'size' | 'orientation'>>;
|
|
361
|
+
};
|
|
362
|
+
readMore: {
|
|
363
|
+
slots: ReadMoreThemeSlots;
|
|
364
|
+
conditions: WithRegisteredColor<Pick<ReadMoreVariants, 'color' | 'open'>>;
|
|
365
|
+
};
|
|
366
|
+
/** Shared by Select and Autocomplete, which intentionally use one recipe. */
|
|
367
|
+
select: {
|
|
368
|
+
slots: SelectThemeSlots;
|
|
369
|
+
conditions: WithRegisteredColor<Pick<SelectVariants, 'color' | 'size' | 'invalid'>>;
|
|
370
|
+
};
|
|
371
|
+
scrollArea: {
|
|
372
|
+
slots: ScrollAreaThemeSlots;
|
|
373
|
+
conditions: Pick<VariantProps<typeof scrollAreaTheme>, never>;
|
|
374
|
+
};
|
|
375
|
+
separator: {
|
|
376
|
+
slots: SeparatorThemeSlots;
|
|
377
|
+
conditions: WithRegisteredColor<Pick<SeparatorVariants, 'orientation' | 'variant' | 'color'>>;
|
|
378
|
+
};
|
|
379
|
+
skeleton: {
|
|
380
|
+
slots: SkeletonThemeSlots;
|
|
381
|
+
conditions: Pick<SkeletonVariants, 'animation'>;
|
|
382
|
+
};
|
|
383
|
+
slider: {
|
|
384
|
+
slots: SliderThemeSlots;
|
|
385
|
+
conditions: WithRegisteredColor<Pick<SliderVariants, 'color' | 'size' | 'orientation' | 'thumbVariant'>>;
|
|
386
|
+
};
|
|
387
|
+
switch: {
|
|
388
|
+
slots: SwitchThemeSlots;
|
|
389
|
+
conditions: WithRegisteredColor<Pick<SwitchVariants, 'color' | 'size' | 'invalid'>>;
|
|
390
|
+
};
|
|
391
|
+
stepper: {
|
|
392
|
+
slots: StepperThemeSlots;
|
|
393
|
+
conditions: WithRegisteredColor<Pick<StepperVariants, 'color' | 'size' | 'orientation'>>;
|
|
394
|
+
};
|
|
395
|
+
tabs: {
|
|
396
|
+
slots: TabsThemeSlots;
|
|
397
|
+
conditions: WithRegisteredColor<Pick<TabsVariants, 'color' | 'variant'>>;
|
|
398
|
+
};
|
|
399
|
+
textarea: {
|
|
400
|
+
slots: TextareaThemeSlots;
|
|
401
|
+
conditions: WithRegisteredColor<Pick<TextareaVariants, 'color' | 'size' | 'hasLeadingIcon' | 'hasTrailingIcon' | 'autoresize' | 'invalid'>>;
|
|
402
|
+
};
|
|
403
|
+
toast: {
|
|
404
|
+
slots: ToastThemeSlots;
|
|
405
|
+
conditions: WithRegisteredColor<Pick<ToastVariants, 'color'>>;
|
|
406
|
+
};
|
|
407
|
+
toggle: {
|
|
408
|
+
slots: ToggleThemeSlots;
|
|
409
|
+
conditions: WithRegisteredColor<Pick<ToggleVariants, 'color' | 'size' | 'square'>>;
|
|
410
|
+
};
|
|
411
|
+
toggleGroup: {
|
|
412
|
+
slots: ToggleGroupThemeSlots;
|
|
413
|
+
conditions: WithRegisteredColor<Pick<ToggleGroupVariants, 'color' | 'size' | 'orientation'>>;
|
|
414
|
+
};
|
|
415
|
+
/** Overlay recipes accept typed UI extension but no scoped prop defaults. */
|
|
416
|
+
contextMenu: {
|
|
417
|
+
slots: ContextMenuThemeSlots;
|
|
418
|
+
conditions: Pick<ContextMenuVariants, 'destructive'>;
|
|
419
|
+
};
|
|
420
|
+
drawer: {
|
|
421
|
+
slots: DrawerThemeSlots;
|
|
422
|
+
conditions: Pick<DrawerVariants, 'side' | 'transition'>;
|
|
423
|
+
};
|
|
424
|
+
dropdown: {
|
|
425
|
+
slots: DropdownThemeSlots;
|
|
426
|
+
conditions: Pick<DropdownVariants, 'destructive'>;
|
|
427
|
+
};
|
|
428
|
+
modal: {
|
|
429
|
+
slots: ModalThemeSlots;
|
|
430
|
+
conditions: Pick<ModalVariants, 'fullscreen' | 'transition'>;
|
|
431
|
+
};
|
|
432
|
+
popover: {
|
|
433
|
+
slots: PopoverThemeSlots;
|
|
434
|
+
conditions: Pick<PopoverVariants, never>;
|
|
435
|
+
};
|
|
436
|
+
slideover: {
|
|
437
|
+
slots: SlideoverThemeSlots;
|
|
438
|
+
conditions: Pick<SlideoverVariants, 'side' | 'inset' | 'transition'>;
|
|
439
|
+
};
|
|
440
|
+
tooltip: {
|
|
441
|
+
slots: TooltipThemeSlots;
|
|
442
|
+
conditions: Pick<TooltipVariants, never>;
|
|
443
|
+
};
|
|
444
|
+
}
|
|
445
|
+
type ThemeConditions<K extends keyof ThemeComponentRegistry> = {
|
|
446
|
+
[P in keyof ThemeComponentRegistry[K]['conditions']]?: ThemeComponentRegistry[K]['conditions'][P] | readonly NonNullable<ThemeComponentRegistry[K]['conditions'][P]>[];
|
|
447
|
+
};
|
|
448
|
+
type ThemeSlots<K extends keyof ThemeComponentRegistry> = Partial<Record<ThemeComponentRegistry[K]['slots'], string>>;
|
|
449
|
+
/** Typed Tailwind Variants extensions accepted by `selaras.ui` and `STheme`. */
|
|
450
|
+
export type ThemeUiOverrides = {
|
|
451
|
+
[K in keyof ThemeComponentRegistry]?: {
|
|
452
|
+
slots?: ThemeSlots<K>;
|
|
453
|
+
compoundVariants?: readonly (ThemeConditions<K> & {
|
|
454
|
+
class: ThemeSlots<K>;
|
|
455
|
+
})[];
|
|
456
|
+
};
|
|
457
|
+
};
|
|
458
|
+
/** Presentation defaults have a deliberately separate, finite home from UI recipes. */
|
|
459
|
+
export type ThemeDefaults = {
|
|
460
|
+
[K in keyof ThemeComponentRegistry as 'defaults' extends keyof ThemeComponentRegistry[K] ? K : never]?: ThemeComponentRegistry[K] extends {
|
|
461
|
+
defaults: infer Defaults;
|
|
462
|
+
} ? Partial<Defaults> : never;
|
|
463
|
+
};
|
|
464
|
+
/** Public configuration shared by `app.config` and scoped `STheme` providers. */
|
|
465
|
+
export interface ThemeConfiguration {
|
|
466
|
+
ui?: ThemeUiOverrides;
|
|
467
|
+
defaults?: ThemeDefaults;
|
|
468
|
+
tokens?: RuntimeTokenOverrides;
|
|
469
|
+
}
|
|
470
|
+
export {};
|
|
File without changes
|
package/dist/runtime/theme.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@import "tw-animate-css";@source "./components";@source "./internal";@source "./theme";@source "./utils";@custom-variant dark (&:where(.dark, .dark *));@layer base{a:focus-visible{outline-offset:0}}@keyframes selaras-ripple{to{opacity:0;transform:scale(1)}}@keyframes selaras-accordion-down{0%{height:0}to{height:var(--reka-accordion-content-height)}}@keyframes selaras-accordion-up{0%{height:var(--reka-accordion-content-height)}to{height:0}}@keyframes selaras-collapsible-down{0%{height:0}to{height:var(--reka-collapsible-content-height)}}@keyframes selaras-collapsible-up{0%{height:var(--reka-collapsible-content-height)}to{height:0}}@keyframes selaras-skeleton-shimmer{0%{background-position:150% 0}to{background-position:-50% 0}}@keyframes selaras-progress-indeterminate{0%{transform:translateX(-100%)}to{transform:translateX(300%)}}@media (prefers-reduced-motion:reduce){*,:after,:before{animation-duration:.01ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important;transition-duration:.01ms!important}}.selaras-nav-elbow{position:relative}.selaras-nav-elbow:before{inset-inline-start:-16px;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;width:16px}.selaras-nav-elbow:after,.selaras-nav-elbow:before{background-color:var(--ui-border);content:"";position:absolute;top:0}.selaras-nav-elbow:after{inset-inline-start:-15px;width:1.5px}.selaras-nav-elbow--content-navigation:before{height:40px;-webkit-mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 40'%3E%3Cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-width='1.5' d='M1 14a6 6 0 0 0 6 6h7'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 40'%3E%3Cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-width='1.5' d='M1 14a6 6 0 0 0 6 6h7'/%3E%3C/svg%3E")}.selaras-nav-elbow--content-navigation:after{bottom:-2px}.selaras-nav-elbow--content-navigation:last-child:after{bottom:auto;height:14px}.selaras-nav-elbow--navigation-menu:before{height:32px;-webkit-mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 32'%3E%3Cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-width='1.5' d='M1 10a6 6 0 0 0 6 6h7'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 32'%3E%3Cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-width='1.5' d='M1 10a6 6 0 0 0 6 6h7'/%3E%3C/svg%3E")}.selaras-nav-elbow--navigation-menu:after{bottom:-4px}.selaras-nav-elbow--navigation-menu:last-child:after{bottom:auto;height:10px}.selaras-nav-elbow--file-tree:before{height:28px;-webkit-mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 28'%3E%3Cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-width='1.5' d='M1 8a6 6 0 0 0 6 6h7'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 28'%3E%3Cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-width='1.5' d='M1 8a6 6 0 0 0 6 6h7'/%3E%3C/svg%3E")}.selaras-nav-elbow--file-tree:after{bottom:-2px}.selaras-nav-elbow--file-tree:last-child:after{bottom:auto;height:8px}@theme{--color-primary-50:oklch(0.9700 0.0120 279.99);--color-primary-100:oklch(0.9300 0.0280 279.99);--color-primary-200:oklch(0.8600 0.0550 279.99);--color-primary-300:oklch(0.7800 0.1000 279.99);--color-primary-400:oklch(0.6400 0.1650 279.99);--color-primary-500:oklch(0.4755 0.2026 279.99);--color-primary-600:oklch(0.4150 0.1850 279.99);--color-primary-700:oklch(0.3550 0.1580 279.99);--color-primary-800:oklch(0.2950 0.1280 279.99);--color-primary-900:oklch(0.2350 0.0950 279.99);--color-primary-950:oklch(0.1700 0.0600 279.99);--color-secondary-50:oklch(0.975 0.012 325);--color-secondary-100:oklch(0.945 0.030 325);--color-secondary-200:oklch(0.890 0.060 325);--color-secondary-300:oklch(0.810 0.100 325);--color-secondary-400:oklch(0.690 0.145 325);--color-secondary-500:oklch(0.565 0.175 325);--color-secondary-600:oklch(0.495 0.165 325);--color-secondary-700:oklch(0.420 0.145 325);--color-secondary-800:oklch(0.345 0.115 325);--color-secondary-900:oklch(0.275 0.085 325);--color-secondary-950:oklch(0.190 0.055 325);--color-neutral-25:oklch(0.995 0.0015 280);--color-neutral-50:oklch(0.980 0.0030 280);--color-neutral-100:oklch(0.945 0.0065 280);--color-neutral-200:oklch(0.900 0.0100 280);--color-neutral-300:oklch(0.840 0.0140 280);--color-neutral-400:oklch(0.700 0.0180 280);--color-neutral-500:oklch(0.555 0.0200 280);--color-neutral-600:oklch(0.445 0.0190 280);--color-neutral-700:oklch(0.365 0.0170 280);--color-neutral-800:oklch(0.275 0.0140 280);--color-neutral-900:oklch(0.205 0.0110 280);--color-neutral-950:oklch(0.145 0.0080 280);--color-success-50:oklch(0.980 0.020 148);--color-success-100:oklch(0.950 0.045 148);--color-success-200:oklch(0.895 0.080 148);--color-success-300:oklch(0.820 0.120 148);--color-success-400:oklch(0.735 0.155 148);--color-success-500:oklch(0.640 0.175 148);--color-success-600:oklch(0.555 0.160 148);--color-success-700:oklch(0.470 0.140 148);--color-success-800:oklch(0.390 0.115 148);--color-success-900:oklch(0.315 0.085 148);--color-success-950:oklch(0.225 0.055 148);--color-info-50:oklch(0.975 0.018 245);--color-info-100:oklch(0.945 0.040 245);--color-info-200:oklch(0.895 0.075 245);--color-info-300:oklch(0.820 0.115 245);--color-info-400:oklch(0.715 0.155 245);--color-info-500:oklch(0.620 0.175 245);--color-info-600:oklch(0.535 0.165 245);--color-info-700:oklch(0.455 0.145 245);--color-info-800:oklch(0.375 0.115 245);--color-info-900:oklch(0.300 0.085 245);--color-info-950:oklch(0.215 0.055 245);--color-warning-50:oklch(0.985 0.022 88);--color-warning-100:oklch(0.960 0.055 88);--color-warning-200:oklch(0.915 0.105 88);--color-warning-300:oklch(0.860 0.145 88);--color-warning-400:oklch(0.810 0.165 88);--color-warning-500:oklch(0.755 0.165 88);--color-warning-600:oklch(0.665 0.155 88);--color-warning-700:oklch(0.565 0.135 88);--color-warning-800:oklch(0.465 0.110 88);--color-warning-900:oklch(0.375 0.085 88);--color-warning-950:oklch(0.255 0.055 88);--color-danger-50:oklch(0.975 0.015 28);--color-danger-100:oklch(0.945 0.035 28);--color-danger-200:oklch(0.890 0.070 28);--color-danger-300:oklch(0.805 0.120 28);--color-danger-400:oklch(0.700 0.175 28);--color-danger-500:oklch(0.600 0.205 28);--color-danger-600:oklch(0.525 0.195 28);--color-danger-700:oklch(0.445 0.170 28);--color-danger-800:oklch(0.365 0.135 28);--color-danger-900:oklch(0.295 0.100 28);--color-danger-950:oklch(0.205 0.065 28)}:root{--ui-radius:8px;--ui-radius-sm:calc(var(--ui-radius)*0.75);--ui-radius-md:var(--ui-radius);--ui-radius-lg:calc(var(--ui-radius)*2);--ui-radius-full:9999px;--ui-shadow-sm:0 1px 2px 0 rgba(0,0,0,.06);--ui-shadow-md:0 4px 16px -2px rgba(0,0,0,.12);--ui-shadow-lg:0 12px 32px -4px rgba(0,0,0,.16);--ui-z-modal-overlay:40;--ui-z-modal:50;--ui-z-dropdown:60;--ui-z-tooltip:70;--ui-z-toast:80;--ui-bg:--theme(--color-neutral-25);--ui-bg-elevated:--theme(--color-neutral-50);--ui-bg-inverted:--theme(--color-neutral-950);--ui-border:--theme(--color-neutral-200);--ui-border-hover:--theme(--color-neutral-300);--ui-border-muted:--theme(--color-neutral-100);--ui-text:--theme(--color-neutral-950);--ui-text-muted:--theme(--color-neutral-600);--ui-text-inverted:--theme(--color-neutral-50);--ui-primary:--theme(--color-primary-500);--ui-primary-hover:--theme(--color-primary-600);--ui-primary-active:--theme(--color-primary-700);--ui-primary-foreground:--theme(--color-neutral-25);--ui-primary-soft:--theme(--color-primary-100);--ui-secondary:--theme(--color-secondary-500);--ui-secondary-hover:--theme(--color-secondary-600);--ui-secondary-active:--theme(--color-secondary-700);--ui-secondary-foreground:--theme(--color-neutral-25);--ui-secondary-soft:--theme(--color-secondary-100);--ui-success:--theme(--color-success-500);--ui-success-hover:--theme(--color-success-600);--ui-success-active:--theme(--color-success-700);--ui-success-foreground:--theme(--color-neutral-25);--ui-success-soft:--theme(--color-success-100);--ui-info:--theme(--color-info-500);--ui-info-hover:--theme(--color-info-600);--ui-info-active:--theme(--color-info-700);--ui-info-foreground:--theme(--color-neutral-25);--ui-info-soft:--theme(--color-info-100);--ui-danger:--theme(--color-danger-500);--ui-danger-hover:--theme(--color-danger-600);--ui-danger-active:--theme(--color-danger-700);--ui-danger-foreground:--theme(--color-neutral-25);--ui-danger-soft:--theme(--color-danger-100);--ui-warning:--theme(--color-warning-500);--ui-warning-hover:--theme(--color-warning-600);--ui-warning-active:--theme(--color-warning-700);--ui-warning-foreground:--theme(--color-neutral-950);--ui-warning-soft:--theme(--color-warning-100);--ui-neutral:--theme(--color-neutral-950);--ui-neutral-hover:--theme(--color-neutral-900);--ui-neutral-active:--theme(--color-neutral-800);--ui-neutral-foreground:--theme(--color-neutral-25);--ui-neutral-soft:--theme(--color-neutral-100)}.dark{--ui-bg:--theme(--color-neutral-950);--ui-bg-elevated:--theme(--color-neutral-900);--ui-bg-inverted:--theme(--color-neutral-50);--ui-border:--theme(--color-neutral-800);--ui-border-hover:--theme(--color-neutral-700);--ui-border-muted:--theme(--color-neutral-900);--ui-text:--theme(--color-neutral-50);--ui-text-muted:--theme(--color-neutral-400);--ui-text-inverted:--theme(--color-neutral-950);--ui-primary-soft:color-mix(in oklab,--theme(--color-primary-500) 24%,var(--ui-bg));--ui-secondary-soft:color-mix(in oklab,--theme(--color-secondary-500) 24%,var(--ui-bg));--ui-success-soft:color-mix(in oklab,--theme(--color-success-500) 24%,var(--ui-bg));--ui-info-soft:color-mix(in oklab,--theme(--color-info-500) 24%,var(--ui-bg));--ui-warning-soft:color-mix(in oklab,--theme(--color-warning-500) 24%,var(--ui-bg));--ui-danger-soft:color-mix(in oklab,--theme(--color-danger-500) 24%,var(--ui-bg));--ui-neutral:--theme(--color-neutral-50);--ui-neutral-hover:--theme(--color-neutral-100);--ui-neutral-active:--theme(--color-neutral-200);--ui-neutral-foreground:--theme(--color-neutral-950);--ui-neutral-soft:--theme(--color-neutral-900)}
|
|
1
|
+
@import "./default-colors.css";@import "./structural.css";
|
|
@@ -1,15 +1,18 @@
|
|
|
1
|
+
import type { ThemeConfiguration } from '../theme-config'
|
|
1
2
|
import type { IconRegistry } from '../utils/icons'
|
|
2
3
|
import type { MessageRegistry } from '../utils/messages'
|
|
3
4
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
export interface SelarasRuntimeConfig extends ThemeConfiguration {
|
|
6
|
+
icons?: Partial<IconRegistry>
|
|
7
|
+
locale?: string
|
|
8
|
+
messages?: Partial<MessageRegistry>
|
|
9
|
+
ripple?: boolean
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
// Keep every Selaras-owned runtime setting under one collision-resistant
|
|
13
|
+
// namespace. Referenced into generated nuxt.d.ts by module.ts.
|
|
9
14
|
declare module '@nuxt/schema' {
|
|
10
15
|
interface AppConfig {
|
|
11
|
-
|
|
12
|
-
icons?: Partial<IconRegistry>
|
|
13
|
-
locale?: string
|
|
16
|
+
selaras?: SelarasRuntimeConfig
|
|
14
17
|
}
|
|
15
18
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export type * from '../components/Accordion.vue';
|
|
2
2
|
export type * from '../components/Alert.vue';
|
|
3
|
+
export type * from '../components/AlertDialog.vue';
|
|
3
4
|
export type * from '../components/App.vue';
|
|
4
5
|
export type * from '../components/Autocomplete.vue';
|
|
5
6
|
export type * from '../components/Avatar.vue';
|
|
@@ -18,6 +19,7 @@ export type * from '../components/CodeGroup.vue';
|
|
|
18
19
|
export type * from '../components/CodeTree.vue';
|
|
19
20
|
export type * from '../components/Collapsible.vue';
|
|
20
21
|
export type * from '../components/ColorModeToggle.vue';
|
|
22
|
+
export type * from '../components/ColorPicker.vue';
|
|
21
23
|
export type * from '../components/CommandPalette.vue';
|
|
22
24
|
export type * from '../components/Container.vue';
|
|
23
25
|
export type * from '../components/ContentNavigation.vue';
|
|
@@ -31,6 +33,7 @@ export type * from '../components/DashboardResizeHandle.vue';
|
|
|
31
33
|
export type * from '../components/DashboardSidebar.vue';
|
|
32
34
|
export type * from '../components/DashboardSidebarToggle.vue';
|
|
33
35
|
export type * from '../components/DatePicker.vue';
|
|
36
|
+
export type * from '../components/Drawer.vue';
|
|
34
37
|
export type * from '../components/Dropdown.vue';
|
|
35
38
|
export type * from '../components/FileTree.vue';
|
|
36
39
|
export type * from '../components/FileUpload.vue';
|
|
@@ -38,6 +41,7 @@ export type * from '../components/FormField.vue';
|
|
|
38
41
|
export type * from '../components/Header.vue';
|
|
39
42
|
export type * from '../components/Icon.vue';
|
|
40
43
|
export type * from '../components/Input.vue';
|
|
44
|
+
export type * from '../components/InputGroup.vue';
|
|
41
45
|
export type * from '../components/InputNumber.vue';
|
|
42
46
|
export type * from '../components/Kbd.vue';
|
|
43
47
|
export type * from '../components/Modal.vue';
|
|
@@ -63,12 +67,12 @@ export type * from '../components/Select.vue';
|
|
|
63
67
|
export type * from '../components/Separator.vue';
|
|
64
68
|
export type * from '../components/Skeleton.vue';
|
|
65
69
|
export type * from '../components/Slideover.vue';
|
|
70
|
+
export type * from '../components/Slider.vue';
|
|
66
71
|
export type * from '../components/Splitter.vue';
|
|
67
72
|
export type * from '../components/SplitterPanel.vue';
|
|
68
73
|
export type * from '../components/SplitterResizeHandle.vue';
|
|
69
74
|
export type * from '../components/Stepper.vue';
|
|
70
75
|
export type * from '../components/Switch.vue';
|
|
71
|
-
export type * from '../components/Table.vue';
|
|
72
76
|
export type * from '../components/Tabs.vue';
|
|
73
77
|
export type * from '../components/Textarea.vue';
|
|
74
78
|
export type * from '../components/Theme.vue';
|
|
@@ -76,7 +80,21 @@ export type * from '../components/Toast.vue';
|
|
|
76
80
|
export type * from '../components/Toggle.vue';
|
|
77
81
|
export type * from '../components/ToggleGroup.vue';
|
|
78
82
|
export type * from '../components/Tooltip.vue';
|
|
83
|
+
export type * from '../components/Tree.vue';
|
|
84
|
+
export type { UseCommandPaletteReturn } from '../composables/use-command-palette.js';
|
|
85
|
+
export type { UseDrawerOpenOptions, UseDrawerReturn } from '../composables/use-drawer.js';
|
|
86
|
+
export type { UseModalOpenOptions, UseModalReturn } from '../composables/use-modal.js';
|
|
87
|
+
export type { UseSlideoverOpenOptions, UseSlideoverReturn } from '../composables/use-slideover.js';
|
|
88
|
+
export type { TableColumnDef, TableColumnVisibilityState, TableExpandedState, TableGetRowId, TableRowSelectionState, TableSortingState } from '../composables/use-table.js';
|
|
89
|
+
export type { ToastOptions, UseToastReturn } from '../composables/use-toast.js';
|
|
90
|
+
export type { ThemeComponentRegistry, ThemeConfiguration, ThemeDefaults, ThemeUiOverrides } from '../theme-config.js';
|
|
91
|
+
export type { AutocompleteValue } from '../utils/autocomplete-contracts.js';
|
|
92
|
+
export type { BuiltinColorName, ColorRecipe, ColorRecipeInput, ColorRole, RuntimeColorOverrides, RuntimeThemeMode, RuntimeTokenOverrides } from '../utils/color-registry.js';
|
|
93
|
+
export type { FunctionalTokenOverrides, GeometryTokenOverrides, ThemeTokenOverrides } from '../utils/functional-tokens.js';
|
|
79
94
|
export type { IconRegistry } from '../utils/icons.js';
|
|
80
95
|
export { defaultIcons } from '../utils/icons.js';
|
|
81
96
|
export type { MessageRegistry } from '../utils/messages.js';
|
|
82
97
|
export { defaultMessages } from '../utils/messages.js';
|
|
98
|
+
export type { SelectGroup, SelectIdentity, SelectModel, SelectResolvedOption, SelectValue } from '../utils/select-contracts.js';
|
|
99
|
+
export type { TableEmits, TableProps, TableSlots } from '../utils/table-contracts.js';
|
|
100
|
+
export type { SelarasRuntimeConfig } from './app-config.js';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { useNuxtApp } from "#imports";
|
|
2
|
+
export function createAppScopedState(create) {
|
|
3
|
+
const states = /* @__PURE__ */ new WeakMap();
|
|
4
|
+
return function useAppScopedState(owner = useNuxtApp().vueApp) {
|
|
5
|
+
const app = owner;
|
|
6
|
+
let state = states.get(app);
|
|
7
|
+
if (!state) {
|
|
8
|
+
state = create();
|
|
9
|
+
states.set(app, state);
|
|
10
|
+
}
|
|
11
|
+
return state;
|
|
12
|
+
};
|
|
13
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { SelectIdentity, SelectModel, SelectProps, SelectSlots, SelectValue } from './select-contracts.js';
|
|
2
|
+
export type AutocompleteValue<Entry, Key extends string = 'value', Forced extends boolean = false> = Forced extends true ? SelectIdentity<Entry, Key> : SelectIdentity<Entry, Key> | string;
|
|
3
|
+
export interface AutocompleteProps<Entry extends object = {
|
|
4
|
+
value: SelectValue;
|
|
5
|
+
label?: string;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
}, Key extends string = 'value', Multiple extends boolean = false, Forced extends boolean = false> extends Omit<SelectProps<Entry, Key, Multiple>, 'searchable' | 'modelValue' | 'defaultValue'> {
|
|
8
|
+
/** Suggestion identities plus created strings, unless selection is forced. */
|
|
9
|
+
modelValue?: NoInfer<SelectModel<AutocompleteValue<Entry, Key, Forced>, Multiple>>;
|
|
10
|
+
/** Mount-captured selection/reset target, adapted to the current multiple mode. */
|
|
11
|
+
defaultValue?: NoInfer<SelectModel<AutocompleteValue<Entry, Key, Forced>, Multiple>>;
|
|
12
|
+
dropdown?: boolean;
|
|
13
|
+
/** Blocks unmatched free-text commits; does not require async option membership. */
|
|
14
|
+
forceSelection?: Forced;
|
|
15
|
+
}
|
|
16
|
+
export interface AutocompleteEmits<Entry extends object = {
|
|
17
|
+
value: SelectValue;
|
|
18
|
+
}, Key extends string = 'value', Multiple extends boolean = false, Forced extends boolean = false> {
|
|
19
|
+
'update:open': [value: boolean];
|
|
20
|
+
'update:modelValue': [value: SelectModel<AutocompleteValue<Entry, Key, Forced>, Multiple>];
|
|
21
|
+
'update:searchTerm': [value: string];
|
|
22
|
+
}
|
|
23
|
+
/** Autocomplete's editable input has no value or filter-icon slot. */
|
|
24
|
+
export type AutocompleteSlots<Entry extends object> = Omit<SelectSlots<Entry>, 'value' | 'filter-icon'>;
|
|
File without changes
|