@astrake/lumora-ui 0.1.6 → 0.2.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.
Files changed (157) hide show
  1. package/CHANGELOG.md +141 -92
  2. package/dist/LuCodeBlock.vue_vue_type_script_setup_true_lang-BjwcjuXF.js +1623 -0
  3. package/dist/LuEmbeddedStatusBar.vue_vue_type_script_setup_true_lang-CIksvebU.js +218 -0
  4. package/dist/LuOverlay.vue_vue_type_script_setup_true_lang-DZch4Vrw.js +226 -0
  5. package/dist/components/LuAlert.vue.d.ts +20 -0
  6. package/dist/components/LuAvatar.vue.d.ts +19 -0
  7. package/dist/components/LuBadge.vue.d.ts +16 -0
  8. package/dist/components/LuBreadcrumb.vue.d.ts +16 -0
  9. package/dist/components/LuButton.vue.d.ts +24 -0
  10. package/dist/components/LuCard.vue.d.ts +21 -0
  11. package/dist/components/LuCheckbox.vue.d.ts +27 -0
  12. package/dist/components/LuCodeBlock.vue.d.ts +29 -0
  13. package/dist/components/LuCollapsible.vue.d.ts +25 -0
  14. package/dist/components/LuDivider.vue.d.ts +8 -0
  15. package/dist/components/LuForm.types.d.ts +18 -0
  16. package/dist/components/LuForm.vue.d.ts +55 -0
  17. package/dist/components/LuIcon.vue.d.ts +18 -0
  18. package/dist/components/LuInput.vue.d.ts +26 -0
  19. package/dist/components/LuLink.vue.d.ts +23 -0
  20. package/dist/components/LuMenu.vue.d.ts +26 -0
  21. package/dist/components/LuMenuItem.vue.d.ts +20 -0
  22. package/dist/components/LuModal.vue.d.ts +32 -0
  23. package/dist/components/LuPageHeader.vue.d.ts +10 -0
  24. package/dist/components/LuPagination.vue.d.ts +18 -0
  25. package/dist/components/LuProgressBar.vue.d.ts +7 -0
  26. package/dist/components/LuRadio.vue.d.ts +18 -0
  27. package/dist/components/LuRadioGroup.types.d.ts +8 -0
  28. package/dist/components/LuRadioGroup.vue.d.ts +24 -0
  29. package/dist/components/LuSelect.vue.d.ts +18 -0
  30. package/dist/components/LuSkeleton.vue.d.ts +5 -0
  31. package/dist/components/LuSpinner.vue.d.ts +5 -0
  32. package/dist/components/LuSwitch.vue.d.ts +15 -0
  33. package/dist/components/LuTab.vue.d.ts +16 -0
  34. package/dist/components/LuTabList.vue.d.ts +15 -0
  35. package/dist/components/LuTabPanel.vue.d.ts +16 -0
  36. package/dist/components/LuTable.vue.d.ts +15 -0
  37. package/dist/components/LuTableBody.vue.d.ts +15 -0
  38. package/dist/components/LuTableCell.vue.d.ts +15 -0
  39. package/dist/components/LuTableHead.vue.d.ts +15 -0
  40. package/dist/components/LuTableHeadCell.vue.d.ts +15 -0
  41. package/dist/components/LuTableRow.vue.d.ts +15 -0
  42. package/dist/components/LuTabs.vue.d.ts +20 -0
  43. package/dist/components/LuTag.vue.d.ts +20 -0
  44. package/dist/components/LuText.vue.d.ts +16 -0
  45. package/dist/components/LuTextarea.vue.d.ts +14 -0
  46. package/dist/components/LuThemeSelect.vue.d.ts +2 -0
  47. package/dist/components/LuThemeSwitch.vue.d.ts +2 -0
  48. package/dist/components/LuToggleButton.vue.d.ts +16 -0
  49. package/dist/components/LuToggleGroup.vue.d.ts +20 -0
  50. package/dist/components/LuTooltip.vue.d.ts +19 -0
  51. package/dist/components/__tests__/LuForm.test.d.ts +1 -0
  52. package/{src/components/index.ts → dist/components/index.d.ts} +16 -0
  53. package/dist/components/index.js +47 -0
  54. package/{src/composables/index.ts → dist/composables/index.d.ts} +0 -1
  55. package/dist/composables/index.js +30 -0
  56. package/dist/composables/useRail.d.ts +6 -0
  57. package/dist/composables/useSplit.d.ts +4 -0
  58. package/dist/composables/useTheme.d.ts +7 -0
  59. package/dist/context-0gENwESP.js +62 -0
  60. package/dist/context.d.ts +8 -0
  61. package/{src/index.ts → dist/index.d.ts} +2 -3
  62. package/dist/index.js +94 -0
  63. package/dist/layout/LuDock.vue.d.ts +9 -0
  64. package/dist/layout/LuDockItem.vue.d.ts +16 -0
  65. package/dist/layout/LuFill.vue.d.ts +21 -0
  66. package/dist/layout/LuFixed.vue.d.ts +21 -0
  67. package/dist/layout/LuGrid.vue.d.ts +26 -0
  68. package/dist/layout/LuOverlay.vue.d.ts +15 -0
  69. package/dist/layout/LuScroll.vue.d.ts +15 -0
  70. package/dist/layout/LuSplit.vue.d.ts +16 -0
  71. package/dist/layout/LuSplitPane.vue.d.ts +18 -0
  72. package/dist/layout/LuSplitResizer.vue.d.ts +5 -0
  73. package/dist/layout/LuStack.vue.d.ts +23 -0
  74. package/{src/layout/index.ts → dist/layout/index.d.ts} +1 -14
  75. package/dist/layout/index.js +14 -0
  76. package/dist/plugin.d.ts +6 -0
  77. package/dist/shell/desktop/LuDesktopRailBar.vue.d.ts +17 -0
  78. package/dist/shell/desktop/LuDesktopRailItem.vue.d.ts +18 -0
  79. package/dist/shell/desktop/LuDesktopShell.vue.d.ts +23 -0
  80. package/dist/shell/desktop/LuDesktopSidebar.vue.d.ts +21 -0
  81. package/dist/shell/desktop/LuDesktopStatusBar.vue.d.ts +15 -0
  82. package/dist/shell/desktop/LuDesktopTopBar.vue.d.ts +15 -0
  83. package/dist/shell/embedded/LuEmbeddedShell.vue.d.ts +19 -0
  84. package/dist/shell/embedded/LuEmbeddedStatusBar.vue.d.ts +17 -0
  85. package/dist/shell/embedded/LuEmbeddedTopBar.vue.d.ts +19 -0
  86. package/{src/shell/index.ts → dist/shell/index.d.ts} +4 -2
  87. package/dist/shell/index.js +15 -0
  88. package/dist/shell/mobile/LuMobileHeader.vue.d.ts +19 -0
  89. package/dist/shell/mobile/LuMobileNavBar.vue.d.ts +15 -0
  90. package/dist/shell/mobile/LuMobileShell.vue.d.ts +21 -0
  91. package/dist/skins/default.d.ts +2 -0
  92. package/dist/skins/index.js +416 -0
  93. package/dist/tailwind.d.ts +1 -0
  94. package/dist/tailwind.js +13 -0
  95. package/dist/types.d.ts +15 -0
  96. package/dist/useTheme-Cd4wVaLs.js +21 -0
  97. package/dist/utils.d.ts +21 -0
  98. package/package.json +94 -61
  99. package/src/lumora.css +16 -0
  100. package/src/components/LuAvatar.vue +0 -22
  101. package/src/components/LuBadge.vue +0 -15
  102. package/src/components/LuButton.vue +0 -58
  103. package/src/components/LuCard.vue +0 -20
  104. package/src/components/LuCollapsible.vue +0 -34
  105. package/src/components/LuDivider.vue +0 -18
  106. package/src/components/LuForm.types.ts +0 -24
  107. package/src/components/LuForm.vue +0 -121
  108. package/src/components/LuIcon.vue +0 -39
  109. package/src/components/LuInput.vue +0 -62
  110. package/src/components/LuLink.vue +0 -47
  111. package/src/components/LuPageHeader.vue +0 -24
  112. package/src/components/LuProgressBar.vue +0 -21
  113. package/src/components/LuSelect.vue +0 -67
  114. package/src/components/LuSwitch.vue +0 -74
  115. package/src/components/LuTab.vue +0 -26
  116. package/src/components/LuTabList.vue +0 -15
  117. package/src/components/LuTabPanel.vue +0 -19
  118. package/src/components/LuTable.vue +0 -15
  119. package/src/components/LuTableBody.vue +0 -15
  120. package/src/components/LuTableCell.vue +0 -15
  121. package/src/components/LuTableHead.vue +0 -15
  122. package/src/components/LuTableHeadCell.vue +0 -15
  123. package/src/components/LuTableRow.vue +0 -15
  124. package/src/components/LuTabs.vue +0 -30
  125. package/src/components/LuText.vue +0 -18
  126. package/src/components/LuThemeSelect.vue +0 -26
  127. package/src/components/LuThemeSwitch.vue +0 -22
  128. package/src/components/LuTooltip.vue +0 -36
  129. package/src/components/__tests__/LuForm.test.ts +0 -206
  130. package/src/composables/useRail.ts +0 -24
  131. package/src/composables/useSplit.ts +0 -17
  132. package/src/composables/useTheme.ts +0 -36
  133. package/src/context.ts +0 -36
  134. package/src/layout/LuDock.vue +0 -23
  135. package/src/layout/LuDockItem.vue +0 -18
  136. package/src/layout/LuFill.vue +0 -17
  137. package/src/layout/LuFixed.vue +0 -17
  138. package/src/layout/LuGrid.vue +0 -22
  139. package/src/layout/LuOverlay.vue +0 -17
  140. package/src/layout/LuScroll.vue +0 -17
  141. package/src/layout/LuSplit.vue +0 -23
  142. package/src/layout/LuSplitPane.vue +0 -32
  143. package/src/layout/LuSplitResizer.vue +0 -17
  144. package/src/layout/LuStack.vue +0 -24
  145. package/src/plugin.ts +0 -27
  146. package/src/shell/desktop/LuDesktopRailBar.vue +0 -23
  147. package/src/shell/desktop/LuDesktopRailItem.vue +0 -23
  148. package/src/shell/desktop/LuDesktopShell.vue +0 -25
  149. package/src/shell/desktop/LuDesktopSidebar.vue +0 -36
  150. package/src/shell/desktop/LuDesktopStatusBar.vue +0 -15
  151. package/src/shell/desktop/LuDesktopTopBar.vue +0 -15
  152. package/src/shell/embedded/LuEmbeddedShell.vue +0 -20
  153. package/src/shell/mobile/LuMobileShell.vue +0 -21
  154. package/src/skins/default.ts +0 -94
  155. package/src/types.ts +0 -18
  156. package/tsconfig.json +0 -10
  157. /package/{src/skins/index.ts → dist/skins/index.d.ts} +0 -0
@@ -0,0 +1,218 @@
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-0gENwESP.js";
3
+ const y = /* @__PURE__ */ c({
4
+ __name: "LuDesktopShell",
5
+ props: {
6
+ variant: {}
7
+ },
8
+ setup(r) {
9
+ const t = r, { resolveSkin: s } = d(), l = n(() => s("LuDesktopShell", t.variant)), e = n(() => s("LuDesktopShellContentWrapper")), o = n(() => s("LuDesktopShellMainContent"));
10
+ return (i, k) => (u(), v("div", p(i.$attrs, { class: l.value }), [
11
+ a(i.$slots, "topbar"),
12
+ L("div", {
13
+ class: S(e.value)
14
+ }, [
15
+ a(i.$slots, "rail"),
16
+ a(i.$slots, "sidebar"),
17
+ L("div", {
18
+ class: S(o.value)
19
+ }, [
20
+ a(i.$slots, "content")
21
+ ], 2)
22
+ ], 2),
23
+ a(i.$slots, "statusbar")
24
+ ], 16));
25
+ }
26
+ }), R = /* @__PURE__ */ c({
27
+ __name: "LuDesktopRailBar",
28
+ props: {
29
+ variant: {},
30
+ expanded: { type: Boolean },
31
+ expandOnHover: { type: Boolean }
32
+ },
33
+ setup(r) {
34
+ const t = r, s = _(!1), l = n(() => t.expanded || t.expandOnHover && s.value), e = ($) => {
35
+ s.value = $;
36
+ }, { resolveSkin: o } = d(), i = n(() => o("LuDesktopRailBar", t.variant)), k = n(() => o("LuDesktopRailBar", "expanded"));
37
+ return ($, m) => (u(), v("div", p($.$attrs, {
38
+ class: [i.value, l.value ? k.value : ""],
39
+ onMouseenter: m[0] || (m[0] = (b) => e(!0)),
40
+ onMouseleave: m[1] || (m[1] = (b) => e(!1))
41
+ }), [
42
+ a($.$slots, "default")
43
+ ], 16));
44
+ }
45
+ }), g = /* @__PURE__ */ c({
46
+ __name: "LuDesktopRailItem",
47
+ props: {
48
+ variant: {},
49
+ active: { type: Boolean }
50
+ },
51
+ setup(r) {
52
+ const t = r, { resolveSkin: s } = d(), l = n(() => s("LuDesktopRailItem", t.variant)), e = n(() => s("LuDesktopRailItem", "active")), o = n(() => s("LuDesktopRailItemIcon", t.variant)), i = n(() => s("LuDesktopRailItemLabel", t.variant));
53
+ return (k, $) => (u(), v("div", p(k.$attrs, {
54
+ class: [l.value, r.active ? e.value : ""]
55
+ }), [
56
+ L("div", {
57
+ class: S(o.value)
58
+ }, [
59
+ a(k.$slots, "icon")
60
+ ], 2),
61
+ k.$slots.default ? (u(), v("div", {
62
+ key: 0,
63
+ class: S(i.value)
64
+ }, [
65
+ a(k.$slots, "default")
66
+ ], 2)) : h("", !0)
67
+ ], 16));
68
+ }
69
+ }), H = /* @__PURE__ */ c({
70
+ __name: "LuDesktopTopBar",
71
+ props: {
72
+ variant: {}
73
+ },
74
+ setup(r) {
75
+ const t = r, { resolveSkin: s } = d(), l = n(() => s("LuDesktopTopBar", t.variant));
76
+ return (e, o) => (u(), v("div", p(e.$attrs, { class: l.value }), [
77
+ a(e.$slots, "default")
78
+ ], 16));
79
+ }
80
+ }), I = /* @__PURE__ */ c({
81
+ __name: "LuDesktopSidebar",
82
+ props: {
83
+ variant: {}
84
+ },
85
+ setup(r) {
86
+ const t = r, s = D(), l = n(() => !!s.header), e = n(() => !!s.content), o = n(() => !!s.footer), { resolveSkin: i } = d(), k = n(() => i("LuDesktopSidebar", t.variant)), $ = n(() => i("LuDesktopSidebarHeader", t.variant)), m = n(() => i("LuDesktopSidebarContent", t.variant)), b = n(() => i("LuDesktopSidebarFooter", t.variant));
87
+ return (f, C) => (u(), v("div", p(f.$attrs, { class: k.value }), [
88
+ l.value || e.value || o.value ? (u(), v(B, { key: 0 }, [
89
+ l.value ? (u(), v("div", {
90
+ key: 0,
91
+ class: S($.value)
92
+ }, [
93
+ a(f.$slots, "header")
94
+ ], 2)) : h("", !0),
95
+ L("div", {
96
+ class: S(m.value)
97
+ }, [
98
+ a(f.$slots, "content")
99
+ ], 2),
100
+ o.value ? (u(), v("div", {
101
+ key: 1,
102
+ class: S(b.value)
103
+ }, [
104
+ a(f.$slots, "footer")
105
+ ], 2)) : h("", !0)
106
+ ], 64)) : a(f.$slots, "default", { key: 1 })
107
+ ], 16));
108
+ }
109
+ }), N = /* @__PURE__ */ c({
110
+ __name: "LuDesktopStatusBar",
111
+ props: {
112
+ variant: {}
113
+ },
114
+ setup(r) {
115
+ const t = r, { resolveSkin: s } = d(), l = n(() => s("LuDesktopStatusBar", t.variant));
116
+ return (e, o) => (u(), v("div", p(e.$attrs, { class: l.value }), [
117
+ a(e.$slots, "default")
118
+ ], 16));
119
+ }
120
+ }), T = /* @__PURE__ */ c({
121
+ __name: "LuMobileShell",
122
+ props: {
123
+ variant: {}
124
+ },
125
+ setup(r) {
126
+ const t = r, { resolveSkin: s } = d(), l = n(() => s("LuMobileShell", t.variant)), e = n(() => s("LuMobileShellContent"));
127
+ return (o, i) => (u(), v("div", p(o.$attrs, { class: l.value }), [
128
+ a(o.$slots, "header"),
129
+ L("div", {
130
+ class: S(e.value)
131
+ }, [
132
+ a(o.$slots, "content")
133
+ ], 2),
134
+ a(o.$slots, "navbar"),
135
+ a(o.$slots, "drawer")
136
+ ], 16));
137
+ }
138
+ }), F = /* @__PURE__ */ c({
139
+ __name: "LuMobileHeader",
140
+ props: {
141
+ variant: {}
142
+ },
143
+ setup(r) {
144
+ const t = r, { resolveSkin: s } = d(), l = n(() => s("LuMobileHeader", t.variant));
145
+ return (e, o) => (u(), v("div", p(e.$attrs, { class: l.value }), [
146
+ a(e.$slots, "left"),
147
+ a(e.$slots, "default"),
148
+ a(e.$slots, "right")
149
+ ], 16));
150
+ }
151
+ }), O = /* @__PURE__ */ c({
152
+ __name: "LuMobileNavBar",
153
+ props: {
154
+ variant: {}
155
+ },
156
+ setup(r) {
157
+ const t = r, { resolveSkin: s } = d(), l = n(() => s("LuMobileNavBar", t.variant));
158
+ return (e, o) => (u(), v("div", p(e.$attrs, { class: l.value }), [
159
+ a(e.$slots, "default")
160
+ ], 16));
161
+ }
162
+ }), V = /* @__PURE__ */ c({
163
+ __name: "LuEmbeddedShell",
164
+ props: {
165
+ variant: {}
166
+ },
167
+ setup(r) {
168
+ const t = r, { resolveSkin: s } = d(), l = n(() => s("LuEmbeddedShell", t.variant)), e = n(() => s("LuEmbeddedShellContent", t.variant));
169
+ return (o, i) => (u(), v("div", p(o.$attrs, { class: l.value }), [
170
+ a(o.$slots, "topbar"),
171
+ L("div", {
172
+ class: S(e.value)
173
+ }, [
174
+ a(o.$slots, "content")
175
+ ], 2),
176
+ a(o.$slots, "bottombar")
177
+ ], 16));
178
+ }
179
+ }), W = /* @__PURE__ */ c({
180
+ __name: "LuEmbeddedTopBar",
181
+ props: {
182
+ variant: {}
183
+ },
184
+ setup(r) {
185
+ const t = r, { resolveSkin: s } = d(), l = n(() => s("LuEmbeddedTopBar", t.variant));
186
+ return (e, o) => (u(), v("div", p(e.$attrs, { class: l.value }), [
187
+ a(e.$slots, "left"),
188
+ a(e.$slots, "default"),
189
+ a(e.$slots, "right")
190
+ ], 16));
191
+ }
192
+ }), j = /* @__PURE__ */ c({
193
+ __name: "LuEmbeddedStatusBar",
194
+ props: {
195
+ variant: {}
196
+ },
197
+ setup(r) {
198
+ const t = r, { resolveSkin: s } = d(), l = n(() => s("LuEmbeddedStatusBar", t.variant));
199
+ return (e, o) => (u(), v("div", p(e.$attrs, { class: l.value }), [
200
+ a(e.$slots, "left"),
201
+ a(e.$slots, "right")
202
+ ], 16));
203
+ }
204
+ });
205
+ export {
206
+ R as _,
207
+ g as a,
208
+ y as b,
209
+ I as c,
210
+ N as d,
211
+ H as e,
212
+ V as f,
213
+ j as g,
214
+ W as h,
215
+ F as i,
216
+ O as j,
217
+ T as k
218
+ };
@@ -0,0 +1,226 @@
1
+ import { defineComponent as u, computed as c, openBlock as p, createBlock as $, resolveDynamicComponent as g, mergeProps as v, withCtx as k, renderSlot as f, h as S, Fragment as F, Comment as B, createElementBlock as m, provide as P, readonly as b, inject as w, ref as A, unref as x } from "vue";
2
+ import { u as d, c as L, r as C } from "./context-0gENwESP.js";
3
+ const R = /* @__PURE__ */ u({
4
+ __name: "LuStack",
5
+ props: {
6
+ direction: {},
7
+ variant: {},
8
+ as: { default: "div" },
9
+ gap: {},
10
+ padding: {},
11
+ align: {},
12
+ justify: {}
13
+ },
14
+ setup(t) {
15
+ const s = t, { resolveSkin: n } = d(), o = c(() => L(
16
+ n("LuStack", s.direction ?? s.variant),
17
+ C(s)
18
+ ));
19
+ return (e, r) => (p(), $(g(t.as), v(e.$attrs, { class: o.value }), {
20
+ default: k(() => [
21
+ f(e.$slots, "default")
22
+ ]),
23
+ _: 3
24
+ }, 16, ["class"]));
25
+ }
26
+ }), V = /* @__PURE__ */ u({
27
+ __name: "LuGrid",
28
+ props: {
29
+ cols: {},
30
+ smCols: {},
31
+ mdCols: {},
32
+ lgCols: {},
33
+ variant: {},
34
+ as: { default: "div" },
35
+ gap: {},
36
+ padding: {},
37
+ align: {},
38
+ justify: {}
39
+ },
40
+ setup(t) {
41
+ const s = t, n = c(() => {
42
+ const l = { 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" }, a = s.smCols && l[s.smCols] ? `sm:${l[s.smCols]}` : "", i = s.mdCols && l[s.mdCols] ? `md:${l[s.mdCols]}` : "", h = s.lgCols && l[s.lgCols] ? `lg:${l[s.lgCols]}` : "";
43
+ return [a, i, h].filter(Boolean).join(" ");
44
+ }), { resolveSkin: o } = d(), e = c(() => L(
45
+ o("LuGrid", s.variant),
46
+ C(s),
47
+ n.value
48
+ )), r = c(
49
+ () => s.cols ? { gridTemplateColumns: `repeat(${s.cols}, minmax(0, 1fr))` } : {}
50
+ );
51
+ return (l, a) => (p(), $(g(t.as), v(l.$attrs, {
52
+ class: e.value,
53
+ style: r.value
54
+ }), {
55
+ default: k(() => [
56
+ f(l.$slots, "default")
57
+ ]),
58
+ _: 3
59
+ }, 16, ["class", "style"]));
60
+ }
61
+ }), E = u({
62
+ name: "LuDock",
63
+ props: {
64
+ variant: String
65
+ },
66
+ setup(t, { slots: s, attrs: n }) {
67
+ const { resolveSkin: o } = d(), e = c(() => o("LuDock", t.variant));
68
+ function r(l) {
69
+ let a = [];
70
+ for (const i of l)
71
+ Array.isArray(i) ? a.push(...r(i)) : i.type === F ? a.push(...r(i.children)) : i && i.type && i.type !== B && a.push(i);
72
+ return a;
73
+ }
74
+ return () => {
75
+ var h;
76
+ const l = s.default ? s.default() : [], a = r(l);
77
+ if (a.length === 0)
78
+ return S("div", { ...n, class: e.value });
79
+ let i = S("div", { class: "flex flex-col flex-1 min-h-0 min-w-0 overflow-hidden" }, [a[a.length - 1]]);
80
+ for (let y = a.length - 2; y >= 0; y--) {
81
+ const z = a[y], _ = ((h = z.props) == null ? void 0 : h.dock) || "left", D = _ === "top" || _ === "bottom" ? "flex-col" : "flex-row", j = _ === "top" || _ === "left" ? [z, i] : [i, z];
82
+ i = S("div", { class: `flex ${D} flex-1 min-h-0 min-w-0 overflow-hidden` }, j);
83
+ }
84
+ return S("div", { ...n, class: e.value }, [i]);
85
+ };
86
+ }
87
+ }), T = /* @__PURE__ */ u({
88
+ __name: "LuDockItem",
89
+ props: {
90
+ dock: {},
91
+ variant: {}
92
+ },
93
+ setup(t) {
94
+ const s = t, { resolveSkin: n } = d(), o = c(() => [
95
+ n("LuDockItem", s.dock ?? s.variant)
96
+ ]);
97
+ return (e, r) => (p(), m("div", v(e.$attrs, { class: o.value }), [
98
+ f(e.$slots, "default")
99
+ ], 16));
100
+ }
101
+ }), q = /* @__PURE__ */ u({
102
+ __name: "LuSplit",
103
+ props: {
104
+ direction: {},
105
+ variant: {}
106
+ },
107
+ setup(t) {
108
+ const s = t, n = c(() => s.direction ?? "horizontal");
109
+ P("lu-split-direction", b(n));
110
+ const { resolveSkin: o } = d(), e = c(() => o("LuSplit", s.direction ?? s.variant));
111
+ return (r, l) => (p(), m("div", v(r.$attrs, { class: e.value }), [
112
+ f(r.$slots, "default")
113
+ ], 16));
114
+ }
115
+ }), H = /* @__PURE__ */ u({
116
+ __name: "LuSplitPane",
117
+ props: {
118
+ minSize: {},
119
+ maxSize: {},
120
+ defaultSize: {},
121
+ variant: {}
122
+ },
123
+ setup(t) {
124
+ const s = t, n = w("lu-split-direction", "horizontal"), o = A(s.defaultSize), e = c(() => {
125
+ if (o.value === void 0) return { flex: "1 1 0%" };
126
+ const a = `${o.value}px`;
127
+ return x(n) === "horizontal" ? { width: a, flex: `0 0 ${a}` } : { height: a, flex: `0 0 ${a}` };
128
+ }), { resolveSkin: r } = d(), l = c(() => r("LuSplitPane", s.variant));
129
+ return (a, i) => (p(), m("div", v(a.$attrs, {
130
+ class: l.value,
131
+ style: e.value
132
+ }), [
133
+ f(a.$slots, "default")
134
+ ], 16));
135
+ }
136
+ }), J = /* @__PURE__ */ u({
137
+ __name: "LuSplitResizer",
138
+ props: {
139
+ variant: {}
140
+ },
141
+ setup(t) {
142
+ const s = w("lu-split-direction", "horizontal"), { resolveSkin: n } = d(), o = c(() => [
143
+ n("LuSplitResizer", x(s) === "horizontal" ? "horizontal" : "vertical")
144
+ ]);
145
+ return (e, r) => (p(), m("div", v(e.$attrs, { class: o.value }), null, 16));
146
+ }
147
+ }), K = /* @__PURE__ */ u({
148
+ __name: "LuScroll",
149
+ props: {
150
+ variant: {}
151
+ },
152
+ setup(t) {
153
+ const s = t, { resolveSkin: n } = d(), o = c(() => [
154
+ n("LuScroll", s.variant)
155
+ ]);
156
+ return (e, r) => (p(), m("div", v(e.$attrs, { class: o.value }), [
157
+ f(e.$slots, "default")
158
+ ], 16));
159
+ }
160
+ }), M = /* @__PURE__ */ u({
161
+ __name: "LuFill",
162
+ props: {
163
+ variant: {},
164
+ as: { default: "div" },
165
+ width: {},
166
+ height: {},
167
+ padding: {}
168
+ },
169
+ setup(t) {
170
+ const s = t, { resolveSkin: n } = d(), o = c(() => L(
171
+ n("LuFill", s.variant),
172
+ C(s)
173
+ ));
174
+ return (e, r) => (p(), $(g(t.as), v(e.$attrs, { class: o.value }), {
175
+ default: k(() => [
176
+ f(e.$slots, "default")
177
+ ]),
178
+ _: 3
179
+ }, 16, ["class"]));
180
+ }
181
+ }), N = /* @__PURE__ */ u({
182
+ __name: "LuFixed",
183
+ props: {
184
+ variant: {},
185
+ as: { default: "div" },
186
+ width: {},
187
+ height: {},
188
+ padding: {}
189
+ },
190
+ setup(t) {
191
+ const s = t, { resolveSkin: n } = d(), o = c(() => L(
192
+ n("LuFixed", s.variant),
193
+ C(s)
194
+ ));
195
+ return (e, r) => (p(), $(g(t.as), v(e.$attrs, { class: o.value }), {
196
+ default: k(() => [
197
+ f(e.$slots, "default")
198
+ ]),
199
+ _: 3
200
+ }, 16, ["class"]));
201
+ }
202
+ }), Q = /* @__PURE__ */ u({
203
+ __name: "LuOverlay",
204
+ props: {
205
+ variant: {}
206
+ },
207
+ setup(t) {
208
+ const s = t, { resolveSkin: n } = d(), o = c(() => n("LuOverlay", s.variant));
209
+ return (e, r) => (p(), m("div", v(e.$attrs, { class: o.value }), [
210
+ f(e.$slots, "default")
211
+ ], 16));
212
+ }
213
+ });
214
+ export {
215
+ E as _,
216
+ T as a,
217
+ M as b,
218
+ N as c,
219
+ V as d,
220
+ Q as e,
221
+ K as f,
222
+ q as g,
223
+ H as h,
224
+ J as i,
225
+ R as j
226
+ };
@@ -0,0 +1,20 @@
1
+ type __VLS_Props = {
2
+ variant?: string;
3
+ icon?: string;
4
+ };
5
+ declare var __VLS_1: {}, __VLS_6: {}, __VLS_8: {};
6
+ type __VLS_Slots = {} & {
7
+ icon?: (props: typeof __VLS_1) => any;
8
+ } & {
9
+ default?: (props: typeof __VLS_6) => any;
10
+ } & {
11
+ action?: (props: typeof __VLS_8) => any;
12
+ };
13
+ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
14
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
15
+ export default _default;
16
+ type __VLS_WithSlots<T, S> = T & {
17
+ new (): {
18
+ $slots: S;
19
+ };
20
+ };
@@ -0,0 +1,19 @@
1
+ type __VLS_Props = {
2
+ variant?: string;
3
+ src?: string;
4
+ fallback?: string;
5
+ alt?: string;
6
+ size?: string;
7
+ };
8
+ declare var __VLS_1: {};
9
+ type __VLS_Slots = {} & {
10
+ default?: (props: typeof __VLS_1) => any;
11
+ };
12
+ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
13
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
14
+ export default _default;
15
+ type __VLS_WithSlots<T, S> = T & {
16
+ new (): {
17
+ $slots: S;
18
+ };
19
+ };
@@ -0,0 +1,16 @@
1
+ type __VLS_Props = {
2
+ variant?: string;
3
+ as?: string;
4
+ };
5
+ declare var __VLS_6: {};
6
+ type __VLS_Slots = {} & {
7
+ default?: (props: typeof __VLS_6) => any;
8
+ };
9
+ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
10
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
11
+ export default _default;
12
+ type __VLS_WithSlots<T, S> = T & {
13
+ new (): {
14
+ $slots: S;
15
+ };
16
+ };
@@ -0,0 +1,16 @@
1
+ export interface LuBreadcrumbItem {
2
+ label: string;
3
+ href?: string;
4
+ to?: any;
5
+ current?: boolean;
6
+ icon?: string;
7
+ }
8
+ type __VLS_Props = {
9
+ items: LuBreadcrumbItem[];
10
+ variant?: string;
11
+ separatorIcon?: string;
12
+ };
13
+ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
14
+ separatorIcon: string;
15
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
16
+ export default _default;
@@ -0,0 +1,24 @@
1
+ type __VLS_Props = {
2
+ type?: "button" | "submit" | "reset";
3
+ disabled?: boolean;
4
+ variant?: string;
5
+ as?: string;
6
+ to?: any;
7
+ href?: string;
8
+ };
9
+ declare var __VLS_10: {};
10
+ type __VLS_Slots = {} & {
11
+ default?: (props: typeof __VLS_10) => any;
12
+ };
13
+ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
14
+ click: (event: MouseEvent) => any;
15
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
16
+ onClick?: ((event: MouseEvent) => any) | undefined;
17
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
18
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
19
+ export default _default;
20
+ type __VLS_WithSlots<T, S> = T & {
21
+ new (): {
22
+ $slots: S;
23
+ };
24
+ };
@@ -0,0 +1,21 @@
1
+ type __VLS_Props = {
2
+ variant?: string;
3
+ as?: string;
4
+ padding?: string | number;
5
+ width?: string;
6
+ height?: string;
7
+ };
8
+ declare var __VLS_6: {};
9
+ type __VLS_Slots = {} & {
10
+ default?: (props: typeof __VLS_6) => any;
11
+ };
12
+ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
13
+ as: string;
14
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
15
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
16
+ export default _default;
17
+ type __VLS_WithSlots<T, S> = T & {
18
+ new (): {
19
+ $slots: S;
20
+ };
21
+ };
@@ -0,0 +1,27 @@
1
+ type __VLS_Props = {
2
+ modelValue?: boolean;
3
+ variant?: string;
4
+ name?: string;
5
+ label?: string;
6
+ error?: string | null;
7
+ };
8
+ declare var __VLS_1: {};
9
+ type __VLS_Slots = {} & {
10
+ default?: (props: typeof __VLS_1) => any;
11
+ };
12
+ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
13
+ blur: () => any;
14
+ change: (value: boolean) => any;
15
+ "update:modelValue": (value: boolean) => any;
16
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
17
+ onBlur?: (() => any) | undefined;
18
+ onChange?: ((value: boolean) => any) | undefined;
19
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
20
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
21
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
22
+ export default _default;
23
+ type __VLS_WithSlots<T, S> = T & {
24
+ new (): {
25
+ $slots: S;
26
+ };
27
+ };
@@ -0,0 +1,29 @@
1
+ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<{
2
+ code: string;
3
+ lang?: string;
4
+ variant?: "default" | "preview";
5
+ layout?: "tabbed" | "split";
6
+ title?: string;
7
+ description?: string;
8
+ }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
9
+ code: string;
10
+ lang?: string;
11
+ variant?: "default" | "preview";
12
+ layout?: "tabbed" | "split";
13
+ title?: string;
14
+ description?: string;
15
+ }> & Readonly<{}>, {
16
+ variant: "default" | "preview";
17
+ lang: string;
18
+ layout: "tabbed" | "split";
19
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
20
+ preview?: (props: {}) => any;
21
+ } & {
22
+ preview?: (props: {}) => any;
23
+ }>;
24
+ export default _default;
25
+ type __VLS_WithSlots<T, S> = T & {
26
+ new (): {
27
+ $slots: S;
28
+ };
29
+ };
@@ -0,0 +1,25 @@
1
+ type __VLS_Props = {
2
+ variant?: string;
3
+ modelValue?: boolean;
4
+ defaultOpen?: boolean;
5
+ };
6
+ declare var __VLS_1: {
7
+ isOpen: boolean;
8
+ }, __VLS_3: {};
9
+ type __VLS_Slots = {} & {
10
+ trigger?: (props: typeof __VLS_1) => any;
11
+ } & {
12
+ content?: (props: typeof __VLS_3) => any;
13
+ };
14
+ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
15
+ "update:modelValue": (val: boolean) => any;
16
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
17
+ "onUpdate:modelValue"?: ((val: boolean) => any) | undefined;
18
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
19
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
20
+ export default _default;
21
+ type __VLS_WithSlots<T, S> = T & {
22
+ new (): {
23
+ $slots: S;
24
+ };
25
+ };
@@ -0,0 +1,8 @@
1
+ type __VLS_Props = {
2
+ variant?: string;
3
+ orientation?: "horizontal" | "vertical";
4
+ };
5
+ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
6
+ orientation: "horizontal" | "vertical";
7
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
8
+ export default _default;
@@ -0,0 +1,18 @@
1
+ import type { InjectionKey, Ref } from "vue";
2
+ export type LuFormValidator = (value: unknown) => string | null | Promise<string | null>;
3
+ export type LuFormRules = Record<string, LuFormValidator | LuFormValidator[]>;
4
+ export type LuFormErrors = Record<string, string>;
5
+ export interface LuFormFieldRegistration {
6
+ name: string;
7
+ getValue: () => unknown;
8
+ setValue: (v: unknown) => void;
9
+ setError: (msg: string | null) => void;
10
+ }
11
+ export declare const LuFormContextKey: InjectionKey<LuFormContext>;
12
+ export interface LuFormContext {
13
+ register(field: LuFormFieldRegistration): void;
14
+ unregister(name: string): void;
15
+ getError(name: string): string | null;
16
+ validateOn: Readonly<Ref<"submit" | "blur" | "both">>;
17
+ disabled: Readonly<Ref<boolean>>;
18
+ }