@nuxt/ui 4.7.1 → 4.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.nuxt/{ui.css → ui.static.css} +0 -10
- package/LICENSE.md +1 -1
- package/cli/commands/make/component.mjs +6 -2
- package/cli/templates.mjs +46 -20
- package/cli/utils.mjs +19 -0
- package/dist/module.json +1 -1
- package/dist/module.mjs +4 -4
- package/dist/runtime/components/Accordion.vue +15 -14
- package/dist/runtime/components/Alert.vue +20 -20
- package/dist/runtime/components/AuthForm.vue +37 -37
- package/dist/runtime/components/Avatar.d.vue.ts +4 -0
- package/dist/runtime/components/Avatar.vue +14 -12
- package/dist/runtime/components/Avatar.vue.d.ts +4 -0
- package/dist/runtime/components/AvatarGroup.d.vue.ts +4 -0
- package/dist/runtime/components/AvatarGroup.vue +11 -8
- package/dist/runtime/components/AvatarGroup.vue.d.ts +4 -0
- package/dist/runtime/components/Badge.vue +11 -11
- package/dist/runtime/components/Banner.vue +25 -23
- package/dist/runtime/components/BlogPost.d.vue.ts +1 -1
- package/dist/runtime/components/BlogPost.vue +30 -28
- package/dist/runtime/components/BlogPost.vue.d.ts +1 -1
- package/dist/runtime/components/BlogPosts.vue +6 -6
- package/dist/runtime/components/Breadcrumb.d.vue.ts +4 -0
- package/dist/runtime/components/Breadcrumb.vue +21 -18
- package/dist/runtime/components/Breadcrumb.vue.d.ts +4 -0
- package/dist/runtime/components/Button.vue +16 -16
- package/dist/runtime/components/Calendar.vue +21 -20
- package/dist/runtime/components/Card.vue +11 -11
- package/dist/runtime/components/Carousel.vue +23 -22
- package/dist/runtime/components/ChangelogVersion.vue +31 -29
- package/dist/runtime/components/ChangelogVersions.vue +8 -8
- package/dist/runtime/components/ChatMessage.d.vue.ts +6 -0
- package/dist/runtime/components/ChatMessage.vue +46 -36
- package/dist/runtime/components/ChatMessage.vue.d.ts +6 -0
- package/dist/runtime/components/ChatMessages.vue +14 -14
- package/dist/runtime/components/ChatPalette.vue +6 -6
- package/dist/runtime/components/ChatPrompt.d.vue.ts +7 -0
- package/dist/runtime/components/ChatPrompt.vue +22 -12
- package/dist/runtime/components/ChatPrompt.vue.d.ts +7 -0
- package/dist/runtime/components/ChatPromptSubmit.d.vue.ts +3 -3
- package/dist/runtime/components/ChatPromptSubmit.vue +6 -6
- package/dist/runtime/components/ChatPromptSubmit.vue.d.ts +3 -3
- package/dist/runtime/components/ChatReasoning.vue +20 -20
- package/dist/runtime/components/ChatShimmer.vue +7 -7
- package/dist/runtime/components/ChatTool.d.vue.ts +1 -1
- package/dist/runtime/components/ChatTool.vue +19 -19
- package/dist/runtime/components/ChatTool.vue.d.ts +1 -1
- package/dist/runtime/components/Checkbox.d.vue.ts +2 -0
- package/dist/runtime/components/Checkbox.vue +25 -24
- package/dist/runtime/components/Checkbox.vue.d.ts +2 -0
- package/dist/runtime/components/CheckboxGroup.d.vue.ts +1 -1
- package/dist/runtime/components/CheckboxGroup.vue +17 -14
- package/dist/runtime/components/CheckboxGroup.vue.d.ts +1 -1
- package/dist/runtime/components/Chip.vue +8 -8
- package/dist/runtime/components/Collapsible.vue +8 -7
- package/dist/runtime/components/ColorPicker.d.vue.ts +2 -0
- package/dist/runtime/components/ColorPicker.vue +10 -10
- package/dist/runtime/components/ColorPicker.vue.d.ts +2 -0
- package/dist/runtime/components/CommandPalette.d.vue.ts +5 -5
- package/dist/runtime/components/CommandPalette.vue +92 -69
- package/dist/runtime/components/CommandPalette.vue.d.ts +5 -5
- package/dist/runtime/components/Container.vue +4 -4
- package/dist/runtime/components/ContextMenu.vue +16 -15
- package/dist/runtime/components/DashboardGroup.d.vue.ts +1 -1
- package/dist/runtime/components/DashboardGroup.vue +6 -4
- package/dist/runtime/components/DashboardGroup.vue.d.ts +1 -1
- package/dist/runtime/components/DashboardNavbar.vue +16 -16
- package/dist/runtime/components/DashboardPanel.vue +7 -7
- package/dist/runtime/components/DashboardResizeHandle.vue +5 -5
- package/dist/runtime/components/DashboardSearch.d.vue.ts +16 -1
- package/dist/runtime/components/DashboardSearch.vue +25 -12
- package/dist/runtime/components/DashboardSearch.vue.d.ts +16 -1
- package/dist/runtime/components/DashboardSearchButton.d.vue.ts +2 -2
- package/dist/runtime/components/DashboardSearchButton.vue +15 -15
- package/dist/runtime/components/DashboardSearchButton.vue.d.ts +2 -2
- package/dist/runtime/components/DashboardSidebar.d.vue.ts +1 -1
- package/dist/runtime/components/DashboardSidebar.vue +22 -22
- package/dist/runtime/components/DashboardSidebar.vue.d.ts +1 -1
- package/dist/runtime/components/DashboardSidebarCollapse.d.vue.ts +1 -1
- package/dist/runtime/components/DashboardSidebarCollapse.vue +5 -5
- package/dist/runtime/components/DashboardSidebarCollapse.vue.d.ts +1 -1
- package/dist/runtime/components/DashboardSidebarToggle.d.vue.ts +1 -1
- package/dist/runtime/components/DashboardSidebarToggle.vue +5 -5
- package/dist/runtime/components/DashboardSidebarToggle.vue.d.ts +1 -1
- package/dist/runtime/components/DashboardToolbar.vue +6 -6
- package/dist/runtime/components/Drawer.d.vue.ts +1 -1
- package/dist/runtime/components/Drawer.vue +23 -22
- package/dist/runtime/components/Drawer.vue.d.ts +1 -1
- package/dist/runtime/components/DropdownMenu.vue +21 -20
- package/dist/runtime/components/Editor.vue +8 -7
- package/dist/runtime/components/EditorDragHandle.d.vue.ts +2 -2
- package/dist/runtime/components/EditorDragHandle.vue +9 -8
- package/dist/runtime/components/EditorDragHandle.vue.d.ts +2 -2
- package/dist/runtime/components/EditorToolbar.vue +10 -9
- package/dist/runtime/components/Empty.vue +14 -14
- package/dist/runtime/components/Error.d.vue.ts +9 -1
- package/dist/runtime/components/Error.vue +17 -10
- package/dist/runtime/components/Error.vue.d.ts +9 -1
- package/dist/runtime/components/FieldGroup.vue +4 -4
- package/dist/runtime/components/FileUpload.vue +36 -37
- package/dist/runtime/components/Footer.vue +10 -10
- package/dist/runtime/components/FooterColumns.vue +15 -15
- package/dist/runtime/components/Form.d.vue.ts +1 -1
- package/dist/runtime/components/Form.vue +6 -5
- package/dist/runtime/components/Form.vue.d.ts +1 -1
- package/dist/runtime/components/FormField.d.vue.ts +1 -0
- package/dist/runtime/components/FormField.vue +21 -21
- package/dist/runtime/components/FormField.vue.d.ts +1 -0
- package/dist/runtime/components/Header.vue +19 -19
- package/dist/runtime/components/Icon.vue +2 -1
- package/dist/runtime/components/Input.vue +19 -19
- package/dist/runtime/components/InputDate.vue +21 -20
- package/dist/runtime/components/InputMenu.d.vue.ts +52 -51
- package/dist/runtime/components/InputMenu.vue +66 -63
- package/dist/runtime/components/InputMenu.vue.d.ts +52 -51
- package/dist/runtime/components/InputNumber.vue +25 -24
- package/dist/runtime/components/InputTags.vue +26 -25
- package/dist/runtime/components/InputTime.vue +21 -20
- package/dist/runtime/components/Kbd.vue +5 -5
- package/dist/runtime/components/Link.d.vue.ts +2 -2
- package/dist/runtime/components/Link.vue.d.ts +2 -2
- package/dist/runtime/components/LinkBase.d.vue.ts +1 -1
- package/dist/runtime/components/LinkBase.vue.d.ts +1 -1
- package/dist/runtime/components/Listbox.d.vue.ts +13 -9
- package/dist/runtime/components/Listbox.vue +34 -32
- package/dist/runtime/components/Listbox.vue.d.ts +13 -9
- package/dist/runtime/components/Main.vue +4 -4
- package/dist/runtime/components/Marquee.vue +5 -5
- package/dist/runtime/components/Modal.d.vue.ts +2 -2
- package/dist/runtime/components/Modal.vue +25 -24
- package/dist/runtime/components/Modal.vue.d.ts +2 -2
- package/dist/runtime/components/NavigationMenu.vue +66 -65
- package/dist/runtime/components/Page.vue +7 -7
- package/dist/runtime/components/PageAnchors.vue +11 -11
- package/dist/runtime/components/PageAside.vue +9 -9
- package/dist/runtime/components/PageBody.vue +4 -4
- package/dist/runtime/components/PageCTA.vue +18 -16
- package/dist/runtime/components/PageCard.vue +25 -23
- package/dist/runtime/components/PageColumns.vue +4 -4
- package/dist/runtime/components/PageFeature.vue +17 -15
- package/dist/runtime/components/PageGrid.vue +4 -4
- package/dist/runtime/components/PageHeader.vue +14 -14
- package/dist/runtime/components/PageHero.vue +20 -18
- package/dist/runtime/components/PageLinks.vue +12 -12
- package/dist/runtime/components/PageList.vue +4 -4
- package/dist/runtime/components/PageLogos.vue +16 -16
- package/dist/runtime/components/PageSection.d.vue.ts +1 -1
- package/dist/runtime/components/PageSection.vue +24 -22
- package/dist/runtime/components/PageSection.vue.d.ts +1 -1
- package/dist/runtime/components/Pagination.d.vue.ts +2 -2
- package/dist/runtime/components/Pagination.vue +23 -22
- package/dist/runtime/components/Pagination.vue.d.ts +2 -2
- package/dist/runtime/components/PinInput.vue +15 -14
- package/dist/runtime/components/Popover.vue +9 -8
- package/dist/runtime/components/PricingPlan.vue +36 -36
- package/dist/runtime/components/PricingPlans.vue +6 -6
- package/dist/runtime/components/PricingTable.vue +44 -44
- package/dist/runtime/components/Progress.d.vue.ts +1 -1
- package/dist/runtime/components/Progress.vue +12 -11
- package/dist/runtime/components/Progress.vue.d.ts +1 -1
- package/dist/runtime/components/RadioGroup.d.vue.ts +2 -0
- package/dist/runtime/components/RadioGroup.vue +28 -27
- package/dist/runtime/components/RadioGroup.vue.d.ts +2 -0
- package/dist/runtime/components/ScrollArea.vue +13 -13
- package/dist/runtime/components/Select.vue +38 -40
- package/dist/runtime/components/SelectMenu.d.vue.ts +46 -46
- package/dist/runtime/components/SelectMenu.vue +49 -48
- package/dist/runtime/components/SelectMenu.vue.d.ts +46 -46
- package/dist/runtime/components/Separator.d.vue.ts +9 -3
- package/dist/runtime/components/Separator.vue +29 -16
- package/dist/runtime/components/Separator.vue.d.ts +9 -3
- package/dist/runtime/components/Sidebar.vue +28 -28
- package/dist/runtime/components/Skeleton.vue +5 -5
- package/dist/runtime/components/Slideover.d.vue.ts +3 -3
- package/dist/runtime/components/Slideover.vue +24 -23
- package/dist/runtime/components/Slideover.vue.d.ts +3 -3
- package/dist/runtime/components/Slider.vue +16 -15
- package/dist/runtime/components/Stepper.vue +19 -18
- package/dist/runtime/components/Switch.d.vue.ts +2 -0
- package/dist/runtime/components/Switch.vue +26 -23
- package/dist/runtime/components/Switch.vue.d.ts +2 -0
- package/dist/runtime/components/Table.vue +26 -25
- package/dist/runtime/components/Tabs.vue +22 -21
- package/dist/runtime/components/Textarea.vue +19 -18
- package/dist/runtime/components/Theme.d.vue.ts +13 -5
- package/dist/runtime/components/Theme.vue +32 -4
- package/dist/runtime/components/Theme.vue.d.ts +13 -5
- package/dist/runtime/components/Timeline.vue +15 -15
- package/dist/runtime/components/Toast.vue +35 -34
- package/dist/runtime/components/Toaster.d.vue.ts +1 -1
- package/dist/runtime/components/Toaster.vue +10 -9
- package/dist/runtime/components/Toaster.vue.d.ts +1 -1
- package/dist/runtime/components/Tooltip.vue +13 -12
- package/dist/runtime/components/Tree.vue +24 -23
- package/dist/runtime/components/User.vue +23 -21
- package/dist/runtime/components/color-mode/ColorModeAvatar.vue +5 -2
- package/dist/runtime/components/color-mode/ColorModeButton.d.vue.ts +1 -1
- package/dist/runtime/components/color-mode/ColorModeButton.vue +8 -6
- package/dist/runtime/components/color-mode/ColorModeButton.vue.d.ts +1 -1
- package/dist/runtime/components/color-mode/ColorModeImage.vue +4 -2
- package/dist/runtime/components/color-mode/ColorModeSwitch.vue +1 -0
- package/dist/runtime/components/content/ContentNavigation.vue +31 -30
- package/dist/runtime/components/content/ContentSearch.d.vue.ts +31 -4
- package/dist/runtime/components/content/ContentSearch.vue +78 -33
- package/dist/runtime/components/content/ContentSearch.vue.d.ts +31 -4
- package/dist/runtime/components/content/ContentSearchButton.d.vue.ts +2 -2
- package/dist/runtime/components/content/ContentSearchButton.vue +15 -15
- package/dist/runtime/components/content/ContentSearchButton.vue.d.ts +2 -2
- package/dist/runtime/components/content/ContentSurround.vue +14 -12
- package/dist/runtime/components/content/ContentToc.vue +34 -33
- package/dist/runtime/components/prose/A.vue +4 -4
- package/dist/runtime/components/prose/Accordion.vue +4 -4
- package/dist/runtime/components/prose/AccordionItem.vue +5 -5
- package/dist/runtime/components/prose/Badge.vue +4 -4
- package/dist/runtime/components/prose/Blockquote.vue +4 -4
- package/dist/runtime/components/prose/Callout.vue +8 -8
- package/dist/runtime/components/prose/Card.vue +12 -12
- package/dist/runtime/components/prose/CardGroup.vue +4 -4
- package/dist/runtime/components/prose/Code.vue +4 -4
- package/dist/runtime/components/prose/CodeCollapse.vue +8 -8
- package/dist/runtime/components/prose/CodeGroup.vue +9 -9
- package/dist/runtime/components/prose/CodePreview.vue +6 -6
- package/dist/runtime/components/prose/CodeTree.vue +14 -14
- package/dist/runtime/components/prose/Collapsible.vue +7 -7
- package/dist/runtime/components/prose/Em.vue +4 -4
- package/dist/runtime/components/prose/Field.vue +13 -13
- package/dist/runtime/components/prose/FieldGroup.vue +4 -4
- package/dist/runtime/components/prose/H1.vue +5 -5
- package/dist/runtime/components/prose/H2.vue +7 -7
- package/dist/runtime/components/prose/H3.vue +7 -7
- package/dist/runtime/components/prose/H4.vue +5 -5
- package/dist/runtime/components/prose/Hr.vue +4 -4
- package/dist/runtime/components/prose/Icon.vue +4 -4
- package/dist/runtime/components/prose/Img.vue +12 -12
- package/dist/runtime/components/prose/Kbd.d.vue.ts +10 -2
- package/dist/runtime/components/prose/Kbd.vue +8 -5
- package/dist/runtime/components/prose/Kbd.vue.d.ts +10 -2
- package/dist/runtime/components/prose/Li.vue +4 -4
- package/dist/runtime/components/prose/Ol.vue +4 -4
- package/dist/runtime/components/prose/P.vue +4 -4
- package/dist/runtime/components/prose/Pre.vue +9 -9
- package/dist/runtime/components/prose/Prompt.vue +12 -12
- package/dist/runtime/components/prose/Steps.vue +4 -4
- package/dist/runtime/components/prose/Strong.vue +4 -4
- package/dist/runtime/components/prose/Table.vue +5 -5
- package/dist/runtime/components/prose/Tabs.vue +4 -4
- package/dist/runtime/components/prose/TabsItem.vue +5 -5
- package/dist/runtime/components/prose/Tbody.vue +4 -4
- package/dist/runtime/components/prose/Td.vue +4 -4
- package/dist/runtime/components/prose/Th.vue +4 -4
- package/dist/runtime/components/prose/Thead.vue +4 -4
- package/dist/runtime/components/prose/Tr.vue +4 -4
- package/dist/runtime/components/prose/Ul.vue +4 -4
- package/dist/runtime/composables/defineShortcuts.js +7 -2
- package/dist/runtime/composables/index.d.ts +1 -2
- package/dist/runtime/composables/index.js +1 -2
- package/dist/runtime/composables/useAvatarGroup.d.ts +12 -1
- package/dist/runtime/composables/useAvatarGroup.js +4 -2
- package/dist/runtime/composables/useComponentIcons.js +1 -1
- package/dist/runtime/composables/useComponentProps.d.ts +180 -0
- package/dist/runtime/composables/useComponentProps.js +59 -0
- package/dist/runtime/composables/useContentSearch.d.ts +4 -2
- package/dist/runtime/composables/useContentSearch.js +64 -7
- package/dist/runtime/composables/useFieldGroup.d.ts +9 -1
- package/dist/runtime/composables/useFormField.d.ts +21 -1
- package/dist/runtime/composables/useForwardProps.d.ts +13 -0
- package/dist/runtime/composables/useForwardProps.js +14 -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 +4 -0
- package/dist/runtime/composables/useResizable.js +1 -1
- package/dist/runtime/locale/ar.js +1 -0
- package/dist/runtime/locale/az.js +1 -0
- package/dist/runtime/locale/be.js +1 -0
- package/dist/runtime/locale/bg.js +1 -0
- package/dist/runtime/locale/bn.js +1 -0
- package/dist/runtime/locale/ca.js +1 -0
- package/dist/runtime/locale/ckb.js +1 -0
- package/dist/runtime/locale/cs.js +1 -0
- package/dist/runtime/locale/da.js +1 -0
- package/dist/runtime/locale/de.js +1 -0
- package/dist/runtime/locale/de_ch.js +1 -0
- package/dist/runtime/locale/el.js +1 -0
- package/dist/runtime/locale/en.js +1 -0
- package/dist/runtime/locale/es.js +1 -0
- package/dist/runtime/locale/et.js +1 -0
- package/dist/runtime/locale/eu.js +1 -0
- package/dist/runtime/locale/fa_ir.js +1 -0
- package/dist/runtime/locale/fi.js +1 -0
- package/dist/runtime/locale/fr.js +1 -0
- package/dist/runtime/locale/gl.js +1 -0
- package/dist/runtime/locale/he.js +1 -0
- package/dist/runtime/locale/hi.js +1 -0
- package/dist/runtime/locale/hr.js +1 -0
- package/dist/runtime/locale/hu.js +1 -0
- package/dist/runtime/locale/hy.js +1 -0
- package/dist/runtime/locale/id.js +1 -0
- package/dist/runtime/locale/is.js +1 -0
- package/dist/runtime/locale/it.js +1 -0
- package/dist/runtime/locale/ja.js +1 -0
- package/dist/runtime/locale/ka.js +1 -0
- package/dist/runtime/locale/kk.js +1 -0
- package/dist/runtime/locale/km.js +1 -0
- package/dist/runtime/locale/ko.js +1 -0
- package/dist/runtime/locale/ky.js +1 -0
- package/dist/runtime/locale/lb.js +1 -0
- package/dist/runtime/locale/lo.js +1 -0
- package/dist/runtime/locale/lt.js +1 -0
- package/dist/runtime/locale/mn.js +1 -0
- package/dist/runtime/locale/ms.js +1 -0
- package/dist/runtime/locale/nb_no.js +1 -0
- package/dist/runtime/locale/nl.js +1 -0
- package/dist/runtime/locale/pl.js +1 -0
- package/dist/runtime/locale/pt.js +1 -0
- package/dist/runtime/locale/pt_br.js +1 -0
- package/dist/runtime/locale/ro.js +1 -0
- package/dist/runtime/locale/ru.js +1 -0
- package/dist/runtime/locale/sk.js +1 -0
- package/dist/runtime/locale/sl.js +1 -0
- package/dist/runtime/locale/sq.js +1 -0
- package/dist/runtime/locale/sv.js +1 -0
- package/dist/runtime/locale/th.js +7 -6
- package/dist/runtime/locale/tj.js +1 -0
- package/dist/runtime/locale/tr.js +1 -0
- package/dist/runtime/locale/ug_cn.js +1 -0
- package/dist/runtime/locale/uk.js +1 -0
- package/dist/runtime/locale/ur.js +1 -0
- package/dist/runtime/locale/uz.js +1 -0
- package/dist/runtime/locale/vi.js +1 -0
- package/dist/runtime/locale/zh_cn.js +1 -0
- package/dist/runtime/locale/zh_tw.js +1 -0
- package/dist/runtime/plugins/colors.js +1 -1
- package/dist/runtime/types/content.d.ts +1 -0
- package/dist/runtime/types/content.js +1 -0
- package/dist/runtime/types/form.d.ts +2 -2
- package/dist/runtime/types/locale.d.ts +1 -0
- package/dist/runtime/types/tv.d.ts +13 -7
- package/dist/runtime/types/utils.d.ts +3 -0
- package/dist/runtime/utils/dashboard.d.ts +1 -1
- package/dist/runtime/utils/{fuse.d.ts → search.d.ts} +2 -1
- package/dist/runtime/utils/{fuse.js → search.js} +11 -2
- package/dist/runtime/vue/components/color-mode/ColorModeSwitch.vue +1 -0
- package/dist/runtime/vue/overrides/inertia/Link.d.vue.ts +2 -2
- package/dist/runtime/vue/overrides/inertia/Link.vue +5 -0
- package/dist/runtime/vue/overrides/inertia/Link.vue.d.ts +2 -2
- package/dist/runtime/vue/overrides/inertia/LinkBase.d.vue.ts +1 -1
- package/dist/runtime/vue/overrides/inertia/LinkBase.vue.d.ts +1 -1
- package/dist/runtime/vue/overrides/none/Link.d.vue.ts +2 -2
- package/dist/runtime/vue/overrides/none/Link.vue.d.ts +2 -2
- package/dist/runtime/vue/overrides/vue-router/Link.d.vue.ts +2 -2
- package/dist/runtime/vue/overrides/vue-router/Link.vue.d.ts +2 -2
- package/dist/shared/{ui.C6mn7iap.mjs → ui.BzjkAvk7.mjs} +244 -78
- package/dist/unplugin.mjs +1 -1
- package/dist/vite.mjs +1 -1
- package/package.json +46 -53
- package/dist/runtime/composables/useComponentUI.d.ts +0 -33
- package/dist/runtime/composables/useComponentUI.js +0 -13
- package/dist/runtime/composables/useResolvedVariants.d.ts +0 -21
- package/dist/runtime/composables/useResolvedVariants.js +0 -14
|
@@ -5,20 +5,20 @@ import theme from "#build/ui/prose/ol";
|
|
|
5
5
|
<script setup>
|
|
6
6
|
import { computed } from "vue";
|
|
7
7
|
import { useAppConfig } from "#imports";
|
|
8
|
-
import {
|
|
8
|
+
import { useComponentProps } from "../../composables/useComponentProps";
|
|
9
9
|
import { tv } from "../../utils/tv";
|
|
10
|
-
const
|
|
10
|
+
const _props = defineProps({
|
|
11
11
|
class: { type: null, required: false },
|
|
12
12
|
ui: { type: Object, required: false }
|
|
13
13
|
});
|
|
14
14
|
defineSlots();
|
|
15
|
+
const props = useComponentProps("prose.ol", _props);
|
|
15
16
|
const appConfig = useAppConfig();
|
|
16
|
-
const uiProp = useComponentUI("prose.ol", props);
|
|
17
17
|
const ui = computed(() => tv({ extend: tv(theme), ...appConfig.ui?.prose?.ol || {} }));
|
|
18
18
|
</script>
|
|
19
19
|
|
|
20
20
|
<template>
|
|
21
|
-
<ol :class="ui({ class: [
|
|
21
|
+
<ol :class="ui({ class: [props.ui?.base, props.class] })">
|
|
22
22
|
<slot />
|
|
23
23
|
</ol>
|
|
24
24
|
</template>
|
|
@@ -5,20 +5,20 @@ import theme from "#build/ui/prose/p";
|
|
|
5
5
|
<script setup>
|
|
6
6
|
import { computed } from "vue";
|
|
7
7
|
import { useAppConfig } from "#imports";
|
|
8
|
-
import {
|
|
8
|
+
import { useComponentProps } from "../../composables/useComponentProps";
|
|
9
9
|
import { tv } from "../../utils/tv";
|
|
10
|
-
const
|
|
10
|
+
const _props = defineProps({
|
|
11
11
|
class: { type: null, required: false },
|
|
12
12
|
ui: { type: Object, required: false }
|
|
13
13
|
});
|
|
14
14
|
defineSlots();
|
|
15
|
+
const props = useComponentProps("prose.p", _props);
|
|
15
16
|
const appConfig = useAppConfig();
|
|
16
|
-
const uiProp = useComponentUI("prose.p", props);
|
|
17
17
|
const ui = computed(() => tv({ extend: tv(theme), ...appConfig.ui?.prose?.p || {} }));
|
|
18
18
|
</script>
|
|
19
19
|
|
|
20
20
|
<template>
|
|
21
|
-
<p :class="ui({ class: [
|
|
21
|
+
<p :class="ui({ class: [props.ui?.base, props.class] })">
|
|
22
22
|
<slot />
|
|
23
23
|
</p>
|
|
24
24
|
</template>
|
|
@@ -6,12 +6,12 @@ import theme from "#build/ui/prose/pre";
|
|
|
6
6
|
import { computed, useTemplateRef } from "vue";
|
|
7
7
|
import { useClipboard } from "@vueuse/core";
|
|
8
8
|
import { useAppConfig } from "#imports";
|
|
9
|
-
import {
|
|
9
|
+
import { useComponentProps } from "../../composables/useComponentProps";
|
|
10
10
|
import { useLocale } from "../../composables/useLocale";
|
|
11
11
|
import { tv } from "../../utils/tv";
|
|
12
12
|
import UCodeIcon from "./CodeIcon.vue";
|
|
13
13
|
import UButton from "../Button.vue";
|
|
14
|
-
const
|
|
14
|
+
const _props = defineProps({
|
|
15
15
|
icon: { type: null, required: false },
|
|
16
16
|
code: { type: String, required: false },
|
|
17
17
|
language: { type: String, required: false },
|
|
@@ -23,10 +23,10 @@ const props = defineProps({
|
|
|
23
23
|
ui: { type: Object, required: false }
|
|
24
24
|
});
|
|
25
25
|
defineSlots();
|
|
26
|
+
const props = useComponentProps("prose.pre", _props);
|
|
26
27
|
const { t } = useLocale();
|
|
27
28
|
const { copy, copied } = useClipboard();
|
|
28
29
|
const appConfig = useAppConfig();
|
|
29
|
-
const uiProp = useComponentUI("prose.pre", props);
|
|
30
30
|
const baseRef = useTemplateRef("baseRef");
|
|
31
31
|
const ui = computed(() => tv({ extend: tv(theme), ...appConfig.ui?.prose?.pre || {} })());
|
|
32
32
|
function copyCode() {
|
|
@@ -36,11 +36,11 @@ function copyCode() {
|
|
|
36
36
|
</script>
|
|
37
37
|
|
|
38
38
|
<template>
|
|
39
|
-
<div :class="ui.root({ class: [
|
|
40
|
-
<div v-if="filename && !hideHeader" :class="ui.header({ class:
|
|
41
|
-
<UCodeIcon :icon="icon" :filename="filename" :class="ui.icon({ class:
|
|
39
|
+
<div :class="ui.root({ class: [props.ui?.root], filename: !!props.filename })">
|
|
40
|
+
<div v-if="props.filename && !props.hideHeader" :class="ui.header({ class: props.ui?.header })">
|
|
41
|
+
<UCodeIcon :icon="props.icon" :filename="props.filename" :class="ui.icon({ class: props.ui?.icon })" />
|
|
42
42
|
|
|
43
|
-
<span :class="ui.filename({ class:
|
|
43
|
+
<span :class="ui.filename({ class: props.ui?.filename })">{{ props.filename }}</span>
|
|
44
44
|
</div>
|
|
45
45
|
|
|
46
46
|
<UButton
|
|
@@ -49,11 +49,11 @@ function copyCode() {
|
|
|
49
49
|
variant="outline"
|
|
50
50
|
size="sm"
|
|
51
51
|
:aria-label="t('prose.pre.copy')"
|
|
52
|
-
:class="ui.copy({ class:
|
|
52
|
+
:class="ui.copy({ class: props.ui?.copy })"
|
|
53
53
|
tabindex="-1"
|
|
54
54
|
@click="copyCode"
|
|
55
55
|
/>
|
|
56
56
|
|
|
57
|
-
<pre ref="baseRef" :class="ui.base({ class: [
|
|
57
|
+
<pre ref="baseRef" :class="ui.base({ class: [props.ui?.base, props.class] })" v-bind="$attrs"><slot /></pre>
|
|
58
58
|
</div>
|
|
59
59
|
</template>
|
|
@@ -6,14 +6,14 @@ import theme from "#build/ui/prose/prompt";
|
|
|
6
6
|
import { computed } from "vue";
|
|
7
7
|
import { useClipboard } from "@vueuse/core";
|
|
8
8
|
import { useAppConfig } from "#imports";
|
|
9
|
-
import {
|
|
9
|
+
import { useComponentProps } from "../../composables/useComponentProps";
|
|
10
10
|
import { useLocale } from "../../composables/useLocale";
|
|
11
11
|
import { getSlotChildrenText } from "../../utils";
|
|
12
12
|
import { tv } from "../../utils/tv";
|
|
13
13
|
import UIcon from "../Icon.vue";
|
|
14
14
|
import UButton from "../Button.vue";
|
|
15
15
|
defineOptions({ inheritAttrs: false });
|
|
16
|
-
const
|
|
16
|
+
const _props = defineProps({
|
|
17
17
|
description: { type: String, required: false },
|
|
18
18
|
icon: { type: null, required: false },
|
|
19
19
|
actions: { type: Array, required: false, default: () => ["copy"] },
|
|
@@ -21,10 +21,10 @@ const props = defineProps({
|
|
|
21
21
|
ui: { type: Object, required: false }
|
|
22
22
|
});
|
|
23
23
|
const slots = defineSlots();
|
|
24
|
+
const props = useComponentProps("prose.prompt", _props);
|
|
24
25
|
const { t } = useLocale();
|
|
25
26
|
const { copy, copied } = useClipboard();
|
|
26
27
|
const appConfig = useAppConfig();
|
|
27
|
-
const uiProp = useComponentUI("prose.prompt", props);
|
|
28
28
|
const ui = computed(() => tv({ extend: tv(theme), ...appConfig.ui?.prose?.prompt || {} })());
|
|
29
29
|
function getPromptText() {
|
|
30
30
|
const children = slots.default?.();
|
|
@@ -46,18 +46,18 @@ function openInWindsurf() {
|
|
|
46
46
|
</script>
|
|
47
47
|
|
|
48
48
|
<template>
|
|
49
|
-
<div :class="ui.root({ class: [
|
|
50
|
-
<UIcon v-if="icon" :name="icon" :class="ui.icon({ class:
|
|
49
|
+
<div :class="ui.root({ class: [props.ui?.root, props.class] })" v-bind="$attrs">
|
|
50
|
+
<UIcon v-if="props.icon" :name="props.icon" :class="ui.icon({ class: props.ui?.icon })" />
|
|
51
51
|
|
|
52
|
-
<div :class="ui.content({ class:
|
|
53
|
-
<p v-if="description" :class="ui.description({ class:
|
|
54
|
-
{{ description }}
|
|
52
|
+
<div :class="ui.content({ class: props.ui?.content })">
|
|
53
|
+
<p v-if="props.description" :class="ui.description({ class: props.ui?.description })">
|
|
54
|
+
{{ props.description }}
|
|
55
55
|
</p>
|
|
56
56
|
</div>
|
|
57
57
|
|
|
58
|
-
<div :class="ui.actions({ class:
|
|
58
|
+
<div :class="ui.actions({ class: props.ui?.actions })">
|
|
59
59
|
<UButton
|
|
60
|
-
v-if="actions.includes('copy')"
|
|
60
|
+
v-if="props.actions.includes('copy')"
|
|
61
61
|
:icon="copied ? appConfig.ui.icons.copyCheck : appConfig.ui.icons.copy"
|
|
62
62
|
size="sm"
|
|
63
63
|
:label="t('prose.prompt.copy')"
|
|
@@ -65,7 +65,7 @@ function openInWindsurf() {
|
|
|
65
65
|
/>
|
|
66
66
|
|
|
67
67
|
<UButton
|
|
68
|
-
v-if="actions.includes('cursor')"
|
|
68
|
+
v-if="props.actions.includes('cursor')"
|
|
69
69
|
icon="i-simple-icons-cursor"
|
|
70
70
|
color="neutral"
|
|
71
71
|
variant="outline"
|
|
@@ -75,7 +75,7 @@ function openInWindsurf() {
|
|
|
75
75
|
/>
|
|
76
76
|
|
|
77
77
|
<UButton
|
|
78
|
-
v-if="actions.includes('windsurf')"
|
|
78
|
+
v-if="props.actions.includes('windsurf')"
|
|
79
79
|
icon="i-simple-icons-windsurf"
|
|
80
80
|
color="neutral"
|
|
81
81
|
variant="outline"
|
|
@@ -5,21 +5,21 @@ import theme from "#build/ui/prose/steps";
|
|
|
5
5
|
<script setup>
|
|
6
6
|
import { computed } from "vue";
|
|
7
7
|
import { useAppConfig } from "#imports";
|
|
8
|
-
import {
|
|
8
|
+
import { useComponentProps } from "../../composables/useComponentProps";
|
|
9
9
|
import { tv } from "../../utils/tv";
|
|
10
|
-
const
|
|
10
|
+
const _props = defineProps({
|
|
11
11
|
level: { type: null, required: false },
|
|
12
12
|
class: { type: null, required: false },
|
|
13
13
|
ui: { type: Object, required: false }
|
|
14
14
|
});
|
|
15
15
|
defineSlots();
|
|
16
|
+
const props = useComponentProps("prose.steps", _props);
|
|
16
17
|
const appConfig = useAppConfig();
|
|
17
|
-
const uiProp = useComponentUI("prose.steps", props);
|
|
18
18
|
const ui = computed(() => tv({ extend: tv(theme), ...appConfig.ui?.prose?.steps || {} }));
|
|
19
19
|
</script>
|
|
20
20
|
|
|
21
21
|
<template>
|
|
22
|
-
<div :class="ui({ class: [
|
|
22
|
+
<div :class="ui({ class: [props.ui?.base, props.class], level: props.level })">
|
|
23
23
|
<slot />
|
|
24
24
|
</div>
|
|
25
25
|
</template>
|
|
@@ -5,20 +5,20 @@ import theme from "#build/ui/prose/strong";
|
|
|
5
5
|
<script setup>
|
|
6
6
|
import { computed } from "vue";
|
|
7
7
|
import { useAppConfig } from "#imports";
|
|
8
|
-
import {
|
|
8
|
+
import { useComponentProps } from "../../composables/useComponentProps";
|
|
9
9
|
import { tv } from "../../utils/tv";
|
|
10
|
-
const
|
|
10
|
+
const _props = defineProps({
|
|
11
11
|
class: { type: null, required: false },
|
|
12
12
|
ui: { type: Object, required: false }
|
|
13
13
|
});
|
|
14
14
|
defineSlots();
|
|
15
|
+
const props = useComponentProps("prose.strong", _props);
|
|
15
16
|
const appConfig = useAppConfig();
|
|
16
|
-
const uiProp = useComponentUI("prose.strong", props);
|
|
17
17
|
const ui = computed(() => tv({ extend: tv(theme), ...appConfig.ui?.prose?.strong || {} }));
|
|
18
18
|
</script>
|
|
19
19
|
|
|
20
20
|
<template>
|
|
21
|
-
<strong :class="ui({ class: [
|
|
21
|
+
<strong :class="ui({ class: [props.ui?.base, props.class] })">
|
|
22
22
|
<slot />
|
|
23
23
|
</strong>
|
|
24
24
|
</template>
|
|
@@ -5,21 +5,21 @@ import theme from "#build/ui/prose/table";
|
|
|
5
5
|
<script setup>
|
|
6
6
|
import { computed } from "vue";
|
|
7
7
|
import { useAppConfig } from "#imports";
|
|
8
|
-
import {
|
|
8
|
+
import { useComponentProps } from "../../composables/useComponentProps";
|
|
9
9
|
import { tv } from "../../utils/tv";
|
|
10
|
-
const
|
|
10
|
+
const _props = defineProps({
|
|
11
11
|
class: { type: null, required: false },
|
|
12
12
|
ui: { type: Object, required: false }
|
|
13
13
|
});
|
|
14
14
|
defineSlots();
|
|
15
|
+
const props = useComponentProps("prose.table", _props);
|
|
15
16
|
const appConfig = useAppConfig();
|
|
16
|
-
const uiProp = useComponentUI("prose.table", props);
|
|
17
17
|
const ui = computed(() => tv({ extend: tv(theme), ...appConfig.ui?.prose?.table || {} })());
|
|
18
18
|
</script>
|
|
19
19
|
|
|
20
20
|
<template>
|
|
21
|
-
<div :class="ui.root({ class: [
|
|
22
|
-
<table :class="ui.base({ class:
|
|
21
|
+
<div :class="ui.root({ class: [props.ui?.root, props.class] })">
|
|
22
|
+
<table :class="ui.base({ class: props.ui?.base })">
|
|
23
23
|
<slot />
|
|
24
24
|
</table>
|
|
25
25
|
</div>
|
|
@@ -5,11 +5,11 @@ import theme from "#build/ui/prose/tabs";
|
|
|
5
5
|
<script setup>
|
|
6
6
|
import { computed, watch, onMounted, ref, onBeforeUpdate } from "vue";
|
|
7
7
|
import { useState, useAppConfig } from "#imports";
|
|
8
|
-
import {
|
|
8
|
+
import { useComponentProps } from "../../composables/useComponentProps";
|
|
9
9
|
import { transformUI } from "../../utils";
|
|
10
10
|
import { tv } from "../../utils/tv";
|
|
11
11
|
import UTabs from "../Tabs.vue";
|
|
12
|
-
const
|
|
12
|
+
const _props = defineProps({
|
|
13
13
|
defaultValue: { type: String, required: false, default: "0" },
|
|
14
14
|
sync: { type: String, required: false },
|
|
15
15
|
hash: { type: String, required: false },
|
|
@@ -17,9 +17,9 @@ const props = defineProps({
|
|
|
17
17
|
ui: { type: Object, required: false }
|
|
18
18
|
});
|
|
19
19
|
const slots = defineSlots();
|
|
20
|
+
const props = useComponentProps("prose.tabs", _props);
|
|
20
21
|
const model = defineModel({ type: String });
|
|
21
22
|
const appConfig = useAppConfig();
|
|
22
|
-
const uiProp = useComponentUI("prose.tabs", props);
|
|
23
23
|
const ui = computed(() => tv({ extend: tv(theme), ...appConfig.ui?.prose?.tabs || {} }));
|
|
24
24
|
const rerenderCount = ref(1);
|
|
25
25
|
const items = computed(() => {
|
|
@@ -72,7 +72,7 @@ onBeforeUpdate(() => rerenderCount.value++);
|
|
|
72
72
|
:items="items"
|
|
73
73
|
:class="props.class"
|
|
74
74
|
:unmount-on-hide="false"
|
|
75
|
-
:ui="transformUI(ui(),
|
|
75
|
+
:ui="transformUI(ui(), props.ui)"
|
|
76
76
|
@update:model-value="onUpdateModelValue"
|
|
77
77
|
>
|
|
78
78
|
<template #content="{ item }">
|
|
@@ -5,24 +5,24 @@ import theme from "#build/ui/prose/tabs-item";
|
|
|
5
5
|
<script setup>
|
|
6
6
|
import { computed } from "vue";
|
|
7
7
|
import { useAppConfig } from "#imports";
|
|
8
|
-
import {
|
|
8
|
+
import { useComponentProps } from "../../composables/useComponentProps";
|
|
9
9
|
import { tv } from "../../utils/tv";
|
|
10
|
-
const
|
|
10
|
+
const _props = defineProps({
|
|
11
11
|
label: { type: String, required: true },
|
|
12
12
|
description: { type: String, required: false },
|
|
13
13
|
class: { type: null, required: false },
|
|
14
14
|
ui: { type: Object, required: false }
|
|
15
15
|
});
|
|
16
16
|
defineSlots();
|
|
17
|
+
const props = useComponentProps("prose.tabsItem", _props);
|
|
17
18
|
const appConfig = useAppConfig();
|
|
18
|
-
const uiProp = useComponentUI("prose.tabsItem", props);
|
|
19
19
|
const ui = computed(() => tv({ extend: tv(theme), ...appConfig.ui?.prose?.tabsItem || {} }));
|
|
20
20
|
</script>
|
|
21
21
|
|
|
22
22
|
<template>
|
|
23
|
-
<div :class="ui({ class: [
|
|
23
|
+
<div :class="ui({ class: [props.ui?.base, props.class] })">
|
|
24
24
|
<slot>
|
|
25
|
-
{{ description }}
|
|
25
|
+
{{ props.description }}
|
|
26
26
|
</slot>
|
|
27
27
|
</div>
|
|
28
28
|
</template>
|
|
@@ -5,20 +5,20 @@ import theme from "#build/ui/prose/tbody";
|
|
|
5
5
|
<script setup>
|
|
6
6
|
import { computed } from "vue";
|
|
7
7
|
import { useAppConfig } from "#imports";
|
|
8
|
-
import {
|
|
8
|
+
import { useComponentProps } from "../../composables/useComponentProps";
|
|
9
9
|
import { tv } from "../../utils/tv";
|
|
10
|
-
const
|
|
10
|
+
const _props = defineProps({
|
|
11
11
|
class: { type: null, required: false },
|
|
12
12
|
ui: { type: Object, required: false }
|
|
13
13
|
});
|
|
14
14
|
defineSlots();
|
|
15
|
+
const props = useComponentProps("prose.tbody", _props);
|
|
15
16
|
const appConfig = useAppConfig();
|
|
16
|
-
const uiProp = useComponentUI("prose.tbody", props);
|
|
17
17
|
const ui = computed(() => tv({ extend: tv(theme), ...appConfig.ui?.prose?.tbody || {} }));
|
|
18
18
|
</script>
|
|
19
19
|
|
|
20
20
|
<template>
|
|
21
|
-
<tbody :class="ui({ class: [
|
|
21
|
+
<tbody :class="ui({ class: [props.ui?.base, props.class] })">
|
|
22
22
|
<slot />
|
|
23
23
|
</tbody>
|
|
24
24
|
</template>
|
|
@@ -5,21 +5,21 @@ import theme from "#build/ui/prose/td";
|
|
|
5
5
|
<script setup>
|
|
6
6
|
import { computed } from "vue";
|
|
7
7
|
import { useAppConfig } from "#imports";
|
|
8
|
-
import {
|
|
8
|
+
import { useComponentProps } from "../../composables/useComponentProps";
|
|
9
9
|
import { tv } from "../../utils/tv";
|
|
10
|
-
const
|
|
10
|
+
const _props = defineProps({
|
|
11
11
|
align: { type: String, required: false },
|
|
12
12
|
class: { type: null, required: false },
|
|
13
13
|
ui: { type: Object, required: false }
|
|
14
14
|
});
|
|
15
15
|
defineSlots();
|
|
16
|
+
const props = useComponentProps("prose.td", _props);
|
|
16
17
|
const appConfig = useAppConfig();
|
|
17
|
-
const uiProp = useComponentUI("prose.td", props);
|
|
18
18
|
const ui = computed(() => tv({ extend: tv(theme), ...appConfig.ui?.prose?.td || {} }));
|
|
19
19
|
</script>
|
|
20
20
|
|
|
21
21
|
<template>
|
|
22
|
-
<td :class="ui({ align: props.align, class: [
|
|
22
|
+
<td :class="ui({ align: props.align, class: [props.ui?.base, props.class] })">
|
|
23
23
|
<slot />
|
|
24
24
|
</td>
|
|
25
25
|
</template>
|
|
@@ -5,21 +5,21 @@ import theme from "#build/ui/prose/th";
|
|
|
5
5
|
<script setup>
|
|
6
6
|
import { computed } from "vue";
|
|
7
7
|
import { useAppConfig } from "#imports";
|
|
8
|
-
import {
|
|
8
|
+
import { useComponentProps } from "../../composables/useComponentProps";
|
|
9
9
|
import { tv } from "../../utils/tv";
|
|
10
|
-
const
|
|
10
|
+
const _props = defineProps({
|
|
11
11
|
align: { type: String, required: false },
|
|
12
12
|
class: { type: null, required: false },
|
|
13
13
|
ui: { type: Object, required: false }
|
|
14
14
|
});
|
|
15
15
|
defineSlots();
|
|
16
|
+
const props = useComponentProps("prose.th", _props);
|
|
16
17
|
const appConfig = useAppConfig();
|
|
17
|
-
const uiProp = useComponentUI("prose.th", props);
|
|
18
18
|
const ui = computed(() => tv({ extend: tv(theme), ...appConfig.ui?.prose?.th || {} }));
|
|
19
19
|
</script>
|
|
20
20
|
|
|
21
21
|
<template>
|
|
22
|
-
<th :class="ui({ align: props.align, class: [
|
|
22
|
+
<th :class="ui({ align: props.align, class: [props.ui?.base, props.class] })">
|
|
23
23
|
<slot />
|
|
24
24
|
</th>
|
|
25
25
|
</template>
|
|
@@ -5,20 +5,20 @@ import theme from "#build/ui/prose/thead";
|
|
|
5
5
|
<script setup>
|
|
6
6
|
import { computed } from "vue";
|
|
7
7
|
import { useAppConfig } from "#imports";
|
|
8
|
-
import {
|
|
8
|
+
import { useComponentProps } from "../../composables/useComponentProps";
|
|
9
9
|
import { tv } from "../../utils/tv";
|
|
10
|
-
const
|
|
10
|
+
const _props = defineProps({
|
|
11
11
|
class: { type: null, required: false },
|
|
12
12
|
ui: { type: Object, required: false }
|
|
13
13
|
});
|
|
14
14
|
defineSlots();
|
|
15
|
+
const props = useComponentProps("prose.thead", _props);
|
|
15
16
|
const appConfig = useAppConfig();
|
|
16
|
-
const uiProp = useComponentUI("prose.thead", props);
|
|
17
17
|
const ui = computed(() => tv({ extend: tv(theme), ...appConfig.ui?.prose?.thead || {} }));
|
|
18
18
|
</script>
|
|
19
19
|
|
|
20
20
|
<template>
|
|
21
|
-
<thead :class="ui({ class: [
|
|
21
|
+
<thead :class="ui({ class: [props.ui?.base, props.class] })">
|
|
22
22
|
<slot />
|
|
23
23
|
</thead>
|
|
24
24
|
</template>
|
|
@@ -5,20 +5,20 @@ import theme from "#build/ui/prose/tr";
|
|
|
5
5
|
<script setup>
|
|
6
6
|
import { computed } from "vue";
|
|
7
7
|
import { useAppConfig } from "#imports";
|
|
8
|
-
import {
|
|
8
|
+
import { useComponentProps } from "../../composables/useComponentProps";
|
|
9
9
|
import { tv } from "../../utils/tv";
|
|
10
|
-
const
|
|
10
|
+
const _props = defineProps({
|
|
11
11
|
class: { type: null, required: false },
|
|
12
12
|
ui: { type: Object, required: false }
|
|
13
13
|
});
|
|
14
14
|
defineSlots();
|
|
15
|
+
const props = useComponentProps("prose.tr", _props);
|
|
15
16
|
const appConfig = useAppConfig();
|
|
16
|
-
const uiProp = useComponentUI("prose.tr", props);
|
|
17
17
|
const ui = computed(() => tv({ extend: tv(theme), ...appConfig.ui?.prose?.tr || {} }));
|
|
18
18
|
</script>
|
|
19
19
|
|
|
20
20
|
<template>
|
|
21
|
-
<tr :class="ui({ class: [
|
|
21
|
+
<tr :class="ui({ class: [props.ui?.base, props.class] })">
|
|
22
22
|
<slot />
|
|
23
23
|
</tr>
|
|
24
24
|
</template>
|
|
@@ -5,20 +5,20 @@ import theme from "#build/ui/prose/ul";
|
|
|
5
5
|
<script setup>
|
|
6
6
|
import { computed } from "vue";
|
|
7
7
|
import { useAppConfig } from "#imports";
|
|
8
|
-
import {
|
|
8
|
+
import { useComponentProps } from "../../composables/useComponentProps";
|
|
9
9
|
import { tv } from "../../utils/tv";
|
|
10
|
-
const
|
|
10
|
+
const _props = defineProps({
|
|
11
11
|
class: { type: null, required: false },
|
|
12
12
|
ui: { type: Object, required: false }
|
|
13
13
|
});
|
|
14
14
|
defineSlots();
|
|
15
|
+
const props = useComponentProps("prose.ul", _props);
|
|
15
16
|
const appConfig = useAppConfig();
|
|
16
|
-
const uiProp = useComponentUI("prose.ul", props);
|
|
17
17
|
const ui = computed(() => tv({ extend: tv(theme), ...appConfig.ui?.prose?.ul || {} }));
|
|
18
18
|
</script>
|
|
19
19
|
|
|
20
20
|
<template>
|
|
21
|
-
<ul :class="ui({ class: [
|
|
21
|
+
<ul :class="ui({ class: [props.ui?.base, props.class] })">
|
|
22
22
|
<slot />
|
|
23
23
|
</ul>
|
|
24
24
|
</template>
|
|
@@ -61,8 +61,9 @@ export function defineShortcuts(config, options = {}) {
|
|
|
61
61
|
if (!e.key) {
|
|
62
62
|
return;
|
|
63
63
|
}
|
|
64
|
-
const
|
|
65
|
-
const
|
|
64
|
+
const useCode = layoutIndependent || e.altKey;
|
|
65
|
+
const alphabetKey = useCode ? /^Key[A-Z]$/i.test(e.code) : /^[a-z]{1}$/i.test(e.key);
|
|
66
|
+
const shiftableKey = useCode ? shiftableCodes.includes(e.code) : shiftableKeys.includes(e.key.toLowerCase());
|
|
66
67
|
let chainedKey;
|
|
67
68
|
chainedInputs.value.push(layoutIndependent ? e.code : e.key);
|
|
68
69
|
if (chainedInputs.value.length >= 2) {
|
|
@@ -84,6 +85,10 @@ export function defineShortcuts(config, options = {}) {
|
|
|
84
85
|
if (e.code !== shortcut.key) {
|
|
85
86
|
continue;
|
|
86
87
|
}
|
|
88
|
+
} else if (shortcut.altKey && e.altKey) {
|
|
89
|
+
if (e.code !== convertKeyToCode(shortcut.key)) {
|
|
90
|
+
continue;
|
|
91
|
+
}
|
|
87
92
|
} else {
|
|
88
93
|
if (e.key.toLowerCase() !== shortcut.key) {
|
|
89
94
|
continue;
|
|
@@ -2,7 +2,7 @@ export * from './defineLocale';
|
|
|
2
2
|
export * from './defineShortcuts';
|
|
3
3
|
export * from './useAvatarGroup';
|
|
4
4
|
export * from './useComponentIcons';
|
|
5
|
-
export * from './
|
|
5
|
+
export * from './useComponentProps';
|
|
6
6
|
export * from './useContentSearch';
|
|
7
7
|
export * from './useEditorMenu';
|
|
8
8
|
export * from './useFieldGroup';
|
|
@@ -15,7 +15,6 @@ export * from './useLocale';
|
|
|
15
15
|
export * from './useOverlay';
|
|
16
16
|
export * from './usePortal';
|
|
17
17
|
export * from './useResizable';
|
|
18
|
-
export * from './useResolvedVariants';
|
|
19
18
|
export * from './useScrollShadow';
|
|
20
19
|
export * from './useScrollspy';
|
|
21
20
|
export * from './useToast';
|
|
@@ -2,7 +2,7 @@ export * from "./defineLocale.js";
|
|
|
2
2
|
export * from "./defineShortcuts.js";
|
|
3
3
|
export * from "./useAvatarGroup.js";
|
|
4
4
|
export * from "./useComponentIcons.js";
|
|
5
|
-
export * from "./
|
|
5
|
+
export * from "./useComponentProps.js";
|
|
6
6
|
export * from "./useContentSearch.js";
|
|
7
7
|
export * from "./useEditorMenu.js";
|
|
8
8
|
export * from "./useFieldGroup.js";
|
|
@@ -15,7 +15,6 @@ export * from "./useLocale.js";
|
|
|
15
15
|
export * from "./useOverlay.js";
|
|
16
16
|
export * from "./usePortal.js";
|
|
17
17
|
export * from "./useResizable.js";
|
|
18
|
-
export * from "./useResolvedVariants.js";
|
|
19
18
|
export * from "./useScrollShadow.js";
|
|
20
19
|
export * from "./useScrollspy.js";
|
|
21
20
|
export * from "./useToast.js";
|
|
@@ -2,9 +2,20 @@ import type { ComputedRef, InjectionKey } from 'vue';
|
|
|
2
2
|
import type { AvatarGroupProps } from '../types';
|
|
3
3
|
export declare const avatarGroupInjectionKey: InjectionKey<ComputedRef<{
|
|
4
4
|
size: AvatarGroupProps['size'];
|
|
5
|
+
color: AvatarGroupProps['color'];
|
|
5
6
|
}>>;
|
|
7
|
+
/**
|
|
8
|
+
* Reads `size` and `color` from a wrapping `<UAvatarGroup>`.
|
|
9
|
+
*
|
|
10
|
+
* **Always pass the raw `_props`, never the `useComponentProps` proxy** — the
|
|
11
|
+
* fallback `props.size ?? avatarGroup?.value.size` must keep the wrapping group
|
|
12
|
+
* winning over `<UTheme :props>`. To still apply theme defaults on bare avatars,
|
|
13
|
+
* fall back to the proxy at the `tv()` call site: `size: size.value ?? props.size`.
|
|
14
|
+
*/
|
|
6
15
|
export declare function useAvatarGroup(props: {
|
|
7
16
|
size: AvatarGroupProps['size'];
|
|
17
|
+
color: AvatarGroupProps['color'];
|
|
8
18
|
}): {
|
|
9
|
-
size: ComputedRef<"
|
|
19
|
+
size: ComputedRef<"md" | "3xs" | "2xs" | "xs" | "sm" | "lg" | "xl" | "2xl" | "3xl" | undefined>;
|
|
20
|
+
color: ComputedRef<"error" | "neutral" | "primary" | "secondary" | "success" | "info" | "warning" | undefined>;
|
|
10
21
|
};
|
|
@@ -3,8 +3,10 @@ export const avatarGroupInjectionKey = Symbol("nuxt-ui.avatar-group");
|
|
|
3
3
|
export function useAvatarGroup(props) {
|
|
4
4
|
const avatarGroup = inject(avatarGroupInjectionKey, void 0);
|
|
5
5
|
const size = computed(() => props.size ?? avatarGroup?.value.size);
|
|
6
|
-
|
|
6
|
+
const color = computed(() => props.color ?? avatarGroup?.value.color);
|
|
7
|
+
provide(avatarGroupInjectionKey, computed(() => ({ size: size.value, color: color.value })));
|
|
7
8
|
return {
|
|
8
|
-
size
|
|
9
|
+
size,
|
|
10
|
+
color
|
|
9
11
|
};
|
|
10
12
|
}
|
|
@@ -4,7 +4,7 @@ export function useComponentIcons(componentProps) {
|
|
|
4
4
|
const appConfig = useAppConfig();
|
|
5
5
|
const props = computed(() => toValue(componentProps));
|
|
6
6
|
const isLeading = computed(() => props.value.icon && props.value.leading || props.value.icon && !props.value.trailing || props.value.loading && !props.value.trailing || !!props.value.leadingIcon);
|
|
7
|
-
const isTrailing = computed(() => props.value.icon && props.value.trailing || props.value.loading && props.value.trailing || !!props.value.trailingIcon);
|
|
7
|
+
const isTrailing = computed(() => props.value.icon && props.value.trailing || props.value.loading && props.value.trailing || !!props.value.trailingIcon && props.value.trailing !== false);
|
|
8
8
|
const leadingIconName = computed(() => {
|
|
9
9
|
if (props.value.loading) {
|
|
10
10
|
return props.value.loadingIcon || appConfig.ui.icons.loading;
|