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,217 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* IMPORTS
|
|
3
|
+
*/
|
|
4
|
+
import React, { forwardRef } from "react";
|
|
5
|
+
import { Image } from "react-native";
|
|
6
|
+
|
|
7
|
+
// components
|
|
8
|
+
import Box from "../box";
|
|
9
|
+
import { Typography } from "../typography";
|
|
10
|
+
|
|
11
|
+
//commons/ icons
|
|
12
|
+
import { IMAGES } from "../../common/constants";
|
|
13
|
+
|
|
14
|
+
// typings
|
|
15
|
+
import type { ICardActivitiesWeek } from "./interface";
|
|
16
|
+
import { asBaseComponent } from "../../@types/as-base-component";
|
|
17
|
+
|
|
18
|
+
// styles
|
|
19
|
+
import { theme } from "../../styles/theme/theme";
|
|
20
|
+
import { getIconByProperty } from "../../utils/get-icon-by-property";
|
|
21
|
+
|
|
22
|
+
// helpers
|
|
23
|
+
import { truncateText } from "../../helpers/text-utils";
|
|
24
|
+
|
|
25
|
+
const HistoryActivitiesCard = forwardRef<any, ICardActivitiesWeek>(
|
|
26
|
+
(props, ref): React.ReactElement => {
|
|
27
|
+
const {
|
|
28
|
+
testID,
|
|
29
|
+
backgroundColor,
|
|
30
|
+
idAtividade,
|
|
31
|
+
name_activitie,
|
|
32
|
+
referencia,
|
|
33
|
+
type_activitie,
|
|
34
|
+
data_start,
|
|
35
|
+
data_end,
|
|
36
|
+
duration,
|
|
37
|
+
avatar,
|
|
38
|
+
} = props;
|
|
39
|
+
return (
|
|
40
|
+
<Box
|
|
41
|
+
ref={ref}
|
|
42
|
+
testID={testID}
|
|
43
|
+
width={"100%"}
|
|
44
|
+
backgroundColor={theme.colors.neutral[25]}
|
|
45
|
+
borderStyled={{
|
|
46
|
+
borderRadius: theme.borderWidths.thick_medium,
|
|
47
|
+
}}
|
|
48
|
+
marginStyle={{
|
|
49
|
+
marginBottom: theme.margins["2xs"],
|
|
50
|
+
}}
|
|
51
|
+
>
|
|
52
|
+
<Box
|
|
53
|
+
width={"100%"}
|
|
54
|
+
height={30}
|
|
55
|
+
backgroundColor={backgroundColor ?? theme.colors.green[400]}
|
|
56
|
+
borderStyled={{
|
|
57
|
+
borderTopLeftRadius: theme.borderWidths.thin_bold,
|
|
58
|
+
borderTopRightRadius: theme.borderWidths.thin_bold,
|
|
59
|
+
borderColor: theme.colors.blue[400],
|
|
60
|
+
}}
|
|
61
|
+
flexStyle={{
|
|
62
|
+
justifyContent: "center",
|
|
63
|
+
}}
|
|
64
|
+
>
|
|
65
|
+
<Typography
|
|
66
|
+
text={`ATIVIDADE ${!data_end ? "EM ANDAMENTO" : ""} #${idAtividade}`}
|
|
67
|
+
color={theme.colors.neutral[25]}
|
|
68
|
+
size={theme.fontSizes.xs}
|
|
69
|
+
fontFamily={theme.fonts.inter_semi_bold_600}
|
|
70
|
+
fontWeight={"500"}
|
|
71
|
+
lineHeight={theme.fontSizes.lg}
|
|
72
|
+
marginLeft={theme.margins["2xs"]}
|
|
73
|
+
/>
|
|
74
|
+
</Box>
|
|
75
|
+
<Box
|
|
76
|
+
width={"100%"}
|
|
77
|
+
flexStyle={{
|
|
78
|
+
flexDirection: "row",
|
|
79
|
+
justifyContent: "space-between",
|
|
80
|
+
}}
|
|
81
|
+
paddingStyle={{
|
|
82
|
+
padding: theme.paddings["2xs"],
|
|
83
|
+
}}
|
|
84
|
+
>
|
|
85
|
+
<Box width={"100%"}>
|
|
86
|
+
<Box flexStyle={{ flexDirection: "row", alignItems: "center" }}>
|
|
87
|
+
<Image
|
|
88
|
+
style={{
|
|
89
|
+
width: 45,
|
|
90
|
+
height: 45,
|
|
91
|
+
borderRadius: 10,
|
|
92
|
+
marginRight: 10,
|
|
93
|
+
}}
|
|
94
|
+
source={{ uri: avatar ?? IMAGES.IMAGE_ANONIMA }}
|
|
95
|
+
/>
|
|
96
|
+
|
|
97
|
+
<Box width={"100%"}>
|
|
98
|
+
<Box
|
|
99
|
+
width={"84%"}
|
|
100
|
+
flexStyle={{
|
|
101
|
+
flexDirection: "row",
|
|
102
|
+
flexWrap: "wrap",
|
|
103
|
+
}}
|
|
104
|
+
>
|
|
105
|
+
<Typography
|
|
106
|
+
style={{ flexShrink: 1 }}
|
|
107
|
+
text={`Início: `}
|
|
108
|
+
size={theme.fontSizes.xs}
|
|
109
|
+
color={theme.colors.black[10]}
|
|
110
|
+
fontFamily={theme.fonts.inter_semi_bold_600}
|
|
111
|
+
/>
|
|
112
|
+
<Typography
|
|
113
|
+
text={`${data_start} ás ${data_end ?? "00/00/0000 00:00"}`}
|
|
114
|
+
size={theme.fontSizes["2xs"]}
|
|
115
|
+
color={theme.colors.black[180]}
|
|
116
|
+
fontFamily={theme.fonts.inter_regular_400}
|
|
117
|
+
/>
|
|
118
|
+
</Box>
|
|
119
|
+
|
|
120
|
+
<Box
|
|
121
|
+
flexStyle={{
|
|
122
|
+
flexDirection: "row",
|
|
123
|
+
justifyContent: "space-between",
|
|
124
|
+
}}
|
|
125
|
+
width={"84%"}
|
|
126
|
+
>
|
|
127
|
+
<Box flexStyle={{ flexDirection: "row" }}>
|
|
128
|
+
<Typography
|
|
129
|
+
text={`Duração: `}
|
|
130
|
+
size={theme.fontSizes.xs}
|
|
131
|
+
color={theme.colors.black[10]}
|
|
132
|
+
fontFamily={theme.fonts.inter_semi_bold_600}
|
|
133
|
+
/>
|
|
134
|
+
|
|
135
|
+
<Typography
|
|
136
|
+
text={`${duration ?? "00:00"}`}
|
|
137
|
+
size={theme.fontSizes["2xs"]}
|
|
138
|
+
color={theme.colors.black[180]}
|
|
139
|
+
fontFamily={theme.fonts.inter_light_300}
|
|
140
|
+
/>
|
|
141
|
+
</Box>
|
|
142
|
+
|
|
143
|
+
{getIconByProperty(referencia, backgroundColor)}
|
|
144
|
+
</Box>
|
|
145
|
+
</Box>
|
|
146
|
+
</Box>
|
|
147
|
+
</Box>
|
|
148
|
+
</Box>
|
|
149
|
+
|
|
150
|
+
<Box
|
|
151
|
+
width={"100%"}
|
|
152
|
+
flexStyle={{
|
|
153
|
+
flexDirection: "row",
|
|
154
|
+
justifyContent: "space-between",
|
|
155
|
+
alignItems: "center",
|
|
156
|
+
}}
|
|
157
|
+
paddingStyle={{
|
|
158
|
+
padding: theme.paddings["2xs"],
|
|
159
|
+
}}
|
|
160
|
+
borderStyled={{
|
|
161
|
+
borderTopWidth: theme.borderWidths.thin_medium,
|
|
162
|
+
borderTopColor: theme.colors.neutral[200],
|
|
163
|
+
}}
|
|
164
|
+
>
|
|
165
|
+
<Box marginStyle={{ marginRight: 2 }}>
|
|
166
|
+
<Typography
|
|
167
|
+
text={`Atividade:`}
|
|
168
|
+
size={theme.fontSizes.xs}
|
|
169
|
+
color={theme.colors.gray[700]}
|
|
170
|
+
fontFamily={theme.fonts.inter_regular_400}
|
|
171
|
+
/>
|
|
172
|
+
|
|
173
|
+
<Typography
|
|
174
|
+
text={truncateText(name_activitie ?? "Sem informação")}
|
|
175
|
+
size={theme.fontSizes.sm}
|
|
176
|
+
color={theme.colors.black[100]}
|
|
177
|
+
fontFamily={theme.fonts.inter_semi_bold_600}
|
|
178
|
+
/>
|
|
179
|
+
</Box>
|
|
180
|
+
|
|
181
|
+
<Box
|
|
182
|
+
flexStyle={{
|
|
183
|
+
flexDirection: "column",
|
|
184
|
+
alignItems: "flex-end",
|
|
185
|
+
justifyContent: "center",
|
|
186
|
+
}}
|
|
187
|
+
>
|
|
188
|
+
<Typography
|
|
189
|
+
text={`Tipo atividade: `}
|
|
190
|
+
size={theme.fontSizes.xs}
|
|
191
|
+
color={theme.colors.gray[700]}
|
|
192
|
+
fontFamily={theme.fonts.inter_regular_400}
|
|
193
|
+
/>
|
|
194
|
+
|
|
195
|
+
<Typography
|
|
196
|
+
text={`${type_activitie}`}
|
|
197
|
+
size={theme.fontSizes.sm}
|
|
198
|
+
color={theme.colors.black[100]}
|
|
199
|
+
fontFamily={theme.fonts.inter_semi_bold_600}
|
|
200
|
+
marginLeft={4}
|
|
201
|
+
/>
|
|
202
|
+
</Box>
|
|
203
|
+
</Box>
|
|
204
|
+
</Box>
|
|
205
|
+
);
|
|
206
|
+
}
|
|
207
|
+
);
|
|
208
|
+
|
|
209
|
+
HistoryActivitiesCard.displayName = "HistoryActivitiesCard";
|
|
210
|
+
|
|
211
|
+
const HistoryActivitiesCardComponent = asBaseComponent(HistoryActivitiesCard);
|
|
212
|
+
|
|
213
|
+
/**
|
|
214
|
+
* Componente Box para a interação da ui.
|
|
215
|
+
*/
|
|
216
|
+
export default HistoryActivitiesCardComponent;
|
|
217
|
+
export { HistoryActivitiesCardComponent as HistoryActivitiesCard };
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* IMPORTS
|
|
3
|
+
*/
|
|
4
|
+
import type React from "react";
|
|
5
|
+
import { type DimensionValue, type ViewProps } from "react-native";
|
|
6
|
+
import type { PropertyType } from "../../utils/get-icon-by-property";
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* INTERFACE
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
type ICardActivitiesWeek = ViewProps & {
|
|
13
|
+
/**
|
|
14
|
+
* props que mostra o nome do usuário
|
|
15
|
+
*/
|
|
16
|
+
name?: string;
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* props que mostra o ciclo do relatório - DIÁRIA OU SEMANAL
|
|
20
|
+
*/
|
|
21
|
+
ciclo?: string;
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* props que mostra a data
|
|
25
|
+
*/
|
|
26
|
+
data_start: string;
|
|
27
|
+
data_end?: string | null;
|
|
28
|
+
duration: string;
|
|
29
|
+
status?: string;
|
|
30
|
+
name_activitie: string;
|
|
31
|
+
referencia: PropertyType;
|
|
32
|
+
type_activitie: string;
|
|
33
|
+
avatar?: string;
|
|
34
|
+
idAtividade: number;
|
|
35
|
+
|
|
36
|
+
children?: React.ReactNode;
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* TestID para testes automático e identificação
|
|
40
|
+
*/
|
|
41
|
+
testID?: string;
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* A propriedade CSS abreviada border define a borda de um elemento. Ele define os valores de largura da borda, estilo da borda e cor da borda.
|
|
45
|
+
*/
|
|
46
|
+
borderStyled?: {
|
|
47
|
+
borderStyle?: "solid" | "dotted" | "dashed";
|
|
48
|
+
|
|
49
|
+
borderRadius?: number | DimensionValue;
|
|
50
|
+
borderTopRightRadius?: number | DimensionValue;
|
|
51
|
+
borderTopLeftRadius?: number | DimensionValue;
|
|
52
|
+
borderBottomRightRadius?: number | DimensionValue;
|
|
53
|
+
borderBottomLeftRadius?: number | DimensionValue;
|
|
54
|
+
|
|
55
|
+
borderWidth?: number | DimensionValue;
|
|
56
|
+
borderLeftWidth?: number | DimensionValue;
|
|
57
|
+
borderRightWidth?: number | DimensionValue;
|
|
58
|
+
borderTopWidth?: number | DimensionValue;
|
|
59
|
+
borderBottomWidth?: number | DimensionValue;
|
|
60
|
+
|
|
61
|
+
borderColor?: string;
|
|
62
|
+
borderBottomColor?: string;
|
|
63
|
+
borderLeftColor?: string;
|
|
64
|
+
borderRightColor?: string;
|
|
65
|
+
borderTopColor?: string;
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* Propriedades que define a orientação do button que é usada para representar uma página. Na maioria das vezes, esse valores corresponde ao posicionamento alvo da página impressa, se aplicável.
|
|
70
|
+
*/
|
|
71
|
+
flexStyle?: {
|
|
72
|
+
alignItems?: "flex-start" | "flex-end" | "center" | "stretch" | "baseline";
|
|
73
|
+
alignSelf?: "auto" | "flex-start" | "flex-end" | "center" | "stretch" | "baseline";
|
|
74
|
+
flex?: string | number;
|
|
75
|
+
flexDirection?: "column" | "column-reverse" | "row" | "row-reverse";
|
|
76
|
+
flexWrap?: "nowrap" | "wrap" | "wrap-reverse";
|
|
77
|
+
textAlign?: "auto" | "center" | "left" | "right" | "justify";
|
|
78
|
+
justifyContent?:
|
|
79
|
+
| "flex-start"
|
|
80
|
+
| "flex-end"
|
|
81
|
+
| "center"
|
|
82
|
+
| "space-between"
|
|
83
|
+
| "space-around"
|
|
84
|
+
| "space-evenly";
|
|
85
|
+
};
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* A propriedade margin do CSS define a área de margem nos quatro lados do elemento. É uma abreviação que define todas as margens individuais de uma só vez: margin-top, margin-right (en-US), margin-bottom, e margin-left (en-US).
|
|
89
|
+
*/
|
|
90
|
+
marginStyle?: {
|
|
91
|
+
margin?: number | DimensionValue;
|
|
92
|
+
marginLeft?: number | DimensionValue;
|
|
93
|
+
marginRight?: number | DimensionValue;
|
|
94
|
+
marginTop?: number | DimensionValue;
|
|
95
|
+
marginBottom?: number | DimensionValue;
|
|
96
|
+
};
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* A propriedade padding define uma a distância entre o conteúdo de um elemento e suas bordas. É um atalho que evita definir uma distância para cada lado separadamente (padding-top, padding-right, padding-bottom, padding-left).
|
|
100
|
+
*/
|
|
101
|
+
paddingStyle?: {
|
|
102
|
+
padding?: number | DimensionValue;
|
|
103
|
+
paddingLeft?: number | DimensionValue;
|
|
104
|
+
paddingRight?: number | DimensionValue;
|
|
105
|
+
paddingTop?: number | DimensionValue;
|
|
106
|
+
paddingBottom?: number | DimensionValue;
|
|
107
|
+
};
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* A propriedade CSS height define a altura de um elemento. A altura de um elemento é a distância do topo da borda superior do elemento ao fundo da borda inferior.
|
|
111
|
+
*/
|
|
112
|
+
height?: number | DimensionValue;
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* A propriedade CSS width define a largura de um elemento. A largura de um elemento é a distância do topo da borda esquerda do elemento ao fundo da borda direita.
|
|
116
|
+
*/
|
|
117
|
+
width?: number | DimensionValue;
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* O fundo abreviado CSS Propriedade define todas as propriedades do estilo de fundo de uma só vez, como cor, imagem, origem e tamanho ou método de repetição. As propriedades dos componentes não definidas no fundo da declaração de valor da propriedade abreviada são definidas como seus valores padrão..
|
|
121
|
+
* A Propriedade Background está sendo utilizada para definir a cor de fundo do cabeçalho do card e do ícone check.
|
|
122
|
+
*/
|
|
123
|
+
backgroundColor?: string;
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* Propriedade texto que sera renderizado pro usuário final
|
|
127
|
+
*/
|
|
128
|
+
text?: string;
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* A propriedade CSS color define o valor da cor de primeiro plano do texto e das decorações de texto de um elemento e define o valor currentcolor. currentcolor pode ser usado como um valor indireto em outras propriedades e é o padrão para outras propriedades de cores, como border-color.
|
|
132
|
+
*/
|
|
133
|
+
color?: {
|
|
134
|
+
colorSvg?: string;
|
|
135
|
+
colorText?: string;
|
|
136
|
+
colorTextBold?: string;
|
|
137
|
+
colorTextData?: string;
|
|
138
|
+
};
|
|
139
|
+
|
|
140
|
+
// Cor do ícone CHECK
|
|
141
|
+
iconColor?: string;
|
|
142
|
+
};
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* EXPORT
|
|
146
|
+
*/
|
|
147
|
+
export type { ICardActivitiesWeek };
|
|
@@ -5,7 +5,7 @@ import React from "react";
|
|
|
5
5
|
import { Dimensions, TextInput, TouchableOpacity, ViewStyle } from "react-native";
|
|
6
6
|
|
|
7
7
|
// components
|
|
8
|
-
import
|
|
8
|
+
import Box from "../box";
|
|
9
9
|
import { Typography } from "../typography";
|
|
10
10
|
import { Icons } from "../../common/icons-svg";
|
|
11
11
|
|