jornada-ui 0.4.4 → 0.4.6
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/components/capture-photo/index.js +4 -4
- package/lib/commonjs/components/card-report/index.js +139 -127
- package/lib/commonjs/components/card-report/index.js.map +1 -1
- package/lib/commonjs/components/card-with-draw-coil/index.js +5 -5
- package/lib/commonjs/components/card-with-draw-coil/index.js.map +1 -1
- package/lib/commonjs/components/coil-removel-code/index.js +5 -5
- package/lib/commonjs/components/coil-removel-code/index.js.map +1 -1
- package/lib/commonjs/components/history-activities-card/index.js +15 -18
- package/lib/commonjs/components/history-activities-card/index.js.map +1 -1
- package/lib/commonjs/components/resume-raking/index.js +79 -0
- package/lib/commonjs/components/resume-raking/index.js.map +1 -0
- package/lib/commonjs/components/resume-raking/interface.js +2 -0
- package/lib/commonjs/components/resume-raking/interface.js.map +1 -0
- package/lib/commonjs/components/resume-raking/styles.js +2 -0
- package/lib/commonjs/components/resume-raking/styles.js.map +1 -0
- package/lib/commonjs/components/travel-history/index.js +248 -237
- package/lib/commonjs/components/travel-history/index.js.map +1 -1
- package/lib/commonjs/components/user-profile/index.js +1 -1
- package/lib/commonjs/components/user-profile/index.js.map +1 -1
- package/lib/commonjs/components/weekly-table/helpers/calcular-total-horas.js +48 -10
- package/lib/commonjs/components/weekly-table/helpers/calcular-total-horas.js.map +1 -1
- package/lib/commonjs/components/weekly-table/index.js +9 -10
- package/lib/commonjs/components/weekly-table/index.js.map +1 -1
- package/lib/commonjs/index.js +11 -4
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/styles/theme/theme.js +1 -0
- package/lib/commonjs/styles/theme/theme.js.map +1 -1
- package/lib/module/components/capture-photo/index.js +4 -4
- package/lib/module/components/card-report/index.js +139 -127
- package/lib/module/components/card-report/index.js.map +1 -1
- package/lib/module/components/card-with-draw-coil/index.js +5 -5
- package/lib/module/components/card-with-draw-coil/index.js.map +1 -1
- package/lib/module/components/coil-removel-code/index.js +5 -5
- package/lib/module/components/coil-removel-code/index.js.map +1 -1
- package/lib/module/components/history-activities-card/index.js +13 -16
- package/lib/module/components/history-activities-card/index.js.map +1 -1
- package/lib/module/components/resume-raking/index.js +72 -0
- package/lib/module/components/resume-raking/index.js.map +1 -0
- package/lib/module/components/resume-raking/interface.js +2 -0
- package/lib/module/components/resume-raking/interface.js.map +1 -0
- package/lib/module/components/resume-raking/styles.js +2 -0
- package/lib/module/components/resume-raking/styles.js.map +1 -0
- package/lib/module/components/travel-history/index.js +248 -237
- package/lib/module/components/travel-history/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/components/weekly-table/helpers/calcular-total-horas.js +46 -9
- package/lib/module/components/weekly-table/helpers/calcular-total-horas.js.map +1 -1
- package/lib/module/components/weekly-table/index.js +10 -11
- package/lib/module/components/weekly-table/index.js.map +1 -1
- package/lib/module/index.js +1 -0
- package/lib/module/index.js.map +1 -1
- package/lib/module/styles/theme/theme.js +1 -0
- package/lib/module/styles/theme/theme.js.map +1 -1
- package/lib/typescript/commonjs/src/components/capture-photo/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/card-report/index.d.ts +1 -0
- package/lib/typescript/commonjs/src/components/card-report/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/card-with-draw-coil/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/history-activities-card/index.d.ts +1 -0
- package/lib/typescript/commonjs/src/components/history-activities-card/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/history-activities-card/interface.d.ts +2 -0
- package/lib/typescript/commonjs/src/components/history-activities-card/interface.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/resume-raking/index.d.ts +8 -0
- package/lib/typescript/commonjs/src/components/resume-raking/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/resume-raking/interface.d.ts +13 -0
- package/lib/typescript/commonjs/src/components/resume-raking/interface.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/resume-raking/styles.d.ts +1 -0
- package/lib/typescript/commonjs/src/components/resume-raking/styles.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/travel-history/index.d.ts +1 -0
- package/lib/typescript/commonjs/src/components/travel-history/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/weekly-table/helpers/calcular-total-horas.d.ts +2 -1
- package/lib/typescript/commonjs/src/components/weekly-table/helpers/calcular-total-horas.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/weekly-table/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/index.d.ts +1 -0
- package/lib/typescript/commonjs/src/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/styles/global/theme-provider.d.ts +1 -0
- package/lib/typescript/commonjs/src/styles/global/theme-provider.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/styles/theme/theme.d.ts +1 -0
- package/lib/typescript/commonjs/src/styles/theme/theme.d.ts.map +1 -1
- package/lib/typescript/module/src/components/capture-photo/index.d.ts.map +1 -1
- package/lib/typescript/module/src/components/card-report/index.d.ts +1 -0
- package/lib/typescript/module/src/components/card-report/index.d.ts.map +1 -1
- package/lib/typescript/module/src/components/card-with-draw-coil/index.d.ts.map +1 -1
- package/lib/typescript/module/src/components/history-activities-card/index.d.ts +1 -0
- package/lib/typescript/module/src/components/history-activities-card/index.d.ts.map +1 -1
- package/lib/typescript/module/src/components/history-activities-card/interface.d.ts +2 -0
- package/lib/typescript/module/src/components/history-activities-card/interface.d.ts.map +1 -1
- package/lib/typescript/module/src/components/resume-raking/index.d.ts +8 -0
- package/lib/typescript/module/src/components/resume-raking/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/resume-raking/interface.d.ts +13 -0
- package/lib/typescript/module/src/components/resume-raking/interface.d.ts.map +1 -0
- package/lib/typescript/module/src/components/resume-raking/styles.d.ts +1 -0
- package/lib/typescript/module/src/components/resume-raking/styles.d.ts.map +1 -0
- package/lib/typescript/module/src/components/travel-history/index.d.ts +1 -0
- package/lib/typescript/module/src/components/travel-history/index.d.ts.map +1 -1
- package/lib/typescript/module/src/components/weekly-table/helpers/calcular-total-horas.d.ts +2 -1
- package/lib/typescript/module/src/components/weekly-table/helpers/calcular-total-horas.d.ts.map +1 -1
- package/lib/typescript/module/src/components/weekly-table/index.d.ts.map +1 -1
- package/lib/typescript/module/src/index.d.ts +1 -0
- package/lib/typescript/module/src/index.d.ts.map +1 -1
- package/lib/typescript/module/src/styles/global/theme-provider.d.ts +1 -0
- package/lib/typescript/module/src/styles/global/theme-provider.d.ts.map +1 -1
- package/lib/typescript/module/src/styles/theme/theme.d.ts +1 -0
- package/lib/typescript/module/src/styles/theme/theme.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/components/capture-photo/index.tsx +133 -133
- package/src/components/card-report/index.tsx +175 -168
- package/src/components/card-report/interface.d.ts +140 -136
- package/src/components/card-with-draw-coil/index.tsx +165 -165
- package/src/components/coil-removel-code/index.tsx +50 -50
- package/src/components/history-activities-card/index.tsx +211 -209
- package/src/components/history-activities-card/interface.ts +147 -145
- package/src/components/resume-raking/index.tsx +75 -0
- package/src/components/resume-raking/interface.ts +14 -0
- package/src/components/resume-raking/styles.ts +0 -0
- package/src/components/travel-history/index.tsx +330 -314
- package/src/components/travel-history/interface.d.ts +153 -149
- package/src/components/user-profile/index.tsx +1 -1
- package/src/components/weekly-table/helpers/calcular-total-horas.ts +89 -50
- package/src/components/weekly-table/index.tsx +138 -142
- package/src/index.tsx +1 -0
- package/src/styles/theme/theme.ts +1 -0
|
@@ -1,168 +1,175 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* IMPORTS
|
|
3
|
-
*/
|
|
4
|
-
import React, { forwardRef } from "react";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
import
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
1
|
+
/**
|
|
2
|
+
* IMPORTS
|
|
3
|
+
*/
|
|
4
|
+
import React, { forwardRef } from "react";
|
|
5
|
+
import { TouchableOpacity } from "react-native";
|
|
6
|
+
|
|
7
|
+
// components
|
|
8
|
+
import Box from "../../components/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 type { ICardReport } from "./interface";
|
|
19
|
+
// typings
|
|
20
|
+
import { asBaseComponent } from "../../@types/as-base-component";
|
|
21
|
+
|
|
22
|
+
const CardReport = forwardRef<any, ICardReport>((props, ref): React.ReactElement => {
|
|
23
|
+
const {
|
|
24
|
+
name = "Enzo Martins",
|
|
25
|
+
generatedDate = "15/07/2025",
|
|
26
|
+
generatedTime = null,
|
|
27
|
+
status = "OK",
|
|
28
|
+
backgroundColor,
|
|
29
|
+
ciclo = "DIÁRIA",
|
|
30
|
+
testID = "card-report",
|
|
31
|
+
onPress,
|
|
32
|
+
} = props;
|
|
33
|
+
return (
|
|
34
|
+
<TouchableOpacity
|
|
35
|
+
ref={ref}
|
|
36
|
+
activeOpacity={0.7}
|
|
37
|
+
onPress={() => onPress({ name, generatedDate, generatedTime, status, ciclo })}
|
|
38
|
+
>
|
|
39
|
+
<Box
|
|
40
|
+
testID={testID}
|
|
41
|
+
width={"100%"}
|
|
42
|
+
backgroundColor={theme.colors.neutral[25]}
|
|
43
|
+
borderStyled={{
|
|
44
|
+
borderRadius: theme.borderWidths.thick_medium,
|
|
45
|
+
}}
|
|
46
|
+
marginStyle={{
|
|
47
|
+
marginBottom: theme.margins["2xs"],
|
|
48
|
+
}}
|
|
49
|
+
>
|
|
50
|
+
<Box
|
|
51
|
+
width={"100%"}
|
|
52
|
+
height={30}
|
|
53
|
+
backgroundColor={backgroundColor ?? theme.colors.green[400]}
|
|
54
|
+
borderStyled={{
|
|
55
|
+
borderTopLeftRadius: theme.borderWidths.thin_bold,
|
|
56
|
+
borderTopRightRadius: theme.borderWidths.thin_bold,
|
|
57
|
+
borderColor: theme.colors.blue[400],
|
|
58
|
+
}}
|
|
59
|
+
flexStyle={{
|
|
60
|
+
justifyContent: "center",
|
|
61
|
+
}}
|
|
62
|
+
>
|
|
63
|
+
<Typography
|
|
64
|
+
text={`ASSINATURA ${ciclo}`}
|
|
65
|
+
color={theme.colors.neutral[25]}
|
|
66
|
+
size={theme.fontSizes.xs}
|
|
67
|
+
fontFamily={theme.fonts.inter_medium_500}
|
|
68
|
+
fontWeight={"500"}
|
|
69
|
+
lineHeight={theme.fontSizes.xs}
|
|
70
|
+
marginLeft={theme.margins["2xs"]}
|
|
71
|
+
/>
|
|
72
|
+
</Box>
|
|
73
|
+
<Box
|
|
74
|
+
width={"100%"}
|
|
75
|
+
flexStyle={{
|
|
76
|
+
flexDirection: "row",
|
|
77
|
+
justifyContent: "space-between",
|
|
78
|
+
}}
|
|
79
|
+
paddingStyle={{
|
|
80
|
+
padding: theme.paddings["2xs"],
|
|
81
|
+
}}
|
|
82
|
+
>
|
|
83
|
+
<Box>
|
|
84
|
+
<Box flexStyle={{ flexDirection: "row", alignItems: "center" }}>
|
|
85
|
+
<Icons icon={"FILES"} size={28} color={theme.colors.black[100]} />
|
|
86
|
+
|
|
87
|
+
{/*Alteração para exibir o nome do usuário */}
|
|
88
|
+
<Box marginStyle={{ marginLeft: 4 }}>
|
|
89
|
+
<Box flexStyle={{ flexDirection: "row" }}>
|
|
90
|
+
<Typography
|
|
91
|
+
text={`Doc gerado em: `}
|
|
92
|
+
size={theme.fontSizes.sm}
|
|
93
|
+
color={theme.colors.black[180]}
|
|
94
|
+
fontFamily={theme.fonts.inter_medium_500}
|
|
95
|
+
/>
|
|
96
|
+
<Typography
|
|
97
|
+
text={`${generatedDate} ${generatedTime ?? ""}`}
|
|
98
|
+
size={12}
|
|
99
|
+
color={theme.colors.black[180]}
|
|
100
|
+
fontFamily={theme.fonts.inter_light_300}
|
|
101
|
+
marginLeft={2}
|
|
102
|
+
/>
|
|
103
|
+
</Box>
|
|
104
|
+
<Box flexStyle={{ flexDirection: "row" }}>
|
|
105
|
+
<Typography
|
|
106
|
+
text={`Status documento:`}
|
|
107
|
+
size={theme.fontSizes.sm}
|
|
108
|
+
color={theme.colors.black[100]}
|
|
109
|
+
fontFamily={theme.fonts.inter_medium_500}
|
|
110
|
+
/>
|
|
111
|
+
|
|
112
|
+
<Typography
|
|
113
|
+
text={`${status}`}
|
|
114
|
+
size={theme.fontSizes.xs}
|
|
115
|
+
color={theme.colors.black[100]}
|
|
116
|
+
fontFamily={theme.fonts.inter_light_300}
|
|
117
|
+
marginLeft={2}
|
|
118
|
+
/>
|
|
119
|
+
</Box>
|
|
120
|
+
</Box>
|
|
121
|
+
</Box>
|
|
122
|
+
</Box>
|
|
123
|
+
</Box>
|
|
124
|
+
|
|
125
|
+
{/* Segunda separação */}
|
|
126
|
+
<Box
|
|
127
|
+
width={"100%"}
|
|
128
|
+
flexStyle={{
|
|
129
|
+
flexDirection: "row",
|
|
130
|
+
justifyContent: "space-between",
|
|
131
|
+
alignItems: "center",
|
|
132
|
+
}}
|
|
133
|
+
paddingStyle={{
|
|
134
|
+
padding: theme.paddings["2xs"],
|
|
135
|
+
}}
|
|
136
|
+
borderStyled={{
|
|
137
|
+
borderTopWidth: 2,
|
|
138
|
+
borderTopColor: theme.colors.neutral[200],
|
|
139
|
+
}}
|
|
140
|
+
>
|
|
141
|
+
<Box>
|
|
142
|
+
<Box flexStyle={{ flexDirection: "row", alignItems: "center" }}>
|
|
143
|
+
<Box marginStyle={{ marginRight: 2 }}>
|
|
144
|
+
<Typography
|
|
145
|
+
text={`Assinado por:`}
|
|
146
|
+
size={theme.fontSizes.xs}
|
|
147
|
+
color={theme.colors.black[180]}
|
|
148
|
+
fontFamily={theme.fonts.inter_regular_400}
|
|
149
|
+
marginLeft={0}
|
|
150
|
+
/>
|
|
151
|
+
|
|
152
|
+
<Typography
|
|
153
|
+
text={`${name}`}
|
|
154
|
+
size={14}
|
|
155
|
+
color={theme.colors.black[100]}
|
|
156
|
+
fontFamily={theme.fonts.inter_bold_700}
|
|
157
|
+
marginLeft={0}
|
|
158
|
+
/>
|
|
159
|
+
</Box>
|
|
160
|
+
</Box>
|
|
161
|
+
</Box>
|
|
162
|
+
|
|
163
|
+
<Icons icon={"CHECK_CIRCLE"} size={36} background={backgroundColor} />
|
|
164
|
+
</Box>
|
|
165
|
+
</Box>
|
|
166
|
+
</TouchableOpacity>
|
|
167
|
+
);
|
|
168
|
+
});
|
|
169
|
+
|
|
170
|
+
CardReport.displayName = "CardReport";
|
|
171
|
+
|
|
172
|
+
/**
|
|
173
|
+
* Componente Box para a interação da ui.
|
|
174
|
+
*/
|
|
175
|
+
export default asBaseComponent(CardReport);
|
|
@@ -1,136 +1,140 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
| "
|
|
73
|
-
| "
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
};
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
1
|
+
/* eslint-disable no-undef */
|
|
2
|
+
/**
|
|
3
|
+
* IMPORTS
|
|
4
|
+
*/
|
|
5
|
+
import type React from "react";
|
|
6
|
+
import { type DimensionValue, type ViewProps } from "react-native";
|
|
7
|
+
|
|
8
|
+
type ICardReport = ViewProps & {
|
|
9
|
+
/**
|
|
10
|
+
* props que mostra o nome do usuário
|
|
11
|
+
*/
|
|
12
|
+
name?: string;
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* props que mostra o ciclo do relatório - DIÁRIA OU SEMANAL
|
|
16
|
+
*/
|
|
17
|
+
ciclo?: string;
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* props que mostra a data
|
|
21
|
+
*/
|
|
22
|
+
generatedDate?: string;
|
|
23
|
+
generatedTime?: string;
|
|
24
|
+
status?: string;
|
|
25
|
+
|
|
26
|
+
children?: React.ReactNode;
|
|
27
|
+
|
|
28
|
+
// eslint-disable-next-line no-unused-vars
|
|
29
|
+
onPress: (data: T) => void;
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* TestID para testes automático e identificação
|
|
33
|
+
*/
|
|
34
|
+
testID?: string;
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* 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.
|
|
38
|
+
*/
|
|
39
|
+
borderStyled?: {
|
|
40
|
+
borderStyle?: "solid" | "dotted" | "dashed";
|
|
41
|
+
|
|
42
|
+
borderRadius?: number | DimensionValue;
|
|
43
|
+
borderTopRightRadius?: number | DimensionValue;
|
|
44
|
+
borderTopLeftRadius?: number | DimensionValue;
|
|
45
|
+
borderBottomRightRadius?: number | DimensionValue;
|
|
46
|
+
borderBottomLeftRadius?: number | DimensionValue;
|
|
47
|
+
|
|
48
|
+
borderWidth?: number | DimensionValue;
|
|
49
|
+
borderLeftWidth?: number | DimensionValue;
|
|
50
|
+
borderRightWidth?: number | DimensionValue;
|
|
51
|
+
borderTopWidth?: number | DimensionValue;
|
|
52
|
+
borderBottomWidth?: number | DimensionValue;
|
|
53
|
+
|
|
54
|
+
borderColor?: string;
|
|
55
|
+
borderBottomColor?: string;
|
|
56
|
+
borderLeftColor?: string;
|
|
57
|
+
borderRightColor?: string;
|
|
58
|
+
borderTopColor?: string;
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* 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.
|
|
63
|
+
*/
|
|
64
|
+
flexStyle?: {
|
|
65
|
+
alignItems?: "flex-start" | "flex-end" | "center" | "stretch" | "baseline";
|
|
66
|
+
alignSelf?: "auto" | "flex-start" | "flex-end" | "center" | "stretch" | "baseline";
|
|
67
|
+
flex?: string | number;
|
|
68
|
+
flexDirection?: "column" | "column-reverse" | "row" | "row-reverse";
|
|
69
|
+
flexWrap?: "nowrap" | "wrap" | "wrap-reverse";
|
|
70
|
+
textAlign?: "auto" | "center" | "left" | "right" | "justify";
|
|
71
|
+
justifyContent?:
|
|
72
|
+
| "flex-start"
|
|
73
|
+
| "flex-end"
|
|
74
|
+
| "center"
|
|
75
|
+
| "space-between"
|
|
76
|
+
| "space-around"
|
|
77
|
+
| "space-evenly";
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* 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).
|
|
82
|
+
*/
|
|
83
|
+
marginStyle?: {
|
|
84
|
+
margin?: number | DimensionValue;
|
|
85
|
+
marginLeft?: number | DimensionValue;
|
|
86
|
+
marginRight?: number | DimensionValue;
|
|
87
|
+
marginTop?: number | DimensionValue;
|
|
88
|
+
marginBottom?: number | DimensionValue;
|
|
89
|
+
};
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* 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).
|
|
93
|
+
*/
|
|
94
|
+
paddingStyle?: {
|
|
95
|
+
padding?: number | DimensionValue;
|
|
96
|
+
paddingLeft?: number | DimensionValue;
|
|
97
|
+
paddingRight?: number | DimensionValue;
|
|
98
|
+
paddingTop?: number | DimensionValue;
|
|
99
|
+
paddingBottom?: number | DimensionValue;
|
|
100
|
+
};
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* 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.
|
|
104
|
+
*/
|
|
105
|
+
height?: number | DimensionValue;
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* 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.
|
|
109
|
+
*/
|
|
110
|
+
width?: number | DimensionValue;
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* 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..
|
|
114
|
+
* A Propriedade Background está sendo utilizada para definir a cor de fundo do cabeçalho do card e do ícone check.
|
|
115
|
+
*/
|
|
116
|
+
backgroundColor?: string;
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* Propriedade texto que sera renderizado pro usuário final
|
|
120
|
+
*/
|
|
121
|
+
text?: string;
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* 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.
|
|
125
|
+
*/
|
|
126
|
+
color?: {
|
|
127
|
+
colorSvg?: string;
|
|
128
|
+
colorText?: string;
|
|
129
|
+
colorTextBold?: string;
|
|
130
|
+
colorTextData?: string;
|
|
131
|
+
};
|
|
132
|
+
|
|
133
|
+
// Cor do ícone CHECK
|
|
134
|
+
iconColor?: string;
|
|
135
|
+
};
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* EXPORT
|
|
139
|
+
*/
|
|
140
|
+
export type { ICardReport };
|