react-native-exp-fig 0.1.9 → 0.1.10

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 (52) hide show
  1. package/package.json +1 -1
  2. package/src/common/icons-svg/agent/index.tsx +40 -0
  3. package/src/common/icons-svg/bed/index.tsx +41 -0
  4. package/src/common/icons-svg/car/index.tsx +29 -0
  5. package/src/common/icons-svg/check-outline/index.tsx +42 -0
  6. package/src/common/icons-svg/coffee/index.tsx +43 -0
  7. package/src/common/icons-svg/constants/index.ts +63 -55
  8. package/src/common/icons-svg/index.tsx +255 -217
  9. package/src/common/icons-svg/pencil/index.tsx +32 -0
  10. package/src/common/icons-svg/refresh-ccw-dot/index.tsx +32 -0
  11. package/src/common/icons-svg/truck-activity/index.tsx +29 -0
  12. package/src/components/activities-daily/index.tsx +116 -0
  13. package/src/components/activities-daily/interface.d.ts +22 -0
  14. package/src/components/activities-progress/index.tsx +162 -0
  15. package/src/components/activities-progress/interface.d.ts +41 -0
  16. package/src/components/avatar-profile/index.tsx +95 -0
  17. package/src/components/avatar-profile/interface.d.ts +39 -0
  18. package/src/components/card-history/index.tsx +149 -150
  19. package/src/components/card-loading/index.tsx +16 -1
  20. package/src/components/card-work-session/index.tsx +187 -185
  21. package/src/components/check-box/index.tsx +94 -125
  22. package/src/components/check-box/interface.d.ts +31 -27
  23. package/src/components/coil/index.tsx +3 -3
  24. package/src/components/coil/interface.d.ts +1 -1
  25. package/src/components/filter-date-selector/index.tsx +101 -89
  26. package/src/components/history-details/index.tsx +100 -0
  27. package/src/components/history-details/interface.d.ts +18 -0
  28. package/src/components/image-capture-with-remove/index.tsx +8 -2
  29. package/src/components/image-capture-with-remove/interface.d.ts +3 -0
  30. package/src/components/notification-loading/index.tsx +18 -7
  31. package/src/components/notification-loading/interface.d.ts +4 -0
  32. package/src/components/profile-menu-option/index.tsx +65 -0
  33. package/src/components/profile-menu-option/interface.d.ts +42 -0
  34. package/src/components/step-indicator/index.tsx +164 -164
  35. package/src/components/step-indicator/interface.d.ts +34 -34
  36. package/src/components/user-profile/index.tsx +58 -70
  37. package/src/index.ts +42 -37
  38. package/src/stories/activities-daily/activities-daily.stories.tsx +40 -0
  39. package/src/stories/activities-progress/activities-progress.stories.tsx +61 -0
  40. package/src/stories/avatar-profile/avatar-profile.stories.tsx +32 -0
  41. package/src/stories/card-loading/card-loading.stories.tsx +2 -2
  42. package/src/stories/check-box/check-box.stories.tsx +81 -83
  43. package/src/stories/coil/coil.stories.tsx +26 -3
  44. package/src/stories/filter-date-selector/filter-date-selector.stories.tsx +122 -93
  45. package/src/stories/history-details/history-details.stories.tsx +36 -0
  46. package/src/stories/image-capture-with-remove/image-capture-with-remove.stories.tsx +10 -0
  47. package/src/stories/notification-loading/notification-loading.stories.tsx +15 -0
  48. package/src/stories/profile-menu-option/profile-menu-option.stories.tsx +70 -0
  49. package/src/stories/step-indicator/step-indicator.stories.tsx +124 -116
  50. package/src/styles/theme/theme.ts +2 -0
  51. package/src/utils/format-data/index.ts +66 -40
  52. package/src/utils/status-color/return-color.ts +12 -4
@@ -1,150 +1,149 @@
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
- import { Typography } from "../typography";
10
-
11
- // typings
12
- import { ICardHistory } from "./interface";
13
-
14
- // styles
15
- import { theme } from "../../styles/theme/theme";
16
-
17
- /**
18
- *
19
- * Componente CardLoading para a interação do usuário com ui.
20
- */
21
- const CardHistory: React.FC<ICardHistory> = ({
22
- width,
23
- title = "Carregamento #01020304050607",
24
- local = "Doca 1, Patío 03 - Usiminas Ipatinga",
25
- vehicle = "EXP-0000",
26
- prevision = "12:34 10/03/2025",
27
- testID,
28
- handleNavigation,
29
- }: ICardHistory) => {
30
- return (
31
- <TouchableOpacity onPress={handleNavigation} activeOpacity={0.7}>
32
- <Box
33
- testID={testID}
34
- width={width ?? "100%"}
35
- backgroundColor={theme.colors.blue[400]}
36
- marginStyle={{ marginBottom: theme.margins.md }}
37
- paddingStyle={{ padding: theme.paddings["2xs"] }}
38
- borderStyled={{
39
- borderWidth: theme.borderWidths.thin,
40
- borderColor: theme.colors.blue[400],
41
- borderRadius: theme.borderWidths.thick_medium,
42
- }}
43
- flexStyle={{ flexDirection: "row", justifyContent: "flex-start", alignItems: "center" }}
44
- >
45
- <Box width={"25%"} borderStyled={{ borderRadius: theme.borderWidths.thick_medium }}>
46
- <Image
47
- source={{
48
- uri: "https://th.bing.com/th/id/OIP.Rr9_IUNo8J66QbvQkxzXtwHaEJ?w=276&h=180&c=7&r=0&o=5&pid=1.7",
49
- }}
50
- style={{
51
- width: "100%",
52
- height: 90,
53
- borderRadius: theme.borderWidths.thick_medium,
54
- }}
55
- />
56
- </Box>
57
-
58
- <Box width={"75%"} marginStyle={{ marginLeft: 5 }} height={90}>
59
- <Typography
60
- text={title}
61
- ellipsizeMode="tail"
62
- numberOfLines={1}
63
- color={theme.colors.neutral[25]}
64
- size={theme.fontSizes.sm}
65
- fontFamily={theme.fonts.inter_bold_700}
66
- lineHeight={theme.fontSizes.xl ?? 20}
67
- letterSpacing={"regular"}
68
- />
69
-
70
- <Typography
71
- text={local}
72
- color={theme.colors.neutral[25]}
73
- size={theme.fontSizes.xs}
74
- fontFamily={theme.fonts.inter_regular_400}
75
- lineHeight={theme.fontSizes.md ?? 16}
76
- letterSpacing={"regular"}
77
- />
78
-
79
- {/**DADOS DO VEÍCULOS */}
80
- <Box
81
- flexStyle={{
82
- flexDirection: "row",
83
- justifyContent: "flex-start",
84
- alignItems: "center",
85
- }}
86
- >
87
- <Typography
88
- text={"Dados Veículo:"}
89
- color={theme.colors.neutral[25]}
90
- size={theme.fontSizes.xs}
91
- fontFamily={theme.fonts.inter_regular_400}
92
- lineHeight={theme.fontSizes.md ?? 16}
93
- letterSpacing={"regular"}
94
- />
95
- <Typography
96
- text={vehicle}
97
- color={theme.colors.neutral[25]}
98
- size={theme.fontSizes.xs}
99
- fontFamily={theme.fonts.inter_bold_700}
100
- lineHeight={theme.fontSizes.md ?? 16}
101
- letterSpacing={"regular"}
102
- marginLeft={4}
103
- />
104
- </Box>
105
-
106
- {/**PREVISÃO DO CARREGAMENTO */}
107
- <Box
108
- width={"100%"}
109
- flexStyle={{
110
- flexDirection: "row",
111
- alignItems: "center",
112
- justifyContent: "space-between",
113
- }}
114
- >
115
- <Box
116
- flexStyle={{
117
- flexDirection: "row",
118
- justifyContent: "flex-start",
119
- alignItems: "center",
120
- }}
121
- >
122
- <Typography
123
- text={"Previsão:"}
124
- color={theme.colors.neutral[25]}
125
- size={theme.fontSizes.xs}
126
- fontFamily={theme.fonts.inter_regular_400}
127
- lineHeight={theme.fontSizes.md ?? 16}
128
- letterSpacing={"regular"}
129
- />
130
- <Typography
131
- text={prevision}
132
- color={theme.colors.neutral[25]}
133
- size={theme.fontSizes.xs}
134
- fontFamily={theme.fonts.inter_bold_700}
135
- lineHeight={theme.fontSizes.md ?? 16}
136
- letterSpacing={"regular"}
137
- marginLeft={4}
138
- />
139
- </Box>
140
- </Box>
141
- </Box>
142
- </Box>
143
- </TouchableOpacity>
144
- );
145
- };
146
-
147
- /**
148
- * EXPORTS
149
- */
150
- export { CardHistory };
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
+ import { Typography } from "../typography";
10
+
11
+ // typings
12
+ import { ICardHistory } from "./interface";
13
+
14
+ // styles
15
+ import { theme } from "../../styles/theme/theme";
16
+
17
+ /**
18
+ *
19
+ * Componente CardLoading para a interação do usuário com ui.
20
+ */
21
+ const CardHistory: React.FC<ICardHistory> = ({
22
+ width,
23
+ title = "Carregamento #01020304050607",
24
+ local = "Doca 1, Patío 03 - Usiminas Ipatinga",
25
+ vehicle = "EXP-0000",
26
+ prevision = "12:34 10/03/2025",
27
+ testID,
28
+ handleNavigation,
29
+ }: ICardHistory) => {
30
+ return (
31
+ <TouchableOpacity onPress={handleNavigation} activeOpacity={0.7}>
32
+ <Box
33
+ testID={testID}
34
+ width={width ?? "100%"}
35
+ backgroundColor={theme.colors.blue[400]}
36
+ marginStyle={{ marginBottom: theme.margins.md }}
37
+ paddingStyle={{ padding: theme.paddings["2xs"] }}
38
+ borderStyled={{
39
+ borderWidth: theme.borderWidths.thin,
40
+ borderColor: theme.colors.blue[400],
41
+ borderRadius: theme.borderWidths.thick_medium,
42
+ }}
43
+ flexStyle={{ flexDirection: "row", justifyContent: "flex-start", alignItems: "center" }}
44
+ >
45
+ <Box width={"25%"} borderStyled={{ borderRadius: theme.borderWidths.thick_medium }}>
46
+ <Image
47
+ source={{
48
+ uri: "https://th.bing.com/th/id/OIP.Rr9_IUNo8J66QbvQkxzXtwHaEJ?w=276&h=180&c=7&r=0&o=5&pid=1.7",
49
+ }}
50
+ style={{
51
+ width: "100%",
52
+ height: 90,
53
+ borderRadius: theme.borderWidths.thick_medium,
54
+ }}
55
+ />
56
+ </Box>
57
+
58
+ <Box width={"75%"} paddingStyle={{ paddingLeft: theme.paddings["2xs"] }}>
59
+ <Typography
60
+ text={title}
61
+ ellipsizeMode="tail"
62
+ numberOfLines={1}
63
+ color={theme.colors.neutral[25]}
64
+ size={theme.fontSizes.sm}
65
+ fontFamily={theme.fonts.inter_bold_700}
66
+ lineHeight={theme.fontSizes.xl ?? 20}
67
+ letterSpacing={"regular"}
68
+ marginBottom={4}
69
+ />
70
+
71
+ <Typography
72
+ text={local}
73
+ color={theme.colors.neutral[25]}
74
+ size={theme.fontSizes.xs}
75
+ fontFamily={theme.fonts.inter_regular_400}
76
+ lineHeight={theme.fontSizes.md ?? 16}
77
+ letterSpacing={"regular"}
78
+ marginBottom={4}
79
+ />
80
+
81
+ {/**DADOS DO VEÍCULOS */}
82
+ <Box
83
+ flexStyle={{
84
+ flexDirection: "row",
85
+ justifyContent: "flex-start",
86
+ alignItems: "center",
87
+ }}
88
+ marginStyle={{
89
+ marginBottom: 4,
90
+ }}
91
+ >
92
+ <Typography
93
+ text={"Dados Veículo:"}
94
+ color={theme.colors.neutral[25]}
95
+ size={theme.fontSizes.xs}
96
+ fontFamily={theme.fonts.inter_regular_400}
97
+ lineHeight={theme.fontSizes.md ?? 16}
98
+ letterSpacing={"regular"}
99
+ />
100
+ <Typography
101
+ text={vehicle}
102
+ color={theme.colors.neutral[25]}
103
+ size={theme.fontSizes.xs}
104
+ fontFamily={theme.fonts.inter_bold_700}
105
+ lineHeight={theme.fontSizes.md ?? 16}
106
+ letterSpacing={"regular"}
107
+ marginLeft={4}
108
+ />
109
+ </Box>
110
+
111
+ {/**PREVISÃO DO CARREGAMENTO */}
112
+ <Box
113
+ flexStyle={{
114
+ flexDirection: "row",
115
+ justifyContent: "flex-start",
116
+ alignItems: "center",
117
+ }}
118
+ marginStyle={{
119
+ marginBottom: 4,
120
+ }}
121
+ >
122
+ <Typography
123
+ text={"Data:"}
124
+ color={theme.colors.neutral[25]}
125
+ size={theme.fontSizes.xs}
126
+ fontFamily={theme.fonts.inter_regular_400}
127
+ lineHeight={theme.fontSizes.md ?? 16}
128
+ letterSpacing={"regular"}
129
+ />
130
+ <Typography
131
+ text={prevision}
132
+ color={theme.colors.neutral[25]}
133
+ size={theme.fontSizes.xs}
134
+ fontFamily={theme.fonts.inter_bold_700}
135
+ lineHeight={theme.fontSizes.md ?? 16}
136
+ letterSpacing={"regular"}
137
+ marginLeft={4}
138
+ />
139
+ </Box>
140
+ </Box>
141
+ </Box>
142
+ </TouchableOpacity>
143
+ );
144
+ };
145
+
146
+ /**
147
+ * EXPORTS
148
+ */
149
+ export { CardHistory };
@@ -62,7 +62,7 @@ const CardLoading: React.FC<ICardLoading> = ({
62
62
  />
63
63
  </Box>
64
64
 
65
- <Box width={"74%"} marginStyle={{ marginLeft: 5 }} height={120}>
65
+ <Box width={"74%"} paddingStyle={{ paddingLeft: theme.paddings["2xs"] }}>
66
66
  <Typography
67
67
  text={title}
68
68
  ellipsizeMode="tail"
@@ -72,6 +72,7 @@ const CardLoading: React.FC<ICardLoading> = ({
72
72
  fontFamily={theme.fonts.inter_bold_700}
73
73
  lineHeight={theme.fontSizes.xl ?? 20}
74
74
  letterSpacing={"regular"}
75
+ marginBottom={4}
75
76
  />
76
77
 
77
78
  <Typography
@@ -81,6 +82,7 @@ const CardLoading: React.FC<ICardLoading> = ({
81
82
  fontFamily={theme.fonts.inter_regular_400}
82
83
  lineHeight={theme.fontSizes.md ?? 16}
83
84
  letterSpacing={"regular"}
85
+ marginBottom={4}
84
86
  />
85
87
 
86
88
  <Box
@@ -89,6 +91,9 @@ const CardLoading: React.FC<ICardLoading> = ({
89
91
  justifyContent: "flex-start",
90
92
  alignItems: "center",
91
93
  }}
94
+ marginStyle={{
95
+ marginBottom: 4,
96
+ }}
92
97
  >
93
98
  <Box
94
99
  flexStyle={{
@@ -161,6 +166,9 @@ const CardLoading: React.FC<ICardLoading> = ({
161
166
  justifyContent: "flex-start",
162
167
  alignItems: "center",
163
168
  }}
169
+ marginStyle={{
170
+ marginBottom: 4,
171
+ }}
164
172
  >
165
173
  <Typography
166
174
  text={"Dados Veículo:"}
@@ -189,6 +197,9 @@ const CardLoading: React.FC<ICardLoading> = ({
189
197
  alignItems: "center",
190
198
  justifyContent: "space-between",
191
199
  }}
200
+ marginStyle={{
201
+ marginBottom: 4,
202
+ }}
192
203
  >
193
204
  <Box
194
205
  flexStyle={{
@@ -217,6 +228,7 @@ const CardLoading: React.FC<ICardLoading> = ({
217
228
  </Box>
218
229
  </Box>
219
230
 
231
+ {/**STATUS DO CARREGAMENTO */}
220
232
  <Box
221
233
  width={"100%"}
222
234
  flexStyle={{
@@ -224,6 +236,9 @@ const CardLoading: React.FC<ICardLoading> = ({
224
236
  alignItems: "center",
225
237
  justifyContent: "space-between",
226
238
  }}
239
+ marginStyle={{
240
+ marginBottom: 4,
241
+ }}
227
242
  >
228
243
  <Box
229
244
  flexStyle={{