UNPKG

24.5 kBTypeScriptView Raw
1/// <reference types="react" />
2declare const RadioButton: (import("react").ComponentType<Pick<import("./RadioButton").Props, "color" | "onPress" | "testID" | "value" | "disabled" | "status" | "uncheckedColor"> & {
3 theme?: import("@callstack/react-theme-provider").$DeepPartial<ReactNativePaper.Theme> | undefined;
4}> & import("@callstack/react-theme-provider/typings/hoist-non-react-statics").NonReactStatics<import("react").ComponentType<import("./RadioButton").Props> & ((props: import("./RadioButton").Props) => JSX.Element), {}>) & {
5 Group: {
6 ({ value, onValueChange, children }: {
7 onValueChange: (value: string) => void;
8 value: string;
9 children: import("react").ReactNode;
10 }): JSX.Element;
11 displayName: string;
12 };
13 Android: import("react").ComponentType<Pick<import("../../types").$RemoveChildren<import("react").ComponentType<Pick<import("react-native").TouchableWithoutFeedbackProps & import("react").RefAttributes<import("react-native").TouchableWithoutFeedback> & {
14 borderless?: boolean | undefined;
15 background?: Object | undefined;
16 centered?: boolean | undefined;
17 disabled?: boolean | undefined;
18 onPress?: ((e: import("react-native").GestureResponderEvent) => void) | undefined;
19 onLongPress?: ((e: import("react-native").GestureResponderEvent) => void) | undefined;
20 rippleColor?: string | undefined;
21 underlayColor?: string | undefined;
22 children: import("react").ReactNode;
23 style?: import("react-native").StyleProp<import("react-native").ViewStyle>;
24 theme: ReactNativePaper.Theme;
25 }, keyof import("react-native").TouchableWithoutFeedbackProps | "background" | "borderless" | "rippleColor" | "underlayColor" | "centered" | keyof import("react").RefAttributes<import("react-native").TouchableWithoutFeedback>> & {
26 theme?: import("@callstack/react-theme-provider").$DeepPartial<ReactNativePaper.Theme> | undefined;
27 }> & import("@callstack/react-theme-provider/typings/hoist-non-react-statics").NonReactStatics<import("react").ComponentType<import("react-native").TouchableWithoutFeedbackProps & import("react").RefAttributes<import("react-native").TouchableWithoutFeedback> & {
28 borderless?: boolean | undefined;
29 background?: Object | undefined;
30 centered?: boolean | undefined;
31 disabled?: boolean | undefined;
32 onPress?: ((e: import("react-native").GestureResponderEvent) => void) | undefined;
33 onLongPress?: ((e: import("react-native").GestureResponderEvent) => void) | undefined;
34 rippleColor?: string | undefined;
35 underlayColor?: string | undefined;
36 children: import("react").ReactNode;
37 style?: import("react-native").StyleProp<import("react-native").ViewStyle>;
38 theme: ReactNativePaper.Theme;
39 }> & {
40 ({ style, background: _background, borderless, disabled: disabledProp, rippleColor, underlayColor: _underlayColor, children, theme, ...rest }: import("react-native").TouchableWithoutFeedbackProps & import("react").RefAttributes<import("react-native").TouchableWithoutFeedback> & {
41 borderless?: boolean | undefined;
42 background?: Object | undefined;
43 centered?: boolean | undefined;
44 disabled?: boolean | undefined;
45 onPress?: ((e: import("react-native").GestureResponderEvent) => void) | undefined;
46 onLongPress?: ((e: import("react-native").GestureResponderEvent) => void) | undefined;
47 rippleColor?: string | undefined;
48 underlayColor?: string | undefined;
49 children: import("react").ReactNode;
50 style?: import("react-native").StyleProp<import("react-native").ViewStyle>;
51 theme: ReactNativePaper.Theme;
52 }): JSX.Element;
53 supported: boolean;
54 }, {}>> & {
55 value: string;
56 status?: "checked" | "unchecked" | undefined;
57 disabled?: boolean | undefined;
58 onPress?: ((param?: any) => void) | undefined;
59 uncheckedColor?: string | undefined;
60 color?: string | undefined;
61 theme: ReactNativePaper.Theme;
62 testID?: string | undefined;
63 }, "style" | "color" | "onLayout" | "onPress" | "onPressIn" | "onPressOut" | "onLongPress" | "testID" | "accessible" | "accessibilityActions" | "accessibilityLabel" | "accessibilityRole" | "accessibilityState" | "accessibilityHint" | "accessibilityValue" | "onAccessibilityAction" | "accessibilityLiveRegion" | "importantForAccessibility" | "accessibilityElementsHidden" | "accessibilityViewIsModal" | "onAccessibilityEscape" | "onAccessibilityTap" | "onMagicTap" | "accessibilityIgnoresInvertColors" | "key" | "hitSlop" | "value" | "delayLongPress" | "delayPressIn" | "delayPressOut" | "disabled" | "onBlur" | "onFocus" | "pressRetentionOffset" | "touchSoundDisabled" | "background" | "borderless" | "rippleColor" | "underlayColor" | "centered" | "status" | "uncheckedColor"> & {
64 theme?: import("@callstack/react-theme-provider").$DeepPartial<ReactNativePaper.Theme> | undefined;
65 }> & import("@callstack/react-theme-provider/typings/hoist-non-react-statics").NonReactStatics<import("react").ComponentType<import("../../types").$RemoveChildren<import("react").ComponentType<Pick<import("react-native").TouchableWithoutFeedbackProps & import("react").RefAttributes<import("react-native").TouchableWithoutFeedback> & {
66 borderless?: boolean | undefined;
67 background?: Object | undefined;
68 centered?: boolean | undefined;
69 disabled?: boolean | undefined;
70 onPress?: ((e: import("react-native").GestureResponderEvent) => void) | undefined;
71 onLongPress?: ((e: import("react-native").GestureResponderEvent) => void) | undefined;
72 rippleColor?: string | undefined;
73 underlayColor?: string | undefined;
74 children: import("react").ReactNode;
75 style?: import("react-native").StyleProp<import("react-native").ViewStyle>;
76 theme: ReactNativePaper.Theme;
77 }, keyof import("react-native").TouchableWithoutFeedbackProps | "background" | "borderless" | "rippleColor" | "underlayColor" | "centered" | keyof import("react").RefAttributes<import("react-native").TouchableWithoutFeedback>> & {
78 theme?: import("@callstack/react-theme-provider").$DeepPartial<ReactNativePaper.Theme> | undefined;
79 }> & import("@callstack/react-theme-provider/typings/hoist-non-react-statics").NonReactStatics<import("react").ComponentType<import("react-native").TouchableWithoutFeedbackProps & import("react").RefAttributes<import("react-native").TouchableWithoutFeedback> & {
80 borderless?: boolean | undefined;
81 background?: Object | undefined;
82 centered?: boolean | undefined;
83 disabled?: boolean | undefined;
84 onPress?: ((e: import("react-native").GestureResponderEvent) => void) | undefined;
85 onLongPress?: ((e: import("react-native").GestureResponderEvent) => void) | undefined;
86 rippleColor?: string | undefined;
87 underlayColor?: string | undefined;
88 children: import("react").ReactNode;
89 style?: import("react-native").StyleProp<import("react-native").ViewStyle>;
90 theme: ReactNativePaper.Theme;
91 }> & {
92 ({ style, background: _background, borderless, disabled: disabledProp, rippleColor, underlayColor: _underlayColor, children, theme, ...rest }: import("react-native").TouchableWithoutFeedbackProps & import("react").RefAttributes<import("react-native").TouchableWithoutFeedback> & {
93 borderless?: boolean | undefined;
94 background?: Object | undefined;
95 centered?: boolean | undefined;
96 disabled?: boolean | undefined;
97 onPress?: ((e: import("react-native").GestureResponderEvent) => void) | undefined;
98 onLongPress?: ((e: import("react-native").GestureResponderEvent) => void) | undefined;
99 rippleColor?: string | undefined;
100 underlayColor?: string | undefined;
101 children: import("react").ReactNode;
102 style?: import("react-native").StyleProp<import("react-native").ViewStyle>;
103 theme: ReactNativePaper.Theme;
104 }): JSX.Element;
105 supported: boolean;
106 }, {}>> & {
107 value: string;
108 status?: "checked" | "unchecked" | undefined;
109 disabled?: boolean | undefined;
110 onPress?: ((param?: any) => void) | undefined;
111 uncheckedColor?: string | undefined;
112 color?: string | undefined;
113 theme: ReactNativePaper.Theme;
114 testID?: string | undefined;
115 }> & {
116 ({ disabled, onPress, theme, value, status, testID, ...rest }: import("../../types").$RemoveChildren<import("react").ComponentType<Pick<import("react-native").TouchableWithoutFeedbackProps & import("react").RefAttributes<import("react-native").TouchableWithoutFeedback> & {
117 borderless?: boolean | undefined;
118 background?: Object | undefined;
119 centered?: boolean | undefined;
120 disabled?: boolean | undefined;
121 onPress?: ((e: import("react-native").GestureResponderEvent) => void) | undefined;
122 onLongPress?: ((e: import("react-native").GestureResponderEvent) => void) | undefined;
123 rippleColor?: string | undefined;
124 underlayColor?: string | undefined;
125 children: import("react").ReactNode;
126 style?: import("react-native").StyleProp<import("react-native").ViewStyle>;
127 theme: ReactNativePaper.Theme;
128 }, keyof import("react-native").TouchableWithoutFeedbackProps | "background" | "borderless" | "rippleColor" | "underlayColor" | "centered" | keyof import("react").RefAttributes<import("react-native").TouchableWithoutFeedback>> & {
129 theme?: import("@callstack/react-theme-provider").$DeepPartial<ReactNativePaper.Theme> | undefined;
130 }> & import("@callstack/react-theme-provider/typings/hoist-non-react-statics").NonReactStatics<import("react").ComponentType<import("react-native").TouchableWithoutFeedbackProps & import("react").RefAttributes<import("react-native").TouchableWithoutFeedback> & {
131 borderless?: boolean | undefined;
132 background?: Object | undefined;
133 centered?: boolean | undefined;
134 disabled?: boolean | undefined;
135 onPress?: ((e: import("react-native").GestureResponderEvent) => void) | undefined;
136 onLongPress?: ((e: import("react-native").GestureResponderEvent) => void) | undefined;
137 rippleColor?: string | undefined;
138 underlayColor?: string | undefined;
139 children: import("react").ReactNode;
140 style?: import("react-native").StyleProp<import("react-native").ViewStyle>;
141 theme: ReactNativePaper.Theme;
142 }> & {
143 ({ style, background: _background, borderless, disabled: disabledProp, rippleColor, underlayColor: _underlayColor, children, theme, ...rest }: import("react-native").TouchableWithoutFeedbackProps & import("react").RefAttributes<import("react-native").TouchableWithoutFeedback> & {
144 borderless?: boolean | undefined;
145 background?: Object | undefined;
146 centered?: boolean | undefined;
147 disabled?: boolean | undefined;
148 onPress?: ((e: import("react-native").GestureResponderEvent) => void) | undefined;
149 onLongPress?: ((e: import("react-native").GestureResponderEvent) => void) | undefined;
150 rippleColor?: string | undefined;
151 underlayColor?: string | undefined;
152 children: import("react").ReactNode;
153 style?: import("react-native").StyleProp<import("react-native").ViewStyle>;
154 theme: ReactNativePaper.Theme;
155 }): JSX.Element;
156 supported: boolean;
157 }, {}>> & {
158 value: string;
159 status?: "checked" | "unchecked" | undefined;
160 disabled?: boolean | undefined;
161 onPress?: ((param?: any) => void) | undefined;
162 uncheckedColor?: string | undefined;
163 color?: string | undefined;
164 theme: ReactNativePaper.Theme;
165 testID?: string | undefined;
166 }): JSX.Element;
167 displayName: string;
168 }, {}>;
169 IOS: import("react").ComponentType<Pick<import("../../types").$RemoveChildren<import("react").ComponentType<Pick<import("react-native").TouchableWithoutFeedbackProps & import("react").RefAttributes<import("react-native").TouchableWithoutFeedback> & {
170 borderless?: boolean | undefined;
171 background?: Object | undefined;
172 centered?: boolean | undefined;
173 disabled?: boolean | undefined;
174 onPress?: ((e: import("react-native").GestureResponderEvent) => void) | undefined;
175 onLongPress?: ((e: import("react-native").GestureResponderEvent) => void) | undefined;
176 rippleColor?: string | undefined;
177 underlayColor?: string | undefined;
178 children: import("react").ReactNode;
179 style?: import("react-native").StyleProp<import("react-native").ViewStyle>;
180 theme: ReactNativePaper.Theme;
181 }, keyof import("react-native").TouchableWithoutFeedbackProps | "background" | "borderless" | "rippleColor" | "underlayColor" | "centered" | keyof import("react").RefAttributes<import("react-native").TouchableWithoutFeedback>> & {
182 theme?: import("@callstack/react-theme-provider").$DeepPartial<ReactNativePaper.Theme> | undefined;
183 }> & import("@callstack/react-theme-provider/typings/hoist-non-react-statics").NonReactStatics<import("react").ComponentType<import("react-native").TouchableWithoutFeedbackProps & import("react").RefAttributes<import("react-native").TouchableWithoutFeedback> & {
184 borderless?: boolean | undefined;
185 background?: Object | undefined;
186 centered?: boolean | undefined;
187 disabled?: boolean | undefined;
188 onPress?: ((e: import("react-native").GestureResponderEvent) => void) | undefined;
189 onLongPress?: ((e: import("react-native").GestureResponderEvent) => void) | undefined;
190 rippleColor?: string | undefined;
191 underlayColor?: string | undefined;
192 children: import("react").ReactNode;
193 style?: import("react-native").StyleProp<import("react-native").ViewStyle>;
194 theme: ReactNativePaper.Theme;
195 }> & {
196 ({ style, background: _background, borderless, disabled: disabledProp, rippleColor, underlayColor: _underlayColor, children, theme, ...rest }: import("react-native").TouchableWithoutFeedbackProps & import("react").RefAttributes<import("react-native").TouchableWithoutFeedback> & {
197 borderless?: boolean | undefined;
198 background?: Object | undefined;
199 centered?: boolean | undefined;
200 disabled?: boolean | undefined;
201 onPress?: ((e: import("react-native").GestureResponderEvent) => void) | undefined;
202 onLongPress?: ((e: import("react-native").GestureResponderEvent) => void) | undefined;
203 rippleColor?: string | undefined;
204 underlayColor?: string | undefined;
205 children: import("react").ReactNode;
206 style?: import("react-native").StyleProp<import("react-native").ViewStyle>;
207 theme: ReactNativePaper.Theme;
208 }): JSX.Element;
209 supported: boolean;
210 }, {}>> & {
211 value: string;
212 status?: "checked" | "unchecked" | undefined;
213 disabled?: boolean | undefined;
214 onPress?: (() => void) | undefined;
215 color?: string | undefined;
216 theme: ReactNativePaper.Theme;
217 testID?: string | undefined;
218 }, "style" | "color" | "onLayout" | "onPress" | "onPressIn" | "onPressOut" | "onLongPress" | "testID" | "accessible" | "accessibilityActions" | "accessibilityLabel" | "accessibilityRole" | "accessibilityState" | "accessibilityHint" | "accessibilityValue" | "onAccessibilityAction" | "accessibilityLiveRegion" | "importantForAccessibility" | "accessibilityElementsHidden" | "accessibilityViewIsModal" | "onAccessibilityEscape" | "onAccessibilityTap" | "onMagicTap" | "accessibilityIgnoresInvertColors" | "key" | "hitSlop" | "value" | "delayLongPress" | "delayPressIn" | "delayPressOut" | "disabled" | "onBlur" | "onFocus" | "pressRetentionOffset" | "touchSoundDisabled" | "background" | "borderless" | "rippleColor" | "underlayColor" | "centered" | "status"> & {
219 theme?: import("@callstack/react-theme-provider").$DeepPartial<ReactNativePaper.Theme> | undefined;
220 }> & import("@callstack/react-theme-provider/typings/hoist-non-react-statics").NonReactStatics<import("react").ComponentType<import("../../types").$RemoveChildren<import("react").ComponentType<Pick<import("react-native").TouchableWithoutFeedbackProps & import("react").RefAttributes<import("react-native").TouchableWithoutFeedback> & {
221 borderless?: boolean | undefined;
222 background?: Object | undefined;
223 centered?: boolean | undefined;
224 disabled?: boolean | undefined;
225 onPress?: ((e: import("react-native").GestureResponderEvent) => void) | undefined;
226 onLongPress?: ((e: import("react-native").GestureResponderEvent) => void) | undefined;
227 rippleColor?: string | undefined;
228 underlayColor?: string | undefined;
229 children: import("react").ReactNode;
230 style?: import("react-native").StyleProp<import("react-native").ViewStyle>;
231 theme: ReactNativePaper.Theme;
232 }, keyof import("react-native").TouchableWithoutFeedbackProps | "background" | "borderless" | "rippleColor" | "underlayColor" | "centered" | keyof import("react").RefAttributes<import("react-native").TouchableWithoutFeedback>> & {
233 theme?: import("@callstack/react-theme-provider").$DeepPartial<ReactNativePaper.Theme> | undefined;
234 }> & import("@callstack/react-theme-provider/typings/hoist-non-react-statics").NonReactStatics<import("react").ComponentType<import("react-native").TouchableWithoutFeedbackProps & import("react").RefAttributes<import("react-native").TouchableWithoutFeedback> & {
235 borderless?: boolean | undefined;
236 background?: Object | undefined;
237 centered?: boolean | undefined;
238 disabled?: boolean | undefined;
239 onPress?: ((e: import("react-native").GestureResponderEvent) => void) | undefined;
240 onLongPress?: ((e: import("react-native").GestureResponderEvent) => void) | undefined;
241 rippleColor?: string | undefined;
242 underlayColor?: string | undefined;
243 children: import("react").ReactNode;
244 style?: import("react-native").StyleProp<import("react-native").ViewStyle>;
245 theme: ReactNativePaper.Theme;
246 }> & {
247 ({ style, background: _background, borderless, disabled: disabledProp, rippleColor, underlayColor: _underlayColor, children, theme, ...rest }: import("react-native").TouchableWithoutFeedbackProps & import("react").RefAttributes<import("react-native").TouchableWithoutFeedback> & {
248 borderless?: boolean | undefined;
249 background?: Object | undefined;
250 centered?: boolean | undefined;
251 disabled?: boolean | undefined;
252 onPress?: ((e: import("react-native").GestureResponderEvent) => void) | undefined;
253 onLongPress?: ((e: import("react-native").GestureResponderEvent) => void) | undefined;
254 rippleColor?: string | undefined;
255 underlayColor?: string | undefined;
256 children: import("react").ReactNode;
257 style?: import("react-native").StyleProp<import("react-native").ViewStyle>;
258 theme: ReactNativePaper.Theme;
259 }): JSX.Element;
260 supported: boolean;
261 }, {}>> & {
262 value: string;
263 status?: "checked" | "unchecked" | undefined;
264 disabled?: boolean | undefined;
265 onPress?: (() => void) | undefined;
266 color?: string | undefined;
267 theme: ReactNativePaper.Theme;
268 testID?: string | undefined;
269 }> & {
270 ({ disabled, onPress, theme, status, value, testID, ...rest }: import("../../types").$RemoveChildren<import("react").ComponentType<Pick<import("react-native").TouchableWithoutFeedbackProps & import("react").RefAttributes<import("react-native").TouchableWithoutFeedback> & {
271 borderless?: boolean | undefined;
272 background?: Object | undefined;
273 centered?: boolean | undefined;
274 disabled?: boolean | undefined;
275 onPress?: ((e: import("react-native").GestureResponderEvent) => void) | undefined;
276 onLongPress?: ((e: import("react-native").GestureResponderEvent) => void) | undefined;
277 rippleColor?: string | undefined;
278 underlayColor?: string | undefined;
279 children: import("react").ReactNode;
280 style?: import("react-native").StyleProp<import("react-native").ViewStyle>;
281 theme: ReactNativePaper.Theme;
282 }, keyof import("react-native").TouchableWithoutFeedbackProps | "background" | "borderless" | "rippleColor" | "underlayColor" | "centered" | keyof import("react").RefAttributes<import("react-native").TouchableWithoutFeedback>> & {
283 theme?: import("@callstack/react-theme-provider").$DeepPartial<ReactNativePaper.Theme> | undefined;
284 }> & import("@callstack/react-theme-provider/typings/hoist-non-react-statics").NonReactStatics<import("react").ComponentType<import("react-native").TouchableWithoutFeedbackProps & import("react").RefAttributes<import("react-native").TouchableWithoutFeedback> & {
285 borderless?: boolean | undefined;
286 background?: Object | undefined;
287 centered?: boolean | undefined;
288 disabled?: boolean | undefined;
289 onPress?: ((e: import("react-native").GestureResponderEvent) => void) | undefined;
290 onLongPress?: ((e: import("react-native").GestureResponderEvent) => void) | undefined;
291 rippleColor?: string | undefined;
292 underlayColor?: string | undefined;
293 children: import("react").ReactNode;
294 style?: import("react-native").StyleProp<import("react-native").ViewStyle>;
295 theme: ReactNativePaper.Theme;
296 }> & {
297 ({ style, background: _background, borderless, disabled: disabledProp, rippleColor, underlayColor: _underlayColor, children, theme, ...rest }: import("react-native").TouchableWithoutFeedbackProps & import("react").RefAttributes<import("react-native").TouchableWithoutFeedback> & {
298 borderless?: boolean | undefined;
299 background?: Object | undefined;
300 centered?: boolean | undefined;
301 disabled?: boolean | undefined;
302 onPress?: ((e: import("react-native").GestureResponderEvent) => void) | undefined;
303 onLongPress?: ((e: import("react-native").GestureResponderEvent) => void) | undefined;
304 rippleColor?: string | undefined;
305 underlayColor?: string | undefined;
306 children: import("react").ReactNode;
307 style?: import("react-native").StyleProp<import("react-native").ViewStyle>;
308 theme: ReactNativePaper.Theme;
309 }): JSX.Element;
310 supported: boolean;
311 }, {}>> & {
312 value: string;
313 status?: "checked" | "unchecked" | undefined;
314 disabled?: boolean | undefined;
315 onPress?: (() => void) | undefined;
316 color?: string | undefined;
317 theme: ReactNativePaper.Theme;
318 testID?: string | undefined;
319 }): JSX.Element;
320 displayName: string;
321 }, {}>;
322 Item: import("react").ComponentType<Pick<import("./RadioButtonItem").Props, "label" | "style" | "color" | "onPress" | "testID" | "accessibilityLabel" | "position" | "value" | "mode" | "labelStyle" | "disabled" | "status" | "uncheckedColor"> & {
323 theme?: import("@callstack/react-theme-provider").$DeepPartial<ReactNativePaper.Theme> | undefined;
324 }> & import("@callstack/react-theme-provider/typings/hoist-non-react-statics").NonReactStatics<import("react").ComponentType<import("./RadioButtonItem").Props> & {
325 ({ value, label, style, labelStyle, onPress, disabled, color, uncheckedColor, status, theme: { colors }, accessibilityLabel, testID, mode, position, }: import("./RadioButtonItem").Props): JSX.Element;
326 displayName: string;
327 }, {}>;
328};
329export default RadioButton;
330
\No newline at end of file