@akira-io/ui 1.3.1 → 2.1.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 (78) hide show
  1. package/README.md +2 -2
  2. package/dist/blocks.d.ts +100 -10
  3. package/dist/blocks.js +547 -270
  4. package/dist/blocks.js.map +1 -1
  5. package/dist/{chunk-3Z2VGVPI.js → chunk-53V4J7MC.js} +17 -7
  6. package/dist/chunk-53V4J7MC.js.map +1 -0
  7. package/dist/chunk-BH3B26DK.js +394 -0
  8. package/dist/chunk-BH3B26DK.js.map +1 -0
  9. package/dist/chunk-BP2YDMMI.js +29 -0
  10. package/dist/chunk-BP2YDMMI.js.map +1 -0
  11. package/dist/chunk-BR3JI3KN.js +458 -0
  12. package/dist/chunk-BR3JI3KN.js.map +1 -0
  13. package/dist/{chunk-YBXRJSR3.js → chunk-CAUTXZ4U.js} +15 -7
  14. package/dist/chunk-CAUTXZ4U.js.map +1 -0
  15. package/dist/{chunk-I6VVCFZ2.js → chunk-DPLCEU34.js} +342 -238
  16. package/dist/chunk-DPLCEU34.js.map +1 -0
  17. package/dist/chunk-IQMRJXEO.js +5 -4
  18. package/dist/chunk-IQMRJXEO.js.map +1 -1
  19. package/dist/chunk-L2H5GIF7.js +5 -4
  20. package/dist/chunk-L2H5GIF7.js.map +1 -1
  21. package/dist/{chunk-2V6HUWST.js → chunk-NKPFIA32.js} +19 -6
  22. package/dist/chunk-NKPFIA32.js.map +1 -0
  23. package/dist/{chunk-QNF4LJVT.js → chunk-OS7YY5R4.js} +8 -6
  24. package/dist/chunk-OS7YY5R4.js.map +1 -0
  25. package/dist/{chunk-IDNOI4OK.js → chunk-PCYYU332.js} +15 -8
  26. package/dist/chunk-PCYYU332.js.map +1 -0
  27. package/dist/{chunk-KHOA4TEI.js → chunk-PPWJK5T3.js} +60 -25
  28. package/dist/chunk-PPWJK5T3.js.map +1 -0
  29. package/dist/{chunk-N2KIFFI7.js → chunk-QZRSQVCN.js} +30 -34
  30. package/dist/chunk-QZRSQVCN.js.map +1 -0
  31. package/dist/{chunk-SZUXATOF.js → chunk-XLAOE5MV.js} +170 -76
  32. package/dist/chunk-XLAOE5MV.js.map +1 -0
  33. package/dist/{chunk-B3L6PRLX.js → chunk-ZQXZ4UGE.js} +208 -100
  34. package/dist/chunk-ZQXZ4UGE.js.map +1 -0
  35. package/dist/code.d.ts +2 -2
  36. package/dist/code.js +96 -52
  37. package/dist/code.js.map +1 -1
  38. package/dist/{context-OwSoVEri.d.ts → context-2wTOwxCk.d.ts} +13 -5
  39. package/dist/editor.d.ts +1 -1
  40. package/dist/editor.js +135 -52
  41. package/dist/editor.js.map +1 -1
  42. package/dist/{field-DWm5NXeV.d.ts → field-C1TdmC2t.d.ts} +1 -1
  43. package/dist/index.d.ts +15 -12
  44. package/dist/index.js +1105 -633
  45. package/dist/index.js.map +1 -1
  46. package/dist/inertia.d.ts +11 -3
  47. package/dist/inertia.js +66 -12
  48. package/dist/inertia.js.map +1 -1
  49. package/dist/{input-Dxnsxi-f.d.ts → input-B4uEClxB.d.ts} +1 -1
  50. package/dist/{json-viewer-BARA2RCW.d.ts → json-viewer-Bssv9mTD.d.ts} +1 -1
  51. package/dist/locales/fr.d.ts +44 -0
  52. package/dist/locales/fr.js +248 -0
  53. package/dist/locales/fr.js.map +1 -0
  54. package/dist/locales/pt.d.ts +10 -9
  55. package/dist/locales/pt.js +40 -3
  56. package/dist/locales/pt.js.map +1 -1
  57. package/dist/shells.d.ts +46 -5
  58. package/dist/shells.js +211 -71
  59. package/dist/shells.js.map +1 -1
  60. package/dist/{sidebar-Bp6Q46j-.d.ts → sidebar-BLL2tgTt.d.ts} +2 -2
  61. package/dist/types-1LUmNJf_.d.ts +41 -0
  62. package/dist/{types-cmBL8zOc.d.ts → types-CMZRvMV5.d.ts} +1 -1
  63. package/dist/{types-B-eGPoFD.d.ts → types-CfAUvz--.d.ts} +1 -1
  64. package/package.json +8 -2
  65. package/theme.css +11 -0
  66. package/dist/chunk-2V6HUWST.js.map +0 -1
  67. package/dist/chunk-3Z2VGVPI.js.map +0 -1
  68. package/dist/chunk-B3L6PRLX.js.map +0 -1
  69. package/dist/chunk-I6VVCFZ2.js.map +0 -1
  70. package/dist/chunk-IDNOI4OK.js.map +0 -1
  71. package/dist/chunk-KHOA4TEI.js.map +0 -1
  72. package/dist/chunk-N2KIFFI7.js.map +0 -1
  73. package/dist/chunk-NGMG2UWX.js +0 -172
  74. package/dist/chunk-NGMG2UWX.js.map +0 -1
  75. package/dist/chunk-QNF4LJVT.js.map +0 -1
  76. package/dist/chunk-SZUXATOF.js.map +0 -1
  77. package/dist/chunk-YBXRJSR3.js.map +0 -1
  78. package/dist/types-u1qfmJQi.d.ts +0 -28
@@ -1,17 +1,19 @@
1
- import { Input, Separator } from './chunk-3Z2VGVPI.js';
2
- import { cn, menuSurface, focusRing, floatingSurface, Button } from './chunk-KHOA4TEI.js';
3
- import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
4
- import { CheckIcon, CircleIcon, ChevronRightIcon, ChevronRight, MoreHorizontal, XIcon, PanelLeftIcon } from 'lucide-react';
5
- import { jsx, jsxs } from 'react/jsx-runtime';
6
- import * as AvatarPrimitive from '@radix-ui/react-avatar';
7
- import { Slot } from '@radix-ui/react-slot';
8
- import * as CollapsiblePrimitive from '@radix-ui/react-collapsible';
9
- import * as SheetPrimitive from '@radix-ui/react-dialog';
10
- import * as React2 from 'react';
11
- import { useState, useEffect } from 'react';
12
- import * as TooltipPrimitive from '@radix-ui/react-tooltip';
13
- import { cva } from 'class-variance-authority';
1
+ import {
2
+ Input,
3
+ Separator
4
+ } from "./chunk-53V4J7MC.js";
5
+ import {
6
+ Button,
7
+ cn,
8
+ floatingSurface,
9
+ focusRing,
10
+ menuSurface
11
+ } from "./chunk-PPWJK5T3.js";
14
12
 
13
+ // src/components/ui/dropdown-menu.tsx
14
+ import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
15
+ import { CheckIcon, ChevronRightIcon, CircleIcon } from "lucide-react";
16
+ import { jsx, jsxs } from "react/jsx-runtime";
15
17
  function DropdownMenu({
16
18
  modal = false,
17
19
  slotName = "dropdown-menu",
@@ -233,12 +235,16 @@ function DropdownMenuSubContent({
233
235
  }
234
236
  );
235
237
  }
238
+
239
+ // src/components/ui/avatar.tsx
240
+ import * as AvatarPrimitive from "@radix-ui/react-avatar";
241
+ import { jsx as jsx2 } from "react/jsx-runtime";
236
242
  function Avatar({
237
243
  className,
238
244
  slotName = "avatar",
239
245
  ...props
240
246
  }) {
241
- return /* @__PURE__ */ jsx(
247
+ return /* @__PURE__ */ jsx2(
242
248
  AvatarPrimitive.Root,
243
249
  {
244
250
  className: cn(
@@ -255,7 +261,7 @@ function AvatarImage({
255
261
  slotName = "avatar-image",
256
262
  ...props
257
263
  }) {
258
- return /* @__PURE__ */ jsx(
264
+ return /* @__PURE__ */ jsx2(
259
265
  AvatarPrimitive.Image,
260
266
  {
261
267
  className: cn("aspect-square size-full", className),
@@ -269,7 +275,7 @@ function AvatarFallback({
269
275
  slotName = "avatar-fallback",
270
276
  ...props
271
277
  }) {
272
- return /* @__PURE__ */ jsx(
278
+ return /* @__PURE__ */ jsx2(
273
279
  AvatarPrimitive.Fallback,
274
280
  {
275
281
  className: cn(
@@ -281,18 +287,23 @@ function AvatarFallback({
281
287
  }
282
288
  );
283
289
  }
290
+
291
+ // src/components/ui/breadcrumb.tsx
292
+ import { Slot } from "@radix-ui/react-slot";
293
+ import { ChevronRight, MoreHorizontal } from "lucide-react";
294
+ import { jsx as jsx3, jsxs as jsxs2 } from "react/jsx-runtime";
284
295
  function Breadcrumb({
285
296
  slotName = "breadcrumb",
286
297
  ...props
287
298
  }) {
288
- return /* @__PURE__ */ jsx("nav", { "aria-label": "breadcrumb", ...props, "data-slot": slotName });
299
+ return /* @__PURE__ */ jsx3("nav", { "aria-label": "breadcrumb", ...props, "data-slot": slotName });
289
300
  }
290
301
  function BreadcrumbList({
291
302
  className,
292
303
  slotName = "breadcrumb-list",
293
304
  ...props
294
305
  }) {
295
- return /* @__PURE__ */ jsx(
306
+ return /* @__PURE__ */ jsx3(
296
307
  "ol",
297
308
  {
298
309
  className: cn(
@@ -309,7 +320,7 @@ function BreadcrumbItem({
309
320
  slotName = "breadcrumb-item",
310
321
  ...props
311
322
  }) {
312
- return /* @__PURE__ */ jsx(
323
+ return /* @__PURE__ */ jsx3(
313
324
  "li",
314
325
  {
315
326
  className: cn("gap-1.5 inline-flex items-center", className),
@@ -325,7 +336,7 @@ function BreadcrumbLink({
325
336
  ...props
326
337
  }) {
327
338
  const Comp = asChild ? Slot : "a";
328
- return /* @__PURE__ */ jsx(
339
+ return /* @__PURE__ */ jsx3(
329
340
  Comp,
330
341
  {
331
342
  className: cn("transition-colors hover:text-foreground", className),
@@ -339,7 +350,7 @@ function BreadcrumbPage({
339
350
  slotName = "breadcrumb-page",
340
351
  ...props
341
352
  }) {
342
- return /* @__PURE__ */ jsx(
353
+ return /* @__PURE__ */ jsx3(
343
354
  "span",
344
355
  {
345
356
  role: "link",
@@ -357,7 +368,7 @@ function BreadcrumbSeparator({
357
368
  slotName = "breadcrumb-separator",
358
369
  ...props
359
370
  }) {
360
- return /* @__PURE__ */ jsx(
371
+ return /* @__PURE__ */ jsx3(
361
372
  "li",
362
373
  {
363
374
  role: "presentation",
@@ -365,7 +376,7 @@ function BreadcrumbSeparator({
365
376
  className: cn("[&>svg]:size-3.5", className),
366
377
  ...props,
367
378
  "data-slot": slotName,
368
- children: children ?? /* @__PURE__ */ jsx(ChevronRight, {})
379
+ children: children ?? /* @__PURE__ */ jsx3(ChevronRight, {})
369
380
  }
370
381
  );
371
382
  }
@@ -374,7 +385,7 @@ function BreadcrumbEllipsis({
374
385
  slotName = "breadcrumb-ellipsis",
375
386
  ...props
376
387
  }) {
377
- return /* @__PURE__ */ jsxs(
388
+ return /* @__PURE__ */ jsxs2(
378
389
  "span",
379
390
  {
380
391
  role: "presentation",
@@ -386,23 +397,27 @@ function BreadcrumbEllipsis({
386
397
  ...props,
387
398
  "data-slot": slotName,
388
399
  children: [
389
- /* @__PURE__ */ jsx(MoreHorizontal, { className: "size-4" }),
390
- /* @__PURE__ */ jsx("span", { className: "sr-only", children: "More" })
400
+ /* @__PURE__ */ jsx3(MoreHorizontal, { className: "size-4" }),
401
+ /* @__PURE__ */ jsx3("span", { className: "sr-only", children: "More" })
391
402
  ]
392
403
  }
393
404
  );
394
405
  }
406
+
407
+ // src/components/ui/collapsible.tsx
408
+ import * as CollapsiblePrimitive from "@radix-ui/react-collapsible";
409
+ import { jsx as jsx4 } from "react/jsx-runtime";
395
410
  function Collapsible({
396
411
  slotName = "collapsible",
397
412
  ...props
398
413
  }) {
399
- return /* @__PURE__ */ jsx(CollapsiblePrimitive.Root, { ...props, "data-slot": slotName });
414
+ return /* @__PURE__ */ jsx4(CollapsiblePrimitive.Root, { ...props, "data-slot": slotName });
400
415
  }
401
416
  function CollapsibleTrigger2({
402
417
  slotName = "collapsible-trigger",
403
418
  ...props
404
419
  }) {
405
- return /* @__PURE__ */ jsx(
420
+ return /* @__PURE__ */ jsx4(
406
421
  CollapsiblePrimitive.CollapsibleTrigger,
407
422
  {
408
423
  ...props,
@@ -414,7 +429,7 @@ function CollapsibleContent2({
414
429
  slotName = "collapsible-content",
415
430
  ...props
416
431
  }) {
417
- return /* @__PURE__ */ jsx(
432
+ return /* @__PURE__ */ jsx4(
418
433
  CollapsiblePrimitive.CollapsibleContent,
419
434
  {
420
435
  ...props,
@@ -422,19 +437,28 @@ function CollapsibleContent2({
422
437
  }
423
438
  );
424
439
  }
440
+
441
+ // src/components/ui/icon.tsx
442
+ import { jsx as jsx5 } from "react/jsx-runtime";
425
443
  function Icon({ iconNode: IconComponent, className }) {
426
444
  if (!IconComponent) {
427
445
  return null;
428
446
  }
429
- return /* @__PURE__ */ jsx(IconComponent, { className });
447
+ return /* @__PURE__ */ jsx5(IconComponent, { className });
430
448
  }
449
+
450
+ // src/components/ui/sheet.tsx
451
+ import * as SheetPrimitive from "@radix-ui/react-dialog";
452
+ import { XIcon } from "lucide-react";
453
+ import * as React from "react";
454
+ import { jsx as jsx6, jsxs as jsxs3 } from "react/jsx-runtime";
431
455
  function Sheet({
432
456
  preserveScroll = false,
433
457
  onOpenChange: onOpenChangeProp,
434
458
  slotName = "sheet",
435
459
  ...props
436
460
  }) {
437
- const scrollPosition = React2.useRef(0);
461
+ const scrollPosition = React.useRef(0);
438
462
  const onOpenChange = (open) => {
439
463
  if (preserveScroll) {
440
464
  if (open) {
@@ -447,7 +471,7 @@ function Sheet({
447
471
  }
448
472
  onOpenChangeProp?.(open);
449
473
  };
450
- return /* @__PURE__ */ jsx(
474
+ return /* @__PURE__ */ jsx6(
451
475
  SheetPrimitive.Root,
452
476
  {
453
477
  ...props,
@@ -460,26 +484,26 @@ function SheetTrigger({
460
484
  slotName = "sheet-trigger",
461
485
  ...props
462
486
  }) {
463
- return /* @__PURE__ */ jsx(SheetPrimitive.Trigger, { ...props, "data-slot": slotName });
487
+ return /* @__PURE__ */ jsx6(SheetPrimitive.Trigger, { ...props, "data-slot": slotName });
464
488
  }
465
489
  function SheetClose({
466
490
  slotName = "sheet-close",
467
491
  ...props
468
492
  }) {
469
- return /* @__PURE__ */ jsx(SheetPrimitive.Close, { ...props, "data-slot": slotName });
493
+ return /* @__PURE__ */ jsx6(SheetPrimitive.Close, { ...props, "data-slot": slotName });
470
494
  }
471
495
  function SheetPortal({
472
496
  slotName = "sheet-portal",
473
497
  ...props
474
498
  }) {
475
- return /* @__PURE__ */ jsx(SheetPrimitive.Portal, { ...props, "data-slot": slotName });
499
+ return /* @__PURE__ */ jsx6(SheetPrimitive.Portal, { ...props, "data-slot": slotName });
476
500
  }
477
501
  function SheetOverlay({
478
502
  className,
479
503
  slotName = "sheet-overlay",
480
504
  ...props
481
505
  }) {
482
- return /* @__PURE__ */ jsx(
506
+ return /* @__PURE__ */ jsx6(
483
507
  SheetPrimitive.Overlay,
484
508
  {
485
509
  className: cn(
@@ -498,9 +522,9 @@ function SheetContent({
498
522
  slotName = "sheet-content",
499
523
  ...props
500
524
  }) {
501
- return /* @__PURE__ */ jsxs(SheetPortal, { children: [
502
- /* @__PURE__ */ jsx(SheetOverlay, {}),
503
- /* @__PURE__ */ jsxs(
525
+ return /* @__PURE__ */ jsxs3(SheetPortal, { children: [
526
+ /* @__PURE__ */ jsx6(SheetOverlay, {}),
527
+ /* @__PURE__ */ jsxs3(
504
528
  SheetPrimitive.Content,
505
529
  {
506
530
  className: cn(
@@ -515,7 +539,7 @@ function SheetContent({
515
539
  "data-slot": slotName,
516
540
  children: [
517
541
  children,
518
- /* @__PURE__ */ jsxs(
542
+ /* @__PURE__ */ jsxs3(
519
543
  SheetPrimitive.Close,
520
544
  {
521
545
  className: cn(
@@ -523,8 +547,8 @@ function SheetContent({
523
547
  focusRing
524
548
  ),
525
549
  children: [
526
- /* @__PURE__ */ jsx(XIcon, { className: "size-4" }),
527
- /* @__PURE__ */ jsx("span", { className: "sr-only", children: "Close" })
550
+ /* @__PURE__ */ jsx6(XIcon, { className: "size-4" }),
551
+ /* @__PURE__ */ jsx6("span", { className: "sr-only", children: "Close" })
528
552
  ]
529
553
  }
530
554
  )
@@ -538,7 +562,7 @@ function SheetHeader({
538
562
  slotName = "sheet-header",
539
563
  ...props
540
564
  }) {
541
- return /* @__PURE__ */ jsx(
565
+ return /* @__PURE__ */ jsx6(
542
566
  "div",
543
567
  {
544
568
  className: cn("gap-1.5 p-4 flex flex-col", className),
@@ -552,7 +576,7 @@ function SheetFooter({
552
576
  slotName = "sheet-footer",
553
577
  ...props
554
578
  }) {
555
- return /* @__PURE__ */ jsx(
579
+ return /* @__PURE__ */ jsx6(
556
580
  "div",
557
581
  {
558
582
  className: cn("gap-2 p-4 mt-auto flex flex-col", className),
@@ -566,7 +590,7 @@ function SheetTitle({
566
590
  slotName = "sheet-title",
567
591
  ...props
568
592
  }) {
569
- return /* @__PURE__ */ jsx(
593
+ return /* @__PURE__ */ jsx6(
570
594
  SheetPrimitive.Title,
571
595
  {
572
596
  className: cn("font-semibold text-foreground", className),
@@ -580,7 +604,7 @@ function SheetDescription({
580
604
  slotName = "sheet-description",
581
605
  ...props
582
606
  }) {
583
- return /* @__PURE__ */ jsx(
607
+ return /* @__PURE__ */ jsx6(
584
608
  SheetPrimitive.Description,
585
609
  {
586
610
  className: cn("text-sm text-muted-foreground", className),
@@ -589,12 +613,15 @@ function SheetDescription({
589
613
  }
590
614
  );
591
615
  }
616
+
617
+ // src/components/ui/skeleton.tsx
618
+ import { jsx as jsx7 } from "react/jsx-runtime";
592
619
  function Skeleton({
593
620
  className,
594
621
  slotName = "skeleton",
595
622
  ...props
596
623
  }) {
597
- return /* @__PURE__ */ jsx(
624
+ return /* @__PURE__ */ jsx7(
598
625
  "div",
599
626
  {
600
627
  className: cn("animate-pulse rounded-xl bg-muted", className),
@@ -603,12 +630,16 @@ function Skeleton({
603
630
  }
604
631
  );
605
632
  }
633
+
634
+ // src/components/ui/tooltip.tsx
635
+ import * as TooltipPrimitive from "@radix-ui/react-tooltip";
636
+ import { jsx as jsx8, jsxs as jsxs4 } from "react/jsx-runtime";
606
637
  function TooltipProvider({
607
638
  delayDuration = 0,
608
639
  slotName = "tooltip-provider",
609
640
  ...props
610
641
  }) {
611
- return /* @__PURE__ */ jsx(
642
+ return /* @__PURE__ */ jsx8(
612
643
  TooltipPrimitive.Provider,
613
644
  {
614
645
  delayDuration,
@@ -621,13 +652,13 @@ function Tooltip({
621
652
  slotName = "tooltip",
622
653
  ...props
623
654
  }) {
624
- return /* @__PURE__ */ jsx(TooltipProvider, { children: /* @__PURE__ */ jsx(TooltipPrimitive.Root, { ...props, "data-slot": slotName }) });
655
+ return /* @__PURE__ */ jsx8(TooltipProvider, { children: /* @__PURE__ */ jsx8(TooltipPrimitive.Root, { ...props, "data-slot": slotName }) });
625
656
  }
626
657
  function TooltipTrigger({
627
658
  slotName = "tooltip-trigger",
628
659
  ...props
629
660
  }) {
630
- return /* @__PURE__ */ jsx(TooltipPrimitive.Trigger, { ...props, "data-slot": slotName });
661
+ return /* @__PURE__ */ jsx8(TooltipPrimitive.Trigger, { ...props, "data-slot": slotName });
631
662
  }
632
663
  function TooltipContent({
633
664
  className,
@@ -636,7 +667,7 @@ function TooltipContent({
636
667
  slotName = "tooltip-content",
637
668
  ...props
638
669
  }) {
639
- return /* @__PURE__ */ jsx(TooltipPrimitive.Portal, { children: /* @__PURE__ */ jsxs(
670
+ return /* @__PURE__ */ jsx8(TooltipPrimitive.Portal, { children: /* @__PURE__ */ jsxs4(
640
671
  TooltipPrimitive.Content,
641
672
  {
642
673
  sideOffset,
@@ -648,11 +679,14 @@ function TooltipContent({
648
679
  "data-slot": slotName,
649
680
  children: [
650
681
  children,
651
- /* @__PURE__ */ jsx(TooltipPrimitive.Arrow, { className: "size-2.5 z-50 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px] bg-primary fill-primary" })
682
+ /* @__PURE__ */ jsx8(TooltipPrimitive.Arrow, { className: "size-2.5 z-50 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px] bg-primary fill-primary" })
652
683
  ]
653
684
  }
654
685
  ) });
655
686
  }
687
+
688
+ // src/hooks/use-mobile.tsx
689
+ import { useEffect, useState } from "react";
656
690
  var MOBILE_BREAKPOINT = 768;
657
691
  function useIsMobile() {
658
692
  const [isMobile, setIsMobile] = useState();
@@ -669,6 +703,13 @@ function useIsMobile() {
669
703
  }, []);
670
704
  return !!isMobile;
671
705
  }
706
+
707
+ // src/components/ui/sidebar.tsx
708
+ import { Slot as Slot2 } from "@radix-ui/react-slot";
709
+ import { cva } from "class-variance-authority";
710
+ import { PanelLeftIcon } from "lucide-react";
711
+ import * as React2 from "react";
712
+ import { jsx as jsx9, jsxs as jsxs5 } from "react/jsx-runtime";
672
713
  var SIDEBAR_COOKIE_NAME = "sidebar_state";
673
714
  var SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7;
674
715
  var SIDEBAR_WIDTH = "16rem";
@@ -743,7 +784,7 @@ function SidebarProvider({
743
784
  toggleSidebar
744
785
  ]
745
786
  );
746
- return /* @__PURE__ */ jsx(SidebarContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsx(TooltipProvider, { delayDuration: 0, children: /* @__PURE__ */ jsx(
787
+ return /* @__PURE__ */ jsx9(SidebarContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsx9(TooltipProvider, { delayDuration: 0, children: /* @__PURE__ */ jsx9(
747
788
  "div",
748
789
  {
749
790
  style: {
@@ -772,7 +813,7 @@ function Sidebar({
772
813
  }) {
773
814
  const { isMobile, state, openMobile, setOpenMobile } = useSidebar();
774
815
  if (collapsible === "none") {
775
- return /* @__PURE__ */ jsx(
816
+ return /* @__PURE__ */ jsx9(
776
817
  "div",
777
818
  {
778
819
  className: cn(
@@ -786,7 +827,7 @@ function Sidebar({
786
827
  );
787
828
  }
788
829
  if (isMobile) {
789
- return /* @__PURE__ */ jsxs(
830
+ return /* @__PURE__ */ jsxs5(
790
831
  Sheet,
791
832
  {
792
833
  open: openMobile,
@@ -794,11 +835,11 @@ function Sidebar({
794
835
  ...props,
795
836
  preserveScroll: true,
796
837
  children: [
797
- /* @__PURE__ */ jsxs(SheetHeader, { className: "sr-only", children: [
798
- /* @__PURE__ */ jsx(SheetTitle, { children: "Sidebar" }),
799
- /* @__PURE__ */ jsx(SheetDescription, { children: "Displays the mobile sidebar." })
838
+ /* @__PURE__ */ jsxs5(SheetHeader, { className: "sr-only", children: [
839
+ /* @__PURE__ */ jsx9(SheetTitle, { children: "Sidebar" }),
840
+ /* @__PURE__ */ jsx9(SheetDescription, { children: "Displays the mobile sidebar." })
800
841
  ] }),
801
- /* @__PURE__ */ jsx(
842
+ /* @__PURE__ */ jsx9(
802
843
  SheetContent,
803
844
  {
804
845
  "data-sidebar": "sidebar",
@@ -809,14 +850,14 @@ function Sidebar({
809
850
  },
810
851
  side,
811
852
  slotName,
812
- children: /* @__PURE__ */ jsx("div", { className: "flex h-full w-full flex-col", children })
853
+ children: /* @__PURE__ */ jsx9("div", { className: "flex h-full w-full flex-col", children })
813
854
  }
814
855
  )
815
856
  ]
816
857
  }
817
858
  );
818
859
  }
819
- return /* @__PURE__ */ jsxs(
860
+ return /* @__PURE__ */ jsxs5(
820
861
  "div",
821
862
  {
822
863
  className: "group peer md:block hidden text-sidebar-foreground",
@@ -826,7 +867,7 @@ function Sidebar({
826
867
  "data-side": side,
827
868
  "data-slot": slotName,
828
869
  children: [
829
- /* @__PURE__ */ jsx(
870
+ /* @__PURE__ */ jsx9(
830
871
  "div",
831
872
  {
832
873
  className: cn(
@@ -837,7 +878,7 @@ function Sidebar({
837
878
  )
838
879
  }
839
880
  ),
840
- /* @__PURE__ */ jsx(
881
+ /* @__PURE__ */ jsx9(
841
882
  "div",
842
883
  {
843
884
  className: cn(
@@ -848,7 +889,7 @@ function Sidebar({
848
889
  className
849
890
  ),
850
891
  ...props,
851
- children: /* @__PURE__ */ jsx(
892
+ children: /* @__PURE__ */ jsx9(
852
893
  "div",
853
894
  {
854
895
  "data-sidebar": "sidebar",
@@ -869,7 +910,7 @@ function SidebarTrigger({
869
910
  ...props
870
911
  }) {
871
912
  const { toggleSidebar } = useSidebar();
872
- return /* @__PURE__ */ jsxs(
913
+ return /* @__PURE__ */ jsxs5(
873
914
  Button,
874
915
  {
875
916
  "data-sidebar": "trigger",
@@ -883,8 +924,8 @@ function SidebarTrigger({
883
924
  ...props,
884
925
  slotName,
885
926
  children: [
886
- /* @__PURE__ */ jsx(PanelLeftIcon, {}),
887
- /* @__PURE__ */ jsx("span", { className: "sr-only", children: "Toggle Sidebar" })
927
+ /* @__PURE__ */ jsx9(PanelLeftIcon, {}),
928
+ /* @__PURE__ */ jsx9("span", { className: "sr-only", children: "Toggle Sidebar" })
888
929
  ]
889
930
  }
890
931
  );
@@ -895,7 +936,7 @@ function SidebarRail({
895
936
  ...props
896
937
  }) {
897
938
  const { toggleSidebar } = useSidebar();
898
- return /* @__PURE__ */ jsx(
939
+ return /* @__PURE__ */ jsx9(
899
940
  "button",
900
941
  {
901
942
  "data-sidebar": "rail",
@@ -922,7 +963,7 @@ function SidebarInset({
922
963
  slotName = "sidebar-inset",
923
964
  ...props
924
965
  }) {
925
- return /* @__PURE__ */ jsx(
966
+ return /* @__PURE__ */ jsx9(
926
967
  "main",
927
968
  {
928
969
  className: cn(
@@ -940,7 +981,7 @@ function SidebarInput({
940
981
  slotName = "sidebar-input",
941
982
  ...props
942
983
  }) {
943
- return /* @__PURE__ */ jsx(
984
+ return /* @__PURE__ */ jsx9(
944
985
  Input,
945
986
  {
946
987
  "data-sidebar": "input",
@@ -955,7 +996,7 @@ function SidebarHeader({
955
996
  slotName = "sidebar-header",
956
997
  ...props
957
998
  }) {
958
- return /* @__PURE__ */ jsx(
999
+ return /* @__PURE__ */ jsx9(
959
1000
  "div",
960
1001
  {
961
1002
  "data-sidebar": "header",
@@ -973,7 +1014,7 @@ function SidebarFooter({
973
1014
  slotName = "sidebar-footer",
974
1015
  ...props
975
1016
  }) {
976
- return /* @__PURE__ */ jsx(
1017
+ return /* @__PURE__ */ jsx9(
977
1018
  "div",
978
1019
  {
979
1020
  "data-sidebar": "footer",
@@ -991,7 +1032,7 @@ function SidebarSeparator({
991
1032
  slotName = "sidebar-separator",
992
1033
  ...props
993
1034
  }) {
994
- return /* @__PURE__ */ jsx(
1035
+ return /* @__PURE__ */ jsx9(
995
1036
  Separator,
996
1037
  {
997
1038
  "data-sidebar": "separator",
@@ -1006,7 +1047,7 @@ function SidebarContent({
1006
1047
  slotName = "sidebar-content",
1007
1048
  ...props
1008
1049
  }) {
1009
- return /* @__PURE__ */ jsx(
1050
+ return /* @__PURE__ */ jsx9(
1010
1051
  "div",
1011
1052
  {
1012
1053
  "data-sidebar": "content",
@@ -1024,7 +1065,7 @@ function SidebarGroup({
1024
1065
  slotName = "sidebar-group",
1025
1066
  ...props
1026
1067
  }) {
1027
- return /* @__PURE__ */ jsx(
1068
+ return /* @__PURE__ */ jsx9(
1028
1069
  "div",
1029
1070
  {
1030
1071
  "data-sidebar": "group",
@@ -1043,8 +1084,8 @@ function SidebarGroupLabel({
1043
1084
  slotName = "sidebar-group-label",
1044
1085
  ...props
1045
1086
  }) {
1046
- const Comp = asChild ? Slot : "div";
1047
- return /* @__PURE__ */ jsx(
1087
+ const Comp = asChild ? Slot2 : "div";
1088
+ return /* @__PURE__ */ jsx9(
1048
1089
  Comp,
1049
1090
  {
1050
1091
  "data-sidebar": "group-label",
@@ -1064,8 +1105,8 @@ function SidebarGroupAction({
1064
1105
  slotName = "sidebar-group-action",
1065
1106
  ...props
1066
1107
  }) {
1067
- const Comp = asChild ? Slot : "button";
1068
- return /* @__PURE__ */ jsx(
1108
+ const Comp = asChild ? Slot2 : "button";
1109
+ return /* @__PURE__ */ jsx9(
1069
1110
  Comp,
1070
1111
  {
1071
1112
  "data-sidebar": "group-action",
@@ -1086,7 +1127,7 @@ function SidebarGroupContent({
1086
1127
  slotName = "sidebar-group-content",
1087
1128
  ...props
1088
1129
  }) {
1089
- return /* @__PURE__ */ jsx(
1130
+ return /* @__PURE__ */ jsx9(
1090
1131
  "div",
1091
1132
  {
1092
1133
  "data-sidebar": "group-content",
@@ -1101,7 +1142,7 @@ function SidebarMenu({
1101
1142
  slotName = "sidebar-menu",
1102
1143
  ...props
1103
1144
  }) {
1104
- return /* @__PURE__ */ jsx(
1145
+ return /* @__PURE__ */ jsx9(
1105
1146
  "ul",
1106
1147
  {
1107
1148
  "data-sidebar": "menu",
@@ -1119,7 +1160,7 @@ function SidebarMenuItem({
1119
1160
  slotName = "sidebar-menu-item",
1120
1161
  ...props
1121
1162
  }) {
1122
- return /* @__PURE__ */ jsx(
1163
+ return /* @__PURE__ */ jsx9(
1123
1164
  "li",
1124
1165
  {
1125
1166
  "data-sidebar": "menu-item",
@@ -1159,9 +1200,9 @@ function SidebarMenuButton({
1159
1200
  slotName = "sidebar-menu-button",
1160
1201
  ...props
1161
1202
  }) {
1162
- const Comp = asChild ? Slot : "button";
1203
+ const Comp = asChild ? Slot2 : "button";
1163
1204
  const { isMobile, state } = useSidebar();
1164
- const button = /* @__PURE__ */ jsx(
1205
+ const button = /* @__PURE__ */ jsx9(
1165
1206
  Comp,
1166
1207
  {
1167
1208
  "data-sidebar": "menu-button",
@@ -1183,9 +1224,9 @@ function SidebarMenuButton({
1183
1224
  children: tooltip
1184
1225
  };
1185
1226
  }
1186
- return /* @__PURE__ */ jsxs(Tooltip, { children: [
1187
- /* @__PURE__ */ jsx(TooltipTrigger, { asChild: true, children: button }),
1188
- /* @__PURE__ */ jsx(
1227
+ return /* @__PURE__ */ jsxs5(Tooltip, { children: [
1228
+ /* @__PURE__ */ jsx9(TooltipTrigger, { asChild: true, children: button }),
1229
+ /* @__PURE__ */ jsx9(
1189
1230
  TooltipContent,
1190
1231
  {
1191
1232
  side: "right",
@@ -1203,8 +1244,8 @@ function SidebarMenuAction({
1203
1244
  slotName = "sidebar-menu-action",
1204
1245
  ...props
1205
1246
  }) {
1206
- const Comp = asChild ? Slot : "button";
1207
- return /* @__PURE__ */ jsx(
1247
+ const Comp = asChild ? Slot2 : "button";
1248
+ return /* @__PURE__ */ jsx9(
1208
1249
  Comp,
1209
1250
  {
1210
1251
  "data-sidebar": "menu-action",
@@ -1229,7 +1270,7 @@ function SidebarMenuBadge({
1229
1270
  slotName = "sidebar-menu-badge",
1230
1271
  ...props
1231
1272
  }) {
1232
- return /* @__PURE__ */ jsx(
1273
+ return /* @__PURE__ */ jsx9(
1233
1274
  "div",
1234
1275
  {
1235
1276
  "data-sidebar": "menu-badge",
@@ -1256,7 +1297,7 @@ function SidebarMenuSkeleton({
1256
1297
  const width = React2.useMemo(() => {
1257
1298
  return `${Math.floor(Math.random() * 40) + 50}%`;
1258
1299
  }, []);
1259
- return /* @__PURE__ */ jsxs(
1300
+ return /* @__PURE__ */ jsxs5(
1260
1301
  "div",
1261
1302
  {
1262
1303
  "data-sidebar": "menu-skeleton",
@@ -1267,14 +1308,14 @@ function SidebarMenuSkeleton({
1267
1308
  ...props,
1268
1309
  "data-slot": slotName,
1269
1310
  children: [
1270
- showIcon && /* @__PURE__ */ jsx(
1311
+ showIcon && /* @__PURE__ */ jsx9(
1271
1312
  Skeleton,
1272
1313
  {
1273
1314
  className: "size-4 rounded-xl",
1274
1315
  "data-sidebar": "menu-skeleton-icon"
1275
1316
  }
1276
1317
  ),
1277
- /* @__PURE__ */ jsx(
1318
+ /* @__PURE__ */ jsx9(
1278
1319
  Skeleton,
1279
1320
  {
1280
1321
  className: "h-4 max-w-(--skeleton-width) flex-1",
@@ -1293,7 +1334,7 @@ function SidebarMenuSub({
1293
1334
  slotName = "sidebar-menu-sub",
1294
1335
  ...props
1295
1336
  }) {
1296
- return /* @__PURE__ */ jsx(
1337
+ return /* @__PURE__ */ jsx9(
1297
1338
  "ul",
1298
1339
  {
1299
1340
  "data-sidebar": "menu-sub",
@@ -1312,7 +1353,7 @@ function SidebarMenuSubItem({
1312
1353
  slotName = "sidebar-menu-sub-item",
1313
1354
  ...props
1314
1355
  }) {
1315
- return /* @__PURE__ */ jsx(
1356
+ return /* @__PURE__ */ jsx9(
1316
1357
  "li",
1317
1358
  {
1318
1359
  "data-sidebar": "menu-sub-item",
@@ -1330,8 +1371,8 @@ function SidebarMenuSubButton({
1330
1371
  slotName = "sidebar-menu-sub-button",
1331
1372
  ...props
1332
1373
  }) {
1333
- const Comp = asChild ? Slot : "a";
1334
- return /* @__PURE__ */ jsx(
1374
+ const Comp = asChild ? Slot2 : "a";
1375
+ return /* @__PURE__ */ jsx9(
1335
1376
  Comp,
1336
1377
  {
1337
1378
  "data-sidebar": "menu-sub-button",
@@ -1351,6 +1392,73 @@ function SidebarMenuSubButton({
1351
1392
  );
1352
1393
  }
1353
1394
 
1354
- export { Avatar, AvatarFallback, AvatarImage, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Collapsible, CollapsibleContent2 as CollapsibleContent, CollapsibleTrigger2 as CollapsibleTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Icon, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, useIsMobile, useSidebar };
1355
- //# sourceMappingURL=chunk-B3L6PRLX.js.map
1356
- //# sourceMappingURL=chunk-B3L6PRLX.js.map
1395
+ export {
1396
+ DropdownMenu,
1397
+ DropdownMenuPortal,
1398
+ DropdownMenuTrigger,
1399
+ DropdownMenuContent,
1400
+ DropdownMenuGroup,
1401
+ DropdownMenuItem,
1402
+ DropdownMenuCheckboxItem,
1403
+ DropdownMenuRadioGroup,
1404
+ DropdownMenuRadioItem,
1405
+ DropdownMenuLabel,
1406
+ DropdownMenuSeparator,
1407
+ DropdownMenuShortcut,
1408
+ DropdownMenuSub,
1409
+ DropdownMenuSubTrigger,
1410
+ DropdownMenuSubContent,
1411
+ Avatar,
1412
+ AvatarImage,
1413
+ AvatarFallback,
1414
+ Breadcrumb,
1415
+ BreadcrumbList,
1416
+ BreadcrumbItem,
1417
+ BreadcrumbLink,
1418
+ BreadcrumbPage,
1419
+ BreadcrumbSeparator,
1420
+ BreadcrumbEllipsis,
1421
+ Collapsible,
1422
+ CollapsibleTrigger2 as CollapsibleTrigger,
1423
+ CollapsibleContent2 as CollapsibleContent,
1424
+ Icon,
1425
+ Sheet,
1426
+ SheetTrigger,
1427
+ SheetClose,
1428
+ SheetContent,
1429
+ SheetHeader,
1430
+ SheetFooter,
1431
+ SheetTitle,
1432
+ SheetDescription,
1433
+ Skeleton,
1434
+ TooltipProvider,
1435
+ Tooltip,
1436
+ TooltipTrigger,
1437
+ TooltipContent,
1438
+ useIsMobile,
1439
+ useSidebar,
1440
+ SidebarProvider,
1441
+ Sidebar,
1442
+ SidebarTrigger,
1443
+ SidebarRail,
1444
+ SidebarInset,
1445
+ SidebarInput,
1446
+ SidebarHeader,
1447
+ SidebarFooter,
1448
+ SidebarSeparator,
1449
+ SidebarContent,
1450
+ SidebarGroup,
1451
+ SidebarGroupLabel,
1452
+ SidebarGroupAction,
1453
+ SidebarGroupContent,
1454
+ SidebarMenu,
1455
+ SidebarMenuItem,
1456
+ SidebarMenuButton,
1457
+ SidebarMenuAction,
1458
+ SidebarMenuBadge,
1459
+ SidebarMenuSkeleton,
1460
+ SidebarMenuSub,
1461
+ SidebarMenuSubItem,
1462
+ SidebarMenuSubButton
1463
+ };
1464
+ //# sourceMappingURL=chunk-ZQXZ4UGE.js.map