@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
package/package.json
CHANGED
|
@@ -1,10 +1,27 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sewadah/selaras",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
5
|
-
"description": "A UI component library for Nuxt",
|
|
4
|
+
"version": "0.3.0",
|
|
5
|
+
"description": "A UI component library for Nuxt, built on Reka UI and Tailwind v4",
|
|
6
|
+
"author": "Wicaksana Pratama <wicaksanapratama@gmail.com>",
|
|
6
7
|
"license": "MIT",
|
|
8
|
+
"homepage": "https://github.com/sewadahapp/selaras#readme",
|
|
7
9
|
"repository": "sewadahapp/selaras",
|
|
10
|
+
"bugs": "https://github.com/sewadahapp/selaras/issues",
|
|
11
|
+
"keywords": [
|
|
12
|
+
"nuxt",
|
|
13
|
+
"nuxt-module",
|
|
14
|
+
"vue",
|
|
15
|
+
"vue-components",
|
|
16
|
+
"component-library",
|
|
17
|
+
"ui-library",
|
|
18
|
+
"ui-kit",
|
|
19
|
+
"design-system",
|
|
20
|
+
"tailwindcss",
|
|
21
|
+
"reka-ui",
|
|
22
|
+
"headless-ui",
|
|
23
|
+
"oklch"
|
|
24
|
+
],
|
|
8
25
|
"exports": {
|
|
9
26
|
".": {
|
|
10
27
|
"types": "./dist/types.d.mts",
|
|
@@ -19,9 +36,25 @@
|
|
|
19
36
|
"types": "./dist/runtime/types/index.d.ts",
|
|
20
37
|
"import": "./dist/runtime/types/index.js"
|
|
21
38
|
},
|
|
39
|
+
"./table": {
|
|
40
|
+
"types": "./dist/runtime/table.d.ts",
|
|
41
|
+
"import": "./dist/runtime/table.js"
|
|
42
|
+
},
|
|
43
|
+
"./theme": {
|
|
44
|
+
"types": "./dist/runtime/theme-api.d.ts",
|
|
45
|
+
"import": "./dist/runtime/theme-api.js"
|
|
46
|
+
},
|
|
47
|
+
"./components/DrawerRenderer*": {},
|
|
48
|
+
"./components/ModalRenderer*": {},
|
|
49
|
+
"./components/NavigationMenuAccordionItem*": {},
|
|
50
|
+
"./components/NavigationMenuFlyoutList*": {},
|
|
51
|
+
"./components/NavigationMenuFlyoutTrigger*": {},
|
|
52
|
+
"./components/SlideoverRenderer*": {},
|
|
22
53
|
"./components/*": "./dist/runtime/components/*",
|
|
23
54
|
"./theme.css": "./dist/runtime/theme.css",
|
|
24
|
-
"./
|
|
55
|
+
"./structural.css": "./dist/runtime/structural.css",
|
|
56
|
+
"./prose.css": "./dist/runtime/prose.css",
|
|
57
|
+
"./tokens/default-colors.tokens.json": "./dist/tokens/default-colors.tokens.json"
|
|
25
58
|
},
|
|
26
59
|
"main": "./dist/module.mjs",
|
|
27
60
|
"style": "./dist/runtime/theme.css",
|
|
@@ -36,6 +69,18 @@
|
|
|
36
69
|
"types": [
|
|
37
70
|
"./dist/runtime/types/index.d.ts"
|
|
38
71
|
],
|
|
72
|
+
"table": [
|
|
73
|
+
"./dist/runtime/table.d.ts"
|
|
74
|
+
],
|
|
75
|
+
"theme": [
|
|
76
|
+
"./dist/runtime/theme-api.d.ts"
|
|
77
|
+
],
|
|
78
|
+
"components/DrawerRenderer*": [],
|
|
79
|
+
"components/ModalRenderer*": [],
|
|
80
|
+
"components/NavigationMenuAccordionItem*": [],
|
|
81
|
+
"components/NavigationMenuFlyoutList*": [],
|
|
82
|
+
"components/NavigationMenuFlyoutTrigger*": [],
|
|
83
|
+
"components/SlideoverRenderer*": [],
|
|
39
84
|
"components/*": [
|
|
40
85
|
"./dist/runtime/components/*"
|
|
41
86
|
]
|
|
@@ -44,33 +89,54 @@
|
|
|
44
89
|
"files": [
|
|
45
90
|
"dist"
|
|
46
91
|
],
|
|
92
|
+
"engines": {
|
|
93
|
+
"node": "^22.19.0 || ^24.11.0 || >=26.0.0"
|
|
94
|
+
},
|
|
47
95
|
"workspaces": [
|
|
48
|
-
"
|
|
96
|
+
"docs",
|
|
97
|
+
"packages/docs"
|
|
49
98
|
],
|
|
50
99
|
"scripts": {
|
|
51
100
|
"prepack": "nuxt-module-build build",
|
|
52
|
-
"dev": "bun run
|
|
53
|
-
"dev:build": "
|
|
54
|
-
"dev:generate": "
|
|
55
|
-
"dev:preview": "
|
|
56
|
-
"dev:prepare": "
|
|
57
|
-
"
|
|
101
|
+
"dev": "bun run docs:dev",
|
|
102
|
+
"dev:build": "bun run docs:build",
|
|
103
|
+
"dev:generate": "bun run docs:generate",
|
|
104
|
+
"dev:preview": "bunx nuxt preview docs",
|
|
105
|
+
"dev:prepare": "bun run docs:prepare",
|
|
106
|
+
"docs:build": "nuxt build docs",
|
|
107
|
+
"docs:dev": "bun run docs:prepare && nuxt dev docs",
|
|
108
|
+
"docs:generate": "nuxt generate docs",
|
|
109
|
+
"docs:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxt prepare docs && bun run scripts/sync-workspace-dist.mjs",
|
|
110
|
+
"docs:types": "cd docs && vue-tsc --noEmit",
|
|
111
|
+
"docs-template:dev": "bun run docs-template:prepare && nuxt dev packages/docs/preview",
|
|
112
|
+
"docs-template:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxt prepare packages/docs/preview",
|
|
113
|
+
"release": "bun run release:both",
|
|
114
|
+
"release:both": "bun run release:selaras && bun run release:docs",
|
|
115
|
+
"release:selaras": "bun run lint && bun run test && (if [ -n \"$RELEASE_VERSION\" ]; then npx changelogen --bump -r \"$RELEASE_VERSION\"; elif [ \"${RELEASE_BUMP:-auto}\" = \"auto\" ]; then npx changelogen --bump; else npx changelogen --bump \"--$RELEASE_BUMP\"; fi) && bun run test:release && npm publish --access public && bash scripts/tag-and-push-release.sh selaras && changelogen gh release",
|
|
116
|
+
"release:docs": "node scripts/bump-docs-layer.mjs && node scripts/prepare-docs-layer-release.mjs --verify && bun run test:release && node scripts/prepare-docs-layer-release.mjs && (cd packages/docs && npm publish --access public) && node scripts/prepare-docs-layer-release.mjs --restore && bash scripts/tag-and-push-release.sh selaras-docs",
|
|
58
117
|
"lint": "eslint .",
|
|
59
118
|
"lint:fix": "eslint --fix",
|
|
60
119
|
"test": "vitest run",
|
|
120
|
+
"test:browser": "playwright test",
|
|
121
|
+
"test:browser:install": "playwright install chromium",
|
|
122
|
+
"test:compat": "node scripts/test-compatibility.mjs",
|
|
123
|
+
"test:release": "bun run test:types && SELARAS_PACKED_BROWSER=1 bun run test:compat",
|
|
61
124
|
"test:watch": "vitest watch",
|
|
62
|
-
"test:types": "vue-tsc --noEmit &&
|
|
125
|
+
"test:types": "vue-tsc --noEmit && bun run docs:types",
|
|
126
|
+
"tokens:check": "node scripts/generate-default-colors.mjs --check",
|
|
127
|
+
"tokens:generate": "node scripts/generate-default-colors.mjs"
|
|
63
128
|
},
|
|
64
129
|
"peerDependencies": {
|
|
65
|
-
"
|
|
130
|
+
"nuxt": "^4.5.2",
|
|
131
|
+
"tailwindcss": "^4.3.0"
|
|
66
132
|
},
|
|
67
133
|
"dependencies": {
|
|
68
134
|
"@internationalized/date": "^3.5.0",
|
|
69
135
|
"@nuxt/icon": "^1.10.3",
|
|
70
136
|
"@nuxt/kit": "^4.5.2",
|
|
71
137
|
"@nuxtjs/color-mode": "^4.0.1",
|
|
72
|
-
"@tailwindcss/oxide": "^4.
|
|
73
|
-
"@tailwindcss/vite": "^4.
|
|
138
|
+
"@tailwindcss/oxide": "^4.3.0",
|
|
139
|
+
"@tailwindcss/vite": "^4.3.0",
|
|
74
140
|
"@tanstack/vue-table": "^9.1.2",
|
|
75
141
|
"@tanstack/vue-virtual": "^3.13.36",
|
|
76
142
|
"reka-ui": "^2.2.0",
|
|
@@ -84,15 +150,16 @@
|
|
|
84
150
|
"@nuxt/module-builder": "^1.0.3",
|
|
85
151
|
"@nuxt/schema": "^4.5.2",
|
|
86
152
|
"@nuxt/test-utils": "^4.1.0",
|
|
153
|
+
"@playwright/test": "^1.63.0",
|
|
87
154
|
"@types/node": "latest",
|
|
88
155
|
"@vue/test-utils": "^2.4.11",
|
|
89
|
-
"better-sqlite3": "^13.0.3",
|
|
90
156
|
"changelogen": "^0.6.2",
|
|
91
157
|
"eslint": "^10.8.1",
|
|
92
158
|
"happy-dom": "^20.11.6",
|
|
93
159
|
"nuxt": "^4.5.2",
|
|
94
|
-
"tailwindcss": "^4.
|
|
160
|
+
"tailwindcss": "^4.3.0",
|
|
95
161
|
"typescript": "^6.0.3",
|
|
162
|
+
"vee-validate": "4",
|
|
96
163
|
"vitest": "^4.1.10",
|
|
97
164
|
"vue-tsc": "^3.3.9"
|
|
98
165
|
}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import type { ComputedRef } from 'vue';
|
|
2
|
-
export interface SelectOption {
|
|
3
|
-
[key: string]: unknown;
|
|
4
|
-
disabled?: boolean;
|
|
5
|
-
}
|
|
6
|
-
export interface SelectOptionGroup {
|
|
7
|
-
label: string;
|
|
8
|
-
items: SelectOption[];
|
|
9
|
-
}
|
|
10
|
-
export type SelectItems = (SelectOption | SelectOptionGroup)[];
|
|
11
|
-
export declare function isOptionGroup(entry: SelectOption | SelectOptionGroup): entry is SelectOptionGroup;
|
|
12
|
-
/** Flattens groups into a plain option list - groups lose their header when virtualized. */
|
|
13
|
-
export declare function flattenItems(items: SelectItems): SelectOption[];
|
|
14
|
-
interface SelectLikeProps {
|
|
15
|
-
items: SelectItems;
|
|
16
|
-
valueKey?: string;
|
|
17
|
-
labelKey?: string;
|
|
18
|
-
modelValue?: string | string[];
|
|
19
|
-
multiple?: boolean;
|
|
20
|
-
displayMode?: 'comma' | 'chip';
|
|
21
|
-
maxChips?: number;
|
|
22
|
-
}
|
|
23
|
-
export interface ResolvedOption {
|
|
24
|
-
value: string;
|
|
25
|
-
label: string;
|
|
26
|
-
disabled: boolean;
|
|
27
|
-
raw: SelectOption;
|
|
28
|
-
}
|
|
29
|
-
export declare function useComboboxSelect(props: SelectLikeProps, emit: (event: 'update:modelValue', value: string | string[] | undefined) => void, { creatable }?: {
|
|
30
|
-
creatable?: boolean;
|
|
31
|
-
}): {
|
|
32
|
-
flatOptions: ComputedRef<ResolvedOption[]>;
|
|
33
|
-
selectedValues: ComputedRef<string[]>;
|
|
34
|
-
selectedOptions: ComputedRef<ResolvedOption[]>;
|
|
35
|
-
visibleOptions: ComputedRef<ResolvedOption[]>;
|
|
36
|
-
overflowOptions: ComputedRef<ResolvedOption[]>;
|
|
37
|
-
commaText: ComputedRef<string>;
|
|
38
|
-
resolveOption: (value: string) => ResolvedOption;
|
|
39
|
-
toOption: (raw: SelectOption) => ResolvedOption;
|
|
40
|
-
setValue: (value: string | string[] | undefined) => void;
|
|
41
|
-
removeValue: (value: string) => void;
|
|
42
|
-
hasMatchingOption: (text: string) => boolean;
|
|
43
|
-
commitCreatableText: (rawText: string) => boolean;
|
|
44
|
-
};
|
|
45
|
-
export {};
|