@mesob/ui 0.2.1 → 0.2.3

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 (43) hide show
  1. package/dist/components/alert-dialog.js +14 -14
  2. package/dist/components/alert-dialog.js.map +1 -1
  3. package/dist/components/app-breadcrumbs-context.d.ts +19 -0
  4. package/dist/components/app-breadcrumbs-context.js +19 -0
  5. package/dist/components/app-breadcrumbs-context.js.map +1 -0
  6. package/dist/components/app-breadcrumbs.d.ts +5 -14
  7. package/dist/components/app-breadcrumbs.js +5 -7
  8. package/dist/components/app-breadcrumbs.js.map +1 -1
  9. package/dist/components/app-header-actions.js +70 -70
  10. package/dist/components/app-header-actions.js.map +1 -1
  11. package/dist/components/app-sidebar.js +57 -59
  12. package/dist/components/app-sidebar.js.map +1 -1
  13. package/dist/components/button.js +4 -4
  14. package/dist/components/button.js.map +1 -1
  15. package/dist/components/calendar.js +12 -12
  16. package/dist/components/calendar.js.map +1 -1
  17. package/dist/components/carousel.js +14 -14
  18. package/dist/components/carousel.js.map +1 -1
  19. package/dist/components/data-table/index.js +57 -57
  20. package/dist/components/data-table/index.js.map +1 -1
  21. package/dist/components/entity/index.js +177 -177
  22. package/dist/components/entity/index.js.map +1 -1
  23. package/dist/components/input-group.js +15 -15
  24. package/dist/components/input-group.js.map +1 -1
  25. package/dist/components/page/index.js +21 -21
  26. package/dist/components/page/index.js.map +1 -1
  27. package/dist/components/pagination.js +12 -12
  28. package/dist/components/pagination.js.map +1 -1
  29. package/dist/components/section/index.js +15 -15
  30. package/dist/components/section/index.js.map +1 -1
  31. package/dist/components/shell.js +37 -42
  32. package/dist/components/shell.js.map +1 -1
  33. package/dist/components/sidebar-context.d.ts +19 -0
  34. package/dist/components/sidebar-context.js +17 -0
  35. package/dist/components/sidebar-context.js.map +1 -0
  36. package/dist/components/sidebar.d.ts +2 -15
  37. package/dist/components/sidebar.js +67 -70
  38. package/dist/components/sidebar.js.map +1 -1
  39. package/dist/components/spotlight-search.js +38 -38
  40. package/dist/components/spotlight-search.js.map +1 -1
  41. package/dist/components/theme-toggle.js +8 -8
  42. package/dist/components/theme-toggle.js.map +1 -1
  43. package/package.json +1 -1
@@ -6,23 +6,10 @@ import { Separator } from './separator.js';
6
6
  import { TooltipContent } from './tooltip.js';
7
7
  import { VariantProps } from 'class-variance-authority';
8
8
  import * as React from 'react';
9
+ export { useSidebar } from './sidebar-context';
9
10
  import '@radix-ui/react-separator';
10
11
  import '@radix-ui/react-tooltip';
11
12
 
12
- type SidebarContextProps = {
13
- state: 'expanded' | 'collapsed';
14
- open: boolean;
15
- setOpen: (open: boolean | ((open: boolean) => boolean)) => void;
16
- openMobile: boolean;
17
- setOpenMobile: (open: boolean) => void;
18
- isMobile: boolean;
19
- toggleSidebar: () => void;
20
- width: number;
21
- setWidth: (w: number) => void;
22
- minWidth: number;
23
- maxWidth: number;
24
- };
25
- declare function useSidebar(): SidebarContextProps;
26
13
  declare function SidebarProvider({ defaultOpen, open: openProp, onOpenChange: setOpenProp, className, style, children, ...props }: React.ComponentProps<'div'> & {
27
14
  defaultOpen?: boolean;
28
15
  open?: boolean;
@@ -76,4 +63,4 @@ declare function SidebarMenuSubButton({ asChild, size, isActive, className, ...p
76
63
  isActive?: boolean;
77
64
  }): react_jsx_runtime.JSX.Element;
78
65
 
79
- export { Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, useSidebar };
66
+ export { Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger };
@@ -10,7 +10,7 @@ function cn(...inputs) {
10
10
  // src/components/button.tsx
11
11
  import { Slot } from "@radix-ui/react-slot";
12
12
  import { cva } from "class-variance-authority";
13
- import { jsxs } from "react/jsx-runtime";
13
+ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
14
14
  var buttonVariants = cva(
15
15
  "inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
16
16
  {
@@ -49,25 +49,25 @@ function Button({
49
49
  ...props
50
50
  }) {
51
51
  const Comp = asChild ? Slot : "button";
52
- return /* @__PURE__ */ jsxs(
52
+ return /* @__PURE__ */ jsx(
53
53
  Comp,
54
54
  {
55
55
  "data-slot": "button",
56
56
  className: cn(buttonVariants({ variant, size, className })),
57
57
  ...props,
58
- children: [
58
+ children: asChild ? children : /* @__PURE__ */ jsxs(Fragment, { children: [
59
59
  leftIcon,
60
60
  children,
61
61
  rightIcon
62
- ]
62
+ ] })
63
63
  }
64
64
  );
65
65
  }
66
66
 
67
67
  // src/components/input.tsx
68
- import { jsx } from "react/jsx-runtime";
68
+ import { jsx as jsx2 } from "react/jsx-runtime";
69
69
  function Input({ className, type, ...props }) {
70
- return /* @__PURE__ */ jsx(
70
+ return /* @__PURE__ */ jsx2(
71
71
  "input",
72
72
  {
73
73
  type,
@@ -85,14 +85,14 @@ function Input({ className, type, ...props }) {
85
85
 
86
86
  // src/components/separator.tsx
87
87
  import * as SeparatorPrimitive from "@radix-ui/react-separator";
88
- import { jsx as jsx2 } from "react/jsx-runtime";
88
+ import { jsx as jsx3 } from "react/jsx-runtime";
89
89
  function Separator({
90
90
  className,
91
91
  orientation = "horizontal",
92
92
  decorative = true,
93
93
  ...props
94
94
  }) {
95
- return /* @__PURE__ */ jsx2(
95
+ return /* @__PURE__ */ jsx3(
96
96
  SeparatorPrimitive.Root,
97
97
  {
98
98
  "data-slot": "separator",
@@ -110,20 +110,20 @@ function Separator({
110
110
  // src/components/sheet.tsx
111
111
  import * as SheetPrimitive from "@radix-ui/react-dialog";
112
112
  import { IconX } from "@tabler/icons-react";
113
- import { jsx as jsx3, jsxs as jsxs2 } from "react/jsx-runtime";
113
+ import { jsx as jsx4, jsxs as jsxs2 } from "react/jsx-runtime";
114
114
  function Sheet({ ...props }) {
115
- return /* @__PURE__ */ jsx3(SheetPrimitive.Root, { "data-slot": "sheet", ...props });
115
+ return /* @__PURE__ */ jsx4(SheetPrimitive.Root, { "data-slot": "sheet", ...props });
116
116
  }
117
117
  function SheetPortal({
118
118
  ...props
119
119
  }) {
120
- return /* @__PURE__ */ jsx3(SheetPrimitive.Portal, { "data-slot": "sheet-portal", ...props });
120
+ return /* @__PURE__ */ jsx4(SheetPrimitive.Portal, { "data-slot": "sheet-portal", ...props });
121
121
  }
122
122
  function SheetOverlay({
123
123
  className,
124
124
  ...props
125
125
  }) {
126
- return /* @__PURE__ */ jsx3(
126
+ return /* @__PURE__ */ jsx4(
127
127
  SheetPrimitive.Overlay,
128
128
  {
129
129
  "data-slot": "sheet-overlay",
@@ -142,7 +142,7 @@ function SheetContent({
142
142
  ...props
143
143
  }) {
144
144
  return /* @__PURE__ */ jsxs2(SheetPortal, { children: [
145
- /* @__PURE__ */ jsx3(SheetOverlay, {}),
145
+ /* @__PURE__ */ jsx4(SheetOverlay, {}),
146
146
  /* @__PURE__ */ jsxs2(
147
147
  SheetPrimitive.Content,
148
148
  {
@@ -159,8 +159,8 @@ function SheetContent({
159
159
  children: [
160
160
  children,
161
161
  /* @__PURE__ */ jsxs2(SheetPrimitive.Close, { className: "ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none", children: [
162
- /* @__PURE__ */ jsx3(IconX, { className: "size-4" }),
163
- /* @__PURE__ */ jsx3("span", { className: "sr-only", children: "Close" })
162
+ /* @__PURE__ */ jsx4(IconX, { className: "size-4" }),
163
+ /* @__PURE__ */ jsx4("span", { className: "sr-only", children: "Close" })
164
164
  ] })
165
165
  ]
166
166
  }
@@ -168,7 +168,7 @@ function SheetContent({
168
168
  ] });
169
169
  }
170
170
  function SheetHeader({ className, ...props }) {
171
- return /* @__PURE__ */ jsx3(
171
+ return /* @__PURE__ */ jsx4(
172
172
  "div",
173
173
  {
174
174
  "data-slot": "sheet-header",
@@ -181,7 +181,7 @@ function SheetTitle({
181
181
  className,
182
182
  ...props
183
183
  }) {
184
- return /* @__PURE__ */ jsx3(
184
+ return /* @__PURE__ */ jsx4(
185
185
  SheetPrimitive.Title,
186
186
  {
187
187
  "data-slot": "sheet-title",
@@ -194,7 +194,7 @@ function SheetDescription({
194
194
  className,
195
195
  ...props
196
196
  }) {
197
- return /* @__PURE__ */ jsx3(
197
+ return /* @__PURE__ */ jsx4(
198
198
  SheetPrimitive.Description,
199
199
  {
200
200
  "data-slot": "sheet-description",
@@ -205,9 +205,9 @@ function SheetDescription({
205
205
  }
206
206
 
207
207
  // src/components/skeleton.tsx
208
- import { jsx as jsx4 } from "react/jsx-runtime";
208
+ import { jsx as jsx5 } from "react/jsx-runtime";
209
209
  function Skeleton({ className, ...props }) {
210
- return /* @__PURE__ */ jsx4(
210
+ return /* @__PURE__ */ jsx5(
211
211
  "div",
212
212
  {
213
213
  "data-slot": "skeleton",
@@ -219,12 +219,12 @@ function Skeleton({ className, ...props }) {
219
219
 
220
220
  // src/components/tooltip.tsx
221
221
  import * as TooltipPrimitive from "@radix-ui/react-tooltip";
222
- import { jsx as jsx5, jsxs as jsxs3 } from "react/jsx-runtime";
222
+ import { jsx as jsx6, jsxs as jsxs3 } from "react/jsx-runtime";
223
223
  function TooltipProvider({
224
224
  delayDuration = 0,
225
225
  ...props
226
226
  }) {
227
- return /* @__PURE__ */ jsx5(
227
+ return /* @__PURE__ */ jsx6(
228
228
  TooltipPrimitive.Provider,
229
229
  {
230
230
  "data-slot": "tooltip-provider",
@@ -237,12 +237,12 @@ function Tooltip({
237
237
  children,
238
238
  ...props
239
239
  }) {
240
- return /* @__PURE__ */ jsx5(TooltipPrimitive.Root, { "data-slot": "tooltip", ...props, children });
240
+ return /* @__PURE__ */ jsx6(TooltipPrimitive.Root, { "data-slot": "tooltip", ...props, children });
241
241
  }
242
242
  function TooltipTrigger({
243
243
  ...props
244
244
  }) {
245
- return /* @__PURE__ */ jsx5(TooltipPrimitive.Trigger, { "data-slot": "tooltip-trigger", ...props });
245
+ return /* @__PURE__ */ jsx6(TooltipPrimitive.Trigger, { "data-slot": "tooltip-trigger", ...props });
246
246
  }
247
247
  function TooltipContent({
248
248
  className,
@@ -250,7 +250,7 @@ function TooltipContent({
250
250
  children,
251
251
  ...props
252
252
  }) {
253
- return /* @__PURE__ */ jsx5(TooltipPrimitive.Portal, { children: /* @__PURE__ */ jsxs3(
253
+ return /* @__PURE__ */ jsx6(TooltipPrimitive.Portal, { children: /* @__PURE__ */ jsxs3(
254
254
  TooltipPrimitive.Content,
255
255
  {
256
256
  "data-slot": "tooltip-content",
@@ -262,7 +262,7 @@ function TooltipContent({
262
262
  ...props,
263
263
  children: [
264
264
  children,
265
- /* @__PURE__ */ jsx5(TooltipPrimitive.Arrow, { className: "bg-foreground fill-foreground z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]" })
265
+ /* @__PURE__ */ jsx6(TooltipPrimitive.Arrow, { className: "bg-foreground fill-foreground z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]" })
266
266
  ]
267
267
  }
268
268
  ) });
@@ -292,7 +292,12 @@ import { Slot as Slot2 } from "@radix-ui/react-slot";
292
292
  import { IconMenu2 } from "@tabler/icons-react";
293
293
  import { cva as cva2 } from "class-variance-authority";
294
294
  import * as React2 from "react";
295
- import { jsx as jsx6, jsxs as jsxs4 } from "react/jsx-runtime";
295
+ import {
296
+ SidebarContext,
297
+ useSidebar
298
+ } from "./sidebar-context";
299
+ import { useSidebar as useSidebar2 } from "./sidebar-context";
300
+ import { jsx as jsx7, jsxs as jsxs4 } from "react/jsx-runtime";
296
301
  var SIDEBAR_COOKIE_NAME = "sidebar_state";
297
302
  var SIDEBAR_WIDTH_COOKIE = "sidebar_width";
298
303
  var SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7;
@@ -316,14 +321,6 @@ function getWidthFromCookie() {
316
321
  function setWidthCookie(width) {
317
322
  document.cookie = `${SIDEBAR_WIDTH_COOKIE}=${width}; path=/; max-age=${SIDEBAR_COOKIE_MAX_AGE}`;
318
323
  }
319
- var SidebarContext = React2.createContext(null);
320
- function useSidebar() {
321
- const context = React2.useContext(SidebarContext);
322
- if (!context) {
323
- throw new Error("useSidebar must be used within a SidebarProvider.");
324
- }
325
- return context;
326
- }
327
324
  function SidebarProvider({
328
325
  defaultOpen = true,
329
326
  open: openProp,
@@ -383,7 +380,7 @@ function SidebarProvider({
383
380
  maxWidth: SIDEBAR_WIDTH_MAX
384
381
  };
385
382
  const sidebarWidthValue = open ? `${width}px` : SIDEBAR_WIDTH;
386
- return /* @__PURE__ */ jsx6(SidebarContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsx6(TooltipProvider, { delayDuration: 0, children: /* @__PURE__ */ jsx6(
383
+ return /* @__PURE__ */ jsx7(SidebarContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsx7(TooltipProvider, { delayDuration: 0, children: /* @__PURE__ */ jsx7(
387
384
  "div",
388
385
  {
389
386
  "data-slot": "sidebar-wrapper",
@@ -411,7 +408,7 @@ function Sidebar({
411
408
  }) {
412
409
  const { isMobile, state, openMobile, setOpenMobile } = useSidebar();
413
410
  if (collapsible === "none") {
414
- return /* @__PURE__ */ jsx6(
411
+ return /* @__PURE__ */ jsx7(
415
412
  "div",
416
413
  {
417
414
  "data-slot": "sidebar",
@@ -425,7 +422,7 @@ function Sidebar({
425
422
  );
426
423
  }
427
424
  if (isMobile) {
428
- return /* @__PURE__ */ jsx6(Sheet, { open: openMobile, onOpenChange: setOpenMobile, ...props, children: /* @__PURE__ */ jsxs4(
425
+ return /* @__PURE__ */ jsx7(Sheet, { open: openMobile, onOpenChange: setOpenMobile, ...props, children: /* @__PURE__ */ jsxs4(
429
426
  SheetContent,
430
427
  {
431
428
  "data-sidebar": "sidebar",
@@ -438,10 +435,10 @@ function Sidebar({
438
435
  side,
439
436
  children: [
440
437
  /* @__PURE__ */ jsxs4(SheetHeader, { className: "sr-only", children: [
441
- /* @__PURE__ */ jsx6(SheetTitle, { children: "Sidebar" }),
442
- /* @__PURE__ */ jsx6(SheetDescription, { children: "Displays the mobile sidebar." })
438
+ /* @__PURE__ */ jsx7(SheetTitle, { children: "Sidebar" }),
439
+ /* @__PURE__ */ jsx7(SheetDescription, { children: "Displays the mobile sidebar." })
443
440
  ] }),
444
- /* @__PURE__ */ jsx6("div", { className: "flex h-full w-full flex-col", children })
441
+ /* @__PURE__ */ jsx7("div", { className: "flex h-full w-full flex-col", children })
445
442
  ]
446
443
  }
447
444
  ) });
@@ -456,7 +453,7 @@ function Sidebar({
456
453
  "data-side": side,
457
454
  "data-slot": "sidebar",
458
455
  children: [
459
- /* @__PURE__ */ jsx6(
456
+ /* @__PURE__ */ jsx7(
460
457
  "div",
461
458
  {
462
459
  "data-slot": "sidebar-gap",
@@ -468,7 +465,7 @@ function Sidebar({
468
465
  )
469
466
  }
470
467
  ),
471
- /* @__PURE__ */ jsx6(
468
+ /* @__PURE__ */ jsx7(
472
469
  "div",
473
470
  {
474
471
  "data-slot": "sidebar-container",
@@ -480,7 +477,7 @@ function Sidebar({
480
477
  className
481
478
  ),
482
479
  ...props,
483
- children: /* @__PURE__ */ jsx6(
480
+ children: /* @__PURE__ */ jsx7(
484
481
  "div",
485
482
  {
486
483
  "data-sidebar": "sidebar",
@@ -515,15 +512,15 @@ function SidebarTrigger({
515
512
  },
516
513
  ...props,
517
514
  children: [
518
- /* @__PURE__ */ jsx6(IconMenu2, {}),
519
- /* @__PURE__ */ jsx6("span", { className: "sr-only", children: "Toggle Sidebar" })
515
+ /* @__PURE__ */ jsx7(IconMenu2, {}),
516
+ /* @__PURE__ */ jsx7("span", { className: "sr-only", children: "Toggle Sidebar" })
520
517
  ]
521
518
  }
522
519
  );
523
520
  }
524
521
  function SidebarRail({ className, ...props }) {
525
522
  const { toggleSidebar } = useSidebar();
526
- return /* @__PURE__ */ jsx6(
523
+ return /* @__PURE__ */ jsx7(
527
524
  "button",
528
525
  {
529
526
  "data-sidebar": "rail",
@@ -546,7 +543,7 @@ function SidebarRail({ className, ...props }) {
546
543
  );
547
544
  }
548
545
  function SidebarInset({ className, ...props }) {
549
- return /* @__PURE__ */ jsx6(
546
+ return /* @__PURE__ */ jsx7(
550
547
  "main",
551
548
  {
552
549
  "data-slot": "sidebar-inset",
@@ -563,7 +560,7 @@ function SidebarInput({
563
560
  className,
564
561
  ...props
565
562
  }) {
566
- return /* @__PURE__ */ jsx6(
563
+ return /* @__PURE__ */ jsx7(
567
564
  Input,
568
565
  {
569
566
  "data-slot": "sidebar-input",
@@ -574,7 +571,7 @@ function SidebarInput({
574
571
  );
575
572
  }
576
573
  function SidebarHeader({ className, ...props }) {
577
- return /* @__PURE__ */ jsx6(
574
+ return /* @__PURE__ */ jsx7(
578
575
  "div",
579
576
  {
580
577
  "data-slot": "sidebar-header",
@@ -585,7 +582,7 @@ function SidebarHeader({ className, ...props }) {
585
582
  );
586
583
  }
587
584
  function SidebarFooter({ className, ...props }) {
588
- return /* @__PURE__ */ jsx6(
585
+ return /* @__PURE__ */ jsx7(
589
586
  "div",
590
587
  {
591
588
  "data-slot": "sidebar-footer",
@@ -599,7 +596,7 @@ function SidebarSeparator({
599
596
  className,
600
597
  ...props
601
598
  }) {
602
- return /* @__PURE__ */ jsx6(
599
+ return /* @__PURE__ */ jsx7(
603
600
  Separator,
604
601
  {
605
602
  "data-slot": "sidebar-separator",
@@ -610,7 +607,7 @@ function SidebarSeparator({
610
607
  );
611
608
  }
612
609
  function SidebarContent({ className, ...props }) {
613
- return /* @__PURE__ */ jsx6(
610
+ return /* @__PURE__ */ jsx7(
614
611
  "div",
615
612
  {
616
613
  "data-slot": "sidebar-content",
@@ -624,7 +621,7 @@ function SidebarContent({ className, ...props }) {
624
621
  );
625
622
  }
626
623
  function SidebarGroup({ className, ...props }) {
627
- return /* @__PURE__ */ jsx6(
624
+ return /* @__PURE__ */ jsx7(
628
625
  "div",
629
626
  {
630
627
  "data-slot": "sidebar-group",
@@ -640,7 +637,7 @@ function SidebarGroupLabel({
640
637
  ...props
641
638
  }) {
642
639
  const Comp = asChild ? Slot2 : "div";
643
- return /* @__PURE__ */ jsx6(
640
+ return /* @__PURE__ */ jsx7(
644
641
  Comp,
645
642
  {
646
643
  "data-slot": "sidebar-group-label",
@@ -660,7 +657,7 @@ function SidebarGroupAction({
660
657
  ...props
661
658
  }) {
662
659
  const Comp = asChild ? Slot2 : "button";
663
- return /* @__PURE__ */ jsx6(
660
+ return /* @__PURE__ */ jsx7(
664
661
  Comp,
665
662
  {
666
663
  "data-slot": "sidebar-group-action",
@@ -680,7 +677,7 @@ function SidebarGroupContent({
680
677
  className,
681
678
  ...props
682
679
  }) {
683
- return /* @__PURE__ */ jsx6(
680
+ return /* @__PURE__ */ jsx7(
684
681
  "div",
685
682
  {
686
683
  "data-slot": "sidebar-group-content",
@@ -691,7 +688,7 @@ function SidebarGroupContent({
691
688
  );
692
689
  }
693
690
  function SidebarMenu({ className, ...props }) {
694
- return /* @__PURE__ */ jsx6(
691
+ return /* @__PURE__ */ jsx7(
695
692
  "ul",
696
693
  {
697
694
  "data-slot": "sidebar-menu",
@@ -702,7 +699,7 @@ function SidebarMenu({ className, ...props }) {
702
699
  );
703
700
  }
704
701
  function SidebarMenuItem({ className, ...props }) {
705
- return /* @__PURE__ */ jsx6(
702
+ return /* @__PURE__ */ jsx7(
706
703
  "li",
707
704
  {
708
705
  "data-slot": "sidebar-menu-item",
@@ -743,7 +740,7 @@ function SidebarMenuButton({
743
740
  }) {
744
741
  const Comp = asChild ? Slot2 : "button";
745
742
  const { isMobile, state } = useSidebar();
746
- const button = /* @__PURE__ */ jsx6(
743
+ const button = /* @__PURE__ */ jsx7(
747
744
  Comp,
748
745
  {
749
746
  "data-slot": "sidebar-menu-button",
@@ -763,8 +760,8 @@ function SidebarMenuButton({
763
760
  };
764
761
  }
765
762
  return /* @__PURE__ */ jsxs4(Tooltip, { children: [
766
- /* @__PURE__ */ jsx6(TooltipTrigger, { asChild: true, children: button }),
767
- /* @__PURE__ */ jsx6(
763
+ /* @__PURE__ */ jsx7(TooltipTrigger, { asChild: true, children: button }),
764
+ /* @__PURE__ */ jsx7(
768
765
  TooltipContent,
769
766
  {
770
767
  side: "right",
@@ -782,7 +779,7 @@ function SidebarMenuAction({
782
779
  ...props
783
780
  }) {
784
781
  const Comp = asChild ? Slot2 : "button";
785
- return /* @__PURE__ */ jsx6(
782
+ return /* @__PURE__ */ jsx7(
786
783
  Comp,
787
784
  {
788
785
  "data-slot": "sidebar-menu-action",
@@ -806,7 +803,7 @@ function SidebarMenuBadge({
806
803
  className,
807
804
  ...props
808
805
  }) {
809
- return /* @__PURE__ */ jsx6(
806
+ return /* @__PURE__ */ jsx7(
810
807
  "div",
811
808
  {
812
809
  "data-slot": "sidebar-menu-badge",
@@ -840,14 +837,14 @@ function SidebarMenuSkeleton({
840
837
  className: cn("flex h-8 items-center gap-2 rounded-md px-2", className),
841
838
  ...props,
842
839
  children: [
843
- showIcon && /* @__PURE__ */ jsx6(
840
+ showIcon && /* @__PURE__ */ jsx7(
844
841
  Skeleton,
845
842
  {
846
843
  className: "size-4 rounded-md",
847
844
  "data-sidebar": "menu-skeleton-icon"
848
845
  }
849
846
  ),
850
- /* @__PURE__ */ jsx6(
847
+ /* @__PURE__ */ jsx7(
851
848
  Skeleton,
852
849
  {
853
850
  className: "h-4 max-w-(--skeleton-width) flex-1",
@@ -862,7 +859,7 @@ function SidebarMenuSkeleton({
862
859
  );
863
860
  }
864
861
  function SidebarMenuSub({ className, ...props }) {
865
- return /* @__PURE__ */ jsx6(
862
+ return /* @__PURE__ */ jsx7(
866
863
  "ul",
867
864
  {
868
865
  "data-slot": "sidebar-menu-sub",
@@ -880,7 +877,7 @@ function SidebarMenuSubItem({
880
877
  className,
881
878
  ...props
882
879
  }) {
883
- return /* @__PURE__ */ jsx6(
880
+ return /* @__PURE__ */ jsx7(
884
881
  "li",
885
882
  {
886
883
  "data-slot": "sidebar-menu-sub-item",
@@ -898,7 +895,7 @@ function SidebarMenuSubButton({
898
895
  ...props
899
896
  }) {
900
897
  const Comp = asChild ? Slot2 : "a";
901
- return /* @__PURE__ */ jsx6(
898
+ return /* @__PURE__ */ jsx7(
902
899
  Comp,
903
900
  {
904
901
  "data-slot": "sidebar-menu-sub-button",
@@ -941,6 +938,6 @@ export {
941
938
  SidebarRail,
942
939
  SidebarSeparator,
943
940
  SidebarTrigger,
944
- useSidebar
941
+ useSidebar2 as useSidebar
945
942
  };
946
943
  //# sourceMappingURL=sidebar.js.map