jornada-ui 0.4.14 → 0.4.16

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 (207) hide show
  1. package/lib/commonjs/common/icons-svg/constants/index.js +2 -1
  2. package/lib/commonjs/common/icons-svg/constants/index.js.map +1 -1
  3. package/lib/commonjs/common/icons-svg/download/index.js +53 -0
  4. package/lib/commonjs/common/icons-svg/download/index.js.map +1 -0
  5. package/lib/commonjs/common/icons-svg/index.js +7 -0
  6. package/lib/commonjs/common/icons-svg/index.js.map +1 -1
  7. package/lib/commonjs/components/activities-progress/index.js +10 -10
  8. package/lib/commonjs/components/activities-progress/index.js.map +1 -1
  9. package/lib/commonjs/components/card-work-session/index.js +50 -17
  10. package/lib/commonjs/components/card-work-session/index.js.map +1 -1
  11. package/lib/commonjs/components/inputs/input-date-time/index.js +11 -9
  12. package/lib/commonjs/components/inputs/input-date-time/index.js.map +1 -1
  13. package/lib/commonjs/components/inputs/input-date-time/styles.js +6 -3
  14. package/lib/commonjs/components/inputs/input-date-time/styles.js.map +1 -1
  15. package/lib/commonjs/components/modals/{modal-journey-rectification → modal-edite-journey-rectification}/index.js +71 -65
  16. package/lib/commonjs/components/modals/modal-edite-journey-rectification/index.js.map +1 -0
  17. package/lib/commonjs/components/modals/modal-edite-journey-rectification/interface.d.js.map +1 -0
  18. package/lib/commonjs/components/notification-card/index.js +142 -0
  19. package/lib/commonjs/components/notification-card/index.js.map +1 -0
  20. package/lib/commonjs/components/notification-card/interface.js +6 -0
  21. package/lib/commonjs/components/notification-card/interface.js.map +1 -0
  22. package/lib/commonjs/components/notification-details-card/index.js +181 -0
  23. package/lib/commonjs/components/notification-details-card/index.js.map +1 -0
  24. package/lib/commonjs/components/notification-details-card/interface.js +6 -0
  25. package/lib/commonjs/components/notification-details-card/interface.js.map +1 -0
  26. package/lib/commonjs/components/user-journey-work-card/index.js +44 -4
  27. package/lib/commonjs/components/user-journey-work-card/index.js.map +1 -1
  28. package/lib/commonjs/index.js +19 -5
  29. package/lib/commonjs/index.js.map +1 -1
  30. package/lib/commonjs/stories/button/button.stories.js +0 -2
  31. package/lib/commonjs/stories/button/button.stories.js.map +1 -1
  32. package/lib/commonjs/stories/capture-photo/capture-photo.stories.js +0 -1
  33. package/lib/commonjs/stories/capture-photo/capture-photo.stories.js.map +1 -1
  34. package/lib/commonjs/stories/card-work-session/card-work-session.stories.js +62 -9
  35. package/lib/commonjs/stories/card-work-session/card-work-session.stories.js.map +1 -1
  36. package/lib/commonjs/stories/modal-journey-rectification/modal-journey-rectification.stories.js +3 -3
  37. package/lib/commonjs/stories/modal-journey-rectification/modal-journey-rectification.stories.js.map +1 -1
  38. package/lib/commonjs/stories/notification-card/notification-card.stories.js +100 -0
  39. package/lib/commonjs/stories/notification-card/notification-card.stories.js.map +1 -0
  40. package/lib/commonjs/stories/notification-details-card/notification-details-card.stories.js +112 -0
  41. package/lib/commonjs/stories/notification-details-card/notification-details-card.stories.js.map +1 -0
  42. package/lib/commonjs/stories/user-journey-work-card/user-journey-work-card.stories.js +12 -4
  43. package/lib/commonjs/stories/user-journey-work-card/user-journey-work-card.stories.js.map +1 -1
  44. package/lib/commonjs/styles/theme/theme.js +2 -1
  45. package/lib/commonjs/styles/theme/theme.js.map +1 -1
  46. package/lib/module/common/icons-svg/constants/index.js +2 -1
  47. package/lib/module/common/icons-svg/constants/index.js.map +1 -1
  48. package/lib/module/common/icons-svg/download/index.js +47 -0
  49. package/lib/module/common/icons-svg/download/index.js.map +1 -0
  50. package/lib/module/common/icons-svg/index.js +7 -0
  51. package/lib/module/common/icons-svg/index.js.map +1 -1
  52. package/lib/module/components/activities-progress/index.js +10 -10
  53. package/lib/module/components/activities-progress/index.js.map +1 -1
  54. package/lib/module/components/card-work-session/index.js +50 -17
  55. package/lib/module/components/card-work-session/index.js.map +1 -1
  56. package/lib/module/components/inputs/input-date-time/index.js +11 -9
  57. package/lib/module/components/inputs/input-date-time/index.js.map +1 -1
  58. package/lib/module/components/inputs/input-date-time/styles.js +6 -3
  59. package/lib/module/components/inputs/input-date-time/styles.js.map +1 -1
  60. package/lib/module/components/modals/{modal-journey-rectification → modal-edite-journey-rectification}/index.js +69 -63
  61. package/lib/module/components/modals/modal-edite-journey-rectification/index.js.map +1 -0
  62. package/lib/module/components/modals/modal-edite-journey-rectification/interface.d.js.map +1 -0
  63. package/lib/module/components/notification-card/index.js +135 -0
  64. package/lib/module/components/notification-card/index.js.map +1 -0
  65. package/lib/module/components/notification-card/interface.js +4 -0
  66. package/lib/module/components/notification-card/interface.js.map +1 -0
  67. package/lib/module/components/notification-details-card/index.js +183 -0
  68. package/lib/module/components/notification-details-card/index.js.map +1 -0
  69. package/lib/module/components/notification-details-card/interface.js +4 -0
  70. package/lib/module/components/notification-details-card/interface.js.map +1 -0
  71. package/lib/module/components/user-journey-work-card/index.js +44 -4
  72. package/lib/module/components/user-journey-work-card/index.js.map +1 -1
  73. package/lib/module/index.js +3 -1
  74. package/lib/module/index.js.map +1 -1
  75. package/lib/module/stories/button/button.stories.js +0 -1
  76. package/lib/module/stories/button/button.stories.js.map +1 -1
  77. package/lib/module/stories/capture-photo/capture-photo.stories.js +0 -1
  78. package/lib/module/stories/capture-photo/capture-photo.stories.js.map +1 -1
  79. package/lib/module/stories/card-work-session/card-work-session.stories.js +62 -9
  80. package/lib/module/stories/card-work-session/card-work-session.stories.js.map +1 -1
  81. package/lib/module/stories/modal-journey-rectification/modal-journey-rectification.stories.js +3 -3
  82. package/lib/module/stories/modal-journey-rectification/modal-journey-rectification.stories.js.map +1 -1
  83. package/lib/module/stories/notification-card/notification-card.stories.js +95 -0
  84. package/lib/module/stories/notification-card/notification-card.stories.js.map +1 -0
  85. package/lib/module/stories/notification-details-card/notification-details-card.stories.js +107 -0
  86. package/lib/module/stories/notification-details-card/notification-details-card.stories.js.map +1 -0
  87. package/lib/module/stories/user-journey-work-card/user-journey-work-card.stories.js +12 -4
  88. package/lib/module/stories/user-journey-work-card/user-journey-work-card.stories.js.map +1 -1
  89. package/lib/module/styles/theme/theme.js +2 -1
  90. package/lib/module/styles/theme/theme.js.map +1 -1
  91. package/lib/typescript/commonjs/src/common/icons-svg/constants/index.d.ts +1 -0
  92. package/lib/typescript/commonjs/src/common/icons-svg/constants/index.d.ts.map +1 -1
  93. package/lib/typescript/commonjs/src/common/icons-svg/download/index.d.ts +11 -0
  94. package/lib/typescript/commonjs/src/common/icons-svg/download/index.d.ts.map +1 -0
  95. package/lib/typescript/commonjs/src/common/icons-svg/index.d.ts.map +1 -1
  96. package/lib/typescript/commonjs/src/components/card-report/index.d.ts.map +1 -1
  97. package/lib/typescript/commonjs/src/components/card-scheduled-journey/index.d.ts +1 -1
  98. package/lib/typescript/commonjs/src/components/card-work-session/index.d.ts +2 -1
  99. package/lib/typescript/commonjs/src/components/card-work-session/index.d.ts.map +1 -1
  100. package/lib/typescript/commonjs/src/components/inputs/input-date-time/index.d.ts.map +1 -1
  101. package/lib/typescript/commonjs/src/components/inputs/input-date-time/styles.d.ts +2 -1
  102. package/lib/typescript/commonjs/src/components/inputs/input-date-time/styles.d.ts.map +1 -1
  103. package/lib/typescript/commonjs/src/components/modals/{modal-journey-rectification → modal-edite-journey-rectification}/index.d.ts +3 -0
  104. package/lib/typescript/commonjs/src/components/modals/modal-edite-journey-rectification/index.d.ts.map +1 -0
  105. package/lib/typescript/commonjs/src/components/notification-card/index.d.ts +11 -0
  106. package/lib/typescript/commonjs/src/components/notification-card/index.d.ts.map +1 -0
  107. package/lib/typescript/commonjs/src/components/notification-card/interface.d.ts +17 -0
  108. package/lib/typescript/commonjs/src/components/notification-card/interface.d.ts.map +1 -0
  109. package/lib/typescript/commonjs/src/components/notification-details-card/index.d.ts +11 -0
  110. package/lib/typescript/commonjs/src/components/notification-details-card/index.d.ts.map +1 -0
  111. package/lib/typescript/commonjs/src/components/notification-details-card/interface.d.ts +15 -0
  112. package/lib/typescript/commonjs/src/components/notification-details-card/interface.d.ts.map +1 -0
  113. package/lib/typescript/commonjs/src/components/selects/select-date-and-hours/index.d.ts +1 -1
  114. package/lib/typescript/commonjs/src/components/travel-history/index.d.ts.map +1 -1
  115. package/lib/typescript/commonjs/src/components/user-journey-work-card/index.d.ts +2 -0
  116. package/lib/typescript/commonjs/src/components/user-journey-work-card/index.d.ts.map +1 -1
  117. package/lib/typescript/commonjs/src/index.d.ts +3 -1
  118. package/lib/typescript/commonjs/src/index.d.ts.map +1 -1
  119. package/lib/typescript/commonjs/src/stories/card-work-session/card-work-session.stories.d.ts.map +1 -1
  120. package/lib/typescript/commonjs/src/stories/modal-journey-rectification/modal-journey-rectification.stories.d.ts +1 -1
  121. package/lib/typescript/commonjs/src/stories/modal-journey-rectification/modal-journey-rectification.stories.d.ts.map +1 -1
  122. package/lib/typescript/commonjs/src/stories/notification-card/notification-card.stories.d.ts +14 -0
  123. package/lib/typescript/commonjs/src/stories/notification-card/notification-card.stories.d.ts.map +1 -0
  124. package/lib/typescript/commonjs/src/stories/notification-details-card/notification-details-card.stories.d.ts +16 -0
  125. package/lib/typescript/commonjs/src/stories/notification-details-card/notification-details-card.stories.d.ts.map +1 -0
  126. package/lib/typescript/commonjs/src/stories/user-journey-work-card/user-journey-work-card.stories.d.ts.map +1 -1
  127. package/lib/typescript/commonjs/src/styles/global/theme-provider.d.ts +1 -0
  128. package/lib/typescript/commonjs/src/styles/global/theme-provider.d.ts.map +1 -1
  129. package/lib/typescript/commonjs/src/styles/theme/theme.d.ts +1 -0
  130. package/lib/typescript/commonjs/src/styles/theme/theme.d.ts.map +1 -1
  131. package/lib/typescript/module/src/common/icons-svg/constants/index.d.ts +1 -0
  132. package/lib/typescript/module/src/common/icons-svg/constants/index.d.ts.map +1 -1
  133. package/lib/typescript/module/src/common/icons-svg/download/index.d.ts +11 -0
  134. package/lib/typescript/module/src/common/icons-svg/download/index.d.ts.map +1 -0
  135. package/lib/typescript/module/src/common/icons-svg/index.d.ts.map +1 -1
  136. package/lib/typescript/module/src/components/card-report/index.d.ts.map +1 -1
  137. package/lib/typescript/module/src/components/card-scheduled-journey/index.d.ts +1 -1
  138. package/lib/typescript/module/src/components/card-work-session/index.d.ts +2 -1
  139. package/lib/typescript/module/src/components/card-work-session/index.d.ts.map +1 -1
  140. package/lib/typescript/module/src/components/inputs/input-date-time/index.d.ts.map +1 -1
  141. package/lib/typescript/module/src/components/inputs/input-date-time/styles.d.ts +2 -1
  142. package/lib/typescript/module/src/components/inputs/input-date-time/styles.d.ts.map +1 -1
  143. package/lib/typescript/module/src/components/modals/{modal-journey-rectification → modal-edite-journey-rectification}/index.d.ts +3 -0
  144. package/lib/typescript/module/src/components/modals/modal-edite-journey-rectification/index.d.ts.map +1 -0
  145. package/lib/typescript/module/src/components/notification-card/index.d.ts +11 -0
  146. package/lib/typescript/module/src/components/notification-card/index.d.ts.map +1 -0
  147. package/lib/typescript/module/src/components/notification-card/interface.d.ts +17 -0
  148. package/lib/typescript/module/src/components/notification-card/interface.d.ts.map +1 -0
  149. package/lib/typescript/module/src/components/notification-details-card/index.d.ts +11 -0
  150. package/lib/typescript/module/src/components/notification-details-card/index.d.ts.map +1 -0
  151. package/lib/typescript/module/src/components/notification-details-card/interface.d.ts +15 -0
  152. package/lib/typescript/module/src/components/notification-details-card/interface.d.ts.map +1 -0
  153. package/lib/typescript/module/src/components/selects/select-date-and-hours/index.d.ts +1 -1
  154. package/lib/typescript/module/src/components/travel-history/index.d.ts.map +1 -1
  155. package/lib/typescript/module/src/components/user-journey-work-card/index.d.ts +2 -0
  156. package/lib/typescript/module/src/components/user-journey-work-card/index.d.ts.map +1 -1
  157. package/lib/typescript/module/src/index.d.ts +3 -1
  158. package/lib/typescript/module/src/index.d.ts.map +1 -1
  159. package/lib/typescript/module/src/stories/card-work-session/card-work-session.stories.d.ts.map +1 -1
  160. package/lib/typescript/module/src/stories/modal-journey-rectification/modal-journey-rectification.stories.d.ts +1 -1
  161. package/lib/typescript/module/src/stories/modal-journey-rectification/modal-journey-rectification.stories.d.ts.map +1 -1
  162. package/lib/typescript/module/src/stories/notification-card/notification-card.stories.d.ts +14 -0
  163. package/lib/typescript/module/src/stories/notification-card/notification-card.stories.d.ts.map +1 -0
  164. package/lib/typescript/module/src/stories/notification-details-card/notification-details-card.stories.d.ts +16 -0
  165. package/lib/typescript/module/src/stories/notification-details-card/notification-details-card.stories.d.ts.map +1 -0
  166. package/lib/typescript/module/src/stories/user-journey-work-card/user-journey-work-card.stories.d.ts.map +1 -1
  167. package/lib/typescript/module/src/styles/global/theme-provider.d.ts +1 -0
  168. package/lib/typescript/module/src/styles/global/theme-provider.d.ts.map +1 -1
  169. package/lib/typescript/module/src/styles/theme/theme.d.ts +1 -0
  170. package/lib/typescript/module/src/styles/theme/theme.d.ts.map +1 -1
  171. package/package.json +1 -1
  172. package/src/common/icons-svg/constants/index.ts +1 -0
  173. package/src/common/icons-svg/download/index.tsx +52 -0
  174. package/src/common/icons-svg/index.tsx +4 -0
  175. package/src/components/activities-progress/index.tsx +172 -172
  176. package/src/components/card-report/interface.d.ts +1 -1
  177. package/src/components/card-work-session/index.tsx +190 -172
  178. package/src/components/card-work-session/interface.d.ts +151 -150
  179. package/src/components/inputs/input-date-time/index.tsx +13 -12
  180. package/src/components/inputs/input-date-time/styles.ts +64 -63
  181. package/src/components/modals/{modal-journey-rectification → modal-edite-journey-rectification}/index.tsx +78 -67
  182. package/src/components/modals/{modal-journey-rectification → modal-edite-journey-rectification}/interface.d.ts +10 -10
  183. package/src/components/monthly-summary-table/interface.d.ts +1 -1
  184. package/src/components/notification-card/index.tsx +123 -0
  185. package/src/components/notification-card/interface.ts +18 -0
  186. package/src/components/notification-details-card/index.tsx +180 -0
  187. package/src/components/notification-details-card/interface.ts +16 -0
  188. package/src/components/travel-history/interface.d.ts +1 -1
  189. package/src/components/user-journey-work-card/index.tsx +28 -1
  190. package/src/components/user-journey-work-card/interface.d.ts +149 -145
  191. package/src/index.tsx +3 -1
  192. package/src/stories/button/button.stories.tsx +1 -1
  193. package/src/stories/capture-photo/capture-photo.stories.tsx +1 -1
  194. package/src/stories/card-work-session/card-work-session.stories.tsx +106 -53
  195. package/src/stories/modal-journey-rectification/modal-journey-rectification.stories.tsx +60 -60
  196. package/src/stories/notification-card/notification-card.stories.tsx +93 -0
  197. package/src/stories/notification-details-card/notification-details-card.stories.tsx +109 -0
  198. package/src/stories/user-journey-work-card/user-journey-work-card.stories.tsx +71 -63
  199. package/src/styles/theme/theme.ts +1 -0
  200. package/lib/commonjs/components/modals/modal-journey-rectification/index.js.map +0 -1
  201. package/lib/commonjs/components/modals/modal-journey-rectification/interface.d.js.map +0 -1
  202. package/lib/module/components/modals/modal-journey-rectification/index.js.map +0 -1
  203. package/lib/module/components/modals/modal-journey-rectification/interface.d.js.map +0 -1
  204. package/lib/typescript/commonjs/src/components/modals/modal-journey-rectification/index.d.ts.map +0 -1
  205. package/lib/typescript/module/src/components/modals/modal-journey-rectification/index.d.ts.map +0 -1
  206. /package/lib/commonjs/components/modals/{modal-journey-rectification → modal-edite-journey-rectification}/interface.d.js +0 -0
  207. /package/lib/module/components/modals/{modal-journey-rectification → modal-edite-journey-rectification}/interface.d.js +0 -0
@@ -11,7 +11,8 @@ var _index2 = _interopRequireDefault(require("../../typography/index.js"));
11
11
  var _index3 = _interopRequireDefault(require("../../button/index.js"));
12
12
  var _index4 = _interopRequireDefault(require("../../selects/select-option/index.js"));
13
13
  var _index5 = _interopRequireDefault(require("../../inputs/input-date-time/index.js"));
14
- var _index6 = require("../../../common/icons-svg/index.js");
14
+ var _index6 = _interopRequireDefault(require("../../maintenance-description-input/index.js"));
15
+ var _index7 = require("../../../common/icons-svg/index.js");
15
16
  var _asBaseComponent = require("../../../@types/as-base-component.js");
16
17
  var _theme = require("../../../styles/theme/theme.js");
17
18
  var _jsxRuntime = require("react/jsx-runtime");
@@ -31,46 +32,53 @@ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r
31
32
 
32
33
  const options = [{
33
34
  label: "Disp com veículo parado",
34
- value: "option1"
35
+ value: "8"
35
36
  }, {
36
37
  label: "Operação com veículo",
37
- value: "option2"
38
+ value: "1"
38
39
  }, {
39
40
  label: "Em carga",
40
- value: "option3"
41
+ value: "2"
41
42
  }, {
42
43
  label: "Em descarga",
43
- value: "option4"
44
+ value: "3"
44
45
  }];
46
+
47
+ /**
48
+ * Componente modal para edição de atividade para interação do usuário.
49
+ */
45
50
  const ModalJourneyRectification = ({
46
51
  visible,
47
52
  onClose,
48
53
  modalConfirm,
49
- textTitle
54
+ textTitle,
55
+ isLoading
50
56
  }) => {
51
- const [isLoading] = _react.default.useState(false);
52
-
53
- // *** DEFAULTS: já começa com um motivo, data e hora atuais
54
57
  const defaultReason = options[0]?.value ?? null;
55
- const [selectedReason, setSelectedReason] = (0, _react.useState)(defaultReason); // ***
56
- const [selectedDate, setSelectedDate] = (0, _react.useState)(new Date()); // ***
57
- const [selectedTime, setSelectedTime] = (0, _react.useState)(new Date()); // ***
58
+ const [selectedReason, setSelectedReason] = (0, _react.useState)(defaultReason);
59
+ const [selectedDate, setSelectedDate] = (0, _react.useState)(new Date());
60
+ const [selectedTime, setSelectedTime] = (0, _react.useState)(new Date());
61
+
62
+ // motivo digitado pelo usuário
63
+ const [editReason, setEditReason] = (0, _react.useState)("");
64
+ const [errorReason, setErrorReason] = (0, _react.useState)("");
58
65
 
59
- // helpers de formatação
66
+ // helpers
60
67
  const fmtDate = d => `${String(d.getDate()).padStart(2, "0")}/${String(d.getMonth() + 1).padStart(2, "0")}/${d.getFullYear()}`;
61
68
  const fmtTime = d => `${String(d.getHours()).padStart(2, "0")}:${String(d.getMinutes()).padStart(2, "0")}`;
62
-
63
- // junta data + hora
64
- const mergeDateTime = (date, time) => {
65
- if (!date) return null;
66
- const out = new Date(date);
67
- if (time) {
68
- out.setHours(time.getHours());
69
- out.setMinutes(time.getMinutes());
70
- out.setSeconds(0);
71
- out.setMilliseconds(0);
69
+ const handleConfirm = () => {
70
+ if (!editReason.trim()) {
71
+ setErrorReason("Informe o motivo da edição!");
72
+ return;
72
73
  }
73
- return out;
74
+ const payload = {
75
+ jr_tipo_atividade_id: selectedReason,
76
+ description: options.find(o => o.value === selectedReason)?.label ?? null,
77
+ date_start: selectedDate ? fmtDate(selectedDate) : null,
78
+ hours_start: selectedTime ? fmtTime(selectedTime) : null,
79
+ edit_reason: editReason.trim()
80
+ };
81
+ modalConfirm(payload);
74
82
  };
75
83
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Modal, {
76
84
  animationType: "fade",
@@ -104,16 +112,17 @@ const ModalJourneyRectification = ({
104
112
  flexDirection: "row",
105
113
  alignItems: "center"
106
114
  },
107
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_index6.Icons, {
115
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_index7.Icons, {
108
116
  icon: "EXCLAMATION_TRIANGLE",
109
117
  color: _theme.theme.colors.orange[500],
110
118
  background: _theme.theme.colors.neutral[300],
111
119
  size: 22
112
120
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_index2.default, {
113
- text: `${textTitle ?? "Incluir atividade"}`,
121
+ text: textTitle ?? "Editar atividade",
114
122
  color: _theme.theme.colors.neutral[25],
115
123
  marginLeft: _theme.theme.margins["2xs"],
116
- fontFamily: _theme.theme.fonts.inter_bold_700,
124
+ fontFamily: _theme.theme.fonts.inter_bold,
125
+ fontWeight: "700",
117
126
  size: _theme.theme.fontSizes.lg
118
127
  })]
119
128
  }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_index.default, {
@@ -125,42 +134,46 @@ const ModalJourneyRectification = ({
125
134
  borderRadius: _theme.theme.borderWidths.thick_medium
126
135
  },
127
136
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_index2.default, {
128
- text: "Confirme as alterações antes de salvar.",
129
- color: _theme.theme.colors.black[25],
137
+ text: "Confirme as altera\xE7\xF5es antes de salvar.",
138
+ color: _theme.theme.colors.black[100],
130
139
  fontFamily: _theme.theme.fonts.inter_regular_400,
131
- size: _theme.theme.fontSizes.md,
140
+ fontWeight: "400",
141
+ lineHeight: _theme.theme.lineHeight["2xl"],
142
+ size: _theme.theme.fontSizes.sm,
132
143
  marginBottom: 16
133
144
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_index4.default, {
134
145
  titleLabel: "Selecione atividade",
135
146
  sizeTitleLabel: 18,
136
- dataOption: options
137
- // Onde o motivo é RECEBIDO: aqui no callback
138
- ,
139
- handleSelectDown: value => setSelectedReason(value) // ***
140
- ,
147
+ dataOption: options,
148
+ handleSelectDown: value => setSelectedReason(value),
141
149
  backgroundColor: _theme.theme.colors.neutral[300]
142
150
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_index5.default, {
143
151
  mode: "date",
144
- titleLabel: "Data"
145
- // Onde a data é RECEBIDA: no onChange abaixo
146
- ,
147
- value: selectedDate // *** controlado
148
- ,
149
- onChange: d => setSelectedDate(d) // ***
150
- ,
152
+ titleLabel: "Data",
153
+ value: selectedDate,
154
+ onChange: d => setSelectedDate(d),
151
155
  backgroundColor: "#f5f5f5",
152
156
  colortitleLabel: "#333"
153
157
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_index5.default, {
154
158
  mode: "time",
155
- titleLabel: "Hor\xE1rio"
156
- // Onde a hora é RECEBIDA: no onChange abaixo
157
- ,
158
- value: selectedTime // *** controlado
159
- ,
160
- onChange: d => setSelectedTime(d) // ***
161
- ,
159
+ titleLabel: "Hor\xE1rio",
160
+ value: selectedTime,
161
+ onChange: d => setSelectedTime(d),
162
162
  backgroundColor: "#f5f5f5",
163
163
  colortitleLabel: "#333"
164
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.default, {
165
+ width: "100%",
166
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_index6.default, {
167
+ label: "Motivo da edi\xE7\xE3o",
168
+ placeholderTextColor: _theme.theme.colors.gray[700],
169
+ placeholder: "Informe o motivo da edi\xE7\xE3o",
170
+ value: editReason,
171
+ onChangeText: text => {
172
+ setEditReason(text);
173
+ if (text.trim()) setErrorReason("");
174
+ },
175
+ error: errorReason
176
+ })
164
177
  }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_index.default, {
165
178
  marginStyle: {
166
179
  marginTop: 4
@@ -178,8 +191,8 @@ const ModalJourneyRectification = ({
178
191
  disabled: isLoading,
179
192
  backgroundColor: _theme.theme.colors.neutral[300],
180
193
  buttonTextStyle: {
181
- color: _theme.theme.colors.blue[100],
182
- fontFamily: "Inter-Medium",
194
+ color: _theme.theme.colors.blue[500],
195
+ fontFamily: _theme.theme.fonts.inter_medium_500,
183
196
  fontSize: _theme.theme.fontSizes.xs,
184
197
  fontWeight: "500"
185
198
  },
@@ -195,19 +208,8 @@ const ModalJourneyRectification = ({
195
208
  borderRadius: _theme.theme.borderWidths.thick_medium
196
209
  }
197
210
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_index3.default, {
198
- title: "CONFIRMAR",
199
- onPress: () => {
200
- const merged = mergeDateTime(selectedDate, selectedTime);
201
- const payload = {
202
- reasonValue: selectedReason,
203
- reasonLabel: options.find(o => o.value === selectedReason)?.label ?? null,
204
- date: selectedDate ? fmtDate(selectedDate) : null,
205
- time: selectedTime ? fmtTime(selectedTime) : null,
206
- dateTimeISO: merged ? merged.toISOString() : null
207
- };
208
- modalConfirm(payload);
209
- onClose();
210
- },
211
+ title: "ALTERAR",
212
+ onPress: handleConfirm,
211
213
  width: "48%",
212
214
  height: 40,
213
215
  isLoading: isLoading,
@@ -215,7 +217,7 @@ const ModalJourneyRectification = ({
215
217
  backgroundColor: _theme.theme.colors.blue[500],
216
218
  buttonTextStyle: {
217
219
  color: _theme.theme.colors.neutral[25],
218
- fontFamily: "Inter-Medium",
220
+ fontFamily: _theme.theme.fonts.inter_medium_500,
219
221
  fontSize: _theme.theme.fontSizes.xs,
220
222
  fontWeight: "500"
221
223
  },
@@ -238,5 +240,9 @@ const ModalJourneyRectification = ({
238
240
  });
239
241
  };
240
242
  ModalJourneyRectification.displayName = "ModalJourneyRectification";
243
+
244
+ /**
245
+ * EXPORTS
246
+ */
241
247
  var _default = exports.default = (0, _asBaseComponent.asBaseComponent)(ModalJourneyRectification);
242
248
  //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_index","_interopRequireDefault","_index2","_index3","_index4","_index5","_index6","_index7","_asBaseComponent","_theme","_jsxRuntime","e","__esModule","default","t","WeakMap","r","n","o","i","f","__proto__","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","options","label","value","ModalJourneyRectification","visible","onClose","modalConfirm","textTitle","isLoading","defaultReason","selectedReason","setSelectedReason","useState","selectedDate","setSelectedDate","Date","selectedTime","setSelectedTime","editReason","setEditReason","errorReason","setErrorReason","fmtDate","d","String","getDate","padStart","getMonth","getFullYear","fmtTime","getHours","getMinutes","handleConfirm","trim","payload","jr_tipo_atividade_id","description","find","date_start","hours_start","edit_reason","jsx","Modal","animationType","transparent","children","View","style","flex","justifyContent","alignItems","backgroundColor","jsxs","width","theme","colors","orange","borderStyled","borderRadius","borderWidths","thick_medium","paddingStyle","paddingLeft","paddings","paddingRight","paddingTop","sm","paddingBottom","marginStyle","marginBottom","marginLeft","flexStyle","flexDirection","Icons","icon","color","background","neutral","size","text","margins","fontFamily","fonts","inter_bold","fontWeight","fontSizes","lg","padding","xs","black","inter_regular_400","lineHeight","titleLabel","sizeTitleLabel","dataOption","handleSelectDown","mode","onChange","colortitleLabel","placeholderTextColor","gray","placeholder","onChangeText","error","marginTop","title","onPress","height","disabled","buttonTextStyle","blue","inter_medium_500","fontSize","textAlign","borderWidth","thin","borderColor","displayName","_default","exports","asBaseComponent"],"sourceRoot":"..\\..\\..\\..\\..\\src","sources":["components/modals/modal-edite-journey-rectification/index.tsx"],"mappings":";;;;;;AAGA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAGA,IAAAE,MAAA,GAAAC,sBAAA,CAAAH,O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tBoG,QAAQ,EAAEpG,SAAU;cACpB2C,eAAe,EAAEG,YAAK,CAACC,MAAM,CAACuD,IAAI,CAAC,GAAG,CAAE;cACxCD,eAAe,EAAE;gBACflC,KAAK,EAAErB,YAAK,CAACC,MAAM,CAACsB,OAAO,CAAC,EAAE,CAAC;gBAC/BI,UAAU,EAAE3B,YAAK,CAAC4B,KAAK,CAAC6B,gBAAgB;gBACxCC,QAAQ,EAAE1D,YAAK,CAAC+B,SAAS,CAACG,EAAE;gBAC5BJ,UAAU,EAAE;cACd,CAAE;cACFb,SAAS,EAAE;gBACTC,aAAa,EAAE,KAAK;gBACpBtB,UAAU,EAAE,QAAQ;gBACpBD,cAAc,EAAE,QAAQ;gBACxBgE,SAAS,EAAE;cACb,CAAE;cACFxD,YAAY,EAAE;gBACZyD,WAAW,EAAE5D,YAAK,CAACK,YAAY,CAACwD,IAAI;gBACpCC,WAAW,EAAE9D,YAAK,CAACC,MAAM,CAACuD,IAAI,CAAC,GAAG,CAAC;gBACnCpD,YAAY,EAAEJ,YAAK,CAACK,YAAY,CAACC;cACnC;YAAE,CACH,CAAC;UAAA,CACC,CAAC;QAAA,CACH,CAAC;MAAA,CACH;IAAC,CACF;EAAC,CACF,CAAC;AAEZ,CAAC;AAEDzD,yBAAyB,CAACkH,WAAW,GAAG,2BAA2B;;AAEnE;AACA;AACA;AAFA,IAAAC,QAAA,GAAAC,OAAA,CAAAxI,OAAA,GAGe,IAAAyI,gCAAe,EAACrH,yBAAyB,CAAC","ignoreList":[]}
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"..\\..\\..\\..\\..\\src","sources":["components/modals/modal-edite-journey-rectification/interface.d.ts"],"mappings":"","ignoreList":[]}
@@ -0,0 +1,142 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _react = _interopRequireWildcard(require("react"));
8
+ var _reactNative = require("react-native");
9
+ var _index = require("../../common/icons-svg/index.js");
10
+ var _index2 = _interopRequireDefault(require("../box/index.js"));
11
+ var _index3 = _interopRequireDefault(require("../typography/index.js"));
12
+ var _index4 = _interopRequireDefault(require("../button/index.js"));
13
+ var _theme = require("../../styles/theme/theme.js");
14
+ var _asBaseComponent = require("../../@types/as-base-component.js");
15
+ var _jsxRuntime = require("react/jsx-runtime");
16
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
17
+ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
18
+ /**
19
+ * IMPORTS
20
+ */
21
+
22
+ // commons / icons
23
+
24
+ // components
25
+
26
+ // styles / theme
27
+
28
+ // typings
29
+
30
+ /**
31
+ * Componente NotificationCard
32
+ */
33
+ const NotificationCard = /*#__PURE__*/(0, _react.forwardRef)(({
34
+ variant = "read",
35
+ title,
36
+ description,
37
+ actionLabel,
38
+ onPress,
39
+ onPressAction,
40
+ testID
41
+ }, ref) => {
42
+ const isWarning = variant === "unread";
43
+
44
+ // cor da borda lateral
45
+ const borderColor = isWarning ? _theme.theme.colors.orange[150] : _theme.theme.colors.blue[525];
46
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TouchableOpacity, {
47
+ onPress: onPress,
48
+ activeOpacity: 0.7,
49
+ children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_index2.default, {
50
+ ref: ref,
51
+ testID: testID ?? "notification-card",
52
+ flexStyle: {
53
+ flexDirection: "row"
54
+ },
55
+ borderStyled: {
56
+ borderWidth: 1,
57
+ borderColor: isWarning ? _theme.theme.colors.orange[150] : _theme.theme.colors.neutral[200],
58
+ borderRadius: _theme.theme.borderWidths.thick_medium
59
+ },
60
+ marginStyle: {
61
+ marginBottom: 12
62
+ },
63
+ backgroundColor: isWarning ? _theme.theme.colors.neutral[500] : _theme.theme.colors.neutral[25],
64
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_index2.default, {
65
+ width: 8,
66
+ backgroundColor: borderColor,
67
+ borderStyled: {
68
+ borderTopLeftRadius: _theme.theme.borderWidths.thick_medium,
69
+ borderBottomLeftRadius: _theme.theme.borderWidths.thick_medium
70
+ }
71
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_index2.default, {
72
+ flexStyle: {
73
+ flex: 1
74
+ },
75
+ paddingStyle: {
76
+ padding: _theme.theme.paddings.sm
77
+ },
78
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_index2.default, {
79
+ flexStyle: {
80
+ flexDirection: "row",
81
+ alignItems: "center"
82
+ },
83
+ marginStyle: {
84
+ marginBottom: 6
85
+ },
86
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_index.Icons, {
87
+ icon: "BELL",
88
+ color: borderColor,
89
+ size: 20
90
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_index3.default, {
91
+ text: title,
92
+ fontFamily: _theme.theme.fonts.inter_bold,
93
+ fontWeight: "700",
94
+ size: _theme.theme.fontSizes.md,
95
+ color: _theme.theme.colors.black[100],
96
+ marginLeft: 8
97
+ })]
98
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_index3.default, {
99
+ text: description,
100
+ numberOfLines: isWarning ? 2 : 4,
101
+ ellipsizeMode: "tail",
102
+ size: _theme.theme.fontSizes.sm,
103
+ lineHeight: _theme.theme.lineHeight.md,
104
+ fontFamily: _theme.theme.fonts.inter_regular_400,
105
+ color: _theme.theme.colors.gray[700],
106
+ marginBottom: isWarning && actionLabel ? 12 : 0
107
+ }), actionLabel && onPressAction && /*#__PURE__*/(0, _jsxRuntime.jsx)(_index4.default, {
108
+ isLoading: false,
109
+ title: actionLabel,
110
+ onPress: onPressAction,
111
+ backgroundColor: _theme.theme.colors.neutral[25],
112
+ borderStyled: {
113
+ borderWidth: 1,
114
+ borderColor: _theme.theme.colors.red[500],
115
+ borderRadius: 12
116
+ },
117
+ buttonTextStyle: {
118
+ color: _theme.theme.colors.red[500],
119
+ fontSize: _theme.theme.fontSizes.sm,
120
+ fontFamily: _theme.theme.fonts.inter_medium_500
121
+ },
122
+ flexStyle: {
123
+ flexDirection: "row",
124
+ alignItems: "center",
125
+ justifyContent: "center"
126
+ },
127
+ style: {
128
+ alignSelf: "flex-start",
129
+ paddingHorizontal: 12
130
+ }
131
+ })]
132
+ })]
133
+ })
134
+ });
135
+ });
136
+ NotificationCard.displayName = "NotificationCard";
137
+
138
+ /**
139
+ * EXPORTS
140
+ */
141
+ var _default = exports.default = (0, _asBaseComponent.asBaseComponent)(NotificationCard);
142
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_index","_index2","_interopRequireDefault","_index3","_index4","_theme","_asBaseComponent","_jsxRuntime","e","__esModule","default","t","WeakMap","r","n","o","i","f","__proto__","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","NotificationCard","forwardRef","variant","title","description","actionLabel","onPress","onPressAction","testID","ref","isWarning","borderColor","theme","colors","orange","blue","jsx","TouchableOpacity","activeOpacity","children","jsxs","flexStyle","flexDirection","borderStyled","borderWidth","neutral","borderRadius","borderWidths","thick_medium","marginStyle","marginBottom","backgroundColor","width","borderTopLeftRadius","borderBottomLeftRadius","flex","paddingStyle","padding","paddings","sm","alignItems","Icons","icon","color","size","text","fontFamily","fonts","inter_bold","fontWeight","fontSizes","md","black","marginLeft","numberOfLines","ellipsizeMode","lineHeight","inter_regular_400","gray","isLoading","red","buttonTextStyle","fontSize","inter_medium_500","justifyContent","style","alignSelf","paddingHorizontal","displayName","_default","exports","asBaseComponent"],"sourceRoot":"..\\..\\..\\..\\src","sources":["components/notification-card/index.tsx"],"mappings":";;;;;;AAGA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAGA,IAAAE,MAAA,GAAAF,OAAA;AAGA,IAAAG,OAAA,GAAAC,sBAAA,CAAAJ,OAAA;AACA,IAAAK,OAAA,GAAAD,sBAAA,CAAAJ,OAAA;AACA,IAAAM,OAAA,GAAAF,sBAAA,CAAAJ,OAAA;AAGA,IAAAO,MAAA,GAAAP,OAAA;AAGA,IAAAQ,gBAAA,GAAAR,OAAA;AAAiE,IAAAS,WAAA,GAAAT,OAAA;AAAA,SAAAI,uBAAAM,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAX,wBAAAW,CAAA,EAAAG,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAf,uBAAA,YAAAA,CAAAW,CAAA,EAAAG,CAAA,SAAAA,CAAA,IAAAH,CAAA,IAAAA,CAAA,CAAAC,UAAA,SAAAD,CAAA,MAAAO,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAR,OAAA,EAAAF,CAAA,iBAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,SAAAS,CAAA,MAAAF,CAAA,GAAAJ,CAAA,GAAAG,CAAA,GAAAD,CAAA,QAAAE,CAAA,CAAAI,GAAA,CAAAX,CAAA,UAAAO,CAAA,CAAAK,GAAA,CAAAZ,CAAA,GAAAO,CAAA,CAAAM,GAAA,CAAAb,CAAA,EAAAS,CAAA,gBAAAN,CAAA,IAAAH,CAAA,gBAAAG,CAAA,OAAAW,cAAA,CAAAC,IAAA,CAAAf,CAAA,EAAAG,CAAA,OAAAK,CAAA,IAAAD,CAA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,CAACmC,KAAK,CAACgB;UAC1B,CAAE;UACF1C,SAAS,EAAE;YACTC,aAAa,EAAE,KAAK;YACpBkB,UAAU,EAAE,QAAQ;YACpBwB,cAAc,EAAE;UAClB,CAAE;UACFC,KAAK,EAAE;YAAEC,SAAS,EAAE,YAAY;YAAEC,iBAAiB,EAAE;UAAG;QAAE,CAC3D,CACF;MAAA,CACE,CAAC;IAAA,CACH;EAAC,CACU,CAAC;AAEvB,CACF,CAAC;AAEDnE,gBAAgB,CAACoE,WAAW,GAAG,kBAAkB;;AAEjD;AACA;AACA;AAFA,IAAAC,QAAA,GAAAC,OAAA,CAAAvF,OAAA,GAGe,IAAAwF,gCAAe,EAACvE,gBAAgB,CAAC","ignoreList":[]}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ //# sourceMappingURL=interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"..\\..\\..\\..\\src","sources":["components/notification-card/interface.ts"],"mappings":"","ignoreList":[]}
@@ -0,0 +1,181 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _react = _interopRequireWildcard(require("react"));
8
+ var _reactNative = require("react-native");
9
+ var _index = require("../../common/icons-svg/index.js");
10
+ var _index2 = _interopRequireDefault(require("../box/index.js"));
11
+ var _index3 = _interopRequireDefault(require("../typography/index.js"));
12
+ var _asBaseComponent = require("../../@types/as-base-component.js");
13
+ var _theme = require("../../styles/theme/theme.js");
14
+ var _jsxRuntime = require("react/jsx-runtime");
15
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
16
+ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); } /**
17
+ * IMPORTS
18
+ */ // commons / icons
19
+ // components
20
+ // typings
21
+ // styles / theme
22
+ /**
23
+ * Componente NotificationDetailCard
24
+ */
25
+ const NotificationDetailCard = /*#__PURE__*/(0, _react.forwardRef)(({
26
+ title,
27
+ description,
28
+ fileUrl,
29
+ fileType = "image",
30
+ testID
31
+ }, ref) => {
32
+ const [visible, setVisible] = (0, _react.useState)(false);
33
+ function openFile() {
34
+ if (fileType === "image") {
35
+ setVisible(true);
36
+ } else if (fileUrl) {
37
+ Promise.resolve().then(() => _interopRequireWildcard(require("react-native"))).then(({
38
+ Linking
39
+ }) => {
40
+ Linking.openURL(fileUrl).catch(err => console.warn("Erro ao abrir arquivo:", err));
41
+ });
42
+ }
43
+ }
44
+ const borderColor = _theme.theme.colors.blue[500];
45
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_index2.default, {
46
+ ref: ref,
47
+ testID: testID ?? "notification-detail-card",
48
+ flexStyle: {
49
+ flexDirection: "row"
50
+ },
51
+ borderStyled: {
52
+ borderWidth: 1,
53
+ borderColor: _theme.theme.colors.neutral[200],
54
+ borderRadius: _theme.theme.borderWidths.thick_medium
55
+ },
56
+ marginStyle: {
57
+ marginBottom: 16
58
+ },
59
+ backgroundColor: _theme.theme.colors.neutral[25],
60
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_index2.default, {
61
+ width: 8,
62
+ backgroundColor: borderColor,
63
+ borderStyled: {
64
+ borderTopLeftRadius: _theme.theme.borderWidths.thick_medium,
65
+ borderBottomLeftRadius: _theme.theme.borderWidths.thick_medium
66
+ }
67
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_index2.default, {
68
+ flexStyle: {
69
+ flex: 1
70
+ },
71
+ paddingStyle: {
72
+ padding: _theme.theme.paddings.md
73
+ },
74
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_index3.default, {
75
+ text: title,
76
+ fontFamily: _theme.theme.fonts.inter_bold,
77
+ fontWeight: "700",
78
+ size: _theme.theme.fontSizes.md,
79
+ color: _theme.theme.colors.black[100],
80
+ marginBottom: 8
81
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_index3.default, {
82
+ text: description,
83
+ size: _theme.theme.fontSizes.sm,
84
+ lineHeight: _theme.theme.lineHeight.md,
85
+ color: _theme.theme.colors.gray[700],
86
+ marginBottom: fileUrl ? 12 : 0
87
+ }), fileUrl && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TouchableOpacity, {
88
+ testID: "button",
89
+ onPress: openFile,
90
+ activeOpacity: 0.8,
91
+ style: {
92
+ borderRadius: _theme.theme.borderWidths.thick_medium,
93
+ overflow: "hidden",
94
+ borderWidth: 1,
95
+ borderColor: _theme.theme.colors.gray[300]
96
+ },
97
+ children: fileType === "image" ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_index2.default, {
98
+ borderStyled: {
99
+ borderWidth: 2,
100
+ borderColor: _theme.theme.colors.blue[525],
101
+ borderRadius: _theme.theme.borderWidths.thick_medium
102
+ },
103
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Image, {
104
+ source: {
105
+ uri: fileUrl
106
+ },
107
+ style: {
108
+ width: "100%",
109
+ height: 180,
110
+ borderRadius: _theme.theme.borderWidths.thick_medium,
111
+ borderWidth: 2,
112
+ borderColor: _theme.theme.colors.blue[525]
113
+ },
114
+ resizeMode: "cover"
115
+ })
116
+ }) : /*#__PURE__*/(0, _jsxRuntime.jsxs)(_index2.default, {
117
+ flexStyle: {
118
+ flexDirection: "row",
119
+ alignItems: "center",
120
+ justifyContent: "space-between"
121
+ },
122
+ paddingStyle: {
123
+ padding: _theme.theme.paddings.sm
124
+ },
125
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_index3.default, {
126
+ text: `Abrir arquivo (${fileType.toUpperCase()})`,
127
+ fontFamily: _theme.theme.fonts.inter_medium_500,
128
+ color: _theme.theme.colors.blue[500],
129
+ size: _theme.theme.fontSizes.md
130
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.Icons, {
131
+ icon: "FILES",
132
+ size: 20,
133
+ color: _theme.theme.colors.blue[500]
134
+ })]
135
+ })
136
+ })]
137
+ }), fileType === "image" && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Modal, {
138
+ visible: visible,
139
+ transparent: true,
140
+ animationType: "fade",
141
+ children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
142
+ style: {
143
+ flex: 1,
144
+ backgroundColor: "rgba(0,0,0,0.9)",
145
+ justifyContent: "center",
146
+ alignItems: "center"
147
+ },
148
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TouchableOpacity, {
149
+ onPress: () => setVisible(false),
150
+ style: {
151
+ position: "absolute",
152
+ top: 40,
153
+ right: 20
154
+ },
155
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.Icons, {
156
+ icon: "CLOSED",
157
+ size: 28,
158
+ color: _theme.theme.colors.neutral[25]
159
+ })
160
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Image, {
161
+ source: {
162
+ uri: fileUrl
163
+ },
164
+ style: {
165
+ width: "90%",
166
+ height: "70%",
167
+ borderRadius: _theme.theme.borderWidths.thick_medium
168
+ },
169
+ resizeMode: "contain"
170
+ })]
171
+ })
172
+ })]
173
+ });
174
+ });
175
+ NotificationDetailCard.displayName = "NotificationDetailCard";
176
+
177
+ /**
178
+ * EXPORTS
179
+ */
180
+ var _default = exports.default = (0, _asBaseComponent.asBaseComponent)(NotificationDetailCard);
181
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_index","_index2","_interopRequireDefault","_index3","_asBaseComponent","_theme","_jsxRuntime","e","__esModule","default","t","WeakMap","r","n","o","i","f","__proto__","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","NotificationDetailCard","forwardRef","title","description","fileUrl","fileType","testID","ref","visible","setVisible","useState","openFile","Promise","resolve","then","Linking","openURL","catch","err","console","warn","borderColor","theme","colors","blue","jsxs","flexStyle","flexDirection","borderStyled","borderWidth","neutral","borderRadius","borderWidths","thick_medium","marginStyle","marginBottom","backgroundColor","children","jsx","width","borderTopLeftRadius","borderBottomLeftRadius","flex","paddingStyle","padding","paddings","md","text","fontFamily","fonts","inter_bold","fontWeight","size","fontSizes","color","black","sm","lineHeight","gray","TouchableOpacity","onPress","activeOpacity","style","overflow","Image","source","uri","height","resizeMode","alignItems","justifyContent","toUpperCase","inter_medium_500","Icons","icon","Modal","transparent","animationType","View","position","top","right","displayName","_default","exports","asBaseComponent"],"sourceRoot":"..\\..\\..\\..\\src","sources":["components/notification-details-card/index.tsx"],"mappings":";;;;;;AAGA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAGA,IAAAE,MAAA,GAAAF,OAAA;AAGA,IAAAG,OAAA,GAAAC,sBAAA,CAAAJ,OAAA;AACA,IAAAK,OAAA,GAAAD,sBAAA,CAAAJ,OAAA;AAIA,IAAAM,gBAAA,GAAAN,OAAA;AAGA,IAAAO,MAAA,GAAAP,OAAA;AAAiD,IAAAQ,WAAA,GAAAR,OAAA;AAAA,SAAAI,uBAAAK,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAV,wBAAAU,CAAA,EAAAG,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAd,uBAAA,YAAAA,CAAAU,CAAA,EAAAG,CAA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;UACnC,CAAE;UACFmC,UAAU,EAAC;QAAS,CACrB,CAAC;MAAA,CACE;IAAC,CACF,CACR;EAAA,CACE,CAAC;AAEV,CAAC,CAAC;AAEFpE,sBAAsB,CAACkF,WAAW,GAAG,wBAAwB;;AAE7D;AACA;AACA;AAFA,IAAAC,QAAA,GAAAC,OAAA,CAAArG,OAAA,GAGe,IAAAsG,gCAAe,EAACrF,sBAAsB,CAAC","ignoreList":[]}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ //# sourceMappingURL=interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"..\\..\\..\\..\\src","sources":["components/notification-details-card/interface.ts"],"mappings":"","ignoreList":[]}