@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
|
@@ -11,27 +11,15 @@ export declare const selectTheme: import("tailwind-variants").TVReturnType<{
|
|
|
11
11
|
};
|
|
12
12
|
};
|
|
13
13
|
color: {
|
|
14
|
-
primary:
|
|
15
|
-
trigger: string;
|
|
16
|
-
};
|
|
14
|
+
primary: "";
|
|
17
15
|
neutral: {
|
|
18
16
|
trigger: string;
|
|
19
17
|
};
|
|
20
|
-
secondary:
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
};
|
|
26
|
-
danger: {
|
|
27
|
-
trigger: string;
|
|
28
|
-
};
|
|
29
|
-
info: {
|
|
30
|
-
trigger: string;
|
|
31
|
-
};
|
|
32
|
-
warning: {
|
|
33
|
-
trigger: string;
|
|
34
|
-
};
|
|
18
|
+
secondary: "";
|
|
19
|
+
success: "";
|
|
20
|
+
danger: "";
|
|
21
|
+
info: "";
|
|
22
|
+
warning: "";
|
|
35
23
|
};
|
|
36
24
|
invalid: {
|
|
37
25
|
true: {
|
|
@@ -50,6 +38,7 @@ export declare const selectTheme: import("tailwind-variants").TVReturnType<{
|
|
|
50
38
|
searchInput: string;
|
|
51
39
|
content: string;
|
|
52
40
|
mobileContent: string;
|
|
41
|
+
mobilePanel: string;
|
|
53
42
|
viewport: string;
|
|
54
43
|
group: string;
|
|
55
44
|
item: string;
|
|
@@ -69,27 +58,15 @@ export declare const selectTheme: import("tailwind-variants").TVReturnType<{
|
|
|
69
58
|
};
|
|
70
59
|
};
|
|
71
60
|
color: {
|
|
72
|
-
primary:
|
|
73
|
-
trigger: string;
|
|
74
|
-
};
|
|
61
|
+
primary: "";
|
|
75
62
|
neutral: {
|
|
76
63
|
trigger: string;
|
|
77
64
|
};
|
|
78
|
-
secondary:
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
};
|
|
84
|
-
danger: {
|
|
85
|
-
trigger: string;
|
|
86
|
-
};
|
|
87
|
-
info: {
|
|
88
|
-
trigger: string;
|
|
89
|
-
};
|
|
90
|
-
warning: {
|
|
91
|
-
trigger: string;
|
|
92
|
-
};
|
|
65
|
+
secondary: "";
|
|
66
|
+
success: "";
|
|
67
|
+
danger: "";
|
|
68
|
+
info: "";
|
|
69
|
+
warning: "";
|
|
93
70
|
};
|
|
94
71
|
invalid: {
|
|
95
72
|
true: {
|
|
@@ -108,6 +85,7 @@ export declare const selectTheme: import("tailwind-variants").TVReturnType<{
|
|
|
108
85
|
searchInput: string;
|
|
109
86
|
content: string;
|
|
110
87
|
mobileContent: string;
|
|
88
|
+
mobilePanel: string;
|
|
111
89
|
viewport: string;
|
|
112
90
|
group: string;
|
|
113
91
|
item: string;
|
|
@@ -127,27 +105,15 @@ export declare const selectTheme: import("tailwind-variants").TVReturnType<{
|
|
|
127
105
|
};
|
|
128
106
|
};
|
|
129
107
|
color: {
|
|
130
|
-
primary:
|
|
131
|
-
trigger: string;
|
|
132
|
-
};
|
|
108
|
+
primary: "";
|
|
133
109
|
neutral: {
|
|
134
110
|
trigger: string;
|
|
135
111
|
};
|
|
136
|
-
secondary:
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
};
|
|
142
|
-
danger: {
|
|
143
|
-
trigger: string;
|
|
144
|
-
};
|
|
145
|
-
info: {
|
|
146
|
-
trigger: string;
|
|
147
|
-
};
|
|
148
|
-
warning: {
|
|
149
|
-
trigger: string;
|
|
150
|
-
};
|
|
112
|
+
secondary: "";
|
|
113
|
+
success: "";
|
|
114
|
+
danger: "";
|
|
115
|
+
info: "";
|
|
116
|
+
warning: "";
|
|
151
117
|
};
|
|
152
118
|
invalid: {
|
|
153
119
|
true: {
|
|
@@ -166,6 +132,7 @@ export declare const selectTheme: import("tailwind-variants").TVReturnType<{
|
|
|
166
132
|
searchInput: string;
|
|
167
133
|
content: string;
|
|
168
134
|
mobileContent: string;
|
|
135
|
+
mobilePanel: string;
|
|
169
136
|
viewport: string;
|
|
170
137
|
group: string;
|
|
171
138
|
item: string;
|
|
@@ -7,8 +7,8 @@ export const selectTheme = tv({
|
|
|
7
7
|
// true (unavoidable while interacting with the trigger or its options)
|
|
8
8
|
// let the plain gray hover ring beat the primary one in the cascade,
|
|
9
9
|
// since they're all equal-specificity pseudo-class/attribute selectors.
|
|
10
|
-
trigger: "inline-flex w-full min-h-10 flex-wrap items-center gap-1.5 rounded-[var(--
|
|
11
|
-
value: "flex-1 truncate text-start text-[var(--
|
|
10
|
+
trigger: "inline-flex w-full min-h-10 flex-wrap items-center gap-1.5 rounded-[var(--selaras-resolved-radius-md)] bg-[var(--selaras-resolved-surface-default)] px-3 py-1.5 text-sm ring-1 ring-inset ring-[var(--selaras-resolved-border-default)] outline-none transition-[color,background-color,box-shadow] not-focus:not-focus-within:not-data-[state=open]:hover:ring-[var(--selaras-resolved-border-hover)] hover:bg-[var(--selaras-resolved-surface-elevated)] focus:ring-2 focus:ring-[var(--_selaras-color-focus)] focus-within:ring-2 focus-within:ring-[var(--_selaras-color-focus)] data-[state=open]:ring-2 data-[state=open]:ring-[var(--_selaras-color-focus)] disabled:opacity-50 disabled:pointer-events-none",
|
|
11
|
+
value: "flex-1 truncate text-start text-[var(--selaras-resolved-text-default)] data-[placeholder]:text-[var(--selaras-resolved-text-muted)]",
|
|
12
12
|
// Both chip display branches render a real Chip (see
|
|
13
13
|
// ComboboxSelectBase.vue) instead of hand-rolled markup, styled/
|
|
14
14
|
// colored via its own props and :ui override - only the "+N more"
|
|
@@ -19,29 +19,34 @@ export const selectTheme = tv({
|
|
|
19
19
|
// matches the chips' own primary too, not text-muted - muted-on-
|
|
20
20
|
// primary-soft measures 4.46:1, just under AA; primary-on-primary-
|
|
21
21
|
// soft (the same pairing Chip's own soft variant uses) clears 6.5:1.
|
|
22
|
-
chipOverflow: "inline-flex items-center rounded-[var(--
|
|
23
|
-
icon: "shrink-0 text-[var(--
|
|
22
|
+
chipOverflow: "inline-flex items-center rounded-[var(--selaras-resolved-radius-sm)] bg-[var(--_selaras-color-subtle)] px-2 py-0.5 text-xs text-[var(--_selaras-color-text)]",
|
|
23
|
+
icon: "shrink-0 text-[var(--selaras-resolved-text-muted)]",
|
|
24
24
|
// Rendered as an <SButton> (ghost/neutral) - real chrome, focus ring
|
|
25
25
|
// and touch target come from Button's own theme; only rounded-full
|
|
26
26
|
// (this dismiss-glyph family reads better circular) stays here.
|
|
27
27
|
clear: "shrink-0 rounded-full",
|
|
28
|
-
dropdown: "shrink-0 rounded-[var(--
|
|
29
|
-
searchWrapper: "flex items-center gap-2 border-b border-[var(--
|
|
30
|
-
searchInput: "h-9 min-w-16 flex-1 bg-transparent text-sm text-[var(--
|
|
31
|
-
content: "z-[var(--
|
|
32
|
-
// The `
|
|
28
|
+
dropdown: "shrink-0 rounded-[var(--selaras-resolved-radius-sm)] p-0.5 text-[var(--selaras-resolved-text-muted)] transition-colors hover:bg-[var(--selaras-resolved-border-default)] hover:text-[var(--selaras-resolved-text-default)] focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[var(--_selaras-color-focus)]",
|
|
29
|
+
searchWrapper: "flex items-center gap-2 border-b border-[var(--selaras-resolved-border-default)] px-2",
|
|
30
|
+
searchInput: "h-9 min-w-16 flex-1 bg-transparent text-sm text-[var(--selaras-resolved-text-default)] outline-none placeholder:text-[var(--selaras-resolved-text-muted)]",
|
|
31
|
+
content: "z-[var(--selaras-resolved-z-dropdown)] max-h-72 min-w-[var(--reka-combobox-trigger-width)] overflow-hidden rounded-[var(--selaras-resolved-radius-md)] bg-[var(--selaras-resolved-surface-default)] shadow-[var(--selaras-resolved-shadow-md)] ring-1 ring-[var(--selaras-resolved-border-default)] data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95",
|
|
32
|
+
// The `adaptive` path's own content wrapper - none of `content`'s
|
|
33
33
|
// own popover chrome (ring/shadow/rounded/animate-in, sized off the
|
|
34
34
|
// trigger's own width via --reka-combobox-trigger-width, which is
|
|
35
35
|
// only ever set while position="popper" is active) applies here,
|
|
36
36
|
// since Modal's own card already provides that surface; this only
|
|
37
37
|
// needs to fill Modal's content slot width.
|
|
38
38
|
mobileContent: "w-full",
|
|
39
|
+
// Autocomplete keeps its editable ComboboxInput outside its popup. Its
|
|
40
|
+
// mobile presentation is therefore a wider nonmodal panel, not Modal's
|
|
41
|
+
// content wrapper. Inline geometry avoids inheriting popper width from the
|
|
42
|
+
// trigger while leaving consumer `ui.mobilePanel` overrides available.
|
|
43
|
+
mobilePanel: "",
|
|
39
44
|
viewport: "max-h-72 overflow-y-auto p-1",
|
|
40
|
-
group: "px-2 pt-2 pb-1 text-xs font-medium text-[var(--
|
|
41
|
-
item: "relative flex items-center gap-2 rounded-[var(--
|
|
42
|
-
itemIndicator: "absolute end-2 flex items-center text-[var(--
|
|
43
|
-
empty: "px-2 py-6 text-center text-sm text-[var(--
|
|
44
|
-
arrow: "fill-[var(--
|
|
45
|
+
group: "px-2 pt-2 pb-1 text-xs font-medium text-[var(--selaras-resolved-text-muted)]",
|
|
46
|
+
item: "relative flex items-center gap-2 rounded-[var(--selaras-resolved-radius-sm)] py-1.5 ps-2 pe-8 text-sm text-[var(--selaras-resolved-text-default)] outline-none cursor-pointer select-none data-[highlighted]:bg-[var(--selaras-resolved-surface-elevated)] data-[disabled]:opacity-50 data-[disabled]:pointer-events-none",
|
|
47
|
+
itemIndicator: "absolute end-2 flex items-center text-[var(--_selaras-color-indicator)]",
|
|
48
|
+
empty: "px-2 py-6 text-center text-sm text-[var(--selaras-resolved-text-muted)]",
|
|
49
|
+
arrow: "fill-[var(--selaras-resolved-surface-default)] stroke-[var(--selaras-resolved-border-default)] stroke-1"
|
|
45
50
|
},
|
|
46
51
|
variants: {
|
|
47
52
|
size: {
|
|
@@ -49,22 +54,25 @@ export const selectTheme = tv({
|
|
|
49
54
|
md: { trigger: "min-h-10" },
|
|
50
55
|
lg: { trigger: "min-h-11 text-base" }
|
|
51
56
|
},
|
|
52
|
-
//
|
|
53
|
-
//
|
|
57
|
+
// Registered custom roles have no finite Tailwind Variants branch. Keep
|
|
58
|
+
// the semantic focus styling in the base slot so every registered role
|
|
59
|
+
// resolves through --_selaras-color-focus; neutral alone overrides it.
|
|
60
|
+
// Empty built-in branches preserve the public recipe condition used by
|
|
61
|
+
// consumer compound variants.
|
|
54
62
|
color: {
|
|
55
|
-
primary:
|
|
56
|
-
neutral: { trigger: "focus:ring-[var(--
|
|
57
|
-
secondary:
|
|
58
|
-
success:
|
|
59
|
-
danger:
|
|
60
|
-
info:
|
|
61
|
-
warning:
|
|
63
|
+
primary: "",
|
|
64
|
+
neutral: { trigger: "focus:ring-[var(--selaras-resolved-surface-inverted)] focus-within:ring-[var(--selaras-resolved-surface-inverted)] data-[state=open]:ring-[var(--selaras-resolved-surface-inverted)]" },
|
|
65
|
+
secondary: "",
|
|
66
|
+
success: "",
|
|
67
|
+
danger: "",
|
|
68
|
+
info: "",
|
|
69
|
+
warning: ""
|
|
62
70
|
},
|
|
63
71
|
// Declared last (after color) so tailwind-merge lets its own ring
|
|
64
72
|
// overrides win over color's - see input.ts for why declaration order
|
|
65
73
|
// (not runtime call order) is what decides this.
|
|
66
74
|
invalid: {
|
|
67
|
-
true: { trigger: "ring-[var(--
|
|
75
|
+
true: { trigger: "ring-[var(--_selaras-color-border)] hover:ring-[var(--_selaras-color-border)] focus:ring-[var(--_selaras-color-focus)] focus-within:ring-[var(--_selaras-color-focus)] data-[state=open]:ring-[var(--_selaras-color-focus)]" }
|
|
68
76
|
}
|
|
69
77
|
},
|
|
70
78
|
defaultVariants: {
|
|
@@ -27,24 +27,12 @@ export declare const separatorTheme: import("tailwind-variants").TVReturnType<{
|
|
|
27
27
|
neutral: {
|
|
28
28
|
line: string;
|
|
29
29
|
};
|
|
30
|
-
primary:
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
success: {
|
|
37
|
-
line: string;
|
|
38
|
-
};
|
|
39
|
-
danger: {
|
|
40
|
-
line: string;
|
|
41
|
-
};
|
|
42
|
-
info: {
|
|
43
|
-
line: string;
|
|
44
|
-
};
|
|
45
|
-
warning: {
|
|
46
|
-
line: string;
|
|
47
|
-
};
|
|
30
|
+
primary: "";
|
|
31
|
+
secondary: "";
|
|
32
|
+
success: "";
|
|
33
|
+
danger: "";
|
|
34
|
+
info: "";
|
|
35
|
+
warning: "";
|
|
48
36
|
};
|
|
49
37
|
}, {
|
|
50
38
|
root: string;
|
|
@@ -79,24 +67,12 @@ export declare const separatorTheme: import("tailwind-variants").TVReturnType<{
|
|
|
79
67
|
neutral: {
|
|
80
68
|
line: string;
|
|
81
69
|
};
|
|
82
|
-
primary:
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
success: {
|
|
89
|
-
line: string;
|
|
90
|
-
};
|
|
91
|
-
danger: {
|
|
92
|
-
line: string;
|
|
93
|
-
};
|
|
94
|
-
info: {
|
|
95
|
-
line: string;
|
|
96
|
-
};
|
|
97
|
-
warning: {
|
|
98
|
-
line: string;
|
|
99
|
-
};
|
|
70
|
+
primary: "";
|
|
71
|
+
secondary: "";
|
|
72
|
+
success: "";
|
|
73
|
+
danger: "";
|
|
74
|
+
info: "";
|
|
75
|
+
warning: "";
|
|
100
76
|
};
|
|
101
77
|
}, {
|
|
102
78
|
root: string;
|
|
@@ -131,24 +107,12 @@ export declare const separatorTheme: import("tailwind-variants").TVReturnType<{
|
|
|
131
107
|
neutral: {
|
|
132
108
|
line: string;
|
|
133
109
|
};
|
|
134
|
-
primary:
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
success: {
|
|
141
|
-
line: string;
|
|
142
|
-
};
|
|
143
|
-
danger: {
|
|
144
|
-
line: string;
|
|
145
|
-
};
|
|
146
|
-
info: {
|
|
147
|
-
line: string;
|
|
148
|
-
};
|
|
149
|
-
warning: {
|
|
150
|
-
line: string;
|
|
151
|
-
};
|
|
110
|
+
primary: "";
|
|
111
|
+
secondary: "";
|
|
112
|
+
success: "";
|
|
113
|
+
danger: "";
|
|
114
|
+
info: "";
|
|
115
|
+
warning: "";
|
|
152
116
|
};
|
|
153
117
|
}, {
|
|
154
118
|
root: string;
|
|
@@ -10,12 +10,12 @@ export const separatorTheme = tv({
|
|
|
10
10
|
// plain bar; with a label, a second one of these renders after it
|
|
11
11
|
// (see Separator.vue), splitting the available space evenly on both
|
|
12
12
|
// sides of the text.
|
|
13
|
-
line: "shrink-0 border-[var(--
|
|
13
|
+
line: "shrink-0 border-[var(--_selaras-color-indicator)]",
|
|
14
14
|
// Always muted, independent of `color` - a colored line with
|
|
15
15
|
// matching bright label text reads as garish rather than
|
|
16
16
|
// informative; the label stays legible/neutral regardless of how
|
|
17
17
|
// much the line itself is emphasized.
|
|
18
|
-
label: "shrink-0 px-2 text-xs text-[var(--
|
|
18
|
+
label: "shrink-0 px-2 text-xs text-[var(--selaras-resolved-text-muted)] whitespace-nowrap"
|
|
19
19
|
},
|
|
20
20
|
variants: {
|
|
21
21
|
orientation: {
|
|
@@ -36,19 +36,23 @@ export const separatorTheme = tv({
|
|
|
36
36
|
// Unlike Input/PinInput's own `color` (focus-ring only), the line is
|
|
37
37
|
// always visible with no interactive state to gate a color reveal
|
|
38
38
|
// behind - it just tints directly. `neutral` here means the same
|
|
39
|
-
// subtle --
|
|
40
|
-
// --
|
|
39
|
+
// subtle --selaras-resolved-border-default this component always used, not the bold
|
|
40
|
+
// --selaras-resolved-surface-inverted "neutral" means elsewhere (Checkbox, Slider, ...) -
|
|
41
41
|
// a divider's own default has to stay subtle, matching precedent for
|
|
42
42
|
// "neutral" carrying whatever's contextually right per component
|
|
43
|
-
// (Badge's own soft variant does the same with --
|
|
43
|
+
// (Badge's own soft variant does the same with --selaras-resolved-surface-elevated).
|
|
44
|
+
// Semantic color is the base line treatment so registered roles work even
|
|
45
|
+
// without a finite built-in branch. Empty built-in entries preserve the
|
|
46
|
+
// public recipe condition, and neutral explicitly restores the subtle
|
|
47
|
+
// functional border.
|
|
44
48
|
color: {
|
|
45
|
-
neutral: { line: "border-[var(--
|
|
46
|
-
primary:
|
|
47
|
-
secondary:
|
|
48
|
-
success:
|
|
49
|
-
danger:
|
|
50
|
-
info:
|
|
51
|
-
warning:
|
|
49
|
+
neutral: { line: "border-[var(--selaras-resolved-border-default)]" },
|
|
50
|
+
primary: "",
|
|
51
|
+
secondary: "",
|
|
52
|
+
success: "",
|
|
53
|
+
danger: "",
|
|
54
|
+
info: "",
|
|
55
|
+
warning: ""
|
|
52
56
|
}
|
|
53
57
|
},
|
|
54
58
|
compoundVariants: [
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { tv } from "tailwind-variants";
|
|
2
2
|
export const skeletonTheme = tv({
|
|
3
3
|
slots: {
|
|
4
|
-
// --
|
|
4
|
+
// --selaras-resolved-surface-elevated (neutral-50) reads as barely-off-white against the
|
|
5
5
|
// page background it's normally shown on - fine for a soft surface
|
|
6
6
|
// tint, but a loading placeholder needs to actually be visible.
|
|
7
|
-
// --
|
|
7
|
+
// --selaras-resolved-border-default is the same "visible neutral block on white" token
|
|
8
8
|
// Slider's own track already uses for the identical reason.
|
|
9
|
-
base: "block rounded-[var(--
|
|
9
|
+
base: "block rounded-[var(--selaras-resolved-radius-md)] bg-[var(--selaras-resolved-border-default)]"
|
|
10
10
|
},
|
|
11
11
|
variants: {
|
|
12
12
|
animation: {
|
|
@@ -17,7 +17,7 @@ export const skeletonTheme = tv({
|
|
|
17
17
|
// A 200%-wide gradient slides across the block's own width via
|
|
18
18
|
// background-position, giving the light band somewhere to travel.
|
|
19
19
|
shimmer: {
|
|
20
|
-
base: "bg-[linear-gradient(90deg,var(--
|
|
20
|
+
base: "bg-[linear-gradient(90deg,var(--selaras-resolved-border-default)_25%,var(--selaras-resolved-border-hover)_50%,var(--selaras-resolved-border-default)_75%)] bg-[length:200%_100%] animate-[selaras-skeleton-shimmer_1.6s_ease-in-out_infinite]"
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
},
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { tv } from "tailwind-variants";
|
|
2
2
|
export const slideoverTheme = tv({
|
|
3
3
|
slots: {
|
|
4
|
-
overlay: "fixed inset-0 z-[var(--
|
|
5
|
-
content: "fixed z-[var(--
|
|
4
|
+
overlay: "fixed inset-0 z-[var(--selaras-resolved-z-modal-overlay)] bg-[var(--selaras-resolved-scrim)]",
|
|
5
|
+
content: "fixed z-[var(--selaras-resolved-z-modal)] flex flex-col bg-[var(--selaras-resolved-surface-default)] shadow-[var(--selaras-resolved-shadow-lg)] focus:outline-none",
|
|
6
6
|
header: "flex items-start justify-between gap-4 p-4 sm:px-6",
|
|
7
|
-
title: "text-base font-semibold text-[var(--
|
|
8
|
-
description: "mt-1 text-sm text-[var(--
|
|
7
|
+
title: "text-base font-semibold text-[var(--selaras-resolved-text-default)]",
|
|
8
|
+
description: "mt-1 text-sm text-[var(--selaras-resolved-text-muted)]",
|
|
9
9
|
close: "shrink-0 rounded-full",
|
|
10
10
|
body: "flex-1 overflow-y-auto p-4 sm:px-6",
|
|
11
11
|
footer: "flex items-center justify-end gap-2 p-4 sm:px-6"
|
|
@@ -29,7 +29,7 @@ export const slideoverTheme = tv({
|
|
|
29
29
|
right: { content: "max-w-md" }
|
|
30
30
|
},
|
|
31
31
|
inset: {
|
|
32
|
-
true: { content: "rounded-[var(--
|
|
32
|
+
true: { content: "rounded-[var(--selaras-resolved-radius-lg)] ring-1 ring-[var(--selaras-resolved-border-default)]" }
|
|
33
33
|
},
|
|
34
34
|
// The animation classes live entirely in this variant (and the
|
|
35
35
|
// compoundVariants below) rather than the base slot strings above -
|
|
@@ -17,34 +17,13 @@ export declare const sliderTheme: import("tailwind-variants").TVReturnType<{
|
|
|
17
17
|
};
|
|
18
18
|
};
|
|
19
19
|
color: {
|
|
20
|
-
primary: {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
};
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
};
|
|
28
|
-
secondary: {
|
|
29
|
-
range: string;
|
|
30
|
-
thumb: string;
|
|
31
|
-
};
|
|
32
|
-
success: {
|
|
33
|
-
range: string;
|
|
34
|
-
thumb: string;
|
|
35
|
-
};
|
|
36
|
-
danger: {
|
|
37
|
-
range: string;
|
|
38
|
-
thumb: string;
|
|
39
|
-
};
|
|
40
|
-
info: {
|
|
41
|
-
range: string;
|
|
42
|
-
thumb: string;
|
|
43
|
-
};
|
|
44
|
-
warning: {
|
|
45
|
-
range: string;
|
|
46
|
-
thumb: string;
|
|
47
|
-
};
|
|
20
|
+
primary: {};
|
|
21
|
+
neutral: {};
|
|
22
|
+
secondary: {};
|
|
23
|
+
success: {};
|
|
24
|
+
danger: {};
|
|
25
|
+
info: {};
|
|
26
|
+
warning: {};
|
|
48
27
|
};
|
|
49
28
|
orientation: {
|
|
50
29
|
horizontal: {
|
|
@@ -92,34 +71,13 @@ export declare const sliderTheme: import("tailwind-variants").TVReturnType<{
|
|
|
92
71
|
};
|
|
93
72
|
};
|
|
94
73
|
color: {
|
|
95
|
-
primary: {
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
};
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
};
|
|
103
|
-
secondary: {
|
|
104
|
-
range: string;
|
|
105
|
-
thumb: string;
|
|
106
|
-
};
|
|
107
|
-
success: {
|
|
108
|
-
range: string;
|
|
109
|
-
thumb: string;
|
|
110
|
-
};
|
|
111
|
-
danger: {
|
|
112
|
-
range: string;
|
|
113
|
-
thumb: string;
|
|
114
|
-
};
|
|
115
|
-
info: {
|
|
116
|
-
range: string;
|
|
117
|
-
thumb: string;
|
|
118
|
-
};
|
|
119
|
-
warning: {
|
|
120
|
-
range: string;
|
|
121
|
-
thumb: string;
|
|
122
|
-
};
|
|
74
|
+
primary: {};
|
|
75
|
+
neutral: {};
|
|
76
|
+
secondary: {};
|
|
77
|
+
success: {};
|
|
78
|
+
danger: {};
|
|
79
|
+
info: {};
|
|
80
|
+
warning: {};
|
|
123
81
|
};
|
|
124
82
|
orientation: {
|
|
125
83
|
horizontal: {
|
|
@@ -167,34 +125,13 @@ export declare const sliderTheme: import("tailwind-variants").TVReturnType<{
|
|
|
167
125
|
};
|
|
168
126
|
};
|
|
169
127
|
color: {
|
|
170
|
-
primary: {
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
};
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
};
|
|
178
|
-
secondary: {
|
|
179
|
-
range: string;
|
|
180
|
-
thumb: string;
|
|
181
|
-
};
|
|
182
|
-
success: {
|
|
183
|
-
range: string;
|
|
184
|
-
thumb: string;
|
|
185
|
-
};
|
|
186
|
-
danger: {
|
|
187
|
-
range: string;
|
|
188
|
-
thumb: string;
|
|
189
|
-
};
|
|
190
|
-
info: {
|
|
191
|
-
range: string;
|
|
192
|
-
thumb: string;
|
|
193
|
-
};
|
|
194
|
-
warning: {
|
|
195
|
-
range: string;
|
|
196
|
-
thumb: string;
|
|
197
|
-
};
|
|
128
|
+
primary: {};
|
|
129
|
+
neutral: {};
|
|
130
|
+
secondary: {};
|
|
131
|
+
success: {};
|
|
132
|
+
danger: {};
|
|
133
|
+
info: {};
|
|
134
|
+
warning: {};
|
|
198
135
|
};
|
|
199
136
|
orientation: {
|
|
200
137
|
horizontal: {
|
|
@@ -2,7 +2,7 @@ import { tv } from "tailwind-variants";
|
|
|
2
2
|
export const sliderTheme = tv({
|
|
3
3
|
slots: {
|
|
4
4
|
root: "relative flex touch-none select-none items-center data-[disabled]:opacity-50 data-[disabled]:pointer-events-none",
|
|
5
|
-
track: "relative grow rounded-full bg-[var(--
|
|
5
|
+
track: "relative grow rounded-full bg-[var(--selaras-resolved-border-default)]",
|
|
6
6
|
// Reka's own SliderRange sets left/right (horizontal) or top/bottom
|
|
7
7
|
// (vertical) itself via inline style, to size the *main* axis - the
|
|
8
8
|
// *cross* axis (this slot's own height for horizontal, width for
|
|
@@ -10,16 +10,16 @@ export const sliderTheme = tv({
|
|
|
10
10
|
// positioned element with no top/bottom of its own collapses to 0
|
|
11
11
|
// height. inset-y-0/inset-x-0 below (in the orientation variant)
|
|
12
12
|
// supply that missing cross-axis size.
|
|
13
|
-
range: "absolute rounded-full",
|
|
14
|
-
thumb: "block shrink-0 rounded-full bg-[var(--
|
|
13
|
+
range: "absolute rounded-full bg-[var(--_selaras-color-indicator)]",
|
|
14
|
+
thumb: "block shrink-0 rounded-full bg-[var(--selaras-resolved-surface-default)] shadow-[var(--selaras-resolved-shadow-sm)] ring-2 ring-[var(--_selaras-color-indicator)] transition-shadow focus-visible:outline-none focus-visible:ring-4",
|
|
15
15
|
// Own addition - Reka's Slider has no tick/mark concept of its own.
|
|
16
16
|
// Positioned via an inline style (percent along the track), not a
|
|
17
17
|
// variant - see Slider.vue's own `ticks` computed.
|
|
18
|
-
tick: "absolute size-1 -translate-x-1/2 rounded-full bg-[var(--
|
|
18
|
+
tick: "absolute size-1 -translate-x-1/2 rounded-full bg-[var(--selaras-resolved-border-hover)]",
|
|
19
19
|
// Own addition - flanking content (an icon, an emoji, a unit label)
|
|
20
20
|
// either side of the track. Plain flex boxes, no Reka equivalent.
|
|
21
|
-
start: "flex shrink-0 items-center justify-center text-[var(--
|
|
22
|
-
end: "flex shrink-0 items-center justify-center text-[var(--
|
|
21
|
+
start: "flex shrink-0 items-center justify-center text-[var(--selaras-resolved-text-muted)]",
|
|
22
|
+
end: "flex shrink-0 items-center justify-center text-[var(--selaras-resolved-text-muted)]"
|
|
23
23
|
},
|
|
24
24
|
variants: {
|
|
25
25
|
size: {
|
|
@@ -28,13 +28,13 @@ export const sliderTheme = tv({
|
|
|
28
28
|
lg: { track: "h-2", thumb: "size-5", tick: "top-1/2 -translate-y-1/2" }
|
|
29
29
|
},
|
|
30
30
|
color: {
|
|
31
|
-
primary: {
|
|
32
|
-
neutral: {
|
|
33
|
-
secondary: {
|
|
34
|
-
success: {
|
|
35
|
-
danger: {
|
|
36
|
-
info: {
|
|
37
|
-
warning: {
|
|
31
|
+
primary: {},
|
|
32
|
+
neutral: {},
|
|
33
|
+
secondary: {},
|
|
34
|
+
success: {},
|
|
35
|
+
danger: {},
|
|
36
|
+
info: {},
|
|
37
|
+
warning: {}
|
|
38
38
|
},
|
|
39
39
|
// Vertical needs a real, non-zero height to size against - unlike
|
|
40
40
|
// horizontal, which sizes off its own intrinsic full width.
|
|
@@ -50,7 +50,7 @@ export const sliderTheme = tv({
|
|
|
50
50
|
// per-size class here isn't enough on its own).
|
|
51
51
|
thumbVariant: {
|
|
52
52
|
circle: { thumb: "rounded-full" },
|
|
53
|
-
bar: { thumb: "rounded-[var(--
|
|
53
|
+
bar: { thumb: "rounded-[var(--selaras-resolved-radius-sm)]" }
|
|
54
54
|
}
|
|
55
55
|
},
|
|
56
56
|
compoundVariants: [
|
|
@@ -1,4 +1,13 @@
|
|
|
1
1
|
export declare const splitterResizeHandleTheme: import("tailwind-variants").TVReturnType<{
|
|
2
|
+
color: {
|
|
3
|
+
primary: "";
|
|
4
|
+
neutral: "";
|
|
5
|
+
secondary: "";
|
|
6
|
+
success: "";
|
|
7
|
+
danger: "";
|
|
8
|
+
info: "";
|
|
9
|
+
warning: "";
|
|
10
|
+
};
|
|
2
11
|
direction: {
|
|
3
12
|
horizontal: {
|
|
4
13
|
root: string;
|
|
@@ -13,6 +22,15 @@ export declare const splitterResizeHandleTheme: import("tailwind-variants").TVRe
|
|
|
13
22
|
root: string;
|
|
14
23
|
line: string;
|
|
15
24
|
}, undefined, {
|
|
25
|
+
color: {
|
|
26
|
+
primary: "";
|
|
27
|
+
neutral: "";
|
|
28
|
+
secondary: "";
|
|
29
|
+
success: "";
|
|
30
|
+
danger: "";
|
|
31
|
+
info: "";
|
|
32
|
+
warning: "";
|
|
33
|
+
};
|
|
16
34
|
direction: {
|
|
17
35
|
horizontal: {
|
|
18
36
|
root: string;
|
|
@@ -27,6 +45,15 @@ export declare const splitterResizeHandleTheme: import("tailwind-variants").TVRe
|
|
|
27
45
|
root: string;
|
|
28
46
|
line: string;
|
|
29
47
|
}, import("tailwind-variants").TVReturnTypeLike<{
|
|
48
|
+
color: {
|
|
49
|
+
primary: "";
|
|
50
|
+
neutral: "";
|
|
51
|
+
secondary: "";
|
|
52
|
+
success: "";
|
|
53
|
+
danger: "";
|
|
54
|
+
info: "";
|
|
55
|
+
warning: "";
|
|
56
|
+
};
|
|
30
57
|
direction: {
|
|
31
58
|
horizontal: {
|
|
32
59
|
root: string;
|