@redis-ui/table 2.22.0 → 2.23.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 +2 -0
- package/dist/Table/Table.d.ts +3 -3
- package/dist/Table/Table.js +2 -0
- package/dist/Table/Table.style.cjs +5 -2
- package/dist/Table/Table.style.d.ts +273 -1
- package/dist/Table/Table.style.js +5 -2
- package/dist/Table/components/PluggableTable/compositionComponents.d.ts +1 -1
- package/dist/Table/components/TableBody/components/Compose/Compose.cjs +1 -0
- package/dist/Table/components/TableBody/components/Compose/Compose.js +1 -0
- package/dist/Table/components/TableHeader/TableHeader.d.ts +1 -1
- package/dist/Table/components/TableHeader/components/Compose/Compose.d.ts +2 -1
- package/dist/Table/components/TableHeaderCell/components/Compose/Compose.cjs +1 -1
- package/dist/Table/components/TableHeaderCell/components/Compose/Compose.js +1 -1
- package/dist/Table/components/TablePagination/TablePagination.cjs +4 -2
- package/dist/Table/components/TablePagination/TablePagination.js +4 -2
- package/dist/Table/plugins/PaginationPlugin.cjs +2 -0
- package/dist/Table/plugins/PaginationPlugin.d.ts +2 -1
- package/dist/Table/plugins/PaginationPlugin.js +2 -0
- package/package.json +3 -3
package/dist/Table/Table.cjs
CHANGED
|
@@ -48,6 +48,7 @@ const Table = Object.assign(({
|
|
|
48
48
|
onPaginationChange,
|
|
49
49
|
manualPagination,
|
|
50
50
|
totalRowCount,
|
|
51
|
+
totalPageCount,
|
|
51
52
|
pageSizes,
|
|
52
53
|
paginationEnabled,
|
|
53
54
|
// row selection
|
|
@@ -76,6 +77,7 @@ const Table = Object.assign(({
|
|
|
76
77
|
onPaginationChange,
|
|
77
78
|
manualPagination,
|
|
78
79
|
totalRowCount,
|
|
80
|
+
totalPageCount,
|
|
79
81
|
pageSizes,
|
|
80
82
|
paginationEnabled
|
|
81
83
|
});
|
package/dist/Table/Table.d.ts
CHANGED
|
@@ -2,14 +2,14 @@
|
|
|
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, maxHeight, minWidth, stripedRows, enableSorting, defaultSorting, onSortingChange, sorting, manualSorting, defaultExpanded, getIsRowExpandable, renderExpandedRow, expandRowOnClick, expandedRowComponent, getSubRows, pagination, defaultPagination, onPaginationChange, manualPagination, totalRowCount, pageSizes, paginationEnabled, rowSelection, defaultRowSelection, onRowSelectionChange, rowSelectionMode, getRowCanSelect, enableRowNavigation }: TableProps<T>) => import("react/jsx-runtime").JSX.Element) & {
|
|
5
|
+
declare const Table: (<T extends object>({ columns, caption, onRowClick, data, getRowId, emptyState, maxHeight, minWidth, stripedRows, enableSorting, defaultSorting, onSortingChange, sorting, manualSorting, defaultExpanded, getIsRowExpandable, renderExpandedRow, expandRowOnClick, expandedRowComponent, getSubRows, pagination, defaultPagination, onPaginationChange, manualPagination, totalRowCount, totalPageCount, pageSizes, paginationEnabled, rowSelection, defaultRowSelection, onRowSelectionChange, rowSelectionMode, getRowCanSelect, enableRowNavigation }: TableProps<T>) => import("react/jsx-runtime").JSX.Element) & {
|
|
6
6
|
Compose: <T_1 extends object>({ data, columns, pluginsData, tableOptions, components, maxHeight, minWidth, stripedRows, ...restProps }: import("./components/Compose/Compose").TableComposeProps<T_1>) => import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
Root: (props: import("react").HTMLAttributes<HTMLTableElement>) => import("react/jsx-runtime").JSX.Element;
|
|
8
8
|
SRCaption: ({ caption }: {
|
|
9
9
|
caption?: string | undefined;
|
|
10
10
|
}) => import("react/jsx-runtime").JSX.Element | null;
|
|
11
11
|
Header: (<T_2 extends object>(props: import("./components/TableHeader/TableHeader").RestTableHeaderProps) => import("react/jsx-runtime").JSX.Element) & {
|
|
12
|
-
Compose: import("
|
|
12
|
+
Compose: import("react").FC<import("./components/TableHeader/components/Compose/Compose").TableHeaderComposeProps>;
|
|
13
13
|
Row: (<T_3 extends object>(props: import("./components/TableHeaderRow/TableHeaderRow").OwnTableHeaderRowProps<T_3> & import("./components/TableHeaderRow/TableHeaderRow").RestTableHeaderRowProps & import("react").RefAttributes<HTMLTableRowElement>) => import("react").ReactElement<any, any> | null) & {
|
|
14
14
|
Compose: import("styled-components").StyledComponent<"tr", any, {}, never>;
|
|
15
15
|
};
|
|
@@ -77,7 +77,7 @@ declare const Table: (<T extends object>({ columns, caption, onRowClick, data, g
|
|
|
77
77
|
ShowOnActiveRow: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
78
78
|
useClickableRowPlugin: <T_18 extends object>({ getCanRowClick, onRowClick, shouldClickOnEnter }: Partial<import("./plugins/ClickableRowPlugin").TableClickableRowContext<T_18>>) => import(".").TablePluginData<T_18>;
|
|
79
79
|
useSortingPlugin: <T_19 extends object>({ defaultSorting, onSortingChange, sorting, manualSorting, enableSorting }?: import("./plugins/SortingPlugin").TableSortingParams) => import(".").TablePluginData<T_19>;
|
|
80
|
-
usePaginationPlugin: <T_20 extends object>({ pagination, defaultPagination, onPaginationChange, manualPagination, totalRowCount, pageSizes, paginationEnabled }: import("./plugins/PaginationPlugin").TablePaginationParams) => import(".").TablePluginData<T_20>;
|
|
80
|
+
usePaginationPlugin: <T_20 extends object>({ pagination, defaultPagination, onPaginationChange, manualPagination, totalRowCount, totalPageCount, pageSizes, paginationEnabled }: import("./plugins/PaginationPlugin").TablePaginationParams) => import(".").TablePluginData<T_20>;
|
|
81
81
|
useExpandableRowPlugin: <T_21 extends object>({ defaultExpanded, getRowCanExpand, renderExpandedRow, expandRowOnClick, expandedRowComponent, getSubRows }: import("./plugins/ExpandableRowPlugin").TableExpandableRowParams<T_21>) => import(".").TablePluginData<T_21>;
|
|
82
82
|
useRowSelectionPlugin: <T_22 extends object>({ rowSelection, defaultRowSelection, onRowSelectionChange, rowSelectionMode, getRowCanSelect }: import("./plugins/RowSelectionPlugin").TableRowSelectionParams<T_22>) => import(".").TablePluginData<T_22>;
|
|
83
83
|
useRowNavigationPlugin: <T_23 extends object>({ enableRowNavigation }: import("./plugins/RowNavigationPlugin").TableRowNavigationParams) => import(".").TablePluginData<T_23>;
|
package/dist/Table/Table.js
CHANGED
|
@@ -46,6 +46,7 @@ const Table = Object.assign(({
|
|
|
46
46
|
onPaginationChange,
|
|
47
47
|
manualPagination,
|
|
48
48
|
totalRowCount,
|
|
49
|
+
totalPageCount,
|
|
49
50
|
pageSizes,
|
|
50
51
|
paginationEnabled,
|
|
51
52
|
// row selection
|
|
@@ -74,6 +75,7 @@ const Table = Object.assign(({
|
|
|
74
75
|
onPaginationChange,
|
|
75
76
|
manualPagination,
|
|
76
77
|
totalRowCount,
|
|
78
|
+
totalPageCount,
|
|
77
79
|
pageSizes,
|
|
78
80
|
paginationEnabled
|
|
79
81
|
});
|
|
@@ -22,7 +22,10 @@ const Table = _styled__default.default.table.withConfig({
|
|
|
22
22
|
overflow-x: ${table.getRowModel().rows.length ? "auto" : "hidden"};
|
|
23
23
|
`;
|
|
24
24
|
});
|
|
25
|
-
const TableHead = _styled__default.default.thead.
|
|
25
|
+
const TableHead = _styled__default.default.thead.attrs((props) => ({
|
|
26
|
+
"data-role": "table-header",
|
|
27
|
+
...props
|
|
28
|
+
})).withConfig({
|
|
26
29
|
displayName: "Tablestyle__TableHead",
|
|
27
30
|
componentId: "RedisUI__sc-o0xfty-2"
|
|
28
31
|
})(["display:table;table-layout:fixed;", ""], () => {
|
|
@@ -56,7 +59,7 @@ const HeaderTitleWrapper = _styled__default.default(redisUiComponents.Typography
|
|
|
56
59
|
const TableTh = _styled__default.default.th.withConfig({
|
|
57
60
|
displayName: "Tablestyle__TableTh",
|
|
58
61
|
componentId: "RedisUI__sc-o0xfty-6"
|
|
59
|
-
})(["padding:1.05rem 1.2rem;color:", ";user-select:none;white-space:nowrap;word-break:break-word;line-height:normal;position:relative;overflow:hidden
|
|
62
|
+
})(["padding:1.05rem 1.2rem;color:", ";user-select:none;white-space:nowrap;word-break:break-word;line-height:normal;position:relative;overflow:hidden;&[aria-sort]{cursor:pointer;}&:not(:last-child)::after{content:'';position:absolute;inset:1.05rem 0 1.05rem auto;border-right:1px solid ", ";}"], () => redisUiStyles.useTheme().components.table.table.tableTh.color, () => redisUiStyles.useTheme().components.table.table.tableTh.borderRight);
|
|
60
63
|
const TableBody = _styled__default.default.tbody.withConfig({
|
|
61
64
|
displayName: "Tablestyle__TableBody",
|
|
62
65
|
componentId: "RedisUI__sc-o0xfty-7"
|
|
@@ -1,6 +1,278 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
/// <reference types="react" />
|
|
1
3
|
export declare const TableContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
2
4
|
export declare const Table: import("styled-components").StyledComponent<"table", any, {}, never>;
|
|
3
|
-
export declare const TableHead: import("styled-components").StyledComponent<"thead", any, {
|
|
5
|
+
export declare const TableHead: import("styled-components").StyledComponent<"thead", any, {
|
|
6
|
+
id?: string | undefined;
|
|
7
|
+
onChange?: import("react").FormEventHandler<HTMLTableSectionElement> | undefined;
|
|
8
|
+
slot?: string | undefined;
|
|
9
|
+
style?: import("react").CSSProperties | undefined;
|
|
10
|
+
title?: string | undefined;
|
|
11
|
+
defaultChecked?: boolean | undefined;
|
|
12
|
+
defaultValue?: string | number | readonly string[] | undefined;
|
|
13
|
+
suppressContentEditableWarning?: boolean | undefined;
|
|
14
|
+
suppressHydrationWarning?: boolean | undefined;
|
|
15
|
+
accessKey?: string | undefined;
|
|
16
|
+
autoFocus?: boolean | undefined;
|
|
17
|
+
className?: string | undefined;
|
|
18
|
+
contentEditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
|
|
19
|
+
contextMenu?: string | undefined;
|
|
20
|
+
dir?: string | undefined;
|
|
21
|
+
draggable?: (boolean | "true" | "false") | undefined;
|
|
22
|
+
hidden?: boolean | undefined;
|
|
23
|
+
lang?: string | undefined;
|
|
24
|
+
nonce?: string | undefined;
|
|
25
|
+
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
26
|
+
tabIndex?: number | undefined;
|
|
27
|
+
translate?: "yes" | "no" | undefined;
|
|
28
|
+
radioGroup?: string | undefined;
|
|
29
|
+
role?: import("react").AriaRole | undefined;
|
|
30
|
+
about?: string | undefined;
|
|
31
|
+
content?: string | undefined;
|
|
32
|
+
datatype?: string | undefined;
|
|
33
|
+
inlist?: any;
|
|
34
|
+
prefix?: string | undefined;
|
|
35
|
+
property?: string | undefined;
|
|
36
|
+
rel?: string | undefined;
|
|
37
|
+
resource?: string | undefined;
|
|
38
|
+
rev?: string | undefined;
|
|
39
|
+
typeof?: string | undefined;
|
|
40
|
+
vocab?: string | undefined;
|
|
41
|
+
autoCapitalize?: string | undefined;
|
|
42
|
+
autoCorrect?: string | undefined;
|
|
43
|
+
autoSave?: string | undefined;
|
|
44
|
+
color?: string | undefined;
|
|
45
|
+
itemProp?: string | undefined;
|
|
46
|
+
itemScope?: boolean | undefined;
|
|
47
|
+
itemType?: string | undefined;
|
|
48
|
+
itemID?: string | undefined;
|
|
49
|
+
itemRef?: string | undefined;
|
|
50
|
+
results?: number | undefined;
|
|
51
|
+
security?: string | undefined;
|
|
52
|
+
unselectable?: "on" | "off" | undefined;
|
|
53
|
+
inputMode?: "search" | "text" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
|
54
|
+
is?: string | undefined;
|
|
55
|
+
"aria-activedescendant"?: string | undefined;
|
|
56
|
+
"aria-atomic"?: (boolean | "true" | "false") | undefined;
|
|
57
|
+
"aria-autocomplete"?: "list" | "none" | "inline" | "both" | undefined;
|
|
58
|
+
"aria-braillelabel"?: string | undefined;
|
|
59
|
+
"aria-brailleroledescription"?: string | undefined;
|
|
60
|
+
"aria-busy"?: (boolean | "true" | "false") | undefined;
|
|
61
|
+
"aria-checked"?: boolean | "true" | "false" | "mixed" | undefined;
|
|
62
|
+
"aria-colcount"?: number | undefined;
|
|
63
|
+
"aria-colindex"?: number | undefined;
|
|
64
|
+
"aria-colindextext"?: string | undefined;
|
|
65
|
+
"aria-colspan"?: number | undefined;
|
|
66
|
+
"aria-controls"?: string | undefined;
|
|
67
|
+
"aria-current"?: boolean | "time" | "true" | "false" | "page" | "step" | "location" | "date" | undefined;
|
|
68
|
+
"aria-describedby"?: string | undefined;
|
|
69
|
+
"aria-description"?: string | undefined;
|
|
70
|
+
"aria-details"?: string | undefined;
|
|
71
|
+
"aria-disabled"?: (boolean | "true" | "false") | undefined;
|
|
72
|
+
"aria-dropeffect"?: "link" | "move" | "copy" | "none" | "execute" | "popup" | undefined;
|
|
73
|
+
"aria-errormessage"?: string | undefined;
|
|
74
|
+
"aria-expanded"?: (boolean | "true" | "false") | undefined;
|
|
75
|
+
"aria-flowto"?: string | undefined;
|
|
76
|
+
"aria-grabbed"?: (boolean | "true" | "false") | undefined;
|
|
77
|
+
"aria-haspopup"?: boolean | "dialog" | "menu" | "true" | "false" | "grid" | "listbox" | "tree" | undefined;
|
|
78
|
+
"aria-hidden"?: (boolean | "true" | "false") | undefined;
|
|
79
|
+
"aria-invalid"?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
|
|
80
|
+
"aria-keyshortcuts"?: string | undefined;
|
|
81
|
+
"aria-label"?: string | undefined;
|
|
82
|
+
"aria-labelledby"?: string | undefined;
|
|
83
|
+
"aria-level"?: number | undefined;
|
|
84
|
+
"aria-live"?: "off" | "assertive" | "polite" | undefined;
|
|
85
|
+
"aria-modal"?: (boolean | "true" | "false") | undefined;
|
|
86
|
+
"aria-multiline"?: (boolean | "true" | "false") | undefined;
|
|
87
|
+
"aria-multiselectable"?: (boolean | "true" | "false") | undefined;
|
|
88
|
+
"aria-orientation"?: "horizontal" | "vertical" | undefined;
|
|
89
|
+
"aria-owns"?: string | undefined;
|
|
90
|
+
"aria-placeholder"?: string | undefined;
|
|
91
|
+
"aria-posinset"?: number | undefined;
|
|
92
|
+
"aria-pressed"?: boolean | "true" | "false" | "mixed" | undefined;
|
|
93
|
+
"aria-readonly"?: (boolean | "true" | "false") | undefined;
|
|
94
|
+
"aria-relevant"?: "text" | "all" | "additions" | "additions removals" | "additions text" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
|
|
95
|
+
"aria-required"?: (boolean | "true" | "false") | undefined;
|
|
96
|
+
"aria-roledescription"?: string | undefined;
|
|
97
|
+
"aria-rowcount"?: number | undefined;
|
|
98
|
+
"aria-rowindex"?: number | undefined;
|
|
99
|
+
"aria-rowindextext"?: string | undefined;
|
|
100
|
+
"aria-rowspan"?: number | undefined;
|
|
101
|
+
"aria-selected"?: (boolean | "true" | "false") | undefined;
|
|
102
|
+
"aria-setsize"?: number | undefined;
|
|
103
|
+
"aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined;
|
|
104
|
+
"aria-valuemax"?: number | undefined;
|
|
105
|
+
"aria-valuemin"?: number | undefined;
|
|
106
|
+
"aria-valuenow"?: number | undefined;
|
|
107
|
+
"aria-valuetext"?: string | undefined;
|
|
108
|
+
children?: import("react").ReactNode;
|
|
109
|
+
dangerouslySetInnerHTML?: {
|
|
110
|
+
__html: string | TrustedHTML;
|
|
111
|
+
} | undefined;
|
|
112
|
+
onCopy?: import("react").ClipboardEventHandler<HTMLTableSectionElement> | undefined;
|
|
113
|
+
onCopyCapture?: import("react").ClipboardEventHandler<HTMLTableSectionElement> | undefined;
|
|
114
|
+
onCut?: import("react").ClipboardEventHandler<HTMLTableSectionElement> | undefined;
|
|
115
|
+
onCutCapture?: import("react").ClipboardEventHandler<HTMLTableSectionElement> | undefined;
|
|
116
|
+
onPaste?: import("react").ClipboardEventHandler<HTMLTableSectionElement> | undefined;
|
|
117
|
+
onPasteCapture?: import("react").ClipboardEventHandler<HTMLTableSectionElement> | undefined;
|
|
118
|
+
onCompositionEnd?: import("react").CompositionEventHandler<HTMLTableSectionElement> | undefined;
|
|
119
|
+
onCompositionEndCapture?: import("react").CompositionEventHandler<HTMLTableSectionElement> | undefined;
|
|
120
|
+
onCompositionStart?: import("react").CompositionEventHandler<HTMLTableSectionElement> | undefined;
|
|
121
|
+
onCompositionStartCapture?: import("react").CompositionEventHandler<HTMLTableSectionElement> | undefined;
|
|
122
|
+
onCompositionUpdate?: import("react").CompositionEventHandler<HTMLTableSectionElement> | undefined;
|
|
123
|
+
onCompositionUpdateCapture?: import("react").CompositionEventHandler<HTMLTableSectionElement> | undefined;
|
|
124
|
+
onFocus?: import("react").FocusEventHandler<HTMLTableSectionElement> | undefined;
|
|
125
|
+
onFocusCapture?: import("react").FocusEventHandler<HTMLTableSectionElement> | undefined;
|
|
126
|
+
onBlur?: import("react").FocusEventHandler<HTMLTableSectionElement> | undefined;
|
|
127
|
+
onBlurCapture?: import("react").FocusEventHandler<HTMLTableSectionElement> | undefined;
|
|
128
|
+
onChangeCapture?: import("react").FormEventHandler<HTMLTableSectionElement> | undefined;
|
|
129
|
+
onBeforeInput?: import("react").FormEventHandler<HTMLTableSectionElement> | undefined;
|
|
130
|
+
onBeforeInputCapture?: import("react").FormEventHandler<HTMLTableSectionElement> | undefined;
|
|
131
|
+
onInput?: import("react").FormEventHandler<HTMLTableSectionElement> | undefined;
|
|
132
|
+
onInputCapture?: import("react").FormEventHandler<HTMLTableSectionElement> | undefined;
|
|
133
|
+
onReset?: import("react").FormEventHandler<HTMLTableSectionElement> | undefined;
|
|
134
|
+
onResetCapture?: import("react").FormEventHandler<HTMLTableSectionElement> | undefined;
|
|
135
|
+
onSubmit?: import("react").FormEventHandler<HTMLTableSectionElement> | undefined;
|
|
136
|
+
onSubmitCapture?: import("react").FormEventHandler<HTMLTableSectionElement> | undefined;
|
|
137
|
+
onInvalid?: import("react").FormEventHandler<HTMLTableSectionElement> | undefined;
|
|
138
|
+
onInvalidCapture?: import("react").FormEventHandler<HTMLTableSectionElement> | undefined;
|
|
139
|
+
onLoad?: import("react").ReactEventHandler<HTMLTableSectionElement> | undefined;
|
|
140
|
+
onLoadCapture?: import("react").ReactEventHandler<HTMLTableSectionElement> | undefined;
|
|
141
|
+
onError?: import("react").ReactEventHandler<HTMLTableSectionElement> | undefined;
|
|
142
|
+
onErrorCapture?: import("react").ReactEventHandler<HTMLTableSectionElement> | undefined;
|
|
143
|
+
onKeyDown?: import("react").KeyboardEventHandler<HTMLTableSectionElement> | undefined;
|
|
144
|
+
onKeyDownCapture?: import("react").KeyboardEventHandler<HTMLTableSectionElement> | undefined;
|
|
145
|
+
onKeyPress?: import("react").KeyboardEventHandler<HTMLTableSectionElement> | undefined;
|
|
146
|
+
onKeyPressCapture?: import("react").KeyboardEventHandler<HTMLTableSectionElement> | undefined;
|
|
147
|
+
onKeyUp?: import("react").KeyboardEventHandler<HTMLTableSectionElement> | undefined;
|
|
148
|
+
onKeyUpCapture?: import("react").KeyboardEventHandler<HTMLTableSectionElement> | undefined;
|
|
149
|
+
onAbort?: import("react").ReactEventHandler<HTMLTableSectionElement> | undefined;
|
|
150
|
+
onAbortCapture?: import("react").ReactEventHandler<HTMLTableSectionElement> | undefined;
|
|
151
|
+
onCanPlay?: import("react").ReactEventHandler<HTMLTableSectionElement> | undefined;
|
|
152
|
+
onCanPlayCapture?: import("react").ReactEventHandler<HTMLTableSectionElement> | undefined;
|
|
153
|
+
onCanPlayThrough?: import("react").ReactEventHandler<HTMLTableSectionElement> | undefined;
|
|
154
|
+
onCanPlayThroughCapture?: import("react").ReactEventHandler<HTMLTableSectionElement> | undefined;
|
|
155
|
+
onDurationChange?: import("react").ReactEventHandler<HTMLTableSectionElement> | undefined;
|
|
156
|
+
onDurationChangeCapture?: import("react").ReactEventHandler<HTMLTableSectionElement> | undefined;
|
|
157
|
+
onEmptied?: import("react").ReactEventHandler<HTMLTableSectionElement> | undefined;
|
|
158
|
+
onEmptiedCapture?: import("react").ReactEventHandler<HTMLTableSectionElement> | undefined;
|
|
159
|
+
onEncrypted?: import("react").ReactEventHandler<HTMLTableSectionElement> | undefined;
|
|
160
|
+
onEncryptedCapture?: import("react").ReactEventHandler<HTMLTableSectionElement> | undefined;
|
|
161
|
+
onEnded?: import("react").ReactEventHandler<HTMLTableSectionElement> | undefined;
|
|
162
|
+
onEndedCapture?: import("react").ReactEventHandler<HTMLTableSectionElement> | undefined;
|
|
163
|
+
onLoadedData?: import("react").ReactEventHandler<HTMLTableSectionElement> | undefined;
|
|
164
|
+
onLoadedDataCapture?: import("react").ReactEventHandler<HTMLTableSectionElement> | undefined;
|
|
165
|
+
onLoadedMetadata?: import("react").ReactEventHandler<HTMLTableSectionElement> | undefined;
|
|
166
|
+
onLoadedMetadataCapture?: import("react").ReactEventHandler<HTMLTableSectionElement> | undefined;
|
|
167
|
+
onLoadStart?: import("react").ReactEventHandler<HTMLTableSectionElement> | undefined;
|
|
168
|
+
onLoadStartCapture?: import("react").ReactEventHandler<HTMLTableSectionElement> | undefined;
|
|
169
|
+
onPause?: import("react").ReactEventHandler<HTMLTableSectionElement> | undefined;
|
|
170
|
+
onPauseCapture?: import("react").ReactEventHandler<HTMLTableSectionElement> | undefined;
|
|
171
|
+
onPlay?: import("react").ReactEventHandler<HTMLTableSectionElement> | undefined;
|
|
172
|
+
onPlayCapture?: import("react").ReactEventHandler<HTMLTableSectionElement> | undefined;
|
|
173
|
+
onPlaying?: import("react").ReactEventHandler<HTMLTableSectionElement> | undefined;
|
|
174
|
+
onPlayingCapture?: import("react").ReactEventHandler<HTMLTableSectionElement> | undefined;
|
|
175
|
+
onProgress?: import("react").ReactEventHandler<HTMLTableSectionElement> | undefined;
|
|
176
|
+
onProgressCapture?: import("react").ReactEventHandler<HTMLTableSectionElement> | undefined;
|
|
177
|
+
onRateChange?: import("react").ReactEventHandler<HTMLTableSectionElement> | undefined;
|
|
178
|
+
onRateChangeCapture?: import("react").ReactEventHandler<HTMLTableSectionElement> | undefined;
|
|
179
|
+
onResize?: import("react").ReactEventHandler<HTMLTableSectionElement> | undefined;
|
|
180
|
+
onResizeCapture?: import("react").ReactEventHandler<HTMLTableSectionElement> | undefined;
|
|
181
|
+
onSeeked?: import("react").ReactEventHandler<HTMLTableSectionElement> | undefined;
|
|
182
|
+
onSeekedCapture?: import("react").ReactEventHandler<HTMLTableSectionElement> | undefined;
|
|
183
|
+
onSeeking?: import("react").ReactEventHandler<HTMLTableSectionElement> | undefined;
|
|
184
|
+
onSeekingCapture?: import("react").ReactEventHandler<HTMLTableSectionElement> | undefined;
|
|
185
|
+
onStalled?: import("react").ReactEventHandler<HTMLTableSectionElement> | undefined;
|
|
186
|
+
onStalledCapture?: import("react").ReactEventHandler<HTMLTableSectionElement> | undefined;
|
|
187
|
+
onSuspend?: import("react").ReactEventHandler<HTMLTableSectionElement> | undefined;
|
|
188
|
+
onSuspendCapture?: import("react").ReactEventHandler<HTMLTableSectionElement> | undefined;
|
|
189
|
+
onTimeUpdate?: import("react").ReactEventHandler<HTMLTableSectionElement> | undefined;
|
|
190
|
+
onTimeUpdateCapture?: import("react").ReactEventHandler<HTMLTableSectionElement> | undefined;
|
|
191
|
+
onVolumeChange?: import("react").ReactEventHandler<HTMLTableSectionElement> | undefined;
|
|
192
|
+
onVolumeChangeCapture?: import("react").ReactEventHandler<HTMLTableSectionElement> | undefined;
|
|
193
|
+
onWaiting?: import("react").ReactEventHandler<HTMLTableSectionElement> | undefined;
|
|
194
|
+
onWaitingCapture?: import("react").ReactEventHandler<HTMLTableSectionElement> | undefined;
|
|
195
|
+
onAuxClick?: import("react").MouseEventHandler<HTMLTableSectionElement> | undefined;
|
|
196
|
+
onAuxClickCapture?: import("react").MouseEventHandler<HTMLTableSectionElement> | undefined;
|
|
197
|
+
onClick?: import("react").MouseEventHandler<HTMLTableSectionElement> | undefined;
|
|
198
|
+
onClickCapture?: import("react").MouseEventHandler<HTMLTableSectionElement> | undefined;
|
|
199
|
+
onContextMenu?: import("react").MouseEventHandler<HTMLTableSectionElement> | undefined;
|
|
200
|
+
onContextMenuCapture?: import("react").MouseEventHandler<HTMLTableSectionElement> | undefined;
|
|
201
|
+
onDoubleClick?: import("react").MouseEventHandler<HTMLTableSectionElement> | undefined;
|
|
202
|
+
onDoubleClickCapture?: import("react").MouseEventHandler<HTMLTableSectionElement> | undefined;
|
|
203
|
+
onDrag?: import("react").DragEventHandler<HTMLTableSectionElement> | undefined;
|
|
204
|
+
onDragCapture?: import("react").DragEventHandler<HTMLTableSectionElement> | undefined;
|
|
205
|
+
onDragEnd?: import("react").DragEventHandler<HTMLTableSectionElement> | undefined;
|
|
206
|
+
onDragEndCapture?: import("react").DragEventHandler<HTMLTableSectionElement> | undefined;
|
|
207
|
+
onDragEnter?: import("react").DragEventHandler<HTMLTableSectionElement> | undefined;
|
|
208
|
+
onDragEnterCapture?: import("react").DragEventHandler<HTMLTableSectionElement> | undefined;
|
|
209
|
+
onDragExit?: import("react").DragEventHandler<HTMLTableSectionElement> | undefined;
|
|
210
|
+
onDragExitCapture?: import("react").DragEventHandler<HTMLTableSectionElement> | undefined;
|
|
211
|
+
onDragLeave?: import("react").DragEventHandler<HTMLTableSectionElement> | undefined;
|
|
212
|
+
onDragLeaveCapture?: import("react").DragEventHandler<HTMLTableSectionElement> | undefined;
|
|
213
|
+
onDragOver?: import("react").DragEventHandler<HTMLTableSectionElement> | undefined;
|
|
214
|
+
onDragOverCapture?: import("react").DragEventHandler<HTMLTableSectionElement> | undefined;
|
|
215
|
+
onDragStart?: import("react").DragEventHandler<HTMLTableSectionElement> | undefined;
|
|
216
|
+
onDragStartCapture?: import("react").DragEventHandler<HTMLTableSectionElement> | undefined;
|
|
217
|
+
onDrop?: import("react").DragEventHandler<HTMLTableSectionElement> | undefined;
|
|
218
|
+
onDropCapture?: import("react").DragEventHandler<HTMLTableSectionElement> | undefined;
|
|
219
|
+
onMouseDown?: import("react").MouseEventHandler<HTMLTableSectionElement> | undefined;
|
|
220
|
+
onMouseDownCapture?: import("react").MouseEventHandler<HTMLTableSectionElement> | undefined;
|
|
221
|
+
onMouseEnter?: import("react").MouseEventHandler<HTMLTableSectionElement> | undefined;
|
|
222
|
+
onMouseLeave?: import("react").MouseEventHandler<HTMLTableSectionElement> | undefined;
|
|
223
|
+
onMouseMove?: import("react").MouseEventHandler<HTMLTableSectionElement> | undefined;
|
|
224
|
+
onMouseMoveCapture?: import("react").MouseEventHandler<HTMLTableSectionElement> | undefined;
|
|
225
|
+
onMouseOut?: import("react").MouseEventHandler<HTMLTableSectionElement> | undefined;
|
|
226
|
+
onMouseOutCapture?: import("react").MouseEventHandler<HTMLTableSectionElement> | undefined;
|
|
227
|
+
onMouseOver?: import("react").MouseEventHandler<HTMLTableSectionElement> | undefined;
|
|
228
|
+
onMouseOverCapture?: import("react").MouseEventHandler<HTMLTableSectionElement> | undefined;
|
|
229
|
+
onMouseUp?: import("react").MouseEventHandler<HTMLTableSectionElement> | undefined;
|
|
230
|
+
onMouseUpCapture?: import("react").MouseEventHandler<HTMLTableSectionElement> | undefined;
|
|
231
|
+
onSelect?: import("react").ReactEventHandler<HTMLTableSectionElement> | undefined;
|
|
232
|
+
onSelectCapture?: import("react").ReactEventHandler<HTMLTableSectionElement> | undefined;
|
|
233
|
+
onTouchCancel?: import("react").TouchEventHandler<HTMLTableSectionElement> | undefined;
|
|
234
|
+
onTouchCancelCapture?: import("react").TouchEventHandler<HTMLTableSectionElement> | undefined;
|
|
235
|
+
onTouchEnd?: import("react").TouchEventHandler<HTMLTableSectionElement> | undefined;
|
|
236
|
+
onTouchEndCapture?: import("react").TouchEventHandler<HTMLTableSectionElement> | undefined;
|
|
237
|
+
onTouchMove?: import("react").TouchEventHandler<HTMLTableSectionElement> | undefined;
|
|
238
|
+
onTouchMoveCapture?: import("react").TouchEventHandler<HTMLTableSectionElement> | undefined;
|
|
239
|
+
onTouchStart?: import("react").TouchEventHandler<HTMLTableSectionElement> | undefined;
|
|
240
|
+
onTouchStartCapture?: import("react").TouchEventHandler<HTMLTableSectionElement> | undefined;
|
|
241
|
+
onPointerDown?: import("react").PointerEventHandler<HTMLTableSectionElement> | undefined;
|
|
242
|
+
onPointerDownCapture?: import("react").PointerEventHandler<HTMLTableSectionElement> | undefined;
|
|
243
|
+
onPointerMove?: import("react").PointerEventHandler<HTMLTableSectionElement> | undefined;
|
|
244
|
+
onPointerMoveCapture?: import("react").PointerEventHandler<HTMLTableSectionElement> | undefined;
|
|
245
|
+
onPointerUp?: import("react").PointerEventHandler<HTMLTableSectionElement> | undefined;
|
|
246
|
+
onPointerUpCapture?: import("react").PointerEventHandler<HTMLTableSectionElement> | undefined;
|
|
247
|
+
onPointerCancel?: import("react").PointerEventHandler<HTMLTableSectionElement> | undefined;
|
|
248
|
+
onPointerCancelCapture?: import("react").PointerEventHandler<HTMLTableSectionElement> | undefined;
|
|
249
|
+
onPointerEnter?: import("react").PointerEventHandler<HTMLTableSectionElement> | undefined;
|
|
250
|
+
onPointerLeave?: import("react").PointerEventHandler<HTMLTableSectionElement> | undefined;
|
|
251
|
+
onPointerOver?: import("react").PointerEventHandler<HTMLTableSectionElement> | undefined;
|
|
252
|
+
onPointerOverCapture?: import("react").PointerEventHandler<HTMLTableSectionElement> | undefined;
|
|
253
|
+
onPointerOut?: import("react").PointerEventHandler<HTMLTableSectionElement> | undefined;
|
|
254
|
+
onPointerOutCapture?: import("react").PointerEventHandler<HTMLTableSectionElement> | undefined;
|
|
255
|
+
onGotPointerCapture?: import("react").PointerEventHandler<HTMLTableSectionElement> | undefined;
|
|
256
|
+
onGotPointerCaptureCapture?: import("react").PointerEventHandler<HTMLTableSectionElement> | undefined;
|
|
257
|
+
onLostPointerCapture?: import("react").PointerEventHandler<HTMLTableSectionElement> | undefined;
|
|
258
|
+
onLostPointerCaptureCapture?: import("react").PointerEventHandler<HTMLTableSectionElement> | undefined;
|
|
259
|
+
onScroll?: import("react").UIEventHandler<HTMLTableSectionElement> | undefined;
|
|
260
|
+
onScrollCapture?: import("react").UIEventHandler<HTMLTableSectionElement> | undefined;
|
|
261
|
+
onWheel?: import("react").WheelEventHandler<HTMLTableSectionElement> | undefined;
|
|
262
|
+
onWheelCapture?: import("react").WheelEventHandler<HTMLTableSectionElement> | undefined;
|
|
263
|
+
onAnimationStart?: import("react").AnimationEventHandler<HTMLTableSectionElement> | undefined;
|
|
264
|
+
onAnimationStartCapture?: import("react").AnimationEventHandler<HTMLTableSectionElement> | undefined;
|
|
265
|
+
onAnimationEnd?: import("react").AnimationEventHandler<HTMLTableSectionElement> | undefined;
|
|
266
|
+
onAnimationEndCapture?: import("react").AnimationEventHandler<HTMLTableSectionElement> | undefined;
|
|
267
|
+
onAnimationIteration?: import("react").AnimationEventHandler<HTMLTableSectionElement> | undefined;
|
|
268
|
+
onAnimationIterationCapture?: import("react").AnimationEventHandler<HTMLTableSectionElement> | undefined;
|
|
269
|
+
onTransitionEnd?: import("react").TransitionEventHandler<HTMLTableSectionElement> | undefined;
|
|
270
|
+
onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLTableSectionElement> | undefined;
|
|
271
|
+
key?: import("react").Key | null | undefined;
|
|
272
|
+
ref?: ((instance: HTMLTableSectionElement | null) => void) | import("react").RefObject<HTMLTableSectionElement> | null | undefined;
|
|
273
|
+
theme: any;
|
|
274
|
+
'data-role': string;
|
|
275
|
+
}, "id" | "onChange" | "slot" | "style" | "title" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "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" | "children" | "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">;
|
|
4
276
|
export declare const TableHeaderRow: import("styled-components").StyledComponent<"tr", any, {}, never>;
|
|
5
277
|
export declare const SortableHeadingCompose: import("styled-components").StyledComponent<"button", any, {
|
|
6
278
|
$custom: boolean;
|
|
@@ -18,7 +18,10 @@ const Table = _styled.table.withConfig({
|
|
|
18
18
|
overflow-x: ${table.getRowModel().rows.length ? "auto" : "hidden"};
|
|
19
19
|
`;
|
|
20
20
|
});
|
|
21
|
-
const TableHead = _styled.thead.
|
|
21
|
+
const TableHead = _styled.thead.attrs((props) => ({
|
|
22
|
+
"data-role": "table-header",
|
|
23
|
+
...props
|
|
24
|
+
})).withConfig({
|
|
22
25
|
displayName: "Tablestyle__TableHead",
|
|
23
26
|
componentId: "RedisUI__sc-o0xfty-2"
|
|
24
27
|
})(["display:table;table-layout:fixed;", ""], () => {
|
|
@@ -52,7 +55,7 @@ const HeaderTitleWrapper = _styled(Typography.Body).withConfig({
|
|
|
52
55
|
const TableTh = _styled.th.withConfig({
|
|
53
56
|
displayName: "Tablestyle__TableTh",
|
|
54
57
|
componentId: "RedisUI__sc-o0xfty-6"
|
|
55
|
-
})(["padding:1.05rem 1.2rem;color:", ";user-select:none;white-space:nowrap;word-break:break-word;line-height:normal;position:relative;overflow:hidden
|
|
58
|
+
})(["padding:1.05rem 1.2rem;color:", ";user-select:none;white-space:nowrap;word-break:break-word;line-height:normal;position:relative;overflow:hidden;&[aria-sort]{cursor:pointer;}&:not(:last-child)::after{content:'';position:absolute;inset:1.05rem 0 1.05rem auto;border-right:1px solid ", ";}"], () => useTheme().components.table.table.tableTh.color, () => useTheme().components.table.table.tableTh.borderRight);
|
|
56
59
|
const TableBody = _styled.tbody.withConfig({
|
|
57
60
|
displayName: "Tablestyle__TableBody",
|
|
58
61
|
componentId: "RedisUI__sc-o0xfty-7"
|
|
@@ -7,7 +7,7 @@ export declare const compositionComponents: {
|
|
|
7
7
|
caption?: string | undefined;
|
|
8
8
|
}) => import("react/jsx-runtime").JSX.Element | null;
|
|
9
9
|
Header: (<T_1 extends object>(props: import("../TableHeader/TableHeader").RestTableHeaderProps) => import("react/jsx-runtime").JSX.Element) & {
|
|
10
|
-
Compose: import("
|
|
10
|
+
Compose: import("react").FC<import("../TableHeader/components/Compose/Compose").TableHeaderComposeProps>;
|
|
11
11
|
Row: (<T_2 extends object>(props: import("../TableHeaderRow/TableHeaderRow").OwnTableHeaderRowProps<T_2> & import("../TableHeaderRow/TableHeaderRow").RestTableHeaderRowProps & import("react").RefAttributes<HTMLTableRowElement>) => import("react").ReactElement<any, any> | null) & {
|
|
12
12
|
Compose: import("styled-components").StyledComponent<"tr", any, {}, never>;
|
|
13
13
|
};
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
3
3
|
const jsxRuntime = require("../../../../../node_modules/react/jsx-runtime.cjs");
|
|
4
4
|
const Table_style = require("../../../../Table.style.cjs");
|
|
5
5
|
const TableBodyCompose = (props) => jsxRuntime.jsxRuntimeExports.jsx(Table_style.TableBody, {
|
|
6
|
+
"data-role": "table-body",
|
|
6
7
|
...props
|
|
7
8
|
});
|
|
8
9
|
exports.TableBodyCompose = TableBodyCompose;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { j as jsxRuntimeExports } from "../../../../../node_modules/react/jsx-runtime.js";
|
|
2
2
|
import { TableBody } from "../../../../Table.style.js";
|
|
3
3
|
const TableBodyCompose = (props) => jsxRuntimeExports.jsx(TableBody, {
|
|
4
|
+
"data-role": "table-body",
|
|
4
5
|
...props
|
|
5
6
|
});
|
|
6
7
|
export {
|
|
@@ -4,7 +4,7 @@ import { TableHeaderComposeProps } from './components/Compose/Compose';
|
|
|
4
4
|
export type RestTableHeaderProps = ChildFree<TableHeaderComposeProps>;
|
|
5
5
|
export type TableHeaderProps = RestTableHeaderProps;
|
|
6
6
|
export declare const TableHeader: (<T extends object>(props: TableHeaderProps) => import("react/jsx-runtime").JSX.Element) & {
|
|
7
|
-
Compose: import("
|
|
7
|
+
Compose: import("react").FC<TableHeaderComposeProps>;
|
|
8
8
|
Row: (<T_1 extends object>(props: import("../TableHeaderRow/TableHeaderRow").OwnTableHeaderRowProps<T_1> & import("../TableHeaderRow/TableHeaderRow").RestTableHeaderRowProps & import("react").RefAttributes<HTMLTableRowElement>) => import("react").ReactElement<any, any> | null) & {
|
|
9
9
|
Compose: import("styled-components").StyledComponent<"tr", any, {}, never>;
|
|
10
10
|
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
1
2
|
import { ComposeElementProps } from '@redislabsdev/redis-ui-components';
|
|
2
3
|
export type TableHeaderComposeProps = ComposeElementProps<HTMLTableSectionElement>;
|
|
3
|
-
export declare const TableHeaderCompose:
|
|
4
|
+
export declare const TableHeaderCompose: FC<TableHeaderComposeProps>;
|
|
@@ -35,7 +35,7 @@ const TableHeaderCellCompose = redisUiComponents.forwardRefWithGenerics(({
|
|
|
35
35
|
...restProps.style,
|
|
36
36
|
...columnCellProps == null ? void 0 : columnCellProps.style
|
|
37
37
|
},
|
|
38
|
-
"aria-hidden": header.isPlaceholder,
|
|
38
|
+
"aria-hidden": header.isPlaceholder ? true : void 0,
|
|
39
39
|
onClick: column.getCanSort() ? column.getToggleSortingHandler() : void 0,
|
|
40
40
|
"aria-sort": column.getCanSort() ? TableHeaderCell_utils.getCurrentAriaSort(header) : void 0,
|
|
41
41
|
scope: "col",
|
|
@@ -33,7 +33,7 @@ const TableHeaderCellCompose = forwardRefWithGenerics(({
|
|
|
33
33
|
...restProps.style,
|
|
34
34
|
...columnCellProps == null ? void 0 : columnCellProps.style
|
|
35
35
|
},
|
|
36
|
-
"aria-hidden": header.isPlaceholder,
|
|
36
|
+
"aria-hidden": header.isPlaceholder ? true : void 0,
|
|
37
37
|
onClick: column.getCanSort() ? column.getToggleSortingHandler() : void 0,
|
|
38
38
|
"aria-sort": column.getCanSort() ? getCurrentAriaSort(header) : void 0,
|
|
39
39
|
scope: "col",
|
|
@@ -7,8 +7,10 @@ const Compose = require("./components/Compose/Compose.cjs");
|
|
|
7
7
|
const TablePagination_style = require("./TablePagination.style.cjs");
|
|
8
8
|
const renderRowCount = ({
|
|
9
9
|
visibleItemCount,
|
|
10
|
-
totalItemCount
|
|
11
|
-
|
|
10
|
+
totalItemCount = 0,
|
|
11
|
+
pageCount,
|
|
12
|
+
pageSize
|
|
13
|
+
}) => totalItemCount > pageSize || pageCount === 1 ? `Showing ${visibleItemCount} out of ${totalItemCount} rows` : `Showing ${visibleItemCount} rows`;
|
|
12
14
|
const renderPageCount = ({
|
|
13
15
|
pageIndex,
|
|
14
16
|
pageCount
|
|
@@ -5,8 +5,10 @@ import { TablePaginationCompose } from "./components/Compose/Compose.js";
|
|
|
5
5
|
import { PaginationBar, InfoLabel, PageSelect, PageSizeSelect, NavigationButton, PageSizeGroup, PageNavGroup, PageSelectGroup } from "./TablePagination.style.js";
|
|
6
6
|
const renderRowCount = ({
|
|
7
7
|
visibleItemCount,
|
|
8
|
-
totalItemCount
|
|
9
|
-
|
|
8
|
+
totalItemCount = 0,
|
|
9
|
+
pageCount,
|
|
10
|
+
pageSize
|
|
11
|
+
}) => totalItemCount > pageSize || pageCount === 1 ? `Showing ${visibleItemCount} out of ${totalItemCount} rows` : `Showing ${visibleItemCount} rows`;
|
|
10
12
|
const renderPageCount = ({
|
|
11
13
|
pageIndex,
|
|
12
14
|
pageCount
|
|
@@ -15,6 +15,7 @@ const usePaginationPlugin = ({
|
|
|
15
15
|
onPaginationChange,
|
|
16
16
|
manualPagination,
|
|
17
17
|
totalRowCount,
|
|
18
|
+
totalPageCount,
|
|
18
19
|
pageSizes,
|
|
19
20
|
paginationEnabled = (pagination || defaultPagination || onPaginationChange || pageSizes) !== void 0 || manualPagination !== void 0
|
|
20
21
|
}) => {
|
|
@@ -32,6 +33,7 @@ const usePaginationPlugin = ({
|
|
|
32
33
|
onPaginationChange: setPaginationState,
|
|
33
34
|
manualPagination,
|
|
34
35
|
rowCount: totalRowCount,
|
|
36
|
+
pageCount: totalPageCount,
|
|
35
37
|
autoResetPageIndex: false
|
|
36
38
|
},
|
|
37
39
|
context: plugin_utils.buildPluginContext(TablePaginationContextKey, {
|
|
@@ -11,6 +11,7 @@ export interface TablePaginationParams extends TablePaginationContext {
|
|
|
11
11
|
onPaginationChange?: (state: PaginationState) => void;
|
|
12
12
|
manualPagination?: boolean;
|
|
13
13
|
totalRowCount?: number;
|
|
14
|
+
totalPageCount?: number;
|
|
14
15
|
}
|
|
15
|
-
export declare const usePaginationPlugin: <T extends object>({ pagination, defaultPagination, onPaginationChange, manualPagination, totalRowCount, pageSizes, paginationEnabled }: TablePaginationParams) => TablePluginData<T>;
|
|
16
|
+
export declare const usePaginationPlugin: <T extends object>({ pagination, defaultPagination, onPaginationChange, manualPagination, totalRowCount, totalPageCount, pageSizes, paginationEnabled }: TablePaginationParams) => TablePluginData<T>;
|
|
16
17
|
export declare const usePaginationContext: () => TablePaginationContext | undefined;
|
|
@@ -13,6 +13,7 @@ const usePaginationPlugin = ({
|
|
|
13
13
|
onPaginationChange,
|
|
14
14
|
manualPagination,
|
|
15
15
|
totalRowCount,
|
|
16
|
+
totalPageCount,
|
|
16
17
|
pageSizes,
|
|
17
18
|
paginationEnabled = (pagination || defaultPagination || onPaginationChange || pageSizes) !== void 0 || manualPagination !== void 0
|
|
18
19
|
}) => {
|
|
@@ -30,6 +31,7 @@ const usePaginationPlugin = ({
|
|
|
30
31
|
onPaginationChange: setPaginationState,
|
|
31
32
|
manualPagination,
|
|
32
33
|
rowCount: totalRowCount,
|
|
34
|
+
pageCount: totalPageCount,
|
|
33
35
|
autoResetPageIndex: false
|
|
34
36
|
},
|
|
35
37
|
context: buildPluginContext(TablePaginationContextKey, {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@redis-ui/table",
|
|
3
3
|
"license": "UNLICENSED",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.23.2",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"registry": "https://npm.pkg.github.com/"
|
|
@@ -28,12 +28,12 @@
|
|
|
28
28
|
"peerDependencies": {
|
|
29
29
|
"react": "^17.0.0 || ^18.0.0",
|
|
30
30
|
"react-dom": "^17.0.0 || ^18.0.0",
|
|
31
|
-
"styled-components": "^5.0.0"
|
|
31
|
+
"styled-components": "^5.0.0",
|
|
32
|
+
"@redis-ui/styles": "^13.1.10"
|
|
32
33
|
},
|
|
33
34
|
"dependencies": {
|
|
34
35
|
"@redis-ui/components": "^41.2.9",
|
|
35
36
|
"@redis-ui/icons": "^6.3.11",
|
|
36
|
-
"@redis-ui/styles": "^13.1.6",
|
|
37
37
|
"@tanstack/react-table": "^8.9.8",
|
|
38
38
|
"type-fest": "^3.13.1"
|
|
39
39
|
},
|