sapo-components-ui-rn 1.1.53 → 1.1.54

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -19,6 +19,7 @@ export interface SelectionFieldProps extends TouchableOpacityProps {
19
19
  onPress?: (res?: any) => void;
20
20
  theme?: ThemeProp;
21
21
  required?: boolean;
22
+ height?: number;
22
23
  }
23
- declare const _default: React.MemoExoticComponent<({ style, content, label, error, borderColor, left, right, textStyle, labelStyle, textProps, onPress, disabled, textColor, labelColor, theme: themeOverrides, required, ...props }: SelectionFieldProps) => React.JSX.Element>;
24
+ declare const _default: React.MemoExoticComponent<({ style, content, label, error, borderColor, left, right, textStyle, labelStyle, textProps, onPress, disabled, textColor, labelColor, theme: themeOverrides, required, height, ...props }: SelectionFieldProps) => React.JSX.Element>;
24
25
  export default _default;
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import { TextProps } from "react-native";
2
+ import { TextProps, StyleProp, TextStyle } from "react-native";
3
3
  import { ThemeProp } from "../../types";
4
4
  export interface IText extends TextProps {
5
5
  size?: number;
@@ -11,6 +11,7 @@ export interface IText extends TextProps {
11
11
  semibold?: boolean;
12
12
  children?: React.ReactNode;
13
13
  theme?: ThemeProp;
14
+ style?: StyleProp<TextStyle>;
14
15
  }
15
16
  declare const _default: React.MemoExoticComponent<React.ComponentType<IText>>;
16
17
  export default _default;
@@ -18,6 +18,7 @@ export type Props = React.ComponentPropsWithRef<typeof NativeTextInput> & {
18
18
  labelScaleValue?: number;
19
19
  labelStyle?: StyleProp<TextStyle>;
20
20
  textErrorStyle?: StyleProp<TextStyle>;
21
+ height?: number;
21
22
  /**
22
23
  * If true, user won't be able to interact with the component.
23
24
  */
@@ -22,6 +22,7 @@ export interface TextInputNumberProps extends TouchableOpacityProps {
22
22
  labelStyle?: StyleProp<TextStyle>;
23
23
  contentStyle?: StyleProp<TextStyle>;
24
24
  textErrorStyle?: StyleProp<TextStyle>;
25
+ height?: number;
25
26
  }
26
- declare const _default: React.MemoExoticComponent<({ style, value, label, textError, left, right, onChangeText, disabled, theme: themeOverrides, prefix, suffix, clearButton, maxValue, minValue, type, formatDecimal, required, labelStyle, contentStyle, textErrorStyle, ...props }: TextInputNumberProps) => React.JSX.Element>;
27
+ declare const _default: React.MemoExoticComponent<({ style, value, label, textError, left, right, onChangeText, disabled, theme: themeOverrides, prefix, suffix, clearButton, maxValue, minValue, type, formatDecimal, required, labelStyle, contentStyle, textErrorStyle, height, ...props }: TextInputNumberProps) => React.JSX.Element>;
27
28
  export default _default;
@@ -28,26 +28,26 @@ export type Padding = {
28
28
  export declare const calculateLabelTopPosition: (labelHeight: number, height?: number, optionalPadding?: number) => number;
29
29
  export declare const calculateInputHeight: (labelHeight: number, height: any | undefined, minHeight: number) => number;
30
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 function calculateFlatAffixTopPosition({ height, paddingTop, paddingBottom, affixHeight, }: {
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 function calculateFlatAffixTopPosition({ height, paddingTop, paddingBottom, affixHeight }: {
34
34
  height: number;
35
35
  paddingTop: number;
36
36
  paddingBottom: number;
37
37
  affixHeight: number;
38
38
  }): number;
39
- export declare function calculateOutlinedIconAndAffixTopPosition({ height, affixHeight, labelYOffset, }: {
39
+ export declare function calculateOutlinedIconAndAffixTopPosition({ height, affixHeight, labelYOffset }: {
40
40
  height: number;
41
41
  affixHeight: number;
42
42
  labelYOffset: number;
43
43
  }): number;
44
- export declare const calculateFlatInputHorizontalPadding: ({ adornmentConfig, }: {
44
+ export declare const calculateFlatInputHorizontalPadding: ({ adornmentConfig }: {
45
45
  adornmentConfig: AdornmentConfig[];
46
46
  }) => {
47
47
  paddingLeft: number;
48
48
  paddingRight: number;
49
49
  };
50
- export declare const getFlatInputColors: ({ underlineColor, activeUnderlineColor, customSelectionColor, textColor, disabled, error, theme, }: {
50
+ export declare const getFlatInputColors: ({ underlineColor, activeUnderlineColor, customSelectionColor, textColor, disabled, error, theme }: {
51
51
  underlineColor?: string;
52
52
  activeUnderlineColor?: string;
53
53
  customSelectionColor?: string;
@@ -64,7 +64,7 @@ export declare const getFlatInputColors: ({ underlineColor, activeUnderlineColor
64
64
  errorColor: string;
65
65
  backgroundColor: string;
66
66
  };
67
- export declare const getOutlinedInputColors: ({ activeOutlineColor, customOutlineColor, customSelectionColor, textColor, disabled, error, theme, }: {
67
+ export declare const getOutlinedInputColors: ({ activeOutlineColor, customOutlineColor, customSelectionColor, textColor, disabled, error, theme }: {
68
68
  activeOutlineColor?: string;
69
69
  customOutlineColor?: string;
70
70
  customSelectionColor?: string;
@@ -101,6 +101,7 @@ export type ChildTextInputProps = {
101
101
  labelStyle?: StyleProp<TextStyle>;
102
102
  labelScaleValue?: number;
103
103
  textErrorStyle?: StyleProp<TextStyle>;
104
+ inputHeight?: number;
104
105
  } & $Omit<TextInputTypesWithoutMode, "theme"> & {
105
106
  theme: InternalTheme;
106
107
  };