UNPKG

5.97 kBTypeScriptView Raw
1import * as React from 'react';
2import { Animated, StyleProp, TextStyle } from 'react-native';
3import AnimatedText from './Typography/AnimatedText';
4import type { $Omit } from '../types';
5declare type Props = $Omit<$Omit<React.ComponentPropsWithRef<typeof AnimatedText>, 'padding'>, 'type'> & {
6 /**
7 * Type of the helper text.
8 */
9 type: 'error' | 'info';
10 /**
11 * Whether to display the helper text.
12 */
13 visible?: boolean;
14 /**
15 * Whether to apply padding to the helper text.
16 */
17 padding?: 'none' | 'normal';
18 /**
19 * Text content of the HelperText.
20 */
21 children: React.ReactNode;
22 style?: StyleProp<TextStyle>;
23 /**
24 * @optional
25 */
26 theme: ReactNativePaper.Theme;
27 /**
28 * TestID used for testing purposes
29 */
30 testID?: string;
31};
32declare const _default: React.ComponentType<Pick<$Omit<$Omit<(Pick<Pick<Animated.AnimatedProps<import("react-native").TextProps & React.RefAttributes<import("react-native").Text>> & {
33 style?: StyleProp<TextStyle>;
34 theme: ReactNativePaper.Theme;
35}, keyof import("react-native").TextProps | keyof React.RefAttributes<import("react-native").Text>> & {
36 theme?: import("@callstack/react-theme-provider").$DeepPartial<ReactNativePaper.Theme> | undefined;
37}, keyof import("react-native").TextProps | "key" | "theme"> & React.RefAttributes<React.Component<Pick<Animated.AnimatedProps<import("react-native").TextProps & React.RefAttributes<import("react-native").Text>> & {
38 style?: StyleProp<TextStyle>;
39 theme: ReactNativePaper.Theme;
40}, keyof import("react-native").TextProps | keyof React.RefAttributes<import("react-native").Text>> & {
41 theme?: import("@callstack/react-theme-provider").$DeepPartial<ReactNativePaper.Theme> | undefined;
42}, any, any>>) | (Pick<Animated.AnimatedProps<import("react-native").TextProps & React.RefAttributes<import("react-native").Text>> & {
43 style?: StyleProp<TextStyle>;
44 theme: ReactNativePaper.Theme;
45}, keyof import("react-native").TextProps | keyof React.RefAttributes<import("react-native").Text>> & {
46 theme?: import("@callstack/react-theme-provider").$DeepPartial<ReactNativePaper.Theme> | undefined;
47} & {
48 children?: React.ReactNode;
49}), "padding">, "type"> & {
50 /**
51 * Type of the helper text.
52 */
53 type: "error" | "info";
54 /**
55 * Whether to display the helper text.
56 */
57 visible?: boolean | undefined;
58 /**
59 * Whether to apply padding to the helper text.
60 */
61 padding?: "normal" | "none" | undefined;
62 /**
63 * Text content of the HelperText.
64 */
65 children: React.ReactNode;
66 style?: StyleProp<TextStyle>;
67 /**
68 * @optional
69 */
70 theme: ReactNativePaper.Theme;
71 /**
72 * TestID used for testing purposes
73 */
74 testID?: string | undefined;
75}, "style" | "children" | "allowFontScaling" | "ellipsizeMode" | "lineBreakMode" | "numberOfLines" | "onLayout" | "onTextLayout" | "onPress" | "onPressIn" | "onPressOut" | "onLongPress" | "testID" | "nativeID" | "maxFontSizeMultiplier" | "adjustsFontSizeToFit" | "minimumFontScale" | "suppressHighlighting" | "selectable" | "selectionColor" | "textBreakStrategy" | "dataDetectorType" | "android_hyphenationFrequency" | "accessible" | "accessibilityActions" | "accessibilityLabel" | "accessibilityRole" | "accessibilityState" | "accessibilityHint" | "accessibilityValue" | "onAccessibilityAction" | "accessibilityLiveRegion" | "importantForAccessibility" | "accessibilityElementsHidden" | "accessibilityViewIsModal" | "onAccessibilityEscape" | "onAccessibilityTap" | "onMagicTap" | "accessibilityIgnoresInvertColors" | "visible" | "padding" | "ref" | "key" | "type"> & {
76 theme?: import("@callstack/react-theme-provider").$DeepPartial<ReactNativePaper.Theme> | undefined;
77}> & import("@callstack/react-theme-provider/typings/hoist-non-react-statics").NonReactStatics<React.ComponentType<$Omit<$Omit<(Pick<Pick<Animated.AnimatedProps<import("react-native").TextProps & React.RefAttributes<import("react-native").Text>> & {
78 style?: StyleProp<TextStyle>;
79 theme: ReactNativePaper.Theme;
80}, keyof import("react-native").TextProps | keyof React.RefAttributes<import("react-native").Text>> & {
81 theme?: import("@callstack/react-theme-provider").$DeepPartial<ReactNativePaper.Theme> | undefined;
82}, keyof import("react-native").TextProps | "key" | "theme"> & React.RefAttributes<React.Component<Pick<Animated.AnimatedProps<import("react-native").TextProps & React.RefAttributes<import("react-native").Text>> & {
83 style?: StyleProp<TextStyle>;
84 theme: ReactNativePaper.Theme;
85}, keyof import("react-native").TextProps | keyof React.RefAttributes<import("react-native").Text>> & {
86 theme?: import("@callstack/react-theme-provider").$DeepPartial<ReactNativePaper.Theme> | undefined;
87}, any, any>>) | (Pick<Animated.AnimatedProps<import("react-native").TextProps & React.RefAttributes<import("react-native").Text>> & {
88 style?: StyleProp<TextStyle>;
89 theme: ReactNativePaper.Theme;
90}, keyof import("react-native").TextProps | keyof React.RefAttributes<import("react-native").Text>> & {
91 theme?: import("@callstack/react-theme-provider").$DeepPartial<ReactNativePaper.Theme> | undefined;
92} & {
93 children?: React.ReactNode;
94}), "padding">, "type"> & {
95 /**
96 * Type of the helper text.
97 */
98 type: "error" | "info";
99 /**
100 * Whether to display the helper text.
101 */
102 visible?: boolean | undefined;
103 /**
104 * Whether to apply padding to the helper text.
105 */
106 padding?: "normal" | "none" | undefined;
107 /**
108 * Text content of the HelperText.
109 */
110 children: React.ReactNode;
111 style?: StyleProp<TextStyle>;
112 /**
113 * @optional
114 */
115 theme: ReactNativePaper.Theme;
116 /**
117 * TestID used for testing purposes
118 */
119 testID?: string | undefined;
120}> & (({ style, type, visible, theme, onLayout, padding, ...rest }: Props) => JSX.Element), {}>;
121export default _default;
122
\No newline at end of file