UNPKG

2.06 kBTypeScriptView Raw
1import type { Animated } from 'react-native';
2import type { AdornmentConfig } from './Adornment/types';
3import type { TextInputLabelProp } from './types';
4declare type PaddingProps = {
5 height: number | null;
6 labelHalfHeight: number;
7 multiline: boolean | null;
8 dense: boolean | null;
9 topPosition: number;
10 fontSize: number;
11 lineHeight?: number;
12 label?: TextInputLabelProp | null;
13 scale: number;
14 offset: number;
15 isAndroid: boolean;
16 styles: {
17 paddingTop: number;
18 paddingBottom: number;
19 };
20};
21declare type AdjProps = PaddingProps & {
22 pad: number;
23};
24export declare type Padding = {
25 paddingTop: number;
26 paddingBottom: number;
27};
28export declare const calculateLabelTopPosition: (labelHeight: number, height?: number, optionalPadding?: number) => number;
29export declare const calculateInputHeight: (labelHeight: number, height: any, minHeight: number) => number;
30export declare const calculatePadding: (props: PaddingProps) => number;
31export declare const adjustPaddingOut: ({ pad, multiline, label, scale, height, fontSize, lineHeight, dense, offset, isAndroid, }: AdjProps) => Padding;
32export declare const adjustPaddingFlat: ({ pad, scale, multiline, label, height, offset, dense, fontSize, isAndroid, styles, }: AdjProps) => Padding;
33export declare const interpolatePlaceholder: (labeled: Animated.Value, hasActiveOutline: boolean | undefined) => Animated.AnimatedInterpolation;
34export declare function calculateFlatAffixTopPosition({ height, paddingTop, paddingBottom, affixHeight, }: {
35 height: number;
36 paddingTop: number;
37 paddingBottom: number;
38 affixHeight: number;
39}): number;
40export declare function calculateOutlinedIconAndAffixTopPosition({ height, affixHeight, labelYOffset, }: {
41 height: number;
42 affixHeight: number;
43 labelYOffset: number;
44}): number;
45export declare const calculateFlatInputHorizontalPadding: ({ adornmentConfig, }: {
46 adornmentConfig: AdornmentConfig[];
47}) => {
48 paddingLeft: number;
49 paddingRight: number;
50};
51export {};