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,103 +1,103 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* IMPORTS
|
|
3
|
-
*/
|
|
4
|
-
import React from "react";
|
|
5
|
-
import { TouchableOpacity } from "react-native";
|
|
6
|
-
|
|
7
|
-
// components
|
|
8
|
-
import { Box } from "../box";
|
|
9
|
-
import { Typography } from "../typography";
|
|
10
|
-
|
|
11
|
-
// icons
|
|
12
|
-
import { Icons } from "../../common/icons-svg";
|
|
13
|
-
|
|
14
|
-
// theme
|
|
15
|
-
import { theme } from "../../styles/theme/theme";
|
|
16
|
-
|
|
17
|
-
import { ICoil } from "./interface";
|
|
18
|
-
|
|
19
|
-
const Coil: React.FC<ICoil> = ({
|
|
20
|
-
description,
|
|
21
|
-
handleNavigation,
|
|
22
|
-
title,
|
|
23
|
-
testID,
|
|
24
|
-
status,
|
|
25
|
-
backgroundColor,
|
|
26
|
-
style,
|
|
27
|
-
disabled,
|
|
28
|
-
backgroundColorIcon,
|
|
29
|
-
}) => {
|
|
30
|
-
return (
|
|
31
|
-
<TouchableOpacity
|
|
32
|
-
disabled={disabled}
|
|
33
|
-
activeOpacity={0.7}
|
|
34
|
-
testID={testID}
|
|
35
|
-
onPress={handleNavigation}
|
|
36
|
-
>
|
|
37
|
-
<Box
|
|
38
|
-
width={"100%"}
|
|
39
|
-
flexStyle={{ flexDirection: "row", alignItems: "center" }}
|
|
40
|
-
height={70}
|
|
41
|
-
backgroundColor={backgroundColor ?? theme.colors.blue[400]}
|
|
42
|
-
borderStyled={{
|
|
43
|
-
borderWidth: theme.borderWidths.thin,
|
|
44
|
-
borderRadius: theme.borderWidths.thick_medium,
|
|
45
|
-
borderColor: backgroundColor ?? theme.colors.blue[400],
|
|
46
|
-
}}
|
|
47
|
-
paddingStyle={{ padding: theme.paddings["2xs"] }}
|
|
48
|
-
marginStyle={{ marginBottom: theme.margins.md }}
|
|
49
|
-
style={[style, { elevation: 5 }]}
|
|
50
|
-
>
|
|
51
|
-
<Box
|
|
52
|
-
width={"80%"}
|
|
53
|
-
height={70}
|
|
54
|
-
flexStyle={{ flexDirection: "row", alignItems: "center", justifyContent: "flex-start" }}
|
|
55
|
-
>
|
|
56
|
-
<Icons icon={"LIFEBUOY"} size={32} />
|
|
57
|
-
|
|
58
|
-
<Box
|
|
59
|
-
flexStyle={{ flexDirection: "column", flexWrap: "wrap" }}
|
|
60
|
-
marginStyle={{ marginLeft: theme.margins.lg }}
|
|
61
|
-
>
|
|
62
|
-
<Typography
|
|
63
|
-
text={title}
|
|
64
|
-
size={theme.fontSizes["2xl"]}
|
|
65
|
-
fontFamily={theme.fonts.inter_bold_700}
|
|
66
|
-
color={theme.colors.neutral[25]}
|
|
67
|
-
letterSpacing={"regular"}
|
|
68
|
-
paddingTop={theme.paddings.md}
|
|
69
|
-
/>
|
|
70
|
-
<Typography
|
|
71
|
-
text={description}
|
|
72
|
-
size={theme.fontSizes["2xs"]}
|
|
73
|
-
fontFamily={theme.fonts.inter_semi_bold_600}
|
|
74
|
-
color={theme.colors.neutral[25]}
|
|
75
|
-
letterSpacing={"regular"}
|
|
76
|
-
/>
|
|
77
|
-
</Box>
|
|
78
|
-
</Box>
|
|
79
|
-
|
|
80
|
-
<Box
|
|
81
|
-
width={"20%"}
|
|
82
|
-
flexStyle={{ flexDirection: "row", alignItems: "center", justifyContent: "flex-end" }}
|
|
83
|
-
height={70}
|
|
84
|
-
>
|
|
85
|
-
{status === "Cancelado" && (
|
|
86
|
-
<Icons icon={"RECUSED"} size={32} background={backgroundColorIcon} />
|
|
87
|
-
)}
|
|
88
|
-
{status === "Concluido" && (
|
|
89
|
-
<Icons icon={"CHECK_CIRCLE"} size={32} background={backgroundColorIcon} />
|
|
90
|
-
)}
|
|
91
|
-
{(status === "Pendente" || status === "Andamento") && (
|
|
92
|
-
<Icons icon={"EXCLAMATION_CIRCLE"} size={32} background={backgroundColorIcon} />
|
|
93
|
-
)}
|
|
94
|
-
</Box>
|
|
95
|
-
</Box>
|
|
96
|
-
</TouchableOpacity>
|
|
97
|
-
);
|
|
98
|
-
};
|
|
99
|
-
|
|
100
|
-
/**
|
|
101
|
-
* EXPORTS
|
|
102
|
-
*/
|
|
103
|
-
export { Coil };
|
|
1
|
+
/**
|
|
2
|
+
* IMPORTS
|
|
3
|
+
*/
|
|
4
|
+
import React from "react";
|
|
5
|
+
import { TouchableOpacity } from "react-native";
|
|
6
|
+
|
|
7
|
+
// components
|
|
8
|
+
import { Box } from "../box";
|
|
9
|
+
import { Typography } from "../typography";
|
|
10
|
+
|
|
11
|
+
// icons
|
|
12
|
+
import { Icons } from "../../common/icons-svg";
|
|
13
|
+
|
|
14
|
+
// theme
|
|
15
|
+
import { theme } from "../../styles/theme/theme";
|
|
16
|
+
|
|
17
|
+
import { ICoil } from "./interface";
|
|
18
|
+
|
|
19
|
+
const Coil: React.FC<ICoil> = ({
|
|
20
|
+
description,
|
|
21
|
+
handleNavigation,
|
|
22
|
+
title,
|
|
23
|
+
testID,
|
|
24
|
+
status,
|
|
25
|
+
backgroundColor,
|
|
26
|
+
style,
|
|
27
|
+
disabled,
|
|
28
|
+
backgroundColorIcon,
|
|
29
|
+
}) => {
|
|
30
|
+
return (
|
|
31
|
+
<TouchableOpacity
|
|
32
|
+
disabled={disabled}
|
|
33
|
+
activeOpacity={0.7}
|
|
34
|
+
testID={testID}
|
|
35
|
+
onPress={handleNavigation}
|
|
36
|
+
>
|
|
37
|
+
<Box
|
|
38
|
+
width={"100%"}
|
|
39
|
+
flexStyle={{ flexDirection: "row", alignItems: "center" }}
|
|
40
|
+
height={70}
|
|
41
|
+
backgroundColor={backgroundColor ?? theme.colors.blue[400]}
|
|
42
|
+
borderStyled={{
|
|
43
|
+
borderWidth: theme.borderWidths.thin,
|
|
44
|
+
borderRadius: theme.borderWidths.thick_medium,
|
|
45
|
+
borderColor: backgroundColor ?? theme.colors.blue[400],
|
|
46
|
+
}}
|
|
47
|
+
paddingStyle={{ padding: theme.paddings["2xs"] }}
|
|
48
|
+
marginStyle={{ marginBottom: theme.margins.md }}
|
|
49
|
+
style={[style, { elevation: 5 }]}
|
|
50
|
+
>
|
|
51
|
+
<Box
|
|
52
|
+
width={"80%"}
|
|
53
|
+
height={70}
|
|
54
|
+
flexStyle={{ flexDirection: "row", alignItems: "center", justifyContent: "flex-start" }}
|
|
55
|
+
>
|
|
56
|
+
<Icons icon={"LIFEBUOY"} size={32} />
|
|
57
|
+
|
|
58
|
+
<Box
|
|
59
|
+
flexStyle={{ flexDirection: "column", flexWrap: "wrap" }}
|
|
60
|
+
marginStyle={{ marginLeft: theme.margins.lg }}
|
|
61
|
+
>
|
|
62
|
+
<Typography
|
|
63
|
+
text={title}
|
|
64
|
+
size={theme.fontSizes["2xl"]}
|
|
65
|
+
fontFamily={theme.fonts.inter_bold_700}
|
|
66
|
+
color={theme.colors.neutral[25]}
|
|
67
|
+
letterSpacing={"regular"}
|
|
68
|
+
paddingTop={theme.paddings.md}
|
|
69
|
+
/>
|
|
70
|
+
<Typography
|
|
71
|
+
text={description}
|
|
72
|
+
size={theme.fontSizes["2xs"]}
|
|
73
|
+
fontFamily={theme.fonts.inter_semi_bold_600}
|
|
74
|
+
color={theme.colors.neutral[25]}
|
|
75
|
+
letterSpacing={"regular"}
|
|
76
|
+
/>
|
|
77
|
+
</Box>
|
|
78
|
+
</Box>
|
|
79
|
+
|
|
80
|
+
<Box
|
|
81
|
+
width={"20%"}
|
|
82
|
+
flexStyle={{ flexDirection: "row", alignItems: "center", justifyContent: "flex-end" }}
|
|
83
|
+
height={70}
|
|
84
|
+
>
|
|
85
|
+
{status === "Cancelado" && (
|
|
86
|
+
<Icons icon={"RECUSED"} size={32} background={backgroundColorIcon} />
|
|
87
|
+
)}
|
|
88
|
+
{status === "Concluido" && (
|
|
89
|
+
<Icons icon={"CHECK_CIRCLE"} size={32} background={backgroundColorIcon} />
|
|
90
|
+
)}
|
|
91
|
+
{(status === "Pendente" || status === "Andamento") && (
|
|
92
|
+
<Icons icon={"EXCLAMATION_CIRCLE"} size={32} background={backgroundColorIcon} />
|
|
93
|
+
)}
|
|
94
|
+
</Box>
|
|
95
|
+
</Box>
|
|
96
|
+
</TouchableOpacity>
|
|
97
|
+
);
|
|
98
|
+
};
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* EXPORTS
|
|
102
|
+
*/
|
|
103
|
+
export { Coil };
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* IMPORTS
|
|
3
|
-
*/
|
|
4
|
-
import { ViewProps } from "react-native";
|
|
5
|
-
|
|
6
|
-
// typing
|
|
7
|
-
import { IGlobalCss } from "../../styles/global/interface";
|
|
8
|
-
|
|
9
|
-
interface ICoil extends ViewProps, IGlobalCss {
|
|
10
|
-
/**propriedade que indica o título da bobina */
|
|
11
|
-
title: string;
|
|
12
|
-
|
|
13
|
-
/**propriedade que indica a descrição da bobina */
|
|
14
|
-
description: string;
|
|
15
|
-
|
|
16
|
-
/**propriedade que indica que levar para tela da bobina */
|
|
17
|
-
handleNavigation: () => void;
|
|
18
|
-
|
|
19
|
-
/**propriedade que indica status da bobina */
|
|
20
|
-
status?: "Cancelado" | "Pendente" | "Concluido" | "Andamento";
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* EXPORTS
|
|
25
|
-
*/
|
|
26
|
-
export { ICoil };
|
|
1
|
+
/**
|
|
2
|
+
* IMPORTS
|
|
3
|
+
*/
|
|
4
|
+
import { ViewProps } from "react-native";
|
|
5
|
+
|
|
6
|
+
// typing
|
|
7
|
+
import { IGlobalCss } from "../../styles/global/interface";
|
|
8
|
+
|
|
9
|
+
interface ICoil extends ViewProps, IGlobalCss {
|
|
10
|
+
/**propriedade que indica o título da bobina */
|
|
11
|
+
title: string;
|
|
12
|
+
|
|
13
|
+
/**propriedade que indica a descrição da bobina */
|
|
14
|
+
description: string;
|
|
15
|
+
|
|
16
|
+
/**propriedade que indica que levar para tela da bobina */
|
|
17
|
+
handleNavigation: () => void;
|
|
18
|
+
|
|
19
|
+
/**propriedade que indica status da bobina */
|
|
20
|
+
status?: "Cancelado" | "Pendente" | "Concluido" | "Andamento";
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* EXPORTS
|
|
25
|
+
*/
|
|
26
|
+
export { ICoil };
|
|
@@ -1,101 +1,101 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* IMPORTS
|
|
3
|
-
*/
|
|
4
|
-
import React from "react";
|
|
5
|
-
import { TouchableOpacity, ActivityIndicator, FlatList } from "react-native";
|
|
6
|
-
|
|
7
|
-
// components
|
|
8
|
-
import { Box } from "../box";
|
|
9
|
-
import { Typography } from "../typography";
|
|
10
|
-
|
|
11
|
-
// styles
|
|
12
|
-
import { theme } from "../../styles/theme/theme";
|
|
13
|
-
|
|
14
|
-
//typing
|
|
15
|
-
import { IFilterDateSelector, ISelectedDay } from "./interface";
|
|
16
|
-
import { Icons } from "../../common/icons-svg";
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* Componente FilterDateSelector para a interação do usuário com ui.
|
|
21
|
-
*/
|
|
22
|
-
const FilterDateSelector: React.FC<IFilterDateSelector> = ({
|
|
23
|
-
selectedDay,
|
|
24
|
-
handleSelectedDay,
|
|
25
|
-
days,
|
|
26
|
-
isLoading,
|
|
27
|
-
testID,
|
|
28
|
-
}) => {
|
|
29
|
-
const renderDayBlock = ({ item: day, index }: { item: ISelectedDay; index: number }) => {
|
|
30
|
-
const isSelected = selectedDay && selectedDay.date === day.date;
|
|
31
|
-
return (
|
|
32
|
-
<TouchableOpacity
|
|
33
|
-
disabled={isSelected}
|
|
34
|
-
key={index}
|
|
35
|
-
activeOpacity={0.7}
|
|
36
|
-
onPress={() => handleSelectedDay(day)}
|
|
37
|
-
>
|
|
38
|
-
<Box
|
|
39
|
-
testID={testID}
|
|
40
|
-
width={65}
|
|
41
|
-
height={75}
|
|
42
|
-
flexStyle={{ alignItems: "center", justifyContent: "center" }}
|
|
43
|
-
backgroundColor={isSelected ? theme.colors.blue[400] : theme.colors.gray[350]}
|
|
44
|
-
borderStyled={{
|
|
45
|
-
borderRadius: theme.borderWidths.thick_large,
|
|
46
|
-
borderColor: isSelected ? theme.colors.blue[400] : theme.colors.gray[350],
|
|
47
|
-
borderWidth: theme.borderWidths.thin,
|
|
48
|
-
}}
|
|
49
|
-
marginStyle={{ marginRight: theme.margins["2xs"], marginTop: theme.margins["2xs"] }}
|
|
50
|
-
>
|
|
51
|
-
{isSelected && isLoading ? (
|
|
52
|
-
<ActivityIndicator size="small" color="white" />
|
|
53
|
-
) : (
|
|
54
|
-
<>
|
|
55
|
-
{day.date === "all" ? (
|
|
56
|
-
<Icons icon="REFRESH_CCW_DOT" color={theme.colors.neutral[25]} />
|
|
57
|
-
) : (
|
|
58
|
-
<>
|
|
59
|
-
<Typography
|
|
60
|
-
text={day.date === "all" ? "" : day.date.toString().padStart(2, "0")}
|
|
61
|
-
size={theme.fontSizes.lg}
|
|
62
|
-
color={theme.colors.neutral[25]}
|
|
63
|
-
fontFamily={theme.fonts.inter_bold_700}
|
|
64
|
-
/>
|
|
65
|
-
<Typography
|
|
66
|
-
text={day.date === "all" ? "Todos" : day.dayName.slice(0, 3)}
|
|
67
|
-
size={theme.fontSizes.lg}
|
|
68
|
-
color={theme.colors.neutral[25]}
|
|
69
|
-
fontFamily={theme.fonts.inter_bold_700}
|
|
70
|
-
marginBottom={day.date === "all" ? theme.margins["3xl"] : 0}
|
|
71
|
-
letterSpacing="o_16"
|
|
72
|
-
/>
|
|
73
|
-
</>
|
|
74
|
-
)}
|
|
75
|
-
</>
|
|
76
|
-
)}
|
|
77
|
-
</Box>
|
|
78
|
-
</TouchableOpacity>
|
|
79
|
-
);
|
|
80
|
-
};
|
|
81
|
-
const daySorted = days.sort(
|
|
82
|
-
(a, b) => new Date(b.fullDate).getTime() - new Date(a.fullDate).getTime()
|
|
83
|
-
);
|
|
84
|
-
|
|
85
|
-
// Adiciona a opção "Todos" no início da lista
|
|
86
|
-
const dataWithAllOption = [...daySorted];
|
|
87
|
-
|
|
88
|
-
return (
|
|
89
|
-
<FlatList
|
|
90
|
-
horizontal
|
|
91
|
-
data={dataWithAllOption}
|
|
92
|
-
showsHorizontalScrollIndicator={false}
|
|
93
|
-
renderItem={renderDayBlock}
|
|
94
|
-
/>
|
|
95
|
-
);
|
|
96
|
-
};
|
|
97
|
-
|
|
98
|
-
/**
|
|
99
|
-
* EXPORTS
|
|
100
|
-
*/
|
|
101
|
-
export { FilterDateSelector };
|
|
1
|
+
/**
|
|
2
|
+
* IMPORTS
|
|
3
|
+
*/
|
|
4
|
+
import React from "react";
|
|
5
|
+
import { TouchableOpacity, ActivityIndicator, FlatList } from "react-native";
|
|
6
|
+
|
|
7
|
+
// components
|
|
8
|
+
import { Box } from "../box";
|
|
9
|
+
import { Typography } from "../typography";
|
|
10
|
+
|
|
11
|
+
// styles
|
|
12
|
+
import { theme } from "../../styles/theme/theme";
|
|
13
|
+
|
|
14
|
+
//typing
|
|
15
|
+
import { IFilterDateSelector, ISelectedDay } from "./interface";
|
|
16
|
+
import { Icons } from "../../common/icons-svg";
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* Componente FilterDateSelector para a interação do usuário com ui.
|
|
21
|
+
*/
|
|
22
|
+
const FilterDateSelector: React.FC<IFilterDateSelector> = ({
|
|
23
|
+
selectedDay,
|
|
24
|
+
handleSelectedDay,
|
|
25
|
+
days,
|
|
26
|
+
isLoading,
|
|
27
|
+
testID,
|
|
28
|
+
}) => {
|
|
29
|
+
const renderDayBlock = ({ item: day, index }: { item: ISelectedDay; index: number }) => {
|
|
30
|
+
const isSelected = selectedDay && selectedDay.date === day.date;
|
|
31
|
+
return (
|
|
32
|
+
<TouchableOpacity
|
|
33
|
+
disabled={isSelected}
|
|
34
|
+
key={index}
|
|
35
|
+
activeOpacity={0.7}
|
|
36
|
+
onPress={() => handleSelectedDay(day)}
|
|
37
|
+
>
|
|
38
|
+
<Box
|
|
39
|
+
testID={testID}
|
|
40
|
+
width={65}
|
|
41
|
+
height={75}
|
|
42
|
+
flexStyle={{ alignItems: "center", justifyContent: "center" }}
|
|
43
|
+
backgroundColor={isSelected ? theme.colors.blue[400] : theme.colors.gray[350]}
|
|
44
|
+
borderStyled={{
|
|
45
|
+
borderRadius: theme.borderWidths.thick_large,
|
|
46
|
+
borderColor: isSelected ? theme.colors.blue[400] : theme.colors.gray[350],
|
|
47
|
+
borderWidth: theme.borderWidths.thin,
|
|
48
|
+
}}
|
|
49
|
+
marginStyle={{ marginRight: theme.margins["2xs"], marginTop: theme.margins["2xs"] }}
|
|
50
|
+
>
|
|
51
|
+
{isSelected && isLoading ? (
|
|
52
|
+
<ActivityIndicator size="small" color="white" />
|
|
53
|
+
) : (
|
|
54
|
+
<>
|
|
55
|
+
{day.date === "all" ? (
|
|
56
|
+
<Icons icon="REFRESH_CCW_DOT" color={theme.colors.neutral[25]} />
|
|
57
|
+
) : (
|
|
58
|
+
<>
|
|
59
|
+
<Typography
|
|
60
|
+
text={day.date === "all" ? "" : day.date.toString().padStart(2, "0")}
|
|
61
|
+
size={theme.fontSizes.lg}
|
|
62
|
+
color={theme.colors.neutral[25]}
|
|
63
|
+
fontFamily={theme.fonts.inter_bold_700}
|
|
64
|
+
/>
|
|
65
|
+
<Typography
|
|
66
|
+
text={day.date === "all" ? "Todos" : day.dayName.slice(0, 3)}
|
|
67
|
+
size={theme.fontSizes.lg}
|
|
68
|
+
color={theme.colors.neutral[25]}
|
|
69
|
+
fontFamily={theme.fonts.inter_bold_700}
|
|
70
|
+
marginBottom={day.date === "all" ? theme.margins["3xl"] : 0}
|
|
71
|
+
letterSpacing="o_16"
|
|
72
|
+
/>
|
|
73
|
+
</>
|
|
74
|
+
)}
|
|
75
|
+
</>
|
|
76
|
+
)}
|
|
77
|
+
</Box>
|
|
78
|
+
</TouchableOpacity>
|
|
79
|
+
);
|
|
80
|
+
};
|
|
81
|
+
const daySorted = days.sort(
|
|
82
|
+
(a, b) => new Date(b.fullDate).getTime() - new Date(a.fullDate).getTime()
|
|
83
|
+
);
|
|
84
|
+
|
|
85
|
+
// Adiciona a opção "Todos" no início da lista
|
|
86
|
+
const dataWithAllOption = [...daySorted];
|
|
87
|
+
|
|
88
|
+
return (
|
|
89
|
+
<FlatList
|
|
90
|
+
horizontal
|
|
91
|
+
data={dataWithAllOption}
|
|
92
|
+
showsHorizontalScrollIndicator={false}
|
|
93
|
+
renderItem={renderDayBlock}
|
|
94
|
+
/>
|
|
95
|
+
);
|
|
96
|
+
};
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* EXPORTS
|
|
100
|
+
*/
|
|
101
|
+
export { FilterDateSelector };
|
|
@@ -12,7 +12,6 @@ import { IHistoryDetails } from "./interface";
|
|
|
12
12
|
|
|
13
13
|
// styles
|
|
14
14
|
import { theme } from "../../styles/theme/theme";
|
|
15
|
-
import { formatDate } from "../../utils/format-data";
|
|
16
15
|
|
|
17
16
|
const HistoryDetails: React.FC<IHistoryDetails> = ({
|
|
18
17
|
numero = "01020304050607",
|
|
@@ -50,7 +49,7 @@ const HistoryDetails: React.FC<IHistoryDetails> = ({
|
|
|
50
49
|
numberOfLines={1}
|
|
51
50
|
/>
|
|
52
51
|
<Typography
|
|
53
|
-
text={`Data carregamento: ${
|
|
52
|
+
text={`Data carregamento: ${date}`}
|
|
54
53
|
color={theme.colors.neutral[25]}
|
|
55
54
|
size={theme.fontSizes.xs}
|
|
56
55
|
fontFamily={theme.fonts.inter_regular_400}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* IMPORTS
|
|
3
|
-
*/
|
|
4
|
-
type IHistoryDetails = {
|
|
5
|
-
/**número do carregamento */
|
|
6
|
-
numero: string;
|
|
7
|
-
/**local onde vai ser o carregamento */
|
|
8
|
-
local: string;
|
|
9
|
-
/**data de quando o carregamento vai ser realizado */
|
|
10
|
-
date: string;
|
|
11
|
-
/**duração para o carregamento */
|
|
12
|
-
duracao: string;
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* EXPORTS
|
|
17
|
-
*/
|
|
18
|
-
export { IHistoryDetails };
|
|
1
|
+
/**
|
|
2
|
+
* IMPORTS
|
|
3
|
+
*/
|
|
4
|
+
type IHistoryDetails = {
|
|
5
|
+
/**número do carregamento */
|
|
6
|
+
numero: string;
|
|
7
|
+
/**local onde vai ser o carregamento */
|
|
8
|
+
local: string;
|
|
9
|
+
/**data de quando o carregamento vai ser realizado */
|
|
10
|
+
date: string;
|
|
11
|
+
/**duração para o carregamento */
|
|
12
|
+
duracao: string;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* EXPORTS
|
|
17
|
+
*/
|
|
18
|
+
export { IHistoryDetails };
|
|
@@ -27,9 +27,10 @@ const ImageCaptureWithRemove: React.FC<IImageCaptureWithRemoveProps> = ({
|
|
|
27
27
|
width = 50,
|
|
28
28
|
height = 50,
|
|
29
29
|
foto = null,
|
|
30
|
+
useRemove = true,
|
|
31
|
+
status,
|
|
30
32
|
handleTakePhoto,
|
|
31
33
|
onRemove,
|
|
32
|
-
status,
|
|
33
34
|
}: IImageCaptureWithRemoveProps) => {
|
|
34
35
|
const statusColor = status === "Cancelado" || status === "Pendente";
|
|
35
36
|
|
|
@@ -67,13 +68,15 @@ const ImageCaptureWithRemove: React.FC<IImageCaptureWithRemoveProps> = ({
|
|
|
67
68
|
}}
|
|
68
69
|
/>
|
|
69
70
|
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
71
|
+
{useRemove && (
|
|
72
|
+
<TouchableOpacity
|
|
73
|
+
testID="remove-button"
|
|
74
|
+
style={{ position: "absolute", top: 2, right: 4 }}
|
|
75
|
+
onPress={onRemove}
|
|
76
|
+
>
|
|
77
|
+
<Icons icon="X_CIRCLE" color={theme.colors.red[400]} size={18} />
|
|
78
|
+
</TouchableOpacity>
|
|
79
|
+
)}
|
|
77
80
|
</>
|
|
78
81
|
) : (
|
|
79
82
|
<Icons icon="PLUS" color={theme.colors.blue[400]} />
|
|
@@ -9,14 +9,17 @@ type IImageCaptureWithRemoveProps = {
|
|
|
9
9
|
/**Imagem capturada */
|
|
10
10
|
foto?: string | null;
|
|
11
11
|
|
|
12
|
+
/**Define o status das fotos */
|
|
13
|
+
status?: "Pendente" | "Concluido" | "Cancelado" | "Andamento";
|
|
14
|
+
|
|
15
|
+
/**propiedade que define se e para utilizar o metódo de remover */
|
|
16
|
+
useRemove?: boolean;
|
|
17
|
+
|
|
12
18
|
/**Remove a imagem capturada */
|
|
13
19
|
onRemove: () => void;
|
|
14
20
|
|
|
15
21
|
/**Captura a imagem */
|
|
16
22
|
handleTakePhoto: () => void;
|
|
17
|
-
|
|
18
|
-
/**Define o status das fotos */
|
|
19
|
-
status?: "Pendente" | "Concluido" | "Cancelado" | "Andamento";
|
|
20
23
|
};
|
|
21
24
|
|
|
22
25
|
/**
|