@brightlocal/ui-components 2.26.0 → 2.27.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 (89) hide show
  1. package/README.md +4 -2
  2. package/component-meta.json +3761 -360
  3. package/dist/blocks/progress-screen.cjs +1 -0
  4. package/dist/blocks/progress-screen.d.ts +109 -0
  5. package/dist/blocks/progress-screen.d.ts.map +1 -0
  6. package/dist/blocks/progress-screen.js +339 -0
  7. package/dist/blocks/sidebar.cjs +1 -1
  8. package/dist/blocks/sidebar.d.ts.map +1 -1
  9. package/dist/blocks/sidebar.js +155 -153
  10. package/dist/brand-illustration-motif.d.ts +1 -1
  11. package/dist/breadcrumb.cjs +1 -1
  12. package/dist/breadcrumb.d.ts.map +1 -1
  13. package/dist/breadcrumb.js +44 -40
  14. package/dist/button.cjs +1 -1
  15. package/dist/button.d.ts.map +1 -1
  16. package/dist/button.js +28 -28
  17. package/dist/chip.cjs +1 -1
  18. package/dist/chip.d.ts +1 -1
  19. package/dist/chip.d.ts.map +1 -1
  20. package/dist/chip.js +42 -41
  21. package/dist/combobox.cjs +3 -3
  22. package/dist/combobox.d.ts +4 -2
  23. package/dist/combobox.d.ts.map +1 -1
  24. package/dist/combobox.js +161 -161
  25. package/dist/data-table.cjs +1 -1
  26. package/dist/data-table.d.ts +138 -3
  27. package/dist/data-table.d.ts.map +1 -1
  28. package/dist/data-table.js +455 -309
  29. package/dist/global-layout.cjs +1 -1
  30. package/dist/global-layout.d.ts +31 -5
  31. package/dist/global-layout.d.ts.map +1 -1
  32. package/dist/global-layout.js +276 -194
  33. package/dist/index.cjs +1 -1
  34. package/dist/index.d.ts +3 -0
  35. package/dist/index.d.ts.map +1 -1
  36. package/dist/index.js +462 -451
  37. package/dist/lib/motion.cjs +1 -1
  38. package/dist/lib/motion.js +10 -8
  39. package/dist/link.cjs +1 -1
  40. package/dist/link.d.ts +8 -6
  41. package/dist/link.d.ts.map +1 -1
  42. package/dist/link.js +52 -20
  43. package/dist/list.cjs +1 -1
  44. package/dist/list.js +65 -63
  45. package/dist/progress.cjs +1 -1
  46. package/dist/progress.d.ts +61 -3
  47. package/dist/progress.d.ts.map +1 -1
  48. package/dist/progress.js +142 -65
  49. package/dist/route-progress.cjs +1 -0
  50. package/dist/route-progress.d.ts +103 -0
  51. package/dist/route-progress.d.ts.map +1 -0
  52. package/dist/route-progress.js +106 -0
  53. package/dist/sheet.cjs +1 -1
  54. package/dist/sheet.d.ts +35 -2
  55. package/dist/sheet.d.ts.map +1 -1
  56. package/dist/sheet.js +102 -65
  57. package/dist/sonner.cjs +1 -1
  58. package/dist/sonner.d.ts.map +1 -1
  59. package/dist/sonner.js +11 -15
  60. package/dist/spinner.cjs +1 -0
  61. package/dist/spinner.d.ts +57 -0
  62. package/dist/spinner.d.ts.map +1 -0
  63. package/dist/spinner.js +35 -0
  64. package/dist/stepper.cjs +1 -1
  65. package/dist/stepper.d.ts.map +1 -1
  66. package/dist/stepper.js +26 -25
  67. package/dist/table.cjs +1 -1
  68. package/dist/table.d.ts +1 -1
  69. package/dist/table.d.ts.map +1 -1
  70. package/dist/table.js +6 -2
  71. package/package.json +14 -2
  72. package/src/blocks/progress-screen.tsx +481 -0
  73. package/src/blocks/sidebar.tsx +22 -15
  74. package/src/components/breadcrumb.tsx +9 -4
  75. package/src/components/button.tsx +2 -5
  76. package/src/components/chip.tsx +4 -3
  77. package/src/components/combobox.tsx +15 -8
  78. package/src/components/data-table.tsx +333 -14
  79. package/src/components/global-layout.tsx +228 -62
  80. package/src/components/link.tsx +39 -5
  81. package/src/components/list.tsx +5 -5
  82. package/src/components/progress.tsx +217 -30
  83. package/src/components/route-progress.tsx +354 -0
  84. package/src/components/sheet.tsx +87 -5
  85. package/src/components/sonner.tsx +3 -12
  86. package/src/components/spinner.tsx +94 -0
  87. package/src/components/stepper.tsx +3 -4
  88. package/src/components/table.tsx +6 -2
  89. package/src/index.ts +3 -0
@@ -1,13 +1,13 @@
1
1
  import { jsx as a, jsxs as c, Fragment as M } from "react/jsx-runtime";
2
2
  import * as i from "react";
3
- import { createPortal as q } from "react-dom";
3
+ import { createPortal as X } from "react-dom";
4
4
  import { Slot as S } from "@radix-ui/react-slot";
5
- import { cva as O } from "class-variance-authority";
6
- import { ChevronRight as E, Ellipsis as X, Minus as V, Plus as _, ChevronsUpDown as Y, ChevronDown as P, Menu as Z, PanelLeft as J } from "@brightlocal/icons";
5
+ import { cva as _ } from "class-variance-authority";
6
+ import { ChevronsUpDown as F, ChevronRight as A, Ellipsis as V, Minus as Y, Plus as O, ChevronDown as z, Menu as Z, PanelLeft as J } from "@brightlocal/icons";
7
7
  import { cn as l } from "@brightlocal/ui-components/lib/utils";
8
- import { Button as F } from "../button.js";
8
+ import { Button as H } from "../button.js";
9
9
  import { Input as Q } from "../input.js";
10
- import { Separator as T } from "../separator.js";
10
+ import { Separator as P } from "../separator.js";
11
11
  import { DropdownMenu as ee, DropdownMenuTrigger as ae, DropdownMenuContent as te, DropdownMenuLabel as re, DropdownMenuSeparator as oe, DropdownMenuItem as se } from "../dropdown-menu.js";
12
12
  import { Popover as ne, PopoverTrigger as ie, PopoverContent as de } from "../popover.js";
13
13
  import { Sheet as le, SheetContent as ce, SheetTitle as ue, SheetDescription as be } from "../sheet.js";
@@ -18,15 +18,15 @@ import { Skeleton as B } from "../skeleton.js";
18
18
  import { Tooltip as xe, TooltipTrigger as ve, TooltipContent as we, TooltipProvider as Ne } from "../tooltip.js";
19
19
  import { useIsBelowBreakpoint as ke } from "../hooks/use-breakpoint.js";
20
20
  const v = "focus-visible:[box-shadow:0_0_0_1px_color-mix(in_srgb,var(--color-sidebar-ring)_50%,transparent),0_0_0_3px_rgba(0,0,0,0.1)]";
21
- var ye = /* @__PURE__ */ ((e) => (e.LEFT = "left", e))(ye || {}), Se = /* @__PURE__ */ ((e) => (e.SIDEBAR = "sidebar", e))(Se || {}), Ce = /* @__PURE__ */ ((e) => (e.OFFCANVAS = "offcanvas", e.ICON = "icon", e.NONE = "none", e))(Ce || {}), Re = /* @__PURE__ */ ((e) => (e.DEFAULT = "default", e.SM = "sm", e.XS = "xs", e))(Re || {}), Me = /* @__PURE__ */ ((e) => (e.DEFAULT = "default", e.COLLAPSIBLE = "collapsible", e.ACTION = "action", e))(Me || {}), Ie = /* @__PURE__ */ ((e) => (e.SIMPLE = "simple", e.COLLAPSIBLE = "collapsible", e.DROPDOWN = "dropdown", e.BADGE = "badge", e.BIG_ICON = "bigIcon", e.CHECKBOX = "checkbox", e))(Ie || {}), De = /* @__PURE__ */ ((e) => (e.DEFAULT = "default", e.SM = "sm", e.LG = "lg", e))(De || {}), Ee = /* @__PURE__ */ ((e) => (e.DEFAULT = "default", e.BORDER = "border", e.INDENT = "indent", e))(Ee || {}), Ae = /* @__PURE__ */ ((e) => (e.SM = "sm", e.MD = "md", e))(Ae || {}), Oe = /* @__PURE__ */ ((e) => (e.CARET = "caret", e.HORIZONTAL = "horizontal", e.VERTICAL = "vertical", e.UP_DOWN = "upDown", e.PLUS_MINUS = "plusMinus", e.DOTS = "dots", e))(Oe || {});
22
- const _e = "sidebar:state", Pe = 3600 * 24 * 7, Te = "232px", ze = "336px", Le = "48px", Be = "b", H = i.createContext(null);
21
+ var ye = /* @__PURE__ */ ((e) => (e.LEFT = "left", e))(ye || {}), Se = /* @__PURE__ */ ((e) => (e.SIDEBAR = "sidebar", e))(Se || {}), Ce = /* @__PURE__ */ ((e) => (e.OFFCANVAS = "offcanvas", e.ICON = "icon", e.NONE = "none", e))(Ce || {}), Re = /* @__PURE__ */ ((e) => (e.DEFAULT = "default", e.SM = "sm", e.XS = "xs", e))(Re || {}), Me = /* @__PURE__ */ ((e) => (e.DEFAULT = "default", e.COLLAPSIBLE = "collapsible", e.ACTION = "action", e))(Me || {}), Ie = /* @__PURE__ */ ((e) => (e.SIMPLE = "simple", e.COLLAPSIBLE = "collapsible", e.DROPDOWN = "dropdown", e.BADGE = "badge", e.BIG_ICON = "bigIcon", e.CHECKBOX = "checkbox", e))(Ie || {}), De = /* @__PURE__ */ ((e) => (e.DEFAULT = "default", e.SM = "sm", e.LG = "lg", e))(De || {}), Ae = /* @__PURE__ */ ((e) => (e.DEFAULT = "default", e.BORDER = "border", e.INDENT = "indent", e))(Ae || {}), Ee = /* @__PURE__ */ ((e) => (e.SM = "sm", e.MD = "md", e))(Ee || {}), _e = /* @__PURE__ */ ((e) => (e.CARET = "caret", e.HORIZONTAL = "horizontal", e.VERTICAL = "vertical", e.UP_DOWN = "upDown", e.PLUS_MINUS = "plusMinus", e.DOTS = "dots", e))(_e || {});
22
+ const Oe = "sidebar:state", ze = 3600 * 24 * 7, Pe = "288px", Te = "48px", Le = "b", j = i.createContext(null);
23
23
  function k() {
24
- const e = i.useContext(H);
24
+ const e = i.useContext(j);
25
25
  if (!e)
26
26
  throw new Error("useSidebar must be used within a SidebarProvider.");
27
27
  return e;
28
28
  }
29
- const Fe = i.forwardRef(
29
+ const Be = i.forwardRef(
30
30
  ({
31
31
  dataHook: e,
32
32
  trackingEl: t,
@@ -39,20 +39,20 @@ const Fe = i.forwardRef(
39
39
  children: m,
40
40
  ...p
41
41
  }, b) => {
42
- const f = ke("lg"), [h, w] = i.useState(!1), [g, I] = i.useState(null), [D, K] = i.useState(o), y = s ?? D, C = i.useCallback(
42
+ const f = ke("lg"), [h, w] = i.useState(!1), [g, I] = i.useState(null), [D, W] = i.useState(o), y = s ?? D, C = i.useCallback(
43
43
  (x) => {
44
44
  const N = typeof x == "function" ? x(y) : x;
45
- n ? n(N) : K(N), document.cookie = `${_e}=${N}; path=/; max-age=${Pe}`;
45
+ n ? n(N) : W(N), document.cookie = `${Oe}=${N}; path=/; max-age=${ze}`;
46
46
  },
47
47
  [n, y]
48
48
  ), R = i.useCallback(() => f ? w((x) => !x) : C((x) => !x), [f, C, w]);
49
49
  i.useEffect(() => {
50
50
  const x = (N) => {
51
- N.key === Be && (N.metaKey || N.ctrlKey) && (N.preventDefault(), R());
51
+ N.key === Le && (N.metaKey || N.ctrlKey) && (N.preventDefault(), R());
52
52
  };
53
53
  return window.addEventListener("keydown", x), () => window.removeEventListener("keydown", x);
54
54
  }, [R]);
55
- const L = y ? "expanded" : "collapsed", W = i.useMemo(
55
+ const L = y ? "expanded" : "collapsed", q = i.useMemo(
56
56
  () => ({
57
57
  state: L,
58
58
  open: y,
@@ -75,7 +75,7 @@ const Fe = i.forwardRef(
75
75
  g
76
76
  ]
77
77
  );
78
- return /* @__PURE__ */ a(H.Provider, { value: W, children: /* @__PURE__ */ a(Ne, { delayDuration: 0, children: /* @__PURE__ */ a(
78
+ return /* @__PURE__ */ a(j.Provider, { value: q, children: /* @__PURE__ */ a(Ne, { delayDuration: 0, children: /* @__PURE__ */ a(
79
79
  "div",
80
80
  {
81
81
  ref: b,
@@ -88,8 +88,8 @@ const Fe = i.forwardRef(
88
88
  "data-tracking-el": t || "sidebar-provider",
89
89
  "data-tracking-label": r,
90
90
  style: {
91
- "--sidebar-width": Te,
92
- "--sidebar-width-icon": Le,
91
+ "--sidebar-width": Pe,
92
+ "--sidebar-width-icon": Te,
93
93
  ...u
94
94
  },
95
95
  ...p,
@@ -98,8 +98,8 @@ const Fe = i.forwardRef(
98
98
  ) }) });
99
99
  }
100
100
  );
101
- Fe.displayName = "SidebarProvider";
102
- const He = i.forwardRef(
101
+ Be.displayName = "SidebarProvider";
102
+ const Fe = i.forwardRef(
103
103
  ({
104
104
  dataHook: e,
105
105
  trackingEl: t,
@@ -134,14 +134,12 @@ const He = i.forwardRef(
134
134
  ) : w ? /* @__PURE__ */ a(le, { open: I, onOpenChange: D, children: /* @__PURE__ */ c(
135
135
  ce,
136
136
  {
137
- className: "bg-sidebar-background text-sidebar-foreground w-(--sidebar-width) p-6",
137
+ className: "bg-sidebar-background text-sidebar-foreground p-6",
138
138
  "data-hook": `${e}-mobile-content`,
139
139
  "data-mobile": "true",
140
140
  "data-sidebar": "sidebar",
141
141
  side: "left",
142
- style: {
143
- "--sidebar-width": `min(${ze}, calc(100vw - 40px))`
144
- },
142
+ size: "sm",
145
143
  children: [
146
144
  /* @__PURE__ */ a(ue, { className: "sr-only", children: u ?? "Navigation" }),
147
145
  /* @__PURE__ */ a(be, { className: "sr-only", children: m ?? "Main navigation menu" }),
@@ -173,8 +171,8 @@ const He = i.forwardRef(
173
171
  );
174
172
  }
175
173
  );
176
- He.displayName = "Sidebar";
177
- const $ = i.forwardRef(
174
+ Fe.displayName = "Sidebar";
175
+ const G = i.forwardRef(
178
176
  ({
179
177
  className: e,
180
178
  onClick: t,
@@ -185,7 +183,7 @@ const $ = i.forwardRef(
185
183
  }, d) => {
186
184
  const { toggleSidebar: u } = k(), m = o ?? "Toggle sidebar";
187
185
  return /* @__PURE__ */ c(
188
- F,
186
+ H,
189
187
  {
190
188
  ref: d,
191
189
  iconOnly: !0,
@@ -207,8 +205,8 @@ const $ = i.forwardRef(
207
205
  );
208
206
  }
209
207
  );
210
- $.displayName = "SidebarTrigger";
211
- const $e = i.forwardRef(
208
+ G.displayName = "SidebarTrigger";
209
+ const He = i.forwardRef(
212
210
  ({ className: e, toggleAriaLabel: t, ...r }, o) => {
213
211
  const { toggleSidebar: s } = k(), n = t ?? "Toggle sidebar";
214
212
  return /* @__PURE__ */ a(
@@ -233,7 +231,7 @@ const $e = i.forwardRef(
233
231
  );
234
232
  }
235
233
  );
236
- $e.displayName = "SidebarRail";
234
+ He.displayName = "SidebarRail";
237
235
  const je = i.forwardRef(
238
236
  ({ className: e, dataHook: t, trackingEl: r, trackingLabel: o, ...s }, n) => /* @__PURE__ */ a(
239
237
  "main",
@@ -273,7 +271,10 @@ const Ue = i.forwardRef(
273
271
  {
274
272
  ref: o,
275
273
  className: l(
276
- "pr-section-xs flex shrink-0 flex-col gap-2 pt-2 pb-9 pl-8",
274
+ // DS-860 Figma: logo sits 24px from the left and 24px from the
275
+ // top; pb-5 plus the ScrollArea viewport's 4px top inset gives the
276
+ // 24px gap to the first nav item.
277
+ "pr-section-xs flex shrink-0 flex-col gap-2 pt-6 pb-5 pl-6",
277
278
  e
278
279
  ),
279
280
  "data-hook": t,
@@ -283,11 +284,11 @@ const Ue = i.forwardRef(
283
284
  )
284
285
  );
285
286
  Ue.displayName = "SidebarHeader";
286
- const Ke = i.forwardRef(
287
+ const $e = i.forwardRef(
287
288
  ({ className: e, dataHook: t, separator: r = !0, ...o }, s) => {
288
289
  const { footerPortalEl: n } = k(), d = /* @__PURE__ */ c(M, { children: [
289
290
  r && /* @__PURE__ */ a(
290
- T,
291
+ P,
291
292
  {
292
293
  className: "group-data-[collapsible=icon]:mx-0",
293
294
  "data-slot": "sidebar-footer-separator",
@@ -305,12 +306,12 @@ const Ke = i.forwardRef(
305
306
  }
306
307
  )
307
308
  ] });
308
- return n ? q(d, n) : d;
309
+ return n ? X(d, n) : d;
309
310
  }
310
311
  );
311
- Ke.displayName = "SidebarFooter";
312
- const We = i.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ a(
313
- T,
312
+ $e.displayName = "SidebarFooter";
313
+ const Ke = i.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ a(
314
+ P,
314
315
  {
315
316
  ref: r,
316
317
  className: l(
@@ -321,8 +322,8 @@ const We = i.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ a(
321
322
  ...t
322
323
  }
323
324
  ));
324
- We.displayName = "SidebarSeparator";
325
- const qe = i.forwardRef(
325
+ Ke.displayName = "SidebarSeparator";
326
+ const We = i.forwardRef(
326
327
  ({ className: e, dataHook: t, ariaLabel: r = "Sidebar", children: o, ...s }, n) => {
327
328
  const { isMobile: d, setFooterPortalEl: u } = k(), m = i.useCallback(
328
329
  (p) => {
@@ -338,7 +339,7 @@ const qe = i.forwardRef(
338
339
  {
339
340
  ref: m,
340
341
  className: l(
341
- "min-h-0 flex-1 group-data-[collapsible=icon]:overflow-hidden **:data-[slot=scroll-area-scrollbar]:w-1 **:data-[slot=scroll-area-scrollbar]:border-l-0 **:data-[slot=scroll-area-scrollbar]:p-0 [&_[data-slot=scroll-area-viewport]>div]:flex! [&_[data-slot=scroll-area-viewport]>div]:min-h-full [&_[data-slot=scroll-area-viewport]>div]:flex-col",
342
+ "min-h-0 flex-1 group-data-[collapsible=icon]:overflow-hidden **:data-[slot=scroll-area-scrollbar]:w-1 **:data-[slot=scroll-area-scrollbar]:border-l-0 **:data-[slot=scroll-area-scrollbar]:p-0 [&_[data-slot=scroll-area-viewport]]:pr-3! [&_[data-slot=scroll-area-viewport]]:pl-2! [&_[data-slot=scroll-area-viewport]>div]:flex! [&_[data-slot=scroll-area-viewport]>div]:min-h-full [&_[data-slot=scroll-area-viewport]>div]:flex-col",
342
343
  e
343
344
  ),
344
345
  dataHook: t ?? "sidebar-content-scroll",
@@ -360,8 +361,8 @@ const qe = i.forwardRef(
360
361
  );
361
362
  }
362
363
  );
363
- qe.displayName = "SidebarContent";
364
- const Xe = i.forwardRef(
364
+ We.displayName = "SidebarContent";
365
+ const qe = i.forwardRef(
365
366
  ({ className: e, dataHook: t, ...r }, o) => /* @__PURE__ */ a(
366
367
  "div",
367
368
  {
@@ -373,8 +374,8 @@ const Xe = i.forwardRef(
373
374
  }
374
375
  )
375
376
  );
376
- Xe.displayName = "SidebarGroup";
377
- const Ve = O(
377
+ qe.displayName = "SidebarGroup";
378
+ const Xe = _(
378
379
  [
379
380
  "flex h-8 shrink-0 items-center rounded-md px-2 font-medium text-sidebar-foreground/70 outline-none transition-[margin,opacity] duration-base ease-linear [&>svg]:shrink-0 group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",
380
381
  v
@@ -397,7 +398,7 @@ const Ve = O(
397
398
  variant: "default"
398
399
  }
399
400
  }
400
- ), Ye = i.forwardRef(
401
+ ), Ve = i.forwardRef(
401
402
  ({
402
403
  className: e,
403
404
  dataHook: t,
@@ -419,7 +420,7 @@ const Ve = O(
419
420
  f,
420
421
  {
421
422
  ref: b,
422
- className: l(Ve({ size: o, variant: s }), e),
423
+ className: l(Xe({ size: o, variant: s }), e),
423
424
  "data-hook": t,
424
425
  "data-slot": "sidebar-group-label",
425
426
  "data-variant": s,
@@ -431,7 +432,7 @@ const Ve = O(
431
432
  children: [
432
433
  /* @__PURE__ */ a("span", { children: m }),
433
434
  s === "collapsible" && /* @__PURE__ */ a(
434
- P,
435
+ z,
435
436
  {
436
437
  className: l(
437
438
  "duration-base shrink-0 transition-transform ease-in-out",
@@ -440,14 +441,14 @@ const Ve = O(
440
441
  size: 16
441
442
  }
442
443
  ),
443
- s === "action" && /* @__PURE__ */ a(_, { className: "shrink-0", size: 16 })
444
+ s === "action" && /* @__PURE__ */ a(O, { className: "shrink-0", size: 16 })
444
445
  ]
445
446
  }
446
447
  );
447
448
  }
448
449
  );
449
- Ye.displayName = "SidebarGroupLabel";
450
- const Ze = i.forwardRef(({ className: e, asChild: t = !1, ...r }, o) => /* @__PURE__ */ a(
450
+ Ve.displayName = "SidebarGroupLabel";
451
+ const Ye = i.forwardRef(({ className: e, asChild: t = !1, ...r }, o) => /* @__PURE__ */ a(
451
452
  t ? S : "button",
452
453
  {
453
454
  ref: o,
@@ -463,8 +464,8 @@ const Ze = i.forwardRef(({ className: e, asChild: t = !1, ...r }, o) => /* @__PU
463
464
  ...r
464
465
  }
465
466
  ));
466
- Ze.displayName = "SidebarGroupAction";
467
- const Je = i.forwardRef(({ className: e, dataHook: t, ...r }, o) => /* @__PURE__ */ a(
467
+ Ye.displayName = "SidebarGroupAction";
468
+ const Ze = i.forwardRef(({ className: e, dataHook: t, ...r }, o) => /* @__PURE__ */ a(
468
469
  "div",
469
470
  {
470
471
  ref: o,
@@ -474,8 +475,8 @@ const Je = i.forwardRef(({ className: e, dataHook: t, ...r }, o) => /* @__PURE__
474
475
  ...r
475
476
  }
476
477
  ));
477
- Je.displayName = "SidebarGroupContent";
478
- const Qe = i.forwardRef(
478
+ Ze.displayName = "SidebarGroupContent";
479
+ const Je = i.forwardRef(
479
480
  ({ className: e, dataHook: t, ...r }, o) => /* @__PURE__ */ a(
480
481
  "ul",
481
482
  {
@@ -487,8 +488,8 @@ const Qe = i.forwardRef(
487
488
  }
488
489
  )
489
490
  );
490
- Qe.displayName = "SidebarMenu";
491
- const j = i.forwardRef(
491
+ Je.displayName = "SidebarMenu";
492
+ const U = i.forwardRef(
492
493
  ({ className: e, dataHook: t, ...r }, o) => /* @__PURE__ */ a(
493
494
  "li",
494
495
  {
@@ -500,8 +501,8 @@ const j = i.forwardRef(
500
501
  }
501
502
  )
502
503
  );
503
- j.displayName = "SidebarMenuItem";
504
- const ea = i.forwardRef(
504
+ U.displayName = "SidebarMenuItem";
505
+ const Qe = i.forwardRef(
505
506
  ({
506
507
  type: e = "caret",
507
508
  isActive: t = !1,
@@ -520,24 +521,24 @@ const ea = i.forwardRef(
520
521
  };
521
522
  switch (e) {
522
523
  case "horizontal":
523
- return /* @__PURE__ */ a(E, { ...n });
524
+ return /* @__PURE__ */ a(A, { ...n });
524
525
  case "vertical":
525
- return /* @__PURE__ */ a(P, { ...n });
526
+ return /* @__PURE__ */ a(z, { ...n });
526
527
  case "upDown":
527
- return /* @__PURE__ */ a(Y, { ...n });
528
+ return /* @__PURE__ */ a(F, { ...n });
528
529
  case "plusMinus":
529
- return t ? /* @__PURE__ */ a(V, { ...n }) : /* @__PURE__ */ a(_, { ...n });
530
+ return t ? /* @__PURE__ */ a(Y, { ...n }) : /* @__PURE__ */ a(O, { ...n });
530
531
  case "dots":
531
- return /* @__PURE__ */ a(X, { ...n });
532
+ return /* @__PURE__ */ a(V, { ...n });
532
533
  default:
533
- return /* @__PURE__ */ a(E, { ...n });
534
+ return /* @__PURE__ */ a(A, { ...n });
534
535
  }
535
536
  }
536
537
  );
537
- ea.displayName = "SidebarCollapseIcon";
538
- const aa = O(
538
+ Qe.displayName = "SidebarCollapseIcon";
539
+ const ea = _(
539
540
  [
540
- "peer/menu-button flex w-full items-center gap-3 overflow-hidden rounded-full px-6 py-2 text-left text-sm font-medium outline-none transition-[color,background-color,border-color,box-shadow,opacity,width,height,padding] duration-base ease-in-out hover:bg-sidebar-accent hover:text-sidebar-accent-foreground 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 data-[active=true]:bg-sidebar-accent data-[active=true]:font-semibold 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 group-data-[collapsible=icon]:rounded-md [&>span:not([data-slot])]:truncate [&>svg]:shrink-0 [&>svg]:opacity-70 data-[active=true]:[&>svg]:opacity-100 group-data-[collapsible=icon]:[&>span]:hidden group-data-[collapsible=icon]:[&>div]:hidden",
541
+ "peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-full px-4 py-2 text-left text-sm font-medium outline-none transition-[color,background-color,border-color,box-shadow,opacity,width,height,padding] duration-base ease-in-out hover:bg-sidebar-accent hover:text-sidebar-accent-foreground 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 data-[active=true]:bg-sidebar-accent data-[active=true]:font-semibold 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 group-data-[collapsible=icon]:rounded-md [&>span:not([data-slot])]:truncate [&>svg]:shrink-0 [&>svg]:opacity-70 data-[active=true]:[&>svg]:opacity-100 group-data-[collapsible=icon]:[&>span]:hidden group-data-[collapsible=icon]:[&>div]:hidden",
541
542
  v
542
543
  ],
543
544
  {
@@ -567,7 +568,7 @@ const aa = O(
567
568
  size: "default"
568
569
  }
569
570
  }
570
- ), z = i.forwardRef(
571
+ ), T = i.forwardRef(
571
572
  ({
572
573
  asChild: e = !1,
573
574
  isActive: t = !1,
@@ -582,7 +583,7 @@ const aa = O(
582
583
  p,
583
584
  {
584
585
  ref: m,
585
- className: l(aa({ variant: r, size: o }), n),
586
+ className: l(ea({ variant: r, size: o }), n),
586
587
  "data-active": t,
587
588
  "data-hook": d,
588
589
  "data-size": o,
@@ -614,8 +615,8 @@ const aa = O(
614
615
  ] })) : h;
615
616
  }
616
617
  );
617
- z.displayName = "SidebarMenuButton";
618
- const ta = i.forwardRef(({ className: e, asChild: t = !1, showOnHover: r = !1, ...o }, s) => /* @__PURE__ */ a(
618
+ T.displayName = "SidebarMenuButton";
619
+ const aa = i.forwardRef(({ className: e, asChild: t = !1, showOnHover: r = !1, ...o }, s) => /* @__PURE__ */ a(
619
620
  t ? S : "button",
620
621
  {
621
622
  ref: s,
@@ -636,8 +637,8 @@ const ta = i.forwardRef(({ className: e, asChild: t = !1, showOnHover: r = !1, .
636
637
  ...o
637
638
  }
638
639
  ));
639
- ta.displayName = "SidebarMenuAction";
640
- const ra = i.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ a(
640
+ aa.displayName = "SidebarMenuAction";
641
+ const ta = i.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ a(
641
642
  "div",
642
643
  {
643
644
  ref: r,
@@ -651,8 +652,8 @@ const ra = i.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ a(
651
652
  ...t
652
653
  }
653
654
  ));
654
- ra.displayName = "SidebarMenuBadge";
655
- const oa = i.forwardRef(({ className: e, showIcon: t = !1, ...r }, o) => {
655
+ ta.displayName = "SidebarMenuBadge";
656
+ const ra = i.forwardRef(({ className: e, showIcon: t = !1, ...r }, o) => {
656
657
  const s = i.useId(), n = i.useMemo(() => {
657
658
  let d = 0;
658
659
  for (let u = 0; u < s.length; u++)
@@ -677,7 +678,7 @@ const oa = i.forwardRef(({ className: e, showIcon: t = !1, ...r }, o) => {
677
678
  /* @__PURE__ */ a(
678
679
  B,
679
680
  {
680
- className: "h-4 max-w-[--skeleton-width] flex-1",
681
+ className: "h-4 max-w-(--skeleton-width) flex-1",
681
682
  "data-slot": "sidebar-menu-skeleton-text",
682
683
  style: {
683
684
  "--skeleton-width": n
@@ -688,8 +689,8 @@ const oa = i.forwardRef(({ className: e, showIcon: t = !1, ...r }, o) => {
688
689
  }
689
690
  );
690
691
  });
691
- oa.displayName = "SidebarMenuSkeleton";
692
- const sa = O(
692
+ ra.displayName = "SidebarMenuSkeleton";
693
+ const oa = _(
693
694
  "flex min-w-0 flex-col items-start gap-1 py-1 group-data-[collapsible=icon]:hidden",
694
695
  {
695
696
  variants: {
@@ -703,20 +704,20 @@ const sa = O(
703
704
  variant: "border"
704
705
  }
705
706
  }
706
- ), G = i.forwardRef(
707
+ ), $ = i.forwardRef(
707
708
  ({ className: e, variant: t = "border", dataHook: r, ...o }, s) => /* @__PURE__ */ a(
708
709
  "ul",
709
710
  {
710
711
  ref: s,
711
- className: l(sa({ variant: t }), e),
712
+ className: l(oa({ variant: t }), e),
712
713
  "data-hook": r,
713
714
  "data-slot": "sidebar-menu-sub",
714
715
  ...o
715
716
  }
716
717
  )
717
718
  );
718
- G.displayName = "SidebarMenuSub";
719
- const na = i.forwardRef(({ dataHook: e, ...t }, r) => /* @__PURE__ */ a(
719
+ $.displayName = "SidebarMenuSub";
720
+ const sa = i.forwardRef(({ dataHook: e, ...t }, r) => /* @__PURE__ */ a(
720
721
  "li",
721
722
  {
722
723
  ref: r,
@@ -725,8 +726,8 @@ const na = i.forwardRef(({ dataHook: e, ...t }, r) => /* @__PURE__ */ a(
725
726
  ...t
726
727
  }
727
728
  ));
728
- na.displayName = "SidebarMenuSubItem";
729
- const ia = i.forwardRef(
729
+ sa.displayName = "SidebarMenuSubItem";
730
+ const na = i.forwardRef(
730
731
  ({
731
732
  asChild: e = !1,
732
733
  size: t = "md",
@@ -755,8 +756,8 @@ const ia = i.forwardRef(
755
756
  }
756
757
  )
757
758
  );
758
- ia.displayName = "SidebarMenuSubButton";
759
- function da({
759
+ na.displayName = "SidebarMenuSubButton";
760
+ function ia({
760
761
  dataHook: e,
761
762
  className: t,
762
763
  children: r,
@@ -764,7 +765,7 @@ function da({
764
765
  open: s,
765
766
  onOpenChange: n
766
767
  }) {
767
- return /* @__PURE__ */ a(j, { children: /* @__PURE__ */ a(
768
+ return /* @__PURE__ */ a(U, { children: /* @__PURE__ */ a(
768
769
  pe,
769
770
  {
770
771
  collapsible: !0,
@@ -778,9 +779,9 @@ function da({
778
779
  }
779
780
  ) });
780
781
  }
781
- da.displayName = "SidebarMenuCollapsible";
782
- const la = i.forwardRef(({ children: e, className: t, ...r }, o) => /* @__PURE__ */ a(he.Trigger, { asChild: !0, children: /* @__PURE__ */ c(
783
- z,
782
+ ia.displayName = "SidebarMenuCollapsible";
783
+ const da = i.forwardRef(({ children: e, className: t, ...r }, o) => /* @__PURE__ */ a(he.Trigger, { asChild: !0, children: /* @__PURE__ */ c(
784
+ T,
784
785
  {
785
786
  ref: o,
786
787
  className: t,
@@ -789,7 +790,7 @@ const la = i.forwardRef(({ children: e, className: t, ...r }, o) => /* @__PURE__
789
790
  children: [
790
791
  e,
791
792
  /* @__PURE__ */ a(
792
- E,
793
+ A,
793
794
  {
794
795
  "data-collapse-icon": !0,
795
796
  className: "duration-base opacity-100! transition-transform ease-in-out group-data-[collapsible=icon]:hidden",
@@ -799,10 +800,10 @@ const la = i.forwardRef(({ children: e, className: t, ...r }, o) => /* @__PURE__
799
800
  ]
800
801
  }
801
802
  ) }));
802
- la.displayName = "SidebarMenuCollapsibleTrigger";
803
- const ca = i.forwardRef(({ dataHook: e, children: t, ...r }, o) => /* @__PURE__ */ a(me, { className: "p-0", children: /* @__PURE__ */ a(G, { ref: o, dataHook: e, ...r, children: t }) }));
804
- ca.displayName = "SidebarMenuCollapsibleContent";
805
- const ua = i.forwardRef(
803
+ da.displayName = "SidebarMenuCollapsibleTrigger";
804
+ const la = i.forwardRef(({ dataHook: e, children: t, ...r }, o) => /* @__PURE__ */ a(me, { className: "p-0", children: /* @__PURE__ */ a($, { ref: o, dataHook: e, ...r, children: t }) }));
805
+ la.displayName = "SidebarMenuCollapsibleContent";
806
+ const ca = i.forwardRef(
806
807
  ({
807
808
  className: e,
808
809
  dataHook: t = "sidebar-drawer",
@@ -821,14 +822,14 @@ const ua = i.forwardRef(
821
822
  "data-tracking-el": r,
822
823
  "data-tracking-label": o,
823
824
  ...n,
824
- children: /* @__PURE__ */ a($, { dataHook: `${t}-trigger`, children: /* @__PURE__ */ a(Z, { size: 24 }) })
825
+ children: /* @__PURE__ */ a(G, { dataHook: `${t}-trigger`, children: /* @__PURE__ */ a(Z, { size: 24 }) })
825
826
  }
826
827
  )
827
828
  );
828
- ua.displayName = "SidebarDrawer";
829
- const ba = i.forwardRef(
829
+ ca.displayName = "SidebarDrawer";
830
+ const ua = i.forwardRef(
830
831
  ({ className: e, dataHook: t = "sidebar-header-button", children: r, ...o }, s) => /* @__PURE__ */ a(
831
- F,
832
+ H,
832
833
  {
833
834
  ref: s,
834
835
  ...o,
@@ -846,8 +847,8 @@ const ba = i.forwardRef(
846
847
  }
847
848
  )
848
849
  );
849
- ba.displayName = "SidebarHeaderButton";
850
- const U = i.forwardRef(
850
+ ua.displayName = "SidebarHeaderButton";
851
+ const K = i.forwardRef(
851
852
  ({
852
853
  className: e,
853
854
  dataHook: t = "sidebar-popover-trigger",
@@ -872,13 +873,13 @@ const U = i.forwardRef(
872
873
  children: [
873
874
  r && /* @__PURE__ */ a("span", { className: "bg-sidebar-primary text-sidebar-primary-foreground flex size-5 shrink-0 items-center justify-center rounded-md", children: r }),
874
875
  /* @__PURE__ */ a("span", { className: "truncate", children: s }),
875
- /* @__PURE__ */ a(P, { className: "shrink-0 opacity-50", size: 16 })
876
+ /* @__PURE__ */ a(z, { className: "shrink-0 opacity-50", size: 16 })
876
877
  ]
877
878
  }
878
879
  )
879
880
  );
880
- U.displayName = "SidebarPopoverTrigger";
881
- const A = i.forwardRef(({ className: e, dataHook: t, icon: r, shortcut: o, children: s, ...n }, d) => /* @__PURE__ */ c(
881
+ K.displayName = "SidebarPopoverTrigger";
882
+ const E = i.forwardRef(({ className: e, dataHook: t, icon: r, shortcut: o, children: s, ...n }, d) => /* @__PURE__ */ c(
882
883
  "button",
883
884
  {
884
885
  ref: d,
@@ -898,8 +899,8 @@ const A = i.forwardRef(({ className: e, dataHook: t, icon: r, shortcut: o, child
898
899
  ]
899
900
  }
900
901
  ));
901
- A.displayName = "SidebarPopoverMenuItem";
902
- const pa = i.forwardRef(
902
+ E.displayName = "SidebarPopoverMenuItem";
903
+ const ba = i.forwardRef(
903
904
  ({
904
905
  className: e,
905
906
  dataHook: t = "sidebar-popover-menu",
@@ -922,7 +923,7 @@ const pa = i.forwardRef(
922
923
  /* @__PURE__ */ c("div", { className: "flex flex-col items-start p-1", children: [
923
924
  r && /* @__PURE__ */ a("div", { className: "flex w-full items-center px-2 py-1.5", children: /* @__PURE__ */ a("span", { className: "text-muted-foreground flex-1 text-xs font-medium", children: r }) }),
924
925
  o?.map((b, f) => /* @__PURE__ */ a(
925
- A,
926
+ E,
926
927
  {
927
928
  icon: b.icon,
928
929
  shortcut: b.shortcut,
@@ -933,11 +934,11 @@ const pa = i.forwardRef(
933
934
  ))
934
935
  ] }),
935
936
  d && /* @__PURE__ */ c(M, { children: [
936
- /* @__PURE__ */ a(T, {}),
937
+ /* @__PURE__ */ a(P, {}),
937
938
  /* @__PURE__ */ a("div", { className: "flex flex-col items-start p-1", children: /* @__PURE__ */ a(
938
- A,
939
+ E,
939
940
  {
940
- icon: n || /* @__PURE__ */ a(_, { size: 16 }),
941
+ icon: n || /* @__PURE__ */ a(O, { size: 16 }),
941
942
  onClick: d,
942
943
  children: s ?? "Add team"
943
944
  }
@@ -947,8 +948,8 @@ const pa = i.forwardRef(
947
948
  }
948
949
  )
949
950
  );
950
- pa.displayName = "SidebarPopoverMenu";
951
- function fa({
951
+ ba.displayName = "SidebarPopoverMenu";
952
+ function pa({
952
953
  dataHook: e = "sidebar-switcher",
953
954
  icon: t,
954
955
  label: r,
@@ -958,7 +959,7 @@ function fa({
958
959
  }) {
959
960
  return /* @__PURE__ */ c(ne, { children: [
960
961
  /* @__PURE__ */ a(ie, { asChild: !0, children: /* @__PURE__ */ a(
961
- U,
962
+ K,
962
963
  {
963
964
  className: s,
964
965
  dataHook: `${e}-trigger`,
@@ -980,8 +981,8 @@ function fa({
980
981
  )
981
982
  ] });
982
983
  }
983
- fa.displayName = "SidebarSwitcher";
984
- function ma({
984
+ pa.displayName = "SidebarSwitcher";
985
+ function fa({
985
986
  dataHook: e = "sidebar-account-dropdown",
986
987
  name: t,
987
988
  email: r,
@@ -994,7 +995,7 @@ function ma({
994
995
  }) {
995
996
  return /* @__PURE__ */ c(ee, { children: [
996
997
  /* @__PURE__ */ a(ae, { asChild: !0, children: /* @__PURE__ */ c(
997
- z,
998
+ T,
998
999
  {
999
1000
  "aria-label": n ?? "Account menu",
1000
1001
  className: "h-auto py-1.5",
@@ -1005,7 +1006,8 @@ function ma({
1005
1006
  /* @__PURE__ */ c("div", { className: "flex min-w-0 flex-1 flex-col gap-0.5 leading-none", children: [
1006
1007
  /* @__PURE__ */ a("span", { className: "truncate text-sm font-semibold", children: t }),
1007
1008
  /* @__PURE__ */ a("span", { className: "truncate text-xs font-normal", children: r })
1008
- ] })
1009
+ ] }),
1010
+ /* @__PURE__ */ a(F, { className: "shrink-0" })
1009
1011
  ]
1010
1012
  }
1011
1013
  ) }),
@@ -1037,8 +1039,8 @@ function ma({
1037
1039
  )
1038
1040
  ] });
1039
1041
  }
1040
- ma.displayName = "SidebarAccountDropdown";
1041
- const ha = i.forwardRef(
1042
+ fa.displayName = "SidebarAccountDropdown";
1043
+ const ma = i.forwardRef(
1042
1044
  ({
1043
1045
  className: e,
1044
1046
  dataHook: t,
@@ -1071,52 +1073,52 @@ const ha = i.forwardRef(
1071
1073
  }
1072
1074
  )
1073
1075
  );
1074
- ha.displayName = "SidebarInboxItem";
1076
+ ma.displayName = "SidebarInboxItem";
1075
1077
  export {
1076
- He as Sidebar,
1077
- ma as SidebarAccountDropdown,
1078
- ea as SidebarCollapseIcon,
1079
- Oe as SidebarCollapseIconType,
1078
+ Fe as Sidebar,
1079
+ fa as SidebarAccountDropdown,
1080
+ Qe as SidebarCollapseIcon,
1081
+ _e as SidebarCollapseIconType,
1080
1082
  Ce as SidebarCollapsible,
1081
- qe as SidebarContent,
1082
- ua as SidebarDrawer,
1083
- Ke as SidebarFooter,
1084
- Xe as SidebarGroup,
1085
- Ze as SidebarGroupAction,
1086
- Je as SidebarGroupContent,
1087
- Ye as SidebarGroupLabel,
1083
+ We as SidebarContent,
1084
+ ca as SidebarDrawer,
1085
+ $e as SidebarFooter,
1086
+ qe as SidebarGroup,
1087
+ Ye as SidebarGroupAction,
1088
+ Ze as SidebarGroupContent,
1089
+ Ve as SidebarGroupLabel,
1088
1090
  Re as SidebarGroupLabelSize,
1089
1091
  Me as SidebarGroupLabelVariant,
1090
1092
  Ue as SidebarHeader,
1091
- ba as SidebarHeaderButton,
1092
- ha as SidebarInboxItem,
1093
+ ua as SidebarHeaderButton,
1094
+ ma as SidebarInboxItem,
1093
1095
  Ge as SidebarInput,
1094
1096
  je as SidebarInset,
1095
- Qe as SidebarMenu,
1096
- ta as SidebarMenuAction,
1097
- ra as SidebarMenuBadge,
1098
- z as SidebarMenuButton,
1097
+ Je as SidebarMenu,
1098
+ aa as SidebarMenuAction,
1099
+ ta as SidebarMenuBadge,
1100
+ T as SidebarMenuButton,
1099
1101
  De as SidebarMenuButtonSize,
1100
1102
  Ie as SidebarMenuButtonVariant,
1101
- da as SidebarMenuCollapsible,
1102
- ca as SidebarMenuCollapsibleContent,
1103
- la as SidebarMenuCollapsibleTrigger,
1104
- j as SidebarMenuItem,
1105
- oa as SidebarMenuSkeleton,
1106
- G as SidebarMenuSub,
1107
- ia as SidebarMenuSubButton,
1108
- Ae as SidebarMenuSubButtonSize,
1109
- na as SidebarMenuSubItem,
1110
- Ee as SidebarMenuSubVariant,
1111
- pa as SidebarPopoverMenu,
1112
- A as SidebarPopoverMenuItem,
1113
- U as SidebarPopoverTrigger,
1114
- Fe as SidebarProvider,
1115
- $e as SidebarRail,
1116
- We as SidebarSeparator,
1103
+ ia as SidebarMenuCollapsible,
1104
+ la as SidebarMenuCollapsibleContent,
1105
+ da as SidebarMenuCollapsibleTrigger,
1106
+ U as SidebarMenuItem,
1107
+ ra as SidebarMenuSkeleton,
1108
+ $ as SidebarMenuSub,
1109
+ na as SidebarMenuSubButton,
1110
+ Ee as SidebarMenuSubButtonSize,
1111
+ sa as SidebarMenuSubItem,
1112
+ Ae as SidebarMenuSubVariant,
1113
+ ba as SidebarPopoverMenu,
1114
+ E as SidebarPopoverMenuItem,
1115
+ K as SidebarPopoverTrigger,
1116
+ Be as SidebarProvider,
1117
+ He as SidebarRail,
1118
+ Ke as SidebarSeparator,
1117
1119
  ye as SidebarSide,
1118
- fa as SidebarSwitcher,
1119
- $ as SidebarTrigger,
1120
+ pa as SidebarSwitcher,
1121
+ G as SidebarTrigger,
1120
1122
  Se as SidebarVariant,
1121
1123
  k as useSidebar
1122
1124
  };