react-native-exp-fig 0.1.14 → 0.1.16
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/common/icons-svg/agent/index.js +2 -2
- package/lib/commonjs/common/icons-svg/agent/index.js.map +1 -1
- package/lib/commonjs/common/icons-svg/bed/index.js +4 -4
- package/lib/commonjs/common/icons-svg/bed/index.js.map +1 -1
- package/lib/commonjs/common/icons-svg/car/index.js +4 -4
- package/lib/commonjs/common/icons-svg/car/index.js.map +1 -1
- package/lib/commonjs/common/icons-svg/check-outline/index.js +6 -6
- package/lib/commonjs/common/icons-svg/check-outline/index.js.map +1 -1
- package/lib/commonjs/common/icons-svg/coffee/index.js +4 -4
- package/lib/commonjs/common/icons-svg/coffee/index.js.map +1 -1
- package/lib/commonjs/common/icons-svg/constants/index.js +2 -1
- package/lib/commonjs/common/icons-svg/constants/index.js.map +1 -1
- package/lib/commonjs/common/icons-svg/hourglass/index.js +36 -0
- package/lib/commonjs/common/icons-svg/hourglass/index.js.map +1 -0
- package/lib/commonjs/common/icons-svg/index.js +8 -1
- package/lib/commonjs/common/icons-svg/index.js.map +1 -1
- package/lib/commonjs/common/icons-svg/pencil/index.js +4 -4
- package/lib/commonjs/common/icons-svg/pencil/index.js.map +1 -1
- package/lib/commonjs/common/icons-svg/refresh-ccw-dot/index.js +2 -2
- package/lib/commonjs/common/icons-svg/refresh-ccw-dot/index.js.map +1 -1
- package/lib/commonjs/common/icons-svg/truck-activity/index.js +4 -4
- package/lib/commonjs/common/icons-svg/truck-activity/index.js.map +1 -1
- package/lib/commonjs/components/activities-daily/index.js +4 -4
- package/lib/commonjs/components/activities-daily/index.js.map +1 -1
- package/lib/commonjs/components/activities-daily/interface.d.js.map +1 -1
- package/lib/commonjs/components/activities-progress/index.js +4 -4
- package/lib/commonjs/components/activities-progress/index.js.map +1 -1
- package/lib/commonjs/components/activities-progress/interface.d.js.map +1 -1
- package/lib/commonjs/components/avatar-profile/index.js.map +1 -1
- package/lib/commonjs/components/avatar-profile/interface.d.js.map +1 -1
- package/lib/commonjs/components/button/styles.js +1 -1
- package/lib/commonjs/components/button/styles.js.map +1 -1
- package/lib/commonjs/components/card-history/index.js +62 -12
- package/lib/commonjs/components/card-history/index.js.map +1 -1
- package/lib/commonjs/components/card-history/interface.d.js.map +1 -1
- package/lib/commonjs/components/card-loading/index.js +21 -10
- package/lib/commonjs/components/card-loading/index.js.map +1 -1
- package/lib/commonjs/components/card-work-session/index.js +4 -4
- package/lib/commonjs/components/card-work-session/index.js.map +1 -1
- package/lib/commonjs/components/check-box/index.js +6 -6
- package/lib/commonjs/components/check-box/index.js.map +1 -1
- package/lib/commonjs/components/check-box/interface.d.js.map +1 -1
- package/lib/commonjs/components/coil/index.js +4 -4
- package/lib/commonjs/components/coil/index.js.map +1 -1
- package/lib/commonjs/components/coil/interface.d.js.map +1 -1
- package/lib/commonjs/components/filter-date-selector/index.js +7 -7
- package/lib/commonjs/components/filter-date-selector/index.js.map +1 -1
- package/lib/commonjs/components/history-details/index.js +1 -2
- package/lib/commonjs/components/history-details/index.js.map +1 -1
- package/lib/commonjs/components/history-details/interface.d.js.map +1 -1
- package/lib/commonjs/components/image-capture-with-remove/index.js +11 -10
- package/lib/commonjs/components/image-capture-with-remove/index.js.map +1 -1
- package/lib/commonjs/components/image-capture-with-remove/interface.d.js.map +1 -1
- package/lib/commonjs/components/loading-progress/index.js +3 -1
- package/lib/commonjs/components/loading-progress/index.js.map +1 -1
- package/lib/commonjs/components/modal-activities/index.js +155 -0
- package/lib/commonjs/components/modal-activities/index.js.map +1 -0
- package/lib/commonjs/components/modal-activities/interface.d.js +6 -0
- package/lib/commonjs/components/modal-activities/interface.d.js.map +1 -0
- package/lib/commonjs/components/notification-loading/index.js +9 -2
- package/lib/commonjs/components/notification-loading/index.js.map +1 -1
- package/lib/commonjs/components/notification-loading/interface.d.js.map +1 -1
- package/lib/commonjs/components/profile-menu-option/index.js.map +1 -1
- package/lib/commonjs/components/profile-menu-option/interface.d.js.map +1 -1
- package/lib/commonjs/components/step-indicator/index.js +6 -6
- package/lib/commonjs/components/step-indicator/index.js.map +1 -1
- package/lib/commonjs/components/step-indicator/interface.d.js.map +1 -1
- package/lib/commonjs/components/step-indicator/styles.js +9 -8
- package/lib/commonjs/components/step-indicator/styles.js.map +1 -1
- package/lib/commonjs/components/user-profile/index.js +6 -6
- package/lib/commonjs/components/user-profile/index.js.map +1 -1
- package/lib/commonjs/index.js +7 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/stories/activities-daily/activities-daily.stories.js.map +1 -1
- package/lib/commonjs/stories/activities-progress/activities-progress.stories.js.map +1 -1
- package/lib/commonjs/stories/avatar-profile/avatar-profile.stories.js.map +1 -1
- package/lib/commonjs/stories/card-loading/card-loading.stories.js.map +1 -1
- package/lib/commonjs/stories/check-box/check-box.stories.js.map +1 -1
- package/lib/commonjs/stories/coil/coil.stories.js.map +1 -1
- package/lib/commonjs/stories/filter-date-selector/filter-date-selector.stories.js.map +1 -1
- package/lib/commonjs/stories/history-details/history-details.stories.js.map +1 -1
- package/lib/commonjs/stories/image-capture-with-remove/image-capture-with-remove.stories.js.map +1 -1
- package/lib/commonjs/stories/modal-activities/modal-activities.stories.js +47 -0
- package/lib/commonjs/stories/modal-activities/modal-activities.stories.js.map +1 -0
- package/lib/commonjs/stories/notification-loading/notification-loading.stories.js.map +1 -1
- package/lib/commonjs/stories/profile-menu-option/profile-menu-option.stories.js.map +1 -1
- package/lib/commonjs/stories/step-indicator/step-indicator.stories.js.map +1 -1
- package/lib/commonjs/styles/global/interface.d.js.map +1 -1
- package/lib/commonjs/styles/theme/theme.js +6 -5
- package/lib/commonjs/styles/theme/theme.js.map +1 -1
- package/lib/commonjs/utils/format-data/index.js +11 -11
- package/lib/commonjs/utils/format-data/index.js.map +1 -1
- package/lib/commonjs/utils/status-color/return-color.js +12 -2
- package/lib/commonjs/utils/status-color/return-color.js.map +1 -1
- package/lib/module/common/icons-svg/agent/index.js +2 -2
- package/lib/module/common/icons-svg/agent/index.js.map +1 -1
- package/lib/module/common/icons-svg/bed/index.js +4 -4
- package/lib/module/common/icons-svg/bed/index.js.map +1 -1
- package/lib/module/common/icons-svg/car/index.js +4 -4
- package/lib/module/common/icons-svg/car/index.js.map +1 -1
- package/lib/module/common/icons-svg/check-outline/index.js +6 -6
- package/lib/module/common/icons-svg/check-outline/index.js.map +1 -1
- package/lib/module/common/icons-svg/coffee/index.js +4 -4
- package/lib/module/common/icons-svg/coffee/index.js.map +1 -1
- package/lib/module/common/icons-svg/constants/index.js +2 -1
- package/lib/module/common/icons-svg/constants/index.js.map +1 -1
- package/lib/module/common/icons-svg/hourglass/index.js +28 -0
- package/lib/module/common/icons-svg/hourglass/index.js.map +1 -0
- package/lib/module/common/icons-svg/index.js +11 -4
- package/lib/module/common/icons-svg/index.js.map +1 -1
- package/lib/module/common/icons-svg/pencil/index.js +4 -4
- package/lib/module/common/icons-svg/pencil/index.js.map +1 -1
- package/lib/module/common/icons-svg/refresh-ccw-dot/index.js +2 -2
- package/lib/module/common/icons-svg/refresh-ccw-dot/index.js.map +1 -1
- package/lib/module/common/icons-svg/truck-activity/index.js +4 -4
- package/lib/module/common/icons-svg/truck-activity/index.js.map +1 -1
- package/lib/module/components/activities-daily/index.js +4 -4
- package/lib/module/components/activities-daily/index.js.map +1 -1
- package/lib/module/components/activities-daily/interface.d.js.map +1 -1
- package/lib/module/components/activities-progress/index.js +4 -4
- package/lib/module/components/activities-progress/index.js.map +1 -1
- package/lib/module/components/activities-progress/interface.d.js.map +1 -1
- package/lib/module/components/avatar-profile/index.js.map +1 -1
- package/lib/module/components/avatar-profile/interface.d.js.map +1 -1
- package/lib/module/components/button/styles.js +1 -1
- package/lib/module/components/button/styles.js.map +1 -1
- package/lib/module/components/card-history/index.js +62 -12
- package/lib/module/components/card-history/index.js.map +1 -1
- package/lib/module/components/card-history/interface.d.js.map +1 -1
- package/lib/module/components/card-loading/index.js +22 -11
- package/lib/module/components/card-loading/index.js.map +1 -1
- package/lib/module/components/card-work-session/index.js +4 -4
- package/lib/module/components/card-work-session/index.js.map +1 -1
- package/lib/module/components/check-box/index.js +6 -6
- package/lib/module/components/check-box/index.js.map +1 -1
- package/lib/module/components/check-box/interface.d.js.map +1 -1
- package/lib/module/components/coil/index.js +4 -4
- package/lib/module/components/coil/index.js.map +1 -1
- package/lib/module/components/coil/interface.d.js.map +1 -1
- package/lib/module/components/filter-date-selector/index.js +7 -7
- package/lib/module/components/filter-date-selector/index.js.map +1 -1
- package/lib/module/components/history-details/index.js +1 -2
- package/lib/module/components/history-details/index.js.map +1 -1
- package/lib/module/components/history-details/interface.d.js.map +1 -1
- package/lib/module/components/image-capture-with-remove/index.js +11 -10
- package/lib/module/components/image-capture-with-remove/index.js.map +1 -1
- package/lib/module/components/image-capture-with-remove/interface.d.js.map +1 -1
- package/lib/module/components/loading-progress/index.js +3 -1
- package/lib/module/components/loading-progress/index.js.map +1 -1
- package/lib/module/components/modal-activities/index.js +148 -0
- package/lib/module/components/modal-activities/index.js.map +1 -0
- package/lib/module/components/modal-activities/interface.d.js +2 -0
- package/lib/module/components/modal-activities/interface.d.js.map +1 -0
- package/lib/module/components/notification-loading/index.js +9 -2
- package/lib/module/components/notification-loading/index.js.map +1 -1
- package/lib/module/components/notification-loading/interface.d.js.map +1 -1
- package/lib/module/components/profile-menu-option/index.js.map +1 -1
- package/lib/module/components/profile-menu-option/interface.d.js.map +1 -1
- package/lib/module/components/step-indicator/index.js +6 -6
- package/lib/module/components/step-indicator/index.js.map +1 -1
- package/lib/module/components/step-indicator/interface.d.js.map +1 -1
- package/lib/module/components/step-indicator/styles.js +9 -8
- package/lib/module/components/step-indicator/styles.js.map +1 -1
- package/lib/module/components/user-profile/index.js +6 -6
- package/lib/module/components/user-profile/index.js.map +1 -1
- package/lib/module/index.js +1 -0
- package/lib/module/index.js.map +1 -1
- package/lib/module/stories/activities-daily/activities-daily.stories.js.map +1 -1
- package/lib/module/stories/activities-progress/activities-progress.stories.js.map +1 -1
- package/lib/module/stories/avatar-profile/avatar-profile.stories.js.map +1 -1
- package/lib/module/stories/card-loading/card-loading.stories.js.map +1 -1
- package/lib/module/stories/check-box/check-box.stories.js.map +1 -1
- package/lib/module/stories/coil/coil.stories.js.map +1 -1
- package/lib/module/stories/filter-date-selector/filter-date-selector.stories.js.map +1 -1
- package/lib/module/stories/history-details/history-details.stories.js.map +1 -1
- package/lib/module/stories/image-capture-with-remove/image-capture-with-remove.stories.js.map +1 -1
- package/lib/module/stories/modal-activities/modal-activities.stories.js +41 -0
- package/lib/module/stories/modal-activities/modal-activities.stories.js.map +1 -0
- package/lib/module/stories/notification-loading/notification-loading.stories.js.map +1 -1
- package/lib/module/stories/profile-menu-option/profile-menu-option.stories.js.map +1 -1
- package/lib/module/stories/step-indicator/step-indicator.stories.js.map +1 -1
- package/lib/module/styles/global/interface.d.js.map +1 -1
- package/lib/module/styles/theme/theme.js +6 -5
- package/lib/module/styles/theme/theme.js.map +1 -1
- package/lib/module/utils/format-data/index.js +11 -11
- package/lib/module/utils/format-data/index.js.map +1 -1
- package/lib/module/utils/status-color/return-color.js +12 -3
- package/lib/module/utils/status-color/return-color.js.map +1 -1
- package/lib/typescript/src/common/icons-svg/constants/index.d.ts +1 -0
- package/lib/typescript/src/common/icons-svg/hourglass/index.d.ts +10 -0
- package/lib/typescript/src/components/button/styles.d.ts +2 -3
- package/lib/typescript/src/components/modal-activities/index.d.ts +6 -0
- package/lib/typescript/src/components/step-indicator/styles.d.ts +1 -0
- package/lib/typescript/src/index.d.ts +1 -0
- package/lib/typescript/src/stories/modal-activities/modal-activities.stories.d.ts +6 -0
- package/lib/typescript/src/styles/global/theme-provider.d.ts +1 -0
- package/lib/typescript/src/styles/theme/theme.d.ts +1 -0
- package/lib/typescript/src/utils/status-color/return-color.d.ts +2 -1
- package/package.json +221 -221
- package/src/common/icons-svg/agent/index.tsx +40 -40
- package/src/common/icons-svg/bed/index.tsx +41 -41
- package/src/common/icons-svg/car/index.tsx +29 -29
- package/src/common/icons-svg/check-outline/index.tsx +42 -42
- package/src/common/icons-svg/coffee/index.tsx +43 -43
- package/src/common/icons-svg/constants/index.ts +1 -0
- package/src/common/icons-svg/hourglass/index.tsx +28 -0
- package/src/common/icons-svg/index.tsx +8 -4
- package/src/common/icons-svg/pencil/index.tsx +32 -32
- package/src/common/icons-svg/refresh-ccw-dot/index.tsx +32 -32
- package/src/common/icons-svg/truck-activity/index.tsx +29 -29
- package/src/components/activities-daily/index.tsx +116 -116
- package/src/components/activities-daily/interface.d.ts +22 -22
- package/src/components/activities-progress/index.tsx +162 -162
- package/src/components/activities-progress/interface.d.ts +41 -41
- package/src/components/avatar-profile/index.tsx +95 -95
- package/src/components/avatar-profile/interface.d.ts +39 -39
- package/src/components/button/styles.ts +34 -34
- package/src/components/card-history/index.tsx +67 -5
- package/src/components/card-history/interface.d.ts +34 -28
- package/src/components/card-loading/index.tsx +16 -4
- package/src/components/card-work-session/index.tsx +187 -187
- package/src/components/check-box/index.tsx +94 -94
- package/src/components/check-box/interface.d.ts +31 -31
- package/src/components/coil/index.tsx +103 -103
- package/src/components/coil/interface.d.ts +26 -26
- package/src/components/filter-date-selector/index.tsx +101 -101
- package/src/components/history-details/index.tsx +1 -2
- package/src/components/history-details/interface.d.ts +18 -18
- package/src/components/image-capture-with-remove/index.tsx +11 -8
- package/src/components/image-capture-with-remove/interface.d.ts +6 -3
- package/src/components/loading-progress/index.tsx +93 -91
- package/src/components/modal-activities/index.tsx +139 -0
- package/src/components/modal-activities/interface.d.ts +21 -0
- package/src/components/notification-loading/index.tsx +9 -2
- package/src/components/notification-loading/interface.d.ts +35 -35
- package/src/components/profile-menu-option/index.tsx +65 -65
- package/src/components/profile-menu-option/interface.d.ts +42 -42
- package/src/components/step-indicator/index.tsx +164 -164
- package/src/components/step-indicator/interface.d.ts +34 -34
- package/src/components/step-indicator/styles.ts +68 -67
- package/src/components/user-profile/index.tsx +204 -204
- package/src/index.ts +1 -0
- package/src/stories/activities-daily/activities-daily.stories.tsx +40 -40
- package/src/stories/activities-progress/activities-progress.stories.tsx +61 -61
- package/src/stories/avatar-profile/avatar-profile.stories.tsx +32 -32
- package/src/stories/card-history/card-history.stories.tsx +50 -50
- package/src/stories/card-loading/card-loading.stories.tsx +85 -85
- package/src/stories/check-box/check-box.stories.tsx +81 -81
- package/src/stories/coil/coil.stories.tsx +98 -98
- package/src/stories/filter-date-selector/filter-date-selector.stories.tsx +122 -122
- package/src/stories/history-details/history-details.stories.tsx +36 -36
- package/src/stories/image-capture-with-remove/image-capture-with-remove.stories.tsx +57 -57
- package/src/stories/modal-activities/modal-activities.stories.tsx +46 -0
- package/src/stories/notification-loading/notification-loading.stories.tsx +88 -88
- package/src/stories/profile-menu-option/profile-menu-option.stories.tsx +70 -70
- package/src/stories/step-indicator/step-indicator.stories.tsx +124 -124
- package/src/styles/global/interface.d.ts +146 -141
- package/src/styles/theme/theme.ts +1 -0
- package/src/utils/format-data/index.ts +66 -66
- package/src/utils/status-color/return-color.ts +14 -3
|
@@ -1,91 +1,93 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* IMPORTS
|
|
3
|
-
*/
|
|
4
|
-
import React from "react";
|
|
5
|
-
|
|
6
|
-
// component
|
|
7
|
-
import { Box } from "../box";
|
|
8
|
-
import { Typography } from "../typography";
|
|
9
|
-
import { Button } from "../button";
|
|
10
|
-
|
|
11
|
-
// typings
|
|
12
|
-
import { ILoadingProgress } from "./interface";
|
|
13
|
-
|
|
14
|
-
// styles
|
|
15
|
-
import { theme } from "../../styles/theme/theme";
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
*
|
|
19
|
-
* Componente LoadingProgress para a interação do usuário com ui.
|
|
20
|
-
*/
|
|
21
|
-
const LoadingProgress: React.FC<ILoadingProgress> = ({
|
|
22
|
-
textLoading,
|
|
23
|
-
handleClick,
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
1
|
+
/**
|
|
2
|
+
* IMPORTS
|
|
3
|
+
*/
|
|
4
|
+
import React from "react";
|
|
5
|
+
|
|
6
|
+
// component
|
|
7
|
+
import { Box } from "../box";
|
|
8
|
+
import { Typography } from "../typography";
|
|
9
|
+
import { Button } from "../button";
|
|
10
|
+
|
|
11
|
+
// typings
|
|
12
|
+
import { ILoadingProgress } from "./interface";
|
|
13
|
+
|
|
14
|
+
// styles
|
|
15
|
+
import { theme } from "../../styles/theme/theme";
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* Componente LoadingProgress para a interação do usuário com ui.
|
|
20
|
+
*/
|
|
21
|
+
const LoadingProgress: React.FC<ILoadingProgress> = ({
|
|
22
|
+
textLoading,
|
|
23
|
+
handleClick,
|
|
24
|
+
backgroundColor,
|
|
25
|
+
}: ILoadingProgress) => {
|
|
26
|
+
const truncatedText =
|
|
27
|
+
textLoading.length > 15 ? textLoading.substring(0, 13) + "..." : textLoading;
|
|
28
|
+
return (
|
|
29
|
+
<Box>
|
|
30
|
+
<Typography
|
|
31
|
+
text="Carregamento em Andamento"
|
|
32
|
+
size={theme.fontSizes.lg}
|
|
33
|
+
fontFamily={theme.fonts.inter_medium_500}
|
|
34
|
+
color={theme.colors.gray[800]}
|
|
35
|
+
/>
|
|
36
|
+
<Box
|
|
37
|
+
paddingStyle={{ padding: theme.paddings["2xs"] }}
|
|
38
|
+
backgroundColor={backgroundColor ?? theme.colors.neutral[25]}
|
|
39
|
+
borderStyled={{
|
|
40
|
+
borderWidth: theme.borderWidths.thin,
|
|
41
|
+
borderRadius: theme.borderWidths.thick_large,
|
|
42
|
+
borderStyle: "dashed",
|
|
43
|
+
borderColor: theme.colors.neutral[200],
|
|
44
|
+
}}
|
|
45
|
+
marginStyle={{ marginTop: theme.margins["2xs"], marginBottom: theme.margins["2xs"] }}
|
|
46
|
+
>
|
|
47
|
+
<Box flexStyle={{ flexDirection: "row", textAlign: "center" }}>
|
|
48
|
+
<Typography
|
|
49
|
+
text={"N° Carregamento: "}
|
|
50
|
+
size={theme.fontSizes.md}
|
|
51
|
+
fontFamily={theme.fonts.inter_bold_700}
|
|
52
|
+
color={theme.colors.blue[400]}
|
|
53
|
+
/>
|
|
54
|
+
|
|
55
|
+
<Typography
|
|
56
|
+
text={truncatedText}
|
|
57
|
+
size={theme.fontSizes.md}
|
|
58
|
+
fontFamily={theme.fonts.inter_medium_500}
|
|
59
|
+
color={theme.colors.gray[800]}
|
|
60
|
+
letterSpacing={"regular"}
|
|
61
|
+
/>
|
|
62
|
+
</Box>
|
|
63
|
+
<Box
|
|
64
|
+
flexStyle={{ alignItems: "center", justifyContent: "center", flexDirection: "row" }}
|
|
65
|
+
marginStyle={{ marginTop: theme.margins["2xs"] }}
|
|
66
|
+
>
|
|
67
|
+
<Button
|
|
68
|
+
title={"Visualizar"}
|
|
69
|
+
onPress={handleClick}
|
|
70
|
+
backgroundColor={theme.colors.blue[400]}
|
|
71
|
+
isLoading={false}
|
|
72
|
+
height={32}
|
|
73
|
+
width={"75%"}
|
|
74
|
+
buttonTextStyle={{
|
|
75
|
+
color: theme.colors.neutral[25],
|
|
76
|
+
fontFamily: theme.fonts.inter_medium_500,
|
|
77
|
+
fontSize: theme.fontSizes.lg,
|
|
78
|
+
}}
|
|
79
|
+
flexStyle={{ alignItems: "center", justifyContent: "center", flexDirection: "row" }}
|
|
80
|
+
borderStyled={{
|
|
81
|
+
borderRadius: theme.borderWidths.thick_medium,
|
|
82
|
+
}}
|
|
83
|
+
/>
|
|
84
|
+
</Box>
|
|
85
|
+
</Box>
|
|
86
|
+
</Box>
|
|
87
|
+
);
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* EXPORTS
|
|
92
|
+
*/
|
|
93
|
+
export { LoadingProgress };
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* IMPORTS
|
|
3
|
+
*/
|
|
4
|
+
import React from "react";
|
|
5
|
+
import { Modal, TouchableOpacity, FlatList } from "react-native";
|
|
6
|
+
|
|
7
|
+
// components
|
|
8
|
+
|
|
9
|
+
import { Box } from "../box";
|
|
10
|
+
|
|
11
|
+
// commons / icons
|
|
12
|
+
import { Icons } from "../../common/icons-svg";
|
|
13
|
+
|
|
14
|
+
// styles
|
|
15
|
+
import { theme } from "../../styles/theme/theme";
|
|
16
|
+
import { Typography } from "../typography";
|
|
17
|
+
import { Button } from "../button";
|
|
18
|
+
|
|
19
|
+
//typing
|
|
20
|
+
import { IModalActivities } from "./interface";
|
|
21
|
+
|
|
22
|
+
export const ModalActivities: React.FC<IModalActivities> = ({
|
|
23
|
+
onClose,
|
|
24
|
+
handleActivity,
|
|
25
|
+
isLoading,
|
|
26
|
+
}) => {
|
|
27
|
+
const activities = [
|
|
28
|
+
{ id: 1, name: "Operação com Veículo", icon: "STEERING_WHEEL" },
|
|
29
|
+
{ id: 2, name: "Em Carga", icon: "HOURGLASS" },
|
|
30
|
+
{ id: 3, name: "Em Descarga", icon: "HOURGLASS" },
|
|
31
|
+
{ id: 4, name: "Disposição com Veículo Parado", icon: "TRUCK_ACTIVITY" },
|
|
32
|
+
];
|
|
33
|
+
|
|
34
|
+
return (
|
|
35
|
+
<Modal animationType="fade" transparent={true} onRequestClose={onClose}>
|
|
36
|
+
<Box
|
|
37
|
+
backgroundColor={"rgba(0, 0, 0, 0.7)"}
|
|
38
|
+
flexStyle={{ flex: 1, justifyContent: "center", alignItems: "center" }}
|
|
39
|
+
>
|
|
40
|
+
<Box
|
|
41
|
+
height={320}
|
|
42
|
+
width={"92%"}
|
|
43
|
+
backgroundColor={theme.colors.neutral[25]}
|
|
44
|
+
borderStyled={{
|
|
45
|
+
borderColor: theme.colors.blue[500],
|
|
46
|
+
borderWidth: theme.borderWidths.thick,
|
|
47
|
+
borderRadius: theme.borderWidths.thick_medium,
|
|
48
|
+
}}
|
|
49
|
+
paddingStyle={{
|
|
50
|
+
padding: theme.paddings.md,
|
|
51
|
+
}}
|
|
52
|
+
>
|
|
53
|
+
<Box
|
|
54
|
+
width={"100%"}
|
|
55
|
+
flexStyle={{
|
|
56
|
+
flexDirection: "row",
|
|
57
|
+
justifyContent: "space-between",
|
|
58
|
+
alignItems: "center",
|
|
59
|
+
}}
|
|
60
|
+
>
|
|
61
|
+
<Typography
|
|
62
|
+
text="Atividades"
|
|
63
|
+
size={theme.fontSizes.md}
|
|
64
|
+
color={theme.colors.blue[500]}
|
|
65
|
+
fontFamily={theme.fonts.inter_bold_700}
|
|
66
|
+
// fontWeight={"700"}
|
|
67
|
+
lineHeight={theme.fontSizes.xl}
|
|
68
|
+
/>
|
|
69
|
+
|
|
70
|
+
<TouchableOpacity activeOpacity={0.7} onPress={onClose} style={{}}>
|
|
71
|
+
<Icons color={theme.colors.blue[500]} icon="CLOSED" />
|
|
72
|
+
</TouchableOpacity>
|
|
73
|
+
</Box>
|
|
74
|
+
{/* as atividades */}
|
|
75
|
+
<Box marginStyle={{ marginTop: theme.margins["2xl"] }}>
|
|
76
|
+
<FlatList
|
|
77
|
+
data={activities}
|
|
78
|
+
numColumns={3}
|
|
79
|
+
keyExtractor={(item) => item.id.toString()}
|
|
80
|
+
scrollEnabled={false}
|
|
81
|
+
renderItem={({ item }) => (
|
|
82
|
+
<TouchableOpacity
|
|
83
|
+
style={{
|
|
84
|
+
alignItems: "center",
|
|
85
|
+
width: 110,
|
|
86
|
+
marginBottom: theme.margins["2xl"], // espaço entre as linhas
|
|
87
|
+
}}
|
|
88
|
+
onPress={() => handleActivity(item.name)}
|
|
89
|
+
>
|
|
90
|
+
<Icons
|
|
91
|
+
color={theme.colors.blue[500]}
|
|
92
|
+
icon={item.icon as "STEERING_WHEEL" | "HOURGLASS" | "TRUCK_ACTIVITY"}
|
|
93
|
+
/>
|
|
94
|
+
<Typography
|
|
95
|
+
text={item.name}
|
|
96
|
+
size={theme.fontSizes.xs}
|
|
97
|
+
color={theme.colors.blue[500]}
|
|
98
|
+
lineHeight={theme.fontSizes.md}
|
|
99
|
+
fontFamily={theme.fonts.inter_medium_500}
|
|
100
|
+
fontWeight="500"
|
|
101
|
+
align="center"
|
|
102
|
+
marginTop={5}
|
|
103
|
+
/>
|
|
104
|
+
</TouchableOpacity>
|
|
105
|
+
)}
|
|
106
|
+
/>
|
|
107
|
+
</Box>
|
|
108
|
+
|
|
109
|
+
<Button
|
|
110
|
+
title={"Cancelar Atividade"}
|
|
111
|
+
width="100%"
|
|
112
|
+
height={40}
|
|
113
|
+
activeOpacity={0.7}
|
|
114
|
+
onPress={onClose}
|
|
115
|
+
backgroundColor={theme.colors.blue[500]}
|
|
116
|
+
buttonTextStyle={{
|
|
117
|
+
color: theme.colors.neutral[25],
|
|
118
|
+
fontFamily: theme.fonts.inter_medium_500,
|
|
119
|
+
fontSize: theme.fontSizes.md,
|
|
120
|
+
fontWeight: "500",
|
|
121
|
+
}}
|
|
122
|
+
marginStyle={{ marginTop: theme.margins.sm }}
|
|
123
|
+
flexStyle={{
|
|
124
|
+
flexDirection: "row",
|
|
125
|
+
alignItems: "center",
|
|
126
|
+
justifyContent: "center",
|
|
127
|
+
}}
|
|
128
|
+
borderStyled={{
|
|
129
|
+
borderWidth: theme.borderWidths.thin,
|
|
130
|
+
borderColor: theme.colors.blue[500],
|
|
131
|
+
borderRadius: theme.borderWidths.thick_medium,
|
|
132
|
+
}}
|
|
133
|
+
isLoading={isLoading ?? false}
|
|
134
|
+
/>
|
|
135
|
+
</Box>
|
|
136
|
+
</Box>
|
|
137
|
+
</Modal>
|
|
138
|
+
);
|
|
139
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* IMPORTS
|
|
3
|
+
*/
|
|
4
|
+
import { ModalProps } from "react-native";
|
|
5
|
+
|
|
6
|
+
// typing
|
|
7
|
+
import { IGlobalCss } from "../../styles/global/interface";
|
|
8
|
+
|
|
9
|
+
interface IModalActivities extends ModalProps, IGlobalCss {
|
|
10
|
+
/** função que fecha modal */
|
|
11
|
+
onClose: () => void;
|
|
12
|
+
|
|
13
|
+
/** função que manda atividade selecionada */
|
|
14
|
+
// eslint-disable-next-line no-unused-vars
|
|
15
|
+
handleActivity: (activity: string) => void;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* EXPORTS
|
|
20
|
+
*/
|
|
21
|
+
export { IModalActivities };
|
|
@@ -61,16 +61,18 @@ const NotificationLoading: React.FC<INotificationLoading> = ({
|
|
|
61
61
|
<Typography
|
|
62
62
|
text={"Carregamento - "}
|
|
63
63
|
size={theme.fontSizes.sm}
|
|
64
|
-
lineHeight={theme.fontSizes.
|
|
64
|
+
lineHeight={theme.fontSizes.lg}
|
|
65
65
|
fontFamily={theme.fonts.inter_semi_bold_600}
|
|
66
|
+
fontWeight="600"
|
|
66
67
|
color={theme.colors.neutral[25]}
|
|
67
68
|
letterSpacing={"regular"}
|
|
68
69
|
/>
|
|
69
70
|
<Typography
|
|
70
71
|
text={title}
|
|
71
72
|
size={theme.fontSizes.xs}
|
|
72
|
-
lineHeight={theme.fontSizes.
|
|
73
|
+
lineHeight={theme.fontSizes.md}
|
|
73
74
|
fontFamily={theme.fonts.inter_bold_700}
|
|
75
|
+
fontWeight="700"
|
|
74
76
|
color={theme.colors.neutral[25]}
|
|
75
77
|
letterSpacing={"regular"}
|
|
76
78
|
/>
|
|
@@ -95,6 +97,7 @@ const NotificationLoading: React.FC<INotificationLoading> = ({
|
|
|
95
97
|
size={theme.fontSizes.sm}
|
|
96
98
|
lineHeight={theme.fontSizes.lg ?? 18}
|
|
97
99
|
fontFamily={theme.fonts.inter_medium_500}
|
|
100
|
+
fontWeight="500"
|
|
98
101
|
color={theme.colors.neutral[25]}
|
|
99
102
|
letterSpacing={"regular"}
|
|
100
103
|
/>
|
|
@@ -103,6 +106,7 @@ const NotificationLoading: React.FC<INotificationLoading> = ({
|
|
|
103
106
|
size={theme.fontSizes.sm}
|
|
104
107
|
lineHeight={theme.fontSizes.lg ?? 18}
|
|
105
108
|
fontFamily={theme.fonts.inter_medium_500}
|
|
109
|
+
fontWeight="500"
|
|
106
110
|
color={theme.colors.neutral[25]}
|
|
107
111
|
letterSpacing={"regular"}
|
|
108
112
|
/>
|
|
@@ -117,6 +121,8 @@ const NotificationLoading: React.FC<INotificationLoading> = ({
|
|
|
117
121
|
text={String(dataStart)}
|
|
118
122
|
size={theme.fontSizes["2xs"]}
|
|
119
123
|
fontFamily={theme.fonts.inter_medium_500}
|
|
124
|
+
fontWeight="500"
|
|
125
|
+
lineHeight={theme.fontSizes.sm}
|
|
120
126
|
color={theme.colors.neutral[25]}
|
|
121
127
|
letterSpacing={"regular"}
|
|
122
128
|
marginRight={8}
|
|
@@ -137,6 +143,7 @@ const NotificationLoading: React.FC<INotificationLoading> = ({
|
|
|
137
143
|
text={notification}
|
|
138
144
|
size={theme.fontSizes["2xs"]}
|
|
139
145
|
fontFamily={theme.fonts.inter_medium_500}
|
|
146
|
+
fontWeight="500"
|
|
140
147
|
lineHeight={theme.fontSizes.sm ?? 14}
|
|
141
148
|
color={theme.colors.neutral[25]}
|
|
142
149
|
letterSpacing={"regular"}
|
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* IMPORTS
|
|
3
|
-
*/
|
|
4
|
-
import { ViewProps } from "react-native";
|
|
5
|
-
|
|
6
|
-
// typing
|
|
7
|
-
import { IGlobalCss } from "../../styles/global/interface";
|
|
8
|
-
|
|
9
|
-
interface INotificationLoading extends ViewProps, IGlobalCss {
|
|
10
|
-
/**propriedade que indica o título do carregamento */
|
|
11
|
-
title: string;
|
|
12
|
-
|
|
13
|
-
/**propriedade que indica a data do carregamento */
|
|
14
|
-
date: string | Date;
|
|
15
|
-
|
|
16
|
-
/**função que faz a navegação da tela */
|
|
17
|
-
handleNavigation: () => void;
|
|
18
|
-
|
|
19
|
-
/**propriedade que indica a notificação */
|
|
20
|
-
notification: string;
|
|
21
|
-
|
|
22
|
-
/**propriedade que indica o status da notificação */
|
|
23
|
-
statusNotify: string;
|
|
24
|
-
|
|
25
|
-
/**propriedade que indica a data da notificação */
|
|
26
|
-
dataStart: string | Date;
|
|
27
|
-
|
|
28
|
-
/**propriedade que indica se a notificação está lida ou não */
|
|
29
|
-
readonly?: boolean;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* EXPORTS
|
|
34
|
-
*/
|
|
35
|
-
export { INotificationLoading };
|
|
1
|
+
/**
|
|
2
|
+
* IMPORTS
|
|
3
|
+
*/
|
|
4
|
+
import { ViewProps } from "react-native";
|
|
5
|
+
|
|
6
|
+
// typing
|
|
7
|
+
import { IGlobalCss } from "../../styles/global/interface";
|
|
8
|
+
|
|
9
|
+
interface INotificationLoading extends ViewProps, IGlobalCss {
|
|
10
|
+
/**propriedade que indica o título do carregamento */
|
|
11
|
+
title: string;
|
|
12
|
+
|
|
13
|
+
/**propriedade que indica a data do carregamento */
|
|
14
|
+
date: string | Date;
|
|
15
|
+
|
|
16
|
+
/**função que faz a navegação da tela */
|
|
17
|
+
handleNavigation: () => void;
|
|
18
|
+
|
|
19
|
+
/**propriedade que indica a notificação */
|
|
20
|
+
notification: string;
|
|
21
|
+
|
|
22
|
+
/**propriedade que indica o status da notificação */
|
|
23
|
+
statusNotify: string;
|
|
24
|
+
|
|
25
|
+
/**propriedade que indica a data da notificação */
|
|
26
|
+
dataStart: string | Date;
|
|
27
|
+
|
|
28
|
+
/**propriedade que indica se a notificação está lida ou não */
|
|
29
|
+
readonly?: boolean;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* EXPORTS
|
|
34
|
+
*/
|
|
35
|
+
export { INotificationLoading };
|
|
@@ -1,65 +1,65 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { TouchableOpacity } from "react-native";
|
|
3
|
-
|
|
4
|
-
// components
|
|
5
|
-
import { Box } from "../box";
|
|
6
|
-
import { Typography } from "../typography";
|
|
7
|
-
|
|
8
|
-
// icons
|
|
9
|
-
import { Icons } from "../../common/icons-svg";
|
|
10
|
-
|
|
11
|
-
// theme
|
|
12
|
-
import { theme } from "../../styles/theme/theme";
|
|
13
|
-
|
|
14
|
-
// typing
|
|
15
|
-
import { IProfileMenuOption } from "./interface";
|
|
16
|
-
|
|
17
|
-
const ProfileMenuOption: React.FC<IProfileMenuOption> = ({
|
|
18
|
-
handleNavigation,
|
|
19
|
-
icon,
|
|
20
|
-
text,
|
|
21
|
-
backgroundColor,
|
|
22
|
-
colorIcon,
|
|
23
|
-
}) => {
|
|
24
|
-
return (
|
|
25
|
-
<TouchableOpacity onPress={handleNavigation} activeOpacity={0.7}>
|
|
26
|
-
<Box
|
|
27
|
-
flexStyle={{
|
|
28
|
-
alignItems: "center",
|
|
29
|
-
flexDirection: "row",
|
|
30
|
-
justifyContent: "space-between",
|
|
31
|
-
}}
|
|
32
|
-
width={"100%"}
|
|
33
|
-
backgroundColor={backgroundColor ?? theme.colors.blue[400]}
|
|
34
|
-
paddingStyle={{ padding: theme.paddings["2xs"] }}
|
|
35
|
-
borderStyled={{
|
|
36
|
-
borderRadius: theme.borderWidths.thick_medium,
|
|
37
|
-
borderColor: theme.colors.blue[400],
|
|
38
|
-
}}
|
|
39
|
-
marginStyle={{ marginBottom: theme.margins.xs }}
|
|
40
|
-
>
|
|
41
|
-
<Box flexStyle={{ alignItems: "center", flexDirection: "row" }}>
|
|
42
|
-
<Icons icon={icon ?? "AGENT"} color={colorIcon ?? theme.colors.neutral[25]} />
|
|
43
|
-
<Typography
|
|
44
|
-
text={text}
|
|
45
|
-
size={theme.fontSizes.sm}
|
|
46
|
-
fontFamily={theme.fonts.inter_bold_700}
|
|
47
|
-
fontWeight={"700"}
|
|
48
|
-
lineHeight={theme.fontSizes.lg}
|
|
49
|
-
color={theme.colors.neutral[25]}
|
|
50
|
-
marginLeft={theme.margins.xs}
|
|
51
|
-
/>
|
|
52
|
-
</Box>
|
|
53
|
-
<Typography
|
|
54
|
-
text="›"
|
|
55
|
-
size={theme.fontSizes["2xl"]}
|
|
56
|
-
fontFamily={theme.fonts.inter_medium_500}
|
|
57
|
-
fontWeight={"500"}
|
|
58
|
-
color={theme.colors.neutral[25]}
|
|
59
|
-
/>
|
|
60
|
-
</Box>
|
|
61
|
-
</TouchableOpacity>
|
|
62
|
-
);
|
|
63
|
-
};
|
|
64
|
-
|
|
65
|
-
export { ProfileMenuOption };
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { TouchableOpacity } from "react-native";
|
|
3
|
+
|
|
4
|
+
// components
|
|
5
|
+
import { Box } from "../box";
|
|
6
|
+
import { Typography } from "../typography";
|
|
7
|
+
|
|
8
|
+
// icons
|
|
9
|
+
import { Icons } from "../../common/icons-svg";
|
|
10
|
+
|
|
11
|
+
// theme
|
|
12
|
+
import { theme } from "../../styles/theme/theme";
|
|
13
|
+
|
|
14
|
+
// typing
|
|
15
|
+
import { IProfileMenuOption } from "./interface";
|
|
16
|
+
|
|
17
|
+
const ProfileMenuOption: React.FC<IProfileMenuOption> = ({
|
|
18
|
+
handleNavigation,
|
|
19
|
+
icon,
|
|
20
|
+
text,
|
|
21
|
+
backgroundColor,
|
|
22
|
+
colorIcon,
|
|
23
|
+
}) => {
|
|
24
|
+
return (
|
|
25
|
+
<TouchableOpacity onPress={handleNavigation} activeOpacity={0.7}>
|
|
26
|
+
<Box
|
|
27
|
+
flexStyle={{
|
|
28
|
+
alignItems: "center",
|
|
29
|
+
flexDirection: "row",
|
|
30
|
+
justifyContent: "space-between",
|
|
31
|
+
}}
|
|
32
|
+
width={"100%"}
|
|
33
|
+
backgroundColor={backgroundColor ?? theme.colors.blue[400]}
|
|
34
|
+
paddingStyle={{ padding: theme.paddings["2xs"] }}
|
|
35
|
+
borderStyled={{
|
|
36
|
+
borderRadius: theme.borderWidths.thick_medium,
|
|
37
|
+
borderColor: theme.colors.blue[400],
|
|
38
|
+
}}
|
|
39
|
+
marginStyle={{ marginBottom: theme.margins.xs }}
|
|
40
|
+
>
|
|
41
|
+
<Box flexStyle={{ alignItems: "center", flexDirection: "row" }}>
|
|
42
|
+
<Icons icon={icon ?? "AGENT"} color={colorIcon ?? theme.colors.neutral[25]} />
|
|
43
|
+
<Typography
|
|
44
|
+
text={text}
|
|
45
|
+
size={theme.fontSizes.sm}
|
|
46
|
+
fontFamily={theme.fonts.inter_bold_700}
|
|
47
|
+
fontWeight={"700"}
|
|
48
|
+
lineHeight={theme.fontSizes.lg}
|
|
49
|
+
color={theme.colors.neutral[25]}
|
|
50
|
+
marginLeft={theme.margins.xs}
|
|
51
|
+
/>
|
|
52
|
+
</Box>
|
|
53
|
+
<Typography
|
|
54
|
+
text="›"
|
|
55
|
+
size={theme.fontSizes["2xl"]}
|
|
56
|
+
fontFamily={theme.fonts.inter_medium_500}
|
|
57
|
+
fontWeight={"500"}
|
|
58
|
+
color={theme.colors.neutral[25]}
|
|
59
|
+
/>
|
|
60
|
+
</Box>
|
|
61
|
+
</TouchableOpacity>
|
|
62
|
+
);
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
export { ProfileMenuOption };
|