jornada-ui 0.4.15 → 0.4.17

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 (222) 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/inputs/input-date-time/index.js +11 -9
  8. package/lib/commonjs/components/inputs/input-date-time/index.js.map +1 -1
  9. package/lib/commonjs/components/inputs/input-date-time/styles.js +6 -3
  10. package/lib/commonjs/components/inputs/input-date-time/styles.js.map +1 -1
  11. package/lib/commonjs/components/modals/modal-change-activitie-history/helpers/index.js +35 -0
  12. package/lib/commonjs/components/modals/modal-change-activitie-history/helpers/index.js.map +1 -0
  13. package/lib/commonjs/components/modals/modal-change-activitie-history/index.js +203 -0
  14. package/lib/commonjs/components/modals/modal-change-activitie-history/index.js.map +1 -0
  15. package/lib/commonjs/components/modals/modal-change-activitie-history/interface.js +6 -0
  16. package/lib/commonjs/components/modals/modal-change-activitie-history/interface.js.map +1 -0
  17. package/lib/commonjs/components/modals/{modal-journey-rectification → modal-edite-journey-rectification}/index.js +71 -65
  18. package/lib/commonjs/components/modals/modal-edite-journey-rectification/index.js.map +1 -0
  19. package/lib/commonjs/components/modals/modal-edite-journey-rectification/interface.d.js.map +1 -0
  20. package/lib/commonjs/components/notification-card/index.js +142 -0
  21. package/lib/commonjs/components/notification-card/index.js.map +1 -0
  22. package/lib/commonjs/components/notification-card/interface.js +6 -0
  23. package/lib/commonjs/components/notification-card/interface.js.map +1 -0
  24. package/lib/commonjs/components/notification-details-card/index.js +181 -0
  25. package/lib/commonjs/components/notification-details-card/index.js.map +1 -0
  26. package/lib/commonjs/components/notification-details-card/interface.js +6 -0
  27. package/lib/commonjs/components/notification-details-card/interface.js.map +1 -0
  28. package/lib/commonjs/components/step-indicator/index.js +131 -68
  29. package/lib/commonjs/components/step-indicator/index.js.map +1 -1
  30. package/lib/commonjs/components/user-journey-work-card/index.js +44 -4
  31. package/lib/commonjs/components/user-journey-work-card/index.js.map +1 -1
  32. package/lib/commonjs/index.js +19 -5
  33. package/lib/commonjs/index.js.map +1 -1
  34. package/lib/commonjs/stories/button/button.stories.js +0 -2
  35. package/lib/commonjs/stories/button/button.stories.js.map +1 -1
  36. package/lib/commonjs/stories/capture-photo/capture-photo.stories.js +0 -1
  37. package/lib/commonjs/stories/capture-photo/capture-photo.stories.js.map +1 -1
  38. package/lib/commonjs/stories/modal-journey-rectification/modal-journey-rectification.stories.js +3 -3
  39. package/lib/commonjs/stories/modal-journey-rectification/modal-journey-rectification.stories.js.map +1 -1
  40. package/lib/commonjs/stories/notification-card/notification-card.stories.js +100 -0
  41. package/lib/commonjs/stories/notification-card/notification-card.stories.js.map +1 -0
  42. package/lib/commonjs/stories/notification-details-card/notification-details-card.stories.js +112 -0
  43. package/lib/commonjs/stories/notification-details-card/notification-details-card.stories.js.map +1 -0
  44. package/lib/commonjs/stories/user-journey-work-card/user-journey-work-card.stories.js +12 -4
  45. package/lib/commonjs/stories/user-journey-work-card/user-journey-work-card.stories.js.map +1 -1
  46. package/lib/commonjs/styles/theme/theme.js +2 -1
  47. package/lib/commonjs/styles/theme/theme.js.map +1 -1
  48. package/lib/module/common/icons-svg/constants/index.js +2 -1
  49. package/lib/module/common/icons-svg/constants/index.js.map +1 -1
  50. package/lib/module/common/icons-svg/download/index.js +47 -0
  51. package/lib/module/common/icons-svg/download/index.js.map +1 -0
  52. package/lib/module/common/icons-svg/index.js +7 -0
  53. package/lib/module/common/icons-svg/index.js.map +1 -1
  54. package/lib/module/components/inputs/input-date-time/index.js +11 -9
  55. package/lib/module/components/inputs/input-date-time/index.js.map +1 -1
  56. package/lib/module/components/inputs/input-date-time/styles.js +6 -3
  57. package/lib/module/components/inputs/input-date-time/styles.js.map +1 -1
  58. package/lib/module/components/modals/modal-change-activitie-history/helpers/index.js +32 -0
  59. package/lib/module/components/modals/modal-change-activitie-history/helpers/index.js.map +1 -0
  60. package/lib/module/components/modals/modal-change-activitie-history/index.js +196 -0
  61. package/lib/module/components/modals/modal-change-activitie-history/index.js.map +1 -0
  62. package/lib/module/components/modals/modal-change-activitie-history/interface.js +4 -0
  63. package/lib/module/components/modals/modal-change-activitie-history/interface.js.map +1 -0
  64. package/lib/module/components/modals/{modal-journey-rectification → modal-edite-journey-rectification}/index.js +69 -63
  65. package/lib/module/components/modals/modal-edite-journey-rectification/index.js.map +1 -0
  66. package/lib/module/components/modals/modal-edite-journey-rectification/interface.d.js.map +1 -0
  67. package/lib/module/components/notification-card/index.js +135 -0
  68. package/lib/module/components/notification-card/index.js.map +1 -0
  69. package/lib/module/components/notification-card/interface.js +4 -0
  70. package/lib/module/components/notification-card/interface.js.map +1 -0
  71. package/lib/module/components/notification-details-card/index.js +183 -0
  72. package/lib/module/components/notification-details-card/index.js.map +1 -0
  73. package/lib/module/components/notification-details-card/interface.js +4 -0
  74. package/lib/module/components/notification-details-card/interface.js.map +1 -0
  75. package/lib/module/components/step-indicator/index.js +129 -65
  76. package/lib/module/components/step-indicator/index.js.map +1 -1
  77. package/lib/module/components/user-journey-work-card/index.js +44 -4
  78. package/lib/module/components/user-journey-work-card/index.js.map +1 -1
  79. package/lib/module/index.js +3 -1
  80. package/lib/module/index.js.map +1 -1
  81. package/lib/module/stories/button/button.stories.js +0 -1
  82. package/lib/module/stories/button/button.stories.js.map +1 -1
  83. package/lib/module/stories/capture-photo/capture-photo.stories.js +0 -1
  84. package/lib/module/stories/capture-photo/capture-photo.stories.js.map +1 -1
  85. package/lib/module/stories/modal-journey-rectification/modal-journey-rectification.stories.js +3 -3
  86. package/lib/module/stories/modal-journey-rectification/modal-journey-rectification.stories.js.map +1 -1
  87. package/lib/module/stories/notification-card/notification-card.stories.js +95 -0
  88. package/lib/module/stories/notification-card/notification-card.stories.js.map +1 -0
  89. package/lib/module/stories/notification-details-card/notification-details-card.stories.js +107 -0
  90. package/lib/module/stories/notification-details-card/notification-details-card.stories.js.map +1 -0
  91. package/lib/module/stories/user-journey-work-card/user-journey-work-card.stories.js +12 -4
  92. package/lib/module/stories/user-journey-work-card/user-journey-work-card.stories.js.map +1 -1
  93. package/lib/module/styles/theme/theme.js +2 -1
  94. package/lib/module/styles/theme/theme.js.map +1 -1
  95. package/lib/typescript/commonjs/src/common/icons-svg/constants/index.d.ts +1 -0
  96. package/lib/typescript/commonjs/src/common/icons-svg/constants/index.d.ts.map +1 -1
  97. package/lib/typescript/commonjs/src/common/icons-svg/download/index.d.ts +11 -0
  98. package/lib/typescript/commonjs/src/common/icons-svg/download/index.d.ts.map +1 -0
  99. package/lib/typescript/commonjs/src/common/icons-svg/index.d.ts.map +1 -1
  100. package/lib/typescript/commonjs/src/components/card-report/index.d.ts.map +1 -1
  101. package/lib/typescript/commonjs/src/components/card-scheduled-journey/index.d.ts +1 -1
  102. package/lib/typescript/commonjs/src/components/inputs/input-date-time/index.d.ts.map +1 -1
  103. package/lib/typescript/commonjs/src/components/inputs/input-date-time/styles.d.ts +2 -1
  104. package/lib/typescript/commonjs/src/components/inputs/input-date-time/styles.d.ts.map +1 -1
  105. package/lib/typescript/commonjs/src/components/modals/modal-change-activitie-history/helpers/index.d.ts +13 -0
  106. package/lib/typescript/commonjs/src/components/modals/modal-change-activitie-history/helpers/index.d.ts.map +1 -0
  107. package/lib/typescript/commonjs/src/components/modals/modal-change-activitie-history/index.d.ts +10 -0
  108. package/lib/typescript/commonjs/src/components/modals/modal-change-activitie-history/index.d.ts.map +1 -0
  109. package/lib/typescript/commonjs/src/components/modals/modal-change-activitie-history/interface.d.ts +18 -0
  110. package/lib/typescript/commonjs/src/components/modals/modal-change-activitie-history/interface.d.ts.map +1 -0
  111. package/lib/typescript/commonjs/src/components/modals/{modal-journey-rectification → modal-edite-journey-rectification}/index.d.ts +3 -0
  112. package/lib/typescript/commonjs/src/components/modals/modal-edite-journey-rectification/index.d.ts.map +1 -0
  113. package/lib/typescript/commonjs/src/components/notification-card/index.d.ts +11 -0
  114. package/lib/typescript/commonjs/src/components/notification-card/index.d.ts.map +1 -0
  115. package/lib/typescript/commonjs/src/components/notification-card/interface.d.ts +17 -0
  116. package/lib/typescript/commonjs/src/components/notification-card/interface.d.ts.map +1 -0
  117. package/lib/typescript/commonjs/src/components/notification-details-card/index.d.ts +11 -0
  118. package/lib/typescript/commonjs/src/components/notification-details-card/index.d.ts.map +1 -0
  119. package/lib/typescript/commonjs/src/components/notification-details-card/interface.d.ts +15 -0
  120. package/lib/typescript/commonjs/src/components/notification-details-card/interface.d.ts.map +1 -0
  121. package/lib/typescript/commonjs/src/components/selects/select-date-and-hours/index.d.ts +1 -1
  122. package/lib/typescript/commonjs/src/components/step-indicator/index.d.ts +3 -9
  123. package/lib/typescript/commonjs/src/components/step-indicator/index.d.ts.map +1 -1
  124. package/lib/typescript/commonjs/src/components/travel-history/index.d.ts.map +1 -1
  125. package/lib/typescript/commonjs/src/components/user-journey-work-card/index.d.ts +2 -0
  126. package/lib/typescript/commonjs/src/components/user-journey-work-card/index.d.ts.map +1 -1
  127. package/lib/typescript/commonjs/src/index.d.ts +3 -1
  128. package/lib/typescript/commonjs/src/index.d.ts.map +1 -1
  129. package/lib/typescript/commonjs/src/stories/modal-journey-rectification/modal-journey-rectification.stories.d.ts +1 -1
  130. package/lib/typescript/commonjs/src/stories/modal-journey-rectification/modal-journey-rectification.stories.d.ts.map +1 -1
  131. package/lib/typescript/commonjs/src/stories/notification-card/notification-card.stories.d.ts +14 -0
  132. package/lib/typescript/commonjs/src/stories/notification-card/notification-card.stories.d.ts.map +1 -0
  133. package/lib/typescript/commonjs/src/stories/notification-details-card/notification-details-card.stories.d.ts +16 -0
  134. package/lib/typescript/commonjs/src/stories/notification-details-card/notification-details-card.stories.d.ts.map +1 -0
  135. package/lib/typescript/commonjs/src/stories/user-journey-work-card/user-journey-work-card.stories.d.ts.map +1 -1
  136. package/lib/typescript/commonjs/src/styles/global/theme-provider.d.ts +1 -0
  137. package/lib/typescript/commonjs/src/styles/global/theme-provider.d.ts.map +1 -1
  138. package/lib/typescript/commonjs/src/styles/theme/theme.d.ts +1 -0
  139. package/lib/typescript/commonjs/src/styles/theme/theme.d.ts.map +1 -1
  140. package/lib/typescript/module/src/common/icons-svg/constants/index.d.ts +1 -0
  141. package/lib/typescript/module/src/common/icons-svg/constants/index.d.ts.map +1 -1
  142. package/lib/typescript/module/src/common/icons-svg/download/index.d.ts +11 -0
  143. package/lib/typescript/module/src/common/icons-svg/download/index.d.ts.map +1 -0
  144. package/lib/typescript/module/src/common/icons-svg/index.d.ts.map +1 -1
  145. package/lib/typescript/module/src/components/card-report/index.d.ts.map +1 -1
  146. package/lib/typescript/module/src/components/card-scheduled-journey/index.d.ts +1 -1
  147. package/lib/typescript/module/src/components/inputs/input-date-time/index.d.ts.map +1 -1
  148. package/lib/typescript/module/src/components/inputs/input-date-time/styles.d.ts +2 -1
  149. package/lib/typescript/module/src/components/inputs/input-date-time/styles.d.ts.map +1 -1
  150. package/lib/typescript/module/src/components/modals/modal-change-activitie-history/helpers/index.d.ts +13 -0
  151. package/lib/typescript/module/src/components/modals/modal-change-activitie-history/helpers/index.d.ts.map +1 -0
  152. package/lib/typescript/module/src/components/modals/modal-change-activitie-history/index.d.ts +10 -0
  153. package/lib/typescript/module/src/components/modals/modal-change-activitie-history/index.d.ts.map +1 -0
  154. package/lib/typescript/module/src/components/modals/modal-change-activitie-history/interface.d.ts +18 -0
  155. package/lib/typescript/module/src/components/modals/modal-change-activitie-history/interface.d.ts.map +1 -0
  156. package/lib/typescript/module/src/components/modals/{modal-journey-rectification → modal-edite-journey-rectification}/index.d.ts +3 -0
  157. package/lib/typescript/module/src/components/modals/modal-edite-journey-rectification/index.d.ts.map +1 -0
  158. package/lib/typescript/module/src/components/notification-card/index.d.ts +11 -0
  159. package/lib/typescript/module/src/components/notification-card/index.d.ts.map +1 -0
  160. package/lib/typescript/module/src/components/notification-card/interface.d.ts +17 -0
  161. package/lib/typescript/module/src/components/notification-card/interface.d.ts.map +1 -0
  162. package/lib/typescript/module/src/components/notification-details-card/index.d.ts +11 -0
  163. package/lib/typescript/module/src/components/notification-details-card/index.d.ts.map +1 -0
  164. package/lib/typescript/module/src/components/notification-details-card/interface.d.ts +15 -0
  165. package/lib/typescript/module/src/components/notification-details-card/interface.d.ts.map +1 -0
  166. package/lib/typescript/module/src/components/selects/select-date-and-hours/index.d.ts +1 -1
  167. package/lib/typescript/module/src/components/step-indicator/index.d.ts +3 -9
  168. package/lib/typescript/module/src/components/step-indicator/index.d.ts.map +1 -1
  169. package/lib/typescript/module/src/components/travel-history/index.d.ts.map +1 -1
  170. package/lib/typescript/module/src/components/user-journey-work-card/index.d.ts +2 -0
  171. package/lib/typescript/module/src/components/user-journey-work-card/index.d.ts.map +1 -1
  172. package/lib/typescript/module/src/index.d.ts +3 -1
  173. package/lib/typescript/module/src/index.d.ts.map +1 -1
  174. package/lib/typescript/module/src/stories/modal-journey-rectification/modal-journey-rectification.stories.d.ts +1 -1
  175. package/lib/typescript/module/src/stories/modal-journey-rectification/modal-journey-rectification.stories.d.ts.map +1 -1
  176. package/lib/typescript/module/src/stories/notification-card/notification-card.stories.d.ts +14 -0
  177. package/lib/typescript/module/src/stories/notification-card/notification-card.stories.d.ts.map +1 -0
  178. package/lib/typescript/module/src/stories/notification-details-card/notification-details-card.stories.d.ts +16 -0
  179. package/lib/typescript/module/src/stories/notification-details-card/notification-details-card.stories.d.ts.map +1 -0
  180. package/lib/typescript/module/src/stories/user-journey-work-card/user-journey-work-card.stories.d.ts.map +1 -1
  181. package/lib/typescript/module/src/styles/global/theme-provider.d.ts +1 -0
  182. package/lib/typescript/module/src/styles/global/theme-provider.d.ts.map +1 -1
  183. package/lib/typescript/module/src/styles/theme/theme.d.ts +1 -0
  184. package/lib/typescript/module/src/styles/theme/theme.d.ts.map +1 -1
  185. package/package.json +1 -1
  186. package/src/common/icons-svg/constants/index.ts +1 -0
  187. package/src/common/icons-svg/download/index.tsx +52 -0
  188. package/src/common/icons-svg/index.tsx +4 -0
  189. package/src/components/card-report/interface.d.ts +1 -1
  190. package/src/components/inputs/input-date-time/index.tsx +13 -12
  191. package/src/components/inputs/input-date-time/styles.ts +64 -63
  192. package/src/components/modals/modal-change-activitie-history/helpers/index.ts +15 -0
  193. package/src/components/modals/modal-change-activitie-history/index.tsx +189 -0
  194. package/src/components/modals/modal-change-activitie-history/interface.ts +16 -0
  195. package/src/components/modals/{modal-journey-rectification → modal-edite-journey-rectification}/index.tsx +78 -67
  196. package/src/components/modals/{modal-journey-rectification → modal-edite-journey-rectification}/interface.d.ts +10 -10
  197. package/src/components/monthly-summary-table/interface.d.ts +1 -1
  198. package/src/components/notification-card/index.tsx +123 -0
  199. package/src/components/notification-card/interface.ts +18 -0
  200. package/src/components/notification-details-card/index.tsx +180 -0
  201. package/src/components/notification-details-card/interface.ts +16 -0
  202. package/src/components/step-indicator/index.tsx +226 -155
  203. package/src/components/step-indicator/interface.d.ts +3 -2
  204. package/src/components/travel-history/interface.d.ts +1 -1
  205. package/src/components/user-journey-work-card/index.tsx +28 -1
  206. package/src/components/user-journey-work-card/interface.d.ts +149 -145
  207. package/src/index.tsx +3 -1
  208. package/src/stories/button/button.stories.tsx +1 -1
  209. package/src/stories/capture-photo/capture-photo.stories.tsx +1 -1
  210. package/src/stories/modal-journey-rectification/modal-journey-rectification.stories.tsx +60 -60
  211. package/src/stories/notification-card/notification-card.stories.tsx +93 -0
  212. package/src/stories/notification-details-card/notification-details-card.stories.tsx +109 -0
  213. package/src/stories/user-journey-work-card/user-journey-work-card.stories.tsx +71 -63
  214. package/src/styles/theme/theme.ts +1 -0
  215. package/lib/commonjs/components/modals/modal-journey-rectification/index.js.map +0 -1
  216. package/lib/commonjs/components/modals/modal-journey-rectification/interface.d.js.map +0 -1
  217. package/lib/module/components/modals/modal-journey-rectification/index.js.map +0 -1
  218. package/lib/module/components/modals/modal-journey-rectification/interface.d.js.map +0 -1
  219. package/lib/typescript/commonjs/src/components/modals/modal-journey-rectification/index.d.ts.map +0 -1
  220. package/lib/typescript/module/src/components/modals/modal-journey-rectification/index.d.ts.map +0 -1
  221. /package/lib/commonjs/components/modals/{modal-journey-rectification → modal-edite-journey-rectification}/interface.d.js +0 -0
  222. /package/lib/module/components/modals/{modal-journey-rectification → modal-edite-journey-rectification}/interface.d.js +0 -0
@@ -1,145 +1,149 @@
1
- /*
2
- * IMPORTS
3
- */
4
- import type React from "react";
5
- import { ViewProps, type DimensionValue } from "react-native";
6
-
7
- /**
8
- * INTERFACE
9
- */
10
- type IUserJourneyWorkCard = ViewProps & {
11
- /**
12
- * props que mostra o nome do usuário
13
- */
14
- name: string;
15
-
16
- /**
17
- * props que mostra a data
18
- */
19
- workDate: string;
20
-
21
- /**
22
- * props que mostra o horário inicial
23
- */
24
- initialTime?: string;
25
-
26
- /**
27
- * props que mostra a duração
28
- */
29
- duration?: string;
30
-
31
- /**
32
- * props que mostra o avatar do usuário
33
- */
34
- avatar: string;
35
-
36
- handleNavigation: () => void;
37
-
38
- children?: React.ReactNode;
39
-
40
- /**
41
- * TestID para testes automático e identificação
42
- */
43
- testID?: string;
44
-
45
- /**
46
- * A propriedade CSS abreviada border define a borda de um elemento. Ele define os valores de largura da borda, estilo da borda e cor da borda.
47
- */
48
- borderStyled?: {
49
- borderStyle?: "solid" | "dotted" | "dashed";
50
-
51
- borderRadius?: number | DimensionValue;
52
- borderTopRightRadius?: number | DimensionValue;
53
- borderTopLeftRadius?: number | DimensionValue;
54
- borderBottomRightRadius?: number | DimensionValue;
55
- borderBottomLeftRadius?: number | DimensionValue;
56
-
57
- borderWidth?: number | DimensionValue;
58
- borderLeftWidth?: number | DimensionValue;
59
- borderRightWidth?: number | DimensionValue;
60
- borderTopWidth?: number | DimensionValue;
61
- borderBottomWidth?: number | DimensionValue;
62
-
63
- borderColor?: string;
64
- borderBottomColor?: string;
65
- borderLeftColor?: string;
66
- borderRightColor?: string;
67
- borderTopColor?: string;
68
- };
69
-
70
- /**
71
- * Propriedades que define a orientação do button que é usada para representar uma página. Na maioria das vezes, esse valores corresponde ao posicionamento alvo da página impressa, se aplicável.
72
- */
73
- flexStyle?: {
74
- alignItems?: "flex-start" | "flex-end" | "center" | "stretch" | "baseline";
75
- alignSelf?: "auto" | "flex-start" | "flex-end" | "center" | "stretch" | "baseline";
76
- flex?: string | number;
77
- flexDirection?: "column" | "column-reverse" | "row" | "row-reverse";
78
- flexWrap?: "nowrap" | "wrap" | "wrap-reverse";
79
- textAlign?: "auto" | "center" | "left" | "right" | "justify";
80
- justifyContent?:
81
- | "flex-start"
82
- | "flex-end"
83
- | "center"
84
- | "space-between"
85
- | "space-around"
86
- | "space-evenly";
87
- };
88
-
89
- /**
90
- * A propriedade margin do CSS define a área de margem nos quatro lados do elemento. É uma abreviação que define todas as margens individuais de uma só vez: margin-top, margin-right (en-US), margin-bottom, e margin-left (en-US).
91
- */
92
- marginStyle?: {
93
- margin?: number | DimensionValue;
94
- marginLeft?: number | DimensionValue;
95
- marginRight?: number | DimensionValue;
96
- marginTop?: number | DimensionValue;
97
- marginBottom?: number | DimensionValue;
98
- };
99
-
100
- /**
101
- * A propriedade padding define uma a distância entre o conteúdo de um elemento e suas bordas. É um atalho que evita definir uma distância para cada lado separadamente (padding-top, padding-right, padding-bottom, padding-left).
102
- */
103
- paddingStyle?: {
104
- padding?: number | DimensionValue;
105
- paddingLeft?: number | DimensionValue;
106
- paddingRight?: number | DimensionValue;
107
- paddingTop?: number | DimensionValue;
108
- paddingBottom?: number | DimensionValue;
109
- };
110
-
111
- /**
112
- * A propriedade CSS height define a altura de um elemento. A altura de um elemento é a distância do topo da borda superior do elemento ao fundo da borda inferior.
113
- */
114
- height?: number | DimensionValue;
115
-
116
- /**
117
- * A propriedade CSS width define a largura de um elemento. A largura de um elemento é a distância do topo da borda esquerda do elemento ao fundo da borda direita.
118
- */
119
- width?: number | DimensionValue;
120
-
121
- /**
122
- * O fundo abreviado CSS Propriedade define todas as propriedades do estilo de fundo de uma só vez, como cor, imagem, origem e tamanho ou método de repetição. As propriedades dos componentes não definidas no fundo da declaração de valor da propriedade abreviada são definidas como seus valores padrão..
123
- */
124
- backgroundColor?: string;
125
-
126
- /**
127
- * Propriedade texto que sera renderizado pro usuário final
128
- */
129
- text?: string;
130
-
131
- /**
132
- * A propriedade CSS color define o valor da cor de primeiro plano do texto e das decorações de texto de um elemento e define o valor currentcolor. currentcolor pode ser usado como um valor indireto em outras propriedades e é o padrão para outras propriedades de cores, como border-color.
133
- */
134
- color?: {
135
- colorSvg?: string;
136
- colorText?: string;
137
- colorTextBold?: string;
138
- colorTextData?: string;
139
- };
140
- };
141
-
142
- /**
143
- * EXPORTS
144
- */
145
- export type { IUserJourneyWorkCard };
1
+ /*
2
+ * IMPORTS
3
+ */
4
+ import type React from "react";
5
+ import { ViewProps, type DimensionValue } from "react-native";
6
+
7
+ /**
8
+ * INTERFACE
9
+ */
10
+ type IUserJourneyWorkCard = ViewProps & {
11
+ /**
12
+ * props que mostra o nome do usuário
13
+ */
14
+ name: string;
15
+
16
+ /**
17
+ * props que mostra a data
18
+ */
19
+ workDate: string;
20
+
21
+ /**
22
+ * props que mostra o horário inicial
23
+ */
24
+ initialTime?: string;
25
+
26
+ /**
27
+ * props que mostra a duração
28
+ */
29
+ duration?: string;
30
+
31
+ counterBadge?: number;
32
+
33
+ /**
34
+ * props que mostra o avatar do usuário
35
+ */
36
+ avatar: string;
37
+
38
+ handleNavigation: () => void;
39
+
40
+ handleNavigationNotification: () => void;
41
+
42
+ children?: React.ReactNode;
43
+
44
+ /**
45
+ * TestID para testes automático e identificação
46
+ */
47
+ testID?: string;
48
+
49
+ /**
50
+ * A propriedade CSS abreviada border define a borda de um elemento. Ele define os valores de largura da borda, estilo da borda e cor da borda.
51
+ */
52
+ borderStyled?: {
53
+ borderStyle?: "solid" | "dotted" | "dashed";
54
+
55
+ borderRadius?: number | DimensionValue;
56
+ borderTopRightRadius?: number | DimensionValue;
57
+ borderTopLeftRadius?: number | DimensionValue;
58
+ borderBottomRightRadius?: number | DimensionValue;
59
+ borderBottomLeftRadius?: number | DimensionValue;
60
+
61
+ borderWidth?: number | DimensionValue;
62
+ borderLeftWidth?: number | DimensionValue;
63
+ borderRightWidth?: number | DimensionValue;
64
+ borderTopWidth?: number | DimensionValue;
65
+ borderBottomWidth?: number | DimensionValue;
66
+
67
+ borderColor?: string;
68
+ borderBottomColor?: string;
69
+ borderLeftColor?: string;
70
+ borderRightColor?: string;
71
+ borderTopColor?: string;
72
+ };
73
+
74
+ /**
75
+ * Propriedades que define a orientação do button que é usada para representar uma página. Na maioria das vezes, esse valores corresponde ao posicionamento alvo da página impressa, se aplicável.
76
+ */
77
+ flexStyle?: {
78
+ alignItems?: "flex-start" | "flex-end" | "center" | "stretch" | "baseline";
79
+ alignSelf?: "auto" | "flex-start" | "flex-end" | "center" | "stretch" | "baseline";
80
+ flex?: string | number;
81
+ flexDirection?: "column" | "column-reverse" | "row" | "row-reverse";
82
+ flexWrap?: "nowrap" | "wrap" | "wrap-reverse";
83
+ textAlign?: "auto" | "center" | "left" | "right" | "justify";
84
+ justifyContent?:
85
+ | "flex-start"
86
+ | "flex-end"
87
+ | "center"
88
+ | "space-between"
89
+ | "space-around"
90
+ | "space-evenly";
91
+ };
92
+
93
+ /**
94
+ * A propriedade margin do CSS define a área de margem nos quatro lados do elemento. É uma abreviação que define todas as margens individuais de uma só vez: margin-top, margin-right (en-US), margin-bottom, e margin-left (en-US).
95
+ */
96
+ marginStyle?: {
97
+ margin?: number | DimensionValue;
98
+ marginLeft?: number | DimensionValue;
99
+ marginRight?: number | DimensionValue;
100
+ marginTop?: number | DimensionValue;
101
+ marginBottom?: number | DimensionValue;
102
+ };
103
+
104
+ /**
105
+ * A propriedade padding define uma a distância entre o conteúdo de um elemento e suas bordas. É um atalho que evita definir uma distância para cada lado separadamente (padding-top, padding-right, padding-bottom, padding-left).
106
+ */
107
+ paddingStyle?: {
108
+ padding?: number | DimensionValue;
109
+ paddingLeft?: number | DimensionValue;
110
+ paddingRight?: number | DimensionValue;
111
+ paddingTop?: number | DimensionValue;
112
+ paddingBottom?: number | DimensionValue;
113
+ };
114
+
115
+ /**
116
+ * A propriedade CSS height define a altura de um elemento. A altura de um elemento é a distância do topo da borda superior do elemento ao fundo da borda inferior.
117
+ */
118
+ height?: number | DimensionValue;
119
+
120
+ /**
121
+ * A propriedade CSS width define a largura de um elemento. A largura de um elemento é a distância do topo da borda esquerda do elemento ao fundo da borda direita.
122
+ */
123
+ width?: number | DimensionValue;
124
+
125
+ /**
126
+ * O fundo abreviado CSS Propriedade define todas as propriedades do estilo de fundo de uma só vez, como cor, imagem, origem e tamanho ou método de repetição. As propriedades dos componentes não definidas no fundo da declaração de valor da propriedade abreviada são definidas como seus valores padrão..
127
+ */
128
+ backgroundColor?: string;
129
+
130
+ /**
131
+ * Propriedade texto que sera renderizado pro usuário final
132
+ */
133
+ text?: string;
134
+
135
+ /**
136
+ * A propriedade CSS color define o valor da cor de primeiro plano do texto e das decorações de texto de um elemento e define o valor currentcolor. currentcolor pode ser usado como um valor indireto em outras propriedades e é o padrão para outras propriedades de cores, como border-color.
137
+ */
138
+ color?: {
139
+ colorSvg?: string;
140
+ colorText?: string;
141
+ colorTextBold?: string;
142
+ colorTextData?: string;
143
+ };
144
+ };
145
+
146
+ /**
147
+ * EXPORTS
148
+ */
149
+ export type { IUserJourneyWorkCard };
package/src/index.tsx CHANGED
@@ -43,10 +43,12 @@ export { default as ResumeRaking } from "./components/resume-raking";
43
43
  export { default as ListSupplies } from "./components/list-supplies";
44
44
  export { default as ListDevices } from "./components/list-devices";
45
45
  export { default as ModalActivityReason } from "./components/modals/modal-activity-reason";
46
- export { default as ModalJourneyRectification } from "./components/modals/modal-journey-rectification";
46
+ export { default as ModalJourneyRectification } from "./components/modals/modal-edite-journey-rectification";
47
47
  export { default as ModalCreteActivitie } from "./components/modals/modal-create-activitie";
48
48
  export { default as ModalToConfirmations } from "./components/modals/modal-to-confimations";
49
49
  export { default as ActivityTimeline } from "./components/activity-step";
50
+ export { default as NotificationCard } from "./components/notification-card";
51
+ export { default as NotificationDetailCard } from "./components/notification-details-card";
50
52
 
51
53
  // adicionar o storybook + teste
52
54
  export { default as WeeklyHoursBalance } from "./components/weekly-hours-balance";
@@ -1,4 +1,4 @@
1
- /* eslint-disable no-undef */
1
+
2
2
  import React from "react";
3
3
  import type { Meta, StoryObj } from "@storybook/react";
4
4
 
@@ -53,7 +53,7 @@ export default meta;
53
53
 
54
54
  type story = StoryObj<typeof CapturePhoto>;
55
55
 
56
- /* eslint-disable no-undef */
56
+
57
57
  export const CaptureSimple: story = {
58
58
  name: "capture-simple",
59
59
  args: {
@@ -1,60 +1,60 @@
1
- /**
2
- * IMPORTS
3
- */
4
- import type { StoryObj, Meta } from "@storybook/react";
5
-
6
- // components
7
- import ModalJourneyRectification from "../../components/modals/modal-journey-rectification";
8
-
9
- const meta: Meta<typeof ModalJourneyRectification> = {
10
- title: "Componente/ModalJourneyRectification",
11
- component: ModalJourneyRectification,
12
- args: {
13
- visible: false,
14
- onClose: () => {},
15
- modalConfirm: () => {},
16
- },
17
- parameters: {
18
- docs: {
19
- description: {
20
- component: `
21
- ### ModalJourneyRectification
22
- Este componente exibe um modal para fazer a exclusão de uma atividade.
23
- ## Uso
24
- \`\`\`tsx
25
- <ModalJourneyRectification
26
- visible={boolean}
27
- onClose={function}
28
- modalConfirm={function}
29
- textTitle={string} (opcional)
30
- />
31
- Componente de **modal-journey-rectification** para exibir um modal solicitando o motivo de exclusão ou outra ação crítica.
32
-
33
- - \`visible\`: define a visibilidade do modal, controlando se deve estar aberto ou fechado
34
- - \`onClose\`: função obrigatória, chamada ao cancelar ou fechar o modal
35
- - \`modalConfirm\`: função obrigatória, chamada ao confirmar a ação (retorna \`true\` por padrão)
36
- - \`textTitle\`: campo opcional, permite personalizar o título exibido no cabeçalho do modal
37
- - \`MaintenanceDescriptionInput\`: campo de texto exibido no corpo do modal para o usuário inserir a justificativa
38
- - \`Botões\`: dois botões de ação — **CANCELAR** e **CONFIRMAR**
39
- - **CANCELAR**: fecha o modal sem executar ação
40
- - **CONFIRMAR**: chama \`modalConfirm(true)\` e em seguida \`onClose()\`
41
-
42
- > Caso \`textTitle\` não seja passado, o modal exibirá "Motivo da exclusão" como título padrão.
43
- `,
44
- },
45
- },
46
- },
47
- };
48
-
49
- export default meta;
50
-
51
- type Story = StoryObj<typeof ModalJourneyRectification>;
52
-
53
- export const Default: Story = {
54
- name: "modal-journey-rectification",
55
- args: {
56
- visible: true,
57
- onClose: () => {},
58
- modalConfirm: () => {},
59
- },
60
- };
1
+ /**
2
+ * IMPORTS
3
+ */
4
+ import type { StoryObj, Meta } from "@storybook/react";
5
+
6
+ // components
7
+ import ModalJourneyRectification from "../../components/modals/modal-edite-journey-rectification";
8
+
9
+ const meta: Meta<typeof ModalJourneyRectification> = {
10
+ title: "Componente/ModalJourneyRectification",
11
+ component: ModalJourneyRectification,
12
+ args: {
13
+ visible: false,
14
+ onClose: () => {},
15
+ modalConfirm: () => {},
16
+ },
17
+ parameters: {
18
+ docs: {
19
+ description: {
20
+ component: `
21
+ ### ModalJourneyRectification
22
+ Este componente exibe um modal para fazer a exclusão de uma atividade.
23
+ ## Uso
24
+ \`\`\`tsx
25
+ <ModalJourneyRectification
26
+ visible={boolean}
27
+ onClose={function}
28
+ modalConfirm={function}
29
+ textTitle={string} (opcional)
30
+ />
31
+ Componente de **modal-journey-rectification** para exibir um modal solicitando o motivo de exclusão ou outra ação crítica.
32
+
33
+ - \`visible\`: define a visibilidade do modal, controlando se deve estar aberto ou fechado
34
+ - \`onClose\`: função obrigatória, chamada ao cancelar ou fechar o modal
35
+ - \`modalConfirm\`: função obrigatória, chamada ao confirmar a ação (retorna \`true\` por padrão)
36
+ - \`textTitle\`: campo opcional, permite personalizar o título exibido no cabeçalho do modal
37
+ - \`MaintenanceDescriptionInput\`: campo de texto exibido no corpo do modal para o usuário inserir a justificativa
38
+ - \`Botões\`: dois botões de ação — **CANCELAR** e **CONFIRMAR**
39
+ - **CANCELAR**: fecha o modal sem executar ação
40
+ - **CONFIRMAR**: chama \`modalConfirm(true)\` e em seguida \`onClose()\`
41
+
42
+ > Caso \`textTitle\` não seja passado, o modal exibirá "Motivo da exclusão" como título padrão.
43
+ `,
44
+ },
45
+ },
46
+ },
47
+ };
48
+
49
+ export default meta;
50
+
51
+ type Story = StoryObj<typeof ModalJourneyRectification>;
52
+
53
+ export const Default: Story = {
54
+ name: "modal-journey-rectification",
55
+ args: {
56
+ visible: true,
57
+ onClose: () => {},
58
+ modalConfirm: () => {},
59
+ },
60
+ };
@@ -0,0 +1,93 @@
1
+ /**
2
+ * IMPORTS
3
+ */
4
+ import React from "react";
5
+ import type { Meta, StoryObj } from "@storybook/react";
6
+
7
+ // components
8
+ import NotificationCard from "../../components/notification-card";
9
+
10
+ // typings
11
+ import type { INotificationCardProps } from "../../components/notification-card/interface";
12
+
13
+ /**
14
+ * META
15
+ */
16
+ const meta: Meta<typeof NotificationCard> = {
17
+ title: "Componente/NotificationCard",
18
+ component: NotificationCard as React.FC<INotificationCardProps>,
19
+ args: {
20
+ variant: "read",
21
+ title: "Lorem Ipsum",
22
+ description: "Lorem Ipsum is simply dummy text of the printing and typesetting industry...",
23
+ },
24
+ argTypes: {
25
+ variant: {
26
+ control: { type: "select" },
27
+ description: "Define o estilo do card.",
28
+ options: ["success", "warning"],
29
+ },
30
+ title: {
31
+ control: { type: "text" },
32
+ description: "Título da notificação.",
33
+ },
34
+ description: {
35
+ control: { type: "text" },
36
+ description: "Descrição da notificação.",
37
+ },
38
+ actionLabel: {
39
+ control: { type: "text" },
40
+ description: "Texto do botão de ação opcional.",
41
+ },
42
+ onPressAction: {
43
+ action: "onPressAction",
44
+ description: "Função chamada ao clicar no botão de ação.",
45
+ },
46
+ },
47
+ parameters: {
48
+ docs: {
49
+ description: {
50
+ component: `
51
+ ### NotificationCard
52
+
53
+ Componente de **notificação** para exibir informações ao usuário.
54
+
55
+ - \`variant\`: define o tipo de card (\`success\` | \`warning\`)
56
+ - \`title\`: define o título da notificação
57
+ - \`description\`: define a descrição da notificação
58
+ - \`actionLabel\`: texto opcional do botão de ação
59
+ - \`onPressAction\`: callback executado ao clicar na ação
60
+
61
+ > Use este componente quando precisar exibir uma notificação com ou sem ação para o usuário.
62
+ `,
63
+ },
64
+ },
65
+ },
66
+ };
67
+
68
+ export default meta;
69
+
70
+ type Story = StoryObj<typeof NotificationCard>;
71
+
72
+ /**
73
+ * STORIES
74
+ */
75
+ export const NotificationCardSuccess: Story = {
76
+ name: "notification-card-success",
77
+ args: {
78
+ variant: "read",
79
+ title: "Lorem Ipsum",
80
+ description:
81
+ "Lorem Ipsum is simply dummy text of the printing and typesetting industry. It has been used as a placeholder text since the 1500s...",
82
+ },
83
+ };
84
+
85
+ export const NotificationCardWarning: Story = {
86
+ name: "notification-card-warning",
87
+ args: {
88
+ variant: "unread",
89
+ title: "Lorem Ipsum",
90
+ description: "Lorem Ipsum is simply dummy text of the printing and typesetting industry...",
91
+ actionLabel: "Lorem Ipsum",
92
+ },
93
+ };
@@ -0,0 +1,109 @@
1
+ /**
2
+ * IMPORTS
3
+ */
4
+ import React from "react";
5
+ import type { Meta, StoryObj } from "@storybook/react";
6
+
7
+ // components
8
+ import NotificationDetailCard from "../../components/notification-details-card";
9
+
10
+ // typings
11
+ import type { INotificationDetailCardProps } from "../../components/notification-details-card/interface";
12
+
13
+ /**
14
+ * META
15
+ */
16
+ const meta: Meta<typeof NotificationDetailCard> = {
17
+ title: "Componente/NotificationDetailCard",
18
+ component: NotificationDetailCard as React.FC<INotificationDetailCardProps>,
19
+ args: {
20
+ title: "Lorem Ipsum",
21
+ description:
22
+ "Lorem Ipsum is simply dummy text of the printing and typesetting industry. " +
23
+ "Lorem Ipsum has been the industry's standard dummy text ever since the 1500s...",
24
+ },
25
+ argTypes: {
26
+ title: {
27
+ control: { type: "text" },
28
+ description: "Título da notificação.",
29
+ },
30
+ description: {
31
+ control: { type: "text" },
32
+ description: "Descrição detalhada da notificação.",
33
+ },
34
+ fileUrl: {
35
+ control: { type: "text" },
36
+ description: "URL de um arquivo anexo (imagem, PDF, CSV, etc.).",
37
+ },
38
+ fileType: {
39
+ control: { type: "select" },
40
+ options: ["image", "pdf", "csv", "other"],
41
+ description: "Tipo do arquivo anexo.",
42
+ },
43
+ },
44
+ parameters: {
45
+ docs: {
46
+ description: {
47
+ component: `
48
+ ### NotificationDetailCard
49
+
50
+ Componente de **detalhamento de notificações**, podendo conter apenas texto ou também anexos (imagem, PDF, CSV, etc.).
51
+
52
+ - \`title\`: título da notificação
53
+ - \`description\`: descrição detalhada
54
+ - \`fileUrl\`: URL do arquivo (opcional)
55
+ - \`fileType\`: tipo do arquivo (image, pdf, csv, other)
56
+
57
+ > Use este componente para exibir o detalhamento completo de uma notificação.
58
+ `,
59
+ },
60
+ },
61
+ },
62
+ };
63
+
64
+ export default meta;
65
+
66
+ type Story = StoryObj<typeof NotificationDetailCard>;
67
+
68
+ /**
69
+ * STORIES
70
+ */
71
+ export const SomenteTexto: Story = {
72
+ name: "Somente Texto",
73
+ args: {
74
+ title: "Lorem Ipsum",
75
+ description:
76
+ "Lorem Ipsum is simply dummy text of the printing and typesetting industry. " +
77
+ "It has survived not only five centuries, but also the leap into electronic typesetting.",
78
+ },
79
+ };
80
+
81
+ export const TextoComImagem: Story = {
82
+ name: "Texto + Imagem",
83
+ args: {
84
+ title: "Atenção!",
85
+ description: "Ponte interditada para caminhões. Apenas veículos leves podem transitar.",
86
+ fileUrl: "https://placehold.co/300x300", // aqui você troca pelo real
87
+ fileType: "image",
88
+ },
89
+ };
90
+
91
+ export const TextoComPdf: Story = {
92
+ name: "Texto + PDF",
93
+ args: {
94
+ title: "Relatório disponível",
95
+ description: "Clique abaixo para abrir o relatório completo em PDF.",
96
+ fileUrl: "https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf",
97
+ fileType: "pdf",
98
+ },
99
+ };
100
+
101
+ export const TextoComCsv: Story = {
102
+ name: "Texto + CSV",
103
+ args: {
104
+ title: "Dados Exportados",
105
+ description: "Clique abaixo para visualizar o arquivo CSV exportado.",
106
+ fileUrl: "https://people.sc.fsu.edu/~jburkardt/data/csv/airtravel.csv",
107
+ fileType: "csv",
108
+ },
109
+ };