@ai-matrx/design-system 0.48.9 → 0.48.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.
@@ -43827,7 +43827,9 @@ function BottomSheet({
43827
43827
  {
43828
43828
  className: cn(
43829
43829
  "fixed inset-x-0 bottom-0 z-[10000] mt-24 flex flex-col rounded-t-2xl overflow-hidden",
43830
- size === "full" ? "h-[92dvh]" : "min-h-[60dvh] max-h-[90dvh]",
43830
+ // Adaptive sizes to its content, up to 90dvh — never a 60dvh floor that
43831
+ // left a two-action sheet mostly empty (hosts overrode it with min-h-0).
43832
+ size === "full" ? "h-[92dvh]" : "max-h-[90dvh]",
43831
43833
  surface === "solid" && "border border-b-0 border-border bg-background shadow-2xl",
43832
43834
  contentClassName
43833
43835
  ),
@@ -51111,10 +51113,11 @@ function MatrxDataTableCore(coreProps) {
51111
51113
  },
51112
51114
  "matrx-column-spacer-end"
51113
51115
  ) : null
51114
- ] }, `sk-${i}`)) : readFailure ? /* @__PURE__ */ jsx48("tr", { children: /* @__PURE__ */ jsx48("td", { colSpan: renderedColSpan, className: "px-0 py-12 text-center", children: /* @__PURE__ */ jsx48("div", { className: "sticky left-0 flex flex-col items-center gap-2 whitespace-normal px-4", style: { width: "100cqw", maxWidth: "100%" }, children: readFailure }) }) }) : paginated.length === 0 ? /* @__PURE__ */ jsx48("tr", { children: /* @__PURE__ */ jsx48(
51116
+ ] }, `sk-${i}`)) : readFailure ? /* @__PURE__ */ jsx48("tr", { children: /* @__PURE__ */ jsx48("td", { colSpan: renderedColSpan, "data-matrx-table-message-cell": true, className: "px-0 py-12 text-center", children: /* @__PURE__ */ jsx48("div", { className: "sticky left-0 flex flex-col items-center gap-2 whitespace-normal px-4", style: { width: "100cqw", maxWidth: "100%" }, children: readFailure }) }) }) : paginated.length === 0 ? /* @__PURE__ */ jsx48("tr", { children: /* @__PURE__ */ jsx48(
51115
51117
  "td",
51116
51118
  {
51117
51119
  colSpan: renderedColSpan,
51120
+ "data-matrx-table-message-cell": true,
51118
51121
  className: "px-0 py-12 text-center",
51119
51122
  children: /* @__PURE__ */ jsxs37("div", { "data-matrx-table-empty-state": true, className: "sticky left-0 flex flex-col items-center gap-2 whitespace-normal px-4", style: { width: "100cqw", maxWidth: "100%" }, children: [
51120
51123
  renderedEmptyState?.icon,
@@ -51401,32 +51404,38 @@ function MatrxDataTableCore(coreProps) {
51401
51404
  ] }) : !isLoading && appendQuery.pagination.totalItems !== void 0 && data.length === appendQuery.pagination.totalItems ? /* @__PURE__ */ jsx48("span", { className: "min-w-0 max-w-full break-words whitespace-normal px-3 text-xs text-muted-foreground sm:text-sm", children: "All rows loaded" }) : null
51402
51405
  ]
51403
51406
  }
51404
- ) : !hidePagination ? /* @__PURE__ */ jsx48(MatrxTableChrome, { part: "pagination", epoch: paginationEpoch, render: () => /* @__PURE__ */ jsx48("div", { className: "shrink-0", children: /* @__PURE__ */ jsx48(
51405
- GenericTablePagination,
51406
- {
51407
- totalItems,
51408
- ...paginationLabelFormat ? { labelFormat: paginationLabelFormat } : sourceTotal === void 0 ? {} : { labelFormat: (start, end, total) => `${formatCount3(start)}\u2013${formatCount3(end)} of ${formatCount3(total)} matching \xB7 ${formatCount3(data.length)} / ${formatCount3(sourceTotal)} loaded` },
51409
- ...localProgressiveEnabled ? { progressive: {
51410
- shownCount: progressiveRows.shownCount,
51411
- loadedCount: data.length,
51412
- hasMore: progressiveRows.hasMore,
51413
- onShowMore: () => void chromeLatest.current.showMore()
51414
- } } : {},
51415
- itemsPerPage: pageSize === 0 && allRowsAreLoaded ? 0 : effectivePageSize,
51416
- currentPage: safePage,
51417
- onPageChange: setPage,
51418
- onItemsPerPageChange: (n2) => {
51419
- setPageSize(n2);
51420
- if (!controlledQuery) setPage(1);
51421
- },
51422
- pageSizeOptions: pageSizeOptions.filter((size) => size > 0),
51423
- showAllOption: allRowsAreLoaded,
51424
- allValue: 0,
51425
- allOptionLabel: "All loaded",
51426
- compact: true,
51427
- hideEntriesInfo: false
51428
- }
51429
- ) }) }) : null,
51407
+ ) : !hidePagination && !(totalItems === 0 && !isLoading && !hasActiveFilters) ? (
51408
+ // No pager over a table that is simply EMPTY: "0-0 of 0" and a disabled pager
51409
+ // say nothing the empty state does not (page-pass 2026-09-27,
51410
+ // /education/quizzes). A search or filter that matched nothing keeps it — its
51411
+ // footer still says what was searched ("0–0 of 0 matching · 2 / 12 loaded").
51412
+ /* @__PURE__ */ jsx48(MatrxTableChrome, { part: "pagination", epoch: paginationEpoch, render: () => /* @__PURE__ */ jsx48("div", { className: "shrink-0", children: /* @__PURE__ */ jsx48(
51413
+ GenericTablePagination,
51414
+ {
51415
+ totalItems,
51416
+ ...paginationLabelFormat ? { labelFormat: paginationLabelFormat } : sourceTotal === void 0 ? {} : { labelFormat: (start, end, total) => `${formatCount3(start)}\u2013${formatCount3(end)} of ${formatCount3(total)} matching \xB7 ${formatCount3(data.length)} / ${formatCount3(sourceTotal)} loaded` },
51417
+ ...localProgressiveEnabled ? { progressive: {
51418
+ shownCount: progressiveRows.shownCount,
51419
+ loadedCount: data.length,
51420
+ hasMore: progressiveRows.hasMore,
51421
+ onShowMore: () => void chromeLatest.current.showMore()
51422
+ } } : {},
51423
+ itemsPerPage: pageSize === 0 && allRowsAreLoaded ? 0 : effectivePageSize,
51424
+ currentPage: safePage,
51425
+ onPageChange: setPage,
51426
+ onItemsPerPageChange: (n2) => {
51427
+ setPageSize(n2);
51428
+ if (!controlledQuery) setPage(1);
51429
+ },
51430
+ pageSizeOptions: pageSizeOptions.filter((size) => size > 0),
51431
+ showAllOption: allRowsAreLoaded,
51432
+ allValue: 0,
51433
+ allOptionLabel: "All loaded",
51434
+ compact: true,
51435
+ hideEntriesInfo: false
51436
+ }
51437
+ ) }) })
51438
+ ) : null,
51430
51439
  selection && selectionCount > 0 ? /* @__PURE__ */ jsxs37(
51431
51440
  "div",
51432
51441
  {