fln-espranza 0.0.42 → 0.0.44

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.
Files changed (89) hide show
  1. package/.expo/README.md +15 -15
  2. package/.expo/settings.json +8 -8
  3. package/components/Avatar.tsx +43 -43
  4. package/components/BaseLayout.tsx +174 -174
  5. package/components/Drawer.tsx +125 -125
  6. package/components/EBadge.tsx +24 -24
  7. package/components/EButton.tsx +70 -70
  8. package/components/EDateAndTimeCard.tsx +51 -51
  9. package/components/EDateInput.tsx +55 -55
  10. package/components/EEmptyPlaceholder.tsx +21 -21
  11. package/components/EErrorText.tsx +19 -19
  12. package/components/EInfoBox.tsx +41 -41
  13. package/components/EInput.tsx +54 -54
  14. package/components/ELabel.tsx +15 -15
  15. package/components/EListClusterMeeting.tsx +47 -0
  16. package/components/EListPerson.tsx +52 -52
  17. package/components/EListSchool.tsx +35 -35
  18. package/components/ENotFoundPlaceholder.tsx +43 -43
  19. package/components/EOption.tsx +98 -98
  20. package/components/EOtpInputBox.tsx +49 -49
  21. package/components/EPageDescription.tsx +19 -19
  22. package/components/EPillButton.tsx +33 -33
  23. package/components/EProfile.tsx +58 -62
  24. package/components/EProfileScreenLayout.tsx +111 -111
  25. package/components/EProgressBar.tsx +33 -33
  26. package/components/EQuestionSerialNumberLabel.tsx +17 -17
  27. package/components/EQuestionText.tsx +14 -14
  28. package/components/ESegment.tsx +36 -36
  29. package/components/EStat.tsx +24 -24
  30. package/components/EText.tsx +41 -41
  31. package/components/ETextArea.tsx +53 -53
  32. package/components/ETimeInput.tsx +54 -54
  33. package/components/ETimeLineCard.tsx +66 -66
  34. package/components/ListFormView.tsx +36 -36
  35. package/components/Loader.tsx +31 -31
  36. package/components/MenuItems.tsx +46 -46
  37. package/components/PageHeader.tsx +124 -123
  38. package/components/ProfileHeader.tsx +85 -85
  39. package/components/SecondaryBaseLayout.tsx +106 -106
  40. package/components/Timer.tsx +56 -56
  41. package/components/icons/EIconAdd.jsx +19 -19
  42. package/components/icons/EIconAddCircle.jsx +21 -21
  43. package/components/icons/EIconApplicationStatus.jsx +20 -20
  44. package/components/icons/EIconArrowDown.jsx +20 -20
  45. package/components/icons/EIconArrowLeft.jsx +21 -21
  46. package/components/icons/EIconArrowRight.jsx +21 -21
  47. package/components/icons/EIconArrowUp.jsx +20 -20
  48. package/components/icons/EIconBadge.jsx +20 -20
  49. package/components/icons/EIconBell.jsx +19 -19
  50. package/components/icons/EIconCalendar.jsx +21 -21
  51. package/components/icons/EIconCalendarCheck.jsx +24 -24
  52. package/components/icons/EIconCamera.jsx +20 -20
  53. package/components/icons/EIconCameraRotate.jsx +23 -23
  54. package/components/icons/EIconCheck.jsx +19 -19
  55. package/components/icons/EIconCheckCircle.jsx +20 -20
  56. package/components/icons/EIconCheckFill.jsx +19 -19
  57. package/components/icons/EIconChevronDown.jsx +19 -19
  58. package/components/icons/EIconChevronLeft.jsx +19 -19
  59. package/components/icons/EIconChevronRight.jsx +19 -19
  60. package/components/icons/EIconChevronUp.jsx +19 -19
  61. package/components/icons/EIconClock.jsx +19 -19
  62. package/components/icons/EIconClose.jsx +19 -19
  63. package/components/icons/EIconDashboard.jsx +20 -20
  64. package/components/icons/EIconDocumentCheck.jsx +14 -14
  65. package/components/icons/EIconEdit.jsx +19 -19
  66. package/components/icons/EIconFemale.jsx +20 -20
  67. package/components/icons/EIconFile.jsx +21 -21
  68. package/components/icons/EIconInfo.jsx +20 -20
  69. package/components/icons/EIconLogout.jsx +19 -19
  70. package/components/icons/EIconMale.jsx +21 -21
  71. package/components/icons/EIconMenu.jsx +19 -19
  72. package/components/icons/EIconMinus.jsx +19 -19
  73. package/components/icons/EIconPin.jsx +19 -19
  74. package/components/icons/EIconProfile.jsx +19 -19
  75. package/components/icons/EIconSchool.jsx +24 -24
  76. package/components/icons/EIconSearch.jsx +19 -19
  77. package/components/icons/EIconSettings.jsx +20 -20
  78. package/components/icons/EIconShare.jsx +21 -21
  79. package/components/icons/EIconStudent.jsx +23 -23
  80. package/components/icons/EIconSubject.jsx +21 -21
  81. package/components/icons/EIconTeach.jsx +21 -21
  82. package/components/icons/EIconTrash.jsx +19 -19
  83. package/components/icons/EIconUserCard.jsx +19 -19
  84. package/components/icons/EIconUserCheck.jsx +20 -20
  85. package/components/icons/EIconUsers.jsx +19 -19
  86. package/components/index.tsx +69 -67
  87. package/index.ts +184 -184
  88. package/package.json +26 -26
  89. package/utils/Color.ts +14 -14
@@ -1,21 +1,21 @@
1
-
2
- import React from 'react'
3
- import { ImageBackground, View } from 'react-native'
4
- import tw from "../lib/tailwind"
5
- import EText from "./EText";
6
-
7
-
8
- interface IProps{
9
- text: string;
10
- }
11
-
12
- export default function EEmptyPlaceholder( { text }: IProps) {
13
- return (
14
- <View style={tw`flex justify-center items-center`}>
15
- <ImageBackground source={require("../assets/images/empty.png")} style={{width: 200, height: 200}} />
16
- <EText style={tw`text-center text-gray-800 mt-5`}>
17
- {text}
18
- </EText>
19
- </View>
20
- )
21
- }
1
+
2
+ import React from 'react'
3
+ import { ImageBackground, View } from 'react-native'
4
+ import tw from "../lib/tailwind"
5
+ import EText from "./EText";
6
+
7
+
8
+ interface IProps{
9
+ text: string;
10
+ }
11
+
12
+ export default function EEmptyPlaceholder( { text }: IProps) {
13
+ return (
14
+ <View style={tw`flex justify-center items-center`}>
15
+ <ImageBackground source={require("../assets/images/empty.png")} style={{width: 200, height: 200}} />
16
+ <EText style={tw`text-center text-gray-800 mt-5`}>
17
+ {text}
18
+ </EText>
19
+ </View>
20
+ )
21
+ }
@@ -1,19 +1,19 @@
1
- import React from 'react';
2
- import { View } from 'react-native';
3
- import tw from '../lib/tailwind';
4
- import EText from './EText';
5
-
6
-
7
- interface IProps {
8
- error: string;
9
- }
10
-
11
- export default function EErrorText( { error }: IProps ) {
12
- return (
13
- <View>
14
- <EText size={"xs"} style={tw`text-red-500`}>
15
- {error}
16
- </EText>
17
- </View>
18
- )
19
- }
1
+ import React from 'react';
2
+ import { View } from 'react-native';
3
+ import tw from '../lib/tailwind';
4
+ import EText from './EText';
5
+
6
+
7
+ interface IProps {
8
+ error: string;
9
+ }
10
+
11
+ export default function EErrorText( { error }: IProps ) {
12
+ return (
13
+ <View>
14
+ <EText size={"xs"} style={tw`text-red-500`}>
15
+ {error}
16
+ </EText>
17
+ </View>
18
+ )
19
+ }
@@ -1,41 +1,41 @@
1
- import { View, Text } from "react-native";
2
- import React from "react";
3
- import tw from "../lib/tailwind";
4
- import EText from "./EText";
5
- import { Style } from "twrnc/dist/esm/types";
6
-
7
- interface InfoBoxProps {
8
- title?: string;
9
- icon: JSX.Element;
10
- children: string;
11
- color?: string;
12
- style?: Style;
13
- childTextColor?: string;
14
- }
15
-
16
- export default function InfoBox({
17
- title,
18
- icon,
19
- color,
20
- children,
21
- style,
22
- childTextColor,
23
- }: InfoBoxProps) {
24
- return (
25
- <View style={[tw.style("rounded-lg bg-orange-500/10 p-3"), style]}>
26
- <View style={tw`flex-row`}>
27
- <View style={tw`w-5 h-5 mr-1`}>{icon}</View>
28
- <View style={tw`flex-1`}>
29
- {title ? (
30
- <EText size="sm" style={tw`font-semibold mb-1 text-${color ? color : "white"}`}>
31
- {title}
32
- </EText>
33
- ) : null}
34
- <EText size="xs" style={[tw`opacity-60`, {color: childTextColor}]}>
35
- {children}
36
- </EText>
37
- </View>
38
- </View>
39
- </View>
40
- );
41
- }
1
+ import { View, Text } from "react-native";
2
+ import React from "react";
3
+ import tw from "../lib/tailwind";
4
+ import EText from "./EText";
5
+ import { Style } from "twrnc/dist/esm/types";
6
+
7
+ interface InfoBoxProps {
8
+ title?: string;
9
+ icon: JSX.Element;
10
+ children: string;
11
+ color?: string;
12
+ style?: Style;
13
+ childTextColor?: string;
14
+ }
15
+
16
+ export default function InfoBox({
17
+ title,
18
+ icon,
19
+ color,
20
+ children,
21
+ style,
22
+ childTextColor,
23
+ }: InfoBoxProps) {
24
+ return (
25
+ <View style={[tw.style("rounded-lg bg-blue-500/10 border border-blue-800/10 p-4"), style]}>
26
+ <View style={tw`flex-row`}>
27
+ <View style={tw`w-5 h-5 mr-2`}>{icon}</View>
28
+ <View style={tw`flex-1`}>
29
+ {title ? (
30
+ <EText size="sm" style={tw`font-semibold mb-1 text-${color ? color : "white"}`}>
31
+ {title}
32
+ </EText>
33
+ ) : null}
34
+ <EText size="xs" style={[tw`text-slate-900 opacity-70`, {color: childTextColor}]}>
35
+ {children}
36
+ </EText>
37
+ </View>
38
+ </View>
39
+ </View>
40
+ );
41
+ }
@@ -1,54 +1,54 @@
1
- import { View, Text, TextInput, TextInputProps } from "react-native";
2
- import React, { useState } from "react";
3
- import EText from "./EText";
4
- import { SearchIcon } from "react-native-heroicons/solid";
5
- import { Colors } from "../utils/Color";
6
- import tw from "../lib/tailwind";
7
-
8
- interface EInputProps extends TextInputProps {
9
- label?: string;
10
- size?: "lg";
11
- hasBackground?: boolean;
12
- icon?: JSX.Element;
13
- style?: any;
14
- }
15
-
16
- export default function EInput({
17
- label,
18
- size,
19
- hasBackground,
20
- icon,
21
- style,
22
- ...props
23
- }: EInputProps) {
24
- const [hasFocus, setHasFocus] = useState(false);
25
- return (
26
- <View style={[tw`mb-4`, {style}]}>
27
- {label ? (
28
- <EText size="sm" style={[tw`font-semibold text-slate-800`, {
29
- // color: Colors["text-primary"]
30
- }]}>
31
- {label}
32
- </EText>
33
- ) : null}
34
-
35
- <View
36
- style={tw` mt-2`}
37
- >
38
- <TextInput
39
- style={tw`h-12 rounded-lg px-4 flex-row items-center border border-slate-300 ${
40
- hasFocus ? "border-black " : ""
41
- }`}
42
- {...props}
43
- onFocus={() => setHasFocus(!hasFocus)}
44
- onBlur={() => setHasFocus(!hasFocus)}
45
- />
46
- {
47
- icon ?
48
- <>{icon}</>
49
- : null
50
- }
51
- </View>
52
- </View>
53
- );
54
- }
1
+ import { View, Text, TextInput, TextInputProps } from "react-native";
2
+ import React, { useState } from "react";
3
+ import EText from "./EText";
4
+ import { SearchIcon } from "react-native-heroicons/solid";
5
+ import { Colors } from "../utils/Color";
6
+ import tw from "../lib/tailwind";
7
+
8
+ interface EInputProps extends TextInputProps {
9
+ label?: string;
10
+ size?: "lg";
11
+ hasBackground?: boolean;
12
+ icon?: JSX.Element;
13
+ style?: any;
14
+ }
15
+
16
+ export default function EInput({
17
+ label,
18
+ size,
19
+ hasBackground,
20
+ icon,
21
+ style,
22
+ ...props
23
+ }: EInputProps) {
24
+ const [hasFocus, setHasFocus] = useState(false);
25
+ return (
26
+ <View style={[tw`mb-4`, {style}]}>
27
+ {label ? (
28
+ <EText size="sm" style={[tw`font-semibold text-slate-800`, {
29
+ // color: Colors["text-primary"]
30
+ }]}>
31
+ {label}
32
+ </EText>
33
+ ) : null}
34
+
35
+ <View
36
+ style={tw` mt-2`}
37
+ >
38
+ <TextInput
39
+ style={tw`h-12 rounded-lg px-4 flex-row items-center border border-slate-300 ${
40
+ hasFocus ? "border-black " : ""
41
+ }`}
42
+ {...props}
43
+ onFocus={() => setHasFocus(!hasFocus)}
44
+ onBlur={() => setHasFocus(!hasFocus)}
45
+ />
46
+ {
47
+ icon ?
48
+ <>{icon}</>
49
+ : null
50
+ }
51
+ </View>
52
+ </View>
53
+ );
54
+ }
@@ -1,15 +1,15 @@
1
- import React from 'react'
2
- import tw from '../lib/tailwind'
3
- import EText from './EText';
4
-
5
- interface IProps{
6
- label: string;
7
- }
8
-
9
- export default function ELabel( {label }: IProps ) {
10
- return (
11
- <EText size="sm" style={[tw`font-semibold text-slate-800`, {}]}>
12
- {label}
13
- </EText>
14
- )
15
- }
1
+ import React from 'react'
2
+ import tw from '../lib/tailwind'
3
+ import EText from './EText';
4
+
5
+ interface IProps{
6
+ label: string;
7
+ }
8
+
9
+ export default function ELabel( {label }: IProps ) {
10
+ return (
11
+ <EText size="sm" style={[tw`font-semibold text-slate-800`, {}]}>
12
+ {label}
13
+ </EText>
14
+ )
15
+ }
@@ -0,0 +1,47 @@
1
+ import React from "react";
2
+ import { TouchableOpacity, TouchableOpacityProps, View } from "react-native";
3
+ import tw from "../lib/tailwind";
4
+ import EText from "./EText";
5
+ import { ChevronRightIcon } from "react-native-heroicons/outline";
6
+ import { Colors } from "fln-espranza/utils/Color";
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
22
+ style={tw`border-b border-slate-200 py-3`}
23
+ {...props}
24
+ activeOpacity={0.5}
25
+ >
26
+ <View style={tw`flex-row items-center`}>
27
+ <EText style={tw`font-bold text-slate-800 mb-0.5 flex-1`}>{date}</EText>
28
+ <ChevronRightIcon style={tw`text-slate-800`} size={16} />
29
+ </View>
30
+ <View style={tw`flex-row flex-1 items-center`}>
31
+ <EText size="sm" style={tw`text-slate-500`}>
32
+ {time}
33
+ </EText>
34
+ <View
35
+ style={tw`w-1 h-1 bg-[${Colors["primary-base"]}] rounded-full mx-2`}
36
+ ></View>
37
+ <EText
38
+ size="sm"
39
+ style={tw`text-slate-500 flex-1 pr-6`}
40
+ numberOfLines={1}
41
+ >
42
+ {location}
43
+ </EText>
44
+ </View>
45
+ </TouchableOpacity>
46
+ );
47
+ }
@@ -1,52 +1,52 @@
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
- itemsEnd?: JSX.Element;
13
- subTitleIcon?: JSX.Element;
14
- }
15
-
16
- export default function EListPerson({
17
- name,
18
- subtitle,
19
- noBorder,
20
- firstLetter,
21
- itemsEnd,
22
- subTitleIcon
23
- }: IProps) {
24
- return (
25
- <View style={[tw`flex-row items-center justify-between`]}>
26
- <Avatar size="sm" source={""} nameFirstLetter={name.split(" ")[0].charAt(0)} />
27
- <View
28
- style={tw` ml-3 py-3 flex-1 flex-row items-center justify-between ${noBorder ? "" : "border-b border-slate-200"
29
- }`}
30
- >
31
- <View>
32
- <EText style={tw`font-bold text-slate-800 mb-0.5 capitalize`} numberOfLines={1}>
33
- {name}
34
- </EText>
35
-
36
- <View style={tw`flex flex-row items-center`}>
37
- {subTitleIcon ? subTitleIcon : <></>}
38
- {subtitle
39
- ?
40
- (
41
- <EText size="sm" style={tw`text-slate-500`}>
42
- {subtitle}
43
- </EText>
44
- )
45
- : <></>}
46
- </View>
47
- </View>
48
- {itemsEnd}
49
- </View>
50
- </View>
51
- );
52
- }
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
+ itemsEnd?: JSX.Element;
13
+ subTitleIcon?: JSX.Element;
14
+ }
15
+
16
+ export default function EListPerson({
17
+ name,
18
+ subtitle,
19
+ noBorder,
20
+ firstLetter,
21
+ itemsEnd,
22
+ subTitleIcon
23
+ }: IProps) {
24
+ return (
25
+ <View style={[tw`flex-row items-center justify-between`]}>
26
+ <Avatar size="sm" source={""} nameFirstLetter={name.split(" ")[0].charAt(0)} />
27
+ <View
28
+ style={tw` ml-3 py-3 flex-1 flex-row items-center justify-between ${noBorder ? "" : "border-b border-slate-200"
29
+ }`}
30
+ >
31
+ <View>
32
+ <EText style={tw`font-bold text-slate-800 mb-0.5 capitalize`} numberOfLines={1}>
33
+ {name}
34
+ </EText>
35
+
36
+ <View style={tw`flex flex-row items-center`}>
37
+ {subTitleIcon ? subTitleIcon : <></>}
38
+ {subtitle
39
+ ?
40
+ (
41
+ <EText size="sm" style={tw`text-slate-500`}>
42
+ {subtitle}
43
+ </EText>
44
+ )
45
+ : <></>}
46
+ </View>
47
+ </View>
48
+ {itemsEnd}
49
+ </View>
50
+ </View>
51
+ );
52
+ }
@@ -1,35 +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 flex-1`} numberOfLines={2}>
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
- }
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 flex-1`} numberOfLines={2}>
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
+ }
@@ -1,43 +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
- }
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
+ }