@astrake/lumora-ui 0.2.1 → 0.2.2
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/CHANGELOG.md +180 -141
- package/dist/LuCodeBlock.vue_vue_type_script_setup_true_lang-BdXflBkJ.js +1672 -0
- package/dist/{LuEmbeddedStatusBar.vue_vue_type_script_setup_true_lang-CIksvebU.js → LuEmbeddedStatusBar.vue_vue_type_script_setup_true_lang-D4rqklgo.js} +1 -1
- package/dist/LuOverlay.vue_vue_type_script_setup_true_lang-C5jhqCgy.js +221 -0
- package/dist/components/LuCard.vue.d.ts +0 -3
- package/dist/components/LuCheckbox.vue.d.ts +2 -2
- package/dist/components/LuCodeBlock.vue.d.ts +11 -14
- package/dist/components/LuCollapsible.vue.d.ts +2 -2
- package/dist/components/LuForm.vue.d.ts +2 -2
- package/dist/components/LuModal.vue.d.ts +5 -5
- package/dist/components/LuPagination.vue.d.ts +2 -2
- package/dist/components/LuRadioGroup.vue.d.ts +2 -2
- package/dist/components/_all.d.ts +3 -0
- package/dist/components/index.js +1 -1
- package/dist/composables/index.d.ts +1 -0
- package/dist/composables/index.js +15 -14
- package/dist/composables/useShiki.d.ts +2 -0
- package/dist/context-CGS7Ou_x.js +36 -0
- package/dist/index.js +154 -82
- package/dist/layout/LuFill.vue.d.ts +0 -3
- package/dist/layout/LuFixed.vue.d.ts +0 -3
- package/dist/layout/LuGrid.vue.d.ts +0 -4
- package/dist/layout/LuStack.vue.d.ts +5 -3
- package/dist/layout/index.js +1 -1
- package/dist/shell/index.js +1 -1
- package/dist/skins/components.d.ts +2 -0
- package/dist/skins/index.js +251 -221
- package/dist/skins/layout.d.ts +2 -0
- package/dist/skins/shell/desktop.d.ts +2 -0
- package/dist/skins/shell/embedded.d.ts +2 -0
- package/dist/skins/shell/mobile.d.ts +2 -0
- package/dist/useShiki-DPOJfneq.js +30 -0
- package/dist/utils.d.ts +0 -11
- package/package.json +94 -94
- package/src/lumora.css +48 -16
- package/dist/LuCodeBlock.vue_vue_type_script_setup_true_lang-BjwcjuXF.js +0 -1623
- package/dist/LuOverlay.vue_vue_type_script_setup_true_lang-DZch4Vrw.js +0 -226
- package/dist/context-0gENwESP.js +0 -62
- package/dist/useTheme-Cd4wVaLs.js +0 -21
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as c, computed as n, openBlock as u, createElementBlock as v, mergeProps as p, renderSlot as a, createElementVNode as L, normalizeClass as S, ref as _, createCommentVNode as h, useSlots as D, Fragment as B } from "vue";
|
|
2
|
-
import { u as d } from "./context-
|
|
2
|
+
import { u as d } from "./context-CGS7Ou_x.js";
|
|
3
3
|
const y = /* @__PURE__ */ c({
|
|
4
4
|
__name: "LuDesktopShell",
|
|
5
5
|
props: {
|
|
@@ -0,0 +1,221 @@
|
|
|
1
|
+
import { defineComponent as u, computed as c, openBlock as v, createBlock as $, resolveDynamicComponent as g, mergeProps as p, withCtx as k, renderSlot as f, h, Fragment as x, Comment as b, createElementBlock as _, provide as B, readonly as D, inject as C, ref as F, unref as j } from "vue";
|
|
2
|
+
import { u as d } from "./context-CGS7Ou_x.js";
|
|
3
|
+
const P = /* @__PURE__ */ u({
|
|
4
|
+
__name: "LuStack",
|
|
5
|
+
props: {
|
|
6
|
+
direction: {},
|
|
7
|
+
variant: {},
|
|
8
|
+
as: { default: "div" },
|
|
9
|
+
gap: {},
|
|
10
|
+
align: {},
|
|
11
|
+
justify: {}
|
|
12
|
+
},
|
|
13
|
+
setup(t) {
|
|
14
|
+
const e = t, { resolveSkin: o } = d(), r = {
|
|
15
|
+
center: "items-center",
|
|
16
|
+
start: "items-start",
|
|
17
|
+
end: "items-end",
|
|
18
|
+
stretch: "items-stretch",
|
|
19
|
+
baseline: "items-baseline"
|
|
20
|
+
}, s = {
|
|
21
|
+
center: "justify-center",
|
|
22
|
+
start: "justify-start",
|
|
23
|
+
end: "justify-end",
|
|
24
|
+
between: "justify-between",
|
|
25
|
+
around: "justify-around",
|
|
26
|
+
evenly: "justify-evenly"
|
|
27
|
+
}, l = c(() => {
|
|
28
|
+
const a = o("LuStack", e.direction ?? e.variant), n = e.gap !== void 0 ? `gap-${e.gap}` : "", i = e.align ? r[e.align] ?? "" : "", m = e.justify ? s[e.justify] ?? "" : "";
|
|
29
|
+
return [a, n, i, m].filter(Boolean).join(" ");
|
|
30
|
+
});
|
|
31
|
+
return (a, n) => (v(), $(g(t.as), p(a.$attrs, { class: l.value }), {
|
|
32
|
+
default: k(() => [
|
|
33
|
+
f(a.$slots, "default")
|
|
34
|
+
]),
|
|
35
|
+
_: 3
|
|
36
|
+
}, 16, ["class"]));
|
|
37
|
+
}
|
|
38
|
+
}), O = /* @__PURE__ */ u({
|
|
39
|
+
__name: "LuGrid",
|
|
40
|
+
props: {
|
|
41
|
+
cols: {},
|
|
42
|
+
smCols: {},
|
|
43
|
+
mdCols: {},
|
|
44
|
+
lgCols: {},
|
|
45
|
+
variant: {},
|
|
46
|
+
as: { default: "div" }
|
|
47
|
+
},
|
|
48
|
+
setup(t) {
|
|
49
|
+
const e = t, o = c(() => {
|
|
50
|
+
const a = { 1: "grid-cols-1", 2: "grid-cols-2", 3: "grid-cols-3", 4: "grid-cols-4", 5: "grid-cols-5", 6: "grid-cols-6", 12: "grid-cols-12" }, n = e.smCols && a[e.smCols] ? `sm:${a[e.smCols]}` : "", i = e.mdCols && a[e.mdCols] ? `md:${a[e.mdCols]}` : "", m = e.lgCols && a[e.lgCols] ? `lg:${a[e.lgCols]}` : "";
|
|
51
|
+
return [n, i, m].filter(Boolean).join(" ");
|
|
52
|
+
}), { resolveSkin: r } = d(), s = c(() => [
|
|
53
|
+
r("LuGrid", e.variant),
|
|
54
|
+
o.value
|
|
55
|
+
].filter(Boolean).join(" ")), l = c(
|
|
56
|
+
() => e.cols ? { gridTemplateColumns: `repeat(${e.cols}, minmax(0, 1fr))` } : {}
|
|
57
|
+
);
|
|
58
|
+
return (a, n) => (v(), $(g(t.as), p(a.$attrs, {
|
|
59
|
+
class: s.value,
|
|
60
|
+
style: l.value
|
|
61
|
+
}), {
|
|
62
|
+
default: k(() => [
|
|
63
|
+
f(a.$slots, "default")
|
|
64
|
+
]),
|
|
65
|
+
_: 3
|
|
66
|
+
}, 16, ["class", "style"]));
|
|
67
|
+
}
|
|
68
|
+
}), R = u({
|
|
69
|
+
name: "LuDock",
|
|
70
|
+
props: {
|
|
71
|
+
variant: String
|
|
72
|
+
},
|
|
73
|
+
setup(t, { slots: e, attrs: o }) {
|
|
74
|
+
const { resolveSkin: r } = d(), s = c(() => r("LuDock", t.variant));
|
|
75
|
+
function l(a) {
|
|
76
|
+
let n = [];
|
|
77
|
+
for (const i of a)
|
|
78
|
+
Array.isArray(i) ? n.push(...l(i)) : i.type === x ? n.push(...l(i.children)) : i && i.type && i.type !== b && n.push(i);
|
|
79
|
+
return n;
|
|
80
|
+
}
|
|
81
|
+
return () => {
|
|
82
|
+
var m;
|
|
83
|
+
const a = e.default ? e.default() : [], n = l(a);
|
|
84
|
+
if (n.length === 0)
|
|
85
|
+
return h("div", { ...o, class: s.value });
|
|
86
|
+
let i = h("div", { class: "flex flex-col flex-1 min-h-0 min-w-0 overflow-hidden" }, [n[n.length - 1]]);
|
|
87
|
+
for (let y = n.length - 2; y >= 0; y--) {
|
|
88
|
+
const L = n[y], S = ((m = L.props) == null ? void 0 : m.dock) || "left", z = S === "top" || S === "bottom" ? "flex-col" : "flex-row", w = S === "top" || S === "left" ? [L, i] : [i, L];
|
|
89
|
+
i = h("div", { class: `flex ${z} flex-1 min-h-0 min-w-0 overflow-hidden` }, w);
|
|
90
|
+
}
|
|
91
|
+
return h("div", { ...o, class: s.value }, [i]);
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
}), T = /* @__PURE__ */ u({
|
|
95
|
+
__name: "LuDockItem",
|
|
96
|
+
props: {
|
|
97
|
+
dock: {},
|
|
98
|
+
variant: {}
|
|
99
|
+
},
|
|
100
|
+
setup(t) {
|
|
101
|
+
const e = t, { resolveSkin: o } = d(), r = c(() => [
|
|
102
|
+
o("LuDockItem", e.dock ?? e.variant)
|
|
103
|
+
]);
|
|
104
|
+
return (s, l) => (v(), _("div", p(s.$attrs, { class: r.value }), [
|
|
105
|
+
f(s.$slots, "default")
|
|
106
|
+
], 16));
|
|
107
|
+
}
|
|
108
|
+
}), V = /* @__PURE__ */ u({
|
|
109
|
+
__name: "LuSplit",
|
|
110
|
+
props: {
|
|
111
|
+
direction: {},
|
|
112
|
+
variant: {}
|
|
113
|
+
},
|
|
114
|
+
setup(t) {
|
|
115
|
+
const e = t, o = c(() => e.direction ?? "horizontal");
|
|
116
|
+
B("lu-split-direction", D(o));
|
|
117
|
+
const { resolveSkin: r } = d(), s = c(() => r("LuSplit", e.direction ?? e.variant));
|
|
118
|
+
return (l, a) => (v(), _("div", p(l.$attrs, { class: s.value }), [
|
|
119
|
+
f(l.$slots, "default")
|
|
120
|
+
], 16));
|
|
121
|
+
}
|
|
122
|
+
}), E = /* @__PURE__ */ u({
|
|
123
|
+
__name: "LuSplitPane",
|
|
124
|
+
props: {
|
|
125
|
+
minSize: {},
|
|
126
|
+
maxSize: {},
|
|
127
|
+
defaultSize: {},
|
|
128
|
+
variant: {}
|
|
129
|
+
},
|
|
130
|
+
setup(t) {
|
|
131
|
+
const e = t, o = C("lu-split-direction", "horizontal"), r = F(e.defaultSize), s = c(() => {
|
|
132
|
+
if (r.value === void 0) return { flex: "1 1 0%" };
|
|
133
|
+
const n = `${r.value}px`;
|
|
134
|
+
return j(o) === "horizontal" ? { width: n, flex: `0 0 ${n}` } : { height: n, flex: `0 0 ${n}` };
|
|
135
|
+
}), { resolveSkin: l } = d(), a = c(() => l("LuSplitPane", e.variant));
|
|
136
|
+
return (n, i) => (v(), _("div", p(n.$attrs, {
|
|
137
|
+
class: a.value,
|
|
138
|
+
style: s.value
|
|
139
|
+
}), [
|
|
140
|
+
f(n.$slots, "default")
|
|
141
|
+
], 16));
|
|
142
|
+
}
|
|
143
|
+
}), J = /* @__PURE__ */ u({
|
|
144
|
+
__name: "LuSplitResizer",
|
|
145
|
+
props: {
|
|
146
|
+
variant: {}
|
|
147
|
+
},
|
|
148
|
+
setup(t) {
|
|
149
|
+
const e = C("lu-split-direction", "horizontal"), { resolveSkin: o } = d(), r = c(() => [
|
|
150
|
+
o("LuSplitResizer", j(e) === "horizontal" ? "horizontal" : "vertical")
|
|
151
|
+
]);
|
|
152
|
+
return (s, l) => (v(), _("div", p(s.$attrs, { class: r.value }), null, 16));
|
|
153
|
+
}
|
|
154
|
+
}), N = /* @__PURE__ */ u({
|
|
155
|
+
__name: "LuScroll",
|
|
156
|
+
props: {
|
|
157
|
+
variant: {}
|
|
158
|
+
},
|
|
159
|
+
setup(t) {
|
|
160
|
+
const e = t, { resolveSkin: o } = d(), r = c(() => [
|
|
161
|
+
o("LuScroll", e.variant)
|
|
162
|
+
]);
|
|
163
|
+
return (s, l) => (v(), _("div", p(s.$attrs, { class: r.value }), [
|
|
164
|
+
f(s.$slots, "default")
|
|
165
|
+
], 16));
|
|
166
|
+
}
|
|
167
|
+
}), U = /* @__PURE__ */ u({
|
|
168
|
+
__name: "LuFill",
|
|
169
|
+
props: {
|
|
170
|
+
variant: {},
|
|
171
|
+
as: { default: "div" }
|
|
172
|
+
},
|
|
173
|
+
setup(t) {
|
|
174
|
+
const e = t, { resolveSkin: o } = d(), r = c(() => o("LuFill", e.variant));
|
|
175
|
+
return (s, l) => (v(), $(g(t.as), p(s.$attrs, { class: r.value }), {
|
|
176
|
+
default: k(() => [
|
|
177
|
+
f(s.$slots, "default")
|
|
178
|
+
]),
|
|
179
|
+
_: 3
|
|
180
|
+
}, 16, ["class"]));
|
|
181
|
+
}
|
|
182
|
+
}), Y = /* @__PURE__ */ u({
|
|
183
|
+
__name: "LuFixed",
|
|
184
|
+
props: {
|
|
185
|
+
variant: {},
|
|
186
|
+
as: { default: "div" }
|
|
187
|
+
},
|
|
188
|
+
setup(t) {
|
|
189
|
+
const e = t, { resolveSkin: o } = d(), r = c(() => o("LuFixed", e.variant));
|
|
190
|
+
return (s, l) => (v(), $(g(t.as), p(s.$attrs, { class: r.value }), {
|
|
191
|
+
default: k(() => [
|
|
192
|
+
f(s.$slots, "default")
|
|
193
|
+
]),
|
|
194
|
+
_: 3
|
|
195
|
+
}, 16, ["class"]));
|
|
196
|
+
}
|
|
197
|
+
}), q = /* @__PURE__ */ u({
|
|
198
|
+
__name: "LuOverlay",
|
|
199
|
+
props: {
|
|
200
|
+
variant: {}
|
|
201
|
+
},
|
|
202
|
+
setup(t) {
|
|
203
|
+
const e = t, { resolveSkin: o } = d(), r = c(() => o("LuOverlay", e.variant));
|
|
204
|
+
return (s, l) => (v(), _("div", p(s.$attrs, { class: r.value }), [
|
|
205
|
+
f(s.$slots, "default")
|
|
206
|
+
], 16));
|
|
207
|
+
}
|
|
208
|
+
});
|
|
209
|
+
export {
|
|
210
|
+
R as _,
|
|
211
|
+
T as a,
|
|
212
|
+
U as b,
|
|
213
|
+
Y as c,
|
|
214
|
+
O as d,
|
|
215
|
+
q as e,
|
|
216
|
+
N as f,
|
|
217
|
+
V as g,
|
|
218
|
+
E as h,
|
|
219
|
+
J as i,
|
|
220
|
+
P as j
|
|
221
|
+
};
|
|
@@ -11,12 +11,12 @@ type __VLS_Slots = {} & {
|
|
|
11
11
|
};
|
|
12
12
|
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
13
13
|
blur: () => any;
|
|
14
|
-
change: (value: boolean) => any;
|
|
15
14
|
"update:modelValue": (value: boolean) => any;
|
|
15
|
+
change: (value: boolean) => any;
|
|
16
16
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
17
17
|
onBlur?: (() => any) | undefined;
|
|
18
|
-
onChange?: ((value: boolean) => any) | undefined;
|
|
19
18
|
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
19
|
+
onChange?: ((value: boolean) => any) | undefined;
|
|
20
20
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
21
21
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
22
22
|
export default _default;
|
|
@@ -1,26 +1,23 @@
|
|
|
1
|
-
|
|
1
|
+
type __VLS_Props = {
|
|
2
2
|
code: string;
|
|
3
3
|
lang?: string;
|
|
4
4
|
variant?: "default" | "preview";
|
|
5
5
|
layout?: "tabbed" | "split";
|
|
6
6
|
title?: string;
|
|
7
7
|
description?: string;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}> & Readonly<{}>, {
|
|
8
|
+
};
|
|
9
|
+
declare var __VLS_19: {}, __VLS_31: {};
|
|
10
|
+
type __VLS_Slots = {} & {
|
|
11
|
+
preview?: (props: typeof __VLS_19) => any;
|
|
12
|
+
} & {
|
|
13
|
+
preview?: (props: typeof __VLS_31) => any;
|
|
14
|
+
};
|
|
15
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
16
16
|
variant: "default" | "preview";
|
|
17
17
|
lang: string;
|
|
18
18
|
layout: "tabbed" | "split";
|
|
19
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any
|
|
20
|
-
|
|
21
|
-
} & {
|
|
22
|
-
preview?: (props: {}) => any;
|
|
23
|
-
}>;
|
|
19
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
20
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
24
21
|
export default _default;
|
|
25
22
|
type __VLS_WithSlots<T, S> = T & {
|
|
26
23
|
new (): {
|
|
@@ -5,11 +5,11 @@ type __VLS_Props = {
|
|
|
5
5
|
};
|
|
6
6
|
declare var __VLS_1: {
|
|
7
7
|
isOpen: boolean;
|
|
8
|
-
},
|
|
8
|
+
}, __VLS_7: {};
|
|
9
9
|
type __VLS_Slots = {} & {
|
|
10
10
|
trigger?: (props: typeof __VLS_1) => any;
|
|
11
11
|
} & {
|
|
12
|
-
content?: (props: typeof
|
|
12
|
+
content?: (props: typeof __VLS_7) => any;
|
|
13
13
|
};
|
|
14
14
|
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
15
15
|
"update:modelValue": (val: boolean) => any;
|
|
@@ -34,12 +34,12 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {
|
|
|
34
34
|
values: import("vue").ComputedRef<Record<string, unknown>>;
|
|
35
35
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
36
36
|
error: (errors: LuFormErrors) => any;
|
|
37
|
-
reset: () => any;
|
|
38
37
|
submit: (values: Record<string, unknown>) => any;
|
|
38
|
+
reset: () => any;
|
|
39
39
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
40
40
|
onError?: ((errors: LuFormErrors) => any) | undefined;
|
|
41
|
-
onReset?: (() => any) | undefined;
|
|
42
41
|
onSubmit?: ((values: Record<string, unknown>) => any) | undefined;
|
|
42
|
+
onReset?: (() => any) | undefined;
|
|
43
43
|
}>, {
|
|
44
44
|
disabled: boolean;
|
|
45
45
|
rules: LuFormRules;
|
|
@@ -5,20 +5,20 @@ type __VLS_Props = {
|
|
|
5
5
|
closable?: boolean;
|
|
6
6
|
closeOnOverlayClick?: boolean;
|
|
7
7
|
};
|
|
8
|
-
declare var __VLS_13: {},
|
|
8
|
+
declare var __VLS_13: {}, __VLS_28: {}, __VLS_30: {};
|
|
9
9
|
type __VLS_Slots = {} & {
|
|
10
10
|
header?: (props: typeof __VLS_13) => any;
|
|
11
11
|
} & {
|
|
12
|
-
default?: (props: typeof
|
|
12
|
+
default?: (props: typeof __VLS_28) => any;
|
|
13
13
|
} & {
|
|
14
|
-
footer?: (props: typeof
|
|
14
|
+
footer?: (props: typeof __VLS_30) => any;
|
|
15
15
|
};
|
|
16
16
|
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
17
|
-
close: () => any;
|
|
18
17
|
"update:modelValue": (value: boolean) => any;
|
|
18
|
+
close: () => any;
|
|
19
19
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
20
|
-
onClose?: (() => any) | undefined;
|
|
21
20
|
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
21
|
+
onClose?: (() => any) | undefined;
|
|
22
22
|
}>, {
|
|
23
23
|
closable: boolean;
|
|
24
24
|
closeOnOverlayClick: boolean;
|
|
@@ -6,11 +6,11 @@ type __VLS_Props = {
|
|
|
6
6
|
variant?: string;
|
|
7
7
|
};
|
|
8
8
|
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
9
|
-
change: (value: number) => any;
|
|
10
9
|
"update:modelValue": (value: number) => any;
|
|
10
|
+
change: (value: number) => any;
|
|
11
11
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
12
|
-
onChange?: ((value: number) => any) | undefined;
|
|
13
12
|
"onUpdate:modelValue"?: ((value: number) => any) | undefined;
|
|
13
|
+
onChange?: ((value: number) => any) | undefined;
|
|
14
14
|
}>, {
|
|
15
15
|
pageSize: number;
|
|
16
16
|
siblingCount: number;
|
|
@@ -9,11 +9,11 @@ type __VLS_Slots = {} & {
|
|
|
9
9
|
default?: (props: typeof __VLS_1) => any;
|
|
10
10
|
};
|
|
11
11
|
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
12
|
-
change: (value: string | number) => any;
|
|
13
12
|
"update:modelValue": (value: string | number) => any;
|
|
13
|
+
change: (value: string | number) => any;
|
|
14
14
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
15
|
-
onChange?: ((value: string | number) => any) | undefined;
|
|
16
15
|
"onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
|
|
16
|
+
onChange?: ((value: string | number) => any) | undefined;
|
|
17
17
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
18
18
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
19
19
|
export default _default;
|
package/dist/components/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as s, a as L, b as e, c as o, d as l, e as t, f as r, g as T, h as b, i, j as n, k as d, l as g, m as c, n as p, o as B, p as m, q as C, r as h, s as S, t as k, u as x, v as P, w, x as H, y as I, z as M, A as v, B as A, C as G, D as R, E as f, F as y, G as D, H as F, I as j, J as q, K as z, L as E, M as J, N as K, O as N, P as O, Q } from "../LuCodeBlock.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
import { _ as s, a as L, b as e, c as o, d as l, e as t, f as r, g as T, h as b, i, j as n, k as d, l as g, m as c, n as p, o as B, p as m, q as C, r as h, s as S, t as k, u as x, v as P, w, x as H, y as I, z as M, A as v, B as A, C as G, D as R, E as f, F as y, G as D, H as F, I as j, J as q, K as z, L as E, M as J, N as K, O as N, P as O, Q } from "../LuCodeBlock.vue_vue_type_script_setup_true_lang-BdXflBkJ.js";
|
|
2
2
|
export {
|
|
3
3
|
s as LuAlert,
|
|
4
4
|
L as LuAvatar,
|
|
@@ -1,30 +1,31 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import { u as
|
|
3
|
-
function
|
|
4
|
-
const e =
|
|
5
|
-
function
|
|
1
|
+
import { ref as t, readonly as r } from "vue";
|
|
2
|
+
import { g as c, u as p } from "../useShiki-DPOJfneq.js";
|
|
3
|
+
function u(n = !1) {
|
|
4
|
+
const e = t(n);
|
|
5
|
+
function i() {
|
|
6
6
|
e.value = !e.value;
|
|
7
7
|
}
|
|
8
|
-
function
|
|
8
|
+
function o() {
|
|
9
9
|
e.value = !0;
|
|
10
10
|
}
|
|
11
|
-
function
|
|
11
|
+
function a() {
|
|
12
12
|
e.value = !1;
|
|
13
13
|
}
|
|
14
14
|
return {
|
|
15
15
|
isExpanded: r(e),
|
|
16
|
-
toggle:
|
|
17
|
-
expand:
|
|
18
|
-
collapse:
|
|
16
|
+
toggle: i,
|
|
17
|
+
expand: o,
|
|
18
|
+
collapse: a
|
|
19
19
|
};
|
|
20
20
|
}
|
|
21
|
-
function l(n, e = "horizontal",
|
|
21
|
+
function l(n, e = "horizontal", i) {
|
|
22
22
|
return {
|
|
23
|
-
isDragging:
|
|
23
|
+
isDragging: t(!1)
|
|
24
24
|
};
|
|
25
25
|
}
|
|
26
26
|
export {
|
|
27
|
-
|
|
27
|
+
c as getHighlighter,
|
|
28
|
+
u as useRail,
|
|
28
29
|
l as useSplit,
|
|
29
|
-
|
|
30
|
+
p as useTheme
|
|
30
31
|
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { inject as m, isRef as p } from "vue";
|
|
2
|
+
import { clsx as a } from "clsx";
|
|
3
|
+
import { twMerge as l } from "tailwind-merge";
|
|
4
|
+
import { defaultSkin as k } from "./skins/index.js";
|
|
5
|
+
function u(...o) {
|
|
6
|
+
return l(a(o));
|
|
7
|
+
}
|
|
8
|
+
function g(o, c) {
|
|
9
|
+
const s = { ...o };
|
|
10
|
+
for (const e in c) {
|
|
11
|
+
if (!s[e]) {
|
|
12
|
+
s[e] = { ...c[e] };
|
|
13
|
+
continue;
|
|
14
|
+
}
|
|
15
|
+
const t = s[e], r = c[e], i = { ...t };
|
|
16
|
+
for (const n in r)
|
|
17
|
+
t[n] ? i[n] = u(t[n], r[n]) : i[n] = r[n];
|
|
18
|
+
s[e] = i;
|
|
19
|
+
}
|
|
20
|
+
return s;
|
|
21
|
+
}
|
|
22
|
+
const d = Symbol("LumoraUIConfig");
|
|
23
|
+
function L() {
|
|
24
|
+
const o = m(d, {});
|
|
25
|
+
return { config: o, resolveSkin: (e, t) => {
|
|
26
|
+
const r = p(o.skin) ? o.skin.value : o.skin || {}, n = g(k, r)[e];
|
|
27
|
+
if (!n) return "";
|
|
28
|
+
const f = [];
|
|
29
|
+
return n.default && f.push(n.default), t && n[t] && f.push(n[t]), u(f);
|
|
30
|
+
}, resolveIcon: (e, t) => o.icons ? o.icons(e, t) : null };
|
|
31
|
+
}
|
|
32
|
+
export {
|
|
33
|
+
d as L,
|
|
34
|
+
u as c,
|
|
35
|
+
L as u
|
|
36
|
+
};
|