@burdenoff/fe-libs 2026.528.8 → 2026.528.9
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":"NavItemRenderer.d.ts","sourceRoot":"","sources":["../../../src/chrome/sideNavigation/NavItemRenderer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,
|
|
1
|
+
{"version":3,"file":"NavItemRenderer.d.ts","sourceRoot":"","sources":["../../../src/chrome/sideNavigation/NavItemRenderer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAiC,MAAM,OAAO,CAAC;AAC/D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAGvC,UAAU,oBAAoB;IAC5B,IAAI,EAAE,OAAO,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IAC3B,YAAY,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,WAAW,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACpC,gBAAgB,CAAC,EAAE,MAAM,IAAI,CAAC;IAC9B,SAAS,EAAE,OAAO,CAAC;CACpB;AAED,eAAO,MAAM,eAAe,EAAE,EAAE,CAAC,oBAAoB,CAwJpD,CAAC"}
|
|
@@ -2,24 +2,30 @@ import { isItemDirectlyActive as e, isItemOrChildActive as t } from "./helpers.j
|
|
|
2
2
|
import { jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
3
3
|
//#region src/chrome/sideNavigation/NavItemRenderer.tsx
|
|
4
4
|
var i = ({ item: a, depth: o, maxDepth: s, currentPath: c, expandedItems: l, toggleExpand: u, onItemClick: d, onToggleCollapse: f, collapsed: p }) => {
|
|
5
|
-
let m = a.children && a.children.length > 0 && o < s, h = l.has(a.id), g = t(a, c), _ = e(a, c), v = o === 0 ? "w-icon-md h-icon-md" : "w-4 h-4"
|
|
5
|
+
let m = a.children && a.children.length > 0 && o < s, h = l.has(a.id), g = t(a, c), _ = e(a, c), v = o === 0 ? "w-icon-md h-icon-md" : "w-4 h-4", y = o === 0 ? "py-2" : "py-1.5", b = (e) => {
|
|
6
|
+
let t = e.currentTarget.closest("nav"), n = t?.scrollTop, r = () => {
|
|
7
|
+
t && n !== void 0 && (t.scrollTop = n);
|
|
8
|
+
};
|
|
9
|
+
if (p && o === 0 && m) {
|
|
10
|
+
d(a.homePath || a.children?.[0]?.path || a.path), requestAnimationFrame(r);
|
|
11
|
+
return;
|
|
12
|
+
}
|
|
13
|
+
m ? (u(a.id), requestAnimationFrame(r)) : (d(a.path), window.innerWidth < 768 && f && !p && f(), requestAnimationFrame(r));
|
|
14
|
+
};
|
|
6
15
|
return /* @__PURE__ */ r("li", { children: [/* @__PURE__ */ n("div", {
|
|
7
16
|
className: "relative",
|
|
8
17
|
children: /* @__PURE__ */ r("button", {
|
|
9
18
|
type: "button",
|
|
10
|
-
onClick: () =>
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
return;
|
|
14
|
-
}
|
|
15
|
-
m ? u(a.id) : (d(a.path), window.innerWidth < 768 && f && !p && f());
|
|
19
|
+
onClick: (e) => b(e),
|
|
20
|
+
onMouseDown: (e) => {
|
|
21
|
+
e.preventDefault();
|
|
16
22
|
},
|
|
17
23
|
className: `
|
|
18
|
-
w-full flex items-center gap-icon-gap ${
|
|
24
|
+
w-full flex items-center gap-icon-gap ${y} rounded-button
|
|
19
25
|
transition-colors duration-200 ease-out
|
|
20
26
|
active:scale-[0.98]
|
|
21
27
|
${p && o === 0 ? "md:px-2 md:justify-center" : "px-card-padding"}
|
|
22
|
-
${_ && !m ? "bg-action-primary-bg text-action-primary-text shadow-sm" : g && !h ? "bg-action-ghost-bg-hover text-text-primary" : "text-text-secondary hover:bg-action-ghost-bg-hover hover:text-text-primary"}
|
|
28
|
+
${_ && !m || _ && m ? "bg-action-primary-bg text-action-primary-text shadow-sm" : g && !h && !m ? "bg-action-ghost-bg-hover text-text-primary" : g && m ? "text-text-primary" : "text-text-secondary hover:bg-action-ghost-bg-hover hover:text-text-primary"}
|
|
23
29
|
`,
|
|
24
30
|
"aria-label": a.label,
|
|
25
31
|
children: [
|
package/package.json
CHANGED
|
@@ -55,6 +55,23 @@
|
|
|
55
55
|
--color-action-ghost-bgHover: var(--color-action-ghost-bgHover);
|
|
56
56
|
--color-action-ghost-text: var(--color-action-ghost-text);
|
|
57
57
|
--color-action-danger-bg: var(--color-action-danger-bg);
|
|
58
|
+
--color-action-danger-bgHover: var(--color-action-danger-bgHover);
|
|
59
|
+
--color-action-danger-text: var(--color-action-danger-text);
|
|
60
|
+
|
|
61
|
+
/* Backward-compat aliases: legacy `-fg`/`-bg-hover` token names.
|
|
62
|
+
Many call-sites (tunnels, agent banner, etc.) referenced these
|
|
63
|
+
before round 2's `-text`/`-bgHover` standardisation. Keep the
|
|
64
|
+
aliases so old class names like `text-action-primary-fg` and
|
|
65
|
+
`bg-action-primary-bg-hover` resolve to the canonical colour. */
|
|
66
|
+
--color-action-primary-fg: var(--color-action-primary-text);
|
|
67
|
+
--color-action-primary-bg-hover: var(--color-action-primary-bgHover);
|
|
68
|
+
--color-action-primary-bg-active: var(--color-action-primary-bgActive);
|
|
69
|
+
--color-action-secondary-fg: var(--color-action-secondary-text);
|
|
70
|
+
--color-action-secondary-bg-hover: var(--color-action-secondary-bgHover);
|
|
71
|
+
--color-action-ghost-fg: var(--color-action-ghost-text);
|
|
72
|
+
--color-action-ghost-bg-hover: var(--color-action-ghost-bgHover);
|
|
73
|
+
--color-action-danger-fg: var(--color-action-danger-text);
|
|
74
|
+
--color-action-danger-bg-hover: var(--color-action-danger-bgHover);
|
|
58
75
|
|
|
59
76
|
/* Status colors */
|
|
60
77
|
--color-status-success-bg: var(--color-status-success-bg);
|