@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
|
@@ -4,15 +4,25 @@ export const splitterResizeHandleTheme = tv({
|
|
|
4
4
|
// A slim hit area with a thinner visible line inside it - the visible
|
|
5
5
|
// line alone would be too narrow a target to reliably grab.
|
|
6
6
|
root: "group relative shrink-0 bg-transparent outline-none",
|
|
7
|
-
line: "absolute bg-[var(--
|
|
7
|
+
line: "absolute bg-[var(--selaras-resolved-border-default)] transition-colors group-hover:bg-[var(--_selaras-color-indicator)] group-data-[state=drag]:bg-[var(--_selaras-color-indicator)]"
|
|
8
8
|
},
|
|
9
9
|
variants: {
|
|
10
|
+
color: {
|
|
11
|
+
primary: "",
|
|
12
|
+
neutral: "",
|
|
13
|
+
secondary: "",
|
|
14
|
+
success: "",
|
|
15
|
+
danger: "",
|
|
16
|
+
info: "",
|
|
17
|
+
warning: ""
|
|
18
|
+
},
|
|
10
19
|
direction: {
|
|
11
20
|
horizontal: { root: "w-1 cursor-col-resize", line: "inset-y-0 start-1/2 w-px -translate-x-1/2" },
|
|
12
21
|
vertical: { root: "h-1 cursor-row-resize", line: "inset-x-0 top-1/2 h-px -translate-y-1/2" }
|
|
13
22
|
}
|
|
14
23
|
},
|
|
15
24
|
defaultVariants: {
|
|
25
|
+
color: "primary",
|
|
16
26
|
direction: "horizontal"
|
|
17
27
|
}
|
|
18
28
|
});
|
|
@@ -31,34 +31,13 @@ export declare const stepperTheme: import("tailwind-variants").TVReturnType<{
|
|
|
31
31
|
};
|
|
32
32
|
};
|
|
33
33
|
color: {
|
|
34
|
-
primary:
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
};
|
|
42
|
-
secondary: {
|
|
43
|
-
indicator: string;
|
|
44
|
-
separator: string;
|
|
45
|
-
};
|
|
46
|
-
success: {
|
|
47
|
-
indicator: string;
|
|
48
|
-
separator: string;
|
|
49
|
-
};
|
|
50
|
-
danger: {
|
|
51
|
-
indicator: string;
|
|
52
|
-
separator: string;
|
|
53
|
-
};
|
|
54
|
-
info: {
|
|
55
|
-
indicator: string;
|
|
56
|
-
separator: string;
|
|
57
|
-
};
|
|
58
|
-
warning: {
|
|
59
|
-
indicator: string;
|
|
60
|
-
separator: string;
|
|
61
|
-
};
|
|
34
|
+
primary: "";
|
|
35
|
+
neutral: "";
|
|
36
|
+
secondary: "";
|
|
37
|
+
success: "";
|
|
38
|
+
danger: "";
|
|
39
|
+
info: "";
|
|
40
|
+
warning: "";
|
|
62
41
|
};
|
|
63
42
|
}, {
|
|
64
43
|
root: string;
|
|
@@ -104,34 +83,13 @@ export declare const stepperTheme: import("tailwind-variants").TVReturnType<{
|
|
|
104
83
|
};
|
|
105
84
|
};
|
|
106
85
|
color: {
|
|
107
|
-
primary:
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
};
|
|
115
|
-
secondary: {
|
|
116
|
-
indicator: string;
|
|
117
|
-
separator: string;
|
|
118
|
-
};
|
|
119
|
-
success: {
|
|
120
|
-
indicator: string;
|
|
121
|
-
separator: string;
|
|
122
|
-
};
|
|
123
|
-
danger: {
|
|
124
|
-
indicator: string;
|
|
125
|
-
separator: string;
|
|
126
|
-
};
|
|
127
|
-
info: {
|
|
128
|
-
indicator: string;
|
|
129
|
-
separator: string;
|
|
130
|
-
};
|
|
131
|
-
warning: {
|
|
132
|
-
indicator: string;
|
|
133
|
-
separator: string;
|
|
134
|
-
};
|
|
86
|
+
primary: "";
|
|
87
|
+
neutral: "";
|
|
88
|
+
secondary: "";
|
|
89
|
+
success: "";
|
|
90
|
+
danger: "";
|
|
91
|
+
info: "";
|
|
92
|
+
warning: "";
|
|
135
93
|
};
|
|
136
94
|
}, {
|
|
137
95
|
root: string;
|
|
@@ -177,34 +135,13 @@ export declare const stepperTheme: import("tailwind-variants").TVReturnType<{
|
|
|
177
135
|
};
|
|
178
136
|
};
|
|
179
137
|
color: {
|
|
180
|
-
primary:
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
};
|
|
188
|
-
secondary: {
|
|
189
|
-
indicator: string;
|
|
190
|
-
separator: string;
|
|
191
|
-
};
|
|
192
|
-
success: {
|
|
193
|
-
indicator: string;
|
|
194
|
-
separator: string;
|
|
195
|
-
};
|
|
196
|
-
danger: {
|
|
197
|
-
indicator: string;
|
|
198
|
-
separator: string;
|
|
199
|
-
};
|
|
200
|
-
info: {
|
|
201
|
-
indicator: string;
|
|
202
|
-
separator: string;
|
|
203
|
-
};
|
|
204
|
-
warning: {
|
|
205
|
-
indicator: string;
|
|
206
|
-
separator: string;
|
|
207
|
-
};
|
|
138
|
+
primary: "";
|
|
139
|
+
neutral: "";
|
|
140
|
+
secondary: "";
|
|
141
|
+
success: "";
|
|
142
|
+
danger: "";
|
|
143
|
+
info: "";
|
|
144
|
+
warning: "";
|
|
208
145
|
};
|
|
209
146
|
}, {
|
|
210
147
|
root: string;
|
|
@@ -15,16 +15,16 @@ export const stepperTheme = tv({
|
|
|
15
15
|
// flow entirely (see its own comment) rather than laid out as a flex
|
|
16
16
|
// sibling here, precisely so it can't push the indicator off-center.
|
|
17
17
|
connector: "relative flex items-center",
|
|
18
|
-
trigger: "shrink-0 rounded-full focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--
|
|
19
|
-
indicator: "relative z-10 flex shrink-0 items-center justify-center rounded-full bg-[var(--
|
|
18
|
+
trigger: "shrink-0 rounded-full focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--_selaras-color-focus)] focus-visible:ring-offset-2 focus-visible:ring-offset-[var(--selaras-resolved-surface-default)] disabled:opacity-50 disabled:pointer-events-none",
|
|
19
|
+
indicator: "relative z-10 flex shrink-0 items-center justify-center rounded-full bg-[var(--selaras-resolved-surface-default)] font-medium text-[var(--selaras-resolved-text-muted)] ring-2 ring-[var(--selaras-resolved-border-default)] transition-colors data-[state=active]:ring-[var(--_selaras-color-focus)] data-[state=active]:text-[var(--_selaras-color-text)] data-[state=completed]:bg-[var(--_selaras-color-fill)] data-[state=completed]:ring-[var(--_selaras-color-fill)] data-[state=completed]:text-[var(--_selaras-color-on-fill)]",
|
|
20
20
|
icon: "shrink-0",
|
|
21
21
|
labels: "flex flex-col",
|
|
22
|
-
title: "text-sm font-medium text-[var(--
|
|
23
|
-
description: "text-xs text-[var(--
|
|
22
|
+
title: "text-sm font-medium text-[var(--selaras-resolved-text-default)]",
|
|
23
|
+
description: "text-xs text-[var(--selaras-resolved-text-muted)]",
|
|
24
24
|
// bg-border by default, switching to the color's own solid shade via
|
|
25
25
|
// data-[state=completed] (set by Reka from the *preceding* item's own
|
|
26
26
|
// state) - that's what makes the line "fill in" as steps complete.
|
|
27
|
-
separator: "absolute bg-[var(--
|
|
27
|
+
separator: "absolute bg-[var(--selaras-resolved-border-default)] transition-colors data-[state=completed]:bg-[var(--_selaras-color-fill)]"
|
|
28
28
|
},
|
|
29
29
|
variants: {
|
|
30
30
|
orientation: {
|
|
@@ -68,34 +68,13 @@ export const stepperTheme = tv({
|
|
|
68
68
|
lg: { indicator: "size-10 text-base", title: "text-base", description: "text-sm" }
|
|
69
69
|
},
|
|
70
70
|
color: {
|
|
71
|
-
primary:
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
},
|
|
79
|
-
secondary: {
|
|
80
|
-
indicator: "data-[state=active]:ring-[var(--ui-secondary)] data-[state=active]:text-[var(--ui-secondary)] data-[state=completed]:bg-[var(--ui-secondary)] data-[state=completed]:ring-[var(--ui-secondary)] data-[state=completed]:text-[var(--ui-secondary-foreground)]",
|
|
81
|
-
separator: "data-[state=completed]:bg-[var(--ui-secondary)]"
|
|
82
|
-
},
|
|
83
|
-
success: {
|
|
84
|
-
indicator: "data-[state=active]:ring-[var(--ui-success)] data-[state=active]:text-[var(--ui-success)] data-[state=completed]:bg-[var(--ui-success)] data-[state=completed]:ring-[var(--ui-success)] data-[state=completed]:text-[var(--ui-success-foreground)]",
|
|
85
|
-
separator: "data-[state=completed]:bg-[var(--ui-success)]"
|
|
86
|
-
},
|
|
87
|
-
danger: {
|
|
88
|
-
indicator: "data-[state=active]:ring-[var(--ui-danger)] data-[state=active]:text-[var(--ui-danger)] data-[state=completed]:bg-[var(--ui-danger)] data-[state=completed]:ring-[var(--ui-danger)] data-[state=completed]:text-[var(--ui-danger-foreground)]",
|
|
89
|
-
separator: "data-[state=completed]:bg-[var(--ui-danger)]"
|
|
90
|
-
},
|
|
91
|
-
info: {
|
|
92
|
-
indicator: "data-[state=active]:ring-[var(--ui-info)] data-[state=active]:text-[var(--ui-info)] data-[state=completed]:bg-[var(--ui-info)] data-[state=completed]:ring-[var(--ui-info)] data-[state=completed]:text-[var(--ui-info-foreground)]",
|
|
93
|
-
separator: "data-[state=completed]:bg-[var(--ui-info)]"
|
|
94
|
-
},
|
|
95
|
-
warning: {
|
|
96
|
-
indicator: "data-[state=active]:ring-[var(--ui-warning)] data-[state=active]:text-[var(--ui-warning)] data-[state=completed]:bg-[var(--ui-warning)] data-[state=completed]:ring-[var(--ui-warning)] data-[state=completed]:text-[var(--ui-warning-foreground)]",
|
|
97
|
-
separator: "data-[state=completed]:bg-[var(--ui-warning)]"
|
|
98
|
-
}
|
|
71
|
+
primary: "",
|
|
72
|
+
neutral: "",
|
|
73
|
+
secondary: "",
|
|
74
|
+
success: "",
|
|
75
|
+
danger: "",
|
|
76
|
+
info: "",
|
|
77
|
+
warning: ""
|
|
99
78
|
}
|
|
100
79
|
},
|
|
101
80
|
defaultVariants: {
|
|
@@ -1,33 +1,12 @@
|
|
|
1
1
|
export declare const switchTheme: import("tailwind-variants").TVReturnType<{
|
|
2
2
|
color: {
|
|
3
|
-
primary:
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
};
|
|
11
|
-
secondary: {
|
|
12
|
-
track: string;
|
|
13
|
-
thumb: string;
|
|
14
|
-
};
|
|
15
|
-
success: {
|
|
16
|
-
track: string;
|
|
17
|
-
thumb: string;
|
|
18
|
-
};
|
|
19
|
-
danger: {
|
|
20
|
-
track: string;
|
|
21
|
-
thumb: string;
|
|
22
|
-
};
|
|
23
|
-
info: {
|
|
24
|
-
track: string;
|
|
25
|
-
thumb: string;
|
|
26
|
-
};
|
|
27
|
-
warning: {
|
|
28
|
-
track: string;
|
|
29
|
-
thumb: string;
|
|
30
|
-
};
|
|
3
|
+
primary: "";
|
|
4
|
+
neutral: "";
|
|
5
|
+
secondary: "";
|
|
6
|
+
success: "";
|
|
7
|
+
danger: "";
|
|
8
|
+
info: "";
|
|
9
|
+
warning: "";
|
|
31
10
|
};
|
|
32
11
|
size: {
|
|
33
12
|
sm: {
|
|
@@ -68,34 +47,13 @@ export declare const switchTheme: import("tailwind-variants").TVReturnType<{
|
|
|
68
47
|
labelGroup: string;
|
|
69
48
|
}, undefined, {
|
|
70
49
|
color: {
|
|
71
|
-
primary:
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
};
|
|
79
|
-
secondary: {
|
|
80
|
-
track: string;
|
|
81
|
-
thumb: string;
|
|
82
|
-
};
|
|
83
|
-
success: {
|
|
84
|
-
track: string;
|
|
85
|
-
thumb: string;
|
|
86
|
-
};
|
|
87
|
-
danger: {
|
|
88
|
-
track: string;
|
|
89
|
-
thumb: string;
|
|
90
|
-
};
|
|
91
|
-
info: {
|
|
92
|
-
track: string;
|
|
93
|
-
thumb: string;
|
|
94
|
-
};
|
|
95
|
-
warning: {
|
|
96
|
-
track: string;
|
|
97
|
-
thumb: string;
|
|
98
|
-
};
|
|
50
|
+
primary: "";
|
|
51
|
+
neutral: "";
|
|
52
|
+
secondary: "";
|
|
53
|
+
success: "";
|
|
54
|
+
danger: "";
|
|
55
|
+
info: "";
|
|
56
|
+
warning: "";
|
|
99
57
|
};
|
|
100
58
|
size: {
|
|
101
59
|
sm: {
|
|
@@ -136,34 +94,13 @@ export declare const switchTheme: import("tailwind-variants").TVReturnType<{
|
|
|
136
94
|
labelGroup: string;
|
|
137
95
|
}, import("tailwind-variants").TVReturnTypeLike<{
|
|
138
96
|
color: {
|
|
139
|
-
primary:
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
};
|
|
147
|
-
secondary: {
|
|
148
|
-
track: string;
|
|
149
|
-
thumb: string;
|
|
150
|
-
};
|
|
151
|
-
success: {
|
|
152
|
-
track: string;
|
|
153
|
-
thumb: string;
|
|
154
|
-
};
|
|
155
|
-
danger: {
|
|
156
|
-
track: string;
|
|
157
|
-
thumb: string;
|
|
158
|
-
};
|
|
159
|
-
info: {
|
|
160
|
-
track: string;
|
|
161
|
-
thumb: string;
|
|
162
|
-
};
|
|
163
|
-
warning: {
|
|
164
|
-
track: string;
|
|
165
|
-
thumb: string;
|
|
166
|
-
};
|
|
97
|
+
primary: "";
|
|
98
|
+
neutral: "";
|
|
99
|
+
secondary: "";
|
|
100
|
+
success: "";
|
|
101
|
+
danger: "";
|
|
102
|
+
info: "";
|
|
103
|
+
warning: "";
|
|
167
104
|
};
|
|
168
105
|
size: {
|
|
169
106
|
sm: {
|
|
@@ -12,7 +12,7 @@ export const switchTheme = tv({
|
|
|
12
12
|
// (the checked-state fill) comes entirely from the `color` variant
|
|
13
13
|
// below now, not hardcoded here - same reasoning as every other
|
|
14
14
|
// themed component that exposes `color`.
|
|
15
|
-
track: "group relative inline-flex h-4.5 w-8 shrink-0 items-center rounded-[var(--
|
|
15
|
+
track: "group relative inline-flex h-4.5 w-8 shrink-0 items-center rounded-[var(--selaras-resolved-radius-full)] bg-[var(--selaras-resolved-border-default)] transition-colors focus-visible:outline-none data-[state=checked]:bg-[var(--_selaras-color-fill)]",
|
|
16
16
|
// Track/thumb sized down from the original 40x24/20px to 32x18/16px - a
|
|
17
17
|
// 1px inset on each side at rest (translate-x-px, thumb centered
|
|
18
18
|
// vertically via the track's own items-center), traveling to 15px when
|
|
@@ -24,14 +24,14 @@ export const switchTheme = tv({
|
|
|
24
24
|
// (group-hover/group-focus-visible) - the -z-10 pseudo itself still
|
|
25
25
|
// needs its own stacking context to stay scoped to the thumb, not
|
|
26
26
|
// escape past it.
|
|
27
|
-
thumb: "relative isolate flex items-center justify-center size-4 translate-x-px rounded-full bg-
|
|
27
|
+
thumb: "relative isolate flex items-center justify-center size-4 translate-x-px rounded-full bg-[var(--selaras-resolved-surface-default)] text-[var(--selaras-resolved-text-muted)] shadow-[var(--selaras-resolved-shadow-sm)] transition-transform before:absolute before:-inset-[8px] 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-[''] group-hover:before:[transform:scale(1)] group-focus-visible:before:[transform:scale(1)] data-[state=checked]:translate-x-[15px] data-[state=checked]:bg-[var(--_selaras-color-on-fill)] data-[state=checked]:text-[var(--_selaras-color-fill)] data-[state=checked]:before:bg-[var(--_selaras-color-fill-hover)]",
|
|
28
28
|
// The checked/unchecked/loading glyph rendered inside the thumb -
|
|
29
29
|
// muted gray by default (the thumb itself stays white regardless of
|
|
30
30
|
// `color`, so an icon needs its own contrast rather than inheriting
|
|
31
31
|
// currentColor from a colored parent).
|
|
32
|
-
icon: "size-2.5
|
|
33
|
-
label: "select-none text-sm text-[var(--
|
|
34
|
-
description: "block select-none text-xs text-[var(--
|
|
32
|
+
icon: "size-2.5",
|
|
33
|
+
label: "select-none text-sm text-[var(--selaras-resolved-text-default)]",
|
|
34
|
+
description: "block select-none text-xs text-[var(--selaras-resolved-text-muted)]",
|
|
35
35
|
// Only rendered when there's a description (wrapping the label and
|
|
36
36
|
// description together so they stack under one another) - same font-
|
|
37
37
|
// baseline correction as RadioGroup's own labelGroup slot (see its
|
|
@@ -46,13 +46,13 @@ export const switchTheme = tv({
|
|
|
46
46
|
// library's other "off" states (e.g. Chip's unselected variant) never
|
|
47
47
|
// take on the color prop either.
|
|
48
48
|
color: {
|
|
49
|
-
primary:
|
|
50
|
-
neutral:
|
|
51
|
-
secondary:
|
|
52
|
-
success:
|
|
53
|
-
danger:
|
|
54
|
-
info:
|
|
55
|
-
warning:
|
|
49
|
+
primary: "",
|
|
50
|
+
neutral: "",
|
|
51
|
+
secondary: "",
|
|
52
|
+
success: "",
|
|
53
|
+
danger: "",
|
|
54
|
+
info: "",
|
|
55
|
+
warning: ""
|
|
56
56
|
},
|
|
57
57
|
// Same +4px-per-step scale RadioGroup's own `size` variant uses (its
|
|
58
58
|
// item goes size-3.5/4.5/5.5 across sm/md/lg) - track/thumb/halo/travel
|
|
@@ -74,7 +74,7 @@ export const switchTheme = tv({
|
|
|
74
74
|
// its own to recolor (unlike Radio/Checkbox's ring-inset), but an
|
|
75
75
|
// offset outline left a visible gap between it and the pill, unlike
|
|
76
76
|
// every other invalid state in this library, which sits flush.
|
|
77
|
-
true: { track: "ring-2 ring-[var(--
|
|
77
|
+
true: { track: "ring-2 ring-[var(--_selaras-color-border)]", thumb: "data-[state=checked]:before:bg-[var(--_selaras-color-fill-hover)]" }
|
|
78
78
|
}
|
|
79
79
|
},
|
|
80
80
|
defaultVariants: {
|
|
@@ -1,4 +1,13 @@
|
|
|
1
1
|
export declare const tableTheme: 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
|
th: string;
|
|
@@ -57,6 +66,15 @@ export declare const tableTheme: import("tailwind-variants").TVReturnType<{
|
|
|
57
66
|
columnTogglePanel: string;
|
|
58
67
|
columnToggleItem: string;
|
|
59
68
|
}, undefined, {
|
|
69
|
+
color: {
|
|
70
|
+
primary: "";
|
|
71
|
+
neutral: "";
|
|
72
|
+
secondary: "";
|
|
73
|
+
success: "";
|
|
74
|
+
danger: "";
|
|
75
|
+
info: "";
|
|
76
|
+
warning: "";
|
|
77
|
+
};
|
|
60
78
|
size: {
|
|
61
79
|
sm: {
|
|
62
80
|
th: string;
|
|
@@ -115,6 +133,15 @@ export declare const tableTheme: import("tailwind-variants").TVReturnType<{
|
|
|
115
133
|
columnTogglePanel: string;
|
|
116
134
|
columnToggleItem: string;
|
|
117
135
|
}, import("tailwind-variants").TVReturnTypeLike<{
|
|
136
|
+
color: {
|
|
137
|
+
primary: "";
|
|
138
|
+
neutral: "";
|
|
139
|
+
secondary: "";
|
|
140
|
+
success: "";
|
|
141
|
+
danger: "";
|
|
142
|
+
info: "";
|
|
143
|
+
warning: "";
|
|
144
|
+
};
|
|
118
145
|
size: {
|
|
119
146
|
sm: {
|
|
120
147
|
th: string;
|
|
@@ -2,23 +2,23 @@ import { tv } from "tailwind-variants";
|
|
|
2
2
|
export const tableTheme = tv({
|
|
3
3
|
slots: {
|
|
4
4
|
root: "relative w-full",
|
|
5
|
-
wrapper: "overflow-x-auto rounded-[var(--
|
|
5
|
+
wrapper: "overflow-x-auto rounded-[var(--selaras-resolved-radius-md)] ring-1 ring-[var(--selaras-resolved-border-default)]",
|
|
6
6
|
table: "w-full border-collapse",
|
|
7
|
-
thead: "bg-[var(--
|
|
8
|
-
tr: "border-b border-[var(--
|
|
9
|
-
th: "text-start font-medium text-[var(--
|
|
10
|
-
thSortable: "cursor-pointer select-none hover:text-[var(--
|
|
11
|
-
sortIcon: "ms-1 inline-block size-3.5 align-text-bottom text-[var(--
|
|
12
|
-
td: "text-[var(--
|
|
13
|
-
tfoot: "bg-[var(--
|
|
14
|
-
emptyState: "px-3 py-8 text-center text-sm text-[var(--
|
|
7
|
+
thead: "bg-[var(--selaras-resolved-surface-elevated)]",
|
|
8
|
+
tr: "border-b border-[var(--selaras-resolved-border-default)] last:border-b-0",
|
|
9
|
+
th: "text-start font-medium text-[var(--selaras-resolved-text-muted)] whitespace-nowrap data-[pinned]:sticky data-[pinned]:z-[1] data-[pinned]:bg-[var(--selaras-resolved-surface-elevated)]",
|
|
10
|
+
thSortable: "cursor-pointer select-none hover:text-[var(--selaras-resolved-text-default)] focus-visible:outline-2 focus-visible:outline-offset-[-2px] focus-visible:outline-[var(--_selaras-color-focus)]",
|
|
11
|
+
sortIcon: "ms-1 inline-block size-3.5 align-text-bottom text-[var(--selaras-resolved-text-muted)]",
|
|
12
|
+
td: "text-[var(--selaras-resolved-text-default)] data-[pinned]:sticky data-[pinned]:z-[1] data-[pinned]:bg-[var(--selaras-resolved-surface-default)]",
|
|
13
|
+
tfoot: "bg-[var(--selaras-resolved-surface-elevated)] font-medium",
|
|
14
|
+
emptyState: "px-3 py-8 text-center text-sm text-[var(--selaras-resolved-text-muted)]",
|
|
15
15
|
filterInput: "mt-1",
|
|
16
16
|
paginationWrapper: "flex items-center justify-between gap-3 px-3 py-2",
|
|
17
|
-
paginationInfo: "text-sm text-[var(--
|
|
17
|
+
paginationInfo: "text-sm text-[var(--selaras-resolved-text-muted)]",
|
|
18
18
|
paginationButtons: "flex items-center gap-2",
|
|
19
|
-
loadingOverlay: "absolute inset-0 z-10 flex items-center justify-center bg-[var(--
|
|
20
|
-
loadingIcon: "size-6 animate-spin text-[var(--
|
|
21
|
-
expandButton: "flex size-5 shrink-0 items-center justify-center text-[var(--
|
|
19
|
+
loadingOverlay: "absolute inset-0 z-10 flex items-center justify-center bg-[var(--selaras-resolved-surface-default)]/60",
|
|
20
|
+
loadingIcon: "size-6 animate-spin text-[var(--_selaras-color-text)]",
|
|
21
|
+
expandButton: "flex size-5 shrink-0 items-center justify-center text-[var(--selaras-resolved-text-muted)]",
|
|
22
22
|
// Points toward the reading-start direction while collapsed - 0deg
|
|
23
23
|
// (right) under LTR, 180deg (left) under RTL - then always rotates to
|
|
24
24
|
// an absolute 90deg once expanded, which already points down under
|
|
@@ -27,13 +27,22 @@ export const tableTheme = tv({
|
|
|
27
27
|
// for the one case where both conditions hold at once, rather than
|
|
28
28
|
// leaving the outcome to rely on Tailwind's variant cascade order.
|
|
29
29
|
expandChevron: "size-4 transition-transform rtl:rotate-180 data-[expanded]:rotate-90 rtl:data-[expanded]:rotate-90",
|
|
30
|
-
expandedRow: "border-b border-[var(--
|
|
31
|
-
expandedCell: "bg-[var(--
|
|
30
|
+
expandedRow: "border-b border-[var(--selaras-resolved-border-default)] last:border-b-0",
|
|
31
|
+
expandedCell: "bg-[var(--selaras-resolved-surface-elevated)] px-3 py-3 text-[var(--selaras-resolved-text-default)]",
|
|
32
32
|
columnToggle: "relative",
|
|
33
|
-
columnTogglePanel: "absolute end-0 z-20 mt-1 flex min-w-40 flex-col gap-1 rounded-[var(--
|
|
34
|
-
columnToggleItem: "flex items-center gap-2 rounded-[var(--
|
|
33
|
+
columnTogglePanel: "absolute end-0 z-20 mt-1 flex min-w-40 flex-col gap-1 rounded-[var(--selaras-resolved-radius-md)] bg-[var(--selaras-resolved-surface-default)] p-2 shadow-[var(--selaras-resolved-shadow-md)] ring-1 ring-[var(--selaras-resolved-border-default)]",
|
|
34
|
+
columnToggleItem: "flex items-center gap-2 rounded-[var(--selaras-resolved-radius-sm)] px-2 py-1.5 text-sm text-[var(--selaras-resolved-text-default)] hover:bg-[var(--selaras-resolved-surface-elevated)]"
|
|
35
35
|
},
|
|
36
36
|
variants: {
|
|
37
|
+
color: {
|
|
38
|
+
primary: "",
|
|
39
|
+
neutral: "",
|
|
40
|
+
secondary: "",
|
|
41
|
+
success: "",
|
|
42
|
+
danger: "",
|
|
43
|
+
info: "",
|
|
44
|
+
warning: ""
|
|
45
|
+
},
|
|
37
46
|
size: {
|
|
38
47
|
sm: { th: "px-2 py-1.5 text-xs", td: "px-2 py-1.5 text-xs" },
|
|
39
48
|
md: { th: "px-3 py-2 text-sm", td: "px-3 py-2 text-sm" },
|
|
@@ -41,19 +50,20 @@ export const tableTheme = tv({
|
|
|
41
50
|
},
|
|
42
51
|
gridlines: {
|
|
43
52
|
true: {
|
|
44
|
-
table: "border border-[var(--
|
|
45
|
-
th: "border border-[var(--
|
|
46
|
-
td: "border border-[var(--
|
|
53
|
+
table: "border border-[var(--selaras-resolved-border-default)]",
|
|
54
|
+
th: "border border-[var(--selaras-resolved-border-default)]",
|
|
55
|
+
td: "border border-[var(--selaras-resolved-border-default)]"
|
|
47
56
|
}
|
|
48
57
|
},
|
|
49
58
|
striped: {
|
|
50
|
-
true: { table: "[&>tbody>tr:nth-child(even)]:bg-[var(--
|
|
59
|
+
true: { table: "[&>tbody>tr:nth-child(even)]:bg-[var(--selaras-resolved-surface-elevated)]" }
|
|
51
60
|
},
|
|
52
61
|
scrollable: {
|
|
53
62
|
true: { wrapper: "overflow-y-auto", thead: "sticky top-0 z-[1]" }
|
|
54
63
|
}
|
|
55
64
|
},
|
|
56
65
|
defaultVariants: {
|
|
66
|
+
color: "primary",
|
|
57
67
|
size: "md"
|
|
58
68
|
}
|
|
59
69
|
});
|
|
@@ -10,6 +10,15 @@ export declare const tabsTheme: import("tailwind-variants").TVReturnType<{
|
|
|
10
10
|
indicator: string;
|
|
11
11
|
};
|
|
12
12
|
};
|
|
13
|
+
color: {
|
|
14
|
+
primary: "";
|
|
15
|
+
neutral: "";
|
|
16
|
+
secondary: "";
|
|
17
|
+
success: "";
|
|
18
|
+
danger: "";
|
|
19
|
+
info: "";
|
|
20
|
+
warning: "";
|
|
21
|
+
};
|
|
13
22
|
}, {
|
|
14
23
|
root: string;
|
|
15
24
|
list: string;
|
|
@@ -29,6 +38,15 @@ export declare const tabsTheme: import("tailwind-variants").TVReturnType<{
|
|
|
29
38
|
indicator: string;
|
|
30
39
|
};
|
|
31
40
|
};
|
|
41
|
+
color: {
|
|
42
|
+
primary: "";
|
|
43
|
+
neutral: "";
|
|
44
|
+
secondary: "";
|
|
45
|
+
success: "";
|
|
46
|
+
danger: "";
|
|
47
|
+
info: "";
|
|
48
|
+
warning: "";
|
|
49
|
+
};
|
|
32
50
|
}, {
|
|
33
51
|
root: string;
|
|
34
52
|
list: string;
|
|
@@ -48,6 +66,15 @@ export declare const tabsTheme: import("tailwind-variants").TVReturnType<{
|
|
|
48
66
|
indicator: string;
|
|
49
67
|
};
|
|
50
68
|
};
|
|
69
|
+
color: {
|
|
70
|
+
primary: "";
|
|
71
|
+
neutral: "";
|
|
72
|
+
secondary: "";
|
|
73
|
+
success: "";
|
|
74
|
+
danger: "";
|
|
75
|
+
info: "";
|
|
76
|
+
warning: "";
|
|
77
|
+
};
|
|
51
78
|
}, {
|
|
52
79
|
root: string;
|
|
53
80
|
list: string;
|
|
@@ -4,11 +4,11 @@ export const tabsTheme = tv({
|
|
|
4
4
|
root: "w-full",
|
|
5
5
|
// relative - the positioned ancestor both the triggers' own offsetLeft
|
|
6
6
|
// and the sliding indicator's absolute positioning resolve against.
|
|
7
|
-
list: "relative flex items-center border-b border-[var(--
|
|
7
|
+
list: "relative flex items-center border-b border-[var(--selaras-resolved-border-default)]",
|
|
8
8
|
// z-10 unconditionally (not just for `pill`) - harmless for `underline`
|
|
9
9
|
// (its indicator never overlaps the trigger's own text anyway) and
|
|
10
10
|
// keeps this one class instead of a compound variant.
|
|
11
|
-
trigger: "relative z-10 inline-flex items-center gap-1.5 px-1 py-2 text-sm font-medium text-[var(--
|
|
11
|
+
trigger: "relative z-10 inline-flex items-center gap-1.5 px-1 py-2 text-sm font-medium text-[var(--selaras-resolved-text-muted)] transition-colors hover:text-[var(--selaras-resolved-text-default)] disabled:opacity-50 disabled:pointer-events-none data-[state=active]:text-[var(--_selaras-color-text)]",
|
|
12
12
|
icon: "size-4 shrink-0",
|
|
13
13
|
// Positioned via Reka's own TabsIndicator - it measures the active
|
|
14
14
|
// trigger's offsetLeft/offsetWidth itself (ResizeObserver-driven, and
|
|
@@ -29,16 +29,26 @@ export const tabsTheme = tv({
|
|
|
29
29
|
variant: {
|
|
30
30
|
underline: {
|
|
31
31
|
list: "gap-4",
|
|
32
|
-
indicator: "inset-x-0 bottom-0 h-0.5 rounded-full bg-[var(--
|
|
32
|
+
indicator: "inset-x-0 bottom-0 h-0.5 rounded-full bg-[var(--_selaras-color-fill)]"
|
|
33
33
|
},
|
|
34
34
|
pill: {
|
|
35
|
-
list: "gap-1 rounded-[var(--
|
|
36
|
-
trigger: "rounded-[var(--
|
|
37
|
-
indicator: "inset-y-1 rounded-[var(--
|
|
35
|
+
list: "gap-1 rounded-[var(--selaras-resolved-radius-md)] border-0 bg-[var(--selaras-resolved-surface-elevated)] p-1",
|
|
36
|
+
trigger: "rounded-[var(--selaras-resolved-radius-sm)] px-3",
|
|
37
|
+
indicator: "inset-y-1 rounded-[var(--selaras-resolved-radius-sm)] bg-[var(--selaras-resolved-surface-default)] shadow-[var(--selaras-resolved-shadow-sm)]"
|
|
38
38
|
}
|
|
39
|
+
},
|
|
40
|
+
color: {
|
|
41
|
+
primary: "",
|
|
42
|
+
neutral: "",
|
|
43
|
+
secondary: "",
|
|
44
|
+
success: "",
|
|
45
|
+
danger: "",
|
|
46
|
+
info: "",
|
|
47
|
+
warning: ""
|
|
39
48
|
}
|
|
40
49
|
},
|
|
41
50
|
defaultVariants: {
|
|
42
|
-
variant: "underline"
|
|
51
|
+
variant: "underline",
|
|
52
|
+
color: "primary"
|
|
43
53
|
}
|
|
44
54
|
});
|