fln-espranza 0.0.41 → 0.0.43

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.
@@ -1,7 +1,7 @@
1
1
  import { View, TouchableOpacity, TouchableOpacityProps } from "react-native";
2
2
  import React from "react";
3
3
  import tw from "../lib/tailwind";
4
- import { ArrowNarrowLeftIcon, XIcon } from "react-native-heroicons/solid";
4
+ import { ArrowLeftIcon, XMarkIcon } from "react-native-heroicons/solid";
5
5
 
6
6
  interface EButtonIconProps extends TouchableOpacityProps {
7
7
  type?: "close";
@@ -27,9 +27,9 @@ export default function EButtonIcon({
27
27
  }`}
28
28
  >
29
29
  {type === "close" ? (
30
- <XIcon size={20} style={tw`text-${iconColor? iconColor: ""}`} />
30
+ <XMarkIcon size={20} style={tw`text-${iconColor? iconColor: ""}`} />
31
31
  ) : (
32
- <ArrowNarrowLeftIcon size={20} style={tw`text-${iconColor? iconColor : ""}`} />
32
+ <ArrowLeftIcon size={20} style={tw`text-${iconColor? iconColor : ""}`} />
33
33
  )}
34
34
  </View>
35
35
  </TouchableOpacity>
@@ -0,0 +1,48 @@
1
+ import React from "react";
2
+ import { TouchableOpacity, TouchableOpacityProps, View } from "react-native";
3
+ import tw from "../lib/tailwind";
4
+ import EText from "./EText";import {
5
+ ChevronRightIcon,
6
+ } from "react-native-heroicons/outline";
7
+
8
+ interface IProps extends TouchableOpacityProps {
9
+ date: string;
10
+ time?: string;
11
+ location?: string;
12
+ }
13
+
14
+ export default function EListClusterMeeting({
15
+ date,
16
+ time,
17
+ location,
18
+ ...props
19
+ }: IProps) {
20
+ return (
21
+ <TouchableOpacity style={tw`border-b border-slate-200 py-3`}
22
+ {...props}
23
+ activeOpacity={0.6}
24
+ >
25
+ <View style={tw`flex-row items-center`}>
26
+ <EText style={tw`font-bold text-slate-800 flex-1`}>
27
+ {date}
28
+ </EText>
29
+ <ChevronRightIcon style={tw`text-slate-800`} size={16} />
30
+ </View>
31
+ <View style={tw`flex-row flex-1 items-center`}>
32
+ <EText size="sm" style={tw`text-slate-500`}>
33
+ {time}
34
+ </EText>
35
+ <View
36
+ style={tw`w-1 h-1 bg-slate-600 rounded-full mx-1.5`}
37
+ ></View>
38
+ <EText
39
+ size="sm"
40
+ style={tw`text-slate-500 flex-1 pr-6`}
41
+ numberOfLines={1}
42
+ >
43
+ {location}
44
+ </EText>
45
+ </View>
46
+ </TouchableOpacity>
47
+ );
48
+ }
@@ -0,0 +1,43 @@
1
+ import React from 'react'
2
+ import { Image } from 'react-native'
3
+ import tw from '../../../lib/tailwind'
4
+ import { View } from 'react-native'
5
+ import EText from './EText'
6
+ import { Colors } from "../utils/Color";
7
+
8
+ interface IProps {
9
+ title: string;
10
+ subtitle: string;
11
+ button?: JSX.Element;
12
+ icon?: JSX.Element;
13
+ }
14
+
15
+ export default function ENotFoundPlaceholder(
16
+ { title, subtitle, button, icon }: IProps
17
+ ) {
18
+ return (
19
+ <View style={tw`items-center px-16 py-2`}>
20
+ <Image
21
+ source={require("../assets/images/icon-placeholder-schedule.png")}
22
+ style={[tw`mb-2`, { height: 64 }]}
23
+ resizeMode="contain"
24
+ />
25
+
26
+ <EText
27
+ size="lg"
28
+ style={tw`text-center font-bold text-[${Colors["text-primary"]}]`}
29
+ >
30
+ {title}
31
+ </EText>
32
+ <EText
33
+ size="sm"
34
+ style={tw`text-center text-[${Colors["text-secondary"]}]`}
35
+ >
36
+ {subtitle}
37
+ </EText>
38
+ <View style={tw`mt-6`}>
39
+ {button}
40
+ </View>
41
+ </View>
42
+ )
43
+ }
@@ -95,6 +95,7 @@ export default function PageHeader({
95
95
  <EText
96
96
  size="lg"
97
97
  style={tw.style("text-slate-800 font-bold")}
98
+ numberOfLines={1}
98
99
  >
99
100
  {title}
100
101
  </EText>
@@ -29,6 +29,7 @@ import Spacer from "./Spacer";
29
29
  import ProgressBar from "./EProgressBar";
30
30
  import Loader from "./Loader";
31
31
  import EStat from "./EStat";
32
+ import EListClusterMeeting from "./EListClusterMeeting";
32
33
 
33
34
  export {
34
35
  Avatar,
@@ -51,6 +52,7 @@ export {
51
52
  EBadge,
52
53
  EDateAndTimeCard,
53
54
  ELabel,
55
+ EListClusterMeeting,
54
56
  EOtpInput,
55
57
  EPageDescription,
56
58
  ETimeLineCard,
package/index.ts CHANGED
@@ -35,6 +35,7 @@ import EErrorText from "./components/EErrorText";
35
35
  import EListPerson from "./components/EListPerson";
36
36
  import EListSchool from "./components/EListSchool";
37
37
  import ETextArea from "./components/ETextArea";
38
+ import ENotFoundPlaceholder from "./components/ENotFoundPlaceholder";
38
39
 
39
40
  // ICONS
40
41
  import EIconAdd from "./components/icons/EIconAdd";
@@ -131,6 +132,7 @@ export {
131
132
  EEmptyPlaceholder,
132
133
  EProfileScreenLayout,
133
134
  ETextArea,
135
+ ENotFoundPlaceholder,
134
136
 
135
137
  // ICONS
136
138
  EIconAdd,
@@ -176,5 +178,7 @@ export {
176
178
  EIconUserCheck,
177
179
  EIconUsers,
178
180
  EIconMale,
179
- EIconFemale
181
+ EIconFemale,
182
+ EIconDocumentCheck,
183
+
180
184
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fln-espranza",
3
- "version": "0.0.41",
3
+ "version": "0.0.43",
4
4
  "description": "All components used inside FLN Project of Espranza Innovations",
5
5
  "main": "index.ts",
6
6
  "scripts": {