fln-espranza 1.1.4 → 1.1.6

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.
@@ -16,6 +16,8 @@ interface EButtonProps extends TouchableOpacityProps {
16
16
  inline?: boolean;
17
17
  small?: boolean;
18
18
  type?: "secondary" | "clear" | "primary";
19
+ disabled?: boolean;
20
+ children: any;
19
21
  }
20
22
 
21
23
  export default function EButton({
@@ -27,17 +29,19 @@ export default function EButton({
27
29
  inline,
28
30
  small,
29
31
  type,
32
+ disabled,
30
33
  ...props
31
34
  }: EButtonProps) {
32
35
  return (
33
36
  <TouchableOpacity
34
37
  activeOpacity={0.8}
38
+ disabled={disabled}
35
39
  {...props}
36
40
  style={[tw`${inline ? "items-start" : ""}`, {}]}
37
41
  >
38
42
  <View
39
43
  style={[
40
- tw`h-14 flex-row justify-center items-center px-8 rounded-full ${
44
+ tw`h-14 flex-row justify-center items-center px-8 rounded-full ${disabled ? "opacity-60" : ""} ${
41
45
  type === "clear"
42
46
  ? "bg-transparent"
43
47
  : type === "secondary"
@@ -50,14 +54,14 @@ export default function EButton({
50
54
  {iconL ? <View style={tw`mr-1 -ml-2`}>{iconL}</View> : null}
51
55
  {/* LABEL */}
52
56
  <EText
53
- size={small ? "sm" : ""}
57
+ size={"sm"}
54
58
  style={[
55
59
  tw`font-semibold ${
56
60
  type === "clear" ? `text-[${Colors["primary-base"]}]` : "text-white"
57
61
  }`,
58
62
  ]}
59
63
  >
60
- {children}
64
+ {children }
61
65
  </EText>
62
66
 
63
67
  {/* ICON RIGHT */}
@@ -67,15 +71,3 @@ export default function EButton({
67
71
  );
68
72
  }
69
73
 
70
- // style={[
71
- // tw` ${
72
- // withoutbackground ? "" : " shadow-md shadow-green-500 rounded-full"
73
- // } flex items-center justify-center ${
74
- // small ? "h-12 px-4" : "h-14 px-6 "
75
- // } ${secondary ? "bg-purple-500 shadow-none" : ""}`,
76
- // {
77
- // backgroundColor: withoutbackground
78
- // ? "transparent"
79
- // : Colors["primary-base"],
80
- // },
81
- // ]}
@@ -22,14 +22,14 @@ export default function EButtonIcon({
22
22
  return (
23
23
  <TouchableOpacity {...props}>
24
24
  <View
25
- style={tw`h-9 w-9 items-center justify-center bg-${backgroundColor} rounded-full ${
25
+ style={tw`h-9 w-9 items-center justify-center bg-${backgroundColor ? backgroundColor : ""} rounded-full ${
26
26
  shadow ? "shadow-xl shadow-slate-400" : ""
27
27
  }`}
28
28
  >
29
29
  {type === "close" ? (
30
- <XIcon size={20} style={tw`text-${iconColor}`} />
30
+ <XIcon size={20} style={tw`text-${iconColor? iconColor: ""}`} />
31
31
  ) : (
32
- <ArrowNarrowLeftIcon size={20} style={tw`text-${iconColor}`} />
32
+ <ArrowNarrowLeftIcon size={20} style={tw`text-${iconColor? iconColor : ""}`} />
33
33
  )}
34
34
  </View>
35
35
  </TouchableOpacity>
@@ -5,7 +5,15 @@ import tw from "../lib/tailwind";
5
5
  import { Colors } from "../utils/Color";
6
6
  import EText from "./EText";
7
7
 
8
- export default function EDateAndTimeCard() {
8
+ interface IProps{
9
+ date: string;
10
+ month: string;
11
+ day: string;
12
+ time: string;
13
+
14
+ }
15
+
16
+ export default function EDateAndTimeCard( {date, month, day, time}: IProps) {
9
17
  return (
10
18
  <View
11
19
  style={[tw`flex-row pb-4 border-b`, { borderBottomColor: Colors.border }]}
@@ -17,24 +25,23 @@ export default function EDateAndTimeCard() {
17
25
  ]}
18
26
  >
19
27
  <EText size="xl" style={tw`font-bold text-white -mb-1`}>
20
- {"12"}
28
+ {date}
21
29
  </EText>
22
30
  <EText size="xs" style={tw`font-bold text-white`}>
23
- {"DEC"}
31
+ {month}
24
32
  </EText>
25
33
  </View>
26
34
  <View style={tw`ml-3`}>
27
35
  <EText size="base" style={tw`font-bold text-black opacity-80 -mb-1`}>
28
- {"Wednesday"}
36
+ {day}
29
37
  </EText>
30
38
  <View style={tw`flex-row justify-center items-center mt-2`}>
31
39
  <ClockIcon size={16} style={tw`text-slate-400`} />
32
40
  <EText
33
41
  size="sm"
34
42
  style={tw`ml-1 text-slate-400 font-medium`}
35
- numberOfLines={2}
36
43
  >
37
- {"9:00am - 10:00am"}
44
+ {time}
38
45
  </EText>
39
46
  </View>
40
47
  </View>
@@ -21,7 +21,7 @@ export default function EIcon({
21
21
  <View style={[{height: size, width: size}, style]}>
22
22
  <Image
23
23
  source={source}
24
- style={[tw`w-full h-full tint-${tintColor} opacity-${opacity}`, {}]}
24
+ style={[tw`w-full h-full tint-${tintColor ? tintColor : "slate-900"} opacity-${opacity ? opacity : "100"}`, {}]}
25
25
  />
26
26
  </View>
27
27
  );
@@ -15,7 +15,6 @@ interface EInputProps extends TextInputProps {
15
15
  export default function EInput({
16
16
  label,
17
17
  size,
18
- style,
19
18
  hasBackground,
20
19
  icon,
21
20
  ...props
@@ -11,8 +11,6 @@ interface IProps {
11
11
 
12
12
  export default function EPillButton( { title, active }: IProps) {
13
13
  return (
14
- // <TouchableOpacity style={tw`px-4 py-3 mr-3 border rounded-lg border-slate-300
15
- // ${active ? "bg-purple-900 border-purple-900" : "border-slate-300"}`}>
16
14
  <TouchableOpacity style={[tw`px-4 py-3 mr-2 border rounded-lg border-slate-300`, {
17
15
  backgroundColor: active ? Colors['secondary-base'] : "transparent",
18
16
  borderColor: active ? Colors['secondary-base'] : Colors['border'],
@@ -12,6 +12,7 @@ export function ESegmentItem(props: any) {
12
12
  "py-1.5 px-4 rounded items-center w-1/2",
13
13
  isActive && "bg-white shadow-lg shadow-slate-500 "
14
14
  )}
15
+ onPress={onPress}
15
16
  >
16
17
  <View style={tw`items-center`}>
17
18
  <EText size="xs" style={tw`font-bold ${!isActive ? "text-white": ""}`}>{label}</EText>
@@ -28,7 +28,6 @@ export default function MenuItems( { title, icon, onPress }: IProps ) {
28
28
  <EText size="sm" style={[tw`font-medium `, {
29
29
  color: Colors["text-primary"]
30
30
  }]}>
31
- {/* {"Dashboard"} */}
32
31
  {
33
32
  title ?
34
33
  title
package/index.ts CHANGED
@@ -26,6 +26,7 @@ import ModalLayout from "./components/ModalLayout";
26
26
  import PageHeader from "./components/PageHeader";
27
27
  import PageHeaderSecondary from "./components/PageHeaderSecondary";
28
28
  import Spacer from "./components/Spacer";
29
+ import { Colors } from "./utils/Color";
29
30
 
30
31
  export {
31
32
  Avatar,
@@ -55,7 +56,7 @@ export {
55
56
  EPillButton,
56
57
  EProfile,
57
58
  SecondaryBaseLayout,
58
- Timer
59
-
59
+ Timer,
60
+ Colors
60
61
 
61
62
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fln-espranza",
3
- "version": "1.1.4",
3
+ "version": "1.1.6",
4
4
  "description": "All components used inside FLN Project of Espranza Innovations",
5
5
  "main": "index.ts",
6
6
  "scripts": {