@brightlocal/ui-components 2.10.0 → 2.12.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 (163) hide show
  1. package/README.md +3 -1
  2. package/component-meta.json +200 -17
  3. package/dist/badge.cjs +1 -1
  4. package/dist/badge.d.ts.map +1 -1
  5. package/dist/badge.js +42 -25
  6. package/dist/blocks/data-table.cjs +1 -1
  7. package/dist/blocks/data-table.d.ts +16 -4
  8. package/dist/blocks/data-table.d.ts.map +1 -1
  9. package/dist/blocks/data-table.js +57 -53
  10. package/dist/blocks/input-list.cjs +2 -2
  11. package/dist/blocks/input-list.d.ts +7 -1
  12. package/dist/blocks/input-list.d.ts.map +1 -1
  13. package/dist/blocks/input-list.js +82 -81
  14. package/dist/blocks/sidebar.cjs +1 -1
  15. package/dist/blocks/sidebar.d.ts +19 -10
  16. package/dist/blocks/sidebar.d.ts.map +1 -1
  17. package/dist/blocks/sidebar.js +173 -169
  18. package/dist/breadcrumb.cjs +1 -1
  19. package/dist/breadcrumb.d.ts +14 -2
  20. package/dist/breadcrumb.d.ts.map +1 -1
  21. package/dist/breadcrumb.js +37 -37
  22. package/dist/button.cjs +1 -1
  23. package/dist/button.js +25 -25
  24. package/dist/callout.cjs +1 -1
  25. package/dist/callout.d.ts +3 -3
  26. package/dist/callout.d.ts.map +1 -1
  27. package/dist/callout.js +2 -1
  28. package/dist/card.cjs +1 -1
  29. package/dist/card.d.ts +10 -1
  30. package/dist/card.d.ts.map +1 -1
  31. package/dist/card.js +85 -82
  32. package/dist/carousel.cjs +1 -1
  33. package/dist/carousel.d.ts +37 -4
  34. package/dist/carousel.d.ts.map +1 -1
  35. package/dist/carousel.js +213 -163
  36. package/dist/chip.cjs +1 -1
  37. package/dist/chip.d.ts +11 -0
  38. package/dist/chip.d.ts.map +1 -1
  39. package/dist/chip.js +43 -38
  40. package/dist/combobox.cjs +3 -3
  41. package/dist/combobox.d.ts +12 -2
  42. package/dist/combobox.d.ts.map +1 -1
  43. package/dist/combobox.js +235 -230
  44. package/dist/command.cjs +1 -1
  45. package/dist/command.d.ts +106 -1
  46. package/dist/command.d.ts.map +1 -1
  47. package/dist/command.js +385 -120
  48. package/dist/date-picker.cjs +1 -1
  49. package/dist/date-picker.d.ts +10 -0
  50. package/dist/date-picker.d.ts.map +1 -1
  51. package/dist/date-picker.js +96 -96
  52. package/dist/dialog.cjs +1 -1
  53. package/dist/dialog.d.ts +7 -2
  54. package/dist/dialog.d.ts.map +1 -1
  55. package/dist/dialog.js +38 -30
  56. package/dist/drawer.d.ts +2 -2
  57. package/dist/global-layout.cjs +1 -1
  58. package/dist/global-layout.d.ts +5 -0
  59. package/dist/global-layout.d.ts.map +1 -1
  60. package/dist/global-layout.js +15 -7
  61. package/dist/hooks/use-breakpoint.cjs +1 -1
  62. package/dist/hooks/use-breakpoint.d.ts.map +1 -1
  63. package/dist/hooks/use-breakpoint.js +10 -10
  64. package/dist/index.cjs +1 -1
  65. package/dist/index.d.ts +1 -0
  66. package/dist/index.d.ts.map +1 -1
  67. package/dist/index.js +406 -395
  68. package/dist/input-chip.cjs +1 -1
  69. package/dist/input-chip.d.ts +8 -5
  70. package/dist/input-chip.d.ts.map +1 -1
  71. package/dist/input-chip.js +164 -170
  72. package/dist/input-group.d.ts +1 -1
  73. package/dist/input-password.cjs +1 -1
  74. package/dist/input-password.d.ts +10 -0
  75. package/dist/input-password.d.ts.map +1 -1
  76. package/dist/input-password.js +108 -106
  77. package/dist/link.cjs +1 -1
  78. package/dist/link.d.ts +1 -1
  79. package/dist/link.d.ts.map +1 -1
  80. package/dist/link.js +36 -37
  81. package/dist/list.d.ts +1 -1
  82. package/dist/logo.cjs +1 -1
  83. package/dist/logo.d.ts +6 -1
  84. package/dist/logo.d.ts.map +1 -1
  85. package/dist/logo.js +25 -22
  86. package/dist/map.cjs +1 -0
  87. package/dist/map.d.ts +207 -0
  88. package/dist/map.d.ts.map +1 -0
  89. package/dist/map.js +256 -0
  90. package/dist/pagination.cjs +1 -1
  91. package/dist/pagination.d.ts +29 -3
  92. package/dist/pagination.d.ts.map +1 -1
  93. package/dist/pagination.js +26 -25
  94. package/dist/rating.cjs +1 -1
  95. package/dist/rating.d.ts +6 -0
  96. package/dist/rating.d.ts.map +1 -1
  97. package/dist/rating.js +27 -19
  98. package/dist/resizable.d.ts +1 -1
  99. package/dist/select.cjs +2 -2
  100. package/dist/select.d.ts +7 -1
  101. package/dist/select.d.ts.map +1 -1
  102. package/dist/select.js +52 -51
  103. package/dist/separator.cjs +1 -1
  104. package/dist/separator.d.ts +16 -4
  105. package/dist/separator.d.ts.map +1 -1
  106. package/dist/separator.js +38 -35
  107. package/dist/sheet.cjs +1 -1
  108. package/dist/sheet.d.ts +6 -1
  109. package/dist/sheet.d.ts.map +1 -1
  110. package/dist/sheet.js +42 -41
  111. package/dist/skeleton.cjs +1 -1
  112. package/dist/skeleton.d.ts +5 -0
  113. package/dist/skeleton.d.ts.map +1 -1
  114. package/dist/skeleton.js +13 -11
  115. package/dist/sonner.cjs +1 -1
  116. package/dist/sonner.d.ts.map +1 -1
  117. package/dist/sonner.js +32 -30
  118. package/dist/tabs.cjs +1 -1
  119. package/dist/tabs.d.ts +4 -0
  120. package/dist/tabs.d.ts.map +1 -1
  121. package/dist/tabs.js +101 -52
  122. package/dist/text-reveal-motion.cjs +1 -1
  123. package/dist/text-reveal-motion.d.ts +5 -0
  124. package/dist/text-reveal-motion.d.ts.map +1 -1
  125. package/dist/text-reveal-motion.js +111 -110
  126. package/dist/typography.cjs +1 -1
  127. package/dist/typography.d.ts +1 -2
  128. package/dist/typography.d.ts.map +1 -1
  129. package/dist/typography.js +49 -50
  130. package/package.json +4 -5
  131. package/src/blocks/data-table.tsx +26 -9
  132. package/src/blocks/input-list.tsx +12 -1
  133. package/src/blocks/sidebar.tsx +61 -44
  134. package/src/components/badge.tsx +22 -5
  135. package/src/components/breadcrumb.tsx +43 -26
  136. package/src/components/button.tsx +13 -13
  137. package/src/components/callout.tsx +5 -4
  138. package/src/components/card.tsx +35 -19
  139. package/src/components/carousel.tsx +134 -13
  140. package/src/components/chip.tsx +22 -2
  141. package/src/components/combobox.tsx +18 -3
  142. package/src/components/command.tsx +644 -17
  143. package/src/components/date-picker.tsx +17 -3
  144. package/src/components/dialog.tsx +17 -4
  145. package/src/components/drawer.tsx +2 -2
  146. package/src/components/global-layout.tsx +15 -2
  147. package/src/components/input-chip.tsx +114 -66
  148. package/src/components/input-password.tsx +73 -49
  149. package/src/components/link.tsx +29 -17
  150. package/src/components/logo.tsx +10 -2
  151. package/src/components/map.tsx +597 -0
  152. package/src/components/pagination.tsx +44 -11
  153. package/src/components/rating.tsx +20 -2
  154. package/src/components/select.tsx +9 -1
  155. package/src/components/separator.tsx +40 -25
  156. package/src/components/sheet.tsx +28 -20
  157. package/src/components/skeleton.tsx +13 -2
  158. package/src/components/sonner.tsx +9 -3
  159. package/src/components/tabs.tsx +118 -22
  160. package/src/components/text-reveal-motion.tsx +7 -1
  161. package/src/components/typography.tsx +6 -7
  162. package/src/hooks/use-breakpoint.ts +2 -3
  163. package/src/index.ts +1 -0
@@ -1,8 +1,8 @@
1
1
  import { jsx as r, jsxs as k } from "react/jsx-runtime";
2
- import * as s from "react";
2
+ import * as n from "react";
3
3
  import { Slot as N } from "@radix-ui/react-slot";
4
4
  import { cva as I } from "class-variance-authority";
5
- import { ChevronRight as M, Ellipsis as H, Minus as F, Plus as A, ChevronsUpDown as G, ChevronDown as O, Menu as K, PanelLeft as U } from "@brightlocal/icons";
5
+ import { ChevronRight as M, Ellipsis as H, Minus as F, Plus as E, ChevronsUpDown as G, ChevronDown as O, Menu as K, PanelLeft as U } from "@brightlocal/icons";
6
6
  import { cn as d } from "@brightlocal/ui-components/lib/utils";
7
7
  import { Button as j } from "../button.js";
8
8
  import { Input as $ } from "../input.js";
@@ -11,59 +11,59 @@ import { Sheet as X, SheetContent as q, SheetTitle as V, SheetDescription as Y }
11
11
  import { Accordion as Z, AccordionItem as J, AccordionContent as Q } from "../accordion.js";
12
12
  import * as ee from "@radix-ui/react-accordion";
13
13
  import { ScrollArea as ae } from "../scroll-area.js";
14
- import { Skeleton as E } from "../skeleton.js";
14
+ import { Skeleton as A } from "../skeleton.js";
15
15
  import { Tooltip as te, TooltipTrigger as re, TooltipContent as oe, TooltipProvider as ie } from "../tooltip.js";
16
16
  import { useIsBelowBreakpoint as se } from "../hooks/use-breakpoint.js";
17
- var ne = /* @__PURE__ */ ((e) => (e.LEFT = "left", e))(ne || {}), de = /* @__PURE__ */ ((e) => (e.SIDEBAR = "sidebar", e))(de || {}), le = /* @__PURE__ */ ((e) => (e.OFFCANVAS = "offcanvas", e.ICON = "icon", e.NONE = "none", e))(le || {}), ce = /* @__PURE__ */ ((e) => (e.DEFAULT = "default", e.SM = "sm", e.XS = "xs", e))(ce || {}), ue = /* @__PURE__ */ ((e) => (e.DEFAULT = "default", e.COLLAPSIBLE = "collapsible", e.ACTION = "action", e))(ue || {}), be = /* @__PURE__ */ ((e) => (e.SIMPLE = "simple", e.COLLAPSIBLE = "collapsible", e.DROPDOWN = "dropdown", e.TREE = "tree", e.BADGE = "badge", e.BIG_ICON = "bigIcon", e.CHECKBOX = "checkbox", e))(be || {}), pe = /* @__PURE__ */ ((e) => (e.DEFAULT = "default", e.SM = "sm", e.LG = "lg", e))(pe || {}), fe = /* @__PURE__ */ ((e) => (e.DEFAULT = "default", e.BORDER = "border", e.INDENT = "indent", e))(fe || {}), me = /* @__PURE__ */ ((e) => (e.SM = "sm", e.MD = "md", e))(me || {}), ge = /* @__PURE__ */ ((e) => (e.CARET = "caret", e.HORIZONTAL = "horizontal", e.VERTICAL = "vertical", e.UP_DOWN = "upDown", e.PLUS_MINUS = "plusMinus", e.DOTS = "dots", e))(ge || {});
18
- const he = "sidebar:state", ve = 3600 * 24 * 7, xe = "224px", we = "336px", ke = "48px", Ne = "b", T = s.createContext(null);
17
+ var ne = /* @__PURE__ */ ((e) => (e.LEFT = "left", e))(ne || {}), de = /* @__PURE__ */ ((e) => (e.SIDEBAR = "sidebar", e))(de || {}), le = /* @__PURE__ */ ((e) => (e.OFFCANVAS = "offcanvas", e.ICON = "icon", e.NONE = "none", e))(le || {}), ce = /* @__PURE__ */ ((e) => (e.DEFAULT = "default", e.SM = "sm", e.XS = "xs", e))(ce || {}), ue = /* @__PURE__ */ ((e) => (e.DEFAULT = "default", e.COLLAPSIBLE = "collapsible", e.ACTION = "action", e))(ue || {}), be = /* @__PURE__ */ ((e) => (e.SIMPLE = "simple", e.COLLAPSIBLE = "collapsible", e.DROPDOWN = "dropdown", e.BADGE = "badge", e.BIG_ICON = "bigIcon", e.CHECKBOX = "checkbox", e))(be || {}), pe = /* @__PURE__ */ ((e) => (e.DEFAULT = "default", e.SM = "sm", e.LG = "lg", e))(pe || {}), fe = /* @__PURE__ */ ((e) => (e.DEFAULT = "default", e.BORDER = "border", e.INDENT = "indent", e))(fe || {}), me = /* @__PURE__ */ ((e) => (e.SM = "sm", e.MD = "md", e))(me || {}), ge = /* @__PURE__ */ ((e) => (e.CARET = "caret", e.HORIZONTAL = "horizontal", e.VERTICAL = "vertical", e.UP_DOWN = "upDown", e.PLUS_MINUS = "plusMinus", e.DOTS = "dots", e))(ge || {});
18
+ const he = "sidebar:state", ve = 3600 * 24 * 7, xe = "224px", we = "336px", ke = "48px", Ne = "b", T = n.createContext(null);
19
19
  function S() {
20
- const e = s.useContext(T);
20
+ const e = n.useContext(T);
21
21
  if (!e)
22
22
  throw new Error("useSidebar must be used within a SidebarProvider.");
23
23
  return e;
24
24
  }
25
- const Se = s.forwardRef(
25
+ const Se = n.forwardRef(
26
26
  ({
27
27
  dataHook: e,
28
28
  trackingEl: a,
29
29
  trackingLabel: t,
30
30
  defaultOpen: o = !0,
31
31
  open: i,
32
- onOpenChange: n,
32
+ onOpenChange: s,
33
33
  className: l,
34
34
  style: c,
35
- children: x,
36
- ...g
37
- }, m) => {
38
- const u = se("lg"), [b, h] = s.useState(!1), [p, R] = s.useState(o), w = i ?? p, y = s.useCallback(
39
- (f) => {
40
- const v = typeof f == "function" ? f(w) : f;
41
- n ? n(v) : R(v), document.cookie = `${he}=${v}; path=/; max-age=${ve}`;
35
+ children: f,
36
+ ...m
37
+ }, h) => {
38
+ const u = se("lg"), [b, v] = n.useState(!1), [p, R] = n.useState(o), w = i ?? p, y = n.useCallback(
39
+ (g) => {
40
+ const x = typeof g == "function" ? g(w) : g;
41
+ s ? s(x) : R(x), document.cookie = `${he}=${x}; path=/; max-age=${ve}`;
42
42
  },
43
- [n, w]
44
- ), C = s.useCallback(() => u ? h((f) => !f) : y((f) => !f), [u, y, h]);
45
- s.useEffect(() => {
46
- const f = (v) => {
47
- v.key === Ne && (v.metaKey || v.ctrlKey) && (v.preventDefault(), C());
43
+ [s, w]
44
+ ), C = n.useCallback(() => u ? v((g) => !g) : y((g) => !g), [u, y, v]);
45
+ n.useEffect(() => {
46
+ const g = (x) => {
47
+ x.key === Ne && (x.metaKey || x.ctrlKey) && (x.preventDefault(), C());
48
48
  };
49
- return window.addEventListener("keydown", f), () => window.removeEventListener("keydown", f);
49
+ return window.addEventListener("keydown", g), () => window.removeEventListener("keydown", g);
50
50
  }, [C]);
51
- const D = w ? "expanded" : "collapsed", P = s.useMemo(
51
+ const D = w ? "expanded" : "collapsed", P = n.useMemo(
52
52
  () => ({
53
53
  state: D,
54
54
  open: w,
55
55
  setOpen: y,
56
56
  isMobile: u,
57
57
  openMobile: b,
58
- setOpenMobile: h,
58
+ setOpenMobile: v,
59
59
  toggleSidebar: C
60
60
  }),
61
- [D, w, y, u, b, h, C]
61
+ [D, w, y, u, b, v, C]
62
62
  );
63
63
  return /* @__PURE__ */ r(T.Provider, { value: P, children: /* @__PURE__ */ r(ie, { delayDuration: 0, children: /* @__PURE__ */ r(
64
64
  "div",
65
65
  {
66
- ref: m,
66
+ ref: h,
67
67
  className: d(
68
68
  "group/sidebar-wrapper flex min-h-svh w-full",
69
69
  l
@@ -77,49 +77,49 @@ const Se = s.forwardRef(
77
77
  "--sidebar-width-icon": ke,
78
78
  ...c
79
79
  },
80
- ...g,
81
- children: x
80
+ ...m,
81
+ children: f
82
82
  }
83
83
  ) }) });
84
84
  }
85
85
  );
86
86
  Se.displayName = "SidebarProvider";
87
- const ye = s.forwardRef(
87
+ const ye = n.forwardRef(
88
88
  ({
89
89
  dataHook: e,
90
90
  trackingEl: a,
91
91
  trackingLabel: t,
92
92
  side: o = "left",
93
93
  variant: i = "sidebar",
94
- collapsible: n = "offcanvas",
94
+ collapsible: s = "offcanvas",
95
95
  // eslint-disable-next-line @typescript-eslint/no-unused-vars -- accepted for backward compat
96
96
  embedded: l,
97
- mobileTitle: c = "Navigation",
98
- mobileDescription: x = "Main navigation menu",
99
- className: g,
100
- children: m,
97
+ mobileTitle: c,
98
+ mobileDescription: f,
99
+ className: m,
100
+ children: h,
101
101
  ...u
102
102
  }, b) => {
103
- const { isMobile: h, state: p, openMobile: R, setOpenMobile: w } = S();
104
- return n === "none" ? /* @__PURE__ */ r(
103
+ const { isMobile: v, state: p, openMobile: R, setOpenMobile: w } = S();
104
+ return s === "none" ? /* @__PURE__ */ r(
105
105
  "div",
106
106
  {
107
107
  ref: b,
108
108
  className: d(
109
- "text-sidebar-foreground flex h-full w-[var(--sidebar-width)] flex-col",
110
- g
109
+ "text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col",
110
+ m
111
111
  ),
112
112
  "data-hook": e,
113
113
  "data-slot": "sidebar",
114
114
  "data-tracking-el": a || "sidebar",
115
115
  "data-tracking-label": t,
116
116
  ...u,
117
- children: m
117
+ children: h
118
118
  }
119
- ) : h ? /* @__PURE__ */ r(X, { open: R, onOpenChange: w, children: /* @__PURE__ */ k(
119
+ ) : v ? /* @__PURE__ */ r(X, { open: R, onOpenChange: w, children: /* @__PURE__ */ k(
120
120
  q,
121
121
  {
122
- className: "bg-sidebar-background text-sidebar-foreground w-[var(--sidebar-width)] p-6",
122
+ className: "bg-sidebar-background text-sidebar-foreground w-(--sidebar-width) p-6",
123
123
  "data-hook": `${e}-mobile-content`,
124
124
  "data-mobile": "true",
125
125
  "data-sidebar": "sidebar",
@@ -128,9 +128,9 @@ const ye = s.forwardRef(
128
128
  "--sidebar-width": `min(${we}, calc(100vw - 40px))`
129
129
  },
130
130
  children: [
131
- /* @__PURE__ */ r(V, { className: "sr-only", children: c }),
132
- /* @__PURE__ */ r(Y, { className: "sr-only", children: x }),
133
- /* @__PURE__ */ r("div", { className: "flex h-full w-full flex-col", children: m })
131
+ /* @__PURE__ */ r(V, { className: "sr-only", children: c ?? "Navigation" }),
132
+ /* @__PURE__ */ r(Y, { className: "sr-only", children: f ?? "Main navigation menu" }),
133
+ /* @__PURE__ */ r("div", { className: "flex h-full w-full flex-col", children: h })
134
134
  ]
135
135
  }
136
136
  ) }) : /* @__PURE__ */ r(
@@ -139,12 +139,12 @@ const ye = s.forwardRef(
139
139
  ref: b,
140
140
  className: d(
141
141
  "group text-sidebar-foreground flex h-full shrink-0 flex-col overflow-hidden transition-[width] duration-200 ease-linear",
142
- p === "expanded" && "w-[var(--sidebar-width)]",
143
- n === "icon" && p === "collapsed" && "w-[var(--sidebar-width-icon)]",
144
- n === "offcanvas" && p === "collapsed" && "w-0",
145
- g
142
+ p === "expanded" && "w-(--sidebar-width)",
143
+ s === "icon" && p === "collapsed" && "w-(--sidebar-width-icon)",
144
+ s === "offcanvas" && p === "collapsed" && "w-0",
145
+ m
146
146
  ),
147
- "data-collapsible": p === "collapsed" ? n : "",
147
+ "data-collapsible": p === "collapsed" ? s : "",
148
148
  "data-hook": e,
149
149
  "data-side": o,
150
150
  "data-slot": "sidebar",
@@ -153,70 +153,77 @@ const ye = s.forwardRef(
153
153
  "data-tracking-label": t,
154
154
  "data-variant": i,
155
155
  ...u,
156
- children: m
156
+ children: h
157
157
  }
158
158
  );
159
159
  }
160
160
  );
161
161
  ye.displayName = "Sidebar";
162
- const z = s.forwardRef(
163
- ({ className: e, onClick: a, dataHook: t = "sidebar-trigger", children: o, ...i }, n) => {
164
- const { toggleSidebar: l } = S();
162
+ const L = n.forwardRef(
163
+ ({
164
+ className: e,
165
+ onClick: a,
166
+ dataHook: t = "sidebar-trigger",
167
+ toggleAriaLabel: o,
168
+ children: i,
169
+ ...s
170
+ }, l) => {
171
+ const { toggleSidebar: c } = S(), f = o ?? "Toggle Sidebar";
165
172
  return /* @__PURE__ */ k(
166
173
  j,
167
174
  {
168
- ref: n,
175
+ ref: l,
169
176
  iconOnly: !0,
170
- "aria-label": "Toggle Sidebar",
177
+ "aria-label": f,
171
178
  className: d("h-7 w-7", e),
172
179
  "data-slot": "sidebar-trigger",
173
180
  dataHook: t,
174
181
  size: "sm",
175
182
  variant: "ghost",
176
- onClick: (c) => {
177
- a?.(c), l();
183
+ onClick: (m) => {
184
+ a?.(m), c();
178
185
  },
179
- ...i,
186
+ ...s,
180
187
  children: [
181
- o || /* @__PURE__ */ r(U, {}),
182
- /* @__PURE__ */ r("span", { className: "sr-only", children: "Toggle Sidebar" })
188
+ i || /* @__PURE__ */ r(U, {}),
189
+ /* @__PURE__ */ r("span", { className: "sr-only", children: f })
183
190
  ]
184
191
  }
185
192
  );
186
193
  }
187
194
  );
188
- z.displayName = "SidebarTrigger";
189
- const Ce = s.forwardRef(
190
- ({ className: e, ...a }, t) => {
191
- const { toggleSidebar: o } = S();
195
+ L.displayName = "SidebarTrigger";
196
+ const Ce = n.forwardRef(
197
+ ({ className: e, toggleAriaLabel: a, ...t }, o) => {
198
+ const { toggleSidebar: i } = S(), s = a ?? "Toggle Sidebar";
192
199
  return /* @__PURE__ */ r(
193
200
  "button",
194
201
  {
195
- ref: t,
196
- "aria-label": "Toggle Sidebar",
202
+ ref: o,
203
+ "aria-label": s,
197
204
  className: d(
198
- "hover:after:bg-sidebar-border absolute inset-y-0 -right-4 z-20 hidden w-4 -translate-x-1/2 transition-transform ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] sm:flex",
205
+ "hover:after:bg-sidebar-border absolute inset-y-0 -right-4 z-20 hidden w-4 -translate-x-1/2 transition-transform ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-0.5 sm:flex",
199
206
  "cursor-w-resize",
200
- "[[data-state=collapsed]_&]:cursor-e-resize",
207
+ "in-data-[state=collapsed]:cursor-e-resize",
201
208
  "group-data-[collapsible=offcanvas]:hover:bg-sidebar-background group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full",
202
- "[[data-collapsible=offcanvas]_&]:-right-2",
209
+ "in-data-[collapsible=offcanvas]:-right-2",
203
210
  e
204
211
  ),
205
212
  "data-slot": "sidebar-rail",
206
213
  tabIndex: -1,
207
- title: "Toggle Sidebar",
208
- onClick: o,
209
- ...a
214
+ title: s,
215
+ onClick: i,
216
+ ...t
210
217
  }
211
218
  );
212
219
  }
213
220
  );
214
221
  Ce.displayName = "SidebarRail";
215
- const Re = s.forwardRef(
216
- ({ className: e, dataHook: a, trackingEl: t, trackingLabel: o, ...i }, n) => /* @__PURE__ */ r(
222
+ const Re = n.forwardRef(
223
+ ({ className: e, dataHook: a, trackingEl: t, trackingLabel: o, ...i }, s) => /* @__PURE__ */ r(
217
224
  "main",
218
225
  {
219
- ref: n,
226
+ ref: s,
220
227
  className: d(
221
228
  "bg-background relative flex min-h-svh flex-1 flex-col",
222
229
  e
@@ -230,7 +237,7 @@ const Re = s.forwardRef(
230
237
  )
231
238
  );
232
239
  Re.displayName = "SidebarInset";
233
- const Me = s.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ r(
240
+ const Me = n.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ r(
234
241
  $,
235
242
  {
236
243
  ref: t,
@@ -244,9 +251,9 @@ const Me = s.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ r(
244
251
  }
245
252
  ));
246
253
  Me.displayName = "SidebarInput";
247
- const Ie = s.forwardRef(
254
+ const Ie = n.forwardRef(
248
255
  ({ className: e, dataHook: a, ...t }, o) => /* @__PURE__ */ r(
249
- "div",
256
+ "header",
250
257
  {
251
258
  ref: o,
252
259
  className: d(
@@ -260,9 +267,9 @@ const Ie = s.forwardRef(
260
267
  )
261
268
  );
262
269
  Ie.displayName = "SidebarHeader";
263
- const De = s.forwardRef(
270
+ const De = n.forwardRef(
264
271
  ({ className: e, dataHook: a, ...t }, o) => /* @__PURE__ */ r(
265
- "div",
272
+ "footer",
266
273
  {
267
274
  ref: o,
268
275
  className: d("flex flex-col gap-2 p-2", e),
@@ -273,28 +280,28 @@ const De = s.forwardRef(
273
280
  )
274
281
  );
275
282
  De.displayName = "SidebarFooter";
276
- const Ee = s.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ r(
283
+ const Ae = n.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ r(
277
284
  W,
278
285
  {
279
286
  ref: t,
280
287
  className: d(
281
- "bg-sidebar-border mx-2 my-2 w-auto group-data-[collapsible=icon]:mx-0",
288
+ "bg-sidebar-border mx-2 my-5 w-auto group-data-[collapsible=icon]:mx-0",
282
289
  e
283
290
  ),
284
291
  "data-slot": "sidebar-separator",
285
292
  ...a
286
293
  }
287
294
  ));
288
- Ee.displayName = "SidebarSeparator";
289
- const Ae = s.forwardRef(
290
- ({ className: e, dataHook: a, ariaLabel: t = "Sidebar", children: o, ...i }, n) => {
295
+ Ae.displayName = "SidebarSeparator";
296
+ const Ee = n.forwardRef(
297
+ ({ className: e, dataHook: a, ariaLabel: t = "Sidebar", children: o, ...i }, s) => {
291
298
  const { isMobile: l } = S();
292
299
  return /* @__PURE__ */ r(
293
300
  ae,
294
301
  {
295
- ref: n,
302
+ ref: s,
296
303
  className: d(
297
- "min-h-0 flex-1 group-data-[collapsible=icon]:overflow-hidden [&>[data-slot=scroll-area-viewport]]:p-0",
304
+ "min-h-0 flex-1 group-data-[collapsible=icon]:overflow-hidden *:data-[slot=scroll-area-viewport]:p-0 [&_[data-slot=scroll-area-viewport]>div]:block!",
298
305
  e
299
306
  ),
300
307
  dataHook: a ?? "sidebar-content-scroll",
@@ -313,8 +320,8 @@ const Ae = s.forwardRef(
313
320
  );
314
321
  }
315
322
  );
316
- Ae.displayName = "SidebarContent";
317
- const Oe = s.forwardRef(
323
+ Ee.displayName = "SidebarContent";
324
+ const Oe = n.forwardRef(
318
325
  ({ className: e, dataHook: a, ...t }, o) => /* @__PURE__ */ r(
319
326
  "div",
320
327
  {
@@ -347,28 +354,28 @@ const Te = I(
347
354
  variant: "default"
348
355
  }
349
356
  }
350
- ), ze = s.forwardRef(
357
+ ), Le = n.forwardRef(
351
358
  ({
352
359
  className: e,
353
360
  dataHook: a,
354
361
  asChild: t = !1,
355
362
  size: o = "sm",
356
363
  variant: i = "default",
357
- isOpen: n = !1,
364
+ isOpen: s = !1,
358
365
  onToggle: l,
359
366
  onAction: c,
360
- children: x,
361
- ...g
362
- }, m) => {
367
+ children: f,
368
+ ...m
369
+ }, h) => {
363
370
  const u = t ? N : "div", b = () => {
364
371
  i === "collapsible" && l ? l() : i === "action" && c && c();
365
- }, h = (p) => {
372
+ }, v = (p) => {
366
373
  (p.key === "Enter" || p.key === " ") && (p.preventDefault(), b());
367
374
  };
368
375
  return /* @__PURE__ */ k(
369
376
  u,
370
377
  {
371
- ref: m,
378
+ ref: h,
372
379
  className: d(Te({ size: o, variant: i }), e),
373
380
  "data-hook": a,
374
381
  "data-slot": "sidebar-group-label",
@@ -376,28 +383,28 @@ const Te = I(
376
383
  role: i !== "default" ? "button" : void 0,
377
384
  tabIndex: i !== "default" ? 0 : void 0,
378
385
  onClick: i !== "default" ? b : void 0,
379
- onKeyDown: i !== "default" ? h : void 0,
380
- ...g,
386
+ onKeyDown: i !== "default" ? v : void 0,
387
+ ...m,
381
388
  children: [
382
- /* @__PURE__ */ r("span", { children: x }),
389
+ /* @__PURE__ */ r("span", { children: f }),
383
390
  i === "collapsible" && /* @__PURE__ */ r(
384
391
  O,
385
392
  {
386
393
  className: d(
387
394
  "shrink-0 transition-transform duration-200",
388
- n && "rotate-180"
395
+ s && "rotate-180"
389
396
  ),
390
397
  size: 16
391
398
  }
392
399
  ),
393
- i === "action" && /* @__PURE__ */ r(A, { className: "shrink-0", size: 16 })
400
+ i === "action" && /* @__PURE__ */ r(E, { className: "shrink-0", size: 16 })
394
401
  ]
395
402
  }
396
403
  );
397
404
  }
398
405
  );
399
- ze.displayName = "SidebarGroupLabel";
400
- const _e = s.forwardRef(({ className: e, asChild: a = !1, ...t }, o) => /* @__PURE__ */ r(
406
+ Le.displayName = "SidebarGroupLabel";
407
+ const ze = n.forwardRef(({ className: e, asChild: a = !1, ...t }, o) => /* @__PURE__ */ r(
401
408
  a ? N : "button",
402
409
  {
403
410
  ref: o,
@@ -412,8 +419,8 @@ const _e = s.forwardRef(({ className: e, asChild: a = !1, ...t }, o) => /* @__PU
412
419
  ...t
413
420
  }
414
421
  ));
415
- _e.displayName = "SidebarGroupAction";
416
- const Le = s.forwardRef(({ className: e, dataHook: a, ...t }, o) => /* @__PURE__ */ r(
422
+ ze.displayName = "SidebarGroupAction";
423
+ const _e = n.forwardRef(({ className: e, dataHook: a, ...t }, o) => /* @__PURE__ */ r(
417
424
  "div",
418
425
  {
419
426
  ref: o,
@@ -423,8 +430,8 @@ const Le = s.forwardRef(({ className: e, dataHook: a, ...t }, o) => /* @__PURE__
423
430
  ...t
424
431
  }
425
432
  ));
426
- Le.displayName = "SidebarGroupContent";
427
- const Be = s.forwardRef(
433
+ _e.displayName = "SidebarGroupContent";
434
+ const Be = n.forwardRef(
428
435
  ({ className: e, dataHook: a, ...t }, o) => /* @__PURE__ */ r(
429
436
  "ul",
430
437
  {
@@ -437,7 +444,7 @@ const Be = s.forwardRef(
437
444
  )
438
445
  );
439
446
  Be.displayName = "SidebarMenu";
440
- const _ = s.forwardRef(
447
+ const z = n.forwardRef(
441
448
  ({ className: e, dataHook: a, ...t }, o) => /* @__PURE__ */ r(
442
449
  "li",
443
450
  {
@@ -449,15 +456,15 @@ const _ = s.forwardRef(
449
456
  }
450
457
  )
451
458
  );
452
- _.displayName = "SidebarMenuItem";
453
- const Pe = s.forwardRef(
459
+ z.displayName = "SidebarMenuItem";
460
+ const Pe = n.forwardRef(
454
461
  ({
455
462
  type: e = "caret",
456
463
  isActive: a = !1,
457
464
  className: t,
458
465
  ...o
459
466
  }, i) => {
460
- const n = {
467
+ const s = {
461
468
  ref: i,
462
469
  className: d(
463
470
  "shrink-0 transition-transform",
@@ -469,23 +476,23 @@ const Pe = s.forwardRef(
469
476
  };
470
477
  switch (e) {
471
478
  case "horizontal":
472
- return /* @__PURE__ */ r(M, { ...n });
479
+ return /* @__PURE__ */ r(M, { ...s });
473
480
  case "vertical":
474
- return /* @__PURE__ */ r(O, { ...n });
481
+ return /* @__PURE__ */ r(O, { ...s });
475
482
  case "upDown":
476
- return /* @__PURE__ */ r(G, { ...n });
483
+ return /* @__PURE__ */ r(G, { ...s });
477
484
  case "plusMinus":
478
- return a ? /* @__PURE__ */ r(F, { ...n }) : /* @__PURE__ */ r(A, { ...n });
485
+ return a ? /* @__PURE__ */ r(F, { ...s }) : /* @__PURE__ */ r(E, { ...s });
479
486
  case "dots":
480
- return /* @__PURE__ */ r(H, { ...n });
487
+ return /* @__PURE__ */ r(H, { ...s });
481
488
  default:
482
- return /* @__PURE__ */ r(M, { ...n });
489
+ return /* @__PURE__ */ r(M, { ...s });
483
490
  }
484
491
  }
485
492
  );
486
493
  Pe.displayName = "SidebarCollapseIcon";
487
494
  const He = I(
488
- "peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-full px-6 py-2 text-left text-sm font-medium outline-none ring-sidebar-ring transition-[color,background-color,border-color,box-shadow,opacity,width,height,padding] duration-150 ease-in-out hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 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:last-child]: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",
495
+ "peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-full px-6 py-2 text-left text-sm font-medium outline-none ring-sidebar-ring transition-[color,background-color,border-color,box-shadow,opacity,width,height,padding] duration-150 ease-in-out hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 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:last-of-type]: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",
489
496
  {
490
497
  variants: {
491
498
  variant: {
@@ -495,14 +502,12 @@ const He = I(
495
502
  collapsible: "[&>[data-collapse-icon]]:ml-auto [&>[data-collapse-icon]]:transition-transform data-[state=open]:[&>[data-collapse-icon]]:rotate-90",
496
503
  // Dropdown - has action menu (dots) on hover
497
504
  dropdown: "group-has-[[data-sidebar=menu-action]]/menu-item:pr-8",
498
- // Tree - has a chevron for tree navigation
499
- tree: "[&>[data-tree-icon]]:size-4 [&>[data-tree-icon]]:shrink-0 [&>[data-tree-icon]]:opacity-70 [&>[data-tree-icon]]:transition-transform data-[state=open]:[&>[data-tree-icon]]:rotate-90 group-data-[collapsible=icon]:[&>[data-tree-icon]]:hidden",
500
505
  // Badge - has a number badge on the right (handled via SidebarMenuBadge)
501
506
  badge: "group-has-[[data-sidebar=menu-badge]]/menu-item:pr-16",
502
507
  // Big Icon - larger icon with title and subtitle
503
508
  bigIcon: "h-auto flex-col items-start gap-1 rounded-lg p-3 [&>svg]:size-6 [&>svg]:rounded-md [&>svg]:bg-sidebar-foreground [&>svg]:p-1 [&>svg]:text-sidebar-background [&>svg]:opacity-100 hover:[&>svg]:bg-sidebar-foreground hover:[&>svg]:text-sidebar-background group-data-[collapsible=icon]:!size-10 group-data-[collapsible=icon]:!p-2 group-data-[collapsible=icon]:items-center group-data-[collapsible=icon]:[&>svg]:size-6",
504
509
  // Checkbox - has a checkbox indicator
505
- checkbox: "[&>[data-checkbox]]:size-4 [&>[data-checkbox]]:shrink-0 [&>[data-checkbox]]:rounded [&>[data-checkbox]]:border [&>[data-checkbox]]:border-sidebar-foreground/30 data-[checked=true]:[&>[data-checkbox]]:bg-primary data-[checked=true]:[&>[data-checkbox]]:border-primary data-[checked=true]:[&>[data-checkbox]]:text-primary-foreground"
510
+ checkbox: "px-3 [&>[data-checkbox]]:size-4 [&>[data-checkbox]]:shrink-0 [&>[data-checkbox]]:rounded [&>[data-checkbox]]:border [&>[data-checkbox]]:border-sidebar-foreground/30 data-[checked=true]:[&>[data-checkbox]]:bg-primary data-[checked=true]:[&>[data-checkbox]]:border-primary data-[checked=true]:[&>[data-checkbox]]:text-primary-foreground"
506
511
  },
507
512
  size: {
508
513
  default: "h-12 text-sm/4",
@@ -515,22 +520,22 @@ const He = I(
515
520
  size: "default"
516
521
  }
517
522
  }
518
- ), L = s.forwardRef(
523
+ ), _ = n.forwardRef(
519
524
  ({
520
525
  asChild: e = !1,
521
526
  isActive: a = !1,
522
527
  variant: t = "simple",
523
528
  size: o = "default",
524
529
  tooltip: i,
525
- className: n,
530
+ className: s,
526
531
  dataHook: l,
527
532
  ...c
528
- }, x) => {
529
- const g = e ? N : "button", { isMobile: m, state: u } = S(), b = /* @__PURE__ */ r(
530
- g,
533
+ }, f) => {
534
+ const m = e ? N : "button", { isMobile: h, state: u } = S(), b = /* @__PURE__ */ r(
535
+ m,
531
536
  {
532
- ref: x,
533
- className: d(He({ variant: t, size: o }), n),
537
+ ref: f,
538
+ className: d(He({ variant: t, size: o }), s),
534
539
  "data-active": a,
535
540
  "data-hook": l,
536
541
  "data-size": o,
@@ -554,7 +559,7 @@ const He = I(
554
559
  "bg-foreground text-background border-none",
555
560
  i.className
556
561
  ),
557
- hidden: u !== "collapsed" || m,
562
+ hidden: u !== "collapsed" || h,
558
563
  side: "right",
559
564
  sideOffset: 8
560
565
  }
@@ -562,8 +567,8 @@ const He = I(
562
567
  ] })) : b;
563
568
  }
564
569
  );
565
- L.displayName = "SidebarMenuButton";
566
- const Fe = s.forwardRef(({ className: e, asChild: a = !1, showOnHover: t = !1, ...o }, i) => /* @__PURE__ */ r(
570
+ _.displayName = "SidebarMenuButton";
571
+ const Fe = n.forwardRef(({ className: e, asChild: a = !1, showOnHover: t = !1, ...o }, i) => /* @__PURE__ */ r(
567
572
  a ? N : "button",
568
573
  {
569
574
  ref: i,
@@ -575,7 +580,6 @@ const Fe = s.forwardRef(({ className: e, asChild: a = !1, showOnHover: t = !1, .
575
580
  "peer-data-[size=default]/menu-button:top-1.5",
576
581
  "peer-data-[size=lg]/menu-button:top-2.5",
577
582
  "peer-data-[size=bigIcon]/menu-button:top-2.5",
578
- "peer-data-[size=tree]/menu-button:top-1.5",
579
583
  "group-data-[collapsible=icon]:hidden",
580
584
  t && "peer-data-[active=true]/menu-button:text-sidebar-accent-foreground group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 md:opacity-0",
581
585
  e
@@ -585,7 +589,7 @@ const Fe = s.forwardRef(({ className: e, asChild: a = !1, showOnHover: t = !1, .
585
589
  }
586
590
  ));
587
591
  Fe.displayName = "SidebarMenuAction";
588
- const Ge = s.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ r(
592
+ const Ge = n.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ r(
589
593
  "div",
590
594
  {
591
595
  ref: t,
@@ -600,8 +604,8 @@ const Ge = s.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ r(
600
604
  }
601
605
  ));
602
606
  Ge.displayName = "SidebarMenuBadge";
603
- const Ke = s.forwardRef(({ className: e, showIcon: a = !1, ...t }, o) => {
604
- const i = s.useId(), n = s.useMemo(() => {
607
+ const Ke = n.forwardRef(({ className: e, showIcon: a = !1, ...t }, o) => {
608
+ const i = n.useId(), s = n.useMemo(() => {
605
609
  let l = 0;
606
610
  for (let c = 0; c < i.length; c++)
607
611
  l = (l << 5) - l + i.charCodeAt(c), l |= 0;
@@ -616,19 +620,19 @@ const Ke = s.forwardRef(({ className: e, showIcon: a = !1, ...t }, o) => {
616
620
  ...t,
617
621
  children: [
618
622
  a && /* @__PURE__ */ r(
619
- E,
623
+ A,
620
624
  {
621
625
  className: "size-4 rounded-md",
622
626
  "data-slot": "sidebar-menu-skeleton-icon"
623
627
  }
624
628
  ),
625
629
  /* @__PURE__ */ r(
626
- E,
630
+ A,
627
631
  {
628
632
  className: "h-4 max-w-[--skeleton-width] flex-1",
629
633
  "data-slot": "sidebar-menu-skeleton-text",
630
634
  style: {
631
- "--skeleton-width": n
635
+ "--skeleton-width": s
632
636
  }
633
637
  }
634
638
  )
@@ -638,20 +642,20 @@ const Ke = s.forwardRef(({ className: e, showIcon: a = !1, ...t }, o) => {
638
642
  });
639
643
  Ke.displayName = "SidebarMenuSkeleton";
640
644
  const Ue = I(
641
- "mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 px-2.5 py-0.5 group-data-[collapsible=icon]:hidden",
645
+ "flex min-w-0 flex-col items-start gap-1 py-0.5 group-data-[collapsible=icon]:hidden",
642
646
  {
643
647
  variants: {
644
648
  variant: {
645
- default: "",
646
- border: "border-l border-sidebar-border",
647
- indent: "ml-0 border-l-0"
649
+ default: "px-10",
650
+ border: "border-l border-sidebar-border ml-10 pl-1 pr-10",
651
+ indent: "px-10"
648
652
  }
649
653
  },
650
654
  defaultVariants: {
651
655
  variant: "border"
652
656
  }
653
657
  }
654
- ), B = s.forwardRef(
658
+ ), B = n.forwardRef(
655
659
  ({ className: e, variant: a = "border", dataHook: t, ...o }, i) => /* @__PURE__ */ r(
656
660
  "ul",
657
661
  {
@@ -664,7 +668,7 @@ const Ue = I(
664
668
  )
665
669
  );
666
670
  B.displayName = "SidebarMenuSub";
667
- const je = s.forwardRef(({ dataHook: e, ...a }, t) => /* @__PURE__ */ r(
671
+ const je = n.forwardRef(({ dataHook: e, ...a }, t) => /* @__PURE__ */ r(
668
672
  "li",
669
673
  {
670
674
  ref: t,
@@ -674,20 +678,20 @@ const je = s.forwardRef(({ dataHook: e, ...a }, t) => /* @__PURE__ */ r(
674
678
  }
675
679
  ));
676
680
  je.displayName = "SidebarMenuSubItem";
677
- const $e = s.forwardRef(
681
+ const $e = n.forwardRef(
678
682
  ({
679
683
  asChild: e = !1,
680
684
  size: a = "md",
681
685
  isActive: t,
682
686
  className: o,
683
687
  dataHook: i,
684
- ...n
688
+ ...s
685
689
  }, l) => /* @__PURE__ */ r(
686
690
  e ? N : "a",
687
691
  {
688
692
  ref: l,
689
693
  className: d(
690
- "text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground [&>svg]:text-sidebar-foreground flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 transition-[color,background-color,box-shadow,opacity] duration-150 ease-in-out outline-none focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:shrink-0",
694
+ "text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground [&>svg]:text-sidebar-foreground flex h-7 min-w-0 items-center gap-2 overflow-hidden rounded-md px-2 transition-[color,background-color,box-shadow,opacity] duration-150 ease-in-out outline-none focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-of-type]:truncate [&>svg]:shrink-0",
691
695
  "data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",
692
696
  a === "sm" && "text-xs",
693
697
  a === "md" && "text-sm",
@@ -698,7 +702,7 @@ const $e = s.forwardRef(
698
702
  "data-hook": i,
699
703
  "data-size": a,
700
704
  "data-slot": "sidebar-menu-sub-button",
701
- ...n
705
+ ...s
702
706
  }
703
707
  )
704
708
  );
@@ -709,9 +713,9 @@ function We({
709
713
  children: t,
710
714
  defaultOpen: o,
711
715
  open: i,
712
- onOpenChange: n
716
+ onOpenChange: s
713
717
  }) {
714
- return /* @__PURE__ */ r(_, { children: /* @__PURE__ */ r(
718
+ return /* @__PURE__ */ r(z, { children: /* @__PURE__ */ r(
715
719
  Z,
716
720
  {
717
721
  collapsible: !0,
@@ -720,36 +724,36 @@ function We({
720
724
  defaultValue: o ? "item" : void 0,
721
725
  type: "single",
722
726
  value: i !== void 0 ? i ? "item" : "" : void 0,
723
- onValueChange: n ? (l) => n(l === "item") : void 0,
727
+ onValueChange: s ? (l) => s(l === "item") : void 0,
724
728
  children: /* @__PURE__ */ r(J, { className: "group/collapsible border-none", value: "item", children: t })
725
729
  }
726
730
  ) });
727
731
  }
728
732
  We.displayName = "SidebarMenuCollapsible";
729
- const Xe = s.forwardRef(({ children: e, className: a, ...t }, o) => /* @__PURE__ */ r(ee.Trigger, { asChild: !0, children: /* @__PURE__ */ k(
730
- L,
733
+ const Xe = n.forwardRef(({ children: e, className: a, ...t }, o) => /* @__PURE__ */ r(ee.Trigger, { asChild: !0, children: /* @__PURE__ */ k(
734
+ _,
731
735
  {
732
736
  ref: o,
733
- className: d("relative", a),
737
+ className: a,
734
738
  variant: "collapsible",
735
739
  ...t,
736
740
  children: [
741
+ e,
737
742
  /* @__PURE__ */ r(
738
743
  M,
739
744
  {
740
745
  "data-collapse-icon": !0,
741
- className: "absolute left-2.5 !opacity-100 transition-transform duration-200 ease-out group-data-[state=open]/collapsible:rotate-90",
746
+ className: "opacity-100! transition-transform duration-200 ease-out group-data-[collapsible=icon]:hidden",
742
747
  size: 12
743
748
  }
744
- ),
745
- e
749
+ )
746
750
  ]
747
751
  }
748
752
  ) }));
749
753
  Xe.displayName = "SidebarMenuCollapsibleTrigger";
750
- const qe = s.forwardRef(({ dataHook: e, children: a, ...t }, o) => /* @__PURE__ */ r(Q, { className: "p-0", children: /* @__PURE__ */ r(B, { ref: o, dataHook: e, ...t, children: a }) }));
754
+ const qe = n.forwardRef(({ dataHook: e, children: a, ...t }, o) => /* @__PURE__ */ r(Q, { className: "p-0", children: /* @__PURE__ */ r(B, { ref: o, dataHook: e, ...t, children: a }) }));
751
755
  qe.displayName = "SidebarMenuCollapsibleContent";
752
- const Ve = s.forwardRef(
756
+ const Ve = n.forwardRef(
753
757
  ({
754
758
  className: e,
755
759
  dataHook: a = "sidebar-drawer",
@@ -757,7 +761,7 @@ const Ve = s.forwardRef(
757
761
  trackingLabel: o,
758
762
  // eslint-disable-next-line @typescript-eslint/no-unused-vars -- accepted for backward compat
759
763
  children: i,
760
- ...n
764
+ ...s
761
765
  }, l) => /* @__PURE__ */ r(
762
766
  "div",
763
767
  {
@@ -767,8 +771,8 @@ const Ve = s.forwardRef(
767
771
  "data-slot": "sidebar-drawer",
768
772
  "data-tracking-el": t,
769
773
  "data-tracking-label": o,
770
- ...n,
771
- children: /* @__PURE__ */ r(z, { dataHook: `${a}-trigger`, children: /* @__PURE__ */ r(K, { size: 24 }) })
774
+ ...s,
775
+ children: /* @__PURE__ */ r(L, { dataHook: `${a}-trigger`, children: /* @__PURE__ */ r(K, { size: 24 }) })
772
776
  }
773
777
  )
774
778
  );
@@ -778,13 +782,13 @@ export {
778
782
  Pe as SidebarCollapseIcon,
779
783
  ge as SidebarCollapseIconType,
780
784
  le as SidebarCollapsible,
781
- Ae as SidebarContent,
785
+ Ee as SidebarContent,
782
786
  Ve as SidebarDrawer,
783
787
  De as SidebarFooter,
784
788
  Oe as SidebarGroup,
785
- _e as SidebarGroupAction,
786
- Le as SidebarGroupContent,
787
- ze as SidebarGroupLabel,
789
+ ze as SidebarGroupAction,
790
+ _e as SidebarGroupContent,
791
+ Le as SidebarGroupLabel,
788
792
  ce as SidebarGroupLabelSize,
789
793
  ue as SidebarGroupLabelVariant,
790
794
  Ie as SidebarHeader,
@@ -793,13 +797,13 @@ export {
793
797
  Be as SidebarMenu,
794
798
  Fe as SidebarMenuAction,
795
799
  Ge as SidebarMenuBadge,
796
- L as SidebarMenuButton,
800
+ _ as SidebarMenuButton,
797
801
  pe as SidebarMenuButtonSize,
798
802
  be as SidebarMenuButtonVariant,
799
803
  We as SidebarMenuCollapsible,
800
804
  qe as SidebarMenuCollapsibleContent,
801
805
  Xe as SidebarMenuCollapsibleTrigger,
802
- _ as SidebarMenuItem,
806
+ z as SidebarMenuItem,
803
807
  Ke as SidebarMenuSkeleton,
804
808
  B as SidebarMenuSub,
805
809
  $e as SidebarMenuSubButton,
@@ -808,9 +812,9 @@ export {
808
812
  fe as SidebarMenuSubVariant,
809
813
  Se as SidebarProvider,
810
814
  Ce as SidebarRail,
811
- Ee as SidebarSeparator,
815
+ Ae as SidebarSeparator,
812
816
  ne as SidebarSide,
813
- z as SidebarTrigger,
817
+ L as SidebarTrigger,
814
818
  de as SidebarVariant,
815
819
  S as useSidebar
816
820
  };