forked from mui/material-ui
/
listItemButtonClasses.ts
60 lines (55 loc) · 2.03 KB
/
listItemButtonClasses.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
import { generateUtilityClass, generateUtilityClasses } from '../className';
export interface ListItemButtonClasses {
/** Styles applied to the root element. */
root: string;
/** Styles applied to the root element if `color="primary"`. */
colorPrimary: string;
/** Styles applied to the root element if `color="neutral"`. */
colorNeutral: string;
/** Styles applied to the root element if `color="danger"`. */
colorDanger: string;
/** Styles applied to the root element if `color="info"`. */
colorInfo: string;
/** Styles applied to the root element if `color="success"`. */
colorSuccess: string;
/** Styles applied to the root element if `color="warning"`. */
colorWarning: string;
/** Styles applied to the root element if `color="context"`. */
colorContext: string;
/** State class applied to the `component`'s `focusVisibleClassName` prop. */
focusVisible: string;
/** State class applied to the inner `component` element if `disabled={true}`. */
disabled: string;
/** State class applied to the root element if `selected={true}`. */
selected: string;
/** State class applied to the root element if `variant="plain"`. */
variantPlain: string;
/** State class applied to the root element if `variant="soft"`. */
variantSoft: string;
/** State class applied to the root element if `variant="outlined"`. */
variantOutlined: string;
/** State class applied to the root element if `variant="solid"`. */
variantSolid: string;
}
export type ListItemButtonClassKey = keyof ListItemButtonClasses;
export function getListItemButtonUtilityClass(slot: string): string {
return generateUtilityClass('JoyListItemButton', slot);
}
const listItemButtonClasses: ListItemButtonClasses = generateUtilityClasses('JoyListItemButton', [
'root',
'colorPrimary',
'colorNeutral',
'colorDanger',
'colorInfo',
'colorSuccess',
'colorWarning',
'colorContext',
'focusVisible',
'disabled',
'selected',
'variantPlain',
'variantSoft',
'variantOutlined',
'variantSolid',
]);
export default listItemButtonClasses;