@bxshefby/b24ui-nuxt 0.0.0-reserve → 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 +166 -0
- 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 +325 -1
- package/vue-plugin.d.ts +5 -0
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import type { FuseResult } from 'fuse.js';
|
|
2
|
+
import type { GetItemKeys } from '../types/utils';
|
|
3
|
+
/**
|
|
4
|
+
* Escapes a full-text-search snippet to safe HTML, keeping its `<mark>` tags.
|
|
5
|
+
*
|
|
6
|
+
* Everything else in `snippet` is escaped, so a value carrying `<script>`
|
|
7
|
+
* renders as text. The preserved tag is hardcoded on purpose: taking it as a
|
|
8
|
+
* parameter would let a caller pass any tag through to the `v-html` that renders
|
|
9
|
+
* the result.
|
|
10
|
+
*
|
|
11
|
+
* Splitting on the tag is what makes that hold. The previous version swapped the
|
|
12
|
+
* tags for `\0markO\0`/`\0markC\0`, escaped, then swapped back — and NUL is an
|
|
13
|
+
* ordinary character a snippet can carry, so what decided whether markup was
|
|
14
|
+
* emitted was a string the input could supply (#391).
|
|
15
|
+
*
|
|
16
|
+
* A whole sentinel in the input forged a tag outright. Worse, and easier: six of
|
|
17
|
+
* its seven bytes immediately before a *real* tag were enough, because the
|
|
18
|
+
* placeholder this function inserted for that tag completed the prefix. So
|
|
19
|
+
* `\0markO<mark>` came back as `<mark>markO\0` — the genuine highlight moved to
|
|
20
|
+
* the front of the text it was meant to mark. No crafted sequence, one stray
|
|
21
|
+
* fragment ahead of any highlight.
|
|
22
|
+
*
|
|
23
|
+
* @param snippet Snippet from the search index, with `<mark>` marking the hits.
|
|
24
|
+
* @returns HTML safe to render, with the highlight tags intact.
|
|
25
|
+
*/
|
|
26
|
+
export declare function sanitizeSnippet(snippet: string): string;
|
|
27
|
+
/**
|
|
28
|
+
* Wraps a Fuse match in `<mark>` and trims the text before it, as HTML.
|
|
29
|
+
*
|
|
30
|
+
* Returns `undefined` when nothing here applies to the item: when it carries no
|
|
31
|
+
* matches at all — Fuse only populates them when `includeMatches` is set, which
|
|
32
|
+
* `ContentSearch` does by default and `CommandPalette` leaves to the caller —
|
|
33
|
+
* and equally when `forceKey` names a key none of the matches is on, or
|
|
34
|
+
* `omitKeys` covers every one of them. Callers render the plain value in that
|
|
35
|
+
* case. Everything except the inserted tags is escaped; the result is rendered
|
|
36
|
+
* with `v-html`.
|
|
37
|
+
*
|
|
38
|
+
* Text before the match is dropped when it does not fit, leaving an ellipsis, so
|
|
39
|
+
* the highlight stays visible in a narrow row. Both boundaries land on whole
|
|
40
|
+
* characters as a reader counts them, never inside an emoji or a flag.
|
|
41
|
+
*
|
|
42
|
+
* @param item Search result; its `matches` come from Fuse.
|
|
43
|
+
* @param searchTerm The query, used as the length threshold a match must reach.
|
|
44
|
+
* @param forceKey Consider only the match on this key.
|
|
45
|
+
* @param omitKeys Skip matches on these keys — used to keep a hit from being
|
|
46
|
+
* highlighted twice across label, suffix and description.
|
|
47
|
+
* @param useTokenSearch Measure the threshold against the shortest word of the
|
|
48
|
+
* query instead of the whole of it, so multi-word queries highlight each word.
|
|
49
|
+
* b24ui-only, and not present upstream — see `.sync/PORTING.md` §2.
|
|
50
|
+
* @returns The escaped HTML, or `undefined` when there is nothing to highlight.
|
|
51
|
+
*/
|
|
52
|
+
export declare function highlight<T>(item: T & {
|
|
53
|
+
matches?: FuseResult<T>['matches'];
|
|
54
|
+
}, searchTerm: string, forceKey?: GetItemKeys<T>, omitKeys?: GetItemKeys<T>[], useTokenSearch?: boolean): string | undefined;
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
const htmlEscapes = {
|
|
2
|
+
"&": "&",
|
|
3
|
+
"<": "<",
|
|
4
|
+
">": ">",
|
|
5
|
+
'"': """,
|
|
6
|
+
"'": "'"
|
|
7
|
+
};
|
|
8
|
+
function escapeHTML(str) {
|
|
9
|
+
return str.replace(/[&<>"']/g, (char) => htmlEscapes[char]);
|
|
10
|
+
}
|
|
11
|
+
const HIGH_SURROGATE_START = 55296;
|
|
12
|
+
const HIGH_SURROGATE_END = 56319;
|
|
13
|
+
const LOW_SURROGATE_START = 56320;
|
|
14
|
+
const LOW_SURROGATE_END = 57343;
|
|
15
|
+
const CLUSTER_CONTINUATION_FLOOR = 768;
|
|
16
|
+
const CARRIAGE_RETURN = 13;
|
|
17
|
+
const LINE_FEED = 10;
|
|
18
|
+
const GRAPHEME_SNAP_MAX_LENGTH = 8192;
|
|
19
|
+
function splitsSurrogatePair(value, index) {
|
|
20
|
+
if (index <= 0 || index >= value.length) {
|
|
21
|
+
return false;
|
|
22
|
+
}
|
|
23
|
+
const low = value.charCodeAt(index);
|
|
24
|
+
if (low < LOW_SURROGATE_START || low > LOW_SURROGATE_END) {
|
|
25
|
+
return false;
|
|
26
|
+
}
|
|
27
|
+
const high = value.charCodeAt(index - 1);
|
|
28
|
+
return high >= HIGH_SURROGATE_START && high <= HIGH_SURROGATE_END;
|
|
29
|
+
}
|
|
30
|
+
let graphemeSegmenter;
|
|
31
|
+
function getGraphemeSegmenter() {
|
|
32
|
+
if (graphemeSegmenter === void 0) {
|
|
33
|
+
graphemeSegmenter = typeof Intl !== "undefined" && typeof Intl.Segmenter === "function" ? new Intl.Segmenter(void 0, { granularity: "grapheme" }) : null;
|
|
34
|
+
}
|
|
35
|
+
return graphemeSegmenter;
|
|
36
|
+
}
|
|
37
|
+
function createClusterSnapper(value, fieldTextLength) {
|
|
38
|
+
let segments;
|
|
39
|
+
function straddling(index) {
|
|
40
|
+
if (index <= 0 || index >= value.length) {
|
|
41
|
+
return void 0;
|
|
42
|
+
}
|
|
43
|
+
const current = value.charCodeAt(index);
|
|
44
|
+
const previous = value.charCodeAt(index - 1);
|
|
45
|
+
if (current < CLUSTER_CONTINUATION_FLOOR && previous < CLUSTER_CONTINUATION_FLOOR) {
|
|
46
|
+
return previous === CARRIAGE_RETURN && current === LINE_FEED ? { index: index - 1, length: 2 } : void 0;
|
|
47
|
+
}
|
|
48
|
+
if (segments === void 0) {
|
|
49
|
+
const segmenter = fieldTextLength <= GRAPHEME_SNAP_MAX_LENGTH ? getGraphemeSegmenter() : null;
|
|
50
|
+
segments = segmenter ? segmenter.segment(value) : null;
|
|
51
|
+
}
|
|
52
|
+
if (!segments) {
|
|
53
|
+
return splitsSurrogatePair(value, index) ? { index: index - 1, length: 2 } : void 0;
|
|
54
|
+
}
|
|
55
|
+
const segment = segments.containing(index);
|
|
56
|
+
return segment && segment.index !== index ? { index: segment.index, length: segment.segment.length } : void 0;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
/** The start of the cluster straddling `index`, or `index` if it is already on an edge. */
|
|
60
|
+
toStart(index) {
|
|
61
|
+
return straddling(index)?.index ?? index;
|
|
62
|
+
},
|
|
63
|
+
/** The end of the cluster straddling `index`, or `index` if it is already on an edge. */
|
|
64
|
+
toEnd(index) {
|
|
65
|
+
const cluster = straddling(index);
|
|
66
|
+
return cluster ? cluster.index + cluster.length : index;
|
|
67
|
+
}
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
function truncateHTMLFromStart(html, maxLength, fieldTextLength) {
|
|
71
|
+
let keptLength = 0;
|
|
72
|
+
let totalLength = 0;
|
|
73
|
+
let insideTag = false;
|
|
74
|
+
let didTruncate = false;
|
|
75
|
+
const chars = Array.from(html);
|
|
76
|
+
for (let i = chars.length - 1; i >= 0; i--) {
|
|
77
|
+
const char = chars[i];
|
|
78
|
+
if (char === ">") {
|
|
79
|
+
insideTag = true;
|
|
80
|
+
} else if (char === "<") {
|
|
81
|
+
insideTag = false;
|
|
82
|
+
keptLength += char.length;
|
|
83
|
+
continue;
|
|
84
|
+
}
|
|
85
|
+
if (!insideTag) {
|
|
86
|
+
totalLength++;
|
|
87
|
+
}
|
|
88
|
+
if (totalLength <= maxLength) {
|
|
89
|
+
keptLength += char.length;
|
|
90
|
+
} else {
|
|
91
|
+
didTruncate = true;
|
|
92
|
+
break;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
if (!didTruncate) {
|
|
96
|
+
return html;
|
|
97
|
+
}
|
|
98
|
+
return "..." + html.slice(createClusterSnapper(html, fieldTextLength).toEnd(html.length - keptLength));
|
|
99
|
+
}
|
|
100
|
+
export function sanitizeSnippet(snippet) {
|
|
101
|
+
return snippet.split(/(<mark>|<\/mark>)/).map((part) => part === "<mark>" || part === "</mark>" ? part : escapeHTML(part)).join("");
|
|
102
|
+
}
|
|
103
|
+
export function highlight(item, searchTerm, forceKey, omitKeys, useTokenSearch) {
|
|
104
|
+
const tokens = useTokenSearch ? searchTerm.match(/[\p{L}\p{M}\p{N}_]+/gu) || [] : [];
|
|
105
|
+
const minTokenLength = tokens.length > 0 ? Math.min(...tokens.map((t) => t.length)) : searchTerm.length;
|
|
106
|
+
function generateHighlightedText(value, indices = []) {
|
|
107
|
+
value = value || "";
|
|
108
|
+
let content = "";
|
|
109
|
+
let nextUnhighlightedRegionStartingIndex = 0;
|
|
110
|
+
const snap = createClusterSnapper(value, value.length);
|
|
111
|
+
const orderedIndices = indices.filter((region) => Number.isInteger(region[0]) && Number.isInteger(region[1])).sort((a, b) => a[0] - b[0] || b[1] - a[1]);
|
|
112
|
+
orderedIndices.forEach((region) => {
|
|
113
|
+
if (region.length === 2 && region[0] === region[1]) {
|
|
114
|
+
return;
|
|
115
|
+
}
|
|
116
|
+
const lastIndiceNextIndex = region[1] + 1;
|
|
117
|
+
const start = Math.max(nextUnhighlightedRegionStartingIndex, snap.toStart(region[0]));
|
|
118
|
+
const end = Math.min(Math.max(start, snap.toEnd(lastIndiceNextIndex)), value.length);
|
|
119
|
+
const isMatched = lastIndiceNextIndex - region[0] >= minTokenLength && end > start;
|
|
120
|
+
content += [
|
|
121
|
+
escapeHTML(value.substring(nextUnhighlightedRegionStartingIndex, start)),
|
|
122
|
+
isMatched && `<mark>`,
|
|
123
|
+
escapeHTML(value.substring(start, end)),
|
|
124
|
+
isMatched && "</mark>"
|
|
125
|
+
].filter(Boolean).join("");
|
|
126
|
+
nextUnhighlightedRegionStartingIndex = end;
|
|
127
|
+
});
|
|
128
|
+
content += escapeHTML(value.substring(nextUnhighlightedRegionStartingIndex));
|
|
129
|
+
const markIndex = content.indexOf("<mark>");
|
|
130
|
+
if (markIndex !== -1) {
|
|
131
|
+
content = truncateHTMLFromStart(content, Array.from(content.slice(markIndex)).length, value.length);
|
|
132
|
+
}
|
|
133
|
+
return content;
|
|
134
|
+
}
|
|
135
|
+
if (!item.matches?.length) {
|
|
136
|
+
return;
|
|
137
|
+
}
|
|
138
|
+
for (const match of item.matches) {
|
|
139
|
+
if (forceKey && match.key !== forceKey) {
|
|
140
|
+
continue;
|
|
141
|
+
}
|
|
142
|
+
if (omitKeys?.includes(match.key)) {
|
|
143
|
+
continue;
|
|
144
|
+
}
|
|
145
|
+
if (!match.value) {
|
|
146
|
+
continue;
|
|
147
|
+
}
|
|
148
|
+
return generateHighlightedText(match.value, match.indices);
|
|
149
|
+
}
|
|
150
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import type { ClassValue, TVVariants, TVCompoundVariants, TVDefaultVariants, TVReturnType, defaultConfig } from 'tailwind-variants';
|
|
2
|
+
type TVSlots = Record<string, ClassValue> | undefined;
|
|
3
|
+
/**
|
|
4
|
+
* Widen the slot functions of a `tailwind-variants` return type so `class` /
|
|
5
|
+
* `className` also accept the `(defaults) => classes` replacer — `:b24ui` and the
|
|
6
|
+
* `class` prop flow straight into them. The concrete slot keys (and the
|
|
7
|
+
* extend-readable `slots` / `variants` / … properties) are preserved, so
|
|
8
|
+
* components keep type-checking under `noUncheckedIndexedAccess`.
|
|
9
|
+
*/
|
|
10
|
+
type WideSlotFn = (slotProps?: Record<string, any>) => string;
|
|
11
|
+
type Widen<R> = R extends (props?: infer P) => infer Slots ? {
|
|
12
|
+
(props?: P): Slots extends string ? string : {
|
|
13
|
+
[K in keyof Slots]: WideSlotFn;
|
|
14
|
+
};
|
|
15
|
+
} & Omit<R, never> : R;
|
|
16
|
+
/**
|
|
17
|
+
* Mirrors `tailwind-variants`' `TV` call signature (so config inference is
|
|
18
|
+
* unchanged) but returns the {@link Widen}-ed result. Component prop types are
|
|
19
|
+
* derived from `typeof theme` via `ComponentConfig`, not from this type, so the
|
|
20
|
+
* widening only affects the internal `b24ui.slot(...)` calls.
|
|
21
|
+
*/
|
|
22
|
+
type WideTV = {
|
|
23
|
+
<V extends TVVariants<S, B, EV>, CV extends TVCompoundVariants<V, S, B, EV, ES>, DV extends TVDefaultVariants<V, S, EV, ES>, B extends ClassValue = undefined, S extends TVSlots = undefined, E extends TVReturnType = TVReturnType<V, S, B, EV extends undefined ? {} : EV, ES extends undefined ? {} : ES>, EV extends TVVariants<ES, B, E['variants'], ES> = E['variants'], ES extends TVSlots = E['slots'] extends TVSlots ? E['slots'] : undefined>(options: {
|
|
24
|
+
extend?: E;
|
|
25
|
+
base?: B;
|
|
26
|
+
slots?: S;
|
|
27
|
+
variants?: V;
|
|
28
|
+
compoundVariants?: CV;
|
|
29
|
+
compoundSlots?: any;
|
|
30
|
+
defaultVariants?: DV;
|
|
31
|
+
}, config?: typeof defaultConfig): Widen<TVReturnType<V, S, B, EV, ES, E>>;
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* Wraps `tailwind-variants`' `tv` so slot classes can be **replaced** (not just
|
|
35
|
+
* merged) through a function form — `(defaults) => classes` — in `:b24ui`, the
|
|
36
|
+
* `class` prop and `app.config.b24ui`. The wrapper is transparent for every other
|
|
37
|
+
* usage: it preserves the `TVReturnType` (so `extend: theme` keeps working
|
|
38
|
+
* via property reads) and only intercepts the slot functions on invocation.
|
|
39
|
+
*
|
|
40
|
+
* Equal plain configs extending the same theme return the same component.
|
|
41
|
+
*/
|
|
42
|
+
export declare const tv: WideTV;
|
|
43
|
+
export {};
|
|
@@ -0,0 +1,310 @@
|
|
|
1
|
+
import { createTV, cnMerge } from "tailwind-variants";
|
|
2
|
+
import appConfig from "#build/app.config";
|
|
3
|
+
const appConfigTv = appConfig;
|
|
4
|
+
const twMergeConfig = {
|
|
5
|
+
theme: {},
|
|
6
|
+
classGroups: {
|
|
7
|
+
"b24-context": [
|
|
8
|
+
"light",
|
|
9
|
+
"dark",
|
|
10
|
+
"edge-light",
|
|
11
|
+
"edge-dark",
|
|
12
|
+
"inherit",
|
|
13
|
+
"base-mode"
|
|
14
|
+
],
|
|
15
|
+
"b24-colors": [
|
|
16
|
+
// primary ////
|
|
17
|
+
"style-filled",
|
|
18
|
+
"style-filled-inverted",
|
|
19
|
+
"style-filled-success",
|
|
20
|
+
"style-filled-success-inverted",
|
|
21
|
+
"style-filled-alert",
|
|
22
|
+
"style-filled-alert-inverted",
|
|
23
|
+
"style-filled-copilot",
|
|
24
|
+
"style-filled-alert-inverted",
|
|
25
|
+
"style-filled-warning",
|
|
26
|
+
"style-filled-warning-inverted",
|
|
27
|
+
"style-filled-no-accent",
|
|
28
|
+
"style-filled-no-accent-inverted",
|
|
29
|
+
// secondary ////
|
|
30
|
+
"style-tinted",
|
|
31
|
+
"style-tinted-alert",
|
|
32
|
+
"style-outline",
|
|
33
|
+
"style-outline-accent-1",
|
|
34
|
+
"style-outline-accent-2",
|
|
35
|
+
"style-outline-no-accent",
|
|
36
|
+
"style-tinted-no-accent-1",
|
|
37
|
+
// tertiary ////
|
|
38
|
+
"style-plain",
|
|
39
|
+
"style-plain-accent",
|
|
40
|
+
"style-plain-no-accent",
|
|
41
|
+
// custom ////
|
|
42
|
+
"style-selection",
|
|
43
|
+
"style-filled-boost",
|
|
44
|
+
// old ////
|
|
45
|
+
"style-old-default",
|
|
46
|
+
"style-old-danger",
|
|
47
|
+
"style-old-success",
|
|
48
|
+
"style-old-warning",
|
|
49
|
+
"style-old-primary",
|
|
50
|
+
"style-old-secondary",
|
|
51
|
+
"style-old-collab",
|
|
52
|
+
"style-old-ai"
|
|
53
|
+
],
|
|
54
|
+
"b24-bg": [
|
|
55
|
+
// @deprecate This rule (style-blurred-bg) is deprecated and will be removed in version `3.0.0`
|
|
56
|
+
"style-blurred-bg",
|
|
57
|
+
"style-blurred-bg-input",
|
|
58
|
+
"style-transparent-bg"
|
|
59
|
+
]
|
|
60
|
+
},
|
|
61
|
+
conflictingClassGroups: {
|
|
62
|
+
"b24-context": ["b24-context"],
|
|
63
|
+
"b24-colors": ["b24-colors"],
|
|
64
|
+
"b24-bg": ["b24-bg"]
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
const config = {
|
|
68
|
+
...appConfigTv.b24ui?.tv || {},
|
|
69
|
+
twMerge: true,
|
|
70
|
+
twMergeConfig
|
|
71
|
+
};
|
|
72
|
+
const baseTv = /* @__PURE__ */ createTV(config);
|
|
73
|
+
function findReplacer(value) {
|
|
74
|
+
if (typeof value === "function") {
|
|
75
|
+
return value;
|
|
76
|
+
}
|
|
77
|
+
if (Array.isArray(value)) {
|
|
78
|
+
for (let i = value.length - 1; i >= 0; i--) {
|
|
79
|
+
const replacer = findReplacer(value[i]);
|
|
80
|
+
if (replacer) {
|
|
81
|
+
return replacer;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
return void 0;
|
|
86
|
+
}
|
|
87
|
+
function plainClasses(value) {
|
|
88
|
+
if (Array.isArray(value)) {
|
|
89
|
+
return value.flatMap((item) => plainClasses(item));
|
|
90
|
+
}
|
|
91
|
+
if (typeof value === "function") {
|
|
92
|
+
return [];
|
|
93
|
+
}
|
|
94
|
+
return [value];
|
|
95
|
+
}
|
|
96
|
+
function applyReplacer(replacer, slotProps, resolveDefaults) {
|
|
97
|
+
return cnMerge(replacer(resolveDefaults()), ...plainClasses(slotProps.class), ...plainClasses(slotProps.className))(config) ?? "";
|
|
98
|
+
}
|
|
99
|
+
function isMemoizable(value, depth = 0) {
|
|
100
|
+
if (value === void 0 || value === null) {
|
|
101
|
+
return true;
|
|
102
|
+
}
|
|
103
|
+
const type = typeof value;
|
|
104
|
+
if (type === "string" || type === "boolean") {
|
|
105
|
+
return true;
|
|
106
|
+
}
|
|
107
|
+
if (type === "number") {
|
|
108
|
+
return Number.isFinite(value);
|
|
109
|
+
}
|
|
110
|
+
if (Array.isArray(value)) {
|
|
111
|
+
if (depth >= 4) {
|
|
112
|
+
return false;
|
|
113
|
+
}
|
|
114
|
+
for (const item of value) {
|
|
115
|
+
if (!isMemoizable(item, depth + 1)) {
|
|
116
|
+
return false;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
return true;
|
|
120
|
+
}
|
|
121
|
+
return false;
|
|
122
|
+
}
|
|
123
|
+
function memoKey(slotProps) {
|
|
124
|
+
const proto = Object.getPrototypeOf(slotProps);
|
|
125
|
+
if (proto !== Object.prototype && proto !== null) {
|
|
126
|
+
return void 0;
|
|
127
|
+
}
|
|
128
|
+
const keys = Object.keys(slotProps);
|
|
129
|
+
if (keys.length !== Object.getOwnPropertyNames(slotProps).length) {
|
|
130
|
+
return void 0;
|
|
131
|
+
}
|
|
132
|
+
for (const key of keys) {
|
|
133
|
+
if (!isMemoizable(slotProps[key])) {
|
|
134
|
+
return void 0;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
return JSON.stringify(slotProps);
|
|
138
|
+
}
|
|
139
|
+
function wrapSlots(slots) {
|
|
140
|
+
const memo = /* @__PURE__ */ new Map();
|
|
141
|
+
return new Proxy(slots, {
|
|
142
|
+
get(target, key) {
|
|
143
|
+
const slot = target[key];
|
|
144
|
+
if (typeof slot !== "function") {
|
|
145
|
+
return slot;
|
|
146
|
+
}
|
|
147
|
+
return (slotProps = {}) => {
|
|
148
|
+
const replacer = findReplacer(slotProps.class) ?? findReplacer(slotProps.className);
|
|
149
|
+
if (!replacer) {
|
|
150
|
+
const cacheKey = memoKey(slotProps);
|
|
151
|
+
if (cacheKey === void 0) {
|
|
152
|
+
return slot(slotProps);
|
|
153
|
+
}
|
|
154
|
+
let cache = memo.get(key);
|
|
155
|
+
if (!cache) {
|
|
156
|
+
cache = /* @__PURE__ */ new Map();
|
|
157
|
+
memo.set(key, cache);
|
|
158
|
+
}
|
|
159
|
+
let result = cache.get(cacheKey);
|
|
160
|
+
if (result === void 0 && !cache.has(cacheKey)) {
|
|
161
|
+
if (cache.size >= 500) {
|
|
162
|
+
cache.clear();
|
|
163
|
+
}
|
|
164
|
+
result = slot(slotProps);
|
|
165
|
+
cache.set(cacheKey, result);
|
|
166
|
+
}
|
|
167
|
+
return result;
|
|
168
|
+
}
|
|
169
|
+
return applyReplacer(replacer, slotProps, () => slot({ ...slotProps, class: void 0, className: void 0 }));
|
|
170
|
+
};
|
|
171
|
+
}
|
|
172
|
+
});
|
|
173
|
+
}
|
|
174
|
+
function defaultClasses(value) {
|
|
175
|
+
return cnMerge(value)(config) ?? "";
|
|
176
|
+
}
|
|
177
|
+
function resolveReplacers(componentConfig) {
|
|
178
|
+
if (!componentConfig || typeof componentConfig !== "object") {
|
|
179
|
+
return componentConfig;
|
|
180
|
+
}
|
|
181
|
+
const slots = componentConfig.slots;
|
|
182
|
+
const replacers = slots && typeof slots === "object" ? Object.entries(slots).filter((entry) => typeof entry[1] === "function") : [];
|
|
183
|
+
const baseReplacer = typeof componentConfig.base === "function" ? componentConfig.base : void 0;
|
|
184
|
+
if (!replacers.length && !baseReplacer) {
|
|
185
|
+
return componentConfig;
|
|
186
|
+
}
|
|
187
|
+
const extend = componentConfig.extend;
|
|
188
|
+
const resolved = { ...componentConfig };
|
|
189
|
+
let extendSlots;
|
|
190
|
+
let blankExtendBase = false;
|
|
191
|
+
if (baseReplacer) {
|
|
192
|
+
resolved.base = baseReplacer(defaultClasses(extend?.slots?.base ?? extend?.base));
|
|
193
|
+
if (extend?.slots?.base) {
|
|
194
|
+
extendSlots ??= { ...extend.slots };
|
|
195
|
+
extendSlots.base = "";
|
|
196
|
+
}
|
|
197
|
+
if (extend?.base) {
|
|
198
|
+
blankExtendBase = true;
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
if (replacers.length) {
|
|
202
|
+
const cleaned = { ...slots };
|
|
203
|
+
for (const [slot, replacer] of replacers) {
|
|
204
|
+
cleaned[slot] = replacer(defaultClasses(extend?.slots?.[slot]));
|
|
205
|
+
if (extend?.slots?.[slot]) {
|
|
206
|
+
extendSlots ??= { ...extend.slots };
|
|
207
|
+
extendSlots[slot] = "";
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
resolved.slots = cleaned;
|
|
211
|
+
}
|
|
212
|
+
if (extendSlots || blankExtendBase) {
|
|
213
|
+
const cleanedExtend = { ...extend };
|
|
214
|
+
if (extendSlots) {
|
|
215
|
+
cleanedExtend.slots = extendSlots;
|
|
216
|
+
}
|
|
217
|
+
if (blankExtendBase) {
|
|
218
|
+
cleanedExtend.base = "";
|
|
219
|
+
}
|
|
220
|
+
resolved.extend = cleanedExtend;
|
|
221
|
+
}
|
|
222
|
+
return resolved;
|
|
223
|
+
}
|
|
224
|
+
const componentCache = /* @__PURE__ */ new WeakMap();
|
|
225
|
+
const unmemoizable = Symbol("unmemoizable");
|
|
226
|
+
function componentCacheKey(componentConfig) {
|
|
227
|
+
try {
|
|
228
|
+
return JSON.stringify(componentConfig, function(k, value) {
|
|
229
|
+
if (this === componentConfig && k === "extend") {
|
|
230
|
+
return void 0;
|
|
231
|
+
}
|
|
232
|
+
if (this[k] !== value) {
|
|
233
|
+
throw unmemoizable;
|
|
234
|
+
}
|
|
235
|
+
if (value === void 0) {
|
|
236
|
+
return "\0undefined";
|
|
237
|
+
}
|
|
238
|
+
const type = typeof value;
|
|
239
|
+
if (type === "string" && value.startsWith("\0") || type === "function" || type === "symbol" || type === "bigint" || type === "number" && !Number.isFinite(value)) {
|
|
240
|
+
throw unmemoizable;
|
|
241
|
+
}
|
|
242
|
+
if (type === "object" && value && !Array.isArray(value)) {
|
|
243
|
+
const proto = Object.getPrototypeOf(value);
|
|
244
|
+
if (proto !== Object.prototype && proto !== null) {
|
|
245
|
+
throw unmemoizable;
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
return value;
|
|
249
|
+
});
|
|
250
|
+
} catch {
|
|
251
|
+
return void 0;
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
function invokeComponent(target, thisArg, args) {
|
|
255
|
+
const result = Reflect.apply(target, thisArg, args);
|
|
256
|
+
if (result && typeof result === "object") {
|
|
257
|
+
return wrapSlots(result);
|
|
258
|
+
}
|
|
259
|
+
if (typeof result === "string") {
|
|
260
|
+
const slotProps = args[0] ?? {};
|
|
261
|
+
const replacer = findReplacer(slotProps.class) ?? findReplacer(slotProps.className);
|
|
262
|
+
if (replacer) {
|
|
263
|
+
return applyReplacer(replacer, slotProps, () => Reflect.apply(target, thisArg, [{ ...slotProps, class: void 0, className: void 0 }]));
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
return result;
|
|
267
|
+
}
|
|
268
|
+
function createComponent(componentConfig) {
|
|
269
|
+
const component = baseTv(resolveReplacers(componentConfig));
|
|
270
|
+
const results = /* @__PURE__ */ new Map();
|
|
271
|
+
return new Proxy(component, {
|
|
272
|
+
apply(target, thisArg, args) {
|
|
273
|
+
const variantProps = args[0];
|
|
274
|
+
const key = args.length === 1 && variantProps && typeof variantProps === "object" ? memoKey(variantProps) : void 0;
|
|
275
|
+
if (key === void 0) {
|
|
276
|
+
return invokeComponent(target, thisArg, args);
|
|
277
|
+
}
|
|
278
|
+
let result = results.get(key);
|
|
279
|
+
if (result === void 0) {
|
|
280
|
+
if (results.size >= 500) {
|
|
281
|
+
results.clear();
|
|
282
|
+
}
|
|
283
|
+
result = invokeComponent(target, thisArg, [JSON.parse(key)]);
|
|
284
|
+
results.set(key, result);
|
|
285
|
+
}
|
|
286
|
+
return result;
|
|
287
|
+
}
|
|
288
|
+
});
|
|
289
|
+
}
|
|
290
|
+
export const tv = ((componentConfig) => {
|
|
291
|
+
const extend = componentConfig?.extend;
|
|
292
|
+
const key = extend && typeof extend === "object" ? componentCacheKey(componentConfig) : void 0;
|
|
293
|
+
if (key === void 0) {
|
|
294
|
+
return createComponent(componentConfig);
|
|
295
|
+
}
|
|
296
|
+
let cache = componentCache.get(extend);
|
|
297
|
+
if (!cache) {
|
|
298
|
+
cache = /* @__PURE__ */ new Map();
|
|
299
|
+
componentCache.set(extend, cache);
|
|
300
|
+
}
|
|
301
|
+
let component = cache.get(key);
|
|
302
|
+
if (component === void 0) {
|
|
303
|
+
if (cache.size >= 500) {
|
|
304
|
+
cache.clear();
|
|
305
|
+
}
|
|
306
|
+
component = createComponent(componentConfig);
|
|
307
|
+
cache.set(key, component);
|
|
308
|
+
}
|
|
309
|
+
return component;
|
|
310
|
+
});
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Get estimate size for virtualizers that checks each item individually
|
|
3
|
+
*/
|
|
4
|
+
export declare function getEstimateSize(items: any[], size: 'xss' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | (string & {}), descriptionKey?: string, hasDescriptionSlot?: boolean): (index: number) => number;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { get } from "./index.js";
|
|
2
|
+
function itemHasDescription(item, descriptionKey) {
|
|
3
|
+
if (typeof item !== "object" || item === null) {
|
|
4
|
+
return false;
|
|
5
|
+
}
|
|
6
|
+
const value = get(item, descriptionKey);
|
|
7
|
+
return value !== void 0 && value !== null && value !== "";
|
|
8
|
+
}
|
|
9
|
+
function getSize(size, hasDescription) {
|
|
10
|
+
const sizes = hasDescription ? {
|
|
11
|
+
xss: 40,
|
|
12
|
+
xs: 44,
|
|
13
|
+
sm: 48,
|
|
14
|
+
md: 52,
|
|
15
|
+
lg: 56,
|
|
16
|
+
xl: 60
|
|
17
|
+
} : {
|
|
18
|
+
xss: 20,
|
|
19
|
+
xs: 24,
|
|
20
|
+
sm: 28,
|
|
21
|
+
md: 32,
|
|
22
|
+
lg: 36,
|
|
23
|
+
xl: 40
|
|
24
|
+
};
|
|
25
|
+
return sizes[size] ?? sizes.md;
|
|
26
|
+
}
|
|
27
|
+
export function getEstimateSize(items, size, descriptionKey, hasDescriptionSlot) {
|
|
28
|
+
const sizeWithDescription = getSize(size, true);
|
|
29
|
+
const sizeWithoutDescription = getSize(size, false);
|
|
30
|
+
if (hasDescriptionSlot) {
|
|
31
|
+
return () => sizeWithDescription;
|
|
32
|
+
}
|
|
33
|
+
if (!descriptionKey) {
|
|
34
|
+
return () => sizeWithoutDescription;
|
|
35
|
+
}
|
|
36
|
+
return (index) => {
|
|
37
|
+
return itemHasDescription(items[index], descriptionKey) ? sizeWithDescription : sizeWithoutDescription;
|
|
38
|
+
};
|
|
39
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { VNode } from 'vue';
|
|
2
|
+
export interface SlotItem {
|
|
3
|
+
/** Stable key, unique across unwrapped fragments: path of fragment keys/positions plus the node's own key or position. */
|
|
4
|
+
key: string;
|
|
5
|
+
node: VNode;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Flattens slot vnodes: unwraps fragments (`v-for`, `<template v-if>`), drops
|
|
9
|
+
* comments and whitespace-only text, so each remaining node is a real item.
|
|
10
|
+
*
|
|
11
|
+
* Keys keep Vue's own scoping: a keyed node is keyed inside its fragment
|
|
12
|
+
* (`a/k:1` and `b/k:1` from two `v-for` do not collide), and an unkeyed node is
|
|
13
|
+
* keyed by its position in the original list, where a `v-if` placeholder comment
|
|
14
|
+
* still takes a place — toggling a `v-if` above it does not remount it.
|
|
15
|
+
*/
|
|
16
|
+
export declare function flattenSlot(nodes?: VNode[] | null, path?: string): SlotItem[];
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Comment, Fragment, Text, isVNode } from "vue";
|
|
2
|
+
export function flattenSlot(nodes, path = "") {
|
|
3
|
+
const result = [];
|
|
4
|
+
(nodes || []).forEach((node, index) => {
|
|
5
|
+
if (!isVNode(node)) {
|
|
6
|
+
return;
|
|
7
|
+
}
|
|
8
|
+
const key = `${path}${node.key != null ? `k:${String(node.key)}` : `i:${index}`}`;
|
|
9
|
+
if (node.type === Comment) {
|
|
10
|
+
return;
|
|
11
|
+
}
|
|
12
|
+
if (node.type === Text && (typeof node.children !== "string" || !node.children.trim())) {
|
|
13
|
+
return;
|
|
14
|
+
}
|
|
15
|
+
if (node.type === Fragment) {
|
|
16
|
+
result.push(...flattenSlot(Array.isArray(node.children) ? node.children : [], `${key}/`));
|
|
17
|
+
return;
|
|
18
|
+
}
|
|
19
|
+
result.push({ key, node });
|
|
20
|
+
});
|
|
21
|
+
return result;
|
|
22
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { SelectMenuItem, SelectMenuProps } from '../../../components/SelectMenu.vue';
|
|
2
|
+
export interface ColorModeSelectProps extends Omit<SelectMenuProps<SelectMenuItem[]>, 'icon' | 'items' | 'modelValue'> {
|
|
3
|
+
}
|
|
4
|
+
declare const _default: typeof __VLS_export;
|
|
5
|
+
export default _default;
|
|
6
|
+
declare const __VLS_export: import("vue").DefineComponent<ColorModeSelectProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ColorModeSelectProps> & Readonly<{}>, {
|
|
7
|
+
searchInput: boolean | Omit<import("../../../types").InputProps, "modelValue" | "defaultValue">;
|
|
8
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|