@ai-matrx/design-system 0.19.9 → 0.19.10

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.
@@ -8528,7 +8528,17 @@ function MatrxDataTableCore({
8528
8528
  0
8529
8529
  );
8530
8530
  const selectionWidth = widthFor("th[data-matrx-table-selection-column]");
8531
- const actionsWidth = widthFor("th[data-matrx-table-actions-column]");
8531
+ const headerActionsWidth = widthFor("th[data-matrx-table-actions-column]");
8532
+ const visibleActionStrips = Array.from(
8533
+ table?.querySelectorAll("[data-matrx-table-row-actions]") ?? []
8534
+ ).filter(
8535
+ (element) => element.closest("table") === table && element.getClientRects().length > 0
8536
+ );
8537
+ const actionContentWidth = Math.max(
8538
+ 0,
8539
+ ...visibleActionStrips.map((element) => Math.ceil(element.scrollWidth))
8540
+ );
8541
+ const actionsWidth = actionContentWidth || headerActionsWidth;
8532
8542
  return {
8533
8543
  ...headerTotal > 0 ? { tableWidth: Math.ceil(headerTotal) } : {},
8534
8544
  ...selectionWidth === void 0 ? {} : { selectionWidth },
@@ -9446,7 +9456,7 @@ function MatrxDataTableCore({
9446
9456
  TableTitleRow,
9447
9457
  {
9448
9458
  ...toolbar?.title === void 0 ? {} : { title: toolbar.title },
9449
- context: tableId && SavedViews ? /* @__PURE__ */ jsx38(
9459
+ context: tableId && SavedViews ? /* @__PURE__ */ jsx38("span", { "data-matrx-table-view-control": true, children: /* @__PURE__ */ jsx38(
9450
9460
  SavedViews,
9451
9461
  {
9452
9462
  tableId,
@@ -9454,7 +9464,7 @@ function MatrxDataTableCore({
9454
9464
  defaultSnapshot: declaredDefaultViewSnapshot,
9455
9465
  onApply: applySavedView
9456
9466
  }
9457
- ) : void 0,
9467
+ ) }) : void 0,
9458
9468
  search: showSearch ? intelligentSearchEnabled ? /* @__PURE__ */ jsx38(
9459
9469
  TableSearch,
9460
9470
  {