@ai-matrx/design-system 0.60.0 → 0.60.6

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.
@@ -52761,7 +52761,15 @@ function MatrxDataTableCore(coreProps) {
52761
52761
  editable: _edit,
52762
52762
  ...custom
52763
52763
  } = column;
52764
- return { ...custom, id: columnId(column), reorderable: false, sortable: false, filter: false, editable: false };
52764
+ return {
52765
+ ...custom,
52766
+ id: columnId(column),
52767
+ reorderable: false,
52768
+ sortable: false,
52769
+ filter: false,
52770
+ editable: false,
52771
+ ...custom.resizable === void 0 && custom.width === void 0 ? { resizable: false } : {}
52772
+ };
52765
52773
  }), [suppliedColumns]);
52766
52774
  const embedded = appearance === "embedded";
52767
52775
  const zebra = suppliedZebra ?? !embedded;
@@ -55456,6 +55464,7 @@ function MatrxDataTableCore(coreProps) {
55456
55464
  sheetCell?.["data-matrx-cell-active"] && "relative z-10 ring-2 ring-inset ring-primary",
55457
55465
  carriesFillHandle && "relative",
55458
55466
  col.compact || resolveColumnMarker(col) !== void 0 ? "px-1" : "px-2",
55467
+ col.customActions && col.width === void 0 && !(resizableColumns && col.resizable !== false) && "w-px whitespace-nowrap",
55459
55468
  // nowrap (NOT truncate — truncate clips the cell and
55460
55469
  // defeats w-max, killing the horizontal scroll).
55461
55470
  "max-sm:whitespace-nowrap",
@@ -56465,6 +56474,8 @@ function MatrxDataTableCore(coreProps) {
56465
56474
  "aria-sort": isSorted ? sort?.direction === "asc" ? "ascending" : "descending" : void 0,
56466
56475
  className: cn(
56467
56476
  "relative h-9 text-left align-middle max-sm:whitespace-nowrap",
56477
+ // A declared actions column with no width shrinks to its controls, like the built-in one.
56478
+ col.customActions && width === void 0 && !columnResizable && "w-px whitespace-nowrap",
56468
56479
  // ICON COLUMN (MatrxColumnDef.compact): a 40px star
56469
56480
  // column cannot honor `width: 40` while paying 16px of
56470
56481
  // padding for a 14px glyph.
@@ -56489,7 +56500,7 @@ function MatrxDataTableCore(coreProps) {
56489
56500
  phoneFrozenId === id && FROZEN_PHONE_HEADER_CLASS,
56490
56501
  embedded && (frozenColumns.offsets[id] !== void 0 || phoneFrozenId === id) && "sm:bg-card max-sm:bg-card",
56491
56502
  frozenEdgeId === id && FROZEN_EDGE_CLASS,
56492
- pinnedActionsColumnId === id && "sm:sticky sm:right-0 sm:z-30 sm:bg-muted sm:shadow-[inset_1px_0_0_var(--color-border)]",
56503
+ pinnedActionsColumnId === id && "text-right sm:sticky sm:right-0 sm:z-30 sm:bg-muted sm:shadow-[inset_1px_0_0_var(--color-border)]",
56493
56504
  pinnedActionsColumnId === id && embedded && "sm:bg-card"
56494
56505
  ),
56495
56506
  style: {