@multiplatform.one/table 7.84.1 → 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 +12 -12
- 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
|
@@ -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}>
|
|
@@ -14,15 +14,7 @@ import {
|
|
|
14
14
|
import React, { useState } from "react";
|
|
15
15
|
import { Button, FloatingPanel, IconButton, Input, Slider, Switch } from "@multiplatform.one/forms";
|
|
16
16
|
import { DropdownMenu, ScrollView, Text, ActionButton } from "@multiplatform.one/components";
|
|
17
|
-
import {
|
|
18
|
-
Separator,
|
|
19
|
-
Text as TamaguiText,
|
|
20
|
-
View,
|
|
21
|
-
XStack,
|
|
22
|
-
YStack,
|
|
23
|
-
useTheme,
|
|
24
|
-
type SizeTokens,
|
|
25
|
-
} from "tamagui";
|
|
17
|
+
import { Separator, View, XStack, YStack, useTheme, type SizeTokens } from "tamagui";
|
|
26
18
|
import type { TableView } from "../../types";
|
|
27
19
|
import { t } from "../../shared/t";
|
|
28
20
|
import { iconSizeForToken } from "../../utils/chromeIcons";
|
|
@@ -184,9 +176,7 @@ export function DataTableViewOptions(props: DataTableViewOptionsProps) {
|
|
|
184
176
|
<XStack alignItems="center" justifyContent="space-between">
|
|
185
177
|
<XStack alignItems="center" gap="$2">
|
|
186
178
|
<GearIcon size={iconPx} />
|
|
187
|
-
<
|
|
188
|
-
{t("View Options")}
|
|
189
|
-
</TamaguiText>
|
|
179
|
+
<Text {...knobProps.label}>{t("View Options")}</Text>
|
|
190
180
|
</XStack>
|
|
191
181
|
|
|
192
182
|
<Button
|
|
@@ -280,16 +270,14 @@ function ColumnVisibilitySection({
|
|
|
280
270
|
const mutedIconColor = theme.color10?.get();
|
|
281
271
|
return (
|
|
282
272
|
<YStack {...knobProps.gap}>
|
|
283
|
-
<
|
|
284
|
-
{t("Column Visibility")}
|
|
285
|
-
</TamaguiText>
|
|
273
|
+
<Text {...knobProps.label}>{t("Column Visibility")}</Text>
|
|
286
274
|
|
|
287
275
|
{/* Visible Columns */}
|
|
288
276
|
{visibleColumns.length > 0 && (
|
|
289
277
|
<YStack gap="$2">
|
|
290
|
-
<
|
|
278
|
+
<Text {...knobProps.label} color="$color10">
|
|
291
279
|
{t("Visible Columns")}
|
|
292
|
-
</
|
|
280
|
+
</Text>
|
|
293
281
|
<YStack gap="$1">
|
|
294
282
|
{visibleColumns.map((column) => (
|
|
295
283
|
<XStack key={column.id} alignItems="center" justifyContent="space-between">
|
|
@@ -315,9 +303,9 @@ function ColumnVisibilitySection({
|
|
|
315
303
|
{/* Hidden Columns */}
|
|
316
304
|
{hiddenColumns.length > 0 && (
|
|
317
305
|
<YStack gap="$2">
|
|
318
|
-
<
|
|
306
|
+
<Text {...knobProps.label} color="$color10">
|
|
319
307
|
{t("Hidden Columns")}
|
|
320
|
-
</
|
|
308
|
+
</Text>
|
|
321
309
|
<YStack gap="$1">
|
|
322
310
|
{hiddenColumns.map((column) => (
|
|
323
311
|
<XStack key={column.id} alignItems="center" justifyContent="space-between">
|
|
@@ -364,16 +352,12 @@ function ColumnResizingSection({
|
|
|
364
352
|
const { knobProps } = useResolvedKnobs();
|
|
365
353
|
return (
|
|
366
354
|
<YStack gap="$3">
|
|
367
|
-
<
|
|
368
|
-
{t("Column Widths")}
|
|
369
|
-
</TamaguiText>
|
|
355
|
+
<Text {...knobProps.label}>{t("Column Widths")}</Text>
|
|
370
356
|
|
|
371
357
|
<YStack gap="$3">
|
|
372
358
|
{columns.map((column) => (
|
|
373
359
|
<YStack key={column.id} gap="$2">
|
|
374
|
-
<
|
|
375
|
-
{column.label}
|
|
376
|
-
</TamaguiText>
|
|
360
|
+
<Text {...knobProps.label}>{column.label}</Text>
|
|
377
361
|
<XStack alignItems="center" gap="$3">
|
|
378
362
|
<View flex={1}>
|
|
379
363
|
<Slider
|
|
@@ -425,9 +409,7 @@ function ViewManagementSection({
|
|
|
425
409
|
|
|
426
410
|
return (
|
|
427
411
|
<YStack gap="$3">
|
|
428
|
-
<
|
|
429
|
-
{t("Saved Views")}
|
|
430
|
-
</TamaguiText>
|
|
412
|
+
<Text {...knobProps.label}>{t("Saved Views")}</Text>
|
|
431
413
|
|
|
432
414
|
{/* Save Current View */}
|
|
433
415
|
<FloatingPanel
|
|
@@ -436,9 +418,7 @@ function ViewManagementSection({
|
|
|
436
418
|
trigger={<IconButton icon={FloppyDiskIcon} aria-label={t("Save Current View")} />}
|
|
437
419
|
>
|
|
438
420
|
<YStack gap="$3" minWidth={250} data-dismiss-class="compose">
|
|
439
|
-
<
|
|
440
|
-
{t("Save View")}
|
|
441
|
-
</TamaguiText>
|
|
421
|
+
<Text {...knobProps.label}>{t("Save View")}</Text>
|
|
442
422
|
<Input
|
|
443
423
|
placeholder={t("Enter view name...")}
|
|
444
424
|
value={viewName}
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* No filtering, sorting, pagination, or table state — just render data.
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
|
-
import { EmptyState } from "@multiplatform.one/components";
|
|
12
|
+
import { EmptyState, Text } from "@multiplatform.one/components";
|
|
13
13
|
import {
|
|
14
14
|
ensureFocusVisibleRing,
|
|
15
15
|
useResolvedKnobs,
|
|
@@ -21,7 +21,7 @@ import { useCallback, useState, type ReactNode } from "react";
|
|
|
21
21
|
import type { LayoutChangeEvent } from "react-native";
|
|
22
22
|
import { useTranslation } from "react-i18next";
|
|
23
23
|
import type { FontSizeTokens, ViewProps } from "tamagui";
|
|
24
|
-
import {
|
|
24
|
+
import { View, getTokenValue, isWeb, useMedia } from "tamagui";
|
|
25
25
|
import { resolveSimpleTableColumns, type SimpleTableColumn } from "./columnSizing";
|
|
26
26
|
import { PinnedCell, ScrollFrame } from "./ScrollFrame";
|
|
27
27
|
export type { SimpleTableColumn, SimpleTableSizeToken } from "./columnSizing";
|
|
@@ -9,14 +9,14 @@ import { FloatingPanel } from "@multiplatform.one/forms";
|
|
|
9
9
|
import { useResolvedKnobs } from "@multiplatform.one/theme";
|
|
10
10
|
import { PencilSimpleIcon } from "@phosphor-icons/react";
|
|
11
11
|
import { useCallback, useRef, useState } from "react";
|
|
12
|
-
import {
|
|
12
|
+
import { View, XStack, YStack } from "tamagui";
|
|
13
13
|
import type { DataTableData, DataTableField, DataTableFieldProps } from "../../types";
|
|
14
14
|
import { t } from "../../shared/t";
|
|
15
15
|
import { withInterp } from "../../utils/withInterp";
|
|
16
16
|
import { DataTableCell } from "../DataTableCell";
|
|
17
17
|
import type { RowDetailEditorProps } from "./RowDetailEditor";
|
|
18
18
|
import { changedColumns, columnKey } from "./shared";
|
|
19
|
-
import { ActionButton } from "@multiplatform.one/components";
|
|
19
|
+
import { ActionButton, Text } from "@multiplatform.one/components";
|
|
20
20
|
|
|
21
21
|
export type { RowDetailEditorProps } from "./RowDetailEditor";
|
|
22
22
|
|
|
@@ -18,13 +18,14 @@ import {
|
|
|
18
18
|
DialogOverlay,
|
|
19
19
|
ScrollView,
|
|
20
20
|
ActionButton,
|
|
21
|
+
Text,
|
|
21
22
|
} from "@multiplatform.one/components";
|
|
22
23
|
import { Button } from "@multiplatform.one/forms";
|
|
23
24
|
import { TableCellContext } from "@multiplatform.one/table-primitives";
|
|
24
25
|
import { useResolvedKnobs } from "@multiplatform.one/theme";
|
|
25
26
|
import { PencilSimpleIcon } from "@phosphor-icons/react";
|
|
26
27
|
import { useCallback, useRef, useState } from "react";
|
|
27
|
-
import { Dialog,
|
|
28
|
+
import { Dialog, XStack, YStack } from "tamagui";
|
|
28
29
|
import type {
|
|
29
30
|
DataTableColumn,
|
|
30
31
|
DataTableData,
|