1 |
|
2 | import { ListItemProps } from './ListItemBase';
|
3 | import ListItemContent from './ListItemContent';
|
4 | import ListItemChevron from './ListItemChevron';
|
5 | import ListItemInput from './ListItemInput';
|
6 | import ListItemCheckBox from './ListItemCheckBox';
|
7 | import ListItemButtonGroup from './ListItemButtonGroup';
|
8 | import ListItemTitle from './ListItemTitle';
|
9 | import ListItemSubtitle from './ListItemSubtitle';
|
10 | import ListItemSwipeable from './ListItemSwipeable';
|
11 | import ListItemAccordion from './ListItemAccordion';
|
12 | import { RneFunctionComponent } from '../helpers';
|
13 | interface ListItem extends RneFunctionComponent<ListItemProps> {
|
14 | Accordion: typeof ListItemAccordion;
|
15 | Chevron: typeof ListItemChevron;
|
16 | Content: typeof ListItemContent;
|
17 | Input: typeof ListItemInput;
|
18 | Title: typeof ListItemTitle;
|
19 | Subtitle: typeof ListItemSubtitle;
|
20 | Swipeable: typeof ListItemSwipeable;
|
21 | CheckBox: typeof ListItemCheckBox;
|
22 | ButtonGroup: typeof ListItemButtonGroup;
|
23 | }
|
24 | declare const ListItem: ListItem;
|
25 | export { ListItem };
|
26 | declare const ThemedListItem: (import("react").FunctionComponent<Omit<import("react-native").TouchableHighlightProps & {
|
27 | containerStyle?: import("react-native").StyleProp<import("react-native").ViewStyle>;
|
28 | disabledStyle?: import("react-native").StyleProp<import("react-native").ViewStyle>;
|
29 | topDivider?: boolean;
|
30 | bottomDivider?: boolean;
|
31 | pad?: number;
|
32 | Component?: typeof import("react").Component;
|
33 | ViewComponent?: typeof import("react").Component;
|
34 | linearGradientProps?: any;
|
35 | children?: any;
|
36 | } & Partial<import("../config").ThemeProps<ListItemProps>>, keyof import("../config").ThemeProps<T>>> | import("react").ForwardRefExoticComponent<import("react-native").TouchableHighlightProps & {
|
37 | containerStyle?: import("react-native").StyleProp<import("react-native").ViewStyle>;
|
38 | disabledStyle?: import("react-native").StyleProp<import("react-native").ViewStyle>;
|
39 | topDivider?: boolean;
|
40 | bottomDivider?: boolean;
|
41 | pad?: number;
|
42 | Component?: typeof import("react").Component;
|
43 | ViewComponent?: typeof import("react").Component;
|
44 | linearGradientProps?: any;
|
45 | children?: any;
|
46 | } & Partial<import("../config").ThemeProps<ListItemProps>>>) & {
|
47 | Accordion: import("react").FunctionComponent<Omit<import("react-native").TouchableHighlightProps & {
|
48 | containerStyle?: import("react-native").StyleProp<import("react-native").ViewStyle>;
|
49 | disabledStyle?: import("react-native").StyleProp<import("react-native").ViewStyle>;
|
50 | topDivider?: boolean;
|
51 | bottomDivider?: boolean;
|
52 | pad?: number;
|
53 | Component?: typeof import("react").Component;
|
54 | ViewComponent?: typeof import("react").Component;
|
55 | linearGradientProps?: any;
|
56 | children?: any;
|
57 | } & {
|
58 | isExpanded?: boolean;
|
59 | icon?: import("../icons/Icon").IconNode;
|
60 | expandIcon?: import("../icons/Icon").IconNode;
|
61 | content?: import("react").ReactNode;
|
62 | noRotation?: boolean;
|
63 | noIcon?: boolean;
|
64 | animation?: boolean | {
|
65 | type?: "spring" | "timing";
|
66 | duration?: number;
|
67 | };
|
68 | } & Partial<import("../config").ThemeProps<import("./ListItemAccordion").ListItemAccordionProps>>, keyof import("../config").ThemeProps<T>>> | import("react").ForwardRefExoticComponent<import("react-native").TouchableHighlightProps & {
|
69 | containerStyle?: import("react-native").StyleProp<import("react-native").ViewStyle>;
|
70 | disabledStyle?: import("react-native").StyleProp<import("react-native").ViewStyle>;
|
71 | topDivider?: boolean;
|
72 | bottomDivider?: boolean;
|
73 | pad?: number;
|
74 | Component?: typeof import("react").Component;
|
75 | ViewComponent?: typeof import("react").Component;
|
76 | linearGradientProps?: any;
|
77 | children?: any;
|
78 | } & {
|
79 | isExpanded?: boolean;
|
80 | icon?: import("../icons/Icon").IconNode;
|
81 | expandIcon?: import("../icons/Icon").IconNode;
|
82 | content?: import("react").ReactNode;
|
83 | noRotation?: boolean;
|
84 | noIcon?: boolean;
|
85 | animation?: boolean | {
|
86 | type?: "spring" | "timing";
|
87 | duration?: number;
|
88 | };
|
89 | } & Partial<import("../config").ThemeProps<import("./ListItemAccordion").ListItemAccordionProps>>>;
|
90 | Chevron: import("react").FunctionComponent<Omit<Partial<import("..").IconProps> & Partial<import("../config").ThemeProps<Partial<import("..").IconProps>>>, keyof import("../config").ThemeProps<T>>> | import("react").ForwardRefExoticComponent<Partial<import("..").IconProps> & Partial<import("../config").ThemeProps<Partial<import("..").IconProps>>>>;
|
91 | Content: import("react").FunctionComponent<Omit<import("react-native").TextProps & {
|
92 | style?: import("react-native").StyleProp<import("react-native").TextStyle>;
|
93 | h1?: boolean;
|
94 | h2?: boolean;
|
95 | h3?: boolean;
|
96 | h4?: boolean;
|
97 | h1Style?: import("react-native").StyleProp<import("react-native").TextStyle>;
|
98 | h2Style?: import("react-native").StyleProp<import("react-native").TextStyle>;
|
99 | h3Style?: import("react-native").StyleProp<import("react-native").TextStyle>;
|
100 | h4Style?: import("react-native").StyleProp<import("react-native").TextStyle>;
|
101 | } & {
|
102 | right?: boolean;
|
103 | } & Partial<import("../config").ThemeProps<import("react-native").TextProps & {
|
104 | style?: import("react-native").StyleProp<import("react-native").TextStyle>;
|
105 | h1?: boolean;
|
106 | h2?: boolean;
|
107 | h3?: boolean;
|
108 | h4?: boolean;
|
109 | h1Style?: import("react-native").StyleProp<import("react-native").TextStyle>;
|
110 | h2Style?: import("react-native").StyleProp<import("react-native").TextStyle>;
|
111 | h3Style?: import("react-native").StyleProp<import("react-native").TextStyle>;
|
112 | h4Style?: import("react-native").StyleProp<import("react-native").TextStyle>;
|
113 | } & {
|
114 | right?: boolean;
|
115 | }>>, keyof import("../config").ThemeProps<T>>> | import("react").ForwardRefExoticComponent<import("react-native").TextProps & {
|
116 | style?: import("react-native").StyleProp<import("react-native").TextStyle>;
|
117 | h1?: boolean;
|
118 | h2?: boolean;
|
119 | h3?: boolean;
|
120 | h4?: boolean;
|
121 | h1Style?: import("react-native").StyleProp<import("react-native").TextStyle>;
|
122 | h2Style?: import("react-native").StyleProp<import("react-native").TextStyle>;
|
123 | h3Style?: import("react-native").StyleProp<import("react-native").TextStyle>;
|
124 | h4Style?: import("react-native").StyleProp<import("react-native").TextStyle>;
|
125 | } & {
|
126 | right?: boolean;
|
127 | } & Partial<import("../config").ThemeProps<import("react-native").TextProps & {
|
128 | style?: import("react-native").StyleProp<import("react-native").TextStyle>;
|
129 | h1?: boolean;
|
130 | h2?: boolean;
|
131 | h3?: boolean;
|
132 | h4?: boolean;
|
133 | h1Style?: import("react-native").StyleProp<import("react-native").TextStyle>;
|
134 | h2Style?: import("react-native").StyleProp<import("react-native").TextStyle>;
|
135 | h3Style?: import("react-native").StyleProp<import("react-native").TextStyle>;
|
136 | h4Style?: import("react-native").StyleProp<import("react-native").TextStyle>;
|
137 | } & {
|
138 | right?: boolean;
|
139 | }>>>;
|
140 | Input: import("react").FunctionComponent<Omit<import("react-native").TextInputProps & import("react").RefAttributes<import("react-native").TextInput> & {
|
141 | containerStyle?: import("react-native").StyleProp<import("react-native").ViewStyle>;
|
142 | disabled?: boolean;
|
143 | disabledInputStyle?: import("react-native").StyleProp<import("react-native").TextStyle>;
|
144 | inputContainerStyle?: import("react-native").StyleProp<import("react-native").ViewStyle>;
|
145 | leftIcon?: import("../icons/Icon").IconNode;
|
146 | leftIconContainerStyle?: import("react-native").StyleProp<import("react-native").ViewStyle>;
|
147 | rightIcon?: import("../icons/Icon").IconNode;
|
148 | rightIconContainerStyle?: import("react-native").StyleProp<import("react-native").ViewStyle>;
|
149 | inputStyle?: import("react-native").StyleProp<import("react-native").TextStyle>;
|
150 | InputComponent?: typeof import("react").Component;
|
151 | errorProps?: object;
|
152 | errorStyle?: import("react-native").StyleProp<import("react-native").TextStyle>;
|
153 | errorMessage?: string;
|
154 | label?: import("react").ReactNode;
|
155 | labelStyle?: import("react-native").StyleProp<import("react-native").TextStyle>;
|
156 | labelProps?: object;
|
157 | renderErrorMessage?: boolean;
|
158 | } & Partial<import("../config").ThemeProps<import("..").InputProps>>, keyof import("../config").ThemeProps<T>>> | import("react").ForwardRefExoticComponent<import("react-native").TextInputProps & import("react").RefAttributes<import("react-native").TextInput> & {
|
159 | containerStyle?: import("react-native").StyleProp<import("react-native").ViewStyle>;
|
160 | disabled?: boolean;
|
161 | disabledInputStyle?: import("react-native").StyleProp<import("react-native").TextStyle>;
|
162 | inputContainerStyle?: import("react-native").StyleProp<import("react-native").ViewStyle>;
|
163 | leftIcon?: import("../icons/Icon").IconNode;
|
164 | leftIconContainerStyle?: import("react-native").StyleProp<import("react-native").ViewStyle>;
|
165 | rightIcon?: import("../icons/Icon").IconNode;
|
166 | rightIconContainerStyle?: import("react-native").StyleProp<import("react-native").ViewStyle>;
|
167 | inputStyle?: import("react-native").StyleProp<import("react-native").TextStyle>;
|
168 | InputComponent?: typeof import("react").Component;
|
169 | errorProps?: object;
|
170 | errorStyle?: import("react-native").StyleProp<import("react-native").TextStyle>;
|
171 | errorMessage?: string;
|
172 | label?: import("react").ReactNode;
|
173 | labelStyle?: import("react-native").StyleProp<import("react-native").TextStyle>;
|
174 | labelProps?: object;
|
175 | renderErrorMessage?: boolean;
|
176 | } & Partial<import("../config").ThemeProps<import("..").InputProps>>>;
|
177 | Title: import("react").FunctionComponent<Omit<import("react-native").TextProps & {
|
178 | right?: boolean;
|
179 | } & Partial<import("../config").ThemeProps<import("react-native").TextProps & {
|
180 | right?: boolean;
|
181 | }>>, keyof import("../config").ThemeProps<T>>> | import("react").ForwardRefExoticComponent<import("react-native").TextProps & {
|
182 | right?: boolean;
|
183 | } & Partial<import("../config").ThemeProps<import("react-native").TextProps & {
|
184 | right?: boolean;
|
185 | }>>>;
|
186 | Subtitle: import("react").FunctionComponent<Omit<import("react-native").TextProps & {
|
187 | right?: boolean;
|
188 | } & Partial<import("../config").ThemeProps<import("react-native").TextProps & {
|
189 | right?: boolean;
|
190 | }>>, keyof import("../config").ThemeProps<T>>> | import("react").ForwardRefExoticComponent<import("react-native").TextProps & {
|
191 | right?: boolean;
|
192 | } & Partial<import("../config").ThemeProps<import("react-native").TextProps & {
|
193 | right?: boolean;
|
194 | }>>>;
|
195 | Swipeable: RneFunctionComponent<import("./ListItemSwipeable").ListItemSwipeableProps>;
|
196 | CheckBox: import("react").FunctionComponent<Omit<import("react-native").TouchableOpacityProps & import("../checkbox/CheckBoxIcon").CheckBoxIconProps & {
|
197 | Component?: typeof import("react").Component;
|
198 | iconRight?: boolean;
|
199 | title?: string | import("react").ReactElement<{}, string | import("react").JSXElementConstructor<any>>;
|
200 | titleProps?: import("react-native").TextProps;
|
201 | center?: boolean;
|
202 | right?: boolean;
|
203 | containerStyle?: import("react-native").StyleProp<import("react-native").ViewStyle>;
|
204 | wrapperStyle?: import("react-native").StyleProp<import("react-native").ViewStyle>;
|
205 | textStyle?: import("react-native").StyleProp<import("react-native").TextStyle>;
|
206 | checkedTitle?: string;
|
207 | fontFamily?: string;
|
208 | } & Partial<import("../config").ThemeProps<import("..").CheckBoxProps>>, keyof import("../config").ThemeProps<T>>> | import("react").ForwardRefExoticComponent<import("react-native").TouchableOpacityProps & import("../checkbox/CheckBoxIcon").CheckBoxIconProps & {
|
209 | Component?: typeof import("react").Component;
|
210 | iconRight?: boolean;
|
211 | title?: string | import("react").ReactElement<{}, string | import("react").JSXElementConstructor<any>>;
|
212 | titleProps?: import("react-native").TextProps;
|
213 | center?: boolean;
|
214 | right?: boolean;
|
215 | containerStyle?: import("react-native").StyleProp<import("react-native").ViewStyle>;
|
216 | wrapperStyle?: import("react-native").StyleProp<import("react-native").ViewStyle>;
|
217 | textStyle?: import("react-native").StyleProp<import("react-native").TextStyle>;
|
218 | checkedTitle?: string;
|
219 | fontFamily?: string;
|
220 | } & Partial<import("../config").ThemeProps<import("..").CheckBoxProps>>>;
|
221 | ButtonGroup: import("react").FunctionComponent<Omit<import("..").ButtonGroupProps & Partial<import("../config").ThemeProps<import("..").ButtonGroupProps>>, keyof import("../config").ThemeProps<T>>> | import("react").ForwardRefExoticComponent<import("..").ButtonGroupProps & Partial<import("../config").ThemeProps<import("..").ButtonGroupProps>>>;
|
222 | };
|
223 | export default ThemedListItem;
|