codexly-ui 0.6.17 → 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.
@@ -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 w-full cursor-pointer select-none';
9650
- const NAV_ITEM_L1 = 'px-6 py-3';
9651
- const NAV_ITEM_L2 = 'pl-4 pr-3 py-2';
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
- const base = `${NAV_ITEM_BASE} ${resolveNavZoneActive(this._resolved())} ${geom}`;
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;
@@ -9882,15 +9881,12 @@ class ClxMenuItemComponent {
9882
9881
  _iconCls = computed(() => resolveColor(this._resolved().color).textSubtle, ...(ngDevMode ? [{ debugName: "_iconCls" }] : /* istanbul ignore next */ []));
9883
9882
  _idleCls = computed(() => {
9884
9883
  const hover = resolveColor(this._resolved().color).hoverBgMuted;
9885
- return `${NAV_ITEM_BASE} ${resolveNavZoneIdle(this._resolved())} ${this._geom()} ${hover}`;
9884
+ return `${NAV_ITEM_BASE} ${resolveNavZoneIdle(this._resolved())} ${this._geom()} ${hover} rounded-lg`;
9886
9885
  }, ...(ngDevMode ? [{ debugName: "_idleCls" }] : /* istanbul ignore next */ []));
9887
9886
  _activeCls = computed(() => {
9888
9887
  const t = resolveColor(this._resolved().color);
9889
9888
  const typography = resolveNavZoneActive(this._resolved());
9890
- if (this.collapsed()) {
9891
- return `${NAV_ITEM_BASE} ${typography} ${this._geom()} ${t.textSubtle}`;
9892
- }
9893
- return `${NAV_ITEM_BASE} ${typography} ${this._geom()} ${t.textSubtle} border-l-2 ${t.borderLight} !pl-[22px] ${t.hoverBgMuted}`;
9889
+ return `${NAV_ITEM_BASE} ${typography} ${this._geom()} ${t.textSubtle} ${t.bgSubtle} rounded-lg`;
9894
9890
  }, ...(ngDevMode ? [{ debugName: "_activeCls" }] : /* istanbul ignore next */ []));
9895
9891
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.15", ngImport: i0, type: ClxMenuItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
9896
9892
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.15", type: ClxMenuItemComponent, isStandalone: true, selector: "clx-menu-item", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: true, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, active: { classPropertyName: "active", publicName: "active", isSignal: true, isRequired: false, transformFunction: null }, style: { classPropertyName: "style", publicName: "style", isSignal: true, isRequired: false, transformFunction: null }, nested: { classPropertyName: "nested", publicName: "nested", isSignal: true, isRequired: false, transformFunction: null }, collapsed: { classPropertyName: "collapsed", publicName: "collapsed", isSignal: true, isRequired: false, transformFunction: null }, routerLink: { classPropertyName: "routerLink", publicName: "routerLink", isSignal: true, isRequired: false, transformFunction: null }, routerLinkActiveOptions: { classPropertyName: "routerLinkActiveOptions", publicName: "routerLinkActiveOptions", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { itemClick: "itemClick" }, host: { classAttribute: "block" }, ngImport: i0, template: `