UNPKG

2.47 kBTypeScriptView Raw
1export interface AutocompleteClasses {
2 /** Styles applied to the root element. */
3 root: string;
4 /** Styles applied to the root element if `fullWidth={true}`. */
5 fullWidth: string;
6 /** State class applied to the root element if the listbox is displayed. */
7 expanded: string;
8 /** State class applied to the root element if focused. */
9 focused: string;
10 /** Styles applied to the option elements if they are keyboard focused. */
11 focusVisible: string;
12 /** Styles applied to the tag elements, for example the chips. */
13 tag: string;
14 /** Styles applied to the tag elements, for example the chips if `size="small"`. */
15 tagSizeSmall: string;
16 /** Styles applied to the tag elements, for example the chips if `size="medium"`. */
17 tagSizeMedium: string;
18 /** Styles applied when the popup icon is rendered. */
19 hasPopupIcon: string;
20 /** Styles applied when the clear icon is rendered. */
21 hasClearIcon: string;
22 /** Styles applied to the Input element. */
23 inputRoot: string;
24 /** Styles applied to the input element. */
25 input: string;
26 /** Styles applied to the input element if the input is focused. */
27 inputFocused: string;
28 /** Styles applied to the endAdornment element. */
29 endAdornment: string;
30 /** Styles applied to the clear indicator. */
31 clearIndicator: string;
32 /** Styles applied to the popup indicator. */
33 popupIndicator: string;
34 /** Styles applied to the popup indicator if the popup is open. */
35 popupIndicatorOpen: string;
36 /** Styles applied to the popper element. */
37 popper: string;
38 /** Styles applied to the popper element if `disablePortal={true}`. */
39 popperDisablePortal: string;
40 /** Styles applied to the Paper component. */
41 paper: string;
42 /** Styles applied to the listbox component. */
43 listbox: string;
44 /** Styles applied to the loading wrapper. */
45 loading: string;
46 /** Styles applied to the no option wrapper. */
47 noOptions: string;
48 /** Styles applied to the option elements. */
49 option: string;
50 /** Styles applied to the group's label elements. */
51 groupLabel: string;
52 /** Styles applied to the group's ul elements. */
53 groupUl: string;
54}
55export type AutocompleteClassKey = keyof AutocompleteClasses;
56export declare function getAutocompleteUtilityClass(slot: string): string;
57declare const autocompleteClasses: AutocompleteClasses;
58export default autocompleteClasses;