@arcadeai/design-system 0.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (109) hide show
  1. package/README.md +128 -0
  2. package/dist/check-CxcShTlQ.js +11 -0
  3. package/dist/chevron-down-D_a-ccxi.js +11 -0
  4. package/dist/chevron-right-DriXIqe5.js +11 -0
  5. package/dist/components/index.d.ts +1 -0
  6. package/dist/components/index.js +195 -0
  7. package/dist/components/ui/atoms/accordion.d.ts +7 -0
  8. package/dist/components/ui/atoms/accordion.js +289 -0
  9. package/dist/components/ui/atoms/alert.d.ts +9 -0
  10. package/dist/components/ui/atoms/alert.js +66 -0
  11. package/dist/components/ui/atoms/avatar.d.ts +6 -0
  12. package/dist/components/ui/atoms/avatar.js +130 -0
  13. package/dist/components/ui/atoms/badge.d.ts +9 -0
  14. package/dist/components/ui/atoms/badge.js +41 -0
  15. package/dist/components/ui/atoms/breadcrumb.d.ts +11 -0
  16. package/dist/components/ui/atoms/breadcrumb.js +115 -0
  17. package/dist/components/ui/atoms/button.d.ts +10 -0
  18. package/dist/components/ui/atoms/button.js +51 -0
  19. package/dist/components/ui/atoms/card.d.ts +9 -0
  20. package/dist/components/ui/atoms/card.js +90 -0
  21. package/dist/components/ui/atoms/chart.d.ts +68 -0
  22. package/dist/components/ui/atoms/chart.js +10477 -0
  23. package/dist/components/ui/atoms/collapsible.d.ts +5 -0
  24. package/dist/components/ui/atoms/collapsible.js +34 -0
  25. package/dist/components/ui/atoms/command.d.ts +18 -0
  26. package/dist/components/ui/atoms/command.js +490 -0
  27. package/dist/components/ui/atoms/dialog.d.ts +15 -0
  28. package/dist/components/ui/atoms/dialog.js +135 -0
  29. package/dist/components/ui/atoms/dropdown-menu.d.ts +25 -0
  30. package/dist/components/ui/atoms/dropdown-menu.js +1035 -0
  31. package/dist/components/ui/atoms/form.d.ts +24 -0
  32. package/dist/components/ui/atoms/form.js +297 -0
  33. package/dist/components/ui/atoms/hover-card.d.ts +6 -0
  34. package/dist/components/ui/atoms/hover-card.js +211 -0
  35. package/dist/components/ui/atoms/index.d.ts +33 -0
  36. package/dist/components/ui/atoms/index.js +195 -0
  37. package/dist/components/ui/atoms/input.d.ts +3 -0
  38. package/dist/components/ui/atoms/input.js +21 -0
  39. package/dist/components/ui/atoms/label.d.ts +4 -0
  40. package/dist/components/ui/atoms/label.js +36 -0
  41. package/dist/components/ui/atoms/popover.d.ts +7 -0
  42. package/dist/components/ui/atoms/popover.js +266 -0
  43. package/dist/components/ui/atoms/progress.d.ts +4 -0
  44. package/dist/components/ui/atoms/progress.js +107 -0
  45. package/dist/components/ui/atoms/resizable.d.ts +8 -0
  46. package/dist/components/ui/atoms/resizable.js +1564 -0
  47. package/dist/components/ui/atoms/scroll-area.d.ts +5 -0
  48. package/dist/components/ui/atoms/scroll-area.js +580 -0
  49. package/dist/components/ui/atoms/select.d.ts +15 -0
  50. package/dist/components/ui/atoms/select.js +1000 -0
  51. package/dist/components/ui/atoms/separator.d.ts +4 -0
  52. package/dist/components/ui/atoms/separator.js +44 -0
  53. package/dist/components/ui/atoms/sheet.d.ts +14 -0
  54. package/dist/components/ui/atoms/sheet.js +127 -0
  55. package/dist/components/ui/atoms/sidebar.d.ts +69 -0
  56. package/dist/components/ui/atoms/sidebar.js +602 -0
  57. package/dist/components/ui/atoms/skeleton.d.ts +2 -0
  58. package/dist/components/ui/atoms/skeleton.js +15 -0
  59. package/dist/components/ui/atoms/slider.d.ts +4 -0
  60. package/dist/components/ui/atoms/slider.js +484 -0
  61. package/dist/components/ui/atoms/sonner.d.ts +3 -0
  62. package/dist/components/ui/atoms/sonner.js +788 -0
  63. package/dist/components/ui/atoms/switch.d.ts +4 -0
  64. package/dist/components/ui/atoms/switch.js +155 -0
  65. package/dist/components/ui/atoms/table.d.ts +10 -0
  66. package/dist/components/ui/atoms/table.js +114 -0
  67. package/dist/components/ui/atoms/tabs.d.ts +7 -0
  68. package/dist/components/ui/atoms/tabs.js +218 -0
  69. package/dist/components/ui/atoms/textarea.d.ts +3 -0
  70. package/dist/components/ui/atoms/textarea.js +18 -0
  71. package/dist/components/ui/atoms/toggle.d.ts +9 -0
  72. package/dist/components/ui/atoms/toggle.js +70 -0
  73. package/dist/components/ui/atoms/tooltip.d.ts +7 -0
  74. package/dist/components/ui/atoms/tooltip.js +376 -0
  75. package/dist/components/ui/index.d.ts +1 -0
  76. package/dist/components/ui/index.js +195 -0
  77. package/dist/createLucideIcon-B6fy1GTR.js +94 -0
  78. package/dist/hooks/use-mobile.d.ts +1 -0
  79. package/dist/hooks/use-mobile.js +14 -0
  80. package/dist/index-BAhNQL1u.js +675 -0
  81. package/dist/index-BZPx6jYI.js +8 -0
  82. package/dist/index-ByaXH_ih.js +10 -0
  83. package/dist/index-C9KW2H79.js +36 -0
  84. package/dist/index-CB1Wkg0G.js +83 -0
  85. package/dist/index-CHDs-SiB.js +27 -0
  86. package/dist/index-CJFGOBPb.js +122 -0
  87. package/dist/index-CL4N9wMT.js +259 -0
  88. package/dist/index-CuMpq4Un.js +47 -0
  89. package/dist/index-CxK6rt_N.js +119 -0
  90. package/dist/index-D2uXV4lz.js +181 -0
  91. package/dist/index-DLeNytVF.js +9 -0
  92. package/dist/index-DYfkNB0n.js +54 -0
  93. package/dist/index-DdnpnyX2.js +34 -0
  94. package/dist/index-DuekHEmj.js +6 -0
  95. package/dist/index-DwYXX2sM.js +13 -0
  96. package/dist/index-Dy7YuPrV.js +1532 -0
  97. package/dist/index-QMp1pYFl.js +145 -0
  98. package/dist/index-UFb2E87s.js +70 -0
  99. package/dist/index-nluJZSbA.js +31 -0
  100. package/dist/index-p7nYL7BU.js +71 -0
  101. package/dist/index-rKs9bXHr.js +6 -0
  102. package/dist/index-umR1UobZ.js +13 -0
  103. package/dist/index.css +2 -0
  104. package/dist/lib/utils.d.ts +2 -0
  105. package/dist/lib/utils.js +4 -0
  106. package/dist/main.d.ts +1 -0
  107. package/dist/main.js +195 -0
  108. package/dist/utils-Dy2WjYNJ.js +2744 -0
  109. package/package.json +100 -0
@@ -0,0 +1,376 @@
1
+ import { jsx as u, jsxs as H } from "react/jsx-runtime";
2
+ import * as s from "react";
3
+ import { c as C } from "../../../index-DLeNytVF.js";
4
+ import { u as S, a as K } from "../../../index-CB1Wkg0G.js";
5
+ import { c as W } from "../../../index-UFb2E87s.js";
6
+ import { P as J, D as Q } from "../../../index-QMp1pYFl.js";
7
+ import { u as Z } from "../../../index-umR1UobZ.js";
8
+ import { c as G, R as ee, A as te, a as oe, C as re } from "../../../index-Dy7YuPrV.js";
9
+ import { P as j } from "../../../index-p7nYL7BU.js";
10
+ import { P as ne } from "../../../index-C9KW2H79.js";
11
+ import { u as se } from "../../../index-DYfkNB0n.js";
12
+ import { R as ae } from "../../../index-nluJZSbA.js";
13
+ import { c as ie } from "../../../utils-Dy2WjYNJ.js";
14
+ var [D, $e] = W("Tooltip", [
15
+ G
16
+ ]), A = G(), F = "TooltipProvider", le = 700, O = "tooltip.open", [ce, k] = D(F), z = (e) => {
17
+ const {
18
+ __scopeTooltip: o,
19
+ delayDuration: t = le,
20
+ skipDelayDuration: r = 300,
21
+ disableHoverableContent: n = !1,
22
+ children: i
23
+ } = e, l = s.useRef(!0), v = s.useRef(!1), a = s.useRef(0);
24
+ return s.useEffect(() => {
25
+ const d = a.current;
26
+ return () => window.clearTimeout(d);
27
+ }, []), /* @__PURE__ */ u(
28
+ ce,
29
+ {
30
+ scope: o,
31
+ isOpenDelayedRef: l,
32
+ delayDuration: t,
33
+ onOpen: s.useCallback(() => {
34
+ window.clearTimeout(a.current), l.current = !1;
35
+ }, []),
36
+ onClose: s.useCallback(() => {
37
+ window.clearTimeout(a.current), a.current = window.setTimeout(
38
+ () => l.current = !0,
39
+ r
40
+ );
41
+ }, [r]),
42
+ isPointerInTransitRef: v,
43
+ onPointerInTransitChange: s.useCallback((d) => {
44
+ v.current = d;
45
+ }, []),
46
+ disableHoverableContent: n,
47
+ children: i
48
+ }
49
+ );
50
+ };
51
+ z.displayName = F;
52
+ var R = "Tooltip", [ue, _] = D(R), $ = (e) => {
53
+ const {
54
+ __scopeTooltip: o,
55
+ children: t,
56
+ open: r,
57
+ defaultOpen: n,
58
+ onOpenChange: i,
59
+ disableHoverableContent: l,
60
+ delayDuration: v
61
+ } = e, a = k(R, e.__scopeTooltip), d = A(o), [c, f] = s.useState(null), m = Z(), p = s.useRef(0), h = l ?? a.disableHoverableContent, y = v ?? a.delayDuration, T = s.useRef(!1), [g, x] = se({
62
+ prop: r,
63
+ defaultProp: n ?? !1,
64
+ onChange: (N) => {
65
+ N ? (a.onOpen(), document.dispatchEvent(new CustomEvent(O))) : a.onClose(), i == null || i(N);
66
+ },
67
+ caller: R
68
+ }), w = s.useMemo(() => g ? T.current ? "delayed-open" : "instant-open" : "closed", [g]), P = s.useCallback(() => {
69
+ window.clearTimeout(p.current), p.current = 0, T.current = !1, x(!0);
70
+ }, [x]), E = s.useCallback(() => {
71
+ window.clearTimeout(p.current), p.current = 0, x(!1);
72
+ }, [x]), I = s.useCallback(() => {
73
+ window.clearTimeout(p.current), p.current = window.setTimeout(() => {
74
+ T.current = !0, x(!0), p.current = 0;
75
+ }, y);
76
+ }, [y, x]);
77
+ return s.useEffect(() => () => {
78
+ p.current && (window.clearTimeout(p.current), p.current = 0);
79
+ }, []), /* @__PURE__ */ u(ee, { ...d, children: /* @__PURE__ */ u(
80
+ ue,
81
+ {
82
+ scope: o,
83
+ contentId: m,
84
+ open: g,
85
+ stateAttribute: w,
86
+ trigger: c,
87
+ onTriggerChange: f,
88
+ onTriggerEnter: s.useCallback(() => {
89
+ a.isOpenDelayedRef.current ? I() : P();
90
+ }, [a.isOpenDelayedRef, I, P]),
91
+ onTriggerLeave: s.useCallback(() => {
92
+ h ? E() : (window.clearTimeout(p.current), p.current = 0);
93
+ }, [E, h]),
94
+ onOpen: P,
95
+ onClose: E,
96
+ disableHoverableContent: h,
97
+ children: t
98
+ }
99
+ ) });
100
+ };
101
+ $.displayName = R;
102
+ var L = "TooltipTrigger", B = s.forwardRef(
103
+ (e, o) => {
104
+ const { __scopeTooltip: t, ...r } = e, n = _(L, t), i = k(L, t), l = A(t), v = s.useRef(null), a = S(o, v, n.onTriggerChange), d = s.useRef(!1), c = s.useRef(!1), f = s.useCallback(() => d.current = !1, []);
105
+ return s.useEffect(() => () => document.removeEventListener("pointerup", f), [f]), /* @__PURE__ */ u(te, { asChild: !0, ...l, children: /* @__PURE__ */ u(
106
+ ne.button,
107
+ {
108
+ "aria-describedby": n.open ? n.contentId : void 0,
109
+ "data-state": n.stateAttribute,
110
+ ...r,
111
+ ref: a,
112
+ onPointerMove: C(e.onPointerMove, (m) => {
113
+ m.pointerType !== "touch" && !c.current && !i.isPointerInTransitRef.current && (n.onTriggerEnter(), c.current = !0);
114
+ }),
115
+ onPointerLeave: C(e.onPointerLeave, () => {
116
+ n.onTriggerLeave(), c.current = !1;
117
+ }),
118
+ onPointerDown: C(e.onPointerDown, () => {
119
+ n.open && n.onClose(), d.current = !0, document.addEventListener("pointerup", f, { once: !0 });
120
+ }),
121
+ onFocus: C(e.onFocus, () => {
122
+ d.current || n.onOpen();
123
+ }),
124
+ onBlur: C(e.onBlur, n.onClose),
125
+ onClick: C(e.onClick, n.onClose)
126
+ }
127
+ ) });
128
+ }
129
+ );
130
+ B.displayName = L;
131
+ var M = "TooltipPortal", [pe, de] = D(M, {
132
+ forceMount: void 0
133
+ }), U = (e) => {
134
+ const { __scopeTooltip: o, forceMount: t, children: r, container: n } = e, i = _(M, o);
135
+ return /* @__PURE__ */ u(pe, { scope: o, forceMount: t, children: /* @__PURE__ */ u(j, { present: t || i.open, children: /* @__PURE__ */ u(J, { asChild: !0, container: n, children: r }) }) });
136
+ };
137
+ U.displayName = M;
138
+ var b = "TooltipContent", V = s.forwardRef(
139
+ (e, o) => {
140
+ const t = de(b, e.__scopeTooltip), { forceMount: r = t.forceMount, side: n = "top", ...i } = e, l = _(b, e.__scopeTooltip);
141
+ return /* @__PURE__ */ u(j, { present: r || l.open, children: l.disableHoverableContent ? /* @__PURE__ */ u(Y, { side: n, ...i, ref: o }) : /* @__PURE__ */ u(fe, { side: n, ...i, ref: o }) });
142
+ }
143
+ ), fe = s.forwardRef((e, o) => {
144
+ const t = _(b, e.__scopeTooltip), r = k(b, e.__scopeTooltip), n = s.useRef(null), i = S(o, n), [l, v] = s.useState(null), { trigger: a, onClose: d } = t, c = n.current, { onPointerInTransitChange: f } = r, m = s.useCallback(() => {
145
+ v(null), f(!1);
146
+ }, [f]), p = s.useCallback(
147
+ (h, y) => {
148
+ const T = h.currentTarget, g = { x: h.clientX, y: h.clientY }, x = Te(g, T.getBoundingClientRect()), w = ye(g, x), P = xe(y.getBoundingClientRect()), E = Ce([...w, ...P]);
149
+ v(E), f(!0);
150
+ },
151
+ [f]
152
+ );
153
+ return s.useEffect(() => () => m(), [m]), s.useEffect(() => {
154
+ if (a && c) {
155
+ const h = (T) => p(T, c), y = (T) => p(T, a);
156
+ return a.addEventListener("pointerleave", h), c.addEventListener("pointerleave", y), () => {
157
+ a.removeEventListener("pointerleave", h), c.removeEventListener("pointerleave", y);
158
+ };
159
+ }
160
+ }, [a, c, p, m]), s.useEffect(() => {
161
+ if (l) {
162
+ const h = (y) => {
163
+ const T = y.target, g = { x: y.clientX, y: y.clientY }, x = (a == null ? void 0 : a.contains(T)) || (c == null ? void 0 : c.contains(T)), w = !ge(g, l);
164
+ x ? m() : w && (m(), d());
165
+ };
166
+ return document.addEventListener("pointermove", h), () => document.removeEventListener("pointermove", h);
167
+ }
168
+ }, [a, c, l, d, m]), /* @__PURE__ */ u(Y, { ...e, ref: i });
169
+ }), [ve, me] = D(R, { isInside: !1 }), he = K("TooltipContent"), Y = s.forwardRef(
170
+ (e, o) => {
171
+ const {
172
+ __scopeTooltip: t,
173
+ children: r,
174
+ "aria-label": n,
175
+ onEscapeKeyDown: i,
176
+ onPointerDownOutside: l,
177
+ ...v
178
+ } = e, a = _(b, t), d = A(t), { onClose: c } = a;
179
+ return s.useEffect(() => (document.addEventListener(O, c), () => document.removeEventListener(O, c)), [c]), s.useEffect(() => {
180
+ if (a.trigger) {
181
+ const f = (m) => {
182
+ const p = m.target;
183
+ p != null && p.contains(a.trigger) && c();
184
+ };
185
+ return window.addEventListener("scroll", f, { capture: !0 }), () => window.removeEventListener("scroll", f, { capture: !0 });
186
+ }
187
+ }, [a.trigger, c]), /* @__PURE__ */ u(
188
+ Q,
189
+ {
190
+ asChild: !0,
191
+ disableOutsidePointerEvents: !1,
192
+ onEscapeKeyDown: i,
193
+ onPointerDownOutside: l,
194
+ onFocusOutside: (f) => f.preventDefault(),
195
+ onDismiss: c,
196
+ children: /* @__PURE__ */ H(
197
+ re,
198
+ {
199
+ "data-state": a.stateAttribute,
200
+ ...d,
201
+ ...v,
202
+ ref: o,
203
+ style: {
204
+ ...v.style,
205
+ "--radix-tooltip-content-transform-origin": "var(--radix-popper-transform-origin)",
206
+ "--radix-tooltip-content-available-width": "var(--radix-popper-available-width)",
207
+ "--radix-tooltip-content-available-height": "var(--radix-popper-available-height)",
208
+ "--radix-tooltip-trigger-width": "var(--radix-popper-anchor-width)",
209
+ "--radix-tooltip-trigger-height": "var(--radix-popper-anchor-height)"
210
+ },
211
+ children: [
212
+ /* @__PURE__ */ u(he, { children: r }),
213
+ /* @__PURE__ */ u(ve, { scope: t, isInside: !0, children: /* @__PURE__ */ u(ae, { id: a.contentId, role: "tooltip", children: n || r }) })
214
+ ]
215
+ }
216
+ )
217
+ }
218
+ );
219
+ }
220
+ );
221
+ V.displayName = b;
222
+ var q = "TooltipArrow", X = s.forwardRef(
223
+ (e, o) => {
224
+ const { __scopeTooltip: t, ...r } = e, n = A(t);
225
+ return me(
226
+ q,
227
+ t
228
+ ).isInside ? null : /* @__PURE__ */ u(oe, { ...n, ...r, ref: o });
229
+ }
230
+ );
231
+ X.displayName = q;
232
+ function Te(e, o) {
233
+ const t = Math.abs(o.top - e.y), r = Math.abs(o.bottom - e.y), n = Math.abs(o.right - e.x), i = Math.abs(o.left - e.x);
234
+ switch (Math.min(t, r, n, i)) {
235
+ case i:
236
+ return "left";
237
+ case n:
238
+ return "right";
239
+ case t:
240
+ return "top";
241
+ case r:
242
+ return "bottom";
243
+ default:
244
+ throw new Error("unreachable");
245
+ }
246
+ }
247
+ function ye(e, o, t = 5) {
248
+ const r = [];
249
+ switch (o) {
250
+ case "top":
251
+ r.push(
252
+ { x: e.x - t, y: e.y + t },
253
+ { x: e.x + t, y: e.y + t }
254
+ );
255
+ break;
256
+ case "bottom":
257
+ r.push(
258
+ { x: e.x - t, y: e.y - t },
259
+ { x: e.x + t, y: e.y - t }
260
+ );
261
+ break;
262
+ case "left":
263
+ r.push(
264
+ { x: e.x + t, y: e.y - t },
265
+ { x: e.x + t, y: e.y + t }
266
+ );
267
+ break;
268
+ case "right":
269
+ r.push(
270
+ { x: e.x - t, y: e.y - t },
271
+ { x: e.x - t, y: e.y + t }
272
+ );
273
+ break;
274
+ }
275
+ return r;
276
+ }
277
+ function xe(e) {
278
+ const { top: o, right: t, bottom: r, left: n } = e;
279
+ return [
280
+ { x: n, y: o },
281
+ { x: t, y: o },
282
+ { x: t, y: r },
283
+ { x: n, y: r }
284
+ ];
285
+ }
286
+ function ge(e, o) {
287
+ const { x: t, y: r } = e;
288
+ let n = !1;
289
+ for (let i = 0, l = o.length - 1; i < o.length; l = i++) {
290
+ const v = o[i], a = o[l], d = v.x, c = v.y, f = a.x, m = a.y;
291
+ c > r != m > r && t < (f - d) * (r - c) / (m - c) + d && (n = !n);
292
+ }
293
+ return n;
294
+ }
295
+ function Ce(e) {
296
+ const o = e.slice();
297
+ return o.sort((t, r) => t.x < r.x ? -1 : t.x > r.x ? 1 : t.y < r.y ? -1 : t.y > r.y ? 1 : 0), be(o);
298
+ }
299
+ function be(e) {
300
+ if (e.length <= 1) return e.slice();
301
+ const o = [];
302
+ for (let r = 0; r < e.length; r++) {
303
+ const n = e[r];
304
+ for (; o.length >= 2; ) {
305
+ const i = o[o.length - 1], l = o[o.length - 2];
306
+ if ((i.x - l.x) * (n.y - l.y) >= (i.y - l.y) * (n.x - l.x)) o.pop();
307
+ else break;
308
+ }
309
+ o.push(n);
310
+ }
311
+ o.pop();
312
+ const t = [];
313
+ for (let r = e.length - 1; r >= 0; r--) {
314
+ const n = e[r];
315
+ for (; t.length >= 2; ) {
316
+ const i = t[t.length - 1], l = t[t.length - 2];
317
+ if ((i.x - l.x) * (n.y - l.y) >= (i.y - l.y) * (n.x - l.x)) t.pop();
318
+ else break;
319
+ }
320
+ t.push(n);
321
+ }
322
+ return t.pop(), o.length === 1 && t.length === 1 && o[0].x === t[0].x && o[0].y === t[0].y ? o : o.concat(t);
323
+ }
324
+ var we = z, Pe = $, Ee = B, Re = U, _e = V, De = X;
325
+ function Ae({
326
+ delayDuration: e = 0,
327
+ ...o
328
+ }) {
329
+ return /* @__PURE__ */ u(
330
+ we,
331
+ {
332
+ "data-slot": "tooltip-provider",
333
+ delayDuration: e,
334
+ ...o
335
+ }
336
+ );
337
+ }
338
+ function Be({
339
+ ...e
340
+ }) {
341
+ return /* @__PURE__ */ u(Ae, { children: /* @__PURE__ */ u(Pe, { "data-slot": "tooltip", ...e }) });
342
+ }
343
+ function Ue({
344
+ ...e
345
+ }) {
346
+ return /* @__PURE__ */ u(Ee, { "data-slot": "tooltip-trigger", ...e });
347
+ }
348
+ function Ve({
349
+ className: e,
350
+ sideOffset: o = 0,
351
+ children: t,
352
+ ...r
353
+ }) {
354
+ return /* @__PURE__ */ u(Re, { children: /* @__PURE__ */ H(
355
+ _e,
356
+ {
357
+ className: ie(
358
+ "fade-in-0 zoom-in-95 data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-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 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) animate-in text-balance rounded-md bg-primary px-3 py-1.5 text-primary-foreground text-xs data-[state=closed]:animate-out",
359
+ e
360
+ ),
361
+ "data-slot": "tooltip-content",
362
+ sideOffset: o,
363
+ ...r,
364
+ children: [
365
+ t,
366
+ /* @__PURE__ */ u(De, { className: "z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px] bg-primary fill-primary" })
367
+ ]
368
+ }
369
+ ) });
370
+ }
371
+ export {
372
+ Be as Tooltip,
373
+ Ve as TooltipContent,
374
+ Ae as TooltipProvider,
375
+ Ue as TooltipTrigger
376
+ };
@@ -0,0 +1 @@
1
+ export * from './atoms';
@@ -0,0 +1,195 @@
1
+ import { Accordion as o, AccordionContent as t, AccordionItem as a, AccordionTrigger as n } from "./atoms/accordion.js";
2
+ import { Alert as l, AlertDescription as d, AlertTitle as p } from "./atoms/alert.js";
3
+ import { Avatar as S, AvatarFallback as b, AvatarImage as u } from "./atoms/avatar.js";
4
+ import { Badge as g, badgeVariants as c } from "./atoms/badge.js";
5
+ import { Breadcrumb as x, BreadcrumbEllipsis as f, BreadcrumbItem as s, BreadcrumbLink as D, BreadcrumbList as M, BreadcrumbPage as h, BreadcrumbSeparator as w } from "./atoms/breadcrumb.js";
6
+ import { Button as F, buttonVariants as A } from "./atoms/button.js";
7
+ import { Card as v, CardAction as P, CardContent as L, CardDescription as H, CardFooter as G, CardHeader as R, CardTitle as k } from "./atoms/card.js";
8
+ import { ChartContainer as V, ChartLegend as z, ChartLegendContent as E, ChartStyle as O, ChartTooltip as U, ChartTooltipContent as j } from "./atoms/chart.js";
9
+ import { Collapsible as J, CollapsibleContent as K, CollapsibleTrigger as N } from "./atoms/collapsible.js";
10
+ import { Command as W, CommandDialog as X, CommandEmpty as Y, CommandGroup as Z, CommandInput as _, CommandItem as $, CommandList as ee, CommandSeparator as re, CommandShortcut as oe } from "./atoms/command.js";
11
+ import { Dialog as ae, DialogClose as ne, DialogContent as ie, DialogDescription as le, DialogFooter as de, DialogHeader as pe, DialogOverlay as me, DialogPortal as Se, DialogTitle as be, DialogTrigger as ue } from "./atoms/dialog.js";
12
+ import { DropdownMenu as ge, DropdownMenuCheckboxItem as ce, DropdownMenuContent as Te, DropdownMenuGroup as xe, DropdownMenuItem as fe, DropdownMenuLabel as se, DropdownMenuPortal as De, DropdownMenuRadioGroup as Me, DropdownMenuRadioItem as he, DropdownMenuSeparator as we, DropdownMenuShortcut as Be, DropdownMenuSub as Fe, DropdownMenuSubContent as Ae, DropdownMenuSubTrigger as Ie, DropdownMenuTrigger as ve } from "./atoms/dropdown-menu.js";
13
+ import { Form as Le, FormControl as He, FormDescription as Ge, FormField as Re, FormItem as ke, FormLabel as ye, FormMessage as Ve, useFormField as ze } from "./atoms/form.js";
14
+ import { HoverCard as Oe, HoverCardContent as Ue, HoverCardTrigger as je } from "./atoms/hover-card.js";
15
+ import { Input as Je } from "./atoms/input.js";
16
+ import { Label as Ne } from "./atoms/label.js";
17
+ import { Popover as We, PopoverAnchor as Xe, PopoverContent as Ye, PopoverTrigger as Ze } from "./atoms/popover.js";
18
+ import { Progress as $e } from "./atoms/progress.js";
19
+ import { ResizableHandle as rr, ResizablePanel as or, ResizablePanelGroup as tr } from "./atoms/resizable.js";
20
+ import { ScrollArea as nr, ScrollBar as ir } from "./atoms/scroll-area.js";
21
+ import { Select as dr, SelectContent as pr, SelectGroup as mr, SelectItem as Sr, SelectLabel as br, SelectScrollDownButton as ur, SelectScrollUpButton as Cr, SelectSeparator as gr, SelectTrigger as cr, SelectValue as Tr } from "./atoms/select.js";
22
+ import { Separator as fr } from "./atoms/separator.js";
23
+ import { Sheet as Dr, SheetClose as Mr, SheetContent as hr, SheetDescription as wr, SheetFooter as Br, SheetHeader as Fr, SheetTitle as Ar, SheetTrigger as Ir } from "./atoms/sheet.js";
24
+ import { Sidebar as Pr, SidebarContent as Lr, SidebarFooter as Hr, SidebarGroup as Gr, SidebarGroupAction as Rr, SidebarGroupContent as kr, SidebarGroupLabel as yr, SidebarHeader as Vr, SidebarInput as zr, SidebarInset as Er, SidebarMenu as Or, SidebarMenuAction as Ur, SidebarMenuBadge as jr, SidebarMenuButton as qr, SidebarMenuItem as Jr, SidebarMenuSkeleton as Kr, SidebarMenuSub as Nr, SidebarMenuSubButton as Qr, SidebarMenuSubItem as Wr, SidebarProvider as Xr, SidebarRail as Yr, SidebarSeparator as Zr, SidebarTrigger as _r, useSidebar as $r } from "./atoms/sidebar.js";
25
+ import { Skeleton as ro } from "./atoms/skeleton.js";
26
+ import { Slider as to } from "./atoms/slider.js";
27
+ import { Toaster as no } from "./atoms/sonner.js";
28
+ import { Switch as lo } from "./atoms/switch.js";
29
+ import { Table as mo, TableBody as So, TableCaption as bo, TableCell as uo, TableFooter as Co, TableHead as go, TableHeader as co, TableRow as To } from "./atoms/table.js";
30
+ import { Tabs as fo, TabsContent as so, TabsList as Do, TabsTrigger as Mo } from "./atoms/tabs.js";
31
+ import { Textarea as wo } from "./atoms/textarea.js";
32
+ import { Toggle as Fo, toggleVariants as Ao } from "./atoms/toggle.js";
33
+ import { Tooltip as vo, TooltipContent as Po, TooltipProvider as Lo, TooltipTrigger as Ho } from "./atoms/tooltip.js";
34
+ export {
35
+ o as Accordion,
36
+ t as AccordionContent,
37
+ a as AccordionItem,
38
+ n as AccordionTrigger,
39
+ l as Alert,
40
+ d as AlertDescription,
41
+ p as AlertTitle,
42
+ S as Avatar,
43
+ b as AvatarFallback,
44
+ u as AvatarImage,
45
+ g as Badge,
46
+ x as Breadcrumb,
47
+ f as BreadcrumbEllipsis,
48
+ s as BreadcrumbItem,
49
+ D as BreadcrumbLink,
50
+ M as BreadcrumbList,
51
+ h as BreadcrumbPage,
52
+ w as BreadcrumbSeparator,
53
+ F as Button,
54
+ v as Card,
55
+ P as CardAction,
56
+ L as CardContent,
57
+ H as CardDescription,
58
+ G as CardFooter,
59
+ R as CardHeader,
60
+ k as CardTitle,
61
+ V as ChartContainer,
62
+ z as ChartLegend,
63
+ E as ChartLegendContent,
64
+ O as ChartStyle,
65
+ U as ChartTooltip,
66
+ j as ChartTooltipContent,
67
+ J as Collapsible,
68
+ K as CollapsibleContent,
69
+ N as CollapsibleTrigger,
70
+ W as Command,
71
+ X as CommandDialog,
72
+ Y as CommandEmpty,
73
+ Z as CommandGroup,
74
+ _ as CommandInput,
75
+ $ as CommandItem,
76
+ ee as CommandList,
77
+ re as CommandSeparator,
78
+ oe as CommandShortcut,
79
+ ae as Dialog,
80
+ ne as DialogClose,
81
+ ie as DialogContent,
82
+ le as DialogDescription,
83
+ de as DialogFooter,
84
+ pe as DialogHeader,
85
+ me as DialogOverlay,
86
+ Se as DialogPortal,
87
+ be as DialogTitle,
88
+ ue as DialogTrigger,
89
+ ge as DropdownMenu,
90
+ ce as DropdownMenuCheckboxItem,
91
+ Te as DropdownMenuContent,
92
+ xe as DropdownMenuGroup,
93
+ fe as DropdownMenuItem,
94
+ se as DropdownMenuLabel,
95
+ De as DropdownMenuPortal,
96
+ Me as DropdownMenuRadioGroup,
97
+ he as DropdownMenuRadioItem,
98
+ we as DropdownMenuSeparator,
99
+ Be as DropdownMenuShortcut,
100
+ Fe as DropdownMenuSub,
101
+ Ae as DropdownMenuSubContent,
102
+ Ie as DropdownMenuSubTrigger,
103
+ ve as DropdownMenuTrigger,
104
+ Le as Form,
105
+ He as FormControl,
106
+ Ge as FormDescription,
107
+ Re as FormField,
108
+ ke as FormItem,
109
+ ye as FormLabel,
110
+ Ve as FormMessage,
111
+ Oe as HoverCard,
112
+ Ue as HoverCardContent,
113
+ je as HoverCardTrigger,
114
+ Je as Input,
115
+ Ne as Label,
116
+ We as Popover,
117
+ Xe as PopoverAnchor,
118
+ Ye as PopoverContent,
119
+ Ze as PopoverTrigger,
120
+ $e as Progress,
121
+ rr as ResizableHandle,
122
+ or as ResizablePanel,
123
+ tr as ResizablePanelGroup,
124
+ nr as ScrollArea,
125
+ ir as ScrollBar,
126
+ dr as Select,
127
+ pr as SelectContent,
128
+ mr as SelectGroup,
129
+ Sr as SelectItem,
130
+ br as SelectLabel,
131
+ ur as SelectScrollDownButton,
132
+ Cr as SelectScrollUpButton,
133
+ gr as SelectSeparator,
134
+ cr as SelectTrigger,
135
+ Tr as SelectValue,
136
+ fr as Separator,
137
+ Dr as Sheet,
138
+ Mr as SheetClose,
139
+ hr as SheetContent,
140
+ wr as SheetDescription,
141
+ Br as SheetFooter,
142
+ Fr as SheetHeader,
143
+ Ar as SheetTitle,
144
+ Ir as SheetTrigger,
145
+ Pr as Sidebar,
146
+ Lr as SidebarContent,
147
+ Hr as SidebarFooter,
148
+ Gr as SidebarGroup,
149
+ Rr as SidebarGroupAction,
150
+ kr as SidebarGroupContent,
151
+ yr as SidebarGroupLabel,
152
+ Vr as SidebarHeader,
153
+ zr as SidebarInput,
154
+ Er as SidebarInset,
155
+ Or as SidebarMenu,
156
+ Ur as SidebarMenuAction,
157
+ jr as SidebarMenuBadge,
158
+ qr as SidebarMenuButton,
159
+ Jr as SidebarMenuItem,
160
+ Kr as SidebarMenuSkeleton,
161
+ Nr as SidebarMenuSub,
162
+ Qr as SidebarMenuSubButton,
163
+ Wr as SidebarMenuSubItem,
164
+ Xr as SidebarProvider,
165
+ Yr as SidebarRail,
166
+ Zr as SidebarSeparator,
167
+ _r as SidebarTrigger,
168
+ ro as Skeleton,
169
+ to as Slider,
170
+ lo as Switch,
171
+ mo as Table,
172
+ So as TableBody,
173
+ bo as TableCaption,
174
+ uo as TableCell,
175
+ Co as TableFooter,
176
+ go as TableHead,
177
+ co as TableHeader,
178
+ To as TableRow,
179
+ fo as Tabs,
180
+ so as TabsContent,
181
+ Do as TabsList,
182
+ Mo as TabsTrigger,
183
+ wo as Textarea,
184
+ no as Toaster,
185
+ Fo as Toggle,
186
+ vo as Tooltip,
187
+ Po as TooltipContent,
188
+ Lo as TooltipProvider,
189
+ Ho as TooltipTrigger,
190
+ c as badgeVariants,
191
+ A as buttonVariants,
192
+ Ao as toggleVariants,
193
+ ze as useFormField,
194
+ $r as useSidebar
195
+ };
@@ -0,0 +1,94 @@
1
+ import { forwardRef as l, createElement as n } from "react";
2
+ /**
3
+ * @license lucide-react v0.522.0 - ISC
4
+ *
5
+ * This source code is licensed under the ISC license.
6
+ * See the LICENSE file in the root directory of this source tree.
7
+ */
8
+ const w = (t) => t.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), h = (t) => t.replace(
9
+ /^([A-Z])|[\s-_]+(\w)/g,
10
+ (e, r, o) => o ? o.toUpperCase() : r.toLowerCase()
11
+ ), i = (t) => {
12
+ const e = h(t);
13
+ return e.charAt(0).toUpperCase() + e.slice(1);
14
+ }, u = (...t) => t.filter((e, r, o) => !!e && e.trim() !== "" && o.indexOf(e) === r).join(" ").trim(), f = (t) => {
15
+ for (const e in t)
16
+ if (e.startsWith("aria-") || e === "role" || e === "title")
17
+ return !0;
18
+ };
19
+ /**
20
+ * @license lucide-react v0.522.0 - ISC
21
+ *
22
+ * This source code is licensed under the ISC license.
23
+ * See the LICENSE file in the root directory of this source tree.
24
+ */
25
+ var g = {
26
+ xmlns: "http://www.w3.org/2000/svg",
27
+ width: 24,
28
+ height: 24,
29
+ viewBox: "0 0 24 24",
30
+ fill: "none",
31
+ stroke: "currentColor",
32
+ strokeWidth: 2,
33
+ strokeLinecap: "round",
34
+ strokeLinejoin: "round"
35
+ };
36
+ /**
37
+ * @license lucide-react v0.522.0 - ISC
38
+ *
39
+ * This source code is licensed under the ISC license.
40
+ * See the LICENSE file in the root directory of this source tree.
41
+ */
42
+ const A = l(
43
+ ({
44
+ color: t = "currentColor",
45
+ size: e = 24,
46
+ strokeWidth: r = 2,
47
+ absoluteStrokeWidth: o,
48
+ className: s = "",
49
+ children: a,
50
+ iconNode: p,
51
+ ...c
52
+ }, m) => n(
53
+ "svg",
54
+ {
55
+ ref: m,
56
+ ...g,
57
+ width: e,
58
+ height: e,
59
+ stroke: t,
60
+ strokeWidth: o ? Number(r) * 24 / Number(e) : r,
61
+ className: u("lucide", s),
62
+ ...!a && !f(c) && { "aria-hidden": "true" },
63
+ ...c
64
+ },
65
+ [
66
+ ...p.map(([C, d]) => n(C, d)),
67
+ ...Array.isArray(a) ? a : [a]
68
+ ]
69
+ )
70
+ );
71
+ /**
72
+ * @license lucide-react v0.522.0 - ISC
73
+ *
74
+ * This source code is licensed under the ISC license.
75
+ * See the LICENSE file in the root directory of this source tree.
76
+ */
77
+ const k = (t, e) => {
78
+ const r = l(
79
+ ({ className: o, ...s }, a) => n(A, {
80
+ ref: a,
81
+ iconNode: e,
82
+ className: u(
83
+ `lucide-${w(i(t))}`,
84
+ `lucide-${t}`,
85
+ o
86
+ ),
87
+ ...s
88
+ })
89
+ );
90
+ return r.displayName = i(t), r;
91
+ };
92
+ export {
93
+ k as c
94
+ };
@@ -0,0 +1 @@
1
+ export declare function useIsMobile(): boolean;
@@ -0,0 +1,14 @@
1
+ import * as o from "react";
2
+ const e = 768;
3
+ function r() {
4
+ const [s, n] = o.useState(void 0);
5
+ return o.useEffect(() => {
6
+ const t = window.matchMedia(`(max-width: ${e - 1}px)`), i = () => {
7
+ n(window.innerWidth < e);
8
+ };
9
+ return t.addEventListener("change", i), n(window.innerWidth < e), () => t.removeEventListener("change", i);
10
+ }, []), !!s;
11
+ }
12
+ export {
13
+ r as useIsMobile
14
+ };