vlite3 1.5.23 → 1.5.24

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 (42) hide show
  1. package/components/AppShell/AppShell.vue.d.ts +1 -1
  2. package/components/CategoryManager/CategoryManager2.vue.js +3 -3
  3. package/components/ColorPicker/ColorPicker.vue.d.ts +3 -0
  4. package/components/ColorPicker/ColorPicker.vue.js +16 -14
  5. package/components/CommandPalette/CommandPaletteContent2.vue.js +1 -1
  6. package/components/CommandPalette/{CommandPaletteItem2.vue.js → CommandPaletteItem.vue.js} +1 -1
  7. package/components/DatePicker.vue.d.ts +2 -0
  8. package/components/DatePicker.vue.js +19 -17
  9. package/components/Dropdown/Dropdown.vue.d.ts +2 -0
  10. package/components/Dropdown/Dropdown.vue.js +111 -106
  11. package/components/Dropdown/DropdownMenu.vue.d.ts +2 -0
  12. package/components/Dropdown/DropdownMenu.vue.js +2 -2
  13. package/components/Dropdown/{DropdownMenu3.vue.js → DropdownMenu2.vue.js} +24 -23
  14. package/components/Form/{AccordionView2.vue.js → AccordionView.vue.js} +1 -1
  15. package/components/Form/index2.vue.js +1 -1
  16. package/components/Modal.vue.d.ts +2 -0
  17. package/components/Modal.vue.js +1 -1
  18. package/components/Modal2.vue.js +45 -43
  19. package/components/Navbar/Navbar.vue.d.ts +1 -1
  20. package/components/NavbarCommandPalette.vue.js +1 -1
  21. package/components/RichTextEditor/RichTextEditor.vue.js +4 -4
  22. package/components/RichTextEditor/RichTextLinkPopover3.vue.js +2 -2
  23. package/components/RichTextEditor/RichTextToolbar3.vue.js +2 -2
  24. package/components/Screen/ScreenFilter.vue.js +3 -3
  25. package/components/SidePanel.vue.d.ts +2 -0
  26. package/components/SidePanel.vue.js +1 -1
  27. package/components/SidePanel2.vue.js +39 -37
  28. package/components/ThemeProvider/themeVars.js +115 -115
  29. package/components/ThemeToggle.vue.d.ts +1 -1
  30. package/components/Tooltip.vue.d.ts +2 -0
  31. package/components/Tooltip.vue.js +13 -10
  32. package/composables/useOverlayPortal.d.ts +14 -0
  33. package/composables/useOverlayPortal.js +16 -0
  34. package/composables/useTheme.d.ts +2 -2
  35. package/composables/useTheme.js +64 -29
  36. package/docs-manifest.json +2 -2
  37. package/index.d.ts +1 -0
  38. package/index.js +334 -330
  39. package/package.json +2 -2
  40. package/style.css +193 -107
  41. /package/components/RichTextEditor/{RichTextLinkPopover2.vue.js → RichTextLinkPopover.vue.js} +0 -0
  42. /package/components/RichTextEditor/{RichTextToolbar2.vue.js → RichTextToolbar.vue.js} +0 -0
@@ -1,14 +1,15 @@
1
- import { defineComponent as R, ref as f, inject as V, computed as p, markRaw as W, watch as T, provide as K, nextTick as L, onMounted as A, onUnmounted as U, openBlock as s, createElementBlock as a, Fragment as q, mergeProps as B, withModifiers as S, renderSlot as v, createCommentVNode as r, createBlock as z, Teleport as G, normalizeClass as i, createVNode as I, Transition as H, withCtx as J, normalizeStyle as Q, createElementVNode as h, toDisplayString as F, resolveDynamicComponent as X } from "vue";
2
- import Y from "./Button.vue.js";
3
- import { useKeyStroke as Z } from "../composables/useKeyStroke.js";
4
- import { $t as O } from "../utils/i18n.js";
5
- const _ = ["data-testid"], ee = ["data-testid"], te = {
1
+ import { defineComponent as P, ref as f, inject as R, computed as p, markRaw as W, watch as $, provide as K, nextTick as A, onMounted as U, onUnmounted as q, openBlock as s, createElementBlock as a, Fragment as G, mergeProps as B, withModifiers as S, renderSlot as v, createCommentVNode as r, createBlock as z, Teleport as H, unref as J, normalizeClass as i, createVNode as I, Transition as Q, withCtx as X, normalizeStyle as Y, createElementVNode as h, toDisplayString as O, resolveDynamicComponent as Z } from "vue";
2
+ import _ from "./Button.vue.js";
3
+ import { useKeyStroke as ee } from "../composables/useKeyStroke.js";
4
+ import { $t as F } from "../utils/i18n.js";
5
+ import { useVLiteOverlayTarget as te } from "../composables/useOverlayPortal.js";
6
+ const oe = ["data-testid"], le = ["data-testid"], se = {
6
7
  key: 0,
7
8
  class: "flex-none flex flex-col space-y-1.5 pb-0 border-b border-border/90"
8
- }, oe = { class: "text-lg font-semibold leading-none tracking-tight" }, le = {
9
+ }, ae = { class: "text-lg font-semibold leading-none tracking-tight" }, re = {
9
10
  key: 0,
10
11
  class: "text-sm text-muted-foreground mb-3.5"
11
- }, ne = /* @__PURE__ */ R({
12
+ }, fe = /* @__PURE__ */ P({
12
13
  inheritAttrs: !1,
13
14
  __name: "Modal",
14
15
  props: {
@@ -26,14 +27,15 @@ const _ = ["data-testid"], ee = ["data-testid"], te = {
26
27
  footerClass: {},
27
28
  body: {},
28
29
  styles: { default: {} },
29
- bodyProps: {}
30
+ bodyProps: {},
31
+ teleportTarget: {}
30
32
  },
31
33
  emits: ["close", "update:show", "onOpen"],
32
- setup(o, { emit: j }) {
33
- const t = o, u = j, l = f(t.show), k = f(!1), b = f(!1), C = f(null);
34
+ setup(o, { emit: V }) {
35
+ const t = o, u = V, l = f(t.show), j = te(() => t.teleportTarget), k = f(!1), g = f(!1), C = f(null);
34
36
  let c = null;
35
- const y = f(!1), d = V("dropdown-context", null), w = p(() => t.body ? W(t.body) : void 0);
36
- T(
37
+ const y = f(!1), d = R("dropdown-context", null), w = p(() => t.body ? W(t.body) : void 0);
38
+ $(
37
39
  () => t.show,
38
40
  (e) => {
39
41
  l.value = e, e && (u("onOpen"), d?.close());
@@ -43,34 +45,34 @@ const _ = ["data-testid"], ee = ["data-testid"], te = {
43
45
  l.value = !0, d?.close();
44
46
  }, E = (e) => {
45
47
  k.value = e;
46
- }, M = (e) => {
48
+ }, L = (e) => {
47
49
  y.value = e;
48
50
  }, m = () => {
49
51
  if (k.value) {
50
- b.value = !0, c && clearTimeout(c), c = setTimeout(() => {
51
- b.value = !1;
52
+ g.value = !0, c && clearTimeout(c), c = setTimeout(() => {
53
+ g.value = !1;
52
54
  }, 1e3);
53
55
  return;
54
56
  }
55
57
  l.value = !1, u("update:show", !1), u("close");
56
- }, g = () => {
58
+ }, b = () => {
57
59
  l.value = !1, u("update:show", !1), u("close");
58
60
  };
59
- K("modal-context", { close: m, setSubmitting: E, registerFormFooter: M });
60
- const N = () => {
61
+ K("modal-context", { close: m, setSubmitting: E, registerFormFooter: L });
62
+ const M = () => {
61
63
  t.closeOutside && m();
62
- }, { onKeyStroke: P } = Z();
63
- P("Escape", m), T(l, async (e) => {
64
- e ? (d?.onChildToggle?.(!0), document.body.style.overflow = "hidden", await L(), C.value?.focus()) : (document.body.style.overflow = "", d?.onChildToggle?.(!1), y.value = !1);
65
- }), A(() => {
66
- l.value && d?.onChildToggle?.(!0);
64
+ }, { onKeyStroke: N } = ee();
65
+ N("Escape", m), $(l, async (e) => {
66
+ e ? (d?.onChildToggle?.(!0), document.body.style.overflow = "hidden", await A(), C.value?.focus()) : (document.body.style.overflow = "", d?.onChildToggle?.(!1), y.value = !1);
67
67
  }), U(() => {
68
+ l.value && d?.onChildToggle?.(!0);
69
+ }), q(() => {
68
70
  l.value && d?.onChildToggle?.(!1), document.body.style.overflow = "", c && clearTimeout(c);
69
71
  });
70
- const n = p(() => t.titleI18n ? O(t.titleI18n) : t.title), x = p(
71
- () => t.descriptionI18n ? O(t.descriptionI18n) : t.description
72
+ const n = p(() => t.titleI18n ? F(t.titleI18n) : t.title), x = p(
73
+ () => t.descriptionI18n ? F(t.descriptionI18n) : t.description
72
74
  );
73
- return (e, $) => (s(), a(q, null, [
75
+ return (e, T) => (s(), a(G, null, [
74
76
  e.$slots?.trigger || e.$slots?.default ? (s(), a("span", B({
75
77
  key: 0,
76
78
  onClick: S(D, ["stop"]),
@@ -81,15 +83,15 @@ const _ = ["data-testid"], ee = ["data-testid"], te = {
81
83
  v(e.$slots, "trigger", {}, () => [
82
84
  o.body ? v(e.$slots, "default", {}, void 0, !0, 0) : r("", !0)
83
85
  ], !0)
84
- ], 16, _)) : r("", !0),
85
- (s(), z(G, { to: "body" }, [
86
+ ], 16, oe)) : r("", !0),
87
+ (s(), z(H, { to: J(j) }, [
86
88
  l.value ? (s(), a("div", {
87
89
  key: 0,
88
90
  class: i(["fixed inset-0 z-50 flex items-center justify-center p-4 v-modal-overlay", o.backdrop ? "v-modal-backdrop" : ""]),
89
- onClick: N
91
+ onClick: M
90
92
  }, [
91
- I(H, { name: "modal-dialog" }, {
92
- default: J(() => [
93
+ I(Q, { name: "modal-dialog" }, {
94
+ default: X(() => [
93
95
  l.value ? (s(), a("div", {
94
96
  key: 0,
95
97
  ref_key: "modalRef",
@@ -97,23 +99,23 @@ const _ = ["data-testid"], ee = ["data-testid"], te = {
97
99
  tabindex: "-1",
98
100
  role: "dialog",
99
101
  "aria-modal": "true",
100
- style: Q(o.styles),
102
+ style: Y(o.styles),
101
103
  class: i(["modal-body relative w-full rounded border border-border/60 bg-body shadow-lg text-foreground flex flex-col max-h-[85vh] sm:max-h-[90vh] focus:outline-none", [o.maxWidth]]),
102
104
  "data-testid": e.$attrs["data-testid"] || (n.value ? `modal-${n.value.toString().toLowerCase().replace(/[^a-z0-9]+/g, "-")}` : "modal"),
103
- onClick: $[0] || ($[0] = S(() => {
105
+ onClick: T[0] || (T[0] = S(() => {
104
106
  }, ["stop"]))
105
107
  }, [
106
- n.value ? (s(), a("div", te, [
108
+ n.value ? (s(), a("div", se, [
107
109
  h("div", {
108
110
  class: i(["flex items-center justify-between py-2 px-4 rounded-t-md", o.headerClass])
109
111
  }, [
110
- h("h3", oe, F(n.value), 1),
111
- I(Y, {
112
+ h("h3", ae, O(n.value), 1),
113
+ I(_, {
112
114
  rounded: "full",
113
115
  size: "sm",
114
116
  icon: "lucide:x",
115
117
  variant: "ghost",
116
- class: i({ "blink-bg": b.value }),
118
+ class: i({ "blink-bg": g.value }),
117
119
  "data-testid": "modal-close-btn",
118
120
  onClick: m
119
121
  }, null, 8, ["class"])
@@ -122,24 +124,24 @@ const _ = ["data-testid"], ee = ["data-testid"], te = {
122
124
  h("div", {
123
125
  class: i(["flex-1 overflow-y-auto px-4 pt-4 min-h-0 scrollbar-thin scrollbar-stable", [y.value ? "pb-0" : "pb-3.5", o.bodyClass]])
124
126
  }, [
125
- x.value ? (s(), a("p", le, F(x.value), 1)) : r("", !0),
126
- w.value ? (s(), z(X(w.value), B({ key: 1 }, { ...o.bodyProps, ...e.$attrs }, { close: g }), null, 16)) : v(e.$slots, "default", { close: g }, void 0, !0, 2)
127
+ x.value ? (s(), a("p", re, O(x.value), 1)) : r("", !0),
128
+ w.value ? (s(), z(Z(w.value), B({ key: 1 }, { ...o.bodyProps, ...e.$attrs }, { close: b }), null, 16)) : v(e.$slots, "default", { close: b }, void 0, !0, 2)
127
129
  ], 2),
128
130
  e.$slots.footer ? (s(), a("div", {
129
131
  key: 1,
130
132
  class: i([o.footerClass, "flex-none flex items-center px-4 py-3 border-t border-border/90 rounded-b-xl bg-body"])
131
133
  }, [
132
- v(e.$slots, "footer", { close: g }, void 0, !0)
134
+ v(e.$slots, "footer", { close: b }, void 0, !0)
133
135
  ], 2)) : r("", !0)
134
- ], 14, ee)) : r("", !0)
136
+ ], 14, le)) : r("", !0)
135
137
  ]),
136
138
  _: 3
137
139
  })
138
140
  ], 2)) : r("", !0)
139
- ]))
141
+ ], 8, ["to"]))
140
142
  ], 64));
141
143
  }
142
144
  });
143
145
  export {
144
- ne as default
146
+ fe as default
145
147
  };
@@ -43,12 +43,12 @@ declare const __VLS_component: import('vue').DefineComponent<NavbarProps, {}, {}
43
43
  variant: import('../../types/navbar.type').NavbarVariant;
44
44
  floating: boolean;
45
45
  compact: boolean;
46
+ menuClass: string;
46
47
  position: import('../../types/navbar.type').NavbarPosition;
47
48
  contentClass: string;
48
49
  centerPosition: import('../../types/navbar.type').NavbarCenterPosition;
49
50
  glass: boolean;
50
51
  mobileBreakpoint: "sm" | "md" | "lg" | "xl";
51
- menuClass: string;
52
52
  rightClass: string;
53
53
  mobileTriggerClass: string;
54
54
  mobileMenuVariant: "sidepanel" | "dropdown";
@@ -3,7 +3,7 @@ import L from "./Icon.vue.js";
3
3
  import v from "./Modal.vue.js";
4
4
  import N from "./CommandPalette/CommandPaletteContent.vue.js";
5
5
  import { $t as U } from "../utils/i18n.js";
6
- /* empty css */
6
+ /* empty css */
7
7
  const V = { class: "block truncate -text-fs-1.5" }, S = { class: "ms-auto inline-flex items-center gap-0.5 px-1.5 py-0.5 rounded text-[10px] font-mono font-medium border border-border/80 bg-background text-muted-foreground ms-1" }, A = /* @__PURE__ */ x({
8
8
  __name: "NavbarCommandPalette",
9
9
  props: {
@@ -1,9 +1,9 @@
1
1
  import { defineComponent as te, ref as v, shallowRef as ne, watch as oe, computed as h, onMounted as le, onUnmounted as ae, openBlock as C, createElementBlock as L, normalizeClass as re, toDisplayString as I, createCommentVNode as U, createElementVNode as w, createVNode as q, unref as a, normalizeStyle as ie } from "vue";
2
2
  /* empty css */
3
- import se from "./RichTextToolbar2.vue.js";
4
- /* empty css */
5
- import de from "./RichTextLinkPopover2.vue.js";
6
- /* empty css */
3
+ import se from "./RichTextToolbar.vue.js";
4
+ /* empty css */
5
+ import de from "./RichTextLinkPopover.vue.js";
6
+ /* empty css */
7
7
  import { useRichTextImageUpload as ue } from "./composables/useRichTextImageUpload.js";
8
8
  import { useRichTextLinks as ce } from "./composables/useRichTextLinks.js";
9
9
  const fe = ["aria-labelledby", "aria-describedby"], me = ["id", "for"], ve = { class: "rte-wrapper" }, ye = { class: "rte-body-wrap" }, ge = ["id", "contenteditable", "aria-label", "aria-readonly", "aria-disabled", "aria-invalid"], be = ["id"], Se = /* @__PURE__ */ te({
@@ -1,5 +1,5 @@
1
- import o from "./RichTextLinkPopover2.vue.js";
2
- /* empty css */
1
+ import o from "./RichTextLinkPopover.vue.js";
2
+ /* empty css */
3
3
  export {
4
4
  o as default
5
5
  };
@@ -1,5 +1,5 @@
1
- import o from "./RichTextToolbar2.vue.js";
2
- /* empty css */
1
+ import o from "./RichTextToolbar.vue.js";
2
+ /* empty css */
3
3
  export {
4
4
  o as default
5
5
  };
@@ -23,11 +23,11 @@ import "iconify-icon-picker/style.css";
23
23
  import "../../icons/IconRegistry.js";
24
24
  /* empty css */
25
25
  /* empty css */
26
- /* empty css */
26
+ /* empty css */
27
27
  /* empty css */
28
28
  /* empty css */
29
- /* empty css */
30
- /* empty css */
29
+ /* empty css */
30
+ /* empty css */
31
31
  import "../../core/config.js";
32
32
  /* empty css */
33
33
  /* empty css */
@@ -1,5 +1,6 @@
1
1
  import { Component } from 'vue';
2
2
  import { SidePanelPosition, SidePanelSize } from '../types';
3
+ import { VLiteOverlayTarget } from '../composables/useOverlayPortal';
3
4
  interface Props {
4
5
  show?: boolean;
5
6
  title?: string;
@@ -20,6 +21,7 @@ interface Props {
20
21
  body?: Component;
21
22
  styles?: any;
22
23
  bodyProps?: Record<string, any>;
24
+ teleportTarget?: VLiteOverlayTarget;
23
25
  }
24
26
  declare function __VLS_template(): {
25
27
  attrs: Partial<{}>;
@@ -1,7 +1,7 @@
1
1
  import o from "./SidePanel2.vue.js";
2
2
  /* empty css */
3
3
  import t from "../_virtual/_plugin-vue_export-helper.js";
4
- const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-c7083f88"]]);
4
+ const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-50488cf7"]]);
5
5
  export {
6
6
  f as default
7
7
  };
@@ -1,11 +1,12 @@
1
- import { defineComponent as E, ref as N, inject as P, computed as f, markRaw as D, watch as w, onMounted as L, onUnmounted as V, openBlock as l, createElementBlock as i, Fragment as j, createElementVNode as p, mergeProps as h, withModifiers as K, renderSlot as m, createCommentVNode as a, createBlock as g, Teleport as M, normalizeClass as c, createVNode as F, Transition as R, withCtx as U, normalizeStyle as q, toDisplayString as $, resolveDynamicComponent as G } from "vue";
2
- import H from "./Button.vue.js";
3
- import { useKeyStroke as J } from "../composables/useKeyStroke.js";
1
+ import { defineComponent as L, ref as N, inject as P, computed as f, markRaw as V, watch as w, onMounted as D, onUnmounted as j, openBlock as l, createElementBlock as i, Fragment as K, createElementVNode as y, mergeProps as h, withModifiers as M, renderSlot as m, createCommentVNode as a, createBlock as v, Teleport as F, unref as R, normalizeClass as c, createVNode as U, Transition as q, withCtx as G, normalizeStyle as H, toDisplayString as $, resolveDynamicComponent as J } from "vue";
2
+ import Q from "./Button.vue.js";
3
+ import { useKeyStroke as W } from "../composables/useKeyStroke.js";
4
4
  import { $t as k } from "../utils/i18n.js";
5
- const Q = ["data-testid"], W = ["data-testid"], X = { class: "text-lg font-bold text-foreground" }, Y = {
5
+ import { useVLiteOverlayTarget as X } from "../composables/useOverlayPortal.js";
6
+ const Y = ["data-testid"], Z = ["data-testid"], _ = { class: "text-lg font-bold text-foreground" }, ee = {
6
7
  key: 0,
7
8
  class: "-text-fs-2 text-muted-foreground"
8
- }, oe = /* @__PURE__ */ E({
9
+ }, re = /* @__PURE__ */ L({
9
10
  inheritAttrs: !1,
10
11
  __name: "SidePanel",
11
12
  props: {
@@ -27,33 +28,34 @@ const Q = ["data-testid"], W = ["data-testid"], X = { class: "text-lg font-bold
27
28
  backdrop: { type: Boolean, default: !0 },
28
29
  body: {},
29
30
  styles: { default: {} },
30
- bodyProps: {}
31
+ bodyProps: {},
32
+ teleportTarget: {}
31
33
  },
32
34
  emits: ["close", "update:show", "onOpen", "onAfterOpen", "onAfterClose"],
33
35
  setup(o, { emit: x }) {
34
- const t = o, v = x, s = N(t.show);
36
+ const t = o, g = x, s = N(t.show), T = X(() => t.teleportTarget);
35
37
  let u = null;
36
- const r = P("dropdown-context", null), b = f(() => t.body ? D(t.body) : void 0);
38
+ const r = P("dropdown-context", null), b = f(() => t.body ? V(t.body) : void 0);
37
39
  w(
38
40
  () => t.show,
39
41
  (e) => {
40
- s.value = e, e && (v("onOpen"), r?.close());
42
+ s.value = e, e && (g("onOpen"), r?.close());
41
43
  }
42
44
  );
43
45
  const B = () => {
44
46
  s.value = !0, r?.close();
45
47
  }, n = () => {
46
- s.value = !1, v("update:show", !1), v("close");
47
- }, T = () => {
48
+ s.value = !1, g("update:show", !1), g("close");
49
+ }, z = () => {
48
50
  t.closeOutside && n();
49
- }, { onKeyStroke: z } = J();
50
- z("Escape", n), w(s, (e) => {
51
+ }, { onKeyStroke: O } = W();
52
+ O("Escape", n), w(s, (e) => {
51
53
  u && clearTimeout(u), e ? (r?.onChildToggle?.(!0), document.body.style.overflow = "hidden") : (document.body.style.overflow = "", u = setTimeout(() => {
52
54
  r?.onChildToggle?.(!1);
53
55
  }, 150));
54
- }), L(() => {
56
+ }), D(() => {
55
57
  s.value && r?.onChildToggle?.(!0);
56
- }), V(() => {
58
+ }), j(() => {
57
59
  u && clearTimeout(u), s.value && r?.onChildToggle?.(!1), document.body.style.overflow = "";
58
60
  });
59
61
  const S = {
@@ -62,12 +64,12 @@ const Q = ["data-testid"], W = ["data-testid"], X = { class: "text-lg font-bold
62
64
  lg: "max-w-full sm:max-w-lg",
63
65
  xl: "max-w-full sm:max-w-xl",
64
66
  full: "max-w-full"
65
- }, A = f(() => t.position === "left" ? "start-0 rounded-e-lg" : "end-0 rounded-s-md"), O = f(() => t.position === "left" ? "slide-left" : "slide-right"), d = f(() => t.titleI18n ? k(t.titleI18n) : t.title), C = f(
67
+ }, A = f(() => t.position === "left" ? "start-0 rounded-e-lg" : "end-0 rounded-s-md"), I = f(() => t.position === "left" ? "slide-left" : "slide-right"), d = f(() => t.titleI18n ? k(t.titleI18n) : t.title), C = f(
66
68
  () => t.descriptionI18n ? k(t.descriptionI18n) : t.description
67
69
  );
68
- return (e, y) => (l(), i(j, null, [
69
- p("span", h({
70
- onClick: K(B, ["stop"]),
70
+ return (e, p) => (l(), i(K, null, [
71
+ y("span", h({
72
+ onClick: M(B, ["stop"]),
71
73
  class: `${o.triggerClass}`
72
74
  }, e.$attrs, {
73
75
  "data-testid": e.$attrs["data-testid"] ? `${e.$attrs["data-testid"]}-trigger` : d.value ? `sidepanel-trigger-${d.value.toString().toLowerCase().replace(/[^a-z0-9]+/g, "-")}` : "sidepanel-trigger"
@@ -75,23 +77,23 @@ const Q = ["data-testid"], W = ["data-testid"], X = { class: "text-lg font-bold
75
77
  m(e.$slots, "trigger", {}, () => [
76
78
  o.body ? m(e.$slots, "default", {}, void 0, !0, 0) : a("", !0)
77
79
  ], !0)
78
- ], 16, Q),
79
- (l(), g(M, { to: "body" }, [
80
+ ], 16, Y),
81
+ (l(), v(F, { to: R(T) }, [
80
82
  s.value ? (l(), i("div", {
81
83
  key: 0,
82
84
  class: c(["fixed inset-0 z-50 v-sidepanel-overlay", o.overlayClass]),
83
- onClick: T
85
+ onClick: z
84
86
  }, null, 2)) : a("", !0),
85
- F(R, {
86
- name: O.value,
87
- onAfterEnter: y[0] || (y[0] = (I) => e.$emit("onAfterOpen")),
88
- onAfterLeave: y[1] || (y[1] = (I) => e.$emit("onAfterClose"))
87
+ U(q, {
88
+ name: I.value,
89
+ onAfterEnter: p[0] || (p[0] = (E) => e.$emit("onAfterOpen")),
90
+ onAfterLeave: p[1] || (p[1] = (E) => e.$emit("onAfterClose"))
89
91
  }, {
90
- default: U(() => [
92
+ default: G(() => [
91
93
  s.value ? (l(), i("div", {
92
94
  key: 0,
93
95
  role: "dialog",
94
- style: q(o.styles),
96
+ style: H(o.styles),
95
97
  "aria-modal": "true",
96
98
  class: c(["sidepanel-body fixed inset-y-0 z-50 flex flex-col bg-body shadow-sm border border-border/80 w-full", [S[o.size], A.value, t.class]]),
97
99
  "data-testid": e.$attrs["data-testid"] || (d.value ? `sidepanel-${d.value.toString().toLowerCase().replace(/[^a-z0-9]+/g, "-")}` : "sidepanel")
@@ -101,12 +103,12 @@ const Q = ["data-testid"], W = ["data-testid"], X = { class: "text-lg font-bold
101
103
  class: c([o.headerClass, "flex-none flex items-center justify-between px-5 py-2 border-b border-border"])
102
104
  }, [
103
105
  m(e.$slots, "header", {}, () => [
104
- p("div", null, [
105
- p("h3", X, $(d.value), 1),
106
- C.value ? (l(), i("p", Y, $(C.value), 1)) : a("", !0)
106
+ y("div", null, [
107
+ y("h3", _, $(d.value), 1),
108
+ C.value ? (l(), i("p", ee, $(C.value), 1)) : a("", !0)
107
109
  ])
108
110
  ], !0),
109
- o.hideCloseButton ? a("", !0) : (l(), g(H, {
111
+ o.hideCloseButton ? a("", !0) : (l(), v(Q, {
110
112
  key: 0,
111
113
  rounded: "full",
112
114
  size: "sm",
@@ -117,10 +119,10 @@ const Q = ["data-testid"], W = ["data-testid"], X = { class: "text-lg font-bold
117
119
  "data-testid": "sidepanel-close-btn"
118
120
  }))
119
121
  ], 2)) : a("", !0),
120
- p("div", {
122
+ y("div", {
121
123
  class: c(["flex-1 overflow-y-auto px-6 py-4 scrollbar-thin scrollbar-stable", o.bodyClass])
122
124
  }, [
123
- b.value ? (l(), g(G(b.value), h({ key: 0 }, { ...o.bodyProps, ...e.$attrs }, { close: n }), null, 16)) : m(e.$slots, "default", { close: n }, void 0, !0, 1)
125
+ b.value ? (l(), v(J(b.value), h({ key: 0 }, { ...o.bodyProps, ...e.$attrs }, { close: n }), null, 16)) : m(e.$slots, "default", { close: n }, void 0, !0, 1)
124
126
  ], 2),
125
127
  e.$slots.footer ? (l(), i("div", {
126
128
  key: 1,
@@ -128,14 +130,14 @@ const Q = ["data-testid"], W = ["data-testid"], X = { class: "text-lg font-bold
128
130
  }, [
129
131
  m(e.$slots, "footer", { close: n }, void 0, !0)
130
132
  ], 2)) : a("", !0)
131
- ], 14, W)) : a("", !0)
133
+ ], 14, Z)) : a("", !0)
132
134
  ]),
133
135
  _: 3
134
136
  }, 8, ["name"])
135
- ]))
137
+ ], 8, ["to"]))
136
138
  ], 64));
137
139
  }
138
140
  });
139
141
  export {
140
- oe as default
142
+ re as default
141
143
  };