codexly-ui 0.5.8 → 0.6.0

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.
@@ -4424,7 +4424,7 @@ class ClxRadioComponent {
4424
4424
  return `${base} border-clx-border bg-clx-surface`;
4425
4425
  const t = resolveColor(this._color());
4426
4426
  if (this._variant() === 'solid')
4427
- return `${base} ${t.bg} ${t.border}`;
4427
+ return `${base} bg-clx-surface ${t.border}`;
4428
4428
  return `${base} ${t.bgSubtle} ${t.borderLight}`;
4429
4429
  }, ...(ngDevMode ? [{ debugName: "_ringClass" }] : /* istanbul ignore next */ []));
4430
4430
  _dotClass = computed(() => {
@@ -4435,7 +4435,7 @@ class ClxRadioComponent {
4435
4435
  return `${base} scale-100 bg-clx-surface`;
4436
4436
  const t = resolveColor(this._color());
4437
4437
  if (this._variant() === 'solid')
4438
- return `${base} scale-100 ${t.text}`;
4438
+ return `${base} scale-100 ${t.bg}`;
4439
4439
  return `${base} scale-100 ${t.textSubtle}`;
4440
4440
  }, ...(ngDevMode ? [{ debugName: "_dotClass" }] : /* istanbul ignore next */ []));
4441
4441
  _labelClass = computed(() => {
@@ -11323,7 +11323,10 @@ class ClxPaginationComponent {
11323
11323
  return items;
11324
11324
  }, ...(ngDevMode ? [{ debugName: "_pageItems" }] : /* istanbul ignore next */ []));
11325
11325
  // ── Clases ─────────────────────────────────────────────────────────────────
11326
- _wrapClass = computed(() => `flex flex-wrap items-center justify-between ${this._cfg().gap}`, ...(ngDevMode ? [{ debugName: "_wrapClass" }] : /* istanbul ignore next */ []));
11326
+ _wrapClass = computed(() => {
11327
+ const { color } = parseColorInput(this._color());
11328
+ return `flex flex-wrap items-center justify-between ${this._cfg().gap} bg-clx-surface rounded-lg border border-${color}-200 px-4 py-3`;
11329
+ }, ...(ngDevMode ? [{ debugName: "_wrapClass" }] : /* istanbul ignore next */ []));
11327
11330
  _infoClass = computed(() => `${this._cfg().text} text-clx-text-muted whitespace-nowrap`, ...(ngDevMode ? [{ debugName: "_infoClass" }] : /* istanbul ignore next */ []));
11328
11331
  _ellipsisClass = computed(() => {
11329
11332
  const sizes = {
@@ -12189,7 +12192,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.15", ngImpo
12189
12192
  const TABLE_BASE_CLASS = 'w-full text-left border-collapse text-sm';
12190
12193
  const TABLE_HEADER_CELL_CLASS = 'px-4 py-3 font-semibold whitespace-nowrap';
12191
12194
  const TABLE_CELL_CLASS = 'px-4 py-3 border-b border-clx-border-soft text-clx-text-label';
12192
- const TABLE_ROW_CLASS = '';
12195
+ const TABLE_ROW_CLASS = 'bg-clx-surface';
12193
12196
  // ── Alignment ────────────────────────────────────────────────────────────────
12194
12197
  const TABLE_ALIGN_MAP = {
12195
12198
  left: 'text-left',
@@ -12394,11 +12397,11 @@ class ClxTableComponent {
12394
12397
  this.pageChange.emit({ pageIndex: idx, pageSize: this.pageSize() });
12395
12398
  }
12396
12399
  // ── Computed ───────────────────────────────────────────────────────────────
12397
- _tableClass = computed(() => {
12400
+ _tableWrapperClass = computed(() => {
12398
12401
  const { color } = parseColorInput(this._color());
12399
- const stripe = `[&_tbody_tr:nth-child(even)]:bg-${color}-50/50`;
12400
- return `${TABLE_BASE_CLASS} ${stripe}`;
12401
- }, ...(ngDevMode ? [{ debugName: "_tableClass" }] : /* istanbul ignore next */ []));
12402
+ return `overflow-x-auto overflow-y-hidden rounded-lg border border-${color}-200`;
12403
+ }, ...(ngDevMode ? [{ debugName: "_tableWrapperClass" }] : /* istanbul ignore next */ []));
12404
+ _tableClass = computed(() => TABLE_BASE_CLASS, ...(ngDevMode ? [{ debugName: "_tableClass" }] : /* istanbul ignore next */ []));
12402
12405
  _headerClass = computed(() => {
12403
12406
  const t = resolveColor(this._color());
12404
12407
  return `${t.bgSubtle} ${t.textSubtle}`;
@@ -12550,15 +12553,12 @@ class ClxTableComponent {
12550
12553
  </div>
12551
12554
  } @else {
12552
12555
  <!-- ── Tabla ───────────────────────────────────────────────────────── -->
12553
- <div class="overflow-x-auto">
12556
+ <div [class]="_tableWrapperClass()">
12554
12557
  <table [class]="_tableClass()">
12555
12558
  <thead>
12556
12559
  <tr [class]="_headerClass()">
12557
12560
  @if (selectable()) {
12558
- <th [class]="_headerCellClass()"
12559
- [class.rounded-tl-lg]="true"
12560
- [class.rounded-bl-lg]="true"
12561
- class="w-10 text-center">
12561
+ <th [class]="_headerCellClass()" class="w-10 text-center">
12562
12562
  @if (!singleSelect()) {
12563
12563
  <clx-checkbox
12564
12564
  [color]="_color()"
@@ -12569,13 +12569,9 @@ class ClxTableComponent {
12569
12569
  </th>
12570
12570
  }
12571
12571
 
12572
- @for (col of columns(); track col.key; let first = $first; let last = $last) {
12572
+ @for (col of columns(); track col.key) {
12573
12573
  <th
12574
12574
  [class]="_getHeaderCellClass(col)"
12575
- [class.rounded-tl-lg]="first && !selectable()"
12576
- [class.rounded-bl-lg]="first && !selectable()"
12577
- [class.rounded-tr-lg]="last"
12578
- [class.rounded-br-lg]="last"
12579
12575
  [style.width]="col.width"
12580
12576
  (click)="col.sortable && _handleSort(col.key)">
12581
12577
  <div class="flex items-center gap-1.5"
@@ -12636,7 +12632,7 @@ class ClxTableComponent {
12636
12632
 
12637
12633
  <!-- ── Footer: clx-pagination ────────────────────────────────────────── -->
12638
12634
  @if (pagination()) {
12639
- <div class="border-t border-clx-border-soft pt-3">
12635
+ <div class="mt-3">
12640
12636
  <clx-pagination
12641
12637
  size="sm"
12642
12638
  [totalItems]="_totalItems()"
@@ -12704,15 +12700,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.15", ngImpo
12704
12700
  </div>
12705
12701
  } @else {
12706
12702
  <!-- ── Tabla ───────────────────────────────────────────────────────── -->
12707
- <div class="overflow-x-auto">
12703
+ <div [class]="_tableWrapperClass()">
12708
12704
  <table [class]="_tableClass()">
12709
12705
  <thead>
12710
12706
  <tr [class]="_headerClass()">
12711
12707
  @if (selectable()) {
12712
- <th [class]="_headerCellClass()"
12713
- [class.rounded-tl-lg]="true"
12714
- [class.rounded-bl-lg]="true"
12715
- class="w-10 text-center">
12708
+ <th [class]="_headerCellClass()" class="w-10 text-center">
12716
12709
  @if (!singleSelect()) {
12717
12710
  <clx-checkbox
12718
12711
  [color]="_color()"
@@ -12723,13 +12716,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.15", ngImpo
12723
12716
  </th>
12724
12717
  }
12725
12718
 
12726
- @for (col of columns(); track col.key; let first = $first; let last = $last) {
12719
+ @for (col of columns(); track col.key) {
12727
12720
  <th
12728
12721
  [class]="_getHeaderCellClass(col)"
12729
- [class.rounded-tl-lg]="first && !selectable()"
12730
- [class.rounded-bl-lg]="first && !selectable()"
12731
- [class.rounded-tr-lg]="last"
12732
- [class.rounded-br-lg]="last"
12733
12722
  [style.width]="col.width"
12734
12723
  (click)="col.sortable && _handleSort(col.key)">
12735
12724
  <div class="flex items-center gap-1.5"
@@ -12790,7 +12779,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.15", ngImpo
12790
12779
 
12791
12780
  <!-- ── Footer: clx-pagination ────────────────────────────────────────── -->
12792
12781
  @if (pagination()) {
12793
- <div class="border-t border-clx-border-soft pt-3">
12782
+ <div class="mt-3">
12794
12783
  <clx-pagination
12795
12784
  size="sm"
12796
12785
  [totalItems]="_totalItems()"