sapo-components-ui-rn 1.1.55 → 1.1.57
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.
- package/dist/components/Text/index.d.ts +1 -2
- package/dist/components/TextInput/TextInputDefault.d.ts +1 -1
- package/dist/components/TextInput/helpers.d.ts +7 -7
- package/dist/index.esm.js +103 -106
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +103 -106
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/SelectionField/index.tsx +17 -17
- package/src/components/Text/index.tsx +11 -12
- package/src/components/TextInput/TextInput.tsx +19 -20
- package/src/components/TextInput/TextInputDefault.tsx +33 -39
- package/src/components/TextInput/TextInputNumber.tsx +42 -42
- package/src/components/TextInput/helpers.tsx +27 -27
- package/src/components/TextInput/types.tsx +1 -1
- package/src/.DS_Store +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { TextProps
|
|
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;
|
|
@@ -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,
|
|
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;
|
|
@@ -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;
|