@alfadocs/ui-kit 0.20.0 → 0.20.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/{alert-DBnawbmf.js → alert-ywPR59NE.js} +14 -1
- package/dist/_chunks/{audio-recorder-DNkQLW1G.js → audio-recorder-D4xM3H5i.js} +2 -2
- package/dist/_chunks/editable-currency-cell-renderer-Dn3-ANF5.js +1932 -0
- package/dist/_chunks/{freemium-paywall-DXc7XlGE.js → freemium-paywall-CM6V1zNf.js} +2 -2
- package/dist/_chunks/grip-vertical-Dlg0_k5C.js +19 -0
- package/dist/_chunks/{patient-shell-Dr64lBp_.js → patient-shell-DavGODt9.js} +2 -2
- package/dist/_chunks/{payment-form-BjkuQeqR.js → payment-form-F7uh0Rqr.js} +2 -2
- package/dist/_chunks/{pdf-viewer-BG_nsFT5.js → pdf-viewer-CuYaVR1I.js} +2 -2
- package/dist/_chunks/{sidebar-BqzlRBvC.js → sidebar-DkyC6GvS.js} +167 -180
- package/dist/_chunks/{warning-stack-CDH9TudY.js → warning-stack-bDicCvxs.js} +2 -2
- package/dist/_chunks/{workflow-map-BeKe23uw.js → workflow-map-BkLglexk.js} +2 -2
- package/dist/agent-catalog.json +1 -1
- package/dist/components/alert/index.js +1 -1
- package/dist/components/audio-recorder/index.js +1 -1
- package/dist/components/data-table/cell-renderers/balance-cell-renderer.d.ts +37 -0
- package/dist/components/data-table/filters/date-range-filter.d.ts +9 -1
- package/dist/components/data-table/filters/select-filter.d.ts +64 -0
- package/dist/components/data-table/filters/typeahead-filter.d.ts +49 -0
- package/dist/components/data-table/index.d.ts +5 -1
- package/dist/components/data-table/index.js +23 -18
- package/dist/components/freemium-paywall/index.js +1 -1
- package/dist/components/payment-form/index.js +1 -1
- package/dist/components/pdf-viewer/index.js +1 -1
- package/dist/components/sidebar/index.js +1 -1
- package/dist/components/warning-stack/index.js +1 -1
- package/dist/components/workflow/index.js +1 -1
- package/dist/i18n/config.js +34 -4
- package/dist/i18n/resources.d.ts +30 -0
- package/dist/index.js +399 -394
- package/dist/locales/de.json +10 -0
- package/dist/locales/en.json +10 -0
- package/dist/locales/it.json +10 -0
- package/dist/patterns/patient-shell/index.js +1 -1
- package/dist/tokens.css +2 -2
- package/package.json +1 -1
- package/dist/_chunks/editable-currency-cell-renderer-CqMs0Y8L.js +0 -1590
|
@@ -1,54 +1,41 @@
|
|
|
1
|
-
import { jsx as e, jsxs as
|
|
2
|
-
import { forwardRef as b, useState as R, useEffect as K, useCallback as
|
|
1
|
+
import { jsx as e, jsxs as v, Fragment as G } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as b, useState as R, useEffect as K, useCallback as O, useRef as $, useMemo as U, useId as ts, useContext as q, createContext as W } from "react";
|
|
3
3
|
import * as I from "@radix-ui/react-dialog";
|
|
4
4
|
import * as H from "@radix-ui/react-collapsible";
|
|
5
5
|
import * as A from "@radix-ui/react-accordion";
|
|
6
6
|
import * as S from "@radix-ui/react-tooltip";
|
|
7
|
-
import { a as
|
|
7
|
+
import { a as is } from "./accordion-CNcodXuO.js";
|
|
8
8
|
import { Slot as ns } from "@radix-ui/react-slot";
|
|
9
9
|
import { c as B } from "./index-D2ZczOXr.js";
|
|
10
10
|
import { useTranslation as D } from "react-i18next";
|
|
11
11
|
import { u as os } from "./registry-C9nwlNyL.js";
|
|
12
12
|
import { X as ls } from "./x-CCcI3eJp.js";
|
|
13
|
-
import { c as
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
13
|
+
import { c as X } from "./createLucideIcon-CrFbzy84.js";
|
|
14
|
+
import { G as cs } from "./grip-vertical-Dlg0_k5C.js";
|
|
15
|
+
import { C as E } from "./chevron-right-BrpYejk0.js";
|
|
16
|
+
import { S as us } from "./star-vav0SJ9e.js";
|
|
16
17
|
/**
|
|
17
18
|
* @license lucide-react v1.8.0 - ISC
|
|
18
19
|
*
|
|
19
20
|
* This source code is licensed under the ISC license.
|
|
20
21
|
* See the LICENSE file in the root directory of this source tree.
|
|
21
22
|
*/
|
|
22
|
-
const
|
|
23
|
-
["circle", { cx: "9", cy: "12", r: "1", key: "1vctgf" }],
|
|
24
|
-
["circle", { cx: "9", cy: "5", r: "1", key: "hp0tcf" }],
|
|
25
|
-
["circle", { cx: "9", cy: "19", r: "1", key: "fkjjf6" }],
|
|
26
|
-
["circle", { cx: "15", cy: "12", r: "1", key: "1tmaij" }],
|
|
27
|
-
["circle", { cx: "15", cy: "5", r: "1", key: "19l28e" }],
|
|
28
|
-
["circle", { cx: "15", cy: "19", r: "1", key: "f4zoj3" }]
|
|
29
|
-
], ms = E("grip-vertical", us);
|
|
30
|
-
/**
|
|
31
|
-
* @license lucide-react v1.8.0 - ISC
|
|
32
|
-
*
|
|
33
|
-
* This source code is licensed under the ISC license.
|
|
34
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
35
|
-
*/
|
|
36
|
-
const fs = [
|
|
23
|
+
const ms = [
|
|
37
24
|
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
|
|
38
25
|
["path", { d: "M9 3v18", key: "fh3hqa" }],
|
|
39
26
|
["path", { d: "m16 15-3-3 3-3", key: "14y99z" }]
|
|
40
|
-
], vs =
|
|
27
|
+
], vs = X("panel-left-close", ms);
|
|
41
28
|
/**
|
|
42
29
|
* @license lucide-react v1.8.0 - ISC
|
|
43
30
|
*
|
|
44
31
|
* This source code is licensed under the ISC license.
|
|
45
32
|
* See the LICENSE file in the root directory of this source tree.
|
|
46
33
|
*/
|
|
47
|
-
const
|
|
34
|
+
const fs = [
|
|
48
35
|
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
|
|
49
36
|
["path", { d: "M9 3v18", key: "fh3hqa" }],
|
|
50
37
|
["path", { d: "m14 9 3 3-3 3", key: "8010ee" }]
|
|
51
|
-
],
|
|
38
|
+
], ps = X("panel-left-open", fs), gs = {
|
|
52
39
|
id: "sidebar",
|
|
53
40
|
capabilities: ["expand"],
|
|
54
41
|
state: {
|
|
@@ -79,11 +66,11 @@ const ps = [
|
|
|
79
66
|
description: "Each Sidebar.Item emits its key as data-nav-id."
|
|
80
67
|
}
|
|
81
68
|
}
|
|
82
|
-
}, F =
|
|
69
|
+
}, F = W({
|
|
83
70
|
mode: "expanded",
|
|
84
71
|
density: "default"
|
|
85
|
-
}), y = () =>
|
|
86
|
-
function
|
|
72
|
+
}), y = () => q(F), Y = "ui.sidebar.state";
|
|
73
|
+
function bs(s) {
|
|
87
74
|
if (typeof window > "u") return s;
|
|
88
75
|
try {
|
|
89
76
|
const a = window.localStorage.getItem(Y);
|
|
@@ -92,14 +79,14 @@ function hs(s) {
|
|
|
92
79
|
}
|
|
93
80
|
return s;
|
|
94
81
|
}
|
|
95
|
-
function
|
|
82
|
+
function hs(s) {
|
|
96
83
|
if (!(typeof window > "u"))
|
|
97
84
|
try {
|
|
98
85
|
window.localStorage.setItem(Y, s);
|
|
99
86
|
} catch {
|
|
100
87
|
}
|
|
101
88
|
}
|
|
102
|
-
const
|
|
89
|
+
const _ = B(
|
|
103
90
|
[
|
|
104
91
|
"ds:flex ds:flex-col",
|
|
105
92
|
// Sidebar sits at the page background in light mode (white-on-white
|
|
@@ -139,36 +126,36 @@ const M = B(
|
|
|
139
126
|
},
|
|
140
127
|
defaultVariants: { mode: "expanded", density: "default" }
|
|
141
128
|
}
|
|
142
|
-
),
|
|
129
|
+
), xs = b(
|
|
143
130
|
({
|
|
144
131
|
state: s,
|
|
145
132
|
defaultState: a = "expanded",
|
|
146
133
|
onStateChange: r,
|
|
147
|
-
density:
|
|
148
|
-
open:
|
|
134
|
+
density: t = "default",
|
|
135
|
+
open: i,
|
|
149
136
|
onOpenChange: o,
|
|
150
137
|
"aria-label": u,
|
|
151
138
|
className: n,
|
|
152
139
|
children: m,
|
|
153
140
|
id: l,
|
|
154
|
-
...
|
|
141
|
+
...f
|
|
155
142
|
}, x) => {
|
|
156
143
|
const { t: w } = D(), g = s !== void 0, [d, N] = R(
|
|
157
|
-
() => g ? s :
|
|
144
|
+
() => g ? s : bs(a)
|
|
158
145
|
), h = g ? s : d;
|
|
159
146
|
K(() => {
|
|
160
|
-
g ||
|
|
147
|
+
g || hs(d);
|
|
161
148
|
}, [d, g]);
|
|
162
|
-
const p =
|
|
149
|
+
const p = O(
|
|
163
150
|
(C) => {
|
|
164
151
|
g || N(C), r == null || r(C);
|
|
165
152
|
},
|
|
166
153
|
[g, r]
|
|
167
|
-
), z = u ?? w("navigation.sidebar.label"), j =
|
|
154
|
+
), z = u ?? w("navigation.sidebar.label"), j = $(h);
|
|
168
155
|
K(() => {
|
|
169
156
|
j.current = h;
|
|
170
157
|
}, [h]);
|
|
171
|
-
const k =
|
|
158
|
+
const k = U(
|
|
172
159
|
() => ({
|
|
173
160
|
getIsCollapsed: () => j.current !== "expanded",
|
|
174
161
|
toggleCollapsed: () => {
|
|
@@ -178,11 +165,11 @@ const M = B(
|
|
|
178
165
|
}),
|
|
179
166
|
[p]
|
|
180
167
|
);
|
|
181
|
-
return os(
|
|
168
|
+
return os(gs, k, l), h === "overlay" ? /* @__PURE__ */ e(
|
|
182
169
|
F.Provider,
|
|
183
170
|
{
|
|
184
|
-
value: { mode: "overlay", density:
|
|
185
|
-
children: /* @__PURE__ */ e(I.Root, { open:
|
|
171
|
+
value: { mode: "overlay", density: t, transitionTo: p },
|
|
172
|
+
children: /* @__PURE__ */ e(I.Root, { open: i, onOpenChange: o, children: /* @__PURE__ */ v(I.Portal, { children: [
|
|
186
173
|
/* @__PURE__ */ e(
|
|
187
174
|
I.Overlay,
|
|
188
175
|
{
|
|
@@ -195,7 +182,7 @@ const M = B(
|
|
|
195
182
|
].join(" ")
|
|
196
183
|
}
|
|
197
184
|
),
|
|
198
|
-
/* @__PURE__ */
|
|
185
|
+
/* @__PURE__ */ v(
|
|
199
186
|
I.Content,
|
|
200
187
|
{
|
|
201
188
|
"aria-label": z,
|
|
@@ -203,7 +190,7 @@ const M = B(
|
|
|
203
190
|
"ds:fixed ds:z-[var(--z-modal)]",
|
|
204
191
|
"ds:inset-inline-start-0 ds:inset-block-start-0",
|
|
205
192
|
"ds:h-dvh",
|
|
206
|
-
|
|
193
|
+
_({ mode: "overlay", density: t }),
|
|
207
194
|
"ds:shadow-[var(--shadow-xl)]",
|
|
208
195
|
"ds:data-[state=open]:animate-in ds:data-[state=closed]:animate-out",
|
|
209
196
|
"ds:data-[state=open]:slide-in-from-left ds:data-[state=closed]:slide-out-to-left",
|
|
@@ -222,7 +209,7 @@ const M = B(
|
|
|
222
209
|
"data-component": "sidebar",
|
|
223
210
|
"data-component-id": l,
|
|
224
211
|
className: "ds:flex ds:flex-col ds:h-full",
|
|
225
|
-
...
|
|
212
|
+
...f,
|
|
226
213
|
children: m
|
|
227
214
|
}
|
|
228
215
|
),
|
|
@@ -251,7 +238,7 @@ const M = B(
|
|
|
251
238
|
) : /* @__PURE__ */ e(
|
|
252
239
|
F.Provider,
|
|
253
240
|
{
|
|
254
|
-
value: { mode: h, density:
|
|
241
|
+
value: { mode: h, density: t, transitionTo: p },
|
|
255
242
|
children: /* @__PURE__ */ e(S.Provider, { delayDuration: 300, children: /* @__PURE__ */ e(
|
|
256
243
|
"nav",
|
|
257
244
|
{
|
|
@@ -261,13 +248,13 @@ const M = B(
|
|
|
261
248
|
"data-component": "sidebar",
|
|
262
249
|
"data-component-id": l,
|
|
263
250
|
"data-mode": h,
|
|
264
|
-
"data-density":
|
|
251
|
+
"data-density": t,
|
|
265
252
|
className: [
|
|
266
|
-
|
|
267
|
-
|
|
253
|
+
_({ mode: h, density: t }),
|
|
254
|
+
t === "compact" ? "ds:density-compact" : "",
|
|
268
255
|
n ?? ""
|
|
269
256
|
].filter(Boolean).join(" "),
|
|
270
|
-
...
|
|
257
|
+
...f,
|
|
271
258
|
children: m
|
|
272
259
|
}
|
|
273
260
|
) })
|
|
@@ -275,9 +262,9 @@ const M = B(
|
|
|
275
262
|
);
|
|
276
263
|
}
|
|
277
264
|
);
|
|
278
|
-
|
|
279
|
-
const
|
|
280
|
-
const { mode:
|
|
265
|
+
xs.displayName = "Sidebar";
|
|
266
|
+
const ys = b(({ className: s, ...a }, r) => {
|
|
267
|
+
const { mode: t } = y();
|
|
281
268
|
return /* @__PURE__ */ e(
|
|
282
269
|
"div",
|
|
283
270
|
{
|
|
@@ -287,7 +274,7 @@ const ws = b(({ className: s, ...a }, r) => {
|
|
|
287
274
|
"ds:min-h-[var(--min-target-size)]",
|
|
288
275
|
// Icon-rail is 64px — shrink horizontal padding so a 44×44
|
|
289
276
|
// control fits centred inside the header.
|
|
290
|
-
|
|
277
|
+
t === "icon" ? "ds:justify-center ds:ps-[var(--spacing-xs)] ds:pe-[var(--spacing-xs)]" : "ds:ps-[var(--spacing-md)] ds:pe-[var(--spacing-md)]",
|
|
291
278
|
"ds:py-[var(--spacing-sm)]",
|
|
292
279
|
// Hairline border + downward chrome shadow cast the header as a
|
|
293
280
|
// sticky top band above the scrolling body.
|
|
@@ -299,8 +286,8 @@ const ws = b(({ className: s, ...a }, r) => {
|
|
|
299
286
|
}
|
|
300
287
|
);
|
|
301
288
|
});
|
|
302
|
-
|
|
303
|
-
const
|
|
289
|
+
ys.displayName = "SidebarHeader";
|
|
290
|
+
const ws = b(
|
|
304
291
|
({ className: s, ...a }, r) => /* @__PURE__ */ e(
|
|
305
292
|
"div",
|
|
306
293
|
{
|
|
@@ -315,9 +302,9 @@ const Ns = b(
|
|
|
315
302
|
}
|
|
316
303
|
)
|
|
317
304
|
);
|
|
318
|
-
|
|
319
|
-
const
|
|
320
|
-
const { mode:
|
|
305
|
+
ws.displayName = "SidebarBody";
|
|
306
|
+
const Ns = b(({ className: s, ...a }, r) => {
|
|
307
|
+
const { mode: t } = y();
|
|
321
308
|
return /* @__PURE__ */ e(
|
|
322
309
|
"div",
|
|
323
310
|
{
|
|
@@ -326,7 +313,7 @@ const Ss = b(({ className: s, ...a }, r) => {
|
|
|
326
313
|
"ds:relative ds:flex ds:items-center ds:gap-[var(--spacing-xs)]",
|
|
327
314
|
// Icon-rail is 64px — two 44×44 controls can't sit side-by-side,
|
|
328
315
|
// so switch to a vertical stack and let each row self-centre.
|
|
329
|
-
|
|
316
|
+
t === "icon" ? "ds:flex-col ds:ps-[var(--spacing-xs)] ds:pe-[var(--spacing-xs)]" : "ds:ps-[var(--spacing-md)] ds:pe-[var(--spacing-md)]",
|
|
330
317
|
"ds:min-h-[var(--min-target-size)]",
|
|
331
318
|
"ds:py-[var(--spacing-sm)]",
|
|
332
319
|
// Hairline border + upward chrome shadow cast the footer as a
|
|
@@ -339,8 +326,8 @@ const Ss = b(({ className: s, ...a }, r) => {
|
|
|
339
326
|
}
|
|
340
327
|
);
|
|
341
328
|
});
|
|
342
|
-
|
|
343
|
-
const
|
|
329
|
+
Ns.displayName = "SidebarFooter";
|
|
330
|
+
const Ss = [
|
|
344
331
|
"ds:group/section-label ds:flex ds:w-full ds:items-center",
|
|
345
332
|
"type-eyebrow",
|
|
346
333
|
"ds:text-[var(--muted-foreground)]",
|
|
@@ -350,7 +337,7 @@ const js = [
|
|
|
350
337
|
"ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid",
|
|
351
338
|
"ds:focus-visible:outline-[var(--ring)] ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
|
|
352
339
|
"ds:transition-colors ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none"
|
|
353
|
-
].join(" "),
|
|
340
|
+
].join(" "), M = [
|
|
354
341
|
"ds:inline-flex ds:shrink-0 ds:items-center ds:justify-center",
|
|
355
342
|
"ds:size-4",
|
|
356
343
|
"ds:text-[var(--accent)]",
|
|
@@ -360,22 +347,22 @@ const js = [
|
|
|
360
347
|
label: s,
|
|
361
348
|
icon: a,
|
|
362
349
|
collapsible: r = !0,
|
|
363
|
-
defaultOpen:
|
|
364
|
-
open:
|
|
350
|
+
defaultOpen: t = !0,
|
|
351
|
+
open: i,
|
|
365
352
|
onOpenChange: o,
|
|
366
353
|
className: u,
|
|
367
354
|
children: n,
|
|
368
355
|
...m
|
|
369
356
|
}, l) => {
|
|
370
|
-
const { mode:
|
|
357
|
+
const { mode: f } = y(), x = f === "icon", w = r && !x && !!s, g = [
|
|
371
358
|
"ds:flex ds:flex-col",
|
|
372
359
|
"ds:gap-[var(--spacing-xs)]",
|
|
373
360
|
"ds:mt-[var(--spacing-sm)]",
|
|
374
361
|
u ?? ""
|
|
375
362
|
].filter(Boolean).join(" ");
|
|
376
363
|
if (!w)
|
|
377
|
-
return /* @__PURE__ */
|
|
378
|
-
!!s || !!a ? /* @__PURE__ */
|
|
364
|
+
return /* @__PURE__ */ v("div", { ref: l, className: g, ...m, children: [
|
|
365
|
+
!!s || !!a ? /* @__PURE__ */ v(
|
|
379
366
|
"span",
|
|
380
367
|
{
|
|
381
368
|
className: [
|
|
@@ -387,7 +374,7 @@ const js = [
|
|
|
387
374
|
x && !a ? "ds:sr-only" : ""
|
|
388
375
|
].filter(Boolean).join(" "),
|
|
389
376
|
children: [
|
|
390
|
-
a ? /* @__PURE__ */ e("span", { "aria-hidden": "true", className:
|
|
377
|
+
a ? /* @__PURE__ */ e("span", { "aria-hidden": "true", className: M, children: a }) : null,
|
|
391
378
|
s ? /* @__PURE__ */ e("span", { className: x ? "ds:sr-only" : "", children: s }) : null
|
|
392
379
|
]
|
|
393
380
|
}
|
|
@@ -400,16 +387,16 @@ const js = [
|
|
|
400
387
|
{
|
|
401
388
|
type: "single",
|
|
402
389
|
collapsible: !0,
|
|
403
|
-
defaultValue:
|
|
404
|
-
value:
|
|
390
|
+
defaultValue: i === void 0 && t ? d : void 0,
|
|
391
|
+
value: i === void 0 ? void 0 : i ? d : "",
|
|
405
392
|
onValueChange: o ? (N) => o(N === d) : void 0,
|
|
406
393
|
asChild: !0,
|
|
407
|
-
children: /* @__PURE__ */ e("div", { ref: l, className: g, ...m, children: /* @__PURE__ */
|
|
408
|
-
/* @__PURE__ */ e(A.Header, { className: "ds:flex", children: /* @__PURE__ */
|
|
409
|
-
a ? /* @__PURE__ */ e("span", { "aria-hidden": "true", className:
|
|
394
|
+
children: /* @__PURE__ */ e("div", { ref: l, className: g, ...m, children: /* @__PURE__ */ v(A.Item, { value: d, children: [
|
|
395
|
+
/* @__PURE__ */ e(A.Header, { className: "ds:flex", children: /* @__PURE__ */ v(A.Trigger, { className: Ss, children: [
|
|
396
|
+
a ? /* @__PURE__ */ e("span", { "aria-hidden": "true", className: M, children: a }) : null,
|
|
410
397
|
/* @__PURE__ */ e("span", { className: "ds:flex-1 ds:text-start", children: s }),
|
|
411
398
|
/* @__PURE__ */ e(
|
|
412
|
-
|
|
399
|
+
E,
|
|
413
400
|
{
|
|
414
401
|
"aria-hidden": "true",
|
|
415
402
|
className: "ds:size-3 ds:transition-transform ds:group-data-[state=open]/section-label:rotate-90 ds:rtl:-scale-x-100 ds:motion-reduce:transition-none"
|
|
@@ -417,7 +404,7 @@ const js = [
|
|
|
417
404
|
)
|
|
418
405
|
] }) }),
|
|
419
406
|
/* @__PURE__ */ e(
|
|
420
|
-
|
|
407
|
+
is,
|
|
421
408
|
{
|
|
422
409
|
"aria-label": s,
|
|
423
410
|
className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)] ds:[&>div]:contents",
|
|
@@ -430,7 +417,7 @@ const js = [
|
|
|
430
417
|
}
|
|
431
418
|
);
|
|
432
419
|
J.displayName = "SidebarSection";
|
|
433
|
-
const
|
|
420
|
+
const js = [
|
|
434
421
|
"ds:group ds:flex ds:w-full ds:items-center ds:gap-[var(--spacing-sm)]",
|
|
435
422
|
"ds:min-h-[var(--min-target-size)]",
|
|
436
423
|
"ds:ps-[var(--spacing-sm)] ds:pe-[var(--spacing-sm)]",
|
|
@@ -441,29 +428,29 @@ const zs = [
|
|
|
441
428
|
"ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid",
|
|
442
429
|
"ds:focus-visible:outline-[var(--ring)] ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
|
|
443
430
|
"ds:transition-colors ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none"
|
|
444
|
-
].join(" "),
|
|
431
|
+
].join(" "), zs = b(
|
|
445
432
|
({
|
|
446
433
|
label: s,
|
|
447
434
|
icon: a,
|
|
448
435
|
children: r,
|
|
449
|
-
className:
|
|
450
|
-
defaultOpen:
|
|
436
|
+
className: t,
|
|
437
|
+
defaultOpen: i,
|
|
451
438
|
open: o,
|
|
452
439
|
onOpenChange: u,
|
|
453
440
|
...n
|
|
454
441
|
}, m) => {
|
|
455
442
|
const { mode: l } = y();
|
|
456
|
-
return /* @__PURE__ */
|
|
443
|
+
return /* @__PURE__ */ v(
|
|
457
444
|
H.Root,
|
|
458
445
|
{
|
|
459
446
|
ref: m,
|
|
460
|
-
defaultOpen:
|
|
447
|
+
defaultOpen: i,
|
|
461
448
|
open: o,
|
|
462
449
|
onOpenChange: u,
|
|
463
|
-
className:
|
|
450
|
+
className: t,
|
|
464
451
|
...n,
|
|
465
452
|
children: [
|
|
466
|
-
/* @__PURE__ */
|
|
453
|
+
/* @__PURE__ */ v(H.Trigger, { className: js, children: [
|
|
467
454
|
a ? /* @__PURE__ */ e(
|
|
468
455
|
"span",
|
|
469
456
|
{
|
|
@@ -483,7 +470,7 @@ const zs = [
|
|
|
483
470
|
}
|
|
484
471
|
),
|
|
485
472
|
l !== "icon" ? /* @__PURE__ */ e(
|
|
486
|
-
|
|
473
|
+
E,
|
|
487
474
|
{
|
|
488
475
|
"aria-hidden": "true",
|
|
489
476
|
className: "ds:size-4 ds:transition-transform ds:group-data-[state=open]:rotate-90 ds:rtl:-scale-x-100 ds:motion-reduce:transition-none"
|
|
@@ -507,8 +494,8 @@ const zs = [
|
|
|
507
494
|
);
|
|
508
495
|
}
|
|
509
496
|
);
|
|
510
|
-
|
|
511
|
-
const
|
|
497
|
+
zs.displayName = "SidebarGroup";
|
|
498
|
+
const ks = B(
|
|
512
499
|
[
|
|
513
500
|
// Every row is a pin-hover parent so inline pin / reorder affordances can
|
|
514
501
|
// fade in on hover of the whole row — keep `group/item` on this selector.
|
|
@@ -574,21 +561,21 @@ const Cs = B(
|
|
|
574
561
|
asChild: s = !1,
|
|
575
562
|
isActive: a = !1,
|
|
576
563
|
isPinned: r = !1,
|
|
577
|
-
onPinChange:
|
|
578
|
-
pinLabel:
|
|
564
|
+
onPinChange: t,
|
|
565
|
+
pinLabel: i,
|
|
579
566
|
className: o,
|
|
580
567
|
children: u,
|
|
581
568
|
"aria-label": n,
|
|
582
569
|
...m
|
|
583
570
|
}, l) => {
|
|
584
|
-
const { mode:
|
|
571
|
+
const { mode: f, density: x } = y(), w = s ? ns : "a", g = t !== void 0 && f !== "icon", d = /* @__PURE__ */ e(
|
|
585
572
|
w,
|
|
586
573
|
{
|
|
587
574
|
ref: l,
|
|
588
575
|
"aria-current": a ? "page" : void 0,
|
|
589
576
|
"aria-label": n,
|
|
590
|
-
className:
|
|
591
|
-
mode:
|
|
577
|
+
className: ks({
|
|
578
|
+
mode: f,
|
|
592
579
|
density: x,
|
|
593
580
|
isActive: a,
|
|
594
581
|
className: g ? "ds:flex-1 ds:min-w-0" : o
|
|
@@ -596,7 +583,7 @@ const Cs = B(
|
|
|
596
583
|
...m,
|
|
597
584
|
children: u
|
|
598
585
|
}
|
|
599
|
-
), N = g ? /* @__PURE__ */
|
|
586
|
+
), N = g ? /* @__PURE__ */ v(
|
|
600
587
|
"div",
|
|
601
588
|
{
|
|
602
589
|
className: [
|
|
@@ -609,16 +596,16 @@ const Cs = B(
|
|
|
609
596
|
L,
|
|
610
597
|
{
|
|
611
598
|
isPinned: r,
|
|
612
|
-
label:
|
|
613
|
-
onPinChange:
|
|
599
|
+
label: i ?? n ?? "",
|
|
600
|
+
onPinChange: t
|
|
614
601
|
}
|
|
615
602
|
)
|
|
616
603
|
]
|
|
617
604
|
}
|
|
618
605
|
) : d;
|
|
619
|
-
return
|
|
606
|
+
return f === "icon" && n ? /* @__PURE__ */ v(S.Root, { children: [
|
|
620
607
|
/* @__PURE__ */ e(S.Trigger, { asChild: !0, children: N }),
|
|
621
|
-
/* @__PURE__ */ e(S.Portal, { children: /* @__PURE__ */
|
|
608
|
+
/* @__PURE__ */ e(S.Portal, { children: /* @__PURE__ */ v(
|
|
622
609
|
S.Content,
|
|
623
610
|
{
|
|
624
611
|
side: "right",
|
|
@@ -640,10 +627,10 @@ const Cs = B(
|
|
|
640
627
|
}
|
|
641
628
|
);
|
|
642
629
|
Q.displayName = "SidebarItem";
|
|
643
|
-
const
|
|
630
|
+
const Cs = b(({ className: s, children: a, ...r }, t) => /* @__PURE__ */ e(
|
|
644
631
|
"span",
|
|
645
632
|
{
|
|
646
|
-
ref:
|
|
633
|
+
ref: t,
|
|
647
634
|
"aria-hidden": "true",
|
|
648
635
|
className: [
|
|
649
636
|
"ds:inline-flex ds:shrink-0 ds:items-center ds:justify-center",
|
|
@@ -661,18 +648,18 @@ const Ts = b(({ className: s, children: a, ...r }, i) => /* @__PURE__ */ e(
|
|
|
661
648
|
children: a
|
|
662
649
|
}
|
|
663
650
|
));
|
|
664
|
-
|
|
665
|
-
const
|
|
666
|
-
const { mode:
|
|
651
|
+
Cs.displayName = "SidebarItemIcon";
|
|
652
|
+
const Ts = b(({ className: s, children: a, ...r }, t) => {
|
|
653
|
+
const { mode: i } = y();
|
|
667
654
|
return /* @__PURE__ */ e(
|
|
668
655
|
"span",
|
|
669
656
|
{
|
|
670
|
-
ref:
|
|
657
|
+
ref: t,
|
|
671
658
|
className: [
|
|
672
659
|
"ds:flex-1",
|
|
673
660
|
"ds:overflow-hidden ds:text-ellipsis ds:whitespace-nowrap ds:break-normal",
|
|
674
661
|
"ds:text-start",
|
|
675
|
-
|
|
662
|
+
i === "icon" ? "ds:sr-only" : "",
|
|
676
663
|
s ?? ""
|
|
677
664
|
].filter(Boolean).join(" "),
|
|
678
665
|
...r,
|
|
@@ -680,13 +667,13 @@ const Bs = b(({ className: s, children: a, ...r }, i) => {
|
|
|
680
667
|
}
|
|
681
668
|
);
|
|
682
669
|
});
|
|
683
|
-
|
|
684
|
-
const
|
|
685
|
-
const { mode:
|
|
670
|
+
Ts.displayName = "SidebarItemLabel";
|
|
671
|
+
const Bs = b(({ className: s, children: a, ...r }, t) => {
|
|
672
|
+
const { mode: i } = y(), o = i === "icon";
|
|
686
673
|
return /* @__PURE__ */ e(
|
|
687
674
|
"span",
|
|
688
675
|
{
|
|
689
|
-
ref:
|
|
676
|
+
ref: t,
|
|
690
677
|
"aria-hidden": o ? "true" : void 0,
|
|
691
678
|
className: [
|
|
692
679
|
"ds:inline-flex ds:items-center ds:justify-center",
|
|
@@ -712,8 +699,8 @@ const Is = b(({ className: s, children: a, ...r }, i) => {
|
|
|
712
699
|
}
|
|
713
700
|
);
|
|
714
701
|
});
|
|
715
|
-
|
|
716
|
-
const
|
|
702
|
+
Bs.displayName = "SidebarItemBadge";
|
|
703
|
+
const Is = B(
|
|
717
704
|
[
|
|
718
705
|
"ds:flex ds:items-center ds:gap-[var(--spacing-sm)]",
|
|
719
706
|
"ds:min-h-[var(--min-target-size)]",
|
|
@@ -726,16 +713,16 @@ const Ds = B(
|
|
|
726
713
|
"ds:forced-colors:focus-visible:outline-[CanvasText]",
|
|
727
714
|
"ds:no-underline"
|
|
728
715
|
].join(" ")
|
|
729
|
-
),
|
|
716
|
+
), Ds = b(({ logo: s, name: a, showChevron: r = !0, className: t, ...i }, o) => {
|
|
730
717
|
const { mode: u } = y(), n = u !== "icon";
|
|
731
|
-
return /* @__PURE__ */
|
|
718
|
+
return /* @__PURE__ */ v(
|
|
732
719
|
"button",
|
|
733
720
|
{
|
|
734
721
|
ref: o,
|
|
735
722
|
type: "button",
|
|
736
723
|
"aria-label": a,
|
|
737
|
-
className: [
|
|
738
|
-
...
|
|
724
|
+
className: [Is(), t].filter(Boolean).join(" "),
|
|
725
|
+
...i,
|
|
739
726
|
children: [
|
|
740
727
|
/* @__PURE__ */ e(
|
|
741
728
|
"span",
|
|
@@ -745,10 +732,10 @@ const Ds = B(
|
|
|
745
732
|
children: s
|
|
746
733
|
}
|
|
747
734
|
),
|
|
748
|
-
n ? /* @__PURE__ */
|
|
735
|
+
n ? /* @__PURE__ */ v(G, { children: [
|
|
749
736
|
/* @__PURE__ */ e("span", { className: "ds:truncate ds:flex-1 ds:text-start ds:max-w-[var(--header-workspace-max-inline-size)]", children: a }),
|
|
750
737
|
r ? /* @__PURE__ */ e(
|
|
751
|
-
|
|
738
|
+
E,
|
|
752
739
|
{
|
|
753
740
|
"aria-hidden": "true",
|
|
754
741
|
className: "ds:size-4 ds:shrink-0 ds:rotate-90"
|
|
@@ -759,8 +746,8 @@ const Ds = B(
|
|
|
759
746
|
}
|
|
760
747
|
);
|
|
761
748
|
});
|
|
762
|
-
|
|
763
|
-
const
|
|
749
|
+
Ds.displayName = "SidebarWorkspaceSwitcher";
|
|
750
|
+
const As = B(
|
|
764
751
|
[
|
|
765
752
|
"ds:flex ds:items-center ds:justify-center ds:gap-[var(--spacing-xs)]",
|
|
766
753
|
"ds:min-h-[var(--min-target-size)]",
|
|
@@ -783,17 +770,17 @@ const Rs = B(
|
|
|
783
770
|
},
|
|
784
771
|
defaultVariants: { mode: "expanded" }
|
|
785
772
|
}
|
|
786
|
-
),
|
|
773
|
+
), Rs = b(({ icon: s, label: a, shortcut: r, className: t, ...i }, o) => {
|
|
787
774
|
const { mode: u } = y(), n = u !== "icon";
|
|
788
|
-
return /* @__PURE__ */
|
|
775
|
+
return /* @__PURE__ */ v(
|
|
789
776
|
"button",
|
|
790
777
|
{
|
|
791
778
|
ref: o,
|
|
792
779
|
type: "button",
|
|
793
780
|
"aria-label": a,
|
|
794
781
|
"aria-keyshortcuts": r,
|
|
795
|
-
className: [
|
|
796
|
-
...
|
|
782
|
+
className: [As({ mode: u }), t].filter(Boolean).join(" "),
|
|
783
|
+
...i,
|
|
797
784
|
children: [
|
|
798
785
|
/* @__PURE__ */ e(
|
|
799
786
|
"span",
|
|
@@ -803,7 +790,7 @@ const Rs = B(
|
|
|
803
790
|
children: s
|
|
804
791
|
}
|
|
805
792
|
),
|
|
806
|
-
n ? /* @__PURE__ */
|
|
793
|
+
n ? /* @__PURE__ */ v(G, { children: [
|
|
807
794
|
/* @__PURE__ */ e("span", { className: "ds:truncate", children: a }),
|
|
808
795
|
r ? /* @__PURE__ */ e("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
|
|
809
796
|
] }) : null
|
|
@@ -811,8 +798,8 @@ const Rs = B(
|
|
|
811
798
|
}
|
|
812
799
|
);
|
|
813
800
|
});
|
|
814
|
-
|
|
815
|
-
const
|
|
801
|
+
Rs.displayName = "SidebarPrimaryAction";
|
|
802
|
+
const Ps = [
|
|
816
803
|
"ds:inline-flex ds:items-center ds:justify-center ds:shrink-0",
|
|
817
804
|
"ds:size-6 ds:rounded-[var(--radius-sm)]",
|
|
818
805
|
// Pin stars carry the accent tint to match every other icon in the rail.
|
|
@@ -826,7 +813,7 @@ const Hs = [
|
|
|
826
813
|
"ds:transition-[color,opacity,background-color] ds:duration-[var(--animation-duration)]",
|
|
827
814
|
"ds:motion-reduce:transition-none"
|
|
828
815
|
].join(" "), L = b(
|
|
829
|
-
({ isPinned: s, onPinChange: a, label: r, className:
|
|
816
|
+
({ isPinned: s, onPinChange: a, label: r, className: t, onClick: i, ...o }, u) => {
|
|
830
817
|
const { t: n } = D(), { mode: m } = y();
|
|
831
818
|
if (m === "icon") return null;
|
|
832
819
|
const l = s ? n("navigation.sidebar.unpinItem", "Unpin {{label}}", { label: r }) : n("navigation.sidebar.pinItem", "Pin {{label}}", { label: r });
|
|
@@ -837,13 +824,13 @@ const Hs = [
|
|
|
837
824
|
type: "button",
|
|
838
825
|
"aria-label": l,
|
|
839
826
|
"aria-pressed": s,
|
|
840
|
-
className: [
|
|
841
|
-
onClick: (
|
|
842
|
-
|
|
827
|
+
className: [Ps, t].filter(Boolean).join(" "),
|
|
828
|
+
onClick: (f) => {
|
|
829
|
+
f.preventDefault(), f.stopPropagation(), a == null || a(!s), i == null || i(f);
|
|
843
830
|
},
|
|
844
831
|
...o,
|
|
845
832
|
children: /* @__PURE__ */ e(
|
|
846
|
-
|
|
833
|
+
us,
|
|
847
834
|
{
|
|
848
835
|
"aria-hidden": "true",
|
|
849
836
|
className: "ds:size-4",
|
|
@@ -855,20 +842,20 @@ const Hs = [
|
|
|
855
842
|
}
|
|
856
843
|
);
|
|
857
844
|
L.displayName = "SidebarPinButton";
|
|
858
|
-
const Z =
|
|
859
|
-
({ heading: s, emptyMessage: a, onReorder: r, className:
|
|
860
|
-
const { t: n } = D(), m = s ?? n("navigation.sidebar.favorites", "Favourites"), l = Array.isArray(
|
|
845
|
+
const Z = W(null), Hs = () => q(Z), Fs = b(
|
|
846
|
+
({ heading: s, emptyMessage: a, onReorder: r, className: t, children: i, ...o }, u) => {
|
|
847
|
+
const { t: n } = D(), m = s ?? n("navigation.sidebar.favorites", "Favourites"), l = Array.isArray(i) ? i.filter(Boolean) : i ? [i] : [], f = l.length, x = f > 0, [w, g] = R(null), [d, N] = R(""), h = $(!1), p = O((j) => {
|
|
861
848
|
h.current = !h.current, N(h.current ? j : `${j}`);
|
|
862
|
-
}, []), z =
|
|
863
|
-
() => ({ onReorder: r, count:
|
|
864
|
-
[r,
|
|
849
|
+
}, []), z = U(
|
|
850
|
+
() => ({ onReorder: r, count: f, dragSource: w, setDragSource: g, announce: p }),
|
|
851
|
+
[r, f, w, p]
|
|
865
852
|
);
|
|
866
|
-
return !x && !a ? null : /* @__PURE__ */ e(Z.Provider, { value: z, children: /* @__PURE__ */
|
|
853
|
+
return !x && !a ? null : /* @__PURE__ */ e(Z.Provider, { value: z, children: /* @__PURE__ */ v(
|
|
867
854
|
J,
|
|
868
855
|
{
|
|
869
856
|
ref: u,
|
|
870
857
|
label: m,
|
|
871
|
-
className:
|
|
858
|
+
className: t,
|
|
872
859
|
...o,
|
|
873
860
|
children: [
|
|
874
861
|
x ? l : /* @__PURE__ */ e("p", { className: "ds:ps-[var(--spacing-sm)] ds:pe-[var(--spacing-sm)] type-meta ds:text-[color:var(--muted-foreground)]", children: a }),
|
|
@@ -878,8 +865,8 @@ const Z = X(null), Fs = () => W(Z), Es = b(
|
|
|
878
865
|
) });
|
|
879
866
|
}
|
|
880
867
|
);
|
|
881
|
-
|
|
882
|
-
const
|
|
868
|
+
Fs.displayName = "SidebarFavorites";
|
|
869
|
+
const Es = B(
|
|
883
870
|
[
|
|
884
871
|
"ds:group/item ds:relative ds:flex ds:items-center ds:gap-[var(--spacing-2xs)]",
|
|
885
872
|
"ds:rounded-[var(--radius-sm)]",
|
|
@@ -917,16 +904,16 @@ const _s = B(
|
|
|
917
904
|
index: s,
|
|
918
905
|
isActive: a = !1,
|
|
919
906
|
asChild: r = !1,
|
|
920
|
-
reorderLabel:
|
|
921
|
-
isPinned:
|
|
907
|
+
reorderLabel: t,
|
|
908
|
+
isPinned: i = !1,
|
|
922
909
|
onPinChange: o,
|
|
923
910
|
pinLabel: u,
|
|
924
911
|
"aria-label": n,
|
|
925
912
|
className: m,
|
|
926
913
|
children: l,
|
|
927
|
-
...
|
|
914
|
+
...f
|
|
928
915
|
}, x) => {
|
|
929
|
-
const { t: w } = D(), { mode: g } = y(), d =
|
|
916
|
+
const { t: w } = D(), { mode: g } = y(), d = Hs(), [N, h] = R(!1), p = !!(d != null && d.onReorder) && g !== "icon", z = t ?? n ?? "", j = ts(), k = (c, T) => {
|
|
930
917
|
if (!(d != null && d.onReorder)) return;
|
|
931
918
|
const P = Math.max(0, Math.min(d.count - 1, T));
|
|
932
919
|
P !== c && (d.onReorder(c, P), d.announce(
|
|
@@ -950,10 +937,10 @@ const _s = B(
|
|
|
950
937
|
const T = d == null ? void 0 : d.dragSource;
|
|
951
938
|
h(!1), !(T == null || T === s) && k(T, s);
|
|
952
939
|
}, V = (d == null ? void 0 : d.dragSource) === s;
|
|
953
|
-
return /* @__PURE__ */
|
|
940
|
+
return /* @__PURE__ */ v(
|
|
954
941
|
"div",
|
|
955
942
|
{
|
|
956
|
-
className:
|
|
943
|
+
className: Es({
|
|
957
944
|
dragging: V,
|
|
958
945
|
dropTarget: N && !V
|
|
959
946
|
}),
|
|
@@ -974,7 +961,7 @@ const _s = B(
|
|
|
974
961
|
"aria-describedby": p ? j : void 0,
|
|
975
962
|
draggable: p ? !1 : void 0,
|
|
976
963
|
className: [p ? "ds:flex-1 ds:min-w-0" : "", m ?? ""].filter(Boolean).join(" "),
|
|
977
|
-
...
|
|
964
|
+
...f,
|
|
978
965
|
children: l
|
|
979
966
|
}
|
|
980
967
|
),
|
|
@@ -990,13 +977,13 @@ const _s = B(
|
|
|
990
977
|
),
|
|
991
978
|
className: Ls,
|
|
992
979
|
onKeyDown: C,
|
|
993
|
-
children: /* @__PURE__ */ e(
|
|
980
|
+
children: /* @__PURE__ */ e(cs, { "aria-hidden": "true", className: "ds:size-4" })
|
|
994
981
|
}
|
|
995
982
|
) : null,
|
|
996
983
|
o && g !== "icon" ? /* @__PURE__ */ e(
|
|
997
984
|
L,
|
|
998
985
|
{
|
|
999
|
-
isPinned:
|
|
986
|
+
isPinned: i,
|
|
1000
987
|
label: u ?? n ?? "",
|
|
1001
988
|
onPinChange: o
|
|
1002
989
|
}
|
|
@@ -1020,15 +1007,15 @@ const Ks = B(
|
|
|
1020
1007
|
"ds:forced-colors:focus-visible:outline-[CanvasText]",
|
|
1021
1008
|
"ds:no-underline"
|
|
1022
1009
|
].join(" ")
|
|
1023
|
-
),
|
|
1024
|
-
const { mode: n } = y(), m = n !== "icon", l = typeof r == "string" ? r :
|
|
1025
|
-
return /* @__PURE__ */
|
|
1010
|
+
), _s = b(({ avatar: s, name: a, subtitle: r, subtitleLabel: t, className: i, ...o }, u) => {
|
|
1011
|
+
const { mode: n } = y(), m = n !== "icon", l = typeof r == "string" ? r : t;
|
|
1012
|
+
return /* @__PURE__ */ v(
|
|
1026
1013
|
"button",
|
|
1027
1014
|
{
|
|
1028
1015
|
ref: u,
|
|
1029
1016
|
type: "button",
|
|
1030
1017
|
"aria-label": l ? `${a}, ${l}` : a,
|
|
1031
|
-
className: [Ks(),
|
|
1018
|
+
className: [Ks(), i].filter(Boolean).join(" "),
|
|
1032
1019
|
...o,
|
|
1033
1020
|
children: [
|
|
1034
1021
|
/* @__PURE__ */ e(
|
|
@@ -1039,7 +1026,7 @@ const Ks = B(
|
|
|
1039
1026
|
children: s
|
|
1040
1027
|
}
|
|
1041
1028
|
),
|
|
1042
|
-
m ? /* @__PURE__ */
|
|
1029
|
+
m ? /* @__PURE__ */ v("span", { className: "ds:flex-1 ds:min-w-0 ds:text-start", children: [
|
|
1043
1030
|
/* @__PURE__ */ e("span", { className: "ds:block ds:truncate type-label", children: a }),
|
|
1044
1031
|
r ? typeof r == "string" ? /* @__PURE__ */ e("span", { className: "ds:block ds:truncate type-meta ds:text-[color:var(--muted-foreground)]", children: r }) : /* @__PURE__ */ e("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
|
|
1045
1032
|
] }) : null
|
|
@@ -1047,8 +1034,8 @@ const Ks = B(
|
|
|
1047
1034
|
}
|
|
1048
1035
|
);
|
|
1049
1036
|
});
|
|
1050
|
-
|
|
1051
|
-
const
|
|
1037
|
+
_s.displayName = "SidebarProfilePill";
|
|
1038
|
+
const Ms = [
|
|
1052
1039
|
"ds:inline-flex ds:items-center ds:justify-center ds:shrink-0",
|
|
1053
1040
|
"ds:min-w-[var(--min-target-size)] ds:min-h-[var(--min-target-size)]",
|
|
1054
1041
|
"ds:rounded-[var(--radius-sm)]",
|
|
@@ -1058,21 +1045,21 @@ const Os = [
|
|
|
1058
1045
|
"ds:focus-visible:outline-[var(--ring)] ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
|
|
1059
1046
|
"ds:forced-colors:focus-visible:outline-[CanvasText]",
|
|
1060
1047
|
"ds:transition-colors ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none"
|
|
1061
|
-
].join(" "),
|
|
1048
|
+
].join(" "), Gs = b(({ className: s, "aria-label": a, onClick: r, ...t }, i) => {
|
|
1062
1049
|
const { t: o } = D(), { mode: u, transitionTo: n } = y();
|
|
1063
1050
|
if (u === "overlay") return null;
|
|
1064
|
-
const m = u === "expanded", l = a ?? (m ? o("navigation.sidebar.collapse", "Collapse sidebar") : o("navigation.sidebar.expand", "Expand sidebar")),
|
|
1051
|
+
const m = u === "expanded", l = a ?? (m ? o("navigation.sidebar.collapse", "Collapse sidebar") : o("navigation.sidebar.expand", "Expand sidebar")), f = /* @__PURE__ */ e(
|
|
1065
1052
|
"button",
|
|
1066
1053
|
{
|
|
1067
|
-
ref:
|
|
1054
|
+
ref: i,
|
|
1068
1055
|
type: "button",
|
|
1069
1056
|
"aria-label": l,
|
|
1070
1057
|
"aria-expanded": m,
|
|
1071
1058
|
onClick: (x) => {
|
|
1072
1059
|
n == null || n(m ? "icon" : "expanded"), r == null || r(x);
|
|
1073
1060
|
},
|
|
1074
|
-
className: [
|
|
1075
|
-
...
|
|
1061
|
+
className: [Ms, s].filter(Boolean).join(" "),
|
|
1062
|
+
...t,
|
|
1076
1063
|
children: m ? /* @__PURE__ */ e(
|
|
1077
1064
|
vs,
|
|
1078
1065
|
{
|
|
@@ -1080,7 +1067,7 @@ const Os = [
|
|
|
1080
1067
|
className: "ds:size-4 ds:rtl:-scale-x-100"
|
|
1081
1068
|
}
|
|
1082
1069
|
) : /* @__PURE__ */ e(
|
|
1083
|
-
|
|
1070
|
+
ps,
|
|
1084
1071
|
{
|
|
1085
1072
|
"aria-hidden": "true",
|
|
1086
1073
|
className: "ds:size-4 ds:rtl:-scale-x-100"
|
|
@@ -1088,9 +1075,9 @@ const Os = [
|
|
|
1088
1075
|
)
|
|
1089
1076
|
}
|
|
1090
1077
|
);
|
|
1091
|
-
return /* @__PURE__ */
|
|
1092
|
-
/* @__PURE__ */ e(S.Trigger, { asChild: !0, children:
|
|
1093
|
-
/* @__PURE__ */ e(S.Portal, { children: /* @__PURE__ */
|
|
1078
|
+
return /* @__PURE__ */ v(S.Root, { children: [
|
|
1079
|
+
/* @__PURE__ */ e(S.Trigger, { asChild: !0, children: f }),
|
|
1080
|
+
/* @__PURE__ */ e(S.Portal, { children: /* @__PURE__ */ v(
|
|
1094
1081
|
S.Content,
|
|
1095
1082
|
{
|
|
1096
1083
|
side: u === "icon" ? "right" : "top",
|
|
@@ -1110,26 +1097,26 @@ const Os = [
|
|
|
1110
1097
|
) })
|
|
1111
1098
|
] });
|
|
1112
1099
|
});
|
|
1113
|
-
|
|
1100
|
+
Gs.displayName = "SidebarCollapseTrigger";
|
|
1114
1101
|
export {
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1102
|
+
xs as S,
|
|
1103
|
+
ws as a,
|
|
1104
|
+
Gs as b,
|
|
1118
1105
|
Vs as c,
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1106
|
+
Fs as d,
|
|
1107
|
+
Ns as e,
|
|
1108
|
+
zs as f,
|
|
1109
|
+
ys as g,
|
|
1123
1110
|
Q as h,
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1111
|
+
Bs as i,
|
|
1112
|
+
Cs as j,
|
|
1113
|
+
Ts as k,
|
|
1127
1114
|
L as l,
|
|
1128
|
-
|
|
1129
|
-
|
|
1115
|
+
Rs as m,
|
|
1116
|
+
_s as n,
|
|
1130
1117
|
J as o,
|
|
1131
|
-
|
|
1132
|
-
|
|
1118
|
+
Ds as p,
|
|
1119
|
+
gs as s,
|
|
1133
1120
|
y as u
|
|
1134
1121
|
};
|
|
1135
|
-
//# sourceMappingURL=sidebar-
|
|
1122
|
+
//# sourceMappingURL=sidebar-DkyC6GvS.js.map
|