sapo-components-ui-rn 1.0.57 → 1.0.59

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,11 +4,13 @@ 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
11
  textError?: string;
12
+ maxValue?: number;
13
+ type?: "integer" | "float";
12
14
  /**
13
15
  * If true, user won't be able to interact with the component.
14
16
  */
@@ -16,11 +18,11 @@ export type Props = React.ComponentPropsWithRef<typeof NativeTextInput> & {
16
18
  /**
17
19
  * The text or component to use for the floating label.
18
20
  */
19
- label?: TextInputLabelProp;
21
+ label: TextInputLabelProp;
20
22
  /**
21
23
  * Placeholder for the input.
22
24
  */
23
- placeholder?: string;
25
+ placeholder: string;
24
26
  /**
25
27
  * Whether to style the TextInput with error style.
26
28
  */
@@ -143,8 +145,8 @@ export type Props = React.ComponentPropsWithRef<typeof NativeTextInput> & {
143
145
  * Example: `borderRadius`, `borderColor`
144
146
  */
145
147
  underlineStyle?: StyleProp<ViewStyle>;
148
+ minHeight?: number;
146
149
  clearButton?: boolean;
147
- textStyle?: StyleProp<TextStyle>;
148
150
  };
149
151
  interface CompoundedComponent extends React.ForwardRefExoticComponent<Props & React.RefAttributes<TextInputHandles>> {
150
152
  Affix: React.FunctionComponent<Partial<TextInputAffixProps>>;
@@ -0,0 +1,27 @@
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 | number;
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
+ maxValue?: number;
24
+ type?: "integer" | "float";
25
+ }
26
+ declare const _default: React.MemoExoticComponent<({ style, value, label, textError, borderColor, left, right, textStyle, labelStyle, textProps, onChangeText, disabled, textColor, labelColor, theme: themeOverrides, prefix, clearButton, maxValue, type, ...props }: TextInputNumberProps) => React.JSX.Element>;
27
+ export default _default;
@@ -42,6 +42,8 @@ interface ViewProps {
42
42
  borderRadius?: number;
43
43
  borderWidth?: number;
44
44
  borderColor?: string;
45
+ pointerEvents?: "box-none" | "box-only" | "none" | "auto";
46
+ gap?: number;
45
47
  }
46
- declare const _default: React.MemoExoticComponent<({ row, full, justifyCenter, justifyBetween, alignCenter, center, color, backgroundColor, width, height, padding, paddingHorizontal, paddingVertical, marginHorizontal, marginVertical, paddingLeft, paddingRight, paddingTop, alignEnd, wrap, borderBottomWidth, borderBottomColor, borderRadius, borderWidth, borderColor, style, onPress, activeOpacity, children, disabled, paddingBottom, marginTop, marginBottom, marginLeft, marginRight, borderTopWidth, borderTopColor, borderLeftWidth, borderLeftColor, borderRightWidth, borderRightColor, }: ViewProps) => React.JSX.Element>;
48
+ declare const _default: React.MemoExoticComponent<({ row, full, justifyCenter, justifyBetween, alignCenter, center, color, backgroundColor, width, height, padding, paddingHorizontal, paddingVertical, marginHorizontal, marginVertical, paddingLeft, paddingRight, paddingTop, alignEnd, wrap, borderBottomWidth, borderBottomColor, borderRadius, borderWidth, borderColor, style, onPress, activeOpacity, children, disabled, paddingBottom, marginTop, marginBottom, marginLeft, marginRight, borderTopWidth, borderTopColor, borderLeftWidth, borderLeftColor, borderRightWidth, borderRightColor, pointerEvents, gap, }: ViewProps) => React.JSX.Element>;
47
49
  export default _default;
@@ -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;