@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,38 +1,14 @@
|
|
|
1
1
|
export declare const proseTheme: import("tailwind-variants").TVReturnType<{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
pre?: import("tailwind-variants").ClassValue;
|
|
11
|
-
headingAnchor?: import("tailwind-variants").ClassValue;
|
|
12
|
-
preWrapper?: import("tailwind-variants").ClassValue;
|
|
13
|
-
preHeader?: import("tailwind-variants").ClassValue;
|
|
14
|
-
preFilename?: import("tailwind-variants").ClassValue;
|
|
15
|
-
preCopyButton?: import("tailwind-variants").ClassValue;
|
|
16
|
-
};
|
|
2
|
+
color: {
|
|
3
|
+
primary: "";
|
|
4
|
+
neutral: "";
|
|
5
|
+
secondary: "";
|
|
6
|
+
success: "";
|
|
7
|
+
danger: "";
|
|
8
|
+
info: "";
|
|
9
|
+
warning: "";
|
|
17
10
|
};
|
|
18
|
-
}
|
|
19
|
-
[x: string]: {
|
|
20
|
-
[x: string]: import("tailwind-variants").ClassValue | {
|
|
21
|
-
h1?: import("tailwind-variants").ClassValue;
|
|
22
|
-
h2?: import("tailwind-variants").ClassValue;
|
|
23
|
-
h3?: import("tailwind-variants").ClassValue;
|
|
24
|
-
h4?: import("tailwind-variants").ClassValue;
|
|
25
|
-
h5?: import("tailwind-variants").ClassValue;
|
|
26
|
-
h6?: import("tailwind-variants").ClassValue;
|
|
27
|
-
pre?: import("tailwind-variants").ClassValue;
|
|
28
|
-
headingAnchor?: import("tailwind-variants").ClassValue;
|
|
29
|
-
preWrapper?: import("tailwind-variants").ClassValue;
|
|
30
|
-
preHeader?: import("tailwind-variants").ClassValue;
|
|
31
|
-
preFilename?: import("tailwind-variants").ClassValue;
|
|
32
|
-
preCopyButton?: import("tailwind-variants").ClassValue;
|
|
33
|
-
};
|
|
34
|
-
};
|
|
35
|
-
} | {}, {
|
|
11
|
+
}, {
|
|
36
12
|
h1: string;
|
|
37
13
|
h2: string;
|
|
38
14
|
h3: string;
|
|
@@ -42,27 +18,22 @@ export declare const proseTheme: import("tailwind-variants").TVReturnType<{
|
|
|
42
18
|
headingAnchor: string;
|
|
43
19
|
preWrapper: string;
|
|
44
20
|
preHeader: string;
|
|
21
|
+
preLabel: string;
|
|
22
|
+
preIcon: string;
|
|
45
23
|
preFilename: string;
|
|
46
24
|
preCopyButton: string;
|
|
47
25
|
pre: string;
|
|
48
26
|
}, undefined, {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
pre?: import("tailwind-variants").ClassValue;
|
|
58
|
-
headingAnchor?: import("tailwind-variants").ClassValue;
|
|
59
|
-
preWrapper?: import("tailwind-variants").ClassValue;
|
|
60
|
-
preHeader?: import("tailwind-variants").ClassValue;
|
|
61
|
-
preFilename?: import("tailwind-variants").ClassValue;
|
|
62
|
-
preCopyButton?: import("tailwind-variants").ClassValue;
|
|
63
|
-
};
|
|
27
|
+
color: {
|
|
28
|
+
primary: "";
|
|
29
|
+
neutral: "";
|
|
30
|
+
secondary: "";
|
|
31
|
+
success: "";
|
|
32
|
+
danger: "";
|
|
33
|
+
info: "";
|
|
34
|
+
warning: "";
|
|
64
35
|
};
|
|
65
|
-
}
|
|
36
|
+
}, {
|
|
66
37
|
h1: string;
|
|
67
38
|
h2: string;
|
|
68
39
|
h3: string;
|
|
@@ -72,10 +43,22 @@ export declare const proseTheme: import("tailwind-variants").TVReturnType<{
|
|
|
72
43
|
headingAnchor: string;
|
|
73
44
|
preWrapper: string;
|
|
74
45
|
preHeader: string;
|
|
46
|
+
preLabel: string;
|
|
47
|
+
preIcon: string;
|
|
75
48
|
preFilename: string;
|
|
76
49
|
preCopyButton: string;
|
|
77
50
|
pre: string;
|
|
78
|
-
}, import("tailwind-variants").TVReturnTypeLike<
|
|
51
|
+
}, import("tailwind-variants").TVReturnTypeLike<{
|
|
52
|
+
color: {
|
|
53
|
+
primary: "";
|
|
54
|
+
neutral: "";
|
|
55
|
+
secondary: "";
|
|
56
|
+
success: "";
|
|
57
|
+
danger: "";
|
|
58
|
+
info: "";
|
|
59
|
+
warning: "";
|
|
60
|
+
};
|
|
61
|
+
}, {
|
|
79
62
|
h1: string;
|
|
80
63
|
h2: string;
|
|
81
64
|
h3: string;
|
|
@@ -85,6 +68,8 @@ export declare const proseTheme: import("tailwind-variants").TVReturnType<{
|
|
|
85
68
|
headingAnchor: string;
|
|
86
69
|
preWrapper: string;
|
|
87
70
|
preHeader: string;
|
|
71
|
+
preLabel: string;
|
|
72
|
+
preIcon: string;
|
|
88
73
|
preFilename: string;
|
|
89
74
|
preCopyButton: string;
|
|
90
75
|
pre: string;
|
|
@@ -1,17 +1,30 @@
|
|
|
1
1
|
import { tv } from "tailwind-variants";
|
|
2
2
|
export const proseTheme = tv({
|
|
3
3
|
slots: {
|
|
4
|
-
h1: "text-3xl font-semibold tracking-tight text-[var(--
|
|
5
|
-
h2: "text-2xl font-semibold tracking-tight text-[var(--
|
|
6
|
-
h3: "text-xl font-semibold tracking-tight text-[var(--
|
|
7
|
-
h4: "text-lg font-semibold text-[var(--
|
|
8
|
-
h5: "text-base font-semibold text-[var(--
|
|
9
|
-
h6: "text-sm font-semibold text-[var(--
|
|
10
|
-
headingAnchor: "no-underline hover:underline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[var(--
|
|
11
|
-
preWrapper: "overflow-hidden rounded-[var(--
|
|
12
|
-
preHeader: "flex items-center justify-between gap-2 border-b border-[var(--
|
|
13
|
-
|
|
4
|
+
h1: "text-3xl font-semibold tracking-tight text-[var(--selaras-resolved-text-default)] scroll-mt-20",
|
|
5
|
+
h2: "text-2xl font-semibold tracking-tight text-[var(--selaras-resolved-text-default)] scroll-mt-20",
|
|
6
|
+
h3: "text-xl font-semibold tracking-tight text-[var(--selaras-resolved-text-default)] scroll-mt-20",
|
|
7
|
+
h4: "text-lg font-semibold text-[var(--selaras-resolved-text-default)] scroll-mt-20",
|
|
8
|
+
h5: "text-base font-semibold text-[var(--selaras-resolved-text-default)] scroll-mt-20",
|
|
9
|
+
h6: "text-sm font-semibold text-[var(--selaras-resolved-text-default)] scroll-mt-20",
|
|
10
|
+
headingAnchor: "no-underline hover:underline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[var(--_selaras-color-focus)]",
|
|
11
|
+
preWrapper: "overflow-hidden rounded-[var(--selaras-resolved-radius-md)] ring-1 ring-[var(--selaras-resolved-border-default)]",
|
|
12
|
+
preHeader: "flex items-center justify-between gap-2 border-b border-[var(--selaras-resolved-border-default)] bg-[var(--selaras-resolved-surface-elevated)] px-3 py-1.5",
|
|
13
|
+
preLabel: "flex min-w-0 items-center gap-2",
|
|
14
|
+
preIcon: "size-4",
|
|
15
|
+
preFilename: "font-mono text-xs text-[var(--selaras-resolved-text-muted)]",
|
|
14
16
|
preCopyButton: "shrink-0",
|
|
15
|
-
pre: "overflow-x-auto bg-[var(--
|
|
17
|
+
pre: "overflow-x-auto bg-[var(--selaras-resolved-surface-elevated)] p-4 font-mono text-sm leading-relaxed"
|
|
18
|
+
},
|
|
19
|
+
variants: {
|
|
20
|
+
color: {
|
|
21
|
+
primary: "",
|
|
22
|
+
neutral: "",
|
|
23
|
+
secondary: "",
|
|
24
|
+
success: "",
|
|
25
|
+
danger: "",
|
|
26
|
+
info: "",
|
|
27
|
+
warning: ""
|
|
28
|
+
}
|
|
16
29
|
}
|
|
17
30
|
});
|
|
@@ -35,34 +35,13 @@ export declare const radioGroupTheme: import("tailwind-variants").TVReturnType<{
|
|
|
35
35
|
};
|
|
36
36
|
};
|
|
37
37
|
color: {
|
|
38
|
-
primary:
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
};
|
|
46
|
-
secondary: {
|
|
47
|
-
item: string;
|
|
48
|
-
indicator: string;
|
|
49
|
-
};
|
|
50
|
-
success: {
|
|
51
|
-
item: string;
|
|
52
|
-
indicator: string;
|
|
53
|
-
};
|
|
54
|
-
danger: {
|
|
55
|
-
item: string;
|
|
56
|
-
indicator: string;
|
|
57
|
-
};
|
|
58
|
-
info: {
|
|
59
|
-
item: string;
|
|
60
|
-
indicator: string;
|
|
61
|
-
};
|
|
62
|
-
warning: {
|
|
63
|
-
item: string;
|
|
64
|
-
indicator: string;
|
|
65
|
-
};
|
|
38
|
+
primary: "";
|
|
39
|
+
neutral: "";
|
|
40
|
+
secondary: "";
|
|
41
|
+
success: "";
|
|
42
|
+
danger: "";
|
|
43
|
+
info: "";
|
|
44
|
+
warning: "";
|
|
66
45
|
};
|
|
67
46
|
invalid: {
|
|
68
47
|
true: {
|
|
@@ -114,34 +93,13 @@ export declare const radioGroupTheme: import("tailwind-variants").TVReturnType<{
|
|
|
114
93
|
};
|
|
115
94
|
};
|
|
116
95
|
color: {
|
|
117
|
-
primary:
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
};
|
|
125
|
-
secondary: {
|
|
126
|
-
item: string;
|
|
127
|
-
indicator: string;
|
|
128
|
-
};
|
|
129
|
-
success: {
|
|
130
|
-
item: string;
|
|
131
|
-
indicator: string;
|
|
132
|
-
};
|
|
133
|
-
danger: {
|
|
134
|
-
item: string;
|
|
135
|
-
indicator: string;
|
|
136
|
-
};
|
|
137
|
-
info: {
|
|
138
|
-
item: string;
|
|
139
|
-
indicator: string;
|
|
140
|
-
};
|
|
141
|
-
warning: {
|
|
142
|
-
item: string;
|
|
143
|
-
indicator: string;
|
|
144
|
-
};
|
|
96
|
+
primary: "";
|
|
97
|
+
neutral: "";
|
|
98
|
+
secondary: "";
|
|
99
|
+
success: "";
|
|
100
|
+
danger: "";
|
|
101
|
+
info: "";
|
|
102
|
+
warning: "";
|
|
145
103
|
};
|
|
146
104
|
invalid: {
|
|
147
105
|
true: {
|
|
@@ -193,34 +151,13 @@ export declare const radioGroupTheme: import("tailwind-variants").TVReturnType<{
|
|
|
193
151
|
};
|
|
194
152
|
};
|
|
195
153
|
color: {
|
|
196
|
-
primary:
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
};
|
|
204
|
-
secondary: {
|
|
205
|
-
item: string;
|
|
206
|
-
indicator: string;
|
|
207
|
-
};
|
|
208
|
-
success: {
|
|
209
|
-
item: string;
|
|
210
|
-
indicator: string;
|
|
211
|
-
};
|
|
212
|
-
danger: {
|
|
213
|
-
item: string;
|
|
214
|
-
indicator: string;
|
|
215
|
-
};
|
|
216
|
-
info: {
|
|
217
|
-
item: string;
|
|
218
|
-
indicator: string;
|
|
219
|
-
};
|
|
220
|
-
warning: {
|
|
221
|
-
item: string;
|
|
222
|
-
indicator: string;
|
|
223
|
-
};
|
|
154
|
+
primary: "";
|
|
155
|
+
neutral: "";
|
|
156
|
+
secondary: "";
|
|
157
|
+
success: "";
|
|
158
|
+
danger: "";
|
|
159
|
+
info: "";
|
|
160
|
+
warning: "";
|
|
224
161
|
};
|
|
225
162
|
invalid: {
|
|
226
163
|
true: {
|
|
@@ -17,8 +17,8 @@ export const radioGroupTheme = tv({
|
|
|
17
17
|
// color by the checked-state variant below - an explicit var per
|
|
18
18
|
// state rather than currentColor, since this slot's own text color
|
|
19
19
|
// isn't otherwise tied to checked/unchecked here. Uses
|
|
20
|
-
// --
|
|
21
|
-
// text color would give, while still clearing the plain --
|
|
20
|
+
// --selaras-resolved-border-hover for the gray fill - lighter than a plain mid-gray
|
|
21
|
+
// text color would give, while still clearing the plain --selaras-resolved-border-default
|
|
22
22
|
// token, which reads as basically invisible at any reasonable opacity
|
|
23
23
|
// since it's already very close to the page background. scale(0)/
|
|
24
24
|
// scale(1) use Tailwind's arbitrary-value [transform:] syntax, not the
|
|
@@ -47,7 +47,7 @@ export const radioGroupTheme = tv({
|
|
|
47
47
|
// rendered visibly jagged at normal (non-zoomed) browser scale; the
|
|
48
48
|
// fractional width needs the arbitrary-value form since Tailwind's
|
|
49
49
|
// named ring scale only has integer steps.
|
|
50
|
-
item: "relative isolate flex shrink-0 items-center justify-center rounded-full ring-[1.5px] ring-inset ring-[var(--
|
|
50
|
+
item: "relative isolate flex shrink-0 items-center justify-center rounded-full 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]:ring-[var(--_selaras-color-indicator)] data-[state=checked]:before:bg-[var(--_selaras-color-fill-hover)]",
|
|
51
51
|
// force-mount (see RadioGroup.vue) keeps this in the DOM for every
|
|
52
52
|
// item regardless of checked state, so switching the selection scales
|
|
53
53
|
// the old dot out and the new one in instead of an abrupt pop -
|
|
@@ -56,9 +56,9 @@ export const radioGroupTheme = tv({
|
|
|
56
56
|
// detects them via computed animation-name), not plain CSS
|
|
57
57
|
// transitions, so a transition-only version without force-mount would
|
|
58
58
|
// just vanish instantly.
|
|
59
|
-
indicator: "rounded-full [transform:scale(0)] transition-transform duration-200 data-[state=checked]:[transform:scale(1)]",
|
|
60
|
-
label: "select-none text-[var(--
|
|
61
|
-
description: "block select-none text-[var(--
|
|
59
|
+
indicator: "rounded-full bg-[var(--_selaras-color-indicator)] [transform:scale(0)] transition-transform duration-200 data-[state=checked]:[transform:scale(1)]",
|
|
60
|
+
label: "select-none text-[var(--selaras-resolved-text-default)]",
|
|
61
|
+
description: "block select-none text-[var(--selaras-resolved-text-muted)]",
|
|
62
62
|
// Only rendered when an item has a description (wrapping the label and
|
|
63
63
|
// description together so they stack under one another). The label
|
|
64
64
|
// text visually sits a bit lower than its own line box's true center -
|
|
@@ -89,7 +89,7 @@ export const radioGroupTheme = tv({
|
|
|
89
89
|
variant: {
|
|
90
90
|
default: {},
|
|
91
91
|
card: {
|
|
92
|
-
itemWrapper: "w-full items-start gap-3 rounded-[var(--
|
|
92
|
+
itemWrapper: "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",
|
|
93
93
|
item: "mt-0.5"
|
|
94
94
|
}
|
|
95
95
|
},
|
|
@@ -97,13 +97,13 @@ export const radioGroupTheme = tv({
|
|
|
97
97
|
// neutral ring regardless of `color`, matching Checkbox's/Switch's own
|
|
98
98
|
// `color` variant exactly (same reasoning, same token pattern).
|
|
99
99
|
color: {
|
|
100
|
-
primary:
|
|
101
|
-
neutral:
|
|
102
|
-
secondary:
|
|
103
|
-
success:
|
|
104
|
-
danger:
|
|
105
|
-
info:
|
|
106
|
-
warning:
|
|
100
|
+
primary: "",
|
|
101
|
+
neutral: "",
|
|
102
|
+
secondary: "",
|
|
103
|
+
success: "",
|
|
104
|
+
danger: "",
|
|
105
|
+
info: "",
|
|
106
|
+
warning: ""
|
|
107
107
|
},
|
|
108
108
|
// Recolors the existing ring rather than adding a second outline
|
|
109
109
|
// outside it (an earlier version did that, which read as a double
|
|
@@ -112,18 +112,12 @@ export const radioGroupTheme = tv({
|
|
|
112
112
|
// otherwise win the ring color back whenever an already-invalid group
|
|
113
113
|
// has something selected.
|
|
114
114
|
invalid: {
|
|
115
|
-
true: { item: "ring-[var(--
|
|
115
|
+
true: { item: "ring-[var(--_selaras-color-border)] data-[state=checked]:ring-[var(--_selaras-color-indicator)]" }
|
|
116
116
|
}
|
|
117
117
|
},
|
|
118
118
|
compoundVariants: [
|
|
119
119
|
// The card variant's own checked-state highlight, following `color`.
|
|
120
|
-
{ variant: "card",
|
|
121
|
-
{ variant: "card", color: "neutral", class: { itemWrapper: "has-[[data-state=checked]]:border-[var(--ui-neutral)] has-[[data-state=checked]]:bg-[var(--ui-neutral-soft)]" } },
|
|
122
|
-
{ variant: "card", color: "secondary", class: { itemWrapper: "has-[[data-state=checked]]:border-[var(--ui-secondary)] has-[[data-state=checked]]:bg-[var(--ui-secondary-soft)]" } },
|
|
123
|
-
{ variant: "card", color: "success", class: { itemWrapper: "has-[[data-state=checked]]:border-[var(--ui-success)] has-[[data-state=checked]]:bg-[var(--ui-success-soft)]" } },
|
|
124
|
-
{ variant: "card", color: "danger", class: { itemWrapper: "has-[[data-state=checked]]:border-[var(--ui-danger)] has-[[data-state=checked]]:bg-[var(--ui-danger-soft)]" } },
|
|
125
|
-
{ variant: "card", color: "info", class: { itemWrapper: "has-[[data-state=checked]]:border-[var(--ui-info)] has-[[data-state=checked]]:bg-[var(--ui-info-soft)]" } },
|
|
126
|
-
{ variant: "card", color: "warning", class: { itemWrapper: "has-[[data-state=checked]]:border-[var(--ui-warning)] has-[[data-state=checked]]:bg-[var(--ui-warning-soft)]" } }
|
|
120
|
+
{ variant: "card", class: { itemWrapper: "has-[[data-state=checked]]:border-[var(--_selaras-color-border)] has-[[data-state=checked]]:bg-[var(--_selaras-color-subtle)]" } }
|
|
127
121
|
],
|
|
128
122
|
defaultVariants: {
|
|
129
123
|
size: "md",
|
|
@@ -25,27 +25,13 @@ export declare const ratingTheme: import("tailwind-variants").TVReturnType<{
|
|
|
25
25
|
};
|
|
26
26
|
};
|
|
27
27
|
color: {
|
|
28
|
-
primary: {
|
|
29
|
-
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
fillIcon: string;
|
|
36
|
-
};
|
|
37
|
-
success: {
|
|
38
|
-
fillIcon: string;
|
|
39
|
-
};
|
|
40
|
-
danger: {
|
|
41
|
-
fillIcon: string;
|
|
42
|
-
};
|
|
43
|
-
info: {
|
|
44
|
-
fillIcon: string;
|
|
45
|
-
};
|
|
46
|
-
warning: {
|
|
47
|
-
fillIcon: string;
|
|
48
|
-
};
|
|
28
|
+
primary: {};
|
|
29
|
+
neutral: {};
|
|
30
|
+
secondary: {};
|
|
31
|
+
success: {};
|
|
32
|
+
danger: {};
|
|
33
|
+
info: {};
|
|
34
|
+
warning: {};
|
|
49
35
|
};
|
|
50
36
|
}, {
|
|
51
37
|
root: string;
|
|
@@ -80,27 +66,13 @@ export declare const ratingTheme: import("tailwind-variants").TVReturnType<{
|
|
|
80
66
|
};
|
|
81
67
|
};
|
|
82
68
|
color: {
|
|
83
|
-
primary: {
|
|
84
|
-
|
|
85
|
-
};
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
};
|
|
89
|
-
|
|
90
|
-
fillIcon: string;
|
|
91
|
-
};
|
|
92
|
-
success: {
|
|
93
|
-
fillIcon: string;
|
|
94
|
-
};
|
|
95
|
-
danger: {
|
|
96
|
-
fillIcon: string;
|
|
97
|
-
};
|
|
98
|
-
info: {
|
|
99
|
-
fillIcon: string;
|
|
100
|
-
};
|
|
101
|
-
warning: {
|
|
102
|
-
fillIcon: string;
|
|
103
|
-
};
|
|
69
|
+
primary: {};
|
|
70
|
+
neutral: {};
|
|
71
|
+
secondary: {};
|
|
72
|
+
success: {};
|
|
73
|
+
danger: {};
|
|
74
|
+
info: {};
|
|
75
|
+
warning: {};
|
|
104
76
|
};
|
|
105
77
|
}, {
|
|
106
78
|
root: string;
|
|
@@ -135,27 +107,13 @@ export declare const ratingTheme: import("tailwind-variants").TVReturnType<{
|
|
|
135
107
|
};
|
|
136
108
|
};
|
|
137
109
|
color: {
|
|
138
|
-
primary: {
|
|
139
|
-
|
|
140
|
-
};
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
};
|
|
144
|
-
|
|
145
|
-
fillIcon: string;
|
|
146
|
-
};
|
|
147
|
-
success: {
|
|
148
|
-
fillIcon: string;
|
|
149
|
-
};
|
|
150
|
-
danger: {
|
|
151
|
-
fillIcon: string;
|
|
152
|
-
};
|
|
153
|
-
info: {
|
|
154
|
-
fillIcon: string;
|
|
155
|
-
};
|
|
156
|
-
warning: {
|
|
157
|
-
fillIcon: string;
|
|
158
|
-
};
|
|
110
|
+
primary: {};
|
|
111
|
+
neutral: {};
|
|
112
|
+
secondary: {};
|
|
113
|
+
success: {};
|
|
114
|
+
danger: {};
|
|
115
|
+
info: {};
|
|
116
|
+
warning: {};
|
|
159
117
|
};
|
|
160
118
|
}, {
|
|
161
119
|
root: string;
|
|
@@ -11,10 +11,10 @@ export const ratingTheme = tv({
|
|
|
11
11
|
// narrower-than-the-whole-star) indicator button is current, but the
|
|
12
12
|
// ring should still outline the *whole* star, not just that step's
|
|
13
13
|
// own cropped hit region.
|
|
14
|
-
item: "relative shrink-0 rounded-[var(--
|
|
14
|
+
item: "relative shrink-0 rounded-[var(--selaras-resolved-radius-sm)] transition-shadow has-[:focus-visible]:outline-2 has-[:focus-visible]:outline-offset-2 has-[:focus-visible]:outline-[var(--_selaras-color-focus)]",
|
|
15
15
|
// The empty/outline star, always visible, sitting behind every step
|
|
16
16
|
// indicator - what a not-yet-filled star reads as.
|
|
17
|
-
icon: "absolute inset-0 text-[var(--
|
|
17
|
+
icon: "absolute inset-0 text-[var(--selaras-resolved-border-default)]",
|
|
18
18
|
// One per fractional sub-step (Rating.vue renders one
|
|
19
19
|
// RatingItemIndicator per entry in RatingItem's own `steps`, a single
|
|
20
20
|
// entry `[N]` when `step` is the default 1, several overlapping ones
|
|
@@ -47,7 +47,7 @@ export const ratingTheme = tv({
|
|
|
47
47
|
// backdrop through it, reading as "not filled" with no shape swap
|
|
48
48
|
// needed - recolored once its own indicator's data-state flips to
|
|
49
49
|
// active.
|
|
50
|
-
fillIcon: "text-transparent transition-colors group-data-[state=active]/step:text-[var(--
|
|
50
|
+
fillIcon: "text-transparent transition-colors group-data-[state=active]/step:text-[var(--_selaras-color-indicator)]"
|
|
51
51
|
},
|
|
52
52
|
variants: {
|
|
53
53
|
orientation: {
|
|
@@ -60,13 +60,13 @@ export const ratingTheme = tv({
|
|
|
60
60
|
lg: { item: "size-6", icon: "size-6", fillIcon: "size-6" }
|
|
61
61
|
},
|
|
62
62
|
color: {
|
|
63
|
-
primary: {
|
|
64
|
-
neutral: {
|
|
65
|
-
secondary: {
|
|
66
|
-
success: {
|
|
67
|
-
danger: {
|
|
68
|
-
info: {
|
|
69
|
-
warning: {
|
|
63
|
+
primary: {},
|
|
64
|
+
neutral: {},
|
|
65
|
+
secondary: {},
|
|
66
|
+
success: {},
|
|
67
|
+
danger: {},
|
|
68
|
+
info: {},
|
|
69
|
+
warning: {}
|
|
70
70
|
}
|
|
71
71
|
},
|
|
72
72
|
defaultVariants: {
|
|
@@ -1,4 +1,13 @@
|
|
|
1
1
|
export declare const readMoreTheme: import("tailwind-variants").TVReturnType<{
|
|
2
|
+
color: {
|
|
3
|
+
primary: "";
|
|
4
|
+
neutral: "";
|
|
5
|
+
secondary: "";
|
|
6
|
+
success: "";
|
|
7
|
+
danger: "";
|
|
8
|
+
info: "";
|
|
9
|
+
warning: "";
|
|
10
|
+
};
|
|
2
11
|
open: {
|
|
3
12
|
true: {
|
|
4
13
|
triggerIcon: string;
|
|
@@ -11,6 +20,15 @@ export declare const readMoreTheme: import("tailwind-variants").TVReturnType<{
|
|
|
11
20
|
trigger: string;
|
|
12
21
|
triggerIcon: string;
|
|
13
22
|
}, undefined, {
|
|
23
|
+
color: {
|
|
24
|
+
primary: "";
|
|
25
|
+
neutral: "";
|
|
26
|
+
secondary: "";
|
|
27
|
+
success: "";
|
|
28
|
+
danger: "";
|
|
29
|
+
info: "";
|
|
30
|
+
warning: "";
|
|
31
|
+
};
|
|
14
32
|
open: {
|
|
15
33
|
true: {
|
|
16
34
|
triggerIcon: string;
|
|
@@ -23,6 +41,15 @@ export declare const readMoreTheme: import("tailwind-variants").TVReturnType<{
|
|
|
23
41
|
trigger: string;
|
|
24
42
|
triggerIcon: string;
|
|
25
43
|
}, import("tailwind-variants").TVReturnTypeLike<{
|
|
44
|
+
color: {
|
|
45
|
+
primary: "";
|
|
46
|
+
neutral: "";
|
|
47
|
+
secondary: "";
|
|
48
|
+
success: "";
|
|
49
|
+
danger: "";
|
|
50
|
+
info: "";
|
|
51
|
+
warning: "";
|
|
52
|
+
};
|
|
26
53
|
open: {
|
|
27
54
|
true: {
|
|
28
55
|
triggerIcon: string;
|
|
@@ -5,15 +5,24 @@ export const readMoreTheme = tv({
|
|
|
5
5
|
// max-height (not height) is what actually animates - see
|
|
6
6
|
// ReadMore.vue's own comment on why this needs a measured pixel value
|
|
7
7
|
// rather than the `auto` keyword, which CSS transitions can't animate.
|
|
8
|
-
content: "overflow-hidden transition-[max-height] duration-300 ease-out",
|
|
8
|
+
content: "relative overflow-hidden transition-[max-height] duration-300 ease-out",
|
|
9
9
|
// A fade rather than a hard cut - signals there's more below without a
|
|
10
|
-
// visible seam at the truncation line. Reads from --
|
|
10
|
+
// visible seam at the truncation line. Reads from --selaras-resolved-surface-default since it
|
|
11
11
|
// needs to blend into whatever's directly behind it, not a fixed color.
|
|
12
|
-
fade: "pointer-events-none absolute inset-x-0 bottom-
|
|
13
|
-
trigger: "relative mt-2 inline-flex items-center gap-1 text-sm font-medium text-[var(--
|
|
12
|
+
fade: "pointer-events-none absolute inset-x-0 bottom-0 h-16 bg-gradient-to-t from-[var(--selaras-resolved-surface-default)] to-transparent",
|
|
13
|
+
trigger: "relative mt-2 inline-flex items-center gap-1 text-sm font-medium text-[var(--_selaras-color-text)] transition-colors hover:text-[var(--_selaras-color-text-hover)]",
|
|
14
14
|
triggerIcon: "size-4 transition-transform duration-200"
|
|
15
15
|
},
|
|
16
16
|
variants: {
|
|
17
|
+
color: {
|
|
18
|
+
primary: "",
|
|
19
|
+
neutral: "",
|
|
20
|
+
secondary: "",
|
|
21
|
+
success: "",
|
|
22
|
+
danger: "",
|
|
23
|
+
info: "",
|
|
24
|
+
warning: ""
|
|
25
|
+
},
|
|
17
26
|
open: {
|
|
18
27
|
true: { triggerIcon: "rotate-180" }
|
|
19
28
|
}
|
|
@@ -2,8 +2,8 @@ export declare const scrollAreaTheme: import("tailwind-variants").TVReturnType<{
|
|
|
2
2
|
[key: string]: {
|
|
3
3
|
[key: string]: import("tailwind-variants").ClassValue | {
|
|
4
4
|
root?: import("tailwind-variants").ClassValue;
|
|
5
|
-
viewport?: import("tailwind-variants").ClassValue;
|
|
6
5
|
thumb?: import("tailwind-variants").ClassValue;
|
|
6
|
+
viewport?: import("tailwind-variants").ClassValue;
|
|
7
7
|
scrollbar?: import("tailwind-variants").ClassValue;
|
|
8
8
|
corner?: import("tailwind-variants").ClassValue;
|
|
9
9
|
};
|
|
@@ -12,8 +12,8 @@ export declare const scrollAreaTheme: import("tailwind-variants").TVReturnType<{
|
|
|
12
12
|
[x: string]: {
|
|
13
13
|
[x: string]: import("tailwind-variants").ClassValue | {
|
|
14
14
|
root?: import("tailwind-variants").ClassValue;
|
|
15
|
-
viewport?: import("tailwind-variants").ClassValue;
|
|
16
15
|
thumb?: import("tailwind-variants").ClassValue;
|
|
16
|
+
viewport?: import("tailwind-variants").ClassValue;
|
|
17
17
|
scrollbar?: import("tailwind-variants").ClassValue;
|
|
18
18
|
corner?: import("tailwind-variants").ClassValue;
|
|
19
19
|
};
|
|
@@ -28,8 +28,8 @@ export declare const scrollAreaTheme: import("tailwind-variants").TVReturnType<{
|
|
|
28
28
|
[key: string]: {
|
|
29
29
|
[key: string]: import("tailwind-variants").ClassValue | {
|
|
30
30
|
root?: import("tailwind-variants").ClassValue;
|
|
31
|
-
viewport?: import("tailwind-variants").ClassValue;
|
|
32
31
|
thumb?: import("tailwind-variants").ClassValue;
|
|
32
|
+
viewport?: import("tailwind-variants").ClassValue;
|
|
33
33
|
scrollbar?: import("tailwind-variants").ClassValue;
|
|
34
34
|
corner?: import("tailwind-variants").ClassValue;
|
|
35
35
|
};
|
|
@@ -4,7 +4,7 @@ export const scrollAreaTheme = tv({
|
|
|
4
4
|
root: "relative overflow-hidden",
|
|
5
5
|
viewport: "h-full w-full rounded-[inherit]",
|
|
6
6
|
scrollbar: "flex touch-none select-none p-0.5 transition-colors data-[orientation=vertical]:w-2 data-[orientation=horizontal]:h-2 data-[orientation=horizontal]:flex-col",
|
|
7
|
-
thumb: "relative flex-1 rounded-full bg-[var(--
|
|
8
|
-
corner: "bg-[var(--
|
|
7
|
+
thumb: "relative flex-1 rounded-full bg-[var(--selaras-resolved-border-default)] before:absolute before:left-1/2 before:top-1/2 before:h-full before:min-h-11 before:w-full before:min-w-11 before:-translate-x-1/2 before:-translate-y-1/2",
|
|
8
|
+
corner: "bg-[var(--selaras-resolved-surface-elevated)]"
|
|
9
9
|
}
|
|
10
10
|
});
|