fln-espranza 0.0.49 → 0.0.51

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.
@@ -38,13 +38,12 @@ export default function EButton({
38
38
  >
39
39
  <View
40
40
  style={[
41
- tw`flex-row justify-center items-center rounded-full border-2 border-black/5 ${small ? 'h-11 px-6' : 'h-14 px-8'} ${disabled ? "opacity-40" : ""} ${
42
- type === "clear"
41
+ tw`flex-row justify-center items-center rounded-full border-2 border-black/5 ${small ? 'h-11 px-6' : 'h-14 px-8'} ${disabled ? "opacity-40" : ""} ${type === "clear"
43
42
  ? "bg-transparent "
44
43
  : type === "secondary"
45
- ? `bg-[${Colors["secondary-base"]}] self-start px-6 h-11`
46
- : `bg-[${Colors["primary-base"]}] shadow shadow-[${Colors["primary-base"]}]`
47
- }`,
44
+ ? `bg-[${Colors["secondary-base"]}] self-start px-6 h-11`
45
+ : `bg-[${Colors["primary-base"]}] shadow shadow-[${Colors["primary-base"]}]`
46
+ }`,
48
47
  ]}
49
48
  >
50
49
  {/* ICON LEFT */}
@@ -52,12 +51,11 @@ export default function EButton({
52
51
  {/* LABEL */}
53
52
  <EText
54
53
  style={[
55
- tw`font-semibold ${
56
- type === "clear" ? `text-[${Colors["primary-base"]}]` : "text-white"
57
- }`,
54
+ tw`font-semibold ${small ? `text-sm` : ''} ${type === "clear" ? `text-[${Colors["primary-base"]}]` : "text-white"
55
+ }`,
58
56
  ]}
59
57
  >
60
- {children }
58
+ {children}
61
59
  </EText>
62
60
 
63
61
  {/* ICON RIGHT */}
@@ -19,30 +19,38 @@ export default function EListPerson({
19
19
  noBorder,
20
20
  firstLetter,
21
21
  itemsEnd,
22
- subTitleIcon
22
+ subTitleIcon,
23
23
  }: IProps) {
24
24
  return (
25
25
  <View style={[tw`flex-row items-center justify-between`]}>
26
- <Avatar size="sm" source={""} nameFirstLetter={name.split(" ")[0].charAt(0)} />
26
+ <Avatar
27
+ size="sm"
28
+ source={""}
29
+ nameFirstLetter={name.split(" ")[0].charAt(0)}
30
+ />
27
31
  <View
28
- style={tw` ml-3 py-3 flex-1 flex-row items-center justify-between ${noBorder ? "" : "border-b border-slate-200"
29
- }`}
32
+ style={tw` ml-3 py-3 flex-1 flex-row items-center justify-between ${
33
+ noBorder ? "" : "border-b border-slate-200"
34
+ }`}
30
35
  >
31
36
  <View>
32
- <EText style={tw`font-bold text-slate-800 mb-0.5 capitalize`} numberOfLines={1}>
37
+ <EText
38
+ size="lg"
39
+ style={tw`font-bold text-slate-800 mb-0.5 capitalize`}
40
+ numberOfLines={1}
41
+ >
33
42
  {name}
34
43
  </EText>
35
44
 
36
45
  <View style={tw`flex flex-row items-center`}>
37
46
  {subTitleIcon ? subTitleIcon : <></>}
38
- {subtitle
39
- ?
40
- (
41
- <EText size="sm" style={tw`text-slate-500`}>
42
- {subtitle}
43
- </EText>
44
- )
45
- : <></>}
47
+ {subtitle ? (
48
+ <EText size="sm" style={tw`text-slate-500`}>
49
+ {subtitle}
50
+ </EText>
51
+ ) : (
52
+ <></>
53
+ )}
46
54
  </View>
47
55
  </View>
48
56
  {itemsEnd}
@@ -1,10 +1,5 @@
1
- import {
2
- View,
3
- Dimensions,
4
- ScrollView,
5
- Platform,
6
- } from "react-native";
7
- import React, { } from "react";
1
+ import { View, Dimensions, ScrollView, Platform } from "react-native";
2
+ import React from "react";
8
3
  import Constants from "expo-constants";
9
4
  import tw from "../lib/tailwind";
10
5
  import EButtonIcon from "./EButtonIcon";
@@ -44,7 +39,9 @@ export default function ModalLayout({
44
39
  {/* HEADER */}
45
40
  <View
46
41
  style={[
47
- tw`absolute top-0 right-0 left-0 px-6 pr-3 pt-2 z-10 w-full bg-white ${title ? 'pb-2 shadow-md' : 'pb-0'}`,
42
+ tw`absolute top-0 right-0 left-0 px-6 pr-3 pt-2 z-10 w-full bg-white ${
43
+ title ? "pb-2 shadow-md" : "pb-0"
44
+ }`,
48
45
  // {height: 64},
49
46
  ]}
50
47
  >
@@ -73,9 +70,13 @@ export default function ModalLayout({
73
70
  >
74
71
  {children}
75
72
  </ScrollView>
76
- {bottomButton ? <View style={tw` px-6 mb-4 pt-2 border-t border-slate-300`}>
77
- {bottomButton}
78
- </View> : <></>}
73
+ {bottomButton ? (
74
+ <View style={tw` px-6 mb-4 pt-2 border-t border-slate-300`}>
75
+ {bottomButton}
76
+ </View>
77
+ ) : (
78
+ <></>
79
+ )}
79
80
  </View>
80
81
  );
81
82
  }
@@ -82,7 +82,7 @@ export default function SecondaryBaseLayout({
82
82
  ref={scrollViewRef}
83
83
  style={[
84
84
  tw`flex-1`,
85
- { paddingBottom: insets.bottom, paddingTop: !title ? 80 : 80 },
85
+ { paddingBottom: insets.bottom, paddingTop: !title ? 80 : 58 },
86
86
  ]}
87
87
  showsVerticalScrollIndicator={false}
88
88
  decelerationRate={"fast"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fln-espranza",
3
- "version": "0.0.49",
3
+ "version": "0.0.51",
4
4
  "description": "All components used inside FLN Project of Espranza Innovations",
5
5
  "main": "index.ts",
6
6
  "scripts": {