codexly-ui 0.7.1 → 0.7.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.
@@ -9697,8 +9697,11 @@ class ClxMenuComponent {
9697
9697
  const geom = this.collapsed() ? NAV_ITEM_COLLAPSED : NAV_ITEM_L1;
9698
9698
  const t = resolveColor(this._color());
9699
9699
  const typography = resolveNavZoneTypography(this._resolved());
9700
+ // Active state reuses the same light hover tint (just without the `hover:` pseudo-class)
9701
+ // instead of the darker bgSubtle token, so selected and hovered read as the same shade.
9702
+ const activeBg = t.hoverBgMuted.replace('hover:', '');
9700
9703
  if (isActive) {
9701
- return `${NAV_ITEM_BASE} ${typography} ${geom} ${t.textSubtle} ${t.bgSubtle} rounded-lg`;
9704
+ return `${NAV_ITEM_BASE} ${typography} ${geom} ${t.textSubtle} ${activeBg} rounded-lg`;
9702
9705
  }
9703
9706
  return `${NAV_ITEM_BASE} ${typography} ${geom} ${t.hoverBgMuted} rounded-lg`;
9704
9707
  }
@@ -9728,7 +9731,7 @@ class ClxMenuComponent {
9728
9731
  clx-icon
9729
9732
  name="expand_more"
9730
9733
  size="sm"
9731
- [class]="'shrink-0 transition-transform duration-300 ' + _iconCls()"
9734
+ [class]="'shrink-0 transition-transform duration-300 ' + (rla.isActive ? '' : 'text-clx-text-subtle')"
9732
9735
  [style.transform]="_isExpanded() ? 'rotate(180deg)' : 'rotate(0deg)'">
9733
9736
  </span>
9734
9737
  }
@@ -9748,7 +9751,7 @@ class ClxMenuComponent {
9748
9751
  clx-icon
9749
9752
  name="expand_more"
9750
9753
  size="sm"
9751
- [class]="'shrink-0 transition-transform duration-300 ' + _iconCls()"
9754
+ [class]="'shrink-0 transition-transform duration-300 ' + (active() ? '' : 'text-clx-text-subtle')"
9752
9755
  [style.transform]="_isExpanded() ? 'rotate(180deg)' : 'rotate(0deg)'">
9753
9756
  </span>
9754
9757
  }
@@ -9791,7 +9794,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.15", ngImpo
9791
9794
  clx-icon
9792
9795
  name="expand_more"
9793
9796
  size="sm"
9794
- [class]="'shrink-0 transition-transform duration-300 ' + _iconCls()"
9797
+ [class]="'shrink-0 transition-transform duration-300 ' + (rla.isActive ? '' : 'text-clx-text-subtle')"
9795
9798
  [style.transform]="_isExpanded() ? 'rotate(180deg)' : 'rotate(0deg)'">
9796
9799
  </span>
9797
9800
  }
@@ -9811,7 +9814,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.15", ngImpo
9811
9814
  clx-icon
9812
9815
  name="expand_more"
9813
9816
  size="sm"
9814
- [class]="'shrink-0 transition-transform duration-300 ' + _iconCls()"
9817
+ [class]="'shrink-0 transition-transform duration-300 ' + (active() ? '' : 'text-clx-text-subtle')"
9815
9818
  [style.transform]="_isExpanded() ? 'rotate(180deg)' : 'rotate(0deg)'">
9816
9819
  </span>
9817
9820
  }
@@ -9861,13 +9864,10 @@ class ClxMenuItemComponent {
9861
9864
  }, ...(ngDevMode ? [{ debugName: "_geom" }] : /* istanbul ignore next */ []));
9862
9865
  _iconCls = computed(() => resolveColor(this._resolved().color).textSubtle, ...(ngDevMode ? [{ debugName: "_iconCls" }] : /* istanbul ignore next */ []));
9863
9866
  _typography = computed(() => resolveNavZoneTypography(this._resolved()), ...(ngDevMode ? [{ debugName: "_typography" }] : /* istanbul ignore next */ []));
9864
- _idleCls = computed(() => {
9865
- const hover = resolveColor(this._resolved().color).hoverBgMuted;
9866
- return `${NAV_ITEM_BASE} ${this._typography()} ${this._geom()} ${hover} rounded-lg`;
9867
- }, ...(ngDevMode ? [{ debugName: "_idleCls" }] : /* istanbul ignore next */ []));
9867
+ _idleCls = computed(() => `${NAV_ITEM_BASE} ${this._typography()} ${this._geom()}`, ...(ngDevMode ? [{ debugName: "_idleCls" }] : /* istanbul ignore next */ []));
9868
9868
  _activeCls = computed(() => {
9869
9869
  const t = resolveColor(this._resolved().color);
9870
- return `${NAV_ITEM_BASE} ${this._typography()} ${this._geom()} ${t.textSubtle} ${t.bgSubtle} rounded-lg`;
9870
+ return `${NAV_ITEM_BASE} ${this._typography()} ${this._geom()} ${t.textSubtle}`;
9871
9871
  }, ...(ngDevMode ? [{ debugName: "_activeCls" }] : /* istanbul ignore next */ []));
9872
9872
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.15", ngImport: i0, type: ClxMenuItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
9873
9873
  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: `