fln-espranza 0.0.20 → 0.0.22

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.
Binary file
@@ -13,7 +13,7 @@ export default function EEmptyPlaceholder( { text }: IProps) {
13
13
  return (
14
14
  <View style={tw`flex justify-center items-center`}>
15
15
  <ImageBackground source={require("../assets/images/empty.png")} style={{width: 200, height: 200}} />
16
- <EText size="lg" style={tw`text-center text-gray-500 mt-5`}>
16
+ <EText style={tw`text-center text-gray-800 mt-5`}>
17
17
  {text}
18
18
  </EText>
19
19
  </View>
@@ -22,7 +22,7 @@ export default function InfoBox({
22
22
  childTextColor,
23
23
  }: InfoBoxProps) {
24
24
  return (
25
- <View style={[tw.style("rounded-lg"), style]}>
25
+ <View style={[tw.style("rounded-lg bg-orange-500/10 p-3"), style]}>
26
26
  <View style={tw`flex-row`}>
27
27
  <View style={tw`w-5 h-5 mr-1`}>{icon}</View>
28
28
  <View style={tw`flex-1`}>
@@ -31,7 +31,7 @@ export default function InfoBox({
31
31
  {title}
32
32
  </EText>
33
33
  ) : null}
34
- <EText size="xs" style={[tw`font-medium`, {color: childTextColor}]}>
34
+ <EText size="xs" style={[tw`opacity-60`, {color: childTextColor}]}>
35
35
  {children}
36
36
  </EText>
37
37
  </View>
@@ -9,6 +9,7 @@ interface IProps {
9
9
  subtitle?: string;
10
10
  noBorder?: boolean;
11
11
  firstLetter?: string;
12
+ itemsEnd?: JSX.Element;
12
13
  }
13
14
 
14
15
  export default function EListPerson({
@@ -16,24 +17,31 @@ export default function EListPerson({
16
17
  subtitle,
17
18
  noBorder,
18
19
  firstLetter,
20
+ itemsEnd,
19
21
  }: IProps) {
20
22
  return (
21
23
  <View style={[tw`flex-row items-center justify-between`]}>
22
24
  <Avatar size="sm" source={""} nameFirstLetter={name.split(" ")[0].charAt(0)} />
23
25
  <View
24
- style={tw` ml-3 py-3 flex-1 ${
26
+ style={tw` ml-3 py-3 flex-1 flex-row items-center justify-between ${
25
27
  noBorder ? "" : "border-b border-slate-200"
26
28
  }`}
27
29
  >
30
+ <View>
28
31
  <EText style={tw`font-bold text-slate-800 mb-0.5 capitalize`} numberOfLines={1}>
29
32
  {name}
30
33
  </EText>
31
34
 
32
- {subtitle ? (
35
+ {subtitle
36
+ ?
37
+ (
33
38
  <EText size="sm" style={tw`text-slate-500`}>
34
39
  {subtitle}
35
40
  </EText>
36
- ) : null}
41
+ )
42
+ : <></>}
43
+ </View>
44
+ {itemsEnd}
37
45
  </View>
38
46
  </View>
39
47
  );
@@ -46,7 +46,7 @@ const EOption = ({
46
46
  activeOpacity={0.7}
47
47
  {...props}
48
48
  >
49
- {imageSource && (
49
+ {imageSource !== "" && (
50
50
  <View
51
51
  style={[
52
52
  tw`${MediaContainerStyle}`,
@@ -65,9 +65,8 @@ const EOption = ({
65
65
  },
66
66
  ]}
67
67
  source={{
68
- uri: "https://th-thumbnailer.cdn-si-edu.com/CbddkFFO3OB80rRz83Iiuf-Z0FY=/1000x750/filters:no_upscale():focal(1471x1061:1472x1062)/https://tf-cmsv2-smithsonianmag-media.s3.amazonaws.com/filer/b6/30/b630b48b-7344-4661-9264-186b70531bdc/istock-478831658.jpg",
68
+ uri: imageSource ,
69
69
  }}
70
- // resizeMode="contain"
71
70
  />
72
71
  </View>
73
72
  )}
@@ -80,7 +79,7 @@ const EOption = ({
80
79
  </EText>
81
80
  ) : null}
82
81
  </TouchableOpacity>
83
- );
82
+ );
84
83
  };
85
84
 
86
85
  export default EOption;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fln-espranza",
3
- "version": "0.0.20",
3
+ "version": "0.0.22",
4
4
  "description": "All components used inside FLN Project of Espranza Innovations",
5
5
  "main": "index.ts",
6
6
  "scripts": {