@devalok/shilp-sutra 0.31.0 → 0.32.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/dist/_chunks/badge-group.js +123 -172
- package/dist/_chunks/document-preview.js +92 -0
- package/dist/_chunks/file-preview.js +511 -0
- package/dist/_chunks/image-preview.js +90 -0
- package/dist/_chunks/primitives.js +109 -109
- package/dist/_chunks/stat-row.js +144 -124
- package/dist/_chunks/use-calendar.js +558 -490
- package/dist/ai/block-renderer.d.ts +2 -1
- package/dist/ai/block-renderer.d.ts.map +1 -1
- package/dist/ai/block-renderer.js +30 -29
- package/dist/ai/blocks/block-table.d.ts.map +1 -1
- package/dist/ai/blocks/confirm.d.ts.map +1 -1
- package/dist/ai/blocks/divider.d.ts.map +1 -1
- package/dist/ai/blocks/error.d.ts.map +1 -1
- package/dist/ai/blocks/info.d.ts.map +1 -1
- package/dist/ai/blocks/loading.d.ts.map +1 -1
- package/dist/ai/blocks/stat-row.d.ts.map +1 -1
- package/dist/ai/blocks/success.d.ts.map +1 -1
- package/dist/ai/blocks/text.d.ts.map +1 -1
- package/dist/ai/command-bar.d.ts +18 -0
- package/dist/ai/command-bar.d.ts.map +1 -1
- package/dist/ai/command-bar.js +126 -125
- package/dist/ai/conversation.d.ts +13 -1
- package/dist/ai/conversation.d.ts.map +1 -1
- package/dist/ai/conversation.js +78 -78
- package/dist/ai/types.d.ts +0 -1
- package/dist/ai/types.d.ts.map +1 -1
- package/dist/ai/types.js +0 -1
- package/dist/composed/bulk-action-bar.d.ts +6 -4
- package/dist/composed/bulk-action-bar.d.ts.map +1 -1
- package/dist/composed/bulk-action-bar.js +102 -58
- package/dist/composed/command-palette.d.ts +9 -0
- package/dist/composed/command-palette.d.ts.map +1 -1
- package/dist/composed/command-palette.js +68 -68
- package/dist/composed/confirm-dialog.d.ts +1 -1
- package/dist/composed/confirm-dialog.d.ts.map +1 -1
- package/dist/composed/confirm-dialog.js +10 -10
- package/dist/composed/date-picker/date-picker.d.ts +11 -1
- package/dist/composed/date-picker/date-picker.d.ts.map +1 -1
- package/dist/composed/date-picker/month-picker.d.ts.map +1 -1
- package/dist/composed/date-picker/year-picker.d.ts.map +1 -1
- package/dist/composed/deadline-indicator.d.ts +1 -1
- package/dist/composed/deadline-indicator.d.ts.map +1 -1
- package/dist/composed/deadline-indicator.js +39 -36
- package/dist/composed/emoji-picker.d.ts +6 -0
- package/dist/composed/emoji-picker.d.ts.map +1 -1
- package/dist/composed/emoji-picker.js +22 -20
- package/dist/composed/error-boundary.d.ts +21 -1
- package/dist/composed/error-boundary.d.ts.map +1 -1
- package/dist/composed/error-boundary.js +47 -32
- package/dist/composed/file-preview/audio-preview.d.ts +7 -0
- package/dist/composed/file-preview/audio-preview.d.ts.map +1 -0
- package/dist/composed/file-preview/document-preview.d.ts +7 -0
- package/dist/composed/file-preview/document-preview.d.ts.map +1 -0
- package/dist/composed/file-preview/embed-preview.d.ts +7 -0
- package/dist/composed/file-preview/embed-preview.d.ts.map +1 -0
- package/dist/composed/file-preview/image-preview.d.ts +7 -0
- package/dist/composed/file-preview/image-preview.d.ts.map +1 -0
- package/dist/composed/file-preview/shared.d.ts +20 -0
- package/dist/composed/file-preview/shared.d.ts.map +1 -0
- package/dist/composed/file-preview/video-preview.d.ts +6 -0
- package/dist/composed/file-preview/video-preview.d.ts.map +1 -0
- package/dist/composed/file-preview.d.ts.map +1 -1
- package/dist/composed/file-preview.js +10 -662
- package/dist/composed/filter-bar.d.ts +10 -2
- package/dist/composed/filter-bar.d.ts.map +1 -1
- package/dist/composed/filter-bar.js +42 -43
- package/dist/composed/form-section.d.ts +1 -1
- package/dist/composed/form-section.d.ts.map +1 -1
- package/dist/composed/form-section.js +22 -21
- package/dist/composed/index.d.ts +2 -2
- package/dist/composed/index.d.ts.map +1 -1
- package/dist/composed/index.js +58 -57
- package/dist/composed/inline-edit.d.ts +1 -1
- package/dist/composed/inline-edit.d.ts.map +1 -1
- package/dist/composed/inline-edit.js +33 -32
- package/dist/composed/markdown-viewer.d.ts +1 -1
- package/dist/composed/markdown-viewer.d.ts.map +1 -1
- package/dist/composed/markdown-viewer.js +60 -59
- package/dist/composed/master-detail.d.ts +11 -7
- package/dist/composed/master-detail.d.ts.map +1 -1
- package/dist/composed/master-detail.js +123 -84
- package/dist/composed/responsive-overlay.d.ts +8 -0
- package/dist/composed/responsive-overlay.d.ts.map +1 -1
- package/dist/composed/rich-text-editor.d.ts +11 -3
- package/dist/composed/rich-text-editor.d.ts.map +1 -1
- package/dist/composed/rich-text-editor.js +21 -20
- package/dist/composed/schedule-view.d.ts +9 -1
- package/dist/composed/schedule-view.d.ts.map +1 -1
- package/dist/hooks/index.d.ts +2 -0
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/index.js +8 -4
- package/dist/hooks/use-touch-device.d.ts +12 -0
- package/dist/hooks/use-touch-device.d.ts.map +1 -0
- package/dist/hooks/use-touch-device.js +13 -0
- package/dist/hooks/use-viewport-height.d.ts +11 -0
- package/dist/hooks/use-viewport-height.d.ts.map +1 -0
- package/dist/hooks/use-viewport-height.js +16 -0
- package/dist/shell/bottom-navbar.d.ts.map +1 -1
- package/dist/shell/bottom-navbar.js +72 -63
- package/dist/shell/command-registry.d.ts.map +1 -1
- package/dist/shell/notification-center.d.ts.map +1 -1
- package/dist/shell/notification-center.js +77 -77
- package/dist/shell/top-bar.d.ts +2 -2
- package/dist/shell/top-bar.d.ts.map +1 -1
- package/dist/shell/top-bar.js +61 -60
- package/dist/tailwind/index.cjs +51 -7
- package/dist/tailwind/preset.d.ts.map +1 -1
- package/dist/tailwind/preset.js +51 -7
- package/dist/tokens/primitives.css +3 -1
- package/dist/tokens/semantic.css +16 -13
- package/dist/ui/autocomplete.d.ts.map +1 -1
- package/dist/ui/autocomplete.js +38 -39
- package/dist/ui/badge.d.ts +104 -2
- package/dist/ui/badge.d.ts.map +1 -1
- package/dist/ui/banner.d.ts.map +1 -1
- package/dist/ui/banner.js +8 -7
- package/dist/ui/button.d.ts +2 -2
- package/dist/ui/button.d.ts.map +1 -1
- package/dist/ui/button.js +54 -74
- package/dist/ui/card.js +24 -24
- package/dist/ui/charts/area-chart.d.ts +2 -0
- package/dist/ui/charts/area-chart.d.ts.map +1 -1
- package/dist/ui/charts/bar-chart.d.ts +2 -0
- package/dist/ui/charts/bar-chart.d.ts.map +1 -1
- package/dist/ui/charts/chart-container.d.ts +2 -0
- package/dist/ui/charts/chart-container.d.ts.map +1 -1
- package/dist/ui/charts/index.js +583 -577
- package/dist/ui/charts/line-chart.d.ts +2 -0
- package/dist/ui/charts/line-chart.d.ts.map +1 -1
- package/dist/ui/charts/pie-chart.d.ts +2 -0
- package/dist/ui/charts/pie-chart.d.ts.map +1 -1
- package/dist/ui/charts/radar-chart.d.ts +2 -0
- package/dist/ui/charts/radar-chart.d.ts.map +1 -1
- package/dist/ui/checkbox.d.ts +2 -0
- package/dist/ui/checkbox.d.ts.map +1 -1
- package/dist/ui/checkbox.js +36 -27
- package/dist/ui/color-input.js +5 -5
- package/dist/ui/combobox.d.ts +6 -1
- package/dist/ui/combobox.d.ts.map +1 -1
- package/dist/ui/combobox.js +1 -1
- package/dist/ui/context-menu.js +1 -1
- package/dist/ui/data-table-body.d.ts +12 -0
- package/dist/ui/data-table-body.d.ts.map +1 -0
- package/dist/ui/data-table-body.js +219 -0
- package/dist/ui/data-table-bulk-actions.d.ts +19 -0
- package/dist/ui/data-table-bulk-actions.d.ts.map +1 -0
- package/dist/ui/data-table-bulk-actions.js +61 -0
- package/dist/ui/data-table-card.d.ts +9 -0
- package/dist/ui/data-table-card.d.ts.map +1 -0
- package/dist/ui/data-table-card.js +73 -0
- package/dist/ui/data-table-context.d.ts +62 -0
- package/dist/ui/data-table-context.d.ts.map +1 -0
- package/dist/ui/data-table-context.js +48 -0
- package/dist/ui/data-table-header.d.ts +10 -0
- package/dist/ui/data-table-header.d.ts.map +1 -0
- package/dist/ui/data-table-header.js +141 -0
- package/dist/ui/data-table-pagination.d.ts +13 -0
- package/dist/ui/data-table-pagination.d.ts.map +1 -0
- package/dist/ui/data-table-pagination.js +84 -0
- package/dist/ui/data-table.d.ts +11 -9
- package/dist/ui/data-table.d.ts.map +1 -1
- package/dist/ui/data-table.js +258 -573
- package/dist/ui/dialog.d.ts +6 -2
- package/dist/ui/dialog.d.ts.map +1 -1
- package/dist/ui/dialog.js +84 -82
- package/dist/ui/dropdown-menu.js +1 -1
- package/dist/ui/hover-card.d.ts +7 -0
- package/dist/ui/hover-card.d.ts.map +1 -1
- package/dist/ui/hover-card.js +3 -3
- package/dist/ui/icon-group.d.ts +2 -4
- package/dist/ui/icon-group.d.ts.map +1 -1
- package/dist/ui/icon-group.js +22 -23
- package/dist/ui/index.d.ts +1 -2
- package/dist/ui/index.d.ts.map +1 -1
- package/dist/ui/index.js +94 -99
- package/dist/ui/label.js +1 -1
- package/dist/ui/lib/bottom-sheet.d.ts +16 -0
- package/dist/ui/lib/bottom-sheet.d.ts.map +1 -0
- package/dist/ui/menubar.d.ts.map +1 -1
- package/dist/ui/menubar.js +64 -73
- package/dist/ui/navigation-menu.d.ts.map +1 -1
- package/dist/ui/navigation-menu.js +40 -44
- package/dist/ui/number-input.d.ts.map +1 -1
- package/dist/ui/number-input.js +19 -17
- package/dist/ui/popover.d.ts.map +1 -1
- package/dist/ui/popover.js +107 -32
- package/dist/ui/progress-ring.d.ts.map +1 -1
- package/dist/ui/progress-ring.js +80 -80
- package/dist/ui/progress.js +4 -4
- package/dist/ui/radio.d.ts +5 -2
- package/dist/ui/radio.d.ts.map +1 -1
- package/dist/ui/radio.js +29 -20
- package/dist/ui/search-input.d.ts.map +1 -1
- package/dist/ui/search-input.js +13 -12
- package/dist/ui/segmented-control.d.ts +6 -108
- package/dist/ui/segmented-control.d.ts.map +1 -1
- package/dist/ui/segmented-control.js +86 -272
- package/dist/ui/select.js +5 -5
- package/dist/ui/separator.js +5 -5
- package/dist/ui/sheet.d.ts +2 -0
- package/dist/ui/sheet.d.ts.map +1 -1
- package/dist/ui/sheet.js +102 -84
- package/dist/ui/sidebar.d.ts.map +1 -1
- package/dist/ui/sidebar.js +200 -175
- package/dist/ui/slider.js +14 -14
- package/dist/ui/status-dot.js +8 -8
- package/dist/ui/stepper.d.ts.map +1 -1
- package/dist/ui/stepper.js +33 -31
- package/dist/ui/switch.js +3 -3
- package/dist/ui/tabs.js +6 -6
- package/dist/ui/toast-types.d.ts +0 -1
- package/dist/ui/toast-types.d.ts.map +1 -1
- package/dist/ui/toast-types.js +0 -1
- package/dist/ui/toast.d.ts.map +1 -1
- package/dist/ui/toast.js +156 -150
- package/dist/ui/toggle-group.js +1 -1
- package/dist/ui/toggle.js +1 -1
- package/dist/ui/tooltip.js +3 -3
- package/docs/components/ui/data-table-body.md +13 -0
- package/docs/components/ui/data-table-bulk-actions.md +13 -0
- package/docs/components/ui/data-table-card.md +13 -0
- package/docs/components/ui/data-table-context.md +13 -0
- package/docs/components/ui/data-table-header.md +13 -0
- package/docs/components/ui/data-table-pagination.md +13 -0
- package/llms-full.txt +79 -48
- package/llms.txt +32 -0
- package/package.json +1 -6
- package/dist/ui/chip.d.ts +0 -19
- package/dist/ui/chip.d.ts.map +0 -1
- package/dist/ui/chip.js +0 -14
- package/dist/ui/lib/use-ripple.d.ts +0 -14
- package/dist/ui/lib/use-ripple.d.ts.map +0 -1
package/dist/ui/sidebar.js
CHANGED
|
@@ -1,56 +1,56 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as s, jsxs as h, Fragment as
|
|
2
|
+
import { jsx as s, jsxs as h, Fragment as R } from "react/jsx-runtime";
|
|
3
3
|
import { S as v } from "../_chunks/primitives.js";
|
|
4
4
|
import { a as T } from "../_chunks/vendor-utils.js";
|
|
5
5
|
import { IconLayoutSidebarLeftCollapse as A } from "@tabler/icons-react";
|
|
6
6
|
import { useIsMobile as D } from "../hooks/use-mobile.js";
|
|
7
7
|
import { springs as O } from "./lib/motion.js";
|
|
8
|
-
import { cn as
|
|
9
|
-
import { Icon as
|
|
10
|
-
import { Button as
|
|
11
|
-
import { Input as
|
|
12
|
-
import { Separator as
|
|
13
|
-
import { Sheet as
|
|
8
|
+
import { cn as i } from "./lib/utils.js";
|
|
9
|
+
import { Icon as G } from "./icon.js";
|
|
10
|
+
import { Button as L } from "./button.js";
|
|
11
|
+
import { Input as H } from "./input.js";
|
|
12
|
+
import { Separator as K } from "./separator.js";
|
|
13
|
+
import { Sheet as j, SheetContent as W } from "./sheet.js";
|
|
14
14
|
import { Skeleton as _ } from "./skeleton.js";
|
|
15
15
|
import { TooltipProvider as $, Tooltip as F, TooltipTrigger as P, TooltipContent as V } from "./tooltip.js";
|
|
16
|
-
import { createContext as
|
|
17
|
-
import { m as
|
|
18
|
-
const
|
|
16
|
+
import { createContext as q, forwardRef as o, useState as C, useCallback as I, useEffect as U, useMemo as k, useContext as X, useRef as Y } from "react";
|
|
17
|
+
import { m as z, u as J } from "../_chunks/framer.js";
|
|
18
|
+
const Q = "sidebar:state", Z = 3600 * 24 * 7, ee = "16rem", ae = "18rem", te = "3rem", se = "b", E = q(null);
|
|
19
19
|
function N() {
|
|
20
|
-
const e =
|
|
20
|
+
const e = X(E);
|
|
21
21
|
if (!e)
|
|
22
22
|
throw new Error("useSidebar must be used within a SidebarProvider.");
|
|
23
23
|
return e;
|
|
24
24
|
}
|
|
25
|
-
const
|
|
25
|
+
const re = o(
|
|
26
26
|
({
|
|
27
27
|
defaultOpen: e = !0,
|
|
28
28
|
open: a,
|
|
29
29
|
onOpenChange: t,
|
|
30
|
-
className:
|
|
31
|
-
style:
|
|
30
|
+
className: r,
|
|
31
|
+
style: d,
|
|
32
32
|
children: n,
|
|
33
|
-
...
|
|
33
|
+
...c
|
|
34
34
|
}, b) => {
|
|
35
|
-
const
|
|
36
|
-
(
|
|
37
|
-
const m = typeof
|
|
38
|
-
t ? t(m) : x(m), typeof document < "u" && (document.cookie = `${
|
|
35
|
+
const l = D(), [f, p] = C(!1), [y, x] = C(e), g = a ?? y, S = I(
|
|
36
|
+
(u) => {
|
|
37
|
+
const m = typeof u == "function" ? u(g) : u;
|
|
38
|
+
t ? t(m) : x(m), typeof document < "u" && (document.cookie = `${Q}=${m}; path=/; max-age=${Z}`);
|
|
39
39
|
},
|
|
40
40
|
[t, g]
|
|
41
|
-
), w = I(() =>
|
|
42
|
-
|
|
43
|
-
const
|
|
44
|
-
m.key ===
|
|
41
|
+
), w = I(() => l ? p((u) => !u) : S((u) => !u), [l, S, p]);
|
|
42
|
+
U(() => {
|
|
43
|
+
const u = (m) => {
|
|
44
|
+
m.key === se && (m.metaKey || m.ctrlKey) && (m.preventDefault(), w());
|
|
45
45
|
};
|
|
46
|
-
return window.addEventListener("keydown",
|
|
46
|
+
return window.addEventListener("keydown", u), () => window.removeEventListener("keydown", u);
|
|
47
47
|
}, [w]);
|
|
48
48
|
const M = g ? "expanded" : "collapsed", B = k(
|
|
49
49
|
() => ({
|
|
50
50
|
state: M,
|
|
51
51
|
open: g,
|
|
52
52
|
setOpen: S,
|
|
53
|
-
isMobile:
|
|
53
|
+
isMobile: l,
|
|
54
54
|
openMobile: f,
|
|
55
55
|
setOpenMobile: p,
|
|
56
56
|
toggleSidebar: w
|
|
@@ -59,79 +59,103 @@ const te = d(
|
|
|
59
59
|
M,
|
|
60
60
|
g,
|
|
61
61
|
S,
|
|
62
|
-
|
|
62
|
+
l,
|
|
63
63
|
f,
|
|
64
64
|
p,
|
|
65
65
|
w
|
|
66
66
|
]
|
|
67
67
|
);
|
|
68
|
-
return /* @__PURE__ */ s(
|
|
68
|
+
return /* @__PURE__ */ s(E.Provider, { value: B, children: /* @__PURE__ */ s($, { delayDuration: 0, children: /* @__PURE__ */ s(
|
|
69
69
|
"div",
|
|
70
70
|
{
|
|
71
71
|
style: {
|
|
72
|
-
"--sidebar-width":
|
|
73
|
-
"--sidebar-width-icon":
|
|
74
|
-
...
|
|
72
|
+
"--sidebar-width": ee,
|
|
73
|
+
"--sidebar-width-icon": te,
|
|
74
|
+
...d
|
|
75
75
|
},
|
|
76
|
-
className:
|
|
76
|
+
className: i(
|
|
77
77
|
"group/sidebar-wrapper flex min-h-svh has-[[data-variant=inset]]:bg-surface-sunken",
|
|
78
|
-
|
|
78
|
+
r
|
|
79
79
|
),
|
|
80
80
|
ref: b,
|
|
81
|
-
...
|
|
81
|
+
...c,
|
|
82
82
|
children: n
|
|
83
83
|
}
|
|
84
84
|
) }) });
|
|
85
85
|
}
|
|
86
86
|
);
|
|
87
|
-
|
|
88
|
-
|
|
87
|
+
re.displayName = "SidebarProvider";
|
|
88
|
+
function ie({
|
|
89
|
+
side: e,
|
|
90
|
+
onClose: a,
|
|
91
|
+
children: t
|
|
92
|
+
}) {
|
|
93
|
+
const r = J(), d = Y(null), n = "x", c = e === "left" ? { right: 0 } : { left: 0 };
|
|
94
|
+
return /* @__PURE__ */ s(
|
|
95
|
+
z.div,
|
|
96
|
+
{
|
|
97
|
+
ref: d,
|
|
98
|
+
className: "h-full w-full",
|
|
99
|
+
drag: r ? !1 : n,
|
|
100
|
+
dragConstraints: c,
|
|
101
|
+
dragElastic: 0.2,
|
|
102
|
+
onDragEnd: (b, l) => {
|
|
103
|
+
const f = d.current?.getBoundingClientRect().width ?? 280;
|
|
104
|
+
e === "left" ? (l.offset.x < -(f * 0.3) || l.velocity.x < -500) && a() : (l.offset.x > f * 0.3 || l.velocity.x > 500) && a();
|
|
105
|
+
},
|
|
106
|
+
children: t
|
|
107
|
+
}
|
|
108
|
+
);
|
|
109
|
+
}
|
|
110
|
+
const de = o(
|
|
89
111
|
({
|
|
90
112
|
side: e = "left",
|
|
91
113
|
variant: a = "sidebar",
|
|
92
114
|
collapsible: t = "offcanvas",
|
|
93
|
-
className:
|
|
94
|
-
children:
|
|
115
|
+
className: r,
|
|
116
|
+
children: d,
|
|
95
117
|
...n
|
|
96
|
-
},
|
|
97
|
-
const { isMobile: b, state:
|
|
118
|
+
}, c) => {
|
|
119
|
+
const { isMobile: b, state: l, openMobile: f, setOpenMobile: p } = N();
|
|
98
120
|
return t === "none" ? /* @__PURE__ */ s(
|
|
99
|
-
"
|
|
121
|
+
"aside",
|
|
100
122
|
{
|
|
101
|
-
|
|
123
|
+
"aria-label": "Sidebar",
|
|
124
|
+
className: i(
|
|
102
125
|
"flex h-full w-[--sidebar-width] flex-col bg-surface-raised text-surface-fg",
|
|
103
|
-
|
|
126
|
+
r
|
|
104
127
|
),
|
|
105
|
-
ref:
|
|
128
|
+
ref: c,
|
|
106
129
|
...n,
|
|
107
|
-
children:
|
|
130
|
+
children: d
|
|
108
131
|
}
|
|
109
|
-
) : b ? /* @__PURE__ */ s(
|
|
110
|
-
|
|
132
|
+
) : b ? /* @__PURE__ */ s(j, { open: f, onOpenChange: p, ...n, children: /* @__PURE__ */ s(
|
|
133
|
+
W,
|
|
111
134
|
{
|
|
112
135
|
"data-sidebar": "sidebar",
|
|
113
136
|
"data-mobile": "true",
|
|
114
137
|
className: "w-[--sidebar-width] bg-surface-raised p-0 text-surface-fg [&>button]:hidden",
|
|
115
138
|
style: {
|
|
116
|
-
"--sidebar-width":
|
|
139
|
+
"--sidebar-width": ae
|
|
117
140
|
},
|
|
118
141
|
side: e,
|
|
119
|
-
|
|
142
|
+
responsive: !1,
|
|
143
|
+
children: /* @__PURE__ */ s(ie, { side: e, onClose: () => p(!1), children: /* @__PURE__ */ s("aside", { "aria-label": "Sidebar", className: "flex h-full w-full flex-col", children: d }) })
|
|
120
144
|
}
|
|
121
145
|
) }) : /* @__PURE__ */ h(
|
|
122
146
|
"div",
|
|
123
147
|
{
|
|
124
|
-
ref:
|
|
148
|
+
ref: c,
|
|
125
149
|
className: "group peer hidden text-surface-fg md:block",
|
|
126
|
-
"data-state":
|
|
127
|
-
"data-collapsible":
|
|
150
|
+
"data-state": l,
|
|
151
|
+
"data-collapsible": l === "collapsed" ? t : "",
|
|
128
152
|
"data-variant": a,
|
|
129
153
|
"data-side": e,
|
|
130
154
|
children: [
|
|
131
155
|
/* @__PURE__ */ s(
|
|
132
156
|
"div",
|
|
133
157
|
{
|
|
134
|
-
className:
|
|
158
|
+
className: i(
|
|
135
159
|
"relative h-svh w-[--sidebar-width] bg-transparent transition-[width] duration-moderate-02 ease-productive-exit",
|
|
136
160
|
"group-data-[collapsible=offcanvas]:w-0",
|
|
137
161
|
"group-data-[side=right]:rotate-180",
|
|
@@ -142,19 +166,20 @@ const se = d(
|
|
|
142
166
|
/* @__PURE__ */ s(
|
|
143
167
|
"div",
|
|
144
168
|
{
|
|
145
|
-
className:
|
|
169
|
+
className: i(
|
|
146
170
|
"fixed inset-y-0 z-raised hidden h-svh w-[--sidebar-width] transition-[left,right,width] duration-moderate-02 ease-productive-exit md:flex",
|
|
147
171
|
e === "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)]",
|
|
148
172
|
a === "floating" || a === "inset" ? "p-ds-03 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",
|
|
149
|
-
|
|
173
|
+
r
|
|
150
174
|
),
|
|
151
175
|
...n,
|
|
152
176
|
children: /* @__PURE__ */ s(
|
|
153
|
-
"
|
|
177
|
+
"aside",
|
|
154
178
|
{
|
|
179
|
+
"aria-label": "Sidebar",
|
|
155
180
|
"data-sidebar": "sidebar",
|
|
156
181
|
className: "flex h-full w-full flex-col bg-surface-raised group-data-[variant=floating]:rounded-ds-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-surface-border group-data-[variant=floating]:shadow",
|
|
157
|
-
children:
|
|
182
|
+
children: d
|
|
158
183
|
}
|
|
159
184
|
)
|
|
160
185
|
}
|
|
@@ -164,32 +189,32 @@ const se = d(
|
|
|
164
189
|
);
|
|
165
190
|
}
|
|
166
191
|
);
|
|
167
|
-
|
|
168
|
-
const
|
|
169
|
-
const { toggleSidebar:
|
|
192
|
+
de.displayName = "Sidebar";
|
|
193
|
+
const oe = o(({ className: e, onClick: a, ...t }, r) => {
|
|
194
|
+
const { toggleSidebar: d } = N();
|
|
170
195
|
return /* @__PURE__ */ h(
|
|
171
|
-
|
|
196
|
+
L,
|
|
172
197
|
{
|
|
173
|
-
ref:
|
|
198
|
+
ref: r,
|
|
174
199
|
"data-sidebar": "trigger",
|
|
175
200
|
variant: "ghost",
|
|
176
201
|
size: "icon-md",
|
|
177
|
-
className:
|
|
202
|
+
className: i("h-ds-xs-plus w-ds-xs-plus", e),
|
|
178
203
|
onClick: (n) => {
|
|
179
|
-
a?.(n),
|
|
204
|
+
a?.(n), d();
|
|
180
205
|
},
|
|
181
206
|
...t,
|
|
182
207
|
children: [
|
|
183
|
-
/* @__PURE__ */ s(
|
|
208
|
+
/* @__PURE__ */ s(G, { icon: A, size: "sm" }),
|
|
184
209
|
/* @__PURE__ */ s("span", { className: "sr-only", children: "Toggle Sidebar" })
|
|
185
210
|
]
|
|
186
211
|
}
|
|
187
212
|
);
|
|
188
213
|
});
|
|
189
|
-
|
|
190
|
-
const
|
|
214
|
+
oe.displayName = "SidebarTrigger";
|
|
215
|
+
const ne = o(
|
|
191
216
|
({ className: e, ...a }, t) => {
|
|
192
|
-
const { toggleSidebar:
|
|
217
|
+
const { toggleSidebar: r } = N();
|
|
193
218
|
return /* @__PURE__ */ s(
|
|
194
219
|
"button",
|
|
195
220
|
{
|
|
@@ -197,9 +222,9 @@ const ie = d(
|
|
|
197
222
|
"data-sidebar": "rail",
|
|
198
223
|
"aria-label": "Toggle Sidebar",
|
|
199
224
|
tabIndex: -1,
|
|
200
|
-
onClick:
|
|
225
|
+
onClick: r,
|
|
201
226
|
title: "Toggle Sidebar",
|
|
202
|
-
className:
|
|
227
|
+
className: i(
|
|
203
228
|
"hover:after:bg-surface-border-strong absolute inset-y-0 z-raised hidden w-4 -translate-x-1/2 transition-colors ease-productive-standard after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex",
|
|
204
229
|
"[[data-side=left]_&]:cursor-w-resize [[data-side=right]_&]:cursor-e-resize",
|
|
205
230
|
"[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize",
|
|
@@ -213,13 +238,13 @@ const ie = d(
|
|
|
213
238
|
);
|
|
214
239
|
}
|
|
215
240
|
);
|
|
216
|
-
|
|
217
|
-
const
|
|
241
|
+
ne.displayName = "SidebarRail";
|
|
242
|
+
const le = o(
|
|
218
243
|
({ className: e, ...a }, t) => /* @__PURE__ */ s(
|
|
219
244
|
"main",
|
|
220
245
|
{
|
|
221
246
|
ref: t,
|
|
222
|
-
className:
|
|
247
|
+
className: i(
|
|
223
248
|
"relative flex min-h-svh flex-1 flex-col bg-surface-base",
|
|
224
249
|
"peer-data-[variant=inset]:min-h-[calc(100svh-theme(spacing.4))] md:peer-data-[variant=inset]:m-ds-03 md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-ds-03 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-ds-xl md:peer-data-[variant=inset]:shadow",
|
|
225
250
|
e
|
|
@@ -228,66 +253,66 @@ const de = d(
|
|
|
228
253
|
}
|
|
229
254
|
)
|
|
230
255
|
);
|
|
231
|
-
|
|
232
|
-
const
|
|
233
|
-
|
|
256
|
+
le.displayName = "SidebarInset";
|
|
257
|
+
const ce = o(({ className: e, wrapperClassName: a, ...t }, r) => /* @__PURE__ */ s(
|
|
258
|
+
H,
|
|
234
259
|
{
|
|
235
|
-
ref:
|
|
260
|
+
ref: r,
|
|
236
261
|
"data-sidebar": "input",
|
|
237
262
|
size: "sm",
|
|
238
|
-
wrapperClassName:
|
|
263
|
+
wrapperClassName: i(
|
|
239
264
|
"bg-surface-raised shadow-none focus-within:ring-2 focus-within:ring-accent-9",
|
|
240
265
|
a
|
|
241
266
|
),
|
|
242
|
-
className:
|
|
267
|
+
className: i("w-full", e),
|
|
243
268
|
...t
|
|
244
269
|
}
|
|
245
270
|
));
|
|
246
|
-
|
|
247
|
-
const
|
|
271
|
+
ce.displayName = "SidebarInput";
|
|
272
|
+
const ue = o(
|
|
248
273
|
({ className: e, ...a }, t) => /* @__PURE__ */ s(
|
|
249
274
|
"div",
|
|
250
275
|
{
|
|
251
276
|
ref: t,
|
|
252
277
|
"data-sidebar": "header",
|
|
253
|
-
className:
|
|
278
|
+
className: i("flex flex-col gap-ds-03 p-ds-03", e),
|
|
254
279
|
...a
|
|
255
280
|
}
|
|
256
281
|
)
|
|
257
282
|
);
|
|
258
|
-
|
|
259
|
-
const
|
|
283
|
+
ue.displayName = "SidebarHeader";
|
|
284
|
+
const fe = o(
|
|
260
285
|
({ className: e, ...a }, t) => /* @__PURE__ */ s(
|
|
261
286
|
"div",
|
|
262
287
|
{
|
|
263
288
|
ref: t,
|
|
264
289
|
"data-sidebar": "footer",
|
|
265
|
-
className:
|
|
290
|
+
className: i("flex flex-col gap-ds-03 p-ds-03", e),
|
|
266
291
|
...a
|
|
267
292
|
}
|
|
268
293
|
)
|
|
269
294
|
);
|
|
270
|
-
|
|
271
|
-
const
|
|
272
|
-
|
|
295
|
+
fe.displayName = "SidebarFooter";
|
|
296
|
+
const pe = o(({ className: e, ...a }, t) => /* @__PURE__ */ s(
|
|
297
|
+
K,
|
|
273
298
|
{
|
|
274
299
|
ref: t,
|
|
275
300
|
"data-sidebar": "separator",
|
|
276
|
-
className:
|
|
301
|
+
className: i(
|
|
277
302
|
"bg-surface-border mx-ds-03 w-auto",
|
|
278
303
|
e
|
|
279
304
|
),
|
|
280
305
|
...a
|
|
281
306
|
}
|
|
282
307
|
));
|
|
283
|
-
|
|
284
|
-
const
|
|
308
|
+
pe.displayName = "SidebarSeparator";
|
|
309
|
+
const me = o(
|
|
285
310
|
({ className: e, ...a }, t) => /* @__PURE__ */ s(
|
|
286
311
|
"div",
|
|
287
312
|
{
|
|
288
313
|
ref: t,
|
|
289
314
|
"data-sidebar": "content",
|
|
290
|
-
className:
|
|
315
|
+
className: i(
|
|
291
316
|
"flex min-h-0 flex-1 flex-col gap-ds-03 overflow-auto group-data-[collapsible=icon]:overflow-hidden",
|
|
292
317
|
e
|
|
293
318
|
),
|
|
@@ -295,25 +320,25 @@ const ue = d(
|
|
|
295
320
|
}
|
|
296
321
|
)
|
|
297
322
|
);
|
|
298
|
-
|
|
299
|
-
const
|
|
323
|
+
me.displayName = "SidebarContent";
|
|
324
|
+
const be = o(
|
|
300
325
|
({ className: e, ...a }, t) => /* @__PURE__ */ s(
|
|
301
326
|
"div",
|
|
302
327
|
{
|
|
303
328
|
ref: t,
|
|
304
329
|
"data-sidebar": "group",
|
|
305
|
-
className:
|
|
330
|
+
className: i("relative flex w-full min-w-0 flex-col p-ds-03", e),
|
|
306
331
|
...a
|
|
307
332
|
}
|
|
308
333
|
)
|
|
309
334
|
);
|
|
310
|
-
|
|
311
|
-
const
|
|
335
|
+
be.displayName = "SidebarGroup";
|
|
336
|
+
const ge = o(({ className: e, asChild: a = !1, ...t }, r) => /* @__PURE__ */ s(
|
|
312
337
|
a ? v : "div",
|
|
313
338
|
{
|
|
314
|
-
ref:
|
|
339
|
+
ref: r,
|
|
315
340
|
"data-sidebar": "group-label",
|
|
316
|
-
className:
|
|
341
|
+
className: i(
|
|
317
342
|
"flex h-ds-sm shrink-0 items-center rounded-ds-md px-ds-03 text-ds-sm font-medium text-surface-fg-muted outline-none ring-accent-9 transition-[margin,opacity] duration-moderate-02 ease-productive-exit focus-visible:ring-2 [&>svg]:h-ico-sm [&>svg]:w-ico-sm [&>svg]:shrink-0",
|
|
318
343
|
"group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",
|
|
319
344
|
e
|
|
@@ -321,13 +346,13 @@ const me = d(({ className: e, asChild: a = !1, ...t }, i) => /* @__PURE__ */ s(
|
|
|
321
346
|
...t
|
|
322
347
|
}
|
|
323
348
|
));
|
|
324
|
-
|
|
325
|
-
const
|
|
349
|
+
ge.displayName = "SidebarGroupLabel";
|
|
350
|
+
const he = o(({ className: e, asChild: a = !1, ...t }, r) => /* @__PURE__ */ s(
|
|
326
351
|
a ? v : "button",
|
|
327
352
|
{
|
|
328
|
-
ref:
|
|
353
|
+
ref: r,
|
|
329
354
|
"data-sidebar": "group-action",
|
|
330
|
-
className:
|
|
355
|
+
className: i(
|
|
331
356
|
"hover:bg-surface-raised-hover absolute right-ds-04 top-ds-04 flex aspect-square w-5 items-center justify-center rounded-ds-md p-0 text-surface-fg outline-none ring-accent-9 transition-transform hover:text-surface-fg focus-visible:ring-2 [&>svg]:h-ico-sm [&>svg]:w-ico-sm [&>svg]:shrink-0",
|
|
332
357
|
"after:absolute after:-inset-2 after:md:hidden",
|
|
333
358
|
"group-data-[collapsible=icon]:hidden",
|
|
@@ -336,44 +361,44 @@ const fe = d(({ className: e, asChild: a = !1, ...t }, i) => /* @__PURE__ */ s(
|
|
|
336
361
|
...t
|
|
337
362
|
}
|
|
338
363
|
));
|
|
339
|
-
|
|
340
|
-
const
|
|
364
|
+
he.displayName = "SidebarGroupAction";
|
|
365
|
+
const ve = o(
|
|
341
366
|
({ className: e, ...a }, t) => /* @__PURE__ */ s(
|
|
342
367
|
"div",
|
|
343
368
|
{
|
|
344
369
|
ref: t,
|
|
345
370
|
"data-sidebar": "group-content",
|
|
346
|
-
className:
|
|
371
|
+
className: i("w-full text-ds-md", e),
|
|
347
372
|
...a
|
|
348
373
|
}
|
|
349
374
|
)
|
|
350
375
|
);
|
|
351
|
-
|
|
352
|
-
const
|
|
376
|
+
ve.displayName = "SidebarGroupContent";
|
|
377
|
+
const xe = o(
|
|
353
378
|
({ className: e, ...a }, t) => /* @__PURE__ */ s(
|
|
354
379
|
"ul",
|
|
355
380
|
{
|
|
356
381
|
ref: t,
|
|
357
382
|
"data-sidebar": "menu",
|
|
358
|
-
className:
|
|
383
|
+
className: i("flex w-full min-w-0 flex-col gap-ds-02", e),
|
|
359
384
|
...a
|
|
360
385
|
}
|
|
361
386
|
)
|
|
362
387
|
);
|
|
363
|
-
|
|
364
|
-
const
|
|
388
|
+
xe.displayName = "SidebarMenu";
|
|
389
|
+
const Se = o(
|
|
365
390
|
({ className: e, ...a }, t) => /* @__PURE__ */ s(
|
|
366
391
|
"li",
|
|
367
392
|
{
|
|
368
393
|
ref: t,
|
|
369
394
|
"data-sidebar": "menu-item",
|
|
370
|
-
className:
|
|
395
|
+
className: i("group/menu-item relative", e),
|
|
371
396
|
...a
|
|
372
397
|
}
|
|
373
398
|
)
|
|
374
399
|
);
|
|
375
|
-
|
|
376
|
-
const
|
|
400
|
+
Se.displayName = "SidebarMenuItem";
|
|
401
|
+
const we = T(
|
|
377
402
|
"peer/menu-button hover:bg-surface-raised-hover active:bg-accent-2 data-[active=true]:bg-accent-2 data-[state=open]:hover:bg-surface-raised-hover flex w-full items-center gap-ds-03 overflow-hidden rounded-ds-md p-ds-03 text-left outline-none ring-accent-9 transition-[width,height,padding] hover:text-surface-fg focus-visible:ring-2 active:text-surface-fg disabled:pointer-events-none disabled:opacity-action-disabled group-has-[[data-sidebar=menu-action]]/menu-item:pr-ds-07 aria-disabled:pointer-events-none aria-disabled:opacity-action-disabled data-[active=true]:font-medium data-[active=true]:text-surface-fg data-[state=open]:hover:text-surface-fg group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-ds-03 [&>span:last-child]:truncate [&>svg]:h-ico-sm [&>svg]:w-ico-sm [&>svg]:shrink-0",
|
|
378
403
|
{
|
|
379
404
|
variants: {
|
|
@@ -392,41 +417,41 @@ const ve = T(
|
|
|
392
417
|
size: "md"
|
|
393
418
|
}
|
|
394
419
|
}
|
|
395
|
-
),
|
|
420
|
+
), Ne = o(
|
|
396
421
|
({
|
|
397
422
|
asChild: e = !1,
|
|
398
423
|
isActive: a = !1,
|
|
399
424
|
variant: t = "default",
|
|
400
|
-
size:
|
|
401
|
-
tooltip:
|
|
425
|
+
size: r = "md",
|
|
426
|
+
tooltip: d,
|
|
402
427
|
className: n,
|
|
403
|
-
children:
|
|
428
|
+
children: c,
|
|
404
429
|
...b
|
|
405
|
-
},
|
|
430
|
+
}, l) => {
|
|
406
431
|
const f = e ? v : "button", { isMobile: p, state: y } = N(), x = /* @__PURE__ */ s(
|
|
407
432
|
f,
|
|
408
433
|
{
|
|
409
|
-
ref:
|
|
434
|
+
ref: l,
|
|
410
435
|
"data-sidebar": "menu-button",
|
|
411
|
-
"data-size":
|
|
436
|
+
"data-size": r,
|
|
412
437
|
"data-active": a,
|
|
413
|
-
className:
|
|
438
|
+
className: i(we({ variant: t, size: r }), !e && "relative", n),
|
|
414
439
|
...b,
|
|
415
|
-
children: e ?
|
|
440
|
+
children: e ? c : /* @__PURE__ */ h(R, { children: [
|
|
416
441
|
a && /* @__PURE__ */ s(
|
|
417
|
-
|
|
442
|
+
z.span,
|
|
418
443
|
{
|
|
419
444
|
layoutId: "sidebar-active-indicator",
|
|
420
445
|
className: "absolute inset-0 rounded-ds-md bg-accent-2",
|
|
421
446
|
transition: O.smooth
|
|
422
447
|
}
|
|
423
448
|
),
|
|
424
|
-
/* @__PURE__ */ s("span", { className: "relative z-[1] flex w-full items-center gap-[inherit]", children:
|
|
449
|
+
/* @__PURE__ */ s("span", { className: "relative z-[1] flex w-full items-center gap-[inherit]", children: c })
|
|
425
450
|
] })
|
|
426
451
|
}
|
|
427
452
|
);
|
|
428
|
-
return
|
|
429
|
-
children:
|
|
453
|
+
return d ? (typeof d == "string" && (d = {
|
|
454
|
+
children: d
|
|
430
455
|
}), /* @__PURE__ */ h(F, { children: [
|
|
431
456
|
/* @__PURE__ */ s(P, { asChild: !0, children: x }),
|
|
432
457
|
/* @__PURE__ */ s(
|
|
@@ -435,19 +460,19 @@ const ve = T(
|
|
|
435
460
|
side: "right",
|
|
436
461
|
align: "center",
|
|
437
462
|
hidden: y !== "collapsed" || p,
|
|
438
|
-
...
|
|
463
|
+
...d
|
|
439
464
|
}
|
|
440
465
|
)
|
|
441
466
|
] })) : x;
|
|
442
467
|
}
|
|
443
468
|
);
|
|
444
|
-
|
|
445
|
-
const
|
|
469
|
+
Ne.displayName = "SidebarMenuButton";
|
|
470
|
+
const ye = o(({ className: e, asChild: a = !1, showOnHover: t = !1, ...r }, d) => /* @__PURE__ */ s(
|
|
446
471
|
a ? v : "button",
|
|
447
472
|
{
|
|
448
|
-
ref:
|
|
473
|
+
ref: d,
|
|
449
474
|
"data-sidebar": "menu-action",
|
|
450
|
-
className:
|
|
475
|
+
className: i(
|
|
451
476
|
"hover:bg-surface-raised-hover absolute right-ds-02 top-ds-02b flex aspect-square w-5 items-center justify-center rounded-ds-md p-0 text-surface-fg outline-none ring-accent-9 transition-transform hover:text-surface-fg focus-visible:ring-2 peer-hover/menu-button:text-surface-fg [&>svg]:h-ico-sm [&>svg]:w-ico-sm [&>svg]:shrink-0",
|
|
452
477
|
"after:absolute after:-inset-2 after:md:hidden",
|
|
453
478
|
"peer-data-[size=sm]/menu-button:top-1",
|
|
@@ -457,17 +482,17 @@ const Se = d(({ className: e, asChild: a = !1, showOnHover: t = !1, ...i }, o) =
|
|
|
457
482
|
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-surface-fg md:opacity-0",
|
|
458
483
|
e
|
|
459
484
|
),
|
|
460
|
-
...
|
|
485
|
+
...r
|
|
461
486
|
}
|
|
462
487
|
));
|
|
463
|
-
|
|
464
|
-
const
|
|
488
|
+
ye.displayName = "SidebarMenuAction";
|
|
489
|
+
const Me = o(
|
|
465
490
|
({ className: e, ...a }, t) => /* @__PURE__ */ s(
|
|
466
491
|
"div",
|
|
467
492
|
{
|
|
468
493
|
ref: t,
|
|
469
494
|
"data-sidebar": "menu-badge",
|
|
470
|
-
className:
|
|
495
|
+
className: i(
|
|
471
496
|
"pointer-events-none absolute right-ds-02 flex h-5 min-w-5 select-none items-center justify-center rounded-ds-md px-ds-02 text-ds-sm font-medium tabular-nums text-surface-fg",
|
|
472
497
|
"peer-hover/menu-button:text-surface-fg peer-data-[active=true]/menu-button:text-surface-fg",
|
|
473
498
|
"peer-data-[size=sm]/menu-button:top-1",
|
|
@@ -480,15 +505,15 @@ const we = d(
|
|
|
480
505
|
}
|
|
481
506
|
)
|
|
482
507
|
);
|
|
483
|
-
|
|
484
|
-
const
|
|
485
|
-
const
|
|
508
|
+
Me.displayName = "SidebarMenuBadge";
|
|
509
|
+
const _e = o(({ className: e, showIcon: a = !1, ...t }, r) => {
|
|
510
|
+
const d = k(() => `${Math.floor(Math.random() * 40) + 50}%`, []);
|
|
486
511
|
return /* @__PURE__ */ h(
|
|
487
512
|
"div",
|
|
488
513
|
{
|
|
489
|
-
ref:
|
|
514
|
+
ref: r,
|
|
490
515
|
"data-sidebar": "menu-skeleton",
|
|
491
|
-
className:
|
|
516
|
+
className: i("flex h-ds-sm items-center gap-ds-03 rounded-ds-md px-ds-03", e),
|
|
492
517
|
...t,
|
|
493
518
|
children: [
|
|
494
519
|
a && /* @__PURE__ */ s(
|
|
@@ -504,7 +529,7 @@ const Ne = d(({ className: e, showIcon: a = !1, ...t }, i) => {
|
|
|
504
529
|
className: "h-4 max-w-[--skeleton-width] flex-1",
|
|
505
530
|
"data-sidebar": "menu-skeleton-text",
|
|
506
531
|
style: {
|
|
507
|
-
"--skeleton-width":
|
|
532
|
+
"--skeleton-width": d
|
|
508
533
|
}
|
|
509
534
|
}
|
|
510
535
|
)
|
|
@@ -512,14 +537,14 @@ const Ne = d(({ className: e, showIcon: a = !1, ...t }, i) => {
|
|
|
512
537
|
}
|
|
513
538
|
);
|
|
514
539
|
});
|
|
515
|
-
|
|
516
|
-
const
|
|
540
|
+
_e.displayName = "SidebarMenuSkeleton";
|
|
541
|
+
const Ce = o(
|
|
517
542
|
({ className: e, ...a }, t) => /* @__PURE__ */ s(
|
|
518
543
|
"ul",
|
|
519
544
|
{
|
|
520
545
|
ref: t,
|
|
521
546
|
"data-sidebar": "menu-sub",
|
|
522
|
-
className:
|
|
547
|
+
className: i(
|
|
523
548
|
"mx-ds-04 flex min-w-0 translate-x-px flex-col gap-ds-02 border-l border-surface-border px-ds-03 py-ds-01",
|
|
524
549
|
"group-data-[collapsible=icon]:hidden",
|
|
525
550
|
e
|
|
@@ -528,53 +553,53 @@ const ye = d(
|
|
|
528
553
|
}
|
|
529
554
|
)
|
|
530
555
|
);
|
|
531
|
-
|
|
532
|
-
const
|
|
556
|
+
Ce.displayName = "SidebarMenuSub";
|
|
557
|
+
const Ie = o(
|
|
533
558
|
({ ...e }, a) => /* @__PURE__ */ s("li", { ref: a, ...e })
|
|
534
559
|
);
|
|
535
|
-
|
|
536
|
-
const
|
|
560
|
+
Ie.displayName = "SidebarMenuSubItem";
|
|
561
|
+
const ke = o(({ asChild: e = !1, size: a = "md", isActive: t, className: r, ...d }, n) => /* @__PURE__ */ s(
|
|
537
562
|
e ? v : "a",
|
|
538
563
|
{
|
|
539
564
|
ref: n,
|
|
540
565
|
"data-sidebar": "menu-sub-button",
|
|
541
566
|
"data-size": a,
|
|
542
567
|
"data-active": t,
|
|
543
|
-
className:
|
|
568
|
+
className: i(
|
|
544
569
|
"hover:bg-surface-raised-hover active:bg-accent-2 flex h-ds-xs-plus min-w-0 -translate-x-px items-center gap-ds-03 overflow-hidden rounded-ds-md px-ds-03 text-surface-fg outline-none ring-accent-9 hover:text-surface-fg focus-visible:ring-2 active:text-surface-fg disabled:pointer-events-none disabled:opacity-action-disabled aria-disabled:pointer-events-none aria-disabled:opacity-action-disabled [&>span:last-child]:truncate [&>svg]:h-ico-sm [&>svg]:w-ico-sm [&>svg]:shrink-0 [&>svg]:text-surface-fg",
|
|
545
570
|
"data-[active=true]:bg-accent-2 data-[active=true]:text-surface-fg",
|
|
546
571
|
a === "sm" && "text-ds-sm",
|
|
547
572
|
a === "md" && "text-ds-md",
|
|
548
573
|
"group-data-[collapsible=icon]:hidden",
|
|
549
|
-
|
|
574
|
+
r
|
|
550
575
|
),
|
|
551
|
-
...
|
|
576
|
+
...d
|
|
552
577
|
}
|
|
553
578
|
));
|
|
554
|
-
|
|
579
|
+
ke.displayName = "SidebarMenuSubButton";
|
|
555
580
|
export {
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
581
|
+
de as Sidebar,
|
|
582
|
+
me as SidebarContent,
|
|
583
|
+
fe as SidebarFooter,
|
|
584
|
+
be as SidebarGroup,
|
|
585
|
+
he as SidebarGroupAction,
|
|
586
|
+
ve as SidebarGroupContent,
|
|
587
|
+
ge as SidebarGroupLabel,
|
|
588
|
+
ue as SidebarHeader,
|
|
589
|
+
ce as SidebarInput,
|
|
590
|
+
le as SidebarInset,
|
|
591
|
+
xe as SidebarMenu,
|
|
592
|
+
ye as SidebarMenuAction,
|
|
593
|
+
Me as SidebarMenuBadge,
|
|
594
|
+
Ne as SidebarMenuButton,
|
|
595
|
+
Se as SidebarMenuItem,
|
|
596
|
+
_e as SidebarMenuSkeleton,
|
|
597
|
+
Ce as SidebarMenuSub,
|
|
598
|
+
ke as SidebarMenuSubButton,
|
|
599
|
+
Ie as SidebarMenuSubItem,
|
|
600
|
+
re as SidebarProvider,
|
|
601
|
+
ne as SidebarRail,
|
|
602
|
+
pe as SidebarSeparator,
|
|
603
|
+
oe as SidebarTrigger,
|
|
579
604
|
N as useSidebar
|
|
580
605
|
};
|