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.
- package/lib/commonjs/@types/as-base-component.js.map +1 -1
- package/lib/commonjs/common/icons-svg/arrow-down/index.js +51 -0
- package/lib/commonjs/common/icons-svg/arrow-down/index.js.map +1 -0
- package/lib/commonjs/common/icons-svg/constants/index.js +3 -1
- package/lib/commonjs/common/icons-svg/constants/index.js.map +1 -1
- package/lib/commonjs/common/icons-svg/user-circle/index.js +37 -0
- package/lib/commonjs/common/icons-svg/user-circle/index.js.map +1 -0
- package/lib/commonjs/components/active-loadings-summary/index.js +88 -0
- package/lib/commonjs/components/active-loadings-summary/index.js.map +1 -0
- package/lib/commonjs/components/active-loadings-summary/interface.d.js +6 -0
- package/lib/commonjs/components/active-loadings-summary/interface.d.js.map +1 -0
- package/lib/commonjs/components/alert-critical-load/index.js +64 -0
- package/lib/commonjs/components/alert-critical-load/index.js.map +1 -0
- package/lib/commonjs/components/alert-critical-load/interface.js +6 -0
- package/lib/commonjs/components/alert-critical-load/interface.js.map +1 -0
- package/lib/commonjs/components/alert-critical-load/styles.js +40 -0
- package/lib/commonjs/components/alert-critical-load/styles.js.map +1 -0
- package/lib/commonjs/components/card-available-load/index.js +131 -0
- package/lib/commonjs/components/card-available-load/index.js.map +1 -0
- package/lib/commonjs/components/card-available-load/interface.js +6 -0
- package/lib/commonjs/components/card-available-load/interface.js.map +1 -0
- package/lib/commonjs/components/card-available-load/style.js +54 -0
- package/lib/commonjs/components/card-available-load/style.js.map +1 -0
- package/lib/commonjs/components/card-driver-data/index.js +105 -0
- package/lib/commonjs/components/card-driver-data/index.js.map +1 -0
- package/lib/commonjs/components/card-driver-data/interface.js +6 -0
- package/lib/commonjs/components/card-driver-data/interface.js.map +1 -0
- package/lib/commonjs/components/card-driver-data/style.js +55 -0
- package/lib/commonjs/components/card-driver-data/style.js.map +1 -0
- package/lib/commonjs/components/card-loading/index.js +9 -9
- package/lib/commonjs/components/card-loading/index.js.map +1 -1
- package/lib/commonjs/components/card-loading/interface.d.js.map +1 -1
- package/lib/commonjs/components/document-carga-info/index.js +98 -0
- package/lib/commonjs/components/document-carga-info/index.js.map +1 -0
- package/lib/commonjs/components/document-carga-info/interface.js +2 -0
- package/lib/commonjs/components/document-carga-info/interface.js.map +1 -0
- package/lib/commonjs/components/document-carga-info/styles.js +64 -0
- package/lib/commonjs/components/document-carga-info/styles.js.map +1 -0
- package/lib/commonjs/components/driver-journey-info/index.js +141 -0
- package/lib/commonjs/components/driver-journey-info/index.js.map +1 -0
- package/lib/commonjs/components/driver-journey-info/interface.js +6 -0
- package/lib/commonjs/components/driver-journey-info/interface.js.map +1 -0
- package/lib/commonjs/components/driver-journey-info/style.js +55 -0
- package/lib/commonjs/components/driver-journey-info/style.js.map +1 -0
- package/lib/commonjs/index.js +42 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/stories/active-loadings-summary/active-loadings-summary.stories.js +63 -0
- package/lib/commonjs/stories/active-loadings-summary/active-loadings-summary.stories.js.map +1 -0
- package/lib/commonjs/stories/alert-critical-load/alert-critical-load.stories.js +58 -0
- package/lib/commonjs/stories/alert-critical-load/alert-critical-load.stories.js.map +1 -0
- package/lib/commonjs/stories/card-available-load/card-available-load.stories.js +94 -0
- package/lib/commonjs/stories/card-available-load/card-available-load.stories.js.map +1 -0
- package/lib/commonjs/stories/card-driver-data/card-driver-data.stories.js +81 -0
- package/lib/commonjs/stories/card-driver-data/card-driver-data.stories.js.map +1 -0
- package/lib/commonjs/stories/document-carga-info/document-carga-info.stories.js +76 -0
- package/lib/commonjs/stories/document-carga-info/document-carga-info.stories.js.map +1 -0
- package/lib/commonjs/stories/driver-journey-info/driver-journey-info.stories.js +87 -0
- package/lib/commonjs/stories/driver-journey-info/driver-journey-info.stories.js.map +1 -0
- package/lib/commonjs/styles/theme/theme.js +5 -4
- package/lib/commonjs/styles/theme/theme.js.map +1 -1
- package/lib/commonjs/utils/status-color/return-color.js +4 -2
- package/lib/commonjs/utils/status-color/return-color.js.map +1 -1
- package/lib/module/@types/as-base-component.js.map +1 -1
- package/lib/module/common/icons-svg/arrow-down/index.js +45 -0
- package/lib/module/common/icons-svg/arrow-down/index.js.map +1 -0
- package/lib/module/common/icons-svg/constants/index.js +3 -1
- package/lib/module/common/icons-svg/constants/index.js.map +1 -1
- package/lib/module/common/icons-svg/user-circle/index.js +29 -0
- package/lib/module/common/icons-svg/user-circle/index.js.map +1 -0
- package/lib/module/components/active-loadings-summary/index.js +81 -0
- package/lib/module/components/active-loadings-summary/index.js.map +1 -0
- package/lib/module/components/active-loadings-summary/interface.d.js +2 -0
- package/lib/module/components/active-loadings-summary/interface.d.js.map +1 -0
- package/lib/module/components/alert-critical-load/index.js +63 -0
- package/lib/module/components/alert-critical-load/index.js.map +1 -0
- package/lib/module/components/alert-critical-load/interface.js +2 -0
- package/lib/module/components/alert-critical-load/interface.js.map +1 -0
- package/lib/module/components/alert-critical-load/styles.js +34 -0
- package/lib/module/components/alert-critical-load/styles.js.map +1 -0
- package/lib/module/components/card-available-load/index.js +130 -0
- package/lib/module/components/card-available-load/index.js.map +1 -0
- package/lib/module/components/card-available-load/interface.js +2 -0
- package/lib/module/components/card-available-load/interface.js.map +1 -0
- package/lib/module/components/card-available-load/style.js +49 -0
- package/lib/module/components/card-available-load/style.js.map +1 -0
- package/lib/module/components/card-driver-data/index.js +104 -0
- package/lib/module/components/card-driver-data/index.js.map +1 -0
- package/lib/module/components/card-driver-data/interface.js +2 -0
- package/lib/module/components/card-driver-data/interface.js.map +1 -0
- package/lib/module/components/card-driver-data/style.js +50 -0
- package/lib/module/components/card-driver-data/style.js.map +1 -0
- package/lib/module/components/card-loading/index.js +9 -9
- package/lib/module/components/card-loading/index.js.map +1 -1
- package/lib/module/components/card-loading/interface.d.js.map +1 -1
- package/lib/module/components/document-carga-info/index.js +97 -0
- package/lib/module/components/document-carga-info/index.js.map +1 -0
- package/lib/module/components/document-carga-info/interface.js +2 -0
- package/lib/module/components/document-carga-info/interface.js.map +1 -0
- package/lib/module/components/document-carga-info/styles.js +60 -0
- package/lib/module/components/document-carga-info/styles.js.map +1 -0
- package/lib/module/components/driver-journey-info/index.js +140 -0
- package/lib/module/components/driver-journey-info/index.js.map +1 -0
- package/lib/module/components/driver-journey-info/interface.js +2 -0
- package/lib/module/components/driver-journey-info/interface.js.map +1 -0
- package/lib/module/components/driver-journey-info/style.js +50 -0
- package/lib/module/components/driver-journey-info/style.js.map +1 -0
- package/lib/module/index.js +8 -2
- package/lib/module/index.js.map +1 -1
- package/lib/module/stories/active-loadings-summary/active-loadings-summary.stories.js +57 -0
- package/lib/module/stories/active-loadings-summary/active-loadings-summary.stories.js.map +1 -0
- package/lib/module/stories/alert-critical-load/alert-critical-load.stories.js +50 -0
- package/lib/module/stories/alert-critical-load/alert-critical-load.stories.js.map +1 -0
- package/lib/module/stories/card-available-load/card-available-load.stories.js +86 -0
- package/lib/module/stories/card-available-load/card-available-load.stories.js.map +1 -0
- package/lib/module/stories/card-driver-data/card-driver-data.stories.js +73 -0
- package/lib/module/stories/card-driver-data/card-driver-data.stories.js.map +1 -0
- package/lib/module/stories/document-carga-info/document-carga-info.stories.js +68 -0
- package/lib/module/stories/document-carga-info/document-carga-info.stories.js.map +1 -0
- package/lib/module/stories/driver-journey-info/driver-journey-info.stories.js +79 -0
- package/lib/module/stories/driver-journey-info/driver-journey-info.stories.js.map +1 -0
- package/lib/module/styles/theme/theme.js +5 -4
- package/lib/module/styles/theme/theme.js.map +1 -1
- package/lib/module/utils/status-color/return-color.js +4 -2
- package/lib/module/utils/status-color/return-color.js.map +1 -1
- package/lib/typescript/src/common/icons-svg/arrow-down/index.d.ts +10 -0
- package/lib/typescript/src/common/icons-svg/constants/index.d.ts +2 -0
- package/lib/typescript/src/common/icons-svg/user-circle/index.d.ts +10 -0
- package/lib/typescript/src/components/active-loadings-summary/index.d.ts +10 -0
- package/lib/typescript/src/components/alert-critical-load/index.d.ts +11 -0
- package/lib/typescript/src/components/alert-critical-load/interface.d.ts +9 -0
- package/lib/typescript/src/components/alert-critical-load/styles.d.ts +28 -0
- package/lib/typescript/src/components/card-available-load/index.d.ts +11 -0
- package/lib/typescript/src/components/card-available-load/interface.d.ts +30 -0
- package/lib/typescript/src/components/card-available-load/style.d.ts +8 -0
- package/lib/typescript/src/components/card-driver-data/index.d.ts +11 -0
- package/lib/typescript/src/components/card-driver-data/interface.d.ts +27 -0
- package/lib/typescript/src/components/card-driver-data/style.d.ts +8 -0
- package/lib/typescript/src/components/document-carga-info/index.d.ts +11 -0
- package/lib/typescript/src/components/document-carga-info/interface.d.ts +15 -0
- package/lib/typescript/src/components/document-carga-info/styles.d.ts +50 -0
- package/lib/typescript/src/components/driver-journey-info/index.d.ts +11 -0
- package/lib/typescript/src/components/driver-journey-info/interface.d.ts +28 -0
- package/lib/typescript/src/components/driver-journey-info/style.d.ts +8 -0
- package/lib/typescript/src/components/selects/select-date-and-hours/index.d.ts +1 -1
- package/lib/typescript/src/index.d.ts +6 -0
- package/lib/typescript/src/stories/active-loadings-summary/active-loadings-summary.stories.d.ts +8 -0
- package/lib/typescript/src/stories/alert-critical-load/alert-critical-load.stories.d.ts +9 -0
- package/lib/typescript/src/stories/card-available-load/card-available-load.stories.d.ts +10 -0
- package/lib/typescript/src/stories/card-driver-data/card-driver-data.stories.d.ts +10 -0
- package/lib/typescript/src/stories/document-carga-info/document-carga-info.stories.d.ts +10 -0
- package/lib/typescript/src/stories/driver-journey-info/driver-journey-info.stories.d.ts +10 -0
- package/lib/typescript/src/styles/global/theme-provider.d.ts +1 -0
- package/lib/typescript/src/styles/theme/theme.d.ts +1 -0
- package/lib/typescript/src/utils/status-color/return-color.d.ts +1 -1
- package/package.json +1 -1
- package/src/@types/as-base-component.ts +9 -9
- package/src/common/icons-svg/arrow-down/index.tsx +44 -0
- package/src/common/icons-svg/constants/index.ts +2 -0
- package/src/common/icons-svg/user-circle/index.tsx +29 -0
- package/src/components/active-loadings-summary/index.tsx +69 -0
- package/src/components/active-loadings-summary/interface.d.ts +16 -0
- package/src/components/alert-critical-load/index.tsx +83 -0
- package/src/components/alert-critical-load/interface.ts +13 -0
- package/src/components/alert-critical-load/styles.ts +35 -0
- package/src/components/card-available-load/index.tsx +163 -0
- package/src/components/card-available-load/interface.ts +36 -0
- package/src/components/card-available-load/style.ts +51 -0
- package/src/components/card-driver-data/index.tsx +139 -0
- package/src/components/card-driver-data/interface.ts +33 -0
- package/src/components/card-driver-data/style.ts +55 -0
- package/src/components/card-loading/index.tsx +276 -294
- package/src/components/card-loading/interface.d.ts +37 -37
- package/src/components/document-carga-info/index.tsx +137 -0
- package/src/components/document-carga-info/interface.ts +19 -0
- package/src/components/document-carga-info/styles.ts +65 -0
- package/src/components/driver-journey-info/index.tsx +185 -0
- package/src/components/driver-journey-info/interface.ts +36 -0
- package/src/components/driver-journey-info/style.ts +55 -0
- package/src/index.ts +56 -50
- package/src/stories/active-loadings-summary/active-loadings-summary.stories.tsx +59 -0
- package/src/stories/alert-critical-load/alert-critical-load.stories.tsx +51 -0
- package/src/stories/card-available-load/card-available-load.stories.tsx +85 -0
- package/src/stories/card-driver-data/card-driver-data.stories.tsx +73 -0
- package/src/stories/document-carga-info/document-carga-info.stories.tsx +72 -0
- package/src/stories/driver-journey-info/driver-journey-info.stories.tsx +79 -0
- package/src/styles/theme/theme.ts +192 -191
- 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,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,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 };
|
|
@@ -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";
|
package/lib/typescript/src/stories/active-loadings-summary/active-loadings-summary.stories.d.ts
ADDED
|
@@ -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;
|
|
@@ -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,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 };
|
|
@@ -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 };
|