@brightlocal/ui-components 2.22.0 → 2.24.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/AI_USAGE.md +1 -1
- package/README.md +4 -2
- package/component-meta.json +134 -25
- package/deprecations.json +22 -0
- package/dist/alert.cjs +1 -1
- package/dist/alert.d.ts.map +1 -1
- package/dist/alert.js +32 -35
- package/dist/blocks/sidebar.cjs +1 -1
- package/dist/blocks/sidebar.d.ts.map +1 -1
- package/dist/blocks/sidebar.js +151 -156
- package/dist/brand-illustration-motif.cjs +1 -0
- package/dist/brand-illustration-motif.d.ts +55 -0
- package/dist/brand-illustration-motif.d.ts.map +1 -0
- package/dist/brand-illustration-motif.js +67 -0
- package/dist/chart.cjs +7 -7
- package/dist/chart.d.ts +287 -2
- package/dist/chart.d.ts.map +1 -1
- package/dist/chart.js +408 -152
- package/dist/combobox.cjs +3 -3
- package/dist/combobox.d.ts +14 -1
- package/dist/combobox.d.ts.map +1 -1
- package/dist/combobox.js +387 -376
- package/dist/context-menu.cjs +1 -1
- package/dist/context-menu.d.ts.map +1 -1
- package/dist/context-menu.js +111 -109
- package/dist/data-table.cjs +1 -0
- package/dist/{blocks/data-table.d.ts → data-table.d.ts} +159 -4
- package/dist/data-table.d.ts.map +1 -0
- package/dist/data-table.js +721 -0
- package/dist/dropdown-menu.cjs +1 -1
- package/dist/dropdown-menu.d.ts.map +1 -1
- package/dist/dropdown-menu.js +109 -121
- package/dist/field.cjs +1 -1
- package/dist/field.d.ts +16 -1
- package/dist/field.d.ts.map +1 -1
- package/dist/field.js +23 -7
- package/dist/global-layout.cjs +1 -1
- package/dist/global-layout.d.ts +32 -2
- package/dist/global-layout.d.ts.map +1 -1
- package/dist/global-layout.js +179 -109
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +526 -509
- package/dist/label.cjs +1 -1
- package/dist/label.d.ts +9 -0
- package/dist/label.d.ts.map +1 -1
- package/dist/label.js +26 -22
- package/dist/lib/spring-settle.cjs +1 -0
- package/dist/lib/spring-settle.d.ts +20 -0
- package/dist/lib/spring-settle.d.ts.map +1 -0
- package/dist/lib/spring-settle.js +4 -0
- package/dist/link.cjs +1 -1
- package/dist/link.d.ts +3 -2
- package/dist/link.d.ts.map +1 -1
- package/dist/link.js +22 -11
- package/dist/loading.cjs +1 -0
- package/dist/loading.d.ts +47 -0
- package/dist/loading.d.ts.map +1 -0
- package/dist/loading.js +163 -0
- package/dist/map.cjs +1 -1
- package/dist/map.d.ts.map +1 -1
- package/dist/map.js +1 -1
- package/dist/menubar.cjs +1 -1
- package/dist/menubar.d.ts.map +1 -1
- package/dist/menubar.js +97 -99
- package/dist/popover.cjs +1 -1
- package/dist/popover.d.ts.map +1 -1
- package/dist/popover.js +27 -26
- package/dist/select.cjs +2 -2
- package/dist/select.d.ts +16 -1
- package/dist/select.d.ts.map +1 -1
- package/dist/select.js +112 -85
- package/dist/table.cjs +1 -1
- package/dist/table.d.ts +29 -0
- package/dist/table.d.ts.map +1 -1
- package/dist/table.js +2 -2
- package/dist/text-reveal-motion.cjs +1 -1
- package/dist/text-reveal-motion.d.ts.map +1 -1
- package/dist/text-reveal-motion.js +236 -219
- package/dist/tooltip.cjs +1 -1
- package/dist/tooltip.d.ts +21 -2
- package/dist/tooltip.d.ts.map +1 -1
- package/dist/tooltip.js +35 -32
- package/dist/typography.cjs +1 -1
- package/dist/typography.d.ts +20 -4
- package/dist/typography.d.ts.map +1 -1
- package/dist/typography.js +263 -228
- package/package.json +7 -7
- package/src/blocks/sidebar.tsx +11 -23
- package/src/components/alert.tsx +10 -17
- package/src/components/brand-illustration-motif.tsx +143 -0
- package/src/components/chart.tsx +632 -1
- package/src/components/combobox.tsx +47 -0
- package/src/components/context-menu.tsx +8 -3
- package/src/{blocks → components}/data-table.tsx +272 -18
- package/src/components/dropdown-menu.tsx +6 -15
- package/src/components/field.tsx +31 -0
- package/src/components/global-layout.tsx +144 -5
- package/src/components/label.tsx +13 -1
- package/src/components/link.tsx +13 -1
- package/src/components/loading.tsx +355 -0
- package/src/components/map.tsx +3 -1
- package/src/components/menubar.tsx +6 -5
- package/src/components/popover.tsx +6 -2
- package/src/components/select.tsx +87 -10
- package/src/components/table.tsx +31 -2
- package/src/components/text-reveal-motion.tsx +90 -64
- package/src/components/tooltip.tsx +28 -3
- package/src/components/typography.tsx +74 -18
- package/src/index.ts +3 -1
- package/src/lib/spring-settle.ts +19 -0
- package/dist/blocks/data-table.cjs +0 -1
- package/dist/blocks/data-table.d.ts.map +0 -1
- package/dist/blocks/data-table.js +0 -654
package/dist/blocks/sidebar.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { jsx as a, jsxs as
|
|
1
|
+
import { jsx as a, jsxs as c, Fragment as M } from "react/jsx-runtime";
|
|
2
2
|
import * as i from "react";
|
|
3
3
|
import { createPortal as q } from "react-dom";
|
|
4
4
|
import { Slot as S } from "@radix-ui/react-slot";
|
|
5
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
|
|
6
|
+
import { ChevronRight as E, Ellipsis as X, Minus as V, Plus as _, ChevronsUpDown as Y, ChevronDown as P, Menu as Z, PanelLeft as J } from "@brightlocal/icons";
|
|
7
7
|
import { cn as l } from "@brightlocal/ui-components/lib/utils";
|
|
8
|
-
import { Button as
|
|
8
|
+
import { Button as F } from "../button.js";
|
|
9
9
|
import { Input as Q } from "../input.js";
|
|
10
|
-
import { Separator as
|
|
10
|
+
import { Separator as T } from "../separator.js";
|
|
11
11
|
import { DropdownMenu as ee, DropdownMenuTrigger as ae, DropdownMenuContent as te, DropdownMenuLabel as re, DropdownMenuSeparator as oe, DropdownMenuItem as se } from "../dropdown-menu.js";
|
|
12
12
|
import { Popover as ne, PopoverTrigger as ie, PopoverContent as de } from "../popover.js";
|
|
13
13
|
import { Sheet as le, SheetContent as ce, SheetTitle as ue, SheetDescription as be } from "../sheet.js";
|
|
@@ -17,16 +17,16 @@ import { ScrollArea as ge } from "../scroll-area.js";
|
|
|
17
17
|
import { Skeleton as B } from "../skeleton.js";
|
|
18
18
|
import { Tooltip as xe, TooltipTrigger as ve, TooltipContent as we, TooltipProvider as Ne } from "../tooltip.js";
|
|
19
19
|
import { useIsBelowBreakpoint as ke } from "../hooks/use-breakpoint.js";
|
|
20
|
-
const
|
|
20
|
+
const v = "focus-visible:[box-shadow:0_0_0_1px_color-mix(in_srgb,var(--color-sidebar-ring)_50%,transparent),0_0_0_3px_rgba(0,0,0,0.1)]";
|
|
21
21
|
var ye = /* @__PURE__ */ ((e) => (e.LEFT = "left", e))(ye || {}), Se = /* @__PURE__ */ ((e) => (e.SIDEBAR = "sidebar", e))(Se || {}), Ce = /* @__PURE__ */ ((e) => (e.OFFCANVAS = "offcanvas", e.ICON = "icon", e.NONE = "none", e))(Ce || {}), Re = /* @__PURE__ */ ((e) => (e.DEFAULT = "default", e.SM = "sm", e.XS = "xs", e))(Re || {}), Me = /* @__PURE__ */ ((e) => (e.DEFAULT = "default", e.COLLAPSIBLE = "collapsible", e.ACTION = "action", e))(Me || {}), Ie = /* @__PURE__ */ ((e) => (e.SIMPLE = "simple", e.COLLAPSIBLE = "collapsible", e.DROPDOWN = "dropdown", e.BADGE = "badge", e.BIG_ICON = "bigIcon", e.CHECKBOX = "checkbox", e))(Ie || {}), De = /* @__PURE__ */ ((e) => (e.DEFAULT = "default", e.SM = "sm", e.LG = "lg", e))(De || {}), Ee = /* @__PURE__ */ ((e) => (e.DEFAULT = "default", e.BORDER = "border", e.INDENT = "indent", e))(Ee || {}), Ae = /* @__PURE__ */ ((e) => (e.SM = "sm", e.MD = "md", e))(Ae || {}), Oe = /* @__PURE__ */ ((e) => (e.CARET = "caret", e.HORIZONTAL = "horizontal", e.VERTICAL = "vertical", e.UP_DOWN = "upDown", e.PLUS_MINUS = "plusMinus", e.DOTS = "dots", e))(Oe || {});
|
|
22
|
-
const _e = "sidebar:state",
|
|
22
|
+
const _e = "sidebar:state", Pe = 3600 * 24 * 7, Te = "232px", ze = "336px", Le = "48px", Be = "b", H = i.createContext(null);
|
|
23
23
|
function k() {
|
|
24
|
-
const e = i.useContext(
|
|
24
|
+
const e = i.useContext(H);
|
|
25
25
|
if (!e)
|
|
26
26
|
throw new Error("useSidebar must be used within a SidebarProvider.");
|
|
27
27
|
return e;
|
|
28
28
|
}
|
|
29
|
-
const
|
|
29
|
+
const Fe = i.forwardRef(
|
|
30
30
|
({
|
|
31
31
|
dataHook: e,
|
|
32
32
|
trackingEl: t,
|
|
@@ -35,31 +35,31 @@ const He = i.forwardRef(
|
|
|
35
35
|
open: s,
|
|
36
36
|
onOpenChange: n,
|
|
37
37
|
className: d,
|
|
38
|
-
style:
|
|
38
|
+
style: u,
|
|
39
39
|
children: m,
|
|
40
|
-
...
|
|
41
|
-
},
|
|
42
|
-
const
|
|
43
|
-
(
|
|
44
|
-
const N = typeof
|
|
45
|
-
n ? n(N) : K(N), document.cookie = `${_e}=${N}; path=/; max-age=${
|
|
40
|
+
...p
|
|
41
|
+
}, b) => {
|
|
42
|
+
const f = ke("lg"), [h, w] = i.useState(!1), [g, I] = i.useState(null), [D, K] = i.useState(o), y = s ?? D, C = i.useCallback(
|
|
43
|
+
(x) => {
|
|
44
|
+
const N = typeof x == "function" ? x(y) : x;
|
|
45
|
+
n ? n(N) : K(N), document.cookie = `${_e}=${N}; path=/; max-age=${Pe}`;
|
|
46
46
|
},
|
|
47
47
|
[n, y]
|
|
48
|
-
), R = i.useCallback(() =>
|
|
48
|
+
), R = i.useCallback(() => f ? w((x) => !x) : C((x) => !x), [f, C, w]);
|
|
49
49
|
i.useEffect(() => {
|
|
50
|
-
const
|
|
50
|
+
const x = (N) => {
|
|
51
51
|
N.key === Be && (N.metaKey || N.ctrlKey) && (N.preventDefault(), R());
|
|
52
52
|
};
|
|
53
|
-
return window.addEventListener("keydown",
|
|
53
|
+
return window.addEventListener("keydown", x), () => window.removeEventListener("keydown", x);
|
|
54
54
|
}, [R]);
|
|
55
55
|
const L = y ? "expanded" : "collapsed", W = i.useMemo(
|
|
56
56
|
() => ({
|
|
57
57
|
state: L,
|
|
58
58
|
open: y,
|
|
59
59
|
setOpen: C,
|
|
60
|
-
isMobile:
|
|
61
|
-
openMobile:
|
|
62
|
-
setOpenMobile:
|
|
60
|
+
isMobile: f,
|
|
61
|
+
openMobile: h,
|
|
62
|
+
setOpenMobile: w,
|
|
63
63
|
toggleSidebar: R,
|
|
64
64
|
footerPortalEl: g,
|
|
65
65
|
setFooterPortalEl: I
|
|
@@ -68,17 +68,17 @@ const He = i.forwardRef(
|
|
|
68
68
|
L,
|
|
69
69
|
y,
|
|
70
70
|
C,
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
71
|
+
f,
|
|
72
|
+
h,
|
|
73
|
+
w,
|
|
74
74
|
R,
|
|
75
75
|
g
|
|
76
76
|
]
|
|
77
77
|
);
|
|
78
|
-
return /* @__PURE__ */ a(
|
|
78
|
+
return /* @__PURE__ */ a(H.Provider, { value: W, children: /* @__PURE__ */ a(Ne, { delayDuration: 0, children: /* @__PURE__ */ a(
|
|
79
79
|
"div",
|
|
80
80
|
{
|
|
81
|
-
ref:
|
|
81
|
+
ref: b,
|
|
82
82
|
className: l(
|
|
83
83
|
"group/sidebar-wrapper flex min-h-svh w-full",
|
|
84
84
|
d
|
|
@@ -88,18 +88,18 @@ const He = i.forwardRef(
|
|
|
88
88
|
"data-tracking-el": t || "sidebar-provider",
|
|
89
89
|
"data-tracking-label": r,
|
|
90
90
|
style: {
|
|
91
|
-
"--sidebar-width":
|
|
91
|
+
"--sidebar-width": Te,
|
|
92
92
|
"--sidebar-width-icon": Le,
|
|
93
|
-
...
|
|
93
|
+
...u
|
|
94
94
|
},
|
|
95
|
-
...
|
|
95
|
+
...p,
|
|
96
96
|
children: m
|
|
97
97
|
}
|
|
98
98
|
) }) });
|
|
99
99
|
}
|
|
100
100
|
);
|
|
101
|
-
|
|
102
|
-
const
|
|
101
|
+
Fe.displayName = "SidebarProvider";
|
|
102
|
+
const He = i.forwardRef(
|
|
103
103
|
({
|
|
104
104
|
dataHook: e,
|
|
105
105
|
trackingEl: t,
|
|
@@ -109,29 +109,29 @@ const Fe = i.forwardRef(
|
|
|
109
109
|
collapsible: n = "offcanvas",
|
|
110
110
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars -- accepted for backward compat
|
|
111
111
|
embedded: d,
|
|
112
|
-
mobileTitle:
|
|
112
|
+
mobileTitle: u,
|
|
113
113
|
mobileDescription: m,
|
|
114
|
-
className:
|
|
115
|
-
children:
|
|
116
|
-
...
|
|
117
|
-
},
|
|
118
|
-
const { isMobile:
|
|
114
|
+
className: p,
|
|
115
|
+
children: b,
|
|
116
|
+
...f
|
|
117
|
+
}, h) => {
|
|
118
|
+
const { isMobile: w, state: g, openMobile: I, setOpenMobile: D } = k();
|
|
119
119
|
return n === "none" ? /* @__PURE__ */ a(
|
|
120
120
|
"div",
|
|
121
121
|
{
|
|
122
|
-
ref:
|
|
122
|
+
ref: h,
|
|
123
123
|
className: l(
|
|
124
124
|
"text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col",
|
|
125
|
-
|
|
125
|
+
p
|
|
126
126
|
),
|
|
127
127
|
"data-hook": e,
|
|
128
128
|
"data-slot": "sidebar",
|
|
129
129
|
"data-tracking-el": t || "sidebar",
|
|
130
130
|
"data-tracking-label": r,
|
|
131
|
-
...
|
|
132
|
-
children:
|
|
131
|
+
...f,
|
|
132
|
+
children: b
|
|
133
133
|
}
|
|
134
|
-
) :
|
|
134
|
+
) : w ? /* @__PURE__ */ a(le, { open: I, onOpenChange: D, children: /* @__PURE__ */ c(
|
|
135
135
|
ce,
|
|
136
136
|
{
|
|
137
137
|
className: "bg-sidebar-background text-sidebar-foreground w-(--sidebar-width) p-6",
|
|
@@ -140,24 +140,24 @@ const Fe = i.forwardRef(
|
|
|
140
140
|
"data-sidebar": "sidebar",
|
|
141
141
|
side: "left",
|
|
142
142
|
style: {
|
|
143
|
-
"--sidebar-width": `min(${
|
|
143
|
+
"--sidebar-width": `min(${ze}, calc(100vw - 40px))`
|
|
144
144
|
},
|
|
145
145
|
children: [
|
|
146
|
-
/* @__PURE__ */ a(ue, { className: "sr-only", children:
|
|
146
|
+
/* @__PURE__ */ a(ue, { className: "sr-only", children: u ?? "Navigation" }),
|
|
147
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:
|
|
148
|
+
/* @__PURE__ */ a("div", { className: "flex h-full w-full flex-col", children: b })
|
|
149
149
|
]
|
|
150
150
|
}
|
|
151
151
|
) }) : /* @__PURE__ */ a(
|
|
152
152
|
"div",
|
|
153
153
|
{
|
|
154
|
-
ref:
|
|
154
|
+
ref: h,
|
|
155
155
|
className: l(
|
|
156
156
|
"group text-sidebar-foreground flex h-full shrink-0 flex-col overflow-hidden transition-[width] duration-200 ease-linear",
|
|
157
157
|
g === "expanded" && "w-(--sidebar-width)",
|
|
158
158
|
n === "icon" && g === "collapsed" && "w-(--sidebar-width-icon)",
|
|
159
159
|
n === "offcanvas" && g === "collapsed" && "w-0",
|
|
160
|
-
|
|
160
|
+
p
|
|
161
161
|
),
|
|
162
162
|
"data-collapsible": g === "collapsed" ? n : "",
|
|
163
163
|
"data-hook": e,
|
|
@@ -167,13 +167,13 @@ const Fe = i.forwardRef(
|
|
|
167
167
|
"data-tracking-el": t || "sidebar",
|
|
168
168
|
"data-tracking-label": r,
|
|
169
169
|
"data-variant": s,
|
|
170
|
-
...
|
|
171
|
-
children:
|
|
170
|
+
...f,
|
|
171
|
+
children: b
|
|
172
172
|
}
|
|
173
173
|
);
|
|
174
174
|
}
|
|
175
175
|
);
|
|
176
|
-
|
|
176
|
+
He.displayName = "Sidebar";
|
|
177
177
|
const $ = i.forwardRef(
|
|
178
178
|
({
|
|
179
179
|
className: e,
|
|
@@ -183,9 +183,9 @@ const $ = i.forwardRef(
|
|
|
183
183
|
children: s,
|
|
184
184
|
...n
|
|
185
185
|
}, d) => {
|
|
186
|
-
const { toggleSidebar:
|
|
187
|
-
return /* @__PURE__ */
|
|
188
|
-
|
|
186
|
+
const { toggleSidebar: u } = k(), m = o ?? "Toggle sidebar";
|
|
187
|
+
return /* @__PURE__ */ c(
|
|
188
|
+
F,
|
|
189
189
|
{
|
|
190
190
|
ref: d,
|
|
191
191
|
iconOnly: !0,
|
|
@@ -195,8 +195,8 @@ const $ = i.forwardRef(
|
|
|
195
195
|
dataHook: r,
|
|
196
196
|
size: "sm",
|
|
197
197
|
variant: "ghost",
|
|
198
|
-
onClick: (
|
|
199
|
-
t?.(
|
|
198
|
+
onClick: (p) => {
|
|
199
|
+
t?.(p), u();
|
|
200
200
|
},
|
|
201
201
|
...n,
|
|
202
202
|
children: [
|
|
@@ -258,7 +258,7 @@ const Ge = i.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ a(
|
|
|
258
258
|
ref: r,
|
|
259
259
|
className: l(
|
|
260
260
|
"bg-background h-8 w-full shadow-none",
|
|
261
|
-
|
|
261
|
+
v,
|
|
262
262
|
e
|
|
263
263
|
),
|
|
264
264
|
"data-slot": "sidebar-input",
|
|
@@ -285,9 +285,9 @@ const Ue = i.forwardRef(
|
|
|
285
285
|
Ue.displayName = "SidebarHeader";
|
|
286
286
|
const Ke = i.forwardRef(
|
|
287
287
|
({ className: e, dataHook: t, separator: r = !0, ...o }, s) => {
|
|
288
|
-
const { footerPortalEl: n } = k(), d = /* @__PURE__ */
|
|
288
|
+
const { footerPortalEl: n } = k(), d = /* @__PURE__ */ c(M, { children: [
|
|
289
289
|
r && /* @__PURE__ */ a(
|
|
290
|
-
|
|
290
|
+
T,
|
|
291
291
|
{
|
|
292
292
|
className: "group-data-[collapsible=icon]:mx-0",
|
|
293
293
|
"data-slot": "sidebar-footer-separator",
|
|
@@ -310,7 +310,7 @@ const Ke = i.forwardRef(
|
|
|
310
310
|
);
|
|
311
311
|
Ke.displayName = "SidebarFooter";
|
|
312
312
|
const We = i.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ a(
|
|
313
|
-
|
|
313
|
+
T,
|
|
314
314
|
{
|
|
315
315
|
ref: r,
|
|
316
316
|
className: l(
|
|
@@ -324,26 +324,21 @@ const We = i.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ a(
|
|
|
324
324
|
We.displayName = "SidebarSeparator";
|
|
325
325
|
const qe = i.forwardRef(
|
|
326
326
|
({ className: e, dataHook: t, ariaLabel: r = "Sidebar", children: o, ...s }, n) => {
|
|
327
|
-
const { isMobile: d, setFooterPortalEl:
|
|
328
|
-
(
|
|
329
|
-
const
|
|
327
|
+
const { isMobile: d, setFooterPortalEl: u } = k(), m = i.useCallback(
|
|
328
|
+
(p) => {
|
|
329
|
+
const b = p?.querySelector(
|
|
330
330
|
'[data-slot="scroll-area-viewport"]'
|
|
331
331
|
);
|
|
332
|
-
|
|
332
|
+
b && (b.tabIndex = -1), typeof n == "function" ? n(p) : n && (n.current = p);
|
|
333
333
|
},
|
|
334
334
|
[n]
|
|
335
335
|
);
|
|
336
|
-
return
|
|
337
|
-
const c = m.current;
|
|
338
|
-
if (!c) return;
|
|
339
|
-
const x = () => f(c.scrollHeight > c.clientHeight), g = new ResizeObserver(x);
|
|
340
|
-
return g.observe(c), c.firstElementChild && g.observe(c.firstElementChild), () => g.disconnect();
|
|
341
|
-
}, []), /* @__PURE__ */ u(
|
|
336
|
+
return /* @__PURE__ */ c(
|
|
342
337
|
ge,
|
|
343
338
|
{
|
|
344
|
-
ref:
|
|
339
|
+
ref: m,
|
|
345
340
|
className: l(
|
|
346
|
-
"min-h-0 flex-1 group-data-[collapsible=icon]:overflow-hidden **:data-[slot=scroll-area-scrollbar]:w-1
|
|
341
|
+
"min-h-0 flex-1 group-data-[collapsible=icon]:overflow-hidden **:data-[slot=scroll-area-scrollbar]:w-1 **:data-[slot=scroll-area-scrollbar]:border-l-0 **:data-[slot=scroll-area-scrollbar]:p-0 [&_[data-slot=scroll-area-viewport]>div]:flex! [&_[data-slot=scroll-area-viewport]>div]:min-h-full [&_[data-slot=scroll-area-viewport]>div]:flex-col",
|
|
347
342
|
e
|
|
348
343
|
),
|
|
349
344
|
dataHook: t ?? "sidebar-content-scroll",
|
|
@@ -354,12 +349,12 @@ const qe = i.forwardRef(
|
|
|
354
349
|
"nav",
|
|
355
350
|
{
|
|
356
351
|
"aria-label": r,
|
|
357
|
-
className:
|
|
352
|
+
className: "flex flex-col gap-2",
|
|
358
353
|
"data-slot": "sidebar-content",
|
|
359
354
|
children: o
|
|
360
355
|
}
|
|
361
356
|
),
|
|
362
|
-
/* @__PURE__ */ a("div", { ref:
|
|
357
|
+
/* @__PURE__ */ a("div", { ref: u, className: "mt-auto" })
|
|
363
358
|
]
|
|
364
359
|
}
|
|
365
360
|
);
|
|
@@ -371,7 +366,7 @@ const Xe = i.forwardRef(
|
|
|
371
366
|
"div",
|
|
372
367
|
{
|
|
373
368
|
ref: o,
|
|
374
|
-
className: l("relative flex w-full min-w-0 flex-col
|
|
369
|
+
className: l("relative flex w-full min-w-0 flex-col py-2", e),
|
|
375
370
|
"data-hook": t,
|
|
376
371
|
"data-slot": "sidebar-group",
|
|
377
372
|
...r
|
|
@@ -382,7 +377,7 @@ Xe.displayName = "SidebarGroup";
|
|
|
382
377
|
const Ve = O(
|
|
383
378
|
[
|
|
384
379
|
"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",
|
|
385
|
-
|
|
380
|
+
v
|
|
386
381
|
],
|
|
387
382
|
{
|
|
388
383
|
variants: {
|
|
@@ -411,32 +406,32 @@ const Ve = O(
|
|
|
411
406
|
variant: s = "default",
|
|
412
407
|
isOpen: n = !1,
|
|
413
408
|
onToggle: d,
|
|
414
|
-
onAction:
|
|
409
|
+
onAction: u,
|
|
415
410
|
children: m,
|
|
416
|
-
...
|
|
417
|
-
},
|
|
418
|
-
const
|
|
419
|
-
s === "collapsible" && d ? d() : s === "action" &&
|
|
420
|
-
},
|
|
421
|
-
(g.key === "Enter" || g.key === " ") && (g.preventDefault(),
|
|
411
|
+
...p
|
|
412
|
+
}, b) => {
|
|
413
|
+
const f = r ? S : "div", h = () => {
|
|
414
|
+
s === "collapsible" && d ? d() : s === "action" && u && u();
|
|
415
|
+
}, w = (g) => {
|
|
416
|
+
(g.key === "Enter" || g.key === " ") && (g.preventDefault(), h());
|
|
422
417
|
};
|
|
423
|
-
return /* @__PURE__ */
|
|
424
|
-
|
|
418
|
+
return /* @__PURE__ */ c(
|
|
419
|
+
f,
|
|
425
420
|
{
|
|
426
|
-
ref:
|
|
421
|
+
ref: b,
|
|
427
422
|
className: l(Ve({ size: o, variant: s }), e),
|
|
428
423
|
"data-hook": t,
|
|
429
424
|
"data-slot": "sidebar-group-label",
|
|
430
425
|
"data-variant": s,
|
|
431
426
|
role: s !== "default" ? "button" : void 0,
|
|
432
427
|
tabIndex: s !== "default" ? 0 : void 0,
|
|
433
|
-
onClick: s !== "default" ?
|
|
434
|
-
onKeyDown: s !== "default" ?
|
|
435
|
-
...
|
|
428
|
+
onClick: s !== "default" ? h : void 0,
|
|
429
|
+
onKeyDown: s !== "default" ? w : void 0,
|
|
430
|
+
...p,
|
|
436
431
|
children: [
|
|
437
432
|
/* @__PURE__ */ a("span", { children: m }),
|
|
438
433
|
s === "collapsible" && /* @__PURE__ */ a(
|
|
439
|
-
|
|
434
|
+
P,
|
|
440
435
|
{
|
|
441
436
|
className: l(
|
|
442
437
|
"shrink-0 transition-transform duration-200",
|
|
@@ -458,7 +453,7 @@ const Ze = i.forwardRef(({ className: e, asChild: t = !1, ...r }, o) => /* @__PU
|
|
|
458
453
|
ref: o,
|
|
459
454
|
className: l(
|
|
460
455
|
"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",
|
|
461
|
-
|
|
456
|
+
v,
|
|
462
457
|
// Increases the hit area of the button on mobile.
|
|
463
458
|
"after:absolute after:-inset-2 after:md:hidden",
|
|
464
459
|
"group-data-[collapsible=icon]:hidden",
|
|
@@ -527,7 +522,7 @@ const ea = i.forwardRef(
|
|
|
527
522
|
case "horizontal":
|
|
528
523
|
return /* @__PURE__ */ a(E, { ...n });
|
|
529
524
|
case "vertical":
|
|
530
|
-
return /* @__PURE__ */ a(
|
|
525
|
+
return /* @__PURE__ */ a(P, { ...n });
|
|
531
526
|
case "upDown":
|
|
532
527
|
return /* @__PURE__ */ a(Y, { ...n });
|
|
533
528
|
case "plusMinus":
|
|
@@ -542,8 +537,8 @@ const ea = i.forwardRef(
|
|
|
542
537
|
ea.displayName = "SidebarCollapseIcon";
|
|
543
538
|
const aa = O(
|
|
544
539
|
[
|
|
545
|
-
"peer/menu-button flex w-full items-center gap-
|
|
546
|
-
|
|
540
|
+
"peer/menu-button flex w-full items-center gap-3 overflow-hidden rounded-full px-6 py-2 text-left text-sm font-medium outline-none transition-[color,background-color,border-color,box-shadow,opacity,width,height,padding] duration-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:not([data-slot])]:truncate [&>svg]:shrink-0 [&>svg]:opacity-70 data-[active=true]:[&>svg]:opacity-100 group-data-[collapsible=icon]:[&>span]:hidden group-data-[collapsible=icon]:[&>div]:hidden",
|
|
541
|
+
v
|
|
547
542
|
],
|
|
548
543
|
{
|
|
549
544
|
variants: {
|
|
@@ -553,9 +548,9 @@ const aa = O(
|
|
|
553
548
|
// Collapsible - has a chevron indicator that rotates when open
|
|
554
549
|
collapsible: "[&>[data-collapse-icon]]:ml-auto [&>[data-collapse-icon]]:transition-transform data-[state=open]:[&>[data-collapse-icon]]:rotate-90",
|
|
555
550
|
// Dropdown - has action menu (dots) on hover
|
|
556
|
-
dropdown: "group-has-[[data-sidebar
|
|
551
|
+
dropdown: "group-has-[[data-slot=sidebar-menu-action]]/menu-item:pr-8",
|
|
557
552
|
// Badge - has a number badge on the right (handled via SidebarMenuBadge)
|
|
558
|
-
badge: "group-has-[[data-sidebar
|
|
553
|
+
badge: "group-has-[[data-slot=sidebar-menu-badge]]/menu-item:pr-16",
|
|
559
554
|
// Big Icon - larger icon with title and subtitle
|
|
560
555
|
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",
|
|
561
556
|
// Checkbox - has a checkbox indicator
|
|
@@ -572,7 +567,7 @@ const aa = O(
|
|
|
572
567
|
size: "default"
|
|
573
568
|
}
|
|
574
569
|
}
|
|
575
|
-
),
|
|
570
|
+
), z = i.forwardRef(
|
|
576
571
|
({
|
|
577
572
|
asChild: e = !1,
|
|
578
573
|
isActive: t = !1,
|
|
@@ -581,10 +576,10 @@ const aa = O(
|
|
|
581
576
|
tooltip: s,
|
|
582
577
|
className: n,
|
|
583
578
|
dataHook: d,
|
|
584
|
-
...
|
|
579
|
+
...u
|
|
585
580
|
}, m) => {
|
|
586
|
-
const
|
|
587
|
-
|
|
581
|
+
const p = e ? S : "button", { isMobile: b, state: f } = k(), h = /* @__PURE__ */ a(
|
|
582
|
+
p,
|
|
588
583
|
{
|
|
589
584
|
ref: m,
|
|
590
585
|
className: l(aa({ variant: r, size: o }), n),
|
|
@@ -593,14 +588,14 @@ const aa = O(
|
|
|
593
588
|
"data-size": o,
|
|
594
589
|
"data-slot": "sidebar-menu-button",
|
|
595
590
|
"data-variant": r,
|
|
596
|
-
...
|
|
591
|
+
...u
|
|
597
592
|
}
|
|
598
593
|
);
|
|
599
594
|
return s ? (typeof s == "string" && (s = {
|
|
600
595
|
children: s,
|
|
601
596
|
dataHook: "sidebar-menu-button-tooltip"
|
|
602
|
-
}), /* @__PURE__ */
|
|
603
|
-
/* @__PURE__ */ a(ve, { asChild: !0, children:
|
|
597
|
+
}), /* @__PURE__ */ c(xe, { children: [
|
|
598
|
+
/* @__PURE__ */ a(ve, { asChild: !0, children: h }),
|
|
604
599
|
/* @__PURE__ */ a(
|
|
605
600
|
we,
|
|
606
601
|
{
|
|
@@ -611,22 +606,22 @@ const aa = O(
|
|
|
611
606
|
"bg-foreground text-background border-none",
|
|
612
607
|
s.className
|
|
613
608
|
),
|
|
614
|
-
hidden:
|
|
609
|
+
hidden: f !== "collapsed" || b,
|
|
615
610
|
side: "right",
|
|
616
611
|
sideOffset: 8
|
|
617
612
|
}
|
|
618
613
|
)
|
|
619
|
-
] })) :
|
|
614
|
+
] })) : h;
|
|
620
615
|
}
|
|
621
616
|
);
|
|
622
|
-
|
|
617
|
+
z.displayName = "SidebarMenuButton";
|
|
623
618
|
const ta = i.forwardRef(({ className: e, asChild: t = !1, showOnHover: r = !1, ...o }, s) => /* @__PURE__ */ a(
|
|
624
619
|
t ? S : "button",
|
|
625
620
|
{
|
|
626
621
|
ref: s,
|
|
627
622
|
className: l(
|
|
628
623
|
"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",
|
|
629
|
-
|
|
624
|
+
v,
|
|
630
625
|
// Increases the hit area of the button on mobile.
|
|
631
626
|
"after:absolute after:-inset-2 after:md:hidden",
|
|
632
627
|
"peer-data-[size=sm]/menu-button:top-1",
|
|
@@ -660,11 +655,11 @@ ra.displayName = "SidebarMenuBadge";
|
|
|
660
655
|
const oa = i.forwardRef(({ className: e, showIcon: t = !1, ...r }, o) => {
|
|
661
656
|
const s = i.useId(), n = i.useMemo(() => {
|
|
662
657
|
let d = 0;
|
|
663
|
-
for (let
|
|
664
|
-
d = (d << 5) - d + s.charCodeAt(
|
|
658
|
+
for (let u = 0; u < s.length; u++)
|
|
659
|
+
d = (d << 5) - d + s.charCodeAt(u), d |= 0;
|
|
665
660
|
return `${Math.abs(d) % 40 + 50}%`;
|
|
666
661
|
}, [s]);
|
|
667
|
-
return /* @__PURE__ */
|
|
662
|
+
return /* @__PURE__ */ c(
|
|
668
663
|
"div",
|
|
669
664
|
{
|
|
670
665
|
ref: o,
|
|
@@ -744,8 +739,8 @@ const ia = i.forwardRef(
|
|
|
744
739
|
{
|
|
745
740
|
ref: d,
|
|
746
741
|
className: l(
|
|
747
|
-
"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:
|
|
748
|
-
|
|
742
|
+
"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:not([data-slot])]:truncate [&>svg]:shrink-0",
|
|
743
|
+
v,
|
|
749
744
|
"data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",
|
|
750
745
|
t === "sm" && "text-xs",
|
|
751
746
|
t === "md" && "text-sm",
|
|
@@ -784,8 +779,8 @@ function da({
|
|
|
784
779
|
) });
|
|
785
780
|
}
|
|
786
781
|
da.displayName = "SidebarMenuCollapsible";
|
|
787
|
-
const la = i.forwardRef(({ children: e, className: t, ...r }, o) => /* @__PURE__ */ a(he.Trigger, { asChild: !0, children: /* @__PURE__ */
|
|
788
|
-
|
|
782
|
+
const la = i.forwardRef(({ children: e, className: t, ...r }, o) => /* @__PURE__ */ a(he.Trigger, { asChild: !0, children: /* @__PURE__ */ c(
|
|
783
|
+
z,
|
|
789
784
|
{
|
|
790
785
|
ref: o,
|
|
791
786
|
className: t,
|
|
@@ -833,14 +828,14 @@ const ua = i.forwardRef(
|
|
|
833
828
|
ua.displayName = "SidebarDrawer";
|
|
834
829
|
const ba = i.forwardRef(
|
|
835
830
|
({ className: e, dataHook: t = "sidebar-header-button", children: r, ...o }, s) => /* @__PURE__ */ a(
|
|
836
|
-
|
|
831
|
+
F,
|
|
837
832
|
{
|
|
838
833
|
ref: s,
|
|
839
834
|
...o,
|
|
840
835
|
iconOnly: !0,
|
|
841
836
|
className: l(
|
|
842
837
|
"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground size-7 rounded-md shadow-none",
|
|
843
|
-
|
|
838
|
+
v,
|
|
844
839
|
e
|
|
845
840
|
),
|
|
846
841
|
"data-slot": "sidebar-header-button",
|
|
@@ -860,14 +855,14 @@ const U = i.forwardRef(
|
|
|
860
855
|
triggerAriaLabel: o,
|
|
861
856
|
children: s,
|
|
862
857
|
...n
|
|
863
|
-
}, d) => /* @__PURE__ */
|
|
858
|
+
}, d) => /* @__PURE__ */ c(
|
|
864
859
|
"button",
|
|
865
860
|
{
|
|
866
861
|
ref: d,
|
|
867
862
|
"aria-label": o ?? "Switch workspace",
|
|
868
863
|
className: l(
|
|
869
864
|
"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",
|
|
870
|
-
|
|
865
|
+
v,
|
|
871
866
|
e
|
|
872
867
|
),
|
|
873
868
|
"data-hook": t,
|
|
@@ -877,19 +872,19 @@ const U = i.forwardRef(
|
|
|
877
872
|
children: [
|
|
878
873
|
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 }),
|
|
879
874
|
/* @__PURE__ */ a("span", { className: "truncate", children: s }),
|
|
880
|
-
/* @__PURE__ */ a(
|
|
875
|
+
/* @__PURE__ */ a(P, { className: "shrink-0 opacity-50", size: 16 })
|
|
881
876
|
]
|
|
882
877
|
}
|
|
883
878
|
)
|
|
884
879
|
);
|
|
885
880
|
U.displayName = "SidebarPopoverTrigger";
|
|
886
|
-
const A = i.forwardRef(({ className: e, dataHook: t, icon: r, shortcut: o, children: s, ...n }, d) => /* @__PURE__ */
|
|
881
|
+
const A = i.forwardRef(({ className: e, dataHook: t, icon: r, shortcut: o, children: s, ...n }, d) => /* @__PURE__ */ c(
|
|
887
882
|
"button",
|
|
888
883
|
{
|
|
889
884
|
ref: d,
|
|
890
885
|
className: l(
|
|
891
886
|
"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",
|
|
892
|
-
|
|
887
|
+
v,
|
|
893
888
|
e
|
|
894
889
|
),
|
|
895
890
|
"data-hook": t,
|
|
@@ -913,32 +908,32 @@ const pa = i.forwardRef(
|
|
|
913
908
|
addActionLabel: s,
|
|
914
909
|
addActionIcon: n,
|
|
915
910
|
onAddAction: d,
|
|
916
|
-
children:
|
|
911
|
+
children: u,
|
|
917
912
|
...m
|
|
918
|
-
},
|
|
913
|
+
}, p) => /* @__PURE__ */ a(
|
|
919
914
|
"div",
|
|
920
915
|
{
|
|
921
|
-
ref:
|
|
916
|
+
ref: p,
|
|
922
917
|
className: l("flex flex-col", e),
|
|
923
918
|
"data-hook": t,
|
|
924
919
|
"data-slot": "sidebar-popover-menu",
|
|
925
920
|
...m,
|
|
926
|
-
children:
|
|
927
|
-
/* @__PURE__ */
|
|
921
|
+
children: u || /* @__PURE__ */ c(M, { children: [
|
|
922
|
+
/* @__PURE__ */ c("div", { className: "flex flex-col items-start p-1", children: [
|
|
928
923
|
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 }) }),
|
|
929
|
-
o?.map((
|
|
924
|
+
o?.map((b, f) => /* @__PURE__ */ a(
|
|
930
925
|
A,
|
|
931
926
|
{
|
|
932
|
-
icon:
|
|
933
|
-
shortcut:
|
|
934
|
-
onClick:
|
|
935
|
-
children:
|
|
927
|
+
icon: b.icon,
|
|
928
|
+
shortcut: b.shortcut,
|
|
929
|
+
onClick: b.onClick,
|
|
930
|
+
children: b.label
|
|
936
931
|
},
|
|
937
|
-
|
|
932
|
+
f
|
|
938
933
|
))
|
|
939
934
|
] }),
|
|
940
|
-
d && /* @__PURE__ */
|
|
941
|
-
/* @__PURE__ */ a(
|
|
935
|
+
d && /* @__PURE__ */ c(M, { children: [
|
|
936
|
+
/* @__PURE__ */ a(T, {}),
|
|
942
937
|
/* @__PURE__ */ a("div", { className: "flex flex-col items-start p-1", children: /* @__PURE__ */ a(
|
|
943
938
|
A,
|
|
944
939
|
{
|
|
@@ -961,7 +956,7 @@ function fa({
|
|
|
961
956
|
triggerClassName: s,
|
|
962
957
|
children: n
|
|
963
958
|
}) {
|
|
964
|
-
return /* @__PURE__ */
|
|
959
|
+
return /* @__PURE__ */ c(ne, { children: [
|
|
965
960
|
/* @__PURE__ */ a(ie, { asChild: !0, children: /* @__PURE__ */ a(
|
|
966
961
|
U,
|
|
967
962
|
{
|
|
@@ -994,12 +989,12 @@ function ma({
|
|
|
994
989
|
menuGroups: s,
|
|
995
990
|
triggerAriaLabel: n,
|
|
996
991
|
align: d = "end",
|
|
997
|
-
side:
|
|
992
|
+
side: u = "top",
|
|
998
993
|
children: m
|
|
999
994
|
}) {
|
|
1000
|
-
return /* @__PURE__ */
|
|
1001
|
-
/* @__PURE__ */ a(ae, { asChild: !0, children: /* @__PURE__ */
|
|
1002
|
-
|
|
995
|
+
return /* @__PURE__ */ c(ee, { children: [
|
|
996
|
+
/* @__PURE__ */ a(ae, { asChild: !0, children: /* @__PURE__ */ c(
|
|
997
|
+
z,
|
|
1003
998
|
{
|
|
1004
999
|
"aria-label": n ?? "Account menu",
|
|
1005
1000
|
className: "h-auto py-1.5",
|
|
@@ -1007,7 +1002,7 @@ function ma({
|
|
|
1007
1002
|
size: "lg",
|
|
1008
1003
|
children: [
|
|
1009
1004
|
o,
|
|
1010
|
-
/* @__PURE__ */
|
|
1005
|
+
/* @__PURE__ */ c("div", { className: "flex min-w-0 flex-1 flex-col gap-0.5 leading-none", children: [
|
|
1011
1006
|
/* @__PURE__ */ a("span", { className: "truncate text-sm font-semibold", children: t }),
|
|
1012
1007
|
/* @__PURE__ */ a("span", { className: "truncate text-xs font-normal", children: r })
|
|
1013
1008
|
] })
|
|
@@ -1020,23 +1015,23 @@ function ma({
|
|
|
1020
1015
|
align: d,
|
|
1021
1016
|
className: "w-56",
|
|
1022
1017
|
dataHook: `${e}-content`,
|
|
1023
|
-
side:
|
|
1018
|
+
side: u,
|
|
1024
1019
|
sideOffset: 4,
|
|
1025
|
-
children: m || /* @__PURE__ */
|
|
1026
|
-
/* @__PURE__ */
|
|
1020
|
+
children: m || /* @__PURE__ */ c(M, { children: [
|
|
1021
|
+
/* @__PURE__ */ c(re, { className: "flex items-center gap-2 px-1 py-1.5", children: [
|
|
1027
1022
|
o,
|
|
1028
|
-
/* @__PURE__ */
|
|
1023
|
+
/* @__PURE__ */ c("div", { className: "flex min-w-0 flex-1 flex-col gap-0.5 leading-none", children: [
|
|
1029
1024
|
/* @__PURE__ */ a("span", { className: "truncate text-sm font-semibold", children: t }),
|
|
1030
1025
|
/* @__PURE__ */ a("span", { className: "truncate text-xs font-normal", children: r })
|
|
1031
1026
|
] })
|
|
1032
1027
|
] }),
|
|
1033
|
-
s?.map((
|
|
1028
|
+
s?.map((p, b) => /* @__PURE__ */ c(i.Fragment, { children: [
|
|
1034
1029
|
/* @__PURE__ */ a(oe, {}),
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
] },
|
|
1039
|
-
] },
|
|
1030
|
+
p.map((f, h) => /* @__PURE__ */ c(se, { onClick: f.onClick, children: [
|
|
1031
|
+
f.icon,
|
|
1032
|
+
f.label
|
|
1033
|
+
] }, h))
|
|
1034
|
+
] }, b))
|
|
1040
1035
|
] })
|
|
1041
1036
|
}
|
|
1042
1037
|
)
|
|
@@ -1052,13 +1047,13 @@ const ha = i.forwardRef(
|
|
|
1052
1047
|
description: s,
|
|
1053
1048
|
timestamp: n,
|
|
1054
1049
|
...d
|
|
1055
|
-
},
|
|
1050
|
+
}, u) => /* @__PURE__ */ c(
|
|
1056
1051
|
"button",
|
|
1057
1052
|
{
|
|
1058
|
-
ref:
|
|
1053
|
+
ref: u,
|
|
1059
1054
|
className: l(
|
|
1060
1055
|
"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",
|
|
1061
|
-
|
|
1056
|
+
v,
|
|
1062
1057
|
e
|
|
1063
1058
|
),
|
|
1064
1059
|
"data-hook": t,
|
|
@@ -1066,7 +1061,7 @@ const ha = i.forwardRef(
|
|
|
1066
1061
|
type: "button",
|
|
1067
1062
|
...d,
|
|
1068
1063
|
children: [
|
|
1069
|
-
/* @__PURE__ */
|
|
1064
|
+
/* @__PURE__ */ c("div", { className: "flex w-full items-center justify-between text-sm", children: [
|
|
1070
1065
|
/* @__PURE__ */ a("span", { children: r }),
|
|
1071
1066
|
n && /* @__PURE__ */ a("span", { children: n })
|
|
1072
1067
|
] }),
|
|
@@ -1078,7 +1073,7 @@ const ha = i.forwardRef(
|
|
|
1078
1073
|
);
|
|
1079
1074
|
ha.displayName = "SidebarInboxItem";
|
|
1080
1075
|
export {
|
|
1081
|
-
|
|
1076
|
+
He as Sidebar,
|
|
1082
1077
|
ma as SidebarAccountDropdown,
|
|
1083
1078
|
ea as SidebarCollapseIcon,
|
|
1084
1079
|
Oe as SidebarCollapseIconType,
|
|
@@ -1100,7 +1095,7 @@ export {
|
|
|
1100
1095
|
Qe as SidebarMenu,
|
|
1101
1096
|
ta as SidebarMenuAction,
|
|
1102
1097
|
ra as SidebarMenuBadge,
|
|
1103
|
-
|
|
1098
|
+
z as SidebarMenuButton,
|
|
1104
1099
|
De as SidebarMenuButtonSize,
|
|
1105
1100
|
Ie as SidebarMenuButtonVariant,
|
|
1106
1101
|
da as SidebarMenuCollapsible,
|
|
@@ -1116,7 +1111,7 @@ export {
|
|
|
1116
1111
|
pa as SidebarPopoverMenu,
|
|
1117
1112
|
A as SidebarPopoverMenuItem,
|
|
1118
1113
|
U as SidebarPopoverTrigger,
|
|
1119
|
-
|
|
1114
|
+
Fe as SidebarProvider,
|
|
1120
1115
|
$e as SidebarRail,
|
|
1121
1116
|
We as SidebarSeparator,
|
|
1122
1117
|
ye as SidebarSide,
|