codexly-ui 0.6.18 → 0.6.19
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/fesm2022/codexly-ui.mjs
CHANGED
|
@@ -9646,9 +9646,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.15", ngImpo
|
|
|
9646
9646
|
}], propDecorators: { logo: [{ type: i0.Input, args: [{ isSignal: true, alias: "logo", required: true }] }], name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: true }] }], description: [{ type: i0.Input, args: [{ isSignal: true, alias: "description", required: false }] }], collapsed: [{ type: i0.Input, args: [{ isSignal: true, alias: "collapsed", required: false }] }] } });
|
|
9647
9647
|
|
|
9648
9648
|
// ── Item geometry ──────────────────────────────────────────────────────────────
|
|
9649
|
-
const NAV_ITEM_BASE = 'flex items-center gap-3
|
|
9650
|
-
|
|
9651
|
-
|
|
9649
|
+
const NAV_ITEM_BASE = 'flex items-center gap-3 cursor-pointer select-none';
|
|
9650
|
+
// mx-3 (instead of full-bleed) so the idle-hover/active pill has breathing room from the
|
|
9651
|
+
// sidebar edges instead of touching them — width is `w-[calc(100%-...)]`, not `w-full`.
|
|
9652
|
+
const NAV_ITEM_L1 = 'w-[calc(100%-1.5rem)] mx-3 px-4 py-3';
|
|
9653
|
+
const NAV_ITEM_L2 = 'w-[calc(100%-1.5rem)] mx-3 pl-3 pr-3 py-2';
|
|
9652
9654
|
const NAV_ITEM_IDLE = 'text-clx-text-subtle';
|
|
9653
9655
|
// ── Nav zone size → Tailwind text-size class ─────────────────────────────────
|
|
9654
9656
|
const NAV_ZONE_SIZE_CLASS = {
|
|
@@ -9715,12 +9717,9 @@ class ClxMenuComponent {
|
|
|
9715
9717
|
const geom = this.collapsed() ? 'w-full py-3 px-0 justify-center' : NAV_ITEM_L1;
|
|
9716
9718
|
const t = resolveColor(this._color());
|
|
9717
9719
|
if (isActive) {
|
|
9718
|
-
|
|
9719
|
-
if (this.collapsed())
|
|
9720
|
-
return `${base} ${t.textSubtle}`;
|
|
9721
|
-
return `${base} ${t.textSubtle} border-l-2 ${t.borderLight} !pl-[22px]`;
|
|
9720
|
+
return `${NAV_ITEM_BASE} ${resolveNavZoneActive(this._resolved())} ${geom} ${t.textSubtle} ${t.bgSubtle} rounded-lg`;
|
|
9722
9721
|
}
|
|
9723
|
-
return `${NAV_ITEM_BASE} ${resolveNavZoneIdle(this._resolved())} ${geom} ${t.hoverBgMuted}`;
|
|
9722
|
+
return `${NAV_ITEM_BASE} ${resolveNavZoneIdle(this._resolved())} ${geom} ${t.hoverBgMuted} rounded-lg`;
|
|
9724
9723
|
}
|
|
9725
9724
|
NAV_CHILDREN_WRAPPER = NAV_CHILDREN_WRAPPER;
|
|
9726
9725
|
NAV_CHILDREN_INNER = NAV_CHILDREN_INNER;
|