jornada-ui 0.4.11 → 0.4.13

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 (447) hide show
  1. package/README.md +31 -31
  2. package/lib/commonjs/common/icons-svg/bluetooth/index.js +45 -27
  3. package/lib/commonjs/common/icons-svg/bluetooth/index.js.map +1 -1
  4. package/lib/commonjs/common/icons-svg/constants/index.js +7 -5
  5. package/lib/commonjs/common/icons-svg/constants/index.js.map +1 -1
  6. package/lib/commonjs/common/icons-svg/index.js +19 -4
  7. package/lib/commonjs/common/icons-svg/index.js.map +1 -1
  8. package/lib/commonjs/common/icons-svg/plus-container/index.js +42 -0
  9. package/lib/commonjs/common/icons-svg/plus-container/index.js.map +1 -0
  10. package/lib/commonjs/common/icons-svg/trash/index.js +41 -0
  11. package/lib/commonjs/common/icons-svg/trash/index.js.map +1 -0
  12. package/lib/commonjs/components/activity-step/components/activite-row/index.js +137 -0
  13. package/lib/commonjs/components/activity-step/components/activite-row/index.js.map +1 -0
  14. package/lib/commonjs/components/activity-step/index.js +77 -0
  15. package/lib/commonjs/components/activity-step/index.js.map +1 -0
  16. package/lib/commonjs/components/activity-step/interface.js +6 -0
  17. package/lib/commonjs/components/activity-step/interface.js.map +1 -0
  18. package/lib/commonjs/components/activity-step/styles.js +86 -0
  19. package/lib/commonjs/components/activity-step/styles.js.map +1 -0
  20. package/lib/commonjs/components/card-scheduled-journey/index.js +8 -6
  21. package/lib/commonjs/components/card-scheduled-journey/index.js.map +1 -1
  22. package/lib/commonjs/components/coil-removel-code/index.js +4 -3
  23. package/lib/commonjs/components/coil-removel-code/index.js.map +1 -1
  24. package/lib/commonjs/components/inputs/input-date-time/index.js +136 -0
  25. package/lib/commonjs/components/inputs/input-date-time/index.js.map +1 -0
  26. package/lib/commonjs/components/inputs/input-date-time/interface.d.js +2 -0
  27. package/lib/commonjs/components/inputs/input-date-time/interface.d.js.map +1 -0
  28. package/lib/commonjs/components/inputs/input-date-time/styles.js +66 -0
  29. package/lib/commonjs/components/inputs/input-date-time/styles.js.map +1 -0
  30. package/lib/commonjs/components/list-devices/helpers/get-icon-by-status.js +25 -0
  31. package/lib/commonjs/components/list-devices/helpers/get-icon-by-status.js.map +1 -0
  32. package/lib/commonjs/components/list-devices/index.js +104 -0
  33. package/lib/commonjs/components/list-devices/index.js.map +1 -0
  34. package/lib/commonjs/components/list-devices/interface.d.js +2 -0
  35. package/lib/commonjs/components/list-devices/interface.d.js.map +1 -0
  36. package/lib/commonjs/components/list-devices/styles.js +60 -0
  37. package/lib/commonjs/components/list-devices/styles.js.map +1 -0
  38. package/lib/commonjs/components/list-supplies/index.js +171 -0
  39. package/lib/commonjs/components/list-supplies/index.js.map +1 -0
  40. package/lib/commonjs/components/list-supplies/interface.d.js +2 -0
  41. package/lib/commonjs/components/list-supplies/interface.d.js.map +1 -0
  42. package/lib/commonjs/components/maintenance-description-input/index.js +3 -0
  43. package/lib/commonjs/components/maintenance-description-input/index.js.map +1 -1
  44. package/lib/commonjs/components/maintenance-description-input/styles.js +1 -1
  45. package/lib/commonjs/components/maintenance-description-input/styles.js.map +1 -1
  46. package/lib/commonjs/components/modals/modal-activity-reason/index.js +170 -0
  47. package/lib/commonjs/components/modals/modal-activity-reason/index.js.map +1 -0
  48. package/lib/commonjs/components/modals/modal-activity-reason/interface.d.js +2 -0
  49. package/lib/commonjs/components/modals/modal-activity-reason/interface.d.js.map +1 -0
  50. package/lib/commonjs/components/modals/modal-create-activitie/helpers/index.js +27 -0
  51. package/lib/commonjs/components/modals/modal-create-activitie/helpers/index.js.map +1 -0
  52. package/lib/commonjs/components/modals/modal-create-activitie/index.js +203 -0
  53. package/lib/commonjs/components/modals/modal-create-activitie/index.js.map +1 -0
  54. package/lib/commonjs/components/modals/modal-create-activitie/interface.js +2 -0
  55. package/lib/commonjs/components/modals/modal-create-activitie/interface.js.map +1 -0
  56. package/lib/commonjs/components/modals/modal-create-activitie/styles.js +42 -0
  57. package/lib/commonjs/components/modals/modal-create-activitie/styles.js.map +1 -0
  58. package/lib/commonjs/components/modals/modal-exclude-activitie/index.js +2 -0
  59. package/lib/commonjs/components/modals/modal-exclude-activitie/index.js.map +1 -0
  60. package/lib/commonjs/components/modals/modal-journey-rectification/index.js +242 -0
  61. package/lib/commonjs/components/modals/modal-journey-rectification/index.js.map +1 -0
  62. package/lib/commonjs/components/modals/modal-journey-rectification/interface.d.js +2 -0
  63. package/lib/commonjs/components/modals/modal-journey-rectification/interface.d.js.map +1 -0
  64. package/lib/commonjs/components/modals/modal-to-confimations/index.js +182 -0
  65. package/lib/commonjs/components/modals/modal-to-confimations/index.js.map +1 -0
  66. package/lib/commonjs/components/modals/modal-to-confimations/interface.js +2 -0
  67. package/lib/commonjs/components/modals/modal-to-confimations/interface.js.map +1 -0
  68. package/lib/commonjs/components/selects/select-date-and-hours/index.js +80 -0
  69. package/lib/commonjs/components/selects/select-date-and-hours/index.js.map +1 -0
  70. package/lib/commonjs/components/selects/select-date-and-hours/interface.js +6 -0
  71. package/lib/commonjs/components/selects/select-date-and-hours/interface.js.map +1 -0
  72. package/lib/commonjs/components/selects/select-date-and-hours/styles.js +34 -0
  73. package/lib/commonjs/components/selects/select-date-and-hours/styles.js.map +1 -0
  74. package/lib/commonjs/components/selects/select-option/index.js +26 -9
  75. package/lib/commonjs/components/selects/select-option/index.js.map +1 -1
  76. package/lib/commonjs/components/selects/select-option/styles.js +6 -7
  77. package/lib/commonjs/components/selects/select-option/styles.js.map +1 -1
  78. package/lib/commonjs/components/step-indicator/index.js +54 -40
  79. package/lib/commonjs/components/step-indicator/index.js.map +1 -1
  80. package/lib/commonjs/components/step-indicator/styles.js.map +1 -1
  81. package/lib/commonjs/components/supply-error-card/index.js +6 -6
  82. package/lib/commonjs/components/toast-message/index.js +8 -7
  83. package/lib/commonjs/components/toast-message/index.js.map +1 -1
  84. package/lib/commonjs/components/travel-history/index.js +7 -7
  85. package/lib/commonjs/components/travel-history/index.js.map +1 -1
  86. package/lib/commonjs/components/trip-details-card/index.js +102 -22
  87. package/lib/commonjs/components/trip-details-card/index.js.map +1 -1
  88. package/lib/commonjs/components/typography/index.js +5 -5
  89. package/lib/commonjs/components/typography/index.js.map +1 -1
  90. package/lib/commonjs/index.js +53 -4
  91. package/lib/commonjs/index.js.map +1 -1
  92. package/lib/commonjs/stories/list-devices/list-devices.stories.js +146 -0
  93. package/lib/commonjs/stories/list-devices/list-devices.stories.js.map +1 -0
  94. package/lib/commonjs/stories/list-supplies/list-supplies.stories.js +69 -0
  95. package/lib/commonjs/stories/list-supplies/list-supplies.stories.js.map +1 -0
  96. package/lib/commonjs/stories/modal-activity-reason/modal-activity-reason.stories.js +63 -0
  97. package/lib/commonjs/stories/modal-activity-reason/modal-activity-reason.stories.js.map +1 -0
  98. package/lib/commonjs/stories/modal-journey-rectification/modal-journey-rectification.stories.js +63 -0
  99. package/lib/commonjs/stories/modal-journey-rectification/modal-journey-rectification.stories.js.map +1 -0
  100. package/lib/commonjs/stories/step-indicator/step-indicator.stories.js +1 -0
  101. package/lib/commonjs/stories/step-indicator/step-indicator.stories.js.map +1 -1
  102. package/lib/commonjs/stories/supply-error-card/supply-error-card.stories.js +2 -2
  103. package/lib/commonjs/stories/trip-details-card/trip-details-card.stories.js +39 -6
  104. package/lib/commonjs/stories/trip-details-card/trip-details-card.stories.js.map +1 -1
  105. package/lib/commonjs/styles/theme/theme.js +1 -0
  106. package/lib/commonjs/styles/theme/theme.js.map +1 -1
  107. package/lib/commonjs/utils/text-limit/index.js +37 -0
  108. package/lib/commonjs/utils/text-limit/index.js.map +1 -0
  109. package/lib/module/common/icons-svg/bluetooth/index.js +45 -27
  110. package/lib/module/common/icons-svg/bluetooth/index.js.map +1 -1
  111. package/lib/module/common/icons-svg/constants/index.js +7 -5
  112. package/lib/module/common/icons-svg/constants/index.js.map +1 -1
  113. package/lib/module/common/icons-svg/index.js +19 -4
  114. package/lib/module/common/icons-svg/index.js.map +1 -1
  115. package/lib/module/common/icons-svg/plus-container/index.js +36 -0
  116. package/lib/module/common/icons-svg/plus-container/index.js.map +1 -0
  117. package/lib/module/common/icons-svg/trash/index.js +34 -0
  118. package/lib/module/common/icons-svg/trash/index.js.map +1 -0
  119. package/lib/module/components/activity-step/components/activite-row/index.js +134 -0
  120. package/lib/module/components/activity-step/components/activite-row/index.js.map +1 -0
  121. package/lib/module/components/activity-step/index.js +73 -0
  122. package/lib/module/components/activity-step/index.js.map +1 -0
  123. package/lib/module/components/activity-step/interface.js +4 -0
  124. package/lib/module/components/activity-step/interface.js.map +1 -0
  125. package/lib/module/components/activity-step/styles.js +83 -0
  126. package/lib/module/components/activity-step/styles.js.map +1 -0
  127. package/lib/module/components/card-scheduled-journey/index.js +8 -6
  128. package/lib/module/components/card-scheduled-journey/index.js.map +1 -1
  129. package/lib/module/components/coil-removel-code/index.js +4 -3
  130. package/lib/module/components/coil-removel-code/index.js.map +1 -1
  131. package/lib/module/components/inputs/input-date-time/index.js +130 -0
  132. package/lib/module/components/inputs/input-date-time/index.js.map +1 -0
  133. package/lib/module/components/inputs/input-date-time/interface.d.js +2 -0
  134. package/lib/module/components/inputs/input-date-time/interface.d.js.map +1 -0
  135. package/lib/module/components/inputs/input-date-time/styles.js +62 -0
  136. package/lib/module/components/inputs/input-date-time/styles.js.map +1 -0
  137. package/lib/module/components/list-devices/helpers/get-icon-by-status.js +21 -0
  138. package/lib/module/components/list-devices/helpers/get-icon-by-status.js.map +1 -0
  139. package/lib/module/components/list-devices/index.js +100 -0
  140. package/lib/module/components/list-devices/index.js.map +1 -0
  141. package/lib/module/components/list-devices/interface.d.js +2 -0
  142. package/lib/module/components/list-devices/interface.d.js.map +1 -0
  143. package/lib/module/components/list-devices/styles.js +56 -0
  144. package/lib/module/components/list-devices/styles.js.map +1 -0
  145. package/lib/module/components/list-supplies/index.js +165 -0
  146. package/lib/module/components/list-supplies/index.js.map +1 -0
  147. package/lib/module/components/list-supplies/interface.d.js +2 -0
  148. package/lib/module/components/list-supplies/interface.d.js.map +1 -0
  149. package/lib/module/components/maintenance-description-input/index.js +3 -0
  150. package/lib/module/components/maintenance-description-input/index.js.map +1 -1
  151. package/lib/module/components/maintenance-description-input/styles.js +1 -1
  152. package/lib/module/components/maintenance-description-input/styles.js.map +1 -1
  153. package/lib/module/components/modals/modal-activity-reason/index.js +165 -0
  154. package/lib/module/components/modals/modal-activity-reason/index.js.map +1 -0
  155. package/lib/module/components/modals/modal-activity-reason/interface.d.js +2 -0
  156. package/lib/module/components/modals/modal-activity-reason/interface.d.js.map +1 -0
  157. package/lib/module/components/modals/modal-create-activitie/helpers/index.js +24 -0
  158. package/lib/module/components/modals/modal-create-activitie/helpers/index.js.map +1 -0
  159. package/lib/module/components/modals/modal-create-activitie/index.js +196 -0
  160. package/lib/module/components/modals/modal-create-activitie/index.js.map +1 -0
  161. package/lib/module/components/modals/modal-create-activitie/interface.js +2 -0
  162. package/lib/module/components/modals/modal-create-activitie/interface.js.map +1 -0
  163. package/lib/module/components/modals/modal-create-activitie/styles.js +39 -0
  164. package/lib/module/components/modals/modal-create-activitie/styles.js.map +1 -0
  165. package/lib/module/components/modals/modal-exclude-activitie/index.js +2 -0
  166. package/lib/module/components/modals/modal-exclude-activitie/index.js.map +1 -0
  167. package/lib/module/components/modals/modal-journey-rectification/index.js +236 -0
  168. package/lib/module/components/modals/modal-journey-rectification/index.js.map +1 -0
  169. package/lib/module/components/modals/modal-journey-rectification/interface.d.js +2 -0
  170. package/lib/module/components/modals/modal-journey-rectification/interface.d.js.map +1 -0
  171. package/lib/module/components/modals/modal-to-confimations/index.js +179 -0
  172. package/lib/module/components/modals/modal-to-confimations/index.js.map +1 -0
  173. package/lib/module/components/modals/modal-to-confimations/interface.js +2 -0
  174. package/lib/module/components/modals/modal-to-confimations/interface.js.map +1 -0
  175. package/lib/module/components/selects/select-date-and-hours/index.js +74 -0
  176. package/lib/module/components/selects/select-date-and-hours/index.js.map +1 -0
  177. package/lib/module/components/selects/select-date-and-hours/interface.js +4 -0
  178. package/lib/module/components/selects/select-date-and-hours/interface.js.map +1 -0
  179. package/lib/module/components/selects/select-date-and-hours/styles.js +31 -0
  180. package/lib/module/components/selects/select-date-and-hours/styles.js.map +1 -0
  181. package/lib/module/components/selects/select-option/index.js +26 -9
  182. package/lib/module/components/selects/select-option/index.js.map +1 -1
  183. package/lib/module/components/selects/select-option/styles.js +6 -7
  184. package/lib/module/components/selects/select-option/styles.js.map +1 -1
  185. package/lib/module/components/step-indicator/index.js +55 -41
  186. package/lib/module/components/step-indicator/index.js.map +1 -1
  187. package/lib/module/components/step-indicator/styles.js.map +1 -1
  188. package/lib/module/components/supply-error-card/index.js +6 -6
  189. package/lib/module/components/toast-message/index.js +8 -7
  190. package/lib/module/components/toast-message/index.js.map +1 -1
  191. package/lib/module/components/travel-history/index.js +7 -7
  192. package/lib/module/components/travel-history/index.js.map +1 -1
  193. package/lib/module/components/trip-details-card/index.js +105 -24
  194. package/lib/module/components/trip-details-card/index.js.map +1 -1
  195. package/lib/module/components/typography/index.js +5 -5
  196. package/lib/module/components/typography/index.js.map +1 -1
  197. package/lib/module/index.js +7 -0
  198. package/lib/module/index.js.map +1 -1
  199. package/lib/module/stories/list-devices/list-devices.stories.js +140 -0
  200. package/lib/module/stories/list-devices/list-devices.stories.js.map +1 -0
  201. package/lib/module/stories/list-supplies/list-supplies.stories.js +63 -0
  202. package/lib/module/stories/list-supplies/list-supplies.stories.js.map +1 -0
  203. package/lib/module/stories/modal-activity-reason/modal-activity-reason.stories.js +57 -0
  204. package/lib/module/stories/modal-activity-reason/modal-activity-reason.stories.js.map +1 -0
  205. package/lib/module/stories/modal-journey-rectification/modal-journey-rectification.stories.js +57 -0
  206. package/lib/module/stories/modal-journey-rectification/modal-journey-rectification.stories.js.map +1 -0
  207. package/lib/module/stories/step-indicator/step-indicator.stories.js +1 -0
  208. package/lib/module/stories/step-indicator/step-indicator.stories.js.map +1 -1
  209. package/lib/module/stories/supply-error-card/supply-error-card.stories.js +2 -2
  210. package/lib/module/stories/trip-details-card/trip-details-card.stories.js +39 -6
  211. package/lib/module/stories/trip-details-card/trip-details-card.stories.js.map +1 -1
  212. package/lib/module/styles/theme/theme.js +1 -0
  213. package/lib/module/styles/theme/theme.js.map +1 -1
  214. package/lib/module/utils/text-limit/index.js +32 -0
  215. package/lib/module/utils/text-limit/index.js.map +1 -0
  216. package/lib/typescript/commonjs/src/common/icons-svg/bluetooth/index.d.ts +5 -1
  217. package/lib/typescript/commonjs/src/common/icons-svg/bluetooth/index.d.ts.map +1 -1
  218. package/lib/typescript/commonjs/src/common/icons-svg/constants/index.d.ts +2 -0
  219. package/lib/typescript/commonjs/src/common/icons-svg/constants/index.d.ts.map +1 -1
  220. package/lib/typescript/commonjs/src/common/icons-svg/index.d.ts.map +1 -1
  221. package/lib/typescript/commonjs/src/common/icons-svg/plus-container/index.d.ts +11 -0
  222. package/lib/typescript/commonjs/src/common/icons-svg/plus-container/index.d.ts.map +1 -0
  223. package/lib/typescript/commonjs/src/common/icons-svg/trash/index.d.ts +11 -0
  224. package/lib/typescript/commonjs/src/common/icons-svg/trash/index.d.ts.map +1 -0
  225. package/lib/typescript/commonjs/src/components/activity-step/components/activite-row/index.d.ts +11 -0
  226. package/lib/typescript/commonjs/src/components/activity-step/components/activite-row/index.d.ts.map +1 -0
  227. package/lib/typescript/commonjs/src/components/activity-step/index.d.ts +17 -0
  228. package/lib/typescript/commonjs/src/components/activity-step/index.d.ts.map +1 -0
  229. package/lib/typescript/commonjs/src/components/activity-step/interface.d.ts +40 -0
  230. package/lib/typescript/commonjs/src/components/activity-step/interface.d.ts.map +1 -0
  231. package/lib/typescript/commonjs/src/components/activity-step/styles.d.ts +75 -0
  232. package/lib/typescript/commonjs/src/components/activity-step/styles.d.ts.map +1 -0
  233. package/lib/typescript/commonjs/src/components/card-scheduled-journey/index.d.ts +2 -1
  234. package/lib/typescript/commonjs/src/components/card-scheduled-journey/index.d.ts.map +1 -1
  235. package/lib/typescript/commonjs/src/components/coil-removel-code/index.d.ts.map +1 -1
  236. package/lib/typescript/commonjs/src/components/inputs/input-date-time/index.d.ts +8 -0
  237. package/lib/typescript/commonjs/src/components/inputs/input-date-time/index.d.ts.map +1 -0
  238. package/lib/typescript/commonjs/src/components/inputs/input-date-time/styles.d.ts +59 -0
  239. package/lib/typescript/commonjs/src/components/inputs/input-date-time/styles.d.ts.map +1 -0
  240. package/lib/typescript/commonjs/src/components/list-devices/helpers/get-icon-by-status.d.ts +15 -0
  241. package/lib/typescript/commonjs/src/components/list-devices/helpers/get-icon-by-status.d.ts.map +1 -0
  242. package/lib/typescript/commonjs/src/components/list-devices/index.d.ts +11 -0
  243. package/lib/typescript/commonjs/src/components/list-devices/index.d.ts.map +1 -0
  244. package/lib/typescript/commonjs/src/components/list-devices/styles.d.ts +57 -0
  245. package/lib/typescript/commonjs/src/components/list-devices/styles.d.ts.map +1 -0
  246. package/lib/typescript/commonjs/src/components/list-supplies/index.d.ts +8 -0
  247. package/lib/typescript/commonjs/src/components/list-supplies/index.d.ts.map +1 -0
  248. package/lib/typescript/commonjs/src/components/maintenance-description-input/index.d.ts.map +1 -1
  249. package/lib/typescript/commonjs/src/components/modals/modal-activity-reason/index.d.ts +8 -0
  250. package/lib/typescript/commonjs/src/components/modals/modal-activity-reason/index.d.ts.map +1 -0
  251. package/lib/typescript/commonjs/src/components/modals/modal-create-activitie/helpers/index.d.ts +21 -0
  252. package/lib/typescript/commonjs/src/components/modals/modal-create-activitie/helpers/index.d.ts.map +1 -0
  253. package/lib/typescript/commonjs/src/components/modals/modal-create-activitie/index.d.ts +8 -0
  254. package/lib/typescript/commonjs/src/components/modals/modal-create-activitie/index.d.ts.map +1 -0
  255. package/lib/typescript/commonjs/src/components/modals/modal-create-activitie/interface.d.ts +19 -0
  256. package/lib/typescript/commonjs/src/components/modals/modal-create-activitie/interface.d.ts.map +1 -0
  257. package/lib/typescript/commonjs/src/components/modals/modal-create-activitie/styles.d.ts +33 -0
  258. package/lib/typescript/commonjs/src/components/modals/modal-create-activitie/styles.d.ts.map +1 -0
  259. package/lib/typescript/commonjs/src/components/modals/modal-exclude-activitie/index.d.ts +1 -0
  260. package/lib/typescript/commonjs/src/components/modals/modal-exclude-activitie/index.d.ts.map +1 -0
  261. package/lib/typescript/commonjs/src/components/modals/modal-journey-rectification/index.d.ts +8 -0
  262. package/lib/typescript/commonjs/src/components/modals/modal-journey-rectification/index.d.ts.map +1 -0
  263. package/lib/typescript/commonjs/src/components/modals/modal-to-confimations/index.d.ts +8 -0
  264. package/lib/typescript/commonjs/src/components/modals/modal-to-confimations/index.d.ts.map +1 -0
  265. package/lib/typescript/commonjs/src/components/modals/modal-to-confimations/interface.d.ts +28 -0
  266. package/lib/typescript/commonjs/src/components/modals/modal-to-confimations/interface.d.ts.map +1 -0
  267. package/lib/typescript/commonjs/src/components/selects/select-date-and-hours/index.d.ts +13 -0
  268. package/lib/typescript/commonjs/src/components/selects/select-date-and-hours/index.d.ts.map +1 -0
  269. package/lib/typescript/commonjs/src/components/selects/select-date-and-hours/interface.d.ts +22 -0
  270. package/lib/typescript/commonjs/src/components/selects/select-date-and-hours/interface.d.ts.map +1 -0
  271. package/lib/typescript/commonjs/src/components/selects/select-date-and-hours/styles.d.ts +26 -0
  272. package/lib/typescript/commonjs/src/components/selects/select-date-and-hours/styles.d.ts.map +1 -0
  273. package/lib/typescript/commonjs/src/components/selects/select-option/index.d.ts +1 -0
  274. package/lib/typescript/commonjs/src/components/selects/select-option/index.d.ts.map +1 -1
  275. package/lib/typescript/commonjs/src/components/selects/select-option/styles.d.ts +0 -1
  276. package/lib/typescript/commonjs/src/components/selects/select-option/styles.d.ts.map +1 -1
  277. package/lib/typescript/commonjs/src/components/step-indicator/index.d.ts.map +1 -1
  278. package/lib/typescript/commonjs/src/components/step-indicator/styles.d.ts +2 -2
  279. package/lib/typescript/commonjs/src/components/step-indicator/styles.d.ts.map +1 -1
  280. package/lib/typescript/commonjs/src/components/supply-error-card/index.d.ts.map +1 -1
  281. package/lib/typescript/commonjs/src/components/toast-message/index.d.ts.map +1 -1
  282. package/lib/typescript/commonjs/src/components/trip-details-card/index.d.ts.map +1 -1
  283. package/lib/typescript/commonjs/src/index.d.ts +7 -0
  284. package/lib/typescript/commonjs/src/index.d.ts.map +1 -1
  285. package/lib/typescript/commonjs/src/stories/list-devices/list-devices.stories.d.ts +22 -0
  286. package/lib/typescript/commonjs/src/stories/list-devices/list-devices.stories.d.ts.map +1 -0
  287. package/lib/typescript/commonjs/src/stories/list-supplies/list-supplies.stories.d.ts +10 -0
  288. package/lib/typescript/commonjs/src/stories/list-supplies/list-supplies.stories.d.ts.map +1 -0
  289. package/lib/typescript/commonjs/src/stories/modal-activity-reason/modal-activity-reason.stories.d.ts +10 -0
  290. package/lib/typescript/commonjs/src/stories/modal-activity-reason/modal-activity-reason.stories.d.ts.map +1 -0
  291. package/lib/typescript/commonjs/src/stories/modal-journey-rectification/modal-journey-rectification.stories.d.ts +10 -0
  292. package/lib/typescript/commonjs/src/stories/modal-journey-rectification/modal-journey-rectification.stories.d.ts.map +1 -0
  293. package/lib/typescript/commonjs/src/stories/step-indicator/step-indicator.stories.d.ts.map +1 -1
  294. package/lib/typescript/commonjs/src/stories/trip-details-card/trip-details-card.stories.d.ts.map +1 -1
  295. package/lib/typescript/commonjs/src/styles/global/theme-provider.d.ts +1 -0
  296. package/lib/typescript/commonjs/src/styles/global/theme-provider.d.ts.map +1 -1
  297. package/lib/typescript/commonjs/src/styles/theme/theme.d.ts +1 -0
  298. package/lib/typescript/commonjs/src/styles/theme/theme.d.ts.map +1 -1
  299. package/lib/typescript/commonjs/src/utils/text-limit/index.d.ts +14 -0
  300. package/lib/typescript/commonjs/src/utils/text-limit/index.d.ts.map +1 -0
  301. package/lib/typescript/module/src/common/icons-svg/bluetooth/index.d.ts +5 -1
  302. package/lib/typescript/module/src/common/icons-svg/bluetooth/index.d.ts.map +1 -1
  303. package/lib/typescript/module/src/common/icons-svg/constants/index.d.ts +2 -0
  304. package/lib/typescript/module/src/common/icons-svg/constants/index.d.ts.map +1 -1
  305. package/lib/typescript/module/src/common/icons-svg/index.d.ts.map +1 -1
  306. package/lib/typescript/module/src/common/icons-svg/plus-container/index.d.ts +11 -0
  307. package/lib/typescript/module/src/common/icons-svg/plus-container/index.d.ts.map +1 -0
  308. package/lib/typescript/module/src/common/icons-svg/trash/index.d.ts +11 -0
  309. package/lib/typescript/module/src/common/icons-svg/trash/index.d.ts.map +1 -0
  310. package/lib/typescript/module/src/components/activity-step/components/activite-row/index.d.ts +11 -0
  311. package/lib/typescript/module/src/components/activity-step/components/activite-row/index.d.ts.map +1 -0
  312. package/lib/typescript/module/src/components/activity-step/index.d.ts +17 -0
  313. package/lib/typescript/module/src/components/activity-step/index.d.ts.map +1 -0
  314. package/lib/typescript/module/src/components/activity-step/interface.d.ts +40 -0
  315. package/lib/typescript/module/src/components/activity-step/interface.d.ts.map +1 -0
  316. package/lib/typescript/module/src/components/activity-step/styles.d.ts +75 -0
  317. package/lib/typescript/module/src/components/activity-step/styles.d.ts.map +1 -0
  318. package/lib/typescript/module/src/components/card-scheduled-journey/index.d.ts +2 -1
  319. package/lib/typescript/module/src/components/card-scheduled-journey/index.d.ts.map +1 -1
  320. package/lib/typescript/module/src/components/coil-removel-code/index.d.ts.map +1 -1
  321. package/lib/typescript/module/src/components/inputs/input-date-time/index.d.ts +8 -0
  322. package/lib/typescript/module/src/components/inputs/input-date-time/index.d.ts.map +1 -0
  323. package/lib/typescript/module/src/components/inputs/input-date-time/styles.d.ts +59 -0
  324. package/lib/typescript/module/src/components/inputs/input-date-time/styles.d.ts.map +1 -0
  325. package/lib/typescript/module/src/components/list-devices/helpers/get-icon-by-status.d.ts +15 -0
  326. package/lib/typescript/module/src/components/list-devices/helpers/get-icon-by-status.d.ts.map +1 -0
  327. package/lib/typescript/module/src/components/list-devices/index.d.ts +11 -0
  328. package/lib/typescript/module/src/components/list-devices/index.d.ts.map +1 -0
  329. package/lib/typescript/module/src/components/list-devices/styles.d.ts +57 -0
  330. package/lib/typescript/module/src/components/list-devices/styles.d.ts.map +1 -0
  331. package/lib/typescript/module/src/components/list-supplies/index.d.ts +8 -0
  332. package/lib/typescript/module/src/components/list-supplies/index.d.ts.map +1 -0
  333. package/lib/typescript/module/src/components/maintenance-description-input/index.d.ts.map +1 -1
  334. package/lib/typescript/module/src/components/modals/modal-activity-reason/index.d.ts +8 -0
  335. package/lib/typescript/module/src/components/modals/modal-activity-reason/index.d.ts.map +1 -0
  336. package/lib/typescript/module/src/components/modals/modal-create-activitie/helpers/index.d.ts +21 -0
  337. package/lib/typescript/module/src/components/modals/modal-create-activitie/helpers/index.d.ts.map +1 -0
  338. package/lib/typescript/module/src/components/modals/modal-create-activitie/index.d.ts +8 -0
  339. package/lib/typescript/module/src/components/modals/modal-create-activitie/index.d.ts.map +1 -0
  340. package/lib/typescript/module/src/components/modals/modal-create-activitie/interface.d.ts +19 -0
  341. package/lib/typescript/module/src/components/modals/modal-create-activitie/interface.d.ts.map +1 -0
  342. package/lib/typescript/module/src/components/modals/modal-create-activitie/styles.d.ts +33 -0
  343. package/lib/typescript/module/src/components/modals/modal-create-activitie/styles.d.ts.map +1 -0
  344. package/lib/typescript/module/src/components/modals/modal-exclude-activitie/index.d.ts +1 -0
  345. package/lib/typescript/module/src/components/modals/modal-exclude-activitie/index.d.ts.map +1 -0
  346. package/lib/typescript/module/src/components/modals/modal-journey-rectification/index.d.ts +8 -0
  347. package/lib/typescript/module/src/components/modals/modal-journey-rectification/index.d.ts.map +1 -0
  348. package/lib/typescript/module/src/components/modals/modal-to-confimations/index.d.ts +8 -0
  349. package/lib/typescript/module/src/components/modals/modal-to-confimations/index.d.ts.map +1 -0
  350. package/lib/typescript/module/src/components/modals/modal-to-confimations/interface.d.ts +28 -0
  351. package/lib/typescript/module/src/components/modals/modal-to-confimations/interface.d.ts.map +1 -0
  352. package/lib/typescript/module/src/components/selects/select-date-and-hours/index.d.ts +13 -0
  353. package/lib/typescript/module/src/components/selects/select-date-and-hours/index.d.ts.map +1 -0
  354. package/lib/typescript/module/src/components/selects/select-date-and-hours/interface.d.ts +22 -0
  355. package/lib/typescript/module/src/components/selects/select-date-and-hours/interface.d.ts.map +1 -0
  356. package/lib/typescript/module/src/components/selects/select-date-and-hours/styles.d.ts +26 -0
  357. package/lib/typescript/module/src/components/selects/select-date-and-hours/styles.d.ts.map +1 -0
  358. package/lib/typescript/module/src/components/selects/select-option/index.d.ts +1 -0
  359. package/lib/typescript/module/src/components/selects/select-option/index.d.ts.map +1 -1
  360. package/lib/typescript/module/src/components/selects/select-option/styles.d.ts +0 -1
  361. package/lib/typescript/module/src/components/selects/select-option/styles.d.ts.map +1 -1
  362. package/lib/typescript/module/src/components/step-indicator/index.d.ts.map +1 -1
  363. package/lib/typescript/module/src/components/step-indicator/styles.d.ts +2 -2
  364. package/lib/typescript/module/src/components/step-indicator/styles.d.ts.map +1 -1
  365. package/lib/typescript/module/src/components/supply-error-card/index.d.ts.map +1 -1
  366. package/lib/typescript/module/src/components/toast-message/index.d.ts.map +1 -1
  367. package/lib/typescript/module/src/components/trip-details-card/index.d.ts.map +1 -1
  368. package/lib/typescript/module/src/index.d.ts +7 -0
  369. package/lib/typescript/module/src/index.d.ts.map +1 -1
  370. package/lib/typescript/module/src/stories/list-devices/list-devices.stories.d.ts +22 -0
  371. package/lib/typescript/module/src/stories/list-devices/list-devices.stories.d.ts.map +1 -0
  372. package/lib/typescript/module/src/stories/list-supplies/list-supplies.stories.d.ts +10 -0
  373. package/lib/typescript/module/src/stories/list-supplies/list-supplies.stories.d.ts.map +1 -0
  374. package/lib/typescript/module/src/stories/modal-activity-reason/modal-activity-reason.stories.d.ts +10 -0
  375. package/lib/typescript/module/src/stories/modal-activity-reason/modal-activity-reason.stories.d.ts.map +1 -0
  376. package/lib/typescript/module/src/stories/modal-journey-rectification/modal-journey-rectification.stories.d.ts +10 -0
  377. package/lib/typescript/module/src/stories/modal-journey-rectification/modal-journey-rectification.stories.d.ts.map +1 -0
  378. package/lib/typescript/module/src/stories/step-indicator/step-indicator.stories.d.ts.map +1 -1
  379. package/lib/typescript/module/src/stories/trip-details-card/trip-details-card.stories.d.ts.map +1 -1
  380. package/lib/typescript/module/src/styles/global/theme-provider.d.ts +1 -0
  381. package/lib/typescript/module/src/styles/global/theme-provider.d.ts.map +1 -1
  382. package/lib/typescript/module/src/styles/theme/theme.d.ts +1 -0
  383. package/lib/typescript/module/src/styles/theme/theme.d.ts.map +1 -1
  384. package/lib/typescript/module/src/utils/text-limit/index.d.ts +14 -0
  385. package/lib/typescript/module/src/utils/text-limit/index.d.ts.map +1 -0
  386. package/package.json +2 -1
  387. package/src/common/icons-svg/bluetooth/index.tsx +51 -24
  388. package/src/common/icons-svg/constants/index.ts +67 -65
  389. package/src/common/icons-svg/index.tsx +289 -280
  390. package/src/common/icons-svg/plus-container/index.tsx +32 -0
  391. package/src/common/icons-svg/trash/index.tsx +31 -0
  392. package/src/components/activity-step/components/activite-row/index.tsx +141 -0
  393. package/src/components/activity-step/index.tsx +73 -0
  394. package/src/components/activity-step/interface.ts +54 -0
  395. package/src/components/activity-step/styles.ts +72 -0
  396. package/src/components/card-scheduled-journey/index.tsx +140 -138
  397. package/src/components/card-scheduled-journey/interface.d.ts +145 -140
  398. package/src/components/coil-removel-code/index.tsx +8 -3
  399. package/src/components/coil-removel-code/interface.d.ts +14 -13
  400. package/src/components/inputs/input-date-time/index.tsx +133 -0
  401. package/src/components/inputs/input-date-time/interface.d.ts +25 -0
  402. package/src/components/inputs/input-date-time/styles.ts +63 -0
  403. package/src/components/list-devices/helpers/get-icon-by-status.tsx +20 -0
  404. package/src/components/list-devices/index.tsx +103 -0
  405. package/src/components/list-devices/interface.d.ts +36 -0
  406. package/src/components/list-devices/styles.ts +68 -0
  407. package/src/components/list-supplies/index.tsx +153 -0
  408. package/src/components/list-supplies/interface.d.ts +9 -0
  409. package/src/components/maintenance-description-input/index.tsx +1 -0
  410. package/src/components/maintenance-description-input/styles.ts +1 -1
  411. package/src/components/modals/modal-activity-reason/index.tsx +168 -0
  412. package/src/components/modals/modal-activity-reason/interface.d.ts +9 -0
  413. package/src/components/modals/modal-create-activitie/helpers/index.ts +14 -0
  414. package/src/components/modals/modal-create-activitie/index.tsx +210 -0
  415. package/src/components/modals/modal-create-activitie/interface.ts +22 -0
  416. package/src/components/modals/modal-create-activitie/styles.ts +24 -0
  417. package/src/components/modals/modal-exclude-activitie/index.ts +0 -0
  418. package/src/components/modals/modal-journey-rectification/index.tsx +236 -0
  419. package/src/components/modals/modal-journey-rectification/interface.d.ts +10 -0
  420. package/src/components/modals/modal-to-confimations/index.tsx +182 -0
  421. package/src/components/modals/modal-to-confimations/interface.ts +36 -0
  422. package/src/components/selects/select-date-and-hours/index.tsx +70 -0
  423. package/src/components/selects/select-date-and-hours/interface.ts +31 -0
  424. package/src/components/selects/select-date-and-hours/styles.ts +24 -0
  425. package/src/components/selects/select-option/index.tsx +124 -94
  426. package/src/components/selects/select-option/interface.d.ts +1 -1
  427. package/src/components/selects/select-option/styles.ts +74 -75
  428. package/src/components/step-indicator/index.tsx +56 -36
  429. package/src/components/step-indicator/interface.d.ts +14 -3
  430. package/src/components/step-indicator/styles.ts +2 -2
  431. package/src/components/supply-error-card/index.tsx +109 -109
  432. package/src/components/supply-error-card/interface.d.ts +133 -133
  433. package/src/components/toast-message/index.tsx +75 -74
  434. package/src/components/travel-history/index.tsx +7 -7
  435. package/src/components/trip-details-card/index.tsx +267 -193
  436. package/src/components/trip-details-card/interface.d.ts +4 -1
  437. package/src/components/typography/index.tsx +78 -78
  438. package/src/index.tsx +7 -0
  439. package/src/stories/list-devices/list-devices.stories.tsx +114 -0
  440. package/src/stories/list-supplies/list-supplies.stories.tsx +66 -0
  441. package/src/stories/modal-activity-reason/modal-activity-reason.stories.tsx +60 -0
  442. package/src/stories/modal-journey-rectification/modal-journey-rectification.stories.tsx +60 -0
  443. package/src/stories/step-indicator/step-indicator.stories.tsx +1 -0
  444. package/src/stories/supply-error-card/supply-error-card.stories.tsx +72 -72
  445. package/src/stories/trip-details-card/trip-details-card.stories.tsx +38 -5
  446. package/src/styles/theme/theme.ts +1 -0
  447. package/src/utils/text-limit/index.ts +28 -0
@@ -0,0 +1,103 @@
1
+ /**
2
+ * IMPORTS
3
+ */
4
+ import React, { forwardRef } from "react";
5
+ import { View, Text, TouchableOpacity, FlatList } from "react-native";
6
+
7
+ // components
8
+ import Box from "../box";
9
+
10
+ // icons
11
+ import { Icons } from "../../common/icons-svg";
12
+
13
+ // typings
14
+ import type { IListDevices, IData } from "./interface";
15
+ import { asBaseComponent } from "../../@types/as-base-component";
16
+
17
+ // styles
18
+ import { styles as makeStyles } from "./styles";
19
+ import { theme } from "../../styles/theme/theme";
20
+
21
+ /**
22
+ * Componente ListDevices para a interação da ui.
23
+ */
24
+ const ListDevices = forwardRef<any, IListDevices>(
25
+ (
26
+ { data, textColorDescription, titleColor, selectedId, onSelect, defaultSelectedId, disabled },
27
+ ref
28
+ ): React.ReactElement => {
29
+ const isControlled = selectedId !== undefined;
30
+ const [internalSelected, setInternalSelected] = React.useState<number | null>(
31
+ defaultSelectedId!
32
+ );
33
+
34
+ const currentSelected = isControlled ? (selectedId ?? null) : internalSelected;
35
+
36
+ const handlePress = (device: IData) => {
37
+ if (disabled) return;
38
+ if (!isControlled) setInternalSelected(device.id);
39
+ onSelect?.(device);
40
+ };
41
+
42
+ if (!data?.length) return <Box />;
43
+
44
+ return (
45
+ <FlatList
46
+ data={data}
47
+ keyExtractor={({ id }) => String(id)}
48
+ renderItem={({ item: device, index }) => {
49
+ const isLast = index === data.length - 1;
50
+ const isSelected = currentSelected === device.id;
51
+
52
+ const s = makeStyles({
53
+ titleColor,
54
+ textColorDescription,
55
+ disabled,
56
+ isSelected,
57
+ });
58
+ return (
59
+ <TouchableOpacity
60
+ ref={ref}
61
+ activeOpacity={0.7}
62
+ testID="list-devices"
63
+ key={device.id}
64
+ onPress={() => handlePress(device)}
65
+ disabled={disabled}
66
+ accessibilityRole="button"
67
+ accessibilityState={{ selected: isSelected, disabled }}
68
+ accessibilityLabel={`Dispositivo ${device.nameDevice}`}
69
+ style={[
70
+ s.containerIndicator,
71
+ !isLast && s.separator,
72
+ isSelected && s.containerIndicatorSelected,
73
+ ]}
74
+ >
75
+ <Icons
76
+ icon={"BLUETOOTH"}
77
+ size={26}
78
+ background={theme.colors.gray[600]}
79
+ color={theme.colors.gray[300]}
80
+ />
81
+
82
+ <View style={s.containerMain}>
83
+ <Text style={[s.title, isSelected && s.titleSelected]}>{device.nameDevice}</Text>
84
+ {!!device.macDevice && (
85
+ <Text style={[s.titleDescription, isSelected && s.descSelected]}>
86
+ {device.macDevice}
87
+ </Text>
88
+ )}
89
+ </View>
90
+ </TouchableOpacity>
91
+ );
92
+ }}
93
+ />
94
+ );
95
+ }
96
+ );
97
+
98
+ ListDevices.displayName = "ListDevices";
99
+
100
+ /**
101
+ * EXPORTS
102
+ */
103
+ export default asBaseComponent(ListDevices);
@@ -0,0 +1,36 @@
1
+ /* eslint-disable no-unused-vars */
2
+ /**
3
+ * IMPORTS
4
+ */
5
+
6
+ export type IData = {
7
+ id: number;
8
+ macDevice: string;
9
+ nameDevice: string;
10
+ };
11
+
12
+ export interface IListDevices {
13
+ /** dados que vão ser renderizados */
14
+ data?: IData[];
15
+
16
+ /** cor do texto */
17
+ titleColor?: string;
18
+
19
+ /** cor do titulo (não está sendo usada no componente atual, mantida por compat) */
20
+ titleNumberColor?: string;
21
+
22
+ /** cor do texto da descrição */
23
+ textColorDescription?: string;
24
+
25
+ /** (opcional) id selecionado - modo controlado */
26
+ selectedId?: number | null;
27
+
28
+ /** (opcional) seleção inicial - modo não-controlado */
29
+ defaultSelectedId?: number | null;
30
+
31
+ /** callback ao selecionar um item */
32
+ onSelect?: (device: IData) => void;
33
+
34
+ /** desabilita interação */
35
+ disabled?: boolean;
36
+ }
@@ -0,0 +1,68 @@
1
+ import { StyleSheet } from "react-native";
2
+ import { type IListDevices } from "./interface";
3
+ import { theme } from "../../styles/theme/theme";
4
+
5
+ type Extra = { disabled?: boolean; isSelected?: boolean };
6
+
7
+ const styles = (props: Partial<IListDevices & Extra> = {}) =>
8
+ StyleSheet.create({
9
+ containerIndicator: {
10
+ width: "100%",
11
+ flexDirection: "row",
12
+ justifyContent: "flex-start",
13
+ alignItems: "center",
14
+ marginTop: 8,
15
+ paddingVertical: 8,
16
+ paddingHorizontal: 8,
17
+ opacity: props.disabled ? 0.6 : 1,
18
+ },
19
+
20
+ containerIndicatorSelected: {
21
+ backgroundColor: theme.colors.green[250],
22
+ borderRadius: 30,
23
+ },
24
+
25
+ separator: {
26
+ borderBottomWidth: 1,
27
+ borderBottomColor: props.isSelected
28
+ ? "transparent"
29
+ : theme.colors.gray[700],
30
+ },
31
+
32
+ title: {
33
+ color: props.titleColor ?? theme.colors.black[10],
34
+ textAlign: "center",
35
+ lineHeight: 20,
36
+ fontSize: theme.fontSizes.sm,
37
+ fontWeight: "500",
38
+ marginLeft: theme.margins.xs,
39
+ },
40
+
41
+ titleSelected: {
42
+ color: theme.colors.neutral[25],
43
+ fontWeight: "600",
44
+ },
45
+
46
+ titleDescription: {
47
+ color: props.textColorDescription ?? theme.colors.gray[600],
48
+ textAlign: "center",
49
+ lineHeight: 16,
50
+ fontSize: 18,
51
+ fontFamily: theme.fonts.inter_light_300,
52
+ marginLeft: theme.margins.xs,
53
+ },
54
+
55
+ descSelected: {
56
+ color: theme.colors.neutral[25],
57
+ },
58
+
59
+ containerMain: {
60
+ width: "100%",
61
+ flexDirection: "column",
62
+ alignItems: "flex-start",
63
+ marginLeft: 2,
64
+ justifyContent: "center",
65
+ },
66
+ });
67
+
68
+ export { styles };
@@ -0,0 +1,153 @@
1
+ /**
2
+ * IMPORTS
3
+ */
4
+ import React, { useEffect } from "react";
5
+ import { Image, View, UIManager, Platform } from "react-native";
6
+
7
+ // components
8
+ import Box from "../../components/box";
9
+ import Typography from "../../components/typography";
10
+
11
+ // style
12
+ import { theme } from "../../styles/theme/theme";
13
+
14
+ // typings
15
+ import type { IListSupplies } from "./interface";
16
+ import { asBaseComponent } from "../../@types/as-base-component";
17
+
18
+ const ListSupplies: React.FC<IListSupplies> = ({
19
+ dataRegistro,
20
+ namePosto,
21
+ litragem,
22
+ valor,
23
+ imagemUrl,
24
+ corBarra,
25
+ }) => {
26
+
27
+ useEffect(() => {
28
+ if (Platform.OS === "android" && UIManager.setLayoutAnimationEnabledExperimental) {
29
+ UIManager.setLayoutAnimationEnabledExperimental(true);
30
+ }
31
+ }, []);
32
+
33
+ return (
34
+ <Box
35
+ width={"100%"}
36
+ flexStyle={{ flexDirection: "row" }}
37
+ backgroundColor={theme.colors.neutral[25]}
38
+ borderStyled={{ borderRadius: theme.borderWidths.thick_medium }}
39
+ >
40
+ {/* faixa lateral */}
41
+ <View
42
+ style={{
43
+ width: 15,
44
+ backgroundColor: corBarra ?? theme.colors.blue[375],
45
+ borderTopLeftRadius: theme.borderWidths.thick_medium,
46
+ borderBottomLeftRadius: theme.borderWidths.thick_medium,
47
+ }}
48
+ />
49
+
50
+ <Box flexStyle={{ flex: 1 }} paddingStyle={{ padding: theme.paddings["2xs"] }}>
51
+ <Box
52
+ marginStyle={{ marginBottom: theme.margins.fn}}
53
+ flexStyle={{ flexDirection: "row", justifyContent: "flex-start" }}
54
+ >
55
+ <Typography
56
+ text={`${namePosto || "Não informado"}`}
57
+ color={theme.colors.black[25]}
58
+ fontFamily={theme.fonts.inter_medium_500}
59
+ size={theme.fontSizes.sm}
60
+ />
61
+ </Box>
62
+
63
+ <Box
64
+ marginStyle={{ marginBottom: theme.margins.fn}}
65
+ flexStyle={{ flexDirection: "row", justifyContent: "flex-start" }}
66
+ >
67
+ <Typography
68
+ text="Litragem: "
69
+ color={theme.colors.black[25]}
70
+ fontFamily={theme.fonts.inter_medium_500}
71
+ size={theme.fontSizes.sm}
72
+ />
73
+ <Box
74
+ flexStyle={{ flexDirection: "row", justifyContent: "flex-start" }}
75
+ >
76
+ <Typography
77
+ text={`${litragem || "Não informado"}`}
78
+ color={theme.colors.black[25]}
79
+ fontFamily={theme.fonts.inter_regular_400}
80
+ size={theme.fontSizes.sm}
81
+ />
82
+ <Typography
83
+ text={` LT`}
84
+ color={theme.colors.red[400]}
85
+ fontFamily={theme.fonts.inter_regular_400}
86
+ size={theme.fontSizes.sm}
87
+ />
88
+ </Box>
89
+ </Box>
90
+
91
+ <Box
92
+ marginStyle={{ marginBottom: theme.margins.fn}}
93
+ flexStyle={{ flexDirection: "row", justifyContent: "flex-start" }}
94
+ >
95
+ <Typography
96
+ text="Valor: "
97
+ color={theme.colors.black[25]}
98
+ fontFamily={theme.fonts.inter_medium_500}
99
+ size={theme.fontSizes.sm}
100
+ />
101
+ <Typography
102
+ text={`R$ ${valor || "Não informado"}`}
103
+ color={theme.colors.gray[700]}
104
+ fontFamily={theme.fonts.inter_regular_400}
105
+ size={theme.fontSizes.sm}
106
+ />
107
+ </Box>
108
+
109
+ <Box
110
+ marginStyle={{ marginBottom: theme.margins.fn}}
111
+ flexStyle={{ flexDirection: "row", justifyContent: "flex-start" }}
112
+ >
113
+ <Typography
114
+ text={"Data: "}
115
+ color={theme.colors.black[25]}
116
+ fontFamily={theme.fonts.inter_medium_500}
117
+ size={theme.fontSizes.sm}
118
+ />
119
+ <Typography
120
+ text={`${dataRegistro || "Não informado"}`}
121
+ color={theme.colors.gray[700]}
122
+ fontFamily={theme.fonts.inter_regular_400}
123
+ size={theme.fontSizes.sm}
124
+ />
125
+ </Box>
126
+ <Box
127
+ borderStyled={{
128
+ borderWidth: 1,
129
+ borderColor: theme.colors.black[25],
130
+ borderRadius: theme.borderWidths.thick_medium,
131
+ }}
132
+ flexStyle={{
133
+ justifyContent: "center",
134
+ alignItems: "center",
135
+ }}
136
+ >
137
+ <Image
138
+ source={{ uri: imagemUrl ?? "https://placehold.co/300x300" }}
139
+ style={{
140
+ width: "100%",
141
+ height: 139,
142
+ borderRadius: theme.borderWidths.thick_medium,
143
+ }}
144
+ resizeMode="cover"
145
+ />
146
+ </Box>
147
+ </Box>
148
+ </Box>
149
+ );
150
+ };
151
+
152
+ ListSupplies.displayName = "ListSupplies";
153
+ export default asBaseComponent(ListSupplies);
@@ -0,0 +1,9 @@
1
+ export interface IListSupplies {
2
+ dataRegistro: string;
3
+ namePosto: string;
4
+ litragem: number;
5
+ valor?: number;
6
+ peso?: number;
7
+ imagemUrl?: string;
8
+ corBarra?: string;
9
+ }
@@ -43,6 +43,7 @@ const MaintenanceDescriptionInput = forwardRef<any, MaintenanceDescriptionInputP
43
43
 
44
44
  <Box
45
45
  flexStyle={{ flexDirection: "row", justifyContent: error ? "space-between" : "flex-end" }}
46
+ marginStyle={{ marginBottom: 16 }}
46
47
  >
47
48
  {error && <Text style={stylesInput.errorText}>{error}</Text>}
48
49
  <Text style={stylesInput.charCount}>{`${text.length}/${MAX_LENGTH}`}</Text>
@@ -3,7 +3,7 @@ import { theme } from "../../styles/theme/theme";
3
3
 
4
4
  const stylesInput = StyleSheet.create({
5
5
  label: {
6
- fontFamily: theme.fonts.inter_regular_400,
6
+ fontFamily: theme.fonts.inter_medium_500,
7
7
  fontSize: theme.fontSizes.md,
8
8
  color: theme.colors.black[100],
9
9
  marginBottom: theme.margins["1xs"],
@@ -0,0 +1,168 @@
1
+ /**
2
+ * IMPORTS
3
+ */
4
+ import React from "react";
5
+ import { Modal, View } from "react-native";
6
+
7
+ // components
8
+ import Box from "../../box";
9
+ import Typography from "../../typography";
10
+ import Button from "../../button";
11
+ import MaintenanceDescriptionInput from "../../maintenance-description-input";
12
+
13
+ // commons / svg
14
+ import { Icons } from "../../../common/icons-svg";
15
+
16
+ // typings
17
+ import type { IModalActivityReasonProps } from ".//interface";
18
+ import { asBaseComponent } from "../../../@types/as-base-component";
19
+
20
+ // styles
21
+ import { theme } from "../../../styles/theme/theme";
22
+
23
+ const MAX_LEN = 150;
24
+
25
+ const ModalActivityReason: React.FC<IModalActivityReasonProps<any>> = ({
26
+ visible,
27
+ onClose,
28
+ modalConfirm,
29
+ textTitle,
30
+ }) => {
31
+ const [textInput, setTextInput] = React.useState("");
32
+
33
+ const messaError =
34
+ textInput.length >= MAX_LEN ? `Limite máximo de ${MAX_LEN} caracteres atingido!` : "";
35
+
36
+ return (
37
+ <Modal animationType="fade" transparent visible={visible}>
38
+ <View
39
+ style={{
40
+ flex: 1,
41
+ justifyContent: "center",
42
+ alignItems: "center",
43
+ backgroundColor: theme.shadows.z1,
44
+ }}
45
+ >
46
+ <Box
47
+ width={"90%"}
48
+ backgroundColor={theme.colors.orange[500]}
49
+ borderStyled={{
50
+ borderRadius: theme.borderWidths.thick_medium,
51
+ }}
52
+ paddingStyle={{
53
+ paddingLeft: theme.paddings["2xs"],
54
+ paddingRight: theme.paddings["2xs"],
55
+ paddingTop: theme.paddings.sm,
56
+ paddingBottom: theme.paddings.sm,
57
+ }}
58
+ >
59
+ <Box
60
+ marginStyle={{ marginBottom: 10, marginLeft: 4 }}
61
+ flexStyle={{ flexDirection: "row", alignItems: "center" }}
62
+ >
63
+ <Icons
64
+ icon="EXCLAMATION_TRIANGLE"
65
+ color={theme.colors.orange[500]}
66
+ background={theme.colors.neutral[300]}
67
+ size={22}
68
+ />
69
+ <Typography
70
+ text={`${textTitle ?? "Motivo da exclusão"}`}
71
+ color={theme.colors.neutral[25]}
72
+ marginLeft={theme.margins["2xs"]}
73
+ fontFamily={theme.fonts.inter_bold_700}
74
+ size={theme.fontSizes.lg}
75
+ />
76
+ </Box>
77
+
78
+ <Box
79
+ backgroundColor={theme.colors.neutral[300]}
80
+ paddingStyle={{
81
+ padding: theme.paddings.xs,
82
+ }}
83
+ borderStyled={{
84
+ borderRadius: theme.borderWidths.thick_medium,
85
+ }}
86
+ >
87
+ <Box width="100%">
88
+ <MaintenanceDescriptionInput
89
+ label={`${textTitle || "Motivo da exclusão"}`}
90
+ placeholderTextColor={theme.colors.gray[700]}
91
+ placeholder="Motivo da exclusão"
92
+ onChangeText={setTextInput}
93
+ error={messaError}
94
+ />
95
+ </Box>
96
+ <Box
97
+ marginStyle={{ marginTop: 4 }}
98
+ flexStyle={{
99
+ flexDirection: "row",
100
+ justifyContent: "space-between",
101
+ }}
102
+ >
103
+ <Button
104
+ title="CANCELAR"
105
+ onPress={onClose}
106
+ width={"48%"}
107
+ height={40}
108
+ isLoading={false}
109
+ disabled={false}
110
+ backgroundColor={theme.colors.neutral[300]}
111
+ buttonTextStyle={{
112
+ color: theme.colors.blue[100],
113
+ fontFamily: "Inter-Medium",
114
+ fontSize: theme.fontSizes.xs,
115
+ fontWeight: "500",
116
+ }}
117
+ flexStyle={{
118
+ flexDirection: "row",
119
+ alignItems: "center",
120
+ justifyContent: "center",
121
+ textAlign: "center",
122
+ }}
123
+ borderStyled={{
124
+ borderWidth: theme.borderWidths.thin,
125
+ borderColor: theme.colors.blue[100],
126
+ borderRadius: theme.borderWidths.thick_medium,
127
+ }}
128
+ />
129
+ <Button
130
+ title="CONFIRMAR"
131
+ onPress={() => {
132
+ modalConfirm(textInput);
133
+ onClose();
134
+ }}
135
+ width={"48%"}
136
+ height={40}
137
+ isLoading={false}
138
+ disabled={false}
139
+ backgroundColor={theme.colors.blue[500]}
140
+ buttonTextStyle={{
141
+ color: theme.colors.neutral[25],
142
+ fontFamily: "Inter-Medium",
143
+ fontSize: theme.fontSizes.xs,
144
+ fontWeight: "500",
145
+ }}
146
+ flexStyle={{
147
+ flexDirection: "row",
148
+ alignItems: "center",
149
+ justifyContent: "center",
150
+ textAlign: "center",
151
+ }}
152
+ borderStyled={{
153
+ borderWidth: theme.borderWidths.thin,
154
+ borderColor: theme.colors.blue[100],
155
+ borderRadius: theme.borderWidths.thick_medium,
156
+ }}
157
+ />
158
+ </Box>
159
+ </Box>
160
+ </Box>
161
+ </View>
162
+ </Modal>
163
+ );
164
+ };
165
+
166
+ ModalActivityReason.displayName = "ModalActivityReason";
167
+
168
+ export default asBaseComponent(ModalActivityReason);
@@ -0,0 +1,9 @@
1
+ /* eslint-disable no-unused-vars */
2
+ interface IModalActivityReasonProps<T> {
3
+ visible: boolean;
4
+ onClose: () => void;
5
+ modalConfirm: (value: T) => void;
6
+ textTitle?: string;
7
+ }
8
+
9
+ export type { IModalActivityReasonProps };
@@ -0,0 +1,14 @@
1
+ /**
2
+ * IMPORTS
3
+ */
4
+ const OPTIONS = [
5
+ { label: "Disp com veículo parado", value: "option1" },
6
+ { label: "Operação com veículo", value: "option2" },
7
+ { label: "Em carga", value: "option3" },
8
+ { label: "Em descarga", value: "option4" },
9
+ ] as const;
10
+
11
+ /**
12
+ * EXPORTS
13
+ */
14
+ export { OPTIONS };