-
-
Notifications
You must be signed in to change notification settings - Fork 31.7k
/
selectClasses.ts
56 lines (51 loc) · 1.76 KB
/
selectClasses.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
import { unstable_generateUtilityClasses as generateUtilityClasses } from '@mui/utils';
import generateUtilityClass from '../generateUtilityClass';
export interface SelectClasses {
/** Styles applied to the select component `select` class. */
select: string;
/** Styles applied to the select component if `multiple={true}`. */
multiple: string;
/** Styles applied to the select component if `variant="filled"`. */
filled: string;
/** Styles applied to the select component if `variant="outlined"`. */
outlined: string;
/** Styles applied to the select component if `variant="standard"`. */
standard: string;
/** State class applied to the select component `disabled` class. */
disabled: string;
/** Styles applied to the icon component. */
icon: string;
/** Styles applied to the icon component if the popup is open. */
iconOpen: string;
/** Styles applied to the icon component if `variant="filled"`. */
iconFilled: string;
/** Styles applied to the icon component if `variant="outlined"`. */
iconOutlined: string;
/** Styles applied to the icon component if `variant="standard"`. */
iconStandard: string;
/** Styles applied to the underlying native input component. */
nativeInput: string;
/** State class applied to the root element if `error={true}`. */
error: string;
}
export type SelectClassKey = keyof SelectClasses;
export function getSelectUtilityClasses(slot: string): string {
return generateUtilityClass('MuiSelect', slot);
}
const selectClasses: SelectClasses = generateUtilityClasses('MuiSelect', [
'select',
'multiple',
'filled',
'outlined',
'standard',
'disabled',
'focused',
'icon',
'iconOpen',
'iconFilled',
'iconOutlined',
'iconStandard',
'nativeInput',
'error',
]);
export default selectClasses;