-
-
Notifications
You must be signed in to change notification settings - Fork 51
/
Copy pathpaginationItemClasses.ts
73 lines (68 loc) · 2.47 KB
/
paginationItemClasses.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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
61
62
63
64
65
66
67
68
69
70
71
72
73
import generateUtilityClass from "@suid/base/generateUtilityClass";
import generateUtilityClasses from "@suid/base/generateUtilityClasses";
export interface PaginationItemClasses {
/** Styles applied to the root element. */
root: string;
/** Styles applied to the root element if `type="page"`. */
page: string;
/** Styles applied to the root element if `size="small"`. */
sizeSmall: string;
/** Styles applied to the root element if `size="large"`. */
sizeLarge: string;
/** Styles applied to the root element if `variant="text"`. */
text: string;
/** Styles applied to the root element if `variant="text"` and `color="primary"`. */
textPrimary: string;
/** Styles applied to the root element if `variant="text"` and `color="secondary"`. */
textSecondary: string;
/** Styles applied to the root element if `variant="outlined"`. */
outlined: string;
/** Styles applied to the root element if `variant="outlined"` and `color="primary"`. */
outlinedPrimary: string;
/** Styles applied to the root element if `variant="outlined"` and `color="secondary"`. */
outlinedSecondary: string;
/** Styles applied to the root element if `rounded="true"`. */
rounded: string;
/** Styles applied to the root element if `type="start-ellipsis"` or `type="end-ellipsis"`. */
ellipsis: string;
/** Styles applyed to the root element if `type="first"` or type="last". */
firstLast: string;
/** Styles applyed to the root element if `type="previous"` or type="next". */
previousNext: string;
/** State class applied to the root element if keyboard focused. */
focusVisible: string;
/** State class applied to the root element if `disabled={true}`. */
disabled: string;
/** State class applied to the root element if `selected={true}`. */
selected: string;
/** Styles applied to the icon to display. */
icon: string;
}
export type PaginationItemClassKey = keyof PaginationItemClasses;
export function getPaginationItemUtilityClass(slot: string): string {
return generateUtilityClass("MuiPaginationItem", slot);
}
const paginationItemClasses: PaginationItemClasses = generateUtilityClasses(
"MuiPaginationItem",
[
"root",
"page",
"sizeSmall",
"sizeLarge",
"text",
"textPrimary",
"textSecondary",
"outlined",
"outlinedPrimary",
"outlinedSecondary",
"rounded",
"ellipsis",
"firstLast",
"previousNext",
"focusVisible",
"disabled",
"selected",
"icon",
]
);
export default paginationItemClasses;