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
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* IMPORTS
|
|
5
|
+
*/
|
|
6
|
+
import React, { forwardRef } from "react";
|
|
7
|
+
|
|
8
|
+
// components
|
|
9
|
+
import Box from "../box/index.js";
|
|
10
|
+
import Typography from "../typography/index.js";
|
|
11
|
+
|
|
12
|
+
// styles
|
|
13
|
+
import { theme } from "../../styles/theme/theme.js";
|
|
14
|
+
|
|
15
|
+
// typings
|
|
16
|
+
import { asBaseComponent } from "../../@types/as-base-component.js";
|
|
17
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
18
|
+
/**
|
|
19
|
+
* Componente ResumeRaking para a interação da ui.
|
|
20
|
+
*/
|
|
21
|
+
const ResumeRaking = /*#__PURE__*/forwardRef(({
|
|
22
|
+
title,
|
|
23
|
+
value,
|
|
24
|
+
description
|
|
25
|
+
}, ref) => {
|
|
26
|
+
return /*#__PURE__*/_jsxs(Box, {
|
|
27
|
+
ref: ref,
|
|
28
|
+
width: "100%",
|
|
29
|
+
backgroundColor: theme.colors.neutral[25],
|
|
30
|
+
borderStyled: {
|
|
31
|
+
borderRadius: theme.borderWidths.thick_medium,
|
|
32
|
+
borderWidth: 1,
|
|
33
|
+
borderColor: theme.colors.neutral[300]
|
|
34
|
+
},
|
|
35
|
+
paddingStyle: {
|
|
36
|
+
padding: theme.paddings.xs
|
|
37
|
+
},
|
|
38
|
+
marginStyle: {
|
|
39
|
+
marginBottom: theme.margins.xs
|
|
40
|
+
},
|
|
41
|
+
children: [/*#__PURE__*/_jsx(Typography, {
|
|
42
|
+
text: title,
|
|
43
|
+
color: theme.colors.black[100],
|
|
44
|
+
size: theme.fontSizes.sm,
|
|
45
|
+
fontFamily: theme.fonts.inter_bold_700,
|
|
46
|
+
fontWeight: "500",
|
|
47
|
+
marginBottom: theme.margins.xs
|
|
48
|
+
}), /*#__PURE__*/_jsx(Typography, {
|
|
49
|
+
text: value,
|
|
50
|
+
color: theme.colors.black[180],
|
|
51
|
+
size: theme.fontSizes["2xl"],
|
|
52
|
+
fontFamily: theme.fonts.inter_bold_700,
|
|
53
|
+
fontWeight: "700",
|
|
54
|
+
marginBottom: theme.margins.xs
|
|
55
|
+
}), /*#__PURE__*/_jsx(Box, {
|
|
56
|
+
flexStyle: {
|
|
57
|
+
flexDirection: "row",
|
|
58
|
+
alignItems: "center",
|
|
59
|
+
justifyContent: "flex-end"
|
|
60
|
+
},
|
|
61
|
+
children: /*#__PURE__*/_jsx(Typography, {
|
|
62
|
+
text: description,
|
|
63
|
+
color: theme.colors.red[500],
|
|
64
|
+
size: theme.fontSizes.sm,
|
|
65
|
+
fontFamily: theme.fonts.inter_regular_400
|
|
66
|
+
})
|
|
67
|
+
})]
|
|
68
|
+
});
|
|
69
|
+
});
|
|
70
|
+
ResumeRaking.displayName = "ResumeRaking";
|
|
71
|
+
export default asBaseComponent(ResumeRaking);
|
|
72
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","forwardRef","Box","Typography","theme","asBaseComponent","jsx","_jsx","jsxs","_jsxs","ResumeRaking","title","value","description","ref","width","backgroundColor","colors","neutral","borderStyled","borderRadius","borderWidths","thick_medium","borderWidth","borderColor","paddingStyle","padding","paddings","xs","marginStyle","marginBottom","margins","children","text","color","black","size","fontSizes","sm","fontFamily","fonts","inter_bold_700","fontWeight","flexStyle","flexDirection","alignItems","justifyContent","red","inter_regular_400","displayName"],"sourceRoot":"..\\..\\..\\..\\src","sources":["components/resume-raking/index.tsx"],"mappings":";;AAAA;AACA;AACA;AACA,OAAOA,KAAK,IAAIC,UAAU,QAAQ,OAAO;;AAEzC;AACA,OAAOC,GAAG,MAAM,iBAAQ;AACxB,OAAOC,UAAU,MAAM,wBAAe;;AAEtC;AACA,SAASC,KAAK,QAAQ,6BAA0B;;AAEhD;AACA,SAASC,eAAe,QAAQ,mCAAgC;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAGjE;AACA;AACA;AACA,MAAMC,YAAY,gBAAGT,UAAU,CAC7B,CAAC;EAAEU,KAAK;EAAEC,KAAK;EAAEC;AAAY,CAAC,EAAEC,GAAG,KAAyB;EAC1D,oBACEL,KAAA,CAACP,GAAG;IACFY,GAAG,EAAEA,GAAI;IACTC,KAAK,EAAE,MAAO;IACdC,eAAe,EAAEZ,KAAK,CAACa,MAAM,CAACC,OAAO,CAAC,EAAE,CAAE;IAC1CC,YAAY,EAAE;MACZC,YAAY,EAAEhB,KAAK,CAACiB,YAAY,CAACC,YAAY;MAC7CC,WAAW,EAAE,CAAC;MACdC,WAAW,EAAEpB,KAAK,CAACa,MAAM,CAACC,OAAO,CAAC,GAAG;IACvC,CAAE;IACFO,YAAY,EAAE;MACZC,OAAO,EAAEtB,KAAK,CAACuB,QAAQ,CAACC;IAC1B,CAAE;IACFC,WAAW,EAAE;MACXC,YAAY,EAAE1B,KAAK,CAAC2B,OAAO,CAACH;IAC9B,CAAE;IAAAI,QAAA,gBAGFzB,IAAA,CAACJ,UAAU;MACT8B,IAAI,EAAEtB,KAAM;MACZuB,KAAK,EAAE9B,KAAK,CAACa,MAAM,CAACkB,KAAK,CAAC,GAAG,CAAE;MAC/BC,IAAI,EAAEhC,KAAK,CAACiC,SAAS,CAACC,EAAG;MACzBC,UAAU,EAAEnC,KAAK,CAACoC,KAAK,CAACC,cAAe;MACvCC,UAAU,EAAE,KAAM;MAClBZ,YAAY,EAAE1B,KAAK,CAAC2B,OAAO,CAACH;IAAG,CAChC,CAAC,eAGFrB,IAAA,CAACJ,UAAU;MACT8B,IAAI,EAAErB,KAAM;MACZsB,KAAK,EAAE9B,KAAK,CAACa,MAAM,CAACkB,KAAK,CAAC,GAAG,CAAE;MAC/BC,IAAI,EAAEhC,KAAK,CAACiC,SAAS,CAAC,KAAK,CAAE;MAC7BE,UAAU,EAAEnC,KAAK,CAACoC,KAAK,CAACC,cAAe;MACvCC,UAAU,EAAE,KAAM;MAClBZ,YAAY,EAAE1B,KAAK,CAAC2B,OAAO,CAACH;IAAG,CAChC,CAAC,eAEFrB,IAAA,CAACL,GAAG;MAACyC,SAAS,EAAE;QAAEC,aAAa,EAAE,KAAK;QAAEC,UAAU,EAAE,QAAQ;QAAEC,cAAc,EAAE;MAAW,CAAE;MAAAd,QAAA,eAEzFzB,IAAA,CAACJ,UAAU;QACT8B,IAAI,EAAEpB,WAAY;QAClBqB,KAAK,EAAE9B,KAAK,CAACa,MAAM,CAAC8B,GAAG,CAAC,GAAG,CAAE;QAC7BX,IAAI,EAAEhC,KAAK,CAACiC,SAAS,CAACC,EAAG;QACzBC,UAAU,EAAEnC,KAAK,CAACoC,KAAK,CAACQ;MAAkB,CAC3C;IAAC,CACC,CAAC;EAAA,CACH,CAAC;AAEV,CACF,CAAC;AAEDtC,YAAY,CAACuC,WAAW,GAAG,cAAc;AAEzC,eAAe5C,eAAe,CAACK,YAAY,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"..\\..\\..\\..\\src","sources":["components/resume-raking/interface.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"..\\..\\..\\..\\src","sources":["components/resume-raking/styles.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
/**
|
|
4
|
-
* IMPORTS
|
|
3
|
+
/**
|
|
4
|
+
* IMPORTS
|
|
5
5
|
*/
|
|
6
6
|
import React, { forwardRef } from "react";
|
|
7
7
|
|
|
@@ -18,9 +18,10 @@ import { asBaseComponent } from "../../@types/as-base-component.js";
|
|
|
18
18
|
|
|
19
19
|
// styles
|
|
20
20
|
import { theme } from "../../styles/theme/theme.js";
|
|
21
|
+
import { TouchableOpacity } from "react-native";
|
|
21
22
|
|
|
22
|
-
/**
|
|
23
|
-
* Componente TravelHistory para a interação da ui.
|
|
23
|
+
/**
|
|
24
|
+
* Componente TravelHistory para a interação da ui.
|
|
24
25
|
*/
|
|
25
26
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
26
27
|
const TravelHistory = /*#__PURE__*/forwardRef((props, ref) => {
|
|
@@ -36,280 +37,290 @@ const TravelHistory = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
36
37
|
nextTrip,
|
|
37
38
|
origin,
|
|
38
39
|
destination,
|
|
40
|
+
onPress,
|
|
39
41
|
// Flags de problema
|
|
40
42
|
supplyIssue = false,
|
|
41
43
|
logisticsIssue = false
|
|
42
44
|
} = props;
|
|
43
|
-
|
|
44
|
-
// Normaliza status
|
|
45
|
-
const normalizedStatus = (status ?? "ABERTA").toString().trim().toUpperCase();
|
|
46
|
-
const hasError = Boolean(supplyIssue || logisticsIssue);
|
|
47
|
-
|
|
48
|
-
// Regras de cor:
|
|
49
|
-
// - Se houver erro -> vermelho
|
|
50
|
-
// - Senão, se FECHADA -> verde
|
|
51
|
-
// - Senão (ABERTA e sem erro) -> usa backgroundColor (laranja já usado por você) ou fallback
|
|
52
|
-
const baseOpenColor = backgroundColor ?? theme.colors.green[400];
|
|
53
|
-
const computedColor = hasError ? theme.colors.red[400] : normalizedStatus === "FECHADA" ? theme.colors.green[400] : baseOpenColor;
|
|
54
|
-
return /*#__PURE__*/_jsxs(Box, {
|
|
45
|
+
return /*#__PURE__*/_jsx(TouchableOpacity, {
|
|
55
46
|
ref: ref,
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
47
|
+
activeOpacity: 0.7,
|
|
48
|
+
onPress: () => onPress({
|
|
49
|
+
backgroundColor,
|
|
50
|
+
idViagem,
|
|
51
|
+
startTrip,
|
|
52
|
+
plate,
|
|
53
|
+
value,
|
|
54
|
+
status,
|
|
55
|
+
supply,
|
|
56
|
+
nextTrip,
|
|
57
|
+
origin,
|
|
58
|
+
destination,
|
|
59
|
+
supplyIssue,
|
|
60
|
+
logisticsIssue
|
|
61
|
+
}),
|
|
62
|
+
children: /*#__PURE__*/_jsxs(Box, {
|
|
63
|
+
testID: testID,
|
|
67
64
|
width: "100%",
|
|
68
|
-
|
|
69
|
-
backgroundColor: computedColor,
|
|
65
|
+
backgroundColor: theme.colors.neutral[25],
|
|
70
66
|
borderStyled: {
|
|
71
|
-
|
|
72
|
-
borderTopRightRadius: theme.borderWidths.thin_bold,
|
|
73
|
-
borderColor: theme.colors.blue[400]
|
|
74
|
-
},
|
|
75
|
-
flexStyle: {
|
|
76
|
-
flexDirection: "row",
|
|
77
|
-
justifyContent: "space-between",
|
|
78
|
-
alignItems: "center"
|
|
79
|
-
},
|
|
80
|
-
children: [/*#__PURE__*/_jsx(Typography, {
|
|
81
|
-
text: `VIAGEM #${idViagem ?? "000"}`,
|
|
82
|
-
color: theme.colors.neutral[25],
|
|
83
|
-
size: theme.fontSizes.sm,
|
|
84
|
-
fontFamily: theme.fonts.inter_semi_bold_600,
|
|
85
|
-
fontWeight: "500",
|
|
86
|
-
lineHeight: theme.fontSizes.lg,
|
|
87
|
-
marginLeft: theme.margins["2xs"]
|
|
88
|
-
}), /*#__PURE__*/_jsx(Typography, {
|
|
89
|
-
text: `INÍCIO ${startTrip ?? "01/01/2025 00:00"}`,
|
|
90
|
-
color: theme.colors.neutral[25],
|
|
91
|
-
size: theme.fontSizes.sm,
|
|
92
|
-
fontFamily: theme.fonts.inter_semi_bold_600,
|
|
93
|
-
fontWeight: "500",
|
|
94
|
-
lineHeight: theme.fontSizes.lg,
|
|
95
|
-
marginRight: theme.margins["2xs"]
|
|
96
|
-
})]
|
|
97
|
-
}), /*#__PURE__*/_jsx(Box, {
|
|
98
|
-
width: "100%",
|
|
99
|
-
flexStyle: {
|
|
100
|
-
flexDirection: "row",
|
|
101
|
-
justifyContent: "space-between"
|
|
67
|
+
borderRadius: theme.borderWidths.thick_medium
|
|
102
68
|
},
|
|
103
|
-
|
|
104
|
-
|
|
69
|
+
marginStyle: {
|
|
70
|
+
marginBottom: theme.margins["2xs"]
|
|
105
71
|
},
|
|
106
|
-
children: /*#__PURE__*/
|
|
72
|
+
children: [/*#__PURE__*/_jsxs(Box, {
|
|
73
|
+
testID: "travel-history-header",
|
|
74
|
+
width: "100%",
|
|
75
|
+
height: 30,
|
|
76
|
+
backgroundColor: backgroundColor,
|
|
77
|
+
borderStyled: {
|
|
78
|
+
borderTopLeftRadius: theme.borderWidths.thin_bold,
|
|
79
|
+
borderTopRightRadius: theme.borderWidths.thin_bold,
|
|
80
|
+
borderColor: theme.colors.blue[400]
|
|
81
|
+
},
|
|
82
|
+
flexStyle: {
|
|
83
|
+
flexDirection: "row",
|
|
84
|
+
justifyContent: "space-between",
|
|
85
|
+
alignItems: "center"
|
|
86
|
+
},
|
|
87
|
+
children: [/*#__PURE__*/_jsx(Typography, {
|
|
88
|
+
text: `VIAGEM #${idViagem ?? "000"}`,
|
|
89
|
+
color: theme.colors.neutral[25],
|
|
90
|
+
size: theme.fontSizes.xs,
|
|
91
|
+
fontFamily: theme.fonts.inter_semi_bold_600,
|
|
92
|
+
fontWeight: "500",
|
|
93
|
+
lineHeight: theme.fontSizes.lg,
|
|
94
|
+
marginLeft: theme.margins["2xs"]
|
|
95
|
+
}), /*#__PURE__*/_jsx(Typography, {
|
|
96
|
+
text: `INÍCIO ${startTrip ?? "01/01/2025 00:00"}`,
|
|
97
|
+
color: theme.colors.neutral[25],
|
|
98
|
+
size: theme.fontSizes.xs,
|
|
99
|
+
fontFamily: theme.fonts.inter_semi_bold_600,
|
|
100
|
+
fontWeight: "500",
|
|
101
|
+
lineHeight: theme.fontSizes.lg,
|
|
102
|
+
marginRight: theme.margins["2xs"]
|
|
103
|
+
})]
|
|
104
|
+
}), /*#__PURE__*/_jsx(Box, {
|
|
107
105
|
width: "100%",
|
|
106
|
+
flexStyle: {
|
|
107
|
+
flexDirection: "row",
|
|
108
|
+
justifyContent: "space-between"
|
|
109
|
+
},
|
|
110
|
+
paddingStyle: {
|
|
111
|
+
padding: theme.paddings["2xs"]
|
|
112
|
+
},
|
|
108
113
|
children: /*#__PURE__*/_jsx(Box, {
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
children:
|
|
116
|
-
flexStyle: {
|
|
117
|
-
flexDirection: "row",
|
|
118
|
-
justifyContent: "space-between"
|
|
119
|
-
},
|
|
114
|
+
width: "100%",
|
|
115
|
+
children: /*#__PURE__*/_jsx(Box, {
|
|
116
|
+
flexStyle: {
|
|
117
|
+
flexDirection: "row",
|
|
118
|
+
alignItems: "center"
|
|
119
|
+
},
|
|
120
|
+
children: /*#__PURE__*/_jsxs(Box, {
|
|
120
121
|
width: "100%",
|
|
121
122
|
children: [/*#__PURE__*/_jsxs(Box, {
|
|
122
123
|
flexStyle: {
|
|
123
|
-
flexDirection: "row"
|
|
124
|
+
flexDirection: "row",
|
|
125
|
+
justifyContent: "space-between"
|
|
126
|
+
},
|
|
127
|
+
width: "100%",
|
|
128
|
+
children: [/*#__PURE__*/_jsxs(Box, {
|
|
129
|
+
flexStyle: {
|
|
130
|
+
flexDirection: "row"
|
|
131
|
+
},
|
|
132
|
+
children: [/*#__PURE__*/_jsx(Typography, {
|
|
133
|
+
text: `Placa: `,
|
|
134
|
+
size: theme.fontSizes.sm,
|
|
135
|
+
color: theme.colors.black[10],
|
|
136
|
+
fontFamily: theme.fonts.inter_medium_500
|
|
137
|
+
}), /*#__PURE__*/_jsx(Typography, {
|
|
138
|
+
text: `${plate ?? "000-000"}`,
|
|
139
|
+
size: theme.fontSizes.xs,
|
|
140
|
+
color: theme.colors.black[180],
|
|
141
|
+
fontFamily: theme.fonts.inter_light_300
|
|
142
|
+
})]
|
|
143
|
+
}), /*#__PURE__*/_jsxs(Box, {
|
|
144
|
+
flexStyle: {
|
|
145
|
+
flexDirection: "row",
|
|
146
|
+
alignItems: "center"
|
|
147
|
+
},
|
|
148
|
+
children: [supplyIssue && /*#__PURE__*/_jsx(Box, {
|
|
149
|
+
testID: "icon-supply",
|
|
150
|
+
marginStyle: {
|
|
151
|
+
marginRight: 8
|
|
152
|
+
},
|
|
153
|
+
children: /*#__PURE__*/_jsx(Icons, {
|
|
154
|
+
icon: "GAS_PUMP",
|
|
155
|
+
color: backgroundColor,
|
|
156
|
+
size: 24
|
|
157
|
+
})
|
|
158
|
+
}), logisticsIssue && /*#__PURE__*/_jsx(Box, {
|
|
159
|
+
testID: "icon-logistics",
|
|
160
|
+
marginStyle: {
|
|
161
|
+
marginRight: 8
|
|
162
|
+
},
|
|
163
|
+
children: /*#__PURE__*/_jsx(Icons, {
|
|
164
|
+
icon: "EXCLAMATION_CIRCLE",
|
|
165
|
+
background: backgroundColor,
|
|
166
|
+
color: "#ffffff",
|
|
167
|
+
size: 24
|
|
168
|
+
})
|
|
169
|
+
}), /*#__PURE__*/_jsx(Box, {
|
|
170
|
+
testID: "icon-truck",
|
|
171
|
+
marginStyle: {
|
|
172
|
+
marginRight: 8
|
|
173
|
+
},
|
|
174
|
+
children: /*#__PURE__*/_jsx(Icons, {
|
|
175
|
+
icon: "TRUCK_ACTIVITY",
|
|
176
|
+
color: backgroundColor,
|
|
177
|
+
size: 24
|
|
178
|
+
})
|
|
179
|
+
})]
|
|
180
|
+
})]
|
|
181
|
+
}), status !== "ABERTA" && /*#__PURE__*/_jsxs(Box, {
|
|
182
|
+
width: "84%",
|
|
183
|
+
flexStyle: {
|
|
184
|
+
flexDirection: "row",
|
|
185
|
+
flexWrap: "wrap"
|
|
124
186
|
},
|
|
125
187
|
children: [/*#__PURE__*/_jsx(Typography, {
|
|
126
|
-
|
|
127
|
-
|
|
188
|
+
style: {
|
|
189
|
+
flexShrink: 1
|
|
190
|
+
},
|
|
191
|
+
text: `Valor: `,
|
|
192
|
+
size: theme.fontSizes.sm,
|
|
128
193
|
color: theme.colors.black[10],
|
|
129
194
|
fontFamily: theme.fonts.inter_medium_500
|
|
130
195
|
}), /*#__PURE__*/_jsx(Typography, {
|
|
131
|
-
text:
|
|
132
|
-
size:
|
|
196
|
+
text: `R$ ${value ?? "00,00"}`,
|
|
197
|
+
size: 11,
|
|
133
198
|
color: theme.colors.black[180],
|
|
134
|
-
fontFamily: theme.fonts.
|
|
199
|
+
fontFamily: theme.fonts.inter_regular_400
|
|
135
200
|
})]
|
|
136
201
|
}), /*#__PURE__*/_jsxs(Box, {
|
|
202
|
+
width: "84%",
|
|
137
203
|
flexStyle: {
|
|
138
204
|
flexDirection: "row",
|
|
139
|
-
|
|
205
|
+
flexWrap: "wrap"
|
|
140
206
|
},
|
|
141
|
-
children: [
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
marginRight: 8
|
|
145
|
-
},
|
|
146
|
-
children: /*#__PURE__*/_jsx(Icons, {
|
|
147
|
-
icon: "GAS_PUMP",
|
|
148
|
-
color: computedColor,
|
|
149
|
-
size: 24
|
|
150
|
-
})
|
|
151
|
-
}), logisticsIssue && /*#__PURE__*/_jsx(Box, {
|
|
152
|
-
testID: "icon-logistics",
|
|
153
|
-
marginStyle: {
|
|
154
|
-
marginRight: 8
|
|
155
|
-
},
|
|
156
|
-
children: /*#__PURE__*/_jsx(Icons, {
|
|
157
|
-
icon: "EXCLAMATION_CIRCLE",
|
|
158
|
-
background: computedColor,
|
|
159
|
-
color: "#ffffff",
|
|
160
|
-
size: 24
|
|
161
|
-
})
|
|
162
|
-
}), /*#__PURE__*/_jsx(Box, {
|
|
163
|
-
testID: "icon-truck",
|
|
164
|
-
marginStyle: {
|
|
165
|
-
marginRight: 8
|
|
207
|
+
children: [/*#__PURE__*/_jsx(Typography, {
|
|
208
|
+
style: {
|
|
209
|
+
flexShrink: 1
|
|
166
210
|
},
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
211
|
+
text: `Status viagem: `,
|
|
212
|
+
size: theme.fontSizes.sm,
|
|
213
|
+
color: theme.colors.black[10],
|
|
214
|
+
fontFamily: theme.fonts.inter_medium_500
|
|
215
|
+
}), /*#__PURE__*/_jsx(Typography, {
|
|
216
|
+
text: `${status ?? "ABERTA"}`,
|
|
217
|
+
size: theme.fontSizes.xs,
|
|
218
|
+
color: backgroundColor ?? theme.colors.black[180],
|
|
219
|
+
fontFamily: theme.fonts.inter_regular_400
|
|
172
220
|
})]
|
|
173
|
-
})
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
flexWrap: "wrap"
|
|
179
|
-
},
|
|
180
|
-
children: [/*#__PURE__*/_jsx(Typography, {
|
|
181
|
-
style: {
|
|
182
|
-
flexShrink: 1
|
|
183
|
-
},
|
|
184
|
-
text: `Valor: `,
|
|
185
|
-
size: theme.fontSizes.xs,
|
|
186
|
-
color: theme.colors.black[10],
|
|
187
|
-
fontFamily: theme.fonts.inter_medium_500
|
|
188
|
-
}), /*#__PURE__*/_jsx(Typography, {
|
|
189
|
-
text: `R$ ${value ?? "00,00"}`,
|
|
190
|
-
size: 11,
|
|
191
|
-
color: theme.colors.black[180],
|
|
192
|
-
fontFamily: theme.fonts.inter_regular_400
|
|
193
|
-
})]
|
|
194
|
-
}), /*#__PURE__*/_jsxs(Box, {
|
|
195
|
-
width: "84%",
|
|
196
|
-
flexStyle: {
|
|
197
|
-
flexDirection: "row",
|
|
198
|
-
flexWrap: "wrap"
|
|
199
|
-
},
|
|
200
|
-
children: [/*#__PURE__*/_jsx(Typography, {
|
|
201
|
-
style: {
|
|
202
|
-
flexShrink: 1
|
|
203
|
-
},
|
|
204
|
-
text: `Status viagem: `,
|
|
205
|
-
size: theme.fontSizes.xs,
|
|
206
|
-
color: theme.colors.black[10],
|
|
207
|
-
fontFamily: theme.fonts.inter_medium_500
|
|
208
|
-
}), /*#__PURE__*/_jsx(Typography, {
|
|
209
|
-
text: `${status ?? "ABERTA"}`,
|
|
210
|
-
size: 11,
|
|
211
|
-
color: theme.colors.black[180],
|
|
212
|
-
fontFamily: theme.fonts.inter_regular_400
|
|
213
|
-
})]
|
|
214
|
-
}), /*#__PURE__*/_jsxs(Box, {
|
|
215
|
-
width: "84%",
|
|
216
|
-
flexStyle: {
|
|
217
|
-
flexDirection: "row",
|
|
218
|
-
flexWrap: "wrap"
|
|
219
|
-
},
|
|
220
|
-
children: [/*#__PURE__*/_jsx(Typography, {
|
|
221
|
-
style: {
|
|
222
|
-
flexShrink: 1
|
|
221
|
+
}), /*#__PURE__*/_jsxs(Box, {
|
|
222
|
+
width: "84%",
|
|
223
|
+
flexStyle: {
|
|
224
|
+
flexDirection: "row",
|
|
225
|
+
flexWrap: "wrap"
|
|
223
226
|
},
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
227
|
+
children: [/*#__PURE__*/_jsx(Typography, {
|
|
228
|
+
style: {
|
|
229
|
+
flexShrink: 1
|
|
230
|
+
},
|
|
231
|
+
text: `Abastecimentos: `,
|
|
232
|
+
size: theme.fontSizes.sm,
|
|
233
|
+
color: theme.colors.black[10],
|
|
234
|
+
fontFamily: theme.fonts.inter_medium_500
|
|
235
|
+
}), /*#__PURE__*/_jsx(Typography, {
|
|
236
|
+
text: `${supply ?? "0"}`,
|
|
237
|
+
size: theme.fontSizes.xs,
|
|
238
|
+
color: backgroundColor ?? theme.colors.black[180],
|
|
239
|
+
fontFamily: theme.fonts.inter_regular_400
|
|
240
|
+
})]
|
|
241
|
+
}), /*#__PURE__*/_jsxs(Box, {
|
|
242
|
+
width: "84%",
|
|
243
|
+
flexStyle: {
|
|
244
|
+
flexDirection: "row",
|
|
245
|
+
flexWrap: "wrap"
|
|
243
246
|
},
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
247
|
+
children: [/*#__PURE__*/_jsx(Typography, {
|
|
248
|
+
style: {
|
|
249
|
+
flexShrink: 1
|
|
250
|
+
},
|
|
251
|
+
text: `Próxima viagem: `,
|
|
252
|
+
size: theme.fontSizes.sm,
|
|
253
|
+
color: theme.colors.black[10],
|
|
254
|
+
fontFamily: theme.fonts.inter_medium_500
|
|
255
|
+
}), /*#__PURE__*/_jsx(Typography, {
|
|
256
|
+
text: `${nextTrip ?? "Não especificado"}`,
|
|
257
|
+
size: theme.fontSizes.xs,
|
|
258
|
+
color: backgroundColor ?? theme.colors.black[180],
|
|
259
|
+
fontFamily: theme.fonts.inter_regular_400
|
|
260
|
+
})]
|
|
253
261
|
})]
|
|
254
|
-
})
|
|
262
|
+
})
|
|
255
263
|
})
|
|
256
264
|
})
|
|
257
|
-
})
|
|
258
|
-
}), /*#__PURE__*/_jsxs(Box, {
|
|
259
|
-
width: "100%",
|
|
260
|
-
flexStyle: {
|
|
261
|
-
flexDirection: "row",
|
|
262
|
-
justifyContent: "space-between",
|
|
263
|
-
alignItems: "center"
|
|
264
|
-
},
|
|
265
|
-
paddingStyle: {
|
|
266
|
-
padding: theme.paddings["2xs"]
|
|
267
|
-
},
|
|
268
|
-
borderStyled: {
|
|
269
|
-
borderTopWidth: theme.borderWidths.thin_medium,
|
|
270
|
-
borderTopColor: theme.colors.neutral[200]
|
|
271
|
-
},
|
|
272
|
-
children: [/*#__PURE__*/_jsxs(Box, {
|
|
273
|
-
marginStyle: {
|
|
274
|
-
marginRight: 2
|
|
275
|
-
},
|
|
276
|
-
children: [/*#__PURE__*/_jsx(Typography, {
|
|
277
|
-
text: `Atividade:`,
|
|
278
|
-
size: theme.fontSizes.xs,
|
|
279
|
-
color: theme.colors.black[180],
|
|
280
|
-
fontFamily: theme.fonts.inter_regular_400
|
|
281
|
-
}), /*#__PURE__*/_jsx(Typography, {
|
|
282
|
-
text: `${origin ?? "Não especificado"}`,
|
|
283
|
-
size: theme.fontSizes.sm,
|
|
284
|
-
color: theme.colors.black[100],
|
|
285
|
-
fontFamily: theme.fonts.inter_semi_bold_600
|
|
286
|
-
})]
|
|
287
265
|
}), /*#__PURE__*/_jsxs(Box, {
|
|
266
|
+
width: "100%",
|
|
288
267
|
flexStyle: {
|
|
289
|
-
flexDirection: "
|
|
290
|
-
|
|
291
|
-
|
|
268
|
+
flexDirection: "row",
|
|
269
|
+
justifyContent: "space-between",
|
|
270
|
+
alignItems: "center"
|
|
292
271
|
},
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
272
|
+
paddingStyle: {
|
|
273
|
+
padding: theme.paddings["2xs"]
|
|
274
|
+
},
|
|
275
|
+
borderStyled: {
|
|
276
|
+
borderTopWidth: theme.borderWidths.thin_medium,
|
|
277
|
+
borderTopColor: theme.colors.neutral[200]
|
|
278
|
+
},
|
|
279
|
+
children: [/*#__PURE__*/_jsxs(Box, {
|
|
280
|
+
marginStyle: {
|
|
281
|
+
marginRight: 2
|
|
282
|
+
},
|
|
283
|
+
children: [/*#__PURE__*/_jsx(Typography, {
|
|
284
|
+
text: `Origem:`,
|
|
285
|
+
size: theme.fontSizes.xs,
|
|
286
|
+
color: theme.colors.black[180],
|
|
287
|
+
fontFamily: theme.fonts.inter_regular_400
|
|
288
|
+
}), /*#__PURE__*/_jsx(Typography, {
|
|
289
|
+
text: `${origin ?? "NÃO INFORMADO"}`,
|
|
290
|
+
size: theme.fontSizes["2xs"],
|
|
291
|
+
align: "left",
|
|
292
|
+
color: "black180",
|
|
293
|
+
fontFamily: theme.fonts.inter_semi_bold_600,
|
|
294
|
+
lineHeight: 22,
|
|
295
|
+
letterSpacing: "regular"
|
|
296
|
+
})]
|
|
297
|
+
}), /*#__PURE__*/_jsxs(Box, {
|
|
298
|
+
flexStyle: {
|
|
299
|
+
flexDirection: "column",
|
|
300
|
+
alignItems: "flex-end",
|
|
301
|
+
justifyContent: "center"
|
|
302
|
+
},
|
|
303
|
+
children: [/*#__PURE__*/_jsx(Typography, {
|
|
304
|
+
text: `Destino: `,
|
|
305
|
+
size: theme.fontSizes.xs,
|
|
306
|
+
color: theme.colors.black[180],
|
|
307
|
+
fontFamily: theme.fonts.inter_regular_400
|
|
308
|
+
}), /*#__PURE__*/_jsx(Typography, {
|
|
309
|
+
text: `${destination ?? "NÃO INFORMADO"}`,
|
|
310
|
+
size: theme.fontSizes["2xs"],
|
|
311
|
+
color: theme.colors.black[100],
|
|
312
|
+
fontFamily: theme.fonts.inter_semi_bold_600,
|
|
313
|
+
marginLeft: 4
|
|
314
|
+
})]
|
|
304
315
|
})]
|
|
305
316
|
})]
|
|
306
|
-
})
|
|
317
|
+
})
|
|
307
318
|
});
|
|
308
319
|
});
|
|
309
320
|
TravelHistory.displayName = "TravelHistory";
|
|
310
321
|
|
|
311
|
-
/**
|
|
312
|
-
* EXPORTS
|
|
322
|
+
/**
|
|
323
|
+
* EXPORTS
|
|
313
324
|
*/
|
|
314
325
|
export default asBaseComponent(TravelHistory);
|
|
315
326
|
//# sourceMappingURL=index.js.map
|