@bxshefby/b24ui-nuxt 0.0.0-stage → 2.16.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.nuxt/b24ui.static.css +3 -0
- package/LICENSE +23 -0
- package/README.md +165 -2
- package/dist/module.d.mts +109 -0
- package/dist/module.json +13 -0
- package/dist/module.mjs +227 -0
- package/dist/runtime/air-design-tokens/001_b24_global.css +1 -0
- package/dist/runtime/air-design-tokens/003_b24_context_light.css +1 -0
- package/dist/runtime/air-design-tokens/004_b24_context_dark.css +1 -0
- package/dist/runtime/air-design-tokens/005_b24_context_edge-light.css +1 -0
- package/dist/runtime/air-design-tokens/006_b24_context_edge-dark.css +1 -0
- package/dist/runtime/air-design-tokens/007_b24_global.css +1 -0
- package/dist/runtime/air-design-tokens/008_ui_global.css +1 -0
- package/dist/runtime/air-design-tokens/009_b24_tools.css +1 -0
- package/dist/runtime/air-design-tokens/013_b24_mobile_light.css +1 -0
- package/dist/runtime/air-design-tokens/014_b24_mobile_dark.css +1 -0
- package/dist/runtime/air-design-tokens/015_b24_mobile_edge-light.css +1 -0
- package/dist/runtime/air-design-tokens/016_b24_mobile_edge-dark.css +1 -0
- package/dist/runtime/air-design-tokens/023_b24_desktop_light.css +1 -0
- package/dist/runtime/air-design-tokens/024_b24_desktop_dark.css +1 -0
- package/dist/runtime/air-design-tokens/025_b24_desktop_edge-light.css +1 -0
- package/dist/runtime/air-design-tokens/026_b24_desktop_edge-dark.css +1 -0
- package/dist/runtime/air-design-tokens/components/badge-counter.css +1 -0
- package/dist/runtime/air-design-tokens/components/button.css +1 -0
- package/dist/runtime/air-design-tokens/components/navigation-menu.css +1 -0
- package/dist/runtime/air-design-tokens/components/popup.css +1 -0
- package/dist/runtime/air-design-tokens/components/scrollbar.css +1 -0
- package/dist/runtime/air-design-tokens/design-tokens/app.json +23812 -0
- package/dist/runtime/air-design-tokens/design-tokens/mobileapp.json +7476 -0
- package/dist/runtime/air-design-tokens/index.css +1 -0
- package/dist/runtime/air-design-tokens/tw-style/animation.css +1 -0
- package/dist/runtime/air-design-tokens/tw-style/colors.css +1 -0
- package/dist/runtime/air-design-tokens/tw-style/font-family.css +1 -0
- package/dist/runtime/air-design-tokens/tw-style/font-leading.css +1 -0
- package/dist/runtime/air-design-tokens/tw-style/font-size.css +1 -0
- package/dist/runtime/air-design-tokens/tw-style/font-weight.css +1 -0
- package/dist/runtime/air-design-tokens/tw-style/index.css +1 -0
- package/dist/runtime/air-design-tokens/tw-style/letter-spacing.css +1 -0
- package/dist/runtime/air-design-tokens/tw-style/radius.css +1 -0
- package/dist/runtime/air-design-tokens/tw-style/shadow.css +1 -0
- package/dist/runtime/air-design-tokens/tw-style/sizes.css +1 -0
- package/dist/runtime/air-design-tokens/tw-style/spacing.css +1 -0
- package/dist/runtime/components/Accordion.d.vue.ts +101 -0
- package/dist/runtime/components/Accordion.vue +106 -0
- package/dist/runtime/components/Accordion.vue.d.ts +101 -0
- package/dist/runtime/components/Advice.d.vue.ts +37 -0
- package/dist/runtime/components/Advice.vue +84 -0
- package/dist/runtime/components/Advice.vue.d.ts +37 -0
- package/dist/runtime/components/Alert.d.vue.ts +94 -0
- package/dist/runtime/components/Alert.vue +98 -0
- package/dist/runtime/components/Alert.vue.d.ts +94 -0
- package/dist/runtime/components/App.d.vue.ts +31 -0
- package/dist/runtime/components/App.vue +49 -0
- package/dist/runtime/components/App.vue.d.ts +31 -0
- package/dist/runtime/components/Avatar.d.vue.ts +51 -0
- package/dist/runtime/components/Avatar.vue +89 -0
- package/dist/runtime/components/Avatar.vue.d.ts +51 -0
- package/dist/runtime/components/AvatarGroup.d.vue.ts +37 -0
- package/dist/runtime/components/AvatarGroup.vue +70 -0
- package/dist/runtime/components/AvatarGroup.vue.d.ts +37 -0
- package/dist/runtime/components/Badge.d.vue.ts +66 -0
- package/dist/runtime/components/Badge.vue +100 -0
- package/dist/runtime/components/Badge.vue.d.ts +66 -0
- package/dist/runtime/components/Banner.d.vue.ts +77 -0
- package/dist/runtime/components/Banner.vue +154 -0
- package/dist/runtime/components/Banner.vue.d.ts +77 -0
- package/dist/runtime/components/Breadcrumb.d.vue.ts +94 -0
- package/dist/runtime/components/Breadcrumb.vue +117 -0
- package/dist/runtime/components/Breadcrumb.vue.d.ts +94 -0
- package/dist/runtime/components/Button.d.vue.ts +105 -0
- package/dist/runtime/components/Button.vue +213 -0
- package/dist/runtime/components/Button.vue.d.ts +105 -0
- package/dist/runtime/components/Calendar.d.vue.ts +160 -0
- package/dist/runtime/components/Calendar.vue +324 -0
- package/dist/runtime/components/Calendar.vue.d.ts +160 -0
- package/dist/runtime/components/Card.d.vue.ts +42 -0
- package/dist/runtime/components/Card.vue +57 -0
- package/dist/runtime/components/Card.vue.d.ts +42 -0
- package/dist/runtime/components/Chart.d.vue.ts +160 -0
- package/dist/runtime/components/Chart.vue +339 -0
- package/dist/runtime/components/Chart.vue.d.ts +160 -0
- package/dist/runtime/components/ChatAttachment.d.vue.ts +97 -0
- package/dist/runtime/components/ChatAttachment.vue +112 -0
- package/dist/runtime/components/ChatAttachment.vue.d.ts +97 -0
- package/dist/runtime/components/ChatMessage.d.vue.ts +98 -0
- package/dist/runtime/components/ChatMessage.vue +111 -0
- package/dist/runtime/components/ChatMessage.vue.d.ts +98 -0
- package/dist/runtime/components/ChatMessages.d.vue.ts +107 -0
- package/dist/runtime/components/ChatMessages.vue +304 -0
- package/dist/runtime/components/ChatMessages.vue.d.ts +107 -0
- package/dist/runtime/components/ChatPalette.d.vue.ts +26 -0
- package/dist/runtime/components/ChatPalette.vue +34 -0
- package/dist/runtime/components/ChatPalette.vue.d.ts +26 -0
- package/dist/runtime/components/ChatPrompt.d.vue.ts +152 -0
- package/dist/runtime/components/ChatPrompt.vue +325 -0
- package/dist/runtime/components/ChatPrompt.vue.d.ts +152 -0
- package/dist/runtime/components/ChatPromptSubmit.d.vue.ts +81 -0
- package/dist/runtime/components/ChatPromptSubmit.vue +115 -0
- package/dist/runtime/components/ChatPromptSubmit.vue.d.ts +81 -0
- package/dist/runtime/components/ChatReasoning.d.vue.ts +84 -0
- package/dist/runtime/components/ChatReasoning.vue +176 -0
- package/dist/runtime/components/ChatReasoning.vue.d.ts +84 -0
- package/dist/runtime/components/ChatShimmer.d.vue.ts +34 -0
- package/dist/runtime/components/ChatShimmer.vue +38 -0
- package/dist/runtime/components/ChatShimmer.vue.d.ts +34 -0
- package/dist/runtime/components/ChatTool.d.vue.ts +117 -0
- package/dist/runtime/components/ChatTool.vue +145 -0
- package/dist/runtime/components/ChatTool.vue.d.ts +117 -0
- package/dist/runtime/components/Checkbox.d.vue.ts +76 -0
- package/dist/runtime/components/Checkbox.vue +119 -0
- package/dist/runtime/components/Checkbox.vue.d.ts +76 -0
- package/dist/runtime/components/CheckboxGroup.d.vue.ts +102 -0
- package/dist/runtime/components/CheckboxGroup.vue +136 -0
- package/dist/runtime/components/CheckboxGroup.vue.d.ts +102 -0
- package/dist/runtime/components/Chip.d.vue.ts +85 -0
- package/dist/runtime/components/Chip.vue +74 -0
- package/dist/runtime/components/Chip.vue.d.ts +85 -0
- package/dist/runtime/components/Collapsible.d.vue.ts +37 -0
- package/dist/runtime/components/Collapsible.vue +39 -0
- package/dist/runtime/components/Collapsible.vue.d.ts +37 -0
- package/dist/runtime/components/ColorPicker.d.vue.ts +51 -0
- package/dist/runtime/components/ColorPicker.vue +221 -0
- package/dist/runtime/components/ColorPicker.vue.d.ts +51 -0
- package/dist/runtime/components/CommandPalette.d.vue.ts +297 -0
- package/dist/runtime/components/CommandPalette.vue +512 -0
- package/dist/runtime/components/CommandPalette.vue.d.ts +297 -0
- package/dist/runtime/components/Container.d.vue.ts +23 -0
- package/dist/runtime/components/Container.vue +26 -0
- package/dist/runtime/components/Container.vue.d.ts +23 -0
- package/dist/runtime/components/ContextMenu.d.vue.ts +141 -0
- package/dist/runtime/components/ContextMenu.vue +65 -0
- package/dist/runtime/components/ContextMenu.vue.d.ts +141 -0
- package/dist/runtime/components/ContextMenuContent.d.vue.ts +55 -0
- package/dist/runtime/components/ContextMenuContent.vue +259 -0
- package/dist/runtime/components/ContextMenuContent.vue.d.ts +55 -0
- package/dist/runtime/components/Countdown.d.vue.ts +113 -0
- package/dist/runtime/components/Countdown.vue +330 -0
- package/dist/runtime/components/Countdown.vue.d.ts +113 -0
- package/dist/runtime/components/DashboardGroup.d.vue.ts +29 -0
- package/dist/runtime/components/DashboardGroup.vue +53 -0
- package/dist/runtime/components/DashboardGroup.vue.d.ts +29 -0
- package/dist/runtime/components/DashboardNavbar.d.vue.ts +65 -0
- package/dist/runtime/components/DashboardNavbar.vue +81 -0
- package/dist/runtime/components/DashboardNavbar.vue.d.ts +65 -0
- package/dist/runtime/components/DashboardPanel.d.vue.ts +32 -0
- package/dist/runtime/components/DashboardPanel.vue +66 -0
- package/dist/runtime/components/DashboardPanel.vue.d.ts +32 -0
- package/dist/runtime/components/DashboardResizeHandle.d.vue.ts +23 -0
- package/dist/runtime/components/DashboardResizeHandle.vue +30 -0
- package/dist/runtime/components/DashboardResizeHandle.vue.d.ts +23 -0
- package/dist/runtime/components/DashboardSearch.d.vue.ts +99 -0
- package/dist/runtime/components/DashboardSearch.vue +174 -0
- package/dist/runtime/components/DashboardSearch.vue.d.ts +99 -0
- package/dist/runtime/components/DashboardSearchButton.d.vue.ts +58 -0
- package/dist/runtime/components/DashboardSearchButton.vue +110 -0
- package/dist/runtime/components/DashboardSearchButton.vue.d.ts +58 -0
- package/dist/runtime/components/DashboardSidebar.d.vue.ts +94 -0
- package/dist/runtime/components/DashboardSidebar.vue +182 -0
- package/dist/runtime/components/DashboardSidebar.vue.d.ts +94 -0
- package/dist/runtime/components/DashboardSidebarCollapse.d.vue.ts +22 -0
- package/dist/runtime/components/DashboardSidebarCollapse.vue +64 -0
- package/dist/runtime/components/DashboardSidebarCollapse.vue.d.ts +22 -0
- package/dist/runtime/components/DashboardSidebarToggle.d.vue.ts +22 -0
- package/dist/runtime/components/DashboardSidebarToggle.vue +65 -0
- package/dist/runtime/components/DashboardSidebarToggle.vue.d.ts +22 -0
- package/dist/runtime/components/DashboardToolbar.d.vue.ts +27 -0
- package/dist/runtime/components/DashboardToolbar.vue +34 -0
- package/dist/runtime/components/DashboardToolbar.vue.d.ts +27 -0
- package/dist/runtime/components/DateTimePicker.d.vue.ts +177 -0
- package/dist/runtime/components/DateTimePicker.vue +357 -0
- package/dist/runtime/components/DateTimePicker.vue.d.ts +177 -0
- package/dist/runtime/components/DescriptionList.d.vue.ts +100 -0
- package/dist/runtime/components/DescriptionList.vue +201 -0
- package/dist/runtime/components/DescriptionList.vue.d.ts +100 -0
- package/dist/runtime/components/Drawer.d.vue.ts +124 -0
- package/dist/runtime/components/Drawer.vue +178 -0
- package/dist/runtime/components/Drawer.vue.d.ts +124 -0
- package/dist/runtime/components/DropdownMenu.d.vue.ts +175 -0
- package/dist/runtime/components/DropdownMenu.vue +85 -0
- package/dist/runtime/components/DropdownMenu.vue.d.ts +175 -0
- package/dist/runtime/components/DropdownMenuContent.d.vue.ts +73 -0
- package/dist/runtime/components/DropdownMenuContent.vue +324 -0
- package/dist/runtime/components/DropdownMenuContent.vue.d.ts +73 -0
- package/dist/runtime/components/Editor.d.vue.ts +104 -0
- package/dist/runtime/components/Editor.vue +238 -0
- package/dist/runtime/components/Editor.vue.d.ts +104 -0
- package/dist/runtime/components/EditorDragHandle.d.vue.ts +78 -0
- package/dist/runtime/components/EditorDragHandle.vue +137 -0
- package/dist/runtime/components/EditorDragHandle.vue.d.ts +78 -0
- package/dist/runtime/components/EditorEmojiMenu.d.vue.ts +41 -0
- package/dist/runtime/components/EditorEmojiMenu.vue +78 -0
- package/dist/runtime/components/EditorEmojiMenu.vue.d.ts +41 -0
- package/dist/runtime/components/EditorMentionMenu.d.vue.ts +46 -0
- package/dist/runtime/components/EditorMentionMenu.vue +89 -0
- package/dist/runtime/components/EditorMentionMenu.vue.d.ts +46 -0
- package/dist/runtime/components/EditorSuggestionMenu.d.vue.ts +58 -0
- package/dist/runtime/components/EditorSuggestionMenu.vue +89 -0
- package/dist/runtime/components/EditorSuggestionMenu.vue.d.ts +58 -0
- package/dist/runtime/components/EditorToolbar.d.vue.ts +86 -0
- package/dist/runtime/components/EditorToolbar.vue +252 -0
- package/dist/runtime/components/EditorToolbar.vue.d.ts +86 -0
- package/dist/runtime/components/Empty.d.vue.ts +73 -0
- package/dist/runtime/components/Empty.vue +83 -0
- package/dist/runtime/components/Empty.vue.d.ts +73 -0
- package/dist/runtime/components/Error.d.vue.ts +70 -0
- package/dist/runtime/components/Error.vue +80 -0
- package/dist/runtime/components/Error.vue.d.ts +70 -0
- package/dist/runtime/components/FieldGroup.d.vue.ts +44 -0
- package/dist/runtime/components/FieldGroup.vue +40 -0
- package/dist/runtime/components/FieldGroup.vue.d.ts +44 -0
- package/dist/runtime/components/FileUpload.d.vue.ts +208 -0
- package/dist/runtime/components/FileUpload.vue +296 -0
- package/dist/runtime/components/FileUpload.vue.d.ts +208 -0
- package/dist/runtime/components/Footer.d.vue.ts +31 -0
- package/dist/runtime/components/Footer.vue +47 -0
- package/dist/runtime/components/Footer.vue.d.ts +31 -0
- package/dist/runtime/components/FooterColumns.d.vue.ts +74 -0
- package/dist/runtime/components/FooterColumns.vue +85 -0
- package/dist/runtime/components/FooterColumns.vue.d.ts +74 -0
- package/dist/runtime/components/Form.d.vue.ts +126 -0
- package/dist/runtime/components/Form.vue +330 -0
- package/dist/runtime/components/Form.vue.d.ts +126 -0
- package/dist/runtime/components/FormField.d.vue.ts +74 -0
- package/dist/runtime/components/FormField.vue +117 -0
- package/dist/runtime/components/FormField.vue.d.ts +74 -0
- package/dist/runtime/components/Header.d.vue.ts +86 -0
- package/dist/runtime/components/Header.vue +158 -0
- package/dist/runtime/components/Header.vue.d.ts +86 -0
- package/dist/runtime/components/Input.d.vue.ts +165 -0
- package/dist/runtime/components/Input.vue +194 -0
- package/dist/runtime/components/Input.vue.d.ts +165 -0
- package/dist/runtime/components/InputDate.d.vue.ts +120 -0
- package/dist/runtime/components/InputDate.vue +205 -0
- package/dist/runtime/components/InputDate.vue.d.ts +120 -0
- package/dist/runtime/components/InputMenu.d.vue.ts +419 -0
- package/dist/runtime/components/InputMenu.vue +629 -0
- package/dist/runtime/components/InputMenu.vue.d.ts +419 -0
- package/dist/runtime/components/InputNumber.d.vue.ts +122 -0
- package/dist/runtime/components/InputNumber.vue +189 -0
- package/dist/runtime/components/InputNumber.vue.d.ts +122 -0
- package/dist/runtime/components/InputRating.d.vue.ts +79 -0
- package/dist/runtime/components/InputRating.vue +113 -0
- package/dist/runtime/components/InputRating.vue.d.ts +79 -0
- package/dist/runtime/components/InputTags.d.vue.ts +115 -0
- package/dist/runtime/components/InputTags.vue +208 -0
- package/dist/runtime/components/InputTags.vue.d.ts +115 -0
- package/dist/runtime/components/InputTime.d.vue.ts +125 -0
- package/dist/runtime/components/InputTime.vue +205 -0
- package/dist/runtime/components/InputTime.vue.d.ts +125 -0
- package/dist/runtime/components/Kbd.d.vue.ts +41 -0
- package/dist/runtime/components/Kbd.vue +54 -0
- package/dist/runtime/components/Kbd.vue.d.ts +41 -0
- package/dist/runtime/components/Link.d.vue.ts +116 -0
- package/dist/runtime/components/Link.vue +281 -0
- package/dist/runtime/components/Link.vue.d.ts +116 -0
- package/dist/runtime/components/LinkBase.d.vue.ts +26 -0
- package/dist/runtime/components/LinkBase.vue +60 -0
- package/dist/runtime/components/LinkBase.vue.d.ts +26 -0
- package/dist/runtime/components/Listbox.d.vue.ts +235 -0
- package/dist/runtime/components/Listbox.vue +270 -0
- package/dist/runtime/components/Listbox.vue.d.ts +235 -0
- package/dist/runtime/components/Main.d.vue.ts +25 -0
- package/dist/runtime/components/Main.vue +26 -0
- package/dist/runtime/components/Main.vue.d.ts +25 -0
- package/dist/runtime/components/Modal.d.vue.ts +131 -0
- package/dist/runtime/components/Modal.vue +189 -0
- package/dist/runtime/components/Modal.vue.d.ts +131 -0
- package/dist/runtime/components/ModalDialogClose.d.vue.ts +12 -0
- package/dist/runtime/components/ModalDialogClose.vue +14 -0
- package/dist/runtime/components/ModalDialogClose.vue.d.ts +12 -0
- package/dist/runtime/components/Navbar.d.vue.ts +34 -0
- package/dist/runtime/components/Navbar.vue +27 -0
- package/dist/runtime/components/Navbar.vue.d.ts +34 -0
- package/dist/runtime/components/NavbarDivider.d.vue.ts +34 -0
- package/dist/runtime/components/NavbarDivider.vue +26 -0
- package/dist/runtime/components/NavbarDivider.vue.d.ts +34 -0
- package/dist/runtime/components/NavbarSection.d.vue.ts +34 -0
- package/dist/runtime/components/NavbarSection.vue +31 -0
- package/dist/runtime/components/NavbarSection.vue.d.ts +34 -0
- package/dist/runtime/components/NavbarSpacer.d.vue.ts +34 -0
- package/dist/runtime/components/NavbarSpacer.vue +26 -0
- package/dist/runtime/components/NavbarSpacer.vue.d.ts +34 -0
- package/dist/runtime/components/NavigationMenu.d.vue.ts +255 -0
- package/dist/runtime/components/NavigationMenu.vue +560 -0
- package/dist/runtime/components/NavigationMenu.vue.d.ts +255 -0
- package/dist/runtime/components/OverlayProvider.d.vue.ts +3 -0
- package/dist/runtime/components/OverlayProvider.vue +25 -0
- package/dist/runtime/components/OverlayProvider.vue.d.ts +3 -0
- package/dist/runtime/components/Page.d.vue.ts +27 -0
- package/dist/runtime/components/Page.vue +45 -0
- package/dist/runtime/components/Page.vue.d.ts +27 -0
- package/dist/runtime/components/PageAside.d.vue.ts +29 -0
- package/dist/runtime/components/PageAside.vue +38 -0
- package/dist/runtime/components/PageAside.vue.d.ts +29 -0
- package/dist/runtime/components/PageBody.d.vue.ts +23 -0
- package/dist/runtime/components/PageBody.vue +26 -0
- package/dist/runtime/components/PageBody.vue.d.ts +23 -0
- package/dist/runtime/components/PageCard.d.vue.ts +83 -0
- package/dist/runtime/components/PageCard.vue +122 -0
- package/dist/runtime/components/PageCard.vue.d.ts +83 -0
- package/dist/runtime/components/PageCardGroup.d.vue.ts +163 -0
- package/dist/runtime/components/PageCardGroup.vue +230 -0
- package/dist/runtime/components/PageCardGroup.vue.d.ts +163 -0
- package/dist/runtime/components/PageColumns.d.vue.ts +25 -0
- package/dist/runtime/components/PageColumns.vue +33 -0
- package/dist/runtime/components/PageColumns.vue.d.ts +25 -0
- package/dist/runtime/components/PageFeature.d.vue.ts +52 -0
- package/dist/runtime/components/PageFeature.vue +89 -0
- package/dist/runtime/components/PageFeature.vue.d.ts +52 -0
- package/dist/runtime/components/PageGrid.d.vue.ts +23 -0
- package/dist/runtime/components/PageGrid.vue +26 -0
- package/dist/runtime/components/PageGrid.vue.d.ts +23 -0
- package/dist/runtime/components/PageHeader.d.vue.ts +41 -0
- package/dist/runtime/components/PageHeader.vue +69 -0
- package/dist/runtime/components/PageHeader.vue.d.ts +41 -0
- package/dist/runtime/components/PageLinks.d.vue.ts +63 -0
- package/dist/runtime/components/PageLinks.vue +72 -0
- package/dist/runtime/components/PageLinks.vue.d.ts +63 -0
- package/dist/runtime/components/PageList.d.vue.ts +26 -0
- package/dist/runtime/components/PageList.vue +27 -0
- package/dist/runtime/components/PageList.vue.d.ts +26 -0
- package/dist/runtime/components/PageSection.d.vue.ts +76 -0
- package/dist/runtime/components/PageSection.vue +114 -0
- package/dist/runtime/components/PageSection.vue.d.ts +76 -0
- package/dist/runtime/components/Pagination.d.vue.ts +110 -0
- package/dist/runtime/components/Pagination.vue +104 -0
- package/dist/runtime/components/Pagination.vue.d.ts +110 -0
- package/dist/runtime/components/PinInput.d.vue.ts +92 -0
- package/dist/runtime/components/PinInput.vue +148 -0
- package/dist/runtime/components/PinInput.vue.d.ts +92 -0
- package/dist/runtime/components/Popover.d.vue.ts +81 -0
- package/dist/runtime/components/Popover.vue +87 -0
- package/dist/runtime/components/Popover.vue.d.ts +81 -0
- package/dist/runtime/components/Progress.d.vue.ts +74 -0
- package/dist/runtime/components/Progress.vue +132 -0
- package/dist/runtime/components/Progress.vue.d.ts +74 -0
- package/dist/runtime/components/ProgressGroup.d.vue.ts +89 -0
- package/dist/runtime/components/ProgressGroup.vue +97 -0
- package/dist/runtime/components/ProgressGroup.vue.d.ts +89 -0
- package/dist/runtime/components/RadioGroup.d.vue.ts +113 -0
- package/dist/runtime/components/RadioGroup.vue +169 -0
- package/dist/runtime/components/RadioGroup.vue.d.ts +113 -0
- package/dist/runtime/components/Range.d.vue.ts +62 -0
- package/dist/runtime/components/Range.vue +116 -0
- package/dist/runtime/components/Range.vue.d.ts +62 -0
- package/dist/runtime/components/ScrollArea.d.vue.ts +110 -0
- package/dist/runtime/components/ScrollArea.vue +227 -0
- package/dist/runtime/components/ScrollArea.vue.d.ts +110 -0
- package/dist/runtime/components/Select.d.vue.ts +239 -0
- package/dist/runtime/components/Select.vue +371 -0
- package/dist/runtime/components/Select.vue.d.ts +239 -0
- package/dist/runtime/components/SelectMenu.d.vue.ts +368 -0
- package/dist/runtime/components/SelectMenu.vue +652 -0
- package/dist/runtime/components/SelectMenu.vue.d.ts +368 -0
- package/dist/runtime/components/Separator.d.vue.ts +70 -0
- package/dist/runtime/components/Separator.vue +68 -0
- package/dist/runtime/components/Separator.vue.d.ts +70 -0
- package/dist/runtime/components/Sidebar.d.vue.ts +146 -0
- package/dist/runtime/components/Sidebar.vue +248 -0
- package/dist/runtime/components/Sidebar.vue.d.ts +146 -0
- package/dist/runtime/components/SidebarBody.d.vue.ts +37 -0
- package/dist/runtime/components/SidebarBody.vue +29 -0
- package/dist/runtime/components/SidebarBody.vue.d.ts +37 -0
- package/dist/runtime/components/SidebarFooter.d.vue.ts +32 -0
- package/dist/runtime/components/SidebarFooter.vue +26 -0
- package/dist/runtime/components/SidebarFooter.vue.d.ts +32 -0
- package/dist/runtime/components/SidebarHeader.d.vue.ts +32 -0
- package/dist/runtime/components/SidebarHeader.vue +26 -0
- package/dist/runtime/components/SidebarHeader.vue.d.ts +32 -0
- package/dist/runtime/components/SidebarHeading.d.vue.ts +32 -0
- package/dist/runtime/components/SidebarHeading.vue +26 -0
- package/dist/runtime/components/SidebarHeading.vue.d.ts +32 -0
- package/dist/runtime/components/SidebarLayout.d.vue.ts +97 -0
- package/dist/runtime/components/SidebarLayout.vue +203 -0
- package/dist/runtime/components/SidebarLayout.vue.d.ts +97 -0
- package/dist/runtime/components/SidebarSection.d.vue.ts +32 -0
- package/dist/runtime/components/SidebarSection.vue +31 -0
- package/dist/runtime/components/SidebarSection.vue.d.ts +32 -0
- package/dist/runtime/components/SidebarSpacer.d.vue.ts +32 -0
- package/dist/runtime/components/SidebarSpacer.vue +26 -0
- package/dist/runtime/components/SidebarSpacer.vue.d.ts +32 -0
- package/dist/runtime/components/Skeleton.d.vue.ts +29 -0
- package/dist/runtime/components/Skeleton.vue +38 -0
- package/dist/runtime/components/Skeleton.vue.d.ts +29 -0
- package/dist/runtime/components/Slideover.d.vue.ts +128 -0
- package/dist/runtime/components/Slideover.vue +194 -0
- package/dist/runtime/components/Slideover.vue.d.ts +128 -0
- package/dist/runtime/components/Splitter.d.vue.ts +266 -0
- package/dist/runtime/components/Splitter.vue +98 -0
- package/dist/runtime/components/Splitter.vue.d.ts +266 -0
- package/dist/runtime/components/Stepper.d.vue.ts +104 -0
- package/dist/runtime/components/Stepper.vue +154 -0
- package/dist/runtime/components/Stepper.vue.d.ts +104 -0
- package/dist/runtime/components/Switch.d.vue.ts +82 -0
- package/dist/runtime/components/Switch.vue +115 -0
- package/dist/runtime/components/Switch.vue.d.ts +82 -0
- package/dist/runtime/components/Table.d.vue.ts +231 -0
- package/dist/runtime/components/Table.vue +584 -0
- package/dist/runtime/components/Table.vue.d.ts +231 -0
- package/dist/runtime/components/TableWrapper.d.vue.ts +62 -0
- package/dist/runtime/components/TableWrapper.vue +47 -0
- package/dist/runtime/components/TableWrapper.vue.d.ts +62 -0
- package/dist/runtime/components/Tabs.d.vue.ts +116 -0
- package/dist/runtime/components/Tabs.vue +128 -0
- package/dist/runtime/components/Tabs.vue.d.ts +116 -0
- package/dist/runtime/components/Textarea.d.vue.ts +158 -0
- package/dist/runtime/components/Textarea.vue +217 -0
- package/dist/runtime/components/Textarea.vue.d.ts +158 -0
- package/dist/runtime/components/Theme.d.vue.ts +26 -0
- package/dist/runtime/components/Theme.vue +46 -0
- package/dist/runtime/components/Theme.vue.d.ts +26 -0
- package/dist/runtime/components/Timeline.d.vue.ts +88 -0
- package/dist/runtime/components/Timeline.vue +114 -0
- package/dist/runtime/components/Timeline.vue.d.ts +88 -0
- package/dist/runtime/components/Toast.d.vue.ts +184 -0
- package/dist/runtime/components/Toast.vue +160 -0
- package/dist/runtime/components/Toast.vue.d.ts +184 -0
- package/dist/runtime/components/Toaster.d.vue.ts +57 -0
- package/dist/runtime/components/Toaster.vue +146 -0
- package/dist/runtime/components/Toaster.vue.d.ts +57 -0
- package/dist/runtime/components/Toggle.d.vue.ts +38 -0
- package/dist/runtime/components/Toggle.vue +90 -0
- package/dist/runtime/components/Toggle.vue.d.ts +38 -0
- package/dist/runtime/components/ToggleGroup.d.vue.ts +92 -0
- package/dist/runtime/components/ToggleGroup.vue +117 -0
- package/dist/runtime/components/ToggleGroup.vue.d.ts +92 -0
- package/dist/runtime/components/Tooltip.d.vue.ts +65 -0
- package/dist/runtime/components/Tooltip.vue +93 -0
- package/dist/runtime/components/Tooltip.vue.d.ts +65 -0
- package/dist/runtime/components/User.d.vue.ts +57 -0
- package/dist/runtime/components/User.vue +119 -0
- package/dist/runtime/components/User.vue.d.ts +57 -0
- package/dist/runtime/components/color-mode/ColorModeAvatar.d.vue.ts +8 -0
- package/dist/runtime/components/color-mode/ColorModeAvatar.vue +32 -0
- package/dist/runtime/components/color-mode/ColorModeAvatar.vue.d.ts +8 -0
- package/dist/runtime/components/color-mode/ColorModeButton.d.vue.ts +13 -0
- package/dist/runtime/components/color-mode/ColorModeButton.vue +72 -0
- package/dist/runtime/components/color-mode/ColorModeButton.vue.d.ts +13 -0
- package/dist/runtime/components/color-mode/ColorModeImage.d.vue.ts +8 -0
- package/dist/runtime/components/color-mode/ColorModeImage.vue +27 -0
- package/dist/runtime/components/color-mode/ColorModeImage.vue.d.ts +8 -0
- package/dist/runtime/components/color-mode/ColorModeSelect.d.vue.ts +8 -0
- package/dist/runtime/components/color-mode/ColorModeSelect.vue +100 -0
- package/dist/runtime/components/color-mode/ColorModeSelect.vue.d.ts +8 -0
- package/dist/runtime/components/color-mode/ColorModeSwitch.d.vue.ts +6 -0
- package/dist/runtime/components/color-mode/ColorModeSwitch.vue +72 -0
- package/dist/runtime/components/color-mode/ColorModeSwitch.vue.d.ts +6 -0
- package/dist/runtime/components/content/ContentSearch.d.vue.ts +151 -0
- package/dist/runtime/components/content/ContentSearch.vue +250 -0
- package/dist/runtime/components/content/ContentSearch.vue.d.ts +151 -0
- package/dist/runtime/components/content/ContentSearchButton.d.vue.ts +58 -0
- package/dist/runtime/components/content/ContentSearchButton.vue +107 -0
- package/dist/runtime/components/content/ContentSearchButton.vue.d.ts +58 -0
- package/dist/runtime/components/content/ContentSurround.d.vue.ts +66 -0
- package/dist/runtime/components/content/ContentSurround.vue +83 -0
- package/dist/runtime/components/content/ContentSurround.vue.d.ts +66 -0
- package/dist/runtime/components/content/ContentToc.d.vue.ts +87 -0
- package/dist/runtime/components/content/ContentToc.vue +184 -0
- package/dist/runtime/components/content/ContentToc.vue.d.ts +87 -0
- package/dist/runtime/components/locale/LocaleSelect.d.vue.ts +20 -0
- package/dist/runtime/components/locale/LocaleSelect.vue +131 -0
- package/dist/runtime/components/locale/LocaleSelect.vue.d.ts +20 -0
- package/dist/runtime/components/prose/A.d.vue.ts +22 -0
- package/dist/runtime/components/prose/A.vue +27 -0
- package/dist/runtime/components/prose/A.vue.d.ts +22 -0
- package/dist/runtime/components/prose/Accordion.d.vue.ts +24 -0
- package/dist/runtime/components/prose/Accordion.vue +47 -0
- package/dist/runtime/components/prose/Accordion.vue.d.ts +24 -0
- package/dist/runtime/components/prose/AccordionItem.d.vue.ts +20 -0
- package/dist/runtime/components/prose/AccordionItem.vue +28 -0
- package/dist/runtime/components/prose/AccordionItem.vue.d.ts +20 -0
- package/dist/runtime/components/prose/Badge.d.vue.ts +18 -0
- package/dist/runtime/components/prose/Badge.vue +25 -0
- package/dist/runtime/components/prose/Badge.vue.d.ts +18 -0
- package/dist/runtime/components/prose/Blockquote.d.vue.ts +20 -0
- package/dist/runtime/components/prose/Blockquote.vue +24 -0
- package/dist/runtime/components/prose/Blockquote.vue.d.ts +20 -0
- package/dist/runtime/components/prose/Callout.d.vue.ts +30 -0
- package/dist/runtime/components/prose/Callout.vue +65 -0
- package/dist/runtime/components/prose/Callout.vue.d.ts +30 -0
- package/dist/runtime/components/prose/Card.d.vue.ts +33 -0
- package/dist/runtime/components/prose/Card.vue +97 -0
- package/dist/runtime/components/prose/Card.vue.d.ts +33 -0
- package/dist/runtime/components/prose/CardGroup.d.vue.ts +18 -0
- package/dist/runtime/components/prose/CardGroup.vue +24 -0
- package/dist/runtime/components/prose/CardGroup.vue.d.ts +18 -0
- package/dist/runtime/components/prose/Code.d.vue.ts +24 -0
- package/dist/runtime/components/prose/Code.vue +28 -0
- package/dist/runtime/components/prose/Code.vue.d.ts +24 -0
- package/dist/runtime/components/prose/CodeCollapse.d.vue.ts +49 -0
- package/dist/runtime/components/prose/CodeCollapse.vue +48 -0
- package/dist/runtime/components/prose/CodeCollapse.vue.d.ts +49 -0
- package/dist/runtime/components/prose/CodeGroup.d.vue.ts +39 -0
- package/dist/runtime/components/prose/CodeGroup.vue +81 -0
- package/dist/runtime/components/prose/CodeGroup.vue.d.ts +39 -0
- package/dist/runtime/components/prose/CodeIcon.d.vue.ts +9 -0
- package/dist/runtime/components/prose/CodeIcon.vue +177 -0
- package/dist/runtime/components/prose/CodeIcon.vue.d.ts +9 -0
- package/dist/runtime/components/prose/CodePreview.d.vue.ts +21 -0
- package/dist/runtime/components/prose/CodePreview.vue +30 -0
- package/dist/runtime/components/prose/CodePreview.vue.d.ts +21 -0
- package/dist/runtime/components/prose/Collapsible.d.vue.ts +42 -0
- package/dist/runtime/components/prose/Collapsible.vue +48 -0
- package/dist/runtime/components/prose/Collapsible.vue.d.ts +42 -0
- package/dist/runtime/components/prose/Em.d.vue.ts +20 -0
- package/dist/runtime/components/prose/Em.vue +24 -0
- package/dist/runtime/components/prose/Em.vue.d.ts +20 -0
- package/dist/runtime/components/prose/Field.d.vue.ts +41 -0
- package/dist/runtime/components/prose/Field.vue +51 -0
- package/dist/runtime/components/prose/Field.vue.d.ts +41 -0
- package/dist/runtime/components/prose/FieldGroup.d.vue.ts +23 -0
- package/dist/runtime/components/prose/FieldGroup.vue +27 -0
- package/dist/runtime/components/prose/FieldGroup.vue.d.ts +23 -0
- package/dist/runtime/components/prose/H1.d.vue.ts +32 -0
- package/dist/runtime/components/prose/H1.vue +38 -0
- package/dist/runtime/components/prose/H1.vue.d.ts +32 -0
- package/dist/runtime/components/prose/H2.d.vue.ts +33 -0
- package/dist/runtime/components/prose/H2.vue +47 -0
- package/dist/runtime/components/prose/H2.vue.d.ts +33 -0
- package/dist/runtime/components/prose/H3.d.vue.ts +33 -0
- package/dist/runtime/components/prose/H3.vue +47 -0
- package/dist/runtime/components/prose/H3.vue.d.ts +33 -0
- package/dist/runtime/components/prose/H4.d.vue.ts +33 -0
- package/dist/runtime/components/prose/H4.vue +47 -0
- package/dist/runtime/components/prose/H4.vue.d.ts +33 -0
- package/dist/runtime/components/prose/H5.d.vue.ts +27 -0
- package/dist/runtime/components/prose/H5.vue +32 -0
- package/dist/runtime/components/prose/H5.vue.d.ts +27 -0
- package/dist/runtime/components/prose/H6.d.vue.ts +27 -0
- package/dist/runtime/components/prose/H6.vue +32 -0
- package/dist/runtime/components/prose/H6.vue.d.ts +27 -0
- package/dist/runtime/components/prose/Hr.d.vue.ts +11 -0
- package/dist/runtime/components/prose/Hr.vue +21 -0
- package/dist/runtime/components/prose/Hr.vue.d.ts +11 -0
- package/dist/runtime/components/prose/Img.d.vue.ts +22 -0
- package/dist/runtime/components/prose/Img.vue +117 -0
- package/dist/runtime/components/prose/Img.vue.d.ts +22 -0
- package/dist/runtime/components/prose/Kbd.d.vue.ts +19 -0
- package/dist/runtime/components/prose/Kbd.vue +26 -0
- package/dist/runtime/components/prose/Kbd.vue.d.ts +19 -0
- package/dist/runtime/components/prose/Li.d.vue.ts +20 -0
- package/dist/runtime/components/prose/Li.vue +24 -0
- package/dist/runtime/components/prose/Li.vue.d.ts +20 -0
- package/dist/runtime/components/prose/Ol.d.vue.ts +20 -0
- package/dist/runtime/components/prose/Ol.vue +24 -0
- package/dist/runtime/components/prose/Ol.vue.d.ts +20 -0
- package/dist/runtime/components/prose/P.d.vue.ts +31 -0
- package/dist/runtime/components/prose/P.vue +29 -0
- package/dist/runtime/components/prose/P.vue.d.ts +31 -0
- package/dist/runtime/components/prose/Pre.d.vue.ts +39 -0
- package/dist/runtime/components/prose/Pre.vue +65 -0
- package/dist/runtime/components/prose/Pre.vue.d.ts +39 -0
- package/dist/runtime/components/prose/Prompt.d.vue.ts +46 -0
- package/dist/runtime/components/prose/Prompt.vue +116 -0
- package/dist/runtime/components/prose/Prompt.vue.d.ts +46 -0
- package/dist/runtime/components/prose/Script.d.vue.ts +6 -0
- package/dist/runtime/components/prose/Script.vue +12 -0
- package/dist/runtime/components/prose/Script.vue.d.ts +6 -0
- package/dist/runtime/components/prose/Steps.d.vue.ts +27 -0
- package/dist/runtime/components/prose/Steps.vue +25 -0
- package/dist/runtime/components/prose/Steps.vue.d.ts +27 -0
- package/dist/runtime/components/prose/Strong.d.vue.ts +20 -0
- package/dist/runtime/components/prose/Strong.vue +24 -0
- package/dist/runtime/components/prose/Strong.vue.d.ts +20 -0
- package/dist/runtime/components/prose/Table.d.vue.ts +47 -0
- package/dist/runtime/components/prose/Table.vue +42 -0
- package/dist/runtime/components/prose/Table.vue.d.ts +47 -0
- package/dist/runtime/components/prose/Tabs.d.vue.ts +44 -0
- package/dist/runtime/components/prose/Tabs.vue +82 -0
- package/dist/runtime/components/prose/Tabs.vue.d.ts +44 -0
- package/dist/runtime/components/prose/TabsItem.d.vue.ts +20 -0
- package/dist/runtime/components/prose/TabsItem.vue +28 -0
- package/dist/runtime/components/prose/TabsItem.vue.d.ts +20 -0
- package/dist/runtime/components/prose/Tbody.d.vue.ts +20 -0
- package/dist/runtime/components/prose/Tbody.vue +24 -0
- package/dist/runtime/components/prose/Tbody.vue.d.ts +20 -0
- package/dist/runtime/components/prose/Td.d.vue.ts +21 -0
- package/dist/runtime/components/prose/Td.vue +27 -0
- package/dist/runtime/components/prose/Td.vue.d.ts +21 -0
- package/dist/runtime/components/prose/Th.d.vue.ts +21 -0
- package/dist/runtime/components/prose/Th.vue +27 -0
- package/dist/runtime/components/prose/Th.vue.d.ts +21 -0
- package/dist/runtime/components/prose/Thead.d.vue.ts +20 -0
- package/dist/runtime/components/prose/Thead.vue +24 -0
- package/dist/runtime/components/prose/Thead.vue.d.ts +20 -0
- package/dist/runtime/components/prose/Tr.d.vue.ts +20 -0
- package/dist/runtime/components/prose/Tr.vue +24 -0
- package/dist/runtime/components/prose/Tr.vue.d.ts +20 -0
- package/dist/runtime/components/prose/Ul.d.vue.ts +20 -0
- package/dist/runtime/components/prose/Ul.vue +24 -0
- package/dist/runtime/components/prose/Ul.vue.d.ts +20 -0
- package/dist/runtime/components/prose/callout/Caution.d.vue.ts +15 -0
- package/dist/runtime/components/prose/callout/Caution.vue +10 -0
- package/dist/runtime/components/prose/callout/Caution.vue.d.ts +15 -0
- package/dist/runtime/components/prose/callout/Note.d.vue.ts +15 -0
- package/dist/runtime/components/prose/callout/Note.vue +10 -0
- package/dist/runtime/components/prose/callout/Note.vue.d.ts +15 -0
- package/dist/runtime/components/prose/callout/Tip.d.vue.ts +15 -0
- package/dist/runtime/components/prose/callout/Tip.vue +10 -0
- package/dist/runtime/components/prose/callout/Tip.vue.d.ts +15 -0
- package/dist/runtime/components/prose/callout/Warning.d.vue.ts +15 -0
- package/dist/runtime/components/prose/callout/Warning.vue +10 -0
- package/dist/runtime/components/prose/callout/Warning.vue.d.ts +15 -0
- package/dist/runtime/components/prose/index.d.ts +47 -0
- package/dist/runtime/components/prose/index.js +47 -0
- package/dist/runtime/composables/color-mode/useColorMode.d.ts +19 -0
- package/dist/runtime/composables/color-mode/useColorMode.js +41 -0
- package/dist/runtime/composables/defineLocale.d.ts +55 -0
- package/dist/runtime/composables/defineLocale.js +9 -0
- package/dist/runtime/composables/defineShortcuts.d.ts +78 -0
- package/dist/runtime/composables/defineShortcuts.js +235 -0
- package/dist/runtime/composables/index.d.ts +25 -0
- package/dist/runtime/composables/index.js +25 -0
- package/dist/runtime/composables/useAvatarGroup.d.ts +22 -0
- package/dist/runtime/composables/useAvatarGroup.js +12 -0
- package/dist/runtime/composables/useBlurOnOpen.d.ts +15 -0
- package/dist/runtime/composables/useBlurOnOpen.js +35 -0
- package/dist/runtime/composables/useComponentIcons.d.ts +40 -0
- package/dist/runtime/composables/useComponentIcons.js +25 -0
- package/dist/runtime/composables/useComponentProps.d.ts +45 -0
- package/dist/runtime/composables/useComponentProps.js +87 -0
- package/dist/runtime/composables/useConfetti.d.ts +31 -0
- package/dist/runtime/composables/useConfetti.js +11 -0
- package/dist/runtime/composables/useContentSearch.d.ts +22 -0
- package/dist/runtime/composables/useContentSearch.js +122 -0
- package/dist/runtime/composables/useDevice.d.ts +46 -0
- package/dist/runtime/composables/useDevice.js +55 -0
- package/dist/runtime/composables/useEditorMenu.d.ts +100 -0
- package/dist/runtime/composables/useEditorMenu.js +468 -0
- package/dist/runtime/composables/useFieldGroup.d.ts +36 -0
- package/dist/runtime/composables/useFieldGroup.js +21 -0
- package/dist/runtime/composables/useFileUpload.d.ts +62 -0
- package/dist/runtime/composables/useFileUpload.js +115 -0
- package/dist/runtime/composables/useFilter.d.ts +22 -0
- package/dist/runtime/composables/useFilter.js +66 -0
- package/dist/runtime/composables/useFormField.d.ts +81 -0
- package/dist/runtime/composables/useFormField.js +79 -0
- package/dist/runtime/composables/useForwardProps.d.ts +19 -0
- package/dist/runtime/composables/useForwardProps.js +23 -0
- package/dist/runtime/composables/useIMEGuard.d.ts +10 -0
- package/dist/runtime/composables/useIMEGuard.js +22 -0
- package/dist/runtime/composables/useKbd.d.ts +63 -0
- package/dist/runtime/composables/useKbd.js +58 -0
- package/dist/runtime/composables/useLazyOverlay.d.ts +5 -0
- package/dist/runtime/composables/useLazyOverlay.js +21 -0
- package/dist/runtime/composables/useLocale.d.ts +25 -0
- package/dist/runtime/composables/useLocale.js +10 -0
- package/dist/runtime/composables/useOverlay.d.ts +98 -0
- package/dist/runtime/composables/useOverlay.js +86 -0
- package/dist/runtime/composables/usePortal.d.ts +19 -0
- package/dist/runtime/composables/usePortal.js +12 -0
- package/dist/runtime/composables/usePrefix.d.ts +6 -0
- package/dist/runtime/composables/usePrefix.js +11 -0
- package/dist/runtime/composables/useResizable.d.ts +100 -0
- package/dist/runtime/composables/useResizable.js +184 -0
- package/dist/runtime/composables/useScrollShadow.d.ts +41 -0
- package/dist/runtime/composables/useScrollShadow.js +37 -0
- package/dist/runtime/composables/useScrollspy.d.ts +17 -0
- package/dist/runtime/composables/useScrollspy.js +49 -0
- package/dist/runtime/composables/useSpeechRecognition.d.ts +122 -0
- package/dist/runtime/composables/useSpeechRecognition.js +166 -0
- package/dist/runtime/composables/useToast.d.ts +70 -0
- package/dist/runtime/composables/useToast.js +156 -0
- package/dist/runtime/composables/useTour.d.ts +81 -0
- package/dist/runtime/composables/useTour.js +104 -0
- package/dist/runtime/dictionary/i18n.d.ts +12 -0
- package/dist/runtime/dictionary/i18n.js +22 -0
- package/dist/runtime/dictionary/icons.d.ts +71 -0
- package/dist/runtime/dictionary/icons.js +163 -0
- package/dist/runtime/index.css +1 -0
- package/dist/runtime/keyframes.css +1 -0
- package/dist/runtime/locale/ar.d.ts +3 -0
- package/dist/runtime/locale/ar.js +256 -0
- package/dist/runtime/locale/br.d.ts +3 -0
- package/dist/runtime/locale/br.js +255 -0
- package/dist/runtime/locale/de.d.ts +3 -0
- package/dist/runtime/locale/de.js +255 -0
- package/dist/runtime/locale/en.d.ts +3 -0
- package/dist/runtime/locale/en.js +255 -0
- package/dist/runtime/locale/fr.d.ts +3 -0
- package/dist/runtime/locale/fr.js +255 -0
- package/dist/runtime/locale/id.d.ts +3 -0
- package/dist/runtime/locale/id.js +255 -0
- package/dist/runtime/locale/in.d.ts +3 -0
- package/dist/runtime/locale/in.js +255 -0
- package/dist/runtime/locale/index.d.ts +48 -0
- package/dist/runtime/locale/index.js +20 -0
- package/dist/runtime/locale/it.d.ts +3 -0
- package/dist/runtime/locale/it.js +255 -0
- package/dist/runtime/locale/ja.d.ts +3 -0
- package/dist/runtime/locale/ja.js +255 -0
- package/dist/runtime/locale/kz.d.ts +3 -0
- package/dist/runtime/locale/kz.js +255 -0
- package/dist/runtime/locale/la.d.ts +3 -0
- package/dist/runtime/locale/la.js +255 -0
- package/dist/runtime/locale/ms.d.ts +3 -0
- package/dist/runtime/locale/ms.js +255 -0
- package/dist/runtime/locale/pl.d.ts +3 -0
- package/dist/runtime/locale/pl.js +255 -0
- package/dist/runtime/locale/ru.d.ts +3 -0
- package/dist/runtime/locale/ru.js +255 -0
- package/dist/runtime/locale/sc.d.ts +3 -0
- package/dist/runtime/locale/sc.js +255 -0
- package/dist/runtime/locale/tc.d.ts +3 -0
- package/dist/runtime/locale/tc.js +255 -0
- package/dist/runtime/locale/th.d.ts +3 -0
- package/dist/runtime/locale/th.js +255 -0
- package/dist/runtime/locale/tr.d.ts +3 -0
- package/dist/runtime/locale/tr.js +255 -0
- package/dist/runtime/locale/ua.d.ts +3 -0
- package/dist/runtime/locale/ua.js +255 -0
- package/dist/runtime/locale/vn.d.ts +3 -0
- package/dist/runtime/locale/vn.js +255 -0
- package/dist/runtime/plugins/colors.d.ts +9 -0
- package/dist/runtime/plugins/colors.js +43 -0
- package/dist/runtime/plugins/platform.d.ts +40 -0
- package/dist/runtime/plugins/platform.js +32 -0
- package/dist/runtime/plugins/ui-version.d.ts +11 -0
- package/dist/runtime/plugins/ui-version.js +9 -0
- package/dist/runtime/types/app.config.d.ts +6 -0
- package/dist/runtime/types/color-mode.d.ts +2 -0
- package/dist/runtime/types/color-mode.js +0 -0
- package/dist/runtime/types/content.d.ts +4 -0
- package/dist/runtime/types/content.js +4 -0
- package/dist/runtime/types/editor.d.ts +70 -0
- package/dist/runtime/types/editor.js +0 -0
- package/dist/runtime/types/form.d.ts +107 -0
- package/dist/runtime/types/form.js +10 -0
- package/dist/runtime/types/html.d.ts +12 -0
- package/dist/runtime/types/html.js +0 -0
- package/dist/runtime/types/icons.d.ts +2 -0
- package/dist/runtime/types/icons.js +0 -0
- package/dist/runtime/types/index.d.ts +142 -0
- package/dist/runtime/types/index.js +142 -0
- package/dist/runtime/types/input.d.ts +18 -0
- package/dist/runtime/types/input.js +0 -0
- package/dist/runtime/types/locale.d.ts +267 -0
- package/dist/runtime/types/locale.js +0 -0
- package/dist/runtime/types/prose.d.ts +45 -0
- package/dist/runtime/types/prose.js +45 -0
- package/dist/runtime/types/theme.d.ts +193 -0
- package/dist/runtime/types/theme.js +0 -0
- package/dist/runtime/types/tv.d.ts +81 -0
- package/dist/runtime/types/tv.js +0 -0
- package/dist/runtime/types/utils.d.ts +53 -0
- package/dist/runtime/types/utils.js +0 -0
- package/dist/runtime/utils/ai.d.ts +54 -0
- package/dist/runtime/utils/ai.js +35 -0
- package/dist/runtime/utils/attributes.d.ts +2 -0
- package/dist/runtime/utils/attributes.js +5 -0
- package/dist/runtime/utils/chart.d.ts +10 -0
- package/dist/runtime/utils/chart.js +55 -0
- package/dist/runtime/utils/chat.d.ts +6 -0
- package/dist/runtime/utils/chat.js +1 -0
- package/dist/runtime/utils/content.d.ts +30 -0
- package/dist/runtime/utils/content.js +25 -0
- package/dist/runtime/utils/dashboard.d.ts +20 -0
- package/dist/runtime/utils/dashboard.js +2 -0
- package/dist/runtime/utils/editor.d.ts +153 -0
- package/dist/runtime/utils/editor.js +394 -0
- package/dist/runtime/utils/file.d.ts +4 -0
- package/dist/runtime/utils/file.js +12 -0
- package/dist/runtime/utils/form.d.ts +47 -0
- package/dist/runtime/utils/form.js +76 -0
- package/dist/runtime/utils/index.d.ts +257 -0
- package/dist/runtime/utils/index.js +251 -0
- package/dist/runtime/utils/lazy-overlay.d.ts +261 -0
- package/dist/runtime/utils/lazy-overlay.js +14 -0
- package/dist/runtime/utils/link-keys.d.ts +8 -0
- package/dist/runtime/utils/link-keys.js +40 -0
- package/dist/runtime/utils/link.d.ts +43 -0
- package/dist/runtime/utils/link.js +37 -0
- package/dist/runtime/utils/locale.d.ts +33 -0
- package/dist/runtime/utils/locale.js +25 -0
- package/dist/runtime/utils/overlay.d.ts +19 -0
- package/dist/runtime/utils/overlay.js +13 -0
- package/dist/runtime/utils/prefetch.d.ts +29 -0
- package/dist/runtime/utils/prefetch.js +45 -0
- package/dist/runtime/utils/prototype-guard.d.ts +57 -0
- package/dist/runtime/utils/prototype-guard.js +30 -0
- package/dist/runtime/utils/search.d.ts +54 -0
- package/dist/runtime/utils/search.js +150 -0
- package/dist/runtime/utils/tv.d.ts +43 -0
- package/dist/runtime/utils/tv.js +310 -0
- package/dist/runtime/utils/virtualizer.d.ts +4 -0
- package/dist/runtime/utils/virtualizer.js +39 -0
- package/dist/runtime/utils/vnode.d.ts +16 -0
- package/dist/runtime/utils/vnode.js +22 -0
- package/dist/runtime/vue/components/color-mode/ColorModeSelect.d.vue.ts +8 -0
- package/dist/runtime/vue/components/color-mode/ColorModeSelect.vue +88 -0
- package/dist/runtime/vue/components/color-mode/ColorModeSelect.vue.d.ts +8 -0
- package/dist/runtime/vue/components/color-mode/ColorModeSwitch.d.vue.ts +6 -0
- package/dist/runtime/vue/components/color-mode/ColorModeSwitch.vue +57 -0
- package/dist/runtime/vue/components/color-mode/ColorModeSwitch.vue.d.ts +6 -0
- package/dist/runtime/vue/composables/useAppConfig.d.ts +1 -0
- package/dist/runtime/vue/composables/useAppConfig.js +4 -0
- package/dist/runtime/vue/overrides/inertia/Link.d.vue.ts +77 -0
- package/dist/runtime/vue/overrides/inertia/Link.vue +172 -0
- package/dist/runtime/vue/overrides/inertia/Link.vue.d.ts +77 -0
- package/dist/runtime/vue/overrides/inertia/LinkBase.d.vue.ts +27 -0
- package/dist/runtime/vue/overrides/inertia/LinkBase.vue +74 -0
- package/dist/runtime/vue/overrides/inertia/LinkBase.vue.d.ts +27 -0
- package/dist/runtime/vue/overrides/none/Link.d.vue.ts +79 -0
- package/dist/runtime/vue/overrides/none/Link.vue +138 -0
- package/dist/runtime/vue/overrides/none/Link.vue.d.ts +79 -0
- package/dist/runtime/vue/overrides/vue-router/Link.d.vue.ts +70 -0
- package/dist/runtime/vue/overrides/vue-router/Link.vue +188 -0
- package/dist/runtime/vue/overrides/vue-router/Link.vue.d.ts +70 -0
- package/dist/runtime/vue/plugins/color-mode.d.ts +4 -0
- package/dist/runtime/vue/plugins/color-mode.js +6 -0
- package/dist/runtime/vue/plugins/head.d.ts +4 -0
- package/dist/runtime/vue/plugins/head.js +10 -0
- package/dist/runtime/vue/plugins/router.d.ts +4 -0
- package/dist/runtime/vue/plugins/router.js +7 -0
- package/dist/runtime/vue/stubs/base.d.ts +58 -0
- package/dist/runtime/vue/stubs/base.js +77 -0
- package/dist/runtime/vue/stubs/inertia.d.ts +5 -0
- package/dist/runtime/vue/stubs/inertia.js +12 -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/b24ui-nuxt.BTyWQzEo.mjs +13566 -0
- package/dist/types.d.mts +5 -0
- package/dist/unplugin.d.mts +74 -0
- package/dist/unplugin.mjs +415 -0
- package/dist/vite.d.mts +13 -0
- package/dist/vite.mjs +23 -0
- package/package.json +322 -3
- package/vue-plugin.d.ts +5 -0
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import type { VNode } from 'vue';
|
|
2
|
+
import type { AppConfig } from '@nuxt/schema';
|
|
3
|
+
import type { UIDataTypes, UIMessage, UITools, FileUIPart } from 'ai';
|
|
4
|
+
import theme from '#build/b24ui/chat-message';
|
|
5
|
+
import type { IconComponent } from '../types/icons';
|
|
6
|
+
import type { AvatarProps } from './Avatar.vue';
|
|
7
|
+
import type { ButtonProps } from './Button.vue';
|
|
8
|
+
import type { ComponentConfig } from '../types/tv';
|
|
9
|
+
type ChatMessage = ComponentConfig<typeof theme, AppConfig, 'chatMessage'>;
|
|
10
|
+
/**
|
|
11
|
+
* @memo: content: deprecated. Use `parts` instead.
|
|
12
|
+
*/
|
|
13
|
+
export interface ChatMessageProps<TMetadata = unknown, TDataParts extends UIDataTypes = UIDataTypes, TTools extends UITools = UITools> extends UIMessage<TMetadata, TDataParts, TTools> {
|
|
14
|
+
/**
|
|
15
|
+
* The element or component this component should render as.
|
|
16
|
+
* @defaultValue 'article'
|
|
17
|
+
*/
|
|
18
|
+
as?: any;
|
|
19
|
+
/**
|
|
20
|
+
* @IconComponent
|
|
21
|
+
*/
|
|
22
|
+
icon?: IconComponent;
|
|
23
|
+
avatar?: AvatarProps & {
|
|
24
|
+
[key: string]: any;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* @defaultValue 'message'
|
|
28
|
+
*/
|
|
29
|
+
variant?: ChatMessage['variants']['variant'];
|
|
30
|
+
/**
|
|
31
|
+
* @defaultValue 'auto'
|
|
32
|
+
*/
|
|
33
|
+
color?: ChatMessage['variants']['color'];
|
|
34
|
+
/**
|
|
35
|
+
* @defaultValue 'left'
|
|
36
|
+
*/
|
|
37
|
+
side?: ChatMessage['variants']['side'];
|
|
38
|
+
/**
|
|
39
|
+
* Display a list of actions under the message.
|
|
40
|
+
* The `label` will be used in a tooltip and as the button's `aria-label`.
|
|
41
|
+
* `{ size: 'sm', color: 'air-secondary-no-accent' }`{lang="ts-type"}
|
|
42
|
+
*/
|
|
43
|
+
actions?: (Omit<ButtonProps, 'onClick'> & {
|
|
44
|
+
onClick?: (e: MouseEvent, message: UIMessage<TMetadata, TDataParts, TTools>) => void;
|
|
45
|
+
})[];
|
|
46
|
+
/**
|
|
47
|
+
* Render the message in a compact style.
|
|
48
|
+
* This is done automatically when used inside a `UChatPalette`{lang="ts-type"}.
|
|
49
|
+
* @defaultValue false
|
|
50
|
+
*/
|
|
51
|
+
compact?: boolean;
|
|
52
|
+
class?: any;
|
|
53
|
+
b24ui?: ChatMessage['slots'];
|
|
54
|
+
}
|
|
55
|
+
export interface ChatMessageSlots<TMetadata = unknown, TDataParts extends UIDataTypes = UIDataTypes, TTools extends UITools = UITools> {
|
|
56
|
+
header?(props: UIMessage<TMetadata, TDataParts, TTools>): VNode[];
|
|
57
|
+
leading?(props: UIMessage<TMetadata, TDataParts, TTools> & {
|
|
58
|
+
avatar: ChatMessageProps<TMetadata, TDataParts, TTools>['avatar'];
|
|
59
|
+
b24ui: ChatMessage['b24ui'];
|
|
60
|
+
}): VNode[];
|
|
61
|
+
files?(props: Omit<UIMessage<TMetadata, TDataParts, TTools>, 'parts'> & {
|
|
62
|
+
parts: FileUIPart[];
|
|
63
|
+
}): VNode[];
|
|
64
|
+
body?(props: UIMessage<TMetadata, TDataParts, TTools>): VNode[];
|
|
65
|
+
content?(props: UIMessage<TMetadata, TDataParts, TTools> & {
|
|
66
|
+
content?: string;
|
|
67
|
+
}): VNode[];
|
|
68
|
+
/**
|
|
69
|
+
* Render each part of the message, parts the slot doesn't render fall back to the default output.
|
|
70
|
+
* Ignored when the `content` slot is used.
|
|
71
|
+
*/
|
|
72
|
+
part?(props: {
|
|
73
|
+
part: UIMessage<TMetadata, TDataParts, TTools>['parts'][number];
|
|
74
|
+
index: number;
|
|
75
|
+
message: UIMessage<TMetadata, TDataParts, TTools>;
|
|
76
|
+
}): VNode[];
|
|
77
|
+
actions?(props: UIMessage<TMetadata, TDataParts, TTools> & {
|
|
78
|
+
actions: ChatMessageProps<TMetadata, TDataParts, TTools>['actions'];
|
|
79
|
+
}): VNode[];
|
|
80
|
+
}
|
|
81
|
+
declare const _default: typeof __VLS_export;
|
|
82
|
+
export default _default;
|
|
83
|
+
declare const __VLS_export: <TMetadata, TDataParts extends UIDataTypes, TTools extends UITools>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
84
|
+
props: import("vue").PublicProps & __VLS_PrettifyLocal<ChatMessageProps<TMetadata, TDataParts, TTools>> & (typeof globalThis extends {
|
|
85
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
86
|
+
} ? P : {});
|
|
87
|
+
expose: (exposed: {}) => void;
|
|
88
|
+
attrs: any;
|
|
89
|
+
slots: ChatMessageSlots<TMetadata, TDataParts, TTools>;
|
|
90
|
+
emit: {};
|
|
91
|
+
}>) => import("vue").VNode & {
|
|
92
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
93
|
+
};
|
|
94
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
95
|
+
[K in keyof T]: T[K];
|
|
96
|
+
} : {
|
|
97
|
+
[K in keyof T as K]: T[K];
|
|
98
|
+
}) & {};
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import type { ComponentPublicInstance, VNode } from 'vue';
|
|
2
|
+
import type { AppConfig } from '@nuxt/schema';
|
|
3
|
+
import type { UIDataTypes, UIMessage, UITools, ChatStatus } from 'ai';
|
|
4
|
+
import theme from '#build/b24ui/chat-messages';
|
|
5
|
+
import type { IconComponent } from '../types/icons';
|
|
6
|
+
import type { ButtonProps } from './Button.vue';
|
|
7
|
+
import type { ChatMessageProps, ChatMessageSlots } from './ChatMessage.vue';
|
|
8
|
+
import type { LinkPropsKeys } from './Link.vue';
|
|
9
|
+
import type { ComponentConfig } from '../types/tv';
|
|
10
|
+
type ChatMessages = ComponentConfig<typeof theme, AppConfig, 'chatMessages'>;
|
|
11
|
+
type MessageBase<T extends UIMessage[]> = T[number] extends UIMessage<infer M, infer D, infer U> ? UIMessage<M, D, U> : UIMessage<unknown, UIDataTypes, UITools>;
|
|
12
|
+
type PropsBase<T extends UIMessage[]> = MessageBase<T> extends UIMessage<infer M, infer D, infer U> ? ChatMessageProps<M, D, U> : never;
|
|
13
|
+
type SlotsBase<T extends UIMessage[]> = MessageBase<T> extends UIMessage<infer M, infer D, infer U> ? ChatMessageSlots<M, D, U> : never;
|
|
14
|
+
export interface ChatMessagesProps<T extends UIMessage[] = UIMessage[]> {
|
|
15
|
+
messages?: T;
|
|
16
|
+
status?: ChatStatus;
|
|
17
|
+
/**
|
|
18
|
+
* Whether to automatically scroll to the bottom when a message is streaming.
|
|
19
|
+
* @defaultValue false
|
|
20
|
+
*/
|
|
21
|
+
shouldAutoScroll?: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* Whether to scroll to the bottom on mounted.
|
|
24
|
+
* @defaultValue true
|
|
25
|
+
*/
|
|
26
|
+
shouldScrollToBottom?: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Display an auto scroll button.
|
|
29
|
+
* `{ size: 'md', color: 'air-secondary-no-accent' }`{lang="ts-type"}
|
|
30
|
+
* @defaultValue true
|
|
31
|
+
*/
|
|
32
|
+
autoScroll?: boolean | Omit<ButtonProps, LinkPropsKeys>;
|
|
33
|
+
/**
|
|
34
|
+
* The icon displayed in the auto scroll button.
|
|
35
|
+
* @defaultValue icons.arrowDown
|
|
36
|
+
* @IconComponent
|
|
37
|
+
*/
|
|
38
|
+
autoScrollIcon?: IconComponent;
|
|
39
|
+
/**
|
|
40
|
+
* The `user` messages props.
|
|
41
|
+
* `{ side: 'right', variant: 'message' }`{lang="ts-type"}
|
|
42
|
+
*/
|
|
43
|
+
user?: Pick<PropsBase<T>, 'icon' | 'avatar' | 'variant' | 'side' | 'actions' | 'b24ui' | 'color'>;
|
|
44
|
+
/**
|
|
45
|
+
* The `assistant` messages props.
|
|
46
|
+
* `{ side: 'left', variant: 'message' }`{lang="ts-type"}
|
|
47
|
+
*/
|
|
48
|
+
assistant?: Pick<PropsBase<T>, 'icon' | 'avatar' | 'variant' | 'side' | 'actions' | 'b24ui' | 'color'>;
|
|
49
|
+
/**
|
|
50
|
+
* Render the messages in a compact style.
|
|
51
|
+
* This is done automatically when used inside a `UChatPalette`{lang="ts-type"}.
|
|
52
|
+
* @defaultValue false
|
|
53
|
+
*/
|
|
54
|
+
compact?: boolean;
|
|
55
|
+
/**
|
|
56
|
+
* The spacing offset for the last message in px. Can be useful when the prompt is sticky for example.
|
|
57
|
+
* @deprecated Use the `footer` slot to render a sticky prompt, its height is measured automatically.
|
|
58
|
+
* @defaultValue 0
|
|
59
|
+
*/
|
|
60
|
+
spacingOffset?: number;
|
|
61
|
+
class?: any;
|
|
62
|
+
b24ui?: ChatMessages['slots'];
|
|
63
|
+
}
|
|
64
|
+
export type ChatMessagesSlots<T extends UIMessage[] = UIMessage[]> = {
|
|
65
|
+
default?(props: {
|
|
66
|
+
registerMessageRef: (id: string, element: ComponentPublicInstance | null) => void;
|
|
67
|
+
}): VNode[];
|
|
68
|
+
indicator?(props: {
|
|
69
|
+
b24ui: ChatMessages['b24ui'];
|
|
70
|
+
}): VNode[];
|
|
71
|
+
viewport?(props: {
|
|
72
|
+
b24ui: ChatMessages['b24ui'];
|
|
73
|
+
onClick: () => void;
|
|
74
|
+
}): VNode[];
|
|
75
|
+
/**
|
|
76
|
+
* Render a sticky element at the bottom of the list, like a prompt. Its height is measured to keep room for the last message and the auto scroll button above it.
|
|
77
|
+
*/
|
|
78
|
+
footer?(props?: {}): VNode[];
|
|
79
|
+
} & {
|
|
80
|
+
[K in keyof ChatMessageSlots]?: NonNullable<SlotsBase<T>[K]> extends (props: infer P) => VNode[] ? (props: P & {
|
|
81
|
+
message: MessageBase<T>;
|
|
82
|
+
streaming: boolean;
|
|
83
|
+
}) => VNode[] : never;
|
|
84
|
+
};
|
|
85
|
+
declare const _default: typeof __VLS_export;
|
|
86
|
+
export default _default;
|
|
87
|
+
declare const __VLS_export: <T extends UIMessage[] = UIMessage[]>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
88
|
+
props: import("vue").PublicProps & __VLS_PrettifyLocal<ChatMessagesProps<T>> & (typeof globalThis extends {
|
|
89
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
90
|
+
} ? P : {});
|
|
91
|
+
expose: (exposed: import("vue").ShallowUnwrapRef<{
|
|
92
|
+
registerMessageRef: (id: string, element: ComponentPublicInstance | null) => void;
|
|
93
|
+
scrollToBottom: (smooth?: boolean) => void;
|
|
94
|
+
scrollToMessage: (id: string, smooth?: boolean) => void;
|
|
95
|
+
isAtBottom: Readonly<import("vue").Ref<boolean, boolean>>;
|
|
96
|
+
}>) => void;
|
|
97
|
+
attrs: any;
|
|
98
|
+
slots: ChatMessagesSlots<T>;
|
|
99
|
+
emit: {};
|
|
100
|
+
}>) => import("vue").VNode & {
|
|
101
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
102
|
+
};
|
|
103
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
104
|
+
[K in keyof T]: T[K];
|
|
105
|
+
} : {
|
|
106
|
+
[K in keyof T as K]: T[K];
|
|
107
|
+
}) & {};
|
|
@@ -0,0 +1,304 @@
|
|
|
1
|
+
<script>
|
|
2
|
+
import theme from "#build/b24ui/chat-messages";
|
|
3
|
+
</script>
|
|
4
|
+
|
|
5
|
+
<script setup>
|
|
6
|
+
import { ref, computed, watch, nextTick, toRef, readonly, onMounted, onBeforeUnmount } from "vue";
|
|
7
|
+
import { Presence } from "reka-ui";
|
|
8
|
+
import { defu } from "defu";
|
|
9
|
+
import { createReusableTemplate, useElementSize, useEventListener, useMutationObserver, watchThrottled } from "@vueuse/core";
|
|
10
|
+
import { useAppConfig } from "#imports";
|
|
11
|
+
import { useComponentProps } from "../composables/useComponentProps";
|
|
12
|
+
import { useLocale } from "../composables/useLocale";
|
|
13
|
+
import { omit } from "../utils";
|
|
14
|
+
import { tv } from "../utils/tv";
|
|
15
|
+
import icons from "../dictionary/icons";
|
|
16
|
+
import B24ChatMessage from "./ChatMessage.vue";
|
|
17
|
+
import B24Button from "./Button.vue";
|
|
18
|
+
const _props = defineProps({
|
|
19
|
+
messages: { type: null, required: false },
|
|
20
|
+
status: { type: String, required: false },
|
|
21
|
+
shouldAutoScroll: { type: Boolean, required: false, default: false },
|
|
22
|
+
shouldScrollToBottom: { type: Boolean, required: false, default: true },
|
|
23
|
+
autoScroll: { type: [Boolean, Object], required: false, default: true },
|
|
24
|
+
autoScrollIcon: { type: [Function, Object], required: false },
|
|
25
|
+
user: { type: Object, required: false },
|
|
26
|
+
assistant: { type: Object, required: false },
|
|
27
|
+
compact: { type: Boolean, required: false },
|
|
28
|
+
spacingOffset: { type: Number, required: false, default: 0 },
|
|
29
|
+
class: { type: null, required: false },
|
|
30
|
+
b24ui: { type: Object, required: false }
|
|
31
|
+
});
|
|
32
|
+
const slots = defineSlots();
|
|
33
|
+
const props = useComponentProps("chatMessages", _props);
|
|
34
|
+
const getProxySlots = () => omit(slots, ["default", "indicator", "viewport", "footer"]);
|
|
35
|
+
function showIndicator() {
|
|
36
|
+
if (props.status === "submitted") return true;
|
|
37
|
+
if (props.status !== "streaming") return false;
|
|
38
|
+
const lastMessage = props.messages?.[props.messages.length - 1];
|
|
39
|
+
return lastMessage?.role === "assistant" && !lastMessage.parts?.length;
|
|
40
|
+
}
|
|
41
|
+
function isMessageStreaming(message) {
|
|
42
|
+
if (props.status !== "submitted" && props.status !== "streaming") return false;
|
|
43
|
+
return message.id === props.messages?.[props.messages.length - 1]?.id;
|
|
44
|
+
}
|
|
45
|
+
const { t } = useLocale();
|
|
46
|
+
const appConfig = useAppConfig();
|
|
47
|
+
const userProps = toRef(() => defu(props.user, { side: "right", variant: "message" }));
|
|
48
|
+
const assistantProps = toRef(() => defu(props.assistant, { side: "left", variant: "message" }));
|
|
49
|
+
const b24ui = computed(() => tv({ extend: theme, ...appConfig.b24ui?.chatMessages || {} })({
|
|
50
|
+
compact: props.compact,
|
|
51
|
+
footer: !!slots.footer
|
|
52
|
+
}));
|
|
53
|
+
const [DefineViewportTemplate, ReuseViewportTemplate] = createReusableTemplate();
|
|
54
|
+
const el = ref(null);
|
|
55
|
+
const parent = ref(null);
|
|
56
|
+
const messagesRefs = ref(/* @__PURE__ */ new Map());
|
|
57
|
+
const showAutoScroll = ref(false);
|
|
58
|
+
const isAtBottom = ref(true);
|
|
59
|
+
const lastMessageHeight = ref(0);
|
|
60
|
+
const footerRef = ref(null);
|
|
61
|
+
const { height: footerHeight } = useElementSize(footerRef, void 0, { box: "border-box" });
|
|
62
|
+
const lastMessageSubmitted = ref(false);
|
|
63
|
+
const lastScrollTop = ref(0);
|
|
64
|
+
const userScrolledUp = ref(false);
|
|
65
|
+
function registerMessageRef(id, element) {
|
|
66
|
+
const elInstance = element?.$el;
|
|
67
|
+
if (elInstance) {
|
|
68
|
+
messagesRefs.value.set(id, elInstance);
|
|
69
|
+
} else {
|
|
70
|
+
messagesRefs.value.delete(id);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
function scrollToMessage(id, smooth = true) {
|
|
74
|
+
const element = messagesRefs.value.get(id);
|
|
75
|
+
if (!element || !parent.value) {
|
|
76
|
+
return;
|
|
77
|
+
}
|
|
78
|
+
const isDocument = parent.value === document.documentElement;
|
|
79
|
+
const parentTop = isDocument ? 0 : parent.value.getBoundingClientRect().top + parent.value.clientTop;
|
|
80
|
+
const scrollMarginTop = Number.parseFloat(window.getComputedStyle(element).scrollMarginTop) || 0;
|
|
81
|
+
const scrollPaddingTop = Number.parseFloat(window.getComputedStyle(parent.value).scrollPaddingTop) || 0;
|
|
82
|
+
const top = parent.value.scrollTop + element.getBoundingClientRect().top - parentTop - scrollMarginTop - scrollPaddingTop;
|
|
83
|
+
parent.value.scrollTo({ top, behavior: smooth ? "smooth" : "instant" });
|
|
84
|
+
}
|
|
85
|
+
function scrollToBottom(smooth = true) {
|
|
86
|
+
if (!parent.value) {
|
|
87
|
+
return;
|
|
88
|
+
}
|
|
89
|
+
if (smooth) {
|
|
90
|
+
parent.value.scrollTo({ top: parent.value.scrollHeight, behavior: "smooth" });
|
|
91
|
+
} else {
|
|
92
|
+
parent.value.scrollTop = parent.value.scrollHeight;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
watchThrottled([() => props.messages, () => props.status], () => {
|
|
96
|
+
if (!props.messages?.length) {
|
|
97
|
+
showAutoScroll.value = false;
|
|
98
|
+
isAtBottom.value = true;
|
|
99
|
+
userScrolledUp.value = false;
|
|
100
|
+
lastScrollTop.value = 0;
|
|
101
|
+
messagesRefs.value.clear();
|
|
102
|
+
return;
|
|
103
|
+
}
|
|
104
|
+
nextTick(checkScrollPosition);
|
|
105
|
+
}, { deep: true, throttle: 50, leading: true });
|
|
106
|
+
watch(() => props.status, (status) => {
|
|
107
|
+
if (status !== "submitted") {
|
|
108
|
+
return;
|
|
109
|
+
}
|
|
110
|
+
const lastMessage = props.messages?.[props.messages.length - 1];
|
|
111
|
+
if (!lastMessage || lastMessage.role !== "user") {
|
|
112
|
+
return;
|
|
113
|
+
}
|
|
114
|
+
userScrolledUp.value = false;
|
|
115
|
+
nextTick(() => {
|
|
116
|
+
lastMessageSubmitted.value = true;
|
|
117
|
+
requestAnimationFrame(() => {
|
|
118
|
+
const id = updateLastMessageHeight();
|
|
119
|
+
if (!id) {
|
|
120
|
+
return;
|
|
121
|
+
}
|
|
122
|
+
nextTick(() => {
|
|
123
|
+
scrollToMessage(id);
|
|
124
|
+
});
|
|
125
|
+
});
|
|
126
|
+
});
|
|
127
|
+
});
|
|
128
|
+
function checkScrollPosition() {
|
|
129
|
+
if (!parent.value) {
|
|
130
|
+
return;
|
|
131
|
+
}
|
|
132
|
+
const scrollPosition = parent.value.scrollTop + parent.value.clientHeight;
|
|
133
|
+
const scrollHeight = parent.value.scrollHeight;
|
|
134
|
+
const threshold = 100;
|
|
135
|
+
showAutoScroll.value = scrollHeight - scrollPosition >= threshold;
|
|
136
|
+
isAtBottom.value = scrollHeight - scrollPosition <= 1;
|
|
137
|
+
if (isAtBottom.value) {
|
|
138
|
+
userScrolledUp.value = false;
|
|
139
|
+
} else if (parent.value.scrollTop < lastScrollTop.value) {
|
|
140
|
+
userScrolledUp.value = true;
|
|
141
|
+
}
|
|
142
|
+
lastScrollTop.value = parent.value.scrollTop;
|
|
143
|
+
}
|
|
144
|
+
function onAutoScrollClick() {
|
|
145
|
+
userScrolledUp.value = false;
|
|
146
|
+
scrollToBottom();
|
|
147
|
+
}
|
|
148
|
+
function getScrollParent(node) {
|
|
149
|
+
if (!node) {
|
|
150
|
+
return document.documentElement;
|
|
151
|
+
}
|
|
152
|
+
const overflowRegex = /auto|scroll/;
|
|
153
|
+
let current = node;
|
|
154
|
+
while (current && current !== document.body && current !== document.documentElement) {
|
|
155
|
+
const style = window.getComputedStyle(current);
|
|
156
|
+
if (overflowRegex.test(style.overflowY)) {
|
|
157
|
+
return current;
|
|
158
|
+
}
|
|
159
|
+
current = current.parentElement;
|
|
160
|
+
}
|
|
161
|
+
return document.documentElement;
|
|
162
|
+
}
|
|
163
|
+
function updateLastMessageHeight() {
|
|
164
|
+
if (!el.value || !parent.value || !props.messages?.length || !lastMessageSubmitted.value) {
|
|
165
|
+
return;
|
|
166
|
+
}
|
|
167
|
+
const parentHeight = parent.value.getBoundingClientRect().height;
|
|
168
|
+
const lastMessage = props.messages.findLast((m) => m.role === "user");
|
|
169
|
+
if (!lastMessage) {
|
|
170
|
+
return;
|
|
171
|
+
}
|
|
172
|
+
const lastMessageEl = messagesRefs.value.get(lastMessage.id);
|
|
173
|
+
if (!lastMessageEl) {
|
|
174
|
+
return;
|
|
175
|
+
}
|
|
176
|
+
let spacingOffset = (props.spacingOffset || 0) + (footerRef.value?.offsetHeight ?? 0);
|
|
177
|
+
const elComputedStyle = window.getComputedStyle(el.value);
|
|
178
|
+
const parentComputedStyle = window.getComputedStyle(parent.value);
|
|
179
|
+
spacingOffset += (Number.parseFloat(elComputedStyle.rowGap) || Number.parseFloat(elComputedStyle.gap) || 0) * (slots.footer ? 2 : 1);
|
|
180
|
+
spacingOffset += Number.parseFloat(parentComputedStyle.paddingBottom) || 0;
|
|
181
|
+
spacingOffset += Number.parseFloat(parentComputedStyle.scrollPaddingTop) || 0;
|
|
182
|
+
spacingOffset += Number.parseFloat(window.getComputedStyle(lastMessageEl).scrollMarginTop) || 0;
|
|
183
|
+
lastMessageHeight.value = Math.max(parentHeight - lastMessageEl.offsetHeight - spacingOffset, 0);
|
|
184
|
+
return lastMessage.id;
|
|
185
|
+
}
|
|
186
|
+
watch(footerHeight, () => nextTick(updateLastMessageHeight));
|
|
187
|
+
onMounted(() => {
|
|
188
|
+
parent.value = getScrollParent(el.value);
|
|
189
|
+
if (!parent.value) {
|
|
190
|
+
return;
|
|
191
|
+
}
|
|
192
|
+
lastScrollTop.value = parent.value.scrollTop;
|
|
193
|
+
if (props.shouldScrollToBottom) {
|
|
194
|
+
scrollToBottom(false);
|
|
195
|
+
setTimeout(() => {
|
|
196
|
+
scrollToBottom(false);
|
|
197
|
+
}, 100);
|
|
198
|
+
} else {
|
|
199
|
+
nextTick(() => {
|
|
200
|
+
checkScrollPosition();
|
|
201
|
+
});
|
|
202
|
+
}
|
|
203
|
+
useEventListener(parent, "scroll", checkScrollPosition);
|
|
204
|
+
useEventListener(window, "resize", () => nextTick(updateLastMessageHeight));
|
|
205
|
+
if (el.value) {
|
|
206
|
+
let frame;
|
|
207
|
+
useMutationObserver(el, () => {
|
|
208
|
+
if (props.shouldAutoScroll && props.status === "streaming" && !userScrolledUp.value) {
|
|
209
|
+
scrollToBottom(false);
|
|
210
|
+
}
|
|
211
|
+
if (frame === void 0) {
|
|
212
|
+
frame = requestAnimationFrame(() => {
|
|
213
|
+
frame = void 0;
|
|
214
|
+
checkScrollPosition();
|
|
215
|
+
});
|
|
216
|
+
}
|
|
217
|
+
}, { childList: true, subtree: true });
|
|
218
|
+
onBeforeUnmount(() => {
|
|
219
|
+
if (frame !== void 0) {
|
|
220
|
+
cancelAnimationFrame(frame);
|
|
221
|
+
}
|
|
222
|
+
});
|
|
223
|
+
}
|
|
224
|
+
});
|
|
225
|
+
defineExpose({
|
|
226
|
+
registerMessageRef,
|
|
227
|
+
scrollToBottom,
|
|
228
|
+
scrollToMessage,
|
|
229
|
+
isAtBottom: readonly(isAtBottom)
|
|
230
|
+
});
|
|
231
|
+
</script>
|
|
232
|
+
|
|
233
|
+
<template>
|
|
234
|
+
<div
|
|
235
|
+
ref="el"
|
|
236
|
+
role="log"
|
|
237
|
+
:aria-busy="props.status === 'submitted' || props.status === 'streaming' ? 'true' : void 0"
|
|
238
|
+
:data-status="props.status"
|
|
239
|
+
data-slot="root"
|
|
240
|
+
:class="b24ui.root({ class: [props.b24ui?.root, props.class] })"
|
|
241
|
+
:style="{ '--last-message-height': `${lastMessageHeight}px` }"
|
|
242
|
+
>
|
|
243
|
+
<DefineViewportTemplate>
|
|
244
|
+
<Presence :present="showAutoScroll">
|
|
245
|
+
<div :data-state="showAutoScroll ? 'open' : 'closed'" data-slot="viewport" :class="b24ui.viewport({ class: props.b24ui?.viewport })">
|
|
246
|
+
<slot name="viewport" :b24ui="b24ui" :on-click="onAutoScrollClick">
|
|
247
|
+
<B24Button
|
|
248
|
+
v-if="props.autoScroll"
|
|
249
|
+
:icon="props.autoScrollIcon || icons.arrowDown"
|
|
250
|
+
color="air-secondary-no-accent"
|
|
251
|
+
:aria-label="t('chatMessages.autoScroll')"
|
|
252
|
+
v-bind="typeof props.autoScroll === 'object' ? props.autoScroll : {}"
|
|
253
|
+
data-slot="autoScroll"
|
|
254
|
+
:class="b24ui.autoScroll({ class: props.b24ui?.autoScroll })"
|
|
255
|
+
@click="onAutoScrollClick"
|
|
256
|
+
/>
|
|
257
|
+
</slot>
|
|
258
|
+
</div>
|
|
259
|
+
</Presence>
|
|
260
|
+
</DefineViewportTemplate>
|
|
261
|
+
|
|
262
|
+
<slot :register-message-ref="registerMessageRef">
|
|
263
|
+
<template v-for="message in props.messages" :key="message.id">
|
|
264
|
+
<B24ChatMessage
|
|
265
|
+
v-if="message.parts?.length"
|
|
266
|
+
v-bind="{ ...message.role === 'user' ? userProps : assistantProps, ...message }"
|
|
267
|
+
:ref="(el) => registerMessageRef(message.id, el)"
|
|
268
|
+
:compact="props.compact"
|
|
269
|
+
>
|
|
270
|
+
<template v-for="(_, name) in getProxySlots()" #[name]="slotData">
|
|
271
|
+
<slot :name="name" v-bind="{ ...slotData, message, streaming: isMessageStreaming(message) }" />
|
|
272
|
+
</template>
|
|
273
|
+
</B24ChatMessage>
|
|
274
|
+
</template>
|
|
275
|
+
</slot>
|
|
276
|
+
|
|
277
|
+
<B24ChatMessage
|
|
278
|
+
v-if="showIndicator()"
|
|
279
|
+
id="indicator"
|
|
280
|
+
role="assistant"
|
|
281
|
+
v-bind="{ ...assistantProps, actions: void 0, parts: [] }"
|
|
282
|
+
:compact="props.compact"
|
|
283
|
+
>
|
|
284
|
+
<template #content>
|
|
285
|
+
<slot name="indicator" :b24ui="b24ui">
|
|
286
|
+
<div data-slot="indicator" :class="b24ui.indicator({ class: props.b24ui?.indicator })">
|
|
287
|
+
<span />
|
|
288
|
+
<span />
|
|
289
|
+
<span />
|
|
290
|
+
</div>
|
|
291
|
+
</slot>
|
|
292
|
+
</template>
|
|
293
|
+
</B24ChatMessage>
|
|
294
|
+
|
|
295
|
+
<ReuseViewportTemplate v-if="!slots.footer" />
|
|
296
|
+
|
|
297
|
+
<div v-else ref="footerRef" aria-live="off" data-slot="footer" :class="b24ui.footer({ class: props.b24ui?.footer })">
|
|
298
|
+
<!-- Anchored to the footer, out of the flow so it doesn't add a gap while it shows -->
|
|
299
|
+
<ReuseViewportTemplate />
|
|
300
|
+
|
|
301
|
+
<slot name="footer" />
|
|
302
|
+
</div>
|
|
303
|
+
</div>
|
|
304
|
+
</template>
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import type { ComponentPublicInstance, VNode } from 'vue';
|
|
2
|
+
import type { AppConfig } from '@nuxt/schema';
|
|
3
|
+
import type { UIDataTypes, UIMessage, UITools, ChatStatus } from 'ai';
|
|
4
|
+
import theme from '#build/b24ui/chat-messages';
|
|
5
|
+
import type { IconComponent } from '../types/icons';
|
|
6
|
+
import type { ButtonProps } from './Button.vue';
|
|
7
|
+
import type { ChatMessageProps, ChatMessageSlots } from './ChatMessage.vue';
|
|
8
|
+
import type { LinkPropsKeys } from './Link.vue';
|
|
9
|
+
import type { ComponentConfig } from '../types/tv';
|
|
10
|
+
type ChatMessages = ComponentConfig<typeof theme, AppConfig, 'chatMessages'>;
|
|
11
|
+
type MessageBase<T extends UIMessage[]> = T[number] extends UIMessage<infer M, infer D, infer U> ? UIMessage<M, D, U> : UIMessage<unknown, UIDataTypes, UITools>;
|
|
12
|
+
type PropsBase<T extends UIMessage[]> = MessageBase<T> extends UIMessage<infer M, infer D, infer U> ? ChatMessageProps<M, D, U> : never;
|
|
13
|
+
type SlotsBase<T extends UIMessage[]> = MessageBase<T> extends UIMessage<infer M, infer D, infer U> ? ChatMessageSlots<M, D, U> : never;
|
|
14
|
+
export interface ChatMessagesProps<T extends UIMessage[] = UIMessage[]> {
|
|
15
|
+
messages?: T;
|
|
16
|
+
status?: ChatStatus;
|
|
17
|
+
/**
|
|
18
|
+
* Whether to automatically scroll to the bottom when a message is streaming.
|
|
19
|
+
* @defaultValue false
|
|
20
|
+
*/
|
|
21
|
+
shouldAutoScroll?: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* Whether to scroll to the bottom on mounted.
|
|
24
|
+
* @defaultValue true
|
|
25
|
+
*/
|
|
26
|
+
shouldScrollToBottom?: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Display an auto scroll button.
|
|
29
|
+
* `{ size: 'md', color: 'air-secondary-no-accent' }`{lang="ts-type"}
|
|
30
|
+
* @defaultValue true
|
|
31
|
+
*/
|
|
32
|
+
autoScroll?: boolean | Omit<ButtonProps, LinkPropsKeys>;
|
|
33
|
+
/**
|
|
34
|
+
* The icon displayed in the auto scroll button.
|
|
35
|
+
* @defaultValue icons.arrowDown
|
|
36
|
+
* @IconComponent
|
|
37
|
+
*/
|
|
38
|
+
autoScrollIcon?: IconComponent;
|
|
39
|
+
/**
|
|
40
|
+
* The `user` messages props.
|
|
41
|
+
* `{ side: 'right', variant: 'message' }`{lang="ts-type"}
|
|
42
|
+
*/
|
|
43
|
+
user?: Pick<PropsBase<T>, 'icon' | 'avatar' | 'variant' | 'side' | 'actions' | 'b24ui' | 'color'>;
|
|
44
|
+
/**
|
|
45
|
+
* The `assistant` messages props.
|
|
46
|
+
* `{ side: 'left', variant: 'message' }`{lang="ts-type"}
|
|
47
|
+
*/
|
|
48
|
+
assistant?: Pick<PropsBase<T>, 'icon' | 'avatar' | 'variant' | 'side' | 'actions' | 'b24ui' | 'color'>;
|
|
49
|
+
/**
|
|
50
|
+
* Render the messages in a compact style.
|
|
51
|
+
* This is done automatically when used inside a `UChatPalette`{lang="ts-type"}.
|
|
52
|
+
* @defaultValue false
|
|
53
|
+
*/
|
|
54
|
+
compact?: boolean;
|
|
55
|
+
/**
|
|
56
|
+
* The spacing offset for the last message in px. Can be useful when the prompt is sticky for example.
|
|
57
|
+
* @deprecated Use the `footer` slot to render a sticky prompt, its height is measured automatically.
|
|
58
|
+
* @defaultValue 0
|
|
59
|
+
*/
|
|
60
|
+
spacingOffset?: number;
|
|
61
|
+
class?: any;
|
|
62
|
+
b24ui?: ChatMessages['slots'];
|
|
63
|
+
}
|
|
64
|
+
export type ChatMessagesSlots<T extends UIMessage[] = UIMessage[]> = {
|
|
65
|
+
default?(props: {
|
|
66
|
+
registerMessageRef: (id: string, element: ComponentPublicInstance | null) => void;
|
|
67
|
+
}): VNode[];
|
|
68
|
+
indicator?(props: {
|
|
69
|
+
b24ui: ChatMessages['b24ui'];
|
|
70
|
+
}): VNode[];
|
|
71
|
+
viewport?(props: {
|
|
72
|
+
b24ui: ChatMessages['b24ui'];
|
|
73
|
+
onClick: () => void;
|
|
74
|
+
}): VNode[];
|
|
75
|
+
/**
|
|
76
|
+
* Render a sticky element at the bottom of the list, like a prompt. Its height is measured to keep room for the last message and the auto scroll button above it.
|
|
77
|
+
*/
|
|
78
|
+
footer?(props?: {}): VNode[];
|
|
79
|
+
} & {
|
|
80
|
+
[K in keyof ChatMessageSlots]?: NonNullable<SlotsBase<T>[K]> extends (props: infer P) => VNode[] ? (props: P & {
|
|
81
|
+
message: MessageBase<T>;
|
|
82
|
+
streaming: boolean;
|
|
83
|
+
}) => VNode[] : never;
|
|
84
|
+
};
|
|
85
|
+
declare const _default: typeof __VLS_export;
|
|
86
|
+
export default _default;
|
|
87
|
+
declare const __VLS_export: <T extends UIMessage[] = UIMessage[]>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
88
|
+
props: import("vue").PublicProps & __VLS_PrettifyLocal<ChatMessagesProps<T>> & (typeof globalThis extends {
|
|
89
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
90
|
+
} ? P : {});
|
|
91
|
+
expose: (exposed: import("vue").ShallowUnwrapRef<{
|
|
92
|
+
registerMessageRef: (id: string, element: ComponentPublicInstance | null) => void;
|
|
93
|
+
scrollToBottom: (smooth?: boolean) => void;
|
|
94
|
+
scrollToMessage: (id: string, smooth?: boolean) => void;
|
|
95
|
+
isAtBottom: Readonly<import("vue").Ref<boolean, boolean>>;
|
|
96
|
+
}>) => void;
|
|
97
|
+
attrs: any;
|
|
98
|
+
slots: ChatMessagesSlots<T>;
|
|
99
|
+
emit: {};
|
|
100
|
+
}>) => import("vue").VNode & {
|
|
101
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
102
|
+
};
|
|
103
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
104
|
+
[K in keyof T]: T[K];
|
|
105
|
+
} : {
|
|
106
|
+
[K in keyof T as K]: T[K];
|
|
107
|
+
}) & {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { VNode } from 'vue';
|
|
2
|
+
import type { AppConfig } from '@nuxt/schema';
|
|
3
|
+
import theme from '#build/b24ui/chat-palette';
|
|
4
|
+
import type { ComponentConfig } from '../types/tv';
|
|
5
|
+
type ChatPalette = ComponentConfig<typeof theme, AppConfig, 'chatPalette'>;
|
|
6
|
+
export interface ChatPaletteProps {
|
|
7
|
+
/**
|
|
8
|
+
* The element or component this component should render as.
|
|
9
|
+
* @defaultValue 'div'
|
|
10
|
+
*/
|
|
11
|
+
as?: any;
|
|
12
|
+
class?: any;
|
|
13
|
+
b24ui?: ChatPalette['slots'];
|
|
14
|
+
}
|
|
15
|
+
export interface ChatPaletteSlots {
|
|
16
|
+
default?(props?: {}): VNode[];
|
|
17
|
+
prompt?(props?: {}): VNode[];
|
|
18
|
+
}
|
|
19
|
+
declare const _default: typeof __VLS_export;
|
|
20
|
+
export default _default;
|
|
21
|
+
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<ChatPaletteProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ChatPaletteProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, ChatPaletteSlots>;
|
|
22
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
23
|
+
new (): {
|
|
24
|
+
$slots: S;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
<script>
|
|
2
|
+
import theme from "#build/b24ui/chat-palette";
|
|
3
|
+
</script>
|
|
4
|
+
|
|
5
|
+
<script setup>
|
|
6
|
+
import { computed } from "vue";
|
|
7
|
+
import { Primitive, Slot } from "reka-ui";
|
|
8
|
+
import { useAppConfig } from "#imports";
|
|
9
|
+
import { useComponentProps } from "../composables/useComponentProps";
|
|
10
|
+
import { tv } from "../utils/tv";
|
|
11
|
+
const _props = defineProps({
|
|
12
|
+
as: { type: null, required: false },
|
|
13
|
+
class: { type: null, required: false },
|
|
14
|
+
b24ui: { type: Object, required: false }
|
|
15
|
+
});
|
|
16
|
+
const slots = defineSlots();
|
|
17
|
+
const props = useComponentProps("chatPalette", _props);
|
|
18
|
+
const appConfig = useAppConfig();
|
|
19
|
+
const b24ui = computed(() => tv({ extend: theme, ...appConfig.b24ui?.chatPalette || {} })());
|
|
20
|
+
</script>
|
|
21
|
+
|
|
22
|
+
<template>
|
|
23
|
+
<Primitive :as="props.as" data-slot="root" :class="b24ui.root({ class: [props.b24ui?.root, props.class] })">
|
|
24
|
+
<div data-slot="content" :class="b24ui.content({ class: props.b24ui?.content })">
|
|
25
|
+
<Slot compact>
|
|
26
|
+
<slot />
|
|
27
|
+
</Slot>
|
|
28
|
+
</div>
|
|
29
|
+
|
|
30
|
+
<Slot v-if="!!slots.prompt" data-slot="prompt" :class="b24ui.prompt({ class: props.b24ui?.prompt })">
|
|
31
|
+
<slot name="prompt" />
|
|
32
|
+
</Slot>
|
|
33
|
+
</Primitive>
|
|
34
|
+
</template>
|