@ai-matrx/design-system 0.19.3 → 0.19.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.
@@ -1819,7 +1819,7 @@ function PageNavigationControl({
1819
1819
  ...props,
1820
1820
  disabled,
1821
1821
  "aria-label": label,
1822
- className: cn(visibilityClassName, className, "[&_svg]:size-3.5")
1822
+ className: cn(visibilityClassName, className, "[&_svg]:size-5")
1823
1823
  }
1824
1824
  );
1825
1825
  return /* @__PURE__ */ jsxs13(Tooltip, { children: [
@@ -1873,8 +1873,8 @@ function PaginationAction({
1873
1873
  }
1874
1874
  );
1875
1875
  }
1876
- var PAGINATION_ACTION_CLASS = "relative isolate h-11 w-11 min-h-11 min-w-11 border-0 bg-transparent p-0 text-xs shadow-none before:absolute before:inset-1.5 before:z-0 before:rounded-md before:border before:border-border before:bg-card before:content-[''] hover:bg-transparent hover:before:bg-accent disabled:bg-transparent disabled:before:opacity-40 [&>*]:relative [&>*]:z-10";
1877
- var PAGINATION_ACTIVE_CLASS = "text-primary-foreground before:border-primary before:bg-primary hover:before:bg-primary/90";
1876
+ var PAGINATION_ACTION_CLASS = "h-11 w-11 min-h-11 min-w-11 rounded-md border border-border bg-card p-0 text-sm shadow-none hover:bg-accent disabled:opacity-40 [&_svg]:size-5";
1877
+ var PAGINATION_ACTIVE_CLASS = "border-primary bg-primary text-primary-foreground hover:bg-primary/90";
1878
1878
  function GenericTablePagination({
1879
1879
  totalItems,
1880
1880
  itemsPerPage,
@@ -1928,8 +1928,8 @@ function GenericTablePagination({
1928
1928
  const containerClass = cn(
1929
1929
  "w-full items-center",
1930
1930
  !compact && "border-t border-border",
1931
- layoutType === "grid" ? "grid grid-cols-[auto_minmax(0,1fr)_auto]" : "flex flex-nowrap justify-between",
1932
- compact ? "box-border h-11 gap-0 px-0 py-0" : "gap-1 px-2 py-1 sm:gap-4 sm:px-3",
1931
+ layoutType === "grid" ? progressive ? "grid grid-cols-[auto_minmax(0,1fr)_auto]" : "grid grid-cols-[auto_minmax(0,1fr)] sm:grid-cols-[auto_minmax(0,1fr)_auto]" : "flex flex-nowrap justify-between",
1932
+ compact ? "box-border min-h-11 gap-0 px-0 py-0" : "gap-1 px-2 py-1 sm:gap-4 sm:px-3",
1933
1933
  className,
1934
1934
  containerClassName
1935
1935
  );
@@ -1954,7 +1954,7 @@ function GenericTablePagination({
1954
1954
  "aria-label": "Rows per page",
1955
1955
  className: cn(
1956
1956
  "focus:ring-0",
1957
- compact ? "relative isolate h-11 w-16 border-0 bg-transparent px-1 text-xs before:absolute before:inset-1.5 before:z-0 before:rounded-md before:border before:border-border before:bg-card before:content-[''] hover:before:bg-accent [&>*]:relative [&>*]:z-10 [&_svg]:h-3.5 [&_svg]:w-3.5" : "h-8 w-[3.75rem] text-xs sm:w-36 sm:text-sm"
1957
+ compact ? "h-11 min-w-20 rounded-md border border-border bg-card px-3 text-sm hover:bg-accent [&_svg]:size-5" : "h-8 w-[3.75rem] text-xs sm:w-36 sm:text-sm"
1958
1958
  ),
1959
1959
  children: /* @__PURE__ */ jsx20(SelectValue, { placeholder: itemsPerPage.toString() })
1960
1960
  }
@@ -1973,7 +1973,7 @@ function GenericTablePagination({
1973
1973
  {
1974
1974
  className: cn("flex min-w-0 justify-center", infoContainerClassName),
1975
1975
  children: showPageInfo && !hideEntriesInfo && /* @__PURE__ */ jsxs13(Fragment, { children: [
1976
- /* @__PURE__ */ jsxs13("span", { className: "truncate text-[10px] tabular-nums text-muted-foreground sm:hidden", children: [
1976
+ /* @__PURE__ */ jsxs13("span", { className: "truncate text-xs tabular-nums text-muted-foreground sm:hidden", children: [
1977
1977
  startItem,
1978
1978
  "-",
1979
1979
  endItem,
@@ -1983,7 +1983,7 @@ function GenericTablePagination({
1983
1983
  /* @__PURE__ */ jsx20(
1984
1984
  "span",
1985
1985
  {
1986
- className: `hidden whitespace-nowrap ${compact ? "text-xs" : "text-sm"} text-muted-foreground sm:inline`,
1986
+ className: `hidden whitespace-nowrap ${compact ? "text-sm" : "text-sm"} min-w-0 truncate text-muted-foreground sm:inline`,
1987
1987
  children: formatLabel(startItem, endItem, totalItems)
1988
1988
  }
1989
1989
  )
@@ -1998,13 +1998,13 @@ function GenericTablePagination({
1998
1998
  disabledHint: "All rows shown",
1999
1999
  disabled: !progressive.hasMore,
2000
2000
  onClick: progressive.onShowMore,
2001
- children: /* @__PURE__ */ jsx20(ChevronRight, { className: "h-3.5 w-3.5 rotate-90" })
2001
+ children: /* @__PURE__ */ jsx20(ChevronRight, { className: "h-5 w-5 rotate-90" })
2002
2002
  }
2003
2003
  ) : showPageControls && /* @__PURE__ */ jsxs13(
2004
2004
  "div",
2005
2005
  {
2006
2006
  className: cn(
2007
- "flex min-w-0 items-center justify-end",
2007
+ "col-span-2 flex min-w-0 items-center justify-end sm:col-span-1",
2008
2008
  compact ? "gap-0" : "gap-0.5 sm:gap-1",
2009
2009
  controlsContainerClassName
2010
2010
  ),
@@ -2019,7 +2019,7 @@ function GenericTablePagination({
2019
2019
  fallbackClassName: navButtonClassName,
2020
2020
  onClick: () => onPageChange(1),
2021
2021
  disabled: isFirstPageDisabled,
2022
- children: /* @__PURE__ */ jsx20(ChevronsLeft, { className: "h-3.5 w-3.5" })
2022
+ children: /* @__PURE__ */ jsx20(ChevronsLeft, { className: "h-5 w-5" })
2023
2023
  }
2024
2024
  ),
2025
2025
  /* @__PURE__ */ jsx20(
@@ -2031,7 +2031,7 @@ function GenericTablePagination({
2031
2031
  fallbackClassName: navButtonClassName,
2032
2032
  onClick: () => onPageChange(currentPage - 1),
2033
2033
  disabled: isFirstPageDisabled,
2034
- children: /* @__PURE__ */ jsx20(ChevronLeft, { className: "h-3.5 w-3.5" })
2034
+ children: /* @__PURE__ */ jsx20(ChevronLeft, { className: "h-5 w-5" })
2035
2035
  }
2036
2036
  ),
2037
2037
  getPageNumbers(3).map((page) => /* @__PURE__ */ jsx20(
@@ -2074,7 +2074,7 @@ function GenericTablePagination({
2074
2074
  fallbackClassName: navButtonClassName,
2075
2075
  onClick: () => onPageChange(currentPage + 1),
2076
2076
  disabled: isLastPageDisabled,
2077
- children: /* @__PURE__ */ jsx20(ChevronRight, { className: "h-3.5 w-3.5" })
2077
+ children: /* @__PURE__ */ jsx20(ChevronRight, { className: "h-5 w-5" })
2078
2078
  }
2079
2079
  ),
2080
2080
  /* @__PURE__ */ jsx20(
@@ -2087,7 +2087,7 @@ function GenericTablePagination({
2087
2087
  fallbackClassName: navButtonClassName,
2088
2088
  onClick: () => onPageChange(totalPages),
2089
2089
  disabled: isLastPageDisabled,
2090
- children: /* @__PURE__ */ jsx20(ChevronsRight, { className: "h-3.5 w-3.5" })
2090
+ children: /* @__PURE__ */ jsx20(ChevronsRight, { className: "h-5 w-5" })
2091
2091
  }
2092
2092
  )
2093
2093
  ]
@@ -7914,7 +7914,7 @@ function TableToolbarAction({
7914
7914
  return /* @__PURE__ */ jsx38(HostAction, { ariaLabel, tooltip, disabled, busy, onClick, children });
7915
7915
  }
7916
7916
  return /* @__PURE__ */ jsxs28(Tooltip, { children: [
7917
- /* @__PURE__ */ jsx38(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsx38("span", { className: "inline-flex", children: /* @__PURE__ */ jsx38(Button, { type: "button", variant: "ghost", size: "icon", className: "h-11 w-11 [&_svg]:size-3.5", "aria-label": ariaLabel, "aria-busy": busy || void 0, disabled, onClick, children: isValidElement2(children) ? cloneElement2(children, { className: cn("h-3.5 w-3.5", children.props.className) }) : children }) }) }),
7917
+ /* @__PURE__ */ jsx38(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsx38("span", { className: "inline-flex", children: /* @__PURE__ */ jsx38(Button, { type: "button", variant: "ghost", size: "icon", className: "h-11 w-11 [&_svg]:size-5", "aria-label": ariaLabel, "aria-busy": busy || void 0, disabled, onClick, children: isValidElement2(children) ? cloneElement2(children, { className: cn("h-5 w-5", children.props.className) }) : children }) }) }),
7918
7918
  /* @__PURE__ */ jsx38(TooltipContent, { children: tooltip ?? ariaLabel })
7919
7919
  ] });
7920
7920
  }
@@ -9456,7 +9456,7 @@ function MatrxDataTableCore({
9456
9456
  ),
9457
9457
  children: [
9458
9458
  /* @__PURE__ */ jsxs28("div", { className: "relative min-w-0 flex-1", children: [
9459
- /* @__PURE__ */ jsx38(Search, { className: "absolute left-2 top-1/2 h-3.5 w-3.5 -translate-y-1/2 text-muted-foreground" }),
9459
+ /* @__PURE__ */ jsx38(Search, { className: "absolute left-2 top-1/2 h-5 w-5 -translate-y-1/2 text-muted-foreground" }),
9460
9460
  /* @__PURE__ */ jsx38(
9461
9461
  Input,
9462
9462
  {
@@ -9478,7 +9478,7 @@ function MatrxDataTableCore({
9478
9478
  "aria-label": "Clear search",
9479
9479
  className: "absolute right-1.5 top-1/2 -translate-y-1/2 rounded p-0.5 text-muted-foreground hover:text-foreground",
9480
9480
  onClick: () => setSearchValue(""),
9481
- children: /* @__PURE__ */ jsx38(X, { className: "h-3.5 w-3.5" })
9481
+ children: /* @__PURE__ */ jsx38(X, { className: "h-5 w-5" })
9482
9482
  }
9483
9483
  ) }),
9484
9484
  /* @__PURE__ */ jsx38(TooltipContent, { children: "Clear search" })
@@ -9498,7 +9498,7 @@ function MatrxDataTableCore({
9498
9498
  searchMatchMode === "whole_words" ? "contains" : "whole_words"
9499
9499
  ),
9500
9500
  children: [
9501
- /* @__PURE__ */ jsx38(WholeWord, { className: "h-3.5 w-3.5" }),
9501
+ /* @__PURE__ */ jsx38(WholeWord, { className: "h-5 w-5" }),
9502
9502
  searchMatchMode === "whole_words" ? "Whole words" : "Contains"
9503
9503
  ]
9504
9504
  }
@@ -9520,7 +9520,7 @@ function MatrxDataTableCore({
9520
9520
  }
9521
9521
  ) : null,
9522
9522
  toolbar?.anyOf ? /* @__PURE__ */ jsxs28("div", { className: "relative w-full max-w-xs", children: [
9523
- /* @__PURE__ */ jsx38(Search, { className: "absolute left-2 top-1/2 h-3.5 w-3.5 -translate-y-1/2 text-muted-foreground" }),
9523
+ /* @__PURE__ */ jsx38(Search, { className: "absolute left-2 top-1/2 h-5 w-5 -translate-y-1/2 text-muted-foreground" }),
9524
9524
  /* @__PURE__ */ jsx38(
9525
9525
  Input,
9526
9526
  {
@@ -9539,7 +9539,7 @@ function MatrxDataTableCore({
9539
9539
  "aria-label": "Clear match-any search",
9540
9540
  className: "absolute right-1.5 top-1/2 -translate-y-1/2 rounded p-0.5 text-muted-foreground hover:text-foreground",
9541
9541
  onClick: () => setAnyOfValue(""),
9542
- children: /* @__PURE__ */ jsx38(X, { className: "h-3.5 w-3.5" })
9542
+ children: /* @__PURE__ */ jsx38(X, { className: "h-5 w-5" })
9543
9543
  }
9544
9544
  ) }),
9545
9545
  /* @__PURE__ */ jsx38(TooltipContent, { children: "Clear match-any search" })
@@ -10201,7 +10201,7 @@ function MatrxDataTableCore({
10201
10201
  type: "button",
10202
10202
  variant: "ghost",
10203
10203
  size: "icon",
10204
- className: "h-11 w-11 text-muted-foreground hover:text-foreground [&_svg]:size-3.5",
10204
+ className: "h-11 w-11 text-muted-foreground hover:text-foreground [&_svg]:size-5",
10205
10205
  "aria-label": opensWindowOnRowClick ? "Open in side panel" : "Open in window",
10206
10206
  onClick: (e) => {
10207
10207
  e.stopPropagation();
@@ -10211,7 +10211,7 @@ function MatrxDataTableCore({
10211
10211
  openWindow(row);
10212
10212
  }
10213
10213
  },
10214
- children: opensWindowOnRowClick ? /* @__PURE__ */ jsx38(PanelRightOpen, { className: "h-3.5 w-3.5" }) : /* @__PURE__ */ jsx38(PanelRight, { className: "h-3.5 w-3.5" })
10214
+ children: opensWindowOnRowClick ? /* @__PURE__ */ jsx38(PanelRightOpen, { className: "h-5 w-5" }) : /* @__PURE__ */ jsx38(PanelRight, { className: "h-5 w-5" })
10215
10215
  }
10216
10216
  ) }),
10217
10217
  /* @__PURE__ */ jsx38(TooltipContent, { children: opensWindowOnRowClick ? "Open in side panel" : "Open in window" })
@@ -10329,14 +10329,14 @@ function MatrxDataTableCore({
10329
10329
  "div",
10330
10330
  {
10331
10331
  "data-matrx-table-footer": true,
10332
- className: "flex min-h-16 shrink-0 flex-wrap items-center justify-between gap-3 border-t border-border",
10332
+ className: "flex min-h-11 shrink-0 flex-wrap items-center gap-0 border-t border-border",
10333
10333
  "aria-busy": isLoading || isFetching,
10334
10334
  children: [
10335
10335
  /* @__PURE__ */ jsxs28(
10336
10336
  "div",
10337
10337
  {
10338
10338
  ...isFetching && !isLoading ? {} : { role: "status", "aria-live": "polite" },
10339
- className: "flex w-full min-w-0 flex-none items-center gap-2 text-xs text-muted-foreground sm:w-auto sm:flex-1",
10339
+ className: "flex w-full min-w-0 items-center gap-2 text-xs text-muted-foreground sm:w-auto sm:flex-1 sm:text-sm",
10340
10340
  children: [
10341
10341
  isLoading ? /* @__PURE__ */ jsx38(
10342
10342
  Loader2,
@@ -10346,8 +10346,8 @@ function MatrxDataTableCore({
10346
10346
  className: "h-5 w-5 shrink-0 animate-spin text-primary motion-reduce:animate-none"
10347
10347
  }
10348
10348
  ) : null,
10349
- /* @__PURE__ */ jsxs28("div", { className: "min-w-0", children: [
10350
- /* @__PURE__ */ jsx38("p", { className: "break-words font-medium text-foreground", children: isLoading ? "Loading rows\u2026" : `${data.length.toLocaleString()} loaded${appendQuery.pagination.totalItems === void 0 ? "" : ` of ${appendQuery.pagination.totalItems.toLocaleString()}`}` }),
10349
+ /* @__PURE__ */ jsxs28("div", { className: "min-w-0 flex-1", children: [
10350
+ /* @__PURE__ */ jsx38("p", { className: "font-medium text-foreground", children: isLoading ? "Loading rows\u2026" : `${data.length.toLocaleString()} loaded${appendQuery.pagination.totalItems === void 0 ? "" : ` of ${appendQuery.pagination.totalItems.toLocaleString()}`}` }),
10351
10351
  appendQuery.pagination.sourceUntil ? /* @__PURE__ */ jsxs28("p", { children: [
10352
10352
  "Source fixed through",
10353
10353
  " ",
@@ -10355,8 +10355,8 @@ function MatrxDataTableCore({
10355
10355
  "."
10356
10356
  ] }) : null,
10357
10357
  !isLoading && !isFetching && !appendQuery.pagination.loadAll?.isLoading && !scrollPagination.error && !appendQuery.pagination.hasNextPage && appendQuery.pagination.totalItems !== void 0 && data.length === appendQuery.pagination.totalItems ? /* @__PURE__ */ jsx38("p", { children: "All source rows are loaded." }) : appendUsesLocalProcessing ? /* @__PURE__ */ jsx38("p", { children: "Local search and filters cover loaded rows." }) : null,
10358
- scrollPagination.error ? /* @__PURE__ */ jsx38("p", { role: "alert", className: "break-words text-destructive", children: scrollPagination.error.message }) : null,
10359
- appendScrollPolicy?.mode === "suspended" ? /* @__PURE__ */ jsxs28("p", { role: "status", className: "break-words", children: [
10358
+ scrollPagination.error ? /* @__PURE__ */ jsx38("p", { role: "alert", className: "text-destructive", children: scrollPagination.error.message }) : null,
10359
+ appendScrollPolicy?.mode === "suspended" ? /* @__PURE__ */ jsxs28("p", { role: "status", children: [
10360
10360
  appendScrollPolicy.reason,
10361
10361
  " Load more remains available."
10362
10362
  ] }) : null
@@ -10374,7 +10374,7 @@ function MatrxDataTableCore({
10374
10374
  SelectTrigger,
10375
10375
  {
10376
10376
  "aria-label": "Rows per load",
10377
- className: "h-8 w-20 shrink-0 text-xs sm:w-24",
10377
+ className: "h-11 min-w-20 shrink-0 rounded-md border border-border bg-card px-3 text-sm [&_svg]:size-5",
10378
10378
  disabled: isLoading || isFetching || appendQuery.pagination.loadAll?.isLoading,
10379
10379
  children: /* @__PURE__ */ jsx38(SelectValue, {})
10380
10380
  }
@@ -10388,6 +10388,7 @@ function MatrxDataTableCore({
10388
10388
  {
10389
10389
  type: "button",
10390
10390
  variant: "outline",
10391
+ className: "h-11 shrink-0 px-3 text-sm",
10391
10392
  onClick: appendQuery.pagination.loadAll.stop,
10392
10393
  children: "Stop loading"
10393
10394
  }
@@ -10396,16 +10397,17 @@ function MatrxDataTableCore({
10396
10397
  {
10397
10398
  type: "button",
10398
10399
  variant: "outline",
10400
+ className: "h-11 shrink-0 px-3 text-sm",
10399
10401
  onClick: appendQuery.pagination.retrySource ?? (appendQuery.pagination.hasNextPage ? appendQuery.pagination.loadNextPage : appendQuery.pagination.refresh),
10400
10402
  children: appendQuery.pagination.retrySource ? "Retry source" : appendQuery.pagination.hasNextPage ? "Retry" : "Reload rows"
10401
10403
  }
10402
- ) : appendQuery.pagination.hasNextPage || scrollPagination.error ? /* @__PURE__ */ jsxs28("div", { className: "flex flex-wrap gap-1", children: [
10404
+ ) : appendQuery.pagination.hasNextPage || scrollPagination.error ? /* @__PURE__ */ jsxs28("div", { className: "flex shrink-0 gap-0", children: [
10403
10405
  /* @__PURE__ */ jsx38(
10404
10406
  Button,
10405
10407
  {
10406
10408
  type: "button",
10407
- size: "sm",
10408
10409
  variant: "outline",
10410
+ className: "h-11 px-3 text-sm",
10409
10411
  disabled: isLoading || isFetching,
10410
10412
  onClick: () => void scrollPagination.requestNextPage(),
10411
10413
  children: "Load more"
@@ -10415,14 +10417,14 @@ function MatrxDataTableCore({
10415
10417
  Button,
10416
10418
  {
10417
10419
  type: "button",
10418
- size: "sm",
10419
10420
  variant: "ghost",
10421
+ className: "h-11 px-3 text-sm",
10420
10422
  disabled: isLoading || isFetching,
10421
10423
  onClick: appendQuery.pagination.loadAll.request,
10422
10424
  children: "Load all"
10423
10425
  }
10424
10426
  ) : null
10425
- ] }) : !isLoading && appendQuery.pagination.totalItems !== void 0 && data.length === appendQuery.pagination.totalItems ? /* @__PURE__ */ jsx38("span", { className: "text-xs text-muted-foreground", children: "All rows loaded" }) : null
10427
+ ] }) : !isLoading && appendQuery.pagination.totalItems !== void 0 && data.length === appendQuery.pagination.totalItems ? /* @__PURE__ */ jsx38("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
10426
10428
  ]
10427
10429
  }
10428
10430
  ) : !hidePagination && totalItems > 0 ? /* @__PURE__ */ jsx38("div", { className: "shrink-0", children: /* @__PURE__ */ jsx38(
@@ -10494,7 +10496,7 @@ function MatrxDataTableCore({
10494
10496
  className: "h-7 w-7",
10495
10497
  "aria-label": "Open in window",
10496
10498
  onClick: () => openWindow(selectedRow),
10497
- children: /* @__PURE__ */ jsx38(PanelRight, { className: "h-3.5 w-3.5" })
10499
+ children: /* @__PURE__ */ jsx38(PanelRight, { className: "h-5 w-5" })
10498
10500
  }
10499
10501
  ) }),
10500
10502
  /* @__PURE__ */ jsx38(TooltipContent, { children: "Open in window" })
@@ -10553,7 +10555,7 @@ function MatrxDataTableCore({
10553
10555
  closeWindow();
10554
10556
  openDetail(windowRow);
10555
10557
  },
10556
- children: /* @__PURE__ */ jsx38(PanelRightOpen, { className: "h-3.5 w-3.5" })
10558
+ children: /* @__PURE__ */ jsx38(PanelRightOpen, { className: "h-5 w-5" })
10557
10559
  }
10558
10560
  ) }),
10559
10561
  /* @__PURE__ */ jsx38(TooltipContent, { children: "Open in side panel" })