asma-ui-table 1.0.138 → 1.0.140

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,12 +1,11 @@
1
+ /// <reference types="react" />
1
2
  import type { Table } from '@tanstack/react-table';
2
3
  import type { StyledTableProps } from '../types';
3
- import type { MutableRefObject } from 'react';
4
4
  import type { ColumnWindow } from 'src/hooks/useColumnVirtualizer';
5
5
  export declare function TableBody<TData extends {
6
6
  id: string | number;
7
- }, TCustomData = Record<string, unknown>>({ table, styledTableProps, scrollRef, columnWindow, }: {
7
+ }, TCustomData = Record<string, unknown>>({ table, styledTableProps, columnWindow, }: {
8
8
  table: Table<TData>;
9
9
  styledTableProps: StyledTableProps<TData, TCustomData>;
10
- scrollRef?: MutableRefObject<HTMLDivElement | null>;
11
10
  columnWindow: ColumnWindow;
12
11
  }): JSX.Element | null;
@@ -1,12 +1,11 @@
1
+ /// <reference types="react" />
1
2
  import type { Table } from '@tanstack/react-table';
2
3
  import type { StyledTableProps } from '../types';
3
- import type { MutableRefObject } from 'react';
4
4
  import type { ColumnWindow } from 'src/hooks/useColumnVirtualizer';
5
5
  export declare function TableRows<TData extends {
6
6
  id: string | number;
7
- }, TCustomData = Record<string, unknown>>({ styledTableProps, table, scrollRef, columnWindow, }: {
7
+ }, TCustomData = Record<string, unknown>>({ styledTableProps, table, columnWindow, }: {
8
8
  styledTableProps: StyledTableProps<TData, TCustomData>;
9
9
  table: Table<TData>;
10
- scrollRef?: MutableRefObject<HTMLDivElement | null>;
11
10
  columnWindow: ColumnWindow;
12
11
  }): JSX.Element;
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.0.138",
6
+ "version": "1.0.140",
7
7
  "type": "module",
8
8
  "files": [
9
9
  "dist/**/*",
@@ -1,20 +0,0 @@
1
- import type { Row } from '@tanstack/react-table';
2
- import type { MutableRefObject } from 'react';
3
- export type RowWindow = {
4
- indexes: number[];
5
- paddingTop: number;
6
- paddingBottom: number;
7
- };
8
- export declare function useRowVirtualizer<TData extends {
9
- id: string | number;
10
- }>({ rows, rowHeight, scrollRef, }: {
11
- rows: Row<TData>[];
12
- rowHeight: number;
13
- scrollRef?: MutableRefObject<HTMLDivElement | null>;
14
- }): {
15
- rowWindow: {
16
- indexes: number[];
17
- paddingTop: number;
18
- paddingBottom: number;
19
- };
20
- };