fln-espranza 0.0.1 → 0.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/.expo/README.md +15 -15
- package/.expo/settings.json +8 -8
- package/components/BaseLayout.tsx +174 -174
- package/components/Drawer.tsx +96 -96
- package/components/EBadge.tsx +23 -23
- package/components/EButton.tsx +73 -73
- package/components/EDateAndTimeCard.tsx +50 -50
- package/components/EDateInput.tsx +55 -55
- package/components/EErrorText.tsx +19 -19
- package/components/EInfoBox.tsx +41 -41
- package/components/EInput.tsx +52 -52
- package/components/ELabel.tsx +15 -15
- package/components/EListPerson.tsx +40 -40
- package/components/EListSchool.tsx +35 -35
- package/components/EOtpInputBox.tsx +49 -49
- package/components/EPageDescription.tsx +19 -19
- package/components/EPillButton.tsx +26 -26
- package/components/EProfile.tsx +42 -43
- package/components/ESegment.tsx +36 -36
- package/components/ETimeInput.tsx +55 -55
- package/components/ETimeLineCard.tsx +68 -68
- package/components/ListFormView.tsx +36 -36
- package/components/Loader.tsx +31 -31
- package/components/MenuItems.tsx +46 -46
- package/components/PageHeader.tsx +129 -129
- package/components/ProgressBar.tsx +33 -33
- package/components/SecondaryBaseLayout.tsx +120 -120
- package/components/Timer.tsx +56 -56
- package/index.ts +76 -76
- package/package.json +26 -26
- package/utils/Color.ts +14 -14
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
import React, { useEffect, useRef, useState } from 'react'
|
|
2
|
-
import { Animated,StyleSheet, View } from 'react-native';
|
|
3
|
-
import tw from "../lib/tailwind";
|
|
4
|
-
import { Colors } from "../utils/Color";
|
|
5
|
-
|
|
6
|
-
interface IProps{
|
|
7
|
-
progress: number;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export default function ProgressBar( {progress}: IProps) {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
const barWidth = useRef(new Animated.Value(0)).current;
|
|
14
|
-
|
|
15
|
-
useEffect(() => {
|
|
16
|
-
Animated.spring(barWidth, {
|
|
17
|
-
toValue: progress,
|
|
18
|
-
bounciness: 0,
|
|
19
|
-
speed: 7,
|
|
20
|
-
useNativeDriver: false,
|
|
21
|
-
}).start();
|
|
22
|
-
}, [progress]);
|
|
23
|
-
return (
|
|
24
|
-
<View style={[tw`h-2 w-14 bg-[${Colors['primary-light']}] overflow-hidden mr-2`, {
|
|
25
|
-
borderRadius: 40,
|
|
26
|
-
}]}>
|
|
27
|
-
<Animated.View
|
|
28
|
-
style={[StyleSheet.absoluteFill, { backgroundColor: Colors['primary-base'], width: barWidth }]}
|
|
29
|
-
|
|
30
|
-
/>
|
|
31
|
-
</View>
|
|
32
|
-
)
|
|
33
|
-
}
|
|
1
|
+
import React, { useEffect, useRef, useState } from 'react'
|
|
2
|
+
import { Animated,StyleSheet, View } from 'react-native';
|
|
3
|
+
import tw from "../lib/tailwind";
|
|
4
|
+
import { Colors } from "../utils/Color";
|
|
5
|
+
|
|
6
|
+
interface IProps{
|
|
7
|
+
progress: number;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export default function ProgressBar( {progress}: IProps) {
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
const barWidth = useRef(new Animated.Value(0)).current;
|
|
14
|
+
|
|
15
|
+
useEffect(() => {
|
|
16
|
+
Animated.spring(barWidth, {
|
|
17
|
+
toValue: progress,
|
|
18
|
+
bounciness: 0,
|
|
19
|
+
speed: 7,
|
|
20
|
+
useNativeDriver: false,
|
|
21
|
+
}).start();
|
|
22
|
+
}, [progress]);
|
|
23
|
+
return (
|
|
24
|
+
<View style={[tw`h-2 w-14 bg-[${Colors['primary-light']}] overflow-hidden mr-2`, {
|
|
25
|
+
borderRadius: 40,
|
|
26
|
+
}]}>
|
|
27
|
+
<Animated.View
|
|
28
|
+
style={[StyleSheet.absoluteFill, { backgroundColor: Colors['primary-base'], width: barWidth }]}
|
|
29
|
+
|
|
30
|
+
/>
|
|
31
|
+
</View>
|
|
32
|
+
)
|
|
33
|
+
}
|
|
@@ -1,120 +1,120 @@
|
|
|
1
|
-
import {
|
|
2
|
-
View,
|
|
3
|
-
ImageBackground,
|
|
4
|
-
Dimensions,
|
|
5
|
-
Animated,
|
|
6
|
-
ScrollView,
|
|
7
|
-
Platform,
|
|
8
|
-
} from "react-native";
|
|
9
|
-
import React, { useEffect, useRef, useState } from "react";
|
|
10
|
-
import { useSafeAreaInsets } from "react-native-safe-area-context";
|
|
11
|
-
import tw from "../lib/tailwind";
|
|
12
|
-
import EText from "./EText";
|
|
13
|
-
import { StatusBar } from "expo-status-bar";
|
|
14
|
-
import {
|
|
15
|
-
Container,
|
|
16
|
-
EButton,
|
|
17
|
-
EButtonIcon,
|
|
18
|
-
PageHeader,
|
|
19
|
-
PageHeaderSecondary,
|
|
20
|
-
} from ".";
|
|
21
|
-
import Constants from "expo-constants";
|
|
22
|
-
import { useNavigation } from "@react-navigation/native";
|
|
23
|
-
|
|
24
|
-
const SCREEN_WIDTH = Dimensions.get("window").width;
|
|
25
|
-
const SCREEN_HEIGHT = Dimensions.get("window").height;
|
|
26
|
-
const HEADER_HEIGHT = Constants.statusBarHeight + 60;
|
|
27
|
-
const SCROLL_PADDING_BOTTOM = 100;
|
|
28
|
-
|
|
29
|
-
interface BaseLayoutProps {
|
|
30
|
-
title: string;
|
|
31
|
-
subtitle?: string;
|
|
32
|
-
curved?: boolean;
|
|
33
|
-
headerContent?: JSX.Element;
|
|
34
|
-
children?: JSX.Element | JSX.Element[];
|
|
35
|
-
iconEnd?: JSX.Element;
|
|
36
|
-
noScroll?: boolean;
|
|
37
|
-
bottomButton?: JSX.Element;
|
|
38
|
-
border?: boolean;
|
|
39
|
-
menuButton?: boolean;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
export default function SecondaryBaseLayout({
|
|
43
|
-
title,
|
|
44
|
-
subtitle,
|
|
45
|
-
curved,
|
|
46
|
-
headerContent,
|
|
47
|
-
children,
|
|
48
|
-
noScroll,
|
|
49
|
-
iconEnd,
|
|
50
|
-
bottomButton,
|
|
51
|
-
border,
|
|
52
|
-
menuButton,
|
|
53
|
-
}: BaseLayoutProps) {
|
|
54
|
-
const insets = useSafeAreaInsets();
|
|
55
|
-
|
|
56
|
-
const navigation = useNavigation();
|
|
57
|
-
|
|
58
|
-
return (
|
|
59
|
-
<View
|
|
60
|
-
style={[
|
|
61
|
-
tw`flex-1 bg-white`,
|
|
62
|
-
{
|
|
63
|
-
paddingBottom: Platform.OS === "ios" ? insets.bottom : 0,
|
|
64
|
-
paddingTop: Platform.OS === "ios" ? 20 : 0,
|
|
65
|
-
},
|
|
66
|
-
]}
|
|
67
|
-
>
|
|
68
|
-
<StatusBar style="dark" animated />
|
|
69
|
-
|
|
70
|
-
{/* HEADER */}
|
|
71
|
-
<View
|
|
72
|
-
style={[
|
|
73
|
-
tw`absolute top-0 right-0 left-0 pt-2 z-10 w-full bg-white ${
|
|
74
|
-
title ? "mb-1" : "pb-0"
|
|
75
|
-
}`,
|
|
76
|
-
]}
|
|
77
|
-
>
|
|
78
|
-
{/* <PageHeaderSecondary
|
|
79
|
-
title={title}
|
|
80
|
-
subtitle={subtitle}
|
|
81
|
-
button={
|
|
82
|
-
<EButtonIcon
|
|
83
|
-
type="close"
|
|
84
|
-
iconColor="slate-800"
|
|
85
|
-
onPress={() => navigation.goBack()}
|
|
86
|
-
/>
|
|
87
|
-
}
|
|
88
|
-
/> */}
|
|
89
|
-
<PageHeader
|
|
90
|
-
border={border}
|
|
91
|
-
title={title}
|
|
92
|
-
subtitle={subtitle}
|
|
93
|
-
curved={curved}
|
|
94
|
-
iconEnd={iconEnd}
|
|
95
|
-
menuButton={menuButton}
|
|
96
|
-
>
|
|
97
|
-
{headerContent}
|
|
98
|
-
</PageHeader>
|
|
99
|
-
</View>
|
|
100
|
-
<ScrollView
|
|
101
|
-
style={[
|
|
102
|
-
tw`flex-1`,
|
|
103
|
-
{ paddingBottom: insets.bottom, paddingTop: !title ? 80 : 80 },
|
|
104
|
-
]}
|
|
105
|
-
showsVerticalScrollIndicator={false}
|
|
106
|
-
decelerationRate={"fast"}
|
|
107
|
-
contentContainerStyle={{
|
|
108
|
-
paddingBottom: SCROLL_PADDING_BOTTOM,
|
|
109
|
-
}}
|
|
110
|
-
>
|
|
111
|
-
{children}
|
|
112
|
-
</ScrollView>
|
|
113
|
-
{bottomButton ? (
|
|
114
|
-
<View style={tw` px-4 mb-6 `}>{bottomButton}</View>
|
|
115
|
-
) : (
|
|
116
|
-
<></>
|
|
117
|
-
)}
|
|
118
|
-
</View>
|
|
119
|
-
);
|
|
120
|
-
}
|
|
1
|
+
import {
|
|
2
|
+
View,
|
|
3
|
+
ImageBackground,
|
|
4
|
+
Dimensions,
|
|
5
|
+
Animated,
|
|
6
|
+
ScrollView,
|
|
7
|
+
Platform,
|
|
8
|
+
} from "react-native";
|
|
9
|
+
import React, { useEffect, useRef, useState } from "react";
|
|
10
|
+
import { useSafeAreaInsets } from "react-native-safe-area-context";
|
|
11
|
+
import tw from "../lib/tailwind";
|
|
12
|
+
import EText from "./EText";
|
|
13
|
+
import { StatusBar } from "expo-status-bar";
|
|
14
|
+
import {
|
|
15
|
+
Container,
|
|
16
|
+
EButton,
|
|
17
|
+
EButtonIcon,
|
|
18
|
+
PageHeader,
|
|
19
|
+
PageHeaderSecondary,
|
|
20
|
+
} from ".";
|
|
21
|
+
import Constants from "expo-constants";
|
|
22
|
+
import { useNavigation } from "@react-navigation/native";
|
|
23
|
+
|
|
24
|
+
const SCREEN_WIDTH = Dimensions.get("window").width;
|
|
25
|
+
const SCREEN_HEIGHT = Dimensions.get("window").height;
|
|
26
|
+
const HEADER_HEIGHT = Constants.statusBarHeight + 60;
|
|
27
|
+
const SCROLL_PADDING_BOTTOM = 100;
|
|
28
|
+
|
|
29
|
+
interface BaseLayoutProps {
|
|
30
|
+
title: string;
|
|
31
|
+
subtitle?: string;
|
|
32
|
+
curved?: boolean;
|
|
33
|
+
headerContent?: JSX.Element;
|
|
34
|
+
children?: JSX.Element | JSX.Element[];
|
|
35
|
+
iconEnd?: JSX.Element;
|
|
36
|
+
noScroll?: boolean;
|
|
37
|
+
bottomButton?: JSX.Element;
|
|
38
|
+
border?: boolean;
|
|
39
|
+
menuButton?: boolean;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export default function SecondaryBaseLayout({
|
|
43
|
+
title,
|
|
44
|
+
subtitle,
|
|
45
|
+
curved,
|
|
46
|
+
headerContent,
|
|
47
|
+
children,
|
|
48
|
+
noScroll,
|
|
49
|
+
iconEnd,
|
|
50
|
+
bottomButton,
|
|
51
|
+
border,
|
|
52
|
+
menuButton,
|
|
53
|
+
}: BaseLayoutProps) {
|
|
54
|
+
const insets = useSafeAreaInsets();
|
|
55
|
+
|
|
56
|
+
const navigation = useNavigation();
|
|
57
|
+
|
|
58
|
+
return (
|
|
59
|
+
<View
|
|
60
|
+
style={[
|
|
61
|
+
tw`flex-1 bg-white`,
|
|
62
|
+
{
|
|
63
|
+
paddingBottom: Platform.OS === "ios" ? insets.bottom : 0,
|
|
64
|
+
paddingTop: Platform.OS === "ios" ? 20 : 0,
|
|
65
|
+
},
|
|
66
|
+
]}
|
|
67
|
+
>
|
|
68
|
+
<StatusBar style="dark" animated />
|
|
69
|
+
|
|
70
|
+
{/* HEADER */}
|
|
71
|
+
<View
|
|
72
|
+
style={[
|
|
73
|
+
tw`absolute top-0 right-0 left-0 pt-2 z-10 w-full bg-white ${
|
|
74
|
+
title ? "mb-1" : "pb-0"
|
|
75
|
+
}`,
|
|
76
|
+
]}
|
|
77
|
+
>
|
|
78
|
+
{/* <PageHeaderSecondary
|
|
79
|
+
title={title}
|
|
80
|
+
subtitle={subtitle}
|
|
81
|
+
button={
|
|
82
|
+
<EButtonIcon
|
|
83
|
+
type="close"
|
|
84
|
+
iconColor="slate-800"
|
|
85
|
+
onPress={() => navigation.goBack()}
|
|
86
|
+
/>
|
|
87
|
+
}
|
|
88
|
+
/> */}
|
|
89
|
+
<PageHeader
|
|
90
|
+
border={border}
|
|
91
|
+
title={title}
|
|
92
|
+
subtitle={subtitle}
|
|
93
|
+
curved={curved}
|
|
94
|
+
iconEnd={iconEnd}
|
|
95
|
+
menuButton={menuButton}
|
|
96
|
+
>
|
|
97
|
+
{headerContent}
|
|
98
|
+
</PageHeader>
|
|
99
|
+
</View>
|
|
100
|
+
<ScrollView
|
|
101
|
+
style={[
|
|
102
|
+
tw`flex-1`,
|
|
103
|
+
{ paddingBottom: insets.bottom, paddingTop: !title ? 80 : 80 },
|
|
104
|
+
]}
|
|
105
|
+
showsVerticalScrollIndicator={false}
|
|
106
|
+
decelerationRate={"fast"}
|
|
107
|
+
contentContainerStyle={{
|
|
108
|
+
paddingBottom: SCROLL_PADDING_BOTTOM,
|
|
109
|
+
}}
|
|
110
|
+
>
|
|
111
|
+
{children}
|
|
112
|
+
</ScrollView>
|
|
113
|
+
{bottomButton ? (
|
|
114
|
+
<View style={tw` px-4 mb-6 `}>{bottomButton}</View>
|
|
115
|
+
) : (
|
|
116
|
+
<></>
|
|
117
|
+
)}
|
|
118
|
+
</View>
|
|
119
|
+
);
|
|
120
|
+
}
|
package/components/Timer.tsx
CHANGED
|
@@ -1,57 +1,57 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { useState } from "react";
|
|
3
|
-
import { TouchableOpacity } from "react-native";
|
|
4
|
-
import tw from "../lib/tailwind";
|
|
5
|
-
import { Colors } from "../utils/Color";
|
|
6
|
-
import EText from "./EText";
|
|
7
|
-
|
|
8
|
-
interface IProps {
|
|
9
|
-
time: number;
|
|
10
|
-
text: string;
|
|
11
|
-
subtext: string;
|
|
12
|
-
handleGetOTP: () => void;
|
|
13
|
-
sendOtp: boolean;
|
|
14
|
-
email: string;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export default function Timer({ time, text, subtext, sendOtp, handleGetOTP,email }: IProps) {
|
|
18
|
-
|
|
19
|
-
const [timer, setTimer] = useState(time);
|
|
20
|
-
React.useEffect(() => {
|
|
21
|
-
setTimer(30);
|
|
22
|
-
return () => {
|
|
23
|
-
setTimer(0);
|
|
24
|
-
}
|
|
25
|
-
}, [sendOtp]);
|
|
26
|
-
|
|
27
|
-
React.useEffect(() => {
|
|
28
|
-
timer > 0 &&
|
|
29
|
-
setTimeout(() => {
|
|
30
|
-
setTimer(timer - 1);
|
|
31
|
-
}, 1000);
|
|
32
|
-
|
|
33
|
-
return () => {
|
|
34
|
-
clearTimeout();
|
|
35
|
-
}
|
|
36
|
-
}, [timer]);
|
|
37
|
-
|
|
38
|
-
return(
|
|
39
|
-
|
|
40
|
-
<>
|
|
41
|
-
{timer > 0 ? <TouchableOpacity style={[tw`mt-2`, {}]}>
|
|
42
|
-
<EText size="sm" style={[tw`font-bold text-[${Colors["text-primary"]}]`, {}]}>
|
|
43
|
-
{timer > 0 && `${text}${timer >= 10 ? timer : "0" + timer}`}
|
|
44
|
-
</EText>
|
|
45
|
-
</TouchableOpacity> :
|
|
46
|
-
<TouchableOpacity style={[tw`mt-2`, {}]}
|
|
47
|
-
onPress={() => handleGetOTP()}
|
|
48
|
-
>
|
|
49
|
-
<EText size="sm" style={[tw`font-bold text-[${Colors["text-primary"]}]`, {}]}>
|
|
50
|
-
{subtext}
|
|
51
|
-
</EText>
|
|
52
|
-
</TouchableOpacity>
|
|
53
|
-
}
|
|
54
|
-
</>
|
|
55
|
-
|
|
56
|
-
)
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { useState } from "react";
|
|
3
|
+
import { TouchableOpacity } from "react-native";
|
|
4
|
+
import tw from "../lib/tailwind";
|
|
5
|
+
import { Colors } from "../utils/Color";
|
|
6
|
+
import EText from "./EText";
|
|
7
|
+
|
|
8
|
+
interface IProps {
|
|
9
|
+
time: number;
|
|
10
|
+
text: string;
|
|
11
|
+
subtext: string;
|
|
12
|
+
handleGetOTP: () => void;
|
|
13
|
+
sendOtp: boolean;
|
|
14
|
+
email: string;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export default function Timer({ time, text, subtext, sendOtp, handleGetOTP,email }: IProps) {
|
|
18
|
+
|
|
19
|
+
const [timer, setTimer] = useState(time);
|
|
20
|
+
React.useEffect(() => {
|
|
21
|
+
setTimer(30);
|
|
22
|
+
return () => {
|
|
23
|
+
setTimer(0);
|
|
24
|
+
}
|
|
25
|
+
}, [sendOtp]);
|
|
26
|
+
|
|
27
|
+
React.useEffect(() => {
|
|
28
|
+
timer > 0 &&
|
|
29
|
+
setTimeout(() => {
|
|
30
|
+
setTimer(timer - 1);
|
|
31
|
+
}, 1000);
|
|
32
|
+
|
|
33
|
+
return () => {
|
|
34
|
+
clearTimeout();
|
|
35
|
+
}
|
|
36
|
+
}, [timer]);
|
|
37
|
+
|
|
38
|
+
return(
|
|
39
|
+
|
|
40
|
+
<>
|
|
41
|
+
{timer > 0 ? <TouchableOpacity style={[tw`mt-2`, {}]}>
|
|
42
|
+
<EText size="sm" style={[tw`font-bold text-[${Colors["text-primary"]}]`, {}]}>
|
|
43
|
+
{timer > 0 && `${text}${timer >= 10 ? timer : "0" + timer}`}
|
|
44
|
+
</EText>
|
|
45
|
+
</TouchableOpacity> :
|
|
46
|
+
<TouchableOpacity style={[tw`mt-2`, {}]}
|
|
47
|
+
onPress={() => handleGetOTP()}
|
|
48
|
+
>
|
|
49
|
+
<EText size="sm" style={[tw`font-bold text-[${Colors["text-primary"]}]`, {}]}>
|
|
50
|
+
{subtext}
|
|
51
|
+
</EText>
|
|
52
|
+
</TouchableOpacity>
|
|
53
|
+
}
|
|
54
|
+
</>
|
|
55
|
+
|
|
56
|
+
)
|
|
57
57
|
}
|
package/index.ts
CHANGED
|
@@ -1,76 +1,76 @@
|
|
|
1
|
-
import Avatar from "./components/Avatar";
|
|
2
|
-
import BaseLayout from "./components/BaseLayout";
|
|
3
|
-
import Container from "./components/Container";
|
|
4
|
-
import Drawer from "./components/Drawer";
|
|
5
|
-
import EBadge from "./components/EBadge";
|
|
6
|
-
import EButton from "./components/EButton";
|
|
7
|
-
import EButtonIcon from "./components/EButtonIcon";
|
|
8
|
-
import EDateAndTimeCard from "./components/EDateAndTimeCard";
|
|
9
|
-
import EIcon from "./components/EIcon";
|
|
10
|
-
import EInfoBox from "./components/EInfoBox";
|
|
11
|
-
import EInput from "./components/EInput";
|
|
12
|
-
import ELabel from "./components/ELabel";
|
|
13
|
-
import EOtpInput from "./components/EOtpInputBox";
|
|
14
|
-
import EPageDescription from "./components/EPageDescription";
|
|
15
|
-
import EPillButton from "./components/EPillButton";
|
|
16
|
-
import EProfile from "./components/EProfile";
|
|
17
|
-
import ESegment from "./components/ESegment";
|
|
18
|
-
import { ESegmentItem } from "./components/ESegment";
|
|
19
|
-
import ETimeLineCard from "./components/ETimeLineCard";
|
|
20
|
-
import ListFormView from "./components/ListFormView";
|
|
21
|
-
import MenuItems from "./components/MenuItems";
|
|
22
|
-
import SecondaryBaseLayout from "./components/SecondaryBaseLayout";
|
|
23
|
-
import Timer from "./components/Timer";
|
|
24
|
-
import EText from "./components/EText";
|
|
25
|
-
import ModalLayout from "./components/ModalLayout";
|
|
26
|
-
import PageHeader from "./components/PageHeader";
|
|
27
|
-
import PageHeaderSecondary from "./components/PageHeaderSecondary";
|
|
28
|
-
import Spacer from "./components/Spacer";
|
|
29
|
-
import { Colors } from "./utils/Color";
|
|
30
|
-
import ProgressBar from "./components/ProgressBar";
|
|
31
|
-
import Loader from "./components/Loader";
|
|
32
|
-
import ETimeInput from "./components/ETimeInput";
|
|
33
|
-
import EDateInput from "./components/EDateInput";
|
|
34
|
-
import EErrorText from "./components/EErrorText";
|
|
35
|
-
import EListPerson from "./components/EListPerson";
|
|
36
|
-
import EListSchool from "./components/EListSchool";
|
|
37
|
-
|
|
38
|
-
export {
|
|
39
|
-
Avatar,
|
|
40
|
-
BaseLayout,
|
|
41
|
-
Container,
|
|
42
|
-
Drawer,
|
|
43
|
-
EButton,
|
|
44
|
-
EButtonIcon,
|
|
45
|
-
EIcon,
|
|
46
|
-
EInput,
|
|
47
|
-
EText,
|
|
48
|
-
ModalLayout,
|
|
49
|
-
PageHeader,
|
|
50
|
-
PageHeaderSecondary,
|
|
51
|
-
ESegment,
|
|
52
|
-
ESegmentItem,
|
|
53
|
-
Spacer,
|
|
54
|
-
EInfoBox,
|
|
55
|
-
EBadge,
|
|
56
|
-
EDateAndTimeCard,
|
|
57
|
-
ELabel,
|
|
58
|
-
EOtpInput,
|
|
59
|
-
EPageDescription,
|
|
60
|
-
ETimeLineCard,
|
|
61
|
-
ListFormView,
|
|
62
|
-
MenuItems,
|
|
63
|
-
EPillButton,
|
|
64
|
-
EProfile,
|
|
65
|
-
SecondaryBaseLayout,
|
|
66
|
-
Timer,
|
|
67
|
-
ProgressBar,
|
|
68
|
-
Loader,
|
|
69
|
-
ETimeInput,
|
|
70
|
-
EDateInput,
|
|
71
|
-
EErrorText,
|
|
72
|
-
Colors,
|
|
73
|
-
EListPerson,
|
|
74
|
-
EListSchool
|
|
75
|
-
|
|
76
|
-
};
|
|
1
|
+
import Avatar from "./components/Avatar";
|
|
2
|
+
import BaseLayout from "./components/BaseLayout";
|
|
3
|
+
import Container from "./components/Container";
|
|
4
|
+
import Drawer from "./components/Drawer";
|
|
5
|
+
import EBadge from "./components/EBadge";
|
|
6
|
+
import EButton from "./components/EButton";
|
|
7
|
+
import EButtonIcon from "./components/EButtonIcon";
|
|
8
|
+
import EDateAndTimeCard from "./components/EDateAndTimeCard";
|
|
9
|
+
import EIcon from "./components/EIcon";
|
|
10
|
+
import EInfoBox from "./components/EInfoBox";
|
|
11
|
+
import EInput from "./components/EInput";
|
|
12
|
+
import ELabel from "./components/ELabel";
|
|
13
|
+
import EOtpInput from "./components/EOtpInputBox";
|
|
14
|
+
import EPageDescription from "./components/EPageDescription";
|
|
15
|
+
import EPillButton from "./components/EPillButton";
|
|
16
|
+
import EProfile from "./components/EProfile";
|
|
17
|
+
import ESegment from "./components/ESegment";
|
|
18
|
+
import { ESegmentItem } from "./components/ESegment";
|
|
19
|
+
import ETimeLineCard from "./components/ETimeLineCard";
|
|
20
|
+
import ListFormView from "./components/ListFormView";
|
|
21
|
+
import MenuItems from "./components/MenuItems";
|
|
22
|
+
import SecondaryBaseLayout from "./components/SecondaryBaseLayout";
|
|
23
|
+
import Timer from "./components/Timer";
|
|
24
|
+
import EText from "./components/EText";
|
|
25
|
+
import ModalLayout from "./components/ModalLayout";
|
|
26
|
+
import PageHeader from "./components/PageHeader";
|
|
27
|
+
import PageHeaderSecondary from "./components/PageHeaderSecondary";
|
|
28
|
+
import Spacer from "./components/Spacer";
|
|
29
|
+
import { Colors } from "./utils/Color";
|
|
30
|
+
import ProgressBar from "./components/ProgressBar";
|
|
31
|
+
import Loader from "./components/Loader";
|
|
32
|
+
import ETimeInput from "./components/ETimeInput";
|
|
33
|
+
import EDateInput from "./components/EDateInput";
|
|
34
|
+
import EErrorText from "./components/EErrorText";
|
|
35
|
+
import EListPerson from "./components/EListPerson";
|
|
36
|
+
import EListSchool from "./components/EListSchool";
|
|
37
|
+
|
|
38
|
+
export {
|
|
39
|
+
Avatar,
|
|
40
|
+
BaseLayout,
|
|
41
|
+
Container,
|
|
42
|
+
Drawer,
|
|
43
|
+
EButton,
|
|
44
|
+
EButtonIcon,
|
|
45
|
+
EIcon,
|
|
46
|
+
EInput,
|
|
47
|
+
EText,
|
|
48
|
+
ModalLayout,
|
|
49
|
+
PageHeader,
|
|
50
|
+
PageHeaderSecondary,
|
|
51
|
+
ESegment,
|
|
52
|
+
ESegmentItem,
|
|
53
|
+
Spacer,
|
|
54
|
+
EInfoBox,
|
|
55
|
+
EBadge,
|
|
56
|
+
EDateAndTimeCard,
|
|
57
|
+
ELabel,
|
|
58
|
+
EOtpInput,
|
|
59
|
+
EPageDescription,
|
|
60
|
+
ETimeLineCard,
|
|
61
|
+
ListFormView,
|
|
62
|
+
MenuItems,
|
|
63
|
+
EPillButton,
|
|
64
|
+
EProfile,
|
|
65
|
+
SecondaryBaseLayout,
|
|
66
|
+
Timer,
|
|
67
|
+
ProgressBar,
|
|
68
|
+
Loader,
|
|
69
|
+
ETimeInput,
|
|
70
|
+
EDateInput,
|
|
71
|
+
EErrorText,
|
|
72
|
+
Colors,
|
|
73
|
+
EListPerson,
|
|
74
|
+
EListSchool
|
|
75
|
+
|
|
76
|
+
};
|
package/package.json
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "fln-espranza",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"description": "All components used inside FLN Project of Espranza Innovations",
|
|
5
|
-
"main": "index.ts",
|
|
6
|
-
"scripts": {
|
|
7
|
-
"test": "echo \"Error: no test specified\" && exit 1"
|
|
8
|
-
},
|
|
9
|
-
"author": "",
|
|
10
|
-
"license": "ISC",
|
|
11
|
-
"peerDependencies": {
|
|
12
|
-
"expo": "~45.0.0",
|
|
13
|
-
"expo-status-bar": "~1.3.0",
|
|
14
|
-
"react": "17.0.2",
|
|
15
|
-
"react-native": "0.68.2",
|
|
16
|
-
"react-native-safe-area-context": "4.2.4",
|
|
17
|
-
"twrnc": "^3.3.2",
|
|
18
|
-
"@react-navigation/drawer": "^6.5.0",
|
|
19
|
-
"@react-navigation/native": "^6.0.10",
|
|
20
|
-
"@react-navigation/native-stack": "^6.6.2",
|
|
21
|
-
"react-native-heroicons": "^2.2.0",
|
|
22
|
-
"moment": "^2.29.4",
|
|
23
|
-
"@react-native-community/datetimepicker": "6.1.2",
|
|
24
|
-
"react-native-reanimated": "~2.8.0"
|
|
25
|
-
}
|
|
26
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "fln-espranza",
|
|
3
|
+
"version": "0.0.2",
|
|
4
|
+
"description": "All components used inside FLN Project of Espranza Innovations",
|
|
5
|
+
"main": "index.ts",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
|
8
|
+
},
|
|
9
|
+
"author": "",
|
|
10
|
+
"license": "ISC",
|
|
11
|
+
"peerDependencies": {
|
|
12
|
+
"expo": "~45.0.0",
|
|
13
|
+
"expo-status-bar": "~1.3.0",
|
|
14
|
+
"react": "17.0.2",
|
|
15
|
+
"react-native": "0.68.2",
|
|
16
|
+
"react-native-safe-area-context": "4.2.4",
|
|
17
|
+
"twrnc": "^3.3.2",
|
|
18
|
+
"@react-navigation/drawer": "^6.5.0",
|
|
19
|
+
"@react-navigation/native": "^6.0.10",
|
|
20
|
+
"@react-navigation/native-stack": "^6.6.2",
|
|
21
|
+
"react-native-heroicons": "^2.2.0",
|
|
22
|
+
"moment": "^2.29.4",
|
|
23
|
+
"@react-native-community/datetimepicker": "6.1.2",
|
|
24
|
+
"react-native-reanimated": "~2.8.0"
|
|
25
|
+
}
|
|
26
|
+
}
|
package/utils/Color.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
export const Colors = {
|
|
2
|
-
"primary-base": '#218C74',
|
|
3
|
-
"primary-light": '#F4F9F8',
|
|
4
|
-
"secondary-base": '#3F3D84',
|
|
5
|
-
"secondary-light": '#F5F5F9',
|
|
6
|
-
"blue": '#0993BF',
|
|
7
|
-
"border": '#E0E6EC',
|
|
8
|
-
"warning": '#FFCB66',
|
|
9
|
-
"success": '#00BE9B',
|
|
10
|
-
"text-primary": '#2D3A5D',
|
|
11
|
-
"text-body": '#64748B',
|
|
12
|
-
"text-placeholder": '#CBD5E1',
|
|
13
|
-
"text-secondary": "#585F68",
|
|
14
|
-
"white": '#FFFFFF',
|
|
1
|
+
export const Colors = {
|
|
2
|
+
"primary-base": '#218C74',
|
|
3
|
+
"primary-light": '#F4F9F8',
|
|
4
|
+
"secondary-base": '#3F3D84',
|
|
5
|
+
"secondary-light": '#F5F5F9',
|
|
6
|
+
"blue": '#0993BF',
|
|
7
|
+
"border": '#E0E6EC',
|
|
8
|
+
"warning": '#FFCB66',
|
|
9
|
+
"success": '#00BE9B',
|
|
10
|
+
"text-primary": '#2D3A5D',
|
|
11
|
+
"text-body": '#64748B',
|
|
12
|
+
"text-placeholder": '#CBD5E1',
|
|
13
|
+
"text-secondary": "#585F68",
|
|
14
|
+
"white": '#FFFFFF',
|
|
15
15
|
};
|