react-glide-table 1.4.1 → 1.7.0
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/README.md +32 -2
- package/dist/compound.cjs +1222 -119
- package/dist/compound.d.cts +11 -3
- package/dist/compound.d.ts +11 -3
- package/dist/compound.js +1224 -114
- package/dist/core.cjs +874 -48
- package/dist/core.d.cts +73 -6
- package/dist/core.d.ts +73 -6
- package/dist/core.js +868 -52
- package/dist/index.cjs +1270 -133
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1252 -125
- package/dist/{types-CHQnBz91.d.cts → types-Cs9MiZs1.d.cts} +104 -1
- package/dist/{types-CHQnBz91.d.ts → types-Cs9MiZs1.d.ts} +104 -1
- package/package.json +1 -1
package/dist/compound.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { ReactNode, ReactElement } from 'react';
|
|
3
|
-
import { h as DataTableProps,
|
|
4
|
-
export { b as ColumnFreezeMeta, d as ColumnFreezeSide, e as DataTableClassNames, g as DataTableLabels, i as DataTableScrollSlotProps, j as DataTableSlots, P as PasteMode, R as RowSelectionMode, k as RowsPastePayload } from './types-
|
|
3
|
+
import { h as DataTableProps, n as TableColumnProps, T as TableColumnGroupProps, o as TableProps } from './types-Cs9MiZs1.cjs';
|
|
4
|
+
export { b as ColumnFreezeMeta, d as ColumnFreezeSide, e as DataTableClassNames, g as DataTableLabels, i as DataTableScrollSlotProps, j as DataTableSlots, P as PasteMode, R as RowSelectionMode, k as RowsPastePayload, l as SearchResultItem } from './types-Cs9MiZs1.cjs';
|
|
5
5
|
export { ColumnDef, ColumnResizeMode, ColumnSizingState, RowSelectionState } from '@tanstack/react-table';
|
|
6
6
|
|
|
7
7
|
/**
|
|
@@ -25,6 +25,12 @@ declare namespace TableColumn {
|
|
|
25
25
|
var displayName: string;
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
+
/** Used only inside Table.Header. Groups leaf columns under a multi-row header; does not render DOM. */
|
|
29
|
+
declare function TableColumnGroup(props: TableColumnGroupProps): null;
|
|
30
|
+
declare namespace TableColumnGroup {
|
|
31
|
+
var displayName: string;
|
|
32
|
+
}
|
|
33
|
+
|
|
28
34
|
type TableHeaderProps = {
|
|
29
35
|
children: ReactNode;
|
|
30
36
|
};
|
|
@@ -49,6 +55,7 @@ declare namespace TablePagination {
|
|
|
49
55
|
type TableCompoundComponent<T extends Record<string, unknown>> = ((props: TableProps<T>) => ReactElement) & {
|
|
50
56
|
Header: typeof TableHeader;
|
|
51
57
|
Column: <K extends string>(props: TableColumnProps<T, K>) => null;
|
|
58
|
+
ColumnGroup: (props: TableColumnGroupProps) => null;
|
|
52
59
|
Body: typeof TableBody;
|
|
53
60
|
Pagination: typeof TablePagination;
|
|
54
61
|
};
|
|
@@ -57,8 +64,9 @@ declare function createTable<T extends Record<string, unknown>>(): TableCompound
|
|
|
57
64
|
declare const Table: typeof TableRoot & {
|
|
58
65
|
Header: typeof TableHeader;
|
|
59
66
|
Column: typeof TableColumn;
|
|
67
|
+
ColumnGroup: typeof TableColumnGroup;
|
|
60
68
|
Body: typeof TableBody;
|
|
61
69
|
Pagination: typeof TablePagination;
|
|
62
70
|
};
|
|
63
71
|
|
|
64
|
-
export { DataTable, DataTableProps, Table, TableColumnProps, type TableCompoundComponent, TableProps, createTable };
|
|
72
|
+
export { DataTable, DataTableProps, Table, TableColumnGroupProps, TableColumnProps, type TableCompoundComponent, TableProps, createTable };
|
package/dist/compound.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { ReactNode, ReactElement } from 'react';
|
|
3
|
-
import { h as DataTableProps,
|
|
4
|
-
export { b as ColumnFreezeMeta, d as ColumnFreezeSide, e as DataTableClassNames, g as DataTableLabels, i as DataTableScrollSlotProps, j as DataTableSlots, P as PasteMode, R as RowSelectionMode, k as RowsPastePayload } from './types-
|
|
3
|
+
import { h as DataTableProps, n as TableColumnProps, T as TableColumnGroupProps, o as TableProps } from './types-Cs9MiZs1.js';
|
|
4
|
+
export { b as ColumnFreezeMeta, d as ColumnFreezeSide, e as DataTableClassNames, g as DataTableLabels, i as DataTableScrollSlotProps, j as DataTableSlots, P as PasteMode, R as RowSelectionMode, k as RowsPastePayload, l as SearchResultItem } from './types-Cs9MiZs1.js';
|
|
5
5
|
export { ColumnDef, ColumnResizeMode, ColumnSizingState, RowSelectionState } from '@tanstack/react-table';
|
|
6
6
|
|
|
7
7
|
/**
|
|
@@ -25,6 +25,12 @@ declare namespace TableColumn {
|
|
|
25
25
|
var displayName: string;
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
+
/** Used only inside Table.Header. Groups leaf columns under a multi-row header; does not render DOM. */
|
|
29
|
+
declare function TableColumnGroup(props: TableColumnGroupProps): null;
|
|
30
|
+
declare namespace TableColumnGroup {
|
|
31
|
+
var displayName: string;
|
|
32
|
+
}
|
|
33
|
+
|
|
28
34
|
type TableHeaderProps = {
|
|
29
35
|
children: ReactNode;
|
|
30
36
|
};
|
|
@@ -49,6 +55,7 @@ declare namespace TablePagination {
|
|
|
49
55
|
type TableCompoundComponent<T extends Record<string, unknown>> = ((props: TableProps<T>) => ReactElement) & {
|
|
50
56
|
Header: typeof TableHeader;
|
|
51
57
|
Column: <K extends string>(props: TableColumnProps<T, K>) => null;
|
|
58
|
+
ColumnGroup: (props: TableColumnGroupProps) => null;
|
|
52
59
|
Body: typeof TableBody;
|
|
53
60
|
Pagination: typeof TablePagination;
|
|
54
61
|
};
|
|
@@ -57,8 +64,9 @@ declare function createTable<T extends Record<string, unknown>>(): TableCompound
|
|
|
57
64
|
declare const Table: typeof TableRoot & {
|
|
58
65
|
Header: typeof TableHeader;
|
|
59
66
|
Column: typeof TableColumn;
|
|
67
|
+
ColumnGroup: typeof TableColumnGroup;
|
|
60
68
|
Body: typeof TableBody;
|
|
61
69
|
Pagination: typeof TablePagination;
|
|
62
70
|
};
|
|
63
71
|
|
|
64
|
-
export { DataTable, DataTableProps, Table, TableColumnProps, type TableCompoundComponent, TableProps, createTable };
|
|
72
|
+
export { DataTable, DataTableProps, Table, TableColumnGroupProps, TableColumnProps, type TableCompoundComponent, TableProps, createTable };
|