jornada-ui 0.4.4 → 0.4.5

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.
Files changed (76) hide show
  1. package/lib/commonjs/components/resume-raking/index.js +79 -0
  2. package/lib/commonjs/components/resume-raking/index.js.map +1 -0
  3. package/lib/commonjs/components/resume-raking/interface.js +2 -0
  4. package/lib/commonjs/components/resume-raking/interface.js.map +1 -0
  5. package/lib/commonjs/components/resume-raking/styles.js +2 -0
  6. package/lib/commonjs/components/resume-raking/styles.js.map +1 -0
  7. package/lib/commonjs/components/travel-history/index.js +248 -237
  8. package/lib/commonjs/components/travel-history/index.js.map +1 -1
  9. package/lib/commonjs/components/weekly-table/helpers/calcular-total-horas.js +48 -10
  10. package/lib/commonjs/components/weekly-table/helpers/calcular-total-horas.js.map +1 -1
  11. package/lib/commonjs/components/weekly-table/index.js +6 -10
  12. package/lib/commonjs/components/weekly-table/index.js.map +1 -1
  13. package/lib/commonjs/index.js +11 -4
  14. package/lib/commonjs/index.js.map +1 -1
  15. package/lib/commonjs/styles/theme/theme.js +1 -0
  16. package/lib/commonjs/styles/theme/theme.js.map +1 -1
  17. package/lib/module/components/resume-raking/index.js +72 -0
  18. package/lib/module/components/resume-raking/index.js.map +1 -0
  19. package/lib/module/components/resume-raking/interface.js +2 -0
  20. package/lib/module/components/resume-raking/interface.js.map +1 -0
  21. package/lib/module/components/resume-raking/styles.js +2 -0
  22. package/lib/module/components/resume-raking/styles.js.map +1 -0
  23. package/lib/module/components/travel-history/index.js +248 -237
  24. package/lib/module/components/travel-history/index.js.map +1 -1
  25. package/lib/module/components/weekly-table/helpers/calcular-total-horas.js +46 -9
  26. package/lib/module/components/weekly-table/helpers/calcular-total-horas.js.map +1 -1
  27. package/lib/module/components/weekly-table/index.js +7 -11
  28. package/lib/module/components/weekly-table/index.js.map +1 -1
  29. package/lib/module/index.js +1 -0
  30. package/lib/module/index.js.map +1 -1
  31. package/lib/module/styles/theme/theme.js +1 -0
  32. package/lib/module/styles/theme/theme.js.map +1 -1
  33. package/lib/typescript/commonjs/src/components/resume-raking/index.d.ts +8 -0
  34. package/lib/typescript/commonjs/src/components/resume-raking/index.d.ts.map +1 -0
  35. package/lib/typescript/commonjs/src/components/resume-raking/interface.d.ts +13 -0
  36. package/lib/typescript/commonjs/src/components/resume-raking/interface.d.ts.map +1 -0
  37. package/lib/typescript/commonjs/src/components/resume-raking/styles.d.ts +1 -0
  38. package/lib/typescript/commonjs/src/components/resume-raking/styles.d.ts.map +1 -0
  39. package/lib/typescript/commonjs/src/components/travel-history/index.d.ts +1 -0
  40. package/lib/typescript/commonjs/src/components/travel-history/index.d.ts.map +1 -1
  41. package/lib/typescript/commonjs/src/components/weekly-table/helpers/calcular-total-horas.d.ts +2 -1
  42. package/lib/typescript/commonjs/src/components/weekly-table/helpers/calcular-total-horas.d.ts.map +1 -1
  43. package/lib/typescript/commonjs/src/components/weekly-table/index.d.ts.map +1 -1
  44. package/lib/typescript/commonjs/src/index.d.ts +1 -0
  45. package/lib/typescript/commonjs/src/index.d.ts.map +1 -1
  46. package/lib/typescript/commonjs/src/styles/global/theme-provider.d.ts +1 -0
  47. package/lib/typescript/commonjs/src/styles/global/theme-provider.d.ts.map +1 -1
  48. package/lib/typescript/commonjs/src/styles/theme/theme.d.ts +1 -0
  49. package/lib/typescript/commonjs/src/styles/theme/theme.d.ts.map +1 -1
  50. package/lib/typescript/module/src/components/resume-raking/index.d.ts +8 -0
  51. package/lib/typescript/module/src/components/resume-raking/index.d.ts.map +1 -0
  52. package/lib/typescript/module/src/components/resume-raking/interface.d.ts +13 -0
  53. package/lib/typescript/module/src/components/resume-raking/interface.d.ts.map +1 -0
  54. package/lib/typescript/module/src/components/resume-raking/styles.d.ts +1 -0
  55. package/lib/typescript/module/src/components/resume-raking/styles.d.ts.map +1 -0
  56. package/lib/typescript/module/src/components/travel-history/index.d.ts +1 -0
  57. package/lib/typescript/module/src/components/travel-history/index.d.ts.map +1 -1
  58. package/lib/typescript/module/src/components/weekly-table/helpers/calcular-total-horas.d.ts +2 -1
  59. package/lib/typescript/module/src/components/weekly-table/helpers/calcular-total-horas.d.ts.map +1 -1
  60. package/lib/typescript/module/src/components/weekly-table/index.d.ts.map +1 -1
  61. package/lib/typescript/module/src/index.d.ts +1 -0
  62. package/lib/typescript/module/src/index.d.ts.map +1 -1
  63. package/lib/typescript/module/src/styles/global/theme-provider.d.ts +1 -0
  64. package/lib/typescript/module/src/styles/global/theme-provider.d.ts.map +1 -1
  65. package/lib/typescript/module/src/styles/theme/theme.d.ts +1 -0
  66. package/lib/typescript/module/src/styles/theme/theme.d.ts.map +1 -1
  67. package/package.json +1 -1
  68. package/src/components/resume-raking/index.tsx +75 -0
  69. package/src/components/resume-raking/interface.ts +14 -0
  70. package/src/components/resume-raking/styles.ts +0 -0
  71. package/src/components/travel-history/index.tsx +330 -314
  72. package/src/components/travel-history/interface.d.ts +153 -149
  73. package/src/components/weekly-table/helpers/calcular-total-horas.ts +89 -50
  74. package/src/components/weekly-table/index.tsx +138 -142
  75. package/src/index.tsx +1 -0
  76. package/src/styles/theme/theme.ts +1 -0
@@ -1,314 +1,330 @@
1
- /**
2
- * IMPORTS
3
- */
4
- import React, { forwardRef } from "react";
5
-
6
- // components
7
- import Box from "../box";
8
- import Typography from "../typography";
9
-
10
- // commons / icons
11
- import { Icons } from "../../common/icons-svg";
12
-
13
- // typings
14
- import type { ITravelHistory } from "./interface";
15
- import { asBaseComponent } from "../../@types/as-base-component";
16
-
17
- // styles
18
- import { theme } from "../../styles/theme/theme";
19
-
20
- /**
21
- * Componente TravelHistory para a interação da ui.
22
- */
23
- const TravelHistory = forwardRef<any, ITravelHistory>((props, ref): React.ReactElement => {
24
- const {
25
- testID,
26
- backgroundColor,
27
- idViagem,
28
- startTrip,
29
- plate,
30
- value,
31
- status,
32
- supply,
33
- nextTrip,
34
- origin,
35
- destination,
36
-
37
- // Flags de problema
38
- supplyIssue = false,
39
- logisticsIssue = false,
40
- } = props;
41
-
42
- // Normaliza status
43
- const normalizedStatus = (status ?? "ABERTA").toString().trim().toUpperCase();
44
- const hasError = Boolean(supplyIssue || logisticsIssue);
45
-
46
- // Regras de cor:
47
- // - Se houver erro -> vermelho
48
- // - Senão, se FECHADA -> verde
49
- // - Senão (ABERTA e sem erro) -> usa backgroundColor (laranja já usado por você) ou fallback
50
- const baseOpenColor = backgroundColor ?? theme.colors.green[400];
51
- const computedColor = hasError
52
- ? theme.colors.red[400]
53
- : normalizedStatus === "FECHADA"
54
- ? theme.colors.green[400]
55
- : baseOpenColor;
56
-
57
- return (
58
- <Box
59
- ref={ref}
60
- testID={testID}
61
- width={"100%"}
62
- backgroundColor={theme.colors.neutral[25]}
63
- borderStyled={{
64
- borderRadius: theme.borderWidths.thick_medium,
65
- }}
66
- marginStyle={{
67
- marginBottom: theme.margins["2xs"],
68
- }}
69
- >
70
- <Box
71
- testID="travel-history-header"
72
- width={"100%"}
73
- height={30}
74
- backgroundColor={computedColor}
75
- borderStyled={{
76
- borderTopLeftRadius: theme.borderWidths.thin_bold,
77
- borderTopRightRadius: theme.borderWidths.thin_bold,
78
- borderColor: theme.colors.blue[400],
79
- }}
80
- flexStyle={{
81
- flexDirection: "row",
82
- justifyContent: "space-between",
83
- alignItems: "center",
84
- }}
85
- >
86
- <Typography
87
- text={`VIAGEM #${idViagem ?? "000"}`}
88
- color={theme.colors.neutral[25]}
89
- size={theme.fontSizes.sm}
90
- fontFamily={theme.fonts.inter_semi_bold_600}
91
- fontWeight={"500"}
92
- lineHeight={theme.fontSizes.lg}
93
- marginLeft={theme.margins["2xs"]}
94
- />
95
- <Typography
96
- text={`INÍCIO ${startTrip ?? "01/01/2025 00:00"}`}
97
- color={theme.colors.neutral[25]}
98
- size={theme.fontSizes.sm}
99
- fontFamily={theme.fonts.inter_semi_bold_600}
100
- fontWeight={"500"}
101
- lineHeight={theme.fontSizes.lg}
102
- marginRight={theme.margins["2xs"]}
103
- />
104
- </Box>
105
-
106
- <Box
107
- width={"100%"}
108
- flexStyle={{
109
- flexDirection: "row",
110
- justifyContent: "space-between",
111
- }}
112
- paddingStyle={{
113
- padding: theme.paddings["2xs"],
114
- }}
115
- >
116
- <Box width={"100%"}>
117
- <Box flexStyle={{ flexDirection: "row", alignItems: "center" }}>
118
- <Box width={"100%"}>
119
- <Box
120
- flexStyle={{
121
- flexDirection: "row",
122
- justifyContent: "space-between",
123
- }}
124
- width={"100%"}
125
- >
126
- <Box flexStyle={{ flexDirection: "row" }}>
127
- <Typography
128
- text={`Placa: `}
129
- size={theme.fontSizes.xs}
130
- color={theme.colors.black[10]}
131
- fontFamily={theme.fonts.inter_medium_500}
132
- />
133
- <Typography
134
- text={`${plate ?? "00:00"}`}
135
- size={theme.fontSizes.xs}
136
- color={theme.colors.black[180]}
137
- fontFamily={theme.fonts.inter_light_300}
138
- />
139
- </Box>
140
-
141
- <Box flexStyle={{ flexDirection: "row", alignItems: "center" }}>
142
- {supplyIssue && (
143
- <Box testID="icon-supply" marginStyle={{ marginRight: 8 }}>
144
- <Icons icon={"GAS_PUMP"} color={computedColor} size={24} />
145
- </Box>
146
- )}
147
-
148
- {logisticsIssue && (
149
- <Box testID="icon-logistics" marginStyle={{ marginRight: 8 }}>
150
- <Icons
151
- icon={"EXCLAMATION_CIRCLE"}
152
- background={computedColor}
153
- color={"#ffffff"}
154
- size={24}
155
- />
156
- </Box>
157
- )}
158
-
159
- <Box testID="icon-truck" marginStyle={{ marginRight: 8 }}>
160
- <Icons icon={"TRUCK_ACTIVITY"} color={computedColor} size={24} />
161
- </Box>
162
- </Box>
163
- </Box>
164
-
165
- <Box
166
- width={"84%"}
167
- flexStyle={{
168
- flexDirection: "row",
169
- flexWrap: "wrap",
170
- }}
171
- >
172
- <Typography
173
- style={{ flexShrink: 1 }}
174
- text={`Valor: `}
175
- size={theme.fontSizes.xs}
176
- color={theme.colors.black[10]}
177
- fontFamily={theme.fonts.inter_medium_500}
178
- />
179
- <Typography
180
- text={`R$ ${value ?? "00,00"}`}
181
- size={11}
182
- color={theme.colors.black[180]}
183
- fontFamily={theme.fonts.inter_regular_400}
184
- />
185
- </Box>
186
-
187
- <Box
188
- width={"84%"}
189
- flexStyle={{
190
- flexDirection: "row",
191
- flexWrap: "wrap",
192
- }}
193
- >
194
- <Typography
195
- style={{ flexShrink: 1 }}
196
- text={`Status viagem: `}
197
- size={theme.fontSizes.xs}
198
- color={theme.colors.black[10]}
199
- fontFamily={theme.fonts.inter_medium_500}
200
- />
201
- <Typography
202
- text={`${status ?? "ABERTA"}`}
203
- size={11}
204
- color={theme.colors.black[180]}
205
- fontFamily={theme.fonts.inter_regular_400}
206
- />
207
- </Box>
208
-
209
- <Box
210
- width={"84%"}
211
- flexStyle={{
212
- flexDirection: "row",
213
- flexWrap: "wrap",
214
- }}
215
- >
216
- <Typography
217
- style={{ flexShrink: 1 }}
218
- text={`Abastecimentos: `}
219
- size={theme.fontSizes.xs}
220
- color={theme.colors.black[10]}
221
- fontFamily={theme.fonts.inter_medium_500}
222
- />
223
- <Typography
224
- text={`${supply ?? "0"} PENDENTES`}
225
- size={11}
226
- color={theme.colors.black[180]}
227
- fontFamily={theme.fonts.inter_regular_400}
228
- />
229
- </Box>
230
-
231
- <Box
232
- width={"84%"}
233
- flexStyle={{
234
- flexDirection: "row",
235
- flexWrap: "wrap",
236
- }}
237
- >
238
- <Typography
239
- style={{ flexShrink: 1 }}
240
- text={`Próxima viagem: `}
241
- size={theme.fontSizes.xs}
242
- color={theme.colors.black[10]}
243
- fontFamily={theme.fonts.inter_medium_500}
244
- />
245
- <Typography
246
- text={`${nextTrip ?? "Não especificado"}`}
247
- size={11}
248
- color={theme.colors.black[180]}
249
- fontFamily={theme.fonts.inter_regular_400}
250
- />
251
- </Box>
252
- </Box>
253
- </Box>
254
- </Box>
255
- </Box>
256
-
257
- <Box
258
- width={"100%"}
259
- flexStyle={{
260
- flexDirection: "row",
261
- justifyContent: "space-between",
262
- alignItems: "center",
263
- }}
264
- paddingStyle={{
265
- padding: theme.paddings["2xs"],
266
- }}
267
- borderStyled={{
268
- borderTopWidth: theme.borderWidths.thin_medium,
269
- borderTopColor: theme.colors.neutral[200],
270
- }}
271
- >
272
- <Box marginStyle={{ marginRight: 2 }}>
273
- <Typography
274
- text={`Atividade:`}
275
- size={theme.fontSizes.xs}
276
- color={theme.colors.black[180]}
277
- fontFamily={theme.fonts.inter_regular_400}
278
- />
279
- <Typography
280
- text={`${origin ?? "Não especificado"}`}
281
- size={theme.fontSizes.sm}
282
- color={theme.colors.black[100]}
283
- fontFamily={theme.fonts.inter_semi_bold_600}
284
- />
285
- </Box>
286
-
287
- <Box
288
- flexStyle={{ flexDirection: "column", alignItems: "flex-end", justifyContent: "center" }}
289
- >
290
- <Typography
291
- text={`Tipo atividade: `}
292
- size={theme.fontSizes.xs}
293
- color={theme.colors.black[180]}
294
- fontFamily={theme.fonts.inter_light_300}
295
- />
296
- <Typography
297
- text={`${destination ?? "Não especificado"}`}
298
- size={theme.fontSizes.sm}
299
- color={theme.colors.black[100]}
300
- fontFamily={theme.fonts.inter_semi_bold_600}
301
- marginLeft={4}
302
- />
303
- </Box>
304
- </Box>
305
- </Box>
306
- );
307
- });
308
-
309
- TravelHistory.displayName = "TravelHistory";
310
-
311
- /**
312
- * EXPORTS
313
- */
314
- export default asBaseComponent(TravelHistory);
1
+ /**
2
+ * IMPORTS
3
+ */
4
+ import React, { forwardRef } from "react";
5
+
6
+ // components
7
+ import Box from "../box";
8
+ import Typography from "../typography";
9
+
10
+ // commons / icons
11
+ import { Icons } from "../../common/icons-svg";
12
+
13
+ // typings
14
+ import type { ITravelHistory } from "./interface";
15
+ import { asBaseComponent } from "../../@types/as-base-component";
16
+
17
+ // styles
18
+ import { theme } from "../../styles/theme/theme";
19
+ import { TouchableOpacity } from "react-native";
20
+
21
+ /**
22
+ * Componente TravelHistory para a interação da ui.
23
+ */
24
+ const TravelHistory = forwardRef<any, ITravelHistory>((props, ref): React.ReactElement => {
25
+ const {
26
+ testID,
27
+ backgroundColor,
28
+ idViagem,
29
+ startTrip,
30
+ plate,
31
+ value,
32
+ status,
33
+ supply,
34
+ nextTrip,
35
+ origin,
36
+ destination,
37
+ onPress,
38
+
39
+ // Flags de problema
40
+ supplyIssue = false,
41
+ logisticsIssue = false,
42
+ } = props;
43
+
44
+ return (
45
+ <TouchableOpacity
46
+ ref={ref}
47
+ activeOpacity={0.7}
48
+ onPress={() =>
49
+ onPress({
50
+ backgroundColor,
51
+ idViagem,
52
+ startTrip,
53
+ plate,
54
+ value,
55
+ status,
56
+ supply,
57
+ nextTrip,
58
+ origin,
59
+ destination,
60
+ supplyIssue,
61
+ logisticsIssue,
62
+ })
63
+ }
64
+ >
65
+ <Box
66
+ testID={testID}
67
+ width={"100%"}
68
+ backgroundColor={theme.colors.neutral[25]}
69
+ borderStyled={{
70
+ borderRadius: theme.borderWidths.thick_medium,
71
+ }}
72
+ marginStyle={{
73
+ marginBottom: theme.margins["2xs"],
74
+ }}
75
+ >
76
+ <Box
77
+ testID="travel-history-header"
78
+ width={"100%"}
79
+ height={30}
80
+ backgroundColor={backgroundColor}
81
+ borderStyled={{
82
+ borderTopLeftRadius: theme.borderWidths.thin_bold,
83
+ borderTopRightRadius: theme.borderWidths.thin_bold,
84
+ borderColor: theme.colors.blue[400],
85
+ }}
86
+ flexStyle={{
87
+ flexDirection: "row",
88
+ justifyContent: "space-between",
89
+ alignItems: "center",
90
+ }}
91
+ >
92
+ <Typography
93
+ text={`VIAGEM #${idViagem ?? "000"}`}
94
+ color={theme.colors.neutral[25]}
95
+ size={theme.fontSizes.xs}
96
+ fontFamily={theme.fonts.inter_semi_bold_600}
97
+ fontWeight={"500"}
98
+ lineHeight={theme.fontSizes.lg}
99
+ marginLeft={theme.margins["2xs"]}
100
+ />
101
+ <Typography
102
+ text={`INÍCIO ${startTrip ?? "01/01/2025 00:00"}`}
103
+ color={theme.colors.neutral[25]}
104
+ size={theme.fontSizes.xs}
105
+ fontFamily={theme.fonts.inter_semi_bold_600}
106
+ fontWeight={"500"}
107
+ lineHeight={theme.fontSizes.lg}
108
+ marginRight={theme.margins["2xs"]}
109
+ />
110
+ </Box>
111
+
112
+ <Box
113
+ width={"100%"}
114
+ flexStyle={{
115
+ flexDirection: "row",
116
+ justifyContent: "space-between",
117
+ }}
118
+ paddingStyle={{
119
+ padding: theme.paddings["2xs"],
120
+ }}
121
+ >
122
+ <Box width={"100%"}>
123
+ <Box flexStyle={{ flexDirection: "row", alignItems: "center" }}>
124
+ <Box width={"100%"}>
125
+ <Box
126
+ flexStyle={{
127
+ flexDirection: "row",
128
+ justifyContent: "space-between",
129
+ }}
130
+ width={"100%"}
131
+ >
132
+ <Box flexStyle={{ flexDirection: "row" }}>
133
+ <Typography
134
+ text={`Placa: `}
135
+ size={theme.fontSizes.sm}
136
+ color={theme.colors.black[10]}
137
+ fontFamily={theme.fonts.inter_medium_500}
138
+ />
139
+ <Typography
140
+ text={`${plate ?? "000-000"}`}
141
+ size={theme.fontSizes.xs}
142
+ color={theme.colors.black[180]}
143
+ fontFamily={theme.fonts.inter_light_300}
144
+ />
145
+ </Box>
146
+
147
+ <Box flexStyle={{ flexDirection: "row", alignItems: "center" }}>
148
+ {supplyIssue && (
149
+ <Box testID="icon-supply" marginStyle={{ marginRight: 8 }}>
150
+ <Icons icon={"GAS_PUMP"} color={backgroundColor} size={24} />
151
+ </Box>
152
+ )}
153
+
154
+ {logisticsIssue && (
155
+ <Box testID="icon-logistics" marginStyle={{ marginRight: 8 }}>
156
+ <Icons
157
+ icon={"EXCLAMATION_CIRCLE"}
158
+ background={backgroundColor}
159
+ color={"#ffffff"}
160
+ size={24}
161
+ />
162
+ </Box>
163
+ )}
164
+
165
+ <Box testID="icon-truck" marginStyle={{ marginRight: 8 }}>
166
+ <Icons icon={"TRUCK_ACTIVITY"} color={backgroundColor} size={24} />
167
+ </Box>
168
+ </Box>
169
+ </Box>
170
+
171
+ {status !== "ABERTA" && (
172
+ <Box
173
+ width={"84%"}
174
+ flexStyle={{
175
+ flexDirection: "row",
176
+ flexWrap: "wrap",
177
+ }}
178
+ >
179
+ <Typography
180
+ style={{ flexShrink: 1 }}
181
+ text={`Valor: `}
182
+ size={theme.fontSizes.sm}
183
+ color={theme.colors.black[10]}
184
+ fontFamily={theme.fonts.inter_medium_500}
185
+ />
186
+ <Typography
187
+ text={`R$ ${value ?? "00,00"}`}
188
+ size={11}
189
+ color={theme.colors.black[180]}
190
+ fontFamily={theme.fonts.inter_regular_400}
191
+ />
192
+ </Box>
193
+ )}
194
+
195
+ <Box
196
+ width={"84%"}
197
+ flexStyle={{
198
+ flexDirection: "row",
199
+ flexWrap: "wrap",
200
+ }}
201
+ >
202
+ <Typography
203
+ style={{ flexShrink: 1 }}
204
+ text={`Status viagem: `}
205
+ size={theme.fontSizes.sm}
206
+ color={theme.colors.black[10]}
207
+ fontFamily={theme.fonts.inter_medium_500}
208
+ />
209
+ <Typography
210
+ text={`${status ?? "ABERTA"}`}
211
+ size={theme.fontSizes.xs}
212
+ color={backgroundColor ?? theme.colors.black[180]}
213
+ fontFamily={theme.fonts.inter_regular_400}
214
+ />
215
+ </Box>
216
+
217
+ <Box
218
+ width={"84%"}
219
+ flexStyle={{
220
+ flexDirection: "row",
221
+ flexWrap: "wrap",
222
+ }}
223
+ >
224
+ <Typography
225
+ style={{ flexShrink: 1 }}
226
+ text={`Abastecimentos: `}
227
+ size={theme.fontSizes.sm}
228
+ color={theme.colors.black[10]}
229
+ fontFamily={theme.fonts.inter_medium_500}
230
+ />
231
+ <Typography
232
+ text={`${supply ?? "0"}`}
233
+ size={theme.fontSizes.xs}
234
+ color={backgroundColor ?? theme.colors.black[180]}
235
+ fontFamily={theme.fonts.inter_regular_400}
236
+ />
237
+ </Box>
238
+
239
+ <Box
240
+ width={"84%"}
241
+ flexStyle={{
242
+ flexDirection: "row",
243
+ flexWrap: "wrap",
244
+ }}
245
+ >
246
+ <Typography
247
+ style={{ flexShrink: 1 }}
248
+ text={`Próxima viagem: `}
249
+ size={theme.fontSizes.sm}
250
+ color={theme.colors.black[10]}
251
+ fontFamily={theme.fonts.inter_medium_500}
252
+ />
253
+ <Typography
254
+ text={`${nextTrip ?? "Não especificado"}`}
255
+ size={theme.fontSizes.xs}
256
+ color={backgroundColor ?? theme.colors.black[180]}
257
+ fontFamily={theme.fonts.inter_regular_400}
258
+ />
259
+ </Box>
260
+ </Box>
261
+ </Box>
262
+ </Box>
263
+ </Box>
264
+
265
+ <Box
266
+ width={"100%"}
267
+ flexStyle={{
268
+ flexDirection: "row",
269
+ justifyContent: "space-between",
270
+ alignItems: "center",
271
+ }}
272
+ paddingStyle={{
273
+ padding: theme.paddings["2xs"],
274
+ }}
275
+ borderStyled={{
276
+ borderTopWidth: theme.borderWidths.thin_medium,
277
+ borderTopColor: theme.colors.neutral[200],
278
+ }}
279
+ >
280
+ <Box marginStyle={{ marginRight: 2 }}>
281
+ <Typography
282
+ text={`Origem:`}
283
+ size={theme.fontSizes.xs}
284
+ color={theme.colors.black[180]}
285
+ fontFamily={theme.fonts.inter_regular_400}
286
+ />
287
+ <Typography
288
+ text={`${origin ?? "NÃO INFORMADO"}`}
289
+ size={theme.fontSizes["2xs"]}
290
+ align={"left"}
291
+ color="black180"
292
+ fontFamily={theme.fonts.inter_semi_bold_600}
293
+ lineHeight={22}
294
+ letterSpacing={"regular"}
295
+ />
296
+ </Box>
297
+
298
+ <Box
299
+ flexStyle={{
300
+ flexDirection: "column",
301
+ alignItems: "flex-end",
302
+ justifyContent: "center",
303
+ }}
304
+ >
305
+ <Typography
306
+ text={`Destino: `}
307
+ size={theme.fontSizes.xs}
308
+ color={theme.colors.black[180]}
309
+ fontFamily={theme.fonts.inter_regular_400}
310
+ />
311
+ <Typography
312
+ text={`${destination ?? "NÃO INFORMADO"}`}
313
+ size={theme.fontSizes["2xs"]}
314
+ color={theme.colors.black[100]}
315
+ fontFamily={theme.fonts.inter_semi_bold_600}
316
+ marginLeft={4}
317
+ />
318
+ </Box>
319
+ </Box>
320
+ </Box>
321
+ </TouchableOpacity>
322
+ );
323
+ });
324
+
325
+ TravelHistory.displayName = "TravelHistory";
326
+
327
+ /**
328
+ * EXPORTS
329
+ */
330
+ export default asBaseComponent(TravelHistory);