fln-espranza 0.0.6 → 0.0.9
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/EBadge.tsx
CHANGED
|
@@ -13,7 +13,7 @@ interface IProps {
|
|
|
13
13
|
|
|
14
14
|
export default function EBadge({ text, completed, color }: IProps) {
|
|
15
15
|
return (
|
|
16
|
-
<View style={[tw`
|
|
16
|
+
<View style={[tw`flex-row p-1 px-2 bg-[${color}] rounded-full`, ]}>
|
|
17
17
|
{completed ? <CheckCircleIcon style={tw`text-white -ml-1 mr-1`} size={16} /> : null}
|
|
18
18
|
<EText size='xs' style={tw`font-semibold text-white`}>
|
|
19
19
|
{text}
|
package/components/EInput.tsx
CHANGED
|
@@ -35,7 +35,7 @@ export default function EInput({
|
|
|
35
35
|
>
|
|
36
36
|
<TextInput
|
|
37
37
|
style={tw`h-12 rounded-lg px-4 flex-row items-center border border-slate-300 ${
|
|
38
|
-
hasFocus ? "border-black
|
|
38
|
+
hasFocus ? "border-black " : ""
|
|
39
39
|
}`}
|
|
40
40
|
{...props}
|
|
41
41
|
onFocus={() => setHasFocus(!hasFocus)}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import React, { useState } from 'react';
|
|
2
|
+
import { TouchableOpacity, View, TouchableOpacityProps } from 'react-native';
|
|
3
|
+
import { Colors } from 'react-native/Libraries/NewAppScreen';
|
|
4
|
+
import tw from '../../../lib/tailwind';
|
|
5
|
+
import EText from './EText';
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
interface RadioButtonProps extends TouchableOpacityProps {
|
|
9
|
+
text?: string;
|
|
10
|
+
isActive: boolean;
|
|
11
|
+
onPress?: () => void;
|
|
12
|
+
}
|
|
13
|
+
const EOption = ({ isActive, text, onPress, ...props }: RadioButtonProps) => {
|
|
14
|
+
|
|
15
|
+
return (
|
|
16
|
+
<TouchableOpacity
|
|
17
|
+
style={[tw`flex flex-row justify-start items-center mt-2 px-4 py-3 border rounded-lg`, {
|
|
18
|
+
borderColor: isActive ? Colors['secondary-base'] : Colors.border,
|
|
19
|
+
backgroundColor: isActive ? Colors['secondary-light'] : Colors.white
|
|
20
|
+
}]
|
|
21
|
+
}
|
|
22
|
+
onPress={() => {
|
|
23
|
+
onPress && onPress();
|
|
24
|
+
}}
|
|
25
|
+
{...props}
|
|
26
|
+
>
|
|
27
|
+
<EText size={"base"} style={tw`font-normal`}>
|
|
28
|
+
{text}
|
|
29
|
+
</EText>
|
|
30
|
+
</TouchableOpacity>
|
|
31
|
+
);
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
export default EOption;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
import { Colors } from 'react-native/Libraries/NewAppScreen';
|
|
3
|
+
import tw from '../lib/tailwind';
|
|
4
|
+
import EText from './EText';
|
|
5
|
+
// import { EText } from '../../../components'
|
|
6
|
+
|
|
7
|
+
interface IProps{
|
|
8
|
+
label: string;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export default function EQuestionSerialNumberLabel( { label } : IProps) {
|
|
12
|
+
return (
|
|
13
|
+
<EText size={"sm"} style={[tw`font-extrabold`, {color: Colors['primary-base']}]}>
|
|
14
|
+
{label}
|
|
15
|
+
</EText>
|
|
16
|
+
)
|
|
17
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
import tw from '../lib/tailwind';
|
|
3
|
+
import EText from './EText';
|
|
4
|
+
interface IProps{
|
|
5
|
+
question: string;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export default function EQuestionText( { question } : IProps) {
|
|
9
|
+
return (
|
|
10
|
+
<EText size={"base"} style={ tw`font-medium mt-1`}>
|
|
11
|
+
{question}
|
|
12
|
+
</EText>
|
|
13
|
+
)
|
|
14
|
+
}
|
package/index.ts
CHANGED
|
@@ -78,6 +78,9 @@ import EIconTrash from "./components/icons/EIconTrash";
|
|
|
78
78
|
import EIconUserCard from "./components/icons/EIconUserCard";
|
|
79
79
|
import EIconUserCheck from "./components/icons/EIconUserCheck";
|
|
80
80
|
import EIconUsers from "./components/icons/EIconUsers";
|
|
81
|
+
import EOption from "./components/EOption";
|
|
82
|
+
import EQuestionSerialNumberLabel from "./components/EQuestionSerialNumberLabel";
|
|
83
|
+
import EQuestionText from "./components/EQuestionText";
|
|
81
84
|
|
|
82
85
|
export {
|
|
83
86
|
Avatar,
|
|
@@ -116,6 +119,9 @@ export {
|
|
|
116
119
|
Colors,
|
|
117
120
|
EListPerson,
|
|
118
121
|
EListSchool,
|
|
122
|
+
EOption,
|
|
123
|
+
EQuestionSerialNumberLabel,
|
|
124
|
+
EQuestionText,
|
|
119
125
|
|
|
120
126
|
|
|
121
127
|
// ICONS
|