@multiplatform.one/table 7.84.0 → 7.84.2
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/cjs/components/ColumnHeaderFilter/index.cjs +1 -2
- package/dist/cjs/components/ColumnHeaderFilter/index.native.js +1 -2
- package/dist/cjs/components/ColumnHeaderFilter/index.native.js.map +1 -1
- package/dist/cjs/components/DataTable/DataTableInfiniteTail.cjs +1 -1
- package/dist/cjs/components/DataTable/DataTableInfiniteTail.native.js +1 -1
- package/dist/cjs/components/DataTable/DataTableInfiniteTail.native.js.map +1 -1
- package/dist/cjs/components/DataTable/DataTableRoot.cjs +4 -5
- package/dist/cjs/components/DataTable/DataTableRoot.native.js +4 -5
- package/dist/cjs/components/DataTable/DataTableRoot.native.js.map +1 -1
- package/dist/cjs/components/DataTable/DataTableVirtualized.cjs +2 -2
- package/dist/cjs/components/DataTable/DataTableVirtualized.native.js +2 -2
- package/dist/cjs/components/DataTable/DataTableVirtualized.native.js.map +1 -1
- package/dist/cjs/components/DataTable/index.native.js +1 -2
- package/dist/cjs/components/DataTable/index.native.js.map +1 -1
- package/dist/cjs/components/DataTableBulkActions/index.cjs +1 -2
- package/dist/cjs/components/DataTableBulkActions/index.native.js +1 -2
- package/dist/cjs/components/DataTableBulkActions/index.native.js.map +1 -1
- package/dist/cjs/components/DataTableCell/CellModalEditor.cjs +1 -1
- package/dist/cjs/components/DataTableCell/CellModalEditor.native.js +1 -1
- package/dist/cjs/components/DataTableCell/CellModalEditor.native.js.map +1 -1
- package/dist/cjs/components/DataTableColumnPinning/index.cjs +1 -2
- package/dist/cjs/components/DataTableColumnPinning/index.native.js +1 -2
- package/dist/cjs/components/DataTableColumnPinning/index.native.js.map +1 -1
- package/dist/cjs/components/DataTableDateFilter/index.cjs +5 -10
- package/dist/cjs/components/DataTableDateFilter/index.native.js +5 -10
- package/dist/cjs/components/DataTableDateFilter/index.native.js.map +1 -1
- package/dist/cjs/components/DataTableExport/index.cjs +5 -10
- package/dist/cjs/components/DataTableExport/index.native.js +5 -10
- package/dist/cjs/components/DataTableExport/index.native.js.map +1 -1
- package/dist/cjs/components/DataTableFacetMenu/index.cjs +1 -2
- package/dist/cjs/components/DataTableFacetMenu/index.native.js +1 -2
- package/dist/cjs/components/DataTableFacetMenu/index.native.js.map +1 -1
- package/dist/cjs/components/DataTableFilterButton/index.cjs +1 -2
- package/dist/cjs/components/DataTableFilterButton/index.native.js +1 -2
- package/dist/cjs/components/DataTableFilterButton/index.native.js.map +1 -1
- package/dist/cjs/components/DataTableFilters/index.cjs +0 -1
- package/dist/cjs/components/DataTableFilters/index.native.js +0 -1
- package/dist/cjs/components/DataTableGrouping/index.cjs +7 -14
- package/dist/cjs/components/DataTableGrouping/index.native.js +7 -14
- package/dist/cjs/components/DataTableGrouping/index.native.js.map +1 -1
- package/dist/cjs/components/DataTablePagination/index.cjs +3 -3
- package/dist/cjs/components/DataTablePagination/index.native.js +3 -3
- package/dist/cjs/components/DataTablePagination/index.native.js.map +1 -1
- package/dist/cjs/components/DataTableSearch/index.cjs +5 -8
- package/dist/cjs/components/DataTableSearch/index.native.js +5 -8
- package/dist/cjs/components/DataTableSearch/index.native.js.map +1 -1
- package/dist/cjs/components/DataTableViewOptions/index.cjs +8 -16
- package/dist/cjs/components/DataTableViewOptions/index.native.js +8 -16
- package/dist/cjs/components/DataTableViewOptions/index.native.js.map +1 -1
- package/dist/cjs/components/SimpleTable/index.cjs +6 -6
- package/dist/cjs/components/SimpleTable/index.native.js +6 -6
- package/dist/cjs/components/SimpleTable/index.native.js.map +1 -1
- package/dist/cjs/components/TableInput/RowDetailEditor.cjs +1 -1
- package/dist/cjs/components/TableInput/RowDetailEditor.native.js +2 -2
- package/dist/cjs/components/TableInput/RowDetailEditor.native.js.map +1 -1
- package/dist/cjs/components/TableInput/index.native.js +0 -2
- package/dist/cjs/components/TableInput/index.native.js.map +1 -1
- package/dist/esm/components/ColumnHeaderFilter/index.mjs +2 -3
- package/dist/esm/components/ColumnHeaderFilter/index.mjs.map +1 -1
- package/dist/esm/components/ColumnHeaderFilter/index.native.js +2 -3
- package/dist/esm/components/ColumnHeaderFilter/index.native.js.map +1 -1
- package/dist/esm/components/DataTable/DataTableInfiniteTail.mjs +2 -2
- package/dist/esm/components/DataTable/DataTableInfiniteTail.mjs.map +1 -1
- package/dist/esm/components/DataTable/DataTableInfiniteTail.native.js +2 -2
- package/dist/esm/components/DataTable/DataTableInfiniteTail.native.js.map +1 -1
- package/dist/esm/components/DataTable/DataTableRoot.mjs +5 -6
- package/dist/esm/components/DataTable/DataTableRoot.mjs.map +1 -1
- package/dist/esm/components/DataTable/DataTableRoot.native.js +5 -6
- package/dist/esm/components/DataTable/DataTableRoot.native.js.map +1 -1
- package/dist/esm/components/DataTable/DataTableVirtualized.mjs +3 -3
- package/dist/esm/components/DataTable/DataTableVirtualized.mjs.map +1 -1
- package/dist/esm/components/DataTable/DataTableVirtualized.native.js +3 -3
- package/dist/esm/components/DataTable/DataTableVirtualized.native.js.map +1 -1
- package/dist/esm/components/DataTable/index.native.js +2 -3
- package/dist/esm/components/DataTable/index.native.js.map +1 -1
- package/dist/esm/components/DataTableBulkActions/index.mjs +2 -3
- package/dist/esm/components/DataTableBulkActions/index.mjs.map +1 -1
- package/dist/esm/components/DataTableBulkActions/index.native.js +2 -3
- package/dist/esm/components/DataTableBulkActions/index.native.js.map +1 -1
- package/dist/esm/components/DataTableCell/CellModalEditor.mjs +2 -2
- package/dist/esm/components/DataTableCell/CellModalEditor.mjs.map +1 -1
- package/dist/esm/components/DataTableCell/CellModalEditor.native.js +2 -2
- package/dist/esm/components/DataTableCell/CellModalEditor.native.js.map +1 -1
- package/dist/esm/components/DataTableColumnPinning/index.mjs +2 -3
- package/dist/esm/components/DataTableColumnPinning/index.mjs.map +1 -1
- package/dist/esm/components/DataTableColumnPinning/index.native.js +2 -3
- package/dist/esm/components/DataTableColumnPinning/index.native.js.map +1 -1
- package/dist/esm/components/DataTableDateFilter/index.mjs +6 -11
- package/dist/esm/components/DataTableDateFilter/index.mjs.map +1 -1
- package/dist/esm/components/DataTableDateFilter/index.native.js +6 -11
- package/dist/esm/components/DataTableDateFilter/index.native.js.map +1 -1
- package/dist/esm/components/DataTableExport/index.mjs +6 -11
- package/dist/esm/components/DataTableExport/index.mjs.map +1 -1
- package/dist/esm/components/DataTableExport/index.native.js +6 -11
- package/dist/esm/components/DataTableExport/index.native.js.map +1 -1
- package/dist/esm/components/DataTableFacetMenu/index.mjs +2 -3
- package/dist/esm/components/DataTableFacetMenu/index.mjs.map +1 -1
- package/dist/esm/components/DataTableFacetMenu/index.native.js +2 -3
- package/dist/esm/components/DataTableFacetMenu/index.native.js.map +1 -1
- package/dist/esm/components/DataTableFilterButton/index.mjs +2 -3
- package/dist/esm/components/DataTableFilterButton/index.mjs.map +1 -1
- package/dist/esm/components/DataTableFilterButton/index.native.js +2 -3
- package/dist/esm/components/DataTableFilterButton/index.native.js.map +1 -1
- package/dist/esm/components/DataTableFilters/index.mjs +0 -1
- package/dist/esm/components/DataTableFilters/index.mjs.map +1 -1
- package/dist/esm/components/DataTableFilters/index.native.js +0 -1
- package/dist/esm/components/DataTableFilters/index.native.js.map +1 -1
- package/dist/esm/components/DataTableGrouping/index.mjs +8 -15
- package/dist/esm/components/DataTableGrouping/index.mjs.map +1 -1
- package/dist/esm/components/DataTableGrouping/index.native.js +8 -15
- package/dist/esm/components/DataTableGrouping/index.native.js.map +1 -1
- package/dist/esm/components/DataTablePagination/index.mjs +2 -2
- package/dist/esm/components/DataTablePagination/index.mjs.map +1 -1
- package/dist/esm/components/DataTablePagination/index.native.js +2 -2
- package/dist/esm/components/DataTablePagination/index.native.js.map +1 -1
- package/dist/esm/components/DataTableSearch/index.mjs +6 -9
- package/dist/esm/components/DataTableSearch/index.mjs.map +1 -1
- package/dist/esm/components/DataTableSearch/index.native.js +6 -9
- package/dist/esm/components/DataTableSearch/index.native.js.map +1 -1
- package/dist/esm/components/DataTableViewOptions/index.mjs +9 -17
- package/dist/esm/components/DataTableViewOptions/index.mjs.map +1 -1
- package/dist/esm/components/DataTableViewOptions/index.native.js +9 -17
- package/dist/esm/components/DataTableViewOptions/index.native.js.map +1 -1
- package/dist/esm/components/SimpleTable/index.mjs +2 -2
- package/dist/esm/components/SimpleTable/index.mjs.map +1 -1
- package/dist/esm/components/SimpleTable/index.native.js +2 -2
- package/dist/esm/components/SimpleTable/index.native.js.map +1 -1
- package/dist/esm/components/TableInput/RowDetailEditor.mjs +2 -2
- package/dist/esm/components/TableInput/RowDetailEditor.mjs.map +1 -1
- package/dist/esm/components/TableInput/RowDetailEditor.native.js +2 -2
- package/dist/esm/components/TableInput/RowDetailEditor.native.js.map +1 -1
- package/dist/esm/components/TableInput/index.native.js +0 -2
- package/dist/esm/components/TableInput/index.native.js.map +1 -1
- package/dist/jsx/components/ColumnHeaderFilter/index.mjs +2 -3
- package/dist/jsx/components/ColumnHeaderFilter/index.mjs.map +1 -1
- package/dist/jsx/components/ColumnHeaderFilter/index.native.js +1 -2
- package/dist/jsx/components/ColumnHeaderFilter/index.native.js.map +1 -1
- package/dist/jsx/components/DataTable/DataTableInfiniteTail.mjs +2 -2
- package/dist/jsx/components/DataTable/DataTableInfiniteTail.mjs.map +1 -1
- package/dist/jsx/components/DataTable/DataTableInfiniteTail.native.js +1 -1
- package/dist/jsx/components/DataTable/DataTableInfiniteTail.native.js.map +1 -1
- package/dist/jsx/components/DataTable/DataTableRoot.mjs +5 -6
- package/dist/jsx/components/DataTable/DataTableRoot.mjs.map +1 -1
- package/dist/jsx/components/DataTable/DataTableRoot.native.js +4 -5
- package/dist/jsx/components/DataTable/DataTableRoot.native.js.map +1 -1
- package/dist/jsx/components/DataTable/DataTableVirtualized.mjs +3 -3
- package/dist/jsx/components/DataTable/DataTableVirtualized.mjs.map +1 -1
- package/dist/jsx/components/DataTable/DataTableVirtualized.native.js +2 -2
- package/dist/jsx/components/DataTable/DataTableVirtualized.native.js.map +1 -1
- package/dist/jsx/components/DataTable/index.native.js +1 -2
- package/dist/jsx/components/DataTable/index.native.js.map +1 -1
- package/dist/jsx/components/DataTableBulkActions/index.mjs +2 -3
- package/dist/jsx/components/DataTableBulkActions/index.mjs.map +1 -1
- package/dist/jsx/components/DataTableBulkActions/index.native.js +1 -2
- package/dist/jsx/components/DataTableBulkActions/index.native.js.map +1 -1
- package/dist/jsx/components/DataTableCell/CellModalEditor.mjs +2 -2
- package/dist/jsx/components/DataTableCell/CellModalEditor.mjs.map +1 -1
- package/dist/jsx/components/DataTableCell/CellModalEditor.native.js +1 -1
- package/dist/jsx/components/DataTableCell/CellModalEditor.native.js.map +1 -1
- package/dist/jsx/components/DataTableColumnPinning/index.mjs +2 -3
- package/dist/jsx/components/DataTableColumnPinning/index.mjs.map +1 -1
- package/dist/jsx/components/DataTableColumnPinning/index.native.js +1 -2
- package/dist/jsx/components/DataTableColumnPinning/index.native.js.map +1 -1
- package/dist/jsx/components/DataTableDateFilter/index.mjs +6 -11
- package/dist/jsx/components/DataTableDateFilter/index.mjs.map +1 -1
- package/dist/jsx/components/DataTableDateFilter/index.native.js +5 -10
- package/dist/jsx/components/DataTableDateFilter/index.native.js.map +1 -1
- package/dist/jsx/components/DataTableExport/index.mjs +6 -11
- package/dist/jsx/components/DataTableExport/index.mjs.map +1 -1
- package/dist/jsx/components/DataTableExport/index.native.js +5 -10
- package/dist/jsx/components/DataTableExport/index.native.js.map +1 -1
- package/dist/jsx/components/DataTableFacetMenu/index.mjs +2 -3
- package/dist/jsx/components/DataTableFacetMenu/index.mjs.map +1 -1
- package/dist/jsx/components/DataTableFacetMenu/index.native.js +1 -2
- package/dist/jsx/components/DataTableFacetMenu/index.native.js.map +1 -1
- package/dist/jsx/components/DataTableFilterButton/index.mjs +2 -3
- package/dist/jsx/components/DataTableFilterButton/index.mjs.map +1 -1
- package/dist/jsx/components/DataTableFilterButton/index.native.js +1 -2
- package/dist/jsx/components/DataTableFilterButton/index.native.js.map +1 -1
- package/dist/jsx/components/DataTableFilters/index.mjs +0 -1
- package/dist/jsx/components/DataTableFilters/index.mjs.map +1 -1
- package/dist/jsx/components/DataTableFilters/index.native.js +0 -1
- package/dist/jsx/components/DataTableGrouping/index.mjs +8 -15
- package/dist/jsx/components/DataTableGrouping/index.mjs.map +1 -1
- package/dist/jsx/components/DataTableGrouping/index.native.js +7 -14
- package/dist/jsx/components/DataTableGrouping/index.native.js.map +1 -1
- package/dist/jsx/components/DataTablePagination/index.mjs +2 -2
- package/dist/jsx/components/DataTablePagination/index.mjs.map +1 -1
- package/dist/jsx/components/DataTablePagination/index.native.js +3 -3
- package/dist/jsx/components/DataTablePagination/index.native.js.map +1 -1
- package/dist/jsx/components/DataTableSearch/index.mjs +6 -9
- package/dist/jsx/components/DataTableSearch/index.mjs.map +1 -1
- package/dist/jsx/components/DataTableSearch/index.native.js +5 -8
- package/dist/jsx/components/DataTableSearch/index.native.js.map +1 -1
- package/dist/jsx/components/DataTableViewOptions/index.mjs +9 -17
- package/dist/jsx/components/DataTableViewOptions/index.mjs.map +1 -1
- package/dist/jsx/components/DataTableViewOptions/index.native.js +8 -16
- package/dist/jsx/components/DataTableViewOptions/index.native.js.map +1 -1
- package/dist/jsx/components/SimpleTable/index.mjs +2 -2
- package/dist/jsx/components/SimpleTable/index.mjs.map +1 -1
- package/dist/jsx/components/SimpleTable/index.native.js +6 -6
- package/dist/jsx/components/SimpleTable/index.native.js.map +1 -1
- package/dist/jsx/components/TableInput/RowDetailEditor.mjs +2 -2
- package/dist/jsx/components/TableInput/RowDetailEditor.mjs.map +1 -1
- package/dist/jsx/components/TableInput/RowDetailEditor.native.js +2 -2
- package/dist/jsx/components/TableInput/RowDetailEditor.native.js.map +1 -1
- package/dist/jsx/components/TableInput/index.native.js +0 -2
- package/dist/jsx/components/TableInput/index.native.js.map +1 -1
- package/package.json +14 -14
- package/src/components/ColumnHeaderFilter/index.tsx +3 -3
- package/src/components/DataTable/DataTableInfiniteTail.tsx +2 -2
- package/src/components/DataTable/DataTableRoot.tsx +9 -10
- package/src/components/DataTable/DataTableVirtualized.tsx +4 -4
- package/src/components/DataTable/index.native.tsx +3 -5
- package/src/components/DataTableBulkActions/index.tsx +3 -3
- package/src/components/DataTableCell/CellModalEditor.native.tsx +2 -2
- package/src/components/DataTableCell/CellModalEditor.tsx +2 -2
- package/src/components/DataTableColumnPinning/index.tsx +3 -3
- package/src/components/DataTableDateFilter/index.tsx +6 -24
- package/src/components/DataTableExport/index.tsx +7 -15
- package/src/components/DataTableFacetMenu/index.tsx +3 -9
- package/src/components/DataTableFilterButton/index.tsx +2 -3
- package/src/components/DataTableFilters/index.tsx +1 -1
- package/src/components/DataTableGrouping/index.tsx +11 -19
- package/src/components/DataTablePagination/index.tsx +2 -2
- package/src/components/DataTableSearch/index.tsx +9 -13
- package/src/components/DataTableViewOptions/index.tsx +11 -31
- package/src/components/SimpleTable/index.tsx +2 -2
- package/src/components/TableInput/RowDetailEditor.native.tsx +2 -2
- package/src/components/TableInput/RowDetailEditor.tsx +2 -1
- package/src/components/TableInput/index.native.tsx +2 -2
- package/src/components/chromeDesignLaw.spec.tsx +3 -4
- package/src/components/chromeLabelWeight.spec.tsx +111 -0
- package/types/components/DataTable/DataTableRoot.d.ts.map +1 -1
- package/types/components/DataTable/index.native.d.ts.map +1 -1
- package/types/components/DataTableDateFilter/index.d.ts.map +1 -1
- package/types/components/DataTableFacetMenu/index.d.ts.map +1 -1
- package/types/components/DataTableFilterButton/index.d.ts.map +1 -1
- package/types/components/DataTableGrouping/index.d.ts.map +1 -1
- package/types/components/DataTablePagination/index.d.ts.map +1 -1
- package/types/components/DataTableSearch/index.d.ts.map +1 -1
- package/types/components/DataTableViewOptions/index.d.ts.map +1 -1
- package/types/components/TableInput/RowDetailEditor.d.ts.map +1 -1
|
@@ -35,9 +35,10 @@ import {
|
|
|
35
35
|
useDirection,
|
|
36
36
|
useRevealTop,
|
|
37
37
|
Text,
|
|
38
|
+
SizableText,
|
|
38
39
|
} from "@multiplatform.one/components";
|
|
39
40
|
import type { FontSizeTokens, SizeTokens } from "tamagui";
|
|
40
|
-
import {
|
|
41
|
+
import { View, isWeb, useMedia } from "tamagui";
|
|
41
42
|
import { useTranslation } from "react-i18next";
|
|
42
43
|
import { useDataTable } from "../../hooks/useDataTable";
|
|
43
44
|
import { useDragScroll } from "../../hooks/useDragScroll";
|
|
@@ -1605,9 +1606,7 @@ export function DataTableRoot<TData extends Record<string, any> = Record<string,
|
|
|
1605
1606
|
cellHeight={cellHeight as any}
|
|
1606
1607
|
cellLocation={enableRowSelection ? "middle" : "first"}
|
|
1607
1608
|
>
|
|
1608
|
-
<Text fontSize={knobProps.sizeToken}
|
|
1609
|
-
#
|
|
1610
|
-
</Text>
|
|
1609
|
+
<Text fontSize={knobProps.sizeToken}>#</Text>
|
|
1611
1610
|
</Table.HeaderCell>
|
|
1612
1611
|
)}
|
|
1613
1612
|
|
|
@@ -1799,7 +1798,7 @@ export function DataTableRoot<TData extends Record<string, any> = Record<string,
|
|
|
1799
1798
|
{/* A right-aligned label ends on its values'
|
|
1800
1799
|
edge, so its sort glyph leads (DG-TBL-01). */}
|
|
1801
1800
|
{isRightAligned ? sortGlyph : null}
|
|
1802
|
-
<
|
|
1801
|
+
<Text
|
|
1803
1802
|
fontSize={knobProps.sizeToken}
|
|
1804
1803
|
userSelect="none"
|
|
1805
1804
|
flexShrink={1}
|
|
@@ -1814,7 +1813,7 @@ export function DataTableRoot<TData extends Record<string, any> = Record<string,
|
|
|
1814
1813
|
header.column.columnDef.header,
|
|
1815
1814
|
header.getContext(),
|
|
1816
1815
|
)}
|
|
1817
|
-
</
|
|
1816
|
+
</Text>
|
|
1818
1817
|
{isRightAligned ? null : sortGlyph}
|
|
1819
1818
|
</View>
|
|
1820
1819
|
{/* Absent rather than empty: an empty cluster
|
|
@@ -2035,9 +2034,9 @@ export function DataTableRoot<TData extends Record<string, any> = Record<string,
|
|
|
2035
2034
|
},
|
|
2036
2035
|
} as any)}
|
|
2037
2036
|
>
|
|
2038
|
-
<
|
|
2037
|
+
<Text fontFamily="$mono" fontSize="$3">
|
|
2039
2038
|
{row.getIsExpanded() ? "▼" : "▶"}
|
|
2040
|
-
</
|
|
2039
|
+
</Text>
|
|
2041
2040
|
<SizableText
|
|
2042
2041
|
fontFamily={knobProps.heading.fontFamily}
|
|
2043
2042
|
size="$4"
|
|
@@ -2395,7 +2394,7 @@ export function DataTableRoot<TData extends Record<string, any> = Record<string,
|
|
|
2395
2394
|
many rows exist even when a height-constrained body clips
|
|
2396
2395
|
some below the fold ("1–6 of 6", not "what you see is all"). */}
|
|
2397
2396
|
{showPageRange && sm !== false ? (
|
|
2398
|
-
<
|
|
2397
|
+
<Text
|
|
2399
2398
|
fontSize={knobProps.sizeToken}
|
|
2400
2399
|
color="$color11"
|
|
2401
2400
|
aria-live="polite"
|
|
@@ -2413,7 +2412,7 @@ export function DataTableRoot<TData extends Record<string, any> = Record<string,
|
|
|
2413
2412
|
{ start: rangeStart, end: rangeEnd, total: rangeTotal },
|
|
2414
2413
|
),
|
|
2415
2414
|
)}
|
|
2416
|
-
</
|
|
2415
|
+
</Text>
|
|
2417
2416
|
) : null}
|
|
2418
2417
|
</View>
|
|
2419
2418
|
)}
|
|
@@ -9,9 +9,9 @@
|
|
|
9
9
|
|
|
10
10
|
import { dataTableChrome, rowIntentProps } from "./dataTableChrome";
|
|
11
11
|
import { tableRowStateProps } from "./rowStateChrome";
|
|
12
|
-
import { Skeleton, Text } from "@multiplatform.one/components";
|
|
12
|
+
import { Skeleton, Text, SizableText } from "@multiplatform.one/components";
|
|
13
13
|
import { TableEdgeCells, useTableEdgeInset } from "@multiplatform.one/table-primitives";
|
|
14
|
-
import {
|
|
14
|
+
import { View } from "tamagui";
|
|
15
15
|
|
|
16
16
|
export interface DataTableVirtualizedProps {
|
|
17
17
|
virtualItems: any[];
|
|
@@ -167,9 +167,9 @@ export function DataTableVirtualized({
|
|
|
167
167
|
},
|
|
168
168
|
} as any)}
|
|
169
169
|
>
|
|
170
|
-
<
|
|
170
|
+
<Text fontFamily="$mono" fontSize="$3">
|
|
171
171
|
{row.getIsExpanded() ? "▼" : "▶"}
|
|
172
|
-
</
|
|
172
|
+
</Text>
|
|
173
173
|
<SizableText fontFamily="$heading" size="$4">
|
|
174
174
|
{String(row.groupingValue ?? "—")}
|
|
175
175
|
</SizableText>
|
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
} from "@multiplatform.one/theme";
|
|
34
34
|
import React, { useEffect, useRef, useMemo, useCallback } from "react";
|
|
35
35
|
import type { FontSizeTokens, SizeTokens } from "tamagui";
|
|
36
|
-
import {
|
|
36
|
+
import { View, useMedia, withStaticProperties } from "tamagui";
|
|
37
37
|
import { useTranslation } from "react-i18next";
|
|
38
38
|
import { useDataTable } from "../../hooks/useDataTable";
|
|
39
39
|
import type { BulkAction, DataTableColumn, DataTableField, SelectAllScope } from "../../types";
|
|
@@ -96,7 +96,7 @@ function NativeCellContent({
|
|
|
96
96
|
}) {
|
|
97
97
|
const rendered = typeof cellDef === "function" ? cellDef(ctx) : cellDef;
|
|
98
98
|
if (typeof rendered === "string" || typeof rendered === "number") {
|
|
99
|
-
return <
|
|
99
|
+
return <Text {...(fontSize ? { fontSize } : {})}>{String(rendered)}</Text>;
|
|
100
100
|
}
|
|
101
101
|
return rendered ?? null;
|
|
102
102
|
}
|
|
@@ -972,9 +972,7 @@ function DataTableRoot<TData extends Record<string, any> = Record<string, any>>(
|
|
|
972
972
|
cellWidth={chrome.rowNumberCol}
|
|
973
973
|
cellHeight={cellHeight as any}
|
|
974
974
|
>
|
|
975
|
-
<Text fontSize={knobProps.sizeToken}
|
|
976
|
-
#
|
|
977
|
-
</Text>
|
|
975
|
+
<Text fontSize={knobProps.sizeToken}>#</Text>
|
|
978
976
|
</Table.HeaderCell>
|
|
979
977
|
)}
|
|
980
978
|
{enableRowExpansion && (
|
|
@@ -3,8 +3,8 @@ import { useAccentOnSurface, useResolvedKnobs } from "@multiplatform.one/theme";
|
|
|
3
3
|
import { useState } from "react";
|
|
4
4
|
import { useTranslation } from "react-i18next";
|
|
5
5
|
import { Button, zIndex } from "@multiplatform.one/forms";
|
|
6
|
-
import { ConfirmDialog, DropdownMenu } from "@multiplatform.one/components";
|
|
7
|
-
import {
|
|
6
|
+
import { ConfirmDialog, DropdownMenu, Text } from "@multiplatform.one/components";
|
|
7
|
+
import { View, XStack, isWeb, useMedia } from "tamagui";
|
|
8
8
|
import type { BulkAction } from "../../types";
|
|
9
9
|
import { iconSizeForToken } from "../../utils/chromeIcons";
|
|
10
10
|
import { withInterp } from "../../utils/withInterp";
|
|
@@ -128,7 +128,7 @@ export function DataTableBulkActions<T = any>(props: DataTableBulkActionsProps<T
|
|
|
128
128
|
const summary = (
|
|
129
129
|
<>
|
|
130
130
|
{showSelectionCount && (
|
|
131
|
-
<Text {...knobProps.label}
|
|
131
|
+
<Text {...knobProps.label} color={countColor}>
|
|
132
132
|
{/* D-15: one whole-sentence key per variant (never concatenated
|
|
133
133
|
fragments — word order is locale-owned); withInterp fills the
|
|
134
134
|
params when no i18n instance is mounted (house table pattern). */}
|
|
@@ -18,10 +18,10 @@
|
|
|
18
18
|
import { FieldDisplay, FloatingPanel } from "@multiplatform.one/forms";
|
|
19
19
|
import { useResolvedKnobs } from "@multiplatform.one/theme";
|
|
20
20
|
import { useCallback, useRef, useState } from "react";
|
|
21
|
-
import {
|
|
21
|
+
import { View, XStack, YStack } from "tamagui";
|
|
22
22
|
import { t } from "../../shared/t";
|
|
23
23
|
import type { CellModalEditorProps } from "./CellModalEditor";
|
|
24
|
-
import { ActionButton } from "@multiplatform.one/components";
|
|
24
|
+
import { ActionButton, Text } from "@multiplatform.one/components";
|
|
25
25
|
|
|
26
26
|
export type { CellModalEditorProps } from "./CellModalEditor";
|
|
27
27
|
|
|
@@ -19,9 +19,9 @@ import { FieldDisplay, FloatingPanel, type FieldDisplayType } from "@multiplatfo
|
|
|
19
19
|
import { TableCellContext } from "@multiplatform.one/table-primitives";
|
|
20
20
|
import { useResolvedKnobs } from "@multiplatform.one/theme";
|
|
21
21
|
import { useCallback, useEffect, useRef, useState, type ReactNode } from "react";
|
|
22
|
-
import {
|
|
22
|
+
import { View, XStack, YStack, isWeb } from "tamagui";
|
|
23
23
|
import { t } from "../../shared/t";
|
|
24
|
-
import { ActionButton } from "@multiplatform.one/components";
|
|
24
|
+
import { ActionButton, Text } from "@multiplatform.one/components";
|
|
25
25
|
|
|
26
26
|
export interface CellModalEditorProps {
|
|
27
27
|
field: FieldDisplayType;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { componentColors } from "@multiplatform.one/components";
|
|
1
|
+
import { componentColors, Text } from "@multiplatform.one/components";
|
|
2
2
|
import { PushPinIcon } from "@phosphor-icons/react";
|
|
3
3
|
import {
|
|
4
4
|
MIN_PRESS_TARGET,
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
} from "@multiplatform.one/theme";
|
|
9
9
|
import type { Table as ReactTable } from "@tanstack/react-table";
|
|
10
10
|
import { useCallback, useMemo, useState } from "react";
|
|
11
|
-
import {
|
|
11
|
+
import { View, isWeb, styled } from "tamagui";
|
|
12
12
|
import { useDataTableState } from "../DataTable/DataTableStateContext";
|
|
13
13
|
import { t } from "../../shared/t";
|
|
14
14
|
import { iconSizeForToken } from "../../utils/chromeIcons";
|
|
@@ -283,7 +283,7 @@ export function DataTableColumnPinning<TData>(props: DataTableColumnPinningProps
|
|
|
283
283
|
weight={pinned ? "fill" : "regular"}
|
|
284
284
|
/>
|
|
285
285
|
{pinned && currentPosition ? (
|
|
286
|
-
<Text {...knobProps.label}
|
|
286
|
+
<Text {...knobProps.label} color="$color10">
|
|
287
287
|
{currentPosition === "left" ? "L" : "R"}
|
|
288
288
|
</Text>
|
|
289
289
|
) : null}
|
|
@@ -9,15 +9,7 @@ import {
|
|
|
9
9
|
import { formatAbsoluteDate, parseCalendarDate, useResolvedKnobs } from "@multiplatform.one/theme";
|
|
10
10
|
import React, { useState, useMemo } from "react";
|
|
11
11
|
import { Button, DatePicker, FloatingPanel } from "@multiplatform.one/forms";
|
|
12
|
-
import {
|
|
13
|
-
Separator,
|
|
14
|
-
Text as TamaguiText,
|
|
15
|
-
View,
|
|
16
|
-
XStack,
|
|
17
|
-
YStack,
|
|
18
|
-
getTokens,
|
|
19
|
-
getVariableValue,
|
|
20
|
-
} from "tamagui";
|
|
12
|
+
import { Separator, View, XStack, YStack, getTokens, getVariableValue } from "tamagui";
|
|
21
13
|
import { ScrollView, Text } from "@multiplatform.one/components";
|
|
22
14
|
import { t } from "../../shared/t";
|
|
23
15
|
import { iconSizeForToken } from "../../utils/chromeIcons";
|
|
@@ -340,9 +332,7 @@ export function DataTableDateFilter({
|
|
|
340
332
|
<FloatingPanel open={isOpen} onOpenChange={setIsOpen} trigger={trigger} scrollable>
|
|
341
333
|
<YStack {...knobProps.gapLg} minWidth={popoverMinWidth} data-dismiss-class="compose">
|
|
342
334
|
<XStack justifyContent="space-between" alignItems="center">
|
|
343
|
-
<
|
|
344
|
-
{t("Date Filter")}
|
|
345
|
-
</TamaguiText>
|
|
335
|
+
<Text {...knobProps.label}>{t("Date Filter")}</Text>
|
|
346
336
|
{value && (
|
|
347
337
|
<Button size={knobProps.sizeToken} onPress={handleClear} icon={<XIcon size={iconPx} />}>
|
|
348
338
|
{t("Clear")}
|
|
@@ -353,9 +343,7 @@ export function DataTableDateFilter({
|
|
|
353
343
|
{/* Quick Presets */}
|
|
354
344
|
{showPresets && (
|
|
355
345
|
<YStack gap="$2">
|
|
356
|
-
<
|
|
357
|
-
{t("Quick Filters")}
|
|
358
|
-
</TamaguiText>
|
|
346
|
+
<Text {...knobProps.label}>{t("Quick Filters")}</Text>
|
|
359
347
|
<ScrollView maxHeight={presetListMaxHeight}>
|
|
360
348
|
<YStack gap={PRESET_ROW_GAP_TOKEN}>
|
|
361
349
|
{allPresets.map((preset) => (
|
|
@@ -380,9 +368,7 @@ export function DataTableDateFilter({
|
|
|
380
368
|
|
|
381
369
|
{/* Custom Date Selection */}
|
|
382
370
|
<YStack {...knobProps.gap}>
|
|
383
|
-
<
|
|
384
|
-
{t("Custom Date")}
|
|
385
|
-
</TamaguiText>
|
|
371
|
+
<Text {...knobProps.label}>{t("Custom Date")}</Text>
|
|
386
372
|
|
|
387
373
|
<XStack gap="$2">
|
|
388
374
|
<Button
|
|
@@ -408,9 +394,7 @@ export function DataTableDateFilter({
|
|
|
408
394
|
|
|
409
395
|
{/* Date Range */}
|
|
410
396
|
<YStack gap="$2">
|
|
411
|
-
<
|
|
412
|
-
{t("Date Range")}
|
|
413
|
-
</TamaguiText>
|
|
397
|
+
<Text {...knobProps.label}>{t("Date Range")}</Text>
|
|
414
398
|
<XStack gap="$2">
|
|
415
399
|
<Button
|
|
416
400
|
flex={1}
|
|
@@ -441,9 +425,7 @@ export function DataTableDateFilter({
|
|
|
441
425
|
|
|
442
426
|
{/* DatePicker-based Custom Range Selection */}
|
|
443
427
|
<YStack gap="$2">
|
|
444
|
-
<
|
|
445
|
-
{t("Custom Range")}
|
|
446
|
-
</TamaguiText>
|
|
428
|
+
<Text {...knobProps.label}>{t("Custom Range")}</Text>
|
|
447
429
|
<XStack gap="$2">
|
|
448
430
|
<View flex={1} data-testid="start-date-picker">
|
|
449
431
|
<DatePicker
|
|
@@ -9,7 +9,7 @@ import { downloadBlob } from "@multiplatform.one/platform";
|
|
|
9
9
|
import { formatCalendarDate, useResolvedKnobs } from "@multiplatform.one/theme";
|
|
10
10
|
import { useState } from "react";
|
|
11
11
|
import { Button, Checkbox, FloatingPanel, Input } from "@multiplatform.one/forms";
|
|
12
|
-
import { Separator,
|
|
12
|
+
import { Separator, XStack, YStack, isWeb } from "tamagui";
|
|
13
13
|
import { ScrollView, Text } from "@multiplatform.one/components";
|
|
14
14
|
import type { DataTableField } from "../../types";
|
|
15
15
|
import { iconSizeForToken } from "../../utils/chromeIcons";
|
|
@@ -315,15 +315,11 @@ function ExportOptionsPanel({
|
|
|
315
315
|
scrollable
|
|
316
316
|
>
|
|
317
317
|
<YStack gap="$4" minWidth={popoverMinWidth} data-dismiss-class="compose">
|
|
318
|
-
<
|
|
319
|
-
Export Options
|
|
320
|
-
</TamaguiText>
|
|
318
|
+
<Text {...knobProps.label}>Export Options</Text>
|
|
321
319
|
|
|
322
320
|
{/* Filename */}
|
|
323
321
|
<YStack gap="$2">
|
|
324
|
-
<
|
|
325
|
-
Filename
|
|
326
|
-
</TamaguiText>
|
|
322
|
+
<Text {...knobProps.label}>Filename</Text>
|
|
327
323
|
<Input
|
|
328
324
|
value={exportOptions.filename || ""}
|
|
329
325
|
onChangeText={(text) =>
|
|
@@ -350,9 +346,9 @@ function ExportOptionsPanel({
|
|
|
350
346
|
|
|
351
347
|
{/* Column Selection */}
|
|
352
348
|
<YStack gap="$2">
|
|
353
|
-
<
|
|
349
|
+
<Text {...knobProps.label}>
|
|
354
350
|
Select Columns ({selectedColumns.size} of {availableColumns.length})
|
|
355
|
-
</
|
|
351
|
+
</Text>
|
|
356
352
|
<ScrollView maxHeight={200}>
|
|
357
353
|
<YStack gap="$1">
|
|
358
354
|
{availableColumns.map((col) => (
|
|
@@ -383,9 +379,7 @@ function ExportOptionsPanel({
|
|
|
383
379
|
|
|
384
380
|
{/* Export Formats */}
|
|
385
381
|
<YStack gap="$2">
|
|
386
|
-
<
|
|
387
|
-
Export Formats
|
|
388
|
-
</TamaguiText>
|
|
382
|
+
<Text {...knobProps.label}>Export Formats</Text>
|
|
389
383
|
{exportFormats.map((format) => (
|
|
390
384
|
<Button
|
|
391
385
|
key={format.id}
|
|
@@ -397,9 +391,7 @@ function ExportOptionsPanel({
|
|
|
397
391
|
icon={format.icon}
|
|
398
392
|
>
|
|
399
393
|
<YStack gap="$1">
|
|
400
|
-
<
|
|
401
|
-
{format.label}
|
|
402
|
-
</TamaguiText>
|
|
394
|
+
<Text {...knobProps.label}>{format.label}</Text>
|
|
403
395
|
<Text fontSize="$2" color="$color10">
|
|
404
396
|
{format.description}
|
|
405
397
|
</Text>
|
|
@@ -22,12 +22,12 @@
|
|
|
22
22
|
*/
|
|
23
23
|
|
|
24
24
|
import { CaretDownIcon } from "@phosphor-icons/react";
|
|
25
|
-
import { DropdownMenu, type DropdownMenuPlacement } from "@multiplatform.one/components";
|
|
25
|
+
import { DropdownMenu, type DropdownMenuPlacement, Text } from "@multiplatform.one/components";
|
|
26
26
|
import { Button, Spinner } from "@multiplatform.one/forms";
|
|
27
27
|
import { useResolvedKnobs } from "@multiplatform.one/theme";
|
|
28
28
|
import type { ReactNode } from "react";
|
|
29
29
|
import { useCallback } from "react";
|
|
30
|
-
import {
|
|
30
|
+
import { XStack, withStaticProperties } from "tamagui";
|
|
31
31
|
import { t } from "../../shared/t";
|
|
32
32
|
import { iconSizeForToken } from "../../utils/chromeIcons";
|
|
33
33
|
|
|
@@ -158,13 +158,7 @@ function DataTableFacetMenuComponent({
|
|
|
158
158
|
/>
|
|
159
159
|
))}
|
|
160
160
|
{(options?.length ?? 0) === 0 && !loading && (
|
|
161
|
-
<Text
|
|
162
|
-
{...knobProps.label}
|
|
163
|
-
fontWeight="400"
|
|
164
|
-
color="$color10"
|
|
165
|
-
paddingHorizontal="$3"
|
|
166
|
-
paddingVertical="$2"
|
|
167
|
-
>
|
|
161
|
+
<Text {...knobProps.label} color="$color10" paddingHorizontal="$3" paddingVertical="$2">
|
|
168
162
|
{t("No options")}
|
|
169
163
|
</Text>
|
|
170
164
|
)}
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
*/
|
|
15
15
|
|
|
16
16
|
import { CaretLeftIcon, CaretRightIcon, FunnelIcon, type IconProps } from "@phosphor-icons/react";
|
|
17
|
-
import { useDirection, Text } from "@multiplatform.one/components";
|
|
17
|
+
import { useDirection, Text, SizableText } from "@multiplatform.one/components";
|
|
18
18
|
import {
|
|
19
19
|
Button,
|
|
20
20
|
FloatingPanel,
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
wasKeyboardFocus,
|
|
29
29
|
} from "@multiplatform.one/theme";
|
|
30
30
|
import { useCallback, useEffect, useMemo, useRef, useState } from "react";
|
|
31
|
-
import {
|
|
31
|
+
import { View, XStack, YStack } from "tamagui";
|
|
32
32
|
import { t } from "../../shared/t";
|
|
33
33
|
import type { FilterOperator, FilterValue, ResolvedFilterField } from "../../types";
|
|
34
34
|
import {
|
|
@@ -90,7 +90,6 @@ function GroupHeader({ children }: { children: string }) {
|
|
|
90
90
|
return (
|
|
91
91
|
<Text
|
|
92
92
|
fontSize="$1"
|
|
93
|
-
fontWeight="600"
|
|
94
93
|
color="$color10"
|
|
95
94
|
textTransform="uppercase"
|
|
96
95
|
letterSpacing={0.5}
|
|
@@ -228,7 +228,7 @@ function FilterBuilder({
|
|
|
228
228
|
|
|
229
229
|
return (
|
|
230
230
|
<YStack {...knobProps.panelPadding} gap="$3" minWidth={280} maxWidth={360}>
|
|
231
|
-
<Text fontSize="$3"
|
|
231
|
+
<Text fontSize="$3" color="$color12">
|
|
232
232
|
{editingFilter ? t("Edit filter") : t("Add filter")}
|
|
233
233
|
</Text>
|
|
234
234
|
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
} from "@multiplatform.one/theme";
|
|
27
27
|
import { useCallback, useMemo, useState } from "react";
|
|
28
28
|
import { Button, FloatingPanel, Select } from "@multiplatform.one/forms";
|
|
29
|
-
import { Separator,
|
|
29
|
+
import { Separator, View, XStack, YStack, isWeb } from "tamagui";
|
|
30
30
|
import { getViewLeafRows } from "../../utils/viewData";
|
|
31
31
|
import { iconSizeForToken } from "../../utils/chromeIcons";
|
|
32
32
|
import { useDataTableState } from "../DataTable/DataTableStateContext";
|
|
@@ -435,9 +435,9 @@ function GroupHeader<T = any>({
|
|
|
435
435
|
|
|
436
436
|
<XStack flex={1} alignItems="center" justifyContent="space-between" gap="$3" flexWrap="wrap">
|
|
437
437
|
<XStack alignItems="center" gap="$2" flexShrink={1} minWidth={0}>
|
|
438
|
-
<
|
|
438
|
+
<Text {...knobProps.label} numberOfLines={1}>
|
|
439
439
|
{label}
|
|
440
|
-
</
|
|
440
|
+
</Text>
|
|
441
441
|
<Text fontSize={metaSize} color="$color11">
|
|
442
442
|
({countLabel})
|
|
443
443
|
</Text>
|
|
@@ -450,9 +450,9 @@ function GroupHeader<T = any>({
|
|
|
450
450
|
<Text fontSize={metaSize} color="$color11">
|
|
451
451
|
{`${agg.label || `${agg.function}(${agg.column})`}:`}
|
|
452
452
|
</Text>
|
|
453
|
-
<
|
|
453
|
+
<Text {...knobProps.label}>
|
|
454
454
|
{formatAggregateValue(group.aggregations[agg.column]?.[agg.function], agg)}
|
|
455
|
-
</
|
|
455
|
+
</Text>
|
|
456
456
|
</XStack>
|
|
457
457
|
))}
|
|
458
458
|
</XStack>
|
|
@@ -652,9 +652,9 @@ export function DataTableGroupingConfig<T = any>(props: DataTableGroupingConfigP
|
|
|
652
652
|
minWidth={20}
|
|
653
653
|
alignItems="center"
|
|
654
654
|
>
|
|
655
|
-
<
|
|
655
|
+
<Text {...knobProps.label} color="$color12">
|
|
656
656
|
{currentConfig.columns.length + currentConfig.aggregations.length}
|
|
657
|
-
</
|
|
657
|
+
</Text>
|
|
658
658
|
</View>
|
|
659
659
|
)}
|
|
660
660
|
</XStack>
|
|
@@ -679,16 +679,12 @@ export function DataTableGroupingConfig<T = any>(props: DataTableGroupingConfigP
|
|
|
679
679
|
maxWidth={popoverMaxWidth}
|
|
680
680
|
data-dismiss-class="compose"
|
|
681
681
|
>
|
|
682
|
-
<
|
|
683
|
-
Grouping & Aggregation
|
|
684
|
-
</TamaguiText>
|
|
682
|
+
<Text {...knobProps.label}>Grouping & Aggregation</Text>
|
|
685
683
|
|
|
686
684
|
{/* Group By Section */}
|
|
687
685
|
<YStack gap="$3">
|
|
688
686
|
<XStack justifyContent="space-between" alignItems="center">
|
|
689
|
-
<
|
|
690
|
-
Group By
|
|
691
|
-
</TamaguiText>
|
|
687
|
+
<Text {...knobProps.label}>Group By</Text>
|
|
692
688
|
<Text fontSize="$2" color="$color10">
|
|
693
689
|
{currentConfig.columns.length} selected
|
|
694
690
|
</Text>
|
|
@@ -771,9 +767,7 @@ export function DataTableGroupingConfig<T = any>(props: DataTableGroupingConfigP
|
|
|
771
767
|
{/* Aggregation Section */}
|
|
772
768
|
<YStack gap="$3">
|
|
773
769
|
<XStack justifyContent="space-between" alignItems="center">
|
|
774
|
-
<
|
|
775
|
-
Aggregations
|
|
776
|
-
</TamaguiText>
|
|
770
|
+
<Text {...knobProps.label}>Aggregations</Text>
|
|
777
771
|
<Text fontSize="$2" color="$color10">
|
|
778
772
|
{currentConfig.aggregations.length} configured
|
|
779
773
|
</Text>
|
|
@@ -909,9 +903,7 @@ function AggregationSelector<T = any>({ columns, onAddAggregation }: Aggregation
|
|
|
909
903
|
|
|
910
904
|
return (
|
|
911
905
|
<YStack gap="$2">
|
|
912
|
-
<
|
|
913
|
-
Add Aggregation
|
|
914
|
-
</TamaguiText>
|
|
906
|
+
<Text {...knobProps.label}>Add Aggregation</Text>
|
|
915
907
|
|
|
916
908
|
<XStack gap="$2" alignItems="flex-end">
|
|
917
909
|
<View flex={1}>
|
|
@@ -8,12 +8,12 @@ import {
|
|
|
8
8
|
useResolvedKnobs,
|
|
9
9
|
sizeTokenStep,
|
|
10
10
|
} from "@multiplatform.one/theme";
|
|
11
|
-
import { Pagination, getPaginationItems } from "@multiplatform.one/components";
|
|
11
|
+
import { Pagination, getPaginationItems, Text } from "@multiplatform.one/components";
|
|
12
12
|
import { RowsIcon } from "@phosphor-icons/react";
|
|
13
13
|
import { useMemo, useState } from "react";
|
|
14
14
|
import type React from "react";
|
|
15
15
|
import { Input, Select } from "@multiplatform.one/forms";
|
|
16
|
-
import { type SizeTokens,
|
|
16
|
+
import { type SizeTokens, View, XStack, getTokenValue, useMedia, useTheme } from "tamagui";
|
|
17
17
|
import type { TablePagination, TablePaginationState } from "../../types";
|
|
18
18
|
import { DEFAULT_PAGE_SIZE, DEFAULT_PAGE_SIZE_OPTIONS } from "../../utils/paginationDefaults";
|
|
19
19
|
import { bidiIsolate } from "../../utils/withInterp";
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
SearchInput,
|
|
10
10
|
formCommonColors,
|
|
11
11
|
} from "@multiplatform.one/forms";
|
|
12
|
-
import { Separator,
|
|
12
|
+
import { Separator, View, XStack, YStack, isWeb } from "tamagui";
|
|
13
13
|
import { useDataTableState } from "../DataTable/DataTableStateContext";
|
|
14
14
|
import { t } from "../../shared/t";
|
|
15
15
|
import { bidiIsolate } from "../../utils/withInterp";
|
|
@@ -184,7 +184,7 @@ export function DataTableSearch<T = any>(props: DataTableSearchProps<T>) {
|
|
|
184
184
|
)}
|
|
185
185
|
|
|
186
186
|
{showStatus ? (
|
|
187
|
-
<
|
|
187
|
+
<Text
|
|
188
188
|
id={resultsId}
|
|
189
189
|
role="status"
|
|
190
190
|
aria-live="polite"
|
|
@@ -201,7 +201,7 @@ export function DataTableSearch<T = any>(props: DataTableSearchProps<T>) {
|
|
|
201
201
|
total: data.length,
|
|
202
202
|
}),
|
|
203
203
|
)}
|
|
204
|
-
</
|
|
204
|
+
</Text>
|
|
205
205
|
) : null}
|
|
206
206
|
</XStack>
|
|
207
207
|
);
|
|
@@ -274,14 +274,12 @@ function SearchOptionsPanel({
|
|
|
274
274
|
scrollable
|
|
275
275
|
>
|
|
276
276
|
<YStack {...knobProps.gapLg} minWidth={280} data-dismiss-class="compose">
|
|
277
|
-
<
|
|
277
|
+
<Text {...knobProps.heading} {...knobProps.label}>
|
|
278
278
|
{t("Search Options")}
|
|
279
|
-
</
|
|
279
|
+
</Text>
|
|
280
280
|
|
|
281
281
|
<YStack {...knobProps.gap}>
|
|
282
|
-
<
|
|
283
|
-
{t("Search Settings")}
|
|
284
|
-
</TamaguiText>
|
|
282
|
+
<Text {...knobProps.label}>{t("Search Settings")}</Text>
|
|
285
283
|
|
|
286
284
|
<Checkbox
|
|
287
285
|
size="$3"
|
|
@@ -316,17 +314,15 @@ function SearchOptionsPanel({
|
|
|
316
314
|
|
|
317
315
|
<YStack {...knobProps.gap}>
|
|
318
316
|
<XStack justifyContent="space-between" alignItems="center">
|
|
319
|
-
<
|
|
320
|
-
|
|
321
|
-
</TamaguiText>
|
|
322
|
-
<TamaguiText {...knobProps.label} color={formCommonColors.muted}>
|
|
317
|
+
<Text {...knobProps.label}>{t("Search Columns")}</Text>
|
|
318
|
+
<Text {...knobProps.label} color={formCommonColors.muted}>
|
|
323
319
|
{bidiIsolate(
|
|
324
320
|
t("{{selected}} of {{total}}", {
|
|
325
321
|
selected: selectedColumnCount,
|
|
326
322
|
total: totalColumnCount,
|
|
327
323
|
}),
|
|
328
324
|
)}
|
|
329
|
-
</
|
|
325
|
+
</Text>
|
|
330
326
|
</XStack>
|
|
331
327
|
|
|
332
328
|
<XStack {...knobProps.gap}>
|