laif-ds 0.1.13 → 0.1.15
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/dist/_virtual/index2.js +2 -5
- package/dist/_virtual/index3.js +5 -5
- package/dist/_virtual/index4.js +5 -2
- package/dist/_virtual/index5.js +5 -2
- package/dist/_virtual/index6.js +2 -5
- package/dist/components/ui/app-sidebar.js +29 -0
- package/dist/components/ui/async-select.js +1 -1
- package/dist/components/ui/badge.js +5 -5
- package/dist/components/ui/breadcrumb.js +2 -2
- package/dist/components/ui/button.js +8 -8
- package/dist/components/ui/chart.js +1 -1
- package/dist/components/ui/chat-message.js +4 -4
- package/dist/components/ui/command.js +1 -1
- package/dist/components/ui/context-menu.js +1 -1
- package/dist/components/ui/drawer.js +1 -1
- package/dist/components/ui/file-preview.js +1 -1
- package/dist/components/ui/gantt/components/Chart/Chart.js +1 -1
- package/dist/components/ui/input-selector.js +9 -9
- package/dist/components/ui/input.js +12 -12
- package/dist/components/ui/popover.js +1 -1
- package/dist/components/ui/sheet.js +1 -1
- package/dist/components/ui/sidebar.js +476 -534
- package/dist/components/ui/slider.js +132 -0
- package/dist/components/ui/table.js +1 -1
- package/dist/components/ui/tabs.js +1 -1
- package/dist/components/ui/toaster.js +3 -3
- package/dist/dist/components/ui/table.js +1 -1
- package/dist/index.d.ts +77 -34
- package/dist/index.js +103 -99
- package/dist/node_modules/@radix-ui/react-slider/dist/index.js +439 -0
- package/dist/node_modules/@radix-ui/react-slider/node_modules/@radix-ui/react-collection/dist/index.js +49 -0
- package/dist/node_modules/@radix-ui/react-slider/node_modules/@radix-ui/react-primitive/dist/index.js +33 -0
- package/dist/node_modules/@radix-ui/react-slider/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +55 -0
- package/dist/node_modules/hast-util-to-jsx-runtime/lib/index.js +1 -1
- package/dist/node_modules/react-is/index.js +1 -1
- package/dist/node_modules/style-to-object/cjs/index.js +1 -1
- package/dist/node_modules/unified/lib/index.js +1 -1
- package/dist/styles.v3.css +1 -1
- package/package.json +5 -3
|
@@ -1,206 +1,204 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as
|
|
3
|
-
import * as
|
|
4
|
-
import { Root as
|
|
5
|
-
import { cva as
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import
|
|
15
|
-
const $ = "sidebar_state",
|
|
16
|
-
function
|
|
17
|
-
const a =
|
|
2
|
+
import { jsx as r, jsxs as m } from "react/jsx-runtime";
|
|
3
|
+
import * as d from "react";
|
|
4
|
+
import { Root as v } from "../../node_modules/@radix-ui/react-slot/dist/index.js";
|
|
5
|
+
import { cva as I } from "../../node_modules/class-variance-authority/dist/index.js";
|
|
6
|
+
import { Button as k } from "./button.js";
|
|
7
|
+
import { Input as z } from "./input.js";
|
|
8
|
+
import { Separator as B } from "./separator.js";
|
|
9
|
+
import { Sheet as E, SheetContent as T, SheetHeader as D, SheetTitle as A, SheetDescription as O } from "./sheet.js";
|
|
10
|
+
import { Skeleton as R } from "./skeleton.js";
|
|
11
|
+
import { Tooltip as G, TooltipTrigger as H, TooltipContent as K, TooltipProvider as L } from "./tooltip.js";
|
|
12
|
+
import { useIsMobile as j } from "../../hooks/use-mobile.js";
|
|
13
|
+
import { cn as i } from "../../lib/utils.js";
|
|
14
|
+
import P from "../../node_modules/lucide-react/dist/esm/icons/panel-left.js";
|
|
15
|
+
const $ = "sidebar_state", V = 60 * 60 * 24 * 7, W = "16rem", q = "18rem", F = "3rem", U = "b", M = d.createContext(null);
|
|
16
|
+
function N() {
|
|
17
|
+
const a = d.useContext(M);
|
|
18
18
|
if (!a)
|
|
19
19
|
throw new Error("useSidebar must be used within a SidebarProvider.");
|
|
20
20
|
return a;
|
|
21
21
|
}
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
(
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
[r, g]
|
|
37
|
-
), w = l.useCallback(() => s ? c((o) => !o) : x((o) => !o), [s, x, c]);
|
|
38
|
-
l.useEffect(() => {
|
|
39
|
-
const o = (b) => {
|
|
40
|
-
b.key === F && (b.metaKey || b.ctrlKey) && (b.preventDefault(), w());
|
|
41
|
-
};
|
|
42
|
-
if (typeof window < "u")
|
|
43
|
-
return window.addEventListener("keydown", o), () => window.removeEventListener("keydown", o);
|
|
44
|
-
}, [w]);
|
|
45
|
-
const y = g ? "expanded" : "collapsed", C = l.useMemo(
|
|
46
|
-
() => ({
|
|
47
|
-
state: y,
|
|
48
|
-
open: g,
|
|
49
|
-
setOpen: x,
|
|
50
|
-
isMobile: s,
|
|
51
|
-
openMobile: f,
|
|
52
|
-
setOpenMobile: c,
|
|
53
|
-
toggleSidebar: w
|
|
54
|
-
}),
|
|
55
|
-
[y, g, x, s, f, c, w]
|
|
56
|
-
);
|
|
57
|
-
return /* @__PURE__ */ t(_.Provider, { value: C, children: /* @__PURE__ */ t(G, { delayDuration: 0, children: /* @__PURE__ */ t(
|
|
58
|
-
"div",
|
|
59
|
-
{
|
|
60
|
-
"data-slot": "sidebar-wrapper",
|
|
61
|
-
style: {
|
|
62
|
-
"--d-sidebar-width": V,
|
|
63
|
-
"--d-sidebar-width-icon": q,
|
|
64
|
-
...n
|
|
65
|
-
},
|
|
66
|
-
className: d(
|
|
67
|
-
"group/sidebar-wrapper has-data-[variant=inset]:bg-d-sidebar flex min-h-svh w-full",
|
|
68
|
-
i
|
|
69
|
-
),
|
|
70
|
-
...m,
|
|
71
|
-
children: u
|
|
72
|
-
}
|
|
73
|
-
) }) });
|
|
74
|
-
}
|
|
75
|
-
function se({
|
|
76
|
-
side: a = "left",
|
|
77
|
-
variant: e = "sidebar",
|
|
78
|
-
collapsible: r = "offcanvas",
|
|
79
|
-
className: i,
|
|
80
|
-
children: n,
|
|
81
|
-
...u
|
|
82
|
-
}) {
|
|
83
|
-
const { isMobile: m, state: s, openMobile: f, setOpenMobile: c } = S();
|
|
84
|
-
return r === "none" ? /* @__PURE__ */ t(
|
|
85
|
-
"div",
|
|
86
|
-
{
|
|
87
|
-
"data-slot": "sidebar",
|
|
88
|
-
className: d(
|
|
89
|
-
"bg-d-sidebar text-d-sidebar-foreground flex h-full w-(--d-sidebar-width) flex-col",
|
|
90
|
-
i
|
|
91
|
-
),
|
|
92
|
-
...u,
|
|
93
|
-
children: n
|
|
94
|
-
}
|
|
95
|
-
) : m ? /* @__PURE__ */ t(T, { open: f, onOpenChange: c, ...u, children: /* @__PURE__ */ p(
|
|
96
|
-
B,
|
|
97
|
-
{
|
|
98
|
-
"data-d-sidebar": "sidebar",
|
|
99
|
-
"data-slot": "sidebar",
|
|
100
|
-
"data-mobile": "true",
|
|
101
|
-
className: "bg-d-sidebar text-d-sidebar-foreground w-(--d-sidebar-width) p-0 [&>button]:hidden",
|
|
102
|
-
style: {
|
|
103
|
-
"--d-sidebar-width": W
|
|
22
|
+
const X = d.forwardRef(
|
|
23
|
+
({
|
|
24
|
+
defaultOpen: a = !0,
|
|
25
|
+
open: e,
|
|
26
|
+
onOpenChange: t,
|
|
27
|
+
className: o,
|
|
28
|
+
style: n,
|
|
29
|
+
children: s,
|
|
30
|
+
...f
|
|
31
|
+
}, g) => {
|
|
32
|
+
const c = j(), [p, u] = d.useState(!1), [x, _] = d.useState(a), h = e ?? x, w = d.useCallback(
|
|
33
|
+
(l) => {
|
|
34
|
+
const b = typeof l == "function" ? l(h) : l;
|
|
35
|
+
t ? t(b) : _(b), document.cookie = `${$}=${b}; path=/; max-age=${V}`;
|
|
104
36
|
},
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
37
|
+
[t, h]
|
|
38
|
+
), S = d.useCallback(() => c ? u((l) => !l) : w((l) => !l), [c, w, u]);
|
|
39
|
+
d.useEffect(() => {
|
|
40
|
+
const l = (b) => {
|
|
41
|
+
b.key === U && (b.metaKey || b.ctrlKey) && (b.preventDefault(), S());
|
|
42
|
+
};
|
|
43
|
+
return window.addEventListener("keydown", l), () => window.removeEventListener("keydown", l);
|
|
44
|
+
}, [S]);
|
|
45
|
+
const y = h ? "expanded" : "collapsed", C = d.useMemo(
|
|
46
|
+
() => ({
|
|
47
|
+
state: y,
|
|
48
|
+
open: h,
|
|
49
|
+
setOpen: w,
|
|
50
|
+
isMobile: c,
|
|
51
|
+
openMobile: p,
|
|
52
|
+
setOpenMobile: u,
|
|
53
|
+
toggleSidebar: S
|
|
54
|
+
}),
|
|
55
|
+
[y, h, w, c, p, u, S]
|
|
56
|
+
);
|
|
57
|
+
return /* @__PURE__ */ r(M.Provider, { value: C, children: /* @__PURE__ */ r(L, { delayDuration: 0, children: /* @__PURE__ */ r(
|
|
58
|
+
"div",
|
|
59
|
+
{
|
|
60
|
+
style: {
|
|
61
|
+
"--sidebar-width": W,
|
|
62
|
+
"--sidebar-width-icon": F,
|
|
63
|
+
...n
|
|
64
|
+
},
|
|
65
|
+
className: i(
|
|
66
|
+
"group/sidebar-wrapper flex min-h-svh w-full has-[[data-variant=inset]]:bg-d-sidebar",
|
|
67
|
+
o
|
|
135
68
|
),
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
69
|
+
ref: g,
|
|
70
|
+
...f,
|
|
71
|
+
children: s
|
|
72
|
+
}
|
|
73
|
+
) }) });
|
|
74
|
+
}
|
|
75
|
+
);
|
|
76
|
+
X.displayName = "SidebarProvider";
|
|
77
|
+
const Y = d.forwardRef(
|
|
78
|
+
({
|
|
79
|
+
side: a = "left",
|
|
80
|
+
variant: e = "sidebar",
|
|
81
|
+
collapsible: t = "offcanvas",
|
|
82
|
+
className: o,
|
|
83
|
+
children: n,
|
|
84
|
+
...s
|
|
85
|
+
}, f) => {
|
|
86
|
+
const { isMobile: g, state: c, openMobile: p, setOpenMobile: u } = N();
|
|
87
|
+
return t === "none" ? /* @__PURE__ */ r(
|
|
88
|
+
"div",
|
|
89
|
+
{
|
|
90
|
+
className: i(
|
|
91
|
+
"flex h-full w-[--sidebar-width] flex-col bg-d-sidebar text-d-sidebar-foreground",
|
|
92
|
+
o
|
|
93
|
+
),
|
|
94
|
+
ref: f,
|
|
95
|
+
...s,
|
|
96
|
+
children: n
|
|
97
|
+
}
|
|
98
|
+
) : g ? /* @__PURE__ */ r(E, { open: p, onOpenChange: u, ...s, children: /* @__PURE__ */ m(
|
|
99
|
+
T,
|
|
100
|
+
{
|
|
101
|
+
"data-sidebar": "sidebar",
|
|
102
|
+
"data-mobile": "true",
|
|
103
|
+
className: "w-[--sidebar-width] bg-d-sidebar p-0 text-d-sidebar-foreground [&>button]:hidden",
|
|
104
|
+
style: {
|
|
105
|
+
"--sidebar-width": q
|
|
106
|
+
},
|
|
107
|
+
side: a,
|
|
108
|
+
children: [
|
|
109
|
+
/* @__PURE__ */ m(D, { className: "sr-only", children: [
|
|
110
|
+
/* @__PURE__ */ r(A, { children: "Sidebar" }),
|
|
111
|
+
/* @__PURE__ */ r(O, { children: "Displays the mobile sidebar." })
|
|
112
|
+
] }),
|
|
113
|
+
/* @__PURE__ */ r("div", { className: "flex h-full w-full flex-col", children: n })
|
|
114
|
+
]
|
|
115
|
+
}
|
|
116
|
+
) }) : /* @__PURE__ */ m(
|
|
117
|
+
"div",
|
|
118
|
+
{
|
|
119
|
+
ref: f,
|
|
120
|
+
className: "group peer hidden text-d-sidebar-foreground md:block",
|
|
121
|
+
"data-state": c,
|
|
122
|
+
"data-collapsible": c === "collapsed" ? t : "",
|
|
123
|
+
"data-variant": e,
|
|
124
|
+
"data-side": a,
|
|
125
|
+
children: [
|
|
126
|
+
/* @__PURE__ */ r(
|
|
127
|
+
"div",
|
|
128
|
+
{
|
|
129
|
+
className: i(
|
|
130
|
+
"relative w-[--sidebar-width] bg-transparent transition-[width] duration-200 ease-linear",
|
|
131
|
+
"group-data-[collapsible=offcanvas]:w-0",
|
|
132
|
+
"group-data-[side=right]:rotate-180",
|
|
133
|
+
e === "floating" || e === "inset" ? "group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4))]" : "group-data-[collapsible=icon]:w-[--sidebar-width-icon]"
|
|
134
|
+
)
|
|
135
|
+
}
|
|
136
|
+
),
|
|
137
|
+
/* @__PURE__ */ r(
|
|
138
|
+
"div",
|
|
139
|
+
{
|
|
140
|
+
className: i(
|
|
141
|
+
"fixed inset-y-0 z-10 hidden h-svh w-[--sidebar-width] transition-[left,right,width] duration-200 ease-linear md:flex",
|
|
142
|
+
a === "left" ? "left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]" : "right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",
|
|
143
|
+
// Adjust the padding for floating and inset variants.
|
|
144
|
+
e === "floating" || e === "inset" ? "p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4)_+2px)]" : "group-data-[collapsible=icon]:w-[--sidebar-width-icon] group-data-[side=left]:border-r group-data-[side=right]:border-l",
|
|
145
|
+
o
|
|
146
|
+
),
|
|
147
|
+
...s,
|
|
148
|
+
children: /* @__PURE__ */ r(
|
|
149
|
+
"div",
|
|
150
|
+
{
|
|
151
|
+
"data-sidebar": "sidebar",
|
|
152
|
+
className: "flex h-full w-full flex-col bg-d-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-d-sidebar-border group-data-[variant=floating]:shadow",
|
|
153
|
+
children: n
|
|
154
|
+
}
|
|
155
|
+
)
|
|
156
|
+
}
|
|
157
|
+
)
|
|
158
|
+
]
|
|
159
|
+
}
|
|
160
|
+
);
|
|
161
|
+
}
|
|
162
|
+
);
|
|
163
|
+
Y.displayName = "Sidebar";
|
|
164
|
+
const J = d.forwardRef(({ className: a, onClick: e, ...t }, o) => {
|
|
165
|
+
const { toggleSidebar: n } = N();
|
|
166
|
+
return /* @__PURE__ */ m(
|
|
167
|
+
k,
|
|
171
168
|
{
|
|
172
|
-
|
|
173
|
-
"data-
|
|
169
|
+
ref: o,
|
|
170
|
+
"data-sidebar": "trigger",
|
|
174
171
|
variant: "ghost",
|
|
175
172
|
size: "icon",
|
|
176
|
-
className:
|
|
177
|
-
onClick: (
|
|
178
|
-
e == null || e(
|
|
173
|
+
className: i("h-7 w-7", a),
|
|
174
|
+
onClick: (s) => {
|
|
175
|
+
e == null || e(s), n();
|
|
179
176
|
},
|
|
180
|
-
...
|
|
177
|
+
...t,
|
|
181
178
|
children: [
|
|
182
|
-
/* @__PURE__ */
|
|
183
|
-
/* @__PURE__ */
|
|
179
|
+
/* @__PURE__ */ r(P, {}),
|
|
180
|
+
/* @__PURE__ */ r("span", { className: "sr-only", children: "Toggle Sidebar" })
|
|
184
181
|
]
|
|
185
182
|
}
|
|
186
183
|
);
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
184
|
+
});
|
|
185
|
+
J.displayName = "SidebarTrigger";
|
|
186
|
+
const Q = d.forwardRef(({ className: a, ...e }, t) => {
|
|
187
|
+
const { toggleSidebar: o } = N();
|
|
188
|
+
return /* @__PURE__ */ r(
|
|
191
189
|
"button",
|
|
192
190
|
{
|
|
193
|
-
|
|
194
|
-
"data-
|
|
191
|
+
ref: t,
|
|
192
|
+
"data-sidebar": "rail",
|
|
195
193
|
"aria-label": "Toggle Sidebar",
|
|
196
194
|
tabIndex: -1,
|
|
197
|
-
onClick:
|
|
195
|
+
onClick: o,
|
|
198
196
|
title: "Toggle Sidebar",
|
|
199
|
-
className:
|
|
200
|
-
"
|
|
201
|
-
"
|
|
197
|
+
className: i(
|
|
198
|
+
"absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-d-sidebar-border group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex",
|
|
199
|
+
"[[data-side=left]_&]:cursor-w-resize [[data-side=right]_&]:cursor-e-resize",
|
|
202
200
|
"[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize",
|
|
203
|
-
"
|
|
201
|
+
"group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:hover:bg-d-sidebar",
|
|
204
202
|
"[[data-side=left][data-collapsible=offcanvas]_&]:-right-2",
|
|
205
203
|
"[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",
|
|
206
204
|
a
|
|
@@ -208,184 +206,159 @@ function ue({ className: a, ...e }) {
|
|
|
208
206
|
...e
|
|
209
207
|
}
|
|
210
208
|
);
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
"
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
}
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
}
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
"
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
}
|
|
355
|
-
function Se({ className: a, ...e }) {
|
|
356
|
-
return /* @__PURE__ */ t(
|
|
357
|
-
"ul",
|
|
358
|
-
{
|
|
359
|
-
"data-slot": "sidebar-menu",
|
|
360
|
-
"data-d-sidebar": "menu",
|
|
361
|
-
className: d("flex w-full min-w-0 flex-col gap-1", a),
|
|
362
|
-
...e
|
|
363
|
-
}
|
|
364
|
-
);
|
|
365
|
-
}
|
|
366
|
-
function ye({ className: a, ...e }) {
|
|
367
|
-
return /* @__PURE__ */ t(
|
|
368
|
-
"li",
|
|
369
|
-
{
|
|
370
|
-
"data-slot": "sidebar-menu-item",
|
|
371
|
-
"data-d-sidebar": "menu-item",
|
|
372
|
-
className: d("group/menu-item relative", a),
|
|
373
|
-
...e
|
|
374
|
-
}
|
|
375
|
-
);
|
|
376
|
-
}
|
|
377
|
-
const U = k(
|
|
378
|
-
"peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-hidden ring-d-sidebar-d-ring transition-[width,height,padding] hover:bg-d-sidebar-d-accent hover:text-d-sidebar-d-accent-foreground focus-visible:ring-2 active:bg-d-sidebar-d-accent active:text-d-sidebar-d-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-d-sidebar-d-accent data-[active=true]:font-medium data-[active=true]:text-d-sidebar-d-accent-foreground data-[state=open]:hover:bg-d-sidebar-d-accent data-[state=open]:hover:text-d-sidebar-d-accent-foreground group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",
|
|
209
|
+
});
|
|
210
|
+
Q.displayName = "SidebarRail";
|
|
211
|
+
const Z = d.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ r(
|
|
212
|
+
"main",
|
|
213
|
+
{
|
|
214
|
+
ref: t,
|
|
215
|
+
className: i(
|
|
216
|
+
"relative flex w-full flex-1 flex-col bg-d-background",
|
|
217
|
+
"md:peer-data-[variant=inset]:m-2 md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow",
|
|
218
|
+
a
|
|
219
|
+
),
|
|
220
|
+
...e
|
|
221
|
+
}
|
|
222
|
+
));
|
|
223
|
+
Z.displayName = "SidebarInset";
|
|
224
|
+
const ee = d.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ r(
|
|
225
|
+
z,
|
|
226
|
+
{
|
|
227
|
+
ref: t,
|
|
228
|
+
"data-sidebar": "input",
|
|
229
|
+
className: i(
|
|
230
|
+
"h-8 w-full bg-d-background shadow-none focus-visible:ring-2 focus-visible:ring-d-sidebar-ring",
|
|
231
|
+
a
|
|
232
|
+
),
|
|
233
|
+
...e
|
|
234
|
+
}
|
|
235
|
+
));
|
|
236
|
+
ee.displayName = "SidebarInput";
|
|
237
|
+
const ae = d.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ r(
|
|
238
|
+
"div",
|
|
239
|
+
{
|
|
240
|
+
ref: t,
|
|
241
|
+
"data-sidebar": "header",
|
|
242
|
+
className: i("flex flex-col gap-2 p-2", a),
|
|
243
|
+
...e
|
|
244
|
+
}
|
|
245
|
+
));
|
|
246
|
+
ae.displayName = "SidebarHeader";
|
|
247
|
+
const te = d.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ r(
|
|
248
|
+
"div",
|
|
249
|
+
{
|
|
250
|
+
ref: t,
|
|
251
|
+
"data-sidebar": "footer",
|
|
252
|
+
className: i("flex flex-col gap-2 p-2", a),
|
|
253
|
+
...e
|
|
254
|
+
}
|
|
255
|
+
));
|
|
256
|
+
te.displayName = "SidebarFooter";
|
|
257
|
+
const re = d.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ r(
|
|
258
|
+
B,
|
|
259
|
+
{
|
|
260
|
+
ref: t,
|
|
261
|
+
"data-sidebar": "separator",
|
|
262
|
+
className: i("mx-2 w-auto bg-d-sidebar-border", a),
|
|
263
|
+
...e
|
|
264
|
+
}
|
|
265
|
+
));
|
|
266
|
+
re.displayName = "SidebarSeparator";
|
|
267
|
+
const de = d.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ r(
|
|
268
|
+
"div",
|
|
269
|
+
{
|
|
270
|
+
ref: t,
|
|
271
|
+
"data-sidebar": "content",
|
|
272
|
+
className: i(
|
|
273
|
+
"flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",
|
|
274
|
+
a
|
|
275
|
+
),
|
|
276
|
+
...e
|
|
277
|
+
}
|
|
278
|
+
));
|
|
279
|
+
de.displayName = "SidebarContent";
|
|
280
|
+
const ie = d.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ r(
|
|
281
|
+
"div",
|
|
282
|
+
{
|
|
283
|
+
ref: t,
|
|
284
|
+
"data-sidebar": "group",
|
|
285
|
+
className: i("relative flex w-full min-w-0 flex-col p-2", a),
|
|
286
|
+
...e
|
|
287
|
+
}
|
|
288
|
+
));
|
|
289
|
+
ie.displayName = "SidebarGroup";
|
|
290
|
+
const oe = d.forwardRef(({ className: a, asChild: e = !1, ...t }, o) => /* @__PURE__ */ r(
|
|
291
|
+
e ? v : "div",
|
|
292
|
+
{
|
|
293
|
+
ref: o,
|
|
294
|
+
"data-sidebar": "group-label",
|
|
295
|
+
className: i(
|
|
296
|
+
"flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-d-sidebar-foreground/70 outline-none ring-d-sidebar-ring transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0",
|
|
297
|
+
"group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",
|
|
298
|
+
a
|
|
299
|
+
),
|
|
300
|
+
...t
|
|
301
|
+
}
|
|
302
|
+
));
|
|
303
|
+
oe.displayName = "SidebarGroupLabel";
|
|
304
|
+
const ne = d.forwardRef(({ className: a, asChild: e = !1, ...t }, o) => /* @__PURE__ */ r(
|
|
305
|
+
e ? v : "button",
|
|
306
|
+
{
|
|
307
|
+
ref: o,
|
|
308
|
+
"data-sidebar": "group-action",
|
|
309
|
+
className: i(
|
|
310
|
+
"absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-d-sidebar-foreground outline-none ring-d-sidebar-ring transition-transform hover:bg-d-sidebar-accent hover:text-d-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0",
|
|
311
|
+
// Increases the hit area of the button on mobile.
|
|
312
|
+
"after:absolute after:-inset-2 after:md:hidden",
|
|
313
|
+
"group-data-[collapsible=icon]:hidden",
|
|
314
|
+
a
|
|
315
|
+
),
|
|
316
|
+
...t
|
|
317
|
+
}
|
|
318
|
+
));
|
|
319
|
+
ne.displayName = "SidebarGroupAction";
|
|
320
|
+
const se = d.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ r(
|
|
321
|
+
"div",
|
|
322
|
+
{
|
|
323
|
+
ref: t,
|
|
324
|
+
"data-sidebar": "group-content",
|
|
325
|
+
className: i("w-full text-sm", a),
|
|
326
|
+
...e
|
|
327
|
+
}
|
|
328
|
+
));
|
|
329
|
+
se.displayName = "SidebarGroupContent";
|
|
330
|
+
const le = d.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ r(
|
|
331
|
+
"ul",
|
|
332
|
+
{
|
|
333
|
+
ref: t,
|
|
334
|
+
"data-sidebar": "menu",
|
|
335
|
+
className: i("flex w-full min-w-0 flex-col gap-1", a),
|
|
336
|
+
...e
|
|
337
|
+
}
|
|
338
|
+
));
|
|
339
|
+
le.displayName = "SidebarMenu";
|
|
340
|
+
const ce = d.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ r(
|
|
341
|
+
"li",
|
|
342
|
+
{
|
|
343
|
+
ref: t,
|
|
344
|
+
"data-sidebar": "menu-item",
|
|
345
|
+
className: i("group/menu-item relative", a),
|
|
346
|
+
...e
|
|
347
|
+
}
|
|
348
|
+
));
|
|
349
|
+
ce.displayName = "SidebarMenuItem";
|
|
350
|
+
const ue = I(
|
|
351
|
+
"peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-none ring-d-sidebar-ring transition-[width,height,padding] hover:bg-d-sidebar-accent hover:text-d-sidebar-accent-foreground focus-visible:ring-2 active:bg-d-sidebar-accent active:text-d-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-d-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-d-sidebar-accent-foreground data-[state=open]:hover:bg-d-sidebar-accent data-[state=open]:hover:text-d-sidebar-accent-foreground group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",
|
|
379
352
|
{
|
|
380
353
|
variants: {
|
|
381
354
|
variant: {
|
|
382
|
-
default: "hover:bg-d-sidebar-
|
|
383
|
-
outline: "bg-
|
|
355
|
+
default: "hover:bg-d-sidebar-accent hover:text-d-sidebar-accent-foreground",
|
|
356
|
+
outline: "bg-background shadow-[0_0_0_1px_hsl(var(--d-sidebar-border))] hover:bg-d-sidebar-accent hover:text-d-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--d-sidebar-accent))]"
|
|
384
357
|
},
|
|
385
358
|
size: {
|
|
386
359
|
default: "h-8 text-sm",
|
|
387
360
|
sm: "h-7 text-xs",
|
|
388
|
-
lg: "h-12 text-sm group-data-[collapsible=icon]
|
|
361
|
+
lg: "h-12 text-sm group-data-[collapsible=icon]:!p-0"
|
|
389
362
|
}
|
|
390
363
|
},
|
|
391
364
|
defaultVariants: {
|
|
@@ -393,203 +366,172 @@ const U = k(
|
|
|
393
366
|
size: "default"
|
|
394
367
|
}
|
|
395
368
|
}
|
|
396
|
-
)
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
}) {
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
{
|
|
409
|
-
"data-slot": "sidebar-menu-button",
|
|
410
|
-
"data-d-sidebar": "menu-button",
|
|
411
|
-
"data-size": i,
|
|
412
|
-
"data-active": e,
|
|
413
|
-
className: d(U({ variant: r, size: i }), u),
|
|
414
|
-
...m
|
|
415
|
-
}
|
|
416
|
-
);
|
|
417
|
-
return n ? (typeof n == "string" && (n = {
|
|
418
|
-
children: n
|
|
419
|
-
}), /* @__PURE__ */ p(H, { children: [
|
|
420
|
-
/* @__PURE__ */ t(K, { asChild: !0, children: v }),
|
|
421
|
-
/* @__PURE__ */ t(
|
|
422
|
-
j,
|
|
369
|
+
), be = d.forwardRef(
|
|
370
|
+
({
|
|
371
|
+
asChild: a = !1,
|
|
372
|
+
isActive: e = !1,
|
|
373
|
+
variant: t = "default",
|
|
374
|
+
size: o = "default",
|
|
375
|
+
tooltip: n,
|
|
376
|
+
className: s,
|
|
377
|
+
...f
|
|
378
|
+
}, g) => {
|
|
379
|
+
const c = a ? v : "button", { isMobile: p, state: u } = N(), x = /* @__PURE__ */ r(
|
|
380
|
+
c,
|
|
423
381
|
{
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
382
|
+
ref: g,
|
|
383
|
+
"data-sidebar": "menu-button",
|
|
384
|
+
"data-size": o,
|
|
385
|
+
"data-active": e,
|
|
386
|
+
className: i(ue({ variant: t, size: o }), s),
|
|
387
|
+
...f
|
|
428
388
|
}
|
|
429
|
-
)
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
389
|
+
);
|
|
390
|
+
return n ? (typeof n == "string" && (n = {
|
|
391
|
+
children: n
|
|
392
|
+
}), /* @__PURE__ */ m(G, { children: [
|
|
393
|
+
/* @__PURE__ */ r(H, { asChild: !0, children: x }),
|
|
394
|
+
/* @__PURE__ */ r(
|
|
395
|
+
K,
|
|
396
|
+
{
|
|
397
|
+
side: "right",
|
|
398
|
+
align: "center",
|
|
399
|
+
hidden: u !== "collapsed" || p,
|
|
400
|
+
...n
|
|
401
|
+
}
|
|
402
|
+
)
|
|
403
|
+
] })) : x;
|
|
404
|
+
}
|
|
405
|
+
);
|
|
406
|
+
be.displayName = "SidebarMenuButton";
|
|
407
|
+
const fe = d.forwardRef(({ className: a, asChild: e = !1, showOnHover: t = !1, ...o }, n) => /* @__PURE__ */ r(
|
|
408
|
+
e ? v : "button",
|
|
409
|
+
{
|
|
410
|
+
ref: n,
|
|
411
|
+
"data-sidebar": "menu-action",
|
|
412
|
+
className: i(
|
|
413
|
+
"absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-d-sidebar-foreground outline-none ring-d-sidebar-ring transition-transform hover:bg-d-sidebar-accent hover:text-d-sidebar-accent-foreground focus-visible:ring-2 peer-hover/menu-button:text-d-sidebar-accent-foreground [&>svg]:size-4 [&>svg]:shrink-0",
|
|
414
|
+
// Increases the hit area of the button on mobile.
|
|
415
|
+
"after:absolute after:-inset-2 after:md:hidden",
|
|
416
|
+
"peer-data-[size=sm]/menu-button:top-1",
|
|
417
|
+
"peer-data-[size=default]/menu-button:top-1.5",
|
|
418
|
+
"peer-data-[size=lg]/menu-button:top-2.5",
|
|
419
|
+
"group-data-[collapsible=icon]:hidden",
|
|
420
|
+
t && "group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-d-sidebar-accent-foreground md:opacity-0",
|
|
421
|
+
a
|
|
422
|
+
),
|
|
423
|
+
...o
|
|
424
|
+
}
|
|
425
|
+
));
|
|
426
|
+
fe.displayName = "SidebarMenuAction";
|
|
427
|
+
const pe = d.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ r(
|
|
428
|
+
"div",
|
|
429
|
+
{
|
|
430
|
+
ref: t,
|
|
431
|
+
"data-sidebar": "menu-badge",
|
|
432
|
+
className: i(
|
|
433
|
+
"pointer-events-none absolute right-1 flex h-5 min-w-5 select-none items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums text-d-sidebar-foreground",
|
|
434
|
+
"peer-hover/menu-button:text-d-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-d-sidebar-accent-foreground",
|
|
435
|
+
"peer-data-[size=sm]/menu-button:top-1",
|
|
436
|
+
"peer-data-[size=default]/menu-button:top-1.5",
|
|
437
|
+
"peer-data-[size=lg]/menu-button:top-2.5",
|
|
438
|
+
"group-data-[collapsible=icon]:hidden",
|
|
439
|
+
a
|
|
440
|
+
),
|
|
441
|
+
...e
|
|
442
|
+
}
|
|
443
|
+
));
|
|
444
|
+
pe.displayName = "SidebarMenuBadge";
|
|
445
|
+
const me = d.forwardRef(({ className: a, showIcon: e = !1, ...t }, o) => {
|
|
446
|
+
const n = d.useMemo(() => `${Math.floor(Math.random() * 40) + 50}%`, []);
|
|
447
|
+
return /* @__PURE__ */ m(
|
|
487
448
|
"div",
|
|
488
449
|
{
|
|
489
|
-
|
|
490
|
-
"data-
|
|
491
|
-
className:
|
|
492
|
-
...
|
|
450
|
+
ref: o,
|
|
451
|
+
"data-sidebar": "menu-skeleton",
|
|
452
|
+
className: i("flex h-8 items-center gap-2 rounded-md px-2", a),
|
|
453
|
+
...t,
|
|
493
454
|
children: [
|
|
494
|
-
e && /* @__PURE__ */
|
|
495
|
-
|
|
455
|
+
e && /* @__PURE__ */ r(
|
|
456
|
+
R,
|
|
496
457
|
{
|
|
497
458
|
className: "size-4 rounded-md",
|
|
498
|
-
"data-
|
|
459
|
+
"data-sidebar": "menu-skeleton-icon"
|
|
499
460
|
}
|
|
500
461
|
),
|
|
501
|
-
/* @__PURE__ */
|
|
502
|
-
|
|
462
|
+
/* @__PURE__ */ r(
|
|
463
|
+
R,
|
|
503
464
|
{
|
|
504
|
-
className: "h-4 max-w-
|
|
505
|
-
"data-
|
|
465
|
+
className: "h-4 max-w-[--skeleton-width] flex-1",
|
|
466
|
+
"data-sidebar": "menu-skeleton-text",
|
|
506
467
|
style: {
|
|
507
|
-
"--skeleton-width":
|
|
468
|
+
"--skeleton-width": n
|
|
508
469
|
}
|
|
509
470
|
}
|
|
510
471
|
)
|
|
511
472
|
]
|
|
512
473
|
}
|
|
513
474
|
);
|
|
514
|
-
}
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
return /* @__PURE__ */ t(
|
|
552
|
-
a ? h : "a",
|
|
553
|
-
{
|
|
554
|
-
"data-slot": "sidebar-menu-sub-button",
|
|
555
|
-
"data-d-sidebar": "menu-sub-button",
|
|
556
|
-
"data-size": e,
|
|
557
|
-
"data-active": r,
|
|
558
|
-
className: d(
|
|
559
|
-
"text-d-sidebar-foreground ring-d-sidebar-d-ring hover:bg-d-sidebar-d-accent hover:text-d-sidebar-d-accent-foreground active:bg-d-sidebar-d-accent active:text-d-sidebar-d-accent-foreground [&>svg]:text-d-sidebar-d-accent-foreground flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 outline-hidden focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",
|
|
560
|
-
"data-[active=true]:bg-d-sidebar-d-accent data-[active=true]:text-d-sidebar-d-accent-foreground",
|
|
561
|
-
e === "sm" && "text-xs",
|
|
562
|
-
e === "md" && "text-sm",
|
|
563
|
-
"group-data-[collapsible=icon]:hidden",
|
|
564
|
-
i
|
|
565
|
-
),
|
|
566
|
-
...n
|
|
567
|
-
}
|
|
568
|
-
);
|
|
569
|
-
}
|
|
475
|
+
});
|
|
476
|
+
me.displayName = "SidebarMenuSkeleton";
|
|
477
|
+
const ge = d.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ r(
|
|
478
|
+
"ul",
|
|
479
|
+
{
|
|
480
|
+
ref: t,
|
|
481
|
+
"data-sidebar": "menu-sub",
|
|
482
|
+
className: i(
|
|
483
|
+
"mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-d-sidebar-border px-2.5 py-0.5",
|
|
484
|
+
"group-data-[collapsible=icon]:hidden",
|
|
485
|
+
a
|
|
486
|
+
),
|
|
487
|
+
...e
|
|
488
|
+
}
|
|
489
|
+
));
|
|
490
|
+
ge.displayName = "SidebarMenuSub";
|
|
491
|
+
const he = d.forwardRef(({ ...a }, e) => /* @__PURE__ */ r("li", { ref: e, ...a }));
|
|
492
|
+
he.displayName = "SidebarMenuSubItem";
|
|
493
|
+
const ve = d.forwardRef(({ asChild: a = !1, size: e = "md", isActive: t, className: o, ...n }, s) => /* @__PURE__ */ r(
|
|
494
|
+
a ? v : "a",
|
|
495
|
+
{
|
|
496
|
+
ref: s,
|
|
497
|
+
"data-sidebar": "menu-sub-button",
|
|
498
|
+
"data-size": e,
|
|
499
|
+
"data-active": t,
|
|
500
|
+
className: i(
|
|
501
|
+
"flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-d-sidebar-foreground outline-none ring-d-sidebar-ring hover:bg-d-sidebar-accent hover:text-d-sidebar-accent-foreground focus-visible:ring-2 active:bg-d-sidebar-accent active:text-d-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-d-sidebar-accent-foreground",
|
|
502
|
+
"data-[active=true]:bg-d-sidebar-accent data-[active=true]:text-d-sidebar-accent-foreground",
|
|
503
|
+
e === "sm" && "text-xs",
|
|
504
|
+
e === "md" && "text-sm",
|
|
505
|
+
"group-data-[collapsible=icon]:hidden",
|
|
506
|
+
o
|
|
507
|
+
),
|
|
508
|
+
...n
|
|
509
|
+
}
|
|
510
|
+
));
|
|
511
|
+
ve.displayName = "SidebarMenuSubButton";
|
|
570
512
|
export {
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
513
|
+
Y as Sidebar,
|
|
514
|
+
de as SidebarContent,
|
|
515
|
+
te as SidebarFooter,
|
|
516
|
+
ie as SidebarGroup,
|
|
517
|
+
ne as SidebarGroupAction,
|
|
518
|
+
se as SidebarGroupContent,
|
|
519
|
+
oe as SidebarGroupLabel,
|
|
520
|
+
ae as SidebarHeader,
|
|
521
|
+
ee as SidebarInput,
|
|
522
|
+
Z as SidebarInset,
|
|
523
|
+
le as SidebarMenu,
|
|
524
|
+
fe as SidebarMenuAction,
|
|
525
|
+
pe as SidebarMenuBadge,
|
|
526
|
+
be as SidebarMenuButton,
|
|
527
|
+
ce as SidebarMenuItem,
|
|
528
|
+
me as SidebarMenuSkeleton,
|
|
529
|
+
ge as SidebarMenuSub,
|
|
530
|
+
ve as SidebarMenuSubButton,
|
|
531
|
+
he as SidebarMenuSubItem,
|
|
532
|
+
X as SidebarProvider,
|
|
533
|
+
Q as SidebarRail,
|
|
534
|
+
re as SidebarSeparator,
|
|
535
|
+
J as SidebarTrigger,
|
|
536
|
+
N as useSidebar
|
|
595
537
|
};
|