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.
Files changed (173) hide show
  1. package/lib/commonjs/common/icons-svg/constants/index.js +4 -2
  2. package/lib/commonjs/common/icons-svg/constants/index.js.map +1 -1
  3. package/lib/commonjs/common/icons-svg/hourglass/index.js +4 -4
  4. package/lib/commonjs/common/icons-svg/hourglass/index.js.map +1 -1
  5. package/lib/commonjs/common/icons-svg/house/index.js +49 -0
  6. package/lib/commonjs/common/icons-svg/house/index.js.map +1 -0
  7. package/lib/commonjs/common/icons-svg/index.js +22 -8
  8. package/lib/commonjs/common/icons-svg/index.js.map +1 -1
  9. package/lib/commonjs/common/icons-svg/island/index.js +34 -0
  10. package/lib/commonjs/common/icons-svg/island/index.js.map +1 -0
  11. package/lib/commonjs/common/icons-svg/modal-activities/SvgIconCallBell.js +46 -0
  12. package/lib/commonjs/common/icons-svg/modal-activities/SvgIconCallBell.js.map +1 -0
  13. package/lib/commonjs/common/icons-svg/modal-activities/SvgIconCoffee.js +47 -0
  14. package/lib/commonjs/common/icons-svg/modal-activities/SvgIconCoffee.js.map +1 -0
  15. package/lib/commonjs/common/icons-svg/modal-activities/SvgIconGear.js +47 -0
  16. package/lib/commonjs/common/icons-svg/modal-activities/SvgIconGear.js.map +1 -0
  17. package/lib/commonjs/common/icons-svg/modal-activities/SvgIconHourGlassMedium.js +48 -0
  18. package/lib/commonjs/common/icons-svg/modal-activities/SvgIconHourGlassMedium.js.map +1 -0
  19. package/lib/commonjs/common/icons-svg/modal-activities/SvgIconHouse.js +46 -0
  20. package/lib/commonjs/common/icons-svg/modal-activities/SvgIconHouse.js.map +1 -0
  21. package/lib/commonjs/common/icons-svg/modal-activities/SvgIconMoonStars.js +48 -0
  22. package/lib/commonjs/common/icons-svg/modal-activities/SvgIconMoonStars.js.map +1 -0
  23. package/lib/commonjs/common/icons-svg/modal-activities/SvgIconSteeringWheel.js +54 -0
  24. package/lib/commonjs/common/icons-svg/modal-activities/SvgIconSteeringWheel.js.map +1 -0
  25. package/lib/commonjs/common/icons-svg/modal-activities/SvgIconTimer.js +45 -0
  26. package/lib/commonjs/common/icons-svg/modal-activities/SvgIconTimer.js.map +1 -0
  27. package/lib/commonjs/common/icons-svg/modal-activities/SvgIconTruck.js +35 -0
  28. package/lib/commonjs/common/icons-svg/modal-activities/SvgIconTruck.js.map +1 -0
  29. package/lib/commonjs/common/icons-svg/modal-activities/index.js +80 -0
  30. package/lib/commonjs/common/icons-svg/modal-activities/index.js.map +1 -0
  31. package/lib/commonjs/components/activities-progress/index.js +16 -14
  32. package/lib/commonjs/components/activities-progress/index.js.map +1 -1
  33. package/lib/commonjs/components/activities-progress/interface.d.js.map +1 -1
  34. package/lib/commonjs/components/card-history/index.js +20 -9
  35. package/lib/commonjs/components/card-history/index.js.map +1 -1
  36. package/lib/commonjs/components/card-history/interface.d.js.map +1 -1
  37. package/lib/commonjs/components/history-details/index.js +4 -4
  38. package/lib/commonjs/components/history-details/index.js.map +1 -1
  39. package/lib/commonjs/components/menu-item/interface.d.js.map +1 -1
  40. package/lib/commonjs/components/modal-activities/data-activities/index.js +62 -0
  41. package/lib/commonjs/components/modal-activities/data-activities/index.js.map +1 -0
  42. package/lib/commonjs/components/modal-activities/index.js +30 -38
  43. package/lib/commonjs/components/modal-activities/index.js.map +1 -1
  44. package/lib/commonjs/components/modal-activities/interface.d.js.map +1 -1
  45. package/lib/commonjs/components/notification-loading/index.js +4 -4
  46. package/lib/commonjs/components/notification-loading/index.js.map +1 -1
  47. package/lib/commonjs/components/step-indicator/styles.js +4 -4
  48. package/lib/commonjs/components/step-indicator/styles.js.map +1 -1
  49. package/lib/commonjs/index.js.map +1 -1
  50. package/lib/commonjs/stories/activities-progress/activities-progress.stories.js +24 -14
  51. package/lib/commonjs/stories/activities-progress/activities-progress.stories.js.map +1 -1
  52. package/lib/commonjs/stories/card-history/card-history.stories.js +5 -2
  53. package/lib/commonjs/stories/card-history/card-history.stories.js.map +1 -1
  54. package/lib/commonjs/stories/modal-activities/modal-activities.stories.js +21 -5
  55. package/lib/commonjs/stories/modal-activities/modal-activities.stories.js.map +1 -1
  56. package/lib/commonjs/styles/global/interface.d.js.map +1 -1
  57. package/lib/commonjs/utils/get-icon-by-property/index.js +85 -0
  58. package/lib/commonjs/utils/get-icon-by-property/index.js.map +1 -0
  59. package/lib/module/common/icons-svg/constants/index.js +4 -2
  60. package/lib/module/common/icons-svg/constants/index.js.map +1 -1
  61. package/lib/module/common/icons-svg/hourglass/index.js +4 -4
  62. package/lib/module/common/icons-svg/hourglass/index.js.map +1 -1
  63. package/lib/module/common/icons-svg/house/index.js +41 -0
  64. package/lib/module/common/icons-svg/house/index.js.map +1 -0
  65. package/lib/module/common/icons-svg/index.js +22 -8
  66. package/lib/module/common/icons-svg/index.js.map +1 -1
  67. package/lib/module/common/icons-svg/island/index.js +26 -0
  68. package/lib/module/common/icons-svg/island/index.js.map +1 -0
  69. package/lib/module/common/icons-svg/modal-activities/SvgIconCallBell.js +37 -0
  70. package/lib/module/common/icons-svg/modal-activities/SvgIconCallBell.js.map +1 -0
  71. package/lib/module/common/icons-svg/modal-activities/SvgIconCoffee.js +38 -0
  72. package/lib/module/common/icons-svg/modal-activities/SvgIconCoffee.js.map +1 -0
  73. package/lib/module/common/icons-svg/modal-activities/SvgIconGear.js +38 -0
  74. package/lib/module/common/icons-svg/modal-activities/SvgIconGear.js.map +1 -0
  75. package/lib/module/common/icons-svg/modal-activities/SvgIconHourGlassMedium.js +39 -0
  76. package/lib/module/common/icons-svg/modal-activities/SvgIconHourGlassMedium.js.map +1 -0
  77. package/lib/module/common/icons-svg/modal-activities/SvgIconHouse.js +37 -0
  78. package/lib/module/common/icons-svg/modal-activities/SvgIconHouse.js.map +1 -0
  79. package/lib/module/common/icons-svg/modal-activities/SvgIconMoonStars.js +40 -0
  80. package/lib/module/common/icons-svg/modal-activities/SvgIconMoonStars.js.map +1 -0
  81. package/lib/module/common/icons-svg/modal-activities/SvgIconSteeringWheel.js +45 -0
  82. package/lib/module/common/icons-svg/modal-activities/SvgIconSteeringWheel.js.map +1 -0
  83. package/lib/module/common/icons-svg/modal-activities/SvgIconTimer.js +36 -0
  84. package/lib/module/common/icons-svg/modal-activities/SvgIconTimer.js.map +1 -0
  85. package/lib/module/common/icons-svg/modal-activities/SvgIconTruck.js +26 -0
  86. package/lib/module/common/icons-svg/modal-activities/SvgIconTruck.js.map +1 -0
  87. package/lib/module/common/icons-svg/modal-activities/index.js +75 -0
  88. package/lib/module/common/icons-svg/modal-activities/index.js.map +1 -0
  89. package/lib/module/components/activities-progress/index.js +15 -14
  90. package/lib/module/components/activities-progress/index.js.map +1 -1
  91. package/lib/module/components/activities-progress/interface.d.js.map +1 -1
  92. package/lib/module/components/card-history/index.js +20 -9
  93. package/lib/module/components/card-history/index.js.map +1 -1
  94. package/lib/module/components/card-history/interface.d.js.map +1 -1
  95. package/lib/module/components/history-details/index.js +4 -4
  96. package/lib/module/components/history-details/index.js.map +1 -1
  97. package/lib/module/components/menu-item/interface.d.js.map +1 -1
  98. package/lib/module/components/modal-activities/data-activities/index.js +56 -0
  99. package/lib/module/components/modal-activities/data-activities/index.js.map +1 -0
  100. package/lib/module/components/modal-activities/index.js +29 -38
  101. package/lib/module/components/modal-activities/index.js.map +1 -1
  102. package/lib/module/components/modal-activities/interface.d.js.map +1 -1
  103. package/lib/module/components/notification-loading/index.js +4 -4
  104. package/lib/module/components/notification-loading/index.js.map +1 -1
  105. package/lib/module/components/step-indicator/styles.js +4 -4
  106. package/lib/module/components/step-indicator/styles.js.map +1 -1
  107. package/lib/module/index.js +2 -2
  108. package/lib/module/index.js.map +1 -1
  109. package/lib/module/stories/activities-progress/activities-progress.stories.js +24 -14
  110. package/lib/module/stories/activities-progress/activities-progress.stories.js.map +1 -1
  111. package/lib/module/stories/card-history/card-history.stories.js +5 -2
  112. package/lib/module/stories/card-history/card-history.stories.js.map +1 -1
  113. package/lib/module/stories/modal-activities/modal-activities.stories.js +20 -4
  114. package/lib/module/stories/modal-activities/modal-activities.stories.js.map +1 -1
  115. package/lib/module/styles/global/interface.d.js.map +1 -1
  116. package/lib/module/utils/get-icon-by-property/index.js +79 -0
  117. package/lib/module/utils/get-icon-by-property/index.js.map +1 -0
  118. package/lib/typescript/src/common/icons-svg/constants/index.d.ts +3 -1
  119. package/lib/typescript/src/common/icons-svg/house/index.d.ts +10 -0
  120. package/lib/typescript/src/common/icons-svg/island/index.d.ts +10 -0
  121. package/lib/typescript/src/common/icons-svg/modal-activities/SvgIconCallBell.d.ts +10 -0
  122. package/lib/typescript/src/common/icons-svg/modal-activities/SvgIconCoffee.d.ts +10 -0
  123. package/lib/typescript/src/common/icons-svg/modal-activities/SvgIconGear.d.ts +10 -0
  124. package/lib/typescript/src/common/icons-svg/modal-activities/SvgIconHourGlassMedium.d.ts +10 -0
  125. package/lib/typescript/src/common/icons-svg/modal-activities/SvgIconHouse.d.ts +10 -0
  126. package/lib/typescript/src/common/icons-svg/modal-activities/SvgIconMoonStars.d.ts +10 -0
  127. package/lib/typescript/src/common/icons-svg/modal-activities/SvgIconSteeringWheel.d.ts +10 -0
  128. package/lib/typescript/src/common/icons-svg/modal-activities/SvgIconTimer.d.ts +10 -0
  129. package/lib/typescript/src/common/icons-svg/modal-activities/SvgIconTruck.d.ts +10 -0
  130. package/lib/typescript/src/common/icons-svg/modal-activities/index.d.ts +23 -0
  131. package/lib/typescript/src/components/modal-activities/data-activities/index.d.ts +19 -0
  132. package/lib/typescript/src/stories/modal-activities/modal-activities.stories.d.ts +2 -1
  133. package/lib/typescript/src/utils/get-icon-by-property/index.d.ts +15 -0
  134. package/package.json +220 -221
  135. package/src/common/icons-svg/constants/index.ts +3 -1
  136. package/src/common/icons-svg/hourglass/index.tsx +28 -28
  137. package/src/common/icons-svg/house/index.tsx +41 -0
  138. package/src/common/icons-svg/index.tsx +14 -6
  139. package/src/common/icons-svg/island/index.tsx +25 -0
  140. package/src/common/icons-svg/modal-activities/SvgIconCallBell.tsx +37 -0
  141. package/src/common/icons-svg/modal-activities/SvgIconCoffee.tsx +38 -0
  142. package/src/common/icons-svg/modal-activities/SvgIconGear.tsx +38 -0
  143. package/src/common/icons-svg/modal-activities/SvgIconHourGlassMedium.tsx +38 -0
  144. package/src/common/icons-svg/modal-activities/SvgIconHouse.tsx +37 -0
  145. package/src/common/icons-svg/modal-activities/SvgIconMoonStars.tsx +39 -0
  146. package/src/common/icons-svg/modal-activities/SvgIconSteeringWheel.tsx +48 -0
  147. package/src/common/icons-svg/modal-activities/SvgIconTimer.tsx +37 -0
  148. package/src/common/icons-svg/modal-activities/SvgIconTruck.tsx +28 -0
  149. package/src/common/icons-svg/modal-activities/index.tsx +53 -0
  150. package/src/components/activities-progress/index.tsx +169 -162
  151. package/src/components/activities-progress/interface.d.ts +61 -41
  152. package/src/components/button/styles.ts +34 -34
  153. package/src/components/card-history/index.tsx +28 -18
  154. package/src/components/card-history/interface.d.ts +5 -1
  155. package/src/components/card-loading/index.tsx +290 -290
  156. package/src/components/history-details/index.tsx +99 -99
  157. package/src/components/image-capture-with-remove/index.tsx +92 -92
  158. package/src/components/image-capture-with-remove/interface.d.ts +28 -28
  159. package/src/components/loading-progress/index.tsx +93 -93
  160. package/src/components/menu-item/interface.d.ts +1 -1
  161. package/src/components/modal-activities/data-activities/index.ts +65 -0
  162. package/src/components/modal-activities/index.tsx +137 -139
  163. package/src/components/modal-activities/interface.d.ts +32 -21
  164. package/src/components/notification-loading/index.tsx +162 -162
  165. package/src/components/step-indicator/styles.ts +68 -68
  166. package/src/index.ts +43 -43
  167. package/src/stories/activities-progress/activities-progress.stories.tsx +71 -61
  168. package/src/stories/card-history/card-history.stories.tsx +3 -0
  169. package/src/stories/modal-activities/modal-activities.stories.tsx +64 -46
  170. package/src/styles/global/interface.d.ts +146 -146
  171. package/src/styles/theme/theme.ts +171 -171
  172. package/src/utils/get-icon-by-property/index.tsx +53 -0
  173. 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 };