jornada-ui 0.4.10 → 0.4.12

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 (414) 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/inputs/input-date-time/index.js +136 -0
  23. package/lib/commonjs/components/inputs/input-date-time/index.js.map +1 -0
  24. package/lib/commonjs/components/inputs/input-date-time/interface.d.js +2 -0
  25. package/lib/commonjs/components/inputs/input-date-time/interface.d.js.map +1 -0
  26. package/lib/commonjs/components/inputs/input-date-time/styles.js +66 -0
  27. package/lib/commonjs/components/inputs/input-date-time/styles.js.map +1 -0
  28. package/lib/commonjs/components/list-devices/helpers/get-icon-by-status.js +25 -0
  29. package/lib/commonjs/components/list-devices/helpers/get-icon-by-status.js.map +1 -0
  30. package/lib/commonjs/components/list-devices/index.js +97 -0
  31. package/lib/commonjs/components/list-devices/index.js.map +1 -0
  32. package/lib/commonjs/components/list-devices/interface.d.js +2 -0
  33. package/lib/commonjs/components/list-devices/interface.d.js.map +1 -0
  34. package/lib/commonjs/components/list-devices/styles.js +60 -0
  35. package/lib/commonjs/components/list-devices/styles.js.map +1 -0
  36. package/lib/commonjs/components/list-supplies/index.js +171 -0
  37. package/lib/commonjs/components/list-supplies/index.js.map +1 -0
  38. package/lib/commonjs/components/list-supplies/interface.d.js +2 -0
  39. package/lib/commonjs/components/list-supplies/interface.d.js.map +1 -0
  40. package/lib/commonjs/components/maintenance-description-input/index.js +3 -0
  41. package/lib/commonjs/components/maintenance-description-input/index.js.map +1 -1
  42. package/lib/commonjs/components/maintenance-description-input/styles.js +1 -1
  43. package/lib/commonjs/components/maintenance-description-input/styles.js.map +1 -1
  44. package/lib/commonjs/components/modals/modal-activity-reason/index.js +170 -0
  45. package/lib/commonjs/components/modals/modal-activity-reason/index.js.map +1 -0
  46. package/lib/commonjs/components/modals/modal-activity-reason/interface.d.js +2 -0
  47. package/lib/commonjs/components/modals/modal-activity-reason/interface.d.js.map +1 -0
  48. package/lib/commonjs/components/modals/modal-create-activitie/helpers/index.js +27 -0
  49. package/lib/commonjs/components/modals/modal-create-activitie/helpers/index.js.map +1 -0
  50. package/lib/commonjs/components/modals/modal-create-activitie/index.js +203 -0
  51. package/lib/commonjs/components/modals/modal-create-activitie/index.js.map +1 -0
  52. package/lib/commonjs/components/modals/modal-create-activitie/interface.js +2 -0
  53. package/lib/commonjs/components/modals/modal-create-activitie/interface.js.map +1 -0
  54. package/lib/commonjs/components/modals/modal-create-activitie/styles.js +42 -0
  55. package/lib/commonjs/components/modals/modal-create-activitie/styles.js.map +1 -0
  56. package/lib/commonjs/components/modals/modal-exclude-activitie/index.js +2 -0
  57. package/lib/commonjs/components/modals/modal-exclude-activitie/index.js.map +1 -0
  58. package/lib/commonjs/components/modals/modal-journey-rectification/index.js +242 -0
  59. package/lib/commonjs/components/modals/modal-journey-rectification/index.js.map +1 -0
  60. package/lib/commonjs/components/modals/modal-journey-rectification/interface.d.js +2 -0
  61. package/lib/commonjs/components/modals/modal-journey-rectification/interface.d.js.map +1 -0
  62. package/lib/commonjs/components/modals/modal-to-confimations/index.js +182 -0
  63. package/lib/commonjs/components/modals/modal-to-confimations/index.js.map +1 -0
  64. package/lib/commonjs/components/modals/modal-to-confimations/interface.js +2 -0
  65. package/lib/commonjs/components/modals/modal-to-confimations/interface.js.map +1 -0
  66. package/lib/commonjs/components/selects/select-date-and-hours/index.js +80 -0
  67. package/lib/commonjs/components/selects/select-date-and-hours/index.js.map +1 -0
  68. package/lib/commonjs/components/selects/select-date-and-hours/interface.js +6 -0
  69. package/lib/commonjs/components/selects/select-date-and-hours/interface.js.map +1 -0
  70. package/lib/commonjs/components/selects/select-date-and-hours/styles.js +34 -0
  71. package/lib/commonjs/components/selects/select-date-and-hours/styles.js.map +1 -0
  72. package/lib/commonjs/components/selects/select-option/index.js +4 -2
  73. package/lib/commonjs/components/selects/select-option/index.js.map +1 -1
  74. package/lib/commonjs/components/selects/select-option/styles.js +6 -7
  75. package/lib/commonjs/components/selects/select-option/styles.js.map +1 -1
  76. package/lib/commonjs/components/supply-error-card/index.js +7 -6
  77. package/lib/commonjs/components/supply-error-card/index.js.map +1 -1
  78. package/lib/commonjs/components/toast-message/index.js +8 -7
  79. package/lib/commonjs/components/toast-message/index.js.map +1 -1
  80. package/lib/commonjs/components/travel-history/index.js +7 -7
  81. package/lib/commonjs/components/travel-history/index.js.map +1 -1
  82. package/lib/commonjs/components/trip-details-card/index.js +94 -13
  83. package/lib/commonjs/components/trip-details-card/index.js.map +1 -1
  84. package/lib/commonjs/components/typography/index.js +5 -5
  85. package/lib/commonjs/components/typography/index.js.map +1 -1
  86. package/lib/commonjs/index.js +53 -4
  87. package/lib/commonjs/index.js.map +1 -1
  88. package/lib/commonjs/stories/list-devices/list-devices.stories.js +146 -0
  89. package/lib/commonjs/stories/list-devices/list-devices.stories.js.map +1 -0
  90. package/lib/commonjs/stories/list-supplies/list-supplies.stories.js +69 -0
  91. package/lib/commonjs/stories/list-supplies/list-supplies.stories.js.map +1 -0
  92. package/lib/commonjs/stories/modal-activity-reason/modal-activity-reason.stories.js +63 -0
  93. package/lib/commonjs/stories/modal-activity-reason/modal-activity-reason.stories.js.map +1 -0
  94. package/lib/commonjs/stories/modal-journey-rectification/modal-journey-rectification.stories.js +63 -0
  95. package/lib/commonjs/stories/modal-journey-rectification/modal-journey-rectification.stories.js.map +1 -0
  96. package/lib/commonjs/stories/supply-error-card/supply-error-card.stories.js +12 -12
  97. package/lib/commonjs/stories/supply-error-card/supply-error-card.stories.js.map +1 -1
  98. package/lib/commonjs/stories/trip-details-card/trip-details-card.stories.js +39 -6
  99. package/lib/commonjs/stories/trip-details-card/trip-details-card.stories.js.map +1 -1
  100. package/lib/commonjs/styles/theme/theme.js +1 -0
  101. package/lib/commonjs/styles/theme/theme.js.map +1 -1
  102. package/lib/module/common/icons-svg/bluetooth/index.js +45 -27
  103. package/lib/module/common/icons-svg/bluetooth/index.js.map +1 -1
  104. package/lib/module/common/icons-svg/constants/index.js +7 -5
  105. package/lib/module/common/icons-svg/constants/index.js.map +1 -1
  106. package/lib/module/common/icons-svg/index.js +19 -4
  107. package/lib/module/common/icons-svg/index.js.map +1 -1
  108. package/lib/module/common/icons-svg/plus-container/index.js +36 -0
  109. package/lib/module/common/icons-svg/plus-container/index.js.map +1 -0
  110. package/lib/module/common/icons-svg/trash/index.js +34 -0
  111. package/lib/module/common/icons-svg/trash/index.js.map +1 -0
  112. package/lib/module/components/activity-step/components/activite-row/index.js +134 -0
  113. package/lib/module/components/activity-step/components/activite-row/index.js.map +1 -0
  114. package/lib/module/components/activity-step/index.js +73 -0
  115. package/lib/module/components/activity-step/index.js.map +1 -0
  116. package/lib/module/components/activity-step/interface.js +4 -0
  117. package/lib/module/components/activity-step/interface.js.map +1 -0
  118. package/lib/module/components/activity-step/styles.js +83 -0
  119. package/lib/module/components/activity-step/styles.js.map +1 -0
  120. package/lib/module/components/card-scheduled-journey/index.js +8 -6
  121. package/lib/module/components/card-scheduled-journey/index.js.map +1 -1
  122. package/lib/module/components/inputs/input-date-time/index.js +130 -0
  123. package/lib/module/components/inputs/input-date-time/index.js.map +1 -0
  124. package/lib/module/components/inputs/input-date-time/interface.d.js +2 -0
  125. package/lib/module/components/inputs/input-date-time/interface.d.js.map +1 -0
  126. package/lib/module/components/inputs/input-date-time/styles.js +62 -0
  127. package/lib/module/components/inputs/input-date-time/styles.js.map +1 -0
  128. package/lib/module/components/list-devices/helpers/get-icon-by-status.js +21 -0
  129. package/lib/module/components/list-devices/helpers/get-icon-by-status.js.map +1 -0
  130. package/lib/module/components/list-devices/index.js +93 -0
  131. package/lib/module/components/list-devices/index.js.map +1 -0
  132. package/lib/module/components/list-devices/interface.d.js +2 -0
  133. package/lib/module/components/list-devices/interface.d.js.map +1 -0
  134. package/lib/module/components/list-devices/styles.js +56 -0
  135. package/lib/module/components/list-devices/styles.js.map +1 -0
  136. package/lib/module/components/list-supplies/index.js +165 -0
  137. package/lib/module/components/list-supplies/index.js.map +1 -0
  138. package/lib/module/components/list-supplies/interface.d.js +2 -0
  139. package/lib/module/components/list-supplies/interface.d.js.map +1 -0
  140. package/lib/module/components/maintenance-description-input/index.js +3 -0
  141. package/lib/module/components/maintenance-description-input/index.js.map +1 -1
  142. package/lib/module/components/maintenance-description-input/styles.js +1 -1
  143. package/lib/module/components/maintenance-description-input/styles.js.map +1 -1
  144. package/lib/module/components/modals/modal-activity-reason/index.js +165 -0
  145. package/lib/module/components/modals/modal-activity-reason/index.js.map +1 -0
  146. package/lib/module/components/modals/modal-activity-reason/interface.d.js +2 -0
  147. package/lib/module/components/modals/modal-activity-reason/interface.d.js.map +1 -0
  148. package/lib/module/components/modals/modal-create-activitie/helpers/index.js +24 -0
  149. package/lib/module/components/modals/modal-create-activitie/helpers/index.js.map +1 -0
  150. package/lib/module/components/modals/modal-create-activitie/index.js +196 -0
  151. package/lib/module/components/modals/modal-create-activitie/index.js.map +1 -0
  152. package/lib/module/components/modals/modal-create-activitie/interface.js +2 -0
  153. package/lib/module/components/modals/modal-create-activitie/interface.js.map +1 -0
  154. package/lib/module/components/modals/modal-create-activitie/styles.js +39 -0
  155. package/lib/module/components/modals/modal-create-activitie/styles.js.map +1 -0
  156. package/lib/module/components/modals/modal-exclude-activitie/index.js +2 -0
  157. package/lib/module/components/modals/modal-exclude-activitie/index.js.map +1 -0
  158. package/lib/module/components/modals/modal-journey-rectification/index.js +236 -0
  159. package/lib/module/components/modals/modal-journey-rectification/index.js.map +1 -0
  160. package/lib/module/components/modals/modal-journey-rectification/interface.d.js +2 -0
  161. package/lib/module/components/modals/modal-journey-rectification/interface.d.js.map +1 -0
  162. package/lib/module/components/modals/modal-to-confimations/index.js +179 -0
  163. package/lib/module/components/modals/modal-to-confimations/index.js.map +1 -0
  164. package/lib/module/components/modals/modal-to-confimations/interface.js +2 -0
  165. package/lib/module/components/modals/modal-to-confimations/interface.js.map +1 -0
  166. package/lib/module/components/selects/select-date-and-hours/index.js +74 -0
  167. package/lib/module/components/selects/select-date-and-hours/index.js.map +1 -0
  168. package/lib/module/components/selects/select-date-and-hours/interface.js +4 -0
  169. package/lib/module/components/selects/select-date-and-hours/interface.js.map +1 -0
  170. package/lib/module/components/selects/select-date-and-hours/styles.js +31 -0
  171. package/lib/module/components/selects/select-date-and-hours/styles.js.map +1 -0
  172. package/lib/module/components/selects/select-option/index.js +4 -2
  173. package/lib/module/components/selects/select-option/index.js.map +1 -1
  174. package/lib/module/components/selects/select-option/styles.js +6 -7
  175. package/lib/module/components/selects/select-option/styles.js.map +1 -1
  176. package/lib/module/components/supply-error-card/index.js +7 -6
  177. package/lib/module/components/supply-error-card/index.js.map +1 -1
  178. package/lib/module/components/toast-message/index.js +8 -7
  179. package/lib/module/components/toast-message/index.js.map +1 -1
  180. package/lib/module/components/travel-history/index.js +7 -7
  181. package/lib/module/components/travel-history/index.js.map +1 -1
  182. package/lib/module/components/trip-details-card/index.js +94 -13
  183. package/lib/module/components/trip-details-card/index.js.map +1 -1
  184. package/lib/module/components/typography/index.js +5 -5
  185. package/lib/module/components/typography/index.js.map +1 -1
  186. package/lib/module/index.js +7 -0
  187. package/lib/module/index.js.map +1 -1
  188. package/lib/module/stories/list-devices/list-devices.stories.js +140 -0
  189. package/lib/module/stories/list-devices/list-devices.stories.js.map +1 -0
  190. package/lib/module/stories/list-supplies/list-supplies.stories.js +63 -0
  191. package/lib/module/stories/list-supplies/list-supplies.stories.js.map +1 -0
  192. package/lib/module/stories/modal-activity-reason/modal-activity-reason.stories.js +57 -0
  193. package/lib/module/stories/modal-activity-reason/modal-activity-reason.stories.js.map +1 -0
  194. package/lib/module/stories/modal-journey-rectification/modal-journey-rectification.stories.js +57 -0
  195. package/lib/module/stories/modal-journey-rectification/modal-journey-rectification.stories.js.map +1 -0
  196. package/lib/module/stories/supply-error-card/supply-error-card.stories.js +12 -12
  197. package/lib/module/stories/supply-error-card/supply-error-card.stories.js.map +1 -1
  198. package/lib/module/stories/trip-details-card/trip-details-card.stories.js +39 -6
  199. package/lib/module/stories/trip-details-card/trip-details-card.stories.js.map +1 -1
  200. package/lib/module/styles/theme/theme.js +1 -0
  201. package/lib/module/styles/theme/theme.js.map +1 -1
  202. package/lib/typescript/commonjs/src/common/icons-svg/bluetooth/index.d.ts +5 -1
  203. package/lib/typescript/commonjs/src/common/icons-svg/bluetooth/index.d.ts.map +1 -1
  204. package/lib/typescript/commonjs/src/common/icons-svg/constants/index.d.ts +2 -0
  205. package/lib/typescript/commonjs/src/common/icons-svg/constants/index.d.ts.map +1 -1
  206. package/lib/typescript/commonjs/src/common/icons-svg/index.d.ts.map +1 -1
  207. package/lib/typescript/commonjs/src/common/icons-svg/plus-container/index.d.ts +11 -0
  208. package/lib/typescript/commonjs/src/common/icons-svg/plus-container/index.d.ts.map +1 -0
  209. package/lib/typescript/commonjs/src/common/icons-svg/trash/index.d.ts +11 -0
  210. package/lib/typescript/commonjs/src/common/icons-svg/trash/index.d.ts.map +1 -0
  211. package/lib/typescript/commonjs/src/components/activity-step/components/activite-row/index.d.ts +11 -0
  212. package/lib/typescript/commonjs/src/components/activity-step/components/activite-row/index.d.ts.map +1 -0
  213. package/lib/typescript/commonjs/src/components/activity-step/index.d.ts +17 -0
  214. package/lib/typescript/commonjs/src/components/activity-step/index.d.ts.map +1 -0
  215. package/lib/typescript/commonjs/src/components/activity-step/interface.d.ts +40 -0
  216. package/lib/typescript/commonjs/src/components/activity-step/interface.d.ts.map +1 -0
  217. package/lib/typescript/commonjs/src/components/activity-step/styles.d.ts +75 -0
  218. package/lib/typescript/commonjs/src/components/activity-step/styles.d.ts.map +1 -0
  219. package/lib/typescript/commonjs/src/components/card-scheduled-journey/index.d.ts +2 -1
  220. package/lib/typescript/commonjs/src/components/card-scheduled-journey/index.d.ts.map +1 -1
  221. package/lib/typescript/commonjs/src/components/inputs/input-date-time/index.d.ts +8 -0
  222. package/lib/typescript/commonjs/src/components/inputs/input-date-time/index.d.ts.map +1 -0
  223. package/lib/typescript/commonjs/src/components/inputs/input-date-time/styles.d.ts +59 -0
  224. package/lib/typescript/commonjs/src/components/inputs/input-date-time/styles.d.ts.map +1 -0
  225. package/lib/typescript/commonjs/src/components/list-devices/helpers/get-icon-by-status.d.ts +15 -0
  226. package/lib/typescript/commonjs/src/components/list-devices/helpers/get-icon-by-status.d.ts.map +1 -0
  227. package/lib/typescript/commonjs/src/components/list-devices/index.d.ts +11 -0
  228. package/lib/typescript/commonjs/src/components/list-devices/index.d.ts.map +1 -0
  229. package/lib/typescript/commonjs/src/components/list-devices/styles.d.ts +57 -0
  230. package/lib/typescript/commonjs/src/components/list-devices/styles.d.ts.map +1 -0
  231. package/lib/typescript/commonjs/src/components/list-supplies/index.d.ts +8 -0
  232. package/lib/typescript/commonjs/src/components/list-supplies/index.d.ts.map +1 -0
  233. package/lib/typescript/commonjs/src/components/maintenance-description-input/index.d.ts.map +1 -1
  234. package/lib/typescript/commonjs/src/components/modals/modal-activity-reason/index.d.ts +8 -0
  235. package/lib/typescript/commonjs/src/components/modals/modal-activity-reason/index.d.ts.map +1 -0
  236. package/lib/typescript/commonjs/src/components/modals/modal-create-activitie/helpers/index.d.ts +21 -0
  237. package/lib/typescript/commonjs/src/components/modals/modal-create-activitie/helpers/index.d.ts.map +1 -0
  238. package/lib/typescript/commonjs/src/components/modals/modal-create-activitie/index.d.ts +8 -0
  239. package/lib/typescript/commonjs/src/components/modals/modal-create-activitie/index.d.ts.map +1 -0
  240. package/lib/typescript/commonjs/src/components/modals/modal-create-activitie/interface.d.ts +19 -0
  241. package/lib/typescript/commonjs/src/components/modals/modal-create-activitie/interface.d.ts.map +1 -0
  242. package/lib/typescript/commonjs/src/components/modals/modal-create-activitie/styles.d.ts +33 -0
  243. package/lib/typescript/commonjs/src/components/modals/modal-create-activitie/styles.d.ts.map +1 -0
  244. package/lib/typescript/commonjs/src/components/modals/modal-exclude-activitie/index.d.ts +1 -0
  245. package/lib/typescript/commonjs/src/components/modals/modal-exclude-activitie/index.d.ts.map +1 -0
  246. package/lib/typescript/commonjs/src/components/modals/modal-journey-rectification/index.d.ts +8 -0
  247. package/lib/typescript/commonjs/src/components/modals/modal-journey-rectification/index.d.ts.map +1 -0
  248. package/lib/typescript/commonjs/src/components/modals/modal-to-confimations/index.d.ts +8 -0
  249. package/lib/typescript/commonjs/src/components/modals/modal-to-confimations/index.d.ts.map +1 -0
  250. package/lib/typescript/commonjs/src/components/modals/modal-to-confimations/interface.d.ts +28 -0
  251. package/lib/typescript/commonjs/src/components/modals/modal-to-confimations/interface.d.ts.map +1 -0
  252. package/lib/typescript/commonjs/src/components/selects/select-date-and-hours/index.d.ts +13 -0
  253. package/lib/typescript/commonjs/src/components/selects/select-date-and-hours/index.d.ts.map +1 -0
  254. package/lib/typescript/commonjs/src/components/selects/select-date-and-hours/interface.d.ts +22 -0
  255. package/lib/typescript/commonjs/src/components/selects/select-date-and-hours/interface.d.ts.map +1 -0
  256. package/lib/typescript/commonjs/src/components/selects/select-date-and-hours/styles.d.ts +26 -0
  257. package/lib/typescript/commonjs/src/components/selects/select-date-and-hours/styles.d.ts.map +1 -0
  258. package/lib/typescript/commonjs/src/components/selects/select-option/index.d.ts +1 -0
  259. package/lib/typescript/commonjs/src/components/selects/select-option/index.d.ts.map +1 -1
  260. package/lib/typescript/commonjs/src/components/selects/select-option/styles.d.ts +0 -1
  261. package/lib/typescript/commonjs/src/components/selects/select-option/styles.d.ts.map +1 -1
  262. package/lib/typescript/commonjs/src/components/supply-error-card/index.d.ts +3 -8
  263. package/lib/typescript/commonjs/src/components/supply-error-card/index.d.ts.map +1 -1
  264. package/lib/typescript/commonjs/src/components/toast-message/index.d.ts.map +1 -1
  265. package/lib/typescript/commonjs/src/components/trip-details-card/index.d.ts.map +1 -1
  266. package/lib/typescript/commonjs/src/index.d.ts +7 -0
  267. package/lib/typescript/commonjs/src/index.d.ts.map +1 -1
  268. package/lib/typescript/commonjs/src/stories/list-devices/list-devices.stories.d.ts +22 -0
  269. package/lib/typescript/commonjs/src/stories/list-devices/list-devices.stories.d.ts.map +1 -0
  270. package/lib/typescript/commonjs/src/stories/list-supplies/list-supplies.stories.d.ts +10 -0
  271. package/lib/typescript/commonjs/src/stories/list-supplies/list-supplies.stories.d.ts.map +1 -0
  272. package/lib/typescript/commonjs/src/stories/modal-activity-reason/modal-activity-reason.stories.d.ts +10 -0
  273. package/lib/typescript/commonjs/src/stories/modal-activity-reason/modal-activity-reason.stories.d.ts.map +1 -0
  274. package/lib/typescript/commonjs/src/stories/modal-journey-rectification/modal-journey-rectification.stories.d.ts +10 -0
  275. package/lib/typescript/commonjs/src/stories/modal-journey-rectification/modal-journey-rectification.stories.d.ts.map +1 -0
  276. package/lib/typescript/commonjs/src/stories/trip-details-card/trip-details-card.stories.d.ts.map +1 -1
  277. package/lib/typescript/commonjs/src/styles/global/theme-provider.d.ts +1 -0
  278. package/lib/typescript/commonjs/src/styles/global/theme-provider.d.ts.map +1 -1
  279. package/lib/typescript/commonjs/src/styles/theme/theme.d.ts +1 -0
  280. package/lib/typescript/commonjs/src/styles/theme/theme.d.ts.map +1 -1
  281. package/lib/typescript/module/src/common/icons-svg/bluetooth/index.d.ts +5 -1
  282. package/lib/typescript/module/src/common/icons-svg/bluetooth/index.d.ts.map +1 -1
  283. package/lib/typescript/module/src/common/icons-svg/constants/index.d.ts +2 -0
  284. package/lib/typescript/module/src/common/icons-svg/constants/index.d.ts.map +1 -1
  285. package/lib/typescript/module/src/common/icons-svg/index.d.ts.map +1 -1
  286. package/lib/typescript/module/src/common/icons-svg/plus-container/index.d.ts +11 -0
  287. package/lib/typescript/module/src/common/icons-svg/plus-container/index.d.ts.map +1 -0
  288. package/lib/typescript/module/src/common/icons-svg/trash/index.d.ts +11 -0
  289. package/lib/typescript/module/src/common/icons-svg/trash/index.d.ts.map +1 -0
  290. package/lib/typescript/module/src/components/activity-step/components/activite-row/index.d.ts +11 -0
  291. package/lib/typescript/module/src/components/activity-step/components/activite-row/index.d.ts.map +1 -0
  292. package/lib/typescript/module/src/components/activity-step/index.d.ts +17 -0
  293. package/lib/typescript/module/src/components/activity-step/index.d.ts.map +1 -0
  294. package/lib/typescript/module/src/components/activity-step/interface.d.ts +40 -0
  295. package/lib/typescript/module/src/components/activity-step/interface.d.ts.map +1 -0
  296. package/lib/typescript/module/src/components/activity-step/styles.d.ts +75 -0
  297. package/lib/typescript/module/src/components/activity-step/styles.d.ts.map +1 -0
  298. package/lib/typescript/module/src/components/card-scheduled-journey/index.d.ts +2 -1
  299. package/lib/typescript/module/src/components/card-scheduled-journey/index.d.ts.map +1 -1
  300. package/lib/typescript/module/src/components/inputs/input-date-time/index.d.ts +8 -0
  301. package/lib/typescript/module/src/components/inputs/input-date-time/index.d.ts.map +1 -0
  302. package/lib/typescript/module/src/components/inputs/input-date-time/styles.d.ts +59 -0
  303. package/lib/typescript/module/src/components/inputs/input-date-time/styles.d.ts.map +1 -0
  304. package/lib/typescript/module/src/components/list-devices/helpers/get-icon-by-status.d.ts +15 -0
  305. package/lib/typescript/module/src/components/list-devices/helpers/get-icon-by-status.d.ts.map +1 -0
  306. package/lib/typescript/module/src/components/list-devices/index.d.ts +11 -0
  307. package/lib/typescript/module/src/components/list-devices/index.d.ts.map +1 -0
  308. package/lib/typescript/module/src/components/list-devices/styles.d.ts +57 -0
  309. package/lib/typescript/module/src/components/list-devices/styles.d.ts.map +1 -0
  310. package/lib/typescript/module/src/components/list-supplies/index.d.ts +8 -0
  311. package/lib/typescript/module/src/components/list-supplies/index.d.ts.map +1 -0
  312. package/lib/typescript/module/src/components/maintenance-description-input/index.d.ts.map +1 -1
  313. package/lib/typescript/module/src/components/modals/modal-activity-reason/index.d.ts +8 -0
  314. package/lib/typescript/module/src/components/modals/modal-activity-reason/index.d.ts.map +1 -0
  315. package/lib/typescript/module/src/components/modals/modal-create-activitie/helpers/index.d.ts +21 -0
  316. package/lib/typescript/module/src/components/modals/modal-create-activitie/helpers/index.d.ts.map +1 -0
  317. package/lib/typescript/module/src/components/modals/modal-create-activitie/index.d.ts +8 -0
  318. package/lib/typescript/module/src/components/modals/modal-create-activitie/index.d.ts.map +1 -0
  319. package/lib/typescript/module/src/components/modals/modal-create-activitie/interface.d.ts +19 -0
  320. package/lib/typescript/module/src/components/modals/modal-create-activitie/interface.d.ts.map +1 -0
  321. package/lib/typescript/module/src/components/modals/modal-create-activitie/styles.d.ts +33 -0
  322. package/lib/typescript/module/src/components/modals/modal-create-activitie/styles.d.ts.map +1 -0
  323. package/lib/typescript/module/src/components/modals/modal-exclude-activitie/index.d.ts +1 -0
  324. package/lib/typescript/module/src/components/modals/modal-exclude-activitie/index.d.ts.map +1 -0
  325. package/lib/typescript/module/src/components/modals/modal-journey-rectification/index.d.ts +8 -0
  326. package/lib/typescript/module/src/components/modals/modal-journey-rectification/index.d.ts.map +1 -0
  327. package/lib/typescript/module/src/components/modals/modal-to-confimations/index.d.ts +8 -0
  328. package/lib/typescript/module/src/components/modals/modal-to-confimations/index.d.ts.map +1 -0
  329. package/lib/typescript/module/src/components/modals/modal-to-confimations/interface.d.ts +28 -0
  330. package/lib/typescript/module/src/components/modals/modal-to-confimations/interface.d.ts.map +1 -0
  331. package/lib/typescript/module/src/components/selects/select-date-and-hours/index.d.ts +13 -0
  332. package/lib/typescript/module/src/components/selects/select-date-and-hours/index.d.ts.map +1 -0
  333. package/lib/typescript/module/src/components/selects/select-date-and-hours/interface.d.ts +22 -0
  334. package/lib/typescript/module/src/components/selects/select-date-and-hours/interface.d.ts.map +1 -0
  335. package/lib/typescript/module/src/components/selects/select-date-and-hours/styles.d.ts +26 -0
  336. package/lib/typescript/module/src/components/selects/select-date-and-hours/styles.d.ts.map +1 -0
  337. package/lib/typescript/module/src/components/selects/select-option/index.d.ts +1 -0
  338. package/lib/typescript/module/src/components/selects/select-option/index.d.ts.map +1 -1
  339. package/lib/typescript/module/src/components/selects/select-option/styles.d.ts +0 -1
  340. package/lib/typescript/module/src/components/selects/select-option/styles.d.ts.map +1 -1
  341. package/lib/typescript/module/src/components/supply-error-card/index.d.ts +3 -8
  342. package/lib/typescript/module/src/components/supply-error-card/index.d.ts.map +1 -1
  343. package/lib/typescript/module/src/components/toast-message/index.d.ts.map +1 -1
  344. package/lib/typescript/module/src/components/trip-details-card/index.d.ts.map +1 -1
  345. package/lib/typescript/module/src/index.d.ts +7 -0
  346. package/lib/typescript/module/src/index.d.ts.map +1 -1
  347. package/lib/typescript/module/src/stories/list-devices/list-devices.stories.d.ts +22 -0
  348. package/lib/typescript/module/src/stories/list-devices/list-devices.stories.d.ts.map +1 -0
  349. package/lib/typescript/module/src/stories/list-supplies/list-supplies.stories.d.ts +10 -0
  350. package/lib/typescript/module/src/stories/list-supplies/list-supplies.stories.d.ts.map +1 -0
  351. package/lib/typescript/module/src/stories/modal-activity-reason/modal-activity-reason.stories.d.ts +10 -0
  352. package/lib/typescript/module/src/stories/modal-activity-reason/modal-activity-reason.stories.d.ts.map +1 -0
  353. package/lib/typescript/module/src/stories/modal-journey-rectification/modal-journey-rectification.stories.d.ts +10 -0
  354. package/lib/typescript/module/src/stories/modal-journey-rectification/modal-journey-rectification.stories.d.ts.map +1 -0
  355. package/lib/typescript/module/src/stories/trip-details-card/trip-details-card.stories.d.ts.map +1 -1
  356. package/lib/typescript/module/src/styles/global/theme-provider.d.ts +1 -0
  357. package/lib/typescript/module/src/styles/global/theme-provider.d.ts.map +1 -1
  358. package/lib/typescript/module/src/styles/theme/theme.d.ts +1 -0
  359. package/lib/typescript/module/src/styles/theme/theme.d.ts.map +1 -1
  360. package/package.json +2 -1
  361. package/src/common/icons-svg/bluetooth/index.tsx +51 -24
  362. package/src/common/icons-svg/constants/index.ts +67 -65
  363. package/src/common/icons-svg/index.tsx +289 -280
  364. package/src/common/icons-svg/plus-container/index.tsx +32 -0
  365. package/src/common/icons-svg/trash/index.tsx +31 -0
  366. package/src/components/activity-step/components/activite-row/index.tsx +141 -0
  367. package/src/components/activity-step/index.tsx +73 -0
  368. package/src/components/activity-step/interface.ts +54 -0
  369. package/src/components/activity-step/styles.ts +72 -0
  370. package/src/components/card-scheduled-journey/index.tsx +140 -138
  371. package/src/components/card-scheduled-journey/interface.d.ts +145 -140
  372. package/src/components/inputs/input-date-time/index.tsx +133 -0
  373. package/src/components/inputs/input-date-time/interface.d.ts +25 -0
  374. package/src/components/inputs/input-date-time/styles.ts +63 -0
  375. package/src/components/list-devices/helpers/get-icon-by-status.tsx +20 -0
  376. package/src/components/list-devices/index.tsx +102 -0
  377. package/src/components/list-devices/interface.d.ts +36 -0
  378. package/src/components/list-devices/styles.ts +68 -0
  379. package/src/components/list-supplies/index.tsx +153 -0
  380. package/src/components/list-supplies/interface.d.ts +9 -0
  381. package/src/components/maintenance-description-input/index.tsx +1 -0
  382. package/src/components/maintenance-description-input/styles.ts +1 -1
  383. package/src/components/modals/modal-activity-reason/index.tsx +168 -0
  384. package/src/components/modals/modal-activity-reason/interface.d.ts +9 -0
  385. package/src/components/modals/modal-create-activitie/helpers/index.ts +14 -0
  386. package/src/components/modals/modal-create-activitie/index.tsx +210 -0
  387. package/src/components/modals/modal-create-activitie/interface.ts +22 -0
  388. package/src/components/modals/modal-create-activitie/styles.ts +24 -0
  389. package/src/components/modals/modal-exclude-activitie/index.ts +0 -0
  390. package/src/components/modals/modal-journey-rectification/index.tsx +236 -0
  391. package/src/components/modals/modal-journey-rectification/interface.d.ts +10 -0
  392. package/src/components/modals/modal-to-confimations/index.tsx +182 -0
  393. package/src/components/modals/modal-to-confimations/interface.ts +36 -0
  394. package/src/components/selects/select-date-and-hours/index.tsx +70 -0
  395. package/src/components/selects/select-date-and-hours/interface.ts +31 -0
  396. package/src/components/selects/select-date-and-hours/styles.ts +24 -0
  397. package/src/components/selects/select-option/index.tsx +2 -1
  398. package/src/components/selects/select-option/interface.d.ts +1 -1
  399. package/src/components/selects/select-option/styles.ts +74 -75
  400. package/src/components/supply-error-card/index.tsx +10 -6
  401. package/src/components/supply-error-card/interface.d.ts +3 -9
  402. package/src/components/toast-message/index.tsx +75 -74
  403. package/src/components/travel-history/index.tsx +7 -7
  404. package/src/components/trip-details-card/index.tsx +89 -12
  405. package/src/components/trip-details-card/interface.d.ts +4 -1
  406. package/src/components/typography/index.tsx +78 -78
  407. package/src/index.tsx +7 -0
  408. package/src/stories/list-devices/list-devices.stories.tsx +114 -0
  409. package/src/stories/list-supplies/list-supplies.stories.tsx +66 -0
  410. package/src/stories/modal-activity-reason/modal-activity-reason.stories.tsx +60 -0
  411. package/src/stories/modal-journey-rectification/modal-journey-rectification.stories.tsx +60 -0
  412. package/src/stories/supply-error-card/supply-error-card.stories.tsx +12 -12
  413. package/src/stories/trip-details-card/trip-details-card.stories.tsx +38 -5
  414. package/src/styles/theme/theme.ts +1 -0
@@ -0,0 +1,146 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = exports.NaoControlado = exports.Desabilitado = exports.Controlado = exports.Basico = void 0;
7
+ var _react = _interopRequireDefault(require("react"));
8
+ var _reactNative = require("react-native");
9
+ var _index = _interopRequireDefault(require("../../components/list-devices/index.js"));
10
+ var _theme = require("../../styles/theme/theme.js");
11
+ var _jsxRuntime = require("react/jsx-runtime");
12
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
13
+ /**
14
+ * IMPORTS
15
+ */
16
+
17
+ // components
18
+
19
+ // styles
20
+
21
+ const meta = {
22
+ title: "componente/ListDevices",
23
+ component: _index.default,
24
+ parameters: {
25
+ docs: {
26
+ description: {
27
+ component: `
28
+ ### ListDevices
29
+
30
+ Exibe uma lista de dispositivos Bluetooth. **Não há mudança visual** ao clicar/selecionar.
31
+ A seleção é apenas lógica (armazenada via \`onSelect\` e/ou \`selectedId/defaultSelectedId\`).
32
+
33
+ **Props**
34
+ - \`data: { id: number; nameDevice: string; macDevice?: string }\`[]
35
+ - \`titleColor?: string\`
36
+ - \`textColorDescription?: string\`
37
+ - \`selectedId?: number | null\` (controlado, sem efeito visual)
38
+ - \`defaultSelectedId?: number | null\` (não-controlado)
39
+ - \`onSelect?: (device) => void\`
40
+ - \`disabled?: boolean\`
41
+ `
42
+ }
43
+ }
44
+ },
45
+ argTypes: {
46
+ titleColor: {
47
+ control: "color",
48
+ description: "Cor do título (nameDevice)"
49
+ },
50
+ textColorDescription: {
51
+ control: "color",
52
+ description: "Cor da descrição (MAC)"
53
+ },
54
+ selectedId: {
55
+ control: "number",
56
+ description: "ID selecionado (controlado)"
57
+ },
58
+ defaultSelectedId: {
59
+ control: "number",
60
+ description: "ID inicial (não-controlado)"
61
+ },
62
+ disabled: {
63
+ control: "boolean",
64
+ description: "Desabilita interação"
65
+ },
66
+ onSelect: {
67
+ action: "onSelect",
68
+ description: "Callback ao selecionar"
69
+ },
70
+ data: {
71
+ control: "object",
72
+ description: "Itens da lista"
73
+ }
74
+ },
75
+ decorators: [Story => /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
76
+ style: {
77
+ padding: 16,
78
+ backgroundColor: _theme.theme.colors.neutral[400]
79
+ },
80
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(Story, {})
81
+ })]
82
+ };
83
+ var _default = exports.default = meta;
84
+ const sampleData = [{
85
+ id: 1,
86
+ nameDevice: "Dispositivo X",
87
+ macDevice: "AA:BB:CC:DD:EE:01"
88
+ }, {
89
+ id: 2,
90
+ nameDevice: "Celular Y Exemplo",
91
+ macDevice: "AA:BB:CC:DD:EE:02"
92
+ }, {
93
+ id: 3,
94
+ nameDevice: "Celular A Exemplo",
95
+ macDevice: "AA:BB:CC:DD:EE:03"
96
+ }, {
97
+ id: 4,
98
+ nameDevice: "Celular B Exemplo",
99
+ macDevice: "AA:BB:CC:DD:EE:04"
100
+ }];
101
+ const NaoControlado = exports.NaoControlado = {
102
+ name: "Não-controlado (memória interna, sem visual)",
103
+ args: {
104
+ data: sampleData,
105
+ defaultSelectedId: 2
106
+ }
107
+ };
108
+ const Controlado = exports.Controlado = {
109
+ name: "Controlado (selectedId + onSelect, sem visual)",
110
+ args: {
111
+ data: sampleData
112
+ },
113
+ render: (args = {}) => {
114
+ const [selectedId, setSelectedId] = _react.default.useState(1);
115
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.default, {
116
+ ...args,
117
+ selectedId: selectedId,
118
+ onSelect: device => {
119
+ setSelectedId(device.id);
120
+ args.onSelect?.(device);
121
+ }
122
+ });
123
+ }
124
+ };
125
+
126
+ /** Sem seleção inicial, apenas demonstrativo */
127
+ const Basico = exports.Basico = {
128
+ name: "Básico (sem seleção inicial)",
129
+ args: {
130
+ data: sampleData,
131
+ titleColor: _theme.theme.colors.black[25],
132
+ textColorDescription: _theme.theme.colors.gray[700]
133
+ }
134
+ };
135
+
136
+ /** Interação desabilitada */
137
+ const Desabilitado = exports.Desabilitado = {
138
+ name: "Desabilitado",
139
+ args: {
140
+ data: sampleData,
141
+ disabled: true,
142
+ titleColor: _theme.theme.colors.black[25],
143
+ textColorDescription: _theme.theme.colors.gray[700]
144
+ }
145
+ };
146
+ //# sourceMappingURL=list-devices.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_index","_theme","_jsxRuntime","e","__esModule","default","meta","title","component","ListDevices","parameters","docs","description","argTypes","titleColor","control","textColorDescription","selectedId","defaultSelectedId","disabled","onSelect","action","data","decorators","Story","jsx","View","style","padding","backgroundColor","theme","colors","neutral","children","_default","exports","sampleData","id","nameDevice","macDevice","NaoControlado","name","args","Controlado","render","setSelectedId","React","useState","device","Basico","black","gray","Desabilitado"],"sourceRoot":"..\\..\\..\\..\\src","sources":["stories/list-devices/list-devices.stories.tsx"],"mappings":";;;;;;AAGA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEA,IAAAC,YAAA,GAAAD,OAAA;AAGA,IAAAE,MAAA,GAAAH,sBAAA,CAAAC,OAAA;AAGA,IAAAG,MAAA,GAAAH,OAAA;AAAiD,IAAAI,WAAA,GAAAJ,OAAA;AAAA,SAAAD,uBAAAM,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAXjD;AACA;AACA;;AAKA;;AAGA;;AAGA,MAAMG,IAA8B,GAAG;EACrCC,KAAK,EAAE,wBAAwB;EAC/BC,SAAS,EAAEC,cAAW;EACtBC,UAAU,EAAE;IACVC,IAAI,EAAE;MACJC,WAAW,EAAE;QACXJ,SAAS,EAAE;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;MACM;IACF;EACF,CAAC;EAEDK,QAAQ,EAAE;IACRC,UAAU,EAAE;MAAEC,OAAO,EAAE,OAAO;MAAEH,WAAW,EAAE;IAA6B,CAAC;IAC3EI,oBAAoB,EAAE;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C,EAAE,CAAC;IAClClC,oBAAoB,EAAEc,YAAK,CAACC,MAAM,CAACoB,IAAI,CAAC,GAAG;EAC7C;AACF,CAAC","ignoreList":[]}
@@ -0,0 +1,69 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = exports.Padrao = void 0;
7
+ var _index = _interopRequireDefault(require("../../components/list-supplies/index.js"));
8
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
9
+ /**
10
+ * IMPORTS
11
+ */
12
+
13
+ // components
14
+
15
+ const meta = {
16
+ title: "componente/ListSupplies",
17
+ component: _index.default,
18
+ args: {
19
+ dataRegistro: "11/03/2025 às 14:53:27",
20
+ namePosto: "POSTO TRES GARCAS LTDA",
21
+ litragem: 100,
22
+ valor: 450.75
23
+ },
24
+ parameters: {
25
+ notes: `
26
+ # ListSupplies
27
+ Card visual para exibir uma lavagem de cavalo registrada.
28
+ ### Como usar:
29
+ \`\`\`tsx
30
+ <ListSupplies
31
+ dataRegistro="11/03/2025 às 14:53:27"
32
+ namePosto= "POSTO TRES GARCAS LTDA"
33
+ litragem= {100}
34
+ valor= {450.75}
35
+ corBarra="#2ECC71"
36
+ />
37
+ \`\`\`
38
+ `,
39
+ docs: {
40
+ description: {
41
+ component: `
42
+ ### list-supplies
43
+
44
+ Componente de **list-supplies** para visualizar os abastecimentos realizados.
45
+
46
+ - \`corBarra\`: define sa cor da barra lateral, pode ser utilizada para diferenciar utilização em atualizações futuras
47
+ - \`imagemUrl\`Pode ser passada por parâmetro, caso não seja passada, o componente não exibirá a imagem
48
+ - \`dataRegistro\`: campo obrigatório, deve ser passado por parâmetro a data e hora do registro
49
+ - \`namePosto\`: campo obrigatório, deve ser passado por parâmetro o nome do posto
50
+ - \`litragem\`: campo obrigatório, deve ser passado por parâmetro a litragem abastecida
51
+ - \`valor\`: campo opcional, pode ser passado por parâmetro o valor total do abastecimento
52
+ - \`Todos os outros campos\`: podem ser definids e mostrados de maneira dinâmica, passando os valores por parâmetro
53
+ `
54
+ }
55
+ }
56
+ }
57
+ };
58
+ var _default = exports.default = meta;
59
+ const Padrao = exports.Padrao = {
60
+ name: "list-supplies",
61
+ args: {
62
+ dataRegistro: "11/03/2025 às 14:53:27",
63
+ namePosto: "POSTO TRES GARCAS LTDA",
64
+ litragem: 100,
65
+ valor: 450.75,
66
+ imagemUrl: "https://placehold.co/300x300"
67
+ }
68
+ };
69
+ //# sourceMappingURL=list-supplies.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_index","_interopRequireDefault","require","e","__esModule","default","meta","title","component","ListSupplies","args","dataRegistro","namePosto","litragem","valor","parameters","notes","docs","description","_default","exports","Padrao","name","imagemUrl"],"sourceRoot":"..\\..\\..\\..\\src","sources":["stories/list-supplies/list-supplies.stories.tsx"],"mappings":";;;;;;AAMA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AAA0D,SAAAD,uBAAAE,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAN1D;AACA;AACA;;AAGA;;AAGA,MAAMG,IAA+B,GAAG;EACtCC,KAAK,EAAE,yBAAyB;EAChCC,SAAS,EAAEC,cAAY;EACvBC,IAAI,EAAE;IACJC,YAAY,EAAE,wBAAwB;IACtCC,SAAS,EAAE,wBAAwB;IACnCC,QAAQ,EAAE,GAAG;IACbC,KAAK,EAAE;EACT,CAAC;EACDC,UAAU,EAAE;IACVC,KAAK,EAAE;AACX;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;IACDC,IAAI,EAAE;MACFC,WAAW,EAAE;QACTV,SAAS,EAAE;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;MACM;IACF;EACF;AACF,CAAC;AAAC,IAAAW,QAAA,GAAAC,OAAA,CAAAf,OAAA,GAEaC,IAAI;AAIZ,MAAMe,MAAa,GAAAD,OAAA,CAAAC,MAAA,GAAG;EAC3BC,IAAI,EAAE,eAAe;EACrBZ,IAAI,EAAE;IACJC,YAAY,EAAE,wBAAwB;IACtCC,SAAS,EAAE,wBAAwB;IACnCC,QAAQ,EAAE,GAAG;IACbC,KAAK,EAAE,MAAM;IACbS,SAAS,EAAE;EACb;AACF,CAAC","ignoreList":[]}
@@ -0,0 +1,63 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = exports.Default = void 0;
7
+ var _index = _interopRequireDefault(require("../../components/modals/modal-activity-reason/index.js"));
8
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
9
+ /**
10
+ * IMPORTS
11
+ */
12
+
13
+ // components
14
+
15
+ const meta = {
16
+ title: "Componente/ModalActivityReason",
17
+ component: _index.default,
18
+ args: {
19
+ visible: false,
20
+ onClose: () => {},
21
+ modalConfirm: () => {}
22
+ },
23
+ parameters: {
24
+ docs: {
25
+ description: {
26
+ component: `
27
+ ### ModalActivityReason
28
+ Este componente exibe um modal para fazer a exclusão de uma atividade.
29
+ ## Uso
30
+ \`\`\`tsx
31
+ <ModalActivityReason
32
+ visible={boolean}
33
+ onClose={function}
34
+ modalConfirm={function}
35
+ textTitle={string} (opcional)
36
+ />
37
+ Componente de **modal-activity-reason** para exibir um modal solicitando o motivo de exclusão ou outra ação crítica.
38
+
39
+ - \`visible\`: define a visibilidade do modal, controlando se deve estar aberto ou fechado
40
+ - \`onClose\`: função obrigatória, chamada ao cancelar ou fechar o modal
41
+ - \`modalConfirm\`: função obrigatória, chamada ao confirmar a ação (retorna \`true\` por padrão)
42
+ - \`textTitle\`: campo opcional, permite personalizar o título exibido no cabeçalho do modal
43
+ - \`MaintenanceDescriptionInput\`: campo de texto exibido no corpo do modal para o usuário inserir a justificativa
44
+ - \`Botões\`: dois botões de ação — **CANCELAR** e **CONFIRMAR**
45
+ - **CANCELAR**: fecha o modal sem executar ação
46
+ - **CONFIRMAR**: chama \`modalConfirm(true)\` e em seguida \`onClose()\`
47
+
48
+ > Caso \`textTitle\` não seja passado, o modal exibirá "Motivo da exclusão" como título padrão.
49
+ `
50
+ }
51
+ }
52
+ }
53
+ };
54
+ var _default = exports.default = meta;
55
+ const Default = exports.Default = {
56
+ name: "modal-activity-reason",
57
+ args: {
58
+ visible: true,
59
+ onClose: () => {},
60
+ modalConfirm: () => {}
61
+ }
62
+ };
63
+ //# sourceMappingURL=modal-activity-reason.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_index","_interopRequireDefault","require","e","__esModule","default","meta","title","component","ModalActivityReason","args","visible","onClose","modalConfirm","parameters","docs","description","_default","exports","Default","name"],"sourceRoot":"..\\..\\..\\..\\src","sources":["stories/modal-activity-reason/modal-activity-reason.stories.tsx"],"mappings":";;;;;;AAMA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AAAgF,SAAAD,uBAAAE,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AANhF;AACA;AACA;;AAGA;;AAGA,MAAMG,IAAsC,GAAG;EAC7CC,KAAK,EAAE,gCAAgC;EACvCC,SAAS,EAAEC,cAAmB;EAC9BC,IAAI,EAAE;IACJC,OAAO,EAAE,KAAK;IACdC,OAAO,EAAEA,CAAA,KAAM,CAAC,CAAC;IACjBC,YAAY,EAAEA,CAAA,KAAM,CAAC;EACvB,CAAC;EACDC,UAAU,EAAE;IACVC,IAAI,EAAE;MACJC,WAAW,EAAE;QACXR,SAAS,EAAE;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;MACM;IACF;EACF;AACF,CAAC;AAAC,IAAAS,QAAA,GAAAC,OAAA,CAAAb,OAAA,GAEaC,IAAI;AAIZ,MAAMa,OAAc,GAAAD,OAAA,CAAAC,OAAA,GAAG;EAC5BC,IAAI,EAAE,uBAAuB;EAC7BV,IAAI,EAAE;IACJC,OAAO,EAAE,IAAI;IACbC,OAAO,EAAEA,CAAA,KAAM,CAAC,CAAC;IACjBC,YAAY,EAAEA,CAAA,KAAM,CAAC;EACvB;AACF,CAAC","ignoreList":[]}
@@ -0,0 +1,63 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = exports.Default = void 0;
7
+ var _index = _interopRequireDefault(require("../../components/modals/modal-journey-rectification/index.js"));
8
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
9
+ /**
10
+ * IMPORTS
11
+ */
12
+
13
+ // components
14
+
15
+ const meta = {
16
+ title: "Componente/ModalJourneyRectification",
17
+ component: _index.default,
18
+ args: {
19
+ visible: false,
20
+ onClose: () => {},
21
+ modalConfirm: () => {}
22
+ },
23
+ parameters: {
24
+ docs: {
25
+ description: {
26
+ component: `
27
+ ### ModalJourneyRectification
28
+ Este componente exibe um modal para fazer a exclusão de uma atividade.
29
+ ## Uso
30
+ \`\`\`tsx
31
+ <ModalJourneyRectification
32
+ visible={boolean}
33
+ onClose={function}
34
+ modalConfirm={function}
35
+ textTitle={string} (opcional)
36
+ />
37
+ Componente de **modal-journey-rectification** para exibir um modal solicitando o motivo de exclusão ou outra ação crítica.
38
+
39
+ - \`visible\`: define a visibilidade do modal, controlando se deve estar aberto ou fechado
40
+ - \`onClose\`: função obrigatória, chamada ao cancelar ou fechar o modal
41
+ - \`modalConfirm\`: função obrigatória, chamada ao confirmar a ação (retorna \`true\` por padrão)
42
+ - \`textTitle\`: campo opcional, permite personalizar o título exibido no cabeçalho do modal
43
+ - \`MaintenanceDescriptionInput\`: campo de texto exibido no corpo do modal para o usuário inserir a justificativa
44
+ - \`Botões\`: dois botões de ação — **CANCELAR** e **CONFIRMAR**
45
+ - **CANCELAR**: fecha o modal sem executar ação
46
+ - **CONFIRMAR**: chama \`modalConfirm(true)\` e em seguida \`onClose()\`
47
+
48
+ > Caso \`textTitle\` não seja passado, o modal exibirá "Motivo da exclusão" como título padrão.
49
+ `
50
+ }
51
+ }
52
+ }
53
+ };
54
+ var _default = exports.default = meta;
55
+ const Default = exports.Default = {
56
+ name: "modal-journey-rectification",
57
+ args: {
58
+ visible: true,
59
+ onClose: () => {},
60
+ modalConfirm: () => {}
61
+ }
62
+ };
63
+ //# sourceMappingURL=modal-journey-rectification.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_index","_interopRequireDefault","require","e","__esModule","default","meta","title","component","ModalJourneyRectification","args","visible","onClose","modalConfirm","parameters","docs","description","_default","exports","Default","name"],"sourceRoot":"..\\..\\..\\..\\src","sources":["stories/modal-journey-rectification/modal-journey-rectification.stories.tsx"],"mappings":";;;;;;AAMA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AAA4F,SAAAD,uBAAAE,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAN5F;AACA;AACA;;AAGA;;AAGA,MAAMG,IAA4C,GAAG;EACnDC,KAAK,EAAE,sCAAsC;EAC7CC,SAAS,EAAEC,cAAyB;EACpCC,IAAI,EAAE;IACJC,OAAO,EAAE,KAAK;IACdC,OAAO,EAAEA,CAAA,KAAM,CAAC,CAAC;IACjBC,YAAY,EAAEA,CAAA,KAAM,CAAC;EACvB,CAAC;EACDC,UAAU,EAAE;IACVC,IAAI,EAAE;MACJC,WAAW,EAAE;QACXR,SAAS,EAAE;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;MACM;IACF;EACF;AACF,CAAC;AAAC,IAAAS,QAAA,GAAAC,OAAA,CAAAb,OAAA,GAEaC,IAAI;AAIZ,MAAMa,OAAc,GAAAD,OAAA,CAAAC,OAAA,GAAG;EAC5BC,IAAI,EAAE,6BAA6B;EACnCV,IAAI,EAAE;IACJC,OAAO,EAAE,IAAI;IACbC,OAAO,EAAEA,CAAA,KAAM,CAAC,CAAC;IACjBC,YAAY,EAAEA,CAAA,KAAM,CAAC;EACvB;AACF,CAAC","ignoreList":[]}
@@ -16,19 +16,19 @@ const meta = {
16
16
  title: "componente/SupplyErrorCard",
17
17
  component: _index.default,
18
18
  args: {
19
- messages: [{
19
+ errors: [{
20
20
  id: 101,
21
- mensagem: "Erro ao sincronizar abastecimento #101. Clique para corrigir."
21
+ descricacao: "Erro ao sincronizar abastecimento #101. Clique para corrigir."
22
22
  }, {
23
23
  id: 203,
24
- mensagem: "Valor inválido no abastecimento #203."
24
+ descricacao: "Valor inválido no abastecimento #203."
25
25
  }, {
26
26
  id: 310,
27
- mensagem: "Imagem do comprovante ausente no abastecimento #310."
27
+ descricacao: "Imagem do comprovante ausente no abastecimento #310."
28
28
  }]
29
29
  },
30
30
  argTypes: {
31
- messages: {
31
+ errors: {
32
32
  description: "Lista de mensagens de erro/exceção relacionadas a abastecimentos.",
33
33
  control: "object",
34
34
  table: {
@@ -47,13 +47,13 @@ Ao **clicar**, expande e mostra a lista completa. O ícone alterna entre *chevro
47
47
 
48
48
  ## Uso básico
49
49
  \`\`\`tsx
50
- const mensagens = [
51
- { id: 101, mensagem: "Erro ao sincronizar abastecimento #101. Clique para corrigir." },
52
- { id: 203, mensagem: "Valor inválido no abastecimento #203." },
53
- { id: 310, mensagem: "Imagem do comprovante ausente no abastecimento #310." },
50
+ const errors = [
51
+ { id: 101, descricao: "Erro ao sincronizar abastecimento #101. Clique para corrigir." },
52
+ { id: 203, descricao: "Valor inválido no abastecimento #203." },
53
+ { id: 310, descricao: "Imagem do comprovante ausente no abastecimento #310." },
54
54
  ];
55
55
 
56
- <SupplyErrorCard messages={mensagens} />
56
+ <SupplyErrorCard errors={mensagens} />
57
57
  \`\`\`
58
58
 
59
59
  ## Dicas
@@ -66,7 +66,7 @@ var _default = exports.default = meta;
66
66
  const Default = exports.Default = {
67
67
  name: "supply-error-card-default",
68
68
  args: {
69
- messages: [{
69
+ errors: [{
70
70
  id: 101,
71
71
  mensagem: "Erro ao sincronizar abastecimento #101. Clique para corrigir."
72
72
  }, {
@@ -81,7 +81,7 @@ const Default = exports.Default = {
81
81
  const SupplyErrorCardNotMessage = exports.SupplyErrorCardNotMessage = {
82
82
  name: "supply-error-card",
83
83
  args: {
84
- messages: []
84
+ errors: []
85
85
  }
86
86
  };
87
87
  //# sourceMappingURL=supply-error-card.stories.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_index","_interopRequireDefault","require","e","__esModule","default","meta","title","component","SupplyErrorCard","args","messages","id","mensagem","argTypes","description","control","table","type","summary","parameters","notes","_default","exports","Default","name","SupplyErrorCardNotMessage"],"sourceRoot":"..\\..\\..\\..\\src","sources":["stories/supply-error-card/supply-error-card.stories.tsx"],"mappings":";;;;;;AAOA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AAAiE,SAAAD,uBAAAE,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAPjE;AACA;AACA;;AAIA;;AAGA,MAAMG,IAAkC,GAAG;EACzCC,KAAK,EAAE,4BAA4B;EACnCC,SAAS,EAAEC,cAA2B;EACtCC,IAAI,EAAE;IACJC,QAAQ,EAAE,CACR;MAAEC,EAAE,EAAE,GAAG;MAAEC,QAAQ,EAAE;IAAgE,CAAC,EACtF;MAAED,EAAE,EAAE,GAAG;MAAEC,QAAQ,EAAE;IAAwC,CAAC,EAC9D;MAAED,EAAE,EAAE,GAAG;MAAEC,QAAQ,EAAE;IAAuD,CAAC;EAEjF,CAAC;EACDC,QAAQ,EAAE;IACRH,QAAQ,EAAE;MACRI,WAAW,EAAE,mEAAmE;MAChFC,OAAO,EAAE,QAAQ;MACjBC,KAAK,EAAE;QACLC,IAAI,EAAE;UAAEC,OAAO,EAAE;QAA0C;MAC7D;IACF;EACF,CAAC;EACDC,UAAU,EAAE;IACVC,KAAK,EAAE;AACX;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACE;AACF,CAAC;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAlB,OAAA,GAEaC,IAAI;AAIZ,MAAMkB,OAAc,GAAAD,OAAA,CAAAC,OAAA,GAAG;EAC5BC,IAAI,EAAE,2BAA2B;EACjCf,IAAI,EAAE;IACJC,QAAQ,EAAE,CACR;MAAEC,EAAE,EAAE,GAAG;MAAEC,QAAQ,EAAE;IAAgE,CAAC,EACtF;MAAED,EAAE,EAAE,GAAG;MAAEC,QAAQ,EAAE;IAAwC,CAAC,EAC9D;MAAED,EAAE,EAAE,GAAG;MAAEC,QAAQ,EAAE;IAAuD,CAAC;EAEjF;AACF,CAAC;AAEM,MAAMa,yBAAgC,GAAAH,OAAA,CAAAG,yBAAA,GAAG;EAC9CD,IAAI,EAAE,mBAAmB;EACzBf,IAAI,EAAE;IAAEC,QAAQ,EAAE;EAAG;AACvB,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_index","_interopRequireDefault","require","e","__esModule","default","meta","title","component","SupplyErrorCard","args","errors","id","descricacao","argTypes","description","control","table","type","summary","parameters","notes","_default","exports","Default","name","mensagem","SupplyErrorCardNotMessage"],"sourceRoot":"..\\..\\..\\..\\src","sources":["stories/supply-error-card/supply-error-card.stories.tsx"],"mappings":";;;;;;AAOA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AAAiE,SAAAD,uBAAAE,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAPjE;AACA;AACA;;AAIA;;AAGA,MAAMG,IAAkC,GAAG;EACzCC,KAAK,EAAE,4BAA4B;EACnCC,SAAS,EAAEC,cAA2B;EACtCC,IAAI,EAAE;IACJC,MAAM,EAAE,CACN;MAAEC,EAAE,EAAE,GAAG;MAAEC,WAAW,EAAE;IAAgE,CAAC,EACzF;MAAED,EAAE,EAAE,GAAG;MAAEC,WAAW,EAAE;IAAwC,CAAC,EACjE;MAAED,EAAE,EAAE,GAAG;MAAEC,WAAW,EAAE;IAAuD,CAAC;EAEpF,CAAC;EACDC,QAAQ,EAAE;IACRH,MAAM,EAAE;MACNI,WAAW,EAAE,mEAAmE;MAChFC,OAAO,EAAE,QAAQ;MACjBC,KAAK,EAAE;QACLC,IAAI,EAAE;UAAEC,OAAO,EAAE;QAA0C;MAC7D;IACF;EACF,CAAC;EACDC,UAAU,EAAE;IACVC,KAAK,EAAE;AACX;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACE;AACF,CAAC;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAlB,OAAA,GAEaC,IAAI;AAIZ,MAAMkB,OAAc,GAAAD,OAAA,CAAAC,OAAA,GAAG;EAC5BC,IAAI,EAAE,2BAA2B;EACjCf,IAAI,EAAE;IACJC,MAAM,EAAE,CACN;MAAEC,EAAE,EAAE,GAAG;MAAEc,QAAQ,EAAE;IAAgE,CAAC,EACtF;MAAEd,EAAE,EAAE,GAAG;MAAEc,QAAQ,EAAE;IAAwC,CAAC,EAC9D;MAAEd,EAAE,EAAE,GAAG;MAAEc,QAAQ,EAAE;IAAuD,CAAC;EAEjF;AACF,CAAC;AAEM,MAAMC,yBAAgC,GAAAJ,OAAA,CAAAI,yBAAA,GAAG;EAC9CF,IAAI,EAAE,mBAAmB;EACzBf,IAAI,EAAE;IAAEC,MAAM,EAAE;EAAG;AACrB,CAAC","ignoreList":[]}
@@ -16,7 +16,6 @@ const meta = {
16
16
  title: "componente/TripDetailsCard",
17
17
  component: _index.default,
18
18
  args: {
19
- dataRegistro: "11/03/2025 às 14:53:27",
20
19
  origem: "TIMÓTEO - MG",
21
20
  destino: "CAMPINAS - SP",
22
21
  proximoCarregamento: "CONTAGEM - MG"
@@ -28,24 +27,58 @@ Card visual para exibir uma lavagem de cavalo registrada.
28
27
  ### Como usar:
29
28
  \`\`\`tsx
30
29
  <TripDetailsCard
30
+ dataRegistro: "11/03/2025 às 14:53:27",
31
+ origem= "TIMÓTEO - MG",
32
+ destino= "CAMPINAS - SP",
31
33
  numero={1}
32
- dataRegistro="11/03/2025 às 14:53:27"
33
34
  cavalo="RGA6B87"
35
+ peso= 25000,
36
+ baseCalculo= 3500,
34
37
  corBarra="#2ECC71"
38
+ numeroCte= {12034}
39
+ kmCarregado= {100}
40
+ kmVazio= {200}
35
41
  />
36
42
  \`\`\`
37
- `
43
+ `,
44
+ docs: {
45
+ description: {
46
+ component: `
47
+ ### TripDetailsCard
48
+
49
+ Componente de **trip-details-card** para visualizar os detalhes de uma viagem.
50
+
51
+ - \`corBarra\`: define a cor da barra lateral, útil para diferenciar ou categorizar viagens
52
+ - \`dataRegistro\`: campo obrigatório, deve ser passado por parâmetro a data e hora do carregamento
53
+ - \`numeroCte\`: campo obrigatório, representa o número do CTE associado à viagem
54
+ - \`origem\`: campo obrigatório, local de origem do carregamento
55
+ - \`destino\`: campo obrigatório, local de destino do carregamento
56
+ - \`proximoCarregamento\`: campo opcional, indica o próximo ponto de carregamento
57
+ - \`peso\`: campo opcional, peso da carga em quilogramas
58
+ - \`kmCarregado\`: campo opcional, quilometragem percorrida carregado
59
+ - \`kmVazio\`: campo opcional, quilometragem percorrida vazio
60
+ - \`baseCalculo\`: campo opcional, valor base usado para cálculo do PRO
61
+ - \`Interação\`: o componente possui um botão de expansão, que mostra ou oculta os detalhes da viagem ao ser clicado
62
+ `
63
+ }
64
+ }
38
65
  }
39
66
  };
40
67
  var _default = exports.default = meta;
41
68
  const Padrao = exports.Padrao = {
42
- name: "card-manutencao",
69
+ name: "trip-details-card",
43
70
  args: {
44
- numero: 1,
45
71
  dataRegistro: "11/03/2025 às 14:53:27",
72
+ origem: "TIMÓTEO - MG",
73
+ destino: "CAMPINAS - SP",
74
+ numero: 1,
46
75
  cavalo: "RGA6B87",
76
+ peso: 25000,
77
+ baseCalculo: 3500,
47
78
  corBarra: "#2ECC71",
48
- imagemUrl: "https://placehold.co/300x300"
79
+ numeroCte: 12034,
80
+ kmCarregado: 100,
81
+ kmVazio: 200
49
82
  }
50
83
  };
51
84
  //# sourceMappingURL=trip-details-card.stories.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_index","_interopRequireDefault","require","e","__esModule","default","meta","title","component","TripDetailsCard","args","dataRegistro","origem","destino","proximoCarregamento","parameters","notes","_default","exports","Padrao","name","numero","cavalo","corBarra","imagemUrl"],"sourceRoot":"..\\..\\..\\..\\src","sources":["stories/trip-details-card/trip-details-card.stories.tsx"],"mappings":";;;;;;AAMA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AAAiE,SAAAD,uBAAAE,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AANjE;AACA;AACA;;AAGA;;AAGA,MAAMG,IAAkC,GAAG;EACzCC,KAAK,EAAE,4BAA4B;EACnCC,SAAS,EAAEC,cAAe;EAC1BC,IAAI,EAAE;IACJC,YAAY,EAAE,wBAAwB;IACtCC,MAAM,EAAE,cAAc;IACtBC,OAAO,EAAE,eAAe;IACxBC,mBAAmB,EAAE;EACvB,CAAC;EACDC,UAAU,EAAE;IACVC,KAAK,EAAE;AACX;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACE;AACF,CAAC;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAb,OAAA,GAEaC,IAAI;AAIZ,MAAMa,MAAa,GAAAD,OAAA,CAAAC,MAAA,GAAG;EAC3BC,IAAI,EAAE,iBAAiB;EACvBV,IAAI,EAAE;IACJW,MAAM,EAAE,CAAC;IACTV,YAAY,EAAE,wBAAwB;IACtCW,MAAM,EAAE,SAAS;IACjBC,QAAQ,EAAE,SAAS;IACnBC,SAAS,EAAE;EACb;AACF,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_index","_interopRequireDefault","require","e","__esModule","default","meta","title","component","TripDetailsCard","args","origem","destino","proximoCarregamento","parameters","notes","docs","description","_default","exports","Padrao","name","dataRegistro","numero","cavalo","peso","baseCalculo","corBarra","numeroCte","kmCarregado","kmVazio"],"sourceRoot":"..\\..\\..\\..\\src","sources":["stories/trip-details-card/trip-details-card.stories.tsx"],"mappings":";;;;;;AAMA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AAAiE,SAAAD,uBAAAE,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AANjE;AACA;AACA;;AAGA;;AAGA,MAAMG,IAAkC,GAAG;EACzCC,KAAK,EAAE,4BAA4B;EACnCC,SAAS,EAAEC,cAAe;EAC1BC,IAAI,EAAE;IACJC,MAAM,EAAE,cAAc;IACtBC,OAAO,EAAE,eAAe;IACxBC,mBAAmB,EAAE;EACvB,CAAC;EACDC,UAAU,EAAE;IACVC,KAAK,EAAE;AACX;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;IACGC,IAAI,EAAE;MACJC,WAAW,EAAE;QACXT,SAAS,EAAE;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;MACM;IACF;EACF;AACF,CAAC;AAAC,IAAAU,QAAA,GAAAC,OAAA,CAAAd,OAAA,GAEaC,IAAI;AAIZ,MAAMc,MAAa,GAAAD,OAAA,CAAAC,MAAA,GAAG;EAC3BC,IAAI,EAAE,mBAAmB;EACzBX,IAAI,EAAE;IACJY,YAAY,EAAE,wBAAwB;IACtCX,MAAM,EAAE,cAAc;IACtBC,OAAO,EAAE,eAAe;IACxBW,MAAM,EAAE,CAAC;IACTC,MAAM,EAAE,SAAS;IACjBC,IAAI,EAAE,KAAK;IACXC,WAAW,EAAE,IAAI;IACjBC,QAAQ,EAAE,SAAS;IACnBC,SAAS,EAAE,KAAK;IAChBC,WAAW,EAAE,GAAG;IAChBC,OAAO,EAAE;EACX;AACF,CAAC","ignoreList":[]}
@@ -103,6 +103,7 @@ const fontSizes = {
103
103
  "9xl": 128
104
104
  };
105
105
  const margins = {
106
+ fn: 2,
106
107
  "1xs": 6,
107
108
  "2xs": 10,
108
109
  xs: 12,
@@ -1 +1 @@
1
- {"version":3,"names":["colors","neutral","black","blue","red","gray","green","orange","yellow","fonts","inter_thin_100","inter_extra_light_200","inter_light_300","inter_regular_400","inter_medium_500","inter_semi_bold_600","inter_bold_700","inter_extra_bold_800","inter_bold","fontSizes","xs","sm","md","lg","xl","margins","paddings","borderWidths","thin","thin_medium","thin_bold","thick","thick_medium","thick_bold","thick_large","hairline","shadows","z1","z2","letterSpacing","o_16","regular","medium","strong","lineHeight","theme","exports"],"sourceRoot":"..\\..\\..\\..\\src","sources":["styles/theme/theme.ts"],"mappings":";;;;;;AAAA;AACA;AACA;;AAEA,MAAMA,MAAM,GAAG;EACbC,OAAO,EAAE;IACP,EAAE,EAAE,SAAS;IACb,EAAE,EAAE,SAAS;IACb,EAAE,EAAE,SAAS;IACb,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE;EACP,CAAC;EACDC,KAAK,EAAE;IACL,EAAE,EAAE,SAAS;IACb,EAAE,EAAE,SAAS;IACb,GAAG,EAAE,SAAS;IACd,GAAG,EAAE;EACP,CAAC;EACDC,IAAI,EAAE;IACJ,EAAE,EAAE,SAAS;IACb,EAAE,EAAE,SAAS;IACb,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS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AAE,EAAE,qEAAqE;EACzEC,EAAE,EAAE;AACN,CAAC;AAED,MAAMC,aAAa,GAAG;EACpBC,IAAI,EAAE,IAAI;EACVC,OAAO,EAAE,GAAG;EACZC,MAAM,EAAE,IAAI;EACZC,MAAM,EAAE;AACV,CAAC;AAED,MAAMC,UAAU,GAAG;EACjB,KAAK,EAAE,EAAE;EACTxB,EAAE,EAAE,EAAE;EACNC,EAAE,EAAE,EAAE;EACNC,EAAE,EAAE,EAAE;EACNC,EAAE,EAAE,EAAE;EACNC,EAAE,EAAE,EAAE;EACN,KAAK,EAAE,EAAE;EACT,KAAK,EAAE,EAAE;EACT,KAAK,EAAE,EAAE;EACT,KAAK,EAAE,EAAE;EACT,KAAK,EAAE,EAAE;EACT,KAAK,EAAE,EAAE;EACT,KAAK,EAAE,EAAE;EACT,KAAK,EAAE;AACT,CAAC;;AAED;AACA;AACA;AACO,MAAMqB,KAAK,GAAAC,OAAA,CAAAD,KAAA,GAAG;EACnBlB,YAAY;EACZ3B,MAAM;EACNS,KAAK;EACLU,SAAS;EACTM,OAAO;EACPW,OAAO;EACPV,QAAQ;EACRa,aAAa;EACbK;AACF,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["colors","neutral","black","blue","red","gray","green","orange","yellow","fonts","inter_thin_100","inter_extra_light_200","inter_light_300","inter_regular_400","inter_medium_500","inter_semi_bold_600","inter_bold_700","inter_extra_bold_800","inter_bold","fontSizes","xs","sm","md","lg","xl","margins","fn","paddings","borderWidths","thin","thin_medium","thin_bold","thick","thick_medium","thick_bold","thick_large","hairline","shadows","z1","z2","letterSpacing","o_16","regular","medium","strong","lineHeight","theme","exports"],"sourceRoot":"..\\..\\..\\..\\src","sources":["styles/theme/theme.ts"],"mappings":";;;;;;AAAA;AACA;AACA;;AAEA,MAAMA,MAAM,GAAG;EACbC,OAAO,EAAE;IACP,EAAE,EAAE,SAAS;IACb,EAAE,EAAE,SAAS;IACb,EAAE,EAAE,SAAS;IACb,GAAG,EAAE,SAAS;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AAK,EAAE,EAAE;EACT,KAAK,EAAE,EAAE;EACT,KAAK,EAAE,EAAE;EACT,KAAK,EAAE,EAAE;EACT,KAAK,EAAE,EAAE;EACT,KAAK,EAAE;AACT,CAAC;AAED,MAAMI,YAAY,GAAG;EACnBC,IAAI,EAAE,CAAC;EACPC,WAAW,EAAE,CAAC;EACdC,SAAS,EAAE,CAAC;EACZC,KAAK,EAAE,CAAC;EACRC,YAAY,EAAE,CAAC;EACfC,UAAU,EAAE,EAAE;EACdC,WAAW,EAAE,EAAE;EACfC,QAAQ,EAAE,GAAG;EACb,KAAK,EAAE;AACT,CAAC;AAED,MAAMC,OAAO,GAAG;EACdC,EAAE,EAAE,qEAAqE;EACzEC,EAAE,EAAE;AACN,CAAC;AAED,MAAMC,aAAa,GAAG;EACpBC,IAAI,EAAE,IAAI;EACVC,OAAO,EAAE,GAAG;EACZC,MAAM,EAAE,IAAI;EACZC,MAAM,EAAE;AACV,CAAC;AAED,MAAMC,UAAU,GAAG;EACjB,KAAK,EAAE,EAAE;EACTzB,EAAE,EAAE,EAAE;EACNC,EAAE,EAAE,EAAE;EACNC,EAAE,EAAE,EAAE;EACNC,EAAE,EAAE,EAAE;EACNC,EAAE,EAAE,EAAE;EACN,KAAK,EAAE,EAAE;EACT,KAAK,EAAE,EAAE;EACT,KAAK,EAAE,EAAE;EACT,KAAK,EAAE,EAAE;EACT,KAAK,EAAE,EAAE;EACT,KAAK,EAAE,EAAE;EACT,KAAK,EAAE,EAAE;EACT,KAAK,EAAE;AACT,CAAC;;AAED;AACA;AACA;AACO,MAAMsB,KAAK,GAAAC,OAAA,CAAAD,KAAA,GAAG;EACnBlB,YAAY;EACZ5B,MAAM;EACNS,KAAK;EACLU,SAAS;EACTM,OAAO;EACPY,OAAO;EACPV,QAAQ;EACRa,aAAa;EACbK;AACF,CAAC","ignoreList":[]}
@@ -4,40 +4,58 @@
4
4
  * IMPORTS
5
5
  */
6
6
  import * as React from "react";
7
+ import { View } from "react-native";
7
8
  import Svg, { Path, Defs, G, ClipPath } from "react-native-svg";
8
9
 
9
10
  // typing
10
11
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
11
12
  const SvgIconBluetooth = ({
12
13
  color,
13
- size
14
- }) => /*#__PURE__*/_jsxs(Svg
15
- // @ts-expect-error
16
- , {
17
- xmlns: "http://www.w3.org/2000/svg",
18
- width: size ?? 24,
19
- height: size ?? 24,
20
- fill: "none",
21
- viewBox: `0 0 ${size ?? 24} ${size ?? 24}`,
22
- children: [/*#__PURE__*/_jsx(G, {
23
- stroke: color ?? "#050022",
24
- strokeLinecap: "round",
25
- strokeLinejoin: "round",
26
- strokeWidth: "2",
27
- clipPath: "url(#clip0_9131_659)",
28
- children: /*#__PURE__*/_jsx(Path, {
29
- d: "M12 3l6 4.5-6 4.5V3zM12 12l6 4.5-6 4.5v-9zM6 7.5l6 4.5M6 16.5l6-4.5"
14
+ size = 26,
15
+ background,
16
+ padding = 8
17
+ }) => {
18
+ // o círculo terá dimensão total = size + padding*2
19
+ const circleSize = size + padding * 2;
20
+ return /*#__PURE__*/_jsx(View, {
21
+ style: {
22
+ width: circleSize,
23
+ height: circleSize,
24
+ borderRadius: circleSize / 2,
25
+ // círculo perfeito
26
+ backgroundColor: background,
27
+ alignItems: "center",
28
+ justifyContent: "center"
29
+ },
30
+ children: /*#__PURE__*/_jsxs(Svg
31
+ // @ts-expect-error
32
+ , {
33
+ xmlns: "http://www.w3.org/2000/svg",
34
+ width: size,
35
+ height: size,
36
+ fill: "none",
37
+ viewBox: `0 0 ${size} ${size}`,
38
+ children: [/*#__PURE__*/_jsx(G, {
39
+ stroke: color ?? "#050022",
40
+ strokeLinecap: "round",
41
+ strokeLinejoin: "round",
42
+ strokeWidth: "2",
43
+ clipPath: "url(#clip0_9131_659)",
44
+ children: /*#__PURE__*/_jsx(Path, {
45
+ d: "M12 3l6 4.5-6 4.5V3zM12 12l6 4.5-6 4.5v-9zM6 7.5l6 4.5M6 16.5l6-4.5"
46
+ })
47
+ }), /*#__PURE__*/_jsx(Defs, {
48
+ children: /*#__PURE__*/_jsx(ClipPath, {
49
+ id: "clip0_9131_659",
50
+ children: /*#__PURE__*/_jsx(Path, {
51
+ fill: "#fff",
52
+ d: "M0 0H24V24H0z"
53
+ })
54
+ })
55
+ })]
30
56
  })
31
- }), /*#__PURE__*/_jsx(Defs, {
32
- children: /*#__PURE__*/_jsx(ClipPath, {
33
- id: "clip0_9131_659",
34
- children: /*#__PURE__*/_jsx(Path, {
35
- fill: "#fff",
36
- d: "M0 0H24V24H0z"
37
- })
38
- })
39
- })]
40
- });
57
+ });
58
+ };
41
59
 
42
60
  /**
43
61
  * EXPORTS
@@ -1 +1 @@
1
- {"version":3,"names":["React","Svg","Path","Defs","G","ClipPath","jsx","_jsx","jsxs","_jsxs","SvgIconBluetooth","color","size","xmlns","width","height","fill","viewBox","children","stroke","strokeLinecap","strokeLinejoin","strokeWidth","clipPath","d","id"],"sourceRoot":"..\\..\\..\\..\\..\\src","sources":["common/icons-svg/bluetooth/index.tsx"],"mappings":";;AAAA;AACA;AACA;AACA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,OAAOC,GAAG,IAAIC,IAAI,EAAEC,IAAI,EAAEC,CAAC,EAAEC,QAAQ,QAAQ,kBAAkB;;AAE/D;AAAA,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAGA,MAAMC,gBAAqC,GAAGA,CAAC;EAAEC,KAAK;EAAEC;AAAK,CAAC,kBAC5DH,KAAA,CAACR;AACC;AAAA;EACAY,KAAK,EAAC,4BAA4B;EAClCC,KAAK,EAAEF,IAAI,IAAI,EAAG;EAClBG,MAAM,EAAEH,IAAI,IAAI,EAAG;EACnBI,IAAI,EAAC,MAAM;EACXC,OAAO,EAAE,QAAQL,IAAI,IAAI,EAAE,IAAIA,IAAI,IAAI,EAAE,EAAG;EAAAM,QAAA,gBAE5CX,IAAA,CAACH,CAAC;IACAe,MAAM,EAAER,KAAK,IAAI,SAAU;IAC3BS,aAAa,EAAC,OAAO;IACrBC,cAAc,EAAC,OAAO;IACtBC,WAAW,EAAC,GAAG;IACfC,QAAQ,EAAC,sBAAsB;IAAAL,QAAA,eAE/BX,IAAA,CAACL,IAAI;MAACsB,CAAC,EAAC;IAAqE,CAAO;EAAC,CACpF,CAAC,eACJjB,IAAA,CAACJ,IAAI;IAAAe,QAAA,eACHX,IAAA,CAACF,QAAQ;MAACoB,EAAE,EAAC,gBAAgB;MAAAP,QAAA,eAC3BX,IAAA,CAACL,IAAI;QAACc,IAAI,EAAC,MAAM;QAACQ,CAAC,EAAC;MAAe,CAAO;IAAC,CACnC;EAAC,CACP,CAAC;AAAA,CACJ,CACN;;AAED;AACA;AACA;AACA,SAASd,gBAAgB","ignoreList":[]}
1
+ {"version":3,"names":["React","View","Svg","Path","Defs","G","ClipPath","jsx","_jsx","jsxs","_jsxs","SvgIconBluetooth","color","size","background","padding","circleSize","style","width","height","borderRadius","backgroundColor","alignItems","justifyContent","children","xmlns","fill","viewBox","stroke","strokeLinecap","strokeLinejoin","strokeWidth","clipPath","d","id"],"sourceRoot":"..\\..\\..\\..\\..\\src","sources":["common/icons-svg/bluetooth/index.tsx"],"mappings":";;AAAA;AACA;AACA;AACA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAASC,IAAI,QAAQ,cAAc;AACnC,OAAOC,GAAG,IAAIC,IAAI,EAAEC,IAAI,EAAEC,CAAC,EAAEC,QAAQ,QAAQ,kBAAkB;;AAE/D;AAAA,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAQA,MAAMC,gBAAkD,GAAGA,CAAC;EAC1DC,KAAK;EACLC,IAAI,GAAG,EAAE;EACTC,UAAU;EACVC,OAAO,GAAG;AACZ,CAAC,KAAK;EACJ;EACA,MAAMC,UAAU,GAAGH,IAAI,GAAGE,OAAO,GAAG,CAAC;EAErC,oBACEP,IAAA,CAACP,IAAI;IACHgB,KAAK,EAAE;MACLC,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