@alfadocs/ui-kit 0.66.0 → 0.67.1
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/{agenda-card-Bl-SBiCh.js → agenda-card-BxSFkqgY.js} +2 -2
- package/dist/_chunks/{agenda-tray-Bh1KfEOG.js → agenda-tray-T-BumlGZ.js} +2 -2
- package/dist/_chunks/{ai-consent-banner-Btzmk8OH.js → ai-consent-banner-Dxtx_WAh.js} +2 -2
- package/dist/_chunks/{ai-tools-rail-DAfaW8eA.js → ai-tools-rail-CInA_1-E.js} +57 -50
- package/dist/_chunks/{alia-sidebar-CN8pA6c-.js → alia-sidebar-Ckv0yCKi.js} +2 -2
- package/dist/_chunks/{anamnesis-card-qeLYRG79.js → anamnesis-card-N8pIKWuS.js} +2 -2
- package/dist/_chunks/{antenatal-schedule-timeline-BfzFjEyb.js → antenatal-schedule-timeline-35ebkcZT.js} +2 -2
- package/dist/_chunks/{appointment-tray-BQnJEora.js → appointment-tray-BMl89NPW.js} +4 -4
- package/dist/_chunks/{badge-zsf5i5bH.js → badge-CqGsX32l.js} +46 -42
- package/dist/_chunks/{bishop-score-DPN4Ched.js → bishop-score-CjsB9bM-.js} +2 -2
- package/dist/_chunks/{bmi-calculator-DuUneHuZ.js → bmi-calculator-n-823_1V.js} +2 -2
- package/dist/_chunks/{care-plan-card-D42WD4-T.js → care-plan-card-BwVUyUBb.js} +4 -4
- package/dist/_chunks/{care-plan-entry-card-BukNI7Uy.js → care-plan-entry-card-VzdQHcOL.js} +4 -4
- package/dist/_chunks/{clinical-note-card-BYo437dU.js → clinical-note-card-gtrxv6zn.js} +2 -2
- package/dist/_chunks/{color-picker-9tL7pz5y.js → color-picker-FXpItIaF.js} +198 -175
- package/dist/_chunks/{contact-profile-card-CCeJmjbd.js → contact-profile-card-7BMB85T6.js} +2 -2
- package/dist/_chunks/{cycle-calculator-D6LTmtQt.js → cycle-calculator-BF0ointe.js} +2 -2
- package/dist/_chunks/{dependent-selector-CRWgieHm.js → dependent-selector-DpzGtr_J.js} +2 -2
- package/dist/_chunks/{document-scanner-biBS_f6c.js → document-scanner-D2qehl3-.js} +53 -53
- package/dist/_chunks/{due-date-calculator-CIG194vq.js → due-date-calculator-DU9AEWNy.js} +3 -3
- package/dist/_chunks/{editable-currency-cell-renderer-f3d0Rhue.js → editable-currency-cell-renderer-D1ewvJKO.js} +875 -809
- package/dist/_chunks/{fetal-weight-Xf8-ZoDy.js → fetal-weight-BVSzOhuR.js} +2 -2
- package/dist/_chunks/{gestational-age-calculator-BGsZaWXW.js → gestational-age-calculator-DBlFdoiP.js} +3 -3
- package/dist/_chunks/{hcg-doubling-LH5i6oM7.js → hcg-doubling-if4Q8aSX.js} +2 -2
- package/dist/_chunks/{marketplace-app-shell-Cou6XnMJ.js → marketplace-app-shell-D4-T9Qzz.js} +3 -3
- package/dist/_chunks/{message-card-Bgcvfj6-.js → message-card-Bx4GmLvf.js} +9 -9
- package/dist/_chunks/{message-tray-saAVMeHP.js → message-tray-CVyJajVJ.js} +2 -2
- package/dist/_chunks/{operator-hero-CM8949Hd.js → operator-hero-f_KaRhw5.js} +2 -2
- package/dist/_chunks/{patient-search-Bw9ONucF.js → patient-search-DR9XUYRQ.js} +2 -2
- package/dist/_chunks/{patient-shell-Tgpv0HND.js → patient-shell-BfgufL_q.js} +2 -2
- package/dist/_chunks/{patient-summary-card-Bgso0p_l.js → patient-summary-card-hEmr4eTW.js} +4 -4
- package/dist/_chunks/{payment-request-card-DBz3hVDz.js → payment-request-card-CYE5vhZ0.js} +3 -3
- package/dist/_chunks/{periodontal-chart-card-AYyHtU9K.js → periodontal-chart-card-Dh3KgvYG.js} +2 -2
- package/dist/_chunks/{practice-results-CVAgY2RZ.js → practice-results-DND2SAt7.js} +2 -2
- package/dist/_chunks/{pregnancy-dating-f9aJbiAk.js → pregnancy-dating-QY-sqpvj.js} +3 -3
- package/dist/_chunks/{pregnancy-weight-gain-BMRBeA8V.js → pregnancy-weight-gain-DOJXXNYP.js} +2 -2
- package/dist/_chunks/rich-text-editor-DAeCXiQG.js +1973 -0
- package/dist/_chunks/{scroll-area-BWqCkEGz.js → scroll-area-5wNK0Cyz.js} +40 -30
- package/dist/_chunks/{sidebar-BFwbx74W.js → sidebar-DaB4ulxH.js} +351 -344
- package/dist/_chunks/{suggestion-chip-C4kxWUIs.js → suggestion-chip-Bk4PmYTg.js} +30 -30
- package/dist/_chunks/{tab-bar-Xetknddo.js → tab-bar-B1ovILzh.js} +2 -2
- package/dist/_chunks/{tag-CdA0s_VV.js → tag-BQXwuJq1.js} +41 -38
- package/dist/_chunks/{transaction-chip-BZCa6XDn.js → transaction-chip-DK84XCBU.js} +46 -33
- package/dist/_chunks/{workflow-map-Bt4Of5dT.js → workflow-map-JAZryZJr.js} +2 -2
- package/dist/agent-catalog.json +1 -1
- package/dist/components/agenda-card/index.js +1 -1
- package/dist/components/agenda-tray/index.js +1 -1
- package/dist/components/ai-consent-banner/index.js +1 -1
- package/dist/components/ai-tools-rail/index.js +1 -1
- package/dist/components/anamnesis-card/index.js +1 -1
- package/dist/components/appointment-card/index.js +1 -1
- package/dist/components/badge/index.js +1 -1
- package/dist/components/bishop-score/index.js +1 -1
- package/dist/components/bmi-calculator/index.js +1 -1
- package/dist/components/care-plan-card/index.js +1 -1
- package/dist/components/care-plan-entry-card/index.js +1 -1
- package/dist/components/clinical-note-card/index.js +1 -1
- package/dist/components/color-picker/index.js +1 -1
- package/dist/components/contact-profile-card/index.js +1 -1
- package/dist/components/cycle-calculator/index.js +1 -1
- package/dist/components/data-table/cell-renderers/actions-cell-renderer.d.ts +16 -0
- package/dist/components/data-table/cell-renderers/tooth-cell-renderer.d.ts +12 -0
- package/dist/components/data-table/data-table.d.ts +1 -1
- package/dist/components/data-table/index.d.ts +2 -0
- package/dist/components/data-table/index.js +13 -12
- package/dist/components/data-table/toolbar.d.ts +5 -1
- package/dist/components/dependent-selector/index.js +1 -1
- package/dist/components/document-scanner/index.js +1 -1
- package/dist/components/due-date-calculator/index.js +2 -2
- package/dist/components/fetal-weight/index.js +1 -1
- package/dist/components/gestational-age-calculator/index.js +1 -1
- package/dist/components/hcg-doubling/index.js +1 -1
- package/dist/components/message-card/index.js +1 -1
- package/dist/components/message-tray/index.js +1 -1
- package/dist/components/operator-hero/index.js +1 -1
- package/dist/components/patient-search/index.js +1 -1
- package/dist/components/patient-summary-card/index.js +1 -1
- package/dist/components/payment-card/index.js +1 -1
- package/dist/components/periodontal-chart-card/index.js +1 -1
- package/dist/components/practice-results/index.js +1 -1
- package/dist/components/pregnancy-dating/index.js +1 -1
- package/dist/components/pregnancy-weight-gain/index.js +1 -1
- package/dist/components/rich-text-editor/editor-toolbar.d.ts +25 -1
- package/dist/components/rich-text-editor/index.js +1 -1
- package/dist/components/rich-text-editor/rich-text-editor.d.ts +2 -0
- package/dist/components/scroll-area/index.js +1 -1
- package/dist/components/sidebar/index.js +1 -1
- package/dist/components/suggestion-chip/index.js +1 -1
- package/dist/components/tab-bar/index.js +1 -1
- package/dist/components/tag/index.js +1 -1
- package/dist/components/transaction-chip/index.js +1 -1
- package/dist/components/workflow/index.js +1 -1
- package/dist/i18n/locales/ar.d.ts +14 -1
- package/dist/i18n/locales/ar.js +16 -3
- package/dist/i18n/locales/de.d.ts +14 -1
- package/dist/i18n/locales/de.js +16 -3
- package/dist/i18n/locales/el.d.ts +14 -1
- package/dist/i18n/locales/el.js +16 -3
- package/dist/i18n/locales/en.d.ts +14 -1
- package/dist/i18n/locales/en.js +16 -3
- package/dist/i18n/locales/es.d.ts +14 -1
- package/dist/i18n/locales/es.js +16 -3
- package/dist/i18n/locales/fr.d.ts +14 -1
- package/dist/i18n/locales/fr.js +16 -3
- package/dist/i18n/locales/hi.d.ts +14 -1
- package/dist/i18n/locales/hi.js +16 -3
- package/dist/i18n/locales/it.d.ts +14 -1
- package/dist/i18n/locales/it.js +16 -3
- package/dist/i18n/locales/ja.d.ts +14 -1
- package/dist/i18n/locales/ja.js +16 -3
- package/dist/i18n/locales/nl.d.ts +14 -1
- package/dist/i18n/locales/nl.js +14 -3
- package/dist/i18n/locales/pl.d.ts +14 -1
- package/dist/i18n/locales/pl.js +16 -3
- package/dist/i18n/locales/pt.d.ts +14 -1
- package/dist/i18n/locales/pt.js +16 -3
- package/dist/i18n/locales/ro.d.ts +14 -1
- package/dist/i18n/locales/ro.js +16 -3
- package/dist/i18n/locales/ru.d.ts +14 -1
- package/dist/i18n/locales/ru.js +16 -3
- package/dist/i18n/locales/sq.d.ts +14 -1
- package/dist/i18n/locales/sq.js +16 -3
- package/dist/i18n/locales/sv.d.ts +14 -1
- package/dist/i18n/locales/sv.js +14 -3
- package/dist/i18n/locales/tr.d.ts +14 -1
- package/dist/i18n/locales/tr.js +16 -3
- package/dist/i18n/locales/zh.d.ts +14 -1
- package/dist/i18n/locales/zh.js +14 -3
- package/dist/index.js +508 -507
- package/dist/locales/ar.json +16 -3
- package/dist/locales/de.json +16 -3
- package/dist/locales/el.json +16 -3
- package/dist/locales/en.json +16 -3
- package/dist/locales/es.json +16 -3
- package/dist/locales/fr.json +16 -3
- package/dist/locales/hi.json +16 -3
- package/dist/locales/it.json +16 -3
- package/dist/locales/ja.json +16 -3
- package/dist/locales/nl.json +16 -3
- package/dist/locales/pl.json +16 -3
- package/dist/locales/pt.json +16 -3
- package/dist/locales/ro.json +16 -3
- package/dist/locales/ru.json +16 -3
- package/dist/locales/sq.json +16 -3
- package/dist/locales/sv.json +16 -3
- package/dist/locales/tr.json +16 -3
- package/dist/locales/zh.json +16 -3
- package/dist/patterns/alia-assistant/index.js +1 -1
- package/dist/patterns/marketplace-app-shell/index.js +1 -1
- package/dist/patterns/patient-shell/index.js +1 -1
- package/dist/tokens.css +6 -3
- package/package.json +1 -1
- package/dist/_chunks/rich-text-editor-B5XQNxe8.js +0 -1586
|
@@ -1,53 +1,53 @@
|
|
|
1
|
-
import { jsx as s, jsxs as
|
|
2
|
-
import { forwardRef as g, useState as
|
|
3
|
-
import * as
|
|
1
|
+
import { jsx as s, jsxs as u, Fragment as q } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as g, useState as R, useEffect as U, useCallback as ss, useRef as $, useMemo as O, useId as is, useContext as Z, createContext as W } from "react";
|
|
3
|
+
import * as B from "@radix-ui/react-dialog";
|
|
4
4
|
import * as K from "@radix-ui/react-collapsible";
|
|
5
|
-
import * as
|
|
5
|
+
import * as E from "@radix-ui/react-accordion";
|
|
6
6
|
import * as b from "@radix-ui/react-tooltip";
|
|
7
|
-
import { a as
|
|
7
|
+
import { a as ts } from "./accordion-9lJSMMsZ.js";
|
|
8
8
|
import { Slot as os } from "@radix-ui/react-slot";
|
|
9
9
|
import { c as T } from "./index-D2ZczOXr.js";
|
|
10
|
-
import { useTranslation as
|
|
11
|
-
import { u as
|
|
12
|
-
import { c as
|
|
13
|
-
import { u as
|
|
14
|
-
import { X as
|
|
15
|
-
import { c as
|
|
16
|
-
import { G as
|
|
10
|
+
import { useTranslation as D } from "react-i18next";
|
|
11
|
+
import { u as ls } from "./use-edge-resize-ZnGG7gyO.js";
|
|
12
|
+
import { c as cs } from "./compose-refs-C0k0tdqF.js";
|
|
13
|
+
import { u as us } from "./registry-nPAVE19X.js";
|
|
14
|
+
import { X as ms } from "./x-CCcI3eJp.js";
|
|
15
|
+
import { c as X } from "./createLucideIcon-CrFbzy84.js";
|
|
16
|
+
import { G as vs } from "./grip-vertical-Dlg0_k5C.js";
|
|
17
17
|
import { C as H } from "./chevron-right-BrpYejk0.js";
|
|
18
|
-
import { S as
|
|
18
|
+
import { S as fs } from "./star-vav0SJ9e.js";
|
|
19
19
|
/**
|
|
20
20
|
* @license lucide-react v1.8.0 - ISC
|
|
21
21
|
*
|
|
22
22
|
* This source code is licensed under the ISC license.
|
|
23
23
|
* See the LICENSE file in the root directory of this source tree.
|
|
24
24
|
*/
|
|
25
|
-
const
|
|
25
|
+
const ps = [
|
|
26
26
|
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
|
|
27
27
|
["path", { d: "M9 3v18", key: "fh3hqa" }],
|
|
28
28
|
["path", { d: "m16 15-3-3 3-3", key: "14y99z" }]
|
|
29
|
-
],
|
|
29
|
+
], gs = X("panel-left-close", ps);
|
|
30
30
|
/**
|
|
31
31
|
* @license lucide-react v1.8.0 - ISC
|
|
32
32
|
*
|
|
33
33
|
* This source code is licensed under the ISC license.
|
|
34
34
|
* See the LICENSE file in the root directory of this source tree.
|
|
35
35
|
*/
|
|
36
|
-
const
|
|
36
|
+
const bs = [
|
|
37
37
|
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
|
|
38
38
|
["path", { d: "M9 3v18", key: "fh3hqa" }],
|
|
39
39
|
["path", { d: "m14 9 3 3-3 3", key: "8010ee" }]
|
|
40
|
-
],
|
|
40
|
+
], hs = X("panel-left-open", bs);
|
|
41
41
|
/**
|
|
42
42
|
* @license lucide-react v1.8.0 - ISC
|
|
43
43
|
*
|
|
44
44
|
* This source code is licensed under the ISC license.
|
|
45
45
|
* See the LICENSE file in the root directory of this source tree.
|
|
46
46
|
*/
|
|
47
|
-
const
|
|
47
|
+
const xs = [
|
|
48
48
|
["path", { d: "M16 7h6v6", key: "box55l" }],
|
|
49
49
|
["path", { d: "m22 7-8.5 8.5-5-5L2 17", key: "1t1m79" }]
|
|
50
|
-
],
|
|
50
|
+
], ys = X("trending-up", xs), ws = {
|
|
51
51
|
id: "sidebar",
|
|
52
52
|
capabilities: ["expand"],
|
|
53
53
|
state: {
|
|
@@ -78,11 +78,11 @@ const hs = [
|
|
|
78
78
|
description: "Each Sidebar.Item emits its key as data-nav-id."
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
|
-
}, G =
|
|
81
|
+
}, G = W({
|
|
82
82
|
mode: "expanded",
|
|
83
83
|
density: "default"
|
|
84
|
-
}), y = () =>
|
|
85
|
-
function
|
|
84
|
+
}), y = () => Z(G), es = "ui.sidebar.state";
|
|
85
|
+
function Ns(e) {
|
|
86
86
|
if (typeof window > "u") return e;
|
|
87
87
|
try {
|
|
88
88
|
const a = window.localStorage.getItem(es);
|
|
@@ -91,14 +91,14 @@ function ws(e) {
|
|
|
91
91
|
}
|
|
92
92
|
return e;
|
|
93
93
|
}
|
|
94
|
-
function
|
|
94
|
+
function zs(e) {
|
|
95
95
|
if (!(typeof window > "u"))
|
|
96
96
|
try {
|
|
97
97
|
window.localStorage.setItem(es, e);
|
|
98
98
|
} catch {
|
|
99
99
|
}
|
|
100
100
|
}
|
|
101
|
-
const
|
|
101
|
+
const J = T(
|
|
102
102
|
[
|
|
103
103
|
"ds:flex ds:flex-col",
|
|
104
104
|
// Sidebar sits at the page background in light mode (white-on-white
|
|
@@ -119,6 +119,9 @@ const X = T(
|
|
|
119
119
|
// solid background (e.g. AppFrame's `<main>` surface), otherwise
|
|
120
120
|
// the shadow that projects towards the inline-end gets covered.
|
|
121
121
|
"ds:relative ds:z-[1] ds:shadow-[var(--shadow-md)]",
|
|
122
|
+
// Accessible (AAA) theme prefers a solid border over a soft shadow as the
|
|
123
|
+
// separation cue — swap the resting elevation for a real 1px `border-e`.
|
|
124
|
+
"ds:[.theme-accessible_&]:border-e ds:[.theme-accessible_&]:shadow-none",
|
|
122
125
|
"ds:h-full",
|
|
123
126
|
"ds:transition-[inline-size] ds:duration-[var(--animation-duration)]",
|
|
124
127
|
"ds:motion-reduce:transition-none",
|
|
@@ -141,7 +144,7 @@ const X = T(
|
|
|
141
144
|
},
|
|
142
145
|
defaultVariants: { mode: "expanded", density: "default" }
|
|
143
146
|
}
|
|
144
|
-
),
|
|
147
|
+
), Ss = 192, js = 384, Cs = 248, ks = [
|
|
145
148
|
"ds:absolute ds:[inset-block:0] ds:end-0 ds:z-[2]",
|
|
146
149
|
"ds:w-[var(--resizable-handle-size)]",
|
|
147
150
|
"ds:cursor-col-resize ds:select-none ds:touch-none",
|
|
@@ -155,63 +158,63 @@ const X = T(
|
|
|
155
158
|
"ds:before:[inset-block:0]",
|
|
156
159
|
"ds:before:[inline-size:var(--min-target-size)]",
|
|
157
160
|
"ds:before:[inset-inline:calc(0px_-_(var(--min-target-size)_-_var(--resizable-handle-size))_/_2)]"
|
|
158
|
-
].join(" "),
|
|
161
|
+
].join(" "), Ts = g(
|
|
159
162
|
({
|
|
160
163
|
state: e,
|
|
161
164
|
defaultState: a = "expanded",
|
|
162
165
|
onStateChange: r,
|
|
163
|
-
density:
|
|
164
|
-
open:
|
|
165
|
-
onOpenChange:
|
|
166
|
-
resizable:
|
|
167
|
-
"aria-label":
|
|
168
|
-
className:
|
|
169
|
-
children:
|
|
170
|
-
id:
|
|
166
|
+
density: n = "default",
|
|
167
|
+
open: t,
|
|
168
|
+
onOpenChange: l,
|
|
169
|
+
resizable: o = !1,
|
|
170
|
+
"aria-label": i,
|
|
171
|
+
className: m,
|
|
172
|
+
children: p,
|
|
173
|
+
id: f,
|
|
171
174
|
...h
|
|
172
|
-
},
|
|
173
|
-
const { t: x } =
|
|
174
|
-
() => d ? e :
|
|
175
|
-
),
|
|
176
|
-
|
|
177
|
-
d ||
|
|
178
|
-
}, [
|
|
179
|
-
const S =
|
|
180
|
-
(
|
|
181
|
-
d || z(
|
|
175
|
+
}, w) => {
|
|
176
|
+
const { t: x } = D(), d = e !== void 0, [N, z] = R(
|
|
177
|
+
() => d ? e : Ns(a)
|
|
178
|
+
), c = d ? e : N;
|
|
179
|
+
U(() => {
|
|
180
|
+
d || zs(N);
|
|
181
|
+
}, [N, d]);
|
|
182
|
+
const S = ss(
|
|
183
|
+
(k) => {
|
|
184
|
+
d || z(k), r == null || r(k);
|
|
182
185
|
},
|
|
183
186
|
[d, r]
|
|
184
|
-
), j =
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
}, [
|
|
187
|
+
), j = i ?? x("navigation.sidebar.label"), C = $(c);
|
|
188
|
+
U(() => {
|
|
189
|
+
C.current = c;
|
|
190
|
+
}, [c]);
|
|
188
191
|
const F = O(
|
|
189
192
|
() => ({
|
|
190
|
-
getIsCollapsed: () =>
|
|
193
|
+
getIsCollapsed: () => C.current !== "expanded",
|
|
191
194
|
toggleCollapsed: () => {
|
|
192
|
-
const
|
|
193
|
-
S(
|
|
195
|
+
const k = C.current === "expanded" ? "icon" : "expanded";
|
|
196
|
+
S(k);
|
|
194
197
|
}
|
|
195
198
|
}),
|
|
196
199
|
[S]
|
|
197
200
|
);
|
|
198
|
-
|
|
199
|
-
const
|
|
201
|
+
us(ws, F, f);
|
|
202
|
+
const A = $(null), _ = O(() => cs(w, A), [w]), { separatorProps: M, isResizing: P } = ls({
|
|
200
203
|
edge: "inline-end",
|
|
201
|
-
targetRef:
|
|
204
|
+
targetRef: A,
|
|
202
205
|
cssProperty: "--sidebar-modern-expanded-size",
|
|
203
|
-
minSize:
|
|
204
|
-
maxSize:
|
|
205
|
-
defaultSize:
|
|
206
|
-
disabled: !
|
|
207
|
-
}),
|
|
208
|
-
return
|
|
206
|
+
minSize: Ss,
|
|
207
|
+
maxSize: js,
|
|
208
|
+
defaultSize: Cs,
|
|
209
|
+
disabled: !o || c !== "expanded"
|
|
210
|
+
}), L = o && c === "expanded";
|
|
211
|
+
return c === "overlay" ? /* @__PURE__ */ s(
|
|
209
212
|
G.Provider,
|
|
210
213
|
{
|
|
211
|
-
value: { mode: "overlay", density:
|
|
212
|
-
children: /* @__PURE__ */ s(
|
|
214
|
+
value: { mode: "overlay", density: n, transitionTo: S },
|
|
215
|
+
children: /* @__PURE__ */ s(B.Root, { open: t, onOpenChange: l, children: /* @__PURE__ */ u(B.Portal, { children: [
|
|
213
216
|
/* @__PURE__ */ s(
|
|
214
|
-
|
|
217
|
+
B.Overlay,
|
|
215
218
|
{
|
|
216
219
|
className: [
|
|
217
220
|
"ds:fixed ds:inset-0 ds:z-[var(--z-modal-backdrop)]",
|
|
@@ -222,38 +225,38 @@ const X = T(
|
|
|
222
225
|
].join(" ")
|
|
223
226
|
}
|
|
224
227
|
),
|
|
225
|
-
/* @__PURE__ */
|
|
226
|
-
|
|
228
|
+
/* @__PURE__ */ u(
|
|
229
|
+
B.Content,
|
|
227
230
|
{
|
|
228
231
|
"aria-label": j,
|
|
229
232
|
className: [
|
|
230
233
|
"ds:fixed ds:z-[var(--z-modal)]",
|
|
231
234
|
"ds:inset-inline-start-0 ds:inset-block-start-0",
|
|
232
235
|
"ds:h-dvh",
|
|
233
|
-
|
|
236
|
+
J({ mode: "overlay", density: n }),
|
|
234
237
|
"ds:shadow-[var(--shadow-xl)]",
|
|
235
238
|
"ds:data-[state=open]:animate-in ds:data-[state=closed]:animate-out",
|
|
236
239
|
"ds:data-[state=open]:slide-in-from-left ds:data-[state=closed]:slide-out-to-left",
|
|
237
240
|
"ds:rtl:data-[state=open]:slide-in-from-right ds:rtl:data-[state=closed]:slide-out-to-right",
|
|
238
241
|
"ds:motion-reduce:animate-none",
|
|
239
242
|
"ds:focus:outline-none",
|
|
240
|
-
|
|
243
|
+
m ?? ""
|
|
241
244
|
].filter(Boolean).join(" "),
|
|
242
245
|
children: [
|
|
243
246
|
/* @__PURE__ */ s(
|
|
244
247
|
"nav",
|
|
245
248
|
{
|
|
246
|
-
ref:
|
|
247
|
-
id:
|
|
249
|
+
ref: _,
|
|
250
|
+
id: f,
|
|
248
251
|
"aria-label": j,
|
|
249
252
|
"data-component": "sidebar",
|
|
250
|
-
"data-component-id":
|
|
253
|
+
"data-component-id": f,
|
|
251
254
|
className: "ds:flex ds:flex-col ds:h-full",
|
|
252
255
|
...h,
|
|
253
|
-
children:
|
|
256
|
+
children: p
|
|
254
257
|
}
|
|
255
258
|
),
|
|
256
|
-
/* @__PURE__ */ s(
|
|
259
|
+
/* @__PURE__ */ s(B.Close, { asChild: !0, children: /* @__PURE__ */ s(
|
|
257
260
|
"button",
|
|
258
261
|
{
|
|
259
262
|
type: "button",
|
|
@@ -267,7 +270,7 @@ const X = T(
|
|
|
267
270
|
"ds:focus-visible:outline-solid ds:focus-visible:outline-[var(--ring)]",
|
|
268
271
|
"ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]"
|
|
269
272
|
].join(" "),
|
|
270
|
-
children: /* @__PURE__ */ s(
|
|
273
|
+
children: /* @__PURE__ */ s(ms, { "aria-hidden": "true", className: "ds:size-4" })
|
|
271
274
|
}
|
|
272
275
|
) })
|
|
273
276
|
]
|
|
@@ -278,32 +281,32 @@ const X = T(
|
|
|
278
281
|
) : /* @__PURE__ */ s(
|
|
279
282
|
G.Provider,
|
|
280
283
|
{
|
|
281
|
-
value: { mode:
|
|
282
|
-
children: /* @__PURE__ */ s(b.Provider, { delayDuration: 300, children: /* @__PURE__ */
|
|
284
|
+
value: { mode: c, density: n, transitionTo: S },
|
|
285
|
+
children: /* @__PURE__ */ s(b.Provider, { delayDuration: 300, children: /* @__PURE__ */ u(
|
|
283
286
|
"nav",
|
|
284
287
|
{
|
|
285
|
-
ref:
|
|
286
|
-
id:
|
|
288
|
+
ref: _,
|
|
289
|
+
id: f,
|
|
287
290
|
"aria-label": j,
|
|
288
291
|
"data-component": "sidebar",
|
|
289
|
-
"data-component-id":
|
|
290
|
-
"data-mode":
|
|
291
|
-
"data-density":
|
|
292
|
-
"data-resizing":
|
|
292
|
+
"data-component-id": f,
|
|
293
|
+
"data-mode": c,
|
|
294
|
+
"data-density": n,
|
|
295
|
+
"data-resizing": P ? "" : void 0,
|
|
293
296
|
className: [
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
+
J({ mode: c, density: n }),
|
|
298
|
+
n === "compact" ? "ds:density-compact" : "",
|
|
299
|
+
m ?? ""
|
|
297
300
|
].filter(Boolean).join(" "),
|
|
298
301
|
...h,
|
|
299
302
|
children: [
|
|
300
|
-
|
|
301
|
-
|
|
303
|
+
p,
|
|
304
|
+
L ? /* @__PURE__ */ s(
|
|
302
305
|
"div",
|
|
303
306
|
{
|
|
304
|
-
...
|
|
307
|
+
...M,
|
|
305
308
|
"aria-label": x("navigation.sidebar.resize"),
|
|
306
|
-
"data-resizing":
|
|
309
|
+
"data-resizing": P ? "" : void 0,
|
|
307
310
|
className: ks
|
|
308
311
|
}
|
|
309
312
|
) : null
|
|
@@ -314,9 +317,9 @@ const X = T(
|
|
|
314
317
|
);
|
|
315
318
|
}
|
|
316
319
|
);
|
|
317
|
-
|
|
318
|
-
const
|
|
319
|
-
const { mode:
|
|
320
|
+
Ts.displayName = "Sidebar";
|
|
321
|
+
const Is = g(({ className: e, ...a }, r) => {
|
|
322
|
+
const { mode: n } = y();
|
|
320
323
|
return /* @__PURE__ */ s(
|
|
321
324
|
"div",
|
|
322
325
|
{
|
|
@@ -326,7 +329,7 @@ const Ts = g(({ className: e, ...a }, r) => {
|
|
|
326
329
|
"ds:min-h-[var(--min-target-size)]",
|
|
327
330
|
// Icon-rail is 64px — shrink horizontal padding so a 44×44
|
|
328
331
|
// control fits centred inside the header.
|
|
329
|
-
|
|
332
|
+
n === "icon" ? "ds:justify-center ds:ps-[var(--spacing-xs)] ds:pe-[var(--spacing-xs)]" : "ds:ps-[var(--spacing-md)] ds:pe-[var(--spacing-md)]",
|
|
330
333
|
"ds:py-[var(--spacing-sm)]",
|
|
331
334
|
// Hairline border + downward chrome shadow cast the header as a
|
|
332
335
|
// sticky top band above the scrolling body.
|
|
@@ -338,8 +341,8 @@ const Ts = g(({ className: e, ...a }, r) => {
|
|
|
338
341
|
}
|
|
339
342
|
);
|
|
340
343
|
});
|
|
341
|
-
|
|
342
|
-
const
|
|
344
|
+
Is.displayName = "SidebarHeader";
|
|
345
|
+
const Bs = g(
|
|
343
346
|
({ className: e, ...a }, r) => /* @__PURE__ */ s(
|
|
344
347
|
"div",
|
|
345
348
|
{
|
|
@@ -354,9 +357,9 @@ const Is = g(
|
|
|
354
357
|
}
|
|
355
358
|
)
|
|
356
359
|
);
|
|
357
|
-
|
|
360
|
+
Bs.displayName = "SidebarBody";
|
|
358
361
|
const Rs = g(({ className: e, ...a }, r) => {
|
|
359
|
-
const { mode:
|
|
362
|
+
const { mode: n } = y();
|
|
360
363
|
return /* @__PURE__ */ s(
|
|
361
364
|
"div",
|
|
362
365
|
{
|
|
@@ -365,7 +368,7 @@ const Rs = g(({ className: e, ...a }, r) => {
|
|
|
365
368
|
"ds:relative ds:flex ds:items-center ds:gap-[var(--spacing-xs)]",
|
|
366
369
|
// Icon-rail is 64px — two 44×44 controls can't sit side-by-side,
|
|
367
370
|
// so switch to a vertical stack and let each row self-centre.
|
|
368
|
-
|
|
371
|
+
n === "icon" ? "ds:flex-col ds:ps-[var(--spacing-xs)] ds:pe-[var(--spacing-xs)]" : "ds:ps-[var(--spacing-md)] ds:pe-[var(--spacing-md)]",
|
|
369
372
|
"ds:min-h-[var(--min-target-size)]",
|
|
370
373
|
"ds:py-[var(--spacing-sm)]",
|
|
371
374
|
// Hairline border + upward chrome shadow cast the footer as a
|
|
@@ -379,7 +382,7 @@ const Rs = g(({ className: e, ...a }, r) => {
|
|
|
379
382
|
);
|
|
380
383
|
});
|
|
381
384
|
Rs.displayName = "SidebarFooter";
|
|
382
|
-
const
|
|
385
|
+
const Ds = [
|
|
383
386
|
"ds:group/section-label ds:flex ds:w-full ds:items-center",
|
|
384
387
|
"type-eyebrow",
|
|
385
388
|
"ds:text-[var(--muted-foreground)]",
|
|
@@ -389,7 +392,7 @@ const Bs = [
|
|
|
389
392
|
"ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid",
|
|
390
393
|
"ds:focus-visible:outline-[var(--ring)] ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
|
|
391
394
|
"ds:transition-colors ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none"
|
|
392
|
-
].join(" "),
|
|
395
|
+
].join(" "), Q = [
|
|
393
396
|
"ds:inline-flex ds:shrink-0 ds:items-center ds:justify-center",
|
|
394
397
|
"ds:size-4",
|
|
395
398
|
"ds:text-[var(--accent)]",
|
|
@@ -399,22 +402,22 @@ const Bs = [
|
|
|
399
402
|
label: e,
|
|
400
403
|
icon: a,
|
|
401
404
|
collapsible: r = !0,
|
|
402
|
-
defaultOpen:
|
|
403
|
-
open:
|
|
404
|
-
onOpenChange:
|
|
405
|
-
className:
|
|
406
|
-
children:
|
|
407
|
-
...
|
|
408
|
-
},
|
|
409
|
-
const { mode:
|
|
405
|
+
defaultOpen: n = !0,
|
|
406
|
+
open: t,
|
|
407
|
+
onOpenChange: l,
|
|
408
|
+
className: o,
|
|
409
|
+
children: i,
|
|
410
|
+
...m
|
|
411
|
+
}, p) => {
|
|
412
|
+
const { mode: f } = y(), h = f === "icon", w = r && !h && !!e, x = [
|
|
410
413
|
"ds:flex ds:flex-col",
|
|
411
414
|
"ds:gap-[var(--spacing-xs)]",
|
|
412
415
|
"ds:mt-[var(--spacing-sm)]",
|
|
413
|
-
|
|
416
|
+
o ?? ""
|
|
414
417
|
].filter(Boolean).join(" ");
|
|
415
|
-
if (!
|
|
416
|
-
return /* @__PURE__ */
|
|
417
|
-
!!e || !!a ? /* @__PURE__ */
|
|
418
|
+
if (!w)
|
|
419
|
+
return /* @__PURE__ */ u("div", { ref: p, className: x, ...m, children: [
|
|
420
|
+
!!e || !!a ? /* @__PURE__ */ u(
|
|
418
421
|
"span",
|
|
419
422
|
{
|
|
420
423
|
className: [
|
|
@@ -426,26 +429,26 @@ const Bs = [
|
|
|
426
429
|
h && !a ? "ds:sr-only" : ""
|
|
427
430
|
].filter(Boolean).join(" "),
|
|
428
431
|
children: [
|
|
429
|
-
a ? /* @__PURE__ */ s("span", { "aria-hidden": "true", className:
|
|
432
|
+
a ? /* @__PURE__ */ s("span", { "aria-hidden": "true", className: Q, children: a }) : null,
|
|
430
433
|
e ? /* @__PURE__ */ s("span", { className: h ? "ds:sr-only" : "", children: e }) : null
|
|
431
434
|
]
|
|
432
435
|
}
|
|
433
436
|
) : null,
|
|
434
|
-
|
|
437
|
+
i
|
|
435
438
|
] });
|
|
436
439
|
const d = "section";
|
|
437
440
|
return /* @__PURE__ */ s(
|
|
438
|
-
|
|
441
|
+
E.Root,
|
|
439
442
|
{
|
|
440
443
|
type: "single",
|
|
441
444
|
collapsible: !0,
|
|
442
|
-
defaultValue:
|
|
443
|
-
value:
|
|
444
|
-
onValueChange:
|
|
445
|
+
defaultValue: t === void 0 && n ? d : void 0,
|
|
446
|
+
value: t === void 0 ? void 0 : t ? d : "",
|
|
447
|
+
onValueChange: l ? (N) => l(N === d) : void 0,
|
|
445
448
|
asChild: !0,
|
|
446
|
-
children: /* @__PURE__ */ s("div", { ref:
|
|
447
|
-
/* @__PURE__ */ s(
|
|
448
|
-
a ? /* @__PURE__ */ s("span", { "aria-hidden": "true", className:
|
|
449
|
+
children: /* @__PURE__ */ s("div", { ref: p, className: x, ...m, children: /* @__PURE__ */ u(E.Item, { value: d, children: [
|
|
450
|
+
/* @__PURE__ */ s(E.Header, { className: "ds:flex", children: /* @__PURE__ */ u(E.Trigger, { className: Ds, children: [
|
|
451
|
+
a ? /* @__PURE__ */ s("span", { "aria-hidden": "true", className: Q, children: a }) : null,
|
|
449
452
|
/* @__PURE__ */ s("span", { className: "ds:flex-1 ds:text-start", children: e }),
|
|
450
453
|
/* @__PURE__ */ s(
|
|
451
454
|
H,
|
|
@@ -456,11 +459,11 @@ const Bs = [
|
|
|
456
459
|
)
|
|
457
460
|
] }) }),
|
|
458
461
|
/* @__PURE__ */ s(
|
|
459
|
-
|
|
462
|
+
ts,
|
|
460
463
|
{
|
|
461
464
|
"aria-label": e,
|
|
462
465
|
className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)] ds:[&>div]:contents",
|
|
463
|
-
children:
|
|
466
|
+
children: i
|
|
464
467
|
}
|
|
465
468
|
)
|
|
466
469
|
] }) })
|
|
@@ -469,7 +472,7 @@ const Bs = [
|
|
|
469
472
|
}
|
|
470
473
|
);
|
|
471
474
|
as.displayName = "SidebarSection";
|
|
472
|
-
const
|
|
475
|
+
const As = [
|
|
473
476
|
"ds:group ds:flex ds:w-full ds:items-center ds:gap-[var(--spacing-sm)]",
|
|
474
477
|
"ds:min-h-[var(--min-target-size)]",
|
|
475
478
|
"ds:ps-[var(--spacing-sm)] ds:pe-[var(--spacing-sm)]",
|
|
@@ -480,29 +483,29 @@ const Ds = [
|
|
|
480
483
|
"ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid",
|
|
481
484
|
"ds:focus-visible:outline-[var(--ring)] ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
|
|
482
485
|
"ds:transition-colors ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none"
|
|
483
|
-
].join(" "),
|
|
486
|
+
].join(" "), _s = g(
|
|
484
487
|
({
|
|
485
488
|
label: e,
|
|
486
489
|
icon: a,
|
|
487
490
|
children: r,
|
|
488
|
-
className:
|
|
489
|
-
defaultOpen:
|
|
490
|
-
open:
|
|
491
|
-
onOpenChange:
|
|
492
|
-
...
|
|
493
|
-
},
|
|
494
|
-
const { mode:
|
|
495
|
-
return /* @__PURE__ */
|
|
491
|
+
className: n,
|
|
492
|
+
defaultOpen: t,
|
|
493
|
+
open: l,
|
|
494
|
+
onOpenChange: o,
|
|
495
|
+
...i
|
|
496
|
+
}, m) => {
|
|
497
|
+
const { mode: p } = y();
|
|
498
|
+
return /* @__PURE__ */ u(
|
|
496
499
|
K.Root,
|
|
497
500
|
{
|
|
498
|
-
ref:
|
|
499
|
-
defaultOpen:
|
|
500
|
-
open:
|
|
501
|
-
onOpenChange:
|
|
502
|
-
className:
|
|
503
|
-
...
|
|
501
|
+
ref: m,
|
|
502
|
+
defaultOpen: t,
|
|
503
|
+
open: l,
|
|
504
|
+
onOpenChange: o,
|
|
505
|
+
className: n,
|
|
506
|
+
...i,
|
|
504
507
|
children: [
|
|
505
|
-
/* @__PURE__ */
|
|
508
|
+
/* @__PURE__ */ u(K.Trigger, { className: As, children: [
|
|
506
509
|
a ? /* @__PURE__ */ s(
|
|
507
510
|
"span",
|
|
508
511
|
{
|
|
@@ -516,12 +519,12 @@ const Ds = [
|
|
|
516
519
|
{
|
|
517
520
|
className: [
|
|
518
521
|
"ds:flex-1 ds:text-start",
|
|
519
|
-
|
|
522
|
+
p === "icon" ? "ds:sr-only" : ""
|
|
520
523
|
].join(" "),
|
|
521
524
|
children: e
|
|
522
525
|
}
|
|
523
526
|
),
|
|
524
|
-
|
|
527
|
+
p !== "icon" ? /* @__PURE__ */ s(
|
|
525
528
|
H,
|
|
526
529
|
{
|
|
527
530
|
"aria-hidden": "true",
|
|
@@ -546,8 +549,8 @@ const Ds = [
|
|
|
546
549
|
);
|
|
547
550
|
}
|
|
548
551
|
);
|
|
549
|
-
|
|
550
|
-
const
|
|
552
|
+
_s.displayName = "SidebarGroup";
|
|
553
|
+
const Ps = T(
|
|
551
554
|
[
|
|
552
555
|
// Every row is a pin-hover parent so inline pin / reorder affordances can
|
|
553
556
|
// fade in on hover of the whole row — keep `group/item` on this selector.
|
|
@@ -608,56 +611,55 @@ const Es = T(
|
|
|
608
611
|
isActive: !1
|
|
609
612
|
}
|
|
610
613
|
}
|
|
611
|
-
), rs = g(
|
|
614
|
+
), rs = W(null), ds = g(
|
|
612
615
|
({
|
|
613
616
|
asChild: e = !1,
|
|
614
617
|
isActive: a = !1,
|
|
615
618
|
isPinned: r = !1,
|
|
616
|
-
onPinChange:
|
|
617
|
-
pinLabel:
|
|
618
|
-
className:
|
|
619
|
-
children:
|
|
620
|
-
"aria-label":
|
|
621
|
-
...
|
|
622
|
-
},
|
|
623
|
-
const { mode:
|
|
624
|
-
|
|
619
|
+
onPinChange: n,
|
|
620
|
+
pinLabel: t,
|
|
621
|
+
className: l,
|
|
622
|
+
children: o,
|
|
623
|
+
"aria-label": i,
|
|
624
|
+
...m
|
|
625
|
+
}, p) => {
|
|
626
|
+
const { mode: f, density: h } = y(), w = e ? os : "a", x = n !== void 0 && f !== "icon", [d, N] = R(null), z = f === "icon" && i != null && d ? `${i}, ${d}` : i, c = /* @__PURE__ */ s(
|
|
627
|
+
w,
|
|
625
628
|
{
|
|
626
|
-
ref:
|
|
629
|
+
ref: p,
|
|
627
630
|
"aria-current": a ? "page" : void 0,
|
|
628
|
-
"aria-label":
|
|
629
|
-
className:
|
|
630
|
-
mode:
|
|
631
|
+
"aria-label": z,
|
|
632
|
+
className: Ps({
|
|
633
|
+
mode: f,
|
|
631
634
|
density: h,
|
|
632
635
|
isActive: a,
|
|
633
|
-
className: x ? "ds:flex-1 ds:min-w-0" :
|
|
636
|
+
className: x ? "ds:flex-1 ds:min-w-0" : l
|
|
634
637
|
}),
|
|
635
|
-
...
|
|
636
|
-
children:
|
|
638
|
+
...m,
|
|
639
|
+
children: o
|
|
637
640
|
}
|
|
638
|
-
),
|
|
641
|
+
), S = x ? /* @__PURE__ */ u(
|
|
639
642
|
"div",
|
|
640
643
|
{
|
|
641
644
|
className: [
|
|
642
645
|
"ds:group/item ds:flex ds:items-center ds:gap-[var(--spacing-2xs)]",
|
|
643
|
-
|
|
646
|
+
l ?? ""
|
|
644
647
|
].filter(Boolean).join(" "),
|
|
645
648
|
children: [
|
|
646
|
-
|
|
649
|
+
c,
|
|
647
650
|
/* @__PURE__ */ s(
|
|
648
|
-
|
|
651
|
+
Y,
|
|
649
652
|
{
|
|
650
653
|
isPinned: r,
|
|
651
|
-
label:
|
|
652
|
-
onPinChange:
|
|
654
|
+
label: t ?? i ?? "",
|
|
655
|
+
onPinChange: n
|
|
653
656
|
}
|
|
654
657
|
)
|
|
655
658
|
]
|
|
656
659
|
}
|
|
657
|
-
) :
|
|
658
|
-
|
|
659
|
-
/* @__PURE__ */ s(b.
|
|
660
|
-
/* @__PURE__ */ s(b.Portal, { children: /* @__PURE__ */ c(
|
|
660
|
+
) : c, j = f === "icon" && i ? /* @__PURE__ */ u(b.Root, { children: [
|
|
661
|
+
/* @__PURE__ */ s(b.Trigger, { asChild: !0, children: S }),
|
|
662
|
+
/* @__PURE__ */ s(b.Portal, { children: /* @__PURE__ */ u(
|
|
661
663
|
b.Content,
|
|
662
664
|
{
|
|
663
665
|
side: "right",
|
|
@@ -670,19 +672,20 @@ const Es = T(
|
|
|
670
672
|
"ds:animate-in ds:fade-in ds:zoom-in-95 ds:motion-reduce:animate-none"
|
|
671
673
|
].join(" "),
|
|
672
674
|
children: [
|
|
673
|
-
|
|
675
|
+
i,
|
|
674
676
|
/* @__PURE__ */ s(b.Arrow, { className: "ds:fill-[var(--foreground)]" })
|
|
675
677
|
]
|
|
676
678
|
}
|
|
677
679
|
) })
|
|
678
|
-
] }) :
|
|
680
|
+
] }) : S;
|
|
681
|
+
return /* @__PURE__ */ s(rs.Provider, { value: N, children: j });
|
|
679
682
|
}
|
|
680
683
|
);
|
|
681
|
-
|
|
682
|
-
const
|
|
684
|
+
ds.displayName = "SidebarItem";
|
|
685
|
+
const Es = g(({ className: e, children: a, ...r }, n) => /* @__PURE__ */ s(
|
|
683
686
|
"span",
|
|
684
687
|
{
|
|
685
|
-
ref:
|
|
688
|
+
ref: n,
|
|
686
689
|
"aria-hidden": "true",
|
|
687
690
|
className: [
|
|
688
691
|
"ds:inline-flex ds:shrink-0 ds:items-center ds:justify-center",
|
|
@@ -700,18 +703,18 @@ const Ps = g(({ className: e, children: a, ...r }, i) => /* @__PURE__ */ s(
|
|
|
700
703
|
children: a
|
|
701
704
|
}
|
|
702
705
|
));
|
|
703
|
-
|
|
704
|
-
const
|
|
705
|
-
const { mode:
|
|
706
|
+
Es.displayName = "SidebarItemIcon";
|
|
707
|
+
const Hs = g(({ className: e, children: a, ...r }, n) => {
|
|
708
|
+
const { mode: t } = y();
|
|
706
709
|
return /* @__PURE__ */ s(
|
|
707
710
|
"span",
|
|
708
711
|
{
|
|
709
|
-
ref:
|
|
712
|
+
ref: n,
|
|
710
713
|
className: [
|
|
711
714
|
"ds:flex-1",
|
|
712
715
|
"ds:overflow-hidden ds:text-ellipsis ds:whitespace-nowrap ds:break-normal",
|
|
713
716
|
"ds:text-start",
|
|
714
|
-
|
|
717
|
+
t === "icon" ? "ds:sr-only" : "",
|
|
715
718
|
e ?? ""
|
|
716
719
|
].filter(Boolean).join(" "),
|
|
717
720
|
...r,
|
|
@@ -719,18 +722,22 @@ const _s = g(({ className: e, children: a, ...r }, i) => {
|
|
|
719
722
|
}
|
|
720
723
|
);
|
|
721
724
|
});
|
|
722
|
-
|
|
723
|
-
const
|
|
724
|
-
const { mode:
|
|
725
|
-
return
|
|
725
|
+
Hs.displayName = "SidebarItemLabel";
|
|
726
|
+
const Fs = g(({ className: e, children: a, ...r }, n) => {
|
|
727
|
+
const { mode: t } = y(), l = t === "icon", o = Z(rs);
|
|
728
|
+
return U(() => {
|
|
729
|
+
if (!o || !l) return;
|
|
730
|
+
const i = a == null || a === !1 ? null : String(a).trim() || null;
|
|
731
|
+
return o(i), () => o(null);
|
|
732
|
+
}, [o, a, l]), /* @__PURE__ */ s(
|
|
726
733
|
"span",
|
|
727
734
|
{
|
|
728
|
-
ref:
|
|
729
|
-
"aria-hidden":
|
|
735
|
+
ref: n,
|
|
736
|
+
"aria-hidden": l ? "true" : void 0,
|
|
730
737
|
className: [
|
|
731
738
|
"ds:inline-flex ds:items-center ds:justify-center",
|
|
732
739
|
"ds:font-[var(--font-weight-semibold)]",
|
|
733
|
-
|
|
740
|
+
l ? [
|
|
734
741
|
"ds:absolute ds:top-[2px] ds:end-[2px]",
|
|
735
742
|
"ds:min-w-0 ds:size-[10px] ds:ps-0 ds:pe-0",
|
|
736
743
|
"ds:rounded-[var(--radius-full)]",
|
|
@@ -751,8 +758,8 @@ const Hs = g(({ className: e, children: a, ...r }, i) => {
|
|
|
751
758
|
}
|
|
752
759
|
);
|
|
753
760
|
});
|
|
754
|
-
|
|
755
|
-
const
|
|
761
|
+
Fs.displayName = "SidebarItemBadge";
|
|
762
|
+
const Ms = T(
|
|
756
763
|
[
|
|
757
764
|
"ds:flex ds:items-center ds:gap-[var(--spacing-sm)]",
|
|
758
765
|
"ds:min-h-[var(--min-target-size)]",
|
|
@@ -765,16 +772,16 @@ const Fs = T(
|
|
|
765
772
|
"ds:forced-colors:focus-visible:outline-[CanvasText]",
|
|
766
773
|
"ds:no-underline"
|
|
767
774
|
].join(" ")
|
|
768
|
-
), Ls = g(({ logo: e, name: a, showChevron: r = !0, className:
|
|
769
|
-
const { mode:
|
|
770
|
-
return /* @__PURE__ */
|
|
775
|
+
), Ls = g(({ logo: e, name: a, showChevron: r = !0, className: n, ...t }, l) => {
|
|
776
|
+
const { mode: o } = y(), i = o !== "icon";
|
|
777
|
+
return /* @__PURE__ */ u(
|
|
771
778
|
"button",
|
|
772
779
|
{
|
|
773
|
-
ref:
|
|
780
|
+
ref: l,
|
|
774
781
|
type: "button",
|
|
775
782
|
"aria-label": a,
|
|
776
|
-
className: [
|
|
777
|
-
...
|
|
783
|
+
className: [Ms(), n].filter(Boolean).join(" "),
|
|
784
|
+
...t,
|
|
778
785
|
children: [
|
|
779
786
|
/* @__PURE__ */ s(
|
|
780
787
|
"span",
|
|
@@ -784,7 +791,7 @@ const Fs = T(
|
|
|
784
791
|
children: e
|
|
785
792
|
}
|
|
786
793
|
),
|
|
787
|
-
|
|
794
|
+
i ? /* @__PURE__ */ u(q, { children: [
|
|
788
795
|
/* @__PURE__ */ s("span", { className: "ds:truncate ds:flex-1 ds:text-start ds:max-w-[var(--header-workspace-max-inline-size)]", children: a }),
|
|
789
796
|
r ? /* @__PURE__ */ s(
|
|
790
797
|
H,
|
|
@@ -799,7 +806,7 @@ const Fs = T(
|
|
|
799
806
|
);
|
|
800
807
|
});
|
|
801
808
|
Ls.displayName = "SidebarWorkspaceSwitcher";
|
|
802
|
-
const
|
|
809
|
+
const Vs = T(
|
|
803
810
|
[
|
|
804
811
|
"ds:flex ds:items-center ds:justify-center ds:gap-[var(--spacing-xs)]",
|
|
805
812
|
"ds:min-h-[var(--min-target-size)]",
|
|
@@ -822,17 +829,17 @@ const Ms = T(
|
|
|
822
829
|
},
|
|
823
830
|
defaultVariants: { mode: "expanded" }
|
|
824
831
|
}
|
|
825
|
-
),
|
|
826
|
-
const { mode:
|
|
827
|
-
return /* @__PURE__ */
|
|
832
|
+
), Ks = g(({ icon: e, label: a, shortcut: r, className: n, ...t }, l) => {
|
|
833
|
+
const { mode: o } = y(), i = o !== "icon";
|
|
834
|
+
return /* @__PURE__ */ u(
|
|
828
835
|
"button",
|
|
829
836
|
{
|
|
830
|
-
ref:
|
|
837
|
+
ref: l,
|
|
831
838
|
type: "button",
|
|
832
839
|
"aria-label": a,
|
|
833
840
|
"aria-keyshortcuts": r,
|
|
834
|
-
className: [
|
|
835
|
-
...
|
|
841
|
+
className: [Vs({ mode: o }), n].filter(Boolean).join(" "),
|
|
842
|
+
...t,
|
|
836
843
|
children: [
|
|
837
844
|
/* @__PURE__ */ s(
|
|
838
845
|
"span",
|
|
@@ -842,7 +849,7 @@ const Ms = T(
|
|
|
842
849
|
children: e
|
|
843
850
|
}
|
|
844
851
|
),
|
|
845
|
-
|
|
852
|
+
i ? /* @__PURE__ */ u(q, { children: [
|
|
846
853
|
/* @__PURE__ */ s("span", { className: "ds:truncate", children: a }),
|
|
847
854
|
r ? /* @__PURE__ */ s("kbd", { className: "ds:ms-auto ds:text-[length:var(--font-size-xs)] ds:font-[family-name:var(--font-mono)] ds:opacity-80", children: r }) : null
|
|
848
855
|
] }) : null
|
|
@@ -850,8 +857,8 @@ const Ms = T(
|
|
|
850
857
|
}
|
|
851
858
|
);
|
|
852
859
|
});
|
|
853
|
-
|
|
854
|
-
const
|
|
860
|
+
Ks.displayName = "SidebarPrimaryAction";
|
|
861
|
+
const Us = [
|
|
855
862
|
"ds:inline-flex ds:items-center ds:justify-center ds:shrink-0",
|
|
856
863
|
"ds:size-6 ds:rounded-[var(--radius-sm)]",
|
|
857
864
|
// Lift above the Sidebar's opt-in resize handle (z-[2]). When `resizable`,
|
|
@@ -875,25 +882,25 @@ const Ks = [
|
|
|
875
882
|
"ds:forced-colors:focus-visible:outline-[CanvasText]",
|
|
876
883
|
"ds:transition-[color,opacity,background-color] ds:duration-[var(--animation-duration)]",
|
|
877
884
|
"ds:motion-reduce:transition-none"
|
|
878
|
-
].join(" "),
|
|
879
|
-
({ isPinned: e, onPinChange: a, label: r, className:
|
|
880
|
-
const { t:
|
|
881
|
-
if (
|
|
882
|
-
const
|
|
885
|
+
].join(" "), Y = g(
|
|
886
|
+
({ isPinned: e, onPinChange: a, label: r, className: n, onClick: t, ...l }, o) => {
|
|
887
|
+
const { t: i } = D(), { mode: m } = y();
|
|
888
|
+
if (m === "icon") return null;
|
|
889
|
+
const p = e ? i("navigation.sidebar.unpinItem", "Unpin {{label}}", { label: r }) : i("navigation.sidebar.pinItem", "Pin {{label}}", { label: r });
|
|
883
890
|
return /* @__PURE__ */ s(
|
|
884
891
|
"button",
|
|
885
892
|
{
|
|
886
|
-
ref:
|
|
893
|
+
ref: o,
|
|
887
894
|
type: "button",
|
|
888
|
-
"aria-label":
|
|
895
|
+
"aria-label": p,
|
|
889
896
|
"aria-pressed": e,
|
|
890
|
-
className: [
|
|
891
|
-
onClick: (
|
|
892
|
-
|
|
897
|
+
className: [Us, n].filter(Boolean).join(" "),
|
|
898
|
+
onClick: (f) => {
|
|
899
|
+
f.preventDefault(), f.stopPropagation(), a == null || a(!e), t == null || t(f);
|
|
893
900
|
},
|
|
894
|
-
...
|
|
901
|
+
...l,
|
|
895
902
|
children: /* @__PURE__ */ s(
|
|
896
|
-
|
|
903
|
+
fs,
|
|
897
904
|
{
|
|
898
905
|
"aria-hidden": "true",
|
|
899
906
|
className: "ds:size-4",
|
|
@@ -904,24 +911,24 @@ const Ks = [
|
|
|
904
911
|
);
|
|
905
912
|
}
|
|
906
913
|
);
|
|
907
|
-
|
|
908
|
-
const
|
|
909
|
-
({ heading: e, emptyMessage: a, onReorder: r, className:
|
|
910
|
-
const { t:
|
|
911
|
-
z.current = !z.current,
|
|
914
|
+
Y.displayName = "SidebarPinButton";
|
|
915
|
+
const ns = W(null), $s = () => Z(ns), Os = g(
|
|
916
|
+
({ heading: e, emptyMessage: a, onReorder: r, className: n, children: t, ...l }, o) => {
|
|
917
|
+
const { t: i } = D(), m = e ?? i("navigation.sidebar.favorites", "Favourites"), p = Array.isArray(t) ? t.filter(Boolean) : t ? [t] : [], f = p.length, h = f > 0, [w, x] = R(null), [d, N] = R(""), z = $(!1), c = ss((j) => {
|
|
918
|
+
z.current = !z.current, N(z.current ? j : `${j}`);
|
|
912
919
|
}, []), S = O(
|
|
913
|
-
() => ({ onReorder: r, count:
|
|
914
|
-
[r,
|
|
920
|
+
() => ({ onReorder: r, count: f, dragSource: w, setDragSource: x, announce: c }),
|
|
921
|
+
[r, f, w, c]
|
|
915
922
|
);
|
|
916
|
-
return !h && !a ? null : /* @__PURE__ */ s(
|
|
923
|
+
return !h && !a ? null : /* @__PURE__ */ s(ns.Provider, { value: S, children: /* @__PURE__ */ u(
|
|
917
924
|
as,
|
|
918
925
|
{
|
|
919
|
-
ref:
|
|
920
|
-
label:
|
|
921
|
-
className:
|
|
922
|
-
...
|
|
926
|
+
ref: o,
|
|
927
|
+
label: m,
|
|
928
|
+
className: n,
|
|
929
|
+
...l,
|
|
923
930
|
children: [
|
|
924
|
-
h ?
|
|
931
|
+
h ? p : /* @__PURE__ */ s("p", { className: "ds:ps-[var(--spacing-sm)] ds:pe-[var(--spacing-sm)] type-meta ds:text-[color:var(--muted-foreground)]", children: a }),
|
|
925
932
|
/* @__PURE__ */ s("span", { role: "status", "aria-live": "polite", className: "ds:sr-only", children: d })
|
|
926
933
|
]
|
|
927
934
|
}
|
|
@@ -948,7 +955,7 @@ const Gs = T(
|
|
|
948
955
|
},
|
|
949
956
|
defaultVariants: { dragging: !1, dropTarget: !1 }
|
|
950
957
|
}
|
|
951
|
-
),
|
|
958
|
+
), qs = [
|
|
952
959
|
"ds:inline-flex ds:items-center ds:justify-center ds:shrink-0",
|
|
953
960
|
"ds:size-6 ds:rounded-[var(--radius-sm)]",
|
|
954
961
|
"ds:cursor-grab ds:active:cursor-grabbing",
|
|
@@ -962,93 +969,93 @@ const Gs = T(
|
|
|
962
969
|
"ds:focus-visible:outline-[var(--ring)] ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
|
|
963
970
|
"ds:forced-colors:focus-visible:outline-[CanvasText]",
|
|
964
971
|
"ds:transition-[color,opacity,background-color] ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none"
|
|
965
|
-
].join(" "),
|
|
972
|
+
].join(" "), Zs = g(
|
|
966
973
|
({
|
|
967
974
|
index: e,
|
|
968
975
|
isActive: a = !1,
|
|
969
976
|
asChild: r = !1,
|
|
970
|
-
reorderLabel:
|
|
971
|
-
isPinned:
|
|
972
|
-
onPinChange:
|
|
973
|
-
pinLabel:
|
|
974
|
-
"aria-label":
|
|
975
|
-
className:
|
|
976
|
-
children:
|
|
977
|
-
...
|
|
977
|
+
reorderLabel: n,
|
|
978
|
+
isPinned: t = !1,
|
|
979
|
+
onPinChange: l,
|
|
980
|
+
pinLabel: o,
|
|
981
|
+
"aria-label": i,
|
|
982
|
+
className: m,
|
|
983
|
+
children: p,
|
|
984
|
+
...f
|
|
978
985
|
}, h) => {
|
|
979
|
-
const { t:
|
|
986
|
+
const { t: w } = D(), { mode: x } = y(), d = $s(), [N, z] = R(!1), c = !!(d != null && d.onReorder) && x !== "icon", S = n ?? i ?? "", j = is(), C = (v, I) => {
|
|
980
987
|
if (!(d != null && d.onReorder)) return;
|
|
981
988
|
const V = Math.max(0, Math.min(d.count - 1, I));
|
|
982
|
-
V !==
|
|
983
|
-
|
|
989
|
+
V !== v && (d.onReorder(v, V), d.announce(
|
|
990
|
+
w(
|
|
984
991
|
"navigation.sidebar.reorderAnnounce",
|
|
985
992
|
"{{label}} moved to position {{to}} of {{total}}",
|
|
986
993
|
{ label: S, to: V + 1, total: d.count }
|
|
987
994
|
)
|
|
988
995
|
));
|
|
989
|
-
}, F = (
|
|
990
|
-
|
|
991
|
-
},
|
|
992
|
-
|
|
993
|
-
},
|
|
996
|
+
}, F = (v) => {
|
|
997
|
+
c && (v.altKey && v.key === "ArrowUp" ? (v.preventDefault(), C(e, e - 1)) : v.altKey && v.key === "ArrowDown" ? (v.preventDefault(), C(e, e + 1)) : v.key === "Home" && v.altKey ? (v.preventDefault(), C(e, 0)) : v.key === "End" && v.altKey && (v.preventDefault(), C(e, d.count - 1)));
|
|
998
|
+
}, A = (v) => {
|
|
999
|
+
c && (d == null || d.setDragSource(e), v.dataTransfer && (v.dataTransfer.effectAllowed = "move", v.dataTransfer.setData("ds:text/plain", String(e))));
|
|
1000
|
+
}, _ = () => {
|
|
994
1001
|
d == null || d.setDragSource(null), z(!1);
|
|
995
|
-
},
|
|
996
|
-
!
|
|
997
|
-
},
|
|
998
|
-
if (!
|
|
999
|
-
|
|
1002
|
+
}, M = (v) => {
|
|
1003
|
+
!c || (d == null ? void 0 : d.dragSource) === null || (v.preventDefault(), v.dataTransfer && (v.dataTransfer.dropEffect = "move"), z(!0));
|
|
1004
|
+
}, P = () => z(!1), L = (v) => {
|
|
1005
|
+
if (!c) return;
|
|
1006
|
+
v.preventDefault();
|
|
1000
1007
|
const I = d == null ? void 0 : d.dragSource;
|
|
1001
|
-
z(!1), !(I == null || I === e) &&
|
|
1002
|
-
},
|
|
1003
|
-
return /* @__PURE__ */
|
|
1008
|
+
z(!1), !(I == null || I === e) && C(I, e);
|
|
1009
|
+
}, k = (d == null ? void 0 : d.dragSource) === e;
|
|
1010
|
+
return /* @__PURE__ */ u(
|
|
1004
1011
|
"div",
|
|
1005
1012
|
{
|
|
1006
1013
|
className: Gs({
|
|
1007
|
-
dragging:
|
|
1008
|
-
dropTarget:
|
|
1014
|
+
dragging: k,
|
|
1015
|
+
dropTarget: N && !k
|
|
1009
1016
|
}),
|
|
1010
|
-
draggable:
|
|
1011
|
-
onDragStart:
|
|
1012
|
-
onDragEnd:
|
|
1013
|
-
onDragOver:
|
|
1014
|
-
onDragLeave:
|
|
1015
|
-
onDrop:
|
|
1017
|
+
draggable: c || void 0,
|
|
1018
|
+
onDragStart: c ? A : void 0,
|
|
1019
|
+
onDragEnd: c ? _ : void 0,
|
|
1020
|
+
onDragOver: M,
|
|
1021
|
+
onDragLeave: P,
|
|
1022
|
+
onDrop: L,
|
|
1016
1023
|
children: [
|
|
1017
1024
|
/* @__PURE__ */ s(
|
|
1018
|
-
|
|
1025
|
+
ds,
|
|
1019
1026
|
{
|
|
1020
1027
|
ref: h,
|
|
1021
1028
|
isActive: a,
|
|
1022
1029
|
asChild: r,
|
|
1023
|
-
"aria-label":
|
|
1024
|
-
"aria-describedby":
|
|
1025
|
-
draggable:
|
|
1026
|
-
className: [
|
|
1027
|
-
...
|
|
1028
|
-
children:
|
|
1030
|
+
"aria-label": i,
|
|
1031
|
+
"aria-describedby": c ? j : void 0,
|
|
1032
|
+
draggable: c ? !1 : void 0,
|
|
1033
|
+
className: [c ? "ds:flex-1 ds:min-w-0" : "", m ?? ""].filter(Boolean).join(" "),
|
|
1034
|
+
...f,
|
|
1035
|
+
children: p
|
|
1029
1036
|
}
|
|
1030
1037
|
),
|
|
1031
|
-
|
|
1038
|
+
c ? /* @__PURE__ */ s(
|
|
1032
1039
|
"button",
|
|
1033
1040
|
{
|
|
1034
1041
|
type: "button",
|
|
1035
1042
|
id: j,
|
|
1036
|
-
"aria-label":
|
|
1043
|
+
"aria-label": w(
|
|
1037
1044
|
"navigation.sidebar.reorderHandle",
|
|
1038
1045
|
"Reorder {{label}}. Press Alt + Up or Alt + Down to move.",
|
|
1039
1046
|
{ label: S }
|
|
1040
1047
|
),
|
|
1041
|
-
className:
|
|
1048
|
+
className: qs,
|
|
1042
1049
|
onKeyDown: F,
|
|
1043
|
-
children: /* @__PURE__ */ s(
|
|
1050
|
+
children: /* @__PURE__ */ s(vs, { "aria-hidden": "true", className: "ds:size-4" })
|
|
1044
1051
|
}
|
|
1045
1052
|
) : null,
|
|
1046
|
-
|
|
1047
|
-
|
|
1053
|
+
l && x !== "icon" ? /* @__PURE__ */ s(
|
|
1054
|
+
Y,
|
|
1048
1055
|
{
|
|
1049
|
-
isPinned:
|
|
1050
|
-
label:
|
|
1051
|
-
onPinChange:
|
|
1056
|
+
isPinned: t,
|
|
1057
|
+
label: o ?? i ?? "",
|
|
1058
|
+
onPinChange: l
|
|
1052
1059
|
}
|
|
1053
1060
|
) : null
|
|
1054
1061
|
]
|
|
@@ -1056,8 +1063,8 @@ const Gs = T(
|
|
|
1056
1063
|
);
|
|
1057
1064
|
}
|
|
1058
1065
|
);
|
|
1059
|
-
|
|
1060
|
-
const
|
|
1066
|
+
Zs.displayName = "SidebarFavoriteItem";
|
|
1067
|
+
const Ws = T(
|
|
1061
1068
|
[
|
|
1062
1069
|
"ds:flex ds:items-center ds:gap-[var(--spacing-sm)]",
|
|
1063
1070
|
"ds:min-h-[var(--min-target-size)]",
|
|
@@ -1070,16 +1077,16 @@ const Zs = T(
|
|
|
1070
1077
|
"ds:forced-colors:focus-visible:outline-[CanvasText]",
|
|
1071
1078
|
"ds:no-underline"
|
|
1072
1079
|
].join(" ")
|
|
1073
|
-
),
|
|
1074
|
-
const { mode:
|
|
1075
|
-
return /* @__PURE__ */
|
|
1080
|
+
), Xs = g(({ avatar: e, name: a, subtitle: r, subtitleLabel: n, className: t, ...l }, o) => {
|
|
1081
|
+
const { mode: i } = y(), m = i !== "icon", p = typeof r == "string" ? r : n;
|
|
1082
|
+
return /* @__PURE__ */ u(
|
|
1076
1083
|
"button",
|
|
1077
1084
|
{
|
|
1078
|
-
ref:
|
|
1085
|
+
ref: o,
|
|
1079
1086
|
type: "button",
|
|
1080
|
-
"aria-label":
|
|
1081
|
-
className: [
|
|
1082
|
-
...
|
|
1087
|
+
"aria-label": p ? `${a}, ${p}` : a,
|
|
1088
|
+
className: [Ws(), t].filter(Boolean).join(" "),
|
|
1089
|
+
...l,
|
|
1083
1090
|
children: [
|
|
1084
1091
|
/* @__PURE__ */ s(
|
|
1085
1092
|
"span",
|
|
@@ -1089,7 +1096,7 @@ const Zs = T(
|
|
|
1089
1096
|
children: e
|
|
1090
1097
|
}
|
|
1091
1098
|
),
|
|
1092
|
-
|
|
1099
|
+
m ? /* @__PURE__ */ u("span", { className: "ds:flex-1 ds:min-w-0 ds:text-start", children: [
|
|
1093
1100
|
/* @__PURE__ */ s("span", { className: "ds:block ds:truncate type-label", children: a }),
|
|
1094
1101
|
r ? typeof r == "string" ? /* @__PURE__ */ s("span", { className: "ds:block ds:truncate type-meta ds:text-[color:var(--muted-foreground)]", children: r }) : /* @__PURE__ */ s("span", { className: "ds:flex ds:items-center ds:gap-[length:var(--spacing-xs)] ds:min-w-0 type-meta ds:text-[color:var(--muted-foreground)]", children: r }) : null
|
|
1095
1102
|
] }) : null
|
|
@@ -1097,8 +1104,8 @@ const Zs = T(
|
|
|
1097
1104
|
}
|
|
1098
1105
|
);
|
|
1099
1106
|
});
|
|
1100
|
-
|
|
1101
|
-
const
|
|
1107
|
+
Xs.displayName = "SidebarProfilePill";
|
|
1108
|
+
const Ys = [
|
|
1102
1109
|
"ds:inline-flex ds:items-center ds:justify-center ds:shrink-0",
|
|
1103
1110
|
"ds:min-w-[var(--min-target-size)] ds:min-h-[var(--min-target-size)]",
|
|
1104
1111
|
"ds:rounded-[var(--radius-sm)]",
|
|
@@ -1108,29 +1115,29 @@ const Xs = [
|
|
|
1108
1115
|
"ds:focus-visible:outline-[var(--ring)] ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
|
|
1109
1116
|
"ds:forced-colors:focus-visible:outline-[CanvasText]",
|
|
1110
1117
|
"ds:transition-colors ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none"
|
|
1111
|
-
].join(" "),
|
|
1112
|
-
const { t } =
|
|
1113
|
-
if (
|
|
1114
|
-
const
|
|
1118
|
+
].join(" "), Js = g(({ className: e, "aria-label": a, onClick: r, ...n }, t) => {
|
|
1119
|
+
const { t: l } = D(), { mode: o, transitionTo: i } = y();
|
|
1120
|
+
if (o === "overlay") return null;
|
|
1121
|
+
const m = o === "expanded", p = a ?? (m ? l("navigation.sidebar.collapse", "Collapse sidebar") : l("navigation.sidebar.expand", "Expand sidebar")), f = /* @__PURE__ */ s(
|
|
1115
1122
|
"button",
|
|
1116
1123
|
{
|
|
1117
|
-
ref:
|
|
1124
|
+
ref: t,
|
|
1118
1125
|
type: "button",
|
|
1119
|
-
"aria-label":
|
|
1120
|
-
"aria-expanded":
|
|
1126
|
+
"aria-label": p,
|
|
1127
|
+
"aria-expanded": m,
|
|
1121
1128
|
onClick: (h) => {
|
|
1122
|
-
|
|
1129
|
+
i == null || i(m ? "icon" : "expanded"), r == null || r(h);
|
|
1123
1130
|
},
|
|
1124
|
-
className: [
|
|
1125
|
-
...
|
|
1126
|
-
children:
|
|
1127
|
-
|
|
1131
|
+
className: [Ys, e].filter(Boolean).join(" "),
|
|
1132
|
+
...n,
|
|
1133
|
+
children: m ? /* @__PURE__ */ s(
|
|
1134
|
+
gs,
|
|
1128
1135
|
{
|
|
1129
1136
|
"aria-hidden": "true",
|
|
1130
1137
|
className: "ds:size-4 ds:rtl:-scale-x-100"
|
|
1131
1138
|
}
|
|
1132
1139
|
) : /* @__PURE__ */ s(
|
|
1133
|
-
|
|
1140
|
+
hs,
|
|
1134
1141
|
{
|
|
1135
1142
|
"aria-hidden": "true",
|
|
1136
1143
|
className: "ds:size-4 ds:rtl:-scale-x-100"
|
|
@@ -1138,12 +1145,12 @@ const Xs = [
|
|
|
1138
1145
|
)
|
|
1139
1146
|
}
|
|
1140
1147
|
);
|
|
1141
|
-
return /* @__PURE__ */
|
|
1142
|
-
/* @__PURE__ */ s(b.Trigger, { asChild: !0, children:
|
|
1143
|
-
/* @__PURE__ */ s(b.Portal, { children: /* @__PURE__ */
|
|
1148
|
+
return /* @__PURE__ */ u(b.Root, { children: [
|
|
1149
|
+
/* @__PURE__ */ s(b.Trigger, { asChild: !0, children: f }),
|
|
1150
|
+
/* @__PURE__ */ s(b.Portal, { children: /* @__PURE__ */ u(
|
|
1144
1151
|
b.Content,
|
|
1145
1152
|
{
|
|
1146
|
-
side:
|
|
1153
|
+
side: o === "icon" ? "right" : "top",
|
|
1147
1154
|
sideOffset: 6,
|
|
1148
1155
|
className: [
|
|
1149
1156
|
"ds:z-[var(--z-tooltip)] ds:max-w-[16rem]",
|
|
@@ -1153,15 +1160,15 @@ const Xs = [
|
|
|
1153
1160
|
"ds:animate-in ds:fade-in ds:zoom-in-95 ds:motion-reduce:animate-none"
|
|
1154
1161
|
].join(" "),
|
|
1155
1162
|
children: [
|
|
1156
|
-
|
|
1163
|
+
p,
|
|
1157
1164
|
/* @__PURE__ */ s(b.Arrow, { className: "ds:fill-[var(--foreground)]" })
|
|
1158
1165
|
]
|
|
1159
1166
|
}
|
|
1160
1167
|
) })
|
|
1161
1168
|
] });
|
|
1162
1169
|
});
|
|
1163
|
-
|
|
1164
|
-
const
|
|
1170
|
+
Js.displayName = "SidebarCollapseTrigger";
|
|
1171
|
+
const Qs = T(
|
|
1165
1172
|
[
|
|
1166
1173
|
"ds:flex ds:items-center ds:gap-[var(--spacing-sm)]",
|
|
1167
1174
|
"ds:rounded-[var(--radius-md)]",
|
|
@@ -1192,18 +1199,18 @@ const Js = T(
|
|
|
1192
1199
|
},
|
|
1193
1200
|
defaultVariants: { mode: "expanded" }
|
|
1194
1201
|
}
|
|
1195
|
-
),
|
|
1196
|
-
const { mode:
|
|
1202
|
+
), se = g(({ title: e, description: a, icon: r, className: n, ...t }, l) => {
|
|
1203
|
+
const { mode: o } = y(), i = o === "icon", m = (
|
|
1197
1204
|
// aria-label only in icon mode (where the copy is hidden) — in
|
|
1198
1205
|
// expanded mode the accessible name comes from the visible contents
|
|
1199
1206
|
// so the description isn't excluded from it.
|
|
1200
|
-
/* @__PURE__ */
|
|
1207
|
+
/* @__PURE__ */ u(
|
|
1201
1208
|
"a",
|
|
1202
1209
|
{
|
|
1203
|
-
ref:
|
|
1204
|
-
"aria-label":
|
|
1205
|
-
className:
|
|
1206
|
-
...
|
|
1210
|
+
ref: l,
|
|
1211
|
+
"aria-label": i ? e : void 0,
|
|
1212
|
+
className: Qs({ mode: o, className: n }),
|
|
1213
|
+
...t,
|
|
1207
1214
|
children: [
|
|
1208
1215
|
/* @__PURE__ */ s(
|
|
1209
1216
|
"span",
|
|
@@ -1214,11 +1221,11 @@ const Js = T(
|
|
|
1214
1221
|
"ds:rounded-[var(--radius-sm)]",
|
|
1215
1222
|
"ds:bg-[var(--accent)] ds:text-[var(--accent-foreground)]"
|
|
1216
1223
|
].join(" "),
|
|
1217
|
-
children: r ?? /* @__PURE__ */ s(
|
|
1224
|
+
children: r ?? /* @__PURE__ */ s(ys, { className: "ds:size-4" })
|
|
1218
1225
|
}
|
|
1219
1226
|
),
|
|
1220
|
-
|
|
1221
|
-
/* @__PURE__ */
|
|
1227
|
+
i ? null : /* @__PURE__ */ u(q, { children: [
|
|
1228
|
+
/* @__PURE__ */ u("span", { className: "ds:flex-1 ds:min-w-0 ds:text-start", children: [
|
|
1222
1229
|
/* @__PURE__ */ s("span", { className: "ds:block ds:line-clamp-2 type-label", children: e }),
|
|
1223
1230
|
a ? (
|
|
1224
1231
|
// Foreground (not muted) on the tinted surface — the gradient
|
|
@@ -1238,9 +1245,9 @@ const Js = T(
|
|
|
1238
1245
|
}
|
|
1239
1246
|
)
|
|
1240
1247
|
);
|
|
1241
|
-
return
|
|
1242
|
-
/* @__PURE__ */ s(b.Trigger, { asChild: !0, children:
|
|
1243
|
-
/* @__PURE__ */ s(b.Portal, { children: /* @__PURE__ */
|
|
1248
|
+
return i ? /* @__PURE__ */ u(b.Root, { children: [
|
|
1249
|
+
/* @__PURE__ */ s(b.Trigger, { asChild: !0, children: m }),
|
|
1250
|
+
/* @__PURE__ */ s(b.Portal, { children: /* @__PURE__ */ u(
|
|
1244
1251
|
b.Content,
|
|
1245
1252
|
{
|
|
1246
1253
|
side: "right",
|
|
@@ -1258,29 +1265,29 @@ const Js = T(
|
|
|
1258
1265
|
]
|
|
1259
1266
|
}
|
|
1260
1267
|
) })
|
|
1261
|
-
] }) :
|
|
1268
|
+
] }) : m;
|
|
1262
1269
|
});
|
|
1263
|
-
|
|
1270
|
+
se.displayName = "SidebarUpgradeChip";
|
|
1264
1271
|
export {
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1272
|
+
Ts as S,
|
|
1273
|
+
Bs as a,
|
|
1274
|
+
Js as b,
|
|
1275
|
+
Zs as c,
|
|
1269
1276
|
Os as d,
|
|
1270
1277
|
Rs as e,
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1278
|
+
_s as f,
|
|
1279
|
+
Is as g,
|
|
1280
|
+
ds as h,
|
|
1281
|
+
Fs as i,
|
|
1282
|
+
Es as j,
|
|
1283
|
+
Hs as k,
|
|
1284
|
+
Y as l,
|
|
1285
|
+
Ks as m,
|
|
1286
|
+
Xs as n,
|
|
1280
1287
|
as as o,
|
|
1281
|
-
|
|
1288
|
+
se as p,
|
|
1282
1289
|
Ls as q,
|
|
1283
|
-
|
|
1290
|
+
ws as s,
|
|
1284
1291
|
y as u
|
|
1285
1292
|
};
|
|
1286
|
-
//# sourceMappingURL=sidebar-
|
|
1293
|
+
//# sourceMappingURL=sidebar-DaB4ulxH.js.map
|