@redis-ui/table 2.23.2 → 3.3.2
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/dist/Table/Table.cjs +34 -5
- package/dist/Table/Table.context.d.ts +0 -1
- package/dist/Table/Table.d.ts +22 -18
- package/dist/Table/Table.js +34 -5
- package/dist/Table/Table.style.cjs +65 -39
- package/dist/Table/Table.style.d.ts +10 -7
- package/dist/Table/Table.style.js +65 -39
- package/dist/Table/Table.types.d.ts +8 -20
- package/dist/Table/components/Compose/Compose.cjs +4 -6
- package/dist/Table/components/Compose/Compose.d.ts +10 -9
- package/dist/Table/components/Compose/Compose.js +5 -7
- package/dist/Table/components/ExpandRowButton/useExpanderColumn.cjs +0 -1
- package/dist/Table/components/ExpandRowButton/useExpanderColumn.js +0 -1
- package/dist/Table/components/PluggableTable/PluggableTable.cjs +7 -1
- package/dist/Table/components/PluggableTable/PluggableTable.d.ts +3 -1
- package/dist/Table/components/PluggableTable/PluggableTable.js +7 -1
- package/dist/Table/components/PluggableTable/compositionComponents.cjs +4 -0
- package/dist/Table/components/PluggableTable/compositionComponents.d.ts +8 -6
- package/dist/Table/components/PluggableTable/compositionComponents.js +4 -0
- package/dist/Table/components/RowSelection/useRowSelectionColumn.cjs +0 -1
- package/dist/Table/components/RowSelection/useRowSelectionColumn.js +0 -1
- package/dist/Table/components/TableBody/TableBody.d.ts +2 -2
- package/dist/Table/components/TableBodyCell/TableBodyCell.d.ts +1 -1
- package/dist/Table/components/TableBodyCell/components/Compose/Compose.d.ts +1 -1
- package/dist/Table/components/TableBodyRow/TableBodyRow.d.ts +1 -1
- package/dist/Table/components/TableBodyRow/components/Compose/Compose.d.ts +1 -1
- package/dist/Table/components/TableBottomBar/TableBottomBar.cjs +12 -0
- package/dist/Table/components/TableBottomBar/TableBottomBar.d.ts +2 -0
- package/dist/Table/components/TableBottomBar/TableBottomBar.js +12 -0
- package/dist/Table/components/TableBottomBar/TableBottomBar.test.d.ts +1 -0
- package/dist/Table/components/TableExpandedRow/TableAnimatedExpandedRow.cjs +8 -1
- package/dist/Table/components/TableExpandedRow/TableAnimatedExpandedRow.d.ts +1 -1
- package/dist/Table/components/TableExpandedRow/TableAnimatedExpandedRow.js +9 -2
- package/dist/Table/components/TableExpandedRow/TableAnimatedExpandedRow.style.cjs +11 -1
- package/dist/Table/components/TableExpandedRow/TableAnimatedExpandedRow.style.d.ts +3 -2
- package/dist/Table/components/TableExpandedRow/TableAnimatedExpandedRow.style.js +11 -1
- package/dist/Table/components/TableExpandedRow/TableExpandedRow.cjs +2 -1
- package/dist/Table/components/TableExpandedRow/TableExpandedRow.d.ts +1 -1
- package/dist/Table/components/TableExpandedRow/TableExpandedRow.js +2 -1
- package/dist/Table/components/TableExpandedRow/TableExpandedRow.style.cjs +2 -2
- package/dist/Table/components/TableExpandedRow/TableExpandedRow.style.js +2 -2
- package/dist/Table/components/TableExpandedRow/TableExpandedRow.types.d.ts +3 -2
- package/dist/Table/components/TableHeader/TableHeader.d.ts +1 -1
- package/dist/Table/components/TableHeaderCell/TableHeaderCell.d.ts +1 -1
- package/dist/Table/components/TableHeaderCell/components/Compose/Compose.cjs +1 -1
- package/dist/Table/components/TableHeaderCell/components/Compose/Compose.d.ts +1 -1
- package/dist/Table/components/TableHeaderCell/components/Compose/Compose.js +2 -2
- package/dist/Table/components/TableHeaderCell/components/Heading/Heading.d.ts +2 -3
- package/dist/Table/components/TablePagination/TablePagination.d.ts +3 -2
- package/dist/Table/components/TablePagination/TablePagination.style.cjs +1 -1
- package/dist/Table/components/TablePagination/TablePagination.style.d.ts +3 -2
- package/dist/Table/components/TablePagination/TablePagination.style.js +1 -1
- package/dist/Table/components/TableRoot/TableRoot.cjs +6 -3
- package/dist/Table/components/TableRoot/TableRoot.js +7 -4
- package/dist/Table/components/TableTopBar/TableTopBar.cjs +12 -0
- package/dist/Table/components/TableTopBar/TableTopBar.d.ts +2 -0
- package/dist/Table/components/TableTopBar/TableTopBar.js +12 -0
- package/dist/Table/components/TableTopBar/TableTopBar.test.d.ts +1 -0
- package/dist/Table/index.d.ts +1 -0
- package/dist/Table/plugins/ColumnVisibilityPlugin.cjs +14 -0
- package/dist/Table/plugins/ColumnVisibilityPlugin.d.ts +10 -0
- package/dist/Table/plugins/ColumnVisibilityPlugin.js +14 -0
- package/dist/Table/plugins/ColumnVisibilityPlugin.test.d.ts +1 -0
- package/dist/Table/plugins/ExpandableRowPlugin.cjs +16 -3
- package/dist/Table/plugins/ExpandableRowPlugin.d.ts +3 -1
- package/dist/Table/plugins/ExpandableRowPlugin.js +14 -1
- package/dist/Table/plugins/FilteringPlugin.cjs +25 -0
- package/dist/Table/plugins/FilteringPlugin.d.ts +20 -0
- package/dist/Table/plugins/FilteringPlugin.js +25 -0
- package/dist/Table/plugins/FilteringPlugin.test.d.ts +1 -0
- package/dist/Table/plugins/PaginationPlugin.d.ts +1 -1
- package/dist/Table/plugins/RowNavigationPlugin.d.ts +1 -1
- package/dist/Table/plugins/RowSelectionPlugin.cjs +11 -1
- package/dist/Table/plugins/RowSelectionPlugin.d.ts +3 -1
- package/dist/Table/plugins/RowSelectionPlugin.js +11 -1
- package/dist/Table/tanStackExtendedTypes.d.ts +3 -3
- package/dist/Table/utils/plugin.utils.cjs +17 -2
- package/dist/Table/utils/plugin.utils.d.ts +5 -2
- package/dist/Table/utils/plugin.utils.js +18 -3
- package/dist/Table/utils/table.utils.cjs +13 -0
- package/dist/Table/utils/table.utils.d.ts +12 -0
- package/dist/Table/utils/table.utils.js +13 -0
- package/dist/index.cjs +2 -0
- package/dist/index.js +2 -0
- package/package.json +4 -4
package/dist/Table/Table.cjs
CHANGED
|
@@ -19,6 +19,8 @@ const ShowOnRowHover_style = require("./components/ShowOnRowHover/ShowOnRowHover
|
|
|
19
19
|
const ExpandAllRowsButton = require("./components/ExpandRowButton/ExpandAllRowsButton.cjs");
|
|
20
20
|
const useExpanderColumn = require("./components/ExpandRowButton/useExpanderColumn.cjs");
|
|
21
21
|
const useRowSelectionColumn = require("./components/RowSelection/useRowSelectionColumn.cjs");
|
|
22
|
+
const FilteringPlugin = require("./plugins/FilteringPlugin.cjs");
|
|
23
|
+
const ColumnVisibilityPlugin = require("./plugins/ColumnVisibilityPlugin.cjs");
|
|
22
24
|
const Table = Object.assign(({
|
|
23
25
|
columns,
|
|
24
26
|
caption,
|
|
@@ -26,7 +28,6 @@ const Table = Object.assign(({
|
|
|
26
28
|
data,
|
|
27
29
|
getRowId,
|
|
28
30
|
emptyState,
|
|
29
|
-
maxHeight,
|
|
30
31
|
minWidth,
|
|
31
32
|
stripedRows = false,
|
|
32
33
|
// sorting
|
|
@@ -37,6 +38,8 @@ const Table = Object.assign(({
|
|
|
37
38
|
manualSorting,
|
|
38
39
|
// row expansion
|
|
39
40
|
defaultExpanded,
|
|
41
|
+
expanded,
|
|
42
|
+
onExpandedChange,
|
|
40
43
|
getIsRowExpandable,
|
|
41
44
|
renderExpandedRow,
|
|
42
45
|
expandRowOnClick,
|
|
@@ -57,13 +60,34 @@ const Table = Object.assign(({
|
|
|
57
60
|
onRowSelectionChange,
|
|
58
61
|
rowSelectionMode,
|
|
59
62
|
getRowCanSelect,
|
|
63
|
+
selectRowOnClick,
|
|
60
64
|
// row navigation
|
|
61
|
-
enableRowNavigation = false
|
|
65
|
+
enableRowNavigation = false,
|
|
66
|
+
// filtering and searching
|
|
67
|
+
enableFiltering,
|
|
68
|
+
columnFilters,
|
|
69
|
+
globalFilter,
|
|
70
|
+
globalFilterFn,
|
|
71
|
+
filterFns,
|
|
72
|
+
// column visibility
|
|
73
|
+
columnVisibility,
|
|
74
|
+
// rest
|
|
75
|
+
...restProps
|
|
62
76
|
}) => {
|
|
63
77
|
const clickableRowPluginData = ClickableRowPlugin.useClickableRowPlugin({
|
|
64
78
|
onRowClick: onRowClick && ((row) => onRowClick(row.original)),
|
|
65
79
|
shouldClickOnEnter: true
|
|
66
80
|
});
|
|
81
|
+
const columnVisibilityPluginData = ColumnVisibilityPlugin.useColumnVisibilityPlugin({
|
|
82
|
+
columnVisibility
|
|
83
|
+
});
|
|
84
|
+
const filteringPluginData = FilteringPlugin.useFilteringPlugin({
|
|
85
|
+
enableFiltering,
|
|
86
|
+
columnFilters,
|
|
87
|
+
globalFilter,
|
|
88
|
+
globalFilterFn,
|
|
89
|
+
filterFns
|
|
90
|
+
});
|
|
67
91
|
const sortingPluginData = SortingPlugin.useSortingPlugin({
|
|
68
92
|
enableSorting,
|
|
69
93
|
defaultSorting,
|
|
@@ -83,6 +107,8 @@ const Table = Object.assign(({
|
|
|
83
107
|
});
|
|
84
108
|
const expandableRowPluginData = ExpandableRowPlugin.useExpandableRowPlugin({
|
|
85
109
|
defaultExpanded,
|
|
110
|
+
expanded,
|
|
111
|
+
onExpandedChange,
|
|
86
112
|
expandRowOnClick,
|
|
87
113
|
getRowCanExpand: getIsRowExpandable && ((row) => {
|
|
88
114
|
var _a;
|
|
@@ -97,16 +123,17 @@ const Table = Object.assign(({
|
|
|
97
123
|
defaultRowSelection,
|
|
98
124
|
onRowSelectionChange,
|
|
99
125
|
rowSelectionMode,
|
|
100
|
-
getRowCanSelect
|
|
126
|
+
getRowCanSelect,
|
|
127
|
+
selectRowOnClick
|
|
101
128
|
});
|
|
102
129
|
const rowNavigationPluginData = RowNavigationPlugin.useRowNavigationPlugin({
|
|
103
130
|
enableRowNavigation
|
|
104
131
|
});
|
|
105
132
|
return jsxRuntime.jsxRuntimeExports.jsx(Table.PluggableTable, {
|
|
133
|
+
...restProps,
|
|
106
134
|
...{
|
|
107
135
|
data,
|
|
108
136
|
columns,
|
|
109
|
-
maxHeight,
|
|
110
137
|
minWidth,
|
|
111
138
|
stripedRows,
|
|
112
139
|
caption,
|
|
@@ -115,7 +142,7 @@ const Table = Object.assign(({
|
|
|
115
142
|
tableOptions: {
|
|
116
143
|
getRowId
|
|
117
144
|
},
|
|
118
|
-
pluginsData: [clickableRowPluginData, sortingPluginData, paginationPluginData, expandableRowPluginData, rowSelectionPluginData, rowNavigationPluginData]
|
|
145
|
+
pluginsData: [clickableRowPluginData, sortingPluginData, columnVisibilityPluginData, filteringPluginData, paginationPluginData, expandableRowPluginData, rowSelectionPluginData, rowNavigationPluginData]
|
|
119
146
|
});
|
|
120
147
|
}, {
|
|
121
148
|
ExpandRowButton: ExpandRowButton.ExpandRowButton,
|
|
@@ -130,6 +157,8 @@ const Table = Object.assign(({
|
|
|
130
157
|
// plugins
|
|
131
158
|
useClickableRowPlugin: ClickableRowPlugin.useClickableRowPlugin,
|
|
132
159
|
useSortingPlugin: SortingPlugin.useSortingPlugin,
|
|
160
|
+
useColumnVisibilityPlugin: ColumnVisibilityPlugin.useColumnVisibilityPlugin,
|
|
161
|
+
useFilteringPlugin: FilteringPlugin.useFilteringPlugin,
|
|
133
162
|
usePaginationPlugin: PaginationPlugin.usePaginationPlugin,
|
|
134
163
|
useExpandableRowPlugin: ExpandableRowPlugin.useExpandableRowPlugin,
|
|
135
164
|
useRowSelectionPlugin: RowSelectionPlugin.useRowSelectionPlugin,
|
package/dist/Table/Table.d.ts
CHANGED
|
@@ -2,8 +2,10 @@
|
|
|
2
2
|
import './tanStackExtendedTypes';
|
|
3
3
|
import type { Row } from '@tanstack/react-table';
|
|
4
4
|
import { TableProps } from './Table.types';
|
|
5
|
-
declare const Table: (<T extends object>({ columns, caption, onRowClick, data, getRowId, emptyState,
|
|
6
|
-
Compose: <T_1 extends object>({ data, columns, pluginsData, tableOptions, components,
|
|
5
|
+
declare const Table: (<T extends object>({ columns, caption, onRowClick, data, getRowId, emptyState, minWidth, stripedRows, enableSorting, defaultSorting, onSortingChange, sorting, manualSorting, defaultExpanded, expanded, onExpandedChange, getIsRowExpandable, renderExpandedRow, expandRowOnClick, expandedRowComponent, getSubRows, pagination, defaultPagination, onPaginationChange, manualPagination, totalRowCount, totalPageCount, pageSizes, paginationEnabled, rowSelection, defaultRowSelection, onRowSelectionChange, rowSelectionMode, getRowCanSelect, selectRowOnClick, enableRowNavigation, enableFiltering, columnFilters, globalFilter, globalFilterFn, filterFns, columnVisibility, ...restProps }: TableProps<T>) => import("react/jsx-runtime").JSX.Element) & {
|
|
6
|
+
Compose: <T_1 extends object>({ data, columns, pluginsData, tableOptions, components, minWidth, stripedRows, ...restProps }: import("./components/Compose/Compose").TableComposeProps<T_1>) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
TopBar: (props: import("@redislabsdev/redis-ui-components").ComposeElementProps<HTMLElement>) => import("react/jsx-runtime").JSX.Element | null;
|
|
8
|
+
BottomBar: (props: import("@redislabsdev/redis-ui-components").ComposeElementProps<HTMLElement>) => import("react/jsx-runtime").JSX.Element | null;
|
|
7
9
|
Root: (props: import("react").HTMLAttributes<HTMLTableElement>) => import("react/jsx-runtime").JSX.Element;
|
|
8
10
|
SRCaption: ({ caption }: {
|
|
9
11
|
caption?: string | undefined;
|
|
@@ -14,7 +16,7 @@ declare const Table: (<T extends object>({ columns, caption, onRowClick, data, g
|
|
|
14
16
|
Compose: import("styled-components").StyledComponent<"tr", any, {}, never>;
|
|
15
17
|
};
|
|
16
18
|
Cell: (<T_4 extends object>(props: import("./components/TableHeaderCell/TableHeaderCell").OwnTableHeaderCellProps<T_4> & import("./components/TableHeaderCell/TableHeaderCell").RestTableHeaderCellProps & import("react").RefAttributes<HTMLTableCellElement>) => import("react").ReactElement<any, any> | null) & {
|
|
17
|
-
Compose: <T_5 extends object>(props: import("./components/TableHeaderCell/components/Compose/Compose").OwnTableHeaderCellComposeProps<T_5> & import("@redislabsdev/redis-ui-components").ComposeChildrenProps & Omit<import("react").HTMLAttributes<HTMLTableCellElement>, "
|
|
19
|
+
Compose: <T_5 extends object>(props: import("./components/TableHeaderCell/components/Compose/Compose").OwnTableHeaderCellComposeProps<T_5> & import("@redislabsdev/redis-ui-components").ComposeChildrenProps & Omit<import("react").HTMLAttributes<HTMLTableCellElement>, "children" | "content"> & import("react").RefAttributes<HTMLTableCellElement>) => import("react").ReactElement<any, any> | null;
|
|
18
20
|
SortableHeading: (({ children, ...restProps }: import("@redislabsdev/redis-ui-components").ComposeElementProps<HTMLElement>) => import("react/jsx-runtime").JSX.Element) & {
|
|
19
21
|
Compose: ((props: import("@redislabsdev/redis-ui-components").ComposeElementProps<HTMLElement>) => import("react/jsx-runtime").JSX.Element) & {
|
|
20
22
|
SortIndicator: () => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
@@ -28,7 +30,7 @@ declare const Table: (<T extends object>({ columns, caption, onRowClick, data, g
|
|
|
28
30
|
Body: (<T_6 extends object>(props: import("./components/TableBody/TableBody").RestTableBodyProps) => import("react/jsx-runtime").JSX.Element | null) & {
|
|
29
31
|
Compose: (props: import("./components/TableBody/components/Compose/Compose").TableBodyComposeProps) => import("react/jsx-runtime").JSX.Element;
|
|
30
32
|
Row: (<T_7 extends object>(props: import("./components/TableBodyRow/TableBodyRow").OwnTableBodyRowProps<T_7> & import("./components/TableBodyRow/TableBodyRow").RestTableBodyRowProps & import("react").RefAttributes<HTMLTableRowElement>) => import("react").ReactElement<any, any> | null) & {
|
|
31
|
-
Compose: (props: import("@redislabsdev/redis-ui-components").ComposeChildrenProps & Omit<import("react").HTMLAttributes<HTMLTableRowElement>, "
|
|
33
|
+
Compose: (props: import("@redislabsdev/redis-ui-components").ComposeChildrenProps & Omit<import("react").HTMLAttributes<HTMLTableRowElement>, "children" | "content"> & import("react").RefAttributes<HTMLTableRowElement>) => import("react").ReactElement<any, any> | null;
|
|
32
34
|
useHandleClickableRow: <T_8 extends object>({ row, onClick, onKeyDown }: {
|
|
33
35
|
row: Row<T_8>;
|
|
34
36
|
onClick?: import("react").MouseEventHandler<HTMLTableRowElement> | undefined;
|
|
@@ -40,7 +42,7 @@ declare const Table: (<T extends object>({ columns, caption, onRowClick, data, g
|
|
|
40
42
|
};
|
|
41
43
|
ExpandableRow: <T_9 extends object>(props: import("./components/TableBodyRow/TableBodyRow").OwnTableBodyRowProps<T_9> & import("./components/TableBodyRow/TableBodyRow").RestTableBodyRowProps & import("react").RefAttributes<HTMLTableRowElement>) => import("react").ReactElement<any, any> | null;
|
|
42
44
|
Cell: (<T_10 extends object>(props: import("./components/TableBodyCell/TableBodyCell").OwnTableBodyCellProps<T_10> & import("./components/TableBodyCell/TableBodyCell").RestTableBodyCellProps & import("react").RefAttributes<HTMLTableCellElement>) => import("react").ReactElement<any, any> | null) & {
|
|
43
|
-
Compose: <T_11 extends object>(props: import("@redislabsdev/redis-ui-components").ComposeChildrenProps & Omit<import("react").HTMLAttributes<HTMLTableCellElement>, "
|
|
45
|
+
Compose: <T_11 extends object>(props: import("@redislabsdev/redis-ui-components").ComposeChildrenProps & Omit<import("react").HTMLAttributes<HTMLTableCellElement>, "children" | "content"> & import("./components/TableBodyCell/components/Compose/Compose").OwnTableBodyCellComposeProps<T_11> & import("react").RefAttributes<HTMLTableCellElement>) => import("react").ReactElement<any, any> | null;
|
|
44
46
|
};
|
|
45
47
|
};
|
|
46
48
|
Pagination: (() => import("react/jsx-runtime").JSX.Element | null) & {
|
|
@@ -54,11 +56,11 @@ declare const Table: (<T extends object>({ columns, caption, onRowClick, data, g
|
|
|
54
56
|
InfoLabel: import("styled-components").StyledComponent<({ renderer, ...restProps }: import("@redislabsdev/redis-ui-components").PaginationInfoLabelProps) => import("react/jsx-runtime").JSX.Element, any, {}, never>;
|
|
55
57
|
PageSelect: import("styled-components").StyledComponent<{
|
|
56
58
|
({ ...restProps }: import("@redislabsdev/redis-ui-components").PaginationPageSelectProps): import("react/jsx-runtime").JSX.Element;
|
|
57
|
-
Label: ({ children, ...restProps }: import("@redislabsdev/redis-ui-components").TypographyBodyProps) => import("react/jsx-runtime").JSX.Element;
|
|
59
|
+
Label: ({ children, ...restProps }: import("@redislabsdev/redis-ui-components").TypographyBodyProps & import("react").RefAttributes<HTMLElement>) => import("react/jsx-runtime").JSX.Element;
|
|
58
60
|
}, any, {}, never>;
|
|
59
61
|
PageSizeSelect: import("styled-components").StyledComponent<{
|
|
60
62
|
({ pageSizes, ...restProps }: import("@redislabsdev/redis-ui-components").PaginationPageSizeSelectProps): import("react/jsx-runtime").JSX.Element | null;
|
|
61
|
-
Label: ({ children, ...restProps }: import("@redislabsdev/redis-ui-components").TypographyBodyProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
63
|
+
Label: ({ children, ...restProps }: import("@redislabsdev/redis-ui-components").TypographyBodyProps & import("react").RefAttributes<HTMLElement>) => import("react/jsx-runtime").JSX.Element | null;
|
|
62
64
|
}, any, {}, never>;
|
|
63
65
|
NavigationButton: import("styled-components").StyledComponent<({ navType, ...restProps }: import("@redislabsdev/redis-ui-components").PaginationNavigationButtonProps) => import("react/jsx-runtime").JSX.Element, any, {}, never>;
|
|
64
66
|
PageSizeGroup: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -69,24 +71,26 @@ declare const Table: (<T extends object>({ columns, caption, onRowClick, data, g
|
|
|
69
71
|
ExpandRowButton: ({ row, expandedIcon, collapsedIcon, ...restProps }: import("./components/ExpandRowButton/ExpandRowButton").ExpandRowButtonProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
70
72
|
ExpandAllRowsButton: ({ table, expandedIcon, collapsedIcon, ...restProps }: import("./components/ExpandRowButton/ExpandAllRowsButton").ExpandAllRowsButtonProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
71
73
|
useExpanderColumn: <T_12 extends object>({ allowExpandAll, ...colDef }?: import("./components/ExpandRowButton/useExpanderColumn").UseExpanderColumnParams<T_12>) => import("@tanstack/react-table").ColumnDef<T_12, unknown>;
|
|
72
|
-
ExpandedRow: <T_13 extends object>({ row, keepInDom, rowRef, ...restProps }: import("./components/TableExpandedRow").TableExpandedRowProps<T_13>) => import("react/jsx-runtime").JSX.Element | null;
|
|
73
|
-
AnimatedExpandedRow: <T_14 extends object>({ rowRef, ...restProps }: import("./components/TableExpandedRow").TableExpandedRowProps<T_14>) => import("react/jsx-runtime").JSX.Element;
|
|
74
|
+
ExpandedRow: <T_13 extends object>({ row, keepInDom, rowRef, contentWrapper, ...restProps }: import("./components/TableExpandedRow").TableExpandedRowProps<T_13>) => import("react/jsx-runtime").JSX.Element | null;
|
|
75
|
+
AnimatedExpandedRow: <T_14 extends object>({ rowRef, contentWrapper, ...restProps }: import("./components/TableExpandedRow").TableExpandedRowProps<T_14>) => import("react/jsx-runtime").JSX.Element;
|
|
74
76
|
RowSelectionButton: <T_15 extends object>({ row, ...restProps }: import("./components/RowSelection/RowSelectionButton").RowSelectionButtonProps<T_15>) => import("react/jsx-runtime").JSX.Element;
|
|
75
77
|
HeaderMultiRowSelectionButton: <T_16 extends object>({ table, managePage, ...restProps }: import("./components/RowSelection/HeaderMultiRowSelectionButton").HeaderMultiRowSelectionButtonProps<T_16>) => import("react/jsx-runtime").JSX.Element | null;
|
|
76
78
|
useRowSelectionColumn: <T_17 extends object>({ disableSelectAll, managePage, ...colDef }?: import("./components/RowSelection/useRowSelectionColumn").UseRowSelectionColumnParams<T_17>) => import("@tanstack/react-table").ColumnDef<T_17, unknown>;
|
|
77
79
|
ShowOnActiveRow: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
78
80
|
useClickableRowPlugin: <T_18 extends object>({ getCanRowClick, onRowClick, shouldClickOnEnter }: Partial<import("./plugins/ClickableRowPlugin").TableClickableRowContext<T_18>>) => import(".").TablePluginData<T_18>;
|
|
79
81
|
useSortingPlugin: <T_19 extends object>({ defaultSorting, onSortingChange, sorting, manualSorting, enableSorting }?: import("./plugins/SortingPlugin").TableSortingParams) => import(".").TablePluginData<T_19>;
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
82
|
+
useColumnVisibilityPlugin: ({ columnVisibility }: import("./plugins/ColumnVisibilityPlugin").TableColumnVisibilityParams) => import(".").TablePluginData<any>;
|
|
83
|
+
useFilteringPlugin: <T_20 extends object>({ globalFilter, globalFilterFn, columnFilters, enableFiltering, filterFns }?: import("./plugins/FilteringPlugin").TableFilteringParams<T_20>) => import(".").TablePluginData<T_20>;
|
|
84
|
+
usePaginationPlugin: ({ pagination, defaultPagination, onPaginationChange, manualPagination, totalRowCount, totalPageCount, pageSizes, paginationEnabled }: import("./plugins/PaginationPlugin").TablePaginationParams) => import(".").TablePluginData<any>;
|
|
85
|
+
useExpandableRowPlugin: <T_21 extends object>({ defaultExpanded, expanded, onExpandedChange, getRowCanExpand, renderExpandedRow, expandRowOnClick, expandedRowComponent, getSubRows }: import("./plugins/ExpandableRowPlugin").TableExpandableRowParams<T_21>) => import(".").TablePluginData<T_21>;
|
|
86
|
+
useRowSelectionPlugin: <T_22 extends object>({ rowSelection, defaultRowSelection, onRowSelectionChange, rowSelectionMode, getRowCanSelect, selectRowOnClick }: import("./plugins/RowSelectionPlugin").TableRowSelectionParams<T_22>) => import(".").TablePluginData<T_22>;
|
|
87
|
+
useRowNavigationPlugin: ({ enableRowNavigation }: import("./plugins/RowNavigationPlugin").TableRowNavigationParams) => import(".").TablePluginData<any>;
|
|
88
|
+
useTableContext: <T_23 extends object = object>() => import("./Table.context").TableContextProps<T_23>;
|
|
89
|
+
useComposeContext: <T_24 extends object, C extends import("./Table.context").CompositionContextProps<T_24> = import("./Table.context").CompositionContextProps<T_24>>(defaults: Partial<C>) => C;
|
|
90
|
+
useClickableRowContext: <T_25 extends object>() => import("./plugins/ClickableRowPlugin").TableClickableRowContext<T_25> | undefined;
|
|
91
|
+
useExpandableRowContext: <T_26 extends object>() => import("./plugins/ExpandableRowPlugin").TableExpandableRowContext<T_26> | undefined;
|
|
88
92
|
usePaginationContext: () => import("./plugins/PaginationPlugin").TablePaginationContext | undefined;
|
|
89
93
|
useSortingContext: () => import("./plugins/SortingPlugin").TableSortingContext | undefined;
|
|
90
|
-
PluggableTable: <
|
|
94
|
+
PluggableTable: <T_27 extends object>({ caption, emptyStateRender, topBar, bottomBar, ...restProps }: import("./components/PluggableTable/PluggableTable").PluggableTableProps<T_27>) => import("react/jsx-runtime").JSX.Element;
|
|
91
95
|
};
|
|
92
96
|
export default Table;
|
package/dist/Table/Table.js
CHANGED
|
@@ -17,6 +17,8 @@ import { ShowOnRowHover } from "./components/ShowOnRowHover/ShowOnRowHover.style
|
|
|
17
17
|
import { ExpandAllRowsButton } from "./components/ExpandRowButton/ExpandAllRowsButton.js";
|
|
18
18
|
import { useExpanderColumn } from "./components/ExpandRowButton/useExpanderColumn.js";
|
|
19
19
|
import { useRowSelectionColumn } from "./components/RowSelection/useRowSelectionColumn.js";
|
|
20
|
+
import { useFilteringPlugin } from "./plugins/FilteringPlugin.js";
|
|
21
|
+
import { useColumnVisibilityPlugin } from "./plugins/ColumnVisibilityPlugin.js";
|
|
20
22
|
const Table = Object.assign(({
|
|
21
23
|
columns,
|
|
22
24
|
caption,
|
|
@@ -24,7 +26,6 @@ const Table = Object.assign(({
|
|
|
24
26
|
data,
|
|
25
27
|
getRowId,
|
|
26
28
|
emptyState,
|
|
27
|
-
maxHeight,
|
|
28
29
|
minWidth,
|
|
29
30
|
stripedRows = false,
|
|
30
31
|
// sorting
|
|
@@ -35,6 +36,8 @@ const Table = Object.assign(({
|
|
|
35
36
|
manualSorting,
|
|
36
37
|
// row expansion
|
|
37
38
|
defaultExpanded,
|
|
39
|
+
expanded,
|
|
40
|
+
onExpandedChange,
|
|
38
41
|
getIsRowExpandable,
|
|
39
42
|
renderExpandedRow,
|
|
40
43
|
expandRowOnClick,
|
|
@@ -55,13 +58,34 @@ const Table = Object.assign(({
|
|
|
55
58
|
onRowSelectionChange,
|
|
56
59
|
rowSelectionMode,
|
|
57
60
|
getRowCanSelect,
|
|
61
|
+
selectRowOnClick,
|
|
58
62
|
// row navigation
|
|
59
|
-
enableRowNavigation = false
|
|
63
|
+
enableRowNavigation = false,
|
|
64
|
+
// filtering and searching
|
|
65
|
+
enableFiltering,
|
|
66
|
+
columnFilters,
|
|
67
|
+
globalFilter,
|
|
68
|
+
globalFilterFn,
|
|
69
|
+
filterFns,
|
|
70
|
+
// column visibility
|
|
71
|
+
columnVisibility,
|
|
72
|
+
// rest
|
|
73
|
+
...restProps
|
|
60
74
|
}) => {
|
|
61
75
|
const clickableRowPluginData = useClickableRowPlugin({
|
|
62
76
|
onRowClick: onRowClick && ((row) => onRowClick(row.original)),
|
|
63
77
|
shouldClickOnEnter: true
|
|
64
78
|
});
|
|
79
|
+
const columnVisibilityPluginData = useColumnVisibilityPlugin({
|
|
80
|
+
columnVisibility
|
|
81
|
+
});
|
|
82
|
+
const filteringPluginData = useFilteringPlugin({
|
|
83
|
+
enableFiltering,
|
|
84
|
+
columnFilters,
|
|
85
|
+
globalFilter,
|
|
86
|
+
globalFilterFn,
|
|
87
|
+
filterFns
|
|
88
|
+
});
|
|
65
89
|
const sortingPluginData = useSortingPlugin({
|
|
66
90
|
enableSorting,
|
|
67
91
|
defaultSorting,
|
|
@@ -81,6 +105,8 @@ const Table = Object.assign(({
|
|
|
81
105
|
});
|
|
82
106
|
const expandableRowPluginData = useExpandableRowPlugin({
|
|
83
107
|
defaultExpanded,
|
|
108
|
+
expanded,
|
|
109
|
+
onExpandedChange,
|
|
84
110
|
expandRowOnClick,
|
|
85
111
|
getRowCanExpand: getIsRowExpandable && ((row) => {
|
|
86
112
|
var _a;
|
|
@@ -95,16 +121,17 @@ const Table = Object.assign(({
|
|
|
95
121
|
defaultRowSelection,
|
|
96
122
|
onRowSelectionChange,
|
|
97
123
|
rowSelectionMode,
|
|
98
|
-
getRowCanSelect
|
|
124
|
+
getRowCanSelect,
|
|
125
|
+
selectRowOnClick
|
|
99
126
|
});
|
|
100
127
|
const rowNavigationPluginData = useRowNavigationPlugin({
|
|
101
128
|
enableRowNavigation
|
|
102
129
|
});
|
|
103
130
|
return jsxRuntimeExports.jsx(Table.PluggableTable, {
|
|
131
|
+
...restProps,
|
|
104
132
|
...{
|
|
105
133
|
data,
|
|
106
134
|
columns,
|
|
107
|
-
maxHeight,
|
|
108
135
|
minWidth,
|
|
109
136
|
stripedRows,
|
|
110
137
|
caption,
|
|
@@ -113,7 +140,7 @@ const Table = Object.assign(({
|
|
|
113
140
|
tableOptions: {
|
|
114
141
|
getRowId
|
|
115
142
|
},
|
|
116
|
-
pluginsData: [clickableRowPluginData, sortingPluginData, paginationPluginData, expandableRowPluginData, rowSelectionPluginData, rowNavigationPluginData]
|
|
143
|
+
pluginsData: [clickableRowPluginData, sortingPluginData, columnVisibilityPluginData, filteringPluginData, paginationPluginData, expandableRowPluginData, rowSelectionPluginData, rowNavigationPluginData]
|
|
117
144
|
});
|
|
118
145
|
}, {
|
|
119
146
|
ExpandRowButton,
|
|
@@ -128,6 +155,8 @@ const Table = Object.assign(({
|
|
|
128
155
|
// plugins
|
|
129
156
|
useClickableRowPlugin,
|
|
130
157
|
useSortingPlugin,
|
|
158
|
+
useColumnVisibilityPlugin,
|
|
159
|
+
useFilteringPlugin,
|
|
131
160
|
usePaginationPlugin,
|
|
132
161
|
useExpandableRowPlugin,
|
|
133
162
|
useRowSelectionPlugin,
|
|
@@ -10,11 +10,11 @@ const _styled__default = /* @__PURE__ */ _interopDefault(_styled);
|
|
|
10
10
|
const TableContainer = _styled__default.default.div.withConfig({
|
|
11
11
|
displayName: "Tablestyle__TableContainer",
|
|
12
12
|
componentId: "RedisUI__sc-o0xfty-0"
|
|
13
|
-
})(["width:100%;border-radius:
|
|
14
|
-
const
|
|
15
|
-
displayName: "
|
|
13
|
+
})(["width:100%;border-radius:", ";box-shadow:", ";background-color:", ";overflow:hidden;display:flex;flex-direction:column;"], () => redisUiStyles.useTheme().components.table.table.tableContainer.borderRadius, () => redisUiStyles.useTheme().components.table.table.tableContainer.boxShadow, () => redisUiStyles.useTheme().components.table.table.tableContainer.backgroundColor);
|
|
14
|
+
const TableScroller = _styled__default.default.div.withConfig({
|
|
15
|
+
displayName: "Tablestyle__TableScroller",
|
|
16
16
|
componentId: "RedisUI__sc-o0xfty-1"
|
|
17
|
-
})(["width:100%;
|
|
17
|
+
})(["flex:1;width:100%;overflow:auto;", ""], () => {
|
|
18
18
|
const {
|
|
19
19
|
table
|
|
20
20
|
} = Table_context.useTableContext();
|
|
@@ -22,33 +22,66 @@ const Table = _styled__default.default.table.withConfig({
|
|
|
22
22
|
overflow-x: ${table.getRowModel().rows.length ? "auto" : "hidden"};
|
|
23
23
|
`;
|
|
24
24
|
});
|
|
25
|
-
const
|
|
26
|
-
|
|
27
|
-
...props
|
|
28
|
-
})).withConfig({
|
|
29
|
-
displayName: "Tablestyle__TableHead",
|
|
25
|
+
const TableTopBar = _styled__default.default.div.withConfig({
|
|
26
|
+
displayName: "Tablestyle__TableTopBar",
|
|
30
27
|
componentId: "RedisUI__sc-o0xfty-2"
|
|
31
|
-
})(["
|
|
28
|
+
})(["", ""], () => {
|
|
29
|
+
const styles = redisUiStyles.useTheme().components.table.table.topBar;
|
|
30
|
+
return _styled.css`
|
|
31
|
+
display: flex;
|
|
32
|
+
align-items: center;
|
|
33
|
+
gap: ${styles.gap};
|
|
34
|
+
padding: ${styles.padding};
|
|
35
|
+
min-height: ${styles.minHeight};
|
|
36
|
+
border-bottom: ${styles.separator.width} solid ${styles.separator.color};
|
|
37
|
+
background-color: ${styles.bgColor};
|
|
38
|
+
`;
|
|
39
|
+
});
|
|
40
|
+
const TableBottomBar = _styled__default.default.div.withConfig({
|
|
41
|
+
displayName: "Tablestyle__TableBottomBar",
|
|
42
|
+
componentId: "RedisUI__sc-o0xfty-3"
|
|
43
|
+
})(["", ""], () => {
|
|
44
|
+
const styles = redisUiStyles.useTheme().components.table.table.bottomBar;
|
|
45
|
+
return _styled.css`
|
|
46
|
+
display: flex;
|
|
47
|
+
align-items: center;
|
|
48
|
+
gap: ${styles.gap};
|
|
49
|
+
padding: ${styles.padding};
|
|
50
|
+
min-height: ${styles.minHeight};
|
|
51
|
+
border-top: ${styles.separator.width} solid ${styles.separator.color};
|
|
52
|
+
background-color: ${styles.bgColor};
|
|
53
|
+
`;
|
|
54
|
+
});
|
|
55
|
+
const Table = _styled__default.default.table.withConfig({
|
|
56
|
+
displayName: "Tablestyle__Table",
|
|
57
|
+
componentId: "RedisUI__sc-o0xfty-4"
|
|
58
|
+
})(["border-collapse:separate;border-spacing:0;width:100%;table-layout:fixed;min-width:", ";"], () => {
|
|
32
59
|
const {
|
|
60
|
+
table,
|
|
33
61
|
minWidth
|
|
34
62
|
} = Table_context.useTableContext();
|
|
35
|
-
return
|
|
36
|
-
min-width: ${minWidth || void 0};
|
|
37
|
-
`;
|
|
63
|
+
return table.getRowModel().rows.length && minWidth || void 0;
|
|
38
64
|
});
|
|
65
|
+
const TableHead = _styled__default.default.thead.attrs((props) => ({
|
|
66
|
+
"data-role": "table-header",
|
|
67
|
+
...props
|
|
68
|
+
})).withConfig({
|
|
69
|
+
displayName: "Tablestyle__TableHead",
|
|
70
|
+
componentId: "RedisUI__sc-o0xfty-5"
|
|
71
|
+
})(["position:sticky;top:0;z-index:3;background-color:", ";"], () => redisUiStyles.useTheme().components.table.table.tableHeaderRow.bgColor);
|
|
39
72
|
const TableHeaderRow = _styled__default.default.tr.withConfig({
|
|
40
73
|
displayName: "Tablestyle__TableHeaderRow",
|
|
41
|
-
componentId: "RedisUI__sc-o0xfty-
|
|
42
|
-
})(["height:
|
|
74
|
+
componentId: "RedisUI__sc-o0xfty-6"
|
|
75
|
+
})(["height:", ";"], () => redisUiStyles.useTheme().components.table.table.tableHeaderRow.minHeight);
|
|
43
76
|
const SortableHeadingCompose = _styled__default.default.button.withConfig({
|
|
44
77
|
displayName: "Tablestyle__SortableHeadingCompose",
|
|
45
|
-
componentId: "RedisUI__sc-o0xfty-
|
|
78
|
+
componentId: "RedisUI__sc-o0xfty-7"
|
|
46
79
|
})(["all:unset;border-radius:0.03rem;display:flex;align-items:center;justify-content:flex-start;gap:0.8rem;height:100%;width:100%;min-height:35px;max-width:100%;overflow:", ";", " svg{flex:none;}"], ({
|
|
47
80
|
$custom
|
|
48
81
|
}) => $custom ? void 0 : "hidden", redisUiStyles.getFocusStyle("0.6rem"));
|
|
49
82
|
const HeaderTitleWrapper = _styled__default.default(redisUiComponents.Typography.Body).withConfig({
|
|
50
83
|
displayName: "Tablestyle__HeaderTitleWrapper",
|
|
51
|
-
componentId: "RedisUI__sc-o0xfty-
|
|
84
|
+
componentId: "RedisUI__sc-o0xfty-8"
|
|
52
85
|
})(["flex:0 1 auto;white-space:inherit;text-align:start;", ""], ({
|
|
53
86
|
$isTextual
|
|
54
87
|
}) => $isTextual ? null : _styled.css`
|
|
@@ -56,28 +89,18 @@ const HeaderTitleWrapper = _styled__default.default(redisUiComponents.Typography
|
|
|
56
89
|
align-items: center;
|
|
57
90
|
justify-content: flex-start;
|
|
58
91
|
`);
|
|
59
|
-
const
|
|
60
|
-
displayName: "
|
|
61
|
-
componentId: "RedisUI__sc-o0xfty-
|
|
62
|
-
})(["padding:
|
|
92
|
+
const TableHeaderCell = _styled__default.default.th.withConfig({
|
|
93
|
+
displayName: "Tablestyle__TableHeaderCell",
|
|
94
|
+
componentId: "RedisUI__sc-o0xfty-9"
|
|
95
|
+
})(["padding:", ";color:", ";user-select:none;white-space:nowrap;word-break:break-word;line-height:normal;position:relative;overflow:hidden;border-bottom:", " solid ", ";&[aria-sort]{cursor:pointer;}&:not(:last-child)::after{content:'';position:absolute;inset-inline-end:0;inset-block:", ";border-right:", " solid ", ";}"], () => redisUiStyles.useTheme().components.table.table.tableHeaderCell.padding, () => redisUiStyles.useTheme().components.table.table.tableHeaderCell.color, () => redisUiStyles.useTheme().components.table.table.tableHeaderRow.separator.width, () => redisUiStyles.useTheme().components.table.table.tableHeaderRow.separator.color, () => redisUiStyles.useTheme().components.table.table.tableHeaderCell.separator.blockPadding, () => redisUiStyles.useTheme().components.table.table.tableHeaderCell.separator.width, () => redisUiStyles.useTheme().components.table.table.tableHeaderCell.separator.color);
|
|
63
96
|
const TableBody = _styled__default.default.tbody.withConfig({
|
|
64
97
|
displayName: "Tablestyle__TableBody",
|
|
65
|
-
componentId: "RedisUI__sc-o0xfty-
|
|
66
|
-
})([""
|
|
67
|
-
const {
|
|
68
|
-
maxHeight,
|
|
69
|
-
minWidth,
|
|
70
|
-
table
|
|
71
|
-
} = Table_context.useTableContext();
|
|
72
|
-
return _styled.css`
|
|
73
|
-
max-height: ${maxHeight};
|
|
74
|
-
min-width: ${table.getRowModel().rows.length && minWidth || void 0};
|
|
75
|
-
`;
|
|
76
|
-
});
|
|
98
|
+
componentId: "RedisUI__sc-o0xfty-10"
|
|
99
|
+
})([""]);
|
|
77
100
|
const TableBodyRow = _styled__default.default.tr.withConfig({
|
|
78
101
|
displayName: "Tablestyle__TableBodyRow",
|
|
79
|
-
componentId: "RedisUI__sc-o0xfty-
|
|
80
|
-
})(["border-top:
|
|
102
|
+
componentId: "RedisUI__sc-o0xfty-11"
|
|
103
|
+
})(["> *{border-top:", " solid transparent;}&:not(:first-child) > *{border-top-color:", ";}height:", ";transition:box-shadow 0.2s ease-in-out;position:relative;&:hover,&:focus,&:focus-within{cursor:", ";z-index:1;box-shadow:", ";", "{opacity:1;visibility:visible;}}", ""], () => redisUiStyles.useTheme().components.table.table.tableBodyRow.separator.width, () => redisUiStyles.useTheme().components.table.table.tableBodyRow.separator.color, () => redisUiStyles.useTheme().components.table.table.tableBodyRow.minHeight, ({
|
|
81
104
|
onClick
|
|
82
105
|
}) => onClick ? "pointer" : "default", () => redisUiStyles.useTheme().components.table.table.tableBodyRow.hoverBoxShadow, ShowOnRowHover_style.ShowOnRowHover, ({
|
|
83
106
|
$stripedRows
|
|
@@ -88,11 +111,11 @@ const TableBodyRow = _styled__default.default.tr.withConfig({
|
|
|
88
111
|
`);
|
|
89
112
|
const TableBodyCell = _styled__default.default.td.withConfig({
|
|
90
113
|
displayName: "Tablestyle__TableBodyCell",
|
|
91
|
-
componentId: "RedisUI__sc-o0xfty-
|
|
92
|
-
})(["color:", ";padding:
|
|
114
|
+
componentId: "RedisUI__sc-o0xfty-12"
|
|
115
|
+
})(["color:", ";padding:", ";text-overflow:ellipsis;overflow:hidden;white-space:nowrap;"], () => redisUiStyles.useTheme().components.table.table.tableBodyCell.color, () => redisUiStyles.useTheme().components.table.table.tableBodyCell.padding);
|
|
93
116
|
const EmptyStateContainer = _styled__default.default.div.withConfig({
|
|
94
117
|
displayName: "Tablestyle__EmptyStateContainer",
|
|
95
|
-
componentId: "RedisUI__sc-o0xfty-
|
|
118
|
+
componentId: "RedisUI__sc-o0xfty-13"
|
|
96
119
|
})(["text-align:center;"]);
|
|
97
120
|
exports.EmptyStateContainer = EmptyStateContainer;
|
|
98
121
|
exports.HeaderTitleWrapper = HeaderTitleWrapper;
|
|
@@ -101,7 +124,10 @@ exports.Table = Table;
|
|
|
101
124
|
exports.TableBody = TableBody;
|
|
102
125
|
exports.TableBodyCell = TableBodyCell;
|
|
103
126
|
exports.TableBodyRow = TableBodyRow;
|
|
127
|
+
exports.TableBottomBar = TableBottomBar;
|
|
104
128
|
exports.TableContainer = TableContainer;
|
|
105
129
|
exports.TableHead = TableHead;
|
|
130
|
+
exports.TableHeaderCell = TableHeaderCell;
|
|
106
131
|
exports.TableHeaderRow = TableHeaderRow;
|
|
107
|
-
exports.
|
|
132
|
+
exports.TableScroller = TableScroller;
|
|
133
|
+
exports.TableTopBar = TableTopBar;
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
/// <reference types="react" />
|
|
3
3
|
export declare const TableContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
4
|
+
export declare const TableScroller: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
5
|
+
export declare const TableTopBar: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
6
|
+
export declare const TableBottomBar: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
4
7
|
export declare const Table: import("styled-components").StyledComponent<"table", any, {}, never>;
|
|
5
8
|
export declare const TableHead: import("styled-components").StyledComponent<"thead", any, {
|
|
6
9
|
id?: string | undefined;
|
|
7
10
|
onChange?: import("react").FormEventHandler<HTMLTableSectionElement> | undefined;
|
|
8
|
-
|
|
9
|
-
style?: import("react").CSSProperties | undefined;
|
|
10
|
-
title?: string | undefined;
|
|
11
|
+
children?: import("react").ReactNode;
|
|
11
12
|
defaultChecked?: boolean | undefined;
|
|
12
13
|
defaultValue?: string | number | readonly string[] | undefined;
|
|
13
14
|
suppressContentEditableWarning?: boolean | undefined;
|
|
@@ -22,8 +23,11 @@ export declare const TableHead: import("styled-components").StyledComponent<"the
|
|
|
22
23
|
hidden?: boolean | undefined;
|
|
23
24
|
lang?: string | undefined;
|
|
24
25
|
nonce?: string | undefined;
|
|
26
|
+
slot?: string | undefined;
|
|
25
27
|
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
28
|
+
style?: import("react").CSSProperties | undefined;
|
|
26
29
|
tabIndex?: number | undefined;
|
|
30
|
+
title?: string | undefined;
|
|
27
31
|
translate?: "yes" | "no" | undefined;
|
|
28
32
|
radioGroup?: string | undefined;
|
|
29
33
|
role?: import("react").AriaRole | undefined;
|
|
@@ -105,7 +109,6 @@ export declare const TableHead: import("styled-components").StyledComponent<"the
|
|
|
105
109
|
"aria-valuemin"?: number | undefined;
|
|
106
110
|
"aria-valuenow"?: number | undefined;
|
|
107
111
|
"aria-valuetext"?: string | undefined;
|
|
108
|
-
children?: import("react").ReactNode;
|
|
109
112
|
dangerouslySetInnerHTML?: {
|
|
110
113
|
__html: string | TrustedHTML;
|
|
111
114
|
} | undefined;
|
|
@@ -272,15 +275,15 @@ export declare const TableHead: import("styled-components").StyledComponent<"the
|
|
|
272
275
|
ref?: ((instance: HTMLTableSectionElement | null) => void) | import("react").RefObject<HTMLTableSectionElement> | null | undefined;
|
|
273
276
|
theme: any;
|
|
274
277
|
'data-role': string;
|
|
275
|
-
}, "id" | "onChange" | "
|
|
278
|
+
}, "id" | "onChange" | "children" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "lang" | "nonce" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "content" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "theme" | "ref" | "key" | "data-role">;
|
|
276
279
|
export declare const TableHeaderRow: import("styled-components").StyledComponent<"tr", any, {}, never>;
|
|
277
280
|
export declare const SortableHeadingCompose: import("styled-components").StyledComponent<"button", any, {
|
|
278
281
|
$custom: boolean;
|
|
279
282
|
}, never>;
|
|
280
|
-
export declare const HeaderTitleWrapper: import("styled-components").StyledComponent<(
|
|
283
|
+
export declare const HeaderTitleWrapper: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@redislabsdev/redis-ui-components").TypographyBodyProps & import("react").RefAttributes<HTMLElement>>, any, {
|
|
281
284
|
$isTextual: boolean;
|
|
282
285
|
}, never>;
|
|
283
|
-
export declare const
|
|
286
|
+
export declare const TableHeaderCell: import("styled-components").StyledComponent<"th", any, {}, never>;
|
|
284
287
|
export declare const TableBody: import("styled-components").StyledComponent<"tbody", any, {}, never>;
|
|
285
288
|
export declare const TableBodyRow: import("styled-components").StyledComponent<"tr", any, {
|
|
286
289
|
$stripedRows: boolean;
|