UNPKG

2.16 kBTypeScriptView Raw
1export interface InputBaseClasses {
2 /** Styles applied to the root element. */
3 root: string;
4 /** Styles applied to the root element if the component is a descendant of `FormControl`. */
5 formControl: string;
6 /** Styles applied to the root element if the component is focused. */
7 focused: string;
8 /** Styles applied to the root element if `disabled={true}`. */
9 disabled: string;
10 /** Styles applied to the root element if `startAdornment` is provided. */
11 adornedStart: string;
12 /** Styles applied to the root element if `endAdornment` is provided. */
13 adornedEnd: string;
14 /** State class applied to the root element if `error={true}`. */
15 error: string;
16 /** Styles applied to the input element if `size="small"`. */
17 sizeSmall: string;
18 /** Styles applied to the root element if `multiline={true}`. */
19 multiline: string;
20 /** Styles applied to the root element if the color is secondary. */
21 colorSecondary: string;
22 /** Styles applied to the root element if `fullWidth={true}`. */
23 fullWidth: string;
24 /** Styles applied to the root element if `hiddenLabel={true}`. */
25 hiddenLabel: string;
26 /** State class applied to the root element if `readOnly={true}`. */
27 readOnly: string;
28 /** Styles applied to the input element. */
29 input: string;
30 /** Styles applied to the input element if `size="small"`. */
31 inputSizeSmall: string;
32 /** Styles applied to the input element if `multiline={true}`. */
33 inputMultiline: string;
34 /** Styles applied to the input element if `type="search"`. */
35 inputTypeSearch: string;
36 /** Styles applied to the input element if `startAdornment` is provided. */
37 inputAdornedStart: string;
38 /** Styles applied to the input element if `endAdornment` is provided. */
39 inputAdornedEnd: string;
40 /** Styles applied to the input element if `hiddenLabel={true}`. */
41 inputHiddenLabel: string;
42}
43export type InputBaseClassKey = keyof InputBaseClasses;
44export declare function getInputBaseUtilityClass(slot: string): string;
45declare const inputBaseClasses: InputBaseClasses;
46export default inputBaseClasses;