@grapadigital/shared-app-modules 0.0.175 → 0.0.178

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,382 +1,26 @@
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.BuckOH_X.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.BuckOH_X.js";
3
- import * as n from "react";
4
- import { S as so } from "./chuncks/skeleton.DL8TyUPY.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.DD2hYdsr.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) {
1
+ import { c as o, m as i, B as u, I as p, T as c, S as g, n as b, o as m } from "./chuncks/switch.BF6I8Lqo.js";
2
+ import { aD as L, aG as N, aE as V, aF as A, V as E, Z as j, $ as _, _ as R, X as O, W as Q, Y as U, aL as $, aO as q, aP as J, aQ as K, aM as W, aN as X, p as Y, au as Z, av as aa, ay as ea, az as ta, aw as ra, aA as oa, ax as sa, aC as na, aB as ia, F as da, G as la, H as ua, J as pa, K as ca, M as ga, N as ba, O as ma, Q as ha, U as va, ak as fa, ao as xa, ap as Ca, at as Ta, ar as wa, aq as Da, am as Sa, al as ka, as as ya, an as za, aZ as Ga, b1 as Ia, a$ as Ma, b6 as Fa, b0 as Ba, b3 as Pa, b7 as Ha, bb as La, b2 as Na, b4 as Va, b5 as Aa, b8 as Ea, b9 as ja, ba as _a, a_ as Ra, aI as Oa, aK as Qa, aJ as Ua, L as $a, aH as qa, bc as Ja, bd as Ka, q as Wa, v as Xa, r as Ya, x as Za, w as ae, E as ee, z as te, y as re, t as oe, s as se, a0 as ne, a2 as ie, a3 as de, a7 as le, a5 as ue, a4 as pe, a6 as ce, a1 as ge, be, ac as me, ae as he, aj as ve, ai as fe, af as xe, ag as Ce, ad as Te, ah as we, a8 as De, ab as Se, a9 as ke, aa as ye, aR as ze, aS as Ge, aT as Ie, aU as Me, aV as Fe, aW as Be, aX as Pe, aY as He } from "./chuncks/switch.BF6I8Lqo.js";
3
+ import * as d from "react";
4
+ import { S as Ne, T as Ve, b as Ae, c as Ee, a as je } from "./chuncks/tooltip.BR6kaw4f.js";
5
+ import { C as Re, 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.4p4HlZwe.js";
6
+ import { jsx as s } from "react/jsx-runtime";
7
+ function w(e) {
8
+ const [a, t] = d.useState(!1);
9
+ return d.useEffect(() => {
10
+ function r(l) {
11
11
  t(l.matches);
12
12
  }
13
- const a = matchMedia(e);
14
- return a.addEventListener("change", o), t(a.matches), () => a.removeEventListener("change", o);
15
- }, [e]), r;
13
+ const n = matchMedia(e);
14
+ return n.addEventListener("change", r), t(n.matches), () => n.removeEventListener("change", r);
15
+ }, [e]), a;
16
16
  }
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 }) {
17
+ function D({ className: e, ...a }) {
374
18
  return /* @__PURE__ */ s(
375
19
  "div",
376
20
  {
377
21
  "data-slot": "input-group",
378
22
  role: "group",
379
- className: x(
23
+ className: o(
380
24
  "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]",
381
25
  "h-9 has-[>textarea]:h-auto",
382
26
  // Variants based on alignment.
@@ -390,11 +34,11 @@ function qe({ className: e, ...r }) {
390
34
  "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",
391
35
  e
392
36
  ),
393
- ...r
37
+ ...a
394
38
  }
395
39
  );
396
40
  }
397
- const Ne = R(
41
+ const h = i(
398
42
  "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",
399
43
  {
400
44
  variants: {
@@ -410,9 +54,9 @@ const Ne = R(
410
54
  }
411
55
  }
412
56
  );
413
- function Xe({
57
+ function S({
414
58
  className: e,
415
- align: r = "inline-start",
59
+ align: a = "inline-start",
416
60
  ...t
417
61
  }) {
418
62
  return /* @__PURE__ */ s(
@@ -420,16 +64,16 @@ function Xe({
420
64
  {
421
65
  role: "group",
422
66
  "data-slot": "input-group-addon",
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();
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();
427
71
  },
428
72
  ...t
429
73
  }
430
74
  );
431
75
  }
432
- const He = R(
76
+ const v = i(
433
77
  "flex items-center gap-2 text-sm shadow-none",
434
78
  {
435
79
  variants: {
@@ -445,69 +89,69 @@ const He = R(
445
89
  }
446
90
  }
447
91
  );
448
- function Ke({
92
+ function k({
449
93
  className: e,
450
- type: r = "button",
94
+ type: a = "button",
451
95
  variant: t = "ghost",
452
- size: o = "xs",
453
- ...a
96
+ size: r = "xs",
97
+ ...n
454
98
  }) {
455
99
  return /* @__PURE__ */ s(
456
- ce,
100
+ u,
457
101
  {
458
- type: r,
459
- "data-size": o,
102
+ type: a,
103
+ "data-size": r,
460
104
  variant: t,
461
- className: x(He({ size: o }), e),
462
- ...a
105
+ className: o(v({ size: r }), e),
106
+ ...n
463
107
  }
464
108
  );
465
109
  }
466
- function Qe({ className: e, ...r }) {
110
+ function y({ className: e, ...a }) {
467
111
  return /* @__PURE__ */ s(
468
112
  "span",
469
113
  {
470
- className: x(
114
+ className: o(
471
115
  "text-muted-foreground flex items-center gap-2 text-sm [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none",
472
116
  e
473
117
  ),
474
- ...r
118
+ ...a
475
119
  }
476
120
  );
477
121
  }
478
- function We({
122
+ function z({
479
123
  className: e,
480
- ...r
124
+ ...a
481
125
  }) {
482
126
  return /* @__PURE__ */ s(
483
- ue,
127
+ p,
484
128
  {
485
129
  "data-slot": "input-group-control",
486
- className: x(
130
+ className: o(
487
131
  "flex-1 rounded-none border-0 bg-transparent shadow-none focus-visible:ring-0 dark:bg-transparent",
488
132
  e
489
133
  ),
490
- ...r
134
+ ...a
491
135
  }
492
136
  );
493
137
  }
494
- function Je({
138
+ function G({
495
139
  className: e,
496
- ...r
140
+ ...a
497
141
  }) {
498
142
  return /* @__PURE__ */ s(
499
- de,
143
+ c,
500
144
  {
501
145
  "data-slot": "input-group-control",
502
- className: x(
146
+ className: o(
503
147
  "flex-1 resize-none rounded-none border-0 bg-transparent py-3 shadow-none focus-visible:ring-0 dark:bg-transparent",
504
148
  e
505
149
  ),
506
- ...r
150
+ ...a
507
151
  }
508
152
  );
509
153
  }
510
- const Ge = R(
154
+ const f = i(
511
155
  "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",
512
156
  {
513
157
  variants: {
@@ -521,9 +165,9 @@ const Ge = R(
521
165
  }
522
166
  }
523
167
  );
524
- function Ze({
168
+ function I({
525
169
  className: e,
526
- orientation: r,
170
+ orientation: a,
527
171
  ...t
528
172
  }) {
529
173
  return /* @__PURE__ */ s(
@@ -531,21 +175,21 @@ function Ze({
531
175
  {
532
176
  role: "group",
533
177
  "data-slot": "button-group",
534
- "data-orientation": r,
535
- className: x(Ge({ orientation: r }), e),
178
+ "data-orientation": a,
179
+ className: o(f({ orientation: a }), e),
536
180
  ...t
537
181
  }
538
182
  );
539
183
  }
540
- function et({
184
+ function M({
541
185
  className: e,
542
- asChild: r = !1,
186
+ asChild: a = !1,
543
187
  ...t
544
188
  }) {
545
189
  return /* @__PURE__ */ s(
546
- r ? ge : "div",
190
+ a ? b : "div",
547
191
  {
548
- className: x(
192
+ className: o(
549
193
  "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",
550
194
  e
551
195
  ),
@@ -553,17 +197,17 @@ function et({
553
197
  }
554
198
  );
555
199
  }
556
- function tt({
200
+ function F({
557
201
  className: e,
558
- orientation: r = "vertical",
202
+ orientation: a = "vertical",
559
203
  ...t
560
204
  }) {
561
205
  return /* @__PURE__ */ s(
562
- pe,
206
+ g,
563
207
  {
564
208
  "data-slot": "button-group-separator",
565
- orientation: r,
566
- className: x(
209
+ orientation: a,
210
+ className: o(
567
211
  "bg-input relative !m-0 self-stretch data-[orientation=vertical]:h-auto",
568
212
  e
569
213
  ),
@@ -571,7 +215,7 @@ function tt({
571
215
  }
572
216
  );
573
217
  }
574
- const ze = R(
218
+ const x = i(
575
219
  "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",
576
220
  {
577
221
  variants: {
@@ -591,171 +235,171 @@ const ze = R(
591
235
  }
592
236
  }
593
237
  );
594
- function rt({
238
+ function B({
595
239
  className: e,
596
- variant: r = "default",
240
+ variant: a = "default",
597
241
  asChild: t = !1,
598
- ...o
242
+ ...r
599
243
  }) {
600
244
  return /* @__PURE__ */ s(
601
- t ? fe : "span",
245
+ t ? m : "span",
602
246
  {
603
247
  "data-slot": "badge",
604
- "data-variant": r,
605
- className: x(ze({ variant: r }), e),
606
- ...o
248
+ "data-variant": a,
249
+ className: o(x({ variant: a }), e),
250
+ ...r
607
251
  }
608
252
  );
609
253
  }
610
254
  export {
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
255
+ L as Accordion,
256
+ N as AccordionContent,
257
+ V as AccordionItem,
258
+ A as AccordionTrigger,
259
+ B as Badge,
260
+ u as Button,
261
+ I as ButtonGroup,
262
+ F as ButtonGroupSeparator,
263
+ M as ButtonGroupText,
264
+ Re as Calendar,
265
+ Oe as CalendarDayButton,
266
+ E as Card,
267
+ j as CardAction,
268
+ _ as CardContent,
269
+ R 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
+ Ta as DrawerDescription,
303
+ wa 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
+ Ba as DropdownMenuItem,
314
+ Pa as DropdownMenuLabel,
315
+ Ha as DropdownMenuPortal,
316
+ La as DropdownMenuRadioGroup,
317
+ Na as DropdownMenuRadioItem,
318
+ Va as DropdownMenuSeparator,
319
+ Aa as DropdownMenuShortcut,
320
+ Ea as DropdownMenuSub,
321
+ ja as DropdownMenuSubContent,
322
+ _a as DropdownMenuSubTrigger,
323
+ Ra 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
+ Ne 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
+ Te as TableHeader,
383
+ we 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
+ Be as TimelineItem,
395
+ Pe as TimelineSeparator,
396
+ He as TimelineTitle,
397
+ Ve as Tooltip,
398
+ Ae as TooltipContent,
399
+ Ee as TooltipProvider,
400
+ je as TooltipTrigger,
401
+ x as badgeVariants,
402
+ f as buttonGroupVariants,
403
+ o as cn,
404
+ w as useMediaQuery
761
405
  };