ikualo-ui-kit-mobile 2.0.0 → 2.0.2

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.0",
6
+ "version": "2.0.2",
7
7
  "orientation": "portrait",
8
8
  "icon": "./assets/icon.png",
9
9
  "userInterfaceStyle": "automatic",
@@ -1,5 +1,4 @@
1
- import { StyleSheet } from 'react-native';
2
- import { Animated } from 'react-native';
1
+ import { StyleSheet, Animated } from 'react-native';
3
2
  import { ITheme } from '../../../src/models';
4
3
  export const getStylesDialog = (theme: ITheme) =>
5
4
  StyleSheet.create({
@@ -74,12 +73,12 @@ export const getStylesDialog = (theme: ITheme) =>
74
73
  borderColor: theme.colors.primary_500,
75
74
  },
76
75
  'dialog-title': {
77
- fontSize: 16,
78
- color: theme.colors.text_p,
79
- lineHeight: 24,
80
76
  fontFamily: 'MontserratBold',
81
- marginBottom: 16,
77
+ fontSize: 24,
78
+ lineHeight: 28,
79
+ color: theme?.colors.text_h,
82
80
  textAlign: 'center',
81
+ marginBottom: 16,
83
82
  },
84
83
  'dialog-only-title': { marginBottom: 0, marginTop: 16 },
85
84
  'dialog-select-title': {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ikualo-ui-kit-mobile",
3
- "version": "2.0.0",
3
+ "version": "2.0.2",
4
4
  "main": "src/index.ts",
5
5
  "scripts": {
6
6
  "start": "expo start",
@@ -1,16 +1,7 @@
1
1
  import { Text, Button, Icon } from 'react-native-paper';
2
2
  import { BtnOutlined, BtnContained } from '../../';
3
3
  import { getStylesDialog } from '../../../assets/styles/elements/dialog';
4
- import {
5
- Keyboard,
6
- StyleProp,
7
- TextStyle,
8
- TouchableWithoutFeedback,
9
- View,
10
- ViewStyle,
11
- Modal,
12
- Animated,
13
- } from 'react-native';
4
+ import { Keyboard, TextStyle, TouchableWithoutFeedback, View, Modal, Animated } from 'react-native';
14
5
  import React, { useEffect, useRef } from 'react';
15
6
  import { MaterialIcons, FontAwesome } from '@expo/vector-icons';
16
7
  import useStore from '../../store';
@@ -21,7 +12,6 @@ interface IFDialogIcon {
21
12
  title?: string;
22
13
  showClose?: boolean;
23
14
  text: JSX.Element | string;
24
- additionalText?: JSX.Element | string;
25
15
  textOk?: string;
26
16
  textCancel?: string;
27
17
  onDismiss: () => void;
@@ -30,7 +20,6 @@ interface IFDialogIcon {
30
20
  additionalTextStyle?: TextStyle;
31
21
  children?: JSX.Element;
32
22
  isDisabled?: boolean;
33
- styleBtnContainer?: StyleProp<ViewStyle>;
34
23
  isLoading?: boolean;
35
24
  }
36
25
 
@@ -51,10 +40,8 @@ export const DialogGeneral = (props: IFDialogIcon) => {
51
40
  onConfirm,
52
41
  textStyle,
53
42
  additionalTextStyle,
54
- additionalText,
55
43
  isDisabled,
56
44
  children,
57
- styleBtnContainer,
58
45
  showClose,
59
46
  } = props;
60
47
 
@@ -150,7 +137,7 @@ export const DialogGeneral = (props: IFDialogIcon) => {
150
137
  {textOk && (
151
138
  <BtnContained
152
139
  color={icon === 'error' ? 'error' : 'primary'}
153
- size="sm"
140
+ size={textCancel ? 'sm' : 'md'}
154
141
  isLoading={isLoading}
155
142
  onPress={onConfirm}
156
143
  text={textOk}