fln-espranza 0.0.56 → 0.0.58
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/components/Drawer.tsx +5 -5
- package/components/EButton.tsx +1 -1
- package/components/EInput.tsx +0 -1
- package/components/ELabel.tsx +1 -1
- package/components/EListSchool.tsx +2 -2
- package/components/EProfile.tsx +1 -1
- package/components/EStat.tsx +5 -10
- package/components/EText.tsx +2 -2
- package/components/PageHeader.tsx +2 -3
- package/package.json +1 -1
package/components/Drawer.tsx
CHANGED
|
@@ -45,16 +45,16 @@ const Drawer = ({
|
|
|
45
45
|
<View style={tw`mx-4 pt-4`}>
|
|
46
46
|
<Spacer height={30} />
|
|
47
47
|
|
|
48
|
-
<View style={tw`flex w-full mt-5`}>
|
|
48
|
+
<View style={tw`flex w-full mt-5 mr-5`}>
|
|
49
49
|
<View style={tw`flex-row items-center`}>
|
|
50
50
|
<Avatar
|
|
51
51
|
size="sm"
|
|
52
52
|
source={""}
|
|
53
53
|
nameFirstLetter={name?.split("")[0]}
|
|
54
54
|
/>
|
|
55
|
-
|
|
55
|
+
<View style={tw`ml-3 mr-5`}>
|
|
56
56
|
|
|
57
|
-
<EText size={"
|
|
57
|
+
<EText size={"base"} style={tw`font-bold -mt-1 lowercase capitalize mr-3`}>
|
|
58
58
|
{name}
|
|
59
59
|
</EText>
|
|
60
60
|
<EText
|
|
@@ -67,12 +67,12 @@ const Drawer = ({
|
|
|
67
67
|
]}
|
|
68
68
|
>
|
|
69
69
|
{profile}
|
|
70
|
-
|
|
70
|
+
</EText>
|
|
71
71
|
</View>
|
|
72
72
|
</View>
|
|
73
73
|
</View>
|
|
74
74
|
|
|
75
|
-
<Spacer height={
|
|
75
|
+
<Spacer height={20} />
|
|
76
76
|
{menuItems.map((item, index) => {
|
|
77
77
|
return (
|
|
78
78
|
<MenuItems
|
package/components/EButton.tsx
CHANGED
|
@@ -38,7 +38,7 @@ 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-10 px-4' : 'h-14 px-8'} ${disabled ? "opacity-40" : ""} ${type === "clear"
|
|
41
|
+
tw` mt-2 flex-row justify-center items-center rounded-full border-2 border-black/5 ${small ? 'h-10 px-4' : 'h-14 px-8'} ${disabled ? "opacity-40" : ""} ${type === "clear"
|
|
42
42
|
? "bg-transparent "
|
|
43
43
|
: type === 'white' ? "bg-white"
|
|
44
44
|
: type === "secondary"
|
package/components/EInput.tsx
CHANGED
package/components/ELabel.tsx
CHANGED
|
@@ -18,11 +18,11 @@ export default function EListSchool({
|
|
|
18
18
|
}: IProps) {
|
|
19
19
|
return (
|
|
20
20
|
<View style={tw`border-b border-slate-200 py-3`}>
|
|
21
|
-
<EText size="base" style={tw`font-bold text-slate-800 mb-
|
|
21
|
+
<EText size="base" style={tw`font-bold text-slate-800 mb-1 h-7`} numberOfLines={2}>
|
|
22
22
|
{name}
|
|
23
23
|
</EText>
|
|
24
24
|
<View style={tw`flex-row items-center`}>
|
|
25
|
-
<EText size="sm" style={tw`text-slate-500`}>
|
|
25
|
+
<EText size="sm" style={tw`text-slate-500 mt-0.5`}>
|
|
26
26
|
{code}
|
|
27
27
|
</EText>
|
|
28
28
|
{district ? <><View style={tw`w-1 h-1 bg-slate-600 rounded-full mx-1.5`}></View>
|
package/components/EProfile.tsx
CHANGED
package/components/EStat.tsx
CHANGED
|
@@ -8,7 +8,7 @@ interface IProps {
|
|
|
8
8
|
stat: string;
|
|
9
9
|
target: string;
|
|
10
10
|
label: string;
|
|
11
|
-
statColor
|
|
11
|
+
statColor: string;
|
|
12
12
|
iconR?: JSX.Element;
|
|
13
13
|
}
|
|
14
14
|
|
|
@@ -25,16 +25,11 @@ export default function EStat({
|
|
|
25
25
|
|
|
26
26
|
return (
|
|
27
27
|
<TouchableOpacity
|
|
28
|
-
style={[tw`bg-slate-00 flex-1 overflow-hidden items-center py-3
|
|
29
|
-
// shadowColor: '#155e75',
|
|
30
|
-
// shadowOffset: { width: 0, height: 8 },
|
|
31
|
-
// shadowOpacity: .1,
|
|
32
|
-
// shadowRadius: 16,
|
|
33
|
-
}]}
|
|
28
|
+
style={[tw`bg-slate-00 flex-1 overflow-hidden items-center py-3`]}
|
|
34
29
|
activeOpacity={0.8}
|
|
35
30
|
>
|
|
36
|
-
<View style={tw`
|
|
37
|
-
<EText style={tw`text-
|
|
31
|
+
<View style={tw` flex-row flex-1 justify-center`}>
|
|
32
|
+
<EText style={tw`text-xl font-bold ${statColor} -tracking-0.25 `}>
|
|
38
33
|
{stat}
|
|
39
34
|
</EText>
|
|
40
35
|
<EText style={tw`ml-0.5 pt-1 text-slate-800 opacity-50 font-semibold -tracking-0.25`}>
|
|
@@ -42,7 +37,7 @@ export default function EStat({
|
|
|
42
37
|
</EText>
|
|
43
38
|
{iconR}
|
|
44
39
|
</View>
|
|
45
|
-
<EText size="
|
|
40
|
+
<EText size="base" style={tw`font-bold text-slate-700 mb-0.5 mt-0.1`}>{label}</EText>
|
|
46
41
|
<EText size="sm" style={tw` text-slate-800 opacity-60`}>{pending} remaining</EText>
|
|
47
42
|
</TouchableOpacity>
|
|
48
43
|
);
|
package/components/EText.tsx
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Text, TextProps } from "react-native";
|
|
2
2
|
import React from "react";
|
|
3
3
|
import tw from "../lib/tailwind";
|
|
4
|
-
|
|
4
|
+
|
|
5
5
|
|
|
6
6
|
interface ETextProps extends TextProps {
|
|
7
7
|
size?: "xs" | "sm" | "base" | "lg" | "xl" | "2xl" | "3xl" | "title";
|
|
@@ -36,7 +36,7 @@ export default function EText({
|
|
|
36
36
|
style,
|
|
37
37
|
]}
|
|
38
38
|
>
|
|
39
|
-
{
|
|
39
|
+
{children}
|
|
40
40
|
</Text>
|
|
41
41
|
);
|
|
42
42
|
}
|
|
@@ -84,7 +84,6 @@ export default function PageHeader({
|
|
|
84
84
|
<EIconArrowLeft
|
|
85
85
|
iconColor={curved ? "white" : "tint-slate-900"}
|
|
86
86
|
size={24}
|
|
87
|
-
// onPress={() => navigation.navigate("Dashboard")}
|
|
88
87
|
style={tw`text-slate-800`}
|
|
89
88
|
/>
|
|
90
89
|
</TouchableOpacity>
|
|
@@ -96,7 +95,7 @@ export default function PageHeader({
|
|
|
96
95
|
<View style={tw`flex-1 items-start px-3`}>
|
|
97
96
|
<EText
|
|
98
97
|
size="base"
|
|
99
|
-
style={tw.style("text-slate-
|
|
98
|
+
style={tw.style("text-slate-700 font-bold")}
|
|
100
99
|
numberOfLines={1}
|
|
101
100
|
>
|
|
102
101
|
{title}
|
|
@@ -104,7 +103,7 @@ export default function PageHeader({
|
|
|
104
103
|
{subtitle ? (
|
|
105
104
|
<EText
|
|
106
105
|
style={tw.style(
|
|
107
|
-
"text-slate-
|
|
106
|
+
"text-slate-700 opacity-40 font-semibold mt-0.25"
|
|
108
107
|
)}
|
|
109
108
|
>
|
|
110
109
|
{subtitle}
|