1 | import * as React from 'react';
|
2 | import { PolymorphicProps, SlotComponentProps } from '../utils';
|
3 | export interface TablePaginationActionsRootSlotPropsOverrides {
|
4 | }
|
5 | export interface TablePaginationActionsFirstButtonSlotPropsOverrides {
|
6 | }
|
7 | export interface TablePaginationActionsLastButtonSlotPropsOverrides {
|
8 | }
|
9 | export interface TablePaginationActionsNextButtonSlotPropsOverrides {
|
10 | }
|
11 | export interface TablePaginationActionsBackButtonSlotPropsOverrides {
|
12 | }
|
13 | export interface TablePaginationActionsOwnProps {
|
14 | count: number;
|
15 | |
16 |
|
17 |
|
18 |
|
19 |
|
20 | slots?: TablePaginationActionsSlots;
|
21 | |
22 |
|
23 |
|
24 |
|
25 | slotProps?: {
|
26 | root?: SlotComponentProps<'div', TablePaginationActionsRootSlotPropsOverrides, TablePaginationActionsOwnerState>;
|
27 | firstButton?: SlotComponentProps<'button', TablePaginationActionsFirstButtonSlotPropsOverrides, TablePaginationActionsOwnerState>;
|
28 | lastButton?: SlotComponentProps<'button', TablePaginationActionsLastButtonSlotPropsOverrides, TablePaginationActionsOwnerState>;
|
29 | nextButton?: SlotComponentProps<'button', TablePaginationActionsNextButtonSlotPropsOverrides, TablePaginationActionsOwnerState>;
|
30 | backButton?: SlotComponentProps<'button', TablePaginationActionsBackButtonSlotPropsOverrides, TablePaginationActionsOwnerState>;
|
31 | };
|
32 | |
33 |
|
34 |
|
35 |
|
36 | direction?: 'ltr' | 'rtl';
|
37 | |
38 |
|
39 |
|
40 |
|
41 |
|
42 |
|
43 |
|
44 |
|
45 | getItemAriaLabel: (type: 'first' | 'last' | 'next' | 'previous', page: number) => string;
|
46 | onPageChange: (event: React.MouseEvent<HTMLButtonElement> | null, page: number) => void;
|
47 | page: number;
|
48 | rowsPerPage: number;
|
49 | showFirstButton: boolean;
|
50 | showLastButton: boolean;
|
51 | }
|
52 | export interface TablePaginationActionsSlots {
|
53 | |
54 |
|
55 |
|
56 |
|
57 | root?: React.ElementType;
|
58 | |
59 |
|
60 |
|
61 |
|
62 | firstButton?: React.ElementType;
|
63 | |
64 |
|
65 |
|
66 |
|
67 | lastButton?: React.ElementType;
|
68 | |
69 |
|
70 |
|
71 |
|
72 | nextButton?: React.ElementType;
|
73 | |
74 |
|
75 |
|
76 |
|
77 | backButton?: React.ElementType;
|
78 | |
79 |
|
80 |
|
81 |
|
82 | firstPageIcon?: React.ElementType;
|
83 | |
84 |
|
85 |
|
86 |
|
87 | lastPageIcon?: React.ElementType;
|
88 | |
89 |
|
90 |
|
91 |
|
92 | nextPageIcon?: React.ElementType;
|
93 | |
94 |
|
95 |
|
96 |
|
97 | backPageIcon?: React.ElementType;
|
98 | }
|
99 | export type TablePaginationActionsProps<RootComponentType extends React.ElementType = TablePaginationActionsTypeMap['defaultComponent']> = PolymorphicProps<TablePaginationActionsTypeMap<{}, RootComponentType>, RootComponentType>;
|
100 | export interface TablePaginationActionsTypeMap<AdditionalProps = {}, RootComponentType extends React.ElementType = 'button'> {
|
101 | props: TablePaginationActionsOwnProps & AdditionalProps;
|
102 | defaultComponent: RootComponentType;
|
103 | }
|
104 | export type TablePaginationActionsOwnerState = TablePaginationActionsOwnProps;
|
105 | export type TablePaginationActionsRootSlotProps = {
|
106 | children?: React.ReactNode;
|
107 | ownerState: TablePaginationActionsOwnerState;
|
108 | ref: React.Ref<any>;
|
109 | };
|
110 | export type TablePaginationActionsButtonSlotProps = {
|
111 | 'aria-label': string;
|
112 | children?: React.ReactNode;
|
113 | disabled: boolean;
|
114 | onClick: React.MouseEventHandler<HTMLButtonElement>;
|
115 | ownerState: TablePaginationActionsOwnerState;
|
116 | title: string;
|
117 | };
|