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,171 +1,171 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* IMPORTS
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
const borderWidths = {
|
|
6
|
-
thin: 1,
|
|
7
|
-
thin_medium: 2,
|
|
8
|
-
thin_bold: 6,
|
|
9
|
-
thick: 4,
|
|
10
|
-
thick_medium: 8,
|
|
11
|
-
thick_bold: 12,
|
|
12
|
-
thick_large: 16,
|
|
13
|
-
hairline: 999,
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
const colors = {
|
|
17
|
-
neutral: {
|
|
18
|
-
25: "#FFFFFF",
|
|
19
|
-
50: "#E7EEFF",
|
|
20
|
-
75: "#E5E1F9",
|
|
21
|
-
200: "#C6C6C6",
|
|
22
|
-
300: "#F3F3F3",
|
|
23
|
-
400: "#F4F5F6",
|
|
24
|
-
},
|
|
25
|
-
black: {
|
|
26
|
-
10: "#000000",
|
|
27
|
-
25: "#1E1E1E",
|
|
28
|
-
100: "#393939",
|
|
29
|
-
180: "#35302B",
|
|
30
|
-
},
|
|
31
|
-
blue: {
|
|
32
|
-
25: "#1E1E1E",
|
|
33
|
-
50: "#1EA7fD",
|
|
34
|
-
100: "#051C3B",
|
|
35
|
-
150: "#2E41F2",
|
|
36
|
-
350: "#357FD6",
|
|
37
|
-
375: "#056CF2",
|
|
38
|
-
400: "#2D3748",
|
|
39
|
-
400_50: "#2D374880",
|
|
40
|
-
500: "#050022",
|
|
41
|
-
525: "#051C3B",
|
|
42
|
-
},
|
|
43
|
-
red: {
|
|
44
|
-
400: "#D23A1A",
|
|
45
|
-
500: "#C54239",
|
|
46
|
-
600: "#B3261E",
|
|
47
|
-
800: "#E72626",
|
|
48
|
-
900: "#9F0000",
|
|
49
|
-
},
|
|
50
|
-
gray: {
|
|
51
|
-
300: "#D9D9D9",
|
|
52
|
-
350: "#CDCDCD",
|
|
53
|
-
400: "#C6C6C6",
|
|
54
|
-
500: "#1c1c1e",
|
|
55
|
-
600: "#5E5E5E",
|
|
56
|
-
700: "#727272",
|
|
57
|
-
800: "#837676",
|
|
58
|
-
850: "#868686",
|
|
59
|
-
875: "#949494",
|
|
60
|
-
900: "#9B9B9B",
|
|
61
|
-
925: "#957c5f",
|
|
62
|
-
950: "#94a3b8",
|
|
63
|
-
},
|
|
64
|
-
green: {
|
|
65
|
-
200: "#25BA76",
|
|
66
|
-
250: "#20AD48",
|
|
67
|
-
400: "#49C63E",
|
|
68
|
-
500: "#50C58F",
|
|
69
|
-
},
|
|
70
|
-
orange: {
|
|
71
|
-
500: "#FC5701",
|
|
72
|
-
450: "#FC6C2D",
|
|
73
|
-
150: "#FFA41C",
|
|
74
|
-
},
|
|
75
|
-
yellow: {
|
|
76
|
-
100: "#DFAE00",
|
|
77
|
-
50: "#F0CA4B",
|
|
78
|
-
75: "#F59E0B",
|
|
79
|
-
90: "#957C5F",
|
|
80
|
-
},
|
|
81
|
-
};
|
|
82
|
-
|
|
83
|
-
const fonts = {
|
|
84
|
-
inter_thin_100: "Inter-Thin",
|
|
85
|
-
inter_extra_light_200: "Inter-ExtraLight",
|
|
86
|
-
inter_light_300: "Inter-Light",
|
|
87
|
-
inter_regular_400: "Inter-Regular",
|
|
88
|
-
inter_medium_500: "Inter-Medium",
|
|
89
|
-
inter_semi_bold_600: "Inter-SemiBold",
|
|
90
|
-
inter_bold_700: "Inter-Bold",
|
|
91
|
-
inter_extra_bold_800: "Inter-ExtraBold",
|
|
92
|
-
inter_bold: "Inter-Bold",
|
|
93
|
-
};
|
|
94
|
-
|
|
95
|
-
const fontSizes = {
|
|
96
|
-
"2xs": 10,
|
|
97
|
-
xs: 12,
|
|
98
|
-
sm: 14,
|
|
99
|
-
md: 16,
|
|
100
|
-
lg: 18,
|
|
101
|
-
xl: 20,
|
|
102
|
-
"2xl": 24,
|
|
103
|
-
"3xl": 32,
|
|
104
|
-
"4xl": 38,
|
|
105
|
-
"5xl": 50,
|
|
106
|
-
"6xl": 60,
|
|
107
|
-
"7xl": 72,
|
|
108
|
-
"8xl": 96,
|
|
109
|
-
"9xl": 128,
|
|
110
|
-
};
|
|
111
|
-
|
|
112
|
-
const margins = {
|
|
113
|
-
"1xs": 6,
|
|
114
|
-
"2xs": 10,
|
|
115
|
-
xs: 12,
|
|
116
|
-
sm: 14,
|
|
117
|
-
md: 16,
|
|
118
|
-
lg: 18,
|
|
119
|
-
xl: 20,
|
|
120
|
-
"2xl": 24,
|
|
121
|
-
"3xl": 30,
|
|
122
|
-
"4xl": 36,
|
|
123
|
-
"5xl": 48,
|
|
124
|
-
"6xl": 60,
|
|
125
|
-
"7xl": 72,
|
|
126
|
-
"8xl": 96,
|
|
127
|
-
"9xl": 128,
|
|
128
|
-
};
|
|
129
|
-
|
|
130
|
-
const paddings = {
|
|
131
|
-
"2xs": 10,
|
|
132
|
-
xs: 12,
|
|
133
|
-
sm: 14,
|
|
134
|
-
md: 16,
|
|
135
|
-
lg: 18,
|
|
136
|
-
xl: 20,
|
|
137
|
-
"2xl": 24,
|
|
138
|
-
"3xl": 30,
|
|
139
|
-
"4xl": 36,
|
|
140
|
-
"5xl": 48,
|
|
141
|
-
"6xl": 60,
|
|
142
|
-
"7xl": 72,
|
|
143
|
-
"8xl": 96,
|
|
144
|
-
"9xl": 128,
|
|
145
|
-
};
|
|
146
|
-
|
|
147
|
-
const shadows = {
|
|
148
|
-
z1: "0px 1px 0px rgba(0, 0, 0, 0.3), 0px 1px 0px 1px rgba(0, 0, 0, 0.15)",
|
|
149
|
-
z2: "0px 1px 2px rgba(0, 0, 0, 0.3)",
|
|
150
|
-
};
|
|
151
|
-
|
|
152
|
-
const letterSpacing = {
|
|
153
|
-
o_16: 0.16,
|
|
154
|
-
regular: 0.5,
|
|
155
|
-
medium: 0.75,
|
|
156
|
-
strong: 1,
|
|
157
|
-
};
|
|
158
|
-
|
|
159
|
-
/**
|
|
160
|
-
* EXPORTSS
|
|
161
|
-
*/
|
|
162
|
-
export const theme = {
|
|
163
|
-
borderWidths,
|
|
164
|
-
colors,
|
|
165
|
-
fonts,
|
|
166
|
-
fontSizes,
|
|
167
|
-
margins,
|
|
168
|
-
shadows,
|
|
169
|
-
paddings,
|
|
170
|
-
letterSpacing,
|
|
171
|
-
};
|
|
1
|
+
/**
|
|
2
|
+
* IMPORTS
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
const borderWidths = {
|
|
6
|
+
thin: 1,
|
|
7
|
+
thin_medium: 2,
|
|
8
|
+
thin_bold: 6,
|
|
9
|
+
thick: 4,
|
|
10
|
+
thick_medium: 8,
|
|
11
|
+
thick_bold: 12,
|
|
12
|
+
thick_large: 16,
|
|
13
|
+
hairline: 999,
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
const colors = {
|
|
17
|
+
neutral: {
|
|
18
|
+
25: "#FFFFFF",
|
|
19
|
+
50: "#E7EEFF",
|
|
20
|
+
75: "#E5E1F9",
|
|
21
|
+
200: "#C6C6C6",
|
|
22
|
+
300: "#F3F3F3",
|
|
23
|
+
400: "#F4F5F6",
|
|
24
|
+
},
|
|
25
|
+
black: {
|
|
26
|
+
10: "#000000",
|
|
27
|
+
25: "#1E1E1E",
|
|
28
|
+
100: "#393939",
|
|
29
|
+
180: "#35302B",
|
|
30
|
+
},
|
|
31
|
+
blue: {
|
|
32
|
+
25: "#1E1E1E",
|
|
33
|
+
50: "#1EA7fD",
|
|
34
|
+
100: "#051C3B",
|
|
35
|
+
150: "#2E41F2",
|
|
36
|
+
350: "#357FD6",
|
|
37
|
+
375: "#056CF2",
|
|
38
|
+
400: "#2D3748",
|
|
39
|
+
400_50: "#2D374880",
|
|
40
|
+
500: "#050022",
|
|
41
|
+
525: "#051C3B",
|
|
42
|
+
},
|
|
43
|
+
red: {
|
|
44
|
+
400: "#D23A1A",
|
|
45
|
+
500: "#C54239",
|
|
46
|
+
600: "#B3261E",
|
|
47
|
+
800: "#E72626",
|
|
48
|
+
900: "#9F0000",
|
|
49
|
+
},
|
|
50
|
+
gray: {
|
|
51
|
+
300: "#D9D9D9",
|
|
52
|
+
350: "#CDCDCD",
|
|
53
|
+
400: "#C6C6C6",
|
|
54
|
+
500: "#1c1c1e",
|
|
55
|
+
600: "#5E5E5E",
|
|
56
|
+
700: "#727272",
|
|
57
|
+
800: "#837676",
|
|
58
|
+
850: "#868686",
|
|
59
|
+
875: "#949494",
|
|
60
|
+
900: "#9B9B9B",
|
|
61
|
+
925: "#957c5f",
|
|
62
|
+
950: "#94a3b8",
|
|
63
|
+
},
|
|
64
|
+
green: {
|
|
65
|
+
200: "#25BA76",
|
|
66
|
+
250: "#20AD48",
|
|
67
|
+
400: "#49C63E",
|
|
68
|
+
500: "#50C58F",
|
|
69
|
+
},
|
|
70
|
+
orange: {
|
|
71
|
+
500: "#FC5701",
|
|
72
|
+
450: "#FC6C2D",
|
|
73
|
+
150: "#FFA41C",
|
|
74
|
+
},
|
|
75
|
+
yellow: {
|
|
76
|
+
100: "#DFAE00",
|
|
77
|
+
50: "#F0CA4B",
|
|
78
|
+
75: "#F59E0B",
|
|
79
|
+
90: "#957C5F",
|
|
80
|
+
},
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
const fonts = {
|
|
84
|
+
inter_thin_100: "Inter-Thin",
|
|
85
|
+
inter_extra_light_200: "Inter-ExtraLight",
|
|
86
|
+
inter_light_300: "Inter-Light",
|
|
87
|
+
inter_regular_400: "Inter-Regular",
|
|
88
|
+
inter_medium_500: "Inter-Medium",
|
|
89
|
+
inter_semi_bold_600: "Inter-SemiBold",
|
|
90
|
+
inter_bold_700: "Inter-Bold",
|
|
91
|
+
inter_extra_bold_800: "Inter-ExtraBold",
|
|
92
|
+
inter_bold: "Inter-Bold",
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
const fontSizes = {
|
|
96
|
+
"2xs": 10,
|
|
97
|
+
xs: 12,
|
|
98
|
+
sm: 14,
|
|
99
|
+
md: 16,
|
|
100
|
+
lg: 18,
|
|
101
|
+
xl: 20,
|
|
102
|
+
"2xl": 24,
|
|
103
|
+
"3xl": 32,
|
|
104
|
+
"4xl": 38,
|
|
105
|
+
"5xl": 50,
|
|
106
|
+
"6xl": 60,
|
|
107
|
+
"7xl": 72,
|
|
108
|
+
"8xl": 96,
|
|
109
|
+
"9xl": 128,
|
|
110
|
+
};
|
|
111
|
+
|
|
112
|
+
const margins = {
|
|
113
|
+
"1xs": 6,
|
|
114
|
+
"2xs": 10,
|
|
115
|
+
xs: 12,
|
|
116
|
+
sm: 14,
|
|
117
|
+
md: 16,
|
|
118
|
+
lg: 18,
|
|
119
|
+
xl: 20,
|
|
120
|
+
"2xl": 24,
|
|
121
|
+
"3xl": 30,
|
|
122
|
+
"4xl": 36,
|
|
123
|
+
"5xl": 48,
|
|
124
|
+
"6xl": 60,
|
|
125
|
+
"7xl": 72,
|
|
126
|
+
"8xl": 96,
|
|
127
|
+
"9xl": 128,
|
|
128
|
+
};
|
|
129
|
+
|
|
130
|
+
const paddings = {
|
|
131
|
+
"2xs": 10,
|
|
132
|
+
xs: 12,
|
|
133
|
+
sm: 14,
|
|
134
|
+
md: 16,
|
|
135
|
+
lg: 18,
|
|
136
|
+
xl: 20,
|
|
137
|
+
"2xl": 24,
|
|
138
|
+
"3xl": 30,
|
|
139
|
+
"4xl": 36,
|
|
140
|
+
"5xl": 48,
|
|
141
|
+
"6xl": 60,
|
|
142
|
+
"7xl": 72,
|
|
143
|
+
"8xl": 96,
|
|
144
|
+
"9xl": 128,
|
|
145
|
+
};
|
|
146
|
+
|
|
147
|
+
const shadows = {
|
|
148
|
+
z1: "0px 1px 0px rgba(0, 0, 0, 0.3), 0px 1px 0px 1px rgba(0, 0, 0, 0.15)",
|
|
149
|
+
z2: "0px 1px 2px rgba(0, 0, 0, 0.3)",
|
|
150
|
+
};
|
|
151
|
+
|
|
152
|
+
const letterSpacing = {
|
|
153
|
+
o_16: 0.16,
|
|
154
|
+
regular: 0.5,
|
|
155
|
+
medium: 0.75,
|
|
156
|
+
strong: 1,
|
|
157
|
+
};
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* EXPORTSS
|
|
161
|
+
*/
|
|
162
|
+
export const theme = {
|
|
163
|
+
borderWidths,
|
|
164
|
+
colors,
|
|
165
|
+
fonts,
|
|
166
|
+
fontSizes,
|
|
167
|
+
margins,
|
|
168
|
+
shadows,
|
|
169
|
+
paddings,
|
|
170
|
+
letterSpacing,
|
|
171
|
+
};
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* IMPORTS
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import React from "react";
|
|
6
|
+
import { Icons } from "../../common/icons-svg";
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Function that will map property types to corresponding icons in SVG 🛠️.
|
|
10
|
+
* @param propertyType
|
|
11
|
+
* @param color
|
|
12
|
+
* @returns SVG
|
|
13
|
+
*/
|
|
14
|
+
const getIconByProperty: React.FC<any> = (propertyType: string, color?: string) => {
|
|
15
|
+
switch (propertyType) {
|
|
16
|
+
case "operacao_veiculo":
|
|
17
|
+
return <Icons color={color} icon="STEERING_WHEEL" />;
|
|
18
|
+
|
|
19
|
+
case "manutencao":
|
|
20
|
+
return <Icons color={color} icon="GEAR" />;
|
|
21
|
+
|
|
22
|
+
case "aguardando_carga":
|
|
23
|
+
return <Icons color={color} icon="TIMER" />;
|
|
24
|
+
|
|
25
|
+
case "disposicao_veiculo_parado":
|
|
26
|
+
return <Icons color={color} icon="TRUCK" />;
|
|
27
|
+
|
|
28
|
+
case "aguardando_descarga":
|
|
29
|
+
return <Icons color={color} icon="HOURGLASS" />;
|
|
30
|
+
|
|
31
|
+
case "descanso":
|
|
32
|
+
return <Icons color={color} icon="COFFEE" />;
|
|
33
|
+
|
|
34
|
+
case "repouso_semanal":
|
|
35
|
+
return <Icons color={color} icon="HOUSE" />;
|
|
36
|
+
|
|
37
|
+
case "repouso_noturno":
|
|
38
|
+
return <Icons color={color} icon="MOON_STARS" />;
|
|
39
|
+
|
|
40
|
+
case "refeicao":
|
|
41
|
+
return <Icons color={color} icon="CALL_BELL" />;
|
|
42
|
+
|
|
43
|
+
case "ferias":
|
|
44
|
+
return <Icons color={color} icon="ISLAND" />;
|
|
45
|
+
default:
|
|
46
|
+
return <Icons color={color} icon="STEERING_WHEEL" />; // Retorna uma Svg default caso o tipo de propriedade não for reconhecido.
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* EXPORTS
|
|
52
|
+
*/
|
|
53
|
+
export { getIconByProperty };
|
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
import { theme } from "../../styles/theme/theme";
|
|
2
|
-
|
|
3
|
-
export type StatusType = "Andamento" | "Cancelado" | "Pendente" | "Concluido";
|
|
4
|
-
|
|
5
|
-
function getBorderColor(status: string) {
|
|
6
|
-
const borderColors = {
|
|
7
|
-
Cancelado: theme.colors.red[900],
|
|
8
|
-
Pendente: theme.colors.orange[450],
|
|
9
|
-
};
|
|
10
|
-
return borderColors[status as keyof typeof borderColors];
|
|
11
|
-
}
|
|
12
|
-
function getStatusColor(status: StatusType): string {
|
|
13
|
-
const statusColors: Record<StatusType, string> = {
|
|
14
|
-
Concluido: theme.colors.green[250],
|
|
15
|
-
Cancelado: theme.colors.red[900],
|
|
16
|
-
Pendente: theme.colors.yellow[75],
|
|
17
|
-
Andamento: theme.colors.yellow[50],
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
return statusColors[status];
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
function getStatusTextColor(status: StatusType): string {
|
|
24
|
-
const statusColors: Record<StatusType, string> = {
|
|
25
|
-
Concluido: theme.colors.neutral[25],
|
|
26
|
-
Cancelado: theme.colors.neutral[25],
|
|
27
|
-
Pendente: theme.colors.neutral[50],
|
|
28
|
-
Andamento: theme.colors.neutral[50],
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
return statusColors[status];
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
export { getStatusColor, getBorderColor, getStatusTextColor };
|
|
1
|
+
import { theme } from "../../styles/theme/theme";
|
|
2
|
+
|
|
3
|
+
export type StatusType = "Andamento" | "Cancelado" | "Pendente" | "Concluido";
|
|
4
|
+
|
|
5
|
+
function getBorderColor(status: string) {
|
|
6
|
+
const borderColors = {
|
|
7
|
+
Cancelado: theme.colors.red[900],
|
|
8
|
+
Pendente: theme.colors.orange[450],
|
|
9
|
+
};
|
|
10
|
+
return borderColors[status as keyof typeof borderColors];
|
|
11
|
+
}
|
|
12
|
+
function getStatusColor(status: StatusType): string {
|
|
13
|
+
const statusColors: Record<StatusType, string> = {
|
|
14
|
+
Concluido: theme.colors.green[250],
|
|
15
|
+
Cancelado: theme.colors.red[900],
|
|
16
|
+
Pendente: theme.colors.yellow[75],
|
|
17
|
+
Andamento: theme.colors.yellow[50],
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
return statusColors[status];
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
function getStatusTextColor(status: StatusType): string {
|
|
24
|
+
const statusColors: Record<StatusType, string> = {
|
|
25
|
+
Concluido: theme.colors.neutral[25],
|
|
26
|
+
Cancelado: theme.colors.neutral[25],
|
|
27
|
+
Pendente: theme.colors.neutral[50],
|
|
28
|
+
Andamento: theme.colors.neutral[50],
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
return statusColors[status];
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export { getStatusColor, getBorderColor, getStatusTextColor };
|