react-native-exp-fig 0.1.21 → 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.
Files changed (228) hide show
  1. package/lib/commonjs/@types/as-base-component.js +12 -0
  2. package/lib/commonjs/@types/as-base-component.js.map +1 -0
  3. package/lib/commonjs/common/icons-svg/constants/index.js +2 -1
  4. package/lib/commonjs/common/icons-svg/constants/index.js.map +1 -1
  5. package/lib/commonjs/common/icons-svg/eclamation-triangle/index.js +33 -0
  6. package/lib/commonjs/common/icons-svg/eclamation-triangle/index.js.map +1 -0
  7. package/lib/commonjs/common/icons-svg/index.js +8 -0
  8. package/lib/commonjs/common/icons-svg/index.js.map +1 -1
  9. package/lib/commonjs/common/icons-svg/truck/index.js +2 -2
  10. package/lib/commonjs/common/icons-svg/truck/index.js.map +1 -1
  11. package/lib/commonjs/components/activities-daily/index.js +9 -9
  12. package/lib/commonjs/components/activities-daily/index.js.map +1 -1
  13. package/lib/commonjs/components/activities-progress/index.js +14 -14
  14. package/lib/commonjs/components/activities-progress/index.js.map +1 -1
  15. package/lib/commonjs/components/avatar-profile/index.js +4 -4
  16. package/lib/commonjs/components/avatar-profile/index.js.map +1 -1
  17. package/lib/commonjs/components/box/index.js +27 -22
  18. package/lib/commonjs/components/box/index.js.map +1 -1
  19. package/lib/commonjs/components/box/interface.d.js.map +1 -1
  20. package/lib/commonjs/components/box/styles.js.map +1 -1
  21. package/lib/commonjs/components/card-history/index.js +16 -16
  22. package/lib/commonjs/components/card-history/index.js.map +1 -1
  23. package/lib/commonjs/components/card-hours/index.js +3 -3
  24. package/lib/commonjs/components/card-hours/index.js.map +1 -1
  25. package/lib/commonjs/components/card-loading/index.js +13 -13
  26. package/lib/commonjs/components/card-loading/index.js.map +1 -1
  27. package/lib/commonjs/components/card-scheduled-journey/index.js +6 -6
  28. package/lib/commonjs/components/card-scheduled-journey/index.js.map +1 -1
  29. package/lib/commonjs/components/card-work-session/index.js +12 -12
  30. package/lib/commonjs/components/card-work-session/index.js.map +1 -1
  31. package/lib/commonjs/components/check-box/index.js +5 -5
  32. package/lib/commonjs/components/check-box/index.js.map +1 -1
  33. package/lib/commonjs/components/coil/index.js +5 -5
  34. package/lib/commonjs/components/coil/index.js.map +1 -1
  35. package/lib/commonjs/components/filter-date-selector/index.js +2 -2
  36. package/lib/commonjs/components/filter-date-selector/index.js.map +1 -1
  37. package/lib/commonjs/components/header-profile/index.js +8 -8
  38. package/lib/commonjs/components/header-profile/index.js.map +1 -1
  39. package/lib/commonjs/components/history-activities-card/index.js +198 -0
  40. package/lib/commonjs/components/history-activities-card/index.js.map +1 -0
  41. package/lib/commonjs/components/history-activities-card/interface.js +6 -0
  42. package/lib/commonjs/components/history-activities-card/interface.js.map +1 -0
  43. package/lib/commonjs/components/history-details/index.js +5 -5
  44. package/lib/commonjs/components/history-details/index.js.map +1 -1
  45. package/lib/commonjs/components/image-capture-with-remove/index.js +2 -2
  46. package/lib/commonjs/components/image-capture-with-remove/index.js.map +1 -1
  47. package/lib/commonjs/components/input/index.js +11 -11
  48. package/lib/commonjs/components/input/index.js.map +1 -1
  49. package/lib/commonjs/components/loading-details/index.js +10 -10
  50. package/lib/commonjs/components/loading-details/index.js.map +1 -1
  51. package/lib/commonjs/components/loading-progress/index.js +5 -5
  52. package/lib/commonjs/components/loading-progress/index.js.map +1 -1
  53. package/lib/commonjs/components/menu-item/index.js +3 -3
  54. package/lib/commonjs/components/menu-item/index.js.map +1 -1
  55. package/lib/commonjs/components/modal-activities/index.js +5 -5
  56. package/lib/commonjs/components/modal-activities/index.js.map +1 -1
  57. package/lib/commonjs/components/modal-change-activity/index.js +217 -0
  58. package/lib/commonjs/components/modal-change-activity/index.js.map +1 -0
  59. package/lib/commonjs/components/no-data/index.js +2 -2
  60. package/lib/commonjs/components/no-data/index.js.map +1 -1
  61. package/lib/commonjs/components/notification-loading/index.js +12 -12
  62. package/lib/commonjs/components/notification-loading/index.js.map +1 -1
  63. package/lib/commonjs/components/profile-menu-option/index.js +3 -3
  64. package/lib/commonjs/components/profile-menu-option/index.js.map +1 -1
  65. package/lib/commonjs/components/scheduled-journey-indicators/index.js +4 -4
  66. package/lib/commonjs/components/scheduled-journey-indicators/index.js.map +1 -1
  67. package/lib/commonjs/components/selects/select-option/index.js +28 -11
  68. package/lib/commonjs/components/selects/select-option/index.js.map +1 -1
  69. package/lib/commonjs/components/selects/select-option/interface.d.js.map +1 -1
  70. package/lib/commonjs/components/step-indicator/index.js +45 -7
  71. package/lib/commonjs/components/step-indicator/index.js.map +1 -1
  72. package/lib/commonjs/components/user-profile/index.js +9 -9
  73. package/lib/commonjs/components/user-profile/index.js.map +1 -1
  74. package/lib/commonjs/helpers/text-utils.js +21 -0
  75. package/lib/commonjs/helpers/text-utils.js.map +1 -0
  76. package/lib/commonjs/index.js +17 -2
  77. package/lib/commonjs/index.js.map +1 -1
  78. package/lib/commonjs/stories/box/box.stories.js +2 -2
  79. package/lib/commonjs/stories/box/box.stories.js.map +1 -1
  80. package/lib/commonjs/stories/history-activities-card/history-activities-card.stories.js +104 -0
  81. package/lib/commonjs/stories/history-activities-card/history-activities-card.stories.js.map +1 -0
  82. package/lib/commonjs/stories/modal-change-activity/modal-change-activity.stories.js +52 -0
  83. package/lib/commonjs/stories/modal-change-activity/modal-change-activity.stories.js.map +1 -0
  84. package/lib/commonjs/utils/get-icon-by-property/index.js.map +1 -1
  85. package/lib/module/@types/as-base-component.js +6 -0
  86. package/lib/module/@types/as-base-component.js.map +1 -0
  87. package/lib/module/common/icons-svg/constants/index.js +2 -1
  88. package/lib/module/common/icons-svg/constants/index.js.map +1 -1
  89. package/lib/module/common/icons-svg/eclamation-triangle/index.js +25 -0
  90. package/lib/module/common/icons-svg/eclamation-triangle/index.js.map +1 -0
  91. package/lib/module/common/icons-svg/index.js +8 -0
  92. package/lib/module/common/icons-svg/index.js.map +1 -1
  93. package/lib/module/common/icons-svg/truck/index.js +2 -2
  94. package/lib/module/common/icons-svg/truck/index.js.map +1 -1
  95. package/lib/module/components/activities-daily/index.js +5 -5
  96. package/lib/module/components/activities-daily/index.js.map +1 -1
  97. package/lib/module/components/activities-progress/index.js +5 -5
  98. package/lib/module/components/activities-progress/index.js.map +1 -1
  99. package/lib/module/components/avatar-profile/index.js +1 -1
  100. package/lib/module/components/avatar-profile/index.js.map +1 -1
  101. package/lib/module/components/box/index.js +24 -21
  102. package/lib/module/components/box/index.js.map +1 -1
  103. package/lib/module/components/box/interface.d.js.map +1 -1
  104. package/lib/module/components/box/styles.js.map +1 -1
  105. package/lib/module/components/card-history/index.js +8 -8
  106. package/lib/module/components/card-history/index.js.map +1 -1
  107. package/lib/module/components/card-hours/index.js +1 -1
  108. package/lib/module/components/card-hours/index.js.map +1 -1
  109. package/lib/module/components/card-loading/index.js +1 -1
  110. package/lib/module/components/card-loading/index.js.map +1 -1
  111. package/lib/module/components/card-scheduled-journey/index.js +1 -1
  112. package/lib/module/components/card-scheduled-journey/index.js.map +1 -1
  113. package/lib/module/components/card-work-session/index.js +1 -1
  114. package/lib/module/components/card-work-session/index.js.map +1 -1
  115. package/lib/module/components/check-box/index.js +1 -1
  116. package/lib/module/components/check-box/index.js.map +1 -1
  117. package/lib/module/components/coil/index.js +1 -1
  118. package/lib/module/components/coil/index.js.map +1 -1
  119. package/lib/module/components/filter-date-selector/index.js +1 -1
  120. package/lib/module/components/filter-date-selector/index.js.map +1 -1
  121. package/lib/module/components/header-profile/index.js +1 -1
  122. package/lib/module/components/header-profile/index.js.map +1 -1
  123. package/lib/module/components/history-activities-card/index.js +190 -0
  124. package/lib/module/components/history-activities-card/index.js.map +1 -0
  125. package/lib/module/components/history-activities-card/interface.js +2 -0
  126. package/lib/module/components/history-activities-card/interface.js.map +1 -0
  127. package/lib/module/components/history-details/index.js +1 -1
  128. package/lib/module/components/history-details/index.js.map +1 -1
  129. package/lib/module/components/image-capture-with-remove/index.js +1 -1
  130. package/lib/module/components/image-capture-with-remove/index.js.map +1 -1
  131. package/lib/module/components/input/index.js +1 -1
  132. package/lib/module/components/input/index.js.map +1 -1
  133. package/lib/module/components/loading-details/index.js +5 -5
  134. package/lib/module/components/loading-details/index.js.map +1 -1
  135. package/lib/module/components/loading-progress/index.js +1 -1
  136. package/lib/module/components/loading-progress/index.js.map +1 -1
  137. package/lib/module/components/menu-item/index.js +1 -1
  138. package/lib/module/components/menu-item/index.js.map +1 -1
  139. package/lib/module/components/modal-activities/index.js +1 -1
  140. package/lib/module/components/modal-activities/index.js.map +1 -1
  141. package/lib/module/components/modal-change-activity/index.js +208 -0
  142. package/lib/module/components/modal-change-activity/index.js.map +1 -0
  143. package/lib/module/components/no-data/index.js +1 -1
  144. package/lib/module/components/no-data/index.js.map +1 -1
  145. package/lib/module/components/notification-loading/index.js +5 -5
  146. package/lib/module/components/notification-loading/index.js.map +1 -1
  147. package/lib/module/components/profile-menu-option/index.js +1 -1
  148. package/lib/module/components/profile-menu-option/index.js.map +1 -1
  149. package/lib/module/components/scheduled-journey-indicators/index.js +1 -1
  150. package/lib/module/components/scheduled-journey-indicators/index.js.map +1 -1
  151. package/lib/module/components/selects/select-option/index.js +28 -11
  152. package/lib/module/components/selects/select-option/index.js.map +1 -1
  153. package/lib/module/components/selects/select-option/interface.d.js.map +1 -1
  154. package/lib/module/components/step-indicator/index.js +45 -7
  155. package/lib/module/components/step-indicator/index.js.map +1 -1
  156. package/lib/module/components/user-profile/index.js +1 -1
  157. package/lib/module/components/user-profile/index.js.map +1 -1
  158. package/lib/module/helpers/text-utils.js +14 -0
  159. package/lib/module/helpers/text-utils.js.map +1 -0
  160. package/lib/module/index.js +3 -1
  161. package/lib/module/index.js.map +1 -1
  162. package/lib/module/stories/box/box.stories.js +1 -1
  163. package/lib/module/stories/box/box.stories.js.map +1 -1
  164. package/lib/module/stories/history-activities-card/history-activities-card.stories.js +97 -0
  165. package/lib/module/stories/history-activities-card/history-activities-card.stories.js.map +1 -0
  166. package/lib/module/stories/modal-change-activity/modal-change-activity.stories.js +45 -0
  167. package/lib/module/stories/modal-change-activity/modal-change-activity.stories.js.map +1 -0
  168. package/lib/module/utils/get-icon-by-property/index.js +0 -1
  169. package/lib/module/utils/get-icon-by-property/index.js.map +1 -1
  170. package/lib/typescript/src/@types/as-base-component.d.ts +2 -0
  171. package/lib/typescript/src/common/icons-svg/constants/index.d.ts +1 -0
  172. package/lib/typescript/src/common/icons-svg/eclamation-triangle/index.d.ts +4 -0
  173. package/lib/typescript/src/components/box/index.d.ts +4 -3
  174. package/lib/typescript/src/components/box/styles.d.ts +2 -2
  175. package/lib/typescript/src/components/history-activities-card/index.d.ts +76 -0
  176. package/lib/typescript/src/components/history-activities-card/interface.d.ts +120 -0
  177. package/lib/typescript/src/components/modal-change-activity/index.d.ts +24 -0
  178. package/lib/typescript/src/helpers/text-utils.d.ts +7 -0
  179. package/lib/typescript/src/index.d.ts +3 -1
  180. package/lib/typescript/src/stories/box/box.stories.d.ts +1 -1
  181. package/lib/typescript/src/stories/history-activities-card/history-activities-card.stories.d.ts +10 -0
  182. package/lib/typescript/src/stories/modal-change-activity/modal-change-activity.stories.d.ts +9 -0
  183. package/lib/typescript/src/utils/get-icon-by-property/index.d.ts +2 -1
  184. package/package.json +11 -8
  185. package/src/@types/as-base-component.ts +9 -0
  186. package/src/common/icons-svg/constants/index.ts +1 -0
  187. package/src/common/icons-svg/eclamation-triangle/index.tsx +46 -0
  188. package/src/common/icons-svg/index.tsx +5 -1
  189. package/src/common/icons-svg/truck/index.tsx +2 -2
  190. package/src/components/activities-daily/index.tsx +116 -116
  191. package/src/components/activities-progress/index.tsx +170 -170
  192. package/src/components/avatar-profile/index.tsx +1 -1
  193. package/src/components/box/index.tsx +28 -22
  194. package/src/components/box/interface.d.ts +2 -2
  195. package/src/components/box/styles.ts +2 -2
  196. package/src/components/card-history/index.tsx +221 -221
  197. package/src/components/card-hours/index.tsx +2 -1
  198. package/src/components/card-loading/index.tsx +1 -1
  199. package/src/components/card-scheduled-journey/index.tsx +1 -1
  200. package/src/components/card-work-session/index.tsx +1 -1
  201. package/src/components/check-box/index.tsx +1 -1
  202. package/src/components/coil/index.tsx +1 -1
  203. package/src/components/filter-date-selector/index.tsx +1 -1
  204. package/src/components/header-profile/index.tsx +1 -1
  205. package/src/components/history-activities-card/index.tsx +217 -0
  206. package/src/components/history-activities-card/interface.ts +147 -0
  207. package/src/components/history-details/index.tsx +1 -1
  208. package/src/components/image-capture-with-remove/index.tsx +1 -1
  209. package/src/components/input/index.tsx +1 -1
  210. package/src/components/loading-details/index.tsx +156 -156
  211. package/src/components/loading-progress/index.tsx +1 -1
  212. package/src/components/menu-item/index.tsx +1 -1
  213. package/src/components/modal-activities/index.tsx +1 -1
  214. package/src/components/modal-change-activity/index.tsx +200 -0
  215. package/src/components/no-data/index.tsx +1 -1
  216. package/src/components/notification-loading/index.tsx +157 -157
  217. package/src/components/profile-menu-option/index.tsx +1 -1
  218. package/src/components/scheduled-journey-indicators/index.tsx +1 -1
  219. package/src/components/selects/select-option/index.tsx +115 -100
  220. package/src/components/selects/select-option/interface.d.ts +18 -18
  221. package/src/components/step-indicator/index.tsx +63 -7
  222. package/src/components/user-profile/index.tsx +1 -1
  223. package/src/helpers/text-utils.ts +15 -0
  224. package/src/index.ts +3 -1
  225. package/src/stories/box/box.stories.tsx +1 -1
  226. package/src/stories/history-activities-card/history-activities-card.stories.tsx +107 -0
  227. package/src/stories/modal-change-activity/modal-change-activity.stories.tsx +51 -0
  228. package/src/utils/get-icon-by-property/index.tsx +13 -1
@@ -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","width","flexStyle","flexDirection","alignItems","backgroundColor","colors","blue","borderStyled","borderWidth","borderWidths","thin","borderRadius","thick_medium","borderColor","paddingStyle","padding","paddings","icon","size","color","neutral","paddingLeft","text","fontSizes","sm","lineHeight","lg","fontFamily","fonts","inter_semi_bold_600","fontWeight","letterSpacing","xs","md","inter_bold_700","justifyContent","inter_medium_500","String","marginRight","ellipsizeMode","numberOfLines"],"sources":["index.tsx"],"sourcesContent":["/**\r\n * IMPORTS\r\n */\r\nimport React from \"react\";\r\nimport { TouchableOpacity } from \"react-native\";\r\n\r\n// components\r\nimport { Box } from \"../box\";\r\nimport { Typography } from \"../typography\";\r\n\r\n// icons\r\nimport { Icons } from \"../../common/icons-svg\";\r\n\r\n// theme\r\nimport { theme } from \"../../styles/theme/theme\";\r\n\r\nimport { INotificationLoading } from \"./interface\";\r\nimport { getStatusColor, StatusType } from \"../../utils/status-color/return-color\";\r\n\r\nconst NotificationLoading: React.FC<INotificationLoading> = ({\r\n handleNavigation,\r\n title,\r\n testID,\r\n statusNotify,\r\n date,\r\n notification,\r\n dataStart,\r\n style,\r\n readonly,\r\n}) => {\r\n return (\r\n <TouchableOpacity activeOpacity={0.7} testID={testID} onPress={handleNavigation}>\r\n <Box\r\n width={\"100%\"}\r\n flexStyle={{ flexDirection: \"row\", alignItems: \"center\" }}\r\n backgroundColor={readonly ? theme.colors.blue[40050] : theme.colors.blue[400]}\r\n borderStyled={{\r\n borderWidth: theme.borderWidths.thin,\r\n borderRadius: theme.borderWidths.thick_medium,\r\n borderColor: readonly ? theme.colors.blue[40050] : theme.colors.blue[400],\r\n }}\r\n paddingStyle={{ padding: theme.paddings[\"2xs\"] }}\r\n style={style}\r\n >\r\n <Box width={\"9%\"}>\r\n <Icons icon={\"BELL\"} size={32} color={theme.colors.neutral[25]} />\r\n </Box>\r\n\r\n <Box\r\n flexStyle={{ flexDirection: \"column\" }}\r\n width={\"91%\"}\r\n paddingStyle={{ paddingLeft: 7 }}\r\n >\r\n {/* Carregamento identificação */}\r\n <Box flexStyle={{ flexDirection: \"row\", alignItems: \"center\" }}>\r\n <Typography\r\n text={\"Carregamento - \"}\r\n size={theme.fontSizes.sm}\r\n lineHeight={theme.fontSizes.lg}\r\n fontFamily={theme.fonts.inter_semi_bold_600}\r\n fontWeight=\"600\"\r\n color={theme.colors.neutral[25]}\r\n letterSpacing={\"regular\"}\r\n />\r\n <Typography\r\n text={title}\r\n size={theme.fontSizes.xs}\r\n lineHeight={theme.fontSizes.md}\r\n fontFamily={theme.fonts.inter_bold_700}\r\n fontWeight=\"700\"\r\n color={theme.colors.neutral[25]}\r\n letterSpacing={\"regular\"}\r\n />\r\n </Box>\r\n\r\n {/* Data do carregamento */}\r\n <Box\r\n flexStyle={{\r\n flexDirection: \"row\",\r\n alignItems: \"center\",\r\n justifyContent: \"space-between\",\r\n }}\r\n >\r\n <Box\r\n flexStyle={{\r\n flexDirection: \"row\",\r\n alignItems: \"center\",\r\n }}\r\n >\r\n <Typography\r\n text={\"Data - \"}\r\n size={theme.fontSizes.sm}\r\n lineHeight={theme.fontSizes.lg ?? 18}\r\n fontFamily={theme.fonts.inter_medium_500}\r\n fontWeight=\"500\"\r\n color={theme.colors.neutral[25]}\r\n letterSpacing={\"regular\"}\r\n />\r\n <Typography\r\n text={String(date)}\r\n size={theme.fontSizes.sm}\r\n lineHeight={theme.fontSizes.lg ?? 18}\r\n fontFamily={theme.fonts.inter_medium_500}\r\n fontWeight=\"500\"\r\n color={theme.colors.neutral[25]}\r\n letterSpacing={\"regular\"}\r\n />\r\n </Box>\r\n <Box\r\n flexStyle={{\r\n flexDirection: \"row\",\r\n alignItems: \"center\",\r\n }}\r\n >\r\n <Typography\r\n text={String(dataStart)}\r\n size={theme.fontSizes[\"2xs\"]}\r\n fontFamily={theme.fonts.inter_medium_500}\r\n fontWeight=\"500\"\r\n lineHeight={theme.fontSizes.sm}\r\n color={theme.colors.neutral[25]}\r\n letterSpacing={\"regular\"}\r\n marginRight={8}\r\n />\r\n\r\n <Icons\r\n icon={\"ELLIPSE\"}\r\n color={\r\n readonly ? theme.colors.neutral[25] : getStatusColor(statusNotify as StatusType)\r\n }\r\n size={9}\r\n />\r\n </Box>\r\n </Box>\r\n\r\n {/* Mensagem de notificação do carregamento */}\r\n <Typography\r\n text={notification}\r\n size={theme.fontSizes[\"2xs\"]}\r\n fontFamily={theme.fonts.inter_medium_500}\r\n fontWeight=\"500\"\r\n lineHeight={theme.fontSizes.sm ?? 14}\r\n color={theme.colors.neutral[25]}\r\n letterSpacing={\"regular\"}\r\n ellipsizeMode=\"tail\"\r\n numberOfLines={1}\r\n />\r\n </Box>\r\n </Box>\r\n </TouchableOpacity>\r\n );\r\n};\r\n\r\n/**\r\n * EXPORTS\r\n */\r\nexport { NotificationLoading };\r\n"],"mappings":"AAAA;AACA;AACA;AACA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,gBAAgB,QAAQ,cAAc;;AAE/C;AACA,SAASC,GAAG,QAAQ,QAAQ;AAC5B,SAASC,UAAU,QAAQ,eAAe;;AAE1C;AACA,SAASC,KAAK,QAAQ,wBAAwB;;AAE9C;AACA,SAASC,KAAK,QAAQ,0BAA0B;AAGhD,SAASC,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;IAACoB,aAAa,EAAE,GAAI;IAACX,MAAM,EAAEA,MAAO;IAACY,OAAO,EAAEd;EAAiB,gBAC9ER,KAAA,CAAAoB,aAAA,CAAClB,GAAG;IACFqB,KAAK,EAAE,MAAO;IACdC,SAAS,EAAE;MAAEC,aAAa,EAAE,KAAK;MAAEC,UAAU,EAAE;IAAS,CAAE;IAC1DC,eAAe,EAAEX,QAAQ,GAAGX,KAAK,CAACuB,MAAM,CAACC,IAAI,CAAC,KAAK,CAAC,GAAGxB,KAAK,CAACuB,MAAM,CAACC,IAAI,CAAC,GAAG,CA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CAAE;IAC7BI,UAAU,EAAE7C,KAAK,CAAC8C,KAAK,CAACQ,gBAAiB;IACzCN,UAAU,EAAC,KAAK;IAChBL,UAAU,GAAA7B,mBAAA,GAAEd,KAAK,CAACyC,SAAS,CAACC,EAAE,cAAA5B,mBAAA,cAAAA,mBAAA,GAAI,EAAG;IACrCuB,KAAK,EAAErC,KAAK,CAACuB,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,SAASxD,mBAAmB","ignoreList":[]}
1
+ {"version":3,"names":["React","TouchableOpacity","Box","Typography","Icons","theme","getStatusColor","NotificationLoading","handleNavigation","title","testID","statusNotify","date","notification","dataStart","style","readonly","_theme$fontSizes$lg","_theme$fontSizes$lg2","_theme$fontSizes$sm","createElement","activeOpacity","onPress","width","flexStyle","flexDirection","alignItems","backgroundColor","colors","blue","borderStyled","borderWidth","borderWidths","thin","borderRadius","thick_medium","borderColor","paddingStyle","padding","paddings","icon","size","color","neutral","paddingLeft","text","fontSizes","sm","lineHeight","lg","fontFamily","fonts","inter_semi_bold_600","fontWeight","letterSpacing","xs","md","inter_bold_700","justifyContent","inter_medium_500","String","marginRight","ellipsizeMode","numberOfLines"],"sources":["index.tsx"],"sourcesContent":["/**\n * IMPORTS\n */\nimport React from \"react\";\nimport { TouchableOpacity } from \"react-native\";\n\n// components\nimport Box from \"../box\";\nimport { Typography } from \"../typography\";\n\n// icons\nimport { Icons } from \"../../common/icons-svg\";\n\n// theme\nimport { theme } from \"../../styles/theme/theme\";\n\nimport { INotificationLoading } from \"./interface\";\nimport { getStatusColor, StatusType } from \"../../utils/status-color/return-color\";\n\nconst NotificationLoading: React.FC<INotificationLoading> = ({\n handleNavigation,\n title,\n testID,\n statusNotify,\n date,\n notification,\n dataStart,\n style,\n readonly,\n}) => {\n return (\n <TouchableOpacity activeOpacity={0.7} testID={testID} onPress={handleNavigation}>\n <Box\n width={\"100%\"}\n flexStyle={{ flexDirection: \"row\", alignItems: \"center\" }}\n backgroundColor={readonly ? theme.colors.blue[40050] : theme.colors.blue[400]}\n borderStyled={{\n borderWidth: theme.borderWidths.thin,\n borderRadius: theme.borderWidths.thick_medium,\n borderColor: readonly ? theme.colors.blue[40050] : theme.colors.blue[400],\n }}\n paddingStyle={{ padding: theme.paddings[\"2xs\"] }}\n style={style}\n >\n <Box width={\"9%\"}>\n <Icons icon={\"BELL\"} size={32} color={theme.colors.neutral[25]} />\n </Box>\n\n <Box\n flexStyle={{ flexDirection: \"column\" }}\n width={\"91%\"}\n paddingStyle={{ paddingLeft: 7 }}\n >\n {/* Carregamento identificação */}\n <Box flexStyle={{ flexDirection: \"row\", alignItems: \"center\" }}>\n <Typography\n text={\"Carregamento - \"}\n size={theme.fontSizes.sm}\n lineHeight={theme.fontSizes.lg}\n fontFamily={theme.fonts.inter_semi_bold_600}\n fontWeight=\"600\"\n color={theme.colors.neutral[25]}\n letterSpacing={\"regular\"}\n />\n <Typography\n text={title}\n size={theme.fontSizes.xs}\n lineHeight={theme.fontSizes.md}\n fontFamily={theme.fonts.inter_bold_700}\n fontWeight=\"700\"\n color={theme.colors.neutral[25]}\n letterSpacing={\"regular\"}\n />\n </Box>\n\n {/* Data do carregamento */}\n <Box\n flexStyle={{\n flexDirection: \"row\",\n alignItems: \"center\",\n justifyContent: \"space-between\",\n }}\n >\n <Box\n flexStyle={{\n flexDirection: \"row\",\n alignItems: \"center\",\n }}\n >\n <Typography\n text={\"Data - \"}\n size={theme.fontSizes.sm}\n lineHeight={theme.fontSizes.lg ?? 18}\n fontFamily={theme.fonts.inter_medium_500}\n fontWeight=\"500\"\n color={theme.colors.neutral[25]}\n letterSpacing={\"regular\"}\n />\n <Typography\n text={String(date)}\n size={theme.fontSizes.sm}\n lineHeight={theme.fontSizes.lg ?? 18}\n fontFamily={theme.fonts.inter_medium_500}\n fontWeight=\"500\"\n color={theme.colors.neutral[25]}\n letterSpacing={\"regular\"}\n />\n </Box>\n <Box\n flexStyle={{\n flexDirection: \"row\",\n alignItems: \"center\",\n }}\n >\n <Typography\n text={String(dataStart)}\n size={theme.fontSizes[\"2xs\"]}\n fontFamily={theme.fonts.inter_medium_500}\n fontWeight=\"500\"\n lineHeight={theme.fontSizes.sm}\n color={theme.colors.neutral[25]}\n letterSpacing={\"regular\"}\n marginRight={8}\n />\n\n <Icons\n icon={\"ELLIPSE\"}\n color={\n readonly ? theme.colors.neutral[25] : getStatusColor(statusNotify as StatusType)\n }\n size={9}\n />\n </Box>\n </Box>\n\n {/* Mensagem de notificação do carregamento */}\n <Typography\n text={notification}\n size={theme.fontSizes[\"2xs\"]}\n fontFamily={theme.fonts.inter_medium_500}\n fontWeight=\"500\"\n lineHeight={theme.fontSizes.sm ?? 14}\n color={theme.colors.neutral[25]}\n letterSpacing={\"regular\"}\n ellipsizeMode=\"tail\"\n numberOfLines={1}\n />\n </Box>\n </Box>\n </TouchableOpacity>\n );\n};\n\n/**\n * EXPORTS\n */\nexport { NotificationLoading };\n"],"mappings":"AAAA;AACA;AACA;AACA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,gBAAgB,QAAQ,cAAc;;AAE/C;AACA,OAAOC,GAAG,MAAM,QAAQ;AACxB,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,gB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AChB,CAAC,eAEF7D,KAAA,CAAAoB,aAAA,CAAChB,KAAK;IACJoC,IAAI,EAAE,SAAU;IAChBE,KAAK,EACH1B,QAAQ,GAAGX,KAAK,CAACuB,MAAM,CAACe,OAAO,CAAC,EAAE,CAAC,GAAGrC,cAAc,CAACK,YAA0B,CAChF;IACD8B,IAAI,EAAE;EAAE,CACT,CACE,CACF,CAAC,eAGNzC,KAAA,CAAAoB,aAAA,CAACjB,UAAU;IACT0C,IAAI,EAAEhC,YAAa;IACnB4B,IAAI,EAAEpC,KAAK,CAACyC,SAAS,CAAC,KAAK,CAAE;IAC7BI,UAAU,EAAE7C,KAAK,CAAC8C,KAAK,CAACQ,gBAAiB;IACzCN,UAAU,EAAC,KAAK;IAChBL,UAAU,GAAA7B,mBAAA,GAAEd,KAAK,CAACyC,SAAS,CAACC,EAAE,cAAA5B,mBAAA,cAAAA,mBAAA,GAAI,EAAG;IACrCuB,KAAK,EAAErC,KAAK,CAACuB,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,SAASxD,mBAAmB","ignoreList":[]}
@@ -2,7 +2,7 @@ import React from "react";
2
2
  import { TouchableOpacity } from "react-native";
3
3
 
4
4
  // components
5
- import { Box } from "../box";
5
+ import Box from "../box";
6
6
  import { Typography } from "../typography";
7
7
 
8
8
  // icons
@@ -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\";\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,wB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U;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
+ {"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,OAAOC,GAAG,MAAM,QAAQ;AACxB,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,gB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,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":[]}
@@ -6,7 +6,7 @@ import React from "react";
6
6
  import { Dimensions, TouchableOpacity } from "react-native";
7
7
 
8
8
  // components
9
- import { Box } from "../box";
9
+ import Box from "../box";
10
10
  import { Typography } from "../typography";
11
11
 
12
12
  // commons / Icon
@@ -1 +1 @@
1
- {"version":3,"names":["React","Dimensions","TouchableOpacity","Box","Typography","Icons","theme","width","widthScreen","get","isMobile","ScheduledJourneyIndicators","journey","isEdit","handleOpenEditModal","createElement","onPress","disabled","activeOpacity","style","backgroundColor","colors","neutral","borderRadius","flexDirection","alignItems","justifyContent","padding","paddings","xs","marginBottom","flexStyle","marginStyle","marginLeft","margins","icon","color","blue","background","green","size","fontSizes","flex","text","descricao","black","sm","fontWeight","fontFamily","fonts","inter_bold","lineHeight","lg","letterSpacing","numberOfLines","ellipsizeMode","duracao_horas","gray","inter_semi_bold_600"],"sources":["index.tsx"],"sourcesContent":["/**\n * IMPORTS\n */\n\nimport React from \"react\";\nimport { Dimensions, TouchableOpacity } from \"react-native\";\n\n// components\nimport { Box } from \"../box\";\nimport { Typography } from \"../typography\";\n\n// commons / Icon\nimport { Icons } from \"../../common/icons-svg\";\n\n// typings\nimport { IScheduledJourneyIndicators } from \"./interface\";\n\n// styles\nimport { theme } from \"../../styles/theme/theme\";\n\nconst { width: widthScreen } = Dimensions.get(\"window\");\nconst isMobile = widthScreen < 768;\n\nconst ScheduledJourneyIndicators: React.FC<IScheduledJourneyIndicators> = ({\n journey,\n isEdit,\n handleOpenEditModal,\n}) => {\n return (\n <TouchableOpacity\n onPress={handleOpenEditModal}\n disabled={!isEdit}\n activeOpacity={0.7}\n style={{\n backgroundColor: theme.colors.neutral[25],\n borderRadius: 8,\n flexDirection: \"row\",\n alignItems: \"center\",\n justifyContent: \"space-between\",\n padding: theme.paddings.xs,\n marginBottom: 16,\n }}\n >\n <Box\n flexStyle={{\n alignItems: \"center\",\n justifyContent: \"center\",\n }}\n marginStyle={{ marginLeft: isMobile ? 0 : theme.margins.xs }}\n >\n <Icons\n icon={isEdit ? \"NOTE_PINCEL\" : \"CHECK_CIRCLE\"}\n color={isEdit ? theme.colors.blue[350] : theme.colors.neutral[25]}\n background={isEdit ? theme.colors.blue[350] : theme.colors.green[400]}\n size={theme.fontSizes[\"2xl\"]}\n />\n </Box>\n\n <Box\n flexStyle={{\n flex: 0.72,\n alignItems: \"flex-start\",\n }}\n >\n <Typography\n text={journey?.descricao}\n color={theme.colors.black[100]}\n size={theme.fontSizes.sm}\n fontWeight=\"700\"\n fontFamily={theme.fonts.inter_bold}\n lineHeight={theme.fontSizes.lg}\n letterSpacing={\"o_16\"}\n numberOfLines={1}\n ellipsizeMode=\"tail\"\n />\n </Box>\n\n <Box\n flexStyle={{\n flex: 0.22,\n alignItems: \"flex-end\",\n }}\n >\n <Typography\n text={journey?.duracao_horas}\n color={theme.colors.gray[700]}\n size={theme.fontSizes.sm}\n fontWeight=\"600\"\n fontFamily={theme.fonts.inter_semi_bold_600}\n lineHeight={24}\n letterSpacing={\"o_16\"}\n />\n </Box>\n </TouchableOpacity>\n );\n};\n\n/**\n * EXPORTS\n */\nexport { ScheduledJourneyIndicators };\n"],"mappings":"AAAA;AACA;AACA;;AAEA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,UAAU,EAAEC,gBAAgB,QAAQ,cAAc;;AAE3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mBAAoB;IAC5CP,UAAU,EAAE,EAAG;IACfE,aAAa,EAAE;EAAO,CACvB,CACE,CACW,CAAC;AAEvB,CAAC;;AAED;AACA;AACA;AACA,SAAS1C,0BAA0B","ignoreList":[]}
1
+ {"version":3,"names":["React","Dimensions","TouchableOpacity","Box","Typography","Icons","theme","width","widthScreen","get","isMobile","ScheduledJourneyIndicators","journey","isEdit","handleOpenEditModal","createElement","onPress","disabled","activeOpacity","style","backgroundColor","colors","neutral","borderRadius","flexDirection","alignItems","justifyContent","padding","paddings","xs","marginBottom","flexStyle","marginStyle","marginLeft","margins","icon","color","blue","background","green","size","fontSizes","flex","text","descricao","black","sm","fontWeight","fontFamily","fonts","inter_bold","lineHeight","lg","letterSpacing","numberOfLines","ellipsizeMode","duracao_horas","gray","inter_semi_bold_600"],"sources":["index.tsx"],"sourcesContent":["/**\n * IMPORTS\n */\n\nimport React from \"react\";\nimport { Dimensions, TouchableOpacity } from \"react-native\";\n\n// components\nimport Box from \"../box\";\nimport { Typography } from \"../typography\";\n\n// commons / Icon\nimport { Icons } from \"../../common/icons-svg\";\n\n// typings\nimport { IScheduledJourneyIndicators } from \"./interface\";\n\n// styles\nimport { theme } from \"../../styles/theme/theme\";\n\nconst { width: widthScreen } = Dimensions.get(\"window\");\nconst isMobile = widthScreen < 768;\n\nconst ScheduledJourneyIndicators: React.FC<IScheduledJourneyIndicators> = ({\n journey,\n isEdit,\n handleOpenEditModal,\n}) => {\n return (\n <TouchableOpacity\n onPress={handleOpenEditModal}\n disabled={!isEdit}\n activeOpacity={0.7}\n style={{\n backgroundColor: theme.colors.neutral[25],\n borderRadius: 8,\n flexDirection: \"row\",\n alignItems: \"center\",\n justifyContent: \"space-between\",\n padding: theme.paddings.xs,\n marginBottom: 16,\n }}\n >\n <Box\n flexStyle={{\n alignItems: \"center\",\n justifyContent: \"center\",\n }}\n marginStyle={{ marginLeft: isMobile ? 0 : theme.margins.xs }}\n >\n <Icons\n icon={isEdit ? \"NOTE_PINCEL\" : \"CHECK_CIRCLE\"}\n color={isEdit ? theme.colors.blue[350] : theme.colors.neutral[25]}\n background={isEdit ? theme.colors.blue[350] : theme.colors.green[400]}\n size={theme.fontSizes[\"2xl\"]}\n />\n </Box>\n\n <Box\n flexStyle={{\n flex: 0.72,\n alignItems: \"flex-start\",\n }}\n >\n <Typography\n text={journey?.descricao}\n color={theme.colors.black[100]}\n size={theme.fontSizes.sm}\n fontWeight=\"700\"\n fontFamily={theme.fonts.inter_bold}\n lineHeight={theme.fontSizes.lg}\n letterSpacing={\"o_16\"}\n numberOfLines={1}\n ellipsizeMode=\"tail\"\n />\n </Box>\n\n <Box\n flexStyle={{\n flex: 0.22,\n alignItems: \"flex-end\",\n }}\n >\n <Typography\n text={journey?.duracao_horas}\n color={theme.colors.gray[700]}\n size={theme.fontSizes.sm}\n fontWeight=\"600\"\n fontFamily={theme.fonts.inter_semi_bold_600}\n lineHeight={24}\n letterSpacing={\"o_16\"}\n />\n </Box>\n </TouchableOpacity>\n );\n};\n\n/**\n * EXPORTS\n */\nexport { ScheduledJourneyIndicators };\n"],"mappings":"AAAA;AACA;AACA;;AAEA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,UAAU,EAAEC,gBAAgB,QAAQ,cAAc;;AAE3D;AACA,OAAOC,GAAG,MAAM,QAAQ;AACxB,SAASC,UAAU,QAAQ,eAAe;;AAE1C;AACA,SAASC,KAAK,QAAQ,wBAAwB;;AAE9C;;AAGA;AACA,SAASC,KAAK,QAAQ,0BAA0B;AAEhD,MAAM;EAAEC,KAAK,EAAEC;AAAY,CAAC,GAAGP,UAAU,CAACQ,GAAG,CAAC,QAAQ,CAAC;AACvD,MAAMC,QAAQ,GAAGF,WAAW,GAAG,GAAG;AAElC,MAAMG,0BAAiE,GAAGA,CAAC;EACzEC,OAAO;EACPC,MAAM;EACNC;AACF,CAAC,KAAK;EACJ,oBACEd,KAAA,CAAAe,aAAA,CAACb,gBAAgB;IACfc,OAAO,EAAEF,mBAAoB;IAC7B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;IACzBR,KAAK,EAAE9B,KAAK,CAACe,MAAM,CAACwB,KAAK,CAAC,GAAG,CAAE;IAC/BL,IAAI,EAAElC,KAAK,CAACmC,SAAS,CAACK,EAAG;IACzBC,UAAU,EAAC,KAAK;IAChBC,UAAU,EAAE1C,KAAK,CAAC2C,KAAK,CAACC,UAAW;IACnCC,UAAU,EAAE7C,KAAK,CAACmC,SAAS,CAACW,EAAG;IAC/BC,aAAa,EAAE,MAAO;IACtBC,aAAa,EAAE,CAAE;IACjBC,aAAa,EAAC;EAAM,CACrB,CACE,CAAC,eAENvD,KAAA,CAAAe,aAAA,CAACZ,GAAG;IACF4B,SAAS,EAAE;MACTW,IAAI,EAAE,IAAI;MACVjB,UAAU,EAAE;IACd;EAAE,gBAEFzB,KAAA,CAAAe,aAAA,CAACX,UAAU;IACTuC,IAAI,EAAE/B,OAAO,aAAPA,OAAO,uBAAPA,OAAO,CAAE4C,aAAc;IAC7BpB,KAAK,EAAE9B,KAAK,CAACe,MAAM,CAACoC,IAAI,CAAC,GAAG,CAAE;IAC9BjB,IAAI,EAAElC,KAAK,CAACmC,SAAS,CAACK,EAAG;IACzBC,UAAU,EAAC,KAAK;IAChBC,UAAU,EAAE1C,KAAK,CAAC2C,KAAK,CAACS,mBAAoB;IAC5CP,UAAU,EAAE,EAAG;IACfE,aAAa,EAAE;EAAO,CACvB,CACE,CACW,CAAC;AAEvB,CAAC;;AAED;AACA;AACA;AACA,SAAS1C,0BAA0B","ignoreList":[]}
@@ -1,5 +1,5 @@
1
- /**
2
- * IMPORTS
1
+ /**
2
+ * IMPORTS
3
3
  */
4
4
  import React from "react";
5
5
  import { useState } from "react";
@@ -12,15 +12,16 @@ import { styles } from "./styles";
12
12
  import { Icons } from "../../../common/icons-svg";
13
13
  import { theme } from "../../../styles/theme/theme";
14
14
 
15
- /**
16
- * Componente SelectOption para a interação da ui.
15
+ /**
16
+ * Componente SelectOption para a interação da ui.
17
17
  */
18
18
  const SelectOption = ({
19
19
  dataOption,
20
20
  handleSelectDown,
21
21
  titleLabel,
22
22
  sizeTitleLabel,
23
- colortitleLabel
23
+ colortitleLabel,
24
+ backgroundColor
24
25
  }) => {
25
26
  var _dataOption$, _dataOption$find;
26
27
  const [selectedValue, setSelectedValue] = useState(((_dataOption$ = dataOption[0]) === null || _dataOption$ === void 0 ? void 0 : _dataOption$.value) || "");
@@ -35,7 +36,8 @@ const SelectOption = ({
35
36
  handleSelectDown,
36
37
  titleLabel,
37
38
  sizeTitleLabel,
38
- colortitleLabel
39
+ colortitleLabel,
40
+ backgroundColor
39
41
  };
40
42
  return /*#__PURE__*/React.createElement(View, {
41
43
  style: styles(styleProps).container
@@ -43,7 +45,9 @@ const SelectOption = ({
43
45
  style: styles(styleProps).label
44
46
  }, `${titleLabel !== null && titleLabel !== void 0 ? titleLabel : "Selecione uma opção"}`, ":"), /*#__PURE__*/React.createElement(TouchableOpacity, {
45
47
  testID: "select-box",
46
- style: styles(styleProps).selectBox,
48
+ style: [styles(styleProps).selectBox, backgroundColor && {
49
+ backgroundColor
50
+ }],
47
51
  onPress: () => setModalVisible(true)
48
52
  }, /*#__PURE__*/React.createElement(Text, {
49
53
  style: styles(styleProps).selectedText
@@ -59,7 +63,13 @@ const SelectOption = ({
59
63
  }, /*#__PURE__*/React.createElement(View, {
60
64
  style: styles(styleProps).modalOverlay
61
65
  }, /*#__PURE__*/React.createElement(View, {
62
- style: styles(styleProps).modalContainer
66
+ style: {
67
+ width: "90%",
68
+ backgroundColor: "#fff",
69
+ borderRadius: 8,
70
+ padding: 16,
71
+ maxHeight: "80%"
72
+ }
63
73
  }, /*#__PURE__*/React.createElement(View, {
64
74
  style: {
65
75
  width: "100%",
@@ -78,7 +88,14 @@ const SelectOption = ({
78
88
  renderItem: ({
79
89
  item
80
90
  }) => /*#__PURE__*/React.createElement(TouchableOpacity, {
81
- style: styles(styleProps).option,
91
+ style: {
92
+ width: "100%",
93
+ paddingVertical: 12,
94
+ paddingHorizontal: 8,
95
+ alignItems: "flex-start",
96
+ borderBottomWidth: 1,
97
+ borderColor: "#eee"
98
+ },
82
99
  onPress: () => handleSelect(item.value)
83
100
  }, /*#__PURE__*/React.createElement(Text, {
84
101
  style: styles(styleProps).optionText
@@ -86,8 +103,8 @@ const SelectOption = ({
86
103
  })))));
87
104
  };
88
105
 
89
- /**
90
- * EXPORTS
106
+ /**
107
+ * EXPORTS
91
108
  */
92
109
  export { SelectOption };
93
110
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["React","useState","View","Text","TouchableOpacity","Modal","FlatList","styles","Icons","theme","SelectOption","dataOption","handleSelectDown","titleLabel","sizeTitleLabel","colortitleLabel","_dataOption$","_dataOption$find","selectedValue","setSelectedValue","value","modalVisible","setModalVisible","handleSelect","styleProps","createElement","style","container","label","testID","selectBox","onPress","selectedText","find","item","size","fontSizes","color","colors","blue","icon","visible","transparent","animationType","modalOverlay","modalContainer","width","alignItems","data","keyExtractor","renderItem","option","optionText"],"sources":["index.tsx"],"sourcesContent":["/**\n * IMPORTS\n */\nimport React from \"react\";\nimport { useState } from \"react\";\nimport { View, Text, TouchableOpacity, Modal, FlatList } from \"react-native\";\n\n// typings\nimport { ISelectDropDownProps } from \"./interface\";\n\n// styles\nimport { styles } from \"./styles\";\nimport { Icons } from \"../../../common/icons-svg\";\nimport { theme } from \"../../../styles/theme/theme\";\n\n/**\n * Componente SelectOption para a interação da ui.\n */\nconst SelectOption: React.FC<ISelectDropDownProps> = ({\n dataOption,\n handleSelectDown,\n titleLabel,\n sizeTitleLabel,\n colortitleLabel,\n}: ISelectDropDownProps) => {\n const [selectedValue, setSelectedValue] = useState(dataOption[0]?.value || \"\");\n const [modalVisible, setModalVisible] = useState(false);\n\n const handleSelect = (value: string) => {\n setSelectedValue(value);\n setModalVisible(false);\n handleSelectDown(value);\n };\n\n const styleProps = {\n dataOption,\n handleSelectDown,\n titleLabel,\n sizeTitleLabel,\n colortitleLabel,\n } as ISelectDropDownProps;\n\n return (\n <View style={styles(styleProps).container}>\n {/* Titulo para exibir o label */}\n <Text style={styles(styleProps).label}>{`${titleLabel ?? \"Selecione uma opção\"}`}:</Text>\n\n {/* Botão para abrir o modal */}\n <TouchableOpacity\n testID=\"select-box\"\n style={styles(styleProps).selectBox}\n onPress={() => setModalVisible(true)}\n >\n <Text style={styles(styleProps).selectedText}>\n {dataOption.find((item) => item.value === selectedValue)?.label}\n </Text>\n\n <Icons\n size={theme.fontSizes[\"md\"]}\n color={theme.colors.blue[500]}\n icon={\"ARROW_DROP_DOWN\"}\n />\n </TouchableOpacity>\n\n {/* Modal para exibir as opções */}\n <Modal testID=\"modal-container\" visible={modalVisible} transparent animationType=\"fade\">\n <View style={styles(styleProps).modalOverlay}>\n <View style={styles(styleProps).modalContainer}>\n <View style={{ width: \"100%\", alignItems: \"flex-end\" }}>\n <TouchableOpacity testID=\"close-icon\" onPress={() => setModalVisible(false)}>\n <Icons\n size={theme.fontSizes[\"md\"]}\n color={theme.colors.blue[500]}\n icon={\"CLOSED\"}\n />\n </TouchableOpacity>\n </View>\n <FlatList\n data={dataOption || []}\n keyExtractor={(item) => item.value}\n renderItem={({ item }) => (\n <TouchableOpacity\n style={styles(styleProps).option}\n onPress={() => handleSelect(item.value)}\n >\n <Text style={styles(styleProps).optionText}>{item.label}</Text>\n </TouchableOpacity>\n )}\n />\n </View>\n </View>\n </Modal>\n </View>\n );\n};\n\n/**\n * EXPORTS\n */\nexport { SelectOption };\n"],"mappings":"AAAA;AACA;AACA;AACA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,QAAQ,QAAQ,OAAO;AAChC,SAASC,IAAI,EAAEC,IAAI,EAAEC,gBAAgB,EAAEC,KAAK,EAAEC,QAAQ,QAAQ,cAAc;;AAE5E;;AAGA;AACA,SAASC,MAAM,QAAQ,UAAU;AACjC,SAASC,KAAK,QAAQ,2BAA2B;AACjD,SAASC,KAAK,QAAQ,6BAA6B;;AAEnD;AACA;AACA;AACA,MAAMC,YAA4C,GAAGA,CAAC;EAC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ACvBsC,YAAY,EAAGf,IAAI,IAAKA,IAAI,CAACd,KAAM;IACnC8B,UAAU,EAAEA,CAAC;MAAEhB;IAAK,CAAC,kBACnBlC,KAAA,CAAAyB,aAAA,CAACrB,gBAAgB;MACfsB,KAAK,EAAEnB,MAAM,CAACiB,UAAU,CAAC,CAAC2B,MAAO;MACjCpB,OAAO,EAAEA,CAAA,KAAMR,YAAY,CAACW,IAAI,CAACd,KAAK;IAAE,gBAExCpB,KAAA,CAAAyB,aAAA,CAACtB,IAAI;MAACuB,KAAK,EAAEnB,MAAM,CAACiB,UAAU,CAAC,CAAC4B;IAAW,GAAElB,IAAI,CAACN,KAAY,CAC9C;EAClB,CACH,CACG,CACF,CACD,CACH,CAAC;AAEX,CAAC;;AAED;AACA;AACA;AACA,SAASlB,YAAY","ignoreList":[]}
1
+ {"version":3,"names":["React","useState","View","Text","TouchableOpacity","Modal","FlatList","styles","Icons","theme","SelectOption","dataOption","handleSelectDown","titleLabel","sizeTitleLabel","colortitleLabel","backgroundColor","_dataOption$","_dataOption$find","selectedValue","setSelectedValue","value","modalVisible","setModalVisible","handleSelect","styleProps","createElement","style","container","label","testID","selectBox","onPress","selectedText","find","item","size","fontSizes","color","colors","blue","icon","visible","transparent","animationType","modalOverlay","width","borderRadius","padding","maxHeight","alignItems","data","keyExtractor","renderItem","paddingVertical","paddingHorizontal","borderBottomWidth","borderColor","optionText"],"sources":["index.tsx"],"sourcesContent":["/**\r\n * IMPORTS\r\n */\r\nimport React from \"react\";\r\nimport { useState } from \"react\";\r\nimport { View, Text, TouchableOpacity, Modal, FlatList } from \"react-native\";\r\n\r\n// typings\r\nimport { ISelectDropDownProps } from \"./interface\";\r\n\r\n// styles\r\nimport { styles } from \"./styles\";\r\nimport { Icons } from \"../../../common/icons-svg\";\r\nimport { theme } from \"../../../styles/theme/theme\";\r\n\r\n/**\r\n * Componente SelectOption para a interação da ui.\r\n */\r\nconst SelectOption: React.FC<ISelectDropDownProps> = ({\r\n dataOption,\r\n handleSelectDown,\r\n titleLabel,\r\n sizeTitleLabel,\r\n colortitleLabel,\r\n backgroundColor,\r\n}: ISelectDropDownProps) => {\r\n const [selectedValue, setSelectedValue] = useState(dataOption[0]?.value || \"\");\r\n const [modalVisible, setModalVisible] = useState(false);\r\n\r\n const handleSelect = (value: string) => {\r\n setSelectedValue(value);\r\n setModalVisible(false);\r\n handleSelectDown(value);\r\n };\r\n\r\n const styleProps = {\r\n dataOption,\r\n handleSelectDown,\r\n titleLabel,\r\n sizeTitleLabel,\r\n colortitleLabel,\r\n backgroundColor,\r\n } as ISelectDropDownProps;\r\n\r\n return (\r\n <View style={styles(styleProps).container}>\r\n {/* Titulo para exibir o label */}\r\n <Text style={styles(styleProps).label}>{`${titleLabel ?? \"Selecione uma opção\"}`}:</Text>\r\n\r\n {/* Botão para abrir o modal */}\r\n <TouchableOpacity\r\n testID=\"select-box\"\r\n style={[styles(styleProps).selectBox, backgroundColor && { backgroundColor },]}\r\n onPress={() => setModalVisible(true)}\r\n >\r\n <Text style={styles(styleProps).selectedText}>\r\n {dataOption.find((item) => item.value === selectedValue)?.label}\r\n </Text>\r\n\r\n <Icons\r\n size={theme.fontSizes[\"md\"]}\r\n color={theme.colors.blue[500]}\r\n icon={\"ARROW_DROP_DOWN\"}\r\n />\r\n </TouchableOpacity>\r\n\r\n {/* Modal para exibir as opções */}\r\n <Modal testID=\"modal-container\" visible={modalVisible} transparent animationType=\"fade\">\r\n <View style={styles(styleProps).modalOverlay}>\r\n <View style={{\r\n width: \"90%\",\r\n backgroundColor: \"#fff\",\r\n borderRadius: 8,\r\n padding: 16,\r\n maxHeight: \"80%\",\r\n }}>\r\n <View style={{ width: \"100%\", alignItems: \"flex-end\" }}>\r\n <TouchableOpacity testID=\"close-icon\" onPress={() => setModalVisible(false)}>\r\n <Icons\r\n size={theme.fontSizes[\"md\"]}\r\n color={theme.colors.blue[500]}\r\n icon={\"CLOSED\"}\r\n />\r\n </TouchableOpacity>\r\n </View>\r\n <FlatList\r\n data={dataOption || []}\r\n keyExtractor={(item) => item.value}\r\n renderItem={({ item }) => (\r\n <TouchableOpacity\r\n style={{\r\n width: \"100%\",\r\n paddingVertical: 12,\r\n paddingHorizontal: 8,\r\n alignItems: \"flex-start\",\r\n borderBottomWidth: 1,\r\n borderColor: \"#eee\",\r\n }}\r\n onPress={() => handleSelect(item.value)}\r\n >\r\n <Text style={styles(styleProps).optionText}>{item.label}</Text>\r\n </TouchableOpacity>\r\n )}\r\n />\r\n </View>\r\n </View>\r\n </Modal>\r\n </View>\r\n );\r\n};\r\n\r\n/**\r\n * EXPORTS\r\n */\r\nexport { SelectOption };\r\n"],"mappings":"AAAA;AACA;AACA;AACA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,QAAQ,QAAQ,OAAO;AAChC,SAASC,IAAI,EAAEC,IAAI,EAAEC,gBAAgB,EAAEC,KAAK,EAAEC,QAAQ,QAAQ,cAAc;;AAE5E;;AAGA;AACA,SAASC,MAAM,QAAQ,UAAU;AACjC,SAASC,KAAK,QAAQ,2BAA2B;AACjD,SAASC,KAAK,QAAQ,6BAA6B;;AAEnD;AACA;AACA;AACA,MAAMC,YAA4C,GAAGA,CAAC;EACpDC,UAAU;EACVC,gBAAgB;EAChBC,UAAU;EACVC,cAAc;EACdC,eAAe;EACfC;AACoB,CAAC,KAAK;EAAA,IAAAC,YAAA,EAAAC,gBAAA;EAC1B,MAAM,CAACC,aAAa,EAAEC,gBAAgB,CAAC,GAAGnB,QAAQ,CAAC,EAAAgB,YAAA,GAAAN,UAAU,CAAC,CAAC,CAAC,cAAAM,YAAA,uBAAbA,YAAA,CAAeI,KAAK,KAAI,EAAE,CAAC;EAC9E,MAAM,CAACC,YAAY,EAAEC,eAAe,CAAC,GAAGtB,QAAQ,CAAC,KAAK,CAAC;EAEvD,MAAMuB,YAAY,GAAIH,KAAa,IAAK;IACtCD,gBAAgB,CAACC,KAAK,CAAC;IACvBE,eAAe,CAAC,KAAK,CAAC;IACtBX,gBAAgB,CAACS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B,OAAO,EAAEA,CAAA,KAAMR,YAAY,CAACW,IAAI,CAACd,KAAK;IAAE,gBAExCrB,KAAA,CAAA0B,aAAA,CAACvB,IAAI;MAACwB,KAAK,EAAEpB,MAAM,CAACkB,UAAU,CAAC,CAACiC;IAAW,GAAEvB,IAAI,CAACN,KAAY,CAC9C;EAClB,CACH,CACG,CACF,CACD,CACH,CAAC;AAEX,CAAC;;AAED;AACA;AACA;AACA,SAASnB,YAAY","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["interface.d.ts"],"sourcesContent":["/**\n * IMPORTS\n */\ntype ISelectDropDownProps = {\n dataOption: any[];\n titleLabel: string;\n sizeTitleLabel?: number;\n colortitleLabel?: string;\n\n /**retorna o valor selecionado */\n // eslint-disable-next-line no-unused-vars\n handleSelectDown: (value: string) => void;\n};\n\n/**\n * EXPORTS\n */\nexport { ISelectDropDownProps };\n"],"mappings":"","ignoreList":[]}
1
+ {"version":3,"names":[],"sources":["interface.d.ts"],"sourcesContent":["/**\r\n * IMPORTS\r\n */\r\ntype ISelectDropDownProps = {\r\n dataOption: any[];\r\n titleLabel: string;\r\n sizeTitleLabel?: number;\r\n colortitleLabel?: string;\r\n backgroundColor?: string;\r\n /**retorna o valor selecionado */\r\n // eslint-disable-next-line no-unused-vars\r\n handleSelectDown: (value: string) => void;\r\n};\r\n\r\n/**\r\n * EXPORTS\r\n */\r\nexport { ISelectDropDownProps };\r\n"],"mappings":"","ignoreList":[]}
@@ -12,6 +12,7 @@ import { styles } from "./styles";
12
12
  import { Icons } from "../../common/icons-svg";
13
13
  import { formHoursMinute } from "../../utils/format-data";
14
14
  import { theme } from "../../styles/theme/theme";
15
+ import { ModalChangeActivity } from "../modal-change-activity";
15
16
 
16
17
  /**
17
18
  * Componente StepIndicator para a interação da ui.
@@ -25,15 +26,45 @@ const StepIndicator = ({
25
26
  titleNumberColor
26
27
  }) => {
27
28
  const StepDefault = () => {
28
- return /*#__PURE__*/React.createElement(React.Fragment, null, data.length > 0 && data.map((history, index) => /*#__PURE__*/React.createElement(View, {
29
+ var _stepData;
30
+ const [isModalVisible, setIsModalVisible] = React.useState(false);
31
+ const [currentStepIndex, setCurrentStepIndex] = React.useState(null);
32
+ const [stepData, setStepData] = React.useState(data);
33
+ const handleOpenModal = index => {
34
+ var _stepItem$descricao, _stepItem$descricao$t;
35
+ const stepItem = stepData[index];
36
+ const desc = stepItem === null || stepItem === void 0 || (_stepItem$descricao = stepItem.descricao) === null || _stepItem$descricao === void 0 || (_stepItem$descricao$t = _stepItem$descricao.toLowerCase) === null || _stepItem$descricao$t === void 0 ? void 0 : _stepItem$descricao$t.call(_stepItem$descricao);
37
+ if (!desc) return;
38
+ const isDescanso = ["descanso", "refeição", "repouso_noturno", "repouso_semanal"].includes(desc.replace(/\s+/g, "_"));
39
+
40
+ // Só abre o modal se for do tipo descanso E se estiver sincronizado
41
+ if (isDescanso && (stepItem === null || stepItem === void 0 ? void 0 : stepItem.sincronizado) === true) {
42
+ setCurrentStepIndex(index);
43
+ setIsModalVisible(true);
44
+ }
45
+ };
46
+ const handleConfirmModal = newData => {
47
+ if (currentStepIndex !== null) {
48
+ const newSteps = stepData.map((item, index) => index === currentStepIndex ? {
49
+ ...item,
50
+ descricao: newData.label,
51
+ tipo_atividade: newData.value,
52
+ identificador: newData.key
53
+ } : item);
54
+ setStepData(newSteps);
55
+ }
56
+ setIsModalVisible(false);
57
+ setCurrentStepIndex(null);
58
+ };
59
+ return /*#__PURE__*/React.createElement(React.Fragment, null, stepData.length > 0 && stepData.map((history, index) => /*#__PURE__*/React.createElement(View, {
29
60
  testID: "step-indicator",
30
61
  style: styles({}).containerIndicator,
31
- key: history.id
62
+ key: `${history.id}-${index}`
32
63
  }, /*#__PURE__*/React.createElement(View, {
33
64
  style: styles({
34
65
  sincronizado: history.sincronizado
35
66
  }).containerBall
36
- }, (data === null || data === void 0 ? void 0 : data.length) > 1 && index < (data === null || data === void 0 ? void 0 : data.length) - 1 && /*#__PURE__*/React.createElement(View, {
67
+ }, stepData.length > 1 && index < stepData.length - 1 && /*#__PURE__*/React.createElement(View, {
37
68
  style: {
38
69
  width: 2,
39
70
  height: 84,
@@ -45,8 +76,9 @@ const StepIndicator = ({
45
76
  style: styles({
46
77
  titleNumberColor
47
78
  }).titleNumber
48
- }, (data === null || data === void 0 ? void 0 : data.length) - index)), /*#__PURE__*/React.createElement(View, {
49
- style: styles({}).containerMain
79
+ }, stepData.length - index)), /*#__PURE__*/React.createElement(View, {
80
+ style: styles({}).containerMain,
81
+ onTouchEnd: () => handleOpenModal(index)
50
82
  }, /*#__PURE__*/React.createElement(Text, {
51
83
  style: styles({
52
84
  titleColor
@@ -55,11 +87,17 @@ const StepIndicator = ({
55
87
  style: styles({
56
88
  textColorDescription
57
89
  }).titleDescription
58
- }, `Inicio: ${history.data_inicio} ás ${history.data_fim}`), history.duracao_segundos && /*#__PURE__*/React.createElement(Text, {
90
+ }, `Inicio: ${history.data_inicio} às ${history.data_fim}`), history.duracao_segundos && /*#__PURE__*/React.createElement(Text, {
59
91
  style: styles({
60
92
  textColorDescription
61
93
  }).titleDescription
62
- }, "Dura\xE7\xE3o: ", formHoursMinute(history === null || history === void 0 ? void 0 : history.duracao_segundos))))));
94
+ }, "Dura\xE7\xE3o: ", formHoursMinute(history === null || history === void 0 ? void 0 : history.duracao_segundos))))), isModalVisible && currentStepIndex !== null && /*#__PURE__*/React.createElement(ModalChangeActivity, {
95
+ visible: isModalVisible,
96
+ onClose: () => setIsModalVisible(false),
97
+ modalConfirm: handleConfirmModal,
98
+ dataRegistro: "",
99
+ descricao: ((_stepData = stepData[currentStepIndex]) === null || _stepData === void 0 ? void 0 : _stepData.descricao) || ""
100
+ }));
63
101
  };
64
102
  const StepCustom = () => {
65
103
  return /*#__PURE__*/React.createElement(View, {
@@ -1 +1 @@
1
- {"version":3,"names":["React","View","Text","getIconKeyByValue","styles","Icons","formHoursMinute","theme","StepIndicator","data","type","textColorDescription","titleColor","titleNumberColor","StepDefault","createElement","Fragment","length","map","history","index","testID","style","containerIndicator","key","id","sincronizado","containerBall","width","height","marginTop","position","backgroundColor","colors","blue","orange","titleNumber","containerMain","title","descricao","data_inicio","titleDescription","data_fim","duracao_segundos","StepCustom","paddingHorizontal","display","flexDirection","step","indexCustom","borderRadius","alignItems","justifyContent","borderWidth","borderColor","icon","top","fontWeight","fontSize","lineHeight","textAlign","color","handleRenderComponent","stepType"],"sources":["index.tsx"],"sourcesContent":["/**\r\n * IMPORTS\r\n */\r\nimport React from \"react\";\r\nimport { View, Text } from \"react-native\";\r\n\r\nimport { getIconKeyByValue } from \"./helpers/get-icon-by-status\";\r\n\r\n// typings\r\nimport { IStepIndicator } from \"./interface\";\r\n\r\n// styles\r\nimport { styles } from \"./styles\";\r\nimport { Icons } from \"../../common/icons-svg\";\r\nimport { formHoursMinute } from \"../../utils/format-data\";\r\nimport { theme } from \"../../styles/theme/theme\";\r\n\r\n/**\r\n * Componente StepIndicator para a interação da ui.\r\n */\r\n\r\nconst StepIndicator: React.FC<IStepIndicator> = ({\r\n data = [],\r\n type,\r\n textColorDescription,\r\n titleColor,\r\n titleNumberColor,\r\n}) => {\r\n const StepDefault = () => {\r\n return (\r\n <>\r\n {data!.length > 0 &&\r\n data!.map((history, index) => (\r\n <View testID=\"step-indicator\" style={styles({}).containerIndicator} key={history.id}>\r\n <View style={styles({ sincronizado: history.sincronizado }).containerBall}>\r\n {data!?.length > 1 && index < data!?.length - 1 && (\r\n <View\r\n style={{\r\n width: 2,\r\n height: 84,\r\n marginTop: 116,\r\n position: \"relative\",\r\n backgroundColor: history.sincronizado\r\n ? theme.colors.blue[500]\r\n : theme.colors.orange[150],\r\n }}\r\n />\r\n )}\r\n <Text style={styles({ titleNumberColor }).titleNumber}>\r\n {data!?.length - index}\r\n </Text>\r\n </View>\r\n\r\n <View style={styles({}).containerMain}>\r\n <Text style={styles({ titleColor }).title}>{history?.descricao}</Text>\r\n\r\n {history?.data_inicio && (\r\n <Text style={styles({ textColorDescription }).titleDescription}>\r\n {`Inicio: ${history.data_inicio} ás ${history.data_fim}`}\r\n </Text>\r\n )}\r\n\r\n {history.duracao_segundos && (\r\n <Text style={styles({ textColorDescription }).titleDescription}>\r\n Duração: {formHoursMinute(history?.duracao_segundos as string)}\r\n </Text>\r\n )}\r\n </View>\r\n </View>\r\n ))}\r\n </>\r\n );\r\n };\r\n\r\n const StepCustom = () => {\r\n return (\r\n <View\r\n style={{\r\n width: \"100%\",\r\n height: 84,\r\n paddingHorizontal: 24,\r\n display: \"flex\",\r\n flexDirection: \"row\",\r\n }}\r\n >\r\n {data.map((step, indexCustom) => {\r\n const descricao = getIconKeyByValue(step.descricao);\r\n\r\n return (\r\n <React.Fragment key={`step-${indexCustom}`}>\r\n <View\r\n style={{\r\n width: 45,\r\n height: 45,\r\n backgroundColor: indexCustom <= 3 ? \"orange\" : \"transparent\",\r\n borderRadius: 50,\r\n alignItems: \"center\",\r\n justifyContent: \"center\",\r\n borderWidth: 1,\r\n borderColor: \"#fff\",\r\n }}\r\n >\r\n <View\r\n style={{\r\n width: 45,\r\n height: 45,\r\n backgroundColor: \"transparent\",\r\n borderRadius: 50,\r\n alignItems: \"center\",\r\n justifyContent: \"center\",\r\n }}\r\n >\r\n {descricao && <Icons icon={descricao} />}\r\n </View>\r\n <Text\r\n style={{\r\n position: \"absolute\",\r\n top: 56,\r\n fontWeight: \"600\",\r\n fontSize: 10,\r\n lineHeight: 14,\r\n textAlign: \"center\",\r\n color: \"#fff\",\r\n width: 75,\r\n }}\r\n >\r\n {step.descricao}\r\n </Text>\r\n </View>\r\n\r\n {data?.length > 1 && indexCustom < data?.length - 1 && (\r\n <View\r\n style={{\r\n width: 35,\r\n height: 2,\r\n marginTop: 24,\r\n position: \"relative\",\r\n backgroundColor: \"orange\",\r\n }}\r\n />\r\n )}\r\n </React.Fragment>\r\n );\r\n })}\r\n </View>\r\n );\r\n };\r\n\r\n const handleRenderComponent = (stepType: \"default\" | \"custom\") => {\r\n switch (stepType) {\r\n case \"default\":\r\n return <StepDefault />;\r\n case \"custom\":\r\n return <StepCustom />;\r\n default:\r\n return <View />;\r\n }\r\n };\r\n\r\n return <>{handleRenderComponent(type!)}</>;\r\n};\r\n\r\n/**\r\n * EXPORTS\r\n */\r\nexport { StepIndicator };\r\n"],"mappings":"AAAA;AACA;AACA;AACA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,EAAEC,IAAI,QAAQ,cAAc;AAEzC,SAASC,iBAAiB,QAAQ,8BAA8B;;AAEhE;;AAGA;AACA,SAASC,MAAM,QAAQ,UAAU;AACjC,SAASC,KAAK,QAAQ,wBAAwB;AAC9C,SAASC,eAAe,QAAQ,yBAAyB;AACzD,SAASC,KAAK,QAAQ,0BAA0B;;AAEhD;AACA;AACA;;AAEA,MAAMC,aAAuC,GAAGA,CAAC;EAC/CC,IAAI,GAAG,EAAE;EACTC,IAAI;EACJC,oBAAoB;EACpBC,UAAU;EACVC;AACF,CAAC,KAAK;EACJ,MAAMC,WAAW,GAAGA,CAAA,KAAM;IACxB,oBACEd,KAAA,CAAAe,aAAA,CAAAf,KAAA,CAAAgB,QAAA,QACGP,IAAI,CAAEQ,MAAM,GAAG,CAAC,IACfR,IAAI,CAAES,GAAG,CAAC,CAACC,OAAO,EAAEC,KAAK,kBACvBpB,KAAA,CAAAe,aAAA,CAACd,IAAI;MAACoB,MAAM,EAAC,gBAAgB;MAACC,KAAK,EAAElB,MAAM,CAAC,CAAC,CAAC,CAAC,CAACmB,kBAAmB;MAACC,GAAG,EAAEL,OAAO,CAACM;IAAG,gBAClFzB,KAAA,CAAAe,aAAA,CAACd,IAAI;MAACqB,KAAK,EAAElB,MAAM,CAAC;QAAEsB,YAAY,EAAEP,OAAO,CAACO;MAAa,CAAC,CAAC,CAACC;IAAc,GACvE,CAAAlB,IAAI,aAAJA,IAAI,uBAAJA,IAAI,CAAGQ,MAAM,IAAG,CAAC,IAAIG,KAAK,GAAG,CAAAX,IAAI,aAAJA,IAAI,uBAAJA,IAAI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AAA,CAAAe,aAAA,CAACb,IAAI;QACHoB,KAAK,EAAE;UACLS,QAAQ,EAAE,UAAU;UACpByB,GAAG,EAAE,EAAE;UACPC,UAAU,EAAE,KAAK;UACjBC,QAAQ,EAAE,EAAE;UACZC,UAAU,EAAE,EAAE;UACdC,SAAS,EAAE,QAAQ;UACnBC,KAAK,EAAE,MAAM;UACbjC,KAAK,EAAE;QACT;MAAE,GAEDoB,IAAI,CAACT,SACF,CACF,CAAC,EAEN,CAAA9B,IAAI,aAAJA,IAAI,uBAAJA,IAAI,CAAEQ,MAAM,IAAG,CAAC,IAAIgC,WAAW,GAAG,CAAAxC,IAAI,aAAJA,IAAI,uBAAJA,IAAI,CAAEQ,MAAM,IAAG,CAAC,iBACjDjB,KAAA,CAAAe,aAAA,CAACd,IAAI;QACHqB,KAAK,EAAE;UACLM,KAAK,EAAE,EAAE;UACTC,MAAM,EAAE,CAAC;UACTC,SAAS,EAAE,EAAE;UACbC,QAAQ,EAAE,UAAU;UACpBC,eAAe,EAAE;QACnB;MAAE,CACH,CAEW,CAAC;IAErB,CAAC,CACG,CAAC;EAEX,CAAC;EAED,MAAM8B,qBAAqB,GAAIC,QAA8B,IAAK;IAChE,QAAQA,QAAQ;MACd,KAAK,SAAS;QACZ,oBAAO/D,KAAA,CAAAe,aAAA,CAACD,WAAW,MAAE,CAAC;MACxB,KAAK,QAAQ;QACX,oBAAOd,KAAA,CAAAe,aAAA,CAAC6B,UAAU,MAAE,CAAC;MACvB;QACE,oBAAO5C,KAAA,CAAAe,aAAA,CAACd,IAAI,MAAE,CAAC;IACnB;EACF,CAAC;EAED,oBAAOD,KAAA,CAAAe,aAAA,CAAAf,KAAA,CAAAgB,QAAA,QAAG8C,qBAAqB,CAACpD,IAAK,CAAI,CAAC;AAC5C,CAAC;;AAED;AACA;AACA;AACA,SAASF,aAAa","ignoreList":[]}
1
+ {"version":3,"names":["React","View","Text","getIconKeyByValue","styles","Icons","formHoursMinute","theme","ModalChangeActivity","StepIndicator","data","type","textColorDescription","titleColor","titleNumberColor","StepDefault","_stepData","isModalVisible","setIsModalVisible","useState","currentStepIndex","setCurrentStepIndex","stepData","setStepData","handleOpenModal","index","_stepItem$descricao","_stepItem$descricao$t","stepItem","desc","descricao","toLowerCase","call","isDescanso","includes","replace","sincronizado","handleConfirmModal","newData","newSteps","map","item","label","tipo_atividade","value","identificador","key","createElement","Fragment","length","history","testID","style","containerIndicator","id","containerBall","width","height","marginTop","position","backgroundColor","colors","blue","orange","titleNumber","containerMain","onTouchEnd","title","data_inicio","titleDescription","data_fim","duracao_segundos","visible","onClose","modalConfirm","dataRegistro","StepCustom","paddingHorizontal","display","flexDirection","step","indexCustom","borderRadius","alignItems","justifyContent","borderWidth","borderColor","icon","top","fontWeight","fontSize","lineHeight","textAlign","color","handleRenderComponent","stepType"],"sources":["index.tsx"],"sourcesContent":["/**\r\n * IMPORTS\r\n */\r\nimport React from \"react\";\r\nimport { View, Text } from \"react-native\";\r\n\r\nimport { getIconKeyByValue } from \"./helpers/get-icon-by-status\";\r\n\r\n// typings\r\nimport { IStepIndicator } from \"./interface\";\r\n\r\n// styles\r\nimport { styles } from \"./styles\";\r\nimport { Icons } from \"../../common/icons-svg\";\r\nimport { formHoursMinute } from \"../../utils/format-data\";\r\nimport { theme } from \"../../styles/theme/theme\";\r\nimport { ModalChangeActivity } from \"../modal-change-activity\";\r\n\r\n/**\r\n * Componente StepIndicator para a interação da ui.\r\n */\r\n\r\nconst StepIndicator: React.FC<IStepIndicator> = ({\r\n data = [],\r\n type,\r\n textColorDescription,\r\n titleColor,\r\n titleNumberColor,\r\n}) => {\r\n const StepDefault = () => {\r\n const [isModalVisible, setIsModalVisible] = React.useState(false);\r\n const [currentStepIndex, setCurrentStepIndex] = React.useState<number | null>(null);\r\n const [stepData, setStepData] = React.useState(data);\r\n\r\n const handleOpenModal = (index: number) => {\r\n const stepItem = stepData[index];\r\n const desc = stepItem?.descricao?.toLowerCase?.();\r\n if (!desc) return;\r\n \r\n const isDescanso = [\r\n \"descanso\",\r\n \"refeição\",\r\n \"repouso_noturno\",\r\n \"repouso_semanal\",\r\n ].includes(desc.replace(/\\s+/g, \"_\"));\r\n\r\n // Só abre o modal se for do tipo descanso E se estiver sincronizado\r\n if (isDescanso && stepItem?.sincronizado === true) {\r\n setCurrentStepIndex(index);\r\n setIsModalVisible(true);\r\n }\r\n };\r\n\r\n const handleConfirmModal = (newData: { label: string; value: string; key: number }) => {\r\n if (currentStepIndex !== null) {\r\n const newSteps = stepData.map((item, index) =>\r\n index === currentStepIndex\r\n ? { ...item, descricao: newData.label, tipo_atividade: newData.value, identificador: newData.key }\r\n : item\r\n );\r\n setStepData(newSteps);\r\n }\r\n\r\n setIsModalVisible(false);\r\n setCurrentStepIndex(null);\r\n };\r\n\r\n return (\r\n <>\r\n {stepData.length > 0 &&\r\n stepData.map((history, index) => (\r\n <View\r\n testID=\"step-indicator\"\r\n style={styles({}).containerIndicator}\r\n key={`${history.id}-${index}`}\r\n >\r\n <View style={styles({ sincronizado: history.sincronizado }).containerBall}>\r\n {stepData.length > 1 && index < stepData.length - 1 && (\r\n <View\r\n style={{\r\n width: 2,\r\n height: 84,\r\n marginTop: 116,\r\n position: \"relative\",\r\n backgroundColor: history.sincronizado\r\n ? theme.colors.blue[500]\r\n : theme.colors.orange[150],\r\n }}\r\n />\r\n )}\r\n <Text style={styles({ titleNumberColor }).titleNumber}>\r\n {stepData.length - index}\r\n </Text>\r\n </View>\r\n\r\n <View\r\n style={styles({}).containerMain}\r\n onTouchEnd={() => handleOpenModal(index)}\r\n >\r\n <Text style={styles({ titleColor }).title}>{history?.descricao}</Text>\r\n\r\n {history?.data_inicio && (\r\n <Text style={styles({ textColorDescription }).titleDescription}>\r\n {`Inicio: ${history.data_inicio} às ${history.data_fim}`}\r\n </Text>\r\n )}\r\n\r\n {history.duracao_segundos && (\r\n <Text style={styles({ textColorDescription }).titleDescription}>\r\n Duração: {formHoursMinute(history?.duracao_segundos as string)}\r\n </Text>\r\n )}\r\n </View>\r\n </View>\r\n ))}\r\n\r\n {isModalVisible && currentStepIndex !== null && (\r\n <ModalChangeActivity\r\n visible={isModalVisible}\r\n onClose={() => setIsModalVisible(false)}\r\n modalConfirm={handleConfirmModal}\r\n dataRegistro={\"\"}\r\n descricao={stepData[currentStepIndex!]?.descricao || \"\"}\r\n />\r\n )}\r\n </>\r\n );\r\n };\r\n\r\n\r\n const StepCustom = () => {\r\n return (\r\n <View\r\n style={{\r\n width: \"100%\",\r\n height: 84,\r\n paddingHorizontal: 24,\r\n display: \"flex\",\r\n flexDirection: \"row\",\r\n }}\r\n >\r\n {data.map((step, indexCustom) => {\r\n const descricao = getIconKeyByValue(step.descricao);\r\n\r\n return (\r\n <React.Fragment key={`step-${indexCustom}`}>\r\n <View\r\n style={{\r\n width: 45,\r\n height: 45,\r\n backgroundColor: indexCustom <= 3 ? \"orange\" : \"transparent\",\r\n borderRadius: 50,\r\n alignItems: \"center\",\r\n justifyContent: \"center\",\r\n borderWidth: 1,\r\n borderColor: \"#fff\",\r\n }}\r\n >\r\n <View\r\n style={{\r\n width: 45,\r\n height: 45,\r\n backgroundColor: \"transparent\",\r\n borderRadius: 50,\r\n alignItems: \"center\",\r\n justifyContent: \"center\",\r\n }}\r\n >\r\n {descricao && <Icons icon={descricao} />}\r\n </View>\r\n <Text\r\n style={{\r\n position: \"absolute\",\r\n top: 56,\r\n fontWeight: \"600\",\r\n fontSize: 10,\r\n lineHeight: 14,\r\n textAlign: \"center\",\r\n color: \"#fff\",\r\n width: 75,\r\n }}\r\n >\r\n {step.descricao}\r\n </Text>\r\n </View>\r\n\r\n {data?.length > 1 && indexCustom < data?.length - 1 && (\r\n <View\r\n style={{\r\n width: 35,\r\n height: 2,\r\n marginTop: 24,\r\n position: \"relative\",\r\n backgroundColor: \"orange\",\r\n }}\r\n />\r\n )}\r\n </React.Fragment>\r\n );\r\n })}\r\n </View>\r\n );\r\n };\r\n\r\n const handleRenderComponent = (stepType: \"default\" | \"custom\") => {\r\n switch (stepType) {\r\n case \"default\":\r\n return <StepDefault />;\r\n case \"custom\":\r\n return <StepCustom />;\r\n default:\r\n return <View />;\r\n }\r\n };\r\n\r\n return <>{handleRenderComponent(type!)}</>;\r\n};\r\n\r\n/**\r\n * EXPORTS\r\n */\r\nexport { StepIndicator };\r\n"],"mappings":"AAAA;AACA;AACA;AACA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,EAAEC,IAAI,QAAQ,cAAc;AAEzC,SAASC,iBAAiB,QAAQ,8BAA8B;;AAEhE;;AAGA;AACA,SAASC,MAAM,QAAQ,UAAU;AACjC,SAASC,KAAK,QAAQ,wBAAwB;AAC9C,SAASC,eAAe,QAAQ,yBAAyB;AACzD,SAASC,KAAK,QAAQ,0BAA0B;AAChD,SAASC,mBAAmB,QAAQ,0BAA0B;;AAE9D;AACA;AACA;;AAEA,MAAMC,aAAuC,GAAGA,CAAC;EAC/CC,IAAI,GAAG,EAAE;EACTC,IAAI;EACJC,oBAAoB;EACpBC,UAAU;EACVC;AACF,CAAC,KAAK;EACJ,MAAMC,WAAW,GAAGA,CAAA,KAAM;IAAA,IAAAC,SAAA;IACxB,MAAM,CAACC,cAAc,EAAEC,iBAAiB,CAAC,GAAGlB,KAAK,CAACmB,QAAQ,CAAC,KAAK,CAAC;IACjE,MAAM,CAACC,gBAAgB,EAAEC,mBAAmB,CAAC,GAAGrB,KAAK,CAACmB,QAAQ,CAAgB,IAAI,CAAC;IACnF,MAAM,CAACG,QAAQ,EAAEC,WAAW,CAAC,GAAGvB,KAAK,CAACmB,QAAQ,CAACT,IAAI,CAAC;IAEpD,MAAMc,eAAe,GAAIC,KAAa,IAAK;MAAA,IAAAC,mBAAA,EAAAC,qBAAA;MACzC,MAAMC,QAAQ,GAAGN,QAAQ,CAACG,KAAK,CAAC;MAChC,MAAMI,IAAI,GAAGD,QAAQ,aAARA,QAAQ,gBAAAF,mBAAA,GAARE,QAAQ,CAAEE,SAAS,cAAAJ,mBAAA,gBAAAC,qBAA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jDjD,KAAA,CAAA+C,aAAA,CAAC9C,IAAI;QACHmD,KAAK,EAAE;UACLI,KAAK,EAAE,EAAE;UACTC,MAAM,EAAE,CAAC;UACTC,SAAS,EAAE,EAAE;UACbC,QAAQ,EAAE,UAAU;UACpBC,eAAe,EAAE;QACnB;MAAE,CACH,CAEW,CAAC;IAErB,CAAC,CACG,CAAC;EAEX,CAAC;EAED,MAAMkC,qBAAqB,GAAIC,QAA8B,IAAK;IAChE,QAAQA,QAAQ;MACd,KAAK,SAAS;QACZ,oBAAO/F,KAAA,CAAA+C,aAAA,CAAChC,WAAW,MAAE,CAAC;MACxB,KAAK,QAAQ;QACX,oBAAOf,KAAA,CAAA+C,aAAA,CAAC6B,UAAU,MAAE,CAAC;MACvB;QACE,oBAAO5E,KAAA,CAAA+C,aAAA,CAAC9C,IAAI,MAAE,CAAC;IACnB;EACF,CAAC;EAED,oBAAOD,KAAA,CAAA+C,aAAA,CAAA/C,KAAA,CAAAgD,QAAA,QAAG8C,qBAAqB,CAACnF,IAAK,CAAI,CAAC;AAC5C,CAAC;;AAED;AACA;AACA;AACA,SAASF,aAAa","ignoreList":[]}
@@ -5,7 +5,7 @@ import React from "react";
5
5
  import { Image, TouchableOpacity } from "react-native";
6
6
 
7
7
  // components
8
- import { Box } from "../box";
8
+ import Box from "../box";
9
9
  import { Typography } from "../typography";
10
10
 
11
11
  // comons / constants
@@ -1 +1 @@
1
- {"version":3,"names":["React","Image","TouchableOpacity","Box","Typography","IMAGES","theme","UserProfile","nome","avatar","cpf","placa_cavalo","bluetoothIsConnected","app_version","color","width","height","handleProfileView","testID","_color$colorText","_theme$fontSizes$lg","_color$colorText2","_theme$fontSizes$lg2","_color$colorText3","_theme$fontSizes$lg3","_color$colorText4","_theme$fontSizes$lg4","_color$colorText5","_theme$fontSizes$lg5","_theme$fontSizes$lg6","_color$colorText6","_theme$fontSizes$lg7","_color$colorText7","_theme$fontSizes$lg8","createElement","backgroundColor","colors","blue","paddingStyle","paddingLeft","paddings","md","paddingRight","paddingBottom","flexStyle","flexDirection","alignItems","justifyContent","marginStyle","marginTop","margins","activeOpacity","onPress","source","uri","IMAGE_ANONIMA","style","borderRadius","borderWidth","borderWidths","thin_medium","borderColor","green","textAlign","paddingTop","text","colorText","neutral","size","fontSizes","fontFamily","fonts","inter_regular_400","fontWeight","lineHeight","lg","letterSpacing","sm","ellipsizeMode","numberOfLines","inter_semi_bold_600","inter_medium_500","inter_bold_700","inter_light_300"],"sources":["index.tsx"],"sourcesContent":["/**\n * IMPORTS\n */\nimport React from \"react\";\nimport { Image, TouchableOpacity } from \"react-native\";\n\n// components\nimport { Box } from \"../box\";\nimport { Typography } from \"../typography\";\n\n// comons / constants\nimport { IMAGES } from \"../../common/constants\";\n\n// typings\nimport { IUserProfile } from \"./interface\";\n\n// styles\nimport { theme } from \"../../styles/theme/theme\";\n\n/**\n * Componente Header para a interação do usuário com ui.\n */\nconst UserProfile: React.FC<IUserProfile> = ({\n nome,\n avatar,\n cpf,\n placa_cavalo,\n bluetoothIsConnected,\n app_version,\n color,\n width,\n height,\n handleProfileView,\n testID,\n}: IUserProfile) => {\n return (\n <Box\n testID={testID}\n width={width ?? \"100%\"}\n height={height}\n backgroundColor={theme.colors.blue[525]}\n paddingStyle={{\n paddingLeft: theme.paddings.md,\n paddingRight: theme.paddings.md,\n paddingBottom: theme.paddings[\"2xs\"],\n }}\n >\n <Box\n width={\"100%\"}\n flexStyle={{ flexDirection: \"row\", alignItems: \"center\", justifyContent: \"center\" }}\n marginStyle={{ marginTop: theme.margins.md }}\n >\n <TouchableOpacity activeOpacity={0.7} onPress={handleProfileView}>\n <Image\n testID=\"user-profile-avatar\"\n source={{\n uri: avatar || IMAGES.IMAGE_ANONIMA,\n }}\n style={{\n width: 120,\n height: 120,\n borderRadius: 60,\n borderWidth: theme.borderWidths.thin_medium,\n borderColor: theme.colors.green[400],\n }}\n />\n </TouchableOpacity>\n </Box>\n\n <Box\n width={\"100%\"}\n flexStyle={{ flexDirection: \"column\", alignItems: \"center\", justifyContent: \"center\" }}\n >\n <Box\n width={\"100%\"}\n flexStyle={{\n flexDirection: \"row\",\n alignItems: \"center\",\n justifyContent: \"flex-start\",\n textAlign: \"center\",\n }}\n paddingStyle={{ paddingTop: theme.paddings[\"2xs\"] }}\n >\n <Typography\n text={\"Olá, \"}\n color={color?.colorText ?? theme.colors.neutral[25]}\n size={theme.fontSizes.md}\n fontFamily={theme.fonts.inter_regular_400}\n fontWeight=\"400\"\n lineHeight={theme.fontSizes.lg ?? 18}\n letterSpacing={\"regular\"}\n />\n <Box width={\"89%\"}>\n <Typography\n text={nome}\n color={color?.colorText ?? theme.colors.neutral[25]}\n size={theme.fontSizes.sm}\n fontFamily=\"inter_medium_500\"\n fontWeight=\"500\"\n ellipsizeMode=\"tail\"\n numberOfLines={1}\n lineHeight={theme.fontSizes.lg ?? 18}\n letterSpacing={\"regular\"}\n />\n </Box>\n </Box>\n <Box\n width={\"100%\"}\n flexStyle={{\n flexDirection: \"row\",\n alignItems: \"center\",\n justifyContent: \"flex-start\",\n textAlign: \"center\",\n }}\n paddingStyle={{ paddingTop: 5 }}\n >\n <Typography\n text={\"CPF: \"}\n color={color?.colorText ?? theme.colors.neutral[25]}\n size={theme.fontSizes.md}\n fontFamily={theme.fonts.inter_regular_400}\n lineHeight={theme.fontSizes.lg ?? 18}\n letterSpacing={\"regular\"}\n />\n\n <Typography\n text={cpf}\n color={color?.colorText ?? theme.colors.neutral[25]}\n size={theme.fontSizes.sm}\n fontFamily={theme.fonts.inter_semi_bold_600}\n fontWeight=\"600\"\n lineHeight={theme.fontSizes.lg ?? 18}\n letterSpacing={\"regular\"}\n />\n </Box>\n <Box\n width={\"100%\"}\n flexStyle={{\n flexDirection: \"row\",\n alignItems: \"center\",\n justifyContent: \"flex-start\",\n textAlign: \"center\",\n }}\n paddingStyle={{ paddingTop: 5 }}\n >\n <Typography\n text={\"CONECTADO: \"}\n color={color?.colorText ?? theme.colors.neutral[25]}\n size={theme.fontSizes.sm}\n fontFamily={theme.fonts.inter_medium_500}\n fontWeight=\"500\"\n lineHeight={theme.fontSizes.lg ?? 18}\n letterSpacing={\"regular\"}\n />\n\n <Typography\n text={bluetoothIsConnected ? placa_cavalo : \"\"}\n color={theme.colors.green[400]}\n size={theme.fontSizes.sm}\n fontFamily={theme.fonts.inter_bold_700}\n fontWeight=\"700\"\n lineHeight={theme.fontSizes.lg ?? 18}\n letterSpacing={\"regular\"}\n />\n </Box>\n </Box>\n\n <Box\n width={\"100%\"}\n flexStyle={{\n flexDirection: \"row\",\n alignItems: \"center\",\n justifyContent: \"flex-end\",\n }}\n marginStyle={{ marginTop: theme.margins.md }}\n >\n <Typography\n text={\"Versão: \"}\n color={color?.colorText ?? theme.colors.neutral[25]}\n size={theme.fontSizes.md}\n fontFamily={theme.fonts.inter_regular_400}\n fontWeight=\"400\"\n lineHeight={theme.fontSizes.lg ?? 18}\n letterSpacing={\"regular\"}\n />\n\n <Typography\n text={app_version}\n color={color?.colorText ?? theme.colors.neutral[25]}\n size={theme.fontSizes.sm}\n fontWeight=\"300\"\n fontFamily={theme.fonts.inter_light_300}\n lineHeight={theme.fontSizes.lg ?? 18}\n letterSpacing={\"regular\"}\n />\n </Box>\n </Box>\n );\n};\n\n/**\n * EXPORTS\n */\nexport { UserProfile };\n"],"mappings":"AAAA;AACA;AACA;AACA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,KAAK,EAAEC,gBAAgB,QAAQ,cAAc;;AAEtD;AACA,SAASC,GAAG,QAAQ,QAAQ;AAC5B,SAASC,UAAU,QAAQ,eAAe;;AAE1C;AACA,SAASC,MAAM,QAAQ,wBAAwB;;AAE/C;;AAGA;AACA,SAASC,KAAK,QAAQ,0BAA0B;;AAEhD;AACA;AACA;AACA,MAAMC,WAAmC,GAAGA,CAAC;EAC3CC,IAAI;EACJC,MAAM;EACNC,GAAG;EACHC,YAAY;EACZC,oBAAoB;EACpBC,WAAW;EACXC,KAAK;EACLC,KAAK;EACLC,MAAM;EACN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ACiE,KAAK,CAACC,iBAAkB;IAC1CC,UAAU,EAAC,KAAK;IAChBC,UAAU,GAAA3C,oBAAA,GAAEzB,KAAK,CAAC+D,SAAS,CAACM,EAAE,cAAA5C,oBAAA,cAAAA,oBAAA,GAAI,EAAG;IACrC6C,aAAa,EAAE;EAAU,CAC1B,CAAC,eAEF5E,KAAA,CAAAkC,aAAA,CAAC9B,UAAU;IACT6D,IAAI,EAAEpD,WAAY;IAClBC,KAAK,GAAAkB,iBAAA,GAAElB,KAAK,aAALA,KAAK,uBAALA,KAAK,CAAEoD,SAAS,cAAAlC,iBAAA,cAAAA,iBAAA,GAAI1B,KAAK,CAAC8B,MAAM,CAAC+B,OAAO,CAAC,EAAE,CAAE;IACpDC,IAAI,EAAE9D,KAAK,CAAC+D,SAAS,CAACQ,EAAG;IACzBJ,UAAU,EAAC,KAAK;IAChBH,UAAU,EAAEhE,KAAK,CAACiE,KAAK,CAACY,eAAgB;IACxCT,UAAU,GAAAzC,oBAAA,GAAE3B,KAAK,CAAC+D,SAAS,CAACM,EAAE,cAAA1C,oBAAA,cAAAA,oBAAA,GAAI,EAAG;IACrC2C,aAAa,EAAE;EAAU,CAC1B,CACE,CACF,CAAC;AAEV,CAAC;;AAED;AACA;AACA;AACA,SAASrE,WAAW","ignoreList":[]}
1
+ {"version":3,"names":["React","Image","TouchableOpacity","Box","Typography","IMAGES","theme","UserProfile","nome","avatar","cpf","placa_cavalo","bluetoothIsConnected","app_version","color","width","height","handleProfileView","testID","_color$colorText","_theme$fontSizes$lg","_color$colorText2","_theme$fontSizes$lg2","_color$colorText3","_theme$fontSizes$lg3","_color$colorText4","_theme$fontSizes$lg4","_color$colorText5","_theme$fontSizes$lg5","_theme$fontSizes$lg6","_color$colorText6","_theme$fontSizes$lg7","_color$colorText7","_theme$fontSizes$lg8","createElement","backgroundColor","colors","blue","paddingStyle","paddingLeft","paddings","md","paddingRight","paddingBottom","flexStyle","flexDirection","alignItems","justifyContent","marginStyle","marginTop","margins","activeOpacity","onPress","source","uri","IMAGE_ANONIMA","style","borderRadius","borderWidth","borderWidths","thin_medium","borderColor","green","textAlign","paddingTop","text","colorText","neutral","size","fontSizes","fontFamily","fonts","inter_regular_400","fontWeight","lineHeight","lg","letterSpacing","sm","ellipsizeMode","numberOfLines","inter_semi_bold_600","inter_medium_500","inter_bold_700","inter_light_300"],"sources":["index.tsx"],"sourcesContent":["/**\n * IMPORTS\n */\nimport React from \"react\";\nimport { Image, TouchableOpacity } from \"react-native\";\n\n// components\nimport Box from \"../box\";\nimport { Typography } from \"../typography\";\n\n// comons / constants\nimport { IMAGES } from \"../../common/constants\";\n\n// typings\nimport { IUserProfile } from \"./interface\";\n\n// styles\nimport { theme } from \"../../styles/theme/theme\";\n\n/**\n * Componente Header para a interação do usuário com ui.\n */\nconst UserProfile: React.FC<IUserProfile> = ({\n nome,\n avatar,\n cpf,\n placa_cavalo,\n bluetoothIsConnected,\n app_version,\n color,\n width,\n height,\n handleProfileView,\n testID,\n}: IUserProfile) => {\n return (\n <Box\n testID={testID}\n width={width ?? \"100%\"}\n height={height}\n backgroundColor={theme.colors.blue[525]}\n paddingStyle={{\n paddingLeft: theme.paddings.md,\n paddingRight: theme.paddings.md,\n paddingBottom: theme.paddings[\"2xs\"],\n }}\n >\n <Box\n width={\"100%\"}\n flexStyle={{ flexDirection: \"row\", alignItems: \"center\", justifyContent: \"center\" }}\n marginStyle={{ marginTop: theme.margins.md }}\n >\n <TouchableOpacity activeOpacity={0.7} onPress={handleProfileView}>\n <Image\n testID=\"user-profile-avatar\"\n source={{\n uri: avatar || IMAGES.IMAGE_ANONIMA,\n }}\n style={{\n width: 120,\n height: 120,\n borderRadius: 60,\n borderWidth: theme.borderWidths.thin_medium,\n borderColor: theme.colors.green[400],\n }}\n />\n </TouchableOpacity>\n </Box>\n\n <Box\n width={\"100%\"}\n flexStyle={{ flexDirection: \"column\", alignItems: \"center\", justifyContent: \"center\" }}\n >\n <Box\n width={\"100%\"}\n flexStyle={{\n flexDirection: \"row\",\n alignItems: \"center\",\n justifyContent: \"flex-start\",\n textAlign: \"center\",\n }}\n paddingStyle={{ paddingTop: theme.paddings[\"2xs\"] }}\n >\n <Typography\n text={\"Olá, \"}\n color={color?.colorText ?? theme.colors.neutral[25]}\n size={theme.fontSizes.md}\n fontFamily={theme.fonts.inter_regular_400}\n fontWeight=\"400\"\n lineHeight={theme.fontSizes.lg ?? 18}\n letterSpacing={\"regular\"}\n />\n <Box width={\"89%\"}>\n <Typography\n text={nome}\n color={color?.colorText ?? theme.colors.neutral[25]}\n size={theme.fontSizes.sm}\n fontFamily=\"inter_medium_500\"\n fontWeight=\"500\"\n ellipsizeMode=\"tail\"\n numberOfLines={1}\n lineHeight={theme.fontSizes.lg ?? 18}\n letterSpacing={\"regular\"}\n />\n </Box>\n </Box>\n <Box\n width={\"100%\"}\n flexStyle={{\n flexDirection: \"row\",\n alignItems: \"center\",\n justifyContent: \"flex-start\",\n textAlign: \"center\",\n }}\n paddingStyle={{ paddingTop: 5 }}\n >\n <Typography\n text={\"CPF: \"}\n color={color?.colorText ?? theme.colors.neutral[25]}\n size={theme.fontSizes.md}\n fontFamily={theme.fonts.inter_regular_400}\n lineHeight={theme.fontSizes.lg ?? 18}\n letterSpacing={\"regular\"}\n />\n\n <Typography\n text={cpf}\n color={color?.colorText ?? theme.colors.neutral[25]}\n size={theme.fontSizes.sm}\n fontFamily={theme.fonts.inter_semi_bold_600}\n fontWeight=\"600\"\n lineHeight={theme.fontSizes.lg ?? 18}\n letterSpacing={\"regular\"}\n />\n </Box>\n <Box\n width={\"100%\"}\n flexStyle={{\n flexDirection: \"row\",\n alignItems: \"center\",\n justifyContent: \"flex-start\",\n textAlign: \"center\",\n }}\n paddingStyle={{ paddingTop: 5 }}\n >\n <Typography\n text={\"CONECTADO: \"}\n color={color?.colorText ?? theme.colors.neutral[25]}\n size={theme.fontSizes.sm}\n fontFamily={theme.fonts.inter_medium_500}\n fontWeight=\"500\"\n lineHeight={theme.fontSizes.lg ?? 18}\n letterSpacing={\"regular\"}\n />\n\n <Typography\n text={bluetoothIsConnected ? placa_cavalo : \"\"}\n color={theme.colors.green[400]}\n size={theme.fontSizes.sm}\n fontFamily={theme.fonts.inter_bold_700}\n fontWeight=\"700\"\n lineHeight={theme.fontSizes.lg ?? 18}\n letterSpacing={\"regular\"}\n />\n </Box>\n </Box>\n\n <Box\n width={\"100%\"}\n flexStyle={{\n flexDirection: \"row\",\n alignItems: \"center\",\n justifyContent: \"flex-end\",\n }}\n marginStyle={{ marginTop: theme.margins.md }}\n >\n <Typography\n text={\"Versão: \"}\n color={color?.colorText ?? theme.colors.neutral[25]}\n size={theme.fontSizes.md}\n fontFamily={theme.fonts.inter_regular_400}\n fontWeight=\"400\"\n lineHeight={theme.fontSizes.lg ?? 18}\n letterSpacing={\"regular\"}\n />\n\n <Typography\n text={app_version}\n color={color?.colorText ?? theme.colors.neutral[25]}\n size={theme.fontSizes.sm}\n fontWeight=\"300\"\n fontFamily={theme.fonts.inter_light_300}\n lineHeight={theme.fontSizes.lg ?? 18}\n letterSpacing={\"regular\"}\n />\n </Box>\n </Box>\n );\n};\n\n/**\n * EXPORTS\n */\nexport { UserProfile };\n"],"mappings":"AAAA;AACA;AACA;AACA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,KAAK,EAAEC,gBAAgB,QAAQ,cAAc;;AAEtD;AACA,OAAOC,GAAG,MAAM,QAAQ;AACxB,SAASC,UAAU,QAAQ,eAAe;;AAE1C;AACA,SAASC,MAAM,QAAQ,wBAAwB;;AAE/C;;AAGA;AACA,SAASC,KAAK,QAAQ,0BAA0B;;AAEhD;AACA;AACA;AACA,MAAMC,WAAmC,GAAGA,CAAC;EAC3CC,IAAI;EACJC,MAAM;EACNC,GAAG;EACHC,YAAY;EACZC,oBAAoB;EACpBC,WAAW;EACXC,KAAK;EACLC,KAAK;EACLC,MAAM;EACNC,iBAAiB;EACjBC;AACY,CAAC,KAAK;EAAA,IAAAC,gBAAA,EAAAC,mBAAA,EAA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oBAAA,GAAEzB,KAAK,CAAC+D,SAAS,CAACM,EAAE,cAAA5C,oBAAA,cAAAA,oBAAA,GAAI,EAAG;IACrC6C,aAAa,EAAE;EAAU,CAC1B,CAAC,eAEF5E,KAAA,CAAAkC,aAAA,CAAC9B,UAAU;IACT6D,IAAI,EAAEpD,WAAY;IAClBC,KAAK,GAAAkB,iBAAA,GAAElB,KAAK,aAALA,KAAK,uBAALA,KAAK,CAAEoD,SAAS,cAAAlC,iBAAA,cAAAA,iBAAA,GAAI1B,KAAK,CAAC8B,MAAM,CAAC+B,OAAO,CAAC,EAAE,CAAE;IACpDC,IAAI,EAAE9D,KAAK,CAAC+D,SAAS,CAACQ,EAAG;IACzBJ,UAAU,EAAC,KAAK;IAChBH,UAAU,EAAEhE,KAAK,CAACiE,KAAK,CAACY,eAAgB;IACxCT,UAAU,GAAAzC,oBAAA,GAAE3B,KAAK,CAAC+D,SAAS,CAACM,EAAE,cAAA1C,oBAAA,cAAAA,oBAAA,GAAI,EAAG;IACrC2C,aAAa,EAAE;EAAU,CAC1B,CACE,CACF,CAAC;AAEV,CAAC;;AAED;AACA;AACA;AACA,SAASrE,WAAW","ignoreList":[]}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Função para limitar a quantidade de caracteres de um texto
3
+ * @param text - O texto a ser limitado
4
+ * @param maxLength - Número máximo de caracteres (padrão: 20)
5
+ * @returns Texto limitado com "..." se exceder o limite
6
+ */
7
+ export const truncateText = (text, maxLength = 20) => {
8
+ if (!text) return "";
9
+ if (text.length <= maxLength) {
10
+ return text;
11
+ }
12
+ return text.substring(0, maxLength) + "...";
13
+ };
14
+ //# sourceMappingURL=text-utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["truncateText","text","maxLength","length","substring"],"sources":["text-utils.ts"],"sourcesContent":["/**\r\n * Função para limitar a quantidade de caracteres de um texto\r\n * @param text - O texto a ser limitado\r\n * @param maxLength - Número máximo de caracteres (padrão: 20)\r\n * @returns Texto limitado com \"...\" se exceder o limite\r\n */\r\nexport const truncateText = (text: string, maxLength: number = 20): string => {\r\n if (!text) return \"\";\r\n\r\n if (text.length <= maxLength) {\r\n return text;\r\n }\r\n\r\n return text.substring(0, maxLength) + \"...\";\r\n};\r\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMA,YAAY,GAAGA,CAACC,IAAY,EAAEC,SAAiB,GAAG,EAAE,KAAa;EAC5E,IAAI,CAACD,IAAI,EAAE,OAAO,EAAE;EAEpB,IAAIA,IAAI,CAACE,MAAM,IAAID,SAAS,EAAE;IAC5B,OAAOD,IAAI;EACb;EAEA,OAAOA,IAAI,CAACG,SAAS,CAAC,CAAC,EAAEF,SAAS,CAAC,GAAG,KAAK;AAC7C,CAAC","ignoreList":[]}
@@ -3,7 +3,7 @@
3
3
  */
4
4
 
5
5
  // Components
6
- export { Box } from "./components/box";
6
+ export { default as Box } from "./components/box";
7
7
  export { Button } from "./components/button";
8
8
  export { StepIndicator } from "./components/step-indicator";
9
9
  export { Typography } from "./components/typography";
@@ -34,6 +34,8 @@ export { ActivitiesDaily } from "./components/activities-daily";
34
34
  export { ActivitiesProgress } from "./components/activities-progress";
35
35
  export { ProfileMenuOption } from "./components/profile-menu-option";
36
36
  export { ModalActivities } from "./components/modal-activities";
37
+ export { HistoryActivitiesCard } from "./components/history-activities-card";
38
+ export { ModalChangeActivity } from "./components/modal-change-activity";
37
39
 
38
40
  // Utilities
39
41
  export { multiply } from "./utils/mutiply";
@@ -1 +1 @@
1
- {"version":3,"names":["Box","Button","StepIndicator","Typography","Input","CapturePhoto","CardHours","SelectOption","Header","ScheduledJourneyIndicators","CardScheduledJourney","UserProfile","MenuItem","CardLoading","CardWorkSession","LoadingProgress","NoData","FilterJourney","Coil","FilterDateSelector","CardHistory","NotificationLoading","CheckBox","ImageCaptureWithRemove","LoadingDetails","AvatarProfile","HistoryDetails","ActivitiesDaily","ActivitiesProgress","ProfileMenuOption","ModalActivities","multiply","formatDate","getLastSevenDays","formHoursMinute","theme"],"sources":["index.ts"],"sourcesContent":["/**\n * EXPORTS\n */\n\n// Components\nexport { Box } from \"./components/box\";\nexport { Button } from \"./components/button\";\nexport { StepIndicator } from \"./components/step-indicator\";\nexport { Typography } from \"./components/typography\";\nexport { Input } from \"./components/input\";\nexport { CapturePhoto } from \"./components/capture-photo\";\nexport { CardHours } from \"./components/card-hours\";\nexport { SelectOption } from \"./components/selects/select-option\";\nexport { Header } from \"./components/header-profile\";\nexport { ScheduledJourneyIndicators } from \"./components/scheduled-journey-indicators\";\nexport { CardScheduledJourney } from \"./components/card-scheduled-journey\";\nexport { UserProfile } from \"./components/user-profile\";\nexport { MenuItem } from \"./components/menu-item\";\nexport { CardLoading } from \"./components/card-loading\";\nexport { CardWorkSession } from \"./components/card-work-session\";\nexport { LoadingProgress } from \"./components/loading-progress\";\nexport { NoData } from \"./components/no-data\";\nexport { FilterJourney } from \"./components/filter-journey\";\nexport { Coil } from \"./components/coil\";\nexport { FilterDateSelector } from \"./components/filter-date-selector\";\nexport { CardHistory } from \"./components/card-history\";\nexport { NotificationLoading } from \"./components/notification-loading\";\nexport { CheckBox } from \"./components/check-box\";\nexport { ImageCaptureWithRemove } from \"./components/image-capture-with-remove\";\nexport { LoadingDetails } from \"./components/loading-details\";\nexport { AvatarProfile } from \"./components/avatar-profile\";\nexport { HistoryDetails } from \"./components/history-details\";\nexport { ActivitiesDaily } from \"./components/activities-daily\";\nexport { ActivitiesProgress } from \"./components/activities-progress\";\nexport { ProfileMenuOption } from \"./components/profile-menu-option\";\nexport { ModalActivities } from \"./components/modal-activities\";\n\n// Utilities\nexport { multiply } from \"./utils/mutiply\";\nexport { formatDate, getLastSevenDays, formHoursMinute } from \"./utils/format-data\";\n\n// Styles\nexport { theme } from \"./styles/theme/theme\";\n"],"mappings":"AAAA;AACA;AACA;;AAEA;AACA,SAASA,GAAG,QAAQ,kBAAkB;AACtC,SAASC,MAAM,QAAQ,qBAAqB;AAC5C,SAASC,aAAa,QAAQ,6BAA6B;AAC3D,SAASC,UAAU,QAAQ,yBAAyB;AACpD,SAASC,KAAK,QAAQ,oBAAoB;AAC1C,SAASC,YAAY,QAAQ,4BAA4B;AACzD,SAASC,SAAS,QAAQ,yBAAyB;AACnD,SAASC,YAAY,QAAQ,oCAAoC;AACjE,SAASC,MAAM,QAAQ,6BAA6B;AACpD,SAASC,0BAA0B,QAAQ,2CAA2C;AACtF,SAASC,oBAAoB,QAAQ,qCAAqC;AAC1E,SAASC,WAAW,QAAQ,2BAA2B;AACvD,SAASC,QAAQ,QAAQ,wBAAwB;AACjD,SAASC,WAAW,QAAQ,2BAA2B;AACvD,SAASC,eAAe,QAAQ,gCAAgC;AAChE,SAASC,eAAe,QAAQ,+BAA+B;AAC/D,SAASC,MAAM,QAAQ,sBAAsB;AAC7C,SAASC,aAAa,QAAQ,6BAA6B;AAC3D,SAASC,IAAI,QAAQ,mBAAmB;AACxC,SAASC,kBAAkB,QAAQ,mCAAmC;AACtE,SAASC,WAAW,QAAQ,2BAA2B;AACvD,SAASC,mBAAmB,QAAQ,mCAAmC;AACvE,SAASC,QAAQ,QAAQ,wBAAwB;AACjD,SAASC,sBAAsB,QAAQ,wCAAwC;AAC/E,SAASC,cAAc,QAAQ,8BAA8B;AAC7D,SAASC,aAAa,QAAQ,6BAA6B;AAC3D,SAASC,cAAc,QAAQ,8BAA8B;AAC7D,SAASC,eAAe,QAAQ,+BAA+B;AAC/D,SAASC,kBAAkB,QAAQ,kCAAkC;AACrE,SAASC,iBAAiB,QAAQ,kCAAkC;AACpE,SAASC,eAAe,QAAQ,+BAA+B;;AAE/D;AACA,SAASC,QAAQ,QAAQ,iBAAiB;AAC1C,SAASC,UAAU,EAAEC,gBAAgB,EAAEC,eAAe,QAAQ,qBAAqB;;AAEnF;AACA,SAASC,KAAK,QAAQ,sBAAsB","ignoreList":[]}
1
+ {"version":3,"names":["default","Box","Button","StepIndicator","Typography","Input","CapturePhoto","CardHours","SelectOption","Header","ScheduledJourneyIndicators","CardScheduledJourney","UserProfile","MenuItem","CardLoading","CardWorkSession","LoadingProgress","NoData","FilterJourney","Coil","FilterDateSelector","CardHistory","NotificationLoading","CheckBox","ImageCaptureWithRemove","LoadingDetails","AvatarProfile","HistoryDetails","ActivitiesDaily","ActivitiesProgress","ProfileMenuOption","ModalActivities","HistoryActivitiesCard","ModalChangeActivity","multiply","formatDate","getLastSevenDays","formHoursMinute","theme"],"sources":["index.ts"],"sourcesContent":["/**\n * EXPORTS\n */\n\n// Components\nexport { default as Box } from \"./components/box\";\nexport { Button } from \"./components/button\";\nexport { StepIndicator } from \"./components/step-indicator\";\nexport { Typography } from \"./components/typography\";\nexport { Input } from \"./components/input\";\nexport { CapturePhoto } from \"./components/capture-photo\";\nexport { CardHours } from \"./components/card-hours\";\nexport { SelectOption } from \"./components/selects/select-option\";\nexport { Header } from \"./components/header-profile\";\nexport { ScheduledJourneyIndicators } from \"./components/scheduled-journey-indicators\";\nexport { CardScheduledJourney } from \"./components/card-scheduled-journey\";\nexport { UserProfile } from \"./components/user-profile\";\nexport { MenuItem } from \"./components/menu-item\";\nexport { CardLoading } from \"./components/card-loading\";\nexport { CardWorkSession } from \"./components/card-work-session\";\nexport { LoadingProgress } from \"./components/loading-progress\";\nexport { NoData } from \"./components/no-data\";\nexport { FilterJourney } from \"./components/filter-journey\";\nexport { Coil } from \"./components/coil\";\nexport { FilterDateSelector } from \"./components/filter-date-selector\";\nexport { CardHistory } from \"./components/card-history\";\nexport { NotificationLoading } from \"./components/notification-loading\";\nexport { CheckBox } from \"./components/check-box\";\nexport { ImageCaptureWithRemove } from \"./components/image-capture-with-remove\";\nexport { LoadingDetails } from \"./components/loading-details\";\nexport { AvatarProfile } from \"./components/avatar-profile\";\nexport { HistoryDetails } from \"./components/history-details\";\nexport { ActivitiesDaily } from \"./components/activities-daily\";\nexport { ActivitiesProgress } from \"./components/activities-progress\";\nexport { ProfileMenuOption } from \"./components/profile-menu-option\";\nexport { ModalActivities } from \"./components/modal-activities\";\nexport { HistoryActivitiesCard } from \"./components/history-activities-card\";\nexport { ModalChangeActivity } from \"./components/modal-change-activity\";\n\n// Utilities\nexport { multiply } from \"./utils/mutiply\";\nexport { formatDate, getLastSevenDays, formHoursMinute } from \"./utils/format-data\";\n\n// Styles\nexport { theme } from \"./styles/theme/theme\";\n"],"mappings":"AAAA;AACA;AACA;;AAEA;AACA,SAASA,OAAO,IAAIC,GAAG,QAAQ,kBAAkB;AACjD,SAASC,MAAM,QAAQ,qBAAqB;AAC5C,SAASC,aAAa,QAAQ,6BAA6B;AAC3D,SAASC,UAAU,QAAQ,yBAAyB;AACpD,SAASC,KAAK,QAAQ,oBAAoB;AAC1C,SAASC,YAAY,QAAQ,4BAA4B;AACzD,SAASC,SAAS,QAAQ,yBAAyB;AACnD,SAASC,YAAY,QAAQ,oCAAoC;AACjE,SAASC,MAAM,QAAQ,6BAA6B;AACpD,SAASC,0BAA0B,QAAQ,2CAA2C;AACtF,SAASC,oBAAoB,QAAQ,qCAAqC;AAC1E,SAASC,WAAW,QAAQ,2BAA2B;AACvD,SAASC,QAAQ,QAAQ,wBAAwB;AACjD,SAASC,WAAW,QAAQ,2BAA2B;AACvD,SAASC,eAAe,QAAQ,gCAAgC;AAChE,SAASC,eAAe,QAAQ,+BAA+B;AAC/D,SAASC,MAAM,QAAQ,sBAAsB;AAC7C,SAASC,aAAa,QAAQ,6BAA6B;AAC3D,SAASC,IAAI,QAAQ,mBAAmB;AACxC,SAASC,kBAAkB,QAAQ,mCAAmC;AACtE,SAASC,WAAW,QAAQ,2BAA2B;AACvD,SAASC,mBAAmB,QAAQ,mCAAmC;AACvE,SAASC,QAAQ,QAAQ,wBAAwB;AACjD,SAASC,sBAAsB,QAAQ,wCAAwC;AAC/E,SAASC,cAAc,QAAQ,8BAA8B;AAC7D,SAASC,aAAa,QAAQ,6BAA6B;AAC3D,SAASC,cAAc,QAAQ,8BAA8B;AAC7D,SAASC,eAAe,QAAQ,+BAA+B;AAC/D,SAASC,kBAAkB,QAAQ,kCAAkC;AACrE,SAASC,iBAAiB,QAAQ,kCAAkC;AACpE,SAASC,eAAe,QAAQ,+BAA+B;AAC/D,SAASC,qBAAqB,QAAQ,sCAAsC;AAC5E,SAASC,mBAAmB,QAAQ,oCAAoC;;AAExE;AACA,SAASC,QAAQ,QAAQ,iBAAiB;AAC1C,SAASC,UAAU,EAAEC,gBAAgB,EAAEC,eAAe,QAAQ,qBAAqB;;AAEnF;AACA,SAASC,KAAK,QAAQ,sBAAsB","ignoreList":[]}
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
2
  // components
3
- import { Box } from "../../components/box";
3
+ import Box from "../../components/box";
4
4
  import { Typography } from "../../components/typography";
5
5
 
6
6
  // styles