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
@@ -1,280 +1,289 @@
1
- /**
2
- * IMPORTS
3
- */
4
- import React from "react";
5
-
6
- // commons / svg
7
- import { SvgIconSteeringWheel } from "./steering-wheel";
8
- import { SvgIconCheckBoxFill } from "./check-box-fill";
9
- import { SvgIconCheckBoxOutline } from "./check-box-outline";
10
- import { SvgIconCameraPlus } from "./camera-plus";
11
- import { SvgIconMoonStars } from "./moon-stars";
12
- import { SvgIconCallBell } from "./call-bell";
13
- import { SvgIconSteeringWheelFill } from "./steering-wheel-fill";
14
- import { SvgIconTrophy } from "./trophy";
15
- import { IconShoppingCart } from "./shopping-cart";
16
- import { IconCreditCard } from "./credit-card";
17
- import { IconFileText } from "./file-text";
18
- import { IconTruck } from "./truck";
19
- import { IconPackageCheck } from "./package-check";
20
- import { SvgIconEyeSlash } from "./eye-slash";
21
- import { SvgIconCalendar } from "./calendar";
22
- import { SvgIconCurrency } from "./currency";
23
- import { SvgIconEye } from "./eye";
24
- import { SvgIconGasPump } from "./gas-pump";
25
- import { SvgIconGauge } from "./gauge";
26
- import { SvgIconGear } from "./gear";
27
- import { SvgIconTimer } from "./timer";
28
- import { SvgIconNotePencil } from "./note-pincel";
29
- import { SvgIconCheckCircle } from "./check-circle";
30
- import { SvgIconArrowLeft } from "./arrow-left";
31
- import { SvgIconBluetooth } from "./bluetooth";
32
- import { SvgIconBluetoothConnected } from "./bluetooth-connected";
33
- import { SvgIconList } from "./list";
34
- import { SvgIconWiFiHigh } from "./wifi-high";
35
- import { SvgIconWiFiX } from "./wifi-x";
36
- import { SvgIconArrowDropDown } from "./arrow-drop-down";
37
- import { SvgIconClosed } from "./closed";
38
- import { SvgPackage } from "./package";
39
- import { SvgChartBar } from "./chart-bar";
40
- import { SvgTruckTrailer } from "./truck-trailer";
41
- import { SvgIconBell } from "./bell";
42
- import { SvgIconBed } from "./bed";
43
- import { SvgIconFiles } from "./files";
44
- import { SvgIconLifebuoy } from "./lifebuoy";
45
- import { SvgIconRecused } from "./recused";
46
- import { SvgIconExclamationCircle } from "./exclamation-circle";
47
- import { SvgIconPlus } from "./plus";
48
- import { SvgIconXCirle } from "./x-circle";
49
- import { SvgIconCheckOutline } from "./check-outline";
50
- import { SvgIconTruckActivity } from "./truck-activity";
51
- import { SvgIconCar } from "./car";
52
- import { SvgIconCoffee } from "./coffee";
53
- import { SvgIconWarningTriangle } from "./exclamation-triangle";
54
- import { IconChevronDown } from "./chevron-down";
55
- import IconChevronUp from "./chevron-up";
56
- import { ArrowChevronUp } from "./arrow-chevron-up";
57
- import { ArrowChevronDown } from "./arrow-chevron-down";
58
-
59
- // typing
60
- import { type ISvgProps } from "./interface";
61
-
62
- // styles
63
- import { theme } from "../../styles/theme/theme";
64
- import { SvgIconHouse } from "./house";
65
- import { SvgIconHourglass } from "./hourglass";
66
- import { SvgIconIsland } from "./island";
67
-
68
- const Icons: React.FC<ISvgProps> = ({ icon, color, size, background }) => {
69
- switch (icon) {
70
- case "STEERING_WHEEL":
71
- return <SvgIconSteeringWheel icon="STEERING_WHEEL" color={color} size={size} />;
72
-
73
- case "CHEVRON_DOWN":
74
- return (
75
- <IconChevronDown
76
- color={color ?? theme.colors.gray[700]}
77
- size={size ?? 20}
78
- background={background}
79
- />
80
- );
81
-
82
- case "CHEVRON_UP":
83
- return (
84
- <IconChevronUp
85
- color={color ?? theme.colors.gray[700]}
86
- size={size ?? 20}
87
- background={background}
88
- />
89
- );
90
-
91
- case "CHECK_BOX_FILL":
92
- return <SvgIconCheckBoxFill icon="CHECK_BOX_FILL" color={color} size={size} />;
93
-
94
- case "CHECK_OUTLINE":
95
- return <SvgIconCheckOutline icon="CHECK_OUTLINE" color={color} size={size} />;
96
-
97
- case "CHECK_BOX_OUTLINE":
98
- return <SvgIconCheckBoxOutline icon="CHECK_BOX_OUTLINE" color={color} size={size} />;
99
-
100
- case "CAMERA_PLUS":
101
- return <SvgIconCameraPlus color={color} size={size} icon={"CAMERA_PLUS"} />;
102
-
103
- case "MOON_STARS":
104
- return <SvgIconMoonStars color={color} size={size} icon={"MOON_STARS"} />;
105
-
106
- case "CALL_BELL":
107
- return <SvgIconCallBell color={color} size={size} icon={"CALL_BELL"} />;
108
-
109
- case "STEERING_WHEEL_FILL":
110
- return <SvgIconSteeringWheelFill color={color} size={size} icon={"STEERING_WHEEL_FILL"} />;
111
-
112
- case "TROPHY":
113
- return <SvgIconTrophy color={theme.colors.orange[150]} size={size} icon={"TROPHY"} />;
114
-
115
- case "SHOPPING_CART":
116
- return <IconShoppingCart icon={"SHOPPING_CART"} />;
117
-
118
- case "CREDIT_CARD":
119
- return <IconCreditCard icon={"CREDIT_CARD"} />;
120
-
121
- case "FILE_TEXT":
122
- return <IconFileText icon={"FILE_TEXT"} />;
123
-
124
- case "TRUCK":
125
- return <IconTruck color={color} size={size} icon={"TRUCK"} />;
126
-
127
- case "PACKAGE_CHECK":
128
- return <IconPackageCheck icon={"PACKAGE_CHECK"} />;
129
-
130
- case "EYE_SLASH":
131
- return <SvgIconEyeSlash color={color} size={size} icon={"EYE_SLASH"} />;
132
-
133
- case "EYE":
134
- return <SvgIconEye color={color} size={size} icon={"EYE"} />;
135
-
136
- case "CALENDAR":
137
- return <SvgIconCalendar color={color} size={size} icon={"CALENDAR"} />;
138
-
139
- case "TIMER":
140
- return <SvgIconTimer color={color} size={size} icon={"TIMER"} />;
141
-
142
- case "GEAR":
143
- return <SvgIconGear color={color} size={size} icon={"GEAR"} />;
144
-
145
- case "CURRENCY":
146
- return <SvgIconCurrency color={color} size={size} icon={"CURRENCY"} />;
147
-
148
- case "GAUGE":
149
- return <SvgIconGauge color={color} size={size} icon={"GAUGE"} />;
150
-
151
- case "GAS_PUMP":
152
- return <SvgIconGasPump color={color} size={size} icon={"GAS_PUMP"} />;
153
-
154
- case "ARROW_LEFT":
155
- return <SvgIconArrowLeft color={color} size={size} icon={"ARROW_LEFT"} />;
156
-
157
- case "ARROW_CHEVRON_UP":
158
- return <ArrowChevronUp color={color} size={size} icon={"ARROW_CHEVRON_UP"} />;
159
-
160
- case "ARROW_CHEVRON_DOWN":
161
- return <ArrowChevronDown color={color} size={size} icon={"ARROW_CHEVRON_DOWN"} />;
162
-
163
- case "BLUETOOTH":
164
- return <SvgIconBluetooth color={color} size={size} icon={"BLUETOOTH"} />;
165
-
166
- case "BLUETOOTH_CONNECTED":
167
- return <SvgIconBluetoothConnected color={color} size={size} icon={"BLUETOOTH_CONNECTED"} />;
168
-
169
- case "LIST":
170
- return <SvgIconList color={color} size={size} icon={"LIST"} />;
171
-
172
- case "WIFI_HIGH":
173
- return <SvgIconWiFiHigh color={color} size={size} icon={"WIFI_HIGH"} />;
174
-
175
- case "WIFI_X":
176
- return <SvgIconWiFiX color={color} size={size} icon={"WIFI_X"} />;
177
-
178
- case "NOTE_PINCEL":
179
- return <SvgIconNotePencil color={color} size={size} icon={"NOTE_PINCEL"} />;
180
-
181
- case "CHECK_CIRCLE":
182
- return (
183
- <SvgIconCheckCircle
184
- color={color}
185
- background={background}
186
- size={size}
187
- icon={"CHECK_CIRCLE"}
188
- />
189
- );
190
-
191
- case "ARROW_DROP_DOWN":
192
- return <SvgIconArrowDropDown color={color} size={size} icon={"ARROW_DROP_DOWN"} />;
193
-
194
- case "CLOSED":
195
- return <SvgIconClosed color={color} size={size} icon={"CLOSED"} />;
196
-
197
- case "BELL":
198
- return <SvgIconBell color={color} size={size} icon={"BELL"} />;
199
-
200
- case "BED":
201
- return <SvgIconBed color={color} size={size} icon={"BED"} />;
202
-
203
- case "FILES":
204
- return <SvgIconFiles color={color} size={size} icon={"FILES"} />;
205
-
206
- case "LIFEBUOY":
207
- return <SvgIconLifebuoy color={color} size={size} icon={"LIFEBUOY"} />;
208
-
209
- case "RECUSED":
210
- return <SvgIconRecused color={color} size={size} icon={"RECUSED"} />;
211
-
212
- case "EXCLAMATION_CIRCLE":
213
- return (
214
- <SvgIconExclamationCircle
215
- background={background}
216
- color={color}
217
- size={size}
218
- icon={"EXCLAMATION_CIRCLE"}
219
- />
220
- );
221
-
222
- case "EXCLAMATION_TRIANGLE":
223
- return <SvgIconWarningTriangle color={color} size={size} icon={"EXCLAMATION_TRIANGLE"} />;
224
-
225
- case "PLUS":
226
- return <SvgIconPlus color={color} size={size} icon={"PLUS"} />;
227
-
228
- case "X_CIRCLE":
229
- return <SvgIconXCirle color={color} size={size} icon={"X_CIRCLE"} />;
230
-
231
- case "CAR":
232
- return <SvgIconCar color={color} size={size} icon={"CAR"} />;
233
-
234
- case "HOUSE":
235
- return <SvgIconHouse color={color} size={size} icon={"HOUSE"} />;
236
-
237
- case "HOURGLASS":
238
- return <SvgIconHourglass color={color} size={size} icon={"HOURGLASS"} />;
239
-
240
- case "ISLAND":
241
- return <SvgIconIsland color={color} size={size} icon={"ISLAND"} />;
242
-
243
- case "TRUCK_ACTIVITY":
244
- return (
245
- <SvgIconTruckActivity
246
- color={color}
247
- size={size}
248
- background={background}
249
- icon={"TRUCK_ACTIVITY"}
250
- />
251
- );
252
-
253
- case "COFFEE":
254
- return <SvgIconCoffee color={color} size={size} icon={"COFFEE"} />;
255
-
256
- default:
257
- return <SvgIconCameraPlus color={color} size={size} icon={"CAMERA_PLUS"} />;
258
- }
259
- };
260
-
261
- const IconsMenuItems: React.FC<ISvgProps> = ({ icon, color, size }) => {
262
- switch (icon) {
263
- case "COIL":
264
- return <SvgPackage color={color} size={size} icon={"COIL"} />;
265
- case "LOADING":
266
- return <SvgTruckTrailer color={color} size={size} icon={"LOADING"} />;
267
-
268
- case "HISTORY":
269
- return <SvgChartBar color={color} size={size} icon={"HISTORY"} />;
270
-
271
- default:
272
- return <SvgPackage color={color} size={size} icon={"COIL"} />;
273
- }
274
- };
275
-
276
- /**
277
- * EXPORTS
278
- */
279
-
280
- export { Icons, IconsMenuItems };
1
+ /**
2
+ * IMPORTS
3
+ */
4
+ import React from "react";
5
+
6
+ // commons / svg
7
+ import { SvgIconSteeringWheel } from "./steering-wheel";
8
+ import { SvgIconCheckBoxFill } from "./check-box-fill";
9
+ import { SvgIconCheckBoxOutline } from "./check-box-outline";
10
+ import { SvgIconCameraPlus } from "./camera-plus";
11
+ import { SvgIconMoonStars } from "./moon-stars";
12
+ import { SvgIconCallBell } from "./call-bell";
13
+ import { SvgIconSteeringWheelFill } from "./steering-wheel-fill";
14
+ import { SvgIconTrophy } from "./trophy";
15
+ import { IconShoppingCart } from "./shopping-cart";
16
+ import { IconCreditCard } from "./credit-card";
17
+ import { IconFileText } from "./file-text";
18
+ import { IconTruck } from "./truck";
19
+ import { IconPackageCheck } from "./package-check";
20
+ import { SvgIconEyeSlash } from "./eye-slash";
21
+ import { SvgIconCalendar } from "./calendar";
22
+ import { SvgIconCurrency } from "./currency";
23
+ import { SvgIconEye } from "./eye";
24
+ import { SvgIconGasPump } from "./gas-pump";
25
+ import { SvgIconGauge } from "./gauge";
26
+ import { SvgIconGear } from "./gear";
27
+ import { SvgIconTimer } from "./timer";
28
+ import { SvgIconNotePencil } from "./note-pincel";
29
+ import { SvgIconCheckCircle } from "./check-circle";
30
+ import { SvgIconArrowLeft } from "./arrow-left";
31
+ import { SvgIconBluetooth } from "./bluetooth";
32
+ import { SvgIconBluetoothConnected } from "./bluetooth-connected";
33
+ import { SvgIconList } from "./list";
34
+ import { SvgIconWiFiHigh } from "./wifi-high";
35
+ import { SvgIconWiFiX } from "./wifi-x";
36
+ import { SvgIconArrowDropDown } from "./arrow-drop-down";
37
+ import { SvgIconClosed } from "./closed";
38
+ import { SvgPackage } from "./package";
39
+ import { SvgChartBar } from "./chart-bar";
40
+ import { SvgTruckTrailer } from "./truck-trailer";
41
+ import { SvgIconBell } from "./bell";
42
+ import { SvgIconBed } from "./bed";
43
+ import { SvgIconFiles } from "./files";
44
+ import { SvgIconLifebuoy } from "./lifebuoy";
45
+ import { SvgIconRecused } from "./recused";
46
+ import { SvgIconExclamationCircle } from "./exclamation-circle";
47
+ import { SvgIconPlus } from "./plus";
48
+ import { SvgIconXCirle } from "./x-circle";
49
+ import { SvgIconCheckOutline } from "./check-outline";
50
+ import { SvgIconTruckActivity } from "./truck-activity";
51
+ import { SvgIconCar } from "./car";
52
+ import { SvgIconCoffee } from "./coffee";
53
+ import { SvgIconWarningTriangle } from "./exclamation-triangle";
54
+ import { IconChevronDown } from "./chevron-down";
55
+ import IconChevronUp from "./chevron-up";
56
+ import { ArrowChevronUp } from "./arrow-chevron-up";
57
+ import { ArrowChevronDown } from "./arrow-chevron-down";
58
+
59
+ // typing
60
+ import { type ISvgProps } from "./interface";
61
+
62
+ // styles
63
+ import { theme } from "../../styles/theme/theme";
64
+ import { SvgIconHouse } from "./house";
65
+ import { SvgIconHourglass } from "./hourglass";
66
+ import { SvgIconIsland } from "./island";
67
+ import { SvgIconPlusContainer } from "./plus-container";
68
+ import { SvgIconPlusTrash } from "./trash";
69
+
70
+ const Icons: React.FC<ISvgProps> = ({ icon, color, size, background }) => {
71
+ switch (icon) {
72
+ case "STEERING_WHEEL":
73
+ return <SvgIconSteeringWheel icon="STEERING_WHEEL" color={color} size={size} />;
74
+
75
+ case "CHEVRON_DOWN":
76
+ return (
77
+ <IconChevronDown
78
+ color={color ?? theme.colors.gray[700]}
79
+ size={size ?? 20}
80
+ background={background}
81
+ />
82
+ );
83
+
84
+ case "CHEVRON_UP":
85
+ return (
86
+ <IconChevronUp
87
+ color={color ?? theme.colors.gray[700]}
88
+ size={size ?? 20}
89
+ background={background}
90
+ />
91
+ );
92
+
93
+ case "CHECK_BOX_FILL":
94
+ return <SvgIconCheckBoxFill icon="CHECK_BOX_FILL" color={color} size={size} />;
95
+
96
+ case "CHECK_OUTLINE":
97
+ return <SvgIconCheckOutline icon="CHECK_OUTLINE" color={color} size={size} />;
98
+
99
+ case "CHECK_BOX_OUTLINE":
100
+ return <SvgIconCheckBoxOutline icon="CHECK_BOX_OUTLINE" color={color} size={size} />;
101
+
102
+ case "CAMERA_PLUS":
103
+ return <SvgIconCameraPlus color={color} size={size} icon={"CAMERA_PLUS"} />;
104
+
105
+ case "MOON_STARS":
106
+ return <SvgIconMoonStars color={color} size={size} icon={"MOON_STARS"} />;
107
+
108
+ case "CALL_BELL":
109
+ return <SvgIconCallBell color={color} size={size} icon={"CALL_BELL"} />;
110
+
111
+ case "STEERING_WHEEL_FILL":
112
+ return <SvgIconSteeringWheelFill color={color} size={size} icon={"STEERING_WHEEL_FILL"} />;
113
+
114
+ case "TROPHY":
115
+ return <SvgIconTrophy color={theme.colors.orange[150]} size={size} icon={"TROPHY"} />;
116
+
117
+ case "SHOPPING_CART":
118
+ return <IconShoppingCart icon={"SHOPPING_CART"} />;
119
+
120
+ case "CREDIT_CARD":
121
+ return <IconCreditCard icon={"CREDIT_CARD"} />;
122
+
123
+ case "FILE_TEXT":
124
+ return <IconFileText icon={"FILE_TEXT"} />;
125
+
126
+ case "TRUCK":
127
+ return <IconTruck color={color} size={size} icon={"TRUCK"} />;
128
+
129
+ case "PACKAGE_CHECK":
130
+ return <IconPackageCheck icon={"PACKAGE_CHECK"} />;
131
+
132
+ case "EYE_SLASH":
133
+ return <SvgIconEyeSlash color={color} size={size} icon={"EYE_SLASH"} />;
134
+
135
+ case "EYE":
136
+ return <SvgIconEye color={color} size={size} icon={"EYE"} />;
137
+
138
+ case "CALENDAR":
139
+ return <SvgIconCalendar color={color} size={size} icon={"CALENDAR"} />;
140
+
141
+ case "TIMER":
142
+ return <SvgIconTimer color={color} size={size} icon={"TIMER"} />;
143
+
144
+ case "GEAR":
145
+ return <SvgIconGear color={color} size={size} icon={"GEAR"} />;
146
+
147
+ case "CURRENCY":
148
+ return <SvgIconCurrency color={color} size={size} icon={"CURRENCY"} />;
149
+
150
+ case "GAUGE":
151
+ return <SvgIconGauge color={color} size={size} icon={"GAUGE"} />;
152
+
153
+ case "GAS_PUMP":
154
+ return <SvgIconGasPump color={color} size={size} icon={"GAS_PUMP"} />;
155
+
156
+ case "ARROW_LEFT":
157
+ return <SvgIconArrowLeft color={color} size={size} icon={"ARROW_LEFT"} />;
158
+
159
+ case "ARROW_CHEVRON_UP":
160
+ return <ArrowChevronUp color={color} size={size} icon={"ARROW_CHEVRON_UP"} />;
161
+
162
+ case "ARROW_CHEVRON_DOWN":
163
+ return <ArrowChevronDown color={color} size={size} icon={"ARROW_CHEVRON_DOWN"} />;
164
+
165
+ case "BLUETOOTH":
166
+ return (
167
+ <SvgIconBluetooth background={background} color={color} size={size} icon={"BLUETOOTH"} />
168
+ );
169
+
170
+ case "BLUETOOTH_CONNECTED":
171
+ return <SvgIconBluetoothConnected color={color} size={size} icon={"BLUETOOTH_CONNECTED"} />;
172
+
173
+ case "LIST":
174
+ return <SvgIconList color={color} size={size} icon={"LIST"} />;
175
+
176
+ case "WIFI_HIGH":
177
+ return <SvgIconWiFiHigh color={color} size={size} icon={"WIFI_HIGH"} />;
178
+
179
+ case "WIFI_X":
180
+ return <SvgIconWiFiX color={color} size={size} icon={"WIFI_X"} />;
181
+
182
+ case "NOTE_PINCEL":
183
+ return <SvgIconNotePencil color={color} size={size} icon={"NOTE_PINCEL"} />;
184
+
185
+ case "CHECK_CIRCLE":
186
+ return (
187
+ <SvgIconCheckCircle
188
+ color={color}
189
+ background={background}
190
+ size={size}
191
+ icon={"CHECK_CIRCLE"}
192
+ />
193
+ );
194
+
195
+ case "ARROW_DROP_DOWN":
196
+ return <SvgIconArrowDropDown color={color} size={size} icon={"ARROW_DROP_DOWN"} />;
197
+
198
+ case "CLOSED":
199
+ return <SvgIconClosed color={color} size={size} icon={"CLOSED"} />;
200
+
201
+ case "BELL":
202
+ return <SvgIconBell color={color} size={size} icon={"BELL"} />;
203
+
204
+ case "BED":
205
+ return <SvgIconBed color={color} size={size} icon={"BED"} />;
206
+
207
+ case "FILES":
208
+ return <SvgIconFiles color={color} size={size} icon={"FILES"} />;
209
+
210
+ case "LIFEBUOY":
211
+ return <SvgIconLifebuoy color={color} size={size} icon={"LIFEBUOY"} />;
212
+
213
+ case "RECUSED":
214
+ return <SvgIconRecused color={color} size={size} icon={"RECUSED"} />;
215
+
216
+ case "EXCLAMATION_CIRCLE":
217
+ return (
218
+ <SvgIconExclamationCircle
219
+ background={background}
220
+ color={color}
221
+ size={size}
222
+ icon={"EXCLAMATION_CIRCLE"}
223
+ />
224
+ );
225
+
226
+ case "EXCLAMATION_TRIANGLE":
227
+ return <SvgIconWarningTriangle color={color} size={size} icon={"EXCLAMATION_TRIANGLE"} />;
228
+
229
+ case "PLUS":
230
+ return <SvgIconPlus color={color} size={size} icon={"PLUS"} />;
231
+
232
+ case "X_CIRCLE":
233
+ return <SvgIconXCirle color={color} size={size} icon={"X_CIRCLE"} />;
234
+
235
+ case "CAR":
236
+ return <SvgIconCar color={color} size={size} icon={"CAR"} />;
237
+
238
+ case "HOUSE":
239
+ return <SvgIconHouse color={color} size={size} icon={"HOUSE"} />;
240
+
241
+ case "HOURGLASS":
242
+ return <SvgIconHourglass color={color} size={size} icon={"HOURGLASS"} />;
243
+
244
+ case "ISLAND":
245
+ return <SvgIconIsland color={color} size={size} icon={"ISLAND"} />;
246
+
247
+ case "TRUCK_ACTIVITY":
248
+ return (
249
+ <SvgIconTruckActivity
250
+ color={color}
251
+ size={size}
252
+ background={background}
253
+ icon={"TRUCK_ACTIVITY"}
254
+ />
255
+ );
256
+
257
+ case "COFFEE":
258
+ return <SvgIconCoffee color={color} size={size} icon={"COFFEE"} />;
259
+
260
+ case "PLUS_CONTAINER":
261
+ return <SvgIconPlusContainer color={color} size={size} icon="PLUS_CONTAINER" />;
262
+
263
+ case "TRASH":
264
+ return <SvgIconPlusTrash color={color} size={size} icon="TRASH" />;
265
+ default:
266
+ return <SvgIconCameraPlus color={color} size={size} icon={"CAMERA_PLUS"} />;
267
+ }
268
+ };
269
+
270
+ const IconsMenuItems: React.FC<ISvgProps> = ({ icon, color, size }) => {
271
+ switch (icon) {
272
+ case "COIL":
273
+ return <SvgPackage color={color} size={size} icon={"COIL"} />;
274
+ case "LOADING":
275
+ return <SvgTruckTrailer color={color} size={size} icon={"LOADING"} />;
276
+
277
+ case "HISTORY":
278
+ return <SvgChartBar color={color} size={size} icon={"HISTORY"} />;
279
+
280
+ default:
281
+ return <SvgPackage color={color} size={size} icon={"COIL"} />;
282
+ }
283
+ };
284
+
285
+ /**
286
+ * EXPORTS
287
+ */
288
+
289
+ export { Icons, IconsMenuItems };
@@ -0,0 +1,32 @@
1
+ /**
2
+ * IMPORTS
3
+ */
4
+ import * as React from "react";
5
+ import Svg, { Path } from "react-native-svg";
6
+
7
+ //typings
8
+ import { type ISvgProps } from "../interface";
9
+
10
+ const SvgIconPlusContainer: React.FC<ISvgProps> = ({ color, size, ...res }) => (
11
+ <Svg
12
+ //@ts-ignore
13
+ xmlns="http://www.w3.org/2000/svg"
14
+ width={size ?? 18}
15
+ height={size ? size - 2 : 16}
16
+ fill="none"
17
+ viewBox={`0 0 ${size ?? "18"} ${size ?? "16"}`}
18
+ {...res}
19
+ >
20
+ <Path
21
+ fill={color ?? "#050022"}
22
+ fillRule="evenodd"
23
+ d="M16.348 13.625c0 .516-.476.938-1.062.938H2.536c-.587 0-1.063-.422-1.063-.938V2.375c0-.516.476-.937 1.063-.937h12.75c.586 0 1.062.421 1.062.937zM15.286.5H2.536C1.362.5.41 1.34.41 2.375v11.25c0 1.036.951 1.875 2.125 1.875h12.75c1.173 0 2.125-.84 2.125-1.875V2.375C17.41 1.339 16.459.5 15.286.5m-3.188 7.031H9.442V5.188c0-.258-.238-.47-.531-.47s-.532.212-.532.47V7.53H5.723c-.293 0-.531.211-.531.469s.238.469.531.469H8.38v2.344c0 .257.238.468.532.468.293 0 .531-.21.531-.469V8.47h2.656c.293 0 .531-.211.531-.469s-.237-.469-.53-.469"
24
+ clipRule="evenodd"
25
+ ></Path>
26
+ </Svg>
27
+ );
28
+
29
+ /**
30
+ * EXPORTS
31
+ */
32
+ export { SvgIconPlusContainer };
@@ -0,0 +1,31 @@
1
+ /**
2
+ * IMPORTS
3
+ */
4
+ import React from "react";
5
+ import Svg, { Path } from "react-native-svg";
6
+
7
+ // typings
8
+ import { type ISvgProps } from "../interface";
9
+
10
+ const SvgIconPlusTrash: React.FC<ISvgProps> = ({ color, size }) => (
11
+ <Svg
12
+ //@ts-ignore
13
+ xmlns="http://www.w3.org/2000/svg"
14
+ width={size ? size - 2 : 16}
15
+ height={size}
16
+ fill="none"
17
+ viewBox="0 0 16 18"
18
+ >
19
+ <Path
20
+ stroke={color ?? "9F0000"}
21
+ strokeLinecap="round"
22
+ strokeLinejoin="round"
23
+ d="m2.59 3.5.733 11.012c.065.964.097 1.447.305 1.812.184.322.46.58.794.742.378.184.862.184 1.828.184h3.678c.967 0 1.45 0 1.829-.183.333-.162.61-.42.793-.743.209-.366.24-.848.305-1.812L13.59 3.5m1.834 0H.756m3.667 0 .248-.744c.24-.722.36-1.082.583-1.349.197-.235.45-.417.736-.53C6.313.75 6.693.75 7.454.75h1.271c.76 0 1.14 0 1.464.127.286.113.538.295.735.53.223.267.344.627.584 1.349l.248.744m-5.5 3.667v6.416m3.667-6.416v6.416"
24
+ ></Path>
25
+ </Svg>
26
+ );
27
+
28
+ /**
29
+ * EXPORTS
30
+ */
31
+ export { SvgIconPlusTrash };