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