@alfadocs/ui-kit 0.97.0 → 0.97.2
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/{marketplace-app-shell-35eRpT3r.js → marketplace-app-shell-Bv1ZO4XO.js} +2 -2
- package/dist/_chunks/{sidebar-C0PbwJBc.js → sidebar-C-Gr2LL-.js} +242 -234
- package/dist/agent-catalog.json +1 -1
- package/dist/components/sidebar/index.js +1 -1
- package/dist/index.js +2 -2
- package/dist/patterns/marketplace-app-shell/index.js +1 -1
- package/package.json +1 -1
package/dist/_chunks/{marketplace-app-shell-35eRpT3r.js → marketplace-app-shell-Bv1ZO4XO.js}
RENAMED
|
@@ -11,7 +11,7 @@ import { T as q } from "./tab-bar-Axhk6xzx.js";
|
|
|
11
11
|
import { a as A, H as G, g as J, f as z, e as K, c as Q, d as U } from "./header-CjwasYnn.js";
|
|
12
12
|
import { H as X } from "./header-settings-CLwFqMHI.js";
|
|
13
13
|
import { S as Y } from "./sign-in-with-alfadocs-button-UlYefZpI.js";
|
|
14
|
-
import { S as Z, g as _, b as aa, a as ea, j as sa, k as ra, i as ta, h as I } from "./sidebar-
|
|
14
|
+
import { S as Z, g as _, b as aa, a as ea, j as sa, k as ra, i as ta, h as I } from "./sidebar-C-Gr2LL-.js";
|
|
15
15
|
import { T as na } from "./theme-root-BOO73p5t.js";
|
|
16
16
|
import { a as da } from "./tooltip-DvmfrNvB.js";
|
|
17
17
|
import { u as ia } from "./use-theme-CAuo6EYT.js";
|
|
@@ -520,4 +520,4 @@ export {
|
|
|
520
520
|
ka as M,
|
|
521
521
|
g as P
|
|
522
522
|
};
|
|
523
|
-
//# sourceMappingURL=marketplace-app-shell-
|
|
523
|
+
//# sourceMappingURL=marketplace-app-shell-Bv1ZO4XO.js.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as s, jsxs as u, Fragment as X } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as b, useState as B, useEffect as L, useCallback as ss, useRef as G, useMemo as $, useId as
|
|
2
|
+
import { forwardRef as b, useState as B, useEffect as L, useCallback as ss, useRef as G, useMemo as $, useId as ds, useContext as q, createContext as Z } from "react";
|
|
3
3
|
import * as R from "@radix-ui/react-dialog";
|
|
4
4
|
import * as K from "@radix-ui/react-collapsible";
|
|
5
5
|
import * as E from "@radix-ui/react-accordion";
|
|
6
6
|
import * as h from "@radix-ui/react-tooltip";
|
|
7
|
-
import { a as
|
|
8
|
-
import { S as
|
|
7
|
+
import { a as ts } from "./accordion-C11v9ouP.js";
|
|
8
|
+
import { S as os } from "./scroll-area-BZOvUhwQ.js";
|
|
9
9
|
import { Slot as ls } from "@radix-ui/react-slot";
|
|
10
10
|
import { c as T } from "./index-D2ZczOXr.js";
|
|
11
11
|
import { useTranslation as A } from "react-i18next";
|
|
@@ -87,7 +87,7 @@ const zs = [
|
|
|
87
87
|
}, O = Z({
|
|
88
88
|
mode: "expanded",
|
|
89
89
|
density: "default"
|
|
90
|
-
}),
|
|
90
|
+
}), N = () => q(O), es = "ui.sidebar.state";
|
|
91
91
|
function Cs(e) {
|
|
92
92
|
if (typeof window > "u") return e;
|
|
93
93
|
try {
|
|
@@ -169,31 +169,31 @@ const J = T(
|
|
|
169
169
|
state: e,
|
|
170
170
|
defaultState: a = "expanded",
|
|
171
171
|
onStateChange: r,
|
|
172
|
-
density:
|
|
173
|
-
open:
|
|
174
|
-
onOpenChange:
|
|
175
|
-
resizable:
|
|
176
|
-
"aria-label":
|
|
177
|
-
className:
|
|
178
|
-
children:
|
|
172
|
+
density: n = "default",
|
|
173
|
+
open: d,
|
|
174
|
+
onOpenChange: o,
|
|
175
|
+
resizable: t = !1,
|
|
176
|
+
"aria-label": l,
|
|
177
|
+
className: c,
|
|
178
|
+
children: m,
|
|
179
179
|
id: f,
|
|
180
180
|
...g
|
|
181
|
-
},
|
|
182
|
-
const { t:
|
|
183
|
-
() =>
|
|
184
|
-
),
|
|
181
|
+
}, y) => {
|
|
182
|
+
const { t: x } = A(), i = e !== void 0, [w, z] = B(
|
|
183
|
+
() => i ? e : Cs(a)
|
|
184
|
+
), v = i ? e : w;
|
|
185
185
|
L(() => {
|
|
186
|
-
|
|
187
|
-
}, [
|
|
186
|
+
i || ks(w);
|
|
187
|
+
}, [w, i]);
|
|
188
188
|
const S = ss(
|
|
189
189
|
(k) => {
|
|
190
|
-
|
|
190
|
+
i || z(k), r == null || r(k);
|
|
191
191
|
},
|
|
192
|
-
[
|
|
193
|
-
), j =
|
|
192
|
+
[i, r]
|
|
193
|
+
), j = l ?? x("navigation.sidebar.label"), C = G(v);
|
|
194
194
|
L(() => {
|
|
195
|
-
C.current =
|
|
196
|
-
}, [
|
|
195
|
+
C.current = v;
|
|
196
|
+
}, [v]);
|
|
197
197
|
const F = $(
|
|
198
198
|
() => ({
|
|
199
199
|
getIsCollapsed: () => C.current !== "expanded",
|
|
@@ -205,20 +205,20 @@ const J = T(
|
|
|
205
205
|
[S]
|
|
206
206
|
);
|
|
207
207
|
cs(js, F, f);
|
|
208
|
-
const D = G(null), _ = $(() => ms(
|
|
208
|
+
const D = G(null), _ = $(() => ms(y, D), [y]), { separatorProps: U, isResizing: P } = us({
|
|
209
209
|
edge: "inline-end",
|
|
210
210
|
targetRef: D,
|
|
211
211
|
cssProperty: "--sidebar-modern-expanded-size",
|
|
212
212
|
minSize: Ts,
|
|
213
213
|
maxSize: Is,
|
|
214
214
|
defaultSize: Rs,
|
|
215
|
-
disabled: !
|
|
216
|
-
}), M =
|
|
217
|
-
return
|
|
215
|
+
disabled: !t || v !== "expanded"
|
|
216
|
+
}), M = t && v === "expanded";
|
|
217
|
+
return v === "overlay" ? /* @__PURE__ */ s(
|
|
218
218
|
O.Provider,
|
|
219
219
|
{
|
|
220
|
-
value: { mode: "overlay", density:
|
|
221
|
-
children: /* @__PURE__ */ s(R.Root, { open:
|
|
220
|
+
value: { mode: "overlay", density: n, transitionTo: S },
|
|
221
|
+
children: /* @__PURE__ */ s(R.Root, { open: d, onOpenChange: o, children: /* @__PURE__ */ u(R.Portal, { children: [
|
|
222
222
|
/* @__PURE__ */ s(
|
|
223
223
|
R.Overlay,
|
|
224
224
|
{
|
|
@@ -242,14 +242,14 @@ const J = T(
|
|
|
242
242
|
// utilities and compiled to nothing.
|
|
243
243
|
"ds:start-0 ds:top-0",
|
|
244
244
|
"ds:h-dvh",
|
|
245
|
-
J({ mode: "overlay", density:
|
|
245
|
+
J({ mode: "overlay", density: n }),
|
|
246
246
|
"ds:shadow-[var(--shadow-xl)]",
|
|
247
247
|
"ds:data-[state=open]:animate-in ds:data-[state=closed]:animate-out",
|
|
248
248
|
"ds:data-[state=open]:slide-in-from-left ds:data-[state=closed]:slide-out-to-left",
|
|
249
249
|
"ds:rtl:data-[state=open]:slide-in-from-right ds:rtl:data-[state=closed]:slide-out-to-right",
|
|
250
250
|
"ds:motion-reduce:animate-none",
|
|
251
251
|
"ds:focus:outline-none",
|
|
252
|
-
|
|
252
|
+
c ?? ""
|
|
253
253
|
].filter(Boolean).join(" "),
|
|
254
254
|
children: [
|
|
255
255
|
/* @__PURE__ */ s(
|
|
@@ -262,14 +262,14 @@ const J = T(
|
|
|
262
262
|
"data-component-id": f,
|
|
263
263
|
className: "ds:flex ds:flex-col ds:h-full",
|
|
264
264
|
...g,
|
|
265
|
-
children:
|
|
265
|
+
children: m
|
|
266
266
|
}
|
|
267
267
|
),
|
|
268
268
|
/* @__PURE__ */ s(R.Close, { asChild: !0, children: /* @__PURE__ */ s(
|
|
269
269
|
"button",
|
|
270
270
|
{
|
|
271
271
|
type: "button",
|
|
272
|
-
"aria-label":
|
|
272
|
+
"aria-label": x("navigation.sidebar.close"),
|
|
273
273
|
className: [
|
|
274
274
|
"ds:absolute ds:top-[var(--spacing-sm)] ds:end-[var(--spacing-sm)]",
|
|
275
275
|
"ds:inline-flex ds:items-center ds:justify-center",
|
|
@@ -290,7 +290,7 @@ const J = T(
|
|
|
290
290
|
) : /* @__PURE__ */ s(
|
|
291
291
|
O.Provider,
|
|
292
292
|
{
|
|
293
|
-
value: { mode:
|
|
293
|
+
value: { mode: v, density: n, transitionTo: S },
|
|
294
294
|
children: /* @__PURE__ */ s(h.Provider, { delayDuration: 300, children: /* @__PURE__ */ u(
|
|
295
295
|
"nav",
|
|
296
296
|
{
|
|
@@ -299,22 +299,22 @@ const J = T(
|
|
|
299
299
|
"aria-label": j,
|
|
300
300
|
"data-component": "sidebar",
|
|
301
301
|
"data-component-id": f,
|
|
302
|
-
"data-mode":
|
|
303
|
-
"data-density":
|
|
302
|
+
"data-mode": v,
|
|
303
|
+
"data-density": n,
|
|
304
304
|
"data-resizing": P ? "" : void 0,
|
|
305
305
|
className: [
|
|
306
|
-
J({ mode:
|
|
307
|
-
|
|
308
|
-
|
|
306
|
+
J({ mode: v, density: n }),
|
|
307
|
+
n === "compact" ? "ds:density-compact" : "",
|
|
308
|
+
c ?? ""
|
|
309
309
|
].filter(Boolean).join(" "),
|
|
310
310
|
...g,
|
|
311
311
|
children: [
|
|
312
|
-
|
|
312
|
+
m,
|
|
313
313
|
M ? /* @__PURE__ */ s(
|
|
314
314
|
"div",
|
|
315
315
|
{
|
|
316
316
|
...U,
|
|
317
|
-
"aria-label":
|
|
317
|
+
"aria-label": x("navigation.sidebar.resize"),
|
|
318
318
|
"data-resizing": P ? "" : void 0,
|
|
319
319
|
className: Bs
|
|
320
320
|
}
|
|
@@ -328,7 +328,7 @@ const J = T(
|
|
|
328
328
|
);
|
|
329
329
|
As.displayName = "Sidebar";
|
|
330
330
|
const Ds = b(({ className: e, ...a }, r) => {
|
|
331
|
-
const { mode:
|
|
331
|
+
const { mode: n } = N();
|
|
332
332
|
return /* @__PURE__ */ s(
|
|
333
333
|
"div",
|
|
334
334
|
{
|
|
@@ -336,9 +336,14 @@ const Ds = b(({ className: e, ...a }, r) => {
|
|
|
336
336
|
className: [
|
|
337
337
|
"ds:relative ds:flex ds:items-center ds:gap-[var(--spacing-xs)]",
|
|
338
338
|
"ds:min-h-[var(--min-target-size)]",
|
|
339
|
-
//
|
|
340
|
-
// control
|
|
341
|
-
|
|
339
|
+
// Expanded uses the SAME inline padding as `SidebarBody`, so the
|
|
340
|
+
// header's first control starts on the nav items' left edge and its
|
|
341
|
+
// icon can land on the nav icon column (the trigger adds the item's
|
|
342
|
+
// own `ps` on top — see `SidebarCollapseTrigger`). In the rail,
|
|
343
|
+
// `justify-center` centres the control exactly as the nav icons
|
|
344
|
+
// centre. Header content therefore tracks the nav column in both
|
|
345
|
+
// modes instead of sitting on its own axis.
|
|
346
|
+
n === "icon" ? "ds:justify-center ds:ps-[var(--spacing-xs)] ds:pe-[var(--spacing-xs)]" : "ds:ps-[var(--spacing-xs)] ds:pe-[var(--spacing-xs)]",
|
|
342
347
|
"ds:py-[var(--spacing-sm)]",
|
|
343
348
|
// Hairline border + downward chrome shadow cast the header as a
|
|
344
349
|
// sticky top band above the scrolling body.
|
|
@@ -352,7 +357,7 @@ const Ds = b(({ className: e, ...a }, r) => {
|
|
|
352
357
|
});
|
|
353
358
|
Ds.displayName = "SidebarHeader";
|
|
354
359
|
const _s = b(
|
|
355
|
-
({ className: e, children: a, ...r },
|
|
360
|
+
({ className: e, children: a, ...r }, n) => (
|
|
356
361
|
// Scroll the nav sections through the kit `ScrollArea` (8px tokenised
|
|
357
362
|
// scrollbar) instead of native `overflow-auto` (the OS scrollbar), so the
|
|
358
363
|
// sidebar matches the Control Room rail and the kit's trays. `flex-1 min-h-0`
|
|
@@ -360,14 +365,14 @@ const _s = b(
|
|
|
360
365
|
// body box (the ScrollArea root). Padding + `ref` + div props go on the inner
|
|
361
366
|
// content div so the scrollbar sits flush at the inline-end edge.
|
|
362
367
|
/* @__PURE__ */ s(
|
|
363
|
-
|
|
368
|
+
os,
|
|
364
369
|
{
|
|
365
370
|
orientation: "vertical",
|
|
366
371
|
className: ["ds:flex-1 ds:min-h-0", e ?? ""].filter(Boolean).join(" "),
|
|
367
372
|
children: /* @__PURE__ */ s(
|
|
368
373
|
"div",
|
|
369
374
|
{
|
|
370
|
-
ref:
|
|
375
|
+
ref: n,
|
|
371
376
|
className: "ds:ps-[var(--spacing-xs)] ds:pe-[var(--spacing-xs)] ds:py-[var(--spacing-sm)]",
|
|
372
377
|
...r,
|
|
373
378
|
children: a
|
|
@@ -379,7 +384,7 @@ const _s = b(
|
|
|
379
384
|
);
|
|
380
385
|
_s.displayName = "SidebarBody";
|
|
381
386
|
const Ps = b(({ className: e, ...a }, r) => {
|
|
382
|
-
const { mode:
|
|
387
|
+
const { mode: n } = N();
|
|
383
388
|
return /* @__PURE__ */ s(
|
|
384
389
|
"div",
|
|
385
390
|
{
|
|
@@ -388,7 +393,7 @@ const Ps = b(({ className: e, ...a }, r) => {
|
|
|
388
393
|
"ds:relative ds:flex ds:items-center ds:gap-[var(--spacing-xs)]",
|
|
389
394
|
// Icon-rail is 64px — two 44×44 controls can't sit side-by-side,
|
|
390
395
|
// so switch to a vertical stack and let each row self-centre.
|
|
391
|
-
|
|
396
|
+
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)]",
|
|
392
397
|
"ds:min-h-[var(--min-target-size)]",
|
|
393
398
|
"ds:py-[var(--spacing-sm)]",
|
|
394
399
|
// Hairline border + upward chrome shadow cast the footer as a
|
|
@@ -422,21 +427,21 @@ const Es = [
|
|
|
422
427
|
label: e,
|
|
423
428
|
icon: a,
|
|
424
429
|
collapsible: r = !0,
|
|
425
|
-
defaultOpen:
|
|
426
|
-
open:
|
|
427
|
-
onOpenChange:
|
|
428
|
-
className:
|
|
429
|
-
children:
|
|
430
|
-
...
|
|
431
|
-
},
|
|
432
|
-
const { mode: f } =
|
|
430
|
+
defaultOpen: n = !0,
|
|
431
|
+
open: d,
|
|
432
|
+
onOpenChange: o,
|
|
433
|
+
className: t,
|
|
434
|
+
children: l,
|
|
435
|
+
...c
|
|
436
|
+
}, m) => {
|
|
437
|
+
const { mode: f } = N(), g = f === "icon", y = r && !g && !!e, x = [
|
|
433
438
|
"ds:flex ds:flex-col",
|
|
434
439
|
"ds:gap-[var(--spacing-xs)]",
|
|
435
440
|
"ds:mt-[var(--spacing-sm)]",
|
|
436
|
-
|
|
441
|
+
t ?? ""
|
|
437
442
|
].filter(Boolean).join(" ");
|
|
438
|
-
if (!
|
|
439
|
-
return /* @__PURE__ */ u("div", { ref:
|
|
443
|
+
if (!y)
|
|
444
|
+
return /* @__PURE__ */ u("div", { ref: m, className: x, ...c, children: [
|
|
440
445
|
!!e || !!a ? /* @__PURE__ */ u(
|
|
441
446
|
"span",
|
|
442
447
|
{
|
|
@@ -454,19 +459,19 @@ const Es = [
|
|
|
454
459
|
]
|
|
455
460
|
}
|
|
456
461
|
) : null,
|
|
457
|
-
|
|
462
|
+
l
|
|
458
463
|
] });
|
|
459
|
-
const
|
|
464
|
+
const i = "section";
|
|
460
465
|
return /* @__PURE__ */ s(
|
|
461
466
|
E.Root,
|
|
462
467
|
{
|
|
463
468
|
type: "single",
|
|
464
469
|
collapsible: !0,
|
|
465
|
-
defaultValue:
|
|
466
|
-
value:
|
|
467
|
-
onValueChange:
|
|
470
|
+
defaultValue: d === void 0 && n ? i : void 0,
|
|
471
|
+
value: d === void 0 ? void 0 : d ? i : "",
|
|
472
|
+
onValueChange: o ? (w) => o(w === i) : void 0,
|
|
468
473
|
asChild: !0,
|
|
469
|
-
children: /* @__PURE__ */ s("div", { ref:
|
|
474
|
+
children: /* @__PURE__ */ s("div", { ref: m, className: x, ...c, children: /* @__PURE__ */ u(E.Item, { value: i, children: [
|
|
470
475
|
/* @__PURE__ */ s(E.Header, { className: "ds:flex", children: /* @__PURE__ */ u(E.Trigger, { className: Es, children: [
|
|
471
476
|
a ? /* @__PURE__ */ s("span", { "aria-hidden": "true", className: Q, children: a }) : null,
|
|
472
477
|
/* @__PURE__ */ s("span", { className: "ds:flex-1 ds:text-start", children: e }),
|
|
@@ -479,11 +484,11 @@ const Es = [
|
|
|
479
484
|
)
|
|
480
485
|
] }) }),
|
|
481
486
|
/* @__PURE__ */ s(
|
|
482
|
-
|
|
487
|
+
ts,
|
|
483
488
|
{
|
|
484
489
|
"aria-label": e,
|
|
485
490
|
className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)] ds:[&>div]:contents",
|
|
486
|
-
children:
|
|
491
|
+
children: l
|
|
487
492
|
}
|
|
488
493
|
)
|
|
489
494
|
] }) })
|
|
@@ -508,22 +513,22 @@ const Hs = [
|
|
|
508
513
|
label: e,
|
|
509
514
|
icon: a,
|
|
510
515
|
children: r,
|
|
511
|
-
className:
|
|
512
|
-
defaultOpen:
|
|
513
|
-
open:
|
|
514
|
-
onOpenChange:
|
|
515
|
-
...
|
|
516
|
-
},
|
|
517
|
-
const { mode:
|
|
516
|
+
className: n,
|
|
517
|
+
defaultOpen: d,
|
|
518
|
+
open: o,
|
|
519
|
+
onOpenChange: t,
|
|
520
|
+
...l
|
|
521
|
+
}, c) => {
|
|
522
|
+
const { mode: m } = N();
|
|
518
523
|
return /* @__PURE__ */ u(
|
|
519
524
|
K.Root,
|
|
520
525
|
{
|
|
521
|
-
ref:
|
|
522
|
-
defaultOpen:
|
|
523
|
-
open:
|
|
524
|
-
onOpenChange:
|
|
525
|
-
className:
|
|
526
|
-
...
|
|
526
|
+
ref: c,
|
|
527
|
+
defaultOpen: d,
|
|
528
|
+
open: o,
|
|
529
|
+
onOpenChange: t,
|
|
530
|
+
className: n,
|
|
531
|
+
...l,
|
|
527
532
|
children: [
|
|
528
533
|
/* @__PURE__ */ u(K.Trigger, { className: Hs, children: [
|
|
529
534
|
a ? /* @__PURE__ */ s(
|
|
@@ -539,12 +544,12 @@ const Hs = [
|
|
|
539
544
|
{
|
|
540
545
|
className: [
|
|
541
546
|
"ds:flex-1 ds:text-start",
|
|
542
|
-
|
|
547
|
+
m === "icon" ? "ds:sr-only" : ""
|
|
543
548
|
].join(" "),
|
|
544
549
|
children: e
|
|
545
550
|
}
|
|
546
551
|
),
|
|
547
|
-
|
|
552
|
+
m !== "icon" ? /* @__PURE__ */ s(
|
|
548
553
|
H,
|
|
549
554
|
{
|
|
550
555
|
"aria-hidden": "true",
|
|
@@ -631,55 +636,55 @@ const Us = T(
|
|
|
631
636
|
isActive: !1
|
|
632
637
|
}
|
|
633
638
|
}
|
|
634
|
-
), rs = Z(null),
|
|
639
|
+
), rs = Z(null), is = b(
|
|
635
640
|
({
|
|
636
641
|
asChild: e = !1,
|
|
637
642
|
isActive: a = !1,
|
|
638
643
|
navId: r,
|
|
639
|
-
isPinned:
|
|
640
|
-
onPinChange:
|
|
641
|
-
pinLabel:
|
|
642
|
-
className:
|
|
643
|
-
children:
|
|
644
|
-
"aria-label":
|
|
645
|
-
...
|
|
644
|
+
isPinned: n = !1,
|
|
645
|
+
onPinChange: d,
|
|
646
|
+
pinLabel: o,
|
|
647
|
+
className: t,
|
|
648
|
+
children: l,
|
|
649
|
+
"aria-label": c,
|
|
650
|
+
...m
|
|
646
651
|
}, f) => {
|
|
647
|
-
const { mode: g, density:
|
|
648
|
-
|
|
652
|
+
const { mode: g, density: y } = N(), x = e ? ls : "a", i = d !== void 0 && g !== "icon", [w, z] = B(null), v = g === "icon" && c != null && w ? `${c}, ${w}` : c, S = /* @__PURE__ */ s(
|
|
653
|
+
x,
|
|
649
654
|
{
|
|
650
655
|
ref: f,
|
|
651
656
|
"aria-current": a ? "page" : void 0,
|
|
652
|
-
"aria-label":
|
|
657
|
+
"aria-label": v,
|
|
653
658
|
"data-nav-id": r,
|
|
654
659
|
className: Us({
|
|
655
660
|
mode: g,
|
|
656
|
-
density:
|
|
661
|
+
density: y,
|
|
657
662
|
isActive: a,
|
|
658
|
-
className:
|
|
663
|
+
className: i ? "ds:flex-1 ds:min-w-0" : t
|
|
659
664
|
}),
|
|
660
|
-
...
|
|
661
|
-
children:
|
|
665
|
+
...m,
|
|
666
|
+
children: l
|
|
662
667
|
}
|
|
663
|
-
), j =
|
|
668
|
+
), j = i ? /* @__PURE__ */ u(
|
|
664
669
|
"div",
|
|
665
670
|
{
|
|
666
671
|
className: [
|
|
667
672
|
"ds:group/item ds:flex ds:items-center ds:gap-[var(--spacing-2xs)]",
|
|
668
|
-
|
|
673
|
+
t ?? ""
|
|
669
674
|
].filter(Boolean).join(" "),
|
|
670
675
|
children: [
|
|
671
676
|
S,
|
|
672
677
|
/* @__PURE__ */ s(
|
|
673
678
|
Y,
|
|
674
679
|
{
|
|
675
|
-
isPinned:
|
|
676
|
-
label:
|
|
677
|
-
onPinChange:
|
|
680
|
+
isPinned: n,
|
|
681
|
+
label: o ?? c ?? "",
|
|
682
|
+
onPinChange: d
|
|
678
683
|
}
|
|
679
684
|
)
|
|
680
685
|
]
|
|
681
686
|
}
|
|
682
|
-
) : S, C = g === "icon" &&
|
|
687
|
+
) : S, C = g === "icon" && c ? /* @__PURE__ */ u(h.Root, { children: [
|
|
683
688
|
/* @__PURE__ */ s(h.Trigger, { asChild: !0, children: j }),
|
|
684
689
|
/* @__PURE__ */ s(h.Portal, { children: /* @__PURE__ */ u(
|
|
685
690
|
h.Content,
|
|
@@ -694,7 +699,7 @@ const Us = T(
|
|
|
694
699
|
"ds:animate-in ds:fade-in ds:zoom-in-95 ds:motion-reduce:animate-none"
|
|
695
700
|
].join(" "),
|
|
696
701
|
children: [
|
|
697
|
-
|
|
702
|
+
c,
|
|
698
703
|
/* @__PURE__ */ s(h.Arrow, { className: "ds:fill-[var(--foreground)]" })
|
|
699
704
|
]
|
|
700
705
|
}
|
|
@@ -703,11 +708,11 @@ const Us = T(
|
|
|
703
708
|
return /* @__PURE__ */ s(rs.Provider, { value: z, children: C });
|
|
704
709
|
}
|
|
705
710
|
);
|
|
706
|
-
|
|
707
|
-
const Ms = b(({ className: e, children: a, ...r },
|
|
711
|
+
is.displayName = "SidebarItem";
|
|
712
|
+
const Ms = b(({ className: e, children: a, ...r }, n) => /* @__PURE__ */ s(
|
|
708
713
|
"span",
|
|
709
714
|
{
|
|
710
|
-
ref:
|
|
715
|
+
ref: n,
|
|
711
716
|
"aria-hidden": "true",
|
|
712
717
|
className: [
|
|
713
718
|
"ds:inline-flex ds:shrink-0 ds:items-center ds:justify-center",
|
|
@@ -726,17 +731,17 @@ const Ms = b(({ className: e, children: a, ...r }, i) => /* @__PURE__ */ s(
|
|
|
726
731
|
}
|
|
727
732
|
));
|
|
728
733
|
Ms.displayName = "SidebarItemIcon";
|
|
729
|
-
const Vs = b(({ className: e, children: a, ...r },
|
|
730
|
-
const { mode:
|
|
734
|
+
const Vs = b(({ className: e, children: a, ...r }, n) => {
|
|
735
|
+
const { mode: d } = N();
|
|
731
736
|
return /* @__PURE__ */ s(
|
|
732
737
|
"span",
|
|
733
738
|
{
|
|
734
|
-
ref:
|
|
739
|
+
ref: n,
|
|
735
740
|
className: [
|
|
736
741
|
"ds:flex-1",
|
|
737
742
|
"ds:overflow-hidden ds:text-ellipsis ds:whitespace-nowrap ds:break-normal",
|
|
738
743
|
"ds:text-start",
|
|
739
|
-
|
|
744
|
+
d === "icon" ? "ds:sr-only" : "",
|
|
740
745
|
e ?? ""
|
|
741
746
|
].filter(Boolean).join(" "),
|
|
742
747
|
...r,
|
|
@@ -745,21 +750,21 @@ const Vs = b(({ className: e, children: a, ...r }, i) => {
|
|
|
745
750
|
);
|
|
746
751
|
});
|
|
747
752
|
Vs.displayName = "SidebarItemLabel";
|
|
748
|
-
const Ks = b(({ className: e, children: a, ...r },
|
|
749
|
-
const { mode:
|
|
753
|
+
const Ks = b(({ className: e, children: a, ...r }, n) => {
|
|
754
|
+
const { mode: d } = N(), o = d === "icon", t = q(rs);
|
|
750
755
|
return L(() => {
|
|
751
|
-
if (!
|
|
752
|
-
const
|
|
753
|
-
return
|
|
754
|
-
}, [
|
|
756
|
+
if (!t || !o) return;
|
|
757
|
+
const l = a == null || a === !1 ? null : String(a).trim() || null;
|
|
758
|
+
return t(l), () => t(null);
|
|
759
|
+
}, [t, a, o]), /* @__PURE__ */ s(
|
|
755
760
|
"span",
|
|
756
761
|
{
|
|
757
|
-
ref:
|
|
758
|
-
"aria-hidden":
|
|
762
|
+
ref: n,
|
|
763
|
+
"aria-hidden": o ? "true" : void 0,
|
|
759
764
|
className: [
|
|
760
765
|
"ds:inline-flex ds:items-center ds:justify-center",
|
|
761
766
|
"ds:font-[var(--font-weight-semibold)]",
|
|
762
|
-
|
|
767
|
+
o ? [
|
|
763
768
|
"ds:absolute ds:top-[2px] ds:end-[2px]",
|
|
764
769
|
"ds:min-w-0 ds:size-[10px] ds:ps-0 ds:pe-0",
|
|
765
770
|
"ds:rounded-[var(--radius-full)]",
|
|
@@ -829,16 +834,16 @@ const Ls = T(
|
|
|
829
834
|
defaultVariants: { variant: "ghost" }
|
|
830
835
|
}
|
|
831
836
|
), Gs = b(
|
|
832
|
-
({ logo: e, name: a, showChevron: r = !0, variant:
|
|
833
|
-
const { mode:
|
|
837
|
+
({ logo: e, name: a, showChevron: r = !0, variant: n = "ghost", className: d, ...o }, t) => {
|
|
838
|
+
const { mode: l } = N(), c = l !== "icon";
|
|
834
839
|
return /* @__PURE__ */ u(
|
|
835
840
|
"button",
|
|
836
841
|
{
|
|
837
|
-
ref:
|
|
842
|
+
ref: t,
|
|
838
843
|
type: "button",
|
|
839
844
|
"aria-label": a,
|
|
840
|
-
className: [Ls({ variant:
|
|
841
|
-
...
|
|
845
|
+
className: [Ls({ variant: n }), d].filter(Boolean).join(" "),
|
|
846
|
+
...o,
|
|
842
847
|
children: [
|
|
843
848
|
/* @__PURE__ */ s(
|
|
844
849
|
"span",
|
|
@@ -848,7 +853,7 @@ const Ls = T(
|
|
|
848
853
|
children: e
|
|
849
854
|
}
|
|
850
855
|
),
|
|
851
|
-
|
|
856
|
+
c ? /* @__PURE__ */ u(X, { children: [
|
|
852
857
|
/* @__PURE__ */ s("span", { className: "ds:truncate ds:flex-1 ds:text-start ds:max-w-[var(--header-workspace-max-inline-size)]", children: a }),
|
|
853
858
|
r ? /* @__PURE__ */ s(
|
|
854
859
|
H,
|
|
@@ -887,17 +892,17 @@ const $s = T(
|
|
|
887
892
|
},
|
|
888
893
|
defaultVariants: { mode: "expanded" }
|
|
889
894
|
}
|
|
890
|
-
), Os = b(({ icon: e, label: a, shortcut: r, className:
|
|
891
|
-
const { mode:
|
|
895
|
+
), Os = b(({ icon: e, label: a, shortcut: r, className: n, ...d }, o) => {
|
|
896
|
+
const { mode: t } = N(), l = t !== "icon";
|
|
892
897
|
return /* @__PURE__ */ u(
|
|
893
898
|
"button",
|
|
894
899
|
{
|
|
895
|
-
ref:
|
|
900
|
+
ref: o,
|
|
896
901
|
type: "button",
|
|
897
902
|
"aria-label": a,
|
|
898
903
|
"aria-keyshortcuts": r,
|
|
899
|
-
className: [$s({ mode:
|
|
900
|
-
...
|
|
904
|
+
className: [$s({ mode: t }), n].filter(Boolean).join(" "),
|
|
905
|
+
...d,
|
|
901
906
|
children: [
|
|
902
907
|
/* @__PURE__ */ s(
|
|
903
908
|
"span",
|
|
@@ -907,7 +912,7 @@ const $s = T(
|
|
|
907
912
|
children: e
|
|
908
913
|
}
|
|
909
914
|
),
|
|
910
|
-
|
|
915
|
+
l ? /* @__PURE__ */ u(X, { children: [
|
|
911
916
|
/* @__PURE__ */ s("span", { className: "ds:truncate", children: a }),
|
|
912
917
|
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
|
|
913
918
|
] }) : null
|
|
@@ -941,22 +946,22 @@ const Xs = [
|
|
|
941
946
|
"ds:transition-[color,opacity,background-color] ds:duration-[var(--animation-duration)]",
|
|
942
947
|
"ds:motion-reduce:transition-none"
|
|
943
948
|
].join(" "), Y = b(
|
|
944
|
-
({ isPinned: e, onPinChange: a, label: r, className:
|
|
945
|
-
const { t } = A(), { mode:
|
|
946
|
-
if (
|
|
947
|
-
const
|
|
949
|
+
({ isPinned: e, onPinChange: a, label: r, className: n, onClick: d, ...o }, t) => {
|
|
950
|
+
const { t: l } = A(), { mode: c } = N();
|
|
951
|
+
if (c === "icon") return null;
|
|
952
|
+
const m = e ? l("navigation.sidebar.unpinItem", "Unpin {{label}}", { label: r }) : l("navigation.sidebar.pinItem", "Pin {{label}}", { label: r });
|
|
948
953
|
return /* @__PURE__ */ s(
|
|
949
954
|
"button",
|
|
950
955
|
{
|
|
951
|
-
ref:
|
|
956
|
+
ref: t,
|
|
952
957
|
type: "button",
|
|
953
|
-
"aria-label":
|
|
958
|
+
"aria-label": m,
|
|
954
959
|
"aria-pressed": e,
|
|
955
|
-
className: [Xs,
|
|
960
|
+
className: [Xs, n].filter(Boolean).join(" "),
|
|
956
961
|
onClick: (f) => {
|
|
957
|
-
f.preventDefault(), f.stopPropagation(), a == null || a(!e),
|
|
962
|
+
f.preventDefault(), f.stopPropagation(), a == null || a(!e), d == null || d(f);
|
|
958
963
|
},
|
|
959
|
-
...
|
|
964
|
+
...o,
|
|
960
965
|
children: /* @__PURE__ */ s(
|
|
961
966
|
hs,
|
|
962
967
|
{
|
|
@@ -970,24 +975,24 @@ const Xs = [
|
|
|
970
975
|
}
|
|
971
976
|
);
|
|
972
977
|
Y.displayName = "SidebarPinButton";
|
|
973
|
-
const
|
|
974
|
-
({ heading: e, emptyMessage: a, onReorder: r, className:
|
|
975
|
-
const { t } = A(),
|
|
976
|
-
z.current = !z.current,
|
|
978
|
+
const ns = Z(null), qs = () => q(ns), Zs = b(
|
|
979
|
+
({ heading: e, emptyMessage: a, onReorder: r, className: n, children: d, ...o }, t) => {
|
|
980
|
+
const { t: l } = A(), c = e ?? l("navigation.sidebar.favorites", "Favourites"), m = Array.isArray(d) ? d.filter(Boolean) : d ? [d] : [], f = m.length, g = f > 0, [y, x] = B(null), [i, w] = B(""), z = G(!1), v = ss((j) => {
|
|
981
|
+
z.current = !z.current, w(z.current ? j : `${j}`);
|
|
977
982
|
}, []), S = $(
|
|
978
|
-
() => ({ onReorder: r, count: f, dragSource:
|
|
979
|
-
[r, f,
|
|
983
|
+
() => ({ onReorder: r, count: f, dragSource: y, setDragSource: x, announce: v }),
|
|
984
|
+
[r, f, y, v]
|
|
980
985
|
);
|
|
981
|
-
return !g && !a ? null : /* @__PURE__ */ s(
|
|
986
|
+
return !g && !a ? null : /* @__PURE__ */ s(ns.Provider, { value: S, children: /* @__PURE__ */ u(
|
|
982
987
|
as,
|
|
983
988
|
{
|
|
984
|
-
ref:
|
|
985
|
-
label:
|
|
986
|
-
className:
|
|
987
|
-
...
|
|
989
|
+
ref: t,
|
|
990
|
+
label: c,
|
|
991
|
+
className: n,
|
|
992
|
+
...o,
|
|
988
993
|
children: [
|
|
989
|
-
g ?
|
|
990
|
-
/* @__PURE__ */ s("span", { role: "status", "aria-live": "polite", className: "ds:sr-only", children:
|
|
994
|
+
g ? m : /* @__PURE__ */ s("p", { className: "ds:ps-[var(--spacing-sm)] ds:pe-[var(--spacing-sm)] type-meta ds:text-[color:var(--muted-foreground)]", children: a }),
|
|
995
|
+
/* @__PURE__ */ s("span", { role: "status", "aria-live": "polite", className: "ds:sr-only", children: i })
|
|
991
996
|
]
|
|
992
997
|
}
|
|
993
998
|
) });
|
|
@@ -1032,73 +1037,73 @@ const Ws = T(
|
|
|
1032
1037
|
index: e,
|
|
1033
1038
|
isActive: a = !1,
|
|
1034
1039
|
asChild: r = !1,
|
|
1035
|
-
reorderLabel:
|
|
1036
|
-
isPinned:
|
|
1037
|
-
onPinChange:
|
|
1038
|
-
pinLabel:
|
|
1039
|
-
"aria-label":
|
|
1040
|
-
className:
|
|
1041
|
-
children:
|
|
1040
|
+
reorderLabel: n,
|
|
1041
|
+
isPinned: d = !1,
|
|
1042
|
+
onPinChange: o,
|
|
1043
|
+
pinLabel: t,
|
|
1044
|
+
"aria-label": l,
|
|
1045
|
+
className: c,
|
|
1046
|
+
children: m,
|
|
1042
1047
|
...f
|
|
1043
1048
|
}, g) => {
|
|
1044
|
-
const { t:
|
|
1045
|
-
if (!(
|
|
1046
|
-
const V = Math.max(0, Math.min(
|
|
1047
|
-
V !==
|
|
1048
|
-
|
|
1049
|
+
const { t: y } = A(), { mode: x } = N(), i = qs(), [w, z] = B(!1), v = !!(i != null && i.onReorder) && x !== "icon", S = n ?? l ?? "", j = ds(), C = (p, I) => {
|
|
1050
|
+
if (!(i != null && i.onReorder)) return;
|
|
1051
|
+
const V = Math.max(0, Math.min(i.count - 1, I));
|
|
1052
|
+
V !== p && (i.onReorder(p, V), i.announce(
|
|
1053
|
+
y(
|
|
1049
1054
|
"navigation.sidebar.reorderAnnounce",
|
|
1050
1055
|
"{{label}} moved to position {{to}} of {{total}}",
|
|
1051
|
-
{ label: S, to: V + 1, total:
|
|
1056
|
+
{ label: S, to: V + 1, total: i.count }
|
|
1052
1057
|
)
|
|
1053
1058
|
));
|
|
1054
|
-
}, F = (
|
|
1055
|
-
|
|
1056
|
-
}, D = (
|
|
1057
|
-
|
|
1059
|
+
}, F = (p) => {
|
|
1060
|
+
v && (p.altKey && p.key === "ArrowUp" ? (p.preventDefault(), C(e, e - 1)) : p.altKey && p.key === "ArrowDown" ? (p.preventDefault(), C(e, e + 1)) : p.key === "Home" && p.altKey ? (p.preventDefault(), C(e, 0)) : p.key === "End" && p.altKey && (p.preventDefault(), C(e, i.count - 1)));
|
|
1061
|
+
}, D = (p) => {
|
|
1062
|
+
v && (i == null || i.setDragSource(e), p.dataTransfer && (p.dataTransfer.effectAllowed = "move", p.dataTransfer.setData("ds:text/plain", String(e))));
|
|
1058
1063
|
}, _ = () => {
|
|
1059
|
-
|
|
1060
|
-
}, U = (
|
|
1061
|
-
!
|
|
1062
|
-
}, P = () => z(!1), M = (
|
|
1063
|
-
if (!
|
|
1064
|
-
|
|
1065
|
-
const I =
|
|
1064
|
+
i == null || i.setDragSource(null), z(!1);
|
|
1065
|
+
}, U = (p) => {
|
|
1066
|
+
!v || (i == null ? void 0 : i.dragSource) === null || (p.preventDefault(), p.dataTransfer && (p.dataTransfer.dropEffect = "move"), z(!0));
|
|
1067
|
+
}, P = () => z(!1), M = (p) => {
|
|
1068
|
+
if (!v) return;
|
|
1069
|
+
p.preventDefault();
|
|
1070
|
+
const I = i == null ? void 0 : i.dragSource;
|
|
1066
1071
|
z(!1), !(I == null || I === e) && C(I, e);
|
|
1067
|
-
}, k = (
|
|
1072
|
+
}, k = (i == null ? void 0 : i.dragSource) === e;
|
|
1068
1073
|
return /* @__PURE__ */ u(
|
|
1069
1074
|
"div",
|
|
1070
1075
|
{
|
|
1071
1076
|
className: Ws({
|
|
1072
1077
|
dragging: k,
|
|
1073
|
-
dropTarget:
|
|
1078
|
+
dropTarget: w && !k
|
|
1074
1079
|
}),
|
|
1075
|
-
draggable:
|
|
1076
|
-
onDragStart:
|
|
1077
|
-
onDragEnd:
|
|
1080
|
+
draggable: v || void 0,
|
|
1081
|
+
onDragStart: v ? D : void 0,
|
|
1082
|
+
onDragEnd: v ? _ : void 0,
|
|
1078
1083
|
onDragOver: U,
|
|
1079
1084
|
onDragLeave: P,
|
|
1080
1085
|
onDrop: M,
|
|
1081
1086
|
children: [
|
|
1082
1087
|
/* @__PURE__ */ s(
|
|
1083
|
-
|
|
1088
|
+
is,
|
|
1084
1089
|
{
|
|
1085
1090
|
ref: g,
|
|
1086
1091
|
isActive: a,
|
|
1087
1092
|
asChild: r,
|
|
1088
|
-
"aria-label":
|
|
1089
|
-
"aria-describedby":
|
|
1090
|
-
draggable:
|
|
1091
|
-
className: [
|
|
1093
|
+
"aria-label": l,
|
|
1094
|
+
"aria-describedby": v ? j : void 0,
|
|
1095
|
+
draggable: v ? !1 : void 0,
|
|
1096
|
+
className: [v ? "ds:flex-1 ds:min-w-0" : "", c ?? ""].filter(Boolean).join(" "),
|
|
1092
1097
|
...f,
|
|
1093
|
-
children:
|
|
1098
|
+
children: m
|
|
1094
1099
|
}
|
|
1095
1100
|
),
|
|
1096
|
-
|
|
1101
|
+
v ? /* @__PURE__ */ s(
|
|
1097
1102
|
"button",
|
|
1098
1103
|
{
|
|
1099
1104
|
type: "button",
|
|
1100
1105
|
id: j,
|
|
1101
|
-
"aria-label":
|
|
1106
|
+
"aria-label": y(
|
|
1102
1107
|
"navigation.sidebar.reorderHandle",
|
|
1103
1108
|
"Reorder {{label}}. Press Alt + Up or Alt + Down to move.",
|
|
1104
1109
|
{ label: S }
|
|
@@ -1108,12 +1113,12 @@ const Ws = T(
|
|
|
1108
1113
|
children: /* @__PURE__ */ s(bs, { "aria-hidden": "true", className: "ds:size-4" })
|
|
1109
1114
|
}
|
|
1110
1115
|
) : null,
|
|
1111
|
-
|
|
1116
|
+
o && x !== "icon" ? /* @__PURE__ */ s(
|
|
1112
1117
|
Y,
|
|
1113
1118
|
{
|
|
1114
|
-
isPinned:
|
|
1115
|
-
label:
|
|
1116
|
-
onPinChange:
|
|
1119
|
+
isPinned: d,
|
|
1120
|
+
label: t ?? l ?? "",
|
|
1121
|
+
onPinChange: o
|
|
1117
1122
|
}
|
|
1118
1123
|
) : null
|
|
1119
1124
|
]
|
|
@@ -1135,16 +1140,16 @@ const Qs = T(
|
|
|
1135
1140
|
"ds:forced-colors:focus-visible:outline-[CanvasText]",
|
|
1136
1141
|
"ds:no-underline"
|
|
1137
1142
|
].join(" ")
|
|
1138
|
-
), se = b(({ avatar: e, name: a, subtitle: r, subtitleLabel:
|
|
1139
|
-
const { mode:
|
|
1143
|
+
), se = b(({ avatar: e, name: a, subtitle: r, subtitleLabel: n, className: d, ...o }, t) => {
|
|
1144
|
+
const { mode: l } = N(), c = l !== "icon", m = typeof r == "string" ? r : n;
|
|
1140
1145
|
return /* @__PURE__ */ u(
|
|
1141
1146
|
"button",
|
|
1142
1147
|
{
|
|
1143
|
-
ref:
|
|
1148
|
+
ref: t,
|
|
1144
1149
|
type: "button",
|
|
1145
|
-
"aria-label":
|
|
1146
|
-
className: [Qs(),
|
|
1147
|
-
...
|
|
1150
|
+
"aria-label": m ? `${a}, ${m}` : a,
|
|
1151
|
+
className: [Qs(), d].filter(Boolean).join(" "),
|
|
1152
|
+
...o,
|
|
1148
1153
|
children: [
|
|
1149
1154
|
/* @__PURE__ */ s(
|
|
1150
1155
|
"span",
|
|
@@ -1154,7 +1159,7 @@ const Qs = T(
|
|
|
1154
1159
|
children: e
|
|
1155
1160
|
}
|
|
1156
1161
|
),
|
|
1157
|
-
|
|
1162
|
+
c ? /* @__PURE__ */ u("span", { className: "ds:flex-1 ds:min-w-0 ds:text-start", children: [
|
|
1158
1163
|
/* @__PURE__ */ s("span", { className: "ds:block ds:truncate type-label", children: a }),
|
|
1159
1164
|
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
|
|
1160
1165
|
] }) : null
|
|
@@ -1173,22 +1178,25 @@ const ee = [
|
|
|
1173
1178
|
"ds:focus-visible:outline-[var(--ring)] ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
|
|
1174
1179
|
"ds:forced-colors:focus-visible:outline-[CanvasText]",
|
|
1175
1180
|
"ds:transition-colors ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none"
|
|
1176
|
-
].join(" "), ae = b(({ className: e, "aria-label": a, onClick: r, ...
|
|
1177
|
-
const { t:
|
|
1178
|
-
if (
|
|
1179
|
-
const
|
|
1181
|
+
].join(" "), ae = b(({ className: e, "aria-label": a, onClick: r, ...n }, d) => {
|
|
1182
|
+
const { t: o } = A(), { mode: t, density: l, transitionTo: c } = N();
|
|
1183
|
+
if (t === "overlay") return null;
|
|
1184
|
+
const m = t === "expanded", f = m ? [
|
|
1185
|
+
"ds:justify-start",
|
|
1186
|
+
l === "compact" ? "ds:ps-[var(--spacing-xs)]" : "ds:ps-[var(--spacing-sm)]"
|
|
1187
|
+
].join(" ") : "ds:justify-center", g = a ?? (m ? o("navigation.sidebar.collapse", "Collapse sidebar") : o("navigation.sidebar.expand", "Expand sidebar")), y = /* @__PURE__ */ s(
|
|
1180
1188
|
"button",
|
|
1181
1189
|
{
|
|
1182
|
-
ref:
|
|
1190
|
+
ref: d,
|
|
1183
1191
|
type: "button",
|
|
1184
|
-
"aria-label":
|
|
1185
|
-
"aria-expanded":
|
|
1186
|
-
onClick: (
|
|
1187
|
-
|
|
1192
|
+
"aria-label": g,
|
|
1193
|
+
"aria-expanded": m,
|
|
1194
|
+
onClick: (x) => {
|
|
1195
|
+
c == null || c(m ? "icon" : "expanded"), r == null || r(x);
|
|
1188
1196
|
},
|
|
1189
|
-
className: [ee, e].filter(Boolean).join(" "),
|
|
1190
|
-
...
|
|
1191
|
-
children:
|
|
1197
|
+
className: [ee, f, e].filter(Boolean).join(" "),
|
|
1198
|
+
...n,
|
|
1199
|
+
children: /* @__PURE__ */ s("span", { className: "ds:inline-flex ds:size-5 ds:shrink-0 ds:items-center ds:justify-center", children: m ? /* @__PURE__ */ s(
|
|
1192
1200
|
ys,
|
|
1193
1201
|
{
|
|
1194
1202
|
"aria-hidden": "true",
|
|
@@ -1200,15 +1208,15 @@ const ee = [
|
|
|
1200
1208
|
"aria-hidden": "true",
|
|
1201
1209
|
className: "ds:size-4 ds:rtl:-scale-x-100"
|
|
1202
1210
|
}
|
|
1203
|
-
)
|
|
1211
|
+
) })
|
|
1204
1212
|
}
|
|
1205
1213
|
);
|
|
1206
1214
|
return /* @__PURE__ */ u(h.Root, { children: [
|
|
1207
|
-
/* @__PURE__ */ s(h.Trigger, { asChild: !0, children:
|
|
1215
|
+
/* @__PURE__ */ s(h.Trigger, { asChild: !0, children: y }),
|
|
1208
1216
|
/* @__PURE__ */ s(h.Portal, { children: /* @__PURE__ */ u(
|
|
1209
1217
|
h.Content,
|
|
1210
1218
|
{
|
|
1211
|
-
side:
|
|
1219
|
+
side: t === "icon" ? "right" : "top",
|
|
1212
1220
|
sideOffset: 6,
|
|
1213
1221
|
className: [
|
|
1214
1222
|
"ds:z-[var(--z-tooltip)] ds:max-w-[16rem]",
|
|
@@ -1218,7 +1226,7 @@ const ee = [
|
|
|
1218
1226
|
"ds:animate-in ds:fade-in ds:zoom-in-95 ds:motion-reduce:animate-none"
|
|
1219
1227
|
].join(" "),
|
|
1220
1228
|
children: [
|
|
1221
|
-
|
|
1229
|
+
g,
|
|
1222
1230
|
/* @__PURE__ */ s(h.Arrow, { className: "ds:fill-[var(--foreground)]" })
|
|
1223
1231
|
]
|
|
1224
1232
|
}
|
|
@@ -1257,18 +1265,18 @@ const re = T(
|
|
|
1257
1265
|
},
|
|
1258
1266
|
defaultVariants: { mode: "expanded" }
|
|
1259
1267
|
}
|
|
1260
|
-
),
|
|
1261
|
-
const { mode:
|
|
1268
|
+
), ie = b(({ title: e, description: a, icon: r, className: n, ...d }, o) => {
|
|
1269
|
+
const { mode: t } = N(), l = t === "icon", c = (
|
|
1262
1270
|
// aria-label only in icon mode (where the copy is hidden) — in
|
|
1263
1271
|
// expanded mode the accessible name comes from the visible contents
|
|
1264
1272
|
// so the description isn't excluded from it.
|
|
1265
1273
|
/* @__PURE__ */ u(
|
|
1266
1274
|
"a",
|
|
1267
1275
|
{
|
|
1268
|
-
ref:
|
|
1269
|
-
"aria-label":
|
|
1270
|
-
className: re({ mode:
|
|
1271
|
-
...
|
|
1276
|
+
ref: o,
|
|
1277
|
+
"aria-label": l ? e : void 0,
|
|
1278
|
+
className: re({ mode: t, className: n }),
|
|
1279
|
+
...d,
|
|
1272
1280
|
children: [
|
|
1273
1281
|
/* @__PURE__ */ s(
|
|
1274
1282
|
"span",
|
|
@@ -1282,7 +1290,7 @@ const re = T(
|
|
|
1282
1290
|
children: r ?? /* @__PURE__ */ s(Ss, { className: "ds:size-4" })
|
|
1283
1291
|
}
|
|
1284
1292
|
),
|
|
1285
|
-
|
|
1293
|
+
l ? null : /* @__PURE__ */ u(X, { children: [
|
|
1286
1294
|
/* @__PURE__ */ u("span", { className: "ds:flex-1 ds:min-w-0 ds:text-start", children: [
|
|
1287
1295
|
/* @__PURE__ */ s("span", { className: "ds:block ds:line-clamp-2 type-label", children: e }),
|
|
1288
1296
|
a ? (
|
|
@@ -1303,8 +1311,8 @@ const re = T(
|
|
|
1303
1311
|
}
|
|
1304
1312
|
)
|
|
1305
1313
|
);
|
|
1306
|
-
return
|
|
1307
|
-
/* @__PURE__ */ s(h.Trigger, { asChild: !0, children:
|
|
1314
|
+
return l ? /* @__PURE__ */ u(h.Root, { children: [
|
|
1315
|
+
/* @__PURE__ */ s(h.Trigger, { asChild: !0, children: c }),
|
|
1308
1316
|
/* @__PURE__ */ s(h.Portal, { children: /* @__PURE__ */ u(
|
|
1309
1317
|
h.Content,
|
|
1310
1318
|
{
|
|
@@ -1323,9 +1331,9 @@ const re = T(
|
|
|
1323
1331
|
]
|
|
1324
1332
|
}
|
|
1325
1333
|
) })
|
|
1326
|
-
] }) :
|
|
1334
|
+
] }) : c;
|
|
1327
1335
|
});
|
|
1328
|
-
|
|
1336
|
+
ie.displayName = "SidebarUpgradeChip";
|
|
1329
1337
|
export {
|
|
1330
1338
|
As as S,
|
|
1331
1339
|
_s as a,
|
|
@@ -1335,7 +1343,7 @@ export {
|
|
|
1335
1343
|
Ps as e,
|
|
1336
1344
|
Fs as f,
|
|
1337
1345
|
Ds as g,
|
|
1338
|
-
|
|
1346
|
+
is as h,
|
|
1339
1347
|
Ks as i,
|
|
1340
1348
|
Ms as j,
|
|
1341
1349
|
Vs as k,
|
|
@@ -1343,9 +1351,9 @@ export {
|
|
|
1343
1351
|
Os as m,
|
|
1344
1352
|
se as n,
|
|
1345
1353
|
as as o,
|
|
1346
|
-
|
|
1354
|
+
ie as p,
|
|
1347
1355
|
Gs as q,
|
|
1348
1356
|
js as s,
|
|
1349
|
-
|
|
1357
|
+
N as u
|
|
1350
1358
|
};
|
|
1351
|
-
//# sourceMappingURL=sidebar-
|
|
1359
|
+
//# sourceMappingURL=sidebar-C-Gr2LL-.js.map
|
package/dist/agent-catalog.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as r, a as i, b as s, c as d, d as S, e as b, f as t, g as o, h as m, i as n, j as p, k as l, l as c, m as g, n as u, o as I, p as P, q as f, s as h, u as B } from "../../_chunks/sidebar-
|
|
1
|
+
import { S as r, a as i, b as s, c as d, d as S, e as b, f as t, g as o, h as m, i as n, j as p, k as l, l as c, m as g, n as u, o as I, p as P, q as f, s as h, u as B } from "../../_chunks/sidebar-C-Gr2LL-.js";
|
|
2
2
|
import { u as k } from "../../_chunks/use-persistent-state-nZwZAnE9.js";
|
|
3
3
|
export {
|
|
4
4
|
r as Sidebar,
|
package/dist/index.js
CHANGED
|
@@ -110,7 +110,7 @@ import { P as Gn, a as Vn, b as Un, c as Wn, d as zn, e as Kn, f as Yn, g as jn,
|
|
|
110
110
|
import { D as Qn, a as $n, P as Jn, S as Zn, c as al, p as el } from "./_chunks/public-footer.agent-BKkK3T3V.js";
|
|
111
111
|
import { P as rl, p as tl } from "./_chunks/public-header.agent-rX_VA6hd.js";
|
|
112
112
|
import { S as il, f as nl, s as ll } from "./_chunks/search-bar-CJj6sI9m.js";
|
|
113
|
-
import { S as ml, a as pl, b as cl, c as fl, d as gl, e as Al, f as ul, g as xl, h as Cl, i as Sl, j as Tl, k as Il, l as Pl, m as hl, n as Nl, o as bl, p as El, q as Rl, s as _l, u as yl } from "./_chunks/sidebar-
|
|
113
|
+
import { S as ml, a as pl, b as cl, c as fl, d as gl, e as Al, f as ul, g as xl, h as Cl, i as Sl, j as Tl, k as Il, l as Pl, m as hl, n as Nl, o as bl, p as El, q as Rl, s as _l, u as yl } from "./_chunks/sidebar-C-Gr2LL-.js";
|
|
114
114
|
import { S as Dl } from "./_chunks/stepper-accordion-BeVMZPuG.js";
|
|
115
115
|
import { s as Ml } from "./_chunks/stepper-accordion.agent-cmEguIdx.js";
|
|
116
116
|
import { S as Ol, s as kl } from "./_chunks/stepper-progress-Bv0njx4g.js";
|
|
@@ -216,7 +216,7 @@ import { T as Gu } from "./_chunks/transaction-chip-DJCstquX.js";
|
|
|
216
216
|
import { W as Uu, a as Wu } from "./_chunks/whatsapp-button-BIy6NaJK.js";
|
|
217
217
|
import { C as Ku, W as Yu, a as ju, b as Xu, c as qu, i as Qu, l as $u, m as Ju, r as Zu, w as ax, d as ex, e as sx, f as rx } from "./_chunks/workflow-map-SIfAhmWz.js";
|
|
218
218
|
import { A as ox, a as ix, b as nx, c as lx } from "./_chunks/alia-sidebar-DzNz1gDf.js";
|
|
219
|
-
import { C as mx, M as px, P as cx } from "./_chunks/marketplace-app-shell-
|
|
219
|
+
import { C as mx, M as px, P as cx } from "./_chunks/marketplace-app-shell-Bv1ZO4XO.js";
|
|
220
220
|
import { S as gx } from "./_chunks/signature-request-BzXTV_RH.js";
|
|
221
221
|
import { D as ux, d as xx } from "./_chunks/dependent-selector-DyFpdzZV.js";
|
|
222
222
|
import { D as Sx, d as Tx } from "./_chunks/document-preview-DXl9migE.js";
|
package/package.json
CHANGED