react-native-exp-fig 0.1.22 → 0.1.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonjs/components/activities-daily/index.js +9 -9
- package/lib/commonjs/components/activities-daily/index.js.map +1 -1
- package/lib/commonjs/components/activities-progress/index.js +14 -14
- package/lib/commonjs/components/activities-progress/index.js.map +1 -1
- package/lib/commonjs/components/avatar-profile/index.js +4 -4
- package/lib/commonjs/components/avatar-profile/index.js.map +1 -1
- package/lib/commonjs/components/box/index.js +27 -22
- package/lib/commonjs/components/box/index.js.map +1 -1
- package/lib/commonjs/components/box/interface.d.js.map +1 -1
- package/lib/commonjs/components/box/styles.js.map +1 -1
- package/lib/commonjs/components/card-history/index.js +16 -16
- package/lib/commonjs/components/card-history/index.js.map +1 -1
- package/lib/commonjs/components/card-hours/index.js +3 -3
- package/lib/commonjs/components/card-hours/index.js.map +1 -1
- package/lib/commonjs/components/card-loading/index.js +13 -13
- package/lib/commonjs/components/card-loading/index.js.map +1 -1
- package/lib/commonjs/components/card-scheduled-journey/index.js +6 -6
- package/lib/commonjs/components/card-scheduled-journey/index.js.map +1 -1
- package/lib/commonjs/components/card-work-session/index.js +12 -12
- package/lib/commonjs/components/card-work-session/index.js.map +1 -1
- package/lib/commonjs/components/check-box/index.js +5 -5
- package/lib/commonjs/components/check-box/index.js.map +1 -1
- package/lib/commonjs/components/coil/index.js +5 -5
- package/lib/commonjs/components/coil/index.js.map +1 -1
- package/lib/commonjs/components/filter-date-selector/index.js +2 -2
- package/lib/commonjs/components/filter-date-selector/index.js.map +1 -1
- package/lib/commonjs/components/header-profile/index.js +8 -8
- package/lib/commonjs/components/header-profile/index.js.map +1 -1
- package/lib/commonjs/components/history-activities-card/index.js +14 -13
- package/lib/commonjs/components/history-activities-card/index.js.map +1 -1
- package/lib/commonjs/components/history-details/index.js +5 -5
- package/lib/commonjs/components/history-details/index.js.map +1 -1
- package/lib/commonjs/components/image-capture-with-remove/index.js +2 -2
- package/lib/commonjs/components/image-capture-with-remove/index.js.map +1 -1
- package/lib/commonjs/components/input/index.js +11 -11
- package/lib/commonjs/components/input/index.js.map +1 -1
- package/lib/commonjs/components/loading-details/index.js +10 -10
- package/lib/commonjs/components/loading-details/index.js.map +1 -1
- package/lib/commonjs/components/loading-progress/index.js +5 -5
- package/lib/commonjs/components/loading-progress/index.js.map +1 -1
- package/lib/commonjs/components/menu-item/index.js +3 -3
- package/lib/commonjs/components/menu-item/index.js.map +1 -1
- package/lib/commonjs/components/modal-activities/index.js +5 -5
- package/lib/commonjs/components/modal-activities/index.js.map +1 -1
- package/lib/commonjs/components/modal-change-activity/index.js +15 -14
- package/lib/commonjs/components/modal-change-activity/index.js.map +1 -1
- package/lib/commonjs/components/no-data/index.js +2 -2
- package/lib/commonjs/components/no-data/index.js.map +1 -1
- package/lib/commonjs/components/notification-loading/index.js +12 -12
- package/lib/commonjs/components/notification-loading/index.js.map +1 -1
- package/lib/commonjs/components/profile-menu-option/index.js +3 -3
- package/lib/commonjs/components/profile-menu-option/index.js.map +1 -1
- package/lib/commonjs/components/scheduled-journey-indicators/index.js +4 -4
- package/lib/commonjs/components/scheduled-journey-indicators/index.js.map +1 -1
- package/lib/commonjs/components/user-profile/index.js +9 -9
- package/lib/commonjs/components/user-profile/index.js.map +1 -1
- package/lib/commonjs/helpers/text-utils.js +5 -5
- package/lib/commonjs/helpers/text-utils.js.map +1 -1
- package/lib/commonjs/index.js +3 -2
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/stories/box/box.stories.js +2 -2
- package/lib/commonjs/stories/box/box.stories.js.map +1 -1
- package/lib/commonjs/stories/modal-change-activity/modal-change-activity.stories.js +4 -4
- package/lib/commonjs/stories/modal-change-activity/modal-change-activity.stories.js.map +1 -1
- package/lib/commonjs/utils/get-icon-by-property/index.js +10 -11
- package/lib/commonjs/utils/get-icon-by-property/index.js.map +1 -1
- package/lib/module/components/activities-daily/index.js +5 -5
- package/lib/module/components/activities-daily/index.js.map +1 -1
- package/lib/module/components/activities-progress/index.js +5 -5
- package/lib/module/components/activities-progress/index.js.map +1 -1
- package/lib/module/components/avatar-profile/index.js +1 -1
- package/lib/module/components/avatar-profile/index.js.map +1 -1
- package/lib/module/components/box/index.js +23 -22
- package/lib/module/components/box/index.js.map +1 -1
- package/lib/module/components/box/interface.d.js.map +1 -1
- package/lib/module/components/box/styles.js.map +1 -1
- package/lib/module/components/card-history/index.js +8 -8
- package/lib/module/components/card-history/index.js.map +1 -1
- package/lib/module/components/card-hours/index.js +1 -1
- package/lib/module/components/card-hours/index.js.map +1 -1
- package/lib/module/components/card-loading/index.js +1 -1
- package/lib/module/components/card-loading/index.js.map +1 -1
- package/lib/module/components/card-scheduled-journey/index.js +1 -1
- package/lib/module/components/card-scheduled-journey/index.js.map +1 -1
- package/lib/module/components/card-work-session/index.js +1 -1
- package/lib/module/components/card-work-session/index.js.map +1 -1
- package/lib/module/components/check-box/index.js +1 -1
- package/lib/module/components/check-box/index.js.map +1 -1
- package/lib/module/components/coil/index.js +1 -1
- package/lib/module/components/coil/index.js.map +1 -1
- package/lib/module/components/filter-date-selector/index.js +1 -1
- package/lib/module/components/filter-date-selector/index.js.map +1 -1
- package/lib/module/components/header-profile/index.js +1 -1
- package/lib/module/components/header-profile/index.js.map +1 -1
- package/lib/module/components/history-activities-card/index.js +1 -1
- package/lib/module/components/history-activities-card/index.js.map +1 -1
- package/lib/module/components/history-details/index.js +1 -1
- package/lib/module/components/history-details/index.js.map +1 -1
- package/lib/module/components/image-capture-with-remove/index.js +1 -1
- package/lib/module/components/image-capture-with-remove/index.js.map +1 -1
- package/lib/module/components/input/index.js +1 -1
- package/lib/module/components/input/index.js.map +1 -1
- package/lib/module/components/loading-details/index.js +5 -5
- package/lib/module/components/loading-details/index.js.map +1 -1
- package/lib/module/components/loading-progress/index.js +1 -1
- package/lib/module/components/loading-progress/index.js.map +1 -1
- package/lib/module/components/menu-item/index.js +1 -1
- package/lib/module/components/menu-item/index.js.map +1 -1
- package/lib/module/components/modal-activities/index.js +1 -1
- package/lib/module/components/modal-activities/index.js.map +1 -1
- package/lib/module/components/modal-change-activity/index.js +10 -9
- package/lib/module/components/modal-change-activity/index.js.map +1 -1
- package/lib/module/components/no-data/index.js +1 -1
- package/lib/module/components/no-data/index.js.map +1 -1
- package/lib/module/components/notification-loading/index.js +5 -5
- package/lib/module/components/notification-loading/index.js.map +1 -1
- package/lib/module/components/profile-menu-option/index.js +1 -1
- package/lib/module/components/profile-menu-option/index.js.map +1 -1
- package/lib/module/components/scheduled-journey-indicators/index.js +1 -1
- package/lib/module/components/scheduled-journey-indicators/index.js.map +1 -1
- package/lib/module/components/user-profile/index.js +1 -1
- package/lib/module/components/user-profile/index.js.map +1 -1
- package/lib/module/helpers/text-utils.js +5 -5
- package/lib/module/helpers/text-utils.js.map +1 -1
- package/lib/module/index.js +3 -3
- package/lib/module/index.js.map +1 -1
- package/lib/module/stories/box/box.stories.js +1 -1
- package/lib/module/stories/box/box.stories.js.map +1 -1
- package/lib/module/stories/modal-change-activity/modal-change-activity.stories.js +4 -4
- package/lib/module/stories/modal-change-activity/modal-change-activity.stories.js.map +1 -1
- package/lib/module/utils/get-icon-by-property/index.js +10 -11
- package/lib/module/utils/get-icon-by-property/index.js.map +1 -1
- package/lib/typescript/src/components/box/index.d.ts +8 -5
- package/lib/typescript/src/components/box/styles.d.ts +2 -2
- package/lib/typescript/src/index.d.ts +1 -1
- package/lib/typescript/src/stories/box/box.stories.d.ts +1 -1
- package/package.json +1 -1
- package/src/components/activities-daily/index.tsx +116 -116
- package/src/components/activities-progress/index.tsx +170 -170
- package/src/components/avatar-profile/index.tsx +1 -1
- package/src/components/box/index.tsx +53 -49
- package/src/components/box/interface.d.ts +2 -2
- package/src/components/box/styles.ts +2 -2
- package/src/components/card-history/index.tsx +221 -221
- package/src/components/card-hours/index.tsx +2 -1
- package/src/components/card-loading/index.tsx +1 -1
- package/src/components/card-scheduled-journey/index.tsx +1 -1
- package/src/components/card-work-session/index.tsx +1 -1
- package/src/components/check-box/index.tsx +1 -1
- package/src/components/coil/index.tsx +1 -1
- package/src/components/filter-date-selector/index.tsx +1 -1
- package/src/components/header-profile/index.tsx +1 -1
- package/src/components/history-activities-card/index.tsx +1 -1
- package/src/components/history-details/index.tsx +1 -1
- package/src/components/image-capture-with-remove/index.tsx +1 -1
- package/src/components/input/index.tsx +1 -1
- package/src/components/loading-details/index.tsx +156 -156
- package/src/components/loading-progress/index.tsx +1 -1
- package/src/components/menu-item/index.tsx +1 -1
- package/src/components/modal-activities/index.tsx +1 -1
- package/src/components/modal-change-activity/index.tsx +200 -202
- package/src/components/no-data/index.tsx +1 -1
- package/src/components/notification-loading/index.tsx +157 -157
- package/src/components/profile-menu-option/index.tsx +1 -1
- package/src/components/scheduled-journey-indicators/index.tsx +1 -1
- package/src/components/user-profile/index.tsx +1 -1
- package/src/helpers/text-utils.ts +15 -15
- package/src/index.ts +45 -45
- package/src/stories/box/box.stories.tsx +1 -1
- package/src/stories/modal-change-activity/modal-change-activity.stories.tsx +51 -52
- package/src/utils/get-icon-by-property/index.tsx +65 -67
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_box","_typography","_iconsSvg","_theme","e","__esModule","default","CardWorkSession","name","workDate","timeWork","initialTime","duration","avatar","counterBadge","backgroundColor","handleNavigation","createElement","Box","paddingStyle","padding","theme","paddings","md","borderStyled","borderBottomWidth","borderWidths","thin","borderColor","colors","gray","style","position","flexStyle","flexDirection","justifyContent","alignItems","Image","width","height","borderRadius","borderWidth","thin_medium","blue","source","uri","left","top","marginStyle","marginTop","Typography","text","fontFamily","fonts","inter_bold_700","size","fontSizes","sm","color","black","letterSpacing","xs","inter_regular_400","TouchableOpacity","activeOpacity","onPress","red","hairline","right","zIndex","align","neutral","lineHeight","Icons","icon","marginLeft","marginRight","inter_semi_bold_600","inter_medium_500","fontWeight","exports"],"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// commons / icons\nimport { Icons } from \"../../common/icons-svg\";\n\n// typings\nimport { ICardWorkSession } from \"./interface\";\n\n// styles\nimport { theme } from \"../../styles/theme/theme\";\n\nconst CardWorkSession: React.FC<ICardWorkSession> = ({\n name = \"Weverson L.S\",\n workDate = \"25/01/2025\",\n timeWork = \"\",\n initialTime = \"11:40\",\n duration = \"05:20\",\n avatar = \"\",\n counterBadge = 0,\n backgroundColor,\n handleNavigation,\n}) => {\n return (\n <Box\n paddingStyle={{ padding: theme.paddings.md }}\n borderStyled={{\n borderBottomWidth: theme.borderWidths.thin,\n borderColor: theme.colors.gray[400],\n }}\n backgroundColor={backgroundColor ?? theme.colors.gray[300]}\n style={{\n position: \"relative\",\n }}\n >\n {/* Cabeçalho com imagem e ícone */}\n <Box\n flexStyle={{ flexDirection: \"row\", justifyContent: \"space-between\", alignItems: \"center\" }}\n >\n <Image\n style={{\n width: 50,\n height: 50,\n borderRadius: 25,\n borderWidth: theme.borderWidths.thin_medium,\n borderColor: theme.colors.blue[500],\n }}\n source={{\n uri:\n avatar ||\n \"https://static.vakinha.com.br/uploads/user/avatar/2251959/download.png?ims=225x225\",\n }}\n />\n <Box style={{ position: \"absolute\", left: 57, top: 5 }}>\n <Box flexStyle={{ flexDirection: \"row\" }} marginStyle={{ marginTop: -5 }}>\n <Typography\n text={\"Jornada Trabalho: \"}\n fontFamily={theme.fonts.inter_bold_700}\n size={theme.fontSizes.sm}\n color={theme.colors.black[100]}\n letterSpacing={\"regular\"}\n />\n <Typography\n text={workDate}\n size={theme.fontSizes.xs}\n fontFamily={theme.fonts.inter_regular_400}\n color={theme.colors.black[100]}\n />\n </Box>\n <Box flexStyle={{ flexDirection: \"row\" }}>\n <Typography\n text={\"Tempo Jornada: \"}\n size={theme.fontSizes.sm}\n color={theme.colors.black[100]}\n fontFamily={theme.fonts.inter_bold_700}\n letterSpacing={\"regular\"}\n />\n\n {timeWork && (\n <Typography\n text={timeWork}\n size={theme.fontSizes.xs}\n fontFamily={theme.fonts.inter_regular_400}\n color={theme.colors.gray[800]}\n letterSpacing={\"regular\"}\n />\n )}\n </Box>\n </Box>\n <TouchableOpacity activeOpacity={0.7} onPress={handleNavigation}>\n {counterBadge > 0 && (\n <Box\n backgroundColor={theme.colors.red[600]}\n flexStyle={{ alignItems: \"center\", justifyContent: \"center\" }}\n borderStyled={{ borderRadius: theme.borderWidths.hairline }}\n style={[\n counterBadge < 10\n ? { right: -5, top: -2, height: 16, width: 16 }\n : { right: -8, top: -5, padding: 2 },\n { position: \"absolute\", zIndex: 10 },\n ]}\n >\n <Typography\n text={`${counterBadge}`}\n align={\"center\"}\n size={theme.fontSizes[\"2xs\"]}\n color={theme.colors.neutral[25]}\n fontFamily={theme.fonts.inter_bold_700}\n lineHeight={theme.fontSizes.sm}\n letterSpacing={\"regular\"}\n />\n </Box>\n )}\n <Icons icon={\"BELL\"} size={28} style={{ position: \"relative\" }} />\n </TouchableOpacity>\n </Box>\n\n <Box\n flexStyle={{ flexDirection: \"row\", justifyContent: \"space-between\", alignItems: \"center\" }}\n >\n <Box width={\"65%\"}>\n <Typography\n text={`Olá, ${name}`}\n size={16}\n color={theme.colors.black[100]}\n fontFamily={theme.fonts.inter_bold_700}\n marginLeft={-5}\n />\n </Box>\n\n {/* Seção de horário */}\n <Box flexStyle={{ flexDirection: \"row\" }}>\n <Box marginStyle={{ marginRight: 15 }}>\n <Typography\n text={`${initialTime}`}\n size={theme.fontSizes.md}\n align=\"center\"\n color={theme.colors.black[100]}\n fontFamily={theme.fonts.inter_semi_bold_600}\n />\n\n <Typography\n text={\"INÍCIO\"}\n size={theme.fontSizes[\"2xs\"]}\n align=\"center\"\n color={theme.colors.black[100]}\n fontFamily={theme.fonts.inter_medium_500}\n fontWeight={\"500\"}\n marginTop={-4}\n />\n </Box>\n\n <Box>\n <Typography\n text={`${duration}`}\n size={theme.fontSizes.md}\n align=\"center\"\n color={theme.colors.black[100]}\n fontFamily={theme.fonts.inter_semi_bold_600}\n />\n\n <Typography\n text={\"DURAÇÃO\"}\n size={theme.fontSizes[\"2xs\"]}\n align=\"center\"\n color={theme.colors.black[100]}\n fontFamily={theme.fonts.inter_medium_500}\n marginTop={-4}\n />\n </Box>\n </Box>\n </Box>\n </Box>\n );\n};\n\n/**\n * EXPORTS\n */\nexport { CardWorkSession };\n"],"mappings":";;;;;;AAGA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAGA,IAAAE,IAAA,GAAAF,OAAA;AACA,IAAAG,WAAA,GAAAH,OAAA;AAGA,IAAAI,SAAA,GAAAJ,OAAA;AAMA,IAAAK,MAAA,GAAAL,OAAA;AAAiD,SAAAD,uBAAAO,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAjBjD;AACA;AACA;;AAIA;;AAIA;;AAGA;;AAGA;;AAGA,MAAMG,eAA2C,GAAGA,CAAC;EACnDC,IAAI,GAAG,cAAc;EACrBC,QAAQ,GAAG,YAAY;EACvBC,QAAQ,GAAG,EAAE;EACbC,WAAW,GAAG,OAAO;EACrBC,QAAQ,GAAG,OAAO;EAClBC,MAAM,GAAG,EAAE;EACXC,YAAY,GAAG,CAAC;EAChBC,eAAe;EACfC;AACF,CAAC,KAAK;EACJ,oBACEpB,MAAA,CAAAU,OAAA,CAAAW,aAAA,CAACjB,IAAA,CAAAkB,GAAG;IACFC,YAAY,EAAE;MAAEC,OAAO,EAAEC,YAAK,CAACC,QAAQ,CAACC;IAAG,CAAE;IAC7CC,YAAY,EAAE;MACZC,iBAAiB,EAAEJ,YAAK,CAACK,YAAY,CAACC,IAAI;MAC1CC,WAAW,EAAEP,YAAK,CAACQ,MAAM,CAACC,IAAI,CAAC,GAAG;IACpC,CAAE;IACFf,eAAe,EAA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oreList":[]}
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_box","_typography","_iconsSvg","_theme","e","__esModule","default","CardWorkSession","name","workDate","timeWork","initialTime","duration","avatar","counterBadge","backgroundColor","handleNavigation","createElement","paddingStyle","padding","theme","paddings","md","borderStyled","borderBottomWidth","borderWidths","thin","borderColor","colors","gray","style","position","flexStyle","flexDirection","justifyContent","alignItems","Image","width","height","borderRadius","borderWidth","thin_medium","blue","source","uri","left","top","marginStyle","marginTop","Typography","text","fontFamily","fonts","inter_bold_700","size","fontSizes","sm","color","black","letterSpacing","xs","inter_regular_400","TouchableOpacity","activeOpacity","onPress","red","hairline","right","zIndex","align","neutral","lineHeight","Icons","icon","marginLeft","marginRight","inter_semi_bold_600","inter_medium_500","fontWeight","exports"],"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// commons / icons\nimport { Icons } from \"../../common/icons-svg\";\n\n// typings\nimport { ICardWorkSession } from \"./interface\";\n\n// styles\nimport { theme } from \"../../styles/theme/theme\";\n\nconst CardWorkSession: React.FC<ICardWorkSession> = ({\n name = \"Weverson L.S\",\n workDate = \"25/01/2025\",\n timeWork = \"\",\n initialTime = \"11:40\",\n duration = \"05:20\",\n avatar = \"\",\n counterBadge = 0,\n backgroundColor,\n handleNavigation,\n}) => {\n return (\n <Box\n paddingStyle={{ padding: theme.paddings.md }}\n borderStyled={{\n borderBottomWidth: theme.borderWidths.thin,\n borderColor: theme.colors.gray[400],\n }}\n backgroundColor={backgroundColor ?? theme.colors.gray[300]}\n style={{\n position: \"relative\",\n }}\n >\n {/* Cabeçalho com imagem e ícone */}\n <Box\n flexStyle={{ flexDirection: \"row\", justifyContent: \"space-between\", alignItems: \"center\" }}\n >\n <Image\n style={{\n width: 50,\n height: 50,\n borderRadius: 25,\n borderWidth: theme.borderWidths.thin_medium,\n borderColor: theme.colors.blue[500],\n }}\n source={{\n uri:\n avatar ||\n \"https://static.vakinha.com.br/uploads/user/avatar/2251959/download.png?ims=225x225\",\n }}\n />\n <Box style={{ position: \"absolute\", left: 57, top: 5 }}>\n <Box flexStyle={{ flexDirection: \"row\" }} marginStyle={{ marginTop: -5 }}>\n <Typography\n text={\"Jornada Trabalho: \"}\n fontFamily={theme.fonts.inter_bold_700}\n size={theme.fontSizes.sm}\n color={theme.colors.black[100]}\n letterSpacing={\"regular\"}\n />\n <Typography\n text={workDate}\n size={theme.fontSizes.xs}\n fontFamily={theme.fonts.inter_regular_400}\n color={theme.colors.black[100]}\n />\n </Box>\n <Box flexStyle={{ flexDirection: \"row\" }}>\n <Typography\n text={\"Tempo Jornada: \"}\n size={theme.fontSizes.sm}\n color={theme.colors.black[100]}\n fontFamily={theme.fonts.inter_bold_700}\n letterSpacing={\"regular\"}\n />\n\n {timeWork && (\n <Typography\n text={timeWork}\n size={theme.fontSizes.xs}\n fontFamily={theme.fonts.inter_regular_400}\n color={theme.colors.gray[800]}\n letterSpacing={\"regular\"}\n />\n )}\n </Box>\n </Box>\n <TouchableOpacity activeOpacity={0.7} onPress={handleNavigation}>\n {counterBadge > 0 && (\n <Box\n backgroundColor={theme.colors.red[600]}\n flexStyle={{ alignItems: \"center\", justifyContent: \"center\" }}\n borderStyled={{ borderRadius: theme.borderWidths.hairline }}\n style={[\n counterBadge < 10\n ? { right: -5, top: -2, height: 16, width: 16 }\n : { right: -8, top: -5, padding: 2 },\n { position: \"absolute\", zIndex: 10 },\n ]}\n >\n <Typography\n text={`${counterBadge}`}\n align={\"center\"}\n size={theme.fontSizes[\"2xs\"]}\n color={theme.colors.neutral[25]}\n fontFamily={theme.fonts.inter_bold_700}\n lineHeight={theme.fontSizes.sm}\n letterSpacing={\"regular\"}\n />\n </Box>\n )}\n <Icons icon={\"BELL\"} size={28} style={{ position: \"relative\" }} />\n </TouchableOpacity>\n </Box>\n\n <Box\n flexStyle={{ flexDirection: \"row\", justifyContent: \"space-between\", alignItems: \"center\" }}\n >\n <Box width={\"65%\"}>\n <Typography\n text={`Olá, ${name}`}\n size={16}\n color={theme.colors.black[100]}\n fontFamily={theme.fonts.inter_bold_700}\n marginLeft={-5}\n />\n </Box>\n\n {/* Seção de horário */}\n <Box flexStyle={{ flexDirection: \"row\" }}>\n <Box marginStyle={{ marginRight: 15 }}>\n <Typography\n text={`${initialTime}`}\n size={theme.fontSizes.md}\n align=\"center\"\n color={theme.colors.black[100]}\n fontFamily={theme.fonts.inter_semi_bold_600}\n />\n\n <Typography\n text={\"INÍCIO\"}\n size={theme.fontSizes[\"2xs\"]}\n align=\"center\"\n color={theme.colors.black[100]}\n fontFamily={theme.fonts.inter_medium_500}\n fontWeight={\"500\"}\n marginTop={-4}\n />\n </Box>\n\n <Box>\n <Typography\n text={`${duration}`}\n size={theme.fontSizes.md}\n align=\"center\"\n color={theme.colors.black[100]}\n fontFamily={theme.fonts.inter_semi_bold_600}\n />\n\n <Typography\n text={\"DURAÇÃO\"}\n size={theme.fontSizes[\"2xs\"]}\n align=\"center\"\n color={theme.colors.black[100]}\n fontFamily={theme.fonts.inter_medium_500}\n marginTop={-4}\n />\n </Box>\n </Box>\n </Box>\n </Box>\n );\n};\n\n/**\n * EXPORTS\n */\nexport { CardWorkSession };\n"],"mappings":";;;;;;AAGA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAGA,IAAAE,IAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,WAAA,GAAAH,OAAA;AAGA,IAAAI,SAAA,GAAAJ,OAAA;AAMA,IAAAK,MAAA,GAAAL,OAAA;AAAiD,SAAAD,uBAAAO,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAjBjD;AACA;AACA;;AAIA;;AAIA;;AAGA;;AAGA;;AAGA,MAAMG,eAA2C,GAAGA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AK,CAAC,GAAG,CAAE;IAC/BP,UAAU,EAAE/B,YAAK,CAACgC,KAAK,CAACwB;EAAoB,CAC7C,CAAC,eAEFhF,MAAA,CAAAU,OAAA,CAAAW,aAAA,CAAChB,WAAA,CAAAgD,UAAU;IACTC,IAAI,EAAE,SAAU;IAChBI,IAAI,EAAElC,YAAK,CAACmC,SAAS,CAAC,KAAK,CAAE;IAC7Bc,KAAK,EAAC,QAAQ;IACdZ,KAAK,EAAErC,YAAK,CAACQ,MAAM,CAAC8B,KAAK,CAAC,GAAG,CAAE;IAC/BP,UAAU,EAAE/B,YAAK,CAACgC,KAAK,CAACyB,gBAAiB;IACzC7B,SAAS,EAAE,CAAC;EAAE,CACf,CACE,CACF,CACF,CACF,CAAC;AAEV,CAAC;;AAED;AACA;AACA;AAFA+B,OAAA,CAAAxE,eAAA,GAAAA,eAAA","ignoreList":[]}
|
|
@@ -8,7 +8,7 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
8
8
|
var _reactNative = require("react-native");
|
|
9
9
|
var _typography = require("../typography");
|
|
10
10
|
var _iconsSvg = require("../../common/icons-svg");
|
|
11
|
-
var _box = require("../box");
|
|
11
|
+
var _box = _interopRequireDefault(require("../box"));
|
|
12
12
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
13
13
|
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); } /**
|
|
14
14
|
* IMPORTS
|
|
@@ -33,7 +33,7 @@ const CheckBox = ({
|
|
|
33
33
|
return /*#__PURE__*/_react.default.createElement(_reactNative.TouchableOpacity, _extends({
|
|
34
34
|
testID: "checkbox-button",
|
|
35
35
|
onPress: onPress
|
|
36
|
-
}, res), isChecked ? /*#__PURE__*/_react.default.createElement(_box.
|
|
36
|
+
}, res), isChecked ? /*#__PURE__*/_react.default.createElement(_box.default, {
|
|
37
37
|
width: "100%",
|
|
38
38
|
paddingStyle: {
|
|
39
39
|
paddingLeft: 16,
|
|
@@ -44,7 +44,7 @@ const CheckBox = ({
|
|
|
44
44
|
alignItems: "center",
|
|
45
45
|
justifyContent: "flex-start"
|
|
46
46
|
}
|
|
47
|
-
}, /*#__PURE__*/_react.default.createElement(_box.
|
|
47
|
+
}, /*#__PURE__*/_react.default.createElement(_box.default, {
|
|
48
48
|
testID: "check-box-true",
|
|
49
49
|
width: widthBoxCheckIcon ? widthBoxCheckIcon : 30,
|
|
50
50
|
height: 40,
|
|
@@ -64,7 +64,7 @@ const CheckBox = ({
|
|
|
64
64
|
size: textLabel ? textSizeLabel : 16,
|
|
65
65
|
lineHeight: 18,
|
|
66
66
|
letterSpacing: "regular"
|
|
67
|
-
})) : /*#__PURE__*/_react.default.createElement(_box.
|
|
67
|
+
})) : /*#__PURE__*/_react.default.createElement(_box.default, {
|
|
68
68
|
width: "100%",
|
|
69
69
|
paddingStyle: {
|
|
70
70
|
paddingLeft: 16,
|
|
@@ -76,7 +76,7 @@ const CheckBox = ({
|
|
|
76
76
|
justifyContent: "flex-start"
|
|
77
77
|
},
|
|
78
78
|
testID: "check-box-falso"
|
|
79
|
-
}, /*#__PURE__*/_react.default.createElement(_box.
|
|
79
|
+
}, /*#__PURE__*/_react.default.createElement(_box.default, {
|
|
80
80
|
width: widthBoxCheckIcon ? widthBoxCheckIcon : 30,
|
|
81
81
|
height: 40,
|
|
82
82
|
backgroundColor: backgroundBoxCheckIcon ? backgroundBoxCheckIcon : "transparent",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_typography","_iconsSvg","_box","e","__esModule","default","_extends","Object","assign","bind","n","arguments","length","t","r","hasOwnProperty","call","apply","CheckBox","widthBoxCheckIcon","isChecked","backgroundColorCheck","backgroundBoxCheckIcon","textLabel","textSizeLabel","colorTextLabel","onPress","res","createElement","TouchableOpacity","testID","
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_typography","_iconsSvg","_box","e","__esModule","default","_extends","Object","assign","bind","n","arguments","length","t","r","hasOwnProperty","call","apply","CheckBox","widthBoxCheckIcon","isChecked","backgroundColorCheck","backgroundBoxCheckIcon","textLabel","textSizeLabel","colorTextLabel","onPress","res","createElement","TouchableOpacity","testID","width","paddingStyle","paddingLeft","paddingRight","flexStyle","flexDirection","alignItems","justifyContent","height","backgroundColor","Icons","size","color","icon","Typography","text","lineHeight","letterSpacing","background","exports"],"sources":["index.tsx"],"sourcesContent":["/**\n * IMPORTS\n */\nimport React from \"react\";\nimport { TouchableOpacity } from \"react-native\";\n\n// components\nimport { Typography } from \"../typography\";\n\n// commons icons-svg\nimport { Icons } from \"../../common/icons-svg\";\n\n// typings\nimport { ICheckBoxProps } from \"./interface\";\n\n// styles\nimport Box from \"../box\";\n\n/**\n * Componente CheckBox para a interação da ui.\n */\nconst CheckBox: React.FC<ICheckBoxProps> = ({\n widthBoxCheckIcon,\n isChecked,\n backgroundColorCheck,\n backgroundBoxCheckIcon,\n textLabel,\n textSizeLabel,\n colorTextLabel,\n onPress,\n ...res\n}: ICheckBoxProps) => {\n return (\n <TouchableOpacity testID=\"checkbox-button\" onPress={onPress} {...res}>\n {isChecked ? (\n <Box\n width={\"100%\"}\n paddingStyle={{ paddingLeft: 16, paddingRight: 16 }}\n flexStyle={{ flexDirection: \"row\", alignItems: \"center\", justifyContent: \"flex-start\" }}\n >\n <Box\n testID=\"check-box-true\"\n width={widthBoxCheckIcon ? widthBoxCheckIcon : 30}\n height={40}\n backgroundColor={backgroundBoxCheckIcon ? backgroundBoxCheckIcon : \"transparent\"}\n flexStyle={{ flexDirection: \"row\", alignItems: \"center\", justifyContent: \"flex-start\" }}\n >\n <Icons size={24} color={backgroundColorCheck} icon=\"CHECK_BOX_OUTLINE\" />\n </Box>\n\n {textLabel && (\n <Typography\n text={textLabel ? textLabel : \"Label\"}\n color={colorTextLabel ? colorTextLabel : \"white\"}\n size={textLabel ? textSizeLabel : 16}\n lineHeight={18}\n letterSpacing={\"regular\"}\n />\n )}\n </Box>\n ) : (\n <Box\n width={\"100%\"}\n paddingStyle={{ paddingLeft: 16, paddingRight: 16 }}\n flexStyle={{ flexDirection: \"row\", alignItems: \"center\", justifyContent: \"flex-start\" }}\n testID=\"check-box-falso\"\n >\n <Box\n width={widthBoxCheckIcon ? widthBoxCheckIcon : 30}\n height={40}\n backgroundColor={backgroundBoxCheckIcon ? backgroundBoxCheckIcon : \"transparent\"}\n flexStyle={{ flexDirection: \"row\", alignItems: \"center\", justifyContent: \"flex-start\" }}\n >\n <Icons size={19} background={backgroundColorCheck} icon=\"CHECK_BOX\" />\n </Box>\n\n {textLabel && (\n <Typography\n text={textLabel ? textLabel : \"Label\"}\n color={colorTextLabel ? colorTextLabel : \"white\"}\n size={textLabel ? textSizeLabel : 16}\n lineHeight={18}\n letterSpacing={\"regular\"}\n />\n )}\n </Box>\n )}\n </TouchableOpacity>\n );\n};\n/**\n * EXPORTS\n */\nexport { CheckBox };\n"],"mappings":";;;;;;AAGA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAGA,IAAAE,WAAA,GAAAF,OAAA;AAGA,IAAAG,SAAA,GAAAH,OAAA;AAMA,IAAAI,IAAA,GAAAL,sBAAA,CAAAC,OAAA;AAAyB,SAAAD,uBAAAM,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAG,SAAA,WAAAA,QAAA,GAAAC,MAAA,CAAAC,MAAA,GAAAD,MAAA,CAAAC,MAAA,CAAAC,IAAA,eAAAC,CAAA,aAAAP,CAAA,MAAAA,CAAA,GAAAQ,SAAA,CAAAC,MAAA,EAAAT,CAAA,UAAAU,CAAA,GAAAF,SAAA,CAAAR,CAAA,YAAAW,CAAA,IAAAD,CAAA,OAAAE,cA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AA,CAAAS,OAAA,CAAAuB,aAAA,CAAC5B,WAAA,CAAA6C,UAAU;IACTC,IAAI,EAAEvB,SAAS,GAAGA,SAAS,GAAG,OAAQ;IACtCoB,KAAK,EAAElB,cAAc,GAAGA,cAAc,GAAG,OAAQ;IACjDiB,IAAI,EAAEnB,SAAS,GAAGC,aAAa,GAAG,EAAG;IACrCuB,UAAU,EAAE,EAAG;IACfC,aAAa,EAAE;EAAU,CAC1B,CAEA,CAES,CAAC;AAEvB,CAAC;AACD;AACA;AACA;AAFAE,OAAA,CAAAhC,QAAA,GAAAA,QAAA","ignoreList":[]}
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.Coil = void 0;
|
|
7
7
|
var _react = _interopRequireDefault(require("react"));
|
|
8
8
|
var _reactNative = require("react-native");
|
|
9
|
-
var _box = require("../box");
|
|
9
|
+
var _box = _interopRequireDefault(require("../box"));
|
|
10
10
|
var _typography = require("../typography");
|
|
11
11
|
var _iconsSvg = require("../../common/icons-svg");
|
|
12
12
|
var _theme = require("../../styles/theme/theme");
|
|
@@ -37,7 +37,7 @@ const Coil = ({
|
|
|
37
37
|
activeOpacity: 0.7,
|
|
38
38
|
testID: testID,
|
|
39
39
|
onPress: handleNavigation
|
|
40
|
-
}, /*#__PURE__*/_react.default.createElement(_box.
|
|
40
|
+
}, /*#__PURE__*/_react.default.createElement(_box.default, {
|
|
41
41
|
width: "100%",
|
|
42
42
|
flexStyle: {
|
|
43
43
|
flexDirection: "row",
|
|
@@ -59,7 +59,7 @@ const Coil = ({
|
|
|
59
59
|
style: [style, {
|
|
60
60
|
elevation: 5
|
|
61
61
|
}]
|
|
62
|
-
}, /*#__PURE__*/_react.default.createElement(_box.
|
|
62
|
+
}, /*#__PURE__*/_react.default.createElement(_box.default, {
|
|
63
63
|
width: "80%",
|
|
64
64
|
height: 70,
|
|
65
65
|
flexStyle: {
|
|
@@ -70,7 +70,7 @@ const Coil = ({
|
|
|
70
70
|
}, /*#__PURE__*/_react.default.createElement(_iconsSvg.Icons, {
|
|
71
71
|
icon: "LIFEBUOY",
|
|
72
72
|
size: 32
|
|
73
|
-
}), /*#__PURE__*/_react.default.createElement(_box.
|
|
73
|
+
}), /*#__PURE__*/_react.default.createElement(_box.default, {
|
|
74
74
|
flexStyle: {
|
|
75
75
|
flexDirection: "column",
|
|
76
76
|
flexWrap: "wrap"
|
|
@@ -91,7 +91,7 @@ const Coil = ({
|
|
|
91
91
|
fontFamily: _theme.theme.fonts.inter_semi_bold_600,
|
|
92
92
|
color: _theme.theme.colors.neutral[25],
|
|
93
93
|
letterSpacing: "regular"
|
|
94
|
-
}))), /*#__PURE__*/_react.default.createElement(_box.
|
|
94
|
+
}))), /*#__PURE__*/_react.default.createElement(_box.default, {
|
|
95
95
|
width: "20%",
|
|
96
96
|
flexStyle: {
|
|
97
97
|
flexDirection: "row",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_box","_typography","_iconsSvg","_theme","e","__esModule","default","Coil","description","handleNavigation","title","testID","status","backgroundColor","style","disabled","backgroundColorIcon","createElement","TouchableOpacity","activeOpacity","onPress","
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_box","_typography","_iconsSvg","_theme","e","__esModule","default","Coil","description","handleNavigation","title","testID","status","backgroundColor","style","disabled","backgroundColorIcon","createElement","TouchableOpacity","activeOpacity","onPress","width","flexStyle","flexDirection","alignItems","height","theme","colors","blue","borderStyled","borderWidth","borderWidths","thin","borderRadius","thick_medium","borderColor","paddingStyle","padding","paddings","marginStyle","marginBottom","margins","md","elevation","justifyContent","Icons","icon","size","flexWrap","marginLeft","lg","Typography","text","fontSizes","fontFamily","fonts","inter_bold_700","color","neutral","letterSpacing","paddingTop","inter_semi_bold_600","background","exports"],"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 { ICoil } from \"./interface\";\n\nconst Coil: React.FC<ICoil> = ({\n description,\n handleNavigation,\n title,\n testID,\n status,\n backgroundColor,\n style,\n disabled,\n backgroundColorIcon,\n}) => {\n return (\n <TouchableOpacity\n disabled={disabled}\n activeOpacity={0.7}\n testID={testID}\n onPress={handleNavigation}\n >\n <Box\n width={\"100%\"}\n flexStyle={{ flexDirection: \"row\", alignItems: \"center\" }}\n height={70}\n backgroundColor={backgroundColor ?? theme.colors.blue[400]}\n borderStyled={{\n borderWidth: theme.borderWidths.thin,\n borderRadius: theme.borderWidths.thick_medium,\n borderColor: backgroundColor ?? theme.colors.blue[400],\n }}\n paddingStyle={{ padding: theme.paddings[\"2xs\"] }}\n marginStyle={{ marginBottom: theme.margins.md }}\n style={[style, { elevation: 5 }]}\n >\n <Box\n width={\"80%\"}\n height={70}\n flexStyle={{ flexDirection: \"row\", alignItems: \"center\", justifyContent: \"flex-start\" }}\n >\n <Icons icon={\"LIFEBUOY\"} size={32} />\n\n <Box\n flexStyle={{ flexDirection: \"column\", flexWrap: \"wrap\" }}\n marginStyle={{ marginLeft: theme.margins.lg }}\n >\n <Typography\n text={title}\n size={theme.fontSizes[\"2xl\"]}\n fontFamily={theme.fonts.inter_bold_700}\n color={theme.colors.neutral[25]}\n letterSpacing={\"regular\"}\n paddingTop={theme.paddings.md}\n />\n <Typography\n text={description}\n size={theme.fontSizes[\"2xs\"]}\n fontFamily={theme.fonts.inter_semi_bold_600}\n color={theme.colors.neutral[25]}\n letterSpacing={\"regular\"}\n />\n </Box>\n </Box>\n\n <Box\n width={\"20%\"}\n flexStyle={{ flexDirection: \"row\", alignItems: \"center\", justifyContent: \"flex-end\" }}\n height={70}\n >\n {status === \"Cancelado\" && (\n <Icons icon={\"RECUSED\"} size={32} background={backgroundColorIcon} />\n )}\n {status === \"Concluido\" && (\n <Icons icon={\"CHECK_CIRCLE\"} size={32} background={backgroundColorIcon} />\n )}\n {(status === \"Pendente\" || status === \"Andamento\") && (\n <Icons icon={\"EXCLAMATION_CIRCLE\"} size={32} background={backgroundColorIcon} />\n )}\n </Box>\n </Box>\n </TouchableOpacity>\n );\n};\n\n/**\n * EXPORTS\n */\nexport { Coil };\n"],"mappings":";;;;;;AAGA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAGA,IAAAE,IAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,WAAA,GAAAH,OAAA;AAGA,IAAAI,SAAA,GAAAJ,OAAA;AAGA,IAAAK,MAAA,GAAAL,OAAA;AAAiD,SAAAD,uBAAAO,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAdjD;AACA;AACA;;AAIA;;AAIA;;AAGA;;AAKA,MAAMG,IAAqB,GAAGA,CAAC;EAC7BC,WAAW;EACXC,gBAAgB;EAChBC,KAAK;EACLC,MAAM;EACNC,MAAM;EACNC,eAAe;EACfC,KAAK;EACLC,QAAQ;EACRC;AACF,CAAC,KAAK;EACJ,oBACEpB,MAAA,CAAAU,OAAA,CAAAW,aAAA,CAAClB,YAAA,CAAAmB,gBAAgB;IACfH,QAAQ,EAAEA,QAAS;IACnBI,aAAa,EAAE,GAAI;IACnBR,MAAM,EAAEA,MAAO;IACfS,OAAO,EAAEX;EAAiB,gBAE1Bb,MAAA,CAAAU,OAAA,CAAAW,aAAA,CAACjB,IAAA,CAAAM,OAAG;IACFe,KAAK,EAAE,MAAO;IACdC,SAAS,EAAE;MAAEC,aAAa,EAAE,KAAK;MAAEC,UAAU,EAAE;IAAS,CAAE;IAC1DC,MAAM,EAAE,EAAG;IACXZ,eAAe,EAAEA,eAAe,aAAfA,eAAe,cAAfA,eAAe,GAAIa,YAAK,CAACC,MAAM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aAAA,CAACf,SAAA,CAAA2C,KAAK;IAACC,IAAI,EAAE,oBAAqB;IAACC,IAAI,EAAE,EAAG;IAACe,UAAU,EAAE9C;EAAoB,CAAE,CAE9E,CACF,CACW,CAAC;AAEvB,CAAC;;AAED;AACA;AACA;AAFA+C,OAAA,CAAAxD,IAAA,GAAAA,IAAA","ignoreList":[]}
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.FilterDateSelector = void 0;
|
|
7
7
|
var _react = _interopRequireDefault(require("react"));
|
|
8
8
|
var _reactNative = require("react-native");
|
|
9
|
-
var _box = require("../box");
|
|
9
|
+
var _box = _interopRequireDefault(require("../box"));
|
|
10
10
|
var _typography = require("../typography");
|
|
11
11
|
var _theme = require("../../styles/theme/theme");
|
|
12
12
|
var _iconsSvg = require("../../common/icons-svg");
|
|
@@ -42,7 +42,7 @@ const FilterDateSelector = ({
|
|
|
42
42
|
key: index,
|
|
43
43
|
activeOpacity: 0.7,
|
|
44
44
|
onPress: () => handleSelectedDay(day)
|
|
45
|
-
}, /*#__PURE__*/_react.default.createElement(_box.
|
|
45
|
+
}, /*#__PURE__*/_react.default.createElement(_box.default, {
|
|
46
46
|
testID: testID,
|
|
47
47
|
width: 65,
|
|
48
48
|
height: 75,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_box","_typography","_theme","_iconsSvg","e","__esModule","default","FilterDateSelector","selectedDay","handleSelectedDay","days","isLoading","testID","renderDayBlock","item","day","index","isSelected","date","createElement","TouchableOpacity","disabled","key","activeOpacity","onPress","
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_box","_typography","_theme","_iconsSvg","e","__esModule","default","FilterDateSelector","selectedDay","handleSelectedDay","days","isLoading","testID","renderDayBlock","item","day","index","isSelected","date","createElement","TouchableOpacity","disabled","key","activeOpacity","onPress","width","height","flexStyle","alignItems","justifyContent","backgroundColor","theme","colors","blue","gray","borderStyled","borderRadius","borderWidths","thick_large","borderColor","borderWidth","thin","marginStyle","marginRight","margins","marginTop","ActivityIndicator","size","color","Fragment","Icons","icon","neutral","Typography","text","toString","padStart","fontSizes","lg","fontFamily","fonts","inter_bold_700","dayName","slice","marginBottom","letterSpacing","daySorted","sort","a","b","Date","fullDate","getTime","dataWithAllOption","FlatList","horizontal","data","showsHorizontalScrollIndicator","renderItem","exports"],"sources":["index.tsx"],"sourcesContent":["/**\n * IMPORTS\n */\nimport React from \"react\";\nimport { TouchableOpacity, ActivityIndicator, FlatList } from \"react-native\";\n\n// components\nimport Box from \"../box\";\nimport { Typography } from \"../typography\";\n\n// styles\nimport { theme } from \"../../styles/theme/theme\";\n\n//typing\nimport { IFilterDateSelector, ISelectedDay } from \"./interface\";\nimport { Icons } from \"../../common/icons-svg\";\n\n/**\n *\n * Componente FilterDateSelector para a interação do usuário com ui.\n */\nconst FilterDateSelector: React.FC<IFilterDateSelector> = ({\n selectedDay,\n handleSelectedDay,\n days,\n isLoading,\n testID,\n}) => {\n const renderDayBlock = ({ item: day, index }: { item: ISelectedDay; index: number }) => {\n const isSelected = selectedDay && selectedDay.date === day.date;\n return (\n <TouchableOpacity\n disabled={isSelected}\n key={index}\n activeOpacity={0.7}\n onPress={() => handleSelectedDay(day)}\n >\n <Box\n testID={testID}\n width={65}\n height={75}\n flexStyle={{ alignItems: \"center\", justifyContent: \"center\" }}\n backgroundColor={isSelected ? theme.colors.blue[400] : theme.colors.gray[350]}\n borderStyled={{\n borderRadius: theme.borderWidths.thick_large,\n borderColor: isSelected ? theme.colors.blue[400] : theme.colors.gray[350],\n borderWidth: theme.borderWidths.thin,\n }}\n marginStyle={{ marginRight: theme.margins[\"2xs\"], marginTop: theme.margins[\"2xs\"] }}\n >\n {isSelected && isLoading ? (\n <ActivityIndicator size=\"small\" color=\"white\" />\n ) : (\n <>\n {day.date === \"all\" ? (\n <Icons icon=\"REFRESH_CCW_DOT\" color={theme.colors.neutral[25]} />\n ) : (\n <>\n <Typography\n text={day.date === \"all\" ? \"\" : day.date.toString().padStart(2, \"0\")}\n size={theme.fontSizes.lg}\n color={theme.colors.neutral[25]}\n fontFamily={theme.fonts.inter_bold_700}\n />\n <Typography\n text={day.date === \"all\" ? \"Todos\" : day.dayName.slice(0, 3)}\n size={theme.fontSizes.lg}\n color={theme.colors.neutral[25]}\n fontFamily={theme.fonts.inter_bold_700}\n marginBottom={day.date === \"all\" ? theme.margins[\"3xl\"] : 0}\n letterSpacing=\"o_16\"\n />\n </>\n )}\n </>\n )}\n </Box>\n </TouchableOpacity>\n );\n };\n const daySorted = days.sort(\n (a, b) => new Date(b.fullDate).getTime() - new Date(a.fullDate).getTime()\n );\n\n // Adiciona a opção \"Todos\" no início da lista\n const dataWithAllOption = [...daySorted];\n\n return (\n <FlatList\n horizontal\n data={dataWithAllOption}\n showsHorizontalScrollIndicator={false}\n renderItem={renderDayBlock}\n />\n );\n};\n\n/**\n * EXPORTS\n */\nexport { FilterDateSelector };\n"],"mappings":";;;;;;AAGA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAGA,IAAAE,IAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,WAAA,GAAAH,OAAA;AAGA,IAAAI,MAAA,GAAAJ,OAAA;AAIA,IAAAK,SAAA,GAAAL,OAAA;AAA+C,SAAAD,uBAAAO,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAf/C;AACA;AACA;;AAIA;;AAIA;;AAGA;;AAIA;AACA;AACA;AACA;AACA,MAAMG,kBAAiD,GAAGA,CAAC;EACzDC,WAAW;EACXC,iBAAiB;EACjBC,IAAI;EACJC,SAAS;EACTC;AACF,CAAC,KAAK;EACJ,MAAMC,cAAc,GAAGA,CAAC;IAAEC,IAAI,EAAEC,GAAG;IAAEC;EAA6C,CAAC,KAAK;IACtF,MA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OAAO,CAAC,KAAK,CAAC,GAAG,CAAE;MAC5DqB,aAAa,EAAC;IAAM,CACrB,CACD,CAEJ,CAED,CACW,CAAC;EAEvB,CAAC;EACD,MAAMC,SAAS,GAAGxD,IAAI,CAACyD,IAAI,CACzB,CAACC,CAAC,EAAEC,CAAC,KAAK,IAAIC,IAAI,CAACD,CAAC,CAACE,QAAQ,CAAC,CAACC,OAAO,CAAC,CAAC,GAAG,IAAIF,IAAI,CAACF,CAAC,CAACG,QAAQ,CAAC,CAACC,OAAO,CAAC,CAC1E,CAAC;;EAED;EACA,MAAMC,iBAAiB,GAAG,CAAC,GAAGP,SAAS,CAAC;EAExC,oBACEtE,MAAA,CAAAU,OAAA,CAAAa,aAAA,CAACpB,YAAA,CAAA2E,QAAQ;IACPC,UAAU;IACVC,IAAI,EAAEH,iBAAkB;IACxBI,8BAA8B,EAAE,KAAM;IACtCC,UAAU,EAAEjE;EAAe,CAC5B,CAAC;AAEN,CAAC;;AAED;AACA;AACA;AAFAkE,OAAA,CAAAxE,kBAAA,GAAAA,kBAAA","ignoreList":[]}
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.Header = void 0;
|
|
7
7
|
var _react = _interopRequireDefault(require("react"));
|
|
8
8
|
var _reactNative = require("react-native");
|
|
9
|
-
var _box = require("../box");
|
|
9
|
+
var _box = _interopRequireDefault(require("../box"));
|
|
10
10
|
var _typography = require("../typography");
|
|
11
11
|
var _iconsSvg = require("../../common/icons-svg");
|
|
12
12
|
var _theme = require("../../styles/theme/theme");
|
|
@@ -44,7 +44,7 @@ const Header = ({
|
|
|
44
44
|
width: widthScreen
|
|
45
45
|
} = _reactNative.Dimensions.get("window");
|
|
46
46
|
const isMobile = widthScreen < 768;
|
|
47
|
-
return /*#__PURE__*/_react.default.createElement(_box.
|
|
47
|
+
return /*#__PURE__*/_react.default.createElement(_box.default, {
|
|
48
48
|
testID: testID,
|
|
49
49
|
width: "100%",
|
|
50
50
|
height: 45,
|
|
@@ -54,7 +54,7 @@ const Header = ({
|
|
|
54
54
|
justifyContent: "space-between",
|
|
55
55
|
alignItems: "center"
|
|
56
56
|
}
|
|
57
|
-
}, /*#__PURE__*/_react.default.createElement(_box.
|
|
57
|
+
}, /*#__PURE__*/_react.default.createElement(_box.default, {
|
|
58
58
|
width: "10%",
|
|
59
59
|
height: 45,
|
|
60
60
|
flexStyle: {
|
|
@@ -78,13 +78,13 @@ const Header = ({
|
|
|
78
78
|
}, title === "Controle de Jornada" || title === "Controle de Carregamento" ? /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_iconsSvg.Icons, {
|
|
79
79
|
icon: "LIST",
|
|
80
80
|
color: "#fff"
|
|
81
|
-
}), /*#__PURE__*/_react.default.createElement(_box.
|
|
81
|
+
}), /*#__PURE__*/_react.default.createElement(_box.default, {
|
|
82
82
|
marginStyle: {
|
|
83
83
|
marginBottom: 8
|
|
84
84
|
}
|
|
85
85
|
})) : arrow && /*#__PURE__*/_react.default.createElement(_iconsSvg.Icons, {
|
|
86
86
|
icon: "ARROW_LEFT"
|
|
87
|
-
}))), /*#__PURE__*/_react.default.createElement(_box.
|
|
87
|
+
}))), /*#__PURE__*/_react.default.createElement(_box.default, {
|
|
88
88
|
height: 45,
|
|
89
89
|
flexStyle: {
|
|
90
90
|
flexDirection: "row",
|
|
@@ -102,7 +102,7 @@ const Header = ({
|
|
|
102
102
|
lineHeight: _theme.theme.fontSizes.lg,
|
|
103
103
|
letterSpacing: "regular",
|
|
104
104
|
marginLeft: _theme.theme.margins["2xl"]
|
|
105
|
-
})), /*#__PURE__*/_react.default.createElement(_box.
|
|
105
|
+
})), /*#__PURE__*/_react.default.createElement(_box.default, {
|
|
106
106
|
marginStyle: {
|
|
107
107
|
marginRight: isMobile ? 10 : 60
|
|
108
108
|
},
|
|
@@ -111,11 +111,11 @@ const Header = ({
|
|
|
111
111
|
},
|
|
112
112
|
width: 50,
|
|
113
113
|
height: 24
|
|
114
|
-
}, permission ? /*#__PURE__*/_react.default.createElement(_box.
|
|
114
|
+
}, permission ? /*#__PURE__*/_react.default.createElement(_box.default, {
|
|
115
115
|
marginStyle: {
|
|
116
116
|
marginTop: 2
|
|
117
117
|
}
|
|
118
|
-
}) : /*#__PURE__*/_react.default.createElement(_box.
|
|
118
|
+
}) : /*#__PURE__*/_react.default.createElement(_box.default, {
|
|
119
119
|
marginStyle: {
|
|
120
120
|
marginTop: 2
|
|
121
121
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_box","_typography","_iconsSvg","_theme","e","__esModule","default","Header","title","color","testID","arrow","permission","bluetoothIsConnected","isInternetReachable","handleNavigation","backgroundColor","isBluetooth","_color$colorText","width","widthScreen","Dimensions","get","isMobile","createElement","
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_box","_typography","_iconsSvg","_theme","e","__esModule","default","Header","title","color","testID","arrow","permission","bluetoothIsConnected","isInternetReachable","handleNavigation","backgroundColor","isBluetooth","_color$colorText","width","widthScreen","Dimensions","get","isMobile","createElement","height","theme","colors","blue","flexStyle","flexDirection","justifyContent","alignItems","paddingStyle","paddingLeft","paddings","md","TouchableOpacity","disabled","onPress","style","Fragment","Icons","icon","marginStyle","marginBottom","flex","Typography","text","size","fontFamily","fonts","inter_bold_700","colorText","neutral","fontWeight","align","lineHeight","fontSizes","lg","letterSpacing","marginLeft","margins","marginRight","borderStyled","borderRadius","marginTop","green","red","orange","exports"],"sources":["index.tsx"],"sourcesContent":["/**\n * IMPORTS\n */\nimport React from \"react\";\nimport { Dimensions, TouchableOpacity } from \"react-native\";\n\n// components\nimport Box from \"../box\";\nimport { Typography } from \"../typography\";\n\n// typings\nimport { IHeaderProps } from \"./interface\";\n\n// commons\nimport { Icons } from \"../../common/icons-svg\";\n\n// styles\nimport { theme } from \"../../styles/theme/theme\";\n\n/**\n * Componente Header para a interação do usuário com ui.\n */\nconst Header: React.FC<IHeaderProps> = ({\n title,\n color,\n testID,\n arrow,\n // propsNav,\n permission,\n bluetoothIsConnected,\n isInternetReachable,\n handleNavigation,\n backgroundColor,\n isBluetooth = false,\n}) => {\n const { width: widthScreen } = Dimensions.get(\"window\");\n const isMobile = widthScreen < 768;\n\n return (\n <Box\n testID={testID}\n width={\"100%\"}\n height={45}\n backgroundColor={backgroundColor ?? theme.colors.blue[400]}\n flexStyle={{ flexDirection: \"row\", justifyContent: \"space-between\", alignItems: \"center\" }}\n >\n <Box\n width={\"10%\"}\n height={45}\n flexStyle={{ flexDirection: \"column\", justifyContent: \"center\", alignItems: \"flex-start\" }}\n paddingStyle={{ paddingLeft: theme.paddings.md }}\n >\n {arrow && title !== \"Login\" && (\n <TouchableOpacity\n disabled={!arrow}\n onPress={handleNavigation}\n style={{\n width: 50,\n height: 45,\n flexDirection: \"column\",\n alignItems: \"flex-start\",\n justifyContent: \"center\",\n }}\n >\n {title === \"Controle de Jornada\" || title === \"Controle de Carregamento\" ? (\n <>\n <Icons icon=\"LIST\" color=\"#fff\" />\n <Box marginStyle={{ marginBottom: 8 }} />\n </>\n ) : (\n arrow && <Icons icon=\"ARROW_LEFT\" />\n )}\n </TouchableOpacity>\n )}\n </Box>\n\n <Box\n height={45}\n flexStyle={{\n flexDirection: \"row\",\n justifyContent: \"center\",\n alignItems: \"center\",\n flex: 0.9,\n }}\n >\n <Typography\n text={title ? title : \"Login\"}\n size={15.4}\n fontFamily={theme.fonts.inter_bold_700}\n color={color?.colorText ?? theme.colors.neutral[25]}\n fontWeight=\"700\"\n align=\"center\"\n lineHeight={theme.fontSizes.lg}\n letterSpacing={\"regular\"}\n marginLeft={theme.margins[\"2xl\"]}\n />\n </Box>\n\n <Box\n marginStyle={{ marginRight: isMobile ? 10 : 60 }}\n borderStyled={{ borderRadius: 10 }}\n width={50}\n height={24}\n >\n {permission ? (\n <Box marginStyle={{ marginTop: 2 }} />\n ) : (\n <Box\n marginStyle={{ marginTop: 2 }}\n flexStyle={{ flexDirection: \"row\", justifyContent: \"flex-end\" }}\n >\n {isBluetooth && (\n <Icons\n icon={bluetoothIsConnected ? \"BLUETOOTH_CONNECTED\" : \"BLUETOOTH\"}\n color={bluetoothIsConnected ? theme.colors.green[400] : theme.colors.red[900]}\n />\n )}\n <Icons\n icon={isInternetReachable ? \"WIFI_HIGH\" : \"WIFI_X\"}\n color={isInternetReachable ? theme.colors.orange[150] : theme.colors.red[800]}\n />\n </Box>\n )}\n </Box>\n </Box>\n );\n};\n\n/**\n * EXPORTS\n */\nexport { Header };\n"],"mappings":";;;;;;AAGA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAGA,IAAAE,IAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,WAAA,GAAAH,OAAA;AAMA,IAAAI,SAAA,GAAAJ,OAAA;AAGA,IAAAK,MAAA,GAAAL,OAAA;AAAiD,SAAAD,uBAAAO,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAjBjD;AACA;AACA;;AAIA;;AAIA;;AAGA;;AAGA;;AAGA;AACA;AACA;AACA,MAAMG,MAA8B,GAAGA,CAAC;EACtCC,KAAK;EACLC,KAAK;EACLC,MAAM;EACNC,KAAK;EACL;EACAC,UAAU;EACVC,oBAAoB;EACpBC,mBAAmB;EACnBC,gBAAgB;EAChBC,eAAe;EACfC,WAAW,GAAG;AAChB,CAAC,KAAK;EAAA,IAAAC,gBAAA;EACJ,MAAM;IAAEC,KAAK,EAAEC;EAAY,CAAC,GAAGC,uBAAU,CAACC,GAAG,CAAC,QAAQ,CAAC;EACvD,MAAMC,QAAQ,GAAGH,WAAW,GAAG,GAAG;EAElC,oBACExB,MAAA,CAAAU,OAAA,CAAAkB,aAAA,CAACxB,IAAA,CAAAM,OAAG;IACFI,MAAM,EAAEA,MAAO;IACfS,KAAK,EAAE,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AU,gBACThB,MAAA,CAAAU,OAAA,CAAAkB,aAAA,CAACxB,IAAA,CAAAM,OAAG;IAACsC,WAAW,EAAE;MAAEsB,SAAS,EAAE;IAAE;EAAE,CAAE,CAAC,gBAEtCtE,MAAA,CAAAU,OAAA,CAAAkB,aAAA,CAACxB,IAAA,CAAAM,OAAG;IACFsC,WAAW,EAAE;MAAEsB,SAAS,EAAE;IAAE,CAAE;IAC9BrC,SAAS,EAAE;MAAEC,aAAa,EAAE,KAAK;MAAEC,cAAc,EAAE;IAAW;EAAE,GAE/Dd,WAAW,iBACVrB,MAAA,CAAAU,OAAA,CAAAkB,aAAA,CAACtB,SAAA,CAAAwC,KAAK;IACJC,IAAI,EAAE9B,oBAAoB,GAAG,qBAAqB,GAAG,WAAY;IACjEJ,KAAK,EAAEI,oBAAoB,GAAGa,YAAK,CAACC,MAAM,CAACwC,KAAK,CAAC,GAAG,CAAC,GAAGzC,YAAK,CAACC,MAAM,CAACyC,GAAG,CAAC,GAAG;EAAE,CAC/E,CACF,eACDxE,MAAA,CAAAU,OAAA,CAAAkB,aAAA,CAACtB,SAAA,CAAAwC,KAAK;IACJC,IAAI,EAAE7B,mBAAmB,GAAG,WAAW,GAAG,QAAS;IACnDL,KAAK,EAAEK,mBAAmB,GAAGY,YAAK,CAACC,MAAM,CAAC0C,MAAM,CAAC,GAAG,CAAC,GAAG3C,YAAK,CAACC,MAAM,CAACyC,GAAG,CAAC,GAAG;EAAE,CAC/E,CACE,CAEJ,CACF,CAAC;AAEV,CAAC;;AAED;AACA;AACA;AAFAE,OAAA,CAAA/D,MAAA,GAAAA,MAAA","ignoreList":[]}
|
|
@@ -6,13 +6,14 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.default = exports.HistoryActivitiesCard = void 0;
|
|
7
7
|
var _react = _interopRequireWildcard(require("react"));
|
|
8
8
|
var _reactNative = require("react-native");
|
|
9
|
-
var _box = require("../box");
|
|
9
|
+
var _box = _interopRequireDefault(require("../box"));
|
|
10
10
|
var _typography = require("../typography");
|
|
11
11
|
var _constants = require("../../common/constants");
|
|
12
12
|
var _asBaseComponent = require("../../@types/as-base-component");
|
|
13
13
|
var _theme = require("../../styles/theme/theme");
|
|
14
14
|
var _getIconByProperty = require("../../utils/get-icon-by-property");
|
|
15
15
|
var _textUtils = require("../../helpers/text-utils");
|
|
16
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
16
17
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
17
18
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
18
19
|
/**
|
|
@@ -42,7 +43,7 @@ const HistoryActivitiesCard = /*#__PURE__*/(0, _react.forwardRef)((props, ref) =
|
|
|
42
43
|
duration,
|
|
43
44
|
avatar
|
|
44
45
|
} = props;
|
|
45
|
-
return /*#__PURE__*/_react.default.createElement(_box.
|
|
46
|
+
return /*#__PURE__*/_react.default.createElement(_box.default, {
|
|
46
47
|
ref: ref,
|
|
47
48
|
testID: testID,
|
|
48
49
|
width: "100%",
|
|
@@ -53,7 +54,7 @@ const HistoryActivitiesCard = /*#__PURE__*/(0, _react.forwardRef)((props, ref) =
|
|
|
53
54
|
marginStyle: {
|
|
54
55
|
marginBottom: _theme.theme.margins["2xs"]
|
|
55
56
|
}
|
|
56
|
-
}, /*#__PURE__*/_react.default.createElement(_box.
|
|
57
|
+
}, /*#__PURE__*/_react.default.createElement(_box.default, {
|
|
57
58
|
width: "100%",
|
|
58
59
|
height: 30,
|
|
59
60
|
backgroundColor: backgroundColor !== null && backgroundColor !== void 0 ? backgroundColor : _theme.theme.colors.green[400],
|
|
@@ -73,7 +74,7 @@ const HistoryActivitiesCard = /*#__PURE__*/(0, _react.forwardRef)((props, ref) =
|
|
|
73
74
|
fontWeight: "500",
|
|
74
75
|
lineHeight: _theme.theme.fontSizes.lg,
|
|
75
76
|
marginLeft: _theme.theme.margins["2xs"]
|
|
76
|
-
})), /*#__PURE__*/_react.default.createElement(_box.
|
|
77
|
+
})), /*#__PURE__*/_react.default.createElement(_box.default, {
|
|
77
78
|
width: "100%",
|
|
78
79
|
flexStyle: {
|
|
79
80
|
flexDirection: "row",
|
|
@@ -82,9 +83,9 @@ const HistoryActivitiesCard = /*#__PURE__*/(0, _react.forwardRef)((props, ref) =
|
|
|
82
83
|
paddingStyle: {
|
|
83
84
|
padding: _theme.theme.paddings["2xs"]
|
|
84
85
|
}
|
|
85
|
-
}, /*#__PURE__*/_react.default.createElement(_box.
|
|
86
|
+
}, /*#__PURE__*/_react.default.createElement(_box.default, {
|
|
86
87
|
width: "100%"
|
|
87
|
-
}, /*#__PURE__*/_react.default.createElement(_box.
|
|
88
|
+
}, /*#__PURE__*/_react.default.createElement(_box.default, {
|
|
88
89
|
flexStyle: {
|
|
89
90
|
flexDirection: "row",
|
|
90
91
|
alignItems: "center"
|
|
@@ -99,9 +100,9 @@ const HistoryActivitiesCard = /*#__PURE__*/(0, _react.forwardRef)((props, ref) =
|
|
|
99
100
|
source: {
|
|
100
101
|
uri: avatar !== null && avatar !== void 0 ? avatar : _constants.IMAGES.IMAGE_ANONIMA
|
|
101
102
|
}
|
|
102
|
-
}), /*#__PURE__*/_react.default.createElement(_box.
|
|
103
|
+
}), /*#__PURE__*/_react.default.createElement(_box.default, {
|
|
103
104
|
width: "100%"
|
|
104
|
-
}, /*#__PURE__*/_react.default.createElement(_box.
|
|
105
|
+
}, /*#__PURE__*/_react.default.createElement(_box.default, {
|
|
105
106
|
width: "84%",
|
|
106
107
|
flexStyle: {
|
|
107
108
|
flexDirection: "row",
|
|
@@ -120,13 +121,13 @@ const HistoryActivitiesCard = /*#__PURE__*/(0, _react.forwardRef)((props, ref) =
|
|
|
120
121
|
size: _theme.theme.fontSizes["2xs"],
|
|
121
122
|
color: _theme.theme.colors.black[180],
|
|
122
123
|
fontFamily: _theme.theme.fonts.inter_regular_400
|
|
123
|
-
})), /*#__PURE__*/_react.default.createElement(_box.
|
|
124
|
+
})), /*#__PURE__*/_react.default.createElement(_box.default, {
|
|
124
125
|
flexStyle: {
|
|
125
126
|
flexDirection: "row",
|
|
126
127
|
justifyContent: "space-between"
|
|
127
128
|
},
|
|
128
129
|
width: "84%"
|
|
129
|
-
}, /*#__PURE__*/_react.default.createElement(_box.
|
|
130
|
+
}, /*#__PURE__*/_react.default.createElement(_box.default, {
|
|
130
131
|
flexStyle: {
|
|
131
132
|
flexDirection: "row"
|
|
132
133
|
}
|
|
@@ -140,7 +141,7 @@ const HistoryActivitiesCard = /*#__PURE__*/(0, _react.forwardRef)((props, ref) =
|
|
|
140
141
|
size: _theme.theme.fontSizes["2xs"],
|
|
141
142
|
color: _theme.theme.colors.black[180],
|
|
142
143
|
fontFamily: _theme.theme.fonts.inter_light_300
|
|
143
|
-
})), (0, _getIconByProperty.getIconByProperty)(referencia, backgroundColor)))))), /*#__PURE__*/_react.default.createElement(_box.
|
|
144
|
+
})), (0, _getIconByProperty.getIconByProperty)(referencia, backgroundColor)))))), /*#__PURE__*/_react.default.createElement(_box.default, {
|
|
144
145
|
width: "100%",
|
|
145
146
|
flexStyle: {
|
|
146
147
|
flexDirection: "row",
|
|
@@ -154,7 +155,7 @@ const HistoryActivitiesCard = /*#__PURE__*/(0, _react.forwardRef)((props, ref) =
|
|
|
154
155
|
borderTopWidth: _theme.theme.borderWidths.thin_medium,
|
|
155
156
|
borderTopColor: _theme.theme.colors.neutral[200]
|
|
156
157
|
}
|
|
157
|
-
}, /*#__PURE__*/_react.default.createElement(_box.
|
|
158
|
+
}, /*#__PURE__*/_react.default.createElement(_box.default, {
|
|
158
159
|
marginStyle: {
|
|
159
160
|
marginRight: 2
|
|
160
161
|
}
|
|
@@ -168,7 +169,7 @@ const HistoryActivitiesCard = /*#__PURE__*/(0, _react.forwardRef)((props, ref) =
|
|
|
168
169
|
size: _theme.theme.fontSizes.sm,
|
|
169
170
|
color: _theme.theme.colors.black[100],
|
|
170
171
|
fontFamily: _theme.theme.fonts.inter_semi_bold_600
|
|
171
|
-
})), /*#__PURE__*/_react.default.createElement(_box.
|
|
172
|
+
})), /*#__PURE__*/_react.default.createElement(_box.default, {
|
|
172
173
|
flexStyle: {
|
|
173
174
|
flexDirection: "column",
|
|
174
175
|
alignItems: "flex-end",
|