react-native-exp-fig 0.1.41 → 0.1.43

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 (187) hide show
  1. package/lib/commonjs/@types/as-base-component.js.map +1 -1
  2. package/lib/commonjs/common/icons-svg/arrow-down/index.js +51 -0
  3. package/lib/commonjs/common/icons-svg/arrow-down/index.js.map +1 -0
  4. package/lib/commonjs/common/icons-svg/constants/index.js +3 -1
  5. package/lib/commonjs/common/icons-svg/constants/index.js.map +1 -1
  6. package/lib/commonjs/common/icons-svg/user-circle/index.js +37 -0
  7. package/lib/commonjs/common/icons-svg/user-circle/index.js.map +1 -0
  8. package/lib/commonjs/components/active-loadings-summary/index.js +88 -0
  9. package/lib/commonjs/components/active-loadings-summary/index.js.map +1 -0
  10. package/lib/commonjs/components/active-loadings-summary/interface.d.js +6 -0
  11. package/lib/commonjs/components/active-loadings-summary/interface.d.js.map +1 -0
  12. package/lib/commonjs/components/alert-critical-load/index.js +64 -0
  13. package/lib/commonjs/components/alert-critical-load/index.js.map +1 -0
  14. package/lib/commonjs/components/alert-critical-load/interface.js +6 -0
  15. package/lib/commonjs/components/alert-critical-load/interface.js.map +1 -0
  16. package/lib/commonjs/components/alert-critical-load/styles.js +40 -0
  17. package/lib/commonjs/components/alert-critical-load/styles.js.map +1 -0
  18. package/lib/commonjs/components/card-available-load/index.js +131 -0
  19. package/lib/commonjs/components/card-available-load/index.js.map +1 -0
  20. package/lib/commonjs/components/card-available-load/interface.js +6 -0
  21. package/lib/commonjs/components/card-available-load/interface.js.map +1 -0
  22. package/lib/commonjs/components/card-available-load/style.js +54 -0
  23. package/lib/commonjs/components/card-available-load/style.js.map +1 -0
  24. package/lib/commonjs/components/card-driver-data/index.js +105 -0
  25. package/lib/commonjs/components/card-driver-data/index.js.map +1 -0
  26. package/lib/commonjs/components/card-driver-data/interface.js +6 -0
  27. package/lib/commonjs/components/card-driver-data/interface.js.map +1 -0
  28. package/lib/commonjs/components/card-driver-data/style.js +55 -0
  29. package/lib/commonjs/components/card-driver-data/style.js.map +1 -0
  30. package/lib/commonjs/components/card-loading/index.js +9 -9
  31. package/lib/commonjs/components/card-loading/index.js.map +1 -1
  32. package/lib/commonjs/components/card-loading/interface.d.js.map +1 -1
  33. package/lib/commonjs/components/document-carga-info/index.js +98 -0
  34. package/lib/commonjs/components/document-carga-info/index.js.map +1 -0
  35. package/lib/commonjs/components/document-carga-info/interface.js +2 -0
  36. package/lib/commonjs/components/document-carga-info/interface.js.map +1 -0
  37. package/lib/commonjs/components/document-carga-info/styles.js +64 -0
  38. package/lib/commonjs/components/document-carga-info/styles.js.map +1 -0
  39. package/lib/commonjs/components/driver-journey-info/index.js +141 -0
  40. package/lib/commonjs/components/driver-journey-info/index.js.map +1 -0
  41. package/lib/commonjs/components/driver-journey-info/interface.js +6 -0
  42. package/lib/commonjs/components/driver-journey-info/interface.js.map +1 -0
  43. package/lib/commonjs/components/driver-journey-info/style.js +55 -0
  44. package/lib/commonjs/components/driver-journey-info/style.js.map +1 -0
  45. package/lib/commonjs/index.js +42 -0
  46. package/lib/commonjs/index.js.map +1 -1
  47. package/lib/commonjs/stories/active-loadings-summary/active-loadings-summary.stories.js +63 -0
  48. package/lib/commonjs/stories/active-loadings-summary/active-loadings-summary.stories.js.map +1 -0
  49. package/lib/commonjs/stories/alert-critical-load/alert-critical-load.stories.js +58 -0
  50. package/lib/commonjs/stories/alert-critical-load/alert-critical-load.stories.js.map +1 -0
  51. package/lib/commonjs/stories/card-available-load/card-available-load.stories.js +94 -0
  52. package/lib/commonjs/stories/card-available-load/card-available-load.stories.js.map +1 -0
  53. package/lib/commonjs/stories/card-driver-data/card-driver-data.stories.js +81 -0
  54. package/lib/commonjs/stories/card-driver-data/card-driver-data.stories.js.map +1 -0
  55. package/lib/commonjs/stories/document-carga-info/document-carga-info.stories.js +76 -0
  56. package/lib/commonjs/stories/document-carga-info/document-carga-info.stories.js.map +1 -0
  57. package/lib/commonjs/stories/driver-journey-info/driver-journey-info.stories.js +87 -0
  58. package/lib/commonjs/stories/driver-journey-info/driver-journey-info.stories.js.map +1 -0
  59. package/lib/commonjs/styles/theme/theme.js +5 -4
  60. package/lib/commonjs/styles/theme/theme.js.map +1 -1
  61. package/lib/commonjs/utils/status-color/return-color.js +4 -2
  62. package/lib/commonjs/utils/status-color/return-color.js.map +1 -1
  63. package/lib/module/@types/as-base-component.js.map +1 -1
  64. package/lib/module/common/icons-svg/arrow-down/index.js +45 -0
  65. package/lib/module/common/icons-svg/arrow-down/index.js.map +1 -0
  66. package/lib/module/common/icons-svg/constants/index.js +3 -1
  67. package/lib/module/common/icons-svg/constants/index.js.map +1 -1
  68. package/lib/module/common/icons-svg/user-circle/index.js +29 -0
  69. package/lib/module/common/icons-svg/user-circle/index.js.map +1 -0
  70. package/lib/module/components/active-loadings-summary/index.js +81 -0
  71. package/lib/module/components/active-loadings-summary/index.js.map +1 -0
  72. package/lib/module/components/active-loadings-summary/interface.d.js +2 -0
  73. package/lib/module/components/active-loadings-summary/interface.d.js.map +1 -0
  74. package/lib/module/components/alert-critical-load/index.js +63 -0
  75. package/lib/module/components/alert-critical-load/index.js.map +1 -0
  76. package/lib/module/components/alert-critical-load/interface.js +2 -0
  77. package/lib/module/components/alert-critical-load/interface.js.map +1 -0
  78. package/lib/module/components/alert-critical-load/styles.js +34 -0
  79. package/lib/module/components/alert-critical-load/styles.js.map +1 -0
  80. package/lib/module/components/card-available-load/index.js +130 -0
  81. package/lib/module/components/card-available-load/index.js.map +1 -0
  82. package/lib/module/components/card-available-load/interface.js +2 -0
  83. package/lib/module/components/card-available-load/interface.js.map +1 -0
  84. package/lib/module/components/card-available-load/style.js +49 -0
  85. package/lib/module/components/card-available-load/style.js.map +1 -0
  86. package/lib/module/components/card-driver-data/index.js +104 -0
  87. package/lib/module/components/card-driver-data/index.js.map +1 -0
  88. package/lib/module/components/card-driver-data/interface.js +2 -0
  89. package/lib/module/components/card-driver-data/interface.js.map +1 -0
  90. package/lib/module/components/card-driver-data/style.js +50 -0
  91. package/lib/module/components/card-driver-data/style.js.map +1 -0
  92. package/lib/module/components/card-loading/index.js +9 -9
  93. package/lib/module/components/card-loading/index.js.map +1 -1
  94. package/lib/module/components/card-loading/interface.d.js.map +1 -1
  95. package/lib/module/components/document-carga-info/index.js +97 -0
  96. package/lib/module/components/document-carga-info/index.js.map +1 -0
  97. package/lib/module/components/document-carga-info/interface.js +2 -0
  98. package/lib/module/components/document-carga-info/interface.js.map +1 -0
  99. package/lib/module/components/document-carga-info/styles.js +60 -0
  100. package/lib/module/components/document-carga-info/styles.js.map +1 -0
  101. package/lib/module/components/driver-journey-info/index.js +140 -0
  102. package/lib/module/components/driver-journey-info/index.js.map +1 -0
  103. package/lib/module/components/driver-journey-info/interface.js +2 -0
  104. package/lib/module/components/driver-journey-info/interface.js.map +1 -0
  105. package/lib/module/components/driver-journey-info/style.js +50 -0
  106. package/lib/module/components/driver-journey-info/style.js.map +1 -0
  107. package/lib/module/index.js +8 -2
  108. package/lib/module/index.js.map +1 -1
  109. package/lib/module/stories/active-loadings-summary/active-loadings-summary.stories.js +57 -0
  110. package/lib/module/stories/active-loadings-summary/active-loadings-summary.stories.js.map +1 -0
  111. package/lib/module/stories/alert-critical-load/alert-critical-load.stories.js +50 -0
  112. package/lib/module/stories/alert-critical-load/alert-critical-load.stories.js.map +1 -0
  113. package/lib/module/stories/card-available-load/card-available-load.stories.js +86 -0
  114. package/lib/module/stories/card-available-load/card-available-load.stories.js.map +1 -0
  115. package/lib/module/stories/card-driver-data/card-driver-data.stories.js +73 -0
  116. package/lib/module/stories/card-driver-data/card-driver-data.stories.js.map +1 -0
  117. package/lib/module/stories/document-carga-info/document-carga-info.stories.js +68 -0
  118. package/lib/module/stories/document-carga-info/document-carga-info.stories.js.map +1 -0
  119. package/lib/module/stories/driver-journey-info/driver-journey-info.stories.js +79 -0
  120. package/lib/module/stories/driver-journey-info/driver-journey-info.stories.js.map +1 -0
  121. package/lib/module/styles/theme/theme.js +5 -4
  122. package/lib/module/styles/theme/theme.js.map +1 -1
  123. package/lib/module/utils/status-color/return-color.js +4 -2
  124. package/lib/module/utils/status-color/return-color.js.map +1 -1
  125. package/lib/typescript/src/common/icons-svg/arrow-down/index.d.ts +10 -0
  126. package/lib/typescript/src/common/icons-svg/constants/index.d.ts +2 -0
  127. package/lib/typescript/src/common/icons-svg/user-circle/index.d.ts +10 -0
  128. package/lib/typescript/src/components/active-loadings-summary/index.d.ts +10 -0
  129. package/lib/typescript/src/components/alert-critical-load/index.d.ts +11 -0
  130. package/lib/typescript/src/components/alert-critical-load/interface.d.ts +9 -0
  131. package/lib/typescript/src/components/alert-critical-load/styles.d.ts +28 -0
  132. package/lib/typescript/src/components/card-available-load/index.d.ts +11 -0
  133. package/lib/typescript/src/components/card-available-load/interface.d.ts +30 -0
  134. package/lib/typescript/src/components/card-available-load/style.d.ts +8 -0
  135. package/lib/typescript/src/components/card-driver-data/index.d.ts +11 -0
  136. package/lib/typescript/src/components/card-driver-data/interface.d.ts +27 -0
  137. package/lib/typescript/src/components/card-driver-data/style.d.ts +8 -0
  138. package/lib/typescript/src/components/document-carga-info/index.d.ts +11 -0
  139. package/lib/typescript/src/components/document-carga-info/interface.d.ts +15 -0
  140. package/lib/typescript/src/components/document-carga-info/styles.d.ts +50 -0
  141. package/lib/typescript/src/components/driver-journey-info/index.d.ts +11 -0
  142. package/lib/typescript/src/components/driver-journey-info/interface.d.ts +28 -0
  143. package/lib/typescript/src/components/driver-journey-info/style.d.ts +8 -0
  144. package/lib/typescript/src/components/selects/select-date-and-hours/index.d.ts +1 -1
  145. package/lib/typescript/src/index.d.ts +6 -0
  146. package/lib/typescript/src/stories/active-loadings-summary/active-loadings-summary.stories.d.ts +8 -0
  147. package/lib/typescript/src/stories/alert-critical-load/alert-critical-load.stories.d.ts +9 -0
  148. package/lib/typescript/src/stories/card-available-load/card-available-load.stories.d.ts +10 -0
  149. package/lib/typescript/src/stories/card-driver-data/card-driver-data.stories.d.ts +10 -0
  150. package/lib/typescript/src/stories/document-carga-info/document-carga-info.stories.d.ts +10 -0
  151. package/lib/typescript/src/stories/driver-journey-info/driver-journey-info.stories.d.ts +10 -0
  152. package/lib/typescript/src/styles/global/theme-provider.d.ts +1 -0
  153. package/lib/typescript/src/styles/theme/theme.d.ts +1 -0
  154. package/lib/typescript/src/utils/status-color/return-color.d.ts +1 -1
  155. package/package.json +1 -1
  156. package/src/@types/as-base-component.ts +9 -9
  157. package/src/common/icons-svg/arrow-down/index.tsx +44 -0
  158. package/src/common/icons-svg/constants/index.ts +2 -0
  159. package/src/common/icons-svg/user-circle/index.tsx +29 -0
  160. package/src/components/active-loadings-summary/index.tsx +69 -0
  161. package/src/components/active-loadings-summary/interface.d.ts +16 -0
  162. package/src/components/alert-critical-load/index.tsx +83 -0
  163. package/src/components/alert-critical-load/interface.ts +13 -0
  164. package/src/components/alert-critical-load/styles.ts +35 -0
  165. package/src/components/card-available-load/index.tsx +163 -0
  166. package/src/components/card-available-load/interface.ts +36 -0
  167. package/src/components/card-available-load/style.ts +51 -0
  168. package/src/components/card-driver-data/index.tsx +139 -0
  169. package/src/components/card-driver-data/interface.ts +33 -0
  170. package/src/components/card-driver-data/style.ts +55 -0
  171. package/src/components/card-loading/index.tsx +276 -294
  172. package/src/components/card-loading/interface.d.ts +37 -37
  173. package/src/components/document-carga-info/index.tsx +137 -0
  174. package/src/components/document-carga-info/interface.ts +19 -0
  175. package/src/components/document-carga-info/styles.ts +65 -0
  176. package/src/components/driver-journey-info/index.tsx +185 -0
  177. package/src/components/driver-journey-info/interface.ts +36 -0
  178. package/src/components/driver-journey-info/style.ts +55 -0
  179. package/src/index.ts +56 -50
  180. package/src/stories/active-loadings-summary/active-loadings-summary.stories.tsx +59 -0
  181. package/src/stories/alert-critical-load/alert-critical-load.stories.tsx +51 -0
  182. package/src/stories/card-available-load/card-available-load.stories.tsx +85 -0
  183. package/src/stories/card-driver-data/card-driver-data.stories.tsx +73 -0
  184. package/src/stories/document-carga-info/document-carga-info.stories.tsx +72 -0
  185. package/src/stories/driver-journey-info/driver-journey-info.stories.tsx +79 -0
  186. package/src/styles/theme/theme.ts +192 -191
  187. package/src/utils/status-color/return-color.ts +3 -1
@@ -0,0 +1,28 @@
1
+ declare const styles: {
2
+ container: {
3
+ borderWidth: number;
4
+ borderRadius: number;
5
+ padding: number;
6
+ };
7
+ header: {
8
+ flexDirection: "row";
9
+ alignItems: "center";
10
+ justifyContent: "space-between";
11
+ };
12
+ content: {
13
+ flexDirection: "row";
14
+ alignItems: "center";
15
+ gap: number;
16
+ flex: number;
17
+ };
18
+ text: {
19
+ flex: number;
20
+ };
21
+ arrow: {
22
+ marginLeft: number;
23
+ };
24
+ };
25
+ /**
26
+ * EXPORTS
27
+ */
28
+ export { styles };
@@ -0,0 +1,11 @@
1
+ /**
2
+ * IMPORTS
3
+ */
4
+ import React from "react";
5
+ import { View } from "react-native";
6
+ import { ICardAvailableLoad } from "./interface";
7
+ /**
8
+ * EXPORTS
9
+ */
10
+ declare const _default: React.ComponentType<ICardAvailableLoad & React.RefAttributes<View>>;
11
+ export default _default;
@@ -0,0 +1,30 @@
1
+ /**
2
+ * IMPORTS
3
+ */
4
+ import { TextStyle, ViewStyle } from "react-native";
5
+ /**
6
+ * STYLES
7
+ */
8
+ interface IStyles {
9
+ container: (bg?: string) => ViewStyle;
10
+ header: ViewStyle;
11
+ arrow: ViewStyle;
12
+ textSpacing: TextStyle;
13
+ buttonText: TextStyle;
14
+ }
15
+ interface ICardAvailableLoad {
16
+ isOpen?: boolean;
17
+ onPress: () => void;
18
+ backgroundColor?: string;
19
+ carregamento: {
20
+ numero_carregamento: string;
21
+ local: string;
22
+ previsao_carregamento: string;
23
+ qtd_bobinas: number;
24
+ peso_total_kg: number;
25
+ };
26
+ }
27
+ /**
28
+ * EXPORT
29
+ */
30
+ export type { ICardAvailableLoad, IStyles };
@@ -0,0 +1,8 @@
1
+ /**
2
+ * IMPORTS
3
+ */
4
+ declare const styles: any;
5
+ /**
6
+ * EXPORTS
7
+ */
8
+ export { styles };
@@ -0,0 +1,11 @@
1
+ /**
2
+ * IMPORTS
3
+ */
4
+ import React from "react";
5
+ import { View } from "react-native";
6
+ import { IDriverJourneyInfo } from "./interface";
7
+ /**
8
+ * EXPORTS
9
+ */
10
+ declare const _default: React.ComponentType<IDriverJourneyInfo & React.RefAttributes<View>>;
11
+ export default _default;
@@ -0,0 +1,27 @@
1
+ /**
2
+ * IMPORTS
3
+ */
4
+ import { TextStyle, ViewStyle } from "react-native";
5
+ /**
6
+ * STYLES
7
+ */
8
+ interface IStyles {
9
+ container: (bg?: string) => ViewStyle;
10
+ header: ViewStyle;
11
+ arrow: ViewStyle;
12
+ textSpacing: TextStyle;
13
+ buttonText: TextStyle;
14
+ }
15
+ interface IDriverJourneyInfo {
16
+ isOpen?: boolean;
17
+ onPress: () => void;
18
+ backgroundColor?: string;
19
+ veiculo: {
20
+ placa: string;
21
+ tipo: string;
22
+ };
23
+ }
24
+ /**
25
+ * EXPORT
26
+ */
27
+ export type { IDriverJourneyInfo, IStyles };
@@ -0,0 +1,8 @@
1
+ /**
2
+ * IMPORTS
3
+ */
4
+ declare const styles: any;
5
+ /**
6
+ * EXPORTS
7
+ */
8
+ export { styles };
@@ -0,0 +1,11 @@
1
+ /**
2
+ * IMPORTS
3
+ */
4
+ import React from "react";
5
+ import { View } from "react-native";
6
+ import { IDocumentCargaInfo } from "./interface";
7
+ /**
8
+ * EXPORTS
9
+ */
10
+ declare const _default: React.ComponentType<IDocumentCargaInfo & React.RefAttributes<View>>;
11
+ export default _default;
@@ -0,0 +1,15 @@
1
+ /**
2
+ * IMPORTS
3
+ */
4
+ declare type IDocumentCargaInfo = {
5
+ isAlert: boolean;
6
+ title: string | undefined;
7
+ numberDocument: string;
8
+ errorMessage?: string | null;
9
+ linkDocument?: string | null;
10
+ handleToggle: () => void;
11
+ };
12
+ /**
13
+ * EXPORT
14
+ */
15
+ export type { IDocumentCargaInfo };
@@ -0,0 +1,50 @@
1
+ /**
2
+ * IMPORTS
3
+ */
4
+ declare const styles: {
5
+ container: {
6
+ width: "100%";
7
+ padding: number;
8
+ backgroundColor: string;
9
+ borderRadius: number;
10
+ };
11
+ header: {
12
+ flexDirection: "row";
13
+ alignItems: "center";
14
+ justifyContent: "space-between";
15
+ marginBottom: number;
16
+ };
17
+ left: {
18
+ flexDirection: "row";
19
+ alignItems: "center";
20
+ };
21
+ alert: {
22
+ color: string;
23
+ marginTop: number;
24
+ marginBottom: number;
25
+ fontSize: number;
26
+ };
27
+ button: {
28
+ width: "100%";
29
+ height: number;
30
+ backgroundColor: string;
31
+ borderRadius: number;
32
+ alignItems: "center";
33
+ justifyContent: "center";
34
+ };
35
+ arrow: {
36
+ width: number;
37
+ height: number;
38
+ };
39
+ textOption: {
40
+ color: string;
41
+ fontFamily: string;
42
+ fontSize: number;
43
+ marginLeft: number;
44
+ marginTop: number;
45
+ };
46
+ };
47
+ /**
48
+ * EXPORTS
49
+ */
50
+ export { styles };
@@ -0,0 +1,11 @@
1
+ /**
2
+ * IMPORTS
3
+ */
4
+ import React from "react";
5
+ import { View } from "react-native";
6
+ import { IDriverJourneyInfo } from "./interface";
7
+ /**
8
+ * EXPORTS
9
+ */
10
+ declare const _default: React.ComponentType<IDriverJourneyInfo & React.RefAttributes<View>>;
11
+ export default _default;
@@ -0,0 +1,28 @@
1
+ /**
2
+ * IMPORTS
3
+ */
4
+ import { TextStyle, ViewStyle } from "react-native";
5
+ /**
6
+ * STYLES
7
+ */
8
+ interface IStyles {
9
+ container: (bg?: string) => ViewStyle;
10
+ header: ViewStyle;
11
+ arrow: ViewStyle;
12
+ textSpacing: TextStyle;
13
+ buttonText: TextStyle;
14
+ }
15
+ interface IDriverJourneyInfo {
16
+ motorista: {
17
+ nome: string;
18
+ contato: string;
19
+ posicao: string;
20
+ previsao_chegada: string;
21
+ };
22
+ onPress: () => void;
23
+ backgroundColor?: string;
24
+ }
25
+ /**
26
+ * EXPORT
27
+ */
28
+ export type { IDriverJourneyInfo, IStyles };
@@ -0,0 +1,8 @@
1
+ /**
2
+ * IMPORTS
3
+ */
4
+ declare const styles: any;
5
+ /**
6
+ * EXPORTS
7
+ */
8
+ export { styles };
@@ -4,7 +4,7 @@
4
4
  import React from "react";
5
5
  declare const _default: React.ComponentType<import("react-native").TouchableOpacityProps & {
6
6
  value: any;
7
- icon: "CAMERA_PLUS" | "STEERING_WHEEL" | "CHECK_BOX_FILL" | "CHECK_BOX" | "CHECK_BOX_OUTLINE" | "MOON_STARS" | "CALL_BELL" | "STEERING_WHEEL_FILL" | "TROPHY" | "SHOPPING_CART" | "CREDIT_CARD" | "FILE_TEXT" | "TRUCK" | "PACKAGE_CHECK" | "PLUS" | "EYE_SLASH" | "EYE" | "CALENDAR" | "TIMER" | "GEAR" | "CURRENCY" | "GAUGE" | "GAS_PUMP" | "ARROW_LEFT" | "BLUETOOTH" | "BLUETOOTH_CONNECTED" | "LIST" | "WIFI_X" | "WIFI_HIGH" | "NOTE_PINCEL" | "CHECK_CIRCLE" | "ARROW_DROP_DOWN" | "CLOSED" | "LOADING" | "ACTIVITY" | "HISTORY" | "BELL" | "FILES" | "LIFEBUOY" | "RECUSED" | "EXCLAMATION_CIRCLE" | "X_CIRCLE" | "ELLIPSE" | "PENCIL" | "CAR" | "TRUCK_ACTIVITY" | "COFFEE" | "AGENT" | "CHECK_OUTLINE" | "BED" | "REFRESH_CCW_DOT" | "HOURGLASS" | "HOUSE" | "ISLAND" | "EXCLAMATION_TRIANGLE" | "SCALES" | "CARRIER";
7
+ icon: "CAMERA_PLUS" | "STEERING_WHEEL" | "CHECK_BOX_FILL" | "CHECK_BOX" | "CHECK_BOX_OUTLINE" | "MOON_STARS" | "CALL_BELL" | "STEERING_WHEEL_FILL" | "TROPHY" | "SHOPPING_CART" | "CREDIT_CARD" | "FILE_TEXT" | "TRUCK" | "PACKAGE_CHECK" | "PLUS" | "EYE_SLASH" | "EYE" | "CALENDAR" | "TIMER" | "GEAR" | "CURRENCY" | "GAUGE" | "GAS_PUMP" | "ARROW_LEFT" | "BLUETOOTH" | "BLUETOOTH_CONNECTED" | "LIST" | "WIFI_X" | "WIFI_HIGH" | "NOTE_PINCEL" | "CHECK_CIRCLE" | "ARROW_DROP_DOWN" | "CLOSED" | "LOADING" | "ACTIVITY" | "HISTORY" | "BELL" | "FILES" | "LIFEBUOY" | "RECUSED" | "EXCLAMATION_CIRCLE" | "X_CIRCLE" | "ELLIPSE" | "PENCIL" | "CAR" | "TRUCK_ACTIVITY" | "COFFEE" | "AGENT" | "CHECK_OUTLINE" | "BED" | "REFRESH_CCW_DOT" | "HOURGLASS" | "HOUSE" | "ISLAND" | "EXCLAMATION_TRIANGLE" | "SCALES" | "CARRIER" | "USER_CIRCLE" | "WARNING_TRIANGLE";
8
8
  disabled?: boolean | undefined;
9
9
  textColor?: string | undefined;
10
10
  onPressConfirm: (value: any) => void;
@@ -34,11 +34,17 @@ export { ProfileMenuOption } from "./components/profile-menu-option";
34
34
  export { ModalActivities } from "./components/modals/modal-activities";
35
35
  export { HistoryActivitiesCard } from "./components/history-activities-card";
36
36
  export { ModalChangeActivity } from "./components/modals/modal-change-activity";
37
+ export { ActiveLoadingsSummary } from "./components/active-loadings-summary";
37
38
  export { default as ModalActivityReason } from "./components/modals/modal-activity-reason";
38
39
  export { default as InputTextCounter } from "./components/input-text-counter";
39
40
  export { default as ModalCreteActivitie } from "./components/modal-create-activitie";
40
41
  export { default as ModalJourneyRectification } from "./components/modal-journey-rectification";
41
42
  export { default as ActivityTimeline } from "./components/activity-timeline";
43
+ export { default as CardAvailableLoad } from "./components/card-available-load";
44
+ export { default as CardDriverData } from "./components/card-driver-data";
45
+ export { default as DriverJourneyInfo } from "./components/driver-journey-info";
46
+ export { default as DocumentCargaInfo } from "./components/document-carga-info";
47
+ export { default as AlertCriticalLoad } from "./components/alert-critical-load";
42
48
  export { multiply } from "./utils/mutiply";
43
49
  export { formatDate, getLastSevenDays, formHoursMinute } from "./utils/format-data";
44
50
  export { theme } from "./styles/theme/theme";
@@ -0,0 +1,8 @@
1
+ import type { StoryObj, Meta } from "@storybook/react";
2
+ import { ActiveLoadingsSummary } from "../../components/active-loadings-summary";
3
+ declare const meta: Meta<typeof ActiveLoadingsSummary>;
4
+ export default meta;
5
+ declare type Story = StoryObj<typeof meta>;
6
+ export declare const Padrao: Story;
7
+ export declare const ZeroCarregamentos: Story;
8
+ export declare const MuitosCarregamentos: Story;
@@ -0,0 +1,9 @@
1
+ /**
2
+ * IMPORTS
3
+ */
4
+ import type { Meta, StoryObj } from "@storybook/react";
5
+ import AlertCriticalLoad from "../../components/alert-critical-load";
6
+ declare const meta: Meta<typeof AlertCriticalLoad>;
7
+ export default meta;
8
+ declare type Story = StoryObj<typeof meta>;
9
+ export declare const Default: Story;
@@ -0,0 +1,10 @@
1
+ /**
2
+ * IMPORTS
3
+ */
4
+ import type { StoryObj, Meta } from "@storybook/react";
5
+ import CardAvailableLoad from "../../components/card-available-load";
6
+ declare const meta: Meta<typeof CardAvailableLoad>;
7
+ export default meta;
8
+ declare type Story = StoryObj<typeof meta>;
9
+ export declare const CardAvailableLoadOpen: Story;
10
+ export declare const CardAvailableLoadClosed: Story;
@@ -0,0 +1,10 @@
1
+ /**
2
+ * IMPORTS
3
+ */
4
+ import type { StoryObj, Meta } from "@storybook/react";
5
+ import CardDriverData from "../../components/card-driver-data";
6
+ declare const meta: Meta<typeof CardDriverData>;
7
+ export default meta;
8
+ declare type Story = StoryObj<typeof meta>;
9
+ export declare const CardDriverDataOpen: Story;
10
+ export declare const CardDriverDataClosed: Story;
@@ -0,0 +1,10 @@
1
+ /**
2
+ * IMPORTS
3
+ */
4
+ import type { Meta, StoryObj } from "@storybook/react";
5
+ import DocumentCargaInfo from "../../components/document-carga-info";
6
+ declare const meta: Meta<typeof DocumentCargaInfo>;
7
+ export default meta;
8
+ declare type Story = StoryObj<typeof meta>;
9
+ export declare const Default: Story;
10
+ export declare const WithAlert: Story;
@@ -0,0 +1,10 @@
1
+ /**
2
+ * IMPORTS
3
+ */
4
+ import type { StoryObj, Meta } from "@storybook/react";
5
+ import DriverJourneyInfo from "../../components/driver-journey-info";
6
+ declare const meta: Meta<typeof DriverJourneyInfo>;
7
+ export default meta;
8
+ declare type Story = StoryObj<typeof meta>;
9
+ export declare const DriverJourneyInfoOpen: Story;
10
+ export declare const DriverJourneyInfoClosed: Story;
@@ -29,6 +29,7 @@ export declare const useTheme: () => {
29
29
  180: string;
30
30
  };
31
31
  blue: {
32
+ 20: string;
32
33
  25: string;
33
34
  50: string;
34
35
  80: string;
@@ -31,6 +31,7 @@ export declare const theme: {
31
31
  180: string;
32
32
  };
33
33
  blue: {
34
+ 20: string;
34
35
  25: string;
35
36
  50: string;
36
37
  80: string;
@@ -1,4 +1,4 @@
1
- export declare type StatusType = "Andamento" | "Cancelado" | "Pendente" | "Concluido";
1
+ export declare type StatusType = "Andamento" | "Cancelado" | "Pendente" | "Concluido" | "Em_liberacao";
2
2
  declare function getBorderColor(status: string): string;
3
3
  declare function getStatusColor(status: StatusType): string;
4
4
  declare function getStatusTextColor(status: StatusType): string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-exp-fig",
3
- "version": "0.1.41",
3
+ "version": "0.1.43",
4
4
  "description": "Biblioteca para desenvolvimento dos componentes para utilizar nos app da Expresso Figueiredo.",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",
@@ -1,9 +1,9 @@
1
- import type React from "react";
2
-
3
- export function asBaseComponent<P>(
4
- Component: React.ComponentType<P>,
5
- // eslint-disable-next-line no-unused-vars
6
- _options?: P
7
- ): React.ComponentType<P> {
8
- return Component;
9
- }
1
+ import type React from "react";
2
+
3
+ export function asBaseComponent<P>(
4
+ Component: React.ComponentType<P>,
5
+ // eslint-disable-next-line no-unused-vars
6
+ _options?: P
7
+ ): React.ComponentType<P> {
8
+ return Component;
9
+ }
@@ -0,0 +1,44 @@
1
+ /**
2
+ * IMPORTS
3
+ */
4
+ import * as React from "react";
5
+ import Svg, { Path, Mask, G, } from "react-native-svg";
6
+
7
+ // typings
8
+ import { ISvgProps } from "../interface";
9
+
10
+ const SvgIconArrowOpen: React.FC<ISvgProps> = ({ color, size, ...rest }) => (
11
+
12
+ <Svg
13
+ {...rest}
14
+ // @ts-ignore
15
+ xmlns="http://www.w3.org/2000/svg"
16
+ width={size ? size + 4 : "28"}
17
+ height={size ? size : "24"}
18
+ fill="none"
19
+ viewBox={`0 0 ${size ? size + 4 : "28"} ${size ? "24" : "24"}`}
20
+ >
21
+ <Mask
22
+ id="mask0_2217_3487"
23
+ width="28"
24
+ height="24"
25
+ x="0"
26
+ y="0"
27
+ maskUnits="userSpaceOnUse"
28
+ style={{ maskType: "alpha" }}
29
+ >
30
+ <Path fill={color ?? "#fff"} d="M27.805 0v24H0V0z"></Path>
31
+ </Mask>
32
+ <G mask="url(#mask0_2217_3487)">
33
+ <Path
34
+ fill={color ?? "#fff"}
35
+ d="m3.128 16 10.774-9.3L24.677 16l-1.217 1.074-9.558-8.25-9.558 8.25z"
36
+ ></Path>
37
+ </G>
38
+ </Svg>
39
+ );
40
+
41
+ /**
42
+ * EXPORTS
43
+ */
44
+ export { SvgIconArrowOpen };
@@ -60,6 +60,8 @@ const SVG_NAME = {
60
60
  EXCLAMATION_TRIANGLE: "exclamation-triangle",
61
61
  SCALES: "scales",
62
62
  CARRIER: "carrier",
63
+ USER_CIRCLE: "user-circle",
64
+ WARNING_TRIANGLE: "warning-triangle",
63
65
  };
64
66
 
65
67
  /**
@@ -0,0 +1,29 @@
1
+ /**
2
+ * IMPORTS
3
+ */
4
+ import * as React from "react";
5
+ import Svg, { Path } from "react-native-svg";
6
+
7
+ // typings
8
+ import { ISvgProps } from "../interface";
9
+
10
+ const SvgIconUserCircle: React.FC<ISvgProps> = ({ color, size }) => (
11
+ <Svg
12
+ // @ts-ignore
13
+ xmlns="http://www.w3.org/2000/svg"
14
+ width={size ?? "33"}
15
+ height={size ?? "33"}
16
+ fill="none"
17
+ viewBox={`0 0 ${size ?? "33"} ${size ?? "33"}`}
18
+ >
19
+ <Path
20
+ fill={color ?? "#393939"}
21
+ d="M16.25 0A16.25 16.25 0 1 0 32.5 16.25 16.267 16.267 0 0 0 16.25 0m-5 16.25a5 5 0 1 1 10 0 5 5 0 0 1-10 0M25.044 5.688l-4.452 4.453a7.475 7.475 0 0 0-8.684 0L7.456 5.688a13.72 13.72 0 0 1 17.588 0M7.456 26.813l4.452-4.454a7.475 7.475 0 0 0 8.684 0l4.452 4.453a13.724 13.724 0 0 1-17.588 0"
22
+ ></Path>
23
+ </Svg>
24
+ );
25
+
26
+ /**
27
+ * EXPORTS
28
+ */
29
+ export { SvgIconUserCircle };
@@ -0,0 +1,69 @@
1
+ /**
2
+ * IMPORTS
3
+ */
4
+ import React from "react";
5
+
6
+ // components
7
+ import Box from "../box";
8
+ import { Typography } from "../../components/typography";
9
+ import { Button } from "../button";
10
+
11
+
12
+ // styles
13
+ import { theme } from "../../styles/theme/theme";
14
+
15
+ // typing
16
+ import { IActiveLoadingsSummary } from "./interface";
17
+
18
+ /**
19
+ * Componente para ser mosrado na tela Home com a quanttidade de carregamentos iniciados + botão de visualizar todos e acessar a ttela
20
+ */
21
+ const ActiveLoadingsSummary: React.FC<IActiveLoadingsSummary> = ({ count, onPressView }: IActiveLoadingsSummary) => {
22
+ return (
23
+ <Box
24
+ width={"100%"}
25
+ backgroundColor={theme.colors.neutral[25]}
26
+ borderStyled={{
27
+ borderRadius: theme.borderWidths.thick_medium,
28
+ borderWidth: theme.borderWidths.thin,
29
+ borderColor: theme.colors.gray[300],
30
+ }}
31
+ paddingStyle={{ padding: theme.paddings.xs }}
32
+ marginStyle={{ marginBottom: theme.margins.xs }}
33
+ flexStyle={{ flexDirection: "column", alignItems: "flex-start", justifyContent: "flex-start" }}
34
+ >
35
+ <Box width={"100%"} flexStyle={{ alignItems: "center" }}>
36
+ <Typography
37
+ text={`${count} carregamentos iniciados`}
38
+ size={theme.fontSizes.sm}
39
+ fontFamily={theme.fonts.inter_medium_500}
40
+ color={theme.colors.gray[500]}
41
+ align={"center"}
42
+ />
43
+ </Box>
44
+ <Button
45
+ isLoading={false}
46
+ title="Visualizar carregamentos"
47
+ width='100%'
48
+ height={36}
49
+ backgroundColor={theme.colors.blue[500]}
50
+ flexStyle={{ alignItems: "center", justifyContent: "center" }}
51
+ marginStyle={{ marginTop: theme.margins.xs }}
52
+ buttonTextStyle={{
53
+ color: theme.colors.neutral[25],
54
+ fontFamily: theme.fonts.inter_medium_500,
55
+ fontSize: theme.fontSizes.xs,
56
+ textAlign: "center",
57
+ }}
58
+ borderStyled={{
59
+ borderWidth: theme.borderWidths.thin,
60
+ borderColor: theme.colors.blue[500],
61
+ borderRadius: theme.borderWidths.thick_medium,
62
+ }}
63
+ onPress={onPressView}
64
+ />
65
+ </Box>
66
+ );
67
+ };
68
+
69
+ export { ActiveLoadingsSummary };
@@ -0,0 +1,16 @@
1
+ /**
2
+ * IMPORTS
3
+ */
4
+
5
+ interface IActiveLoadingsSummary {
6
+ /**propriedade que indica a quantidade de carregamentos iniciados */
7
+ count: number;
8
+
9
+ /**função que é chamada ao clicar no botão de visualizar carregamentos */
10
+ onPressView: () => void;
11
+ }
12
+
13
+ /**
14
+ * EXPORTS
15
+ */
16
+ export { IActiveLoadingsSummary };