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.
- package/lib/commonjs/components/box/index.js +4 -4
- package/lib/commonjs/components/card-loading/index.js +26 -24
- package/lib/commonjs/components/card-loading/index.js.map +1 -1
- package/lib/commonjs/components/header-profile/index.js +69 -63
- package/lib/commonjs/components/header-profile/index.js.map +1 -1
- package/lib/commonjs/components/history-details/index.js +4 -4
- package/lib/commonjs/components/user-profile/index.js +9 -10
- package/lib/commonjs/components/user-profile/index.js.map +1 -1
- package/lib/commonjs/index.js +3 -3
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/stories/header-profile/header-profile.stories.js +7 -17
- package/lib/commonjs/stories/header-profile/header-profile.stories.js.map +1 -1
- package/lib/commonjs/styles/theme/theme.js +5 -5
- package/lib/commonjs/utils/status-color/return-color.js +2 -2
- package/lib/commonjs/utils/status-color/return-color.js.map +1 -1
- package/lib/module/components/box/index.js +4 -4
- package/lib/module/components/card-loading/index.js +27 -25
- package/lib/module/components/card-loading/index.js.map +1 -1
- package/lib/module/components/header-profile/index.js +68 -62
- package/lib/module/components/header-profile/index.js.map +1 -1
- package/lib/module/components/history-details/index.js +4 -4
- package/lib/module/components/user-profile/index.js +9 -10
- package/lib/module/components/user-profile/index.js.map +1 -1
- package/lib/module/index.js +3 -3
- package/lib/module/index.js.map +1 -1
- package/lib/module/stories/header-profile/header-profile.stories.js +5 -16
- package/lib/module/stories/header-profile/header-profile.stories.js.map +1 -1
- package/lib/module/styles/theme/theme.js +5 -5
- package/lib/module/utils/status-color/return-color.js +2 -2
- package/lib/module/utils/status-color/return-color.js.map +1 -1
- package/lib/typescript/src/components/card-loading/index.d.ts.map +1 -1
- package/lib/typescript/src/components/header-profile/index.d.ts +66 -5
- package/lib/typescript/src/components/header-profile/index.d.ts.map +1 -1
- package/lib/typescript/src/components/user-profile/index.d.ts.map +1 -1
- package/lib/typescript/src/index.d.ts +1 -1
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/lib/typescript/src/stories/header-profile/header-profile.stories.d.ts +1 -1
- package/lib/typescript/src/stories/header-profile/header-profile.stories.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/components/box/index.tsx +49 -49
- package/src/components/card-loading/index.tsx +294 -290
- package/src/components/header-profile/index.tsx +148 -132
- package/src/components/header-profile/interface.d.ts +145 -57
- package/src/components/history-details/index.tsx +99 -99
- package/src/components/user-profile/index.tsx +206 -204
- package/src/index.ts +48 -48
- package/src/stories/header-profile/header-profile.stories.tsx +92 -103
- package/src/styles/theme/theme.ts +193 -193
- 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
|
-
|
|
16
|
-
|
|
17
|
-
|
|
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 };
|