codexly-ui 0.10.106 → 0.10.108

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.
@@ -999,8 +999,12 @@ class ClxButtonComponent {
999
999
  if (!textOverride)
1000
1000
  return cls;
1001
1001
  // Strip any text-* class the variant branch above already added, then apply the override —
1002
- // avoids two text-* classes of equal CSS specificity racing on source order.
1003
- return cls.replace(/(?:^|\s)text-\S+/g, '').trim() + ` ${resolveColor(textOverride).text}`;
1002
+ // avoids two text-* classes of equal CSS specificity racing on source order. Uses the literal
1003
+ // text-{color}-{shade} class (not resolveColor().text, which ignores the chosen color and
1004
+ // auto-picks white/dark-800 for contrast against a background — the override IS the user's
1005
+ // explicit color choice, not a background to contrast against).
1006
+ const { color: oc, shade: os } = parseColorInput(textOverride);
1007
+ return cls.replace(/(?:^|\s)text-\S+/g, '').trim() + ` text-${oc}-${os}`;
1004
1008
  }, ...(ngDevMode ? [{ debugName: "_colorClass" }] : /* istanbul ignore next */ []));
1005
1009
  /** Auto-applies primaryButtonTextColor/secondaryButtonTextColor from the theme when this
1006
1010
  * button's own resolved color IS the theme's primaryColor/secondaryColor and no explicit
@@ -10582,7 +10586,9 @@ class ClxMenuItemComponent {
10582
10586
  if (!this.nested()) {
10583
10587
  return `${NAV_ITEM_BASE} ${this._typography()} ${this._geom()} ${t.textSubtle} ${t.bgMuted} rounded-lg`;
10584
10588
  }
10585
- return `${NAV_ITEM_BASE} ${this._typography()} ${this._geom()} ${t.textSubtle}`;
10589
+ // Nested (child) items stay flat with no active pill background, so the selected state needs
10590
+ // its own visual cue — bold on top of the theme's configured size/weight.
10591
+ return `${NAV_ITEM_BASE} ${this._typography()} font-semibold ${this._geom()} ${t.textSubtle}`;
10586
10592
  }, ...(ngDevMode ? [{ debugName: "_activeCls" }] : /* istanbul ignore next */ []));
10587
10593
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.15", ngImport: i0, type: ClxMenuItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
10588
10594
  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: `