@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
|
@@ -20,27 +20,13 @@ export declare const inputTheme: import("tailwind-variants").TVReturnType<{
|
|
|
20
20
|
};
|
|
21
21
|
};
|
|
22
22
|
color: {
|
|
23
|
-
primary:
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
base: string;
|
|
31
|
-
};
|
|
32
|
-
success: {
|
|
33
|
-
base: string;
|
|
34
|
-
};
|
|
35
|
-
danger: {
|
|
36
|
-
base: string;
|
|
37
|
-
};
|
|
38
|
-
info: {
|
|
39
|
-
base: string;
|
|
40
|
-
};
|
|
41
|
-
warning: {
|
|
42
|
-
base: string;
|
|
43
|
-
};
|
|
23
|
+
primary: "";
|
|
24
|
+
neutral: "";
|
|
25
|
+
secondary: "";
|
|
26
|
+
success: "";
|
|
27
|
+
danger: "";
|
|
28
|
+
info: "";
|
|
29
|
+
warning: "";
|
|
44
30
|
};
|
|
45
31
|
hasLeadingIcon: {
|
|
46
32
|
true: {};
|
|
@@ -81,27 +67,13 @@ export declare const inputTheme: import("tailwind-variants").TVReturnType<{
|
|
|
81
67
|
};
|
|
82
68
|
};
|
|
83
69
|
color: {
|
|
84
|
-
primary:
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
base: string;
|
|
92
|
-
};
|
|
93
|
-
success: {
|
|
94
|
-
base: string;
|
|
95
|
-
};
|
|
96
|
-
danger: {
|
|
97
|
-
base: string;
|
|
98
|
-
};
|
|
99
|
-
info: {
|
|
100
|
-
base: string;
|
|
101
|
-
};
|
|
102
|
-
warning: {
|
|
103
|
-
base: string;
|
|
104
|
-
};
|
|
70
|
+
primary: "";
|
|
71
|
+
neutral: "";
|
|
72
|
+
secondary: "";
|
|
73
|
+
success: "";
|
|
74
|
+
danger: "";
|
|
75
|
+
info: "";
|
|
76
|
+
warning: "";
|
|
105
77
|
};
|
|
106
78
|
hasLeadingIcon: {
|
|
107
79
|
true: {};
|
|
@@ -142,27 +114,13 @@ export declare const inputTheme: import("tailwind-variants").TVReturnType<{
|
|
|
142
114
|
};
|
|
143
115
|
};
|
|
144
116
|
color: {
|
|
145
|
-
primary:
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
base: string;
|
|
153
|
-
};
|
|
154
|
-
success: {
|
|
155
|
-
base: string;
|
|
156
|
-
};
|
|
157
|
-
danger: {
|
|
158
|
-
base: string;
|
|
159
|
-
};
|
|
160
|
-
info: {
|
|
161
|
-
base: string;
|
|
162
|
-
};
|
|
163
|
-
warning: {
|
|
164
|
-
base: string;
|
|
165
|
-
};
|
|
117
|
+
primary: "";
|
|
118
|
+
neutral: "";
|
|
119
|
+
secondary: "";
|
|
120
|
+
success: "";
|
|
121
|
+
danger: "";
|
|
122
|
+
info: "";
|
|
123
|
+
warning: "";
|
|
166
124
|
};
|
|
167
125
|
hasLeadingIcon: {
|
|
168
126
|
true: {};
|
|
@@ -9,9 +9,9 @@ export const inputTheme = tv({
|
|
|
9
9
|
// focus ring's own color comes from the `color` variant below, not
|
|
10
10
|
// hardcoded here - hover's own color stays neutral regardless of
|
|
11
11
|
// `color`, matching every other component's own hover state.
|
|
12
|
-
base: "w-full rounded-[var(--
|
|
13
|
-
leadingIcon: "absolute start-2.5 shrink-0 text-[var(--
|
|
14
|
-
trailingIcon: "absolute end-2.5 shrink-0 text-[var(--
|
|
12
|
+
base: "w-full rounded-[var(--selaras-resolved-radius-md)] bg-[var(--selaras-resolved-surface-default)] text-[var(--selaras-resolved-text-default)] ring-1 ring-inset ring-[var(--selaras-resolved-border-default)] placeholder:text-[var(--selaras-resolved-text-muted)] outline-none transition-[color,background-color,box-shadow] not-focus:hover:ring-[var(--selaras-resolved-border-hover)] hover:bg-[var(--selaras-resolved-surface-elevated)] focus:ring-2 focus:ring-[var(--_selaras-color-focus)] disabled:opacity-50 disabled:pointer-events-none",
|
|
13
|
+
leadingIcon: "absolute start-2.5 shrink-0 text-[var(--selaras-resolved-text-muted)]",
|
|
14
|
+
trailingIcon: "absolute end-2.5 shrink-0 text-[var(--selaras-resolved-text-muted)]",
|
|
15
15
|
// A separate slot from trailingIcon (not reused) - that one is a
|
|
16
16
|
// decorative, non-interactive icon; this is a real dismiss button.
|
|
17
17
|
// Rendered as an <SButton> (ghost/neutral) - real chrome, focus ring
|
|
@@ -30,17 +30,17 @@ export const inputTheme = tv({
|
|
|
30
30
|
md: { base: "h-10 px-3 text-sm", leadingIcon: "size-4.5", trailingIcon: "size-4.5", clear: "size-9" },
|
|
31
31
|
lg: { base: "h-11 px-3.5 text-base", leadingIcon: "size-5", trailingIcon: "size-5", clear: "size-10" }
|
|
32
32
|
},
|
|
33
|
-
// Focus-ring color only - the resting ring stays --
|
|
33
|
+
// Focus-ring color only - the resting ring stays --selaras-resolved-border-default regardless
|
|
34
34
|
// of `color`, matching a Nuxt-ecosystem component kit's own Input
|
|
35
35
|
// (confirmed by reading its docs directly, not assumed).
|
|
36
36
|
color: {
|
|
37
|
-
primary:
|
|
38
|
-
neutral:
|
|
39
|
-
secondary:
|
|
40
|
-
success:
|
|
41
|
-
danger:
|
|
42
|
-
info:
|
|
43
|
-
warning:
|
|
37
|
+
primary: "",
|
|
38
|
+
neutral: "",
|
|
39
|
+
secondary: "",
|
|
40
|
+
success: "",
|
|
41
|
+
danger: "",
|
|
42
|
+
info: "",
|
|
43
|
+
warning: ""
|
|
44
44
|
},
|
|
45
45
|
hasLeadingIcon: {
|
|
46
46
|
true: {}
|
|
@@ -54,7 +54,7 @@ export const inputTheme = tv({
|
|
|
54
54
|
// Checkbox/Switch fix for why declaration order (not runtime call
|
|
55
55
|
// order) is what decides this.
|
|
56
56
|
invalid: {
|
|
57
|
-
true: { base: "ring-[var(--
|
|
57
|
+
true: { base: "ring-[var(--_selaras-color-border)] hover:ring-[var(--_selaras-color-border)] focus:ring-[var(--_selaras-color-focus)]" }
|
|
58
58
|
}
|
|
59
59
|
},
|
|
60
60
|
compoundVariants: [
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { tv } from "tailwind-variants";
|
|
2
2
|
export const kbdTheme = tv({
|
|
3
3
|
slots: {
|
|
4
|
-
base: "inline-flex items-center justify-center rounded-[var(--
|
|
4
|
+
base: "inline-flex items-center justify-center rounded-[var(--selaras-resolved-radius-sm)] border border-[var(--selaras-resolved-border-default)] bg-[var(--selaras-resolved-surface-elevated)] font-mono font-medium text-[var(--selaras-resolved-text-muted)]"
|
|
5
5
|
},
|
|
6
6
|
variants: {
|
|
7
7
|
size: {
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { tv } from "tailwind-variants";
|
|
2
2
|
export const modalTheme = tv({
|
|
3
3
|
slots: {
|
|
4
|
-
overlay: "fixed inset-0 z-[var(--
|
|
4
|
+
overlay: "fixed inset-0 z-[var(--selaras-resolved-z-modal-overlay)] bg-[var(--selaras-resolved-scrim)]",
|
|
5
5
|
// flex flex-col + the header/footer's own shrink-0 (native to a flex
|
|
6
6
|
// child, no extra class needed) let a tall body scroll internally via
|
|
7
7
|
// its own overflow-y-auto below, capped to the viewport height so a
|
|
8
8
|
// centered dialog can never overflow past the screen edges regardless
|
|
9
9
|
// of content length.
|
|
10
|
-
content: "fixed left-1/2 top-1/2 z-[var(--
|
|
10
|
+
content: "fixed left-1/2 top-1/2 z-[var(--selaras-resolved-z-modal)] flex max-h-[calc(100vh-2rem)] w-[calc(100%-2rem)] max-w-md -translate-x-1/2 -translate-y-1/2 flex-col rounded-[var(--selaras-resolved-radius-lg)] bg-[var(--selaras-resolved-surface-default)] shadow-[var(--selaras-resolved-shadow-lg)] focus:outline-none",
|
|
11
11
|
header: "flex items-start justify-between gap-4 p-4 sm:px-6",
|
|
12
|
-
title: "text-base font-semibold text-[var(--
|
|
13
|
-
description: "mt-1 text-sm text-[var(--
|
|
12
|
+
title: "text-base font-semibold text-[var(--selaras-resolved-text-default)]",
|
|
13
|
+
description: "mt-1 text-sm text-[var(--selaras-resolved-text-muted)]",
|
|
14
14
|
// Groups the maximize + close buttons as header's second flex item, so
|
|
15
15
|
// `header`'s own justify-between still splits [title block] / [buttons]
|
|
16
16
|
// correctly regardless of how many buttons are actually shown.
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { VariantProps } from 'tailwind-variants';
|
|
1
2
|
export declare const navigationMenuTheme: import("tailwind-variants").TVReturnType<{
|
|
2
3
|
orientation: {
|
|
3
4
|
horizontal: {
|
|
@@ -222,3 +223,4 @@ export declare const navigationMenuTheme: import("tailwind-variants").TVReturnTy
|
|
|
222
223
|
separator: string;
|
|
223
224
|
}>>;
|
|
224
225
|
export type NavigationMenuThemeSlots = keyof (typeof navigationMenuTheme)['slots'];
|
|
226
|
+
export type NavigationMenuThemeVariants = VariantProps<typeof navigationMenuTheme>;
|
|
@@ -29,7 +29,7 @@ export const navigationMenuTheme = tv({
|
|
|
29
29
|
// `childLink` used from 2nd level down, `ps-0`/gap fixes chasing each
|
|
30
30
|
// new place the two silently drifted apart) - genuinely not worth it;
|
|
31
31
|
// one style everywhere is both simpler and correct by construction.
|
|
32
|
-
link: "group relative flex items-center gap-2 rounded-[var(--
|
|
32
|
+
link: "group relative flex items-center gap-2 rounded-[var(--selaras-resolved-radius-md)] px-2.5 py-1.5 text-sm font-medium focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[var(--_selaras-color-focus)]",
|
|
33
33
|
linkIcon: "size-4 shrink-0",
|
|
34
34
|
// Collapsed-rail fallback for a top-level item with no icon (see the
|
|
35
35
|
// `collapsed` variant below) - same box size as `linkIcon` so it
|
|
@@ -51,18 +51,18 @@ export const navigationMenuTheme = tv({
|
|
|
51
51
|
// indented nested list into a multi-column grid). Both now live in
|
|
52
52
|
// the `orientation` variant below instead, so vertical gets none of it.
|
|
53
53
|
content: "p-2",
|
|
54
|
-
viewport: "absolute inset-x-0 top-full z-[var(--
|
|
54
|
+
viewport: "absolute inset-x-0 top-full z-[var(--selaras-resolved-z-dropdown)] h-[var(--reka-navigation-menu-viewport-height)] w-full overflow-hidden rounded-[var(--selaras-resolved-radius-md)] bg-[var(--selaras-resolved-surface-default)] shadow-[var(--selaras-resolved-shadow-md)] ring-1 ring-[var(--selaras-resolved-border-default)] transition-[height] duration-200",
|
|
55
55
|
childList: "grid gap-1",
|
|
56
56
|
childItem: "",
|
|
57
|
-
childLink: "group relative flex items-center gap-2 rounded-[var(--
|
|
57
|
+
childLink: "group relative flex items-center gap-2 rounded-[var(--selaras-resolved-radius-md)] px-3 py-2 text-sm focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[var(--_selaras-color-focus)]",
|
|
58
58
|
childLinkLabel: "truncate",
|
|
59
59
|
// `type: 'label'`/`'separator'` items (see NavigationMenuItem's own
|
|
60
60
|
// doc comment) - non-interactive, so neither gets `link`'s own
|
|
61
61
|
// hover/focus/active treatment. groupLabel's own px-2.5 matches
|
|
62
62
|
// link's, so a "Links"-style heading sits flush with the real items
|
|
63
63
|
// below it.
|
|
64
|
-
groupLabel: "px-2.5 pb-1 pt-3 text-xs font-semibold uppercase tracking-wide text-[var(--
|
|
65
|
-
separator: "my-1 h-px bg-[var(--
|
|
64
|
+
groupLabel: "px-2.5 pb-1 pt-3 text-xs font-semibold uppercase tracking-wide text-[var(--selaras-resolved-text-muted)] first:pt-0",
|
|
65
|
+
separator: "my-1 h-px bg-[var(--selaras-resolved-border-default)]"
|
|
66
66
|
},
|
|
67
67
|
variants: {
|
|
68
68
|
orientation: {
|
|
@@ -139,7 +139,7 @@ export const navigationMenuTheme = tv({
|
|
|
139
139
|
},
|
|
140
140
|
active: {
|
|
141
141
|
true: {},
|
|
142
|
-
false: { link: "text-[var(--
|
|
142
|
+
false: { link: "text-[var(--selaras-resolved-text-muted)] hover:text-[var(--selaras-resolved-text-default)]", childLink: "text-[var(--selaras-resolved-text-muted)] hover:text-[var(--selaras-resolved-text-default)]" }
|
|
143
143
|
},
|
|
144
144
|
disabled: {
|
|
145
145
|
true: { link: "pointer-events-none opacity-50", childLink: "pointer-events-none opacity-50" }
|
|
@@ -190,31 +190,20 @@ export const navigationMenuTheme = tv({
|
|
|
190
190
|
}
|
|
191
191
|
},
|
|
192
192
|
compoundVariants: [
|
|
193
|
-
{ variant: "pill", active: false, class: { link: "hover:bg-[var(--
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
{ variant: "pill", active: true,
|
|
199
|
-
{ variant: "pill", active: true, color: "
|
|
200
|
-
{ variant: "
|
|
201
|
-
{ variant: "link", active: true, color: "
|
|
202
|
-
{ variant: "link", active: true, color: "neutral", class: { link: "text-[var(--ui-text)]" } },
|
|
203
|
-
{ variant: "link", active: true, color: "secondary", class: { link: "text-[var(--ui-secondary)]" } },
|
|
204
|
-
{ variant: "link", active: true, color: "success", class: { link: "text-[var(--ui-success)]" } },
|
|
205
|
-
{ variant: "link", active: true, color: "danger", class: { link: "text-[var(--ui-danger)]" } },
|
|
206
|
-
{ variant: "link", active: true, color: "info", class: { link: "text-[var(--ui-info)]" } },
|
|
207
|
-
{ variant: "link", active: true, color: "warning", class: { link: "text-[var(--ui-warning)]" } },
|
|
193
|
+
{ variant: "pill", active: false, class: { link: "hover:bg-[var(--selaras-resolved-surface-elevated)]", childLink: "hover:bg-[var(--selaras-resolved-surface-elevated)]" } },
|
|
194
|
+
// All registered non-neutral roles use the selected semantic recipe.
|
|
195
|
+
// Neutral follows these entries so its functional-token classes win via
|
|
196
|
+
// tailwind-merge. Keeping color as a real variant still lets consumer
|
|
197
|
+
// compound extensions match registered role names.
|
|
198
|
+
{ variant: "pill", active: true, class: { link: "bg-[var(--_selaras-color-subtle)] text-[var(--_selaras-color-text)]" } },
|
|
199
|
+
{ variant: "pill", active: true, color: "neutral", class: { link: "bg-[var(--_selaras-color-subtle)] text-[var(--selaras-resolved-text-default)]" } },
|
|
200
|
+
{ variant: "link", active: true, class: { link: "text-[var(--_selaras-color-text)]" } },
|
|
201
|
+
{ variant: "link", active: true, color: "neutral", class: { link: "text-[var(--selaras-resolved-text-default)]" } },
|
|
208
202
|
// Child links (inside horizontal's own dropdown panel) always get the
|
|
209
203
|
// "active" text-color treatment regardless of `variant` - a pill-style
|
|
210
204
|
// background on every list row in a dropdown would be visual noise.
|
|
211
|
-
{ active: true,
|
|
212
|
-
{ active: true, color: "neutral", class: { childLink: "text-[var(--
|
|
213
|
-
{ active: true, color: "secondary", class: { childLink: "text-[var(--ui-secondary)]" } },
|
|
214
|
-
{ active: true, color: "success", class: { childLink: "text-[var(--ui-success)]" } },
|
|
215
|
-
{ active: true, color: "danger", class: { childLink: "text-[var(--ui-danger)]" } },
|
|
216
|
-
{ active: true, color: "info", class: { childLink: "text-[var(--ui-info)]" } },
|
|
217
|
-
{ active: true, color: "warning", class: { childLink: "text-[var(--ui-warning)]" } },
|
|
205
|
+
{ active: true, class: { childLink: "text-[var(--_selaras-color-text)]" } },
|
|
206
|
+
{ active: true, color: "neutral", class: { childLink: "text-[var(--selaras-resolved-text-default)]" } },
|
|
218
207
|
// The highlight bar reuses whatever text color `active` already set via
|
|
219
208
|
// the compound variants above (`after:bg-current`) instead of a second,
|
|
220
209
|
// parallel per-color axis - it's only ever visible together with the
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { tv } from "tailwind-variants";
|
|
2
2
|
export const pageHeaderTheme = tv({
|
|
3
3
|
slots: {
|
|
4
|
-
root: "flex flex-col gap-2 border-b border-[var(--
|
|
5
|
-
title: "text-3xl font-semibold tracking-tight text-[var(--
|
|
6
|
-
description: "text-base text-[var(--
|
|
4
|
+
root: "flex flex-col gap-2 border-b border-[var(--selaras-resolved-border-default)] pb-6",
|
|
5
|
+
title: "text-3xl font-semibold tracking-tight text-[var(--selaras-resolved-text-default)]",
|
|
6
|
+
description: "text-base text-[var(--selaras-resolved-text-muted)]"
|
|
7
7
|
}
|
|
8
8
|
});
|
|
@@ -6,7 +6,7 @@ export const paginationTheme = tv({
|
|
|
6
6
|
// Sized per-variant to match Button's own square icon-button dimensions
|
|
7
7
|
// (w-8/w-10/w-11) so the ellipsis lines up with the surrounding
|
|
8
8
|
// page-number buttons instead of collapsing to its own text size.
|
|
9
|
-
ellipsis: "inline-flex items-center justify-center text-[var(--
|
|
9
|
+
ellipsis: "inline-flex items-center justify-center text-[var(--selaras-resolved-text-muted)]"
|
|
10
10
|
},
|
|
11
11
|
variants: {
|
|
12
12
|
size: {
|
|
@@ -11,27 +11,13 @@ export declare const pinInputTheme: import("tailwind-variants").TVReturnType<{
|
|
|
11
11
|
};
|
|
12
12
|
};
|
|
13
13
|
color: {
|
|
14
|
-
primary: {
|
|
15
|
-
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
input: string;
|
|
22
|
-
};
|
|
23
|
-
success: {
|
|
24
|
-
input: string;
|
|
25
|
-
};
|
|
26
|
-
danger: {
|
|
27
|
-
input: string;
|
|
28
|
-
};
|
|
29
|
-
info: {
|
|
30
|
-
input: string;
|
|
31
|
-
};
|
|
32
|
-
warning: {
|
|
33
|
-
input: string;
|
|
34
|
-
};
|
|
14
|
+
primary: {};
|
|
15
|
+
neutral: {};
|
|
16
|
+
secondary: {};
|
|
17
|
+
success: {};
|
|
18
|
+
danger: {};
|
|
19
|
+
info: {};
|
|
20
|
+
warning: {};
|
|
35
21
|
};
|
|
36
22
|
invalid: {
|
|
37
23
|
true: {
|
|
@@ -54,27 +40,13 @@ export declare const pinInputTheme: import("tailwind-variants").TVReturnType<{
|
|
|
54
40
|
};
|
|
55
41
|
};
|
|
56
42
|
color: {
|
|
57
|
-
primary: {
|
|
58
|
-
|
|
59
|
-
};
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
};
|
|
63
|
-
|
|
64
|
-
input: string;
|
|
65
|
-
};
|
|
66
|
-
success: {
|
|
67
|
-
input: string;
|
|
68
|
-
};
|
|
69
|
-
danger: {
|
|
70
|
-
input: string;
|
|
71
|
-
};
|
|
72
|
-
info: {
|
|
73
|
-
input: string;
|
|
74
|
-
};
|
|
75
|
-
warning: {
|
|
76
|
-
input: string;
|
|
77
|
-
};
|
|
43
|
+
primary: {};
|
|
44
|
+
neutral: {};
|
|
45
|
+
secondary: {};
|
|
46
|
+
success: {};
|
|
47
|
+
danger: {};
|
|
48
|
+
info: {};
|
|
49
|
+
warning: {};
|
|
78
50
|
};
|
|
79
51
|
invalid: {
|
|
80
52
|
true: {
|
|
@@ -97,27 +69,13 @@ export declare const pinInputTheme: import("tailwind-variants").TVReturnType<{
|
|
|
97
69
|
};
|
|
98
70
|
};
|
|
99
71
|
color: {
|
|
100
|
-
primary: {
|
|
101
|
-
|
|
102
|
-
};
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
};
|
|
106
|
-
|
|
107
|
-
input: string;
|
|
108
|
-
};
|
|
109
|
-
success: {
|
|
110
|
-
input: string;
|
|
111
|
-
};
|
|
112
|
-
danger: {
|
|
113
|
-
input: string;
|
|
114
|
-
};
|
|
115
|
-
info: {
|
|
116
|
-
input: string;
|
|
117
|
-
};
|
|
118
|
-
warning: {
|
|
119
|
-
input: string;
|
|
120
|
-
};
|
|
72
|
+
primary: {};
|
|
73
|
+
neutral: {};
|
|
74
|
+
secondary: {};
|
|
75
|
+
success: {};
|
|
76
|
+
danger: {};
|
|
77
|
+
info: {};
|
|
78
|
+
warning: {};
|
|
121
79
|
};
|
|
122
80
|
invalid: {
|
|
123
81
|
true: {
|
|
@@ -5,7 +5,7 @@ export const pinInputTheme = tv({
|
|
|
5
5
|
// Mirrors Input.vue's own `base` slot look (theme/input.ts) - same
|
|
6
6
|
// ring/hover/focus/disabled treatment - but square instead of
|
|
7
7
|
// full-width, one box per character.
|
|
8
|
-
input: "rounded-[var(--
|
|
8
|
+
input: "rounded-[var(--selaras-resolved-radius-md)] bg-[var(--selaras-resolved-surface-default)] text-center font-medium text-[var(--selaras-resolved-text-default)] ring-1 ring-inset ring-[var(--selaras-resolved-border-default)] outline-none transition-[color,background-color,box-shadow] not-focus:hover:ring-[var(--selaras-resolved-border-hover)] hover:bg-[var(--selaras-resolved-surface-elevated)] focus:ring-2 focus:ring-[var(--_selaras-color-focus)] disabled:opacity-50 disabled:pointer-events-none"
|
|
9
9
|
},
|
|
10
10
|
variants: {
|
|
11
11
|
// Square boxes matching Input's own h-8/h-10/h-11 height scale for
|
|
@@ -15,22 +15,24 @@ export const pinInputTheme = tv({
|
|
|
15
15
|
md: { input: "size-10 text-base" },
|
|
16
16
|
lg: { input: "size-11 text-lg" }
|
|
17
17
|
},
|
|
18
|
-
//
|
|
19
|
-
//
|
|
18
|
+
// Color is intentionally a structural variant: the selected role binds
|
|
19
|
+
// the CSS recipe at the component root. Keeping the known keys lets
|
|
20
|
+
// theme extensions add their own role conditions without coercing a
|
|
21
|
+
// registered custom role back to primary.
|
|
20
22
|
color: {
|
|
21
|
-
primary: {
|
|
22
|
-
neutral: {
|
|
23
|
-
secondary: {
|
|
24
|
-
success: {
|
|
25
|
-
danger: {
|
|
26
|
-
info: {
|
|
27
|
-
warning: {
|
|
23
|
+
primary: {},
|
|
24
|
+
neutral: {},
|
|
25
|
+
secondary: {},
|
|
26
|
+
success: {},
|
|
27
|
+
danger: {},
|
|
28
|
+
info: {},
|
|
29
|
+
warning: {}
|
|
28
30
|
},
|
|
29
31
|
// Declared last (after color) so tailwind-merge lets its own
|
|
30
32
|
// focus:ring override win over color's - matches Input's own
|
|
31
33
|
// documented reasoning for this order.
|
|
32
34
|
invalid: {
|
|
33
|
-
true: { input: "ring-[var(--
|
|
35
|
+
true: { input: "ring-[var(--_selaras-color-border)] hover:ring-[var(--_selaras-color-border)] focus:ring-[var(--_selaras-color-focus)]" }
|
|
34
36
|
}
|
|
35
37
|
},
|
|
36
38
|
defaultVariants: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { tv } from "tailwind-variants";
|
|
2
2
|
export const popoverTheme = tv({
|
|
3
3
|
slots: {
|
|
4
|
-
content: "z-[var(--
|
|
5
|
-
arrow: "fill-[var(--
|
|
4
|
+
content: "z-[var(--selaras-resolved-z-dropdown)] rounded-[var(--selaras-resolved-radius-md)] bg-[var(--selaras-resolved-surface-default)] p-4 shadow-[var(--selaras-resolved-shadow-md)] ring-1 ring-[var(--selaras-resolved-border-default)] data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=top]:slide-in-from-bottom-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2",
|
|
5
|
+
arrow: "fill-[var(--selaras-resolved-surface-default)] stroke-[var(--selaras-resolved-border-default)] stroke-1"
|
|
6
6
|
}
|
|
7
7
|
});
|
|
@@ -11,34 +11,13 @@ export declare const progressTheme: import("tailwind-variants").TVReturnType<{
|
|
|
11
11
|
};
|
|
12
12
|
};
|
|
13
13
|
color: {
|
|
14
|
-
primary:
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
};
|
|
22
|
-
secondary: {
|
|
23
|
-
indicator: string;
|
|
24
|
-
circleIndicator: string;
|
|
25
|
-
};
|
|
26
|
-
success: {
|
|
27
|
-
indicator: string;
|
|
28
|
-
circleIndicator: string;
|
|
29
|
-
};
|
|
30
|
-
danger: {
|
|
31
|
-
indicator: string;
|
|
32
|
-
circleIndicator: string;
|
|
33
|
-
};
|
|
34
|
-
info: {
|
|
35
|
-
indicator: string;
|
|
36
|
-
circleIndicator: string;
|
|
37
|
-
};
|
|
38
|
-
warning: {
|
|
39
|
-
indicator: string;
|
|
40
|
-
circleIndicator: string;
|
|
41
|
-
};
|
|
14
|
+
primary: "";
|
|
15
|
+
neutral: "";
|
|
16
|
+
secondary: "";
|
|
17
|
+
success: "";
|
|
18
|
+
danger: "";
|
|
19
|
+
info: "";
|
|
20
|
+
warning: "";
|
|
42
21
|
};
|
|
43
22
|
indeterminate: {
|
|
44
23
|
true: {
|
|
@@ -72,34 +51,13 @@ export declare const progressTheme: import("tailwind-variants").TVReturnType<{
|
|
|
72
51
|
};
|
|
73
52
|
};
|
|
74
53
|
color: {
|
|
75
|
-
primary:
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
};
|
|
83
|
-
secondary: {
|
|
84
|
-
indicator: string;
|
|
85
|
-
circleIndicator: string;
|
|
86
|
-
};
|
|
87
|
-
success: {
|
|
88
|
-
indicator: string;
|
|
89
|
-
circleIndicator: string;
|
|
90
|
-
};
|
|
91
|
-
danger: {
|
|
92
|
-
indicator: string;
|
|
93
|
-
circleIndicator: string;
|
|
94
|
-
};
|
|
95
|
-
info: {
|
|
96
|
-
indicator: string;
|
|
97
|
-
circleIndicator: string;
|
|
98
|
-
};
|
|
99
|
-
warning: {
|
|
100
|
-
indicator: string;
|
|
101
|
-
circleIndicator: string;
|
|
102
|
-
};
|
|
54
|
+
primary: "";
|
|
55
|
+
neutral: "";
|
|
56
|
+
secondary: "";
|
|
57
|
+
success: "";
|
|
58
|
+
danger: "";
|
|
59
|
+
info: "";
|
|
60
|
+
warning: "";
|
|
103
61
|
};
|
|
104
62
|
indeterminate: {
|
|
105
63
|
true: {
|
|
@@ -133,34 +91,13 @@ export declare const progressTheme: import("tailwind-variants").TVReturnType<{
|
|
|
133
91
|
};
|
|
134
92
|
};
|
|
135
93
|
color: {
|
|
136
|
-
primary:
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
};
|
|
144
|
-
secondary: {
|
|
145
|
-
indicator: string;
|
|
146
|
-
circleIndicator: string;
|
|
147
|
-
};
|
|
148
|
-
success: {
|
|
149
|
-
indicator: string;
|
|
150
|
-
circleIndicator: string;
|
|
151
|
-
};
|
|
152
|
-
danger: {
|
|
153
|
-
indicator: string;
|
|
154
|
-
circleIndicator: string;
|
|
155
|
-
};
|
|
156
|
-
info: {
|
|
157
|
-
indicator: string;
|
|
158
|
-
circleIndicator: string;
|
|
159
|
-
};
|
|
160
|
-
warning: {
|
|
161
|
-
indicator: string;
|
|
162
|
-
circleIndicator: string;
|
|
163
|
-
};
|
|
94
|
+
primary: "";
|
|
95
|
+
neutral: "";
|
|
96
|
+
secondary: "";
|
|
97
|
+
success: "";
|
|
98
|
+
danger: "";
|
|
99
|
+
info: "";
|
|
100
|
+
warning: "";
|
|
164
101
|
};
|
|
165
102
|
indeterminate: {
|
|
166
103
|
true: {
|
|
@@ -2,17 +2,17 @@ import { tv } from "tailwind-variants";
|
|
|
2
2
|
export const progressTheme = tv({
|
|
3
3
|
slots: {
|
|
4
4
|
// Linear
|
|
5
|
-
root: "relative w-full overflow-hidden rounded-full bg-[var(--
|
|
6
|
-
indicator: "h-full rounded-full bg-[var(--
|
|
5
|
+
root: "relative w-full overflow-hidden rounded-full bg-[var(--selaras-resolved-surface-elevated)]",
|
|
6
|
+
indicator: "h-full rounded-full bg-[var(--_selaras-color-indicator)]",
|
|
7
7
|
// Circular - a relative wrapper (for the centered label overlay) around
|
|
8
8
|
// an SVG pair: a static background track circle plus an animated
|
|
9
9
|
// foreground arc whose stroke-dasharray/dashoffset (computed in the
|
|
10
10
|
// component, from the real geometry) draws the current percentage.
|
|
11
11
|
circleRoot: "relative inline-flex items-center justify-center",
|
|
12
12
|
circleWrapper: "",
|
|
13
|
-
circleTrack: "stroke-[var(--
|
|
14
|
-
circleIndicator: "stroke-[var(--
|
|
15
|
-
label: "absolute inset-0 flex items-center justify-center text-xs font-medium text-[var(--
|
|
13
|
+
circleTrack: "stroke-[var(--selaras-resolved-surface-elevated)]",
|
|
14
|
+
circleIndicator: "stroke-[var(--_selaras-color-indicator)]",
|
|
15
|
+
label: "absolute inset-0 flex items-center justify-center text-xs font-medium text-[var(--selaras-resolved-text-default)]"
|
|
16
16
|
},
|
|
17
17
|
variants: {
|
|
18
18
|
size: {
|
|
@@ -21,13 +21,13 @@ export const progressTheme = tv({
|
|
|
21
21
|
lg: { root: "h-3" }
|
|
22
22
|
},
|
|
23
23
|
color: {
|
|
24
|
-
primary:
|
|
25
|
-
neutral:
|
|
26
|
-
secondary:
|
|
27
|
-
success:
|
|
28
|
-
danger:
|
|
29
|
-
info:
|
|
30
|
-
warning:
|
|
24
|
+
primary: "",
|
|
25
|
+
neutral: "",
|
|
26
|
+
secondary: "",
|
|
27
|
+
success: "",
|
|
28
|
+
danger: "",
|
|
29
|
+
info: "",
|
|
30
|
+
warning: ""
|
|
31
31
|
},
|
|
32
32
|
// No `value` (Reka's own ProgressRoot "indeterminate" semantics) - the
|
|
33
33
|
// linear indicator slides back and forth instead of tracking a width,
|