sapo-components-ui-rn 1.1.54 → 1.1.56

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.
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import { TextProps, StyleProp, TextStyle } from "react-native";
2
+ import { TextProps } from "react-native";
3
3
  import { ThemeProp } from "../../types";
4
4
  export interface IText extends TextProps {
5
5
  size?: number;
@@ -11,7 +11,6 @@ export interface IText extends TextProps {
11
11
  semibold?: boolean;
12
12
  children?: React.ReactNode;
13
13
  theme?: ThemeProp;
14
- style?: StyleProp<TextStyle>;
15
14
  }
16
15
  declare const _default: React.MemoExoticComponent<React.ComponentType<IText>>;
17
16
  export default _default;
@@ -15,10 +15,6 @@ export type Props = React.ComponentPropsWithRef<typeof NativeTextInput> & {
15
15
  type?: "integer" | "float";
16
16
  formatDecimal?: 1 | 2 | 3;
17
17
  required?: boolean;
18
- labelScaleValue?: number;
19
- labelStyle?: StyleProp<TextStyle>;
20
- textErrorStyle?: StyleProp<TextStyle>;
21
- height?: number;
22
18
  /**
23
19
  * If true, user won't be able to interact with the component.
24
20
  */
@@ -1,4 +1,4 @@
1
1
  import * as React from "react";
2
2
  import type { ChildTextInputProps } from "./types";
3
- declare const TextInputDefault: ({ disabled, editable, label, error, selectionColor: customSelectionColor, cursorColor, outlineColor: customOutlineColor, activeOutlineColor, outlineStyle, textColor, dense, style, theme, render, multiline, parentState, innerRef, onFocus, forceFocus, onBlur, onChangeText, onLayout, left, right, prefix, suffix, placeholderTextColor, clearButton, contentStyle, labelStyle, value, textError, required, textErrorStyle, ...rest }: ChildTextInputProps) => React.JSX.Element;
3
+ declare const TextInputDefault: ({ disabled, editable, label, error, selectionColor: customSelectionColor, cursorColor, outlineColor: customOutlineColor, activeOutlineColor, outlineStyle, textColor, dense, style, theme, render, multiline, parentState, innerRef, onFocus, forceFocus, onBlur, onChangeText, onLayout, left, right, prefix, suffix, placeholderTextColor, clearButton, contentStyle, value, textError, required, ...rest }: ChildTextInputProps) => React.JSX.Element;
4
4
  export default TextInputDefault;
@@ -1,4 +1,4 @@
1
1
  import * as React from "react";
2
2
  import type { ChildTextInputProps } from "./types";
3
- declare const TextInputFlat: ({ disabled, editable, label, error, selectionColor: customSelectionColor, cursorColor, underlineColor, underlineStyle, activeUnderlineColor, textColor, dense, style, theme, render, multiline, parentState, innerRef, onFocus, forceFocus, onBlur, onChangeText, onLayoutAnimatedText, onLabelTextLayout, onLeftAffixLayoutChange, onRightAffixLayoutChange, onInputLayout, left, right, prefix, suffix, placeholderTextColor, clearButton, contentStyle, scaledLabel, outlineStyle, outlineColor, value, textError, required, labelScaleValue, textErrorStyle, ...rest }: ChildTextInputProps) => React.JSX.Element;
3
+ declare const TextInputFlat: ({ disabled, editable, label, error, selectionColor: customSelectionColor, cursorColor, underlineColor, underlineStyle, activeUnderlineColor, textColor, dense, style, theme, render, multiline, parentState, innerRef, onFocus, forceFocus, onBlur, onChangeText, onLayoutAnimatedText, onLabelTextLayout, onLeftAffixLayoutChange, onRightAffixLayoutChange, onInputLayout, left, right, prefix, suffix, placeholderTextColor, clearButton, contentStyle, scaledLabel, outlineStyle, outlineColor, value, textError, required, ...rest }: ChildTextInputProps) => React.JSX.Element;
4
4
  export default TextInputFlat;
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import { StyleProp, ViewStyle, TouchableOpacityProps, TextStyle } from "react-native";
2
+ import { StyleProp, ViewStyle, TouchableOpacityProps } from "react-native";
3
3
  import { ThemeProp } from "../../types";
4
4
  export interface TextInputNumberProps extends TouchableOpacityProps {
5
5
  style?: StyleProp<ViewStyle>;
@@ -19,10 +19,6 @@ export interface TextInputNumberProps extends TouchableOpacityProps {
19
19
  type?: "integer" | "float";
20
20
  formatDecimal?: 1 | 2 | 3;
21
21
  required?: boolean;
22
- labelStyle?: StyleProp<TextStyle>;
23
- contentStyle?: StyleProp<TextStyle>;
24
- textErrorStyle?: StyleProp<TextStyle>;
25
- height?: number;
26
22
  }
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>;
23
+ declare const _default: React.MemoExoticComponent<({ style, value, label, textError, left, right, onChangeText, disabled, theme: themeOverrides, prefix, suffix, clearButton, maxValue, minValue, type, formatDecimal, required, ...props }: TextInputNumberProps) => React.JSX.Element>;
28
24
  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;
@@ -1,5 +1,5 @@
1
1
  import * as React from "react";
2
- import type { TextInput as NativeTextInput, Animated, TextStyle, LayoutChangeEvent, ColorValue, StyleProp, ViewProps, ViewStyle, NativeSyntheticEvent, TextLayoutEventData, TextProps } from "react-native";
2
+ import type { TextInput as NativeTextInput, Animated, TextStyle, LayoutChangeEvent, ColorValue, StyleProp, ViewProps, ViewStyle, NativeSyntheticEvent, TextLayoutEventData } from "react-native";
3
3
  import type { $Omit, InternalTheme, ThemeProp } from "./../../types";
4
4
  export type TextInputLabelProp = string | React.ReactElement;
5
5
  type TextInputProps = React.ComponentPropsWithRef<typeof NativeTextInput> & {
@@ -79,7 +79,6 @@ export type State = {
79
79
  width: number;
80
80
  };
81
81
  contentStyle?: StyleProp<ViewProps>;
82
- labelStyle?: StyleProp<TextProps>;
83
82
  };
84
83
  export type ChildTextInputProps = {
85
84
  parentState: State;
@@ -98,10 +97,6 @@ export type ChildTextInputProps = {
98
97
  suffix?: string;
99
98
  textError?: string;
100
99
  required?: boolean;
101
- labelStyle?: StyleProp<TextStyle>;
102
- labelScaleValue?: number;
103
- textErrorStyle?: StyleProp<TextStyle>;
104
- inputHeight?: number;
105
100
  } & $Omit<TextInputTypesWithoutMode, "theme"> & {
106
101
  theme: InternalTheme;
107
102
  };