@ug666/ui-vue 0.2.0 → 0.3.0-beta.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/dist/aliases.d.ts +38 -21
- package/dist/aliases.d.ts.map +1 -1
- package/dist/blocks/feature-grid.vue.d.ts +9 -13
- package/dist/blocks/feature-grid.vue.d.ts.map +1 -1
- package/dist/blocks/index.cjs +1 -1
- package/dist/blocks/index.cjs.map +1 -1
- package/dist/blocks/index.js +155 -65
- package/dist/blocks/index.js.map +1 -1
- package/dist/blocks/landing-hero.vue.d.ts +21 -19
- package/dist/blocks/landing-hero.vue.d.ts.map +1 -1
- package/dist/button-CVw3ryBz.cjs +2 -0
- package/dist/button-CVw3ryBz.cjs.map +1 -0
- package/dist/button-D_ikOxrp.js +292 -0
- package/dist/button-D_ikOxrp.js.map +1 -0
- package/dist/cn-CFAiuoYh.cjs +2 -0
- package/dist/cn-CFAiuoYh.cjs.map +1 -0
- package/dist/cn-Cl2u7rTh.js +10 -0
- package/dist/cn-Cl2u7rTh.js.map +1 -0
- package/dist/components/accordion.vue.d.ts +29 -6
- package/dist/components/accordion.vue.d.ts.map +1 -1
- package/dist/components/alert.vue.d.ts +9 -8
- package/dist/components/alert.vue.d.ts.map +1 -1
- package/dist/components/avatar-group.vue.d.ts +3 -2
- package/dist/components/avatar-group.vue.d.ts.map +1 -1
- package/dist/components/avatar.vue.d.ts +6 -5
- package/dist/components/avatar.vue.d.ts.map +1 -1
- package/dist/components/badge.vue.d.ts +9 -16
- package/dist/components/badge.vue.d.ts.map +1 -1
- package/dist/components/breadcrumb.vue.d.ts +20 -11
- package/dist/components/breadcrumb.vue.d.ts.map +1 -1
- package/dist/components/button-group.vue.d.ts +92 -0
- package/dist/components/button-group.vue.d.ts.map +1 -0
- package/dist/components/button.vue.d.ts +77 -39
- package/dist/components/button.vue.d.ts.map +1 -1
- package/dist/components/card.vue.d.ts +15 -11
- package/dist/components/card.vue.d.ts.map +1 -1
- package/dist/components/checkbox-group.vue.d.ts +43 -0
- package/dist/components/checkbox-group.vue.d.ts.map +1 -0
- package/dist/components/checkbox.vue.d.ts +23 -24
- package/dist/components/checkbox.vue.d.ts.map +1 -1
- package/dist/components/config-provider.vue.d.ts +77 -0
- package/dist/components/config-provider.vue.d.ts.map +1 -0
- package/dist/components/container.vue.d.ts +141 -0
- package/dist/components/container.vue.d.ts.map +1 -0
- package/dist/components/context/accordion-context.d.ts +7 -2
- package/dist/components/context/accordion-context.d.ts.map +1 -1
- package/dist/components/context/button-group.d.ts +40 -0
- package/dist/components/context/button-group.d.ts.map +1 -0
- package/dist/components/context/checkbox-context.d.ts +14 -0
- package/dist/components/context/checkbox-context.d.ts.map +1 -0
- package/dist/components/context/context-menu-context.d.ts +4 -0
- package/dist/components/context/context-menu-context.d.ts.map +1 -1
- package/dist/components/context/drawer-context.d.ts +4 -0
- package/dist/components/context/drawer-context.d.ts.map +1 -1
- package/dist/components/context/dropdown-context.d.ts +10 -0
- package/dist/components/context/dropdown-context.d.ts.map +1 -1
- package/dist/components/context/form-context.d.ts +31 -1
- package/dist/components/context/form-context.d.ts.map +1 -1
- package/dist/components/context/popover-context.d.ts +2 -0
- package/dist/components/context/popover-context.d.ts.map +1 -1
- package/dist/components/context/radio-context.d.ts +11 -3
- package/dist/components/context/radio-context.d.ts.map +1 -1
- package/dist/components/context/tabs-context.d.ts +2 -0
- package/dist/components/context/tabs-context.d.ts.map +1 -1
- package/dist/components/context/tooltip-context.d.ts +2 -0
- package/dist/components/context/tooltip-context.d.ts.map +1 -1
- package/dist/components/context-menu.vue.d.ts +6 -5
- package/dist/components/context-menu.vue.d.ts.map +1 -1
- package/dist/components/descriptions.vue.d.ts +12 -18
- package/dist/components/descriptions.vue.d.ts.map +1 -1
- package/dist/components/dialog.vue.d.ts +5 -3
- package/dist/components/dialog.vue.d.ts.map +1 -1
- package/dist/components/drawer.vue.d.ts +9 -8
- package/dist/components/drawer.vue.d.ts.map +1 -1
- package/dist/components/dropdown.vue.d.ts +11 -10
- package/dist/components/dropdown.vue.d.ts.map +1 -1
- package/dist/components/empty-state.vue.d.ts +16 -17
- package/dist/components/empty-state.vue.d.ts.map +1 -1
- package/dist/components/form.vue.d.ts +95 -17
- package/dist/components/form.vue.d.ts.map +1 -1
- package/dist/components/icon.vue.d.ts +28 -0
- package/dist/components/icon.vue.d.ts.map +1 -0
- package/dist/components/index.cjs +1 -1
- package/dist/components/index.d.ts +21 -6
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +5 -5
- package/dist/components/input.vue.d.ts +71 -29
- package/dist/components/input.vue.d.ts.map +1 -1
- package/dist/components/label.vue.d.ts +12 -19
- package/dist/components/label.vue.d.ts.map +1 -1
- package/dist/components/layout.d.ts +194 -0
- package/dist/components/layout.d.ts.map +1 -0
- package/dist/components/link.vue.d.ts +55 -0
- package/dist/components/link.vue.d.ts.map +1 -0
- package/dist/components/modal.vue.d.ts +15 -16
- package/dist/components/modal.vue.d.ts.map +1 -1
- package/dist/components/navigation-menu.vue.d.ts +30 -14
- package/dist/components/navigation-menu.vue.d.ts.map +1 -1
- package/dist/components/number-input.vue.d.ts +53 -25
- package/dist/components/number-input.vue.d.ts.map +1 -1
- package/dist/components/otp-input.vue.d.ts +12 -9
- package/dist/components/otp-input.vue.d.ts.map +1 -1
- package/dist/components/pagination.vue.d.ts +15 -13
- package/dist/components/pagination.vue.d.ts.map +1 -1
- package/dist/components/popover.vue.d.ts +9 -8
- package/dist/components/popover.vue.d.ts.map +1 -1
- package/dist/components/progress.vue.d.ts +3 -2
- package/dist/components/progress.vue.d.ts.map +1 -1
- package/dist/components/radio-group.vue.d.ts +23 -30
- package/dist/components/radio-group.vue.d.ts.map +1 -1
- package/dist/components/radio.vue.d.ts +28 -17
- package/dist/components/radio.vue.d.ts.map +1 -1
- package/dist/components/scrollbar.vue.d.ts +65 -0
- package/dist/components/scrollbar.vue.d.ts.map +1 -0
- package/dist/components/select.vue.d.ts +83 -35
- package/dist/components/select.vue.d.ts.map +1 -1
- package/dist/components/separator.vue.d.ts +19 -8
- package/dist/components/separator.vue.d.ts.map +1 -1
- package/dist/components/sheet.vue.d.ts +15 -16
- package/dist/components/sheet.vue.d.ts.map +1 -1
- package/dist/components/sidebar.vue.d.ts +13 -35
- package/dist/components/sidebar.vue.d.ts.map +1 -1
- package/dist/components/skeleton.vue.d.ts +3 -2
- package/dist/components/skeleton.vue.d.ts.map +1 -1
- package/dist/components/slider.vue.d.ts +56 -22
- package/dist/components/slider.vue.d.ts.map +1 -1
- package/dist/components/space.vue.d.ts +35 -0
- package/dist/components/space.vue.d.ts.map +1 -0
- package/dist/components/spinner.vue.d.ts +6 -5
- package/dist/components/spinner.vue.d.ts.map +1 -1
- package/dist/components/splitter.vue.d.ts +234 -0
- package/dist/components/splitter.vue.d.ts.map +1 -0
- package/dist/components/statistic.vue.d.ts +12 -15
- package/dist/components/statistic.vue.d.ts.map +1 -1
- package/dist/components/steps.vue.d.ts +8 -19
- package/dist/components/steps.vue.d.ts.map +1 -1
- package/dist/components/switch.vue.d.ts +50 -19
- package/dist/components/switch.vue.d.ts.map +1 -1
- package/dist/components/table.vue.d.ts +6 -5
- package/dist/components/table.vue.d.ts.map +1 -1
- package/dist/components/tabs.vue.d.ts +26 -9
- package/dist/components/tabs.vue.d.ts.map +1 -1
- package/dist/components/tag.vue.d.ts +11 -18
- package/dist/components/tag.vue.d.ts.map +1 -1
- package/dist/components/text.vue.d.ts +32 -0
- package/dist/components/text.vue.d.ts.map +1 -0
- package/dist/components/textarea.vue.d.ts +58 -26
- package/dist/components/textarea.vue.d.ts.map +1 -1
- package/dist/components/toast.vue.d.ts +3 -2
- package/dist/components/toast.vue.d.ts.map +1 -1
- package/dist/components/tooltip.vue.d.ts +7 -6
- package/dist/components/tooltip.vue.d.ts.map +1 -1
- package/dist/components/types/forms.d.ts +15 -0
- package/dist/components/types/forms.d.ts.map +1 -0
- package/dist/components/types/foundation.d.ts +5 -0
- package/dist/components/types/foundation.d.ts.map +1 -0
- package/dist/composables/index.cjs +1 -1
- package/dist/composables/index.d.ts +2 -1
- package/dist/composables/index.d.ts.map +1 -1
- package/dist/composables/index.js +2 -2
- package/dist/composables/use-copy-to-clipboard.d.ts.map +1 -1
- package/dist/composables/use-event-listener.d.ts.map +1 -1
- package/dist/composables/use-form.d.ts +38 -26
- package/dist/composables/use-form.d.ts.map +1 -1
- package/dist/composables/use-local-storage.d.ts.map +1 -1
- package/dist/composables-C-Go-D3m.js +386 -0
- package/dist/composables-C-Go-D3m.js.map +1 -0
- package/dist/composables-CiWPyBEE.cjs +2 -0
- package/dist/composables-CiWPyBEE.cjs.map +1 -0
- package/dist/global.d.ts +17 -0
- package/dist/global.d.ts.map +1 -1
- package/dist/icon-NbssmDYT.js +1561 -0
- package/dist/icon-NbssmDYT.js.map +1 -0
- package/dist/icon-jF_XZntG.cjs +2 -0
- package/dist/icon-jF_XZntG.cjs.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +26 -11
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +134 -332
- package/dist/index.js.map +1 -1
- package/dist/internal/use-overlay-focus.d.ts +3 -0
- package/dist/internal/use-overlay-focus.d.ts.map +1 -0
- package/dist/internal/use-overlay-lifecycle.d.ts +3 -0
- package/dist/internal/use-overlay-lifecycle.d.ts.map +1 -0
- package/dist/labs/file-preview.vue.d.ts +42 -0
- package/dist/labs/file-preview.vue.d.ts.map +1 -0
- package/dist/labs/index.cjs +1 -1
- package/dist/labs/index.cjs.map +1 -1
- package/dist/labs/index.d.ts +7 -2
- package/dist/labs/index.d.ts.map +1 -1
- package/dist/labs/index.js +209 -5
- package/dist/labs/index.js.map +1 -1
- package/dist/labs/model-card.vue.d.ts +46 -0
- package/dist/labs/model-card.vue.d.ts.map +1 -0
- package/dist/patterns/admin-shell.vue.d.ts +18 -17
- package/dist/patterns/admin-shell.vue.d.ts.map +1 -1
- package/dist/patterns/confirm-dialog.vue.d.ts +13 -15
- package/dist/patterns/confirm-dialog.vue.d.ts.map +1 -1
- package/dist/patterns/copy-field.vue.d.ts +12 -15
- package/dist/patterns/copy-field.vue.d.ts.map +1 -1
- package/dist/patterns/index.cjs +1 -1
- package/dist/patterns/index.cjs.map +1 -1
- package/dist/patterns/index.js +178 -79
- package/dist/patterns/index.js.map +1 -1
- package/dist/patterns/page-header.vue.d.ts +25 -23
- package/dist/patterns/page-header.vue.d.ts.map +1 -1
- package/dist/primitives/index.cjs +1 -1
- package/dist/primitives/index.d.ts +13 -1
- package/dist/primitives/index.d.ts.map +1 -1
- package/dist/primitives/index.js +3 -3
- package/dist/resolver.cjs +1 -1
- package/dist/resolver.cjs.map +1 -1
- package/dist/resolver.d.ts.map +1 -1
- package/dist/resolver.js +13 -12
- package/dist/resolver.js.map +1 -1
- package/dist/sidebar-DI7FOJiw.cjs +2 -0
- package/dist/sidebar-DI7FOJiw.cjs.map +1 -0
- package/dist/sidebar-wW1OGS5T.js +442 -0
- package/dist/sidebar-wW1OGS5T.js.map +1 -0
- package/dist/statistic-1kiSjvCX.cjs +2 -0
- package/dist/statistic-1kiSjvCX.cjs.map +1 -0
- package/dist/statistic-DBlNBT-A.js +4748 -0
- package/dist/statistic-DBlNBT-A.js.map +1 -0
- package/dist/styles.css +2797 -956
- package/dist/theme.cjs +2 -0
- package/dist/theme.cjs.map +1 -0
- package/dist/theme.d.ts +172 -76
- package/dist/theme.d.ts.map +1 -1
- package/dist/theme.js +128 -0
- package/dist/theme.js.map +1 -0
- package/dist/themes/default.css +80 -0
- package/dist/themes/mecha.css +195 -0
- package/dist/themes/minimal.css +160 -0
- package/dist/{toast-state-BBoVvR0u.cjs → toast-state-DZPoRLPw.cjs} +2 -2
- package/dist/{toast-state-BBoVvR0u.cjs.map → toast-state-DZPoRLPw.cjs.map} +1 -1
- package/dist/{toast-state-Crugc-IE.js → toast-state-DyrVOjSJ.js} +1 -1
- package/dist/{toast-state-Crugc-IE.js.map → toast-state-DyrVOjSJ.js.map} +1 -1
- package/dist/tokens.css +1173 -18
- package/package.json +24 -12
- package/dist/aliases-CKe0wVQy.cjs +0 -2
- package/dist/aliases-CKe0wVQy.cjs.map +0 -1
- package/dist/aliases-u3xep8jx.js +0 -2732
- package/dist/aliases-u3xep8jx.js.map +0 -1
- package/dist/button-C10AiP5_.cjs +0 -2
- package/dist/button-C10AiP5_.cjs.map +0 -1
- package/dist/button-Sy9e0tiI.js +0 -1742
- package/dist/button-Sy9e0tiI.js.map +0 -1
- package/dist/component-layers.d.ts +0 -199
- package/dist/component-layers.d.ts.map +0 -1
- package/dist/composables-GXmQiqgg.cjs +0 -2
- package/dist/composables-GXmQiqgg.cjs.map +0 -1
- package/dist/composables-YMNfao5g.js +0 -251
- package/dist/composables-YMNfao5g.js.map +0 -1
- package/dist/separator-BnNQAp6A.js +0 -259
- package/dist/separator-BnNQAp6A.js.map +0 -1
- package/dist/separator-Bynwn-we.cjs +0 -2
- package/dist/separator-Bynwn-we.cjs.map +0 -1
- package/dist/sidebar-BnZB7vlK.js +0 -344
- package/dist/sidebar-BnZB7vlK.js.map +0 -1
- package/dist/sidebar-xKPzL0NQ.cjs +0 -2
- package/dist/sidebar-xKPzL0NQ.cjs.map +0 -1
package/dist/blocks/index.js
CHANGED
|
@@ -1,28 +1,52 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { t as e } from "../cn-Cl2u7rTh.js";
|
|
2
|
+
import { t } from "../button-D_ikOxrp.js";
|
|
2
3
|
import { Fragment as n, computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createTextVNode as c, createVNode as l, defineComponent as u, normalizeClass as d, openBlock as f, renderList as p, renderSlot as m, resolveDynamicComponent as h, toDisplayString as g, unref as _, withCtx as v } from "vue";
|
|
3
|
-
import { ArrowRight as y } from "lucide
|
|
4
|
+
import { ArrowRight as y } from "@lucide/vue";
|
|
4
5
|
//#region src/blocks/landing-hero.vue?vue&type=script&setup=true&lang.ts
|
|
5
|
-
var b =
|
|
6
|
+
var b = ["data-variant"], x = {
|
|
7
|
+
class: "absolute inset-0 -z-20 overflow-hidden",
|
|
8
|
+
"data-ug-slot": "media"
|
|
9
|
+
}, S = {
|
|
10
|
+
class: "mx-auto flex min-h-[calc(var(--control-height-lg)*10)] w-full max-w-7xl flex-col justify-center px-[var(--content-gap)] py-[calc(var(--content-gap)*4)] sm:px-[calc(var(--content-gap)*1.25)] lg:px-[calc(var(--content-gap)*1.5)]",
|
|
11
|
+
"data-ug-slot": "container"
|
|
12
|
+
}, C = {
|
|
13
|
+
class: "max-w-4xl space-y-[calc(var(--content-gap)*1.75)]",
|
|
14
|
+
"data-ug-slot": "content"
|
|
15
|
+
}, w = {
|
|
6
16
|
key: 0,
|
|
7
|
-
class: "inline-flex rounded-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
class: "max-w-
|
|
17
|
+
class: "inline-flex rounded-[var(--radius-control)] border border-primary/25 bg-primary-soft px-[var(--control-padding-x-sm)] py-[calc(var(--content-gap)*0.25)] text-xs font-semibold text-primary-soft-fg",
|
|
18
|
+
"data-ug-slot": "eyebrow"
|
|
19
|
+
}, T = { class: "space-y-[var(--content-gap)]" }, E = {
|
|
20
|
+
class: "max-w-4xl break-words text-4xl font-bold leading-tight text-text-primary sm:text-5xl lg:text-6xl",
|
|
21
|
+
"data-ug-slot": "title"
|
|
11
22
|
}, D = {
|
|
23
|
+
key: 0,
|
|
24
|
+
class: "max-w-2xl text-base leading-7 text-text-secondary sm:text-lg",
|
|
25
|
+
"data-ug-slot": "description"
|
|
26
|
+
}, O = {
|
|
12
27
|
key: 1,
|
|
13
|
-
class: "flex flex-wrap items-center gap-
|
|
14
|
-
|
|
28
|
+
class: "flex flex-wrap items-center gap-[calc(var(--content-gap)*0.75)]",
|
|
29
|
+
"data-ug-slot": "actions"
|
|
30
|
+
}, k = ["href"], A = { "data-ug-slot": "action-label" }, j = { "data-ug-slot": "action-label" }, M = ["href"], N = { "data-ug-slot": "action-label" }, P = { "data-ug-slot": "action-label" }, F = {
|
|
15
31
|
key: 2,
|
|
16
|
-
class: "grid max-w-2xl gap-
|
|
17
|
-
|
|
32
|
+
class: "grid max-w-2xl gap-[var(--content-gap)] sm:grid-cols-3",
|
|
33
|
+
"data-ug-slot": "stats"
|
|
34
|
+
}, I = {
|
|
35
|
+
class: "text-xs font-medium text-text-tertiary",
|
|
36
|
+
"data-ug-slot": "stat-label"
|
|
37
|
+
}, L = {
|
|
38
|
+
class: "mt-[calc(var(--content-gap)*0.25)] text-2xl font-bold text-text-primary",
|
|
39
|
+
"data-ug-slot": "stat-value"
|
|
40
|
+
}, R = {
|
|
18
41
|
key: 3,
|
|
19
|
-
class: "min-w-0"
|
|
20
|
-
|
|
42
|
+
class: "min-w-0",
|
|
43
|
+
"data-ug-slot": "footer"
|
|
44
|
+
}, z = /* @__PURE__ */ u({
|
|
21
45
|
name: "ULandingHero",
|
|
22
46
|
__name: "landing-hero",
|
|
23
47
|
props: {
|
|
24
48
|
eyebrow: { default: void 0 },
|
|
25
|
-
title: {
|
|
49
|
+
title: {},
|
|
26
50
|
description: { default: void 0 },
|
|
27
51
|
primaryAction: { default: void 0 },
|
|
28
52
|
secondaryAction: { default: void 0 },
|
|
@@ -30,72 +54,117 @@ var b = { class: "absolute inset-0 -z-20 overflow-hidden" }, x = { class: "mx-au
|
|
|
30
54
|
class: { default: void 0 }
|
|
31
55
|
},
|
|
32
56
|
setup(l) {
|
|
33
|
-
let u = l,
|
|
34
|
-
return (e, r) => (f(), o("section", {
|
|
57
|
+
let u = l, z = r(() => e("relative isolate overflow-hidden border-b border-border-base bg-surface-0", u.class));
|
|
58
|
+
return (e, r) => (f(), o("section", {
|
|
59
|
+
class: d(z.value),
|
|
60
|
+
"data-ug": "landing-hero",
|
|
61
|
+
"data-state": "default",
|
|
62
|
+
"data-variant": e.$slots.media ? "media" : "default",
|
|
63
|
+
"data-size": "md"
|
|
64
|
+
}, [e.$slots.media ? (f(), o(n, { key: 0 }, [s("div", x, [m(e.$slots, "media")]), r[2] || (r[2] = s("div", {
|
|
35
65
|
class: "absolute inset-0 -z-10 bg-surface-0/78",
|
|
36
|
-
"aria-hidden": "true"
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
l.
|
|
66
|
+
"aria-hidden": "true",
|
|
67
|
+
"data-ug-slot": "overlay"
|
|
68
|
+
}, null, -1))], 64)) : a("", !0), s("div", S, [s("div", C, [
|
|
69
|
+
l.eyebrow || e.$slots.eyebrow ? (f(), o("div", w, [m(e.$slots, "eyebrow", {}, () => [c(g(l.eyebrow), 1)])])) : a("", !0),
|
|
70
|
+
s("div", T, [s("h1", E, [m(e.$slots, "title", {}, () => [c(g(l.title), 1)])]), l.description || e.$slots.description ? (f(), o("p", D, [m(e.$slots, "description", {}, () => [c(g(l.description), 1)])])) : a("", !0)]),
|
|
71
|
+
l.primaryAction || l.secondaryAction || e.$slots.actions ? (f(), o("div", O, [m(e.$slots, "actions", {}, () => [l.primaryAction?.href && !l.primaryAction.disabled ? (f(), o("a", {
|
|
41
72
|
key: 0,
|
|
42
73
|
href: l.primaryAction.href,
|
|
43
|
-
class: "inline-flex h-
|
|
44
|
-
|
|
74
|
+
class: "inline-flex min-h-[var(--control-height-md)] items-center justify-center gap-[calc(var(--content-gap)*0.5)] rounded-[var(--radius-control)] bg-primary px-[var(--control-padding-x-md)] text-sm font-medium text-primary-fg transition-colors hover:bg-primary-hover focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2",
|
|
75
|
+
onClick: r[0] || (r[0] = (...e) => l.primaryAction.onClick && l.primaryAction.onClick(...e))
|
|
76
|
+
}, [s("span", A, g(l.primaryAction.label), 1), (f(), i(h(l.primaryAction.icon ?? _(y)), {
|
|
45
77
|
size: 16,
|
|
46
|
-
"aria-hidden": "true"
|
|
47
|
-
|
|
78
|
+
"aria-hidden": "true",
|
|
79
|
+
focusable: "false",
|
|
80
|
+
"data-ug-slot": "action-icon"
|
|
81
|
+
}))], 8, k)) : l.primaryAction ? (f(), i(t, {
|
|
48
82
|
key: 1,
|
|
49
|
-
variant: l.primaryAction.variant ?? "
|
|
83
|
+
variant: l.primaryAction.variant ?? "primary",
|
|
84
|
+
disabled: l.primaryAction.disabled,
|
|
85
|
+
onClick: l.primaryAction.onClick
|
|
50
86
|
}, {
|
|
51
|
-
default: v(() => [
|
|
87
|
+
default: v(() => [s("span", j, g(l.primaryAction.label), 1), (f(), i(h(l.primaryAction.icon ?? _(y)), {
|
|
52
88
|
size: 16,
|
|
53
|
-
"aria-hidden": "true"
|
|
89
|
+
"aria-hidden": "true",
|
|
90
|
+
focusable: "false",
|
|
91
|
+
"data-ug-slot": "action-icon"
|
|
54
92
|
}))]),
|
|
55
93
|
_: 1
|
|
56
|
-
}, 8, [
|
|
94
|
+
}, 8, [
|
|
95
|
+
"variant",
|
|
96
|
+
"disabled",
|
|
97
|
+
"onClick"
|
|
98
|
+
])) : a("", !0), l.secondaryAction?.href && !l.secondaryAction.disabled ? (f(), o("a", {
|
|
57
99
|
key: 2,
|
|
58
100
|
href: l.secondaryAction.href,
|
|
59
|
-
class: "inline-flex h-
|
|
60
|
-
|
|
101
|
+
class: "inline-flex min-h-[var(--control-height-md)] items-center justify-center gap-[calc(var(--content-gap)*0.5)] rounded-[var(--radius-control)] border border-border-strong bg-surface-1 px-[var(--control-padding-x-md)] text-sm font-medium text-text-primary transition-colors hover:bg-surface-2 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2",
|
|
102
|
+
onClick: r[1] || (r[1] = (...e) => l.secondaryAction.onClick && l.secondaryAction.onClick(...e))
|
|
103
|
+
}, [s("span", N, g(l.secondaryAction.label), 1), (f(), i(h(l.secondaryAction.icon ?? _(y)), {
|
|
61
104
|
size: 16,
|
|
62
|
-
"aria-hidden": "true"
|
|
63
|
-
|
|
105
|
+
"aria-hidden": "true",
|
|
106
|
+
focusable: "false",
|
|
107
|
+
"data-ug-slot": "action-icon"
|
|
108
|
+
}))], 8, M)) : l.secondaryAction ? (f(), i(t, {
|
|
64
109
|
key: 3,
|
|
65
|
-
variant: l.secondaryAction.variant ?? "outline"
|
|
110
|
+
variant: l.secondaryAction.variant ?? "outline",
|
|
111
|
+
disabled: l.secondaryAction.disabled,
|
|
112
|
+
onClick: l.secondaryAction.onClick
|
|
66
113
|
}, {
|
|
67
|
-
default: v(() => [
|
|
114
|
+
default: v(() => [s("span", P, g(l.secondaryAction.label), 1), (f(), i(h(l.secondaryAction.icon ?? _(y)), {
|
|
68
115
|
size: 16,
|
|
69
|
-
"aria-hidden": "true"
|
|
116
|
+
"aria-hidden": "true",
|
|
117
|
+
focusable: "false",
|
|
118
|
+
"data-ug-slot": "action-icon"
|
|
70
119
|
}))]),
|
|
71
120
|
_: 1
|
|
72
|
-
}, 8, [
|
|
73
|
-
|
|
121
|
+
}, 8, [
|
|
122
|
+
"variant",
|
|
123
|
+
"disabled",
|
|
124
|
+
"onClick"
|
|
125
|
+
])) : a("", !0)])])) : a("", !0),
|
|
126
|
+
l.stats?.length ? (f(), o("dl", F, [(f(!0), o(n, null, p(l.stats, (e) => (f(), o("div", {
|
|
74
127
|
key: `${e.value}-${e.label}`,
|
|
75
|
-
class: "border-l border-border-base pl-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
128
|
+
class: "border-l border-border-base pl-[var(--content-gap)]",
|
|
129
|
+
"data-ug-slot": "stat"
|
|
130
|
+
}, [s("dt", I, g(e.label), 1), s("dd", L, g(e.value), 1)]))), 128))])) : a("", !0),
|
|
131
|
+
e.$slots.default ? (f(), o("div", R, [m(e.$slots, "default")])) : a("", !0)
|
|
132
|
+
])])], 10, b));
|
|
79
133
|
}
|
|
80
|
-
}),
|
|
134
|
+
}), B = ["data-variant"], V = { class: "mx-auto w-full max-w-7xl space-y-[calc(var(--section-gap)*0.8)]" }, H = {
|
|
81
135
|
key: 0,
|
|
82
|
-
|
|
83
|
-
|
|
136
|
+
"data-ug-slot": "header",
|
|
137
|
+
class: "max-w-3xl space-y-[calc(var(--content-gap)*0.5)]"
|
|
138
|
+
}, U = {
|
|
84
139
|
key: 0,
|
|
140
|
+
"data-ug-slot": "title",
|
|
85
141
|
class: "break-words text-3xl font-bold leading-tight text-text-primary"
|
|
86
|
-
},
|
|
142
|
+
}, W = {
|
|
87
143
|
key: 1,
|
|
144
|
+
"data-ug-slot": "description",
|
|
88
145
|
class: "text-sm leading-6 text-text-secondary"
|
|
89
|
-
},
|
|
146
|
+
}, G = { class: "flex min-w-0 items-start justify-between gap-[calc(var(--content-gap)*0.6)]" }, K = {
|
|
90
147
|
key: 0,
|
|
91
|
-
|
|
92
|
-
|
|
148
|
+
"data-ug-slot": "icon",
|
|
149
|
+
class: "flex h-[var(--control-height-lg)] w-[var(--control-height-lg)] shrink-0 items-center justify-center rounded-[var(--radius-control)] bg-primary-soft text-primary-soft-fg"
|
|
150
|
+
}, q = {
|
|
93
151
|
key: 1,
|
|
152
|
+
"data-ug-slot": "meta",
|
|
94
153
|
class: "shrink-0 text-xs font-medium text-text-tertiary"
|
|
95
|
-
},
|
|
154
|
+
}, J = {
|
|
155
|
+
"data-ug-slot": "content",
|
|
156
|
+
class: "min-w-0 space-y-[calc(var(--content-gap)*0.4)]"
|
|
157
|
+
}, Y = {
|
|
158
|
+
"data-ug-slot": "item-title",
|
|
159
|
+
class: "break-words text-base font-semibold text-text-primary"
|
|
160
|
+
}, X = {
|
|
161
|
+
"data-ug-slot": "item-description",
|
|
162
|
+
class: "text-sm leading-6 text-text-secondary"
|
|
163
|
+
}, Z = {
|
|
96
164
|
key: 0,
|
|
97
|
-
|
|
98
|
-
|
|
165
|
+
"data-ug-slot": "item-action",
|
|
166
|
+
class: "inline-flex items-center gap-[calc(var(--content-gap)*0.25)] text-sm font-medium text-primary"
|
|
167
|
+
}, Q = /* @__PURE__ */ u({
|
|
99
168
|
name: "UFeatureGrid",
|
|
100
169
|
__name: "feature-grid",
|
|
101
170
|
props: {
|
|
@@ -110,28 +179,49 @@ var b = { class: "absolute inset-0 -z-20 overflow-hidden" }, x = { class: "mx-au
|
|
|
110
179
|
2: "lg:grid-cols-2",
|
|
111
180
|
3: "lg:grid-cols-3",
|
|
112
181
|
4: "lg:grid-cols-4"
|
|
113
|
-
}, x =
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
182
|
+
}, x = {
|
|
183
|
+
2: "two",
|
|
184
|
+
3: "three",
|
|
185
|
+
4: "four"
|
|
186
|
+
}, S = r(() => e("bg-surface-0 px-[var(--content-gap)] py-[var(--section-gap)] sm:px-[calc(var(--content-gap)*1.25)] lg:px-[calc(var(--content-gap)*1.5)]", u.class)), C = r(() => e("grid gap-[calc(var(--content-gap)*0.8)] md:grid-cols-2", b[u.columns])), w = r(() => x[u.columns]);
|
|
187
|
+
return (r, u) => (f(), o("section", {
|
|
188
|
+
class: d(S.value),
|
|
189
|
+
"data-ug": "feature-grid",
|
|
190
|
+
"data-state": "default",
|
|
191
|
+
"data-variant": w.value,
|
|
192
|
+
"data-size": "md"
|
|
193
|
+
}, [s("div", V, [t.title || t.description || r.$slots.header ? (f(), o("div", H, [m(r.$slots, "header", {}, () => [t.title ? (f(), o("h2", U, g(t.title), 1)) : a("", !0), t.description ? (f(), o("p", W, g(t.description), 1)) : a("", !0)])])) : a("", !0), s("div", {
|
|
194
|
+
"data-ug-slot": "grid",
|
|
195
|
+
class: d(C.value)
|
|
196
|
+
}, [(f(!0), o(n, null, p(t.features, (t) => (f(), i(h(t.href ? "a" : "article"), {
|
|
197
|
+
key: t.title,
|
|
198
|
+
href: t.href,
|
|
199
|
+
"data-ug-slot": "item",
|
|
200
|
+
"data-state": t.href ? "interactive" : "static",
|
|
201
|
+
class: d(_(e)("flex min-w-0 flex-col gap-[var(--content-gap)] rounded-[var(--radius-panel)] border border-border-base bg-surface-1 p-[var(--content-gap)]", t.href && "transition-colors hover:border-primary/35 hover:bg-surface-2 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2"))
|
|
118
202
|
}, {
|
|
119
203
|
default: v(() => [
|
|
120
|
-
s("div",
|
|
204
|
+
s("div", G, [t.icon ? (f(), o("span", K, [(f(), i(h(t.icon), {
|
|
121
205
|
size: 20,
|
|
122
|
-
"aria-hidden": "true"
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
206
|
+
"aria-hidden": "true",
|
|
207
|
+
focusable: "false"
|
|
208
|
+
}))])) : a("", !0), t.meta ? (f(), o("span", q, g(t.meta), 1)) : a("", !0)]),
|
|
209
|
+
s("div", J, [s("h3", Y, g(t.title), 1), s("p", X, g(t.description), 1)]),
|
|
210
|
+
t.href ? (f(), o("span", Z, [u[0] || (u[0] = c(" 查看详情 ", -1)), l(_(y), {
|
|
126
211
|
size: 14,
|
|
127
|
-
"aria-hidden": "true"
|
|
212
|
+
"aria-hidden": "true",
|
|
213
|
+
focusable: "false"
|
|
128
214
|
})])) : a("", !0)
|
|
129
215
|
]),
|
|
130
216
|
_: 2
|
|
131
|
-
}, 1032, [
|
|
217
|
+
}, 1032, [
|
|
218
|
+
"href",
|
|
219
|
+
"data-state",
|
|
220
|
+
"class"
|
|
221
|
+
]))), 128))], 2)])], 10, B));
|
|
132
222
|
}
|
|
133
223
|
});
|
|
134
224
|
//#endregion
|
|
135
|
-
export {
|
|
225
|
+
export { Q as UFeatureGrid, Q as UGFeatureGrid, z as UGLandingHero, z as ULandingHero };
|
|
136
226
|
|
|
137
227
|
//# sourceMappingURL=index.js.map
|
package/dist/blocks/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["$slots","$slots"],"sources":["../../src/blocks/landing-hero.vue","../../src/blocks/landing-hero.vue","../../src/blocks/feature-grid.vue","../../src/blocks/feature-grid.vue"],"sourcesContent":["/**\n * @description: ULandingHero 展示页首屏区块 — 支持背景媒体、行动按钮和关键指标\n * @author: UG - 一个斗码大陆苦逼的三段码之气的少年,并没有神秘戒指中码老的帮助,但总有一天,我会成为斗码大陆中码帝一样的存在。三十年河东,三十年河西,莫欺少年穷。\n * @date: 2026-05-30\n */\n<script setup lang=\"ts\">\nimport { computed, type Component } from 'vue'\nimport { ArrowRight } from 'lucide-vue-next'\nimport UButton from '../components/button.vue'\nimport { cn } from '../internal/cn'\n\ndefineOptions({\n name: 'ULandingHero',\n})\n\ntype ButtonVariant = 'default' | 'destructive' | 'outline' | 'secondary' | 'ghost' | 'link'\n\ninterface HeroAction {\n label: string\n href?: string\n icon?: Component\n variant?: ButtonVariant\n}\n\ninterface HeroStat {\n value: string\n label: string\n}\n\ninterface Props {\n /** 顶部短标签 */\n eyebrow?: string\n /** 主标题 */\n title?: string\n /** 描述文案 */\n description?: string\n /** 主行动 */\n primaryAction?: HeroAction\n /** 次行动 */\n secondaryAction?: HeroAction\n /** 关键指标 */\n stats?: HeroStat[]\n /** 容器额外 CSS 类名 */\n class?: string\n}\n\nconst props = withDefaults(defineProps<Props>(), {\n eyebrow: undefined,\n title: undefined,\n description: undefined,\n primaryAction: undefined,\n secondaryAction: undefined,\n stats: undefined,\n class: undefined,\n})\n\nconst classes = computed(() =>\n cn('relative isolate overflow-hidden border-b border-border-base bg-surface-0', props.class),\n)\n</script>\n\n<template>\n <section :class=\"classes\">\n <template v-if=\"$slots.media\">\n <div class=\"absolute inset-0 -z-20 overflow-hidden\">\n <slot name=\"media\" />\n </div>\n <div class=\"absolute inset-0 -z-10 bg-surface-0/78\" aria-hidden=\"true\" />\n </template>\n\n <div class=\"mx-auto flex min-h-[520px] w-full max-w-7xl flex-col justify-center px-4 py-20 sm:px-6 lg:px-8\">\n <div class=\"max-w-4xl space-y-7\">\n <div v-if=\"eyebrow || $slots.eyebrow\" class=\"inline-flex rounded-md border border-primary/25 bg-primary-soft px-3 py-1 text-xs font-semibold text-primary-soft-fg\">\n <slot name=\"eyebrow\">{{ eyebrow }}</slot>\n </div>\n\n <div class=\"space-y-4\">\n <h1 class=\"max-w-4xl break-words text-4xl font-bold leading-tight text-text-primary sm:text-5xl lg:text-6xl\">\n <slot name=\"title\">{{ title }}</slot>\n </h1>\n <p v-if=\"description || $slots.description\" class=\"max-w-2xl text-base leading-7 text-text-secondary sm:text-lg\">\n <slot name=\"description\">{{ description }}</slot>\n </p>\n </div>\n\n <div v-if=\"primaryAction || secondaryAction || $slots.actions\" class=\"flex flex-wrap items-center gap-3\">\n <slot name=\"actions\">\n <a\n v-if=\"primaryAction?.href\"\n :href=\"primaryAction.href\"\n class=\"inline-flex h-10 items-center justify-center gap-2 rounded-md bg-primary px-4 text-sm font-medium text-primary-fg transition-colors hover:bg-primary-hover\"\n >\n {{ primaryAction.label }}\n <component :is=\"primaryAction.icon ?? ArrowRight\" :size=\"16\" aria-hidden=\"true\" />\n </a>\n <UButton v-else-if=\"primaryAction\" :variant=\"primaryAction.variant ?? 'default'\">\n {{ primaryAction.label }}\n <component :is=\"primaryAction.icon ?? ArrowRight\" :size=\"16\" aria-hidden=\"true\" />\n </UButton>\n\n <a\n v-if=\"secondaryAction?.href\"\n :href=\"secondaryAction.href\"\n class=\"inline-flex h-10 items-center justify-center gap-2 rounded-md border border-border-strong bg-surface-1 px-4 text-sm font-medium text-text-primary transition-colors hover:bg-surface-2\"\n >\n {{ secondaryAction.label }}\n <component :is=\"secondaryAction.icon ?? ArrowRight\" :size=\"16\" aria-hidden=\"true\" />\n </a>\n <UButton v-else-if=\"secondaryAction\" :variant=\"secondaryAction.variant ?? 'outline'\">\n {{ secondaryAction.label }}\n <component :is=\"secondaryAction.icon ?? ArrowRight\" :size=\"16\" aria-hidden=\"true\" />\n </UButton>\n </slot>\n </div>\n\n <dl v-if=\"stats?.length\" class=\"grid max-w-2xl gap-4 sm:grid-cols-3\">\n <div v-for=\"stat in stats\" :key=\"`${stat.value}-${stat.label}`\" class=\"border-l border-border-base pl-4\">\n <dt class=\"text-xs font-medium text-text-tertiary\">{{ stat.label }}</dt>\n <dd class=\"mt-1 text-2xl font-bold text-text-primary\">{{ stat.value }}</dd>\n </div>\n </dl>\n\n <div v-if=\"$slots.default\" class=\"min-w-0\">\n <slot />\n </div>\n </div>\n </div>\n </section>\n</template>\n","/**\n * @description: ULandingHero 展示页首屏区块 — 支持背景媒体、行动按钮和关键指标\n * @author: UG - 一个斗码大陆苦逼的三段码之气的少年,并没有神秘戒指中码老的帮助,但总有一天,我会成为斗码大陆中码帝一样的存在。三十年河东,三十年河西,莫欺少年穷。\n * @date: 2026-05-30\n */\n<script setup lang=\"ts\">\nimport { computed, type Component } from 'vue'\nimport { ArrowRight } from 'lucide-vue-next'\nimport UButton from '../components/button.vue'\nimport { cn } from '../internal/cn'\n\ndefineOptions({\n name: 'ULandingHero',\n})\n\ntype ButtonVariant = 'default' | 'destructive' | 'outline' | 'secondary' | 'ghost' | 'link'\n\ninterface HeroAction {\n label: string\n href?: string\n icon?: Component\n variant?: ButtonVariant\n}\n\ninterface HeroStat {\n value: string\n label: string\n}\n\ninterface Props {\n /** 顶部短标签 */\n eyebrow?: string\n /** 主标题 */\n title?: string\n /** 描述文案 */\n description?: string\n /** 主行动 */\n primaryAction?: HeroAction\n /** 次行动 */\n secondaryAction?: HeroAction\n /** 关键指标 */\n stats?: HeroStat[]\n /** 容器额外 CSS 类名 */\n class?: string\n}\n\nconst props = withDefaults(defineProps<Props>(), {\n eyebrow: undefined,\n title: undefined,\n description: undefined,\n primaryAction: undefined,\n secondaryAction: undefined,\n stats: undefined,\n class: undefined,\n})\n\nconst classes = computed(() =>\n cn('relative isolate overflow-hidden border-b border-border-base bg-surface-0', props.class),\n)\n</script>\n\n<template>\n <section :class=\"classes\">\n <template v-if=\"$slots.media\">\n <div class=\"absolute inset-0 -z-20 overflow-hidden\">\n <slot name=\"media\" />\n </div>\n <div class=\"absolute inset-0 -z-10 bg-surface-0/78\" aria-hidden=\"true\" />\n </template>\n\n <div class=\"mx-auto flex min-h-[520px] w-full max-w-7xl flex-col justify-center px-4 py-20 sm:px-6 lg:px-8\">\n <div class=\"max-w-4xl space-y-7\">\n <div v-if=\"eyebrow || $slots.eyebrow\" class=\"inline-flex rounded-md border border-primary/25 bg-primary-soft px-3 py-1 text-xs font-semibold text-primary-soft-fg\">\n <slot name=\"eyebrow\">{{ eyebrow }}</slot>\n </div>\n\n <div class=\"space-y-4\">\n <h1 class=\"max-w-4xl break-words text-4xl font-bold leading-tight text-text-primary sm:text-5xl lg:text-6xl\">\n <slot name=\"title\">{{ title }}</slot>\n </h1>\n <p v-if=\"description || $slots.description\" class=\"max-w-2xl text-base leading-7 text-text-secondary sm:text-lg\">\n <slot name=\"description\">{{ description }}</slot>\n </p>\n </div>\n\n <div v-if=\"primaryAction || secondaryAction || $slots.actions\" class=\"flex flex-wrap items-center gap-3\">\n <slot name=\"actions\">\n <a\n v-if=\"primaryAction?.href\"\n :href=\"primaryAction.href\"\n class=\"inline-flex h-10 items-center justify-center gap-2 rounded-md bg-primary px-4 text-sm font-medium text-primary-fg transition-colors hover:bg-primary-hover\"\n >\n {{ primaryAction.label }}\n <component :is=\"primaryAction.icon ?? ArrowRight\" :size=\"16\" aria-hidden=\"true\" />\n </a>\n <UButton v-else-if=\"primaryAction\" :variant=\"primaryAction.variant ?? 'default'\">\n {{ primaryAction.label }}\n <component :is=\"primaryAction.icon ?? ArrowRight\" :size=\"16\" aria-hidden=\"true\" />\n </UButton>\n\n <a\n v-if=\"secondaryAction?.href\"\n :href=\"secondaryAction.href\"\n class=\"inline-flex h-10 items-center justify-center gap-2 rounded-md border border-border-strong bg-surface-1 px-4 text-sm font-medium text-text-primary transition-colors hover:bg-surface-2\"\n >\n {{ secondaryAction.label }}\n <component :is=\"secondaryAction.icon ?? ArrowRight\" :size=\"16\" aria-hidden=\"true\" />\n </a>\n <UButton v-else-if=\"secondaryAction\" :variant=\"secondaryAction.variant ?? 'outline'\">\n {{ secondaryAction.label }}\n <component :is=\"secondaryAction.icon ?? ArrowRight\" :size=\"16\" aria-hidden=\"true\" />\n </UButton>\n </slot>\n </div>\n\n <dl v-if=\"stats?.length\" class=\"grid max-w-2xl gap-4 sm:grid-cols-3\">\n <div v-for=\"stat in stats\" :key=\"`${stat.value}-${stat.label}`\" class=\"border-l border-border-base pl-4\">\n <dt class=\"text-xs font-medium text-text-tertiary\">{{ stat.label }}</dt>\n <dd class=\"mt-1 text-2xl font-bold text-text-primary\">{{ stat.value }}</dd>\n </div>\n </dl>\n\n <div v-if=\"$slots.default\" class=\"min-w-0\">\n <slot />\n </div>\n </div>\n </div>\n </section>\n</template>\n","/**\n * @description: UFeatureGrid 特性网格区块 — 用于产品能力、服务优势和功能模块展示\n * @author: UG - 一个斗码大陆苦逼的三段码之气的少年,并没有神秘戒指中码老的帮助,但总有一天,我会成为斗码大陆中码帝一样的存在。三十年河东,三十年河西,莫欺少年穷。\n * @date: 2026-05-30\n */\n<script setup lang=\"ts\">\nimport { computed, type Component } from 'vue'\nimport { ArrowRight } from 'lucide-vue-next'\nimport { cn } from '../internal/cn'\n\ndefineOptions({\n name: 'UFeatureGrid',\n})\n\ninterface FeatureGridItem {\n title: string\n description: string\n icon?: Component\n meta?: string\n href?: string\n}\n\ntype FeatureGridColumns = 2 | 3 | 4\n\ninterface Props {\n /** 区块标题 */\n title?: string\n /** 区块说明 */\n description?: string\n /** 特性列表 */\n features: FeatureGridItem[]\n /** 列数,默认三列 */\n columns?: FeatureGridColumns\n /** 容器额外 CSS 类名 */\n class?: string\n}\n\nconst props = withDefaults(defineProps<Props>(), {\n title: undefined,\n description: undefined,\n columns: 3,\n class: undefined,\n})\n\nconst columnClasses: Record<FeatureGridColumns, string> = {\n 2: 'lg:grid-cols-2',\n 3: 'lg:grid-cols-3',\n 4: 'lg:grid-cols-4',\n}\n\nconst classes = computed(() => cn('bg-surface-0 px-4 py-16 sm:px-6 lg:px-8', props.class))\nconst gridClasses = computed(() => cn('grid gap-4 md:grid-cols-2', columnClasses[props.columns]))\n</script>\n\n<template>\n <section :class=\"classes\">\n <div class=\"mx-auto w-full max-w-7xl space-y-8\">\n <div v-if=\"title || description || $slots.header\" class=\"max-w-3xl space-y-3\">\n <slot name=\"header\">\n <h2 v-if=\"title\" class=\"break-words text-3xl font-bold leading-tight text-text-primary\">{{ title }}</h2>\n <p v-if=\"description\" class=\"text-sm leading-6 text-text-secondary\">{{ description }}</p>\n </slot>\n </div>\n\n <div :class=\"gridClasses\">\n <component\n :is=\"feature.href ? 'a' : 'article'\"\n v-for=\"feature in features\"\n :key=\"feature.title\"\n :href=\"feature.href\"\n class=\"flex min-w-0 flex-col gap-5 rounded-lg border border-border-base bg-surface-1 p-5 transition-colors hover:border-primary/35 hover:bg-surface-2\"\n >\n <div class=\"flex min-w-0 items-start justify-between gap-3\">\n <span v-if=\"feature.icon\" class=\"flex h-10 w-10 shrink-0 items-center justify-center rounded-md bg-primary-soft text-primary-soft-fg\">\n <component :is=\"feature.icon\" :size=\"20\" aria-hidden=\"true\" />\n </span>\n <span v-if=\"feature.meta\" class=\"shrink-0 text-xs font-medium text-text-tertiary\">{{ feature.meta }}</span>\n </div>\n <div class=\"min-w-0 space-y-2\">\n <h3 class=\"break-words text-base font-semibold text-text-primary\">{{ feature.title }}</h3>\n <p class=\"text-sm leading-6 text-text-secondary\">{{ feature.description }}</p>\n </div>\n <span v-if=\"feature.href\" class=\"inline-flex items-center gap-1 text-sm font-medium text-primary\">\n 查看详情\n <ArrowRight :size=\"14\" aria-hidden=\"true\" />\n </span>\n </component>\n </div>\n </div>\n </section>\n</template>\n","/**\n * @description: UFeatureGrid 特性网格区块 — 用于产品能力、服务优势和功能模块展示\n * @author: UG - 一个斗码大陆苦逼的三段码之气的少年,并没有神秘戒指中码老的帮助,但总有一天,我会成为斗码大陆中码帝一样的存在。三十年河东,三十年河西,莫欺少年穷。\n * @date: 2026-05-30\n */\n<script setup lang=\"ts\">\nimport { computed, type Component } from 'vue'\nimport { ArrowRight } from 'lucide-vue-next'\nimport { cn } from '../internal/cn'\n\ndefineOptions({\n name: 'UFeatureGrid',\n})\n\ninterface FeatureGridItem {\n title: string\n description: string\n icon?: Component\n meta?: string\n href?: string\n}\n\ntype FeatureGridColumns = 2 | 3 | 4\n\ninterface Props {\n /** 区块标题 */\n title?: string\n /** 区块说明 */\n description?: string\n /** 特性列表 */\n features: FeatureGridItem[]\n /** 列数,默认三列 */\n columns?: FeatureGridColumns\n /** 容器额外 CSS 类名 */\n class?: string\n}\n\nconst props = withDefaults(defineProps<Props>(), {\n title: undefined,\n description: undefined,\n columns: 3,\n class: undefined,\n})\n\nconst columnClasses: Record<FeatureGridColumns, string> = {\n 2: 'lg:grid-cols-2',\n 3: 'lg:grid-cols-3',\n 4: 'lg:grid-cols-4',\n}\n\nconst classes = computed(() => cn('bg-surface-0 px-4 py-16 sm:px-6 lg:px-8', props.class))\nconst gridClasses = computed(() => cn('grid gap-4 md:grid-cols-2', columnClasses[props.columns]))\n</script>\n\n<template>\n <section :class=\"classes\">\n <div class=\"mx-auto w-full max-w-7xl space-y-8\">\n <div v-if=\"title || description || $slots.header\" class=\"max-w-3xl space-y-3\">\n <slot name=\"header\">\n <h2 v-if=\"title\" class=\"break-words text-3xl font-bold leading-tight text-text-primary\">{{ title }}</h2>\n <p v-if=\"description\" class=\"text-sm leading-6 text-text-secondary\">{{ description }}</p>\n </slot>\n </div>\n\n <div :class=\"gridClasses\">\n <component\n :is=\"feature.href ? 'a' : 'article'\"\n v-for=\"feature in features\"\n :key=\"feature.title\"\n :href=\"feature.href\"\n class=\"flex min-w-0 flex-col gap-5 rounded-lg border border-border-base bg-surface-1 p-5 transition-colors hover:border-primary/35 hover:bg-surface-2\"\n >\n <div class=\"flex min-w-0 items-start justify-between gap-3\">\n <span v-if=\"feature.icon\" class=\"flex h-10 w-10 shrink-0 items-center justify-center rounded-md bg-primary-soft text-primary-soft-fg\">\n <component :is=\"feature.icon\" :size=\"20\" aria-hidden=\"true\" />\n </span>\n <span v-if=\"feature.meta\" class=\"shrink-0 text-xs font-medium text-text-tertiary\">{{ feature.meta }}</span>\n </div>\n <div class=\"min-w-0 space-y-2\">\n <h3 class=\"break-words text-base font-semibold text-text-primary\">{{ feature.title }}</h3>\n <p class=\"text-sm leading-6 text-text-secondary\">{{ feature.description }}</p>\n </div>\n <span v-if=\"feature.href\" class=\"inline-flex items-center gap-1 text-sm font-medium text-primary\">\n 查看详情\n <ArrowRight :size=\"14\" aria-hidden=\"true\" />\n </span>\n </component>\n </div>\n </div>\n </section>\n</template>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA8CA,IAAM,IAAQ,GAUR,IAAU,QACd,EAAG,6EAA6E,EAAM,MAAM,CAC9F;yBAIE,EAiEU,WAAA,EAjEA,OAAK,EAAE,EAAA,MAAO,EAAA,EAAA,CACNA,EAAAA,OAAO,SAAA,GAAA,EAAvB,EAKW,GAAA,EAAA,KAAA,GAAA,EAAA,CAJT,EAEM,OAFN,GAEM,CADJ,EAAqB,EAAA,QAAA,QAAA,CAAA,CAAA,EAAA,EAAA,OAAA,EAAA,KAEvB,EAAyE,OAAA;GAApE,OAAM;GAAyC,eAAY;oCAGlE,EAwDM,OAxDN,GAwDM,CAvDJ,EAsDM,OAtDN,GAsDM;GArDO,EAAA,WAAWA,EAAAA,OAAO,WAAA,GAAA,EAA7B,EAEM,OAFN,GAEM,CADJ,EAAyC,EAAA,QAAA,WAAA,EAAA,QAAA,CAAA,EAAA,EAAjB,EAAA,QAAO,EAAA,EAAA,CAAA,CAAA,CAAA,CAAA,IAAA,EAAA,IAAA,GAAA;GAGjC,EAOM,OAPN,GAOM,CANJ,EAEK,MAFL,GAEK,CADH,EAAqC,EAAA,QAAA,SAAA,EAAA,QAAA,CAAA,EAAA,EAAf,EAAA,MAAK,EAAA,EAAA,CAAA,CAAA,CAAA,CAAA,EAEpB,EAAA,eAAeA,EAAAA,OAAO,eAAA,GAAA,EAA/B,EAEI,KAFJ,GAEI,CADF,EAAiD,EAAA,QAAA,eAAA,EAAA,QAAA,CAAA,EAAA,EAArB,EAAA,YAAW,EAAA,EAAA,CAAA,CAAA,CAAA,CAAA,IAAA,EAAA,IAAA,GAAA,CAAA,CAAA;GAIhC,E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OA;IALN,EAKM,OALN,GAKM,CAJQ,EAAQ,QAAA,GAAA,EAApB,EAEO,QAFP,GAEO,EAAA,GAAA,EADL,EAA8D,EAA9C,EAAQ,KAAI,EAAA;KAAG,MAAM;KAAI,eAAY;wBAE3C,EAAQ,QAAA,GAAA,EAApB,EAA2G,QAA3G,GAA2G,EAAtB,EAAQ,KAAI,EAAA,EAAA,IAAA,EAAA,IAAA,GAAA,CAAA,CAAA;IAEnG,EAGM,OAHN,GAGM,CAFJ,EAA0F,MAA1F,GAA0F,EAArB,EAAQ,MAAK,EAAA,EAAA,EAClF,EAA8E,KAA9E,GAA8E,EAA1B,EAAQ,YAAW,EAAA,EAAA,CAAA,CAAA;IAE7D,EAAQ,QAAA,GAAA,EAApB,EAGO,QAHP,GAGO,CAAA,EAAA,OAAA,EAAA,KAAA,EAH2F,UAEhG,GAAA,GAAA,EAA4C,EAAA,EAAA,EAAA;KAA/B,MAAM;KAAI,eAAY"}
|
|
1
|
+
{"version":3,"file":"index.js","names":["$slots","$slots"],"sources":["../../src/blocks/landing-hero.vue","../../src/blocks/landing-hero.vue","../../src/blocks/feature-grid.vue","../../src/blocks/feature-grid.vue"],"sourcesContent":["/**\n * @description: ULandingHero 展示页首屏区块 — 支持背景媒体、行动按钮和关键指标\n * @author: UG - 一个斗码大陆苦逼的三段码之气的少年,并没有神秘戒指中码老的帮助,但总有一天,我会成为斗码大陆中码帝一样的存在。三十年河东,三十年河西,莫欺少年穷。\n * @date: 2026-05-30\n */\n<script setup lang=\"ts\">\nimport { computed, type Component } from 'vue'\nimport { ArrowRight } from '@lucide/vue'\nimport UButton from '../components/button.vue'\nimport { cn } from '../internal/cn'\n\ndefineOptions({\n name: 'ULandingHero',\n})\n\ntype ButtonVariant = 'default' | 'destructive' | 'outline' | 'secondary' | 'ghost' | 'link'\n\ninterface HeroAction {\n label: string\n href?: string\n icon?: Component\n variant?: ButtonVariant\n disabled?: boolean\n onClick?: (event: MouseEvent) => void\n}\n\ninterface HeroStat {\n value: string\n label: string\n}\n\ninterface Props {\n /** 顶部短标签 */\n eyebrow?: string\n /** 主标题 */\n title: string\n /** 描述文案 */\n description?: string\n /** 主行动 */\n primaryAction?: HeroAction\n /** 次行动 */\n secondaryAction?: HeroAction\n /** 关键指标 */\n stats?: HeroStat[]\n /** 容器额外 CSS 类名 */\n class?: string\n}\n\nconst props = withDefaults(defineProps<Props>(), {\n eyebrow: undefined,\n description: undefined,\n primaryAction: undefined,\n secondaryAction: undefined,\n stats: undefined,\n class: undefined,\n})\n\nconst classes = computed(() =>\n cn('relative isolate overflow-hidden border-b border-border-base bg-surface-0', props.class),\n)\n</script>\n\n<template>\n <section\n :class=\"classes\"\n data-ug=\"landing-hero\"\n data-state=\"default\"\n :data-variant=\"$slots.media ? 'media' : 'default'\"\n data-size=\"md\"\n >\n <template v-if=\"$slots.media\">\n <div class=\"absolute inset-0 -z-20 overflow-hidden\" data-ug-slot=\"media\">\n <slot name=\"media\" />\n </div>\n <div class=\"absolute inset-0 -z-10 bg-surface-0/78\" aria-hidden=\"true\" data-ug-slot=\"overlay\" />\n </template>\n\n <div class=\"mx-auto flex min-h-[calc(var(--control-height-lg)*10)] w-full max-w-7xl flex-col justify-center px-[var(--content-gap)] py-[calc(var(--content-gap)*4)] sm:px-[calc(var(--content-gap)*1.25)] lg:px-[calc(var(--content-gap)*1.5)]\" data-ug-slot=\"container\">\n <div class=\"max-w-4xl space-y-[calc(var(--content-gap)*1.75)]\" data-ug-slot=\"content\">\n <div v-if=\"eyebrow || $slots.eyebrow\" class=\"inline-flex rounded-[var(--radius-control)] border border-primary/25 bg-primary-soft px-[var(--control-padding-x-sm)] py-[calc(var(--content-gap)*0.25)] text-xs font-semibold text-primary-soft-fg\" data-ug-slot=\"eyebrow\">\n <slot name=\"eyebrow\">{{ eyebrow }}</slot>\n </div>\n\n <div class=\"space-y-[var(--content-gap)]\">\n <h1 class=\"max-w-4xl break-words text-4xl font-bold leading-tight text-text-primary sm:text-5xl lg:text-6xl\" data-ug-slot=\"title\">\n <slot name=\"title\">{{ title }}</slot>\n </h1>\n <p v-if=\"description || $slots.description\" class=\"max-w-2xl text-base leading-7 text-text-secondary sm:text-lg\" data-ug-slot=\"description\">\n <slot name=\"description\">{{ description }}</slot>\n </p>\n </div>\n\n <div v-if=\"primaryAction || secondaryAction || $slots.actions\" class=\"flex flex-wrap items-center gap-[calc(var(--content-gap)*0.75)]\" data-ug-slot=\"actions\">\n <slot name=\"actions\">\n <a\n v-if=\"primaryAction?.href && !primaryAction.disabled\"\n :href=\"primaryAction.href\"\n class=\"inline-flex min-h-[var(--control-height-md)] items-center justify-center gap-[calc(var(--content-gap)*0.5)] rounded-[var(--radius-control)] bg-primary px-[var(--control-padding-x-md)] text-sm font-medium text-primary-fg transition-colors hover:bg-primary-hover focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2\"\n @click=\"primaryAction.onClick\"\n >\n <span data-ug-slot=\"action-label\">{{ primaryAction.label }}</span>\n <component :is=\"primaryAction.icon ?? ArrowRight\" :size=\"16\" aria-hidden=\"true\" focusable=\"false\" data-ug-slot=\"action-icon\" />\n </a>\n <UButton\n v-else-if=\"primaryAction\"\n :variant=\"primaryAction.variant ?? 'primary'\"\n :disabled=\"primaryAction.disabled\"\n @click=\"primaryAction.onClick\"\n >\n <span data-ug-slot=\"action-label\">{{ primaryAction.label }}</span>\n <component :is=\"primaryAction.icon ?? ArrowRight\" :size=\"16\" aria-hidden=\"true\" focusable=\"false\" data-ug-slot=\"action-icon\" />\n </UButton>\n\n <a\n v-if=\"secondaryAction?.href && !secondaryAction.disabled\"\n :href=\"secondaryAction.href\"\n class=\"inline-flex min-h-[var(--control-height-md)] items-center justify-center gap-[calc(var(--content-gap)*0.5)] rounded-[var(--radius-control)] border border-border-strong bg-surface-1 px-[var(--control-padding-x-md)] text-sm font-medium text-text-primary transition-colors hover:bg-surface-2 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2\"\n @click=\"secondaryAction.onClick\"\n >\n <span data-ug-slot=\"action-label\">{{ secondaryAction.label }}</span>\n <component :is=\"secondaryAction.icon ?? ArrowRight\" :size=\"16\" aria-hidden=\"true\" focusable=\"false\" data-ug-slot=\"action-icon\" />\n </a>\n <UButton\n v-else-if=\"secondaryAction\"\n :variant=\"secondaryAction.variant ?? 'outline'\"\n :disabled=\"secondaryAction.disabled\"\n @click=\"secondaryAction.onClick\"\n >\n <span data-ug-slot=\"action-label\">{{ secondaryAction.label }}</span>\n <component :is=\"secondaryAction.icon ?? ArrowRight\" :size=\"16\" aria-hidden=\"true\" focusable=\"false\" data-ug-slot=\"action-icon\" />\n </UButton>\n </slot>\n </div>\n\n <dl v-if=\"stats?.length\" class=\"grid max-w-2xl gap-[var(--content-gap)] sm:grid-cols-3\" data-ug-slot=\"stats\">\n <div v-for=\"stat in stats\" :key=\"`${stat.value}-${stat.label}`\" class=\"border-l border-border-base pl-[var(--content-gap)]\" data-ug-slot=\"stat\">\n <dt class=\"text-xs font-medium text-text-tertiary\" data-ug-slot=\"stat-label\">{{ stat.label }}</dt>\n <dd class=\"mt-[calc(var(--content-gap)*0.25)] text-2xl font-bold text-text-primary\" data-ug-slot=\"stat-value\">{{ stat.value }}</dd>\n </div>\n </dl>\n\n <div v-if=\"$slots.default\" class=\"min-w-0\" data-ug-slot=\"footer\">\n <slot />\n </div>\n </div>\n </div>\n </section>\n</template>\n","/**\n * @description: ULandingHero 展示页首屏区块 — 支持背景媒体、行动按钮和关键指标\n * @author: UG - 一个斗码大陆苦逼的三段码之气的少年,并没有神秘戒指中码老的帮助,但总有一天,我会成为斗码大陆中码帝一样的存在。三十年河东,三十年河西,莫欺少年穷。\n * @date: 2026-05-30\n */\n<script setup lang=\"ts\">\nimport { computed, type Component } from 'vue'\nimport { ArrowRight } from '@lucide/vue'\nimport UButton from '../components/button.vue'\nimport { cn } from '../internal/cn'\n\ndefineOptions({\n name: 'ULandingHero',\n})\n\ntype ButtonVariant = 'default' | 'destructive' | 'outline' | 'secondary' | 'ghost' | 'link'\n\ninterface HeroAction {\n label: string\n href?: string\n icon?: Component\n variant?: ButtonVariant\n disabled?: boolean\n onClick?: (event: MouseEvent) => void\n}\n\ninterface HeroStat {\n value: string\n label: string\n}\n\ninterface Props {\n /** 顶部短标签 */\n eyebrow?: string\n /** 主标题 */\n title: string\n /** 描述文案 */\n description?: string\n /** 主行动 */\n primaryAction?: HeroAction\n /** 次行动 */\n secondaryAction?: HeroAction\n /** 关键指标 */\n stats?: HeroStat[]\n /** 容器额外 CSS 类名 */\n class?: string\n}\n\nconst props = withDefaults(defineProps<Props>(), {\n eyebrow: undefined,\n description: undefined,\n primaryAction: undefined,\n secondaryAction: undefined,\n stats: undefined,\n class: undefined,\n})\n\nconst classes = computed(() =>\n cn('relative isolate overflow-hidden border-b border-border-base bg-surface-0', props.class),\n)\n</script>\n\n<template>\n <section\n :class=\"classes\"\n data-ug=\"landing-hero\"\n data-state=\"default\"\n :data-variant=\"$slots.media ? 'media' : 'default'\"\n data-size=\"md\"\n >\n <template v-if=\"$slots.media\">\n <div class=\"absolute inset-0 -z-20 overflow-hidden\" data-ug-slot=\"media\">\n <slot name=\"media\" />\n </div>\n <div class=\"absolute inset-0 -z-10 bg-surface-0/78\" aria-hidden=\"true\" data-ug-slot=\"overlay\" />\n </template>\n\n <div class=\"mx-auto flex min-h-[calc(var(--control-height-lg)*10)] w-full max-w-7xl flex-col justify-center px-[var(--content-gap)] py-[calc(var(--content-gap)*4)] sm:px-[calc(var(--content-gap)*1.25)] lg:px-[calc(var(--content-gap)*1.5)]\" data-ug-slot=\"container\">\n <div class=\"max-w-4xl space-y-[calc(var(--content-gap)*1.75)]\" data-ug-slot=\"content\">\n <div v-if=\"eyebrow || $slots.eyebrow\" class=\"inline-flex rounded-[var(--radius-control)] border border-primary/25 bg-primary-soft px-[var(--control-padding-x-sm)] py-[calc(var(--content-gap)*0.25)] text-xs font-semibold text-primary-soft-fg\" data-ug-slot=\"eyebrow\">\n <slot name=\"eyebrow\">{{ eyebrow }}</slot>\n </div>\n\n <div class=\"space-y-[var(--content-gap)]\">\n <h1 class=\"max-w-4xl break-words text-4xl font-bold leading-tight text-text-primary sm:text-5xl lg:text-6xl\" data-ug-slot=\"title\">\n <slot name=\"title\">{{ title }}</slot>\n </h1>\n <p v-if=\"description || $slots.description\" class=\"max-w-2xl text-base leading-7 text-text-secondary sm:text-lg\" data-ug-slot=\"description\">\n <slot name=\"description\">{{ description }}</slot>\n </p>\n </div>\n\n <div v-if=\"primaryAction || secondaryAction || $slots.actions\" class=\"flex flex-wrap items-center gap-[calc(var(--content-gap)*0.75)]\" data-ug-slot=\"actions\">\n <slot name=\"actions\">\n <a\n v-if=\"primaryAction?.href && !primaryAction.disabled\"\n :href=\"primaryAction.href\"\n class=\"inline-flex min-h-[var(--control-height-md)] items-center justify-center gap-[calc(var(--content-gap)*0.5)] rounded-[var(--radius-control)] bg-primary px-[var(--control-padding-x-md)] text-sm font-medium text-primary-fg transition-colors hover:bg-primary-hover focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2\"\n @click=\"primaryAction.onClick\"\n >\n <span data-ug-slot=\"action-label\">{{ primaryAction.label }}</span>\n <component :is=\"primaryAction.icon ?? ArrowRight\" :size=\"16\" aria-hidden=\"true\" focusable=\"false\" data-ug-slot=\"action-icon\" />\n </a>\n <UButton\n v-else-if=\"primaryAction\"\n :variant=\"primaryAction.variant ?? 'primary'\"\n :disabled=\"primaryAction.disabled\"\n @click=\"primaryAction.onClick\"\n >\n <span data-ug-slot=\"action-label\">{{ primaryAction.label }}</span>\n <component :is=\"primaryAction.icon ?? ArrowRight\" :size=\"16\" aria-hidden=\"true\" focusable=\"false\" data-ug-slot=\"action-icon\" />\n </UButton>\n\n <a\n v-if=\"secondaryAction?.href && !secondaryAction.disabled\"\n :href=\"secondaryAction.href\"\n class=\"inline-flex min-h-[var(--control-height-md)] items-center justify-center gap-[calc(var(--content-gap)*0.5)] rounded-[var(--radius-control)] border border-border-strong bg-surface-1 px-[var(--control-padding-x-md)] text-sm font-medium text-text-primary transition-colors hover:bg-surface-2 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2\"\n @click=\"secondaryAction.onClick\"\n >\n <span data-ug-slot=\"action-label\">{{ secondaryAction.label }}</span>\n <component :is=\"secondaryAction.icon ?? ArrowRight\" :size=\"16\" aria-hidden=\"true\" focusable=\"false\" data-ug-slot=\"action-icon\" />\n </a>\n <UButton\n v-else-if=\"secondaryAction\"\n :variant=\"secondaryAction.variant ?? 'outline'\"\n :disabled=\"secondaryAction.disabled\"\n @click=\"secondaryAction.onClick\"\n >\n <span data-ug-slot=\"action-label\">{{ secondaryAction.label }}</span>\n <component :is=\"secondaryAction.icon ?? ArrowRight\" :size=\"16\" aria-hidden=\"true\" focusable=\"false\" data-ug-slot=\"action-icon\" />\n </UButton>\n </slot>\n </div>\n\n <dl v-if=\"stats?.length\" class=\"grid max-w-2xl gap-[var(--content-gap)] sm:grid-cols-3\" data-ug-slot=\"stats\">\n <div v-for=\"stat in stats\" :key=\"`${stat.value}-${stat.label}`\" class=\"border-l border-border-base pl-[var(--content-gap)]\" data-ug-slot=\"stat\">\n <dt class=\"text-xs font-medium text-text-tertiary\" data-ug-slot=\"stat-label\">{{ stat.label }}</dt>\n <dd class=\"mt-[calc(var(--content-gap)*0.25)] text-2xl font-bold text-text-primary\" data-ug-slot=\"stat-value\">{{ stat.value }}</dd>\n </div>\n </dl>\n\n <div v-if=\"$slots.default\" class=\"min-w-0\" data-ug-slot=\"footer\">\n <slot />\n </div>\n </div>\n </div>\n </section>\n</template>\n","/**\n * @description: UFeatureGrid 特性网格区块 — 用于产品能力、服务优势和功能模块展示\n * @author: UG - 一个斗码大陆苦逼的三段码之气的少年,并没有神秘戒指中码老的帮助,但总有一天,我会成为斗码大陆中码帝一样的存在。三十年河东,三十年河西,莫欺少年穷。\n * @date: 2026-05-30\n */\n<script setup lang=\"ts\">\nimport { computed, type Component } from 'vue'\nimport { ArrowRight } from '@lucide/vue'\nimport { cn } from '../internal/cn'\n\ndefineOptions({\n name: 'UFeatureGrid',\n})\n\ninterface FeatureGridItem {\n title: string\n description: string\n icon?: Component\n meta?: string\n href?: string\n}\n\ntype FeatureGridColumns = 2 | 3 | 4\n\ninterface Props {\n /** 区块标题 */\n title?: string\n /** 区块说明 */\n description?: string\n /** 特性列表 */\n features: FeatureGridItem[]\n /** 列数,默认三列 */\n columns?: FeatureGridColumns\n /** 容器额外 CSS 类名 */\n class?: string\n}\n\nconst props = withDefaults(defineProps<Props>(), {\n title: undefined,\n description: undefined,\n columns: 3,\n class: undefined,\n})\n\nconst columnClasses: Record<FeatureGridColumns, string> = {\n 2: 'lg:grid-cols-2',\n 3: 'lg:grid-cols-3',\n 4: 'lg:grid-cols-4',\n}\n\nconst columnVariant: Record<FeatureGridColumns, string> = {\n 2: 'two',\n 3: 'three',\n 4: 'four',\n}\n\nconst classes = computed(() => cn(\n 'bg-surface-0 px-[var(--content-gap)] py-[var(--section-gap)] sm:px-[calc(var(--content-gap)*1.25)] lg:px-[calc(var(--content-gap)*1.5)]',\n props.class,\n))\nconst gridClasses = computed(() => cn('grid gap-[calc(var(--content-gap)*0.8)] md:grid-cols-2', columnClasses[props.columns]))\nconst variant = computed(() => columnVariant[props.columns])\n</script>\n\n<template>\n <section\n :class=\"classes\"\n data-ug=\"feature-grid\"\n data-state=\"default\"\n :data-variant=\"variant\"\n data-size=\"md\"\n >\n <div class=\"mx-auto w-full max-w-7xl space-y-[calc(var(--section-gap)*0.8)]\">\n <div v-if=\"title || description || $slots.header\" data-ug-slot=\"header\" class=\"max-w-3xl space-y-[calc(var(--content-gap)*0.5)]\">\n <slot name=\"header\">\n <h2 v-if=\"title\" data-ug-slot=\"title\" class=\"break-words text-3xl font-bold leading-tight text-text-primary\">{{ title }}</h2>\n <p v-if=\"description\" data-ug-slot=\"description\" class=\"text-sm leading-6 text-text-secondary\">{{ description }}</p>\n </slot>\n </div>\n\n <div data-ug-slot=\"grid\" :class=\"gridClasses\">\n <component\n :is=\"feature.href ? 'a' : 'article'\"\n v-for=\"feature in features\"\n :key=\"feature.title\"\n :href=\"feature.href\"\n data-ug-slot=\"item\"\n :data-state=\"feature.href ? 'interactive' : 'static'\"\n :class=\"cn(\n 'flex min-w-0 flex-col gap-[var(--content-gap)] rounded-[var(--radius-panel)] border border-border-base bg-surface-1 p-[var(--content-gap)]',\n feature.href && 'transition-colors hover:border-primary/35 hover:bg-surface-2 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2',\n )\"\n >\n <div class=\"flex min-w-0 items-start justify-between gap-[calc(var(--content-gap)*0.6)]\">\n <span v-if=\"feature.icon\" data-ug-slot=\"icon\" class=\"flex h-[var(--control-height-lg)] w-[var(--control-height-lg)] shrink-0 items-center justify-center rounded-[var(--radius-control)] bg-primary-soft text-primary-soft-fg\">\n <component :is=\"feature.icon\" :size=\"20\" aria-hidden=\"true\" focusable=\"false\" />\n </span>\n <span v-if=\"feature.meta\" data-ug-slot=\"meta\" class=\"shrink-0 text-xs font-medium text-text-tertiary\">{{ feature.meta }}</span>\n </div>\n <div data-ug-slot=\"content\" class=\"min-w-0 space-y-[calc(var(--content-gap)*0.4)]\">\n <h3 data-ug-slot=\"item-title\" class=\"break-words text-base font-semibold text-text-primary\">{{ feature.title }}</h3>\n <p data-ug-slot=\"item-description\" class=\"text-sm leading-6 text-text-secondary\">{{ feature.description }}</p>\n </div>\n <span v-if=\"feature.href\" data-ug-slot=\"item-action\" class=\"inline-flex items-center gap-[calc(var(--content-gap)*0.25)] text-sm font-medium text-primary\">\n 查看详情\n <ArrowRight :size=\"14\" aria-hidden=\"true\" focusable=\"false\" />\n </span>\n </component>\n </div>\n </div>\n </section>\n</template>\n","/**\n * @description: UFeatureGrid 特性网格区块 — 用于产品能力、服务优势和功能模块展示\n * @author: UG - 一个斗码大陆苦逼的三段码之气的少年,并没有神秘戒指中码老的帮助,但总有一天,我会成为斗码大陆中码帝一样的存在。三十年河东,三十年河西,莫欺少年穷。\n * @date: 2026-05-30\n */\n<script setup lang=\"ts\">\nimport { computed, type Component } from 'vue'\nimport { ArrowRight } from '@lucide/vue'\nimport { cn } from '../internal/cn'\n\ndefineOptions({\n name: 'UFeatureGrid',\n})\n\ninterface FeatureGridItem {\n title: string\n description: string\n icon?: Component\n meta?: string\n href?: string\n}\n\ntype FeatureGridColumns = 2 | 3 | 4\n\ninterface Props {\n /** 区块标题 */\n title?: string\n /** 区块说明 */\n description?: string\n /** 特性列表 */\n features: FeatureGridItem[]\n /** 列数,默认三列 */\n columns?: FeatureGridColumns\n /** 容器额外 CSS 类名 */\n class?: string\n}\n\nconst props = withDefaults(defineProps<Props>(), {\n title: undefined,\n description: undefined,\n columns: 3,\n class: undefined,\n})\n\nconst columnClasses: Record<FeatureGridColumns, string> = {\n 2: 'lg:grid-cols-2',\n 3: 'lg:grid-cols-3',\n 4: 'lg:grid-cols-4',\n}\n\nconst columnVariant: Record<FeatureGridColumns, string> = {\n 2: 'two',\n 3: 'three',\n 4: 'four',\n}\n\nconst classes = computed(() => cn(\n 'bg-surface-0 px-[var(--content-gap)] py-[var(--section-gap)] sm:px-[calc(var(--content-gap)*1.25)] lg:px-[calc(var(--content-gap)*1.5)]',\n props.class,\n))\nconst gridClasses = computed(() => cn('grid gap-[calc(var(--content-gap)*0.8)] md:grid-cols-2', columnClasses[props.columns]))\nconst variant = computed(() => columnVariant[props.columns])\n</script>\n\n<template>\n <section\n :class=\"classes\"\n data-ug=\"feature-grid\"\n data-state=\"default\"\n :data-variant=\"variant\"\n data-size=\"md\"\n >\n <div class=\"mx-auto w-full max-w-7xl space-y-[calc(var(--section-gap)*0.8)]\">\n <div v-if=\"title || description || $slots.header\" data-ug-slot=\"header\" class=\"max-w-3xl space-y-[calc(var(--content-gap)*0.5)]\">\n <slot name=\"header\">\n <h2 v-if=\"title\" data-ug-slot=\"title\" class=\"break-words text-3xl font-bold leading-tight text-text-primary\">{{ title }}</h2>\n <p v-if=\"description\" data-ug-slot=\"description\" class=\"text-sm leading-6 text-text-secondary\">{{ description }}</p>\n </slot>\n </div>\n\n <div data-ug-slot=\"grid\" :class=\"gridClasses\">\n <component\n :is=\"feature.href ? 'a' : 'article'\"\n v-for=\"feature in features\"\n :key=\"feature.title\"\n :href=\"feature.href\"\n data-ug-slot=\"item\"\n :data-state=\"feature.href ? 'interactive' : 'static'\"\n :class=\"cn(\n 'flex min-w-0 flex-col gap-[var(--content-gap)] rounded-[var(--radius-panel)] border border-border-base bg-surface-1 p-[var(--content-gap)]',\n feature.href && 'transition-colors hover:border-primary/35 hover:bg-surface-2 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2',\n )\"\n >\n <div class=\"flex min-w-0 items-start justify-between gap-[calc(var(--content-gap)*0.6)]\">\n <span v-if=\"feature.icon\" data-ug-slot=\"icon\" class=\"flex h-[var(--control-height-lg)] w-[var(--control-height-lg)] shrink-0 items-center justify-center rounded-[var(--radius-control)] bg-primary-soft text-primary-soft-fg\">\n <component :is=\"feature.icon\" :size=\"20\" aria-hidden=\"true\" focusable=\"false\" />\n </span>\n <span v-if=\"feature.meta\" data-ug-slot=\"meta\" class=\"shrink-0 text-xs font-medium text-text-tertiary\">{{ feature.meta }}</span>\n </div>\n <div data-ug-slot=\"content\" class=\"min-w-0 space-y-[calc(var(--content-gap)*0.4)]\">\n <h3 data-ug-slot=\"item-title\" class=\"break-words text-base font-semibold text-text-primary\">{{ feature.title }}</h3>\n <p data-ug-slot=\"item-description\" class=\"text-sm leading-6 text-text-secondary\">{{ feature.description }}</p>\n </div>\n <span v-if=\"feature.href\" data-ug-slot=\"item-action\" class=\"inline-flex items-center gap-[calc(var(--content-gap)*0.25)] text-sm font-medium text-primary\">\n 查看详情\n <ArrowRight :size=\"14\" aria-hidden=\"true\" focusable=\"false\" />\n </span>\n </component>\n </div>\n </div>\n </section>\n</template>\n"],"mappings":";;;;;;;;;;;;;;;;;;;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EAAA,CAAA,GAAA;KAAjD,MAAM;KAAI,eAAY;KAAO,WAAU"}
|
|
@@ -5,6 +5,8 @@ interface HeroAction {
|
|
|
5
5
|
href?: string;
|
|
6
6
|
icon?: Component;
|
|
7
7
|
variant?: ButtonVariant;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
onClick?: (event: MouseEvent) => void;
|
|
8
10
|
}
|
|
9
11
|
interface HeroStat {
|
|
10
12
|
value: string;
|
|
@@ -14,7 +16,7 @@ interface Props {
|
|
|
14
16
|
/** 顶部短标签 */
|
|
15
17
|
eyebrow?: string;
|
|
16
18
|
/** 主标题 */
|
|
17
|
-
title
|
|
19
|
+
title: string;
|
|
18
20
|
/** 描述文案 */
|
|
19
21
|
description?: string;
|
|
20
22
|
/** 主行动 */
|
|
@@ -26,32 +28,32 @@ interface Props {
|
|
|
26
28
|
/** 容器额外 CSS 类名 */
|
|
27
29
|
class?: string;
|
|
28
30
|
}
|
|
29
|
-
declare
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
31
|
+
declare var __VLS_1: {}, __VLS_3: {}, __VLS_5: {}, __VLS_7: {}, __VLS_9: {}, __VLS_47: {};
|
|
32
|
+
type __VLS_Slots = {} & {
|
|
33
|
+
media?: (props: typeof __VLS_1) => any;
|
|
34
|
+
} & {
|
|
35
|
+
eyebrow?: (props: typeof __VLS_3) => any;
|
|
36
|
+
} & {
|
|
37
|
+
title?: (props: typeof __VLS_5) => any;
|
|
38
|
+
} & {
|
|
39
|
+
description?: (props: typeof __VLS_7) => any;
|
|
40
|
+
} & {
|
|
41
|
+
actions?: (props: typeof __VLS_9) => any;
|
|
42
|
+
} & {
|
|
43
|
+
default?: (props: typeof __VLS_47) => any;
|
|
41
44
|
};
|
|
42
|
-
|
|
43
|
-
declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
45
|
+
declare const __VLS_base: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
44
46
|
class: string;
|
|
45
|
-
title: string;
|
|
46
47
|
description: string;
|
|
47
48
|
eyebrow: string;
|
|
48
49
|
primaryAction: HeroAction;
|
|
49
50
|
secondaryAction: HeroAction;
|
|
50
51
|
stats: HeroStat[];
|
|
51
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {},
|
|
52
|
-
declare const
|
|
52
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
53
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
54
|
+
declare const _default: typeof __VLS_export;
|
|
53
55
|
export default _default;
|
|
54
|
-
type
|
|
56
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
55
57
|
new (): {
|
|
56
58
|
$slots: S;
|
|
57
59
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"landing-hero.vue.d.ts","sourceRoot":"","sources":["../../src/blocks/landing-hero.vue"],"names":[],"mappings":"AAKA;
|
|
1
|
+
{"version":3,"file":"landing-hero.vue.d.ts","sourceRoot":"","sources":["../../src/blocks/landing-hero.vue"],"names":[],"mappings":"AAKA;AAuJA,OAAO,EAAY,KAAK,SAAS,EAAE,MAAM,KAAK,CAAA;AAS9C,KAAK,aAAa,GAAG,SAAS,GAAG,aAAa,GAAG,SAAS,GAAG,WAAW,GAAG,OAAO,GAAG,MAAM,CAAA;AAE3F,UAAU,UAAU;IAClB,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,SAAS,CAAA;IAChB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AAG,CAAA;CAAE,CAAC;AAKhD,QAAA,MAAM,UAAU;WAnYN,MAAM;iBARA,MAAM;aAJV,MAAM;mBAMA,UAAU;qBAER,UAAU;WAEpB,QAAQ,EAAE;6EAwYlB,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AAWzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const e=require("./cn-CFAiuoYh.cjs");let t=require("vue"),n=require("@lucide/vue");var r={small:`sm`,medium:`default`,large:`lg`},i={sm:`small`,default:`medium`,lg:`large`};function a(e,t){return e??r[t]}function o(e,t){return e??t}function s(e){return i[e]}var c={namespace:`ug`,size:`medium`,disabled:!1,button:{},link:{}},l=Symbol(`ug-ui-config`);function u(e,t){let n={...e};return t&&Object.entries(t).forEach(([e,t])=>{t!==void 0&&Object.assign(n,{[e]:t})}),n}var d=(0,t.defineComponent)({name:`UConfigProvider`,inheritAttrs:!1,props:{namespace:{type:String,default:void 0},size:{type:String,default:void 0},disabled:{type:Boolean,default:void 0},button:{type:Object,default:void 0},link:{type:Object,default:void 0}},setup(e,{attrs:n,slots:r}){let i=(0,t.inject)(l,(0,t.computed)(()=>c)),a=(0,t.computed)(()=>({namespace:e.namespace??i.value.namespace,size:e.size??i.value.size,disabled:e.disabled??i.value.disabled,button:u(i.value.button,e.button),link:u(i.value.link,e.link)}));return(0,t.provide)(l,a),()=>(0,t.h)(`div`,{...n,class:[`[display:contents]`,n.class],"data-size":a.value.size,"data-state":a.value.disabled?`disabled`:`default`,"data-ug":`config-provider`,"data-ug-namespace":a.value.namespace,"data-ug-slot":`root`,"data-variant":`default`},r.default?.())}});function f(){return(0,t.inject)(l,(0,t.computed)(()=>c))}var p=Symbol(`UGButtonGroup`),m=[`type`,`disabled`,`aria-busy`,`data-state`,`data-variant`,`data-tone`,`data-size`,`data-shape`,`data-block`,`data-ug-namespace`],h={key:0,"data-ug-slot":`loader`,class:`inline-flex shrink-0 items-center justify-center`,"aria-hidden":`true`},g={"data-ug-slot":`label`,class:`inline-flex min-w-0 items-center justify-center gap-[var(--button-icon-gap)]`},_={key:1,"data-ug-slot":`loader`,class:`inline-flex shrink-0 items-center justify-center`,"aria-hidden":`true`},v=(0,t.defineComponent)({__name:`button`,props:{variant:String,tone:String,size:String,shape:String,block:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},loadingText:String,loadingPlacement:{type:String,default:`start`},disabled:{type:Boolean,default:void 0},nativeType:{type:String,default:`button`},class:String,style:[String,Object,Array]},emits:[`click`],setup(r,{expose:i,emit:a}){let s=r,c=a,l={solid:``,soft:``,primary:`bg-[var(--button-primary-solid)] text-[hsl(var(--button-solid-fg))] shadow-xs hover:bg-[var(--button-primary-solid-hover)] active:bg-[var(--button-primary-solid-active)] focus-visible:ring-primary`,success:`bg-[var(--button-success-solid)] text-[hsl(var(--button-solid-fg))] shadow-xs hover:bg-[var(--button-success-solid-hover)] active:bg-[var(--button-success-solid-active)] focus-visible:ring-success`,warning:`bg-[var(--button-warning-solid)] text-[hsl(var(--button-solid-fg))] shadow-xs hover:bg-[var(--button-warning-solid-hover)] active:bg-[var(--button-warning-solid-active)] focus-visible:ring-warning`,danger:`bg-[var(--button-danger-solid)] text-[hsl(var(--button-solid-fg))] shadow-xs hover:bg-[var(--button-danger-solid-hover)] active:bg-[var(--button-danger-solid-active)] focus-visible:ring-danger`,destructive:`bg-[var(--button-danger-solid)] text-[hsl(var(--button-solid-fg))] shadow-xs hover:bg-[var(--button-danger-solid-hover)] active:bg-[var(--button-danger-solid-active)] focus-visible:ring-danger`,info:`bg-[var(--button-info-solid)] text-[hsl(var(--button-solid-fg))] shadow-xs hover:bg-[var(--button-info-solid-hover)] active:bg-[var(--button-info-solid-active)] focus-visible:ring-info`,default:`border-border-base bg-surface-1 text-text-primary shadow-xs hover:border-primary active:bg-surface-2 focus-visible:ring-primary/40`,secondary:`border-border-base bg-surface-2 text-text-primary shadow-xs hover:bg-surface-3 active:bg-surface-3 focus-visible:ring-primary/40`,outline:`bg-transparent`,dashed:`border-dashed bg-transparent`,ghost:``,text:``,link:``},u={default:`h-[var(--control-height-md)] px-[var(--control-padding-x-md)] py-0`,sm:`h-[var(--control-height-sm)] px-[var(--control-padding-x-sm)] py-0`,lg:`h-[var(--control-height-lg)] px-[var(--control-padding-x-lg)] py-0`,icon:`h-[var(--control-height-md)] w-[var(--control-height-md)] p-0`},d={default:`rounded-[var(--radius-control)]`,circle:`!rounded-full !p-0 aspect-square`,round:`!rounded-full`},v={neutral:{solid:`border-border-strong bg-surface-3 text-text-primary shadow-xs hover:bg-surface-2 active:bg-surface-3 focus-visible:ring-primary/40`,soft:`bg-surface-2 text-text-primary shadow-xs hover:bg-surface-3 active:bg-surface-3 focus-visible:ring-primary/40`,outline:`border-border-strong bg-transparent text-text-primary shadow-xs hover:border-primary active:bg-surface-2 focus-visible:ring-primary/40`,dashed:`border-border-strong text-text-primary hover:border-primary active:bg-surface-2 focus-visible:ring-primary/40`,ghost:`text-text-primary hover:bg-surface-2 active:bg-surface-3 focus-visible:ring-primary/40`,text:`text-text-primary hover:opacity-80 active:opacity-70 focus-visible:ring-primary/40`,link:`text-text-primary focus-visible:ring-primary/40`},primary:{solid:`bg-[var(--button-primary-solid)] text-[hsl(var(--button-solid-fg))] shadow-xs hover:bg-[var(--button-primary-solid-hover)] active:bg-[var(--button-primary-solid-active)] focus-visible:ring-primary`,soft:`bg-primary-soft text-text-primary hover:shadow-sm active:bg-primary-soft focus-visible:ring-primary/40`,outline:`border-primary bg-transparent text-text-primary hover:bg-primary-soft active:bg-primary-soft focus-visible:ring-primary/40`,dashed:`border-primary text-text-primary hover:bg-primary-soft active:bg-primary-soft focus-visible:ring-primary/40`,ghost:`text-text-primary hover:bg-primary-soft active:bg-primary-soft focus-visible:ring-primary/40`,text:`text-text-primary hover:opacity-80 active:opacity-70 focus-visible:ring-primary/40`,link:`text-text-primary focus-visible:ring-primary/40`},success:{solid:`bg-[var(--button-success-solid)] text-[hsl(var(--button-solid-fg))] shadow-xs hover:bg-[var(--button-success-solid-hover)] active:bg-[var(--button-success-solid-active)] focus-visible:ring-success`,soft:`bg-success-soft text-text-primary hover:shadow-sm active:bg-success-soft focus-visible:ring-success/40`,outline:`border-success bg-transparent text-text-primary hover:bg-success-soft active:bg-success-soft focus-visible:ring-success/40`,dashed:`border-success text-text-primary hover:bg-success-soft active:bg-success-soft focus-visible:ring-success/40`,ghost:`text-text-primary hover:bg-success-soft active:bg-success-soft focus-visible:ring-success/40`,text:`text-text-primary hover:opacity-80 active:opacity-70 focus-visible:ring-success/40`,link:`text-text-primary focus-visible:ring-success/40`},warning:{solid:`bg-[var(--button-warning-solid)] text-[hsl(var(--button-solid-fg))] shadow-xs hover:bg-[var(--button-warning-solid-hover)] active:bg-[var(--button-warning-solid-active)] focus-visible:ring-warning`,soft:`bg-warning-soft text-text-primary hover:shadow-sm active:bg-warning-soft focus-visible:ring-warning/40`,outline:`border-warning bg-transparent text-text-primary hover:bg-warning-soft active:bg-warning-soft focus-visible:ring-warning/40`,dashed:`border-warning text-text-primary hover:bg-warning-soft active:bg-warning-soft focus-visible:ring-warning/40`,ghost:`text-text-primary hover:bg-warning-soft active:bg-warning-soft focus-visible:ring-warning/40`,text:`text-text-primary hover:opacity-80 active:opacity-70 focus-visible:ring-warning/40`,link:`text-text-primary focus-visible:ring-warning/40`},danger:{solid:`bg-[var(--button-danger-solid)] text-[hsl(var(--button-solid-fg))] shadow-xs hover:bg-[var(--button-danger-solid-hover)] active:bg-[var(--button-danger-solid-active)] focus-visible:ring-danger`,soft:`bg-danger-soft text-text-primary hover:shadow-sm active:bg-danger-soft focus-visible:ring-danger/40`,outline:`border-danger bg-transparent text-text-primary hover:bg-danger-soft active:bg-danger-soft focus-visible:ring-danger/40`,dashed:`border-danger text-text-primary hover:bg-danger-soft active:bg-danger-soft focus-visible:ring-danger/40`,ghost:`text-text-primary hover:bg-danger-soft active:bg-danger-soft focus-visible:ring-danger/40`,text:`text-text-primary hover:opacity-80 active:opacity-70 focus-visible:ring-danger/40`,link:`text-text-primary focus-visible:ring-danger/40`},info:{solid:`bg-[var(--button-info-solid)] text-[hsl(var(--button-solid-fg))] shadow-xs hover:bg-[var(--button-info-solid-hover)] active:bg-[var(--button-info-solid-active)] focus-visible:ring-info`,soft:`bg-info-soft text-text-primary hover:shadow-sm active:bg-info-soft focus-visible:ring-info/40`,outline:`border-info bg-transparent text-text-primary hover:bg-info-soft active:bg-info-soft focus-visible:ring-info/40`,dashed:`border-info text-text-primary hover:bg-info-soft active:bg-info-soft focus-visible:ring-info/40`,ghost:`text-text-primary hover:bg-info-soft active:bg-info-soft focus-visible:ring-info/40`,text:`text-text-primary hover:opacity-80 active:opacity-70 focus-visible:ring-info/40`,link:`text-text-primary focus-visible:ring-info/40`}},y={text:`px-[var(--control-padding-x-sm)]`,link:`h-auto p-0 underline-offset-4 hover:underline`},b={small:`sm`,medium:`default`,large:`lg`},x={primary:`primary`,success:`success`,warning:`warning`,danger:`danger`,destructive:`danger`,info:`info`},S=(0,t.inject)(p,void 0),C=f(),w=(0,t.ref)(null),T=(0,t.computed)(()=>s.variant??S?.variant.value??C.value.button.variant??`default`),E=(0,t.computed)(()=>s.tone??S?.tone.value??C.value.button.tone??x[T.value]??(T.value===`solid`||T.value===`soft`?`primary`:`neutral`)),D=(0,t.computed)(()=>s.size??S?.size.value??b[C.value.size]),O=(0,t.computed)(()=>s.shape??S?.shape.value??C.value.button.shape??`default`),k=(0,t.computed)(()=>{let e=T.value;if([`solid`,`soft`,`outline`,`dashed`,`ghost`,`text`,`link`].includes(e))return v[E.value][e]}),A=(0,t.computed)(()=>e.t(`inline-flex items-center justify-center gap-[var(--button-icon-gap)] whitespace-nowrap border-solid border-transparent font-[var(--button-font-weight)] transition-[background,border-color,color,box-shadow,opacity] duration-[var(--motion-duration-base)] ease-[var(--motion-easing-standard)] motion-reduce:transition-none focus-visible:outline-none focus-visible:ring-[length:var(--button-focus-ring-width)] focus-visible:ring-offset-[length:var(--button-focus-ring-offset)] disabled:pointer-events-none disabled:cursor-not-allowed select-none`,l[T.value],v[E.value]&&k.value,u[D.value],d[O.value],s.block&&`w-full flex`,y[T.value],s.class)),j=(0,t.computed)(()=>[{fontWeight:`var(--button-font-weight)`},s.style]),M=(0,t.computed)(()=>o(s.disabled,S?.disabled.value??C.value.disabled)||s.loading),N=(0,t.computed)(()=>{let e=[];return s.loading&&e.push(`loading`),M.value&&e.push(`disabled`),e.length>0?e.join(` `):void 0});function P(e){M.value||c(`click`,e)}return i({ref:w}),(e,i)=>((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{ref_key:`buttonRef`,ref:w,class:(0,t.normalizeClass)(A.value),style:(0,t.normalizeStyle)(j.value),type:r.nativeType,disabled:M.value,"aria-busy":r.loading||void 0,"data-ug":`button`,"data-state":N.value,"data-variant":T.value,"data-tone":E.value,"data-size":D.value,"data-shape":O.value,"data-block":r.block?`true`:void 0,"data-ug-namespace":(0,t.unref)(C).namespace,onClick:P},[r.loading&&r.loadingPlacement===`start`?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,h,[(0,t.renderSlot)(e.$slots,`loading`,{},()=>[(0,t.createVNode)((0,t.unref)(n.Loader2),{class:`animate-spin motion-reduce:animate-none`,size:D.value===`sm`?14:16},null,8,[`size`])])])):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`span`,g,[r.loading&&r.loadingText!==void 0?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.createTextVNode)((0,t.toDisplayString)(r.loadingText),1)],64)):(0,t.renderSlot)(e.$slots,`default`,{},void 0,void 0,1)]),r.loading&&r.loadingPlacement===`end`?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,_,[(0,t.renderSlot)(e.$slots,`loading`,{},()=>[(0,t.createVNode)((0,t.unref)(n.Loader2),{class:`animate-spin motion-reduce:animate-none`,size:D.value===`sm`?14:16},null,8,[`size`])])])):(0,t.createCommentVNode)(``,!0)],14,m))}});Object.defineProperty(exports,"a",{enumerable:!0,get:function(){return a}}),Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return s}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return p}}),Object.defineProperty(exports,"o",{enumerable:!0,get:function(){return o}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return d}}),Object.defineProperty(exports,"s",{enumerable:!0,get:function(){return f}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return v}});
|
|
2
|
+
//# sourceMappingURL=button-CVw3ryBz.cjs.map
|