@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
|
@@ -6,43 +6,43 @@ import theme from "#build/ui/page-anchors";
|
|
|
6
6
|
import { computed } from "vue";
|
|
7
7
|
import { Primitive } from "reka-ui";
|
|
8
8
|
import { useAppConfig } from "#imports";
|
|
9
|
-
import {
|
|
9
|
+
import { useComponentProps } from "../composables/useComponentProps";
|
|
10
10
|
import { pickLinkProps } from "../utils/link";
|
|
11
11
|
import { tv } from "../utils/tv";
|
|
12
12
|
import ULink from "./Link.vue";
|
|
13
13
|
import ULinkBase from "./LinkBase.vue";
|
|
14
14
|
import UIcon from "./Icon.vue";
|
|
15
|
-
const
|
|
15
|
+
const _props = defineProps({
|
|
16
16
|
as: { type: null, required: false, default: "nav" },
|
|
17
17
|
links: { type: Array, required: false },
|
|
18
18
|
class: { type: null, required: false },
|
|
19
19
|
ui: { type: Object, required: false }
|
|
20
20
|
});
|
|
21
21
|
const slots = defineSlots();
|
|
22
|
+
const props = useComponentProps("pageAnchors", _props);
|
|
22
23
|
const appConfig = useAppConfig();
|
|
23
|
-
const uiProp = useComponentUI("pageAnchors", props);
|
|
24
24
|
const ui = computed(() => tv({ extend: tv(theme), ...appConfig.ui?.pageAnchors || {} })());
|
|
25
25
|
</script>
|
|
26
26
|
|
|
27
27
|
<template>
|
|
28
|
-
<Primitive :as="as" data-slot="root" :class="ui.root({ class: [
|
|
29
|
-
<ul data-slot="list" :class="ui.list({ class:
|
|
30
|
-
<li v-for="(link, index) in links" :key="index" data-slot="item" :class="ui.item({ class: [
|
|
28
|
+
<Primitive :as="props.as" data-slot="root" :class="ui.root({ class: [props.ui?.root, props.class] })">
|
|
29
|
+
<ul data-slot="list" :class="ui.list({ class: props.ui?.list })">
|
|
30
|
+
<li v-for="(link, index) in props.links" :key="index" data-slot="item" :class="ui.item({ class: [props.ui?.item, link.ui?.item] })">
|
|
31
31
|
<ULink v-slot="{ active, ...slotProps }" v-bind="pickLinkProps(link)" custom>
|
|
32
|
-
<ULinkBase v-bind="slotProps" data-slot="link" :class="ui.link({ class: [
|
|
32
|
+
<ULinkBase v-bind="slotProps" data-slot="link" :class="ui.link({ class: [props.ui?.link, link.ui?.link, link.class], active })">
|
|
33
33
|
<slot name="link" :link="link" :active="active" :ui="ui">
|
|
34
|
-
<div v-if="link.icon || !!slots['link-leading']" data-slot="linkLeading" :class="ui.linkLeading({ class: [
|
|
34
|
+
<div v-if="link.icon || !!slots['link-leading']" data-slot="linkLeading" :class="ui.linkLeading({ class: [props.ui?.linkLeading, link.ui?.linkLeading], active })">
|
|
35
35
|
<slot name="link-leading" :link="link" :active="active" :ui="ui">
|
|
36
|
-
<UIcon v-if="link.icon" :name="link.icon" data-slot="linkLeadingIcon" :class="ui.linkLeadingIcon({ class: [
|
|
36
|
+
<UIcon v-if="link.icon" :name="link.icon" data-slot="linkLeadingIcon" :class="ui.linkLeadingIcon({ class: [props.ui?.linkLeadingIcon, link.ui?.linkLeadingIcon], active })" />
|
|
37
37
|
</slot>
|
|
38
38
|
</div>
|
|
39
39
|
|
|
40
|
-
<span v-if="link.label || !!slots['link-label']" data-slot="linkLabel" :class="ui.linkLabel({ class: [
|
|
40
|
+
<span v-if="link.label || !!slots['link-label']" data-slot="linkLabel" :class="ui.linkLabel({ class: [props.ui?.linkLabel, link.ui?.linkLabel], active })">
|
|
41
41
|
<slot name="link-label" :link="link" :active="active">
|
|
42
42
|
{{ link.label }}
|
|
43
43
|
</slot>
|
|
44
44
|
|
|
45
|
-
<UIcon v-if="link.target === '_blank'" :name="appConfig.ui.icons.external" data-slot="linkLabelExternalIcon" :class="ui.linkLabelExternalIcon({ class: [
|
|
45
|
+
<UIcon v-if="link.target === '_blank'" :name="appConfig.ui.icons.external" data-slot="linkLabelExternalIcon" :class="ui.linkLabelExternalIcon({ class: [props.ui?.linkLabelExternalIcon, link.ui?.linkLabelExternalIcon], active })" />
|
|
46
46
|
</span>
|
|
47
47
|
|
|
48
48
|
<slot name="link-trailing" :link="link" :active="active" />
|
|
@@ -6,28 +6,28 @@ import theme from "#build/ui/page-aside";
|
|
|
6
6
|
import { computed } from "vue";
|
|
7
7
|
import { Primitive } from "reka-ui";
|
|
8
8
|
import { useAppConfig } from "#imports";
|
|
9
|
-
import {
|
|
9
|
+
import { useComponentProps } from "../composables/useComponentProps";
|
|
10
10
|
import { tv } from "../utils/tv";
|
|
11
|
-
const
|
|
11
|
+
const _props = defineProps({
|
|
12
12
|
as: { type: null, required: false, default: "aside" },
|
|
13
13
|
class: { type: null, required: false },
|
|
14
14
|
ui: { type: Object, required: false }
|
|
15
15
|
});
|
|
16
16
|
const slots = defineSlots();
|
|
17
|
+
const props = useComponentProps("pageAside", _props);
|
|
17
18
|
const appConfig = useAppConfig();
|
|
18
|
-
const uiProp = useComponentUI("pageAside", props);
|
|
19
19
|
const ui = computed(() => tv({ extend: tv(theme), ...appConfig.ui?.pageAside || {} })());
|
|
20
20
|
</script>
|
|
21
21
|
|
|
22
22
|
<template>
|
|
23
|
-
<Primitive :as="as" data-slot="root" :class="ui.root({ class: [
|
|
24
|
-
<div data-slot="container" :class="ui.container({ class:
|
|
25
|
-
<div v-if="!!slots.top" data-slot="top" :class="ui.top({ class:
|
|
26
|
-
<div data-slot="topHeader" :class="ui.topHeader({ class:
|
|
27
|
-
<div data-slot="topBody" :class="ui.topBody({ class:
|
|
23
|
+
<Primitive :as="props.as" data-slot="root" :class="ui.root({ class: [props.ui?.root, props.class] })">
|
|
24
|
+
<div data-slot="container" :class="ui.container({ class: props.ui?.container })">
|
|
25
|
+
<div v-if="!!slots.top" data-slot="top" :class="ui.top({ class: props.ui?.top })">
|
|
26
|
+
<div data-slot="topHeader" :class="ui.topHeader({ class: props.ui?.topHeader })" />
|
|
27
|
+
<div data-slot="topBody" :class="ui.topBody({ class: props.ui?.topBody })">
|
|
28
28
|
<slot name="top" />
|
|
29
29
|
</div>
|
|
30
|
-
<div data-slot="topFooter" :class="ui.topFooter({ class:
|
|
30
|
+
<div data-slot="topFooter" :class="ui.topFooter({ class: props.ui?.topFooter })" />
|
|
31
31
|
</div>
|
|
32
32
|
|
|
33
33
|
<slot />
|
|
@@ -7,20 +7,20 @@ import { computed } from "vue";
|
|
|
7
7
|
import { Primitive } from "reka-ui";
|
|
8
8
|
import { useAppConfig } from "#imports";
|
|
9
9
|
import { tv } from "../utils/tv";
|
|
10
|
-
import {
|
|
11
|
-
const
|
|
10
|
+
import { useComponentProps } from "../composables/useComponentProps";
|
|
11
|
+
const _props = defineProps({
|
|
12
12
|
as: { type: null, 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("pageBody", _props);
|
|
17
18
|
const appConfig = useAppConfig();
|
|
18
|
-
const uiProp = useComponentUI("pageBody", props);
|
|
19
19
|
const ui = computed(() => tv({ extend: tv(theme), ...appConfig.ui?.pageBody || {} }));
|
|
20
20
|
</script>
|
|
21
21
|
|
|
22
22
|
<template>
|
|
23
|
-
<Primitive :as="as" :class="ui({ class: [
|
|
23
|
+
<Primitive :as="props.as" :class="ui({ class: [props.ui?.base, props.class] })">
|
|
24
24
|
<slot />
|
|
25
25
|
</Primitive>
|
|
26
26
|
</template>
|
|
@@ -6,11 +6,12 @@ import theme from "#build/ui/page-cta";
|
|
|
6
6
|
import { computed } from "vue";
|
|
7
7
|
import { Primitive } from "reka-ui";
|
|
8
8
|
import { useAppConfig } from "#imports";
|
|
9
|
-
import {
|
|
9
|
+
import { useComponentProps } from "../composables/useComponentProps";
|
|
10
|
+
import { usePrefix } from "../composables/usePrefix";
|
|
10
11
|
import { tv } from "../utils/tv";
|
|
11
12
|
import UButton from "./Button.vue";
|
|
12
13
|
import UContainer from "./Container.vue";
|
|
13
|
-
const
|
|
14
|
+
const _props = defineProps({
|
|
14
15
|
as: { type: null, required: false },
|
|
15
16
|
class: { type: null, required: false },
|
|
16
17
|
title: { type: String, required: false },
|
|
@@ -22,8 +23,9 @@ const props = defineProps({
|
|
|
22
23
|
ui: { type: Object, required: false }
|
|
23
24
|
});
|
|
24
25
|
const slots = defineSlots();
|
|
26
|
+
const props = useComponentProps("pageCTA", _props);
|
|
25
27
|
const appConfig = useAppConfig();
|
|
26
|
-
const
|
|
28
|
+
const prefix = usePrefix();
|
|
27
29
|
const ui = computed(() => tv({ extend: tv(theme), ...appConfig.ui?.pageCTA || {} })({
|
|
28
30
|
variant: props.variant,
|
|
29
31
|
orientation: props.orientation,
|
|
@@ -33,36 +35,36 @@ const ui = computed(() => tv({ extend: tv(theme), ...appConfig.ui?.pageCTA || {}
|
|
|
33
35
|
</script>
|
|
34
36
|
|
|
35
37
|
<template>
|
|
36
|
-
<Primitive :as="as" :data-orientation="orientation" data-slot="root" :class="ui.root({ class: [
|
|
38
|
+
<Primitive :as="props.as" :data-orientation="props.orientation" data-slot="root" :class="ui.root({ class: [props.ui?.root, props.class] })">
|
|
37
39
|
<slot name="top" />
|
|
38
40
|
|
|
39
|
-
<UContainer data-slot="container" :class="ui.container({ class:
|
|
40
|
-
<div v-if="!!slots.header || (title || !!slots.title) || (description || !!slots.description) || !!slots.body || !!slots.footer || (links?.length || !!slots.links)" data-slot="wrapper" :class="ui.wrapper({ class:
|
|
41
|
-
<div v-if="!!slots.header || (title || !!slots.title) || (description || !!slots.description)" data-slot="header" :class="ui.header({ class:
|
|
41
|
+
<UContainer data-slot="container" :class="ui.container({ class: props.ui?.container })">
|
|
42
|
+
<div v-if="!!slots.header || (props.title || !!slots.title) || (props.description || !!slots.description) || !!slots.body || !!slots.footer || (props.links?.length || !!slots.links)" data-slot="wrapper" :class="ui.wrapper({ class: props.ui?.wrapper })">
|
|
43
|
+
<div v-if="!!slots.header || (props.title || !!slots.title) || (props.description || !!slots.description)" data-slot="header" :class="ui.header({ class: props.ui?.header })">
|
|
42
44
|
<slot name="header">
|
|
43
|
-
<h2 v-if="title || !!slots.title" data-slot="title" :class="ui.title({ class:
|
|
45
|
+
<h2 v-if="props.title || !!slots.title" data-slot="title" :class="ui.title({ class: props.ui?.title })">
|
|
44
46
|
<slot name="title">
|
|
45
|
-
{{ title }}
|
|
47
|
+
{{ props.title }}
|
|
46
48
|
</slot>
|
|
47
49
|
</h2>
|
|
48
50
|
|
|
49
|
-
<div v-if="description || !!slots.description" data-slot="description" :class="ui.description({ class:
|
|
51
|
+
<div v-if="props.description || !!slots.description" data-slot="description" :class="ui.description({ class: props.ui?.description })">
|
|
50
52
|
<slot name="description">
|
|
51
|
-
{{ description }}
|
|
53
|
+
{{ props.description }}
|
|
52
54
|
</slot>
|
|
53
55
|
</div>
|
|
54
56
|
</slot>
|
|
55
57
|
</div>
|
|
56
58
|
|
|
57
|
-
<div v-if="!!slots.body" data-slot="body" :class="ui.body({ class:
|
|
59
|
+
<div v-if="!!slots.body" data-slot="body" :class="ui.body({ class: props.ui?.body })">
|
|
58
60
|
<slot name="body" />
|
|
59
61
|
</div>
|
|
60
62
|
|
|
61
|
-
<div v-if="!!slots.footer || (links?.length || !!slots.links)" data-slot="footer" :class="ui.footer({ class:
|
|
63
|
+
<div v-if="!!slots.footer || (props.links?.length || !!slots.links)" data-slot="footer" :class="ui.footer({ class: props.ui?.footer })">
|
|
62
64
|
<slot name="footer">
|
|
63
|
-
<div v-if="links?.length || !!slots.links" data-slot="links" :class="ui.links({ class:
|
|
65
|
+
<div v-if="props.links?.length || !!slots.links" data-slot="links" :class="ui.links({ class: props.ui?.links })">
|
|
64
66
|
<slot name="links">
|
|
65
|
-
<UButton v-for="(link, index) in links" :key="index" size="lg" v-bind="link" />
|
|
67
|
+
<UButton v-for="(link, index) in props.links" :key="index" size="lg" v-bind="link" />
|
|
66
68
|
</slot>
|
|
67
69
|
</div>
|
|
68
70
|
</slot>
|
|
@@ -70,7 +72,7 @@ const ui = computed(() => tv({ extend: tv(theme), ...appConfig.ui?.pageCTA || {}
|
|
|
70
72
|
</div>
|
|
71
73
|
|
|
72
74
|
<slot v-if="!!slots.default" />
|
|
73
|
-
<div v-else-if="orientation === 'horizontal'" class="hidden lg:block" />
|
|
75
|
+
<div v-else-if="props.orientation === 'horizontal'" :class="prefix('hidden lg:block')" />
|
|
74
76
|
</UContainer>
|
|
75
77
|
|
|
76
78
|
<slot name="bottom" />
|
|
@@ -7,13 +7,14 @@ import { computed, ref, watch } from "vue";
|
|
|
7
7
|
import { Primitive } from "reka-ui";
|
|
8
8
|
import { useMouseInElement, pausableFilter } from "@vueuse/core";
|
|
9
9
|
import { useAppConfig } from "#imports";
|
|
10
|
-
import {
|
|
10
|
+
import { useComponentProps } from "../composables/useComponentProps";
|
|
11
|
+
import { usePrefix } from "../composables/usePrefix";
|
|
11
12
|
import { getSlotChildrenText } from "../utils";
|
|
12
13
|
import { tv } from "../utils/tv";
|
|
13
14
|
import ULink from "./Link.vue";
|
|
14
15
|
import UIcon from "./Icon.vue";
|
|
15
16
|
defineOptions({ inheritAttrs: false });
|
|
16
|
-
const
|
|
17
|
+
const _props = defineProps({
|
|
17
18
|
as: { type: null, required: false },
|
|
18
19
|
icon: { type: null, required: false },
|
|
19
20
|
title: { type: String, required: false },
|
|
@@ -32,13 +33,14 @@ const props = defineProps({
|
|
|
32
33
|
ui: { type: Object, required: false }
|
|
33
34
|
});
|
|
34
35
|
const slots = defineSlots();
|
|
36
|
+
const props = useComponentProps("pageCard", _props);
|
|
35
37
|
const cardRef = ref();
|
|
36
38
|
const motionControl = pausableFilter();
|
|
37
39
|
const appConfig = useAppConfig();
|
|
38
|
-
const uiProp = useComponentUI("pageCard", props);
|
|
39
40
|
const { elementX, elementY } = useMouseInElement(cardRef, {
|
|
40
41
|
eventFilter: motionControl.eventFilter
|
|
41
42
|
});
|
|
43
|
+
const prefix = usePrefix();
|
|
42
44
|
const spotlight = computed(() => props.spotlight && (elementX.value !== 0 || elementY.value !== 0));
|
|
43
45
|
watch(() => props.spotlight, (value) => {
|
|
44
46
|
if (value) {
|
|
@@ -67,44 +69,44 @@ const ariaLabel = computed(() => {
|
|
|
67
69
|
<template>
|
|
68
70
|
<Primitive
|
|
69
71
|
ref="cardRef"
|
|
70
|
-
:as="as"
|
|
71
|
-
:data-orientation="orientation"
|
|
72
|
+
:as="props.as"
|
|
73
|
+
:data-orientation="props.orientation"
|
|
72
74
|
data-slot="root"
|
|
73
|
-
:class="ui.root({ class: [
|
|
75
|
+
:class="ui.root({ class: [props.ui?.root, props.class] })"
|
|
74
76
|
:style="spotlight && { '--spotlight-x': `${elementX}px`, '--spotlight-y': `${elementY}px` }"
|
|
75
|
-
@click="onClick"
|
|
77
|
+
@click="props.onClick"
|
|
76
78
|
>
|
|
77
|
-
<div v-if="props.spotlight" data-slot="spotlight" :class="ui.spotlight({ class:
|
|
79
|
+
<div v-if="props.spotlight" data-slot="spotlight" :class="ui.spotlight({ class: props.ui?.spotlight })" />
|
|
78
80
|
|
|
79
|
-
<div data-slot="container" :class="ui.container({ class:
|
|
80
|
-
<div v-if="!!slots.header || (icon || !!slots.leading) || !!slots.body || (title || !!slots.title) || (description || !!slots.description) || !!slots.footer" data-slot="wrapper" :class="ui.wrapper({ class:
|
|
81
|
-
<div v-if="!!slots.header" data-slot="header" :class="ui.header({ class:
|
|
81
|
+
<div data-slot="container" :class="ui.container({ class: props.ui?.container })">
|
|
82
|
+
<div v-if="!!slots.header || (props.icon || !!slots.leading) || !!slots.body || (props.title || !!slots.title) || (props.description || !!slots.description) || !!slots.footer" data-slot="wrapper" :class="ui.wrapper({ class: props.ui?.wrapper })">
|
|
83
|
+
<div v-if="!!slots.header" data-slot="header" :class="ui.header({ class: props.ui?.header })">
|
|
82
84
|
<slot name="header" />
|
|
83
85
|
</div>
|
|
84
86
|
|
|
85
|
-
<div v-if="icon || !!slots.leading" data-slot="leading" :class="ui.leading({ class:
|
|
87
|
+
<div v-if="props.icon || !!slots.leading" data-slot="leading" :class="ui.leading({ class: props.ui?.leading })">
|
|
86
88
|
<slot name="leading" :ui="ui">
|
|
87
|
-
<UIcon v-if="icon" :name="icon" data-slot="leadingIcon" :class="ui.leadingIcon({ class:
|
|
89
|
+
<UIcon v-if="props.icon" :name="props.icon" data-slot="leadingIcon" :class="ui.leadingIcon({ class: props.ui?.leadingIcon })" />
|
|
88
90
|
</slot>
|
|
89
91
|
</div>
|
|
90
92
|
|
|
91
|
-
<div v-if="!!slots.body || (title || !!slots.title) || (description || !!slots.description)" data-slot="body" :class="ui.body({ class:
|
|
93
|
+
<div v-if="!!slots.body || (props.title || !!slots.title) || (props.description || !!slots.description)" data-slot="body" :class="ui.body({ class: props.ui?.body })">
|
|
92
94
|
<slot name="body">
|
|
93
|
-
<div v-if="title || !!slots.title" data-slot="title" :class="ui.title({ class:
|
|
95
|
+
<div v-if="props.title || !!slots.title" data-slot="title" :class="ui.title({ class: props.ui?.title })">
|
|
94
96
|
<slot name="title">
|
|
95
|
-
{{ title }}
|
|
97
|
+
{{ props.title }}
|
|
96
98
|
</slot>
|
|
97
99
|
</div>
|
|
98
100
|
|
|
99
|
-
<div v-if="description || !!slots.description" data-slot="description" :class="ui.description({ class:
|
|
101
|
+
<div v-if="props.description || !!slots.description" data-slot="description" :class="ui.description({ class: props.ui?.description })">
|
|
100
102
|
<slot name="description">
|
|
101
|
-
{{ description }}
|
|
103
|
+
{{ props.description }}
|
|
102
104
|
</slot>
|
|
103
105
|
</div>
|
|
104
106
|
</slot>
|
|
105
107
|
</div>
|
|
106
108
|
|
|
107
|
-
<div v-if="!!slots.footer" data-slot="footer" :class="ui.footer({ class:
|
|
109
|
+
<div v-if="!!slots.footer" data-slot="footer" :class="ui.footer({ class: props.ui?.footer })">
|
|
108
110
|
<slot name="footer" />
|
|
109
111
|
</div>
|
|
110
112
|
</div>
|
|
@@ -113,13 +115,13 @@ const ariaLabel = computed(() => {
|
|
|
113
115
|
</div>
|
|
114
116
|
|
|
115
117
|
<ULink
|
|
116
|
-
v-if="to"
|
|
118
|
+
v-if="props.to"
|
|
117
119
|
:aria-label="ariaLabel"
|
|
118
|
-
v-bind="{ to, target, ...$attrs }"
|
|
119
|
-
class="focus:outline-none peer"
|
|
120
|
+
v-bind="{ to: props.to, target: props.target, ...$attrs }"
|
|
121
|
+
:class="prefix('focus:outline-none peer')"
|
|
120
122
|
raw
|
|
121
123
|
>
|
|
122
|
-
<span class="absolute inset-0" aria-hidden="true" />
|
|
124
|
+
<span :class="prefix('absolute inset-0')" aria-hidden="true" />
|
|
123
125
|
</ULink>
|
|
124
126
|
</Primitive>
|
|
125
127
|
</template>
|
|
@@ -7,20 +7,20 @@ import { computed } from "vue";
|
|
|
7
7
|
import { Primitive } from "reka-ui";
|
|
8
8
|
import { useAppConfig } from "#imports";
|
|
9
9
|
import { tv } from "../utils/tv";
|
|
10
|
-
import {
|
|
11
|
-
const
|
|
10
|
+
import { useComponentProps } from "../composables/useComponentProps";
|
|
11
|
+
const _props = defineProps({
|
|
12
12
|
as: { type: null, 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("pageColumns", _props);
|
|
17
18
|
const appConfig = useAppConfig();
|
|
18
|
-
const uiProp = useComponentUI("pageColumns", props);
|
|
19
19
|
const ui = computed(() => tv({ extend: tv(theme), ...appConfig.ui?.pageColumns || {} }));
|
|
20
20
|
</script>
|
|
21
21
|
|
|
22
22
|
<template>
|
|
23
|
-
<Primitive :as="as" :class="ui({ class: [
|
|
23
|
+
<Primitive :as="props.as" :class="ui({ class: [props.ui?.base, props.class] })">
|
|
24
24
|
<slot />
|
|
25
25
|
</Primitive>
|
|
26
26
|
</template>
|
|
@@ -6,13 +6,14 @@ import theme from "#build/ui/page-feature";
|
|
|
6
6
|
import { computed } from "vue";
|
|
7
7
|
import { Primitive } from "reka-ui";
|
|
8
8
|
import { useAppConfig } from "#imports";
|
|
9
|
-
import {
|
|
9
|
+
import { useComponentProps } from "../composables/useComponentProps";
|
|
10
|
+
import { usePrefix } from "../composables/usePrefix";
|
|
10
11
|
import { getSlotChildrenText } from "../utils";
|
|
11
12
|
import { tv } from "../utils/tv";
|
|
12
13
|
import ULink from "./Link.vue";
|
|
13
14
|
import UIcon from "./Icon.vue";
|
|
14
15
|
defineOptions({ inheritAttrs: false });
|
|
15
|
-
const
|
|
16
|
+
const _props = defineProps({
|
|
16
17
|
as: { type: null, required: false },
|
|
17
18
|
icon: { type: null, required: false },
|
|
18
19
|
title: { type: String, required: false },
|
|
@@ -25,8 +26,9 @@ const props = defineProps({
|
|
|
25
26
|
ui: { type: Object, required: false }
|
|
26
27
|
});
|
|
27
28
|
const slots = defineSlots();
|
|
29
|
+
const props = useComponentProps("pageFeature", _props);
|
|
28
30
|
const appConfig = useAppConfig();
|
|
29
|
-
const
|
|
31
|
+
const prefix = usePrefix();
|
|
30
32
|
const ui = computed(() => tv({ extend: tv(theme), ...appConfig.ui?.pageFeature || {} })({
|
|
31
33
|
orientation: props.orientation,
|
|
32
34
|
title: !!props.title || !!slots.title,
|
|
@@ -39,34 +41,34 @@ const ariaLabel = computed(() => {
|
|
|
39
41
|
</script>
|
|
40
42
|
|
|
41
43
|
<template>
|
|
42
|
-
<Primitive :as="as" :data-orientation="orientation" data-slot="root" :class="ui.root({ class: [
|
|
43
|
-
<div v-if="icon || !!slots.leading" data-slot="leading" :class="ui.leading({ class:
|
|
44
|
+
<Primitive :as="props.as" :data-orientation="props.orientation" data-slot="root" :class="ui.root({ class: [props.ui?.root, props.class] })" @click="props.onClick">
|
|
45
|
+
<div v-if="props.icon || !!slots.leading" data-slot="leading" :class="ui.leading({ class: props.ui?.leading })">
|
|
44
46
|
<slot name="leading" :ui="ui">
|
|
45
|
-
<UIcon v-if="icon" :name="icon" data-slot="leadingIcon" :class="ui.leadingIcon({ class:
|
|
47
|
+
<UIcon v-if="props.icon" :name="props.icon" data-slot="leadingIcon" :class="ui.leadingIcon({ class: props.ui?.leadingIcon })" />
|
|
46
48
|
</slot>
|
|
47
49
|
</div>
|
|
48
50
|
|
|
49
|
-
<div data-slot="wrapper" :class="ui.wrapper({ class:
|
|
51
|
+
<div data-slot="wrapper" :class="ui.wrapper({ class: props.ui?.wrapper })">
|
|
50
52
|
<ULink
|
|
51
|
-
v-if="to"
|
|
53
|
+
v-if="props.to"
|
|
52
54
|
:aria-label="ariaLabel"
|
|
53
|
-
v-bind="{ to, target, ...$attrs }"
|
|
54
|
-
class="focus:outline-none peer"
|
|
55
|
+
v-bind="{ to: props.to, target: props.target, ...$attrs }"
|
|
56
|
+
:class="prefix('focus:outline-none peer')"
|
|
55
57
|
raw
|
|
56
58
|
>
|
|
57
|
-
<span class="absolute inset-0" aria-hidden="true" />
|
|
59
|
+
<span :class="prefix('absolute inset-0')" aria-hidden="true" />
|
|
58
60
|
</ULink>
|
|
59
61
|
|
|
60
62
|
<slot>
|
|
61
|
-
<div v-if="title || !!slots.title" data-slot="title" :class="ui.title({ class:
|
|
63
|
+
<div v-if="props.title || !!slots.title" data-slot="title" :class="ui.title({ class: props.ui?.title })">
|
|
62
64
|
<slot name="title">
|
|
63
|
-
{{ title }}
|
|
65
|
+
{{ props.title }}
|
|
64
66
|
</slot>
|
|
65
67
|
</div>
|
|
66
68
|
|
|
67
|
-
<div v-if="description || !!slots.description" data-slot="description" :class="ui.description({ class:
|
|
69
|
+
<div v-if="props.description || !!slots.description" data-slot="description" :class="ui.description({ class: props.ui?.description })">
|
|
68
70
|
<slot name="description">
|
|
69
|
-
{{ description }}
|
|
71
|
+
{{ props.description }}
|
|
70
72
|
</slot>
|
|
71
73
|
</div>
|
|
72
74
|
</slot>
|
|
@@ -7,20 +7,20 @@ import { computed } from "vue";
|
|
|
7
7
|
import { Primitive } from "reka-ui";
|
|
8
8
|
import { useAppConfig } from "#imports";
|
|
9
9
|
import { tv } from "../utils/tv";
|
|
10
|
-
import {
|
|
11
|
-
const
|
|
10
|
+
import { useComponentProps } from "../composables/useComponentProps";
|
|
11
|
+
const _props = defineProps({
|
|
12
12
|
as: { type: null, 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("pageGrid", _props);
|
|
17
18
|
const appConfig = useAppConfig();
|
|
18
|
-
const uiProp = useComponentUI("pageGrid", props);
|
|
19
19
|
const ui = computed(() => tv({ extend: tv(theme), ...appConfig.ui?.pageGrid || {} }));
|
|
20
20
|
</script>
|
|
21
21
|
|
|
22
22
|
<template>
|
|
23
|
-
<Primitive :as="as" :class="ui({ class: [
|
|
23
|
+
<Primitive :as="props.as" :class="ui({ class: [props.ui?.base, props.class] })">
|
|
24
24
|
<slot />
|
|
25
25
|
</Primitive>
|
|
26
26
|
</template>
|
|
@@ -6,10 +6,10 @@ import theme from "#build/ui/page-header";
|
|
|
6
6
|
import { computed } from "vue";
|
|
7
7
|
import { Primitive } from "reka-ui";
|
|
8
8
|
import { useAppConfig } from "#imports";
|
|
9
|
-
import {
|
|
9
|
+
import { useComponentProps } from "../composables/useComponentProps";
|
|
10
10
|
import { tv } from "../utils/tv";
|
|
11
11
|
import UButton from "./Button.vue";
|
|
12
|
-
const
|
|
12
|
+
const _props = defineProps({
|
|
13
13
|
as: { type: null, required: false },
|
|
14
14
|
headline: { type: String, required: false },
|
|
15
15
|
title: { type: String, required: false },
|
|
@@ -19,39 +19,39 @@ const props = defineProps({
|
|
|
19
19
|
ui: { type: Object, required: false }
|
|
20
20
|
});
|
|
21
21
|
const slots = defineSlots();
|
|
22
|
+
const props = useComponentProps("pageHeader", _props);
|
|
22
23
|
const appConfig = useAppConfig();
|
|
23
|
-
const uiProp = useComponentUI("pageHeader", props);
|
|
24
24
|
const ui = computed(() => tv({ extend: tv(theme), ...appConfig.ui?.pageHeader || {} })({
|
|
25
25
|
title: !!props.title || !!slots.title
|
|
26
26
|
}));
|
|
27
27
|
</script>
|
|
28
28
|
|
|
29
29
|
<template>
|
|
30
|
-
<Primitive :as="as" data-slot="root" :class="ui.root({ class: [
|
|
31
|
-
<div v-if="headline || !!slots.headline" data-slot="headline" :class="ui.headline({ class:
|
|
30
|
+
<Primitive :as="props.as" data-slot="root" :class="ui.root({ class: [props.ui?.root, props.class] })">
|
|
31
|
+
<div v-if="props.headline || !!slots.headline" data-slot="headline" :class="ui.headline({ class: props.ui?.headline })">
|
|
32
32
|
<slot name="headline">
|
|
33
|
-
{{ headline }}
|
|
33
|
+
{{ props.headline }}
|
|
34
34
|
</slot>
|
|
35
35
|
</div>
|
|
36
36
|
|
|
37
|
-
<div data-slot="container" :class="ui.container({ class:
|
|
38
|
-
<div data-slot="wrapper" :class="ui.wrapper({ class:
|
|
39
|
-
<h1 v-if="title || !!slots.title" data-slot="title" :class="ui.title({ class:
|
|
37
|
+
<div data-slot="container" :class="ui.container({ class: props.ui?.container })">
|
|
38
|
+
<div data-slot="wrapper" :class="ui.wrapper({ class: props.ui?.wrapper })">
|
|
39
|
+
<h1 v-if="props.title || !!slots.title" data-slot="title" :class="ui.title({ class: props.ui?.title })">
|
|
40
40
|
<slot name="title">
|
|
41
|
-
{{ title }}
|
|
41
|
+
{{ props.title }}
|
|
42
42
|
</slot>
|
|
43
43
|
</h1>
|
|
44
44
|
|
|
45
|
-
<div v-if="links?.length || !!slots.links" data-slot="links" :class="ui.links({ class:
|
|
45
|
+
<div v-if="props.links?.length || !!slots.links" data-slot="links" :class="ui.links({ class: props.ui?.links })">
|
|
46
46
|
<slot name="links">
|
|
47
|
-
<UButton v-for="(link, index) in links" :key="index" color="neutral" variant="outline" v-bind="link" />
|
|
47
|
+
<UButton v-for="(link, index) in props.links" :key="index" color="neutral" variant="outline" v-bind="link" />
|
|
48
48
|
</slot>
|
|
49
49
|
</div>
|
|
50
50
|
</div>
|
|
51
51
|
|
|
52
|
-
<div v-if="description || !!slots.description" data-slot="description" :class="ui.description({ class:
|
|
52
|
+
<div v-if="props.description || !!slots.description" data-slot="description" :class="ui.description({ class: props.ui?.description })">
|
|
53
53
|
<slot name="description">
|
|
54
|
-
{{ description }}
|
|
54
|
+
{{ props.description }}
|
|
55
55
|
</slot>
|
|
56
56
|
</div>
|
|
57
57
|
|
|
@@ -6,11 +6,12 @@ import theme from "#build/ui/page-hero";
|
|
|
6
6
|
import { computed } from "vue";
|
|
7
7
|
import { Primitive } from "reka-ui";
|
|
8
8
|
import { useAppConfig } from "#imports";
|
|
9
|
-
import {
|
|
9
|
+
import { useComponentProps } from "../composables/useComponentProps";
|
|
10
|
+
import { usePrefix } from "../composables/usePrefix";
|
|
10
11
|
import { tv } from "../utils/tv";
|
|
11
12
|
import UButton from "./Button.vue";
|
|
12
13
|
import UContainer from "./Container.vue";
|
|
13
|
-
const
|
|
14
|
+
const _props = defineProps({
|
|
14
15
|
as: { type: null, required: false },
|
|
15
16
|
headline: { type: String, required: false },
|
|
16
17
|
title: { type: String, required: false },
|
|
@@ -22,8 +23,9 @@ const props = defineProps({
|
|
|
22
23
|
ui: { type: Object, required: false }
|
|
23
24
|
});
|
|
24
25
|
const slots = defineSlots();
|
|
26
|
+
const props = useComponentProps("pageHero", _props);
|
|
25
27
|
const appConfig = useAppConfig();
|
|
26
|
-
const
|
|
28
|
+
const prefix = usePrefix();
|
|
27
29
|
const ui = computed(() => tv({ extend: tv(theme), ...appConfig.ui?.pageHero || {} })({
|
|
28
30
|
orientation: props.orientation,
|
|
29
31
|
reverse: props.reverse,
|
|
@@ -32,42 +34,42 @@ const ui = computed(() => tv({ extend: tv(theme), ...appConfig.ui?.pageHero || {
|
|
|
32
34
|
</script>
|
|
33
35
|
|
|
34
36
|
<template>
|
|
35
|
-
<Primitive :as="as" :data-orientation="orientation" data-slot="root" :class="ui.root({ class: [
|
|
37
|
+
<Primitive :as="props.as" :data-orientation="props.orientation" data-slot="root" :class="ui.root({ class: [props.ui?.root, props.class] })">
|
|
36
38
|
<slot name="top" />
|
|
37
39
|
|
|
38
|
-
<UContainer data-slot="container" :class="ui.container({ class:
|
|
39
|
-
<div v-if="!!slots.header || (headline || !!slots.headline) || (title || !!slots.title) || (description || !!slots.description) || !!slots.body || !!slots.footer || (links?.length || !!slots.links)" data-slot="wrapper" :class="ui.wrapper({ class:
|
|
40
|
-
<div v-if="!!slots.header || (headline || !!slots.headline) || (title || !!slots.title) || (description || !!slots.description)" data-slot="header" :class="ui.header({ class:
|
|
40
|
+
<UContainer data-slot="container" :class="ui.container({ class: props.ui?.container })">
|
|
41
|
+
<div v-if="!!slots.header || (props.headline || !!slots.headline) || (props.title || !!slots.title) || (props.description || !!slots.description) || !!slots.body || !!slots.footer || (props.links?.length || !!slots.links)" data-slot="wrapper" :class="ui.wrapper({ class: props.ui?.wrapper })">
|
|
42
|
+
<div v-if="!!slots.header || (props.headline || !!slots.headline) || (props.title || !!slots.title) || (props.description || !!slots.description)" data-slot="header" :class="ui.header({ class: props.ui?.header })">
|
|
41
43
|
<slot name="header">
|
|
42
|
-
<div v-if="headline || !!slots.headline" data-slot="headline" :class="ui.headline({ class:
|
|
44
|
+
<div v-if="props.headline || !!slots.headline" data-slot="headline" :class="ui.headline({ class: props.ui?.headline, headline: !slots.headline })">
|
|
43
45
|
<slot name="headline">
|
|
44
|
-
{{ headline }}
|
|
46
|
+
{{ props.headline }}
|
|
45
47
|
</slot>
|
|
46
48
|
</div>
|
|
47
49
|
|
|
48
|
-
<h1 v-if="title || !!slots.title" data-slot="title" :class="ui.title({ class:
|
|
50
|
+
<h1 v-if="props.title || !!slots.title" data-slot="title" :class="ui.title({ class: props.ui?.title })">
|
|
49
51
|
<slot name="title">
|
|
50
|
-
{{ title }}
|
|
52
|
+
{{ props.title }}
|
|
51
53
|
</slot>
|
|
52
54
|
</h1>
|
|
53
55
|
|
|
54
|
-
<div v-if="description || !!slots.description" data-slot="description" :class="ui.description({ class:
|
|
56
|
+
<div v-if="props.description || !!slots.description" data-slot="description" :class="ui.description({ class: props.ui?.description })">
|
|
55
57
|
<slot name="description">
|
|
56
|
-
{{ description }}
|
|
58
|
+
{{ props.description }}
|
|
57
59
|
</slot>
|
|
58
60
|
</div>
|
|
59
61
|
</slot>
|
|
60
62
|
</div>
|
|
61
63
|
|
|
62
|
-
<div v-if="!!slots.body" data-slot="body" :class="ui.body({ class:
|
|
64
|
+
<div v-if="!!slots.body" data-slot="body" :class="ui.body({ class: props.ui?.body })">
|
|
63
65
|
<slot name="body" />
|
|
64
66
|
</div>
|
|
65
67
|
|
|
66
|
-
<div v-if="!!slots.footer || (links?.length || !!slots.links)" data-slot="footer" :class="ui.footer({ class:
|
|
68
|
+
<div v-if="!!slots.footer || (props.links?.length || !!slots.links)" data-slot="footer" :class="ui.footer({ class: props.ui?.footer })">
|
|
67
69
|
<slot name="footer">
|
|
68
|
-
<div v-if="links?.length || !!slots.links" data-slot="links" :class="ui.links({ class:
|
|
70
|
+
<div v-if="props.links?.length || !!slots.links" data-slot="links" :class="ui.links({ class: props.ui?.links })">
|
|
69
71
|
<slot name="links">
|
|
70
|
-
<UButton v-for="(link, index) in links" :key="index" size="xl" v-bind="link" />
|
|
72
|
+
<UButton v-for="(link, index) in props.links" :key="index" size="xl" v-bind="link" />
|
|
71
73
|
</slot>
|
|
72
74
|
</div>
|
|
73
75
|
</slot>
|
|
@@ -75,7 +77,7 @@ const ui = computed(() => tv({ extend: tv(theme), ...appConfig.ui?.pageHero || {
|
|
|
75
77
|
</div>
|
|
76
78
|
|
|
77
79
|
<slot v-if="!!slots.default" />
|
|
78
|
-
<div v-else-if="orientation === 'horizontal'" class="hidden lg:block" />
|
|
80
|
+
<div v-else-if="props.orientation === 'horizontal'" :class="prefix('hidden lg:block')" />
|
|
79
81
|
</UContainer>
|
|
80
82
|
|
|
81
83
|
<slot name="bottom" />
|