react-native-exp-fig 0.1.22 → 0.1.23
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/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/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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_box","_typography","_constants","_asBaseComponent","_theme","_getIconByProperty","_textUtils","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","HistoryActivitiesCard","forwardRef","props","ref","testID","backgroundColor","idAtividade","name_activitie","referencia","type_activitie","data_start","data_end","duration","avatar","createElement","Box","width","theme","colors","neutral","borderStyled","borderRadius","borderWidths","thick_medium","marginStyle","marginBottom","margins","height","green","borderTopLeftRadius","thin_bold","borderTopRightRadius","borderColor","blue","flexStyle","justifyContent","Typography","text","color","size","fontSizes","xs","fontFamily","fonts","inter_semi_bold_600","fontWeight","lineHeight","lg","marginLeft","flexDirection","paddingStyle","padding","paddings","alignItems","Image","style","marginRight","source","uri","IMAGES","IMAGE_ANONIMA","flexWrap","flexShrink","black","inter_regular_400","inter_light_300","getIconByProperty","borderTopWidth","thin_medium","borderTopColor","gray","truncateText","sm","displayName","HistoryActivitiesCardComponent","exports","asBaseComponent","_default"],"sources":["index.tsx"],"sourcesContent":["/**\n * IMPORTS\n */\nimport React, { forwardRef } from \"react\";\nimport { Image } from \"react-native\";\n\n// components\nimport { Box } from \"../box\";\nimport { Typography } from \"../typography\";\n\n//commons/ icons\nimport { IMAGES } from \"../../common/constants\";\n\n// typings\nimport type { ICardActivitiesWeek } from \"./interface\";\nimport { asBaseComponent } from \"../../@types/as-base-component\";\n\n// styles\nimport { theme } from \"../../styles/theme/theme\";\nimport { getIconByProperty } from \"../../utils/get-icon-by-property\";\n\n// helpers\nimport { truncateText } from \"../../helpers/text-utils\";\n\nconst HistoryActivitiesCard = forwardRef<any, ICardActivitiesWeek>(\n (props, ref): React.ReactElement => {\n const {\n testID,\n backgroundColor,\n idAtividade,\n name_activitie,\n referencia,\n type_activitie,\n data_start,\n data_end,\n duration,\n avatar,\n } = props;\n return (\n <Box\n ref={ref}\n testID={testID}\n width={\"100%\"}\n backgroundColor={theme.colors.neutral[25]}\n borderStyled={{\n borderRadius: theme.borderWidths.thick_medium,\n }}\n marginStyle={{\n marginBottom: theme.margins[\"2xs\"],\n }}\n >\n <Box\n width={\"100%\"}\n height={30}\n backgroundColor={backgroundColor ?? theme.colors.green[400]}\n borderStyled={{\n borderTopLeftRadius: theme.borderWidths.thin_bold,\n borderTopRightRadius: theme.borderWidths.thin_bold,\n borderColor: theme.colors.blue[400],\n }}\n flexStyle={{\n justifyContent: \"center\",\n }}\n >\n <Typography\n text={`ATIVIDADE ${!data_end ? \"EM ANDAMENTO\" : \"\"} #${idAtividade}`}\n color={theme.colors.neutral[25]}\n size={theme.fontSizes.xs}\n fontFamily={theme.fonts.inter_semi_bold_600}\n fontWeight={\"500\"}\n lineHeight={theme.fontSizes.lg}\n marginLeft={theme.margins[\"2xs\"]}\n />\n </Box>\n <Box\n width={\"100%\"}\n flexStyle={{\n flexDirection: \"row\",\n justifyContent: \"space-between\",\n }}\n paddingStyle={{\n padding: theme.paddings[\"2xs\"],\n }}\n >\n <Box width={\"100%\"}>\n <Box flexStyle={{ flexDirection: \"row\", alignItems: \"center\" }}>\n <Image\n style={{\n width: 45,\n height: 45,\n borderRadius: 10,\n marginRight: 10,\n }}\n source={{ uri: avatar ?? IMAGES.IMAGE_ANONIMA }}\n />\n\n <Box width={\"100%\"}>\n <Box\n width={\"84%\"}\n flexStyle={{\n flexDirection: \"row\",\n flexWrap: \"wrap\",\n }}\n >\n <Typography\n style={{ flexShrink: 1 }}\n text={`Início: `}\n size={theme.fontSizes.xs}\n color={theme.colors.black[10]}\n fontFamily={theme.fonts.inter_semi_bold_600}\n />\n <Typography\n text={`${data_start} ás ${data_end ?? \"00/00/0000 00:00\"}`}\n size={theme.fontSizes[\"2xs\"]}\n color={theme.colors.black[180]}\n fontFamily={theme.fonts.inter_regular_400}\n />\n </Box>\n\n <Box\n flexStyle={{\n flexDirection: \"row\",\n justifyContent: \"space-between\",\n }}\n width={\"84%\"}\n >\n <Box flexStyle={{ flexDirection: \"row\" }}>\n <Typography\n text={`Duração: `}\n size={theme.fontSizes.xs}\n color={theme.colors.black[10]}\n fontFamily={theme.fonts.inter_semi_bold_600}\n />\n\n <Typography\n text={`${duration ?? \"00:00\"}`}\n size={theme.fontSizes[\"2xs\"]}\n color={theme.colors.black[180]}\n fontFamily={theme.fonts.inter_light_300}\n />\n </Box>\n\n {getIconByProperty(referencia, backgroundColor)}\n </Box>\n </Box>\n </Box>\n </Box>\n </Box>\n\n <Box\n width={\"100%\"}\n flexStyle={{\n flexDirection: \"row\",\n justifyContent: \"space-between\",\n alignItems: \"center\",\n }}\n paddingStyle={{\n padding: theme.paddings[\"2xs\"],\n }}\n borderStyled={{\n borderTopWidth: theme.borderWidths.thin_medium,\n borderTopColor: theme.colors.neutral[200],\n }}\n >\n <Box marginStyle={{ marginRight: 2 }}>\n <Typography\n text={`Atividade:`}\n size={theme.fontSizes.xs}\n color={theme.colors.gray[700]}\n fontFamily={theme.fonts.inter_regular_400}\n />\n\n <Typography\n text={truncateText(name_activitie ?? \"Sem informação\")}\n size={theme.fontSizes.sm}\n color={theme.colors.black[100]}\n fontFamily={theme.fonts.inter_semi_bold_600}\n />\n </Box>\n\n <Box\n flexStyle={{\n flexDirection: \"column\",\n alignItems: \"flex-end\",\n justifyContent: \"center\",\n }}\n >\n <Typography\n text={`Tipo atividade: `}\n size={theme.fontSizes.xs}\n color={theme.colors.gray[700]}\n fontFamily={theme.fonts.inter_regular_400}\n />\n\n <Typography\n text={`${type_activitie}`}\n size={theme.fontSizes.sm}\n color={theme.colors.black[100]}\n fontFamily={theme.fonts.inter_semi_bold_600}\n marginLeft={4}\n />\n </Box>\n </Box>\n </Box>\n );\n }\n);\n\nHistoryActivitiesCard.displayName = \"HistoryActivitiesCard\";\n\nconst HistoryActivitiesCardComponent = asBaseComponent(HistoryActivitiesCard);\n\n/**\n * Componente Box para a interação da ui.\n */\nexport default HistoryActivitiesCardComponent;\nexport { HistoryActivitiesCardComponent as HistoryActivitiesCard };\n"],"mappings":";;;;;;AAGA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAGA,IAAAE,IAAA,GAAAF,OAAA;AACA,IAAAG,WAAA,GAAAH,OAAA;AAGA,IAAAI,UAAA,GAAAJ,OAAA;AAIA,IAAAK,gBAAA,GAAAL,OAAA;AAGA,IAAAM,MAAA,GAAAN,OAAA;AACA,IAAAO,kBAAA,GAAAP,OAAA;AAGA,IAAAQ,UAAA,GAAAR,OAAA;AAAwD,SAAAS,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAX,wBAAAW,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAK,OAAA,EAAAL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AAA,GAAAF,OAAA,CAAAzF,OAAA,GAGewF,8BAA8B","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_box","_interopRequireDefault","_typography","_constants","_asBaseComponent","_theme","_getIconByProperty","_textUtils","e","__esModule","default","_getRequireWildcardCache","WeakMap","r","t","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","HistoryActivitiesCard","forwardRef","props","ref","testID","backgroundColor","idAtividade","name_activitie","referencia","type_activitie","data_start","data_end","duration","avatar","createElement","width","theme","colors","neutral","borderStyled","borderRadius","borderWidths","thick_medium","marginStyle","marginBottom","margins","height","green","borderTopLeftRadius","thin_bold","borderTopRightRadius","borderColor","blue","flexStyle","justifyContent","Typography","text","color","size","fontSizes","xs","fontFamily","fonts","inter_semi_bold_600","fontWeight","lineHeight","lg","marginLeft","flexDirection","paddingStyle","padding","paddings","alignItems","Image","style","marginRight","source","uri","IMAGES","IMAGE_ANONIMA","flexWrap","flexShrink","black","inter_regular_400","inter_light_300","getIconByProperty","borderTopWidth","thin_medium","borderTopColor","gray","truncateText","sm","displayName","HistoryActivitiesCardComponent","exports","asBaseComponent","_default"],"sources":["index.tsx"],"sourcesContent":["/**\n * IMPORTS\n */\nimport React, { forwardRef } from \"react\";\nimport { Image } from \"react-native\";\n\n// components\nimport Box from \"../box\";\nimport { Typography } from \"../typography\";\n\n//commons/ icons\nimport { IMAGES } from \"../../common/constants\";\n\n// typings\nimport type { ICardActivitiesWeek } from \"./interface\";\nimport { asBaseComponent } from \"../../@types/as-base-component\";\n\n// styles\nimport { theme } from \"../../styles/theme/theme\";\nimport { getIconByProperty } from \"../../utils/get-icon-by-property\";\n\n// helpers\nimport { truncateText } from \"../../helpers/text-utils\";\n\nconst HistoryActivitiesCard = forwardRef<any, ICardActivitiesWeek>(\n (props, ref): React.ReactElement => {\n const {\n testID,\n backgroundColor,\n idAtividade,\n name_activitie,\n referencia,\n type_activitie,\n data_start,\n data_end,\n duration,\n avatar,\n } = props;\n return (\n <Box\n ref={ref}\n testID={testID}\n width={\"100%\"}\n backgroundColor={theme.colors.neutral[25]}\n borderStyled={{\n borderRadius: theme.borderWidths.thick_medium,\n }}\n marginStyle={{\n marginBottom: theme.margins[\"2xs\"],\n }}\n >\n <Box\n width={\"100%\"}\n height={30}\n backgroundColor={backgroundColor ?? theme.colors.green[400]}\n borderStyled={{\n borderTopLeftRadius: theme.borderWidths.thin_bold,\n borderTopRightRadius: theme.borderWidths.thin_bold,\n borderColor: theme.colors.blue[400],\n }}\n flexStyle={{\n justifyContent: \"center\",\n }}\n >\n <Typography\n text={`ATIVIDADE ${!data_end ? \"EM ANDAMENTO\" : \"\"} #${idAtividade}`}\n color={theme.colors.neutral[25]}\n size={theme.fontSizes.xs}\n fontFamily={theme.fonts.inter_semi_bold_600}\n fontWeight={\"500\"}\n lineHeight={theme.fontSizes.lg}\n marginLeft={theme.margins[\"2xs\"]}\n />\n </Box>\n <Box\n width={\"100%\"}\n flexStyle={{\n flexDirection: \"row\",\n justifyContent: \"space-between\",\n }}\n paddingStyle={{\n padding: theme.paddings[\"2xs\"],\n }}\n >\n <Box width={\"100%\"}>\n <Box flexStyle={{ flexDirection: \"row\", alignItems: \"center\" }}>\n <Image\n style={{\n width: 45,\n height: 45,\n borderRadius: 10,\n marginRight: 10,\n }}\n source={{ uri: avatar ?? IMAGES.IMAGE_ANONIMA }}\n />\n\n <Box width={\"100%\"}>\n <Box\n width={\"84%\"}\n flexStyle={{\n flexDirection: \"row\",\n flexWrap: \"wrap\",\n }}\n >\n <Typography\n style={{ flexShrink: 1 }}\n text={`Início: `}\n size={theme.fontSizes.xs}\n color={theme.colors.black[10]}\n fontFamily={theme.fonts.inter_semi_bold_600}\n />\n <Typography\n text={`${data_start} ás ${data_end ?? \"00/00/0000 00:00\"}`}\n size={theme.fontSizes[\"2xs\"]}\n color={theme.colors.black[180]}\n fontFamily={theme.fonts.inter_regular_400}\n />\n </Box>\n\n <Box\n flexStyle={{\n flexDirection: \"row\",\n justifyContent: \"space-between\",\n }}\n width={\"84%\"}\n >\n <Box flexStyle={{ flexDirection: \"row\" }}>\n <Typography\n text={`Duração: `}\n size={theme.fontSizes.xs}\n color={theme.colors.black[10]}\n fontFamily={theme.fonts.inter_semi_bold_600}\n />\n\n <Typography\n text={`${duration ?? \"00:00\"}`}\n size={theme.fontSizes[\"2xs\"]}\n color={theme.colors.black[180]}\n fontFamily={theme.fonts.inter_light_300}\n />\n </Box>\n\n {getIconByProperty(referencia, backgroundColor)}\n </Box>\n </Box>\n </Box>\n </Box>\n </Box>\n\n <Box\n width={\"100%\"}\n flexStyle={{\n flexDirection: \"row\",\n justifyContent: \"space-between\",\n alignItems: \"center\",\n }}\n paddingStyle={{\n padding: theme.paddings[\"2xs\"],\n }}\n borderStyled={{\n borderTopWidth: theme.borderWidths.thin_medium,\n borderTopColor: theme.colors.neutral[200],\n }}\n >\n <Box marginStyle={{ marginRight: 2 }}>\n <Typography\n text={`Atividade:`}\n size={theme.fontSizes.xs}\n color={theme.colors.gray[700]}\n fontFamily={theme.fonts.inter_regular_400}\n />\n\n <Typography\n text={truncateText(name_activitie ?? \"Sem informação\")}\n size={theme.fontSizes.sm}\n color={theme.colors.black[100]}\n fontFamily={theme.fonts.inter_semi_bold_600}\n />\n </Box>\n\n <Box\n flexStyle={{\n flexDirection: \"column\",\n alignItems: \"flex-end\",\n justifyContent: \"center\",\n }}\n >\n <Typography\n text={`Tipo atividade: `}\n size={theme.fontSizes.xs}\n color={theme.colors.gray[700]}\n fontFamily={theme.fonts.inter_regular_400}\n />\n\n <Typography\n text={`${type_activitie}`}\n size={theme.fontSizes.sm}\n color={theme.colors.black[100]}\n fontFamily={theme.fonts.inter_semi_bold_600}\n marginLeft={4}\n />\n </Box>\n </Box>\n </Box>\n );\n }\n);\n\nHistoryActivitiesCard.displayName = \"HistoryActivitiesCard\";\n\nconst HistoryActivitiesCardComponent = asBaseComponent(HistoryActivitiesCard);\n\n/**\n * Componente Box para a interação da ui.\n */\nexport default HistoryActivitiesCardComponent;\nexport { HistoryActivitiesCardComponent as HistoryActivitiesCard };\n"],"mappings":";;;;;;AAGA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAGA,IAAAE,IAAA,GAAAC,sBAAA,CAAAH,OAAA;AACA,IAAAI,WAAA,GAAAJ,OAAA;AAGA,IAAAK,UAAA,GAAAL,OAAA;AAIA,IAAAM,gBAAA,GAAAN,OAAA;AAGA,IAAAO,MAAA,GAAAP,OAAA;AACA,IAAAQ,kBAAA,GAAAR,OAAA;AAGA,IAAAS,UAAA,GAAAT,OAAA;AAAwD,SAAAG,uBAAAO,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAG,yBAAAH,CAAA,6BAAAI,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAD,wBAAA,YAAAA,CAAAH,CAAA,WAAAA,CAAA,GAAAM,CAAA,GAAAD,CAAA,KAAAL,CAAA;AAAA,SAAAX,wBAAAW,CAAA,EAAAK,CAAA,SAAAA,CAAA,IAAAL,CAAA,IAAAA,CAAA,CAAAC,UAAA,SAAAD,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAE,OAAA,EAAAF,CAAA,QAAAM,CAAA,GAAAH,wBAAA,CAAAE,CAAA,OAAAC,CAAA,IAAAA,CAAA,CAAAC,GAAA,CAAAP,CAAA,UAAAM,CAAA,CAAAE,GAAA,CAAAR,CAAA,OAAAS,CAAA,KAAAC,SAAA,UAAAC,CAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,CAAA,IAAAf,CAAA,oBAAAe,CAAA,OAAAC,cAAA,CAAAC,IAAA,CAAAjB,CAAA,EAAAe,CAAA,SAAAG,CAA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AU;MACtBlB,cAAc,EAAE;IAClB;EAAE,gBAEFlE,MAAA,CAAAc,OAAA,CAAAgC,aAAA,CAACxC,WAAA,CAAA6D,UAAU;IACTC,IAAI,EAAE,kBAAmB;IACzBE,IAAI,EAAEtB,YAAK,CAACuB,SAAS,CAACC,EAAG;IACzBH,KAAK,EAAErB,YAAK,CAACC,MAAM,CAACoD,IAAI,CAAC,GAAG,CAAE;IAC9B5B,UAAU,EAAEzB,YAAK,CAAC0B,KAAK,CAACqB;EAAkB,CAC3C,CAAC,eAEF/F,MAAA,CAAAc,OAAA,CAAAgC,aAAA,CAACxC,WAAA,CAAA6D,UAAU;IACTC,IAAI,EAAE,GAAG3B,cAAc,EAAG;IAC1B6B,IAAI,EAAEtB,YAAK,CAACuB,SAAS,CAACgC,EAAG;IACzBlC,KAAK,EAAErB,YAAK,CAACC,MAAM,CAAC6C,KAAK,CAAC,GAAG,CAAE;IAC/BrB,UAAU,EAAEzB,YAAK,CAAC0B,KAAK,CAACC,mBAAoB;IAC5CI,UAAU,EAAE;EAAE,CACf,CACE,CACF,CACF,CAAC;AAEV,CACF,CAAC;AAED/C,qBAAqB,CAACwE,WAAW,GAAG,uBAAuB;AAE3D,MAAMC,8BAA8B,GAAAC,OAAA,CAAA1E,qBAAA,GAAG,IAAA2E,gCAAe,EAAC3E,qBAAqB,CAAC;;AAE7E;AACA;AACA;AAFA,IAAA4E,QAAA,GAAAF,OAAA,CAAA5F,OAAA,GAGe2F,8BAA8B","ignoreList":[]}
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.HistoryDetails = void 0;
|
|
7
7
|
var _react = _interopRequireDefault(require("react"));
|
|
8
|
-
var _box = require("../box");
|
|
8
|
+
var _box = _interopRequireDefault(require("../box"));
|
|
9
9
|
var _typography = require("../typography");
|
|
10
10
|
var _theme = require("../../styles/theme/theme");
|
|
11
11
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
@@ -25,13 +25,13 @@ const HistoryDetails = ({
|
|
|
25
25
|
date = "24/03/2025",
|
|
26
26
|
duracao = "00:30"
|
|
27
27
|
}) => {
|
|
28
|
-
return /*#__PURE__*/_react.default.createElement(_box.
|
|
28
|
+
return /*#__PURE__*/_react.default.createElement(_box.default, {
|
|
29
29
|
width: "100%",
|
|
30
30
|
borderStyled: {
|
|
31
31
|
borderRadius: 8
|
|
32
32
|
},
|
|
33
33
|
backgroundColor: _theme.theme.colors.blue[400]
|
|
34
|
-
}, /*#__PURE__*/_react.default.createElement(_box.
|
|
34
|
+
}, /*#__PURE__*/_react.default.createElement(_box.default, {
|
|
35
35
|
flexStyle: {
|
|
36
36
|
flexDirection: "column",
|
|
37
37
|
justifyContent: "flex-start",
|
|
@@ -64,10 +64,10 @@ const HistoryDetails = ({
|
|
|
64
64
|
lineHeight: _theme.theme.fontSizes.lg,
|
|
65
65
|
letterSpacing: "regular",
|
|
66
66
|
numberOfLines: 1
|
|
67
|
-
})), /*#__PURE__*/_react.default.createElement(_box.
|
|
67
|
+
})), /*#__PURE__*/_react.default.createElement(_box.default, {
|
|
68
68
|
height: 1,
|
|
69
69
|
backgroundColor: _theme.theme.colors.gray[950]
|
|
70
|
-
}), /*#__PURE__*/_react.default.createElement(_box.
|
|
70
|
+
}), /*#__PURE__*/_react.default.createElement(_box.default, {
|
|
71
71
|
flexStyle: {
|
|
72
72
|
flexDirection: "row",
|
|
73
73
|
justifyContent: "space-between",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_box","_typography","_theme","e","__esModule","default","HistoryDetails","numero","local","date","duracao","createElement","
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_box","_typography","_theme","e","__esModule","default","HistoryDetails","numero","local","date","duracao","createElement","width","borderStyled","borderRadius","backgroundColor","theme","colors","blue","flexStyle","flexDirection","justifyContent","alignItems","paddingStyle","padding","paddings","xs","Typography","text","size","fontSizes","sm","fontFamily","fonts","inter_semi_bold_600","fontWeight","color","neutral","lineHeight","xl","letterSpacing","lg","inter_regular_400","numberOfLines","height","gray","align","inter_medium_500","exports"],"sources":["index.tsx"],"sourcesContent":["/**\n * IMPORTS\n */\nimport React from \"react\";\n\n// components\nimport Box from \"../box\";\nimport { Typography } from \"../typography\";\n\n// typings\nimport { IHistoryDetails } from \"./interface\";\n\n// styles\nimport { theme } from \"../../styles/theme/theme\";\n\nconst HistoryDetails: React.FC<IHistoryDetails> = ({\n numero = \"01020304050607\",\n local = \"Doca 1, Pátio 02 - Usimais (Ipatinga)\",\n date = \"24/03/2025\",\n duracao = \"00:30\",\n}) => {\n return (\n <Box width=\"100%\" borderStyled={{ borderRadius: 8 }} backgroundColor={theme.colors.blue[400]}>\n <Box\n flexStyle={{\n flexDirection: \"column\",\n justifyContent: \"flex-start\",\n alignItems: \"flex-start\",\n }}\n paddingStyle={{ padding: theme.paddings.xs }}\n >\n <Typography\n text={`Carregamento - #${numero}`}\n size={theme.fontSizes.sm}\n fontFamily={theme.fonts.inter_semi_bold_600}\n fontWeight=\"600\"\n color={theme.colors.neutral[25]}\n lineHeight={theme.fontSizes.xl}\n letterSpacing={\"regular\"}\n />\n\n <Typography\n text={local}\n color={theme.colors.neutral[25]}\n size={theme.fontSizes.xs}\n lineHeight={theme.fontSizes.lg}\n fontFamily={theme.fonts.inter_regular_400}\n letterSpacing={\"regular\"}\n numberOfLines={1}\n />\n <Typography\n text={`Data carregamento: ${date}`}\n color={theme.colors.neutral[25]}\n size={theme.fontSizes.xs}\n fontFamily={theme.fonts.inter_regular_400}\n lineHeight={theme.fontSizes.lg}\n letterSpacing={\"regular\"}\n numberOfLines={1}\n />\n </Box>\n\n <Box height={1} backgroundColor={theme.colors.gray[950]} />\n\n <Box\n flexStyle={{\n flexDirection: \"row\",\n justifyContent: \"space-between\",\n alignItems: \"center\",\n }}\n paddingStyle={{ padding: theme.paddings.xs }}\n >\n <Typography\n text={\"DURAÇÃO:\"}\n color={theme.colors.neutral[25]}\n size={24}\n fontFamily={theme.fonts.inter_regular_400}\n fontWeight=\"400\"\n lineHeight={theme.fontSizes[\"3xl\"]}\n letterSpacing={\"regular\"}\n />\n <Typography\n text={duracao}\n color={theme.colors.neutral[25]}\n size={26}\n align=\"left\"\n fontFamily={theme.fonts.inter_medium_500}\n fontWeight=\"500\"\n lineHeight={theme.fontSizes[\"3xl\"]}\n letterSpacing={\"regular\"}\n />\n </Box>\n </Box>\n );\n};\n\n/**\n * EXPORTS\n */\nexport { HistoryDetails };\n"],"mappings":";;;;;;AAGA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AAGA,IAAAC,IAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,WAAA,GAAAF,OAAA;AAMA,IAAAG,MAAA,GAAAH,OAAA;AAAiD,SAAAD,uBAAAK,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAbjD;AACA;AACA;;AAGA;;AAIA;;AAGA;;AAGA,MAAMG,cAAyC,GAAGA,CAAC;EACjDC,MAAM,GAAG,gBAAgB;EACzBC,KAAK,GAAG,uCAAuC;EAC/CC,IAAI,GAAG,YAAY;EACnBC,OAAO,GAAG;AACZ,CAAC,KAAK;EACJ,oBACEb,MAAA,CAAAQ,OAAA,CAAAM,aAAA,CAACX,IAAA,CAAAK,OAAG;IAACO,KAAK,EAAC,MAAM;IAACC,YAAY,EAAE;MAAEC,YAAY,EAAE;IAAE,CAAE;IAACC,eAAe,EAAEC,YAAK,CAACC,MAAM,CAACC,IAAI,CAAC,GAAG;EAAE,gBAC3FrB,MAAA,CAAAQ,OAAA,CAAAM,aAAA,CAACX,IAAA,CAAAK,OAAG;IACFc,SAAS,EAAE;MACTC,aAAa,EAAE,QAAQ;MACvBC,cAAc,EAAE,YAAY;MAC5BC,UAAU,EAAE;IACd,CAAE;IACFC,YAAY,EAAE;MAAEC,OAAO,EAAER,YAAK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Q,OAAA,CAAA1C,cAAA,GAAAA,cAAA","ignoreList":[]}
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.ImageCaptureWithRemove = 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 _iconsSvg = require("../../common/icons-svg");
|
|
11
11
|
var _theme = require("../../styles/theme/theme");
|
|
12
12
|
var _returnColor = require("../../utils/status-color/return-color");
|
|
@@ -47,7 +47,7 @@ const ImageCaptureWithRemove = ({
|
|
|
47
47
|
},
|
|
48
48
|
onPress: handleTakePhoto,
|
|
49
49
|
disabled: !!foto
|
|
50
|
-
}, /*#__PURE__*/_react.default.createElement(_box.
|
|
50
|
+
}, /*#__PURE__*/_react.default.createElement(_box.default, {
|
|
51
51
|
width: width,
|
|
52
52
|
height: height,
|
|
53
53
|
flexStyle: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_box","_iconsSvg","_theme","_returnColor","e","__esModule","default","ImageCaptureWithRemove","width","height","foto","useRemove","status","handleTakePhoto","onRemove","statusColor","createElement","TouchableOpacity","testID","activeOpacity","style","position","onPress","disabled","
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_box","_iconsSvg","_theme","_returnColor","e","__esModule","default","ImageCaptureWithRemove","width","height","foto","useRemove","status","handleTakePhoto","onRemove","statusColor","createElement","TouchableOpacity","testID","activeOpacity","style","position","onPress","disabled","flexStyle","flexDirection","alignItems","justifyContent","borderStyled","borderWidth","theme","borderWidths","thick","thin","borderRadius","fontSizes","md","borderColor","getBorderColor","colors","blue","Fragment","Image","resizeMode","source","uri","top","right","Icons","icon","color","red","size","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\";\n\n// comons / icons\nimport { Icons } from \"../../common/icons-svg\";\n\n// typings\nimport { IImageCaptureWithRemoveProps } from \"./interface\";\n\n// styles\nimport { theme } from \"../../styles/theme/theme\";\n\n// utils\nimport { getBorderColor } from \"../../utils/status-color/return-color\";\n\n/**\n *\n * Componente ImageCaptureWithRemove para a interação do usuário com ui.\n */\nconst ImageCaptureWithRemove: React.FC<IImageCaptureWithRemoveProps> = ({\n width = 50,\n height = 50,\n foto = null,\n useRemove = true,\n status,\n handleTakePhoto,\n onRemove,\n}: IImageCaptureWithRemoveProps) => {\n const statusColor = status === \"Cancelado\" || status === \"Pendente\";\n\n return (\n <TouchableOpacity\n testID=\"image-capture-touchable\"\n activeOpacity={0.7}\n style={{ position: \"relative\" }}\n onPress={handleTakePhoto}\n disabled={!!foto}\n >\n <Box\n width={width}\n height={height}\n flexStyle={{ flexDirection: \"row\", alignItems: \"center\", justifyContent: \"center\" }}\n testID=\"plus-icon-box\"\n borderStyled={{\n borderWidth: statusColor ? theme.borderWidths.thick : theme.borderWidths.thin,\n borderRadius: theme.fontSizes.md,\n borderColor: statusColor ? getBorderColor(status) : theme.colors.blue[400],\n }}\n >\n {foto ? (\n <>\n <Image\n testID=\"captured-image\"\n style={{\n width: \"100%\",\n height: \"100%\",\n borderRadius: theme.fontSizes.md,\n resizeMode: \"cover\",\n }}\n source={{\n uri: foto,\n }}\n />\n\n {useRemove && (\n <TouchableOpacity\n testID=\"remove-button\"\n style={{ position: \"absolute\", top: 2, right: 4 }}\n onPress={onRemove}\n >\n <Icons icon=\"X_CIRCLE\" color={theme.colors.red[400]} size={18} />\n </TouchableOpacity>\n )}\n </>\n ) : (\n <Icons icon=\"PLUS\" color={theme.colors.blue[400]} />\n )}\n </Box>\n </TouchableOpacity>\n );\n};\n\n/**\n * EXPORTS\n */\nexport { ImageCaptureWithRemove };\n"],"mappings":";;;;;;AAGA,IAAAA,MAAA,GAAAC,s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EvB,CAAC;;AAED;AACA;AACA;AAFAa,OAAA,CAAA9C,sBAAA,GAAAA,sBAAA","ignoreList":[]}
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.Input = 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");
|
|
@@ -82,13 +82,13 @@ const Input = ({
|
|
|
82
82
|
right: 35,
|
|
83
83
|
top: 65
|
|
84
84
|
};
|
|
85
|
-
return /*#__PURE__*/_react.default.createElement(_box.
|
|
85
|
+
return /*#__PURE__*/_react.default.createElement(_box.default, {
|
|
86
86
|
paddingStyle: paddingStyle,
|
|
87
87
|
marginStyle: marginStyle,
|
|
88
88
|
style: {
|
|
89
89
|
position: "relative"
|
|
90
90
|
}
|
|
91
|
-
}, /*#__PURE__*/_react.default.createElement(_box.
|
|
91
|
+
}, /*#__PURE__*/_react.default.createElement(_box.default, null, /*#__PURE__*/_react.default.createElement(_typography.Typography, {
|
|
92
92
|
size: _theme.theme.fontSizes.md,
|
|
93
93
|
text: String(textLabel),
|
|
94
94
|
color: (_color$colorText = color === null || color === void 0 ? void 0 : color.colorText) !== null && _color$colorText !== void 0 ? _color$colorText : _theme.theme.colors.gray[900]
|
|
@@ -101,11 +101,11 @@ const Input = ({
|
|
|
101
101
|
placeholder: placeholder,
|
|
102
102
|
secureTextEntry: secureTextEntry,
|
|
103
103
|
color: _theme.theme.colors.gray[900]
|
|
104
|
-
}, props))), append && /*#__PURE__*/_react.default.createElement(_box.
|
|
104
|
+
}, props))), append && /*#__PURE__*/_react.default.createElement(_box.default, null, /*#__PURE__*/_react.default.createElement(_typography.Typography, {
|
|
105
105
|
size: _theme.theme.fontSizes["lg"],
|
|
106
106
|
text: (_append$appendText = append.appendText) !== null && _append$appendText !== void 0 ? _append$appendText : "",
|
|
107
107
|
color: (_append$appendColor = append.appendColor) !== null && _append$appendColor !== void 0 ? _append$appendColor : "#000"
|
|
108
|
-
})), name === "label" && /*#__PURE__*/_react.default.createElement(_box.
|
|
108
|
+
})), name === "label" && /*#__PURE__*/_react.default.createElement(_box.default, {
|
|
109
109
|
backgroundColor: "transparent",
|
|
110
110
|
style: positionLabel
|
|
111
111
|
}, /*#__PURE__*/_react.default.createElement(_typography.Typography, {
|
|
@@ -116,7 +116,7 @@ const Input = ({
|
|
|
116
116
|
color: _theme.theme.colors.blue[500],
|
|
117
117
|
lineHeight: 24,
|
|
118
118
|
letterSpacing: "regular"
|
|
119
|
-
})), name === "password" || name === "senha" && /*#__PURE__*/_react.default.createElement(_box.
|
|
119
|
+
})), name === "password" || name === "senha" && /*#__PURE__*/_react.default.createElement(_box.default, {
|
|
120
120
|
backgroundColor: "transparent",
|
|
121
121
|
style: positionIconPassword
|
|
122
122
|
}, /*#__PURE__*/_react.default.createElement(_reactNative.TouchableOpacity, {
|
|
@@ -127,7 +127,7 @@ const Input = ({
|
|
|
127
127
|
size: _theme.theme.fontSizes["3xl"],
|
|
128
128
|
color: _theme.theme.colors.blue[500],
|
|
129
129
|
icon: isVisiblyPassword ? "EYE" : "EYE_SLASH"
|
|
130
|
-
}))), name === "data" && /*#__PURE__*/_react.default.createElement(_box.
|
|
130
|
+
}))), name === "data" && /*#__PURE__*/_react.default.createElement(_box.default, {
|
|
131
131
|
width: 40,
|
|
132
132
|
height: 70,
|
|
133
133
|
backgroundColor: "transparent",
|
|
@@ -137,7 +137,7 @@ const Input = ({
|
|
|
137
137
|
size: _theme.theme.fontSizes["lg"],
|
|
138
138
|
color: _theme.theme.colors.gray[700],
|
|
139
139
|
icon: "CALENDAR"
|
|
140
|
-
})), name === "hours" && /*#__PURE__*/_react.default.createElement(_box.
|
|
140
|
+
})), name === "hours" && /*#__PURE__*/_react.default.createElement(_box.default, {
|
|
141
141
|
width: 40,
|
|
142
142
|
height: 70,
|
|
143
143
|
backgroundColor: "transparent",
|
|
@@ -146,7 +146,7 @@ const Input = ({
|
|
|
146
146
|
size: _theme.theme.fontSizes["lg"],
|
|
147
147
|
color: _theme.theme.colors.gray[700],
|
|
148
148
|
icon: "TIMER"
|
|
149
|
-
})), name === "litragem" && /*#__PURE__*/_react.default.createElement(_box.
|
|
149
|
+
})), name === "litragem" && /*#__PURE__*/_react.default.createElement(_box.default, {
|
|
150
150
|
width: 40,
|
|
151
151
|
height: 70,
|
|
152
152
|
backgroundColor: "transparent",
|
|
@@ -155,7 +155,7 @@ const Input = ({
|
|
|
155
155
|
size: _theme.theme.fontSizes["lg"],
|
|
156
156
|
color: _theme.theme.colors.gray[700],
|
|
157
157
|
icon: "GAS_PUMP"
|
|
158
|
-
})), name === "value" && /*#__PURE__*/_react.default.createElement(_box.
|
|
158
|
+
})), name === "value" && /*#__PURE__*/_react.default.createElement(_box.default, {
|
|
159
159
|
width: 40,
|
|
160
160
|
height: 70,
|
|
161
161
|
backgroundColor: "transparent",
|
|
@@ -164,7 +164,7 @@ const Input = ({
|
|
|
164
164
|
size: _theme.theme.fontSizes["lg"],
|
|
165
165
|
color: _theme.theme.colors.gray[700],
|
|
166
166
|
icon: "CURRENCY"
|
|
167
|
-
})), Boolean(messageError) && /*#__PURE__*/_react.default.createElement(_box.
|
|
167
|
+
})), Boolean(messageError) && /*#__PURE__*/_react.default.createElement(_box.default, {
|
|
168
168
|
width: "100%",
|
|
169
169
|
backgroundColor: backgroundColor
|
|
170
170
|
}, /*#__PURE__*/_react.default.createElement(_typography.Typography, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_box","_typography","_iconsSvg","_theme","_styles","e","__esModule","default","_extends","Object","assign","bind","n","arguments","length","t","r","hasOwnProperty","call","apply","Input","name","textLabel","messageError","width","backgroundColor","marginStyle","paddingStyle","borderStyled","isVisiblyPassword","testID","opacity","children","fontStyle","style","flexStyle","handlePressIsVisiblyPassword","append","color","placeholder","textLabelPlaceholder","secureTextEntry","props","_color$colorText","_append$appendText","_append$appendColor","_theme$colors$red$","styleProps","widthScreen","Dimensions","get","isMobile","positionIcon","position","right","top","positionIconPassword","positionLabel","createElement","Box","Typography","size","theme","fontSizes","md","text","String","colorText","colors","gray","TextInput","styles","input","appendText","appendColor","fontWeight","fontFamily","fonts","inter_regular_400","blue","lineHeight","letterSpacing","TouchableOpacity","activeOpacity","onPress","Icons","icon","height","Boolean","red","marginTop","exports"],"sources":["index.tsx"],"sourcesContent":["/**\n * IMPORTS\n */\nimport React from \"react\";\nimport { Dimensions, TextInput, TouchableOpacity, ViewStyle } from \"react-native\";\n\n// components\nimport { Box } from \"../box\";\nimport { Typography } from \"../typography\";\nimport { Icons } from \"../../common/icons-svg\";\n\n// typings\nimport { type IInputProps } from \"./interface\";\n\n// styles\nimport { theme } from \"../../styles/theme/theme\";\nimport { styles } from \"./styles\";\n\n/**\n *\n * Componente Input para a interação do usuário com ui.\n */\nconst Input: React.FC<IInputProps> = ({\n name,\n textLabel,\n messageError,\n width,\n backgroundColor,\n marginStyle,\n paddingStyle,\n borderStyled,\n isVisiblyPassword, // password\n testID,\n opacity,\n children,\n fontStyle,\n style,\n flexStyle,\n handlePressIsVisiblyPassword, // password\n append,\n color,\n placeholder,\n textLabelPlaceholder,\n secureTextEntry,\n ...props\n}) => {\n const styleProps = {\n width,\n backgroundColor,\n borderStyled,\n flexStyle,\n paddingStyle,\n marginStyle,\n testID,\n opacity,\n children,\n fontStyle,\n color,\n style,\n name,\n } as IInputProps;\n\n const { width: widthScreen } = Dimensions.get(\"window\");\n const isMobile = widthScreen < 768;\n\n const positionIcon: ViewStyle = {\n position: \"absolute\",\n right: 15,\n top: isMobile ? 65 : 40,\n };\n const positionIconPassword: ViewStyle = {\n position: \"absolute\",\n right: isMobile ? 5 : 32,\n top: isMobile ? 65 : 38,\n };\n const positionLabel: ViewStyle = { position: \"absolute\", right: 35, top: 65 };\n\n return (\n <Box paddingStyle={paddingStyle} marginStyle={marginStyle} style={{ position: \"relative\" }}>\n <Box>\n <Typography\n size={theme.fontSizes.md}\n text={String(textLabel)}\n color={color?.colorText ?? theme.colors.gray[900]}\n />\n\n <TextInput\n // @ts-ignore\n style={[styles(styleProps).input, { backgroundColor }, style]}\n placeholder={placeholder}\n secureTextEntry={secureTextEntry}\n color={theme.colors.gray[900]}\n {...props}\n />\n </Box>\n {append && (\n <Box>\n <Typography\n size={theme.fontSizes[\"lg\"]}\n text={append.appendText ?? \"\"}\n color={append.appendColor ?? \"#000\"}\n />\n </Box>\n )}\n\n {name === \"label\" && (\n <Box backgroundColor={\"transparent\"} style={positionLabel}>\n <Typography\n text={textLabelPlaceholder ?? \"\"}\n size={theme.fontSizes[\"sm\"]}\n fontWeight=\"400\"\n fontFamily={theme.fonts.inter_regular_400}\n color={theme.colors.blue[500]}\n lineHeight={24}\n letterSpacing={\"regular\"}\n />\n </Box>\n )}\n\n {name === \"password\" ||\n (name === \"senha\" && (\n <Box backgroundColor={\"transparent\"} style={positionIconPassword}>\n <TouchableOpacity\n activeOpacity={0.7}\n testID=\"eye-icon\"\n onPress={handlePressIsVisiblyPassword}\n >\n <Icons\n size={theme.fontSizes[\"3xl\"]}\n color={theme.colors.blue[500]}\n icon={isVisiblyPassword ? \"EYE\" : \"EYE_SLASH\"}\n />\n </TouchableOpacity>\n </Box>\n ))}\n {name === \"data\" && (\n <Box width={40} height={70} backgroundColor={\"transparent\"} style={positionIcon}>\n <Icons\n testID=\"CALENDAR\"\n size={theme.fontSizes[\"lg\"]}\n color={theme.colors.gray[700]}\n icon={\"CALENDAR\"}\n />\n </Box>\n )}\n {name === \"hours\" && (\n <Box width={40} height={70} backgroundColor={\"transparent\"} style={positionIcon}>\n <Icons size={theme.fontSizes[\"lg\"]} color={theme.colors.gray[700]} icon={\"TIMER\"} />\n </Box>\n )}\n {name === \"litragem\" && (\n <Box width={40} height={70} backgroundColor={\"transparent\"} style={positionIcon}>\n <Icons size={theme.fontSizes[\"lg\"]} color={theme.colors.gray[700]} icon={\"GAS_PUMP\"} />\n </Box>\n )}\n {name === \"value\" && (\n <Box width={40} height={70} backgroundColor={\"transparent\"} style={positionIcon}>\n <Icons size={theme.fontSizes[\"lg\"]} color={theme.colors.gray[700]} icon={\"CURRENCY\"} />\n </Box>\n )}\n {Boolean(messageError) && (\n <Box width={\"100%\"} backgroundColor={backgroundColor}>\n <Typography\n text={messageError ?? \"\"}\n size={theme.fontSizes[\"sm\"]}\n fontFamily=\"inter_regular_400\"\n color={theme.colors.red[900] ?? \"#9F0000\"}\n lineHeight={24}\n letterSpacing={\"regular\"}\n marginTop={2}\n />\n </Box>\n )}\n </Box>\n );\n};\n\n/**\n * EXPORTS\n */\nexport { Input };\n"],"mappings":";;;;;;AAGA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAGA,IAAAE,IAAA,GAAAF,OAAA;AACA,IAAAG,WAAA,GAAAH,OAAA;AACA,IAAAI,SAAA,GAAAJ,OAAA;AAMA,IAAAK,MAAA,GAAAL,OAAA;AACA,IAAAM,OAAA,GAAAN,OAAA;AAAkC,SAAAD,uBAAAQ,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,cAAA,CAAAC,IAAA,CAAAH,CAAA,EAAAC,CAAA,MAAAJ,CAAA,CAAAI,CAAA,IAAAD,CAAA,C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EAAE,EAAG;IACfC,aAAa,EAAE,SAAU;IACzBS,SAAS,EAAE;EAAE,CACd,CACE,CAEJ,CAAC;AAEV,CAAC;;AAED;AACA;AACA;AAFAC,OAAA,CAAAvE,KAAA,GAAAA,KAAA","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_box","_typography","_iconsSvg","_theme","_styles","e","__esModule","default","_extends","Object","assign","bind","n","arguments","length","t","r","hasOwnProperty","call","apply","Input","name","textLabel","messageError","width","backgroundColor","marginStyle","paddingStyle","borderStyled","isVisiblyPassword","testID","opacity","children","fontStyle","style","flexStyle","handlePressIsVisiblyPassword","append","color","placeholder","textLabelPlaceholder","secureTextEntry","props","_color$colorText","_append$appendText","_append$appendColor","_theme$colors$red$","styleProps","widthScreen","Dimensions","get","isMobile","positionIcon","position","right","top","positionIconPassword","positionLabel","createElement","Typography","size","theme","fontSizes","md","text","String","colorText","colors","gray","TextInput","styles","input","appendText","appendColor","fontWeight","fontFamily","fonts","inter_regular_400","blue","lineHeight","letterSpacing","TouchableOpacity","activeOpacity","onPress","Icons","icon","height","Boolean","red","marginTop","exports"],"sources":["index.tsx"],"sourcesContent":["/**\n * IMPORTS\n */\nimport React from \"react\";\nimport { Dimensions, TextInput, TouchableOpacity, ViewStyle } from \"react-native\";\n\n// components\nimport Box from \"../box\";\nimport { Typography } from \"../typography\";\nimport { Icons } from \"../../common/icons-svg\";\n\n// typings\nimport { type IInputProps } from \"./interface\";\n\n// styles\nimport { theme } from \"../../styles/theme/theme\";\nimport { styles } from \"./styles\";\n\n/**\n *\n * Componente Input para a interação do usuário com ui.\n */\nconst Input: React.FC<IInputProps> = ({\n name,\n textLabel,\n messageError,\n width,\n backgroundColor,\n marginStyle,\n paddingStyle,\n borderStyled,\n isVisiblyPassword, // password\n testID,\n opacity,\n children,\n fontStyle,\n style,\n flexStyle,\n handlePressIsVisiblyPassword, // password\n append,\n color,\n placeholder,\n textLabelPlaceholder,\n secureTextEntry,\n ...props\n}) => {\n const styleProps = {\n width,\n backgroundColor,\n borderStyled,\n flexStyle,\n paddingStyle,\n marginStyle,\n testID,\n opacity,\n children,\n fontStyle,\n color,\n style,\n name,\n } as IInputProps;\n\n const { width: widthScreen } = Dimensions.get(\"window\");\n const isMobile = widthScreen < 768;\n\n const positionIcon: ViewStyle = {\n position: \"absolute\",\n right: 15,\n top: isMobile ? 65 : 40,\n };\n const positionIconPassword: ViewStyle = {\n position: \"absolute\",\n right: isMobile ? 5 : 32,\n top: isMobile ? 65 : 38,\n };\n const positionLabel: ViewStyle = { position: \"absolute\", right: 35, top: 65 };\n\n return (\n <Box paddingStyle={paddingStyle} marginStyle={marginStyle} style={{ position: \"relative\" }}>\n <Box>\n <Typography\n size={theme.fontSizes.md}\n text={String(textLabel)}\n color={color?.colorText ?? theme.colors.gray[900]}\n />\n\n <TextInput\n // @ts-ignore\n style={[styles(styleProps).input, { backgroundColor }, style]}\n placeholder={placeholder}\n secureTextEntry={secureTextEntry}\n color={theme.colors.gray[900]}\n {...props}\n />\n </Box>\n {append && (\n <Box>\n <Typography\n size={theme.fontSizes[\"lg\"]}\n text={append.appendText ?? \"\"}\n color={append.appendColor ?? \"#000\"}\n />\n </Box>\n )}\n\n {name === \"label\" && (\n <Box backgroundColor={\"transparent\"} style={positionLabel}>\n <Typography\n text={textLabelPlaceholder ?? \"\"}\n size={theme.fontSizes[\"sm\"]}\n fontWeight=\"400\"\n fontFamily={theme.fonts.inter_regular_400}\n color={theme.colors.blue[500]}\n lineHeight={24}\n letterSpacing={\"regular\"}\n />\n </Box>\n )}\n\n {name === \"password\" ||\n (name === \"senha\" && (\n <Box backgroundColor={\"transparent\"} style={positionIconPassword}>\n <TouchableOpacity\n activeOpacity={0.7}\n testID=\"eye-icon\"\n onPress={handlePressIsVisiblyPassword}\n >\n <Icons\n size={theme.fontSizes[\"3xl\"]}\n color={theme.colors.blue[500]}\n icon={isVisiblyPassword ? \"EYE\" : \"EYE_SLASH\"}\n />\n </TouchableOpacity>\n </Box>\n ))}\n {name === \"data\" && (\n <Box width={40} height={70} backgroundColor={\"transparent\"} style={positionIcon}>\n <Icons\n testID=\"CALENDAR\"\n size={theme.fontSizes[\"lg\"]}\n color={theme.colors.gray[700]}\n icon={\"CALENDAR\"}\n />\n </Box>\n )}\n {name === \"hours\" && (\n <Box width={40} height={70} backgroundColor={\"transparent\"} style={positionIcon}>\n <Icons size={theme.fontSizes[\"lg\"]} color={theme.colors.gray[700]} icon={\"TIMER\"} />\n </Box>\n )}\n {name === \"litragem\" && (\n <Box width={40} height={70} backgroundColor={\"transparent\"} style={positionIcon}>\n <Icons size={theme.fontSizes[\"lg\"]} color={theme.colors.gray[700]} icon={\"GAS_PUMP\"} />\n </Box>\n )}\n {name === \"value\" && (\n <Box width={40} height={70} backgroundColor={\"transparent\"} style={positionIcon}>\n <Icons size={theme.fontSizes[\"lg\"]} color={theme.colors.gray[700]} icon={\"CURRENCY\"} />\n </Box>\n )}\n {Boolean(messageError) && (\n <Box width={\"100%\"} backgroundColor={backgroundColor}>\n <Typography\n text={messageError ?? \"\"}\n size={theme.fontSizes[\"sm\"]}\n fontFamily=\"inter_regular_400\"\n color={theme.colors.red[900] ?? \"#9F0000\"}\n lineHeight={24}\n letterSpacing={\"regular\"}\n marginTop={2}\n />\n </Box>\n )}\n </Box>\n );\n};\n\n/**\n * EXPORTS\n */\nexport { Input };\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;AACA,IAAAI,SAAA,GAAAJ,OAAA;AAMA,IAAAK,MAAA,GAAAL,OAAA;AACA,IAAAM,OAAA,GAAAN,OAAA;AAAkC,SAAAD,uBAAAQ,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CA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,CAACzD,WAAA,CAAA0D,UAAU;IACTK,IAAI,EAAEzC,YAAY,aAAZA,YAAY,cAAZA,YAAY,GAAI,EAAG;IACzBqC,IAAI,EAAEC,YAAK,CAACC,SAAS,CAAC,IAAI,CAAE;IAC5Ba,UAAU,EAAC,mBAAmB;IAC9BrC,KAAK,GAAAQ,kBAAA,GAAEe,YAAK,CAACM,MAAM,CAACqB,GAAG,CAAC,GAAG,CAAC,cAAA1C,kBAAA,cAAAA,kBAAA,GAAI,SAAU;IAC1CiC,UAAU,EAAE,EAAG;IACfC,aAAa,EAAE,SAAU;IACzBS,SAAS,EAAE;EAAE,CACd,CACE,CAEJ,CAAC;AAEV,CAAC;;AAED;AACA;AACA;AAFAC,OAAA,CAAAtE,KAAA,GAAAA,KAAA","ignoreList":[]}
|
|
@@ -5,13 +5,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.LoadingDetails = void 0;
|
|
7
7
|
var _react = _interopRequireDefault(require("react"));
|
|
8
|
-
var _box = require("../box");
|
|
8
|
+
var _box = _interopRequireDefault(require("../box"));
|
|
9
9
|
var _button = require("../button");
|
|
10
10
|
var _typography = require("../typography");
|
|
11
11
|
var _theme = require("../../styles/theme/theme");
|
|
12
12
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
13
|
-
/**
|
|
14
|
-
* IMPORTS
|
|
13
|
+
/**
|
|
14
|
+
* IMPORTS
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
17
|
// components
|
|
@@ -30,7 +30,7 @@ const LoadingDetails = ({
|
|
|
30
30
|
handleClickGoback,
|
|
31
31
|
handleClickStart
|
|
32
32
|
}) => {
|
|
33
|
-
return /*#__PURE__*/_react.default.createElement(_box.
|
|
33
|
+
return /*#__PURE__*/_react.default.createElement(_box.default, {
|
|
34
34
|
width: "100%",
|
|
35
35
|
borderStyled: {
|
|
36
36
|
borderRadius: 8
|
|
@@ -46,7 +46,7 @@ const LoadingDetails = ({
|
|
|
46
46
|
elevation: 2
|
|
47
47
|
},
|
|
48
48
|
backgroundColor: _theme.theme.colors.blue[400]
|
|
49
|
-
}, /*#__PURE__*/_react.default.createElement(_box.
|
|
49
|
+
}, /*#__PURE__*/_react.default.createElement(_box.default, {
|
|
50
50
|
width: "100%",
|
|
51
51
|
flexStyle: {
|
|
52
52
|
flexDirection: "row",
|
|
@@ -56,7 +56,7 @@ const LoadingDetails = ({
|
|
|
56
56
|
paddingStyle: {
|
|
57
57
|
padding: _theme.theme.paddings.md
|
|
58
58
|
}
|
|
59
|
-
}, /*#__PURE__*/_react.default.createElement(_box.
|
|
59
|
+
}, /*#__PURE__*/_react.default.createElement(_box.default, {
|
|
60
60
|
width: "78%",
|
|
61
61
|
flexStyle: {
|
|
62
62
|
flexDirection: "column",
|
|
@@ -94,14 +94,14 @@ const LoadingDetails = ({
|
|
|
94
94
|
fontWeight: "700",
|
|
95
95
|
lineHeight: _theme.theme.fontSizes["3xl"],
|
|
96
96
|
letterSpacing: "regular"
|
|
97
|
-
})), /*#__PURE__*/_react.default.createElement(_box.
|
|
97
|
+
})), /*#__PURE__*/_react.default.createElement(_box.default, {
|
|
98
98
|
height: 1,
|
|
99
99
|
backgroundColor: _theme.theme.colors.gray[950],
|
|
100
100
|
marginStyle: {
|
|
101
101
|
marginTop: _theme.theme.margins.xs,
|
|
102
102
|
marginBottom: _theme.theme.margins.xs
|
|
103
103
|
}
|
|
104
|
-
}), /*#__PURE__*/_react.default.createElement(_box.
|
|
104
|
+
}), /*#__PURE__*/_react.default.createElement(_box.default, {
|
|
105
105
|
style: {
|
|
106
106
|
flexDirection: "row",
|
|
107
107
|
gap: 12,
|
|
@@ -160,8 +160,8 @@ const LoadingDetails = ({
|
|
|
160
160
|
})));
|
|
161
161
|
};
|
|
162
162
|
|
|
163
|
-
/**
|
|
164
|
-
* EXPORTS
|
|
163
|
+
/**
|
|
164
|
+
* EXPORTS
|
|
165
165
|
*/
|
|
166
166
|
exports.LoadingDetails = LoadingDetails;
|
|
167
167
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_box","_button","_typography","_theme","e","__esModule","default","LoadingDetails","numero","local","date","duracao","isLoadingStart","disabled","handleClickGoback","handleClickStart","createElement","Box","width","borderStyled","borderRadius","style","shadowColor","theme","colors","black","shadowOpacity","shadowOffset","height","shadowRadius","elevation","backgroundColor","blue","flexStyle","flexDirection","alignItems","justifyContent","paddingStyle","padding","paddings","md","Typography","text","size","fontSizes","sm","fontFamily","fonts","inter_bold","fontWeight","color","neutral","lineHeight","letterSpacing","xs","numberOfLines","align","gray","marginStyle","marginTop","margins","marginBottom","gap","Button","testID","title","onPress","isLoading","green","flex","buttonTextStyle","inter_semi_bold_600","fontSize","textAlign","borderWidth","borderWidths","thin","borderColor","yellow","exports"],"sources":["index.tsx"],"sourcesContent":["/**\r\n * IMPORTS\r\n */\r\nimport React from \"react\";\r\n\r\n// components\r\nimport { Box } from \"../box\";\r\nimport { Button } from \"../button\";\r\nimport { Typography } from \"../typography\";\r\n\r\n// typings\r\nimport { ILoadingDetails } from \"./interface\";\r\n\r\n// styles\r\nimport { theme } from \"../../styles/theme/theme\";\r\n\r\nconst LoadingDetails: React.FC<ILoadingDetails> = ({\r\n numero = \"01020304050607\",\r\n local = \"Doca 1, Pátio 02 - Usimais (Ipatinga)\",\r\n date = \"24/03/2025\",\r\n duracao = \"00:00\",\r\n isLoadingStart = false,\r\n disabled,\r\n handleClickGoback,\r\n handleClickStart,\r\n}: ILoadingDetails) => {\r\n return (\r\n <Box\r\n width=\"100%\"\r\n borderStyled={{ borderRadius: 8 }}\r\n style={{\r\n shadowColor: theme.colors.black[10],\r\n shadowOpacity: 0.1,\r\n shadowOffset: { width: 0, height: 2 },\r\n shadowRadius: 4,\r\n elevation: 2,\r\n }}\r\n backgroundColor={theme.colors.blue[400]}\r\n >\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 paddingStyle={{ padding: theme.paddings.md }}\r\n >\r\n <Box\r\n width={\"78%\"}\r\n flexStyle={{\r\n flexDirection: \"column\",\r\n justifyContent: \"flex-start\",\r\n alignItems: \"flex-start\",\r\n }}\r\n >\r\n <Typography\r\n text={`Carregamento - #${numero}`}\r\n size={theme.fontSizes.sm}\r\n fontFamily={theme.fonts.inter_bold}\r\n fontWeight=\"700\"\r\n color={theme.colors.neutral[25]}\r\n lineHeight={theme.fontSizes[\"lg\"]}\r\n letterSpacing={\"regular\"}\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 lineHeight={theme.fontSizes[\"2xl\"]}\r\n letterSpacing={\"regular\"}\r\n numberOfLines={1}\r\n />\r\n <Typography\r\n text={`Data carregamento: ${date}`}\r\n color={theme.colors.neutral[25]}\r\n size={theme.fontSizes.xs}\r\n lineHeight={theme.fontSizes[\"2xl\"]}\r\n letterSpacing={\"regular\"}\r\n numberOfLines={1}\r\n />\r\n </Box>\r\n\r\n <Typography\r\n text={duracao}\r\n color={theme.colors.neutral[25]}\r\n size={24}\r\n align=\"left\"\r\n fontFamily=\"inter_bold\"\r\n fontWeight=\"700\"\r\n lineHeight={theme.fontSizes[\"3xl\"]}\r\n letterSpacing={\"regular\"}\r\n />\r\n </Box>\r\n\r\n <Box\r\n height={1}\r\n backgroundColor={theme.colors.gray[950]}\r\n marginStyle={{ marginTop: theme.margins.xs, marginBottom: theme.margins.xs }}\r\n />\r\n\r\n <Box style={{ flexDirection: \"row\", gap: 12, marginBottom: 8, padding: theme.paddings.md }}>\r\n <Button\r\n testID=\"iniciar-button\"\r\n title=\"INICIAR\"\r\n onPress={handleClickStart}\r\n height={40}\r\n isLoading={isLoadingStart}\r\n disabled={disabled}\r\n backgroundColor={disabled ? theme.colors.green[100] : theme.colors.green[250]}\r\n flexStyle={{ flex: 1, alignItems: \"center\", justifyContent: \"center\" }}\r\n buttonTextStyle={{\r\n color: theme.colors.neutral[25],\r\n fontFamily: theme.fonts.inter_semi_bold_600,\r\n fontSize: theme.fontSizes.md,\r\n fontWeight: \"600\",\r\n textAlign: \"center\",\r\n }}\r\n borderStyled={{\r\n borderWidth: theme.borderWidths.thin,\r\n borderColor: disabled ? theme.colors.green[100] : theme.colors.green[250],\r\n borderRadius: theme.fontSizes[\"2xl\"],\r\n }}\r\n />\r\n\r\n <Button\r\n title=\"VOLTAR\"\r\n onPress={handleClickGoback}\r\n height={40}\r\n isLoading={false}\r\n disabled={isLoadingStart}\r\n backgroundColor={theme.colors.yellow[75]}\r\n flexStyle={{ flex: 1, alignItems: \"center\", justifyContent: \"center\" }}\r\n buttonTextStyle={{\r\n color: theme.colors.neutral[25],\r\n fontFamily: theme.fonts.inter_semi_bold_600,\r\n fontSize: theme.fontSizes.md,\r\n fontWeight: \"600\",\r\n textAlign: \"center\",\r\n }}\r\n borderStyled={{\r\n borderWidth: theme.borderWidths.thin,\r\n borderColor: theme.colors.yellow[75],\r\n borderRadius: theme.fontSizes[\"2xl\"],\r\n }}\r\n />\r\n </Box>\r\n </Box>\r\n );\r\n};\r\n\r\n/**\r\n * EXPORTS\r\n */\r\nexport { LoadingDetails };\r\n"],"mappings":";;;;;;AAGA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AAGA,IAAAC,IAAA,GAAAD,OAAA;AACA,IAAAE,OAAA,GAAAF,OAAA;AACA,IAAAG,WAAA,GAAAH,OAAA;AAMA,IAAAI,MAAA,GAAAJ,OAAA;AAAiD,SAAAD,uBAAAM,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAdjD;AACA;AACA;;AAGA;;AAKA;;AAGA;;AAGA,MAAMG,cAAyC,GAAGA,CAAC;EACjDC,MAAM,GAAG,gBAAgB;EACzBC,KAAK,GAAG,uCAAuC;EAC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K;IACrC;EAAE,CACH,CACE,CACF,CAAC;AAEV,CAAC;;AAED;AACA;AACA;AAFAmC,OAAA,CAAAxE,cAAA,GAAAA,cAAA","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_box","_button","_typography","_theme","e","__esModule","default","LoadingDetails","numero","local","date","duracao","isLoadingStart","disabled","handleClickGoback","handleClickStart","createElement","width","borderStyled","borderRadius","style","shadowColor","theme","colors","black","shadowOpacity","shadowOffset","height","shadowRadius","elevation","backgroundColor","blue","flexStyle","flexDirection","alignItems","justifyContent","paddingStyle","padding","paddings","md","Typography","text","size","fontSizes","sm","fontFamily","fonts","inter_bold","fontWeight","color","neutral","lineHeight","letterSpacing","xs","numberOfLines","align","gray","marginStyle","marginTop","margins","marginBottom","gap","Button","testID","title","onPress","isLoading","green","flex","buttonTextStyle","inter_semi_bold_600","fontSize","textAlign","borderWidth","borderWidths","thin","borderColor","yellow","exports"],"sources":["index.tsx"],"sourcesContent":["/**\n * IMPORTS\n */\nimport React from \"react\";\n\n// components\nimport Box from \"../box\";\nimport { Button } from \"../button\";\nimport { Typography } from \"../typography\";\n\n// typings\nimport { ILoadingDetails } from \"./interface\";\n\n// styles\nimport { theme } from \"../../styles/theme/theme\";\n\nconst LoadingDetails: React.FC<ILoadingDetails> = ({\n numero = \"01020304050607\",\n local = \"Doca 1, Pátio 02 - Usimais (Ipatinga)\",\n date = \"24/03/2025\",\n duracao = \"00:00\",\n isLoadingStart = false,\n disabled,\n handleClickGoback,\n handleClickStart,\n}: ILoadingDetails) => {\n return (\n <Box\n width=\"100%\"\n borderStyled={{ borderRadius: 8 }}\n style={{\n shadowColor: theme.colors.black[10],\n shadowOpacity: 0.1,\n shadowOffset: { width: 0, height: 2 },\n shadowRadius: 4,\n elevation: 2,\n }}\n backgroundColor={theme.colors.blue[400]}\n >\n <Box\n width={\"100%\"}\n flexStyle={{\n flexDirection: \"row\",\n alignItems: \"center\",\n justifyContent: \"space-between\",\n }}\n paddingStyle={{ padding: theme.paddings.md }}\n >\n <Box\n width={\"78%\"}\n flexStyle={{\n flexDirection: \"column\",\n justifyContent: \"flex-start\",\n alignItems: \"flex-start\",\n }}\n >\n <Typography\n text={`Carregamento - #${numero}`}\n size={theme.fontSizes.sm}\n fontFamily={theme.fonts.inter_bold}\n fontWeight=\"700\"\n color={theme.colors.neutral[25]}\n lineHeight={theme.fontSizes[\"lg\"]}\n letterSpacing={\"regular\"}\n />\n\n <Typography\n text={local}\n color={theme.colors.neutral[25]}\n size={theme.fontSizes.xs}\n lineHeight={theme.fontSizes[\"2xl\"]}\n letterSpacing={\"regular\"}\n numberOfLines={1}\n />\n <Typography\n text={`Data carregamento: ${date}`}\n color={theme.colors.neutral[25]}\n size={theme.fontSizes.xs}\n lineHeight={theme.fontSizes[\"2xl\"]}\n letterSpacing={\"regular\"}\n numberOfLines={1}\n />\n </Box>\n\n <Typography\n text={duracao}\n color={theme.colors.neutral[25]}\n size={24}\n align=\"left\"\n fontFamily=\"inter_bold\"\n fontWeight=\"700\"\n lineHeight={theme.fontSizes[\"3xl\"]}\n letterSpacing={\"regular\"}\n />\n </Box>\n\n <Box\n height={1}\n backgroundColor={theme.colors.gray[950]}\n marginStyle={{ marginTop: theme.margins.xs, marginBottom: theme.margins.xs }}\n />\n\n <Box style={{ flexDirection: \"row\", gap: 12, marginBottom: 8, padding: theme.paddings.md }}>\n <Button\n testID=\"iniciar-button\"\n title=\"INICIAR\"\n onPress={handleClickStart}\n height={40}\n isLoading={isLoadingStart}\n disabled={disabled}\n backgroundColor={disabled ? theme.colors.green[100] : theme.colors.green[250]}\n flexStyle={{ flex: 1, alignItems: \"center\", justifyContent: \"center\" }}\n buttonTextStyle={{\n color: theme.colors.neutral[25],\n fontFamily: theme.fonts.inter_semi_bold_600,\n fontSize: theme.fontSizes.md,\n fontWeight: \"600\",\n textAlign: \"center\",\n }}\n borderStyled={{\n borderWidth: theme.borderWidths.thin,\n borderColor: disabled ? theme.colors.green[100] : theme.colors.green[250],\n borderRadius: theme.fontSizes[\"2xl\"],\n }}\n />\n\n <Button\n title=\"VOLTAR\"\n onPress={handleClickGoback}\n height={40}\n isLoading={false}\n disabled={isLoadingStart}\n backgroundColor={theme.colors.yellow[75]}\n flexStyle={{ flex: 1, alignItems: \"center\", justifyContent: \"center\" }}\n buttonTextStyle={{\n color: theme.colors.neutral[25],\n fontFamily: theme.fonts.inter_semi_bold_600,\n fontSize: theme.fontSizes.md,\n fontWeight: \"600\",\n textAlign: \"center\",\n }}\n borderStyled={{\n borderWidth: theme.borderWidths.thin,\n borderColor: theme.colors.yellow[75],\n borderRadius: theme.fontSizes[\"2xl\"],\n }}\n />\n </Box>\n </Box>\n );\n};\n\n/**\n * EXPORTS\n */\nexport { LoadingDetails };\n"],"mappings":";;;;;;AAGA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AAGA,IAAAC,IAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,OAAA,GAAAF,OAAA;AACA,IAAAG,WAAA,GAAAH,OAAA;AAMA,IAAAI,MAAA,GAAAJ,OAAA;AAAiD,SAAAD,uBAAAM,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAdjD;AACA;AACA;;AAGA;;AAKA;;AAGA;;AAGA,MAAMG,cAAyC,GAAGA,CAAC;EACjDC,MAAM,GAAG,gBAAgB;EACzBC,KAAK,GAAG,uCAAuC;EAC/CC,IAAI,GAAG,YAAY;EACnBC,OAAO,GAAG,OAAO;EACjBC,cAAc,GAAG,KAAK;EACtBC,QAAQ;EACRC,iBAAiB;EACjBC;AACe,CAAC,KAAK;EACrB,oBACElB,MAAA,CAAAS,OAAA,CAAAU,aAAA,CAAChB,IAAA,CAAAM,OAAG;IACFW,KAAK,EAAC,MAAM;IACZC,YAAY,EAAE;MAAEC,YAAY,EAAE;IAAE,CAAE;IAClCC,KAAK,EAAE;MACLC,WAAW,EAAEC,YAA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MACzEhD,YAAY,EAAEG,YAAK,CAACqB,SAAS,CAAC,KAAK;IACrC;EAAE,CACH,CAAC,eAEF9C,MAAA,CAAAS,OAAA,CAAAU,aAAA,CAACf,OAAA,CAAA6D,MAAM;IACLE,KAAK,EAAC,QAAQ;IACdC,OAAO,EAAEnD,iBAAkB;IAC3Ba,MAAM,EAAE,EAAG;IACXuC,SAAS,EAAE,KAAM;IACjBrD,QAAQ,EAAED,cAAe;IACzBkB,eAAe,EAAER,YAAK,CAACC,MAAM,CAACsD,MAAM,CAAC,EAAE,CAAE;IACzC7C,SAAS,EAAE;MAAEoC,IAAI,EAAE,CAAC;MAAElC,UAAU,EAAE,QAAQ;MAAEC,cAAc,EAAE;IAAS,CAAE;IACvEkC,eAAe,EAAE;MACfpB,KAAK,EAAE3B,YAAK,CAACC,MAAM,CAAC2B,OAAO,CAAC,EAAE,CAAC;MAC/BL,UAAU,EAAEvB,YAAK,CAACwB,KAAK,CAACwB,mBAAmB;MAC3CC,QAAQ,EAAEjD,YAAK,CAACqB,SAAS,CAACJ,EAAE;MAC5BS,UAAU,EAAE,KAAK;MACjBwB,SAAS,EAAE;IACb,CAAE;IACFtD,YAAY,EAAE;MACZuD,WAAW,EAAEnD,YAAK,CAACoD,YAAY,CAACC,IAAI;MACpCC,WAAW,EAAEtD,YAAK,CAACC,MAAM,CAACsD,MAAM,CAAC,EAAE,CAAC;MACpC1D,YAAY,EAAEG,YAAK,CAACqB,SAAS,CAAC,KAAK;IACrC;EAAE,CACH,CACE,CACF,CAAC;AAEV,CAAC;;AAED;AACA;AACA;AAFAmC,OAAA,CAAAvE,cAAA,GAAAA,cAAA","ignoreList":[]}
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.LoadingProgress = void 0;
|
|
7
7
|
var _react = _interopRequireDefault(require("react"));
|
|
8
|
-
var _box = require("../box");
|
|
8
|
+
var _box = _interopRequireDefault(require("../box"));
|
|
9
9
|
var _typography = require("../typography");
|
|
10
10
|
var _button = require("../button");
|
|
11
11
|
var _theme = require("../../styles/theme/theme");
|
|
@@ -30,12 +30,12 @@ const LoadingProgress = ({
|
|
|
30
30
|
backgroundColor
|
|
31
31
|
}) => {
|
|
32
32
|
const truncatedText = textLoading.length > 15 ? textLoading.substring(0, 13) + "..." : textLoading;
|
|
33
|
-
return /*#__PURE__*/_react.default.createElement(_box.
|
|
33
|
+
return /*#__PURE__*/_react.default.createElement(_box.default, null, /*#__PURE__*/_react.default.createElement(_typography.Typography, {
|
|
34
34
|
text: "Carregamento em Andamento",
|
|
35
35
|
size: _theme.theme.fontSizes.lg,
|
|
36
36
|
fontFamily: _theme.theme.fonts.inter_medium_500,
|
|
37
37
|
color: _theme.theme.colors.gray[800]
|
|
38
|
-
}), /*#__PURE__*/_react.default.createElement(_box.
|
|
38
|
+
}), /*#__PURE__*/_react.default.createElement(_box.default, {
|
|
39
39
|
paddingStyle: {
|
|
40
40
|
padding: _theme.theme.paddings["2xs"]
|
|
41
41
|
},
|
|
@@ -50,7 +50,7 @@ const LoadingProgress = ({
|
|
|
50
50
|
marginTop: _theme.theme.margins["2xs"],
|
|
51
51
|
marginBottom: _theme.theme.margins["2xs"]
|
|
52
52
|
}
|
|
53
|
-
}, /*#__PURE__*/_react.default.createElement(_box.
|
|
53
|
+
}, /*#__PURE__*/_react.default.createElement(_box.default, {
|
|
54
54
|
flexStyle: {
|
|
55
55
|
flexDirection: "row",
|
|
56
56
|
textAlign: "center"
|
|
@@ -66,7 +66,7 @@ const LoadingProgress = ({
|
|
|
66
66
|
fontFamily: _theme.theme.fonts.inter_medium_500,
|
|
67
67
|
color: _theme.theme.colors.gray[800],
|
|
68
68
|
letterSpacing: "regular"
|
|
69
|
-
})), /*#__PURE__*/_react.default.createElement(_box.
|
|
69
|
+
})), /*#__PURE__*/_react.default.createElement(_box.default, {
|
|
70
70
|
flexStyle: {
|
|
71
71
|
alignItems: "center",
|
|
72
72
|
justifyContent: "center",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_box","_typography","_button","_theme","e","__esModule","default","LoadingProgress","textLoading","handleClick","backgroundColor","truncatedText","length","substring","createElement","
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_box","_typography","_button","_theme","e","__esModule","default","LoadingProgress","textLoading","handleClick","backgroundColor","truncatedText","length","substring","createElement","Typography","text","size","theme","fontSizes","lg","fontFamily","fonts","inter_medium_500","color","colors","gray","paddingStyle","padding","paddings","neutral","borderStyled","borderWidth","borderWidths","thin","borderRadius","thick_large","borderStyle","borderColor","marginStyle","marginTop","margins","marginBottom","flexStyle","flexDirection","textAlign","md","inter_bold_700","blue","letterSpacing","alignItems","justifyContent","Button","title","onPress","isLoading","height","width","buttonTextStyle","fontSize","thick_medium","exports"],"sources":["index.tsx"],"sourcesContent":["/**\n * IMPORTS\n */\nimport React from \"react\";\n\n// component\nimport Box from \"../box\";\nimport { Typography } from \"../typography\";\nimport { Button } from \"../button\";\n\n// typings\nimport { ILoadingProgress } from \"./interface\";\n\n// styles\nimport { theme } from \"../../styles/theme/theme\";\n\n/**\n *\n * Componente LoadingProgress para a interação do usuário com ui.\n */\nconst LoadingProgress: React.FC<ILoadingProgress> = ({\n textLoading,\n handleClick,\n backgroundColor,\n}: ILoadingProgress) => {\n const truncatedText =\n textLoading.length > 15 ? textLoading.substring(0, 13) + \"...\" : textLoading;\n return (\n <Box>\n <Typography\n text=\"Carregamento em Andamento\"\n size={theme.fontSizes.lg}\n fontFamily={theme.fonts.inter_medium_500}\n color={theme.colors.gray[800]}\n />\n <Box\n paddingStyle={{ padding: theme.paddings[\"2xs\"] }}\n backgroundColor={backgroundColor ?? theme.colors.neutral[25]}\n borderStyled={{\n borderWidth: theme.borderWidths.thin,\n borderRadius: theme.borderWidths.thick_large,\n borderStyle: \"dashed\",\n borderColor: theme.colors.neutral[200],\n }}\n marginStyle={{ marginTop: theme.margins[\"2xs\"], marginBottom: theme.margins[\"2xs\"] }}\n >\n <Box flexStyle={{ flexDirection: \"row\", textAlign: \"center\" }}>\n <Typography\n text={\"N° Carregamento: \"}\n size={theme.fontSizes.md}\n fontFamily={theme.fonts.inter_bold_700}\n color={theme.colors.blue[400]}\n />\n\n <Typography\n text={truncatedText}\n size={theme.fontSizes.md}\n fontFamily={theme.fonts.inter_medium_500}\n color={theme.colors.gray[800]}\n letterSpacing={\"regular\"}\n />\n </Box>\n <Box\n flexStyle={{ alignItems: \"center\", justifyContent: \"center\", flexDirection: \"row\" }}\n marginStyle={{ marginTop: theme.margins[\"2xs\"] }}\n >\n <Button\n title={\"Visualizar\"}\n onPress={handleClick}\n backgroundColor={theme.colors.blue[400]}\n isLoading={false}\n height={32}\n width={\"75%\"}\n buttonTextStyle={{\n color: theme.colors.neutral[25],\n fontFamily: theme.fonts.inter_medium_500,\n fontSize: theme.fontSizes.lg,\n }}\n flexStyle={{ alignItems: \"center\", justifyContent: \"center\", flexDirection: \"row\" }}\n borderStyled={{\n borderRadius: theme.borderWidths.thick_medium,\n }}\n />\n </Box>\n </Box>\n </Box>\n );\n};\n\n/**\n * EXPORTS\n */\nexport { LoadingProgress };\n"],"mappings":";;;;;;AAGA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AAGA,IAAAC,IAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,WAAA,GAAAF,OAAA;AACA,IAAAG,OAAA,GAAAH,OAAA;AAMA,IAAAI,MAAA,GAAAJ,OAAA;AAAiD,SAAAD,uBAAAM,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAdjD;AACA;AACA;;AAGA;;AAKA;;AAGA;;AAGA;AACA;AACA;AACA;AACA,MAAMG,eAA2C,GAAGA,CAAC;EACnDC,WAAW;EACXC,WAAW;EACXC;AACgB,CAAC,KAAK;EACtB,MAAMC,aAAa,GACjBH,WAAW,CAACI,MAAM,GAAG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C,gBAAgB;MACxCoC,QAAQ,EAAEzC,YAAK,CAACC,SAAS,CAACC;IAC5B,CAAE;IACFuB,SAAS,EAAE;MAAEO,UAAU,EAAE,QAAQ;MAAEC,cAAc,EAAE,QAAQ;MAAEP,aAAa,EAAE;IAAM,CAAE;IACpFb,YAAY,EAAE;MACZI,YAAY,EAAEjB,YAAK,CAACe,YAAY,CAAC2B;IACnC;EAAE,CACH,CACE,CACF,CACF,CAAC;AAEV,CAAC;;AAED;AACA;AACA;AAFAC,OAAA,CAAAtD,eAAA,GAAAA,eAAA","ignoreList":[]}
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.MenuItem = 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");
|
|
@@ -42,7 +42,7 @@ const MenuItem = ({
|
|
|
42
42
|
testID: testID,
|
|
43
43
|
onPress: handleNavigation,
|
|
44
44
|
activeOpacity: 0.7
|
|
45
|
-
}, /*#__PURE__*/_react.default.createElement(_box.
|
|
45
|
+
}, /*#__PURE__*/_react.default.createElement(_box.default, {
|
|
46
46
|
testID: "menu-item-" + typeSelected,
|
|
47
47
|
width: width !== null && width !== void 0 ? width : "100%",
|
|
48
48
|
height: height !== null && height !== void 0 ? height : 260,
|
|
@@ -60,7 +60,7 @@ const MenuItem = ({
|
|
|
60
60
|
justifyContent: "center",
|
|
61
61
|
alignItems: "center"
|
|
62
62
|
}
|
|
63
|
-
}, /*#__PURE__*/_react.default.createElement(_box.
|
|
63
|
+
}, /*#__PURE__*/_react.default.createElement(_box.default, {
|
|
64
64
|
testID: "menu-item-icon-box"
|
|
65
65
|
}, /*#__PURE__*/_react.default.createElement(_iconsSvg.IconsMenuItems, {
|
|
66
66
|
testID: "menu-item-icon",
|