@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,7 +4,7 @@ export const fileTreeTheme = tv({
|
|
|
4
4
|
// The outer box - only the top-level call renders this (see
|
|
5
5
|
// FileTree.vue's own `isNested`); a recursive call for a directory's
|
|
6
6
|
// children renders `list` directly instead, no extra wrapping element.
|
|
7
|
-
root: "flex flex-col gap-0.5 rounded-[var(--
|
|
7
|
+
root: "flex flex-col gap-0.5 rounded-[var(--selaras-resolved-radius-md)] border border-[var(--selaras-resolved-border-default)] bg-[var(--selaras-resolved-surface-default)] p-2 font-mono text-sm",
|
|
8
8
|
// Real indentation, not a border/padding trick - each recursive level
|
|
9
9
|
// renders its own nested <FileTree>, so depth accumulates naturally
|
|
10
10
|
// via this same left padding stacking once per level. `ps-4` also
|
|
@@ -12,13 +12,22 @@ export const fileTreeTheme = tv({
|
|
|
12
12
|
// the `isNested` variant below) reaches back into.
|
|
13
13
|
list: "flex flex-col gap-0.5 ps-4 font-mono text-sm ms-3",
|
|
14
14
|
item: "flex flex-col",
|
|
15
|
-
row: "flex w-full items-center gap-1.5 rounded-[var(--
|
|
15
|
+
row: "flex w-full items-center gap-1.5 rounded-[var(--selaras-resolved-radius-sm)] px-1.5 py-1 text-start text-[var(--selaras-resolved-text-muted)] transition-colors hover:bg-[var(--selaras-resolved-surface-elevated)] hover:text-[var(--selaras-resolved-text-default)]",
|
|
16
16
|
icon: "size-4 shrink-0",
|
|
17
17
|
label: "truncate"
|
|
18
18
|
},
|
|
19
19
|
variants: {
|
|
20
20
|
selected: {
|
|
21
|
-
true: { row: "bg-[var(--
|
|
21
|
+
true: { row: "bg-[var(--_selaras-color-subtle)] text-[var(--_selaras-color-text)] hover:bg-[var(--_selaras-color-subtle)] hover:text-[var(--_selaras-color-text)]" }
|
|
22
|
+
},
|
|
23
|
+
color: {
|
|
24
|
+
primary: "",
|
|
25
|
+
neutral: "",
|
|
26
|
+
secondary: "",
|
|
27
|
+
success: "",
|
|
28
|
+
danger: "",
|
|
29
|
+
info: "",
|
|
30
|
+
warning: ""
|
|
22
31
|
},
|
|
23
32
|
// FileTree.vue recurses into itself for every directory's own
|
|
24
33
|
// children, reusing this exact same `item` slot at every depth -
|
|
@@ -26,34 +26,16 @@ export declare const fileUploadTheme: import("tailwind-variants").TVReturnType<{
|
|
|
26
26
|
};
|
|
27
27
|
};
|
|
28
28
|
color: {
|
|
29
|
-
primary:
|
|
30
|
-
icon: string;
|
|
31
|
-
dropzone: string;
|
|
32
|
-
};
|
|
29
|
+
primary: "";
|
|
33
30
|
neutral: {
|
|
34
31
|
icon: string;
|
|
35
32
|
dropzone: string;
|
|
36
33
|
};
|
|
37
|
-
secondary:
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
icon: string;
|
|
43
|
-
dropzone: string;
|
|
44
|
-
};
|
|
45
|
-
danger: {
|
|
46
|
-
icon: string;
|
|
47
|
-
dropzone: string;
|
|
48
|
-
};
|
|
49
|
-
info: {
|
|
50
|
-
icon: string;
|
|
51
|
-
dropzone: string;
|
|
52
|
-
};
|
|
53
|
-
warning: {
|
|
54
|
-
icon: string;
|
|
55
|
-
dropzone: string;
|
|
56
|
-
};
|
|
34
|
+
secondary: "";
|
|
35
|
+
success: "";
|
|
36
|
+
danger: "";
|
|
37
|
+
info: "";
|
|
38
|
+
warning: "";
|
|
57
39
|
};
|
|
58
40
|
invalid: {
|
|
59
41
|
true: {
|
|
@@ -103,34 +85,16 @@ export declare const fileUploadTheme: import("tailwind-variants").TVReturnType<{
|
|
|
103
85
|
};
|
|
104
86
|
};
|
|
105
87
|
color: {
|
|
106
|
-
primary:
|
|
107
|
-
icon: string;
|
|
108
|
-
dropzone: string;
|
|
109
|
-
};
|
|
88
|
+
primary: "";
|
|
110
89
|
neutral: {
|
|
111
90
|
icon: string;
|
|
112
91
|
dropzone: string;
|
|
113
92
|
};
|
|
114
|
-
secondary:
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
icon: string;
|
|
120
|
-
dropzone: string;
|
|
121
|
-
};
|
|
122
|
-
danger: {
|
|
123
|
-
icon: string;
|
|
124
|
-
dropzone: string;
|
|
125
|
-
};
|
|
126
|
-
info: {
|
|
127
|
-
icon: string;
|
|
128
|
-
dropzone: string;
|
|
129
|
-
};
|
|
130
|
-
warning: {
|
|
131
|
-
icon: string;
|
|
132
|
-
dropzone: string;
|
|
133
|
-
};
|
|
93
|
+
secondary: "";
|
|
94
|
+
success: "";
|
|
95
|
+
danger: "";
|
|
96
|
+
info: "";
|
|
97
|
+
warning: "";
|
|
134
98
|
};
|
|
135
99
|
invalid: {
|
|
136
100
|
true: {
|
|
@@ -180,34 +144,16 @@ export declare const fileUploadTheme: import("tailwind-variants").TVReturnType<{
|
|
|
180
144
|
};
|
|
181
145
|
};
|
|
182
146
|
color: {
|
|
183
|
-
primary:
|
|
184
|
-
icon: string;
|
|
185
|
-
dropzone: string;
|
|
186
|
-
};
|
|
147
|
+
primary: "";
|
|
187
148
|
neutral: {
|
|
188
149
|
icon: string;
|
|
189
150
|
dropzone: string;
|
|
190
151
|
};
|
|
191
|
-
secondary:
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
icon: string;
|
|
197
|
-
dropzone: string;
|
|
198
|
-
};
|
|
199
|
-
danger: {
|
|
200
|
-
icon: string;
|
|
201
|
-
dropzone: string;
|
|
202
|
-
};
|
|
203
|
-
info: {
|
|
204
|
-
icon: string;
|
|
205
|
-
dropzone: string;
|
|
206
|
-
};
|
|
207
|
-
warning: {
|
|
208
|
-
icon: string;
|
|
209
|
-
dropzone: string;
|
|
210
|
-
};
|
|
152
|
+
secondary: "";
|
|
153
|
+
success: "";
|
|
154
|
+
danger: "";
|
|
155
|
+
info: "";
|
|
156
|
+
warning: "";
|
|
211
157
|
};
|
|
212
158
|
invalid: {
|
|
213
159
|
true: {
|
|
@@ -7,24 +7,25 @@ export const fileUploadTheme = tv({
|
|
|
7
7
|
// instead of needing hand-rolled keydown handling. dragging (a
|
|
8
8
|
// component-set data attribute, not a native one) recolors it
|
|
9
9
|
// toward `color` - see the color variant below.
|
|
10
|
-
dropzone: "flex w-full flex-col items-center justify-center gap-2 rounded-[var(--
|
|
11
|
-
icon: "text-[var(--
|
|
12
|
-
label: "font-medium text-[var(--
|
|
13
|
-
description: "text-[var(--
|
|
10
|
+
dropzone: "flex w-full flex-col items-center justify-center gap-2 rounded-[var(--selaras-resolved-radius-md)] border-2 border-dashed border-[var(--selaras-resolved-border-default)] p-6 text-center transition-colors hover:border-[var(--selaras-resolved-border-hover)] hover:bg-[var(--selaras-resolved-surface-elevated)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--_selaras-color-focus)] data-[dragging]:border-[var(--_selaras-color-border)] data-[dragging]:bg-[var(--_selaras-color-subtle)] disabled:opacity-50 disabled:pointer-events-none",
|
|
11
|
+
icon: "text-[var(--_selaras-color-fill)]",
|
|
12
|
+
label: "font-medium text-[var(--selaras-resolved-text-default)]",
|
|
13
|
+
description: "text-[var(--selaras-resolved-text-muted)]",
|
|
14
14
|
// Purely an implementation detail - visually hidden and (via
|
|
15
15
|
// tabindex="-1" in FileUpload.vue) not independently tab-reachable
|
|
16
16
|
// either.
|
|
17
|
-
// The dropzone <button>
|
|
17
|
+
// The sibling dropzone <button> is the visible focusable, Enter/
|
|
18
18
|
// Space-activatable control (free native semantics); this input just
|
|
19
|
-
// gets programmatically .click()'d to open the OS file dialog.
|
|
19
|
+
// gets programmatically .click()'d to open the OS file dialog. Native
|
|
20
|
+
// label/validation focus on the input is forwarded to the dropzone.
|
|
20
21
|
input: "sr-only",
|
|
21
22
|
fileList: "flex w-full flex-col gap-2",
|
|
22
|
-
file: "flex items-center gap-3 rounded-[var(--
|
|
23
|
-
fileThumbnail: "size-8 shrink-0 rounded-[var(--
|
|
24
|
-
fileIcon: "size-8 shrink-0 text-[var(--
|
|
23
|
+
file: "flex items-center gap-3 rounded-[var(--selaras-resolved-radius-md)] border border-[var(--selaras-resolved-border-default)] p-2",
|
|
24
|
+
fileThumbnail: "size-8 shrink-0 rounded-[var(--selaras-resolved-radius-sm)] object-cover",
|
|
25
|
+
fileIcon: "size-8 shrink-0 text-[var(--selaras-resolved-text-muted)]",
|
|
25
26
|
fileInfo: "flex min-w-0 flex-1 flex-col",
|
|
26
|
-
fileName: "truncate text-[var(--
|
|
27
|
-
fileSize: "text-[var(--
|
|
27
|
+
fileName: "truncate text-[var(--selaras-resolved-text-default)]",
|
|
28
|
+
fileSize: "text-[var(--selaras-resolved-text-muted)]",
|
|
28
29
|
fileRemove: "shrink-0"
|
|
29
30
|
},
|
|
30
31
|
variants: {
|
|
@@ -41,19 +42,19 @@ export const fileUploadTheme = tv({
|
|
|
41
42
|
// actually demonstrating anything - confirmed as a real problem via
|
|
42
43
|
// direct user feedback, not just a style preference.
|
|
43
44
|
color: {
|
|
44
|
-
primary:
|
|
45
|
-
neutral: { icon: "text-[var(--
|
|
46
|
-
secondary:
|
|
47
|
-
success:
|
|
48
|
-
danger:
|
|
49
|
-
info:
|
|
50
|
-
warning:
|
|
45
|
+
primary: "",
|
|
46
|
+
neutral: { icon: "text-[var(--selaras-resolved-surface-inverted)]", dropzone: "focus-visible:ring-[var(--selaras-resolved-surface-inverted)] data-[dragging]:border-[var(--selaras-resolved-surface-inverted)] data-[dragging]:bg-[var(--selaras-resolved-surface-elevated)]" },
|
|
47
|
+
secondary: "",
|
|
48
|
+
success: "",
|
|
49
|
+
danger: "",
|
|
50
|
+
info: "",
|
|
51
|
+
warning: ""
|
|
51
52
|
},
|
|
52
53
|
// Declared last (after color) so tailwind-merge lets its own border
|
|
53
54
|
// override win over color's - matches Input's own documented
|
|
54
55
|
// reasoning for this order.
|
|
55
56
|
invalid: {
|
|
56
|
-
true: { dropzone: "border-[var(--
|
|
57
|
+
true: { dropzone: "border-[var(--_selaras-color-border)] focus-visible:ring-[var(--_selaras-color-focus)]" }
|
|
57
58
|
}
|
|
58
59
|
},
|
|
59
60
|
defaultVariants: {
|
|
@@ -7,12 +7,12 @@ export const formFieldTheme = tv({
|
|
|
7
7
|
// own default look exactly) in vertical.
|
|
8
8
|
body: "flex flex-col gap-1.5",
|
|
9
9
|
header: "",
|
|
10
|
-
label: "text-sm font-medium text-[var(--
|
|
11
|
-
required: "ms-0.5 text-[var(--
|
|
12
|
-
description: "text-xs text-[var(--
|
|
10
|
+
label: "text-sm font-medium text-[var(--selaras-resolved-text-default)]",
|
|
11
|
+
required: "ms-0.5 text-[var(--selaras-resolved-color-danger-text)]",
|
|
12
|
+
description: "text-xs text-[var(--selaras-resolved-text-muted)]",
|
|
13
13
|
container: "",
|
|
14
|
-
hint: "text-xs text-[var(--
|
|
15
|
-
error: "text-xs text-[var(--
|
|
14
|
+
hint: "text-xs text-[var(--selaras-resolved-text-muted)]",
|
|
15
|
+
error: "text-xs text-[var(--selaras-resolved-color-danger-text)]"
|
|
16
16
|
},
|
|
17
17
|
variants: {
|
|
18
18
|
// Scales FormField's own label/description/hint/error text to match
|
|
@@ -2,16 +2,16 @@ export declare const headerTheme: import("tailwind-variants").TVReturnType<{
|
|
|
2
2
|
[key: string]: {
|
|
3
3
|
[key: string]: import("tailwind-variants").ClassValue | {
|
|
4
4
|
root?: import("tailwind-variants").ClassValue;
|
|
5
|
-
right?: import("tailwind-variants").ClassValue;
|
|
6
5
|
left?: import("tailwind-variants").ClassValue;
|
|
6
|
+
right?: import("tailwind-variants").ClassValue;
|
|
7
7
|
};
|
|
8
8
|
};
|
|
9
9
|
} | {
|
|
10
10
|
[x: string]: {
|
|
11
11
|
[x: string]: import("tailwind-variants").ClassValue | {
|
|
12
12
|
root?: import("tailwind-variants").ClassValue;
|
|
13
|
-
right?: import("tailwind-variants").ClassValue;
|
|
14
13
|
left?: import("tailwind-variants").ClassValue;
|
|
14
|
+
right?: import("tailwind-variants").ClassValue;
|
|
15
15
|
};
|
|
16
16
|
};
|
|
17
17
|
} | {}, {
|
|
@@ -22,8 +22,8 @@ export declare const headerTheme: import("tailwind-variants").TVReturnType<{
|
|
|
22
22
|
[key: string]: {
|
|
23
23
|
[key: string]: import("tailwind-variants").ClassValue | {
|
|
24
24
|
root?: import("tailwind-variants").ClassValue;
|
|
25
|
-
right?: import("tailwind-variants").ClassValue;
|
|
26
25
|
left?: import("tailwind-variants").ClassValue;
|
|
26
|
+
right?: import("tailwind-variants").ClassValue;
|
|
27
27
|
};
|
|
28
28
|
};
|
|
29
29
|
} | {}, {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { tv } from "tailwind-variants";
|
|
2
2
|
export const headerTheme = tv({
|
|
3
3
|
slots: {
|
|
4
|
-
root: "sticky top-0 z-20 flex h-16 shrink-0 items-center justify-between gap-4 border-b border-[var(--
|
|
4
|
+
root: "sticky top-0 z-20 flex h-16 shrink-0 items-center justify-between gap-4 border-b border-[var(--selaras-resolved-border-default)] bg-[var(--selaras-resolved-surface-default)] px-4 sm:px-6",
|
|
5
5
|
left: "flex min-w-0 items-center gap-2",
|
|
6
6
|
right: "flex shrink-0 items-center gap-2"
|
|
7
7
|
}
|
|
@@ -1,24 +1,15 @@
|
|
|
1
1
|
export declare const iconTheme: import("tailwind-variants").TVReturnType<{
|
|
2
2
|
color: {
|
|
3
|
-
primary:
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
base: string;
|
|
14
|
-
};
|
|
15
|
-
danger: {
|
|
16
|
-
base: string;
|
|
17
|
-
};
|
|
18
|
-
info: {
|
|
19
|
-
base: string;
|
|
20
|
-
};
|
|
21
|
-
warning: {
|
|
3
|
+
primary: "";
|
|
4
|
+
neutral: "";
|
|
5
|
+
secondary: "";
|
|
6
|
+
success: "";
|
|
7
|
+
danger: "";
|
|
8
|
+
info: "";
|
|
9
|
+
warning: "";
|
|
10
|
+
};
|
|
11
|
+
colored: {
|
|
12
|
+
true: {
|
|
22
13
|
base: string;
|
|
23
14
|
};
|
|
24
15
|
};
|
|
@@ -26,25 +17,16 @@ export declare const iconTheme: import("tailwind-variants").TVReturnType<{
|
|
|
26
17
|
base: string;
|
|
27
18
|
}, undefined, {
|
|
28
19
|
color: {
|
|
29
|
-
primary:
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
base: string;
|
|
40
|
-
};
|
|
41
|
-
danger: {
|
|
42
|
-
base: string;
|
|
43
|
-
};
|
|
44
|
-
info: {
|
|
45
|
-
base: string;
|
|
46
|
-
};
|
|
47
|
-
warning: {
|
|
20
|
+
primary: "";
|
|
21
|
+
neutral: "";
|
|
22
|
+
secondary: "";
|
|
23
|
+
success: "";
|
|
24
|
+
danger: "";
|
|
25
|
+
info: "";
|
|
26
|
+
warning: "";
|
|
27
|
+
};
|
|
28
|
+
colored: {
|
|
29
|
+
true: {
|
|
48
30
|
base: string;
|
|
49
31
|
};
|
|
50
32
|
};
|
|
@@ -52,25 +34,16 @@ export declare const iconTheme: import("tailwind-variants").TVReturnType<{
|
|
|
52
34
|
base: string;
|
|
53
35
|
}, import("tailwind-variants").TVReturnTypeLike<{
|
|
54
36
|
color: {
|
|
55
|
-
primary:
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
base: string;
|
|
66
|
-
};
|
|
67
|
-
danger: {
|
|
68
|
-
base: string;
|
|
69
|
-
};
|
|
70
|
-
info: {
|
|
71
|
-
base: string;
|
|
72
|
-
};
|
|
73
|
-
warning: {
|
|
37
|
+
primary: "";
|
|
38
|
+
neutral: "";
|
|
39
|
+
secondary: "";
|
|
40
|
+
success: "";
|
|
41
|
+
danger: "";
|
|
42
|
+
info: "";
|
|
43
|
+
warning: "";
|
|
44
|
+
};
|
|
45
|
+
colored: {
|
|
46
|
+
true: {
|
|
74
47
|
base: string;
|
|
75
48
|
};
|
|
76
49
|
};
|
|
@@ -6,7 +6,7 @@ export const iconTheme = tv({
|
|
|
6
6
|
variants: {
|
|
7
7
|
// No default - an unset color inherits currentColor from wherever the
|
|
8
8
|
// icon is placed, which is what every internal usage elsewhere in this
|
|
9
|
-
// library already relies on (e.g. Input's --
|
|
9
|
+
// library already relies on (e.g. Input's --selaras-resolved-text-muted icon slots).
|
|
10
10
|
// No size variant (deliberately) - every internal consumer needs its
|
|
11
11
|
// own precise size (size-2.5/3/3.5/4/4.5/5/6 depending on component and
|
|
12
12
|
// slot), none of which map cleanly onto a shared sm/md/lg scale. Pass
|
|
@@ -14,13 +14,23 @@ export const iconTheme = tv({
|
|
|
14
14
|
// icon usage - a raw `class="text-*"` still overrides `color` too,
|
|
15
15
|
// since both just flow through the same tailwind-merge below.
|
|
16
16
|
color: {
|
|
17
|
-
primary:
|
|
18
|
-
neutral:
|
|
19
|
-
secondary:
|
|
20
|
-
success:
|
|
21
|
-
danger:
|
|
22
|
-
info:
|
|
23
|
-
warning:
|
|
17
|
+
primary: "",
|
|
18
|
+
neutral: "",
|
|
19
|
+
secondary: "",
|
|
20
|
+
success: "",
|
|
21
|
+
danger: "",
|
|
22
|
+
info: "",
|
|
23
|
+
warning: ""
|
|
24
|
+
},
|
|
25
|
+
// Runtime derives this from the optional color prop. It supplies the
|
|
26
|
+
// shared semantic treatment even when `color` is an application-registered
|
|
27
|
+
// role with no finite built-in branch, while leaving uncolored icons free
|
|
28
|
+
// to inherit currentColor.
|
|
29
|
+
colored: {
|
|
30
|
+
true: { base: "text-[var(--_selaras-color-indicator)]" }
|
|
24
31
|
}
|
|
25
|
-
}
|
|
32
|
+
},
|
|
33
|
+
compoundVariants: [
|
|
34
|
+
{ color: "neutral", colored: true, class: { base: "text-[var(--selaras-resolved-text-default)]" } }
|
|
35
|
+
]
|
|
26
36
|
});
|
|
@@ -14,27 +14,13 @@ export declare const inputNumberTheme: import("tailwind-variants").TVReturnType<
|
|
|
14
14
|
};
|
|
15
15
|
};
|
|
16
16
|
color: {
|
|
17
|
-
primary:
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
root: string;
|
|
25
|
-
};
|
|
26
|
-
success: {
|
|
27
|
-
root: string;
|
|
28
|
-
};
|
|
29
|
-
danger: {
|
|
30
|
-
root: string;
|
|
31
|
-
};
|
|
32
|
-
info: {
|
|
33
|
-
root: string;
|
|
34
|
-
};
|
|
35
|
-
warning: {
|
|
36
|
-
root: string;
|
|
37
|
-
};
|
|
17
|
+
primary: "";
|
|
18
|
+
neutral: "";
|
|
19
|
+
secondary: "";
|
|
20
|
+
success: "";
|
|
21
|
+
danger: "";
|
|
22
|
+
info: "";
|
|
23
|
+
warning: "";
|
|
38
24
|
};
|
|
39
25
|
orientation: {
|
|
40
26
|
horizontal: {};
|
|
@@ -68,27 +54,13 @@ export declare const inputNumberTheme: import("tailwind-variants").TVReturnType<
|
|
|
68
54
|
};
|
|
69
55
|
};
|
|
70
56
|
color: {
|
|
71
|
-
primary:
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
root: string;
|
|
79
|
-
};
|
|
80
|
-
success: {
|
|
81
|
-
root: string;
|
|
82
|
-
};
|
|
83
|
-
danger: {
|
|
84
|
-
root: string;
|
|
85
|
-
};
|
|
86
|
-
info: {
|
|
87
|
-
root: string;
|
|
88
|
-
};
|
|
89
|
-
warning: {
|
|
90
|
-
root: string;
|
|
91
|
-
};
|
|
57
|
+
primary: "";
|
|
58
|
+
neutral: "";
|
|
59
|
+
secondary: "";
|
|
60
|
+
success: "";
|
|
61
|
+
danger: "";
|
|
62
|
+
info: "";
|
|
63
|
+
warning: "";
|
|
92
64
|
};
|
|
93
65
|
orientation: {
|
|
94
66
|
horizontal: {};
|
|
@@ -122,27 +94,13 @@ export declare const inputNumberTheme: import("tailwind-variants").TVReturnType<
|
|
|
122
94
|
};
|
|
123
95
|
};
|
|
124
96
|
color: {
|
|
125
|
-
primary:
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
root: string;
|
|
133
|
-
};
|
|
134
|
-
success: {
|
|
135
|
-
root: string;
|
|
136
|
-
};
|
|
137
|
-
danger: {
|
|
138
|
-
root: string;
|
|
139
|
-
};
|
|
140
|
-
info: {
|
|
141
|
-
root: string;
|
|
142
|
-
};
|
|
143
|
-
warning: {
|
|
144
|
-
root: string;
|
|
145
|
-
};
|
|
97
|
+
primary: "";
|
|
98
|
+
neutral: "";
|
|
99
|
+
secondary: "";
|
|
100
|
+
success: "";
|
|
101
|
+
danger: "";
|
|
102
|
+
info: "";
|
|
103
|
+
warning: "";
|
|
146
104
|
};
|
|
147
105
|
orientation: {
|
|
148
106
|
horizontal: {};
|
|
@@ -25,12 +25,12 @@ export const inputNumberTheme = tv({
|
|
|
25
25
|
// bg's own hover change is left unscoped - there's no competing
|
|
26
26
|
// focus-driven background to conflict with, so it can keep showing
|
|
27
27
|
// regardless of focus state.
|
|
28
|
-
root: "relative inline-flex w-full items-center gap-1 rounded-[var(--
|
|
28
|
+
root: "relative inline-flex w-full items-center gap-1 rounded-[var(--selaras-resolved-radius-md)] bg-[var(--selaras-resolved-surface-default)] ring-1 ring-inset ring-[var(--selaras-resolved-border-default)] transition-[color,background-color,box-shadow] not-focus-within:hover:ring-[var(--selaras-resolved-border-hover)] hover:bg-[var(--selaras-resolved-surface-elevated)] focus-within:ring-2 focus-within:ring-[var(--_selaras-color-focus)] has-[input:disabled]:opacity-50 has-[input:disabled]:pointer-events-none",
|
|
29
29
|
// Borderless/transparent - root already carries the visual box, this is
|
|
30
30
|
// just the editable text. Centered + tabular-nums so digits don't shift
|
|
31
31
|
// width as the value changes - orientation="vertical" overrides the
|
|
32
32
|
// centering below, since the stepper only occupies the end edge there.
|
|
33
|
-
input: "w-full min-w-0 flex-1 border-0 bg-transparent text-center tabular-nums text-[var(--
|
|
33
|
+
input: "w-full min-w-0 flex-1 border-0 bg-transparent text-center tabular-nums text-[var(--selaras-resolved-text-default)] outline-none placeholder:text-[var(--selaras-resolved-text-muted)] disabled:cursor-not-allowed",
|
|
34
34
|
// orientation="vertical" only - a compact up/down pair pinned to the
|
|
35
35
|
// end edge, replacing the two full-height flanking buttons.
|
|
36
36
|
stepper: "absolute end-1 inset-y-1 flex flex-col justify-center gap-px",
|
|
@@ -39,7 +39,7 @@ export const inputNumberTheme = tv({
|
|
|
39
39
|
// own size scale has no step small enough for two of these to stack
|
|
40
40
|
// inside one field's own height, and fighting its fixed sm classes with
|
|
41
41
|
// overrides is more fragile than a plain, purpose-built button here.
|
|
42
|
-
stepperButton: "flex h-3.5 w-5 items-center justify-center rounded-[var(--
|
|
42
|
+
stepperButton: "flex h-3.5 w-5 items-center justify-center rounded-[var(--selaras-resolved-radius-sm)] text-[var(--selaras-resolved-text-muted)] transition-colors hover:text-[var(--selaras-resolved-text-default)] disabled:opacity-50 disabled:pointer-events-none"
|
|
43
43
|
},
|
|
44
44
|
variants: {
|
|
45
45
|
size: {
|
|
@@ -47,16 +47,16 @@ export const inputNumberTheme = tv({
|
|
|
47
47
|
md: { root: "h-10 px-1.5", input: "text-sm" },
|
|
48
48
|
lg: { root: "h-11 px-2", input: "text-base" }
|
|
49
49
|
},
|
|
50
|
-
// Focus-ring color only - the resting ring stays --
|
|
50
|
+
// Focus-ring color only - the resting ring stays --selaras-resolved-border-default regardless
|
|
51
51
|
// of `color`, matching Input's own scope (see input.ts).
|
|
52
52
|
color: {
|
|
53
|
-
primary:
|
|
54
|
-
neutral:
|
|
55
|
-
secondary:
|
|
56
|
-
success:
|
|
57
|
-
danger:
|
|
58
|
-
info:
|
|
59
|
-
warning:
|
|
53
|
+
primary: "",
|
|
54
|
+
neutral: "",
|
|
55
|
+
secondary: "",
|
|
56
|
+
success: "",
|
|
57
|
+
danger: "",
|
|
58
|
+
info: "",
|
|
59
|
+
warning: ""
|
|
60
60
|
},
|
|
61
61
|
orientation: {
|
|
62
62
|
horizontal: {},
|
|
@@ -66,7 +66,7 @@ export const inputNumberTheme = tv({
|
|
|
66
66
|
// focus-within:ring override win over color's - see input.ts for why
|
|
67
67
|
// declaration order (not runtime call order) is what decides this.
|
|
68
68
|
invalid: {
|
|
69
|
-
true: { root: "ring-[var(--
|
|
69
|
+
true: { root: "ring-[var(--_selaras-color-border)] hover:ring-[var(--_selaras-color-border)] focus-within:ring-[var(--_selaras-color-focus)]" }
|
|
70
70
|
}
|
|
71
71
|
},
|
|
72
72
|
defaultVariants: {
|