react-glide-table 2.3.5 → 2.3.6
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 +80 -4
- package/dist/compound.cjs +1246 -357
- package/dist/compound.d.cts +13 -4
- package/dist/compound.d.ts +13 -4
- package/dist/compound.js +1262 -369
- package/dist/core.cjs +1628 -999
- package/dist/core.d.cts +100 -15
- package/dist/core.d.ts +100 -15
- package/dist/core.js +1649 -1021
- package/dist/index.cjs +2060 -1170
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2074 -1181
- package/dist/{types-hf2ruVdu.d.cts → types-CecIIMV1.d.cts} +101 -6
- package/dist/{types-hf2ruVdu.d.ts → types-CecIIMV1.d.ts} +101 -6
- 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 {
|
|
4
|
-
export { B as BuiltinCellKind, C as CellKind, a as CellRenderContext, b as CellRenderFn, c as CellRenderer, d as ColumnCopyValue, g as ColumnFreezeMeta, i as ColumnFreezeSide, j as DataTableClassNames,
|
|
3
|
+
import { n as DataTableProps, t as TableColumnProps, T as TableColumnGroupProps, u as TableProps } from './types-CecIIMV1.cjs';
|
|
4
|
+
export { B as BuiltinCellKind, C as CellKind, a as CellRenderContext, b as CellRenderFn, c as CellRenderer, d as ColumnCopyValue, g as ColumnFreezeMeta, i as ColumnFreezeSide, j as ColumnSearchValue, k as DataTableClassNames, m as DataTableLabels, o as DataTableScrollSlotProps, p as DataTableSlots, P as PasteMode, R as RowSelectionMode, q as RowsPastePayload, r as SearchResultItem, Y as TableSort } from './types-CecIIMV1.cjs';
|
|
5
5
|
export { ColumnDef, ColumnOrderState, ColumnResizeMode, ColumnSizingState, RowSelectionState } from '@tanstack/react-table';
|
|
6
6
|
|
|
7
7
|
/**
|
|
@@ -46,8 +46,17 @@ type TablePaginationProps = {
|
|
|
46
46
|
totalCount?: number;
|
|
47
47
|
onChange: (page: number) => void;
|
|
48
48
|
className?: string;
|
|
49
|
+
/**
|
|
50
|
+
* The table's `data` already is this page (server-side pagination): it is
|
|
51
|
+
* shown as-is instead of being sliced again.
|
|
52
|
+
*/
|
|
53
|
+
manual?: boolean;
|
|
54
|
+
/** Accessible label of the previous-page button. */
|
|
55
|
+
previousLabel?: string;
|
|
56
|
+
/** Accessible label of the next-page button. */
|
|
57
|
+
nextLabel?: string;
|
|
49
58
|
};
|
|
50
|
-
declare function TablePagination({ page, pageSize, totalCount, onChange, className, }: TablePaginationProps): react.JSX.Element;
|
|
59
|
+
declare function TablePagination({ page, pageSize, totalCount, onChange, className, previousLabel, nextLabel, }: TablePaginationProps): react.JSX.Element;
|
|
51
60
|
declare namespace TablePagination {
|
|
52
61
|
var displayName: string;
|
|
53
62
|
}
|
|
@@ -59,7 +68,7 @@ type TableCompoundComponent<T extends Record<string, unknown>> = ((props: TableP
|
|
|
59
68
|
Body: typeof TableBody;
|
|
60
69
|
Pagination: typeof TablePagination;
|
|
61
70
|
};
|
|
62
|
-
declare function TableRoot<T extends Record<string, unknown>>({ data, children, className, totalCount, filteredCount, ...dataTableProps }: TableProps<T>): react.JSX.Element;
|
|
71
|
+
declare function TableRoot<T extends Record<string, unknown>>({ data, children, className, classNames, totalCount, filteredCount, onDataChange, getRowId, sort: controlledSort, defaultSort, onSortChange, sortLocale, ...dataTableProps }: TableProps<T>): react.JSX.Element;
|
|
63
72
|
declare function createTable<T extends Record<string, unknown>>(): TableCompoundComponent<T>;
|
|
64
73
|
declare const Table: typeof TableRoot & {
|
|
65
74
|
Header: typeof TableHeader;
|
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 {
|
|
4
|
-
export { B as BuiltinCellKind, C as CellKind, a as CellRenderContext, b as CellRenderFn, c as CellRenderer, d as ColumnCopyValue, g as ColumnFreezeMeta, i as ColumnFreezeSide, j as DataTableClassNames,
|
|
3
|
+
import { n as DataTableProps, t as TableColumnProps, T as TableColumnGroupProps, u as TableProps } from './types-CecIIMV1.js';
|
|
4
|
+
export { B as BuiltinCellKind, C as CellKind, a as CellRenderContext, b as CellRenderFn, c as CellRenderer, d as ColumnCopyValue, g as ColumnFreezeMeta, i as ColumnFreezeSide, j as ColumnSearchValue, k as DataTableClassNames, m as DataTableLabels, o as DataTableScrollSlotProps, p as DataTableSlots, P as PasteMode, R as RowSelectionMode, q as RowsPastePayload, r as SearchResultItem, Y as TableSort } from './types-CecIIMV1.js';
|
|
5
5
|
export { ColumnDef, ColumnOrderState, ColumnResizeMode, ColumnSizingState, RowSelectionState } from '@tanstack/react-table';
|
|
6
6
|
|
|
7
7
|
/**
|
|
@@ -46,8 +46,17 @@ type TablePaginationProps = {
|
|
|
46
46
|
totalCount?: number;
|
|
47
47
|
onChange: (page: number) => void;
|
|
48
48
|
className?: string;
|
|
49
|
+
/**
|
|
50
|
+
* The table's `data` already is this page (server-side pagination): it is
|
|
51
|
+
* shown as-is instead of being sliced again.
|
|
52
|
+
*/
|
|
53
|
+
manual?: boolean;
|
|
54
|
+
/** Accessible label of the previous-page button. */
|
|
55
|
+
previousLabel?: string;
|
|
56
|
+
/** Accessible label of the next-page button. */
|
|
57
|
+
nextLabel?: string;
|
|
49
58
|
};
|
|
50
|
-
declare function TablePagination({ page, pageSize, totalCount, onChange, className, }: TablePaginationProps): react.JSX.Element;
|
|
59
|
+
declare function TablePagination({ page, pageSize, totalCount, onChange, className, previousLabel, nextLabel, }: TablePaginationProps): react.JSX.Element;
|
|
51
60
|
declare namespace TablePagination {
|
|
52
61
|
var displayName: string;
|
|
53
62
|
}
|
|
@@ -59,7 +68,7 @@ type TableCompoundComponent<T extends Record<string, unknown>> = ((props: TableP
|
|
|
59
68
|
Body: typeof TableBody;
|
|
60
69
|
Pagination: typeof TablePagination;
|
|
61
70
|
};
|
|
62
|
-
declare function TableRoot<T extends Record<string, unknown>>({ data, children, className, totalCount, filteredCount, ...dataTableProps }: TableProps<T>): react.JSX.Element;
|
|
71
|
+
declare function TableRoot<T extends Record<string, unknown>>({ data, children, className, classNames, totalCount, filteredCount, onDataChange, getRowId, sort: controlledSort, defaultSort, onSortChange, sortLocale, ...dataTableProps }: TableProps<T>): react.JSX.Element;
|
|
63
72
|
declare function createTable<T extends Record<string, unknown>>(): TableCompoundComponent<T>;
|
|
64
73
|
declare const Table: typeof TableRoot & {
|
|
65
74
|
Header: typeof TableHeader;
|