@humain/ui 2.2.2 → 2.2.4
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/components/templates/AppShell/AppShell.d.ts +5 -3
- package/dist/components/templates/AppShell/index.d.ts +1 -1
- package/dist/components/templates/AppSidebar/AppSidebar.constants.d.ts +4 -0
- package/dist/components/templates/AppSidebar/AppSidebar.d.ts +1 -0
- package/dist/index.js +19 -18
- package/dist/index152.js +1 -1
- package/dist/index152.js.map +1 -1
- package/dist/index173.js +1 -1
- package/dist/index173.js.map +1 -1
- package/dist/index184.js +1 -1
- package/dist/index184.js.map +1 -1
- package/dist/index217.js +6 -24
- package/dist/index217.js.map +1 -1
- package/dist/index218.js +20 -23
- package/dist/index218.js.map +1 -1
- package/dist/index219.js +20 -95
- package/dist/index219.js.map +1 -1
- package/dist/index220.js +92 -88
- package/dist/index220.js.map +1 -1
- package/dist/index221.js +97 -29
- package/dist/index221.js.map +1 -1
- package/dist/index222.js +24 -470
- package/dist/index222.js.map +1 -1
- package/dist/index223.js +450 -196
- package/dist/index223.js.map +1 -1
- package/dist/index224.js +199 -754
- package/dist/index224.js.map +1 -1
- package/dist/index225.js +777 -61
- package/dist/index225.js.map +1 -1
- package/dist/index226.js +58 -181
- package/dist/index226.js.map +1 -1
- package/dist/index227.js +175 -259
- package/dist/index227.js.map +1 -1
- package/dist/index228.js +246 -172
- package/dist/index228.js.map +1 -1
- package/dist/index229.js +195 -32
- package/dist/index229.js.map +1 -1
- package/dist/index230.js +12 -40
- package/dist/index230.js.map +1 -1
- package/dist/index231.js +23 -26
- package/dist/index231.js.map +1 -1
- package/dist/index232.js +45 -22
- package/dist/index232.js.map +1 -1
- package/dist/index233.js +27 -48
- package/dist/index233.js.map +1 -1
- package/dist/index234.js +52 -26
- package/dist/index234.js.map +1 -1
- package/dist/index235.js +40 -225
- package/dist/index235.js.map +1 -1
- package/dist/index236.js +217 -39
- package/dist/index236.js.map +1 -1
- package/dist/index237.js +50 -0
- package/dist/index237.js.map +1 -0
- package/dist/styles.css +1 -1
- package/dist/wc/AISource.js +46 -46
- package/dist/wc/AISource.js.map +1 -1
- package/dist/wc/AIToolCall.js +9 -9
- package/dist/wc/AIToolCall.js.map +1 -1
- package/dist/wc/{sidebar.js → AppSidebar.constants.js} +80 -78
- package/dist/wc/AppSidebar.constants.js.map +1 -0
- package/dist/wc/hf-app-shell.js +346 -343
- package/dist/wc/hf-app-shell.js.map +1 -1
- package/dist/wc/hf-app-sidebar.js +68 -65
- package/dist/wc/hf-app-sidebar.js.map +1 -1
- package/dist/wc/markdown-renderer.js +1 -1
- package/dist/wc/markdown-renderer.js.map +1 -1
- package/dist/wc-react/AISource.js +8 -8
- package/dist/wc-react/AISource.js.map +1 -1
- package/dist/wc-react/AIToolCall.js +42 -42
- package/dist/wc-react/AIToolCall.js.map +1 -1
- package/dist/wc-react/{sidebar.js → AppSidebar.constants.js} +89 -87
- package/dist/wc-react/AppSidebar.constants.js.map +1 -0
- package/dist/wc-react/hf-app-shell.js +383 -380
- package/dist/wc-react/hf-app-shell.js.map +1 -1
- package/dist/wc-react/hf-app-sidebar.js +72 -69
- package/dist/wc-react/hf-app-sidebar.js.map +1 -1
- package/dist/wc-react/markdown-renderer.js +1 -1
- package/dist/wc-react/markdown-renderer.js.map +1 -1
- package/package.json +1 -1
- package/skills/humain-ui/SKILL.md +1 -1
- package/skills/humain-ui-wc/SKILL.md +1 -1
- package/skills/humain-ui-wc.skill +0 -0
- package/skills/humain-ui.skill +0 -0
- package/dist/wc/sidebar.js.map +0 -1
- package/dist/wc-react/sidebar.js.map +0 -1
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { a as ie, f as p, i as Te, l as Ve, n as We, o as Ue, t as Ge, u as qe } from "./_shared.js";
|
|
2
2
|
import { t as R } from "./createLucideIcon.js";
|
|
3
3
|
import { t as Ke } from "./calendar.js";
|
|
4
|
-
import { t as
|
|
5
|
-
import { t as
|
|
6
|
-
import { t as
|
|
7
|
-
import { t as
|
|
4
|
+
import { t as Xe } from "./chevron-right.js";
|
|
5
|
+
import { t as Ze } from "./circle.js";
|
|
6
|
+
import { t as Je } from "./file-text.js";
|
|
7
|
+
import { t as Qe } from "./house.js";
|
|
8
8
|
import { t as ue } from "./message-circle.js";
|
|
9
|
-
import { a as fe, c as
|
|
9
|
+
import { _ as Ye, a as fe, c as D, d as me, f as et, g as tt, h as at, i as be, l as P, m as he, n as ge, p as ve, r as ot, s as xe, t as Ne, u as Se, v as A } from "./AppSidebar.constants.js";
|
|
10
10
|
import { t as rt } from "./settings.js";
|
|
11
11
|
import { t as se } from "./Avatar.js";
|
|
12
12
|
import { t as nt } from "./workflow.js";
|
|
13
|
-
import { t as
|
|
14
|
-
import { t as
|
|
13
|
+
import { t as ye } from "./dist.js";
|
|
14
|
+
import { t as Ce } from "./Badge.js";
|
|
15
15
|
import { t as it } from "./Separator3.js";
|
|
16
16
|
import { a as st, i as lt, s as ct } from "./Popover.js";
|
|
17
17
|
import { n as M, r as B, t as H } from "./tooltip2.js";
|
|
@@ -72,7 +72,7 @@ var pt = [
|
|
|
72
72
|
r: "4",
|
|
73
73
|
key: "nufk8"
|
|
74
74
|
}]
|
|
75
|
-
], ht = R("users", bt)
|
|
75
|
+
], ht = R("users", bt);
|
|
76
76
|
function Ae(e, t) {
|
|
77
77
|
return t == null ? e : `${e}, ${typeof t == "number" ? `${t} ${t === 1 ? "item" : "items"}` : t}`;
|
|
78
78
|
}
|
|
@@ -80,7 +80,7 @@ function ke(e, t) {
|
|
|
80
80
|
return e ? "bg-transparent" : t ?? "bg-[var(--sidebar)]";
|
|
81
81
|
}
|
|
82
82
|
function we({ isCollapsed: e, side: t, rounded: o, backgroundClass: r }) {
|
|
83
|
-
return p("flex h-full min-h-0 flex-col items-center pb-4 pt-6", e ? "w-full px-
|
|
83
|
+
return p("flex h-full min-h-0 flex-col items-center pb-4 pt-6", e ? "w-full px-2" : ["w-[calc(100%-0.75rem)] px-3", t === "left" ? "mr-3 self-start" : "ml-3 self-end"], r, o && (t === "left" ? "rounded-r-lg" : "rounded-l-lg"));
|
|
84
84
|
}
|
|
85
85
|
function Ie(e, t) {
|
|
86
86
|
return typeof e == "number" && Number.isFinite(e) && e >= 0 ? Math.floor(e) : t;
|
|
@@ -223,8 +223,11 @@ function U({ logo: e, compactedLogo: t, subtext: o, className: r, ...i }) {
|
|
|
223
223
|
children: "HUMAIN"
|
|
224
224
|
})] })
|
|
225
225
|
}), o && /* @__PURE__ */ a("p", {
|
|
226
|
-
className: "text-sm text-sidebar-foreground",
|
|
227
|
-
children:
|
|
226
|
+
className: "ps-11 text-sm text-sidebar-foreground",
|
|
227
|
+
children: /* @__PURE__ */ a("span", {
|
|
228
|
+
"data-slot": "app-sidebar-logo-subtext",
|
|
229
|
+
children: o
|
|
230
|
+
})
|
|
228
231
|
})]
|
|
229
232
|
}), /* @__PURE__ */ a("button", {
|
|
230
233
|
type: "button",
|
|
@@ -263,22 +266,22 @@ function K({ children: e, className: t }) {
|
|
|
263
266
|
});
|
|
264
267
|
}
|
|
265
268
|
K.displayName = "AppSidebar.Footer";
|
|
266
|
-
function
|
|
267
|
-
const r = /* @__PURE__ */ a(
|
|
269
|
+
function X({ children: e, "aria-label": t = "Sidebar navigation", className: o }) {
|
|
270
|
+
const r = /* @__PURE__ */ a(ve, {
|
|
268
271
|
className: "gap-0.5 group-data-[collapsible=icon]:items-center group-data-[collapsible=icon]:gap-1",
|
|
269
272
|
children: h.Children.map(e, (i) => /* @__PURE__ */ a(he, { children: i }))
|
|
270
273
|
});
|
|
271
274
|
return /* @__PURE__ */ a(D, {
|
|
272
275
|
"data-slot": "app-sidebar-nav",
|
|
273
276
|
className: p("shrink-0 p-0 group-data-[collapsible=icon]:w-auto", o),
|
|
274
|
-
children: /* @__PURE__ */ a(
|
|
277
|
+
children: /* @__PURE__ */ a(P, { children: /* @__PURE__ */ a("nav", {
|
|
275
278
|
"aria-label": t,
|
|
276
279
|
children: r
|
|
277
280
|
}) })
|
|
278
281
|
});
|
|
279
282
|
}
|
|
280
|
-
|
|
281
|
-
w(
|
|
283
|
+
X.displayName = "AppSidebar.Nav";
|
|
284
|
+
w(X, "content");
|
|
282
285
|
function De({ label: e, className: t }) {
|
|
283
286
|
return /* @__PURE__ */ l("div", {
|
|
284
287
|
"data-slot": "app-sidebar-nav-section",
|
|
@@ -301,15 +304,15 @@ function De({ label: e, className: t }) {
|
|
|
301
304
|
});
|
|
302
305
|
}
|
|
303
306
|
De.displayName = "AppSidebar.NavSection";
|
|
304
|
-
var
|
|
307
|
+
var Pe = ye("relative flex w-full items-center gap-1.5 rounded-lg px-2 py-2 text-sm font-normal transition-[color,background-color] duration-200 ease-smooth motion-reduce:transition-none", {
|
|
305
308
|
variants: { state: {
|
|
306
309
|
default: "text-sidebar-foreground hover:bg-sidebar-accent",
|
|
307
310
|
active: "bg-primary/10 text-sidebar-foreground"
|
|
308
311
|
} },
|
|
309
312
|
defaultVariants: { state: "default" }
|
|
310
313
|
});
|
|
311
|
-
function
|
|
312
|
-
const { state: m, containerRef: f } = A(), { side: n } = W(), b = m === "collapsed", d = h.Children.count(u) > 0, S = h.Children.toArray(u).some((N) => h.isValidElement(N) && N.props.isActive === !0), x = o || S, [y, v] = h.useState(x && d),
|
|
314
|
+
function Oe({ icon: e, label: t, isActive: o = !1, badge: r, onClick: i, href: s, className: c, children: u }) {
|
|
315
|
+
const { state: m, containerRef: f } = A(), { side: n } = W(), b = m === "collapsed", d = h.Children.count(u) > 0, S = h.Children.toArray(u).some((N) => h.isValidElement(N) && N.props.isActive === !0), x = o || S, [y, v] = h.useState(x && d), Q = h.useId(), Y = n === "right" ? "left" : "right", Re = "linear-gradient(108deg, var(--opacity-white-87) 0.5219%, var(--opacity-white-75) 98.419%)", Me = n === "right" ? "justify-end rounded-l-xl rounded-r-none" : "justify-start rounded-r-xl rounded-l-none", Be = n === "right" ? "rounded-l-xl" : "rounded-r-xl", He = h.useMemo(() => ({ getBoundingClientRect: () => {
|
|
313
316
|
const N = f.current, C = N?.getBoundingClientRect(), ne = N?.ownerDocument.defaultView?.innerHeight ?? C?.height ?? 0, j = C ? n === "right" ? C.left : C.right : 0;
|
|
314
317
|
return {
|
|
315
318
|
x: j,
|
|
@@ -332,17 +335,17 @@ function Pe({ icon: e, label: t, isActive: o = !1, badge: r, onClick: i, href: s
|
|
|
332
335
|
}), te = /* @__PURE__ */ a("span", {
|
|
333
336
|
className: "flex-1 text-start group-data-[collapsible=icon]:hidden",
|
|
334
337
|
children: t
|
|
335
|
-
}), ae = r != null && /* @__PURE__ */ a(
|
|
338
|
+
}), ae = r != null && /* @__PURE__ */ a(Ce, {
|
|
336
339
|
size: "sm",
|
|
337
340
|
variant: "soft",
|
|
338
341
|
color: "primary",
|
|
339
342
|
className: "px-1.5 group-data-[collapsible=icon]:hidden",
|
|
340
343
|
"aria-hidden": "true",
|
|
341
344
|
children: r
|
|
342
|
-
}), oe = d && /* @__PURE__ */ a(
|
|
345
|
+
}), oe = d && /* @__PURE__ */ a(Xe, {
|
|
343
346
|
"aria-hidden": "true",
|
|
344
347
|
className: p("size-4 shrink-0 text-muted-foreground transition-transform duration-200 ease-smooth group-data-[collapsible=icon]:hidden motion-reduce:transition-none", y ? "rotate-90" : "rtl:rotate-180", x && y && "text-primary")
|
|
345
|
-
}), E = p(
|
|
348
|
+
}), E = p(Pe({ state: x ? "active" : "default" }), "focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ring", "min-h-11 group-data-[collapsible=icon]:justify-center group-data-[collapsible=icon]:px-0 group-data-[collapsible=icon]:py-2 group-data-[collapsible=icon]:w-11 group-data-[collapsible=icon]:h-11", c), L = o ? { "aria-current": "page" } : {};
|
|
346
349
|
if (b) {
|
|
347
350
|
const N = /* @__PURE__ */ a("span", {
|
|
348
351
|
"data-slot": "nav-icon",
|
|
@@ -421,7 +424,7 @@ function Pe({ icon: e, label: t, isActive: o = !1, badge: r, onClick: i, href: s
|
|
|
421
424
|
className: p(E, "cursor-pointer"),
|
|
422
425
|
"aria-label": I,
|
|
423
426
|
"aria-expanded": d ? y : void 0,
|
|
424
|
-
"aria-controls": d ?
|
|
427
|
+
"aria-controls": d ? Q : void 0,
|
|
425
428
|
...L,
|
|
426
429
|
"data-slot": "app-sidebar-nav-item",
|
|
427
430
|
children: [
|
|
@@ -432,19 +435,19 @@ function Pe({ icon: e, label: t, isActive: o = !1, badge: r, onClick: i, href: s
|
|
|
432
435
|
]
|
|
433
436
|
});
|
|
434
437
|
return d ? /* @__PURE__ */ l(T, { children: [re, y && /* @__PURE__ */ a("ul", {
|
|
435
|
-
id:
|
|
438
|
+
id: Q,
|
|
436
439
|
role: "group",
|
|
437
440
|
"aria-label": `${t} sub-navigation`,
|
|
438
441
|
className: "ms-4 flex flex-col items-start border-s border-sidebar-border py-1 ps-2",
|
|
439
442
|
children: u
|
|
440
443
|
})] }) : re;
|
|
441
444
|
}
|
|
442
|
-
|
|
445
|
+
Oe.displayName = "AppSidebar.NavItem";
|
|
443
446
|
function _e({ label: e, badge: t, isActive: o = !1, href: r, onClick: i, className: s }) {
|
|
444
|
-
const c = Ae(e, t), u = p(
|
|
447
|
+
const c = Ae(e, t), u = p(Pe({ state: o ? "active" : "default" }), "min-h-11 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ring", "transition-[color,background-color,transform] ltr:hover:translate-x-0.5 rtl:hover:-translate-x-0.5 motion-reduce:ltr:hover:translate-x-0 motion-reduce:rtl:hover:translate-x-0", s), m = o ? { "aria-current": "page" } : {}, f = /* @__PURE__ */ l(T, { children: [/* @__PURE__ */ a("span", {
|
|
445
448
|
className: "flex-1 text-start",
|
|
446
449
|
children: e
|
|
447
|
-
}), t != null && /* @__PURE__ */ a(
|
|
450
|
+
}), t != null && /* @__PURE__ */ a(Ce, {
|
|
448
451
|
size: "sm",
|
|
449
452
|
variant: "soft",
|
|
450
453
|
color: "primary",
|
|
@@ -470,27 +473,27 @@ function _e({ label: e, badge: t, isActive: o = !1, href: r, onClick: i, classNa
|
|
|
470
473
|
});
|
|
471
474
|
}
|
|
472
475
|
_e.displayName = "AppSidebar.NavSub";
|
|
473
|
-
function
|
|
476
|
+
function O({ count: e = 3, className: t }) {
|
|
474
477
|
const o = Ie(e, 3);
|
|
475
478
|
return /* @__PURE__ */ a(D, {
|
|
476
479
|
className: p("shrink-0 p-0 group-data-[collapsible=icon]:w-auto", t),
|
|
477
|
-
children: /* @__PURE__ */ a(
|
|
480
|
+
children: /* @__PURE__ */ a(P, { children: /* @__PURE__ */ a(ve, {
|
|
478
481
|
className: "gap-0.5 group-data-[collapsible=icon]:items-center group-data-[collapsible=icon]:gap-2",
|
|
479
|
-
children: Array.from({ length: o }).map((r, i) => /* @__PURE__ */ a(he, { children: /* @__PURE__ */ a(
|
|
482
|
+
children: Array.from({ length: o }).map((r, i) => /* @__PURE__ */ a(he, { children: /* @__PURE__ */ a(tt, {}) }, `nav-skeleton-${i}`))
|
|
480
483
|
}) })
|
|
481
484
|
});
|
|
482
485
|
}
|
|
483
|
-
|
|
484
|
-
w(
|
|
485
|
-
function
|
|
486
|
+
O.displayName = "AppSidebar.NavSkeleton";
|
|
487
|
+
w(O, "content");
|
|
488
|
+
function Z({ label: e = "Recent Chats", children: t, className: o }) {
|
|
486
489
|
const { state: r } = A();
|
|
487
490
|
return r === "collapsed" ? null : /* @__PURE__ */ l(D, {
|
|
488
491
|
"data-slot": "app-sidebar-chat-list",
|
|
489
492
|
className: p("mt-4 flex min-h-0 flex-1 flex-col p-0", o),
|
|
490
|
-
children: [/* @__PURE__ */ a(
|
|
493
|
+
children: [/* @__PURE__ */ a(Se, {
|
|
491
494
|
className: "shrink-0 px-3 py-1 text-xs font-bold text-muted-foreground",
|
|
492
495
|
children: e
|
|
493
|
-
}), /* @__PURE__ */ a(
|
|
496
|
+
}), /* @__PURE__ */ a(P, {
|
|
494
497
|
className: "flex-1 overflow-hidden",
|
|
495
498
|
children: /* @__PURE__ */ a("div", {
|
|
496
499
|
className: "flex h-full flex-col overflow-y-auto pb-5 rounded-md focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ring",
|
|
@@ -502,9 +505,9 @@ function J({ label: e = "Recent Chats", children: t, className: o }) {
|
|
|
502
505
|
})]
|
|
503
506
|
});
|
|
504
507
|
}
|
|
505
|
-
|
|
506
|
-
w(
|
|
507
|
-
var yt =
|
|
508
|
+
Z.displayName = "AppSidebar.ChatList";
|
|
509
|
+
w(Z, "content");
|
|
510
|
+
var yt = ye("flex w-full items-center justify-between gap-2 rounded-md px-3 py-2 min-h-11 transition-[color,background-color,transform] duration-200 ease-smooth cursor-pointer motion-reduce:transition-none ltr:hover:translate-x-0.5 rtl:hover:-translate-x-0.5 motion-reduce:ltr:hover:translate-x-0 motion-reduce:rtl:hover:translate-x-0", {
|
|
508
511
|
variants: { state: {
|
|
509
512
|
default: "hover:bg-muted",
|
|
510
513
|
hover: "bg-muted",
|
|
@@ -563,21 +566,21 @@ function _({ count: e = 5, label: t = "Recent Chats", className: o }) {
|
|
|
563
566
|
const r = Ie(e, 5);
|
|
564
567
|
return /* @__PURE__ */ l(D, {
|
|
565
568
|
className: p("mt-4 flex min-h-0 flex-1 flex-col p-0 group-data-[collapsible=icon]:hidden", o),
|
|
566
|
-
children: [/* @__PURE__ */ a(
|
|
569
|
+
children: [/* @__PURE__ */ a(Se, {
|
|
567
570
|
className: "shrink-0 px-3 py-1 text-xs font-bold text-muted-foreground",
|
|
568
571
|
children: t
|
|
569
|
-
}), /* @__PURE__ */ a(
|
|
572
|
+
}), /* @__PURE__ */ a(P, {
|
|
570
573
|
className: "flex-1 overflow-hidden",
|
|
571
574
|
children: /* @__PURE__ */ a("div", {
|
|
572
575
|
className: "flex h-full flex-col overflow-y-auto pb-5",
|
|
573
|
-
children: Array.from({ length: r }).map((i, s) => /* @__PURE__ */ a(
|
|
576
|
+
children: Array.from({ length: r }).map((i, s) => /* @__PURE__ */ a(at, {}, `chat-skeleton-${s}`))
|
|
574
577
|
})
|
|
575
578
|
})]
|
|
576
579
|
});
|
|
577
580
|
}
|
|
578
581
|
_.displayName = "AppSidebar.ChatListSkeleton";
|
|
579
582
|
w(_, "content");
|
|
580
|
-
function
|
|
583
|
+
function J({ name: e, subtitle: t, avatarSrc: o, isOnline: r = !1, onExpand: i, className: s }) {
|
|
581
584
|
const { state: c } = A(), { side: u } = W(), m = c === "collapsed", f = u === "right" ? "left" : "right";
|
|
582
585
|
if (m) {
|
|
583
586
|
const n = /* @__PURE__ */ a("button", {
|
|
@@ -637,10 +640,10 @@ function Q({ name: e, subtitle: t, avatarSrc: o, isOnline: r = !1, onExpand: i,
|
|
|
637
640
|
})]
|
|
638
641
|
});
|
|
639
642
|
}
|
|
640
|
-
|
|
641
|
-
w(
|
|
643
|
+
J.displayName = "AppSidebar.Account";
|
|
644
|
+
w(J, "footer");
|
|
642
645
|
function z({ className: e }) {
|
|
643
|
-
return /* @__PURE__ */ a(
|
|
646
|
+
return /* @__PURE__ */ a(ot, { className: e });
|
|
644
647
|
}
|
|
645
648
|
z.displayName = "AppSidebar.AccountSkeleton";
|
|
646
649
|
w(z, "footer");
|
|
@@ -649,11 +652,11 @@ function je({ navCount: e = 4, chatCount: t = 5, logo: o, compactedLogo: r, coll
|
|
|
649
652
|
containerRef: n,
|
|
650
653
|
explicitSide: s
|
|
651
654
|
}), S = ke(b, u);
|
|
652
|
-
return /* @__PURE__ */ a(
|
|
655
|
+
return /* @__PURE__ */ a(be, {
|
|
653
656
|
collapsible: i,
|
|
654
657
|
side: d,
|
|
655
|
-
width:
|
|
656
|
-
collapsedWidth:
|
|
658
|
+
width: ge,
|
|
659
|
+
collapsedWidth: Ne,
|
|
657
660
|
className: p("bg-transparent", m),
|
|
658
661
|
children: /* @__PURE__ */ l("div", {
|
|
659
662
|
"data-slot": "app-sidebar-surface",
|
|
@@ -664,18 +667,18 @@ function je({ navCount: e = 4, chatCount: t = 5, logo: o, compactedLogo: r, coll
|
|
|
664
667
|
backgroundClass: S
|
|
665
668
|
}),
|
|
666
669
|
children: [
|
|
667
|
-
/* @__PURE__ */ a(
|
|
668
|
-
className: "h-[68px] w-full p-2",
|
|
670
|
+
/* @__PURE__ */ a(me, {
|
|
671
|
+
className: "h-[68px] w-full p-2 group-data-[collapsible=icon]:p-0",
|
|
669
672
|
children: /* @__PURE__ */ a(U, {
|
|
670
673
|
logo: o,
|
|
671
674
|
compactedLogo: r
|
|
672
675
|
})
|
|
673
676
|
}),
|
|
674
|
-
/* @__PURE__ */ l(
|
|
677
|
+
/* @__PURE__ */ l(fe, {
|
|
675
678
|
className: "flex w-full flex-col gap-0 overflow-hidden pt-3 group-data-[collapsible=icon]:items-center",
|
|
676
|
-
children: [/* @__PURE__ */ a(
|
|
679
|
+
children: [/* @__PURE__ */ a(O, { count: e }), /* @__PURE__ */ a(_, { count: t })]
|
|
677
680
|
}),
|
|
678
|
-
/* @__PURE__ */ a(
|
|
681
|
+
/* @__PURE__ */ a(xe, {
|
|
679
682
|
className: "w-full gap-0 p-0 group-data-[collapsible=icon]:items-center",
|
|
680
683
|
children: /* @__PURE__ */ a(z, {})
|
|
681
684
|
})
|
|
@@ -692,11 +695,11 @@ function $e({ logo: e, compactedLogo: t, logoSubtext: o, collapsible: r = "icon"
|
|
|
692
695
|
}), y = ke(S, c), v = vt(m);
|
|
693
696
|
return /* @__PURE__ */ a(Ee.Provider, {
|
|
694
697
|
value: { side: x },
|
|
695
|
-
children: /* @__PURE__ */ a(
|
|
698
|
+
children: /* @__PURE__ */ a(be, {
|
|
696
699
|
collapsible: r,
|
|
697
700
|
side: x,
|
|
698
|
-
width:
|
|
699
|
-
collapsedWidth:
|
|
701
|
+
width: ge,
|
|
702
|
+
collapsedWidth: Ne,
|
|
700
703
|
dir: f,
|
|
701
704
|
className: p("bg-transparent", u),
|
|
702
705
|
...n,
|
|
@@ -709,19 +712,19 @@ function $e({ logo: e, compactedLogo: t, logoSubtext: o, collapsible: r = "icon"
|
|
|
709
712
|
backgroundClass: y
|
|
710
713
|
}),
|
|
711
714
|
children: [
|
|
712
|
-
/* @__PURE__ */ a(
|
|
713
|
-
className: "h-[68px] w-full p-2",
|
|
715
|
+
/* @__PURE__ */ a(me, {
|
|
716
|
+
className: "h-[68px] w-full p-2 group-data-[collapsible=icon]:p-0",
|
|
714
717
|
children: /* @__PURE__ */ a(U, {
|
|
715
718
|
logo: e,
|
|
716
719
|
compactedLogo: t,
|
|
717
720
|
subtext: o
|
|
718
721
|
})
|
|
719
722
|
}),
|
|
720
|
-
/* @__PURE__ */ a(
|
|
723
|
+
/* @__PURE__ */ a(fe, {
|
|
721
724
|
className: "flex w-full flex-col gap-0 overflow-hidden pt-3 group-data-[collapsible=icon]:items-center",
|
|
722
725
|
children: v.explicitContent ? v.explicitContent.props.children : v.content
|
|
723
726
|
}),
|
|
724
|
-
/* @__PURE__ */ a(
|
|
727
|
+
/* @__PURE__ */ a(xe, {
|
|
725
728
|
className: "w-full gap-0 p-0 group-data-[collapsible=icon]:items-center",
|
|
726
729
|
children: v.explicitFooter ? v.explicitFooter.props.children : v.footer
|
|
727
730
|
})
|
|
@@ -735,15 +738,15 @@ var k = Object.assign($e, {
|
|
|
735
738
|
Header: G,
|
|
736
739
|
Content: q,
|
|
737
740
|
Footer: K,
|
|
738
|
-
Nav:
|
|
741
|
+
Nav: X,
|
|
739
742
|
NavSection: De,
|
|
740
|
-
NavItem:
|
|
743
|
+
NavItem: Oe,
|
|
741
744
|
NavSub: _e,
|
|
742
|
-
NavSkeleton:
|
|
743
|
-
ChatList:
|
|
745
|
+
NavSkeleton: O,
|
|
746
|
+
ChatList: Z,
|
|
744
747
|
ChatItem: ze,
|
|
745
748
|
ChatListSkeleton: _,
|
|
746
|
-
Account:
|
|
749
|
+
Account: J,
|
|
747
750
|
AccountSkeleton: z,
|
|
748
751
|
Skeleton: je
|
|
749
752
|
}), F = {
|
|
@@ -760,10 +763,10 @@ var k = Object.assign($e, {
|
|
|
760
763
|
rounded: "boolean",
|
|
761
764
|
logoSubtext: "string"
|
|
762
765
|
}, Ct = {
|
|
763
|
-
home:
|
|
766
|
+
home: Qe,
|
|
764
767
|
users: ht,
|
|
765
768
|
calendar: Ke,
|
|
766
|
-
"file-text":
|
|
769
|
+
"file-text": Je,
|
|
767
770
|
settings: rt,
|
|
768
771
|
"message-circle": ue,
|
|
769
772
|
workflow: nt
|
|
@@ -778,7 +781,7 @@ function kt(e) {
|
|
|
778
781
|
if (o) return g.createElement(o, { "aria-hidden": !0 });
|
|
779
782
|
de.has(t) || (de.add(t), console.warn(`[hf-app-sidebar] Unsupported nav item icon "${t}". Falling back to "circle".`));
|
|
780
783
|
}
|
|
781
|
-
return g.createElement(
|
|
784
|
+
return g.createElement(Ze, { "aria-hidden": !0 });
|
|
782
785
|
}
|
|
783
786
|
function wt(e) {
|
|
784
787
|
return e.type === "section";
|
|
@@ -841,7 +844,7 @@ var Fe = class extends Ge {
|
|
|
841
844
|
subtitle: r.subtitle,
|
|
842
845
|
avatarSrc: r.avatarSrc,
|
|
843
846
|
isOnline: r.isOnline
|
|
844
|
-
}))), t && f.push(g.createElement(
|
|
847
|
+
}))), t && f.push(g.createElement(et, {
|
|
845
848
|
key: "inset",
|
|
846
849
|
connected: e.connected
|
|
847
850
|
}, Ve(t))), g.createElement(Ye, {
|