@nuxt/ui 3.3.3 → 4.0.0-alpha.1
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/auth-form.ts +20 -0
- package/.nuxt/ui/badge.ts +1 -1
- package/.nuxt/ui/banner.ts +108 -0
- package/.nuxt/ui/blog-post.ts +142 -0
- package/.nuxt/ui/blog-posts.ts +9 -0
- package/.nuxt/ui/button.ts +1 -1
- package/.nuxt/ui/changelog-version.ts +41 -0
- package/.nuxt/ui/changelog-versions.ts +8 -0
- package/.nuxt/ui/chat-message.ts +129 -0
- package/.nuxt/ui/chat-messages.ts +14 -0
- package/.nuxt/ui/chat-palette.ts +8 -0
- package/.nuxt/ui/chat-prompt-submit.ts +5 -0
- package/.nuxt/ui/chat-prompt.ts +35 -0
- package/.nuxt/ui/content/content-navigation.ts +367 -0
- package/.nuxt/ui/content/content-search-button.ts +6 -0
- package/.nuxt/ui/content/content-search.ts +6 -0
- package/.nuxt/ui/content/content-surround.ts +34 -0
- package/.nuxt/ui/content/content-toc.ts +155 -0
- package/.nuxt/ui/dashboard-group.ts +3 -0
- package/.nuxt/ui/dashboard-navbar.ts +21 -0
- package/.nuxt/ui/dashboard-panel.ts +17 -0
- package/.nuxt/ui/dashboard-resize-handle.ts +3 -0
- package/.nuxt/ui/dashboard-search-button.ts +6 -0
- package/.nuxt/ui/dashboard-search.ts +6 -0
- package/.nuxt/ui/dashboard-sidebar-collapse.ts +9 -0
- package/.nuxt/ui/dashboard-sidebar-toggle.ts +9 -0
- package/.nuxt/ui/dashboard-sidebar.ts +37 -0
- package/.nuxt/ui/dashboard-toolbar.ts +7 -0
- package/.nuxt/ui/error.ts +9 -0
- package/.nuxt/ui/footer-columns.ts +28 -0
- package/.nuxt/ui/footer.ts +11 -0
- package/.nuxt/ui/header.ts +25 -0
- package/.nuxt/ui/index.ts +54 -2
- package/.nuxt/ui/input-menu.ts +1 -1
- package/.nuxt/ui/input-number.ts +1 -1
- package/.nuxt/ui/input-tags.ts +1 -1
- package/.nuxt/ui/input.ts +1 -1
- package/.nuxt/ui/main.ts +3 -0
- package/.nuxt/ui/marquee.ts +66 -0
- package/.nuxt/ui/page-anchors.ts +30 -0
- package/.nuxt/ui/page-aside.ts +10 -0
- package/.nuxt/ui/page-body.ts +3 -0
- package/.nuxt/ui/page-card.ts +279 -0
- package/.nuxt/ui/page-columns.ts +3 -0
- package/.nuxt/ui/page-cta.ts +70 -0
- package/.nuxt/ui/page-feature.ts +26 -0
- package/.nuxt/ui/page-grid.ts +3 -0
- package/.nuxt/ui/page-header.ts +18 -0
- package/.nuxt/ui/page-hero.ts +44 -0
- package/.nuxt/ui/page-links.ts +25 -0
- package/.nuxt/ui/page-list.ts +8 -0
- package/.nuxt/ui/page-logos.ts +15 -0
- package/.nuxt/ui/page-section.ts +84 -0
- package/.nuxt/ui/page.ts +32 -0
- package/.nuxt/ui/pricing-plan.ts +101 -0
- package/.nuxt/ui/pricing-plans.ts +22 -0
- package/.nuxt/ui/pricing-table.ts +51 -0
- package/.nuxt/ui/prose/a.ts +6 -0
- package/.nuxt/ui/prose/accordion-item.ts +3 -0
- package/.nuxt/ui/prose/accordion.ts +6 -0
- package/.nuxt/ui/prose/badge.ts +3 -0
- package/.nuxt/ui/prose/blockquote.ts +3 -0
- package/.nuxt/ui/prose/callout.ts +129 -0
- package/.nuxt/ui/prose/card-group.ts +3 -0
- package/.nuxt/ui/prose/card.ts +119 -0
- package/.nuxt/ui/prose/code-collapse.ts +19 -0
- package/.nuxt/ui/prose/code-group.ts +13 -0
- package/.nuxt/ui/prose/code-icon.ts +66 -0
- package/.nuxt/ui/prose/code-preview.ts +14 -0
- package/.nuxt/ui/prose/code-tree.ts +28 -0
- package/.nuxt/ui/prose/code.ts +27 -0
- package/.nuxt/ui/prose/collapsible.ts +12 -0
- package/.nuxt/ui/prose/em.ts +3 -0
- package/.nuxt/ui/prose/field-group.ts +3 -0
- package/.nuxt/ui/prose/field.ts +11 -0
- package/.nuxt/ui/prose/h1.ts +6 -0
- package/.nuxt/ui/prose/h2.ts +14 -0
- package/.nuxt/ui/prose/h3.ts +14 -0
- package/.nuxt/ui/prose/h4.ts +6 -0
- package/.nuxt/ui/prose/hr.ts +3 -0
- package/.nuxt/ui/prose/icon.ts +3 -0
- package/.nuxt/ui/prose/img.ts +22 -0
- package/.nuxt/ui/prose/index.ts +41 -0
- package/.nuxt/ui/prose/kbd.ts +3 -0
- package/.nuxt/ui/prose/li.ts +3 -0
- package/.nuxt/ui/prose/ol.ts +3 -0
- package/.nuxt/ui/prose/p.ts +3 -0
- package/.nuxt/ui/prose/pre.ts +17 -0
- package/.nuxt/ui/prose/steps.ts +19 -0
- package/.nuxt/ui/prose/strong.ts +3 -0
- package/.nuxt/ui/prose/table.ts +6 -0
- package/.nuxt/ui/prose/tabs-item.ts +3 -0
- package/.nuxt/ui/prose/tabs.ts +5 -0
- package/.nuxt/ui/prose/tbody.ts +3 -0
- package/.nuxt/ui/prose/td.ts +3 -0
- package/.nuxt/ui/prose/th.ts +3 -0
- package/.nuxt/ui/prose/thead.ts +3 -0
- package/.nuxt/ui/prose/tr.ts +3 -0
- package/.nuxt/ui/prose/ul.ts +3 -0
- package/.nuxt/ui/select-menu.ts +1 -1
- package/.nuxt/ui/select.ts +1 -1
- package/.nuxt/ui/textarea.ts +1 -1
- package/.nuxt/ui/user.ts +101 -0
- package/README.md +12 -16
- package/cli/commands/make/component.mjs +2 -15
- package/cli/templates.mjs +19 -28
- package/dist/module.d.mts +24 -6
- package/dist/module.json +3 -3
- package/dist/module.mjs +68 -7
- package/dist/runtime/components/Accordion.vue +1 -1
- package/dist/runtime/components/Accordion.vue.d.ts +6 -4
- package/dist/runtime/components/Alert.vue +2 -2
- package/dist/runtime/components/Alert.vue.d.ts +4 -4
- package/dist/runtime/components/App.vue.d.ts +2 -1
- package/dist/runtime/components/AuthForm.vue +214 -0
- package/dist/runtime/components/AuthForm.vue.d.ts +90 -0
- package/dist/runtime/components/Avatar.vue +1 -1
- package/dist/runtime/components/Avatar.vue.d.ts +3 -3
- package/dist/runtime/components/AvatarGroup.vue.d.ts +1 -1
- package/dist/runtime/components/Badge.vue +7 -7
- package/dist/runtime/components/Badge.vue.d.ts +1 -1
- package/dist/runtime/components/Banner.vue +117 -0
- package/dist/runtime/components/Banner.vue.d.ts +72 -0
- package/dist/runtime/components/BlogPost.vue +145 -0
- package/dist/runtime/components/BlogPost.vue.d.ts +60 -0
- package/dist/runtime/components/BlogPosts.vue +33 -0
- package/dist/runtime/components/BlogPosts.vue.d.ts +31 -0
- package/dist/runtime/components/Breadcrumb.vue +1 -1
- package/dist/runtime/components/Breadcrumb.vue.d.ts +5 -4
- package/dist/runtime/components/Button.vue +7 -7
- package/dist/runtime/components/Button.vue.d.ts +1 -1
- package/dist/runtime/components/Calendar.vue +4 -4
- package/dist/runtime/components/Calendar.vue.d.ts +6 -6
- package/dist/runtime/components/Card.vue.d.ts +1 -1
- package/dist/runtime/components/Carousel.vue +2 -2
- package/dist/runtime/components/Carousel.vue.d.ts +4 -4
- package/dist/runtime/components/ChangelogVersion.vue +166 -0
- package/dist/runtime/components/ChangelogVersion.vue.d.ts +59 -0
- package/dist/runtime/components/ChangelogVersions.vue +55 -0
- package/dist/runtime/components/ChangelogVersions.vue.d.ts +78 -0
- package/dist/runtime/components/ChatMessage.vue +89 -0
- package/dist/runtime/components/ChatMessage.vue.d.ts +67 -0
- package/dist/runtime/components/ChatMessages.vue +209 -0
- package/dist/runtime/components/ChatMessages.vue.d.ts +83 -0
- package/dist/runtime/components/ChatPalette.vue +32 -0
- package/dist/runtime/components/ChatPalette.vue.d.ts +24 -0
- package/dist/runtime/components/ChatPrompt.vue +79 -0
- package/dist/runtime/components/ChatPrompt.vue.d.ts +61 -0
- package/dist/runtime/components/ChatPromptSubmit.vue +79 -0
- package/dist/runtime/components/ChatPromptSubmit.vue.d.ts +100 -0
- package/dist/runtime/components/Checkbox.vue +2 -2
- package/dist/runtime/components/Checkbox.vue.d.ts +4 -3
- package/dist/runtime/components/CheckboxGroup.vue +1 -1
- package/dist/runtime/components/CheckboxGroup.vue.d.ts +2 -1
- package/dist/runtime/components/Chip.vue.d.ts +1 -1
- package/dist/runtime/components/Collapsible.vue.d.ts +1 -1
- package/dist/runtime/components/ColorPicker.vue.d.ts +2 -2
- package/dist/runtime/components/CommandPalette.vue +6 -6
- package/dist/runtime/components/CommandPalette.vue.d.ts +9 -9
- package/dist/runtime/components/ContextMenu.vue +3 -3
- package/dist/runtime/components/ContextMenu.vue.d.ts +7 -6
- package/dist/runtime/components/ContextMenuContent.vue +3 -3
- package/dist/runtime/components/ContextMenuContent.vue.d.ts +6 -5
- package/dist/runtime/components/DashboardGroup.vue +48 -0
- package/dist/runtime/components/DashboardGroup.vue.d.ts +24 -0
- package/dist/runtime/components/DashboardNavbar.vue +72 -0
- package/dist/runtime/components/DashboardNavbar.vue.d.ts +52 -0
- package/dist/runtime/components/DashboardPanel.vue +62 -0
- package/dist/runtime/components/DashboardPanel.vue.d.ts +30 -0
- package/dist/runtime/components/DashboardResizeHandle.vue +27 -0
- package/dist/runtime/components/DashboardResizeHandle.vue.d.ts +18 -0
- package/dist/runtime/components/DashboardSearch.vue +124 -0
- package/dist/runtime/components/DashboardSearch.vue.d.ts +91 -0
- package/dist/runtime/components/DashboardSearchButton.vue +82 -0
- package/dist/runtime/components/DashboardSearchButton.vue.d.ts +59 -0
- package/dist/runtime/components/DashboardSidebar.vue +162 -0
- package/dist/runtime/components/DashboardSidebar.vue.d.ts +75 -0
- package/dist/runtime/components/DashboardSidebarCollapse.vue +36 -0
- package/dist/runtime/components/DashboardSidebarCollapse.vue.d.ts +19 -0
- package/dist/runtime/components/DashboardSidebarToggle.vue +36 -0
- package/dist/runtime/components/DashboardSidebarToggle.vue.d.ts +19 -0
- package/dist/runtime/components/DashboardToolbar.vue +32 -0
- package/dist/runtime/components/DashboardToolbar.vue.d.ts +25 -0
- package/dist/runtime/components/Drawer.vue.d.ts +3 -2
- package/dist/runtime/components/DropdownMenu.vue +3 -3
- package/dist/runtime/components/DropdownMenu.vue.d.ts +7 -6
- package/dist/runtime/components/DropdownMenuContent.vue +3 -3
- package/dist/runtime/components/DropdownMenuContent.vue.d.ts +6 -5
- package/dist/runtime/components/Error.vue +60 -0
- package/dist/runtime/components/Error.vue.d.ts +47 -0
- package/dist/runtime/components/{ButtonGroup.vue → FieldGroup.vue} +4 -4
- package/dist/runtime/components/FieldGroup.vue.d.ts +34 -0
- package/dist/runtime/components/FileUpload.vue +3 -3
- package/dist/runtime/components/FileUpload.vue.d.ts +5 -5
- package/dist/runtime/components/Footer.vue +45 -0
- package/dist/runtime/components/Footer.vue.d.ts +29 -0
- package/dist/runtime/components/FooterColumns.vue +71 -0
- package/dist/runtime/components/FooterColumns.vue.d.ts +57 -0
- package/dist/runtime/components/FormField.vue.d.ts +1 -1
- package/dist/runtime/components/Header.vue +141 -0
- package/dist/runtime/components/Header.vue.d.ts +68 -0
- package/dist/runtime/components/Icon.vue +3 -2
- package/dist/runtime/components/Icon.vue.d.ts +1 -1
- package/dist/runtime/components/Input.vue +12 -9
- package/dist/runtime/components/Input.vue.d.ts +4 -8
- package/dist/runtime/components/InputMenu.vue +10 -10
- package/dist/runtime/components/InputMenu.vue.d.ts +8 -7
- package/dist/runtime/components/InputNumber.vue +16 -10
- package/dist/runtime/components/InputNumber.vue.d.ts +8 -4
- package/dist/runtime/components/InputTags.vue +9 -9
- package/dist/runtime/components/InputTags.vue.d.ts +3 -2
- package/dist/runtime/components/Kbd.vue.d.ts +1 -1
- package/dist/runtime/components/Main.vue +23 -0
- package/dist/runtime/components/Main.vue.d.ts +20 -0
- package/dist/runtime/components/Marquee.vue +40 -0
- package/dist/runtime/components/Marquee.vue.d.ts +32 -0
- package/dist/runtime/components/Modal.vue +1 -1
- package/dist/runtime/components/Modal.vue.d.ts +4 -3
- package/dist/runtime/components/NavigationMenu.vue +2 -2
- package/dist/runtime/components/NavigationMenu.vue.d.ts +7 -6
- package/dist/runtime/components/Page.vue +37 -0
- package/dist/runtime/components/Page.vue.d.ts +25 -0
- package/dist/runtime/components/PageAnchors.vue +53 -0
- package/dist/runtime/components/PageAnchors.vue.d.ts +47 -0
- package/dist/runtime/components/PageAside.vue +36 -0
- package/dist/runtime/components/PageAside.vue.d.ts +27 -0
- package/dist/runtime/components/PageBody.vue +23 -0
- package/dist/runtime/components/PageBody.vue.d.ts +18 -0
- package/dist/runtime/components/PageCTA.vue +76 -0
- package/dist/runtime/components/PageCTA.vue.d.ts +56 -0
- package/dist/runtime/components/PageCard.vue +122 -0
- package/dist/runtime/components/PageCard.vue.d.ts +72 -0
- package/dist/runtime/components/PageColumns.vue +23 -0
- package/dist/runtime/components/PageColumns.vue.d.ts +18 -0
- package/dist/runtime/components/PageFeature.vue +73 -0
- package/dist/runtime/components/PageFeature.vue.d.ts +44 -0
- package/dist/runtime/components/PageGrid.vue +23 -0
- package/dist/runtime/components/PageGrid.vue.d.ts +18 -0
- package/dist/runtime/components/PageHeader.vue +59 -0
- package/dist/runtime/components/PageHeader.vue.d.ts +36 -0
- package/dist/runtime/components/PageHero.vue +81 -0
- package/dist/runtime/components/PageHero.vue.d.ts +53 -0
- package/dist/runtime/components/PageLinks.vue +58 -0
- package/dist/runtime/components/PageLinks.vue.d.ts +49 -0
- package/dist/runtime/components/PageList.vue +24 -0
- package/dist/runtime/components/PageList.vue.d.ts +21 -0
- package/dist/runtime/components/PageLogos.vue +65 -0
- package/dist/runtime/components/PageLogos.vue.d.ts +33 -0
- package/dist/runtime/components/PageSection.vue +104 -0
- package/dist/runtime/components/PageSection.vue.d.ts +68 -0
- package/dist/runtime/components/Pagination.vue +5 -5
- package/dist/runtime/components/Pagination.vue.d.ts +9 -9
- package/dist/runtime/components/PinInput.vue.d.ts +3 -3
- package/dist/runtime/components/Popover.vue.d.ts +2 -1
- package/dist/runtime/components/PricingPlan.vue +137 -0
- package/dist/runtime/components/PricingPlan.vue.d.ts +112 -0
- package/dist/runtime/components/PricingPlans.vue +45 -0
- package/dist/runtime/components/PricingPlans.vue.d.ts +44 -0
- package/dist/runtime/components/PricingTable.vue +239 -0
- package/dist/runtime/components/PricingTable.vue.d.ts +105 -0
- package/dist/runtime/components/Progress.vue.d.ts +1 -1
- package/dist/runtime/components/RadioGroup.vue.d.ts +2 -1
- package/dist/runtime/components/Select.vue +9 -9
- package/dist/runtime/components/Select.vue.d.ts +6 -5
- package/dist/runtime/components/SelectMenu.vue +9 -9
- package/dist/runtime/components/SelectMenu.vue.d.ts +7 -6
- package/dist/runtime/components/Separator.vue +1 -1
- package/dist/runtime/components/Separator.vue.d.ts +3 -3
- package/dist/runtime/components/Slideover.vue +1 -1
- package/dist/runtime/components/Slideover.vue.d.ts +4 -3
- package/dist/runtime/components/Slider.vue.d.ts +1 -1
- package/dist/runtime/components/Stepper.vue.d.ts +7 -5
- package/dist/runtime/components/Switch.vue +3 -3
- package/dist/runtime/components/Switch.vue.d.ts +5 -4
- package/dist/runtime/components/Table.vue.d.ts +1 -1
- package/dist/runtime/components/Tabs.vue.d.ts +4 -3
- package/dist/runtime/components/Textarea.vue +8 -5
- package/dist/runtime/components/Textarea.vue.d.ts +3 -8
- package/dist/runtime/components/Timeline.vue.d.ts +4 -3
- package/dist/runtime/components/Toast.vue +2 -2
- package/dist/runtime/components/Toast.vue.d.ts +7 -6
- package/dist/runtime/components/Toaster.vue.d.ts +2 -2
- package/dist/runtime/components/Tooltip.vue.d.ts +2 -1
- package/dist/runtime/components/Tree.vue +3 -3
- package/dist/runtime/components/Tree.vue.d.ts +8 -6
- package/dist/runtime/components/User.vue +72 -0
- package/dist/runtime/components/User.vue.d.ts +47 -0
- package/dist/runtime/components/color-mode/ColorModeAvatar.vue +17 -0
- package/dist/runtime/components/color-mode/ColorModeAvatar.vue.d.ts +7 -0
- package/dist/runtime/components/color-mode/ColorModeButton.vue +46 -0
- package/dist/runtime/components/color-mode/ColorModeButton.vue.d.ts +23 -0
- package/dist/runtime/components/color-mode/ColorModeImage.vue +13 -0
- package/dist/runtime/components/color-mode/ColorModeImage.vue.d.ts +6 -0
- package/dist/runtime/components/color-mode/ColorModeSelect.vue +51 -0
- package/dist/runtime/components/color-mode/ColorModeSelect.vue.d.ts +5 -0
- package/dist/runtime/components/color-mode/ColorModeSwitch.vue +45 -0
- package/dist/runtime/components/color-mode/ColorModeSwitch.vue.d.ts +5 -0
- package/dist/runtime/components/content/ContentNavigation.vue +137 -0
- package/dist/runtime/components/content/ContentNavigation.vue.d.ts +102 -0
- package/dist/runtime/components/content/ContentSearch.vue +174 -0
- package/dist/runtime/components/content/ContentSearch.vue.d.ts +114 -0
- package/dist/runtime/components/content/ContentSearchButton.vue +81 -0
- package/dist/runtime/components/content/ContentSearchButton.vue.d.ts +59 -0
- package/dist/runtime/components/content/ContentSurround.vue +64 -0
- package/dist/runtime/components/content/ContentSurround.vue.d.ts +59 -0
- package/dist/runtime/components/content/ContentToc.vue +148 -0
- package/dist/runtime/components/content/ContentToc.vue.d.ts +88 -0
- package/dist/runtime/components/locale/LocaleSelect.vue +90 -0
- package/dist/runtime/components/locale/LocaleSelect.vue.d.ts +15 -0
- package/dist/runtime/components/prose/A.vue +24 -0
- package/dist/runtime/components/prose/A.vue.d.ts +15 -0
- package/dist/runtime/components/prose/Accordion.vue +44 -0
- package/dist/runtime/components/prose/Accordion.vue.d.ts +16 -0
- package/dist/runtime/components/prose/AccordionItem.vue +25 -0
- package/dist/runtime/components/prose/AccordionItem.vue.d.ts +15 -0
- package/dist/runtime/components/prose/Badge.vue +22 -0
- package/dist/runtime/components/prose/Badge.vue.d.ts +13 -0
- package/dist/runtime/components/prose/Blockquote.vue +21 -0
- package/dist/runtime/components/prose/Blockquote.vue.d.ts +13 -0
- package/dist/runtime/components/prose/Callout.vue +46 -0
- package/dist/runtime/components/prose/Callout.vue.d.ts +26 -0
- package/dist/runtime/components/prose/Card.vue +61 -0
- package/dist/runtime/components/prose/Card.vue.d.ts +29 -0
- package/dist/runtime/components/prose/CardGroup.vue +21 -0
- package/dist/runtime/components/prose/CardGroup.vue.d.ts +13 -0
- package/dist/runtime/components/prose/Code.vue +23 -0
- package/dist/runtime/components/prose/Code.vue.d.ts +22 -0
- package/dist/runtime/components/prose/CodeCollapse.vue +45 -0
- package/dist/runtime/components/prose/CodeCollapse.vue.d.ts +47 -0
- package/dist/runtime/components/prose/CodeGroup.vue +70 -0
- package/dist/runtime/components/prose/CodeGroup.vue.d.ts +37 -0
- package/dist/runtime/components/prose/CodeIcon.vue +32 -0
- package/dist/runtime/components/prose/CodeIcon.vue.d.ts +7 -0
- package/dist/runtime/components/prose/CodePreview.vue +28 -0
- package/dist/runtime/components/prose/CodePreview.vue.d.ts +19 -0
- package/dist/runtime/components/prose/CodeTree.vue +149 -0
- package/dist/runtime/components/prose/CodeTree.vue.d.ts +28 -0
- package/dist/runtime/components/prose/Collapsible.vue +43 -0
- package/dist/runtime/components/prose/Collapsible.vue.d.ts +39 -0
- package/dist/runtime/components/prose/Em.vue +19 -0
- package/dist/runtime/components/prose/Em.vue.d.ts +13 -0
- package/dist/runtime/components/prose/Field.vue +48 -0
- package/dist/runtime/components/prose/Field.vue.d.ts +39 -0
- package/dist/runtime/components/prose/FieldGroup.vue +23 -0
- package/dist/runtime/components/prose/FieldGroup.vue.d.ts +18 -0
- package/dist/runtime/components/prose/H1.vue +28 -0
- package/dist/runtime/components/prose/H1.vue.d.ts +19 -0
- package/dist/runtime/components/prose/H2.vue +33 -0
- package/dist/runtime/components/prose/H2.vue.d.ts +19 -0
- package/dist/runtime/components/prose/H3.vue +33 -0
- package/dist/runtime/components/prose/H3.vue.d.ts +19 -0
- package/dist/runtime/components/prose/H4.vue +28 -0
- package/dist/runtime/components/prose/H4.vue.d.ts +19 -0
- package/dist/runtime/components/prose/Hr.vue +18 -0
- package/dist/runtime/components/prose/Hr.vue.d.ts +5 -0
- package/dist/runtime/components/prose/Icon.vue +20 -0
- package/dist/runtime/components/prose/Icon.vue.d.ts +6 -0
- package/dist/runtime/components/prose/Img.vue +82 -0
- package/dist/runtime/components/prose/Img.vue.d.ts +21 -0
- package/dist/runtime/components/prose/Kbd.vue +20 -0
- package/dist/runtime/components/prose/Kbd.vue.d.ts +6 -0
- package/dist/runtime/components/prose/Li.vue +21 -0
- package/dist/runtime/components/prose/Li.vue.d.ts +13 -0
- package/dist/runtime/components/prose/Ol.vue +21 -0
- package/dist/runtime/components/prose/Ol.vue.d.ts +13 -0
- package/dist/runtime/components/prose/P.vue +21 -0
- package/dist/runtime/components/prose/P.vue.d.ts +13 -0
- package/dist/runtime/components/prose/Pre.vue +56 -0
- package/dist/runtime/components/prose/Pre.vue.d.ts +26 -0
- package/dist/runtime/components/prose/Script.vue +12 -0
- package/dist/runtime/components/prose/Script.vue.d.ts +5 -0
- package/dist/runtime/components/prose/Steps.vue +22 -0
- package/dist/runtime/components/prose/Steps.vue.d.ts +22 -0
- package/dist/runtime/components/prose/Strong.vue +21 -0
- package/dist/runtime/components/prose/Strong.vue.d.ts +13 -0
- package/dist/runtime/components/prose/Table.vue +24 -0
- package/dist/runtime/components/prose/Table.vue.d.ts +18 -0
- package/dist/runtime/components/prose/Tabs.vue +79 -0
- package/dist/runtime/components/prose/Tabs.vue.d.ts +36 -0
- package/dist/runtime/components/prose/TabsItem.vue +25 -0
- package/dist/runtime/components/prose/TabsItem.vue.d.ts +15 -0
- package/dist/runtime/components/prose/Tbody.vue +21 -0
- package/dist/runtime/components/prose/Tbody.vue.d.ts +13 -0
- package/dist/runtime/components/prose/Td.vue +21 -0
- package/dist/runtime/components/prose/Td.vue.d.ts +13 -0
- package/dist/runtime/components/prose/Th.vue +21 -0
- package/dist/runtime/components/prose/Th.vue.d.ts +13 -0
- package/dist/runtime/components/prose/Thead.vue +21 -0
- package/dist/runtime/components/prose/Thead.vue.d.ts +13 -0
- package/dist/runtime/components/prose/Tr.vue +21 -0
- package/dist/runtime/components/prose/Tr.vue.d.ts +13 -0
- package/dist/runtime/components/prose/Ul.vue +21 -0
- package/dist/runtime/components/prose/Ul.vue.d.ts +13 -0
- package/dist/runtime/components/prose/callout/Caution.vue +11 -0
- package/dist/runtime/components/prose/callout/Caution.vue.d.ts +14 -0
- package/dist/runtime/components/prose/callout/Note.vue +11 -0
- package/dist/runtime/components/prose/callout/Note.vue.d.ts +14 -0
- package/dist/runtime/components/prose/callout/Tip.vue +11 -0
- package/dist/runtime/components/prose/callout/Tip.vue.d.ts +14 -0
- package/dist/runtime/components/prose/callout/Warning.vue +11 -0
- package/dist/runtime/components/prose/callout/Warning.vue.d.ts +14 -0
- package/dist/runtime/composables/color-mode/useColorMode.d.ts +3 -0
- package/dist/runtime/composables/color-mode/useColorMode.js +5 -0
- package/dist/runtime/composables/useComponentIcons.d.ts +5 -5
- package/dist/runtime/composables/useContentSearch.d.ts +5 -0
- package/dist/runtime/composables/useContentSearch.js +9 -0
- package/dist/runtime/composables/{useButtonGroup.d.ts → useFieldGroup.d.ts} +5 -5
- package/dist/runtime/composables/useFieldGroup.js +9 -0
- package/dist/runtime/composables/useResizable.d.ts +76 -0
- package/dist/runtime/composables/useResizable.js +203 -0
- package/dist/runtime/composables/useScrollspy.d.ts +5 -0
- package/dist/runtime/composables/useScrollspy.js +41 -0
- package/dist/runtime/index.css +1 -1
- package/dist/runtime/inertia/stubs.d.ts +1 -1
- package/dist/runtime/locale/ar.js +100 -30
- package/dist/runtime/locale/az.js +100 -30
- package/dist/runtime/locale/bg.js +100 -30
- package/dist/runtime/locale/bn.js +100 -30
- package/dist/runtime/locale/ca.js +100 -30
- package/dist/runtime/locale/ckb.js +100 -30
- package/dist/runtime/locale/cs.js +100 -30
- package/dist/runtime/locale/da.js +100 -30
- package/dist/runtime/locale/de.js +100 -30
- package/dist/runtime/locale/el.js +100 -30
- package/dist/runtime/locale/en.js +100 -30
- package/dist/runtime/locale/es.js +100 -30
- package/dist/runtime/locale/et.js +100 -30
- package/dist/runtime/locale/fa_ir.js +100 -30
- package/dist/runtime/locale/fi.js +100 -30
- package/dist/runtime/locale/fr.js +100 -30
- package/dist/runtime/locale/he.js +100 -28
- package/dist/runtime/locale/hi.js +100 -30
- package/dist/runtime/locale/hu.js +100 -30
- package/dist/runtime/locale/hy.js +100 -30
- package/dist/runtime/locale/id.js +100 -30
- package/dist/runtime/locale/it.js +100 -30
- package/dist/runtime/locale/ja.js +100 -30
- package/dist/runtime/locale/kk.js +99 -29
- package/dist/runtime/locale/km.js +100 -30
- package/dist/runtime/locale/ko.js +100 -30
- package/dist/runtime/locale/ky.js +100 -30
- package/dist/runtime/locale/lb.js +100 -30
- package/dist/runtime/locale/lt.js +100 -30
- package/dist/runtime/locale/mn.js +100 -30
- package/dist/runtime/locale/ms.js +100 -30
- package/dist/runtime/locale/nb_no.js +100 -30
- package/dist/runtime/locale/nl.js +100 -30
- package/dist/runtime/locale/pl.js +100 -30
- package/dist/runtime/locale/pt.js +100 -30
- package/dist/runtime/locale/pt_br.js +100 -30
- package/dist/runtime/locale/ro.js +100 -30
- package/dist/runtime/locale/ru.js +100 -30
- package/dist/runtime/locale/sk.js +100 -30
- package/dist/runtime/locale/sl.js +100 -30
- package/dist/runtime/locale/sv.js +100 -30
- package/dist/runtime/locale/th.js +100 -30
- package/dist/runtime/locale/tj.js +100 -30
- package/dist/runtime/locale/tr.js +100 -30
- package/dist/runtime/locale/ug_cn.js +99 -29
- package/dist/runtime/locale/uk.js +100 -30
- package/dist/runtime/locale/ur.js +100 -30
- package/dist/runtime/locale/uz.js +100 -30
- package/dist/runtime/locale/vi.js +100 -30
- package/dist/runtime/locale/zh_cn.js +100 -30
- package/dist/runtime/locale/zh_tw.js +100 -30
- package/dist/runtime/types/content.d.ts +4 -0
- package/dist/runtime/types/content.js +4 -0
- package/dist/runtime/types/index.d.ts +53 -2
- package/dist/runtime/types/index.js +53 -2
- package/dist/runtime/types/input.d.ts +8 -0
- package/dist/runtime/types/input.js +0 -0
- package/dist/runtime/types/locale.d.ts +108 -28
- package/dist/runtime/types/prose.d.ts +42 -0
- package/dist/runtime/types/prose.js +42 -0
- package/dist/runtime/types/tv.d.ts +4 -4
- package/dist/runtime/types/utils.d.ts +1 -1
- package/dist/runtime/types/utils.js +0 -1
- package/dist/runtime/utils/ai.d.ts +2 -0
- package/dist/runtime/utils/ai.js +3 -0
- package/dist/runtime/utils/content.d.ts +14 -0
- package/dist/runtime/utils/content.js +25 -0
- package/dist/runtime/utils/dashboard.d.ts +10 -0
- package/dist/runtime/utils/dashboard.js +2 -0
- package/dist/runtime/utils/index.d.ts +3 -0
- package/dist/runtime/utils/index.js +14 -0
- package/dist/runtime/vue/components/Icon.vue +3 -2
- package/dist/runtime/vue/components/Icon.vue.d.ts +2 -1
- package/dist/runtime/vue/components/color-mode/ColorModeButton.vue +35 -0
- package/dist/runtime/vue/components/color-mode/ColorModeButton.vue.d.ts +16 -0
- package/dist/runtime/vue/components/color-mode/ColorModeSelect.vue +38 -0
- package/dist/runtime/vue/components/color-mode/ColorModeSelect.vue.d.ts +5 -0
- package/dist/runtime/vue/components/color-mode/ColorModeSwitch.vue +33 -0
- package/dist/runtime/vue/components/color-mode/ColorModeSwitch.vue.d.ts +5 -0
- package/dist/runtime/vue/stubs.d.ts +1 -1
- package/dist/shared/{ui.BTUFJHYJ.mjs → ui.BEZXPd3d.mjs} +3664 -1382
- package/dist/unplugin.d.mts +21 -0
- package/dist/unplugin.mjs +37 -18
- package/dist/vite.mjs +4 -4
- package/package.json +14 -11
- package/dist/runtime/components/ButtonGroup.vue.d.ts +0 -34
- package/dist/runtime/composables/useButtonGroup.js +0 -9
- /package/.nuxt/ui/{button-group.ts → field-group.ts} +0 -0
package/.nuxt/ui/user.ts
ADDED
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
const size = [
|
|
2
|
+
"3xs",
|
|
3
|
+
"2xs",
|
|
4
|
+
"xs",
|
|
5
|
+
"sm",
|
|
6
|
+
"md",
|
|
7
|
+
"lg",
|
|
8
|
+
"xl",
|
|
9
|
+
"2xl",
|
|
10
|
+
"3xl"
|
|
11
|
+
] as const
|
|
12
|
+
|
|
13
|
+
export default {
|
|
14
|
+
"slots": {
|
|
15
|
+
"root": "relative group/user",
|
|
16
|
+
"wrapper": "",
|
|
17
|
+
"name": "font-medium",
|
|
18
|
+
"description": "text-muted",
|
|
19
|
+
"avatar": "shrink-0"
|
|
20
|
+
},
|
|
21
|
+
"variants": {
|
|
22
|
+
"orientation": {
|
|
23
|
+
"horizontal": {
|
|
24
|
+
"root": "flex items-center"
|
|
25
|
+
},
|
|
26
|
+
"vertical": {
|
|
27
|
+
"root": "flex flex-col"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"to": {
|
|
31
|
+
"true": {
|
|
32
|
+
"name": [
|
|
33
|
+
"text-default peer-hover:text-highlighted",
|
|
34
|
+
"transition-colors"
|
|
35
|
+
],
|
|
36
|
+
"description": [
|
|
37
|
+
"peer-hover:text-toned",
|
|
38
|
+
"transition-colors"
|
|
39
|
+
],
|
|
40
|
+
"avatar": "transform transition-transform duration-200 group-hover/user:scale-115"
|
|
41
|
+
},
|
|
42
|
+
"false": {
|
|
43
|
+
"name": "text-highlighted",
|
|
44
|
+
"description": ""
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
"size": {
|
|
48
|
+
"3xs": {
|
|
49
|
+
"root": "gap-1",
|
|
50
|
+
"wrapper": "flex items-center gap-1",
|
|
51
|
+
"name": "text-xs",
|
|
52
|
+
"description": "text-xs"
|
|
53
|
+
},
|
|
54
|
+
"2xs": {
|
|
55
|
+
"root": "gap-1.5",
|
|
56
|
+
"wrapper": "flex items-center gap-1.5",
|
|
57
|
+
"name": "text-xs",
|
|
58
|
+
"description": "text-xs"
|
|
59
|
+
},
|
|
60
|
+
"xs": {
|
|
61
|
+
"root": "gap-1.5",
|
|
62
|
+
"wrapper": "flex items-center gap-1.5",
|
|
63
|
+
"name": "text-xs",
|
|
64
|
+
"description": "text-xs"
|
|
65
|
+
},
|
|
66
|
+
"sm": {
|
|
67
|
+
"root": "gap-2",
|
|
68
|
+
"name": "text-xs",
|
|
69
|
+
"description": "text-xs"
|
|
70
|
+
},
|
|
71
|
+
"md": {
|
|
72
|
+
"root": "gap-2",
|
|
73
|
+
"name": "text-sm",
|
|
74
|
+
"description": "text-xs"
|
|
75
|
+
},
|
|
76
|
+
"lg": {
|
|
77
|
+
"root": "gap-2.5",
|
|
78
|
+
"name": "text-sm",
|
|
79
|
+
"description": "text-sm"
|
|
80
|
+
},
|
|
81
|
+
"xl": {
|
|
82
|
+
"root": "gap-2.5",
|
|
83
|
+
"name": "text-base",
|
|
84
|
+
"description": "text-sm"
|
|
85
|
+
},
|
|
86
|
+
"2xl": {
|
|
87
|
+
"root": "gap-3",
|
|
88
|
+
"name": "text-base",
|
|
89
|
+
"description": "text-base"
|
|
90
|
+
},
|
|
91
|
+
"3xl": {
|
|
92
|
+
"root": "gap-3",
|
|
93
|
+
"name": "text-lg",
|
|
94
|
+
"description": "text-base"
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
"defaultVariants": {
|
|
99
|
+
"size": "md" as typeof size[number]
|
|
100
|
+
}
|
|
101
|
+
}
|
package/README.md
CHANGED
|
@@ -14,32 +14,28 @@
|
|
|
14
14
|
Nuxt UI harnesses the combined strengths of [Reka UI](https://reka-ui.com/), [Tailwind CSS](https://tailwindcss.com/), and [Tailwind Variants](https://www.tailwind-variants.org/) to offer developers an unparalleled set of tools for creating sophisticated, accessible, and highly performant user interfaces.
|
|
15
15
|
|
|
16
16
|
> [!NOTE]
|
|
17
|
-
> You are on the `
|
|
18
|
-
|
|
19
|
-
> [!TIP]
|
|
20
|
-
> **Looking for more components ?**
|
|
21
|
-
> Check out [Nuxt UI Pro](https://ui.nuxt.com/pro), a collection of premium Vue components, composables, and utilities built on top of Nuxt UI for faster and more powerful app development.
|
|
17
|
+
> You are on the `v4` branch, check out the [v3 branch](https://github.com/nuxt/ui/tree/v3) for Nuxt UI v3 or [v2 branch](https://github.com/nuxt/ui/tree/v2) for Nuxt UI v2.
|
|
22
18
|
|
|
23
19
|
## Documentation
|
|
24
20
|
|
|
25
|
-
Visit https://
|
|
21
|
+
Visit https://ui4.nuxt.com to explore the documentation.
|
|
26
22
|
|
|
27
23
|
## Installation
|
|
28
24
|
|
|
29
25
|
```bash [pnpm]
|
|
30
|
-
pnpm add @nuxt/ui
|
|
26
|
+
pnpm add @nuxt/ui@alpha
|
|
31
27
|
```
|
|
32
28
|
|
|
33
29
|
```bash [yarn]
|
|
34
|
-
yarn add @nuxt/ui
|
|
30
|
+
yarn add @nuxt/ui@alpha
|
|
35
31
|
```
|
|
36
32
|
|
|
37
33
|
```bash [npm]
|
|
38
|
-
npm install @nuxt/ui
|
|
34
|
+
npm install @nuxt/ui@alpha
|
|
39
35
|
```
|
|
40
36
|
|
|
41
37
|
```bash [bun]
|
|
42
|
-
bun add @nuxt/ui
|
|
38
|
+
bun add @nuxt/ui@alpha
|
|
43
39
|
```
|
|
44
40
|
|
|
45
41
|
### Nuxt
|
|
@@ -59,7 +55,7 @@ export default defineNuxtConfig({
|
|
|
59
55
|
@import "@nuxt/ui";
|
|
60
56
|
```
|
|
61
57
|
|
|
62
|
-
Learn more in the [installation guide](https://
|
|
58
|
+
Learn more in the [installation guide](https://ui4.nuxt.com/docs/getting-started/installation/nuxt).
|
|
63
59
|
|
|
64
60
|
### Vue
|
|
65
61
|
|
|
@@ -106,18 +102,18 @@ app.mount('#app')
|
|
|
106
102
|
@import "@nuxt/ui";
|
|
107
103
|
```
|
|
108
104
|
|
|
109
|
-
Learn more in the [installation guide](https://
|
|
105
|
+
Learn more in the [installation guide](https://ui4.nuxt.com/docs/getting-started/installation/vue).
|
|
110
106
|
|
|
111
107
|
## Contribution
|
|
112
108
|
|
|
113
109
|
Thank you for considering contributing to Nuxt UI. Here are a few ways you can get involved:
|
|
114
110
|
|
|
115
111
|
- Reporting Bugs: If you come across any bugs or issues, please check out the reporting bugs guide to learn how to submit a bug report.
|
|
116
|
-
- Suggestions: Have any thoughts to enhance Nuxt UI? We'd love to hear them! Check out the [contribution guide](https://
|
|
112
|
+
- Suggestions: Have any thoughts to enhance Nuxt UI? We'd love to hear them! Check out the [contribution guide](https://ui4.nuxt.com/docs/getting-started/contribution) to share your suggestions.
|
|
117
113
|
|
|
118
114
|
## Local Development
|
|
119
115
|
|
|
120
|
-
Follow the docs to [set up your local development environment](https://
|
|
116
|
+
Follow the docs to [set up your local development environment](https://ui4.nuxt.com/docs/getting-started/contribution#local-development) and contribute.
|
|
121
117
|
|
|
122
118
|
## Credits
|
|
123
119
|
|
|
@@ -131,7 +127,7 @@ Follow the docs to [set up your local development environment](https://ui.nuxt.c
|
|
|
131
127
|
|
|
132
128
|
## License
|
|
133
129
|
|
|
134
|
-
Licensed under the [MIT license](https://github.com/nuxt/ui/blob/
|
|
130
|
+
Licensed under the [MIT license](https://github.com/nuxt/ui/blob/v4/LICENSE.md).
|
|
135
131
|
|
|
136
132
|
<!-- Badges -->
|
|
137
133
|
[npm-version-src]: https://img.shields.io/npm/v/@nuxt/ui/latest.svg?style=flat&colorA=18181B&colorB=28CF8D
|
|
@@ -141,7 +137,7 @@ Licensed under the [MIT license](https://github.com/nuxt/ui/blob/v3/LICENSE.md).
|
|
|
141
137
|
[npm-downloads-href]: https://npm.chart.dev/@nuxt/ui
|
|
142
138
|
|
|
143
139
|
[license-src]: https://img.shields.io/github/license/nuxt/ui.svg?style=flat&colorA=18181B&colorB=28CF8D
|
|
144
|
-
[license-href]: https://github.com/nuxt/ui/blob/
|
|
140
|
+
[license-href]: https://github.com/nuxt/ui/blob/v4/LICENSE.md
|
|
145
141
|
|
|
146
142
|
[nuxt-src]: https://img.shields.io/badge/Nuxt-18181B?logo=nuxt.js
|
|
147
143
|
[nuxt-href]: https://nuxt.com
|
|
@@ -21,17 +21,13 @@ export default defineCommand({
|
|
|
21
21
|
type: 'boolean',
|
|
22
22
|
description: 'Create a primitive component.'
|
|
23
23
|
},
|
|
24
|
-
pro: {
|
|
25
|
-
type: 'boolean',
|
|
26
|
-
description: 'Create a pro component.'
|
|
27
|
-
},
|
|
28
24
|
prose: {
|
|
29
25
|
type: 'boolean',
|
|
30
|
-
description: 'Create a prose component
|
|
26
|
+
description: 'Create a prose component.'
|
|
31
27
|
},
|
|
32
28
|
content: {
|
|
33
29
|
type: 'boolean',
|
|
34
|
-
description: 'Create a content component
|
|
30
|
+
description: 'Create a content component.'
|
|
35
31
|
},
|
|
36
32
|
template: {
|
|
37
33
|
type: 'string',
|
|
@@ -45,15 +41,6 @@ export default defineCommand({
|
|
|
45
41
|
process.exit(1)
|
|
46
42
|
}
|
|
47
43
|
|
|
48
|
-
if (args.prose && !args.pro) {
|
|
49
|
-
consola.error('`--prose` flag can only be used with `--pro` flag!')
|
|
50
|
-
process.exit(1)
|
|
51
|
-
}
|
|
52
|
-
if (args.content && !args.pro) {
|
|
53
|
-
consola.error('`--content` flag can only be used with `--pro` flag!')
|
|
54
|
-
process.exit(1)
|
|
55
|
-
}
|
|
56
|
-
|
|
57
44
|
const path = resolve('.')
|
|
58
45
|
|
|
59
46
|
for (const template of Object.keys(templates)) {
|
package/cli/templates.mjs
CHANGED
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
import { splitByCase, upperFirst, camelCase, kebabCase } from 'scule'
|
|
2
2
|
|
|
3
|
-
const playground = ({ name
|
|
3
|
+
const playground = ({ name }) => {
|
|
4
4
|
const upperName = splitByCase(name).map(p => upperFirst(p)).join('')
|
|
5
5
|
const kebabName = kebabCase(name)
|
|
6
6
|
|
|
7
7
|
return {
|
|
8
|
-
filename: `
|
|
9
|
-
contents:
|
|
10
|
-
? undefined
|
|
11
|
-
: `
|
|
8
|
+
filename: `playgrounds/nuxt/app/pages/components/${kebabName}.vue`,
|
|
9
|
+
contents: `
|
|
12
10
|
<template>
|
|
13
11
|
<div>
|
|
14
12
|
<U${upperName} />
|
|
@@ -18,12 +16,10 @@ const playground = ({ name, pro }) => {
|
|
|
18
16
|
}
|
|
19
17
|
}
|
|
20
18
|
|
|
21
|
-
const component = ({ name, primitive,
|
|
19
|
+
const component = ({ name, primitive, prose, content }) => {
|
|
22
20
|
const upperName = splitByCase(name).map(p => upperFirst(p)).join('')
|
|
23
21
|
const camelName = camelCase(name)
|
|
24
22
|
const kebabName = kebabCase(name)
|
|
25
|
-
const key = pro ? 'uiPro' : 'ui'
|
|
26
|
-
const path = pro ? 'ui-pro' : 'ui'
|
|
27
23
|
|
|
28
24
|
return {
|
|
29
25
|
filename: `src/runtime/components/${prose ? 'prose/' : ''}${content ? 'content/' : ''}${upperName}.vue`,
|
|
@@ -31,11 +27,10 @@ const component = ({ name, primitive, pro, prose, content }) => {
|
|
|
31
27
|
? `
|
|
32
28
|
<script lang="ts">
|
|
33
29
|
import type { AppConfig } from '@nuxt/schema'
|
|
34
|
-
|
|
35
|
-
import
|
|
36
|
-
${!pro ? `import type { ComponentConfig } from '../types/utils'` : ''}
|
|
30
|
+
import theme from '#build/ui/${prose ? 'prose/' : ''}${content ? 'content/' : ''}${kebabName}'
|
|
31
|
+
import type { ComponentConfig } from '../types/tv'
|
|
37
32
|
|
|
38
|
-
type ${upperName} = ComponentConfig<typeof theme, AppConfig, '${camelName}'
|
|
33
|
+
type ${upperName} = ComponentConfig<typeof theme, AppConfig, '${camelName}'>
|
|
39
34
|
|
|
40
35
|
export interface ${upperName}Props {
|
|
41
36
|
/**
|
|
@@ -63,7 +58,7 @@ defineSlots<${upperName}Slots>()
|
|
|
63
58
|
|
|
64
59
|
const appConfig = useAppConfig() as ${upperName}['AppConfig']
|
|
65
60
|
|
|
66
|
-
const ui = computed(() => tv({ extend: tv(theme), ...(appConfig
|
|
61
|
+
const ui = computed(() => tv({ extend: tv(theme), ...(appConfig.ui?.${camelName} || {}) })())
|
|
67
62
|
</script>
|
|
68
63
|
|
|
69
64
|
<template>
|
|
@@ -76,11 +71,10 @@ const ui = computed(() => tv({ extend: tv(theme), ...(appConfig.${pro ? 'uiPro'
|
|
|
76
71
|
<script lang="ts">
|
|
77
72
|
import type { ${upperName}RootProps, ${upperName}RootEmits } from 'reka-ui'
|
|
78
73
|
import type { AppConfig } from '@nuxt/schema'
|
|
79
|
-
|
|
80
|
-
import
|
|
81
|
-
${!pro ? `import type { ComponentConfig } from '../types/utils'` : ''}
|
|
74
|
+
import theme from '#build/ui/${prose ? 'prose/' : ''}${content ? 'content/' : ''}${kebabName}'
|
|
75
|
+
import type { ComponentConfig } from '../types/tv'
|
|
82
76
|
|
|
83
|
-
type ${upperName} = ComponentConfig<typeof theme, AppConfig, '${camelName}'
|
|
77
|
+
type ${upperName} = ComponentConfig<typeof theme, AppConfig, '${camelName}'>
|
|
84
78
|
|
|
85
79
|
export interface ${upperName}Props extends Pick<${upperName}RootProps> {
|
|
86
80
|
class?: any
|
|
@@ -107,7 +101,7 @@ const appConfig = useAppConfig() as ${upperName}['AppConfig']
|
|
|
107
101
|
|
|
108
102
|
const rootProps = useForwardPropsEmits(reactivePick(props), emits)
|
|
109
103
|
|
|
110
|
-
const ui = computed(() => tv({ extend: tv(theme), ...(appConfig
|
|
104
|
+
const ui = computed(() => tv({ extend: tv(theme), ...(appConfig.ui?.${camelName} || {}) })())
|
|
111
105
|
</script>
|
|
112
106
|
|
|
113
107
|
<template>
|
|
@@ -168,7 +162,7 @@ describe('${upperName}', () => {
|
|
|
168
162
|
}
|
|
169
163
|
}
|
|
170
164
|
|
|
171
|
-
const docs = ({ name,
|
|
165
|
+
const docs = ({ name, primitive }) => {
|
|
172
166
|
const kebabName = kebabCase(name)
|
|
173
167
|
const upperName = splitByCase(name).map(p => upperFirst(p)).join('')
|
|
174
168
|
|
|
@@ -176,10 +170,7 @@ const docs = ({ name, pro, primitive }) => {
|
|
|
176
170
|
filename: `docs/content/3.components/${kebabName}.md`,
|
|
177
171
|
contents: `---
|
|
178
172
|
title: ${upperName}
|
|
179
|
-
description: ''
|
|
180
|
-
? `
|
|
181
|
-
module: ui-pro`
|
|
182
|
-
: ''}
|
|
173
|
+
description: ''
|
|
183
174
|
links:${primitive
|
|
184
175
|
? ''
|
|
185
176
|
: `
|
|
@@ -188,7 +179,7 @@ links:${primitive
|
|
|
188
179
|
to: https://reka-ui.com/docs/components/${kebabName}`}
|
|
189
180
|
- label: GitHub
|
|
190
181
|
icon: i-simple-icons-github
|
|
191
|
-
to: https://github.com/nuxt
|
|
182
|
+
to: https://github.com/nuxt/ui/blob/v4/src/runtime/components/${upperName}.vue
|
|
192
183
|
navigation.badge: Soon
|
|
193
184
|
---
|
|
194
185
|
|
|
@@ -200,19 +191,19 @@ navigation.badge: Soon
|
|
|
200
191
|
|
|
201
192
|
### Props
|
|
202
193
|
|
|
203
|
-
:component-props
|
|
194
|
+
:component-props
|
|
204
195
|
|
|
205
196
|
### Slots
|
|
206
197
|
|
|
207
|
-
:component-slots
|
|
198
|
+
:component-slots
|
|
208
199
|
|
|
209
200
|
### Emits
|
|
210
201
|
|
|
211
|
-
:component-emits
|
|
202
|
+
:component-emits
|
|
212
203
|
|
|
213
204
|
## Theme
|
|
214
205
|
|
|
215
|
-
:component-theme
|
|
206
|
+
:component-theme
|
|
216
207
|
|
|
217
208
|
## Changelog
|
|
218
209
|
|
package/dist/module.d.mts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as _nuxt_schema from '@nuxt/schema';
|
|
2
|
+
import { HookResult } from '@nuxt/schema';
|
|
2
3
|
export * from '../dist/runtime/types/index.js';
|
|
3
4
|
|
|
4
5
|
type Color = 'primary' | 'secondary' | 'success' | 'info' | 'warning' | 'error' | (string & {});
|
|
@@ -7,36 +8,36 @@ interface ModuleOptions {
|
|
|
7
8
|
/**
|
|
8
9
|
* Prefix for components
|
|
9
10
|
* @defaultValue `U`
|
|
10
|
-
* @link https://ui.nuxt.com/getting-started/installation/nuxt#prefix
|
|
11
|
+
* @link https://ui.nuxt.com/docs/getting-started/installation/nuxt#prefix
|
|
11
12
|
*/
|
|
12
13
|
prefix?: string;
|
|
13
14
|
/**
|
|
14
15
|
* Enable or disable `@nuxt/fonts` module
|
|
15
16
|
* @defaultValue `true`
|
|
16
|
-
* @link https://ui.nuxt.com/getting-started/installation/nuxt#fonts
|
|
17
|
+
* @link https://ui.nuxt.com/docs/getting-started/installation/nuxt#fonts
|
|
17
18
|
*/
|
|
18
19
|
fonts?: boolean;
|
|
19
20
|
/**
|
|
20
21
|
* Enable or disable `@nuxtjs/color-mode` module
|
|
21
22
|
* @defaultValue `true`
|
|
22
|
-
* @link https://ui.nuxt.com/getting-started/installation/nuxt#colormode
|
|
23
|
+
* @link https://ui.nuxt.com/docs/getting-started/installation/nuxt#colormode
|
|
23
24
|
*/
|
|
24
25
|
colorMode?: boolean;
|
|
25
26
|
/**
|
|
26
27
|
* Customize how the theme is generated
|
|
27
|
-
* @link https://ui.nuxt.com/getting-started/theme
|
|
28
|
+
* @link https://ui.nuxt.com/docs/getting-started/theme
|
|
28
29
|
*/
|
|
29
30
|
theme?: {
|
|
30
31
|
/**
|
|
31
32
|
* Define the color aliases available for components
|
|
32
33
|
* @defaultValue `['primary', 'secondary', 'success', 'info', 'warning', 'error']`
|
|
33
|
-
* @link https://ui.nuxt.com/getting-started/installation/nuxt#themecolors
|
|
34
|
+
* @link https://ui.nuxt.com/docs/getting-started/installation/nuxt#themecolors
|
|
34
35
|
*/
|
|
35
36
|
colors?: Color[];
|
|
36
37
|
/**
|
|
37
38
|
* Enable or disable transitions on components
|
|
38
39
|
* @defaultValue `true`
|
|
39
|
-
* @link https://ui.nuxt.com/getting-started/installation/nuxt#themetransitions
|
|
40
|
+
* @link https://ui.nuxt.com/docs/getting-started/installation/nuxt#themetransitions
|
|
40
41
|
*/
|
|
41
42
|
transitions?: boolean;
|
|
42
43
|
defaultVariants?: {
|
|
@@ -52,6 +53,23 @@ interface ModuleOptions {
|
|
|
52
53
|
size?: Size;
|
|
53
54
|
};
|
|
54
55
|
};
|
|
56
|
+
/**
|
|
57
|
+
* Force the import of prose components even if `@nuxtjs/mdc` or `@nuxt/content` are not installed
|
|
58
|
+
* @defaultValue false
|
|
59
|
+
*/
|
|
60
|
+
mdc?: boolean;
|
|
61
|
+
/**
|
|
62
|
+
* Force the import of content & prose components even if `@nuxt/content` is not installed
|
|
63
|
+
* @defaultValue false
|
|
64
|
+
*/
|
|
65
|
+
content?: boolean;
|
|
66
|
+
}
|
|
67
|
+
declare module '#app' {
|
|
68
|
+
interface RuntimeNuxtHooks {
|
|
69
|
+
'dashboard:search:toggle': () => HookResult;
|
|
70
|
+
'dashboard:sidebar:toggle': () => HookResult;
|
|
71
|
+
'dashboard:sidebar:collapse': (value: boolean) => HookResult;
|
|
72
|
+
}
|
|
55
73
|
}
|
|
56
74
|
declare const _default: _nuxt_schema.NuxtModule<ModuleOptions, ModuleOptions, false>;
|
|
57
75
|
|
package/dist/module.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nuxt/ui",
|
|
3
|
-
"version": "
|
|
4
|
-
"docs": "https://ui.nuxt.com/getting-started/installation/nuxt",
|
|
3
|
+
"version": "4.0.0-alpha.1",
|
|
4
|
+
"docs": "https://ui.nuxt.com/docs/getting-started/installation/nuxt",
|
|
5
5
|
"configKey": "ui",
|
|
6
6
|
"compatibility": {
|
|
7
|
-
"nuxt": ">=
|
|
7
|
+
"nuxt": ">=4.0.0"
|
|
8
8
|
},
|
|
9
9
|
"builder": {
|
|
10
10
|
"@nuxt/module-builder": "1.0.1",
|
package/dist/module.mjs
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import { defu } from 'defu';
|
|
2
|
-
import { defineNuxtModule, createResolver, addVitePlugin, addPlugin, addComponentsDir, addImportsDir,
|
|
3
|
-
import { d as defaultOptions, r as resolveColors, a as getDefaultUiConfig, b as addTemplates } from './shared/ui.
|
|
2
|
+
import { defineNuxtModule, createResolver, addVitePlugin, addPlugin, hasNuxtModule, addComponentsDir, addImportsDir, installModule } from '@nuxt/kit';
|
|
3
|
+
import { d as defaultOptions, r as resolveColors, a as getDefaultUiConfig, b as addTemplates } from './shared/ui.BEZXPd3d.mjs';
|
|
4
4
|
import '../dist/runtime/utils/index.js';
|
|
5
5
|
import 'node:url';
|
|
6
6
|
import 'scule';
|
|
7
|
-
import 'tailwindcss/colors';
|
|
8
7
|
import 'knitwork';
|
|
8
|
+
import 'tailwindcss/colors';
|
|
9
9
|
|
|
10
10
|
const name = "@nuxt/ui";
|
|
11
|
-
const version = "
|
|
11
|
+
const version = "4.0.0-alpha.1";
|
|
12
12
|
|
|
13
13
|
const module = defineNuxtModule({
|
|
14
14
|
meta: {
|
|
15
15
|
name,
|
|
16
16
|
version,
|
|
17
|
-
docs: "https://ui.nuxt.com/getting-started/installation/nuxt",
|
|
17
|
+
docs: "https://ui.nuxt.com/docs/getting-started/installation/nuxt",
|
|
18
18
|
configKey: "ui",
|
|
19
19
|
compatibility: {
|
|
20
|
-
nuxt: ">=
|
|
20
|
+
nuxt: ">=4.0.0"
|
|
21
21
|
}
|
|
22
22
|
},
|
|
23
23
|
defaults: defaultOptions,
|
|
@@ -60,10 +60,71 @@ const module = defineNuxtModule({
|
|
|
60
60
|
});
|
|
61
61
|
}
|
|
62
62
|
addPlugin({ src: resolve("./runtime/plugins/colors") });
|
|
63
|
+
if (hasNuxtModule("@nuxtjs/mdc") || options.mdc || (hasNuxtModule("@nuxt/content") || options.content)) {
|
|
64
|
+
nuxt.options.mdc = defu(nuxt.options.mdc, {
|
|
65
|
+
highlight: {
|
|
66
|
+
theme: {
|
|
67
|
+
light: "material-theme-lighter",
|
|
68
|
+
default: "material-theme",
|
|
69
|
+
dark: "material-theme-palenight"
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
components: {
|
|
73
|
+
map: {
|
|
74
|
+
"accordion": "ProseAccordion",
|
|
75
|
+
"accordion-item": "ProseAccordionItem",
|
|
76
|
+
"badge": "ProseBadge",
|
|
77
|
+
"callout": "ProseCallout",
|
|
78
|
+
"card": "ProseCard",
|
|
79
|
+
"card-group": "ProseCardGroup",
|
|
80
|
+
"caution": "ProseCaution",
|
|
81
|
+
"code-collapse": "ProseCodeCollapse",
|
|
82
|
+
"code-group": "ProseCodeGroup",
|
|
83
|
+
"code-icon": "ProseCodeIcon",
|
|
84
|
+
"code-preview": "ProseCodePreview",
|
|
85
|
+
"code-tree": "ProseCodeTree",
|
|
86
|
+
"collapsible": "ProseCollapsible",
|
|
87
|
+
"field": "ProseField",
|
|
88
|
+
"field-group": "ProseFieldGroup",
|
|
89
|
+
"icon": "ProseIcon",
|
|
90
|
+
"kbd": "ProseKbd",
|
|
91
|
+
"note": "ProseNote",
|
|
92
|
+
"steps": "ProseSteps",
|
|
93
|
+
"tabs": "ProseTabs",
|
|
94
|
+
"tabs-item": "ProseTabsItem",
|
|
95
|
+
"tip": "ProseTip",
|
|
96
|
+
"warning": "ProseWarning"
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
});
|
|
100
|
+
addComponentsDir({
|
|
101
|
+
path: resolve("./runtime/components/prose"),
|
|
102
|
+
pathPrefix: false,
|
|
103
|
+
prefix: "Prose",
|
|
104
|
+
global: true
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
if (hasNuxtModule("@nuxt/content") || options.content) {
|
|
108
|
+
addComponentsDir({
|
|
109
|
+
path: resolve("./runtime/components/content"),
|
|
110
|
+
pathPrefix: false,
|
|
111
|
+
prefix: options.prefix
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
if (hasNuxtModule("@nuxtjs/color-mode")) {
|
|
115
|
+
addComponentsDir({
|
|
116
|
+
path: resolve("./runtime/components/color-mode"),
|
|
117
|
+
pathPrefix: false,
|
|
118
|
+
prefix: options.prefix
|
|
119
|
+
});
|
|
120
|
+
} else {
|
|
121
|
+
addImportsDir(resolve("./runtime/composables/color-mode"));
|
|
122
|
+
}
|
|
63
123
|
addComponentsDir({
|
|
64
124
|
path: resolve("./runtime/components"),
|
|
125
|
+
pathPrefix: false,
|
|
65
126
|
prefix: options.prefix,
|
|
66
|
-
|
|
127
|
+
ignore: ["color-mode/**", "content/**", "prose/**"]
|
|
67
128
|
});
|
|
68
129
|
addImportsDir(resolve("./runtime/composables"));
|
|
69
130
|
addTemplates(options, nuxt, resolve);
|
|
@@ -13,7 +13,7 @@ import UIcon from "./Icon.vue";
|
|
|
13
13
|
const props = defineProps({
|
|
14
14
|
as: { type: null, required: false },
|
|
15
15
|
items: { type: Array, required: false },
|
|
16
|
-
trailingIcon: { type: String, required: false },
|
|
16
|
+
trailingIcon: { type: [String, Object], required: false },
|
|
17
17
|
labelKey: { type: String, required: false, default: "label" },
|
|
18
18
|
class: { type: null, required: false },
|
|
19
19
|
ui: { type: null, required: false },
|
|
@@ -1,18 +1,20 @@
|
|
|
1
1
|
import type { AccordionRootProps, AccordionRootEmits } from 'reka-ui';
|
|
2
2
|
import type { AppConfig } from '@nuxt/schema';
|
|
3
3
|
import theme from '#build/ui/accordion';
|
|
4
|
-
import type {
|
|
4
|
+
import type { IconProps } from '../types';
|
|
5
|
+
import type { DynamicSlots } from '../types/utils';
|
|
6
|
+
import type { ComponentConfig } from '../types/tv';
|
|
5
7
|
type Accordion = ComponentConfig<typeof theme, AppConfig, 'accordion'>;
|
|
6
8
|
export interface AccordionItem {
|
|
7
9
|
label?: string;
|
|
8
10
|
/**
|
|
9
11
|
* @IconifyIcon
|
|
10
12
|
*/
|
|
11
|
-
icon?:
|
|
13
|
+
icon?: IconProps['name'];
|
|
12
14
|
/**
|
|
13
15
|
* @IconifyIcon
|
|
14
16
|
*/
|
|
15
|
-
trailingIcon?:
|
|
17
|
+
trailingIcon?: IconProps['name'];
|
|
16
18
|
slot?: string;
|
|
17
19
|
content?: string;
|
|
18
20
|
/** A unique value for the accordion item. Defaults to the index. */
|
|
@@ -34,7 +36,7 @@ export interface AccordionProps<T extends AccordionItem = AccordionItem> extends
|
|
|
34
36
|
* @defaultValue appConfig.ui.icons.chevronDown
|
|
35
37
|
* @IconifyIcon
|
|
36
38
|
*/
|
|
37
|
-
trailingIcon?:
|
|
39
|
+
trailingIcon?: IconProps['name'];
|
|
38
40
|
/**
|
|
39
41
|
* The key used to get the label from the item.
|
|
40
42
|
* @defaultValue 'label'
|
|
@@ -15,14 +15,14 @@ const props = defineProps({
|
|
|
15
15
|
as: { type: null, required: false },
|
|
16
16
|
title: { type: String, required: false },
|
|
17
17
|
description: { type: String, required: false },
|
|
18
|
-
icon: { type: String, required: false },
|
|
18
|
+
icon: { type: [String, Object], required: false },
|
|
19
19
|
avatar: { type: Object, required: false },
|
|
20
20
|
color: { type: null, required: false },
|
|
21
21
|
variant: { type: null, required: false },
|
|
22
22
|
orientation: { type: null, required: false, default: "vertical" },
|
|
23
23
|
actions: { type: Array, required: false },
|
|
24
24
|
close: { type: [Boolean, Object], required: false },
|
|
25
|
-
closeIcon: { type: String, required: false },
|
|
25
|
+
closeIcon: { type: [String, Object], required: false },
|
|
26
26
|
class: { type: null, required: false },
|
|
27
27
|
ui: { type: null, required: false }
|
|
28
28
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { AppConfig } from '@nuxt/schema';
|
|
2
2
|
import theme from '#build/ui/alert';
|
|
3
|
-
import type { AvatarProps, ButtonProps } from '../types';
|
|
4
|
-
import type { ComponentConfig } from '../types/
|
|
3
|
+
import type { AvatarProps, ButtonProps, IconProps } from '../types';
|
|
4
|
+
import type { ComponentConfig } from '../types/tv';
|
|
5
5
|
type Alert = ComponentConfig<typeof theme, AppConfig, 'alert'>;
|
|
6
6
|
export interface AlertProps {
|
|
7
7
|
/**
|
|
@@ -14,7 +14,7 @@ export interface AlertProps {
|
|
|
14
14
|
/**
|
|
15
15
|
* @IconifyIcon
|
|
16
16
|
*/
|
|
17
|
-
icon?:
|
|
17
|
+
icon?: IconProps['name'];
|
|
18
18
|
avatar?: AvatarProps;
|
|
19
19
|
/**
|
|
20
20
|
* @defaultValue 'primary'
|
|
@@ -48,7 +48,7 @@ export interface AlertProps {
|
|
|
48
48
|
* @defaultValue appConfig.ui.icons.close
|
|
49
49
|
* @IconifyIcon
|
|
50
50
|
*/
|
|
51
|
-
closeIcon?:
|
|
51
|
+
closeIcon?: IconProps['name'];
|
|
52
52
|
class?: any;
|
|
53
53
|
ui?: Alert['slots'];
|
|
54
54
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { ConfigProviderProps, TooltipProviderProps } from 'reka-ui';
|
|
2
|
-
import type { ToasterProps
|
|
2
|
+
import type { ToasterProps } from '../types';
|
|
3
|
+
import type { Locale, Messages } from '../types/locale';
|
|
3
4
|
export interface AppProps<T extends Messages = Messages> extends Omit<ConfigProviderProps, 'useId' | 'dir' | 'locale'> {
|
|
4
5
|
tooltip?: TooltipProviderProps;
|
|
5
6
|
toaster?: ToasterProps | null;
|