sapo-components-ui-rn 1.0.56 → 1.0.58

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.
@@ -2,7 +2,7 @@ import React from "react";
2
2
  import { StyleProp, TextStyle } from "react-native";
3
3
  export type IconType = "FontAwesome" | "Image" | "MaterialIcons" | "Feather" | "MaterialCommunityIcons" | "Svg";
4
4
  export interface IconProps {
5
- name: "IconCheckboxActive" | "IconCheckbox" | "IconRadio" | "IconRadioActive" | "IconRadioDisable" | "IconArrowDown" | "IconClearText" | "IconSearch" | "IconClose" | "IconSuccess" | "IconError" | "IconInfo" | "IconWarning";
5
+ name: "IconCheckboxActive" | "IconCheckbox" | "IconRadio" | "IconRadioActive" | "IconRadioDisable" | "IconArrowDown" | "IconClearText" | "IconSearch" | "IconClose" | "IconSuccess" | "IconError" | "IconInfo" | "IconWarning" | "IconDelNumber";
6
6
  backgroundColor?: string;
7
7
  size?: number;
8
8
  color?: string;
@@ -4,10 +4,11 @@ import { Props as TextInputAffixProps } from "./Adornment/TextInputAffix";
4
4
  import type { RenderProps, TextInputLabelProp } from "./types";
5
5
  import type { ThemeProp } from "../../types";
6
6
  export type Props = React.ComponentPropsWithRef<typeof NativeTextInput> & {
7
- mode?: "flat" | "default";
7
+ mode?: "flat" | "default" | "number";
8
8
  left?: React.ReactNode;
9
9
  right?: React.ReactNode;
10
10
  prefix?: string;
11
+ textError?: string;
11
12
  /**
12
13
  * If true, user won't be able to interact with the component.
13
14
  */
@@ -15,11 +16,11 @@ export type Props = React.ComponentPropsWithRef<typeof NativeTextInput> & {
15
16
  /**
16
17
  * The text or component to use for the floating label.
17
18
  */
18
- label?: TextInputLabelProp;
19
+ label: TextInputLabelProp;
19
20
  /**
20
21
  * Placeholder for the input.
21
22
  */
22
- placeholder?: string;
23
+ placeholder: string;
23
24
  /**
24
25
  * Whether to style the TextInput with error style.
25
26
  */
@@ -142,8 +143,8 @@ export type Props = React.ComponentPropsWithRef<typeof NativeTextInput> & {
142
143
  * Example: `borderRadius`, `borderColor`
143
144
  */
144
145
  underlineStyle?: StyleProp<ViewStyle>;
146
+ minHeight?: number;
145
147
  clearButton?: boolean;
146
- textStyle?: StyleProp<TextStyle>;
147
148
  };
148
149
  interface CompoundedComponent extends React.ForwardRefExoticComponent<Props & React.RefAttributes<TextInputHandles>> {
149
150
  Affix: React.FunctionComponent<Partial<TextInputAffixProps>>;
@@ -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, placeholderTextColor, clearButton, contentStyle, value, ...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, placeholderTextColor, clearButton, contentStyle, value, textError, ...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, placeholderTextColor, clearButton, contentStyle, scaledLabel, outlineStyle, outlineColor, value, ...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, placeholderTextColor, clearButton, contentStyle, scaledLabel, outlineStyle, outlineColor, value, textError, ...rest }: ChildTextInputProps) => React.JSX.Element;
4
4
  export default TextInputFlat;
@@ -0,0 +1,25 @@
1
+ import React from "react";
2
+ import { StyleProp, ViewStyle, TouchableOpacityProps, TextStyle } from "react-native";
3
+ import { IText } from "../Text";
4
+ import { ThemeProp } from "../../types";
5
+ export interface TextInputNumberProps extends TouchableOpacityProps {
6
+ style?: StyleProp<ViewStyle>;
7
+ borderColor?: string;
8
+ value?: string;
9
+ label?: string;
10
+ textError?: string;
11
+ left?: React.ReactNode;
12
+ right?: React.ReactNode;
13
+ textProps?: IText;
14
+ textColor?: string;
15
+ labelColor?: string;
16
+ textStyle?: TextStyle;
17
+ labelStyle?: TextStyle;
18
+ disabled?: boolean;
19
+ prefix?: string;
20
+ onChangeText?: (value: string) => void;
21
+ clearButton?: boolean;
22
+ theme?: ThemeProp;
23
+ }
24
+ declare const _default: React.MemoExoticComponent<({ style, value, label, textError, borderColor, left, right, textStyle, labelStyle, textProps, onChangeText, disabled, textColor, labelColor, theme: themeOverrides, prefix, clearButton, ...props }: TextInputNumberProps) => React.JSX.Element>;
25
+ export default _default;
@@ -94,6 +94,7 @@ export type ChildTextInputProps = {
94
94
  onRightAffixLayoutChange: (event: LayoutChangeEvent) => void;
95
95
  clearButton?: boolean;
96
96
  prefix?: string;
97
+ textError?: string;
97
98
  } & $Omit<TextInputTypesWithoutMode, "theme"> & {
98
99
  theme: InternalTheme;
99
100
  };
@@ -0,0 +1,4 @@
1
+ import * as React from "react";
2
+ import { SvgProps } from "react-native-svg";
3
+ declare const IconDelNumber: (props: SvgProps) => React.JSX.Element;
4
+ export default IconDelNumber;