@dloizides/ui-tables 1.28.1 → 1.29.1

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/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.29.1
4
+
5
+ ### Changed
6
+
7
+ - `PagedTableLayoutKind` is now a `const enum` exported like `LedgerLayout`, with the same four values. The `layout` prop also accepts the string values, so `isolatedModules` consumers keep writing `layout="spaced"`. D-PAGER-3 "Layout type is a const enum" in PAGER-SPACE-1 "Shared pager touches the content above and below it".
8
+
9
+ ### Fixed
10
+
11
+ - `DataTable`: a table or filter bar rendered inside a row (column render, row detail, or a modal opened from one) keeps its own border under a joined `PagedTableLayout`.
12
+
13
+ ## 1.29.0
14
+
15
+ ### Added
16
+
17
+ - `PagedTableLayout`: `filters`, `pager` and `table` slots placed as one unit, with a `layout` of `toolbar` (default), `spaced`, `footer` or `panel`. Joined layouts share one frame; a `DataTable` or `FilterBar` inside drops its own outer border automatically, even behind a local wrapper component. A bare `Pager` is unchanged. PAGER-SPACE-1 "Shared pager touches the content above and below it".
18
+
3
19
  ## 1.28.1
4
20
 
5
21
  ### Fixed
package/dist/index.d.mts CHANGED
@@ -389,6 +389,25 @@ interface PagerProps {
389
389
  }
390
390
  declare function Pager({ page, pageSize, total, onPageChange, onPageSizeChange, pageSizeOptions, rowsVariant, unitLabel, unitLabelSingular, showFirstLast, responsive, stackBreakpoint, infoPrefix, boldNumbers, styleOverrides: o, testID, }: PagerProps): React.ReactElement;
391
391
 
392
+ declare const enum PagedTableLayoutKind {
393
+ Toolbar = "toolbar",
394
+ Spaced = "spaced",
395
+ Footer = "footer",
396
+ Panel = "panel"
397
+ }
398
+
399
+ interface PagedTableLayoutProps {
400
+ /** Filter bar, shown above the pager and table. Omit for none. */
401
+ filters?: React.ReactNode;
402
+ pager: React.ReactNode;
403
+ table: React.ReactNode;
404
+ /** How the pager joins the table. Default `toolbar`. */
405
+ layout?: PagedTableLayoutKind | `${PagedTableLayoutKind}`;
406
+ testID?: string;
407
+ }
408
+ /** Places a filter bar, a Pager and a DataTable as one unit with one spacing rule. */
409
+ declare function PagedTableLayout({ filters, pager, table, layout, testID, }: PagedTableLayoutProps): React.ReactElement;
410
+
392
411
  /**
393
412
  * Shared constants for the DataTable family (DataTable / FilterBar / Pager).
394
413
  * Keeps every literal (test ids, i18n keys, layout numbers) in one place so the
@@ -426,6 +445,7 @@ declare const TABLE_TEST_IDS: {
426
445
  /** Suffix of the banner's action: `${tableTestID}-select-banner-action`. */
427
446
  readonly selectBannerActionSuffix: "select-banner-action";
428
447
  readonly filterBar: "ui-filters";
448
+ readonly pagedLayout: "ui-paged-table-layout";
429
449
  readonly results: "ui-results";
430
450
  readonly pager: "ui-pager";
431
451
  readonly pagerInfo: "ui-pager-info";
@@ -969,4 +989,4 @@ declare const MonthStatusGrid: ({ cells, onSelect, selectedId, columns, accessib
969
989
  /** The widest allowed column count, up to `requested`, whose cells stay at least 44 px wide. */
970
990
  declare function fitMonthGridColumns(requested: MonthGridColumns, width: number, gap: number): MonthGridColumns;
971
991
 
972
- export { type BooleanFilterField, CARD_STACK_BREAKPOINT, DEFAULT_PAGE_SIZE, DEFAULT_PAGE_SIZE_OPTIONS, DataTable, type DataTableColumn, type DataTableProps, type DataTableStyleOverrides, type DateRangeFilterField, FIELD_MIN_WIDTH, FILTERS_I18N, FILTERS_TEST_ID, type FieldStrings, FilterBar, type FilterBarProps, type FilterBarStyleOverrides, type FilterDraft, type FilterField, type FilterFieldKind, type FilterOption, type FilterValue, type FilterValues, Filters, type FiltersProps, type LedgerFilter, LedgerLayout, MONTH_STATUS_GRID_TEST_ID, MonthGridColumns, type MonthStatusCell, MonthStatusGrid, type MonthStatusGridProps, type NumberFilterField, type PagedRows, Pager, type PagerProps, type PagerStyleOverrides, RelativeTime, type RelativeTimeProps, type RelativeTimeStrings, type RelativeUnitStrings, type RenderSelectArgs, STATUS_LEDGER_TEST_ID, type SelectFilterField, SortDirection, type SortValue, StatCard, type StatCardProps, StatTone, StatusLedger, type StatusLedgerColumn, type StatusLedgerLabels, type StatusLedgerProps, StatusPill, type StatusPillProps, StatusTone, TABLE_I18N, TABLE_TEST_IDS, type TextFilterField, type TimeInput, type ToneColors, type TypeaheadFilterField, type UseFilterDraftOptions, type UsePagedRowsOptions, applyTestID, clearTestID, distinctValues, fieldTestID, filterLedgerRows, fitMonthGridColumns, formatRelativeTime, isAttentionTone, ledgerSectionTestID, ledgerSortDirectionTestID, monthCellTestID, resolveStatToneColor, rowDetailTestID, rowFadeTestID, rowSelectTestID, rowTestID, selectAllTestID, sortLedgerRows, splitNeedsLook, toEpochMs, useFilterDraft, usePagedRows };
992
+ export { type BooleanFilterField, CARD_STACK_BREAKPOINT, DEFAULT_PAGE_SIZE, DEFAULT_PAGE_SIZE_OPTIONS, DataTable, type DataTableColumn, type DataTableProps, type DataTableStyleOverrides, type DateRangeFilterField, FIELD_MIN_WIDTH, FILTERS_I18N, FILTERS_TEST_ID, type FieldStrings, FilterBar, type FilterBarProps, type FilterBarStyleOverrides, type FilterDraft, type FilterField, type FilterFieldKind, type FilterOption, type FilterValue, type FilterValues, Filters, type FiltersProps, type LedgerFilter, LedgerLayout, MONTH_STATUS_GRID_TEST_ID, MonthGridColumns, type MonthStatusCell, MonthStatusGrid, type MonthStatusGridProps, type NumberFilterField, type PagedRows, PagedTableLayout, PagedTableLayoutKind, type PagedTableLayoutProps, Pager, type PagerProps, type PagerStyleOverrides, RelativeTime, type RelativeTimeProps, type RelativeTimeStrings, type RelativeUnitStrings, type RenderSelectArgs, STATUS_LEDGER_TEST_ID, type SelectFilterField, SortDirection, type SortValue, StatCard, type StatCardProps, StatTone, StatusLedger, type StatusLedgerColumn, type StatusLedgerLabels, type StatusLedgerProps, StatusPill, type StatusPillProps, StatusTone, TABLE_I18N, TABLE_TEST_IDS, type TextFilterField, type TimeInput, type ToneColors, type TypeaheadFilterField, type UseFilterDraftOptions, type UsePagedRowsOptions, applyTestID, clearTestID, distinctValues, fieldTestID, filterLedgerRows, fitMonthGridColumns, formatRelativeTime, isAttentionTone, ledgerSectionTestID, ledgerSortDirectionTestID, monthCellTestID, resolveStatToneColor, rowDetailTestID, rowFadeTestID, rowSelectTestID, rowTestID, selectAllTestID, sortLedgerRows, splitNeedsLook, toEpochMs, useFilterDraft, usePagedRows };
package/dist/index.d.ts CHANGED
@@ -389,6 +389,25 @@ interface PagerProps {
389
389
  }
390
390
  declare function Pager({ page, pageSize, total, onPageChange, onPageSizeChange, pageSizeOptions, rowsVariant, unitLabel, unitLabelSingular, showFirstLast, responsive, stackBreakpoint, infoPrefix, boldNumbers, styleOverrides: o, testID, }: PagerProps): React.ReactElement;
391
391
 
392
+ declare const enum PagedTableLayoutKind {
393
+ Toolbar = "toolbar",
394
+ Spaced = "spaced",
395
+ Footer = "footer",
396
+ Panel = "panel"
397
+ }
398
+
399
+ interface PagedTableLayoutProps {
400
+ /** Filter bar, shown above the pager and table. Omit for none. */
401
+ filters?: React.ReactNode;
402
+ pager: React.ReactNode;
403
+ table: React.ReactNode;
404
+ /** How the pager joins the table. Default `toolbar`. */
405
+ layout?: PagedTableLayoutKind | `${PagedTableLayoutKind}`;
406
+ testID?: string;
407
+ }
408
+ /** Places a filter bar, a Pager and a DataTable as one unit with one spacing rule. */
409
+ declare function PagedTableLayout({ filters, pager, table, layout, testID, }: PagedTableLayoutProps): React.ReactElement;
410
+
392
411
  /**
393
412
  * Shared constants for the DataTable family (DataTable / FilterBar / Pager).
394
413
  * Keeps every literal (test ids, i18n keys, layout numbers) in one place so the
@@ -426,6 +445,7 @@ declare const TABLE_TEST_IDS: {
426
445
  /** Suffix of the banner's action: `${tableTestID}-select-banner-action`. */
427
446
  readonly selectBannerActionSuffix: "select-banner-action";
428
447
  readonly filterBar: "ui-filters";
448
+ readonly pagedLayout: "ui-paged-table-layout";
429
449
  readonly results: "ui-results";
430
450
  readonly pager: "ui-pager";
431
451
  readonly pagerInfo: "ui-pager-info";
@@ -969,4 +989,4 @@ declare const MonthStatusGrid: ({ cells, onSelect, selectedId, columns, accessib
969
989
  /** The widest allowed column count, up to `requested`, whose cells stay at least 44 px wide. */
970
990
  declare function fitMonthGridColumns(requested: MonthGridColumns, width: number, gap: number): MonthGridColumns;
971
991
 
972
- export { type BooleanFilterField, CARD_STACK_BREAKPOINT, DEFAULT_PAGE_SIZE, DEFAULT_PAGE_SIZE_OPTIONS, DataTable, type DataTableColumn, type DataTableProps, type DataTableStyleOverrides, type DateRangeFilterField, FIELD_MIN_WIDTH, FILTERS_I18N, FILTERS_TEST_ID, type FieldStrings, FilterBar, type FilterBarProps, type FilterBarStyleOverrides, type FilterDraft, type FilterField, type FilterFieldKind, type FilterOption, type FilterValue, type FilterValues, Filters, type FiltersProps, type LedgerFilter, LedgerLayout, MONTH_STATUS_GRID_TEST_ID, MonthGridColumns, type MonthStatusCell, MonthStatusGrid, type MonthStatusGridProps, type NumberFilterField, type PagedRows, Pager, type PagerProps, type PagerStyleOverrides, RelativeTime, type RelativeTimeProps, type RelativeTimeStrings, type RelativeUnitStrings, type RenderSelectArgs, STATUS_LEDGER_TEST_ID, type SelectFilterField, SortDirection, type SortValue, StatCard, type StatCardProps, StatTone, StatusLedger, type StatusLedgerColumn, type StatusLedgerLabels, type StatusLedgerProps, StatusPill, type StatusPillProps, StatusTone, TABLE_I18N, TABLE_TEST_IDS, type TextFilterField, type TimeInput, type ToneColors, type TypeaheadFilterField, type UseFilterDraftOptions, type UsePagedRowsOptions, applyTestID, clearTestID, distinctValues, fieldTestID, filterLedgerRows, fitMonthGridColumns, formatRelativeTime, isAttentionTone, ledgerSectionTestID, ledgerSortDirectionTestID, monthCellTestID, resolveStatToneColor, rowDetailTestID, rowFadeTestID, rowSelectTestID, rowTestID, selectAllTestID, sortLedgerRows, splitNeedsLook, toEpochMs, useFilterDraft, usePagedRows };
992
+ export { type BooleanFilterField, CARD_STACK_BREAKPOINT, DEFAULT_PAGE_SIZE, DEFAULT_PAGE_SIZE_OPTIONS, DataTable, type DataTableColumn, type DataTableProps, type DataTableStyleOverrides, type DateRangeFilterField, FIELD_MIN_WIDTH, FILTERS_I18N, FILTERS_TEST_ID, type FieldStrings, FilterBar, type FilterBarProps, type FilterBarStyleOverrides, type FilterDraft, type FilterField, type FilterFieldKind, type FilterOption, type FilterValue, type FilterValues, Filters, type FiltersProps, type LedgerFilter, LedgerLayout, MONTH_STATUS_GRID_TEST_ID, MonthGridColumns, type MonthStatusCell, MonthStatusGrid, type MonthStatusGridProps, type NumberFilterField, type PagedRows, PagedTableLayout, PagedTableLayoutKind, type PagedTableLayoutProps, Pager, type PagerProps, type PagerStyleOverrides, RelativeTime, type RelativeTimeProps, type RelativeTimeStrings, type RelativeUnitStrings, type RenderSelectArgs, STATUS_LEDGER_TEST_ID, type SelectFilterField, SortDirection, type SortValue, StatCard, type StatCardProps, StatTone, StatusLedger, type StatusLedgerColumn, type StatusLedgerLabels, type StatusLedgerProps, StatusPill, type StatusPillProps, StatusTone, TABLE_I18N, TABLE_TEST_IDS, type TextFilterField, type TimeInput, type ToneColors, type TypeaheadFilterField, type UseFilterDraftOptions, type UsePagedRowsOptions, applyTestID, clearTestID, distinctValues, fieldTestID, filterLedgerRows, fitMonthGridColumns, formatRelativeTime, isAttentionTone, ledgerSectionTestID, ledgerSortDirectionTestID, monthCellTestID, resolveStatToneColor, rowDetailTestID, rowFadeTestID, rowSelectTestID, rowTestID, selectAllTestID, sortLedgerRows, splitNeedsLook, toEpochMs, useFilterDraft, usePagedRows };
package/dist/index.js CHANGED
@@ -40,6 +40,7 @@ var TABLE_TEST_IDS = {
40
40
  /** Suffix of the banner's action: `${tableTestID}-select-banner-action`. */
41
41
  selectBannerActionSuffix: "select-banner-action",
42
42
  filterBar: "ui-filters",
43
+ pagedLayout: "ui-paged-table-layout",
43
44
  results: "ui-results",
44
45
  pager: "ui-pager",
45
46
  pagerInfo: "ui-pager-info",
@@ -592,6 +593,32 @@ function DataTableRow({
592
593
  )
593
594
  ] });
594
595
  }
596
+
597
+ // src/DataTable/PagedTableLayoutKind.ts
598
+ var PagedTableLayoutKind = /* @__PURE__ */ ((PagedTableLayoutKind2) => {
599
+ PagedTableLayoutKind2["Toolbar"] = "toolbar";
600
+ PagedTableLayoutKind2["Spaced"] = "spaced";
601
+ PagedTableLayoutKind2["Footer"] = "footer";
602
+ PagedTableLayoutKind2["Panel"] = "panel";
603
+ return PagedTableLayoutKind2;
604
+ })(PagedTableLayoutKind || {});
605
+
606
+ // src/DataTable/joinedFrameContext.ts
607
+ var SQUARE = 0;
608
+ var INNER_RADIUS = BORDER_RADIUS - BORDER_WIDTH;
609
+ var NO_OUTER_BORDER = { borderTopWidth: 0, borderRightWidth: 0, borderBottomWidth: 0, borderLeftWidth: 0 };
610
+ function cornerRadii(top, bottom) {
611
+ return { borderTopLeftRadius: top, borderTopRightRadius: top, borderBottomLeftRadius: bottom, borderBottomRightRadius: bottom };
612
+ }
613
+ var AT_FRAME_TOP = { ...NO_OUTER_BORDER, ...cornerRadii(INNER_RADIUS, SQUARE) };
614
+ var AT_FRAME_BOTTOM = { ...NO_OUTER_BORDER, ...cornerRadii(SQUARE, INNER_RADIUS) };
615
+ var JOINED_FRAME_STYLES = {
616
+ ["toolbar" /* Toolbar */]: { wrap: AT_FRAME_BOTTOM },
617
+ ["spaced" /* Spaced */]: null,
618
+ ["footer" /* Footer */]: { wrap: AT_FRAME_TOP },
619
+ ["panel" /* Panel */]: { wrap: AT_FRAME_BOTTOM, filters: AT_FRAME_TOP }
620
+ };
621
+ var JoinedFrameContext = React2.createContext(null);
595
622
  function SelectAllBanner({
596
623
  mode,
597
624
  pageCount,
@@ -901,6 +928,7 @@ function DataTable(props) {
901
928
  const { width } = reactNative.useWindowDimensions();
902
929
  const stacked = width < stackBreakpoint;
903
930
  const frame = { backgroundColor: colors.surface, borderColor: colors.border };
931
+ const joined = React2.useContext(JoinedFrameContext);
904
932
  const interactive = onRowPress !== void 0;
905
933
  const [hoveredKey, setHoveredKey] = React2.useState(void 0);
906
934
  const hoverTint = softBrandTint(theme.palette.primary["500"]) ?? colors.background;
@@ -935,7 +963,7 @@ function DataTable(props) {
935
963
  [rowTint, zebra, colors.background]
936
964
  );
937
965
  const rowBg = (row, index, key) => interactive && hoveredKey === key ? hoverTint : rowBackground(row, index);
938
- const stateView = (label) => /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: [tableStyles.wrap, frame, o?.wrap], testID, children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: [tableStyles.state, o?.state], children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [tableStyles.stateText, { color: colors.textSecondary }, o?.stateText], children: label }) }) });
966
+ const stateView = (label) => /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: [tableStyles.wrap, frame, joined?.wrap, o?.wrap], testID, children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: [tableStyles.state, o?.state], children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [tableStyles.stateText, { color: colors.textSecondary }, o?.stateText], children: label }) }) });
939
967
  if (rows.length === 0) {
940
968
  return stateView(loading ? loadingLabel ?? t(TABLE_I18N.loading) : emptyLabel ?? t(TABLE_I18N.empty));
941
969
  }
@@ -962,8 +990,9 @@ function DataTable(props) {
962
990
  onRowPress
963
991
  }
964
992
  );
965
- if (!animateRowEntrance) return /* @__PURE__ */ jsxRuntime.jsx(React2__default.default.Fragment, { children: node }, key);
966
- return /* @__PURE__ */ jsxRuntime.jsx(uiMotion.FadeIn, { delay: rowEntranceDelayMs(index), testID: rowFadeTestID(testID, key), children: node }, key);
993
+ const detachedFromFrame = /* @__PURE__ */ jsxRuntime.jsx(JoinedFrameContext.Provider, { value: null, children: node });
994
+ if (!animateRowEntrance) return /* @__PURE__ */ jsxRuntime.jsx(React2__default.default.Fragment, { children: detachedFromFrame }, key);
995
+ return /* @__PURE__ */ jsxRuntime.jsx(uiMotion.FadeIn, { delay: rowEntranceDelayMs(index), testID: rowFadeTestID(testID, key), children: detachedFromFrame }, key);
967
996
  };
968
997
  const banner = /* @__PURE__ */ jsxRuntime.jsx(
969
998
  SelectAllBanner,
@@ -978,7 +1007,7 @@ function DataTable(props) {
978
1007
  }
979
1008
  );
980
1009
  if (stacked) {
981
- return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: [tableStyles.wrap, frame, o?.wrap], testID, "aria-busy": loading, children: [
1010
+ return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: [tableStyles.wrap, frame, joined?.wrap, o?.wrap], testID, "aria-busy": loading, children: [
982
1011
  banner,
983
1012
  /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: tableStyles.headSentinel, testID: TABLE_TEST_IDS.head, "aria-hidden": true }),
984
1013
  rows.map((row, i) => {
@@ -999,7 +1028,7 @@ function DataTable(props) {
999
1028
  return /* @__PURE__ */ jsxRuntime.jsxs(
1000
1029
  reactNative.View,
1001
1030
  {
1002
- style: [tableStyles.wrap, frame, o?.wrap],
1031
+ style: [tableStyles.wrap, frame, joined?.wrap, o?.wrap],
1003
1032
  testID,
1004
1033
  "aria-busy": loading,
1005
1034
  ...keyboardNavigation ? { role: "grid" } : null,
@@ -1035,8 +1064,9 @@ function FilterBar({
1035
1064
  }) {
1036
1065
  const { theme, t } = uiFeedback.useUi();
1037
1066
  const { colors } = theme;
1067
+ const joined = React2.useContext(JoinedFrameContext);
1038
1068
  const word = resultsLabel ?? t(TABLE_I18N.results);
1039
- return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: [chromeStyles.filters, { backgroundColor: colors.surface, borderColor: colors.border }, o?.filters], testID, children: [
1069
+ return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: [chromeStyles.filters, { backgroundColor: colors.surface, borderColor: colors.border }, joined?.filters, o?.filters], testID, children: [
1040
1070
  children,
1041
1071
  /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: [chromeStyles.filtersSpacer, o?.filtersSpacer] }),
1042
1072
  typeof resultsCount === "number" && // Live region: announce the new count when filters change the result set (WCAG 4.1.3).
@@ -1428,6 +1458,47 @@ function Pager({
1428
1458
  )
1429
1459
  ] });
1430
1460
  }
1461
+ var LAYOUT_GAP = 12;
1462
+ var PAGER_SLOT_PAD_V = 8;
1463
+ var PAGER_IN_FRAME = { paddingHorizontal: ROW_PAD_H, paddingVertical: PAGER_SLOT_PAD_V };
1464
+ var FRAME = { borderWidth: BORDER_WIDTH, borderRadius: BORDER_RADIUS };
1465
+ var SLOT_STYLES = {
1466
+ ["toolbar" /* Toolbar */]: { filters: { marginBottom: LAYOUT_GAP }, pager: { ...PAGER_IN_FRAME, borderBottomWidth: BORDER_WIDTH } },
1467
+ ["spaced" /* Spaced */]: { filters: {}, pager: { marginTop: LAYOUT_GAP, marginBottom: LAYOUT_GAP } },
1468
+ ["footer" /* Footer */]: { filters: { marginBottom: LAYOUT_GAP }, pager: { ...PAGER_IN_FRAME, borderTopWidth: BORDER_WIDTH } },
1469
+ ["panel" /* Panel */]: { filters: { borderBottomWidth: BORDER_WIDTH }, pager: { ...PAGER_IN_FRAME, borderBottomWidth: BORDER_WIDTH } }
1470
+ };
1471
+ function PagedTableLayout({
1472
+ filters,
1473
+ pager,
1474
+ table,
1475
+ layout = "toolbar" /* Toolbar */,
1476
+ testID = TABLE_TEST_IDS.pagedLayout
1477
+ }) {
1478
+ const { colors } = uiFeedback.useUi().theme;
1479
+ const slots = SLOT_STYLES[layout];
1480
+ const line = { borderColor: colors.border };
1481
+ const hasFilters = filters !== void 0 && filters !== null && filters !== false;
1482
+ const filtersInFrame = layout === "panel" /* Panel */;
1483
+ const isJoined = layout !== "spaced" /* Spaced */;
1484
+ const filtersSlot = hasFilters ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: [slots.filters, line], testID: `${testID}-filters`, children: filters }) : null;
1485
+ const pagerSlot = /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: [slots.pager, line], testID: `${testID}-pager`, children: pager });
1486
+ const tableSlot = /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { testID: `${testID}-table`, children: table });
1487
+ const pagerAndTable = layout === "footer" /* Footer */ ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
1488
+ tableSlot,
1489
+ pagerSlot
1490
+ ] }) : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
1491
+ pagerSlot,
1492
+ tableSlot
1493
+ ] });
1494
+ return /* @__PURE__ */ jsxRuntime.jsx(JoinedFrameContext.Provider, { value: JOINED_FRAME_STYLES[layout], children: /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { testID, children: [
1495
+ filtersInFrame ? null : filtersSlot,
1496
+ isJoined ? /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: [FRAME, line, { backgroundColor: colors.surface }], testID: `${testID}-frame`, children: [
1497
+ filtersInFrame ? filtersSlot : null,
1498
+ pagerAndTable
1499
+ ] }) : pagerAndTable
1500
+ ] }) });
1501
+ }
1431
1502
  var FIELD_GAP = 4;
1432
1503
  var SWITCH_ROW_GAP = 8;
1433
1504
  var ACTION_PAD_H = 14;
@@ -2323,6 +2394,8 @@ exports.LedgerLayout = LedgerLayout;
2323
2394
  exports.MONTH_STATUS_GRID_TEST_ID = MONTH_STATUS_GRID_TEST_ID;
2324
2395
  exports.MonthGridColumns = MonthGridColumns;
2325
2396
  exports.MonthStatusGrid = MonthStatusGrid;
2397
+ exports.PagedTableLayout = PagedTableLayout;
2398
+ exports.PagedTableLayoutKind = PagedTableLayoutKind;
2326
2399
  exports.Pager = Pager;
2327
2400
  exports.RelativeTime = RelativeTime;
2328
2401
  exports.STATUS_LEDGER_TEST_ID = STATUS_LEDGER_TEST_ID;