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
@@ -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,53 +1,106 @@
1
- import type { StoryObj, Meta } from "@storybook/react";
2
-
3
- // components
4
- import CardWorkSession from "../../components/card-work-session";
5
- import { theme } from "../../styles/theme/theme";
6
-
7
- const meta: Meta<typeof CardWorkSession> = {
8
- title: "componente/CardWorkSession",
9
- component: CardWorkSession,
10
- args: {
11
- name: "Weverson L.S",
12
- workDate: "25/01/2025",
13
- timeWork: "",
14
- initialTime: "11:40",
15
- duration: "05:20",
16
- avatar: "https://avatars.githubusercontent.com/u/100369327?v=4&size=64",
17
- },
18
- parameters: {
19
- notes: `
20
- # CardWorkSession
21
-
22
- Este é um componente de CardWorkSession de session de trabalho.
23
- Você usa assim:
24
- \`\`\`tsx
25
- <CardWorkSession
26
- name="Weverson L.S"s
27
- workDate="25/01/2025"
28
- initialTime="11:40"
29
- duration="03:45"
30
- avatar={"https://avatars.githubusercontent.com/u/100369327?v=4&size=64"}
31
- />
32
- \`\`\`
33
- `,
34
- },
35
- };
36
-
37
- export default meta;
38
-
39
- type Story = StoryObj<typeof meta>;
40
-
41
- export const CardTrabalhoSession: Story = {
42
- name: "card-work-session",
43
- args: {
44
- width: 400,
45
- name: "Weverson L.S",
46
- workDate: "25/01/2025",
47
- timeWork: "",
48
- initialTime: "11:40",
49
- duration: "05:20",
50
- avatar: "https://avatars.githubusercontent.com/u/100369327?v=4&size=64",
51
- backgroundColor: theme.colors.gray[300],
52
- },
53
- };
1
+ import type { StoryObj, Meta } from "@storybook/react";
2
+
3
+ // components
4
+ import CardWorkSession from "../../components/card-work-session";
5
+ import { theme } from "../../styles/theme/theme";
6
+
7
+ const meta: Meta<typeof CardWorkSession> = {
8
+ title: "componente/CardWorkSession",
9
+ component: CardWorkSession,
10
+ args: {
11
+ width: "100%",
12
+ counterBadge: 1,
13
+ name: "Weverson L.S",
14
+ workDate: "25/01/2025",
15
+ initialTime: "11:40",
16
+ duration: "05:20",
17
+ avatar: "https://avatars.githubusercontent.com/u/100369327?v=4&size=64",
18
+ },
19
+ argTypes: {
20
+ width: {
21
+ control: "number",
22
+ description: "Informa a a largura do componente.",
23
+ },
24
+ name: {
25
+ control: "text",
26
+ description: "Informa o nome do usuário.",
27
+ },
28
+ workDate: {
29
+ control: "text",
30
+ description: "Informa a data que inicio a jornada.",
31
+ },
32
+ initialTime: {
33
+ control: "text",
34
+ description: "Informa o inicio de jornada.",
35
+ },
36
+ duration: {
37
+ control: "text",
38
+ description: "Informa a duração de jornada.",
39
+ },
40
+ avatar: {
41
+ control: "text",
42
+ description: "Informa a foto do usuário.",
43
+ },
44
+ counterBadge: {
45
+ control: "number",
46
+ type: "number",
47
+ description: "Quantidade de mensagem não lidas",
48
+ },
49
+ backgroundColor: {
50
+ control: "text",
51
+ description: "Informa a cor de fundo.",
52
+ },
53
+ handleNavigationNotification: {
54
+ control: () => {},
55
+ type: "function",
56
+ description: "Função que navegar para as notificações.",
57
+ },
58
+ handleNavigation: {
59
+ control: () => {},
60
+ type: "function",
61
+ description: "Função que navegar para o perfil.",
62
+ },
63
+ },
64
+ parameters: {
65
+ notes: `
66
+ # CardWorkSession
67
+
68
+ Este é um componente de CardWorkSession de session de trabalho.
69
+ Você usa assim:
70
+ \`\`\`tsx
71
+ <CardWorkSession
72
+ width: 400,
73
+ counterBadge: 1,
74
+ name: "Weverson L.S",
75
+ workDate: "25/01/2025",
76
+ initialTime: "11:40",
77
+ duration: "05:20",
78
+ avatar: "https://avatars.githubusercontent.com/u/100369327?v=4&size=64",
79
+ backgroundColor: theme.colors.gray[300],
80
+ handleNavigationNotification: () => {},
81
+ handleNavigation: () => {},
82
+ />
83
+ \`\`\`
84
+ `,
85
+ },
86
+ };
87
+
88
+ export default meta;
89
+
90
+ type Story = StoryObj<typeof meta>;
91
+
92
+ export const CardTrabalhoSession: Story = {
93
+ name: "card-work-session",
94
+ args: {
95
+ width: "100%",
96
+ counterBadge: 1,
97
+ name: "Weverson L.S",
98
+ workDate: "25/01/2025",
99
+ initialTime: "11:40",
100
+ duration: "05:20",
101
+ avatar: "https://avatars.githubusercontent.com/u/100369327?v=4&size=64",
102
+ backgroundColor: theme.colors.gray[300],
103
+ handleNavigationNotification: () => {},
104
+ handleNavigation: () => {},
105
+ },
106
+ };
@@ -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
+ };