tcce-design-system 0.1.32 → 0.1.33
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.
|
@@ -1754,18 +1754,20 @@ export declare const Table: {
|
|
|
1754
1754
|
displayName: string;
|
|
1755
1755
|
};
|
|
1756
1756
|
|
|
1757
|
-
export declare const TableBody: <T extends Record<string, unknown>>({ rows, className, rowClassName, }: TableBodyProps<T>) => JSX.Element;
|
|
1757
|
+
export declare const TableBody: <T extends Record<string, unknown>>({ rows, className, rowClassName, cellClassName, }: TableBodyProps<T>) => JSX.Element;
|
|
1758
1758
|
|
|
1759
1759
|
declare interface TableBodyProps<T extends Record<string, unknown>> {
|
|
1760
1760
|
rows: Row<T>[];
|
|
1761
1761
|
className?: string;
|
|
1762
1762
|
rowClassName?: string | ((row: Row<T>) => string);
|
|
1763
|
+
cellClassName?: string | ((row: Row<T>) => string);
|
|
1763
1764
|
}
|
|
1764
1765
|
|
|
1765
|
-
export declare const TableCell: <T extends Record<string, unknown>>({ cell }: TableCellProps<T>) => JSX.Element;
|
|
1766
|
+
export declare const TableCell: <T extends Record<string, unknown>>({ cell, rowClassName, }: TableCellProps<T>) => JSX.Element;
|
|
1766
1767
|
|
|
1767
1768
|
declare interface TableCellProps<T extends Record<string, unknown>> {
|
|
1768
1769
|
cell: Cell<T, unknown>;
|
|
1770
|
+
rowClassName?: string;
|
|
1769
1771
|
}
|
|
1770
1772
|
|
|
1771
1773
|
export declare type TableCellSize = 'sm' | 'md' | 'lg';
|
|
@@ -1776,6 +1778,7 @@ export declare interface TableClassNames<T> {
|
|
|
1776
1778
|
header?: string;
|
|
1777
1779
|
body?: string;
|
|
1778
1780
|
row?: string | ((row: Row<T>) => string);
|
|
1781
|
+
cell?: string | ((row: Row<T>) => string);
|
|
1779
1782
|
}
|
|
1780
1783
|
|
|
1781
1784
|
/**
|
|
@@ -1919,11 +1922,14 @@ export declare interface TableProps<T = unknown> {
|
|
|
1919
1922
|
getUniqueValues?: (columnId: string) => string[];
|
|
1920
1923
|
}
|
|
1921
1924
|
|
|
1922
|
-
export declare const TableRow:
|
|
1925
|
+
export declare const TableRow: typeof TableRowComponent;
|
|
1926
|
+
|
|
1927
|
+
declare function TableRowComponent<T extends Record<string, unknown>>({ row, className, cellClassName, }: TableRowProps<T>): JSX.Element;
|
|
1923
1928
|
|
|
1924
1929
|
declare interface TableRowProps<T extends Record<string, unknown>> {
|
|
1925
1930
|
row: Row<T>;
|
|
1926
1931
|
className?: string;
|
|
1932
|
+
cellClassName?: string;
|
|
1927
1933
|
}
|
|
1928
1934
|
|
|
1929
1935
|
export declare type TableVariant = 'default' | 'striped';
|