sapo-components-ui-rn 1.0.80 → 1.0.82

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.
@@ -4,15 +4,15 @@ interface ChipBarProps {
4
4
  style?: StyleProp<ViewStyle>;
5
5
  title: string;
6
6
  borderRadius?: number;
7
- onPress?: (val?: any) => void;
7
+ onPress?: (value: boolean) => void;
8
8
  textStyle?: StyleProp<TextStyle>;
9
9
  disabled?: boolean;
10
10
  leftIcon?: React.ReactNode;
11
11
  rightIcon?: React.ReactNode;
12
12
  badge?: number;
13
- isActive?: boolean;
13
+ checked?: boolean;
14
14
  ellipsizeMode?: "head" | "middle" | "tail" | "clip";
15
15
  numberOfLines?: number;
16
16
  }
17
- declare const ChipBar: ({ style, borderRadius, title, textStyle, onPress, disabled, leftIcon, rightIcon, badge, isActive, ellipsizeMode, numberOfLines, }: ChipBarProps) => React.JSX.Element;
17
+ declare const ChipBar: ({ style, borderRadius, title, textStyle, onPress, disabled, leftIcon, rightIcon, badge, checked, ellipsizeMode, numberOfLines, }: ChipBarProps) => React.JSX.Element;
18
18
  export default ChipBar;
@@ -3,7 +3,7 @@ import { StyleProp, ViewStyle, TextStyle } from "react-native";
3
3
  interface RadioButtonProps {
4
4
  style?: StyleProp<ViewStyle>;
5
5
  content: string;
6
- onPress?: () => void;
6
+ onPress?: (value: boolean) => void;
7
7
  textStyle?: StyleProp<TextStyle>;
8
8
  disabled?: boolean;
9
9
  leftIcon?: React.ReactNode;
@@ -13,6 +13,7 @@ interface SearchInputProps {
13
13
  onBlur?: () => void;
14
14
  onChangeText?: (text: string) => void;
15
15
  height?: number;
16
+ debounceTime?: number;
16
17
  }
17
- declare const SearchInput: ({ value, disabled, rightIcon, clearButton, placeholder, onFocus, onBlur, onChangeText, style, height, }: SearchInputProps) => React.JSX.Element;
18
+ declare const SearchInput: ({ value, disabled, rightIcon, clearButton, placeholder, onFocus, onBlur, onChangeText, style, height, debounceTime, }: SearchInputProps) => React.JSX.Element;
18
19
  export default SearchInput;
@@ -4,16 +4,16 @@ interface TagProps {
4
4
  style?: StyleProp<ViewStyle>;
5
5
  title: string;
6
6
  borderRadius?: number;
7
- onPress?: (val?: any) => void;
7
+ onPress?: (value: boolean) => void;
8
8
  textStyle?: StyleProp<TextStyle>;
9
9
  disabled?: boolean;
10
10
  leftIcon?: React.ReactNode;
11
11
  rightIcon?: React.ReactNode;
12
- isActive?: boolean;
12
+ checked?: boolean;
13
13
  ellipsizeMode?: "head" | "middle" | "tail" | "clip";
14
14
  numberOfLines?: number;
15
15
  hideRightIcon?: boolean;
16
16
  height?: number;
17
17
  }
18
- declare const Tag: ({ style, borderRadius, title, textStyle, onPress, disabled, leftIcon, rightIcon, isActive, ellipsizeMode, numberOfLines, hideRightIcon, height, }: TagProps) => React.JSX.Element;
18
+ declare const Tag: ({ style, borderRadius, title, textStyle, onPress, disabled, leftIcon, rightIcon, checked, ellipsizeMode, numberOfLines, hideRightIcon, height, }: TagProps) => React.JSX.Element;
19
19
  export default Tag;
package/dist/index.d.ts CHANGED
@@ -1,12 +1,9 @@
1
1
  export { ThemeColors } from "./styles/themes/tokens";
2
2
  export { CONSTANTS } from "./styles/themes/tokens";
3
3
  export { ThemeColors as ThemeColorsProps } from "./types";
4
+ export { default as containerStyles } from "./theme/container-styles";
4
5
  export { useTheme, ThemeProvider, DefaultTheme, adaptNavigationTheme, } from "./core/theming";
5
6
  export * from "./styles/themes";
6
- export { default as shadow } from "./styles/shadow";
7
- export { default as overlay } from "./styles/overlay";
8
- export { default as configureFonts } from "./styles/fonts";
9
- export { default as ProgressBar } from "./components/ProgressBar";
10
7
  export { default as Switch } from "./components/Switch/Switch";
11
8
  export { default as TextInput } from "./components/TextInput/TextInput";
12
9
  export { default as Button } from "./components/Button";
@@ -28,7 +25,6 @@ export { default as Tag } from "./components/Tag";
28
25
  export { default as NumberKeyboard } from "./components/NumberKeyboard";
29
26
  export type { Props as SwitchProps } from "./components/Switch/Switch";
30
27
  export type { Props as TextInputProps } from "./components/TextInput/TextInput";
31
- export type { Props as TextInputAffixProps } from "./components/TextInput/Adornment/TextInputAffix";
32
- export type { AppTheme, ThemeBase, MD3Elevation, MD3TypescaleKey, } from "./types";
28
+ export type { AppTheme, ThemeBase } from "./types";
33
29
  export * from "./utils/toast-manager";
34
30
  export { default as ToastProvider } from "./components/Toast/ToastProvider";