@grapadigital/shared-app-modules 0.0.157 → 0.0.158

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.
package/dist/shadcn.js CHANGED
@@ -1,26 +1,382 @@
1
- import { c as o, b as i, B as u, I as p, T as c, S as g, d as b, e as m } from "./chuncks/switch.q7qsNhmq.js";
2
- import { ar as L, au as N, as as V, at as A, y as j, F as E, H as R, G as _, A as O, z as Q, E as U, az as $, aC as q, aD as J, aE as K, aA as W, aB as X, C as Y, ai as Z, aj as aa, am as ea, an as ta, ak as ra, ao as oa, al as sa, aq as na, ap as ia, D as da, p as la, q as ua, r as pa, s as ca, t as ga, u as ba, v as ma, w as ha, x as va, a8 as fa, ac as xa, ad as Ca, ah as wa, af as Ta, ae as Da, aa as Sa, a9 as ka, ag as ya, ab as za, aN as Ga, aR as Ia, aP as Ma, aW as Fa, aQ as Pa, aT as Ba, aX as Ha, a$ as La, aS as Na, aU as Va, aV as Aa, aY as ja, aZ as Ea, a_ as Ra, aO as _a, aw as Oa, ay as Qa, ax as Ua, L as $a, av as qa, b0 as Ja, b1 as Ka, f as Wa, j as Xa, g as Ya, l as Za, k as ae, o as ee, n as te, m as re, i as oe, h as se, J as ne, M as ie, N as de, R as le, P as ue, O as pe, Q as ce, K as ge, b2 as be, Y as me, _ as he, a3 as ve, a2 as fe, $ as xe, a0 as Ce, Z as we, a1 as Te, U as De, X as Se, V as ke, W as ye, aF as ze, aG as Ge, aH as Ie, aI as Me, aJ as Fe, aK as Pe, aL as Be, aM as He, a4 as Le, a6 as Ne, a7 as Ve, a5 as Ae } from "./chuncks/switch.q7qsNhmq.js";
3
- import * as d from "react";
4
- import { S as Ee } from "./chuncks/skeleton.BjmmpFAG.js";
5
- import { C as _e, j as Oe, F as Qe, h as Ue, b as $e, c as qe, d as Je, a as Ke, e as We, f as Xe, g as Ye, i as Ze, P as at, m as et, l as tt, p as rt, n as ot, o as st, k as nt } from "./chuncks/popover.B2pQNQDl.js";
6
- import { jsx as s } from "react/jsx-runtime";
7
- function T(e) {
8
- const [a, t] = d.useState(!1);
9
- return d.useEffect(() => {
10
- function r(l) {
1
+ import { b as W, d as G, u as J, e as Z, R as ee, f as z, A as te, P as re, g as w, h as F, i as oe, j as ae, D as ne, C as se, k as ie, l as le, c as x, m as R, B as ce, I as ue, T as de, S as pe, n as ge, o as fe } from "./chuncks/switch.CQNO0s_H.js";
2
+ import { aD as nt, aG as st, aE as it, aF as lt, V as ct, Z as ut, $ as dt, _ as pt, X as gt, W as ft, Y as vt, aL as ht, aO as bt, aP as mt, aQ as xt, aM as Ct, aN as Tt, p as wt, au as yt, av as Dt, ay as Pt, az as St, aw as Et, aA as kt, ax as Rt, aC as _t, aB as Lt, F as Mt, G as It, H as At, J as Ot, K as Nt, M as Ht, N as Gt, O as zt, Q as Ft, U as Bt, ak as Vt, ao as jt, ap as $t, at as Ut, ar as Yt, aq as qt, am as Xt, al as Kt, as as Qt, an as Wt, aZ as Jt, b1 as Zt, a$ as er, b6 as tr, b0 as rr, b3 as or, b7 as ar, bb as nr, b2 as sr, b4 as ir, b5 as lr, b8 as cr, b9 as ur, ba as dr, a_ as pr, aI as gr, aK as fr, aJ as vr, L as hr, aH as br, bc as mr, bd as xr, q as Cr, v as Tr, r as wr, x as yr, w as Dr, E as Pr, z as Sr, y as Er, t as kr, s as Rr, a0 as _r, a2 as Lr, a3 as Mr, a7 as Ir, a5 as Ar, a4 as Or, a6 as Nr, a1 as Hr, be as Gr, ac as zr, ae as Fr, aj as Br, ai as Vr, af as jr, ag as $r, ad as Ur, ah as Yr, a8 as qr, ab as Xr, a9 as Kr, aa as Qr, aR as Wr, aS as Jr, aT as Zr, aU as eo, aV as to, aW as ro, aX as oo, aY as ao } from "./chuncks/switch.CQNO0s_H.js";
3
+ import * as n from "react";
4
+ import { S as so } from "./chuncks/skeleton.D4Ei4FKE.js";
5
+ import { C as lo, j as co, F as uo, h as po, b as go, c as fo, d as vo, a as ho, e as bo, f as mo, g as xo, i as Co, P as To, m as wo, l as yo, p as Do, n as Po, o as So, k as Eo } from "./chuncks/popover.V-0xPl0h.js";
6
+ import { jsx as s, jsxs as B } from "react/jsx-runtime";
7
+ function Ve(e) {
8
+ const [r, t] = n.useState(!1);
9
+ return n.useEffect(() => {
10
+ function o(l) {
11
11
  t(l.matches);
12
12
  }
13
- const n = matchMedia(e);
14
- return n.addEventListener("change", r), t(n.matches), () => n.removeEventListener("change", r);
15
- }, [e]), a;
13
+ const a = matchMedia(e);
14
+ return a.addEventListener("change", o), t(a.matches), () => a.removeEventListener("change", o);
15
+ }, [e]), r;
16
16
  }
17
- function D({ className: e, ...a }) {
17
+ var [_] = W("Tooltip", [
18
+ G
19
+ ]), L = G(), V = "TooltipProvider", ve = 700, M = "tooltip.open", [he, A] = _(V), j = (e) => {
20
+ const {
21
+ __scopeTooltip: r,
22
+ delayDuration: t = ve,
23
+ skipDelayDuration: o = 300,
24
+ disableHoverableContent: a = !1,
25
+ children: l
26
+ } = e, c = n.useRef(!0), f = n.useRef(!1), i = n.useRef(0);
27
+ return n.useEffect(() => {
28
+ const p = i.current;
29
+ return () => window.clearTimeout(p);
30
+ }, []), /* @__PURE__ */ s(
31
+ he,
32
+ {
33
+ scope: r,
34
+ isOpenDelayedRef: c,
35
+ delayDuration: t,
36
+ onOpen: n.useCallback(() => {
37
+ window.clearTimeout(i.current), c.current = !1;
38
+ }, []),
39
+ onClose: n.useCallback(() => {
40
+ window.clearTimeout(i.current), i.current = window.setTimeout(
41
+ () => c.current = !0,
42
+ o
43
+ );
44
+ }, [o]),
45
+ isPointerInTransitRef: f,
46
+ onPointerInTransitChange: n.useCallback((p) => {
47
+ f.current = p;
48
+ }, []),
49
+ disableHoverableContent: a,
50
+ children: l
51
+ }
52
+ );
53
+ };
54
+ j.displayName = V;
55
+ var E = "Tooltip", [be, k] = _(E), $ = (e) => {
56
+ const {
57
+ __scopeTooltip: r,
58
+ children: t,
59
+ open: o,
60
+ defaultOpen: a,
61
+ onOpenChange: l,
62
+ disableHoverableContent: c,
63
+ delayDuration: f
64
+ } = e, i = A(E, e.__scopeTooltip), p = L(r), [u, g] = n.useState(null), v = J(), d = n.useRef(0), h = c ?? i.disableHoverableContent, m = f ?? i.delayDuration, b = n.useRef(!1), [T, C] = Z({
65
+ prop: o,
66
+ defaultProp: a ?? !1,
67
+ onChange: (H) => {
68
+ H ? (i.onOpen(), document.dispatchEvent(new CustomEvent(M))) : i.onClose(), l?.(H);
69
+ },
70
+ caller: E
71
+ }), D = n.useMemo(() => T ? b.current ? "delayed-open" : "instant-open" : "closed", [T]), P = n.useCallback(() => {
72
+ window.clearTimeout(d.current), d.current = 0, b.current = !1, C(!0);
73
+ }, [C]), S = n.useCallback(() => {
74
+ window.clearTimeout(d.current), d.current = 0, C(!1);
75
+ }, [C]), N = n.useCallback(() => {
76
+ window.clearTimeout(d.current), d.current = window.setTimeout(() => {
77
+ b.current = !0, C(!0), d.current = 0;
78
+ }, m);
79
+ }, [m, C]);
80
+ return n.useEffect(() => () => {
81
+ d.current && (window.clearTimeout(d.current), d.current = 0);
82
+ }, []), /* @__PURE__ */ s(ee, { ...p, children: /* @__PURE__ */ s(
83
+ be,
84
+ {
85
+ scope: r,
86
+ contentId: v,
87
+ open: T,
88
+ stateAttribute: D,
89
+ trigger: u,
90
+ onTriggerChange: g,
91
+ onTriggerEnter: n.useCallback(() => {
92
+ i.isOpenDelayedRef.current ? N() : P();
93
+ }, [i.isOpenDelayedRef, N, P]),
94
+ onTriggerLeave: n.useCallback(() => {
95
+ h ? S() : (window.clearTimeout(d.current), d.current = 0);
96
+ }, [S, h]),
97
+ onOpen: P,
98
+ onClose: S,
99
+ disableHoverableContent: h,
100
+ children: t
101
+ }
102
+ ) });
103
+ };
104
+ $.displayName = E;
105
+ var I = "TooltipTrigger", U = n.forwardRef(
106
+ (e, r) => {
107
+ const { __scopeTooltip: t, ...o } = e, a = k(I, t), l = A(I, t), c = L(t), f = n.useRef(null), i = z(r, f, a.onTriggerChange), p = n.useRef(!1), u = n.useRef(!1), g = n.useCallback(() => p.current = !1, []);
108
+ return n.useEffect(() => () => document.removeEventListener("pointerup", g), [g]), /* @__PURE__ */ s(te, { asChild: !0, ...c, children: /* @__PURE__ */ s(
109
+ re.button,
110
+ {
111
+ "aria-describedby": a.open ? a.contentId : void 0,
112
+ "data-state": a.stateAttribute,
113
+ ...o,
114
+ ref: i,
115
+ onPointerMove: w(e.onPointerMove, (v) => {
116
+ v.pointerType !== "touch" && !u.current && !l.isPointerInTransitRef.current && (a.onTriggerEnter(), u.current = !0);
117
+ }),
118
+ onPointerLeave: w(e.onPointerLeave, () => {
119
+ a.onTriggerLeave(), u.current = !1;
120
+ }),
121
+ onPointerDown: w(e.onPointerDown, () => {
122
+ a.open && a.onClose(), p.current = !0, document.addEventListener("pointerup", g, { once: !0 });
123
+ }),
124
+ onFocus: w(e.onFocus, () => {
125
+ p.current || a.onOpen();
126
+ }),
127
+ onBlur: w(e.onBlur, a.onClose),
128
+ onClick: w(e.onClick, a.onClose)
129
+ }
130
+ ) });
131
+ }
132
+ );
133
+ U.displayName = I;
134
+ var O = "TooltipPortal", [me, xe] = _(O, {
135
+ forceMount: void 0
136
+ }), Y = (e) => {
137
+ const { __scopeTooltip: r, forceMount: t, children: o, container: a } = e, l = k(O, r);
138
+ return /* @__PURE__ */ s(me, { scope: r, forceMount: t, children: /* @__PURE__ */ s(F, { present: t || l.open, children: /* @__PURE__ */ s(oe, { asChild: !0, container: a, children: o }) }) });
139
+ };
140
+ Y.displayName = O;
141
+ var y = "TooltipContent", q = n.forwardRef(
142
+ (e, r) => {
143
+ const t = xe(y, e.__scopeTooltip), { forceMount: o = t.forceMount, side: a = "top", ...l } = e, c = k(y, e.__scopeTooltip);
144
+ return /* @__PURE__ */ s(F, { present: o || c.open, children: c.disableHoverableContent ? /* @__PURE__ */ s(X, { side: a, ...l, ref: r }) : /* @__PURE__ */ s(Ce, { side: a, ...l, ref: r }) });
145
+ }
146
+ ), Ce = n.forwardRef((e, r) => {
147
+ const t = k(y, e.__scopeTooltip), o = A(y, e.__scopeTooltip), a = n.useRef(null), l = z(r, a), [c, f] = n.useState(null), { trigger: i, onClose: p } = t, u = a.current, { onPointerInTransitChange: g } = o, v = n.useCallback(() => {
148
+ f(null), g(!1);
149
+ }, [g]), d = n.useCallback(
150
+ (h, m) => {
151
+ const b = h.currentTarget, T = { x: h.clientX, y: h.clientY }, C = De(T, b.getBoundingClientRect()), D = Pe(T, C), P = Se(m.getBoundingClientRect()), S = ke([...D, ...P]);
152
+ f(S), g(!0);
153
+ },
154
+ [g]
155
+ );
156
+ return n.useEffect(() => () => v(), [v]), n.useEffect(() => {
157
+ if (i && u) {
158
+ const h = (b) => d(b, u), m = (b) => d(b, i);
159
+ return i.addEventListener("pointerleave", h), u.addEventListener("pointerleave", m), () => {
160
+ i.removeEventListener("pointerleave", h), u.removeEventListener("pointerleave", m);
161
+ };
162
+ }
163
+ }, [i, u, d, v]), n.useEffect(() => {
164
+ if (c) {
165
+ const h = (m) => {
166
+ const b = m.target, T = { x: m.clientX, y: m.clientY }, C = i?.contains(b) || u?.contains(b), D = !Ee(T, c);
167
+ C ? v() : D && (v(), p());
168
+ };
169
+ return document.addEventListener("pointermove", h), () => document.removeEventListener("pointermove", h);
170
+ }
171
+ }, [i, u, c, p, v]), /* @__PURE__ */ s(X, { ...e, ref: l });
172
+ }), [Te, we] = _(E, { isInside: !1 }), ye = ie("TooltipContent"), X = n.forwardRef(
173
+ (e, r) => {
174
+ const {
175
+ __scopeTooltip: t,
176
+ children: o,
177
+ "aria-label": a,
178
+ onEscapeKeyDown: l,
179
+ onPointerDownOutside: c,
180
+ ...f
181
+ } = e, i = k(y, t), p = L(t), { onClose: u } = i;
182
+ return n.useEffect(() => (document.addEventListener(M, u), () => document.removeEventListener(M, u)), [u]), n.useEffect(() => {
183
+ if (i.trigger) {
184
+ const g = (v) => {
185
+ v.target?.contains(i.trigger) && u();
186
+ };
187
+ return window.addEventListener("scroll", g, { capture: !0 }), () => window.removeEventListener("scroll", g, { capture: !0 });
188
+ }
189
+ }, [i.trigger, u]), /* @__PURE__ */ s(
190
+ ne,
191
+ {
192
+ asChild: !0,
193
+ disableOutsidePointerEvents: !1,
194
+ onEscapeKeyDown: l,
195
+ onPointerDownOutside: c,
196
+ onFocusOutside: (g) => g.preventDefault(),
197
+ onDismiss: u,
198
+ children: /* @__PURE__ */ B(
199
+ se,
200
+ {
201
+ "data-state": i.stateAttribute,
202
+ ...p,
203
+ ...f,
204
+ ref: r,
205
+ style: {
206
+ ...f.style,
207
+ "--radix-tooltip-content-transform-origin": "var(--radix-popper-transform-origin)",
208
+ "--radix-tooltip-content-available-width": "var(--radix-popper-available-width)",
209
+ "--radix-tooltip-content-available-height": "var(--radix-popper-available-height)",
210
+ "--radix-tooltip-trigger-width": "var(--radix-popper-anchor-width)",
211
+ "--radix-tooltip-trigger-height": "var(--radix-popper-anchor-height)"
212
+ },
213
+ children: [
214
+ /* @__PURE__ */ s(ye, { children: o }),
215
+ /* @__PURE__ */ s(Te, { scope: t, isInside: !0, children: /* @__PURE__ */ s(le, { id: i.contentId, role: "tooltip", children: a || o }) })
216
+ ]
217
+ }
218
+ )
219
+ }
220
+ );
221
+ }
222
+ );
223
+ q.displayName = y;
224
+ var K = "TooltipArrow", Q = n.forwardRef(
225
+ (e, r) => {
226
+ const { __scopeTooltip: t, ...o } = e, a = L(t);
227
+ return we(
228
+ K,
229
+ t
230
+ ).isInside ? null : /* @__PURE__ */ s(ae, { ...a, ...o, ref: r });
231
+ }
232
+ );
233
+ Q.displayName = K;
234
+ function De(e, r) {
235
+ const t = Math.abs(r.top - e.y), o = Math.abs(r.bottom - e.y), a = Math.abs(r.right - e.x), l = Math.abs(r.left - e.x);
236
+ switch (Math.min(t, o, a, l)) {
237
+ case l:
238
+ return "left";
239
+ case a:
240
+ return "right";
241
+ case t:
242
+ return "top";
243
+ case o:
244
+ return "bottom";
245
+ default:
246
+ throw new Error("unreachable");
247
+ }
248
+ }
249
+ function Pe(e, r, t = 5) {
250
+ const o = [];
251
+ switch (r) {
252
+ case "top":
253
+ o.push(
254
+ { x: e.x - t, y: e.y + t },
255
+ { x: e.x + t, y: e.y + t }
256
+ );
257
+ break;
258
+ case "bottom":
259
+ o.push(
260
+ { x: e.x - t, y: e.y - t },
261
+ { x: e.x + t, y: e.y - t }
262
+ );
263
+ break;
264
+ case "left":
265
+ o.push(
266
+ { x: e.x + t, y: e.y - t },
267
+ { x: e.x + t, y: e.y + t }
268
+ );
269
+ break;
270
+ case "right":
271
+ o.push(
272
+ { x: e.x - t, y: e.y - t },
273
+ { x: e.x - t, y: e.y + t }
274
+ );
275
+ break;
276
+ }
277
+ return o;
278
+ }
279
+ function Se(e) {
280
+ const { top: r, right: t, bottom: o, left: a } = e;
281
+ return [
282
+ { x: a, y: r },
283
+ { x: t, y: r },
284
+ { x: t, y: o },
285
+ { x: a, y: o }
286
+ ];
287
+ }
288
+ function Ee(e, r) {
289
+ const { x: t, y: o } = e;
290
+ let a = !1;
291
+ for (let l = 0, c = r.length - 1; l < r.length; c = l++) {
292
+ const f = r[l], i = r[c], p = f.x, u = f.y, g = i.x, v = i.y;
293
+ u > o != v > o && t < (g - p) * (o - u) / (v - u) + p && (a = !a);
294
+ }
295
+ return a;
296
+ }
297
+ function ke(e) {
298
+ const r = e.slice();
299
+ return r.sort((t, o) => t.x < o.x ? -1 : t.x > o.x ? 1 : t.y < o.y ? -1 : t.y > o.y ? 1 : 0), Re(r);
300
+ }
301
+ function Re(e) {
302
+ if (e.length <= 1) return e.slice();
303
+ const r = [];
304
+ for (let o = 0; o < e.length; o++) {
305
+ const a = e[o];
306
+ for (; r.length >= 2; ) {
307
+ const l = r[r.length - 1], c = r[r.length - 2];
308
+ if ((l.x - c.x) * (a.y - c.y) >= (l.y - c.y) * (a.x - c.x)) r.pop();
309
+ else break;
310
+ }
311
+ r.push(a);
312
+ }
313
+ r.pop();
314
+ const t = [];
315
+ for (let o = e.length - 1; o >= 0; o--) {
316
+ const a = e[o];
317
+ for (; t.length >= 2; ) {
318
+ const l = t[t.length - 1], c = t[t.length - 2];
319
+ if ((l.x - c.x) * (a.y - c.y) >= (l.y - c.y) * (a.x - c.x)) t.pop();
320
+ else break;
321
+ }
322
+ t.push(a);
323
+ }
324
+ return t.pop(), r.length === 1 && t.length === 1 && r[0].x === t[0].x && r[0].y === t[0].y ? r : r.concat(t);
325
+ }
326
+ var _e = j, Le = $, Me = U, Ie = Y, Ae = q, Oe = Q;
327
+ function je({
328
+ delayDuration: e = 0,
329
+ ...r
330
+ }) {
331
+ return /* @__PURE__ */ s(
332
+ _e,
333
+ {
334
+ "data-slot": "tooltip-provider",
335
+ delayDuration: e,
336
+ ...r
337
+ }
338
+ );
339
+ }
340
+ function $e({
341
+ ...e
342
+ }) {
343
+ return /* @__PURE__ */ s(Le, { "data-slot": "tooltip", ...e });
344
+ }
345
+ function Ue({
346
+ ...e
347
+ }) {
348
+ return /* @__PURE__ */ s(Me, { "data-slot": "tooltip-trigger", ...e });
349
+ }
350
+ function Ye({
351
+ className: e,
352
+ sideOffset: r = 0,
353
+ children: t,
354
+ ...o
355
+ }) {
356
+ return /* @__PURE__ */ s(Ie, { children: /* @__PURE__ */ B(
357
+ Ae,
358
+ {
359
+ "data-slot": "tooltip-content",
360
+ sideOffset: r,
361
+ className: x(
362
+ "z-50 w-fit origin-(--radix-tooltip-content-transform-origin) animate-in rounded-md bg-foreground px-3 py-1.5 text-xs text-balance text-background fade-in-0 zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95",
363
+ e
364
+ ),
365
+ ...o,
366
+ children: [
367
+ t,
368
+ /* @__PURE__ */ s(Oe, { className: "z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px] bg-foreground fill-foreground" })
369
+ ]
370
+ }
371
+ ) });
372
+ }
373
+ function qe({ className: e, ...r }) {
18
374
  return /* @__PURE__ */ s(
19
375
  "div",
20
376
  {
21
377
  "data-slot": "input-group",
22
378
  role: "group",
23
- className: o(
379
+ className: x(
24
380
  "group/input-group border-input dark:bg-input/30 shadow-xs relative flex w-full items-center rounded-md border outline-none transition-[color,box-shadow]",
25
381
  "h-9 has-[>textarea]:h-auto",
26
382
  // Variants based on alignment.
@@ -34,11 +390,11 @@ function D({ className: e, ...a }) {
34
390
  "has-[[data-slot][aria-invalid=true]]:ring-destructive/20 has-[[data-slot][aria-invalid=true]]:border-destructive dark:has-[[data-slot][aria-invalid=true]]:ring-destructive/40",
35
391
  e
36
392
  ),
37
- ...a
393
+ ...r
38
394
  }
39
395
  );
40
396
  }
41
- const h = i(
397
+ const Ne = R(
42
398
  "text-muted-foreground flex h-auto cursor-text select-none items-center justify-center gap-2 py-1.5 text-sm font-medium group-data-[disabled=true]/input-group:opacity-50 [&>kbd]:rounded-[calc(var(--radius)-5px)] [&>svg:not([class*='size-'])]:size-4",
43
399
  {
44
400
  variants: {
@@ -54,9 +410,9 @@ const h = i(
54
410
  }
55
411
  }
56
412
  );
57
- function S({
413
+ function Xe({
58
414
  className: e,
59
- align: a = "inline-start",
415
+ align: r = "inline-start",
60
416
  ...t
61
417
  }) {
62
418
  return /* @__PURE__ */ s(
@@ -64,16 +420,16 @@ function S({
64
420
  {
65
421
  role: "group",
66
422
  "data-slot": "input-group-addon",
67
- "data-align": a,
68
- className: o(h({ align: a }), e),
69
- onClick: (r) => {
70
- r.target.closest("button") || r.currentTarget.parentElement?.querySelector("input")?.focus();
423
+ "data-align": r,
424
+ className: x(Ne({ align: r }), e),
425
+ onClick: (o) => {
426
+ o.target.closest("button") || o.currentTarget.parentElement?.querySelector("input")?.focus();
71
427
  },
72
428
  ...t
73
429
  }
74
430
  );
75
431
  }
76
- const v = i(
432
+ const He = R(
77
433
  "flex items-center gap-2 text-sm shadow-none",
78
434
  {
79
435
  variants: {
@@ -89,69 +445,69 @@ const v = i(
89
445
  }
90
446
  }
91
447
  );
92
- function k({
448
+ function Ke({
93
449
  className: e,
94
- type: a = "button",
450
+ type: r = "button",
95
451
  variant: t = "ghost",
96
- size: r = "xs",
97
- ...n
452
+ size: o = "xs",
453
+ ...a
98
454
  }) {
99
455
  return /* @__PURE__ */ s(
100
- u,
456
+ ce,
101
457
  {
102
- type: a,
103
- "data-size": r,
458
+ type: r,
459
+ "data-size": o,
104
460
  variant: t,
105
- className: o(v({ size: r }), e),
106
- ...n
461
+ className: x(He({ size: o }), e),
462
+ ...a
107
463
  }
108
464
  );
109
465
  }
110
- function y({ className: e, ...a }) {
466
+ function Qe({ className: e, ...r }) {
111
467
  return /* @__PURE__ */ s(
112
468
  "span",
113
469
  {
114
- className: o(
470
+ className: x(
115
471
  "text-muted-foreground flex items-center gap-2 text-sm [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none",
116
472
  e
117
473
  ),
118
- ...a
474
+ ...r
119
475
  }
120
476
  );
121
477
  }
122
- function z({
478
+ function We({
123
479
  className: e,
124
- ...a
480
+ ...r
125
481
  }) {
126
482
  return /* @__PURE__ */ s(
127
- p,
483
+ ue,
128
484
  {
129
485
  "data-slot": "input-group-control",
130
- className: o(
486
+ className: x(
131
487
  "flex-1 rounded-none border-0 bg-transparent shadow-none focus-visible:ring-0 dark:bg-transparent",
132
488
  e
133
489
  ),
134
- ...a
490
+ ...r
135
491
  }
136
492
  );
137
493
  }
138
- function G({
494
+ function Je({
139
495
  className: e,
140
- ...a
496
+ ...r
141
497
  }) {
142
498
  return /* @__PURE__ */ s(
143
- c,
499
+ de,
144
500
  {
145
501
  "data-slot": "input-group-control",
146
- className: o(
502
+ className: x(
147
503
  "flex-1 resize-none rounded-none border-0 bg-transparent py-3 shadow-none focus-visible:ring-0 dark:bg-transparent",
148
504
  e
149
505
  ),
150
- ...a
506
+ ...r
151
507
  }
152
508
  );
153
509
  }
154
- const f = i(
510
+ const Ge = R(
155
511
  "flex w-fit items-stretch has-[>[data-slot=button-group]]:gap-2 [&>*]:focus-visible:relative [&>*]:focus-visible:z-10 has-[select[aria-hidden=true]:last-child]:[&>[data-slot=select-trigger]:last-of-type]:rounded-r-md [&>[data-slot=select-trigger]:not([class*='w-'])]:w-fit [&>input]:flex-1",
156
512
  {
157
513
  variants: {
@@ -165,9 +521,9 @@ const f = i(
165
521
  }
166
522
  }
167
523
  );
168
- function I({
524
+ function Ze({
169
525
  className: e,
170
- orientation: a,
526
+ orientation: r,
171
527
  ...t
172
528
  }) {
173
529
  return /* @__PURE__ */ s(
@@ -175,21 +531,21 @@ function I({
175
531
  {
176
532
  role: "group",
177
533
  "data-slot": "button-group",
178
- "data-orientation": a,
179
- className: o(f({ orientation: a }), e),
534
+ "data-orientation": r,
535
+ className: x(Ge({ orientation: r }), e),
180
536
  ...t
181
537
  }
182
538
  );
183
539
  }
184
- function M({
540
+ function et({
185
541
  className: e,
186
- asChild: a = !1,
542
+ asChild: r = !1,
187
543
  ...t
188
544
  }) {
189
545
  return /* @__PURE__ */ s(
190
- a ? b : "div",
546
+ r ? ge : "div",
191
547
  {
192
- className: o(
548
+ className: x(
193
549
  "bg-muted shadow-xs flex items-center gap-2 rounded-md border px-4 text-sm font-medium [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none",
194
550
  e
195
551
  ),
@@ -197,17 +553,17 @@ function M({
197
553
  }
198
554
  );
199
555
  }
200
- function F({
556
+ function tt({
201
557
  className: e,
202
- orientation: a = "vertical",
558
+ orientation: r = "vertical",
203
559
  ...t
204
560
  }) {
205
561
  return /* @__PURE__ */ s(
206
- g,
562
+ pe,
207
563
  {
208
564
  "data-slot": "button-group-separator",
209
- orientation: a,
210
- className: o(
565
+ orientation: r,
566
+ className: x(
211
567
  "bg-input relative !m-0 self-stretch data-[orientation=vertical]:h-auto",
212
568
  e
213
569
  ),
@@ -215,7 +571,7 @@ function F({
215
571
  }
216
572
  );
217
573
  }
218
- const x = i(
574
+ const ze = R(
219
575
  "inline-flex w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-full border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3",
220
576
  {
221
577
  variants: {
@@ -235,171 +591,171 @@ const x = i(
235
591
  }
236
592
  }
237
593
  );
238
- function P({
594
+ function rt({
239
595
  className: e,
240
- variant: a = "default",
596
+ variant: r = "default",
241
597
  asChild: t = !1,
242
- ...r
598
+ ...o
243
599
  }) {
244
600
  return /* @__PURE__ */ s(
245
- t ? m : "span",
601
+ t ? fe : "span",
246
602
  {
247
603
  "data-slot": "badge",
248
- "data-variant": a,
249
- className: o(x({ variant: a }), e),
250
- ...r
604
+ "data-variant": r,
605
+ className: x(ze({ variant: r }), e),
606
+ ...o
251
607
  }
252
608
  );
253
609
  }
254
610
  export {
255
- L as Accordion,
256
- N as AccordionContent,
257
- V as AccordionItem,
258
- A as AccordionTrigger,
259
- P as Badge,
260
- u as Button,
261
- I as ButtonGroup,
262
- F as ButtonGroupSeparator,
263
- M as ButtonGroupText,
264
- _e as Calendar,
265
- Oe as CalendarDayButton,
266
- j as Card,
267
- E as CardAction,
268
- R as CardContent,
269
- _ as CardDescription,
270
- O as CardFooter,
271
- Q as CardHeader,
272
- U as CardTitle,
273
- $ as ChartContainer,
274
- q as ChartLegend,
275
- J as ChartLegendContent,
276
- K as ChartStyle,
277
- W as ChartTooltip,
278
- X as ChartTooltipContent,
279
- Y as Checkbox,
280
- Z as Command,
281
- aa as CommandDialog,
282
- ea as CommandEmpty,
283
- ta as CommandGroup,
284
- ra as CommandInput,
285
- oa as CommandItem,
286
- sa as CommandList,
287
- na as CommandSeparator,
288
- ia as CommandShortcut,
289
- da as Dialog,
290
- la as DialogClose,
291
- ua as DialogContent,
292
- pa as DialogDescription,
293
- ca as DialogFooter,
294
- ga as DialogHeader,
295
- ba as DialogOverlay,
296
- ma as DialogPortal,
297
- ha as DialogTitle,
298
- va as DialogTrigger,
299
- fa as Drawer,
300
- xa as DrawerClose,
301
- Ca as DrawerContent,
302
- wa as DrawerDescription,
303
- Ta as DrawerFooter,
304
- Da as DrawerHeader,
305
- Sa as DrawerOverlay,
306
- ka as DrawerPortal,
307
- ya as DrawerTitle,
308
- za as DrawerTrigger,
309
- Ga as DropdownMenu,
310
- Ia as DropdownMenuCheckboxItem,
311
- Ma as DropdownMenuContent,
312
- Fa as DropdownMenuGroup,
313
- Pa as DropdownMenuItem,
314
- Ba as DropdownMenuLabel,
315
- Ha as DropdownMenuPortal,
316
- La as DropdownMenuRadioGroup,
317
- Na as DropdownMenuRadioItem,
318
- Va as DropdownMenuSeparator,
319
- Aa as DropdownMenuShortcut,
320
- ja as DropdownMenuSub,
321
- Ea as DropdownMenuSubContent,
322
- Ra as DropdownMenuSubTrigger,
323
- _a as DropdownMenuTrigger,
324
- Qe as Field,
325
- Ue as FieldContent,
326
- $e as FieldDescription,
327
- qe as FieldError,
328
- Je as FieldGroup,
329
- Ke as FieldLabel,
330
- We as FieldLegend,
331
- Xe as FieldSeparator,
332
- Ye as FieldSet,
333
- Ze as FieldTitle,
334
- Oa as HoverCard,
335
- Qa as HoverCardContent,
336
- Ua as HoverCardTrigger,
337
- p as Input,
338
- D as InputGroup,
339
- S as InputGroupAddon,
340
- k as InputGroupButton,
341
- z as InputGroupInput,
342
- y as InputGroupText,
343
- G as InputGroupTextarea,
344
- $a as Label,
345
- at as Popover,
346
- et as PopoverAnchor,
347
- tt as PopoverContent,
348
- rt as PopoverDescription,
349
- ot as PopoverHeader,
350
- st as PopoverTitle,
351
- nt as PopoverTrigger,
352
- qa as Progress,
353
- Ja as ScrollArea,
354
- Ka as ScrollBar,
355
- Wa as Select,
356
- Xa as SelectContent,
357
- Ya as SelectGroup,
358
- Za as SelectItem,
359
- ae as SelectLabel,
360
- ee as SelectScrollDownButton,
361
- te as SelectScrollUpButton,
362
- re as SelectSeparator,
363
- oe as SelectTrigger,
364
- se as SelectValue,
365
- g as Separator,
366
- ne as Sheet,
367
- ie as SheetClose,
368
- de as SheetContent,
369
- le as SheetDescription,
370
- ue as SheetFooter,
371
- pe as SheetHeader,
372
- ce as SheetTitle,
373
- ge as SheetTrigger,
374
- Ee as Skeleton,
375
- be as Switch,
376
- me as Table,
377
- he as TableBody,
378
- ve as TableCaption,
379
- fe as TableCell,
380
- xe as TableFooter,
381
- Ce as TableHead,
382
- we as TableHeader,
383
- Te as TableRow,
384
- De as Tabs,
385
- Se as TabsContent,
386
- ke as TabsList,
387
- ye as TabsTrigger,
388
- c as Textarea,
389
- ze as Timeline,
390
- Ge as TimelineContent,
391
- Ie as TimelineDate,
392
- Me as TimelineHeader,
393
- Fe as TimelineIndicator,
394
- Pe as TimelineItem,
395
- Be as TimelineSeparator,
396
- He as TimelineTitle,
397
- Le as Tooltip,
398
- Ne as TooltipContent,
399
- Ve as TooltipProvider,
400
- Ae as TooltipTrigger,
401
- x as badgeVariants,
402
- f as buttonGroupVariants,
403
- o as cn,
404
- T as useMediaQuery
611
+ nt as Accordion,
612
+ st as AccordionContent,
613
+ it as AccordionItem,
614
+ lt as AccordionTrigger,
615
+ rt as Badge,
616
+ ce as Button,
617
+ Ze as ButtonGroup,
618
+ tt as ButtonGroupSeparator,
619
+ et as ButtonGroupText,
620
+ lo as Calendar,
621
+ co as CalendarDayButton,
622
+ ct as Card,
623
+ ut as CardAction,
624
+ dt as CardContent,
625
+ pt as CardDescription,
626
+ gt as CardFooter,
627
+ ft as CardHeader,
628
+ vt as CardTitle,
629
+ ht as ChartContainer,
630
+ bt as ChartLegend,
631
+ mt as ChartLegendContent,
632
+ xt as ChartStyle,
633
+ Ct as ChartTooltip,
634
+ Tt as ChartTooltipContent,
635
+ wt as Checkbox,
636
+ yt as Command,
637
+ Dt as CommandDialog,
638
+ Pt as CommandEmpty,
639
+ St as CommandGroup,
640
+ Et as CommandInput,
641
+ kt as CommandItem,
642
+ Rt as CommandList,
643
+ _t as CommandSeparator,
644
+ Lt as CommandShortcut,
645
+ Mt as Dialog,
646
+ It as DialogClose,
647
+ At as DialogContent,
648
+ Ot as DialogDescription,
649
+ Nt as DialogFooter,
650
+ Ht as DialogHeader,
651
+ Gt as DialogOverlay,
652
+ zt as DialogPortal,
653
+ Ft as DialogTitle,
654
+ Bt as DialogTrigger,
655
+ Vt as Drawer,
656
+ jt as DrawerClose,
657
+ $t as DrawerContent,
658
+ Ut as DrawerDescription,
659
+ Yt as DrawerFooter,
660
+ qt as DrawerHeader,
661
+ Xt as DrawerOverlay,
662
+ Kt as DrawerPortal,
663
+ Qt as DrawerTitle,
664
+ Wt as DrawerTrigger,
665
+ Jt as DropdownMenu,
666
+ Zt as DropdownMenuCheckboxItem,
667
+ er as DropdownMenuContent,
668
+ tr as DropdownMenuGroup,
669
+ rr as DropdownMenuItem,
670
+ or as DropdownMenuLabel,
671
+ ar as DropdownMenuPortal,
672
+ nr as DropdownMenuRadioGroup,
673
+ sr as DropdownMenuRadioItem,
674
+ ir as DropdownMenuSeparator,
675
+ lr as DropdownMenuShortcut,
676
+ cr as DropdownMenuSub,
677
+ ur as DropdownMenuSubContent,
678
+ dr as DropdownMenuSubTrigger,
679
+ pr as DropdownMenuTrigger,
680
+ uo as Field,
681
+ po as FieldContent,
682
+ go as FieldDescription,
683
+ fo as FieldError,
684
+ vo as FieldGroup,
685
+ ho as FieldLabel,
686
+ bo as FieldLegend,
687
+ mo as FieldSeparator,
688
+ xo as FieldSet,
689
+ Co as FieldTitle,
690
+ gr as HoverCard,
691
+ fr as HoverCardContent,
692
+ vr as HoverCardTrigger,
693
+ ue as Input,
694
+ qe as InputGroup,
695
+ Xe as InputGroupAddon,
696
+ Ke as InputGroupButton,
697
+ We as InputGroupInput,
698
+ Qe as InputGroupText,
699
+ Je as InputGroupTextarea,
700
+ hr as Label,
701
+ To as Popover,
702
+ wo as PopoverAnchor,
703
+ yo as PopoverContent,
704
+ Do as PopoverDescription,
705
+ Po as PopoverHeader,
706
+ So as PopoverTitle,
707
+ Eo as PopoverTrigger,
708
+ br as Progress,
709
+ mr as ScrollArea,
710
+ xr as ScrollBar,
711
+ Cr as Select,
712
+ Tr as SelectContent,
713
+ wr as SelectGroup,
714
+ yr as SelectItem,
715
+ Dr as SelectLabel,
716
+ Pr as SelectScrollDownButton,
717
+ Sr as SelectScrollUpButton,
718
+ Er as SelectSeparator,
719
+ kr as SelectTrigger,
720
+ Rr as SelectValue,
721
+ pe as Separator,
722
+ _r as Sheet,
723
+ Lr as SheetClose,
724
+ Mr as SheetContent,
725
+ Ir as SheetDescription,
726
+ Ar as SheetFooter,
727
+ Or as SheetHeader,
728
+ Nr as SheetTitle,
729
+ Hr as SheetTrigger,
730
+ so as Skeleton,
731
+ Gr as Switch,
732
+ zr as Table,
733
+ Fr as TableBody,
734
+ Br as TableCaption,
735
+ Vr as TableCell,
736
+ jr as TableFooter,
737
+ $r as TableHead,
738
+ Ur as TableHeader,
739
+ Yr as TableRow,
740
+ qr as Tabs,
741
+ Xr as TabsContent,
742
+ Kr as TabsList,
743
+ Qr as TabsTrigger,
744
+ de as Textarea,
745
+ Wr as Timeline,
746
+ Jr as TimelineContent,
747
+ Zr as TimelineDate,
748
+ eo as TimelineHeader,
749
+ to as TimelineIndicator,
750
+ ro as TimelineItem,
751
+ oo as TimelineSeparator,
752
+ ao as TimelineTitle,
753
+ $e as Tooltip,
754
+ Ye as TooltipContent,
755
+ je as TooltipProvider,
756
+ Ue as TooltipTrigger,
757
+ ze as badgeVariants,
758
+ Ge as buttonGroupVariants,
759
+ x as cn,
760
+ Ve as useMediaQuery
405
761
  };