react-native-exp-fig 2.0.1 → 2.0.2

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.
Files changed (49) hide show
  1. package/lib/commonjs/components/box/index.js +4 -4
  2. package/lib/commonjs/components/card-loading/index.js +26 -24
  3. package/lib/commonjs/components/card-loading/index.js.map +1 -1
  4. package/lib/commonjs/components/header-profile/index.js +69 -63
  5. package/lib/commonjs/components/header-profile/index.js.map +1 -1
  6. package/lib/commonjs/components/history-details/index.js +4 -4
  7. package/lib/commonjs/components/user-profile/index.js +9 -10
  8. package/lib/commonjs/components/user-profile/index.js.map +1 -1
  9. package/lib/commonjs/index.js +3 -3
  10. package/lib/commonjs/index.js.map +1 -1
  11. package/lib/commonjs/stories/header-profile/header-profile.stories.js +7 -17
  12. package/lib/commonjs/stories/header-profile/header-profile.stories.js.map +1 -1
  13. package/lib/commonjs/styles/theme/theme.js +5 -5
  14. package/lib/commonjs/utils/status-color/return-color.js +2 -2
  15. package/lib/commonjs/utils/status-color/return-color.js.map +1 -1
  16. package/lib/module/components/box/index.js +4 -4
  17. package/lib/module/components/card-loading/index.js +27 -25
  18. package/lib/module/components/card-loading/index.js.map +1 -1
  19. package/lib/module/components/header-profile/index.js +68 -62
  20. package/lib/module/components/header-profile/index.js.map +1 -1
  21. package/lib/module/components/history-details/index.js +4 -4
  22. package/lib/module/components/user-profile/index.js +9 -10
  23. package/lib/module/components/user-profile/index.js.map +1 -1
  24. package/lib/module/index.js +3 -3
  25. package/lib/module/index.js.map +1 -1
  26. package/lib/module/stories/header-profile/header-profile.stories.js +5 -16
  27. package/lib/module/stories/header-profile/header-profile.stories.js.map +1 -1
  28. package/lib/module/styles/theme/theme.js +5 -5
  29. package/lib/module/utils/status-color/return-color.js +2 -2
  30. package/lib/module/utils/status-color/return-color.js.map +1 -1
  31. package/lib/typescript/src/components/card-loading/index.d.ts.map +1 -1
  32. package/lib/typescript/src/components/header-profile/index.d.ts +66 -5
  33. package/lib/typescript/src/components/header-profile/index.d.ts.map +1 -1
  34. package/lib/typescript/src/components/user-profile/index.d.ts.map +1 -1
  35. package/lib/typescript/src/index.d.ts +1 -1
  36. package/lib/typescript/src/index.d.ts.map +1 -1
  37. package/lib/typescript/src/stories/header-profile/header-profile.stories.d.ts +1 -1
  38. package/lib/typescript/src/stories/header-profile/header-profile.stories.d.ts.map +1 -1
  39. package/package.json +1 -1
  40. package/src/components/box/index.tsx +49 -49
  41. package/src/components/card-loading/index.tsx +294 -290
  42. package/src/components/header-profile/index.tsx +148 -132
  43. package/src/components/header-profile/interface.d.ts +145 -57
  44. package/src/components/history-details/index.tsx +99 -99
  45. package/src/components/user-profile/index.tsx +206 -204
  46. package/src/index.ts +48 -48
  47. package/src/stories/header-profile/header-profile.stories.tsx +92 -103
  48. package/src/styles/theme/theme.ts +193 -193
  49. package/src/utils/status-color/return-color.ts +34 -34
@@ -1,34 +1,34 @@
1
- import { theme } from "../../styles/theme/theme";
2
-
3
- export type StatusType = "Andamento" | "Cancelado" | "Pendente" | "Concluido";
4
-
5
- function getBorderColor(status: string) {
6
- const borderColors = {
7
- Cancelado: theme.colors.red[900],
8
- Pendente: theme.colors.orange[450],
9
- };
10
- return borderColors[status as keyof typeof borderColors];
11
- }
12
- function getStatusColor(status: StatusType): string {
13
- const statusColors: Record<StatusType, string> = {
14
- Concluido: theme.colors.green[250],
15
- Cancelado: theme.colors.red[900],
16
- Pendente: theme.colors.yellow[75],
17
- Andamento: theme.colors.yellow[50],
18
- };
19
-
20
- return statusColors[status];
21
- }
22
-
23
- function getStatusTextColor(status: StatusType): string {
24
- const statusColors: Record<StatusType, string> = {
25
- Concluido: theme.colors.neutral[25],
26
- Cancelado: theme.colors.neutral[25],
27
- Pendente: theme.colors.neutral[50],
28
- Andamento: theme.colors.neutral[50],
29
- };
30
-
31
- return statusColors[status];
32
- }
33
-
34
- export { getStatusColor, getBorderColor, getStatusTextColor };
1
+ import { theme } from "../../styles/theme/theme";
2
+
3
+ export type StatusType = "Andamento" | "Cancelado" | "Pendente" | "Concluido";
4
+
5
+ function getBorderColor(status: string) {
6
+ const borderColors = {
7
+ Cancelado: theme.colors.red[900],
8
+ Pendente: theme.colors.orange[450],
9
+ };
10
+ return borderColors[status as keyof typeof borderColors];
11
+ }
12
+ function getStatusColor(status: StatusType): string {
13
+ const statusColors: Record<StatusType, string> = {
14
+ Concluido: theme.colors.green[250],
15
+ Andamento: theme.colors.green[500],
16
+ Cancelado: theme.colors.red[900],
17
+ Pendente: theme.colors.yellow[75],
18
+ };
19
+
20
+ return statusColors[status];
21
+ }
22
+
23
+ function getStatusTextColor(status: StatusType): string {
24
+ const statusColors: Record<StatusType, string> = {
25
+ Concluido: theme.colors.neutral[25],
26
+ Cancelado: theme.colors.neutral[25],
27
+ Pendente: theme.colors.neutral[50],
28
+ Andamento: theme.colors.neutral[50],
29
+ };
30
+
31
+ return statusColors[status];
32
+ }
33
+
34
+ export { getStatusColor, getBorderColor, getStatusTextColor };