fln-espranza 1.1.16 → 1.1.17
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/EInput.tsx
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { View, Text, TextInput, TextInputProps } from "react-native";
|
|
2
2
|
import React, { useState } from "react";
|
|
3
|
-
import tw from "../lib/tailwind";
|
|
4
3
|
import EText from "./EText";
|
|
5
4
|
import { SearchIcon } from "react-native-heroicons/solid";
|
|
6
5
|
import { Colors } from "../utils/Color";
|
|
6
|
+
import tw from "../lib/tailwind";
|
|
7
7
|
|
|
8
8
|
interface EInputProps extends TextInputProps {
|
|
9
9
|
label?: string;
|
|
@@ -23,22 +23,20 @@ export default function EInput({
|
|
|
23
23
|
return (
|
|
24
24
|
<View style={[tw`mb-4`, {}]}>
|
|
25
25
|
{label ? (
|
|
26
|
-
<EText size="
|
|
27
|
-
color: Colors["text-primary"]
|
|
26
|
+
<EText size="sm" style={[tw`font-semibold text-slate-800`, {
|
|
27
|
+
// color: Colors["text-primary"]
|
|
28
28
|
}]}>
|
|
29
29
|
{label}
|
|
30
30
|
</EText>
|
|
31
31
|
) : null}
|
|
32
32
|
|
|
33
33
|
<View
|
|
34
|
-
style={tw`
|
|
35
|
-
hasFocus ? "border-black shadow-md" : ""
|
|
36
|
-
}`}
|
|
34
|
+
style={tw` mt-2 `}
|
|
37
35
|
>
|
|
38
36
|
<TextInput
|
|
39
|
-
style={
|
|
40
|
-
|
|
41
|
-
}
|
|
37
|
+
style={tw`h-12 rounded-lg px-4 flex-row items-center border border-slate-300 ${
|
|
38
|
+
hasFocus ? "border-black shadow-md" : ""
|
|
39
|
+
}`}
|
|
42
40
|
{...props}
|
|
43
41
|
onFocus={() => setHasFocus(!hasFocus)}
|
|
44
42
|
onBlur={() => setHasFocus(!hasFocus)}
|
package/components/ESegment.tsx
CHANGED
|
@@ -9,7 +9,7 @@ export function ESegmentItem(props: any) {
|
|
|
9
9
|
return (
|
|
10
10
|
<TouchableOpacity
|
|
11
11
|
style={tw.style(
|
|
12
|
-
"py-1.5 px-4 rounded items-center w-1/2",
|
|
12
|
+
"py-1.5 px-4 rounded-full items-center w-1/2",
|
|
13
13
|
isActive && "bg-white shadow-lg shadow-slate-500 "
|
|
14
14
|
)}
|
|
15
15
|
onPress={onPress}
|
package/components/MenuItems.tsx
CHANGED
|
@@ -1,41 +1,46 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import { TouchableOpacity, View } from
|
|
3
|
-
import { HomeIcon } from
|
|
4
|
-
import tw from
|
|
5
|
-
import { Colors } from
|
|
6
|
-
import EText from
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { TouchableOpacity, View } from "react-native";
|
|
3
|
+
import { HomeIcon } from "react-native-heroicons/solid";
|
|
4
|
+
import tw from "../lib/tailwind";
|
|
5
|
+
import { Colors } from "../utils/Color";
|
|
6
|
+
import EText from "./EText";
|
|
7
7
|
|
|
8
8
|
interface IProps {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
title?: string;
|
|
10
|
+
icon?: JSX.Element;
|
|
11
|
+
onPress?: () => void;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
export default function MenuItems(
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
14
|
+
export default function MenuItems({ title, icon, onPress }: IProps) {
|
|
15
|
+
return (
|
|
16
|
+
<TouchableOpacity style={tw`flex-row items-center`} onPress={onPress}>
|
|
17
|
+
{/* <HomeIcon style={[tw`w-6 h-6`, { color: Colors["primary-base"] }]} /> */}
|
|
18
|
+
{icon ? (
|
|
19
|
+
icon
|
|
20
|
+
) : (
|
|
21
|
+
<HomeIcon style={[tw`w-6 h-6`, { color: Colors["primary-base"] }]} />
|
|
22
|
+
)}
|
|
23
|
+
<View
|
|
24
|
+
style={[
|
|
25
|
+
tw`py-4 ml-4 mr-8 w-[80%]`,
|
|
26
|
+
{
|
|
27
|
+
borderBottomWidth: 1,
|
|
28
|
+
borderBottomColor: Colors.border,
|
|
29
|
+
},
|
|
30
|
+
]}
|
|
31
|
+
>
|
|
32
|
+
<EText
|
|
33
|
+
size="base"
|
|
34
|
+
style={[
|
|
35
|
+
tw`font-medium `,
|
|
18
36
|
{
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
<EText size="sm" style={[tw`font-medium `, {
|
|
29
|
-
color: Colors["text-primary"]
|
|
30
|
-
}]}>
|
|
31
|
-
{
|
|
32
|
-
title ?
|
|
33
|
-
title
|
|
34
|
-
:
|
|
35
|
-
"Dashboard"
|
|
36
|
-
}
|
|
37
|
-
</EText>
|
|
38
|
-
</View>
|
|
39
|
-
</TouchableOpacity>
|
|
40
|
-
)
|
|
37
|
+
color: Colors["text-primary"],
|
|
38
|
+
},
|
|
39
|
+
]}
|
|
40
|
+
>
|
|
41
|
+
{title ? title : "Dashboard"}
|
|
42
|
+
</EText>
|
|
43
|
+
</View>
|
|
44
|
+
</TouchableOpacity>
|
|
45
|
+
);
|
|
41
46
|
}
|
|
@@ -50,16 +50,6 @@ export default function PageHeader({
|
|
|
50
50
|
return (
|
|
51
51
|
<View style={[tw`${curved ? "-mb-2" : ""} ${border ? "border-b border-slate-300" : ""} `, {}]}>
|
|
52
52
|
<View style={tw`overflow-hidden`}>
|
|
53
|
-
{/* curved ? (
|
|
54
|
-
<Image
|
|
55
|
-
resizeMode="cover"
|
|
56
|
-
// source={require("../assets/images/bg-header.jpg")}
|
|
57
|
-
style={[
|
|
58
|
-
tw`absolute w-full h-full`,
|
|
59
|
-
{ width: SCREEN_WIDTH, borderBottomRightRadius: 32 },
|
|
60
|
-
]}
|
|
61
|
-
/>
|
|
62
|
-
) : null */}
|
|
63
53
|
<Animated.View
|
|
64
54
|
style={[
|
|
65
55
|
tw`flex-row pr-4 pl-3 pb-3`,
|
|
@@ -31,7 +31,7 @@ interface BaseLayoutProps {
|
|
|
31
31
|
subtitle?: string;
|
|
32
32
|
curved?: boolean;
|
|
33
33
|
headerContent?: JSX.Element;
|
|
34
|
-
children?: JSX.Element;
|
|
34
|
+
children?: JSX.Element | JSX.Element[];
|
|
35
35
|
iconEnd?: JSX.Element;
|
|
36
36
|
noScroll?: boolean;
|
|
37
37
|
bottomButton?: JSX.Element;
|
|
@@ -70,7 +70,7 @@ export default function SecondaryBaseLayout({
|
|
|
70
70
|
{/* HEADER */}
|
|
71
71
|
<View
|
|
72
72
|
style={[
|
|
73
|
-
tw`absolute top-0 right-0 left-0 pt-2 z-10 w-full bg-
|
|
73
|
+
tw`absolute top-0 right-0 left-0 pt-2 z-10 w-full bg-white ${
|
|
74
74
|
title ? "mb-1" : "pb-0"
|
|
75
75
|
}`,
|
|
76
76
|
]}
|