ikualo-ui-kit-mobile 0.9.0 → 0.9.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.
@@ -0,0 +1,3 @@
1
+ {
2
+ "devices": []
3
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ikualo-ui-kit-mobile",
3
- "version": "0.9.0",
4
- "main": "src/index.ts",
3
+ "version": "0.9.2",
4
+ "main": "expo/AppEntry.js",
5
5
  "scripts": {
6
6
  "start": "expo start",
7
7
  "android": "expo start --android",
@@ -7,7 +7,7 @@ import { IFAlertInfo } from '../../models';
7
7
  import { ErrorIcon, InfoIcon, SuccessIcon, WarningIcon } from '../../../assets/icons/svgs';
8
8
  import { Text } from '../../';
9
9
  export const Alert = (props: IFAlertInfo) => {
10
- const { text, title, type, onClose, miliSeconds } = props;
10
+ const { text, title, type, onClose, miliSeconds,customStyles } = props;
11
11
  const styleAlerts = getStyleAlerts(useStore().theme);
12
12
 
13
13
  const icons = [
@@ -24,7 +24,7 @@ export const Alert = (props: IFAlertInfo) => {
24
24
 
25
25
  return (
26
26
  <Portal>
27
- <Animated.View style={[styleAlerts['alert'], styleAlerts[`alert--${type}`]]}>
27
+ <Animated.View style={[styleAlerts['alert'], styleAlerts[`alert--${type}`],customStyles]}>
28
28
  <View style={styleAlerts['alert-container-text']}>
29
29
  {icons.find(icon => icon.name === type)?.icon}
30
30
  <Text fontWeight={'MontserratBold700'} fontSize={14}>{title}</Text>
@@ -5,37 +5,23 @@ export const AlertsExamples = () => {
5
5
  return (
6
6
  <View>
7
7
  <Alert
8
+ customStyles={{bottom:15,top:undefined}}
8
9
  title="Alert de advertencia"
9
- type="success"
10
+ type="warning"
10
11
  text={
11
12
  <Text fontWeight='MontserratRegular400'
12
13
  fontSize={12} >Esta es una prueba de como queda el alert
13
14
  </Text>}
14
15
  onClose={() => { }} />
15
- <Alert
16
- title="Alert de éxito"
16
+ <Alert
17
+ title="Alert de advertencia"
17
18
  type="success"
18
19
  text={
19
20
  <Text fontWeight='MontserratRegular400'
20
21
  fontSize={12} >Esta es una prueba de como queda el alert
21
22
  </Text>}
22
23
  onClose={() => { }} />
23
- <Alert
24
- title="Alert informativo"
25
- type="info"
26
- text={
27
- <Text fontWeight='MontserratRegular400'
28
- fontSize={12} >Esta es una prueba de como queda el alert
29
- </Text>}
30
- onClose={() => { }} />
31
- <Alert
32
- title="Alert de error"
33
- type="info"
34
- text={
35
- <Text fontWeight='MontserratRegular400'
36
- fontSize={12} >Esta es una prueba de como queda el alert
37
- </Text>}
38
- onClose={() => { }} />
24
+
39
25
  </View>
40
26
  );
41
27
  };
@@ -16,6 +16,7 @@ export interface IFAlertInfo {
16
16
  title: string;
17
17
  text?: JSX.Element;
18
18
  miliSeconds?: number;
19
+ customStyles?: object;
19
20
  type: TypesAlert
20
21
  onClose: () => void;
21
22
  }