@nuxt/ui 4.2.0 → 4.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/.nuxt/ui.css +154 -0
- package/README.md +2 -1
- package/dist/module.json +1 -1
- package/dist/module.mjs +2 -2
- package/dist/runtime/components/Accordion.d.vue.ts +3 -3
- package/dist/runtime/components/Accordion.vue +1 -1
- package/dist/runtime/components/Accordion.vue.d.ts +3 -3
- package/dist/runtime/components/Alert.d.vue.ts +3 -5
- package/dist/runtime/components/Alert.vue +2 -2
- package/dist/runtime/components/Alert.vue.d.ts +3 -5
- package/dist/runtime/components/App.d.vue.ts +3 -1
- package/dist/runtime/components/App.vue.d.ts +3 -1
- package/dist/runtime/components/AuthForm.d.vue.ts +8 -46
- package/dist/runtime/components/AuthForm.vue +1 -1
- package/dist/runtime/components/AuthForm.vue.d.ts +8 -46
- package/dist/runtime/components/Avatar.vue +1 -1
- package/dist/runtime/components/Badge.d.vue.ts +1 -3
- package/dist/runtime/components/Badge.vue +3 -3
- package/dist/runtime/components/Badge.vue.d.ts +1 -3
- package/dist/runtime/components/Banner.d.vue.ts +2 -2
- package/dist/runtime/components/Banner.vue +2 -2
- package/dist/runtime/components/Banner.vue.d.ts +2 -2
- package/dist/runtime/components/BlogPost.d.vue.ts +1 -4
- package/dist/runtime/components/BlogPost.vue +0 -1
- package/dist/runtime/components/BlogPost.vue.d.ts +1 -4
- package/dist/runtime/components/BlogPosts.d.vue.ts +3 -1
- package/dist/runtime/components/BlogPosts.vue.d.ts +3 -1
- package/dist/runtime/components/Breadcrumb.d.vue.ts +3 -1
- package/dist/runtime/components/Breadcrumb.vue +1 -1
- package/dist/runtime/components/Breadcrumb.vue.d.ts +3 -1
- package/dist/runtime/components/Button.vue +4 -4
- package/dist/runtime/components/Calendar.d.vue.ts +8 -11
- package/dist/runtime/components/Calendar.vue +4 -4
- package/dist/runtime/components/Calendar.vue.d.ts +8 -11
- package/dist/runtime/components/Carousel.d.vue.ts +6 -6
- package/dist/runtime/components/Carousel.vue +24 -2
- package/dist/runtime/components/Carousel.vue.d.ts +6 -6
- package/dist/runtime/components/ChangelogVersion.d.vue.ts +1 -4
- package/dist/runtime/components/ChangelogVersion.vue +0 -1
- package/dist/runtime/components/ChangelogVersion.vue.d.ts +1 -4
- package/dist/runtime/components/ChangelogVersions.d.vue.ts +3 -1
- package/dist/runtime/components/ChangelogVersions.vue.d.ts +3 -1
- package/dist/runtime/components/ChatMessage.d.vue.ts +1 -3
- package/dist/runtime/components/ChatMessage.vue +1 -1
- package/dist/runtime/components/ChatMessage.vue.d.ts +1 -3
- package/dist/runtime/components/ChatMessages.d.vue.ts +3 -8
- package/dist/runtime/components/ChatMessages.vue +1 -1
- package/dist/runtime/components/ChatMessages.vue.d.ts +3 -8
- package/dist/runtime/components/ChatPrompt.d.vue.ts +2 -7
- package/dist/runtime/components/ChatPrompt.vue +2 -2
- package/dist/runtime/components/ChatPrompt.vue.d.ts +2 -7
- package/dist/runtime/components/ChatPromptSubmit.d.vue.ts +9 -17
- package/dist/runtime/components/ChatPromptSubmit.vue +14 -33
- package/dist/runtime/components/ChatPromptSubmit.vue.d.ts +9 -17
- package/dist/runtime/components/Checkbox.vue +2 -2
- package/dist/runtime/components/CheckboxGroup.d.vue.ts +3 -4
- package/dist/runtime/components/CheckboxGroup.vue +1 -1
- package/dist/runtime/components/CheckboxGroup.vue.d.ts +3 -4
- package/dist/runtime/components/Chip.d.vue.ts +1 -4
- package/dist/runtime/components/Chip.vue.d.ts +1 -4
- package/dist/runtime/components/Collapsible.d.vue.ts +1 -3
- package/dist/runtime/components/Collapsible.vue.d.ts +1 -3
- package/dist/runtime/components/ColorPicker.d.vue.ts +1 -5
- package/dist/runtime/components/ColorPicker.vue.d.ts +1 -5
- package/dist/runtime/components/CommandPalette.d.vue.ts +9 -14
- package/dist/runtime/components/CommandPalette.vue +7 -7
- package/dist/runtime/components/CommandPalette.vue.d.ts +9 -14
- package/dist/runtime/components/ContextMenu.d.vue.ts +9 -5
- package/dist/runtime/components/ContextMenu.vue +3 -3
- package/dist/runtime/components/ContextMenu.vue.d.ts +9 -5
- package/dist/runtime/components/ContextMenuContent.d.vue.ts +3 -7
- package/dist/runtime/components/ContextMenuContent.vue +5 -5
- package/dist/runtime/components/ContextMenuContent.vue.d.ts +3 -7
- package/dist/runtime/components/DashboardGroup.d.vue.ts +1 -6
- package/dist/runtime/components/DashboardGroup.vue.d.ts +1 -6
- package/dist/runtime/components/DashboardNavbar.d.vue.ts +3 -6
- package/dist/runtime/components/DashboardNavbar.vue +1 -1
- package/dist/runtime/components/DashboardNavbar.vue.d.ts +3 -6
- package/dist/runtime/components/DashboardPanel.d.vue.ts +1 -4
- package/dist/runtime/components/DashboardPanel.vue.d.ts +1 -4
- package/dist/runtime/components/DashboardSearch.d.vue.ts +4 -9
- package/dist/runtime/components/DashboardSearch.vue +3 -3
- package/dist/runtime/components/DashboardSearch.vue.d.ts +4 -9
- package/dist/runtime/components/DashboardSearchButton.d.vue.ts +3 -8
- package/dist/runtime/components/DashboardSearchButton.vue +5 -24
- package/dist/runtime/components/DashboardSearchButton.vue.d.ts +3 -8
- package/dist/runtime/components/DashboardSidebar.d.vue.ts +5 -6
- package/dist/runtime/components/DashboardSidebar.vue.d.ts +5 -6
- package/dist/runtime/components/DashboardSidebarCollapse.d.vue.ts +3 -7
- package/dist/runtime/components/DashboardSidebarCollapse.vue +5 -24
- package/dist/runtime/components/DashboardSidebarCollapse.vue.d.ts +3 -7
- package/dist/runtime/components/DashboardSidebarToggle.d.vue.ts +3 -7
- package/dist/runtime/components/DashboardSidebarToggle.vue +5 -24
- package/dist/runtime/components/DashboardSidebarToggle.vue.d.ts +3 -7
- package/dist/runtime/components/Drawer.d.vue.ts +1 -8
- package/dist/runtime/components/Drawer.vue.d.ts +1 -8
- package/dist/runtime/components/DropdownMenu.d.vue.ts +9 -5
- package/dist/runtime/components/DropdownMenu.vue +3 -3
- package/dist/runtime/components/DropdownMenu.vue.d.ts +9 -5
- package/dist/runtime/components/DropdownMenuContent.d.vue.ts +3 -7
- package/dist/runtime/components/DropdownMenuContent.vue +5 -5
- package/dist/runtime/components/DropdownMenuContent.vue.d.ts +3 -7
- package/dist/runtime/components/Editor.d.vue.ts +87 -0
- package/dist/runtime/components/Editor.vue +185 -0
- package/dist/runtime/components/Editor.vue.d.ts +87 -0
- package/dist/runtime/components/EditorDragHandle.d.vue.ts +64 -0
- package/dist/runtime/components/EditorDragHandle.vue +127 -0
- package/dist/runtime/components/EditorDragHandle.vue.d.ts +64 -0
- package/dist/runtime/components/EditorEmojiMenu.d.vue.ts +35 -0
- package/dist/runtime/components/EditorEmojiMenu.vue +70 -0
- package/dist/runtime/components/EditorEmojiMenu.vue.d.ts +35 -0
- package/dist/runtime/components/EditorMentionMenu.d.vue.ts +39 -0
- package/dist/runtime/components/EditorMentionMenu.vue +72 -0
- package/dist/runtime/components/EditorMentionMenu.vue.d.ts +39 -0
- package/dist/runtime/components/EditorSuggestionMenu.d.vue.ts +52 -0
- package/dist/runtime/components/EditorSuggestionMenu.vue +80 -0
- package/dist/runtime/components/EditorSuggestionMenu.vue.d.ts +52 -0
- package/dist/runtime/components/EditorToolbar.d.vue.ts +90 -0
- package/dist/runtime/components/EditorToolbar.vue +242 -0
- package/dist/runtime/components/EditorToolbar.vue.d.ts +90 -0
- package/dist/runtime/components/Empty.vue +1 -1
- package/dist/runtime/components/Error.d.vue.ts +2 -5
- package/dist/runtime/components/Error.vue.d.ts +2 -5
- package/dist/runtime/components/FieldGroup.d.vue.ts +1 -3
- package/dist/runtime/components/FieldGroup.vue.d.ts +1 -3
- package/dist/runtime/components/FileUpload.d.vue.ts +5 -6
- package/dist/runtime/components/FileUpload.vue +3 -3
- package/dist/runtime/components/FileUpload.vue.d.ts +5 -6
- package/dist/runtime/components/Footer.d.vue.ts +1 -3
- package/dist/runtime/components/Footer.vue.d.ts +1 -3
- package/dist/runtime/components/FooterColumns.d.vue.ts +3 -1
- package/dist/runtime/components/FooterColumns.vue.d.ts +3 -1
- package/dist/runtime/components/Form.d.vue.ts +3 -4
- package/dist/runtime/components/Form.vue.d.ts +3 -4
- package/dist/runtime/components/FormField.d.vue.ts +5 -0
- package/dist/runtime/components/FormField.vue +6 -5
- package/dist/runtime/components/FormField.vue.d.ts +5 -0
- package/dist/runtime/components/Header.d.vue.ts +5 -5
- package/dist/runtime/components/Header.vue.d.ts +5 -5
- package/dist/runtime/components/Icon.d.vue.ts +1 -1
- package/dist/runtime/components/Icon.vue +1 -1
- package/dist/runtime/components/Icon.vue.d.ts +1 -1
- package/dist/runtime/components/Input.d.vue.ts +5 -7
- package/dist/runtime/components/Input.vue +4 -4
- package/dist/runtime/components/Input.vue.d.ts +5 -7
- package/dist/runtime/components/InputDate.d.vue.ts +4 -8
- package/dist/runtime/components/InputDate.vue +5 -5
- package/dist/runtime/components/InputDate.vue.d.ts +4 -8
- package/dist/runtime/components/InputMenu.d.vue.ts +9 -15
- package/dist/runtime/components/InputMenu.vue +20 -7
- package/dist/runtime/components/InputMenu.vue.d.ts +9 -15
- package/dist/runtime/components/InputNumber.d.vue.ts +7 -9
- package/dist/runtime/components/InputNumber.vue +2 -2
- package/dist/runtime/components/InputNumber.vue.d.ts +7 -9
- package/dist/runtime/components/InputTags.d.vue.ts +4 -10
- package/dist/runtime/components/InputTags.vue +5 -5
- package/dist/runtime/components/InputTags.vue.d.ts +4 -10
- package/dist/runtime/components/InputTime.d.vue.ts +3 -5
- package/dist/runtime/components/InputTime.vue +4 -4
- package/dist/runtime/components/InputTime.vue.d.ts +3 -5
- package/dist/runtime/components/Kbd.d.vue.ts +1 -3
- package/dist/runtime/components/Kbd.vue.d.ts +1 -3
- package/dist/runtime/components/Link.d.vue.ts +58 -8
- package/dist/runtime/components/Link.vue.d.ts +58 -8
- package/dist/runtime/components/LinkBase.d.vue.ts +1 -4
- package/dist/runtime/components/LinkBase.vue.d.ts +1 -4
- package/dist/runtime/components/Marquee.d.vue.ts +1 -5
- package/dist/runtime/components/Marquee.vue.d.ts +1 -5
- package/dist/runtime/components/Modal.d.vue.ts +3 -10
- package/dist/runtime/components/Modal.vue +1 -1
- package/dist/runtime/components/Modal.vue.d.ts +3 -10
- package/dist/runtime/components/NavigationMenu.d.vue.ts +3 -3
- package/dist/runtime/components/NavigationMenu.vue +2 -2
- package/dist/runtime/components/NavigationMenu.vue.d.ts +3 -3
- package/dist/runtime/components/PageAnchors.d.vue.ts +3 -1
- package/dist/runtime/components/PageAnchors.vue.d.ts +3 -1
- package/dist/runtime/components/PageAside.d.vue.ts +1 -3
- package/dist/runtime/components/PageAside.vue.d.ts +1 -3
- package/dist/runtime/components/PageCTA.d.vue.ts +1 -4
- package/dist/runtime/components/PageCTA.vue.d.ts +1 -4
- package/dist/runtime/components/PageCard.d.vue.ts +1 -3
- package/dist/runtime/components/PageCard.vue +1 -1
- package/dist/runtime/components/PageCard.vue.d.ts +1 -3
- package/dist/runtime/components/PageFeature.d.vue.ts +1 -3
- package/dist/runtime/components/PageFeature.vue +3 -3
- package/dist/runtime/components/PageFeature.vue.d.ts +1 -3
- package/dist/runtime/components/PageHero.d.vue.ts +1 -3
- package/dist/runtime/components/PageHero.vue.d.ts +1 -3
- package/dist/runtime/components/PageLinks.d.vue.ts +3 -1
- package/dist/runtime/components/PageLinks.vue.d.ts +3 -1
- package/dist/runtime/components/PageList.d.vue.ts +1 -3
- package/dist/runtime/components/PageList.vue.d.ts +1 -3
- package/dist/runtime/components/PageLogos.d.vue.ts +1 -3
- package/dist/runtime/components/PageLogos.vue.d.ts +1 -3
- package/dist/runtime/components/PageSection.d.vue.ts +1 -4
- package/dist/runtime/components/PageSection.vue +1 -1
- package/dist/runtime/components/PageSection.vue.d.ts +1 -4
- package/dist/runtime/components/Pagination.d.vue.ts +1 -12
- package/dist/runtime/components/Pagination.vue +5 -5
- package/dist/runtime/components/Pagination.vue.d.ts +1 -12
- package/dist/runtime/components/PinInput.d.vue.ts +4 -7
- package/dist/runtime/components/PinInput.vue +1 -1
- package/dist/runtime/components/PinInput.vue.d.ts +4 -7
- package/dist/runtime/components/Popover.d.vue.ts +3 -4
- package/dist/runtime/components/Popover.vue.d.ts +3 -4
- package/dist/runtime/components/PricingPlan.d.vue.ts +1 -3
- package/dist/runtime/components/PricingPlan.vue.d.ts +1 -3
- package/dist/runtime/components/PricingPlans.d.vue.ts +3 -1
- package/dist/runtime/components/PricingPlans.vue.d.ts +3 -1
- package/dist/runtime/components/PricingTable.d.vue.ts +3 -1
- package/dist/runtime/components/PricingTable.vue.d.ts +3 -1
- package/dist/runtime/components/Progress.d.vue.ts +1 -5
- package/dist/runtime/components/Progress.vue.d.ts +1 -5
- package/dist/runtime/components/RadioGroup.d.vue.ts +3 -4
- package/dist/runtime/components/RadioGroup.vue.d.ts +3 -4
- package/dist/runtime/components/ScrollArea.d.vue.ts +81 -0
- package/dist/runtime/components/ScrollArea.vue +187 -0
- package/dist/runtime/components/ScrollArea.vue.d.ts +81 -0
- package/dist/runtime/components/Select.d.vue.ts +6 -8
- package/dist/runtime/components/Select.vue +19 -6
- package/dist/runtime/components/Select.vue.d.ts +6 -8
- package/dist/runtime/components/SelectMenu.d.vue.ts +9 -14
- package/dist/runtime/components/SelectMenu.vue +19 -6
- package/dist/runtime/components/SelectMenu.vue.d.ts +9 -14
- package/dist/runtime/components/Separator.d.vue.ts +1 -3
- package/dist/runtime/components/Separator.vue +1 -1
- package/dist/runtime/components/Separator.vue.d.ts +1 -3
- package/dist/runtime/components/Slideover.d.vue.ts +8 -11
- package/dist/runtime/components/Slideover.vue +4 -2
- package/dist/runtime/components/Slideover.vue.d.ts +8 -11
- package/dist/runtime/components/Slider.d.vue.ts +3 -4
- package/dist/runtime/components/Slider.vue +2 -2
- package/dist/runtime/components/Slider.vue.d.ts +3 -4
- package/dist/runtime/components/Stepper.d.vue.ts +3 -5
- package/dist/runtime/components/Stepper.vue.d.ts +3 -5
- package/dist/runtime/components/Switch.vue +3 -3
- package/dist/runtime/components/Table.d.vue.ts +5 -16
- package/dist/runtime/components/Table.vue +55 -33
- package/dist/runtime/components/Table.vue.d.ts +5 -16
- package/dist/runtime/components/Tabs.d.vue.ts +3 -3
- package/dist/runtime/components/Tabs.vue.d.ts +3 -3
- package/dist/runtime/components/Textarea.d.vue.ts +5 -7
- package/dist/runtime/components/Textarea.vue +4 -4
- package/dist/runtime/components/Textarea.vue.d.ts +5 -7
- package/dist/runtime/components/Timeline.d.vue.ts +3 -3
- package/dist/runtime/components/Timeline.vue.d.ts +3 -3
- package/dist/runtime/components/Toast.d.vue.ts +3 -7
- package/dist/runtime/components/Toast.vue +2 -2
- package/dist/runtime/components/Toast.vue.d.ts +3 -7
- package/dist/runtime/components/Toaster.d.vue.ts +1 -7
- package/dist/runtime/components/Toaster.vue.d.ts +1 -7
- package/dist/runtime/components/Tooltip.d.vue.ts +1 -3
- package/dist/runtime/components/Tooltip.vue.d.ts +1 -3
- package/dist/runtime/components/Tree.d.vue.ts +3 -4
- package/dist/runtime/components/Tree.vue +3 -3
- package/dist/runtime/components/Tree.vue.d.ts +3 -4
- package/dist/runtime/components/User.d.vue.ts +1 -3
- package/dist/runtime/components/User.vue +0 -1
- package/dist/runtime/components/User.vue.d.ts +1 -3
- package/dist/runtime/components/color-mode/ColorModeAvatar.vue +1 -1
- package/dist/runtime/components/color-mode/ColorModeButton.d.vue.ts +3 -6
- package/dist/runtime/components/color-mode/ColorModeButton.vue +8 -26
- package/dist/runtime/components/color-mode/ColorModeButton.vue.d.ts +3 -6
- package/dist/runtime/components/color-mode/ColorModeSelect.d.vue.ts +1 -3
- package/dist/runtime/components/color-mode/ColorModeSelect.vue +5 -4
- package/dist/runtime/components/color-mode/ColorModeSelect.vue.d.ts +1 -3
- package/dist/runtime/components/color-mode/ColorModeSwitch.vue +1 -1
- package/dist/runtime/components/content/ContentNavigation.d.vue.ts +3 -3
- package/dist/runtime/components/content/ContentNavigation.vue +1 -1
- package/dist/runtime/components/content/ContentNavigation.vue.d.ts +3 -3
- package/dist/runtime/components/content/ContentSearch.d.vue.ts +6 -6
- package/dist/runtime/components/content/ContentSearch.vue +3 -3
- package/dist/runtime/components/content/ContentSearch.vue.d.ts +6 -6
- package/dist/runtime/components/content/ContentSearchButton.d.vue.ts +3 -8
- package/dist/runtime/components/content/ContentSearchButton.vue +5 -24
- package/dist/runtime/components/content/ContentSearchButton.vue.d.ts +3 -8
- package/dist/runtime/components/content/ContentSurround.d.vue.ts +3 -1
- package/dist/runtime/components/content/ContentSurround.vue +2 -2
- package/dist/runtime/components/content/ContentSurround.vue.d.ts +3 -1
- package/dist/runtime/components/content/ContentToc.d.vue.ts +3 -4
- package/dist/runtime/components/content/ContentToc.vue +1 -1
- package/dist/runtime/components/content/ContentToc.vue.d.ts +3 -4
- package/dist/runtime/components/locale/LocaleSelect.d.vue.ts +1 -5
- package/dist/runtime/components/locale/LocaleSelect.vue +15 -8
- package/dist/runtime/components/locale/LocaleSelect.vue.d.ts +1 -5
- package/dist/runtime/components/prose/Accordion.d.vue.ts +1 -3
- package/dist/runtime/components/prose/Accordion.vue.d.ts +1 -3
- package/dist/runtime/components/prose/Callout.vue +1 -2
- package/dist/runtime/components/prose/Card.vue +1 -2
- package/dist/runtime/components/prose/CodeCollapse.vue +1 -1
- package/dist/runtime/components/prose/CodeGroup.d.vue.ts +1 -3
- package/dist/runtime/components/prose/CodeGroup.vue.d.ts +1 -3
- package/dist/runtime/components/prose/CodeIcon.vue +1 -1
- package/dist/runtime/components/prose/CodeTree.d.vue.ts +20 -1
- package/dist/runtime/components/prose/CodeTree.vue +32 -8
- package/dist/runtime/components/prose/CodeTree.vue.d.ts +20 -1
- package/dist/runtime/components/prose/Collapsible.vue +1 -1
- package/dist/runtime/components/prose/Img.d.vue.ts +1 -3
- package/dist/runtime/components/prose/Img.vue.d.ts +1 -3
- package/dist/runtime/components/prose/Pre.vue +1 -1
- package/dist/runtime/components/prose/Tabs.d.vue.ts +1 -3
- package/dist/runtime/components/prose/Tabs.vue.d.ts +1 -3
- package/dist/runtime/components/prose/callout/Caution.d.vue.ts +2 -2
- package/dist/runtime/components/prose/callout/Caution.vue.d.ts +2 -2
- package/dist/runtime/components/prose/callout/Note.d.vue.ts +2 -2
- package/dist/runtime/components/prose/callout/Note.vue.d.ts +2 -2
- package/dist/runtime/components/prose/callout/Tip.d.vue.ts +2 -2
- package/dist/runtime/components/prose/callout/Tip.vue.d.ts +2 -2
- package/dist/runtime/components/prose/callout/Warning.d.vue.ts +2 -2
- package/dist/runtime/components/prose/callout/Warning.vue.d.ts +2 -2
- package/dist/runtime/composables/defineShortcuts.d.ts +2 -1
- package/dist/runtime/composables/defineShortcuts.js +62 -15
- package/dist/runtime/composables/useComponentIcons.d.ts +2 -2
- package/dist/runtime/composables/useEditorMenu.d.ts +64 -0
- package/dist/runtime/composables/useEditorMenu.js +448 -0
- package/dist/runtime/composables/useFileUpload.d.ts +1 -2
- package/dist/runtime/locale/en_gb.d.ts +3 -0
- package/dist/runtime/locale/en_gb.js +7 -0
- package/dist/runtime/locale/eu.d.ts +3 -0
- package/dist/runtime/locale/eu.js +129 -0
- package/dist/runtime/locale/index.d.ts +3 -0
- package/dist/runtime/locale/index.js +3 -0
- package/dist/runtime/locale/lo.d.ts +3 -0
- package/dist/runtime/locale/lo.js +129 -0
- package/dist/runtime/types/editor.d.ts +69 -0
- package/dist/runtime/types/editor.js +0 -0
- package/dist/runtime/types/index.d.ts +8 -0
- package/dist/runtime/types/index.js +8 -0
- package/dist/runtime/utils/content.d.ts +2 -2
- package/dist/runtime/utils/editor.d.ts +69 -0
- package/dist/runtime/utils/editor.js +364 -0
- package/dist/runtime/utils/locale.d.ts +1 -2
- package/dist/runtime/vue/components/Icon.vue +1 -1
- package/dist/runtime/vue/components/color-mode/ColorModeSelect.d.vue.ts +1 -3
- package/dist/runtime/vue/components/color-mode/ColorModeSelect.vue +5 -4
- package/dist/runtime/vue/components/color-mode/ColorModeSelect.vue.d.ts +1 -3
- package/dist/runtime/vue/components/color-mode/ColorModeSwitch.vue +1 -1
- package/dist/runtime/{inertia/components → vue/overrides/inertia}/Link.d.vue.ts +6 -8
- package/dist/runtime/{inertia/components → vue/overrides/inertia}/Link.vue +27 -8
- package/dist/runtime/{inertia/components → vue/overrides/inertia}/Link.vue.d.ts +6 -8
- package/dist/runtime/{inertia/components → vue/overrides/inertia}/LinkBase.d.vue.ts +3 -5
- package/dist/runtime/{inertia/components → vue/overrides/inertia}/LinkBase.vue +5 -2
- package/dist/runtime/{inertia/components → vue/overrides/inertia}/LinkBase.vue.d.ts +3 -5
- package/dist/runtime/vue/overrides/none/Link.d.vue.ts +71 -0
- package/dist/runtime/vue/overrides/none/Link.vue +122 -0
- package/dist/runtime/vue/overrides/none/Link.vue.d.ts +71 -0
- package/dist/runtime/vue/{components → overrides/vue-router}/Link.d.vue.ts +6 -9
- package/dist/runtime/vue/{components → overrides/vue-router}/Link.vue +34 -11
- package/dist/runtime/vue/{components → overrides/vue-router}/Link.vue.d.ts +6 -9
- package/dist/runtime/vue/{stubs.d.ts → stubs/base.d.ts} +4 -5
- package/dist/runtime/vue/{stubs.js → stubs/base.js} +4 -5
- package/dist/runtime/vue/stubs/inertia.d.ts +5 -0
- package/dist/runtime/vue/stubs/inertia.js +10 -0
- package/dist/runtime/vue/stubs/none.d.ts +56 -0
- package/dist/runtime/vue/stubs/none.js +48 -0
- package/dist/runtime/vue/stubs/vue-router.d.ts +2 -0
- package/dist/runtime/vue/stubs/vue-router.js +2 -0
- package/dist/shared/{ui.B77q-Dvh.mjs → ui.DegC4tw1.mjs} +282 -60
- package/dist/unplugin.d.mts +14 -0
- package/dist/unplugin.mjs +73 -48
- package/dist/vite.mjs +1 -1
- package/package.json +49 -31
- package/dist/runtime/inertia/stubs.d.ts +0 -44
- package/dist/runtime/inertia/stubs.js +0 -84
|
@@ -3,7 +3,7 @@ import 'node:url';
|
|
|
3
3
|
import { pascalCase, kebabCase, camelCase } from 'scule';
|
|
4
4
|
import { genExport } from 'knitwork';
|
|
5
5
|
import colors from 'tailwindcss/colors';
|
|
6
|
-
import { addTypeTemplate, addTemplate, updateTemplates, hasNuxtModule, logger } from '@nuxt/kit';
|
|
6
|
+
import { addTypeTemplate, addTemplate, updateTemplates, hasNuxtModule, getLayerDirectories, logger } from '@nuxt/kit';
|
|
7
7
|
import { readFile } from 'node:fs/promises';
|
|
8
8
|
import { join } from 'pathe';
|
|
9
9
|
import { globSync } from 'tinyglobby';
|
|
@@ -26,6 +26,7 @@ const icons = {
|
|
|
26
26
|
copy: "i-lucide-copy",
|
|
27
27
|
copyCheck: "i-lucide-copy-check",
|
|
28
28
|
dark: "i-lucide-moon",
|
|
29
|
+
drag: "i-lucide-grip-vertical",
|
|
29
30
|
ellipsis: "i-lucide-ellipsis",
|
|
30
31
|
error: "i-lucide-circle-x",
|
|
31
32
|
external: "i-lucide-arrow-up-right",
|
|
@@ -692,9 +693,9 @@ const blogPost = (options) => ({
|
|
|
692
693
|
},
|
|
693
694
|
to: {
|
|
694
695
|
true: {
|
|
695
|
-
root: [options.theme.transitions && "transition"],
|
|
696
|
+
root: ["has-focus-visible:ring-2 has-focus-visible:ring-primary", options.theme.transitions && "transition"],
|
|
696
697
|
image: "transform transition-transform duration-200 group-hover/blog-post:scale-110",
|
|
697
|
-
avatar: "transform transition-transform duration-200 hover:scale-115"
|
|
698
|
+
avatar: "transform transition-transform duration-200 hover:scale-115 focus-visible:outline-primary"
|
|
698
699
|
}
|
|
699
700
|
},
|
|
700
701
|
image: {
|
|
@@ -1133,7 +1134,7 @@ const carousel = (options) => ({
|
|
|
1133
1134
|
prev: "absolute rounded-full",
|
|
1134
1135
|
next: "absolute rounded-full",
|
|
1135
1136
|
dots: "absolute inset-x-0 -bottom-7 flex flex-wrap items-center justify-center gap-3",
|
|
1136
|
-
dot: ["cursor-pointer size-3 bg-accented rounded-full", options.theme.transitions && "transition"]
|
|
1137
|
+
dot: ["cursor-pointer size-3 bg-accented rounded-full focus:outline-none focus-visible:ring-2 focus-visible:ring-primary", options.theme.transitions && "transition"]
|
|
1137
1138
|
},
|
|
1138
1139
|
variants: {
|
|
1139
1140
|
orientation: {
|
|
@@ -1158,7 +1159,7 @@ const carousel = (options) => ({
|
|
|
1158
1159
|
}
|
|
1159
1160
|
});
|
|
1160
1161
|
|
|
1161
|
-
const changelogVersion = {
|
|
1162
|
+
const changelogVersion = (options) => ({
|
|
1162
1163
|
slots: {
|
|
1163
1164
|
root: "relative",
|
|
1164
1165
|
container: "flex flex-col mx-auto max-w-2xl",
|
|
@@ -1189,7 +1190,8 @@ const changelogVersion = {
|
|
|
1189
1190
|
},
|
|
1190
1191
|
to: {
|
|
1191
1192
|
true: {
|
|
1192
|
-
|
|
1193
|
+
title: ["has-focus-visible:ring-2 has-focus-visible:ring-primary rounded-xs", options.theme.transitions && "transition"],
|
|
1194
|
+
image: "transform transition-transform duration-200 group-hover/changelog-version-image:scale-105 group-has-focus-visible/changelog-version-image:scale-105"
|
|
1193
1195
|
}
|
|
1194
1196
|
},
|
|
1195
1197
|
hidden: {
|
|
@@ -1198,7 +1200,7 @@ const changelogVersion = {
|
|
|
1198
1200
|
}
|
|
1199
1201
|
}
|
|
1200
1202
|
}
|
|
1201
|
-
};
|
|
1203
|
+
});
|
|
1202
1204
|
|
|
1203
1205
|
const changelogVersions = {
|
|
1204
1206
|
slots: {
|
|
@@ -1924,7 +1926,7 @@ const dashboardPanel = {
|
|
|
1924
1926
|
};
|
|
1925
1927
|
|
|
1926
1928
|
const dashboardResizeHandle = {
|
|
1927
|
-
base: "hidden lg:block touch-none select-none cursor-ew-resize relative before:absolute before:inset-y-0 before:-left-1.5 before:-right-1.5"
|
|
1929
|
+
base: "hidden lg:block touch-none select-none cursor-ew-resize relative before:absolute before:inset-y-0 before:-left-1.5 before:-right-1.5 before:z-1"
|
|
1928
1930
|
};
|
|
1929
1931
|
|
|
1930
1932
|
const dashboardSearch = {
|
|
@@ -1935,7 +1937,7 @@ const dashboardSearch = {
|
|
|
1935
1937
|
variants: {
|
|
1936
1938
|
fullscreen: {
|
|
1937
1939
|
false: {
|
|
1938
|
-
modal: "sm:max-w-3xl sm:h-[28rem]"
|
|
1940
|
+
modal: "sm:max-w-3xl h-full sm:h-[28rem]"
|
|
1939
1941
|
}
|
|
1940
1942
|
}
|
|
1941
1943
|
}
|
|
@@ -2260,6 +2262,118 @@ const dropdownMenu = (options) => ({
|
|
|
2260
2262
|
}
|
|
2261
2263
|
});
|
|
2262
2264
|
|
|
2265
|
+
const editor = (options) => ({
|
|
2266
|
+
slots: {
|
|
2267
|
+
root: "",
|
|
2268
|
+
content: "relative size-full flex-1",
|
|
2269
|
+
base: [
|
|
2270
|
+
"w-full outline-none *:my-5 *:first:mt-0 *:last:mb-0 sm:px-8 selection:bg-primary/20",
|
|
2271
|
+
// Placeholder
|
|
2272
|
+
"[&_:is(p,h1,h2,h3,h4).is-empty]:before:content-[attr(data-placeholder)] [&_:is(p,h1,h2,h3,h4).is-empty]:before:text-dimmed [&_:is(p,h1,h2,h3,h4).is-empty]:before:float-left [&_:is(p,h1,h2,h3,h4).is-empty]:before:h-0 [&_:is(p,h1,h2,h3,h4).is-empty]:before:pointer-events-none",
|
|
2273
|
+
"[&_li_.is-empty]:before:content-none",
|
|
2274
|
+
// Paragraph
|
|
2275
|
+
"[&_p]:leading-7",
|
|
2276
|
+
// Links
|
|
2277
|
+
"[&_a]:text-primary [&_a]:border-b [&_a]:border-transparent [&_a]:hover:border-primary [&_a]:font-medium",
|
|
2278
|
+
options.theme?.transitions && "[&_a]:transition-colors",
|
|
2279
|
+
// Mentions
|
|
2280
|
+
"[&_.mention]:text-primary [&_.mention]:font-medium",
|
|
2281
|
+
// Headings - shared styles
|
|
2282
|
+
"[&_:is(h1,h2,h3,h4)]:text-highlighted [&_:is(h1,h2,h3,h4)]:font-bold",
|
|
2283
|
+
// Headings - unique styles
|
|
2284
|
+
"[&_h1]:text-3xl",
|
|
2285
|
+
"[&_h2]:text-2xl",
|
|
2286
|
+
"[&_h3]:text-xl",
|
|
2287
|
+
"[&_h4]:text-lg",
|
|
2288
|
+
// Code inside headings
|
|
2289
|
+
"[&_:is(h1,h2,h3,h4)>code]:border-dashed [&_:is(h1,h2,h3,h4)>code]:font-bold",
|
|
2290
|
+
"[&_h2>code]:text-xl/6",
|
|
2291
|
+
"[&_h3>code]:text-lg/5",
|
|
2292
|
+
// Blockquote & HR
|
|
2293
|
+
"[&_blockquote]:border-s-4 [&_blockquote]:border-accented [&_blockquote]:ps-4 [&_blockquote]:italic",
|
|
2294
|
+
"[&_[data-type=horizontalRule]]:my-8 [&_[data-type=horizontalRule]]:py-2",
|
|
2295
|
+
"[&_hr]:border-t [&_hr]:border-default",
|
|
2296
|
+
// Code blocks
|
|
2297
|
+
"[&_pre]:text-sm/6 [&_pre]:border [&_pre]:border-muted [&_pre]:bg-muted [&_pre]:rounded-md [&_pre]:px-4 [&_pre]:py-3 [&_pre]:whitespace-pre-wrap [&_pre]:break-words [&_pre]:overflow-x-auto",
|
|
2298
|
+
"[&_pre_code]:p-0 [&_pre_code]:text-inherit [&_pre_code]:font-inherit [&_pre_code]:rounded-none [&_pre_code]:inline [&_pre_code]:border-0 [&_pre_code]:bg-transparent",
|
|
2299
|
+
// Inline code
|
|
2300
|
+
"[&_code]:px-1.5 [&_code]:py-0.5 [&_code]:text-sm [&_code]:font-mono [&_code]:font-medium [&_code]:rounded-md [&_code]:inline-block [&_code]:border [&_code]:border-muted [&_code]:text-highlighted [&_code]:bg-muted",
|
|
2301
|
+
// Lists
|
|
2302
|
+
"[&_:is(ul,ol)]:ps-6",
|
|
2303
|
+
"[&_ul]:list-disc [&_ul]:marker:text-(--ui-border-accented)",
|
|
2304
|
+
"[&_ol]:list-decimal [&_ol]:marker:text-muted",
|
|
2305
|
+
"[&_li]:my-1.5 [&_li]:ps-1.5",
|
|
2306
|
+
// Images
|
|
2307
|
+
"[&_img]:rounded-md [&_img]:block [&_img]:max-w-full [&_img.ProseMirror-selectednode]:outline-2 [&_img.ProseMirror-selectednode]:outline-primary",
|
|
2308
|
+
// Selected nodes
|
|
2309
|
+
"[&_.ProseMirror-selectednode:not(img):not(pre):not([data-node-view-wrapper])]:bg-primary/20"
|
|
2310
|
+
]
|
|
2311
|
+
}
|
|
2312
|
+
});
|
|
2313
|
+
|
|
2314
|
+
const editorDragHandle = {
|
|
2315
|
+
slots: {
|
|
2316
|
+
root: "hidden sm:flex items-center justify-center transition-all duration-200 ease-out",
|
|
2317
|
+
handle: "cursor-grab px-1"
|
|
2318
|
+
}
|
|
2319
|
+
};
|
|
2320
|
+
|
|
2321
|
+
const editorSuggestionMenu = (options) => ({
|
|
2322
|
+
slots: {
|
|
2323
|
+
content: "min-w-48 max-w-60 max-h-96 bg-default shadow-lg rounded-md ring ring-default overflow-hidden data-[state=open]:animate-[scale-in_100ms_ease-out] data-[state=closed]:animate-[scale-out_100ms_ease-in] origin-(--reka-dropdown-menu-content-transform-origin) flex flex-col",
|
|
2324
|
+
viewport: "relative divide-y divide-default scroll-py-1 overflow-y-auto flex-1",
|
|
2325
|
+
group: "p-1 isolate",
|
|
2326
|
+
label: "w-full flex items-center font-semibold text-highlighted p-1.5 text-xs gap-1.5",
|
|
2327
|
+
separator: "-mx-1 my-1 h-px bg-border",
|
|
2328
|
+
item: "group relative w-full flex items-start select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 p-1.5 text-sm gap-1.5",
|
|
2329
|
+
itemLeadingIcon: "shrink-0 size-5 flex items-center justify-center text-base",
|
|
2330
|
+
itemLeadingAvatar: "shrink-0",
|
|
2331
|
+
itemLeadingAvatarSize: "2xs",
|
|
2332
|
+
itemWrapper: "flex-1 flex flex-col text-start min-w-0",
|
|
2333
|
+
itemLabel: "truncate",
|
|
2334
|
+
itemDescription: "truncate text-muted",
|
|
2335
|
+
itemLabelExternalIcon: "inline-block size-3 align-top text-dimmed"
|
|
2336
|
+
},
|
|
2337
|
+
variants: {
|
|
2338
|
+
active: {
|
|
2339
|
+
true: {
|
|
2340
|
+
item: "text-highlighted before:bg-elevated/75",
|
|
2341
|
+
itemLeadingIcon: "text-default"
|
|
2342
|
+
},
|
|
2343
|
+
false: {
|
|
2344
|
+
item: ["text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50", options.theme.transitions && "transition-colors before:transition-colors"],
|
|
2345
|
+
itemLeadingIcon: ["text-dimmed group-data-highlighted:not-group-data-disabled:text-default", options.theme.transitions && "transition-colors"]
|
|
2346
|
+
}
|
|
2347
|
+
}
|
|
2348
|
+
}
|
|
2349
|
+
});
|
|
2350
|
+
|
|
2351
|
+
const editorEmojiMenu = (options) => editorSuggestionMenu(options);
|
|
2352
|
+
|
|
2353
|
+
const editorMentionMenu = (options) => editorSuggestionMenu(options);
|
|
2354
|
+
|
|
2355
|
+
const editorToolbar = {
|
|
2356
|
+
slots: {
|
|
2357
|
+
root: "focus:outline-none",
|
|
2358
|
+
base: "flex items-stretch gap-1.5",
|
|
2359
|
+
group: "flex items-center gap-0.5",
|
|
2360
|
+
separator: "w-px self-stretch bg-border"
|
|
2361
|
+
},
|
|
2362
|
+
variants: {
|
|
2363
|
+
layout: {
|
|
2364
|
+
bubble: {
|
|
2365
|
+
base: "bg-default border border-default rounded-lg p-1"
|
|
2366
|
+
},
|
|
2367
|
+
floating: {
|
|
2368
|
+
base: "bg-default border border-default rounded-lg p-1"
|
|
2369
|
+
},
|
|
2370
|
+
fixed: {
|
|
2371
|
+
base: ""
|
|
2372
|
+
}
|
|
2373
|
+
}
|
|
2374
|
+
}
|
|
2375
|
+
};
|
|
2376
|
+
|
|
2263
2377
|
const empty = {
|
|
2264
2378
|
slots: {
|
|
2265
2379
|
root: "relative flex flex-col items-center justify-center gap-4 rounded-lg p-4 sm:p-6 lg:p-8 min-w-0",
|
|
@@ -2576,9 +2690,9 @@ const formField = {
|
|
|
2576
2690
|
slots: {
|
|
2577
2691
|
root: "",
|
|
2578
2692
|
wrapper: "",
|
|
2579
|
-
labelWrapper: "flex content-center items-center justify-between",
|
|
2693
|
+
labelWrapper: "flex content-center items-center justify-between gap-1",
|
|
2580
2694
|
label: "block font-medium text-default",
|
|
2581
|
-
container: "
|
|
2695
|
+
container: "relative",
|
|
2582
2696
|
description: "text-muted",
|
|
2583
2697
|
error: "mt-2 text-error",
|
|
2584
2698
|
hint: "text-muted",
|
|
@@ -2596,10 +2710,19 @@ const formField = {
|
|
|
2596
2710
|
true: {
|
|
2597
2711
|
label: `after:content-['*'] after:ms-0.5 after:text-error`
|
|
2598
2712
|
}
|
|
2713
|
+
},
|
|
2714
|
+
orientation: {
|
|
2715
|
+
vertical: {
|
|
2716
|
+
container: "mt-1"
|
|
2717
|
+
},
|
|
2718
|
+
horizontal: {
|
|
2719
|
+
root: "flex justify-between place-items-baseline gap-2"
|
|
2720
|
+
}
|
|
2599
2721
|
}
|
|
2600
2722
|
},
|
|
2601
2723
|
defaultVariants: {
|
|
2602
|
-
size: "md"
|
|
2724
|
+
size: "md",
|
|
2725
|
+
orientation: "vertical"
|
|
2603
2726
|
}
|
|
2604
2727
|
};
|
|
2605
2728
|
|
|
@@ -2797,6 +2920,7 @@ const inputDate = (options) => {
|
|
|
2797
2920
|
separatorIcon: "shrink-0 size-4 text-muted"
|
|
2798
2921
|
},
|
|
2799
2922
|
variants: {
|
|
2923
|
+
...fieldGroupVariant,
|
|
2800
2924
|
size: {
|
|
2801
2925
|
xs: {
|
|
2802
2926
|
base: (prev) => [prev, "gap-0.25"],
|
|
@@ -3157,6 +3281,7 @@ const inputTime = (options) => {
|
|
|
3157
3281
|
segment: ["rounded text-center outline-hidden data-placeholder:text-dimmed data-[segment=literal]:text-muted data-invalid:text-error data-disabled:cursor-not-allowed data-disabled:opacity-75", options.theme.transitions && "transition-colors"]
|
|
3158
3282
|
},
|
|
3159
3283
|
variants: {
|
|
3284
|
+
...fieldGroupVariant,
|
|
3160
3285
|
size: {
|
|
3161
3286
|
xs: {
|
|
3162
3287
|
base: (prev) => [prev, "gap-0.25"],
|
|
@@ -3772,7 +3897,7 @@ const pageCta = {
|
|
|
3772
3897
|
},
|
|
3773
3898
|
reverse: {
|
|
3774
3899
|
true: {
|
|
3775
|
-
wrapper: "
|
|
3900
|
+
wrapper: "order-last"
|
|
3776
3901
|
}
|
|
3777
3902
|
},
|
|
3778
3903
|
variant: {
|
|
@@ -3833,7 +3958,7 @@ const pageCard = (options) => ({
|
|
|
3833
3958
|
},
|
|
3834
3959
|
reverse: {
|
|
3835
3960
|
true: {
|
|
3836
|
-
wrapper: "
|
|
3961
|
+
wrapper: "order-last"
|
|
3837
3962
|
}
|
|
3838
3963
|
},
|
|
3839
3964
|
variant: {
|
|
@@ -3864,7 +3989,7 @@ const pageCard = (options) => ({
|
|
|
3864
3989
|
},
|
|
3865
3990
|
to: {
|
|
3866
3991
|
true: {
|
|
3867
|
-
root: [options.theme.transitions && "transition"]
|
|
3992
|
+
root: ["has-focus-visible:ring-2 has-focus-visible:ring-primary", options.theme.transitions && "transition"]
|
|
3868
3993
|
}
|
|
3869
3994
|
},
|
|
3870
3995
|
title: {
|
|
@@ -3952,11 +4077,6 @@ const pageCard = (options) => ({
|
|
|
3952
4077
|
class: {
|
|
3953
4078
|
root: "[--spotlight-color:var(--ui-bg-inverted)]"
|
|
3954
4079
|
}
|
|
3955
|
-
}, {
|
|
3956
|
-
to: true,
|
|
3957
|
-
class: {
|
|
3958
|
-
root: "has-focus-visible:ring-2 has-focus-visible:ring-primary"
|
|
3959
|
-
}
|
|
3960
4080
|
}],
|
|
3961
4081
|
defaultVariants: {
|
|
3962
4082
|
variant: "outline",
|
|
@@ -3969,9 +4089,9 @@ const pageColumns = {
|
|
|
3969
4089
|
base: "relative column-1 md:columns-2 lg:columns-3 gap-8 space-y-8 *:break-inside-avoid-column *:will-change-transform"
|
|
3970
4090
|
};
|
|
3971
4091
|
|
|
3972
|
-
const pageFeature = {
|
|
4092
|
+
const pageFeature = (options) => ({
|
|
3973
4093
|
slots: {
|
|
3974
|
-
root: "relative",
|
|
4094
|
+
root: "relative rounded-sm",
|
|
3975
4095
|
wrapper: "",
|
|
3976
4096
|
leading: "inline-flex items-center justify-center",
|
|
3977
4097
|
leadingIcon: "size-5 shrink-0 text-primary",
|
|
@@ -3988,13 +4108,18 @@ const pageFeature = {
|
|
|
3988
4108
|
leading: "mb-2.5"
|
|
3989
4109
|
}
|
|
3990
4110
|
},
|
|
4111
|
+
to: {
|
|
4112
|
+
true: {
|
|
4113
|
+
root: ["has-focus-visible:ring-2 has-focus-visible:ring-primary", options.theme.transitions && "transition"]
|
|
4114
|
+
}
|
|
4115
|
+
},
|
|
3991
4116
|
title: {
|
|
3992
4117
|
true: {
|
|
3993
4118
|
description: "mt-1"
|
|
3994
4119
|
}
|
|
3995
4120
|
}
|
|
3996
4121
|
}
|
|
3997
|
-
};
|
|
4122
|
+
});
|
|
3998
4123
|
|
|
3999
4124
|
const pageGrid = {
|
|
4000
4125
|
base: "relative grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-8"
|
|
@@ -4147,7 +4272,7 @@ const pageSection = {
|
|
|
4147
4272
|
},
|
|
4148
4273
|
reverse: {
|
|
4149
4274
|
true: {
|
|
4150
|
-
wrapper: "
|
|
4275
|
+
wrapper: "order-last"
|
|
4151
4276
|
}
|
|
4152
4277
|
},
|
|
4153
4278
|
headline: {
|
|
@@ -4825,6 +4950,28 @@ const radioGroup = (options) => ({
|
|
|
4825
4950
|
}
|
|
4826
4951
|
});
|
|
4827
4952
|
|
|
4953
|
+
const scrollArea = {
|
|
4954
|
+
slots: {
|
|
4955
|
+
root: "relative",
|
|
4956
|
+
viewport: "relative flex",
|
|
4957
|
+
item: ""
|
|
4958
|
+
},
|
|
4959
|
+
variants: {
|
|
4960
|
+
orientation: {
|
|
4961
|
+
vertical: {
|
|
4962
|
+
root: "overflow-y-auto overflow-x-hidden",
|
|
4963
|
+
viewport: "flex-col",
|
|
4964
|
+
item: ""
|
|
4965
|
+
},
|
|
4966
|
+
horizontal: {
|
|
4967
|
+
root: "overflow-x-auto overflow-y-hidden",
|
|
4968
|
+
viewport: "flex-row",
|
|
4969
|
+
item: ""
|
|
4970
|
+
}
|
|
4971
|
+
}
|
|
4972
|
+
}
|
|
4973
|
+
};
|
|
4974
|
+
|
|
4828
4975
|
const select = (options) => {
|
|
4829
4976
|
return defuFn({
|
|
4830
4977
|
slots: {
|
|
@@ -5057,16 +5204,21 @@ const slideover = {
|
|
|
5057
5204
|
variants: {
|
|
5058
5205
|
side: {
|
|
5059
5206
|
top: {
|
|
5060
|
-
content: "
|
|
5207
|
+
content: ""
|
|
5061
5208
|
},
|
|
5062
5209
|
right: {
|
|
5063
|
-
content: "
|
|
5210
|
+
content: "max-w-md"
|
|
5064
5211
|
},
|
|
5065
5212
|
bottom: {
|
|
5066
|
-
content: "
|
|
5213
|
+
content: ""
|
|
5067
5214
|
},
|
|
5068
5215
|
left: {
|
|
5069
|
-
content: "
|
|
5216
|
+
content: "max-w-md"
|
|
5217
|
+
}
|
|
5218
|
+
},
|
|
5219
|
+
inset: {
|
|
5220
|
+
true: {
|
|
5221
|
+
content: "rounded-lg"
|
|
5070
5222
|
}
|
|
5071
5223
|
},
|
|
5072
5224
|
transition: {
|
|
@@ -5076,6 +5228,54 @@ const slideover = {
|
|
|
5076
5228
|
}
|
|
5077
5229
|
},
|
|
5078
5230
|
compoundVariants: [{
|
|
5231
|
+
side: "top",
|
|
5232
|
+
inset: true,
|
|
5233
|
+
class: {
|
|
5234
|
+
content: "max-h-[calc(100%-2rem)] inset-x-4 top-4"
|
|
5235
|
+
}
|
|
5236
|
+
}, {
|
|
5237
|
+
side: "top",
|
|
5238
|
+
inset: false,
|
|
5239
|
+
class: {
|
|
5240
|
+
content: "max-h-full inset-x-0 top-0"
|
|
5241
|
+
}
|
|
5242
|
+
}, {
|
|
5243
|
+
side: "right",
|
|
5244
|
+
inset: true,
|
|
5245
|
+
class: {
|
|
5246
|
+
content: "w-[calc(100%-2rem)] inset-y-4 right-4"
|
|
5247
|
+
}
|
|
5248
|
+
}, {
|
|
5249
|
+
side: "right",
|
|
5250
|
+
inset: false,
|
|
5251
|
+
class: {
|
|
5252
|
+
content: "w-full inset-y-0 right-0"
|
|
5253
|
+
}
|
|
5254
|
+
}, {
|
|
5255
|
+
side: "bottom",
|
|
5256
|
+
inset: true,
|
|
5257
|
+
class: {
|
|
5258
|
+
content: "max-h-[calc(100%-2rem)] inset-x-4 bottom-4"
|
|
5259
|
+
}
|
|
5260
|
+
}, {
|
|
5261
|
+
side: "bottom",
|
|
5262
|
+
inset: false,
|
|
5263
|
+
class: {
|
|
5264
|
+
content: "max-h-full inset-x-0 bottom-0"
|
|
5265
|
+
}
|
|
5266
|
+
}, {
|
|
5267
|
+
side: "left",
|
|
5268
|
+
inset: true,
|
|
5269
|
+
class: {
|
|
5270
|
+
content: "w-[calc(100%-2rem)] inset-y-4 left-4"
|
|
5271
|
+
}
|
|
5272
|
+
}, {
|
|
5273
|
+
side: "left",
|
|
5274
|
+
inset: false,
|
|
5275
|
+
class: {
|
|
5276
|
+
content: "w-full inset-y-0 left-0"
|
|
5277
|
+
}
|
|
5278
|
+
}, {
|
|
5079
5279
|
transition: true,
|
|
5080
5280
|
side: "top",
|
|
5081
5281
|
class: {
|
|
@@ -5439,12 +5639,12 @@ const table$1 = (options) => ({
|
|
|
5439
5639
|
base: "min-w-full",
|
|
5440
5640
|
caption: "sr-only",
|
|
5441
5641
|
thead: "relative",
|
|
5442
|
-
tbody: "[&>tr]:data-[selectable=true]:hover:bg-elevated/50 [&>tr]:data-[selectable=true]:focus-visible:outline-primary",
|
|
5642
|
+
tbody: "isolate [&>tr]:data-[selectable=true]:hover:bg-elevated/50 [&>tr]:data-[selectable=true]:focus-visible:outline-primary",
|
|
5443
5643
|
tfoot: "relative",
|
|
5444
5644
|
tr: "data-[selected=true]:bg-elevated/50",
|
|
5445
5645
|
th: "px-4 py-3.5 text-sm text-highlighted text-left rtl:text-right font-semibold [&:has([role=checkbox])]:pe-0",
|
|
5446
5646
|
td: "p-4 text-sm text-muted whitespace-nowrap [&:has([role=checkbox])]:pe-0",
|
|
5447
|
-
separator: "absolute z-
|
|
5647
|
+
separator: "absolute z-1 left-0 w-full h-px bg-(--ui-border-accented)",
|
|
5448
5648
|
empty: "py-6 text-center text-sm text-muted",
|
|
5449
5649
|
loading: "py-6 text-center"
|
|
5450
5650
|
},
|
|
@@ -5457,25 +5657,25 @@ const table$1 = (options) => ({
|
|
|
5457
5657
|
},
|
|
5458
5658
|
pinned: {
|
|
5459
5659
|
true: {
|
|
5460
|
-
th: "sticky bg-default/75
|
|
5461
|
-
td: "sticky bg-default/75
|
|
5660
|
+
th: "sticky bg-default/75 z-1",
|
|
5661
|
+
td: "sticky bg-default/75 z-1"
|
|
5462
5662
|
}
|
|
5463
5663
|
},
|
|
5464
5664
|
sticky: {
|
|
5465
5665
|
true: {
|
|
5466
|
-
thead: "sticky top-0 inset-x-0 bg-default/75 z-
|
|
5467
|
-
tfoot: "sticky bottom-0 inset-x-0 bg-default/75 z-
|
|
5666
|
+
thead: "sticky top-0 inset-x-0 bg-default/75 backdrop-blur z-1",
|
|
5667
|
+
tfoot: "sticky bottom-0 inset-x-0 bg-default/75 backdrop-blur z-1"
|
|
5468
5668
|
},
|
|
5469
5669
|
header: {
|
|
5470
|
-
thead: "sticky top-0 inset-x-0 bg-default/75 z-
|
|
5670
|
+
thead: "sticky top-0 inset-x-0 bg-default/75 backdrop-blur z-1"
|
|
5471
5671
|
},
|
|
5472
5672
|
footer: {
|
|
5473
|
-
tfoot: "sticky bottom-0 inset-x-0 bg-default/75 z-
|
|
5673
|
+
tfoot: "sticky bottom-0 inset-x-0 bg-default/75 backdrop-blur z-1"
|
|
5474
5674
|
}
|
|
5475
5675
|
},
|
|
5476
5676
|
loading: {
|
|
5477
5677
|
true: {
|
|
5478
|
-
thead: "after:absolute after:z-
|
|
5678
|
+
thead: "after:absolute after:z-1 after:h-px"
|
|
5479
5679
|
}
|
|
5480
5680
|
},
|
|
5481
5681
|
loadingAnimation: {
|
|
@@ -6116,9 +6316,9 @@ const user = (options) => ({
|
|
|
6116
6316
|
},
|
|
6117
6317
|
to: {
|
|
6118
6318
|
true: {
|
|
6119
|
-
name: ["text-default peer-hover:text-highlighted", options.theme.transitions && "transition-colors"],
|
|
6120
|
-
description: ["peer-hover:text-toned", options.theme.transitions && "transition-colors"],
|
|
6121
|
-
avatar: "transform transition-transform duration-200 group-hover/user:scale-115"
|
|
6319
|
+
name: ["text-default peer-hover:text-highlighted peer-focus-visible:text-highlighted", options.theme.transitions && "transition-colors"],
|
|
6320
|
+
description: ["peer-hover:text-toned peer-focus-visible:text-toned", options.theme.transitions && "transition-colors"],
|
|
6321
|
+
avatar: "transform transition-transform duration-200 group-hover/user:scale-115 group-has-focus-visible/user:scale-115"
|
|
6122
6322
|
},
|
|
6123
6323
|
false: {
|
|
6124
6324
|
name: "text-highlighted",
|
|
@@ -6224,6 +6424,12 @@ const theme = {
|
|
|
6224
6424
|
dashboardToolbar: dashboardToolbar,
|
|
6225
6425
|
drawer: drawer,
|
|
6226
6426
|
dropdownMenu: dropdownMenu,
|
|
6427
|
+
editor: editor,
|
|
6428
|
+
editorDragHandle: editorDragHandle,
|
|
6429
|
+
editorEmojiMenu: editorEmojiMenu,
|
|
6430
|
+
editorMentionMenu: editorMentionMenu,
|
|
6431
|
+
editorSuggestionMenu: editorSuggestionMenu,
|
|
6432
|
+
editorToolbar: editorToolbar,
|
|
6227
6433
|
empty: empty,
|
|
6228
6434
|
error: error,
|
|
6229
6435
|
fieldGroup: fieldGroup$1,
|
|
@@ -6268,6 +6474,7 @@ const theme = {
|
|
|
6268
6474
|
pricingTable: pricingTable,
|
|
6269
6475
|
progress: progress,
|
|
6270
6476
|
radioGroup: radioGroup,
|
|
6477
|
+
scrollArea: scrollArea,
|
|
6271
6478
|
select: select,
|
|
6272
6479
|
selectMenu: selectMenu,
|
|
6273
6480
|
separator: separator,
|
|
@@ -6288,7 +6495,7 @@ const theme = {
|
|
|
6288
6495
|
};
|
|
6289
6496
|
|
|
6290
6497
|
const a = (options) => ({
|
|
6291
|
-
base: ["text-primary border-b border-transparent hover:border-primary font-medium focus-visible:outline-primary [&>code]:border-dashed hover:[&>code]:border-primary hover:[&>code]:text-primary", options.theme.transitions && "transition-colors [&>code]:transition-colors"]
|
|
6498
|
+
base: ["text-primary border-b border-transparent hover:border-primary font-medium focus-visible:outline-primary focus-visible:has-[>code]:outline-0 [&>code]:border-dashed hover:[&>code]:border-primary hover:[&>code]:text-primary focus-visible:[&>code]:border-primary focus-visible:[&>code]:text-primary", options.theme.transitions && "transition-colors [&>code]:transition-colors"]
|
|
6292
6499
|
});
|
|
6293
6500
|
|
|
6294
6501
|
const accordion = {
|
|
@@ -6319,7 +6526,7 @@ const callout = (options) => ({
|
|
|
6319
6526
|
variants: {
|
|
6320
6527
|
color: {
|
|
6321
6528
|
...Object.fromEntries((options.theme.colors || []).map((color) => [color, {
|
|
6322
|
-
base: `border border-${color}/25 bg-${color}/10 text-${color}-600 dark:text-${color}-300 [&_a]:text-${color} [&_a]:hover:border-${color} [&_code]:text-${color}-600 dark:[&_code]:text-${color}-300 [&_code]:border-${color}/25 [&_a]:hover:[&>code]:border-${color} [&_a]:hover:[&>code]:text-${color} [&>ul]:marker:text-${color}/50`,
|
|
6529
|
+
base: `border border-${color}/25 bg-${color}/10 text-${color}-600 dark:text-${color}-300 [&_a]:text-${color} [&_a]:hover:border-${color} [&_a]:focus-visible:outline-${color} [&_code]:text-${color}-600 dark:[&_code]:text-${color}-300 [&_code]:border-${color}/25 [&_a]:hover:[&>code]:border-${color} [&_a]:hover:[&>code]:text-${color} [&_a]:focus-visible:[&>code]:border-${color} [&_a]:focus-visible:[&>code]:text-${color} [&>ul]:marker:text-${color}/50`,
|
|
6323
6530
|
icon: `text-${color}`,
|
|
6324
6531
|
externalIcon: `text-${color}-600 dark:text-${color}-300`
|
|
6325
6532
|
}])),
|
|
@@ -6337,14 +6544,14 @@ const callout = (options) => ({
|
|
|
6337
6544
|
color,
|
|
6338
6545
|
to: true,
|
|
6339
6546
|
class: {
|
|
6340
|
-
base: `hover:border-${color}`,
|
|
6547
|
+
base: `hover:border-${color} has-focus-visible:border-${color}`,
|
|
6341
6548
|
externalIcon: `group-hover:text-${color}`
|
|
6342
6549
|
}
|
|
6343
6550
|
})), {
|
|
6344
6551
|
color: "neutral",
|
|
6345
6552
|
to: true,
|
|
6346
6553
|
class: {
|
|
6347
|
-
base: "hover:border-inverted",
|
|
6554
|
+
base: "hover:border-inverted has-focus-visible:border-inverted",
|
|
6348
6555
|
externalIcon: "group-hover:text-highlighted"
|
|
6349
6556
|
}
|
|
6350
6557
|
}],
|
|
@@ -6383,14 +6590,14 @@ const card = (options) => ({
|
|
|
6383
6590
|
color,
|
|
6384
6591
|
to: true,
|
|
6385
6592
|
class: {
|
|
6386
|
-
base: `hover:bg-${color}/10 hover:border-${color}`,
|
|
6593
|
+
base: `hover:bg-${color}/10 hover:border-${color} has-focus-visible:border-${color}`,
|
|
6387
6594
|
externalIcon: `group-hover:text-${color}`
|
|
6388
6595
|
}
|
|
6389
6596
|
})), {
|
|
6390
6597
|
color: "neutral",
|
|
6391
6598
|
to: true,
|
|
6392
6599
|
class: {
|
|
6393
|
-
base: "hover:bg-elevated/50 hover:border-inverted",
|
|
6600
|
+
base: "hover:bg-elevated/50 hover:border-inverted has-focus-visible:border-inverted",
|
|
6394
6601
|
externalIcon: "group-hover:text-highlighted"
|
|
6395
6602
|
}
|
|
6396
6603
|
}],
|
|
@@ -6510,6 +6717,7 @@ const codeIcon = {
|
|
|
6510
6717
|
"npx": "i-vscode-icons-file-type-npm",
|
|
6511
6718
|
"yarn": "i-vscode-icons-file-type-yarn",
|
|
6512
6719
|
"bun": "i-vscode-icons-file-type-bun",
|
|
6720
|
+
"deno": "i-vscode-icons-file-type-deno",
|
|
6513
6721
|
"yml": "i-vscode-icons-file-type-yaml",
|
|
6514
6722
|
"terminal": "i-lucide-terminal"
|
|
6515
6723
|
};
|
|
@@ -6947,7 +7155,7 @@ const contentSearch = {
|
|
|
6947
7155
|
variants: {
|
|
6948
7156
|
fullscreen: {
|
|
6949
7157
|
false: {
|
|
6950
|
-
modal: "sm:max-w-3xl sm:h-[28rem]"
|
|
7158
|
+
modal: "sm:max-w-3xl h-full sm:h-[28rem]"
|
|
6951
7159
|
}
|
|
6952
7160
|
}
|
|
6953
7161
|
}
|
|
@@ -7127,14 +7335,27 @@ function getTemplates(options, uiConfig, nuxt, resolve) {
|
|
|
7127
7335
|
}
|
|
7128
7336
|
writeThemeTemplate(theme);
|
|
7129
7337
|
async function generateSources() {
|
|
7130
|
-
|
|
7131
|
-
|
|
7132
|
-
|
|
7133
|
-
|
|
7134
|
-
|
|
7135
|
-
|
|
7338
|
+
if (!nuxt) {
|
|
7339
|
+
return '@source "./ui";';
|
|
7340
|
+
}
|
|
7341
|
+
const sources = [];
|
|
7342
|
+
const layers = getLayerDirectories(nuxt).map((layer) => layer.app);
|
|
7343
|
+
for (const layer of layers) {
|
|
7344
|
+
sources.push(`@source "${layer}**/*";`);
|
|
7345
|
+
}
|
|
7346
|
+
const inlineConfigs = [
|
|
7347
|
+
nuxt.options.app?.rootAttrs?.class,
|
|
7348
|
+
nuxt.options.app?.head?.htmlAttrs?.class,
|
|
7349
|
+
nuxt.options.app?.head?.bodyAttrs?.class
|
|
7350
|
+
];
|
|
7351
|
+
for (const value of inlineConfigs) {
|
|
7352
|
+
if (value && typeof value === "string") {
|
|
7353
|
+
sources.push(`@source inline(${JSON.stringify(value)});`);
|
|
7354
|
+
}
|
|
7355
|
+
}
|
|
7356
|
+
if (resolve && options.experimental?.componentDetection) {
|
|
7136
7357
|
const detectedComponents = await detectUsedComponents(
|
|
7137
|
-
|
|
7358
|
+
layers,
|
|
7138
7359
|
options.prefix,
|
|
7139
7360
|
resolve("./runtime/components"),
|
|
7140
7361
|
Array.isArray(options.experimental.componentDetection) ? options.experimental.componentDetection : void 0
|
|
@@ -7151,28 +7372,29 @@ function getTemplates(options, uiConfig, nuxt, resolve) {
|
|
|
7151
7372
|
logger.success(`Nuxt UI detected ${detectedComponents.size} components in use (including dependencies)`);
|
|
7152
7373
|
}
|
|
7153
7374
|
previousDetectedComponents = detectedComponents;
|
|
7154
|
-
const sourcesList = [];
|
|
7155
7375
|
if (hasProse) {
|
|
7156
|
-
|
|
7376
|
+
sources.push('@source "./ui/prose";');
|
|
7157
7377
|
}
|
|
7158
7378
|
for (const component of detectedComponents) {
|
|
7159
7379
|
const kebabComponent = kebabCase(component);
|
|
7160
7380
|
const camelComponent = camelCase(component);
|
|
7161
7381
|
if (hasContent && themeContent[camelComponent]) {
|
|
7162
|
-
|
|
7382
|
+
sources.push(`@source "./ui/content/${kebabComponent}.ts";`);
|
|
7163
7383
|
} else if (theme[camelComponent]) {
|
|
7164
|
-
|
|
7384
|
+
sources.push(`@source "./ui/${kebabComponent}.ts";`);
|
|
7165
7385
|
}
|
|
7166
7386
|
}
|
|
7167
|
-
sources = sourcesList.join("\n");
|
|
7168
7387
|
} else {
|
|
7169
7388
|
if (!previousDetectedComponents || previousDetectedComponents.size > 0) {
|
|
7170
7389
|
logger.info("Nuxt UI detected no components in use, including all components");
|
|
7171
7390
|
}
|
|
7172
7391
|
previousDetectedComponents = /* @__PURE__ */ new Set();
|
|
7392
|
+
sources.push('@source "./ui";');
|
|
7173
7393
|
}
|
|
7394
|
+
} else {
|
|
7395
|
+
sources.push('@source "./ui";');
|
|
7174
7396
|
}
|
|
7175
|
-
return sources
|
|
7397
|
+
return sources.join("\n");
|
|
7176
7398
|
}
|
|
7177
7399
|
templates.push({
|
|
7178
7400
|
filename: "ui.css",
|
package/dist/unplugin.d.mts
CHANGED
|
@@ -25,6 +25,7 @@ declare const _default: {
|
|
|
25
25
|
copy: string;
|
|
26
26
|
copyCheck: string;
|
|
27
27
|
dark: string;
|
|
28
|
+
drag: string;
|
|
28
29
|
ellipsis: string;
|
|
29
30
|
error: string;
|
|
30
31
|
external: string;
|
|
@@ -78,10 +79,23 @@ interface NuxtUIOptions extends Omit<ModuleOptions, 'fonts' | 'colorMode'> {
|
|
|
78
79
|
* Override options for `unplugin-vue-components`
|
|
79
80
|
*/
|
|
80
81
|
components?: Partial<Options$1>;
|
|
82
|
+
/**
|
|
83
|
+
* Router integration mode
|
|
84
|
+
* - `true` (default): Use vue-router integration
|
|
85
|
+
* - `false`: Disable routing, use anchor tags
|
|
86
|
+
* - `'inertia'`: Use Inertia.js compatibility layer
|
|
87
|
+
* @defaultValue `true`
|
|
88
|
+
*/
|
|
89
|
+
router?: boolean | 'inertia';
|
|
81
90
|
/**
|
|
82
91
|
* Enables compatibility layer for InertiaJS
|
|
92
|
+
* @deprecated Use `router: 'inertia'` instead
|
|
83
93
|
*/
|
|
84
94
|
inertia?: boolean;
|
|
95
|
+
/**
|
|
96
|
+
* Additional packages to scan for components using Nuxt UI
|
|
97
|
+
*/
|
|
98
|
+
scanPackages?: string[];
|
|
85
99
|
}
|
|
86
100
|
declare const runtimeDir: string;
|
|
87
101
|
declare const NuxtUIPlugin: unplugin.UnpluginInstance<NuxtUIOptions | undefined, boolean>;
|