ikualo-ui-kit-mobile 2.0.2 → 2.0.4

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/app.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "name": "ikualo-app-2.0",
4
4
  "slug": "ikualo-app-20",
5
5
  "owner": "ikualo",
6
- "version": "2.0.2",
6
+ "version": "2.0.4",
7
7
  "orientation": "portrait",
8
8
  "icon": "./assets/icon.png",
9
9
  "userInterfaceStyle": "automatic",
@@ -24,7 +24,6 @@ export const getStylesCards = (theme: ITheme) =>
24
24
  'card-interactive-text': {
25
25
  color: theme.colors.text_p,
26
26
  flexWrap: 'wrap',
27
- width: '80%',
28
27
  fontSize: 14,
29
28
  fontFamily: 'MontserratSemiBold',
30
29
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ikualo-ui-kit-mobile",
3
- "version": "2.0.2",
3
+ "version": "2.0.4",
4
4
  "main": "src/index.ts",
5
5
  "scripts": {
6
6
  "start": "expo start",
@@ -3,18 +3,23 @@ import useStore from '../../store';
3
3
  import { EnumWeight, ITextProps } from '../../models';
4
4
 
5
5
  export const Text = (props: ITextProps) => {
6
- const { children, fontWeight, fontSize, lineHeight, style, color } = props;
6
+ const { children, fontWeight, fontSize, lineHeight, style, color, onPress } = props;
7
7
  const theme = useStore().theme;
8
-
9
- return <TextPaper
10
- style={[
11
- {
12
- fontSize: fontSize ?? 16,
13
- fontFamily: fontWeight ? EnumWeight[fontWeight] : EnumWeight.MontserratRegular400,
14
- lineHeight: lineHeight ?? 24,
15
- color: color ?? theme.colors.text_p
16
- }, style]}
17
- >
18
- {children}
19
- </TextPaper>;
8
+
9
+ return (
10
+ <TextPaper
11
+ onPress={onPress}
12
+ style={[
13
+ {
14
+ fontSize: fontSize ?? 16,
15
+ fontFamily: fontWeight ? EnumWeight[fontWeight] : EnumWeight.MontserratRegular400,
16
+ lineHeight: lineHeight ?? 24,
17
+ color: color ?? theme.colors.text_p,
18
+ },
19
+ style,
20
+ ]}
21
+ >
22
+ {children}
23
+ </TextPaper>
24
+ );
20
25
  };
@@ -11,6 +11,7 @@ export interface ITextProps {
11
11
  lineHeight?: number;
12
12
  color?: string;
13
13
  style?: object;
14
+ onPress?: () => void;
14
15
  }
15
16
  export interface IFAlertInfo {
16
17
  position?: 'absolute' | 'relative';