react-native-exp-fig 0.1.14 → 0.1.15

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 (216) hide show
  1. package/lib/commonjs/common/icons-svg/agent/index.js +2 -2
  2. package/lib/commonjs/common/icons-svg/agent/index.js.map +1 -1
  3. package/lib/commonjs/common/icons-svg/bed/index.js +4 -4
  4. package/lib/commonjs/common/icons-svg/bed/index.js.map +1 -1
  5. package/lib/commonjs/common/icons-svg/car/index.js +4 -4
  6. package/lib/commonjs/common/icons-svg/car/index.js.map +1 -1
  7. package/lib/commonjs/common/icons-svg/check-outline/index.js +6 -6
  8. package/lib/commonjs/common/icons-svg/check-outline/index.js.map +1 -1
  9. package/lib/commonjs/common/icons-svg/coffee/index.js +4 -4
  10. package/lib/commonjs/common/icons-svg/coffee/index.js.map +1 -1
  11. package/lib/commonjs/common/icons-svg/constants/index.js +4 -4
  12. package/lib/commonjs/common/icons-svg/constants/index.js.map +1 -1
  13. package/lib/commonjs/common/icons-svg/index.js +4 -4
  14. package/lib/commonjs/common/icons-svg/index.js.map +1 -1
  15. package/lib/commonjs/common/icons-svg/pencil/index.js +4 -4
  16. package/lib/commonjs/common/icons-svg/pencil/index.js.map +1 -1
  17. package/lib/commonjs/common/icons-svg/refresh-ccw-dot/index.js +2 -2
  18. package/lib/commonjs/common/icons-svg/refresh-ccw-dot/index.js.map +1 -1
  19. package/lib/commonjs/common/icons-svg/truck-activity/index.js +4 -4
  20. package/lib/commonjs/common/icons-svg/truck-activity/index.js.map +1 -1
  21. package/lib/commonjs/components/activities-daily/index.js +4 -4
  22. package/lib/commonjs/components/activities-daily/index.js.map +1 -1
  23. package/lib/commonjs/components/activities-daily/interface.d.js.map +1 -1
  24. package/lib/commonjs/components/activities-progress/index.js +4 -4
  25. package/lib/commonjs/components/activities-progress/index.js.map +1 -1
  26. package/lib/commonjs/components/activities-progress/interface.d.js.map +1 -1
  27. package/lib/commonjs/components/avatar-profile/index.js.map +1 -1
  28. package/lib/commonjs/components/avatar-profile/interface.d.js.map +1 -1
  29. package/lib/commonjs/components/card-history/index.js +7 -7
  30. package/lib/commonjs/components/card-history/index.js.map +1 -1
  31. package/lib/commonjs/components/card-loading/index.js +7 -7
  32. package/lib/commonjs/components/card-loading/index.js.map +1 -1
  33. package/lib/commonjs/components/card-work-session/index.js +4 -4
  34. package/lib/commonjs/components/card-work-session/index.js.map +1 -1
  35. package/lib/commonjs/components/check-box/index.js +6 -6
  36. package/lib/commonjs/components/check-box/index.js.map +1 -1
  37. package/lib/commonjs/components/check-box/interface.d.js.map +1 -1
  38. package/lib/commonjs/components/coil/index.js +4 -4
  39. package/lib/commonjs/components/coil/index.js.map +1 -1
  40. package/lib/commonjs/components/coil/interface.d.js.map +1 -1
  41. package/lib/commonjs/components/filter-date-selector/index.js +7 -7
  42. package/lib/commonjs/components/filter-date-selector/index.js.map +1 -1
  43. package/lib/commonjs/components/history-details/index.js +1 -2
  44. package/lib/commonjs/components/history-details/index.js.map +1 -1
  45. package/lib/commonjs/components/history-details/interface.d.js.map +1 -1
  46. package/lib/commonjs/components/image-capture-with-remove/index.js +7 -7
  47. package/lib/commonjs/components/image-capture-with-remove/index.js.map +1 -1
  48. package/lib/commonjs/components/image-capture-with-remove/interface.d.js.map +1 -1
  49. package/lib/commonjs/components/loading-progress/index.js +12 -9
  50. package/lib/commonjs/components/loading-progress/index.js.map +1 -1
  51. package/lib/commonjs/components/notification-loading/index.js +9 -2
  52. package/lib/commonjs/components/notification-loading/index.js.map +1 -1
  53. package/lib/commonjs/components/notification-loading/interface.d.js.map +1 -1
  54. package/lib/commonjs/components/profile-menu-option/index.js.map +1 -1
  55. package/lib/commonjs/components/profile-menu-option/interface.d.js.map +1 -1
  56. package/lib/commonjs/components/step-indicator/index.js +6 -6
  57. package/lib/commonjs/components/step-indicator/index.js.map +1 -1
  58. package/lib/commonjs/components/step-indicator/interface.d.js.map +1 -1
  59. package/lib/commonjs/components/step-indicator/styles.js +9 -8
  60. package/lib/commonjs/components/step-indicator/styles.js.map +1 -1
  61. package/lib/commonjs/components/user-profile/index.js +6 -6
  62. package/lib/commonjs/components/user-profile/index.js.map +1 -1
  63. package/lib/commonjs/index.js.map +1 -1
  64. package/lib/commonjs/stories/activities-daily/activities-daily.stories.js.map +1 -1
  65. package/lib/commonjs/stories/activities-progress/activities-progress.stories.js.map +1 -1
  66. package/lib/commonjs/stories/avatar-profile/avatar-profile.stories.js.map +1 -1
  67. package/lib/commonjs/stories/card-loading/card-loading.stories.js.map +1 -1
  68. package/lib/commonjs/stories/check-box/check-box.stories.js.map +1 -1
  69. package/lib/commonjs/stories/coil/coil.stories.js.map +1 -1
  70. package/lib/commonjs/stories/filter-date-selector/filter-date-selector.stories.js.map +1 -1
  71. package/lib/commonjs/stories/history-details/history-details.stories.js.map +1 -1
  72. package/lib/commonjs/stories/image-capture-with-remove/image-capture-with-remove.stories.js.map +1 -1
  73. package/lib/commonjs/stories/notification-loading/notification-loading.stories.js.map +1 -1
  74. package/lib/commonjs/stories/profile-menu-option/profile-menu-option.stories.js.map +1 -1
  75. package/lib/commonjs/stories/step-indicator/step-indicator.stories.js.map +1 -1
  76. package/lib/commonjs/styles/theme/theme.js +4 -4
  77. package/lib/commonjs/styles/theme/theme.js.map +1 -1
  78. package/lib/commonjs/utils/format-data/index.js +11 -11
  79. package/lib/commonjs/utils/format-data/index.js.map +1 -1
  80. package/lib/commonjs/utils/status-color/return-color.js.map +1 -1
  81. package/lib/module/common/icons-svg/agent/index.js +2 -2
  82. package/lib/module/common/icons-svg/agent/index.js.map +1 -1
  83. package/lib/module/common/icons-svg/bed/index.js +4 -4
  84. package/lib/module/common/icons-svg/bed/index.js.map +1 -1
  85. package/lib/module/common/icons-svg/car/index.js +4 -4
  86. package/lib/module/common/icons-svg/car/index.js.map +1 -1
  87. package/lib/module/common/icons-svg/check-outline/index.js +6 -6
  88. package/lib/module/common/icons-svg/check-outline/index.js.map +1 -1
  89. package/lib/module/common/icons-svg/coffee/index.js +4 -4
  90. package/lib/module/common/icons-svg/coffee/index.js.map +1 -1
  91. package/lib/module/common/icons-svg/constants/index.js +4 -4
  92. package/lib/module/common/icons-svg/constants/index.js.map +1 -1
  93. package/lib/module/common/icons-svg/index.js +4 -4
  94. package/lib/module/common/icons-svg/index.js.map +1 -1
  95. package/lib/module/common/icons-svg/pencil/index.js +4 -4
  96. package/lib/module/common/icons-svg/pencil/index.js.map +1 -1
  97. package/lib/module/common/icons-svg/refresh-ccw-dot/index.js +2 -2
  98. package/lib/module/common/icons-svg/refresh-ccw-dot/index.js.map +1 -1
  99. package/lib/module/common/icons-svg/truck-activity/index.js +4 -4
  100. package/lib/module/common/icons-svg/truck-activity/index.js.map +1 -1
  101. package/lib/module/components/activities-daily/index.js +4 -4
  102. package/lib/module/components/activities-daily/index.js.map +1 -1
  103. package/lib/module/components/activities-daily/interface.d.js.map +1 -1
  104. package/lib/module/components/activities-progress/index.js +4 -4
  105. package/lib/module/components/activities-progress/index.js.map +1 -1
  106. package/lib/module/components/activities-progress/interface.d.js.map +1 -1
  107. package/lib/module/components/avatar-profile/index.js.map +1 -1
  108. package/lib/module/components/avatar-profile/interface.d.js.map +1 -1
  109. package/lib/module/components/card-history/index.js +7 -7
  110. package/lib/module/components/card-history/index.js.map +1 -1
  111. package/lib/module/components/card-loading/index.js +7 -7
  112. package/lib/module/components/card-loading/index.js.map +1 -1
  113. package/lib/module/components/card-work-session/index.js +4 -4
  114. package/lib/module/components/card-work-session/index.js.map +1 -1
  115. package/lib/module/components/check-box/index.js +6 -6
  116. package/lib/module/components/check-box/index.js.map +1 -1
  117. package/lib/module/components/check-box/interface.d.js.map +1 -1
  118. package/lib/module/components/coil/index.js +4 -4
  119. package/lib/module/components/coil/index.js.map +1 -1
  120. package/lib/module/components/coil/interface.d.js.map +1 -1
  121. package/lib/module/components/filter-date-selector/index.js +7 -7
  122. package/lib/module/components/filter-date-selector/index.js.map +1 -1
  123. package/lib/module/components/history-details/index.js +1 -2
  124. package/lib/module/components/history-details/index.js.map +1 -1
  125. package/lib/module/components/history-details/interface.d.js.map +1 -1
  126. package/lib/module/components/image-capture-with-remove/index.js +7 -7
  127. package/lib/module/components/image-capture-with-remove/index.js.map +1 -1
  128. package/lib/module/components/image-capture-with-remove/interface.d.js.map +1 -1
  129. package/lib/module/components/loading-progress/index.js +12 -9
  130. package/lib/module/components/loading-progress/index.js.map +1 -1
  131. package/lib/module/components/notification-loading/index.js +9 -2
  132. package/lib/module/components/notification-loading/index.js.map +1 -1
  133. package/lib/module/components/notification-loading/interface.d.js.map +1 -1
  134. package/lib/module/components/profile-menu-option/index.js.map +1 -1
  135. package/lib/module/components/profile-menu-option/interface.d.js.map +1 -1
  136. package/lib/module/components/step-indicator/index.js +6 -6
  137. package/lib/module/components/step-indicator/index.js.map +1 -1
  138. package/lib/module/components/step-indicator/interface.d.js.map +1 -1
  139. package/lib/module/components/step-indicator/styles.js +9 -8
  140. package/lib/module/components/step-indicator/styles.js.map +1 -1
  141. package/lib/module/components/user-profile/index.js +6 -6
  142. package/lib/module/components/user-profile/index.js.map +1 -1
  143. package/lib/module/index.js +2 -2
  144. package/lib/module/index.js.map +1 -1
  145. package/lib/module/stories/activities-daily/activities-daily.stories.js.map +1 -1
  146. package/lib/module/stories/activities-progress/activities-progress.stories.js.map +1 -1
  147. package/lib/module/stories/avatar-profile/avatar-profile.stories.js.map +1 -1
  148. package/lib/module/stories/card-loading/card-loading.stories.js.map +1 -1
  149. package/lib/module/stories/check-box/check-box.stories.js.map +1 -1
  150. package/lib/module/stories/coil/coil.stories.js.map +1 -1
  151. package/lib/module/stories/filter-date-selector/filter-date-selector.stories.js.map +1 -1
  152. package/lib/module/stories/history-details/history-details.stories.js.map +1 -1
  153. package/lib/module/stories/image-capture-with-remove/image-capture-with-remove.stories.js.map +1 -1
  154. package/lib/module/stories/notification-loading/notification-loading.stories.js.map +1 -1
  155. package/lib/module/stories/profile-menu-option/profile-menu-option.stories.js.map +1 -1
  156. package/lib/module/stories/step-indicator/step-indicator.stories.js.map +1 -1
  157. package/lib/module/styles/theme/theme.js +4 -4
  158. package/lib/module/styles/theme/theme.js.map +1 -1
  159. package/lib/module/utils/format-data/index.js +11 -11
  160. package/lib/module/utils/format-data/index.js.map +1 -1
  161. package/lib/module/utils/status-color/return-color.js.map +1 -1
  162. package/lib/typescript/src/components/step-indicator/styles.d.ts +1 -0
  163. package/package.json +2 -2
  164. package/src/common/icons-svg/agent/index.tsx +40 -40
  165. package/src/common/icons-svg/bed/index.tsx +41 -41
  166. package/src/common/icons-svg/car/index.tsx +29 -29
  167. package/src/common/icons-svg/check-outline/index.tsx +42 -42
  168. package/src/common/icons-svg/coffee/index.tsx +43 -43
  169. package/src/common/icons-svg/constants/index.ts +63 -63
  170. package/src/common/icons-svg/index.tsx +255 -255
  171. package/src/common/icons-svg/pencil/index.tsx +32 -32
  172. package/src/common/icons-svg/refresh-ccw-dot/index.tsx +32 -32
  173. package/src/common/icons-svg/truck-activity/index.tsx +29 -29
  174. package/src/components/activities-daily/index.tsx +116 -116
  175. package/src/components/activities-daily/interface.d.ts +22 -22
  176. package/src/components/activities-progress/index.tsx +162 -162
  177. package/src/components/activities-progress/interface.d.ts +41 -41
  178. package/src/components/avatar-profile/index.tsx +95 -95
  179. package/src/components/avatar-profile/interface.d.ts +39 -39
  180. package/src/components/card-history/index.tsx +149 -149
  181. package/src/components/card-loading/index.tsx +278 -278
  182. package/src/components/card-work-session/index.tsx +187 -187
  183. package/src/components/check-box/index.tsx +94 -94
  184. package/src/components/check-box/interface.d.ts +31 -31
  185. package/src/components/coil/index.tsx +103 -103
  186. package/src/components/coil/interface.d.ts +26 -26
  187. package/src/components/filter-date-selector/index.tsx +101 -101
  188. package/src/components/history-details/index.tsx +1 -2
  189. package/src/components/history-details/interface.d.ts +18 -18
  190. package/src/components/image-capture-with-remove/index.tsx +89 -89
  191. package/src/components/image-capture-with-remove/interface.d.ts +25 -25
  192. package/src/components/loading-progress/index.tsx +92 -91
  193. package/src/components/notification-loading/index.tsx +9 -2
  194. package/src/components/notification-loading/interface.d.ts +35 -35
  195. package/src/components/profile-menu-option/index.tsx +65 -65
  196. package/src/components/profile-menu-option/interface.d.ts +42 -42
  197. package/src/components/step-indicator/index.tsx +164 -164
  198. package/src/components/step-indicator/interface.d.ts +34 -34
  199. package/src/components/step-indicator/styles.ts +68 -67
  200. package/src/components/user-profile/index.tsx +204 -204
  201. package/src/index.ts +42 -42
  202. package/src/stories/activities-daily/activities-daily.stories.tsx +40 -40
  203. package/src/stories/activities-progress/activities-progress.stories.tsx +61 -61
  204. package/src/stories/avatar-profile/avatar-profile.stories.tsx +32 -32
  205. package/src/stories/card-loading/card-loading.stories.tsx +85 -85
  206. package/src/stories/check-box/check-box.stories.tsx +81 -81
  207. package/src/stories/coil/coil.stories.tsx +98 -98
  208. package/src/stories/filter-date-selector/filter-date-selector.stories.tsx +122 -122
  209. package/src/stories/history-details/history-details.stories.tsx +36 -36
  210. package/src/stories/image-capture-with-remove/image-capture-with-remove.stories.tsx +57 -57
  211. package/src/stories/notification-loading/notification-loading.stories.tsx +88 -88
  212. package/src/stories/profile-menu-option/profile-menu-option.stories.tsx +70 -70
  213. package/src/stories/step-indicator/step-indicator.stories.tsx +124 -124
  214. package/src/styles/theme/theme.ts +170 -170
  215. package/src/utils/format-data/index.ts +66 -66
  216. package/src/utils/status-color/return-color.ts +23 -23
@@ -1,89 +1,89 @@
1
- /**
2
- * IMPORTS
3
- */
4
- import React from "react";
5
- import { Image, TouchableOpacity } from "react-native";
6
-
7
- // components
8
- import { Box } from "../box";
9
-
10
- // comons / icons
11
- import { Icons } from "../../common/icons-svg";
12
-
13
- // typings
14
- import { IImageCaptureWithRemoveProps } from "./interface";
15
-
16
- // styles
17
- import { theme } from "../../styles/theme/theme";
18
-
19
- // utils
20
- import { getBorderColor } from "../../utils/status-color/return-color";
21
-
22
- /**
23
- *
24
- * Componente ImageCaptureWithRemove para a interação do usuário com ui.
25
- */
26
- const ImageCaptureWithRemove: React.FC<IImageCaptureWithRemoveProps> = ({
27
- width = 50,
28
- height = 50,
29
- foto = null,
30
- handleTakePhoto,
31
- onRemove,
32
- status,
33
- }: IImageCaptureWithRemoveProps) => {
34
- const statusColor = status === "Cancelado" || status === "Pendente";
35
-
36
- return (
37
- <TouchableOpacity
38
- testID="image-capture-touchable"
39
- activeOpacity={0.7}
40
- style={{ position: "relative" }}
41
- onPress={handleTakePhoto}
42
- disabled={!!foto}
43
- >
44
- <Box
45
- width={width}
46
- height={height}
47
- flexStyle={{ flexDirection: "row", alignItems: "center", justifyContent: "center" }}
48
- testID="plus-icon-box"
49
- borderStyled={{
50
- borderWidth: statusColor ? theme.borderWidths.thick : theme.borderWidths.thin,
51
- borderRadius: theme.fontSizes.md,
52
- borderColor: statusColor ? getBorderColor(status) : theme.colors.blue[400],
53
- }}
54
- >
55
- {foto ? (
56
- <>
57
- <Image
58
- testID="captured-image"
59
- style={{
60
- width: "100%",
61
- height: "100%",
62
- borderRadius: theme.fontSizes.md,
63
- resizeMode: "cover",
64
- }}
65
- source={{
66
- uri: foto,
67
- }}
68
- />
69
-
70
- <TouchableOpacity
71
- testID="remove-button"
72
- style={{ position: "absolute", top: 2, right: 4 }}
73
- onPress={onRemove}
74
- >
75
- <Icons icon="X_CIRCLE" color={theme.colors.red[400]} size={18} />
76
- </TouchableOpacity>
77
- </>
78
- ) : (
79
- <Icons icon="PLUS" color={theme.colors.blue[400]} />
80
- )}
81
- </Box>
82
- </TouchableOpacity>
83
- );
84
- };
85
-
86
- /**
87
- * EXPORTS
88
- */
89
- export { ImageCaptureWithRemove };
1
+ /**
2
+ * IMPORTS
3
+ */
4
+ import React from "react";
5
+ import { Image, TouchableOpacity } from "react-native";
6
+
7
+ // components
8
+ import { Box } from "../box";
9
+
10
+ // comons / icons
11
+ import { Icons } from "../../common/icons-svg";
12
+
13
+ // typings
14
+ import { IImageCaptureWithRemoveProps } from "./interface";
15
+
16
+ // styles
17
+ import { theme } from "../../styles/theme/theme";
18
+
19
+ // utils
20
+ import { getBorderColor } from "../../utils/status-color/return-color";
21
+
22
+ /**
23
+ *
24
+ * Componente ImageCaptureWithRemove para a interação do usuário com ui.
25
+ */
26
+ const ImageCaptureWithRemove: React.FC<IImageCaptureWithRemoveProps> = ({
27
+ width = 50,
28
+ height = 50,
29
+ foto = null,
30
+ handleTakePhoto,
31
+ onRemove,
32
+ status,
33
+ }: IImageCaptureWithRemoveProps) => {
34
+ const statusColor = status === "Cancelado" || status === "Pendente";
35
+
36
+ return (
37
+ <TouchableOpacity
38
+ testID="image-capture-touchable"
39
+ activeOpacity={0.7}
40
+ style={{ position: "relative" }}
41
+ onPress={handleTakePhoto}
42
+ disabled={!!foto}
43
+ >
44
+ <Box
45
+ width={width}
46
+ height={height}
47
+ flexStyle={{ flexDirection: "row", alignItems: "center", justifyContent: "center" }}
48
+ testID="plus-icon-box"
49
+ borderStyled={{
50
+ borderWidth: statusColor ? theme.borderWidths.thick : theme.borderWidths.thin,
51
+ borderRadius: theme.fontSizes.md,
52
+ borderColor: statusColor ? getBorderColor(status) : theme.colors.blue[400],
53
+ }}
54
+ >
55
+ {foto ? (
56
+ <>
57
+ <Image
58
+ testID="captured-image"
59
+ style={{
60
+ width: "100%",
61
+ height: "100%",
62
+ borderRadius: theme.fontSizes.md,
63
+ resizeMode: "cover",
64
+ }}
65
+ source={{
66
+ uri: foto,
67
+ }}
68
+ />
69
+
70
+ <TouchableOpacity
71
+ testID="remove-button"
72
+ style={{ position: "absolute", top: 2, right: 4 }}
73
+ onPress={onRemove}
74
+ >
75
+ <Icons icon="X_CIRCLE" color={theme.colors.red[400]} size={18} />
76
+ </TouchableOpacity>
77
+ </>
78
+ ) : (
79
+ <Icons icon="PLUS" color={theme.colors.blue[400]} />
80
+ )}
81
+ </Box>
82
+ </TouchableOpacity>
83
+ );
84
+ };
85
+
86
+ /**
87
+ * EXPORTS
88
+ */
89
+ export { ImageCaptureWithRemove };
@@ -1,25 +1,25 @@
1
- /**
2
- * IMPORTS
3
- */
4
- type IImageCaptureWithRemoveProps = {
5
- /**define o tamanho */
6
- width?: number;
7
- /**define o altura */
8
- height?: number;
9
- /**Imagem capturada */
10
- foto?: string | null;
11
-
12
- /**Remove a imagem capturada */
13
- onRemove: () => void;
14
-
15
- /**Captura a imagem */
16
- handleTakePhoto: () => void;
17
-
18
- /**Define o status das fotos */
19
- status?: "Pendente" | "Concluido" | "Cancelado" | "Andamento";
20
- };
21
-
22
- /**
23
- * EXPORTS
24
- */
25
- export { IImageCaptureWithRemoveProps };
1
+ /**
2
+ * IMPORTS
3
+ */
4
+ type IImageCaptureWithRemoveProps = {
5
+ /**define o tamanho */
6
+ width?: number;
7
+ /**define o altura */
8
+ height?: number;
9
+ /**Imagem capturada */
10
+ foto?: string | null;
11
+
12
+ /**Remove a imagem capturada */
13
+ onRemove: () => void;
14
+
15
+ /**Captura a imagem */
16
+ handleTakePhoto: () => void;
17
+
18
+ /**Define o status das fotos */
19
+ status?: "Pendente" | "Concluido" | "Cancelado" | "Andamento";
20
+ };
21
+
22
+ /**
23
+ * EXPORTS
24
+ */
25
+ export { IImageCaptureWithRemoveProps };
@@ -1,91 +1,92 @@
1
- /**
2
- * IMPORTS
3
- */
4
- import React from "react";
5
-
6
- // component
7
- import { Box } from "../box";
8
- import { Typography } from "../typography";
9
- import { Button } from "../button";
10
-
11
- // typings
12
- import { ILoadingProgress } from "./interface";
13
-
14
- // styles
15
- import { theme } from "../../styles/theme/theme";
16
-
17
- /**
18
- *
19
- * Componente LoadingProgress para a interação do usuário com ui.
20
- */
21
- const LoadingProgress: React.FC<ILoadingProgress> = ({
22
- textLoading,
23
- handleClick,
24
- }: ILoadingProgress) => {
25
- const truncatedText =
26
- textLoading.length > 15 ? textLoading.substring(0, 13) + "..." : textLoading;
27
- return (
28
- <Box>
29
- <Typography
30
- text="Carregamento em Andamento"
31
- size={theme.fontSizes.lg}
32
- fontFamily={theme.fonts.inter_medium_500}
33
- color={theme.colors.gray[800]}
34
- />
35
- <Box
36
- paddingStyle={{ padding: theme.paddings["2xs"] }}
37
- borderStyled={{
38
- borderWidth: theme.borderWidths.thin,
39
- borderRadius: theme.borderWidths.thick_large,
40
- borderStyle: "dashed",
41
- borderColor: theme.colors.neutral[200],
42
- }}
43
- marginStyle={{ marginTop: theme.margins["2xs"], marginBottom: theme.margins["2xs"] }}
44
- >
45
- <Box flexStyle={{ flexDirection: "row", textAlign: "center" }}>
46
- <Typography
47
- text={"N° Carregamento: "}
48
- size={theme.fontSizes.md}
49
- fontFamily={theme.fonts.inter_bold_700}
50
- color={theme.colors.blue[400]}
51
- />
52
-
53
- <Typography
54
- text={truncatedText}
55
- size={theme.fontSizes.md}
56
- fontFamily={theme.fonts.inter_medium_500}
57
- color={theme.colors.gray[800]}
58
- letterSpacing={"regular"}
59
- />
60
- </Box>
61
- <Box
62
- flexStyle={{ alignItems: "center", justifyContent: "center", flexDirection: "row" }}
63
- marginStyle={{ marginTop: theme.margins["2xs"] }}
64
- >
65
- <Button
66
- title={"Visualizar"}
67
- onPress={handleClick}
68
- backgroundColor={theme.colors.blue[400]}
69
- isLoading={false}
70
- height={32}
71
- width={"75%"}
72
- buttonTextStyle={{
73
- color: theme.colors.neutral[25],
74
- fontFamily: theme.fonts.inter_medium_500,
75
- fontSize: theme.fontSizes.lg,
76
- }}
77
- flexStyle={{ alignItems: "center", justifyContent: "center", flexDirection: "row" }}
78
- borderStyled={{
79
- borderRadius: theme.borderWidths.thick_medium,
80
- }}
81
- />
82
- </Box>
83
- </Box>
84
- </Box>
85
- );
86
- };
87
-
88
- /**
89
- * EXPORTS
90
- */
91
- export { LoadingProgress };
1
+ /**
2
+ * IMPORTS
3
+ */
4
+ import React from "react";
5
+
6
+ // component
7
+ import { Box } from "../box";
8
+ import { Typography } from "../typography";
9
+ import { Button } from "../button";
10
+
11
+ // typings
12
+ import { ILoadingProgress } from "./interface";
13
+
14
+ // styles
15
+ import { theme } from "../../styles/theme/theme";
16
+
17
+ /**
18
+ *
19
+ * Componente LoadingProgress para a interação do usuário com ui.
20
+ */
21
+ const LoadingProgress: React.FC<ILoadingProgress> = ({
22
+ textLoading,
23
+ handleClick,
24
+ backgroundColor,
25
+ }: ILoadingProgress) => {
26
+ const truncatedText =
27
+ textLoading.length > 15 ? textLoading.substring(0, 13) + "..." : textLoading;
28
+ return (
29
+ <Box backgroundColor={backgroundColor ?? theme.colors.neutral[25]}>
30
+ <Typography
31
+ text="Carregamento em Andamento"
32
+ size={theme.fontSizes.lg}
33
+ fontFamily={theme.fonts.inter_medium_500}
34
+ color={theme.colors.gray[800]}
35
+ />
36
+ <Box
37
+ paddingStyle={{ padding: theme.paddings["2xs"] }}
38
+ borderStyled={{
39
+ borderWidth: theme.borderWidths.thin,
40
+ borderRadius: theme.borderWidths.thick_large,
41
+ borderStyle: "dashed",
42
+ borderColor: theme.colors.neutral[200],
43
+ }}
44
+ marginStyle={{ marginTop: theme.margins["2xs"], marginBottom: theme.margins["2xs"] }}
45
+ >
46
+ <Box flexStyle={{ flexDirection: "row", textAlign: "center" }}>
47
+ <Typography
48
+ text={"N° Carregamento: "}
49
+ size={theme.fontSizes.md}
50
+ fontFamily={theme.fonts.inter_bold_700}
51
+ color={theme.colors.blue[400]}
52
+ />
53
+
54
+ <Typography
55
+ text={truncatedText}
56
+ size={theme.fontSizes.md}
57
+ fontFamily={theme.fonts.inter_medium_500}
58
+ color={theme.colors.gray[800]}
59
+ letterSpacing={"regular"}
60
+ />
61
+ </Box>
62
+ <Box
63
+ flexStyle={{ alignItems: "center", justifyContent: "center", flexDirection: "row" }}
64
+ marginStyle={{ marginTop: theme.margins["2xs"] }}
65
+ >
66
+ <Button
67
+ title={"Visualizar"}
68
+ onPress={handleClick}
69
+ backgroundColor={theme.colors.blue[400]}
70
+ isLoading={false}
71
+ height={32}
72
+ width={"75%"}
73
+ buttonTextStyle={{
74
+ color: theme.colors.neutral[25],
75
+ fontFamily: theme.fonts.inter_medium_500,
76
+ fontSize: theme.fontSizes.lg,
77
+ }}
78
+ flexStyle={{ alignItems: "center", justifyContent: "center", flexDirection: "row" }}
79
+ borderStyled={{
80
+ borderRadius: theme.borderWidths.thick_medium,
81
+ }}
82
+ />
83
+ </Box>
84
+ </Box>
85
+ </Box>
86
+ );
87
+ };
88
+
89
+ /**
90
+ * EXPORTS
91
+ */
92
+ export { LoadingProgress };
@@ -61,16 +61,18 @@ const NotificationLoading: React.FC<INotificationLoading> = ({
61
61
  <Typography
62
62
  text={"Carregamento - "}
63
63
  size={theme.fontSizes.sm}
64
- lineHeight={theme.fontSizes.sm}
64
+ lineHeight={theme.fontSizes.lg}
65
65
  fontFamily={theme.fonts.inter_semi_bold_600}
66
+ fontWeight="600"
66
67
  color={theme.colors.neutral[25]}
67
68
  letterSpacing={"regular"}
68
69
  />
69
70
  <Typography
70
71
  text={title}
71
72
  size={theme.fontSizes.xs}
72
- lineHeight={theme.fontSizes.sm}
73
+ lineHeight={theme.fontSizes.md}
73
74
  fontFamily={theme.fonts.inter_bold_700}
75
+ fontWeight="700"
74
76
  color={theme.colors.neutral[25]}
75
77
  letterSpacing={"regular"}
76
78
  />
@@ -95,6 +97,7 @@ const NotificationLoading: React.FC<INotificationLoading> = ({
95
97
  size={theme.fontSizes.sm}
96
98
  lineHeight={theme.fontSizes.lg ?? 18}
97
99
  fontFamily={theme.fonts.inter_medium_500}
100
+ fontWeight="500"
98
101
  color={theme.colors.neutral[25]}
99
102
  letterSpacing={"regular"}
100
103
  />
@@ -103,6 +106,7 @@ const NotificationLoading: React.FC<INotificationLoading> = ({
103
106
  size={theme.fontSizes.sm}
104
107
  lineHeight={theme.fontSizes.lg ?? 18}
105
108
  fontFamily={theme.fonts.inter_medium_500}
109
+ fontWeight="500"
106
110
  color={theme.colors.neutral[25]}
107
111
  letterSpacing={"regular"}
108
112
  />
@@ -117,6 +121,8 @@ const NotificationLoading: React.FC<INotificationLoading> = ({
117
121
  text={String(dataStart)}
118
122
  size={theme.fontSizes["2xs"]}
119
123
  fontFamily={theme.fonts.inter_medium_500}
124
+ fontWeight="500"
125
+ lineHeight={theme.fontSizes.sm}
120
126
  color={theme.colors.neutral[25]}
121
127
  letterSpacing={"regular"}
122
128
  marginRight={8}
@@ -137,6 +143,7 @@ const NotificationLoading: React.FC<INotificationLoading> = ({
137
143
  text={notification}
138
144
  size={theme.fontSizes["2xs"]}
139
145
  fontFamily={theme.fonts.inter_medium_500}
146
+ fontWeight="500"
140
147
  lineHeight={theme.fontSizes.sm ?? 14}
141
148
  color={theme.colors.neutral[25]}
142
149
  letterSpacing={"regular"}
@@ -1,35 +1,35 @@
1
- /**
2
- * IMPORTS
3
- */
4
- import { ViewProps } from "react-native";
5
-
6
- // typing
7
- import { IGlobalCss } from "../../styles/global/interface";
8
-
9
- interface INotificationLoading extends ViewProps, IGlobalCss {
10
- /**propriedade que indica o título do carregamento */
11
- title: string;
12
-
13
- /**propriedade que indica a data do carregamento */
14
- date: string | Date;
15
-
16
- /**função que faz a navegação da tela */
17
- handleNavigation: () => void;
18
-
19
- /**propriedade que indica a notificação */
20
- notification: string;
21
-
22
- /**propriedade que indica o status da notificação */
23
- statusNotify: string;
24
-
25
- /**propriedade que indica a data da notificação */
26
- dataStart: string | Date;
27
-
28
- /**propriedade que indica se a notificação está lida ou não */
29
- readonly?: boolean;
30
- }
31
-
32
- /**
33
- * EXPORTS
34
- */
35
- export { INotificationLoading };
1
+ /**
2
+ * IMPORTS
3
+ */
4
+ import { ViewProps } from "react-native";
5
+
6
+ // typing
7
+ import { IGlobalCss } from "../../styles/global/interface";
8
+
9
+ interface INotificationLoading extends ViewProps, IGlobalCss {
10
+ /**propriedade que indica o título do carregamento */
11
+ title: string;
12
+
13
+ /**propriedade que indica a data do carregamento */
14
+ date: string | Date;
15
+
16
+ /**função que faz a navegação da tela */
17
+ handleNavigation: () => void;
18
+
19
+ /**propriedade que indica a notificação */
20
+ notification: string;
21
+
22
+ /**propriedade que indica o status da notificação */
23
+ statusNotify: string;
24
+
25
+ /**propriedade que indica a data da notificação */
26
+ dataStart: string | Date;
27
+
28
+ /**propriedade que indica se a notificação está lida ou não */
29
+ readonly?: boolean;
30
+ }
31
+
32
+ /**
33
+ * EXPORTS
34
+ */
35
+ export { INotificationLoading };
@@ -1,65 +1,65 @@
1
- import React from "react";
2
- import { TouchableOpacity } from "react-native";
3
-
4
- // components
5
- import { Box } from "../box";
6
- import { Typography } from "../typography";
7
-
8
- // icons
9
- import { Icons } from "../../common/icons-svg";
10
-
11
- // theme
12
- import { theme } from "../../styles/theme/theme";
13
-
14
- // typing
15
- import { IProfileMenuOption } from "./interface";
16
-
17
- const ProfileMenuOption: React.FC<IProfileMenuOption> = ({
18
- handleNavigation,
19
- icon,
20
- text,
21
- backgroundColor,
22
- colorIcon,
23
- }) => {
24
- return (
25
- <TouchableOpacity onPress={handleNavigation} activeOpacity={0.7}>
26
- <Box
27
- flexStyle={{
28
- alignItems: "center",
29
- flexDirection: "row",
30
- justifyContent: "space-between",
31
- }}
32
- width={"100%"}
33
- backgroundColor={backgroundColor ?? theme.colors.blue[400]}
34
- paddingStyle={{ padding: theme.paddings["2xs"] }}
35
- borderStyled={{
36
- borderRadius: theme.borderWidths.thick_medium,
37
- borderColor: theme.colors.blue[400],
38
- }}
39
- marginStyle={{ marginBottom: theme.margins.xs }}
40
- >
41
- <Box flexStyle={{ alignItems: "center", flexDirection: "row" }}>
42
- <Icons icon={icon ?? "AGENT"} color={colorIcon ?? theme.colors.neutral[25]} />
43
- <Typography
44
- text={text}
45
- size={theme.fontSizes.sm}
46
- fontFamily={theme.fonts.inter_bold_700}
47
- fontWeight={"700"}
48
- lineHeight={theme.fontSizes.lg}
49
- color={theme.colors.neutral[25]}
50
- marginLeft={theme.margins.xs}
51
- />
52
- </Box>
53
- <Typography
54
- text="›"
55
- size={theme.fontSizes["2xl"]}
56
- fontFamily={theme.fonts.inter_medium_500}
57
- fontWeight={"500"}
58
- color={theme.colors.neutral[25]}
59
- />
60
- </Box>
61
- </TouchableOpacity>
62
- );
63
- };
64
-
65
- export { ProfileMenuOption };
1
+ import React from "react";
2
+ import { TouchableOpacity } from "react-native";
3
+
4
+ // components
5
+ import { Box } from "../box";
6
+ import { Typography } from "../typography";
7
+
8
+ // icons
9
+ import { Icons } from "../../common/icons-svg";
10
+
11
+ // theme
12
+ import { theme } from "../../styles/theme/theme";
13
+
14
+ // typing
15
+ import { IProfileMenuOption } from "./interface";
16
+
17
+ const ProfileMenuOption: React.FC<IProfileMenuOption> = ({
18
+ handleNavigation,
19
+ icon,
20
+ text,
21
+ backgroundColor,
22
+ colorIcon,
23
+ }) => {
24
+ return (
25
+ <TouchableOpacity onPress={handleNavigation} activeOpacity={0.7}>
26
+ <Box
27
+ flexStyle={{
28
+ alignItems: "center",
29
+ flexDirection: "row",
30
+ justifyContent: "space-between",
31
+ }}
32
+ width={"100%"}
33
+ backgroundColor={backgroundColor ?? theme.colors.blue[400]}
34
+ paddingStyle={{ padding: theme.paddings["2xs"] }}
35
+ borderStyled={{
36
+ borderRadius: theme.borderWidths.thick_medium,
37
+ borderColor: theme.colors.blue[400],
38
+ }}
39
+ marginStyle={{ marginBottom: theme.margins.xs }}
40
+ >
41
+ <Box flexStyle={{ alignItems: "center", flexDirection: "row" }}>
42
+ <Icons icon={icon ?? "AGENT"} color={colorIcon ?? theme.colors.neutral[25]} />
43
+ <Typography
44
+ text={text}
45
+ size={theme.fontSizes.sm}
46
+ fontFamily={theme.fonts.inter_bold_700}
47
+ fontWeight={"700"}
48
+ lineHeight={theme.fontSizes.lg}
49
+ color={theme.colors.neutral[25]}
50
+ marginLeft={theme.margins.xs}
51
+ />
52
+ </Box>
53
+ <Typography
54
+ text="›"
55
+ size={theme.fontSizes["2xl"]}
56
+ fontFamily={theme.fonts.inter_medium_500}
57
+ fontWeight={"500"}
58
+ color={theme.colors.neutral[25]}
59
+ />
60
+ </Box>
61
+ </TouchableOpacity>
62
+ );
63
+ };
64
+
65
+ export { ProfileMenuOption };