react-native-exp-fig 0.1.41 → 0.1.43
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonjs/@types/as-base-component.js.map +1 -1
- package/lib/commonjs/common/icons-svg/arrow-down/index.js +51 -0
- package/lib/commonjs/common/icons-svg/arrow-down/index.js.map +1 -0
- package/lib/commonjs/common/icons-svg/constants/index.js +3 -1
- package/lib/commonjs/common/icons-svg/constants/index.js.map +1 -1
- package/lib/commonjs/common/icons-svg/user-circle/index.js +37 -0
- package/lib/commonjs/common/icons-svg/user-circle/index.js.map +1 -0
- package/lib/commonjs/components/active-loadings-summary/index.js +88 -0
- package/lib/commonjs/components/active-loadings-summary/index.js.map +1 -0
- package/lib/commonjs/components/active-loadings-summary/interface.d.js +6 -0
- package/lib/commonjs/components/active-loadings-summary/interface.d.js.map +1 -0
- package/lib/commonjs/components/alert-critical-load/index.js +64 -0
- package/lib/commonjs/components/alert-critical-load/index.js.map +1 -0
- package/lib/commonjs/components/alert-critical-load/interface.js +6 -0
- package/lib/commonjs/components/alert-critical-load/interface.js.map +1 -0
- package/lib/commonjs/components/alert-critical-load/styles.js +40 -0
- package/lib/commonjs/components/alert-critical-load/styles.js.map +1 -0
- package/lib/commonjs/components/card-available-load/index.js +131 -0
- package/lib/commonjs/components/card-available-load/index.js.map +1 -0
- package/lib/commonjs/components/card-available-load/interface.js +6 -0
- package/lib/commonjs/components/card-available-load/interface.js.map +1 -0
- package/lib/commonjs/components/card-available-load/style.js +54 -0
- package/lib/commonjs/components/card-available-load/style.js.map +1 -0
- package/lib/commonjs/components/card-driver-data/index.js +105 -0
- package/lib/commonjs/components/card-driver-data/index.js.map +1 -0
- package/lib/commonjs/components/card-driver-data/interface.js +6 -0
- package/lib/commonjs/components/card-driver-data/interface.js.map +1 -0
- package/lib/commonjs/components/card-driver-data/style.js +55 -0
- package/lib/commonjs/components/card-driver-data/style.js.map +1 -0
- package/lib/commonjs/components/card-loading/index.js +9 -9
- package/lib/commonjs/components/card-loading/index.js.map +1 -1
- package/lib/commonjs/components/card-loading/interface.d.js.map +1 -1
- package/lib/commonjs/components/document-carga-info/index.js +98 -0
- package/lib/commonjs/components/document-carga-info/index.js.map +1 -0
- package/lib/commonjs/components/document-carga-info/interface.js +2 -0
- package/lib/commonjs/components/document-carga-info/interface.js.map +1 -0
- package/lib/commonjs/components/document-carga-info/styles.js +64 -0
- package/lib/commonjs/components/document-carga-info/styles.js.map +1 -0
- package/lib/commonjs/components/driver-journey-info/index.js +141 -0
- package/lib/commonjs/components/driver-journey-info/index.js.map +1 -0
- package/lib/commonjs/components/driver-journey-info/interface.js +6 -0
- package/lib/commonjs/components/driver-journey-info/interface.js.map +1 -0
- package/lib/commonjs/components/driver-journey-info/style.js +55 -0
- package/lib/commonjs/components/driver-journey-info/style.js.map +1 -0
- package/lib/commonjs/index.js +42 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/stories/active-loadings-summary/active-loadings-summary.stories.js +63 -0
- package/lib/commonjs/stories/active-loadings-summary/active-loadings-summary.stories.js.map +1 -0
- package/lib/commonjs/stories/alert-critical-load/alert-critical-load.stories.js +58 -0
- package/lib/commonjs/stories/alert-critical-load/alert-critical-load.stories.js.map +1 -0
- package/lib/commonjs/stories/card-available-load/card-available-load.stories.js +94 -0
- package/lib/commonjs/stories/card-available-load/card-available-load.stories.js.map +1 -0
- package/lib/commonjs/stories/card-driver-data/card-driver-data.stories.js +81 -0
- package/lib/commonjs/stories/card-driver-data/card-driver-data.stories.js.map +1 -0
- package/lib/commonjs/stories/document-carga-info/document-carga-info.stories.js +76 -0
- package/lib/commonjs/stories/document-carga-info/document-carga-info.stories.js.map +1 -0
- package/lib/commonjs/stories/driver-journey-info/driver-journey-info.stories.js +87 -0
- package/lib/commonjs/stories/driver-journey-info/driver-journey-info.stories.js.map +1 -0
- package/lib/commonjs/styles/theme/theme.js +5 -4
- package/lib/commonjs/styles/theme/theme.js.map +1 -1
- package/lib/commonjs/utils/status-color/return-color.js +4 -2
- package/lib/commonjs/utils/status-color/return-color.js.map +1 -1
- package/lib/module/@types/as-base-component.js.map +1 -1
- package/lib/module/common/icons-svg/arrow-down/index.js +45 -0
- package/lib/module/common/icons-svg/arrow-down/index.js.map +1 -0
- package/lib/module/common/icons-svg/constants/index.js +3 -1
- package/lib/module/common/icons-svg/constants/index.js.map +1 -1
- package/lib/module/common/icons-svg/user-circle/index.js +29 -0
- package/lib/module/common/icons-svg/user-circle/index.js.map +1 -0
- package/lib/module/components/active-loadings-summary/index.js +81 -0
- package/lib/module/components/active-loadings-summary/index.js.map +1 -0
- package/lib/module/components/active-loadings-summary/interface.d.js +2 -0
- package/lib/module/components/active-loadings-summary/interface.d.js.map +1 -0
- package/lib/module/components/alert-critical-load/index.js +63 -0
- package/lib/module/components/alert-critical-load/index.js.map +1 -0
- package/lib/module/components/alert-critical-load/interface.js +2 -0
- package/lib/module/components/alert-critical-load/interface.js.map +1 -0
- package/lib/module/components/alert-critical-load/styles.js +34 -0
- package/lib/module/components/alert-critical-load/styles.js.map +1 -0
- package/lib/module/components/card-available-load/index.js +130 -0
- package/lib/module/components/card-available-load/index.js.map +1 -0
- package/lib/module/components/card-available-load/interface.js +2 -0
- package/lib/module/components/card-available-load/interface.js.map +1 -0
- package/lib/module/components/card-available-load/style.js +49 -0
- package/lib/module/components/card-available-load/style.js.map +1 -0
- package/lib/module/components/card-driver-data/index.js +104 -0
- package/lib/module/components/card-driver-data/index.js.map +1 -0
- package/lib/module/components/card-driver-data/interface.js +2 -0
- package/lib/module/components/card-driver-data/interface.js.map +1 -0
- package/lib/module/components/card-driver-data/style.js +50 -0
- package/lib/module/components/card-driver-data/style.js.map +1 -0
- package/lib/module/components/card-loading/index.js +9 -9
- package/lib/module/components/card-loading/index.js.map +1 -1
- package/lib/module/components/card-loading/interface.d.js.map +1 -1
- package/lib/module/components/document-carga-info/index.js +97 -0
- package/lib/module/components/document-carga-info/index.js.map +1 -0
- package/lib/module/components/document-carga-info/interface.js +2 -0
- package/lib/module/components/document-carga-info/interface.js.map +1 -0
- package/lib/module/components/document-carga-info/styles.js +60 -0
- package/lib/module/components/document-carga-info/styles.js.map +1 -0
- package/lib/module/components/driver-journey-info/index.js +140 -0
- package/lib/module/components/driver-journey-info/index.js.map +1 -0
- package/lib/module/components/driver-journey-info/interface.js +2 -0
- package/lib/module/components/driver-journey-info/interface.js.map +1 -0
- package/lib/module/components/driver-journey-info/style.js +50 -0
- package/lib/module/components/driver-journey-info/style.js.map +1 -0
- package/lib/module/index.js +8 -2
- package/lib/module/index.js.map +1 -1
- package/lib/module/stories/active-loadings-summary/active-loadings-summary.stories.js +57 -0
- package/lib/module/stories/active-loadings-summary/active-loadings-summary.stories.js.map +1 -0
- package/lib/module/stories/alert-critical-load/alert-critical-load.stories.js +50 -0
- package/lib/module/stories/alert-critical-load/alert-critical-load.stories.js.map +1 -0
- package/lib/module/stories/card-available-load/card-available-load.stories.js +86 -0
- package/lib/module/stories/card-available-load/card-available-load.stories.js.map +1 -0
- package/lib/module/stories/card-driver-data/card-driver-data.stories.js +73 -0
- package/lib/module/stories/card-driver-data/card-driver-data.stories.js.map +1 -0
- package/lib/module/stories/document-carga-info/document-carga-info.stories.js +68 -0
- package/lib/module/stories/document-carga-info/document-carga-info.stories.js.map +1 -0
- package/lib/module/stories/driver-journey-info/driver-journey-info.stories.js +79 -0
- package/lib/module/stories/driver-journey-info/driver-journey-info.stories.js.map +1 -0
- package/lib/module/styles/theme/theme.js +5 -4
- package/lib/module/styles/theme/theme.js.map +1 -1
- package/lib/module/utils/status-color/return-color.js +4 -2
- package/lib/module/utils/status-color/return-color.js.map +1 -1
- package/lib/typescript/src/common/icons-svg/arrow-down/index.d.ts +10 -0
- package/lib/typescript/src/common/icons-svg/constants/index.d.ts +2 -0
- package/lib/typescript/src/common/icons-svg/user-circle/index.d.ts +10 -0
- package/lib/typescript/src/components/active-loadings-summary/index.d.ts +10 -0
- package/lib/typescript/src/components/alert-critical-load/index.d.ts +11 -0
- package/lib/typescript/src/components/alert-critical-load/interface.d.ts +9 -0
- package/lib/typescript/src/components/alert-critical-load/styles.d.ts +28 -0
- package/lib/typescript/src/components/card-available-load/index.d.ts +11 -0
- package/lib/typescript/src/components/card-available-load/interface.d.ts +30 -0
- package/lib/typescript/src/components/card-available-load/style.d.ts +8 -0
- package/lib/typescript/src/components/card-driver-data/index.d.ts +11 -0
- package/lib/typescript/src/components/card-driver-data/interface.d.ts +27 -0
- package/lib/typescript/src/components/card-driver-data/style.d.ts +8 -0
- package/lib/typescript/src/components/document-carga-info/index.d.ts +11 -0
- package/lib/typescript/src/components/document-carga-info/interface.d.ts +15 -0
- package/lib/typescript/src/components/document-carga-info/styles.d.ts +50 -0
- package/lib/typescript/src/components/driver-journey-info/index.d.ts +11 -0
- package/lib/typescript/src/components/driver-journey-info/interface.d.ts +28 -0
- package/lib/typescript/src/components/driver-journey-info/style.d.ts +8 -0
- package/lib/typescript/src/components/selects/select-date-and-hours/index.d.ts +1 -1
- package/lib/typescript/src/index.d.ts +6 -0
- package/lib/typescript/src/stories/active-loadings-summary/active-loadings-summary.stories.d.ts +8 -0
- package/lib/typescript/src/stories/alert-critical-load/alert-critical-load.stories.d.ts +9 -0
- package/lib/typescript/src/stories/card-available-load/card-available-load.stories.d.ts +10 -0
- package/lib/typescript/src/stories/card-driver-data/card-driver-data.stories.d.ts +10 -0
- package/lib/typescript/src/stories/document-carga-info/document-carga-info.stories.d.ts +10 -0
- package/lib/typescript/src/stories/driver-journey-info/driver-journey-info.stories.d.ts +10 -0
- package/lib/typescript/src/styles/global/theme-provider.d.ts +1 -0
- package/lib/typescript/src/styles/theme/theme.d.ts +1 -0
- package/lib/typescript/src/utils/status-color/return-color.d.ts +1 -1
- package/package.json +1 -1
- package/src/@types/as-base-component.ts +9 -9
- package/src/common/icons-svg/arrow-down/index.tsx +44 -0
- package/src/common/icons-svg/constants/index.ts +2 -0
- package/src/common/icons-svg/user-circle/index.tsx +29 -0
- package/src/components/active-loadings-summary/index.tsx +69 -0
- package/src/components/active-loadings-summary/interface.d.ts +16 -0
- package/src/components/alert-critical-load/index.tsx +83 -0
- package/src/components/alert-critical-load/interface.ts +13 -0
- package/src/components/alert-critical-load/styles.ts +35 -0
- package/src/components/card-available-load/index.tsx +163 -0
- package/src/components/card-available-load/interface.ts +36 -0
- package/src/components/card-available-load/style.ts +51 -0
- package/src/components/card-driver-data/index.tsx +139 -0
- package/src/components/card-driver-data/interface.ts +33 -0
- package/src/components/card-driver-data/style.ts +55 -0
- package/src/components/card-loading/index.tsx +276 -294
- package/src/components/card-loading/interface.d.ts +37 -37
- package/src/components/document-carga-info/index.tsx +137 -0
- package/src/components/document-carga-info/interface.ts +19 -0
- package/src/components/document-carga-info/styles.ts +65 -0
- package/src/components/driver-journey-info/index.tsx +185 -0
- package/src/components/driver-journey-info/interface.ts +36 -0
- package/src/components/driver-journey-info/style.ts +55 -0
- package/src/index.ts +56 -50
- package/src/stories/active-loadings-summary/active-loadings-summary.stories.tsx +59 -0
- package/src/stories/alert-critical-load/alert-critical-load.stories.tsx +51 -0
- package/src/stories/card-available-load/card-available-load.stories.tsx +85 -0
- package/src/stories/card-driver-data/card-driver-data.stories.tsx +73 -0
- package/src/stories/document-carga-info/document-carga-info.stories.tsx +72 -0
- package/src/stories/driver-journey-info/driver-journey-info.stories.tsx +79 -0
- package/src/styles/theme/theme.ts +192 -191
- package/src/utils/status-color/return-color.ts +3 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","Image","TouchableOpacity","Box","Typography","Icons","theme","getStatusTextColor","getStatusColor","CardLoading","width","title","local","vehicle","prevision","kg","qtdCoils","status","handleNavigation","testID","_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","marginRight","icon","marginLeft","height","paddingRight"],"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// comons / icons\nimport { Icons } from \"../../common/icons-svg\";\n\n// typings\nimport { ICardLoading } from \"./interface\";\n\n// styles\nimport { theme } from \"../../styles/theme/theme\";\nimport {\n getStatusTextColor,\n getStatusColor,\n StatusType,\n} from \"../../utils/status-color/return-color\";\n\n/**\n *\n * Componente CardLoading para a interação do usuário com ui.\n */\nconst CardLoading: React.FC<ICardLoading> = ({\n width,\n title = \"Carregamento #01020304050607\",\n local = \"Doca 1, Patío 03 - Usiminas Ipatinga\",\n vehicle = \"EXP-0000\",\n prevision = \"12:34 10/03/2025\",\n kg = 20,\n qtdCoils = 10,\n status = \"Pendente\",\n handleNavigation,\n testID,\n}: ICardLoading) => {\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={\"26%\"} 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={\"74%\"} 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 <Box\n flexStyle={{\n flexDirection: \"row\",\n justifyContent: \"flex-start\",\n alignItems: \"center\",\n }}\n marginStyle={{\n marginBottom: 4,\n }}\n >\n {/* <Box\n flexStyle={{\n flexDirection: \"row\",\n alignItems: \"center\",\n justifyContent: \"space-between\",\n }}\n marginStyle={{\n marginRight: 8,\n }}\n >\n <Icons icon={\"TIMER\"} size={theme.fontSizes[\"sm\"]} color={theme.colors.neutral[25]} />\n <Typography\n text={\"AUT\"}\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={2}\n />\n </Box> */}\n\n <Box\n flexStyle={{\n flexDirection: \"row\",\n alignItems: \"center\",\n justifyContent: \"space-between\",\n }}\n marginStyle={{\n marginRight: 8,\n }}\n >\n <Icons\n icon={\"SCALES\"}\n size={theme.fontSizes[\"sm\"]}\n color={theme.colors.neutral[25]}\n />\n <Typography\n text={`${kg}KG`}\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={2}\n />\n </Box>\n\n <Box\n flexStyle={{\n flexDirection: \"row\",\n alignItems: \"center\",\n justifyContent: \"space-between\",\n }}\n >\n <Icons icon={\"TIMER\"} size={theme.fontSizes[\"sm\"]} color={theme.colors.neutral[25]} />\n <Typography\n text={`${qtdCoils}QTD`}\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={2}\n />\n </Box>\n </Box>\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 {/**PREVISÃO DO CARREGAMENTO */}\n <Box\n width={\"100%\"}\n flexStyle={{\n flexDirection: \"row\",\n alignItems: \"center\",\n justifyContent: \"space-between\",\n }}\n marginStyle={{\n marginBottom: 8,\n }}\n >\n <Box\n flexStyle={{\n flexDirection: \"row\",\n justifyContent: \"flex-start\",\n alignItems: \"center\",\n }}\n >\n <Typography\n text={\"Previsã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={prevision}\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\n {/**STATUS DO CARREGAMENTO */}\n <Box\n width={\"100%\"}\n flexStyle={{\n flexDirection: \"row\",\n alignItems: \"center\",\n justifyContent: \"space-between\",\n }}\n marginStyle={{\n marginBottom: 4,\n }}\n >\n <Box\n flexStyle={{\n flexDirection: \"row\",\n justifyContent: \"flex-start\",\n alignItems: \"center\",\n }}\n backgroundColor={getStatusColor(status as StatusType)}\n height={22}\n borderStyled={{\n borderWidth: 1,\n borderRadius: 11,\n borderColor: \"transparent\",\n }}\n paddingStyle={{ paddingLeft: 8, paddingRight: 8 }}\n >\n <Typography\n text={\"Status:\"}\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={status}\n color={getStatusTextColor(status as StatusType)}\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 </Box>\n </TouchableOpacity>\n );\n};\n\n/**\n * EXPORTS\n */\nexport { CardLoading };\n"],"mappings":"AAAA;AACA;AACA;AACA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,KAAK,EAAEC,gBAAgB,QAAQ,cAAc;;AAEtD;AACA,OAAOC,GAAG,MAAM,QAAQ;AACxB,SAASC,UAAU,QAAQ,eAAe;;AAE1C;AACA,SAASC,KAAK,QAAQ,wBAAwB;;AAE9C;;AAGA;AACA,SAASC,KAAK,QAAQ,0BAA0B;AAChD,SACEC,kBAAkB,EAClBC,cAAc,QAET,uCAAuC;;AAE9C;AACA;AACA;AACA;AACA,MAAMC,WAAmC,GAAGA,CAAC;EAC3CC,KAAK;EACLC,KA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AChBG,KAAK,EAAExD,KAAK,CAAC4B,MAAM,CAAC6B,OAAO,CAAC,EAAE,CAAE;IAChCC,IAAI,EAAE1D,KAAK,CAAC2D,SAAS,CAACQ,EAAG;IACzBN,UAAU,EAAE7D,KAAK,CAAC8D,KAAK,CAACM,iBAAkB;IAC1CJ,UAAU,GAAA1C,oBAAA,GAAEtB,KAAK,CAAC2D,SAAS,CAAC1B,EAAE,cAAAX,oBAAA,cAAAA,oBAAA,GAAI,EAAG;IACrC4C,aAAa,EAAE;EAAU,CAC1B,CAAC,eACFxE,KAAA,CAAA8B,aAAA,CAAC1B,UAAU;IACTuD,IAAI,EAAE1C,MAAO;IACb6C,KAAK,EAAEvD,kBAAkB,CAACU,MAAoB,CAAE;IAChD+C,IAAI,EAAE1D,KAAK,CAAC2D,SAAS,CAACQ,EAAG;IACzBN,UAAU,EAAE7D,KAAK,CAAC8D,KAAK,CAACC,cAAe;IACvCC,UAAU,GAAAzC,oBAAA,GAAEvB,KAAK,CAAC2D,SAAS,CAAC1B,EAAE,cAAAV,oBAAA,cAAAA,oBAAA,GAAI,EAAG;IACrC2C,aAAa,EAAE,SAAU;IACzBK,UAAU,EAAE;EAAE,CACf,CACE,CACF,CACF,CACF,CACW,CAAC;AAEvB,CAAC;;AAED;AACA;AACA;AACA,SAASpE,WAAW","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["React","Image","TouchableOpacity","Box","Typography","Icons","theme","getStatusTextColor","getStatusColor","CardLoading","width","title","local","vehicle","prevision","kg","qtdCoils","status","handleNavigation","testID","_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","marginRight","icon","marginLeft","height","paddingRight"],"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// comons / icons\r\nimport { Icons } from \"../../common/icons-svg\";\r\n\r\n// typings\r\nimport { ICardLoading } from \"./interface\";\r\n\r\n// styles\r\nimport { theme } from \"../../styles/theme/theme\";\r\nimport {\r\n getStatusTextColor,\r\n getStatusColor,\r\n StatusType,\r\n} from \"../../utils/status-color/return-color\";\r\n\r\n/**\r\n *\r\n * Componente CardLoading para a interação do usuário com ui.\r\n */\r\nconst CardLoading: React.FC<ICardLoading> = ({\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 prevision = \"12:34 10/03/2025\",\r\n kg = 20,\r\n qtdCoils = 10,\r\n status = \"Pendente\",\r\n handleNavigation,\r\n testID,\r\n}: ICardLoading) => {\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={\"26%\"} 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={\"74%\"} 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 <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\r\n\r\n <Box\r\n flexStyle={{\r\n flexDirection: \"row\",\r\n alignItems: \"center\",\r\n justifyContent: \"space-between\",\r\n }}\r\n marginStyle={{\r\n marginRight: 8,\r\n }}\r\n >\r\n <Icons\r\n icon={\"SCALES\"}\r\n size={theme.fontSizes[\"sm\"]}\r\n color={theme.colors.neutral[25]}\r\n />\r\n <Typography\r\n text={`${kg}KG`}\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={2}\r\n />\r\n </Box>\r\n\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 <Icons icon={\"TIMER\"} size={theme.fontSizes[\"sm\"]} color={theme.colors.neutral[25]} />\r\n <Typography\r\n text={`${qtdCoils}QTD`}\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={2}\r\n />\r\n </Box>\r\n </Box>\r\n\r\n {/**DADOS DO VEÍCULOS */}\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={\"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\r\n {/**PREVISÃO DO CARREGAMENTO */}\r\n <Box\r\n width={\"100%\"}\r\n flexStyle={{\r\n flexDirection: \"row\",\r\n alignItems: \"center\",\r\n justifyContent: \"space-between\",\r\n }}\r\n marginStyle={{\r\n marginBottom: 8,\r\n }}\r\n >\r\n <Box\r\n flexStyle={{\r\n flexDirection: \"row\",\r\n justifyContent: \"flex-start\",\r\n alignItems: \"center\",\r\n }}\r\n >\r\n <Typography\r\n text={\"Previsã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={prevision}\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\r\n {/**STATUS DO CARREGAMENTO */}\r\n {status && (\r\n <Box\r\n width={\"100%\"}\r\n flexStyle={{\r\n flexDirection: \"row\",\r\n alignItems: \"center\",\r\n justifyContent: \"space-between\",\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 justifyContent: \"flex-start\",\r\n alignItems: \"center\",\r\n }}\r\n backgroundColor={getStatusColor(status as StatusType)}\r\n height={22}\r\n borderStyled={{\r\n borderWidth: 1,\r\n borderRadius: 11,\r\n borderColor: \"transparent\",\r\n }}\r\n paddingStyle={{ paddingLeft: 8, paddingRight: 8 }}\r\n >\r\n <Typography\r\n text={\"Status:\"}\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={status ?? \"N/A\"}\r\n color={getStatusTextColor(status as StatusType)}\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 )}\r\n </Box>\r\n </Box>\r\n </TouchableOpacity>\r\n );\r\n};\r\n\r\n/**\r\n * EXPORTS\r\n */\r\nexport { CardLoading };\r\n"],"mappings":"AAAA;AACA;AACA;AACA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,KAAK,EAAEC,gBAAgB,QAAQ,cAAc;;AAEtD;AACA,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* IMPORTS\n */\nimport { TouchableOpacityProps } from \"react-native\";\n\n// typing\nimport { IGlobalCss } from \"../../styles/global/interface\";\n\ninterface ICardLoading 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 a previsão do carregamento */\n prevision?: string;\n\n /**propriedade que indica o peso do carregamento */\n kg: number;\n\n /**propriedade que indica a quantidade de bobinas do carregamento */\n qtdCoils: number;\n\n /**propriedade que indica o status do carregamento */\n status?: string;\n\n handleNavigation: () => void;\n}\n\n/**\n * EXPORTS\n */\nexport { ICardLoading };\n"],"mappings":"","ignoreList":[]}
|
|
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 ICardLoading 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 a previsão do carregamento */\r\n prevision?: string;\r\n\r\n /**propriedade que indica o peso do carregamento */\r\n kg: number;\r\n\r\n /**propriedade que indica a quantidade de bobinas do carregamento */\r\n qtdCoils: number;\r\n\r\n /**propriedade que indica o status do carregamento */\r\n status?: string | null;\r\n\r\n handleNavigation: () => void;\r\n}\r\n\r\n/**\r\n * EXPORTS\r\n */\r\nexport { ICardLoading };\r\n"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
2
|
+
/* eslint-disable no-undef */
|
|
3
|
+
/**
|
|
4
|
+
* IMPORTS
|
|
5
|
+
*/
|
|
6
|
+
import React, { forwardRef } from "react";
|
|
7
|
+
import { TouchableOpacity, Text, View, Linking } from "react-native";
|
|
8
|
+
|
|
9
|
+
// components
|
|
10
|
+
import Box from "../box";
|
|
11
|
+
import { Typography } from "../typography";
|
|
12
|
+
|
|
13
|
+
// typings
|
|
14
|
+
|
|
15
|
+
import { asBaseComponent } from "../../@types/as-base-component";
|
|
16
|
+
|
|
17
|
+
// styles
|
|
18
|
+
import { styles } from "./styles";
|
|
19
|
+
import { theme } from "../../styles/theme/theme";
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Componente DocumentCargaInfo para interação do usuário com UI.
|
|
23
|
+
*/
|
|
24
|
+
const DocumentCargaInfo = /*#__PURE__*/forwardRef((props, ref) => {
|
|
25
|
+
const {
|
|
26
|
+
title,
|
|
27
|
+
numberDocument,
|
|
28
|
+
linkDocument,
|
|
29
|
+
isAlert,
|
|
30
|
+
errorMessage,
|
|
31
|
+
...rest
|
|
32
|
+
} = props;
|
|
33
|
+
const handleOpenPdf = async url => {
|
|
34
|
+
try {
|
|
35
|
+
await Linking.openURL(url);
|
|
36
|
+
} catch (error) {
|
|
37
|
+
console.log("Erro ao abrir PDF", error);
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
return /*#__PURE__*/React.createElement(Box, _extends({
|
|
41
|
+
ref: ref,
|
|
42
|
+
style: styles.container
|
|
43
|
+
}, rest), /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Box, {
|
|
44
|
+
flexStyle: {
|
|
45
|
+
flexDirection: "row",
|
|
46
|
+
alignItems: "center"
|
|
47
|
+
}
|
|
48
|
+
}, /*#__PURE__*/React.createElement(Typography, {
|
|
49
|
+
text: title !== null && title !== void 0 ? title : "Selecione o Apolo disponível",
|
|
50
|
+
size: theme.fontSizes.sm,
|
|
51
|
+
fontFamily: theme.fonts.inter_regular_400,
|
|
52
|
+
color: theme.colors.black[100],
|
|
53
|
+
marginBottom: isAlert ? 0 : theme.margins.md
|
|
54
|
+
}), /*#__PURE__*/React.createElement(Text, {
|
|
55
|
+
style: [styles.textOption, {
|
|
56
|
+
marginBottom: isAlert ? 0 : theme.margins.md,
|
|
57
|
+
fontWeight: "bold"
|
|
58
|
+
}]
|
|
59
|
+
}, "#", numberDocument)), isAlert && /*#__PURE__*/React.createElement(View, {
|
|
60
|
+
style: {
|
|
61
|
+
flexDirection: "row",
|
|
62
|
+
alignItems: "flex-start",
|
|
63
|
+
justifyContent: "flex-start",
|
|
64
|
+
marginBottom: 16
|
|
65
|
+
}
|
|
66
|
+
}, /*#__PURE__*/React.createElement(Typography, {
|
|
67
|
+
text: "Aten\xE7\xE3o:",
|
|
68
|
+
size: theme.fontSizes.sm,
|
|
69
|
+
fontFamily: theme.fonts.inter_bold,
|
|
70
|
+
color: theme.colors.black[100]
|
|
71
|
+
}), /*#__PURE__*/React.createElement(Text, {
|
|
72
|
+
style: [styles.textOption, {
|
|
73
|
+
width: 250,
|
|
74
|
+
color: theme.colors.red[900],
|
|
75
|
+
lineHeight: 20
|
|
76
|
+
}]
|
|
77
|
+
}, errorMessage !== null && errorMessage !== void 0 ? errorMessage : "N/A")), /*#__PURE__*/React.createElement(TouchableOpacity, {
|
|
78
|
+
style: [styles.button, {
|
|
79
|
+
backgroundColor: isAlert ? "#8E949A" : theme.colors.blue[500]
|
|
80
|
+
}],
|
|
81
|
+
activeOpacity: 0.7,
|
|
82
|
+
disabled: isAlert,
|
|
83
|
+
onPress: () => handleOpenPdf(linkDocument)
|
|
84
|
+
}, /*#__PURE__*/React.createElement(Typography, {
|
|
85
|
+
text: "Abrir documento",
|
|
86
|
+
color: theme.colors.neutral[25],
|
|
87
|
+
fontFamily: theme.fonts.inter_bold,
|
|
88
|
+
size: 16
|
|
89
|
+
}))));
|
|
90
|
+
});
|
|
91
|
+
DocumentCargaInfo.displayName = "DocumentCargaInfo";
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* EXPORTS
|
|
95
|
+
*/
|
|
96
|
+
export default asBaseComponent(DocumentCargaInfo);
|
|
97
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","forwardRef","TouchableOpacity","Text","View","Linking","Box","Typography","asBaseComponent","styles","theme","DocumentCargaInfo","props","ref","title","numberDocument","linkDocument","isAlert","errorMessage","rest","handleOpenPdf","url","openURL","error","console","log","createElement","_extends","style","container","Fragment","flexStyle","flexDirection","alignItems","text","size","fontSizes","sm","fontFamily","fonts","inter_regular_400","color","colors","black","marginBottom","margins","md","textOption","fontWeight","justifyContent","inter_bold","width","red","lineHeight","button","backgroundColor","blue","activeOpacity","disabled","onPress","neutral","displayName"],"sources":["index.tsx"],"sourcesContent":["/* eslint-disable no-undef */\n/**\n * IMPORTS\n */\nimport React, { forwardRef } from \"react\";\nimport {\n TouchableOpacity,\n Text,\n View,\n Linking,\n} from \"react-native\";\n\n// components\nimport Box from \"../box\";\nimport { Typography } from \"../typography\";\n\n// typings\nimport { IDocumentCargaInfo } from \"./interface\";\nimport { asBaseComponent } from \"../../@types/as-base-component\";\n\n// styles\nimport { styles } from \"./styles\";\nimport { theme } from \"../../styles/theme/theme\";\n\n/**\n * Componente DocumentCargaInfo para interação do usuário com UI.\n */\nconst DocumentCargaInfo = forwardRef<View, IDocumentCargaInfo>(\n (props, ref): React.ReactElement => {\n const {\n title,\n numberDocument,\n linkDocument,\n isAlert,\n errorMessage,\n ...rest\n } = props;\n\n const handleOpenPdf = async (url: string): Promise<void> => {\n try {\n await Linking.openURL(url);\n } catch (error) {\n console.log(\"Erro ao abrir PDF\", error);\n }\n };\n\n return (\n <Box ref={ref} style={styles.container} {...rest}>\n <>\n {/* Título / Documento */}\n <Box flexStyle={{ flexDirection: \"row\", alignItems: \"center\" }}>\n <Typography\n text={title ?? \"Selecione o Apolo disponível\"}\n size={theme.fontSizes.sm}\n fontFamily={theme.fonts.inter_regular_400}\n color={theme.colors.black[100]}\n marginBottom={isAlert ? 0 : theme.margins.md}\n />\n\n <Text\n style={[\n styles.textOption,\n {\n marginBottom: isAlert ? 0 : theme.margins.md,\n fontWeight: \"bold\",\n },\n ]}\n >\n #{numberDocument}\n </Text>\n </Box>\n\n {/* Alerta */}\n {isAlert && (\n <View\n style={{\n flexDirection: \"row\",\n alignItems: \"flex-start\",\n justifyContent: \"flex-start\",\n marginBottom: 16,\n }}\n >\n <Typography\n text=\"Atenção:\"\n size={theme.fontSizes.sm}\n fontFamily={theme.fonts.inter_bold}\n color={theme.colors.black[100]}\n />\n\n <Text\n style={[\n styles.textOption,\n {\n width: 250,\n color: theme.colors.red[900],\n lineHeight: 20,\n },\n ]}\n >\n {errorMessage ?? \"N/A\"}\n </Text>\n </View>\n )}\n\n {/* Botão */}\n <TouchableOpacity\n style={[\n styles.button,\n {\n backgroundColor: isAlert\n ? \"#8E949A\"\n : theme.colors.blue[500],\n },\n ]}\n activeOpacity={0.7}\n disabled={isAlert}\n onPress={() => handleOpenPdf(linkDocument!)}\n >\n <Typography\n text=\"Abrir documento\"\n color={theme.colors.neutral[25]}\n fontFamily={theme.fonts.inter_bold}\n size={16}\n />\n </TouchableOpacity>\n </>\n </Box>\n );\n }\n);\n\nDocumentCargaInfo.displayName = \"DocumentCargaInfo\";\n\n/**\n * EXPORTS\n */\nexport default asBaseComponent(DocumentCargaInfo);\n"],"mappings":";AAAA;AACA;AACA;AACA;AACA,OAAOA,KAAK,IAAIC,UAAU,QAAQ,OAAO;AACzC,SACEC,gBAAgB,EAChBC,IAAI,EACJC,IAAI,EACJC,OAAO,QACF,cAAc;;AAErB;AACA,OAAOC,GAAG,MAAM,QAAQ;AACxB,SAASC,UAAU,QAAQ,eAAe;;AAE1C;;AAEA,SAASC,eAAe,QAAQ,gCAAgC;;AAEhE;AACA,SAASC,MAAM,QAAQ,UAAU;AACjC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AA0B,aAAA,CAACnB,UAAU;IACT2B,IAAI,EAAC,iBAAiB;IACtBO,KAAK,EAAE/B,KAAK,CAACgC,MAAM,CAACkB,OAAO,CAAC,EAAE,CAAE;IAChCtB,UAAU,EAAE5B,KAAK,CAAC6B,KAAK,CAACW,UAAW;IACnCf,IAAI,EAAE;EAAG,CACV,CACe,CAClB,CACC,CAAC;AAEV,CACF,CAAC;AAEDxB,iBAAiB,CAACkD,WAAW,GAAG,mBAAmB;;AAEnD;AACA;AACA;AACA,eAAerD,eAAe,CAACG,iBAAiB,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sources":["interface.ts"],"sourcesContent":["/**\n * IMPORTS\n */\n\n\ntype IDocumentCargaInfo = {\n isAlert: boolean;\n title: string | undefined;\n numberDocument: string;\n errorMessage?: string | null;\n linkDocument?: string | null;\n handleToggle: () => void;\n}\n\n\n/**\n * EXPORT\n */\nexport type { IDocumentCargaInfo };\n"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* IMPORTS
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { StyleSheet } from "react-native";
|
|
6
|
+
|
|
7
|
+
// theme
|
|
8
|
+
import { theme } from "../../styles/theme/theme";
|
|
9
|
+
|
|
10
|
+
// styles
|
|
11
|
+
|
|
12
|
+
const styles = StyleSheet.create({
|
|
13
|
+
container: {
|
|
14
|
+
width: "100%",
|
|
15
|
+
padding: theme.paddings.sm,
|
|
16
|
+
backgroundColor: "#EAEAEA",
|
|
17
|
+
borderRadius: 12
|
|
18
|
+
},
|
|
19
|
+
header: {
|
|
20
|
+
flexDirection: "row",
|
|
21
|
+
alignItems: "center",
|
|
22
|
+
justifyContent: "space-between",
|
|
23
|
+
marginBottom: theme.margins.md
|
|
24
|
+
},
|
|
25
|
+
left: {
|
|
26
|
+
flexDirection: "row",
|
|
27
|
+
alignItems: "center"
|
|
28
|
+
},
|
|
29
|
+
alert: {
|
|
30
|
+
color: "#D32F2F",
|
|
31
|
+
marginTop: 8,
|
|
32
|
+
marginBottom: 12,
|
|
33
|
+
fontSize: 13
|
|
34
|
+
},
|
|
35
|
+
button: {
|
|
36
|
+
width: "100%",
|
|
37
|
+
height: 45,
|
|
38
|
+
backgroundColor: "#8E949A",
|
|
39
|
+
borderRadius: 8,
|
|
40
|
+
alignItems: "center",
|
|
41
|
+
justifyContent: "center"
|
|
42
|
+
},
|
|
43
|
+
arrow: {
|
|
44
|
+
width: 20,
|
|
45
|
+
height: 20
|
|
46
|
+
},
|
|
47
|
+
textOption: {
|
|
48
|
+
color: theme.colors.black[25],
|
|
49
|
+
fontFamily: theme.fonts.inter_regular_400,
|
|
50
|
+
fontSize: 12,
|
|
51
|
+
marginLeft: 8,
|
|
52
|
+
marginTop: 2
|
|
53
|
+
}
|
|
54
|
+
});
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* EXPORTS
|
|
58
|
+
*/
|
|
59
|
+
export { styles };
|
|
60
|
+
//# sourceMappingURL=styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["StyleSheet","theme","styles","create","container","width","padding","paddings","sm","backgroundColor","borderRadius","header","flexDirection","alignItems","justifyContent","marginBottom","margins","md","left","alert","color","marginTop","fontSize","button","height","arrow","textOption","colors","black","fontFamily","fonts","inter_regular_400","marginLeft"],"sources":["styles.ts"],"sourcesContent":["/**\n * IMPORTS\n */\n\nimport { StyleSheet } from \"react-native\";\n\n// theme\nimport { theme } from \"../../styles/theme/theme\";\n\n// styles\n\nconst styles = StyleSheet.create({\n container: {\n width: \"100%\",\n padding: theme.paddings.sm,\n backgroundColor: \"#EAEAEA\",\n borderRadius: 12,\n },\n header: {\n flexDirection: \"row\",\n alignItems: \"center\",\n justifyContent: \"space-between\",\n marginBottom: theme.margins.md,\n },\n\n left: {\n flexDirection: \"row\",\n alignItems: \"center\",\n },\n\n alert: {\n color: \"#D32F2F\",\n marginTop: 8,\n marginBottom: 12,\n fontSize: 13,\n },\n\n button: {\n width: \"100%\",\n height: 45,\n backgroundColor: \"#8E949A\",\n borderRadius: 8,\n alignItems: \"center\",\n justifyContent: \"center\",\n },\n arrow: {\n width: 20,\n height: 20,\n },\n textOption: {\n color: theme.colors.black[25],\n fontFamily: theme.fonts.inter_regular_400,\n fontSize: 12,\n marginLeft: 8,\n marginTop: 2,\n }\n\n})\n\n\n\n/**\n * EXPORTS\n */\nexport { styles }\n"],"mappings":"AAAA;AACA;AACA;;AAEA,SAASA,UAAU,QAAQ,cAAc;;AAEzC;AACA,SAASC,KAAK,QAAQ,0BAA0B;;AAEhD;;AAEA,MAAMC,MAAM,GAAGF,UAAU,CAACG,MAAM,CAAC;EAC/BC,SAAS,EAAE;IACTC,KAAK,EAAE,MAAM;IACbC,OAAO,EAAEL,KAAK,CAACM,QAAQ,CAACC,EAAE;IAC1BC,eAAe,EAAE,SAAS;IAC1BC,YAAY,EAAE;EAChB,CAAC;EACDC,MAAM,EAAE;IACNC,aAAa,EAAE,KAAK;IACpBC,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE,eAAe;IAC/BC,YAAY,EAAEd,KAAK,CAACe,OAAO,CAACC;EAC9B,CAAC;EAEDC,IAAI,EAAE;IACJN,aAAa,EAAE,KAAK;IACpBC,UAAU,EAAE;EACd,CAAC;EAEDM,KAAK,EAAE;IACLC,KAAK,EAAE,SAAS;IAChBC,SAAS,EAAE,CAAC;IACZN,YAAY,EAAE,EAAE;IAChBO,QAAQ,EAAE;EACZ,CAAC;EAEDC,MAAM,EAAE;IACNlB,KAAK,EAAE,MAAM;IACbmB,MAAM,EAAE,EAAE;IACVf,eAAe,EAAE,SAAS;IAC1BC,YAAY,EAAE,CAAC;IACfG,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE;EAClB,CAAC;EACDW,KAAK,EAAE;IACLpB,KAAK,EAAE,EAAE;IACTmB,MAAM,EAAE;EACV,CAAC;EACDE,UAAU,EAAE;IACVN,KAAK,EAAEnB,KAAK,CAAC0B,MAAM,CAACC,KAAK,CAAC,EAAE,CAAC;IAC7BC,UAAU,EAAE5B,KAAK,CAAC6B,KAAK,CAACC,iBAAiB;IACzCT,QAAQ,EAAE,EAAE;IACZU,UAAU,EAAE,CAAC;IACbX,SAAS,EAAE;EACb;AAEF,CAAC,CAAC;;AAIF;AACA;AACA;AACA,SAASnB,MAAM","ignoreList":[]}
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
2
|
+
/**
|
|
3
|
+
* IMPORTS
|
|
4
|
+
*/
|
|
5
|
+
import React, { forwardRef, useState } from "react";
|
|
6
|
+
import { TouchableOpacity, LayoutAnimation, Text, View, Linking } from "react-native";
|
|
7
|
+
|
|
8
|
+
// components
|
|
9
|
+
import Box from "../box";
|
|
10
|
+
import { Typography } from "../typography";
|
|
11
|
+
|
|
12
|
+
// commons / icons
|
|
13
|
+
import { SvgIconUserCircle } from "../../common/icons-svg/user-circle";
|
|
14
|
+
import { SvgIconArrowOpen } from "../../common/icons-svg/arrow-down";
|
|
15
|
+
|
|
16
|
+
// typings
|
|
17
|
+
|
|
18
|
+
import { asBaseComponent } from "../../@types/as-base-component";
|
|
19
|
+
|
|
20
|
+
// styles
|
|
21
|
+
import { styles } from "./style";
|
|
22
|
+
import { theme } from "../../styles/theme/theme";
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Componente DriverJourneyInfo para interação do usuário.
|
|
26
|
+
*/
|
|
27
|
+
const DriverJourneyInfo = /*#__PURE__*/forwardRef((props, ref) => {
|
|
28
|
+
var _motorista$nome, _motorista$contato2, _motorista$posicao, _motorista$previsao_c, _motorista$previsao_c2;
|
|
29
|
+
const {
|
|
30
|
+
backgroundColor,
|
|
31
|
+
motorista,
|
|
32
|
+
...rest
|
|
33
|
+
} = props;
|
|
34
|
+
const [isExpanded, setIsExpanded] = useState(true);
|
|
35
|
+
const handleToggle = () => {
|
|
36
|
+
LayoutAnimation.configureNext(LayoutAnimation.Presets.easeInEaseOut);
|
|
37
|
+
setIsExpanded(prev => !prev);
|
|
38
|
+
};
|
|
39
|
+
const handleCallPhone = phone => {
|
|
40
|
+
const cleanNumber = phone.replace(/\D/g, "");
|
|
41
|
+
Linking.openURL(`tel:${cleanNumber}`);
|
|
42
|
+
};
|
|
43
|
+
return /*#__PURE__*/React.createElement(Box, _extends({
|
|
44
|
+
ref: ref,
|
|
45
|
+
style: styles.container(backgroundColor)
|
|
46
|
+
}, rest), /*#__PURE__*/React.createElement(TouchableOpacity, {
|
|
47
|
+
style: styles.header,
|
|
48
|
+
activeOpacity: 0.7,
|
|
49
|
+
onPress: handleToggle
|
|
50
|
+
}, /*#__PURE__*/React.createElement(SvgIconUserCircle, {
|
|
51
|
+
icon: "USER_CIRCLE",
|
|
52
|
+
color: "#393939",
|
|
53
|
+
size: 32
|
|
54
|
+
}), /*#__PURE__*/React.createElement(View, {
|
|
55
|
+
style: {
|
|
56
|
+
width: "76%"
|
|
57
|
+
}
|
|
58
|
+
}, /*#__PURE__*/React.createElement(Typography, {
|
|
59
|
+
text: "Informa\xE7\xF5es da Jornada do Motorista",
|
|
60
|
+
size: theme.fontSizes.lg,
|
|
61
|
+
fontFamily: theme.fonts.inter_bold,
|
|
62
|
+
color: theme.colors.black[25]
|
|
63
|
+
})), /*#__PURE__*/React.createElement(SvgIconArrowOpen, {
|
|
64
|
+
icon: "ARROW_DROP_DOWN",
|
|
65
|
+
color: theme.colors.black[25],
|
|
66
|
+
style: [styles.arrow, {
|
|
67
|
+
transform: [{
|
|
68
|
+
rotate: isExpanded ? "180deg" : "0deg"
|
|
69
|
+
}]
|
|
70
|
+
}]
|
|
71
|
+
})), isExpanded && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Box, {
|
|
72
|
+
flexStyle: {
|
|
73
|
+
flexDirection: "row",
|
|
74
|
+
alignItems: "center"
|
|
75
|
+
}
|
|
76
|
+
}, /*#__PURE__*/React.createElement(Typography, {
|
|
77
|
+
text: "Nome",
|
|
78
|
+
size: theme.fontSizes.sm,
|
|
79
|
+
fontFamily: theme.fonts.inter_bold,
|
|
80
|
+
color: theme.colors.black[25]
|
|
81
|
+
}), /*#__PURE__*/React.createElement(Text, {
|
|
82
|
+
style: styles.textOption
|
|
83
|
+
}, (_motorista$nome = motorista === null || motorista === void 0 ? void 0 : motorista.nome) !== null && _motorista$nome !== void 0 ? _motorista$nome : "N/A")), /*#__PURE__*/React.createElement(Box, {
|
|
84
|
+
flexStyle: {
|
|
85
|
+
flexDirection: "row",
|
|
86
|
+
alignItems: "center"
|
|
87
|
+
}
|
|
88
|
+
}, /*#__PURE__*/React.createElement(Typography, {
|
|
89
|
+
text: "Contato:",
|
|
90
|
+
size: theme.fontSizes.sm,
|
|
91
|
+
fontFamily: theme.fonts.inter_bold,
|
|
92
|
+
color: theme.colors.black[25],
|
|
93
|
+
style: styles.textSpacing
|
|
94
|
+
}), /*#__PURE__*/React.createElement(TouchableOpacity, {
|
|
95
|
+
activeOpacity: 0.6,
|
|
96
|
+
onPress: () => {
|
|
97
|
+
var _motorista$contato;
|
|
98
|
+
return handleCallPhone((_motorista$contato = motorista === null || motorista === void 0 ? void 0 : motorista.contato) !== null && _motorista$contato !== void 0 ? _motorista$contato : "");
|
|
99
|
+
}
|
|
100
|
+
}, /*#__PURE__*/React.createElement(Text, {
|
|
101
|
+
style: [styles.textOption, {
|
|
102
|
+
color: "#0088FF",
|
|
103
|
+
fontWeight: "bold",
|
|
104
|
+
textDecorationLine: "underline"
|
|
105
|
+
}]
|
|
106
|
+
}, (_motorista$contato2 = motorista === null || motorista === void 0 ? void 0 : motorista.contato) !== null && _motorista$contato2 !== void 0 ? _motorista$contato2 : "N/A"))), /*#__PURE__*/React.createElement(Box, {
|
|
107
|
+
flexStyle: {
|
|
108
|
+
flexDirection: "row",
|
|
109
|
+
alignItems: "center",
|
|
110
|
+
flex: "wrap"
|
|
111
|
+
}
|
|
112
|
+
}, /*#__PURE__*/React.createElement(Typography, {
|
|
113
|
+
text: "Posi\xE7\xE3o atual:",
|
|
114
|
+
size: theme.fontSizes.sm,
|
|
115
|
+
fontFamily: theme.fonts.inter_bold,
|
|
116
|
+
color: theme.colors.black[25],
|
|
117
|
+
style: styles.textSpacing
|
|
118
|
+
}), /*#__PURE__*/React.createElement(Text, {
|
|
119
|
+
style: styles.textOption
|
|
120
|
+
}, (_motorista$posicao = motorista === null || motorista === void 0 ? void 0 : motorista.posicao) !== null && _motorista$posicao !== void 0 ? _motorista$posicao : "N/A")), /*#__PURE__*/React.createElement(Box, {
|
|
121
|
+
flexStyle: {
|
|
122
|
+
flexDirection: "row",
|
|
123
|
+
alignItems: "center"
|
|
124
|
+
}
|
|
125
|
+
}, /*#__PURE__*/React.createElement(Typography, {
|
|
126
|
+
text: "Data previs\xE3o chegada:",
|
|
127
|
+
size: theme.fontSizes.sm,
|
|
128
|
+
fontFamily: theme.fonts.inter_bold,
|
|
129
|
+
color: theme.colors.black[25]
|
|
130
|
+
}), /*#__PURE__*/React.createElement(Text, {
|
|
131
|
+
style: styles.textOption
|
|
132
|
+
}, (_motorista$previsao_c = motorista === null || motorista === void 0 || (_motorista$previsao_c2 = motorista.previsao_chegada) === null || _motorista$previsao_c2 === void 0 ? void 0 : _motorista$previsao_c2.replace(" ", " ás ")) !== null && _motorista$previsao_c !== void 0 ? _motorista$previsao_c : "N/A"))));
|
|
133
|
+
});
|
|
134
|
+
DriverJourneyInfo.displayName = "DriverJourneyInfo";
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* EXPORTS
|
|
138
|
+
*/
|
|
139
|
+
export default asBaseComponent(DriverJourneyInfo);
|
|
140
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","forwardRef","useState","TouchableOpacity","LayoutAnimation","Text","View","Linking","Box","Typography","SvgIconUserCircle","SvgIconArrowOpen","asBaseComponent","styles","theme","DriverJourneyInfo","props","ref","_motorista$nome","_motorista$contato2","_motorista$posicao","_motorista$previsao_c","_motorista$previsao_c2","backgroundColor","motorista","rest","isExpanded","setIsExpanded","handleToggle","configureNext","Presets","easeInEaseOut","prev","handleCallPhone","phone","cleanNumber","replace","openURL","createElement","_extends","style","container","header","activeOpacity","onPress","icon","color","size","width","text","fontSizes","lg","fontFamily","fonts","inter_bold","colors","black","arrow","transform","rotate","Fragment","flexStyle","flexDirection","alignItems","sm","textOption","nome","textSpacing","_motorista$contato","contato","fontWeight","textDecorationLine","flex","posicao","previsao_chegada","displayName"],"sources":["index.tsx"],"sourcesContent":["/**\n * IMPORTS\n */\nimport React, { forwardRef, useState } from \"react\";\nimport {\n TouchableOpacity,\n LayoutAnimation,\n Text,\n View,\n Linking,\n} from \"react-native\";\n\n// components\nimport Box from \"../box\";\nimport { Typography } from \"../typography\";\n\n// commons / icons\nimport { SvgIconUserCircle } from \"../../common/icons-svg/user-circle\";\nimport { SvgIconArrowOpen } from \"../../common/icons-svg/arrow-down\";\n\n// typings\nimport { IDriverJourneyInfo } from \"./interface\";\nimport { asBaseComponent } from \"../../@types/as-base-component\";\n\n// styles\nimport { styles } from \"./style\";\nimport { theme } from \"../../styles/theme/theme\";\n\n/**\n * Componente DriverJourneyInfo para interação do usuário.\n */\nconst DriverJourneyInfo = forwardRef<View, IDriverJourneyInfo>(\n (props, ref): React.ReactElement => {\n const { backgroundColor, motorista, ...rest } = props;\n\n const [isExpanded, setIsExpanded] = useState<boolean>(true);\n\n const handleToggle = (): void => {\n LayoutAnimation.configureNext(\n LayoutAnimation.Presets.easeInEaseOut\n );\n setIsExpanded((prev) => !prev);\n };\n\n const handleCallPhone = (phone: string): void => {\n const cleanNumber = phone.replace(/\\D/g, \"\");\n Linking.openURL(`tel:${cleanNumber}`);\n };\n\n return (\n <Box\n ref={ref}\n style={styles.container(backgroundColor)}\n {...rest}\n >\n {/* HEADER */}\n <TouchableOpacity\n style={styles.header}\n activeOpacity={0.7}\n onPress={handleToggle}\n >\n <SvgIconUserCircle\n icon=\"USER_CIRCLE\"\n color=\"#393939\"\n size={32}\n />\n\n <View style={{ width: \"76%\" }}>\n <Typography\n text=\"Informações da Jornada do Motorista\"\n size={theme.fontSizes.lg}\n fontFamily={theme.fonts.inter_bold}\n color={theme.colors.black[25]}\n />\n </View>\n\n <SvgIconArrowOpen\n icon=\"ARROW_DROP_DOWN\"\n color={theme.colors.black[25]}\n style={[\n styles.arrow,\n {\n transform: [\n { rotate: isExpanded ? \"180deg\" : \"0deg\" },\n ],\n },\n ]}\n />\n </TouchableOpacity>\n\n {/* CONTENT */}\n {isExpanded && (\n <>\n {/* Nome motorista */}\n <Box flexStyle={{ flexDirection: \"row\", alignItems: \"center\" }}>\n <Typography\n text=\"Nome\"\n size={theme.fontSizes.sm}\n fontFamily={theme.fonts.inter_bold}\n color={theme.colors.black[25]}\n />\n <Text style={styles.textOption}>\n {motorista?.nome ?? \"N/A\"}\n </Text>\n </Box>\n\n {/* Contato motorista */}\n <Box flexStyle={{ flexDirection: \"row\", alignItems: \"center\" }}>\n <Typography\n text=\"Contato:\"\n size={theme.fontSizes.sm}\n fontFamily={theme.fonts.inter_bold}\n color={theme.colors.black[25]}\n style={styles.textSpacing}\n />\n\n <TouchableOpacity\n activeOpacity={0.6}\n onPress={() =>\n handleCallPhone(motorista?.contato ?? \"\")\n }\n >\n <Text\n style={[\n styles.textOption,\n {\n color: \"#0088FF\",\n fontWeight: \"bold\",\n textDecorationLine: \"underline\",\n },\n ]}\n >\n {motorista?.contato ?? \"N/A\"}\n </Text>\n </TouchableOpacity>\n </Box>\n\n {/* Posição atual */}\n <Box\n flexStyle={{\n flexDirection: \"row\",\n alignItems: \"center\",\n flex: \"wrap\",\n }}\n >\n <Typography\n text=\"Posição atual:\"\n size={theme.fontSizes.sm}\n fontFamily={theme.fonts.inter_bold}\n color={theme.colors.black[25]}\n style={styles.textSpacing}\n />\n <Text style={styles.textOption}>\n {motorista?.posicao ?? \"N/A\"}\n </Text>\n </Box>\n\n {/* Previsão de chegada */}\n <Box flexStyle={{ flexDirection: \"row\", alignItems: \"center\" }}>\n <Typography\n text=\"Data previsão chegada:\"\n size={theme.fontSizes.sm}\n fontFamily={theme.fonts.inter_bold}\n color={theme.colors.black[25]}\n />\n <Text style={styles.textOption}>\n {motorista?.previsao_chegada?.replace(\n \" \",\n \" ás \"\n ) ?? \"N/A\"}\n </Text>\n </Box>\n </>\n )}\n </Box>\n );\n }\n);\n\nDriverJourneyInfo.displayName = \"DriverJourneyInfo\";\n\n/**\n * EXPORTS\n */\nexport default asBaseComponent(DriverJourneyInfo);\n"],"mappings":";AAAA;AACA;AACA;AACA,OAAOA,KAAK,IAAIC,UAAU,EAAEC,QAAQ,QAAQ,OAAO;AACnD,SACEC,gBAAgB,EAChBC,eAAe,EACfC,IAAI,EACJC,IAAI,EACJC,OAAO,QACF,cAAc;;AAErB;AACA,OAAOC,GAAG,MAAM,QAAQ;AACxB,SAASC,UAAU,QAAQ,eAAe;;AAE1C;AACA,SAASC,iBAAiB,QAAQ,oCAAoC;AACtE,SAASC,gBAAgB,QAAQ,mCAAmC;;AAEpE;;AAEA,SAASC,eAAe,QAAQ,gCAAgC;;AAEhE;AACA,SAASC,MAAM,QAAQ,SAAS;AAChC,SAASC,KAAK,QAAQ,0BAA0B;;AAEhD;AACA;AACA;AACA,MAAMC,iBAAiB,gBAAGd,UAAU,CAClC,CAACe,KAAK,EAAEC,GAAG,KAAyB;EAAA,IAAAC,eAAA,EAAAC,mBAAA,EAAAC,kBAAA,EAAAC,qBAAA,EAAAC,sBAAA;EAClC,MAAM;IAAEC,eAAe;IAAEC,SAAS;IAAE,GAAGC;EAAK,CAAC,GAAGT,KAAK;EAErD,MAAM,CAACU,UAAU,EAAEC,aAAa,CAAC,G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oD;EAAW,IAAA7C,kBAAA,GAC5BI,SAAS,aAATA,SAAS,uBAATA,SAAS,CAAEiD,OAAO,cAAArD,kBAAA,cAAAA,kBAAA,GAAI,KACnB,CACH,CAAC,eAGNpB,KAAA,CAAAsC,aAAA,CAAC9B,GAAG;IAACqD,SAAS,EAAE;MAAEC,aAAa,EAAE,KAAK;MAAEC,UAAU,EAAE;IAAS;EAAE,gBAC7D/D,KAAA,CAAAsC,aAAA,CAAC7B,UAAU;IACTwC,IAAI,EAAC,2BAAwB;IAC7BF,IAAI,EAAEjC,KAAK,CAACoC,SAAS,CAACc,EAAG;IACzBZ,UAAU,EAAEtC,KAAK,CAACuC,KAAK,CAACC,UAAW;IACnCR,KAAK,EAAEhC,KAAK,CAACyC,MAAM,CAACC,KAAK,CAAC,EAAE;EAAE,CAC/B,CAAC,eACFxD,KAAA,CAAAsC,aAAA,CAACjC,IAAI;IAACmC,KAAK,EAAE3B,MAAM,CAACoD;EAAW,IAAA5C,qBAAA,GAC5BG,SAAS,aAATA,SAAS,gBAAAF,sBAAA,GAATE,SAAS,CAAEkD,gBAAgB,cAAApD,sBAAA,uBAA3BA,sBAAA,CAA6Bc,OAAO,CACnC,GAAG,EACH,MACF,CAAC,cAAAf,qBAAA,cAAAA,qBAAA,GAAI,KACD,CACH,CACL,CAED,CAAC;AAEV,CACF,CAAC;AAEDN,iBAAiB,CAAC4D,WAAW,GAAG,mBAAmB;;AAEnD;AACA;AACA;AACA,eAAe/D,eAAe,CAACG,iBAAiB,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sources":["interface.ts"],"sourcesContent":["/**\n * IMPORTS\n */\n\nimport { TextStyle, ViewStyle } from \"react-native\";\n\n/**\n * STYLES\n */\ninterface IStyles {\n container: (bg?: string) => ViewStyle;\n header: ViewStyle;\n arrow: ViewStyle;\n textSpacing: TextStyle;\n buttonText: TextStyle;\n}\n\n\ninterface IDriverJourneyInfo {\n motorista: {\n nome: string;\n contato: string;\n posicao: string;\n previsao_chegada: string;\n\n }\n onPress: () => void;\n backgroundColor?: string;\n\n}\n\n\n/**\n * EXPORT\n */\nexport type { IDriverJourneyInfo, IStyles };\n"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* IMPORTS
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { StyleSheet } from "react-native";
|
|
6
|
+
|
|
7
|
+
// typings
|
|
8
|
+
|
|
9
|
+
// styles
|
|
10
|
+
import { theme } from "../../styles/theme/theme";
|
|
11
|
+
const styles = StyleSheet.create({
|
|
12
|
+
container: bg => ({
|
|
13
|
+
width: "100%",
|
|
14
|
+
padding: theme.paddings.sm,
|
|
15
|
+
backgroundColor: bg !== null && bg !== void 0 ? bg : theme.colors.gray[700],
|
|
16
|
+
borderRadius: 16
|
|
17
|
+
}),
|
|
18
|
+
header: {
|
|
19
|
+
flexDirection: "row",
|
|
20
|
+
alignItems: "center",
|
|
21
|
+
justifyContent: "space-between",
|
|
22
|
+
flexWrap: "wrap",
|
|
23
|
+
marginBottom: theme.margins.md
|
|
24
|
+
},
|
|
25
|
+
arrow: {
|
|
26
|
+
width: 20,
|
|
27
|
+
height: 20
|
|
28
|
+
},
|
|
29
|
+
textSpacing: {
|
|
30
|
+
marginTop: theme.margins["2xs"],
|
|
31
|
+
marginBottom: theme.margins["2xs"]
|
|
32
|
+
},
|
|
33
|
+
buttonText: {
|
|
34
|
+
color: theme.colors.neutral[25],
|
|
35
|
+
fontFamily: theme.fonts.inter_medium_500,
|
|
36
|
+
fontSize: theme.fontSizes.md
|
|
37
|
+
},
|
|
38
|
+
textOption: {
|
|
39
|
+
color: theme.colors.black[25],
|
|
40
|
+
fontFamily: theme.fonts.inter_regular_400,
|
|
41
|
+
fontSize: 12,
|
|
42
|
+
marginLeft: 4
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* EXPORTS
|
|
48
|
+
*/
|
|
49
|
+
export { styles };
|
|
50
|
+
//# sourceMappingURL=style.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["StyleSheet","theme","styles","create","container","bg","width","padding","paddings","sm","backgroundColor","colors","gray","borderRadius","header","flexDirection","alignItems","justifyContent","flexWrap","marginBottom","margins","md","arrow","height","textSpacing","marginTop","buttonText","color","neutral","fontFamily","fonts","inter_medium_500","fontSize","fontSizes","textOption","black","inter_regular_400","marginLeft"],"sources":["style.ts"],"sourcesContent":["/**\n * IMPORTS\n */\n\nimport { StyleSheet } from \"react-native\";\n\n// typings\nimport { IStyles } from \"./interface\";\n\n// styles\nimport { theme } from \"../../styles/theme/theme\";\n\nconst styles = StyleSheet.create<IStyles | any>({\n container: (bg?: string) => ({\n width: \"100%\",\n padding: theme.paddings.sm,\n backgroundColor: bg ?? theme.colors.gray[700],\n borderRadius: 16,\n }),\n\n header: {\n flexDirection: \"row\",\n alignItems: \"center\",\n justifyContent: \"space-between\",\n flexWrap: \"wrap\",\n marginBottom: theme.margins.md,\n },\n\n arrow: {\n width: 20,\n height: 20,\n },\n\n textSpacing: {\n marginTop: theme.margins[\"2xs\"],\n marginBottom: theme.margins[\"2xs\"],\n },\n\n buttonText: {\n color: theme.colors.neutral[25],\n fontFamily: theme.fonts.inter_medium_500,\n fontSize: theme.fontSizes.md,\n },\n textOption: {\n color: theme.colors.black[25],\n fontFamily: theme.fonts.inter_regular_400,\n fontSize: 12,\n marginLeft: 4,\n }\n});\n\n/**\n * EXPORTS\n */\nexport { styles}\n"],"mappings":"AAAA;AACA;AACA;;AAEA,SAASA,UAAU,QAAQ,cAAc;;AAEzC;;AAGA;AACA,SAASC,KAAK,QAAQ,0BAA0B;AAEhD,MAAMC,MAAM,GAAGF,UAAU,CAACG,MAAM,CAAgB;EAC9CC,SAAS,EAAGC,EAAW,KAAM;IAC3BC,KAAK,EAAE,MAAM;IACbC,OAAO,EAAEN,KAAK,CAACO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ileMenuOption } from "./components/profile-menu-option";
|
|
|
36
36
|
export { ModalActivities } from "./components/modals/modal-activities";
|
|
37
37
|
export { HistoryActivitiesCard } from "./components/history-activities-card";
|
|
38
38
|
export { ModalChangeActivity } from "./components/modals/modal-change-activity";
|
|
39
|
+
export { ActiveLoadingsSummary } from "./components/active-loadings-summary";
|
|
39
40
|
export { default as ModalActivityReason } from "./components/modals/modal-activity-reason";
|
|
40
41
|
export { default as InputTextCounter } from "./components/input-text-counter";
|
|
41
42
|
export { default as ModalCreteActivitie } from "./components/modal-create-activitie";
|
|
42
43
|
export { default as ModalJourneyRectification } from "./components/modal-journey-rectification";
|
|
43
44
|
export { default as ActivityTimeline } from "./components/activity-timeline";
|
|
45
|
+
export { default as CardAvailableLoad } from "./components/card-available-load";
|
|
46
|
+
export { default as CardDriverData } from "./components/card-driver-data";
|
|
47
|
+
export { default as DriverJourneyInfo } from "./components/driver-journey-info";
|
|
48
|
+
export { default as DocumentCargaInfo } from "./components/document-carga-info";
|
|
49
|
+
export { default as AlertCriticalLoad } from "./components/alert-critical-load";
|
|
44
50
|
|
|
45
51
|
// Utilities
|
|
46
52
|
export { multiply } from "./utils/mutiply";
|
package/lib/module/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["default","Box","Button","StepIndicator","Typography","Input","CapturePhoto","CardHours","SelectOption","Header","ScheduledJourneyIndicators","CardScheduledJourney","UserProfile","MenuItem","CardLoading","CardWorkSession","LoadingProgress","NoData","FilterJourney","Coil","FilterDateSelector","CardHistory","NotificationLoading","CheckBox","ImageCaptureWithRemove","LoadingDetails","AvatarProfile","HistoryDetails","ActivitiesDaily","ActivitiesProgress","ProfileMenuOption","ModalActivities","HistoryActivitiesCard","ModalChangeActivity","ModalActivityReason","InputTextCounter","ModalCreteActivitie","ModalJourneyRectification","ActivityTimeline","multiply","formatDate","getLastSevenDays","formHoursMinute","theme"],"sources":["index.ts"],"sourcesContent":["/**\
|
|
1
|
+
{"version":3,"names":["default","Box","Button","StepIndicator","Typography","Input","CapturePhoto","CardHours","SelectOption","Header","ScheduledJourneyIndicators","CardScheduledJourney","UserProfile","MenuItem","CardLoading","CardWorkSession","LoadingProgress","NoData","FilterJourney","Coil","FilterDateSelector","CardHistory","NotificationLoading","CheckBox","ImageCaptureWithRemove","LoadingDetails","AvatarProfile","HistoryDetails","ActivitiesDaily","ActivitiesProgress","ProfileMenuOption","ModalActivities","HistoryActivitiesCard","ModalChangeActivity","ActiveLoadingsSummary","ModalActivityReason","InputTextCounter","ModalCreteActivitie","ModalJourneyRectification","ActivityTimeline","CardAvailableLoad","CardDriverData","DriverJourneyInfo","DocumentCargaInfo","AlertCriticalLoad","multiply","formatDate","getLastSevenDays","formHoursMinute","theme"],"sources":["index.ts"],"sourcesContent":["/**\n * EXPORTS\n */\n\n// Components\nexport { default as Box } from \"./components/box\";\nexport { Button } from \"./components/button\";\nexport { default as StepIndicator } from \"./components/step-indicator\";\nexport { Typography } from \"./components/typography\";\nexport { Input } from \"./components/input\";\nexport { CapturePhoto } from \"./components/capture-photo\";\nexport { CardHours } from \"./components/card-hours\";\nexport { default as SelectOption } from \"./components/selects/select-option\";\nexport { Header } from \"./components/header-profile\";\nexport { ScheduledJourneyIndicators } from \"./components/scheduled-journey-indicators\";\nexport { CardScheduledJourney } from \"./components/card-scheduled-journey\";\nexport { UserProfile } from \"./components/user-profile\";\nexport { MenuItem } from \"./components/menu-item\";\nexport { CardLoading } from \"./components/card-loading\";\nexport { CardWorkSession } from \"./components/card-work-session\";\nexport { LoadingProgress } from \"./components/loading-progress\";\nexport { NoData } from \"./components/no-data\";\nexport { FilterJourney } from \"./components/filter-journey\";\nexport { Coil } from \"./components/coil\";\nexport { FilterDateSelector } from \"./components/filter-date-selector\";\nexport { CardHistory } from \"./components/card-history\";\nexport { NotificationLoading } from \"./components/notification-loading\";\nexport { CheckBox } from \"./components/check-box\";\nexport { ImageCaptureWithRemove } from \"./components/image-capture-with-remove\";\nexport { LoadingDetails } from \"./components/loading-details\";\nexport { AvatarProfile } from \"./components/avatar-profile\";\nexport { HistoryDetails } from \"./components/history-details\";\nexport { ActivitiesDaily } from \"./components/activities-daily\";\nexport { ActivitiesProgress } from \"./components/activities-progress\";\nexport { ProfileMenuOption } from \"./components/profile-menu-option\";\nexport { ModalActivities } from \"./components/modals/modal-activities\";\nexport { HistoryActivitiesCard } from \"./components/history-activities-card\";\nexport { ModalChangeActivity } from \"./components/modals/modal-change-activity\";\nexport { ActiveLoadingsSummary } from \"./components/active-loadings-summary\";\nexport { default as ModalActivityReason } from \"./components/modals/modal-activity-reason\";\nexport { default as InputTextCounter } from \"./components/input-text-counter\";\nexport { default as ModalCreteActivitie } from \"./components/modal-create-activitie\";\nexport { default as ModalJourneyRectification } from \"./components/modal-journey-rectification\";\nexport { default as ActivityTimeline } from \"./components/activity-timeline\";\nexport { default as CardAvailableLoad } from \"./components/card-available-load\";\nexport { default as CardDriverData } from \"./components/card-driver-data\";\nexport { default as DriverJourneyInfo } from \"./components/driver-journey-info\";\nexport { default as DocumentCargaInfo } from \"./components/document-carga-info\";\nexport { default as AlertCriticalLoad } from \"./components/alert-critical-load\";\n\n// Utilities\nexport { multiply } from \"./utils/mutiply\";\nexport { formatDate, getLastSevenDays, formHoursMinute } from \"./utils/format-data\";\n\n// Styles\nexport { theme } from \"./styles/theme/theme\";\n"],"mappings":"AAAA;AACA;AACA;;AAEA;AACA,SAASA,OAAO,IAAIC,GAAG,QAAQ,kBAAkB;AACjD,SAASC,MAAM,QAAQ,qBAAqB;AAC5C,SAASF,OAAO,IAAIG,aAAa,QAAQ,6BAA6B;AACtE,SAASC,UAAU,QAAQ,yBAAyB;AACpD,SAASC,KAAK,QAAQ,oBAAoB;AAC1C,SAASC,YAAY,QAAQ,4BAA4B;AACzD,SAASC,SAAS,QAAQ,yBAAyB;AACnD,SAASP,OAAO,IAAIQ,YAAY,QAAQ,oCAAoC;AAC5E,SAASC,MAAM,QAAQ,6BAA6B;AACpD,SAASC,0BAA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