@burdenoff/fe-libs 2026.819.2 → 2026.819.3

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.
@@ -1 +1 @@
1
- {"version":3,"file":"SideNavigation.d.ts","sourceRoot":"","sources":["../../src/chrome/SideNavigation.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAE3C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAEpD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AAOtD,YAAY,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AAEtD;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,kCAAkC;IAClC,KAAK,EAAE,OAAO,EAAE,CAAC;IAEjB,0BAA0B;IAC1B,WAAW,EAAE,MAAM,CAAC;IAEpB,mCAAmC;IACnC,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB,yBAAyB;IACzB,WAAW,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAEpC,8BAA8B;IAC9B,gBAAgB,CAAC,EAAE,MAAM,IAAI,CAAC;IAE9B,4BAA4B;IAC5B,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB,0CAA0C;IAC1C,MAAM,CAAC,EAAE,SAAS,CAAC;IAEnB,6CAA6C;IAC7C,MAAM,CAAC,EAAE,SAAS,CAAC;IAEnB,sEAAsE;IACtE,aAAa,CAAC,EAAE,gBAAgB,EAAE,CAAC;IAEnC,+CAA+C;IAC/C,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IAEtB,gDAAgD;IAChD,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAErC,yDAAyD;IACzD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;;;;OAKG;IACH,mBAAmB,CAAC,EAAE,eAAe,CAAC;CACvC;AAED;;;;;GAKG;AACH,eAAO,MAAM,cAAc,EAAE,EAAE,CAAC,mBAAmB,CA2NlD,CAAC"}
1
+ {"version":3,"file":"SideNavigation.d.ts","sourceRoot":"","sources":["../../src/chrome/SideNavigation.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAE3C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAEpD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AAMtD,YAAY,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AAEtD;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,kCAAkC;IAClC,KAAK,EAAE,OAAO,EAAE,CAAC;IAEjB,0BAA0B;IAC1B,WAAW,EAAE,MAAM,CAAC;IAEpB,mCAAmC;IACnC,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB,yBAAyB;IACzB,WAAW,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAEpC,8BAA8B;IAC9B,gBAAgB,CAAC,EAAE,MAAM,IAAI,CAAC;IAE9B,4BAA4B;IAC5B,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB,0CAA0C;IAC1C,MAAM,CAAC,EAAE,SAAS,CAAC;IAEnB,6CAA6C;IAC7C,MAAM,CAAC,EAAE,SAAS,CAAC;IAEnB,sEAAsE;IACtE,aAAa,CAAC,EAAE,gBAAgB,EAAE,CAAC;IAEnC,+CAA+C;IAC/C,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IAEtB,gDAAgD;IAChD,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAErC,yDAAyD;IACzD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;;;;OAKG;IACH,mBAAmB,CAAC,EAAE,eAAe,CAAC;CACvC;AAED;;;;;GAKG;AACH,eAAO,MAAM,cAAc,EAAE,EAAE,CAAC,mBAAmB,CAuNlD,CAAC"}
@@ -3,18 +3,17 @@ import { useShellLabel as i } from "../shared/providers/shell/useShellLabel.js";
3
3
  import { NavItemRenderer as a } from "./sideNavigation/NavItemRenderer.js";
4
4
  import { SidebarHeader as o } from "./sideNavigation/SidebarHeader.js";
5
5
  import { MobileActionsBar as s } from "./sideNavigation/MobileActionsBar.js";
6
- import { CollapseToggle as c } from "./sideNavigation/CollapseToggle.js";
7
- import { useSideNavigationState as l } from "./sideNavigation/useSideNavigationState.js";
8
- import { Fragment as u, jsx as d, jsxs as f } from "react/jsx-runtime";
6
+ import { useSideNavigationState as c } from "./sideNavigation/useSideNavigationState.js";
7
+ import { Fragment as l, jsx as u, jsxs as d } from "react/jsx-runtime";
9
8
  //#region src/chrome/SideNavigation.tsx
10
- var p = ({ items: p, currentPath: m, collapsed: h = !1, onItemClick: g, onToggleCollapse: _, collapseLabel: v, header: y, footer: b, mobileActions: x, groupOrder: S, groupLabels: C, maxDepth: w = 4, contextSearchParams: T }) => {
11
- let { expandedItems: E, toggleExpand: D, collapseAll: O } = l({
12
- items: p,
13
- currentPath: m,
14
- collapsed: h,
15
- onToggleCollapse: _
16
- }), k = i(), A = v ?? k("nav.collapse", "Collapse"), j = p.filter((e) => e.visible !== !1), M = (() => {
17
- if (h) return [{
9
+ var f = ({ items: f, currentPath: p, collapsed: m = !1, onItemClick: h, onToggleCollapse: g, collapseLabel: _, header: v, footer: y, mobileActions: b, groupOrder: x, groupLabels: S, maxDepth: C = 4, contextSearchParams: w }) => {
10
+ let { expandedItems: T, toggleExpand: E, collapseAll: D } = c({
11
+ items: f,
12
+ currentPath: p,
13
+ collapsed: m,
14
+ onToggleCollapse: g
15
+ }), O = i(), k = _ ?? O("nav.collapse", "Collapse"), A = O("nav.expand", "Expand"), j = f.filter((e) => e.visible !== !1), M = (() => {
16
+ if (m) return [{
18
17
  id: "__all__",
19
18
  label: null,
20
19
  items: j
@@ -24,21 +23,21 @@ var p = ({ items: p, currentPath: m, collapsed: h = !1, onItemClick: g, onToggle
24
23
  let n = t.group ?? "__default__", r = e.get(n);
25
24
  r ? r.push(t) : e.set(n, [t]);
26
25
  }
27
- return [...S ?? [], ...Array.from(e.keys()).filter((e) => !(S ?? []).includes(e))].filter((t) => (e.get(t)?.length ?? 0) > 0).map((t) => ({
26
+ return [...x ?? [], ...Array.from(e.keys()).filter((e) => !(x ?? []).includes(e))].filter((t) => (e.get(t)?.length ?? 0) > 0).map((t) => ({
28
27
  id: t,
29
- label: t === "__default__" ? null : C?.[t] ?? t,
28
+ label: t === "__default__" ? null : S?.[t] ?? t,
30
29
  items: e.get(t) ?? []
31
30
  }));
32
31
  })();
33
- return /* @__PURE__ */ f(u, { children: [!h && /* @__PURE__ */ f(u, { children: [/* @__PURE__ */ d("div", {
32
+ return /* @__PURE__ */ d(l, { children: [!m && /* @__PURE__ */ d(l, { children: [/* @__PURE__ */ u("div", {
34
33
  className: "fixed inset-0 bg-bg-overlay z-[109] md:hidden",
35
34
  "aria-hidden": "true"
36
- }), /* @__PURE__ */ d("button", {
35
+ }), /* @__PURE__ */ u("button", {
37
36
  type: "button",
38
37
  className: "fixed inset-y-0 right-0 left-64 z-[112] md:hidden cursor-pointer",
39
- onClick: _,
38
+ onClick: g,
40
39
  "aria-label": "Close sidebar"
41
- })] }), /* @__PURE__ */ f("aside", {
40
+ })] }), /* @__PURE__ */ d("aside", {
42
41
  className: `
43
42
  bg-bg-canvas supports-[backdrop-filter]:bg-[var(--color-surface-glass)] supports-[backdrop-filter]:backdrop-blur-[var(--blur-glass)]
44
43
  border-r border-border-seam
@@ -49,28 +48,28 @@ var p = ({ items: p, currentPath: m, collapsed: h = !1, onItemClick: g, onToggle
49
48
  z-[110] md:z-auto
50
49
  md:h-full
51
50
  overflow-x-hidden
52
- ${h ? "-translate-x-full md:translate-x-0" : "translate-x-0"}
51
+ ${m ? "-translate-x-full md:translate-x-0" : "translate-x-0"}
53
52
  w-64 md:w-auto
54
- ${h ? "md:w-16" : "md:w-64"}
53
+ ${m ? "md:w-16" : "md:w-64"}
55
54
  `,
56
55
  style: {
57
56
  paddingTop: "env(safe-area-inset-top)",
58
57
  paddingBottom: "env(safe-area-inset-bottom)"
59
58
  },
60
59
  children: [
61
- !h && _ && /* @__PURE__ */ d("div", {
60
+ !m && g && /* @__PURE__ */ u("div", {
62
61
  className: "md:hidden flex justify-end px-2 pt-2",
63
- children: /* @__PURE__ */ d("button", {
62
+ children: /* @__PURE__ */ u("button", {
64
63
  type: "button",
65
- onClick: _,
64
+ onClick: g,
66
65
  className: "p-2 rounded-button hover:bg-bg-sunken text-text-secondary hover:text-text-primary transition-colors",
67
66
  "aria-label": "Close sidebar",
68
- children: /* @__PURE__ */ d("svg", {
67
+ children: /* @__PURE__ */ u("svg", {
69
68
  className: "size-5",
70
69
  fill: "none",
71
70
  stroke: "currentColor",
72
71
  viewBox: "0 0 24 24",
73
- children: /* @__PURE__ */ d("path", {
72
+ children: /* @__PURE__ */ u("path", {
74
73
  strokeLinecap: "round",
75
74
  strokeLinejoin: "round",
76
75
  strokeWidth: 2,
@@ -79,59 +78,62 @@ var p = ({ items: p, currentPath: m, collapsed: h = !1, onItemClick: g, onToggle
79
78
  })
80
79
  })
81
80
  }),
82
- y && /* @__PURE__ */ d(o, {
83
- header: y,
84
- collapsed: h,
85
- expandedCount: E.size,
86
- onCollapseAll: O
81
+ (v || g) && /* @__PURE__ */ u(o, {
82
+ header: v,
83
+ collapsed: m,
84
+ expandedCount: T.size,
85
+ onCollapseAll: D,
86
+ onToggleCollapse: g,
87
+ collapseLabel: k,
88
+ expandLabel: A
87
89
  }),
88
- /* @__PURE__ */ d("nav", {
90
+ /* @__PURE__ */ u("nav", {
89
91
  className: "scrollbar-slim scrollbar-hover-only flex-1 min-h-0 py-card-padding overflow-y-auto overflow-x-hidden",
90
- children: /* @__PURE__ */ d(n, {
92
+ children: /* @__PURE__ */ u(n, {
91
93
  delayDuration: 300,
92
- children: /* @__PURE__ */ d("ul", {
94
+ children: /* @__PURE__ */ u("ul", {
93
95
  className: "space-y-list-gap",
94
- children: M.map((n, i) => /* @__PURE__ */ f("li", {
96
+ children: M.map((n, i) => /* @__PURE__ */ d("li", {
95
97
  className: "list-none",
96
98
  children: [
97
- i > 0 && !h && /* @__PURE__ */ d("div", { className: "my-2 border-t border-border-subtle" }),
98
- n.label && !h && /* @__PURE__ */ d("p", {
99
+ i > 0 && !m && /* @__PURE__ */ u("div", { className: "my-2 border-t border-border-subtle" }),
100
+ n.label && !m && /* @__PURE__ */ u("p", {
99
101
  className: "px-3 pb-1.5 pt-0.5 text-[11px] font-medium uppercase tracking-wider text-text-muted",
100
102
  children: n.label
101
103
  }),
102
- /* @__PURE__ */ d("ul", {
104
+ /* @__PURE__ */ u("ul", {
103
105
  className: "space-y-list-gap",
104
- children: n.items.map((n) => h ? /* @__PURE__ */ f(e, { children: [/* @__PURE__ */ d(r, {
106
+ children: n.items.map((n) => m ? /* @__PURE__ */ d(e, { children: [/* @__PURE__ */ u(r, {
105
107
  asChild: !0,
106
- children: /* @__PURE__ */ d(a, {
108
+ children: /* @__PURE__ */ u(a, {
107
109
  item: n,
108
110
  depth: 0,
109
- maxDepth: w,
110
- currentPath: m,
111
- expandedItems: E,
112
- toggleExpand: D,
113
- onItemClick: g,
114
- onToggleCollapse: _,
115
- collapsed: h,
116
- contextSearchParams: T
111
+ maxDepth: C,
112
+ currentPath: p,
113
+ expandedItems: T,
114
+ toggleExpand: E,
115
+ onItemClick: h,
116
+ onToggleCollapse: g,
117
+ collapsed: m,
118
+ contextSearchParams: w
117
119
  })
118
- }), /* @__PURE__ */ f(t, {
120
+ }), /* @__PURE__ */ d(t, {
119
121
  side: "right",
120
- children: [/* @__PURE__ */ d("p", { children: n.label }), n.badge !== void 0 && n.badge > 0 && /* @__PURE__ */ d("span", {
122
+ children: [/* @__PURE__ */ u("p", { children: n.label }), n.badge !== void 0 && n.badge > 0 && /* @__PURE__ */ u("span", {
121
123
  className: "ml-2 text-xs bg-status-error-bg-subtle text-status-error-text px-2 py-0.5 rounded-full",
122
124
  children: n.badge
123
125
  })]
124
- })] }, n.id) : /* @__PURE__ */ d(a, {
126
+ })] }, n.id) : /* @__PURE__ */ u(a, {
125
127
  item: n,
126
128
  depth: 0,
127
- maxDepth: w,
128
- currentPath: m,
129
- expandedItems: E,
130
- toggleExpand: D,
131
- onItemClick: g,
132
- onToggleCollapse: _,
133
- collapsed: h,
134
- contextSearchParams: T
129
+ maxDepth: C,
130
+ currentPath: p,
131
+ expandedItems: T,
132
+ toggleExpand: E,
133
+ onItemClick: h,
134
+ onToggleCollapse: g,
135
+ collapsed: m,
136
+ contextSearchParams: w
135
137
  }, n.id))
136
138
  })
137
139
  ]
@@ -139,22 +141,17 @@ var p = ({ items: p, currentPath: m, collapsed: h = !1, onItemClick: g, onToggle
139
141
  })
140
142
  })
141
143
  }),
142
- b && /* @__PURE__ */ d("div", {
143
- className: `py-card-padding border-t border-border-subtle ${h ? "md:px-2" : "px-card-padding"}`,
144
- children: b
144
+ y && /* @__PURE__ */ u("div", {
145
+ className: `py-card-padding border-t border-border-subtle ${m ? "md:px-2" : "px-card-padding"}`,
146
+ children: y
145
147
  }),
146
- x && x.length > 0 && /* @__PURE__ */ d(s, {
147
- actions: x,
148
- collapsed: h,
149
- onToggleCollapse: _
150
- }),
151
- _ && /* @__PURE__ */ d(c, {
152
- collapsed: h,
153
- collapseLabel: A,
154
- onToggleCollapse: _
148
+ b && b.length > 0 && /* @__PURE__ */ u(s, {
149
+ actions: b,
150
+ collapsed: m,
151
+ onToggleCollapse: g
155
152
  })
156
153
  ]
157
154
  })] });
158
155
  };
159
156
  //#endregion
160
- export { p as SideNavigation };
157
+ export { f as SideNavigation };
@@ -1,9 +1,14 @@
1
1
  import { FC, ReactNode } from 'react';
2
2
  interface SidebarHeaderProps {
3
- header: ReactNode;
3
+ header?: ReactNode;
4
4
  collapsed: boolean;
5
5
  expandedCount: number;
6
6
  onCollapseAll: () => void;
7
+ /** Collapses/expands the whole sidebar. Omitted when the host pins it open. */
8
+ onToggleCollapse?: () => void;
9
+ /** Translated control labels. Now the button's tooltip rather than visible text. */
10
+ collapseLabel: string;
11
+ expandLabel: string;
7
12
  }
8
13
  export declare const SidebarHeader: FC<SidebarHeaderProps>;
9
14
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"SidebarHeader.d.ts","sourceRoot":"","sources":["../../../src/chrome/sideNavigation/SidebarHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAE3C,UAAU,kBAAkB;IAC1B,MAAM,EAAE,SAAS,CAAC;IAClB,SAAS,EAAE,OAAO,CAAC;IACnB,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa,EAAE,MAAM,IAAI,CAAC;CAC3B;AAED,eAAO,MAAM,aAAa,EAAE,EAAE,CAAC,kBAAkB,CA0BhD,CAAC"}
1
+ {"version":3,"file":"SidebarHeader.d.ts","sourceRoot":"","sources":["../../../src/chrome/sideNavigation/SidebarHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAG3C,UAAU,kBAAkB;IAC1B,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,SAAS,EAAE,OAAO,CAAC;IACnB,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa,EAAE,MAAM,IAAI,CAAC;IAC1B,+EAA+E;IAC/E,gBAAgB,CAAC,EAAE,MAAM,IAAI,CAAC;IAC9B,oFAAoF;IACpF,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,eAAO,MAAM,aAAa,EAAE,EAAE,CAAC,kBAAkB,CAmDhD,CAAC"}
@@ -1,29 +1,37 @@
1
- import { jsx as e, jsxs as t } from "react/jsx-runtime";
1
+ import { ChevronUp as e, PanelLeft as t } from "lucide-react";
2
+ import { jsx as n, jsxs as r } from "react/jsx-runtime";
2
3
  //#region src/chrome/sideNavigation/SidebarHeader.tsx
3
- var n = ({ header: n, collapsed: r, expandedCount: i, onCollapseAll: a }) => /* @__PURE__ */ t("div", {
4
- className: `py-card-padding border-b border-border-subtle ${r ? "md:px-2" : "px-card-padding"} relative`,
5
- children: [/* @__PURE__ */ e("div", {
6
- className: i > 0 && !r ? "mr-8" : "",
7
- children: n
8
- }), !r && i > 0 && /* @__PURE__ */ e("button", {
9
- type: "button",
10
- onClick: a,
11
- className: "absolute top-1/2 -translate-y-1/2 right-3 p-1.5 rounded-button hover:bg-bg-sunken text-text-secondary hover:text-text-primary transition-colors",
12
- title: "Collapse all",
13
- "aria-label": "Collapse all menu items",
14
- children: /* @__PURE__ */ e("svg", {
15
- className: "size-4",
16
- fill: "none",
17
- stroke: "currentColor",
18
- viewBox: "0 0 24 24",
19
- children: /* @__PURE__ */ e("path", {
20
- strokeLinecap: "round",
21
- strokeLinejoin: "round",
22
- strokeWidth: 2,
23
- d: "M5 15l7-7 7 7"
24
- })
4
+ var i = ({ header: i, collapsed: a, expandedCount: o, onCollapseAll: s, onToggleCollapse: c, collapseLabel: l, expandLabel: u }) => {
5
+ let d = a ? u : l;
6
+ return /* @__PURE__ */ n("div", {
7
+ className: `py-card-padding border-b border-border-subtle ${a ? "md:px-2" : "px-card-padding"}`,
8
+ children: /* @__PURE__ */ r("div", {
9
+ className: `flex items-center gap-2 ${a ? "justify-center" : ""}`,
10
+ children: [
11
+ i && !a && /* @__PURE__ */ n("div", {
12
+ className: "min-w-0 flex-1",
13
+ children: i
14
+ }),
15
+ !a && o > 0 && /* @__PURE__ */ n("button", {
16
+ type: "button",
17
+ onClick: s,
18
+ className: "shrink-0 rounded-button p-1.5 text-text-secondary transition-colors hover:bg-bg-sunken hover:text-text-primary",
19
+ title: "Collapse all",
20
+ "aria-label": "Collapse all menu items",
21
+ children: /* @__PURE__ */ n(e, { className: "size-4" })
22
+ }),
23
+ c && /* @__PURE__ */ n("button", {
24
+ type: "button",
25
+ onClick: c,
26
+ className: "hidden shrink-0 rounded-button p-1.5 text-text-secondary transition-colors hover:bg-bg-sunken hover:text-text-primary md:block",
27
+ "aria-label": d,
28
+ "aria-expanded": !a,
29
+ title: d,
30
+ children: /* @__PURE__ */ n(t, { className: "size-5" })
31
+ })
32
+ ]
25
33
  })
26
- })]
27
- });
34
+ });
35
+ };
28
36
  //#endregion
29
- export { n as SidebarHeader };
37
+ export { i as SidebarHeader };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@burdenoff/fe-libs",
3
- "version": "2026.819.2",
3
+ "version": "2026.819.3",
4
4
  "description": "Burdenoff frontend primitives and domain libraries",
5
5
  "type": "module",
6
6
  "bin": {
@@ -1,9 +0,0 @@
1
- import { FC } from 'react';
2
- interface CollapseToggleProps {
3
- collapsed: boolean;
4
- collapseLabel: string;
5
- onToggleCollapse: () => void;
6
- }
7
- export declare const CollapseToggle: FC<CollapseToggleProps>;
8
- export {};
9
- //# sourceMappingURL=CollapseToggle.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CollapseToggle.d.ts","sourceRoot":"","sources":["../../../src/chrome/sideNavigation/CollapseToggle.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAEhC,UAAU,mBAAmB;IAC3B,SAAS,EAAE,OAAO,CAAC;IACnB,aAAa,EAAE,MAAM,CAAC;IACtB,gBAAgB,EAAE,MAAM,IAAI,CAAC;CAC9B;AAED,eAAO,MAAM,cAAc,EAAE,EAAE,CAAC,mBAAmB,CA4BlD,CAAC"}
@@ -1,29 +0,0 @@
1
- import { jsx as e, jsxs as t } from "react/jsx-runtime";
2
- //#region src/chrome/sideNavigation/CollapseToggle.tsx
3
- var n = ({ collapsed: n, collapseLabel: r, onToggleCollapse: i }) => /* @__PURE__ */ e("div", {
4
- className: `hidden md:block py-4 border-t border-border-subtle ${n ? "px-2" : "px-card-padding"}`,
5
- children: /* @__PURE__ */ t("button", {
6
- type: "button",
7
- onClick: i,
8
- className: `w-full flex items-center gap-3 py-2 rounded-button text-sm text-text-secondary hover:bg-bg-sunken hover:text-text-primary transition-colors ${n ? "justify-center px-2" : "px-3"}`,
9
- "aria-label": n ? "Expand sidebar" : "Collapse sidebar",
10
- title: n ? "Expand sidebar" : "Collapse sidebar",
11
- children: [/* @__PURE__ */ e("svg", {
12
- className: `w-icon-md h-icon-md transition-transform ${n ? "rotate-180" : ""}`,
13
- fill: "none",
14
- stroke: "currentColor",
15
- viewBox: "0 0 24 24",
16
- children: /* @__PURE__ */ e("path", {
17
- strokeLinecap: "round",
18
- strokeLinejoin: "round",
19
- strokeWidth: 2,
20
- d: "M15 19l-7-7 7-7"
21
- })
22
- }), !n && /* @__PURE__ */ e("span", {
23
- className: "text-body-sm font-medium",
24
- children: r
25
- })]
26
- })
27
- });
28
- //#endregion
29
- export { n as CollapseToggle };