@codemonster-ru/vueforge-core 1.3.3 → 1.5.0

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.
@@ -1,10 +1,10 @@
1
- import { resolveThemeConfig as Le, applyThemeConfig as Se, resolveTheme as ze, DEFAULT_STORAGE_KEY as Me, DEFAULT_ATTRIBUTE as Pe, isThemeMode as Ne, vfMotionDurationsMs as U } from "@codemonster-ru/vueforge-theme";
2
- import { createThemePreset as Wn } from "@codemonster-ru/vueforge-theme";
1
+ import { resolveThemeConfig as Le, applyThemeConfig as Se, resolveTheme as ze, DEFAULT_STORAGE_KEY as Me, DEFAULT_ATTRIBUTE as Pe, isThemeMode as Ne, vfMotionDurationsMs as Y } from "@codemonster-ru/vueforge-theme";
2
+ import { createThemePreset as Xn } from "@codemonster-ru/vueforge-theme";
3
3
  import { defaultThemePreset as Fe } from "./theme-api.js";
4
- import { defineComponent as L, ref as A, inject as we, computed as s, watch as Z, onMounted as de, onBeforeUnmount as ee, provide as Re, renderSlot as B, toValue as K, nextTick as ae, openBlock as c, createElementBlock as m, createElementVNode as T, unref as h, toDisplayString as F, normalizeClass as P, createVNode as j, Transition as ne, withCtx as Q, createCommentVNode as O, useAttrs as R, mergeProps as H, createTextVNode as oe, normalizeStyle as W, useSlots as Te, createBlock as q, Teleport as le, resolveDynamicComponent as re, normalizeProps as Ve, guardReactiveProps as xe, resolveComponent as He, Fragment as ue, renderList as ce } from "vue";
5
- import { d as Ce } from "./useScrollLock-FYdn9vRp.js";
6
- import { t as Yn, a as Xn, u as Gn, b as Qn, c as Jn, v as Zn } from "./useScrollLock-FYdn9vRp.js";
7
- import { VueIconify as te, icons as X } from "@codemonster-ru/vueiconify";
4
+ import { defineComponent as L, inject as we, computed as s, ref as D, watch as ee, onMounted as ce, onBeforeUnmount as te, provide as Re, renderSlot as B, toValue as K, nextTick as oe, openBlock as d, createElementBlock as _, createElementVNode as T, unref as p, toDisplayString as N, normalizeClass as P, createVNode as j, Transition as ne, withCtx as G, createCommentVNode as O, useAttrs as R, mergeProps as H, createTextVNode as ae, normalizeStyle as W, useSlots as Te, createBlock as q, Teleport as le, resolveDynamicComponent as re, normalizeProps as Ve, guardReactiveProps as Ce, resolveComponent as He, Fragment as ue, renderList as de } from "vue";
5
+ import { d as xe } from "./useScrollLock-FYdn9vRp.js";
6
+ import { t as Qn, a as Jn, u as Zn, b as ea, c as ta, v as na } from "./useScrollLock-FYdn9vRp.js";
7
+ import { VueIconify as Z, icons as U } from "@codemonster-ru/vueiconify";
8
8
  import { autoUpdate as Ke, computePosition as je, offset as ve, flip as pe, shift as me, arrow as he } from "@codemonster-ru/floater.js";
9
9
  const Be = Symbol("VueForgeConfig");
10
10
  function qe(t = {}) {
@@ -13,84 +13,93 @@ function qe(t = {}) {
13
13
  preset: t.preset ?? Fe
14
14
  });
15
15
  }
16
- function We(t, n) {
16
+ function Ue(t, n) {
17
17
  return Se(t, n);
18
18
  }
19
- function Ue() {
19
+ function We() {
20
20
  return {
21
21
  install(n, e = {}) {
22
22
  const i = qe(e.theme);
23
- n.provide(Be, { theme: i }), typeof document < "u" && We(i);
23
+ n.provide(Be, {
24
+ theme: i,
25
+ themeMode: {
26
+ defaultTheme: e.defaultTheme,
27
+ storageKey: e.themeStorageKey,
28
+ attribute: e.themeAttribute
29
+ }
30
+ }), typeof document < "u" && Ue(i);
24
31
  }
25
32
  };
26
33
  }
27
- const bn = Ue(), Ee = Symbol("VfThemeContext"), $n = /* @__PURE__ */ L({
34
+ const Tn = We(), Ee = Symbol("VfThemeContext"), Vn = /* @__PURE__ */ L({
28
35
  __name: "VfThemeProvider",
29
36
  props: {
30
- defaultTheme: { default: "system" },
37
+ defaultTheme: {},
31
38
  storageKey: {},
32
39
  attribute: {}
33
40
  },
34
41
  setup(t) {
35
- const n = t, e = A(n.defaultTheme), i = A("light"), l = A(null), r = we(Be, null), u = s(
36
- () => ze(e.value, i.value)
37
- ), p = s(
38
- () => n.storageKey ?? (r == null ? void 0 : r.theme.options.storageKey) ?? Me
42
+ const n = t, e = we(Be, null), i = s(
43
+ () => n.defaultTheme ?? (e == null ? void 0 : e.themeMode.defaultTheme) ?? "system"
44
+ ), l = D(i.value), r = D("light"), u = D(null), v = s(
45
+ () => ze(l.value, r.value)
46
+ ), y = s(
47
+ () => n.storageKey ?? (e == null ? void 0 : e.themeMode.storageKey) ?? (e == null ? void 0 : e.theme.options.storageKey) ?? Me
39
48
  ), g = s(
40
- () => n.attribute ?? (r == null ? void 0 : r.theme.options.attribute) ?? Pe
41
- ), b = A(!1);
42
- let v = null;
43
- function E() {
49
+ () => n.attribute ?? (e == null ? void 0 : e.themeMode.attribute) ?? (e == null ? void 0 : e.theme.options.attribute) ?? Pe
50
+ ), m = D(!1);
51
+ let C = null;
52
+ function x() {
44
53
  if (typeof window > "u")
45
54
  return;
46
- const d = window.localStorage.getItem(p.value);
47
- Ne(d) && (e.value = d);
55
+ const f = window.localStorage.getItem(y.value);
56
+ Ne(f) && (l.value = f);
48
57
  }
49
- function V() {
50
- v !== null && (window.clearTimeout(v), v = null);
58
+ function w() {
59
+ C !== null && (window.clearTimeout(C), C = null);
51
60
  }
52
- function w(d, _ = {}) {
61
+ function S(f, a = {}) {
53
62
  if (typeof document > "u")
54
63
  return;
55
- const o = document.documentElement;
56
- _.animate && (V(), o.classList.add("vf-theme-transitioning")), o.setAttribute(g.value, d), _.animate && (v = window.setTimeout(() => {
57
- o.classList.remove("vf-theme-transitioning"), v = null;
64
+ const h = document.documentElement;
65
+ a.animate && (w(), h.classList.add("vf-theme-transitioning")), h.setAttribute(g.value, f), a.animate && (C = window.setTimeout(() => {
66
+ h.classList.remove("vf-theme-transitioning"), C = null;
58
67
  }, 320));
59
68
  }
60
- function I(d) {
61
- var _;
62
- if (d) {
63
- i.value = d.matches ? "dark" : "light";
69
+ function I(f) {
70
+ var a;
71
+ if (f) {
72
+ r.value = f.matches ? "dark" : "light";
64
73
  return;
65
74
  }
66
- i.value = (_ = l.value) != null && _.matches ? "dark" : "light";
75
+ r.value = (a = u.value) != null && a.matches ? "dark" : "light";
67
76
  }
68
- function S(d) {
69
- e.value = d;
77
+ function z(f) {
78
+ l.value = f;
70
79
  }
71
- function z() {
72
- const d = u.value === "dark" ? "light" : "dark";
73
- e.value = d;
80
+ function $() {
81
+ const f = v.value === "dark" ? "light" : "dark";
82
+ l.value = f;
74
83
  }
75
- return Z(e, (d) => {
76
- typeof window > "u" || window.localStorage.setItem(p.value, d);
77
- }), Z(
78
- u,
79
- (d) => {
80
- w(d, { animate: b.value });
84
+ return ee(l, (f) => {
85
+ typeof window > "u" || window.localStorage.setItem(y.value, f);
86
+ }), ee(
87
+ v,
88
+ (f) => {
89
+ S(f, { animate: m.value });
81
90
  },
82
91
  { immediate: !0 }
83
- ), de(() => {
84
- E(), l.value = window.matchMedia("(prefers-color-scheme: dark)"), I(), l.value.addEventListener("change", I), b.value = !0;
85
- }), ee(() => {
86
- var d;
87
- (d = l.value) == null || d.removeEventListener("change", I), V();
92
+ ), ce(() => {
93
+ l.value = i.value, x(), u.value = window.matchMedia("(prefers-color-scheme: dark)"), I(), u.value.addEventListener("change", I), m.value = !0;
94
+ }), te(() => {
95
+ var f;
96
+ (f = u.value) == null || f.removeEventListener("change", I), w();
88
97
  }), Re(Ee, {
89
- mode: e,
90
- resolvedTheme: u,
91
- setTheme: S,
92
- toggleTheme: z
93
- }), (d, _) => B(d.$slots, "default");
98
+ mode: l,
99
+ resolvedTheme: v,
100
+ setTheme: z,
101
+ toggleTheme: $
102
+ }), (f, a) => B(f.$slots, "default");
94
103
  }
95
104
  });
96
105
  function Oe(t, n, e = {}) {
@@ -100,22 +109,22 @@ function Oe(t, n, e = {}) {
100
109
  const u = r.target;
101
110
  if (!(u instanceof Node))
102
111
  return;
103
- const p = Array.isArray(t) ? t.map((g) => g.value).filter((g) => g instanceof HTMLElement) : [t.value].filter(
104
- (g) => g instanceof HTMLElement
112
+ const v = Array.isArray(t) ? t.map((y) => y.value).filter((y) => y instanceof HTMLElement) : [t.value].filter(
113
+ (y) => y instanceof HTMLElement
105
114
  );
106
- p.length === 0 || p.some((g) => g.contains(u)) || n(r);
115
+ v.length === 0 || v.some((y) => y.contains(u)) || n(r);
107
116
  };
108
- de(() => {
117
+ ce(() => {
109
118
  document.addEventListener(i, l);
110
- }), ee(() => {
119
+ }), te(() => {
111
120
  document.removeEventListener(i, l);
112
121
  });
113
122
  }
114
123
  function se(t = {}) {
115
- const n = s(() => K(t.open) !== void 0), e = A(t.defaultOpen ?? !1), i = s(
124
+ const n = s(() => K(t.open) !== void 0), e = D(t.defaultOpen ?? !1), i = s(
116
125
  () => n.value ? !!K(t.open) : e.value
117
126
  );
118
- Z(
127
+ ee(
119
128
  () => K(t.open),
120
129
  (r) => {
121
130
  r !== void 0 && (e.value = r);
@@ -137,23 +146,23 @@ function fe(t, n = {}) {
137
146
  const e = n.event ?? "keydown", i = (l) => {
138
147
  K(n.enabled) === !1 || l.key !== "Escape" || t(l);
139
148
  };
140
- de(() => {
149
+ ce(() => {
141
150
  document.addEventListener(e, i);
142
- }), ee(() => {
151
+ }), te(() => {
143
152
  document.removeEventListener(e, i);
144
153
  });
145
154
  }
146
155
  function ye(t, n, e = {}) {
147
- const i = A(0), l = A(0), r = A(K(e.placement) ?? "bottom"), u = A({}), p = A(null);
148
- let g = 0;
149
- const b = s(() => ({
156
+ const i = D(0), l = D(0), r = D(K(e.placement) ?? "bottom"), u = D({}), v = D(null);
157
+ let y = 0;
158
+ const g = s(() => ({
150
159
  left: `${i.value}px`,
151
160
  top: `${l.value}px`
152
161
  }));
153
- async function v() {
162
+ async function m() {
154
163
  if (!t.value || !n.value)
155
164
  return;
156
- const V = await je(
165
+ const x = await je(
157
166
  t.value,
158
167
  n.value,
159
168
  {
@@ -162,32 +171,32 @@ function ye(t, n, e = {}) {
162
171
  strategy: K(e.strategy)
163
172
  }
164
173
  );
165
- i.value = V.x, l.value = V.y, r.value = V.placement, u.value = V.middlewareData ?? {};
174
+ i.value = x.x, l.value = x.y, r.value = x.placement, u.value = x.middlewareData ?? {};
166
175
  }
167
- function E() {
168
- var V;
169
- (V = p.value) == null || V.call(p), p.value = null;
176
+ function C() {
177
+ var x;
178
+ (x = v.value) == null || x.call(v), v.value = null;
170
179
  }
171
- return Z(
180
+ return ee(
172
181
  [() => K(e.enabled) !== !1, t, n],
173
- async ([V]) => {
174
- g += 1;
175
- const w = g;
176
- E(), !(!V || !t.value || !n.value) && (await ae(), !(w !== g || K(e.enabled) === !1 || !t.value || !n.value) && (await v(), !(w !== g || K(e.enabled) === !1 || !t.value || !n.value) && (p.value = Ke(t.value, () => {
177
- v();
182
+ async ([x]) => {
183
+ y += 1;
184
+ const w = y;
185
+ C(), !(!x || !t.value || !n.value) && (await oe(), !(w !== y || K(e.enabled) === !1 || !t.value || !n.value) && (await m(), !(w !== y || K(e.enabled) === !1 || !t.value || !n.value) && (v.value = Ke(t.value, () => {
186
+ m();
178
187
  }))));
179
188
  },
180
189
  { immediate: !0 }
181
- ), ee(() => {
182
- E();
190
+ ), te(() => {
191
+ C();
183
192
  }), {
184
193
  x: i,
185
194
  y: l,
186
195
  placement: r,
187
196
  middlewareData: u,
188
- styles: b,
189
- update: v,
190
- cleanup: E
197
+ styles: g,
198
+ update: m,
199
+ cleanup: C
191
200
  };
192
201
  }
193
202
  const Ye = [
@@ -205,7 +214,7 @@ function Xe(t) {
205
214
  (n) => !n.hasAttribute("hidden") && n.getAttribute("aria-hidden") !== "true"
206
215
  );
207
216
  }
208
- function De(t, n = {}) {
217
+ function Ae(t, n = {}) {
209
218
  const e = (i) => {
210
219
  if (i.key !== "Tab" || K(n.enabled) === !1)
211
220
  return;
@@ -217,25 +226,25 @@ function De(t, n = {}) {
217
226
  i.preventDefault(), l.focus();
218
227
  return;
219
228
  }
220
- const u = r[0], p = r[r.length - 1], g = document.activeElement;
229
+ const u = r[0], v = r[r.length - 1], y = document.activeElement;
221
230
  if (i.shiftKey) {
222
- (g === u || g === l) && (i.preventDefault(), p.focus());
231
+ (y === u || y === l) && (i.preventDefault(), v.focus());
223
232
  return;
224
233
  }
225
- g === p && (i.preventDefault(), u.focus());
234
+ y === v && (i.preventDefault(), u.focus());
226
235
  };
227
- de(() => {
236
+ ce(() => {
228
237
  document.addEventListener("keydown", e);
229
- }), ee(() => {
238
+ }), te(() => {
230
239
  document.removeEventListener("keydown", e);
231
240
  });
232
241
  }
233
242
  let Ge = 0;
234
- function G(t = {}) {
243
+ function Q(t = {}) {
235
244
  const n = `${t.prefix ?? "vf"}-${++Ge}`;
236
245
  return s(() => K(t.providedId) ?? n);
237
246
  }
238
- function kn() {
247
+ function Qe() {
239
248
  const t = we(Ee);
240
249
  if (!t)
241
250
  throw new Error("useTheme must be used inside VfThemeProvider.");
@@ -246,7 +255,7 @@ function kn() {
246
255
  toggleTheme: t.toggleTheme
247
256
  };
248
257
  }
249
- const Qe = { class: "vf-accordion" }, Je = ["id", "aria-controls", "aria-expanded", "disabled"], Ze = ["id", "aria-labelledby"], et = { class: "vf-accordion__content-inner" }, wn = /* @__PURE__ */ L({
258
+ const Je = { class: "vf-accordion" }, Ze = ["id", "aria-controls", "aria-expanded", "disabled"], et = ["id", "aria-labelledby"], tt = { class: "vf-accordion__content-inner" }, Cn = /* @__PURE__ */ L({
250
259
  __name: "VfAccordion",
251
260
  props: {
252
261
  open: { type: Boolean, default: void 0 },
@@ -256,113 +265,113 @@ const Qe = { class: "vf-accordion" }, Je = ["id", "aria-controls", "aria-expande
256
265
  },
257
266
  emits: ["update:open", "openChange"],
258
267
  setup(t, { emit: n }) {
259
- const e = t, i = n, l = G({ prefix: "vf-accordion-trigger" }), r = G({ prefix: "vf-accordion-content" }), u = se({
268
+ const e = t, i = n, l = Q({ prefix: "vf-accordion-trigger" }), r = Q({ prefix: "vf-accordion-content" }), u = se({
260
269
  defaultOpen: e.defaultOpen,
261
270
  open: s(() => e.open),
262
- onOpenChange: (_) => {
263
- i("update:open", _), i("openChange", _);
271
+ onOpenChange: (f) => {
272
+ i("update:open", f), i("openChange", f);
264
273
  }
265
- }), p = u.isOpen, g = [
274
+ }), v = u.isOpen, y = [
266
275
  "height var(--vf-motion-duration-normal) var(--vf-motion-ease-standard)",
267
276
  "opacity var(--vf-motion-duration-normal) var(--vf-motion-ease-standard)"
268
277
  ].join(", ");
269
- function b(_) {
270
- const o = _.firstElementChild;
271
- return (o == null ? void 0 : o.offsetHeight) ?? _.scrollHeight;
278
+ function g(f) {
279
+ const a = f.firstElementChild;
280
+ return (a == null ? void 0 : a.offsetHeight) ?? f.scrollHeight;
272
281
  }
273
- function v() {
282
+ function m() {
274
283
  e.disabled || u.toggle();
275
284
  }
276
- function E(_) {
277
- (_.key === "Enter" || _.key === " ") && (_.preventDefault(), v());
285
+ function C(f) {
286
+ (f.key === "Enter" || f.key === " ") && (f.preventDefault(), m());
278
287
  }
279
- function V(_) {
280
- const o = _;
281
- o.style.height = "0px", o.style.opacity = "0", o.style.overflow = "hidden";
288
+ function x(f) {
289
+ const a = f;
290
+ a.style.height = "0px", a.style.opacity = "0", a.style.overflow = "hidden";
282
291
  }
283
- function w(_, o) {
284
- const y = _;
285
- y.style.transition = g, requestAnimationFrame(() => {
286
- y.style.height = `${b(y)}px`, y.style.opacity = "1";
287
- }), window.setTimeout(o, U.normal);
292
+ function w(f, a) {
293
+ const h = f;
294
+ h.style.transition = y, requestAnimationFrame(() => {
295
+ h.style.height = `${g(h)}px`, h.style.opacity = "1";
296
+ }), window.setTimeout(a, Y.normal);
288
297
  }
289
- function I(_) {
290
- const o = _;
291
- o.style.height = "", o.style.opacity = "", o.style.overflow = "", o.style.transition = "";
298
+ function S(f) {
299
+ const a = f;
300
+ a.style.height = "", a.style.opacity = "", a.style.overflow = "", a.style.transition = "";
292
301
  }
293
- function S(_) {
294
- const o = _;
295
- o.style.height = `${b(o)}px`, o.style.opacity = "1", o.style.overflow = "hidden";
302
+ function I(f) {
303
+ const a = f;
304
+ a.style.height = `${g(a)}px`, a.style.opacity = "1", a.style.overflow = "hidden";
296
305
  }
297
- function z(_, o) {
298
- const y = _;
299
- y.style.transition = g, y.offsetHeight, y.style.height = "0px", y.style.opacity = "0", window.setTimeout(o, U.normal);
306
+ function z(f, a) {
307
+ const h = f;
308
+ h.style.transition = y, h.offsetHeight, h.style.height = "0px", h.style.opacity = "0", window.setTimeout(a, Y.normal);
300
309
  }
301
- function d(_) {
302
- const o = _;
303
- o.style.height = "", o.style.opacity = "", o.style.overflow = "", o.style.transition = "";
310
+ function $(f) {
311
+ const a = f;
312
+ a.style.height = "", a.style.opacity = "", a.style.overflow = "", a.style.transition = "";
304
313
  }
305
- return (_, o) => (c(), m("section", Qe, [
314
+ return (f, a) => (d(), _("section", Je, [
306
315
  T("button", {
307
- id: h(l),
308
- "aria-controls": h(r),
309
- "aria-expanded": h(p),
316
+ id: p(l),
317
+ "aria-controls": p(r),
318
+ "aria-expanded": p(v),
310
319
  disabled: t.disabled,
311
320
  class: "vf-accordion__trigger",
312
321
  type: "button",
313
- onClick: v,
314
- onKeydown: E
322
+ onClick: m,
323
+ onKeydown: C
315
324
  }, [
316
- B(_.$slots, "trigger", { open: h(p) }, () => [
317
- T("span", null, F(t.title), 1)
325
+ B(f.$slots, "trigger", { open: p(v) }, () => [
326
+ T("span", null, N(t.title), 1)
318
327
  ]),
319
328
  T("span", {
320
329
  "aria-hidden": "true",
321
- class: P(["vf-accordion__icon", h(p) && "vf-accordion__icon--open"])
330
+ class: P(["vf-accordion__icon", p(v) && "vf-accordion__icon--open"])
322
331
  }, [
323
- j(h(te), {
324
- icon: h(X).chevronDown,
332
+ j(p(Z), {
333
+ icon: p(U).chevronDown,
325
334
  size: "0.875rem"
326
335
  }, null, 8, ["icon"])
327
336
  ], 2)
328
- ], 40, Je),
337
+ ], 40, Ze),
329
338
  j(ne, {
330
339
  css: !1,
331
- onBeforeEnter: V,
340
+ onBeforeEnter: x,
332
341
  onEnter: w,
333
- onAfterEnter: I,
334
- onBeforeLeave: S,
342
+ onAfterEnter: S,
343
+ onBeforeLeave: I,
335
344
  onLeave: z,
336
- onAfterLeave: d
345
+ onAfterLeave: $
337
346
  }, {
338
- default: Q(() => [
339
- h(p) ? (c(), m("div", {
347
+ default: G(() => [
348
+ p(v) ? (d(), _("div", {
340
349
  key: 0,
341
- id: h(r),
342
- "aria-labelledby": h(l),
350
+ id: p(r),
351
+ "aria-labelledby": p(l),
343
352
  class: "vf-accordion__content",
344
353
  role: "region"
345
354
  }, [
346
- T("div", et, [
347
- B(_.$slots, "default", { open: h(p) })
355
+ T("div", tt, [
356
+ B(f.$slots, "default", { open: p(v) })
348
357
  ])
349
- ], 8, Ze)) : O("", !0)
358
+ ], 8, et)) : O("", !0)
350
359
  ]),
351
360
  _: 3
352
361
  })
353
362
  ]));
354
363
  }
355
364
  });
356
- function N(...t) {
365
+ function F(...t) {
357
366
  return t.filter(Boolean).join(" ");
358
367
  }
359
- const tt = {
368
+ const nt = {
360
369
  class: "vf-alert__icon",
361
370
  "aria-hidden": "true"
362
- }, nt = { class: "vf-alert__content" }, at = {
371
+ }, at = { class: "vf-alert__content" }, ot = {
363
372
  key: 0,
364
373
  class: "vf-alert__title"
365
- }, ot = { class: "vf-alert__body" }, Tn = /* @__PURE__ */ L({
374
+ }, lt = { class: "vf-alert__body" }, xn = /* @__PURE__ */ L({
366
375
  inheritAttrs: !1,
367
376
  __name: "VfAlert",
368
377
  props: {
@@ -371,31 +380,31 @@ const tt = {
371
380
  },
372
381
  setup(t) {
373
382
  const n = t, e = R(), i = s(
374
- () => N("vf-alert", n.tone !== "primary" && `vf-alert--${n.tone}`)
375
- ), l = s(() => n.tone === "success" ? X.checkCircle : n.tone === "info" ? X.info : n.tone === "warn" ? X.warning : n.tone === "help" ? X.questionCircle : n.tone === "danger" ? X.warning : n.tone === "contrast" ? X.info : X.info);
376
- return (r, u) => (c(), m("section", H({
383
+ () => F("vf-alert", n.tone !== "primary" && `vf-alert--${n.tone}`)
384
+ ), l = s(() => n.tone === "success" ? U.checkCircle : n.tone === "info" ? U.info : n.tone === "warn" ? U.warning : n.tone === "help" ? U.questionCircle : n.tone === "danger" ? U.warning : n.tone === "contrast" ? U.info : U.info);
385
+ return (r, u) => (d(), _("section", H({
377
386
  class: i.value,
378
387
  role: "alert"
379
- }, h(e)), [
380
- T("div", tt, [
381
- j(h(te), {
388
+ }, p(e)), [
389
+ T("div", nt, [
390
+ j(p(Z), {
382
391
  icon: l.value,
383
392
  size: "2rem"
384
393
  }, null, 8, ["icon"])
385
394
  ]),
386
- T("div", nt, [
387
- n.title || r.$slots.title ? (c(), m("p", at, [
395
+ T("div", at, [
396
+ n.title || r.$slots.title ? (d(), _("p", ot, [
388
397
  B(r.$slots, "title", {}, () => [
389
- oe(F(n.title), 1)
398
+ ae(N(n.title), 1)
390
399
  ])
391
400
  ])) : O("", !0),
392
- T("div", ot, [
401
+ T("div", lt, [
393
402
  B(r.$slots, "default")
394
403
  ])
395
404
  ])
396
405
  ], 16));
397
406
  }
398
- }), Vn = /* @__PURE__ */ L({
407
+ }), Bn = /* @__PURE__ */ L({
399
408
  inheritAttrs: !1,
400
409
  __name: "VfBadge",
401
410
  props: {
@@ -403,13 +412,13 @@ const tt = {
403
412
  },
404
413
  setup(t) {
405
414
  const n = t, e = R(), i = s(
406
- () => N("vf-badge", n.tone !== "neutral" && `vf-badge--${n.tone}`)
415
+ () => F("vf-badge", n.tone !== "neutral" && `vf-badge--${n.tone}`)
407
416
  );
408
- return (l, r) => (c(), m("span", H({ class: i.value }, h(e)), [
417
+ return (l, r) => (d(), _("span", H({ class: i.value }, p(e)), [
409
418
  B(l.$slots, "default")
410
419
  ], 16));
411
420
  }
412
- }), lt = ["type"], xn = /* @__PURE__ */ L({
421
+ }), st = ["type"], En = /* @__PURE__ */ L({
413
422
  inheritAttrs: !1,
414
423
  __name: "VfButton",
415
424
  props: {
@@ -420,24 +429,24 @@ const tt = {
420
429
  },
421
430
  setup(t) {
422
431
  const n = t, e = R(), i = s(
423
- () => N(
432
+ () => F(
424
433
  "vf-button",
425
434
  `vf-button--${n.variant}`,
426
435
  n.size !== "md" && `vf-button--${n.size}`,
427
436
  n.block && "vf-button--block"
428
437
  )
429
438
  );
430
- return (l, r) => (c(), m("button", H({
439
+ return (l, r) => (d(), _("button", H({
431
440
  class: i.value,
432
441
  type: n.type
433
- }, h(e)), [
442
+ }, p(e)), [
434
443
  B(l.$slots, "default")
435
- ], 16, lt));
444
+ ], 16, st));
436
445
  }
437
- }), st = { key: 0 }, it = { class: "vf-card__title" }, rt = {
446
+ }), it = { key: 0 }, rt = { class: "vf-card__title" }, ut = {
438
447
  key: 1,
439
448
  class: "vf-card__body"
440
- }, ut = { key: 2 }, Cn = /* @__PURE__ */ L({
449
+ }, dt = { key: 2 }, On = /* @__PURE__ */ L({
441
450
  inheritAttrs: !1,
442
451
  __name: "VfCard",
443
452
  props: {
@@ -446,26 +455,26 @@ const tt = {
446
455
  },
447
456
  setup(t) {
448
457
  const n = t, e = R(), i = s(
449
- () => N("vf-card", n.compact && "vf-card--compact")
458
+ () => F("vf-card", n.compact && "vf-card--compact")
450
459
  );
451
- return (l, r) => (c(), m("section", H({ class: i.value }, h(e)), [
452
- n.title || l.$slots.header ? (c(), m("header", st, [
460
+ return (l, r) => (d(), _("section", H({ class: i.value }, p(e)), [
461
+ n.title || l.$slots.header ? (d(), _("header", it, [
453
462
  B(l.$slots, "header", {}, () => [
454
- T("h3", it, F(n.title), 1)
463
+ T("h3", rt, N(n.title), 1)
455
464
  ])
456
465
  ])) : O("", !0),
457
- l.$slots.default ? (c(), m("div", rt, [
466
+ l.$slots.default ? (d(), _("div", ut, [
458
467
  B(l.$slots, "default")
459
468
  ])) : O("", !0),
460
- l.$slots.footer ? (c(), m("footer", ut, [
469
+ l.$slots.footer ? (d(), _("footer", dt, [
461
470
  B(l.$slots, "footer")
462
471
  ])) : O("", !0)
463
472
  ], 16));
464
473
  }
465
- }), ct = ["checked", "disabled", "aria-invalid"], dt = {
474
+ }), ct = ["checked", "disabled", "aria-invalid"], ft = {
466
475
  key: 0,
467
476
  class: "vf-checkbox__content"
468
- }, Bn = /* @__PURE__ */ L({
477
+ }, An = /* @__PURE__ */ L({
469
478
  inheritAttrs: !1,
470
479
  __name: "VfCheckbox",
471
480
  props: {
@@ -478,7 +487,7 @@ const tt = {
478
487
  emits: ["update:modelValue", "change"],
479
488
  setup(t, { emit: n }) {
480
489
  const e = t, i = n, l = R(), r = s(
481
- () => N(
490
+ () => F(
482
491
  "vf-checkbox",
483
492
  `vf-checkbox--${e.size}`,
484
493
  e.modelValue && "vf-checkbox--checked",
@@ -486,16 +495,16 @@ const tt = {
486
495
  e.disabled && "vf-checkbox--disabled",
487
496
  l.class
488
497
  )
489
- ), u = s(() => l.style), p = s(
498
+ ), u = s(() => l.style), v = s(
490
499
  () => Object.fromEntries(
491
- Object.entries(l).filter(([b]) => b !== "class" && b !== "style")
500
+ Object.entries(l).filter(([g]) => g !== "class" && g !== "style")
492
501
  )
493
502
  );
494
- function g(b) {
495
- const v = b.target.checked;
496
- i("update:modelValue", v), i("change", v);
503
+ function y(g) {
504
+ const m = g.target.checked;
505
+ i("update:modelValue", m), i("change", m);
497
506
  }
498
- return (b, v) => (c(), m("label", {
507
+ return (g, m) => (d(), _("label", {
499
508
  class: P(r.value),
500
509
  style: W(u.value)
501
510
  }, [
@@ -505,21 +514,21 @@ const tt = {
505
514
  checked: e.modelValue,
506
515
  disabled: e.disabled,
507
516
  "aria-invalid": e.invalid || void 0
508
- }, p.value, { onChange: g }), null, 16, ct),
509
- v[0] || (v[0] = T("span", {
517
+ }, v.value, { onChange: y }), null, 16, ct),
518
+ m[0] || (m[0] = T("span", {
510
519
  class: "vf-checkbox__control",
511
520
  "aria-hidden": "true"
512
521
  }, [
513
522
  T("span", { class: "vf-checkbox__mark" })
514
523
  ], -1)),
515
- t.label || b.$slots.default ? (c(), m("span", dt, [
516
- B(b.$slots, "default", {}, () => [
517
- oe(F(t.label), 1)
524
+ t.label || g.$slots.default ? (d(), _("span", ft, [
525
+ B(g.$slots, "default", {}, () => [
526
+ ae(N(t.label), 1)
518
527
  ])
519
528
  ])) : O("", !0)
520
529
  ], 6));
521
530
  }
522
- }), ft = ["type"], Ae = /* @__PURE__ */ L({
531
+ }), vt = ["type"], De = /* @__PURE__ */ L({
523
532
  inheritAttrs: !1,
524
533
  __name: "VfIconButton",
525
534
  props: {
@@ -530,33 +539,33 @@ const tt = {
530
539
  },
531
540
  setup(t) {
532
541
  const n = t, e = R(), i = s(
533
- () => N(
542
+ () => F(
534
543
  "vf-icon-button",
535
544
  n.variant !== "ghost" && `vf-icon-button--${n.variant}`,
536
545
  n.size !== "md" && `vf-icon-button--${n.size}`
537
546
  )
538
547
  ), l = s(() => n.size === "sm" ? "0.875rem" : n.size === "lg" ? "1.125rem" : "1rem");
539
- return (r, u) => (c(), m("button", H({
548
+ return (r, u) => (d(), _("button", H({
540
549
  class: i.value,
541
550
  type: n.type
542
- }, h(e)), [
543
- j(h(te), {
551
+ }, p(e)), [
552
+ j(p(Z), {
544
553
  icon: n.icon,
545
554
  size: l.value,
546
555
  "aria-hidden": "true"
547
556
  }, null, 8, ["icon", "size"])
548
- ], 16, ft));
557
+ ], 16, vt));
549
558
  }
550
- }), vt = ["aria-labelledby"], pt = {
559
+ }), pt = ["aria-labelledby"], mt = {
551
560
  key: 0,
552
561
  class: "vf-drawer__header"
553
- }, mt = ["id"], ht = { class: "vf-drawer__actions" }, yt = {
562
+ }, ht = ["id"], yt = { class: "vf-drawer__actions" }, _t = {
554
563
  key: 1,
555
564
  class: "vf-drawer__body"
556
- }, _t = {
565
+ }, gt = {
557
566
  key: 2,
558
567
  class: "vf-drawer__footer"
559
- }, En = /* @__PURE__ */ L({
568
+ }, Dn = /* @__PURE__ */ L({
560
569
  inheritAttrs: !1,
561
570
  __name: "VfDrawer",
562
571
  props: {
@@ -576,166 +585,166 @@ const tt = {
576
585
  },
577
586
  emits: ["update:open", "openChange"],
578
587
  setup(t, { emit: n }) {
579
- const e = t, i = n, l = R(), r = A(null), u = A(null), p = Te(), g = G({ prefix: "vf-drawer-title" }), b = se({
588
+ const e = t, i = n, l = R(), r = D(null), u = D(null), v = Te(), y = Q({ prefix: "vf-drawer-title" }), g = se({
580
589
  defaultOpen: e.defaultOpen,
581
590
  open: s(() => e.open),
582
- onOpenChange: (x) => {
583
- i("update:open", x), i("openChange", x);
591
+ onOpenChange: (V) => {
592
+ i("update:open", V), i("openChange", V);
584
593
  }
585
- }), v = b.isOpen, E = {
586
- enter: U.normal,
587
- leave: U.normal
594
+ }), m = g.isOpen, C = {
595
+ enter: Y.normal,
596
+ leave: Y.normal
588
597
  };
589
- function V(x) {
590
- return typeof x == "number" ? `${x}px` : x;
598
+ function x(V) {
599
+ return typeof V == "number" ? `${V}px` : V;
591
600
  }
592
601
  const w = s(() => {
593
- const x = {}, k = V(e.offsetTop), J = V(e.bodyPadding);
594
- return k != null && (x["--vf-drawer-offset-top"] = k), J != null && (x["--vf-drawer-body-padding"] = J), x;
595
- }), I = s(
596
- () => N(
602
+ const V = {}, k = x(e.offsetTop), J = x(e.bodyPadding);
603
+ return k != null && (V["--vf-drawer-offset-top"] = k), J != null && (V["--vf-drawer-body-padding"] = J), V;
604
+ }), S = s(
605
+ () => F(
597
606
  "vf-drawer",
598
607
  `vf-drawer--${e.placement}`,
599
608
  e.offsetTop != null && "vf-drawer--offset-top"
600
609
  )
601
- ), S = s(() => [
610
+ ), I = s(() => [
602
611
  w.value,
603
612
  l.style
604
613
  ]), z = s(() => Object.fromEntries(
605
- Object.entries(l).filter(([x]) => x !== "class" && x !== "style")
606
- )), d = s(
614
+ Object.entries(l).filter(([V]) => V !== "class" && V !== "style")
615
+ )), $ = s(
607
616
  () => e.disableTeleport || e.teleportTo === !1 || e.teleportTo === null
608
- ), _ = s(() => e.scrollLockTarget === !1 ? null : e.scrollLockTarget), o = s(() => typeof e.teleportTo == "string" || typeof HTMLElement < "u" && e.teleportTo instanceof HTMLElement ? e.teleportTo : "body"), y = s(
609
- () => N(
617
+ ), f = s(() => e.scrollLockTarget === !1 ? null : e.scrollLockTarget), a = s(() => typeof e.teleportTo == "string" || typeof HTMLElement < "u" && e.teleportTo instanceof HTMLElement ? e.teleportTo : "body"), h = s(
618
+ () => F(
610
619
  "vf-drawer__content",
611
620
  `vf-drawer__content--${e.placement}`,
612
621
  `vf-drawer__content--${e.size}`
613
622
  )
614
- ), f = s(() => !!p.header), a = s(
615
- () => e.title || f.value ? g.value : void 0
623
+ ), c = s(() => !!v.header), o = s(
624
+ () => e.title || c.value ? y.value : void 0
616
625
  );
617
- function C() {
618
- b.close();
626
+ function E() {
627
+ g.close();
619
628
  }
620
- function D() {
621
- e.closeOnOverlayClick && C();
629
+ function A() {
630
+ e.closeOnOverlayClick && E();
622
631
  }
623
632
  function M() {
624
- const x = r.value;
625
- if (!x)
633
+ const V = r.value;
634
+ if (!V)
626
635
  return;
627
- const k = x.querySelector(
636
+ const k = V.querySelector(
628
637
  "[autofocus], [data-autofocus]"
629
638
  );
630
639
  if (k) {
631
640
  k.focus();
632
641
  return;
633
642
  }
634
- x.focus();
643
+ V.focus();
635
644
  }
636
645
  return fe(
637
- (x) => {
638
- !e.closeOnEscape || !v.value || (x.preventDefault(), C());
646
+ (V) => {
647
+ !e.closeOnEscape || !m.value || (V.preventDefault(), E());
639
648
  },
640
649
  {
641
- enabled: v
650
+ enabled: m
642
651
  }
643
- ), De(r, {
644
- enabled: v
645
- }), Ce(v, {
646
- target: _
647
- }), Z(
648
- v,
649
- async (x) => {
652
+ ), Ae(r, {
653
+ enabled: m
654
+ }), xe(m, {
655
+ target: f
656
+ }), ee(
657
+ m,
658
+ async (V) => {
650
659
  var k;
651
660
  if (!(typeof document > "u")) {
652
- if (x) {
653
- u.value = document.activeElement instanceof HTMLElement ? document.activeElement : null, await ae(), M();
661
+ if (V) {
662
+ u.value = document.activeElement instanceof HTMLElement ? document.activeElement : null, await oe(), M();
654
663
  return;
655
664
  }
656
665
  (k = u.value) == null || k.focus();
657
666
  }
658
667
  },
659
668
  { immediate: !0 }
660
- ), ee(() => {
661
- var x;
662
- v.value && ((x = u.value) == null || x.focus());
663
- }), (x, k) => (c(), q(le, {
664
- to: o.value,
665
- disabled: d.value
669
+ ), te(() => {
670
+ var V;
671
+ m.value && ((V = u.value) == null || V.focus());
672
+ }), (V, k) => (d(), q(le, {
673
+ to: a.value,
674
+ disabled: $.value
666
675
  }, [
667
676
  j(ne, {
668
677
  name: "vf-drawer-transition",
669
678
  appear: "",
670
- duration: E
679
+ duration: C
671
680
  }, {
672
- default: Q(() => [
673
- h(v) ? (c(), m("div", H({
681
+ default: G(() => [
682
+ p(m) ? (d(), _("div", H({
674
683
  key: 0,
675
- class: [I.value, h(l).class],
676
- style: S.value
684
+ class: [S.value, p(l).class],
685
+ style: I.value
677
686
  }, z.value), [
678
687
  T("div", {
679
688
  class: "vf-drawer__overlay",
680
689
  "aria-hidden": "true",
681
- onClick: D
690
+ onClick: A
682
691
  }),
683
692
  T("section", {
684
693
  ref_key: "contentRef",
685
694
  ref: r,
686
- class: P(y.value),
687
- "aria-labelledby": a.value,
695
+ class: P(h.value),
696
+ "aria-labelledby": o.value,
688
697
  "aria-modal": "true",
689
698
  role: "dialog",
690
699
  tabindex: "-1"
691
700
  }, [
692
- t.title || x.$slots.header ? (c(), m("header", pt, [
701
+ t.title || V.$slots.header ? (d(), _("header", mt, [
693
702
  T("div", null, [
694
- B(x.$slots, "header", {}, () => [
695
- t.title ? (c(), m("h2", {
703
+ B(V.$slots, "header", {}, () => [
704
+ t.title ? (d(), _("h2", {
696
705
  key: 0,
697
- id: h(g),
706
+ id: p(y),
698
707
  class: "vf-drawer__title"
699
- }, F(t.title), 9, mt)) : O("", !0)
708
+ }, N(t.title), 9, ht)) : O("", !0)
700
709
  ])
701
710
  ]),
702
- T("div", ht, [
703
- B(x.$slots, "actions", { close: C }),
704
- e.closable ? (c(), q(Ae, {
711
+ T("div", yt, [
712
+ B(V.$slots, "actions", { close: E }),
713
+ e.closable ? (d(), q(De, {
705
714
  key: 0,
706
- icon: h(X).xmark,
715
+ icon: p(U).xmark,
707
716
  "aria-label": "Close drawer",
708
717
  size: "sm",
709
- onClick: C
718
+ onClick: E
710
719
  }, null, 8, ["icon"])) : O("", !0)
711
720
  ])
712
721
  ])) : O("", !0),
713
- x.$slots.default ? (c(), m("div", yt, [
714
- B(x.$slots, "default", { close: C })
722
+ V.$slots.default ? (d(), _("div", _t, [
723
+ B(V.$slots, "default", { close: E })
715
724
  ])) : O("", !0),
716
- x.$slots.footer ? (c(), m("footer", _t, [
717
- B(x.$slots, "footer", { close: C })
725
+ V.$slots.footer ? (d(), _("footer", gt, [
726
+ B(V.$slots, "footer", { close: E })
718
727
  ])) : O("", !0)
719
- ], 10, vt)
728
+ ], 10, pt)
720
729
  ], 16)) : O("", !0)
721
730
  ]),
722
731
  _: 3
723
732
  })
724
733
  ], 8, ["to", "disabled"]));
725
734
  }
726
- }), gt = {
735
+ }), bt = {
727
736
  key: 0,
728
737
  class: "vf-dialog"
729
- }, bt = ["aria-describedby", "aria-labelledby"], $t = {
738
+ }, $t = ["aria-describedby", "aria-labelledby"], kt = {
730
739
  key: 0,
731
740
  class: "vf-dialog__header"
732
- }, kt = ["id"], wt = ["id"], Tt = { class: "vf-dialog__actions" }, Vt = {
741
+ }, wt = ["id"], Tt = ["id"], Vt = { class: "vf-dialog__actions" }, Ct = {
733
742
  key: 1,
734
743
  class: "vf-dialog__body"
735
744
  }, xt = {
736
745
  key: 2,
737
746
  class: "vf-dialog__footer"
738
- }, On = /* @__PURE__ */ L({
747
+ }, In = /* @__PURE__ */ L({
739
748
  __name: "VfDialog",
740
749
  props: {
741
750
  open: { type: Boolean, default: void 0 },
@@ -751,139 +760,139 @@ const tt = {
751
760
  },
752
761
  emits: ["update:open", "openChange"],
753
762
  setup(t, { emit: n }) {
754
- const e = t, i = n, l = A(null), r = A(null), u = Te(), p = G({ prefix: "vf-dialog-title" }), g = G({ prefix: "vf-dialog-description" }), b = se({
763
+ const e = t, i = n, l = D(null), r = D(null), u = Te(), v = Q({ prefix: "vf-dialog-title" }), y = Q({ prefix: "vf-dialog-description" }), g = se({
755
764
  defaultOpen: e.defaultOpen,
756
765
  open: s(() => e.open),
757
- onOpenChange: (a) => {
758
- i("update:open", a), i("openChange", a);
766
+ onOpenChange: (o) => {
767
+ i("update:open", o), i("openChange", o);
759
768
  }
760
- }), v = b.isOpen, E = {
761
- enter: U.fast,
762
- leave: U.fast
763
- }, V = s(
769
+ }), m = g.isOpen, C = {
770
+ enter: Y.fast,
771
+ leave: Y.fast
772
+ }, x = s(
764
773
  () => e.disableTeleport || e.teleportTo === !1 || e.teleportTo === null
765
- ), w = s(() => typeof e.teleportTo == "string" || typeof HTMLElement < "u" && e.teleportTo instanceof HTMLElement ? e.teleportTo : "body"), I = s(
766
- () => N(
774
+ ), w = s(() => typeof e.teleportTo == "string" || typeof HTMLElement < "u" && e.teleportTo instanceof HTMLElement ? e.teleportTo : "body"), S = s(
775
+ () => F(
767
776
  "vf-dialog__content",
768
777
  e.size !== "md" && `vf-dialog__content--${e.size}`
769
778
  )
770
- ), S = s(() => !!u.header), z = s(() => !!u.description), d = s(
771
- () => e.title || S.value ? p.value : void 0
772
- ), _ = s(
773
- () => e.description || z.value ? g.value : void 0
779
+ ), I = s(() => !!u.header), z = s(() => !!u.description), $ = s(
780
+ () => e.title || I.value ? v.value : void 0
781
+ ), f = s(
782
+ () => e.description || z.value ? y.value : void 0
774
783
  );
775
- function o() {
776
- b.close();
784
+ function a() {
785
+ g.close();
777
786
  }
778
- function y() {
779
- e.closeOnOverlayClick && o();
787
+ function h() {
788
+ e.closeOnOverlayClick && a();
780
789
  }
781
- function f() {
782
- const a = l.value;
783
- if (!a)
790
+ function c() {
791
+ const o = l.value;
792
+ if (!o)
784
793
  return;
785
- const C = a.querySelector(
794
+ const E = o.querySelector(
786
795
  "[autofocus], [data-autofocus]"
787
796
  );
788
- if (C) {
789
- C.focus();
797
+ if (E) {
798
+ E.focus();
790
799
  return;
791
800
  }
792
- a.focus();
801
+ o.focus();
793
802
  }
794
803
  return fe(
795
- (a) => {
796
- !e.closeOnEscape || !v.value || (a.preventDefault(), o());
804
+ (o) => {
805
+ !e.closeOnEscape || !m.value || (o.preventDefault(), a());
797
806
  },
798
807
  {
799
- enabled: v
808
+ enabled: m
800
809
  }
801
- ), De(l, {
802
- enabled: v
803
- }), Ce(v), Z(
804
- v,
805
- async (a) => {
806
- var C;
810
+ ), Ae(l, {
811
+ enabled: m
812
+ }), xe(m), ee(
813
+ m,
814
+ async (o) => {
815
+ var E;
807
816
  if (!(typeof document > "u")) {
808
- if (a) {
809
- r.value = document.activeElement instanceof HTMLElement ? document.activeElement : null, await ae(), f();
817
+ if (o) {
818
+ r.value = document.activeElement instanceof HTMLElement ? document.activeElement : null, await oe(), c();
810
819
  return;
811
820
  }
812
- (C = r.value) == null || C.focus();
821
+ (E = r.value) == null || E.focus();
813
822
  }
814
823
  },
815
824
  { immediate: !0 }
816
- ), ee(() => {
817
- var a;
818
- v.value && ((a = r.value) == null || a.focus());
819
- }), (a, C) => (c(), q(le, {
825
+ ), te(() => {
826
+ var o;
827
+ m.value && ((o = r.value) == null || o.focus());
828
+ }), (o, E) => (d(), q(le, {
820
829
  to: w.value,
821
- disabled: V.value
830
+ disabled: x.value
822
831
  }, [
823
832
  j(ne, {
824
833
  name: "vf-dialog-transition",
825
834
  appear: "",
826
- duration: E
835
+ duration: C
827
836
  }, {
828
- default: Q(() => [
829
- h(v) ? (c(), m("div", gt, [
837
+ default: G(() => [
838
+ p(m) ? (d(), _("div", bt, [
830
839
  T("div", {
831
840
  class: "vf-dialog__overlay",
832
841
  "aria-hidden": "true",
833
- onClick: y
842
+ onClick: h
834
843
  }),
835
844
  T("section", {
836
845
  ref_key: "contentRef",
837
846
  ref: l,
838
- class: P(I.value),
839
- "aria-describedby": _.value,
840
- "aria-labelledby": d.value,
847
+ class: P(S.value),
848
+ "aria-describedby": f.value,
849
+ "aria-labelledby": $.value,
841
850
  "aria-modal": "true",
842
851
  role: "dialog",
843
852
  tabindex: "-1"
844
853
  }, [
845
- t.title || t.description || a.$slots.header || a.$slots.description ? (c(), m("header", $t, [
854
+ t.title || t.description || o.$slots.header || o.$slots.description ? (d(), _("header", kt, [
846
855
  T("div", null, [
847
- B(a.$slots, "header", {}, () => [
848
- t.title ? (c(), m("h2", {
856
+ B(o.$slots, "header", {}, () => [
857
+ t.title ? (d(), _("h2", {
849
858
  key: 0,
850
- id: h(p),
859
+ id: p(v),
851
860
  class: "vf-dialog__title"
852
- }, F(t.title), 9, kt)) : O("", !0)
861
+ }, N(t.title), 9, wt)) : O("", !0)
853
862
  ]),
854
- B(a.$slots, "description", {}, () => [
855
- t.description ? (c(), m("p", {
863
+ B(o.$slots, "description", {}, () => [
864
+ t.description ? (d(), _("p", {
856
865
  key: 0,
857
- id: h(g),
866
+ id: p(y),
858
867
  class: "vf-dialog__description"
859
- }, F(t.description), 9, wt)) : O("", !0)
868
+ }, N(t.description), 9, Tt)) : O("", !0)
860
869
  ])
861
870
  ]),
862
- T("div", Tt, [
863
- B(a.$slots, "actions", { close: o }),
864
- e.closable ? (c(), q(Ae, {
871
+ T("div", Vt, [
872
+ B(o.$slots, "actions", { close: a }),
873
+ e.closable ? (d(), q(De, {
865
874
  key: 0,
866
- icon: h(X).xmark,
875
+ icon: p(U).xmark,
867
876
  "aria-label": "Close dialog",
868
877
  size: "sm",
869
- onClick: o
878
+ onClick: a
870
879
  }, null, 8, ["icon"])) : O("", !0)
871
880
  ])
872
881
  ])) : O("", !0),
873
- a.$slots.default ? (c(), m("div", Vt, [
874
- B(a.$slots, "default", { close: o })
882
+ o.$slots.default ? (d(), _("div", Ct, [
883
+ B(o.$slots, "default", { close: a })
875
884
  ])) : O("", !0),
876
- a.$slots.footer ? (c(), m("footer", xt, [
877
- B(a.$slots, "footer", { close: o })
885
+ o.$slots.footer ? (d(), _("footer", xt, [
886
+ B(o.$slots, "footer", { close: a })
878
887
  ])) : O("", !0)
879
- ], 10, bt)
888
+ ], 10, $t)
880
889
  ])) : O("", !0)
881
890
  ]),
882
891
  _: 3
883
892
  })
884
893
  ], 8, ["to", "disabled"]));
885
894
  }
886
- }), Ct = ["aria-orientation", "role"], Dn = /* @__PURE__ */ L({
895
+ }), Bt = ["aria-orientation", "role"], Ln = /* @__PURE__ */ L({
887
896
  inheritAttrs: !1,
888
897
  __name: "VfDivider",
889
898
  props: {
@@ -891,15 +900,15 @@ const tt = {
891
900
  },
892
901
  setup(t) {
893
902
  const n = t, e = R(), i = s(() => n.orientation === "vertical"), l = s(
894
- () => N("vf-divider", `vf-divider--${n.orientation}`)
903
+ () => F("vf-divider", `vf-divider--${n.orientation}`)
895
904
  );
896
- return (r, u) => (c(), m("div", H({
905
+ return (r, u) => (d(), _("div", H({
897
906
  class: l.value,
898
907
  "aria-orientation": n.orientation,
899
908
  role: i.value ? "separator" : void 0
900
- }, h(e)), null, 16, Ct));
909
+ }, p(e)), null, 16, Bt));
901
910
  }
902
- }), Bt = { class: "vf-dropdown" }, Et = ["id", "aria-controls", "aria-expanded"], Ot = ["id", "aria-labelledby"], An = /* @__PURE__ */ L({
911
+ }), Et = { class: "vf-dropdown" }, Ot = ["id", "aria-controls", "aria-expanded"], At = ["id", "aria-labelledby"], Sn = /* @__PURE__ */ L({
903
912
  __name: "VfDropdown",
904
913
  props: {
905
914
  open: { type: Boolean, default: void 0 },
@@ -911,96 +920,96 @@ const tt = {
911
920
  },
912
921
  emits: ["update:open", "openChange"],
913
922
  setup(t, { emit: n }) {
914
- const e = t, i = n, l = A(null), r = A(null), u = A(null), p = G({ prefix: "vf-dropdown-menu" }), g = G({ prefix: "vf-dropdown-trigger" }), b = {
915
- enter: U.fast,
916
- leave: U.fast
917
- }, v = s(
923
+ const e = t, i = n, l = D(null), r = D(null), u = D(null), v = Q({ prefix: "vf-dropdown-menu" }), y = Q({ prefix: "vf-dropdown-trigger" }), g = {
924
+ enter: Y.fast,
925
+ leave: Y.fast
926
+ }, m = s(
918
927
  () => e.disableTeleport || e.teleportTo === !1 || e.teleportTo === null
919
- ), E = s(() => typeof e.teleportTo == "string" || typeof HTMLElement < "u" && e.teleportTo instanceof HTMLElement ? e.teleportTo : "body"), V = se({
928
+ ), C = s(() => typeof e.teleportTo == "string" || typeof HTMLElement < "u" && e.teleportTo instanceof HTMLElement ? e.teleportTo : "body"), x = se({
920
929
  defaultOpen: e.defaultOpen,
921
930
  open: s(() => e.open),
922
- onOpenChange: ($) => {
923
- i("update:open", $), i("openChange", $);
931
+ onOpenChange: (b) => {
932
+ i("update:open", b), i("openChange", b);
924
933
  }
925
- }), w = V.isOpen, I = s(() => [
934
+ }), w = x.isOpen, S = s(() => [
926
935
  "vf-dropdown__menu",
927
- o.value.startsWith("top") && "vf-dropdown__menu--top"
928
- ]), S = s(() => {
929
- const $ = y.value.arrow;
936
+ a.value.startsWith("top") && "vf-dropdown__menu--top"
937
+ ]), I = s(() => {
938
+ const b = h.value.arrow;
930
939
  return {
931
- x: ($ == null ? void 0 : $.x) !== void 0 && ($ == null ? void 0 : $.baseX) !== void 0 ? $.x - $.baseX : 0,
932
- y: ($ == null ? void 0 : $.y) !== void 0 && ($ == null ? void 0 : $.baseY) !== void 0 ? $.y - $.baseY : 0
940
+ x: (b == null ? void 0 : b.x) !== void 0 && (b == null ? void 0 : b.baseX) !== void 0 ? b.x - b.baseX : 0,
941
+ y: (b == null ? void 0 : b.y) !== void 0 && (b == null ? void 0 : b.baseY) !== void 0 ? b.y - b.baseY : 0
933
942
  };
934
943
  }), z = s(() => ({
935
- left: `${S.value.x}px`,
936
- top: `${S.value.y}px`
937
- })), d = s(() => [
944
+ left: `${I.value.x}px`,
945
+ top: `${I.value.y}px`
946
+ })), $ = s(() => [
938
947
  "vf-dropdown__arrow",
939
- o.value.startsWith("top") ? "vf-dropdown__arrow--top" : "vf-dropdown__arrow--bottom"
940
- ]), _ = s(
948
+ a.value.startsWith("top") ? "vf-dropdown__arrow--top" : "vf-dropdown__arrow--bottom"
949
+ ]), f = s(
941
950
  () => e.placement === "bottom-end" ? ["bottom-end", "top-end"] : ["bottom-start", "top-start"]
942
951
  ), {
943
- placement: o,
944
- middlewareData: y,
945
- styles: f
952
+ placement: a,
953
+ middlewareData: h,
954
+ styles: c
946
955
  } = ye(l, r, {
947
956
  enabled: w,
948
957
  placement: s(() => e.placement),
949
958
  middleware: s(
950
959
  () => [
951
960
  ve(10),
952
- pe({ placements: _.value }),
961
+ pe({ placements: f.value }),
953
962
  me(),
954
963
  u.value ? he(u.value) : void 0
955
- ].filter(($) => $ !== void 0)
964
+ ].filter((b) => b !== void 0)
956
965
  ),
957
966
  strategy: "fixed"
958
967
  });
959
- function a() {
960
- var $;
968
+ function o() {
969
+ var b;
961
970
  return Array.from(
962
- (($ = r.value) == null ? void 0 : $.querySelectorAll('[role="menuitem"]')) ?? []
971
+ ((b = r.value) == null ? void 0 : b.querySelectorAll('[role="menuitem"]')) ?? []
963
972
  );
964
973
  }
965
- async function C() {
966
- var $;
967
- await ae(), ($ = a()[0]) == null || $.focus();
974
+ async function E() {
975
+ var b;
976
+ await oe(), (b = o()[0]) == null || b.focus();
968
977
  }
969
- function D($ = {}) {
970
- V.open(), $.focusFirstItem && C();
978
+ function A(b = {}) {
979
+ x.open(), b.focusFirstItem && E();
971
980
  }
972
981
  function M() {
973
- var $;
974
- V.close(), ($ = l.value) == null || $.focus();
982
+ var b;
983
+ x.close(), (b = l.value) == null || b.focus();
975
984
  }
976
- function x() {
985
+ function V() {
977
986
  if (w.value) {
978
987
  M();
979
988
  return;
980
989
  }
981
- D();
990
+ A();
982
991
  }
983
- function k($) {
984
- ($.key === "ArrowDown" || $.key === "Enter" || $.key === " ") && ($.preventDefault(), D({ focusFirstItem: !0 }));
992
+ function k(b) {
993
+ (b.key === "ArrowDown" || b.key === "Enter" || b.key === " ") && (b.preventDefault(), A({ focusFirstItem: !0 }));
985
994
  }
986
- function J($) {
995
+ function J(b) {
987
996
  var ge, be, $e, ke;
988
- const Y = a(), _e = Y.findIndex(
997
+ const X = o(), _e = X.findIndex(
989
998
  (Ie) => Ie === document.activeElement
990
999
  );
991
- if ($.key === "ArrowDown") {
992
- $.preventDefault(), (ge = Y[(_e + 1 + Y.length) % Y.length]) == null || ge.focus();
1000
+ if (b.key === "ArrowDown") {
1001
+ b.preventDefault(), (ge = X[(_e + 1 + X.length) % X.length]) == null || ge.focus();
993
1002
  return;
994
1003
  }
995
- if ($.key === "ArrowUp") {
996
- $.preventDefault(), (be = Y[(_e - 1 + Y.length) % Y.length]) == null || be.focus();
1004
+ if (b.key === "ArrowUp") {
1005
+ b.preventDefault(), (be = X[(_e - 1 + X.length) % X.length]) == null || be.focus();
997
1006
  return;
998
1007
  }
999
- if ($.key === "Home") {
1000
- $.preventDefault(), ($e = Y[0]) == null || $e.focus();
1008
+ if (b.key === "Home") {
1009
+ b.preventDefault(), ($e = X[0]) == null || $e.focus();
1001
1010
  return;
1002
1011
  }
1003
- $.key === "End" && ($.preventDefault(), (ke = Y[Y.length - 1]) == null || ke.focus());
1012
+ b.key === "End" && (b.preventDefault(), (ke = X[X.length - 1]) == null || ke.focus());
1004
1013
  }
1005
1014
  function ie() {
1006
1015
  e.closeOnSelect && M();
@@ -1015,48 +1024,48 @@ const tt = {
1015
1024
  event: "click"
1016
1025
  }
1017
1026
  ), fe(
1018
- ($) => {
1019
- w.value && ($.preventDefault(), M());
1027
+ (b) => {
1028
+ w.value && (b.preventDefault(), M());
1020
1029
  },
1021
1030
  {
1022
1031
  enabled: w
1023
1032
  }
1024
- ), ($, Y) => (c(), m("div", Bt, [
1033
+ ), (b, X) => (d(), _("div", Et, [
1025
1034
  T("div", {
1026
- id: h(g),
1035
+ id: p(y),
1027
1036
  ref_key: "triggerRef",
1028
1037
  ref: l,
1029
1038
  class: "vf-dropdown__trigger",
1030
- "aria-controls": h(p),
1031
- "aria-expanded": h(w),
1039
+ "aria-controls": p(v),
1040
+ "aria-expanded": p(w),
1032
1041
  "aria-haspopup": "menu",
1033
1042
  tabindex: "0",
1034
- onClick: x,
1043
+ onClick: V,
1035
1044
  onKeydown: k
1036
1045
  }, [
1037
- B($.$slots, "trigger", {
1038
- open: h(w),
1039
- toggle: x
1046
+ B(b.$slots, "trigger", {
1047
+ open: p(w),
1048
+ toggle: V
1040
1049
  })
1041
- ], 40, Et),
1042
- (c(), q(le, {
1043
- to: E.value,
1044
- disabled: v.value
1050
+ ], 40, Ot),
1051
+ (d(), q(le, {
1052
+ to: C.value,
1053
+ disabled: m.value
1045
1054
  }, [
1046
1055
  j(ne, {
1047
1056
  name: "vf-floating-transition",
1048
1057
  appear: "",
1049
- duration: b
1058
+ duration: g
1050
1059
  }, {
1051
- default: Q(() => [
1052
- h(w) ? (c(), m("div", {
1060
+ default: G(() => [
1061
+ p(w) ? (d(), _("div", {
1053
1062
  key: 0,
1054
- id: h(p),
1063
+ id: p(v),
1055
1064
  ref_key: "menuRef",
1056
1065
  ref: r,
1057
- class: P(I.value),
1058
- style: W(h(f)),
1059
- "aria-labelledby": h(g),
1066
+ class: P(S.value),
1067
+ style: W(p(c)),
1068
+ "aria-labelledby": p(y),
1060
1069
  role: "menu",
1061
1070
  onClick: ie,
1062
1071
  onKeydown: J
@@ -1064,22 +1073,22 @@ const tt = {
1064
1073
  T("span", {
1065
1074
  ref_key: "arrowRef",
1066
1075
  ref: u,
1067
- class: P(d.value),
1076
+ class: P($.value),
1068
1077
  style: W(z.value),
1069
1078
  "aria-hidden": "true"
1070
1079
  }, null, 6),
1071
- B($.$slots, "default", {
1080
+ B(b.$slots, "default", {
1072
1081
  close: M,
1073
- open: h(w)
1082
+ open: p(w)
1074
1083
  })
1075
- ], 46, Ot)) : O("", !0)
1084
+ ], 46, At)) : O("", !0)
1076
1085
  ]),
1077
1086
  _: 3
1078
1087
  })
1079
1088
  ], 8, ["to", "disabled"]))
1080
1089
  ]));
1081
1090
  }
1082
- }), Dt = ["value", "aria-invalid"], In = /* @__PURE__ */ L({
1091
+ }), Dt = ["value", "aria-invalid"], zn = /* @__PURE__ */ L({
1083
1092
  inheritAttrs: !1,
1084
1093
  __name: "VfInput",
1085
1094
  props: {
@@ -1090,22 +1099,22 @@ const tt = {
1090
1099
  emits: ["update:modelValue"],
1091
1100
  setup(t, { emit: n }) {
1092
1101
  const e = t, i = n, l = R(), r = s(
1093
- () => N(
1102
+ () => F(
1094
1103
  "vf-input",
1095
1104
  e.size !== "md" && `vf-input--${e.size}`,
1096
1105
  e.invalid && "vf-input--invalid"
1097
1106
  )
1098
1107
  );
1099
- function u(p) {
1100
- i("update:modelValue", p.target.value);
1108
+ function u(v) {
1109
+ i("update:modelValue", v.target.value);
1101
1110
  }
1102
- return (p, g) => (c(), m("input", H({
1111
+ return (v, y) => (d(), _("input", H({
1103
1112
  class: r.value,
1104
1113
  value: e.modelValue,
1105
1114
  "aria-invalid": e.invalid || void 0
1106
- }, h(l), { onInput: u }), null, 16, Dt));
1115
+ }, p(l), { onInput: u }), null, 16, Dt));
1107
1116
  }
1108
- }), Ln = /* @__PURE__ */ L({
1117
+ }), Mn = /* @__PURE__ */ L({
1109
1118
  inheritAttrs: !1,
1110
1119
  __name: "VfLink",
1111
1120
  props: {
@@ -1119,12 +1128,12 @@ const tt = {
1119
1128
  },
1120
1129
  setup(t) {
1121
1130
  const n = t, e = R(), i = s(() => n.to !== void 0), l = s(() => i.value ? n.component ?? re("RouterLink") : "a"), r = s(() => n.rel ? n.rel : n.target === "_blank" ? "noopener noreferrer" : void 0), u = s(
1122
- () => N(
1131
+ () => F(
1123
1132
  "vf-link",
1124
1133
  n.underline && "vf-link--underline",
1125
1134
  n.tone === "muted" && "vf-link--muted"
1126
1135
  )
1127
- ), p = s(() => i.value ? {
1136
+ ), v = s(() => i.value ? {
1128
1137
  to: n.to,
1129
1138
  target: n.target,
1130
1139
  rel: r.value
@@ -1132,34 +1141,34 @@ const tt = {
1132
1141
  href: n.href,
1133
1142
  target: n.target,
1134
1143
  rel: r.value
1135
- }), g = s(() => ({
1144
+ }), y = s(() => ({
1136
1145
  ...e,
1137
- ...p.value,
1146
+ ...v.value,
1138
1147
  class: u.value
1139
1148
  }));
1140
- return (b, v) => (c(), q(re(l.value), Ve(xe(g.value)), {
1141
- default: Q(() => [
1142
- B(b.$slots, "default")
1149
+ return (g, m) => (d(), q(re(l.value), Ve(Ce(y.value)), {
1150
+ default: G(() => [
1151
+ B(g.$slots, "default")
1143
1152
  ]),
1144
1153
  _: 3
1145
1154
  }, 16));
1146
1155
  }
1147
- }), At = { class: "vf-nav-menu__node" }, It = { class: "vf-nav-menu__item-content" }, Lt = { class: "vf-nav-menu__group-label" }, St = ["aria-expanded", "disabled"], zt = { class: "vf-nav-menu__item-content" }, Mt = {
1156
+ }), It = { class: "vf-nav-menu__node" }, Lt = { class: "vf-nav-menu__item-content" }, St = { class: "vf-nav-menu__group-label" }, zt = ["aria-expanded", "disabled"], Mt = { class: "vf-nav-menu__item-content" }, Pt = {
1148
1157
  key: 0,
1149
1158
  class: "vf-nav-menu__leading-icon",
1150
1159
  "aria-hidden": "true"
1151
- }, Pt = { class: "vf-nav-menu__label" }, Nt = { class: "vf-nav-menu__item-content" }, Ft = {
1160
+ }, Nt = { class: "vf-nav-menu__label" }, Ft = { class: "vf-nav-menu__item-content" }, Rt = {
1152
1161
  key: 0,
1153
1162
  class: "vf-nav-menu__leading-icon",
1154
1163
  "aria-hidden": "true"
1155
- }, Rt = { class: "vf-nav-menu__label" }, Ht = ["aria-current", "disabled"], Kt = { class: "vf-nav-menu__item-content" }, jt = {
1164
+ }, Ht = { class: "vf-nav-menu__label" }, Kt = ["aria-current", "disabled"], jt = { class: "vf-nav-menu__item-content" }, qt = {
1156
1165
  key: 0,
1157
1166
  class: "vf-nav-menu__leading-icon",
1158
1167
  "aria-hidden": "true"
1159
- }, qt = { class: "vf-nav-menu__label" }, Wt = {
1168
+ }, Ut = { class: "vf-nav-menu__label" }, Wt = {
1160
1169
  key: 4,
1161
1170
  class: "vf-nav-menu__list vf-nav-menu__list--nested"
1162
- }, Ut = { class: "vf-nav-menu__list vf-nav-menu__list--nested" }, Yt = /* @__PURE__ */ L({
1171
+ }, Yt = { class: "vf-nav-menu__list vf-nav-menu__list--nested" }, Xt = /* @__PURE__ */ L({
1163
1172
  name: "VfNavMenuItemNode",
1164
1173
  __name: "VfNavMenuItemNode",
1165
1174
  props: {
@@ -1172,78 +1181,78 @@ const tt = {
1172
1181
  emits: ["toggle", "select"],
1173
1182
  setup(t, { emit: n }) {
1174
1183
  const e = t, i = n, l = s(() => {
1175
- var f;
1176
- return !!((f = e.item.children) != null && f.length);
1184
+ var c;
1185
+ return !!((c = e.item.children) != null && c.length);
1177
1186
  }), r = s(() => e.item.kind === "group"), u = s(
1178
1187
  () => e.expandedValues.includes(e.item.value)
1179
- ), p = s(() => e.activeValue === e.item.value), g = s(
1188
+ ), v = s(() => e.activeValue === e.item.value), y = s(
1180
1189
  () => e.item.href !== void 0 || e.item.to !== void 0
1181
- ), b = s(() => e.item.to !== void 0 ? re("RouterLink") : "a"), v = s(() => e.item.rel ? e.item.rel : e.item.target === "_blank" ? "noopener noreferrer" : void 0), E = s(() => e.item.to !== void 0 ? {
1190
+ ), g = s(() => e.item.to !== void 0 ? re("RouterLink") : "a"), m = s(() => e.item.rel ? e.item.rel : e.item.target === "_blank" ? "noopener noreferrer" : void 0), C = s(() => e.item.to !== void 0 ? {
1182
1191
  to: e.item.to,
1183
1192
  target: e.item.target,
1184
- rel: v.value
1193
+ rel: m.value
1185
1194
  } : {
1186
1195
  href: e.item.href,
1187
1196
  target: e.item.target,
1188
- rel: v.value
1197
+ rel: m.value
1189
1198
  });
1190
- function V() {
1199
+ function x() {
1191
1200
  e.item.disabled || i("toggle", {
1192
1201
  value: e.item.value,
1193
1202
  parentPath: e.parentPath
1194
1203
  });
1195
1204
  }
1196
- function w(f) {
1205
+ function w(c) {
1197
1206
  if (e.item.disabled) {
1198
- f == null || f.preventDefault();
1207
+ c == null || c.preventDefault();
1199
1208
  return;
1200
1209
  }
1201
1210
  i("select", e.item);
1202
1211
  }
1203
- function I(f) {
1204
- const a = f;
1205
- return a.style.transition = "height var(--vf-motion-duration-normal) var(--vf-motion-ease-standard), opacity var(--vf-motion-duration-normal) var(--vf-motion-ease-standard)", a;
1212
+ function S(c) {
1213
+ const o = c;
1214
+ return o.style.transition = "height var(--vf-motion-duration-normal) var(--vf-motion-ease-standard), opacity var(--vf-motion-duration-normal) var(--vf-motion-ease-standard)", o;
1206
1215
  }
1207
- function S(f) {
1208
- const a = I(f);
1209
- a.style.overflow = "hidden", a.style.height = "0", a.style.opacity = "0";
1216
+ function I(c) {
1217
+ const o = S(c);
1218
+ o.style.overflow = "hidden", o.style.height = "0", o.style.opacity = "0";
1210
1219
  }
1211
- function z(f) {
1212
- const a = I(f);
1220
+ function z(c) {
1221
+ const o = S(c);
1213
1222
  requestAnimationFrame(() => {
1214
- a.style.height = `${a.scrollHeight}px`, a.style.opacity = "1";
1223
+ o.style.height = `${o.scrollHeight}px`, o.style.opacity = "1";
1215
1224
  });
1216
1225
  }
1217
- function d(f) {
1218
- const a = f;
1219
- a.style.transition = "", a.style.overflow = "", a.style.height = "", a.style.opacity = "";
1226
+ function $(c) {
1227
+ const o = c;
1228
+ o.style.transition = "", o.style.overflow = "", o.style.height = "", o.style.opacity = "";
1220
1229
  }
1221
- function _(f) {
1222
- const a = I(f);
1223
- a.style.overflow = "hidden", a.style.height = `${a.scrollHeight}px`, a.style.opacity = "1";
1230
+ function f(c) {
1231
+ const o = S(c);
1232
+ o.style.overflow = "hidden", o.style.height = `${o.scrollHeight}px`, o.style.opacity = "1";
1224
1233
  }
1225
- function o(f) {
1226
- const a = f;
1227
- a.offsetHeight, requestAnimationFrame(() => {
1228
- a.style.height = "0", a.style.opacity = "0";
1234
+ function a(c) {
1235
+ const o = c;
1236
+ o.offsetHeight, requestAnimationFrame(() => {
1237
+ o.style.height = "0", o.style.opacity = "0";
1229
1238
  });
1230
1239
  }
1231
- function y(f) {
1232
- const a = f;
1233
- a.style.transition = "", a.style.overflow = "", a.style.height = "", a.style.opacity = "";
1240
+ function h(c) {
1241
+ const o = c;
1242
+ o.style.transition = "", o.style.overflow = "", o.style.height = "", o.style.opacity = "";
1234
1243
  }
1235
- return (f, a) => {
1236
- const C = He("VfNavMenuItemNode", !0);
1237
- return c(), m("li", At, [
1238
- r.value ? (c(), m("div", {
1244
+ return (c, o) => {
1245
+ const E = He("VfNavMenuItemNode", !0);
1246
+ return d(), _("li", It, [
1247
+ r.value ? (d(), _("div", {
1239
1248
  key: 0,
1240
1249
  class: P(["vf-nav-menu__group", `vf-nav-menu__group--level-${t.level}`]),
1241
1250
  style: W({ "--vf-nav-menu-level": String(t.level) })
1242
1251
  }, [
1243
- T("span", It, [
1244
- T("span", Lt, F(t.item.label), 1)
1252
+ T("span", Lt, [
1253
+ T("span", St, N(t.item.label), 1)
1245
1254
  ])
1246
- ], 6)) : l.value ? (c(), m("button", {
1255
+ ], 6)) : l.value ? (d(), _("button", {
1247
1256
  key: 1,
1248
1257
  class: P([
1249
1258
  "vf-nav-menu__item",
@@ -1254,109 +1263,109 @@ const tt = {
1254
1263
  "aria-expanded": u.value,
1255
1264
  disabled: t.item.disabled,
1256
1265
  type: "button",
1257
- onClick: V
1266
+ onClick: x
1258
1267
  }, [
1259
- T("span", zt, [
1260
- t.item.leadingIcon ? (c(), m("span", Mt, [
1261
- j(h(te), {
1268
+ T("span", Mt, [
1269
+ t.item.leadingIcon ? (d(), _("span", Pt, [
1270
+ j(p(Z), {
1262
1271
  icon: t.item.leadingIcon,
1263
1272
  size: "1rem"
1264
1273
  }, null, 8, ["icon"])
1265
1274
  ])) : O("", !0),
1266
- T("span", Pt, F(t.item.label), 1)
1275
+ T("span", Nt, N(t.item.label), 1)
1267
1276
  ]),
1268
1277
  T("span", {
1269
1278
  class: P(["vf-nav-menu__icon", u.value && "vf-nav-menu__icon--open"]),
1270
1279
  "aria-hidden": "true"
1271
1280
  }, [
1272
- j(h(te), {
1273
- icon: h(X).chevronDown,
1281
+ j(p(Z), {
1282
+ icon: p(U).chevronDown,
1274
1283
  size: "0.875rem"
1275
1284
  }, null, 8, ["icon"])
1276
1285
  ], 2)
1277
- ], 14, St)) : g.value ? (c(), q(re(b.value), H({ key: 2 }, E.value, {
1286
+ ], 14, zt)) : y.value ? (d(), q(re(g.value), H({ key: 2 }, C.value, {
1278
1287
  class: [
1279
1288
  "vf-nav-menu__item",
1280
- p.value && "vf-nav-menu__item--active",
1289
+ v.value && "vf-nav-menu__item--active",
1281
1290
  t.item.disabled && "vf-nav-menu__item--disabled"
1282
1291
  ],
1283
1292
  style: { "--vf-nav-menu-level": String(t.level) },
1284
- "aria-current": p.value ? "page" : void 0,
1293
+ "aria-current": v.value ? "page" : void 0,
1285
1294
  onClick: w
1286
1295
  }), {
1287
- default: Q(() => [
1288
- T("span", Nt, [
1289
- t.item.leadingIcon ? (c(), m("span", Ft, [
1290
- j(h(te), {
1296
+ default: G(() => [
1297
+ T("span", Ft, [
1298
+ t.item.leadingIcon ? (d(), _("span", Rt, [
1299
+ j(p(Z), {
1291
1300
  icon: t.item.leadingIcon,
1292
1301
  size: "1rem"
1293
1302
  }, null, 8, ["icon"])
1294
1303
  ])) : O("", !0),
1295
- T("span", Rt, F(t.item.label), 1)
1304
+ T("span", Ht, N(t.item.label), 1)
1296
1305
  ])
1297
1306
  ]),
1298
1307
  _: 1
1299
- }, 16, ["class", "style", "aria-current"])) : (c(), m("button", {
1308
+ }, 16, ["class", "style", "aria-current"])) : (d(), _("button", {
1300
1309
  key: 3,
1301
1310
  class: P([
1302
1311
  "vf-nav-menu__item",
1303
- p.value && "vf-nav-menu__item--active",
1312
+ v.value && "vf-nav-menu__item--active",
1304
1313
  t.item.disabled && "vf-nav-menu__item--disabled"
1305
1314
  ]),
1306
1315
  style: W({ "--vf-nav-menu-level": String(t.level) }),
1307
- "aria-current": p.value ? "page" : void 0,
1316
+ "aria-current": v.value ? "page" : void 0,
1308
1317
  disabled: t.item.disabled,
1309
1318
  type: "button",
1310
- onClick: a[0] || (a[0] = (D) => w())
1319
+ onClick: o[0] || (o[0] = (A) => w())
1311
1320
  }, [
1312
- T("span", Kt, [
1313
- t.item.leadingIcon ? (c(), m("span", jt, [
1314
- j(h(te), {
1321
+ T("span", jt, [
1322
+ t.item.leadingIcon ? (d(), _("span", qt, [
1323
+ j(p(Z), {
1315
1324
  icon: t.item.leadingIcon,
1316
1325
  size: "1rem"
1317
1326
  }, null, 8, ["icon"])
1318
1327
  ])) : O("", !0),
1319
- T("span", qt, F(t.item.label), 1)
1328
+ T("span", Ut, N(t.item.label), 1)
1320
1329
  ])
1321
- ], 14, Ht)),
1322
- l.value && r.value ? (c(), m("ul", Wt, [
1323
- (c(!0), m(ue, null, ce(t.item.children, (D) => (c(), q(C, {
1324
- key: D.value,
1325
- item: D,
1330
+ ], 14, Kt)),
1331
+ l.value && r.value ? (d(), _("ul", Wt, [
1332
+ (d(!0), _(ue, null, de(t.item.children, (A) => (d(), q(E, {
1333
+ key: A.value,
1334
+ item: A,
1326
1335
  level: t.level + 1,
1327
1336
  "parent-path": [...t.parentPath, t.item.value],
1328
1337
  "active-value": t.activeValue,
1329
1338
  "expanded-values": t.expandedValues,
1330
- onToggle: a[1] || (a[1] = (M) => i("toggle", M)),
1331
- onSelect: a[2] || (a[2] = (M) => i("select", M))
1339
+ onToggle: o[1] || (o[1] = (M) => i("toggle", M)),
1340
+ onSelect: o[2] || (o[2] = (M) => i("select", M))
1332
1341
  }, null, 8, ["item", "level", "parent-path", "active-value", "expanded-values"]))), 128))
1333
- ])) : l.value ? (c(), q(ne, {
1342
+ ])) : l.value ? (d(), q(ne, {
1334
1343
  key: 5,
1335
- onBeforeEnter: S,
1344
+ onBeforeEnter: I,
1336
1345
  onEnter: z,
1337
- onAfterEnter: d,
1338
- onBeforeLeave: _,
1339
- onLeave: o,
1340
- onAfterLeave: y
1346
+ onAfterEnter: $,
1347
+ onBeforeLeave: f,
1348
+ onLeave: a,
1349
+ onAfterLeave: h
1341
1350
  }, {
1342
- default: Q(() => [
1343
- u.value ? (c(), m("div", {
1351
+ default: G(() => [
1352
+ u.value ? (d(), _("div", {
1344
1353
  key: 0,
1345
1354
  class: P([
1346
1355
  "vf-nav-menu__collapse",
1347
1356
  `vf-nav-menu__collapse--level-${t.level}`
1348
1357
  ])
1349
1358
  }, [
1350
- T("ul", Ut, [
1351
- (c(!0), m(ue, null, ce(t.item.children, (D) => (c(), q(C, {
1352
- key: D.value,
1353
- item: D,
1359
+ T("ul", Yt, [
1360
+ (d(!0), _(ue, null, de(t.item.children, (A) => (d(), q(E, {
1361
+ key: A.value,
1362
+ item: A,
1354
1363
  level: t.level + 1,
1355
1364
  "parent-path": [...t.parentPath, t.item.value],
1356
1365
  "active-value": t.activeValue,
1357
1366
  "expanded-values": t.expandedValues,
1358
- onToggle: a[3] || (a[3] = (M) => i("toggle", M)),
1359
- onSelect: a[4] || (a[4] = (M) => i("select", M))
1367
+ onToggle: o[3] || (o[3] = (M) => i("toggle", M)),
1368
+ onSelect: o[4] || (o[4] = (M) => i("select", M))
1360
1369
  }, null, 8, ["item", "level", "parent-path", "active-value", "expanded-values"]))), 128))
1361
1370
  ])
1362
1371
  ], 2)) : O("", !0)
@@ -1366,7 +1375,7 @@ const tt = {
1366
1375
  ]);
1367
1376
  };
1368
1377
  }
1369
- }), Xt = ["aria-label"], Gt = { class: "vf-nav-menu__list" }, Sn = /* @__PURE__ */ L({
1378
+ }), Gt = ["aria-label"], Qt = { class: "vf-nav-menu__list" }, Pn = /* @__PURE__ */ L({
1370
1379
  __name: "VfNavMenu",
1371
1380
  props: {
1372
1381
  items: {},
@@ -1377,114 +1386,114 @@ const tt = {
1377
1386
  },
1378
1387
  emits: ["update:modelValue", "change", "select"],
1379
1388
  setup(t, { emit: n }) {
1380
- const e = t, i = n, l = A(e.defaultValue), r = s(() => e.modelValue ?? l.value), u = A([]);
1381
- function p(o, y) {
1382
- return o.some(
1383
- (f) => {
1384
- var a;
1385
- return y(f) || ((a = f.children) != null && a.length ? p(f.children, y) : !1);
1389
+ const e = t, i = n, l = D(e.defaultValue), r = s(() => e.modelValue ?? l.value), u = D([]);
1390
+ function v(a, h) {
1391
+ return a.some(
1392
+ (c) => {
1393
+ var o;
1394
+ return h(c) || ((o = c.children) != null && o.length ? v(c.children, h) : !1);
1386
1395
  }
1387
1396
  );
1388
1397
  }
1389
- const g = s(
1390
- () => p(e.items, (o) => o.kind === "group")
1391
- ), b = s(
1392
- () => p(e.items, (o) => !!o.leadingIcon)
1393
- ), v = s(() => !g.value && !b.value);
1394
- function E(o) {
1395
- var y;
1396
- return o.kind !== "group" && !!((y = o.children) != null && y.length);
1398
+ const y = s(
1399
+ () => v(e.items, (a) => a.kind === "group")
1400
+ ), g = s(
1401
+ () => v(e.items, (a) => !!a.leadingIcon)
1402
+ ), m = s(() => !y.value && !g.value);
1403
+ function C(a) {
1404
+ var h;
1405
+ return a.kind !== "group" && !!((h = a.children) != null && h.length);
1397
1406
  }
1398
- function V(o, y, f = []) {
1399
- var a;
1400
- if (!y)
1407
+ function x(a, h, c = []) {
1408
+ var o;
1409
+ if (!h)
1401
1410
  return [];
1402
- for (const C of o) {
1403
- if (C.value === y)
1404
- return f;
1405
- if ((a = C.children) != null && a.length) {
1406
- const D = V(C.children, y, [
1407
- ...f,
1408
- C.value
1411
+ for (const E of a) {
1412
+ if (E.value === h)
1413
+ return c;
1414
+ if ((o = E.children) != null && o.length) {
1415
+ const A = x(E.children, h, [
1416
+ ...c,
1417
+ E.value
1409
1418
  ]);
1410
- if (D.length)
1411
- return D;
1419
+ if (A.length)
1420
+ return A;
1412
1421
  }
1413
1422
  }
1414
1423
  return [];
1415
1424
  }
1416
1425
  function w() {
1417
- const o = V(e.items, r.value);
1426
+ const a = x(e.items, r.value);
1418
1427
  u.value = Array.from(
1419
- /* @__PURE__ */ new Set([...u.value, ...o])
1428
+ /* @__PURE__ */ new Set([...u.value, ...a])
1420
1429
  );
1421
1430
  }
1422
- function I(o, y) {
1423
- var D;
1424
- if (!y.length)
1425
- return o;
1426
- const [f, ...a] = y, C = o.find((M) => M.value === f);
1427
- return (D = C == null ? void 0 : C.children) != null && D.length ? I(C.children, a) : [];
1428
- }
1429
- function S(o) {
1430
- return o.flatMap((y) => {
1431
- var a;
1432
- const f = (a = y.children) != null && a.length ? S(y.children) : [];
1433
- return E(y) ? [y.value, ...f] : f;
1431
+ function S(a, h) {
1432
+ var A;
1433
+ if (!h.length)
1434
+ return a;
1435
+ const [c, ...o] = h, E = a.find((M) => M.value === c);
1436
+ return (A = E == null ? void 0 : E.children) != null && A.length ? S(E.children, o) : [];
1437
+ }
1438
+ function I(a) {
1439
+ return a.flatMap((h) => {
1440
+ var o;
1441
+ const c = (o = h.children) != null && o.length ? I(h.children) : [];
1442
+ return C(h) ? [h.value, ...c] : c;
1434
1443
  });
1435
1444
  }
1436
- function z(o) {
1437
- e.modelValue === void 0 && (l.value = o), i("update:modelValue", o), i("change", o);
1445
+ function z(a) {
1446
+ e.modelValue === void 0 && (l.value = a), i("update:modelValue", a), i("change", a);
1438
1447
  }
1439
- function d(o) {
1440
- z(o.value), u.value = Array.from(
1448
+ function $(a) {
1449
+ z(a.value), u.value = Array.from(
1441
1450
  /* @__PURE__ */ new Set([
1442
1451
  ...u.value,
1443
- ...V(e.items, o.value)
1452
+ ...x(e.items, a.value)
1444
1453
  ])
1445
- ), i("select", o);
1454
+ ), i("select", a);
1446
1455
  }
1447
- function _(o) {
1448
- const { value: y, parentPath: f } = o;
1449
- if (u.value.includes(y)) {
1456
+ function f(a) {
1457
+ const { value: h, parentPath: c } = a;
1458
+ if (u.value.includes(h)) {
1450
1459
  u.value = u.value.filter(
1451
- (a) => a !== y
1460
+ (o) => o !== h
1452
1461
  );
1453
1462
  return;
1454
1463
  }
1455
1464
  if (e.expandMode === "single") {
1456
- const C = I(e.items, f).filter((D) => D.value !== y && E(D)).flatMap((D) => S([D]));
1465
+ const E = S(e.items, c).filter((A) => A.value !== h && C(A)).flatMap((A) => I([A]));
1457
1466
  u.value = u.value.filter(
1458
- (D) => !C.includes(D)
1467
+ (A) => !E.includes(A)
1459
1468
  );
1460
1469
  }
1461
- u.value = [...u.value, y];
1470
+ u.value = [...u.value, h];
1462
1471
  }
1463
- return Z(
1472
+ return ee(
1464
1473
  () => [e.items, r.value],
1465
1474
  () => {
1466
1475
  w();
1467
1476
  },
1468
1477
  { immediate: !0, deep: !0 }
1469
- ), (o, y) => (c(), m("nav", {
1470
- class: P(["vf-nav-menu", v.value && "vf-nav-menu--simple"]),
1478
+ ), (a, h) => (d(), _("nav", {
1479
+ class: P(["vf-nav-menu", m.value && "vf-nav-menu--simple"]),
1471
1480
  "aria-label": t.ariaLabel
1472
1481
  }, [
1473
- T("ul", Gt, [
1474
- (c(!0), m(ue, null, ce(t.items, (f) => (c(), q(Yt, {
1475
- key: f.value,
1476
- item: f,
1482
+ T("ul", Qt, [
1483
+ (d(!0), _(ue, null, de(t.items, (c) => (d(), q(Xt, {
1484
+ key: c.value,
1485
+ item: c,
1477
1486
  level: 0,
1478
1487
  "parent-path": [],
1479
1488
  "active-value": r.value,
1480
1489
  "expanded-values": u.value,
1481
- onToggle: _,
1482
- onSelect: d
1490
+ onToggle: f,
1491
+ onSelect: $
1483
1492
  }, null, 8, ["item", "active-value", "expanded-values"]))), 128))
1484
1493
  ])
1485
- ], 10, Xt));
1494
+ ], 10, Gt));
1486
1495
  }
1487
- }), Qt = { key: 0 }, Jt = { class: "vf-panel__title" }, zn = /* @__PURE__ */ L({
1496
+ }), Jt = { key: 0 }, Zt = { class: "vf-panel__title" }, Nn = /* @__PURE__ */ L({
1488
1497
  inheritAttrs: !1,
1489
1498
  __name: "VfPanel",
1490
1499
  props: {
@@ -1493,18 +1502,18 @@ const tt = {
1493
1502
  },
1494
1503
  setup(t) {
1495
1504
  const n = t, e = R(), i = s(
1496
- () => N("vf-panel", n.subtle && "vf-panel--subtle")
1505
+ () => F("vf-panel", n.subtle && "vf-panel--subtle")
1497
1506
  );
1498
- return (l, r) => (c(), m("section", H({ class: i.value }, h(e)), [
1499
- n.title || l.$slots.header ? (c(), m("header", Qt, [
1507
+ return (l, r) => (d(), _("section", H({ class: i.value }, p(e)), [
1508
+ n.title || l.$slots.header ? (d(), _("header", Jt, [
1500
1509
  B(l.$slots, "header", {}, () => [
1501
- T("h3", Jt, F(n.title), 1)
1510
+ T("h3", Zt, N(n.title), 1)
1502
1511
  ])
1503
1512
  ])) : O("", !0),
1504
1513
  B(l.$slots, "default")
1505
1514
  ], 16));
1506
1515
  }
1507
- }), Zt = { class: "vf-popover" }, en = ["id", "aria-controls", "aria-expanded"], tn = ["id", "aria-labelledby"], Mn = /* @__PURE__ */ L({
1516
+ }), en = { class: "vf-popover" }, tn = ["id", "aria-controls", "aria-expanded"], nn = ["id", "aria-labelledby"], Fn = /* @__PURE__ */ L({
1508
1517
  __name: "VfPopover",
1509
1518
  props: {
1510
1519
  open: { type: Boolean, default: void 0 },
@@ -1517,54 +1526,54 @@ const tt = {
1517
1526
  },
1518
1527
  emits: ["update:open", "openChange"],
1519
1528
  setup(t, { emit: n }) {
1520
- const e = t, i = n, l = A(null), r = A(null), u = A(null), p = G({ prefix: "vf-popover-content" }), g = G({ prefix: "vf-popover-trigger" }), b = {
1521
- enter: U.fast,
1522
- leave: U.fast
1523
- }, v = s(
1529
+ const e = t, i = n, l = D(null), r = D(null), u = D(null), v = Q({ prefix: "vf-popover-content" }), y = Q({ prefix: "vf-popover-trigger" }), g = {
1530
+ enter: Y.fast,
1531
+ leave: Y.fast
1532
+ }, m = s(
1524
1533
  () => e.disableTeleport || e.teleportTo === !1 || e.teleportTo === null
1525
- ), E = s(() => typeof e.teleportTo == "string" || typeof HTMLElement < "u" && e.teleportTo instanceof HTMLElement ? e.teleportTo : "body"), V = se({
1534
+ ), C = s(() => typeof e.teleportTo == "string" || typeof HTMLElement < "u" && e.teleportTo instanceof HTMLElement ? e.teleportTo : "body"), x = se({
1526
1535
  defaultOpen: e.defaultOpen,
1527
1536
  open: s(() => e.open),
1528
1537
  onOpenChange: (k) => {
1529
1538
  i("update:open", k), i("openChange", k);
1530
1539
  }
1531
- }), w = V.isOpen, I = s(
1540
+ }), w = x.isOpen, S = s(
1532
1541
  () => e.placement === "bottom-end" ? ["bottom-end", "top-end"] : ["bottom-start", "top-start"]
1533
1542
  ), {
1534
- placement: S,
1543
+ placement: I,
1535
1544
  middlewareData: z,
1536
- styles: d
1545
+ styles: $
1537
1546
  } = ye(l, r, {
1538
1547
  enabled: w,
1539
1548
  placement: s(() => e.placement),
1540
1549
  middleware: s(
1541
1550
  () => [
1542
1551
  ve(10),
1543
- pe({ placements: I.value }),
1552
+ pe({ placements: S.value }),
1544
1553
  me(),
1545
1554
  u.value ? he(u.value) : void 0
1546
1555
  ].filter((k) => k !== void 0)
1547
1556
  ),
1548
1557
  strategy: "fixed"
1549
- }), _ = s(() => [
1558
+ }), f = s(() => [
1550
1559
  "vf-popover__content",
1551
- S.value.startsWith("top") && "vf-popover__content--top"
1552
- ]), o = s(() => {
1560
+ I.value.startsWith("top") && "vf-popover__content--top"
1561
+ ]), a = s(() => {
1553
1562
  const k = z.value.arrow;
1554
1563
  return {
1555
1564
  x: (k == null ? void 0 : k.x) !== void 0 && (k == null ? void 0 : k.baseX) !== void 0 ? k.x - k.baseX : 0,
1556
1565
  y: (k == null ? void 0 : k.y) !== void 0 && (k == null ? void 0 : k.baseY) !== void 0 ? k.y - k.baseY : 0
1557
1566
  };
1558
- }), y = s(() => ({
1559
- left: `${o.value.x}px`,
1560
- top: `${o.value.y}px`
1561
- })), f = s(() => [
1567
+ }), h = s(() => ({
1568
+ left: `${a.value.x}px`,
1569
+ top: `${a.value.y}px`
1570
+ })), c = s(() => [
1562
1571
  "vf-popover__arrow",
1563
- S.value.startsWith("top") ? "vf-popover__arrow--top" : "vf-popover__arrow--bottom"
1572
+ I.value.startsWith("top") ? "vf-popover__arrow--top" : "vf-popover__arrow--bottom"
1564
1573
  ]);
1565
- async function a() {
1574
+ async function o() {
1566
1575
  var J, ie;
1567
- await ae();
1576
+ await oe();
1568
1577
  const k = (J = r.value) == null ? void 0 : J.querySelector(
1569
1578
  "[autofocus], [data-autofocus]"
1570
1579
  );
@@ -1574,27 +1583,27 @@ const tt = {
1574
1583
  }
1575
1584
  (ie = r.value) == null || ie.focus();
1576
1585
  }
1577
- function C() {
1578
- V.open(), a();
1586
+ function E() {
1587
+ x.open(), o();
1579
1588
  }
1580
- function D() {
1589
+ function A() {
1581
1590
  var k;
1582
- V.close(), (k = l.value) == null || k.focus();
1591
+ x.close(), (k = l.value) == null || k.focus();
1583
1592
  }
1584
1593
  function M() {
1585
1594
  if (w.value) {
1586
- D();
1595
+ A();
1587
1596
  return;
1588
1597
  }
1589
- C();
1598
+ E();
1590
1599
  }
1591
- function x(k) {
1592
- (k.key === "Enter" || k.key === " ") && (k.preventDefault(), M()), k.key === "ArrowDown" && (k.preventDefault(), C());
1600
+ function V(k) {
1601
+ (k.key === "Enter" || k.key === " ") && (k.preventDefault(), M()), k.key === "ArrowDown" && (k.preventDefault(), E());
1593
1602
  }
1594
1603
  return Oe(
1595
1604
  [l, r],
1596
1605
  () => {
1597
- w.value && e.closeOnOutsideClick && D();
1606
+ w.value && e.closeOnOutsideClick && A();
1598
1607
  },
1599
1608
  {
1600
1609
  enabled: w,
@@ -1602,72 +1611,72 @@ const tt = {
1602
1611
  }
1603
1612
  ), fe(
1604
1613
  (k) => {
1605
- !w.value || !e.closeOnEscape || (k.preventDefault(), D());
1614
+ !w.value || !e.closeOnEscape || (k.preventDefault(), A());
1606
1615
  },
1607
1616
  {
1608
1617
  enabled: w
1609
1618
  }
1610
- ), (k, J) => (c(), m("div", Zt, [
1619
+ ), (k, J) => (d(), _("div", en, [
1611
1620
  T("div", {
1612
- id: h(g),
1621
+ id: p(y),
1613
1622
  ref_key: "triggerRef",
1614
1623
  ref: l,
1615
1624
  class: "vf-popover__trigger",
1616
- "aria-controls": h(p),
1617
- "aria-expanded": h(w),
1625
+ "aria-controls": p(v),
1626
+ "aria-expanded": p(w),
1618
1627
  "aria-haspopup": "dialog",
1619
1628
  tabindex: "0",
1620
1629
  onClick: M,
1621
- onKeydown: x
1630
+ onKeydown: V
1622
1631
  }, [
1623
1632
  B(k.$slots, "trigger", {
1624
- open: h(w),
1633
+ open: p(w),
1625
1634
  toggle: M
1626
1635
  })
1627
- ], 40, en),
1628
- (c(), q(le, {
1629
- to: E.value,
1630
- disabled: v.value
1636
+ ], 40, tn),
1637
+ (d(), q(le, {
1638
+ to: C.value,
1639
+ disabled: m.value
1631
1640
  }, [
1632
1641
  j(ne, {
1633
1642
  name: "vf-floating-transition",
1634
1643
  appear: "",
1635
- duration: b
1644
+ duration: g
1636
1645
  }, {
1637
- default: Q(() => [
1638
- h(w) ? (c(), m("section", {
1646
+ default: G(() => [
1647
+ p(w) ? (d(), _("section", {
1639
1648
  key: 0,
1640
- id: h(p),
1649
+ id: p(v),
1641
1650
  ref_key: "contentRef",
1642
1651
  ref: r,
1643
- class: P(_.value),
1644
- style: W(h(d)),
1645
- "aria-labelledby": h(g),
1652
+ class: P(f.value),
1653
+ style: W(p($)),
1654
+ "aria-labelledby": p(y),
1646
1655
  role: "dialog",
1647
1656
  tabindex: "-1"
1648
1657
  }, [
1649
1658
  T("span", {
1650
1659
  ref_key: "arrowRef",
1651
1660
  ref: u,
1652
- class: P(f.value),
1653
- style: W(y.value),
1661
+ class: P(c.value),
1662
+ style: W(h.value),
1654
1663
  "aria-hidden": "true"
1655
1664
  }, null, 6),
1656
1665
  B(k.$slots, "default", {
1657
- open: h(w),
1658
- close: D
1666
+ open: p(w),
1667
+ close: A
1659
1668
  })
1660
- ], 14, tn)) : O("", !0)
1669
+ ], 14, nn)) : O("", !0)
1661
1670
  ]),
1662
1671
  _: 3
1663
1672
  })
1664
1673
  ], 8, ["to", "disabled"]))
1665
1674
  ]));
1666
1675
  }
1667
- }), nn = ["checked", "disabled", "value", "aria-invalid"], an = {
1676
+ }), an = ["checked", "disabled", "value", "aria-invalid"], on = {
1668
1677
  key: 0,
1669
1678
  class: "vf-radio__content"
1670
- }, Pn = /* @__PURE__ */ L({
1679
+ }, Rn = /* @__PURE__ */ L({
1671
1680
  inheritAttrs: !1,
1672
1681
  __name: "VfRadio",
1673
1682
  props: {
@@ -1681,7 +1690,7 @@ const tt = {
1681
1690
  emits: ["update:modelValue", "change"],
1682
1691
  setup(t, { emit: n }) {
1683
1692
  const e = t, i = n, l = R(), r = s(() => e.modelValue === e.value), u = s(
1684
- () => N(
1693
+ () => F(
1685
1694
  "vf-radio",
1686
1695
  `vf-radio--${e.size}`,
1687
1696
  r.value && "vf-radio--checked",
@@ -1689,17 +1698,17 @@ const tt = {
1689
1698
  e.disabled && "vf-radio--disabled",
1690
1699
  l.class
1691
1700
  )
1692
- ), p = s(() => l.style), g = s(
1701
+ ), v = s(() => l.style), y = s(
1693
1702
  () => Object.fromEntries(
1694
- Object.entries(l).filter(([v]) => v !== "class" && v !== "style")
1703
+ Object.entries(l).filter(([m]) => m !== "class" && m !== "style")
1695
1704
  )
1696
1705
  );
1697
- function b(v) {
1698
- v.target.checked && (i("update:modelValue", e.value), i("change", e.value));
1706
+ function g(m) {
1707
+ m.target.checked && (i("update:modelValue", e.value), i("change", e.value));
1699
1708
  }
1700
- return (v, E) => (c(), m("label", {
1709
+ return (m, C) => (d(), _("label", {
1701
1710
  class: P(u.value),
1702
- style: W(p.value)
1711
+ style: W(v.value)
1703
1712
  }, [
1704
1713
  T("input", H({
1705
1714
  class: "vf-radio__input",
@@ -1708,24 +1717,27 @@ const tt = {
1708
1717
  disabled: e.disabled,
1709
1718
  value: e.value,
1710
1719
  "aria-invalid": e.invalid || void 0
1711
- }, g.value, { onChange: b }), null, 16, nn),
1712
- E[0] || (E[0] = T("span", {
1720
+ }, y.value, { onChange: g }), null, 16, an),
1721
+ C[0] || (C[0] = T("span", {
1713
1722
  class: "vf-radio__control",
1714
1723
  "aria-hidden": "true"
1715
1724
  }, [
1716
1725
  T("span", { class: "vf-radio__dot" })
1717
1726
  ], -1)),
1718
- t.label || v.$slots.default ? (c(), m("span", an, [
1719
- B(v.$slots, "default", {}, () => [
1720
- oe(F(t.label), 1)
1727
+ t.label || m.$slots.default ? (d(), _("span", on, [
1728
+ B(m.$slots, "default", {}, () => [
1729
+ ae(N(t.label), 1)
1721
1730
  ])
1722
1731
  ])) : O("", !0)
1723
1732
  ], 6));
1724
1733
  }
1725
- }), on = ["checked", "disabled"], ln = {
1734
+ }), ln = ["checked", "disabled"], sn = {
1735
+ class: "vf-switch__control",
1736
+ "aria-hidden": "true"
1737
+ }, rn = { class: "vf-switch__thumb" }, un = {
1726
1738
  key: 0,
1727
1739
  class: "vf-switch__content"
1728
- }, Nn = /* @__PURE__ */ L({
1740
+ }, dn = /* @__PURE__ */ L({
1729
1741
  inheritAttrs: !1,
1730
1742
  __name: "VfSwitch",
1731
1743
  props: {
@@ -1737,23 +1749,23 @@ const tt = {
1737
1749
  emits: ["update:modelValue", "change"],
1738
1750
  setup(t, { emit: n }) {
1739
1751
  const e = t, i = n, l = R(), r = s(
1740
- () => N(
1752
+ () => F(
1741
1753
  "vf-switch",
1742
1754
  `vf-switch--${e.size}`,
1743
1755
  e.modelValue && "vf-switch--checked",
1744
1756
  e.disabled && "vf-switch--disabled",
1745
1757
  l.class
1746
1758
  )
1747
- ), u = s(() => l.style), p = s(
1759
+ ), u = s(() => l.style), v = s(
1748
1760
  () => Object.fromEntries(
1749
- Object.entries(l).filter(([b]) => b !== "class" && b !== "style")
1761
+ Object.entries(l).filter(([g]) => g !== "class" && g !== "style")
1750
1762
  )
1751
1763
  );
1752
- function g(b) {
1753
- const v = b.target.checked;
1754
- i("update:modelValue", v), i("change", v);
1764
+ function y(g) {
1765
+ const m = g.target.checked;
1766
+ i("update:modelValue", m), i("change", m);
1755
1767
  }
1756
- return (b, v) => (c(), m("label", {
1768
+ return (g, m) => (d(), _("label", {
1757
1769
  class: P(r.value),
1758
1770
  style: W(u.value)
1759
1771
  }, [
@@ -1763,21 +1775,60 @@ const tt = {
1763
1775
  role: "switch",
1764
1776
  checked: e.modelValue,
1765
1777
  disabled: e.disabled
1766
- }, p.value, { onChange: g }), null, 16, on),
1767
- v[0] || (v[0] = T("span", {
1768
- class: "vf-switch__control",
1769
- "aria-hidden": "true"
1770
- }, [
1771
- T("span", { class: "vf-switch__thumb" })
1772
- ], -1)),
1773
- t.label || b.$slots.default ? (c(), m("span", ln, [
1774
- B(b.$slots, "default", {}, () => [
1775
- oe(F(t.label), 1)
1778
+ }, v.value, { onChange: y }), null, 16, ln),
1779
+ T("span", sn, [
1780
+ T("span", rn, [
1781
+ B(g.$slots, "thumb", {
1782
+ checked: e.modelValue
1783
+ })
1784
+ ])
1785
+ ]),
1786
+ t.label || g.$slots.default ? (d(), _("span", un, [
1787
+ B(g.$slots, "default", {}, () => [
1788
+ ae(N(t.label), 1)
1776
1789
  ])
1777
1790
  ])) : O("", !0)
1778
1791
  ], 6));
1779
1792
  }
1780
- }), Fn = /* @__PURE__ */ L({
1793
+ }), Hn = /* @__PURE__ */ L({
1794
+ inheritAttrs: !1,
1795
+ __name: "VfThemeSwitch",
1796
+ props: {
1797
+ size: { default: "md" },
1798
+ disabled: { type: Boolean, default: !1 },
1799
+ label: { default: void 0 }
1800
+ },
1801
+ setup(t) {
1802
+ const n = t, e = R(), { resolvedTheme: i, setTheme: l } = Qe(), r = s({
1803
+ get: () => i.value === "dark",
1804
+ set: (u) => {
1805
+ l(u ? "dark" : "light");
1806
+ }
1807
+ });
1808
+ return (u, v) => (d(), q(dn, H(p(e), {
1809
+ modelValue: r.value,
1810
+ "onUpdate:modelValue": v[0] || (v[0] = (y) => r.value = y),
1811
+ size: n.size,
1812
+ disabled: n.disabled,
1813
+ label: n.label
1814
+ }), {
1815
+ thumb: G(({ checked: y }) => [
1816
+ B(u.$slots, "thumb", { checked: y }, () => [
1817
+ j(p(Z), {
1818
+ icon: y ? p(U).moon : p(U).sun,
1819
+ size: "0.5rem"
1820
+ }, null, 8, ["icon"])
1821
+ ])
1822
+ ]),
1823
+ default: G(() => [
1824
+ u.$slots.default || n.label ? B(u.$slots, "default", { key: 0 }, () => [
1825
+ ae(N(n.label), 1)
1826
+ ]) : O("", !0)
1827
+ ]),
1828
+ _: 3
1829
+ }, 16, ["modelValue", "size", "disabled", "label"]));
1830
+ }
1831
+ }), Kn = /* @__PURE__ */ L({
1781
1832
  inheritAttrs: !1,
1782
1833
  __name: "VfTag",
1783
1834
  props: {
@@ -1785,17 +1836,17 @@ const tt = {
1785
1836
  },
1786
1837
  setup(t) {
1787
1838
  const n = t, e = R(), i = s(
1788
- () => N("vf-tag", n.tone !== "neutral" && `vf-tag--${n.tone}`)
1839
+ () => F("vf-tag", n.tone !== "neutral" && `vf-tag--${n.tone}`)
1789
1840
  );
1790
- return (l, r) => (c(), m("span", H({ class: i.value }, h(e)), [
1841
+ return (l, r) => (d(), _("span", H({ class: i.value }, p(e)), [
1791
1842
  B(l.$slots, "default")
1792
1843
  ], 16));
1793
1844
  }
1794
- }), sn = { class: "vf-tabs" }, rn = {
1845
+ }), cn = { class: "vf-tabs" }, fn = {
1795
1846
  class: "vf-tabs__list",
1796
1847
  role: "tablist",
1797
1848
  "aria-orientation": "horizontal"
1798
- }, un = ["id", "aria-controls", "aria-selected", "disabled", "tabindex", "onClick", "onKeydown"], cn = ["id", "aria-labelledby"], Rn = /* @__PURE__ */ L({
1849
+ }, vn = ["id", "aria-controls", "aria-selected", "disabled", "tabindex", "onClick", "onKeydown"], pn = ["id", "aria-labelledby"], jn = /* @__PURE__ */ L({
1799
1850
  __name: "VfTabs",
1800
1851
  props: {
1801
1852
  items: {},
@@ -1804,106 +1855,106 @@ const tt = {
1804
1855
  },
1805
1856
  emits: ["update:modelValue", "change"],
1806
1857
  setup(t, { emit: n }) {
1807
- const e = t, i = n, l = G({ prefix: "vf-tabs" }), r = A([]), u = s(
1858
+ const e = t, i = n, l = Q({ prefix: "vf-tabs" }), r = D([]), u = s(
1808
1859
  () => {
1809
- var d;
1810
- return (d = e.items.find((_) => !_.disabled)) == null ? void 0 : d.value;
1860
+ var $;
1861
+ return ($ = e.items.find((f) => !f.disabled)) == null ? void 0 : $.value;
1811
1862
  }
1812
- ), p = A(e.defaultValue ?? u.value), g = s(() => e.modelValue !== void 0), b = s(
1813
- () => e.modelValue ?? p.value ?? u.value
1863
+ ), v = D(e.defaultValue ?? u.value), y = s(() => e.modelValue !== void 0), g = s(
1864
+ () => e.modelValue ?? v.value ?? u.value
1814
1865
  );
1815
- Z(
1866
+ ee(
1816
1867
  () => e.items,
1817
- (d) => {
1818
- !d.some(
1819
- (o) => o.value === b.value && !o.disabled
1820
- ) && u.value && v(u.value);
1868
+ ($) => {
1869
+ !$.some(
1870
+ (a) => a.value === g.value && !a.disabled
1871
+ ) && u.value && m(u.value);
1821
1872
  },
1822
1873
  { deep: !0 }
1823
1874
  );
1824
- function v(d) {
1825
- g.value || (p.value = d), i("update:modelValue", d), i("change", d);
1875
+ function m($) {
1876
+ y.value || (v.value = $), i("update:modelValue", $), i("change", $);
1826
1877
  }
1827
- function E(d) {
1828
- d.disabled || v(d.value);
1878
+ function C($) {
1879
+ $.disabled || m($.value);
1829
1880
  }
1830
- function V() {
1831
- return e.items.filter((d) => !d.disabled);
1881
+ function x() {
1882
+ return e.items.filter(($) => !$.disabled);
1832
1883
  }
1833
- function w(d) {
1834
- var o;
1835
- const _ = e.items.findIndex((y) => y.value === d);
1836
- (o = r.value[_]) == null || o.focus();
1884
+ function w($) {
1885
+ var a;
1886
+ const f = e.items.findIndex((h) => h.value === $);
1887
+ (a = r.value[f]) == null || a.focus();
1837
1888
  }
1838
- function I(d, _) {
1839
- const o = V(), y = o.findIndex(
1840
- (f) => f.value === _.value
1889
+ function S($, f) {
1890
+ const a = x(), h = a.findIndex(
1891
+ (c) => c.value === f.value
1841
1892
  );
1842
- if (y !== -1) {
1843
- if (d.key === "ArrowRight" || d.key === "ArrowDown") {
1844
- d.preventDefault();
1845
- const f = o[(y + 1) % o.length];
1846
- E(f), w(f.value);
1893
+ if (h !== -1) {
1894
+ if ($.key === "ArrowRight" || $.key === "ArrowDown") {
1895
+ $.preventDefault();
1896
+ const c = a[(h + 1) % a.length];
1897
+ C(c), w(c.value);
1847
1898
  return;
1848
1899
  }
1849
- if (d.key === "ArrowLeft" || d.key === "ArrowUp") {
1850
- d.preventDefault();
1851
- const f = o[(y - 1 + o.length) % o.length];
1852
- E(f), w(f.value);
1900
+ if ($.key === "ArrowLeft" || $.key === "ArrowUp") {
1901
+ $.preventDefault();
1902
+ const c = a[(h - 1 + a.length) % a.length];
1903
+ C(c), w(c.value);
1853
1904
  return;
1854
1905
  }
1855
- if (d.key === "Home") {
1856
- d.preventDefault();
1857
- const f = o[0];
1858
- E(f), w(f.value);
1906
+ if ($.key === "Home") {
1907
+ $.preventDefault();
1908
+ const c = a[0];
1909
+ C(c), w(c.value);
1859
1910
  return;
1860
1911
  }
1861
- if (d.key === "End") {
1862
- d.preventDefault();
1863
- const f = o[o.length - 1];
1864
- E(f), w(f.value);
1912
+ if ($.key === "End") {
1913
+ $.preventDefault();
1914
+ const c = a[a.length - 1];
1915
+ C(c), w(c.value);
1865
1916
  }
1866
1917
  }
1867
1918
  }
1868
- function S(d) {
1869
- return `${l.value}-tab-${d}`;
1919
+ function I($) {
1920
+ return `${l.value}-tab-${$}`;
1870
1921
  }
1871
- function z(d) {
1872
- return `${l.value}-panel-${d}`;
1922
+ function z($) {
1923
+ return `${l.value}-panel-${$}`;
1873
1924
  }
1874
- return (d, _) => (c(), m("div", sn, [
1875
- T("div", rn, [
1876
- (c(!0), m(ue, null, ce(t.items, (o, y) => (c(), m("button", {
1877
- id: S(o.value),
1878
- key: o.value,
1925
+ return ($, f) => (d(), _("div", cn, [
1926
+ T("div", fn, [
1927
+ (d(!0), _(ue, null, de(t.items, (a, h) => (d(), _("button", {
1928
+ id: I(a.value),
1929
+ key: a.value,
1879
1930
  ref_for: !0,
1880
- ref: (f) => {
1881
- r.value[y] = f;
1931
+ ref: (c) => {
1932
+ r.value[h] = c;
1882
1933
  },
1883
- "aria-controls": z(o.value),
1884
- "aria-selected": b.value === o.value,
1885
- disabled: o.disabled,
1886
- tabindex: b.value === o.value ? 0 : -1,
1934
+ "aria-controls": z(a.value),
1935
+ "aria-selected": g.value === a.value,
1936
+ disabled: a.disabled,
1937
+ tabindex: g.value === a.value ? 0 : -1,
1887
1938
  class: "vf-tabs__tab",
1888
1939
  role: "tab",
1889
1940
  type: "button",
1890
- onClick: (f) => E(o),
1891
- onKeydown: (f) => I(f, o)
1892
- }, F(o.label), 41, un))), 128))
1941
+ onClick: (c) => C(a),
1942
+ onKeydown: (c) => S(c, a)
1943
+ }, N(a.label), 41, vn))), 128))
1893
1944
  ]),
1894
- b.value ? (c(), m("div", {
1945
+ g.value ? (d(), _("div", {
1895
1946
  key: 0,
1896
- id: z(b.value),
1897
- "aria-labelledby": S(b.value),
1947
+ id: z(g.value),
1948
+ "aria-labelledby": I(g.value),
1898
1949
  class: "vf-tabs__panel",
1899
1950
  role: "tabpanel",
1900
1951
  tabindex: "0"
1901
1952
  }, [
1902
- B(d.$slots, "panel", Ve(xe({ activeValue: b.value })))
1903
- ], 8, cn)) : O("", !0)
1953
+ B($.$slots, "panel", Ve(Ce({ activeValue: g.value })))
1954
+ ], 8, pn)) : O("", !0)
1904
1955
  ]));
1905
1956
  }
1906
- }), dn = ["value", "aria-invalid"], Hn = /* @__PURE__ */ L({
1957
+ }), mn = ["value", "aria-invalid"], qn = /* @__PURE__ */ L({
1907
1958
  inheritAttrs: !1,
1908
1959
  __name: "VfTextarea",
1909
1960
  props: {
@@ -1914,22 +1965,22 @@ const tt = {
1914
1965
  emits: ["update:modelValue"],
1915
1966
  setup(t, { emit: n }) {
1916
1967
  const e = t, i = n, l = R(), r = s(
1917
- () => N(
1968
+ () => F(
1918
1969
  "vf-textarea",
1919
1970
  e.size !== "md" && `vf-textarea--${e.size}`,
1920
1971
  e.invalid && "vf-textarea--invalid"
1921
1972
  )
1922
1973
  );
1923
- function u(p) {
1924
- i("update:modelValue", p.target.value);
1974
+ function u(v) {
1975
+ i("update:modelValue", v.target.value);
1925
1976
  }
1926
- return (p, g) => (c(), m("textarea", H({
1977
+ return (v, y) => (d(), _("textarea", H({
1927
1978
  class: r.value,
1928
1979
  value: e.modelValue,
1929
1980
  "aria-invalid": e.invalid || void 0
1930
- }, h(l), { onInput: u }), null, 16, dn));
1981
+ }, p(l), { onInput: u }), null, 16, mn));
1931
1982
  }
1932
- }), fn = ["aria-describedby"], vn = ["id"], Kn = /* @__PURE__ */ L({
1983
+ }), hn = ["aria-describedby"], yn = ["id"], Un = /* @__PURE__ */ L({
1933
1984
  __name: "VfTooltip",
1934
1985
  props: {
1935
1986
  text: { default: void 0 },
@@ -1939,16 +1990,16 @@ const tt = {
1939
1990
  disableTeleport: { type: Boolean, default: !1 }
1940
1991
  },
1941
1992
  setup(t) {
1942
- const n = t, e = A(!1), i = G({ prefix: "vf-tooltip" }), l = A(null), r = A(null), u = A(null), p = A(null), g = {
1943
- enter: U.fast,
1944
- leave: U.fast
1945
- }, b = s(
1993
+ const n = t, e = D(!1), i = Q({ prefix: "vf-tooltip" }), l = D(null), r = D(null), u = D(null), v = D(null), y = {
1994
+ enter: Y.fast,
1995
+ leave: Y.fast
1996
+ }, g = s(
1946
1997
  () => n.disableTeleport || n.teleportTo === !1 || n.teleportTo === null
1947
- ), v = s(() => typeof n.teleportTo == "string" || typeof HTMLElement < "u" && n.teleportTo instanceof HTMLElement ? n.teleportTo : "body"), {
1948
- placement: E,
1949
- middlewareData: V,
1998
+ ), m = s(() => typeof n.teleportTo == "string" || typeof HTMLElement < "u" && n.teleportTo instanceof HTMLElement ? n.teleportTo : "body"), {
1999
+ placement: C,
2000
+ middlewareData: x,
1950
2001
  styles: w,
1951
- cleanup: I
2002
+ cleanup: S
1952
2003
  } = ye(r, u, {
1953
2004
  enabled: e,
1954
2005
  placement: s(() => n.placement),
@@ -1957,82 +2008,82 @@ const tt = {
1957
2008
  ve(10),
1958
2009
  pe({ placements: ["top", "bottom"] }),
1959
2010
  me(),
1960
- p.value ? he(p.value) : void 0
1961
- ].filter((a) => a !== void 0)
2011
+ v.value ? he(v.value) : void 0
2012
+ ].filter((o) => o !== void 0)
1962
2013
  ),
1963
2014
  strategy: "fixed"
1964
- }), S = s(() => [
2015
+ }), I = s(() => [
1965
2016
  "vf-tooltip__content",
1966
- E.value.startsWith("bottom") && "vf-tooltip__content--bottom",
1967
- E.value.startsWith("top") && "vf-tooltip__content--top"
2017
+ C.value.startsWith("bottom") && "vf-tooltip__content--bottom",
2018
+ C.value.startsWith("top") && "vf-tooltip__content--top"
1968
2019
  ]), z = s(() => {
1969
- const a = V.value.arrow;
2020
+ const o = x.value.arrow;
1970
2021
  return {
1971
- x: (a == null ? void 0 : a.x) !== void 0 && (a == null ? void 0 : a.baseX) !== void 0 ? a.x - a.baseX : 0,
1972
- y: (a == null ? void 0 : a.y) !== void 0 && (a == null ? void 0 : a.baseY) !== void 0 ? a.y - a.baseY : 0
2022
+ x: (o == null ? void 0 : o.x) !== void 0 && (o == null ? void 0 : o.baseX) !== void 0 ? o.x - o.baseX : 0,
2023
+ y: (o == null ? void 0 : o.y) !== void 0 && (o == null ? void 0 : o.baseY) !== void 0 ? o.y - o.baseY : 0
1973
2024
  };
1974
- }), d = s(() => ["vf-tooltip__arrow"]), _ = s(() => ({
2025
+ }), $ = s(() => ["vf-tooltip__arrow"]), f = s(() => ({
1975
2026
  left: `${z.value.x}px`,
1976
2027
  top: `${z.value.y}px`
1977
2028
  }));
1978
- function o() {
2029
+ function a() {
1979
2030
  l.value !== null && (window.clearTimeout(l.value), l.value = null);
1980
2031
  }
1981
- function y() {
1982
- o(), l.value = window.setTimeout(() => {
2032
+ function h() {
2033
+ a(), l.value = window.setTimeout(() => {
1983
2034
  e.value = !0;
1984
2035
  }, n.openDelay);
1985
2036
  }
1986
- function f() {
1987
- o(), e.value = !1;
2037
+ function c() {
2038
+ a(), e.value = !1;
1988
2039
  }
1989
- return ee(() => {
1990
- o(), I();
1991
- }), (a, C) => (c(), m("span", {
2040
+ return te(() => {
2041
+ a(), S();
2042
+ }), (o, E) => (d(), _("span", {
1992
2043
  class: "vf-tooltip",
1993
- onMouseenter: y,
1994
- onMouseleave: f,
1995
- onFocusin: y,
1996
- onFocusout: f
2044
+ onMouseenter: h,
2045
+ onMouseleave: c,
2046
+ onFocusin: h,
2047
+ onFocusout: c
1997
2048
  }, [
1998
2049
  T("span", {
1999
2050
  ref_key: "triggerRef",
2000
2051
  ref: r,
2001
2052
  class: "vf-tooltip__trigger",
2002
- "aria-describedby": e.value ? h(i) : void 0
2053
+ "aria-describedby": e.value ? p(i) : void 0
2003
2054
  }, [
2004
- B(a.$slots, "default")
2005
- ], 8, fn),
2006
- (c(), q(le, {
2007
- to: v.value,
2008
- disabled: b.value
2055
+ B(o.$slots, "default")
2056
+ ], 8, hn),
2057
+ (d(), q(le, {
2058
+ to: m.value,
2059
+ disabled: g.value
2009
2060
  }, [
2010
2061
  j(ne, {
2011
2062
  name: "vf-floating-transition",
2012
2063
  appear: "",
2013
- duration: g
2064
+ duration: y
2014
2065
  }, {
2015
- default: Q(() => [
2016
- e.value && (t.text || a.$slots.content) ? (c(), m("span", {
2066
+ default: G(() => [
2067
+ e.value && (t.text || o.$slots.content) ? (d(), _("span", {
2017
2068
  key: 0,
2018
- id: h(i),
2069
+ id: p(i),
2019
2070
  ref_key: "contentRef",
2020
2071
  ref: u,
2021
- class: P(S.value),
2022
- style: W(h(w)),
2072
+ class: P(I.value),
2073
+ style: W(p(w)),
2023
2074
  role: "tooltip"
2024
2075
  }, [
2025
- B(a.$slots, "content", {}, () => [
2026
- oe(F(t.text), 1)
2076
+ B(o.$slots, "content", {}, () => [
2077
+ ae(N(t.text), 1)
2027
2078
  ]),
2028
2079
  T("span", {
2029
2080
  ref_key: "arrowRef",
2030
- ref: p,
2031
- class: P(d.value),
2032
- style: W(_.value),
2081
+ ref: v,
2082
+ class: P($.value),
2083
+ style: W(f.value),
2033
2084
  "aria-hidden": "true"
2034
2085
  }, null, 6)
2035
- ], 14, vn)) : O("", !0)
2086
+ ], 14, yn)) : O("", !0)
2036
2087
  ]),
2037
2088
  _: 3
2038
2089
  })
@@ -2041,46 +2092,47 @@ const tt = {
2041
2092
  }
2042
2093
  });
2043
2094
  export {
2044
- wn as VfAccordion,
2045
- Tn as VfAlert,
2046
- Vn as VfBadge,
2047
- xn as VfButton,
2048
- Cn as VfCard,
2049
- Bn as VfCheckbox,
2050
- On as VfDialog,
2051
- Dn as VfDivider,
2052
- En as VfDrawer,
2053
- An as VfDropdown,
2054
- Ae as VfIconButton,
2055
- In as VfInput,
2056
- Ln as VfLink,
2057
- Sn as VfNavMenu,
2058
- zn as VfPanel,
2059
- Mn as VfPopover,
2060
- Pn as VfRadio,
2061
- Nn as VfSwitch,
2062
- Rn as VfTabs,
2063
- Fn as VfTag,
2064
- Hn as VfTextarea,
2065
- $n as VfThemeProvider,
2066
- Kn as VfTooltip,
2067
- bn as VueForge,
2068
- Wn as createThemePreset,
2069
- Ue as createVueForge,
2070
- bn as default,
2095
+ Cn as VfAccordion,
2096
+ xn as VfAlert,
2097
+ Bn as VfBadge,
2098
+ En as VfButton,
2099
+ On as VfCard,
2100
+ An as VfCheckbox,
2101
+ In as VfDialog,
2102
+ Ln as VfDivider,
2103
+ Dn as VfDrawer,
2104
+ Sn as VfDropdown,
2105
+ De as VfIconButton,
2106
+ zn as VfInput,
2107
+ Mn as VfLink,
2108
+ Pn as VfNavMenu,
2109
+ Nn as VfPanel,
2110
+ Fn as VfPopover,
2111
+ Rn as VfRadio,
2112
+ dn as VfSwitch,
2113
+ jn as VfTabs,
2114
+ Kn as VfTag,
2115
+ qn as VfTextarea,
2116
+ Vn as VfThemeProvider,
2117
+ Hn as VfThemeSwitch,
2118
+ Un as VfTooltip,
2119
+ Tn as VueForgeCore,
2120
+ Xn as createThemePreset,
2121
+ We as createVueForgeCore,
2122
+ Tn as default,
2071
2123
  Fe as defaultThemePreset,
2072
- Yn as toMaxWidthQuery,
2073
- Xn as toMinWidthQuery,
2074
- Gn as useBreakpoint,
2075
- Qn as useBreakpointValue,
2076
- Jn as useBreakpoints,
2124
+ Qn as toMaxWidthQuery,
2125
+ Jn as toMinWidthQuery,
2126
+ Zn as useBreakpoint,
2127
+ ea as useBreakpointValue,
2128
+ ta as useBreakpoints,
2077
2129
  Oe as useClickOutside,
2078
2130
  se as useDisclosure,
2079
2131
  fe as useEscapeKey,
2080
2132
  ye as useFloating,
2081
- De as useFocusTrap,
2082
- G as useId,
2083
- Ce as useScrollLock,
2084
- kn as useTheme,
2085
- Zn as vfBreakpoints
2133
+ Ae as useFocusTrap,
2134
+ Q as useId,
2135
+ xe as useScrollLock,
2136
+ Qe as useTheme,
2137
+ na as vfBreakpoints
2086
2138
  };