@alfadocs/ui-kit 0.97.0 → 0.97.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/{marketplace-app-shell-35eRpT3r.js → marketplace-app-shell-DpOR905C.js} +2 -2
- package/dist/_chunks/{sidebar-C0PbwJBc.js → sidebar-CanH-Sha.js} +107 -98
- 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/dist/tokens.css +1 -1
- package/package.json +1 -1
package/dist/_chunks/{marketplace-app-shell-35eRpT3r.js → marketplace-app-shell-DpOR905C.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-CanH-Sha.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-DpOR905C.js.map
|
|
@@ -8,7 +8,7 @@ import { a as os } from "./accordion-C11v9ouP.js";
|
|
|
8
8
|
import { S as ts } 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
|
-
import { useTranslation as
|
|
11
|
+
import { useTranslation as _ } from "react-i18next";
|
|
12
12
|
import { u as cs } from "./registry-DvAUVLHh.js";
|
|
13
13
|
import { u as us } from "./use-edge-resize-ZnGG7gyO.js";
|
|
14
14
|
import { c as ms } from "./compose-refs-C0k0tdqF.js";
|
|
@@ -164,12 +164,12 @@ const J = T(
|
|
|
164
164
|
"ds:before:[inset-block:0]",
|
|
165
165
|
"ds:before:[inline-size:var(--min-target-size)]",
|
|
166
166
|
"ds:before:[inset-inline:calc(0px_-_(var(--min-target-size)_-_var(--resizable-handle-size))_/_2)]"
|
|
167
|
-
].join(" "),
|
|
167
|
+
].join(" "), _s = b(
|
|
168
168
|
({
|
|
169
169
|
state: e,
|
|
170
170
|
defaultState: a = "expanded",
|
|
171
171
|
onStateChange: r,
|
|
172
|
-
density:
|
|
172
|
+
density: d = "default",
|
|
173
173
|
open: n,
|
|
174
174
|
onOpenChange: c,
|
|
175
175
|
resizable: o = !1,
|
|
@@ -179,17 +179,17 @@ const J = T(
|
|
|
179
179
|
id: f,
|
|
180
180
|
...g
|
|
181
181
|
}, w) => {
|
|
182
|
-
const { t: y } =
|
|
183
|
-
() =>
|
|
184
|
-
), m =
|
|
182
|
+
const { t: y } = _(), i = e !== void 0, [N, z] = B(
|
|
183
|
+
() => i ? e : Cs(a)
|
|
184
|
+
), m = i ? e : N;
|
|
185
185
|
L(() => {
|
|
186
|
-
|
|
187
|
-
}, [N,
|
|
186
|
+
i || ks(N);
|
|
187
|
+
}, [N, i]);
|
|
188
188
|
const S = ss(
|
|
189
189
|
(k) => {
|
|
190
|
-
|
|
190
|
+
i || z(k), r == null || r(k);
|
|
191
191
|
},
|
|
192
|
-
[
|
|
192
|
+
[i, r]
|
|
193
193
|
), j = t ?? y("navigation.sidebar.label"), C = G(m);
|
|
194
194
|
L(() => {
|
|
195
195
|
C.current = m;
|
|
@@ -205,9 +205,9 @@ const J = T(
|
|
|
205
205
|
[S]
|
|
206
206
|
);
|
|
207
207
|
cs(js, F, f);
|
|
208
|
-
const
|
|
208
|
+
const A = G(null), D = $(() => ms(w, A), [w]), { separatorProps: U, isResizing: P } = us({
|
|
209
209
|
edge: "inline-end",
|
|
210
|
-
targetRef:
|
|
210
|
+
targetRef: A,
|
|
211
211
|
cssProperty: "--sidebar-modern-expanded-size",
|
|
212
212
|
minSize: Ts,
|
|
213
213
|
maxSize: Is,
|
|
@@ -217,7 +217,7 @@ const J = T(
|
|
|
217
217
|
return m === "overlay" ? /* @__PURE__ */ s(
|
|
218
218
|
O.Provider,
|
|
219
219
|
{
|
|
220
|
-
value: { mode: "overlay", density:
|
|
220
|
+
value: { mode: "overlay", density: d, transitionTo: S },
|
|
221
221
|
children: /* @__PURE__ */ s(R.Root, { open: n, onOpenChange: c, children: /* @__PURE__ */ u(R.Portal, { children: [
|
|
222
222
|
/* @__PURE__ */ s(
|
|
223
223
|
R.Overlay,
|
|
@@ -242,7 +242,7 @@ 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: d }),
|
|
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",
|
|
@@ -255,7 +255,7 @@ const J = T(
|
|
|
255
255
|
/* @__PURE__ */ s(
|
|
256
256
|
"nav",
|
|
257
257
|
{
|
|
258
|
-
ref:
|
|
258
|
+
ref: D,
|
|
259
259
|
id: f,
|
|
260
260
|
"aria-label": j,
|
|
261
261
|
"data-component": "sidebar",
|
|
@@ -290,21 +290,21 @@ const J = T(
|
|
|
290
290
|
) : /* @__PURE__ */ s(
|
|
291
291
|
O.Provider,
|
|
292
292
|
{
|
|
293
|
-
value: { mode: m, density:
|
|
293
|
+
value: { mode: m, density: d, transitionTo: S },
|
|
294
294
|
children: /* @__PURE__ */ s(h.Provider, { delayDuration: 300, children: /* @__PURE__ */ u(
|
|
295
295
|
"nav",
|
|
296
296
|
{
|
|
297
|
-
ref:
|
|
297
|
+
ref: D,
|
|
298
298
|
id: f,
|
|
299
299
|
"aria-label": j,
|
|
300
300
|
"data-component": "sidebar",
|
|
301
301
|
"data-component-id": f,
|
|
302
302
|
"data-mode": m,
|
|
303
|
-
"data-density":
|
|
303
|
+
"data-density": d,
|
|
304
304
|
"data-resizing": P ? "" : void 0,
|
|
305
305
|
className: [
|
|
306
|
-
J({ mode: m, density:
|
|
307
|
-
|
|
306
|
+
J({ mode: m, density: d }),
|
|
307
|
+
d === "compact" ? "ds:density-compact" : "",
|
|
308
308
|
l ?? ""
|
|
309
309
|
].filter(Boolean).join(" "),
|
|
310
310
|
...g,
|
|
@@ -326,9 +326,9 @@ const J = T(
|
|
|
326
326
|
);
|
|
327
327
|
}
|
|
328
328
|
);
|
|
329
|
-
|
|
330
|
-
const
|
|
331
|
-
const { mode:
|
|
329
|
+
_s.displayName = "Sidebar";
|
|
330
|
+
const As = b(({ className: e, ...a }, r) => {
|
|
331
|
+
const { mode: d } = x();
|
|
332
332
|
return /* @__PURE__ */ s(
|
|
333
333
|
"div",
|
|
334
334
|
{
|
|
@@ -336,9 +336,18 @@ 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
|
-
//
|
|
341
|
-
|
|
339
|
+
// Horizontal padding is derived from the icon rail in BOTH modes:
|
|
340
|
+
// half the slack a `--min-target-size` control leaves in a
|
|
341
|
+
// `--sidebar-modern-icon-size` rail. That is exactly what
|
|
342
|
+
// `justify-center` already produced in the rail, so icon mode is
|
|
343
|
+
// unchanged — and it makes the EXPANDED header start its first
|
|
344
|
+
// control on the same column. Previously expanded used
|
|
345
|
+
// `--spacing-md`, so the collapse toggle jumped horizontally every
|
|
346
|
+
// time the sidebar was toggled (measured: centre 38px expanded vs
|
|
347
|
+
// 32px collapsed). Keep `justify-center` in the rail so a header
|
|
348
|
+
// holding something narrower than the target size still centres.
|
|
349
|
+
d === "icon" ? "ds:justify-center" : "",
|
|
350
|
+
"ds:[padding-inline:calc((var(--sidebar-modern-icon-size)_-_var(--min-target-size))/2)]",
|
|
342
351
|
"ds:py-[var(--spacing-sm)]",
|
|
343
352
|
// Hairline border + downward chrome shadow cast the header as a
|
|
344
353
|
// sticky top band above the scrolling body.
|
|
@@ -350,9 +359,9 @@ const Ds = b(({ className: e, ...a }, r) => {
|
|
|
350
359
|
}
|
|
351
360
|
);
|
|
352
361
|
});
|
|
353
|
-
|
|
354
|
-
const
|
|
355
|
-
({ className: e, children: a, ...r },
|
|
362
|
+
As.displayName = "SidebarHeader";
|
|
363
|
+
const Ds = b(
|
|
364
|
+
({ className: e, children: a, ...r }, d) => (
|
|
356
365
|
// Scroll the nav sections through the kit `ScrollArea` (8px tokenised
|
|
357
366
|
// scrollbar) instead of native `overflow-auto` (the OS scrollbar), so the
|
|
358
367
|
// sidebar matches the Control Room rail and the kit's trays. `flex-1 min-h-0`
|
|
@@ -367,7 +376,7 @@ const _s = b(
|
|
|
367
376
|
children: /* @__PURE__ */ s(
|
|
368
377
|
"div",
|
|
369
378
|
{
|
|
370
|
-
ref:
|
|
379
|
+
ref: d,
|
|
371
380
|
className: "ds:ps-[var(--spacing-xs)] ds:pe-[var(--spacing-xs)] ds:py-[var(--spacing-sm)]",
|
|
372
381
|
...r,
|
|
373
382
|
children: a
|
|
@@ -377,9 +386,9 @@ const _s = b(
|
|
|
377
386
|
)
|
|
378
387
|
)
|
|
379
388
|
);
|
|
380
|
-
|
|
389
|
+
Ds.displayName = "SidebarBody";
|
|
381
390
|
const Ps = b(({ className: e, ...a }, r) => {
|
|
382
|
-
const { mode:
|
|
391
|
+
const { mode: d } = x();
|
|
383
392
|
return /* @__PURE__ */ s(
|
|
384
393
|
"div",
|
|
385
394
|
{
|
|
@@ -388,7 +397,7 @@ const Ps = b(({ className: e, ...a }, r) => {
|
|
|
388
397
|
"ds:relative ds:flex ds:items-center ds:gap-[var(--spacing-xs)]",
|
|
389
398
|
// Icon-rail is 64px — two 44×44 controls can't sit side-by-side,
|
|
390
399
|
// so switch to a vertical stack and let each row self-centre.
|
|
391
|
-
|
|
400
|
+
d === "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
401
|
"ds:min-h-[var(--min-target-size)]",
|
|
393
402
|
"ds:py-[var(--spacing-sm)]",
|
|
394
403
|
// Hairline border + upward chrome shadow cast the footer as a
|
|
@@ -422,7 +431,7 @@ const Es = [
|
|
|
422
431
|
label: e,
|
|
423
432
|
icon: a,
|
|
424
433
|
collapsible: r = !0,
|
|
425
|
-
defaultOpen:
|
|
434
|
+
defaultOpen: d = !0,
|
|
426
435
|
open: n,
|
|
427
436
|
onOpenChange: c,
|
|
428
437
|
className: o,
|
|
@@ -456,17 +465,17 @@ const Es = [
|
|
|
456
465
|
) : null,
|
|
457
466
|
t
|
|
458
467
|
] });
|
|
459
|
-
const
|
|
468
|
+
const i = "section";
|
|
460
469
|
return /* @__PURE__ */ s(
|
|
461
470
|
E.Root,
|
|
462
471
|
{
|
|
463
472
|
type: "single",
|
|
464
473
|
collapsible: !0,
|
|
465
|
-
defaultValue: n === void 0 &&
|
|
466
|
-
value: n === void 0 ? void 0 : n ?
|
|
467
|
-
onValueChange: c ? (N) => c(N ===
|
|
474
|
+
defaultValue: n === void 0 && d ? i : void 0,
|
|
475
|
+
value: n === void 0 ? void 0 : n ? i : "",
|
|
476
|
+
onValueChange: c ? (N) => c(N === i) : void 0,
|
|
468
477
|
asChild: !0,
|
|
469
|
-
children: /* @__PURE__ */ s("div", { ref: p, className: y, ...l, children: /* @__PURE__ */ u(E.Item, { value:
|
|
478
|
+
children: /* @__PURE__ */ s("div", { ref: p, className: y, ...l, children: /* @__PURE__ */ u(E.Item, { value: i, children: [
|
|
470
479
|
/* @__PURE__ */ s(E.Header, { className: "ds:flex", children: /* @__PURE__ */ u(E.Trigger, { className: Es, children: [
|
|
471
480
|
a ? /* @__PURE__ */ s("span", { "aria-hidden": "true", className: Q, children: a }) : null,
|
|
472
481
|
/* @__PURE__ */ s("span", { className: "ds:flex-1 ds:text-start", children: e }),
|
|
@@ -508,7 +517,7 @@ const Hs = [
|
|
|
508
517
|
label: e,
|
|
509
518
|
icon: a,
|
|
510
519
|
children: r,
|
|
511
|
-
className:
|
|
520
|
+
className: d,
|
|
512
521
|
defaultOpen: n,
|
|
513
522
|
open: c,
|
|
514
523
|
onOpenChange: o,
|
|
@@ -522,7 +531,7 @@ const Hs = [
|
|
|
522
531
|
defaultOpen: n,
|
|
523
532
|
open: c,
|
|
524
533
|
onOpenChange: o,
|
|
525
|
-
className:
|
|
534
|
+
className: d,
|
|
526
535
|
...t,
|
|
527
536
|
children: [
|
|
528
537
|
/* @__PURE__ */ u(K.Trigger, { className: Hs, children: [
|
|
@@ -631,12 +640,12 @@ const Us = T(
|
|
|
631
640
|
isActive: !1
|
|
632
641
|
}
|
|
633
642
|
}
|
|
634
|
-
), rs = Z(null),
|
|
643
|
+
), rs = Z(null), is = b(
|
|
635
644
|
({
|
|
636
645
|
asChild: e = !1,
|
|
637
646
|
isActive: a = !1,
|
|
638
647
|
navId: r,
|
|
639
|
-
isPinned:
|
|
648
|
+
isPinned: d = !1,
|
|
640
649
|
onPinChange: n,
|
|
641
650
|
pinLabel: c,
|
|
642
651
|
className: o,
|
|
@@ -644,7 +653,7 @@ const Us = T(
|
|
|
644
653
|
"aria-label": l,
|
|
645
654
|
...p
|
|
646
655
|
}, f) => {
|
|
647
|
-
const { mode: g, density: w } = x(), y = e ? ls : "a",
|
|
656
|
+
const { mode: g, density: w } = x(), y = e ? ls : "a", i = n !== void 0 && g !== "icon", [N, z] = B(null), m = g === "icon" && l != null && N ? `${l}, ${N}` : l, S = /* @__PURE__ */ s(
|
|
648
657
|
y,
|
|
649
658
|
{
|
|
650
659
|
ref: f,
|
|
@@ -655,12 +664,12 @@ const Us = T(
|
|
|
655
664
|
mode: g,
|
|
656
665
|
density: w,
|
|
657
666
|
isActive: a,
|
|
658
|
-
className:
|
|
667
|
+
className: i ? "ds:flex-1 ds:min-w-0" : o
|
|
659
668
|
}),
|
|
660
669
|
...p,
|
|
661
670
|
children: t
|
|
662
671
|
}
|
|
663
|
-
), j =
|
|
672
|
+
), j = i ? /* @__PURE__ */ u(
|
|
664
673
|
"div",
|
|
665
674
|
{
|
|
666
675
|
className: [
|
|
@@ -672,7 +681,7 @@ const Us = T(
|
|
|
672
681
|
/* @__PURE__ */ s(
|
|
673
682
|
Y,
|
|
674
683
|
{
|
|
675
|
-
isPinned:
|
|
684
|
+
isPinned: d,
|
|
676
685
|
label: c ?? l ?? "",
|
|
677
686
|
onPinChange: n
|
|
678
687
|
}
|
|
@@ -703,11 +712,11 @@ const Us = T(
|
|
|
703
712
|
return /* @__PURE__ */ s(rs.Provider, { value: z, children: C });
|
|
704
713
|
}
|
|
705
714
|
);
|
|
706
|
-
|
|
707
|
-
const Ms = b(({ className: e, children: a, ...r },
|
|
715
|
+
is.displayName = "SidebarItem";
|
|
716
|
+
const Ms = b(({ className: e, children: a, ...r }, d) => /* @__PURE__ */ s(
|
|
708
717
|
"span",
|
|
709
718
|
{
|
|
710
|
-
ref:
|
|
719
|
+
ref: d,
|
|
711
720
|
"aria-hidden": "true",
|
|
712
721
|
className: [
|
|
713
722
|
"ds:inline-flex ds:shrink-0 ds:items-center ds:justify-center",
|
|
@@ -726,12 +735,12 @@ const Ms = b(({ className: e, children: a, ...r }, i) => /* @__PURE__ */ s(
|
|
|
726
735
|
}
|
|
727
736
|
));
|
|
728
737
|
Ms.displayName = "SidebarItemIcon";
|
|
729
|
-
const Vs = b(({ className: e, children: a, ...r },
|
|
738
|
+
const Vs = b(({ className: e, children: a, ...r }, d) => {
|
|
730
739
|
const { mode: n } = x();
|
|
731
740
|
return /* @__PURE__ */ s(
|
|
732
741
|
"span",
|
|
733
742
|
{
|
|
734
|
-
ref:
|
|
743
|
+
ref: d,
|
|
735
744
|
className: [
|
|
736
745
|
"ds:flex-1",
|
|
737
746
|
"ds:overflow-hidden ds:text-ellipsis ds:whitespace-nowrap ds:break-normal",
|
|
@@ -745,7 +754,7 @@ const Vs = b(({ className: e, children: a, ...r }, i) => {
|
|
|
745
754
|
);
|
|
746
755
|
});
|
|
747
756
|
Vs.displayName = "SidebarItemLabel";
|
|
748
|
-
const Ks = b(({ className: e, children: a, ...r },
|
|
757
|
+
const Ks = b(({ className: e, children: a, ...r }, d) => {
|
|
749
758
|
const { mode: n } = x(), c = n === "icon", o = q(rs);
|
|
750
759
|
return L(() => {
|
|
751
760
|
if (!o || !c) return;
|
|
@@ -754,7 +763,7 @@ const Ks = b(({ className: e, children: a, ...r }, i) => {
|
|
|
754
763
|
}, [o, a, c]), /* @__PURE__ */ s(
|
|
755
764
|
"span",
|
|
756
765
|
{
|
|
757
|
-
ref:
|
|
766
|
+
ref: d,
|
|
758
767
|
"aria-hidden": c ? "true" : void 0,
|
|
759
768
|
className: [
|
|
760
769
|
"ds:inline-flex ds:items-center ds:justify-center",
|
|
@@ -829,7 +838,7 @@ const Ls = T(
|
|
|
829
838
|
defaultVariants: { variant: "ghost" }
|
|
830
839
|
}
|
|
831
840
|
), Gs = b(
|
|
832
|
-
({ logo: e, name: a, showChevron: r = !0, variant:
|
|
841
|
+
({ logo: e, name: a, showChevron: r = !0, variant: d = "ghost", className: n, ...c }, o) => {
|
|
833
842
|
const { mode: t } = x(), l = t !== "icon";
|
|
834
843
|
return /* @__PURE__ */ u(
|
|
835
844
|
"button",
|
|
@@ -837,7 +846,7 @@ const Ls = T(
|
|
|
837
846
|
ref: o,
|
|
838
847
|
type: "button",
|
|
839
848
|
"aria-label": a,
|
|
840
|
-
className: [Ls({ variant:
|
|
849
|
+
className: [Ls({ variant: d }), n].filter(Boolean).join(" "),
|
|
841
850
|
...c,
|
|
842
851
|
children: [
|
|
843
852
|
/* @__PURE__ */ s(
|
|
@@ -887,7 +896,7 @@ const $s = T(
|
|
|
887
896
|
},
|
|
888
897
|
defaultVariants: { mode: "expanded" }
|
|
889
898
|
}
|
|
890
|
-
), Os = b(({ icon: e, label: a, shortcut: r, className:
|
|
899
|
+
), Os = b(({ icon: e, label: a, shortcut: r, className: d, ...n }, c) => {
|
|
891
900
|
const { mode: o } = x(), t = o !== "icon";
|
|
892
901
|
return /* @__PURE__ */ u(
|
|
893
902
|
"button",
|
|
@@ -896,7 +905,7 @@ const $s = T(
|
|
|
896
905
|
type: "button",
|
|
897
906
|
"aria-label": a,
|
|
898
907
|
"aria-keyshortcuts": r,
|
|
899
|
-
className: [$s({ mode: o }),
|
|
908
|
+
className: [$s({ mode: o }), d].filter(Boolean).join(" "),
|
|
900
909
|
...n,
|
|
901
910
|
children: [
|
|
902
911
|
/* @__PURE__ */ s(
|
|
@@ -941,8 +950,8 @@ const Xs = [
|
|
|
941
950
|
"ds:transition-[color,opacity,background-color] ds:duration-[var(--animation-duration)]",
|
|
942
951
|
"ds:motion-reduce:transition-none"
|
|
943
952
|
].join(" "), Y = b(
|
|
944
|
-
({ isPinned: e, onPinChange: a, label: r, className:
|
|
945
|
-
const { t } =
|
|
953
|
+
({ isPinned: e, onPinChange: a, label: r, className: d, onClick: n, ...c }, o) => {
|
|
954
|
+
const { t } = _(), { mode: l } = x();
|
|
946
955
|
if (l === "icon") return null;
|
|
947
956
|
const p = e ? t("navigation.sidebar.unpinItem", "Unpin {{label}}", { label: r }) : t("navigation.sidebar.pinItem", "Pin {{label}}", { label: r });
|
|
948
957
|
return /* @__PURE__ */ s(
|
|
@@ -952,7 +961,7 @@ const Xs = [
|
|
|
952
961
|
type: "button",
|
|
953
962
|
"aria-label": p,
|
|
954
963
|
"aria-pressed": e,
|
|
955
|
-
className: [Xs,
|
|
964
|
+
className: [Xs, d].filter(Boolean).join(" "),
|
|
956
965
|
onClick: (f) => {
|
|
957
966
|
f.preventDefault(), f.stopPropagation(), a == null || a(!e), n == null || n(f);
|
|
958
967
|
},
|
|
@@ -970,24 +979,24 @@ const Xs = [
|
|
|
970
979
|
}
|
|
971
980
|
);
|
|
972
981
|
Y.displayName = "SidebarPinButton";
|
|
973
|
-
const
|
|
974
|
-
({ heading: e, emptyMessage: a, onReorder: r, className:
|
|
975
|
-
const { t } =
|
|
982
|
+
const ds = Z(null), qs = () => q(ds), Zs = b(
|
|
983
|
+
({ heading: e, emptyMessage: a, onReorder: r, className: d, children: n, ...c }, o) => {
|
|
984
|
+
const { t } = _(), l = e ?? t("navigation.sidebar.favorites", "Favourites"), p = Array.isArray(n) ? n.filter(Boolean) : n ? [n] : [], f = p.length, g = f > 0, [w, y] = B(null), [i, N] = B(""), z = G(!1), m = ss((j) => {
|
|
976
985
|
z.current = !z.current, N(z.current ? j : `${j}`);
|
|
977
986
|
}, []), S = $(
|
|
978
987
|
() => ({ onReorder: r, count: f, dragSource: w, setDragSource: y, announce: m }),
|
|
979
988
|
[r, f, w, m]
|
|
980
989
|
);
|
|
981
|
-
return !g && !a ? null : /* @__PURE__ */ s(
|
|
990
|
+
return !g && !a ? null : /* @__PURE__ */ s(ds.Provider, { value: S, children: /* @__PURE__ */ u(
|
|
982
991
|
as,
|
|
983
992
|
{
|
|
984
993
|
ref: o,
|
|
985
994
|
label: l,
|
|
986
|
-
className:
|
|
995
|
+
className: d,
|
|
987
996
|
...c,
|
|
988
997
|
children: [
|
|
989
998
|
g ? 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 }),
|
|
990
|
-
/* @__PURE__ */ s("span", { role: "status", "aria-live": "polite", className: "ds:sr-only", children:
|
|
999
|
+
/* @__PURE__ */ s("span", { role: "status", "aria-live": "polite", className: "ds:sr-only", children: i })
|
|
991
1000
|
]
|
|
992
1001
|
}
|
|
993
1002
|
) });
|
|
@@ -1032,7 +1041,7 @@ const Ws = T(
|
|
|
1032
1041
|
index: e,
|
|
1033
1042
|
isActive: a = !1,
|
|
1034
1043
|
asChild: r = !1,
|
|
1035
|
-
reorderLabel:
|
|
1044
|
+
reorderLabel: d,
|
|
1036
1045
|
isPinned: n = !1,
|
|
1037
1046
|
onPinChange: c,
|
|
1038
1047
|
pinLabel: o,
|
|
@@ -1041,30 +1050,30 @@ const Ws = T(
|
|
|
1041
1050
|
children: p,
|
|
1042
1051
|
...f
|
|
1043
1052
|
}, g) => {
|
|
1044
|
-
const { t: w } =
|
|
1045
|
-
if (!(
|
|
1046
|
-
const V = Math.max(0, Math.min(
|
|
1047
|
-
V !== v && (
|
|
1053
|
+
const { t: w } = _(), { mode: y } = x(), i = qs(), [N, z] = B(!1), m = !!(i != null && i.onReorder) && y !== "icon", S = d ?? t ?? "", j = ns(), C = (v, I) => {
|
|
1054
|
+
if (!(i != null && i.onReorder)) return;
|
|
1055
|
+
const V = Math.max(0, Math.min(i.count - 1, I));
|
|
1056
|
+
V !== v && (i.onReorder(v, V), i.announce(
|
|
1048
1057
|
w(
|
|
1049
1058
|
"navigation.sidebar.reorderAnnounce",
|
|
1050
1059
|
"{{label}} moved to position {{to}} of {{total}}",
|
|
1051
|
-
{ label: S, to: V + 1, total:
|
|
1060
|
+
{ label: S, to: V + 1, total: i.count }
|
|
1052
1061
|
)
|
|
1053
1062
|
));
|
|
1054
1063
|
}, F = (v) => {
|
|
1055
|
-
m && (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,
|
|
1056
|
-
},
|
|
1057
|
-
m && (
|
|
1058
|
-
},
|
|
1059
|
-
|
|
1064
|
+
m && (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, i.count - 1)));
|
|
1065
|
+
}, A = (v) => {
|
|
1066
|
+
m && (i == null || i.setDragSource(e), v.dataTransfer && (v.dataTransfer.effectAllowed = "move", v.dataTransfer.setData("ds:text/plain", String(e))));
|
|
1067
|
+
}, D = () => {
|
|
1068
|
+
i == null || i.setDragSource(null), z(!1);
|
|
1060
1069
|
}, U = (v) => {
|
|
1061
|
-
!m || (
|
|
1070
|
+
!m || (i == null ? void 0 : i.dragSource) === null || (v.preventDefault(), v.dataTransfer && (v.dataTransfer.dropEffect = "move"), z(!0));
|
|
1062
1071
|
}, P = () => z(!1), M = (v) => {
|
|
1063
1072
|
if (!m) return;
|
|
1064
1073
|
v.preventDefault();
|
|
1065
|
-
const I =
|
|
1074
|
+
const I = i == null ? void 0 : i.dragSource;
|
|
1066
1075
|
z(!1), !(I == null || I === e) && C(I, e);
|
|
1067
|
-
}, k = (
|
|
1076
|
+
}, k = (i == null ? void 0 : i.dragSource) === e;
|
|
1068
1077
|
return /* @__PURE__ */ u(
|
|
1069
1078
|
"div",
|
|
1070
1079
|
{
|
|
@@ -1073,14 +1082,14 @@ const Ws = T(
|
|
|
1073
1082
|
dropTarget: N && !k
|
|
1074
1083
|
}),
|
|
1075
1084
|
draggable: m || void 0,
|
|
1076
|
-
onDragStart: m ?
|
|
1077
|
-
onDragEnd: m ?
|
|
1085
|
+
onDragStart: m ? A : void 0,
|
|
1086
|
+
onDragEnd: m ? D : void 0,
|
|
1078
1087
|
onDragOver: U,
|
|
1079
1088
|
onDragLeave: P,
|
|
1080
1089
|
onDrop: M,
|
|
1081
1090
|
children: [
|
|
1082
1091
|
/* @__PURE__ */ s(
|
|
1083
|
-
|
|
1092
|
+
is,
|
|
1084
1093
|
{
|
|
1085
1094
|
ref: g,
|
|
1086
1095
|
isActive: a,
|
|
@@ -1135,8 +1144,8 @@ const Qs = T(
|
|
|
1135
1144
|
"ds:forced-colors:focus-visible:outline-[CanvasText]",
|
|
1136
1145
|
"ds:no-underline"
|
|
1137
1146
|
].join(" ")
|
|
1138
|
-
), se = b(({ avatar: e, name: a, subtitle: r, subtitleLabel:
|
|
1139
|
-
const { mode: t } = x(), l = t !== "icon", p = typeof r == "string" ? r :
|
|
1147
|
+
), se = b(({ avatar: e, name: a, subtitle: r, subtitleLabel: d, className: n, ...c }, o) => {
|
|
1148
|
+
const { mode: t } = x(), l = t !== "icon", p = typeof r == "string" ? r : d;
|
|
1140
1149
|
return /* @__PURE__ */ u(
|
|
1141
1150
|
"button",
|
|
1142
1151
|
{
|
|
@@ -1173,8 +1182,8 @@ const ee = [
|
|
|
1173
1182
|
"ds:focus-visible:outline-[var(--ring)] ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
|
|
1174
1183
|
"ds:forced-colors:focus-visible:outline-[CanvasText]",
|
|
1175
1184
|
"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: c } =
|
|
1185
|
+
].join(" "), ae = b(({ className: e, "aria-label": a, onClick: r, ...d }, n) => {
|
|
1186
|
+
const { t: c } = _(), { mode: o, transitionTo: t } = x();
|
|
1178
1187
|
if (o === "overlay") return null;
|
|
1179
1188
|
const l = o === "expanded", p = a ?? (l ? c("navigation.sidebar.collapse", "Collapse sidebar") : c("navigation.sidebar.expand", "Expand sidebar")), f = /* @__PURE__ */ s(
|
|
1180
1189
|
"button",
|
|
@@ -1187,7 +1196,7 @@ const ee = [
|
|
|
1187
1196
|
t == null || t(l ? "icon" : "expanded"), r == null || r(g);
|
|
1188
1197
|
},
|
|
1189
1198
|
className: [ee, e].filter(Boolean).join(" "),
|
|
1190
|
-
...
|
|
1199
|
+
...d,
|
|
1191
1200
|
children: l ? /* @__PURE__ */ s(
|
|
1192
1201
|
ys,
|
|
1193
1202
|
{
|
|
@@ -1257,7 +1266,7 @@ const re = T(
|
|
|
1257
1266
|
},
|
|
1258
1267
|
defaultVariants: { mode: "expanded" }
|
|
1259
1268
|
}
|
|
1260
|
-
),
|
|
1269
|
+
), ie = b(({ title: e, description: a, icon: r, className: d, ...n }, c) => {
|
|
1261
1270
|
const { mode: o } = x(), t = o === "icon", l = (
|
|
1262
1271
|
// aria-label only in icon mode (where the copy is hidden) — in
|
|
1263
1272
|
// expanded mode the accessible name comes from the visible contents
|
|
@@ -1267,7 +1276,7 @@ const re = T(
|
|
|
1267
1276
|
{
|
|
1268
1277
|
ref: c,
|
|
1269
1278
|
"aria-label": t ? e : void 0,
|
|
1270
|
-
className: re({ mode: o, className:
|
|
1279
|
+
className: re({ mode: o, className: d }),
|
|
1271
1280
|
...n,
|
|
1272
1281
|
children: [
|
|
1273
1282
|
/* @__PURE__ */ s(
|
|
@@ -1325,17 +1334,17 @@ const re = T(
|
|
|
1325
1334
|
) })
|
|
1326
1335
|
] }) : l;
|
|
1327
1336
|
});
|
|
1328
|
-
|
|
1337
|
+
ie.displayName = "SidebarUpgradeChip";
|
|
1329
1338
|
export {
|
|
1330
|
-
|
|
1331
|
-
|
|
1339
|
+
_s as S,
|
|
1340
|
+
Ds as a,
|
|
1332
1341
|
ae as b,
|
|
1333
1342
|
Js as c,
|
|
1334
1343
|
Zs as d,
|
|
1335
1344
|
Ps as e,
|
|
1336
1345
|
Fs as f,
|
|
1337
|
-
|
|
1338
|
-
|
|
1346
|
+
As as g,
|
|
1347
|
+
is as h,
|
|
1339
1348
|
Ks as i,
|
|
1340
1349
|
Ms as j,
|
|
1341
1350
|
Vs as k,
|
|
@@ -1343,9 +1352,9 @@ export {
|
|
|
1343
1352
|
Os as m,
|
|
1344
1353
|
se as n,
|
|
1345
1354
|
as as o,
|
|
1346
|
-
|
|
1355
|
+
ie as p,
|
|
1347
1356
|
Gs as q,
|
|
1348
1357
|
js as s,
|
|
1349
1358
|
x as u
|
|
1350
1359
|
};
|
|
1351
|
-
//# sourceMappingURL=sidebar-
|
|
1360
|
+
//# sourceMappingURL=sidebar-CanH-Sha.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-CanH-Sha.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-CanH-Sha.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-DpOR905C.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";
|