fln-espranza 1.1.8 → 1.1.10

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.
@@ -7,11 +7,22 @@ interface AvatarProps {
7
7
  size?: "xxs" | "xs" | "sm" | "lg" | "5xl";
8
8
  source: string;
9
9
  nameFirstLetter?: string;
10
- bg?: string;
11
10
  textColor?: string;
12
11
  }
13
12
 
14
- export default function Avatar({ size, source, nameFirstLetter, bg, textColor }: AvatarProps) {
13
+ export default function Avatar({ size, source, nameFirstLetter, textColor }: AvatarProps) {
14
+ let colors = [
15
+ "#00BE9B",
16
+ "#0993BF",
17
+ "#64748B",
18
+ "#3F3D84",
19
+ "#0993BF",
20
+ "#525252",
21
+ "#EA580C",
22
+ "#2D3A5D",
23
+ ]
24
+
25
+ let color = colors[Math.floor(Math.random() * colors.length)]
15
26
  return (
16
27
  <View
17
28
  style={tw.style(
@@ -21,7 +32,7 @@ export default function Avatar({ size, source, nameFirstLetter, bg, textColor }:
21
32
  size === "xs" && "w-10 h-10",
22
33
  size === "xxs" && "w-7 h-7",
23
34
  size === "5xl" && "w-20 h-20",
24
- bg ? `bg-${bg}` : "bg-gray-200"
35
+ `bg-[${color}]`
25
36
  )}
26
37
  >
27
38
  {source ? <Image style={tw`w-full h-full `} source={source} /> :
package/index.ts CHANGED
@@ -27,6 +27,7 @@ import PageHeader from "./components/PageHeader";
27
27
  import PageHeaderSecondary from "./components/PageHeaderSecondary";
28
28
  import Spacer from "./components/Spacer";
29
29
  import { Colors } from "./utils/Color";
30
+ import ProgressBar from "./components/ProgressBar";
30
31
 
31
32
  export {
32
33
  Avatar,
@@ -57,6 +58,7 @@ export {
57
58
  EProfile,
58
59
  SecondaryBaseLayout,
59
60
  Timer,
61
+ ProgressBar,
60
62
  Colors
61
63
 
62
64
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fln-espranza",
3
- "version": "1.1.8",
3
+ "version": "1.1.10",
4
4
  "description": "All components used inside FLN Project of Espranza Innovations",
5
5
  "main": "index.ts",
6
6
  "scripts": {