fln-espranza 0.0.40 → 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.
- package/components/EStat.tsx +8 -6
- package/package.json +1 -1
package/components/EStat.tsx
CHANGED
|
@@ -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`
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
<EText size="xs" style={tw`
|
|
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>
|