gantri-components 2.43.0-beta.3 → 2.43.0-beta.4

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.
@@ -0,0 +1,8 @@
1
+ import { RowData } from '@tanstack/react-table';
2
+ import { CellReorderWrapperProps } from './cell-reorder-wrapper.types';
3
+ /** When reordering is provided, wraps the first column in the provided props. */
4
+ export declare const CellReorderWrapper: <TData extends RowData<{
5
+ [key: string]: unknown;
6
+ id?: string | number | undefined;
7
+ subRows?: any[] | undefined;
8
+ }>>(props: CellReorderWrapperProps<TData>) => JSX.Element;
@@ -0,0 +1,10 @@
1
+ import { PropsWithChildren, ReactNode } from 'react';
2
+ import { RowData } from '@tanstack/react-table';
3
+ import { ReorderingProps } from '../../table.types';
4
+ export type CellReorderWrapperProps<TData extends RowData> = PropsWithChildren<{
5
+ FirstColumnContent: JSX.Element | ReactNode;
6
+ /** Rendered when `reordering` is provided, but `reordering.isAvailable === false`. */
7
+ FirstColumnFallback: JSX.Element | ReactNode;
8
+ index: number;
9
+ reordering: ReorderingProps<TData> | undefined;
10
+ }>;
@@ -0,0 +1 @@
1
+ export * from './cell-reorder-wrapper';
@@ -1,3 +1,4 @@
1
+ export * from './cell-reorder-wrapper';
1
2
  export * from './custom-columns-wrapper';
2
3
  export * from './table-draggable-row';
3
4
  export * from './table-actions-wrapper';