@redis-ui/table 2.4.0 → 2.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Table/Table.cjs +85 -136
- package/dist/Table/Table.context.cjs +16 -1
- package/dist/Table/Table.context.d.ts +22 -4
- package/dist/Table/Table.context.js +16 -1
- package/dist/Table/Table.d.ts +83 -3
- package/dist/Table/Table.js +86 -137
- package/dist/Table/Table.style.cjs +33 -17
- package/dist/Table/Table.style.d.ts +5 -2
- package/dist/Table/Table.style.js +34 -18
- package/dist/Table/Table.types.d.ts +21 -22
- package/dist/Table/components/Compose/Compose.cjs +42 -0
- package/dist/Table/components/Compose/Compose.d.ts +13 -0
- package/dist/Table/components/Compose/Compose.js +42 -0
- package/dist/Table/components/EmptyState/EmptyState.cjs +31 -0
- package/dist/Table/components/EmptyState/EmptyState.d.ts +6 -0
- package/dist/Table/components/EmptyState/EmptyState.js +31 -0
- package/dist/Table/components/ExpandRowButton/ExpandRowButton.cjs +1 -0
- package/dist/Table/components/ExpandRowButton/ExpandRowButton.js +1 -0
- package/dist/Table/components/HiddenCaption/HiddenCaption.cjs +13 -0
- package/dist/Table/components/HiddenCaption/HiddenCaption.d.ts +3 -0
- package/dist/Table/components/HiddenCaption/HiddenCaption.js +13 -0
- package/dist/Table/components/PluggableTable/PluggableTable.cjs +19 -0
- package/dist/Table/components/PluggableTable/PluggableTable.d.ts +10 -0
- package/dist/Table/components/PluggableTable/PluggableTable.js +19 -0
- package/dist/Table/components/PluggableTable/compositionComponents.cjs +21 -0
- package/dist/Table/components/PluggableTable/compositionComponents.d.ts +67 -0
- package/dist/Table/components/PluggableTable/compositionComponents.js +21 -0
- package/dist/Table/components/RowSelection/HeaderMultiRowSelectionButton.cjs +29 -0
- package/dist/Table/components/RowSelection/HeaderMultiRowSelectionButton.d.ts +7 -0
- package/dist/Table/components/RowSelection/HeaderMultiRowSelectionButton.js +29 -0
- package/dist/Table/components/RowSelection/HeaderMultiRowSelectionButton.test.d.ts +1 -0
- package/dist/Table/components/RowSelection/RowSelectionButton.cjs +15 -0
- package/dist/Table/components/RowSelection/RowSelectionButton.d.ts +6 -0
- package/dist/Table/components/RowSelection/RowSelectionButton.js +15 -0
- package/dist/Table/components/RowSelection/RowSelectionButton.test.d.ts +1 -0
- package/dist/Table/components/TableBody/TableBody.cjs +33 -0
- package/dist/Table/components/TableBody/TableBody.d.ts +23 -0
- package/dist/Table/components/TableBody/TableBody.js +33 -0
- package/dist/Table/components/TableBody/components/Compose/Compose.cjs +10 -0
- package/dist/Table/components/TableBody/components/Compose/Compose.d.ts +3 -0
- package/dist/Table/components/TableBody/components/Compose/Compose.js +10 -0
- package/dist/Table/components/TableBodyCell/TableBodyCell.cjs +22 -0
- package/dist/Table/components/TableBodyCell/TableBodyCell.d.ts +12 -0
- package/dist/Table/components/TableBodyCell/TableBodyCell.js +22 -0
- package/dist/Table/components/TableBodyCell/components/Compose/Compose.cjs +5 -0
- package/dist/Table/components/TableBodyCell/components/Compose/Compose.d.ts +3 -0
- package/dist/Table/components/TableBodyCell/components/Compose/Compose.js +5 -0
- package/dist/Table/components/TableBodyRow/TableBodyRow.cjs +38 -0
- package/dist/Table/components/TableBodyRow/TableBodyRow.d.ts +20 -0
- package/dist/Table/components/TableBodyRow/TableBodyRow.js +38 -0
- package/dist/Table/components/TableBodyRow/TableBodyRowExpandable.cjs +33 -0
- package/dist/Table/components/TableBodyRow/TableBodyRowExpandable.d.ts +2 -0
- package/dist/Table/components/TableBodyRow/TableBodyRowExpandable.js +33 -0
- package/dist/Table/components/TableBodyRow/components/Compose/Compose.cjs +17 -0
- package/dist/Table/components/TableBodyRow/components/Compose/Compose.d.ts +4 -0
- package/dist/Table/components/TableBodyRow/components/Compose/Compose.js +17 -0
- package/dist/Table/components/TableExpandedRow/TableAnimatedExpandedRow.cjs +3 -4
- package/dist/Table/components/TableExpandedRow/TableAnimatedExpandedRow.d.ts +1 -1
- package/dist/Table/components/TableExpandedRow/TableAnimatedExpandedRow.js +3 -4
- package/dist/Table/components/TableExpandedRow/TableAnimatedExpandedRow.style.cjs +1 -1
- package/dist/Table/components/TableExpandedRow/TableAnimatedExpandedRow.style.js +1 -1
- package/dist/Table/components/TableExpandedRow/TableExpandedRow.cjs +9 -4
- package/dist/Table/components/TableExpandedRow/TableExpandedRow.d.ts +1 -1
- package/dist/Table/components/TableExpandedRow/TableExpandedRow.js +9 -4
- 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 -5
- package/dist/Table/components/TableHeader/TableHeader.cjs +28 -0
- package/dist/Table/components/TableHeader/TableHeader.d.ts +21 -0
- package/dist/Table/components/TableHeader/TableHeader.js +28 -0
- package/dist/Table/components/TableHeader/components/Compose/Compose.cjs +5 -0
- package/dist/Table/components/TableHeader/components/Compose/Compose.d.ts +3 -0
- package/dist/Table/components/TableHeader/components/Compose/Compose.js +5 -0
- package/dist/Table/components/TableHeaderCell/SRSortingNotification.cjs +19 -0
- package/dist/Table/components/TableHeaderCell/SRSortingNotification.d.ts +1 -0
- package/dist/Table/components/TableHeaderCell/SRSortingNotification.js +19 -0
- package/dist/Table/components/TableHeaderCell/TableHeaderCell.cjs +23 -0
- package/dist/Table/components/TableHeaderCell/TableHeaderCell.context.cjs +15 -0
- package/dist/Table/components/TableHeaderCell/TableHeaderCell.context.d.ts +8 -0
- package/dist/Table/components/TableHeaderCell/TableHeaderCell.context.js +15 -0
- package/dist/Table/components/TableHeaderCell/TableHeaderCell.d.ts +16 -0
- package/dist/Table/components/TableHeaderCell/TableHeaderCell.js +23 -0
- package/dist/Table/components/TableHeaderCell/TableHeaderCell.test.d.ts +1 -0
- package/dist/Table/components/TableHeaderCell/TableHeaderCell.types.d.ts +13 -0
- package/dist/Table/components/TableHeaderCell/TableHeaderCell.utils.cjs +79 -0
- package/dist/Table/components/TableHeaderCell/TableHeaderCell.utils.d.ts +10 -0
- package/dist/Table/components/TableHeaderCell/TableHeaderCell.utils.js +79 -0
- package/dist/Table/components/TableHeaderCell/components/Compose/Compose.cjs +40 -0
- package/dist/Table/components/TableHeaderCell/components/Compose/Compose.d.ts +9 -0
- package/dist/Table/components/TableHeaderCell/components/Compose/Compose.js +40 -0
- package/dist/Table/components/TableHeaderCell/components/Heading/Heading.cjs +34 -0
- package/dist/Table/components/TableHeaderCell/components/Heading/Heading.d.ts +5 -0
- package/dist/Table/components/TableHeaderCell/components/Heading/Heading.js +34 -0
- package/dist/Table/components/TableHeaderCell/components/SortableHeading/SortableHeading.cjs +16 -0
- package/dist/Table/components/TableHeaderCell/components/SortableHeading/SortableHeading.d.ts +8 -0
- package/dist/Table/components/TableHeaderCell/components/SortableHeading/SortableHeading.js +16 -0
- package/dist/Table/components/TableHeaderCell/components/SortableHeading/components/Compose/Compose.cjs +23 -0
- package/dist/Table/components/TableHeaderCell/components/SortableHeading/components/Compose/Compose.d.ts +5 -0
- package/dist/Table/components/TableHeaderCell/components/SortableHeading/components/Compose/Compose.js +23 -0
- package/dist/Table/components/TableHeaderCell/components/SortableHeading/components/SortIndicator/SortIndicator.cjs +6 -0
- package/dist/Table/components/TableHeaderCell/components/SortableHeading/components/SortIndicator/SortIndicator.d.ts +2 -0
- package/dist/Table/components/TableHeaderCell/components/SortableHeading/components/SortIndicator/SortIndicator.js +6 -0
- package/dist/Table/components/TableHeaderRow/TableHeaderRow.cjs +27 -0
- package/dist/Table/components/TableHeaderRow/TableHeaderRow.d.ts +12 -0
- package/dist/Table/components/TableHeaderRow/TableHeaderRow.js +27 -0
- package/dist/Table/components/TableHeaderRow/components/Compose/Compose.cjs +5 -0
- package/dist/Table/components/TableHeaderRow/components/Compose/Compose.d.ts +3 -0
- package/dist/Table/components/TableHeaderRow/components/Compose/Compose.js +5 -0
- package/dist/Table/components/TablePagination/TablePagination.cjs +63 -78
- package/dist/Table/components/TablePagination/TablePagination.d.ts +23 -3
- package/dist/Table/components/TablePagination/TablePagination.js +64 -79
- package/dist/Table/components/TablePagination/TablePagination.style.cjs +78 -53
- package/dist/Table/components/TablePagination/TablePagination.style.d.ts +17 -49
- package/dist/Table/components/TablePagination/TablePagination.style.js +80 -55
- package/dist/Table/components/TablePagination/components/Compose/Compose.cjs +41 -0
- package/dist/Table/components/TablePagination/components/Compose/Compose.d.ts +3 -0
- package/dist/Table/components/TablePagination/components/Compose/Compose.js +41 -0
- package/dist/Table/components/TableRoot/TableRoot.cjs +5 -0
- package/dist/Table/components/TableRoot/TableRoot.d.ts +1 -0
- package/dist/Table/components/TableRoot/TableRoot.js +5 -0
- package/dist/Table/index.d.ts +3 -6
- package/dist/Table/plugins/ClickableRowPlugin.cjs +48 -0
- package/dist/Table/plugins/ClickableRowPlugin.d.ts +25 -0
- package/dist/Table/plugins/ClickableRowPlugin.js +48 -0
- package/dist/Table/plugins/ExpandableRowPlugin.cjs +38 -0
- package/dist/Table/plugins/ExpandableRowPlugin.d.ts +22 -0
- package/dist/Table/plugins/ExpandableRowPlugin.js +38 -0
- package/dist/Table/plugins/PaginationPlugin.cjs +45 -0
- package/dist/Table/plugins/PaginationPlugin.d.ts +16 -0
- package/dist/Table/plugins/PaginationPlugin.js +45 -0
- package/dist/Table/plugins/RowSelectionPlugin.cjs +28 -0
- package/dist/Table/plugins/RowSelectionPlugin.d.ts +12 -0
- package/dist/Table/plugins/RowSelectionPlugin.js +28 -0
- package/dist/Table/plugins/SortingPlugin.cjs +44 -0
- package/dist/Table/plugins/SortingPlugin.d.ts +18 -0
- package/dist/Table/plugins/SortingPlugin.js +44 -0
- package/dist/Table/tanStackExtendedTypes.d.ts +11 -0
- package/dist/Table/utils/plugin.utils.cjs +49 -0
- package/dist/Table/utils/plugin.utils.d.ts +17 -0
- package/dist/Table/utils/plugin.utils.js +49 -0
- package/dist/Table/utils/plugin.utils.test.d.ts +1 -0
- package/dist/index.cjs +60 -0
- package/dist/index.js +61 -1
- package/dist/node_modules/@radix-ui/react-primitive/dist/index.cjs +55 -0
- package/dist/node_modules/@radix-ui/react-primitive/dist/index.js +37 -0
- package/dist/node_modules/@radix-ui/react-slot/dist/index.cjs +100 -0
- package/dist/node_modules/@radix-ui/react-slot/dist/index.js +82 -0
- package/dist/node_modules/@radix-ui/react-visually-hidden/dist/index.cjs +51 -0
- package/dist/node_modules/@radix-ui/react-visually-hidden/dist/index.js +33 -0
- package/dist/node_modules/@tanstack/react-table/build/lib/index.cjs +7 -0
- package/dist/node_modules/@tanstack/react-table/build/lib/index.js +8 -1
- package/dist/node_modules/@tanstack/table-core/build/lib/index.cjs +361 -4
- package/dist/node_modules/@tanstack/table-core/build/lib/index.js +361 -4
- package/package.json +7 -5
|
@@ -1,93 +1,78 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
3
|
const jsxRuntime = require("../../../node_modules/react/jsx-runtime.cjs");
|
|
4
|
-
const
|
|
5
|
-
const
|
|
4
|
+
const redisUiComponents = require("@redislabsdev/redis-ui-components");
|
|
5
|
+
const PaginationPlugin = require("../../plugins/PaginationPlugin.cjs");
|
|
6
|
+
const Compose = require("./components/Compose/Compose.cjs");
|
|
6
7
|
const TablePagination_style = require("./TablePagination.style.cjs");
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}) => {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
8
|
+
const renderRowCount = ({
|
|
9
|
+
visibleItemCount,
|
|
10
|
+
totalItemCount
|
|
11
|
+
}) => `Showing ${visibleItemCount} out of ${totalItemCount} rows`;
|
|
12
|
+
const renderPageCount = ({
|
|
13
|
+
pageIndex,
|
|
14
|
+
pageCount
|
|
15
|
+
}) => `${pageIndex + 1} of ${pageCount}`;
|
|
16
|
+
const renderTotalPageCount = ({
|
|
17
|
+
pageCount
|
|
18
|
+
}) => `of ${pageCount}`;
|
|
19
|
+
const TablePagination = Object.assign(() => {
|
|
20
|
+
const pagination = PaginationPlugin.usePaginationContext();
|
|
21
|
+
if (!pagination) {
|
|
15
22
|
return null;
|
|
16
23
|
}
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
const handlePageIndexChange = (index) => {
|
|
27
|
-
table.setPageIndex(index);
|
|
28
|
-
};
|
|
29
|
-
return jsxRuntime.jsxRuntimeExports.jsx(TablePagination_style.PaginationRow, {
|
|
30
|
-
"data-role": "pagination",
|
|
31
|
-
children: jsxRuntime.jsxRuntimeExports.jsxs(jsxRuntime.jsxRuntimeExports.Fragment, {
|
|
32
|
-
children: [jsxRuntime.jsxRuntimeExports.jsxs(TablePagination_style.CountInfo, {
|
|
33
|
-
children: ["Showing ", table.getRowModel().rows.length, " out of ", totalRowCount, " rows"]
|
|
34
|
-
}), jsxRuntime.jsxRuntimeExports.jsxs("div", {
|
|
35
|
-
style: {
|
|
36
|
-
display: "flex",
|
|
37
|
-
alignItems: "center",
|
|
38
|
-
gap: "1rem"
|
|
39
|
-
},
|
|
40
|
-
children: [jsxRuntime.jsxRuntimeExports.jsx(TablePagination_style.ItemPerPageText, {
|
|
24
|
+
return jsxRuntime.jsxRuntimeExports.jsx(TablePagination.Compose, {
|
|
25
|
+
children: jsxRuntime.jsxRuntimeExports.jsxs(TablePagination.Bar, {
|
|
26
|
+
"data-role": "pagination",
|
|
27
|
+
children: [jsxRuntime.jsxRuntimeExports.jsx(TablePagination.InfoLabel, {
|
|
28
|
+
renderer: renderRowCount,
|
|
29
|
+
ellipsis: true,
|
|
30
|
+
tooltipOnEllipsis: true
|
|
31
|
+
}), jsxRuntime.jsxRuntimeExports.jsx(TablePagination.Split, {}), jsxRuntime.jsxRuntimeExports.jsxs(TablePagination.PageSizeGroup, {
|
|
32
|
+
children: [jsxRuntime.jsxRuntimeExports.jsx(TablePagination.PageSizeSelect.Label, {
|
|
41
33
|
children: "Items per page:"
|
|
42
|
-
}), jsxRuntime.jsxRuntimeExports.jsx(
|
|
43
|
-
|
|
44
|
-
onChange: handlePageSizeChange,
|
|
45
|
-
disabled: pageSizes[0] > totalRowCount,
|
|
46
|
-
options: pageSizes.map(String).map((value) => ({
|
|
47
|
-
value
|
|
48
|
-
}))
|
|
34
|
+
}), jsxRuntime.jsxRuntimeExports.jsx(TablePagination.PageSizeSelect, {
|
|
35
|
+
pageSizes: pagination.pageSizes
|
|
49
36
|
})]
|
|
50
|
-
}), jsxRuntime.jsxRuntimeExports.jsxs(
|
|
51
|
-
children: [jsxRuntime.jsxRuntimeExports.
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
}), jsxRuntime.jsxRuntimeExports.jsxs(
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
onClick: () => handlePageIndexChange(pageIndex + 1),
|
|
68
|
-
disabled: pageIndex === pageCount - 1
|
|
69
|
-
}), jsxRuntime.jsxRuntimeExports.jsx(TablePagination_style.PaginationIconButton, {
|
|
70
|
-
icon: redisUiIcons.DoubleChevronRightIcon,
|
|
71
|
-
size: "S",
|
|
72
|
-
onClick: () => handlePageIndexChange(pageCount - 1),
|
|
73
|
-
disabled: pageIndex === pageCount - 1
|
|
37
|
+
}), jsxRuntime.jsxRuntimeExports.jsxs(TablePagination.PageNavGroup, {
|
|
38
|
+
children: [jsxRuntime.jsxRuntimeExports.jsxs("div", {
|
|
39
|
+
children: [jsxRuntime.jsxRuntimeExports.jsx(TablePagination.NavigationButton, {
|
|
40
|
+
navType: "first"
|
|
41
|
+
}), jsxRuntime.jsxRuntimeExports.jsx(TablePagination.NavigationButton, {
|
|
42
|
+
navType: "prev"
|
|
43
|
+
})]
|
|
44
|
+
}), jsxRuntime.jsxRuntimeExports.jsx(TablePagination.InfoLabel, {
|
|
45
|
+
ellipsis: true,
|
|
46
|
+
tooltipOnEllipsis: true,
|
|
47
|
+
renderer: renderPageCount
|
|
48
|
+
}), jsxRuntime.jsxRuntimeExports.jsxs("div", {
|
|
49
|
+
children: [jsxRuntime.jsxRuntimeExports.jsx(TablePagination.NavigationButton, {
|
|
50
|
+
navType: "next"
|
|
51
|
+
}), jsxRuntime.jsxRuntimeExports.jsx(TablePagination.NavigationButton, {
|
|
52
|
+
navType: "last"
|
|
53
|
+
})]
|
|
74
54
|
})]
|
|
75
|
-
}), jsxRuntime.jsxRuntimeExports.jsxs(
|
|
76
|
-
children: [jsxRuntime.jsxRuntimeExports.jsx(
|
|
55
|
+
}), jsxRuntime.jsxRuntimeExports.jsxs(TablePagination.PageSelectGroup, {
|
|
56
|
+
children: [jsxRuntime.jsxRuntimeExports.jsx(TablePagination.PageSelect.Label, {
|
|
77
57
|
children: "Page"
|
|
78
|
-
}), jsxRuntime.jsxRuntimeExports.jsx(
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
length: pageCount
|
|
83
|
-
}, (_, i) => String(i + 1)).map((value) => ({
|
|
84
|
-
value
|
|
85
|
-
}))
|
|
86
|
-
}), jsxRuntime.jsxRuntimeExports.jsxs(TablePagination_style.TotalPagesText, {
|
|
87
|
-
children: ["of ", pageCount]
|
|
58
|
+
}), jsxRuntime.jsxRuntimeExports.jsx(TablePagination.PageSelect, {}), jsxRuntime.jsxRuntimeExports.jsx(TablePagination.InfoLabel, {
|
|
59
|
+
ellipsis: true,
|
|
60
|
+
tooltipOnEllipsis: true,
|
|
61
|
+
renderer: renderTotalPageCount
|
|
88
62
|
})]
|
|
89
63
|
})]
|
|
90
64
|
})
|
|
91
65
|
});
|
|
92
|
-
}
|
|
66
|
+
}, {
|
|
67
|
+
Compose: Compose.TablePaginationCompose,
|
|
68
|
+
Bar: TablePagination_style.PaginationBar,
|
|
69
|
+
Split: redisUiComponents.Pagination.Split,
|
|
70
|
+
InfoLabel: TablePagination_style.InfoLabel,
|
|
71
|
+
PageSelect: TablePagination_style.PageSelect,
|
|
72
|
+
PageSizeSelect: TablePagination_style.PageSizeSelect,
|
|
73
|
+
NavigationButton: TablePagination_style.NavigationButton,
|
|
74
|
+
PageSizeGroup: TablePagination_style.PageSizeGroup,
|
|
75
|
+
PageNavGroup: TablePagination_style.PageNavGroup,
|
|
76
|
+
PageSelectGroup: TablePagination_style.PageSelectGroup
|
|
77
|
+
});
|
|
93
78
|
exports.default = TablePagination;
|
|
@@ -1,4 +1,24 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
}) => import("react/jsx-runtime").JSX.Element | null;
|
|
1
|
+
import { PaginationInfoLabelProps } from '@redislabsdev/redis-ui-components';
|
|
2
|
+
declare const TablePagination: (() => import("react/jsx-runtime").JSX.Element | null) & {
|
|
3
|
+
Compose: ({ children }: import("@redislabsdev/redis-ui-components").ComposeChildrenProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
4
|
+
Bar: import("styled-components").StyledComponent<"nav", any, {
|
|
5
|
+
'aria-label': string;
|
|
6
|
+
} & {
|
|
7
|
+
'aria-label': string;
|
|
8
|
+
}, "aria-label">;
|
|
9
|
+
Split: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
10
|
+
InfoLabel: import("styled-components").StyledComponent<({ renderer, ...restProps }: PaginationInfoLabelProps) => import("react/jsx-runtime").JSX.Element, any, {}, never>;
|
|
11
|
+
PageSelect: import("styled-components").StyledComponent<{
|
|
12
|
+
({ ...restProps }: import("@redislabsdev/redis-ui-components").PaginationPageSelectProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
Label: ({ children, ...restProps }: import("@redislabsdev/redis-ui-components").TypographyBodyProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
}, any, {}, never>;
|
|
15
|
+
PageSizeSelect: import("styled-components").StyledComponent<{
|
|
16
|
+
({ pageSizes, ...restProps }: import("@redislabsdev/redis-ui-components").PaginationPageSizeSelectProps): import("react/jsx-runtime").JSX.Element | null;
|
|
17
|
+
Label: ({ children, ...restProps }: import("@redislabsdev/redis-ui-components").TypographyBodyProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
18
|
+
}, any, {}, never>;
|
|
19
|
+
NavigationButton: import("styled-components").StyledComponent<({ navType, ...restProps }: import("@redislabsdev/redis-ui-components").PaginationNavigationButtonProps) => import("react/jsx-runtime").JSX.Element, any, {}, never>;
|
|
20
|
+
PageSizeGroup: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
21
|
+
PageNavGroup: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
22
|
+
PageSelectGroup: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
23
|
+
};
|
|
4
24
|
export default TablePagination;
|
|
@@ -1,93 +1,78 @@
|
|
|
1
1
|
import { j as jsxRuntimeExports } from "../../../node_modules/react/jsx-runtime.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
2
|
+
import { Pagination } from "@redislabsdev/redis-ui-components";
|
|
3
|
+
import { usePaginationContext } from "../../plugins/PaginationPlugin.js";
|
|
4
|
+
import { TablePaginationCompose } from "./components/Compose/Compose.js";
|
|
5
|
+
import { PaginationBar, InfoLabel, PageSelect, PageSizeSelect, NavigationButton, PageSizeGroup, PageNavGroup, PageSelectGroup } from "./TablePagination.style.js";
|
|
6
|
+
const renderRowCount = ({
|
|
7
|
+
visibleItemCount,
|
|
8
|
+
totalItemCount
|
|
9
|
+
}) => `Showing ${visibleItemCount} out of ${totalItemCount} rows`;
|
|
10
|
+
const renderPageCount = ({
|
|
11
|
+
pageIndex,
|
|
12
|
+
pageCount
|
|
13
|
+
}) => `${pageIndex + 1} of ${pageCount}`;
|
|
14
|
+
const renderTotalPageCount = ({
|
|
15
|
+
pageCount
|
|
16
|
+
}) => `of ${pageCount}`;
|
|
17
|
+
const TablePagination = Object.assign(() => {
|
|
18
|
+
const pagination = usePaginationContext();
|
|
19
|
+
if (!pagination) {
|
|
13
20
|
return null;
|
|
14
21
|
}
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
const handlePageIndexChange = (index) => {
|
|
25
|
-
table.setPageIndex(index);
|
|
26
|
-
};
|
|
27
|
-
return jsxRuntimeExports.jsx(PaginationRow, {
|
|
28
|
-
"data-role": "pagination",
|
|
29
|
-
children: jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, {
|
|
30
|
-
children: [jsxRuntimeExports.jsxs(CountInfo, {
|
|
31
|
-
children: ["Showing ", table.getRowModel().rows.length, " out of ", totalRowCount, " rows"]
|
|
32
|
-
}), jsxRuntimeExports.jsxs("div", {
|
|
33
|
-
style: {
|
|
34
|
-
display: "flex",
|
|
35
|
-
alignItems: "center",
|
|
36
|
-
gap: "1rem"
|
|
37
|
-
},
|
|
38
|
-
children: [jsxRuntimeExports.jsx(ItemPerPageText, {
|
|
22
|
+
return jsxRuntimeExports.jsx(TablePagination.Compose, {
|
|
23
|
+
children: jsxRuntimeExports.jsxs(TablePagination.Bar, {
|
|
24
|
+
"data-role": "pagination",
|
|
25
|
+
children: [jsxRuntimeExports.jsx(TablePagination.InfoLabel, {
|
|
26
|
+
renderer: renderRowCount,
|
|
27
|
+
ellipsis: true,
|
|
28
|
+
tooltipOnEllipsis: true
|
|
29
|
+
}), jsxRuntimeExports.jsx(TablePagination.Split, {}), jsxRuntimeExports.jsxs(TablePagination.PageSizeGroup, {
|
|
30
|
+
children: [jsxRuntimeExports.jsx(TablePagination.PageSizeSelect.Label, {
|
|
39
31
|
children: "Items per page:"
|
|
40
|
-
}), jsxRuntimeExports.jsx(
|
|
41
|
-
|
|
42
|
-
onChange: handlePageSizeChange,
|
|
43
|
-
disabled: pageSizes[0] > totalRowCount,
|
|
44
|
-
options: pageSizes.map(String).map((value) => ({
|
|
45
|
-
value
|
|
46
|
-
}))
|
|
32
|
+
}), jsxRuntimeExports.jsx(TablePagination.PageSizeSelect, {
|
|
33
|
+
pageSizes: pagination.pageSizes
|
|
47
34
|
})]
|
|
48
|
-
}), jsxRuntimeExports.jsxs(
|
|
49
|
-
children: [jsxRuntimeExports.
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
}), jsxRuntimeExports.jsxs(
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
onClick: () => handlePageIndexChange(pageIndex + 1),
|
|
66
|
-
disabled: pageIndex === pageCount - 1
|
|
67
|
-
}), jsxRuntimeExports.jsx(PaginationIconButton, {
|
|
68
|
-
icon: DoubleChevronRightIcon,
|
|
69
|
-
size: "S",
|
|
70
|
-
onClick: () => handlePageIndexChange(pageCount - 1),
|
|
71
|
-
disabled: pageIndex === pageCount - 1
|
|
35
|
+
}), jsxRuntimeExports.jsxs(TablePagination.PageNavGroup, {
|
|
36
|
+
children: [jsxRuntimeExports.jsxs("div", {
|
|
37
|
+
children: [jsxRuntimeExports.jsx(TablePagination.NavigationButton, {
|
|
38
|
+
navType: "first"
|
|
39
|
+
}), jsxRuntimeExports.jsx(TablePagination.NavigationButton, {
|
|
40
|
+
navType: "prev"
|
|
41
|
+
})]
|
|
42
|
+
}), jsxRuntimeExports.jsx(TablePagination.InfoLabel, {
|
|
43
|
+
ellipsis: true,
|
|
44
|
+
tooltipOnEllipsis: true,
|
|
45
|
+
renderer: renderPageCount
|
|
46
|
+
}), jsxRuntimeExports.jsxs("div", {
|
|
47
|
+
children: [jsxRuntimeExports.jsx(TablePagination.NavigationButton, {
|
|
48
|
+
navType: "next"
|
|
49
|
+
}), jsxRuntimeExports.jsx(TablePagination.NavigationButton, {
|
|
50
|
+
navType: "last"
|
|
51
|
+
})]
|
|
72
52
|
})]
|
|
73
|
-
}), jsxRuntimeExports.jsxs(
|
|
74
|
-
children: [jsxRuntimeExports.jsx(
|
|
53
|
+
}), jsxRuntimeExports.jsxs(TablePagination.PageSelectGroup, {
|
|
54
|
+
children: [jsxRuntimeExports.jsx(TablePagination.PageSelect.Label, {
|
|
75
55
|
children: "Page"
|
|
76
|
-
}), jsxRuntimeExports.jsx(
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
length: pageCount
|
|
81
|
-
}, (_, i) => String(i + 1)).map((value) => ({
|
|
82
|
-
value
|
|
83
|
-
}))
|
|
84
|
-
}), jsxRuntimeExports.jsxs(TotalPagesText, {
|
|
85
|
-
children: ["of ", pageCount]
|
|
56
|
+
}), jsxRuntimeExports.jsx(TablePagination.PageSelect, {}), jsxRuntimeExports.jsx(TablePagination.InfoLabel, {
|
|
57
|
+
ellipsis: true,
|
|
58
|
+
tooltipOnEllipsis: true,
|
|
59
|
+
renderer: renderTotalPageCount
|
|
86
60
|
})]
|
|
87
61
|
})]
|
|
88
62
|
})
|
|
89
63
|
});
|
|
90
|
-
}
|
|
64
|
+
}, {
|
|
65
|
+
Compose: TablePaginationCompose,
|
|
66
|
+
Bar: PaginationBar,
|
|
67
|
+
Split: Pagination.Split,
|
|
68
|
+
InfoLabel,
|
|
69
|
+
PageSelect,
|
|
70
|
+
PageSizeSelect,
|
|
71
|
+
NavigationButton,
|
|
72
|
+
PageSizeGroup,
|
|
73
|
+
PageNavGroup,
|
|
74
|
+
PageSelectGroup
|
|
75
|
+
});
|
|
91
76
|
export {
|
|
92
77
|
TablePagination as default
|
|
93
78
|
};
|
|
@@ -5,56 +5,81 @@ const redisUiStyles = require("@redislabsdev/redis-ui-styles");
|
|
|
5
5
|
const redisUiComponents = require("@redislabsdev/redis-ui-components");
|
|
6
6
|
const _interopDefault = (e) => e && e.__esModule ? e : { default: e };
|
|
7
7
|
const _styled__default = /* @__PURE__ */ _interopDefault(_styled);
|
|
8
|
-
const
|
|
9
|
-
displayName: "
|
|
10
|
-
componentId: "
|
|
11
|
-
})(["
|
|
12
|
-
const
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
})
|
|
24
|
-
const
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
})
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
8
|
+
const NavigationButton = _styled__default.default(redisUiComponents.Pagination.NavigationButton).withConfig({
|
|
9
|
+
displayName: "TablePaginationstyle__NavigationButton",
|
|
10
|
+
componentId: "RedisUI__sc-ccqfi0-0"
|
|
11
|
+
})(["", ";"], () => {
|
|
12
|
+
const styles = redisUiStyles.useTheme().components.table.pagination.navButton;
|
|
13
|
+
return _styled.css`
|
|
14
|
+
width: ${styles.width};
|
|
15
|
+
height: ${styles.height};
|
|
16
|
+
padding: ${styles.padding};
|
|
17
|
+
color: ${styles.color};
|
|
18
|
+
|
|
19
|
+
&:disabled {
|
|
20
|
+
color: ${styles.disabledColor};
|
|
21
|
+
}
|
|
22
|
+
`;
|
|
23
|
+
});
|
|
24
|
+
const PaginationBar = _styled__default.default(redisUiComponents.Pagination.Bar).attrs(({
|
|
25
|
+
"aria-label": al
|
|
26
|
+
}) => ({
|
|
27
|
+
"aria-label": al ?? "Table Pagination"
|
|
28
|
+
})).withConfig({
|
|
29
|
+
displayName: "TablePaginationstyle__PaginationBar",
|
|
30
|
+
componentId: "RedisUI__sc-ccqfi0-1"
|
|
31
|
+
})(["", " width:100%;overflow:auto hidden;> *{flex:none;}"], () => {
|
|
32
|
+
const styles = redisUiStyles.useTheme().components.table.pagination.bar;
|
|
33
|
+
return _styled.css`
|
|
34
|
+
font-size: ${styles.fontSize};
|
|
35
|
+
gap: ${styles.gap};
|
|
36
|
+
height: ${styles.height};
|
|
37
|
+
padding: ${styles.padding};
|
|
38
|
+
border: solid ${styles.borderColor};
|
|
39
|
+
border-width: ${styles.borderSize};
|
|
40
|
+
color: ${styles.textColor};
|
|
41
|
+
`;
|
|
42
|
+
});
|
|
43
|
+
const InfoLabel = _styled__default.default(redisUiComponents.Pagination.InfoLabel).withConfig({
|
|
44
|
+
displayName: "TablePaginationstyle__InfoLabel",
|
|
45
|
+
componentId: "RedisUI__sc-ccqfi0-2"
|
|
46
|
+
})(["line-height:", ";"], () => redisUiStyles.useTheme().components.table.pagination.select.height);
|
|
47
|
+
const useSelectStyles = () => {
|
|
48
|
+
const styles = redisUiStyles.useTheme().components.table.pagination.select;
|
|
49
|
+
return _styled.css`
|
|
50
|
+
gap: ${styles.gap};
|
|
51
|
+
height: ${styles.height};
|
|
52
|
+
padding: ${styles.padding};
|
|
53
|
+
color: ${styles.textColor};
|
|
54
|
+
font-size: ${styles.fontSize};
|
|
55
|
+
line-height: initial;
|
|
56
|
+
`;
|
|
57
|
+
};
|
|
58
|
+
const PageSizeSelect = _styled__default.default(redisUiComponents.Pagination.PageSizeSelect).withConfig({
|
|
59
|
+
displayName: "TablePaginationstyle__PageSizeSelect",
|
|
60
|
+
componentId: "RedisUI__sc-ccqfi0-3"
|
|
61
|
+
})(["", ""], useSelectStyles);
|
|
62
|
+
const PageSelect = _styled__default.default(redisUiComponents.Pagination.PageSelect).withConfig({
|
|
63
|
+
displayName: "TablePaginationstyle__PageSelect",
|
|
64
|
+
componentId: "RedisUI__sc-ccqfi0-4"
|
|
65
|
+
})(["", ""], useSelectStyles);
|
|
66
|
+
const PageSizeGroup = _styled__default.default(redisUiComponents.Pagination.Group).withConfig({
|
|
67
|
+
displayName: "TablePaginationstyle__PageSizeGroup",
|
|
68
|
+
componentId: "RedisUI__sc-ccqfi0-5"
|
|
69
|
+
})(["gap:1rem;"]);
|
|
70
|
+
const PageNavGroup = _styled__default.default(redisUiComponents.Pagination.Group).withConfig({
|
|
71
|
+
displayName: "TablePaginationstyle__PageNavGroup",
|
|
72
|
+
componentId: "RedisUI__sc-ccqfi0-6"
|
|
73
|
+
})(["gap:0.4rem;"]);
|
|
74
|
+
const PageSelectGroup = _styled__default.default(redisUiComponents.Pagination.Group).withConfig({
|
|
75
|
+
displayName: "TablePaginationstyle__PageSelectGroup",
|
|
76
|
+
componentId: "RedisUI__sc-ccqfi0-7"
|
|
77
|
+
})(["gap:0.4rem;"]);
|
|
78
|
+
exports.InfoLabel = InfoLabel;
|
|
79
|
+
exports.NavigationButton = NavigationButton;
|
|
80
|
+
exports.PageNavGroup = PageNavGroup;
|
|
81
|
+
exports.PageSelect = PageSelect;
|
|
82
|
+
exports.PageSelectGroup = PageSelectGroup;
|
|
83
|
+
exports.PageSizeGroup = PageSizeGroup;
|
|
84
|
+
exports.PageSizeSelect = PageSizeSelect;
|
|
85
|
+
exports.PaginationBar = PaginationBar;
|
|
@@ -1,50 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
allowReset?: boolean | undefined;
|
|
12
|
-
loading?: boolean | undefined;
|
|
13
|
-
} & import("@redislabsdev/redis-ui-components/dist/Select/components/Trigger/components/Compose/Compose.types").RestSelectTriggerComposeProps) => import("react/jsx-runtime").JSX.Element) & {
|
|
14
|
-
Compose: ({ customContainer, id, ...restProps }: import("@redislabsdev/redis-ui-components/dist/Select/components/Trigger/components/Compose/Compose.types").SelectTriggerComposeProps & import("@redislabsdev/redis-ui-components/dist/Select/components/Trigger/components/Compose/Compose.types").RestSelectTriggerComposeProps & import("@redislabsdev/redis-ui-components/dist/Helpers/common.types").ComposeChildrenProps) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
-
Value: <TOption_3 extends import("@redislabsdev/redis-ui-components").SelectOption<string> = import("@redislabsdev/redis-ui-components").SelectOption<string>>({ placeholder, valueRender, ...restProps }: import("@redislabsdev/redis-ui-components/dist/Select/components/Trigger/components/Value/Value.types").SelectTriggerValueProps<TOption_3> & import("@redislabsdev/redis-ui-components/dist/Select/components/Trigger/components/Value/Value.types").RestSelectTriggerValueProps) => import("react/jsx-runtime").JSX.Element;
|
|
16
|
-
ResetButton: ({ children, title, ...restProps }: import("react").HTMLAttributes<HTMLButtonElement>) => import("react/jsx-runtime").JSX.Element | null;
|
|
17
|
-
StatusIndicator: (props: import("@redislabsdev/redis-ui-icons/monochrome").MonochromeIconProps & Pick<import("react").HTMLAttributes<unknown>, "style" | "className">) => import("react/jsx-runtime").JSX.Element;
|
|
18
|
-
LoadingIndicator: ({ loading, ...restProps }: import("@redislabsdev/redis-ui-components/dist/Inputs/components/LoadingIndicator/LoadingIndicator.types").LoadingIndicatorProps & import("@redislabsdev/redis-ui-components/dist/Inputs/components/LoadingIndicator/LoadingIndicator.types").RestLoadingIndicatorProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
19
|
-
Arrow: ({ icon, ...restProps }: import("@redislabsdev/redis-ui-components/dist/Select/components/Trigger/components/Arrow/Arrow.types").TriggerArrowProps) => import("react/jsx-runtime").JSX.Element;
|
|
20
|
-
ErrorIcon: (props: import("@redislabsdev/redis-ui-icons/monochrome").MonochromeIconProps & Pick<import("react").HTMLAttributes<unknown>, "style" | "className">) => import("react/jsx-runtime").JSX.Element;
|
|
21
|
-
};
|
|
22
|
-
Content: (<TOption_4 extends import("@redislabsdev/redis-ui-components").SelectOption<string> = import("@redislabsdev/redis-ui-components").SelectOption<string>>({ searchable, optionValueRender, optionComponent, maxVisibleItems, virtualized, ...restProps }: import("@redislabsdev/redis-ui-components/dist/Select/components/Content/components/Compose/Compose.types").SelectContentComposeProps & import("@redislabsdev/redis-ui-components/dist/Select/components/Content/components/OptionList/OptionList.types").OptionListProps<TOption_4> & {
|
|
23
|
-
searchable?: boolean | undefined;
|
|
24
|
-
} & import("@redislabsdev/redis-ui-components/dist/Select/components/Content/components/Compose/Compose.types").RestSelectContentComposeProps) => import("react/jsx-runtime").JSX.Element) & {
|
|
25
|
-
Compose: ({ children, placement, contentWidth, ...restProps }: import("@redislabsdev/redis-ui-components/dist/Select/components/Content/components/Compose/Compose.types").SelectContentComposeProps & import("@redislabsdev/redis-ui-components/dist/Select/components/Content/components/Compose/Compose.types").RestSelectContentComposeProps & import("@redislabsdev/redis-ui-components/dist/Helpers/common.types").ComposeChildrenProps) => import("react/jsx-runtime").JSX.Element;
|
|
26
|
-
OptionList: <TOption_5 extends import("@redislabsdev/redis-ui-components").SelectOption<string> = import("@redislabsdev/redis-ui-components").SelectOption<string>>({ optionValueRender, optionComponent: OptionComponent, maxVisibleItems, virtualized, ...restProps }: import("@redislabsdev/redis-ui-components/dist/Select/components/Content/components/OptionList/OptionList.types").OptionListProps<TOption_5> & import("@redislabsdev/redis-ui-components/dist/Select/components/Content/components/OptionList/OptionList.types").RestOptionListProps) => import("react/jsx-runtime").JSX.Element;
|
|
27
|
-
Search: import("react").ForwardRefExoticComponent<Omit<import("@redislabsdev/redis-ui-components/dist/Inputs/components/Compose/TextCompose.types").TextInputComposeProps, "readOnly" | "parser" | "formatter"> & import("@redislabsdev/redis-ui-components/dist/Inputs/components/InputTag/InputTag.types").InputTagProps & import("@redislabsdev/redis-ui-components/dist/Inputs/components/LoadingIndicator/LoadingIndicator.types").LoadingIndicatorProps & import("@redislabsdev/redis-ui-components/dist/Inputs/components/ResetButton/ResetButton.types").ResetButtonProps & import("@redislabsdev/redis-ui-components").RestInputProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
28
|
-
Footer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
29
|
-
};
|
|
30
|
-
Option: (<TOption_6 extends import("@redislabsdev/redis-ui-components").SelectOption<string> = import("@redislabsdev/redis-ui-components").SelectOption<string>>({ option, content, ...restProps }: import("@redislabsdev/redis-ui-components/dist/Select/components/Content/components/Option/components/Compose/Compose.types").SelectOptionComposeProps<TOption_6> & {
|
|
31
|
-
content?: import("react").ReactNode;
|
|
32
|
-
} & import("@redislabsdev/redis-ui-components/dist/Select/components/Content/components/Option/components/Compose/Compose.types").RestSelectOptionComposeProps) => import("react/jsx-runtime").JSX.Element) & {
|
|
33
|
-
Compose: import("react").ForwardRefExoticComponent<import("@redislabsdev/redis-ui-components/dist/Select/components/Content/components/Option/components/Compose/Compose.types").SelectOptionComposeProps<import("@redislabsdev/redis-ui-components").SelectOption<string>> & import("@redislabsdev/redis-ui-components/dist/Select/components/Content/components/Option/components/Compose/Compose.types").RestSelectOptionComposeProps & import("@redislabsdev/redis-ui-components/dist/Helpers/common.types").ComposeChildrenProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
34
|
-
Content: (props: import("@redislabsdev/redis-ui-components/dist/Helpers/common.types").ComposeChildrenProps & import("@redislabsdev/redis-ui-components/dist/Select/components/Content/components/Option/components/Content/Content.types").RestSelectOptionContentProps) => import("react/jsx-runtime").JSX.Element;
|
|
35
|
-
Indicator: ({ children, ...restProps }: import("@radix-ui/react-select").SelectItemIndicatorProps) => import("react/jsx-runtime").JSX.Element;
|
|
36
|
-
};
|
|
1
|
+
export declare const NavigationButton: import("styled-components").StyledComponent<({ navType, ...restProps }: import("@redislabsdev/redis-ui-components").PaginationNavigationButtonProps) => import("react/jsx-runtime").JSX.Element, any, {}, never>;
|
|
2
|
+
export declare const PaginationBar: import("styled-components").StyledComponent<"nav", any, {
|
|
3
|
+
'aria-label': string;
|
|
4
|
+
} & {
|
|
5
|
+
'aria-label': string;
|
|
6
|
+
}, "aria-label">;
|
|
7
|
+
export declare const InfoLabel: import("styled-components").StyledComponent<({ renderer, ...restProps }: import("@redislabsdev/redis-ui-components").PaginationInfoLabelProps) => import("react/jsx-runtime").JSX.Element, any, {}, never>;
|
|
8
|
+
export declare const PageSizeSelect: import("styled-components").StyledComponent<{
|
|
9
|
+
({ pageSizes, ...restProps }: import("@redislabsdev/redis-ui-components").PaginationPageSizeSelectProps): import("react/jsx-runtime").JSX.Element | null;
|
|
10
|
+
Label: ({ children, ...restProps }: import("@redislabsdev/redis-ui-components").TypographyBodyProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
37
11
|
}, any, {}, never>;
|
|
38
|
-
export declare const
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
},
|
|
42
|
-
export declare const
|
|
43
|
-
|
|
44
|
-
},
|
|
45
|
-
export declare const PageLabelText: import("styled-components").StyledComponent<({ size, variant, component, ellipsis, ...restProps }: import("@redislabsdev/redis-ui-components/dist/Typography/components/Body/Body.types").BodyProps) => import("react/jsx-runtime").JSX.Element, any, {
|
|
46
|
-
size: "S";
|
|
47
|
-
}, "size">;
|
|
48
|
-
export declare const TotalPagesText: import("styled-components").StyledComponent<({ size, variant, component, ellipsis, ...restProps }: import("@redislabsdev/redis-ui-components/dist/Typography/components/Body/Body.types").BodyProps) => import("react/jsx-runtime").JSX.Element, any, {
|
|
49
|
-
size: "S";
|
|
50
|
-
}, "size">;
|
|
12
|
+
export declare const PageSelect: import("styled-components").StyledComponent<{
|
|
13
|
+
({ ...restProps }: import("@redislabsdev/redis-ui-components").PaginationPageSelectProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
Label: ({ children, ...restProps }: import("@redislabsdev/redis-ui-components").TypographyBodyProps) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
}, any, {}, never>;
|
|
16
|
+
export declare const PageSizeGroup: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
17
|
+
export declare const PageNavGroup: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
18
|
+
export declare const PageSelectGroup: import("styled-components").StyledComponent<"div", any, {}, never>;
|