codexly-ui 0.19.8 → 0.19.9

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.
@@ -690,6 +690,7 @@ class ClxThemeService {
690
690
  /** Resolved border color for ClxCardComponent (outlined/elevated variants) — falls back to
691
691
  * primaryColor when unset. Per-instance `[color]` input on clx-card still takes precedence. */
692
692
  cardBorderColor = computed(() => this._config().cardBorderColor ?? this._config().primaryColor, ...(ngDevMode ? [{ debugName: "cardBorderColor" }] : /* istanbul ignore next */ []));
693
+ cardIconColor = computed(() => this._config().cardIconColor ?? this._config().primaryColor, ...(ngDevMode ? [{ debugName: "cardIconColor" }] : /* istanbul ignore next */ []));
693
694
  /** Resolved divider/border color for ClxListComponent — falls back to primaryColor when unset.
694
695
  * Per-instance `[color]` input on clx-list still takes precedence. */
695
696
  listBorderColor = computed(() => this._config().listBorderColor ?? this._config().primaryColor, ...(ngDevMode ? [{ debugName: "listBorderColor" }] : /* istanbul ignore next */ []));
@@ -1624,6 +1625,11 @@ class ClxCardComponent {
1624
1625
  /** Optional secondary line under headerTitle. */
1625
1626
  headerSubtitle = input(undefined, ...(ngDevMode ? [{ debugName: "headerSubtitle" }] : /* istanbul ignore next */ []));
1626
1627
  _color = computed(() => this.color() ?? this._themeSvc.cardBorderColor(), ...(ngDevMode ? [{ debugName: "_color" }] : /* istanbul ignore next */ []));
1628
+ /** Header icon badge: explicit [color] → theme cardIconColor → primaryColor (same fallback chain
1629
+ * as clx-collapse / the form controls). */
1630
+ _iconColor = computed(() => this.color() ?? this._themeSvc.cardIconColor(), ...(ngDevMode ? [{ debugName: "_iconColor" }] : /* istanbul ignore next */ []));
1631
+ _iconWrapCls = computed(() => `w-8 h-8 rounded-lg flex items-center justify-center shrink-0 ${resolveColor(this._iconColor()).bgMuted}`, ...(ngDevMode ? [{ debugName: "_iconWrapCls" }] : /* istanbul ignore next */ []));
1632
+ _iconCls = computed(() => resolveColor(this._iconColor()).textSubtle, ...(ngDevMode ? [{ debugName: "_iconCls" }] : /* istanbul ignore next */ []));
1627
1633
  _titleClass = computed(() => `text-sm font-[${this._themeSvc.cardTitleStyle().weight}] text-clx-text-label leading-tight truncate`, ...(ngDevMode ? [{ debugName: "_titleClass" }] : /* istanbul ignore next */ []));
1628
1634
  _headerSlot = contentChild(ClxCardHeaderDirective, ...(ngDevMode ? [{ debugName: "_headerSlot" }] : /* istanbul ignore next */ []));
1629
1635
  _headerActionsSlot = contentChild(ClxCardHeaderActionsDirective, ...(ngDevMode ? [{ debugName: "_headerActionsSlot" }] : /* istanbul ignore next */ []));
@@ -1679,8 +1685,8 @@ class ClxCardComponent {
1679
1685
  <div class="clx-card-header flex w-full items-center justify-between gap-3 px-4 py-3 border-b border-clx-border-soft">
1680
1686
  <div class="flex items-center gap-3 min-w-0">
1681
1687
  @if (icon()) {
1682
- <div class="w-8 h-8 rounded-lg bg-clx-primary-subtle flex items-center justify-center shrink-0">
1683
- <span clx-icon [name]="icon()!" size="sm" class="text-clx-primary"></span>
1688
+ <div [class]="_iconWrapCls()">
1689
+ <span clx-icon [name]="icon()!" size="sm" [class]="_iconCls()"></span>
1684
1690
  </div>
1685
1691
  }
1686
1692
  <div class="flex flex-col min-w-0">
@@ -1731,8 +1737,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.15", ngImpo
1731
1737
  <div class="clx-card-header flex w-full items-center justify-between gap-3 px-4 py-3 border-b border-clx-border-soft">
1732
1738
  <div class="flex items-center gap-3 min-w-0">
1733
1739
  @if (icon()) {
1734
- <div class="w-8 h-8 rounded-lg bg-clx-primary-subtle flex items-center justify-center shrink-0">
1735
- <span clx-icon [name]="icon()!" size="sm" class="text-clx-primary"></span>
1740
+ <div [class]="_iconWrapCls()">
1741
+ <span clx-icon [name]="icon()!" size="sm" [class]="_iconCls()"></span>
1736
1742
  </div>
1737
1743
  }
1738
1744
  <div class="flex flex-col min-w-0">