@codemonster-ru/vueforge-core 1.2.0 → 1.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (99) hide show
  1. package/README.md +18 -1
  2. package/dist/components/accordion/VfAccordion.vue.d.ts.map +1 -1
  3. package/dist/components/accordion/index.d.ts.map +1 -1
  4. package/dist/components/alert/VfAlert.vue.d.ts.map +1 -1
  5. package/dist/components/alert/index.d.ts.map +1 -1
  6. package/dist/components/badge/VfBadge.vue.d.ts.map +1 -1
  7. package/dist/components/badge/index.d.ts.map +1 -1
  8. package/dist/components/button/VfButton.vue.d.ts +1 -1
  9. package/dist/components/button/VfButton.vue.d.ts.map +1 -1
  10. package/dist/components/button/index.d.ts.map +1 -1
  11. package/dist/components/card/VfCard.vue.d.ts.map +1 -1
  12. package/dist/components/card/index.d.ts.map +1 -1
  13. package/dist/components/checkbox/VfCheckbox.vue.d.ts +1 -1
  14. package/dist/components/checkbox/VfCheckbox.vue.d.ts.map +1 -1
  15. package/dist/components/checkbox/index.d.ts.map +1 -1
  16. package/dist/components/dialog/VfDialog.vue.d.ts.map +1 -1
  17. package/dist/components/dialog/index.d.ts.map +1 -1
  18. package/dist/components/divider/VfDivider.vue.d.ts.map +1 -1
  19. package/dist/components/divider/index.d.ts.map +1 -1
  20. package/dist/components/drawer/VfDrawer.vue.d.ts.map +1 -1
  21. package/dist/components/drawer/index.d.ts.map +1 -1
  22. package/dist/components/dropdown/VfDropdown.vue.d.ts.map +1 -1
  23. package/dist/components/dropdown/index.d.ts.map +1 -1
  24. package/dist/components/icon-button/VfIconButton.vue.d.ts +1 -1
  25. package/dist/components/icon-button/VfIconButton.vue.d.ts.map +1 -1
  26. package/dist/components/icon-button/index.d.ts.map +1 -1
  27. package/dist/components/index.d.ts.map +1 -1
  28. package/dist/components/input/VfInput.vue.d.ts.map +1 -1
  29. package/dist/components/input/index.d.ts.map +1 -1
  30. package/dist/components/link/VfLink.vue.d.ts.map +1 -1
  31. package/dist/components/link/index.d.ts.map +1 -1
  32. package/dist/components/nav-menu/VfNavMenu.vue.d.ts +3 -3
  33. package/dist/components/nav-menu/VfNavMenu.vue.d.ts.map +1 -1
  34. package/dist/components/nav-menu/VfNavMenuItemNode.vue.d.ts.map +1 -1
  35. package/dist/components/nav-menu/index.d.ts.map +1 -1
  36. package/dist/components/panel/VfPanel.vue.d.ts.map +1 -1
  37. package/dist/components/panel/index.d.ts.map +1 -1
  38. package/dist/components/popover/VfPopover.vue.d.ts.map +1 -1
  39. package/dist/components/popover/index.d.ts.map +1 -1
  40. package/dist/components/radio/VfRadio.vue.d.ts +1 -1
  41. package/dist/components/radio/VfRadio.vue.d.ts.map +1 -1
  42. package/dist/components/radio/index.d.ts.map +1 -1
  43. package/dist/components/switch/VfSwitch.vue.d.ts.map +1 -1
  44. package/dist/components/switch/index.d.ts.map +1 -1
  45. package/dist/components/tabs/VfTabs.vue.d.ts.map +1 -1
  46. package/dist/components/tabs/index.d.ts.map +1 -1
  47. package/dist/components/tag/VfTag.vue.d.ts.map +1 -1
  48. package/dist/components/tag/index.d.ts.map +1 -1
  49. package/dist/components/textarea/VfTextarea.vue.d.ts.map +1 -1
  50. package/dist/components/textarea/index.d.ts.map +1 -1
  51. package/dist/components/tooltip/VfTooltip.vue.d.ts.map +1 -1
  52. package/dist/components/tooltip/index.d.ts.map +1 -1
  53. package/dist/composables/index.d.ts.map +1 -1
  54. package/dist/composables/useClickOutside.d.ts.map +1 -1
  55. package/dist/composables/useDisclosure.d.ts.map +1 -1
  56. package/dist/composables/useEscapeKey.d.ts +1 -1
  57. package/dist/composables/useEscapeKey.d.ts.map +1 -1
  58. package/dist/composables/useFloating.d.ts.map +1 -1
  59. package/dist/composables/useFocusTrap.d.ts.map +1 -1
  60. package/dist/composables/useId.d.ts.map +1 -1
  61. package/dist/composables/useTheme.d.ts +3 -3
  62. package/dist/foundation/breakpoints.d.ts.map +1 -1
  63. package/dist/foundation/index.d.ts.map +1 -1
  64. package/dist/foundation/useBreakpoint.d.ts +1 -1
  65. package/dist/foundation/useBreakpoint.d.ts.map +1 -1
  66. package/dist/foundation/useBreakpointValue.d.ts.map +1 -1
  67. package/dist/foundation/useBreakpoints.d.ts.map +1 -1
  68. package/dist/foundation/useScrollLock.d.ts.map +1 -1
  69. package/dist/foundation-api.js +1 -1
  70. package/dist/foundation.css +2 -2
  71. package/dist/index.d.ts +6 -6
  72. package/dist/index.d.ts.map +1 -1
  73. package/dist/plugin.d.ts.map +1 -1
  74. package/dist/providers/VfThemeProvider.vue.d.ts.map +1 -1
  75. package/dist/providers/themeContext.d.ts.map +1 -1
  76. package/dist/providers/vueForgeConfig.d.ts.map +1 -1
  77. package/dist/styles.css +1 -1
  78. package/dist/theme/default-preset.d.ts.map +1 -1
  79. package/dist/theme/index.d.ts +2 -1
  80. package/dist/theme/index.d.ts.map +1 -1
  81. package/dist/theme/motion.d.ts +1 -9
  82. package/dist/theme/motion.d.ts.map +1 -1
  83. package/dist/theme/public.d.ts +2 -1
  84. package/dist/theme/public.d.ts.map +1 -1
  85. package/dist/theme/utils.d.ts +2 -7
  86. package/dist/theme/utils.d.ts.map +1 -1
  87. package/dist/theme-api.js +220 -2
  88. package/dist/theme.css +80 -19
  89. package/dist/tokens.css +86 -18
  90. package/dist/types/components.d.ts +11 -11
  91. package/dist/types/components.d.ts.map +1 -1
  92. package/dist/types/theme.d.ts +2 -206
  93. package/dist/types/theme.d.ts.map +1 -1
  94. package/dist/{useScrollLock-B7pq1ybb.js → useScrollLock-FYdn9vRp.js} +8 -10
  95. package/dist/utils/theme.d.ts +1 -5
  96. package/dist/utils/theme.d.ts.map +1 -1
  97. package/dist/vueforge-core.js +429 -290
  98. package/package.json +3 -2
  99. package/dist/public-CFcLjh0P.js +0 -306
@@ -1,20 +1,30 @@
1
- import { r as Le, a as Se, b as ze, D as Me, c as Pe, i as Ne, v as U } from "./public-CFcLjh0P.js";
2
- import { d as Hn, e as Kn } from "./public-CFcLjh0P.js";
3
- import { defineComponent as L, ref as A, inject as we, computed as s, watch as Z, onMounted as de, onBeforeUnmount as ee, provide as Fe, 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 Re, Fragment as ue, renderList as ce } from "vue";
4
- import { d as Ce } from "./useScrollLock-B7pq1ybb.js";
5
- import { t as qn, a as Wn, u as Un, b as Yn, c as Xn, v as Gn } from "./useScrollLock-B7pq1ybb.js";
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";
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";
6
7
  import { VueIconify as te, icons as X } from "@codemonster-ru/vueiconify";
7
- import { autoUpdate as He, computePosition as Ke, offset as ve, flip as pe, shift as me, arrow as he } from "@codemonster-ru/floater.js";
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";
8
9
  const Be = Symbol("VueForgeConfig");
9
- function je() {
10
+ function qe(t = {}) {
11
+ return Le({
12
+ ...t,
13
+ preset: t.preset ?? Fe
14
+ });
15
+ }
16
+ function We(t, n) {
17
+ return Se(t, n);
18
+ }
19
+ function Ue() {
10
20
  return {
11
21
  install(n, e = {}) {
12
- const i = Le(e.theme);
13
- n.provide(Be, { theme: i }), typeof document < "u" && Se(i);
22
+ const i = qe(e.theme);
23
+ n.provide(Be, { theme: i }), typeof document < "u" && We(i);
14
24
  }
15
25
  };
16
26
  }
17
- const hn = je(), Ee = Symbol("VfThemeContext"), yn = /* @__PURE__ */ L({
27
+ const bn = Ue(), Ee = Symbol("VfThemeContext"), $n = /* @__PURE__ */ L({
18
28
  __name: "VfThemeProvider",
19
29
  props: {
20
30
  defaultTheme: { default: "system" },
@@ -22,7 +32,9 @@ const hn = je(), Ee = Symbol("VfThemeContext"), yn = /* @__PURE__ */ L({
22
32
  attribute: {}
23
33
  },
24
34
  setup(t) {
25
- const n = t, e = A(n.defaultTheme), i = A("light"), l = A(null), r = we(Be, null), u = s(() => ze(e.value, i.value)), p = s(
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(
26
38
  () => n.storageKey ?? (r == null ? void 0 : r.theme.options.storageKey) ?? Me
27
39
  ), g = s(
28
40
  () => n.attribute ?? (r == null ? void 0 : r.theme.options.attribute) ?? Pe
@@ -73,7 +85,7 @@ const hn = je(), Ee = Symbol("VfThemeContext"), yn = /* @__PURE__ */ L({
73
85
  }), ee(() => {
74
86
  var d;
75
87
  (d = l.value) == null || d.removeEventListener("change", I), V();
76
- }), Fe(Ee, {
88
+ }), Re(Ee, {
77
89
  mode: e,
78
90
  resolvedTheme: u,
79
91
  setTheme: S,
@@ -88,7 +100,9 @@ function Oe(t, n, e = {}) {
88
100
  const u = r.target;
89
101
  if (!(u instanceof Node))
90
102
  return;
91
- const p = Array.isArray(t) ? t.map((g) => g.value).filter((g) => g instanceof HTMLElement) : [t.value].filter((g) => g instanceof HTMLElement);
103
+ const p = Array.isArray(t) ? t.map((g) => g.value).filter((g) => g instanceof HTMLElement) : [t.value].filter(
104
+ (g) => g instanceof HTMLElement
105
+ );
92
106
  p.length === 0 || p.some((g) => g.contains(u)) || n(r);
93
107
  };
94
108
  de(() => {
@@ -98,7 +112,9 @@ function Oe(t, n, e = {}) {
98
112
  });
99
113
  }
100
114
  function se(t = {}) {
101
- const n = s(() => K(t.open) !== void 0), e = A(t.defaultOpen ?? !1), i = s(() => n.value ? !!K(t.open) : e.value);
115
+ const n = s(() => K(t.open) !== void 0), e = A(t.defaultOpen ?? !1), i = s(
116
+ () => n.value ? !!K(t.open) : e.value
117
+ );
102
118
  Z(
103
119
  () => K(t.open),
104
120
  (r) => {
@@ -137,11 +153,15 @@ function ye(t, n, e = {}) {
137
153
  async function v() {
138
154
  if (!t.value || !n.value)
139
155
  return;
140
- const V = await Ke(t.value, n.value, {
141
- placement: K(e.placement) ?? r.value,
142
- middleware: K(e.middleware),
143
- strategy: K(e.strategy)
144
- });
156
+ const V = await je(
157
+ t.value,
158
+ n.value,
159
+ {
160
+ placement: K(e.placement) ?? r.value,
161
+ middleware: K(e.middleware),
162
+ strategy: K(e.strategy)
163
+ }
164
+ );
145
165
  i.value = V.x, l.value = V.y, r.value = V.placement, u.value = V.middlewareData ?? {};
146
166
  }
147
167
  function E() {
@@ -153,7 +173,7 @@ function ye(t, n, e = {}) {
153
173
  async ([V]) => {
154
174
  g += 1;
155
175
  const w = g;
156
- 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 = He(t.value, () => {
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, () => {
157
177
  v();
158
178
  }))));
159
179
  },
@@ -170,7 +190,7 @@ function ye(t, n, e = {}) {
170
190
  cleanup: E
171
191
  };
172
192
  }
173
- const qe = [
193
+ const Ye = [
174
194
  "a[href]",
175
195
  "button:not([disabled])",
176
196
  "input:not([disabled])",
@@ -178,8 +198,10 @@ const qe = [
178
198
  "textarea:not([disabled])",
179
199
  '[tabindex]:not([tabindex="-1"])'
180
200
  ].join(", ");
181
- function We(t) {
182
- return Array.from(t.querySelectorAll(qe)).filter(
201
+ function Xe(t) {
202
+ return Array.from(
203
+ t.querySelectorAll(Ye)
204
+ ).filter(
183
205
  (n) => !n.hasAttribute("hidden") && n.getAttribute("aria-hidden") !== "true"
184
206
  );
185
207
  }
@@ -190,7 +212,7 @@ function De(t, n = {}) {
190
212
  const l = t.value;
191
213
  if (!l)
192
214
  return;
193
- const r = We(l);
215
+ const r = Xe(l);
194
216
  if (r.length === 0) {
195
217
  i.preventDefault(), l.focus();
196
218
  return;
@@ -208,12 +230,12 @@ function De(t, n = {}) {
208
230
  document.removeEventListener("keydown", e);
209
231
  });
210
232
  }
211
- let Ue = 0;
233
+ let Ge = 0;
212
234
  function G(t = {}) {
213
- const n = `${t.prefix ?? "vf"}-${++Ue}`;
235
+ const n = `${t.prefix ?? "vf"}-${++Ge}`;
214
236
  return s(() => K(t.providedId) ?? n);
215
237
  }
216
- function _n() {
238
+ function kn() {
217
239
  const t = we(Ee);
218
240
  if (!t)
219
241
  throw new Error("useTheme must be used inside VfThemeProvider.");
@@ -224,7 +246,7 @@ function _n() {
224
246
  toggleTheme: t.toggleTheme
225
247
  };
226
248
  }
227
- const Ye = { class: "vf-accordion" }, Xe = ["id", "aria-controls", "aria-expanded", "disabled"], Ge = ["id", "aria-labelledby"], Qe = { class: "vf-accordion__content-inner" }, gn = /* @__PURE__ */ L({
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({
228
250
  __name: "VfAccordion",
229
251
  props: {
230
252
  open: { type: Boolean, default: void 0 },
@@ -280,7 +302,7 @@ const Ye = { class: "vf-accordion" }, Xe = ["id", "aria-controls", "aria-expande
280
302
  const o = _;
281
303
  o.style.height = "", o.style.opacity = "", o.style.overflow = "", o.style.transition = "";
282
304
  }
283
- return (_, o) => (c(), m("section", Ye, [
305
+ return (_, o) => (c(), m("section", Qe, [
284
306
  T("button", {
285
307
  id: h(l),
286
308
  "aria-controls": h(r),
@@ -303,7 +325,7 @@ const Ye = { class: "vf-accordion" }, Xe = ["id", "aria-controls", "aria-expande
303
325
  size: "0.875rem"
304
326
  }, null, 8, ["icon"])
305
327
  ], 2)
306
- ], 40, Xe),
328
+ ], 40, Je),
307
329
  j(ne, {
308
330
  css: !1,
309
331
  onBeforeEnter: V,
@@ -321,10 +343,10 @@ const Ye = { class: "vf-accordion" }, Xe = ["id", "aria-controls", "aria-expande
321
343
  class: "vf-accordion__content",
322
344
  role: "region"
323
345
  }, [
324
- T("div", Qe, [
346
+ T("div", et, [
325
347
  B(_.$slots, "default", { open: h(p) })
326
348
  ])
327
- ], 8, Ge)) : O("", !0)
349
+ ], 8, Ze)) : O("", !0)
328
350
  ]),
329
351
  _: 3
330
352
  })
@@ -334,13 +356,13 @@ const Ye = { class: "vf-accordion" }, Xe = ["id", "aria-controls", "aria-expande
334
356
  function N(...t) {
335
357
  return t.filter(Boolean).join(" ");
336
358
  }
337
- const Je = {
359
+ const tt = {
338
360
  class: "vf-alert__icon",
339
361
  "aria-hidden": "true"
340
- }, Ze = { class: "vf-alert__content" }, et = {
362
+ }, nt = { class: "vf-alert__content" }, at = {
341
363
  key: 0,
342
364
  class: "vf-alert__title"
343
- }, tt = { class: "vf-alert__body" }, bn = /* @__PURE__ */ L({
365
+ }, ot = { class: "vf-alert__body" }, Tn = /* @__PURE__ */ L({
344
366
  inheritAttrs: !1,
345
367
  __name: "VfAlert",
346
368
  props: {
@@ -355,25 +377,25 @@ const Je = {
355
377
  class: i.value,
356
378
  role: "alert"
357
379
  }, h(e)), [
358
- T("div", Je, [
380
+ T("div", tt, [
359
381
  j(h(te), {
360
382
  icon: l.value,
361
383
  size: "2rem"
362
384
  }, null, 8, ["icon"])
363
385
  ]),
364
- T("div", Ze, [
365
- n.title || r.$slots.title ? (c(), m("p", et, [
386
+ T("div", nt, [
387
+ n.title || r.$slots.title ? (c(), m("p", at, [
366
388
  B(r.$slots, "title", {}, () => [
367
389
  oe(F(n.title), 1)
368
390
  ])
369
391
  ])) : O("", !0),
370
- T("div", tt, [
392
+ T("div", ot, [
371
393
  B(r.$slots, "default")
372
394
  ])
373
395
  ])
374
396
  ], 16));
375
397
  }
376
- }), kn = /* @__PURE__ */ L({
398
+ }), Vn = /* @__PURE__ */ L({
377
399
  inheritAttrs: !1,
378
400
  __name: "VfBadge",
379
401
  props: {
@@ -387,7 +409,7 @@ const Je = {
387
409
  B(l.$slots, "default")
388
410
  ], 16));
389
411
  }
390
- }), nt = ["type"], $n = /* @__PURE__ */ L({
412
+ }), lt = ["type"], xn = /* @__PURE__ */ L({
391
413
  inheritAttrs: !1,
392
414
  __name: "VfButton",
393
415
  props: {
@@ -410,12 +432,12 @@ const Je = {
410
432
  type: n.type
411
433
  }, h(e)), [
412
434
  B(l.$slots, "default")
413
- ], 16, nt));
435
+ ], 16, lt));
414
436
  }
415
- }), at = { key: 0 }, ot = { class: "vf-card__title" }, lt = {
437
+ }), st = { key: 0 }, it = { class: "vf-card__title" }, rt = {
416
438
  key: 1,
417
439
  class: "vf-card__body"
418
- }, st = { key: 2 }, wn = /* @__PURE__ */ L({
440
+ }, ut = { key: 2 }, Cn = /* @__PURE__ */ L({
419
441
  inheritAttrs: !1,
420
442
  __name: "VfCard",
421
443
  props: {
@@ -423,25 +445,27 @@ const Je = {
423
445
  compact: { type: Boolean, default: !1 }
424
446
  },
425
447
  setup(t) {
426
- const n = t, e = R(), i = s(() => N("vf-card", n.compact && "vf-card--compact"));
448
+ const n = t, e = R(), i = s(
449
+ () => N("vf-card", n.compact && "vf-card--compact")
450
+ );
427
451
  return (l, r) => (c(), m("section", H({ class: i.value }, h(e)), [
428
- n.title || l.$slots.header ? (c(), m("header", at, [
452
+ n.title || l.$slots.header ? (c(), m("header", st, [
429
453
  B(l.$slots, "header", {}, () => [
430
- T("h3", ot, F(n.title), 1)
454
+ T("h3", it, F(n.title), 1)
431
455
  ])
432
456
  ])) : O("", !0),
433
- l.$slots.default ? (c(), m("div", lt, [
457
+ l.$slots.default ? (c(), m("div", rt, [
434
458
  B(l.$slots, "default")
435
459
  ])) : O("", !0),
436
- l.$slots.footer ? (c(), m("footer", st, [
460
+ l.$slots.footer ? (c(), m("footer", ut, [
437
461
  B(l.$slots, "footer")
438
462
  ])) : O("", !0)
439
463
  ], 16));
440
464
  }
441
- }), it = ["checked", "disabled", "aria-invalid"], rt = {
465
+ }), ct = ["checked", "disabled", "aria-invalid"], dt = {
442
466
  key: 0,
443
467
  class: "vf-checkbox__content"
444
- }, Tn = /* @__PURE__ */ L({
468
+ }, Bn = /* @__PURE__ */ L({
445
469
  inheritAttrs: !1,
446
470
  __name: "VfCheckbox",
447
471
  props: {
@@ -462,7 +486,11 @@ const Je = {
462
486
  e.disabled && "vf-checkbox--disabled",
463
487
  l.class
464
488
  )
465
- ), u = s(() => l.style), p = s(() => Object.fromEntries(Object.entries(l).filter(([b]) => b !== "class" && b !== "style")));
489
+ ), u = s(() => l.style), p = s(
490
+ () => Object.fromEntries(
491
+ Object.entries(l).filter(([b]) => b !== "class" && b !== "style")
492
+ )
493
+ );
466
494
  function g(b) {
467
495
  const v = b.target.checked;
468
496
  i("update:modelValue", v), i("change", v);
@@ -477,21 +505,21 @@ const Je = {
477
505
  checked: e.modelValue,
478
506
  disabled: e.disabled,
479
507
  "aria-invalid": e.invalid || void 0
480
- }, p.value, { onChange: g }), null, 16, it),
508
+ }, p.value, { onChange: g }), null, 16, ct),
481
509
  v[0] || (v[0] = T("span", {
482
510
  class: "vf-checkbox__control",
483
511
  "aria-hidden": "true"
484
512
  }, [
485
513
  T("span", { class: "vf-checkbox__mark" })
486
514
  ], -1)),
487
- t.label || b.$slots.default ? (c(), m("span", rt, [
515
+ t.label || b.$slots.default ? (c(), m("span", dt, [
488
516
  B(b.$slots, "default", {}, () => [
489
517
  oe(F(t.label), 1)
490
518
  ])
491
519
  ])) : O("", !0)
492
520
  ], 6));
493
521
  }
494
- }), ut = ["type"], Ae = /* @__PURE__ */ L({
522
+ }), ft = ["type"], Ae = /* @__PURE__ */ L({
495
523
  inheritAttrs: !1,
496
524
  __name: "VfIconButton",
497
525
  props: {
@@ -517,18 +545,18 @@ const Je = {
517
545
  size: l.value,
518
546
  "aria-hidden": "true"
519
547
  }, null, 8, ["icon", "size"])
520
- ], 16, ut));
548
+ ], 16, ft));
521
549
  }
522
- }), ct = ["aria-labelledby"], dt = {
550
+ }), vt = ["aria-labelledby"], pt = {
523
551
  key: 0,
524
552
  class: "vf-drawer__header"
525
- }, ft = ["id"], vt = { class: "vf-drawer__actions" }, pt = {
553
+ }, mt = ["id"], ht = { class: "vf-drawer__actions" }, yt = {
526
554
  key: 1,
527
555
  class: "vf-drawer__body"
528
- }, mt = {
556
+ }, _t = {
529
557
  key: 2,
530
558
  class: "vf-drawer__footer"
531
- }, Vn = /* @__PURE__ */ L({
559
+ }, En = /* @__PURE__ */ L({
532
560
  inheritAttrs: !1,
533
561
  __name: "VfDrawer",
534
562
  props: {
@@ -562,12 +590,27 @@ const Je = {
562
590
  return typeof x == "number" ? `${x}px` : x;
563
591
  }
564
592
  const w = s(() => {
565
- const x = {}, $ = V(e.offsetTop), J = V(e.bodyPadding);
566
- return $ != null && (x["--vf-drawer-offset-top"] = $), J != null && (x["--vf-drawer-body-padding"] = J), x;
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;
567
595
  }), I = s(
568
- () => N("vf-drawer", `vf-drawer--${e.placement}`, e.offsetTop != null && "vf-drawer--offset-top")
569
- ), S = s(() => [w.value, l.style]), z = s(() => Object.fromEntries(Object.entries(l).filter(([x]) => x !== "class" && x !== "style"))), d = s(() => e.disableTeleport || e.teleportTo === !1 || e.teleportTo === null), _ = 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(
570
- () => N("vf-drawer__content", `vf-drawer__content--${e.placement}`, `vf-drawer__content--${e.size}`)
596
+ () => N(
597
+ "vf-drawer",
598
+ `vf-drawer--${e.placement}`,
599
+ e.offsetTop != null && "vf-drawer--offset-top"
600
+ )
601
+ ), S = s(() => [
602
+ w.value,
603
+ l.style
604
+ ]), z = s(() => Object.fromEntries(
605
+ Object.entries(l).filter(([x]) => x !== "class" && x !== "style")
606
+ )), d = s(
607
+ () => 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(
610
+ "vf-drawer__content",
611
+ `vf-drawer__content--${e.placement}`,
612
+ `vf-drawer__content--${e.size}`
613
+ )
571
614
  ), f = s(() => !!p.header), a = s(
572
615
  () => e.title || f.value ? g.value : void 0
573
616
  );
@@ -581,9 +624,11 @@ const Je = {
581
624
  const x = r.value;
582
625
  if (!x)
583
626
  return;
584
- const $ = x.querySelector("[autofocus], [data-autofocus]");
585
- if ($) {
586
- $.focus();
627
+ const k = x.querySelector(
628
+ "[autofocus], [data-autofocus]"
629
+ );
630
+ if (k) {
631
+ k.focus();
587
632
  return;
588
633
  }
589
634
  x.focus();
@@ -602,20 +647,20 @@ const Je = {
602
647
  }), Z(
603
648
  v,
604
649
  async (x) => {
605
- var $;
650
+ var k;
606
651
  if (!(typeof document > "u")) {
607
652
  if (x) {
608
653
  u.value = document.activeElement instanceof HTMLElement ? document.activeElement : null, await ae(), M();
609
654
  return;
610
655
  }
611
- ($ = u.value) == null || $.focus();
656
+ (k = u.value) == null || k.focus();
612
657
  }
613
658
  },
614
659
  { immediate: !0 }
615
660
  ), ee(() => {
616
661
  var x;
617
662
  v.value && ((x = u.value) == null || x.focus());
618
- }), (x, $) => (c(), q(le, {
663
+ }), (x, k) => (c(), q(le, {
619
664
  to: o.value,
620
665
  disabled: d.value
621
666
  }, [
@@ -644,17 +689,17 @@ const Je = {
644
689
  role: "dialog",
645
690
  tabindex: "-1"
646
691
  }, [
647
- t.title || x.$slots.header ? (c(), m("header", dt, [
692
+ t.title || x.$slots.header ? (c(), m("header", pt, [
648
693
  T("div", null, [
649
694
  B(x.$slots, "header", {}, () => [
650
695
  t.title ? (c(), m("h2", {
651
696
  key: 0,
652
697
  id: h(g),
653
698
  class: "vf-drawer__title"
654
- }, F(t.title), 9, ft)) : O("", !0)
699
+ }, F(t.title), 9, mt)) : O("", !0)
655
700
  ])
656
701
  ]),
657
- T("div", vt, [
702
+ T("div", ht, [
658
703
  B(x.$slots, "actions", { close: C }),
659
704
  e.closable ? (c(), q(Ae, {
660
705
  key: 0,
@@ -665,32 +710,32 @@ const Je = {
665
710
  }, null, 8, ["icon"])) : O("", !0)
666
711
  ])
667
712
  ])) : O("", !0),
668
- x.$slots.default ? (c(), m("div", pt, [
713
+ x.$slots.default ? (c(), m("div", yt, [
669
714
  B(x.$slots, "default", { close: C })
670
715
  ])) : O("", !0),
671
- x.$slots.footer ? (c(), m("footer", mt, [
716
+ x.$slots.footer ? (c(), m("footer", _t, [
672
717
  B(x.$slots, "footer", { close: C })
673
718
  ])) : O("", !0)
674
- ], 10, ct)
719
+ ], 10, vt)
675
720
  ], 16)) : O("", !0)
676
721
  ]),
677
722
  _: 3
678
723
  })
679
724
  ], 8, ["to", "disabled"]));
680
725
  }
681
- }), ht = {
726
+ }), gt = {
682
727
  key: 0,
683
728
  class: "vf-dialog"
684
- }, yt = ["aria-describedby", "aria-labelledby"], _t = {
729
+ }, bt = ["aria-describedby", "aria-labelledby"], $t = {
685
730
  key: 0,
686
731
  class: "vf-dialog__header"
687
- }, gt = ["id"], bt = ["id"], kt = { class: "vf-dialog__actions" }, $t = {
732
+ }, kt = ["id"], wt = ["id"], Tt = { class: "vf-dialog__actions" }, Vt = {
688
733
  key: 1,
689
734
  class: "vf-dialog__body"
690
- }, wt = {
735
+ }, xt = {
691
736
  key: 2,
692
737
  class: "vf-dialog__footer"
693
- }, xn = /* @__PURE__ */ L({
738
+ }, On = /* @__PURE__ */ L({
694
739
  __name: "VfDialog",
695
740
  props: {
696
741
  open: { type: Boolean, default: void 0 },
@@ -715,8 +760,13 @@ const Je = {
715
760
  }), v = b.isOpen, E = {
716
761
  enter: U.fast,
717
762
  leave: U.fast
718
- }, V = s(() => e.disableTeleport || e.teleportTo === !1 || e.teleportTo === null), w = s(() => typeof e.teleportTo == "string" || typeof HTMLElement < "u" && e.teleportTo instanceof HTMLElement ? e.teleportTo : "body"), I = s(
719
- () => N("vf-dialog__content", e.size !== "md" && `vf-dialog__content--${e.size}`)
763
+ }, V = s(
764
+ () => 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(
767
+ "vf-dialog__content",
768
+ e.size !== "md" && `vf-dialog__content--${e.size}`
769
+ )
720
770
  ), S = s(() => !!u.header), z = s(() => !!u.description), d = s(
721
771
  () => e.title || S.value ? p.value : void 0
722
772
  ), _ = s(
@@ -732,7 +782,9 @@ const Je = {
732
782
  const a = l.value;
733
783
  if (!a)
734
784
  return;
735
- const C = a.querySelector("[autofocus], [data-autofocus]");
785
+ const C = a.querySelector(
786
+ "[autofocus], [data-autofocus]"
787
+ );
736
788
  if (C) {
737
789
  C.focus();
738
790
  return;
@@ -774,7 +826,7 @@ const Je = {
774
826
  duration: E
775
827
  }, {
776
828
  default: Q(() => [
777
- h(v) ? (c(), m("div", ht, [
829
+ h(v) ? (c(), m("div", gt, [
778
830
  T("div", {
779
831
  class: "vf-dialog__overlay",
780
832
  "aria-hidden": "true",
@@ -790,24 +842,24 @@ const Je = {
790
842
  role: "dialog",
791
843
  tabindex: "-1"
792
844
  }, [
793
- t.title || t.description || a.$slots.header || a.$slots.description ? (c(), m("header", _t, [
845
+ t.title || t.description || a.$slots.header || a.$slots.description ? (c(), m("header", $t, [
794
846
  T("div", null, [
795
847
  B(a.$slots, "header", {}, () => [
796
848
  t.title ? (c(), m("h2", {
797
849
  key: 0,
798
850
  id: h(p),
799
851
  class: "vf-dialog__title"
800
- }, F(t.title), 9, gt)) : O("", !0)
852
+ }, F(t.title), 9, kt)) : O("", !0)
801
853
  ]),
802
854
  B(a.$slots, "description", {}, () => [
803
855
  t.description ? (c(), m("p", {
804
856
  key: 0,
805
857
  id: h(g),
806
858
  class: "vf-dialog__description"
807
- }, F(t.description), 9, bt)) : O("", !0)
859
+ }, F(t.description), 9, wt)) : O("", !0)
808
860
  ])
809
861
  ]),
810
- T("div", kt, [
862
+ T("div", Tt, [
811
863
  B(a.$slots, "actions", { close: o }),
812
864
  e.closable ? (c(), q(Ae, {
813
865
  key: 0,
@@ -818,34 +870,36 @@ const Je = {
818
870
  }, null, 8, ["icon"])) : O("", !0)
819
871
  ])
820
872
  ])) : O("", !0),
821
- a.$slots.default ? (c(), m("div", $t, [
873
+ a.$slots.default ? (c(), m("div", Vt, [
822
874
  B(a.$slots, "default", { close: o })
823
875
  ])) : O("", !0),
824
- a.$slots.footer ? (c(), m("footer", wt, [
876
+ a.$slots.footer ? (c(), m("footer", xt, [
825
877
  B(a.$slots, "footer", { close: o })
826
878
  ])) : O("", !0)
827
- ], 10, yt)
879
+ ], 10, bt)
828
880
  ])) : O("", !0)
829
881
  ]),
830
882
  _: 3
831
883
  })
832
884
  ], 8, ["to", "disabled"]));
833
885
  }
834
- }), Tt = ["aria-orientation", "role"], Cn = /* @__PURE__ */ L({
886
+ }), Ct = ["aria-orientation", "role"], Dn = /* @__PURE__ */ L({
835
887
  inheritAttrs: !1,
836
888
  __name: "VfDivider",
837
889
  props: {
838
890
  orientation: { default: "horizontal" }
839
891
  },
840
892
  setup(t) {
841
- const n = t, e = R(), i = s(() => n.orientation === "vertical"), l = s(() => N("vf-divider", `vf-divider--${n.orientation}`));
893
+ const n = t, e = R(), i = s(() => n.orientation === "vertical"), l = s(
894
+ () => N("vf-divider", `vf-divider--${n.orientation}`)
895
+ );
842
896
  return (r, u) => (c(), m("div", H({
843
897
  class: l.value,
844
898
  "aria-orientation": n.orientation,
845
899
  role: i.value ? "separator" : void 0
846
- }, h(e)), null, 16, Tt));
900
+ }, h(e)), null, 16, Ct));
847
901
  }
848
- }), Vt = { class: "vf-dropdown" }, xt = ["id", "aria-controls", "aria-expanded"], Ct = ["id", "aria-labelledby"], Bn = /* @__PURE__ */ L({
902
+ }), Bt = { class: "vf-dropdown" }, Et = ["id", "aria-controls", "aria-expanded"], Ot = ["id", "aria-labelledby"], An = /* @__PURE__ */ L({
849
903
  __name: "VfDropdown",
850
904
  props: {
851
905
  open: { type: Boolean, default: void 0 },
@@ -860,20 +914,22 @@ const Je = {
860
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 = {
861
915
  enter: U.fast,
862
916
  leave: U.fast
863
- }, v = s(() => e.disableTeleport || e.teleportTo === !1 || e.teleportTo === null), E = s(() => typeof e.teleportTo == "string" || typeof HTMLElement < "u" && e.teleportTo instanceof HTMLElement ? e.teleportTo : "body"), V = se({
917
+ }, v = s(
918
+ () => 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({
864
920
  defaultOpen: e.defaultOpen,
865
921
  open: s(() => e.open),
866
- onOpenChange: (k) => {
867
- i("update:open", k), i("openChange", k);
922
+ onOpenChange: ($) => {
923
+ i("update:open", $), i("openChange", $);
868
924
  }
869
925
  }), w = V.isOpen, I = s(() => [
870
926
  "vf-dropdown__menu",
871
927
  o.value.startsWith("top") && "vf-dropdown__menu--top"
872
928
  ]), S = s(() => {
873
- const k = y.value.arrow;
929
+ const $ = y.value.arrow;
874
930
  return {
875
- x: (k == null ? void 0 : k.x) !== void 0 && (k == null ? void 0 : k.baseX) !== void 0 ? k.x - k.baseX : 0,
876
- y: (k == null ? void 0 : k.y) !== void 0 && (k == null ? void 0 : k.baseY) !== void 0 ? k.y - k.baseY : 0
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
877
933
  };
878
934
  }), z = s(() => ({
879
935
  left: `${S.value.x}px`,
@@ -883,30 +939,39 @@ const Je = {
883
939
  o.value.startsWith("top") ? "vf-dropdown__arrow--top" : "vf-dropdown__arrow--bottom"
884
940
  ]), _ = s(
885
941
  () => e.placement === "bottom-end" ? ["bottom-end", "top-end"] : ["bottom-start", "top-start"]
886
- ), { placement: o, middlewareData: y, styles: f } = ye(l, r, {
942
+ ), {
943
+ placement: o,
944
+ middlewareData: y,
945
+ styles: f
946
+ } = ye(l, r, {
887
947
  enabled: w,
888
948
  placement: s(() => e.placement),
889
949
  middleware: s(
890
- () => [ve(10), pe({ placements: _.value }), me(), u.value ? he(u.value) : void 0].filter(
891
- (k) => k !== void 0
892
- )
950
+ () => [
951
+ ve(10),
952
+ pe({ placements: _.value }),
953
+ me(),
954
+ u.value ? he(u.value) : void 0
955
+ ].filter(($) => $ !== void 0)
893
956
  ),
894
957
  strategy: "fixed"
895
958
  });
896
959
  function a() {
897
- var k;
898
- return Array.from(((k = r.value) == null ? void 0 : k.querySelectorAll('[role="menuitem"]')) ?? []);
960
+ var $;
961
+ return Array.from(
962
+ (($ = r.value) == null ? void 0 : $.querySelectorAll('[role="menuitem"]')) ?? []
963
+ );
899
964
  }
900
965
  async function C() {
901
- var k;
902
- await ae(), (k = a()[0]) == null || k.focus();
966
+ var $;
967
+ await ae(), ($ = a()[0]) == null || $.focus();
903
968
  }
904
- function D(k = {}) {
905
- V.open(), k.focusFirstItem && C();
969
+ function D($ = {}) {
970
+ V.open(), $.focusFirstItem && C();
906
971
  }
907
972
  function M() {
908
- var k;
909
- V.close(), (k = l.value) == null || k.focus();
973
+ var $;
974
+ V.close(), ($ = l.value) == null || $.focus();
910
975
  }
911
976
  function x() {
912
977
  if (w.value) {
@@ -915,25 +980,27 @@ const Je = {
915
980
  }
916
981
  D();
917
982
  }
918
- function $(k) {
919
- (k.key === "ArrowDown" || k.key === "Enter" || k.key === " ") && (k.preventDefault(), D({ focusFirstItem: !0 }));
983
+ function k($) {
984
+ ($.key === "ArrowDown" || $.key === "Enter" || $.key === " ") && ($.preventDefault(), D({ focusFirstItem: !0 }));
920
985
  }
921
- function J(k) {
922
- var ge, be, ke, $e;
923
- const Y = a(), _e = Y.findIndex((Ie) => Ie === document.activeElement);
924
- if (k.key === "ArrowDown") {
925
- k.preventDefault(), (ge = Y[(_e + 1 + Y.length) % Y.length]) == null || ge.focus();
986
+ function J($) {
987
+ var ge, be, $e, ke;
988
+ const Y = a(), _e = Y.findIndex(
989
+ (Ie) => Ie === document.activeElement
990
+ );
991
+ if ($.key === "ArrowDown") {
992
+ $.preventDefault(), (ge = Y[(_e + 1 + Y.length) % Y.length]) == null || ge.focus();
926
993
  return;
927
994
  }
928
- if (k.key === "ArrowUp") {
929
- k.preventDefault(), (be = Y[(_e - 1 + Y.length) % Y.length]) == null || be.focus();
995
+ if ($.key === "ArrowUp") {
996
+ $.preventDefault(), (be = Y[(_e - 1 + Y.length) % Y.length]) == null || be.focus();
930
997
  return;
931
998
  }
932
- if (k.key === "Home") {
933
- k.preventDefault(), (ke = Y[0]) == null || ke.focus();
999
+ if ($.key === "Home") {
1000
+ $.preventDefault(), ($e = Y[0]) == null || $e.focus();
934
1001
  return;
935
1002
  }
936
- k.key === "End" && (k.preventDefault(), ($e = Y[Y.length - 1]) == null || $e.focus());
1003
+ $.key === "End" && ($.preventDefault(), (ke = Y[Y.length - 1]) == null || ke.focus());
937
1004
  }
938
1005
  function ie() {
939
1006
  e.closeOnSelect && M();
@@ -948,13 +1015,13 @@ const Je = {
948
1015
  event: "click"
949
1016
  }
950
1017
  ), fe(
951
- (k) => {
952
- w.value && (k.preventDefault(), M());
1018
+ ($) => {
1019
+ w.value && ($.preventDefault(), M());
953
1020
  },
954
1021
  {
955
1022
  enabled: w
956
1023
  }
957
- ), (k, Y) => (c(), m("div", Vt, [
1024
+ ), ($, Y) => (c(), m("div", Bt, [
958
1025
  T("div", {
959
1026
  id: h(g),
960
1027
  ref_key: "triggerRef",
@@ -965,13 +1032,13 @@ const Je = {
965
1032
  "aria-haspopup": "menu",
966
1033
  tabindex: "0",
967
1034
  onClick: x,
968
- onKeydown: $
1035
+ onKeydown: k
969
1036
  }, [
970
- B(k.$slots, "trigger", {
1037
+ B($.$slots, "trigger", {
971
1038
  open: h(w),
972
1039
  toggle: x
973
1040
  })
974
- ], 40, xt),
1041
+ ], 40, Et),
975
1042
  (c(), q(le, {
976
1043
  to: E.value,
977
1044
  disabled: v.value
@@ -1001,18 +1068,18 @@ const Je = {
1001
1068
  style: W(z.value),
1002
1069
  "aria-hidden": "true"
1003
1070
  }, null, 6),
1004
- B(k.$slots, "default", {
1071
+ B($.$slots, "default", {
1005
1072
  close: M,
1006
1073
  open: h(w)
1007
1074
  })
1008
- ], 46, Ct)) : O("", !0)
1075
+ ], 46, Ot)) : O("", !0)
1009
1076
  ]),
1010
1077
  _: 3
1011
1078
  })
1012
1079
  ], 8, ["to", "disabled"]))
1013
1080
  ]));
1014
1081
  }
1015
- }), Bt = ["value", "aria-invalid"], En = /* @__PURE__ */ L({
1082
+ }), Dt = ["value", "aria-invalid"], In = /* @__PURE__ */ L({
1016
1083
  inheritAttrs: !1,
1017
1084
  __name: "VfInput",
1018
1085
  props: {
@@ -1036,9 +1103,9 @@ const Je = {
1036
1103
  class: r.value,
1037
1104
  value: e.modelValue,
1038
1105
  "aria-invalid": e.invalid || void 0
1039
- }, h(l), { onInput: u }), null, 16, Bt));
1106
+ }, h(l), { onInput: u }), null, 16, Dt));
1040
1107
  }
1041
- }), On = /* @__PURE__ */ L({
1108
+ }), Ln = /* @__PURE__ */ L({
1042
1109
  inheritAttrs: !1,
1043
1110
  __name: "VfLink",
1044
1111
  props: {
@@ -1077,22 +1144,22 @@ const Je = {
1077
1144
  _: 3
1078
1145
  }, 16));
1079
1146
  }
1080
- }), Et = { class: "vf-nav-menu__node" }, Ot = { class: "vf-nav-menu__item-content" }, Dt = { class: "vf-nav-menu__group-label" }, At = ["aria-expanded", "disabled"], It = { class: "vf-nav-menu__item-content" }, Lt = {
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 = {
1081
1148
  key: 0,
1082
1149
  class: "vf-nav-menu__leading-icon",
1083
1150
  "aria-hidden": "true"
1084
- }, St = { class: "vf-nav-menu__label" }, zt = { class: "vf-nav-menu__item-content" }, Mt = {
1151
+ }, Pt = { class: "vf-nav-menu__label" }, Nt = { class: "vf-nav-menu__item-content" }, Ft = {
1085
1152
  key: 0,
1086
1153
  class: "vf-nav-menu__leading-icon",
1087
1154
  "aria-hidden": "true"
1088
- }, Pt = { class: "vf-nav-menu__label" }, Nt = ["aria-current", "disabled"], Ft = { class: "vf-nav-menu__item-content" }, Rt = {
1155
+ }, Rt = { class: "vf-nav-menu__label" }, Ht = ["aria-current", "disabled"], Kt = { class: "vf-nav-menu__item-content" }, jt = {
1089
1156
  key: 0,
1090
1157
  class: "vf-nav-menu__leading-icon",
1091
1158
  "aria-hidden": "true"
1092
- }, Ht = { class: "vf-nav-menu__label" }, Kt = {
1159
+ }, qt = { class: "vf-nav-menu__label" }, Wt = {
1093
1160
  key: 4,
1094
1161
  class: "vf-nav-menu__list vf-nav-menu__list--nested"
1095
- }, jt = { class: "vf-nav-menu__list vf-nav-menu__list--nested" }, qt = /* @__PURE__ */ L({
1162
+ }, Ut = { class: "vf-nav-menu__list vf-nav-menu__list--nested" }, Yt = /* @__PURE__ */ L({
1096
1163
  name: "VfNavMenuItemNode",
1097
1164
  __name: "VfNavMenuItemNode",
1098
1165
  props: {
@@ -1107,7 +1174,11 @@ const Je = {
1107
1174
  const e = t, i = n, l = s(() => {
1108
1175
  var f;
1109
1176
  return !!((f = e.item.children) != null && f.length);
1110
- }), r = s(() => e.item.kind === "group"), u = s(() => e.expandedValues.includes(e.item.value)), p = s(() => e.activeValue === e.item.value), g = s(() => e.item.href !== void 0 || e.item.to !== void 0), 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 ? {
1177
+ }), r = s(() => e.item.kind === "group"), u = s(
1178
+ () => e.expandedValues.includes(e.item.value)
1179
+ ), p = s(() => e.activeValue === e.item.value), g = s(
1180
+ () => 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 ? {
1111
1182
  to: e.item.to,
1112
1183
  target: e.item.target,
1113
1184
  rel: v.value
@@ -1162,33 +1233,37 @@ const Je = {
1162
1233
  a.style.transition = "", a.style.overflow = "", a.style.height = "", a.style.opacity = "";
1163
1234
  }
1164
1235
  return (f, a) => {
1165
- const C = Re("VfNavMenuItemNode", !0);
1166
- return c(), m("li", Et, [
1236
+ const C = He("VfNavMenuItemNode", !0);
1237
+ return c(), m("li", At, [
1167
1238
  r.value ? (c(), m("div", {
1168
1239
  key: 0,
1169
1240
  class: P(["vf-nav-menu__group", `vf-nav-menu__group--level-${t.level}`]),
1170
1241
  style: W({ "--vf-nav-menu-level": String(t.level) })
1171
1242
  }, [
1172
- T("span", Ot, [
1173
- T("span", Dt, F(t.item.label), 1)
1243
+ T("span", It, [
1244
+ T("span", Lt, F(t.item.label), 1)
1174
1245
  ])
1175
1246
  ], 6)) : l.value ? (c(), m("button", {
1176
1247
  key: 1,
1177
- class: P(["vf-nav-menu__item", "vf-nav-menu__item--branch", u.value && "vf-nav-menu__item--expanded"]),
1248
+ class: P([
1249
+ "vf-nav-menu__item",
1250
+ "vf-nav-menu__item--branch",
1251
+ u.value && "vf-nav-menu__item--expanded"
1252
+ ]),
1178
1253
  style: W({ "--vf-nav-menu-level": String(t.level) }),
1179
1254
  "aria-expanded": u.value,
1180
1255
  disabled: t.item.disabled,
1181
1256
  type: "button",
1182
1257
  onClick: V
1183
1258
  }, [
1184
- T("span", It, [
1185
- t.item.leadingIcon ? (c(), m("span", Lt, [
1259
+ T("span", zt, [
1260
+ t.item.leadingIcon ? (c(), m("span", Mt, [
1186
1261
  j(h(te), {
1187
1262
  icon: t.item.leadingIcon,
1188
1263
  size: "1rem"
1189
1264
  }, null, 8, ["icon"])
1190
1265
  ])) : O("", !0),
1191
- T("span", St, F(t.item.label), 1)
1266
+ T("span", Pt, F(t.item.label), 1)
1192
1267
  ]),
1193
1268
  T("span", {
1194
1269
  class: P(["vf-nav-menu__icon", u.value && "vf-nav-menu__icon--open"]),
@@ -1199,44 +1274,52 @@ const Je = {
1199
1274
  size: "0.875rem"
1200
1275
  }, null, 8, ["icon"])
1201
1276
  ], 2)
1202
- ], 14, At)) : g.value ? (c(), q(re(b.value), H({ key: 2 }, E.value, {
1203
- class: ["vf-nav-menu__item", p.value && "vf-nav-menu__item--active", t.item.disabled && "vf-nav-menu__item--disabled"],
1277
+ ], 14, St)) : g.value ? (c(), q(re(b.value), H({ key: 2 }, E.value, {
1278
+ class: [
1279
+ "vf-nav-menu__item",
1280
+ p.value && "vf-nav-menu__item--active",
1281
+ t.item.disabled && "vf-nav-menu__item--disabled"
1282
+ ],
1204
1283
  style: { "--vf-nav-menu-level": String(t.level) },
1205
1284
  "aria-current": p.value ? "page" : void 0,
1206
1285
  onClick: w
1207
1286
  }), {
1208
1287
  default: Q(() => [
1209
- T("span", zt, [
1210
- t.item.leadingIcon ? (c(), m("span", Mt, [
1288
+ T("span", Nt, [
1289
+ t.item.leadingIcon ? (c(), m("span", Ft, [
1211
1290
  j(h(te), {
1212
1291
  icon: t.item.leadingIcon,
1213
1292
  size: "1rem"
1214
1293
  }, null, 8, ["icon"])
1215
1294
  ])) : O("", !0),
1216
- T("span", Pt, F(t.item.label), 1)
1295
+ T("span", Rt, F(t.item.label), 1)
1217
1296
  ])
1218
1297
  ]),
1219
1298
  _: 1
1220
1299
  }, 16, ["class", "style", "aria-current"])) : (c(), m("button", {
1221
1300
  key: 3,
1222
- class: P(["vf-nav-menu__item", p.value && "vf-nav-menu__item--active", t.item.disabled && "vf-nav-menu__item--disabled"]),
1301
+ class: P([
1302
+ "vf-nav-menu__item",
1303
+ p.value && "vf-nav-menu__item--active",
1304
+ t.item.disabled && "vf-nav-menu__item--disabled"
1305
+ ]),
1223
1306
  style: W({ "--vf-nav-menu-level": String(t.level) }),
1224
1307
  "aria-current": p.value ? "page" : void 0,
1225
1308
  disabled: t.item.disabled,
1226
1309
  type: "button",
1227
1310
  onClick: a[0] || (a[0] = (D) => w())
1228
1311
  }, [
1229
- T("span", Ft, [
1230
- t.item.leadingIcon ? (c(), m("span", Rt, [
1312
+ T("span", Kt, [
1313
+ t.item.leadingIcon ? (c(), m("span", jt, [
1231
1314
  j(h(te), {
1232
1315
  icon: t.item.leadingIcon,
1233
1316
  size: "1rem"
1234
1317
  }, null, 8, ["icon"])
1235
1318
  ])) : O("", !0),
1236
- T("span", Ht, F(t.item.label), 1)
1319
+ T("span", qt, F(t.item.label), 1)
1237
1320
  ])
1238
- ], 14, Nt)),
1239
- l.value && r.value ? (c(), m("ul", Kt, [
1321
+ ], 14, Ht)),
1322
+ l.value && r.value ? (c(), m("ul", Wt, [
1240
1323
  (c(!0), m(ue, null, ce(t.item.children, (D) => (c(), q(C, {
1241
1324
  key: D.value,
1242
1325
  item: D,
@@ -1259,9 +1342,12 @@ const Je = {
1259
1342
  default: Q(() => [
1260
1343
  u.value ? (c(), m("div", {
1261
1344
  key: 0,
1262
- class: P(["vf-nav-menu__collapse", `vf-nav-menu__collapse--level-${t.level}`])
1345
+ class: P([
1346
+ "vf-nav-menu__collapse",
1347
+ `vf-nav-menu__collapse--level-${t.level}`
1348
+ ])
1263
1349
  }, [
1264
- T("ul", jt, [
1350
+ T("ul", Ut, [
1265
1351
  (c(!0), m(ue, null, ce(t.item.children, (D) => (c(), q(C, {
1266
1352
  key: D.value,
1267
1353
  item: D,
@@ -1280,7 +1366,7 @@ const Je = {
1280
1366
  ]);
1281
1367
  };
1282
1368
  }
1283
- }), Wt = ["aria-label"], Ut = { class: "vf-nav-menu__list" }, Dn = /* @__PURE__ */ L({
1369
+ }), Xt = ["aria-label"], Gt = { class: "vf-nav-menu__list" }, Sn = /* @__PURE__ */ L({
1284
1370
  __name: "VfNavMenu",
1285
1371
  props: {
1286
1372
  items: {},
@@ -1293,12 +1379,18 @@ const Je = {
1293
1379
  setup(t, { emit: n }) {
1294
1380
  const e = t, i = n, l = A(e.defaultValue), r = s(() => e.modelValue ?? l.value), u = A([]);
1295
1381
  function p(o, y) {
1296
- return o.some((f) => {
1297
- var a;
1298
- return y(f) || ((a = f.children) != null && a.length ? p(f.children, y) : !1);
1299
- });
1382
+ return o.some(
1383
+ (f) => {
1384
+ var a;
1385
+ return y(f) || ((a = f.children) != null && a.length ? p(f.children, y) : !1);
1386
+ }
1387
+ );
1300
1388
  }
1301
- const g = s(() => p(e.items, (o) => o.kind === "group")), b = s(() => p(e.items, (o) => !!o.leadingIcon)), v = s(() => !g.value && !b.value);
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);
1302
1394
  function E(o) {
1303
1395
  var y;
1304
1396
  return o.kind !== "group" && !!((y = o.children) != null && y.length);
@@ -1311,7 +1403,10 @@ const Je = {
1311
1403
  if (C.value === y)
1312
1404
  return f;
1313
1405
  if ((a = C.children) != null && a.length) {
1314
- const D = V(C.children, y, [...f, C.value]);
1406
+ const D = V(C.children, y, [
1407
+ ...f,
1408
+ C.value
1409
+ ]);
1315
1410
  if (D.length)
1316
1411
  return D;
1317
1412
  }
@@ -1320,7 +1415,9 @@ const Je = {
1320
1415
  }
1321
1416
  function w() {
1322
1417
  const o = V(e.items, r.value);
1323
- u.value = Array.from(/* @__PURE__ */ new Set([...u.value, ...o]));
1418
+ u.value = Array.from(
1419
+ /* @__PURE__ */ new Set([...u.value, ...o])
1420
+ );
1324
1421
  }
1325
1422
  function I(o, y) {
1326
1423
  var D;
@@ -1340,17 +1437,26 @@ const Je = {
1340
1437
  e.modelValue === void 0 && (l.value = o), i("update:modelValue", o), i("change", o);
1341
1438
  }
1342
1439
  function d(o) {
1343
- z(o.value), u.value = Array.from(/* @__PURE__ */ new Set([...u.value, ...V(e.items, o.value)])), i("select", o);
1440
+ z(o.value), u.value = Array.from(
1441
+ /* @__PURE__ */ new Set([
1442
+ ...u.value,
1443
+ ...V(e.items, o.value)
1444
+ ])
1445
+ ), i("select", o);
1344
1446
  }
1345
1447
  function _(o) {
1346
1448
  const { value: y, parentPath: f } = o;
1347
1449
  if (u.value.includes(y)) {
1348
- u.value = u.value.filter((a) => a !== y);
1450
+ u.value = u.value.filter(
1451
+ (a) => a !== y
1452
+ );
1349
1453
  return;
1350
1454
  }
1351
1455
  if (e.expandMode === "single") {
1352
1456
  const C = I(e.items, f).filter((D) => D.value !== y && E(D)).flatMap((D) => S([D]));
1353
- u.value = u.value.filter((D) => !C.includes(D));
1457
+ u.value = u.value.filter(
1458
+ (D) => !C.includes(D)
1459
+ );
1354
1460
  }
1355
1461
  u.value = [...u.value, y];
1356
1462
  }
@@ -1364,8 +1470,8 @@ const Je = {
1364
1470
  class: P(["vf-nav-menu", v.value && "vf-nav-menu--simple"]),
1365
1471
  "aria-label": t.ariaLabel
1366
1472
  }, [
1367
- T("ul", Ut, [
1368
- (c(!0), m(ue, null, ce(t.items, (f) => (c(), q(qt, {
1473
+ T("ul", Gt, [
1474
+ (c(!0), m(ue, null, ce(t.items, (f) => (c(), q(Yt, {
1369
1475
  key: f.value,
1370
1476
  item: f,
1371
1477
  level: 0,
@@ -1376,9 +1482,9 @@ const Je = {
1376
1482
  onSelect: d
1377
1483
  }, null, 8, ["item", "active-value", "expanded-values"]))), 128))
1378
1484
  ])
1379
- ], 10, Wt));
1485
+ ], 10, Xt));
1380
1486
  }
1381
- }), Yt = { key: 0 }, Xt = { class: "vf-panel__title" }, An = /* @__PURE__ */ L({
1487
+ }), Qt = { key: 0 }, Jt = { class: "vf-panel__title" }, zn = /* @__PURE__ */ L({
1382
1488
  inheritAttrs: !1,
1383
1489
  __name: "VfPanel",
1384
1490
  props: {
@@ -1386,17 +1492,19 @@ const Je = {
1386
1492
  subtle: { type: Boolean, default: !1 }
1387
1493
  },
1388
1494
  setup(t) {
1389
- const n = t, e = R(), i = s(() => N("vf-panel", n.subtle && "vf-panel--subtle"));
1495
+ const n = t, e = R(), i = s(
1496
+ () => N("vf-panel", n.subtle && "vf-panel--subtle")
1497
+ );
1390
1498
  return (l, r) => (c(), m("section", H({ class: i.value }, h(e)), [
1391
- n.title || l.$slots.header ? (c(), m("header", Yt, [
1499
+ n.title || l.$slots.header ? (c(), m("header", Qt, [
1392
1500
  B(l.$slots, "header", {}, () => [
1393
- T("h3", Xt, F(n.title), 1)
1501
+ T("h3", Jt, F(n.title), 1)
1394
1502
  ])
1395
1503
  ])) : O("", !0),
1396
1504
  B(l.$slots, "default")
1397
1505
  ], 16));
1398
1506
  }
1399
- }), Gt = { class: "vf-popover" }, Qt = ["id", "aria-controls", "aria-expanded"], Jt = ["id", "aria-labelledby"], In = /* @__PURE__ */ L({
1507
+ }), Zt = { class: "vf-popover" }, en = ["id", "aria-controls", "aria-expanded"], tn = ["id", "aria-labelledby"], Mn = /* @__PURE__ */ L({
1400
1508
  __name: "VfPopover",
1401
1509
  props: {
1402
1510
  open: { type: Boolean, default: void 0 },
@@ -1412,31 +1520,40 @@ const Je = {
1412
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 = {
1413
1521
  enter: U.fast,
1414
1522
  leave: U.fast
1415
- }, v = s(() => e.disableTeleport || e.teleportTo === !1 || e.teleportTo === null), E = s(() => typeof e.teleportTo == "string" || typeof HTMLElement < "u" && e.teleportTo instanceof HTMLElement ? e.teleportTo : "body"), V = se({
1523
+ }, v = s(
1524
+ () => 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({
1416
1526
  defaultOpen: e.defaultOpen,
1417
1527
  open: s(() => e.open),
1418
- onOpenChange: ($) => {
1419
- i("update:open", $), i("openChange", $);
1528
+ onOpenChange: (k) => {
1529
+ i("update:open", k), i("openChange", k);
1420
1530
  }
1421
1531
  }), w = V.isOpen, I = s(
1422
1532
  () => e.placement === "bottom-end" ? ["bottom-end", "top-end"] : ["bottom-start", "top-start"]
1423
- ), { placement: S, middlewareData: z, styles: d } = ye(l, r, {
1533
+ ), {
1534
+ placement: S,
1535
+ middlewareData: z,
1536
+ styles: d
1537
+ } = ye(l, r, {
1424
1538
  enabled: w,
1425
1539
  placement: s(() => e.placement),
1426
1540
  middleware: s(
1427
- () => [ve(10), pe({ placements: I.value }), me(), u.value ? he(u.value) : void 0].filter(
1428
- ($) => $ !== void 0
1429
- )
1541
+ () => [
1542
+ ve(10),
1543
+ pe({ placements: I.value }),
1544
+ me(),
1545
+ u.value ? he(u.value) : void 0
1546
+ ].filter((k) => k !== void 0)
1430
1547
  ),
1431
1548
  strategy: "fixed"
1432
1549
  }), _ = s(() => [
1433
1550
  "vf-popover__content",
1434
1551
  S.value.startsWith("top") && "vf-popover__content--top"
1435
1552
  ]), o = s(() => {
1436
- const $ = z.value.arrow;
1553
+ const k = z.value.arrow;
1437
1554
  return {
1438
- x: ($ == null ? void 0 : $.x) !== void 0 && ($ == null ? void 0 : $.baseX) !== void 0 ? $.x - $.baseX : 0,
1439
- y: ($ == null ? void 0 : $.y) !== void 0 && ($ == null ? void 0 : $.baseY) !== void 0 ? $.y - $.baseY : 0
1555
+ x: (k == null ? void 0 : k.x) !== void 0 && (k == null ? void 0 : k.baseX) !== void 0 ? k.x - k.baseX : 0,
1556
+ y: (k == null ? void 0 : k.y) !== void 0 && (k == null ? void 0 : k.baseY) !== void 0 ? k.y - k.baseY : 0
1440
1557
  };
1441
1558
  }), y = s(() => ({
1442
1559
  left: `${o.value.x}px`,
@@ -1448,9 +1565,11 @@ const Je = {
1448
1565
  async function a() {
1449
1566
  var J, ie;
1450
1567
  await ae();
1451
- const $ = (J = r.value) == null ? void 0 : J.querySelector("[autofocus], [data-autofocus]");
1452
- if ($) {
1453
- $.focus();
1568
+ const k = (J = r.value) == null ? void 0 : J.querySelector(
1569
+ "[autofocus], [data-autofocus]"
1570
+ );
1571
+ if (k) {
1572
+ k.focus();
1454
1573
  return;
1455
1574
  }
1456
1575
  (ie = r.value) == null || ie.focus();
@@ -1459,8 +1578,8 @@ const Je = {
1459
1578
  V.open(), a();
1460
1579
  }
1461
1580
  function D() {
1462
- var $;
1463
- V.close(), ($ = l.value) == null || $.focus();
1581
+ var k;
1582
+ V.close(), (k = l.value) == null || k.focus();
1464
1583
  }
1465
1584
  function M() {
1466
1585
  if (w.value) {
@@ -1469,8 +1588,8 @@ const Je = {
1469
1588
  }
1470
1589
  C();
1471
1590
  }
1472
- function x($) {
1473
- ($.key === "Enter" || $.key === " ") && ($.preventDefault(), M()), $.key === "ArrowDown" && ($.preventDefault(), C());
1591
+ function x(k) {
1592
+ (k.key === "Enter" || k.key === " ") && (k.preventDefault(), M()), k.key === "ArrowDown" && (k.preventDefault(), C());
1474
1593
  }
1475
1594
  return Oe(
1476
1595
  [l, r],
@@ -1482,13 +1601,13 @@ const Je = {
1482
1601
  event: "click"
1483
1602
  }
1484
1603
  ), fe(
1485
- ($) => {
1486
- !w.value || !e.closeOnEscape || ($.preventDefault(), D());
1604
+ (k) => {
1605
+ !w.value || !e.closeOnEscape || (k.preventDefault(), D());
1487
1606
  },
1488
1607
  {
1489
1608
  enabled: w
1490
1609
  }
1491
- ), ($, J) => (c(), m("div", Gt, [
1610
+ ), (k, J) => (c(), m("div", Zt, [
1492
1611
  T("div", {
1493
1612
  id: h(g),
1494
1613
  ref_key: "triggerRef",
@@ -1501,11 +1620,11 @@ const Je = {
1501
1620
  onClick: M,
1502
1621
  onKeydown: x
1503
1622
  }, [
1504
- B($.$slots, "trigger", {
1623
+ B(k.$slots, "trigger", {
1505
1624
  open: h(w),
1506
1625
  toggle: M
1507
1626
  })
1508
- ], 40, Qt),
1627
+ ], 40, en),
1509
1628
  (c(), q(le, {
1510
1629
  to: E.value,
1511
1630
  disabled: v.value
@@ -1534,21 +1653,21 @@ const Je = {
1534
1653
  style: W(y.value),
1535
1654
  "aria-hidden": "true"
1536
1655
  }, null, 6),
1537
- B($.$slots, "default", {
1656
+ B(k.$slots, "default", {
1538
1657
  open: h(w),
1539
1658
  close: D
1540
1659
  })
1541
- ], 14, Jt)) : O("", !0)
1660
+ ], 14, tn)) : O("", !0)
1542
1661
  ]),
1543
1662
  _: 3
1544
1663
  })
1545
1664
  ], 8, ["to", "disabled"]))
1546
1665
  ]));
1547
1666
  }
1548
- }), Zt = ["checked", "disabled", "value", "aria-invalid"], en = {
1667
+ }), nn = ["checked", "disabled", "value", "aria-invalid"], an = {
1549
1668
  key: 0,
1550
1669
  class: "vf-radio__content"
1551
- }, Ln = /* @__PURE__ */ L({
1670
+ }, Pn = /* @__PURE__ */ L({
1552
1671
  inheritAttrs: !1,
1553
1672
  __name: "VfRadio",
1554
1673
  props: {
@@ -1570,7 +1689,11 @@ const Je = {
1570
1689
  e.disabled && "vf-radio--disabled",
1571
1690
  l.class
1572
1691
  )
1573
- ), p = s(() => l.style), g = s(() => Object.fromEntries(Object.entries(l).filter(([v]) => v !== "class" && v !== "style")));
1692
+ ), p = s(() => l.style), g = s(
1693
+ () => Object.fromEntries(
1694
+ Object.entries(l).filter(([v]) => v !== "class" && v !== "style")
1695
+ )
1696
+ );
1574
1697
  function b(v) {
1575
1698
  v.target.checked && (i("update:modelValue", e.value), i("change", e.value));
1576
1699
  }
@@ -1585,24 +1708,24 @@ const Je = {
1585
1708
  disabled: e.disabled,
1586
1709
  value: e.value,
1587
1710
  "aria-invalid": e.invalid || void 0
1588
- }, g.value, { onChange: b }), null, 16, Zt),
1711
+ }, g.value, { onChange: b }), null, 16, nn),
1589
1712
  E[0] || (E[0] = T("span", {
1590
1713
  class: "vf-radio__control",
1591
1714
  "aria-hidden": "true"
1592
1715
  }, [
1593
1716
  T("span", { class: "vf-radio__dot" })
1594
1717
  ], -1)),
1595
- t.label || v.$slots.default ? (c(), m("span", en, [
1718
+ t.label || v.$slots.default ? (c(), m("span", an, [
1596
1719
  B(v.$slots, "default", {}, () => [
1597
1720
  oe(F(t.label), 1)
1598
1721
  ])
1599
1722
  ])) : O("", !0)
1600
1723
  ], 6));
1601
1724
  }
1602
- }), tn = ["checked", "disabled"], nn = {
1725
+ }), on = ["checked", "disabled"], ln = {
1603
1726
  key: 0,
1604
1727
  class: "vf-switch__content"
1605
- }, Sn = /* @__PURE__ */ L({
1728
+ }, Nn = /* @__PURE__ */ L({
1606
1729
  inheritAttrs: !1,
1607
1730
  __name: "VfSwitch",
1608
1731
  props: {
@@ -1621,7 +1744,11 @@ const Je = {
1621
1744
  e.disabled && "vf-switch--disabled",
1622
1745
  l.class
1623
1746
  )
1624
- ), u = s(() => l.style), p = s(() => Object.fromEntries(Object.entries(l).filter(([b]) => b !== "class" && b !== "style")));
1747
+ ), u = s(() => l.style), p = s(
1748
+ () => Object.fromEntries(
1749
+ Object.entries(l).filter(([b]) => b !== "class" && b !== "style")
1750
+ )
1751
+ );
1625
1752
  function g(b) {
1626
1753
  const v = b.target.checked;
1627
1754
  i("update:modelValue", v), i("change", v);
@@ -1636,21 +1763,21 @@ const Je = {
1636
1763
  role: "switch",
1637
1764
  checked: e.modelValue,
1638
1765
  disabled: e.disabled
1639
- }, p.value, { onChange: g }), null, 16, tn),
1766
+ }, p.value, { onChange: g }), null, 16, on),
1640
1767
  v[0] || (v[0] = T("span", {
1641
1768
  class: "vf-switch__control",
1642
1769
  "aria-hidden": "true"
1643
1770
  }, [
1644
1771
  T("span", { class: "vf-switch__thumb" })
1645
1772
  ], -1)),
1646
- t.label || b.$slots.default ? (c(), m("span", nn, [
1773
+ t.label || b.$slots.default ? (c(), m("span", ln, [
1647
1774
  B(b.$slots, "default", {}, () => [
1648
1775
  oe(F(t.label), 1)
1649
1776
  ])
1650
1777
  ])) : O("", !0)
1651
1778
  ], 6));
1652
1779
  }
1653
- }), zn = /* @__PURE__ */ L({
1780
+ }), Fn = /* @__PURE__ */ L({
1654
1781
  inheritAttrs: !1,
1655
1782
  __name: "VfTag",
1656
1783
  props: {
@@ -1664,11 +1791,11 @@ const Je = {
1664
1791
  B(l.$slots, "default")
1665
1792
  ], 16));
1666
1793
  }
1667
- }), an = { class: "vf-tabs" }, on = {
1794
+ }), sn = { class: "vf-tabs" }, rn = {
1668
1795
  class: "vf-tabs__list",
1669
1796
  role: "tablist",
1670
1797
  "aria-orientation": "horizontal"
1671
- }, ln = ["id", "aria-controls", "aria-selected", "disabled", "tabindex", "onClick", "onKeydown"], sn = ["id", "aria-labelledby"], Mn = /* @__PURE__ */ L({
1798
+ }, un = ["id", "aria-controls", "aria-selected", "disabled", "tabindex", "onClick", "onKeydown"], cn = ["id", "aria-labelledby"], Rn = /* @__PURE__ */ L({
1672
1799
  __name: "VfTabs",
1673
1800
  props: {
1674
1801
  items: {},
@@ -1677,14 +1804,20 @@ const Je = {
1677
1804
  },
1678
1805
  emits: ["update:modelValue", "change"],
1679
1806
  setup(t, { emit: n }) {
1680
- const e = t, i = n, l = G({ prefix: "vf-tabs" }), r = A([]), u = s(() => {
1681
- var d;
1682
- return (d = e.items.find((_) => !_.disabled)) == null ? void 0 : d.value;
1683
- }), p = A(e.defaultValue ?? u.value), g = s(() => e.modelValue !== void 0), b = s(() => e.modelValue ?? p.value ?? u.value);
1807
+ const e = t, i = n, l = G({ prefix: "vf-tabs" }), r = A([]), u = s(
1808
+ () => {
1809
+ var d;
1810
+ return (d = e.items.find((_) => !_.disabled)) == null ? void 0 : d.value;
1811
+ }
1812
+ ), p = A(e.defaultValue ?? u.value), g = s(() => e.modelValue !== void 0), b = s(
1813
+ () => e.modelValue ?? p.value ?? u.value
1814
+ );
1684
1815
  Z(
1685
1816
  () => e.items,
1686
1817
  (d) => {
1687
- !d.some((o) => o.value === b.value && !o.disabled) && u.value && v(u.value);
1818
+ !d.some(
1819
+ (o) => o.value === b.value && !o.disabled
1820
+ ) && u.value && v(u.value);
1688
1821
  },
1689
1822
  { deep: !0 }
1690
1823
  );
@@ -1703,7 +1836,9 @@ const Je = {
1703
1836
  (o = r.value[_]) == null || o.focus();
1704
1837
  }
1705
1838
  function I(d, _) {
1706
- const o = V(), y = o.findIndex((f) => f.value === _.value);
1839
+ const o = V(), y = o.findIndex(
1840
+ (f) => f.value === _.value
1841
+ );
1707
1842
  if (y !== -1) {
1708
1843
  if (d.key === "ArrowRight" || d.key === "ArrowDown") {
1709
1844
  d.preventDefault();
@@ -1736,8 +1871,8 @@ const Je = {
1736
1871
  function z(d) {
1737
1872
  return `${l.value}-panel-${d}`;
1738
1873
  }
1739
- return (d, _) => (c(), m("div", an, [
1740
- T("div", on, [
1874
+ return (d, _) => (c(), m("div", sn, [
1875
+ T("div", rn, [
1741
1876
  (c(!0), m(ue, null, ce(t.items, (o, y) => (c(), m("button", {
1742
1877
  id: S(o.value),
1743
1878
  key: o.value,
@@ -1754,7 +1889,7 @@ const Je = {
1754
1889
  type: "button",
1755
1890
  onClick: (f) => E(o),
1756
1891
  onKeydown: (f) => I(f, o)
1757
- }, F(o.label), 41, ln))), 128))
1892
+ }, F(o.label), 41, un))), 128))
1758
1893
  ]),
1759
1894
  b.value ? (c(), m("div", {
1760
1895
  key: 0,
@@ -1765,10 +1900,10 @@ const Je = {
1765
1900
  tabindex: "0"
1766
1901
  }, [
1767
1902
  B(d.$slots, "panel", Ve(xe({ activeValue: b.value })))
1768
- ], 8, sn)) : O("", !0)
1903
+ ], 8, cn)) : O("", !0)
1769
1904
  ]));
1770
1905
  }
1771
- }), rn = ["value", "aria-invalid"], Pn = /* @__PURE__ */ L({
1906
+ }), dn = ["value", "aria-invalid"], Hn = /* @__PURE__ */ L({
1772
1907
  inheritAttrs: !1,
1773
1908
  __name: "VfTextarea",
1774
1909
  props: {
@@ -1792,9 +1927,9 @@ const Je = {
1792
1927
  class: r.value,
1793
1928
  value: e.modelValue,
1794
1929
  "aria-invalid": e.invalid || void 0
1795
- }, h(l), { onInput: u }), null, 16, rn));
1930
+ }, h(l), { onInput: u }), null, 16, dn));
1796
1931
  }
1797
- }), un = ["aria-describedby"], cn = ["id"], Nn = /* @__PURE__ */ L({
1932
+ }), fn = ["aria-describedby"], vn = ["id"], Kn = /* @__PURE__ */ L({
1798
1933
  __name: "VfTooltip",
1799
1934
  props: {
1800
1935
  text: { default: void 0 },
@@ -1807,26 +1942,30 @@ const Je = {
1807
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 = {
1808
1943
  enter: U.fast,
1809
1944
  leave: U.fast
1810
- }, b = s(() => n.disableTeleport || n.teleportTo === !1 || n.teleportTo === null), v = s(() => typeof n.teleportTo == "string" || typeof HTMLElement < "u" && n.teleportTo instanceof HTMLElement ? n.teleportTo : "body"), { placement: E, middlewareData: V, styles: w, cleanup: I } = ye(
1811
- r,
1812
- u,
1813
- {
1814
- enabled: e,
1815
- placement: s(() => n.placement),
1816
- middleware: s(
1817
- () => [ve(10), pe({ placements: ["top", "bottom"] }), me(), p.value ? he(p.value) : void 0].filter(
1818
- (a) => a !== void 0
1819
- )
1820
- ),
1821
- strategy: "fixed"
1822
- }
1823
- ), S = s(
1824
- () => [
1825
- "vf-tooltip__content",
1826
- E.value.startsWith("bottom") && "vf-tooltip__content--bottom",
1827
- E.value.startsWith("top") && "vf-tooltip__content--top"
1828
- ]
1829
- ), z = s(() => {
1945
+ }, b = s(
1946
+ () => 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,
1950
+ styles: w,
1951
+ cleanup: I
1952
+ } = ye(r, u, {
1953
+ enabled: e,
1954
+ placement: s(() => n.placement),
1955
+ middleware: s(
1956
+ () => [
1957
+ ve(10),
1958
+ pe({ placements: ["top", "bottom"] }),
1959
+ me(),
1960
+ p.value ? he(p.value) : void 0
1961
+ ].filter((a) => a !== void 0)
1962
+ ),
1963
+ strategy: "fixed"
1964
+ }), S = s(() => [
1965
+ "vf-tooltip__content",
1966
+ E.value.startsWith("bottom") && "vf-tooltip__content--bottom",
1967
+ E.value.startsWith("top") && "vf-tooltip__content--top"
1968
+ ]), z = s(() => {
1830
1969
  const a = V.value.arrow;
1831
1970
  return {
1832
1971
  x: (a == null ? void 0 : a.x) !== void 0 && (a == null ? void 0 : a.baseX) !== void 0 ? a.x - a.baseX : 0,
@@ -1863,7 +2002,7 @@ const Je = {
1863
2002
  "aria-describedby": e.value ? h(i) : void 0
1864
2003
  }, [
1865
2004
  B(a.$slots, "default")
1866
- ], 8, un),
2005
+ ], 8, fn),
1867
2006
  (c(), q(le, {
1868
2007
  to: v.value,
1869
2008
  disabled: b.value
@@ -1893,7 +2032,7 @@ const Je = {
1893
2032
  style: W(_.value),
1894
2033
  "aria-hidden": "true"
1895
2034
  }, null, 6)
1896
- ], 14, cn)) : O("", !0)
2035
+ ], 14, vn)) : O("", !0)
1897
2036
  ]),
1898
2037
  _: 3
1899
2038
  })
@@ -1902,39 +2041,39 @@ const Je = {
1902
2041
  }
1903
2042
  });
1904
2043
  export {
1905
- gn as VfAccordion,
1906
- bn as VfAlert,
1907
- kn as VfBadge,
1908
- $n as VfButton,
1909
- wn as VfCard,
1910
- Tn as VfCheckbox,
1911
- xn as VfDialog,
1912
- Cn as VfDivider,
1913
- Vn as VfDrawer,
1914
- Bn as VfDropdown,
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,
1915
2054
  Ae as VfIconButton,
1916
- En as VfInput,
1917
- On as VfLink,
1918
- Dn as VfNavMenu,
1919
- An as VfPanel,
1920
- In as VfPopover,
1921
- Ln as VfRadio,
1922
- Sn as VfSwitch,
1923
- Mn as VfTabs,
1924
- zn as VfTag,
1925
- Pn as VfTextarea,
1926
- yn as VfThemeProvider,
1927
- Nn as VfTooltip,
1928
- hn as VueForge,
1929
- Hn as createThemePreset,
1930
- je as createVueForge,
1931
- hn as default,
1932
- Kn as defaultThemePreset,
1933
- qn as toMaxWidthQuery,
1934
- Wn as toMinWidthQuery,
1935
- Un as useBreakpoint,
1936
- Yn as useBreakpointValue,
1937
- Xn as useBreakpoints,
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,
2071
+ Fe as defaultThemePreset,
2072
+ Yn as toMaxWidthQuery,
2073
+ Xn as toMinWidthQuery,
2074
+ Gn as useBreakpoint,
2075
+ Qn as useBreakpointValue,
2076
+ Jn as useBreakpoints,
1938
2077
  Oe as useClickOutside,
1939
2078
  se as useDisclosure,
1940
2079
  fe as useEscapeKey,
@@ -1942,6 +2081,6 @@ export {
1942
2081
  De as useFocusTrap,
1943
2082
  G as useId,
1944
2083
  Ce as useScrollLock,
1945
- _n as useTheme,
1946
- Gn as vfBreakpoints
2084
+ kn as useTheme,
2085
+ Zn as vfBreakpoints
1947
2086
  };