@brightlocal/ui-components 2.26.0 → 3.0.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/README.md +9 -2
- package/component-meta.json +4010 -255
- package/deprecations.json +189 -2
- package/dist/accordion.cjs +1 -1
- package/dist/accordion.js +2 -2
- package/dist/alert-dialog.cjs +1 -1
- package/dist/alert-dialog.js +18 -18
- package/dist/alert.cjs +1 -1
- package/dist/alert.d.ts +11 -1
- package/dist/alert.d.ts.map +1 -1
- package/dist/alert.js +31 -28
- package/dist/avatar.cjs +1 -1
- package/dist/avatar.js +4 -4
- package/dist/badge.cjs +1 -1
- package/dist/badge.d.ts.map +1 -1
- package/dist/badge.js +15 -11
- package/dist/blocks/empty-state.cjs +1 -0
- package/dist/blocks/empty-state.d.ts +172 -0
- package/dist/blocks/empty-state.d.ts.map +1 -0
- package/dist/blocks/empty-state.js +155 -0
- package/dist/blocks/input-list.cjs +2 -2
- package/dist/blocks/input-list.d.ts.map +1 -1
- package/dist/blocks/input-list.js +124 -108
- package/dist/blocks/progress-state.cjs +1 -0
- package/dist/blocks/progress-state.d.ts +121 -0
- package/dist/blocks/progress-state.d.ts.map +1 -0
- package/dist/blocks/progress-state.js +368 -0
- package/dist/blocks/sidebar.cjs +1 -1
- package/dist/blocks/sidebar.d.ts.map +1 -1
- package/dist/blocks/sidebar.js +297 -296
- package/dist/brand-illustration-motif.d.ts +1 -1
- package/dist/breadcrumb.cjs +1 -1
- package/dist/breadcrumb.d.ts.map +1 -1
- package/dist/breadcrumb.js +44 -40
- package/dist/button.cjs +1 -1
- package/dist/button.d.ts.map +1 -1
- package/dist/button.js +23 -23
- package/dist/calendar.cjs +1 -1
- package/dist/calendar.d.ts.map +1 -1
- package/dist/calendar.js +37 -38
- package/dist/callout.cjs +1 -1
- package/dist/callout.d.ts +24 -2
- package/dist/callout.d.ts.map +1 -1
- package/dist/callout.js +57 -55
- package/dist/card.cjs +1 -1
- package/dist/card.d.ts +23 -2
- package/dist/card.d.ts.map +1 -1
- package/dist/card.js +94 -91
- package/dist/chart-empty.cjs +1 -0
- package/dist/chart-empty.d.ts +59 -0
- package/dist/chart-empty.d.ts.map +1 -0
- package/dist/chart-empty.js +29 -0
- package/dist/chart.cjs +6 -6
- package/dist/chart.d.ts +6 -1
- package/dist/chart.d.ts.map +1 -1
- package/dist/chart.js +183 -183
- package/dist/chip.cjs +1 -1
- package/dist/chip.d.ts +1 -1
- package/dist/chip.d.ts.map +1 -1
- package/dist/chip.js +47 -44
- package/dist/combobox.cjs +3 -3
- package/dist/combobox.d.ts +4 -2
- package/dist/combobox.d.ts.map +1 -1
- package/dist/combobox.js +143 -141
- package/dist/command.cjs +1 -1
- package/dist/command.d.ts.map +1 -1
- package/dist/command.js +74 -77
- package/dist/context-menu.cjs +1 -1
- package/dist/context-menu.d.ts.map +1 -1
- package/dist/context-menu.js +26 -29
- package/dist/data-table.cjs +1 -1
- package/dist/data-table.d.ts +182 -13
- package/dist/data-table.d.ts.map +1 -1
- package/dist/data-table.js +462 -314
- package/dist/description.cjs +1 -1
- package/dist/description.js +5 -5
- package/dist/dialog.cjs +1 -1
- package/dist/dialog.js +20 -20
- package/dist/drawer.cjs +1 -1
- package/dist/drawer.d.ts.map +1 -1
- package/dist/drawer.js +8 -11
- package/dist/dropdown-menu.cjs +1 -1
- package/dist/dropdown-menu.d.ts.map +1 -1
- package/dist/dropdown-menu.js +17 -20
- package/dist/field.cjs +1 -1
- package/dist/field.d.ts.map +1 -1
- package/dist/field.js +29 -25
- package/dist/global-layout.cjs +1 -1
- package/dist/global-layout.d.ts +58 -6
- package/dist/global-layout.d.ts.map +1 -1
- package/dist/global-layout.js +278 -194
- package/dist/grid.cjs +1 -0
- package/dist/grid.d.ts +56 -0
- package/dist/grid.d.ts.map +1 -0
- package/dist/grid.js +32 -0
- package/dist/header.d.ts +13 -0
- package/dist/header.d.ts.map +1 -1
- package/dist/hooks/use-delayed-pending.cjs +1 -0
- package/dist/hooks/use-delayed-pending.d.ts +34 -0
- package/dist/hooks/use-delayed-pending.d.ts.map +1 -0
- package/dist/hooks/use-delayed-pending.js +17 -0
- package/dist/hover-card.cjs +1 -1
- package/dist/hover-card.js +13 -13
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +10 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +523 -494
- package/dist/input-chip.cjs +1 -1
- package/dist/input-chip.js +25 -25
- package/dist/input-group.cjs +1 -1
- package/dist/input-group.js +9 -9
- package/dist/input-otp.cjs +1 -1
- package/dist/input-otp.js +9 -9
- package/dist/input-password.cjs +1 -1
- package/dist/input-password.js +51 -51
- package/dist/input.cjs +1 -1
- package/dist/input.js +9 -9
- package/dist/label.cjs +1 -1
- package/dist/label.d.ts.map +1 -1
- package/dist/label.js +25 -28
- package/dist/lib/block-illustration.cjs +1 -0
- package/dist/lib/block-illustration.d.ts +28 -0
- package/dist/lib/block-illustration.d.ts.map +1 -0
- package/dist/lib/block-illustration.js +21 -0
- package/dist/lib/empty-canvas.cjs +1 -0
- package/dist/lib/empty-canvas.d.ts +27 -0
- package/dist/lib/empty-canvas.d.ts.map +1 -0
- package/dist/lib/empty-canvas.js +62 -0
- package/dist/lib/motion.cjs +1 -1
- package/dist/lib/motion.js +10 -8
- package/dist/lib/optical-center.cjs +1 -0
- package/dist/lib/optical-center.d.ts +12 -0
- package/dist/lib/optical-center.d.ts.map +1 -0
- package/dist/lib/optical-center.js +11 -0
- package/dist/lib/utils.cjs +1 -1
- package/dist/lib/utils.d.ts.map +1 -1
- package/dist/lib/utils.js +28 -5
- package/dist/link.cjs +1 -1
- package/dist/link.d.ts +8 -6
- package/dist/link.d.ts.map +1 -1
- package/dist/link.js +52 -20
- package/dist/list.cjs +1 -1
- package/dist/list.d.ts.map +1 -1
- package/dist/list.js +87 -81
- package/dist/map.cjs +1 -1
- package/dist/map.d.ts +60 -2
- package/dist/map.d.ts.map +1 -1
- package/dist/map.js +187 -164
- package/dist/media-empty.cjs +1 -0
- package/dist/media-empty.d.ts +72 -0
- package/dist/media-empty.d.ts.map +1 -0
- package/dist/media-empty.js +45 -0
- package/dist/menubar.cjs +1 -1
- package/dist/menubar.d.ts.map +1 -1
- package/dist/menubar.js +17 -20
- package/dist/navigation-menu.cjs +1 -1
- package/dist/navigation-menu.js +7 -7
- package/dist/pagination.cjs +1 -1
- package/dist/pagination.d.ts +127 -1
- package/dist/pagination.d.ts.map +1 -1
- package/dist/pagination.js +189 -98
- package/dist/progress.cjs +1 -1
- package/dist/progress.d.ts +37 -3
- package/dist/progress.d.ts.map +1 -1
- package/dist/progress.js +102 -64
- package/dist/route-progress.cjs +1 -0
- package/dist/route-progress.d.ts +103 -0
- package/dist/route-progress.d.ts.map +1 -0
- package/dist/route-progress.js +106 -0
- package/dist/select.cjs +2 -2
- package/dist/select.d.ts.map +1 -1
- package/dist/select.js +19 -18
- package/dist/separator.cjs +1 -1
- package/dist/separator.js +8 -8
- package/dist/sheet.cjs +1 -1
- package/dist/sheet.d.ts +35 -2
- package/dist/sheet.d.ts.map +1 -1
- package/dist/sheet.js +103 -66
- package/dist/skeleton.cjs +1 -1
- package/dist/skeleton.d.ts +38 -3
- package/dist/skeleton.d.ts.map +1 -1
- package/dist/skeleton.js +43 -20
- package/dist/sonner.cjs +1 -1
- package/dist/sonner.d.ts.map +1 -1
- package/dist/sonner.js +32 -36
- package/dist/spinner.cjs +1 -0
- package/dist/spinner.d.ts +57 -0
- package/dist/spinner.d.ts.map +1 -0
- package/dist/spinner.js +35 -0
- package/dist/stepper.cjs +1 -1
- package/dist/stepper.d.ts.map +1 -1
- package/dist/stepper.js +23 -22
- package/dist/table.cjs +1 -1
- package/dist/table.d.ts +1 -1
- package/dist/table.d.ts.map +1 -1
- package/dist/table.js +36 -29
- package/dist/tabs.cjs +1 -1
- package/dist/tabs.js +1 -1
- package/dist/text-reveal-motion.d.ts +10 -0
- package/dist/text-reveal-motion.d.ts.map +1 -1
- package/dist/textarea.cjs +1 -1
- package/dist/textarea.js +11 -11
- package/dist/toggle.cjs +1 -1
- package/dist/toggle.js +8 -8
- package/dist/tooltip.cjs +1 -1
- package/dist/tooltip.js +8 -8
- package/dist/typography-heading.cjs +1 -0
- package/dist/typography-heading.d.ts +116 -0
- package/dist/typography-heading.d.ts.map +1 -0
- package/dist/typography-heading.js +84 -0
- package/dist/typography-text.cjs +1 -0
- package/dist/typography-text.d.ts +113 -0
- package/dist/typography-text.d.ts.map +1 -0
- package/dist/typography-text.js +81 -0
- package/dist/typography.d.ts +13 -0
- package/dist/typography.d.ts.map +1 -1
- package/package.json +42 -2
- package/src/blocks/empty-state.tsx +424 -0
- package/src/blocks/input-list.tsx +66 -36
- package/src/blocks/progress-state.tsx +542 -0
- package/src/blocks/sidebar.tsx +46 -40
- package/src/components/accordion.tsx +2 -2
- package/src/components/alert-dialog.tsx +2 -2
- package/src/components/alert.tsx +27 -13
- package/src/components/avatar.tsx +1 -1
- package/src/components/badge.tsx +8 -4
- package/src/components/breadcrumb.tsx +9 -4
- package/src/components/button.tsx +5 -8
- package/src/components/calendar.tsx +5 -6
- package/src/components/callout.tsx +48 -15
- package/src/components/card.tsx +52 -17
- package/src/components/chart-empty.tsx +116 -0
- package/src/components/chart.tsx +43 -17
- package/src/components/chip.tsx +9 -6
- package/src/components/combobox.tsx +21 -12
- package/src/components/command.tsx +9 -10
- package/src/components/context-menu.tsx +6 -9
- package/src/components/data-table.tsx +405 -31
- package/src/components/description.tsx +1 -1
- package/src/components/dialog.tsx +2 -2
- package/src/components/drawer.tsx +2 -5
- package/src/components/dropdown-menu.tsx +8 -11
- package/src/components/field.tsx +8 -4
- package/src/components/global-layout.tsx +264 -65
- package/src/components/grid.tsx +130 -0
- package/src/components/header.tsx +13 -0
- package/src/components/hover-card.tsx +1 -1
- package/src/components/input-chip.tsx +1 -1
- package/src/components/input-group.tsx +1 -1
- package/src/components/input-otp.tsx +1 -1
- package/src/components/input-password.tsx +1 -1
- package/src/components/input.tsx +1 -1
- package/src/components/label.tsx +10 -13
- package/src/components/link.tsx +39 -5
- package/src/components/list.tsx +18 -14
- package/src/components/map.tsx +101 -5
- package/src/components/media-empty.tsx +156 -0
- package/src/components/menubar.tsx +7 -10
- package/src/components/navigation-menu.tsx +1 -1
- package/src/components/pagination.tsx +279 -1
- package/src/components/progress.tsx +120 -11
- package/src/components/route-progress.tsx +354 -0
- package/src/components/select.tsx +5 -4
- package/src/components/separator.tsx +1 -1
- package/src/components/sheet.tsx +89 -7
- package/src/components/skeleton.tsx +78 -7
- package/src/components/sonner.tsx +5 -14
- package/src/components/spinner.tsx +94 -0
- package/src/components/stepper.tsx +6 -7
- package/src/components/table.tsx +11 -4
- package/src/components/tabs.tsx +1 -1
- package/src/components/text-reveal-motion.tsx +10 -0
- package/src/components/textarea.tsx +1 -1
- package/src/components/toggle.tsx +1 -1
- package/src/components/tooltip.tsx +1 -1
- package/src/components/typography-heading.tsx +229 -0
- package/src/components/typography-text.tsx +225 -0
- package/src/components/typography.tsx +13 -0
- package/src/hooks/use-delayed-pending.ts +60 -0
- package/src/index.ts +12 -0
- package/src/lib/block-illustration.tsx +88 -0
- package/src/lib/empty-canvas.tsx +128 -0
- package/src/lib/optical-center.tsx +45 -0
- package/src/lib/utils.ts +26 -0
package/dist/blocks/sidebar.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsx as a, jsxs as c, Fragment as M } from "react/jsx-runtime";
|
|
2
2
|
import * as i from "react";
|
|
3
|
-
import { createPortal as
|
|
3
|
+
import { createPortal as X } from "react-dom";
|
|
4
4
|
import { Slot as S } from "@radix-ui/react-slot";
|
|
5
|
-
import { cva as
|
|
6
|
-
import {
|
|
5
|
+
import { cva as _ } from "class-variance-authority";
|
|
6
|
+
import { ChevronsUpDown as F, ChevronRight as A, Ellipsis as V, Minus as Y, Plus as O, ChevronDown as z, Menu as Z, PanelLeft as J } from "@brightlocal/icons";
|
|
7
7
|
import { cn as l } from "@brightlocal/ui-components/lib/utils";
|
|
8
|
-
import { Button as
|
|
8
|
+
import { Button as H } from "../button.js";
|
|
9
9
|
import { Input as Q } from "../input.js";
|
|
10
|
-
import { Separator as
|
|
10
|
+
import { Separator as P } from "../separator.js";
|
|
11
11
|
import { DropdownMenu as ee, DropdownMenuTrigger as ae, DropdownMenuContent as te, DropdownMenuLabel as re, DropdownMenuSeparator as oe, DropdownMenuItem as se } from "../dropdown-menu.js";
|
|
12
12
|
import { Popover as ne, PopoverTrigger as ie, PopoverContent as de } from "../popover.js";
|
|
13
13
|
import { Sheet as le, SheetContent as ce, SheetTitle as ue, SheetDescription as be } from "../sheet.js";
|
|
@@ -16,21 +16,21 @@ import * as he from "@radix-ui/react-accordion";
|
|
|
16
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
|
-
import { useIsBelowBreakpoint as
|
|
19
|
+
import { useIsBelowBreakpoint as ye } from "../hooks/use-breakpoint.js";
|
|
20
20
|
const v = "focus-visible:[box-shadow:0_0_0_1px_color-mix(in_srgb,var(--color-sidebar-ring)_50%,transparent),0_0_0_3px_rgba(0,0,0,0.1)]";
|
|
21
|
-
var
|
|
22
|
-
const
|
|
23
|
-
function
|
|
24
|
-
const e = i.useContext(
|
|
21
|
+
var ke = /* @__PURE__ */ ((e) => (e.LEFT = "left", e))(ke || {}), Se = /* @__PURE__ */ ((e) => (e.SIDEBAR = "sidebar", e))(Se || {}), Ce = /* @__PURE__ */ ((e) => (e.OFFCANVAS = "offcanvas", e.ICON = "icon", e.NONE = "none", e))(Ce || {}), Re = /* @__PURE__ */ ((e) => (e.DEFAULT = "default", e.SM = "sm", e.XS = "xs", e))(Re || {}), Me = /* @__PURE__ */ ((e) => (e.DEFAULT = "default", e.COLLAPSIBLE = "collapsible", e.ACTION = "action", e))(Me || {}), Ie = /* @__PURE__ */ ((e) => (e.SIMPLE = "simple", e.COLLAPSIBLE = "collapsible", e.DROPDOWN = "dropdown", e.BADGE = "badge", e.BIG_ICON = "bigIcon", e.CHECKBOX = "checkbox", e))(Ie || {}), De = /* @__PURE__ */ ((e) => (e.DEFAULT = "default", e.SM = "sm", e.LG = "lg", e))(De || {}), Ae = /* @__PURE__ */ ((e) => (e.DEFAULT = "default", e.BORDER = "border", e.INDENT = "indent", e))(Ae || {}), Ee = /* @__PURE__ */ ((e) => (e.SM = "sm", e.MD = "md", e))(Ee || {}), _e = /* @__PURE__ */ ((e) => (e.CARET = "caret", e.HORIZONTAL = "horizontal", e.VERTICAL = "vertical", e.UP_DOWN = "upDown", e.PLUS_MINUS = "plusMinus", e.DOTS = "dots", e))(_e || {});
|
|
22
|
+
const Oe = "sidebar:state", ze = 3600 * 24 * 7, Pe = "288px", Te = "48px", Le = "b", j = i.createContext(null);
|
|
23
|
+
function y() {
|
|
24
|
+
const e = i.useContext(j);
|
|
25
25
|
if (!e)
|
|
26
26
|
throw new Error("useSidebar must be used within a SidebarProvider.");
|
|
27
27
|
return e;
|
|
28
28
|
}
|
|
29
|
-
const
|
|
29
|
+
const Be = i.forwardRef(
|
|
30
30
|
({
|
|
31
31
|
dataHook: e,
|
|
32
|
-
trackingEl:
|
|
33
|
-
trackingLabel:
|
|
32
|
+
trackingEl: r,
|
|
33
|
+
trackingLabel: t,
|
|
34
34
|
defaultOpen: o = !0,
|
|
35
35
|
open: s,
|
|
36
36
|
onOpenChange: n,
|
|
@@ -39,23 +39,23 @@ const Fe = i.forwardRef(
|
|
|
39
39
|
children: m,
|
|
40
40
|
...p
|
|
41
41
|
}, b) => {
|
|
42
|
-
const f =
|
|
42
|
+
const f = ye("lg"), [h, w] = i.useState(!1), [g, I] = i.useState(null), [D, W] = i.useState(o), k = s ?? D, C = i.useCallback(
|
|
43
43
|
(x) => {
|
|
44
|
-
const N = typeof x == "function" ? x(
|
|
45
|
-
n ? n(N) :
|
|
44
|
+
const N = typeof x == "function" ? x(k) : x;
|
|
45
|
+
n ? n(N) : W(N), document.cookie = `${Oe}=${N}; path=/; max-age=${ze}`;
|
|
46
46
|
},
|
|
47
|
-
[n,
|
|
47
|
+
[n, k]
|
|
48
48
|
), R = i.useCallback(() => f ? w((x) => !x) : C((x) => !x), [f, C, w]);
|
|
49
49
|
i.useEffect(() => {
|
|
50
50
|
const x = (N) => {
|
|
51
|
-
N.key ===
|
|
51
|
+
N.key === Le && (N.metaKey || N.ctrlKey) && (N.preventDefault(), R());
|
|
52
52
|
};
|
|
53
53
|
return window.addEventListener("keydown", x), () => window.removeEventListener("keydown", x);
|
|
54
54
|
}, [R]);
|
|
55
|
-
const L =
|
|
55
|
+
const L = k ? "expanded" : "collapsed", q = i.useMemo(
|
|
56
56
|
() => ({
|
|
57
57
|
state: L,
|
|
58
|
-
open:
|
|
58
|
+
open: k,
|
|
59
59
|
setOpen: C,
|
|
60
60
|
isMobile: f,
|
|
61
61
|
openMobile: h,
|
|
@@ -66,7 +66,7 @@ const Fe = i.forwardRef(
|
|
|
66
66
|
}),
|
|
67
67
|
[
|
|
68
68
|
L,
|
|
69
|
-
|
|
69
|
+
k,
|
|
70
70
|
C,
|
|
71
71
|
f,
|
|
72
72
|
h,
|
|
@@ -75,7 +75,7 @@ const Fe = i.forwardRef(
|
|
|
75
75
|
g
|
|
76
76
|
]
|
|
77
77
|
);
|
|
78
|
-
return /* @__PURE__ */ a(
|
|
78
|
+
return /* @__PURE__ */ a(j.Provider, { value: q, children: /* @__PURE__ */ a(Ne, { delayDuration: 0, children: /* @__PURE__ */ a(
|
|
79
79
|
"div",
|
|
80
80
|
{
|
|
81
81
|
ref: b,
|
|
@@ -85,11 +85,11 @@ const Fe = i.forwardRef(
|
|
|
85
85
|
),
|
|
86
86
|
"data-hook": e,
|
|
87
87
|
"data-slot": "sidebar-provider",
|
|
88
|
-
"data-tracking-el":
|
|
89
|
-
"data-tracking-label":
|
|
88
|
+
"data-tracking-el": r || "sidebar-provider",
|
|
89
|
+
"data-tracking-label": t,
|
|
90
90
|
style: {
|
|
91
|
-
"--sidebar-width":
|
|
92
|
-
"--sidebar-width-icon":
|
|
91
|
+
"--sidebar-width": Pe,
|
|
92
|
+
"--sidebar-width-icon": Te,
|
|
93
93
|
...u
|
|
94
94
|
},
|
|
95
95
|
...p,
|
|
@@ -98,12 +98,12 @@ const Fe = i.forwardRef(
|
|
|
98
98
|
) }) });
|
|
99
99
|
}
|
|
100
100
|
);
|
|
101
|
-
|
|
102
|
-
const
|
|
101
|
+
Be.displayName = "SidebarProvider";
|
|
102
|
+
const Fe = i.forwardRef(
|
|
103
103
|
({
|
|
104
104
|
dataHook: e,
|
|
105
|
-
trackingEl:
|
|
106
|
-
trackingLabel:
|
|
105
|
+
trackingEl: r,
|
|
106
|
+
trackingLabel: t,
|
|
107
107
|
side: o = "left",
|
|
108
108
|
variant: s = "sidebar",
|
|
109
109
|
collapsible: n = "offcanvas",
|
|
@@ -115,7 +115,7 @@ const He = i.forwardRef(
|
|
|
115
115
|
children: b,
|
|
116
116
|
...f
|
|
117
117
|
}, h) => {
|
|
118
|
-
const { isMobile: w, state: g, openMobile: I, setOpenMobile: D } =
|
|
118
|
+
const { isMobile: w, state: g, openMobile: I, setOpenMobile: D } = y();
|
|
119
119
|
return n === "none" ? /* @__PURE__ */ a(
|
|
120
120
|
"div",
|
|
121
121
|
{
|
|
@@ -126,22 +126,20 @@ const He = i.forwardRef(
|
|
|
126
126
|
),
|
|
127
127
|
"data-hook": e,
|
|
128
128
|
"data-slot": "sidebar",
|
|
129
|
-
"data-tracking-el":
|
|
130
|
-
"data-tracking-label":
|
|
129
|
+
"data-tracking-el": r || "sidebar",
|
|
130
|
+
"data-tracking-label": t,
|
|
131
131
|
...f,
|
|
132
132
|
children: b
|
|
133
133
|
}
|
|
134
134
|
) : w ? /* @__PURE__ */ a(le, { open: I, onOpenChange: D, children: /* @__PURE__ */ c(
|
|
135
135
|
ce,
|
|
136
136
|
{
|
|
137
|
-
className: "bg-sidebar-background text-sidebar-foreground
|
|
137
|
+
className: "bg-sidebar-background text-sidebar-foreground p-6",
|
|
138
138
|
"data-hook": `${e}-mobile-content`,
|
|
139
139
|
"data-mobile": "true",
|
|
140
140
|
"data-sidebar": "sidebar",
|
|
141
141
|
side: "left",
|
|
142
|
-
|
|
143
|
-
"--sidebar-width": `min(${ze}, calc(100vw - 40px))`
|
|
144
|
-
},
|
|
142
|
+
size: "sm",
|
|
145
143
|
children: [
|
|
146
144
|
/* @__PURE__ */ a(ue, { className: "sr-only", children: u ?? "Navigation" }),
|
|
147
145
|
/* @__PURE__ */ a(be, { className: "sr-only", children: m ?? "Main navigation menu" }),
|
|
@@ -164,8 +162,8 @@ const He = i.forwardRef(
|
|
|
164
162
|
"data-side": o,
|
|
165
163
|
"data-slot": "sidebar",
|
|
166
164
|
"data-state": g,
|
|
167
|
-
"data-tracking-el":
|
|
168
|
-
"data-tracking-label":
|
|
165
|
+
"data-tracking-el": r || "sidebar",
|
|
166
|
+
"data-tracking-label": t,
|
|
169
167
|
"data-variant": s,
|
|
170
168
|
...f,
|
|
171
169
|
children: b
|
|
@@ -173,30 +171,30 @@ const He = i.forwardRef(
|
|
|
173
171
|
);
|
|
174
172
|
}
|
|
175
173
|
);
|
|
176
|
-
|
|
177
|
-
const
|
|
174
|
+
Fe.displayName = "Sidebar";
|
|
175
|
+
const G = i.forwardRef(
|
|
178
176
|
({
|
|
179
177
|
className: e,
|
|
180
|
-
onClick:
|
|
181
|
-
dataHook:
|
|
178
|
+
onClick: r,
|
|
179
|
+
dataHook: t = "sidebar-trigger",
|
|
182
180
|
toggleAriaLabel: o,
|
|
183
181
|
children: s,
|
|
184
182
|
...n
|
|
185
183
|
}, d) => {
|
|
186
|
-
const { toggleSidebar: u } =
|
|
184
|
+
const { toggleSidebar: u } = y(), m = o ?? "Toggle sidebar";
|
|
187
185
|
return /* @__PURE__ */ c(
|
|
188
|
-
|
|
186
|
+
H,
|
|
189
187
|
{
|
|
190
188
|
ref: d,
|
|
191
189
|
iconOnly: !0,
|
|
192
190
|
"aria-label": m,
|
|
193
191
|
className: l("relative h-7 w-7", e),
|
|
194
192
|
"data-slot": "sidebar-trigger",
|
|
195
|
-
dataHook:
|
|
193
|
+
dataHook: t,
|
|
196
194
|
size: "sm",
|
|
197
195
|
variant: "ghost",
|
|
198
196
|
onClick: (p) => {
|
|
199
|
-
|
|
197
|
+
r?.(p), u();
|
|
200
198
|
},
|
|
201
199
|
...n,
|
|
202
200
|
children: [
|
|
@@ -207,10 +205,10 @@ const $ = i.forwardRef(
|
|
|
207
205
|
);
|
|
208
206
|
}
|
|
209
207
|
);
|
|
210
|
-
|
|
211
|
-
const
|
|
212
|
-
({ className: e, toggleAriaLabel:
|
|
213
|
-
const { toggleSidebar: s } =
|
|
208
|
+
G.displayName = "SidebarTrigger";
|
|
209
|
+
const He = i.forwardRef(
|
|
210
|
+
({ className: e, toggleAriaLabel: r, ...t }, o) => {
|
|
211
|
+
const { toggleSidebar: s } = y(), n = r ?? "Toggle sidebar";
|
|
214
212
|
return /* @__PURE__ */ a(
|
|
215
213
|
"button",
|
|
216
214
|
{
|
|
@@ -228,14 +226,14 @@ const $e = i.forwardRef(
|
|
|
228
226
|
tabIndex: -1,
|
|
229
227
|
title: n,
|
|
230
228
|
onClick: s,
|
|
231
|
-
...
|
|
229
|
+
...t
|
|
232
230
|
}
|
|
233
231
|
);
|
|
234
232
|
}
|
|
235
233
|
);
|
|
236
|
-
|
|
234
|
+
He.displayName = "SidebarRail";
|
|
237
235
|
const je = i.forwardRef(
|
|
238
|
-
({ className: e, dataHook:
|
|
236
|
+
({ className: e, dataHook: r, trackingEl: t, trackingLabel: o, ...s }, n) => /* @__PURE__ */ a(
|
|
239
237
|
"main",
|
|
240
238
|
{
|
|
241
239
|
ref: n,
|
|
@@ -243,19 +241,19 @@ const je = i.forwardRef(
|
|
|
243
241
|
"bg-background relative flex min-h-svh flex-1 flex-col",
|
|
244
242
|
e
|
|
245
243
|
),
|
|
246
|
-
"data-hook":
|
|
244
|
+
"data-hook": r,
|
|
247
245
|
"data-slot": "sidebar-inset",
|
|
248
|
-
"data-tracking-el":
|
|
246
|
+
"data-tracking-el": t || "sidebar-inset",
|
|
249
247
|
"data-tracking-label": o,
|
|
250
248
|
...s
|
|
251
249
|
}
|
|
252
250
|
)
|
|
253
251
|
);
|
|
254
252
|
je.displayName = "SidebarInset";
|
|
255
|
-
const Ge = i.forwardRef(({ className: e, ...
|
|
253
|
+
const Ge = i.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ a(
|
|
256
254
|
Q,
|
|
257
255
|
{
|
|
258
|
-
ref:
|
|
256
|
+
ref: t,
|
|
259
257
|
className: l(
|
|
260
258
|
"bg-background h-8 w-full shadow-none",
|
|
261
259
|
v,
|
|
@@ -263,31 +261,34 @@ const Ge = i.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ a(
|
|
|
263
261
|
),
|
|
264
262
|
"data-slot": "sidebar-input",
|
|
265
263
|
dataHook: "sidebar-input",
|
|
266
|
-
...
|
|
264
|
+
...r
|
|
267
265
|
}
|
|
268
266
|
));
|
|
269
267
|
Ge.displayName = "SidebarInput";
|
|
270
268
|
const Ue = i.forwardRef(
|
|
271
|
-
({ className: e, dataHook:
|
|
269
|
+
({ className: e, dataHook: r, ...t }, o) => /* @__PURE__ */ a(
|
|
272
270
|
"header",
|
|
273
271
|
{
|
|
274
272
|
ref: o,
|
|
275
273
|
className: l(
|
|
276
|
-
|
|
274
|
+
// DS-860 Figma: logo sits 24px from the left and 24px from the
|
|
275
|
+
// top; pb-5 plus the ScrollArea viewport's 4px top inset gives the
|
|
276
|
+
// 24px gap to the first nav item.
|
|
277
|
+
"pr-section-xs flex shrink-0 flex-col gap-2 pt-6 pb-5 pl-6",
|
|
277
278
|
e
|
|
278
279
|
),
|
|
279
|
-
"data-hook":
|
|
280
|
+
"data-hook": r,
|
|
280
281
|
"data-slot": "sidebar-header",
|
|
281
|
-
...
|
|
282
|
+
...t
|
|
282
283
|
}
|
|
283
284
|
)
|
|
284
285
|
);
|
|
285
286
|
Ue.displayName = "SidebarHeader";
|
|
286
|
-
const
|
|
287
|
-
({ className: e, dataHook:
|
|
288
|
-
const { footerPortalEl: n } =
|
|
289
|
-
|
|
290
|
-
|
|
287
|
+
const $e = i.forwardRef(
|
|
288
|
+
({ className: e, dataHook: r, separator: t = !0, ...o }, s) => {
|
|
289
|
+
const { footerPortalEl: n } = y(), d = /* @__PURE__ */ c(M, { children: [
|
|
290
|
+
t && /* @__PURE__ */ a(
|
|
291
|
+
P,
|
|
291
292
|
{
|
|
292
293
|
className: "group-data-[collapsible=icon]:mx-0",
|
|
293
294
|
"data-slot": "sidebar-footer-separator",
|
|
@@ -299,32 +300,32 @@ const Ke = i.forwardRef(
|
|
|
299
300
|
{
|
|
300
301
|
ref: s,
|
|
301
302
|
className: l("flex shrink-0 flex-col gap-1 p-1", e),
|
|
302
|
-
"data-hook":
|
|
303
|
+
"data-hook": r,
|
|
303
304
|
"data-slot": "sidebar-footer",
|
|
304
305
|
...o
|
|
305
306
|
}
|
|
306
307
|
)
|
|
307
308
|
] });
|
|
308
|
-
return n ?
|
|
309
|
+
return n ? X(d, n) : d;
|
|
309
310
|
}
|
|
310
311
|
);
|
|
311
|
-
|
|
312
|
-
const
|
|
313
|
-
|
|
312
|
+
$e.displayName = "SidebarFooter";
|
|
313
|
+
const Ke = i.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ a(
|
|
314
|
+
P,
|
|
314
315
|
{
|
|
315
|
-
ref:
|
|
316
|
+
ref: t,
|
|
316
317
|
className: l(
|
|
317
318
|
"bg-sidebar-border mx-2 my-5 w-auto group-data-[collapsible=icon]:mx-0",
|
|
318
319
|
e
|
|
319
320
|
),
|
|
320
321
|
"data-slot": "sidebar-separator",
|
|
321
|
-
...
|
|
322
|
+
...r
|
|
322
323
|
}
|
|
323
324
|
));
|
|
324
|
-
|
|
325
|
-
const
|
|
326
|
-
({ className: e, dataHook:
|
|
327
|
-
const { isMobile: d, setFooterPortalEl: u } =
|
|
325
|
+
Ke.displayName = "SidebarSeparator";
|
|
326
|
+
const We = i.forwardRef(
|
|
327
|
+
({ className: e, dataHook: r, ariaLabel: t = "Sidebar", children: o, ...s }, n) => {
|
|
328
|
+
const { isMobile: d, setFooterPortalEl: u } = y(), m = i.useCallback(
|
|
328
329
|
(p) => {
|
|
329
330
|
const b = p?.querySelector(
|
|
330
331
|
'[data-slot="scroll-area-viewport"]'
|
|
@@ -338,17 +339,17 @@ const qe = i.forwardRef(
|
|
|
338
339
|
{
|
|
339
340
|
ref: m,
|
|
340
341
|
className: l(
|
|
341
|
-
"min-h-0 flex-1 group-data-[collapsible=icon]:overflow-hidden **:data-[slot=scroll-area-scrollbar]:w-1 **:data-[slot=scroll-area-scrollbar]:border-l-0 **:data-[slot=scroll-area-scrollbar]:p-0 [&_[data-slot=scroll-area-viewport]>div]:flex! [&_[data-slot=scroll-area-viewport]>div]:min-h-full [&_[data-slot=scroll-area-viewport]>div]:flex-col",
|
|
342
|
+
"min-h-0 flex-1 group-data-[collapsible=icon]:overflow-hidden **:data-[slot=scroll-area-scrollbar]:w-1 **:data-[slot=scroll-area-scrollbar]:border-l-0 **:data-[slot=scroll-area-scrollbar]:p-0 [&_[data-slot=scroll-area-viewport]]:pr-3! [&_[data-slot=scroll-area-viewport]]:pl-2! [&_[data-slot=scroll-area-viewport]>div]:flex! [&_[data-slot=scroll-area-viewport]>div]:min-h-full [&_[data-slot=scroll-area-viewport]>div]:flex-col",
|
|
342
343
|
e
|
|
343
344
|
),
|
|
344
|
-
dataHook:
|
|
345
|
+
dataHook: r ?? "sidebar-content-scroll",
|
|
345
346
|
scrollOrientation: d ? "both" : "vertical",
|
|
346
347
|
...s,
|
|
347
348
|
children: [
|
|
348
349
|
/* @__PURE__ */ a(
|
|
349
350
|
"nav",
|
|
350
351
|
{
|
|
351
|
-
"aria-label":
|
|
352
|
+
"aria-label": t,
|
|
352
353
|
className: "flex flex-col gap-2",
|
|
353
354
|
"data-slot": "sidebar-content",
|
|
354
355
|
children: o
|
|
@@ -360,31 +361,31 @@ const qe = i.forwardRef(
|
|
|
360
361
|
);
|
|
361
362
|
}
|
|
362
363
|
);
|
|
363
|
-
|
|
364
|
-
const
|
|
365
|
-
({ className: e, dataHook:
|
|
364
|
+
We.displayName = "SidebarContent";
|
|
365
|
+
const qe = i.forwardRef(
|
|
366
|
+
({ className: e, dataHook: r, ...t }, o) => /* @__PURE__ */ a(
|
|
366
367
|
"div",
|
|
367
368
|
{
|
|
368
369
|
ref: o,
|
|
369
370
|
className: l("relative flex w-full min-w-0 flex-col py-2", e),
|
|
370
|
-
"data-hook":
|
|
371
|
+
"data-hook": r,
|
|
371
372
|
"data-slot": "sidebar-group",
|
|
372
|
-
...
|
|
373
|
+
...t
|
|
373
374
|
}
|
|
374
375
|
)
|
|
375
376
|
);
|
|
376
|
-
|
|
377
|
-
const
|
|
377
|
+
qe.displayName = "SidebarGroup";
|
|
378
|
+
const Xe = _(
|
|
378
379
|
[
|
|
379
|
-
"flex h-8 shrink-0 items-center rounded-md px-2
|
|
380
|
+
"flex h-8 shrink-0 items-center rounded-md px-2 text-sidebar-foreground/70 outline-none transition-[margin,opacity] duration-base ease-linear [&>svg]:shrink-0 group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",
|
|
380
381
|
v
|
|
381
382
|
],
|
|
382
383
|
{
|
|
383
384
|
variants: {
|
|
384
385
|
size: {
|
|
385
|
-
default: "text-
|
|
386
|
-
sm: "text-
|
|
387
|
-
xs: "text-
|
|
386
|
+
default: "text-label",
|
|
387
|
+
sm: "text-label",
|
|
388
|
+
xs: "text-label-sm"
|
|
388
389
|
},
|
|
389
390
|
variant: {
|
|
390
391
|
default: "",
|
|
@@ -397,11 +398,11 @@ const Ve = O(
|
|
|
397
398
|
variant: "default"
|
|
398
399
|
}
|
|
399
400
|
}
|
|
400
|
-
),
|
|
401
|
+
), Ve = i.forwardRef(
|
|
401
402
|
({
|
|
402
403
|
className: e,
|
|
403
|
-
dataHook:
|
|
404
|
-
asChild:
|
|
404
|
+
dataHook: r,
|
|
405
|
+
asChild: t = !1,
|
|
405
406
|
size: o = "sm",
|
|
406
407
|
variant: s = "default",
|
|
407
408
|
isOpen: n = !1,
|
|
@@ -410,7 +411,7 @@ const Ve = O(
|
|
|
410
411
|
children: m,
|
|
411
412
|
...p
|
|
412
413
|
}, b) => {
|
|
413
|
-
const f =
|
|
414
|
+
const f = t ? S : "div", h = () => {
|
|
414
415
|
s === "collapsible" && d ? d() : s === "action" && u && u();
|
|
415
416
|
}, w = (g) => {
|
|
416
417
|
(g.key === "Enter" || g.key === " ") && (g.preventDefault(), h());
|
|
@@ -419,8 +420,8 @@ const Ve = O(
|
|
|
419
420
|
f,
|
|
420
421
|
{
|
|
421
422
|
ref: b,
|
|
422
|
-
className: l(
|
|
423
|
-
"data-hook":
|
|
423
|
+
className: l(Xe({ size: o, variant: s }), e),
|
|
424
|
+
"data-hook": r,
|
|
424
425
|
"data-slot": "sidebar-group-label",
|
|
425
426
|
"data-variant": s,
|
|
426
427
|
role: s !== "default" ? "button" : void 0,
|
|
@@ -431,7 +432,7 @@ const Ve = O(
|
|
|
431
432
|
children: [
|
|
432
433
|
/* @__PURE__ */ a("span", { children: m }),
|
|
433
434
|
s === "collapsible" && /* @__PURE__ */ a(
|
|
434
|
-
|
|
435
|
+
z,
|
|
435
436
|
{
|
|
436
437
|
className: l(
|
|
437
438
|
"duration-base shrink-0 transition-transform ease-in-out",
|
|
@@ -440,15 +441,15 @@ const Ve = O(
|
|
|
440
441
|
size: 16
|
|
441
442
|
}
|
|
442
443
|
),
|
|
443
|
-
s === "action" && /* @__PURE__ */ a(
|
|
444
|
+
s === "action" && /* @__PURE__ */ a(O, { className: "shrink-0", size: 16 })
|
|
444
445
|
]
|
|
445
446
|
}
|
|
446
447
|
);
|
|
447
448
|
}
|
|
448
449
|
);
|
|
449
|
-
|
|
450
|
-
const
|
|
451
|
-
|
|
450
|
+
Ve.displayName = "SidebarGroupLabel";
|
|
451
|
+
const Ye = i.forwardRef(({ className: e, asChild: r = !1, ...t }, o) => /* @__PURE__ */ a(
|
|
452
|
+
r ? S : "button",
|
|
452
453
|
{
|
|
453
454
|
ref: o,
|
|
454
455
|
className: l(
|
|
@@ -460,84 +461,84 @@ const Ze = i.forwardRef(({ className: e, asChild: t = !1, ...r }, o) => /* @__PU
|
|
|
460
461
|
e
|
|
461
462
|
),
|
|
462
463
|
"data-slot": "sidebar-group-action",
|
|
463
|
-
...
|
|
464
|
+
...t
|
|
464
465
|
}
|
|
465
466
|
));
|
|
466
|
-
|
|
467
|
-
const
|
|
467
|
+
Ye.displayName = "SidebarGroupAction";
|
|
468
|
+
const Ze = i.forwardRef(({ className: e, dataHook: r, ...t }, o) => /* @__PURE__ */ a(
|
|
468
469
|
"div",
|
|
469
470
|
{
|
|
470
471
|
ref: o,
|
|
471
|
-
className: l("w-full
|
|
472
|
-
"data-hook":
|
|
472
|
+
className: l("text-body-sm w-full", e),
|
|
473
|
+
"data-hook": r,
|
|
473
474
|
"data-slot": "sidebar-group-content",
|
|
474
|
-
...
|
|
475
|
+
...t
|
|
475
476
|
}
|
|
476
477
|
));
|
|
477
|
-
|
|
478
|
-
const
|
|
479
|
-
({ className: e, dataHook:
|
|
478
|
+
Ze.displayName = "SidebarGroupContent";
|
|
479
|
+
const Je = i.forwardRef(
|
|
480
|
+
({ className: e, dataHook: r, ...t }, o) => /* @__PURE__ */ a(
|
|
480
481
|
"ul",
|
|
481
482
|
{
|
|
482
483
|
ref: o,
|
|
483
484
|
className: l("flex w-full min-w-0 flex-col gap-1", e),
|
|
484
|
-
"data-hook":
|
|
485
|
+
"data-hook": r,
|
|
485
486
|
"data-slot": "sidebar-menu",
|
|
486
|
-
...
|
|
487
|
+
...t
|
|
487
488
|
}
|
|
488
489
|
)
|
|
489
490
|
);
|
|
490
|
-
|
|
491
|
-
const
|
|
492
|
-
({ className: e, dataHook:
|
|
491
|
+
Je.displayName = "SidebarMenu";
|
|
492
|
+
const U = i.forwardRef(
|
|
493
|
+
({ className: e, dataHook: r, ...t }, o) => /* @__PURE__ */ a(
|
|
493
494
|
"li",
|
|
494
495
|
{
|
|
495
496
|
ref: o,
|
|
496
497
|
className: l("group/menu-item relative", e),
|
|
497
|
-
"data-hook":
|
|
498
|
+
"data-hook": r,
|
|
498
499
|
"data-slot": "sidebar-menu-item",
|
|
499
|
-
...
|
|
500
|
+
...t
|
|
500
501
|
}
|
|
501
502
|
)
|
|
502
503
|
);
|
|
503
|
-
|
|
504
|
-
const
|
|
504
|
+
U.displayName = "SidebarMenuItem";
|
|
505
|
+
const Qe = i.forwardRef(
|
|
505
506
|
({
|
|
506
507
|
type: e = "caret",
|
|
507
|
-
isActive:
|
|
508
|
-
className:
|
|
508
|
+
isActive: r = !1,
|
|
509
|
+
className: t,
|
|
509
510
|
...o
|
|
510
511
|
}, s) => {
|
|
511
512
|
const n = {
|
|
512
513
|
ref: s,
|
|
513
514
|
className: l(
|
|
514
515
|
"shrink-0 transition-transform duration-base ease-in-out",
|
|
515
|
-
|
|
516
|
-
|
|
516
|
+
r && e === "caret" && "rotate-90",
|
|
517
|
+
t
|
|
517
518
|
),
|
|
518
519
|
"data-slot": "sidebar-collapse-icon",
|
|
519
520
|
...o
|
|
520
521
|
};
|
|
521
522
|
switch (e) {
|
|
522
523
|
case "horizontal":
|
|
523
|
-
return /* @__PURE__ */ a(
|
|
524
|
+
return /* @__PURE__ */ a(A, { ...n });
|
|
524
525
|
case "vertical":
|
|
525
|
-
return /* @__PURE__ */ a(
|
|
526
|
+
return /* @__PURE__ */ a(z, { ...n });
|
|
526
527
|
case "upDown":
|
|
527
|
-
return /* @__PURE__ */ a(
|
|
528
|
+
return /* @__PURE__ */ a(F, { ...n });
|
|
528
529
|
case "plusMinus":
|
|
529
|
-
return
|
|
530
|
+
return r ? /* @__PURE__ */ a(Y, { ...n }) : /* @__PURE__ */ a(O, { ...n });
|
|
530
531
|
case "dots":
|
|
531
|
-
return /* @__PURE__ */ a(
|
|
532
|
+
return /* @__PURE__ */ a(V, { ...n });
|
|
532
533
|
default:
|
|
533
|
-
return /* @__PURE__ */ a(
|
|
534
|
+
return /* @__PURE__ */ a(A, { ...n });
|
|
534
535
|
}
|
|
535
536
|
}
|
|
536
537
|
);
|
|
537
|
-
|
|
538
|
-
const
|
|
538
|
+
Qe.displayName = "SidebarCollapseIcon";
|
|
539
|
+
const ea = _(
|
|
539
540
|
[
|
|
540
|
-
"peer/menu-button flex w-full items-center gap-
|
|
541
|
+
"peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-full px-4 py-2 text-left text-label outline-none transition-[color,background-color,border-color,box-shadow,opacity,width,height,padding] duration-base ease-in-out hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-semibold data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 group-data-[collapsible=icon]:rounded-md [&>span:not([data-slot])]:truncate [&>svg]:shrink-0 [&>svg]:opacity-70 data-[active=true]:[&>svg]:opacity-100 group-data-[collapsible=icon]:[&>span]:hidden group-data-[collapsible=icon]:[&>div]:hidden",
|
|
541
542
|
v
|
|
542
543
|
],
|
|
543
544
|
{
|
|
@@ -557,9 +558,9 @@ const aa = O(
|
|
|
557
558
|
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"
|
|
558
559
|
},
|
|
559
560
|
size: {
|
|
560
|
-
default: "h-12
|
|
561
|
-
sm: "h-7 text-
|
|
562
|
-
lg: "h-12
|
|
561
|
+
default: "h-12",
|
|
562
|
+
sm: "h-7 text-label-sm",
|
|
563
|
+
lg: "h-12 group-data-[collapsible=icon]:!p-0"
|
|
563
564
|
}
|
|
564
565
|
},
|
|
565
566
|
defaultVariants: {
|
|
@@ -567,27 +568,27 @@ const aa = O(
|
|
|
567
568
|
size: "default"
|
|
568
569
|
}
|
|
569
570
|
}
|
|
570
|
-
),
|
|
571
|
+
), T = i.forwardRef(
|
|
571
572
|
({
|
|
572
573
|
asChild: e = !1,
|
|
573
|
-
isActive:
|
|
574
|
-
variant:
|
|
574
|
+
isActive: r = !1,
|
|
575
|
+
variant: t = "simple",
|
|
575
576
|
size: o = "default",
|
|
576
577
|
tooltip: s,
|
|
577
578
|
className: n,
|
|
578
579
|
dataHook: d,
|
|
579
580
|
...u
|
|
580
581
|
}, m) => {
|
|
581
|
-
const p = e ? S : "button", { isMobile: b, state: f } =
|
|
582
|
+
const p = e ? S : "button", { isMobile: b, state: f } = y(), h = /* @__PURE__ */ a(
|
|
582
583
|
p,
|
|
583
584
|
{
|
|
584
585
|
ref: m,
|
|
585
|
-
className: l(
|
|
586
|
-
"data-active":
|
|
586
|
+
className: l(ea({ variant: t, size: o }), n),
|
|
587
|
+
"data-active": r,
|
|
587
588
|
"data-hook": d,
|
|
588
589
|
"data-size": o,
|
|
589
590
|
"data-slot": "sidebar-menu-button",
|
|
590
|
-
"data-variant":
|
|
591
|
+
"data-variant": t,
|
|
591
592
|
...u
|
|
592
593
|
}
|
|
593
594
|
);
|
|
@@ -614,9 +615,9 @@ const aa = O(
|
|
|
614
615
|
] })) : h;
|
|
615
616
|
}
|
|
616
617
|
);
|
|
617
|
-
|
|
618
|
-
const
|
|
619
|
-
|
|
618
|
+
T.displayName = "SidebarMenuButton";
|
|
619
|
+
const aa = i.forwardRef(({ className: e, asChild: r = !1, showOnHover: t = !1, ...o }, s) => /* @__PURE__ */ a(
|
|
620
|
+
r ? S : "button",
|
|
620
621
|
{
|
|
621
622
|
ref: s,
|
|
622
623
|
className: l(
|
|
@@ -629,30 +630,30 @@ const ta = i.forwardRef(({ className: e, asChild: t = !1, showOnHover: r = !1, .
|
|
|
629
630
|
"peer-data-[size=lg]/menu-button:top-2.5",
|
|
630
631
|
"peer-data-[size=bigIcon]/menu-button:top-2.5",
|
|
631
632
|
"group-data-[collapsible=icon]:hidden",
|
|
632
|
-
|
|
633
|
+
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",
|
|
633
634
|
e
|
|
634
635
|
),
|
|
635
636
|
"data-slot": "sidebar-menu-action",
|
|
636
637
|
...o
|
|
637
638
|
}
|
|
638
639
|
));
|
|
639
|
-
|
|
640
|
-
const
|
|
640
|
+
aa.displayName = "SidebarMenuAction";
|
|
641
|
+
const ta = i.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ a(
|
|
641
642
|
"div",
|
|
642
643
|
{
|
|
643
|
-
ref:
|
|
644
|
+
ref: t,
|
|
644
645
|
className: l(
|
|
645
|
-
"text-sidebar-foreground pointer-events-none absolute inset-y-0 right-4 my-auto flex h-5 min-w-5 items-center justify-center rounded-md px-1
|
|
646
|
+
"text-sidebar-foreground text-label-sm pointer-events-none absolute inset-y-0 right-4 my-auto flex h-5 min-w-5 items-center justify-center rounded-md px-1 tabular-nums select-none",
|
|
646
647
|
"peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground",
|
|
647
648
|
"group-data-[collapsible=icon]:hidden",
|
|
648
649
|
e
|
|
649
650
|
),
|
|
650
651
|
"data-slot": "sidebar-menu-badge",
|
|
651
|
-
...
|
|
652
|
+
...r
|
|
652
653
|
}
|
|
653
654
|
));
|
|
654
|
-
|
|
655
|
-
const
|
|
655
|
+
ta.displayName = "SidebarMenuBadge";
|
|
656
|
+
const ra = i.forwardRef(({ className: e, showIcon: r = !1, ...t }, o) => {
|
|
656
657
|
const s = i.useId(), n = i.useMemo(() => {
|
|
657
658
|
let d = 0;
|
|
658
659
|
for (let u = 0; u < s.length; u++)
|
|
@@ -665,9 +666,9 @@ const oa = i.forwardRef(({ className: e, showIcon: t = !1, ...r }, o) => {
|
|
|
665
666
|
ref: o,
|
|
666
667
|
className: l("flex h-8 items-center gap-2 rounded-md px-2", e),
|
|
667
668
|
"data-slot": "sidebar-menu-skeleton",
|
|
668
|
-
...
|
|
669
|
+
...t,
|
|
669
670
|
children: [
|
|
670
|
-
|
|
671
|
+
r && /* @__PURE__ */ a(
|
|
671
672
|
B,
|
|
672
673
|
{
|
|
673
674
|
className: "size-4 rounded-md",
|
|
@@ -677,7 +678,7 @@ const oa = i.forwardRef(({ className: e, showIcon: t = !1, ...r }, o) => {
|
|
|
677
678
|
/* @__PURE__ */ a(
|
|
678
679
|
B,
|
|
679
680
|
{
|
|
680
|
-
className: "h-4 max-w-
|
|
681
|
+
className: "h-4 max-w-(--skeleton-width) flex-1",
|
|
681
682
|
"data-slot": "sidebar-menu-skeleton-text",
|
|
682
683
|
style: {
|
|
683
684
|
"--skeleton-width": n
|
|
@@ -688,8 +689,8 @@ const oa = i.forwardRef(({ className: e, showIcon: t = !1, ...r }, o) => {
|
|
|
688
689
|
}
|
|
689
690
|
);
|
|
690
691
|
});
|
|
691
|
-
|
|
692
|
-
const
|
|
692
|
+
ra.displayName = "SidebarMenuSkeleton";
|
|
693
|
+
const oa = _(
|
|
693
694
|
"flex min-w-0 flex-col items-start gap-1 py-1 group-data-[collapsible=icon]:hidden",
|
|
694
695
|
{
|
|
695
696
|
variants: {
|
|
@@ -703,34 +704,34 @@ const sa = O(
|
|
|
703
704
|
variant: "border"
|
|
704
705
|
}
|
|
705
706
|
}
|
|
706
|
-
),
|
|
707
|
-
({ className: e, variant:
|
|
707
|
+
), $ = i.forwardRef(
|
|
708
|
+
({ className: e, variant: r = "border", dataHook: t, ...o }, s) => /* @__PURE__ */ a(
|
|
708
709
|
"ul",
|
|
709
710
|
{
|
|
710
711
|
ref: s,
|
|
711
|
-
className: l(
|
|
712
|
-
"data-hook":
|
|
712
|
+
className: l(oa({ variant: r }), e),
|
|
713
|
+
"data-hook": t,
|
|
713
714
|
"data-slot": "sidebar-menu-sub",
|
|
714
715
|
...o
|
|
715
716
|
}
|
|
716
717
|
)
|
|
717
718
|
);
|
|
718
|
-
|
|
719
|
-
const
|
|
719
|
+
$.displayName = "SidebarMenuSub";
|
|
720
|
+
const sa = i.forwardRef(({ dataHook: e, ...r }, t) => /* @__PURE__ */ a(
|
|
720
721
|
"li",
|
|
721
722
|
{
|
|
722
|
-
ref:
|
|
723
|
+
ref: t,
|
|
723
724
|
"data-hook": e,
|
|
724
725
|
"data-slot": "sidebar-menu-sub-item",
|
|
725
|
-
...
|
|
726
|
+
...r
|
|
726
727
|
}
|
|
727
728
|
));
|
|
728
|
-
|
|
729
|
-
const
|
|
729
|
+
sa.displayName = "SidebarMenuSubItem";
|
|
730
|
+
const na = i.forwardRef(
|
|
730
731
|
({
|
|
731
732
|
asChild: e = !1,
|
|
732
|
-
size:
|
|
733
|
-
isActive:
|
|
733
|
+
size: r = "md",
|
|
734
|
+
isActive: t,
|
|
734
735
|
className: o,
|
|
735
736
|
dataHook: s,
|
|
736
737
|
...n
|
|
@@ -739,57 +740,56 @@ const ia = i.forwardRef(
|
|
|
739
740
|
{
|
|
740
741
|
ref: d,
|
|
741
742
|
className: l(
|
|
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 duration-fast flex h-7 min-w-0 items-center gap-2 overflow-hidden rounded-md px-2 transition-[color,background-color,box-shadow,opacity] ease-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
|
+
"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 text-label duration-fast flex h-7 min-w-0 items-center gap-2 overflow-hidden rounded-md px-2 transition-[color,background-color,box-shadow,opacity] ease-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
744
|
v,
|
|
744
745
|
"data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",
|
|
745
|
-
|
|
746
|
-
t === "md" && "text-sm",
|
|
746
|
+
r === "sm" && "text-label-sm",
|
|
747
747
|
"group-data-[collapsible=icon]:hidden",
|
|
748
748
|
o
|
|
749
749
|
),
|
|
750
|
-
"data-active":
|
|
750
|
+
"data-active": t,
|
|
751
751
|
"data-hook": s,
|
|
752
|
-
"data-size":
|
|
752
|
+
"data-size": r,
|
|
753
753
|
"data-slot": "sidebar-menu-sub-button",
|
|
754
754
|
...n
|
|
755
755
|
}
|
|
756
756
|
)
|
|
757
757
|
);
|
|
758
|
-
|
|
759
|
-
function
|
|
758
|
+
na.displayName = "SidebarMenuSubButton";
|
|
759
|
+
function ia({
|
|
760
760
|
dataHook: e,
|
|
761
|
-
className:
|
|
762
|
-
children:
|
|
761
|
+
className: r,
|
|
762
|
+
children: t,
|
|
763
763
|
defaultOpen: o,
|
|
764
764
|
open: s,
|
|
765
765
|
onOpenChange: n
|
|
766
766
|
}) {
|
|
767
|
-
return /* @__PURE__ */ a(
|
|
767
|
+
return /* @__PURE__ */ a(U, { children: /* @__PURE__ */ a(
|
|
768
768
|
pe,
|
|
769
769
|
{
|
|
770
770
|
collapsible: !0,
|
|
771
|
-
className:
|
|
771
|
+
className: r,
|
|
772
772
|
dataHook: e ?? "sidebar-menu-collapsible",
|
|
773
773
|
defaultValue: o ? "item" : void 0,
|
|
774
774
|
type: "single",
|
|
775
775
|
value: s !== void 0 ? s ? "item" : "" : void 0,
|
|
776
776
|
onValueChange: n ? (d) => n(d === "item") : void 0,
|
|
777
|
-
children: /* @__PURE__ */ a(fe, { className: "group/collapsible border-none", value: "item", children:
|
|
777
|
+
children: /* @__PURE__ */ a(fe, { className: "group/collapsible border-none", value: "item", children: t })
|
|
778
778
|
}
|
|
779
779
|
) });
|
|
780
780
|
}
|
|
781
|
-
|
|
782
|
-
const
|
|
783
|
-
|
|
781
|
+
ia.displayName = "SidebarMenuCollapsible";
|
|
782
|
+
const da = i.forwardRef(({ children: e, className: r, ...t }, o) => /* @__PURE__ */ a(he.Trigger, { asChild: !0, children: /* @__PURE__ */ c(
|
|
783
|
+
T,
|
|
784
784
|
{
|
|
785
785
|
ref: o,
|
|
786
|
-
className:
|
|
786
|
+
className: r,
|
|
787
787
|
variant: "collapsible",
|
|
788
|
-
...
|
|
788
|
+
...t,
|
|
789
789
|
children: [
|
|
790
790
|
e,
|
|
791
791
|
/* @__PURE__ */ a(
|
|
792
|
-
|
|
792
|
+
A,
|
|
793
793
|
{
|
|
794
794
|
"data-collapse-icon": !0,
|
|
795
795
|
className: "duration-base opacity-100! transition-transform ease-in-out group-data-[collapsible=icon]:hidden",
|
|
@@ -799,14 +799,14 @@ const la = i.forwardRef(({ children: e, className: t, ...r }, o) => /* @__PURE__
|
|
|
799
799
|
]
|
|
800
800
|
}
|
|
801
801
|
) }));
|
|
802
|
-
|
|
803
|
-
const
|
|
804
|
-
|
|
805
|
-
const
|
|
802
|
+
da.displayName = "SidebarMenuCollapsibleTrigger";
|
|
803
|
+
const la = i.forwardRef(({ dataHook: e, children: r, ...t }, o) => /* @__PURE__ */ a(me, { className: "p-0", children: /* @__PURE__ */ a($, { ref: o, dataHook: e, ...t, children: r }) }));
|
|
804
|
+
la.displayName = "SidebarMenuCollapsibleContent";
|
|
805
|
+
const ca = i.forwardRef(
|
|
806
806
|
({
|
|
807
807
|
className: e,
|
|
808
|
-
dataHook:
|
|
809
|
-
trackingEl:
|
|
808
|
+
dataHook: r = "sidebar-drawer",
|
|
809
|
+
trackingEl: t,
|
|
810
810
|
trackingLabel: o,
|
|
811
811
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars -- accepted for backward compat
|
|
812
812
|
children: s,
|
|
@@ -816,19 +816,19 @@ const ua = i.forwardRef(
|
|
|
816
816
|
{
|
|
817
817
|
ref: d,
|
|
818
818
|
className: e,
|
|
819
|
-
"data-hook":
|
|
819
|
+
"data-hook": r,
|
|
820
820
|
"data-slot": "sidebar-drawer",
|
|
821
|
-
"data-tracking-el":
|
|
821
|
+
"data-tracking-el": t,
|
|
822
822
|
"data-tracking-label": o,
|
|
823
823
|
...n,
|
|
824
|
-
children: /* @__PURE__ */ a(
|
|
824
|
+
children: /* @__PURE__ */ a(G, { dataHook: `${r}-trigger`, children: /* @__PURE__ */ a(Z, { size: 24 }) })
|
|
825
825
|
}
|
|
826
826
|
)
|
|
827
827
|
);
|
|
828
|
-
|
|
829
|
-
const
|
|
830
|
-
({ className: e, dataHook:
|
|
831
|
-
|
|
828
|
+
ca.displayName = "SidebarDrawer";
|
|
829
|
+
const ua = i.forwardRef(
|
|
830
|
+
({ className: e, dataHook: r = "sidebar-header-button", children: t, ...o }, s) => /* @__PURE__ */ a(
|
|
831
|
+
H,
|
|
832
832
|
{
|
|
833
833
|
ref: s,
|
|
834
834
|
...o,
|
|
@@ -839,19 +839,19 @@ const ba = i.forwardRef(
|
|
|
839
839
|
e
|
|
840
840
|
),
|
|
841
841
|
"data-slot": "sidebar-header-button",
|
|
842
|
-
dataHook:
|
|
842
|
+
dataHook: r,
|
|
843
843
|
size: "sm",
|
|
844
844
|
variant: "ghost",
|
|
845
|
-
children:
|
|
845
|
+
children: t
|
|
846
846
|
}
|
|
847
847
|
)
|
|
848
848
|
);
|
|
849
|
-
|
|
850
|
-
const
|
|
849
|
+
ua.displayName = "SidebarHeaderButton";
|
|
850
|
+
const K = i.forwardRef(
|
|
851
851
|
({
|
|
852
852
|
className: e,
|
|
853
|
-
dataHook:
|
|
854
|
-
icon:
|
|
853
|
+
dataHook: r = "sidebar-popover-trigger",
|
|
854
|
+
icon: t,
|
|
855
855
|
triggerAriaLabel: o,
|
|
856
856
|
children: s,
|
|
857
857
|
...n
|
|
@@ -861,49 +861,49 @@ const U = i.forwardRef(
|
|
|
861
861
|
ref: d,
|
|
862
862
|
"aria-label": o ?? "Switch workspace",
|
|
863
863
|
className: l(
|
|
864
|
-
"text-sidebar-foreground hover:bg-sidebar-accent hover:text-sidebar-accent-foreground duration-fast flex items-center gap-2 rounded-md px-1.5 py-2
|
|
864
|
+
"text-sidebar-foreground hover:bg-sidebar-accent hover:text-sidebar-accent-foreground duration-fast text-heading-compact flex items-center gap-2 rounded-md px-1.5 py-2 transition-colors ease-out outline-none",
|
|
865
865
|
v,
|
|
866
866
|
e
|
|
867
867
|
),
|
|
868
|
-
"data-hook":
|
|
868
|
+
"data-hook": r,
|
|
869
869
|
"data-slot": "sidebar-popover-trigger",
|
|
870
870
|
type: "button",
|
|
871
871
|
...n,
|
|
872
872
|
children: [
|
|
873
|
-
|
|
873
|
+
t && /* @__PURE__ */ a("span", { className: "bg-sidebar-primary text-sidebar-primary-foreground flex size-5 shrink-0 items-center justify-center rounded-md", children: t }),
|
|
874
874
|
/* @__PURE__ */ a("span", { className: "truncate", children: s }),
|
|
875
|
-
/* @__PURE__ */ a(
|
|
875
|
+
/* @__PURE__ */ a(z, { className: "shrink-0 opacity-50", size: 16 })
|
|
876
876
|
]
|
|
877
877
|
}
|
|
878
878
|
)
|
|
879
879
|
);
|
|
880
|
-
|
|
881
|
-
const
|
|
880
|
+
K.displayName = "SidebarPopoverTrigger";
|
|
881
|
+
const E = i.forwardRef(({ className: e, dataHook: r, icon: t, shortcut: o, children: s, ...n }, d) => /* @__PURE__ */ c(
|
|
882
882
|
"button",
|
|
883
883
|
{
|
|
884
884
|
ref: d,
|
|
885
885
|
className: l(
|
|
886
|
-
"text-popover-foreground hover:bg-accent hover:text-accent-foreground focus-visible:bg-accent focus-visible:text-accent-foreground duration-fast flex h-10 w-full items-center gap-2 rounded-xs p-2
|
|
886
|
+
"text-popover-foreground hover:bg-accent hover:text-accent-foreground focus-visible:bg-accent focus-visible:text-accent-foreground duration-fast text-label flex h-10 w-full items-center gap-2 rounded-xs p-2 transition-colors ease-out outline-none",
|
|
887
887
|
v,
|
|
888
888
|
e
|
|
889
889
|
),
|
|
890
|
-
"data-hook":
|
|
890
|
+
"data-hook": r,
|
|
891
891
|
"data-slot": "sidebar-popover-menu-item",
|
|
892
892
|
type: "button",
|
|
893
893
|
...n,
|
|
894
894
|
children: [
|
|
895
|
-
|
|
895
|
+
t && /* @__PURE__ */ a("span", { className: "border-border flex size-6 shrink-0 items-center justify-center rounded-xs border [&_svg]:size-4", children: t }),
|
|
896
896
|
/* @__PURE__ */ a("span", { className: "min-w-px flex-1 truncate text-left", children: s }),
|
|
897
|
-
o && /* @__PURE__ */ a("span", { className: "text-popover-foreground/60 shrink-0
|
|
897
|
+
o && /* @__PURE__ */ a("span", { className: "text-popover-foreground/60 text-body-xs shrink-0", children: o })
|
|
898
898
|
]
|
|
899
899
|
}
|
|
900
900
|
));
|
|
901
|
-
|
|
902
|
-
const
|
|
901
|
+
E.displayName = "SidebarPopoverMenuItem";
|
|
902
|
+
const ba = i.forwardRef(
|
|
903
903
|
({
|
|
904
904
|
className: e,
|
|
905
|
-
dataHook:
|
|
906
|
-
groupTitle:
|
|
905
|
+
dataHook: r = "sidebar-popover-menu",
|
|
906
|
+
groupTitle: t = "Teams",
|
|
907
907
|
items: o,
|
|
908
908
|
addActionLabel: s,
|
|
909
909
|
addActionIcon: n,
|
|
@@ -915,14 +915,14 @@ const pa = i.forwardRef(
|
|
|
915
915
|
{
|
|
916
916
|
ref: p,
|
|
917
917
|
className: l("flex flex-col", e),
|
|
918
|
-
"data-hook":
|
|
918
|
+
"data-hook": r,
|
|
919
919
|
"data-slot": "sidebar-popover-menu",
|
|
920
920
|
...m,
|
|
921
921
|
children: u || /* @__PURE__ */ c(M, { children: [
|
|
922
922
|
/* @__PURE__ */ c("div", { className: "flex flex-col items-start p-1", children: [
|
|
923
|
-
|
|
923
|
+
t && /* @__PURE__ */ a("div", { className: "flex w-full items-center px-2 py-1.5", children: /* @__PURE__ */ a("span", { className: "text-muted-foreground text-label-sm flex-1", children: t }) }),
|
|
924
924
|
o?.map((b, f) => /* @__PURE__ */ a(
|
|
925
|
-
|
|
925
|
+
E,
|
|
926
926
|
{
|
|
927
927
|
icon: b.icon,
|
|
928
928
|
shortcut: b.shortcut,
|
|
@@ -933,11 +933,11 @@ const pa = i.forwardRef(
|
|
|
933
933
|
))
|
|
934
934
|
] }),
|
|
935
935
|
d && /* @__PURE__ */ c(M, { children: [
|
|
936
|
-
/* @__PURE__ */ a(
|
|
936
|
+
/* @__PURE__ */ a(P, {}),
|
|
937
937
|
/* @__PURE__ */ a("div", { className: "flex flex-col items-start p-1", children: /* @__PURE__ */ a(
|
|
938
|
-
|
|
938
|
+
E,
|
|
939
939
|
{
|
|
940
|
-
icon: n || /* @__PURE__ */ a(
|
|
940
|
+
icon: n || /* @__PURE__ */ a(O, { size: 16 }),
|
|
941
941
|
onClick: d,
|
|
942
942
|
children: s ?? "Add team"
|
|
943
943
|
}
|
|
@@ -947,24 +947,24 @@ const pa = i.forwardRef(
|
|
|
947
947
|
}
|
|
948
948
|
)
|
|
949
949
|
);
|
|
950
|
-
|
|
951
|
-
function
|
|
950
|
+
ba.displayName = "SidebarPopoverMenu";
|
|
951
|
+
function pa({
|
|
952
952
|
dataHook: e = "sidebar-switcher",
|
|
953
|
-
icon:
|
|
954
|
-
label:
|
|
953
|
+
icon: r,
|
|
954
|
+
label: t,
|
|
955
955
|
triggerAriaLabel: o,
|
|
956
956
|
triggerClassName: s,
|
|
957
957
|
children: n
|
|
958
958
|
}) {
|
|
959
959
|
return /* @__PURE__ */ c(ne, { children: [
|
|
960
960
|
/* @__PURE__ */ a(ie, { asChild: !0, children: /* @__PURE__ */ a(
|
|
961
|
-
|
|
961
|
+
K,
|
|
962
962
|
{
|
|
963
963
|
className: s,
|
|
964
964
|
dataHook: `${e}-trigger`,
|
|
965
|
-
icon:
|
|
965
|
+
icon: r,
|
|
966
966
|
triggerAriaLabel: o,
|
|
967
|
-
children:
|
|
967
|
+
children: t
|
|
968
968
|
}
|
|
969
969
|
) }),
|
|
970
970
|
/* @__PURE__ */ a(
|
|
@@ -980,11 +980,11 @@ function fa({
|
|
|
980
980
|
)
|
|
981
981
|
] });
|
|
982
982
|
}
|
|
983
|
-
|
|
984
|
-
function
|
|
983
|
+
pa.displayName = "SidebarSwitcher";
|
|
984
|
+
function fa({
|
|
985
985
|
dataHook: e = "sidebar-account-dropdown",
|
|
986
|
-
name:
|
|
987
|
-
email:
|
|
986
|
+
name: r,
|
|
987
|
+
email: t,
|
|
988
988
|
avatar: o,
|
|
989
989
|
menuGroups: s,
|
|
990
990
|
triggerAriaLabel: n,
|
|
@@ -994,7 +994,7 @@ function ma({
|
|
|
994
994
|
}) {
|
|
995
995
|
return /* @__PURE__ */ c(ee, { children: [
|
|
996
996
|
/* @__PURE__ */ a(ae, { asChild: !0, children: /* @__PURE__ */ c(
|
|
997
|
-
|
|
997
|
+
T,
|
|
998
998
|
{
|
|
999
999
|
"aria-label": n ?? "Account menu",
|
|
1000
1000
|
className: "h-auto py-1.5",
|
|
@@ -1002,10 +1002,11 @@ function ma({
|
|
|
1002
1002
|
size: "lg",
|
|
1003
1003
|
children: [
|
|
1004
1004
|
o,
|
|
1005
|
-
/* @__PURE__ */ c("div", { className: "flex min-w-0 flex-1 flex-col gap-0.5
|
|
1006
|
-
/* @__PURE__ */ a("span", { className: "
|
|
1007
|
-
/* @__PURE__ */ a("span", { className: "
|
|
1008
|
-
] })
|
|
1005
|
+
/* @__PURE__ */ c("div", { className: "flex min-w-0 flex-1 flex-col gap-0.5", children: [
|
|
1006
|
+
/* @__PURE__ */ a("span", { className: "text-heading-compact truncate", children: r }),
|
|
1007
|
+
/* @__PURE__ */ a("span", { className: "text-body-xs truncate", children: t })
|
|
1008
|
+
] }),
|
|
1009
|
+
/* @__PURE__ */ a(F, { className: "shrink-0" })
|
|
1009
1010
|
]
|
|
1010
1011
|
}
|
|
1011
1012
|
) }),
|
|
@@ -1020,9 +1021,9 @@ function ma({
|
|
|
1020
1021
|
children: m || /* @__PURE__ */ c(M, { children: [
|
|
1021
1022
|
/* @__PURE__ */ c(re, { className: "flex items-center gap-2 px-1 py-1.5", children: [
|
|
1022
1023
|
o,
|
|
1023
|
-
/* @__PURE__ */ c("div", { className: "flex min-w-0 flex-1 flex-col gap-0.5
|
|
1024
|
-
/* @__PURE__ */ a("span", { className: "
|
|
1025
|
-
/* @__PURE__ */ a("span", { className: "
|
|
1024
|
+
/* @__PURE__ */ c("div", { className: "flex min-w-0 flex-1 flex-col gap-0.5", children: [
|
|
1025
|
+
/* @__PURE__ */ a("span", { className: "text-heading-compact truncate", children: r }),
|
|
1026
|
+
/* @__PURE__ */ a("span", { className: "text-body-xs truncate", children: t })
|
|
1026
1027
|
] })
|
|
1027
1028
|
] }),
|
|
1028
1029
|
s?.map((p, b) => /* @__PURE__ */ c(i.Fragment, { children: [
|
|
@@ -1037,12 +1038,12 @@ function ma({
|
|
|
1037
1038
|
)
|
|
1038
1039
|
] });
|
|
1039
1040
|
}
|
|
1040
|
-
|
|
1041
|
-
const
|
|
1041
|
+
fa.displayName = "SidebarAccountDropdown";
|
|
1042
|
+
const ma = i.forwardRef(
|
|
1042
1043
|
({
|
|
1043
1044
|
className: e,
|
|
1044
|
-
dataHook:
|
|
1045
|
-
senderName:
|
|
1045
|
+
dataHook: r,
|
|
1046
|
+
senderName: t,
|
|
1046
1047
|
title: o,
|
|
1047
1048
|
description: s,
|
|
1048
1049
|
timestamp: n,
|
|
@@ -1056,67 +1057,67 @@ const ha = i.forwardRef(
|
|
|
1056
1057
|
v,
|
|
1057
1058
|
e
|
|
1058
1059
|
),
|
|
1059
|
-
"data-hook":
|
|
1060
|
+
"data-hook": r,
|
|
1060
1061
|
"data-slot": "sidebar-inbox-item",
|
|
1061
1062
|
type: "button",
|
|
1062
1063
|
...d,
|
|
1063
1064
|
children: [
|
|
1064
|
-
/* @__PURE__ */ c("div", { className: "flex w-full items-center justify-between
|
|
1065
|
-
/* @__PURE__ */ a("span", { children:
|
|
1065
|
+
/* @__PURE__ */ c("div", { className: "text-body-sm flex w-full items-center justify-between", children: [
|
|
1066
|
+
/* @__PURE__ */ a("span", { children: t }),
|
|
1066
1067
|
n && /* @__PURE__ */ a("span", { children: n })
|
|
1067
1068
|
] }),
|
|
1068
|
-
/* @__PURE__ */ a("p", { className: "
|
|
1069
|
-
s && /* @__PURE__ */ a("p", { className: "w-full truncate
|
|
1069
|
+
/* @__PURE__ */ a("p", { className: "text-heading-compact w-full", children: o }),
|
|
1070
|
+
s && /* @__PURE__ */ a("p", { className: "text-body-xs w-full truncate", children: s })
|
|
1070
1071
|
]
|
|
1071
1072
|
}
|
|
1072
1073
|
)
|
|
1073
1074
|
);
|
|
1074
|
-
|
|
1075
|
+
ma.displayName = "SidebarInboxItem";
|
|
1075
1076
|
export {
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1077
|
+
Fe as Sidebar,
|
|
1078
|
+
fa as SidebarAccountDropdown,
|
|
1079
|
+
Qe as SidebarCollapseIcon,
|
|
1080
|
+
_e as SidebarCollapseIconType,
|
|
1080
1081
|
Ce as SidebarCollapsible,
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1082
|
+
We as SidebarContent,
|
|
1083
|
+
ca as SidebarDrawer,
|
|
1084
|
+
$e as SidebarFooter,
|
|
1085
|
+
qe as SidebarGroup,
|
|
1086
|
+
Ye as SidebarGroupAction,
|
|
1087
|
+
Ze as SidebarGroupContent,
|
|
1088
|
+
Ve as SidebarGroupLabel,
|
|
1088
1089
|
Re as SidebarGroupLabelSize,
|
|
1089
1090
|
Me as SidebarGroupLabelVariant,
|
|
1090
1091
|
Ue as SidebarHeader,
|
|
1091
|
-
|
|
1092
|
-
|
|
1092
|
+
ua as SidebarHeaderButton,
|
|
1093
|
+
ma as SidebarInboxItem,
|
|
1093
1094
|
Ge as SidebarInput,
|
|
1094
1095
|
je as SidebarInset,
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1096
|
+
Je as SidebarMenu,
|
|
1097
|
+
aa as SidebarMenuAction,
|
|
1098
|
+
ta as SidebarMenuBadge,
|
|
1099
|
+
T as SidebarMenuButton,
|
|
1099
1100
|
De as SidebarMenuButtonSize,
|
|
1100
1101
|
Ie as SidebarMenuButtonVariant,
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1102
|
+
ia as SidebarMenuCollapsible,
|
|
1103
|
+
la as SidebarMenuCollapsibleContent,
|
|
1104
|
+
da as SidebarMenuCollapsibleTrigger,
|
|
1105
|
+
U as SidebarMenuItem,
|
|
1106
|
+
ra as SidebarMenuSkeleton,
|
|
1107
|
+
$ as SidebarMenuSub,
|
|
1108
|
+
na as SidebarMenuSubButton,
|
|
1109
|
+
Ee as SidebarMenuSubButtonSize,
|
|
1110
|
+
sa as SidebarMenuSubItem,
|
|
1111
|
+
Ae as SidebarMenuSubVariant,
|
|
1112
|
+
ba as SidebarPopoverMenu,
|
|
1113
|
+
E as SidebarPopoverMenuItem,
|
|
1114
|
+
K as SidebarPopoverTrigger,
|
|
1115
|
+
Be as SidebarProvider,
|
|
1116
|
+
He as SidebarRail,
|
|
1117
|
+
Ke as SidebarSeparator,
|
|
1118
|
+
ke as SidebarSide,
|
|
1119
|
+
pa as SidebarSwitcher,
|
|
1120
|
+
G as SidebarTrigger,
|
|
1120
1121
|
Se as SidebarVariant,
|
|
1121
|
-
|
|
1122
|
+
y as useSidebar
|
|
1122
1123
|
};
|