fln-espranza 0.0.39 → 0.0.41

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.
@@ -6,15 +6,17 @@ import EText from "./EText";
6
6
  interface IProps {
7
7
  stat: string;
8
8
  label: string;
9
+ backgroundColor: string;
10
+ lightText?: boolean;
9
11
  }
10
12
 
11
- export default function EStat({ stat, label }: IProps) {
13
+ export default function EStat({ stat, label, backgroundColor, lightText }: IProps) {
12
14
  return (
13
- <View style={tw`items-center flex-1 mx-2`}>
14
- <EText size="xl" style={tw`font-bold text-cyan-400`}>
15
- {stat}
16
- </EText>
17
- <EText size="xs" style={tw`text-center text-white/60 font-medium`}>
15
+ <View style={tw`mr-1 mt-1 w-[140px] h-[110px] p-3 justify-between shadow-lg shadow-slate-400 rounded-tl-lg rounded-tr-[44px] bg-[${backgroundColor}]`}>
16
+ <EText style={tw`font-bold tracking-tight text-2xl ${lightText ? 'text-white' : 'text-slate-900'}`}>
17
+ {stat}
18
+ </EText>
19
+ <EText size="xs" style={tw`mb-1 ${lightText ? 'text-white/90' : 'text-slate-900/90'}`}>
18
20
  {label}
19
21
  </EText>
20
22
  </View>
@@ -28,6 +28,7 @@ import PageHeaderSecondary from "./PageHeaderSecondary";
28
28
  import Spacer from "./Spacer";
29
29
  import ProgressBar from "./EProgressBar";
30
30
  import Loader from "./Loader";
31
+ import EStat from "./EStat";
31
32
 
32
33
  export {
33
34
  Avatar,
@@ -39,6 +40,7 @@ export {
39
40
  EIcon,
40
41
  EInput,
41
42
  EText,
43
+ EStat,
42
44
  ModalLayout,
43
45
  PageHeader,
44
46
  PageHeaderSecondary,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fln-espranza",
3
- "version": "0.0.39",
3
+ "version": "0.0.41",
4
4
  "description": "All components used inside FLN Project of Espranza Innovations",
5
5
  "main": "index.ts",
6
6
  "scripts": {