react-native-exp-fig 0.1.16 → 0.1.17
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/common/icons-svg/constants/index.js +4 -4
- package/lib/commonjs/common/icons-svg/constants/index.js.map +1 -1
- package/lib/commonjs/common/icons-svg/hourglass/index.js +4 -4
- package/lib/commonjs/common/icons-svg/hourglass/index.js.map +1 -1
- package/lib/commonjs/common/icons-svg/index.js +4 -4
- package/lib/commonjs/common/icons-svg/index.js.map +1 -1
- package/lib/commonjs/common/icons-svg/modal-activities/SvgIconCallBell.js +46 -0
- package/lib/commonjs/common/icons-svg/modal-activities/SvgIconCallBell.js.map +1 -0
- package/lib/commonjs/common/icons-svg/modal-activities/SvgIconCoffee.js +47 -0
- package/lib/commonjs/common/icons-svg/modal-activities/SvgIconCoffee.js.map +1 -0
- package/lib/commonjs/common/icons-svg/modal-activities/SvgIconGear.js +47 -0
- package/lib/commonjs/common/icons-svg/modal-activities/SvgIconGear.js.map +1 -0
- package/lib/commonjs/common/icons-svg/modal-activities/SvgIconHourGlassMedium.js +48 -0
- package/lib/commonjs/common/icons-svg/modal-activities/SvgIconHourGlassMedium.js.map +1 -0
- package/lib/commonjs/common/icons-svg/modal-activities/SvgIconHouse.js +46 -0
- package/lib/commonjs/common/icons-svg/modal-activities/SvgIconHouse.js.map +1 -0
- package/lib/commonjs/common/icons-svg/modal-activities/SvgIconMoonStars.js +48 -0
- package/lib/commonjs/common/icons-svg/modal-activities/SvgIconMoonStars.js.map +1 -0
- package/lib/commonjs/common/icons-svg/modal-activities/SvgIconSteeringWheel.js +54 -0
- package/lib/commonjs/common/icons-svg/modal-activities/SvgIconSteeringWheel.js.map +1 -0
- package/lib/commonjs/common/icons-svg/modal-activities/SvgIconTimer.js +45 -0
- package/lib/commonjs/common/icons-svg/modal-activities/SvgIconTimer.js.map +1 -0
- package/lib/commonjs/common/icons-svg/modal-activities/SvgIconTruck.js +35 -0
- package/lib/commonjs/common/icons-svg/modal-activities/SvgIconTruck.js.map +1 -0
- package/lib/commonjs/common/icons-svg/modal-activities/index.js +80 -0
- package/lib/commonjs/common/icons-svg/modal-activities/index.js.map +1 -0
- package/lib/commonjs/components/history-details/index.js +4 -4
- package/lib/commonjs/components/history-details/index.js.map +1 -1
- package/lib/commonjs/components/modal-activities/data-activities/index.js +62 -0
- package/lib/commonjs/components/modal-activities/data-activities/index.js.map +1 -0
- package/lib/commonjs/components/modal-activities/index.js +30 -38
- package/lib/commonjs/components/modal-activities/index.js.map +1 -1
- package/lib/commonjs/components/modal-activities/interface.d.js.map +1 -1
- package/lib/commonjs/components/notification-loading/index.js +4 -4
- package/lib/commonjs/components/notification-loading/index.js.map +1 -1
- package/lib/commonjs/components/step-indicator/styles.js +4 -4
- package/lib/commonjs/components/step-indicator/styles.js.map +1 -1
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/stories/modal-activities/modal-activities.stories.js +21 -5
- package/lib/commonjs/stories/modal-activities/modal-activities.stories.js.map +1 -1
- package/lib/commonjs/styles/global/interface.d.js.map +1 -1
- package/lib/module/common/icons-svg/constants/index.js +4 -4
- package/lib/module/common/icons-svg/constants/index.js.map +1 -1
- package/lib/module/common/icons-svg/hourglass/index.js +4 -4
- package/lib/module/common/icons-svg/hourglass/index.js.map +1 -1
- package/lib/module/common/icons-svg/index.js +4 -4
- package/lib/module/common/icons-svg/index.js.map +1 -1
- package/lib/module/common/icons-svg/modal-activities/SvgIconCallBell.js +37 -0
- package/lib/module/common/icons-svg/modal-activities/SvgIconCallBell.js.map +1 -0
- package/lib/module/common/icons-svg/modal-activities/SvgIconCoffee.js +38 -0
- package/lib/module/common/icons-svg/modal-activities/SvgIconCoffee.js.map +1 -0
- package/lib/module/common/icons-svg/modal-activities/SvgIconGear.js +38 -0
- package/lib/module/common/icons-svg/modal-activities/SvgIconGear.js.map +1 -0
- package/lib/module/common/icons-svg/modal-activities/SvgIconHourGlassMedium.js +39 -0
- package/lib/module/common/icons-svg/modal-activities/SvgIconHourGlassMedium.js.map +1 -0
- package/lib/module/common/icons-svg/modal-activities/SvgIconHouse.js +37 -0
- package/lib/module/common/icons-svg/modal-activities/SvgIconHouse.js.map +1 -0
- package/lib/module/common/icons-svg/modal-activities/SvgIconMoonStars.js +40 -0
- package/lib/module/common/icons-svg/modal-activities/SvgIconMoonStars.js.map +1 -0
- package/lib/module/common/icons-svg/modal-activities/SvgIconSteeringWheel.js +45 -0
- package/lib/module/common/icons-svg/modal-activities/SvgIconSteeringWheel.js.map +1 -0
- package/lib/module/common/icons-svg/modal-activities/SvgIconTimer.js +36 -0
- package/lib/module/common/icons-svg/modal-activities/SvgIconTimer.js.map +1 -0
- package/lib/module/common/icons-svg/modal-activities/SvgIconTruck.js +26 -0
- package/lib/module/common/icons-svg/modal-activities/SvgIconTruck.js.map +1 -0
- package/lib/module/common/icons-svg/modal-activities/index.js +75 -0
- package/lib/module/common/icons-svg/modal-activities/index.js.map +1 -0
- package/lib/module/components/history-details/index.js +4 -4
- package/lib/module/components/history-details/index.js.map +1 -1
- package/lib/module/components/modal-activities/data-activities/index.js +56 -0
- package/lib/module/components/modal-activities/data-activities/index.js.map +1 -0
- package/lib/module/components/modal-activities/index.js +29 -38
- package/lib/module/components/modal-activities/index.js.map +1 -1
- package/lib/module/components/modal-activities/interface.d.js.map +1 -1
- package/lib/module/components/notification-loading/index.js +4 -4
- package/lib/module/components/notification-loading/index.js.map +1 -1
- package/lib/module/components/step-indicator/styles.js +4 -4
- package/lib/module/components/step-indicator/styles.js.map +1 -1
- package/lib/module/index.js +2 -2
- package/lib/module/index.js.map +1 -1
- package/lib/module/stories/modal-activities/modal-activities.stories.js +20 -4
- package/lib/module/stories/modal-activities/modal-activities.stories.js.map +1 -1
- package/lib/module/styles/global/interface.d.js.map +1 -1
- package/lib/typescript/src/common/icons-svg/modal-activities/SvgIconCallBell.d.ts +10 -0
- package/lib/typescript/src/common/icons-svg/modal-activities/SvgIconCoffee.d.ts +10 -0
- package/lib/typescript/src/common/icons-svg/modal-activities/SvgIconGear.d.ts +10 -0
- package/lib/typescript/src/common/icons-svg/modal-activities/SvgIconHourGlassMedium.d.ts +10 -0
- package/lib/typescript/src/common/icons-svg/modal-activities/SvgIconHouse.d.ts +10 -0
- package/lib/typescript/src/common/icons-svg/modal-activities/SvgIconMoonStars.d.ts +10 -0
- package/lib/typescript/src/common/icons-svg/modal-activities/SvgIconSteeringWheel.d.ts +10 -0
- package/lib/typescript/src/common/icons-svg/modal-activities/SvgIconTimer.d.ts +10 -0
- package/lib/typescript/src/common/icons-svg/modal-activities/SvgIconTruck.d.ts +10 -0
- package/lib/typescript/src/common/icons-svg/modal-activities/index.d.ts +23 -0
- package/lib/typescript/src/components/modal-activities/data-activities/index.d.ts +19 -0
- package/lib/typescript/src/stories/modal-activities/modal-activities.stories.d.ts +2 -1
- package/package.json +221 -221
- package/src/common/icons-svg/constants/index.ts +64 -64
- package/src/common/icons-svg/hourglass/index.tsx +28 -28
- package/src/common/icons-svg/index.tsx +259 -259
- package/src/common/icons-svg/modal-activities/SvgIconCallBell.tsx +37 -0
- package/src/common/icons-svg/modal-activities/SvgIconCoffee.tsx +38 -0
- package/src/common/icons-svg/modal-activities/SvgIconGear.tsx +38 -0
- package/src/common/icons-svg/modal-activities/SvgIconHourGlassMedium.tsx +38 -0
- package/src/common/icons-svg/modal-activities/SvgIconHouse.tsx +37 -0
- package/src/common/icons-svg/modal-activities/SvgIconMoonStars.tsx +39 -0
- package/src/common/icons-svg/modal-activities/SvgIconSteeringWheel.tsx +48 -0
- package/src/common/icons-svg/modal-activities/SvgIconTimer.tsx +37 -0
- package/src/common/icons-svg/modal-activities/SvgIconTruck.tsx +28 -0
- package/src/common/icons-svg/modal-activities/index.tsx +53 -0
- package/src/components/button/styles.ts +34 -34
- package/src/components/card-history/index.tsx +211 -211
- package/src/components/card-history/interface.d.ts +34 -34
- package/src/components/card-loading/index.tsx +290 -290
- package/src/components/history-details/index.tsx +99 -99
- package/src/components/image-capture-with-remove/index.tsx +92 -92
- package/src/components/image-capture-with-remove/interface.d.ts +28 -28
- package/src/components/loading-progress/index.tsx +93 -93
- package/src/components/modal-activities/data-activities/index.ts +65 -0
- package/src/components/modal-activities/index.tsx +137 -139
- package/src/components/modal-activities/interface.d.ts +32 -21
- package/src/components/notification-loading/index.tsx +162 -162
- package/src/components/step-indicator/styles.ts +68 -68
- package/src/index.ts +43 -43
- package/src/stories/card-history/card-history.stories.tsx +50 -50
- package/src/stories/modal-activities/modal-activities.stories.tsx +64 -46
- package/src/styles/global/interface.d.ts +146 -146
- package/src/styles/theme/theme.ts +171 -171
- package/src/utils/status-color/return-color.ts +34 -34
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* IMPORTS
|
|
3
|
+
*/
|
|
4
|
+
import * as React from "react";
|
|
5
|
+
import Svg, { G, Path, Defs, ClipPath } from "react-native-svg";
|
|
6
|
+
import { ISvgProps } from "../interface";
|
|
7
|
+
|
|
8
|
+
const SvgIconHourGlassMedium: React.FC<Omit<ISvgProps, "icon">> = ({ color, size }) => (
|
|
9
|
+
<Svg
|
|
10
|
+
//@ts-ignore
|
|
11
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
12
|
+
width={size ?? 24}
|
|
13
|
+
height={size ?? 24}
|
|
14
|
+
fill="none"
|
|
15
|
+
viewBox={`0 0 ${size ?? 24} ${size ?? 24}`}
|
|
16
|
+
>
|
|
17
|
+
<G
|
|
18
|
+
stroke={color ?? "#050022"}
|
|
19
|
+
strokeLinecap="round"
|
|
20
|
+
strokeLinejoin="round"
|
|
21
|
+
strokeWidth="2"
|
|
22
|
+
clipPath="url(#clip0_hourglass)"
|
|
23
|
+
>
|
|
24
|
+
<Path d="M12.359 12.517l-5.7-4.275a.75.75 0 01-.3-.6V4.267a.75.75 0 01.75-.75h10.5a.75.75 0 01.75.75V7.61a.75.75 0 01-.298.596l-5.702 4.312z" />
|
|
25
|
+
<Path d="M12.359 12.517l-5.7 4.275a.75.75 0 00-.3.6v3.375a.75.75 0 00.75.75h10.5a.75.75 0 00.75-.75v-3.34a.75.75 0 00-.298-.599l-5.702-4.31zM12.359 16.267v-3.75M7.36 8.767h9.96" />
|
|
26
|
+
</G>
|
|
27
|
+
<Defs>
|
|
28
|
+
<ClipPath id="clip0_hourglass">
|
|
29
|
+
<Path fill={color ?? "#fff"} d="M0 0H24V24H0z" transform="translate(.359 .517)" />
|
|
30
|
+
</ClipPath>
|
|
31
|
+
</Defs>
|
|
32
|
+
</Svg>
|
|
33
|
+
);
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* EXPORTS
|
|
37
|
+
*/
|
|
38
|
+
export { SvgIconHourGlassMedium };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* IMPORTS
|
|
3
|
+
*/
|
|
4
|
+
import * as React from "react";
|
|
5
|
+
import Svg, { Path, Defs, G, ClipPath } from "react-native-svg";
|
|
6
|
+
import { ISvgProps } from "../interface";
|
|
7
|
+
|
|
8
|
+
const SvgIconHouse: React.FC<Omit<ISvgProps, "icon">> = ({ color, size }) => (
|
|
9
|
+
<Svg
|
|
10
|
+
//@ts-ignore
|
|
11
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
12
|
+
width={size ?? 24}
|
|
13
|
+
height={size ?? 24}
|
|
14
|
+
fill="none"
|
|
15
|
+
viewBox="0 0 25 25"
|
|
16
|
+
>
|
|
17
|
+
<G clipPath="url(#clip0_house)">
|
|
18
|
+
<Path
|
|
19
|
+
stroke={color ?? "#050022"}
|
|
20
|
+
strokeLinecap="round"
|
|
21
|
+
strokeLinejoin="round"
|
|
22
|
+
strokeWidth="2"
|
|
23
|
+
d="M14.75 20v-4.5a.75.75 0 00-.75-.75h-3a.75.75 0 00-.75.75V20a.75.75 0 01-.75.75H5a.75.75 0 01-.75-.75v-8.668a.75.75 0 01.246-.555l7.5-7.082a.75.75 0 011.01 0l7.5 7.082a.75.75 0 01.245.555V20a.75.75 0 01-.75.75H15.5a.75.75 0 01-.75-.75z"
|
|
24
|
+
/>
|
|
25
|
+
</G>
|
|
26
|
+
<Defs>
|
|
27
|
+
<ClipPath id="clip0_house">
|
|
28
|
+
<Path fill={color ?? "#fff"} d="M0 0H24V24H0z" transform="translate(.5 .5)" />
|
|
29
|
+
</ClipPath>
|
|
30
|
+
</Defs>
|
|
31
|
+
</Svg>
|
|
32
|
+
);
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* EXPORTS
|
|
36
|
+
*/
|
|
37
|
+
export { SvgIconHouse };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* IMPORTS
|
|
3
|
+
*/
|
|
4
|
+
import * as React from "react";
|
|
5
|
+
import Svg, { G, Path, Defs, ClipPath } from "react-native-svg";
|
|
6
|
+
|
|
7
|
+
//typings
|
|
8
|
+
import { ISvgProps } from "../interface";
|
|
9
|
+
|
|
10
|
+
const SvgIconMoonStars: React.FC<Omit<ISvgProps, "icon">> = ({ color, size }) => (
|
|
11
|
+
<Svg
|
|
12
|
+
// @ts-ignore
|
|
13
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
14
|
+
width={size ?? 24}
|
|
15
|
+
height={size ?? 24}
|
|
16
|
+
fill="none"
|
|
17
|
+
viewBox={`0 0 ${size ?? 24} ${size ?? 24}`}
|
|
18
|
+
>
|
|
19
|
+
<G
|
|
20
|
+
stroke={color ?? "#050022"}
|
|
21
|
+
strokeLinecap="round"
|
|
22
|
+
strokeLinejoin="round"
|
|
23
|
+
strokeWidth="2"
|
|
24
|
+
clipPath="url(#clip0_moonstars)"
|
|
25
|
+
>
|
|
26
|
+
<Path d="M19.859 11.767v-4.5M22.109 9.517h-4.5M15.359 3.517v3M16.859 5.017h-3M20.111 15.347A9.008 9.008 0 019.529 4.765a8.25 8.25 0 1010.582 10.582z" />
|
|
27
|
+
</G>
|
|
28
|
+
<Defs>
|
|
29
|
+
<ClipPath id="clip0_moonstars">
|
|
30
|
+
<Path fill={color ?? "#fff"} d="M0 0H24V24H0z" transform="translate(.359 .517)" />
|
|
31
|
+
</ClipPath>
|
|
32
|
+
</Defs>
|
|
33
|
+
</Svg>
|
|
34
|
+
);
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* EXPORTS
|
|
38
|
+
*/
|
|
39
|
+
export { SvgIconMoonStars };
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* IMPORTS
|
|
3
|
+
*/
|
|
4
|
+
import * as React from "react";
|
|
5
|
+
import Svg, { Path, Defs, G, ClipPath } from "react-native-svg";
|
|
6
|
+
import { ISvgProps } from "../interface";
|
|
7
|
+
|
|
8
|
+
const SvgIconSteeringWheel: React.FC<Omit<ISvgProps, "icon">> = ({ color, size }) => (
|
|
9
|
+
<Svg
|
|
10
|
+
//@ts-ignore
|
|
11
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
12
|
+
width={size ?? 24}
|
|
13
|
+
height={size ?? 24}
|
|
14
|
+
fill="none"
|
|
15
|
+
viewBox={`0 0 ${size ?? 24} ${size ?? 24}`}
|
|
16
|
+
>
|
|
17
|
+
<G clipPath="url(#clip0_steeringwheel)">
|
|
18
|
+
<Path
|
|
19
|
+
fill={color ?? "#050022"}
|
|
20
|
+
d="M12.455 14.254a.938.938 0 1 0 0-1.875.938.938 0 0 0 0 1.875Z"
|
|
21
|
+
/>
|
|
22
|
+
<Path
|
|
23
|
+
stroke={color ?? "#050022"}
|
|
24
|
+
strokeLinecap="round"
|
|
25
|
+
strokeLinejoin="round"
|
|
26
|
+
strokeWidth={1.5}
|
|
27
|
+
d="M12.455 21.192a9 9 0 1 0 0-18 9 9 0 0 0 0 18Z"
|
|
28
|
+
/>
|
|
29
|
+
<Path
|
|
30
|
+
stroke={color ?? "#050022"}
|
|
31
|
+
strokeLinecap="round"
|
|
32
|
+
strokeLinejoin="round"
|
|
33
|
+
strokeWidth={1.5}
|
|
34
|
+
d="M3.605 13.837a12 12 0 0 1 17.7 0M11.687 21.159l-2.05-5.48a.75.75 0 0 0-.702-.487H3.966M13.22 21.16l2.052-5.482a.75.75 0 0 1 .704-.486h4.968"
|
|
35
|
+
/>
|
|
36
|
+
</G>
|
|
37
|
+
<Defs>
|
|
38
|
+
<ClipPath id="clip0_steeringwheel">
|
|
39
|
+
<Path fill={color ?? "#fff"} d="M.455.192h24v24h-24z" />
|
|
40
|
+
</ClipPath>
|
|
41
|
+
</Defs>
|
|
42
|
+
</Svg>
|
|
43
|
+
);
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* EXPORTS
|
|
47
|
+
*/
|
|
48
|
+
export { SvgIconSteeringWheel };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* IMPORTS
|
|
3
|
+
*/
|
|
4
|
+
import * as React from "react";
|
|
5
|
+
import Svg, { Path, Defs, G, ClipPath } from "react-native-svg";
|
|
6
|
+
import { ISvgProps } from "../interface";
|
|
7
|
+
|
|
8
|
+
const SvgIconTimer: React.FC<Omit<ISvgProps, "icon">> = ({ color, size }) => (
|
|
9
|
+
<Svg
|
|
10
|
+
//@ts-ignore
|
|
11
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
12
|
+
width={size ?? 24}
|
|
13
|
+
height={size ?? 24}
|
|
14
|
+
fill="none"
|
|
15
|
+
viewBox="0 0 24 24"
|
|
16
|
+
>
|
|
17
|
+
<G
|
|
18
|
+
stroke={color ?? "#050022"}
|
|
19
|
+
strokeLinecap="round"
|
|
20
|
+
strokeLinejoin="round"
|
|
21
|
+
strokeWidth="2"
|
|
22
|
+
clipPath="url(#clip0_timer)"
|
|
23
|
+
>
|
|
24
|
+
<Path d="M12 21a8.25 8.25 0 100-16.5A8.25 8.25 0 0012 21zM12 12.75L15.75 9M9.75 1.5h4.5" />
|
|
25
|
+
</G>
|
|
26
|
+
<Defs>
|
|
27
|
+
<ClipPath id="clip0_timer">
|
|
28
|
+
<Path fill={color ?? "#fff"} d="M0 0H24V24H0z" />
|
|
29
|
+
</ClipPath>
|
|
30
|
+
</Defs>
|
|
31
|
+
</Svg>
|
|
32
|
+
);
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* EXPORTS
|
|
36
|
+
*/
|
|
37
|
+
export { SvgIconTimer };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* IMPORTS
|
|
3
|
+
*/
|
|
4
|
+
import * as React from "react";
|
|
5
|
+
import Svg, { Path, Defs } from "react-native-svg";
|
|
6
|
+
import { ISvgProps } from "../interface";
|
|
7
|
+
|
|
8
|
+
const SvgIconTruck: React.FC<Omit<ISvgProps, "icon">> = ({ color, size }) => (
|
|
9
|
+
<Svg
|
|
10
|
+
//@ts-ignore
|
|
11
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
12
|
+
width={size ?? 24}
|
|
13
|
+
height={size ?? 22}
|
|
14
|
+
fill="none"
|
|
15
|
+
viewBox={`0 0 ${size ?? 24} ${size ? Math.round((size / 24) * 22) : 22}`}
|
|
16
|
+
>
|
|
17
|
+
<Path
|
|
18
|
+
fill={color ?? "#050022"}
|
|
19
|
+
d="M24.77 14.416h-.626v-4.223c0-.496-.2-.973-.55-1.324L19.69 4.967a1.875 1.875 0 0 0-1.324-.551h-1.723V2.54c0-1.035-.84-1.875-1.875-1.875H2.27C1.234.666.394 1.506.394 2.54v12.5c0 1.035.84 1.875 1.875 1.875h.625a3.751 3.751 0 0 0 7.5 0h5a3.751 3.751 0 0 0 7.5 0h1.875a.627.627 0 0 0 .625-.625v-1.25a.627.627 0 0 0-.625-.625ZM6.643 18.79a1.876 1.876 0 1 1 .001-3.751 1.876 1.876 0 0 1 0 3.75Zm12.5 0a1.875 1.875 0 1 1 .001-3.751 1.875 1.875 0 0 1 0 3.75Zm3.125-8.125h-5.625V6.29h1.723l3.902 3.902v.473Z"
|
|
20
|
+
/>
|
|
21
|
+
<Defs />
|
|
22
|
+
</Svg>
|
|
23
|
+
);
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* EXPORTS
|
|
27
|
+
*/
|
|
28
|
+
export { SvgIconTruck };
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/* eslint-disable no-unused-vars */
|
|
2
|
+
/**
|
|
3
|
+
* Imports
|
|
4
|
+
*/
|
|
5
|
+
import React from "react";
|
|
6
|
+
|
|
7
|
+
// icons
|
|
8
|
+
import { SvgIconCallBell } from "./SvgIconCallBell";
|
|
9
|
+
import { SvgIconCoffee } from "./SvgIconCoffee";
|
|
10
|
+
import { SvgIconGear } from "./SvgIconGear";
|
|
11
|
+
import { SvgIconHourGlassMedium } from "./SvgIconHourGlassMedium";
|
|
12
|
+
import { SvgIconHouse } from "./SvgIconHouse";
|
|
13
|
+
import { SvgIconMoonStars } from "./SvgIconMoonStars";
|
|
14
|
+
import { SvgIconSteeringWheel } from "./SvgIconSteeringWheel";
|
|
15
|
+
import { SvgIconTimer } from "./SvgIconTimer";
|
|
16
|
+
import { SvgIconTruck } from "./SvgIconTruck";
|
|
17
|
+
|
|
18
|
+
/** Enum com os tipos de propriedade */
|
|
19
|
+
export enum PropertyType {
|
|
20
|
+
OPERACAO_VEICULO = "operacao_veiculo",
|
|
21
|
+
MANUTENCAO = "manutencao",
|
|
22
|
+
AGUARDANDO_CARGA = "aguardando_carga",
|
|
23
|
+
DISPOSICAO_VEICULO_PARADO = "disposicao_veiculo_parado",
|
|
24
|
+
AGUARDANDO = "aguardando_descarga",
|
|
25
|
+
DESCANSO = "descanso",
|
|
26
|
+
REPOUSO_SEMANAL = "repouso_semanal",
|
|
27
|
+
REPOUSO_NOTURNO = "repouso_noturno",
|
|
28
|
+
REFEICAO = "refeicao",
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/** Mapeamento entre tipo e função de ícone */
|
|
32
|
+
const propertyTypeIcons: Record<PropertyType, (color?: string) => React.JSX.Element> = {
|
|
33
|
+
[PropertyType.OPERACAO_VEICULO]: (color) => <SvgIconSteeringWheel color={color} />,
|
|
34
|
+
[PropertyType.MANUTENCAO]: (color) => <SvgIconGear color={color} />,
|
|
35
|
+
[PropertyType.AGUARDANDO_CARGA]: (color) => <SvgIconTimer color={color} />,
|
|
36
|
+
[PropertyType.DISPOSICAO_VEICULO_PARADO]: (color) => <SvgIconTruck color={color} />,
|
|
37
|
+
[PropertyType.AGUARDANDO]: (color) => <SvgIconHourGlassMedium color={color} />,
|
|
38
|
+
[PropertyType.DESCANSO]: (color) => <SvgIconCoffee color={color} />,
|
|
39
|
+
[PropertyType.REPOUSO_SEMANAL]: (color) => <SvgIconHouse color={color} />,
|
|
40
|
+
[PropertyType.REPOUSO_NOTURNO]: (color) => <SvgIconMoonStars color={color} />,
|
|
41
|
+
[PropertyType.REFEICAO]: (color) => <SvgIconCallBell color={color} />,
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Função que retorna o ícone com cor aplicada
|
|
46
|
+
* @param propertyType Tipo da propriedade
|
|
47
|
+
* @param color Cor a ser aplicada
|
|
48
|
+
* @returns Ícone com cor aplicada
|
|
49
|
+
*/
|
|
50
|
+
export const getIconModalActivities = (propertyType: string, color?: string): React.JSX.Element =>
|
|
51
|
+
propertyTypeIcons[propertyType as PropertyType]?.(color) ?? (
|
|
52
|
+
<SvgIconSteeringWheel color={color} />
|
|
53
|
+
);
|
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* IMPORTS
|
|
3
|
-
*/
|
|
4
|
-
import { StyleSheet } from "react-native";
|
|
5
|
-
|
|
6
|
-
// typings
|
|
7
|
-
import { type IButtonProps } from "./interface";
|
|
8
|
-
import { IGlobalCss } from "../../styles/global/interface";
|
|
9
|
-
|
|
10
|
-
import { stylesGlobal } from "../../styles/global/styles";
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* Type ButtonProps
|
|
14
|
-
*/
|
|
15
|
-
type ButtonProps = Omit<IButtonProps, "color"> & Omit<IGlobalCss, "color">;
|
|
16
|
-
|
|
17
|
-
const styles = (props: ButtonProps) =>
|
|
18
|
-
StyleSheet.create({
|
|
19
|
-
buttonStyle: { ...stylesGlobal(props), ...props } as IGlobalCss,
|
|
20
|
-
buttonTextStyle: {
|
|
21
|
-
color: props.buttonTextStyle?.color ?? "black",
|
|
22
|
-
fontSize: props.buttonTextStyle?.fontSize ?? 14,
|
|
23
|
-
letterSpacing: props.buttonTextStyle?.letterSpacing ?? 0.5,
|
|
24
|
-
lineHeight: props.buttonTextStyle?.lineHeight ?? 24,
|
|
25
|
-
fontWeight: props.buttonTextStyle?.fontWeight,
|
|
26
|
-
fontFamily: props.buttonTextStyle?.fontFamily ?? "Inter-Medium",
|
|
27
|
-
textAlign: props.buttonTextStyle?.textAlign,
|
|
28
|
-
},
|
|
29
|
-
});
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
* EXPORTS
|
|
33
|
-
*/
|
|
34
|
-
export { styles };
|
|
1
|
+
/**
|
|
2
|
+
* IMPORTS
|
|
3
|
+
*/
|
|
4
|
+
import { StyleSheet } from "react-native";
|
|
5
|
+
|
|
6
|
+
// typings
|
|
7
|
+
import { type IButtonProps } from "./interface";
|
|
8
|
+
import { IGlobalCss } from "../../styles/global/interface";
|
|
9
|
+
|
|
10
|
+
import { stylesGlobal } from "../../styles/global/styles";
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Type ButtonProps
|
|
14
|
+
*/
|
|
15
|
+
type ButtonProps = Omit<IButtonProps, "color"> & Omit<IGlobalCss, "color">;
|
|
16
|
+
|
|
17
|
+
const styles = (props: ButtonProps) =>
|
|
18
|
+
StyleSheet.create({
|
|
19
|
+
buttonStyle: { ...stylesGlobal(props), ...props } as IGlobalCss,
|
|
20
|
+
buttonTextStyle: {
|
|
21
|
+
color: props.buttonTextStyle?.color ?? "black",
|
|
22
|
+
fontSize: props.buttonTextStyle?.fontSize ?? 14,
|
|
23
|
+
letterSpacing: props.buttonTextStyle?.letterSpacing ?? 0.5,
|
|
24
|
+
lineHeight: props.buttonTextStyle?.lineHeight ?? 24,
|
|
25
|
+
fontWeight: props.buttonTextStyle?.fontWeight,
|
|
26
|
+
fontFamily: props.buttonTextStyle?.fontFamily ?? "Inter-Medium",
|
|
27
|
+
textAlign: props.buttonTextStyle?.textAlign,
|
|
28
|
+
},
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* EXPORTS
|
|
33
|
+
*/
|
|
34
|
+
export { styles };
|