vlite3 1.5.7 → 1.5.9

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,15 +1,15 @@
1
- import { defineComponent as We, ref as d, computed as o, watch as g, onMounted as Ge, onBeforeUnmount as Qe, openBlock as y, createElementBlock as F, normalizeClass as c, withDirectives as E, createVNode as V, vShow as I, createElementVNode as p, normalizeStyle as Ue, createCommentVNode as W, Fragment as le, renderList as _e, unref as ie, createBlock as T, withCtx as ce, toDisplayString as ue, withMemo as Je, resolveDynamicComponent as Xe, mergeProps as Ye, nextTick as Ze } from "vue";
1
+ import { defineComponent as Ge, ref as d, computed as o, watch as p, onMounted as Qe, onBeforeUnmount as Ue, openBlock as y, createElementBlock as F, normalizeClass as i, withDirectives as E, createVNode as V, vShow as I, createElementVNode as g, normalizeStyle as _e, createCommentVNode as W, Fragment as le, renderList as Je, unref as ie, createBlock as T, withCtx as ce, toDisplayString as ue, withMemo as Xe, resolveDynamicComponent as Ye, mergeProps as Ze, nextTick as et } from "vue";
2
2
  import { useResizeObserver as de } from "@vueuse/core";
3
- import { useDraggable as et } from "vue-draggable-plus";
4
- import { hashTabesValues as tt, getActiveMarkerKey as rt, isMenuTab as fe, isTabActive as ve, scrollTabesStrip as be, getTabesScrollOverflow as at } from "./tabes.utils.js";
5
- import { measureTabesMarkerGeometry as nt, toTabesLocalScrollDelta as me } from "./TabesMarkerGeometry.js";
3
+ import { useDraggable as tt } from "vue-draggable-plus";
4
+ import { hashTabesValues as rt, getActiveMarkerKey as at, isMenuTab as fe, isTabActive as be, scrollTabesStrip as ve, getTabesScrollOverflow as nt } from "./tabes.utils.js";
5
+ import { measureTabesMarkerGeometry as st, toTabesLocalScrollDelta as me } from "./TabesMarkerGeometry.js";
6
6
  import z from "../Icon.vue.js";
7
- import ge from "../FadeOverlay/FadeOverlay.vue.js";
8
- import st from "../Dropdown/Dropdown.vue.js";
9
- import { $t as ot } from "../../utils/i18n.js";
10
- import { useRtl as lt, resolveDirFromAncestors as it } from "../../composables/useRtl.js";
11
- import { usePersistentState as ct } from "../../utils/usePersistentState.js";
12
- const ut = ["dir"], dt = ["data-variant"], ft = ["aria-selected", "aria-expanded", "disabled"], pe = 200, St = /* @__PURE__ */ We({
7
+ import pe from "../FadeOverlay/FadeOverlay.vue.js";
8
+ import ot from "../Dropdown/Dropdown.vue.js";
9
+ import { $t as lt } from "../../utils/i18n.js";
10
+ import { useRtl as it, resolveDirFromAncestors as ct } from "../../composables/useRtl.js";
11
+ import { usePersistentState as ut } from "../../utils/usePersistentState.js";
12
+ const dt = ["dir"], ft = ["data-variant"], bt = ["aria-selected", "aria-expanded", "disabled"], ge = 200, xe = "w-[1em] h-[1em] shrink-0", Vt = /* @__PURE__ */ Ge({
13
13
  __name: "Tabes",
14
14
  props: {
15
15
  options: {},
@@ -25,11 +25,11 @@ const ut = ["dir"], dt = ["data-variant"], ft = ["aria-selected", "aria-expanded
25
25
  storageKey: {}
26
26
  },
27
27
  emits: ["update:modelValue", "change", "menu-select", "menu-open", "menu-close", "reorder", "update:options"],
28
- setup(i, { emit: he }) {
29
- const r = i, f = he, G = d(null), S = d(null), h = d(null), k = /* @__PURE__ */ new Map(), Q = lt(), L = d(null), $ = o(() => r.direction === "rtl" ? "rtl" : r.direction === "ltr" ? "ltr" : L.value ? L.value : Q.value ? "rtl" : "ltr"), B = o(() => $.value === "rtl"), U = () => {
30
- L.value = it(G.value);
31
- }, _ = r.sortable ? ct(
32
- `tabes-order-${r.storageKey ?? `auto-${tt(r.options)}`}`,
28
+ setup(c, { emit: he }) {
29
+ const r = c, f = he, G = d(null), S = d(null), x = d(null), k = /* @__PURE__ */ new Map(), Q = it(), L = d(null), $ = o(() => r.direction === "rtl" ? "rtl" : r.direction === "ltr" ? "ltr" : L.value ? L.value : Q.value ? "rtl" : "ltr"), B = o(() => $.value === "rtl"), U = () => {
30
+ L.value = ct(G.value);
31
+ }, _ = r.sortable ? ut(
32
+ `tabes-order-${r.storageKey ?? `auto-${rt(r.options)}`}`,
33
33
  [],
34
34
  { writeDefaults: !1 }
35
35
  ) : d([]), j = (e) => {
@@ -43,36 +43,36 @@ const ut = ["dir"], dt = ["data-variant"], ft = ["aria-selected", "aria-expanded
43
43
  }
44
44
  for (const n of e) t.has(n.value) && s.push(n);
45
45
  return s;
46
- }, v = d(j(r.options)), xe = () => {
47
- const e = v.value.map((a) => a.value);
48
- _.value = e, f("reorder", { options: [...v.value], order: e }), f("update:options", [...v.value]), u({ ensureVisible: !0 });
49
- }, ye = (e) => {
46
+ }, b = d(j(r.options)), ye = () => {
47
+ const e = b.value.map((a) => a.value);
48
+ _.value = e, f("reorder", { options: [...b.value], order: e }), f("update:options", [...b.value]), u({ ensureVisible: !0 });
49
+ }, we = (e) => {
50
50
  const { item: a, from: t, oldIndex: s, oldDraggableIndex: n, newDraggableIndex: l } = e;
51
51
  a.parentNode?.removeChild(a);
52
52
  const A = typeof s == "number" ? t.children[s] ?? null : null;
53
53
  if (t.insertBefore(a, A), n == null || l == null || n === l)
54
54
  return;
55
- const m = [...v.value], [w] = m.splice(n, 1);
56
- w && (m.splice(l, 0, w), v.value = m, xe());
55
+ const m = [...b.value], [w] = m.splice(n, 1);
56
+ w && (m.splice(l, 0, w), b.value = m, ye());
57
57
  }, R = d(!1), M = d(!1);
58
58
  let P = 0, J = 0, O = !1, D = !1, q = 0;
59
59
  const X = () => {
60
- if (!h.value) return;
61
- const { canScrollStart: e, canScrollEnd: a } = at(
62
- h.value
60
+ if (!x.value) return;
61
+ const { canScrollStart: e, canScrollEnd: a } = nt(
62
+ x.value
63
63
  );
64
64
  R.value !== e && (R.value = e), M.value !== a && (M.value = a);
65
- }, we = () => {
65
+ }, ke = () => {
66
66
  D || (D = !0, J = requestAnimationFrame(() => {
67
67
  D = !1, X();
68
68
  }));
69
- }, ke = () => be(h.value, "start", pe), Ce = () => be(h.value, "end", pe), Y = o(() => rt(r.options, r.modelValue)), Se = () => {
70
- if (!h.value || !S.value) return;
69
+ }, Ce = () => ve(x.value, "start", ge), Se = () => ve(x.value, "end", ge), Y = o(() => at(r.options, r.modelValue)), Ve = () => {
70
+ if (!x.value || !S.value) return;
71
71
  const e = Y.value;
72
72
  if (e === void 0) return;
73
73
  const a = k.get(e);
74
74
  if (!a) return;
75
- const t = h.value, s = a.getBoundingClientRect(), n = t.getBoundingClientRect(), l = 40;
75
+ const t = x.value, s = a.getBoundingClientRect(), n = t.getBoundingClientRect(), l = 40;
76
76
  s.left < n.left + l ? t.scrollBy({
77
77
  left: me(t, s.left - n.left - l),
78
78
  behavior: "smooth"
@@ -94,8 +94,8 @@ const ut = ["dir"], dt = ["data-variant"], ft = ["aria-selected", "aria-expanded
94
94
  ...C.value,
95
95
  opacity: 0
96
96
  });
97
- }, Ve = async () => {
98
- await Ze();
97
+ }, ze = async () => {
98
+ await et();
99
99
  const e = S.value, a = Y.value, t = a !== void 0 ? k.get(a) : void 0;
100
100
  if (!e || !t) {
101
101
  N();
@@ -105,7 +105,7 @@ const ut = ["dir"], dt = ["data-variant"], ft = ["aria-selected", "aria-expanded
105
105
  N();
106
106
  return;
107
107
  }
108
- const { width: s, height: n, left: l, top: A } = nt(e, t), m = {
108
+ const { width: s, height: n, left: l, top: A } = st(e, t), m = {
109
109
  width: `${s}px`,
110
110
  height: `${n}px`,
111
111
  left: "0px",
@@ -119,7 +119,7 @@ const ut = ["dir"], dt = ["data-variant"], ft = ["aria-selected", "aria-expanded
119
119
  };
120
120
  let H = !1;
121
121
  const ee = async (e) => {
122
- await Ve(), X(), e?.ensureVisible && Se();
122
+ await ze(), X(), e?.ensureVisible && Ve();
123
123
  }, u = (e) => {
124
124
  e?.ensureVisible && (H = !0), !O && (O = !0, cancelAnimationFrame(P), P = requestAnimationFrame(() => {
125
125
  O = !1;
@@ -127,32 +127,32 @@ const ut = ["dir"], dt = ["data-variant"], ft = ["aria-selected", "aria-expanded
127
127
  H = !1, ee({ ensureVisible: a });
128
128
  }));
129
129
  };
130
- de(h, () => u()), de(S, () => u()), g(
130
+ de(x, () => u()), de(S, () => u()), p(
131
131
  () => r.modelValue,
132
132
  () => u({ ensureVisible: !0 })
133
- ), g(
133
+ ), p(
134
134
  () => r.options,
135
135
  (e) => {
136
- v.value = j(e), u();
136
+ b.value = j(e), u();
137
137
  }
138
- ), g(
138
+ ), p(
139
139
  () => r.sortable,
140
140
  () => {
141
- v.value = j(r.options), u();
141
+ b.value = j(r.options), u();
142
142
  }
143
- ), g(
143
+ ), p(
144
144
  () => r.size,
145
145
  () => u()
146
- ), g(
146
+ ), p(
147
147
  () => r.block,
148
148
  () => u()
149
- ), g(
149
+ ), p(
150
150
  () => r.wrap,
151
151
  () => u()
152
- ), g(
152
+ ), p(
153
153
  () => r.variant,
154
154
  () => u()
155
- ), g(Q, () => U()), g($, () => u({ ensureVisible: !0 })), r.sortable && et(S, v, {
155
+ ), p(Q, () => U()), p($, () => u({ ensureVisible: !0 })), r.sortable && tt(S, b, {
156
156
  animation: 150,
157
157
  draggable: "[data-tabes-sortable]",
158
158
  filter: "[data-tabes-disabled]",
@@ -164,28 +164,28 @@ const ut = ["dir"], dt = ["data-variant"], ft = ["aria-selected", "aria-expanded
164
164
  onStart: () => N(),
165
165
  onEnd: () => u(),
166
166
  // Own the reorder so the marker child can't skew the list indices.
167
- customUpdate: (e) => ye(e)
168
- }), Ge(() => {
169
- U(), ee({ ensureVisible: !0 });
167
+ customUpdate: (e) => we(e)
170
168
  }), Qe(() => {
169
+ U(), ee({ ensureVisible: !0 });
170
+ }), Ue(() => {
171
171
  cancelAnimationFrame(P), cancelAnimationFrame(J), cancelAnimationFrame(q), O = !1, D = !1, k.clear();
172
172
  });
173
- const b = o(() => r.variant === "line"), x = o(() => r.variant === "checkbox"), ze = o(
174
- () => r.modelValue !== void 0 && !r.wrap && !x.value
175
- ), $e = o(() => r.block || b.value ? "flex w-full relative" : "inline-flex max-w-full relative"), te = o(() => [
173
+ const v = o(() => r.variant === "line"), h = o(() => r.variant === "checkbox"), $e = o(
174
+ () => r.modelValue !== void 0 && !r.wrap && !h.value
175
+ ), Be = o(() => r.block || v.value ? "flex w-full relative" : "inline-flex max-w-full relative"), te = o(() => [
176
176
  "absolute top-0 bottom-0 z-20 flex items-center pointer-events-none transition-opacity duration-200"
177
- ]), Be = (e) => {
177
+ ]), Re = (e) => {
178
178
  e.disabled || fe(e) || (f("update:modelValue", e.value), f("change", e.value));
179
- }, Re = (e, a) => {
179
+ }, Me = (e, a) => {
180
180
  if (e.disabled) return;
181
181
  const t = a.value;
182
182
  t != null && (f("update:modelValue", t), f("change", t), f("menu-select", { value: t, option: a.option, tab: e }));
183
- }, Me = (e) => {
184
- f("menu-open", e);
185
183
  }, Oe = (e) => {
184
+ f("menu-open", e);
185
+ }, De = (e) => {
186
186
  f("menu-close", e), u();
187
- }, De = o(() => b.value ? "shrink-0" : x.value ? r.block ? "flex-1 min-w-max" : "shrink-0" : r.block || r.wrap ? "flex-1 min-w-max" : "shrink-0"), Ae = (e) => e.dropdown?.direction ?? $.value, Fe = o(() => B.value ? "right" : "left"), Ee = o(() => B.value ? "left" : "right"), Ie = o(() => B.value ? "lucide:chevron-right" : "lucide:chevron-left"), Te = o(() => B.value ? "lucide:chevron-left" : "lucide:chevron-right"), Le = o(() => {
188
- const e = b.value, a = x.value, t = {
187
+ }, Ae = o(() => v.value ? "shrink-0" : h.value ? r.block ? "flex-1 min-w-max" : "shrink-0" : r.block || r.wrap ? "flex-1 min-w-max" : "shrink-0"), Fe = (e) => e.dropdown?.direction ?? $.value, Ee = o(() => B.value ? "right" : "left"), Ie = o(() => B.value ? "left" : "right"), Te = o(() => B.value ? "lucide:chevron-right" : "lucide:chevron-left"), Le = o(() => B.value ? "lucide:chevron-left" : "lucide:chevron-right"), je = o(() => {
188
+ const e = v.value, a = h.value, t = {
189
189
  surface: "bg-secondary/80 p-1",
190
190
  primary: "bg-secondary p-1",
191
191
  secondary: "bg-secondary p-1",
@@ -197,29 +197,32 @@ const ut = ["dir"], dt = ["data-variant"], ft = ["aria-selected", "aria-expanded
197
197
  checkbox: "bg-transparent gap-2 p-0 rounded-none border-0"
198
198
  }, s = r.wrap && !e ? "flex-wrap" : "";
199
199
  return [`${r.block || e ? "flex min-w-full w-max" : "inline-flex"} ${a || e ? "" : "rounded-lg"} relative isolate ${s}`.replace(/\s+/g, " ").trim(), t[r.variant], r.sortable ? "is-sortable" : ""];
200
- }), re = o(() => r.variant === "surface" || r.variant === "primary" || r.variant === "secondary" ? "var(--color-secondary)" : r.variant === "danger" ? "color-mix(in srgb, var(--color-danger) 10%, transparent)" : r.variant === "success" ? "color-mix(in srgb, var(--color-success) 10%, transparent)" : "var(--color-background)"), ae = o(() => b.value ? {
201
- sm: "text-xs px-2.5",
202
- md: "-text-fs-2 px-3",
203
- lg: "-text-fs-1 px-4"
204
- } : x.value ? {
200
+ }), re = o(() => r.variant === "surface" || r.variant === "primary" || r.variant === "secondary" ? "var(--color-secondary)" : r.variant === "danger" ? "color-mix(in srgb, var(--color-danger) 10%, transparent)" : r.variant === "success" ? "color-mix(in srgb, var(--color-success) 10%, transparent)" : "var(--color-background)"), ae = o(() => v.value ? {
201
+ xs: "text-[11px] px-2 pt-1.5 pb-1.5",
202
+ sm: "-text-fs-2 px-2.5 pt-2 pb-2",
203
+ md: "-text-fs-1.5 px-3 pt-2 pb-2",
204
+ lg: "-text-fs-1 px-3 pt-2.5 pb-2.5"
205
+ } : h.value ? {
206
+ xs: "text-[10px] px-2 py-0.5 gap-0.5",
205
207
  sm: "text-xs px-2.5 py-1 gap-1",
206
208
  md: "-text-fs-2 px-3 py-1.5 gap-1.5",
207
209
  lg: "-text-fs-1 px-3.5 py-2 gap-2"
208
210
  } : {
211
+ xs: "text-[10px] px-2 py-0.5",
209
212
  sm: "text-xs px-2.5 py-1",
210
213
  md: "-text-fs-2 px-3 py-1",
211
214
  lg: "-text-fs-1 px-4 py-1"
212
- }), je = o(() => {
213
- if (x.value)
215
+ }), Pe = o(() => {
216
+ if (h.value)
214
217
  return [
215
218
  "relative z-10 flex items-center justify-center font-medium transition-colors duration-150 ease-out cursor-pointer select-none rounded-full outline-none shrink-0 border-0 box-border",
216
219
  "focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2",
217
220
  r.block ? "flex-1" : ""
218
221
  ];
219
- const e = b.value, a = e ? "relative z-10 flex items-center justify-center gap-2 font-medium transition-colors duration-50 ease-out cursor-pointer select-none outline-none pt-3 pb-3 border-b-2 border-transparent hover:text-foreground shrink-0" : "relative z-10 flex items-center justify-center gap-2 font-medium transition-colors duration-50 ease-out cursor-pointer select-none rounded-md outline-none shrink-0", t = (r.block || r.wrap) && !e ? "flex-1" : "";
222
+ const e = v.value, a = e ? "relative z-10 flex items-center justify-center gap-2 font-medium transition-colors duration-50 ease-out cursor-pointer select-none outline-none border-b-2 border-transparent hover:text-foreground shrink-0" : "relative z-10 flex items-center justify-center gap-2 font-medium transition-colors duration-50 ease-out cursor-pointer select-none rounded-md outline-none shrink-0", t = (r.block || r.wrap) && !e ? "flex-1" : "";
220
223
  return [a, t];
221
224
  }), ne = (e) => {
222
- const a = ve(e, r.modelValue), t = b.value, s = x.value;
225
+ const a = be(e, r.modelValue), t = v.value, s = h.value;
223
226
  let n = "";
224
227
  if (s)
225
228
  n = a ? "bg-primary text-primary-fg" : "bg-transparent text-muted-foreground hover:text-foreground";
@@ -252,11 +255,11 @@ const ut = ["dir"], dt = ["data-variant"], ft = ["aria-selected", "aria-expanded
252
255
  else
253
256
  n = t ? "text-muted-foreground" : "text-muted-foreground hover:text-foreground/80";
254
257
  const l = e.disabled ? "opacity-50 cursor-not-allowed" : "";
255
- return [je.value, n, r?.tabClass, l].join(" ");
256
- }, Pe = o(() => {
258
+ return [Pe.value, n, r?.tabClass, l].join(" ");
259
+ }, qe = o(() => {
257
260
  const a = `absolute z-0 pointer-events-none ${K.value ? "transition-all duration-300 ease-[cubic-bezier(0.25,0.1,0.25,1)]" : ""}`;
258
- return b.value ? `${a} !h-[2px] !top-auto bottom-0` : `${a} rounded-md shadow-sm`;
259
- }), qe = () => ({
261
+ return v.value ? `${a} !h-[2px] !top-auto bottom-0` : `${a} rounded-md shadow-sm`;
262
+ }), Ke = () => ({
260
263
  surface: "bg-[#ffff] dark:bg-[#0B0B0B]",
261
264
  primary: "bg-primary",
262
265
  secondary: "bg-secondary-foreground",
@@ -267,75 +270,74 @@ const ut = ["dir"], dt = ["data-variant"], ft = ["aria-selected", "aria-expanded
267
270
  // Marker is hidden for checkbox; value kept for exhaustive Record typing
268
271
  checkbox: "bg-transparent"
269
272
  })[r.variant], se = o(
270
- () => r.size === "sm" ? "w-3.5 h-3.5 shrink-0" : "w-4 h-4 shrink-0"
271
- ), oe = (e) => e.labelI18n ? ot(e.labelI18n) : e.label, Ke = (e) => e.to ? "router-link" : e.href ? "a" : "button", Ne = (e) => e.to ? { to: e.to } : e.href ? { href: e.href, target: "_blank", rel: "noopener noreferrer" } : { type: "button" }, He = (e) => [
272
- r.size === "sm" ? "w-3 h-3" : "w-3.5 h-3.5",
273
- "opacity-70 shrink-0 transition-transform duration-200",
273
+ () => r.size === "xs" ? "w-3.5 h-3.5" : "w-4.5 h-4.5"
274
+ ), oe = (e) => e.labelI18n ? lt(e.labelI18n) : e.label, Ne = (e) => e.to ? "router-link" : e.href ? "a" : "button", He = (e) => e.to ? { to: e.to } : e.href ? { href: e.href, target: "_blank", rel: "noopener noreferrer" } : { type: "button" }, We = (e) => [
275
+ "w-[0.85em] h-[0.85em] shrink-0 opacity-70 transition-transform duration-200",
274
276
  e ? "rotate-180" : ""
275
277
  ].join(" ");
276
278
  return (e, a) => (y(), F("div", {
277
279
  ref_key: "rootRef",
278
280
  ref: G,
279
- class: c([$e.value, "group"]),
281
+ class: i([Be.value, "group"]),
280
282
  dir: $.value
281
283
  }, [
282
- E(V(ge, {
283
- direction: Fe.value,
284
+ E(V(pe, {
285
+ direction: Ee.value,
284
286
  color: re.value,
285
287
  coverage: "100px",
286
288
  blur: "40px",
287
289
  easing: "smooth",
288
290
  tintOpacity: 1,
289
- class: c(["z-10 pointer-events-none", b.value || x.value ? "" : "rounded-s-lg"])
291
+ class: i(["z-10 pointer-events-none", v.value || h.value ? "" : "rounded-s-lg"])
290
292
  }, null, 8, ["direction", "color", "class"]), [
291
293
  [I, R.value]
292
294
  ]),
293
- E(p("div", {
294
- class: c(["start-0 ps-1", te.value])
295
+ E(g("div", {
296
+ class: i(["start-0 ps-1", te.value])
295
297
  }, [
296
- p("button", {
297
- onClick: ke,
298
+ g("button", {
299
+ onClick: Ce,
298
300
  class: "pointer-events-auto h-full px-1 flex items-center justify-center text-muted-foreground hover:text-foreground transition-colors focus:outline-none",
299
301
  "aria-label": "Scroll backward"
300
302
  }, [
301
303
  V(z, {
302
- icon: Ie.value,
303
- class: "w-4.5 h-4.5"
304
- }, null, 8, ["icon"])
304
+ icon: Te.value,
305
+ class: i(se.value)
306
+ }, null, 8, ["icon", "class"])
305
307
  ])
306
308
  ], 2), [
307
309
  [I, R.value]
308
310
  ]),
309
- p("div", {
311
+ g("div", {
310
312
  ref_key: "scrollRef",
311
- ref: h,
313
+ ref: x,
312
314
  class: "tabes-scroll flex-1 min-w-0 max-w-full overflow-x-auto scrollbar-hide scroll-smooth",
313
- onScroll: we
315
+ onScroll: ke
314
316
  }, [
315
- p("div", {
317
+ g("div", {
316
318
  ref_key: "containerRef",
317
319
  ref: S,
318
- class: c([Le.value, "tabes-container"]),
320
+ class: i([je.value, "tabes-container"]),
319
321
  role: "tablist",
320
322
  "data-variant": r.variant,
321
323
  "data-tabes": ""
322
324
  }, [
323
- ze.value ? (y(), F("div", {
325
+ $e.value ? (y(), F("div", {
324
326
  key: 0,
325
- class: c(["tabes-marker", [Pe.value, qe()]]),
326
- style: Ue(C.value)
327
+ class: i(["tabes-marker", [qe.value, Ke()]]),
328
+ style: _e(C.value)
327
329
  }, null, 6)) : W("", !0),
328
- (y(!0), F(le, null, _e(v.value, (t) => (y(), F(le, {
330
+ (y(!0), F(le, null, Je(b.value, (t) => (y(), F(le, {
329
331
  key: t.value
330
332
  }, [
331
- ie(fe)(t) ? (y(), T(st, {
333
+ ie(fe)(t) ? (y(), T(ot, {
332
334
  key: 0,
333
335
  options: t.menu,
334
- selected: i.modelValue,
336
+ selected: c.modelValue,
335
337
  disabled: t.disabled,
336
338
  "data-tabes-sortable": "",
337
339
  "data-tabes-disabled": t.disabled || void 0,
338
- direction: Ae(t),
340
+ direction: Fe(t),
339
341
  position: t.dropdown?.position,
340
342
  offset: t.dropdown?.offset ?? [0, 8],
341
343
  searchable: t.dropdown?.searchable ?? !1,
@@ -349,52 +351,52 @@ const ut = ["dir"], dt = ["data-variant"], ft = ["aria-selected", "aria-expanded
349
351
  "show-selected-icon": !1,
350
352
  "toggle-selection": !1,
351
353
  selectable: !0,
352
- class: c(["tabes-menu", "inline-flex!", De.value]),
353
- onOnSelect: (s) => Re(t, s),
354
- onOnOpen: () => Me(t),
355
- onOnClose: () => Oe(t)
354
+ class: i(["tabes-menu", "inline-flex!", Ae.value]),
355
+ onOnSelect: (s) => Me(t, s),
356
+ onOnOpen: () => Oe(t),
357
+ onOnClose: () => De(t)
356
358
  }, {
357
359
  trigger: ce(({ isOpen: s }) => [
358
- p("button", {
360
+ g("button", {
359
361
  ref_for: !0,
360
362
  ref: (n) => Z(n, t.value),
361
363
  type: "button",
362
364
  role: "tab",
363
365
  "data-tabes-item": "",
364
366
  "data-tabes-menu-trigger": "",
365
- "aria-selected": ie(ve)(t, i.modelValue),
367
+ "aria-selected": ie(be)(t, c.modelValue),
366
368
  "aria-haspopup": !0,
367
369
  "aria-expanded": s,
368
370
  disabled: t.disabled,
369
- class: c([ne(t), ae.value[r.size], "w-full"])
371
+ class: i([ne(t), ae.value[r.size], "w-full"])
370
372
  }, [
371
373
  t.icon ? (y(), T(z, {
372
374
  key: 0,
373
375
  icon: t.icon,
374
- class: c(se.value)
375
- }, null, 8, ["icon", "class"])) : W("", !0),
376
- p("span", {
377
- class: c(["whitespace-nowrap z-20 relative", i.textClass])
376
+ class: i(xe)
377
+ }, null, 8, ["icon"])) : W("", !0),
378
+ g("span", {
379
+ class: i(["whitespace-nowrap z-20 relative", c.textClass])
378
380
  }, ue(oe(t)), 3),
379
381
  V(z, {
380
382
  icon: "lucide:chevron-down",
381
- class: c(He(s)),
383
+ class: i(We(s)),
382
384
  "aria-hidden": "true"
383
385
  }, null, 8, ["class"])
384
- ], 10, ft)
386
+ ], 10, bt)
385
387
  ]),
386
388
  _: 2
387
- }, 1032, ["options", "selected", "disabled", "data-tabes-disabled", "direction", "position", "offset", "searchable", "close-on-select", "max-height", "min-width", "width", "menu-id", "teleport", "class", "onOnSelect", "onOnOpen", "onOnClose"])) : Je([
389
+ }, 1032, ["options", "selected", "disabled", "data-tabes-disabled", "direction", "position", "offset", "searchable", "close-on-select", "max-height", "min-width", "width", "menu-id", "teleport", "class", "onOnSelect", "onOnOpen", "onOnClose"])) : Xe([
388
390
  t,
389
- i.modelValue === t.value,
390
- i.size,
391
- i.variant,
392
- i.block,
393
- i.wrap,
394
- i.tabClass,
395
- i.textClass,
396
- i.sortable
397
- ], () => (y(), T(Xe(Ke(t)), Ye({
391
+ c.modelValue === t.value,
392
+ c.size,
393
+ c.variant,
394
+ c.block,
395
+ c.wrap,
396
+ c.tabClass,
397
+ c.textClass,
398
+ c.sortable
399
+ ], () => (y(), T(Ye(Ne(t)), Ze({
398
400
  key: 1,
399
401
  ref_for: !0,
400
402
  ref: (s) => Z(s, t.value),
@@ -402,57 +404,57 @@ const ut = ["dir"], dt = ["data-variant"], ft = ["aria-selected", "aria-expanded
402
404
  "data-tabes-item": "",
403
405
  "data-tabes-sortable": "",
404
406
  "data-tabes-disabled": t.disabled || void 0,
405
- "aria-selected": i.modelValue === t.value,
407
+ "aria-selected": c.modelValue === t.value,
406
408
  disabled: t.disabled,
407
409
  class: [ne(t), ae.value[r.size]]
408
- }, { ref_for: !0 }, Ne(t), {
409
- onClick: (s) => Be(t)
410
+ }, { ref_for: !0 }, He(t), {
411
+ onClick: (s) => Re(t)
410
412
  }), {
411
413
  default: ce(() => [
412
414
  t.icon ? (y(), T(z, {
413
415
  key: 0,
414
416
  icon: t.icon,
415
- class: c(se.value)
416
- }, null, 8, ["icon", "class"])) : W("", !0),
417
- p("span", {
418
- class: c(["whitespace-nowrap z-20 relative", i.textClass])
417
+ class: i(xe)
418
+ }, null, 8, ["icon"])) : W("", !0),
419
+ g("span", {
420
+ class: i(["whitespace-nowrap z-20 relative", c.textClass])
419
421
  }, ue(oe(t)), 3)
420
422
  ]),
421
423
  _: 2
422
424
  }, 1040, ["data-tabes-disabled", "aria-selected", "disabled", "class", "onClick"])), a, 0)
423
425
  ], 64))), 128))
424
- ], 10, dt)
426
+ ], 10, ft)
425
427
  ], 544),
426
- E(V(ge, {
427
- direction: Ee.value,
428
+ E(V(pe, {
429
+ direction: Ie.value,
428
430
  color: re.value,
429
431
  coverage: "100px",
430
432
  blur: "40",
431
433
  easing: "smooth",
432
434
  tintOpacity: 1,
433
- class: c(["z-10 pointer-events-none", b.value || x.value ? "" : "rounded-e-lg"])
435
+ class: i(["z-10 pointer-events-none", v.value || h.value ? "" : "rounded-e-lg"])
434
436
  }, null, 8, ["direction", "color", "class"]), [
435
437
  [I, M.value]
436
438
  ]),
437
- E(p("div", {
438
- class: c(["end-0 pe-1", te.value])
439
+ E(g("div", {
440
+ class: i(["end-0 pe-1", te.value])
439
441
  }, [
440
- p("button", {
441
- onClick: Ce,
442
+ g("button", {
443
+ onClick: Se,
442
444
  class: "pointer-events-auto h-full px-1 flex items-center justify-center text-muted-foreground hover:text-foreground transition-colors focus:outline-none",
443
445
  "aria-label": "Scroll forward"
444
446
  }, [
445
447
  V(z, {
446
- icon: Te.value,
447
- class: "w-4.5 h-4.5"
448
- }, null, 8, ["icon"])
448
+ icon: Le.value,
449
+ class: i(se.value)
450
+ }, null, 8, ["icon", "class"])
449
451
  ])
450
452
  ], 2), [
451
453
  [I, M.value]
452
454
  ])
453
- ], 10, ut));
455
+ ], 10, dt));
454
456
  }
455
457
  });
456
458
  export {
457
- St as default
459
+ Vt as default
458
460
  };
@@ -37,7 +37,7 @@ export interface TabesOption {
37
37
  /** Optional Dropdown configuration for this menu tab */
38
38
  dropdown?: TabesDropdownConfig;
39
39
  }
40
- export type TabesSize = 'sm' | 'md' | 'lg';
40
+ export type TabesSize = 'xs' | 'sm' | 'md' | 'lg';
41
41
  export type TabesVariant = 'surface' | 'primary' | 'secondary' | 'danger' | 'success' | 'outline' | 'line'
42
42
  /** Independent selectable chips — transparent group, bordered items, single-select */
43
43
  | 'checkbox';
@@ -13,6 +13,8 @@ export { default as ButtonGroup } from './ButtonGroup.vue';
13
13
  export { Carousel } from './Carousel';
14
14
  export * from './Cart';
15
15
  export { default as CheckBox } from './CheckBox.vue';
16
+ export { default as Clipboard } from './Clipboard.vue';
17
+ export type { ClipboardAction, ClipboardActionResult, ClipboardProps, } from '../types/ClipboardTypes';
16
18
  export { Chip } from './Chip';
17
19
  export { ChoiceBox } from './ChoiceBox';
18
20
  export { ColorPicker, COLOR_PICKER_RESET_VALUE } from './ColorPicker';
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "private": false,
4
4
  "description": "A Vue 3 UI component library built with Tailwind CSS.",
5
5
  "license": "MIT",
6
- "version": "1.5.7",
6
+ "version": "1.5.9",
7
7
  "type": "module",
8
8
  "main": "index.js",
9
9
  "module": "index.js",
@@ -45,11 +45,13 @@
45
45
  "./utils/*": "./utils/*"
46
46
  },
47
47
  "dependencies": {
48
+ "@iconify/vue": "^5.0.0",
48
49
  "@jaames/iro": "^5.5.2",
49
50
  "@tailwindcss/vite": "^4.1.18",
50
51
  "@types/file-saver": "^2.0.7",
51
52
  "@types/papaparse": "^5.5.2",
52
53
  "@types/scrollreveal": "^0.0.11",
54
+ "@types/sortablejs": "^1.15.8",
53
55
  "@vueuse/core": "^14.1.0",
54
56
  "@vueuse/integrations": "^14.2.1",
55
57
  "dayjs": "^1.11.19",
@@ -67,14 +69,13 @@
67
69
  "v-tooltip-lite": "^1.0.2",
68
70
  "vue-carousel-lite": "^0.2.9",
69
71
  "vue-draggable-plus": "^0.5.3",
72
+ "vue-router": "^4.0.0 || ^5.0.0",
70
73
  "vue3-google-signin": "^2.1.1",
71
74
  "xlsx": "^0.18.5"
72
75
  },
73
76
  "peerDependencies": {
74
- "@iconify/vue": "^5.0.0",
75
77
  "vite": "^6.0.0 || ^7.0.0",
76
- "vue": "^3.5.24",
77
- "vue-router": "^4.0.0 || ^5.0.0"
78
+ "vue": "^3.5.24"
78
79
  },
79
80
  "peerDependenciesMeta": {
80
81
  "vite": {
@@ -82,7 +83,6 @@
82
83
  }
83
84
  },
84
85
  "devDependencies": {
85
- "@iconify/vue": "5.0.0",
86
86
  "@types/jsbarcode": "^3.11.4",
87
87
  "@types/node": "^25.0.10",
88
88
  "@types/qrcode": "^1.5.6",
@@ -93,7 +93,6 @@
93
93
  "vite": "^7.2.4",
94
94
  "vite-plugin-dts": "^4.5.4",
95
95
  "vue": "^3.5.24",
96
- "vue-router": "^4.0.0",
97
96
  "vue-tsc": "^3.1.4"
98
97
  },
99
98
  "prettier": {