react-native-exp-fig 0.1.17 → 0.1.19
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/common/icons-svg/constants/index.js +8 -6
- package/lib/commonjs/common/icons-svg/constants/index.js.map +1 -1
- package/lib/commonjs/common/icons-svg/house/index.js +49 -0
- package/lib/commonjs/common/icons-svg/house/index.js.map +1 -0
- package/lib/commonjs/common/icons-svg/index.js +28 -13
- package/lib/commonjs/common/icons-svg/index.js.map +1 -1
- package/lib/commonjs/common/icons-svg/island/index.js +34 -0
- package/lib/commonjs/common/icons-svg/island/index.js.map +1 -0
- package/lib/commonjs/components/activities-daily/index.js +6 -5
- package/lib/commonjs/components/activities-daily/index.js.map +1 -1
- package/lib/commonjs/components/activities-progress/index.js +18 -15
- package/lib/commonjs/components/activities-progress/index.js.map +1 -1
- package/lib/commonjs/components/activities-progress/interface.d.js.map +1 -1
- package/lib/commonjs/components/card-history/index.js +20 -9
- package/lib/commonjs/components/card-history/index.js.map +1 -1
- package/lib/commonjs/components/card-history/interface.d.js.map +1 -1
- package/lib/commonjs/components/menu-item/interface.d.js.map +1 -1
- package/lib/commonjs/components/notification-loading/index.js +5 -6
- package/lib/commonjs/components/notification-loading/index.js.map +1 -1
- package/lib/commonjs/components/step-indicator/index.js +9 -9
- package/lib/commonjs/components/step-indicator/index.js.map +1 -1
- package/lib/commonjs/components/step-indicator/interface.d.js.map +1 -1
- package/lib/commonjs/components/step-indicator/styles.js +6 -6
- package/lib/commonjs/components/step-indicator/styles.js.map +1 -1
- package/lib/commonjs/stories/activities-progress/activities-progress.stories.js +24 -14
- package/lib/commonjs/stories/activities-progress/activities-progress.stories.js.map +1 -1
- package/lib/commonjs/stories/card-history/card-history.stories.js +5 -2
- package/lib/commonjs/stories/card-history/card-history.stories.js.map +1 -1
- package/lib/commonjs/stories/step-indicator/step-indicator.stories.js +34 -7
- package/lib/commonjs/stories/step-indicator/step-indicator.stories.js.map +1 -1
- package/lib/commonjs/utils/get-icon-by-property/index.js +87 -0
- package/lib/commonjs/utils/get-icon-by-property/index.js.map +1 -0
- package/lib/module/common/icons-svg/constants/index.js +8 -6
- package/lib/module/common/icons-svg/constants/index.js.map +1 -1
- package/lib/module/common/icons-svg/house/index.js +41 -0
- package/lib/module/common/icons-svg/house/index.js.map +1 -0
- package/lib/module/common/icons-svg/index.js +28 -13
- package/lib/module/common/icons-svg/index.js.map +1 -1
- package/lib/module/common/icons-svg/island/index.js +26 -0
- package/lib/module/common/icons-svg/island/index.js.map +1 -0
- package/lib/module/components/activities-daily/index.js +6 -5
- package/lib/module/components/activities-daily/index.js.map +1 -1
- package/lib/module/components/activities-progress/index.js +17 -15
- package/lib/module/components/activities-progress/index.js.map +1 -1
- package/lib/module/components/activities-progress/interface.d.js.map +1 -1
- package/lib/module/components/card-history/index.js +20 -9
- package/lib/module/components/card-history/index.js.map +1 -1
- package/lib/module/components/card-history/interface.d.js.map +1 -1
- package/lib/module/components/menu-item/interface.d.js.map +1 -1
- package/lib/module/components/notification-loading/index.js +5 -6
- package/lib/module/components/notification-loading/index.js.map +1 -1
- package/lib/module/components/step-indicator/index.js +9 -9
- package/lib/module/components/step-indicator/index.js.map +1 -1
- package/lib/module/components/step-indicator/interface.d.js.map +1 -1
- package/lib/module/components/step-indicator/styles.js +6 -6
- package/lib/module/components/step-indicator/styles.js.map +1 -1
- package/lib/module/stories/activities-progress/activities-progress.stories.js +24 -14
- package/lib/module/stories/activities-progress/activities-progress.stories.js.map +1 -1
- package/lib/module/stories/card-history/card-history.stories.js +5 -2
- package/lib/module/stories/card-history/card-history.stories.js.map +1 -1
- package/lib/module/stories/step-indicator/step-indicator.stories.js +33 -6
- package/lib/module/stories/step-indicator/step-indicator.stories.js.map +1 -1
- package/lib/module/utils/get-icon-by-property/index.js +81 -0
- package/lib/module/utils/get-icon-by-property/index.js.map +1 -0
- package/lib/typescript/src/common/icons-svg/constants/index.d.ts +3 -1
- package/lib/typescript/src/common/icons-svg/house/index.d.ts +10 -0
- package/lib/typescript/src/common/icons-svg/island/index.d.ts +10 -0
- package/lib/typescript/src/stories/step-indicator/step-indicator.stories.d.ts +1 -0
- package/lib/typescript/src/utils/get-icon-by-property/index.d.ts +15 -0
- package/package.json +2 -3
- package/src/common/icons-svg/constants/index.ts +66 -64
- package/src/common/icons-svg/house/index.tsx +41 -0
- package/src/common/icons-svg/index.tsx +267 -259
- package/src/common/icons-svg/island/index.tsx +25 -0
- package/src/components/activities-daily/index.tsx +116 -116
- package/src/components/activities-progress/index.tsx +170 -162
- package/src/components/activities-progress/interface.d.ts +61 -41
- package/src/components/card-history/index.tsx +221 -211
- package/src/components/card-history/interface.d.ts +38 -34
- package/src/components/menu-item/interface.d.ts +1 -1
- package/src/components/notification-loading/index.tsx +157 -162
- package/src/components/step-indicator/index.tsx +166 -164
- package/src/components/step-indicator/interface.d.ts +35 -34
- package/src/components/step-indicator/styles.ts +68 -68
- package/src/stories/activities-progress/activities-progress.stories.tsx +71 -61
- package/src/stories/card-history/card-history.stories.tsx +53 -50
- package/src/stories/step-indicator/step-indicator.stories.tsx +154 -124
- package/src/utils/get-icon-by-property/index.tsx +54 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","TouchableOpacity","Box","Typography","Icons","theme","ActivitiesDaily","handleActivity","createElement","testID","width","height","backgroundColor","colors","neutral","borderStyled","borderRadius","borderWidths","thick_medium","blue","borderTopLeftRadius","thin_bold","borderTopRightRadius","borderColor","flexStyle","justifyContent","text","color","size","fontSizes","sm","fontFamily","fonts","inter_medium_500","fontWeight","lineHeight","lg","marginLeft","margins","flexDirection","paddingStyle","padding","paddings","xs","inter_bold_700","md","marginStyle","marginTop","activeOpacity","style","marginRight","xl","alignItems","onPress","icon","black"],"sources":["index.tsx"],"sourcesContent":["/**\n * IMPORTS\n */\nimport React from \"react\";\nimport { TouchableOpacity } from \"react-native\";\n\n// components\nimport { Box } from \"../../components/box\";\nimport { Typography } from \"../../components/typography\";\n\n//commons/ icons\nimport { Icons } from \"../../common/icons-svg\";\n\n// styles\nimport { theme } from \"../../styles/theme/theme\";\n\n// typings\nimport { IActivitiesDaily } from \"./interface\";\n\nconst ActivitiesDaily: React.FC<IActivitiesDaily> = ({ handleActivity }) => {\n return (\n <Box\n testID={\"activities-daily\"}\n width={\"100%\"}\n height={100}\n backgroundColor={theme.colors.neutral[25]}\n borderStyled={{\n borderRadius: theme.borderWidths.thick_medium,\n }}\n >\n <Box\n width={\"100%\"}\n height={30}\n backgroundColor={theme.colors.blue[400]}\n borderStyled={{\n borderTopLeftRadius: theme.borderWidths.thin_bold,\n borderTopRightRadius: theme.borderWidths.thin_bold,\n borderColor: theme.colors.blue[400],\n }}\n flexStyle={{\n justifyContent: \"center\",\n }}\n >\n <Typography\n text={\"Atividades diárias\"}\n color={theme.colors.neutral[25]}\n size={theme.fontSizes.sm}\n fontFamily={theme.fonts.inter_medium_500}\n fontWeight={\"500\"}\n lineHeight={theme.fontSizes.lg}\n marginLeft={theme.margins[\"2xs\"]}\n />\n </Box>\n <Box\n width={\"100%\"}\n flexStyle={{\n flexDirection: \"row\",\n justifyContent: \"space-between\",\n }}\n paddingStyle={{\n padding: theme.paddings[\"2xs\"],\n }}\n >\n <Typography\n text={\"Selecione uma das opções\"}\n color={theme.colors.blue[500]}\n size={theme.fontSizes.xs}\n fontFamily={theme.fonts.inter_bold_700}\n fontWeight={\"700\"}\n lineHeight={theme.fontSizes.md}\n />\n\n <Box flexStyle={{ flexDirection: \"row\" }} marginStyle={{ marginTop: 5 }}>\n <TouchableOpacity\n activeOpacity={0.7}\n style={{ marginRight: theme.margins.xl, alignItems: \"center\" }}\n onPress={() => handleActivity(\"trabalho\")}\n >\n <Icons icon={\"
|
|
1
|
+
{"version":3,"names":["React","TouchableOpacity","Box","Typography","Icons","theme","ActivitiesDaily","handleActivity","createElement","testID","width","height","backgroundColor","colors","neutral","borderStyled","borderRadius","borderWidths","thick_medium","blue","borderTopLeftRadius","thin_bold","borderTopRightRadius","borderColor","flexStyle","justifyContent","text","color","size","fontSizes","sm","fontFamily","fonts","inter_medium_500","fontWeight","lineHeight","lg","marginLeft","margins","flexDirection","paddingStyle","padding","paddings","xs","inter_bold_700","md","marginStyle","marginTop","activeOpacity","style","marginRight","xl","alignItems","onPress","icon","black"],"sources":["index.tsx"],"sourcesContent":["/**\r\n * IMPORTS\r\n */\r\nimport React from \"react\";\r\nimport { TouchableOpacity } from \"react-native\";\r\n\r\n// components\r\nimport { Box } from \"../../components/box\";\r\nimport { Typography } from \"../../components/typography\";\r\n\r\n//commons/ icons\r\nimport { Icons } from \"../../common/icons-svg\";\r\n\r\n// styles\r\nimport { theme } from \"../../styles/theme/theme\";\r\n\r\n// typings\r\nimport { IActivitiesDaily } from \"./interface\";\r\n\r\nconst ActivitiesDaily: React.FC<IActivitiesDaily> = ({ handleActivity }) => {\r\n return (\r\n <Box\r\n testID={\"activities-daily\"}\r\n width={\"100%\"}\r\n height={100}\r\n backgroundColor={theme.colors.neutral[25]}\r\n borderStyled={{\r\n borderRadius: theme.borderWidths.thick_medium,\r\n }}\r\n >\r\n <Box\r\n width={\"100%\"}\r\n height={30}\r\n backgroundColor={theme.colors.blue[400]}\r\n borderStyled={{\r\n borderTopLeftRadius: theme.borderWidths.thin_bold,\r\n borderTopRightRadius: theme.borderWidths.thin_bold,\r\n borderColor: theme.colors.blue[400],\r\n }}\r\n flexStyle={{\r\n justifyContent: \"center\",\r\n }}\r\n >\r\n <Typography\r\n text={\"Atividades diárias\"}\r\n color={theme.colors.neutral[25]}\r\n size={theme.fontSizes.sm}\r\n fontFamily={theme.fonts.inter_medium_500}\r\n fontWeight={\"500\"}\r\n lineHeight={theme.fontSizes.lg}\r\n marginLeft={theme.margins[\"2xs\"]}\r\n />\r\n </Box>\r\n <Box\r\n width={\"100%\"}\r\n flexStyle={{\r\n flexDirection: \"row\",\r\n justifyContent: \"space-between\",\r\n }}\r\n paddingStyle={{\r\n padding: theme.paddings[\"2xs\"],\r\n }}\r\n >\r\n <Typography\r\n text={\"Selecione uma das opções\"}\r\n color={theme.colors.blue[500]}\r\n size={theme.fontSizes.xs}\r\n fontFamily={theme.fonts.inter_bold_700}\r\n fontWeight={\"700\"}\r\n lineHeight={theme.fontSizes.md}\r\n />\r\n\r\n <Box flexStyle={{ flexDirection: \"row\" }} marginStyle={{ marginTop: 5 }}>\r\n <TouchableOpacity\r\n activeOpacity={0.7}\r\n style={{ marginRight: theme.margins.xl, alignItems: \"center\" }}\r\n onPress={() => handleActivity(\"trabalho\")}\r\n >\r\n <Icons icon={\"TRUCK\"} color={theme.colors.blue[525]} />\r\n <Typography\r\n text={\"Trabalho\"}\r\n color={theme.colors.black[25]}\r\n size={theme.fontSizes.xs}\r\n fontFamily={theme.fonts.inter_bold_700}\r\n fontWeight={\"700\"}\r\n lineHeight={theme.fontSizes.sm}\r\n marginTop={4}\r\n />\r\n </TouchableOpacity>\r\n\r\n <TouchableOpacity\r\n activeOpacity={0.7}\r\n style={{ alignItems: \"center\" }}\r\n onPress={() => handleActivity(\"descanso\")}\r\n >\r\n <Icons icon={\"BED\"} />\r\n <Typography\r\n text={\"Descanso\"}\r\n color={theme.colors.black[25]}\r\n size={theme.fontSizes.xs}\r\n fontFamily={theme.fonts.inter_bold_700}\r\n fontWeight={\"700\"}\r\n lineHeight={theme.fontSizes.sm}\r\n marginTop={4}\r\n />\r\n </TouchableOpacity>\r\n </Box>\r\n </Box>\r\n </Box>\r\n );\r\n};\r\n\r\n/**\r\n * EXPORTS\r\n */\r\nexport { ActivitiesDaily };\r\n"],"mappings":"AAAA;AACA;AACA;AACA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,gBAAgB,QAAQ,cAAc;;AAE/C;AACA,SAASC,GAAG,QAAQ,sBAAsB;AAC1C,SAASC,UAAU,QAAQ,6BAA6B;;AAExD;AACA,SAASC,KAAK,QAAQ,wBAAwB;;AAE9C;AACA,SAASC,KAAK,QAAQ,0BAA0B;;AAEhD;;AAGA,MAAMC,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ACY,cAAe;IACvCV,UAAU,EAAE,KAAM;IAClBC,UAAU,EAAE9B,KAAK,CAACwB,SAAS,CAACC,EAAG;IAC/BiB,SAAS,EAAE;EAAE,CACd,CACe,CAAC,eAEnB/C,KAAA,CAAAQ,aAAA,CAACP,gBAAgB;IACf+C,aAAa,EAAE,GAAI;IACnBC,KAAK,EAAE;MAAEG,UAAU,EAAE;IAAS,CAAE;IAChCC,OAAO,EAAEA,CAAA,KAAM9C,cAAc,CAAC,UAAU;EAAE,gBAE1CP,KAAA,CAAAQ,aAAA,CAACJ,KAAK;IAACkD,IAAI,EAAE;EAAM,CAAE,CAAC,eACtBtD,KAAA,CAAAQ,aAAA,CAACL,UAAU;IACTuB,IAAI,EAAE,UAAW;IACjBC,KAAK,EAAEtB,KAAK,CAACQ,MAAM,CAAC0C,KAAK,CAAC,EAAE,CAAE;IAC9B3B,IAAI,EAAEvB,KAAK,CAACwB,SAAS,CAACc,EAAG;IACzBZ,UAAU,EAAE1B,KAAK,CAAC2B,KAAK,CAACY,cAAe;IACvCV,UAAU,EAAE,KAAM;IAClBC,UAAU,EAAE9B,KAAK,CAACwB,SAAS,CAACC,EAAG;IAC/BiB,SAAS,EAAE;EAAE,CACd,CACe,CACf,CACF,CACF,CAAC;AAEV,CAAC;;AAED;AACA;AACA;AACA,SAASzC,eAAe","ignoreList":[]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* IMPORTS
|
|
1
|
+
/**
|
|
2
|
+
* IMPORTS
|
|
3
3
|
*/
|
|
4
4
|
import React from "react";
|
|
5
5
|
|
|
@@ -15,12 +15,16 @@ import { theme } from "../../styles/theme/theme";
|
|
|
15
15
|
|
|
16
16
|
// typings
|
|
17
17
|
|
|
18
|
+
// utils
|
|
19
|
+
import { getIconByProperty } from "../../utils/get-icon-by-property";
|
|
18
20
|
const ActivitiesProgress = ({
|
|
19
|
-
|
|
21
|
+
data_inicio_horario = "11/05/2025",
|
|
20
22
|
duracao = "00:30",
|
|
21
23
|
data_inicio = "17:20",
|
|
22
24
|
titleLabel = "Descanso",
|
|
23
|
-
|
|
25
|
+
criado_offline = true,
|
|
26
|
+
tipo_atividade = "Descanso",
|
|
27
|
+
referencia = "repouso_noturno"
|
|
24
28
|
}) => {
|
|
25
29
|
return /*#__PURE__*/React.createElement(Box, {
|
|
26
30
|
width: "100%",
|
|
@@ -57,7 +61,7 @@ const ActivitiesProgress = ({
|
|
|
57
61
|
marginLeft: theme.margins["2xs"]
|
|
58
62
|
}), /*#__PURE__*/React.createElement(Typography, {
|
|
59
63
|
text: titleLabel,
|
|
60
|
-
color:
|
|
64
|
+
color: tipo_atividade === "trabalho" ? theme.colors.green[400] : theme.colors.orange[500],
|
|
61
65
|
size: theme.fontSizes.sm,
|
|
62
66
|
fontFamily: theme.fonts.inter_semi_bold_600,
|
|
63
67
|
fontWeight: "600",
|
|
@@ -70,8 +74,9 @@ const ActivitiesProgress = ({
|
|
|
70
74
|
height: 20,
|
|
71
75
|
width: 20
|
|
72
76
|
}, /*#__PURE__*/React.createElement(Icons, {
|
|
73
|
-
icon: "CHECK_OUTLINE",
|
|
74
|
-
|
|
77
|
+
icon: criado_offline ? "CHECK_OUTLINE" : "TIMER",
|
|
78
|
+
size: 19,
|
|
79
|
+
color: criado_offline ? theme.colors.green[400] : theme.colors.orange[500]
|
|
75
80
|
}))), /*#__PURE__*/React.createElement(Box, {
|
|
76
81
|
width: "100%",
|
|
77
82
|
flexStyle: {
|
|
@@ -87,11 +92,8 @@ const ActivitiesProgress = ({
|
|
|
87
92
|
flexDirection: "row",
|
|
88
93
|
alignItems: "center"
|
|
89
94
|
}
|
|
90
|
-
}, /*#__PURE__*/React.createElement(
|
|
91
|
-
|
|
92
|
-
size: 24
|
|
93
|
-
}), /*#__PURE__*/React.createElement(Typography, {
|
|
94
|
-
text: data_fim,
|
|
95
|
+
}, getIconByProperty(referencia), /*#__PURE__*/React.createElement(Typography, {
|
|
96
|
+
text: data_inicio,
|
|
95
97
|
color: theme.colors.black[25],
|
|
96
98
|
size: theme.fontSizes.xs,
|
|
97
99
|
fontFamily: theme.fonts.inter_bold_700,
|
|
@@ -112,7 +114,7 @@ const ActivitiesProgress = ({
|
|
|
112
114
|
marginRight: theme.margins["2xs"]
|
|
113
115
|
}
|
|
114
116
|
}, /*#__PURE__*/React.createElement(Typography, {
|
|
115
|
-
text:
|
|
117
|
+
text: data_inicio_horario,
|
|
116
118
|
color: theme.colors.blue[500],
|
|
117
119
|
size: theme.fontSizes.sm,
|
|
118
120
|
fontFamily: theme.fonts.inter_bold,
|
|
@@ -151,8 +153,8 @@ const ActivitiesProgress = ({
|
|
|
151
153
|
})))));
|
|
152
154
|
};
|
|
153
155
|
|
|
154
|
-
/**
|
|
155
|
-
* EXPORTS
|
|
156
|
+
/**
|
|
157
|
+
* EXPORTS
|
|
156
158
|
*/
|
|
157
159
|
export { ActivitiesProgress };
|
|
158
160
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","Box","Typography","Icons","theme","ActivitiesProgress","data_fim","duracao","data_inicio","titleLabel","situation","createElement","width","height","backgroundColor","colors","neutral","borderStyled","borderRadius","borderWidths","thick_medium","blue","borderTopLeftRadius","thin_bold","borderTopRightRadius","borderColor","flexStyle","justifyContent","flexDirection","alignItems","text","color","size","fontSizes","sm","fontFamily","fonts","inter_medium_500","fontWeight","lineHeight","lg","marginLeft","margins","green","orange","inter_semi_bold_600","style","marginRight","marginTop","icon","paddingStyle","padding","paddings","black","xs","inter_bold_700","marginStyle","inter_bold","md","gray"],"sources":["index.tsx"],"sourcesContent":["/**\n * IMPORTS\n */\nimport React from \"react\";\n\n// components\nimport { Box } from \"../../components/box\";\nimport { Typography } from \"../../components/typography\";\n\n//commons/ icons\nimport { Icons } from \"../../common/icons-svg\";\n\n// styles\nimport { theme } from \"../../styles/theme/theme\";\n\n// typings\nimport { IActivitiesProgress } from \"./interface\";\n\nconst ActivitiesProgress: React.FC<IActivitiesProgress> = ({\n data_fim = \"11/05/2025\",\n duracao = \"00:30\",\n data_inicio = \"17:20\",\n titleLabel = \"Descanso\",\n situation = true,\n}) => {\n return (\n <Box\n width={\"100%\"}\n height={100}\n backgroundColor={theme.colors.neutral[25]}\n borderStyled={{ borderRadius: theme.borderWidths.thick_medium }}\n >\n <Box\n width={\"100%\"}\n height={30}\n backgroundColor={theme.colors.blue[400]}\n borderStyled={{\n borderTopLeftRadius: theme.borderWidths.thin_bold,\n borderTopRightRadius: theme.borderWidths.thin_bold,\n borderColor: theme.colors.blue[400],\n }}\n flexStyle={{\n justifyContent: \"space-between\",\n flexDirection: \"row\",\n }}\n >\n <Box\n flexStyle={{\n flexDirection: \"row\",\n alignItems: \"center\",\n }}\n >\n <Typography\n text={\"Status: \"}\n color={theme.colors.neutral[25]}\n size={theme.fontSizes.sm}\n fontFamily={theme.fonts.inter_medium_500}\n fontWeight={\"500\"}\n lineHeight={theme.fontSizes.lg}\n marginLeft={theme.margins[\"2xs\"]}\n />\n <Typography\n text={titleLabel}\n color={titleLabel === \"Trabalho\" ? theme.colors.green[400] : theme.colors.orange[500]}\n size={theme.fontSizes.sm}\n fontFamily={theme.fonts.inter_semi_bold_600}\n fontWeight={\"600\"}\n lineHeight={theme.fontSizes.lg}\n />\n </Box>\n\n <Box\n style={{ marginRight: theme.margins[\"2xs\"], marginTop: theme.margins[\"1xs\"] }}\n height={20}\n width={20}\n >\n <Icons\n icon={\"CHECK_OUTLINE\"}\n color={situation ? theme.colors.green[400] : theme.colors.orange[500]}\n />\n </Box>\n </Box>\n\n <Box\n width={\"100%\"}\n flexStyle={{\n flexDirection: \"row\",\n justifyContent: \"space-between\",\n }}\n paddingStyle={{\n padding: theme.paddings[\"2xs\"],\n }}\n >\n <Box height={20} flexStyle={{ flexDirection: \"row\", alignItems: \"center\" }}>\n <Icons icon={\"COFFEE\"} size={24} />\n <Typography\n text={data_fim}\n color={theme.colors.black[25]}\n size={theme.fontSizes.xs}\n fontFamily={theme.fonts.inter_bold_700}\n fontWeight={\"700\"}\n lineHeight={theme.fontSizes.lg}\n marginLeft={4}\n />\n </Box>\n\n <Box height={50} flexStyle={{ flexDirection: \"row\", alignItems: \"flex-end\" }}>\n <Box\n flexStyle={{ alignItems: \"center\" }}\n marginStyle={{ marginRight: theme.margins[\"2xs\"] }}\n >\n <Typography\n text={data_inicio}\n color={theme.colors.blue[500]}\n size={theme.fontSizes.sm}\n fontFamily={theme.fonts.inter_bold}\n fontWeight={\"700\"}\n lineHeight={theme.fontSizes.md}\n />\n <Typography\n text={\"INICIO\"}\n color={theme.colors.gray[600]}\n size={theme.fontSizes[\"2xs\"]}\n fontFamily={theme.fonts.inter_medium_500}\n fontWeight={\"500\"}\n lineHeight={theme.fontSizes.xs}\n marginTop={4}\n />\n </Box>\n\n <Box\n flexStyle={{ alignItems: \"center\" }}\n marginStyle={{ marginRight: theme.margins[\"2xs\"] }}\n >\n <Typography\n text={duracao}\n color={theme.colors.blue[500]}\n size={theme.fontSizes.sm}\n fontFamily={theme.fonts.inter_bold}\n fontWeight={\"700\"}\n lineHeight={theme.fontSizes.md}\n />\n <Typography\n text={\"DURAÇÃO\"}\n color={theme.colors.gray[600]}\n size={theme.fontSizes[\"2xs\"]}\n fontFamily={theme.fonts.inter_medium_500}\n fontWeight={\"500\"}\n lineHeight={theme.fontSizes.xs}\n marginTop={4}\n />\n </Box>\n </Box>\n </Box>\n </Box>\n );\n};\n\n/**\n * EXPORTS\n */\nexport { ActivitiesProgress };\n"],"mappings":"AAAA;AACA;AACA;AACA,OAAOA,KAAK,MAAM,OAAO;;AAEzB;AACA,SAASC,GAAG,QAAQ,sBAAsB;AAC1C,SAASC,UAAU,QAAQ,6BAA6B;;AAExD;AACA,SAASC,KAAK,QAAQ,wBAAwB;;AAE9C;AACA,SAASC,KAAK,QAAQ,0BAA0B;;AAEhD;;AAGA,MAAMC,kBAAiD,GAAGA,CAAC;EACzDC,QAAQ,GAAG,YAAY;EACvBC,OAAO,GAAG,OAAO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E,CACF,CACF,CACF,CAAC;AAEV,CAAC;;AAED;AACA;AACA;AACA,SAAS3C,kBAAkB","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["React","Box","Typography","Icons","theme","getIconByProperty","ActivitiesProgress","data_inicio_horario","duracao","data_inicio","titleLabel","criado_offline","tipo_atividade","referencia","createElement","width","height","backgroundColor","colors","neutral","borderStyled","borderRadius","borderWidths","thick_medium","blue","borderTopLeftRadius","thin_bold","borderTopRightRadius","borderColor","flexStyle","justifyContent","flexDirection","alignItems","text","color","size","fontSizes","sm","fontFamily","fonts","inter_medium_500","fontWeight","lineHeight","lg","marginLeft","margins","green","orange","inter_semi_bold_600","style","marginRight","marginTop","icon","paddingStyle","padding","paddings","black","xs","inter_bold_700","marginStyle","inter_bold","md","gray"],"sources":["index.tsx"],"sourcesContent":["/**\r\n * IMPORTS\r\n */\r\nimport React from \"react\";\r\n\r\n// components\r\nimport { Box } from \"../../components/box\";\r\nimport { Typography } from \"../../components/typography\";\r\n\r\n//commons/ icons\r\nimport { Icons } from \"../../common/icons-svg\";\r\n\r\n// styles\r\nimport { theme } from \"../../styles/theme/theme\";\r\n\r\n// typings\r\nimport { IActivitiesProgress } from \"./interface\";\r\n\r\n// utils\r\nimport { getIconByProperty } from \"../../utils/get-icon-by-property\";\r\n\r\nconst ActivitiesProgress: React.FC<IActivitiesProgress> = ({\r\n data_inicio_horario = \"11/05/2025\",\r\n duracao = \"00:30\",\r\n data_inicio = \"17:20\",\r\n titleLabel = \"Descanso\",\r\n criado_offline = true,\r\n tipo_atividade = \"Descanso\",\r\n referencia = \"repouso_noturno\",\r\n}) => {\r\n return (\r\n <Box\r\n width={\"100%\"}\r\n height={100}\r\n backgroundColor={theme.colors.neutral[25]}\r\n borderStyled={{ borderRadius: theme.borderWidths.thick_medium }}\r\n >\r\n <Box\r\n width={\"100%\"}\r\n height={30}\r\n backgroundColor={theme.colors.blue[400]}\r\n borderStyled={{\r\n borderTopLeftRadius: theme.borderWidths.thin_bold,\r\n borderTopRightRadius: theme.borderWidths.thin_bold,\r\n borderColor: theme.colors.blue[400],\r\n }}\r\n flexStyle={{\r\n justifyContent: \"space-between\",\r\n flexDirection: \"row\",\r\n }}\r\n >\r\n <Box\r\n flexStyle={{\r\n flexDirection: \"row\",\r\n alignItems: \"center\",\r\n }}\r\n >\r\n <Typography\r\n text={\"Status: \"}\r\n color={theme.colors.neutral[25]}\r\n size={theme.fontSizes.sm}\r\n fontFamily={theme.fonts.inter_medium_500}\r\n fontWeight={\"500\"}\r\n lineHeight={theme.fontSizes.lg}\r\n marginLeft={theme.margins[\"2xs\"]}\r\n />\r\n <Typography\r\n text={titleLabel}\r\n color={\r\n tipo_atividade === \"trabalho\" ? theme.colors.green[400] : theme.colors.orange[500]\r\n }\r\n size={theme.fontSizes.sm}\r\n fontFamily={theme.fonts.inter_semi_bold_600}\r\n fontWeight={\"600\"}\r\n lineHeight={theme.fontSizes.lg}\r\n />\r\n </Box>\r\n\r\n <Box\r\n style={{ marginRight: theme.margins[\"2xs\"], marginTop: theme.margins[\"1xs\"] }}\r\n height={20}\r\n width={20}\r\n >\r\n <Icons\r\n icon={criado_offline ? \"CHECK_OUTLINE\" : \"TIMER\"}\r\n size={19}\r\n color={criado_offline ? theme.colors.green[400] : theme.colors.orange[500]}\r\n />\r\n </Box>\r\n </Box>\r\n\r\n <Box\r\n width={\"100%\"}\r\n flexStyle={{\r\n flexDirection: \"row\",\r\n justifyContent: \"space-between\",\r\n }}\r\n paddingStyle={{\r\n padding: theme.paddings[\"2xs\"],\r\n }}\r\n >\r\n <Box height={20} flexStyle={{ flexDirection: \"row\", alignItems: \"center\" }}>\r\n {getIconByProperty(referencia)}\r\n <Typography\r\n text={data_inicio}\r\n color={theme.colors.black[25]}\r\n size={theme.fontSizes.xs}\r\n fontFamily={theme.fonts.inter_bold_700}\r\n fontWeight={\"700\"}\r\n lineHeight={theme.fontSizes.lg}\r\n marginLeft={4}\r\n />\r\n </Box>\r\n\r\n <Box height={50} flexStyle={{ flexDirection: \"row\", alignItems: \"flex-end\" }}>\r\n <Box\r\n flexStyle={{ alignItems: \"center\" }}\r\n marginStyle={{ marginRight: theme.margins[\"2xs\"] }}\r\n >\r\n <Typography\r\n text={data_inicio_horario}\r\n color={theme.colors.blue[500]}\r\n size={theme.fontSizes.sm}\r\n fontFamily={theme.fonts.inter_bold}\r\n fontWeight={\"700\"}\r\n lineHeight={theme.fontSizes.md}\r\n />\r\n <Typography\r\n text={\"INICIO\"}\r\n color={theme.colors.gray[600]}\r\n size={theme.fontSizes[\"2xs\"]}\r\n fontFamily={theme.fonts.inter_medium_500}\r\n fontWeight={\"500\"}\r\n lineHeight={theme.fontSizes.xs}\r\n marginTop={4}\r\n />\r\n </Box>\r\n\r\n <Box\r\n flexStyle={{ alignItems: \"center\" }}\r\n marginStyle={{ marginRight: theme.margins[\"2xs\"] }}\r\n >\r\n <Typography\r\n text={duracao}\r\n color={theme.colors.blue[500]}\r\n size={theme.fontSizes.sm}\r\n fontFamily={theme.fonts.inter_bold}\r\n fontWeight={\"700\"}\r\n lineHeight={theme.fontSizes.md}\r\n />\r\n <Typography\r\n text={\"DURAÇÃO\"}\r\n color={theme.colors.gray[600]}\r\n size={theme.fontSizes[\"2xs\"]}\r\n fontFamily={theme.fonts.inter_medium_500}\r\n fontWeight={\"500\"}\r\n lineHeight={theme.fontSizes.xs}\r\n marginTop={4}\r\n />\r\n </Box>\r\n </Box>\r\n </Box>\r\n </Box>\r\n );\r\n};\r\n\r\n/**\r\n * EXPORTS\r\n */\r\nexport { ActivitiesProgress };\r\n"],"mappings":"AAAA;AACA;AACA;AACA,OAAOA,KAAK,MAAM,OAAO;;AAEzB;AACA,SAASC,GAAG,QAAQ,sBAAsB;AAC1C,SAASC,UAAU,QAAQ,6BAA6B;;AAExD;AACA,SAASC,KAAK,QAAQ,wBAAwB;;AAE9C;AACA,SAASC,KAAK,QAAQ,0BAA0B;;AAEhD;;AAGA;AACA,SAASC,iBAAiB,QAAQ,kCAAkC;AA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IACzCC,UAAU,EAAE,KAAM;IAClBC,UAAU,EAAEtC,KAAK,CAACgC,SAAS,CAACqB,EAAG;IAC/BN,SAAS,EAAE;EAAE,CACd,CACE,CACF,CACF,CACF,CAAC;AAEV,CAAC;;AAED;AACA;AACA;AACA,SAAS7C,kBAAkB","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["interface.d.ts"],"sourcesContent":["/**\n * IMPORTS\n */\n\nimport { type ViewProps } from \"react-native\";\n/**\n * INTERFACE\n */\nimport { IGlobalCss } from \"../../styles/global/interface\";\n\ninterface IActivitiesProgress extends ViewProps, IGlobalCss {\n /**\n * Data de fim da atividade\n */\n
|
|
1
|
+
{"version":3,"names":[],"sources":["interface.d.ts"],"sourcesContent":["/**\r\n * IMPORTS\r\n */\r\n\r\nimport { type ViewProps } from \"react-native\";\r\n/**\r\n * INTERFACE\r\n */\r\nimport { IGlobalCss } from \"../../styles/global/interface\";\r\n\r\ninterface IActivitiesProgress extends ViewProps, IGlobalCss {\r\n /**\r\n * Data de fim da atividade\r\n */\r\n data_inicio_horario: string;\r\n\r\n /**\r\n * Duração da atividade\r\n */\r\n duracao: string;\r\n\r\n /**\r\n * Horário de início da atividade\r\n */\r\n data_inicio: string;\r\n\r\n /**\r\n * Título/label da atividade\r\n */\r\n titleLabel: string;\r\n\r\n /**\r\n * criado offline conectado\r\n */\r\n criado_offline: boolean;\r\n\r\n /**\r\n * tipo da atividade (trabalho | descanso)\r\n */\r\n tipo_atividade: string;\r\n\r\n /**\r\n * tipo da atividade por referencia como (descanso| operacao_veiculo)\r\n */\r\n referencia:\r\n | \"operacao_veiculo\"\r\n | \"manutencao\"\r\n | \"aguardando_carga\"\r\n | \"disposicao_veiculo_parado\"\r\n | \"aguardando_descarga\"\r\n | \"descanso\"\r\n | \"repouso_semanal\"\r\n | \"repouso_noturno\"\r\n | \"refeicao\"\r\n | \"ferias\";\r\n}\r\n\r\n/**\r\n * EXPORT\r\n */\r\nexport type { IActivitiesProgress };\r\n"],"mappings":"","ignoreList":[]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* IMPORTS
|
|
1
|
+
/**
|
|
2
|
+
* IMPORTS
|
|
3
3
|
*/
|
|
4
4
|
import React from "react";
|
|
5
5
|
import { Image, TouchableOpacity } from "react-native";
|
|
@@ -12,10 +12,11 @@ import { Typography } from "../typography";
|
|
|
12
12
|
|
|
13
13
|
// styles
|
|
14
14
|
import { theme } from "../../styles/theme/theme";
|
|
15
|
+
import { Icons } from "../../common/icons-svg";
|
|
15
16
|
|
|
16
|
-
/**
|
|
17
|
-
*
|
|
18
|
-
* Componente CardLoading para a interação do usuário com ui.
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* Componente CardLoading para a interação do usuário com ui.
|
|
19
20
|
*/
|
|
20
21
|
const CardHistory = ({
|
|
21
22
|
width,
|
|
@@ -26,7 +27,8 @@ const CardHistory = ({
|
|
|
26
27
|
data_end = "13:34 10/03/2025",
|
|
27
28
|
duration = "01:34",
|
|
28
29
|
testID,
|
|
29
|
-
handleNavigation
|
|
30
|
+
handleNavigation,
|
|
31
|
+
status_carregamento
|
|
30
32
|
}) => {
|
|
31
33
|
var _theme$fontSizes$xl, _theme$fontSizes$md, _theme$fontSizes$md2, _theme$fontSizes$md3, _theme$fontSizes$md4, _theme$fontSizes$md5, _theme$fontSizes$md6, _theme$fontSizes$md7, _theme$fontSizes$md8, _theme$fontSizes$md9;
|
|
32
34
|
return /*#__PURE__*/React.createElement(TouchableOpacity, {
|
|
@@ -92,12 +94,17 @@ const CardHistory = ({
|
|
|
92
94
|
}), /*#__PURE__*/React.createElement(Box, {
|
|
93
95
|
flexStyle: {
|
|
94
96
|
flexDirection: "row",
|
|
95
|
-
justifyContent: "
|
|
97
|
+
justifyContent: "space-between",
|
|
96
98
|
alignItems: "center"
|
|
97
99
|
},
|
|
98
100
|
marginStyle: {
|
|
99
101
|
marginBottom: 4
|
|
100
102
|
}
|
|
103
|
+
}, /*#__PURE__*/React.createElement(Box, {
|
|
104
|
+
flexStyle: {
|
|
105
|
+
flexDirection: "row",
|
|
106
|
+
alignItems: "center"
|
|
107
|
+
}
|
|
101
108
|
}, /*#__PURE__*/React.createElement(Typography, {
|
|
102
109
|
text: "Dados Veículo:",
|
|
103
110
|
color: theme.colors.neutral[25],
|
|
@@ -113,6 +120,10 @@ const CardHistory = ({
|
|
|
113
120
|
lineHeight: (_theme$fontSizes$md3 = theme.fontSizes.md) !== null && _theme$fontSizes$md3 !== void 0 ? _theme$fontSizes$md3 : 16,
|
|
114
121
|
letterSpacing: "regular",
|
|
115
122
|
marginLeft: 4
|
|
123
|
+
})), /*#__PURE__*/React.createElement(Icons, {
|
|
124
|
+
size: 9,
|
|
125
|
+
color: status_carregamento,
|
|
126
|
+
icon: "ELLIPSE"
|
|
116
127
|
})), /*#__PURE__*/React.createElement(Box, {
|
|
117
128
|
flexStyle: {
|
|
118
129
|
flexDirection: "row",
|
|
@@ -188,8 +199,8 @@ const CardHistory = ({
|
|
|
188
199
|
})))));
|
|
189
200
|
};
|
|
190
201
|
|
|
191
|
-
/**
|
|
192
|
-
* EXPORTS
|
|
202
|
+
/**
|
|
203
|
+
* EXPORTS
|
|
193
204
|
*/
|
|
194
205
|
export { CardHistory };
|
|
195
206
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","Image","TouchableOpacity","Box","Typography","theme","CardHistory","width","title","local","vehicle","data_start","data_end","duration","testID","handleNavigation","_theme$fontSizes$xl","_theme$fontSizes$md","_theme$fontSizes$md2","_theme$fontSizes$md3","_theme$fontSizes$md4","_theme$fontSizes$md5","_theme$fontSizes$md6","_theme$fontSizes$md7","_theme$fontSizes$md8","_theme$fontSizes$md9","createElement","onPress","activeOpacity","backgroundColor","colors","blue","marginStyle","marginBottom","margins","md","paddingStyle","padding","paddings","borderStyled","borderWidth","borderWidths","thin","borderColor","borderRadius","thick_medium","flexStyle","flexDirection","justifyContent","alignItems","source","uri","style","flex","paddingLeft","text","ellipsizeMode","numberOfLines","color","neutral","size","fontSizes","sm","fontFamily","fonts","inter_bold_700","lineHeight","xl","letterSpacing","xs","inter_regular_400","marginLeft"],"sources":["index.tsx"],"sourcesContent":["/**\n * IMPORTS\n */\nimport React from \"react\";\nimport { Image, TouchableOpacity } from \"react-native\";\n\n// components\nimport { Box } from \"../box\";\nimport { Typography } from \"../typography\";\n\n// typings\nimport { ICardHistory } from \"./interface\";\n\n// styles\nimport { theme } from \"../../styles/theme/theme\";\n\n/**\n *\n * Componente CardLoading para a interação do usuário com ui.\n */\nconst CardHistory: React.FC<ICardHistory> = ({\n width,\n title = \"Carregamento #01020304050607\",\n local = \"Doca 1, Patío 03 - Usiminas Ipatinga\",\n vehicle = \"EXP-0000\",\n data_start = \"12:34 10/03/2025\",\n data_end = \"13:34 10/03/2025\",\n duration = \"01:34\",\n testID,\n handleNavigation,\n}: ICardHistory) => {\n return (\n <TouchableOpacity onPress={handleNavigation} activeOpacity={0.7}>\n <Box\n testID={testID}\n width={width ?? \"100%\"}\n backgroundColor={theme.colors.blue[400]}\n marginStyle={{ marginBottom: theme.margins.md }}\n paddingStyle={{ padding: theme.paddings[\"2xs\"] }}\n borderStyled={{\n borderWidth: theme.borderWidths.thin,\n borderColor: theme.colors.blue[400],\n borderRadius: theme.borderWidths.thick_medium,\n }}\n flexStyle={{ flexDirection: \"row\", justifyContent: \"flex-start\", alignItems: \"center\" }}\n >\n <Box width={\"25%\"} borderStyled={{ borderRadius: theme.borderWidths.thick_medium }}>\n <Image\n source={{\n uri: \"https://th.bing.com/th/id/OIP.Rr9_IUNo8J66QbvQkxzXtwHaEJ?w=276&h=180&c=7&r=0&o=5&pid=1.7\",\n }}\n style={{\n width: \"100%\",\n flex: 1,\n borderRadius: theme.borderWidths.thick_medium,\n }}\n />\n </Box>\n\n <Box width={\"75%\"} paddingStyle={{ paddingLeft: theme.paddings[\"2xs\"] }}>\n <Typography\n text={title}\n ellipsizeMode=\"tail\"\n numberOfLines={1}\n color={theme.colors.neutral[25]}\n size={theme.fontSizes.sm}\n fontFamily={theme.fonts.inter_bold_700}\n lineHeight={theme.fontSizes.xl ?? 20}\n letterSpacing={\"regular\"}\n marginBottom={4}\n />\n\n <Typography\n text={local}\n color={theme.colors.neutral[25]}\n size={theme.fontSizes.xs}\n fontFamily={theme.fonts.inter_regular_400}\n lineHeight={theme.fontSizes.md ?? 16}\n letterSpacing={\"regular\"}\n marginBottom={4}\n />\n\n {/**DADOS DO VEÍCULOS */}\n <Box\n flexStyle={{\n flexDirection: \"row\",\n justifyContent: \"flex-start\",\n alignItems: \"center\",\n }}\n marginStyle={{\n marginBottom: 4,\n }}\n >\n <Typography\n text={\"Dados Veículo:\"}\n color={theme.colors.neutral[25]}\n size={theme.fontSizes.xs}\n fontFamily={theme.fonts.inter_regular_400}\n lineHeight={theme.fontSizes.md ?? 16}\n letterSpacing={\"regular\"}\n />\n <Typography\n text={vehicle}\n color={theme.colors.neutral[25]}\n size={theme.fontSizes.xs}\n fontFamily={theme.fonts.inter_bold_700}\n lineHeight={theme.fontSizes.md ?? 16}\n letterSpacing={\"regular\"}\n marginLeft={4}\n />\n </Box>\n\n {/**DATA INICIO DO CARREGAMENTO */}\n <Box\n flexStyle={{\n flexDirection: \"row\",\n justifyContent: \"flex-start\",\n alignItems: \"center\",\n }}\n marginStyle={{\n marginBottom: 4,\n }}\n >\n <Typography\n text={\"Data Inicio:\"}\n color={theme.colors.neutral[25]}\n size={theme.fontSizes.xs}\n fontFamily={theme.fonts.inter_regular_400}\n lineHeight={theme.fontSizes.md ?? 16}\n letterSpacing={\"regular\"}\n />\n <Typography\n text={data_start}\n color={theme.colors.neutral[25]}\n size={theme.fontSizes.xs}\n fontFamily={theme.fonts.inter_bold_700}\n lineHeight={theme.fontSizes.md ?? 16}\n letterSpacing={\"regular\"}\n marginLeft={4}\n />\n </Box>\n\n {/**DATA FIM DO CARREGAMENTO */}\n <Box\n flexStyle={{\n flexDirection: \"row\",\n justifyContent: \"flex-start\",\n alignItems: \"center\",\n }}\n marginStyle={{\n marginBottom: 4,\n }}\n >\n <Typography\n text={\"Data Fim:\"}\n color={theme.colors.neutral[25]}\n size={theme.fontSizes.xs}\n fontFamily={theme.fonts.inter_regular_400}\n lineHeight={theme.fontSizes.md ?? 16}\n letterSpacing={\"regular\"}\n />\n <Typography\n text={data_end}\n color={theme.colors.neutral[25]}\n size={theme.fontSizes.xs}\n fontFamily={theme.fonts.inter_bold_700}\n lineHeight={theme.fontSizes.md ?? 16}\n letterSpacing={\"regular\"}\n marginLeft={4}\n />\n </Box>\n\n {/**DURAÇÃO DO CARREGAMENTO */}\n <Box\n flexStyle={{\n flexDirection: \"row\",\n justifyContent: \"flex-start\",\n alignItems: \"center\",\n }}\n marginStyle={{\n marginBottom: 4,\n }}\n >\n <Typography\n text={\"Duração:\"}\n color={theme.colors.neutral[25]}\n size={theme.fontSizes.xs}\n fontFamily={theme.fonts.inter_regular_400}\n lineHeight={theme.fontSizes.md ?? 16}\n letterSpacing={\"regular\"}\n />\n <Typography\n text={duration}\n color={theme.colors.neutral[25]}\n size={theme.fontSizes.xs}\n fontFamily={theme.fonts.inter_bold_700}\n lineHeight={theme.fontSizes.md ?? 16}\n letterSpacing={\"regular\"}\n marginLeft={4}\n />\n </Box>\n </Box>\n </Box>\n </TouchableOpacity>\n );\n};\n\n/**\n * EXPORTS\n */\nexport { CardHistory };\n"],"mappings":"AAAA;AACA;AACA;AACA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,KAAK,EAAEC,gBAAgB,QAAQ,cAAc;;AAEtD;AACA,SAASC,GAAG,QAAQ,QAAQ;AAC5B,SAASC,UAAU,QAAQ,eAAe;;AAE1C;;AAGA;AACA,SAASC,KAAK,QAAQ,0BAA0B;;AAEhD;AACA;AACA;AACA;AACA,MAAMC,WAAmC,GAAGA,CAAC;EAC3CC,KAAK;EACLC,KAAK,GAAG,8BAA8B;EACtCC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AI,EAAG;IACrC4C,aAAa,EAAE;EAAU,CAC1B,CAAC,eACFpE,KAAA,CAAA0B,aAAA,CAACtB,UAAU;IACTmD,IAAI,EAAE1C,QAAS;IACf6C,KAAK,EAAErD,KAAK,CAACyB,MAAM,CAAC6B,OAAO,CAAC,EAAE,CAAE;IAChCC,IAAI,EAAEvD,KAAK,CAACwD,SAAS,CAACQ,EAAG;IACzBN,UAAU,EAAE1D,KAAK,CAAC2D,KAAK,CAACC,cAAe;IACvCC,UAAU,GAAAzC,oBAAA,GAAEpB,KAAK,CAACwD,SAAS,CAAC1B,EAAE,cAAAV,oBAAA,cAAAA,oBAAA,GAAI,EAAG;IACrC2C,aAAa,EAAE,SAAU;IACzBG,UAAU,EAAE;EAAE,CACf,CACE,CACF,CACF,CACW,CAAC;AAEvB,CAAC;;AAED;AACA;AACA;AACA,SAASjE,WAAW","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["React","Image","TouchableOpacity","Box","Typography","theme","Icons","CardHistory","width","title","local","vehicle","data_start","data_end","duration","testID","handleNavigation","status_carregamento","_theme$fontSizes$xl","_theme$fontSizes$md","_theme$fontSizes$md2","_theme$fontSizes$md3","_theme$fontSizes$md4","_theme$fontSizes$md5","_theme$fontSizes$md6","_theme$fontSizes$md7","_theme$fontSizes$md8","_theme$fontSizes$md9","createElement","onPress","activeOpacity","backgroundColor","colors","blue","marginStyle","marginBottom","margins","md","paddingStyle","padding","paddings","borderStyled","borderWidth","borderWidths","thin","borderColor","borderRadius","thick_medium","flexStyle","flexDirection","justifyContent","alignItems","source","uri","style","flex","paddingLeft","text","ellipsizeMode","numberOfLines","color","neutral","size","fontSizes","sm","fontFamily","fonts","inter_bold_700","lineHeight","xl","letterSpacing","xs","inter_regular_400","marginLeft","icon"],"sources":["index.tsx"],"sourcesContent":["/**\r\n * IMPORTS\r\n */\r\nimport React from \"react\";\r\nimport { Image, TouchableOpacity } from \"react-native\";\r\n\r\n// components\r\nimport { Box } from \"../box\";\r\nimport { Typography } from \"../typography\";\r\n\r\n// typings\r\nimport { ICardHistory } from \"./interface\";\r\n\r\n// styles\r\nimport { theme } from \"../../styles/theme/theme\";\r\nimport { Icons } from \"../../common/icons-svg\";\r\n\r\n/**\r\n *\r\n * Componente CardLoading para a interação do usuário com ui.\r\n */\r\nconst CardHistory: React.FC<ICardHistory> = ({\r\n width,\r\n title = \"Carregamento #01020304050607\",\r\n local = \"Doca 1, Patío 03 - Usiminas Ipatinga\",\r\n vehicle = \"EXP-0000\",\r\n data_start = \"12:34 10/03/2025\",\r\n data_end = \"13:34 10/03/2025\",\r\n duration = \"01:34\",\r\n testID,\r\n handleNavigation,\r\n status_carregamento,\r\n}: ICardHistory) => {\r\n return (\r\n <TouchableOpacity onPress={handleNavigation} activeOpacity={0.7}>\r\n <Box\r\n testID={testID}\r\n width={width ?? \"100%\"}\r\n backgroundColor={theme.colors.blue[400]}\r\n marginStyle={{ marginBottom: theme.margins.md }}\r\n paddingStyle={{ padding: theme.paddings[\"2xs\"] }}\r\n borderStyled={{\r\n borderWidth: theme.borderWidths.thin,\r\n borderColor: theme.colors.blue[400],\r\n borderRadius: theme.borderWidths.thick_medium,\r\n }}\r\n flexStyle={{ flexDirection: \"row\", justifyContent: \"flex-start\", alignItems: \"center\" }}\r\n >\r\n <Box width={\"25%\"} borderStyled={{ borderRadius: theme.borderWidths.thick_medium }}>\r\n <Image\r\n source={{\r\n uri: \"https://th.bing.com/th/id/OIP.Rr9_IUNo8J66QbvQkxzXtwHaEJ?w=276&h=180&c=7&r=0&o=5&pid=1.7\",\r\n }}\r\n style={{\r\n width: \"100%\",\r\n flex: 1,\r\n borderRadius: theme.borderWidths.thick_medium,\r\n }}\r\n />\r\n </Box>\r\n\r\n <Box width={\"75%\"} paddingStyle={{ paddingLeft: theme.paddings[\"2xs\"] }}>\r\n <Typography\r\n text={title}\r\n ellipsizeMode=\"tail\"\r\n numberOfLines={1}\r\n color={theme.colors.neutral[25]}\r\n size={theme.fontSizes.sm}\r\n fontFamily={theme.fonts.inter_bold_700}\r\n lineHeight={theme.fontSizes.xl ?? 20}\r\n letterSpacing={\"regular\"}\r\n marginBottom={4}\r\n />\r\n\r\n <Typography\r\n text={local}\r\n color={theme.colors.neutral[25]}\r\n size={theme.fontSizes.xs}\r\n fontFamily={theme.fonts.inter_regular_400}\r\n lineHeight={theme.fontSizes.md ?? 16}\r\n letterSpacing={\"regular\"}\r\n marginBottom={4}\r\n />\r\n\r\n {/**DADOS DO VEÍCULOS */}\r\n <Box\r\n flexStyle={{\r\n flexDirection: \"row\",\r\n justifyContent: \"space-between\",\r\n alignItems: \"center\",\r\n }}\r\n marginStyle={{\r\n marginBottom: 4,\r\n }}\r\n >\r\n <Box\r\n flexStyle={{\r\n flexDirection: \"row\",\r\n alignItems: \"center\",\r\n }}\r\n >\r\n <Typography\r\n text={\"Dados Veículo:\"}\r\n color={theme.colors.neutral[25]}\r\n size={theme.fontSizes.xs}\r\n fontFamily={theme.fonts.inter_regular_400}\r\n lineHeight={theme.fontSizes.md ?? 16}\r\n letterSpacing={\"regular\"}\r\n />\r\n <Typography\r\n text={vehicle}\r\n color={theme.colors.neutral[25]}\r\n size={theme.fontSizes.xs}\r\n fontFamily={theme.fonts.inter_bold_700}\r\n lineHeight={theme.fontSizes.md ?? 16}\r\n letterSpacing={\"regular\"}\r\n marginLeft={4}\r\n />\r\n </Box>\r\n <Icons size={9} color={status_carregamento} icon={\"ELLIPSE\"} />\r\n </Box>\r\n\r\n {/**DATA INICIO DO CARREGAMENTO */}\r\n <Box\r\n flexStyle={{\r\n flexDirection: \"row\",\r\n justifyContent: \"flex-start\",\r\n alignItems: \"center\",\r\n }}\r\n marginStyle={{\r\n marginBottom: 4,\r\n }}\r\n >\r\n <Typography\r\n text={\"Data Inicio:\"}\r\n color={theme.colors.neutral[25]}\r\n size={theme.fontSizes.xs}\r\n fontFamily={theme.fonts.inter_regular_400}\r\n lineHeight={theme.fontSizes.md ?? 16}\r\n letterSpacing={\"regular\"}\r\n />\r\n <Typography\r\n text={data_start}\r\n color={theme.colors.neutral[25]}\r\n size={theme.fontSizes.xs}\r\n fontFamily={theme.fonts.inter_bold_700}\r\n lineHeight={theme.fontSizes.md ?? 16}\r\n letterSpacing={\"regular\"}\r\n marginLeft={4}\r\n />\r\n </Box>\r\n\r\n {/**DATA FIM DO CARREGAMENTO */}\r\n <Box\r\n flexStyle={{\r\n flexDirection: \"row\",\r\n justifyContent: \"flex-start\",\r\n alignItems: \"center\",\r\n }}\r\n marginStyle={{\r\n marginBottom: 4,\r\n }}\r\n >\r\n <Typography\r\n text={\"Data Fim:\"}\r\n color={theme.colors.neutral[25]}\r\n size={theme.fontSizes.xs}\r\n fontFamily={theme.fonts.inter_regular_400}\r\n lineHeight={theme.fontSizes.md ?? 16}\r\n letterSpacing={\"regular\"}\r\n />\r\n <Typography\r\n text={data_end}\r\n color={theme.colors.neutral[25]}\r\n size={theme.fontSizes.xs}\r\n fontFamily={theme.fonts.inter_bold_700}\r\n lineHeight={theme.fontSizes.md ?? 16}\r\n letterSpacing={\"regular\"}\r\n marginLeft={4}\r\n />\r\n </Box>\r\n\r\n {/**DURAÇÃO DO CARREGAMENTO */}\r\n <Box\r\n flexStyle={{\r\n flexDirection: \"row\",\r\n justifyContent: \"flex-start\",\r\n alignItems: \"center\",\r\n }}\r\n marginStyle={{\r\n marginBottom: 4,\r\n }}\r\n >\r\n <Typography\r\n text={\"Duração:\"}\r\n color={theme.colors.neutral[25]}\r\n size={theme.fontSizes.xs}\r\n fontFamily={theme.fonts.inter_regular_400}\r\n lineHeight={theme.fontSizes.md ?? 16}\r\n letterSpacing={\"regular\"}\r\n />\r\n <Typography\r\n text={duration}\r\n color={theme.colors.neutral[25]}\r\n size={theme.fontSizes.xs}\r\n fontFamily={theme.fonts.inter_bold_700}\r\n lineHeight={theme.fontSizes.md ?? 16}\r\n letterSpacing={\"regular\"}\r\n marginLeft={4}\r\n />\r\n </Box>\r\n </Box>\r\n </Box>\r\n </TouchableOpacity>\r\n );\r\n};\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AC;;AAED;AACA;AACA;AACA,SAASlE,WAAW","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["interface.d.ts"],"sourcesContent":["/**\n * IMPORTS\n */\nimport { TouchableOpacityProps } from \"react-native\";\n\n// typing\nimport { IGlobalCss } from \"../../styles/global/interface\";\n\ninterface ICardHistory extends TouchableOpacityProps, IGlobalCss {\n /**propriedade que indica o título do carregamento */\n title?: string;\n\n /**propriedade que indica o local do carregamento */\n local?: string;\n\n /**propriedade que indica o veiculo */\n vehicle?: string;\n\n /**propriedade que indica inicio do carregamento */\n data_start?: string;\n\n /**propriedade que indica fim do carregamento */\n data_end?: string;\n\n /**
|
|
1
|
+
{"version":3,"names":[],"sources":["interface.d.ts"],"sourcesContent":["/**\r\n * IMPORTS\r\n */\r\nimport { TouchableOpacityProps } from \"react-native\";\r\n\r\n// typing\r\nimport { IGlobalCss } from \"../../styles/global/interface\";\r\n\r\ninterface ICardHistory extends TouchableOpacityProps, IGlobalCss {\r\n /**propriedade que indica o título do carregamento */\r\n title?: string;\r\n\r\n /**propriedade que indica o local do carregamento */\r\n local?: string;\r\n\r\n /**propriedade que indica o veiculo */\r\n vehicle?: string;\r\n\r\n /**propriedade que indica inicio do carregamento */\r\n data_start?: string;\r\n\r\n /**propriedade que indica fim do carregamento */\r\n data_end?: string;\r\n\r\n /**propriedade que mostra a duração gasta no carregamento */\r\n duration?: string;\r\n\r\n /**função de navegação para outra tela */\r\n handleNavigation: () => void;\r\n\r\n /**propriedade que pega o status do carregamento */\r\n status_carregamento: string;\r\n}\r\n\r\n/**\r\n * EXPORTS\r\n */\r\nexport { ICardHistory };\r\n"],"mappings":"","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["interface.d.ts"],"sourcesContent":["/**\n * IMPORTS\n */\nimport { ViewProps } from \"react-native\";\n\n// typing\nimport { IGlobalCss } from \"../../styles/global/interface\";\n\ninterface IMenuItem extends ViewProps, IGlobalCss {\n title?: string;\n handleNavigation: () => void;\n selected: boolean;\n typeSelected: \"LOADING\" | \"
|
|
1
|
+
{"version":3,"names":[],"sources":["interface.d.ts"],"sourcesContent":["/**\n * IMPORTS\n */\nimport { ViewProps } from \"react-native\";\n\n// typing\nimport { IGlobalCss } from \"../../styles/global/interface\";\n\ninterface IMenuItem extends ViewProps, IGlobalCss {\n title?: string;\n handleNavigation: () => void;\n selected: boolean;\n typeSelected: \"LOADING\" | \"ACTIVITY\" | \"HISTORY\";\n}\n\n/**\n * EXPORTS\n */\nexport { IMenuItem };\n"],"mappings":"","ignoreList":[]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* IMPORTS
|
|
1
|
+
/**
|
|
2
|
+
* IMPORTS
|
|
3
3
|
*/
|
|
4
4
|
import React from "react";
|
|
5
5
|
import { TouchableOpacity } from "react-native";
|
|
@@ -29,8 +29,7 @@ const NotificationLoading = ({
|
|
|
29
29
|
return /*#__PURE__*/React.createElement(TouchableOpacity, {
|
|
30
30
|
activeOpacity: 0.7,
|
|
31
31
|
testID: testID,
|
|
32
|
-
onPress: handleNavigation
|
|
33
|
-
disabled: readonly
|
|
32
|
+
onPress: handleNavigation
|
|
34
33
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
35
34
|
width: "100%",
|
|
36
35
|
flexStyle: {
|
|
@@ -140,8 +139,8 @@ const NotificationLoading = ({
|
|
|
140
139
|
}))));
|
|
141
140
|
};
|
|
142
141
|
|
|
143
|
-
/**
|
|
144
|
-
* EXPORTS
|
|
142
|
+
/**
|
|
143
|
+
* EXPORTS
|
|
145
144
|
*/
|
|
146
145
|
export { NotificationLoading };
|
|
147
146
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","TouchableOpacity","Box","Typography","Icons","theme","getStatusColor","NotificationLoading","handleNavigation","title","testID","statusNotify","date","notification","dataStart","style","readonly","_theme$fontSizes$lg","_theme$fontSizes$lg2","_theme$fontSizes$sm","createElement","activeOpacity","onPress","disabled","width","flexStyle","flexDirection","alignItems","backgroundColor","colors","blue","borderStyled","borderWidth","borderWidths","thin","borderRadius","thick_medium","borderColor","paddingStyle","padding","paddings","icon","size","color","neutral","paddingLeft","text","fontSizes","sm","lineHeight","lg","fontFamily","fonts","inter_semi_bold_600","fontWeight","letterSpacing","xs","md","inter_bold_700","justifyContent","inter_medium_500","String","marginRight","ellipsizeMode","numberOfLines"],"sources":["index.tsx"],"sourcesContent":["/**\n * IMPORTS\n */\nimport React from \"react\";\nimport { TouchableOpacity } from \"react-native\";\n\n// components\nimport { Box } from \"../box\";\nimport { Typography } from \"../typography\";\n\n// icons\nimport { Icons } from \"../../common/icons-svg\";\n\n// theme\nimport { theme } from \"../../styles/theme/theme\";\n\nimport { INotificationLoading } from \"./interface\";\nimport { getStatusColor, StatusType } from \"../../utils/status-color/return-color\";\n\nconst NotificationLoading: React.FC<INotificationLoading> = ({\n handleNavigation,\n title,\n testID,\n statusNotify,\n date,\n notification,\n dataStart,\n style,\n readonly,\n}) => {\n return (\n <TouchableOpacity\n activeOpacity={0.7}\n testID={testID}\n onPress={handleNavigation}\n disabled={readonly}\n >\n <Box\n width={\"100%\"}\n flexStyle={{ flexDirection: \"row\", alignItems: \"center\" }}\n backgroundColor={readonly ? theme.colors.blue[40050] : theme.colors.blue[400]}\n borderStyled={{\n borderWidth: theme.borderWidths.thin,\n borderRadius: theme.borderWidths.thick_medium,\n borderColor: readonly ? theme.colors.blue[40050] : theme.colors.blue[400],\n }}\n paddingStyle={{ padding: theme.paddings[\"2xs\"] }}\n style={style}\n >\n <Box width={\"9%\"}>\n <Icons icon={\"BELL\"} size={32} color={theme.colors.neutral[25]} />\n </Box>\n\n <Box\n flexStyle={{ flexDirection: \"column\" }}\n width={\"91%\"}\n paddingStyle={{ paddingLeft: 7 }}\n >\n {/* Carregamento identificação */}\n <Box flexStyle={{ flexDirection: \"row\", alignItems: \"center\" }}>\n <Typography\n text={\"Carregamento - \"}\n size={theme.fontSizes.sm}\n lineHeight={theme.fontSizes.lg}\n fontFamily={theme.fonts.inter_semi_bold_600}\n fontWeight=\"600\"\n color={theme.colors.neutral[25]}\n letterSpacing={\"regular\"}\n />\n <Typography\n text={title}\n size={theme.fontSizes.xs}\n lineHeight={theme.fontSizes.md}\n fontFamily={theme.fonts.inter_bold_700}\n fontWeight=\"700\"\n color={theme.colors.neutral[25]}\n letterSpacing={\"regular\"}\n />\n </Box>\n\n {/* Data do carregamento */}\n <Box\n flexStyle={{\n flexDirection: \"row\",\n alignItems: \"center\",\n justifyContent: \"space-between\",\n }}\n >\n <Box\n flexStyle={{\n flexDirection: \"row\",\n alignItems: \"center\",\n }}\n >\n <Typography\n text={\"Data - \"}\n size={theme.fontSizes.sm}\n lineHeight={theme.fontSizes.lg ?? 18}\n fontFamily={theme.fonts.inter_medium_500}\n fontWeight=\"500\"\n color={theme.colors.neutral[25]}\n letterSpacing={\"regular\"}\n />\n <Typography\n text={String(date)}\n size={theme.fontSizes.sm}\n lineHeight={theme.fontSizes.lg ?? 18}\n fontFamily={theme.fonts.inter_medium_500}\n fontWeight=\"500\"\n color={theme.colors.neutral[25]}\n letterSpacing={\"regular\"}\n />\n </Box>\n <Box\n flexStyle={{\n flexDirection: \"row\",\n alignItems: \"center\",\n }}\n >\n <Typography\n text={String(dataStart)}\n size={theme.fontSizes[\"2xs\"]}\n fontFamily={theme.fonts.inter_medium_500}\n fontWeight=\"500\"\n lineHeight={theme.fontSizes.sm}\n color={theme.colors.neutral[25]}\n letterSpacing={\"regular\"}\n marginRight={8}\n />\n\n <Icons\n icon={\"ELLIPSE\"}\n color={\n readonly ? theme.colors.neutral[25] : getStatusColor(statusNotify as StatusType)\n }\n size={9}\n />\n </Box>\n </Box>\n\n {/* Mensagem de notificação do carregamento */}\n <Typography\n text={notification}\n size={theme.fontSizes[\"2xs\"]}\n fontFamily={theme.fonts.inter_medium_500}\n fontWeight=\"500\"\n lineHeight={theme.fontSizes.sm ?? 14}\n color={theme.colors.neutral[25]}\n letterSpacing={\"regular\"}\n ellipsizeMode=\"tail\"\n numberOfLines={1}\n />\n </Box>\n </Box>\n </TouchableOpacity>\n );\n};\n\n/**\n * EXPORTS\n */\nexport { NotificationLoading };\n"],"mappings":"AAAA;AACA;AACA;AACA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,gBAAgB,QAAQ,cAAc;;AAE/C;AACA,SAASC,GAAG,QAAQ,QAAQ;AAC5B,SAASC,UAAU,QAAQ,eAAe;;AAE1C;AACA,SAASC,KAAK,QAAQ,wBAAwB;;AAE9C;AACA,SAASC,KAAK,QAAQ,0BAA0B;AAGhD,SAASC,cAAc,QAAoB,uCAAuC;AAElF,MAAMC,mBAAmD,GAAGA,CAAC;EAC3DC,gBAAgB;EAChBC,KAAK;EACLC,MAAM;EACNC,YAAY;EACZC,IAAI;EACJC,YAAY;EACZC,SAAS;EACTC,KAAK;EACLC;AACF,CAAC,KAAK;EAAA,IAAAC,mBAAA,EAAAC,oBAAA,EAAAC,mBAAA;EACJ,oBACEnB,KAAA,CAAAoB,aAAA,CAACnB,gBAAgB;IACfoB,aAAa,EAAE,GAAI;IACnBX,MAAM,EAAEA,MAAO;IACfY,OAAO,EAAEd,gBAAiB;IAC1Be,QAAQ,EAAEP;EAAS,gBAEnBhB,KAAA,CAAAoB,aAAA,CAAClB,GAAG;IACFsB,KAAK,EAAE,MAAO;IACdC,SAAS,EAAE;MAAEC,aAAa,EAAE,KAAK;MAAEC,UAAU,EAAE;IAAS,CAAE;IAC1DC,eAAe,EAAEZ,QAAQ,GAAGX,KAAK,CAACwB,MAAM,CAACC,IAAI,CAAC,KAAK,CAAC,GAAGzB,KAAK,CAACwB,MAAM,CAACC,IAAI,CAAC,GAAG,CAAE;IAC9EC,YAAY,EAAE;MACZC,WAAW,EAAE3B,KAAK,CAAC4B,YAAY,CAACC,IAAI;MACpCC,YAAY,EAAE9B,KAAK,CAAC4B,YAAY,CAACG,YA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,GAAEd,KAAK,CAAC0C,SAAS,CAACC,EAAE,cAAA7B,mBAAA,cAAAA,mBAAA,GAAI,EAAG;IACrCwB,KAAK,EAAEtC,KAAK,CAACwB,MAAM,CAACe,OAAO,CAAC,EAAE,CAAE;IAChCW,aAAa,EAAE,SAAU;IACzBQ,aAAa,EAAC,MAAM;IACpBC,aAAa,EAAE;EAAE,CAClB,CACE,CACF,CACW,CAAC;AAEvB,CAAC;;AAED;AACA;AACA;AACA,SAASzD,mBAAmB","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["React","TouchableOpacity","Box","Typography","Icons","theme","getStatusColor","NotificationLoading","handleNavigation","title","testID","statusNotify","date","notification","dataStart","style","readonly","_theme$fontSizes$lg","_theme$fontSizes$lg2","_theme$fontSizes$sm","createElement","activeOpacity","onPress","width","flexStyle","flexDirection","alignItems","backgroundColor","colors","blue","borderStyled","borderWidth","borderWidths","thin","borderRadius","thick_medium","borderColor","paddingStyle","padding","paddings","icon","size","color","neutral","paddingLeft","text","fontSizes","sm","lineHeight","lg","fontFamily","fonts","inter_semi_bold_600","fontWeight","letterSpacing","xs","md","inter_bold_700","justifyContent","inter_medium_500","String","marginRight","ellipsizeMode","numberOfLines"],"sources":["index.tsx"],"sourcesContent":["/**\r\n * IMPORTS\r\n */\r\nimport React from \"react\";\r\nimport { TouchableOpacity } from \"react-native\";\r\n\r\n// components\r\nimport { Box } from \"../box\";\r\nimport { Typography } from \"../typography\";\r\n\r\n// icons\r\nimport { Icons } from \"../../common/icons-svg\";\r\n\r\n// theme\r\nimport { theme } from \"../../styles/theme/theme\";\r\n\r\nimport { INotificationLoading } from \"./interface\";\r\nimport { getStatusColor, StatusType } from \"../../utils/status-color/return-color\";\r\n\r\nconst NotificationLoading: React.FC<INotificationLoading> = ({\r\n handleNavigation,\r\n title,\r\n testID,\r\n statusNotify,\r\n date,\r\n notification,\r\n dataStart,\r\n style,\r\n readonly,\r\n}) => {\r\n return (\r\n <TouchableOpacity activeOpacity={0.7} testID={testID} onPress={handleNavigation}>\r\n <Box\r\n width={\"100%\"}\r\n flexStyle={{ flexDirection: \"row\", alignItems: \"center\" }}\r\n backgroundColor={readonly ? theme.colors.blue[40050] : theme.colors.blue[400]}\r\n borderStyled={{\r\n borderWidth: theme.borderWidths.thin,\r\n borderRadius: theme.borderWidths.thick_medium,\r\n borderColor: readonly ? theme.colors.blue[40050] : theme.colors.blue[400],\r\n }}\r\n paddingStyle={{ padding: theme.paddings[\"2xs\"] }}\r\n style={style}\r\n >\r\n <Box width={\"9%\"}>\r\n <Icons icon={\"BELL\"} size={32} color={theme.colors.neutral[25]} />\r\n </Box>\r\n\r\n <Box\r\n flexStyle={{ flexDirection: \"column\" }}\r\n width={\"91%\"}\r\n paddingStyle={{ paddingLeft: 7 }}\r\n >\r\n {/* Carregamento identificação */}\r\n <Box flexStyle={{ flexDirection: \"row\", alignItems: \"center\" }}>\r\n <Typography\r\n text={\"Carregamento - \"}\r\n size={theme.fontSizes.sm}\r\n lineHeight={theme.fontSizes.lg}\r\n fontFamily={theme.fonts.inter_semi_bold_600}\r\n fontWeight=\"600\"\r\n color={theme.colors.neutral[25]}\r\n letterSpacing={\"regular\"}\r\n />\r\n <Typography\r\n text={title}\r\n size={theme.fontSizes.xs}\r\n lineHeight={theme.fontSizes.md}\r\n fontFamily={theme.fonts.inter_bold_700}\r\n fontWeight=\"700\"\r\n color={theme.colors.neutral[25]}\r\n letterSpacing={\"regular\"}\r\n />\r\n </Box>\r\n\r\n {/* Data do carregamento */}\r\n <Box\r\n flexStyle={{\r\n flexDirection: \"row\",\r\n alignItems: \"center\",\r\n justifyContent: \"space-between\",\r\n }}\r\n >\r\n <Box\r\n flexStyle={{\r\n flexDirection: \"row\",\r\n alignItems: \"center\",\r\n }}\r\n >\r\n <Typography\r\n text={\"Data - \"}\r\n size={theme.fontSizes.sm}\r\n lineHeight={theme.fontSizes.lg ?? 18}\r\n fontFamily={theme.fonts.inter_medium_500}\r\n fontWeight=\"500\"\r\n color={theme.colors.neutral[25]}\r\n letterSpacing={\"regular\"}\r\n />\r\n <Typography\r\n text={String(date)}\r\n size={theme.fontSizes.sm}\r\n lineHeight={theme.fontSizes.lg ?? 18}\r\n fontFamily={theme.fonts.inter_medium_500}\r\n fontWeight=\"500\"\r\n color={theme.colors.neutral[25]}\r\n letterSpacing={\"regular\"}\r\n />\r\n </Box>\r\n <Box\r\n flexStyle={{\r\n flexDirection: \"row\",\r\n alignItems: \"center\",\r\n }}\r\n >\r\n <Typography\r\n text={String(dataStart)}\r\n size={theme.fontSizes[\"2xs\"]}\r\n fontFamily={theme.fonts.inter_medium_500}\r\n fontWeight=\"500\"\r\n lineHeight={theme.fontSizes.sm}\r\n color={theme.colors.neutral[25]}\r\n letterSpacing={\"regular\"}\r\n marginRight={8}\r\n />\r\n\r\n <Icons\r\n icon={\"ELLIPSE\"}\r\n color={\r\n readonly ? theme.colors.neutral[25] : getStatusColor(statusNotify as StatusType)\r\n }\r\n size={9}\r\n />\r\n </Box>\r\n </Box>\r\n\r\n {/* Mensagem de notificação do carregamento */}\r\n <Typography\r\n text={notification}\r\n size={theme.fontSizes[\"2xs\"]}\r\n fontFamily={theme.fonts.inter_medium_500}\r\n fontWeight=\"500\"\r\n lineHeight={theme.fontSizes.sm ?? 14}\r\n color={theme.colors.neutral[25]}\r\n letterSpacing={\"regular\"}\r\n ellipsizeMode=\"tail\"\r\n numberOfLines={1}\r\n />\r\n </Box>\r\n </Box>\r\n </TouchableOpacity>\r\n );\r\n};\r\n\r\n/**\r\n * EXPORTS\r\n */\r\nexport { NotificationLoading };\r\n"],"mappings":"AAAA;AACA;AACA;AACA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,gBAAgB,QAAQ,cAAc;;AAE/C;AACA,SAASC,GAAG,QAAQ,QAAQ;AAC5B,SAASC,UAAU,QAAQ,eAAe;;AAE1C;AACA,SAASC,KAAK,QAAQ,wBAAwB;;AAE9C;AACA,SAASC,KAAK,QAAQ,0BAA0B;AAGhD,SAASC,cA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from "react-native";
|
|
@@ -11,15 +11,15 @@ import { getIconKeyByValue } from "./helpers/get-icon-by-status";
|
|
|
11
11
|
import { styles } from "./styles";
|
|
12
12
|
import { Icons } from "../../common/icons-svg";
|
|
13
13
|
import { formHoursMinute } from "../../utils/format-data";
|
|
14
|
+
import { theme } from "../../styles/theme/theme";
|
|
14
15
|
|
|
15
|
-
/**
|
|
16
|
-
* Componente StepIndicator para a interação da ui.
|
|
16
|
+
/**
|
|
17
|
+
* Componente StepIndicator para a interação da ui.
|
|
17
18
|
*/
|
|
18
19
|
|
|
19
20
|
const StepIndicator = ({
|
|
20
21
|
data = [],
|
|
21
22
|
type,
|
|
22
|
-
backgroundColorBall,
|
|
23
23
|
textColorDescription,
|
|
24
24
|
titleColor,
|
|
25
25
|
titleNumberColor
|
|
@@ -31,7 +31,7 @@ const StepIndicator = ({
|
|
|
31
31
|
key: history.id
|
|
32
32
|
}, /*#__PURE__*/React.createElement(View, {
|
|
33
33
|
style: styles({
|
|
34
|
-
|
|
34
|
+
sincronizado: history.sincronizado
|
|
35
35
|
}).containerBall
|
|
36
36
|
}, (data === null || data === void 0 ? void 0 : data.length) > 1 && index < (data === null || data === void 0 ? void 0 : data.length) - 1 && /*#__PURE__*/React.createElement(View, {
|
|
37
37
|
style: {
|
|
@@ -39,7 +39,7 @@ const StepIndicator = ({
|
|
|
39
39
|
height: 84,
|
|
40
40
|
marginTop: 116,
|
|
41
41
|
position: "relative",
|
|
42
|
-
backgroundColor:
|
|
42
|
+
backgroundColor: history.sincronizado ? theme.colors.blue[500] : theme.colors.orange[150]
|
|
43
43
|
}
|
|
44
44
|
}), /*#__PURE__*/React.createElement(Text, {
|
|
45
45
|
style: styles({
|
|
@@ -131,8 +131,8 @@ const StepIndicator = ({
|
|
|
131
131
|
return /*#__PURE__*/React.createElement(React.Fragment, null, handleRenderComponent(type));
|
|
132
132
|
};
|
|
133
133
|
|
|
134
|
-
/**
|
|
135
|
-
* EXPORTS
|
|
134
|
+
/**
|
|
135
|
+
* EXPORTS
|
|
136
136
|
*/
|
|
137
137
|
export { StepIndicator };
|
|
138
138
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","View","Text","getIconKeyByValue","styles","Icons","formHoursMinute","StepIndicator","data","type","backgroundColorBall","textColorDescription","titleColor","titleNumberColor","StepDefault","createElement","Fragment","length","map","history","index","testID","style","containerIndicator","key","id","containerBall","width","height","marginTop","position","backgroundColor","titleNumber","containerMain","title","descricao","data_inicio","titleDescription","data_fim","duracao_segundos","StepCustom","paddingHorizontal","display","flexDirection","step","indexCustom","borderRadius","alignItems","justifyContent","borderWidth","borderColor","icon","top","fontWeight","fontSize","lineHeight","textAlign","color","handleRenderComponent","stepType"],"sources":["index.tsx"],"sourcesContent":["/**\n * IMPORTS\n */\nimport React from \"react\";\nimport { View, Text } from \"react-native\";\n\nimport { getIconKeyByValue } from \"./helpers/get-icon-by-status\";\n\n// typings\nimport { IStepIndicator } from \"./interface\";\n\n// styles\nimport { styles } from \"./styles\";\nimport { Icons } from \"../../common/icons-svg\";\nimport { formHoursMinute } from \"../../utils/format-data\";\n\n/**\n * Componente StepIndicator para a interação da ui.\n */\n\nconst StepIndicator: React.FC<IStepIndicator> = ({\n data = [],\n type,\n backgroundColorBall,\n textColorDescription,\n titleColor,\n titleNumberColor,\n}) => {\n const StepDefault = () => {\n return (\n <>\n {data!.length > 0 &&\n data!.map((history, index) => (\n <View testID=\"step-indicator\" style={styles({}).containerIndicator} key={history.id}>\n <View style={styles({ backgroundColorBall }).containerBall}>\n {data!?.length > 1 && index < data!?.length - 1 && (\n <View\n style={{\n width: 2,\n height: 84,\n marginTop: 116,\n position: \"relative\",\n backgroundColor: \"#050022\",\n }}\n />\n )}\n <Text style={styles({ titleNumberColor }).titleNumber}>\n {data!?.length - index}\n </Text>\n </View>\n\n <View style={styles({}).containerMain}>\n <Text style={styles({ titleColor }).title}>{history?.descricao}</Text>\n\n {history?.data_inicio && (\n <Text style={styles({ textColorDescription }).titleDescription}>\n {`Inicio: ${history.data_inicio} ás ${history.data_fim}`}\n </Text>\n )}\n\n {history.duracao_segundos && (\n <Text style={styles({ textColorDescription }).titleDescription}>\n Duração: {formHoursMinute(history?.duracao_segundos as string)}\n </Text>\n )}\n </View>\n </View>\n ))}\n </>\n );\n };\n\n const StepCustom = () => {\n return (\n <View\n style={{\n width: \"100%\",\n height: 84,\n paddingHorizontal: 24,\n display: \"flex\",\n flexDirection: \"row\",\n }}\n >\n {data.map((step, indexCustom) => {\n const descricao = getIconKeyByValue(step.descricao);\n\n return (\n <React.Fragment key={`step-${indexCustom}`}>\n <View\n style={{\n width: 45,\n height: 45,\n backgroundColor: indexCustom <= 3 ? \"orange\" : \"transparent\",\n borderRadius: 50,\n alignItems: \"center\",\n justifyContent: \"center\",\n borderWidth: 1,\n borderColor: \"#fff\",\n }}\n >\n <View\n style={{\n width: 45,\n height: 45,\n backgroundColor: \"transparent\",\n borderRadius: 50,\n alignItems: \"center\",\n justifyContent: \"center\",\n }}\n >\n {descricao && <Icons icon={descricao} />}\n </View>\n <Text\n style={{\n position: \"absolute\",\n top: 56,\n fontWeight: \"600\",\n fontSize: 10,\n lineHeight: 14,\n textAlign: \"center\",\n color: \"#fff\",\n width: 75,\n }}\n >\n {step.descricao}\n </Text>\n </View>\n\n {data?.length > 1 && indexCustom < data?.length - 1 && (\n <View\n style={{\n width: 35,\n height: 2,\n marginTop: 24,\n position: \"relative\",\n backgroundColor: \"orange\",\n }}\n />\n )}\n </React.Fragment>\n );\n })}\n </View>\n );\n };\n\n const handleRenderComponent = (stepType: \"default\" | \"custom\") => {\n switch (stepType) {\n case \"default\":\n return <StepDefault />;\n case \"custom\":\n return <StepCustom />;\n default:\n return <View />;\n }\n };\n\n return <>{handleRenderComponent(type!)}</>;\n};\n\n/**\n * EXPORTS\n */\nexport { StepIndicator };\n"],"mappings":"AAAA;AACA;AACA;AACA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI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,CAAES,MAAM,IAAG,CAAC,iBACjDjB,KAAA,CAAAe,aAAA,CAACd,IAAI;QACHqB,KAAK,EAAE;UACLK,KAAK,EAAE,EAAE;UACTC,MAAM,EAAE,CAAC;UACTC,SAAS,EAAE,EAAE;UACbC,QAAQ,EAAE,UAAU;UACpBC,eAAe,EAAE;QACnB;MAAE,CACH,CAEW,CAAC;IAErB,CAAC,CACG,CAAC;EAEX,CAAC;EAED,MAAM2B,qBAAqB,GAAIC,QAA8B,IAAK;IAChE,QAAQA,QAAQ;MACd,KAAK,SAAS;QACZ,oBAAO3D,KAAA,CAAAe,aAAA,CAACD,WAAW,MAAE,CAAC;MACxB,KAAK,QAAQ;QACX,oBAAOd,KAAA,CAAAe,aAAA,CAACyB,UAAU,MAAE,CAAC;MACvB;QACE,oBAAOxC,KAAA,CAAAe,aAAA,CAACd,IAAI,MAAE,CAAC;IACnB;EACF,CAAC;EAED,oBAAOD,KAAA,CAAAe,aAAA,CAAAf,KAAA,CAAAgB,QAAA,QAAG0C,qBAAqB,CAACjD,IAAK,CAAI,CAAC;AAC5C,CAAC;;AAED;AACA;AACA;AACA,SAASF,aAAa","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["React","View","Text","getIconKeyByValue","styles","Icons","formHoursMinute","theme","StepIndicator","data","type","textColorDescription","titleColor","titleNumberColor","StepDefault","createElement","Fragment","length","map","history","index","testID","style","containerIndicator","key","id","sincronizado","containerBall","width","height","marginTop","position","backgroundColor","colors","blue","orange","titleNumber","containerMain","title","descricao","data_inicio","titleDescription","data_fim","duracao_segundos","StepCustom","paddingHorizontal","display","flexDirection","step","indexCustom","borderRadius","alignItems","justifyContent","borderWidth","borderColor","icon","top","fontWeight","fontSize","lineHeight","textAlign","color","handleRenderComponent","stepType"],"sources":["index.tsx"],"sourcesContent":["/**\r\n * IMPORTS\r\n */\r\nimport React from \"react\";\r\nimport { View, Text } from \"react-native\";\r\n\r\nimport { getIconKeyByValue } from \"./helpers/get-icon-by-status\";\r\n\r\n// typings\r\nimport { IStepIndicator } from \"./interface\";\r\n\r\n// styles\r\nimport { styles } from \"./styles\";\r\nimport { Icons } from \"../../common/icons-svg\";\r\nimport { formHoursMinute } from \"../../utils/format-data\";\r\nimport { theme } from \"../../styles/theme/theme\";\r\n\r\n/**\r\n * Componente StepIndicator para a interação da ui.\r\n */\r\n\r\nconst StepIndicator: React.FC<IStepIndicator> = ({\r\n data = [],\r\n type,\r\n textColorDescription,\r\n titleColor,\r\n titleNumberColor,\r\n}) => {\r\n const StepDefault = () => {\r\n return (\r\n <>\r\n {data!.length > 0 &&\r\n data!.map((history, index) => (\r\n <View testID=\"step-indicator\" style={styles({}).containerIndicator} key={history.id}>\r\n <View style={styles({ sincronizado: history.sincronizado }).containerBall}>\r\n {data!?.length > 1 && index < data!?.length - 1 && (\r\n <View\r\n style={{\r\n width: 2,\r\n height: 84,\r\n marginTop: 116,\r\n position: \"relative\",\r\n backgroundColor: history.sincronizado\r\n ? theme.colors.blue[500]\r\n : theme.colors.orange[150],\r\n }}\r\n />\r\n )}\r\n <Text style={styles({ titleNumberColor }).titleNumber}>\r\n {data!?.length - index}\r\n </Text>\r\n </View>\r\n\r\n <View style={styles({}).containerMain}>\r\n <Text style={styles({ titleColor }).title}>{history?.descricao}</Text>\r\n\r\n {history?.data_inicio && (\r\n <Text style={styles({ textColorDescription }).titleDescription}>\r\n {`Inicio: ${history.data_inicio} ás ${history.data_fim}`}\r\n </Text>\r\n )}\r\n\r\n {history.duracao_segundos && (\r\n <Text style={styles({ textColorDescription }).titleDescription}>\r\n Duração: {formHoursMinute(history?.duracao_segundos as string)}\r\n </Text>\r\n )}\r\n </View>\r\n </View>\r\n ))}\r\n </>\r\n );\r\n };\r\n\r\n const StepCustom = () => {\r\n return (\r\n <View\r\n style={{\r\n width: \"100%\",\r\n height: 84,\r\n paddingHorizontal: 24,\r\n display: \"flex\",\r\n flexDirection: \"row\",\r\n }}\r\n >\r\n {data.map((step, indexCustom) => {\r\n const descricao = getIconKeyByValue(step.descricao);\r\n\r\n return (\r\n <React.Fragment key={`step-${indexCustom}`}>\r\n <View\r\n style={{\r\n width: 45,\r\n height: 45,\r\n backgroundColor: indexCustom <= 3 ? \"orange\" : \"transparent\",\r\n borderRadius: 50,\r\n alignItems: \"center\",\r\n justifyContent: \"center\",\r\n borderWidth: 1,\r\n borderColor: \"#fff\",\r\n }}\r\n >\r\n <View\r\n style={{\r\n width: 45,\r\n height: 45,\r\n backgroundColor: \"transparent\",\r\n borderRadius: 50,\r\n alignItems: \"center\",\r\n justifyContent: \"center\",\r\n }}\r\n >\r\n {descricao && <Icons icon={descricao} />}\r\n </View>\r\n <Text\r\n style={{\r\n position: \"absolute\",\r\n top: 56,\r\n fontWeight: \"600\",\r\n fontSize: 10,\r\n lineHeight: 14,\r\n textAlign: \"center\",\r\n color: \"#fff\",\r\n width: 75,\r\n }}\r\n >\r\n {step.descricao}\r\n </Text>\r\n </View>\r\n\r\n {data?.length > 1 && indexCustom < data?.length - 1 && (\r\n <View\r\n style={{\r\n width: 35,\r\n height: 2,\r\n marginTop: 24,\r\n position: \"relative\",\r\n backgroundColor: \"orange\",\r\n }}\r\n />\r\n )}\r\n </React.Fragment>\r\n );\r\n })}\r\n </View>\r\n );\r\n };\r\n\r\n const handleRenderComponent = (stepType: \"default\" | \"custom\") => {\r\n switch (stepType) {\r\n case \"default\":\r\n return <StepDefault />;\r\n case \"custom\":\r\n return <StepCustom />;\r\n default:\r\n return <View />;\r\n }\r\n };\r\n\r\n return <>{handleRenderComponent(type!)}</>;\r\n};\r\n\r\n/**\r\n * EXPORTS\r\n */\r\nexport { StepIndicator };\r\n"],"mappings":"AAAA;AACA;AACA;AACA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,EAAEC,IAAI,QAAQ,cAAc;AAEzC,SAASC,iBAAiB,QAAQ,8BAA8B;;AAEhE;;AAGA;AACA,SAASC,MAAM,QAAQ,UAAU;AACjC,SAASC,KAAK,QAAQ,wBAAwB;AAC9C,SA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AI,aAAJA,IAAI,uBAAJA,IAAI,CAAEQ,MAAM,IAAG,CAAC,iBACjDjB,KAAA,CAAAe,aAAA,CAACd,IAAI;QACHqB,KAAK,EAAE;UACLM,KAAK,EAAE,EAAE;UACTC,MAAM,EAAE,CAAC;UACTC,SAAS,EAAE,EAAE;UACbC,QAAQ,EAAE,UAAU;UACpBC,eAAe,EAAE;QACnB;MAAE,CACH,CAEW,CAAC;IAErB,CAAC,CACG,CAAC;EAEX,CAAC;EAED,MAAM8B,qBAAqB,GAAIC,QAA8B,IAAK;IAChE,QAAQA,QAAQ;MACd,KAAK,SAAS;QACZ,oBAAO/D,KAAA,CAAAe,aAAA,CAACD,WAAW,MAAE,CAAC;MACxB,KAAK,QAAQ;QACX,oBAAOd,KAAA,CAAAe,aAAA,CAAC6B,UAAU,MAAE,CAAC;MACvB;QACE,oBAAO5C,KAAA,CAAAe,aAAA,CAACd,IAAI,MAAE,CAAC;IACnB;EACF,CAAC;EAED,oBAAOD,KAAA,CAAAe,aAAA,CAAAf,KAAA,CAAAgB,QAAA,QAAG8C,qBAAqB,CAACpD,IAAK,CAAI,CAAC;AAC5C,CAAC;;AAED;AACA;AACA;AACA,SAASF,aAAa","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["interface.d.ts"],"sourcesContent":["/**\n * IMPORTS\n */\n\ntype IData = {\n id: number;\n duracao_segundos: string | number;\n data_inicio: string;\n data_fim: string;\n descricao: string;\n};\ninterface IStepIndicator {\n /**dados que vão ser renderizados */\n data?: IData[];\n\n /**tupo de renderização padrão ou customizada */\n type?: \"default\" | \"custom\";\
|
|
1
|
+
{"version":3,"names":[],"sources":["interface.d.ts"],"sourcesContent":["/**\r\n * IMPORTS\r\n */\r\n\r\ntype IData = {\r\n id: number;\r\n duracao_segundos: string | number;\r\n data_inicio: string;\r\n data_fim: string;\r\n descricao: string;\r\n sincronizado;\r\n};\r\ninterface IStepIndicator {\r\n /**dados que vão ser renderizados */\r\n data?: IData[];\r\n\r\n /**tupo de renderização padrão ou customizada */\r\n type?: \"default\" | \"custom\";\r\n\r\n /**cor do texto */\r\n titleColor?: string;\r\n\r\n /**cor do numero do step indicator */\r\n titleNumberColor?: string;\r\n\r\n /**cor do texto da descrição */\r\n textColorDescription?: string;\r\n\r\n /**verifica se foi sincronizado com back end */\r\n sincronizado?: boolean;\r\n}\r\n/**\r\n * EXPORTS\r\n */\r\nexport { type IStepIndicator };\r\n"],"mappings":"","ignoreList":[]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* IMPORTS
|
|
1
|
+
/**
|
|
2
|
+
* IMPORTS
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import { StyleSheet } from "react-native";
|
|
@@ -9,7 +9,7 @@ import { StyleSheet } from "react-native";
|
|
|
9
9
|
// styles
|
|
10
10
|
import { theme } from "../../styles/theme/theme";
|
|
11
11
|
const styles = props => {
|
|
12
|
-
var _props$
|
|
12
|
+
var _props$titleColor, _props$titleNumberCol, _props$textColorDescr;
|
|
13
13
|
return StyleSheet.create({
|
|
14
14
|
containerIndicator: {
|
|
15
15
|
width: "100%",
|
|
@@ -21,7 +21,7 @@ const styles = props => {
|
|
|
21
21
|
containerBall: {
|
|
22
22
|
width: 32,
|
|
23
23
|
height: 32,
|
|
24
|
-
backgroundColor:
|
|
24
|
+
backgroundColor: props.sincronizado ? theme.colors.blue[500] : theme.colors.orange[150],
|
|
25
25
|
flexDirection: "row",
|
|
26
26
|
alignItems: "center",
|
|
27
27
|
justifyContent: "center",
|
|
@@ -62,8 +62,8 @@ const styles = props => {
|
|
|
62
62
|
});
|
|
63
63
|
};
|
|
64
64
|
|
|
65
|
-
/**
|
|
66
|
-
* EXPORTS
|
|
65
|
+
/**
|
|
66
|
+
* EXPORTS
|
|
67
67
|
*/
|
|
68
68
|
export { styles };
|
|
69
69
|
//# sourceMappingURL=styles.js.map
|