@tetrascience-npm/tetrascience-react-ui 0.5.0-beta.42.1 → 0.5.0-beta.43.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/dist/index.d.ts CHANGED
@@ -1096,7 +1096,7 @@ export declare interface DataAppShellProps {
1096
1096
  className?: string;
1097
1097
  }
1098
1098
 
1099
- export declare function DataTable<TData, TValue>({ columns, data, toolbar, enableSorting, enableColumnVisibility, children, columnOrder: controlledColumnOrder, onColumnOrderChange, columnVisibility: controlledColumnVisibility, onColumnVisibilityChange, columnLabels: controlledColumnLabels, onColumnLabelChange, enablePagination, defaultPageSize, pagination: controlledPagination, onPaginationChange, enableColumnReorder, enableFiltering, filters: controlledFilters, onFiltersChange, filterConfig, manualFiltering, density, className, variant, containerClassName, }: DataTableProps<TData, TValue>): JSX.Element;
1099
+ export declare function DataTable<TData, TValue>({ columns, data, toolbar, enableSorting, enableColumnVisibility, children, columnOrder: controlledColumnOrder, onColumnOrderChange, columnVisibility: controlledColumnVisibility, onColumnVisibilityChange, columnLabels: controlledColumnLabels, onColumnLabelChange, enablePagination, defaultPageSize, pagination: controlledPagination, onPaginationChange, enableColumnReorder, enableFiltering, filters: controlledFilters, onFiltersChange, filterConfig, manualFiltering, density, className, variant, containerClassName, truncate, }: DataTableProps<TData, TValue>): JSX.Element;
1100
1100
 
1101
1101
  export declare function DataTableColumnToggle({ className }: DataTableColumnToggleProps): JSX.Element | null;
1102
1102
 
@@ -1152,6 +1152,7 @@ export declare interface DataTableProps<TData, TValue> {
1152
1152
  variant?: React_2.ComponentProps<typeof Table>["variant"];
1153
1153
  /** className passed to the base Table's container div */
1154
1154
  containerClassName?: React_2.ComponentProps<typeof Table>["containerClassName"];
1155
+ truncate?: boolean;
1155
1156
  }
1156
1157
 
1157
1158
  export declare function Dialog({ ...props }: React_2.ComponentProps<typeof Dialog_2.Root>): JSX.Element;
@@ -2755,17 +2756,19 @@ export declare function Switch({ className, size, ...props }: React_2.ComponentP
2755
2756
  size?: "sm" | "default";
2756
2757
  }): JSX.Element;
2757
2758
 
2758
- export declare function Table({ className, containerClassName, variant, ...props }: React_2.ComponentProps<"table"> & {
2759
+ export declare function Table({ className, containerClassName, variant, layout, ...props }: React_2.ComponentProps<"table"> & {
2759
2760
  containerClassName?: string;
2760
2761
  variant?: "default" | "card";
2762
+ layout?: "auto" | "fixed";
2761
2763
  }): JSX.Element;
2762
2764
 
2763
2765
  export declare function TableBody({ className, ...props }: React_2.ComponentProps<"tbody">): JSX.Element;
2764
2766
 
2765
2767
  export declare function TableCaption({ className, ...props }: React_2.ComponentProps<"caption">): JSX.Element;
2766
2768
 
2767
- export declare function TableCell({ className, variant, ...props }: React_2.ComponentProps<"td"> & {
2769
+ export declare function TableCell({ className, variant, truncate, ...props }: React_2.ComponentProps<"td"> & {
2768
2770
  variant?: "default" | "numeric" | "action";
2771
+ truncate?: boolean;
2769
2772
  }): JSX.Element;
2770
2773
 
2771
2774
  declare interface TableContextValue<TData> {
@@ -2780,8 +2783,9 @@ declare interface TableContextValue<TData> {
2780
2783
 
2781
2784
  export declare function TableFooter({ className, ...props }: React_2.ComponentProps<"tfoot">): JSX.Element;
2782
2785
 
2783
- export declare function TableHead({ className, variant, ...props }: React_2.ComponentProps<"th"> & {
2786
+ export declare function TableHead({ className, variant, truncate, ...props }: React_2.ComponentProps<"th"> & {
2784
2787
  variant?: "default" | "numeric" | "action";
2788
+ truncate?: boolean;
2785
2789
  }): JSX.Element;
2786
2790
 
2787
2791
  export declare function TableHeader({ className, variant, ...props }: React_2.ComponentProps<"thead"> & {
@@ -3286,3 +3290,10 @@ export declare interface WellData {
3286
3290
  }
3287
3291
 
3288
3292
  export { }
3293
+
3294
+
3295
+ declare module "@tanstack/react-table" {
3296
+ interface ColumnMeta<TData extends RowData, TValue> {
3297
+ truncate?: boolean;
3298
+ }
3299
+ }