@eslamdevui/ui 4.1.1-rc.2 → 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 +8 -0
- package/README.md +2 -1
- package/cli/templates.mjs +2 -2
- package/dist/module.d.mts +10 -0
- package/dist/module.json +1 -1
- package/dist/module.mjs +9 -9
- package/dist/runtime/components/Accordion.d.vue.ts +10 -6
- package/dist/runtime/components/Accordion.vue +10 -9
- package/dist/runtime/components/Accordion.vue.d.ts +10 -6
- package/dist/runtime/components/Alert.d.vue.ts +4 -4
- package/dist/runtime/components/Alert.vue +11 -10
- package/dist/runtime/components/Alert.vue.d.ts +4 -4
- package/dist/runtime/components/App.d.vue.ts +11 -7
- package/dist/runtime/components/App.vue +2 -1
- package/dist/runtime/components/App.vue.d.ts +11 -7
- package/dist/runtime/components/AuthForm.d.vue.ts +22 -17
- package/dist/runtime/components/AuthForm.vue +29 -21
- package/dist/runtime/components/AuthForm.vue.d.ts +22 -17
- package/dist/runtime/components/Avatar.d.vue.ts +4 -3
- package/dist/runtime/components/Avatar.vue +5 -3
- package/dist/runtime/components/Avatar.vue.d.ts +4 -3
- package/dist/runtime/components/AvatarGroup.d.vue.ts +1 -1
- package/dist/runtime/components/AvatarGroup.vue +3 -3
- package/dist/runtime/components/AvatarGroup.vue.d.ts +1 -1
- package/dist/runtime/components/Badge.d.vue.ts +2 -2
- package/dist/runtime/components/Badge.vue +8 -8
- package/dist/runtime/components/Badge.vue.d.ts +2 -2
- package/dist/runtime/components/Banner.d.vue.ts +4 -4
- package/dist/runtime/components/Banner.vue +11 -10
- package/dist/runtime/components/Banner.vue.d.ts +4 -4
- package/dist/runtime/components/BlogPost.d.vue.ts +2 -2
- package/dist/runtime/components/BlogPost.vue +19 -11
- package/dist/runtime/components/BlogPost.vue.d.ts +2 -2
- package/dist/runtime/components/BlogPosts.d.vue.ts +10 -6
- package/dist/runtime/components/BlogPosts.vue.d.ts +10 -6
- package/dist/runtime/components/Breadcrumb.d.vue.ts +10 -6
- package/dist/runtime/components/Breadcrumb.vue +10 -10
- package/dist/runtime/components/Breadcrumb.vue.d.ts +10 -6
- package/dist/runtime/components/Button.d.vue.ts +1 -1
- package/dist/runtime/components/Button.vue +10 -8
- package/dist/runtime/components/Button.vue.d.ts +1 -1
- package/dist/runtime/components/Calendar.d.vue.ts +15 -11
- package/dist/runtime/components/Calendar.vue +16 -12
- package/dist/runtime/components/Calendar.vue.d.ts +15 -11
- package/dist/runtime/components/Card.d.vue.ts +1 -1
- package/dist/runtime/components/Card.vue +4 -4
- package/dist/runtime/components/Card.vue.d.ts +1 -1
- package/dist/runtime/components/Carousel.d.vue.ts +13 -9
- package/dist/runtime/components/Carousel.vue +34 -7
- package/dist/runtime/components/Carousel.vue.d.ts +13 -9
- package/dist/runtime/components/ChangelogVersion.d.vue.ts +2 -2
- package/dist/runtime/components/ChangelogVersion.vue +22 -15
- package/dist/runtime/components/ChangelogVersion.vue.d.ts +2 -2
- package/dist/runtime/components/ChangelogVersions.d.vue.ts +10 -6
- package/dist/runtime/components/ChangelogVersions.vue +4 -4
- package/dist/runtime/components/ChangelogVersions.vue.d.ts +10 -6
- package/dist/runtime/components/ChatMessage.d.vue.ts +2 -2
- package/dist/runtime/components/ChatMessage.vue +8 -8
- package/dist/runtime/components/ChatMessage.vue.d.ts +2 -2
- package/dist/runtime/components/ChatMessages.d.vue.ts +5 -5
- package/dist/runtime/components/ChatMessages.vue +5 -3
- package/dist/runtime/components/ChatMessages.vue.d.ts +5 -5
- package/dist/runtime/components/ChatPalette.d.vue.ts +1 -1
- package/dist/runtime/components/ChatPalette.vue +3 -3
- package/dist/runtime/components/ChatPalette.vue.d.ts +1 -1
- package/dist/runtime/components/ChatPrompt.d.vue.ts +5 -8
- package/dist/runtime/components/ChatPrompt.vue +23 -14
- package/dist/runtime/components/ChatPrompt.vue.d.ts +5 -8
- package/dist/runtime/components/ChatPromptSubmit.d.vue.ts +10 -10
- package/dist/runtime/components/ChatPromptSubmit.vue +42 -14
- package/dist/runtime/components/ChatPromptSubmit.vue.d.ts +10 -10
- package/dist/runtime/components/Checkbox.d.vue.ts +4 -3
- package/dist/runtime/components/Checkbox.vue +11 -10
- package/dist/runtime/components/Checkbox.vue.d.ts +4 -3
- package/dist/runtime/components/CheckboxGroup.d.vue.ts +10 -6
- package/dist/runtime/components/CheckboxGroup.vue +8 -5
- package/dist/runtime/components/CheckboxGroup.vue.d.ts +10 -6
- package/dist/runtime/components/Chip.d.vue.ts +2 -2
- package/dist/runtime/components/Chip.vue +2 -2
- package/dist/runtime/components/Chip.vue.d.ts +2 -2
- package/dist/runtime/components/Collapsible.d.vue.ts +2 -2
- package/dist/runtime/components/Collapsible.vue +2 -2
- package/dist/runtime/components/Collapsible.vue.d.ts +2 -2
- package/dist/runtime/components/ColorPicker.d.vue.ts +2 -2
- package/dist/runtime/components/ColorPicker.vue +7 -3
- package/dist/runtime/components/ColorPicker.vue.d.ts +2 -2
- package/dist/runtime/components/CommandPalette.d.vue.ts +13 -9
- package/dist/runtime/components/CommandPalette.vue +69 -44
- package/dist/runtime/components/CommandPalette.vue.d.ts +13 -9
- package/dist/runtime/components/Container.d.vue.ts +1 -1
- package/dist/runtime/components/Container.vue.d.ts +1 -1
- package/dist/runtime/components/ContextMenu.d.vue.ts +16 -8
- package/dist/runtime/components/ContextMenu.vue +3 -3
- package/dist/runtime/components/ContextMenu.vue.d.ts +16 -8
- package/dist/runtime/components/ContextMenuContent.d.vue.ts +10 -6
- package/dist/runtime/components/ContextMenuContent.vue +24 -22
- package/dist/runtime/components/ContextMenuContent.vue.d.ts +10 -6
- package/dist/runtime/components/DashboardGroup.d.vue.ts +2 -2
- package/dist/runtime/components/DashboardGroup.vue.d.ts +2 -2
- package/dist/runtime/components/DashboardNavbar.d.vue.ts +5 -5
- package/dist/runtime/components/DashboardNavbar.vue +8 -7
- package/dist/runtime/components/DashboardNavbar.vue.d.ts +5 -5
- package/dist/runtime/components/DashboardPanel.d.vue.ts +2 -2
- package/dist/runtime/components/DashboardPanel.vue +3 -1
- package/dist/runtime/components/DashboardPanel.vue.d.ts +2 -2
- package/dist/runtime/components/DashboardResizeHandle.d.vue.ts +1 -1
- package/dist/runtime/components/DashboardResizeHandle.vue.d.ts +1 -1
- package/dist/runtime/components/DashboardSearch.d.vue.ts +6 -6
- package/dist/runtime/components/DashboardSearch.vue +5 -4
- package/dist/runtime/components/DashboardSearch.vue.d.ts +6 -6
- package/dist/runtime/components/DashboardSearchButton.d.vue.ts +4 -5
- package/dist/runtime/components/DashboardSearchButton.vue +29 -10
- package/dist/runtime/components/DashboardSearchButton.vue.d.ts +4 -5
- package/dist/runtime/components/DashboardSidebar.d.vue.ts +12 -8
- package/dist/runtime/components/DashboardSidebar.vue +9 -6
- package/dist/runtime/components/DashboardSidebar.vue.d.ts +12 -8
- package/dist/runtime/components/DashboardSidebarCollapse.d.vue.ts +9 -6
- package/dist/runtime/components/DashboardSidebarCollapse.vue +32 -7
- package/dist/runtime/components/DashboardSidebarCollapse.vue.d.ts +9 -6
- package/dist/runtime/components/DashboardSidebarToggle.d.vue.ts +9 -6
- package/dist/runtime/components/DashboardSidebarToggle.vue +33 -7
- package/dist/runtime/components/DashboardSidebarToggle.vue.d.ts +9 -6
- package/dist/runtime/components/DashboardToolbar.d.vue.ts +1 -1
- package/dist/runtime/components/DashboardToolbar.vue +3 -3
- package/dist/runtime/components/DashboardToolbar.vue.d.ts +1 -1
- package/dist/runtime/components/Drawer.d.vue.ts +2 -2
- package/dist/runtime/components/Drawer.vue +9 -9
- package/dist/runtime/components/Drawer.vue.d.ts +2 -2
- package/dist/runtime/components/DropdownMenu.d.vue.ts +16 -8
- package/dist/runtime/components/DropdownMenu.vue +4 -4
- package/dist/runtime/components/DropdownMenu.vue.d.ts +16 -8
- package/dist/runtime/components/DropdownMenuContent.d.vue.ts +10 -6
- package/dist/runtime/components/DropdownMenuContent.vue +24 -22
- package/dist/runtime/components/DropdownMenuContent.vue.d.ts +10 -6
- package/dist/runtime/components/Editor.d.vue.ts +89 -0
- package/dist/runtime/components/Editor.vue +185 -0
- package/dist/runtime/components/Editor.vue.d.ts +89 -0
- package/dist/runtime/components/EditorDragHandle.d.vue.ts +68 -0
- package/dist/runtime/components/EditorDragHandle.vue +127 -0
- package/dist/runtime/components/EditorDragHandle.vue.d.ts +68 -0
- package/dist/runtime/components/EditorEmojiMenu.d.vue.ts +37 -0
- package/dist/runtime/components/EditorEmojiMenu.vue +70 -0
- package/dist/runtime/components/EditorEmojiMenu.vue.d.ts +37 -0
- package/dist/runtime/components/EditorMentionMenu.d.vue.ts +41 -0
- package/dist/runtime/components/EditorMentionMenu.vue +72 -0
- package/dist/runtime/components/EditorMentionMenu.vue.d.ts +41 -0
- package/dist/runtime/components/EditorSuggestionMenu.d.vue.ts +54 -0
- package/dist/runtime/components/EditorSuggestionMenu.vue +80 -0
- package/dist/runtime/components/EditorSuggestionMenu.vue.d.ts +54 -0
- package/dist/runtime/components/EditorToolbar.d.vue.ts +92 -0
- package/dist/runtime/components/EditorToolbar.vue +242 -0
- package/dist/runtime/components/EditorToolbar.vue.d.ts +92 -0
- package/dist/runtime/components/Empty.d.vue.ts +1 -1
- package/dist/runtime/components/Empty.vue +9 -9
- package/dist/runtime/components/Empty.vue.d.ts +1 -1
- package/dist/runtime/components/Error.d.vue.ts +4 -4
- package/dist/runtime/components/Error.vue +5 -5
- package/dist/runtime/components/Error.vue.d.ts +4 -4
- package/dist/runtime/components/FieldGroup.d.vue.ts +2 -2
- package/dist/runtime/components/FieldGroup.vue.d.ts +2 -2
- package/dist/runtime/components/FileUpload.d.vue.ts +20 -10
- package/dist/runtime/components/FileUpload.vue +37 -27
- package/dist/runtime/components/FileUpload.vue.d.ts +20 -10
- package/dist/runtime/components/Footer.d.vue.ts +2 -2
- package/dist/runtime/components/Footer.vue +7 -7
- package/dist/runtime/components/Footer.vue.d.ts +2 -2
- package/dist/runtime/components/FooterColumns.d.vue.ts +10 -6
- package/dist/runtime/components/FooterColumns.vue +11 -11
- package/dist/runtime/components/FooterColumns.vue.d.ts +10 -6
- package/dist/runtime/components/Form.d.vue.ts +13 -8
- package/dist/runtime/components/Form.vue +3 -4
- package/dist/runtime/components/Form.vue.d.ts +13 -8
- package/dist/runtime/components/FormField.d.vue.ts +8 -1
- package/dist/runtime/components/FormField.vue +12 -11
- package/dist/runtime/components/FormField.vue.d.ts +8 -1
- package/dist/runtime/components/Header.d.vue.ts +12 -8
- package/dist/runtime/components/Header.vue +9 -8
- package/dist/runtime/components/Header.vue.d.ts +12 -8
- package/dist/runtime/components/Icon.d.vue.ts +2 -2
- package/dist/runtime/components/Icon.vue +1 -1
- package/dist/runtime/components/Icon.vue.d.ts +2 -2
- package/dist/runtime/components/Input.d.vue.ts +14 -10
- package/dist/runtime/components/Input.vue +13 -12
- package/dist/runtime/components/Input.vue.d.ts +14 -10
- package/dist/runtime/components/InputDate.d.vue.ts +87 -0
- package/dist/runtime/components/InputDate.vue +161 -0
- package/dist/runtime/components/InputDate.vue.d.ts +87 -0
- package/dist/runtime/components/InputMenu.d.vue.ts +17 -132
- package/dist/runtime/components/InputMenu.vue +70 -49
- package/dist/runtime/components/InputMenu.vue.d.ts +17 -132
- package/dist/runtime/components/InputNumber.d.vue.ts +26 -129
- package/dist/runtime/components/InputNumber.vue +10 -11
- package/dist/runtime/components/InputNumber.vue.d.ts +26 -129
- package/dist/runtime/components/InputTags.d.vue.ts +13 -112
- package/dist/runtime/components/InputTags.vue +24 -20
- package/dist/runtime/components/InputTags.vue.d.ts +13 -112
- package/dist/runtime/components/InputTime.d.vue.ts +72 -0
- package/dist/runtime/components/InputTime.vue +137 -0
- package/dist/runtime/components/InputTime.vue.d.ts +72 -0
- package/dist/runtime/components/Kbd.d.vue.ts +2 -2
- package/dist/runtime/components/Kbd.vue.d.ts +2 -2
- package/dist/runtime/components/Link.d.vue.ts +15 -5
- package/dist/runtime/components/Link.vue +1 -0
- package/dist/runtime/components/Link.vue.d.ts +15 -5
- package/dist/runtime/components/LinkBase.d.vue.ts +2 -2
- package/dist/runtime/components/LinkBase.vue.d.ts +2 -2
- package/dist/runtime/components/Main.d.vue.ts +1 -1
- package/dist/runtime/components/Main.vue.d.ts +1 -1
- package/dist/runtime/components/Marquee.d.vue.ts +2 -2
- package/dist/runtime/components/Marquee.vue +2 -6
- package/dist/runtime/components/Marquee.vue.d.ts +2 -2
- package/dist/runtime/components/Modal.d.vue.ts +10 -5
- package/dist/runtime/components/Modal.vue +53 -17
- package/dist/runtime/components/Modal.vue.d.ts +10 -5
- package/dist/runtime/components/NavigationMenu.d.vue.ts +51 -12
- package/dist/runtime/components/NavigationMenu.vue +127 -113
- package/dist/runtime/components/NavigationMenu.vue.d.ts +51 -12
- package/dist/runtime/components/Page.d.vue.ts +1 -1
- package/dist/runtime/components/Page.vue +4 -4
- package/dist/runtime/components/Page.vue.d.ts +1 -1
- package/dist/runtime/components/PageAnchors.d.vue.ts +10 -6
- package/dist/runtime/components/PageAnchors.vue +8 -8
- package/dist/runtime/components/PageAnchors.vue.d.ts +10 -6
- package/dist/runtime/components/PageAside.d.vue.ts +2 -2
- package/dist/runtime/components/PageAside.vue +6 -6
- package/dist/runtime/components/PageAside.vue.d.ts +2 -2
- package/dist/runtime/components/PageBody.d.vue.ts +1 -1
- package/dist/runtime/components/PageBody.vue.d.ts +1 -1
- package/dist/runtime/components/PageCTA.d.vue.ts +2 -2
- package/dist/runtime/components/PageCTA.vue +9 -9
- package/dist/runtime/components/PageCTA.vue.d.ts +2 -2
- package/dist/runtime/components/PageCard.d.vue.ts +2 -2
- package/dist/runtime/components/PageCard.vue +12 -11
- package/dist/runtime/components/PageCard.vue.d.ts +2 -2
- package/dist/runtime/components/PageColumns.d.vue.ts +1 -1
- package/dist/runtime/components/PageColumns.vue.d.ts +1 -1
- package/dist/runtime/components/PageFeature.d.vue.ts +2 -2
- package/dist/runtime/components/PageFeature.vue +9 -9
- package/dist/runtime/components/PageFeature.vue.d.ts +2 -2
- package/dist/runtime/components/PageGrid.d.vue.ts +1 -1
- package/dist/runtime/components/PageGrid.vue.d.ts +1 -1
- package/dist/runtime/components/PageHeader.d.vue.ts +1 -1
- package/dist/runtime/components/PageHeader.vue +7 -7
- package/dist/runtime/components/PageHeader.vue.d.ts +1 -1
- package/dist/runtime/components/PageHero.d.vue.ts +2 -2
- package/dist/runtime/components/PageHero.vue +10 -10
- package/dist/runtime/components/PageHero.vue.d.ts +2 -2
- package/dist/runtime/components/PageLinks.d.vue.ts +10 -6
- package/dist/runtime/components/PageLinks.vue +8 -8
- package/dist/runtime/components/PageLinks.vue.d.ts +10 -6
- package/dist/runtime/components/PageList.d.vue.ts +2 -2
- package/dist/runtime/components/PageList.vue.d.ts +2 -2
- package/dist/runtime/components/PageLogos.d.vue.ts +2 -2
- package/dist/runtime/components/PageLogos.vue +6 -3
- package/dist/runtime/components/PageLogos.vue.d.ts +2 -2
- package/dist/runtime/components/PageSection.d.vue.ts +2 -2
- package/dist/runtime/components/PageSection.vue +14 -14
- package/dist/runtime/components/PageSection.vue.d.ts +2 -2
- package/dist/runtime/components/Pagination.d.vue.ts +2 -3
- package/dist/runtime/components/Pagination.vue +13 -13
- package/dist/runtime/components/Pagination.vue.d.ts +2 -3
- package/dist/runtime/components/PinInput.d.vue.ts +10 -6
- package/dist/runtime/components/PinInput.vue +3 -1
- package/dist/runtime/components/PinInput.vue.d.ts +10 -6
- package/dist/runtime/components/Popover.d.vue.ts +10 -6
- package/dist/runtime/components/Popover.vue +2 -2
- package/dist/runtime/components/Popover.vue.d.ts +10 -6
- package/dist/runtime/components/PricingPlan.d.vue.ts +2 -2
- package/dist/runtime/components/PricingPlan.vue +28 -21
- package/dist/runtime/components/PricingPlan.vue.d.ts +2 -2
- package/dist/runtime/components/PricingPlans.d.vue.ts +10 -6
- package/dist/runtime/components/PricingPlans.vue.d.ts +10 -6
- package/dist/runtime/components/PricingTable.d.vue.ts +10 -6
- package/dist/runtime/components/PricingTable.vue +35 -31
- package/dist/runtime/components/PricingTable.vue.d.ts +10 -6
- package/dist/runtime/components/Progress.d.vue.ts +3 -3
- package/dist/runtime/components/Progress.vue +6 -6
- package/dist/runtime/components/Progress.vue.d.ts +3 -3
- package/dist/runtime/components/RadioGroup.d.vue.ts +14 -10
- package/dist/runtime/components/RadioGroup.vue +13 -11
- package/dist/runtime/components/RadioGroup.vue.d.ts +14 -10
- package/dist/runtime/components/ScrollArea.d.vue.ts +83 -0
- package/dist/runtime/components/ScrollArea.vue +187 -0
- package/dist/runtime/components/ScrollArea.vue.d.ts +83 -0
- package/dist/runtime/components/Select.d.vue.ts +15 -110
- package/dist/runtime/components/Select.vue +45 -29
- package/dist/runtime/components/Select.vue.d.ts +15 -110
- package/dist/runtime/components/SelectMenu.d.vue.ts +17 -110
- package/dist/runtime/components/SelectMenu.vue +73 -46
- package/dist/runtime/components/SelectMenu.vue.d.ts +17 -110
- package/dist/runtime/components/Separator.d.vue.ts +2 -2
- package/dist/runtime/components/Separator.vue +8 -8
- package/dist/runtime/components/Separator.vue.d.ts +2 -2
- package/dist/runtime/components/Skeleton.d.vue.ts +2 -2
- package/dist/runtime/components/Skeleton.vue.d.ts +2 -2
- package/dist/runtime/components/Slideover.d.vue.ts +10 -5
- package/dist/runtime/components/Slideover.vue +13 -9
- package/dist/runtime/components/Slideover.vue.d.ts +10 -5
- package/dist/runtime/components/Slider.d.vue.ts +10 -6
- package/dist/runtime/components/Slider.vue +5 -4
- package/dist/runtime/components/Slider.vue.d.ts +10 -6
- package/dist/runtime/components/Stepper.d.vue.ts +10 -6
- package/dist/runtime/components/Stepper.vue +12 -10
- package/dist/runtime/components/Stepper.vue.d.ts +10 -6
- package/dist/runtime/components/Switch.d.vue.ts +4 -3
- package/dist/runtime/components/Switch.vue +13 -12
- package/dist/runtime/components/Switch.vue.d.ts +4 -3
- package/dist/runtime/components/Table.d.vue.ts +19 -13
- package/dist/runtime/components/Table.vue +91 -50
- package/dist/runtime/components/Table.vue.d.ts +19 -13
- package/dist/runtime/components/Tabs.d.vue.ts +10 -6
- package/dist/runtime/components/Tabs.vue +10 -7
- package/dist/runtime/components/Tabs.vue.d.ts +10 -6
- package/dist/runtime/components/Textarea.d.vue.ts +14 -9
- package/dist/runtime/components/Textarea.vue +13 -12
- package/dist/runtime/components/Textarea.vue.d.ts +14 -9
- package/dist/runtime/components/Timeline.d.vue.ts +10 -6
- package/dist/runtime/components/Timeline.vue +16 -7
- package/dist/runtime/components/Timeline.vue.d.ts +10 -6
- package/dist/runtime/components/Toast.d.vue.ts +5 -5
- package/dist/runtime/components/Toast.vue +17 -14
- package/dist/runtime/components/Toast.vue.d.ts +5 -5
- package/dist/runtime/components/Toaster.d.vue.ts +3 -3
- package/dist/runtime/components/Toaster.vue +2 -0
- package/dist/runtime/components/Toaster.vue.d.ts +3 -3
- package/dist/runtime/components/Tooltip.d.vue.ts +2 -2
- package/dist/runtime/components/Tooltip.vue +4 -4
- package/dist/runtime/components/Tooltip.vue.d.ts +2 -2
- package/dist/runtime/components/Tree.d.vue.ts +11 -7
- package/dist/runtime/components/Tree.vue +21 -14
- package/dist/runtime/components/Tree.vue.d.ts +11 -7
- package/dist/runtime/components/User.d.vue.ts +2 -2
- package/dist/runtime/components/User.vue +13 -7
- package/dist/runtime/components/User.vue.d.ts +2 -2
- package/dist/runtime/components/color-mode/ColorModeAvatar.d.vue.ts +3 -3
- package/dist/runtime/components/color-mode/ColorModeAvatar.vue +16 -4
- package/dist/runtime/components/color-mode/ColorModeAvatar.vue.d.ts +3 -3
- package/dist/runtime/components/color-mode/ColorModeButton.d.vue.ts +6 -13
- package/dist/runtime/components/color-mode/ColorModeButton.vue +41 -18
- package/dist/runtime/components/color-mode/ColorModeButton.vue.d.ts +6 -13
- package/dist/runtime/components/color-mode/ColorModeImage.d.vue.ts +4 -3
- package/dist/runtime/components/color-mode/ColorModeImage.vue +4 -0
- package/dist/runtime/components/color-mode/ColorModeImage.vue.d.ts +4 -3
- package/dist/runtime/components/color-mode/ColorModeSelect.d.vue.ts +5 -3
- package/dist/runtime/components/color-mode/ColorModeSelect.vue +46 -5
- package/dist/runtime/components/color-mode/ColorModeSelect.vue.d.ts +5 -3
- package/dist/runtime/components/color-mode/ColorModeSwitch.d.vue.ts +3 -3
- package/dist/runtime/components/color-mode/ColorModeSwitch.vue +29 -5
- package/dist/runtime/components/color-mode/ColorModeSwitch.vue.d.ts +3 -3
- package/dist/runtime/components/content/ContentNavigation.d.vue.ts +10 -6
- package/dist/runtime/components/content/ContentNavigation.vue +14 -13
- package/dist/runtime/components/content/ContentNavigation.vue.d.ts +10 -6
- package/dist/runtime/components/content/ContentSearch.d.vue.ts +13 -9
- package/dist/runtime/components/content/ContentSearch.vue +63 -68
- package/dist/runtime/components/content/ContentSearch.vue.d.ts +13 -9
- package/dist/runtime/components/content/ContentSearchButton.d.vue.ts +4 -5
- package/dist/runtime/components/content/ContentSearchButton.vue +29 -10
- package/dist/runtime/components/content/ContentSearchButton.vue.d.ts +4 -5
- package/dist/runtime/components/content/ContentSurround.d.vue.ts +10 -6
- package/dist/runtime/components/content/ContentSurround.vue +8 -8
- package/dist/runtime/components/content/ContentSurround.vue.d.ts +10 -6
- package/dist/runtime/components/content/ContentToc.d.vue.ts +10 -6
- package/dist/runtime/components/content/ContentToc.vue +16 -16
- package/dist/runtime/components/content/ContentToc.vue.d.ts +10 -6
- package/dist/runtime/components/locale/LocaleSelect.d.vue.ts +12 -8
- package/dist/runtime/components/locale/LocaleSelect.vue +64 -9
- package/dist/runtime/components/locale/LocaleSelect.vue.d.ts +12 -8
- package/dist/runtime/components/prose/A.d.vue.ts +1 -1
- package/dist/runtime/components/prose/A.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Accordion.d.vue.ts +2 -2
- package/dist/runtime/components/prose/Accordion.vue.d.ts +2 -2
- package/dist/runtime/components/prose/AccordionItem.d.vue.ts +1 -1
- package/dist/runtime/components/prose/AccordionItem.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Badge.d.vue.ts +1 -1
- package/dist/runtime/components/prose/Badge.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Blockquote.d.vue.ts +1 -1
- package/dist/runtime/components/prose/Blockquote.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Callout.d.vue.ts +1 -1
- package/dist/runtime/components/prose/Callout.vue +1 -2
- package/dist/runtime/components/prose/Callout.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Card.d.vue.ts +1 -1
- package/dist/runtime/components/prose/Card.vue +1 -2
- package/dist/runtime/components/prose/Card.vue.d.ts +1 -1
- package/dist/runtime/components/prose/CardGroup.d.vue.ts +1 -1
- package/dist/runtime/components/prose/CardGroup.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Code.d.vue.ts +1 -1
- package/dist/runtime/components/prose/Code.vue.d.ts +1 -1
- package/dist/runtime/components/prose/CodeCollapse.d.vue.ts +2 -2
- package/dist/runtime/components/prose/CodeCollapse.vue +1 -1
- package/dist/runtime/components/prose/CodeCollapse.vue.d.ts +2 -2
- package/dist/runtime/components/prose/CodeGroup.d.vue.ts +2 -2
- package/dist/runtime/components/prose/CodeGroup.vue.d.ts +2 -2
- package/dist/runtime/components/prose/CodeIcon.d.vue.ts +1 -1
- package/dist/runtime/components/prose/CodeIcon.vue +1 -1
- package/dist/runtime/components/prose/CodeIcon.vue.d.ts +1 -1
- package/dist/runtime/components/prose/CodePreview.d.vue.ts +1 -1
- package/dist/runtime/components/prose/CodePreview.vue.d.ts +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.d.vue.ts +1 -1
- package/dist/runtime/components/prose/Collapsible.vue +1 -1
- package/dist/runtime/components/prose/Collapsible.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Em.d.vue.ts +1 -1
- package/dist/runtime/components/prose/Em.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Field.d.vue.ts +1 -1
- package/dist/runtime/components/prose/Field.vue.d.ts +1 -1
- package/dist/runtime/components/prose/FieldGroup.d.vue.ts +1 -1
- package/dist/runtime/components/prose/FieldGroup.vue.d.ts +1 -1
- package/dist/runtime/components/prose/H1.d.vue.ts +1 -1
- package/dist/runtime/components/prose/H1.vue.d.ts +1 -1
- package/dist/runtime/components/prose/H2.d.vue.ts +1 -1
- package/dist/runtime/components/prose/H2.vue.d.ts +1 -1
- package/dist/runtime/components/prose/H3.d.vue.ts +1 -1
- package/dist/runtime/components/prose/H3.vue.d.ts +1 -1
- package/dist/runtime/components/prose/H4.d.vue.ts +1 -1
- package/dist/runtime/components/prose/H4.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Hr.d.vue.ts +1 -1
- package/dist/runtime/components/prose/Hr.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Icon.d.vue.ts +1 -1
- package/dist/runtime/components/prose/Icon.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Img.d.vue.ts +2 -2
- package/dist/runtime/components/prose/Img.vue.d.ts +2 -2
- package/dist/runtime/components/prose/Kbd.d.vue.ts +1 -1
- package/dist/runtime/components/prose/Kbd.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Li.d.vue.ts +1 -1
- package/dist/runtime/components/prose/Li.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Ol.d.vue.ts +1 -1
- package/dist/runtime/components/prose/Ol.vue.d.ts +1 -1
- package/dist/runtime/components/prose/P.d.vue.ts +1 -1
- package/dist/runtime/components/prose/P.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Pre.d.vue.ts +1 -1
- package/dist/runtime/components/prose/Pre.vue +1 -1
- package/dist/runtime/components/prose/Pre.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Steps.d.vue.ts +1 -1
- package/dist/runtime/components/prose/Steps.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Strong.d.vue.ts +1 -1
- package/dist/runtime/components/prose/Strong.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Table.d.vue.ts +1 -1
- package/dist/runtime/components/prose/Table.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Tabs.d.vue.ts +2 -2
- package/dist/runtime/components/prose/Tabs.vue.d.ts +2 -2
- package/dist/runtime/components/prose/TabsItem.d.vue.ts +1 -1
- package/dist/runtime/components/prose/TabsItem.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Tbody.d.vue.ts +1 -1
- package/dist/runtime/components/prose/Tbody.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Td.d.vue.ts +1 -1
- package/dist/runtime/components/prose/Td.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Th.d.vue.ts +1 -1
- package/dist/runtime/components/prose/Th.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Thead.d.vue.ts +1 -1
- package/dist/runtime/components/prose/Thead.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Tr.d.vue.ts +1 -1
- package/dist/runtime/components/prose/Tr.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Ul.d.vue.ts +1 -1
- package/dist/runtime/components/prose/Ul.vue.d.ts +1 -1
- 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/index.d.ts +8 -0
- package/dist/runtime/composables/index.js +8 -0
- package/dist/runtime/composables/useAvatarGroup.d.ts +1 -1
- package/dist/runtime/composables/useComponentIcons.d.ts +2 -2
- package/dist/runtime/composables/useContentSearch.d.ts +5 -0
- package/dist/runtime/composables/useContentSearch.js +31 -1
- package/dist/runtime/composables/useEditorMenu.d.ts +64 -0
- package/dist/runtime/composables/useEditorMenu.js +448 -0
- package/dist/runtime/composables/useFieldGroup.d.ts +1 -1
- package/dist/runtime/composables/useFileUpload.d.ts +2 -2
- package/dist/runtime/composables/useFileUpload.js +13 -4
- package/dist/runtime/composables/useFormField.d.ts +1 -1
- package/dist/runtime/index.css +1 -1
- package/dist/runtime/keyframes.css +1 -1
- 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/gl.d.ts +3 -0
- package/dist/runtime/locale/gl.js +129 -0
- package/dist/runtime/locale/index.d.ts +5 -0
- package/dist/runtime/locale/index.js +5 -0
- package/dist/runtime/locale/lo.d.ts +3 -0
- package/dist/runtime/locale/lo.js +129 -0
- package/dist/runtime/locale/sq.d.ts +3 -0
- package/dist/runtime/locale/sq.js +129 -0
- package/dist/runtime/plugins/colors.js +8 -6
- package/dist/runtime/types/editor.d.ts +69 -0
- package/dist/runtime/types/editor.js +0 -0
- package/dist/runtime/types/html.d.ts +8 -0
- package/dist/runtime/types/html.js +0 -0
- package/dist/runtime/types/index.d.ts +13 -0
- package/dist/runtime/types/index.js +13 -0
- package/dist/runtime/types/input.d.ts +5 -5
- package/dist/runtime/types/utils.d.ts +2 -0
- package/dist/runtime/utils/editor.d.ts +69 -0
- package/dist/runtime/utils/editor.js +364 -0
- package/dist/runtime/utils/link.d.ts +1 -0
- package/dist/runtime/utils/link.js +40 -24
- package/dist/runtime/utils/locale.d.ts +1 -2
- package/dist/runtime/utils/virtualizer.d.ts +6 -0
- package/dist/runtime/utils/virtualizer.js +30 -0
- package/dist/runtime/vue/components/Icon.d.vue.ts +1 -1
- package/dist/runtime/vue/components/Icon.vue +1 -1
- package/dist/runtime/vue/components/Icon.vue.d.ts +1 -1
- package/dist/runtime/vue/components/color-mode/ColorModeSelect.d.vue.ts +5 -3
- package/dist/runtime/vue/components/color-mode/ColorModeSelect.vue +45 -3
- package/dist/runtime/vue/components/color-mode/ColorModeSelect.vue.d.ts +5 -3
- package/dist/runtime/vue/components/color-mode/ColorModeSwitch.d.vue.ts +2 -2
- package/dist/runtime/vue/components/color-mode/ColorModeSwitch.vue +24 -3
- package/dist/runtime/vue/components/color-mode/ColorModeSwitch.vue.d.ts +2 -2
- package/dist/runtime/vue/overrides/inertia/Link.d.vue.ts +74 -0
- package/dist/runtime/{inertia/components → vue/overrides/inertia}/Link.vue +33 -12
- package/dist/runtime/vue/overrides/inertia/Link.vue.d.ts +74 -0
- package/dist/runtime/{inertia/components → vue/overrides/inertia}/LinkBase.d.vue.ts +4 -3
- package/dist/runtime/{inertia/components → vue/overrides/inertia}/LinkBase.vue +5 -2
- package/dist/runtime/{inertia/components → vue/overrides/inertia}/LinkBase.vue.d.ts +4 -3
- package/dist/runtime/{inertia/components → vue/overrides/none}/Link.d.vue.ts +22 -10
- package/dist/runtime/vue/overrides/none/Link.vue +122 -0
- package/dist/runtime/{inertia/components → vue/overrides/none}/Link.vue.d.ts +22 -10
- package/dist/runtime/vue/{components → overrides/vue-router}/Link.d.vue.ts +10 -37
- package/dist/runtime/vue/{components → overrides/vue-router}/Link.vue +39 -21
- package/dist/runtime/vue/{components → overrides/vue-router}/Link.vue.d.ts +10 -37
- package/dist/runtime/vue/{stubs.d.ts → stubs/base.d.ts} +5 -6
- package/dist/runtime/vue/{stubs.js → stubs/base.js} +5 -6
- 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.Dy8dMbVj.mjs → ui.ZAh839z9.mjs} +673 -207
- package/dist/unplugin.d.mts +15 -0
- package/dist/unplugin.mjs +103 -50
- package/dist/vite.mjs +5 -3
- package/package.json +65 -42
- package/.nuxt/ui/accordion.ts +0 -20
- package/.nuxt/ui/alert.ts +0 -264
- package/.nuxt/ui/auth-form.ts +0 -20
- package/.nuxt/ui/avatar-group.ts +0 -52
- package/.nuxt/ui/avatar.ts +0 -54
- package/.nuxt/ui/badge.ts +0 -263
- package/.nuxt/ui/banner.ts +0 -108
- package/.nuxt/ui/blog-post.ts +0 -142
- package/.nuxt/ui/blog-posts.ts +0 -9
- package/.nuxt/ui/breadcrumb.ts +0 -45
- package/.nuxt/ui/button.ts +0 -378
- package/.nuxt/ui/calendar.ts +0 -315
- package/.nuxt/ui/card.ts +0 -34
- package/.nuxt/ui/carousel.ts +0 -38
- package/.nuxt/ui/changelog-version.ts +0 -41
- package/.nuxt/ui/changelog-versions.ts +0 -8
- package/.nuxt/ui/chat-message.ts +0 -136
- package/.nuxt/ui/chat-messages.ts +0 -14
- package/.nuxt/ui/chat-palette.ts +0 -8
- package/.nuxt/ui/chat-prompt-submit.ts +0 -5
- package/.nuxt/ui/chat-prompt.ts +0 -35
- package/.nuxt/ui/checkbox-group.ts +0 -204
- package/.nuxt/ui/checkbox.ts +0 -236
- package/.nuxt/ui/chip.ts +0 -96
- package/.nuxt/ui/collapsible.ts +0 -6
- package/.nuxt/ui/color-picker.ts +0 -47
- package/.nuxt/ui/command-palette.ts +0 -62
- package/.nuxt/ui/container.ts +0 -3
- package/.nuxt/ui/content/content-navigation.ts +0 -368
- package/.nuxt/ui/content/content-search-button.ts +0 -6
- package/.nuxt/ui/content/content-search.ts +0 -13
- package/.nuxt/ui/content/content-surround.ts +0 -34
- package/.nuxt/ui/content/content-toc.ts +0 -155
- package/.nuxt/ui/context-menu.ts +0 -219
- package/.nuxt/ui/dashboard-group.ts +0 -3
- package/.nuxt/ui/dashboard-navbar.ts +0 -21
- package/.nuxt/ui/dashboard-panel.ts +0 -17
- package/.nuxt/ui/dashboard-resize-handle.ts +0 -3
- package/.nuxt/ui/dashboard-search-button.ts +0 -6
- package/.nuxt/ui/dashboard-search.ts +0 -13
- package/.nuxt/ui/dashboard-sidebar-collapse.ts +0 -9
- package/.nuxt/ui/dashboard-sidebar-toggle.ts +0 -9
- package/.nuxt/ui/dashboard-sidebar.ts +0 -37
- package/.nuxt/ui/dashboard-toolbar.ts +0 -7
- package/.nuxt/ui/drawer.ts +0 -149
- package/.nuxt/ui/dropdown-menu.ts +0 -220
- package/.nuxt/ui/empty.ts +0 -83
- package/.nuxt/ui/error.ts +0 -9
- package/.nuxt/ui/field-group.ts +0 -16
- package/.nuxt/ui/file-upload.ts +0 -290
- package/.nuxt/ui/footer-columns.ts +0 -28
- package/.nuxt/ui/footer.ts +0 -11
- package/.nuxt/ui/form-field.ts +0 -48
- package/.nuxt/ui/form.ts +0 -3
- package/.nuxt/ui/header.ts +0 -25
- package/.nuxt/ui/index.ts +0 -106
- package/.nuxt/ui/input-menu.ts +0 -460
- package/.nuxt/ui/input-number.ts +0 -256
- package/.nuxt/ui/input-tags.ts +0 -310
- package/.nuxt/ui/input.ts +0 -289
- package/.nuxt/ui/kbd.ts +0 -195
- package/.nuxt/ui/link.ts +0 -22
- package/.nuxt/ui/main.ts +0 -3
- package/.nuxt/ui/marquee.ts +0 -66
- package/.nuxt/ui/modal.ts +0 -29
- package/.nuxt/ui/navigation-menu.ts +0 -510
- package/.nuxt/ui/page-anchors.ts +0 -30
- package/.nuxt/ui/page-aside.ts +0 -10
- package/.nuxt/ui/page-body.ts +0 -3
- package/.nuxt/ui/page-card.ts +0 -279
- package/.nuxt/ui/page-columns.ts +0 -3
- package/.nuxt/ui/page-cta.ts +0 -70
- package/.nuxt/ui/page-feature.ts +0 -26
- package/.nuxt/ui/page-grid.ts +0 -3
- package/.nuxt/ui/page-header.ts +0 -18
- package/.nuxt/ui/page-hero.ts +0 -44
- package/.nuxt/ui/page-links.ts +0 -25
- package/.nuxt/ui/page-list.ts +0 -8
- package/.nuxt/ui/page-logos.ts +0 -15
- package/.nuxt/ui/page-section.ts +0 -84
- package/.nuxt/ui/page.ts +0 -32
- package/.nuxt/ui/pagination.ts +0 -13
- package/.nuxt/ui/pin-input.ts +0 -171
- package/.nuxt/ui/popover.ts +0 -6
- package/.nuxt/ui/pricing-plan.ts +0 -101
- package/.nuxt/ui/pricing-plans.ts +0 -22
- package/.nuxt/ui/pricing-table.ts +0 -51
- package/.nuxt/ui/progress.ts +0 -297
- package/.nuxt/ui/prose/a.ts +0 -6
- package/.nuxt/ui/prose/accordion-item.ts +0 -3
- package/.nuxt/ui/prose/accordion.ts +0 -6
- package/.nuxt/ui/prose/badge.ts +0 -3
- package/.nuxt/ui/prose/blockquote.ts +0 -3
- package/.nuxt/ui/prose/callout.ts +0 -129
- package/.nuxt/ui/prose/card-group.ts +0 -3
- package/.nuxt/ui/prose/card.ts +0 -119
- package/.nuxt/ui/prose/code-collapse.ts +0 -19
- package/.nuxt/ui/prose/code-group.ts +0 -13
- package/.nuxt/ui/prose/code-icon.ts +0 -66
- package/.nuxt/ui/prose/code-preview.ts +0 -14
- package/.nuxt/ui/prose/code-tree.ts +0 -28
- package/.nuxt/ui/prose/code.ts +0 -27
- package/.nuxt/ui/prose/collapsible.ts +0 -12
- package/.nuxt/ui/prose/em.ts +0 -3
- package/.nuxt/ui/prose/field-group.ts +0 -3
- package/.nuxt/ui/prose/field.ts +0 -11
- package/.nuxt/ui/prose/h1.ts +0 -6
- package/.nuxt/ui/prose/h2.ts +0 -14
- package/.nuxt/ui/prose/h3.ts +0 -14
- package/.nuxt/ui/prose/h4.ts +0 -6
- package/.nuxt/ui/prose/hr.ts +0 -3
- package/.nuxt/ui/prose/icon.ts +0 -3
- package/.nuxt/ui/prose/img.ts +0 -23
- package/.nuxt/ui/prose/index.ts +0 -41
- package/.nuxt/ui/prose/kbd.ts +0 -3
- package/.nuxt/ui/prose/li.ts +0 -3
- package/.nuxt/ui/prose/ol.ts +0 -3
- package/.nuxt/ui/prose/p.ts +0 -3
- package/.nuxt/ui/prose/pre.ts +0 -17
- package/.nuxt/ui/prose/steps.ts +0 -19
- package/.nuxt/ui/prose/strong.ts +0 -3
- package/.nuxt/ui/prose/table.ts +0 -6
- package/.nuxt/ui/prose/tabs-item.ts +0 -3
- package/.nuxt/ui/prose/tabs.ts +0 -5
- package/.nuxt/ui/prose/tbody.ts +0 -3
- package/.nuxt/ui/prose/td.ts +0 -3
- package/.nuxt/ui/prose/th.ts +0 -3
- package/.nuxt/ui/prose/thead.ts +0 -3
- package/.nuxt/ui/prose/tr.ts +0 -3
- package/.nuxt/ui/prose/ul.ts +0 -3
- package/.nuxt/ui/radio-group.ts +0 -350
- package/.nuxt/ui/select-menu.ts +0 -361
- package/.nuxt/ui/select.ts +0 -348
- package/.nuxt/ui/separator.ts +0 -172
- package/.nuxt/ui/skeleton.ts +0 -3
- package/.nuxt/ui/slideover.ts +0 -71
- package/.nuxt/ui/slider.ts +0 -171
- package/.nuxt/ui/stepper.ts +0 -202
- package/.nuxt/ui/switch.ts +0 -131
- package/.nuxt/ui/table.ts +0 -162
- package/.nuxt/ui/tabs.ts +0 -258
- package/.nuxt/ui/textarea.ts +0 -294
- package/.nuxt/ui/timeline.ts +0 -321
- package/.nuxt/ui/toast.ts +0 -74
- package/.nuxt/ui/toaster.ts +0 -91
- package/.nuxt/ui/tooltip.ts +0 -9
- package/.nuxt/ui/tree.ts +0 -168
- package/.nuxt/ui/user.ts +0 -101
- package/dist/runtime/inertia/stubs.d.ts +0 -44
- package/dist/runtime/inertia/stubs.js +0 -84
- package/dist/runtime/vue/components/color-mode/ColorModeButton.d.vue.ts +0 -17
- package/dist/runtime/vue/components/color-mode/ColorModeButton.vue +0 -35
- package/dist/runtime/vue/components/color-mode/ColorModeButton.vue.d.ts +0 -17
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { pick } from '../../dist/runtime/utils/index.js';
|
|
2
2
|
import 'node:url';
|
|
3
|
+
import { pascalCase, kebabCase, camelCase } from 'scule';
|
|
4
|
+
import { genExport } from 'knitwork';
|
|
5
|
+
import colors from 'tailwindcss/colors';
|
|
6
|
+
import { addTypeTemplate, addTemplate, updateTemplates, hasNuxtModule, getLayerDirectories, logger } from '@nuxt/kit';
|
|
3
7
|
import { readFile } from 'node:fs/promises';
|
|
4
8
|
import { join } from 'pathe';
|
|
5
9
|
import { globSync } from 'tinyglobby';
|
|
6
|
-
import { kebabCase, camelCase, pascalCase } from 'scule';
|
|
7
|
-
import { genExport } from 'knitwork';
|
|
8
|
-
import colors from 'tailwindcss/colors';
|
|
9
|
-
import { addTypeTemplate, addTemplate, updateTemplates, hasNuxtModule, logger } from '@nuxt/kit';
|
|
10
10
|
import { defuFn, defu } from 'defu';
|
|
11
11
|
|
|
12
12
|
const icons = {
|
|
@@ -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",
|
|
@@ -53,32 +54,173 @@ const icons = {
|
|
|
53
54
|
warning: "i-lucide-triangle-alert"
|
|
54
55
|
};
|
|
55
56
|
|
|
56
|
-
|
|
57
|
-
colors:
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
57
|
+
function resolveColors(colors) {
|
|
58
|
+
return colors?.length ? [.../* @__PURE__ */ new Set(["primary", ...colors])] : ["primary", "secondary", "success", "info", "warning", "error"];
|
|
59
|
+
}
|
|
60
|
+
function getDefaultConfig(theme) {
|
|
61
|
+
return {
|
|
62
|
+
colors: pick({
|
|
63
|
+
primary: "green",
|
|
64
|
+
secondary: "blue",
|
|
65
|
+
success: "green",
|
|
66
|
+
info: "blue",
|
|
67
|
+
warning: "yellow",
|
|
68
|
+
error: "red",
|
|
69
|
+
neutral: "slate"
|
|
70
|
+
}, [...theme?.colors || [], "neutral"]),
|
|
71
|
+
icons,
|
|
72
|
+
prefix: theme?.prefix,
|
|
73
|
+
tv: {
|
|
74
|
+
twMergeConfig: {
|
|
75
|
+
prefix: theme?.prefix
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
};
|
|
79
|
+
}
|
|
68
80
|
const defaultOptions = {
|
|
69
81
|
prefix: "U",
|
|
70
82
|
fonts: true,
|
|
71
83
|
colorMode: true,
|
|
72
84
|
theme: {
|
|
73
85
|
colors: void 0,
|
|
74
|
-
transitions: true
|
|
86
|
+
transitions: true,
|
|
87
|
+
defaultVariants: {
|
|
88
|
+
color: void 0,
|
|
89
|
+
size: void 0
|
|
90
|
+
},
|
|
91
|
+
prefix: void 0
|
|
75
92
|
},
|
|
76
93
|
mdc: false,
|
|
77
94
|
content: false
|
|
78
95
|
};
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
96
|
+
|
|
97
|
+
function prefixClasses(classString, prefix) {
|
|
98
|
+
if (!prefix || !classString) {
|
|
99
|
+
return classString;
|
|
100
|
+
}
|
|
101
|
+
return classString.split(" ").filter(Boolean).map((cls) => `${prefix}:${cls}`).join(" ");
|
|
102
|
+
}
|
|
103
|
+
function isSizeValue(value) {
|
|
104
|
+
return /^(?:[23]x[sl]|xs|sm|md|lg|xl)$/.test(value.trim());
|
|
105
|
+
}
|
|
106
|
+
function applyPrefixToObject(obj, prefix, context = []) {
|
|
107
|
+
if (!obj || !prefix) {
|
|
108
|
+
return obj;
|
|
109
|
+
}
|
|
110
|
+
const currentKey = context[context.length - 1];
|
|
111
|
+
const compoundVariantsIndex = context.indexOf("compoundVariants");
|
|
112
|
+
const isInCompoundVariant = compoundVariantsIndex !== -1 && !context.slice(compoundVariantsIndex).includes("class");
|
|
113
|
+
const isInDefaultVariants = context.includes("defaultVariants");
|
|
114
|
+
const isComponentSizeValue = typeof obj === "string" && typeof currentKey === "string" && currentKey.endsWith("Size") && isSizeValue(obj);
|
|
115
|
+
if (typeof obj === "string" && (isInCompoundVariant || isInDefaultVariants || isComponentSizeValue)) {
|
|
116
|
+
return obj;
|
|
117
|
+
}
|
|
118
|
+
if (typeof obj === "string") {
|
|
119
|
+
return prefixClasses(obj, prefix);
|
|
120
|
+
}
|
|
121
|
+
if (Array.isArray(obj)) {
|
|
122
|
+
return obj.map((item, index) => applyPrefixToObject(item, prefix, [...context, String(index)]));
|
|
123
|
+
}
|
|
124
|
+
if (typeof obj === "object") {
|
|
125
|
+
const result = {};
|
|
126
|
+
for (const [key, value] of Object.entries(obj)) {
|
|
127
|
+
result[key] = applyPrefixToObject(value, prefix, [...context, key]);
|
|
128
|
+
}
|
|
129
|
+
return result;
|
|
130
|
+
}
|
|
131
|
+
return obj;
|
|
132
|
+
}
|
|
133
|
+
function applyDefaultVariants(result, defaultVariants) {
|
|
134
|
+
if (!result || !defaultVariants) {
|
|
135
|
+
return result;
|
|
136
|
+
}
|
|
137
|
+
if (result.defaultVariants?.color && defaultVariants.color) {
|
|
138
|
+
result.defaultVariants.color = defaultVariants.color;
|
|
139
|
+
}
|
|
140
|
+
if (result.defaultVariants?.size && defaultVariants.size) {
|
|
141
|
+
result.defaultVariants.size = defaultVariants.size;
|
|
142
|
+
}
|
|
143
|
+
return result;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
async function buildComponentDependencyGraph(componentDir, componentPattern) {
|
|
147
|
+
const dependencyGraph = /* @__PURE__ */ new Map();
|
|
148
|
+
const componentFiles = globSync(["**/*.vue"], {
|
|
149
|
+
cwd: componentDir,
|
|
150
|
+
absolute: true
|
|
151
|
+
});
|
|
152
|
+
for (const componentFile of componentFiles) {
|
|
153
|
+
try {
|
|
154
|
+
const content = await readFile(componentFile, "utf-8");
|
|
155
|
+
const componentName = pascalCase(componentFile.split("/").pop().replace(".vue", ""));
|
|
156
|
+
const dependencies = /* @__PURE__ */ new Set();
|
|
157
|
+
const matches = content.matchAll(componentPattern);
|
|
158
|
+
for (const match of matches) {
|
|
159
|
+
const depName = match[1] || match[2];
|
|
160
|
+
if (depName && depName !== componentName) {
|
|
161
|
+
dependencies.add(depName);
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
dependencyGraph.set(componentName, dependencies);
|
|
165
|
+
} catch {
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
return dependencyGraph;
|
|
169
|
+
}
|
|
170
|
+
function resolveComponentDependencies(component, dependencyGraph, resolved = /* @__PURE__ */ new Set()) {
|
|
171
|
+
if (resolved.has(component)) {
|
|
172
|
+
return resolved;
|
|
173
|
+
}
|
|
174
|
+
resolved.add(component);
|
|
175
|
+
const dependencies = dependencyGraph.get(component);
|
|
176
|
+
if (dependencies) {
|
|
177
|
+
for (const dep of dependencies) {
|
|
178
|
+
resolveComponentDependencies(dep, dependencyGraph, resolved);
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
return resolved;
|
|
182
|
+
}
|
|
183
|
+
async function detectUsedComponents(dirs, prefix, componentDir, includeComponents) {
|
|
184
|
+
const detectedComponents = /* @__PURE__ */ new Set();
|
|
185
|
+
if (includeComponents && includeComponents.length > 0) {
|
|
186
|
+
for (const component of includeComponents) {
|
|
187
|
+
detectedComponents.add(component);
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
const componentPattern = new RegExp(`<(?:Lazy)?${prefix}([A-Z][a-zA-Z]+)|\\b(?:Lazy)?${prefix}([A-Z][a-zA-Z]+)\\b`, "g");
|
|
191
|
+
for (const dir of dirs) {
|
|
192
|
+
const appFiles = globSync(["**/*.{vue,ts,js,tsx,jsx}"], {
|
|
193
|
+
cwd: dir,
|
|
194
|
+
ignore: ["node_modules/**", ".nuxt/**", "dist/**"]
|
|
195
|
+
});
|
|
196
|
+
for (const file of appFiles) {
|
|
197
|
+
try {
|
|
198
|
+
const filePath = join(dir, file);
|
|
199
|
+
const content = await readFile(filePath, "utf-8");
|
|
200
|
+
const matches = content.matchAll(componentPattern);
|
|
201
|
+
for (const match of matches) {
|
|
202
|
+
const componentName = match[1] || match[2];
|
|
203
|
+
if (componentName) {
|
|
204
|
+
detectedComponents.add(componentName);
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
} catch {
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
if (detectedComponents.size === 0) {
|
|
212
|
+
return void 0;
|
|
213
|
+
}
|
|
214
|
+
const dependencyGraph = await buildComponentDependencyGraph(componentDir, componentPattern);
|
|
215
|
+
const allComponents = /* @__PURE__ */ new Set();
|
|
216
|
+
for (const component of detectedComponents) {
|
|
217
|
+
const resolved = resolveComponentDependencies(component, dependencyGraph);
|
|
218
|
+
for (const resolvedComponent of resolved) {
|
|
219
|
+
allComponents.add(resolvedComponent);
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
return allComponents;
|
|
223
|
+
}
|
|
82
224
|
|
|
83
225
|
const accordion$1 = {
|
|
84
226
|
slots: {
|
|
@@ -551,9 +693,9 @@ const blogPost = (options) => ({
|
|
|
551
693
|
},
|
|
552
694
|
to: {
|
|
553
695
|
true: {
|
|
554
|
-
root: [options.theme.transitions && "transition"],
|
|
696
|
+
root: ["has-focus-visible:ring-2 has-focus-visible:ring-primary", options.theme.transitions && "transition"],
|
|
555
697
|
image: "transform transition-transform duration-200 group-hover/blog-post:scale-110",
|
|
556
|
-
avatar: "transform transition-transform duration-200 hover:scale-115"
|
|
698
|
+
avatar: "transform transition-transform duration-200 hover:scale-115 focus-visible:outline-primary"
|
|
557
699
|
}
|
|
558
700
|
},
|
|
559
701
|
image: {
|
|
@@ -992,7 +1134,7 @@ const carousel = (options) => ({
|
|
|
992
1134
|
prev: "absolute rounded-full",
|
|
993
1135
|
next: "absolute rounded-full",
|
|
994
1136
|
dots: "absolute inset-x-0 -bottom-7 flex flex-wrap items-center justify-center gap-3",
|
|
995
|
-
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"]
|
|
996
1138
|
},
|
|
997
1139
|
variants: {
|
|
998
1140
|
orientation: {
|
|
@@ -1017,7 +1159,7 @@ const carousel = (options) => ({
|
|
|
1017
1159
|
}
|
|
1018
1160
|
});
|
|
1019
1161
|
|
|
1020
|
-
const changelogVersion = {
|
|
1162
|
+
const changelogVersion = (options) => ({
|
|
1021
1163
|
slots: {
|
|
1022
1164
|
root: "relative",
|
|
1023
1165
|
container: "flex flex-col mx-auto max-w-2xl",
|
|
@@ -1048,7 +1190,8 @@ const changelogVersion = {
|
|
|
1048
1190
|
},
|
|
1049
1191
|
to: {
|
|
1050
1192
|
true: {
|
|
1051
|
-
|
|
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"
|
|
1052
1195
|
}
|
|
1053
1196
|
},
|
|
1054
1197
|
hidden: {
|
|
@@ -1057,7 +1200,7 @@ const changelogVersion = {
|
|
|
1057
1200
|
}
|
|
1058
1201
|
}
|
|
1059
1202
|
}
|
|
1060
|
-
};
|
|
1203
|
+
});
|
|
1061
1204
|
|
|
1062
1205
|
const changelogVersions = {
|
|
1063
1206
|
slots: {
|
|
@@ -1309,9 +1452,10 @@ const checkbox = (options) => ({
|
|
|
1309
1452
|
},
|
|
1310
1453
|
disabled: {
|
|
1311
1454
|
true: {
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1455
|
+
root: "opacity-75",
|
|
1456
|
+
base: "cursor-not-allowed",
|
|
1457
|
+
label: "cursor-not-allowed",
|
|
1458
|
+
description: "cursor-not-allowed"
|
|
1315
1459
|
}
|
|
1316
1460
|
},
|
|
1317
1461
|
checked: {
|
|
@@ -1342,7 +1486,7 @@ const checkbox = (options) => ({
|
|
|
1342
1486
|
variant: "card",
|
|
1343
1487
|
disabled: true,
|
|
1344
1488
|
class: {
|
|
1345
|
-
root: "cursor-not-allowed
|
|
1489
|
+
root: "cursor-not-allowed"
|
|
1346
1490
|
}
|
|
1347
1491
|
}
|
|
1348
1492
|
],
|
|
@@ -1407,6 +1551,9 @@ const checkboxGroup = (options) => ({
|
|
|
1407
1551
|
true: {
|
|
1408
1552
|
legend: "after:content-['*'] after:ms-0.5 after:text-error"
|
|
1409
1553
|
}
|
|
1554
|
+
},
|
|
1555
|
+
disabled: {
|
|
1556
|
+
true: {}
|
|
1410
1557
|
}
|
|
1411
1558
|
},
|
|
1412
1559
|
compoundVariants: [
|
|
@@ -1449,7 +1596,7 @@ const checkboxGroup = (options) => ({
|
|
|
1449
1596
|
variant: "table",
|
|
1450
1597
|
disabled: true,
|
|
1451
1598
|
class: {
|
|
1452
|
-
item: "cursor-not-allowed
|
|
1599
|
+
item: "cursor-not-allowed"
|
|
1453
1600
|
}
|
|
1454
1601
|
}
|
|
1455
1602
|
],
|
|
@@ -1531,9 +1678,9 @@ const colorPicker = {
|
|
|
1531
1678
|
picker: "flex gap-4",
|
|
1532
1679
|
selector: "rounded-md touch-none",
|
|
1533
1680
|
selectorBackground: "w-full h-full relative rounded-md",
|
|
1534
|
-
selectorThumb: "-translate-y-1/2 -translate-x-1/2 absolute size-4 ring-2 ring-
|
|
1681
|
+
selectorThumb: "-translate-y-1/2 -translate-x-1/2 absolute size-4 ring-2 ring-white rounded-full cursor-pointer data-[disabled]:cursor-not-allowed",
|
|
1535
1682
|
track: "w-[8px] relative rounded-md touch-none",
|
|
1536
|
-
trackThumb: "absolute transform -translate-y-1/2 -translate-x-[4px] rtl:translate-x-[4px] size-4 rounded-full ring-2 ring-
|
|
1683
|
+
trackThumb: "absolute transform -translate-y-1/2 -translate-x-[4px] rtl:translate-x-[4px] size-4 rounded-full ring-2 ring-white cursor-pointer data-[disabled]:cursor-not-allowed"
|
|
1537
1684
|
},
|
|
1538
1685
|
variants: {
|
|
1539
1686
|
size: {
|
|
@@ -1779,7 +1926,7 @@ const dashboardPanel = {
|
|
|
1779
1926
|
};
|
|
1780
1927
|
|
|
1781
1928
|
const dashboardResizeHandle = {
|
|
1782
|
-
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"
|
|
1783
1930
|
};
|
|
1784
1931
|
|
|
1785
1932
|
const dashboardSearch = {
|
|
@@ -1790,7 +1937,7 @@ const dashboardSearch = {
|
|
|
1790
1937
|
variants: {
|
|
1791
1938
|
fullscreen: {
|
|
1792
1939
|
false: {
|
|
1793
|
-
modal: "sm:max-w-3xl sm:h-[28rem]"
|
|
1940
|
+
modal: "sm:max-w-3xl h-full sm:h-[28rem]"
|
|
1794
1941
|
}
|
|
1795
1942
|
}
|
|
1796
1943
|
}
|
|
@@ -1799,7 +1946,16 @@ const dashboardSearch = {
|
|
|
1799
1946
|
const dashboardSearchButton = {
|
|
1800
1947
|
slots: {
|
|
1801
1948
|
base: "",
|
|
1949
|
+
label: "",
|
|
1802
1950
|
trailing: "hidden lg:flex items-center gap-0.5 ms-auto"
|
|
1951
|
+
},
|
|
1952
|
+
variants: {
|
|
1953
|
+
collapsed: {
|
|
1954
|
+
true: {
|
|
1955
|
+
label: "hidden",
|
|
1956
|
+
trailing: "lg:hidden"
|
|
1957
|
+
}
|
|
1958
|
+
}
|
|
1803
1959
|
}
|
|
1804
1960
|
};
|
|
1805
1961
|
|
|
@@ -2106,6 +2262,118 @@ const dropdownMenu = (options) => ({
|
|
|
2106
2262
|
}
|
|
2107
2263
|
});
|
|
2108
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
|
+
|
|
2109
2377
|
const empty = {
|
|
2110
2378
|
slots: {
|
|
2111
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",
|
|
@@ -2422,9 +2690,9 @@ const formField = {
|
|
|
2422
2690
|
slots: {
|
|
2423
2691
|
root: "",
|
|
2424
2692
|
wrapper: "",
|
|
2425
|
-
labelWrapper: "flex content-center items-center justify-between",
|
|
2693
|
+
labelWrapper: "flex content-center items-center justify-between gap-1",
|
|
2426
2694
|
label: "block font-medium text-default",
|
|
2427
|
-
container: "
|
|
2695
|
+
container: "relative",
|
|
2428
2696
|
description: "text-muted",
|
|
2429
2697
|
error: "mt-2 text-error",
|
|
2430
2698
|
hint: "text-muted",
|
|
@@ -2442,10 +2710,19 @@ const formField = {
|
|
|
2442
2710
|
true: {
|
|
2443
2711
|
label: `after:content-['*'] after:ms-0.5 after:text-error`
|
|
2444
2712
|
}
|
|
2713
|
+
},
|
|
2714
|
+
orientation: {
|
|
2715
|
+
vertical: {
|
|
2716
|
+
container: "mt-1"
|
|
2717
|
+
},
|
|
2718
|
+
horizontal: {
|
|
2719
|
+
root: "flex justify-between place-items-baseline gap-2"
|
|
2720
|
+
}
|
|
2445
2721
|
}
|
|
2446
2722
|
},
|
|
2447
2723
|
defaultVariants: {
|
|
2448
|
-
size: "md"
|
|
2724
|
+
size: "md",
|
|
2725
|
+
orientation: "vertical"
|
|
2449
2726
|
}
|
|
2450
2727
|
};
|
|
2451
2728
|
|
|
@@ -2634,6 +2911,68 @@ const input = (options) => ({
|
|
|
2634
2911
|
}
|
|
2635
2912
|
});
|
|
2636
2913
|
|
|
2914
|
+
const inputDate = (options) => {
|
|
2915
|
+
return defuFn({
|
|
2916
|
+
slots: {
|
|
2917
|
+
root: () => void 0,
|
|
2918
|
+
base: () => ["group relative inline-flex items-center rounded-md select-none", options.theme.transitions && "transition-colors"],
|
|
2919
|
+
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"],
|
|
2920
|
+
separatorIcon: "shrink-0 size-4 text-muted"
|
|
2921
|
+
},
|
|
2922
|
+
variants: {
|
|
2923
|
+
...fieldGroupVariant,
|
|
2924
|
+
size: {
|
|
2925
|
+
xs: {
|
|
2926
|
+
base: (prev) => [prev, "gap-0.25"],
|
|
2927
|
+
segment: "data-[segment=day]:w-6 data-[segment=month]:w-6 data-[segment=year]:w-9"
|
|
2928
|
+
},
|
|
2929
|
+
sm: {
|
|
2930
|
+
base: (prev) => [prev, "gap-0.5"],
|
|
2931
|
+
segment: "data-[segment=day]:w-6 data-[segment=month]:w-6 data-[segment=year]:w-9"
|
|
2932
|
+
},
|
|
2933
|
+
md: {
|
|
2934
|
+
base: (prev) => [prev, "gap-0.5"],
|
|
2935
|
+
segment: "data-[segment=day]:w-7 data-[segment=month]:w-7 data-[segment=year]:w-11"
|
|
2936
|
+
},
|
|
2937
|
+
lg: {
|
|
2938
|
+
base: (prev) => [prev, "gap-0.75"],
|
|
2939
|
+
segment: "data-[segment=day]:w-7 data-[segment=month]:w-7 data-[segment=year]:w-11"
|
|
2940
|
+
},
|
|
2941
|
+
xl: {
|
|
2942
|
+
base: (prev) => [prev, "gap-0.75"],
|
|
2943
|
+
segment: "data-[segment=day]:w-8 data-[segment=month]:w-8 data-[segment=year]:w-13"
|
|
2944
|
+
}
|
|
2945
|
+
}
|
|
2946
|
+
},
|
|
2947
|
+
compoundVariants: [{
|
|
2948
|
+
variant: "outline",
|
|
2949
|
+
class: {
|
|
2950
|
+
segment: "focus:bg-elevated"
|
|
2951
|
+
}
|
|
2952
|
+
}, {
|
|
2953
|
+
variant: "soft",
|
|
2954
|
+
class: {
|
|
2955
|
+
segment: "focus:bg-accented/50 group-hover:focus:bg-accented"
|
|
2956
|
+
}
|
|
2957
|
+
}, {
|
|
2958
|
+
variant: "subtle",
|
|
2959
|
+
class: {
|
|
2960
|
+
segment: "focus:bg-accented"
|
|
2961
|
+
}
|
|
2962
|
+
}, {
|
|
2963
|
+
variant: "ghost",
|
|
2964
|
+
class: {
|
|
2965
|
+
segment: "focus:bg-elevated group-hover:focus:bg-accented"
|
|
2966
|
+
}
|
|
2967
|
+
}, {
|
|
2968
|
+
variant: "none",
|
|
2969
|
+
class: {
|
|
2970
|
+
segment: "focus:bg-elevated"
|
|
2971
|
+
}
|
|
2972
|
+
}]
|
|
2973
|
+
}, input(options));
|
|
2974
|
+
};
|
|
2975
|
+
|
|
2637
2976
|
const inputMenu = (options) => {
|
|
2638
2977
|
return defuFn({
|
|
2639
2978
|
slots: {
|
|
@@ -2934,6 +3273,67 @@ function replaceFocus$2(str) {
|
|
|
2934
3273
|
return str.replace(/focus:/g, "has-focus:").replace(/focus-visible:/g, "has-focus-visible:");
|
|
2935
3274
|
}
|
|
2936
3275
|
|
|
3276
|
+
const inputTime = (options) => {
|
|
3277
|
+
return defuFn({
|
|
3278
|
+
slots: {
|
|
3279
|
+
root: () => void 0,
|
|
3280
|
+
base: () => ["group relative inline-flex items-center rounded-md select-none", options.theme.transitions && "transition-colors"],
|
|
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"]
|
|
3282
|
+
},
|
|
3283
|
+
variants: {
|
|
3284
|
+
...fieldGroupVariant,
|
|
3285
|
+
size: {
|
|
3286
|
+
xs: {
|
|
3287
|
+
base: (prev) => [prev, "gap-0.25"],
|
|
3288
|
+
segment: "not-data-[segment=literal]:w-6"
|
|
3289
|
+
},
|
|
3290
|
+
sm: {
|
|
3291
|
+
base: (prev) => [prev, "gap-0.5"],
|
|
3292
|
+
segment: "not-data-[segment=literal]:w-6"
|
|
3293
|
+
},
|
|
3294
|
+
md: {
|
|
3295
|
+
base: (prev) => [prev, "gap-0.5"],
|
|
3296
|
+
segment: "not-data-[segment=literal]:w-7"
|
|
3297
|
+
},
|
|
3298
|
+
lg: {
|
|
3299
|
+
base: (prev) => [prev, "gap-0.75"],
|
|
3300
|
+
segment: "not-data-[segment=literal]:w-7"
|
|
3301
|
+
},
|
|
3302
|
+
xl: {
|
|
3303
|
+
base: (prev) => [prev, "gap-0.75"],
|
|
3304
|
+
segment: "not-data-[segment=literal]:w-8"
|
|
3305
|
+
}
|
|
3306
|
+
}
|
|
3307
|
+
},
|
|
3308
|
+
compoundVariants: [{
|
|
3309
|
+
variant: "outline",
|
|
3310
|
+
class: {
|
|
3311
|
+
segment: "focus:bg-elevated"
|
|
3312
|
+
}
|
|
3313
|
+
}, {
|
|
3314
|
+
variant: "soft",
|
|
3315
|
+
class: {
|
|
3316
|
+
segment: "focus:bg-accented/50 group-hover:focus:bg-accented"
|
|
3317
|
+
}
|
|
3318
|
+
}, {
|
|
3319
|
+
variant: "subtle",
|
|
3320
|
+
class: {
|
|
3321
|
+
segment: "focus:bg-accented"
|
|
3322
|
+
}
|
|
3323
|
+
}, {
|
|
3324
|
+
variant: "ghost",
|
|
3325
|
+
class: {
|
|
3326
|
+
segment: "focus:bg-elevated group-hover:focus:bg-accented"
|
|
3327
|
+
}
|
|
3328
|
+
}, {
|
|
3329
|
+
variant: "none",
|
|
3330
|
+
class: {
|
|
3331
|
+
segment: "focus:bg-elevated"
|
|
3332
|
+
}
|
|
3333
|
+
}]
|
|
3334
|
+
}, input(options));
|
|
3335
|
+
};
|
|
3336
|
+
|
|
2937
3337
|
const kbd$1 = (options) => ({
|
|
2938
3338
|
base: "inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase",
|
|
2939
3339
|
variants: {
|
|
@@ -3074,11 +3474,11 @@ const marquee = {
|
|
|
3074
3474
|
|
|
3075
3475
|
const modal = {
|
|
3076
3476
|
slots: {
|
|
3077
|
-
overlay: "fixed inset-0
|
|
3078
|
-
content: "
|
|
3477
|
+
overlay: "fixed inset-0",
|
|
3478
|
+
content: "bg-default divide-y divide-default flex flex-col focus:outline-none",
|
|
3079
3479
|
header: "flex items-center gap-1.5 p-4 sm:px-6 min-h-16",
|
|
3080
3480
|
wrapper: "",
|
|
3081
|
-
body: "flex-1
|
|
3481
|
+
body: "flex-1 p-4 sm:p-6",
|
|
3082
3482
|
footer: "flex items-center gap-1.5 p-4 sm:px-6",
|
|
3083
3483
|
title: "text-highlighted font-semibold",
|
|
3084
3484
|
description: "mt-1 text-muted text-sm",
|
|
@@ -3096,10 +3496,38 @@ const modal = {
|
|
|
3096
3496
|
content: "inset-0"
|
|
3097
3497
|
},
|
|
3098
3498
|
false: {
|
|
3099
|
-
content: "
|
|
3499
|
+
content: "w-[calc(100vw-2rem)] max-w-lg rounded-lg shadow-lg ring ring-default"
|
|
3500
|
+
}
|
|
3501
|
+
},
|
|
3502
|
+
overlay: {
|
|
3503
|
+
true: {
|
|
3504
|
+
overlay: "bg-elevated/75"
|
|
3505
|
+
}
|
|
3506
|
+
},
|
|
3507
|
+
scrollable: {
|
|
3508
|
+
true: {
|
|
3509
|
+
overlay: "overflow-y-auto",
|
|
3510
|
+
content: "relative"
|
|
3511
|
+
},
|
|
3512
|
+
false: {
|
|
3513
|
+
content: "fixed",
|
|
3514
|
+
body: "overflow-y-auto"
|
|
3100
3515
|
}
|
|
3101
3516
|
}
|
|
3102
|
-
}
|
|
3517
|
+
},
|
|
3518
|
+
compoundVariants: [{
|
|
3519
|
+
scrollable: true,
|
|
3520
|
+
fullscreen: false,
|
|
3521
|
+
class: {
|
|
3522
|
+
overlay: "grid place-items-center p-4 sm:py-8"
|
|
3523
|
+
}
|
|
3524
|
+
}, {
|
|
3525
|
+
scrollable: false,
|
|
3526
|
+
fullscreen: false,
|
|
3527
|
+
class: {
|
|
3528
|
+
content: "top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 max-h-[calc(100dvh-2rem)] sm:max-h-[calc(100dvh-4rem)] overflow-hidden"
|
|
3529
|
+
}
|
|
3530
|
+
}]
|
|
3103
3531
|
};
|
|
3104
3532
|
|
|
3105
3533
|
const navigationMenu = (options) => ({
|
|
@@ -3233,6 +3661,8 @@ const navigationMenu = (options) => ({
|
|
|
3233
3661
|
collapsed: true,
|
|
3234
3662
|
class: {
|
|
3235
3663
|
link: "px-1.5",
|
|
3664
|
+
linkLabel: "hidden",
|
|
3665
|
+
linkTrailing: "hidden",
|
|
3236
3666
|
content: "shadow-sm rounded-sm min-h-6 p-1"
|
|
3237
3667
|
}
|
|
3238
3668
|
}, {
|
|
@@ -3467,7 +3897,7 @@ const pageCta = {
|
|
|
3467
3897
|
},
|
|
3468
3898
|
reverse: {
|
|
3469
3899
|
true: {
|
|
3470
|
-
wrapper: "
|
|
3900
|
+
wrapper: "order-last"
|
|
3471
3901
|
}
|
|
3472
3902
|
},
|
|
3473
3903
|
variant: {
|
|
@@ -3528,7 +3958,7 @@ const pageCard = (options) => ({
|
|
|
3528
3958
|
},
|
|
3529
3959
|
reverse: {
|
|
3530
3960
|
true: {
|
|
3531
|
-
wrapper: "
|
|
3961
|
+
wrapper: "order-last"
|
|
3532
3962
|
}
|
|
3533
3963
|
},
|
|
3534
3964
|
variant: {
|
|
@@ -3559,7 +3989,7 @@ const pageCard = (options) => ({
|
|
|
3559
3989
|
},
|
|
3560
3990
|
to: {
|
|
3561
3991
|
true: {
|
|
3562
|
-
root: [options.theme.transitions && "transition"]
|
|
3992
|
+
root: ["has-focus-visible:ring-2 has-focus-visible:ring-primary", options.theme.transitions && "transition"]
|
|
3563
3993
|
}
|
|
3564
3994
|
},
|
|
3565
3995
|
title: {
|
|
@@ -3647,11 +4077,6 @@ const pageCard = (options) => ({
|
|
|
3647
4077
|
class: {
|
|
3648
4078
|
root: "[--spotlight-color:var(--ui-bg-inverted)]"
|
|
3649
4079
|
}
|
|
3650
|
-
}, {
|
|
3651
|
-
to: true,
|
|
3652
|
-
class: {
|
|
3653
|
-
root: "has-focus-visible:ring-2 has-focus-visible:ring-primary"
|
|
3654
|
-
}
|
|
3655
4080
|
}],
|
|
3656
4081
|
defaultVariants: {
|
|
3657
4082
|
variant: "outline",
|
|
@@ -3664,9 +4089,9 @@ const pageColumns = {
|
|
|
3664
4089
|
base: "relative column-1 md:columns-2 lg:columns-3 gap-8 space-y-8 *:break-inside-avoid-column *:will-change-transform"
|
|
3665
4090
|
};
|
|
3666
4091
|
|
|
3667
|
-
const pageFeature = {
|
|
4092
|
+
const pageFeature = (options) => ({
|
|
3668
4093
|
slots: {
|
|
3669
|
-
root: "relative",
|
|
4094
|
+
root: "relative rounded-sm",
|
|
3670
4095
|
wrapper: "",
|
|
3671
4096
|
leading: "inline-flex items-center justify-center",
|
|
3672
4097
|
leadingIcon: "size-5 shrink-0 text-primary",
|
|
@@ -3683,13 +4108,18 @@ const pageFeature = {
|
|
|
3683
4108
|
leading: "mb-2.5"
|
|
3684
4109
|
}
|
|
3685
4110
|
},
|
|
4111
|
+
to: {
|
|
4112
|
+
true: {
|
|
4113
|
+
root: ["has-focus-visible:ring-2 has-focus-visible:ring-primary", options.theme.transitions && "transition"]
|
|
4114
|
+
}
|
|
4115
|
+
},
|
|
3686
4116
|
title: {
|
|
3687
4117
|
true: {
|
|
3688
4118
|
description: "mt-1"
|
|
3689
4119
|
}
|
|
3690
4120
|
}
|
|
3691
4121
|
}
|
|
3692
|
-
};
|
|
4122
|
+
});
|
|
3693
4123
|
|
|
3694
4124
|
const pageGrid = {
|
|
3695
4125
|
base: "relative grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-8"
|
|
@@ -3842,7 +4272,7 @@ const pageSection = {
|
|
|
3842
4272
|
},
|
|
3843
4273
|
reverse: {
|
|
3844
4274
|
true: {
|
|
3845
|
-
wrapper: "
|
|
4275
|
+
wrapper: "order-last"
|
|
3846
4276
|
}
|
|
3847
4277
|
},
|
|
3848
4278
|
headline: {
|
|
@@ -4441,8 +4871,10 @@ const radioGroup = (options) => ({
|
|
|
4441
4871
|
},
|
|
4442
4872
|
disabled: {
|
|
4443
4873
|
true: {
|
|
4444
|
-
|
|
4445
|
-
|
|
4874
|
+
item: "opacity-75",
|
|
4875
|
+
base: "cursor-not-allowed",
|
|
4876
|
+
label: "cursor-not-allowed",
|
|
4877
|
+
description: "cursor-not-allowed"
|
|
4446
4878
|
}
|
|
4447
4879
|
},
|
|
4448
4880
|
required: {
|
|
@@ -4505,7 +4937,7 @@ const radioGroup = (options) => ({
|
|
|
4505
4937
|
variant: ["card", "table"],
|
|
4506
4938
|
disabled: true,
|
|
4507
4939
|
class: {
|
|
4508
|
-
item: "cursor-not-allowed
|
|
4940
|
+
item: "cursor-not-allowed"
|
|
4509
4941
|
}
|
|
4510
4942
|
}
|
|
4511
4943
|
],
|
|
@@ -4518,6 +4950,28 @@ const radioGroup = (options) => ({
|
|
|
4518
4950
|
}
|
|
4519
4951
|
});
|
|
4520
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
|
+
|
|
4521
4975
|
const select = (options) => {
|
|
4522
4976
|
return defuFn({
|
|
4523
4977
|
slots: {
|
|
@@ -4750,16 +5204,21 @@ const slideover = {
|
|
|
4750
5204
|
variants: {
|
|
4751
5205
|
side: {
|
|
4752
5206
|
top: {
|
|
4753
|
-
content: "
|
|
5207
|
+
content: ""
|
|
4754
5208
|
},
|
|
4755
5209
|
right: {
|
|
4756
|
-
content: "
|
|
5210
|
+
content: "max-w-md"
|
|
4757
5211
|
},
|
|
4758
5212
|
bottom: {
|
|
4759
|
-
content: "
|
|
5213
|
+
content: ""
|
|
4760
5214
|
},
|
|
4761
5215
|
left: {
|
|
4762
|
-
content: "
|
|
5216
|
+
content: "max-w-md"
|
|
5217
|
+
}
|
|
5218
|
+
},
|
|
5219
|
+
inset: {
|
|
5220
|
+
true: {
|
|
5221
|
+
content: "rounded-lg"
|
|
4763
5222
|
}
|
|
4764
5223
|
},
|
|
4765
5224
|
transition: {
|
|
@@ -4769,6 +5228,54 @@ const slideover = {
|
|
|
4769
5228
|
}
|
|
4770
5229
|
},
|
|
4771
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
|
+
}, {
|
|
4772
5279
|
transition: true,
|
|
4773
5280
|
side: "top",
|
|
4774
5281
|
class: {
|
|
@@ -5113,9 +5620,10 @@ const _switch = (options) => ({
|
|
|
5113
5620
|
},
|
|
5114
5621
|
disabled: {
|
|
5115
5622
|
true: {
|
|
5116
|
-
|
|
5117
|
-
|
|
5118
|
-
|
|
5623
|
+
root: "opacity-75",
|
|
5624
|
+
base: "cursor-not-allowed",
|
|
5625
|
+
label: "cursor-not-allowed",
|
|
5626
|
+
description: "cursor-not-allowed"
|
|
5119
5627
|
}
|
|
5120
5628
|
}
|
|
5121
5629
|
},
|
|
@@ -5131,12 +5639,12 @@ const table$1 = (options) => ({
|
|
|
5131
5639
|
base: "min-w-full",
|
|
5132
5640
|
caption: "sr-only",
|
|
5133
5641
|
thead: "relative",
|
|
5134
|
-
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",
|
|
5135
5643
|
tfoot: "relative",
|
|
5136
5644
|
tr: "data-[selected=true]:bg-elevated/50",
|
|
5137
5645
|
th: "px-4 py-3.5 text-sm text-highlighted text-left rtl:text-right font-semibold [&:has([role=checkbox])]:pe-0",
|
|
5138
5646
|
td: "p-4 text-sm text-muted whitespace-nowrap [&:has([role=checkbox])]:pe-0",
|
|
5139
|
-
separator: "absolute z-
|
|
5647
|
+
separator: "absolute z-1 left-0 w-full h-px bg-(--ui-border-accented)",
|
|
5140
5648
|
empty: "py-6 text-center text-sm text-muted",
|
|
5141
5649
|
loading: "py-6 text-center"
|
|
5142
5650
|
},
|
|
@@ -5149,25 +5657,25 @@ const table$1 = (options) => ({
|
|
|
5149
5657
|
},
|
|
5150
5658
|
pinned: {
|
|
5151
5659
|
true: {
|
|
5152
|
-
th: "sticky bg-default/75
|
|
5153
|
-
td: "sticky bg-default/75
|
|
5660
|
+
th: "sticky bg-default/75 z-1",
|
|
5661
|
+
td: "sticky bg-default/75 z-1"
|
|
5154
5662
|
}
|
|
5155
5663
|
},
|
|
5156
5664
|
sticky: {
|
|
5157
5665
|
true: {
|
|
5158
|
-
thead: "sticky top-0 inset-x-0 bg-default/75 z-
|
|
5159
|
-
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"
|
|
5160
5668
|
},
|
|
5161
5669
|
header: {
|
|
5162
|
-
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"
|
|
5163
5671
|
},
|
|
5164
5672
|
footer: {
|
|
5165
|
-
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"
|
|
5166
5674
|
}
|
|
5167
5675
|
},
|
|
5168
5676
|
loading: {
|
|
5169
5677
|
true: {
|
|
5170
|
-
thead: "after:absolute after:z-
|
|
5678
|
+
thead: "after:absolute after:z-1 after:h-px"
|
|
5171
5679
|
}
|
|
5172
5680
|
},
|
|
5173
5681
|
loadingAnimation: {
|
|
@@ -5808,9 +6316,9 @@ const user = (options) => ({
|
|
|
5808
6316
|
},
|
|
5809
6317
|
to: {
|
|
5810
6318
|
true: {
|
|
5811
|
-
name: ["text-default peer-hover:text-highlighted", options.theme.transitions && "transition-colors"],
|
|
5812
|
-
description: ["peer-hover:text-toned", options.theme.transitions && "transition-colors"],
|
|
5813
|
-
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"
|
|
5814
6322
|
},
|
|
5815
6323
|
false: {
|
|
5816
6324
|
name: "text-highlighted",
|
|
@@ -5916,6 +6424,12 @@ const theme = {
|
|
|
5916
6424
|
dashboardToolbar: dashboardToolbar,
|
|
5917
6425
|
drawer: drawer,
|
|
5918
6426
|
dropdownMenu: dropdownMenu,
|
|
6427
|
+
editor: editor,
|
|
6428
|
+
editorDragHandle: editorDragHandle,
|
|
6429
|
+
editorEmojiMenu: editorEmojiMenu,
|
|
6430
|
+
editorMentionMenu: editorMentionMenu,
|
|
6431
|
+
editorSuggestionMenu: editorSuggestionMenu,
|
|
6432
|
+
editorToolbar: editorToolbar,
|
|
5919
6433
|
empty: empty,
|
|
5920
6434
|
error: error,
|
|
5921
6435
|
fieldGroup: fieldGroup$1,
|
|
@@ -5926,9 +6440,11 @@ const theme = {
|
|
|
5926
6440
|
formField: formField,
|
|
5927
6441
|
header: header,
|
|
5928
6442
|
input: input,
|
|
6443
|
+
inputDate: inputDate,
|
|
5929
6444
|
inputMenu: inputMenu,
|
|
5930
6445
|
inputNumber: inputNumber,
|
|
5931
6446
|
inputTags: inputTags,
|
|
6447
|
+
inputTime: inputTime,
|
|
5932
6448
|
kbd: kbd$1,
|
|
5933
6449
|
link: link,
|
|
5934
6450
|
main: main,
|
|
@@ -5958,6 +6474,7 @@ const theme = {
|
|
|
5958
6474
|
pricingTable: pricingTable,
|
|
5959
6475
|
progress: progress,
|
|
5960
6476
|
radioGroup: radioGroup,
|
|
6477
|
+
scrollArea: scrollArea,
|
|
5961
6478
|
select: select,
|
|
5962
6479
|
selectMenu: selectMenu,
|
|
5963
6480
|
separator: separator,
|
|
@@ -5978,7 +6495,7 @@ const theme = {
|
|
|
5978
6495
|
};
|
|
5979
6496
|
|
|
5980
6497
|
const a = (options) => ({
|
|
5981
|
-
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"]
|
|
5982
6499
|
});
|
|
5983
6500
|
|
|
5984
6501
|
const accordion = {
|
|
@@ -6003,13 +6520,13 @@ const blockquote = {
|
|
|
6003
6520
|
const callout = (options) => ({
|
|
6004
6521
|
slots: {
|
|
6005
6522
|
base: ["group relative block px-4 py-3 rounded-md text-sm/6 my-5 last:mb-0 [&_code]:text-xs/5 [&_code]:bg-default [&_pre]:bg-default [&>div]:my-2.5 [&_ul]:my-2.5 [&_ol]:my-2.5 [&>*]:last:!mb-0 [&_ul]:ps-4.5 [&_ol]:ps-4.5 [&_li]:my-0", options.theme.transitions && "transition-colors"],
|
|
6006
|
-
icon: ["size-4 shrink-0 align-sub me-1.5", options.theme.transitions && "transition-colors"],
|
|
6523
|
+
icon: ["size-4 shrink-0 align-sub me-1.5 inline-block", options.theme.transitions && "transition-colors"],
|
|
6007
6524
|
externalIcon: ["size-4 align-top absolute right-2 top-2 pointer-events-none", options.theme.transitions && "transition-colors"]
|
|
6008
6525
|
},
|
|
6009
6526
|
variants: {
|
|
6010
6527
|
color: {
|
|
6011
6528
|
...Object.fromEntries((options.theme.colors || []).map((color) => [color, {
|
|
6012
|
-
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`,
|
|
6013
6530
|
icon: `text-${color}`,
|
|
6014
6531
|
externalIcon: `text-${color}-600 dark:text-${color}-300`
|
|
6015
6532
|
}])),
|
|
@@ -6027,14 +6544,14 @@ const callout = (options) => ({
|
|
|
6027
6544
|
color,
|
|
6028
6545
|
to: true,
|
|
6029
6546
|
class: {
|
|
6030
|
-
base: `hover:border-${color}`,
|
|
6547
|
+
base: `hover:border-${color} has-focus-visible:border-${color}`,
|
|
6031
6548
|
externalIcon: `group-hover:text-${color}`
|
|
6032
6549
|
}
|
|
6033
6550
|
})), {
|
|
6034
6551
|
color: "neutral",
|
|
6035
6552
|
to: true,
|
|
6036
6553
|
class: {
|
|
6037
|
-
base: "hover:border-inverted",
|
|
6554
|
+
base: "hover:border-inverted has-focus-visible:border-inverted",
|
|
6038
6555
|
externalIcon: "group-hover:text-highlighted"
|
|
6039
6556
|
}
|
|
6040
6557
|
}],
|
|
@@ -6073,14 +6590,14 @@ const card = (options) => ({
|
|
|
6073
6590
|
color,
|
|
6074
6591
|
to: true,
|
|
6075
6592
|
class: {
|
|
6076
|
-
base: `hover:bg-${color}/10 hover:border-${color}`,
|
|
6593
|
+
base: `hover:bg-${color}/10 hover:border-${color} has-focus-visible:border-${color}`,
|
|
6077
6594
|
externalIcon: `group-hover:text-${color}`
|
|
6078
6595
|
}
|
|
6079
6596
|
})), {
|
|
6080
6597
|
color: "neutral",
|
|
6081
6598
|
to: true,
|
|
6082
6599
|
class: {
|
|
6083
|
-
base: "hover:bg-elevated/50 hover:border-inverted",
|
|
6600
|
+
base: "hover:bg-elevated/50 hover:border-inverted has-focus-visible:border-inverted",
|
|
6084
6601
|
externalIcon: "group-hover:text-highlighted"
|
|
6085
6602
|
}
|
|
6086
6603
|
}],
|
|
@@ -6200,6 +6717,7 @@ const codeIcon = {
|
|
|
6200
6717
|
"npx": "i-vscode-icons-file-type-npm",
|
|
6201
6718
|
"yarn": "i-vscode-icons-file-type-yarn",
|
|
6202
6719
|
"bun": "i-vscode-icons-file-type-bun",
|
|
6720
|
+
"deno": "i-vscode-icons-file-type-deno",
|
|
6203
6721
|
"yml": "i-vscode-icons-file-type-yaml",
|
|
6204
6722
|
"terminal": "i-lucide-terminal"
|
|
6205
6723
|
};
|
|
@@ -6637,7 +7155,7 @@ const contentSearch = {
|
|
|
6637
7155
|
variants: {
|
|
6638
7156
|
fullscreen: {
|
|
6639
7157
|
false: {
|
|
6640
|
-
modal: "sm:max-w-3xl sm:h-[28rem]"
|
|
7158
|
+
modal: "sm:max-w-3xl h-full sm:h-[28rem]"
|
|
6641
7159
|
}
|
|
6642
7160
|
}
|
|
6643
7161
|
}
|
|
@@ -6646,7 +7164,16 @@ const contentSearch = {
|
|
|
6646
7164
|
const contentSearchButton = {
|
|
6647
7165
|
slots: {
|
|
6648
7166
|
base: "",
|
|
7167
|
+
label: "",
|
|
6649
7168
|
trailing: "hidden lg:flex items-center gap-0.5 ms-auto"
|
|
7169
|
+
},
|
|
7170
|
+
variants: {
|
|
7171
|
+
collapsed: {
|
|
7172
|
+
true: {
|
|
7173
|
+
label: "hidden",
|
|
7174
|
+
trailing: "lg:hidden"
|
|
7175
|
+
}
|
|
7176
|
+
}
|
|
6650
7177
|
}
|
|
6651
7178
|
};
|
|
6652
7179
|
|
|
@@ -6751,83 +7278,6 @@ const themeContent = {
|
|
|
6751
7278
|
contentToc: contentToc
|
|
6752
7279
|
};
|
|
6753
7280
|
|
|
6754
|
-
async function buildComponentDependencyGraph(componentDir, prefix) {
|
|
6755
|
-
const dependencyGraph = /* @__PURE__ */ new Map();
|
|
6756
|
-
const componentFiles = globSync(["**/*.vue"], {
|
|
6757
|
-
cwd: componentDir,
|
|
6758
|
-
absolute: true
|
|
6759
|
-
});
|
|
6760
|
-
const componentPattern = new RegExp(`<${prefix}([A-Z][a-zA-Z]+)|\\b${prefix}([A-Z][a-zA-Z]+)\\b`, "g");
|
|
6761
|
-
for (const componentFile of componentFiles) {
|
|
6762
|
-
try {
|
|
6763
|
-
const content = await readFile(componentFile, "utf-8");
|
|
6764
|
-
const componentName = pascalCase(componentFile.split("/").pop().replace(".vue", ""));
|
|
6765
|
-
const dependencies = /* @__PURE__ */ new Set();
|
|
6766
|
-
const matches = content.matchAll(componentPattern);
|
|
6767
|
-
for (const match of matches) {
|
|
6768
|
-
const depName = match[1] || match[2];
|
|
6769
|
-
if (depName && depName !== componentName) {
|
|
6770
|
-
dependencies.add(depName);
|
|
6771
|
-
}
|
|
6772
|
-
}
|
|
6773
|
-
dependencyGraph.set(componentName, dependencies);
|
|
6774
|
-
} catch {
|
|
6775
|
-
}
|
|
6776
|
-
}
|
|
6777
|
-
return dependencyGraph;
|
|
6778
|
-
}
|
|
6779
|
-
function resolveComponentDependencies(component, dependencyGraph, resolved = /* @__PURE__ */ new Set()) {
|
|
6780
|
-
if (resolved.has(component)) {
|
|
6781
|
-
return resolved;
|
|
6782
|
-
}
|
|
6783
|
-
resolved.add(component);
|
|
6784
|
-
const dependencies = dependencyGraph.get(component);
|
|
6785
|
-
if (dependencies) {
|
|
6786
|
-
for (const dep of dependencies) {
|
|
6787
|
-
resolveComponentDependencies(dep, dependencyGraph, resolved);
|
|
6788
|
-
}
|
|
6789
|
-
}
|
|
6790
|
-
return resolved;
|
|
6791
|
-
}
|
|
6792
|
-
async function detectUsedComponents(rootDir, prefix, componentDir, includeComponents) {
|
|
6793
|
-
const detectedComponents = /* @__PURE__ */ new Set();
|
|
6794
|
-
if (includeComponents && includeComponents.length > 0) {
|
|
6795
|
-
for (const component of includeComponents) {
|
|
6796
|
-
detectedComponents.add(component);
|
|
6797
|
-
}
|
|
6798
|
-
}
|
|
6799
|
-
const appFiles = globSync(["**/*.{vue,ts,js,tsx,jsx}"], {
|
|
6800
|
-
cwd: rootDir,
|
|
6801
|
-
ignore: ["node_modules/**", ".nuxt/**", "dist/**"]
|
|
6802
|
-
});
|
|
6803
|
-
const componentPattern = new RegExp(`<${prefix}([A-Z][a-zA-Z]+)|\\b${prefix}([A-Z][a-zA-Z]+)\\b`, "g");
|
|
6804
|
-
for (const file of appFiles) {
|
|
6805
|
-
try {
|
|
6806
|
-
const filePath = join(rootDir, file);
|
|
6807
|
-
const content = await readFile(filePath, "utf-8");
|
|
6808
|
-
const matches = content.matchAll(componentPattern);
|
|
6809
|
-
for (const match of matches) {
|
|
6810
|
-
const componentName = match[1] || match[2];
|
|
6811
|
-
if (componentName) {
|
|
6812
|
-
detectedComponents.add(componentName);
|
|
6813
|
-
}
|
|
6814
|
-
}
|
|
6815
|
-
} catch {
|
|
6816
|
-
}
|
|
6817
|
-
}
|
|
6818
|
-
if (detectedComponents.size === 0) {
|
|
6819
|
-
return void 0;
|
|
6820
|
-
}
|
|
6821
|
-
const dependencyGraph = await buildComponentDependencyGraph(componentDir, prefix);
|
|
6822
|
-
const allComponents = /* @__PURE__ */ new Set();
|
|
6823
|
-
for (const component of detectedComponents) {
|
|
6824
|
-
const resolved = resolveComponentDependencies(component, dependencyGraph);
|
|
6825
|
-
for (const resolvedComponent of resolved) {
|
|
6826
|
-
allComponents.add(resolvedComponent);
|
|
6827
|
-
}
|
|
6828
|
-
}
|
|
6829
|
-
return allComponents;
|
|
6830
|
-
}
|
|
6831
7281
|
function getTemplates(options, uiConfig, nuxt, resolve) {
|
|
6832
7282
|
const templates = [];
|
|
6833
7283
|
let hasProse = false;
|
|
@@ -6840,13 +7290,9 @@ function getTemplates(options, uiConfig, nuxt, resolve) {
|
|
|
6840
7290
|
write: true,
|
|
6841
7291
|
getContents: async () => {
|
|
6842
7292
|
const template = theme2[component];
|
|
6843
|
-
|
|
6844
|
-
|
|
6845
|
-
|
|
6846
|
-
}
|
|
6847
|
-
if (result?.defaultVariants?.size && options.theme?.defaultVariants?.size) {
|
|
6848
|
-
result.defaultVariants.size = options.theme.defaultVariants.size;
|
|
6849
|
-
}
|
|
7293
|
+
let result = typeof template === "function" ? template(options) : template;
|
|
7294
|
+
result = applyDefaultVariants(result, options.theme?.defaultVariants);
|
|
7295
|
+
result = applyPrefixToObject(result, options.theme?.prefix);
|
|
6850
7296
|
const variants = Object.entries(result.variants || {}).filter(([_, values]) => {
|
|
6851
7297
|
const keys = Object.keys(values);
|
|
6852
7298
|
return keys.some((key) => key !== "true" && key !== "false");
|
|
@@ -6873,11 +7319,43 @@ function getTemplates(options, uiConfig, nuxt, resolve) {
|
|
|
6873
7319
|
});
|
|
6874
7320
|
}
|
|
6875
7321
|
}
|
|
6876
|
-
|
|
6877
|
-
|
|
6878
|
-
|
|
7322
|
+
if (!!nuxt && (hasNuxtModule("@nuxtjs/mdc") || options.mdc || (hasNuxtModule("@nuxt/content") || options.content))) {
|
|
7323
|
+
hasProse = true;
|
|
7324
|
+
const path = "prose";
|
|
7325
|
+
writeThemeTemplate(themeProse, path);
|
|
7326
|
+
templates.push({
|
|
7327
|
+
filename: `ui/${path}/index.ts`,
|
|
7328
|
+
write: true,
|
|
7329
|
+
getContents: () => Object.keys(themeProse).map((component) => `export { default as ${component} } from './${kebabCase(component)}'`).join("\n")
|
|
7330
|
+
});
|
|
7331
|
+
}
|
|
7332
|
+
if (!!nuxt && (hasNuxtModule("@nuxt/content") || options.content)) {
|
|
7333
|
+
hasContent = true;
|
|
7334
|
+
writeThemeTemplate(themeContent, "content");
|
|
7335
|
+
}
|
|
7336
|
+
writeThemeTemplate(theme);
|
|
7337
|
+
async function generateSources() {
|
|
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) {
|
|
6879
7357
|
const detectedComponents = await detectUsedComponents(
|
|
6880
|
-
|
|
7358
|
+
layers,
|
|
6881
7359
|
options.prefix,
|
|
6882
7360
|
resolve("./runtime/components"),
|
|
6883
7361
|
Array.isArray(options.experimental.componentDetection) ? options.experimental.componentDetection : void 0
|
|
@@ -6894,51 +7372,44 @@ function getTemplates(options, uiConfig, nuxt, resolve) {
|
|
|
6894
7372
|
logger.success(`Nuxt UI detected ${detectedComponents.size} components in use (including dependencies)`);
|
|
6895
7373
|
}
|
|
6896
7374
|
previousDetectedComponents = detectedComponents;
|
|
6897
|
-
const sourcesList = [];
|
|
6898
7375
|
if (hasProse) {
|
|
6899
|
-
|
|
7376
|
+
sources.push('@source "./ui/prose";');
|
|
6900
7377
|
}
|
|
6901
7378
|
for (const component of detectedComponents) {
|
|
6902
7379
|
const kebabComponent = kebabCase(component);
|
|
6903
7380
|
const camelComponent = camelCase(component);
|
|
6904
7381
|
if (hasContent && themeContent[camelComponent]) {
|
|
6905
|
-
|
|
7382
|
+
sources.push(`@source "./ui/content/${kebabComponent}.ts";`);
|
|
6906
7383
|
} else if (theme[camelComponent]) {
|
|
6907
|
-
|
|
7384
|
+
sources.push(`@source "./ui/${kebabComponent}.ts";`);
|
|
6908
7385
|
}
|
|
6909
7386
|
}
|
|
6910
|
-
sources = sourcesList.join("\n");
|
|
6911
7387
|
} else {
|
|
6912
7388
|
if (!previousDetectedComponents || previousDetectedComponents.size > 0) {
|
|
6913
7389
|
logger.info("Nuxt UI detected no components in use, including all components");
|
|
6914
7390
|
}
|
|
6915
7391
|
previousDetectedComponents = /* @__PURE__ */ new Set();
|
|
7392
|
+
sources.push('@source "./ui";');
|
|
6916
7393
|
}
|
|
7394
|
+
} else {
|
|
7395
|
+
sources.push('@source "./ui";');
|
|
6917
7396
|
}
|
|
6918
|
-
return sources
|
|
7397
|
+
return sources.join("\n");
|
|
6919
7398
|
}
|
|
6920
|
-
if (!!nuxt && (hasNuxtModule("@nuxtjs/mdc") || options.mdc || (hasNuxtModule("@nuxt/content") || options.content))) {
|
|
6921
|
-
hasProse = true;
|
|
6922
|
-
const path = "prose";
|
|
6923
|
-
writeThemeTemplate(themeProse, path);
|
|
6924
|
-
templates.push({
|
|
6925
|
-
filename: `ui/${path}/index.ts`,
|
|
6926
|
-
write: true,
|
|
6927
|
-
getContents: () => Object.keys(themeProse).map((component) => `export { default as ${component} } from './${kebabCase(component)}'`).join("\n")
|
|
6928
|
-
});
|
|
6929
|
-
}
|
|
6930
|
-
if (!!nuxt && (hasNuxtModule("@nuxt/content") || options.content)) {
|
|
6931
|
-
hasContent = true;
|
|
6932
|
-
writeThemeTemplate(themeContent, "content");
|
|
6933
|
-
}
|
|
6934
|
-
writeThemeTemplate(theme);
|
|
6935
7399
|
templates.push({
|
|
6936
7400
|
filename: "ui.css",
|
|
6937
7401
|
write: true,
|
|
6938
7402
|
getContents: async () => {
|
|
6939
|
-
const sources = await
|
|
7403
|
+
const sources = await generateSources();
|
|
7404
|
+
const prefix = options.theme?.prefix ? `${options.theme.prefix}:` : "";
|
|
6940
7405
|
return `${sources}
|
|
6941
7406
|
|
|
7407
|
+
@layer base {
|
|
7408
|
+
body {
|
|
7409
|
+
@apply ${prefix}antialiased ${prefix}text-default ${prefix}bg-default ${prefix}scheme-light ${prefix}dark:scheme-dark;
|
|
7410
|
+
}
|
|
7411
|
+
}
|
|
7412
|
+
|
|
6942
7413
|
@theme static {
|
|
6943
7414
|
--color-old-neutral-50: ${colors.neutral[50]};
|
|
6944
7415
|
--color-old-neutral-100: ${colors.neutral[100]};
|
|
@@ -7008,17 +7479,11 @@ function getTemplates(options, uiConfig, nuxt, resolve) {
|
|
|
7008
7479
|
templates.push({
|
|
7009
7480
|
filename: "ui/index.ts",
|
|
7010
7481
|
write: true,
|
|
7011
|
-
getContents: () =>
|
|
7012
|
-
|
|
7013
|
-
|
|
7014
|
-
|
|
7015
|
-
|
|
7016
|
-
}
|
|
7017
|
-
if (hasProse) contents += `
|
|
7018
|
-
export * as prose from './prose'
|
|
7019
|
-
`;
|
|
7020
|
-
return contents;
|
|
7021
|
-
}
|
|
7482
|
+
getContents: () => [
|
|
7483
|
+
...Object.keys(theme).map((component) => `export { default as ${component} } from './${kebabCase(component)}'`),
|
|
7484
|
+
...hasContent ? Object.keys(themeContent).map((component) => `export { default as ${component} } from './content/${kebabCase(component)}'`) : [],
|
|
7485
|
+
...hasProse ? [`export * as prose from './prose'`] : []
|
|
7486
|
+
].join("\n")
|
|
7022
7487
|
});
|
|
7023
7488
|
templates.push({
|
|
7024
7489
|
filename: "types/ui.d.ts",
|
|
@@ -7041,6 +7506,7 @@ type AppConfigUI = {
|
|
|
7041
7506
|
neutral?: NeutralColor | (string & {})
|
|
7042
7507
|
}
|
|
7043
7508
|
icons?: Partial<IconsConfig>
|
|
7509
|
+
prefix?: string
|
|
7044
7510
|
tv?: typeof defaultConfig
|
|
7045
7511
|
} & TVConfig<typeof ui>
|
|
7046
7512
|
|
|
@@ -7089,4 +7555,4 @@ function addTemplates(options, nuxt, resolve) {
|
|
|
7089
7555
|
}
|
|
7090
7556
|
}
|
|
7091
7557
|
|
|
7092
|
-
export {
|
|
7558
|
+
export { getDefaultConfig as a, addTemplates as b, defaultOptions as d, getTemplates as g, resolveColors as r };
|