react-native-exp-fig 0.1.21 → 0.1.23
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/@types/as-base-component.js +12 -0
- package/lib/commonjs/@types/as-base-component.js.map +1 -0
- 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/eclamation-triangle/index.js +33 -0
- package/lib/commonjs/common/icons-svg/eclamation-triangle/index.js.map +1 -0
- package/lib/commonjs/common/icons-svg/index.js +8 -0
- package/lib/commonjs/common/icons-svg/index.js.map +1 -1
- package/lib/commonjs/common/icons-svg/truck/index.js +2 -2
- package/lib/commonjs/common/icons-svg/truck/index.js.map +1 -1
- package/lib/commonjs/components/activities-daily/index.js +9 -9
- package/lib/commonjs/components/activities-daily/index.js.map +1 -1
- package/lib/commonjs/components/activities-progress/index.js +14 -14
- package/lib/commonjs/components/activities-progress/index.js.map +1 -1
- package/lib/commonjs/components/avatar-profile/index.js +4 -4
- package/lib/commonjs/components/avatar-profile/index.js.map +1 -1
- package/lib/commonjs/components/box/index.js +27 -22
- package/lib/commonjs/components/box/index.js.map +1 -1
- package/lib/commonjs/components/box/interface.d.js.map +1 -1
- package/lib/commonjs/components/box/styles.js.map +1 -1
- package/lib/commonjs/components/card-history/index.js +16 -16
- package/lib/commonjs/components/card-history/index.js.map +1 -1
- package/lib/commonjs/components/card-hours/index.js +3 -3
- package/lib/commonjs/components/card-hours/index.js.map +1 -1
- package/lib/commonjs/components/card-loading/index.js +13 -13
- package/lib/commonjs/components/card-loading/index.js.map +1 -1
- package/lib/commonjs/components/card-scheduled-journey/index.js +6 -6
- package/lib/commonjs/components/card-scheduled-journey/index.js.map +1 -1
- package/lib/commonjs/components/card-work-session/index.js +12 -12
- package/lib/commonjs/components/card-work-session/index.js.map +1 -1
- package/lib/commonjs/components/check-box/index.js +5 -5
- package/lib/commonjs/components/check-box/index.js.map +1 -1
- package/lib/commonjs/components/coil/index.js +5 -5
- package/lib/commonjs/components/coil/index.js.map +1 -1
- package/lib/commonjs/components/filter-date-selector/index.js +2 -2
- package/lib/commonjs/components/filter-date-selector/index.js.map +1 -1
- package/lib/commonjs/components/header-profile/index.js +8 -8
- package/lib/commonjs/components/header-profile/index.js.map +1 -1
- package/lib/commonjs/components/history-activities-card/index.js +198 -0
- package/lib/commonjs/components/history-activities-card/index.js.map +1 -0
- package/lib/commonjs/components/history-activities-card/interface.js +6 -0
- package/lib/commonjs/components/history-activities-card/interface.js.map +1 -0
- package/lib/commonjs/components/history-details/index.js +5 -5
- package/lib/commonjs/components/history-details/index.js.map +1 -1
- package/lib/commonjs/components/image-capture-with-remove/index.js +2 -2
- package/lib/commonjs/components/image-capture-with-remove/index.js.map +1 -1
- package/lib/commonjs/components/input/index.js +11 -11
- package/lib/commonjs/components/input/index.js.map +1 -1
- package/lib/commonjs/components/loading-details/index.js +10 -10
- package/lib/commonjs/components/loading-details/index.js.map +1 -1
- package/lib/commonjs/components/loading-progress/index.js +5 -5
- package/lib/commonjs/components/loading-progress/index.js.map +1 -1
- package/lib/commonjs/components/menu-item/index.js +3 -3
- package/lib/commonjs/components/menu-item/index.js.map +1 -1
- package/lib/commonjs/components/modal-activities/index.js +5 -5
- package/lib/commonjs/components/modal-activities/index.js.map +1 -1
- package/lib/commonjs/components/modal-change-activity/index.js +217 -0
- package/lib/commonjs/components/modal-change-activity/index.js.map +1 -0
- package/lib/commonjs/components/no-data/index.js +2 -2
- package/lib/commonjs/components/no-data/index.js.map +1 -1
- package/lib/commonjs/components/notification-loading/index.js +12 -12
- package/lib/commonjs/components/notification-loading/index.js.map +1 -1
- package/lib/commonjs/components/profile-menu-option/index.js +3 -3
- package/lib/commonjs/components/profile-menu-option/index.js.map +1 -1
- package/lib/commonjs/components/scheduled-journey-indicators/index.js +4 -4
- package/lib/commonjs/components/scheduled-journey-indicators/index.js.map +1 -1
- package/lib/commonjs/components/selects/select-option/index.js +28 -11
- package/lib/commonjs/components/selects/select-option/index.js.map +1 -1
- package/lib/commonjs/components/selects/select-option/interface.d.js.map +1 -1
- package/lib/commonjs/components/step-indicator/index.js +45 -7
- package/lib/commonjs/components/step-indicator/index.js.map +1 -1
- package/lib/commonjs/components/user-profile/index.js +9 -9
- package/lib/commonjs/components/user-profile/index.js.map +1 -1
- package/lib/commonjs/helpers/text-utils.js +21 -0
- package/lib/commonjs/helpers/text-utils.js.map +1 -0
- package/lib/commonjs/index.js +17 -2
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/stories/box/box.stories.js +2 -2
- package/lib/commonjs/stories/box/box.stories.js.map +1 -1
- package/lib/commonjs/stories/history-activities-card/history-activities-card.stories.js +104 -0
- package/lib/commonjs/stories/history-activities-card/history-activities-card.stories.js.map +1 -0
- package/lib/commonjs/stories/modal-change-activity/modal-change-activity.stories.js +52 -0
- package/lib/commonjs/stories/modal-change-activity/modal-change-activity.stories.js.map +1 -0
- package/lib/commonjs/utils/get-icon-by-property/index.js.map +1 -1
- package/lib/module/@types/as-base-component.js +6 -0
- package/lib/module/@types/as-base-component.js.map +1 -0
- 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/eclamation-triangle/index.js +25 -0
- package/lib/module/common/icons-svg/eclamation-triangle/index.js.map +1 -0
- package/lib/module/common/icons-svg/index.js +8 -0
- package/lib/module/common/icons-svg/index.js.map +1 -1
- package/lib/module/common/icons-svg/truck/index.js +2 -2
- package/lib/module/common/icons-svg/truck/index.js.map +1 -1
- package/lib/module/components/activities-daily/index.js +5 -5
- package/lib/module/components/activities-daily/index.js.map +1 -1
- package/lib/module/components/activities-progress/index.js +5 -5
- package/lib/module/components/activities-progress/index.js.map +1 -1
- package/lib/module/components/avatar-profile/index.js +1 -1
- package/lib/module/components/avatar-profile/index.js.map +1 -1
- package/lib/module/components/box/index.js +24 -21
- package/lib/module/components/box/index.js.map +1 -1
- package/lib/module/components/box/interface.d.js.map +1 -1
- package/lib/module/components/box/styles.js.map +1 -1
- package/lib/module/components/card-history/index.js +8 -8
- package/lib/module/components/card-history/index.js.map +1 -1
- package/lib/module/components/card-hours/index.js +1 -1
- package/lib/module/components/card-hours/index.js.map +1 -1
- package/lib/module/components/card-loading/index.js +1 -1
- package/lib/module/components/card-loading/index.js.map +1 -1
- package/lib/module/components/card-scheduled-journey/index.js +1 -1
- package/lib/module/components/card-scheduled-journey/index.js.map +1 -1
- package/lib/module/components/card-work-session/index.js +1 -1
- package/lib/module/components/card-work-session/index.js.map +1 -1
- package/lib/module/components/check-box/index.js +1 -1
- package/lib/module/components/check-box/index.js.map +1 -1
- package/lib/module/components/coil/index.js +1 -1
- package/lib/module/components/coil/index.js.map +1 -1
- package/lib/module/components/filter-date-selector/index.js +1 -1
- package/lib/module/components/filter-date-selector/index.js.map +1 -1
- package/lib/module/components/header-profile/index.js +1 -1
- package/lib/module/components/header-profile/index.js.map +1 -1
- package/lib/module/components/history-activities-card/index.js +190 -0
- package/lib/module/components/history-activities-card/index.js.map +1 -0
- package/lib/module/components/history-activities-card/interface.js +2 -0
- package/lib/module/components/history-activities-card/interface.js.map +1 -0
- package/lib/module/components/history-details/index.js +1 -1
- package/lib/module/components/history-details/index.js.map +1 -1
- package/lib/module/components/image-capture-with-remove/index.js +1 -1
- package/lib/module/components/image-capture-with-remove/index.js.map +1 -1
- package/lib/module/components/input/index.js +1 -1
- package/lib/module/components/input/index.js.map +1 -1
- package/lib/module/components/loading-details/index.js +5 -5
- package/lib/module/components/loading-details/index.js.map +1 -1
- package/lib/module/components/loading-progress/index.js +1 -1
- package/lib/module/components/loading-progress/index.js.map +1 -1
- package/lib/module/components/menu-item/index.js +1 -1
- package/lib/module/components/menu-item/index.js.map +1 -1
- package/lib/module/components/modal-activities/index.js +1 -1
- package/lib/module/components/modal-activities/index.js.map +1 -1
- package/lib/module/components/modal-change-activity/index.js +208 -0
- package/lib/module/components/modal-change-activity/index.js.map +1 -0
- package/lib/module/components/no-data/index.js +1 -1
- package/lib/module/components/no-data/index.js.map +1 -1
- package/lib/module/components/notification-loading/index.js +5 -5
- package/lib/module/components/notification-loading/index.js.map +1 -1
- package/lib/module/components/profile-menu-option/index.js +1 -1
- package/lib/module/components/profile-menu-option/index.js.map +1 -1
- package/lib/module/components/scheduled-journey-indicators/index.js +1 -1
- package/lib/module/components/scheduled-journey-indicators/index.js.map +1 -1
- package/lib/module/components/selects/select-option/index.js +28 -11
- package/lib/module/components/selects/select-option/index.js.map +1 -1
- package/lib/module/components/selects/select-option/interface.d.js.map +1 -1
- package/lib/module/components/step-indicator/index.js +45 -7
- package/lib/module/components/step-indicator/index.js.map +1 -1
- package/lib/module/components/user-profile/index.js +1 -1
- package/lib/module/components/user-profile/index.js.map +1 -1
- package/lib/module/helpers/text-utils.js +14 -0
- package/lib/module/helpers/text-utils.js.map +1 -0
- package/lib/module/index.js +3 -1
- package/lib/module/index.js.map +1 -1
- package/lib/module/stories/box/box.stories.js +1 -1
- package/lib/module/stories/box/box.stories.js.map +1 -1
- package/lib/module/stories/history-activities-card/history-activities-card.stories.js +97 -0
- package/lib/module/stories/history-activities-card/history-activities-card.stories.js.map +1 -0
- package/lib/module/stories/modal-change-activity/modal-change-activity.stories.js +45 -0
- package/lib/module/stories/modal-change-activity/modal-change-activity.stories.js.map +1 -0
- package/lib/module/utils/get-icon-by-property/index.js +0 -1
- package/lib/module/utils/get-icon-by-property/index.js.map +1 -1
- package/lib/typescript/src/@types/as-base-component.d.ts +2 -0
- package/lib/typescript/src/common/icons-svg/constants/index.d.ts +1 -0
- package/lib/typescript/src/common/icons-svg/eclamation-triangle/index.d.ts +4 -0
- package/lib/typescript/src/components/box/index.d.ts +4 -3
- package/lib/typescript/src/components/box/styles.d.ts +2 -2
- package/lib/typescript/src/components/history-activities-card/index.d.ts +76 -0
- package/lib/typescript/src/components/history-activities-card/interface.d.ts +120 -0
- package/lib/typescript/src/components/modal-change-activity/index.d.ts +24 -0
- package/lib/typescript/src/helpers/text-utils.d.ts +7 -0
- package/lib/typescript/src/index.d.ts +3 -1
- package/lib/typescript/src/stories/box/box.stories.d.ts +1 -1
- package/lib/typescript/src/stories/history-activities-card/history-activities-card.stories.d.ts +10 -0
- package/lib/typescript/src/stories/modal-change-activity/modal-change-activity.stories.d.ts +9 -0
- package/lib/typescript/src/utils/get-icon-by-property/index.d.ts +2 -1
- package/package.json +11 -8
- package/src/@types/as-base-component.ts +9 -0
- package/src/common/icons-svg/constants/index.ts +1 -0
- package/src/common/icons-svg/eclamation-triangle/index.tsx +46 -0
- package/src/common/icons-svg/index.tsx +5 -1
- package/src/common/icons-svg/truck/index.tsx +2 -2
- package/src/components/activities-daily/index.tsx +116 -116
- package/src/components/activities-progress/index.tsx +170 -170
- package/src/components/avatar-profile/index.tsx +1 -1
- package/src/components/box/index.tsx +28 -22
- package/src/components/box/interface.d.ts +2 -2
- package/src/components/box/styles.ts +2 -2
- package/src/components/card-history/index.tsx +221 -221
- package/src/components/card-hours/index.tsx +2 -1
- package/src/components/card-loading/index.tsx +1 -1
- package/src/components/card-scheduled-journey/index.tsx +1 -1
- package/src/components/card-work-session/index.tsx +1 -1
- package/src/components/check-box/index.tsx +1 -1
- package/src/components/coil/index.tsx +1 -1
- package/src/components/filter-date-selector/index.tsx +1 -1
- package/src/components/header-profile/index.tsx +1 -1
- package/src/components/history-activities-card/index.tsx +217 -0
- package/src/components/history-activities-card/interface.ts +147 -0
- package/src/components/history-details/index.tsx +1 -1
- package/src/components/image-capture-with-remove/index.tsx +1 -1
- package/src/components/input/index.tsx +1 -1
- package/src/components/loading-details/index.tsx +156 -156
- package/src/components/loading-progress/index.tsx +1 -1
- package/src/components/menu-item/index.tsx +1 -1
- package/src/components/modal-activities/index.tsx +1 -1
- package/src/components/modal-change-activity/index.tsx +200 -0
- package/src/components/no-data/index.tsx +1 -1
- package/src/components/notification-loading/index.tsx +157 -157
- package/src/components/profile-menu-option/index.tsx +1 -1
- package/src/components/scheduled-journey-indicators/index.tsx +1 -1
- package/src/components/selects/select-option/index.tsx +115 -100
- package/src/components/selects/select-option/interface.d.ts +18 -18
- package/src/components/step-indicator/index.tsx +63 -7
- package/src/components/user-profile/index.tsx +1 -1
- package/src/helpers/text-utils.ts +15 -0
- package/src/index.ts +3 -1
- package/src/stories/box/box.stories.tsx +1 -1
- package/src/stories/history-activities-card/history-activities-card.stories.tsx +107 -0
- package/src/stories/modal-change-activity/modal-change-activity.stories.tsx +51 -0
- package/src/utils/get-icon-by-property/index.tsx +13 -1
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import Svg, { Path } from "react-native-svg";
|
|
3
|
+
import { type ISvgProps } from "../interface";
|
|
4
|
+
|
|
5
|
+
const SvgIconWarningTriangle: React.FC<ISvgProps> = ({
|
|
6
|
+
color,
|
|
7
|
+
size,
|
|
8
|
+
background,
|
|
9
|
+
}) => (
|
|
10
|
+
<Svg
|
|
11
|
+
width={size ?? 36}
|
|
12
|
+
height={size ?? 36}
|
|
13
|
+
viewBox="0 0 36 36"
|
|
14
|
+
fill="none"
|
|
15
|
+
>
|
|
16
|
+
{/* Triângulo com cantos arredondados usando curvas (Q) */}
|
|
17
|
+
<Path
|
|
18
|
+
d="M18 4
|
|
19
|
+
C19 4 20 5 20.5 6
|
|
20
|
+
L33.5 30
|
|
21
|
+
C34 31 33 32 32 32
|
|
22
|
+
H4
|
|
23
|
+
C3 32 2 31 2.5 30
|
|
24
|
+
L15.5 6
|
|
25
|
+
C16 5 17 4 18 4
|
|
26
|
+
Z"
|
|
27
|
+
fill={background ?? "#F4B31D"}
|
|
28
|
+
/>
|
|
29
|
+
|
|
30
|
+
{/* Traço da exclamação */}
|
|
31
|
+
<Path
|
|
32
|
+
d="M18 13V20"
|
|
33
|
+
stroke={color ?? "#fff"}
|
|
34
|
+
strokeWidth="2.5"
|
|
35
|
+
strokeLinecap="round"
|
|
36
|
+
/>
|
|
37
|
+
|
|
38
|
+
{/* Ponto da exclamação */}
|
|
39
|
+
<Path
|
|
40
|
+
d="M18 25a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z"
|
|
41
|
+
fill={color ?? "#fff"}
|
|
42
|
+
/>
|
|
43
|
+
</Svg>
|
|
44
|
+
);
|
|
45
|
+
|
|
46
|
+
export { SvgIconWarningTriangle };
|
|
@@ -57,6 +57,7 @@ import { SvgIconHourglass } from "./hourglass";
|
|
|
57
57
|
import { SvgCurrencyCircleDollar } from "./currency-circle-dollar";
|
|
58
58
|
import { SvgPackage } from "./package";
|
|
59
59
|
import { SvgIconHouse } from "./house";
|
|
60
|
+
import { SvgIconWarningTriangle } from "./eclamation-triangle";
|
|
60
61
|
|
|
61
62
|
// typing
|
|
62
63
|
import { ISvgProps } from "./interface";
|
|
@@ -197,7 +198,10 @@ const Icons: React.FC<ISvgProps> = ({ icon, color, size, background }) => {
|
|
|
197
198
|
background={background}
|
|
198
199
|
/>
|
|
199
200
|
);
|
|
200
|
-
|
|
201
|
+
|
|
202
|
+
case "EXCLAMATION_TRIANGLE":
|
|
203
|
+
return <SvgIconWarningTriangle icon={"EXCLAMATION_TRIANGLE"} color={color} size={size} background={background} />;
|
|
204
|
+
|
|
201
205
|
case "PLUS":
|
|
202
206
|
return <SvgIconPlus color={color} size={size} icon={"PLUS"} />;
|
|
203
207
|
|
|
@@ -19,14 +19,14 @@ const IconTruck: React.FC<ISvgProps> = ({ color, size, ...res }) => (
|
|
|
19
19
|
{...res}
|
|
20
20
|
>
|
|
21
21
|
<Path
|
|
22
|
-
stroke={color ?? "#
|
|
22
|
+
stroke={color ?? "#fff"}
|
|
23
23
|
strokeWidth={2}
|
|
24
24
|
strokeLinecap="round"
|
|
25
25
|
strokeLinejoin="round"
|
|
26
26
|
d="M10 17h4V5H2v12h3M20 17h2v-3.34a4 4 0 00-1.17-2.83L19 9h-5M14 17h1"
|
|
27
27
|
/>
|
|
28
28
|
<Path
|
|
29
|
-
stroke={color ?? "#
|
|
29
|
+
stroke={color ?? "#fff"}
|
|
30
30
|
strokeWidth={2}
|
|
31
31
|
strokeLinecap="round"
|
|
32
32
|
strokeLinejoin="round"
|
|
@@ -1,116 +1,116 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* IMPORTS
|
|
3
|
-
*/
|
|
4
|
-
import React from "react";
|
|
5
|
-
import { TouchableOpacity } from "react-native";
|
|
6
|
-
|
|
7
|
-
// components
|
|
8
|
-
import
|
|
9
|
-
import { Typography } from "../../components/typography";
|
|
10
|
-
|
|
11
|
-
//commons/ icons
|
|
12
|
-
import { Icons } from "../../common/icons-svg";
|
|
13
|
-
|
|
14
|
-
// styles
|
|
15
|
-
import { theme } from "../../styles/theme/theme";
|
|
16
|
-
|
|
17
|
-
// typings
|
|
18
|
-
import { IActivitiesDaily } from "./interface";
|
|
19
|
-
|
|
20
|
-
const ActivitiesDaily: React.FC<IActivitiesDaily> = ({ handleActivity }) => {
|
|
21
|
-
return (
|
|
22
|
-
<Box
|
|
23
|
-
testID={"activities-daily"}
|
|
24
|
-
width={"100%"}
|
|
25
|
-
height={100}
|
|
26
|
-
backgroundColor={theme.colors.neutral[25]}
|
|
27
|
-
borderStyled={{
|
|
28
|
-
borderRadius: theme.borderWidths.thick_medium,
|
|
29
|
-
}}
|
|
30
|
-
>
|
|
31
|
-
<Box
|
|
32
|
-
width={"100%"}
|
|
33
|
-
height={30}
|
|
34
|
-
backgroundColor={theme.colors.blue[400]}
|
|
35
|
-
borderStyled={{
|
|
36
|
-
borderTopLeftRadius: theme.borderWidths.thin_bold,
|
|
37
|
-
borderTopRightRadius: theme.borderWidths.thin_bold,
|
|
38
|
-
borderColor: theme.colors.blue[400],
|
|
39
|
-
}}
|
|
40
|
-
flexStyle={{
|
|
41
|
-
justifyContent: "center",
|
|
42
|
-
}}
|
|
43
|
-
>
|
|
44
|
-
<Typography
|
|
45
|
-
text={"Atividades diárias"}
|
|
46
|
-
color={theme.colors.neutral[25]}
|
|
47
|
-
size={theme.fontSizes.sm}
|
|
48
|
-
fontFamily={theme.fonts.inter_medium_500}
|
|
49
|
-
fontWeight={"500"}
|
|
50
|
-
lineHeight={theme.fontSizes.lg}
|
|
51
|
-
marginLeft={theme.margins["2xs"]}
|
|
52
|
-
/>
|
|
53
|
-
</Box>
|
|
54
|
-
<Box
|
|
55
|
-
width={"100%"}
|
|
56
|
-
flexStyle={{
|
|
57
|
-
flexDirection: "row",
|
|
58
|
-
justifyContent: "space-between",
|
|
59
|
-
}}
|
|
60
|
-
paddingStyle={{
|
|
61
|
-
padding: theme.paddings["2xs"],
|
|
62
|
-
}}
|
|
63
|
-
>
|
|
64
|
-
<Typography
|
|
65
|
-
text={"Selecione uma das opções"}
|
|
66
|
-
color={theme.colors.blue[500]}
|
|
67
|
-
size={theme.fontSizes.xs}
|
|
68
|
-
fontFamily={theme.fonts.inter_bold_700}
|
|
69
|
-
fontWeight={"700"}
|
|
70
|
-
lineHeight={theme.fontSizes.md}
|
|
71
|
-
/>
|
|
72
|
-
|
|
73
|
-
<Box flexStyle={{ flexDirection: "row" }} marginStyle={{ marginTop: 5 }}>
|
|
74
|
-
<TouchableOpacity
|
|
75
|
-
activeOpacity={0.7}
|
|
76
|
-
style={{ marginRight: theme.margins.xl, alignItems: "center" }}
|
|
77
|
-
onPress={() => handleActivity("trabalho")}
|
|
78
|
-
>
|
|
79
|
-
<Icons icon={"TRUCK"} color={theme.colors.blue[525]} />
|
|
80
|
-
<Typography
|
|
81
|
-
text={"Trabalho"}
|
|
82
|
-
color={theme.colors.black[25]}
|
|
83
|
-
size={theme.fontSizes.xs}
|
|
84
|
-
fontFamily={theme.fonts.inter_bold_700}
|
|
85
|
-
fontWeight={"700"}
|
|
86
|
-
lineHeight={theme.fontSizes.sm}
|
|
87
|
-
marginTop={4}
|
|
88
|
-
/>
|
|
89
|
-
</TouchableOpacity>
|
|
90
|
-
|
|
91
|
-
<TouchableOpacity
|
|
92
|
-
activeOpacity={0.7}
|
|
93
|
-
style={{ alignItems: "center" }}
|
|
94
|
-
onPress={() => handleActivity("descanso")}
|
|
95
|
-
>
|
|
96
|
-
<Icons icon={"BED"} />
|
|
97
|
-
<Typography
|
|
98
|
-
text={"Descanso"}
|
|
99
|
-
color={theme.colors.black[25]}
|
|
100
|
-
size={theme.fontSizes.xs}
|
|
101
|
-
fontFamily={theme.fonts.inter_bold_700}
|
|
102
|
-
fontWeight={"700"}
|
|
103
|
-
lineHeight={theme.fontSizes.sm}
|
|
104
|
-
marginTop={4}
|
|
105
|
-
/>
|
|
106
|
-
</TouchableOpacity>
|
|
107
|
-
</Box>
|
|
108
|
-
</Box>
|
|
109
|
-
</Box>
|
|
110
|
-
);
|
|
111
|
-
};
|
|
112
|
-
|
|
113
|
-
/**
|
|
114
|
-
* EXPORTS
|
|
115
|
-
*/
|
|
116
|
-
export { ActivitiesDaily };
|
|
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 "../../components/typography";
|
|
10
|
+
|
|
11
|
+
//commons/ icons
|
|
12
|
+
import { Icons } from "../../common/icons-svg";
|
|
13
|
+
|
|
14
|
+
// styles
|
|
15
|
+
import { theme } from "../../styles/theme/theme";
|
|
16
|
+
|
|
17
|
+
// typings
|
|
18
|
+
import { IActivitiesDaily } from "./interface";
|
|
19
|
+
|
|
20
|
+
const ActivitiesDaily: React.FC<IActivitiesDaily> = ({ handleActivity }) => {
|
|
21
|
+
return (
|
|
22
|
+
<Box
|
|
23
|
+
testID={"activities-daily"}
|
|
24
|
+
width={"100%"}
|
|
25
|
+
height={100}
|
|
26
|
+
backgroundColor={theme.colors.neutral[25]}
|
|
27
|
+
borderStyled={{
|
|
28
|
+
borderRadius: theme.borderWidths.thick_medium,
|
|
29
|
+
}}
|
|
30
|
+
>
|
|
31
|
+
<Box
|
|
32
|
+
width={"100%"}
|
|
33
|
+
height={30}
|
|
34
|
+
backgroundColor={theme.colors.blue[400]}
|
|
35
|
+
borderStyled={{
|
|
36
|
+
borderTopLeftRadius: theme.borderWidths.thin_bold,
|
|
37
|
+
borderTopRightRadius: theme.borderWidths.thin_bold,
|
|
38
|
+
borderColor: theme.colors.blue[400],
|
|
39
|
+
}}
|
|
40
|
+
flexStyle={{
|
|
41
|
+
justifyContent: "center",
|
|
42
|
+
}}
|
|
43
|
+
>
|
|
44
|
+
<Typography
|
|
45
|
+
text={"Atividades diárias"}
|
|
46
|
+
color={theme.colors.neutral[25]}
|
|
47
|
+
size={theme.fontSizes.sm}
|
|
48
|
+
fontFamily={theme.fonts.inter_medium_500}
|
|
49
|
+
fontWeight={"500"}
|
|
50
|
+
lineHeight={theme.fontSizes.lg}
|
|
51
|
+
marginLeft={theme.margins["2xs"]}
|
|
52
|
+
/>
|
|
53
|
+
</Box>
|
|
54
|
+
<Box
|
|
55
|
+
width={"100%"}
|
|
56
|
+
flexStyle={{
|
|
57
|
+
flexDirection: "row",
|
|
58
|
+
justifyContent: "space-between",
|
|
59
|
+
}}
|
|
60
|
+
paddingStyle={{
|
|
61
|
+
padding: theme.paddings["2xs"],
|
|
62
|
+
}}
|
|
63
|
+
>
|
|
64
|
+
<Typography
|
|
65
|
+
text={"Selecione uma das opções"}
|
|
66
|
+
color={theme.colors.blue[500]}
|
|
67
|
+
size={theme.fontSizes.xs}
|
|
68
|
+
fontFamily={theme.fonts.inter_bold_700}
|
|
69
|
+
fontWeight={"700"}
|
|
70
|
+
lineHeight={theme.fontSizes.md}
|
|
71
|
+
/>
|
|
72
|
+
|
|
73
|
+
<Box flexStyle={{ flexDirection: "row" }} marginStyle={{ marginTop: 5 }}>
|
|
74
|
+
<TouchableOpacity
|
|
75
|
+
activeOpacity={0.7}
|
|
76
|
+
style={{ marginRight: theme.margins.xl, alignItems: "center" }}
|
|
77
|
+
onPress={() => handleActivity("trabalho")}
|
|
78
|
+
>
|
|
79
|
+
<Icons icon={"TRUCK"} color={theme.colors.blue[525]} />
|
|
80
|
+
<Typography
|
|
81
|
+
text={"Trabalho"}
|
|
82
|
+
color={theme.colors.black[25]}
|
|
83
|
+
size={theme.fontSizes.xs}
|
|
84
|
+
fontFamily={theme.fonts.inter_bold_700}
|
|
85
|
+
fontWeight={"700"}
|
|
86
|
+
lineHeight={theme.fontSizes.sm}
|
|
87
|
+
marginTop={4}
|
|
88
|
+
/>
|
|
89
|
+
</TouchableOpacity>
|
|
90
|
+
|
|
91
|
+
<TouchableOpacity
|
|
92
|
+
activeOpacity={0.7}
|
|
93
|
+
style={{ alignItems: "center" }}
|
|
94
|
+
onPress={() => handleActivity("descanso")}
|
|
95
|
+
>
|
|
96
|
+
<Icons icon={"BED"} />
|
|
97
|
+
<Typography
|
|
98
|
+
text={"Descanso"}
|
|
99
|
+
color={theme.colors.black[25]}
|
|
100
|
+
size={theme.fontSizes.xs}
|
|
101
|
+
fontFamily={theme.fonts.inter_bold_700}
|
|
102
|
+
fontWeight={"700"}
|
|
103
|
+
lineHeight={theme.fontSizes.sm}
|
|
104
|
+
marginTop={4}
|
|
105
|
+
/>
|
|
106
|
+
</TouchableOpacity>
|
|
107
|
+
</Box>
|
|
108
|
+
</Box>
|
|
109
|
+
</Box>
|
|
110
|
+
);
|
|
111
|
+
};
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* EXPORTS
|
|
115
|
+
*/
|
|
116
|
+
export { ActivitiesDaily };
|
|
@@ -1,170 +1,170 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* IMPORTS
|
|
3
|
-
*/
|
|
4
|
-
import React from "react";
|
|
5
|
-
|
|
6
|
-
// components
|
|
7
|
-
import
|
|
8
|
-
import { Typography } from "../../components/typography";
|
|
9
|
-
|
|
10
|
-
//commons/ icons
|
|
11
|
-
import { Icons } from "../../common/icons-svg";
|
|
12
|
-
|
|
13
|
-
// styles
|
|
14
|
-
import { theme } from "../../styles/theme/theme";
|
|
15
|
-
|
|
16
|
-
// typings
|
|
17
|
-
import { IActivitiesProgress } from "./interface";
|
|
18
|
-
|
|
19
|
-
// utils
|
|
20
|
-
import { getIconByProperty } from "../../utils/get-icon-by-property";
|
|
21
|
-
|
|
22
|
-
const ActivitiesProgress: React.FC<IActivitiesProgress> = ({
|
|
23
|
-
data_inicio_horario = "11/05/2025",
|
|
24
|
-
duracao = "00:30",
|
|
25
|
-
data_inicio = "17:20",
|
|
26
|
-
titleLabel = "Descanso",
|
|
27
|
-
criado_offline = true,
|
|
28
|
-
tipo_atividade = "Descanso",
|
|
29
|
-
referencia = "repouso_noturno",
|
|
30
|
-
}) => {
|
|
31
|
-
return (
|
|
32
|
-
<Box
|
|
33
|
-
width={"100%"}
|
|
34
|
-
height={100}
|
|
35
|
-
backgroundColor={theme.colors.neutral[25]}
|
|
36
|
-
borderStyled={{ borderRadius: theme.borderWidths.thick_medium }}
|
|
37
|
-
>
|
|
38
|
-
<Box
|
|
39
|
-
width={"100%"}
|
|
40
|
-
height={30}
|
|
41
|
-
backgroundColor={theme.colors.blue[400]}
|
|
42
|
-
borderStyled={{
|
|
43
|
-
borderTopLeftRadius: theme.borderWidths.thin_bold,
|
|
44
|
-
borderTopRightRadius: theme.borderWidths.thin_bold,
|
|
45
|
-
borderColor: theme.colors.blue[400],
|
|
46
|
-
}}
|
|
47
|
-
flexStyle={{
|
|
48
|
-
justifyContent: "space-between",
|
|
49
|
-
flexDirection: "row",
|
|
50
|
-
}}
|
|
51
|
-
>
|
|
52
|
-
<Box
|
|
53
|
-
flexStyle={{
|
|
54
|
-
flexDirection: "row",
|
|
55
|
-
alignItems: "center",
|
|
56
|
-
}}
|
|
57
|
-
>
|
|
58
|
-
<Typography
|
|
59
|
-
text={"Status: "}
|
|
60
|
-
color={theme.colors.neutral[25]}
|
|
61
|
-
size={theme.fontSizes.sm}
|
|
62
|
-
fontFamily={theme.fonts.inter_medium_500}
|
|
63
|
-
fontWeight={"500"}
|
|
64
|
-
lineHeight={theme.fontSizes.lg}
|
|
65
|
-
marginLeft={theme.margins["2xs"]}
|
|
66
|
-
/>
|
|
67
|
-
<Typography
|
|
68
|
-
text={titleLabel}
|
|
69
|
-
color={
|
|
70
|
-
tipo_atividade === "trabalho" ? theme.colors.green[400] : theme.colors.orange[500]
|
|
71
|
-
}
|
|
72
|
-
size={theme.fontSizes.xs}
|
|
73
|
-
fontFamily={theme.fonts.inter_semi_bold_600}
|
|
74
|
-
fontWeight={"600"}
|
|
75
|
-
lineHeight={theme.fontSizes.lg}
|
|
76
|
-
/>
|
|
77
|
-
</Box>
|
|
78
|
-
|
|
79
|
-
<Box
|
|
80
|
-
style={{ marginRight: theme.margins["2xs"], marginTop: theme.margins["1xs"] }}
|
|
81
|
-
height={20}
|
|
82
|
-
width={20}
|
|
83
|
-
>
|
|
84
|
-
<Icons
|
|
85
|
-
icon={criado_offline ? "CHECK_OUTLINE" : "TIMER"}
|
|
86
|
-
size={19}
|
|
87
|
-
color={criado_offline ? theme.colors.green[400] : theme.colors.orange[500]}
|
|
88
|
-
/>
|
|
89
|
-
</Box>
|
|
90
|
-
</Box>
|
|
91
|
-
|
|
92
|
-
<Box
|
|
93
|
-
width={"100%"}
|
|
94
|
-
flexStyle={{
|
|
95
|
-
flexDirection: "row",
|
|
96
|
-
justifyContent: "space-between",
|
|
97
|
-
}}
|
|
98
|
-
paddingStyle={{
|
|
99
|
-
padding: theme.paddings["2xs"],
|
|
100
|
-
}}
|
|
101
|
-
>
|
|
102
|
-
<Box height={20} flexStyle={{ flexDirection: "row", alignItems: "center" }}>
|
|
103
|
-
{getIconByProperty(referencia)}
|
|
104
|
-
<Typography
|
|
105
|
-
text={data_inicio}
|
|
106
|
-
color={theme.colors.black[25]}
|
|
107
|
-
size={theme.fontSizes.xs}
|
|
108
|
-
fontFamily={theme.fonts.inter_bold_700}
|
|
109
|
-
fontWeight={"700"}
|
|
110
|
-
lineHeight={theme.fontSizes.lg}
|
|
111
|
-
marginLeft={4}
|
|
112
|
-
/>
|
|
113
|
-
</Box>
|
|
114
|
-
|
|
115
|
-
<Box height={50} flexStyle={{ flexDirection: "row", alignItems: "flex-end" }}>
|
|
116
|
-
<Box
|
|
117
|
-
flexStyle={{ alignItems: "center" }}
|
|
118
|
-
marginStyle={{ marginRight: theme.margins["2xs"] }}
|
|
119
|
-
>
|
|
120
|
-
<Typography
|
|
121
|
-
text={data_inicio_horario}
|
|
122
|
-
color={theme.colors.blue[500]}
|
|
123
|
-
size={theme.fontSizes.sm}
|
|
124
|
-
fontFamily={theme.fonts.inter_bold}
|
|
125
|
-
fontWeight={"700"}
|
|
126
|
-
lineHeight={theme.fontSizes.md}
|
|
127
|
-
/>
|
|
128
|
-
<Typography
|
|
129
|
-
text={"INICIO"}
|
|
130
|
-
color={theme.colors.gray[600]}
|
|
131
|
-
size={theme.fontSizes["2xs"]}
|
|
132
|
-
fontFamily={theme.fonts.inter_medium_500}
|
|
133
|
-
fontWeight={"500"}
|
|
134
|
-
lineHeight={theme.fontSizes.xs}
|
|
135
|
-
marginTop={4}
|
|
136
|
-
/>
|
|
137
|
-
</Box>
|
|
138
|
-
|
|
139
|
-
<Box
|
|
140
|
-
flexStyle={{ alignItems: "center" }}
|
|
141
|
-
marginStyle={{ marginRight: theme.margins["2xs"] }}
|
|
142
|
-
>
|
|
143
|
-
<Typography
|
|
144
|
-
text={duracao}
|
|
145
|
-
color={theme.colors.blue[500]}
|
|
146
|
-
size={theme.fontSizes.sm}
|
|
147
|
-
fontFamily={theme.fonts.inter_bold}
|
|
148
|
-
fontWeight={"700"}
|
|
149
|
-
lineHeight={theme.fontSizes.md}
|
|
150
|
-
/>
|
|
151
|
-
<Typography
|
|
152
|
-
text={"DURAÇÃO"}
|
|
153
|
-
color={theme.colors.gray[600]}
|
|
154
|
-
size={theme.fontSizes["2xs"]}
|
|
155
|
-
fontFamily={theme.fonts.inter_medium_500}
|
|
156
|
-
fontWeight={"500"}
|
|
157
|
-
lineHeight={theme.fontSizes.xs}
|
|
158
|
-
marginTop={4}
|
|
159
|
-
/>
|
|
160
|
-
</Box>
|
|
161
|
-
</Box>
|
|
162
|
-
</Box>
|
|
163
|
-
</Box>
|
|
164
|
-
);
|
|
165
|
-
};
|
|
166
|
-
|
|
167
|
-
/**
|
|
168
|
-
* EXPORTS
|
|
169
|
-
*/
|
|
170
|
-
export { ActivitiesProgress };
|
|
1
|
+
/**
|
|
2
|
+
* IMPORTS
|
|
3
|
+
*/
|
|
4
|
+
import React from "react";
|
|
5
|
+
|
|
6
|
+
// components
|
|
7
|
+
import Box from "../box";
|
|
8
|
+
import { Typography } from "../../components/typography";
|
|
9
|
+
|
|
10
|
+
//commons/ icons
|
|
11
|
+
import { Icons } from "../../common/icons-svg";
|
|
12
|
+
|
|
13
|
+
// styles
|
|
14
|
+
import { theme } from "../../styles/theme/theme";
|
|
15
|
+
|
|
16
|
+
// typings
|
|
17
|
+
import { IActivitiesProgress } from "./interface";
|
|
18
|
+
|
|
19
|
+
// utils
|
|
20
|
+
import { getIconByProperty } from "../../utils/get-icon-by-property";
|
|
21
|
+
|
|
22
|
+
const ActivitiesProgress: React.FC<IActivitiesProgress> = ({
|
|
23
|
+
data_inicio_horario = "11/05/2025",
|
|
24
|
+
duracao = "00:30",
|
|
25
|
+
data_inicio = "17:20",
|
|
26
|
+
titleLabel = "Descanso",
|
|
27
|
+
criado_offline = true,
|
|
28
|
+
tipo_atividade = "Descanso",
|
|
29
|
+
referencia = "repouso_noturno",
|
|
30
|
+
}) => {
|
|
31
|
+
return (
|
|
32
|
+
<Box
|
|
33
|
+
width={"100%"}
|
|
34
|
+
height={100}
|
|
35
|
+
backgroundColor={theme.colors.neutral[25]}
|
|
36
|
+
borderStyled={{ borderRadius: theme.borderWidths.thick_medium }}
|
|
37
|
+
>
|
|
38
|
+
<Box
|
|
39
|
+
width={"100%"}
|
|
40
|
+
height={30}
|
|
41
|
+
backgroundColor={theme.colors.blue[400]}
|
|
42
|
+
borderStyled={{
|
|
43
|
+
borderTopLeftRadius: theme.borderWidths.thin_bold,
|
|
44
|
+
borderTopRightRadius: theme.borderWidths.thin_bold,
|
|
45
|
+
borderColor: theme.colors.blue[400],
|
|
46
|
+
}}
|
|
47
|
+
flexStyle={{
|
|
48
|
+
justifyContent: "space-between",
|
|
49
|
+
flexDirection: "row",
|
|
50
|
+
}}
|
|
51
|
+
>
|
|
52
|
+
<Box
|
|
53
|
+
flexStyle={{
|
|
54
|
+
flexDirection: "row",
|
|
55
|
+
alignItems: "center",
|
|
56
|
+
}}
|
|
57
|
+
>
|
|
58
|
+
<Typography
|
|
59
|
+
text={"Status: "}
|
|
60
|
+
color={theme.colors.neutral[25]}
|
|
61
|
+
size={theme.fontSizes.sm}
|
|
62
|
+
fontFamily={theme.fonts.inter_medium_500}
|
|
63
|
+
fontWeight={"500"}
|
|
64
|
+
lineHeight={theme.fontSizes.lg}
|
|
65
|
+
marginLeft={theme.margins["2xs"]}
|
|
66
|
+
/>
|
|
67
|
+
<Typography
|
|
68
|
+
text={titleLabel}
|
|
69
|
+
color={
|
|
70
|
+
tipo_atividade === "trabalho" ? theme.colors.green[400] : theme.colors.orange[500]
|
|
71
|
+
}
|
|
72
|
+
size={theme.fontSizes.xs}
|
|
73
|
+
fontFamily={theme.fonts.inter_semi_bold_600}
|
|
74
|
+
fontWeight={"600"}
|
|
75
|
+
lineHeight={theme.fontSizes.lg}
|
|
76
|
+
/>
|
|
77
|
+
</Box>
|
|
78
|
+
|
|
79
|
+
<Box
|
|
80
|
+
style={{ marginRight: theme.margins["2xs"], marginTop: theme.margins["1xs"] }}
|
|
81
|
+
height={20}
|
|
82
|
+
width={20}
|
|
83
|
+
>
|
|
84
|
+
<Icons
|
|
85
|
+
icon={criado_offline ? "CHECK_OUTLINE" : "TIMER"}
|
|
86
|
+
size={19}
|
|
87
|
+
color={criado_offline ? theme.colors.green[400] : theme.colors.orange[500]}
|
|
88
|
+
/>
|
|
89
|
+
</Box>
|
|
90
|
+
</Box>
|
|
91
|
+
|
|
92
|
+
<Box
|
|
93
|
+
width={"100%"}
|
|
94
|
+
flexStyle={{
|
|
95
|
+
flexDirection: "row",
|
|
96
|
+
justifyContent: "space-between",
|
|
97
|
+
}}
|
|
98
|
+
paddingStyle={{
|
|
99
|
+
padding: theme.paddings["2xs"],
|
|
100
|
+
}}
|
|
101
|
+
>
|
|
102
|
+
<Box height={20} flexStyle={{ flexDirection: "row", alignItems: "center" }}>
|
|
103
|
+
{getIconByProperty(referencia)}
|
|
104
|
+
<Typography
|
|
105
|
+
text={data_inicio}
|
|
106
|
+
color={theme.colors.black[25]}
|
|
107
|
+
size={theme.fontSizes.xs}
|
|
108
|
+
fontFamily={theme.fonts.inter_bold_700}
|
|
109
|
+
fontWeight={"700"}
|
|
110
|
+
lineHeight={theme.fontSizes.lg}
|
|
111
|
+
marginLeft={4}
|
|
112
|
+
/>
|
|
113
|
+
</Box>
|
|
114
|
+
|
|
115
|
+
<Box height={50} flexStyle={{ flexDirection: "row", alignItems: "flex-end" }}>
|
|
116
|
+
<Box
|
|
117
|
+
flexStyle={{ alignItems: "center" }}
|
|
118
|
+
marginStyle={{ marginRight: theme.margins["2xs"] }}
|
|
119
|
+
>
|
|
120
|
+
<Typography
|
|
121
|
+
text={data_inicio_horario}
|
|
122
|
+
color={theme.colors.blue[500]}
|
|
123
|
+
size={theme.fontSizes.sm}
|
|
124
|
+
fontFamily={theme.fonts.inter_bold}
|
|
125
|
+
fontWeight={"700"}
|
|
126
|
+
lineHeight={theme.fontSizes.md}
|
|
127
|
+
/>
|
|
128
|
+
<Typography
|
|
129
|
+
text={"INICIO"}
|
|
130
|
+
color={theme.colors.gray[600]}
|
|
131
|
+
size={theme.fontSizes["2xs"]}
|
|
132
|
+
fontFamily={theme.fonts.inter_medium_500}
|
|
133
|
+
fontWeight={"500"}
|
|
134
|
+
lineHeight={theme.fontSizes.xs}
|
|
135
|
+
marginTop={4}
|
|
136
|
+
/>
|
|
137
|
+
</Box>
|
|
138
|
+
|
|
139
|
+
<Box
|
|
140
|
+
flexStyle={{ alignItems: "center" }}
|
|
141
|
+
marginStyle={{ marginRight: theme.margins["2xs"] }}
|
|
142
|
+
>
|
|
143
|
+
<Typography
|
|
144
|
+
text={duracao}
|
|
145
|
+
color={theme.colors.blue[500]}
|
|
146
|
+
size={theme.fontSizes.sm}
|
|
147
|
+
fontFamily={theme.fonts.inter_bold}
|
|
148
|
+
fontWeight={"700"}
|
|
149
|
+
lineHeight={theme.fontSizes.md}
|
|
150
|
+
/>
|
|
151
|
+
<Typography
|
|
152
|
+
text={"DURAÇÃO"}
|
|
153
|
+
color={theme.colors.gray[600]}
|
|
154
|
+
size={theme.fontSizes["2xs"]}
|
|
155
|
+
fontFamily={theme.fonts.inter_medium_500}
|
|
156
|
+
fontWeight={"500"}
|
|
157
|
+
lineHeight={theme.fontSizes.xs}
|
|
158
|
+
marginTop={4}
|
|
159
|
+
/>
|
|
160
|
+
</Box>
|
|
161
|
+
</Box>
|
|
162
|
+
</Box>
|
|
163
|
+
</Box>
|
|
164
|
+
);
|
|
165
|
+
};
|
|
166
|
+
|
|
167
|
+
/**
|
|
168
|
+
* EXPORTS
|
|
169
|
+
*/
|
|
170
|
+
export { ActivitiesProgress };
|