@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
|
@@ -1,33 +1,12 @@
|
|
|
1
1
|
export declare const checkboxTheme: import("tailwind-variants").TVReturnType<{
|
|
2
2
|
color: {
|
|
3
|
-
primary:
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
};
|
|
11
|
-
secondary: {
|
|
12
|
-
box: string;
|
|
13
|
-
indicator: string;
|
|
14
|
-
};
|
|
15
|
-
success: {
|
|
16
|
-
box: string;
|
|
17
|
-
indicator: string;
|
|
18
|
-
};
|
|
19
|
-
danger: {
|
|
20
|
-
box: string;
|
|
21
|
-
indicator: string;
|
|
22
|
-
};
|
|
23
|
-
info: {
|
|
24
|
-
box: string;
|
|
25
|
-
indicator: string;
|
|
26
|
-
};
|
|
27
|
-
warning: {
|
|
28
|
-
box: string;
|
|
29
|
-
indicator: string;
|
|
30
|
-
};
|
|
3
|
+
primary: "";
|
|
4
|
+
neutral: "";
|
|
5
|
+
secondary: "";
|
|
6
|
+
success: "";
|
|
7
|
+
danger: "";
|
|
8
|
+
info: "";
|
|
9
|
+
warning: "";
|
|
31
10
|
};
|
|
32
11
|
size: {
|
|
33
12
|
sm: {
|
|
@@ -72,34 +51,13 @@ export declare const checkboxTheme: import("tailwind-variants").TVReturnType<{
|
|
|
72
51
|
labelGroup: string;
|
|
73
52
|
}, undefined, {
|
|
74
53
|
color: {
|
|
75
|
-
primary:
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
};
|
|
83
|
-
secondary: {
|
|
84
|
-
box: string;
|
|
85
|
-
indicator: string;
|
|
86
|
-
};
|
|
87
|
-
success: {
|
|
88
|
-
box: string;
|
|
89
|
-
indicator: string;
|
|
90
|
-
};
|
|
91
|
-
danger: {
|
|
92
|
-
box: string;
|
|
93
|
-
indicator: string;
|
|
94
|
-
};
|
|
95
|
-
info: {
|
|
96
|
-
box: string;
|
|
97
|
-
indicator: string;
|
|
98
|
-
};
|
|
99
|
-
warning: {
|
|
100
|
-
box: string;
|
|
101
|
-
indicator: string;
|
|
102
|
-
};
|
|
54
|
+
primary: "";
|
|
55
|
+
neutral: "";
|
|
56
|
+
secondary: "";
|
|
57
|
+
success: "";
|
|
58
|
+
danger: "";
|
|
59
|
+
info: "";
|
|
60
|
+
warning: "";
|
|
103
61
|
};
|
|
104
62
|
size: {
|
|
105
63
|
sm: {
|
|
@@ -144,34 +102,13 @@ export declare const checkboxTheme: import("tailwind-variants").TVReturnType<{
|
|
|
144
102
|
labelGroup: string;
|
|
145
103
|
}, import("tailwind-variants").TVReturnTypeLike<{
|
|
146
104
|
color: {
|
|
147
|
-
primary:
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
};
|
|
155
|
-
secondary: {
|
|
156
|
-
box: string;
|
|
157
|
-
indicator: string;
|
|
158
|
-
};
|
|
159
|
-
success: {
|
|
160
|
-
box: string;
|
|
161
|
-
indicator: string;
|
|
162
|
-
};
|
|
163
|
-
danger: {
|
|
164
|
-
box: string;
|
|
165
|
-
indicator: string;
|
|
166
|
-
};
|
|
167
|
-
info: {
|
|
168
|
-
box: string;
|
|
169
|
-
indicator: string;
|
|
170
|
-
};
|
|
171
|
-
warning: {
|
|
172
|
-
box: string;
|
|
173
|
-
indicator: string;
|
|
174
|
-
};
|
|
105
|
+
primary: "";
|
|
106
|
+
neutral: "";
|
|
107
|
+
secondary: "";
|
|
108
|
+
success: "";
|
|
109
|
+
danger: "";
|
|
110
|
+
info: "";
|
|
111
|
+
warning: "";
|
|
175
112
|
};
|
|
176
113
|
size: {
|
|
177
114
|
sm: {
|
|
@@ -16,26 +16,26 @@ export const checkboxTheme = tv({
|
|
|
16
16
|
// element's own isolated stacking context its own background paints
|
|
17
17
|
// first and the negative-z halo paints after it, same as the check
|
|
18
18
|
// icon itself. Only the unchecked resting background was dropped
|
|
19
|
-
// (transparent instead of --
|
|
19
|
+
// (transparent instead of --selaras-resolved-surface-default), the same reason radio's item is
|
|
20
20
|
// hollow - an opaque fill there would block the halo from showing as
|
|
21
21
|
// a full disc instead of a ring cut off by the box's own edge.
|
|
22
|
-
box: "relative isolate flex shrink-0 items-center justify-center rounded-[var(--
|
|
23
|
-
indicator: "flex items-center justify-center",
|
|
22
|
+
box: "relative isolate flex shrink-0 items-center justify-center rounded-[var(--selaras-resolved-radius-sm)] ring-[1.5px] ring-inset ring-[var(--selaras-resolved-border-default)] transition-colors before:absolute before:-z-10 before:[transform:scale(0)] before:rounded-full before:bg-[var(--selaras-resolved-border-hover)] before:opacity-35 before:transition-transform before:duration-200 before:content-[''] hover:before:[transform:scale(1)] focus-visible:outline-none focus-visible:before:[transform:scale(1)] data-[state=checked]:bg-[var(--_selaras-color-fill)] data-[state=checked]:ring-[var(--_selaras-color-fill)] data-[state=checked]:before:bg-[var(--_selaras-color-fill-hover)] data-[state=indeterminate]:bg-[var(--_selaras-color-fill)] data-[state=indeterminate]:ring-[var(--_selaras-color-fill)] data-[state=indeterminate]:before:bg-[var(--_selaras-color-fill-hover)]",
|
|
23
|
+
indicator: "flex items-center justify-center text-[var(--_selaras-color-on-fill)]",
|
|
24
24
|
// A hand-drawn stroke path (not an Icon/icon-registry glyph, unlike
|
|
25
25
|
// every other icon in this library) animated via stroke-dasharray/
|
|
26
26
|
// stroke-dashoffset - the classic "self-drawing" checkmark technique,
|
|
27
27
|
// which needs a real path to control, not an arbitrary swappable
|
|
28
28
|
// Iconify icon. This is a deliberate, one-off exception to the
|
|
29
29
|
// icon-registry pattern documented in use-icons.ts: this glyph isn't
|
|
30
|
-
// overridable via app.config.icons, only restylable (stroke width/
|
|
30
|
+
// overridable via app.config.selaras.icons, only restylable (stroke width/
|
|
31
31
|
// color/duration) via these two :ui slots. dasharray/dashoffset are
|
|
32
32
|
// each set to the exact measured length of their own path
|
|
33
33
|
// (path.getTotalLength(), not a guess) so the "draw" finishes exactly
|
|
34
34
|
// at the stroke's own end with no visible overshoot or gap.
|
|
35
35
|
checkIcon: "[stroke-dasharray:20px] [stroke-dashoffset:20px] transition-[stroke-dashoffset] duration-200 data-[state=checked]:[stroke-dashoffset:0]",
|
|
36
36
|
indeterminateIcon: "[stroke-dasharray:14px] [stroke-dashoffset:14px] transition-[stroke-dashoffset] duration-200 data-[state=indeterminate]:[stroke-dashoffset:0]",
|
|
37
|
-
label: "select-none text-sm text-[var(--
|
|
38
|
-
description: "block select-none text-xs text-[var(--
|
|
37
|
+
label: "select-none text-sm text-[var(--selaras-resolved-text-default)]",
|
|
38
|
+
description: "block select-none text-xs text-[var(--selaras-resolved-text-muted)]",
|
|
39
39
|
// Only rendered when there's a description (wrapping the label and
|
|
40
40
|
// description together so they stack under one another) - same font-
|
|
41
41
|
// baseline correction as RadioGroup's own labelGroup slot (see its
|
|
@@ -51,34 +51,13 @@ export const checkboxTheme = tv({
|
|
|
51
51
|
// pairing Button's own `solid` variant already uses. Unchecked always
|
|
52
52
|
// stays the same neutral ring regardless of `color`.
|
|
53
53
|
color: {
|
|
54
|
-
primary:
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
},
|
|
62
|
-
secondary: {
|
|
63
|
-
box: "data-[state=checked]:bg-[var(--ui-secondary)] data-[state=checked]:ring-[var(--ui-secondary)] data-[state=checked]:before:bg-[var(--ui-secondary)] data-[state=indeterminate]:bg-[var(--ui-secondary)] data-[state=indeterminate]:ring-[var(--ui-secondary)] data-[state=indeterminate]:before:bg-[var(--ui-secondary)]",
|
|
64
|
-
indicator: "text-[var(--ui-secondary-foreground)]"
|
|
65
|
-
},
|
|
66
|
-
success: {
|
|
67
|
-
box: "data-[state=checked]:bg-[var(--ui-success)] data-[state=checked]:ring-[var(--ui-success)] data-[state=checked]:before:bg-[var(--ui-success)] data-[state=indeterminate]:bg-[var(--ui-success)] data-[state=indeterminate]:ring-[var(--ui-success)] data-[state=indeterminate]:before:bg-[var(--ui-success)]",
|
|
68
|
-
indicator: "text-[var(--ui-success-foreground)]"
|
|
69
|
-
},
|
|
70
|
-
danger: {
|
|
71
|
-
box: "data-[state=checked]:bg-[var(--ui-danger)] data-[state=checked]:ring-[var(--ui-danger)] data-[state=checked]:before:bg-[var(--ui-danger)] data-[state=indeterminate]:bg-[var(--ui-danger)] data-[state=indeterminate]:ring-[var(--ui-danger)] data-[state=indeterminate]:before:bg-[var(--ui-danger)]",
|
|
72
|
-
indicator: "text-[var(--ui-danger-foreground)]"
|
|
73
|
-
},
|
|
74
|
-
info: {
|
|
75
|
-
box: "data-[state=checked]:bg-[var(--ui-info)] data-[state=checked]:ring-[var(--ui-info)] data-[state=checked]:before:bg-[var(--ui-info)] data-[state=indeterminate]:bg-[var(--ui-info)] data-[state=indeterminate]:ring-[var(--ui-info)] data-[state=indeterminate]:before:bg-[var(--ui-info)]",
|
|
76
|
-
indicator: "text-[var(--ui-info-foreground)]"
|
|
77
|
-
},
|
|
78
|
-
warning: {
|
|
79
|
-
box: "data-[state=checked]:bg-[var(--ui-warning)] data-[state=checked]:ring-[var(--ui-warning)] data-[state=checked]:before:bg-[var(--ui-warning)] data-[state=indeterminate]:bg-[var(--ui-warning)] data-[state=indeterminate]:ring-[var(--ui-warning)] data-[state=indeterminate]:before:bg-[var(--ui-warning)]",
|
|
80
|
-
indicator: "text-[var(--ui-warning-foreground)]"
|
|
81
|
-
}
|
|
54
|
+
primary: "",
|
|
55
|
+
neutral: "",
|
|
56
|
+
secondary: "",
|
|
57
|
+
success: "",
|
|
58
|
+
danger: "",
|
|
59
|
+
info: "",
|
|
60
|
+
warning: ""
|
|
82
61
|
},
|
|
83
62
|
// Same +4px-per-step scale RadioGroup's own `size` variant uses.
|
|
84
63
|
size: {
|
|
@@ -93,7 +72,7 @@ export const checkboxTheme = tv({
|
|
|
93
72
|
variant: {
|
|
94
73
|
default: {},
|
|
95
74
|
card: {
|
|
96
|
-
root: "w-full items-start gap-3 rounded-[var(--
|
|
75
|
+
root: "w-full items-start gap-3 rounded-[var(--selaras-resolved-radius-md)] border border-[var(--selaras-resolved-border-default)] px-3.5 py-3 transition-colors has-[[data-state=checked]]:border-[var(--_selaras-color-fill)] has-[[data-state=checked]]:bg-[var(--_selaras-color-subtle)]",
|
|
97
76
|
box: "mt-0.5"
|
|
98
77
|
}
|
|
99
78
|
},
|
|
@@ -103,7 +82,7 @@ export const checkboxTheme = tv({
|
|
|
103
82
|
// requested, not whichever variant happens to compose later. See
|
|
104
83
|
// RadioGroup's own theme file, which already has this order right.
|
|
105
84
|
invalid: {
|
|
106
|
-
true: { box: "ring-[var(--
|
|
85
|
+
true: { box: "ring-[var(--_selaras-color-border)] data-[state=checked]:ring-[var(--_selaras-color-border)] data-[state=indeterminate]:ring-[var(--_selaras-color-border)]" }
|
|
107
86
|
}
|
|
108
87
|
},
|
|
109
88
|
defaultVariants: {
|
|
@@ -5,7 +5,7 @@ export const chipTheme = tv({
|
|
|
5
5
|
// specific chip into the fully-rounded pill look instead. Padding/
|
|
6
6
|
// height below is Badge's original scale, carried over here; Badge
|
|
7
7
|
// itself moved to a tighter one (see badge.ts).
|
|
8
|
-
root: "inline-flex items-center gap-1 rounded-[var(--
|
|
8
|
+
root: "inline-flex items-center gap-1 rounded-[var(--selaras-resolved-radius-sm)] font-medium whitespace-nowrap",
|
|
9
9
|
leadingIcon: "shrink-0",
|
|
10
10
|
label: "truncate",
|
|
11
11
|
// inline-flex items-center justify-center centers the icon in both
|
|
@@ -56,27 +56,9 @@ export const chipTheme = tv({
|
|
|
56
56
|
{ size: "sm", removable: true, class: { root: "pe-1" } },
|
|
57
57
|
{ size: "md", removable: true, class: { root: "pe-1.5" } },
|
|
58
58
|
{ size: "lg", removable: true, class: { root: "pe-2" } },
|
|
59
|
-
{
|
|
60
|
-
{
|
|
61
|
-
{
|
|
62
|
-
{ color: "neutral", variant: "solid", class: { root: "bg-[var(--ui-neutral)] text-[var(--ui-neutral-foreground)]" } },
|
|
63
|
-
{ color: "neutral", variant: "soft", class: { root: "bg-[var(--ui-neutral-soft)] text-[var(--ui-text)]" } },
|
|
64
|
-
{ color: "neutral", variant: "outline", class: { root: "ring-1 ring-inset ring-[var(--ui-border)] text-[var(--ui-text)]" } },
|
|
65
|
-
{ color: "secondary", variant: "solid", class: { root: "bg-[var(--ui-secondary)] text-[var(--ui-secondary-foreground)]" } },
|
|
66
|
-
{ color: "secondary", variant: "soft", class: { root: "bg-[var(--ui-secondary-soft)] text-[var(--ui-secondary)]" } },
|
|
67
|
-
{ color: "secondary", variant: "outline", class: { root: "ring-1 ring-inset ring-[var(--ui-secondary)] text-[var(--ui-secondary)]" } },
|
|
68
|
-
{ color: "success", variant: "solid", class: { root: "bg-[var(--ui-success)] text-[var(--ui-success-foreground)]" } },
|
|
69
|
-
{ color: "success", variant: "soft", class: { root: "bg-[var(--ui-success-soft)] text-[var(--ui-success)]" } },
|
|
70
|
-
{ color: "success", variant: "outline", class: { root: "ring-1 ring-inset ring-[var(--ui-success)] text-[var(--ui-success)]" } },
|
|
71
|
-
{ color: "danger", variant: "solid", class: { root: "bg-[var(--ui-danger)] text-[var(--ui-danger-foreground)]" } },
|
|
72
|
-
{ color: "danger", variant: "soft", class: { root: "bg-[var(--ui-danger-soft)] text-[var(--ui-danger)]" } },
|
|
73
|
-
{ color: "danger", variant: "outline", class: { root: "ring-1 ring-inset ring-[var(--ui-danger)] text-[var(--ui-danger)]" } },
|
|
74
|
-
{ color: "info", variant: "solid", class: { root: "bg-[var(--ui-info)] text-[var(--ui-info-foreground)]" } },
|
|
75
|
-
{ color: "info", variant: "soft", class: { root: "bg-[var(--ui-info-soft)] text-[var(--ui-info)]" } },
|
|
76
|
-
{ color: "info", variant: "outline", class: { root: "ring-1 ring-inset ring-[var(--ui-info)] text-[var(--ui-info)]" } },
|
|
77
|
-
{ color: "warning", variant: "solid", class: { root: "bg-[var(--ui-warning)] text-[var(--ui-warning-foreground)]" } },
|
|
78
|
-
{ color: "warning", variant: "soft", class: { root: "bg-[var(--ui-warning-soft)] text-[var(--ui-warning)]" } },
|
|
79
|
-
{ color: "warning", variant: "outline", class: { root: "ring-1 ring-inset ring-[var(--ui-warning)] text-[var(--ui-warning)]" } }
|
|
59
|
+
{ variant: "solid", class: { root: "bg-[var(--_selaras-color-fill)] text-[var(--_selaras-color-on-fill)]" } },
|
|
60
|
+
{ variant: "soft", class: { root: "bg-[var(--_selaras-color-subtle)] text-[var(--_selaras-color-text)]" } },
|
|
61
|
+
{ variant: "outline", class: { root: "ring-1 ring-inset ring-[var(--_selaras-color-border)] text-[var(--_selaras-color-text)]" } }
|
|
80
62
|
],
|
|
81
63
|
defaultVariants: {
|
|
82
64
|
color: "neutral",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { tv } from "tailwind-variants";
|
|
2
2
|
export const codeButtonTheme = tv({
|
|
3
3
|
slots: {
|
|
4
|
-
root: "inline-flex items-center gap-1.5 rounded-[var(--
|
|
5
|
-
icon: "size-3.5 shrink-0 text-[var(--
|
|
4
|
+
root: "inline-flex items-center gap-1.5 rounded-[var(--selaras-resolved-radius-sm)] bg-[var(--selaras-resolved-surface-elevated)] px-2 py-1 font-mono text-sm text-[var(--selaras-resolved-text-default)] transition-colors hover:bg-[var(--selaras-resolved-surface-elevated)]/70",
|
|
5
|
+
icon: "size-3.5 shrink-0 text-[var(--selaras-resolved-text-muted)]"
|
|
6
6
|
}
|
|
7
7
|
});
|
|
@@ -3,9 +3,9 @@ export declare const codeTreeTheme: import("tailwind-variants").TVReturnType<{
|
|
|
3
3
|
[key: string]: import("tailwind-variants").ClassValue | {
|
|
4
4
|
root?: import("tailwind-variants").ClassValue;
|
|
5
5
|
content?: import("tailwind-variants").ClassValue;
|
|
6
|
+
tree?: import("tailwind-variants").ClassValue;
|
|
6
7
|
pre?: import("tailwind-variants").ClassValue;
|
|
7
8
|
empty?: import("tailwind-variants").ClassValue;
|
|
8
|
-
tree?: import("tailwind-variants").ClassValue;
|
|
9
9
|
};
|
|
10
10
|
};
|
|
11
11
|
} | {
|
|
@@ -13,9 +13,9 @@ export declare const codeTreeTheme: import("tailwind-variants").TVReturnType<{
|
|
|
13
13
|
[x: string]: import("tailwind-variants").ClassValue | {
|
|
14
14
|
root?: import("tailwind-variants").ClassValue;
|
|
15
15
|
content?: import("tailwind-variants").ClassValue;
|
|
16
|
+
tree?: import("tailwind-variants").ClassValue;
|
|
16
17
|
pre?: import("tailwind-variants").ClassValue;
|
|
17
18
|
empty?: import("tailwind-variants").ClassValue;
|
|
18
|
-
tree?: import("tailwind-variants").ClassValue;
|
|
19
19
|
};
|
|
20
20
|
};
|
|
21
21
|
} | {}, {
|
|
@@ -29,9 +29,9 @@ export declare const codeTreeTheme: import("tailwind-variants").TVReturnType<{
|
|
|
29
29
|
[key: string]: import("tailwind-variants").ClassValue | {
|
|
30
30
|
root?: import("tailwind-variants").ClassValue;
|
|
31
31
|
content?: import("tailwind-variants").ClassValue;
|
|
32
|
+
tree?: import("tailwind-variants").ClassValue;
|
|
32
33
|
pre?: import("tailwind-variants").ClassValue;
|
|
33
34
|
empty?: import("tailwind-variants").ClassValue;
|
|
34
|
-
tree?: import("tailwind-variants").ClassValue;
|
|
35
35
|
};
|
|
36
36
|
};
|
|
37
37
|
} | {}, {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { tv } from "tailwind-variants";
|
|
2
2
|
export const codeTreeTheme = tv({
|
|
3
3
|
slots: {
|
|
4
|
-
root: "flex overflow-hidden rounded-[var(--
|
|
4
|
+
root: "flex overflow-hidden rounded-[var(--selaras-resolved-radius-md)] border border-[var(--selaras-resolved-border-default)] bg-[var(--selaras-resolved-surface-default)]",
|
|
5
5
|
// FileTree's own root box (border/bg/padding) is stripped via its :ui
|
|
6
6
|
// override below - this wrapper provides that framing instead, so the
|
|
7
7
|
// two panels read as one split view rather than a box inside a box.
|
|
8
|
-
tree: "w-56 shrink-0 overflow-auto border-e border-[var(--
|
|
8
|
+
tree: "w-56 shrink-0 overflow-auto border-e border-[var(--selaras-resolved-border-default)] p-2",
|
|
9
9
|
content: "min-w-0 flex-1 overflow-auto p-4",
|
|
10
|
-
pre: "whitespace-pre font-mono text-sm text-[var(--
|
|
11
|
-
empty: "flex flex-1 items-center justify-center p-4 text-center text-sm text-[var(--
|
|
10
|
+
pre: "whitespace-pre font-mono text-sm text-[var(--selaras-resolved-text-default)]",
|
|
11
|
+
empty: "flex flex-1 items-center justify-center p-4 text-center text-sm text-[var(--selaras-resolved-text-muted)]"
|
|
12
12
|
}
|
|
13
13
|
});
|
|
@@ -1,4 +1,13 @@
|
|
|
1
1
|
export declare const collapsibleTheme: import("tailwind-variants").TVReturnType<{
|
|
2
|
+
color: {
|
|
3
|
+
primary: "";
|
|
4
|
+
neutral: "";
|
|
5
|
+
secondary: "";
|
|
6
|
+
success: "";
|
|
7
|
+
danger: "";
|
|
8
|
+
info: "";
|
|
9
|
+
warning: "";
|
|
10
|
+
};
|
|
2
11
|
size: {
|
|
3
12
|
sm: {
|
|
4
13
|
trigger: string;
|
|
@@ -30,6 +39,15 @@ export declare const collapsibleTheme: import("tailwind-variants").TVReturnType<
|
|
|
30
39
|
content: string;
|
|
31
40
|
contentInner: string;
|
|
32
41
|
}, undefined, {
|
|
42
|
+
color: {
|
|
43
|
+
primary: "";
|
|
44
|
+
neutral: "";
|
|
45
|
+
secondary: "";
|
|
46
|
+
success: "";
|
|
47
|
+
danger: "";
|
|
48
|
+
info: "";
|
|
49
|
+
warning: "";
|
|
50
|
+
};
|
|
33
51
|
size: {
|
|
34
52
|
sm: {
|
|
35
53
|
trigger: string;
|
|
@@ -61,6 +79,15 @@ export declare const collapsibleTheme: import("tailwind-variants").TVReturnType<
|
|
|
61
79
|
content: string;
|
|
62
80
|
contentInner: string;
|
|
63
81
|
}, import("tailwind-variants").TVReturnTypeLike<{
|
|
82
|
+
color: {
|
|
83
|
+
primary: "";
|
|
84
|
+
neutral: "";
|
|
85
|
+
secondary: "";
|
|
86
|
+
success: "";
|
|
87
|
+
danger: "";
|
|
88
|
+
info: "";
|
|
89
|
+
warning: "";
|
|
90
|
+
};
|
|
64
91
|
size: {
|
|
65
92
|
sm: {
|
|
66
93
|
trigger: string;
|
|
@@ -2,13 +2,13 @@ import { tv } from "tailwind-variants";
|
|
|
2
2
|
export const collapsibleTheme = tv({
|
|
3
3
|
slots: {
|
|
4
4
|
root: "w-full",
|
|
5
|
-
trigger: "group flex w-full items-center justify-between gap-2 text-start font-medium text-[var(--
|
|
6
|
-
chevron: "size-4 shrink-0 text-[var(--
|
|
5
|
+
trigger: "group flex w-full items-center justify-between gap-2 text-start font-medium text-[var(--selaras-resolved-text-default)] transition-colors hover:text-[var(--_selaras-color-text-hover)] disabled:opacity-50 disabled:pointer-events-none",
|
|
6
|
+
chevron: "size-4 shrink-0 text-[var(--selaras-resolved-text-muted)] transition-transform group-data-[state=open]:rotate-180",
|
|
7
7
|
// overflow-hidden clips the panel to its own animated height (without
|
|
8
8
|
// it, content would visibly spill out mid-animation); the two
|
|
9
9
|
// data-state keyframes interpolate between 0 and Reka's own measured
|
|
10
10
|
// --reka-collapsible-content-height, so this never hardcodes a height.
|
|
11
|
-
content: "overflow-hidden text-[var(--
|
|
11
|
+
content: "overflow-hidden text-[var(--selaras-resolved-text-muted)] data-[state=open]:animate-[selaras-collapsible-down_200ms_ease-out] data-[state=closed]:animate-[selaras-collapsible-up_200ms_ease-out]",
|
|
12
12
|
// A separate slot (not `content` itself) for the padding - the padding
|
|
13
13
|
// must NOT be part of the height being animated (animating a 0-to-N
|
|
14
14
|
// height with vertical padding baked in either clips the last few
|
|
@@ -17,6 +17,15 @@ export const collapsibleTheme = tv({
|
|
|
17
17
|
contentInner: "pt-2"
|
|
18
18
|
},
|
|
19
19
|
variants: {
|
|
20
|
+
color: {
|
|
21
|
+
primary: "",
|
|
22
|
+
neutral: "",
|
|
23
|
+
secondary: "",
|
|
24
|
+
success: "",
|
|
25
|
+
danger: "",
|
|
26
|
+
info: "",
|
|
27
|
+
warning: ""
|
|
28
|
+
},
|
|
20
29
|
size: {
|
|
21
30
|
sm: { trigger: "text-sm", content: "text-sm" },
|
|
22
31
|
md: { trigger: "text-sm", content: "text-sm" },
|
|
@@ -11,27 +11,15 @@ export declare const colorPickerTheme: 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
|
}, {
|
|
37
25
|
trigger: string;
|
|
@@ -61,27 +49,15 @@ export declare const colorPickerTheme: import("tailwind-variants").TVReturnType<
|
|
|
61
49
|
};
|
|
62
50
|
};
|
|
63
51
|
color: {
|
|
64
|
-
primary:
|
|
65
|
-
trigger: string;
|
|
66
|
-
};
|
|
52
|
+
primary: "";
|
|
67
53
|
neutral: {
|
|
68
54
|
trigger: string;
|
|
69
55
|
};
|
|
70
|
-
secondary:
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
};
|
|
76
|
-
danger: {
|
|
77
|
-
trigger: string;
|
|
78
|
-
};
|
|
79
|
-
info: {
|
|
80
|
-
trigger: string;
|
|
81
|
-
};
|
|
82
|
-
warning: {
|
|
83
|
-
trigger: string;
|
|
84
|
-
};
|
|
56
|
+
secondary: "";
|
|
57
|
+
success: "";
|
|
58
|
+
danger: "";
|
|
59
|
+
info: "";
|
|
60
|
+
warning: "";
|
|
85
61
|
};
|
|
86
62
|
}, {
|
|
87
63
|
trigger: string;
|
|
@@ -111,27 +87,15 @@ export declare const colorPickerTheme: import("tailwind-variants").TVReturnType<
|
|
|
111
87
|
};
|
|
112
88
|
};
|
|
113
89
|
color: {
|
|
114
|
-
primary:
|
|
115
|
-
trigger: string;
|
|
116
|
-
};
|
|
90
|
+
primary: "";
|
|
117
91
|
neutral: {
|
|
118
92
|
trigger: string;
|
|
119
93
|
};
|
|
120
|
-
secondary:
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
};
|
|
126
|
-
danger: {
|
|
127
|
-
trigger: string;
|
|
128
|
-
};
|
|
129
|
-
info: {
|
|
130
|
-
trigger: string;
|
|
131
|
-
};
|
|
132
|
-
warning: {
|
|
133
|
-
trigger: string;
|
|
134
|
-
};
|
|
94
|
+
secondary: "";
|
|
95
|
+
success: "";
|
|
96
|
+
danger: "";
|
|
97
|
+
info: "";
|
|
98
|
+
warning: "";
|
|
135
99
|
};
|
|
136
100
|
}, {
|
|
137
101
|
trigger: string;
|
|
@@ -4,7 +4,7 @@ export const colorPickerTheme = tv({
|
|
|
4
4
|
// Same chrome as Select's own trigger (select.ts) - both are a form
|
|
5
5
|
// field that opens a popover, so they share the exact ring/hover/
|
|
6
6
|
// focus/disabled treatment rather than reinventing it here.
|
|
7
|
-
trigger: "inline-flex w-full min-h-10 items-center gap-2 rounded-[var(--
|
|
7
|
+
trigger: "inline-flex w-full min-h-10 items-center gap-2 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-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)] data-[state=open]:ring-2 data-[state=open]:ring-[var(--_selaras-color-focus)] disabled:opacity-50 disabled:pointer-events-none",
|
|
8
8
|
// Painted via ColorSwatch's own exposed --reka-color-swatch-color
|
|
9
9
|
// custom property - ColorSwatch.js applies no background of its own,
|
|
10
10
|
// only exposes that var, so every consumer of it (this trigger swatch
|
|
@@ -15,23 +15,23 @@ export const colorPickerTheme = tv({
|
|
|
15
15
|
// so an abbreviated, non-CSS placeholder in place of the real value
|
|
16
16
|
// gets a real attempt at CSS generation and chokes on it - confirmed:
|
|
17
17
|
// that's exactly what produced a real build warning once.
|
|
18
|
-
triggerSwatch: "size-5 shrink-0 rounded-[var(--
|
|
19
|
-
triggerValue: "flex-1 truncate text-start font-mono text-[var(--
|
|
20
|
-
content: "z-[var(--
|
|
21
|
-
// The `
|
|
18
|
+
triggerSwatch: "size-5 shrink-0 rounded-[var(--selaras-resolved-radius-sm)] bg-[var(--reka-color-swatch-color)] ring-1 ring-inset ring-black/10",
|
|
19
|
+
triggerValue: "flex-1 truncate text-start font-mono text-[var(--selaras-resolved-text-default)]",
|
|
20
|
+
content: "z-[var(--selaras-resolved-z-dropdown)] w-64 space-y-3 rounded-[var(--selaras-resolved-radius-md)] bg-[var(--selaras-resolved-surface-default)] p-3 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",
|
|
21
|
+
// The `adaptive` path's own content wrapper - none of `content`'s
|
|
22
22
|
// own popover chrome (width/background/shadow/ring/rounded/animate)
|
|
23
23
|
// applies here, since Modal's own card already provides that surface;
|
|
24
24
|
// this only needs this picker's own internal spacing/padding, same
|
|
25
25
|
// reasoning as Select's own mobileContent (select.ts).
|
|
26
26
|
mobileContent: "w-full space-y-3 p-4",
|
|
27
|
-
area: "relative h-40 w-full overflow-hidden rounded-[var(--
|
|
27
|
+
area: "relative h-40 w-full overflow-hidden rounded-[var(--selaras-resolved-radius-sm)] cursor-crosshair",
|
|
28
28
|
// Shared by the area thumb and both slider thumbs below - all three
|
|
29
29
|
// are the same plain white ring-bordered circle sitting on top of a
|
|
30
30
|
// color surface Reka itself paints (the area's own gradient, each
|
|
31
31
|
// slider track's own gradient) - a colored ring here would fight
|
|
32
32
|
// that surface instead of marking a position on it, the same reason
|
|
33
33
|
// Slider.vue's own thumb stays neutral against its colored range.
|
|
34
|
-
thumb: "block size-4 shrink-0 rounded-full border-2 border-white shadow-[var(--
|
|
34
|
+
thumb: "block size-4 shrink-0 rounded-full border-2 border-white shadow-[var(--selaras-resolved-shadow-sm)] ring-1 ring-[var(--selaras-resolved-border-default)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--_selaras-color-focus)]",
|
|
35
35
|
// ColorSliderRoot itself (bound onto directly, no dedicated slot of
|
|
36
36
|
// its own since nothing else needs to reach it) - Reka's own default
|
|
37
37
|
// `as` for it is a bare inline `span` (confirmed in Slider/SliderRoot.js,
|
|
@@ -45,9 +45,9 @@ export const colorPickerTheme = tv({
|
|
|
45
45
|
// (ColorSliderTrack.js), not this class. Same inline-`span`-by-default
|
|
46
46
|
// reasoning as sliderRoot above applies here too - `block` first.
|
|
47
47
|
track: "relative block h-3 w-full cursor-pointer rounded-full ring-1 ring-inset ring-black/10",
|
|
48
|
-
field: "w-full rounded-[var(--
|
|
48
|
+
field: "w-full rounded-[var(--selaras-resolved-radius-sm)] bg-[var(--selaras-resolved-surface-default)] px-2 py-1.5 text-sm font-mono text-[var(--selaras-resolved-text-default)] ring-1 ring-inset ring-[var(--selaras-resolved-border-default)] outline-none transition-[color,background-color,box-shadow] not-focus:hover:ring-[var(--selaras-resolved-border-hover)] focus:ring-2 focus:ring-[var(--_selaras-color-focus)]",
|
|
49
49
|
swatchList: "flex flex-wrap gap-1.5",
|
|
50
|
-
swatch: "relative size-6 shrink-0 rounded-[var(--
|
|
50
|
+
swatch: "relative size-6 shrink-0 rounded-[var(--selaras-resolved-radius-sm)] ring-1 ring-inset ring-black/10 cursor-pointer data-[highlighted]:ring-2 data-[highlighted]:ring-[var(--selaras-resolved-border-hover)] data-[state=checked]:ring-2 data-[state=checked]:ring-[var(--_selaras-color-fill)] data-[disabled]:opacity-50 data-[disabled]:pointer-events-none",
|
|
51
51
|
// The preset item's own color fill - same --reka-color-swatch-color
|
|
52
52
|
// var as triggerSwatch, sized to fill its parent `swatch` item
|
|
53
53
|
// (rounded-[inherit] so it doesn't poke past that item's own corners).
|
|
@@ -64,16 +64,17 @@ export const colorPickerTheme = tv({
|
|
|
64
64
|
md: { trigger: "min-h-10" },
|
|
65
65
|
lg: { trigger: "min-h-11 text-base" }
|
|
66
66
|
},
|
|
67
|
-
//
|
|
68
|
-
//
|
|
67
|
+
// Registered custom roles have no finite Tailwind Variants branch. The
|
|
68
|
+
// base trigger therefore owns semantic focus styling; neutral overrides
|
|
69
|
+
// it, while empty built-in branches retain the public recipe condition.
|
|
69
70
|
color: {
|
|
70
|
-
primary:
|
|
71
|
-
neutral: { trigger: "focus:ring-[var(--
|
|
72
|
-
secondary:
|
|
73
|
-
success:
|
|
74
|
-
danger:
|
|
75
|
-
info:
|
|
76
|
-
warning:
|
|
71
|
+
primary: "",
|
|
72
|
+
neutral: { trigger: "focus:ring-[var(--selaras-resolved-surface-inverted)] data-[state=open]:ring-[var(--selaras-resolved-surface-inverted)]" },
|
|
73
|
+
secondary: "",
|
|
74
|
+
success: "",
|
|
75
|
+
danger: "",
|
|
76
|
+
info: "",
|
|
77
|
+
warning: ""
|
|
77
78
|
}
|
|
78
79
|
},
|
|
79
80
|
defaultVariants: {
|
|
@@ -7,10 +7,10 @@ export declare const commandPaletteTheme: import("tailwind-variants").TVReturnTy
|
|
|
7
7
|
list?: import("tailwind-variants").ClassValue;
|
|
8
8
|
overlay?: import("tailwind-variants").ClassValue;
|
|
9
9
|
footer?: import("tailwind-variants").ClassValue;
|
|
10
|
-
input?: import("tailwind-variants").ClassValue;
|
|
11
|
-
group?: import("tailwind-variants").ClassValue;
|
|
12
10
|
empty?: import("tailwind-variants").ClassValue;
|
|
13
11
|
searchIcon?: import("tailwind-variants").ClassValue;
|
|
12
|
+
input?: import("tailwind-variants").ClassValue;
|
|
13
|
+
group?: import("tailwind-variants").ClassValue;
|
|
14
14
|
groupLabel?: import("tailwind-variants").ClassValue;
|
|
15
15
|
itemIcon?: import("tailwind-variants").ClassValue;
|
|
16
16
|
itemLabel?: import("tailwind-variants").ClassValue;
|
|
@@ -27,10 +27,10 @@ export declare const commandPaletteTheme: import("tailwind-variants").TVReturnTy
|
|
|
27
27
|
list?: import("tailwind-variants").ClassValue;
|
|
28
28
|
overlay?: import("tailwind-variants").ClassValue;
|
|
29
29
|
footer?: import("tailwind-variants").ClassValue;
|
|
30
|
-
input?: import("tailwind-variants").ClassValue;
|
|
31
|
-
group?: import("tailwind-variants").ClassValue;
|
|
32
30
|
empty?: import("tailwind-variants").ClassValue;
|
|
33
31
|
searchIcon?: import("tailwind-variants").ClassValue;
|
|
32
|
+
input?: import("tailwind-variants").ClassValue;
|
|
33
|
+
group?: import("tailwind-variants").ClassValue;
|
|
34
34
|
groupLabel?: import("tailwind-variants").ClassValue;
|
|
35
35
|
itemIcon?: import("tailwind-variants").ClassValue;
|
|
36
36
|
itemLabel?: import("tailwind-variants").ClassValue;
|
|
@@ -63,10 +63,10 @@ export declare const commandPaletteTheme: import("tailwind-variants").TVReturnTy
|
|
|
63
63
|
list?: import("tailwind-variants").ClassValue;
|
|
64
64
|
overlay?: import("tailwind-variants").ClassValue;
|
|
65
65
|
footer?: import("tailwind-variants").ClassValue;
|
|
66
|
-
input?: import("tailwind-variants").ClassValue;
|
|
67
|
-
group?: import("tailwind-variants").ClassValue;
|
|
68
66
|
empty?: import("tailwind-variants").ClassValue;
|
|
69
67
|
searchIcon?: import("tailwind-variants").ClassValue;
|
|
68
|
+
input?: import("tailwind-variants").ClassValue;
|
|
69
|
+
group?: import("tailwind-variants").ClassValue;
|
|
70
70
|
groupLabel?: import("tailwind-variants").ClassValue;
|
|
71
71
|
itemIcon?: import("tailwind-variants").ClassValue;
|
|
72
72
|
itemLabel?: import("tailwind-variants").ClassValue;
|