react-native-exp-fig 0.1.16 → 0.1.18
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 -2
- 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/house/index.js +49 -0
- package/lib/commonjs/common/icons-svg/house/index.js.map +1 -0
- package/lib/commonjs/common/icons-svg/index.js +22 -8
- package/lib/commonjs/common/icons-svg/index.js.map +1 -1
- package/lib/commonjs/common/icons-svg/island/index.js +34 -0
- package/lib/commonjs/common/icons-svg/island/index.js.map +1 -0
- 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/activities-progress/index.js +16 -14
- package/lib/commonjs/components/activities-progress/index.js.map +1 -1
- package/lib/commonjs/components/activities-progress/interface.d.js.map +1 -1
- package/lib/commonjs/components/card-history/index.js +20 -9
- package/lib/commonjs/components/card-history/index.js.map +1 -1
- package/lib/commonjs/components/card-history/interface.d.js.map +1 -1
- 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/menu-item/interface.d.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/activities-progress/activities-progress.stories.js +24 -14
- package/lib/commonjs/stories/activities-progress/activities-progress.stories.js.map +1 -1
- package/lib/commonjs/stories/card-history/card-history.stories.js +5 -2
- package/lib/commonjs/stories/card-history/card-history.stories.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/commonjs/utils/get-icon-by-property/index.js +85 -0
- package/lib/commonjs/utils/get-icon-by-property/index.js.map +1 -0
- package/lib/module/common/icons-svg/constants/index.js +4 -2
- 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/house/index.js +41 -0
- package/lib/module/common/icons-svg/house/index.js.map +1 -0
- package/lib/module/common/icons-svg/index.js +22 -8
- package/lib/module/common/icons-svg/index.js.map +1 -1
- package/lib/module/common/icons-svg/island/index.js +26 -0
- package/lib/module/common/icons-svg/island/index.js.map +1 -0
- 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/activities-progress/index.js +15 -14
- package/lib/module/components/activities-progress/index.js.map +1 -1
- package/lib/module/components/activities-progress/interface.d.js.map +1 -1
- package/lib/module/components/card-history/index.js +20 -9
- package/lib/module/components/card-history/index.js.map +1 -1
- package/lib/module/components/card-history/interface.d.js.map +1 -1
- 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/menu-item/interface.d.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/activities-progress/activities-progress.stories.js +24 -14
- package/lib/module/stories/activities-progress/activities-progress.stories.js.map +1 -1
- package/lib/module/stories/card-history/card-history.stories.js +5 -2
- package/lib/module/stories/card-history/card-history.stories.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/module/utils/get-icon-by-property/index.js +79 -0
- package/lib/module/utils/get-icon-by-property/index.js.map +1 -0
- package/lib/typescript/src/common/icons-svg/constants/index.d.ts +3 -1
- package/lib/typescript/src/common/icons-svg/house/index.d.ts +10 -0
- package/lib/typescript/src/common/icons-svg/island/index.d.ts +10 -0
- 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/lib/typescript/src/utils/get-icon-by-property/index.d.ts +15 -0
- package/package.json +220 -221
- package/src/common/icons-svg/constants/index.ts +3 -1
- package/src/common/icons-svg/hourglass/index.tsx +28 -28
- package/src/common/icons-svg/house/index.tsx +41 -0
- package/src/common/icons-svg/index.tsx +14 -6
- package/src/common/icons-svg/island/index.tsx +25 -0
- 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/activities-progress/index.tsx +169 -162
- package/src/components/activities-progress/interface.d.ts +61 -41
- package/src/components/button/styles.ts +34 -34
- package/src/components/card-history/index.tsx +28 -18
- package/src/components/card-history/interface.d.ts +5 -1
- 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/menu-item/interface.d.ts +1 -1
- 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/activities-progress/activities-progress.stories.tsx +71 -61
- package/src/stories/card-history/card-history.stories.tsx +3 -0
- 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/get-icon-by-property/index.tsx +53 -0
- package/src/utils/status-color/return-color.ts +34 -34
|
@@ -1,162 +1,162 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* IMPORTS
|
|
3
|
-
*/
|
|
4
|
-
import React from "react";
|
|
5
|
-
import { TouchableOpacity } from "react-native";
|
|
6
|
-
|
|
7
|
-
// components
|
|
8
|
-
import { Box } from "../box";
|
|
9
|
-
import { Typography } from "../typography";
|
|
10
|
-
|
|
11
|
-
// icons
|
|
12
|
-
import { Icons } from "../../common/icons-svg";
|
|
13
|
-
|
|
14
|
-
// theme
|
|
15
|
-
import { theme } from "../../styles/theme/theme";
|
|
16
|
-
|
|
17
|
-
import { INotificationLoading } from "./interface";
|
|
18
|
-
import { getStatusColor, StatusType } from "../../utils/status-color/return-color";
|
|
19
|
-
|
|
20
|
-
const NotificationLoading: React.FC<INotificationLoading> = ({
|
|
21
|
-
handleNavigation,
|
|
22
|
-
title,
|
|
23
|
-
testID,
|
|
24
|
-
statusNotify,
|
|
25
|
-
date,
|
|
26
|
-
notification,
|
|
27
|
-
dataStart,
|
|
28
|
-
style,
|
|
29
|
-
readonly,
|
|
30
|
-
}) => {
|
|
31
|
-
return (
|
|
32
|
-
<TouchableOpacity
|
|
33
|
-
activeOpacity={0.7}
|
|
34
|
-
testID={testID}
|
|
35
|
-
onPress={handleNavigation}
|
|
36
|
-
disabled={readonly}
|
|
37
|
-
>
|
|
38
|
-
<Box
|
|
39
|
-
width={"100%"}
|
|
40
|
-
flexStyle={{ flexDirection: "row", alignItems: "center" }}
|
|
41
|
-
backgroundColor={readonly ? theme.colors.blue[40050] : theme.colors.blue[400]}
|
|
42
|
-
borderStyled={{
|
|
43
|
-
borderWidth: theme.borderWidths.thin,
|
|
44
|
-
borderRadius: theme.borderWidths.thick_medium,
|
|
45
|
-
borderColor: readonly ? theme.colors.blue[40050] : theme.colors.blue[400],
|
|
46
|
-
}}
|
|
47
|
-
paddingStyle={{ padding: theme.paddings["2xs"] }}
|
|
48
|
-
style={style}
|
|
49
|
-
>
|
|
50
|
-
<Box width={"9%"}>
|
|
51
|
-
<Icons icon={"BELL"} size={32} color={theme.colors.neutral[25]} />
|
|
52
|
-
</Box>
|
|
53
|
-
|
|
54
|
-
<Box
|
|
55
|
-
flexStyle={{ flexDirection: "column" }}
|
|
56
|
-
width={"91%"}
|
|
57
|
-
paddingStyle={{ paddingLeft: 7 }}
|
|
58
|
-
>
|
|
59
|
-
{/* Carregamento identificação */}
|
|
60
|
-
<Box flexStyle={{ flexDirection: "row", alignItems: "center" }}>
|
|
61
|
-
<Typography
|
|
62
|
-
text={"Carregamento - "}
|
|
63
|
-
size={theme.fontSizes.sm}
|
|
64
|
-
lineHeight={theme.fontSizes.lg}
|
|
65
|
-
fontFamily={theme.fonts.inter_semi_bold_600}
|
|
66
|
-
fontWeight="600"
|
|
67
|
-
color={theme.colors.neutral[25]}
|
|
68
|
-
letterSpacing={"regular"}
|
|
69
|
-
/>
|
|
70
|
-
<Typography
|
|
71
|
-
text={title}
|
|
72
|
-
size={theme.fontSizes.xs}
|
|
73
|
-
lineHeight={theme.fontSizes.md}
|
|
74
|
-
fontFamily={theme.fonts.inter_bold_700}
|
|
75
|
-
fontWeight="700"
|
|
76
|
-
color={theme.colors.neutral[25]}
|
|
77
|
-
letterSpacing={"regular"}
|
|
78
|
-
/>
|
|
79
|
-
</Box>
|
|
80
|
-
|
|
81
|
-
{/* Data do carregamento */}
|
|
82
|
-
<Box
|
|
83
|
-
flexStyle={{
|
|
84
|
-
flexDirection: "row",
|
|
85
|
-
alignItems: "center",
|
|
86
|
-
justifyContent: "space-between",
|
|
87
|
-
}}
|
|
88
|
-
>
|
|
89
|
-
<Box
|
|
90
|
-
flexStyle={{
|
|
91
|
-
flexDirection: "row",
|
|
92
|
-
alignItems: "center",
|
|
93
|
-
}}
|
|
94
|
-
>
|
|
95
|
-
<Typography
|
|
96
|
-
text={"Data - "}
|
|
97
|
-
size={theme.fontSizes.sm}
|
|
98
|
-
lineHeight={theme.fontSizes.lg ?? 18}
|
|
99
|
-
fontFamily={theme.fonts.inter_medium_500}
|
|
100
|
-
fontWeight="500"
|
|
101
|
-
color={theme.colors.neutral[25]}
|
|
102
|
-
letterSpacing={"regular"}
|
|
103
|
-
/>
|
|
104
|
-
<Typography
|
|
105
|
-
text={String(date)}
|
|
106
|
-
size={theme.fontSizes.sm}
|
|
107
|
-
lineHeight={theme.fontSizes.lg ?? 18}
|
|
108
|
-
fontFamily={theme.fonts.inter_medium_500}
|
|
109
|
-
fontWeight="500"
|
|
110
|
-
color={theme.colors.neutral[25]}
|
|
111
|
-
letterSpacing={"regular"}
|
|
112
|
-
/>
|
|
113
|
-
</Box>
|
|
114
|
-
<Box
|
|
115
|
-
flexStyle={{
|
|
116
|
-
flexDirection: "row",
|
|
117
|
-
alignItems: "center",
|
|
118
|
-
}}
|
|
119
|
-
>
|
|
120
|
-
<Typography
|
|
121
|
-
text={String(dataStart)}
|
|
122
|
-
size={theme.fontSizes["2xs"]}
|
|
123
|
-
fontFamily={theme.fonts.inter_medium_500}
|
|
124
|
-
fontWeight="500"
|
|
125
|
-
lineHeight={theme.fontSizes.sm}
|
|
126
|
-
color={theme.colors.neutral[25]}
|
|
127
|
-
letterSpacing={"regular"}
|
|
128
|
-
marginRight={8}
|
|
129
|
-
/>
|
|
130
|
-
|
|
131
|
-
<Icons
|
|
132
|
-
icon={"ELLIPSE"}
|
|
133
|
-
color={
|
|
134
|
-
readonly ? theme.colors.neutral[25] : getStatusColor(statusNotify as StatusType)
|
|
135
|
-
}
|
|
136
|
-
size={9}
|
|
137
|
-
/>
|
|
138
|
-
</Box>
|
|
139
|
-
</Box>
|
|
140
|
-
|
|
141
|
-
{/* Mensagem de notificação do carregamento */}
|
|
142
|
-
<Typography
|
|
143
|
-
text={notification}
|
|
144
|
-
size={theme.fontSizes["2xs"]}
|
|
145
|
-
fontFamily={theme.fonts.inter_medium_500}
|
|
146
|
-
fontWeight="500"
|
|
147
|
-
lineHeight={theme.fontSizes.sm ?? 14}
|
|
148
|
-
color={theme.colors.neutral[25]}
|
|
149
|
-
letterSpacing={"regular"}
|
|
150
|
-
ellipsizeMode="tail"
|
|
151
|
-
numberOfLines={1}
|
|
152
|
-
/>
|
|
153
|
-
</Box>
|
|
154
|
-
</Box>
|
|
155
|
-
</TouchableOpacity>
|
|
156
|
-
);
|
|
157
|
-
};
|
|
158
|
-
|
|
159
|
-
/**
|
|
160
|
-
* EXPORTS
|
|
161
|
-
*/
|
|
162
|
-
export { NotificationLoading };
|
|
1
|
+
/**
|
|
2
|
+
* IMPORTS
|
|
3
|
+
*/
|
|
4
|
+
import React from "react";
|
|
5
|
+
import { TouchableOpacity } from "react-native";
|
|
6
|
+
|
|
7
|
+
// components
|
|
8
|
+
import { Box } from "../box";
|
|
9
|
+
import { Typography } from "../typography";
|
|
10
|
+
|
|
11
|
+
// icons
|
|
12
|
+
import { Icons } from "../../common/icons-svg";
|
|
13
|
+
|
|
14
|
+
// theme
|
|
15
|
+
import { theme } from "../../styles/theme/theme";
|
|
16
|
+
|
|
17
|
+
import { INotificationLoading } from "./interface";
|
|
18
|
+
import { getStatusColor, StatusType } from "../../utils/status-color/return-color";
|
|
19
|
+
|
|
20
|
+
const NotificationLoading: React.FC<INotificationLoading> = ({
|
|
21
|
+
handleNavigation,
|
|
22
|
+
title,
|
|
23
|
+
testID,
|
|
24
|
+
statusNotify,
|
|
25
|
+
date,
|
|
26
|
+
notification,
|
|
27
|
+
dataStart,
|
|
28
|
+
style,
|
|
29
|
+
readonly,
|
|
30
|
+
}) => {
|
|
31
|
+
return (
|
|
32
|
+
<TouchableOpacity
|
|
33
|
+
activeOpacity={0.7}
|
|
34
|
+
testID={testID}
|
|
35
|
+
onPress={handleNavigation}
|
|
36
|
+
disabled={readonly}
|
|
37
|
+
>
|
|
38
|
+
<Box
|
|
39
|
+
width={"100%"}
|
|
40
|
+
flexStyle={{ flexDirection: "row", alignItems: "center" }}
|
|
41
|
+
backgroundColor={readonly ? theme.colors.blue[40050] : theme.colors.blue[400]}
|
|
42
|
+
borderStyled={{
|
|
43
|
+
borderWidth: theme.borderWidths.thin,
|
|
44
|
+
borderRadius: theme.borderWidths.thick_medium,
|
|
45
|
+
borderColor: readonly ? theme.colors.blue[40050] : theme.colors.blue[400],
|
|
46
|
+
}}
|
|
47
|
+
paddingStyle={{ padding: theme.paddings["2xs"] }}
|
|
48
|
+
style={style}
|
|
49
|
+
>
|
|
50
|
+
<Box width={"9%"}>
|
|
51
|
+
<Icons icon={"BELL"} size={32} color={theme.colors.neutral[25]} />
|
|
52
|
+
</Box>
|
|
53
|
+
|
|
54
|
+
<Box
|
|
55
|
+
flexStyle={{ flexDirection: "column" }}
|
|
56
|
+
width={"91%"}
|
|
57
|
+
paddingStyle={{ paddingLeft: 7 }}
|
|
58
|
+
>
|
|
59
|
+
{/* Carregamento identificação */}
|
|
60
|
+
<Box flexStyle={{ flexDirection: "row", alignItems: "center" }}>
|
|
61
|
+
<Typography
|
|
62
|
+
text={"Carregamento - "}
|
|
63
|
+
size={theme.fontSizes.sm}
|
|
64
|
+
lineHeight={theme.fontSizes.lg}
|
|
65
|
+
fontFamily={theme.fonts.inter_semi_bold_600}
|
|
66
|
+
fontWeight="600"
|
|
67
|
+
color={theme.colors.neutral[25]}
|
|
68
|
+
letterSpacing={"regular"}
|
|
69
|
+
/>
|
|
70
|
+
<Typography
|
|
71
|
+
text={title}
|
|
72
|
+
size={theme.fontSizes.xs}
|
|
73
|
+
lineHeight={theme.fontSizes.md}
|
|
74
|
+
fontFamily={theme.fonts.inter_bold_700}
|
|
75
|
+
fontWeight="700"
|
|
76
|
+
color={theme.colors.neutral[25]}
|
|
77
|
+
letterSpacing={"regular"}
|
|
78
|
+
/>
|
|
79
|
+
</Box>
|
|
80
|
+
|
|
81
|
+
{/* Data do carregamento */}
|
|
82
|
+
<Box
|
|
83
|
+
flexStyle={{
|
|
84
|
+
flexDirection: "row",
|
|
85
|
+
alignItems: "center",
|
|
86
|
+
justifyContent: "space-between",
|
|
87
|
+
}}
|
|
88
|
+
>
|
|
89
|
+
<Box
|
|
90
|
+
flexStyle={{
|
|
91
|
+
flexDirection: "row",
|
|
92
|
+
alignItems: "center",
|
|
93
|
+
}}
|
|
94
|
+
>
|
|
95
|
+
<Typography
|
|
96
|
+
text={"Data - "}
|
|
97
|
+
size={theme.fontSizes.sm}
|
|
98
|
+
lineHeight={theme.fontSizes.lg ?? 18}
|
|
99
|
+
fontFamily={theme.fonts.inter_medium_500}
|
|
100
|
+
fontWeight="500"
|
|
101
|
+
color={theme.colors.neutral[25]}
|
|
102
|
+
letterSpacing={"regular"}
|
|
103
|
+
/>
|
|
104
|
+
<Typography
|
|
105
|
+
text={String(date)}
|
|
106
|
+
size={theme.fontSizes.sm}
|
|
107
|
+
lineHeight={theme.fontSizes.lg ?? 18}
|
|
108
|
+
fontFamily={theme.fonts.inter_medium_500}
|
|
109
|
+
fontWeight="500"
|
|
110
|
+
color={theme.colors.neutral[25]}
|
|
111
|
+
letterSpacing={"regular"}
|
|
112
|
+
/>
|
|
113
|
+
</Box>
|
|
114
|
+
<Box
|
|
115
|
+
flexStyle={{
|
|
116
|
+
flexDirection: "row",
|
|
117
|
+
alignItems: "center",
|
|
118
|
+
}}
|
|
119
|
+
>
|
|
120
|
+
<Typography
|
|
121
|
+
text={String(dataStart)}
|
|
122
|
+
size={theme.fontSizes["2xs"]}
|
|
123
|
+
fontFamily={theme.fonts.inter_medium_500}
|
|
124
|
+
fontWeight="500"
|
|
125
|
+
lineHeight={theme.fontSizes.sm}
|
|
126
|
+
color={theme.colors.neutral[25]}
|
|
127
|
+
letterSpacing={"regular"}
|
|
128
|
+
marginRight={8}
|
|
129
|
+
/>
|
|
130
|
+
|
|
131
|
+
<Icons
|
|
132
|
+
icon={"ELLIPSE"}
|
|
133
|
+
color={
|
|
134
|
+
readonly ? theme.colors.neutral[25] : getStatusColor(statusNotify as StatusType)
|
|
135
|
+
}
|
|
136
|
+
size={9}
|
|
137
|
+
/>
|
|
138
|
+
</Box>
|
|
139
|
+
</Box>
|
|
140
|
+
|
|
141
|
+
{/* Mensagem de notificação do carregamento */}
|
|
142
|
+
<Typography
|
|
143
|
+
text={notification}
|
|
144
|
+
size={theme.fontSizes["2xs"]}
|
|
145
|
+
fontFamily={theme.fonts.inter_medium_500}
|
|
146
|
+
fontWeight="500"
|
|
147
|
+
lineHeight={theme.fontSizes.sm ?? 14}
|
|
148
|
+
color={theme.colors.neutral[25]}
|
|
149
|
+
letterSpacing={"regular"}
|
|
150
|
+
ellipsizeMode="tail"
|
|
151
|
+
numberOfLines={1}
|
|
152
|
+
/>
|
|
153
|
+
</Box>
|
|
154
|
+
</Box>
|
|
155
|
+
</TouchableOpacity>
|
|
156
|
+
);
|
|
157
|
+
};
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* EXPORTS
|
|
161
|
+
*/
|
|
162
|
+
export { NotificationLoading };
|
|
@@ -1,68 +1,68 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* IMPORTS
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import { StyleSheet } from "react-native";
|
|
6
|
-
|
|
7
|
-
// typings
|
|
8
|
-
import { IStepIndicator } from "./interface";
|
|
9
|
-
|
|
10
|
-
// styles
|
|
11
|
-
import { theme } from "../../styles/theme/theme";
|
|
12
|
-
|
|
13
|
-
const styles = (props: IStepIndicator) =>
|
|
14
|
-
StyleSheet.create({
|
|
15
|
-
containerIndicator: {
|
|
16
|
-
width: "100%",
|
|
17
|
-
height: 86,
|
|
18
|
-
flexDirection: "row",
|
|
19
|
-
justifyContent: "flex-start",
|
|
20
|
-
// backgroundColor: theme.colors.gray[300],
|
|
21
|
-
},
|
|
22
|
-
containerBall: {
|
|
23
|
-
width: 32,
|
|
24
|
-
height: 32,
|
|
25
|
-
backgroundColor: props.backgroundColorBall ?? theme.colors.blue[500],
|
|
26
|
-
flexDirection: "row",
|
|
27
|
-
alignItems: "center",
|
|
28
|
-
justifyContent: "center",
|
|
29
|
-
borderRadius: 16,
|
|
30
|
-
},
|
|
31
|
-
title: {
|
|
32
|
-
color: props.titleColor ?? "black",
|
|
33
|
-
textAlign: "center",
|
|
34
|
-
lineHeight: 20,
|
|
35
|
-
fontSize: theme.fontSizes["sm"],
|
|
36
|
-
fontWeight: "500",
|
|
37
|
-
marginLeft: 8,
|
|
38
|
-
},
|
|
39
|
-
titleNumber: {
|
|
40
|
-
color: props.titleNumberColor ?? theme.colors.neutral[25],
|
|
41
|
-
textAlign: "center",
|
|
42
|
-
lineHeight: 16,
|
|
43
|
-
fontFamily: theme.fonts.inter_regular_400,
|
|
44
|
-
fontSize: theme.fontSizes["xs"],
|
|
45
|
-
position: "absolute",
|
|
46
|
-
},
|
|
47
|
-
titleDescription: {
|
|
48
|
-
color: props.textColorDescription ?? theme.colors.gray[700],
|
|
49
|
-
textAlign: "center",
|
|
50
|
-
lineHeight: 16,
|
|
51
|
-
fontSize: theme.fontSizes["xs"],
|
|
52
|
-
fontFamily: theme.fonts.inter_regular_400,
|
|
53
|
-
fontWeight: "400",
|
|
54
|
-
marginLeft: 8,
|
|
55
|
-
},
|
|
56
|
-
containerMain: {
|
|
57
|
-
width: "100%",
|
|
58
|
-
height: 56,
|
|
59
|
-
flexDirection: "column",
|
|
60
|
-
alignItems: "flex-start",
|
|
61
|
-
marginLeft: 2,
|
|
62
|
-
},
|
|
63
|
-
});
|
|
64
|
-
|
|
65
|
-
/**
|
|
66
|
-
* EXPORTS
|
|
67
|
-
*/
|
|
68
|
-
export { styles };
|
|
1
|
+
/**
|
|
2
|
+
* IMPORTS
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { StyleSheet } from "react-native";
|
|
6
|
+
|
|
7
|
+
// typings
|
|
8
|
+
import { IStepIndicator } from "./interface";
|
|
9
|
+
|
|
10
|
+
// styles
|
|
11
|
+
import { theme } from "../../styles/theme/theme";
|
|
12
|
+
|
|
13
|
+
const styles = (props: IStepIndicator) =>
|
|
14
|
+
StyleSheet.create({
|
|
15
|
+
containerIndicator: {
|
|
16
|
+
width: "100%",
|
|
17
|
+
height: 86,
|
|
18
|
+
flexDirection: "row",
|
|
19
|
+
justifyContent: "flex-start",
|
|
20
|
+
// backgroundColor: theme.colors.gray[300],
|
|
21
|
+
},
|
|
22
|
+
containerBall: {
|
|
23
|
+
width: 32,
|
|
24
|
+
height: 32,
|
|
25
|
+
backgroundColor: props.backgroundColorBall ?? theme.colors.blue[500],
|
|
26
|
+
flexDirection: "row",
|
|
27
|
+
alignItems: "center",
|
|
28
|
+
justifyContent: "center",
|
|
29
|
+
borderRadius: 16,
|
|
30
|
+
},
|
|
31
|
+
title: {
|
|
32
|
+
color: props.titleColor ?? "black",
|
|
33
|
+
textAlign: "center",
|
|
34
|
+
lineHeight: 20,
|
|
35
|
+
fontSize: theme.fontSizes["sm"],
|
|
36
|
+
fontWeight: "500",
|
|
37
|
+
marginLeft: 8,
|
|
38
|
+
},
|
|
39
|
+
titleNumber: {
|
|
40
|
+
color: props.titleNumberColor ?? theme.colors.neutral[25],
|
|
41
|
+
textAlign: "center",
|
|
42
|
+
lineHeight: 16,
|
|
43
|
+
fontFamily: theme.fonts.inter_regular_400,
|
|
44
|
+
fontSize: theme.fontSizes["xs"],
|
|
45
|
+
position: "absolute",
|
|
46
|
+
},
|
|
47
|
+
titleDescription: {
|
|
48
|
+
color: props.textColorDescription ?? theme.colors.gray[700],
|
|
49
|
+
textAlign: "center",
|
|
50
|
+
lineHeight: 16,
|
|
51
|
+
fontSize: theme.fontSizes["xs"],
|
|
52
|
+
fontFamily: theme.fonts.inter_regular_400,
|
|
53
|
+
fontWeight: "400",
|
|
54
|
+
marginLeft: 8,
|
|
55
|
+
},
|
|
56
|
+
containerMain: {
|
|
57
|
+
width: "100%",
|
|
58
|
+
height: 56,
|
|
59
|
+
flexDirection: "column",
|
|
60
|
+
alignItems: "flex-start",
|
|
61
|
+
marginLeft: 2,
|
|
62
|
+
},
|
|
63
|
+
});
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* EXPORTS
|
|
67
|
+
*/
|
|
68
|
+
export { styles };
|
package/src/index.ts
CHANGED
|
@@ -1,43 +1,43 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* EXPORTS
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
// Components
|
|
6
|
-
export { Box } from "./components/box";
|
|
7
|
-
export { Button } from "./components/button";
|
|
8
|
-
export { StepIndicator } from "./components/step-indicator";
|
|
9
|
-
export { Typography } from "./components/typography";
|
|
10
|
-
export { Input } from "./components/input";
|
|
11
|
-
export { CapturePhoto } from "./components/capture-photo";
|
|
12
|
-
export { CardHours } from "./components/card-hours";
|
|
13
|
-
export { SelectOption } from "./components/selects/select-option";
|
|
14
|
-
export { Header } from "./components/header-profile";
|
|
15
|
-
export { ScheduledJourneyIndicators } from "./components/scheduled-journey-indicators";
|
|
16
|
-
export { CardScheduledJourney } from "./components/card-scheduled-journey";
|
|
17
|
-
export { UserProfile } from "./components/user-profile";
|
|
18
|
-
export { MenuItem } from "./components/menu-item";
|
|
19
|
-
export { CardLoading } from "./components/card-loading";
|
|
20
|
-
export { CardWorkSession } from "./components/card-work-session";
|
|
21
|
-
export { LoadingProgress } from "./components/loading-progress";
|
|
22
|
-
export { NoData } from "./components/no-data";
|
|
23
|
-
export { FilterJourney } from "./components/filter-journey";
|
|
24
|
-
export { Coil } from "./components/coil";
|
|
25
|
-
export { FilterDateSelector } from "./components/filter-date-selector";
|
|
26
|
-
export { CardHistory } from "./components/card-history";
|
|
27
|
-
export { NotificationLoading } from "./components/notification-loading";
|
|
28
|
-
export { CheckBox } from "./components/check-box";
|
|
29
|
-
export { ImageCaptureWithRemove } from "./components/image-capture-with-remove";
|
|
30
|
-
export { LoadingDetails } from "./components/loading-details";
|
|
31
|
-
export { AvatarProfile } from "./components/avatar-profile";
|
|
32
|
-
export { HistoryDetails } from "./components/history-details";
|
|
33
|
-
export { ActivitiesDaily } from "./components/activities-daily";
|
|
34
|
-
export { ActivitiesProgress } from "./components/activities-progress";
|
|
35
|
-
export { ProfileMenuOption } from "./components/profile-menu-option";
|
|
36
|
-
export { ModalActivities } from "./components/modal-activities";
|
|
37
|
-
|
|
38
|
-
// Utilities
|
|
39
|
-
export { multiply } from "./utils/mutiply";
|
|
40
|
-
export { formatDate, getLastSevenDays, formHoursMinute } from "./utils/format-data";
|
|
41
|
-
|
|
42
|
-
// Styles
|
|
43
|
-
export { theme } from "./styles/theme/theme";
|
|
1
|
+
/**
|
|
2
|
+
* EXPORTS
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
// Components
|
|
6
|
+
export { Box } from "./components/box";
|
|
7
|
+
export { Button } from "./components/button";
|
|
8
|
+
export { StepIndicator } from "./components/step-indicator";
|
|
9
|
+
export { Typography } from "./components/typography";
|
|
10
|
+
export { Input } from "./components/input";
|
|
11
|
+
export { CapturePhoto } from "./components/capture-photo";
|
|
12
|
+
export { CardHours } from "./components/card-hours";
|
|
13
|
+
export { SelectOption } from "./components/selects/select-option";
|
|
14
|
+
export { Header } from "./components/header-profile";
|
|
15
|
+
export { ScheduledJourneyIndicators } from "./components/scheduled-journey-indicators";
|
|
16
|
+
export { CardScheduledJourney } from "./components/card-scheduled-journey";
|
|
17
|
+
export { UserProfile } from "./components/user-profile";
|
|
18
|
+
export { MenuItem } from "./components/menu-item";
|
|
19
|
+
export { CardLoading } from "./components/card-loading";
|
|
20
|
+
export { CardWorkSession } from "./components/card-work-session";
|
|
21
|
+
export { LoadingProgress } from "./components/loading-progress";
|
|
22
|
+
export { NoData } from "./components/no-data";
|
|
23
|
+
export { FilterJourney } from "./components/filter-journey";
|
|
24
|
+
export { Coil } from "./components/coil";
|
|
25
|
+
export { FilterDateSelector } from "./components/filter-date-selector";
|
|
26
|
+
export { CardHistory } from "./components/card-history";
|
|
27
|
+
export { NotificationLoading } from "./components/notification-loading";
|
|
28
|
+
export { CheckBox } from "./components/check-box";
|
|
29
|
+
export { ImageCaptureWithRemove } from "./components/image-capture-with-remove";
|
|
30
|
+
export { LoadingDetails } from "./components/loading-details";
|
|
31
|
+
export { AvatarProfile } from "./components/avatar-profile";
|
|
32
|
+
export { HistoryDetails } from "./components/history-details";
|
|
33
|
+
export { ActivitiesDaily } from "./components/activities-daily";
|
|
34
|
+
export { ActivitiesProgress } from "./components/activities-progress";
|
|
35
|
+
export { ProfileMenuOption } from "./components/profile-menu-option";
|
|
36
|
+
export { ModalActivities } from "./components/modal-activities";
|
|
37
|
+
|
|
38
|
+
// Utilities
|
|
39
|
+
export { multiply } from "./utils/mutiply";
|
|
40
|
+
export { formatDate, getLastSevenDays, formHoursMinute } from "./utils/format-data";
|
|
41
|
+
|
|
42
|
+
// Styles
|
|
43
|
+
export { theme } from "./styles/theme/theme";
|