react-native-exp-fig 0.1.14 → 0.1.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonjs/common/icons-svg/agent/index.js +2 -2
- package/lib/commonjs/common/icons-svg/agent/index.js.map +1 -1
- package/lib/commonjs/common/icons-svg/bed/index.js +4 -4
- package/lib/commonjs/common/icons-svg/bed/index.js.map +1 -1
- package/lib/commonjs/common/icons-svg/car/index.js +4 -4
- package/lib/commonjs/common/icons-svg/car/index.js.map +1 -1
- package/lib/commonjs/common/icons-svg/check-outline/index.js +6 -6
- package/lib/commonjs/common/icons-svg/check-outline/index.js.map +1 -1
- package/lib/commonjs/common/icons-svg/coffee/index.js +4 -4
- package/lib/commonjs/common/icons-svg/coffee/index.js.map +1 -1
- package/lib/commonjs/common/icons-svg/constants/index.js +4 -4
- package/lib/commonjs/common/icons-svg/constants/index.js.map +1 -1
- package/lib/commonjs/common/icons-svg/index.js +4 -4
- package/lib/commonjs/common/icons-svg/index.js.map +1 -1
- package/lib/commonjs/common/icons-svg/pencil/index.js +4 -4
- package/lib/commonjs/common/icons-svg/pencil/index.js.map +1 -1
- package/lib/commonjs/common/icons-svg/refresh-ccw-dot/index.js +2 -2
- package/lib/commonjs/common/icons-svg/refresh-ccw-dot/index.js.map +1 -1
- package/lib/commonjs/common/icons-svg/truck-activity/index.js +4 -4
- package/lib/commonjs/common/icons-svg/truck-activity/index.js.map +1 -1
- package/lib/commonjs/components/activities-daily/index.js +4 -4
- package/lib/commonjs/components/activities-daily/index.js.map +1 -1
- package/lib/commonjs/components/activities-daily/interface.d.js.map +1 -1
- package/lib/commonjs/components/activities-progress/index.js +4 -4
- package/lib/commonjs/components/activities-progress/index.js.map +1 -1
- package/lib/commonjs/components/activities-progress/interface.d.js.map +1 -1
- package/lib/commonjs/components/avatar-profile/index.js.map +1 -1
- package/lib/commonjs/components/avatar-profile/interface.d.js.map +1 -1
- package/lib/commonjs/components/card-history/index.js +7 -7
- package/lib/commonjs/components/card-history/index.js.map +1 -1
- package/lib/commonjs/components/card-loading/index.js +7 -7
- package/lib/commonjs/components/card-loading/index.js.map +1 -1
- package/lib/commonjs/components/card-work-session/index.js +4 -4
- package/lib/commonjs/components/card-work-session/index.js.map +1 -1
- package/lib/commonjs/components/check-box/index.js +6 -6
- package/lib/commonjs/components/check-box/index.js.map +1 -1
- package/lib/commonjs/components/check-box/interface.d.js.map +1 -1
- package/lib/commonjs/components/coil/index.js +4 -4
- package/lib/commonjs/components/coil/index.js.map +1 -1
- package/lib/commonjs/components/coil/interface.d.js.map +1 -1
- package/lib/commonjs/components/filter-date-selector/index.js +7 -7
- package/lib/commonjs/components/filter-date-selector/index.js.map +1 -1
- package/lib/commonjs/components/history-details/index.js +1 -2
- package/lib/commonjs/components/history-details/index.js.map +1 -1
- package/lib/commonjs/components/history-details/interface.d.js.map +1 -1
- package/lib/commonjs/components/image-capture-with-remove/index.js +7 -7
- package/lib/commonjs/components/image-capture-with-remove/index.js.map +1 -1
- package/lib/commonjs/components/image-capture-with-remove/interface.d.js.map +1 -1
- package/lib/commonjs/components/loading-progress/index.js +12 -9
- package/lib/commonjs/components/loading-progress/index.js.map +1 -1
- package/lib/commonjs/components/notification-loading/index.js +9 -2
- package/lib/commonjs/components/notification-loading/index.js.map +1 -1
- package/lib/commonjs/components/notification-loading/interface.d.js.map +1 -1
- package/lib/commonjs/components/profile-menu-option/index.js.map +1 -1
- package/lib/commonjs/components/profile-menu-option/interface.d.js.map +1 -1
- package/lib/commonjs/components/step-indicator/index.js +6 -6
- package/lib/commonjs/components/step-indicator/index.js.map +1 -1
- package/lib/commonjs/components/step-indicator/interface.d.js.map +1 -1
- package/lib/commonjs/components/step-indicator/styles.js +9 -8
- package/lib/commonjs/components/step-indicator/styles.js.map +1 -1
- package/lib/commonjs/components/user-profile/index.js +6 -6
- package/lib/commonjs/components/user-profile/index.js.map +1 -1
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/stories/activities-daily/activities-daily.stories.js.map +1 -1
- package/lib/commonjs/stories/activities-progress/activities-progress.stories.js.map +1 -1
- package/lib/commonjs/stories/avatar-profile/avatar-profile.stories.js.map +1 -1
- package/lib/commonjs/stories/card-loading/card-loading.stories.js.map +1 -1
- package/lib/commonjs/stories/check-box/check-box.stories.js.map +1 -1
- package/lib/commonjs/stories/coil/coil.stories.js.map +1 -1
- package/lib/commonjs/stories/filter-date-selector/filter-date-selector.stories.js.map +1 -1
- package/lib/commonjs/stories/history-details/history-details.stories.js.map +1 -1
- package/lib/commonjs/stories/image-capture-with-remove/image-capture-with-remove.stories.js.map +1 -1
- package/lib/commonjs/stories/notification-loading/notification-loading.stories.js.map +1 -1
- package/lib/commonjs/stories/profile-menu-option/profile-menu-option.stories.js.map +1 -1
- package/lib/commonjs/stories/step-indicator/step-indicator.stories.js.map +1 -1
- package/lib/commonjs/styles/theme/theme.js +4 -4
- package/lib/commonjs/styles/theme/theme.js.map +1 -1
- package/lib/commonjs/utils/format-data/index.js +11 -11
- package/lib/commonjs/utils/format-data/index.js.map +1 -1
- package/lib/commonjs/utils/status-color/return-color.js.map +1 -1
- package/lib/module/common/icons-svg/agent/index.js +2 -2
- package/lib/module/common/icons-svg/agent/index.js.map +1 -1
- package/lib/module/common/icons-svg/bed/index.js +4 -4
- package/lib/module/common/icons-svg/bed/index.js.map +1 -1
- package/lib/module/common/icons-svg/car/index.js +4 -4
- package/lib/module/common/icons-svg/car/index.js.map +1 -1
- package/lib/module/common/icons-svg/check-outline/index.js +6 -6
- package/lib/module/common/icons-svg/check-outline/index.js.map +1 -1
- package/lib/module/common/icons-svg/coffee/index.js +4 -4
- package/lib/module/common/icons-svg/coffee/index.js.map +1 -1
- package/lib/module/common/icons-svg/constants/index.js +4 -4
- package/lib/module/common/icons-svg/constants/index.js.map +1 -1
- package/lib/module/common/icons-svg/index.js +4 -4
- package/lib/module/common/icons-svg/index.js.map +1 -1
- package/lib/module/common/icons-svg/pencil/index.js +4 -4
- package/lib/module/common/icons-svg/pencil/index.js.map +1 -1
- package/lib/module/common/icons-svg/refresh-ccw-dot/index.js +2 -2
- package/lib/module/common/icons-svg/refresh-ccw-dot/index.js.map +1 -1
- package/lib/module/common/icons-svg/truck-activity/index.js +4 -4
- package/lib/module/common/icons-svg/truck-activity/index.js.map +1 -1
- package/lib/module/components/activities-daily/index.js +4 -4
- package/lib/module/components/activities-daily/index.js.map +1 -1
- package/lib/module/components/activities-daily/interface.d.js.map +1 -1
- package/lib/module/components/activities-progress/index.js +4 -4
- package/lib/module/components/activities-progress/index.js.map +1 -1
- package/lib/module/components/activities-progress/interface.d.js.map +1 -1
- package/lib/module/components/avatar-profile/index.js.map +1 -1
- package/lib/module/components/avatar-profile/interface.d.js.map +1 -1
- package/lib/module/components/card-history/index.js +7 -7
- package/lib/module/components/card-history/index.js.map +1 -1
- package/lib/module/components/card-loading/index.js +7 -7
- package/lib/module/components/card-loading/index.js.map +1 -1
- package/lib/module/components/card-work-session/index.js +4 -4
- package/lib/module/components/card-work-session/index.js.map +1 -1
- package/lib/module/components/check-box/index.js +6 -6
- package/lib/module/components/check-box/index.js.map +1 -1
- package/lib/module/components/check-box/interface.d.js.map +1 -1
- package/lib/module/components/coil/index.js +4 -4
- package/lib/module/components/coil/index.js.map +1 -1
- package/lib/module/components/coil/interface.d.js.map +1 -1
- package/lib/module/components/filter-date-selector/index.js +7 -7
- package/lib/module/components/filter-date-selector/index.js.map +1 -1
- package/lib/module/components/history-details/index.js +1 -2
- package/lib/module/components/history-details/index.js.map +1 -1
- package/lib/module/components/history-details/interface.d.js.map +1 -1
- package/lib/module/components/image-capture-with-remove/index.js +7 -7
- package/lib/module/components/image-capture-with-remove/index.js.map +1 -1
- package/lib/module/components/image-capture-with-remove/interface.d.js.map +1 -1
- package/lib/module/components/loading-progress/index.js +12 -9
- package/lib/module/components/loading-progress/index.js.map +1 -1
- package/lib/module/components/notification-loading/index.js +9 -2
- package/lib/module/components/notification-loading/index.js.map +1 -1
- package/lib/module/components/notification-loading/interface.d.js.map +1 -1
- package/lib/module/components/profile-menu-option/index.js.map +1 -1
- package/lib/module/components/profile-menu-option/interface.d.js.map +1 -1
- package/lib/module/components/step-indicator/index.js +6 -6
- package/lib/module/components/step-indicator/index.js.map +1 -1
- package/lib/module/components/step-indicator/interface.d.js.map +1 -1
- package/lib/module/components/step-indicator/styles.js +9 -8
- package/lib/module/components/step-indicator/styles.js.map +1 -1
- package/lib/module/components/user-profile/index.js +6 -6
- package/lib/module/components/user-profile/index.js.map +1 -1
- package/lib/module/index.js +2 -2
- package/lib/module/index.js.map +1 -1
- package/lib/module/stories/activities-daily/activities-daily.stories.js.map +1 -1
- package/lib/module/stories/activities-progress/activities-progress.stories.js.map +1 -1
- package/lib/module/stories/avatar-profile/avatar-profile.stories.js.map +1 -1
- package/lib/module/stories/card-loading/card-loading.stories.js.map +1 -1
- package/lib/module/stories/check-box/check-box.stories.js.map +1 -1
- package/lib/module/stories/coil/coil.stories.js.map +1 -1
- package/lib/module/stories/filter-date-selector/filter-date-selector.stories.js.map +1 -1
- package/lib/module/stories/history-details/history-details.stories.js.map +1 -1
- package/lib/module/stories/image-capture-with-remove/image-capture-with-remove.stories.js.map +1 -1
- package/lib/module/stories/notification-loading/notification-loading.stories.js.map +1 -1
- package/lib/module/stories/profile-menu-option/profile-menu-option.stories.js.map +1 -1
- package/lib/module/stories/step-indicator/step-indicator.stories.js.map +1 -1
- package/lib/module/styles/theme/theme.js +4 -4
- package/lib/module/styles/theme/theme.js.map +1 -1
- package/lib/module/utils/format-data/index.js +11 -11
- package/lib/module/utils/format-data/index.js.map +1 -1
- package/lib/module/utils/status-color/return-color.js.map +1 -1
- package/lib/typescript/src/components/step-indicator/styles.d.ts +1 -0
- package/package.json +2 -2
- package/src/common/icons-svg/agent/index.tsx +40 -40
- package/src/common/icons-svg/bed/index.tsx +41 -41
- package/src/common/icons-svg/car/index.tsx +29 -29
- package/src/common/icons-svg/check-outline/index.tsx +42 -42
- package/src/common/icons-svg/coffee/index.tsx +43 -43
- package/src/common/icons-svg/constants/index.ts +63 -63
- package/src/common/icons-svg/index.tsx +255 -255
- package/src/common/icons-svg/pencil/index.tsx +32 -32
- package/src/common/icons-svg/refresh-ccw-dot/index.tsx +32 -32
- package/src/common/icons-svg/truck-activity/index.tsx +29 -29
- package/src/components/activities-daily/index.tsx +116 -116
- package/src/components/activities-daily/interface.d.ts +22 -22
- package/src/components/activities-progress/index.tsx +162 -162
- package/src/components/activities-progress/interface.d.ts +41 -41
- package/src/components/avatar-profile/index.tsx +95 -95
- package/src/components/avatar-profile/interface.d.ts +39 -39
- package/src/components/card-history/index.tsx +149 -149
- package/src/components/card-loading/index.tsx +278 -278
- package/src/components/card-work-session/index.tsx +187 -187
- package/src/components/check-box/index.tsx +94 -94
- package/src/components/check-box/interface.d.ts +31 -31
- package/src/components/coil/index.tsx +103 -103
- package/src/components/coil/interface.d.ts +26 -26
- package/src/components/filter-date-selector/index.tsx +101 -101
- package/src/components/history-details/index.tsx +1 -2
- package/src/components/history-details/interface.d.ts +18 -18
- package/src/components/image-capture-with-remove/index.tsx +89 -89
- package/src/components/image-capture-with-remove/interface.d.ts +25 -25
- package/src/components/loading-progress/index.tsx +92 -91
- package/src/components/notification-loading/index.tsx +9 -2
- package/src/components/notification-loading/interface.d.ts +35 -35
- package/src/components/profile-menu-option/index.tsx +65 -65
- package/src/components/profile-menu-option/interface.d.ts +42 -42
- package/src/components/step-indicator/index.tsx +164 -164
- package/src/components/step-indicator/interface.d.ts +34 -34
- package/src/components/step-indicator/styles.ts +68 -67
- package/src/components/user-profile/index.tsx +204 -204
- package/src/index.ts +42 -42
- package/src/stories/activities-daily/activities-daily.stories.tsx +40 -40
- package/src/stories/activities-progress/activities-progress.stories.tsx +61 -61
- package/src/stories/avatar-profile/avatar-profile.stories.tsx +32 -32
- package/src/stories/card-loading/card-loading.stories.tsx +85 -85
- package/src/stories/check-box/check-box.stories.tsx +81 -81
- package/src/stories/coil/coil.stories.tsx +98 -98
- package/src/stories/filter-date-selector/filter-date-selector.stories.tsx +122 -122
- package/src/stories/history-details/history-details.stories.tsx +36 -36
- package/src/stories/image-capture-with-remove/image-capture-with-remove.stories.tsx +57 -57
- package/src/stories/notification-loading/notification-loading.stories.tsx +88 -88
- package/src/stories/profile-menu-option/profile-menu-option.stories.tsx +70 -70
- package/src/stories/step-indicator/step-indicator.stories.tsx +124 -124
- package/src/styles/theme/theme.ts +170 -170
- package/src/utils/format-data/index.ts +66 -66
- package/src/utils/status-color/return-color.ts +23 -23
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","TouchableOpacity","Box","Typography","Icons","theme","Coil","description","handleNavigation","title","testID","status","backgroundColor","style","disabled","backgroundColorIcon","createElement","activeOpacity","onPress","width","flexStyle","flexDirection","alignItems","height","colors","blue","borderStyled","borderWidth","borderWidths","thin","borderRadius","thick_medium","borderColor","paddingStyle","padding","paddings","marginStyle","marginBottom","margins","md","elevation","justifyContent","icon","size","flexWrap","marginLeft","lg","text","fontSizes","fontFamily","fonts","inter_bold_700","color","neutral","letterSpacing","paddingTop","inter_semi_bold_600","background"],"sources":["index.tsx"],"sourcesContent":["/**\
|
|
1
|
+
{"version":3,"names":["React","TouchableOpacity","Box","Typography","Icons","theme","Coil","description","handleNavigation","title","testID","status","backgroundColor","style","disabled","backgroundColorIcon","createElement","activeOpacity","onPress","width","flexStyle","flexDirection","alignItems","height","colors","blue","borderStyled","borderWidth","borderWidths","thin","borderRadius","thick_medium","borderColor","paddingStyle","padding","paddings","marginStyle","marginBottom","margins","md","elevation","justifyContent","icon","size","flexWrap","marginLeft","lg","text","fontSizes","fontFamily","fonts","inter_bold_700","color","neutral","letterSpacing","paddingTop","inter_semi_bold_600","background"],"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":"AAAA;AACA;AACA;AACA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,gBAAgB,QAAQ,cAAc;;AAE/C;AACA,SAASC,GAAG,QAAQ,QAAQ;AAC5B,SAASC,UAAU,QAAQ,eAAe;;AAE1C;AACA,SAASC,KAAK,QAAQ,wBAAwB;;AAE9C;AACA,SAASC,KAAK,QAAQ,0BAA0B;AAIhD,MAAMC,IAAqB,GAAGA,CAAC;EAC7BC,WAAW;EACXC,gBAAgB;EAChBC,KAAK;EACLC,MAAM;EACNC,MAAM;EACNC,eAAe;EACfC,KAAK;EACLC,QAAQ;EACRC;AACF,CAAC,KAAK;EACJ,oBACEf,KAAA,CAAAgB,aAAA,CAACf,gBAAgB;IACfa,QAAQ,EAAEA,QAAS;IACnBG,aAAa,EAAE,GAAI;IACnBP,MAAM,EAAEA,MAAO;IACfQ,OAAO,EAAEV;EAAiB,gBAE1BR,KAAA,CAAAgB,aAAA,CAACd,GAAG;IACFiB,KAAK,EAAE,MAAO;IACdC,SAAS,EAAE;MAAEC,aAAa,EAAE,KAAK;MAAEC,UAAU,EAAE;IAAS,CAAE;IAC1DC,MAAM,EAAE,EAAG;IACXX,eAAe,EAAEA,eAAe,aAAfA,eAAe,cAAfA,eAAe,GAAIP,KAAK,CAACmB,MAAM,CAACC,IAAI,CAAC,GAAG,CAAE;IAC3DC,YAAY,EAAE;MACZC,WAAW,EAAEtB,KAAK,CAACuB,YAAY,CAACC,IAAI;MACpCC,YAAY,EAAEzB,KAAK,CAACuB,YAAY,CAACG,YAAY;MAC7CC,WAAW,EAAEpB,eAAe,aAAfA,eAAe,cAAfA,eAAe,GAAIP,KAAK,CAACmB,MAAM,CAACC,IAAI,CAAC,GAAG;IACvD,CAA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AU,EAAE5C,KAAK,CAAC6C,KAAK,CAACM,mBAAoB;IAC5CJ,KAAK,EAAE/C,KAAK,CAACmB,MAAM,CAAC6B,OAAO,CAAC,EAAE,CAAE;IAChCC,aAAa,EAAE;EAAU,CAC1B,CACE,CACF,CAAC,eAENtD,KAAA,CAAAgB,aAAA,CAACd,GAAG;IACFiB,KAAK,EAAE,KAAM;IACbC,SAAS,EAAE;MAAEC,aAAa,EAAE,KAAK;MAAEC,UAAU,EAAE,QAAQ;MAAEmB,cAAc,EAAE;IAAW,CAAE;IACtFlB,MAAM,EAAE;EAAG,GAEVZ,MAAM,KAAK,WAAW,iBACrBX,KAAA,CAAAgB,aAAA,CAACZ,KAAK;IAACsC,IAAI,EAAE,SAAU;IAACC,IAAI,EAAE,EAAG;IAACc,UAAU,EAAE1C;EAAoB,CAAE,CACrE,EACAJ,MAAM,KAAK,WAAW,iBACrBX,KAAA,CAAAgB,aAAA,CAACZ,KAAK;IAACsC,IAAI,EAAE,cAAe;IAACC,IAAI,EAAE,EAAG;IAACc,UAAU,EAAE1C;EAAoB,CAAE,CAC1E,EACA,CAACJ,MAAM,KAAK,UAAU,IAAIA,MAAM,KAAK,WAAW,kBAC/CX,KAAA,CAAAgB,aAAA,CAACZ,KAAK;IAACsC,IAAI,EAAE,oBAAqB;IAACC,IAAI,EAAE,EAAG;IAACc,UAAU,EAAE1C;EAAoB,CAAE,CAE9E,CACF,CACW,CAAC;AAEvB,CAAC;;AAED;AACA;AACA;AACA,SAAST,IAAI","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["interface.d.ts"],"sourcesContent":["/**\
|
|
1
|
+
{"version":3,"names":[],"sources":["interface.d.ts"],"sourcesContent":["/**\n * IMPORTS\n */\nimport { ViewProps } from \"react-native\";\n\n// typing\nimport { IGlobalCss } from \"../../styles/global/interface\";\n\ninterface ICoil extends ViewProps, IGlobalCss {\n /**propriedade que indica o título da bobina */\n title: string;\n\n /**propriedade que indica a descrição da bobina */\n description: string;\n\n /**propriedade que indica que levar para tela da bobina */\n handleNavigation: () => void;\n\n /**propriedade que indica status da bobina */\n status?: \"Cancelado\" | \"Pendente\" | \"Concluido\" | \"Andamento\";\n}\n\n/**\n * EXPORTS\n */\nexport { ICoil };\n"],"mappings":"","ignoreList":[]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* IMPORTS
|
|
1
|
+
/**
|
|
2
|
+
* IMPORTS
|
|
3
3
|
*/
|
|
4
4
|
import React from "react";
|
|
5
5
|
import { TouchableOpacity, ActivityIndicator, FlatList } from "react-native";
|
|
@@ -15,9 +15,9 @@ import { theme } from "../../styles/theme/theme";
|
|
|
15
15
|
|
|
16
16
|
import { Icons } from "../../common/icons-svg";
|
|
17
17
|
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* Componente FilterDateSelector para a interação do usuário com ui.
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* Componente FilterDateSelector para a interação do usuário com ui.
|
|
21
21
|
*/
|
|
22
22
|
const FilterDateSelector = ({
|
|
23
23
|
selectedDay,
|
|
@@ -86,8 +86,8 @@ const FilterDateSelector = ({
|
|
|
86
86
|
});
|
|
87
87
|
};
|
|
88
88
|
|
|
89
|
-
/**
|
|
90
|
-
* EXPORTS
|
|
89
|
+
/**
|
|
90
|
+
* EXPORTS
|
|
91
91
|
*/
|
|
92
92
|
export { FilterDateSelector };
|
|
93
93
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","TouchableOpacity","ActivityIndicator","FlatList","Box","Typography","theme","Icons","FilterDateSelector","selectedDay","handleSelectedDay","days","isLoading","testID","renderDayBlock","item","day","index","isSelected","date","createElement","disabled","key","activeOpacity","onPress","width","height","flexStyle","alignItems","justifyContent","backgroundColor","colors","blue","gray","borderStyled","borderRadius","borderWidths","thick_large","borderColor","borderWidth","thin","marginStyle","marginRight","margins","marginTop","size","color","Fragment","icon","neutral","text","toString","padStart","fontSizes","lg","fontFamily","fonts","inter_bold_700","dayName","slice","marginBottom","letterSpacing","daySorted","sort","a","b","Date","fullDate","getTime","dataWithAllOption","horizontal","data","showsHorizontalScrollIndicator","renderItem"],"sources":["index.tsx"],"sourcesContent":["/**\
|
|
1
|
+
{"version":3,"names":["React","TouchableOpacity","ActivityIndicator","FlatList","Box","Typography","theme","Icons","FilterDateSelector","selectedDay","handleSelectedDay","days","isLoading","testID","renderDayBlock","item","day","index","isSelected","date","createElement","disabled","key","activeOpacity","onPress","width","height","flexStyle","alignItems","justifyContent","backgroundColor","colors","blue","gray","borderStyled","borderRadius","borderWidths","thick_large","borderColor","borderWidth","thin","marginStyle","marginRight","margins","marginTop","size","color","Fragment","icon","neutral","text","toString","padStart","fontSizes","lg","fontFamily","fonts","inter_bold_700","dayName","slice","marginBottom","letterSpacing","daySorted","sort","a","b","Date","fullDate","getTime","dataWithAllOption","horizontal","data","showsHorizontalScrollIndicator","renderItem"],"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":"AAAA;AACA;AACA;AACA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,gBAAgB,EAAEC,iBAAiB,EAAEC,QAAQ,QAAQ,cAAc;;AAE5E;AACA,SAASC,GAAG,QAAQ,QAAQ;AAC5B,SAASC,UAAU,QAAQ,eAAe;;AAE1C;AACA,SAASC,KAAK,QAAQ,0BAA0B;;AAEhD;;AAEA,SA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,YAAY,EAAE5C,GAAG,CAACG,IAAI,KAAK,KAAK,GAAGb,KAAK,CAACqC,OAAO,CAAC,KAAK,CAAC,GAAG,CAAE;MAC5DkB,aAAa,EAAC;IAAM,CACrB,CACD,CAEJ,CAED,CACW,CAAC;EAEvB,CAAC;EACD,MAAMC,SAAS,GAAGnD,IAAI,CAACoD,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,oBACE9D,KAAA,CAAAoB,aAAA,CAACjB,QAAQ;IACPmE,UAAU;IACVC,IAAI,EAAEF,iBAAkB;IACxBG,8BAA8B,EAAE,KAAM;IACtCC,UAAU,EAAE3D;EAAe,CAC5B,CAAC;AAEN,CAAC;;AAED;AACA;AACA;AACA,SAASN,kBAAkB","ignoreList":[]}
|
|
@@ -11,7 +11,6 @@ import { Typography } from "../typography";
|
|
|
11
11
|
|
|
12
12
|
// styles
|
|
13
13
|
import { theme } from "../../styles/theme/theme";
|
|
14
|
-
import { formatDate } from "../../utils/format-data";
|
|
15
14
|
const HistoryDetails = ({
|
|
16
15
|
numero = "01020304050607",
|
|
17
16
|
local = "Doca 1, Pátio 02 - Usimais (Ipatinga)",
|
|
@@ -50,7 +49,7 @@ const HistoryDetails = ({
|
|
|
50
49
|
letterSpacing: "regular",
|
|
51
50
|
numberOfLines: 1
|
|
52
51
|
}), /*#__PURE__*/React.createElement(Typography, {
|
|
53
|
-
text: `Data carregamento: ${
|
|
52
|
+
text: `Data carregamento: ${date}`,
|
|
54
53
|
color: theme.colors.neutral[25],
|
|
55
54
|
size: theme.fontSizes.xs,
|
|
56
55
|
fontFamily: theme.fonts.inter_regular_400,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","Box","Typography","theme","
|
|
1
|
+
{"version":3,"names":["React","Box","Typography","theme","HistoryDetails","numero","local","date","duracao","createElement","width","borderStyled","borderRadius","backgroundColor","colors","blue","flexStyle","flexDirection","justifyContent","alignItems","paddingStyle","padding","paddings","xs","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"],"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 { Typography } from \"../typography\";\r\n\r\n// typings\r\nimport { IHistoryDetails } from \"./interface\";\r\n\r\n// styles\r\nimport { theme } from \"../../styles/theme/theme\";\r\n\r\nconst HistoryDetails: React.FC<IHistoryDetails> = ({\r\n numero = \"01020304050607\",\r\n local = \"Doca 1, Pátio 02 - Usimais (Ipatinga)\",\r\n date = \"24/03/2025\",\r\n duracao = \"00:30\",\r\n}) => {\r\n return (\r\n <Box width=\"100%\" borderStyled={{ borderRadius: 8 }} backgroundColor={theme.colors.blue[400]}>\r\n <Box\r\n flexStyle={{\r\n flexDirection: \"column\",\r\n justifyContent: \"flex-start\",\r\n alignItems: \"flex-start\",\r\n }}\r\n paddingStyle={{ padding: theme.paddings.xs }}\r\n >\r\n <Typography\r\n text={`Carregamento - #${numero}`}\r\n size={theme.fontSizes.sm}\r\n fontFamily={theme.fonts.inter_semi_bold_600}\r\n fontWeight=\"600\"\r\n color={theme.colors.neutral[25]}\r\n lineHeight={theme.fontSizes.xl}\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.lg}\r\n fontFamily={theme.fonts.inter_regular_400}\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 fontFamily={theme.fonts.inter_regular_400}\r\n lineHeight={theme.fontSizes.lg}\r\n letterSpacing={\"regular\"}\r\n numberOfLines={1}\r\n />\r\n </Box>\r\n\r\n <Box height={1} backgroundColor={theme.colors.gray[950]} />\r\n\r\n <Box\r\n flexStyle={{\r\n flexDirection: \"row\",\r\n justifyContent: \"space-between\",\r\n alignItems: \"center\",\r\n }}\r\n paddingStyle={{ padding: theme.paddings.xs }}\r\n >\r\n <Typography\r\n text={\"DURAÇÃO:\"}\r\n color={theme.colors.neutral[25]}\r\n size={24}\r\n fontFamily={theme.fonts.inter_regular_400}\r\n fontWeight=\"400\"\r\n lineHeight={theme.fontSizes[\"3xl\"]}\r\n letterSpacing={\"regular\"}\r\n />\r\n <Typography\r\n text={duracao}\r\n color={theme.colors.neutral[25]}\r\n size={26}\r\n align=\"left\"\r\n fontFamily={theme.fonts.inter_medium_500}\r\n fontWeight=\"500\"\r\n lineHeight={theme.fontSizes[\"3xl\"]}\r\n letterSpacing={\"regular\"}\r\n />\r\n </Box>\r\n </Box>\r\n );\r\n};\r\n\r\n/**\r\n * EXPORTS\r\n */\r\nexport { HistoryDetails };\r\n"],"mappings":"AAAA;AACA;AACA;AACA,OAAOA,KAAK,MAAM,OAAO;;AAEzB;AACA,SAASC,GAAG,QAAQ,QAAQ;AAC5B,SAASC,UAAU,QAAQ,eAAe;;AAE1C;;AAGA;AACA,SAASC,KAAK,QAAQ,0BAA0B;AAEhD,MAAMC,cAAyC,GAAGA,CAAC;EACjDC,MAAM,GAAG,gBAAgB;EACzBC,KAAK,GAAG,uCAAuC;EAC/CC,IAAI,GAAG,YAAY;EACnBC,OAAO,GAAG;AACZ,CAAC,KAAK;EACJ,oBACER,KAAA,CAAAS,aAAA,CAACR,GAAG;IAACS,KAAK,EAAC,MAAM;IAACC,YAAY,EAAE;MAAEC,YAAY,EAAE;IAAE,CAAE;IAACC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aAAa,EAAE;EAAU,CAC1B,CACE,CACF,CAAC;AAEV,CAAC;;AAED;AACA;AACA;AACA,SAAShC,cAAc","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["interface.d.ts"],"sourcesContent":["/**\
|
|
1
|
+
{"version":3,"names":[],"sources":["interface.d.ts"],"sourcesContent":["/**\n * IMPORTS\n */\ntype IHistoryDetails = {\n /**número do carregamento */\n numero: string;\n /**local onde vai ser o carregamento */\n local: string;\n /**data de quando o carregamento vai ser realizado */\n date: string;\n /**duração para o carregamento */\n duracao: string;\n};\n\n/**\n * EXPORTS\n */\nexport { IHistoryDetails };\n"],"mappings":"","ignoreList":[]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* IMPORTS
|
|
1
|
+
/**
|
|
2
|
+
* IMPORTS
|
|
3
3
|
*/
|
|
4
4
|
import React from "react";
|
|
5
5
|
import { Image, TouchableOpacity } from "react-native";
|
|
@@ -18,9 +18,9 @@ import { theme } from "../../styles/theme/theme";
|
|
|
18
18
|
// utils
|
|
19
19
|
import { getBorderColor } from "../../utils/status-color/return-color";
|
|
20
20
|
|
|
21
|
-
/**
|
|
22
|
-
*
|
|
23
|
-
* Componente ImageCaptureWithRemove para a interação do usuário com ui.
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* Componente ImageCaptureWithRemove para a interação do usuário com ui.
|
|
24
24
|
*/
|
|
25
25
|
const ImageCaptureWithRemove = ({
|
|
26
26
|
width = 50,
|
|
@@ -82,8 +82,8 @@ const ImageCaptureWithRemove = ({
|
|
|
82
82
|
})));
|
|
83
83
|
};
|
|
84
84
|
|
|
85
|
-
/**
|
|
86
|
-
* EXPORTS
|
|
85
|
+
/**
|
|
86
|
+
* EXPORTS
|
|
87
87
|
*/
|
|
88
88
|
export { ImageCaptureWithRemove };
|
|
89
89
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","Image","TouchableOpacity","Box","Icons","theme","getBorderColor","ImageCaptureWithRemove","width","height","foto","handleTakePhoto","onRemove","status","statusColor","createElement","testID","activeOpacity","style","position","onPress","disabled","flexStyle","flexDirection","alignItems","justifyContent","borderStyled","borderWidth","borderWidths","thick","thin","borderRadius","fontSizes","md","borderColor","colors","blue","Fragment","resizeMode","source","uri","top","right","icon","color","red","size"],"sources":["index.tsx"],"sourcesContent":["/**\
|
|
1
|
+
{"version":3,"names":["React","Image","TouchableOpacity","Box","Icons","theme","getBorderColor","ImageCaptureWithRemove","width","height","foto","handleTakePhoto","onRemove","status","statusColor","createElement","testID","activeOpacity","style","position","onPress","disabled","flexStyle","flexDirection","alignItems","justifyContent","borderStyled","borderWidth","borderWidths","thick","thin","borderRadius","fontSizes","md","borderColor","colors","blue","Fragment","resizeMode","source","uri","top","right","icon","color","red","size"],"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 handleTakePhoto,\n onRemove,\n status,\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 <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 <Icons icon=\"PLUS\" color={theme.colors.blue[400]} />\n )}\n </Box>\n </TouchableOpacity>\n );\n};\n\n/**\n * EXPORTS\n */\nexport { ImageCaptureWithRemove };\n"],"mappings":"AAAA;AACA;AACA;AACA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,KAAK,EAAEC,gBAAgB,QAAQ,cAAc;;AAEtD;AACA,SAASC,GAAG,QAAQ,QAAQ;;AAE5B;AACA,SAASC,KAAK,QAAQ,wBAAwB;;AAE9C;;AAGA;AACA,SAASC,KAAK,QAAQ,0BAA0B;;AAEhD;AACA,SAASC,cAAc,QAAQ,uCAAuC;;AAEtE;AACA;AACA;AACA;AACA,MAAMC,sBAA8D,GAAGA,CAAC;EACtEC,KAAK,GAAG,EAAE;EACVC,MAAM,GAAG,EAAE;EACXC,IAAI,GAAG,IAAI;EACXC,eAAe;EACfC,QAAQ;EACRC;AAC4B,CAAC,KAAK;EAClC,MAAMC,WAAW,GAAGD,MAAM,KAAK,WAAW,IAAIA,MAAM,KAAK,UAAU;EAEnE,oBACEb,KAAA,CAAAe,aAAA,CAACb,gBAAgB;IACfc,MAAM,EAAC,yBAAyB;IAChCC,aAAa,EAAE,GAAI;IACnBC,KAAK,EAAE;MAAEC,QAAQ,EAAE;IAAW,CAAE;IAChCC,OAAO,EAA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,GAAG,CAAE;IAACC,IAAI,EAAE;EAAG,CAAE,CAChD,CAClB,CAAC,gBAEH9C,KAAA,CAAAe,aAAA,CAACX,KAAK;IAACuC,IAAI,EAAC,MAAM;IAACC,KAAK,EAAEvC,KAAK,CAAC8B,MAAM,CAACC,IAAI,CAAC,GAAG;EAAE,CAAE,CAElD,CACW,CAAC;AAEvB,CAAC;;AAED;AACA;AACA;AACA,SAAS7B,sBAAsB","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["interface.d.ts"],"sourcesContent":["/**\
|
|
1
|
+
{"version":3,"names":[],"sources":["interface.d.ts"],"sourcesContent":["/**\n * IMPORTS\n */\ntype IImageCaptureWithRemoveProps = {\n /**define o tamanho */\n width?: number;\n /**define o altura */\n height?: number;\n /**Imagem capturada */\n foto?: string | null;\n\n /**Remove a imagem capturada */\n onRemove: () => void;\n\n /**Captura a imagem */\n handleTakePhoto: () => void;\n\n /**Define o status das fotos */\n status?: \"Pendente\" | \"Concluido\" | \"Cancelado\" | \"Andamento\";\n};\n\n/**\n * EXPORTS\n */\nexport { IImageCaptureWithRemoveProps };\n"],"mappings":"","ignoreList":[]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* IMPORTS
|
|
1
|
+
/**
|
|
2
|
+
* IMPORTS
|
|
3
3
|
*/
|
|
4
4
|
import React from "react";
|
|
5
5
|
|
|
@@ -13,16 +13,19 @@ import { Button } from "../button";
|
|
|
13
13
|
// styles
|
|
14
14
|
import { theme } from "../../styles/theme/theme";
|
|
15
15
|
|
|
16
|
-
/**
|
|
17
|
-
*
|
|
18
|
-
* Componente LoadingProgress para a interação do usuário com ui.
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* Componente LoadingProgress para a interação do usuário com ui.
|
|
19
19
|
*/
|
|
20
20
|
const LoadingProgress = ({
|
|
21
21
|
textLoading,
|
|
22
|
-
handleClick
|
|
22
|
+
handleClick,
|
|
23
|
+
backgroundColor
|
|
23
24
|
}) => {
|
|
24
25
|
const truncatedText = textLoading.length > 15 ? textLoading.substring(0, 13) + "..." : textLoading;
|
|
25
|
-
return /*#__PURE__*/React.createElement(Box,
|
|
26
|
+
return /*#__PURE__*/React.createElement(Box, {
|
|
27
|
+
backgroundColor: backgroundColor !== null && backgroundColor !== void 0 ? backgroundColor : theme.colors.neutral[25]
|
|
28
|
+
}, /*#__PURE__*/React.createElement(Typography, {
|
|
26
29
|
text: "Carregamento em Andamento",
|
|
27
30
|
size: theme.fontSizes.lg,
|
|
28
31
|
fontFamily: theme.fonts.inter_medium_500,
|
|
@@ -89,8 +92,8 @@ const LoadingProgress = ({
|
|
|
89
92
|
}))));
|
|
90
93
|
};
|
|
91
94
|
|
|
92
|
-
/**
|
|
93
|
-
* EXPORTS
|
|
95
|
+
/**
|
|
96
|
+
* EXPORTS
|
|
94
97
|
*/
|
|
95
98
|
export { LoadingProgress };
|
|
96
99
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","Box","Typography","Button","theme","LoadingProgress","textLoading","handleClick","truncatedText","length","substring","createElement","text","size","fontSizes","lg","fontFamily","fonts","inter_medium_500","color","
|
|
1
|
+
{"version":3,"names":["React","Box","Typography","Button","theme","LoadingProgress","textLoading","handleClick","backgroundColor","truncatedText","length","substring","createElement","colors","neutral","text","size","fontSizes","lg","fontFamily","fonts","inter_medium_500","color","gray","paddingStyle","padding","paddings","borderStyled","borderWidth","borderWidths","thin","borderRadius","thick_large","borderStyle","borderColor","marginStyle","marginTop","margins","marginBottom","flexStyle","flexDirection","textAlign","md","inter_bold_700","blue","letterSpacing","alignItems","justifyContent","title","onPress","isLoading","height","width","buttonTextStyle","fontSize","thick_medium"],"sources":["index.tsx"],"sourcesContent":["/**\r\n * IMPORTS\r\n */\r\nimport React from \"react\";\r\n\r\n// component\r\nimport { Box } from \"../box\";\r\nimport { Typography } from \"../typography\";\r\nimport { Button } from \"../button\";\r\n\r\n// typings\r\nimport { ILoadingProgress } from \"./interface\";\r\n\r\n// styles\r\nimport { theme } from \"../../styles/theme/theme\";\r\n\r\n/**\r\n *\r\n * Componente LoadingProgress para a interação do usuário com ui.\r\n */\r\nconst LoadingProgress: React.FC<ILoadingProgress> = ({\r\n textLoading,\r\n handleClick,\r\n backgroundColor,\r\n}: ILoadingProgress) => {\r\n const truncatedText =\r\n textLoading.length > 15 ? textLoading.substring(0, 13) + \"...\" : textLoading;\r\n return (\r\n <Box backgroundColor={backgroundColor ?? theme.colors.neutral[25]}>\r\n <Typography\r\n text=\"Carregamento em Andamento\"\r\n size={theme.fontSizes.lg}\r\n fontFamily={theme.fonts.inter_medium_500}\r\n color={theme.colors.gray[800]}\r\n />\r\n <Box\r\n paddingStyle={{ padding: theme.paddings[\"2xs\"] }}\r\n borderStyled={{\r\n borderWidth: theme.borderWidths.thin,\r\n borderRadius: theme.borderWidths.thick_large,\r\n borderStyle: \"dashed\",\r\n borderColor: theme.colors.neutral[200],\r\n }}\r\n marginStyle={{ marginTop: theme.margins[\"2xs\"], marginBottom: theme.margins[\"2xs\"] }}\r\n >\r\n <Box flexStyle={{ flexDirection: \"row\", textAlign: \"center\" }}>\r\n <Typography\r\n text={\"N° Carregamento: \"}\r\n size={theme.fontSizes.md}\r\n fontFamily={theme.fonts.inter_bold_700}\r\n color={theme.colors.blue[400]}\r\n />\r\n\r\n <Typography\r\n text={truncatedText}\r\n size={theme.fontSizes.md}\r\n fontFamily={theme.fonts.inter_medium_500}\r\n color={theme.colors.gray[800]}\r\n letterSpacing={\"regular\"}\r\n />\r\n </Box>\r\n <Box\r\n flexStyle={{ alignItems: \"center\", justifyContent: \"center\", flexDirection: \"row\" }}\r\n marginStyle={{ marginTop: theme.margins[\"2xs\"] }}\r\n >\r\n <Button\r\n title={\"Visualizar\"}\r\n onPress={handleClick}\r\n backgroundColor={theme.colors.blue[400]}\r\n isLoading={false}\r\n height={32}\r\n width={\"75%\"}\r\n buttonTextStyle={{\r\n color: theme.colors.neutral[25],\r\n fontFamily: theme.fonts.inter_medium_500,\r\n fontSize: theme.fontSizes.lg,\r\n }}\r\n flexStyle={{ alignItems: \"center\", justifyContent: \"center\", flexDirection: \"row\" }}\r\n borderStyled={{\r\n borderRadius: theme.borderWidths.thick_medium,\r\n }}\r\n />\r\n </Box>\r\n </Box>\r\n </Box>\r\n );\r\n};\r\n\r\n/**\r\n * EXPORTS\r\n */\r\nexport { LoadingProgress };\r\n"],"mappings":"AAAA;AACA;AACA;AACA,OAAOA,KAAK,MAAM,OAAO;;AAEzB;AACA,SAASC,GAAG,QAAQ,QAAQ;AAC5B,SAASC,UAAU,QAAQ,eAAe;AAC1C,SAASC,MAAM,QAAQ,WAAW;;AAElC;;AAGA;AACA,SAASC,KAAK,QAAQ,0BAA0B;;AAEhD;AACA;AACA;AACA;AACA,MAAMC,eAA2C,GAAGA,CAAC;EACnDC,WAAW;EACXC,WAAW;EACXC;AACgB,CAAC,KAAK;EACtB,MAAMC,aAAa,GACjBH,WAAW,CAACI,MAAM,GAAG,EAAE,GAAGJ,WAAW,CAACK,SAAS,CAAC,CAAC,EAAE,EAAE,CAAC,GAAG,KAAK,GAAGL,WAAW;EAC9E,oBACEN,KAAA,CAAAY,aAAA,CAACX,GAAG;IAACO,eAAe,EAAEA,eAAe,aAAfA,eAAe,cAAfA,eAAe,GAAIJ,KAAK,CAACS,MAAM,CAACC,OAAO,CAAC,EAAE;EAAE,gBAChEd,KAAA,CAAAY,aAAA,CAACV,UAAU;IACTa,IAAI,EAAC,2BAA2B;IAChCC,IAAI,EAAEZ,KAAK,CAACa,SAAS,CAACC,EAAG;IACzBC,UAAU,EAAEf,KAAK,CAACgB,KAAK,CAACC,gBAAiB;IACzCC,KAAK,EAAElB,KAAK,CAACS,MAAM,CAACU,IAAI,CAAC,GAAG;EAAE,CAC/B,CAAC,eACFvB,KAAA,CAAAY,aAAA,CAACX,GAAG;IACFuB,YAAY,EAAE;MAAEC,OAAO,EA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,WAAW,EAAE;MAAEC,SAAS,EAAEhC,KAAK,CAACiC,OAAO,CAAC,KAAK;IAAE;EAAE,gBAEjDrC,KAAA,CAAAY,aAAA,CAACT,MAAM;IACL6C,KAAK,EAAE,YAAa;IACpBC,OAAO,EAAE1C,WAAY;IACrBC,eAAe,EAAEJ,KAAK,CAACS,MAAM,CAAC+B,IAAI,CAAC,GAAG,CAAE;IACxCM,SAAS,EAAE,KAAM;IACjBC,MAAM,EAAE,EAAG;IACXC,KAAK,EAAE,KAAM;IACbC,eAAe,EAAE;MACf/B,KAAK,EAAElB,KAAK,CAACS,MAAM,CAACC,OAAO,CAAC,EAAE,CAAC;MAC/BK,UAAU,EAAEf,KAAK,CAACgB,KAAK,CAACC,gBAAgB;MACxCiC,QAAQ,EAAElD,KAAK,CAACa,SAAS,CAACC;IAC5B,CAAE;IACFqB,SAAS,EAAE;MAAEO,UAAU,EAAE,QAAQ;MAAEC,cAAc,EAAE,QAAQ;MAAEP,aAAa,EAAE;IAAM,CAAE;IACpFb,YAAY,EAAE;MACZI,YAAY,EAAE3B,KAAK,CAACyB,YAAY,CAAC0B;IACnC;EAAE,CACH,CACE,CACF,CACF,CAAC;AAEV,CAAC;;AAED;AACA;AACA;AACA,SAASlD,eAAe","ignoreList":[]}
|
|
@@ -69,15 +69,17 @@ const NotificationLoading = ({
|
|
|
69
69
|
}, /*#__PURE__*/React.createElement(Typography, {
|
|
70
70
|
text: "Carregamento - ",
|
|
71
71
|
size: theme.fontSizes.sm,
|
|
72
|
-
lineHeight: theme.fontSizes.
|
|
72
|
+
lineHeight: theme.fontSizes.lg,
|
|
73
73
|
fontFamily: theme.fonts.inter_semi_bold_600,
|
|
74
|
+
fontWeight: "600",
|
|
74
75
|
color: theme.colors.neutral[25],
|
|
75
76
|
letterSpacing: "regular"
|
|
76
77
|
}), /*#__PURE__*/React.createElement(Typography, {
|
|
77
78
|
text: title,
|
|
78
79
|
size: theme.fontSizes.xs,
|
|
79
|
-
lineHeight: theme.fontSizes.
|
|
80
|
+
lineHeight: theme.fontSizes.md,
|
|
80
81
|
fontFamily: theme.fonts.inter_bold_700,
|
|
82
|
+
fontWeight: "700",
|
|
81
83
|
color: theme.colors.neutral[25],
|
|
82
84
|
letterSpacing: "regular"
|
|
83
85
|
})), /*#__PURE__*/React.createElement(Box, {
|
|
@@ -96,6 +98,7 @@ const NotificationLoading = ({
|
|
|
96
98
|
size: theme.fontSizes.sm,
|
|
97
99
|
lineHeight: (_theme$fontSizes$lg = theme.fontSizes.lg) !== null && _theme$fontSizes$lg !== void 0 ? _theme$fontSizes$lg : 18,
|
|
98
100
|
fontFamily: theme.fonts.inter_medium_500,
|
|
101
|
+
fontWeight: "500",
|
|
99
102
|
color: theme.colors.neutral[25],
|
|
100
103
|
letterSpacing: "regular"
|
|
101
104
|
}), /*#__PURE__*/React.createElement(Typography, {
|
|
@@ -103,6 +106,7 @@ const NotificationLoading = ({
|
|
|
103
106
|
size: theme.fontSizes.sm,
|
|
104
107
|
lineHeight: (_theme$fontSizes$lg2 = theme.fontSizes.lg) !== null && _theme$fontSizes$lg2 !== void 0 ? _theme$fontSizes$lg2 : 18,
|
|
105
108
|
fontFamily: theme.fonts.inter_medium_500,
|
|
109
|
+
fontWeight: "500",
|
|
106
110
|
color: theme.colors.neutral[25],
|
|
107
111
|
letterSpacing: "regular"
|
|
108
112
|
})), /*#__PURE__*/React.createElement(Box, {
|
|
@@ -114,6 +118,8 @@ const NotificationLoading = ({
|
|
|
114
118
|
text: String(dataStart),
|
|
115
119
|
size: theme.fontSizes["2xs"],
|
|
116
120
|
fontFamily: theme.fonts.inter_medium_500,
|
|
121
|
+
fontWeight: "500",
|
|
122
|
+
lineHeight: theme.fontSizes.sm,
|
|
117
123
|
color: theme.colors.neutral[25],
|
|
118
124
|
letterSpacing: "regular",
|
|
119
125
|
marginRight: 8
|
|
@@ -125,6 +131,7 @@ const NotificationLoading = ({
|
|
|
125
131
|
text: notification,
|
|
126
132
|
size: theme.fontSizes["2xs"],
|
|
127
133
|
fontFamily: theme.fonts.inter_medium_500,
|
|
134
|
+
fontWeight: "500",
|
|
128
135
|
lineHeight: (_theme$fontSizes$sm = theme.fontSizes.sm) !== null && _theme$fontSizes$sm !== void 0 ? _theme$fontSizes$sm : 14,
|
|
129
136
|
color: theme.colors.neutral[25],
|
|
130
137
|
letterSpacing: "regular",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","TouchableOpacity","Box","Typography","Icons","theme","getStatusColor","NotificationLoading","handleNavigation","title","testID","statusNotify","date","notification","dataStart","style","readonly","_theme$fontSizes$lg","_theme$fontSizes$lg2","_theme$fontSizes$sm","createElement","activeOpacity","onPress","disabled","width","flexStyle","flexDirection","alignItems","backgroundColor","colors","blue","borderStyled","borderWidth","borderWidths","thin","borderRadius","thick_medium","borderColor","paddingStyle","padding","paddings","icon","size","color","neutral","paddingLeft","text","fontSizes","sm","lineHeight","fontFamily","fonts","inter_semi_bold_600","letterSpacing","xs","inter_bold_700","justifyContent","lg","inter_medium_500","String","marginRight","ellipsizeMode","numberOfLines"],"sources":["index.tsx"],"sourcesContent":["/**\r\n * IMPORTS\r\n */\r\nimport React from \"react\";\r\nimport { TouchableOpacity } from \"react-native\";\r\n\r\n// components\r\nimport { Box } from \"../box\";\r\nimport { Typography } from \"../typography\";\r\n\r\n// icons\r\nimport { Icons } from \"../../common/icons-svg\";\r\n\r\n// theme\r\nimport { theme } from \"../../styles/theme/theme\";\r\n\r\nimport { INotificationLoading } from \"./interface\";\r\nimport { getStatusColor, StatusType } from \"../../utils/status-color/return-color\";\r\n\r\nconst NotificationLoading: React.FC<INotificationLoading> = ({\r\n handleNavigation,\r\n title,\r\n testID,\r\n statusNotify,\r\n date,\r\n notification,\r\n dataStart,\r\n style,\r\n readonly,\r\n}) => {\r\n return (\r\n <TouchableOpacity\r\n activeOpacity={0.7}\r\n testID={testID}\r\n onPress={handleNavigation}\r\n disabled={readonly}\r\n >\r\n <Box\r\n width={\"100%\"}\r\n flexStyle={{ flexDirection: \"row\", alignItems: \"center\" }}\r\n backgroundColor={readonly ? theme.colors.blue[40050] : theme.colors.blue[400]}\r\n borderStyled={{\r\n borderWidth: theme.borderWidths.thin,\r\n borderRadius: theme.borderWidths.thick_medium,\r\n borderColor: readonly ? theme.colors.blue[40050] : theme.colors.blue[400],\r\n }}\r\n paddingStyle={{ padding: theme.paddings[\"2xs\"] }}\r\n style={style}\r\n >\r\n <Box width={\"9%\"}>\r\n <Icons icon={\"BELL\"} size={32} color={theme.colors.neutral[25]} />\r\n </Box>\r\n\r\n <Box\r\n flexStyle={{ flexDirection: \"column\" }}\r\n width={\"91%\"}\r\n paddingStyle={{ paddingLeft: 7 }}\r\n >\r\n {/* Carregamento identificação */}\r\n <Box flexStyle={{ flexDirection: \"row\", alignItems: \"center\" }}>\r\n <Typography\r\n text={\"Carregamento - \"}\r\n size={theme.fontSizes.sm}\r\n lineHeight={theme.fontSizes.sm}\r\n fontFamily={theme.fonts.inter_semi_bold_600}\r\n color={theme.colors.neutral[25]}\r\n letterSpacing={\"regular\"}\r\n />\r\n <Typography\r\n text={title}\r\n size={theme.fontSizes.xs}\r\n lineHeight={theme.fontSizes.sm}\r\n fontFamily={theme.fonts.inter_bold_700}\r\n color={theme.colors.neutral[25]}\r\n letterSpacing={\"regular\"}\r\n />\r\n </Box>\r\n\r\n {/* Data do carregamento */}\r\n <Box\r\n flexStyle={{\r\n flexDirection: \"row\",\r\n alignItems: \"center\",\r\n justifyContent: \"space-between\",\r\n }}\r\n >\r\n <Box\r\n flexStyle={{\r\n flexDirection: \"row\",\r\n alignItems: \"center\",\r\n }}\r\n >\r\n <Typography\r\n text={\"Data - \"}\r\n size={theme.fontSizes.sm}\r\n lineHeight={theme.fontSizes.lg ?? 18}\r\n fontFamily={theme.fonts.inter_medium_500}\r\n color={theme.colors.neutral[25]}\r\n letterSpacing={\"regular\"}\r\n />\r\n <Typography\r\n text={String(date)}\r\n size={theme.fontSizes.sm}\r\n lineHeight={theme.fontSizes.lg ?? 18}\r\n fontFamily={theme.fonts.inter_medium_500}\r\n color={theme.colors.neutral[25]}\r\n letterSpacing={\"regular\"}\r\n />\r\n </Box>\r\n <Box\r\n flexStyle={{\r\n flexDirection: \"row\",\r\n alignItems: \"center\",\r\n }}\r\n >\r\n <Typography\r\n text={String(dataStart)}\r\n size={theme.fontSizes[\"2xs\"]}\r\n fontFamily={theme.fonts.inter_medium_500}\r\n color={theme.colors.neutral[25]}\r\n letterSpacing={\"regular\"}\r\n marginRight={8}\r\n />\r\n\r\n <Icons\r\n icon={\"ELLIPSE\"}\r\n color={\r\n readonly ? theme.colors.neutral[25] : getStatusColor(statusNotify as StatusType)\r\n }\r\n size={9}\r\n />\r\n </Box>\r\n </Box>\r\n\r\n {/* Mensagem de notificação do carregamento */}\r\n <Typography\r\n text={notification}\r\n size={theme.fontSizes[\"2xs\"]}\r\n fontFamily={theme.fonts.inter_medium_500}\r\n lineHeight={theme.fontSizes.sm ?? 14}\r\n color={theme.colors.neutral[25]}\r\n letterSpacing={\"regular\"}\r\n ellipsizeMode=\"tail\"\r\n numberOfLines={1}\r\n />\r\n </Box>\r\n </Box>\r\n </TouchableOpacity>\r\n );\r\n};\r\n\r\n/**\r\n * EXPORTS\r\n */\r\nexport { NotificationLoading };\r\n"],"mappings":"AAAA;AACA;AACA;AACA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,gBAAgB,QAAQ,cAAc;;AAE/C;AACA,SAASC,GAAG,QAAQ,QAAQ;AAC5B,SAASC,UAAU,QAAQ,eAAe;;AAE1C;AACA,SAASC,KAAK,QAAQ,wBAAwB;;AAE9C;AACA,SAASC,KAAK,QAAQ,0BAA0B;AAGhD,SAASC,cAAc,QAAoB,uCAAuC;AAElF,MAAMC,mBAAmD,GAAGA,CAAC;EAC3DC,gBAAgB;EAChBC,KAAK;EACLC,MAAM;EACNC,YAAY;EACZC,IAAI;EACJC,YAAY;EACZC,SAAS;EACTC,KAAK;EACLC;AACF,CAAC,KAAK;EAAA,I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ACJqC,IAAI,EAAE,SAAU;IAChBE,KAAK,EACH3B,QAAQ,GAAGX,KAAK,CAACwB,MAAM,CAACe,OAAO,CAAC,EAAE,CAAC,GAAGtC,cAAc,CAACK,YAA0B,CAChF;IACD+B,IAAI,EAAE;EAAE,CACT,CACE,CACF,CAAC,eAGN1C,KAAA,CAAAoB,aAAA,CAACjB,UAAU;IACT2C,IAAI,EAAEjC,YAAa;IACnB6B,IAAI,EAAErC,KAAK,CAAC0C,SAAS,CAAC,KAAK,CAAE;IAC7BG,UAAU,EAAE7C,KAAK,CAAC8C,KAAK,CAACO,gBAAiB;IACzCT,UAAU,GAAA9B,mBAAA,GAAEd,KAAK,CAAC0C,SAAS,CAACC,EAAE,cAAA7B,mBAAA,cAAAA,mBAAA,GAAI,EAAG;IACrCwB,KAAK,EAAEtC,KAAK,CAACwB,MAAM,CAACe,OAAO,CAAC,EAAE,CAAE;IAChCS,aAAa,EAAE,SAAU;IACzBQ,aAAa,EAAC,MAAM;IACpBC,aAAa,EAAE;EAAE,CAClB,CACE,CACF,CACW,CAAC;AAEvB,CAAC;;AAED;AACA;AACA;AACA,SAASvD,mBAAmB","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["React","TouchableOpacity","Box","Typography","Icons","theme","getStatusColor","NotificationLoading","handleNavigation","title","testID","statusNotify","date","notification","dataStart","style","readonly","_theme$fontSizes$lg","_theme$fontSizes$lg2","_theme$fontSizes$sm","createElement","activeOpacity","onPress","disabled","width","flexStyle","flexDirection","alignItems","backgroundColor","colors","blue","borderStyled","borderWidth","borderWidths","thin","borderRadius","thick_medium","borderColor","paddingStyle","padding","paddings","icon","size","color","neutral","paddingLeft","text","fontSizes","sm","lineHeight","lg","fontFamily","fonts","inter_semi_bold_600","fontWeight","letterSpacing","xs","md","inter_bold_700","justifyContent","inter_medium_500","String","marginRight","ellipsizeMode","numberOfLines"],"sources":["index.tsx"],"sourcesContent":["/**\r\n * IMPORTS\r\n */\r\nimport React from \"react\";\r\nimport { TouchableOpacity } from \"react-native\";\r\n\r\n// components\r\nimport { Box } from \"../box\";\r\nimport { Typography } from \"../typography\";\r\n\r\n// icons\r\nimport { Icons } from \"../../common/icons-svg\";\r\n\r\n// theme\r\nimport { theme } from \"../../styles/theme/theme\";\r\n\r\nimport { INotificationLoading } from \"./interface\";\r\nimport { getStatusColor, StatusType } from \"../../utils/status-color/return-color\";\r\n\r\nconst NotificationLoading: React.FC<INotificationLoading> = ({\r\n handleNavigation,\r\n title,\r\n testID,\r\n statusNotify,\r\n date,\r\n notification,\r\n dataStart,\r\n style,\r\n readonly,\r\n}) => {\r\n return (\r\n <TouchableOpacity\r\n activeOpacity={0.7}\r\n testID={testID}\r\n onPress={handleNavigation}\r\n disabled={readonly}\r\n >\r\n <Box\r\n width={\"100%\"}\r\n flexStyle={{ flexDirection: \"row\", alignItems: \"center\" }}\r\n backgroundColor={readonly ? theme.colors.blue[40050] : theme.colors.blue[400]}\r\n borderStyled={{\r\n borderWidth: theme.borderWidths.thin,\r\n borderRadius: theme.borderWidths.thick_medium,\r\n borderColor: readonly ? theme.colors.blue[40050] : theme.colors.blue[400],\r\n }}\r\n paddingStyle={{ padding: theme.paddings[\"2xs\"] }}\r\n style={style}\r\n >\r\n <Box width={\"9%\"}>\r\n <Icons icon={\"BELL\"} size={32} color={theme.colors.neutral[25]} />\r\n </Box>\r\n\r\n <Box\r\n flexStyle={{ flexDirection: \"column\" }}\r\n width={\"91%\"}\r\n paddingStyle={{ paddingLeft: 7 }}\r\n >\r\n {/* Carregamento identificação */}\r\n <Box flexStyle={{ flexDirection: \"row\", alignItems: \"center\" }}>\r\n <Typography\r\n text={\"Carregamento - \"}\r\n size={theme.fontSizes.sm}\r\n lineHeight={theme.fontSizes.lg}\r\n fontFamily={theme.fonts.inter_semi_bold_600}\r\n fontWeight=\"600\"\r\n color={theme.colors.neutral[25]}\r\n letterSpacing={\"regular\"}\r\n />\r\n <Typography\r\n text={title}\r\n size={theme.fontSizes.xs}\r\n lineHeight={theme.fontSizes.md}\r\n fontFamily={theme.fonts.inter_bold_700}\r\n fontWeight=\"700\"\r\n color={theme.colors.neutral[25]}\r\n letterSpacing={\"regular\"}\r\n />\r\n </Box>\r\n\r\n {/* Data do carregamento */}\r\n <Box\r\n flexStyle={{\r\n flexDirection: \"row\",\r\n alignItems: \"center\",\r\n justifyContent: \"space-between\",\r\n }}\r\n >\r\n <Box\r\n flexStyle={{\r\n flexDirection: \"row\",\r\n alignItems: \"center\",\r\n }}\r\n >\r\n <Typography\r\n text={\"Data - \"}\r\n size={theme.fontSizes.sm}\r\n lineHeight={theme.fontSizes.lg ?? 18}\r\n fontFamily={theme.fonts.inter_medium_500}\r\n fontWeight=\"500\"\r\n color={theme.colors.neutral[25]}\r\n letterSpacing={\"regular\"}\r\n />\r\n <Typography\r\n text={String(date)}\r\n size={theme.fontSizes.sm}\r\n lineHeight={theme.fontSizes.lg ?? 18}\r\n fontFamily={theme.fonts.inter_medium_500}\r\n fontWeight=\"500\"\r\n color={theme.colors.neutral[25]}\r\n letterSpacing={\"regular\"}\r\n />\r\n </Box>\r\n <Box\r\n flexStyle={{\r\n flexDirection: \"row\",\r\n alignItems: \"center\",\r\n }}\r\n >\r\n <Typography\r\n text={String(dataStart)}\r\n size={theme.fontSizes[\"2xs\"]}\r\n fontFamily={theme.fonts.inter_medium_500}\r\n fontWeight=\"500\"\r\n lineHeight={theme.fontSizes.sm}\r\n color={theme.colors.neutral[25]}\r\n letterSpacing={\"regular\"}\r\n marginRight={8}\r\n />\r\n\r\n <Icons\r\n icon={\"ELLIPSE\"}\r\n color={\r\n readonly ? theme.colors.neutral[25] : getStatusColor(statusNotify as StatusType)\r\n }\r\n size={9}\r\n />\r\n </Box>\r\n </Box>\r\n\r\n {/* Mensagem de notificação do carregamento */}\r\n <Typography\r\n text={notification}\r\n size={theme.fontSizes[\"2xs\"]}\r\n fontFamily={theme.fonts.inter_medium_500}\r\n fontWeight=\"500\"\r\n lineHeight={theme.fontSizes.sm ?? 14}\r\n color={theme.colors.neutral[25]}\r\n letterSpacing={\"regular\"}\r\n ellipsizeMode=\"tail\"\r\n numberOfLines={1}\r\n />\r\n </Box>\r\n </Box>\r\n </TouchableOpacity>\r\n );\r\n};\r\n\r\n/**\r\n * EXPORTS\r\n */\r\nexport { NotificationLoading };\r\n"],"mappings":"AAAA;AACA;AACA;AACA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,gBAAgB,QAAQ,cAAc;;AAE/C;AACA,SAASC,GAAG,QAAQ,QAAQ;AAC5B,SAASC,UAAU,QAAQ,eAAe;;AAE1C;AACA,SAASC,KAAK,QAAQ,wBAAwB;;AAE9C;AACA,SAASC,KAAK,QAAQ,0BAA0B;AAGhD,SAASC,cAAc,QAAoB,uCAAuC;AAElF,MAAMC,mBAAmD,GAAGA,CAAC;EAC3DC,gBAAgB;EAChBC,KAAK;EACLC,MAAM;EACNC,YAAY;EACZC,IAAI;EACJC,YAAY;EACZC,SAAS;EACTC,KAAK;EACLC;AACF,CAAC,KAAK;EAAA,IAAAC,mBAAA,EAAAC,oBAAA,EAAAC,mBAAA;EACJ,oBACEnB,KAAA,CAAAoB,aAAA,CAACnB,gBAAgB;IACfoB,aAAa,EAAE,GAAI;IACnBX,MAAM,EAAEA,MAAO;IACfY,OAAO,EAAEd,gBAAiB;IAC1Be,QAAQ,EAAEP;EAAS,gBAEnBhB,KAAA,CAAAoB,aAAA,CAAClB,GAAG;IACFsB,KAAK,EAAE,MAAO;IACdC,SAAS,EAAE;MAAEC,aAAa,EAAE,KAAK;MAAEC,UAAU,EAAE;IAAS,CAAE;IAC1DC,eAAe,EAAEZ,QAAQ,GAAGX,KAAK,CAACwB,MAAM,CAACC,IAAI,CAAC,KAAK,CAAC,GAAGzB,KAAK,CAACwB,MAAM,CAACC,IAAI,CAAC,GAAG,CAAE;IAC9EC,YAAY,EAAE;MACZC,WAAW,EAAE3B,KAAK,CAAC4B,YAAY,CAACC,IAAI;MACpCC,YAAY,EAAE9B,KAAK,CAAC4B,YAAY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9B,mBAAA,GAAEd,KAAK,CAAC0C,SAAS,CAACC,EAAE,cAAA7B,mBAAA,cAAAA,mBAAA,GAAI,EAAG;IACrCwB,KAAK,EAAEtC,KAAK,CAACwB,MAAM,CAACe,OAAO,CAAC,EAAE,CAAE;IAChCW,aAAa,EAAE,SAAU;IACzBQ,aAAa,EAAC,MAAM;IACpBC,aAAa,EAAE;EAAE,CAClB,CACE,CACF,CACW,CAAC;AAEvB,CAAC;;AAED;AACA;AACA;AACA,SAASzD,mBAAmB","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["interface.d.ts"],"sourcesContent":["/**\
|
|
1
|
+
{"version":3,"names":[],"sources":["interface.d.ts"],"sourcesContent":["/**\n * IMPORTS\n */\nimport { ViewProps } from \"react-native\";\n\n// typing\nimport { IGlobalCss } from \"../../styles/global/interface\";\n\ninterface INotificationLoading extends ViewProps, IGlobalCss {\n /**propriedade que indica o título do carregamento */\n title: string;\n\n /**propriedade que indica a data do carregamento */\n date: string | Date;\n\n /**função que faz a navegação da tela */\n handleNavigation: () => void;\n\n /**propriedade que indica a notificação */\n notification: string;\n\n /**propriedade que indica o status da notificação */\n statusNotify: string;\n\n /**propriedade que indica a data da notificação */\n dataStart: string | Date;\n\n /**propriedade que indica se a notificação está lida ou não */\n readonly?: boolean;\n}\n\n/**\n * EXPORTS\n */\nexport { INotificationLoading };\n"],"mappings":"","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","TouchableOpacity","Box","Typography","Icons","theme","ProfileMenuOption","handleNavigation","icon","text","backgroundColor","colorIcon","createElement","onPress","activeOpacity","flexStyle","alignItems","flexDirection","justifyContent","width","colors","blue","paddingStyle","padding","paddings","borderStyled","borderRadius","borderWidths","thick_medium","borderColor","marginStyle","marginBottom","margins","xs","color","neutral","size","fontSizes","sm","fontFamily","fonts","inter_bold_700","fontWeight","lineHeight","lg","marginLeft","inter_medium_500"],"sources":["index.tsx"],"sourcesContent":["import React from \"react\";\
|
|
1
|
+
{"version":3,"names":["React","TouchableOpacity","Box","Typography","Icons","theme","ProfileMenuOption","handleNavigation","icon","text","backgroundColor","colorIcon","createElement","onPress","activeOpacity","flexStyle","alignItems","flexDirection","justifyContent","width","colors","blue","paddingStyle","padding","paddings","borderStyled","borderRadius","borderWidths","thick_medium","borderColor","marginStyle","marginBottom","margins","xs","color","neutral","size","fontSizes","sm","fontFamily","fonts","inter_bold_700","fontWeight","lineHeight","lg","marginLeft","inter_medium_500"],"sources":["index.tsx"],"sourcesContent":["import 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\n// typing\nimport { IProfileMenuOption } from \"./interface\";\n\nconst ProfileMenuOption: React.FC<IProfileMenuOption> = ({\n handleNavigation,\n icon,\n text,\n backgroundColor,\n colorIcon,\n}) => {\n return (\n <TouchableOpacity onPress={handleNavigation} activeOpacity={0.7}>\n <Box\n flexStyle={{\n alignItems: \"center\",\n flexDirection: \"row\",\n justifyContent: \"space-between\",\n }}\n width={\"100%\"}\n backgroundColor={backgroundColor ?? theme.colors.blue[400]}\n paddingStyle={{ padding: theme.paddings[\"2xs\"] }}\n borderStyled={{\n borderRadius: theme.borderWidths.thick_medium,\n borderColor: theme.colors.blue[400],\n }}\n marginStyle={{ marginBottom: theme.margins.xs }}\n >\n <Box flexStyle={{ alignItems: \"center\", flexDirection: \"row\" }}>\n <Icons icon={icon ?? \"AGENT\"} color={colorIcon ?? theme.colors.neutral[25]} />\n <Typography\n text={text}\n size={theme.fontSizes.sm}\n fontFamily={theme.fonts.inter_bold_700}\n fontWeight={\"700\"}\n lineHeight={theme.fontSizes.lg}\n color={theme.colors.neutral[25]}\n marginLeft={theme.margins.xs}\n />\n </Box>\n <Typography\n text=\"›\"\n size={theme.fontSizes[\"2xl\"]}\n fontFamily={theme.fonts.inter_medium_500}\n fontWeight={\"500\"}\n color={theme.colors.neutral[25]}\n />\n </Box>\n </TouchableOpacity>\n );\n};\n\nexport { ProfileMenuOption };\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,gBAAgB,QAAQ,cAAc;;AAE/C;AACA,SAASC,GAAG,QAAQ,QAAQ;AAC5B,SAASC,UAAU,QAAQ,eAAe;;AAE1C;AACA,SAASC,KAAK,QAAQ,wBAAwB;;AAE9C;AACA,SAASC,KAAK,QAAQ,0BAA0B;;AAEhD;;AAGA,MAAMC,iBAA+C,GAAGA,CAAC;EACvDC,gBAAgB;EAChBC,IAAI;EACJC,IAAI;EACJC,eAAe;EACfC;AACF,CAAC,KAAK;EACJ,oBACEX,KAAA,CAAAY,aAAA,CAACX,gBAAgB;IAACY,OAAO,EAAEN,gBAAiB;IAACO,aAAa,EAAE;EAAI,gBAC9Dd,KAAA,CAAAY,aAAA,CAACV,GAAG;IACFa,SAAS,EAAE;MACTC,UAAU,EAAE,QAAQ;MACpBC,aAAa,EAAE,KAAK;MACpBC,cAAc,EAAE;IAClB,CAAE;IACFC,KAAK,EAAE,MAAO;IACdT,eAAe,EAAEA,eAAe,aAAfA,eAAe,cAAfA,eAAe,GAAIL,KAAK,CAACe,MAAM,CAACC,IAAI,CAAC,GAAG,CAAE;IAC3DC,YAAY,EAAE;MAAEC,OAAO,EAAElB,KAAK,CAACmB,QAAQ,CAAC,KAAK;IAAE,CAAE;IACjDC,YAAY,EAAE;MACZC,YAAY,EAAErB,KAAK,CAACsB,YAAY,CAACC,YAAY;MAC7CC,WAAW,EAAExB,KAAK,CAACe,MAAM,CAACC,IAAI,CAAC,GAAG;IACpC,CAAE;IACFS,WAAW,EAAE;MAAEC,YAAY,EAAE1B,KAAK,CAAC2B,OAAO,CAACC;IAAG;EAAE,gBAEhDjC,KAAA,CAAAY,aAAA,CAACV,GAAG;IAACa,SAAS,EAAE;MAAEC,UAAU,EAAE,QAAQ;MAAEC,aAAa,EAAE;IAAM;EAAE,gBAC7DjB,KAAA,CAAAY,aAAA,CAACR,KAAK;IAACI,IAAI,EAAEA,IAAI,aAAJA,IAAI,cAAJA,IAAI,GAAI,OAAQ;IAAC0B,KAAK,EAAEvB,SAAS,aAATA,SAAS,cAATA,SAAS,GAAIN,KAAK,CAACe,MAAM,CAACe,OAAO,CAAC,EAAE;EAAE,CAAE,CAAC,eAC9EnC,KAAA,CAAAY,aAAA,CAACT,UAAU;IACTM,IAAI,EAAEA,IAAK;IACX2B,IAAI,EAAE/B,KAAK,CAACgC,SAAS,CAACC,EAAG;IACzBC,UAAU,EAAElC,KAAK,CAACmC,KAAK,CAACC,cAAe;IACvCC,UAAU,EAAE,KAAM;IAClBC,UAAU,EAAEtC,KAAK,CAACgC,SAAS,CAACO,EAAG;IAC/BV,KAAK,EAAE7B,KAAK,CAACe,MAAM,CAACe,OAAO,CAAC,EAAE,CAAE;IAChCU,UAAU,EAAExC,KAAK,CAAC2B,OAAO,CAACC;EAAG,CAC9B,CACE,CAAC,eACNjC,KAAA,CAAAY,aAAA,CAACT,UAAU;IACTM,IAAI,EAAC,QAAG;IACR2B,IAAI,EAAE/B,KAAK,CAACgC,SAAS,CAAC,KAAK,CAAE;IAC7BE,UAAU,EAAElC,KAAK,CAACmC,KAAK,CAACM,gBAAiB;IACzCJ,UAAU,EAAE,KAAM;IAClBR,KAAK,EAAE7B,KAAK,CAACe,MAAM,CAACe,OAAO,CAAC,EAAE;EAAE,CACjC,CACE,CACW,CAAC;AAEvB,CAAC;AAED,SAAS7B,iBAAiB","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["interface.d.ts"],"sourcesContent":["/**\
|
|
1
|
+
{"version":3,"names":[],"sources":["interface.d.ts"],"sourcesContent":["/**\n * IMPORTS\n */\nimport { TouchableOpacityProps } from \"react-native\";\n\n// typing\nimport { IGlobalCss } from \"../../styles/global/interface\";\n\n// svg\nimport { SVG_NAME } from \"../../common/icons-svg/constants\";\n\ninterface IProfileMenuOption extends TouchableOpacityProps, IGlobalCss {\n /**\n * nome do ícone\n */\n icon: keyof typeof SVG_NAME;\n\n /**\n * Propriedade texto do menu\n */\n text: string;\n\n /**\n * função de navegação\n */\n handleNavigation: () => void;\n\n /**\n * cor de fundo\n */\n backgroundColor?: string;\n\n /**\n * cor do ícone\n */\n colorIcon?: string;\n}\n\n/**\n * EXPORTS\n */\nexport { IProfileMenuOption };\n"],"mappings":"","ignoreList":[]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* IMPORTS
|
|
1
|
+
/**
|
|
2
|
+
* IMPORTS
|
|
3
3
|
*/
|
|
4
4
|
import React from "react";
|
|
5
5
|
import { View, Text } from "react-native";
|
|
@@ -12,8 +12,8 @@ import { styles } from "./styles";
|
|
|
12
12
|
import { Icons } from "../../common/icons-svg";
|
|
13
13
|
import { formHoursMinute } from "../../utils/format-data";
|
|
14
14
|
|
|
15
|
-
/**
|
|
16
|
-
* Componente StepIndicator para a interação da ui.
|
|
15
|
+
/**
|
|
16
|
+
* Componente StepIndicator para a interação da ui.
|
|
17
17
|
*/
|
|
18
18
|
|
|
19
19
|
const StepIndicator = ({
|
|
@@ -131,8 +131,8 @@ const StepIndicator = ({
|
|
|
131
131
|
return /*#__PURE__*/React.createElement(React.Fragment, null, handleRenderComponent(type));
|
|
132
132
|
};
|
|
133
133
|
|
|
134
|
-
/**
|
|
135
|
-
* EXPORTS
|
|
134
|
+
/**
|
|
135
|
+
* EXPORTS
|
|
136
136
|
*/
|
|
137
137
|
export { StepIndicator };
|
|
138
138
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","View","Text","getIconKeyByValue","styles","Icons","formHoursMinute","StepIndicator","data","type","backgroundColorBall","textColorDescription","titleColor","titleNumberColor","StepDefault","createElement","Fragment","length","map","history","index","testID","style","containerIndicator","key","id","containerBall","width","height","marginTop","position","backgroundColor","titleNumber","containerMain","title","descricao","data_inicio","titleDescription","data_fim","duracao_segundos","StepCustom","paddingHorizontal","display","flexDirection","step","indexCustom","borderRadius","alignItems","justifyContent","borderWidth","borderColor","icon","top","fontWeight","fontSize","lineHeight","textAlign","color","handleRenderComponent","stepType"],"sources":["index.tsx"],"sourcesContent":["/**\
|
|
1
|
+
{"version":3,"names":["React","View","Text","getIconKeyByValue","styles","Icons","formHoursMinute","StepIndicator","data","type","backgroundColorBall","textColorDescription","titleColor","titleNumberColor","StepDefault","createElement","Fragment","length","map","history","index","testID","style","containerIndicator","key","id","containerBall","width","height","marginTop","position","backgroundColor","titleNumber","containerMain","title","descricao","data_inicio","titleDescription","data_fim","duracao_segundos","StepCustom","paddingHorizontal","display","flexDirection","step","indexCustom","borderRadius","alignItems","justifyContent","borderWidth","borderColor","icon","top","fontWeight","fontSize","lineHeight","textAlign","color","handleRenderComponent","stepType"],"sources":["index.tsx"],"sourcesContent":["/**\n * IMPORTS\n */\nimport React from \"react\";\nimport { View, Text } from \"react-native\";\n\nimport { getIconKeyByValue } from \"./helpers/get-icon-by-status\";\n\n// typings\nimport { IStepIndicator } from \"./interface\";\n\n// styles\nimport { styles } from \"./styles\";\nimport { Icons } from \"../../common/icons-svg\";\nimport { formHoursMinute } from \"../../utils/format-data\";\n\n/**\n * Componente StepIndicator para a interação da ui.\n */\n\nconst StepIndicator: React.FC<IStepIndicator> = ({\n data = [],\n type,\n backgroundColorBall,\n textColorDescription,\n titleColor,\n titleNumberColor,\n}) => {\n const StepDefault = () => {\n return (\n <>\n {data!.length > 0 &&\n data!.map((history, index) => (\n <View testID=\"step-indicator\" style={styles({}).containerIndicator} key={history.id}>\n <View style={styles({ backgroundColorBall }).containerBall}>\n {data!?.length > 1 && index < data!?.length - 1 && (\n <View\n style={{\n width: 2,\n height: 84,\n marginTop: 116,\n position: \"relative\",\n backgroundColor: \"#050022\",\n }}\n />\n )}\n <Text style={styles({ titleNumberColor }).titleNumber}>\n {data!?.length - index}\n </Text>\n </View>\n\n <View style={styles({}).containerMain}>\n <Text style={styles({ titleColor }).title}>{history?.descricao}</Text>\n\n {history?.data_inicio && (\n <Text style={styles({ textColorDescription }).titleDescription}>\n {`Inicio: ${history.data_inicio} ás ${history.data_fim}`}\n </Text>\n )}\n\n {history.duracao_segundos && (\n <Text style={styles({ textColorDescription }).titleDescription}>\n Duração: {formHoursMinute(history?.duracao_segundos as string)}\n </Text>\n )}\n </View>\n </View>\n ))}\n </>\n );\n };\n\n const StepCustom = () => {\n return (\n <View\n style={{\n width: \"100%\",\n height: 84,\n paddingHorizontal: 24,\n display: \"flex\",\n flexDirection: \"row\",\n }}\n >\n {data.map((step, indexCustom) => {\n const descricao = getIconKeyByValue(step.descricao);\n\n return (\n <React.Fragment key={`step-${indexCustom}`}>\n <View\n style={{\n width: 45,\n height: 45,\n backgroundColor: indexCustom <= 3 ? \"orange\" : \"transparent\",\n borderRadius: 50,\n alignItems: \"center\",\n justifyContent: \"center\",\n borderWidth: 1,\n borderColor: \"#fff\",\n }}\n >\n <View\n style={{\n width: 45,\n height: 45,\n backgroundColor: \"transparent\",\n borderRadius: 50,\n alignItems: \"center\",\n justifyContent: \"center\",\n }}\n >\n {descricao && <Icons icon={descricao} />}\n </View>\n <Text\n style={{\n position: \"absolute\",\n top: 56,\n fontWeight: \"600\",\n fontSize: 10,\n lineHeight: 14,\n textAlign: \"center\",\n color: \"#fff\",\n width: 75,\n }}\n >\n {step.descricao}\n </Text>\n </View>\n\n {data?.length > 1 && indexCustom < data?.length - 1 && (\n <View\n style={{\n width: 35,\n height: 2,\n marginTop: 24,\n position: \"relative\",\n backgroundColor: \"orange\",\n }}\n />\n )}\n </React.Fragment>\n );\n })}\n </View>\n );\n };\n\n const handleRenderComponent = (stepType: \"default\" | \"custom\") => {\n switch (stepType) {\n case \"default\":\n return <StepDefault />;\n case \"custom\":\n return <StepCustom />;\n default:\n return <View />;\n }\n };\n\n return <>{handleRenderComponent(type!)}</>;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