codexly-ui 0.6.18 → 0.6.20
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 +11 -10
- package/fesm2022/codexly-ui.mjs.map +1 -1
- package/package.json +1 -1
package/fesm2022/codexly-ui.mjs
CHANGED
|
@@ -9646,9 +9646,13 @@ 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';
|
|
9654
|
+
// Collapsed sidebar: same breathing room, centered icon, no text.
|
|
9655
|
+
const NAV_ITEM_COLLAPSED = 'w-[calc(100%-1rem)] mx-2 py-3 justify-center';
|
|
9652
9656
|
const NAV_ITEM_IDLE = 'text-clx-text-subtle';
|
|
9653
9657
|
// ── Nav zone size → Tailwind text-size class ─────────────────────────────────
|
|
9654
9658
|
const NAV_ZONE_SIZE_CLASS = {
|
|
@@ -9712,15 +9716,12 @@ class ClxMenuComponent {
|
|
|
9712
9716
|
}
|
|
9713
9717
|
_iconCls = computed(() => resolveColor(this._color()).textSubtle, ...(ngDevMode ? [{ debugName: "_iconCls" }] : /* istanbul ignore next */ []));
|
|
9714
9718
|
_buttonCls(isActive) {
|
|
9715
|
-
const geom = this.collapsed() ?
|
|
9719
|
+
const geom = this.collapsed() ? NAV_ITEM_COLLAPSED : NAV_ITEM_L1;
|
|
9716
9720
|
const t = resolveColor(this._color());
|
|
9717
9721
|
if (isActive) {
|
|
9718
|
-
|
|
9719
|
-
if (this.collapsed())
|
|
9720
|
-
return `${base} ${t.textSubtle}`;
|
|
9721
|
-
return `${base} ${t.textSubtle} border-l-2 ${t.borderLight} !pl-[22px]`;
|
|
9722
|
+
return `${NAV_ITEM_BASE} ${resolveNavZoneActive(this._resolved())} ${geom} ${t.textSubtle} ${t.bgSubtle} rounded-lg`;
|
|
9722
9723
|
}
|
|
9723
|
-
return `${NAV_ITEM_BASE} ${resolveNavZoneIdle(this._resolved())} ${geom} ${t.hoverBgMuted}`;
|
|
9724
|
+
return `${NAV_ITEM_BASE} ${resolveNavZoneIdle(this._resolved())} ${geom} ${t.hoverBgMuted} rounded-lg`;
|
|
9724
9725
|
}
|
|
9725
9726
|
NAV_CHILDREN_WRAPPER = NAV_CHILDREN_WRAPPER;
|
|
9726
9727
|
NAV_CHILDREN_INNER = NAV_CHILDREN_INNER;
|
|
@@ -9876,7 +9877,7 @@ class ClxMenuItemComponent {
|
|
|
9876
9877
|
}, ...(ngDevMode ? [{ debugName: "_resolved" }] : /* istanbul ignore next */ []));
|
|
9877
9878
|
_geom = computed(() => {
|
|
9878
9879
|
if (this.collapsed())
|
|
9879
|
-
return
|
|
9880
|
+
return NAV_ITEM_COLLAPSED;
|
|
9880
9881
|
return this.nested() ? NAV_ITEM_L2 : NAV_ITEM_L1;
|
|
9881
9882
|
}, ...(ngDevMode ? [{ debugName: "_geom" }] : /* istanbul ignore next */ []));
|
|
9882
9883
|
_iconCls = computed(() => resolveColor(this._resolved().color).textSubtle, ...(ngDevMode ? [{ debugName: "_iconCls" }] : /* istanbul ignore next */ []));
|