@grapadigital/shared-app-modules 0.0.175 → 0.0.176
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/action.d.ts +2 -1
- package/dist/assets/switch.css +1 -1
- package/dist/chuncks/{format.util.fEyACJbG.js → format.util.BvK_tzw5.js} +1 -1
- package/dist/chuncks/{popover.DD2hYdsr.js → popover.4p4HlZwe.js} +1 -1
- package/dist/chuncks/{switch.BuckOH_X.js → switch.BF6I8Lqo.js} +23 -22
- package/dist/chuncks/tooltip.BR6kaw4f.js +378 -0
- package/dist/chuncks/{youtube-icon.component.BzUx7I9H.js → youtube-icon.component.DNSli53G.js} +601 -664
- package/dist/components.d.ts +19 -15
- package/dist/components.js +198 -144
- package/dist/constants.js +1 -1
- package/dist/content.d.ts +2 -1
- package/dist/events.js +1 -1
- package/dist/invoice.d.ts +2 -1
- package/dist/pages.js +1 -1
- package/dist/payment.d.ts +2 -1
- package/dist/recruitment.d.ts +2 -1
- package/dist/sale.d.ts +2 -1
- package/dist/shadcn.js +218 -574
- package/dist/utils.js +4 -4
- package/package.json +9 -10
- package/dist/chuncks/skeleton.DL8TyUPY.js +0 -17
package/dist/shadcn.js
CHANGED
|
@@ -1,382 +1,26 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { aD as
|
|
3
|
-
import * as
|
|
4
|
-
import { S as
|
|
5
|
-
import { C as
|
|
6
|
-
import { jsx as s
|
|
7
|
-
function
|
|
8
|
-
const [
|
|
9
|
-
return
|
|
10
|
-
function
|
|
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
|
|
14
|
-
return
|
|
15
|
-
}, [e]),
|
|
13
|
+
const n = matchMedia(e);
|
|
14
|
+
return n.addEventListener("change", r), t(n.matches), () => n.removeEventListener("change", r);
|
|
15
|
+
}, [e]), a;
|
|
16
16
|
}
|
|
17
|
-
|
|
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:
|
|
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
|
-
...
|
|
37
|
+
...a
|
|
394
38
|
}
|
|
395
39
|
);
|
|
396
40
|
}
|
|
397
|
-
const
|
|
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
|
|
57
|
+
function S({
|
|
414
58
|
className: e,
|
|
415
|
-
align:
|
|
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":
|
|
424
|
-
className:
|
|
425
|
-
onClick: (
|
|
426
|
-
|
|
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
|
|
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
|
|
92
|
+
function k({
|
|
449
93
|
className: e,
|
|
450
|
-
type:
|
|
94
|
+
type: a = "button",
|
|
451
95
|
variant: t = "ghost",
|
|
452
|
-
size:
|
|
453
|
-
...
|
|
96
|
+
size: r = "xs",
|
|
97
|
+
...n
|
|
454
98
|
}) {
|
|
455
99
|
return /* @__PURE__ */ s(
|
|
456
|
-
|
|
100
|
+
u,
|
|
457
101
|
{
|
|
458
|
-
type:
|
|
459
|
-
"data-size":
|
|
102
|
+
type: a,
|
|
103
|
+
"data-size": r,
|
|
460
104
|
variant: t,
|
|
461
|
-
className:
|
|
462
|
-
...
|
|
105
|
+
className: o(v({ size: r }), e),
|
|
106
|
+
...n
|
|
463
107
|
}
|
|
464
108
|
);
|
|
465
109
|
}
|
|
466
|
-
function
|
|
110
|
+
function y({ className: e, ...a }) {
|
|
467
111
|
return /* @__PURE__ */ s(
|
|
468
112
|
"span",
|
|
469
113
|
{
|
|
470
|
-
className:
|
|
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
|
-
...
|
|
118
|
+
...a
|
|
475
119
|
}
|
|
476
120
|
);
|
|
477
121
|
}
|
|
478
|
-
function
|
|
122
|
+
function z({
|
|
479
123
|
className: e,
|
|
480
|
-
...
|
|
124
|
+
...a
|
|
481
125
|
}) {
|
|
482
126
|
return /* @__PURE__ */ s(
|
|
483
|
-
|
|
127
|
+
p,
|
|
484
128
|
{
|
|
485
129
|
"data-slot": "input-group-control",
|
|
486
|
-
className:
|
|
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
|
-
...
|
|
134
|
+
...a
|
|
491
135
|
}
|
|
492
136
|
);
|
|
493
137
|
}
|
|
494
|
-
function
|
|
138
|
+
function G({
|
|
495
139
|
className: e,
|
|
496
|
-
...
|
|
140
|
+
...a
|
|
497
141
|
}) {
|
|
498
142
|
return /* @__PURE__ */ s(
|
|
499
|
-
|
|
143
|
+
c,
|
|
500
144
|
{
|
|
501
145
|
"data-slot": "input-group-control",
|
|
502
|
-
className:
|
|
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
|
-
...
|
|
150
|
+
...a
|
|
507
151
|
}
|
|
508
152
|
);
|
|
509
153
|
}
|
|
510
|
-
const
|
|
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
|
|
168
|
+
function I({
|
|
525
169
|
className: e,
|
|
526
|
-
orientation:
|
|
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":
|
|
535
|
-
className:
|
|
178
|
+
"data-orientation": a,
|
|
179
|
+
className: o(f({ orientation: a }), e),
|
|
536
180
|
...t
|
|
537
181
|
}
|
|
538
182
|
);
|
|
539
183
|
}
|
|
540
|
-
function
|
|
184
|
+
function M({
|
|
541
185
|
className: e,
|
|
542
|
-
asChild:
|
|
186
|
+
asChild: a = !1,
|
|
543
187
|
...t
|
|
544
188
|
}) {
|
|
545
189
|
return /* @__PURE__ */ s(
|
|
546
|
-
|
|
190
|
+
a ? b : "div",
|
|
547
191
|
{
|
|
548
|
-
className:
|
|
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
|
|
200
|
+
function F({
|
|
557
201
|
className: e,
|
|
558
|
-
orientation:
|
|
202
|
+
orientation: a = "vertical",
|
|
559
203
|
...t
|
|
560
204
|
}) {
|
|
561
205
|
return /* @__PURE__ */ s(
|
|
562
|
-
|
|
206
|
+
g,
|
|
563
207
|
{
|
|
564
208
|
"data-slot": "button-group-separator",
|
|
565
|
-
orientation:
|
|
566
|
-
className:
|
|
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
|
|
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
|
|
238
|
+
function B({
|
|
595
239
|
className: e,
|
|
596
|
-
variant:
|
|
240
|
+
variant: a = "default",
|
|
597
241
|
asChild: t = !1,
|
|
598
|
-
...
|
|
242
|
+
...r
|
|
599
243
|
}) {
|
|
600
244
|
return /* @__PURE__ */ s(
|
|
601
|
-
t ?
|
|
245
|
+
t ? m : "span",
|
|
602
246
|
{
|
|
603
247
|
"data-slot": "badge",
|
|
604
|
-
"data-variant":
|
|
605
|
-
className: x(
|
|
606
|
-
...
|
|
248
|
+
"data-variant": a,
|
|
249
|
+
className: o(x({ variant: a }), e),
|
|
250
|
+
...r
|
|
607
251
|
}
|
|
608
252
|
);
|
|
609
253
|
}
|
|
610
254
|
export {
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
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
|
};
|