@brightlocal/ui-components 2.18.0 → 2.19.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.
- package/component-meta.json +4 -1
- package/dist/blocks/sidebar.cjs +1 -1
- package/dist/blocks/sidebar.d.ts +2 -0
- package/dist/blocks/sidebar.d.ts.map +1 -1
- package/dist/blocks/sidebar.js +426 -403
- package/dist/global-layout.cjs +1 -1
- package/dist/global-layout.d.ts.map +1 -1
- package/dist/global-layout.js +44 -42
- package/dist/logo.cjs +1 -1
- package/dist/logo.d.ts.map +1 -1
- package/dist/logo.js +44 -37
- package/dist/stepper.cjs +1 -1
- package/dist/stepper.d.ts +15 -13
- package/dist/stepper.d.ts.map +1 -1
- package/dist/stepper.js +84 -85
- package/package.json +1 -1
- package/src/blocks/sidebar.tsx +47 -7
- package/src/components/global-layout.tsx +3 -1
- package/src/components/logo.tsx +19 -25
- package/src/components/stepper.tsx +93 -80
package/dist/blocks/sidebar.js
CHANGED
|
@@ -1,72 +1,84 @@
|
|
|
1
|
-
import { jsx as a, jsxs as
|
|
1
|
+
import { jsx as a, jsxs as b, Fragment as D } from "react/jsx-runtime";
|
|
2
2
|
import * as i from "react";
|
|
3
|
+
import { createPortal as q } from "react-dom";
|
|
3
4
|
import { Slot as y } from "@radix-ui/react-slot";
|
|
4
|
-
import { cva as
|
|
5
|
-
import { ChevronRight as
|
|
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 z, Menu as Z, PanelLeft as J } from "@brightlocal/icons";
|
|
6
7
|
import { cn as l } from "@brightlocal/ui-components/lib/utils";
|
|
7
|
-
import { Button as
|
|
8
|
-
import { Input as
|
|
9
|
-
import { Separator as
|
|
10
|
-
import { DropdownMenu as
|
|
11
|
-
import { Popover as
|
|
12
|
-
import { Sheet as
|
|
13
|
-
import { Accordion as
|
|
14
|
-
import * as
|
|
15
|
-
import { ScrollArea as
|
|
16
|
-
import { Skeleton as
|
|
17
|
-
import { Tooltip as
|
|
18
|
-
import { useIsBelowBreakpoint as
|
|
19
|
-
const
|
|
20
|
-
var
|
|
21
|
-
const
|
|
22
|
-
function
|
|
23
|
-
const e = i.useContext(
|
|
8
|
+
import { Button as B } from "../button.js";
|
|
9
|
+
import { Input as Q } from "../input.js";
|
|
10
|
+
import { Separator as H } from "../separator.js";
|
|
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
|
+
import { Popover as ne, PopoverTrigger as ie, PopoverContent as de } from "../popover.js";
|
|
13
|
+
import { Sheet as le, SheetContent as ce, SheetTitle as ue, SheetDescription as be } from "../sheet.js";
|
|
14
|
+
import { Accordion as pe, AccordionItem as fe, AccordionContent as me } from "../accordion.js";
|
|
15
|
+
import * as he from "@radix-ui/react-accordion";
|
|
16
|
+
import { ScrollArea as ge } from "../scroll-area.js";
|
|
17
|
+
import { Skeleton as L } from "../skeleton.js";
|
|
18
|
+
import { Tooltip as xe, TooltipTrigger as ve, TooltipContent as we, TooltipProvider as Ne } from "../tooltip.js";
|
|
19
|
+
import { useIsBelowBreakpoint as ke } from "../hooks/use-breakpoint.js";
|
|
20
|
+
const w = "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 Se = /* @__PURE__ */ ((e) => (e.LEFT = "left", e))(Se || {}), ye = /* @__PURE__ */ ((e) => (e.SIDEBAR = "sidebar", e))(ye || {}), 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", ze = 3600 * 24 * 7, Pe = "224px", Te = "336px", Le = "48px", Be = "b", F = i.createContext(null);
|
|
23
|
+
function k() {
|
|
24
|
+
const e = i.useContext(F);
|
|
24
25
|
if (!e)
|
|
25
26
|
throw new Error("useSidebar must be used within a SidebarProvider.");
|
|
26
27
|
return e;
|
|
27
28
|
}
|
|
28
|
-
const
|
|
29
|
+
const He = i.forwardRef(
|
|
29
30
|
({
|
|
30
31
|
dataHook: e,
|
|
31
32
|
trackingEl: t,
|
|
32
33
|
trackingLabel: r,
|
|
33
34
|
defaultOpen: o = !0,
|
|
34
|
-
open:
|
|
35
|
-
onOpenChange:
|
|
35
|
+
open: s,
|
|
36
|
+
onOpenChange: n,
|
|
36
37
|
className: d,
|
|
37
|
-
style:
|
|
38
|
-
children:
|
|
39
|
-
...
|
|
40
|
-
},
|
|
41
|
-
const
|
|
42
|
-
(
|
|
43
|
-
const N = typeof
|
|
44
|
-
|
|
38
|
+
style: u,
|
|
39
|
+
children: m,
|
|
40
|
+
...h
|
|
41
|
+
}, f) => {
|
|
42
|
+
const p = ke("lg"), [c, x] = i.useState(!1), [g, M] = i.useState(null), [I, K] = i.useState(o), S = s ?? I, C = i.useCallback(
|
|
43
|
+
(v) => {
|
|
44
|
+
const N = typeof v == "function" ? v(S) : v;
|
|
45
|
+
n ? n(N) : K(N), document.cookie = `${_e}=${N}; path=/; max-age=${ze}`;
|
|
45
46
|
},
|
|
46
|
-
[
|
|
47
|
-
), R = i.useCallback(() =>
|
|
47
|
+
[n, S]
|
|
48
|
+
), R = i.useCallback(() => p ? x((v) => !v) : C((v) => !v), [p, C, x]);
|
|
48
49
|
i.useEffect(() => {
|
|
49
|
-
const
|
|
50
|
-
N.key ===
|
|
50
|
+
const v = (N) => {
|
|
51
|
+
N.key === Be && (N.metaKey || N.ctrlKey) && (N.preventDefault(), R());
|
|
51
52
|
};
|
|
52
|
-
return window.addEventListener("keydown",
|
|
53
|
+
return window.addEventListener("keydown", v), () => window.removeEventListener("keydown", v);
|
|
53
54
|
}, [R]);
|
|
54
|
-
const
|
|
55
|
+
const T = S ? "expanded" : "collapsed", W = i.useMemo(
|
|
55
56
|
() => ({
|
|
56
|
-
state:
|
|
57
|
-
open:
|
|
57
|
+
state: T,
|
|
58
|
+
open: S,
|
|
58
59
|
setOpen: C,
|
|
59
|
-
isMobile:
|
|
60
|
-
openMobile:
|
|
61
|
-
setOpenMobile:
|
|
62
|
-
toggleSidebar: R
|
|
60
|
+
isMobile: p,
|
|
61
|
+
openMobile: c,
|
|
62
|
+
setOpenMobile: x,
|
|
63
|
+
toggleSidebar: R,
|
|
64
|
+
footerPortalEl: g,
|
|
65
|
+
setFooterPortalEl: M
|
|
63
66
|
}),
|
|
64
|
-
[
|
|
67
|
+
[
|
|
68
|
+
T,
|
|
69
|
+
S,
|
|
70
|
+
C,
|
|
71
|
+
p,
|
|
72
|
+
c,
|
|
73
|
+
x,
|
|
74
|
+
R,
|
|
75
|
+
g
|
|
76
|
+
]
|
|
65
77
|
);
|
|
66
|
-
return /* @__PURE__ */ a(
|
|
78
|
+
return /* @__PURE__ */ a(F.Provider, { value: W, children: /* @__PURE__ */ a(Ne, { delayDuration: 0, children: /* @__PURE__ */ a(
|
|
67
79
|
"div",
|
|
68
80
|
{
|
|
69
|
-
ref:
|
|
81
|
+
ref: f,
|
|
70
82
|
className: l(
|
|
71
83
|
"group/sidebar-wrapper flex min-h-svh w-full",
|
|
72
84
|
d
|
|
@@ -76,51 +88,51 @@ const Pe = i.forwardRef(
|
|
|
76
88
|
"data-tracking-el": t || "sidebar-provider",
|
|
77
89
|
"data-tracking-label": r,
|
|
78
90
|
style: {
|
|
79
|
-
"--sidebar-width":
|
|
80
|
-
"--sidebar-width-icon":
|
|
81
|
-
...
|
|
91
|
+
"--sidebar-width": Pe,
|
|
92
|
+
"--sidebar-width-icon": Le,
|
|
93
|
+
...u
|
|
82
94
|
},
|
|
83
|
-
...
|
|
84
|
-
children:
|
|
95
|
+
...h,
|
|
96
|
+
children: m
|
|
85
97
|
}
|
|
86
98
|
) }) });
|
|
87
99
|
}
|
|
88
100
|
);
|
|
89
|
-
|
|
90
|
-
const
|
|
101
|
+
He.displayName = "SidebarProvider";
|
|
102
|
+
const Fe = i.forwardRef(
|
|
91
103
|
({
|
|
92
104
|
dataHook: e,
|
|
93
105
|
trackingEl: t,
|
|
94
106
|
trackingLabel: r,
|
|
95
107
|
side: o = "left",
|
|
96
|
-
variant:
|
|
97
|
-
collapsible:
|
|
108
|
+
variant: s = "sidebar",
|
|
109
|
+
collapsible: n = "offcanvas",
|
|
98
110
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars -- accepted for backward compat
|
|
99
111
|
embedded: d,
|
|
100
|
-
mobileTitle:
|
|
101
|
-
mobileDescription:
|
|
102
|
-
className:
|
|
103
|
-
children:
|
|
104
|
-
...
|
|
105
|
-
},
|
|
106
|
-
const { isMobile:
|
|
107
|
-
return
|
|
112
|
+
mobileTitle: u,
|
|
113
|
+
mobileDescription: m,
|
|
114
|
+
className: h,
|
|
115
|
+
children: f,
|
|
116
|
+
...p
|
|
117
|
+
}, c) => {
|
|
118
|
+
const { isMobile: x, state: g, openMobile: M, setOpenMobile: I } = k();
|
|
119
|
+
return n === "none" ? /* @__PURE__ */ a(
|
|
108
120
|
"div",
|
|
109
121
|
{
|
|
110
|
-
ref:
|
|
122
|
+
ref: c,
|
|
111
123
|
className: l(
|
|
112
124
|
"text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col",
|
|
113
|
-
|
|
125
|
+
h
|
|
114
126
|
),
|
|
115
127
|
"data-hook": e,
|
|
116
128
|
"data-slot": "sidebar",
|
|
117
129
|
"data-tracking-el": t || "sidebar",
|
|
118
130
|
"data-tracking-label": r,
|
|
119
|
-
...
|
|
120
|
-
children:
|
|
131
|
+
...p,
|
|
132
|
+
children: f
|
|
121
133
|
}
|
|
122
|
-
) :
|
|
123
|
-
|
|
134
|
+
) : x ? /* @__PURE__ */ a(le, { open: M, onOpenChange: I, children: /* @__PURE__ */ b(
|
|
135
|
+
ce,
|
|
124
136
|
{
|
|
125
137
|
className: "bg-sidebar-background text-sidebar-foreground w-(--sidebar-width) p-6",
|
|
126
138
|
"data-hook": `${e}-mobile-content`,
|
|
@@ -128,82 +140,82 @@ const Le = i.forwardRef(
|
|
|
128
140
|
"data-sidebar": "sidebar",
|
|
129
141
|
side: "left",
|
|
130
142
|
style: {
|
|
131
|
-
"--sidebar-width": `min(${
|
|
143
|
+
"--sidebar-width": `min(${Te}, calc(100vw - 40px))`
|
|
132
144
|
},
|
|
133
145
|
children: [
|
|
134
|
-
/* @__PURE__ */ a(
|
|
135
|
-
/* @__PURE__ */ a(
|
|
136
|
-
/* @__PURE__ */ a("div", { className: "flex h-full w-full flex-col", children:
|
|
146
|
+
/* @__PURE__ */ a(ue, { className: "sr-only", children: u ?? "Navigation" }),
|
|
147
|
+
/* @__PURE__ */ a(be, { className: "sr-only", children: m ?? "Main navigation menu" }),
|
|
148
|
+
/* @__PURE__ */ a("div", { className: "flex h-full w-full flex-col", children: f })
|
|
137
149
|
]
|
|
138
150
|
}
|
|
139
151
|
) }) : /* @__PURE__ */ a(
|
|
140
152
|
"div",
|
|
141
153
|
{
|
|
142
|
-
ref:
|
|
154
|
+
ref: c,
|
|
143
155
|
className: l(
|
|
144
156
|
"group text-sidebar-foreground flex h-full shrink-0 flex-col overflow-hidden transition-[width] duration-200 ease-linear",
|
|
145
157
|
g === "expanded" && "w-(--sidebar-width)",
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
158
|
+
n === "icon" && g === "collapsed" && "w-(--sidebar-width-icon)",
|
|
159
|
+
n === "offcanvas" && g === "collapsed" && "w-0",
|
|
160
|
+
h
|
|
149
161
|
),
|
|
150
|
-
"data-collapsible": g === "collapsed" ?
|
|
162
|
+
"data-collapsible": g === "collapsed" ? n : "",
|
|
151
163
|
"data-hook": e,
|
|
152
164
|
"data-side": o,
|
|
153
165
|
"data-slot": "sidebar",
|
|
154
166
|
"data-state": g,
|
|
155
167
|
"data-tracking-el": t || "sidebar",
|
|
156
168
|
"data-tracking-label": r,
|
|
157
|
-
"data-variant":
|
|
158
|
-
...
|
|
159
|
-
children:
|
|
169
|
+
"data-variant": s,
|
|
170
|
+
...p,
|
|
171
|
+
children: f
|
|
160
172
|
}
|
|
161
173
|
);
|
|
162
174
|
}
|
|
163
175
|
);
|
|
164
|
-
|
|
165
|
-
const
|
|
176
|
+
Fe.displayName = "Sidebar";
|
|
177
|
+
const $ = i.forwardRef(
|
|
166
178
|
({
|
|
167
179
|
className: e,
|
|
168
180
|
onClick: t,
|
|
169
181
|
dataHook: r = "sidebar-trigger",
|
|
170
182
|
toggleAriaLabel: o,
|
|
171
|
-
children:
|
|
172
|
-
...
|
|
183
|
+
children: s,
|
|
184
|
+
...n
|
|
173
185
|
}, d) => {
|
|
174
|
-
const { toggleSidebar:
|
|
175
|
-
return /* @__PURE__ */
|
|
176
|
-
|
|
186
|
+
const { toggleSidebar: u } = k(), m = o ?? "Toggle Sidebar";
|
|
187
|
+
return /* @__PURE__ */ b(
|
|
188
|
+
B,
|
|
177
189
|
{
|
|
178
190
|
ref: d,
|
|
179
191
|
iconOnly: !0,
|
|
180
|
-
"aria-label":
|
|
192
|
+
"aria-label": m,
|
|
181
193
|
className: l("h-7 w-7", e),
|
|
182
194
|
"data-slot": "sidebar-trigger",
|
|
183
195
|
dataHook: r,
|
|
184
196
|
size: "sm",
|
|
185
197
|
variant: "ghost",
|
|
186
|
-
onClick: (
|
|
187
|
-
t?.(
|
|
198
|
+
onClick: (h) => {
|
|
199
|
+
t?.(h), u();
|
|
188
200
|
},
|
|
189
|
-
...
|
|
201
|
+
...n,
|
|
190
202
|
children: [
|
|
191
|
-
|
|
192
|
-
/* @__PURE__ */ a("span", { className: "sr-only", children:
|
|
203
|
+
s || /* @__PURE__ */ a(J, {}),
|
|
204
|
+
/* @__PURE__ */ a("span", { className: "sr-only", children: m })
|
|
193
205
|
]
|
|
194
206
|
}
|
|
195
207
|
);
|
|
196
208
|
}
|
|
197
209
|
);
|
|
198
|
-
|
|
199
|
-
const
|
|
210
|
+
$.displayName = "SidebarTrigger";
|
|
211
|
+
const $e = i.forwardRef(
|
|
200
212
|
({ className: e, toggleAriaLabel: t, ...r }, o) => {
|
|
201
|
-
const { toggleSidebar:
|
|
213
|
+
const { toggleSidebar: s } = k(), n = t ?? "Toggle Sidebar";
|
|
202
214
|
return /* @__PURE__ */ a(
|
|
203
215
|
"button",
|
|
204
216
|
{
|
|
205
217
|
ref: o,
|
|
206
|
-
"aria-label":
|
|
218
|
+
"aria-label": n,
|
|
207
219
|
className: l(
|
|
208
220
|
"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",
|
|
209
221
|
"cursor-w-resize",
|
|
@@ -214,19 +226,19 @@ const Be = i.forwardRef(
|
|
|
214
226
|
),
|
|
215
227
|
"data-slot": "sidebar-rail",
|
|
216
228
|
tabIndex: -1,
|
|
217
|
-
title:
|
|
218
|
-
onClick:
|
|
229
|
+
title: n,
|
|
230
|
+
onClick: s,
|
|
219
231
|
...r
|
|
220
232
|
}
|
|
221
233
|
);
|
|
222
234
|
}
|
|
223
235
|
);
|
|
224
|
-
|
|
225
|
-
const
|
|
226
|
-
({ className: e, dataHook: t, trackingEl: r, trackingLabel: o, ...
|
|
236
|
+
$e.displayName = "SidebarRail";
|
|
237
|
+
const je = i.forwardRef(
|
|
238
|
+
({ className: e, dataHook: t, trackingEl: r, trackingLabel: o, ...s }, n) => /* @__PURE__ */ a(
|
|
227
239
|
"main",
|
|
228
240
|
{
|
|
229
|
-
ref:
|
|
241
|
+
ref: n,
|
|
230
242
|
className: l(
|
|
231
243
|
"bg-background relative flex min-h-svh flex-1 flex-col",
|
|
232
244
|
e
|
|
@@ -235,18 +247,18 @@ const He = i.forwardRef(
|
|
|
235
247
|
"data-slot": "sidebar-inset",
|
|
236
248
|
"data-tracking-el": r || "sidebar-inset",
|
|
237
249
|
"data-tracking-label": o,
|
|
238
|
-
...
|
|
250
|
+
...s
|
|
239
251
|
}
|
|
240
252
|
)
|
|
241
253
|
);
|
|
242
|
-
|
|
243
|
-
const
|
|
244
|
-
|
|
254
|
+
je.displayName = "SidebarInset";
|
|
255
|
+
const Ge = i.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ a(
|
|
256
|
+
Q,
|
|
245
257
|
{
|
|
246
258
|
ref: r,
|
|
247
259
|
className: l(
|
|
248
260
|
"bg-background h-8 w-full shadow-none",
|
|
249
|
-
|
|
261
|
+
w,
|
|
250
262
|
e
|
|
251
263
|
),
|
|
252
264
|
"data-slot": "sidebar-input",
|
|
@@ -254,14 +266,14 @@ const Fe = i.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ a(
|
|
|
254
266
|
...t
|
|
255
267
|
}
|
|
256
268
|
));
|
|
257
|
-
|
|
258
|
-
const
|
|
269
|
+
Ge.displayName = "SidebarInput";
|
|
270
|
+
const Ue = i.forwardRef(
|
|
259
271
|
({ className: e, dataHook: t, ...r }, o) => /* @__PURE__ */ a(
|
|
260
272
|
"header",
|
|
261
273
|
{
|
|
262
274
|
ref: o,
|
|
263
275
|
className: l(
|
|
264
|
-
"pr-section-xs flex flex-col gap-2 pt-2 pb-9 pl-8",
|
|
276
|
+
"pr-section-xs flex shrink-0 flex-col gap-2 pt-2 pb-9 pl-8",
|
|
265
277
|
e
|
|
266
278
|
),
|
|
267
279
|
"data-hook": t,
|
|
@@ -270,22 +282,25 @@ const $e = i.forwardRef(
|
|
|
270
282
|
}
|
|
271
283
|
)
|
|
272
284
|
);
|
|
273
|
-
|
|
274
|
-
const
|
|
275
|
-
({ className: e, dataHook: t, ...r }, o) =>
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
+
Ue.displayName = "SidebarHeader";
|
|
286
|
+
const Ke = i.forwardRef(
|
|
287
|
+
({ className: e, dataHook: t, ...r }, o) => {
|
|
288
|
+
const { footerPortalEl: s } = k(), n = /* @__PURE__ */ a(
|
|
289
|
+
"footer",
|
|
290
|
+
{
|
|
291
|
+
ref: o,
|
|
292
|
+
className: l("flex shrink-0 flex-col gap-1 p-1", e),
|
|
293
|
+
"data-hook": t,
|
|
294
|
+
"data-slot": "sidebar-footer",
|
|
295
|
+
...r
|
|
296
|
+
}
|
|
297
|
+
);
|
|
298
|
+
return s ? q(n, s) : n;
|
|
299
|
+
}
|
|
285
300
|
);
|
|
286
|
-
|
|
287
|
-
const
|
|
288
|
-
|
|
301
|
+
Ke.displayName = "SidebarFooter";
|
|
302
|
+
const We = i.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ a(
|
|
303
|
+
H,
|
|
289
304
|
{
|
|
290
305
|
ref: r,
|
|
291
306
|
className: l(
|
|
@@ -296,44 +311,52 @@ const Ge = i.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ a(
|
|
|
296
311
|
...t
|
|
297
312
|
}
|
|
298
313
|
));
|
|
299
|
-
|
|
300
|
-
const
|
|
301
|
-
({ className: e, dataHook: t, ariaLabel: r = "Sidebar", children: o, ...
|
|
302
|
-
const { isMobile: d } =
|
|
303
|
-
(
|
|
304
|
-
const
|
|
314
|
+
We.displayName = "SidebarSeparator";
|
|
315
|
+
const qe = i.forwardRef(
|
|
316
|
+
({ className: e, dataHook: t, ariaLabel: r = "Sidebar", children: o, ...s }, n) => {
|
|
317
|
+
const { isMobile: d, setFooterPortalEl: u } = k(), m = i.useRef(null), [h, f] = i.useState(!1), p = i.useCallback(
|
|
318
|
+
(c) => {
|
|
319
|
+
const x = c?.querySelector(
|
|
305
320
|
'[data-slot="scroll-area-viewport"]'
|
|
306
321
|
);
|
|
307
|
-
|
|
322
|
+
m.current = x ?? null, x && (x.tabIndex = -1), typeof n == "function" ? n(c) : n && (n.current = c);
|
|
308
323
|
},
|
|
309
|
-
[
|
|
324
|
+
[n]
|
|
310
325
|
);
|
|
311
|
-
return
|
|
312
|
-
|
|
326
|
+
return i.useEffect(() => {
|
|
327
|
+
const c = m.current;
|
|
328
|
+
if (!c) return;
|
|
329
|
+
const x = () => f(c.scrollHeight > c.clientHeight), g = new ResizeObserver(x);
|
|
330
|
+
return g.observe(c), c.firstElementChild && g.observe(c.firstElementChild), () => g.disconnect();
|
|
331
|
+
}, []), /* @__PURE__ */ b(
|
|
332
|
+
ge,
|
|
313
333
|
{
|
|
314
|
-
ref:
|
|
334
|
+
ref: p,
|
|
315
335
|
className: l(
|
|
316
|
-
"min-h-0 flex-1 group-data-[collapsible=icon]:overflow-hidden [&_[data-slot=scroll-area-viewport]>div]:
|
|
336
|
+
"min-h-0 flex-1 group-data-[collapsible=icon]:overflow-hidden **:data-[slot=scroll-area-scrollbar]:w-1.5 **: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",
|
|
317
337
|
e
|
|
318
338
|
),
|
|
319
339
|
dataHook: t ?? "sidebar-content-scroll",
|
|
320
340
|
scrollOrientation: d ? "both" : "vertical",
|
|
321
|
-
...
|
|
322
|
-
children:
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
341
|
+
...s,
|
|
342
|
+
children: [
|
|
343
|
+
/* @__PURE__ */ a(
|
|
344
|
+
"nav",
|
|
345
|
+
{
|
|
346
|
+
"aria-label": r,
|
|
347
|
+
className: l("flex flex-col gap-2", h && "pr-2"),
|
|
348
|
+
"data-slot": "sidebar-content",
|
|
349
|
+
children: o
|
|
350
|
+
}
|
|
351
|
+
),
|
|
352
|
+
/* @__PURE__ */ a("div", { ref: u, className: "mt-auto" })
|
|
353
|
+
]
|
|
331
354
|
}
|
|
332
355
|
);
|
|
333
356
|
}
|
|
334
357
|
);
|
|
335
|
-
|
|
336
|
-
const
|
|
358
|
+
qe.displayName = "SidebarContent";
|
|
359
|
+
const Xe = i.forwardRef(
|
|
337
360
|
({ className: e, dataHook: t, ...r }, o) => /* @__PURE__ */ a(
|
|
338
361
|
"div",
|
|
339
362
|
{
|
|
@@ -345,11 +368,11 @@ const Ke = i.forwardRef(
|
|
|
345
368
|
}
|
|
346
369
|
)
|
|
347
370
|
);
|
|
348
|
-
|
|
349
|
-
const
|
|
371
|
+
Xe.displayName = "SidebarGroup";
|
|
372
|
+
const Ve = O(
|
|
350
373
|
[
|
|
351
374
|
"flex h-8 shrink-0 items-center rounded-md px-2 font-medium text-sidebar-foreground/70 outline-none transition-[margin,opacity] duration-200 ease-linear [&>svg]:shrink-0 group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",
|
|
352
|
-
|
|
375
|
+
w
|
|
353
376
|
],
|
|
354
377
|
{
|
|
355
378
|
variants: {
|
|
@@ -369,63 +392,63 @@ const We = E(
|
|
|
369
392
|
variant: "default"
|
|
370
393
|
}
|
|
371
394
|
}
|
|
372
|
-
),
|
|
395
|
+
), Ye = i.forwardRef(
|
|
373
396
|
({
|
|
374
397
|
className: e,
|
|
375
398
|
dataHook: t,
|
|
376
399
|
asChild: r = !1,
|
|
377
400
|
size: o = "sm",
|
|
378
|
-
variant:
|
|
379
|
-
isOpen:
|
|
401
|
+
variant: s = "default",
|
|
402
|
+
isOpen: n = !1,
|
|
380
403
|
onToggle: d,
|
|
381
|
-
onAction:
|
|
382
|
-
children:
|
|
383
|
-
...
|
|
384
|
-
},
|
|
385
|
-
const
|
|
386
|
-
|
|
387
|
-
},
|
|
388
|
-
(g.key === "Enter" || g.key === " ") && (g.preventDefault(),
|
|
404
|
+
onAction: u,
|
|
405
|
+
children: m,
|
|
406
|
+
...h
|
|
407
|
+
}, f) => {
|
|
408
|
+
const p = r ? y : "div", c = () => {
|
|
409
|
+
s === "collapsible" && d ? d() : s === "action" && u && u();
|
|
410
|
+
}, x = (g) => {
|
|
411
|
+
(g.key === "Enter" || g.key === " ") && (g.preventDefault(), c());
|
|
389
412
|
};
|
|
390
|
-
return /* @__PURE__ */
|
|
391
|
-
|
|
413
|
+
return /* @__PURE__ */ b(
|
|
414
|
+
p,
|
|
392
415
|
{
|
|
393
|
-
ref:
|
|
394
|
-
className: l(
|
|
416
|
+
ref: f,
|
|
417
|
+
className: l(Ve({ size: o, variant: s }), e),
|
|
395
418
|
"data-hook": t,
|
|
396
419
|
"data-slot": "sidebar-group-label",
|
|
397
|
-
"data-variant":
|
|
398
|
-
role:
|
|
399
|
-
tabIndex:
|
|
400
|
-
onClick:
|
|
401
|
-
onKeyDown:
|
|
402
|
-
...
|
|
420
|
+
"data-variant": s,
|
|
421
|
+
role: s !== "default" ? "button" : void 0,
|
|
422
|
+
tabIndex: s !== "default" ? 0 : void 0,
|
|
423
|
+
onClick: s !== "default" ? c : void 0,
|
|
424
|
+
onKeyDown: s !== "default" ? x : void 0,
|
|
425
|
+
...h,
|
|
403
426
|
children: [
|
|
404
|
-
/* @__PURE__ */ a("span", { children:
|
|
405
|
-
|
|
406
|
-
|
|
427
|
+
/* @__PURE__ */ a("span", { children: m }),
|
|
428
|
+
s === "collapsible" && /* @__PURE__ */ a(
|
|
429
|
+
z,
|
|
407
430
|
{
|
|
408
431
|
className: l(
|
|
409
432
|
"shrink-0 transition-transform duration-200",
|
|
410
|
-
|
|
433
|
+
n && "rotate-180"
|
|
411
434
|
),
|
|
412
435
|
size: 16
|
|
413
436
|
}
|
|
414
437
|
),
|
|
415
|
-
|
|
438
|
+
s === "action" && /* @__PURE__ */ a(_, { className: "shrink-0", size: 16 })
|
|
416
439
|
]
|
|
417
440
|
}
|
|
418
441
|
);
|
|
419
442
|
}
|
|
420
443
|
);
|
|
421
|
-
|
|
422
|
-
const
|
|
444
|
+
Ye.displayName = "SidebarGroupLabel";
|
|
445
|
+
const Ze = i.forwardRef(({ className: e, asChild: t = !1, ...r }, o) => /* @__PURE__ */ a(
|
|
423
446
|
t ? y : "button",
|
|
424
447
|
{
|
|
425
448
|
ref: o,
|
|
426
449
|
className: l(
|
|
427
450
|
"text-sidebar-foreground hover:bg-sidebar-accent hover:text-sidebar-accent-foreground absolute top-3.5 right-3 flex aspect-square w-5 items-center justify-center rounded-md p-0 transition-transform outline-none [&>svg]:shrink-0",
|
|
428
|
-
|
|
451
|
+
w,
|
|
429
452
|
// Increases the hit area of the button on mobile.
|
|
430
453
|
"after:absolute after:-inset-2 after:md:hidden",
|
|
431
454
|
"group-data-[collapsible=icon]:hidden",
|
|
@@ -435,8 +458,8 @@ const Xe = i.forwardRef(({ className: e, asChild: t = !1, ...r }, o) => /* @__PU
|
|
|
435
458
|
...r
|
|
436
459
|
}
|
|
437
460
|
));
|
|
438
|
-
|
|
439
|
-
const
|
|
461
|
+
Ze.displayName = "SidebarGroupAction";
|
|
462
|
+
const Je = i.forwardRef(({ className: e, dataHook: t, ...r }, o) => /* @__PURE__ */ a(
|
|
440
463
|
"div",
|
|
441
464
|
{
|
|
442
465
|
ref: o,
|
|
@@ -446,8 +469,8 @@ const Ve = i.forwardRef(({ className: e, dataHook: t, ...r }, o) => /* @__PURE__
|
|
|
446
469
|
...r
|
|
447
470
|
}
|
|
448
471
|
));
|
|
449
|
-
|
|
450
|
-
const
|
|
472
|
+
Je.displayName = "SidebarGroupContent";
|
|
473
|
+
const Qe = i.forwardRef(
|
|
451
474
|
({ className: e, dataHook: t, ...r }, o) => /* @__PURE__ */ a(
|
|
452
475
|
"ul",
|
|
453
476
|
{
|
|
@@ -459,8 +482,8 @@ const Ye = i.forwardRef(
|
|
|
459
482
|
}
|
|
460
483
|
)
|
|
461
484
|
);
|
|
462
|
-
|
|
463
|
-
const
|
|
485
|
+
Qe.displayName = "SidebarMenu";
|
|
486
|
+
const j = i.forwardRef(
|
|
464
487
|
({ className: e, dataHook: t, ...r }, o) => /* @__PURE__ */ a(
|
|
465
488
|
"li",
|
|
466
489
|
{
|
|
@@ -472,16 +495,16 @@ const $ = i.forwardRef(
|
|
|
472
495
|
}
|
|
473
496
|
)
|
|
474
497
|
);
|
|
475
|
-
|
|
476
|
-
const
|
|
498
|
+
j.displayName = "SidebarMenuItem";
|
|
499
|
+
const ea = i.forwardRef(
|
|
477
500
|
({
|
|
478
501
|
type: e = "caret",
|
|
479
502
|
isActive: t = !1,
|
|
480
503
|
className: r,
|
|
481
504
|
...o
|
|
482
|
-
},
|
|
483
|
-
const
|
|
484
|
-
ref:
|
|
505
|
+
}, s) => {
|
|
506
|
+
const n = {
|
|
507
|
+
ref: s,
|
|
485
508
|
className: l(
|
|
486
509
|
"shrink-0 transition-transform",
|
|
487
510
|
t && e === "caret" && "rotate-90",
|
|
@@ -492,25 +515,25 @@ const Ze = i.forwardRef(
|
|
|
492
515
|
};
|
|
493
516
|
switch (e) {
|
|
494
517
|
case "horizontal":
|
|
495
|
-
return /* @__PURE__ */ a(
|
|
518
|
+
return /* @__PURE__ */ a(E, { ...n });
|
|
496
519
|
case "vertical":
|
|
497
|
-
return /* @__PURE__ */ a(
|
|
520
|
+
return /* @__PURE__ */ a(z, { ...n });
|
|
498
521
|
case "upDown":
|
|
499
|
-
return /* @__PURE__ */ a(
|
|
522
|
+
return /* @__PURE__ */ a(Y, { ...n });
|
|
500
523
|
case "plusMinus":
|
|
501
|
-
return t ? /* @__PURE__ */ a(
|
|
524
|
+
return t ? /* @__PURE__ */ a(V, { ...n }) : /* @__PURE__ */ a(_, { ...n });
|
|
502
525
|
case "dots":
|
|
503
|
-
return /* @__PURE__ */ a(
|
|
526
|
+
return /* @__PURE__ */ a(X, { ...n });
|
|
504
527
|
default:
|
|
505
|
-
return /* @__PURE__ */ a(
|
|
528
|
+
return /* @__PURE__ */ a(E, { ...n });
|
|
506
529
|
}
|
|
507
530
|
}
|
|
508
531
|
);
|
|
509
|
-
|
|
510
|
-
const
|
|
532
|
+
ea.displayName = "SidebarCollapseIcon";
|
|
533
|
+
const aa = O(
|
|
511
534
|
[
|
|
512
535
|
"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 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 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",
|
|
513
|
-
|
|
536
|
+
w
|
|
514
537
|
],
|
|
515
538
|
{
|
|
516
539
|
variants: {
|
|
@@ -539,61 +562,61 @@ const Je = E(
|
|
|
539
562
|
size: "default"
|
|
540
563
|
}
|
|
541
564
|
}
|
|
542
|
-
),
|
|
565
|
+
), P = i.forwardRef(
|
|
543
566
|
({
|
|
544
567
|
asChild: e = !1,
|
|
545
568
|
isActive: t = !1,
|
|
546
569
|
variant: r = "simple",
|
|
547
570
|
size: o = "default",
|
|
548
|
-
tooltip:
|
|
549
|
-
className:
|
|
571
|
+
tooltip: s,
|
|
572
|
+
className: n,
|
|
550
573
|
dataHook: d,
|
|
551
|
-
...
|
|
552
|
-
},
|
|
553
|
-
const
|
|
554
|
-
|
|
574
|
+
...u
|
|
575
|
+
}, m) => {
|
|
576
|
+
const h = e ? y : "button", { isMobile: f, state: p } = k(), c = /* @__PURE__ */ a(
|
|
577
|
+
h,
|
|
555
578
|
{
|
|
556
|
-
ref:
|
|
557
|
-
className: l(
|
|
579
|
+
ref: m,
|
|
580
|
+
className: l(aa({ variant: r, size: o }), n),
|
|
558
581
|
"data-active": t,
|
|
559
582
|
"data-hook": d,
|
|
560
583
|
"data-size": o,
|
|
561
584
|
"data-slot": "sidebar-menu-button",
|
|
562
585
|
"data-variant": r,
|
|
563
|
-
...
|
|
586
|
+
...u
|
|
564
587
|
}
|
|
565
588
|
);
|
|
566
|
-
return
|
|
567
|
-
children:
|
|
589
|
+
return s ? (typeof s == "string" && (s = {
|
|
590
|
+
children: s,
|
|
568
591
|
dataHook: "sidebar-menu-button-tooltip"
|
|
569
|
-
}), /* @__PURE__ */
|
|
570
|
-
/* @__PURE__ */ a(
|
|
592
|
+
}), /* @__PURE__ */ b(xe, { children: [
|
|
593
|
+
/* @__PURE__ */ a(ve, { asChild: !0, children: c }),
|
|
571
594
|
/* @__PURE__ */ a(
|
|
572
|
-
|
|
595
|
+
we,
|
|
573
596
|
{
|
|
574
597
|
hideArrow: !0,
|
|
575
|
-
...
|
|
598
|
+
...s,
|
|
576
599
|
align: "center",
|
|
577
600
|
className: l(
|
|
578
601
|
"bg-foreground text-background border-none",
|
|
579
|
-
|
|
602
|
+
s.className
|
|
580
603
|
),
|
|
581
|
-
hidden:
|
|
604
|
+
hidden: p !== "collapsed" || f,
|
|
582
605
|
side: "right",
|
|
583
606
|
sideOffset: 8
|
|
584
607
|
}
|
|
585
608
|
)
|
|
586
|
-
] })) :
|
|
609
|
+
] })) : c;
|
|
587
610
|
}
|
|
588
611
|
);
|
|
589
|
-
|
|
590
|
-
const
|
|
612
|
+
P.displayName = "SidebarMenuButton";
|
|
613
|
+
const ta = i.forwardRef(({ className: e, asChild: t = !1, showOnHover: r = !1, ...o }, s) => /* @__PURE__ */ a(
|
|
591
614
|
t ? y : "button",
|
|
592
615
|
{
|
|
593
|
-
ref:
|
|
616
|
+
ref: s,
|
|
594
617
|
className: l(
|
|
595
618
|
"text-sidebar-foreground hover:bg-sidebar-accent hover:text-sidebar-accent-foreground peer-hover/menu-button:text-sidebar-accent-foreground absolute top-1.5 right-1 flex aspect-square w-5 items-center justify-center rounded-md p-0 transition-transform outline-none [&>svg]:shrink-0",
|
|
596
|
-
|
|
619
|
+
w,
|
|
597
620
|
// Increases the hit area of the button on mobile.
|
|
598
621
|
"after:absolute after:-inset-2 after:md:hidden",
|
|
599
622
|
"peer-data-[size=sm]/menu-button:top-1",
|
|
@@ -608,8 +631,8 @@ const Qe = i.forwardRef(({ className: e, asChild: t = !1, showOnHover: r = !1, .
|
|
|
608
631
|
...o
|
|
609
632
|
}
|
|
610
633
|
));
|
|
611
|
-
|
|
612
|
-
const
|
|
634
|
+
ta.displayName = "SidebarMenuAction";
|
|
635
|
+
const ra = i.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ a(
|
|
613
636
|
"div",
|
|
614
637
|
{
|
|
615
638
|
ref: r,
|
|
@@ -623,15 +646,15 @@ const ea = i.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ a(
|
|
|
623
646
|
...t
|
|
624
647
|
}
|
|
625
648
|
));
|
|
626
|
-
|
|
627
|
-
const
|
|
628
|
-
const
|
|
649
|
+
ra.displayName = "SidebarMenuBadge";
|
|
650
|
+
const oa = i.forwardRef(({ className: e, showIcon: t = !1, ...r }, o) => {
|
|
651
|
+
const s = i.useId(), n = i.useMemo(() => {
|
|
629
652
|
let d = 0;
|
|
630
|
-
for (let
|
|
631
|
-
d = (d << 5) - d +
|
|
653
|
+
for (let u = 0; u < s.length; u++)
|
|
654
|
+
d = (d << 5) - d + s.charCodeAt(u), d |= 0;
|
|
632
655
|
return `${Math.abs(d) % 40 + 50}%`;
|
|
633
|
-
}, [
|
|
634
|
-
return /* @__PURE__ */
|
|
656
|
+
}, [s]);
|
|
657
|
+
return /* @__PURE__ */ b(
|
|
635
658
|
"div",
|
|
636
659
|
{
|
|
637
660
|
ref: o,
|
|
@@ -640,19 +663,19 @@ const aa = i.forwardRef(({ className: e, showIcon: t = !1, ...r }, o) => {
|
|
|
640
663
|
...r,
|
|
641
664
|
children: [
|
|
642
665
|
t && /* @__PURE__ */ a(
|
|
643
|
-
|
|
666
|
+
L,
|
|
644
667
|
{
|
|
645
668
|
className: "size-4 rounded-md",
|
|
646
669
|
"data-slot": "sidebar-menu-skeleton-icon"
|
|
647
670
|
}
|
|
648
671
|
),
|
|
649
672
|
/* @__PURE__ */ a(
|
|
650
|
-
|
|
673
|
+
L,
|
|
651
674
|
{
|
|
652
675
|
className: "h-4 max-w-[--skeleton-width] flex-1",
|
|
653
676
|
"data-slot": "sidebar-menu-skeleton-text",
|
|
654
677
|
style: {
|
|
655
|
-
"--skeleton-width":
|
|
678
|
+
"--skeleton-width": n
|
|
656
679
|
}
|
|
657
680
|
}
|
|
658
681
|
)
|
|
@@ -660,8 +683,8 @@ const aa = i.forwardRef(({ className: e, showIcon: t = !1, ...r }, o) => {
|
|
|
660
683
|
}
|
|
661
684
|
);
|
|
662
685
|
});
|
|
663
|
-
|
|
664
|
-
const
|
|
686
|
+
oa.displayName = "SidebarMenuSkeleton";
|
|
687
|
+
const sa = O(
|
|
665
688
|
"flex min-w-0 flex-col items-start gap-1 py-1 group-data-[collapsible=icon]:hidden",
|
|
666
689
|
{
|
|
667
690
|
variants: {
|
|
@@ -675,20 +698,20 @@ const ta = E(
|
|
|
675
698
|
variant: "border"
|
|
676
699
|
}
|
|
677
700
|
}
|
|
678
|
-
),
|
|
679
|
-
({ className: e, variant: t = "border", dataHook: r, ...o },
|
|
701
|
+
), G = i.forwardRef(
|
|
702
|
+
({ className: e, variant: t = "border", dataHook: r, ...o }, s) => /* @__PURE__ */ a(
|
|
680
703
|
"ul",
|
|
681
704
|
{
|
|
682
|
-
ref:
|
|
683
|
-
className: l(
|
|
705
|
+
ref: s,
|
|
706
|
+
className: l(sa({ variant: t }), e),
|
|
684
707
|
"data-hook": r,
|
|
685
708
|
"data-slot": "sidebar-menu-sub",
|
|
686
709
|
...o
|
|
687
710
|
}
|
|
688
711
|
)
|
|
689
712
|
);
|
|
690
|
-
|
|
691
|
-
const
|
|
713
|
+
G.displayName = "SidebarMenuSub";
|
|
714
|
+
const na = i.forwardRef(({ dataHook: e, ...t }, r) => /* @__PURE__ */ a(
|
|
692
715
|
"li",
|
|
693
716
|
{
|
|
694
717
|
ref: r,
|
|
@@ -697,22 +720,22 @@ const ra = i.forwardRef(({ dataHook: e, ...t }, r) => /* @__PURE__ */ a(
|
|
|
697
720
|
...t
|
|
698
721
|
}
|
|
699
722
|
));
|
|
700
|
-
|
|
701
|
-
const
|
|
723
|
+
na.displayName = "SidebarMenuSubItem";
|
|
724
|
+
const ia = i.forwardRef(
|
|
702
725
|
({
|
|
703
726
|
asChild: e = !1,
|
|
704
727
|
size: t = "md",
|
|
705
728
|
isActive: r,
|
|
706
729
|
className: o,
|
|
707
|
-
dataHook:
|
|
708
|
-
...
|
|
730
|
+
dataHook: s,
|
|
731
|
+
...n
|
|
709
732
|
}, d) => /* @__PURE__ */ a(
|
|
710
733
|
e ? y : "a",
|
|
711
734
|
{
|
|
712
735
|
ref: d,
|
|
713
736
|
className: l(
|
|
714
737
|
"text-sidebar-foreground 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 disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-of-type]:truncate [&>svg]:shrink-0",
|
|
715
|
-
|
|
738
|
+
w,
|
|
716
739
|
"data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",
|
|
717
740
|
t === "sm" && "text-xs",
|
|
718
741
|
t === "md" && "text-sm",
|
|
@@ -720,39 +743,39 @@ const oa = i.forwardRef(
|
|
|
720
743
|
o
|
|
721
744
|
),
|
|
722
745
|
"data-active": r,
|
|
723
|
-
"data-hook":
|
|
746
|
+
"data-hook": s,
|
|
724
747
|
"data-size": t,
|
|
725
748
|
"data-slot": "sidebar-menu-sub-button",
|
|
726
|
-
...
|
|
749
|
+
...n
|
|
727
750
|
}
|
|
728
751
|
)
|
|
729
752
|
);
|
|
730
|
-
|
|
731
|
-
function
|
|
753
|
+
ia.displayName = "SidebarMenuSubButton";
|
|
754
|
+
function da({
|
|
732
755
|
dataHook: e,
|
|
733
756
|
className: t,
|
|
734
757
|
children: r,
|
|
735
758
|
defaultOpen: o,
|
|
736
|
-
open:
|
|
737
|
-
onOpenChange:
|
|
759
|
+
open: s,
|
|
760
|
+
onOpenChange: n
|
|
738
761
|
}) {
|
|
739
|
-
return /* @__PURE__ */ a(
|
|
740
|
-
|
|
762
|
+
return /* @__PURE__ */ a(j, { children: /* @__PURE__ */ a(
|
|
763
|
+
pe,
|
|
741
764
|
{
|
|
742
765
|
collapsible: !0,
|
|
743
766
|
className: t,
|
|
744
767
|
dataHook: e ?? "sidebar-menu-collapsible",
|
|
745
768
|
defaultValue: o ? "item" : void 0,
|
|
746
769
|
type: "single",
|
|
747
|
-
value:
|
|
748
|
-
onValueChange:
|
|
749
|
-
children: /* @__PURE__ */ a(
|
|
770
|
+
value: s !== void 0 ? s ? "item" : "" : void 0,
|
|
771
|
+
onValueChange: n ? (d) => n(d === "item") : void 0,
|
|
772
|
+
children: /* @__PURE__ */ a(fe, { className: "group/collapsible border-none", value: "item", children: r })
|
|
750
773
|
}
|
|
751
774
|
) });
|
|
752
775
|
}
|
|
753
|
-
|
|
754
|
-
const
|
|
755
|
-
|
|
776
|
+
da.displayName = "SidebarMenuCollapsible";
|
|
777
|
+
const la = i.forwardRef(({ children: e, className: t, ...r }, o) => /* @__PURE__ */ a(he.Trigger, { asChild: !0, children: /* @__PURE__ */ b(
|
|
778
|
+
P,
|
|
756
779
|
{
|
|
757
780
|
ref: o,
|
|
758
781
|
className: t,
|
|
@@ -761,7 +784,7 @@ const sa = i.forwardRef(({ children: e, className: t, ...r }, o) => /* @__PURE__
|
|
|
761
784
|
children: [
|
|
762
785
|
e,
|
|
763
786
|
/* @__PURE__ */ a(
|
|
764
|
-
|
|
787
|
+
E,
|
|
765
788
|
{
|
|
766
789
|
"data-collapse-icon": !0,
|
|
767
790
|
className: "opacity-100! transition-transform duration-200 ease-out group-data-[collapsible=icon]:hidden",
|
|
@@ -771,18 +794,18 @@ const sa = i.forwardRef(({ children: e, className: t, ...r }, o) => /* @__PURE__
|
|
|
771
794
|
]
|
|
772
795
|
}
|
|
773
796
|
) }));
|
|
774
|
-
|
|
775
|
-
const
|
|
776
|
-
|
|
777
|
-
const
|
|
797
|
+
la.displayName = "SidebarMenuCollapsibleTrigger";
|
|
798
|
+
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 }) }));
|
|
799
|
+
ca.displayName = "SidebarMenuCollapsibleContent";
|
|
800
|
+
const ua = i.forwardRef(
|
|
778
801
|
({
|
|
779
802
|
className: e,
|
|
780
803
|
dataHook: t = "sidebar-drawer",
|
|
781
804
|
trackingEl: r,
|
|
782
805
|
trackingLabel: o,
|
|
783
806
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars -- accepted for backward compat
|
|
784
|
-
children:
|
|
785
|
-
...
|
|
807
|
+
children: s,
|
|
808
|
+
...n
|
|
786
809
|
}, d) => /* @__PURE__ */ a(
|
|
787
810
|
"div",
|
|
788
811
|
{
|
|
@@ -792,22 +815,22 @@ const da = i.forwardRef(
|
|
|
792
815
|
"data-slot": "sidebar-drawer",
|
|
793
816
|
"data-tracking-el": r,
|
|
794
817
|
"data-tracking-label": o,
|
|
795
|
-
...
|
|
796
|
-
children: /* @__PURE__ */ a(
|
|
818
|
+
...n,
|
|
819
|
+
children: /* @__PURE__ */ a($, { dataHook: `${t}-trigger`, children: /* @__PURE__ */ a(Z, { size: 24 }) })
|
|
797
820
|
}
|
|
798
821
|
)
|
|
799
822
|
);
|
|
800
|
-
|
|
801
|
-
const
|
|
802
|
-
({ className: e, dataHook: t = "sidebar-header-button", children: r, ...o },
|
|
803
|
-
|
|
823
|
+
ua.displayName = "SidebarDrawer";
|
|
824
|
+
const ba = i.forwardRef(
|
|
825
|
+
({ className: e, dataHook: t = "sidebar-header-button", children: r, ...o }, s) => /* @__PURE__ */ a(
|
|
826
|
+
B,
|
|
804
827
|
{
|
|
805
|
-
ref:
|
|
828
|
+
ref: s,
|
|
806
829
|
...o,
|
|
807
830
|
iconOnly: !0,
|
|
808
831
|
className: l(
|
|
809
832
|
"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground size-7 rounded-md shadow-none",
|
|
810
|
-
|
|
833
|
+
w,
|
|
811
834
|
e
|
|
812
835
|
),
|
|
813
836
|
"data-slot": "sidebar-header-button",
|
|
@@ -818,100 +841,100 @@ const la = i.forwardRef(
|
|
|
818
841
|
}
|
|
819
842
|
)
|
|
820
843
|
);
|
|
821
|
-
|
|
822
|
-
const
|
|
844
|
+
ba.displayName = "SidebarHeaderButton";
|
|
845
|
+
const U = i.forwardRef(
|
|
823
846
|
({
|
|
824
847
|
className: e,
|
|
825
848
|
dataHook: t = "sidebar-popover-trigger",
|
|
826
849
|
icon: r,
|
|
827
850
|
triggerAriaLabel: o,
|
|
828
|
-
children:
|
|
829
|
-
...
|
|
830
|
-
}, d) => /* @__PURE__ */
|
|
851
|
+
children: s,
|
|
852
|
+
...n
|
|
853
|
+
}, d) => /* @__PURE__ */ b(
|
|
831
854
|
"button",
|
|
832
855
|
{
|
|
833
856
|
ref: d,
|
|
834
857
|
"aria-label": o ?? "Switch workspace",
|
|
835
858
|
className: l(
|
|
836
859
|
"text-sidebar-foreground hover:bg-sidebar-accent hover:text-sidebar-accent-foreground flex items-center gap-2 rounded-md px-1.5 py-2 text-sm font-semibold transition-colors duration-200 ease-out outline-none",
|
|
837
|
-
|
|
860
|
+
w,
|
|
838
861
|
e
|
|
839
862
|
),
|
|
840
863
|
"data-hook": t,
|
|
841
864
|
"data-slot": "sidebar-popover-trigger",
|
|
842
865
|
type: "button",
|
|
843
|
-
...
|
|
866
|
+
...n,
|
|
844
867
|
children: [
|
|
845
868
|
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 }),
|
|
846
|
-
/* @__PURE__ */ a("span", { className: "truncate", children:
|
|
847
|
-
/* @__PURE__ */ a(
|
|
869
|
+
/* @__PURE__ */ a("span", { className: "truncate", children: s }),
|
|
870
|
+
/* @__PURE__ */ a(z, { className: "shrink-0 opacity-50", size: 16 })
|
|
848
871
|
]
|
|
849
872
|
}
|
|
850
873
|
)
|
|
851
874
|
);
|
|
852
|
-
|
|
853
|
-
const A = i.forwardRef(({ className: e, dataHook: t, icon: r, shortcut: o, children:
|
|
875
|
+
U.displayName = "SidebarPopoverTrigger";
|
|
876
|
+
const A = i.forwardRef(({ className: e, dataHook: t, icon: r, shortcut: o, children: s, ...n }, d) => /* @__PURE__ */ b(
|
|
854
877
|
"button",
|
|
855
878
|
{
|
|
856
879
|
ref: d,
|
|
857
880
|
className: l(
|
|
858
881
|
"text-popover-foreground hover:bg-accent hover:text-accent-foreground focus-visible:bg-accent focus-visible:text-accent-foreground flex h-10 w-full items-center gap-2 rounded-xs p-2 text-sm transition-colors duration-150 ease-in-out outline-none",
|
|
859
|
-
|
|
882
|
+
w,
|
|
860
883
|
e
|
|
861
884
|
),
|
|
862
885
|
"data-hook": t,
|
|
863
886
|
"data-slot": "sidebar-popover-menu-item",
|
|
864
887
|
type: "button",
|
|
865
|
-
...
|
|
888
|
+
...n,
|
|
866
889
|
children: [
|
|
867
890
|
r && /* @__PURE__ */ a("span", { className: "border-border flex size-6 shrink-0 items-center justify-center rounded-xs border [&_svg]:size-4", children: r }),
|
|
868
|
-
/* @__PURE__ */ a("span", { className: "min-w-px flex-1 truncate text-left", children:
|
|
891
|
+
/* @__PURE__ */ a("span", { className: "min-w-px flex-1 truncate text-left", children: s }),
|
|
869
892
|
o && /* @__PURE__ */ a("span", { className: "text-popover-foreground/60 shrink-0 text-xs", children: o })
|
|
870
893
|
]
|
|
871
894
|
}
|
|
872
895
|
));
|
|
873
896
|
A.displayName = "SidebarPopoverMenuItem";
|
|
874
|
-
const
|
|
897
|
+
const pa = i.forwardRef(
|
|
875
898
|
({
|
|
876
899
|
className: e,
|
|
877
900
|
dataHook: t = "sidebar-popover-menu",
|
|
878
901
|
groupTitle: r = "Teams",
|
|
879
902
|
items: o,
|
|
880
|
-
addActionLabel:
|
|
881
|
-
addActionIcon:
|
|
903
|
+
addActionLabel: s,
|
|
904
|
+
addActionIcon: n,
|
|
882
905
|
onAddAction: d,
|
|
883
|
-
children:
|
|
884
|
-
...
|
|
885
|
-
},
|
|
906
|
+
children: u,
|
|
907
|
+
...m
|
|
908
|
+
}, h) => /* @__PURE__ */ a(
|
|
886
909
|
"div",
|
|
887
910
|
{
|
|
888
|
-
ref:
|
|
911
|
+
ref: h,
|
|
889
912
|
className: l("flex flex-col", e),
|
|
890
913
|
"data-hook": t,
|
|
891
914
|
"data-slot": "sidebar-popover-menu",
|
|
892
|
-
...
|
|
893
|
-
children:
|
|
894
|
-
/* @__PURE__ */
|
|
915
|
+
...m,
|
|
916
|
+
children: u || /* @__PURE__ */ b(D, { children: [
|
|
917
|
+
/* @__PURE__ */ b("div", { className: "flex flex-col items-start p-1", children: [
|
|
895
918
|
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 }) }),
|
|
896
|
-
o?.map((
|
|
919
|
+
o?.map((f, p) => /* @__PURE__ */ a(
|
|
897
920
|
A,
|
|
898
921
|
{
|
|
899
|
-
icon:
|
|
900
|
-
shortcut:
|
|
901
|
-
onClick:
|
|
902
|
-
children:
|
|
922
|
+
icon: f.icon,
|
|
923
|
+
shortcut: f.shortcut,
|
|
924
|
+
onClick: f.onClick,
|
|
925
|
+
children: f.label
|
|
903
926
|
},
|
|
904
|
-
|
|
927
|
+
p
|
|
905
928
|
))
|
|
906
929
|
] }),
|
|
907
|
-
d && /* @__PURE__ */
|
|
908
|
-
/* @__PURE__ */ a(
|
|
930
|
+
d && /* @__PURE__ */ b(D, { children: [
|
|
931
|
+
/* @__PURE__ */ a(H, {}),
|
|
909
932
|
/* @__PURE__ */ a("div", { className: "flex flex-col items-start p-1", children: /* @__PURE__ */ a(
|
|
910
933
|
A,
|
|
911
934
|
{
|
|
912
|
-
icon:
|
|
935
|
+
icon: n || /* @__PURE__ */ a(_, { size: 16 }),
|
|
913
936
|
onClick: d,
|
|
914
|
-
children:
|
|
937
|
+
children: s ?? "Add team"
|
|
915
938
|
}
|
|
916
939
|
) })
|
|
917
940
|
] })
|
|
@@ -919,20 +942,20 @@ const ca = i.forwardRef(
|
|
|
919
942
|
}
|
|
920
943
|
)
|
|
921
944
|
);
|
|
922
|
-
|
|
923
|
-
function
|
|
945
|
+
pa.displayName = "SidebarPopoverMenu";
|
|
946
|
+
function fa({
|
|
924
947
|
dataHook: e = "sidebar-switcher",
|
|
925
948
|
icon: t,
|
|
926
949
|
label: r,
|
|
927
950
|
triggerAriaLabel: o,
|
|
928
|
-
triggerClassName:
|
|
929
|
-
children:
|
|
951
|
+
triggerClassName: s,
|
|
952
|
+
children: n
|
|
930
953
|
}) {
|
|
931
|
-
return /* @__PURE__ */
|
|
932
|
-
/* @__PURE__ */ a(
|
|
933
|
-
|
|
954
|
+
return /* @__PURE__ */ b(ne, { children: [
|
|
955
|
+
/* @__PURE__ */ a(ie, { asChild: !0, children: /* @__PURE__ */ a(
|
|
956
|
+
U,
|
|
934
957
|
{
|
|
935
|
-
className:
|
|
958
|
+
className: s,
|
|
936
959
|
dataHook: `${e}-trigger`,
|
|
937
960
|
icon: t,
|
|
938
961
|
triggerAriaLabel: o,
|
|
@@ -940,41 +963,41 @@ function ua({
|
|
|
940
963
|
}
|
|
941
964
|
) }),
|
|
942
965
|
/* @__PURE__ */ a(
|
|
943
|
-
|
|
966
|
+
de,
|
|
944
967
|
{
|
|
945
968
|
align: "start",
|
|
946
969
|
className: "w-[316px] p-0",
|
|
947
970
|
dataHook: `${e}-content`,
|
|
948
971
|
side: "bottom",
|
|
949
972
|
sideOffset: 4,
|
|
950
|
-
children:
|
|
973
|
+
children: n
|
|
951
974
|
}
|
|
952
975
|
)
|
|
953
976
|
] });
|
|
954
977
|
}
|
|
955
|
-
|
|
956
|
-
function
|
|
978
|
+
fa.displayName = "SidebarSwitcher";
|
|
979
|
+
function ma({
|
|
957
980
|
dataHook: e = "sidebar-account-dropdown",
|
|
958
981
|
name: t,
|
|
959
982
|
email: r,
|
|
960
983
|
avatar: o,
|
|
961
|
-
menuGroups:
|
|
962
|
-
triggerAriaLabel:
|
|
984
|
+
menuGroups: s,
|
|
985
|
+
triggerAriaLabel: n,
|
|
963
986
|
align: d = "end",
|
|
964
|
-
side:
|
|
965
|
-
children:
|
|
987
|
+
side: u = "top",
|
|
988
|
+
children: m
|
|
966
989
|
}) {
|
|
967
|
-
return /* @__PURE__ */
|
|
968
|
-
/* @__PURE__ */ a(
|
|
969
|
-
|
|
990
|
+
return /* @__PURE__ */ b(ee, { children: [
|
|
991
|
+
/* @__PURE__ */ a(ae, { asChild: !0, children: /* @__PURE__ */ b(
|
|
992
|
+
P,
|
|
970
993
|
{
|
|
971
|
-
"aria-label":
|
|
994
|
+
"aria-label": n ?? "Account menu",
|
|
972
995
|
className: "h-auto py-1.5",
|
|
973
996
|
dataHook: `${e}-button`,
|
|
974
997
|
size: "lg",
|
|
975
998
|
children: [
|
|
976
999
|
o,
|
|
977
|
-
/* @__PURE__ */
|
|
1000
|
+
/* @__PURE__ */ b("div", { className: "flex min-w-0 flex-1 flex-col gap-0.5 leading-none", children: [
|
|
978
1001
|
/* @__PURE__ */ a("span", { className: "truncate text-sm font-semibold", children: t }),
|
|
979
1002
|
/* @__PURE__ */ a("span", { className: "truncate text-xs font-normal", children: r })
|
|
980
1003
|
] })
|
|
@@ -982,50 +1005,50 @@ function ba({
|
|
|
982
1005
|
}
|
|
983
1006
|
) }),
|
|
984
1007
|
/* @__PURE__ */ a(
|
|
985
|
-
|
|
1008
|
+
te,
|
|
986
1009
|
{
|
|
987
1010
|
align: d,
|
|
988
1011
|
className: "w-56",
|
|
989
1012
|
dataHook: `${e}-content`,
|
|
990
|
-
side:
|
|
1013
|
+
side: u,
|
|
991
1014
|
sideOffset: 4,
|
|
992
|
-
children:
|
|
993
|
-
/* @__PURE__ */
|
|
1015
|
+
children: m || /* @__PURE__ */ b(D, { children: [
|
|
1016
|
+
/* @__PURE__ */ b(re, { className: "flex items-center gap-2 px-1 py-1.5", children: [
|
|
994
1017
|
o,
|
|
995
|
-
/* @__PURE__ */
|
|
1018
|
+
/* @__PURE__ */ b("div", { className: "flex min-w-0 flex-1 flex-col gap-0.5 leading-none", children: [
|
|
996
1019
|
/* @__PURE__ */ a("span", { className: "truncate text-sm font-semibold", children: t }),
|
|
997
1020
|
/* @__PURE__ */ a("span", { className: "truncate text-xs font-normal", children: r })
|
|
998
1021
|
] })
|
|
999
1022
|
] }),
|
|
1000
|
-
|
|
1001
|
-
/* @__PURE__ */ a(
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
] },
|
|
1006
|
-
] },
|
|
1023
|
+
s?.map((h, f) => /* @__PURE__ */ b(i.Fragment, { children: [
|
|
1024
|
+
/* @__PURE__ */ a(oe, {}),
|
|
1025
|
+
h.map((p, c) => /* @__PURE__ */ b(se, { onClick: p.onClick, children: [
|
|
1026
|
+
p.icon,
|
|
1027
|
+
p.label
|
|
1028
|
+
] }, c))
|
|
1029
|
+
] }, f))
|
|
1007
1030
|
] })
|
|
1008
1031
|
}
|
|
1009
1032
|
)
|
|
1010
1033
|
] });
|
|
1011
1034
|
}
|
|
1012
|
-
|
|
1013
|
-
const
|
|
1035
|
+
ma.displayName = "SidebarAccountDropdown";
|
|
1036
|
+
const ha = i.forwardRef(
|
|
1014
1037
|
({
|
|
1015
1038
|
className: e,
|
|
1016
1039
|
dataHook: t,
|
|
1017
1040
|
senderName: r,
|
|
1018
1041
|
title: o,
|
|
1019
|
-
description:
|
|
1020
|
-
timestamp:
|
|
1042
|
+
description: s,
|
|
1043
|
+
timestamp: n,
|
|
1021
1044
|
...d
|
|
1022
|
-
},
|
|
1045
|
+
}, u) => /* @__PURE__ */ b(
|
|
1023
1046
|
"button",
|
|
1024
1047
|
{
|
|
1025
|
-
ref:
|
|
1048
|
+
ref: u,
|
|
1026
1049
|
className: l(
|
|
1027
1050
|
"border-sidebar-border text-sidebar-foreground hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:bg-sidebar-accent flex w-full flex-col gap-2 border-b p-4 text-left transition-colors duration-150 ease-in-out outline-none",
|
|
1028
|
-
|
|
1051
|
+
w,
|
|
1029
1052
|
e
|
|
1030
1053
|
),
|
|
1031
1054
|
"data-hook": t,
|
|
@@ -1033,62 +1056,62 @@ const pa = i.forwardRef(
|
|
|
1033
1056
|
type: "button",
|
|
1034
1057
|
...d,
|
|
1035
1058
|
children: [
|
|
1036
|
-
/* @__PURE__ */
|
|
1059
|
+
/* @__PURE__ */ b("div", { className: "flex w-full items-center justify-between text-sm", children: [
|
|
1037
1060
|
/* @__PURE__ */ a("span", { children: r }),
|
|
1038
|
-
|
|
1061
|
+
n && /* @__PURE__ */ a("span", { children: n })
|
|
1039
1062
|
] }),
|
|
1040
1063
|
/* @__PURE__ */ a("p", { className: "w-full text-sm font-medium", children: o }),
|
|
1041
|
-
|
|
1064
|
+
s && /* @__PURE__ */ a("p", { className: "w-full truncate text-xs", children: s })
|
|
1042
1065
|
]
|
|
1043
1066
|
}
|
|
1044
1067
|
)
|
|
1045
1068
|
);
|
|
1046
|
-
|
|
1069
|
+
ha.displayName = "SidebarInboxItem";
|
|
1047
1070
|
export {
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1071
|
+
Fe as Sidebar,
|
|
1072
|
+
ma as SidebarAccountDropdown,
|
|
1073
|
+
ea as SidebarCollapseIcon,
|
|
1074
|
+
Oe as SidebarCollapseIconType,
|
|
1075
|
+
Ce as SidebarCollapsible,
|
|
1076
|
+
qe as SidebarContent,
|
|
1077
|
+
ua as SidebarDrawer,
|
|
1078
|
+
Ke as SidebarFooter,
|
|
1079
|
+
Xe as SidebarGroup,
|
|
1080
|
+
Ze as SidebarGroupAction,
|
|
1081
|
+
Je as SidebarGroupContent,
|
|
1082
|
+
Ye as SidebarGroupLabel,
|
|
1083
|
+
Re as SidebarGroupLabelSize,
|
|
1084
|
+
Me as SidebarGroupLabelVariant,
|
|
1085
|
+
Ue as SidebarHeader,
|
|
1086
|
+
ba as SidebarHeaderButton,
|
|
1087
|
+
ha as SidebarInboxItem,
|
|
1088
|
+
Ge as SidebarInput,
|
|
1089
|
+
je as SidebarInset,
|
|
1090
|
+
Qe as SidebarMenu,
|
|
1091
|
+
ta as SidebarMenuAction,
|
|
1092
|
+
ra as SidebarMenuBadge,
|
|
1093
|
+
P as SidebarMenuButton,
|
|
1094
|
+
De as SidebarMenuButtonSize,
|
|
1095
|
+
Ie as SidebarMenuButtonVariant,
|
|
1096
|
+
da as SidebarMenuCollapsible,
|
|
1097
|
+
ca as SidebarMenuCollapsibleContent,
|
|
1098
|
+
la as SidebarMenuCollapsibleTrigger,
|
|
1099
|
+
j as SidebarMenuItem,
|
|
1100
|
+
oa as SidebarMenuSkeleton,
|
|
1101
|
+
G as SidebarMenuSub,
|
|
1102
|
+
ia as SidebarMenuSubButton,
|
|
1103
|
+
Ae as SidebarMenuSubButtonSize,
|
|
1104
|
+
na as SidebarMenuSubItem,
|
|
1105
|
+
Ee as SidebarMenuSubVariant,
|
|
1106
|
+
pa as SidebarPopoverMenu,
|
|
1084
1107
|
A as SidebarPopoverMenuItem,
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1108
|
+
U as SidebarPopoverTrigger,
|
|
1109
|
+
He as SidebarProvider,
|
|
1110
|
+
$e as SidebarRail,
|
|
1111
|
+
We as SidebarSeparator,
|
|
1112
|
+
Se as SidebarSide,
|
|
1113
|
+
fa as SidebarSwitcher,
|
|
1114
|
+
$ as SidebarTrigger,
|
|
1115
|
+
ye as SidebarVariant,
|
|
1116
|
+
k as useSidebar
|
|
1094
1117
|
};
|