1 | import * as React from 'react';
|
2 | import { SxProps } from '@mui/system';
|
3 | import { OverridableComponent, OverrideProps } from '../OverridableComponent';
|
4 | import { Theme } from '..';
|
5 | import { InputAdornmentClasses } from './inputAdornmentClasses';
|
6 |
|
7 | export interface InputAdornmentOwnProps {
|
8 | |
9 |
|
10 |
|
11 | classes?: Partial<InputAdornmentClasses>;
|
12 | |
13 |
|
14 |
|
15 | children?: React.ReactNode;
|
16 | |
17 |
|
18 |
|
19 |
|
20 |
|
21 | disablePointerEvents?: boolean;
|
22 | |
23 |
|
24 |
|
25 |
|
26 | disableTypography?: boolean;
|
27 | |
28 |
|
29 |
|
30 | position: 'start' | 'end';
|
31 | |
32 |
|
33 |
|
34 | sx?: SxProps<Theme>;
|
35 | |
36 |
|
37 |
|
38 |
|
39 |
|
40 | variant?: 'standard' | 'outlined' | 'filled';
|
41 | }
|
42 |
|
43 | export interface InputAdornmentTypeMap<
|
44 | AdditionalProps = {},
|
45 | RootComponent extends React.ElementType = 'div',
|
46 | > {
|
47 | props: AdditionalProps & InputAdornmentOwnProps;
|
48 | defaultComponent: RootComponent;
|
49 | }
|
50 |
|
51 |
|
52 |
|
53 |
|
54 |
|
55 |
|
56 |
|
57 |
|
58 |
|
59 |
|
60 | declare const InputAdornment: OverridableComponent<InputAdornmentTypeMap>;
|
61 |
|
62 | export type InputAdornmentProps<
|
63 | RootComponent extends React.ElementType = InputAdornmentTypeMap['defaultComponent'],
|
64 | AdditionalProps = {},
|
65 | > = OverrideProps<InputAdornmentTypeMap<AdditionalProps, RootComponent>, RootComponent> & {
|
66 | component?: React.ElementType;
|
67 | };
|
68 |
|
69 | export default InputAdornment;
|