fln-espranza 1.1.16 → 1.1.18

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,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="xs" style={[tw`font-semibold`, {
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`h-12 rounded-lg px-4 flex-row items-center border border-slate-300 lowercase mt-2 ${
35
- hasFocus ? "border-black shadow-md" : ""
36
- }`}
34
+ style={tw` mt-2 `}
37
35
  >
38
36
  <TextInput
39
- style={[tw`text-sm font-normal text-slate-500 h-full w-full `, {
40
- color: Colors["text-placeholder"]
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)}
@@ -0,0 +1,40 @@
1
+ import React from "react";
2
+ import { View } from "react-native";
3
+ import tw from "../lib/tailwind";
4
+ import Avatar from "./Avatar";
5
+ import EText from "./EText";
6
+
7
+ interface IProps {
8
+ name: string;
9
+ subtitle?: string;
10
+ noBorder?: boolean;
11
+ firstLetter?: string;
12
+ }
13
+
14
+ export default function EListPerson({
15
+ name,
16
+ subtitle,
17
+ noBorder,
18
+ firstLetter,
19
+ }: IProps) {
20
+ return (
21
+ <View style={[tw`flex-row items-center justify-between`]}>
22
+ <Avatar size="sm" source={""} nameFirstLetter={firstLetter} />
23
+ <View
24
+ style={tw` ml-3 py-3 flex-1 ${
25
+ noBorder ? "" : "border-b border-slate-200"
26
+ }`}
27
+ >
28
+ <EText style={tw`font-bold text-slate-800 mb-0.5`} numberOfLines={1}>
29
+ {name}
30
+ </EText>
31
+
32
+ {subtitle ? (
33
+ <EText size="sm" style={tw`text-slate-500`}>
34
+ {subtitle}
35
+ </EText>
36
+ ) : null}
37
+ </View>
38
+ </View>
39
+ );
40
+ }
@@ -0,0 +1,35 @@
1
+ import React from "react";
2
+ import { View } from "react-native";
3
+ import tw from "../lib/tailwind";
4
+ import EText from "./EText";
5
+
6
+ interface IProps {
7
+ name: string;
8
+ code?: string;
9
+ district?: string;
10
+ noBorder?: boolean;
11
+ }
12
+
13
+ export default function EListSchool({
14
+ name,
15
+ code,
16
+ district,
17
+ noBorder,
18
+ }: IProps) {
19
+ return (
20
+ <View style={tw`border-b border-slate-200 py-3`}>
21
+ <EText style={tw`font-bold text-slate-800 mb-0.5`} numberOfLines={1}>
22
+ {name}
23
+ </EText>
24
+ <View style={tw`flex-row items-center`}>
25
+ <EText size="sm" style={tw`text-slate-500`}>
26
+ {code}
27
+ </EText>
28
+ {district ? <><View style={tw`w-1 h-1 bg-slate-600 rounded-full mx-1.5`}></View>
29
+ <EText size="sm" style={tw`text-slate-500`}>
30
+ {district}
31
+ </EText></> : null}
32
+ </View>
33
+ </View>
34
+ );
35
+ }
@@ -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}
@@ -1,41 +1,46 @@
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'
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
- title?: string
10
- icon?: JSX.Element
11
- onPress?: () => void
9
+ title?: string;
10
+ icon?: JSX.Element;
11
+ onPress?: () => void;
12
12
  }
13
13
 
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"] }]} /> */}
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
- icon ?
20
- icon
21
- :
22
- <HomeIcon style={[tw`w-6 h-6`, { color: Colors["primary-base"] }]} />
23
- }
24
- <View style={[tw`py-4 ml-4 mr-8 w-[80%]`, {
25
- borderBottomWidth: 1,
26
- borderBottomColor: Colors.border,
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-slate-50 border-b border-slate-200 ${
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
  ]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fln-espranza",
3
- "version": "1.1.16",
3
+ "version": "1.1.18",
4
4
  "description": "All components used inside FLN Project of Espranza Innovations",
5
5
  "main": "index.ts",
6
6
  "scripts": {