fina-react-ds 1.0.0 → 1.0.2

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