1 | import React from 'react';
|
2 | import { StyleProp, ViewStyle } from 'react-native';
|
3 | import IconButton from '../../IconButton';
|
4 | import type { $Omit } from '../../../../src/types';
|
5 | import type { IconSource } from '../../Icon';
|
6 | export declare type Props = $Omit<React.ComponentProps<typeof IconButton>, 'icon' | 'theme' | 'color'> & {
|
7 | |
8 |
|
9 |
|
10 | name: IconSource;
|
11 | |
12 |
|
13 |
|
14 | onPress?: () => void;
|
15 | |
16 |
|
17 |
|
18 | forceTextInputFocus?: boolean;
|
19 | |
20 |
|
21 |
|
22 | color?: ((isTextInputFocused: boolean) => string | undefined) | string;
|
23 | style?: StyleProp<ViewStyle>;
|
24 | /**
|
25 | * @optional
|
26 | */
|
27 | theme?: ReactNativePaper.Theme;
|
28 | };
|
29 | export declare const ICON_SIZE = 24;
|
30 | declare type StyleContextType = {
|
31 | style: StyleProp<ViewStyle>;
|
32 | isTextInputFocused: boolean;
|
33 | forceFocus: () => void;
|
34 | };
|
35 | declare const IconAdornment: React.FunctionComponent<{
|
36 | testID: string;
|
37 | icon: React.ReactNode;
|
38 | topPosition: number;
|
39 | side: 'left' | 'right';
|
40 | } & Omit<StyleContextType, 'style'>>;
|
41 |
|
42 |
|
43 |
|
44 |
|
45 |
|
46 |
|
47 |
|
48 |
|
49 |
|
50 |
|
51 |
|
52 |
|
53 |
|
54 |
|
55 |
|
56 |
|
57 |
|
58 |
|
59 |
|
60 |
|
61 |
|
62 |
|
63 |
|
64 |
|
65 |
|
66 |
|
67 |
|
68 |
|
69 |
|
70 | declare const TextInputIcon: {
|
71 | ({ name, onPress, forceTextInputFocus, color, ...rest }: Props): JSX.Element;
|
72 | displayName: string;
|
73 | defaultProps: {
|
74 | forceTextInputFocus: boolean;
|
75 | };
|
76 | };
|
77 | export default TextInputIcon;
|
78 | export { IconAdornment };
|