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,172 +1,190 @@
1
- /**
2
- * Imports
3
- */
4
- import React, { forwardRef } from "react";
5
- import { Image, TouchableOpacity } from "react-native";
6
-
7
- // components
8
- import Box from "../box";
9
- import Typography from "../typography";
10
-
11
- // commons / icons
12
- import { Icons } from "../../common/icons-svg";
13
- import { IMAGES } from "../../common/constants";
14
-
15
- // typings
16
- import { type ICardWorkSession } from "./interface";
17
-
18
- // styles
19
- import { theme } from "../../styles/theme/theme";
20
- import { asBaseComponent } from "../../@types/as-base-component";
21
-
22
- const CardWorkSession = forwardRef<any, ICardWorkSession>((props, ref): React.ReactElement => {
23
- const {
24
- name = "Weverson L.S",
25
- workDate = "25/01/2025",
26
- timeWork = "",
27
- initialTime = "11:40",
28
- duration = "05:20",
29
- avatar = "",
30
- backgroundColor,
31
- width,
32
- handleNavigation,
33
- } = props;
34
- return (
35
- <Box
36
- ref={ref}
37
- width={width}
38
- paddingStyle={{ padding: theme.paddings.md }}
39
- borderStyled={{
40
- borderBottomWidth: theme.borderWidths.thin,
41
- borderColor: backgroundColor ?? theme.colors.neutral[200],
42
- }}
43
- backgroundColor={backgroundColor ?? theme.colors.neutral[25]}
44
- style={{
45
- position: "relative",
46
- }}
47
- >
48
- {/* Cabeçalho com imagem e ícone */}
49
- <Box
50
- flexStyle={{
51
- flexDirection: "row",
52
- justifyContent: "space-between",
53
- alignItems: "center",
54
- }}
55
- >
56
- <TouchableOpacity onPress={handleNavigation}>
57
- <Image
58
- style={{
59
- width: 50,
60
- height: 50,
61
- borderRadius: 25,
62
- borderWidth: theme.borderWidths.thin_medium,
63
- borderColor: theme.colors.blue[500],
64
- }}
65
- source={{ uri: avatar || IMAGES.IMAGE_ANONIMA }}
66
- />
67
- </TouchableOpacity>
68
-
69
- <Box style={{ position: "absolute", left: 57, top: 5 }}>
70
- <Box flexStyle={{ flexDirection: "row" }} marginStyle={{ marginTop: -5 }}>
71
- <Typography
72
- text={"Jornada Trabalho: "}
73
- fontFamily={theme.fonts.inter_bold_700}
74
- size={12}
75
- color={theme.colors.black[100]}
76
- letterSpacing={"regular"}
77
- />
78
- <Typography
79
- text={workDate}
80
- size={12}
81
- fontFamily={theme.fonts.inter_regular_400}
82
- color={theme.colors.gray[800]}
83
- />
84
- </Box>
85
-
86
- <Box flexStyle={{ flexDirection: "row" }} marginStyle={{ marginTop: -5 }}>
87
- <Typography
88
- text={"Tempo Jornada: "}
89
- size={11}
90
- color={theme.colors.black[100]}
91
- fontFamily={theme.fonts.inter_bold_700}
92
- letterSpacing={"regular"}
93
- />
94
-
95
- <Typography
96
- text={timeWork}
97
- size={11}
98
- fontFamily={theme.fonts.inter_regular_400}
99
- color={theme.colors.gray[800]}
100
- letterSpacing={"regular"}
101
- />
102
- </Box>
103
- </Box>
104
-
105
- <Icons icon={"BELL"} size={28} />
106
- </Box>
107
-
108
- <Box
109
- flexStyle={{
110
- flexDirection: "row",
111
- justifyContent: "space-between",
112
- alignItems: "center",
113
- }}
114
- >
115
- <Typography
116
- text={`Olá, ${name}`}
117
- size={16}
118
- color={theme.colors.black[100]}
119
- fontFamily={theme.fonts.inter_bold_700}
120
- marginLeft={-5}
121
- />
122
-
123
- {/* Seção de horário */}
124
- <Box flexStyle={{ flexDirection: "row" }}>
125
- <Box marginStyle={{ marginRight: 15 }}>
126
- <Typography
127
- text={`${initialTime}`}
128
- size={15}
129
- align="center"
130
- color={theme.colors.black[100]}
131
- fontFamily={theme.fonts.inter_semi_bold_600}
132
- />
133
-
134
- <Typography
135
- text={"INÍCIO"}
136
- size={10}
137
- align="center"
138
- color={theme.colors.neutral[200]}
139
- fontFamily={theme.fonts.inter_medium_500}
140
- marginTop={-8}
141
- />
142
- </Box>
143
- <Box>
144
- <Typography
145
- text={`${duration}`}
146
- size={15}
147
- align="center"
148
- color={theme.colors.black[100]}
149
- fontFamily={theme.fonts.inter_semi_bold_600}
150
- />
151
-
152
- <Typography
153
- text={"DURAÇÃO"}
154
- size={10}
155
- align="center"
156
- color={theme.colors.neutral[200]}
157
- fontFamily={theme.fonts.inter_medium_500}
158
- marginTop={-8}
159
- />
160
- </Box>
161
- </Box>
162
- </Box>
163
- </Box>
164
- );
165
- });
166
-
167
- CardWorkSession.displayName = "CardWorkSession";
168
-
169
- /**
170
- * Componente CardWorkSession para a interação da ui.
171
- */
172
- export default asBaseComponent(CardWorkSession);
1
+ /**
2
+ * Imports
3
+ */
4
+ import React, { forwardRef } from "react";
5
+ import { Image, TouchableOpacity } from "react-native";
6
+
7
+ // components
8
+ import Box from "../box";
9
+ import Typography from "../typography";
10
+
11
+ // commons / icons
12
+ import { Icons } from "../../common/icons-svg";
13
+ import { IMAGES } from "../../common/constants";
14
+
15
+ // typings
16
+ import { type ICardWorkSession } from "./interface";
17
+
18
+ // styles
19
+ import { theme } from "../../styles/theme/theme";
20
+ import { asBaseComponent } from "../../@types/as-base-component";
21
+
22
+ const CardWorkSession = forwardRef<any, ICardWorkSession>((props, ref): React.ReactElement => {
23
+ const {
24
+ name = "Weverson L.S",
25
+ workDate = "25/01/2025",
26
+ initialTime = "11:40",
27
+ duration = "05:20",
28
+ avatar = "",
29
+ backgroundColor,
30
+ width,
31
+ handleNavigation,
32
+ handleNavigationNotification,
33
+ counterBadge,
34
+ } = props;
35
+ return (
36
+ <Box
37
+ ref={ref}
38
+ width={width}
39
+ paddingStyle={{ padding: theme.paddings.md }}
40
+ borderStyled={{
41
+ borderBottomWidth: theme.borderWidths.thin,
42
+ borderColor: backgroundColor ?? theme.colors.neutral[200],
43
+ }}
44
+ backgroundColor={backgroundColor ?? theme.colors.neutral[25]}
45
+ style={{
46
+ position: "relative",
47
+ }}
48
+ >
49
+ {/* Cabeçalho com imagem e ícone */}
50
+ <Box
51
+ flexStyle={{
52
+ flexDirection: "row",
53
+ justifyContent: "space-between",
54
+ alignItems: "center",
55
+ }}
56
+ >
57
+ <TouchableOpacity onPress={handleNavigation}>
58
+ <Image
59
+ style={{
60
+ width: 50,
61
+ height: 50,
62
+ borderRadius: 25,
63
+ borderWidth: theme.borderWidths.thin_medium,
64
+ borderColor: theme.colors.blue[500],
65
+ }}
66
+ source={{ uri: avatar || IMAGES.IMAGE_ANONIMA }}
67
+ />
68
+ </TouchableOpacity>
69
+
70
+ <Box style={{ position: "absolute", left: 57, top: 5 }}>
71
+ <Box flexStyle={{ flexDirection: "row" }} marginStyle={{ marginTop: -5 }}>
72
+ <Typography
73
+ text={"Jornada Trabalho: "}
74
+ fontFamily={theme.fonts.inter_bold_700}
75
+ size={12}
76
+ color={theme.colors.black[100]}
77
+ letterSpacing={"regular"}
78
+ />
79
+ <Typography
80
+ text={workDate}
81
+ size={12}
82
+ fontFamily={theme.fonts.inter_regular_400}
83
+ color={theme.colors.gray[800]}
84
+ />
85
+ </Box>
86
+
87
+ <Box flexStyle={{ flexDirection: "row" }} marginStyle={{ marginTop: -5 }}>
88
+ <Typography
89
+ text={"Tempo Jornada: "}
90
+ size={11}
91
+ color={theme.colors.black[100]}
92
+ fontFamily={theme.fonts.inter_bold_700}
93
+ letterSpacing={"regular"}
94
+ />
95
+ </Box>
96
+ </Box>
97
+
98
+ <TouchableOpacity activeOpacity={0.7} onPress={handleNavigationNotification}>
99
+ {counterBadge > 0 && (
100
+ <Box
101
+ backgroundColor={theme.colors.red[500]}
102
+ flexStyle={{ alignItems: "center", justifyContent: "center" }}
103
+ borderStyled={{ borderRadius: theme.borderWidths.hairline }}
104
+ style={[
105
+ counterBadge < 10
106
+ ? { right: -5, top: -2, height: 16, width: 16 }
107
+ : { right: -8, top: -5, padding: 2 },
108
+ { position: "absolute", zIndex: 10 },
109
+ ]}
110
+ >
111
+ <Typography
112
+ text={`${counterBadge}`}
113
+ align={"center"}
114
+ size={theme.fontSizes["2xs"]}
115
+ color={theme.colors.neutral[25]}
116
+ fontFamily={theme.fonts.inter_bold_700}
117
+ lineHeight={theme.fontSizes.sm}
118
+ letterSpacing={"regular"}
119
+ />
120
+ </Box>
121
+ )}
122
+ <Icons icon={"BELL"} size={28} style={{ position: "relative" }} />
123
+ </TouchableOpacity>
124
+ </Box>
125
+
126
+ <Box
127
+ flexStyle={{
128
+ flexDirection: "row",
129
+ justifyContent: "space-between",
130
+ alignItems: "center",
131
+ }}
132
+ >
133
+ <Typography
134
+ text={`Olá, ${name}`}
135
+ size={16}
136
+ color={theme.colors.black[100]}
137
+ fontFamily={theme.fonts.inter_bold_700}
138
+ marginLeft={-5}
139
+ />
140
+
141
+ {/* Seção de horário */}
142
+ <Box flexStyle={{ flexDirection: "row" }}>
143
+ <Box marginStyle={{ marginRight: 15 }}>
144
+ <Typography
145
+ text={`${initialTime}`}
146
+ size={15}
147
+ align="center"
148
+ color={theme.colors.black[100]}
149
+ fontFamily={theme.fonts.inter_semi_bold_600}
150
+ />
151
+
152
+ <Typography
153
+ text={"INÍCIO"}
154
+ size={10}
155
+ align="center"
156
+ color={theme.colors.neutral[200]}
157
+ fontFamily={theme.fonts.inter_medium_500}
158
+ marginTop={-8}
159
+ />
160
+ </Box>
161
+ <Box>
162
+ <Typography
163
+ text={`${duration}`}
164
+ size={15}
165
+ align="center"
166
+ color={theme.colors.black[100]}
167
+ fontFamily={theme.fonts.inter_semi_bold_600}
168
+ />
169
+
170
+ <Typography
171
+ text={"DURAÇÃO"}
172
+ size={10}
173
+ align="center"
174
+ color={theme.colors.neutral[200]}
175
+ fontFamily={theme.fonts.inter_medium_500}
176
+ marginTop={-8}
177
+ />
178
+ </Box>
179
+ </Box>
180
+ </Box>
181
+ </Box>
182
+ );
183
+ });
184
+
185
+ CardWorkSession.displayName = "CardWorkSession";
186
+
187
+ /**
188
+ * Componente CardWorkSession para a interação da ui.
189
+ */
190
+ export default asBaseComponent(CardWorkSession);