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.
- package/components/EStat.tsx +8 -6
- package/components/index.tsx +2 -0
- 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>
|
package/components/index.tsx
CHANGED
|
@@ -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,
|