@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,602 @@
1
+ import { jsx as t, jsxs as p } from "react/jsx-runtime";
2
+ import { S as h } from "../../../index-CB1Wkg0G.js";
3
+ import { c as C } from "../../../index-DdnpnyX2.js";
4
+ import * as l from "react";
5
+ import { Button as z } from "./button.js";
6
+ import { Input as I } from "./input.js";
7
+ import { Separator as E } from "./separator.js";
8
+ import { Sheet as D, SheetContent as T, SheetHeader as B, SheetTitle as A, SheetDescription as O } from "./sheet.js";
9
+ import { Skeleton as N } from "./skeleton.js";
10
+ import { Tooltip as R, TooltipTrigger as H, TooltipContent as K, TooltipProvider as L } from "./tooltip.js";
11
+ import { useIsMobile as j } from "../../../hooks/use-mobile.js";
12
+ import { c as r } from "../../../utils-Dy2WjYNJ.js";
13
+ import { c as G } from "../../../createLucideIcon-B6fy1GTR.js";
14
+ /**
15
+ * @license lucide-react v0.522.0 - ISC
16
+ *
17
+ * This source code is licensed under the ISC license.
18
+ * See the LICENSE file in the root directory of this source tree.
19
+ */
20
+ const $ = [
21
+ ["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
22
+ ["path", { d: "M9 3v18", key: "fh3hqa" }]
23
+ ], q = G("panel-left", $), P = "sidebar_state", V = 60 * 60 * 24 * 7, W = "16rem", F = "18rem", U = "3rem", X = "b", _ = l.createContext(null);
24
+ function S() {
25
+ const a = l.useContext(_);
26
+ if (!a)
27
+ throw new Error("useSidebar must be used within a SidebarProvider.");
28
+ return a;
29
+ }
30
+ function le({
31
+ defaultOpen: a = !0,
32
+ open: e,
33
+ onOpenChange: i,
34
+ className: n,
35
+ style: o,
36
+ children: c,
37
+ ...m
38
+ }) {
39
+ const s = j(), [b, f] = l.useState(!1), [v, M] = l.useState(a), g = e ?? v, x = l.useCallback(
40
+ (d) => {
41
+ const u = typeof d == "function" ? d(g) : d;
42
+ i ? i(u) : M(u), document.cookie = `${P}=${u}; path=/; max-age=${V}`;
43
+ },
44
+ [i, g]
45
+ ), w = l.useCallback(() => s ? f((d) => !d) : x((d) => !d), [s, x]);
46
+ l.useEffect(() => {
47
+ const d = (u) => {
48
+ u.key === X && (u.metaKey || u.ctrlKey) && (u.preventDefault(), w());
49
+ };
50
+ return window.addEventListener("keydown", d), () => window.removeEventListener("keydown", d);
51
+ }, [w]);
52
+ const y = g ? "expanded" : "collapsed", k = l.useMemo(
53
+ () => ({
54
+ state: y,
55
+ open: g,
56
+ setOpen: x,
57
+ isMobile: s,
58
+ openMobile: b,
59
+ setOpenMobile: f,
60
+ toggleSidebar: w
61
+ }),
62
+ [y, g, x, s, b, w]
63
+ );
64
+ return /* @__PURE__ */ t(_.Provider, { value: k, children: /* @__PURE__ */ t(L, { delayDuration: 0, children: /* @__PURE__ */ t(
65
+ "div",
66
+ {
67
+ className: r(
68
+ "group/sidebar-wrapper flex min-h-svh w-full has-data-[variant=inset]:bg-sidebar",
69
+ n
70
+ ),
71
+ "data-slot": "sidebar-wrapper",
72
+ style: {
73
+ "--sidebar-width": W,
74
+ "--sidebar-width-icon": U,
75
+ ...o
76
+ },
77
+ ...m,
78
+ children: c
79
+ }
80
+ ) }) });
81
+ }
82
+ function ce({
83
+ side: a = "left",
84
+ variant: e = "sidebar",
85
+ collapsible: i = "offcanvas",
86
+ className: n,
87
+ children: o,
88
+ ...c
89
+ }) {
90
+ const { isMobile: m, state: s, openMobile: b, setOpenMobile: f } = S();
91
+ return i === "none" ? /* @__PURE__ */ t(
92
+ "div",
93
+ {
94
+ className: r(
95
+ "flex h-full w-(--sidebar-width) flex-col bg-sidebar text-sidebar-foreground",
96
+ n
97
+ ),
98
+ "data-slot": "sidebar",
99
+ ...c,
100
+ children: o
101
+ }
102
+ ) : m ? /* @__PURE__ */ t(D, { onOpenChange: f, open: b, ...c, children: /* @__PURE__ */ p(
103
+ T,
104
+ {
105
+ className: "w-(--sidebar-width) bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",
106
+ "data-mobile": "true",
107
+ "data-sidebar": "sidebar",
108
+ "data-slot": "sidebar",
109
+ side: a,
110
+ style: {
111
+ "--sidebar-width": F
112
+ },
113
+ children: [
114
+ /* @__PURE__ */ p(B, { className: "sr-only", children: [
115
+ /* @__PURE__ */ t(A, { children: "Sidebar" }),
116
+ /* @__PURE__ */ t(O, { children: "Displays the mobile sidebar." })
117
+ ] }),
118
+ /* @__PURE__ */ t("div", { className: "flex h-full w-full flex-col", children: o })
119
+ ]
120
+ }
121
+ ) }) : /* @__PURE__ */ p(
122
+ "div",
123
+ {
124
+ className: "group peer hidden text-sidebar-foreground md:block",
125
+ "data-collapsible": s === "collapsed" ? i : "",
126
+ "data-side": a,
127
+ "data-slot": "sidebar",
128
+ "data-state": s,
129
+ "data-variant": e,
130
+ children: [
131
+ /* @__PURE__ */ t(
132
+ "div",
133
+ {
134
+ className: r(
135
+ "relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear",
136
+ "group-data-[collapsible=offcanvas]:w-0",
137
+ "group-data-[side=right]:rotate-180",
138
+ e === "floating" || e === "inset" ? "group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]" : "group-data-[collapsible=icon]:w-(--sidebar-width-icon)"
139
+ ),
140
+ "data-slot": "sidebar-gap"
141
+ }
142
+ ),
143
+ /* @__PURE__ */ t(
144
+ "div",
145
+ {
146
+ className: r(
147
+ "fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex",
148
+ a === "left" ? "left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]" : "right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",
149
+ // Adjust the padding for floating and inset variants.
150
+ e === "floating" || e === "inset" ? "p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]" : "group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l",
151
+ n
152
+ ),
153
+ "data-slot": "sidebar-container",
154
+ ...c,
155
+ children: /* @__PURE__ */ t(
156
+ "div",
157
+ {
158
+ className: "flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow-sm",
159
+ "data-sidebar": "sidebar",
160
+ "data-slot": "sidebar-inner",
161
+ children: o
162
+ }
163
+ )
164
+ }
165
+ )
166
+ ]
167
+ }
168
+ );
169
+ }
170
+ function ue({
171
+ className: a,
172
+ onClick: e,
173
+ ...i
174
+ }) {
175
+ const { toggleSidebar: n } = S();
176
+ return /* @__PURE__ */ p(
177
+ z,
178
+ {
179
+ className: r("size-7", a),
180
+ "data-sidebar": "trigger",
181
+ "data-slot": "sidebar-trigger",
182
+ onClick: (o) => {
183
+ e == null || e(o), n();
184
+ },
185
+ size: "icon",
186
+ variant: "ghost",
187
+ ...i,
188
+ children: [
189
+ /* @__PURE__ */ t(q, {}),
190
+ /* @__PURE__ */ t("span", { className: "sr-only", children: "Toggle Sidebar" })
191
+ ]
192
+ }
193
+ );
194
+ }
195
+ function be({ className: a, ...e }) {
196
+ const { toggleSidebar: i } = S();
197
+ return /* @__PURE__ */ t(
198
+ "button",
199
+ {
200
+ "aria-label": "Toggle Sidebar",
201
+ className: r(
202
+ "-translate-x-1/2 group-data-[side=left]:-right-4 absolute inset-y-0 z-20 hidden w-4 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=right]:left-0 sm:flex",
203
+ "in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize",
204
+ "[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize",
205
+ "group-data-[collapsible=offcanvas]:translate-x-0 hover:group-data-[collapsible=offcanvas]:bg-sidebar group-data-[collapsible=offcanvas]:after:left-full",
206
+ "[[data-side=left][data-collapsible=offcanvas]_&]:-right-2",
207
+ "[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",
208
+ a
209
+ ),
210
+ "data-sidebar": "rail",
211
+ "data-slot": "sidebar-rail",
212
+ onClick: i,
213
+ tabIndex: -1,
214
+ title: "Toggle Sidebar",
215
+ ...e
216
+ }
217
+ );
218
+ }
219
+ function fe({ className: a, ...e }) {
220
+ return /* @__PURE__ */ t(
221
+ "main",
222
+ {
223
+ className: r(
224
+ "relative flex w-full flex-1 flex-col bg-background",
225
+ "md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2 md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm",
226
+ a
227
+ ),
228
+ "data-slot": "sidebar-inset",
229
+ ...e
230
+ }
231
+ );
232
+ }
233
+ function pe({
234
+ className: a,
235
+ ...e
236
+ }) {
237
+ return /* @__PURE__ */ t(
238
+ I,
239
+ {
240
+ className: r("h-8 w-full bg-background shadow-none", a),
241
+ "data-sidebar": "input",
242
+ "data-slot": "sidebar-input",
243
+ ...e
244
+ }
245
+ );
246
+ }
247
+ function me({ className: a, ...e }) {
248
+ return /* @__PURE__ */ t(
249
+ "div",
250
+ {
251
+ className: r("flex flex-col gap-2 p-2", a),
252
+ "data-sidebar": "header",
253
+ "data-slot": "sidebar-header",
254
+ ...e
255
+ }
256
+ );
257
+ }
258
+ function ge({ className: a, ...e }) {
259
+ return /* @__PURE__ */ t(
260
+ "div",
261
+ {
262
+ className: r("flex flex-col gap-2 p-2", a),
263
+ "data-sidebar": "footer",
264
+ "data-slot": "sidebar-footer",
265
+ ...e
266
+ }
267
+ );
268
+ }
269
+ function he({
270
+ className: a,
271
+ ...e
272
+ }) {
273
+ return /* @__PURE__ */ t(
274
+ E,
275
+ {
276
+ className: r("mx-2 w-auto bg-sidebar-border", a),
277
+ "data-sidebar": "separator",
278
+ "data-slot": "sidebar-separator",
279
+ ...e
280
+ }
281
+ );
282
+ }
283
+ function ve({ className: a, ...e }) {
284
+ return /* @__PURE__ */ t(
285
+ "div",
286
+ {
287
+ className: r(
288
+ "flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",
289
+ a
290
+ ),
291
+ "data-sidebar": "content",
292
+ "data-slot": "sidebar-content",
293
+ ...e
294
+ }
295
+ );
296
+ }
297
+ function xe({ className: a, ...e }) {
298
+ return /* @__PURE__ */ t(
299
+ "div",
300
+ {
301
+ className: r("relative flex w-full min-w-0 flex-col p-2", a),
302
+ "data-sidebar": "group",
303
+ "data-slot": "sidebar-group",
304
+ ...e
305
+ }
306
+ );
307
+ }
308
+ function we({
309
+ className: a,
310
+ asChild: e = !1,
311
+ ...i
312
+ }) {
313
+ return /* @__PURE__ */ t(
314
+ e ? h : "div",
315
+ {
316
+ className: r(
317
+ "flex h-8 shrink-0 items-center rounded-md px-2 font-medium text-sidebar-foreground/70 text-xs outline-hidden ring-sidebar-ring transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0",
318
+ "group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",
319
+ a
320
+ ),
321
+ "data-sidebar": "group-label",
322
+ "data-slot": "sidebar-group-label",
323
+ ...i
324
+ }
325
+ );
326
+ }
327
+ function Se({
328
+ className: a,
329
+ asChild: e = !1,
330
+ ...i
331
+ }) {
332
+ return /* @__PURE__ */ t(
333
+ e ? h : "button",
334
+ {
335
+ className: r(
336
+ "absolute top-3.5 right-3 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-hidden ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0",
337
+ // Increases the hit area of the button on mobile.
338
+ "after:-inset-2 after:absolute md:after:hidden",
339
+ "group-data-[collapsible=icon]:hidden",
340
+ a
341
+ ),
342
+ "data-sidebar": "group-action",
343
+ "data-slot": "sidebar-group-action",
344
+ ...i
345
+ }
346
+ );
347
+ }
348
+ function ye({
349
+ className: a,
350
+ ...e
351
+ }) {
352
+ return /* @__PURE__ */ t(
353
+ "div",
354
+ {
355
+ className: r("w-full text-sm", a),
356
+ "data-sidebar": "group-content",
357
+ "data-slot": "sidebar-group-content",
358
+ ...e
359
+ }
360
+ );
361
+ }
362
+ function Ne({ className: a, ...e }) {
363
+ return /* @__PURE__ */ t(
364
+ "ul",
365
+ {
366
+ className: r("flex w-full min-w-0 flex-col gap-1", a),
367
+ "data-sidebar": "menu",
368
+ "data-slot": "sidebar-menu",
369
+ ...e
370
+ }
371
+ );
372
+ }
373
+ function _e({ className: a, ...e }) {
374
+ return /* @__PURE__ */ t(
375
+ "li",
376
+ {
377
+ className: r("group/menu-item relative", a),
378
+ "data-sidebar": "menu-item",
379
+ "data-slot": "sidebar-menu-item",
380
+ ...e
381
+ }
382
+ );
383
+ }
384
+ const Y = C(
385
+ "peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",
386
+ {
387
+ variants: {
388
+ variant: {
389
+ default: "hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",
390
+ outline: "bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"
391
+ },
392
+ size: {
393
+ default: "h-8 text-sm",
394
+ sm: "h-7 text-xs",
395
+ lg: "h-12 text-sm group-data-[collapsible=icon]:p-0!"
396
+ }
397
+ },
398
+ defaultVariants: {
399
+ variant: "default",
400
+ size: "default"
401
+ }
402
+ }
403
+ );
404
+ function Me({
405
+ asChild: a = !1,
406
+ isActive: e = !1,
407
+ variant: i = "default",
408
+ size: n = "default",
409
+ tooltip: o,
410
+ className: c,
411
+ ...m
412
+ }) {
413
+ const s = a ? h : "button", { isMobile: b, state: f } = S(), v = /* @__PURE__ */ t(
414
+ s,
415
+ {
416
+ className: r(Y({ variant: i, size: n }), c),
417
+ "data-active": e,
418
+ "data-sidebar": "menu-button",
419
+ "data-size": n,
420
+ "data-slot": "sidebar-menu-button",
421
+ ...m
422
+ }
423
+ );
424
+ return o ? (typeof o == "string" && (o = {
425
+ children: o
426
+ }), /* @__PURE__ */ p(R, { children: [
427
+ /* @__PURE__ */ t(H, { asChild: !0, children: v }),
428
+ /* @__PURE__ */ t(
429
+ K,
430
+ {
431
+ align: "center",
432
+ hidden: f !== "collapsed" || b,
433
+ side: "right",
434
+ ...o
435
+ }
436
+ )
437
+ ] })) : v;
438
+ }
439
+ function ke({
440
+ className: a,
441
+ asChild: e = !1,
442
+ showOnHover: i = !1,
443
+ ...n
444
+ }) {
445
+ return /* @__PURE__ */ t(
446
+ e ? h : "button",
447
+ {
448
+ className: r(
449
+ "absolute top-1.5 right-1 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-hidden ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 peer-hover/menu-button:text-sidebar-accent-foreground [&>svg]:size-4 [&>svg]:shrink-0",
450
+ // Increases the hit area of the button on mobile.
451
+ "after:-inset-2 after:absolute md:after:hidden",
452
+ "peer-data-[size=sm]/menu-button:top-1",
453
+ "peer-data-[size=default]/menu-button:top-1.5",
454
+ "peer-data-[size=lg]/menu-button:top-2.5",
455
+ "group-data-[collapsible=icon]:hidden",
456
+ i && "group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground md:opacity-0",
457
+ a
458
+ ),
459
+ "data-sidebar": "menu-action",
460
+ "data-slot": "sidebar-menu-action",
461
+ ...n
462
+ }
463
+ );
464
+ }
465
+ function Ce({
466
+ className: a,
467
+ ...e
468
+ }) {
469
+ return /* @__PURE__ */ t(
470
+ "div",
471
+ {
472
+ className: r(
473
+ "pointer-events-none absolute right-1 flex h-5 min-w-5 select-none items-center justify-center rounded-md px-1 font-medium text-sidebar-foreground text-xs tabular-nums",
474
+ "peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground",
475
+ "peer-data-[size=sm]/menu-button:top-1",
476
+ "peer-data-[size=default]/menu-button:top-1.5",
477
+ "peer-data-[size=lg]/menu-button:top-2.5",
478
+ "group-data-[collapsible=icon]:hidden",
479
+ a
480
+ ),
481
+ "data-sidebar": "menu-badge",
482
+ "data-slot": "sidebar-menu-badge",
483
+ ...e
484
+ }
485
+ );
486
+ }
487
+ function ze({
488
+ className: a,
489
+ showIcon: e = !1,
490
+ ...i
491
+ }) {
492
+ const n = l.useMemo(() => `${Math.floor(Math.random() * 40) + 50}%`, []);
493
+ return /* @__PURE__ */ p(
494
+ "div",
495
+ {
496
+ className: r("flex h-8 items-center gap-2 rounded-md px-2", a),
497
+ "data-sidebar": "menu-skeleton",
498
+ "data-slot": "sidebar-menu-skeleton",
499
+ ...i,
500
+ children: [
501
+ e && /* @__PURE__ */ t(
502
+ N,
503
+ {
504
+ className: "size-4 rounded-md",
505
+ "data-sidebar": "menu-skeleton-icon"
506
+ }
507
+ ),
508
+ /* @__PURE__ */ t(
509
+ N,
510
+ {
511
+ className: "h-4 max-w-(--skeleton-width) flex-1",
512
+ "data-sidebar": "menu-skeleton-text",
513
+ style: {
514
+ "--skeleton-width": n
515
+ }
516
+ }
517
+ )
518
+ ]
519
+ }
520
+ );
521
+ }
522
+ function Ie({ className: a, ...e }) {
523
+ return /* @__PURE__ */ t(
524
+ "ul",
525
+ {
526
+ className: r(
527
+ "mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-sidebar-border border-l px-2.5 py-0.5",
528
+ "group-data-[collapsible=icon]:hidden",
529
+ a
530
+ ),
531
+ "data-sidebar": "menu-sub",
532
+ "data-slot": "sidebar-menu-sub",
533
+ ...e
534
+ }
535
+ );
536
+ }
537
+ function Ee({
538
+ className: a,
539
+ ...e
540
+ }) {
541
+ return /* @__PURE__ */ t(
542
+ "li",
543
+ {
544
+ className: r("group/menu-sub-item relative", a),
545
+ "data-sidebar": "menu-sub-item",
546
+ "data-slot": "sidebar-menu-sub-item",
547
+ ...e
548
+ }
549
+ );
550
+ }
551
+ function De({
552
+ asChild: a = !1,
553
+ size: e = "md",
554
+ isActive: i = !1,
555
+ className: n,
556
+ ...o
557
+ }) {
558
+ return /* @__PURE__ */ t(
559
+ a ? h : "a",
560
+ {
561
+ className: r(
562
+ "-translate-x-px flex h-7 min-w-0 items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground outline-hidden ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground",
563
+ "data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",
564
+ e === "sm" && "text-xs",
565
+ e === "md" && "text-sm",
566
+ "group-data-[collapsible=icon]:hidden",
567
+ n
568
+ ),
569
+ "data-active": i,
570
+ "data-sidebar": "menu-sub-button",
571
+ "data-size": e,
572
+ "data-slot": "sidebar-menu-sub-button",
573
+ ...o
574
+ }
575
+ );
576
+ }
577
+ export {
578
+ ce as Sidebar,
579
+ ve as SidebarContent,
580
+ ge as SidebarFooter,
581
+ xe as SidebarGroup,
582
+ Se as SidebarGroupAction,
583
+ ye as SidebarGroupContent,
584
+ we as SidebarGroupLabel,
585
+ me as SidebarHeader,
586
+ pe as SidebarInput,
587
+ fe as SidebarInset,
588
+ Ne as SidebarMenu,
589
+ ke as SidebarMenuAction,
590
+ Ce as SidebarMenuBadge,
591
+ Me as SidebarMenuButton,
592
+ _e as SidebarMenuItem,
593
+ ze as SidebarMenuSkeleton,
594
+ Ie as SidebarMenuSub,
595
+ De as SidebarMenuSubButton,
596
+ Ee as SidebarMenuSubItem,
597
+ le as SidebarProvider,
598
+ be as SidebarRail,
599
+ he as SidebarSeparator,
600
+ ue as SidebarTrigger,
601
+ S as useSidebar
602
+ };
@@ -0,0 +1,2 @@
1
+ declare function Skeleton({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
2
+ export { Skeleton };
@@ -0,0 +1,15 @@
1
+ import { jsx as o } from "react/jsx-runtime";
2
+ import { c as n } from "../../../utils-Dy2WjYNJ.js";
3
+ function m({ className: e, ...t }) {
4
+ return /* @__PURE__ */ o(
5
+ "div",
6
+ {
7
+ className: n("animate-pulse rounded-md bg-accent", e),
8
+ "data-slot": "skeleton",
9
+ ...t
10
+ }
11
+ );
12
+ }
13
+ export {
14
+ m as Skeleton
15
+ };
@@ -0,0 +1,4 @@
1
+ import * as SliderPrimitive from '@radix-ui/react-slider';
2
+ import * as React from 'react';
3
+ declare function Slider({ className, defaultValue, value, min, max, ...props }: React.ComponentProps<typeof SliderPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
4
+ export { Slider };