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,41 +1,41 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* IMPORTS
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import { type ViewProps } from "react-native";
|
|
6
|
-
/**
|
|
7
|
-
* INTERFACE
|
|
8
|
-
*/
|
|
9
|
-
import { IGlobalCss } from "../../styles/global/interface";
|
|
10
|
-
|
|
11
|
-
interface IActivitiesProgress extends ViewProps, IGlobalCss {
|
|
12
|
-
/**
|
|
13
|
-
* Data de fim da atividade
|
|
14
|
-
*/
|
|
15
|
-
data_fim?: string;
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* Duração da atividade
|
|
19
|
-
*/
|
|
20
|
-
duracao?: string;
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* Horário de início da atividade
|
|
24
|
-
*/
|
|
25
|
-
data_inicio?: string;
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* Título/label da atividade
|
|
29
|
-
*/
|
|
30
|
-
titleLabel?: string;
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* Situação da atividade
|
|
34
|
-
*/
|
|
35
|
-
situation: boolean;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* EXPORT
|
|
40
|
-
*/
|
|
41
|
-
export type { IActivitiesProgress };
|
|
1
|
+
/**
|
|
2
|
+
* IMPORTS
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { type ViewProps } from "react-native";
|
|
6
|
+
/**
|
|
7
|
+
* INTERFACE
|
|
8
|
+
*/
|
|
9
|
+
import { IGlobalCss } from "../../styles/global/interface";
|
|
10
|
+
|
|
11
|
+
interface IActivitiesProgress extends ViewProps, IGlobalCss {
|
|
12
|
+
/**
|
|
13
|
+
* Data de fim da atividade
|
|
14
|
+
*/
|
|
15
|
+
data_fim?: string;
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Duração da atividade
|
|
19
|
+
*/
|
|
20
|
+
duracao?: string;
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Horário de início da atividade
|
|
24
|
+
*/
|
|
25
|
+
data_inicio?: string;
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Título/label da atividade
|
|
29
|
+
*/
|
|
30
|
+
titleLabel?: string;
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Situação da atividade
|
|
34
|
+
*/
|
|
35
|
+
situation: boolean;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* EXPORT
|
|
40
|
+
*/
|
|
41
|
+
export type { IActivitiesProgress };
|
|
@@ -1,95 +1,95 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { TouchableOpacity, Image } from "react-native";
|
|
3
|
-
|
|
4
|
-
// components
|
|
5
|
-
import { Box } from "../box";
|
|
6
|
-
import { Typography } from "../typography";
|
|
7
|
-
|
|
8
|
-
// styles
|
|
9
|
-
import { theme } from "../../styles/theme/theme";
|
|
10
|
-
|
|
11
|
-
// icons
|
|
12
|
-
import { Icons } from "../../common/icons-svg";
|
|
13
|
-
|
|
14
|
-
// types
|
|
15
|
-
import { IAvatarProfile } from "./interface";
|
|
16
|
-
|
|
17
|
-
const AvatarProfile: React.FC<IAvatarProfile> = ({
|
|
18
|
-
avatar,
|
|
19
|
-
isEdit = false,
|
|
20
|
-
handleTakePicker,
|
|
21
|
-
name,
|
|
22
|
-
email,
|
|
23
|
-
testID,
|
|
24
|
-
}) => {
|
|
25
|
-
return (
|
|
26
|
-
<Box flexStyle={{ justifyContent: "center", alignItems: "center" }}>
|
|
27
|
-
<Box
|
|
28
|
-
backgroundColor={theme.colors.neutral[25]}
|
|
29
|
-
width={96}
|
|
30
|
-
height={96}
|
|
31
|
-
borderStyled={{ borderRadius: 50 }}
|
|
32
|
-
flexStyle={{ justifyContent: "center", alignItems: "center" }}
|
|
33
|
-
testID={testID}
|
|
34
|
-
>
|
|
35
|
-
<Image
|
|
36
|
-
source={{ uri: avatar ?? "" }}
|
|
37
|
-
alt={avatar ?? "foto de perfil"}
|
|
38
|
-
style={{
|
|
39
|
-
width: 90,
|
|
40
|
-
height: 90,
|
|
41
|
-
borderRadius: 45,
|
|
42
|
-
borderWidth: theme.borderWidths.thin_medium,
|
|
43
|
-
borderColor: theme.colors.black[25],
|
|
44
|
-
}}
|
|
45
|
-
/>
|
|
46
|
-
{isEdit && (
|
|
47
|
-
<Box
|
|
48
|
-
width={20}
|
|
49
|
-
height={20}
|
|
50
|
-
backgroundColor={theme.colors.blue[350]}
|
|
51
|
-
borderStyled={{
|
|
52
|
-
borderRadius: 10,
|
|
53
|
-
borderWidth: theme.borderWidths.thin_medium,
|
|
54
|
-
borderColor: theme.colors.black[25],
|
|
55
|
-
}}
|
|
56
|
-
flexStyle={{ justifyContent: "center", alignItems: "center" }}
|
|
57
|
-
style={{
|
|
58
|
-
position: "absolute",
|
|
59
|
-
bottom: 5,
|
|
60
|
-
right: 5,
|
|
61
|
-
}}
|
|
62
|
-
>
|
|
63
|
-
<TouchableOpacity
|
|
64
|
-
activeOpacity={0.7}
|
|
65
|
-
onPress={handleTakePicker}
|
|
66
|
-
testID="avatar-profile"
|
|
67
|
-
>
|
|
68
|
-
<Icons size={12} icon={"PENCIL"} />
|
|
69
|
-
</TouchableOpacity>
|
|
70
|
-
</Box>
|
|
71
|
-
)}
|
|
72
|
-
</Box>
|
|
73
|
-
|
|
74
|
-
{/* Informações do usuário */}
|
|
75
|
-
<Typography
|
|
76
|
-
text={name}
|
|
77
|
-
size={theme.fontSizes.xl}
|
|
78
|
-
fontFamily={theme.fonts.inter_bold_700}
|
|
79
|
-
fontWeight={"700"}
|
|
80
|
-
lineHeight={theme.fontSizes["2xl"]}
|
|
81
|
-
color={theme.colors.black[100]}
|
|
82
|
-
/>
|
|
83
|
-
<Typography
|
|
84
|
-
text={email}
|
|
85
|
-
size={theme.fontSizes.xs}
|
|
86
|
-
fontFamily={theme.fonts.inter_regular_400}
|
|
87
|
-
fontWeight={"400"}
|
|
88
|
-
lineHeight={theme.fontSizes.sm}
|
|
89
|
-
color={theme.colors.gray[900]}
|
|
90
|
-
/>
|
|
91
|
-
</Box>
|
|
92
|
-
);
|
|
93
|
-
};
|
|
94
|
-
|
|
95
|
-
export { AvatarProfile };
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { TouchableOpacity, Image } from "react-native";
|
|
3
|
+
|
|
4
|
+
// components
|
|
5
|
+
import { Box } from "../box";
|
|
6
|
+
import { Typography } from "../typography";
|
|
7
|
+
|
|
8
|
+
// styles
|
|
9
|
+
import { theme } from "../../styles/theme/theme";
|
|
10
|
+
|
|
11
|
+
// icons
|
|
12
|
+
import { Icons } from "../../common/icons-svg";
|
|
13
|
+
|
|
14
|
+
// types
|
|
15
|
+
import { IAvatarProfile } from "./interface";
|
|
16
|
+
|
|
17
|
+
const AvatarProfile: React.FC<IAvatarProfile> = ({
|
|
18
|
+
avatar,
|
|
19
|
+
isEdit = false,
|
|
20
|
+
handleTakePicker,
|
|
21
|
+
name,
|
|
22
|
+
email,
|
|
23
|
+
testID,
|
|
24
|
+
}) => {
|
|
25
|
+
return (
|
|
26
|
+
<Box flexStyle={{ justifyContent: "center", alignItems: "center" }}>
|
|
27
|
+
<Box
|
|
28
|
+
backgroundColor={theme.colors.neutral[25]}
|
|
29
|
+
width={96}
|
|
30
|
+
height={96}
|
|
31
|
+
borderStyled={{ borderRadius: 50 }}
|
|
32
|
+
flexStyle={{ justifyContent: "center", alignItems: "center" }}
|
|
33
|
+
testID={testID}
|
|
34
|
+
>
|
|
35
|
+
<Image
|
|
36
|
+
source={{ uri: avatar ?? "" }}
|
|
37
|
+
alt={avatar ?? "foto de perfil"}
|
|
38
|
+
style={{
|
|
39
|
+
width: 90,
|
|
40
|
+
height: 90,
|
|
41
|
+
borderRadius: 45,
|
|
42
|
+
borderWidth: theme.borderWidths.thin_medium,
|
|
43
|
+
borderColor: theme.colors.black[25],
|
|
44
|
+
}}
|
|
45
|
+
/>
|
|
46
|
+
{isEdit && (
|
|
47
|
+
<Box
|
|
48
|
+
width={20}
|
|
49
|
+
height={20}
|
|
50
|
+
backgroundColor={theme.colors.blue[350]}
|
|
51
|
+
borderStyled={{
|
|
52
|
+
borderRadius: 10,
|
|
53
|
+
borderWidth: theme.borderWidths.thin_medium,
|
|
54
|
+
borderColor: theme.colors.black[25],
|
|
55
|
+
}}
|
|
56
|
+
flexStyle={{ justifyContent: "center", alignItems: "center" }}
|
|
57
|
+
style={{
|
|
58
|
+
position: "absolute",
|
|
59
|
+
bottom: 5,
|
|
60
|
+
right: 5,
|
|
61
|
+
}}
|
|
62
|
+
>
|
|
63
|
+
<TouchableOpacity
|
|
64
|
+
activeOpacity={0.7}
|
|
65
|
+
onPress={handleTakePicker}
|
|
66
|
+
testID="avatar-profile"
|
|
67
|
+
>
|
|
68
|
+
<Icons size={12} icon={"PENCIL"} />
|
|
69
|
+
</TouchableOpacity>
|
|
70
|
+
</Box>
|
|
71
|
+
)}
|
|
72
|
+
</Box>
|
|
73
|
+
|
|
74
|
+
{/* Informações do usuário */}
|
|
75
|
+
<Typography
|
|
76
|
+
text={name}
|
|
77
|
+
size={theme.fontSizes.xl}
|
|
78
|
+
fontFamily={theme.fonts.inter_bold_700}
|
|
79
|
+
fontWeight={"700"}
|
|
80
|
+
lineHeight={theme.fontSizes["2xl"]}
|
|
81
|
+
color={theme.colors.black[100]}
|
|
82
|
+
/>
|
|
83
|
+
<Typography
|
|
84
|
+
text={email}
|
|
85
|
+
size={theme.fontSizes.xs}
|
|
86
|
+
fontFamily={theme.fonts.inter_regular_400}
|
|
87
|
+
fontWeight={"400"}
|
|
88
|
+
lineHeight={theme.fontSizes.sm}
|
|
89
|
+
color={theme.colors.gray[900]}
|
|
90
|
+
/>
|
|
91
|
+
</Box>
|
|
92
|
+
);
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
export { AvatarProfile };
|
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* IMPORTS
|
|
3
|
-
*/
|
|
4
|
-
import { ViewProps } from "react-native";
|
|
5
|
-
|
|
6
|
-
// typing
|
|
7
|
-
import { IGlobalCss } from "../../styles/global/interface";
|
|
8
|
-
|
|
9
|
-
interface IAvatarProfile extends ViewProps, IGlobalCss {
|
|
10
|
-
/**
|
|
11
|
-
* Função que tira uma foto e editar.
|
|
12
|
-
*/
|
|
13
|
-
handleTakePicker?: () => void;
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* foto do usuário.
|
|
17
|
-
*/
|
|
18
|
-
avatar: string;
|
|
19
|
-
|
|
20
|
-
/**
|
|
21
|
-
* nome do usuário.
|
|
22
|
-
*/
|
|
23
|
-
name: string;
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
* email do usuário.
|
|
27
|
-
*/
|
|
28
|
-
email: string;
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* A propriedade para editar a foto do usuário.
|
|
32
|
-
*/
|
|
33
|
-
isEdit: boolean;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* EXPORTS
|
|
38
|
-
*/
|
|
39
|
-
export type { IAvatarProfile };
|
|
1
|
+
/**
|
|
2
|
+
* IMPORTS
|
|
3
|
+
*/
|
|
4
|
+
import { ViewProps } from "react-native";
|
|
5
|
+
|
|
6
|
+
// typing
|
|
7
|
+
import { IGlobalCss } from "../../styles/global/interface";
|
|
8
|
+
|
|
9
|
+
interface IAvatarProfile extends ViewProps, IGlobalCss {
|
|
10
|
+
/**
|
|
11
|
+
* Função que tira uma foto e editar.
|
|
12
|
+
*/
|
|
13
|
+
handleTakePicker?: () => void;
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* foto do usuário.
|
|
17
|
+
*/
|
|
18
|
+
avatar: string;
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* nome do usuário.
|
|
22
|
+
*/
|
|
23
|
+
name: string;
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* email do usuário.
|
|
27
|
+
*/
|
|
28
|
+
email: string;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* A propriedade para editar a foto do usuário.
|
|
32
|
+
*/
|
|
33
|
+
isEdit: boolean;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* EXPORTS
|
|
38
|
+
*/
|
|
39
|
+
export type { IAvatarProfile };
|
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* IMPORTS
|
|
3
|
-
*/
|
|
4
|
-
import { StyleSheet } from "react-native";
|
|
5
|
-
|
|
6
|
-
// typings
|
|
7
|
-
import { type IButtonProps } from "./interface";
|
|
8
|
-
import { IGlobalCss } from "../../styles/global/interface";
|
|
9
|
-
|
|
10
|
-
import { stylesGlobal } from "../../styles/global/styles";
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
*
|
|
14
|
-
*/
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
const styles = (props: ButtonProps) =>
|
|
18
|
-
StyleSheet.create({
|
|
19
|
-
buttonStyle: { ...stylesGlobal(props), ...props } as IGlobalCss,
|
|
20
|
-
buttonTextStyle: {
|
|
21
|
-
color: props.buttonTextStyle?.color ?? "black",
|
|
22
|
-
fontSize: props.buttonTextStyle?.fontSize ?? 14,
|
|
23
|
-
letterSpacing: props.buttonTextStyle?.letterSpacing ?? 0.5,
|
|
24
|
-
lineHeight: props.buttonTextStyle?.lineHeight ?? 24,
|
|
25
|
-
fontWeight: props.buttonTextStyle?.fontWeight,
|
|
26
|
-
fontFamily: props.buttonTextStyle?.fontFamily ?? "Inter-Medium",
|
|
27
|
-
textAlign: props.buttonTextStyle?.textAlign,
|
|
28
|
-
},
|
|
29
|
-
});
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
* EXPORTS
|
|
33
|
-
*/
|
|
34
|
-
export { styles };
|
|
1
|
+
/**
|
|
2
|
+
* IMPORTS
|
|
3
|
+
*/
|
|
4
|
+
import { StyleSheet } from "react-native";
|
|
5
|
+
|
|
6
|
+
// typings
|
|
7
|
+
import { type IButtonProps } from "./interface";
|
|
8
|
+
import { IGlobalCss } from "../../styles/global/interface";
|
|
9
|
+
|
|
10
|
+
import { stylesGlobal } from "../../styles/global/styles";
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Type ButtonProps
|
|
14
|
+
*/
|
|
15
|
+
type ButtonProps = Omit<IButtonProps, "color"> & Omit<IGlobalCss, "color">;
|
|
16
|
+
|
|
17
|
+
const styles = (props: ButtonProps) =>
|
|
18
|
+
StyleSheet.create({
|
|
19
|
+
buttonStyle: { ...stylesGlobal(props), ...props } as IGlobalCss,
|
|
20
|
+
buttonTextStyle: {
|
|
21
|
+
color: props.buttonTextStyle?.color ?? "black",
|
|
22
|
+
fontSize: props.buttonTextStyle?.fontSize ?? 14,
|
|
23
|
+
letterSpacing: props.buttonTextStyle?.letterSpacing ?? 0.5,
|
|
24
|
+
lineHeight: props.buttonTextStyle?.lineHeight ?? 24,
|
|
25
|
+
fontWeight: props.buttonTextStyle?.fontWeight,
|
|
26
|
+
fontFamily: props.buttonTextStyle?.fontFamily ?? "Inter-Medium",
|
|
27
|
+
textAlign: props.buttonTextStyle?.textAlign,
|
|
28
|
+
},
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* EXPORTS
|
|
33
|
+
*/
|
|
34
|
+
export { styles };
|
|
@@ -23,7 +23,9 @@ const CardHistory: React.FC<ICardHistory> = ({
|
|
|
23
23
|
title = "Carregamento #01020304050607",
|
|
24
24
|
local = "Doca 1, Patío 03 - Usiminas Ipatinga",
|
|
25
25
|
vehicle = "EXP-0000",
|
|
26
|
-
|
|
26
|
+
data_start = "12:34 10/03/2025",
|
|
27
|
+
data_end = "13:34 10/03/2025",
|
|
28
|
+
duration = "01:34",
|
|
27
29
|
testID,
|
|
28
30
|
handleNavigation,
|
|
29
31
|
}: ICardHistory) => {
|
|
@@ -49,7 +51,7 @@ const CardHistory: React.FC<ICardHistory> = ({
|
|
|
49
51
|
}}
|
|
50
52
|
style={{
|
|
51
53
|
width: "100%",
|
|
52
|
-
|
|
54
|
+
flex: 1,
|
|
53
55
|
borderRadius: theme.borderWidths.thick_medium,
|
|
54
56
|
}}
|
|
55
57
|
/>
|
|
@@ -108,7 +110,7 @@ const CardHistory: React.FC<ICardHistory> = ({
|
|
|
108
110
|
/>
|
|
109
111
|
</Box>
|
|
110
112
|
|
|
111
|
-
{/**
|
|
113
|
+
{/**DATA INICIO DO CARREGAMENTO */}
|
|
112
114
|
<Box
|
|
113
115
|
flexStyle={{
|
|
114
116
|
flexDirection: "row",
|
|
@@ -120,7 +122,7 @@ const CardHistory: React.FC<ICardHistory> = ({
|
|
|
120
122
|
}}
|
|
121
123
|
>
|
|
122
124
|
<Typography
|
|
123
|
-
text={"Data:"}
|
|
125
|
+
text={"Data Inicio:"}
|
|
124
126
|
color={theme.colors.neutral[25]}
|
|
125
127
|
size={theme.fontSizes.xs}
|
|
126
128
|
fontFamily={theme.fonts.inter_regular_400}
|
|
@@ -128,7 +130,67 @@ const CardHistory: React.FC<ICardHistory> = ({
|
|
|
128
130
|
letterSpacing={"regular"}
|
|
129
131
|
/>
|
|
130
132
|
<Typography
|
|
131
|
-
text={
|
|
133
|
+
text={data_start}
|
|
134
|
+
color={theme.colors.neutral[25]}
|
|
135
|
+
size={theme.fontSizes.xs}
|
|
136
|
+
fontFamily={theme.fonts.inter_bold_700}
|
|
137
|
+
lineHeight={theme.fontSizes.md ?? 16}
|
|
138
|
+
letterSpacing={"regular"}
|
|
139
|
+
marginLeft={4}
|
|
140
|
+
/>
|
|
141
|
+
</Box>
|
|
142
|
+
|
|
143
|
+
{/**DATA FIM DO CARREGAMENTO */}
|
|
144
|
+
<Box
|
|
145
|
+
flexStyle={{
|
|
146
|
+
flexDirection: "row",
|
|
147
|
+
justifyContent: "flex-start",
|
|
148
|
+
alignItems: "center",
|
|
149
|
+
}}
|
|
150
|
+
marginStyle={{
|
|
151
|
+
marginBottom: 4,
|
|
152
|
+
}}
|
|
153
|
+
>
|
|
154
|
+
<Typography
|
|
155
|
+
text={"Data Fim:"}
|
|
156
|
+
color={theme.colors.neutral[25]}
|
|
157
|
+
size={theme.fontSizes.xs}
|
|
158
|
+
fontFamily={theme.fonts.inter_regular_400}
|
|
159
|
+
lineHeight={theme.fontSizes.md ?? 16}
|
|
160
|
+
letterSpacing={"regular"}
|
|
161
|
+
/>
|
|
162
|
+
<Typography
|
|
163
|
+
text={data_end}
|
|
164
|
+
color={theme.colors.neutral[25]}
|
|
165
|
+
size={theme.fontSizes.xs}
|
|
166
|
+
fontFamily={theme.fonts.inter_bold_700}
|
|
167
|
+
lineHeight={theme.fontSizes.md ?? 16}
|
|
168
|
+
letterSpacing={"regular"}
|
|
169
|
+
marginLeft={4}
|
|
170
|
+
/>
|
|
171
|
+
</Box>
|
|
172
|
+
|
|
173
|
+
{/**DURAÇÃO DO CARREGAMENTO */}
|
|
174
|
+
<Box
|
|
175
|
+
flexStyle={{
|
|
176
|
+
flexDirection: "row",
|
|
177
|
+
justifyContent: "flex-start",
|
|
178
|
+
alignItems: "center",
|
|
179
|
+
}}
|
|
180
|
+
marginStyle={{
|
|
181
|
+
marginBottom: 4,
|
|
182
|
+
}}
|
|
183
|
+
>
|
|
184
|
+
<Typography
|
|
185
|
+
text={"Duração:"}
|
|
186
|
+
color={theme.colors.neutral[25]}
|
|
187
|
+
size={theme.fontSizes.xs}
|
|
188
|
+
fontFamily={theme.fonts.inter_regular_400}
|
|
189
|
+
lineHeight={theme.fontSizes.md ?? 16}
|
|
190
|
+
letterSpacing={"regular"}
|
|
191
|
+
/>
|
|
192
|
+
<Typography
|
|
193
|
+
text={duration}
|
|
132
194
|
color={theme.colors.neutral[25]}
|
|
133
195
|
size={theme.fontSizes.xs}
|
|
134
196
|
fontFamily={theme.fonts.inter_bold_700}
|
|
@@ -1,28 +1,34 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* IMPORTS
|
|
3
|
-
*/
|
|
4
|
-
import { TouchableOpacityProps } from "react-native";
|
|
5
|
-
|
|
6
|
-
// typing
|
|
7
|
-
import { IGlobalCss } from "../../styles/global/interface";
|
|
8
|
-
|
|
9
|
-
interface ICardHistory extends TouchableOpacityProps, IGlobalCss {
|
|
10
|
-
/**propriedade que indica o título do carregamento */
|
|
11
|
-
title?: string;
|
|
12
|
-
|
|
13
|
-
/**propriedade que indica o local do carregamento */
|
|
14
|
-
local?: string;
|
|
15
|
-
|
|
16
|
-
/**propriedade que indica o veiculo */
|
|
17
|
-
vehicle?: string;
|
|
18
|
-
|
|
19
|
-
/**propriedade que indica
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
1
|
+
/**
|
|
2
|
+
* IMPORTS
|
|
3
|
+
*/
|
|
4
|
+
import { TouchableOpacityProps } from "react-native";
|
|
5
|
+
|
|
6
|
+
// typing
|
|
7
|
+
import { IGlobalCss } from "../../styles/global/interface";
|
|
8
|
+
|
|
9
|
+
interface ICardHistory extends TouchableOpacityProps, IGlobalCss {
|
|
10
|
+
/**propriedade que indica o título do carregamento */
|
|
11
|
+
title?: string;
|
|
12
|
+
|
|
13
|
+
/**propriedade que indica o local do carregamento */
|
|
14
|
+
local?: string;
|
|
15
|
+
|
|
16
|
+
/**propriedade que indica o veiculo */
|
|
17
|
+
vehicle?: string;
|
|
18
|
+
|
|
19
|
+
/**propriedade que indica inicio do carregamento */
|
|
20
|
+
data_start?: string;
|
|
21
|
+
|
|
22
|
+
/**propriedade que indica fim do carregamento */
|
|
23
|
+
data_end?: string;
|
|
24
|
+
|
|
25
|
+
/**propiedade que infica o a duração gasta no carregamento */
|
|
26
|
+
duration?: string;
|
|
27
|
+
|
|
28
|
+
handleNavigation: () => void;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* EXPORTS
|
|
33
|
+
*/
|
|
34
|
+
export { ICardHistory };
|
|
@@ -16,7 +16,11 @@ import { ICardLoading } from "./interface";
|
|
|
16
16
|
|
|
17
17
|
// styles
|
|
18
18
|
import { theme } from "../../styles/theme/theme";
|
|
19
|
-
import {
|
|
19
|
+
import {
|
|
20
|
+
getStatusTextColor,
|
|
21
|
+
getStatusColor,
|
|
22
|
+
StatusType,
|
|
23
|
+
} from "../../utils/status-color/return-color";
|
|
20
24
|
|
|
21
25
|
/**
|
|
22
26
|
*
|
|
@@ -56,7 +60,7 @@ const CardLoading: React.FC<ICardLoading> = ({
|
|
|
56
60
|
}}
|
|
57
61
|
style={{
|
|
58
62
|
width: "100%",
|
|
59
|
-
|
|
63
|
+
flex: 1,
|
|
60
64
|
borderRadius: theme.borderWidths.thick_medium,
|
|
61
65
|
}}
|
|
62
66
|
/>
|
|
@@ -198,7 +202,7 @@ const CardLoading: React.FC<ICardLoading> = ({
|
|
|
198
202
|
justifyContent: "space-between",
|
|
199
203
|
}}
|
|
200
204
|
marginStyle={{
|
|
201
|
-
marginBottom:
|
|
205
|
+
marginBottom: 8,
|
|
202
206
|
}}
|
|
203
207
|
>
|
|
204
208
|
<Box
|
|
@@ -246,6 +250,14 @@ const CardLoading: React.FC<ICardLoading> = ({
|
|
|
246
250
|
justifyContent: "flex-start",
|
|
247
251
|
alignItems: "center",
|
|
248
252
|
}}
|
|
253
|
+
backgroundColor={getStatusColor(status as StatusType)}
|
|
254
|
+
height={22}
|
|
255
|
+
borderStyled={{
|
|
256
|
+
borderWidth: 1,
|
|
257
|
+
borderRadius: 11,
|
|
258
|
+
borderColor: "transparent",
|
|
259
|
+
}}
|
|
260
|
+
paddingStyle={{ paddingLeft: 8, paddingRight: 8 }}
|
|
249
261
|
>
|
|
250
262
|
<Typography
|
|
251
263
|
text={"Status:"}
|
|
@@ -257,7 +269,7 @@ const CardLoading: React.FC<ICardLoading> = ({
|
|
|
257
269
|
/>
|
|
258
270
|
<Typography
|
|
259
271
|
text={status}
|
|
260
|
-
color={
|
|
272
|
+
color={getStatusTextColor(status as StatusType)}
|
|
261
273
|
size={theme.fontSizes.xs}
|
|
262
274
|
fontFamily={theme.fonts.inter_bold_700}
|
|
263
275
|
lineHeight={theme.fontSizes.md ?? 16}
|