codexly-ui 0.4.3 → 0.4.5

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.
@@ -782,6 +782,10 @@ class ClxButtonComponent {
782
782
  _ripples = signal([], ...(ngDevMode ? [{ debugName: "_ripples" }] : /* istanbul ignore next */ []));
783
783
  _nextId = 0;
784
784
  _el = inject((ElementRef));
785
+ /** Static `class="..."` written by the consumer template, captured before the `[class]`
786
+ * host binding below overwrites it — otherwise any consumer-supplied classes (e.g.
787
+ * positioning utilities like `absolute`/`group-hover:opacity-100`) would be silently lost. */
788
+ _consumerClass = this._el.nativeElement.getAttribute('class') ?? '';
785
789
  _inactive = computed(() => this.loading() || this.disabled(), ...(ngDevMode ? [{ debugName: "_inactive" }] : /* istanbul ignore next */ []));
786
790
  _badgeClass = computed(() => {
787
791
  const t = resolveColor(this.badgeColor());
@@ -845,7 +849,8 @@ class ClxButtonComponent {
845
849
  : BUTTON_SHAPE_FIXED[s];
846
850
  const overflowClass = (this.badge() !== undefined && this.badge() !== null) ? 'overflow-visible' : 'overflow-hidden';
847
851
  const base = BUTTON_BASE_CLASS.replace('overflow-hidden', overflowClass);
848
- return `${base} ${colorClass} ${sizeClass} ${shapeClass}${this.block() ? ' w-full' : ''}`.trimEnd();
852
+ const consumer = this._consumerClass ? ` ${this._consumerClass}` : '';
853
+ return `${base} ${colorClass} ${sizeClass} ${shapeClass}${this.block() ? ' w-full' : ''}${consumer}`.trimEnd();
849
854
  }, ...(ngDevMode ? [{ debugName: "_hostClass" }] : /* istanbul ignore next */ []));
850
855
  _onRipple(event) {
851
856
  if (this._inactive())
@@ -5281,7 +5286,7 @@ class ClxUploadComponent {
5281
5286
  size="xs"
5282
5287
  icon="close"
5283
5288
  [iconOnly]="true"
5284
- class="absolute top-1 right-1 opacity-0 group-hover:opacity-100 focus-visible:opacity-100 transition-opacity shadow-md"
5289
+ class="absolute top-1 right-1 shadow-md"
5285
5290
  [disabled]="_disabled()"
5286
5291
  (click)="_removeItem(item); $event.stopPropagation()">
5287
5292
  </button>
@@ -5390,7 +5395,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.15", ngImpo
5390
5395
  size="xs"
5391
5396
  icon="close"
5392
5397
  [iconOnly]="true"
5393
- class="absolute top-1 right-1 opacity-0 group-hover:opacity-100 focus-visible:opacity-100 transition-opacity shadow-md"
5398
+ class="absolute top-1 right-1 shadow-md"
5394
5399
  [disabled]="_disabled()"
5395
5400
  (click)="_removeItem(item); $event.stopPropagation()">
5396
5401
  </button>