jornada-ui 0.4.18 → 0.4.19

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 (26) hide show
  1. package/lib/commonjs/components/list-supplies/index.js +132 -111
  2. package/lib/commonjs/components/list-supplies/index.js.map +1 -1
  3. package/lib/commonjs/components/notification-details-card/index.js +6 -6
  4. package/lib/commonjs/components/trip-details-card/index.js +218 -182
  5. package/lib/commonjs/components/trip-details-card/index.js.map +1 -1
  6. package/lib/commonjs/index.js +32 -32
  7. package/lib/module/components/list-supplies/index.js +134 -113
  8. package/lib/module/components/list-supplies/index.js.map +1 -1
  9. package/lib/module/components/notification-details-card/index.js +6 -6
  10. package/lib/module/components/trip-details-card/index.js +221 -184
  11. package/lib/module/components/trip-details-card/index.js.map +1 -1
  12. package/lib/module/index.js +4 -4
  13. package/lib/module/index.js.map +1 -1
  14. package/lib/typescript/commonjs/src/components/list-supplies/index.d.ts.map +1 -1
  15. package/lib/typescript/commonjs/src/components/trip-details-card/index.d.ts.map +1 -1
  16. package/lib/typescript/commonjs/src/index.d.ts +4 -4
  17. package/lib/typescript/commonjs/src/index.d.ts.map +1 -1
  18. package/lib/typescript/module/src/components/list-supplies/index.d.ts.map +1 -1
  19. package/lib/typescript/module/src/components/trip-details-card/index.d.ts.map +1 -1
  20. package/lib/typescript/module/src/index.d.ts +4 -4
  21. package/lib/typescript/module/src/index.d.ts.map +1 -1
  22. package/package.json +1 -1
  23. package/src/components/list-supplies/index.tsx +178 -153
  24. package/src/components/notification-details-card/index.tsx +180 -180
  25. package/src/components/trip-details-card/index.tsx +65 -32
  26. package/src/index.tsx +4 -4
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/index.tsx"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,EAAE,OAAO,IAAI,GAAG,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,M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D,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jornada-ui",
3
- "version": "0.4.18",
3
+ "version": "0.4.19",
4
4
  "description": "Biblioteca para desenvolvimento dos componentes para utilizar nos app",
5
5
  "source": "./src/index.tsx",
6
6
  "main": "./lib/commonjs/index.js",
@@ -1,153 +1,178 @@
1
- /**
2
- * IMPORTS
3
- */
4
- import React, { useEffect } from "react";
5
- import { Image, View, UIManager, Platform } from "react-native";
6
-
7
- // components
8
- import Box from "../../components/box";
9
- import Typography from "../../components/typography";
10
-
11
- // style
12
- import { theme } from "../../styles/theme/theme";
13
-
14
- // typings
15
- import type { IListSupplies } from "./interface";
16
- import { asBaseComponent } from "../../@types/as-base-component";
17
-
18
- const ListSupplies: React.FC<IListSupplies> = ({
19
- dataRegistro,
20
- namePosto,
21
- litragem,
22
- valor,
23
- imagemUrl,
24
- corBarra,
25
- }) => {
26
-
27
- useEffect(() => {
28
- if (Platform.OS === "android" && UIManager.setLayoutAnimationEnabledExperimental) {
29
- UIManager.setLayoutAnimationEnabledExperimental(true);
30
- }
31
- }, []);
32
-
33
- return (
34
- <Box
35
- width={"100%"}
36
- flexStyle={{ flexDirection: "row" }}
37
- backgroundColor={theme.colors.neutral[25]}
38
- borderStyled={{ borderRadius: theme.borderWidths.thick_medium }}
39
- >
40
- {/* faixa lateral */}
41
- <View
42
- style={{
43
- width: 15,
44
- backgroundColor: corBarra ?? theme.colors.blue[375],
45
- borderTopLeftRadius: theme.borderWidths.thick_medium,
46
- borderBottomLeftRadius: theme.borderWidths.thick_medium,
47
- }}
48
- />
49
-
50
- <Box flexStyle={{ flex: 1 }} paddingStyle={{ padding: theme.paddings["2xs"] }}>
51
- <Box
52
- marginStyle={{ marginBottom: theme.margins.fn}}
53
- flexStyle={{ flexDirection: "row", justifyContent: "flex-start" }}
54
- >
55
- <Typography
56
- text={`${namePosto || "Não informado"}`}
57
- color={theme.colors.black[25]}
58
- fontFamily={theme.fonts.inter_medium_500}
59
- size={theme.fontSizes.sm}
60
- />
61
- </Box>
62
-
63
- <Box
64
- marginStyle={{ marginBottom: theme.margins.fn}}
65
- flexStyle={{ flexDirection: "row", justifyContent: "flex-start" }}
66
- >
67
- <Typography
68
- text="Litragem: "
69
- color={theme.colors.black[25]}
70
- fontFamily={theme.fonts.inter_medium_500}
71
- size={theme.fontSizes.sm}
72
- />
73
- <Box
74
- flexStyle={{ flexDirection: "row", justifyContent: "flex-start" }}
75
- >
76
- <Typography
77
- text={`${litragem || "Não informado"}`}
78
- color={theme.colors.black[25]}
79
- fontFamily={theme.fonts.inter_regular_400}
80
- size={theme.fontSizes.sm}
81
- />
82
- <Typography
83
- text={` LT`}
84
- color={theme.colors.red[400]}
85
- fontFamily={theme.fonts.inter_regular_400}
86
- size={theme.fontSizes.sm}
87
- />
88
- </Box>
89
- </Box>
90
-
91
- <Box
92
- marginStyle={{ marginBottom: theme.margins.fn}}
93
- flexStyle={{ flexDirection: "row", justifyContent: "flex-start" }}
94
- >
95
- <Typography
96
- text="Valor: "
97
- color={theme.colors.black[25]}
98
- fontFamily={theme.fonts.inter_medium_500}
99
- size={theme.fontSizes.sm}
100
- />
101
- <Typography
102
- text={`R$ ${valor || "Não informado"}`}
103
- color={theme.colors.gray[700]}
104
- fontFamily={theme.fonts.inter_regular_400}
105
- size={theme.fontSizes.sm}
106
- />
107
- </Box>
108
-
109
- <Box
110
- marginStyle={{ marginBottom: theme.margins.fn}}
111
- flexStyle={{ flexDirection: "row", justifyContent: "flex-start" }}
112
- >
113
- <Typography
114
- text={"Data: "}
115
- color={theme.colors.black[25]}
116
- fontFamily={theme.fonts.inter_medium_500}
117
- size={theme.fontSizes.sm}
118
- />
119
- <Typography
120
- text={`${dataRegistro || "Não informado"}`}
121
- color={theme.colors.gray[700]}
122
- fontFamily={theme.fonts.inter_regular_400}
123
- size={theme.fontSizes.sm}
124
- />
125
- </Box>
126
- <Box
127
- borderStyled={{
128
- borderWidth: 1,
129
- borderColor: theme.colors.black[25],
130
- borderRadius: theme.borderWidths.thick_medium,
131
- }}
132
- flexStyle={{
133
- justifyContent: "center",
134
- alignItems: "center",
135
- }}
136
- >
137
- <Image
138
- source={{ uri: imagemUrl ?? "https://placehold.co/300x300" }}
139
- style={{
140
- width: "100%",
141
- height: 139,
142
- borderRadius: theme.borderWidths.thick_medium,
143
- }}
144
- resizeMode="cover"
145
- />
146
- </Box>
147
- </Box>
148
- </Box>
149
- );
150
- };
151
-
152
- ListSupplies.displayName = "ListSupplies";
153
- export default asBaseComponent(ListSupplies);
1
+ /**
2
+ * IMPORTS
3
+ */
4
+ import React, { useEffect, useRef } from "react";
5
+ import { Animated, Image, View, Easing } from "react-native";
6
+
7
+ // components
8
+ import Box from "../../components/box";
9
+ import Typography from "../../components/typography";
10
+
11
+ // style
12
+ import { theme } from "../../styles/theme/theme";
13
+
14
+ // typings
15
+ import type { IListSupplies } from "./interface";
16
+ import { asBaseComponent } from "../../@types/as-base-component";
17
+
18
+ const ListSupplies: React.FC<IListSupplies> = ({
19
+ dataRegistro,
20
+ namePosto,
21
+ litragem,
22
+ valor,
23
+ imagemUrl,
24
+ corBarra,
25
+ }) => {
26
+ // 🔹 Valor de animação para fade + slide
27
+ const fadeAnim = useRef(new Animated.Value(0)).current;
28
+ const slideAnim = useRef(new Animated.Value(20)).current;
29
+
30
+ useEffect(() => {
31
+ // 🔹 Animação ao montar o componente
32
+ Animated.timing(fadeAnim, {
33
+ toValue: 1,
34
+ duration: 400,
35
+ easing: Easing.out(Easing.ease),
36
+ useNativeDriver: true,
37
+ }).start();
38
+
39
+ Animated.timing(slideAnim, {
40
+ toValue: 0,
41
+ duration: 400,
42
+ easing: Easing.out(Easing.ease),
43
+ useNativeDriver: true,
44
+ }).start();
45
+ }, [fadeAnim, slideAnim]);
46
+
47
+ return (
48
+ <Animated.View
49
+ style={{
50
+ opacity: fadeAnim,
51
+ transform: [{ translateY: slideAnim }],
52
+ }}
53
+ >
54
+ <Box
55
+ width={"100%"}
56
+ flexStyle={{ flexDirection: "row" }}
57
+ backgroundColor={theme.colors.neutral[25]}
58
+ borderStyled={{ borderRadius: theme.borderWidths.thick_medium }}
59
+ >
60
+ {/* faixa lateral */}
61
+ <View
62
+ style={{
63
+ width: 15,
64
+ backgroundColor: corBarra ?? theme.colors.blue[375],
65
+ borderTopLeftRadius: theme.borderWidths.thick_medium,
66
+ borderBottomLeftRadius: theme.borderWidths.thick_medium,
67
+ }}
68
+ />
69
+
70
+ <Box flexStyle={{ flex: 1 }} paddingStyle={{ padding: theme.paddings["2xs"] }}>
71
+ {/* Nome do posto */}
72
+ <Box
73
+ marginStyle={{ marginBottom: theme.margins.fn }}
74
+ flexStyle={{ flexDirection: "row", justifyContent: "flex-start" }}
75
+ >
76
+ <Typography
77
+ text={`${namePosto || "Não informado"}`}
78
+ color={theme.colors.black[25]}
79
+ fontFamily={theme.fonts.inter_medium_500}
80
+ size={theme.fontSizes.sm}
81
+ />
82
+ </Box>
83
+
84
+ {/* Litragem */}
85
+ <Box
86
+ marginStyle={{ marginBottom: theme.margins.fn }}
87
+ flexStyle={{ flexDirection: "row", justifyContent: "flex-start" }}
88
+ >
89
+ <Typography
90
+ text="Litragem: "
91
+ color={theme.colors.black[25]}
92
+ fontFamily={theme.fonts.inter_medium_500}
93
+ size={theme.fontSizes.sm}
94
+ />
95
+ <Box flexStyle={{ flexDirection: "row", justifyContent: "flex-start" }}>
96
+ <Typography
97
+ text={`${litragem || "Não informado"}`}
98
+ color={theme.colors.black[25]}
99
+ fontFamily={theme.fonts.inter_regular_400}
100
+ size={theme.fontSizes.sm}
101
+ />
102
+ <Typography
103
+ text={` LT`}
104
+ color={theme.colors.red[400]}
105
+ fontFamily={theme.fonts.inter_regular_400}
106
+ size={theme.fontSizes.sm}
107
+ />
108
+ </Box>
109
+ </Box>
110
+
111
+ {/* Valor */}
112
+ <Box
113
+ marginStyle={{ marginBottom: theme.margins.fn }}
114
+ flexStyle={{ flexDirection: "row", justifyContent: "flex-start" }}
115
+ >
116
+ <Typography
117
+ text="Valor: "
118
+ color={theme.colors.black[25]}
119
+ fontFamily={theme.fonts.inter_medium_500}
120
+ size={theme.fontSizes.sm}
121
+ />
122
+ <Typography
123
+ text={`R$ ${valor || "Não informado"}`}
124
+ color={theme.colors.gray[700]}
125
+ fontFamily={theme.fonts.inter_regular_400}
126
+ size={theme.fontSizes.sm}
127
+ />
128
+ </Box>
129
+
130
+ {/* Data */}
131
+ <Box
132
+ marginStyle={{ marginBottom: theme.margins.fn }}
133
+ flexStyle={{ flexDirection: "row", justifyContent: "flex-start" }}
134
+ >
135
+ <Typography
136
+ text={"Data: "}
137
+ color={theme.colors.black[25]}
138
+ fontFamily={theme.fonts.inter_medium_500}
139
+ size={theme.fontSizes.sm}
140
+ />
141
+ <Typography
142
+ text={`${dataRegistro || "Não informado"}`}
143
+ color={theme.colors.gray[700]}
144
+ fontFamily={theme.fonts.inter_regular_400}
145
+ size={theme.fontSizes.sm}
146
+ />
147
+ </Box>
148
+
149
+ {/* Imagem */}
150
+ <Box
151
+ borderStyled={{
152
+ borderWidth: 1,
153
+ borderColor: theme.colors.black[25],
154
+ borderRadius: theme.borderWidths.thick_medium,
155
+ }}
156
+ flexStyle={{
157
+ justifyContent: "center",
158
+ alignItems: "center",
159
+ }}
160
+ >
161
+ <Image
162
+ source={{ uri: imagemUrl ?? "https://placehold.co/300x300" }}
163
+ style={{
164
+ width: "100%",
165
+ height: 139,
166
+ borderRadius: theme.borderWidths.thick_medium,
167
+ }}
168
+ resizeMode="cover"
169
+ />
170
+ </Box>
171
+ </Box>
172
+ </Box>
173
+ </Animated.View>
174
+ );
175
+ };
176
+
177
+ ListSupplies.displayName = "ListSupplies";
178
+ export default asBaseComponent(ListSupplies);