gantri-components 3.0.0-beta.17 → 3.0.0-beta.19

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.
@@ -1 +1 @@
1
- export * from './useDetectHorizontalScroll';
1
+ export * from './use-detect-scroll';
@@ -0,0 +1,4 @@
1
+ import { UseDetectScrollProps } from './use-detect-scroll.types';
2
+ export declare const useDetectScroll: (props: UseDetectScrollProps) => {
3
+ isScrolling: boolean;
4
+ };
@@ -0,0 +1,9 @@
1
+ export interface UseDetectScrollProps {
2
+ /** Time after scrolling has stopped before acting on it. */
3
+ delay?: number;
4
+ direction: 'horizontal' | 'vertical';
5
+ element: HTMLElement | null;
6
+ enabled?: boolean;
7
+ onEndScrolling?: () => void;
8
+ onStartScrolling?: () => void;
9
+ }
@@ -1,2 +1 @@
1
- export * from './useMoveRow';
2
- export * from './useTrackStickyCells';
1
+ export * from './use-track-sticky-cells';
@@ -0,0 +1,2 @@
1
+ export declare const getScrollbarWidth: () => number;
2
+ export declare const getInt: (number: number | undefined) => number;
@@ -4,7 +4,8 @@ export interface UseTrackStickyCellsProps<TData extends RowData> {
4
4
  customColumns: CustomColumnsProps<TData> | undefined;
5
5
  numRows: number;
6
6
  /** The containing element that the child will intersect with. */
7
- root: Element | null;
7
+ root: HTMLElement | null;
8
8
  stickyFirstColumn: boolean | undefined;
9
+ stickyFooter: boolean | undefined;
9
10
  stickyLastColumn: boolean | undefined;
10
11
  }
@@ -39,11 +39,11 @@ export interface TableProps<TData extends RowData> extends Partial<TableDefaultP
39
39
  reordering?: ReorderingProps<TData>;
40
40
  search?: SearchProps;
41
41
  sorting?: SortProps;
42
- stickyFooter?: boolean;
43
- stickyLastColumn?: boolean;
44
42
  }
45
43
  export interface TableDefaultProps {
46
44
  stickyFirstColumn: boolean;
45
+ stickyFooter: boolean;
46
+ stickyLastColumn: boolean;
47
47
  }
48
48
  export type GetHeaderCellProps<TData extends RowData, TValue = unknown> = (cell?: Header<TData, TValue>) => CustomCellProps;
49
49
  /** Include `status` in the returned object to set the row status color. */