@facter/ds-core 1.25.0 → 1.27.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.
package/dist/index.mjs CHANGED
@@ -98,7 +98,7 @@ function CardTitle({ className, ...props }) {
98
98
  "h3",
99
99
  {
100
100
  className: cn(
101
- "text-2xl font-semibold leading-none tracking-tight",
101
+ "text-2xl font-semibold leading-none tracking-tight font-heading",
102
102
  className
103
103
  ),
104
104
  ...props
@@ -1111,7 +1111,8 @@ function useDataTableInternal({
1111
1111
  getRowId,
1112
1112
  manualPagination = false,
1113
1113
  pageCount: externalPageCount,
1114
- initialPageSize = 10
1114
+ initialPageSize = 10,
1115
+ onPaginationChange: onPaginationChangeProp
1115
1116
  }) {
1116
1117
  const [rowSelection, setRowSelection] = React10.useState({});
1117
1118
  const [columnVisibility, setColumnVisibility] = React10.useState({});
@@ -1156,6 +1157,14 @@ function useDataTableInternal({
1156
1157
  getPaginationRowModel: getPaginationRowModel(),
1157
1158
  getSortedRowModel: getSortedRowModel()
1158
1159
  });
1160
+ React10.useEffect(() => {
1161
+ if (onPaginationChangeProp) {
1162
+ onPaginationChangeProp({
1163
+ pageIndex: pagination.pageIndex,
1164
+ pageSize: pagination.pageSize
1165
+ });
1166
+ }
1167
+ }, [pagination.pageIndex, pagination.pageSize, onPaginationChangeProp]);
1159
1168
  const meta = React10.useMemo(
1160
1169
  () => ({
1161
1170
  isLoading: false,
@@ -1345,6 +1354,7 @@ function DataTableRoot({
1345
1354
  manualPagination,
1346
1355
  pageCount,
1347
1356
  initialPageSize,
1357
+ onPaginationChange,
1348
1358
  className
1349
1359
  }) {
1350
1360
  const { table, meta, density, setDensity, pageIndex, pageSize } = useDataTableInternal({
@@ -1353,7 +1363,8 @@ function DataTableRoot({
1353
1363
  getRowId,
1354
1364
  manualPagination,
1355
1365
  pageCount,
1356
- initialPageSize
1366
+ initialPageSize,
1367
+ onPaginationChange
1357
1368
  });
1358
1369
  return /* @__PURE__ */ jsx(
1359
1370
  DataTableProvider,
@@ -2588,7 +2599,7 @@ var DialogTitle = React10.memo(
2588
2599
  {
2589
2600
  ref,
2590
2601
  className: cn(
2591
- "text-2xl font-semibold leading-none tracking-tight",
2602
+ "text-2xl font-semibold leading-none tracking-tight font-heading",
2592
2603
  className
2593
2604
  ),
2594
2605
  ...props
@@ -6666,7 +6677,7 @@ var PageHeader = React10.memo(function PageHeader2({
6666
6677
  ),
6667
6678
  children: [
6668
6679
  /* @__PURE__ */ jsxs("div", { className: "flex flex-col leading-none", children: [
6669
- /* @__PURE__ */ jsx("span", { className: "text-3xl font-semibold", children: title }),
6680
+ /* @__PURE__ */ jsx("span", { className: "text-3xl font-semibold font-heading", children: title }),
6670
6681
  /* @__PURE__ */ jsx("span", { className: "text-[1.05rem] text-muted-foreground max-w-lg text-balance leading-relaxed", children: description })
6671
6682
  ] }),
6672
6683
  children && /* @__PURE__ */ jsx("div", { className: "flex gap-3 mt-2 sm:mt-0 shrink-0", children })