-
-
Notifications
You must be signed in to change notification settings - Fork 31.6k
/
nativeSelectClasses.ts
58 lines (53 loc) · 1.87 KB
/
nativeSelectClasses.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
import { unstable_generateUtilityClasses as generateUtilityClasses } from '@mui/utils';
import generateUtilityClass from '../generateUtilityClass';
export interface NativeSelectClasses {
/** Styles applied to the root element. */
root: string;
/** 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 select component `error` class. */
error: string;
}
export type NativeSelectClassKey = keyof NativeSelectClasses;
export function getNativeSelectUtilityClasses(slot: string): string {
return generateUtilityClass('MuiNativeSelect', slot);
}
const nativeSelectClasses: NativeSelectClasses = generateUtilityClasses('MuiNativeSelect', [
'root',
'select',
'multiple',
'filled',
'outlined',
'standard',
'disabled',
'icon',
'iconOpen',
'iconFilled',
'iconOutlined',
'iconStandard',
'nativeInput',
'error',
]);
export default nativeSelectClasses;