jornada-ui 0.4.11 → 0.4.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (447) hide show
  1. package/README.md +31 -31
  2. package/lib/commonjs/common/icons-svg/bluetooth/index.js +45 -27
  3. package/lib/commonjs/common/icons-svg/bluetooth/index.js.map +1 -1
  4. package/lib/commonjs/common/icons-svg/constants/index.js +7 -5
  5. package/lib/commonjs/common/icons-svg/constants/index.js.map +1 -1
  6. package/lib/commonjs/common/icons-svg/index.js +19 -4
  7. package/lib/commonjs/common/icons-svg/index.js.map +1 -1
  8. package/lib/commonjs/common/icons-svg/plus-container/index.js +42 -0
  9. package/lib/commonjs/common/icons-svg/plus-container/index.js.map +1 -0
  10. package/lib/commonjs/common/icons-svg/trash/index.js +41 -0
  11. package/lib/commonjs/common/icons-svg/trash/index.js.map +1 -0
  12. package/lib/commonjs/components/activity-step/components/activite-row/index.js +137 -0
  13. package/lib/commonjs/components/activity-step/components/activite-row/index.js.map +1 -0
  14. package/lib/commonjs/components/activity-step/index.js +77 -0
  15. package/lib/commonjs/components/activity-step/index.js.map +1 -0
  16. package/lib/commonjs/components/activity-step/interface.js +6 -0
  17. package/lib/commonjs/components/activity-step/interface.js.map +1 -0
  18. package/lib/commonjs/components/activity-step/styles.js +86 -0
  19. package/lib/commonjs/components/activity-step/styles.js.map +1 -0
  20. package/lib/commonjs/components/card-scheduled-journey/index.js +8 -6
  21. package/lib/commonjs/components/card-scheduled-journey/index.js.map +1 -1
  22. package/lib/commonjs/components/coil-removel-code/index.js +4 -3
  23. package/lib/commonjs/components/coil-removel-code/index.js.map +1 -1
  24. package/lib/commonjs/components/inputs/input-date-time/index.js +136 -0
  25. package/lib/commonjs/components/inputs/input-date-time/index.js.map +1 -0
  26. package/lib/commonjs/components/inputs/input-date-time/interface.d.js +2 -0
  27. package/lib/commonjs/components/inputs/input-date-time/interface.d.js.map +1 -0
  28. package/lib/commonjs/components/inputs/input-date-time/styles.js +66 -0
  29. package/lib/commonjs/components/inputs/input-date-time/styles.js.map +1 -0
  30. package/lib/commonjs/components/list-devices/helpers/get-icon-by-status.js +25 -0
  31. package/lib/commonjs/components/list-devices/helpers/get-icon-by-status.js.map +1 -0
  32. package/lib/commonjs/components/list-devices/index.js +104 -0
  33. package/lib/commonjs/components/list-devices/index.js.map +1 -0
  34. package/lib/commonjs/components/list-devices/interface.d.js +2 -0
  35. package/lib/commonjs/components/list-devices/interface.d.js.map +1 -0
  36. package/lib/commonjs/components/list-devices/styles.js +60 -0
  37. package/lib/commonjs/components/list-devices/styles.js.map +1 -0
  38. package/lib/commonjs/components/list-supplies/index.js +171 -0
  39. package/lib/commonjs/components/list-supplies/index.js.map +1 -0
  40. package/lib/commonjs/components/list-supplies/interface.d.js +2 -0
  41. package/lib/commonjs/components/list-supplies/interface.d.js.map +1 -0
  42. package/lib/commonjs/components/maintenance-description-input/index.js +3 -0
  43. package/lib/commonjs/components/maintenance-description-input/index.js.map +1 -1
  44. package/lib/commonjs/components/maintenance-description-input/styles.js +1 -1
  45. package/lib/commonjs/components/maintenance-description-input/styles.js.map +1 -1
  46. package/lib/commonjs/components/modals/modal-activity-reason/index.js +170 -0
  47. package/lib/commonjs/components/modals/modal-activity-reason/index.js.map +1 -0
  48. package/lib/commonjs/components/modals/modal-activity-reason/interface.d.js +2 -0
  49. package/lib/commonjs/components/modals/modal-activity-reason/interface.d.js.map +1 -0
  50. package/lib/commonjs/components/modals/modal-create-activitie/helpers/index.js +27 -0
  51. package/lib/commonjs/components/modals/modal-create-activitie/helpers/index.js.map +1 -0
  52. package/lib/commonjs/components/modals/modal-create-activitie/index.js +203 -0
  53. package/lib/commonjs/components/modals/modal-create-activitie/index.js.map +1 -0
  54. package/lib/commonjs/components/modals/modal-create-activitie/interface.js +2 -0
  55. package/lib/commonjs/components/modals/modal-create-activitie/interface.js.map +1 -0
  56. package/lib/commonjs/components/modals/modal-create-activitie/styles.js +42 -0
  57. package/lib/commonjs/components/modals/modal-create-activitie/styles.js.map +1 -0
  58. package/lib/commonjs/components/modals/modal-exclude-activitie/index.js +2 -0
  59. package/lib/commonjs/components/modals/modal-exclude-activitie/index.js.map +1 -0
  60. package/lib/commonjs/components/modals/modal-journey-rectification/index.js +242 -0
  61. package/lib/commonjs/components/modals/modal-journey-rectification/index.js.map +1 -0
  62. package/lib/commonjs/components/modals/modal-journey-rectification/interface.d.js +2 -0
  63. package/lib/commonjs/components/modals/modal-journey-rectification/interface.d.js.map +1 -0
  64. package/lib/commonjs/components/modals/modal-to-confimations/index.js +182 -0
  65. package/lib/commonjs/components/modals/modal-to-confimations/index.js.map +1 -0
  66. package/lib/commonjs/components/modals/modal-to-confimations/interface.js +2 -0
  67. package/lib/commonjs/components/modals/modal-to-confimations/interface.js.map +1 -0
  68. package/lib/commonjs/components/selects/select-date-and-hours/index.js +80 -0
  69. package/lib/commonjs/components/selects/select-date-and-hours/index.js.map +1 -0
  70. package/lib/commonjs/components/selects/select-date-and-hours/interface.js +6 -0
  71. package/lib/commonjs/components/selects/select-date-and-hours/interface.js.map +1 -0
  72. package/lib/commonjs/components/selects/select-date-and-hours/styles.js +34 -0
  73. package/lib/commonjs/components/selects/select-date-and-hours/styles.js.map +1 -0
  74. package/lib/commonjs/components/selects/select-option/index.js +26 -9
  75. package/lib/commonjs/components/selects/select-option/index.js.map +1 -1
  76. package/lib/commonjs/components/selects/select-option/styles.js +6 -7
  77. package/lib/commonjs/components/selects/select-option/styles.js.map +1 -1
  78. package/lib/commonjs/components/step-indicator/index.js +54 -40
  79. package/lib/commonjs/components/step-indicator/index.js.map +1 -1
  80. package/lib/commonjs/components/step-indicator/styles.js.map +1 -1
  81. package/lib/commonjs/components/supply-error-card/index.js +6 -6
  82. package/lib/commonjs/components/toast-message/index.js +8 -7
  83. package/lib/commonjs/components/toast-message/index.js.map +1 -1
  84. package/lib/commonjs/components/travel-history/index.js +7 -7
  85. package/lib/commonjs/components/travel-history/index.js.map +1 -1
  86. package/lib/commonjs/components/trip-details-card/index.js +102 -22
  87. package/lib/commonjs/components/trip-details-card/index.js.map +1 -1
  88. package/lib/commonjs/components/typography/index.js +5 -5
  89. package/lib/commonjs/components/typography/index.js.map +1 -1
  90. package/lib/commonjs/index.js +53 -4
  91. package/lib/commonjs/index.js.map +1 -1
  92. package/lib/commonjs/stories/list-devices/list-devices.stories.js +146 -0
  93. package/lib/commonjs/stories/list-devices/list-devices.stories.js.map +1 -0
  94. package/lib/commonjs/stories/list-supplies/list-supplies.stories.js +69 -0
  95. package/lib/commonjs/stories/list-supplies/list-supplies.stories.js.map +1 -0
  96. package/lib/commonjs/stories/modal-activity-reason/modal-activity-reason.stories.js +63 -0
  97. package/lib/commonjs/stories/modal-activity-reason/modal-activity-reason.stories.js.map +1 -0
  98. package/lib/commonjs/stories/modal-journey-rectification/modal-journey-rectification.stories.js +63 -0
  99. package/lib/commonjs/stories/modal-journey-rectification/modal-journey-rectification.stories.js.map +1 -0
  100. package/lib/commonjs/stories/step-indicator/step-indicator.stories.js +1 -0
  101. package/lib/commonjs/stories/step-indicator/step-indicator.stories.js.map +1 -1
  102. package/lib/commonjs/stories/supply-error-card/supply-error-card.stories.js +2 -2
  103. package/lib/commonjs/stories/trip-details-card/trip-details-card.stories.js +39 -6
  104. package/lib/commonjs/stories/trip-details-card/trip-details-card.stories.js.map +1 -1
  105. package/lib/commonjs/styles/theme/theme.js +1 -0
  106. package/lib/commonjs/styles/theme/theme.js.map +1 -1
  107. package/lib/commonjs/utils/text-limit/index.js +37 -0
  108. package/lib/commonjs/utils/text-limit/index.js.map +1 -0
  109. package/lib/module/common/icons-svg/bluetooth/index.js +45 -27
  110. package/lib/module/common/icons-svg/bluetooth/index.js.map +1 -1
  111. package/lib/module/common/icons-svg/constants/index.js +7 -5
  112. package/lib/module/common/icons-svg/constants/index.js.map +1 -1
  113. package/lib/module/common/icons-svg/index.js +19 -4
  114. package/lib/module/common/icons-svg/index.js.map +1 -1
  115. package/lib/module/common/icons-svg/plus-container/index.js +36 -0
  116. package/lib/module/common/icons-svg/plus-container/index.js.map +1 -0
  117. package/lib/module/common/icons-svg/trash/index.js +34 -0
  118. package/lib/module/common/icons-svg/trash/index.js.map +1 -0
  119. package/lib/module/components/activity-step/components/activite-row/index.js +134 -0
  120. package/lib/module/components/activity-step/components/activite-row/index.js.map +1 -0
  121. package/lib/module/components/activity-step/index.js +73 -0
  122. package/lib/module/components/activity-step/index.js.map +1 -0
  123. package/lib/module/components/activity-step/interface.js +4 -0
  124. package/lib/module/components/activity-step/interface.js.map +1 -0
  125. package/lib/module/components/activity-step/styles.js +83 -0
  126. package/lib/module/components/activity-step/styles.js.map +1 -0
  127. package/lib/module/components/card-scheduled-journey/index.js +8 -6
  128. package/lib/module/components/card-scheduled-journey/index.js.map +1 -1
  129. package/lib/module/components/coil-removel-code/index.js +4 -3
  130. package/lib/module/components/coil-removel-code/index.js.map +1 -1
  131. package/lib/module/components/inputs/input-date-time/index.js +130 -0
  132. package/lib/module/components/inputs/input-date-time/index.js.map +1 -0
  133. package/lib/module/components/inputs/input-date-time/interface.d.js +2 -0
  134. package/lib/module/components/inputs/input-date-time/interface.d.js.map +1 -0
  135. package/lib/module/components/inputs/input-date-time/styles.js +62 -0
  136. package/lib/module/components/inputs/input-date-time/styles.js.map +1 -0
  137. package/lib/module/components/list-devices/helpers/get-icon-by-status.js +21 -0
  138. package/lib/module/components/list-devices/helpers/get-icon-by-status.js.map +1 -0
  139. package/lib/module/components/list-devices/index.js +100 -0
  140. package/lib/module/components/list-devices/index.js.map +1 -0
  141. package/lib/module/components/list-devices/interface.d.js +2 -0
  142. package/lib/module/components/list-devices/interface.d.js.map +1 -0
  143. package/lib/module/components/list-devices/styles.js +56 -0
  144. package/lib/module/components/list-devices/styles.js.map +1 -0
  145. package/lib/module/components/list-supplies/index.js +165 -0
  146. package/lib/module/components/list-supplies/index.js.map +1 -0
  147. package/lib/module/components/list-supplies/interface.d.js +2 -0
  148. package/lib/module/components/list-supplies/interface.d.js.map +1 -0
  149. package/lib/module/components/maintenance-description-input/index.js +3 -0
  150. package/lib/module/components/maintenance-description-input/index.js.map +1 -1
  151. package/lib/module/components/maintenance-description-input/styles.js +1 -1
  152. package/lib/module/components/maintenance-description-input/styles.js.map +1 -1
  153. package/lib/module/components/modals/modal-activity-reason/index.js +165 -0
  154. package/lib/module/components/modals/modal-activity-reason/index.js.map +1 -0
  155. package/lib/module/components/modals/modal-activity-reason/interface.d.js +2 -0
  156. package/lib/module/components/modals/modal-activity-reason/interface.d.js.map +1 -0
  157. package/lib/module/components/modals/modal-create-activitie/helpers/index.js +24 -0
  158. package/lib/module/components/modals/modal-create-activitie/helpers/index.js.map +1 -0
  159. package/lib/module/components/modals/modal-create-activitie/index.js +196 -0
  160. package/lib/module/components/modals/modal-create-activitie/index.js.map +1 -0
  161. package/lib/module/components/modals/modal-create-activitie/interface.js +2 -0
  162. package/lib/module/components/modals/modal-create-activitie/interface.js.map +1 -0
  163. package/lib/module/components/modals/modal-create-activitie/styles.js +39 -0
  164. package/lib/module/components/modals/modal-create-activitie/styles.js.map +1 -0
  165. package/lib/module/components/modals/modal-exclude-activitie/index.js +2 -0
  166. package/lib/module/components/modals/modal-exclude-activitie/index.js.map +1 -0
  167. package/lib/module/components/modals/modal-journey-rectification/index.js +236 -0
  168. package/lib/module/components/modals/modal-journey-rectification/index.js.map +1 -0
  169. package/lib/module/components/modals/modal-journey-rectification/interface.d.js +2 -0
  170. package/lib/module/components/modals/modal-journey-rectification/interface.d.js.map +1 -0
  171. package/lib/module/components/modals/modal-to-confimations/index.js +179 -0
  172. package/lib/module/components/modals/modal-to-confimations/index.js.map +1 -0
  173. package/lib/module/components/modals/modal-to-confimations/interface.js +2 -0
  174. package/lib/module/components/modals/modal-to-confimations/interface.js.map +1 -0
  175. package/lib/module/components/selects/select-date-and-hours/index.js +74 -0
  176. package/lib/module/components/selects/select-date-and-hours/index.js.map +1 -0
  177. package/lib/module/components/selects/select-date-and-hours/interface.js +4 -0
  178. package/lib/module/components/selects/select-date-and-hours/interface.js.map +1 -0
  179. package/lib/module/components/selects/select-date-and-hours/styles.js +31 -0
  180. package/lib/module/components/selects/select-date-and-hours/styles.js.map +1 -0
  181. package/lib/module/components/selects/select-option/index.js +26 -9
  182. package/lib/module/components/selects/select-option/index.js.map +1 -1
  183. package/lib/module/components/selects/select-option/styles.js +6 -7
  184. package/lib/module/components/selects/select-option/styles.js.map +1 -1
  185. package/lib/module/components/step-indicator/index.js +55 -41
  186. package/lib/module/components/step-indicator/index.js.map +1 -1
  187. package/lib/module/components/step-indicator/styles.js.map +1 -1
  188. package/lib/module/components/supply-error-card/index.js +6 -6
  189. package/lib/module/components/toast-message/index.js +8 -7
  190. package/lib/module/components/toast-message/index.js.map +1 -1
  191. package/lib/module/components/travel-history/index.js +7 -7
  192. package/lib/module/components/travel-history/index.js.map +1 -1
  193. package/lib/module/components/trip-details-card/index.js +105 -24
  194. package/lib/module/components/trip-details-card/index.js.map +1 -1
  195. package/lib/module/components/typography/index.js +5 -5
  196. package/lib/module/components/typography/index.js.map +1 -1
  197. package/lib/module/index.js +7 -0
  198. package/lib/module/index.js.map +1 -1
  199. package/lib/module/stories/list-devices/list-devices.stories.js +140 -0
  200. package/lib/module/stories/list-devices/list-devices.stories.js.map +1 -0
  201. package/lib/module/stories/list-supplies/list-supplies.stories.js +63 -0
  202. package/lib/module/stories/list-supplies/list-supplies.stories.js.map +1 -0
  203. package/lib/module/stories/modal-activity-reason/modal-activity-reason.stories.js +57 -0
  204. package/lib/module/stories/modal-activity-reason/modal-activity-reason.stories.js.map +1 -0
  205. package/lib/module/stories/modal-journey-rectification/modal-journey-rectification.stories.js +57 -0
  206. package/lib/module/stories/modal-journey-rectification/modal-journey-rectification.stories.js.map +1 -0
  207. package/lib/module/stories/step-indicator/step-indicator.stories.js +1 -0
  208. package/lib/module/stories/step-indicator/step-indicator.stories.js.map +1 -1
  209. package/lib/module/stories/supply-error-card/supply-error-card.stories.js +2 -2
  210. package/lib/module/stories/trip-details-card/trip-details-card.stories.js +39 -6
  211. package/lib/module/stories/trip-details-card/trip-details-card.stories.js.map +1 -1
  212. package/lib/module/styles/theme/theme.js +1 -0
  213. package/lib/module/styles/theme/theme.js.map +1 -1
  214. package/lib/module/utils/text-limit/index.js +32 -0
  215. package/lib/module/utils/text-limit/index.js.map +1 -0
  216. package/lib/typescript/commonjs/src/common/icons-svg/bluetooth/index.d.ts +5 -1
  217. package/lib/typescript/commonjs/src/common/icons-svg/bluetooth/index.d.ts.map +1 -1
  218. package/lib/typescript/commonjs/src/common/icons-svg/constants/index.d.ts +2 -0
  219. package/lib/typescript/commonjs/src/common/icons-svg/constants/index.d.ts.map +1 -1
  220. package/lib/typescript/commonjs/src/common/icons-svg/index.d.ts.map +1 -1
  221. package/lib/typescript/commonjs/src/common/icons-svg/plus-container/index.d.ts +11 -0
  222. package/lib/typescript/commonjs/src/common/icons-svg/plus-container/index.d.ts.map +1 -0
  223. package/lib/typescript/commonjs/src/common/icons-svg/trash/index.d.ts +11 -0
  224. package/lib/typescript/commonjs/src/common/icons-svg/trash/index.d.ts.map +1 -0
  225. package/lib/typescript/commonjs/src/components/activity-step/components/activite-row/index.d.ts +11 -0
  226. package/lib/typescript/commonjs/src/components/activity-step/components/activite-row/index.d.ts.map +1 -0
  227. package/lib/typescript/commonjs/src/components/activity-step/index.d.ts +17 -0
  228. package/lib/typescript/commonjs/src/components/activity-step/index.d.ts.map +1 -0
  229. package/lib/typescript/commonjs/src/components/activity-step/interface.d.ts +40 -0
  230. package/lib/typescript/commonjs/src/components/activity-step/interface.d.ts.map +1 -0
  231. package/lib/typescript/commonjs/src/components/activity-step/styles.d.ts +75 -0
  232. package/lib/typescript/commonjs/src/components/activity-step/styles.d.ts.map +1 -0
  233. package/lib/typescript/commonjs/src/components/card-scheduled-journey/index.d.ts +2 -1
  234. package/lib/typescript/commonjs/src/components/card-scheduled-journey/index.d.ts.map +1 -1
  235. package/lib/typescript/commonjs/src/components/coil-removel-code/index.d.ts.map +1 -1
  236. package/lib/typescript/commonjs/src/components/inputs/input-date-time/index.d.ts +8 -0
  237. package/lib/typescript/commonjs/src/components/inputs/input-date-time/index.d.ts.map +1 -0
  238. package/lib/typescript/commonjs/src/components/inputs/input-date-time/styles.d.ts +59 -0
  239. package/lib/typescript/commonjs/src/components/inputs/input-date-time/styles.d.ts.map +1 -0
  240. package/lib/typescript/commonjs/src/components/list-devices/helpers/get-icon-by-status.d.ts +15 -0
  241. package/lib/typescript/commonjs/src/components/list-devices/helpers/get-icon-by-status.d.ts.map +1 -0
  242. package/lib/typescript/commonjs/src/components/list-devices/index.d.ts +11 -0
  243. package/lib/typescript/commonjs/src/components/list-devices/index.d.ts.map +1 -0
  244. package/lib/typescript/commonjs/src/components/list-devices/styles.d.ts +57 -0
  245. package/lib/typescript/commonjs/src/components/list-devices/styles.d.ts.map +1 -0
  246. package/lib/typescript/commonjs/src/components/list-supplies/index.d.ts +8 -0
  247. package/lib/typescript/commonjs/src/components/list-supplies/index.d.ts.map +1 -0
  248. package/lib/typescript/commonjs/src/components/maintenance-description-input/index.d.ts.map +1 -1
  249. package/lib/typescript/commonjs/src/components/modals/modal-activity-reason/index.d.ts +8 -0
  250. package/lib/typescript/commonjs/src/components/modals/modal-activity-reason/index.d.ts.map +1 -0
  251. package/lib/typescript/commonjs/src/components/modals/modal-create-activitie/helpers/index.d.ts +21 -0
  252. package/lib/typescript/commonjs/src/components/modals/modal-create-activitie/helpers/index.d.ts.map +1 -0
  253. package/lib/typescript/commonjs/src/components/modals/modal-create-activitie/index.d.ts +8 -0
  254. package/lib/typescript/commonjs/src/components/modals/modal-create-activitie/index.d.ts.map +1 -0
  255. package/lib/typescript/commonjs/src/components/modals/modal-create-activitie/interface.d.ts +19 -0
  256. package/lib/typescript/commonjs/src/components/modals/modal-create-activitie/interface.d.ts.map +1 -0
  257. package/lib/typescript/commonjs/src/components/modals/modal-create-activitie/styles.d.ts +33 -0
  258. package/lib/typescript/commonjs/src/components/modals/modal-create-activitie/styles.d.ts.map +1 -0
  259. package/lib/typescript/commonjs/src/components/modals/modal-exclude-activitie/index.d.ts +1 -0
  260. package/lib/typescript/commonjs/src/components/modals/modal-exclude-activitie/index.d.ts.map +1 -0
  261. package/lib/typescript/commonjs/src/components/modals/modal-journey-rectification/index.d.ts +8 -0
  262. package/lib/typescript/commonjs/src/components/modals/modal-journey-rectification/index.d.ts.map +1 -0
  263. package/lib/typescript/commonjs/src/components/modals/modal-to-confimations/index.d.ts +8 -0
  264. package/lib/typescript/commonjs/src/components/modals/modal-to-confimations/index.d.ts.map +1 -0
  265. package/lib/typescript/commonjs/src/components/modals/modal-to-confimations/interface.d.ts +28 -0
  266. package/lib/typescript/commonjs/src/components/modals/modal-to-confimations/interface.d.ts.map +1 -0
  267. package/lib/typescript/commonjs/src/components/selects/select-date-and-hours/index.d.ts +13 -0
  268. package/lib/typescript/commonjs/src/components/selects/select-date-and-hours/index.d.ts.map +1 -0
  269. package/lib/typescript/commonjs/src/components/selects/select-date-and-hours/interface.d.ts +22 -0
  270. package/lib/typescript/commonjs/src/components/selects/select-date-and-hours/interface.d.ts.map +1 -0
  271. package/lib/typescript/commonjs/src/components/selects/select-date-and-hours/styles.d.ts +26 -0
  272. package/lib/typescript/commonjs/src/components/selects/select-date-and-hours/styles.d.ts.map +1 -0
  273. package/lib/typescript/commonjs/src/components/selects/select-option/index.d.ts +1 -0
  274. package/lib/typescript/commonjs/src/components/selects/select-option/index.d.ts.map +1 -1
  275. package/lib/typescript/commonjs/src/components/selects/select-option/styles.d.ts +0 -1
  276. package/lib/typescript/commonjs/src/components/selects/select-option/styles.d.ts.map +1 -1
  277. package/lib/typescript/commonjs/src/components/step-indicator/index.d.ts.map +1 -1
  278. package/lib/typescript/commonjs/src/components/step-indicator/styles.d.ts +2 -2
  279. package/lib/typescript/commonjs/src/components/step-indicator/styles.d.ts.map +1 -1
  280. package/lib/typescript/commonjs/src/components/supply-error-card/index.d.ts.map +1 -1
  281. package/lib/typescript/commonjs/src/components/toast-message/index.d.ts.map +1 -1
  282. package/lib/typescript/commonjs/src/components/trip-details-card/index.d.ts.map +1 -1
  283. package/lib/typescript/commonjs/src/index.d.ts +7 -0
  284. package/lib/typescript/commonjs/src/index.d.ts.map +1 -1
  285. package/lib/typescript/commonjs/src/stories/list-devices/list-devices.stories.d.ts +22 -0
  286. package/lib/typescript/commonjs/src/stories/list-devices/list-devices.stories.d.ts.map +1 -0
  287. package/lib/typescript/commonjs/src/stories/list-supplies/list-supplies.stories.d.ts +10 -0
  288. package/lib/typescript/commonjs/src/stories/list-supplies/list-supplies.stories.d.ts.map +1 -0
  289. package/lib/typescript/commonjs/src/stories/modal-activity-reason/modal-activity-reason.stories.d.ts +10 -0
  290. package/lib/typescript/commonjs/src/stories/modal-activity-reason/modal-activity-reason.stories.d.ts.map +1 -0
  291. package/lib/typescript/commonjs/src/stories/modal-journey-rectification/modal-journey-rectification.stories.d.ts +10 -0
  292. package/lib/typescript/commonjs/src/stories/modal-journey-rectification/modal-journey-rectification.stories.d.ts.map +1 -0
  293. package/lib/typescript/commonjs/src/stories/step-indicator/step-indicator.stories.d.ts.map +1 -1
  294. package/lib/typescript/commonjs/src/stories/trip-details-card/trip-details-card.stories.d.ts.map +1 -1
  295. package/lib/typescript/commonjs/src/styles/global/theme-provider.d.ts +1 -0
  296. package/lib/typescript/commonjs/src/styles/global/theme-provider.d.ts.map +1 -1
  297. package/lib/typescript/commonjs/src/styles/theme/theme.d.ts +1 -0
  298. package/lib/typescript/commonjs/src/styles/theme/theme.d.ts.map +1 -1
  299. package/lib/typescript/commonjs/src/utils/text-limit/index.d.ts +14 -0
  300. package/lib/typescript/commonjs/src/utils/text-limit/index.d.ts.map +1 -0
  301. package/lib/typescript/module/src/common/icons-svg/bluetooth/index.d.ts +5 -1
  302. package/lib/typescript/module/src/common/icons-svg/bluetooth/index.d.ts.map +1 -1
  303. package/lib/typescript/module/src/common/icons-svg/constants/index.d.ts +2 -0
  304. package/lib/typescript/module/src/common/icons-svg/constants/index.d.ts.map +1 -1
  305. package/lib/typescript/module/src/common/icons-svg/index.d.ts.map +1 -1
  306. package/lib/typescript/module/src/common/icons-svg/plus-container/index.d.ts +11 -0
  307. package/lib/typescript/module/src/common/icons-svg/plus-container/index.d.ts.map +1 -0
  308. package/lib/typescript/module/src/common/icons-svg/trash/index.d.ts +11 -0
  309. package/lib/typescript/module/src/common/icons-svg/trash/index.d.ts.map +1 -0
  310. package/lib/typescript/module/src/components/activity-step/components/activite-row/index.d.ts +11 -0
  311. package/lib/typescript/module/src/components/activity-step/components/activite-row/index.d.ts.map +1 -0
  312. package/lib/typescript/module/src/components/activity-step/index.d.ts +17 -0
  313. package/lib/typescript/module/src/components/activity-step/index.d.ts.map +1 -0
  314. package/lib/typescript/module/src/components/activity-step/interface.d.ts +40 -0
  315. package/lib/typescript/module/src/components/activity-step/interface.d.ts.map +1 -0
  316. package/lib/typescript/module/src/components/activity-step/styles.d.ts +75 -0
  317. package/lib/typescript/module/src/components/activity-step/styles.d.ts.map +1 -0
  318. package/lib/typescript/module/src/components/card-scheduled-journey/index.d.ts +2 -1
  319. package/lib/typescript/module/src/components/card-scheduled-journey/index.d.ts.map +1 -1
  320. package/lib/typescript/module/src/components/coil-removel-code/index.d.ts.map +1 -1
  321. package/lib/typescript/module/src/components/inputs/input-date-time/index.d.ts +8 -0
  322. package/lib/typescript/module/src/components/inputs/input-date-time/index.d.ts.map +1 -0
  323. package/lib/typescript/module/src/components/inputs/input-date-time/styles.d.ts +59 -0
  324. package/lib/typescript/module/src/components/inputs/input-date-time/styles.d.ts.map +1 -0
  325. package/lib/typescript/module/src/components/list-devices/helpers/get-icon-by-status.d.ts +15 -0
  326. package/lib/typescript/module/src/components/list-devices/helpers/get-icon-by-status.d.ts.map +1 -0
  327. package/lib/typescript/module/src/components/list-devices/index.d.ts +11 -0
  328. package/lib/typescript/module/src/components/list-devices/index.d.ts.map +1 -0
  329. package/lib/typescript/module/src/components/list-devices/styles.d.ts +57 -0
  330. package/lib/typescript/module/src/components/list-devices/styles.d.ts.map +1 -0
  331. package/lib/typescript/module/src/components/list-supplies/index.d.ts +8 -0
  332. package/lib/typescript/module/src/components/list-supplies/index.d.ts.map +1 -0
  333. package/lib/typescript/module/src/components/maintenance-description-input/index.d.ts.map +1 -1
  334. package/lib/typescript/module/src/components/modals/modal-activity-reason/index.d.ts +8 -0
  335. package/lib/typescript/module/src/components/modals/modal-activity-reason/index.d.ts.map +1 -0
  336. package/lib/typescript/module/src/components/modals/modal-create-activitie/helpers/index.d.ts +21 -0
  337. package/lib/typescript/module/src/components/modals/modal-create-activitie/helpers/index.d.ts.map +1 -0
  338. package/lib/typescript/module/src/components/modals/modal-create-activitie/index.d.ts +8 -0
  339. package/lib/typescript/module/src/components/modals/modal-create-activitie/index.d.ts.map +1 -0
  340. package/lib/typescript/module/src/components/modals/modal-create-activitie/interface.d.ts +19 -0
  341. package/lib/typescript/module/src/components/modals/modal-create-activitie/interface.d.ts.map +1 -0
  342. package/lib/typescript/module/src/components/modals/modal-create-activitie/styles.d.ts +33 -0
  343. package/lib/typescript/module/src/components/modals/modal-create-activitie/styles.d.ts.map +1 -0
  344. package/lib/typescript/module/src/components/modals/modal-exclude-activitie/index.d.ts +1 -0
  345. package/lib/typescript/module/src/components/modals/modal-exclude-activitie/index.d.ts.map +1 -0
  346. package/lib/typescript/module/src/components/modals/modal-journey-rectification/index.d.ts +8 -0
  347. package/lib/typescript/module/src/components/modals/modal-journey-rectification/index.d.ts.map +1 -0
  348. package/lib/typescript/module/src/components/modals/modal-to-confimations/index.d.ts +8 -0
  349. package/lib/typescript/module/src/components/modals/modal-to-confimations/index.d.ts.map +1 -0
  350. package/lib/typescript/module/src/components/modals/modal-to-confimations/interface.d.ts +28 -0
  351. package/lib/typescript/module/src/components/modals/modal-to-confimations/interface.d.ts.map +1 -0
  352. package/lib/typescript/module/src/components/selects/select-date-and-hours/index.d.ts +13 -0
  353. package/lib/typescript/module/src/components/selects/select-date-and-hours/index.d.ts.map +1 -0
  354. package/lib/typescript/module/src/components/selects/select-date-and-hours/interface.d.ts +22 -0
  355. package/lib/typescript/module/src/components/selects/select-date-and-hours/interface.d.ts.map +1 -0
  356. package/lib/typescript/module/src/components/selects/select-date-and-hours/styles.d.ts +26 -0
  357. package/lib/typescript/module/src/components/selects/select-date-and-hours/styles.d.ts.map +1 -0
  358. package/lib/typescript/module/src/components/selects/select-option/index.d.ts +1 -0
  359. package/lib/typescript/module/src/components/selects/select-option/index.d.ts.map +1 -1
  360. package/lib/typescript/module/src/components/selects/select-option/styles.d.ts +0 -1
  361. package/lib/typescript/module/src/components/selects/select-option/styles.d.ts.map +1 -1
  362. package/lib/typescript/module/src/components/step-indicator/index.d.ts.map +1 -1
  363. package/lib/typescript/module/src/components/step-indicator/styles.d.ts +2 -2
  364. package/lib/typescript/module/src/components/step-indicator/styles.d.ts.map +1 -1
  365. package/lib/typescript/module/src/components/supply-error-card/index.d.ts.map +1 -1
  366. package/lib/typescript/module/src/components/toast-message/index.d.ts.map +1 -1
  367. package/lib/typescript/module/src/components/trip-details-card/index.d.ts.map +1 -1
  368. package/lib/typescript/module/src/index.d.ts +7 -0
  369. package/lib/typescript/module/src/index.d.ts.map +1 -1
  370. package/lib/typescript/module/src/stories/list-devices/list-devices.stories.d.ts +22 -0
  371. package/lib/typescript/module/src/stories/list-devices/list-devices.stories.d.ts.map +1 -0
  372. package/lib/typescript/module/src/stories/list-supplies/list-supplies.stories.d.ts +10 -0
  373. package/lib/typescript/module/src/stories/list-supplies/list-supplies.stories.d.ts.map +1 -0
  374. package/lib/typescript/module/src/stories/modal-activity-reason/modal-activity-reason.stories.d.ts +10 -0
  375. package/lib/typescript/module/src/stories/modal-activity-reason/modal-activity-reason.stories.d.ts.map +1 -0
  376. package/lib/typescript/module/src/stories/modal-journey-rectification/modal-journey-rectification.stories.d.ts +10 -0
  377. package/lib/typescript/module/src/stories/modal-journey-rectification/modal-journey-rectification.stories.d.ts.map +1 -0
  378. package/lib/typescript/module/src/stories/step-indicator/step-indicator.stories.d.ts.map +1 -1
  379. package/lib/typescript/module/src/stories/trip-details-card/trip-details-card.stories.d.ts.map +1 -1
  380. package/lib/typescript/module/src/styles/global/theme-provider.d.ts +1 -0
  381. package/lib/typescript/module/src/styles/global/theme-provider.d.ts.map +1 -1
  382. package/lib/typescript/module/src/styles/theme/theme.d.ts +1 -0
  383. package/lib/typescript/module/src/styles/theme/theme.d.ts.map +1 -1
  384. package/lib/typescript/module/src/utils/text-limit/index.d.ts +14 -0
  385. package/lib/typescript/module/src/utils/text-limit/index.d.ts.map +1 -0
  386. package/package.json +2 -1
  387. package/src/common/icons-svg/bluetooth/index.tsx +51 -24
  388. package/src/common/icons-svg/constants/index.ts +67 -65
  389. package/src/common/icons-svg/index.tsx +289 -280
  390. package/src/common/icons-svg/plus-container/index.tsx +32 -0
  391. package/src/common/icons-svg/trash/index.tsx +31 -0
  392. package/src/components/activity-step/components/activite-row/index.tsx +141 -0
  393. package/src/components/activity-step/index.tsx +73 -0
  394. package/src/components/activity-step/interface.ts +54 -0
  395. package/src/components/activity-step/styles.ts +72 -0
  396. package/src/components/card-scheduled-journey/index.tsx +140 -138
  397. package/src/components/card-scheduled-journey/interface.d.ts +145 -140
  398. package/src/components/coil-removel-code/index.tsx +8 -3
  399. package/src/components/coil-removel-code/interface.d.ts +14 -13
  400. package/src/components/inputs/input-date-time/index.tsx +133 -0
  401. package/src/components/inputs/input-date-time/interface.d.ts +25 -0
  402. package/src/components/inputs/input-date-time/styles.ts +63 -0
  403. package/src/components/list-devices/helpers/get-icon-by-status.tsx +20 -0
  404. package/src/components/list-devices/index.tsx +103 -0
  405. package/src/components/list-devices/interface.d.ts +36 -0
  406. package/src/components/list-devices/styles.ts +68 -0
  407. package/src/components/list-supplies/index.tsx +153 -0
  408. package/src/components/list-supplies/interface.d.ts +9 -0
  409. package/src/components/maintenance-description-input/index.tsx +1 -0
  410. package/src/components/maintenance-description-input/styles.ts +1 -1
  411. package/src/components/modals/modal-activity-reason/index.tsx +168 -0
  412. package/src/components/modals/modal-activity-reason/interface.d.ts +9 -0
  413. package/src/components/modals/modal-create-activitie/helpers/index.ts +14 -0
  414. package/src/components/modals/modal-create-activitie/index.tsx +210 -0
  415. package/src/components/modals/modal-create-activitie/interface.ts +22 -0
  416. package/src/components/modals/modal-create-activitie/styles.ts +24 -0
  417. package/src/components/modals/modal-exclude-activitie/index.ts +0 -0
  418. package/src/components/modals/modal-journey-rectification/index.tsx +236 -0
  419. package/src/components/modals/modal-journey-rectification/interface.d.ts +10 -0
  420. package/src/components/modals/modal-to-confimations/index.tsx +182 -0
  421. package/src/components/modals/modal-to-confimations/interface.ts +36 -0
  422. package/src/components/selects/select-date-and-hours/index.tsx +70 -0
  423. package/src/components/selects/select-date-and-hours/interface.ts +31 -0
  424. package/src/components/selects/select-date-and-hours/styles.ts +24 -0
  425. package/src/components/selects/select-option/index.tsx +124 -94
  426. package/src/components/selects/select-option/interface.d.ts +1 -1
  427. package/src/components/selects/select-option/styles.ts +74 -75
  428. package/src/components/step-indicator/index.tsx +56 -36
  429. package/src/components/step-indicator/interface.d.ts +14 -3
  430. package/src/components/step-indicator/styles.ts +2 -2
  431. package/src/components/supply-error-card/index.tsx +109 -109
  432. package/src/components/supply-error-card/interface.d.ts +133 -133
  433. package/src/components/toast-message/index.tsx +75 -74
  434. package/src/components/travel-history/index.tsx +7 -7
  435. package/src/components/trip-details-card/index.tsx +267 -193
  436. package/src/components/trip-details-card/interface.d.ts +4 -1
  437. package/src/components/typography/index.tsx +78 -78
  438. package/src/index.tsx +7 -0
  439. package/src/stories/list-devices/list-devices.stories.tsx +114 -0
  440. package/src/stories/list-supplies/list-supplies.stories.tsx +66 -0
  441. package/src/stories/modal-activity-reason/modal-activity-reason.stories.tsx +60 -0
  442. package/src/stories/modal-journey-rectification/modal-journey-rectification.stories.tsx +60 -0
  443. package/src/stories/step-indicator/step-indicator.stories.tsx +1 -0
  444. package/src/stories/supply-error-card/supply-error-card.stories.tsx +72 -72
  445. package/src/stories/trip-details-card/trip-details-card.stories.tsx +38 -5
  446. package/src/styles/theme/theme.ts +1 -0
  447. package/src/utils/text-limit/index.ts +28 -0
@@ -0,0 +1,83 @@
1
+ "use strict";
2
+
3
+ /**
4
+ * IMPORTS
5
+ */
6
+
7
+ import { StyleSheet } from "react-native";
8
+
9
+ // styles
10
+ import { theme } from "../../styles/theme/theme.js";
11
+ export const ROW_HEIGHT = 72;
12
+ const styles = StyleSheet.create({
13
+ listContainer: {
14
+ paddingVertical: 8
15
+ },
16
+ row: {
17
+ width: "100%",
18
+ minHeight: ROW_HEIGHT,
19
+ paddingVertical: 8,
20
+ paddingHorizontal: 8,
21
+ flexDirection: "row",
22
+ alignItems: "center",
23
+ justifyContent: "center",
24
+ gap: 6
25
+ },
26
+ badge: {
27
+ width: 28,
28
+ height: 28,
29
+ borderRadius: 14,
30
+ backgroundColor: theme.colors.blue[500],
31
+ alignItems: "center",
32
+ justifyContent: "center"
33
+ },
34
+ card: {
35
+ flex: 1,
36
+ borderRadius: 10
37
+ },
38
+ title: {
39
+ marginBottom: 6
40
+ },
41
+ pill: {
42
+ flexDirection: "row",
43
+ alignItems: "center",
44
+ borderWidth: 1,
45
+ borderRadius: 10,
46
+ paddingHorizontal: 10,
47
+ paddingVertical: 8,
48
+ gap: 4
49
+ },
50
+ pillOk: {
51
+ backgroundColor: "#F3F3F5",
52
+ borderColor: "#C4D4E5"
53
+ },
54
+ pillInvalid: {
55
+ backgroundColor: "#FDE7E7",
56
+ borderColor: theme.colors.red[900]
57
+ },
58
+ sep: {
59
+ marginHorizontal: 8,
60
+ opacity: 0.5
61
+ },
62
+ actions: {
63
+ flexDirection: "row",
64
+ gap: 8
65
+ },
66
+ iconButton: {
67
+ width: 36,
68
+ height: 36,
69
+ borderRadius: 8,
70
+ backgroundColor: theme.colors.neutral[25],
71
+ borderWidth: 1,
72
+ borderColor: theme.colors.neutral[200],
73
+ alignItems: "center",
74
+ justifyContent: "center",
75
+ marginTop: 36
76
+ }
77
+ });
78
+
79
+ /**
80
+ * EXPORTS
81
+ */
82
+ export { styles };
83
+ //# sourceMappingURL=styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["StyleSheet","theme","ROW_HEIGHT","styles","create","listContainer","paddingVertical","row","width","minHeight","paddingHorizontal","flexDirection","alignItems","justifyContent","gap","badge","height","borderRadius","backgroundColor","colors","blue","card","flex","title","marginBottom","pill","borderWidth","pillOk","borderColor","pillInvalid","red","sep","marginHorizontal","opacity","actions","iconButton","neutral","marginTop"],"sourceRoot":"..\\..\\..\\..\\src","sources":["components/activity-step/styles.ts"],"mappings":";;AAAA;AACA;AACA;;AAEA,SAASA,UAAU,QAAQ,cAAc;;AAEzC;AACA,SAASC,KAAK,QAAQ,6BAA0B;AAEhD,OAAO,MAAMC,UAAU,GAAG,EAAE;AAE5B,MAAMC,MAAM,GAAGH,UAAU,CAACI,MAAM,CAAC;EAC/BC,aAAa,EAAE;IAAEC,eAAe,EAAE;EAAE,CAAC;EACrCC,GAAG,EAAE;IACHC,KAAK,EAAE,MAAM;IACbC,SAAS,EAAEP,UAAU;IACrBI,eAAe,EAAE,CAAC;IAClBI,iBAAiB,EAAE,CAAC;IACpBC,aAAa,EAAE,KAAK;IACpBC,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE,QAAQ;IACxBC,GAAG,EAAE;EACP,CAAC;EACDC,KAAK,EAAE;IACLP,KAAK,EAAE,EAAE;IACTQ,MAAM,EAAE,EAAE;IACVC,YAAY,EAAE,EAAE;IAChBC,eAAe,EAAEjB,KAAK,CAACkB,MAAM,CAACC,IAAI,CAAC,GAAG,CAAC;IACvCR,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE;EAClB,CAAC;EACDQ,IAAI,EAAE;IACJC,IAAI,EAAE,CAAC;IACPL,YAAY,EAAE;EAChB,CAAC;EACDM,KAAK,EAAE;IAAEC,YAAY,EAAE;EAAE,CAAC;EAC1BC,IAAI,EAAE;IACJd,aAAa,EAAE,KAAK;IACpBC,UAAU,EAAE,QAAQ;IACpBc,WAAW,EAAE,CAAC;IACdT,YAAY,EAAE,EAAE;IAChBP,iBAAiB,EAAE,EAAE;IACrBJ,eAAe,EAAE,CAAC;IAClBQ,GAAG,EAAE;EACP,CAAC;EACDa,MAAM,EAAE;IACNT,eAAe,EAAE,SAAS;IAC1BU,WAAW,EAAE;EACf,CAAC;EACDC,WAAW,EAAE;IACXX,eAAe,EAAE,SAAS;IAC1BU,WAAW,EAAE3B,KAAK,CAACkB,MAAM,CAACW,GAAG,CAAC,GAAG;EACnC,CAAC;EACDC,GAAG,EAAE;IAAEC,gBAAgB,EAAE,CAAC;IAAEC,OAAO,EAAE;EAAI,CAAC;EAC1CC,OAAO,EAAE;IAAEvB,aAAa,EAAE,KAAK;IAAEG,GAAG,EAAE;EAAE,CAAC;EACzCqB,UAAU,EAAE;IACV3B,KAAK,EAAE,EAAE;IACTQ,MAAM,EAAE,EAAE;IACVC,YAAY,EAAE,CAAC;IACfC,eAAe,EAAEjB,KAAK,CAACkB,MAAM,CAACiB,OAAO,CAAC,EAAE,CAAC;IACzCV,WAAW,EAAE,CAAC;IACdE,WAAW,EAAE3B,KAAK,CAACkB,MAAM,CAACiB,OAAO,CAAC,GAAG,CAAC;IACtCxB,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE,QAAQ;IACxBwB,SAAS,EAAE;EACb;AACF,CAAC,CAAC;;AAEF;AACA;AACA;AACA,SAASlC,MAAM","ignoreList":[]}
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
 
3
- /**
4
- * IMPORTS
3
+ /**
4
+ * IMPORTS
5
5
  */
6
6
  import React, { forwardRef } from "react";
7
7
  import { Dimensions } from "react-native";
@@ -21,6 +21,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
21
21
  const CardScheduledJourney = /*#__PURE__*/forwardRef((props, ref) => {
22
22
  const {
23
23
  title,
24
+ subTitle,
24
25
  duracao,
25
26
  color = {},
26
27
  backgroundColor,
@@ -97,13 +98,14 @@ const CardScheduledJourney = /*#__PURE__*/forwardRef((props, ref) => {
97
98
  lineHeight: theme.fontSizes.lg,
98
99
  letterSpacing: "regular"
99
100
  }), /*#__PURE__*/_jsx(Typography, {
100
- text: `Duração: ${duracao}`,
101
+ text: `${subTitle ?? "Duração"}: ${duracao}`,
101
102
  size: theme.fontSizes.xs,
102
103
  fontWeight: "300",
103
104
  fontFamily: theme.fonts.inter_light_300,
104
105
  color: color.colorText ?? theme.colors.black[25],
105
106
  lineHeight: theme.fontSizes.lg,
106
- letterSpacing: "regular"
107
+ letterSpacing: "regular",
108
+ marginTop: 4
107
109
  })]
108
110
  }), /*#__PURE__*/_jsx(Box, {
109
111
  width: 12,
@@ -120,8 +122,8 @@ const CardScheduledJourney = /*#__PURE__*/forwardRef((props, ref) => {
120
122
  });
121
123
  });
122
124
 
123
- /**
124
- * Componente CardScheduledJourney para a interação da ui.
125
+ /**
126
+ * Componente CardScheduledJourney para a interação da ui.
125
127
  */
126
128
  export default asBaseComponent(CardScheduledJourney);
127
129
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["React","forwardRef","Dimensions","Box","Typography","asBaseComponent","theme","Icons","jsx","_jsx","jsxs","_jsxs","CardScheduledJourney","props","ref","title","duracao","color","backgroundColor","borderStyled","paddingStyle","marginStyle","flexStyle","style","width","widthChildren","icon","borderRight","widthScreen","get","isMobile","height","colors","neutral","borderWidth","borderWidths","thin","borderRadius","thin_bold","borderColor","gray","children","flexDirection","justifyContent","alignItems","thick","paddingLeft","size","fontSizes","marginTop","text","sm","fontFamily","fonts","inter_bold_700","fontWeight","colorText","black","lineHeight","lg","letterSpacing","xs","inter_light_300","green","borderTopRightRadius","borderBottomRightRadius"],"sourceRoot":"..\\..\\..\\..\\src","sources":["components/card-scheduled-journey/index.tsx"],"mappings":";;AAAA;AACA;AACA;AACA,OAAOA,KAAK,IAAIC,UAAU,QAAQ,OAAO;AACzC,SAASC,UAAU,QAAQ,cAAc;;AAEzC;AACA,OAAOC,GA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EZ,WAAW,IAAIrB,KAAK,CAAC0B,MAAM,CAAC+B,KAAK,CAAC,GAAG;QACpD;MAAE,CACH,CAAC;IAAA,CACC;EAAC,CACH,CAAC;AAEV,CACF,CAAC;;AAED;AACA;AACA;AACA,eAAe1D,eAAe,CAACO,oBAAoB,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["React","forwardRef","Dimensions","Box","Typography","asBaseComponent","theme","Icons","jsx","_jsx","jsxs","_jsxs","CardScheduledJourney","props","ref","title","subTitle","duracao","color","backgroundColor","borderStyled","paddingStyle","marginStyle","flexStyle","style","width","widthChildren","icon","borderRight","widthScreen","get","isMobile","height","colors","neutral","borderWidth","borderWidths","thin","borderRadius","thin_bold","borderColor","gray","children","flexDirection","justifyContent","alignItems","thick","paddingLeft","size","fontSizes","marginTop","text","sm","fontFamily","fonts","inter_bold_700","fontWeight","colorText","black","lineHeight","lg","letterSpacing","xs","inter_light_300","green","borderTopRightRadius","borderBottomRightRadius"],"sourceRoot":"..\\..\\..\\..\\src","sources":["components/card-scheduled-journey/index.tsx"],"mappings":";;AAAA;AACA;AACA;AACA,OAAOA,KAAK,IAAIC,UAAU,QAAQ,OAAO;AACzC,SAASC,UAAU,QAAQ,cAAc;;AAEzC;AACA,OAAOC,GAAG,MAAM,iBAAQ;AACxB,OAAOC,UAAU,MAAM,wBAAe;;AAEtC;AACA,SAASC,eAAe,QAAQ,mCAAgC;AAGhE;AACA,SAASC,KAAK,QAAQ,6BAA0B;;AAEhD;AACA,SAASC,KAAK,QAAQ,iCAAwB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAE/C,MAAMC,oBAAoB,gBAAGX,UAAU,CACrC,CAACY,KAAK,EAAEC,GAAG,KAAyB;EAClC,MAAM;IACJC,KAAK;IACLC,QAAQ;IACRC,OAAO;IACPC,KAAK,GAAG,CAAC,CAAC;IACVC,eAAe;IACfC,YAAY;IACZC,YAAY;IACZC,WAAW;IACXC,SAAS;IACTC,K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C,eAEFpD,IAAA,CAACL,UAAU;UACT+C,IAAI,EAAE,GAAGnC,QAAQ,IAAI,SAAS,KAAKC,OAAO,EAAG;UAC7C+B,IAAI,EAAE1C,KAAK,CAAC2C,SAAS,CAACa,EAAG;UACzBN,UAAU,EAAE,KAAM;UAClBH,UAAU,EAAE/C,KAAK,CAACgD,KAAK,CAACS,eAAgB;UACxC7C,KAAK,EAAEA,KAAK,CAACuC,SAAS,IAAInD,KAAK,CAAC2B,MAAM,CAACyB,KAAK,CAAC,EAAE,CAAE;UACjDC,UAAU,EAAErD,KAAK,CAAC2C,SAAS,CAACW,EAAG;UAC/BC,aAAa,EAAE,SAAU;UACzBX,SAAS,EAAE;QAAE,CACd,CAAC;MAAA,CACC,CAAC,eAGNzC,IAAA,CAACN,GAAG;QACFsB,KAAK,EAAE,EAAG;QACVO,MAAM,EAAE,EAAG;QACXb,eAAe,EAAES,WAAW,IAAItB,KAAK,CAAC2B,MAAM,CAAC+B,KAAK,CAAC,GAAG,CAAE;QACxD5C,YAAY,EAAE;UACZe,WAAW,EAAE7B,KAAK,CAAC8B,YAAY,CAACC,IAAI;UACpC4B,oBAAoB,EAAE3D,KAAK,CAAC8B,YAAY,CAACU,KAAK;UAC9CoB,uBAAuB,EAAE5D,KAAK,CAAC8B,YAAY,CAACU,KAAK;UACjDN,WAAW,EAAEZ,WAAW,IAAItB,KAAK,CAAC2B,MAAM,CAAC+B,KAAK,CAAC,GAAG;QACpD;MAAE,CACH,CAAC;IAAA,CACC;EAAC,CACH,CAAC;AAEV,CACF,CAAC;;AAED;AACA;AACA;AACA,eAAe3D,eAAe,CAACO,oBAAoB,CAAC","ignoreList":[]}
@@ -19,7 +19,8 @@ import { jsx as _jsx } from "react/jsx-runtime";
19
19
  export const CoilRemovalCode = ({
20
20
  code,
21
21
  width,
22
- height
22
+ height,
23
+ backgroundColor
23
24
  }) => {
24
25
  return /*#__PURE__*/_jsx(Box, {
25
26
  width: width ?? "100%",
@@ -30,7 +31,7 @@ export const CoilRemovalCode = ({
30
31
  borderColor: theme.colors.orange[150],
31
32
  borderStyle: "dotted"
32
33
  },
33
- backgroundColor: theme.colors.gray[300],
34
+ backgroundColor: backgroundColor ?? theme.colors.gray[300],
34
35
  flexStyle: {
35
36
  justifyContent: "center",
36
37
  alignItems: "center"
@@ -41,7 +42,7 @@ export const CoilRemovalCode = ({
41
42
  fontFamily: theme.fonts.inter_medium_500,
42
43
  fontWeight: "500",
43
44
  size: theme.fontSizes["5xl"],
44
- lineHeight: theme.lineHeight["5xl"]
45
+ lineHeight: theme.lineHeight["6xl"]
45
46
  })
46
47
  });
47
48
  };
@@ -1 +1 @@
1
- {"version":3,"names":["React","Box","Typography","asBaseComponent","theme","jsx","_jsx","CoilRemovalCode","code","width","height","borderStyled","borderWidth","borderWidths","thin_medium","borderRadius","thick_medium","borderColor","colors","orange","borderStyle","backgroundColor","gray","flexStyle","justifyContent","alignItems","children","text","color","fontFamily","fonts","inter_medium_500","fontWeight","size","fontSizes","lineHeight","displayName"],"sourceRoot":"..\\..\\..\\..\\src","sources":["components/coil-removel-code/index.tsx"],"mappings":";;AAAA;AACA;AACA;AACA,OAAOA,KAAK,MAAM,OAAO;;AAEzB;AACA,OAAOC,GAAG,MAAM,iBAAQ;AACxB,OAAOC,UAAU,MAAM,wBAAe;;AAEtC;;AAEA,SAASC,eAAe,QAAQ,mCAAgC;;AAEhE;AACA,SAASC,KAAK,QAAQ,6BAA0B;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAEjD,OAAO,MAAMC,eAAgD,GAAGA,CAAC;EAAEC,IAAI;EAAEC,KAAK;EAAEC;AAAO,CAAC,KAAK;EAC3F,oBACEJ,IAAA,CAACL,GAAG;IACFQ,KAAK,EAAEA,KAAK,IAAI,MAAO;IACvBC,MAAM,EAAEA,MAAM,IAAI,GAAI;IACtBC,YAAY,EAAE;MACZC,WAAW,EAAER,KAAK,CAACS,YAAY,CAACC,WAAW;MAC3CC,YAAY,EAAEX,KAAK,CAACS,YAAY,CAACG,YAAY;MAC7CC,WAAW,EAAEb,KAAK,CAACc,MAAM,CAACC,MAAM,CAAC,GAAG,CAAC;MACrCC,WAAW,EAAE;IACf,CAAE;IACFC,eAAe,EAAEjB,KAAK,CAACc,MAAM,CAACI,IAAI,CAAC,GAAG,CAAE;IACxCC,SAAS,EAAE;MACTC,cAAc,EAAE,QAAQ;MACxBC,UAAU,EAAE;IACd,CAAE;IAAAC,QAAA,eAEFpB,IAAA,CAACJ,UAAU;MACTyB,IAAI,EAAE,GAAGnB,IAAI,EAAG;MAChBoB,KAAK,EAAExB,KAAK,CAACc,MAAM,CAACC,MAAM,CAAC,GAAG,CAAE;MAChCU,UAAU,EAAEzB,KAAK,CAAC0B,KAAK,CAACC,gBAAiB;MACzCC,UAAU,EAAC,KAAK;MAChBC,IAAI,EAAE7B,KAAK,CAAC8B,SAAS,CAAC,KAAK,CAAE;MAC7BC,UAAU,EAAE/B,KAAK,CAAC+B,UAAU,CAAC,KAAK;IAAE,CACrC;EAAC,CACC,CAAC;AAEV,CAAC;AACD5B,eAAe,CAAC6B,WAAW,GAAG,iBAAiB;;AAE/C;AACA;AACA;AACA,eAAejC,eAAe,CAACI,eAAe,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["React","Box","Typography","asBaseComponent","theme","jsx","_jsx","CoilRemovalCode","code","width","height","backgroundColor","borderStyled","borderWidth","borderWidths","thin_medium","borderRadius","thick_medium","borderColor","colors","orange","borderStyle","gray","flexStyle","justifyContent","alignItems","children","text","color","fontFamily","fonts","inter_medium_500","fontWeight","size","fontSizes","lineHeight","displayName"],"sourceRoot":"..\\..\\..\\..\\src","sources":["components/coil-removel-code/index.tsx"],"mappings":";;AAAA;AACA;AACA;AACA,OAAOA,KAAK,MAAM,OAAO;;AAEzB;AACA,OAAOC,GAAG,MAAM,iBAAQ;AACxB,OAAOC,UAAU,MAAM,wBAAe;;AAEtC;;AAEA,SAASC,eAAe,QAAQ,mCAAgC;;AAEhE;AACA,SAASC,KAAK,QAA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import { View, Text, TouchableOpacity, Modal } from "react-native";
8
+ import DateTimePicker from "@react-native-community/datetimepicker";
9
+
10
+ // commons / svg
11
+ import { Icons } from "../../../common/icons-svg/index.js";
12
+
13
+ // typings
14
+ import { asBaseComponent } from "../../../@types/as-base-component.js";
15
+ // styles
16
+ import { styles } from "./styles.js";
17
+ import { theme } from "../../../styles/theme/theme.js";
18
+
19
+ /** formatadores no mesmo estilo simples dos seus componentes */
20
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
21
+ function fmtDate(d) {
22
+ const dd = String(d.getDate()).padStart(2, "0");
23
+ const mm = String(d.getMonth() + 1).padStart(2, "0");
24
+ const yyyy = d.getFullYear();
25
+ return `${dd}/${mm}/${yyyy}`;
26
+ }
27
+ function fmtTime(d) {
28
+ const hh = String(d.getHours()).padStart(2, "0");
29
+ const mi = String(d.getMinutes()).padStart(2, "0");
30
+ return `${hh}:${mi}`;
31
+ }
32
+ const InputDateTime = /*#__PURE__*/forwardRef((props, ref) => {
33
+ const {
34
+ mode,
35
+ titleLabel,
36
+ sizeTitleLabel,
37
+ colortitleLabel,
38
+ backgroundColor,
39
+ value,
40
+ onChange,
41
+ placeholder = mode === "date" ? "Selecione uma data" : "Selecione um horário",
42
+ minimumDate,
43
+ maximumDate,
44
+ disabled,
45
+ formatDate,
46
+ formatTime,
47
+ testID
48
+ } = props;
49
+
50
+ // estado interno quando o componente não é controlado
51
+ const [inner, setInner] = useState(value ?? new Date());
52
+ const [visible, setVisible] = useState(false);
53
+ const current = value ?? inner;
54
+ const human = useMemo(() => {
55
+ if (!current) return "";
56
+ return mode === "date" ? (formatDate ?? fmtDate)(current) : (formatTime ?? fmtTime)(current);
57
+ }, [current, mode, formatDate, formatTime]);
58
+ const styleProps = {
59
+ ...props,
60
+ titleLabel,
61
+ sizeTitleLabel,
62
+ colortitleLabel,
63
+ backgroundColor
64
+ };
65
+ function commit(next) {
66
+ if (!value) setInner(next);
67
+ onChange?.(next);
68
+ setVisible(false);
69
+ }
70
+ return /*#__PURE__*/_jsxs(View, {
71
+ ref: ref,
72
+ style: styles(styleProps).container,
73
+ children: [titleLabel ? /*#__PURE__*/_jsx(Text, {
74
+ style: styles(styleProps).label,
75
+ children: titleLabel
76
+ }) : null, /*#__PURE__*/_jsxs(TouchableOpacity, {
77
+ testID: testID ?? "input-date-time",
78
+ style: styles(styleProps).selectBox,
79
+ onPress: () => !disabled && setVisible(true),
80
+ disabled: disabled,
81
+ children: [/*#__PURE__*/_jsx(Icons, {
82
+ size: theme.fontSizes["md"],
83
+ color: theme.colors.blue[500],
84
+ icon: mode === "date" ? "CALENDAR" : "CALENDAR",
85
+ style: styles(styleProps).iconStandard
86
+ }), /*#__PURE__*/_jsx(Text, {
87
+ style: human ? styles(styleProps).selectedText : styles(styleProps).placeholderText,
88
+ children: human || placeholder
89
+ })]
90
+ }), /*#__PURE__*/_jsx(Modal, {
91
+ testID: "modal-container",
92
+ visible: visible,
93
+ transparent: true,
94
+ animationType: "fade",
95
+ onRequestClose: () => setVisible(false),
96
+ children: /*#__PURE__*/_jsx(View, {
97
+ style: styles(styleProps).modalOverlay,
98
+ children: /*#__PURE__*/_jsxs(View, {
99
+ style: styles(styleProps).modalContainer,
100
+ children: [/*#__PURE__*/_jsx(View, {
101
+ style: {
102
+ width: "100%",
103
+ alignItems: "flex-end"
104
+ },
105
+ children: /*#__PURE__*/_jsx(TouchableOpacity, {
106
+ testID: "close-icon",
107
+ onPress: () => setVisible(false),
108
+ children: /*#__PURE__*/_jsx(Icons, {
109
+ size: theme.fontSizes["md"],
110
+ color: theme.colors.blue[500],
111
+ icon: "CLOSED"
112
+ })
113
+ })
114
+ }), /*#__PURE__*/_jsx(DateTimePicker, {
115
+ value: current ?? new Date(),
116
+ mode: mode,
117
+ display: "default",
118
+ onChange: (_e, selected) => {
119
+ if (selected) commit(selected);else setVisible(false);
120
+ },
121
+ minimumDate: minimumDate,
122
+ maximumDate: maximumDate
123
+ })]
124
+ })
125
+ })
126
+ })]
127
+ });
128
+ });
129
+ export default asBaseComponent(InputDateTime);
130
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","forwardRef","useMemo","useState","View","Text","TouchableOpacity","Modal","DateTimePicker","Icons","asBaseComponent","styles","theme","jsx","_jsx","jsxs","_jsxs","fmtDate","d","dd","String","getDate","padStart","mm","getMonth","yyyy","getFullYear","fmtTime","hh","getHours","mi","getMinutes","InputDateTime","props","ref","mode","titleLabel","sizeTitleLabel","colortitleLabel","backgroundColor","value","onChange","placeholder","minimumDate","maximumDate","disabled","formatDate","formatTime","testID","inner","setInner","Date","visible","setVisible","current","human","styleProps","commit","next","style","container","children","label","selectBox","onPress","size","fontSizes","color","colors","blue","icon","iconStandard","selectedText","placeholderText","transparent","animationType","onRequestClose","modalOverlay","modalContainer","width","alignItems","display","_e","selected"],"sourceRoot":"..\\..\\..\\..\\..\\src","sources":["components/inputs/input-date-time/index.tsx"],"mappings":";;AAAA;AACA;AACA;AACA,OAAOA,KAAK,IAAIC,UAAU,EAAEC,OAAO,EAAEC,QAAQ,QAAQ,OAAO;AAC5D,SAASC,IAAI,EAAEC,IAAI,EAAEC,gBAAgB,EAAEC,KAAK,QAAQ,cAAc;AAClE,OAAOC,cAAc,MAAM,wCAAwC;;AAEnE;AACA,SAASC,KAAK,QAAQ,oCAA2B;;AAEjD;AACA,SAASC,eAAe,QAAQ,sCAAmC;AAGnE;AACA,SAASC,MAAM,QAAQ,aAAU;AACjC,SAASC,KAAK,QAAQ,gCAA6B;;AAEnD;AAAA,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AACA,SAASC,OAAOA,CAACC,CAAO,EAAE;EACxB,MAAMC,EAAE,GAAGC,MAAM,CAACF,CAAC,CAACG,OAAO,CAAC,CAAC,CAAC,CAACC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC;EAC/C,MAAMC,EAAE,GAAGH,MAAM,CAACF,CAAC,CAACM,QAAQ,CAAC,C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7BhB,IAAI,EAAEA,IAAK;YACX8C,OAAO,EAAC,SAAS;YACjBxC,QAAQ,EAAEA,CAACyC,EAAO,EAAEC,QAAe,KAAK;cACtC,IAAIA,QAAQ,EAAE1B,MAAM,CAAC0B,QAAQ,CAAC,CAAC,KAC1B9B,UAAU,CAAC,KAAK,CAAC;YACxB,CAAE;YACFV,WAAW,EAAEA,WAAY;YACzBC,WAAW,EAAEA;UAAY,CAC1B,CAAC;QAAA,CACE;MAAC,CACH;IAAC,CACF,CAAC;EAAA,CACJ,CAAC;AAEX,CAAC,CAAC;AAEF,eAAelC,eAAe,CAACsB,aAAa,CAAC","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ //# sourceMappingURL=interface.d.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"..\\..\\..\\..\\..\\src","sources":["components/inputs/input-date-time/interface.d.ts"],"mappings":"","ignoreList":[]}
@@ -0,0 +1,62 @@
1
+ "use strict";
2
+
3
+ import { StyleSheet } from "react-native";
4
+ import { theme } from "../../../styles/theme/theme.js";
5
+ const styles = props => StyleSheet.create({
6
+ container: {
7
+ width: "100%",
8
+ marginBottom: 16,
9
+ opacity: props.disabled ? 0.6 : 1
10
+ },
11
+ label: {
12
+ fontSize: props.sizeTitleLabel ?? 16,
13
+ fontWeight: "bold",
14
+ color: props.colortitleLabel ?? theme.colors.black[100],
15
+ marginBottom: 5
16
+ },
17
+ selectBox: {
18
+ flexDirection: "row",
19
+ alignItems: "center",
20
+ justifyContent: "center",
21
+ width: "100%",
22
+ height: 45,
23
+ borderWidth: 1,
24
+ borderColor: theme.colors.gray[700],
25
+ borderRadius: 10,
26
+ backgroundColor: props.backgroundColor ?? theme.colors.neutral[25],
27
+ paddingHorizontal: 10,
28
+ position: "relative"
29
+ },
30
+ selectedText: {
31
+ flex: 1,
32
+ fontSize: 14,
33
+ textAlign: "center",
34
+ color: theme.colors.gray[700]
35
+ },
36
+ placeholderText: {
37
+ flex: 1,
38
+ textAlign: "center",
39
+ fontSize: 14,
40
+ color: theme.colors.gray[700]
41
+ },
42
+ modalOverlay: {
43
+ flex: 1,
44
+ backgroundColor: "rgba(0,0,0,0.5)",
45
+ justifyContent: "center",
46
+ alignItems: "center",
47
+ padding: 24
48
+ },
49
+ modalContainer: {
50
+ width: "100%",
51
+ backgroundColor: theme.colors.neutral[25],
52
+ borderRadius: 10,
53
+ padding: 15,
54
+ alignItems: "center"
55
+ },
56
+ iconStandard: {
57
+ position: "absolute",
58
+ left: 10
59
+ }
60
+ });
61
+ export { styles };
62
+ //# sourceMappingURL=styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["StyleSheet","theme","styles","props","create","container","width","marginBottom","opacity","disabled","label","fontSize","sizeTitleLabel","fontWeight","color","colortitleLabel","colors","black","selectBox","flexDirection","alignItems","justifyContent","height","borderWidth","borderColor","gray","borderRadius","backgroundColor","neutral","paddingHorizontal","position","selectedText","flex","textAlign","placeholderText","modalOverlay","padding","modalContainer","iconStandard","left"],"sourceRoot":"..\\..\\..\\..\\..\\src","sources":["components/inputs/input-date-time/styles.ts"],"mappings":";;AAAA,SAASA,UAAU,QAAQ,cAAc;AACzC,SAASC,KAAK,QAAQ,gCAA6B;AAGnD,MAAMC,MAAM,GAAIC,KAA0B,IACxCH,UAAU,CAACI,MAAM,CAAC;EAChBC,SAAS,EAAE;IACTC,KAAK,EAAE,MAAM;IACbC,YAAY,EAAE,EAAE;IAChBC,OAAO,EAAEL,KAAK,CAACM,QAAQ,GAAG,GAAG,GAAG;EAClC,CAAC;EACDC,KAAK,EAAE;IACLC,QAAQ,EAAER,KAAK,CAACS,cAAc,IAAI,EAAE;IACpCC,UAAU,EAAE,MAAM;IAClBC,KAAK,EAAEX,KAAK,CAACY,eAAe,IAAId,KAAK,CAACe,MAAM,CAACC,KAAK,CAAC,GAAG,CAAC;IACvDV,YAAY,EAAE;EAChB,CAAC;EACDW,SAAS,EAAE;IACTC,aAAa,EAAE,KAAK;IACpB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PORTS
5
+ */
6
+ import { SVG_NAME } from "../../../common/icons-svg/constants/index.js";
7
+
8
+ /**
9
+ * Função que mapeará os ícones correspondentes em SVG 🛠️.
10
+ * @param propertyType
11
+ * @returns SVG
12
+ */
13
+ const getIconKeyByValue = propertyType => {
14
+ return Object.keys(SVG_NAME).find(key => SVG_NAME[key] === propertyType);
15
+ };
16
+
17
+ /**
18
+ * EXPORTS
19
+ */
20
+ export { getIconKeyByValue };
21
+ //# sourceMappingURL=get-icon-by-status.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["SVG_NAME","getIconKeyByValue","propertyType","Object","keys","find","key"],"sourceRoot":"..\\..\\..\\..\\..\\src","sources":["components/list-devices/helpers/get-icon-by-status.tsx"],"mappings":";;AAAA;AACA;AACA;AACA,SAASA,QAAQ,QAAQ,8CAAqC;;AAE9D;AACA;AACA;AACA;AACA;AACA,MAAMC,iBAAiB,GAAIC,YAAoB,IAAwC;EACrF,OAAQC,MAAM,CAACC,IAAI,CAACJ,QAAQ,CAAC,CAAkCK,IAAI,CAChEC,GAAG,IAAKN,QAAQ,CAACM,GAAG,CAAC,KAAKJ,YAC7B,CAAC;AACH,CAAC;;AAED;AACA;AACA;AACA,SAASD,iBAAiB","ignoreList":[]}
@@ -0,0 +1,100 @@
1
+ "use strict";
2
+
3
+ /**
4
+ * IMPORTS
5
+ */
6
+ import React, { forwardRef } from "react";
7
+ import { View, Text, TouchableOpacity, FlatList } from "react-native";
8
+
9
+ // components
10
+ import Box from "../box/index.js";
11
+
12
+ // icons
13
+ import { Icons } from "../../common/icons-svg/index.js";
14
+
15
+ // typings
16
+
17
+ import { asBaseComponent } from "../../@types/as-base-component.js";
18
+
19
+ // styles
20
+ import { styles as makeStyles } from "./styles.js";
21
+ import { theme } from "../../styles/theme/theme.js";
22
+
23
+ /**
24
+ * Componente ListDevices para a interação da ui.
25
+ */
26
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
27
+ const ListDevices = /*#__PURE__*/forwardRef(({
28
+ data,
29
+ textColorDescription,
30
+ titleColor,
31
+ selectedId,
32
+ onSelect,
33
+ defaultSelectedId,
34
+ disabled
35
+ }, ref) => {
36
+ const isControlled = selectedId !== undefined;
37
+ const [internalSelected, setInternalSelected] = React.useState(defaultSelectedId);
38
+ const currentSelected = isControlled ? selectedId ?? null : internalSelected;
39
+ const handlePress = device => {
40
+ if (disabled) return;
41
+ if (!isControlled) setInternalSelected(device.id);
42
+ onSelect?.(device);
43
+ };
44
+ if (!data?.length) return /*#__PURE__*/_jsx(Box, {});
45
+ return /*#__PURE__*/_jsx(FlatList, {
46
+ data: data,
47
+ keyExtractor: ({
48
+ id
49
+ }) => String(id),
50
+ renderItem: ({
51
+ item: device,
52
+ index
53
+ }) => {
54
+ const isLast = index === data.length - 1;
55
+ const isSelected = currentSelected === device.id;
56
+ const s = makeStyles({
57
+ titleColor,
58
+ textColorDescription,
59
+ disabled,
60
+ isSelected
61
+ });
62
+ return /*#__PURE__*/_jsxs(TouchableOpacity, {
63
+ ref: ref,
64
+ activeOpacity: 0.7,
65
+ testID: "list-devices",
66
+ onPress: () => handlePress(device),
67
+ disabled: disabled,
68
+ accessibilityRole: "button",
69
+ accessibilityState: {
70
+ selected: isSelected,
71
+ disabled
72
+ },
73
+ accessibilityLabel: `Dispositivo ${device.nameDevice}`,
74
+ style: [s.containerIndicator, !isLast && s.separator, isSelected && s.containerIndicatorSelected],
75
+ children: [/*#__PURE__*/_jsx(Icons, {
76
+ icon: "BLUETOOTH",
77
+ size: 26,
78
+ background: theme.colors.gray[600],
79
+ color: theme.colors.gray[300]
80
+ }), /*#__PURE__*/_jsxs(View, {
81
+ style: s.containerMain,
82
+ children: [/*#__PURE__*/_jsx(Text, {
83
+ style: [s.title, isSelected && s.titleSelected],
84
+ children: device.nameDevice
85
+ }), !!device.macDevice && /*#__PURE__*/_jsx(Text, {
86
+ style: [s.titleDescription, isSelected && s.descSelected],
87
+ children: device.macDevice
88
+ })]
89
+ })]
90
+ }, device.id);
91
+ }
92
+ });
93
+ });
94
+ ListDevices.displayName = "ListDevices";
95
+
96
+ /**
97
+ * EXPORTS
98
+ */
99
+ export default asBaseComponent(ListDevices);
100
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","forwardRef","View","Text","TouchableOpacity","FlatList","Box","Icons","asBaseComponent","styles","makeStyles","theme","jsx","_jsx","jsxs","_jsxs","ListDevices","data","textColorDescription","titleColor","selectedId","onSelect","defaultSelectedId","disabled","ref","isControlled","undefined","internalSelected","setInternalSelected","useState","currentSelected","handlePress","device","id","length","keyExtractor","String","renderItem","item","index","isLast","isSelected","s","activeOpacity","testID","onPress","accessibilityRole","accessibilityState","selected","accessibilityLabel","nameDevice","style","containerIndicator","separator","containerIndicatorSelected","children","icon","size","background","colors","gray","color","containerMain","title","titleSelected","macDevice","titleDescription","descSelected","displayName"],"sourceRoot":"..\\..\\..\\..\\src","sources":["components/list-devices/index.tsx"],"mappings":";;AAAA;AACA;AACA;AACA,OAAOA,KAAK,IAAIC,UAAU,QAAQ,OAAO;AACzC,SAASC,IAAI,EAAEC,IAAI,EAAEC,gBAAgB,EAAEC,QAAQ,QAAQ,cAAc;;AAErE;AACA,OAAOC,GAAG,MAAM,iBAAQ;;AAExB;AACA,SAASC,KAAK,QAAQ,iCAAwB;;AAE9C;;AAEA,SAASC,eAAe,QAAQ,mCAAgC;;AAEhE;AACA,SAASC,MAAM,IAAIC,UAAU,QAAQ,aAAU;AAC/C,SAASC,KAAK,QAAQ,6BAA0B;;AAEhD;AACA;AACA;AAFA,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAGA,MAAMC,WAAW,gBAAGf,UAAU,CAC5B,CACE;EAAEgB,IAAI;EAAEC,oBAAoB;EAAEC,UAAU;EAAEC,UAAU;EAAEC,QAAQ;EAAEC,iBAAiB;EAAEC;AAAS,CAAC,EAC7FC,GAAG,KACoB;EACvB,MAAMC,YAAY,GAAGL,UAAU,K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,CAACkB,UAAU,EAAG;QACvDC,KAAK,EAAE,CACLT,CAAC,CAACU,kBAAkB,EACpB,CAACZ,MAAM,IAAIE,CAAC,CAACW,SAAS,EACtBZ,UAAU,IAAIC,CAAC,CAACY,0BAA0B,CAC1C;QAAAC,QAAA,gBAEF1C,IAAA,CAACN,KAAK;UACJiD,IAAI,EAAE,WAAY;UAClBC,IAAI,EAAE,EAAG;UACTC,UAAU,EAAE/C,KAAK,CAACgD,MAAM,CAACC,IAAI,CAAC,GAAG,CAAE;UACnCC,KAAK,EAAElD,KAAK,CAACgD,MAAM,CAACC,IAAI,CAAC,GAAG;QAAE,CAC/B,CAAC,eAEF7C,KAAA,CAACb,IAAI;UAACiD,KAAK,EAAET,CAAC,CAACoB,aAAc;UAAAP,QAAA,gBAC3B1C,IAAA,CAACV,IAAI;YAACgD,KAAK,EAAE,CAACT,CAAC,CAACqB,KAAK,EAAEtB,UAAU,IAAIC,CAAC,CAACsB,aAAa,CAAE;YAAAT,QAAA,EAAEvB,MAAM,CAACkB;UAAU,CAAO,CAAC,EAChF,CAAC,CAAClB,MAAM,CAACiC,SAAS,iBACjBpD,IAAA,CAACV,IAAI;YAACgD,KAAK,EAAE,CAACT,CAAC,CAACwB,gBAAgB,EAAEzB,UAAU,IAAIC,CAAC,CAACyB,YAAY,CAAE;YAAAZ,QAAA,EAC7DvB,MAAM,CAACiC;UAAS,CACb,CACP;QAAA,CACG,CAAC;MAAA,GA1BFjC,MAAM,CAACC,EA2BI,CAAC;IAEvB;EAAE,CACH,CAAC;AAEN,CACF,CAAC;AAEDjB,WAAW,CAACoD,WAAW,GAAG,aAAa;;AAEvC;AACA;AACA;AACA,eAAe5D,eAAe,CAACQ,WAAW,CAAC","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ //# sourceMappingURL=interface.d.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"..\\..\\..\\..\\src","sources":["components/list-devices/interface.d.ts"],"mappings":"","ignoreList":[]}
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+
3
+ import { StyleSheet } from "react-native";
4
+ import { theme } from "../../styles/theme/theme.js";
5
+ const styles = (props = {}) => StyleSheet.create({
6
+ containerIndicator: {
7
+ width: "100%",
8
+ flexDirection: "row",
9
+ justifyContent: "flex-start",
10
+ alignItems: "center",
11
+ marginTop: 8,
12
+ paddingVertical: 8,
13
+ paddingHorizontal: 8,
14
+ opacity: props.disabled ? 0.6 : 1
15
+ },
16
+ containerIndicatorSelected: {
17
+ backgroundColor: theme.colors.green[250],
18
+ borderRadius: 30
19
+ },
20
+ separator: {
21
+ borderBottomWidth: 1,
22
+ borderBottomColor: props.isSelected ? "transparent" : theme.colors.gray[700]
23
+ },
24
+ title: {
25
+ color: props.titleColor ?? theme.colors.black[10],
26
+ textAlign: "center",
27
+ lineHeight: 20,
28
+ fontSize: theme.fontSizes.sm,
29
+ fontWeight: "500",
30
+ marginLeft: theme.margins.xs
31
+ },
32
+ titleSelected: {
33
+ color: theme.colors.neutral[25],
34
+ fontWeight: "600"
35
+ },
36
+ titleDescription: {
37
+ color: props.textColorDescription ?? theme.colors.gray[600],
38
+ textAlign: "center",
39
+ lineHeight: 16,
40
+ fontSize: 18,
41
+ fontFamily: theme.fonts.inter_light_300,
42
+ marginLeft: theme.margins.xs
43
+ },
44
+ descSelected: {
45
+ color: theme.colors.neutral[25]
46
+ },
47
+ containerMain: {
48
+ width: "100%",
49
+ flexDirection: "column",
50
+ alignItems: "flex-start",
51
+ marginLeft: 2,
52
+ justifyContent: "center"
53
+ }
54
+ });
55
+ export { styles };
56
+ //# sourceMappingURL=styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["StyleSheet","theme","styles","props","create","containerIndicator","width","flexDirection","justifyContent","alignItems","marginTop","paddingVertical","paddingHorizontal","opacity","disabled","containerIndicatorSelected","backgroundColor","colors","green","borderRadius","separator","borderBottomWidth","borderBottomColor","isSelected","gray","title","color","titleColor","black","textAlign","lineHeight","fontSize","fontSizes","sm","fontWeight","marginLeft","margins","xs","titleSelected","neutral","titleDescription","textColorDescription","fontFamily","fonts","inter_light_300","descSelected","containerMain"],"sourceRoot":"..\\..\\..\\..\\src","sources":["components/list-devices/styles.ts"],"mappings":";;AAAA,SAASA,UAAU,QAAQ,cAAc;AAEzC,SAASC,KAAK,QAAQ,6BAA0B;AAIhD,MAAMC,MAAM,GAAGA,CAACC,KAAoC,GAAG,CAAC,CAAC,KACvDH,UAAU,CAACI,MAAM,CAAC;EAChBC,kBAAkB,EAAE;IAClBC,KAAK,EAAE,MAAM;IACbC,aAAa,EAAE,KAAK;IACpBC,cAAc,EAAE,YAAY;IAC5BC,UAAU,EAAE,QAAQ;IACpBC,SAAS,EAAE,CAAC;IACZC,eAAe,EAAE,CAAC;IAClBC,iBAAiB,EAAE,CAAC;IACpBC,OAAO,EAAEV,KAAK,CAACW,QAAQ,GAAG,GAAG,GAAG;EAClC,CAAC;EAEDC,0BAA0B,EAAE;IAC1BC,eAAe,EAAEf,KAAK,CAACgB,MAAM,CAACC,KAAK,CAAC,GAAG,CAAC;IACxCC,YAAY,EAAE;EAChB,CAAC;EAEDC,SAAS,EAAE;IACTC,iBAAiB,EAAE,CAAC;IACpBC,iBAAiB,EAAEnB,KAAK,CAACoB,UAAU,GAC/B,aAAa,GACbtB,KAAK,CAACgB,MAAM,CAACO,IAAI,CAAC,GAAG;EAC3B,CAAC;EAEDC,KAAK,EAAE;IACLC,KAAK,EAAEvB,KAAK,CAACwB,UAAU,IAAI1B,KAAK,CAACgB,MAAM,CAACW,KAAK,CAAC,EAAE,CAAC;IACjDC,SAAS,EAAE,QAAQ;IACnBC,UAAU,EAAE,EAAE;IACdC,QAAQ,EAAE9B,KAAK,CAAC+B,SAAS,CAACC,EAAE;IAC5BC,UAAU,EAAE,KAAK;IACjBC,UAAU,EAAElC,KAAK,CAACmC,OAAO,CAACC;EAC5B,CAAC;EAEDC,aAAa,EAAE;IACbZ,KAAK,EAAEzB,KAAK,CAAC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