@holper/react-native-holper-storybook 0.6.101 → 0.7.0

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 (210) hide show
  1. package/.expo/README.md +8 -0
  2. package/.nvmrc +1 -0
  3. package/.prettierignore +5 -0
  4. package/.storybook/index.jsx +11 -0
  5. package/.storybook/main.js +8 -0
  6. package/.storybook/preview.jsx +51 -0
  7. package/.storybook/storybook.requires.js +43 -0
  8. package/.yarn/releases/yarn-4.5.0.cjs +925 -0
  9. package/.yarnrc.yml +3 -0
  10. package/App.jsx +29 -0
  11. package/LICENSE +21 -0
  12. package/{readme.md → README.md} +18 -19
  13. package/app.config.js +77 -0
  14. package/assets/adaptive-icon.png +0 -0
  15. package/assets/favicon.png +0 -0
  16. package/assets/fonts/Poppins-Bold.ttf +0 -0
  17. package/assets/fonts/Poppins-Regular.ttf +0 -0
  18. package/assets/fonts/Poppins-SemiBold.ttf +0 -0
  19. package/assets/icon.png +0 -0
  20. package/assets/splash.png +0 -0
  21. package/babel.config.js +7 -0
  22. package/build.sh +11 -0
  23. package/components/Button/index.tsx +66 -0
  24. package/{lib/components/Button/style.js → components/Button/style.ts} +8 -7
  25. package/components/Card/index.tsx +33 -0
  26. package/{lib/components/Card/style.js → components/Card/style.ts} +5 -4
  27. package/{lib/components/ConfirmationModal/index.js → components/ConfirmationModal/index.tsx} +25 -79
  28. package/{lib/components/ConfirmationModal/style.js → components/ConfirmationModal/style.tsx} +14 -13
  29. package/{lib/components/Container/index.js → components/Container/index.tsx} +7 -28
  30. package/{lib/components/Container/style.js → components/Container/style.ts} +6 -5
  31. package/{lib/components/CustomChatView/index.js → components/CustomChatView/index.tsx} +22 -30
  32. package/{lib/components/CustomChatView/style.js → components/CustomChatView/style.ts} +1 -1
  33. package/components/DeckSwiper/index.tsx +90 -0
  34. package/{lib/components/DeckSwiper/style.js → components/DeckSwiper/style.ts} +13 -12
  35. package/components/DonutCountdown/index.tsx +86 -0
  36. package/components/DonutCountdown/style.ts +8 -0
  37. package/components/FloatingContainer/index.tsx +35 -0
  38. package/{lib/components/FloatingContainer/style.js → components/FloatingContainer/style.ts} +7 -6
  39. package/components/Footer/index.tsx +35 -0
  40. package/{lib/components/Footer/style.js → components/Footer/style.ts} +4 -3
  41. package/components/Header/index.tsx +21 -0
  42. package/{lib/components/Header/style.js → components/Header/style.ts} +4 -3
  43. package/{lib/components/ImagePicker/index.js → components/ImagePicker/index.tsx} +3 -12
  44. package/components/ImageResponsive/index.tsx +24 -0
  45. package/components/ImageResponsive/style.ts +9 -0
  46. package/components/ImageViewer/index.tsx +36 -0
  47. package/{lib/components/ImageViewer/style.js → components/ImageViewer/style.ts} +11 -10
  48. package/{lib/components/Input/index.js → components/Input/index.tsx} +6 -33
  49. package/{lib/components/Input/style.js → components/Input/style.ts} +7 -18
  50. package/{lib/components/InputPin/index.js → components/InputPin/index.tsx} +6 -13
  51. package/{lib/components/InputPin/style.js → components/InputPin/style.ts} +7 -6
  52. package/components/MenuItem/index.tsx +25 -0
  53. package/{lib/components/MenuItem/style.js → components/MenuItem/style.ts} +9 -7
  54. package/{lib/components/NavigationTitle/index.js → components/NavigationTitle/index.tsx} +9 -30
  55. package/{lib/components/NavigationTitle/style.js → components/NavigationTitle/style.ts} +12 -11
  56. package/components/Notification/index.tsx +44 -0
  57. package/{lib/components/Notification/style.js → components/Notification/style.ts} +13 -11
  58. package/components/PreventDoubleClick/index.tsx +28 -0
  59. package/components/Select/index.tsx +51 -0
  60. package/components/Select/style.ts +64 -0
  61. package/{lib/components/SwipeablePanel/index.js → components/SwipeablePanel/index.tsx} +58 -85
  62. package/{lib/components/SwipeablePanel/style.js → components/SwipeablePanel/style.ts} +15 -14
  63. package/components/Switch/index.tsx +30 -0
  64. package/components/TakePicture/confirmPictureModal.tsx +37 -0
  65. package/components/TakePicture/index.tsx +148 -0
  66. package/{lib/components/TakePicture/style.js → components/TakePicture/style.ts} +4 -4
  67. package/components/Text/index.tsx +33 -0
  68. package/{lib/components/Text/style.js → components/Text/style.ts} +4 -2
  69. package/{lib/components/Textarea/index.js → components/Textarea/index.tsx} +5 -24
  70. package/{lib/components/Textarea/style.js → components/Textarea/style.ts} +5 -4
  71. package/components/TimeOutButton/index.tsx +67 -0
  72. package/{lib/components/TimeOutButton/style.js → components/TimeOutButton/style.ts} +4 -3
  73. package/components/Toast/index.tsx +34 -0
  74. package/components/Toast/style.ts +12 -0
  75. package/{lib/components/UploadDocument/index.js → components/UploadDocument/index.tsx} +49 -105
  76. package/{lib/components/UploadDocument/style.js → components/UploadDocument/style.ts} +16 -15
  77. package/components/VirtualKeyboard/index.tsx +75 -0
  78. package/{lib/components/VirtualKeyboard/style.js → components/VirtualKeyboard/style.ts} +9 -8
  79. package/components/index.ts +29 -0
  80. package/{lib/configs/constants.js → configs/constants.ts} +50 -48
  81. package/configs/types.ts +326 -0
  82. package/eas.json +27 -0
  83. package/eslint.config.mjs +205 -0
  84. package/hooks/index.ts +2 -0
  85. package/{lib/hooks/useDebounce.js → hooks/useDebounce.tsx} +6 -4
  86. package/hooks/useLoadFonts.tsx +13 -0
  87. package/index.js +3 -2
  88. package/lib/components/Button/index.tsx +66 -0
  89. package/lib/components/Button/style.ts +111 -0
  90. package/lib/components/Card/index.tsx +33 -0
  91. package/lib/components/Card/style.ts +34 -0
  92. package/lib/components/ConfirmationModal/index.tsx +104 -0
  93. package/lib/components/ConfirmationModal/style.tsx +53 -0
  94. package/lib/components/Container/index.tsx +33 -0
  95. package/lib/components/Container/style.ts +13 -0
  96. package/lib/components/CustomChatView/index.tsx +65 -0
  97. package/lib/components/CustomChatView/style.ts +10 -0
  98. package/lib/components/DeckSwiper/index.tsx +90 -0
  99. package/lib/components/DeckSwiper/style.ts +59 -0
  100. package/lib/components/DonutCountdown/index.tsx +86 -0
  101. package/lib/components/DonutCountdown/style.ts +8 -0
  102. package/lib/components/FloatingContainer/index.tsx +35 -0
  103. package/lib/components/FloatingContainer/style.ts +25 -0
  104. package/lib/components/Footer/index.tsx +35 -0
  105. package/lib/components/Footer/style.ts +40 -0
  106. package/lib/components/Header/index.tsx +21 -0
  107. package/lib/components/Header/style.ts +34 -0
  108. package/lib/components/ImagePicker/index.tsx +18 -0
  109. package/lib/components/ImageResponsive/index.tsx +24 -0
  110. package/lib/components/ImageResponsive/style.ts +9 -0
  111. package/lib/components/ImageViewer/index.tsx +36 -0
  112. package/lib/components/ImageViewer/style.ts +38 -0
  113. package/lib/components/Input/index.tsx +62 -0
  114. package/lib/components/Input/style.ts +91 -0
  115. package/lib/components/InputPin/index.tsx +21 -0
  116. package/lib/components/InputPin/style.ts +22 -0
  117. package/lib/components/MenuItem/index.tsx +25 -0
  118. package/lib/components/MenuItem/style.ts +44 -0
  119. package/lib/components/NavigationTitle/index.tsx +53 -0
  120. package/lib/components/NavigationTitle/style.ts +49 -0
  121. package/lib/components/Notification/index.tsx +44 -0
  122. package/lib/components/Notification/style.ts +50 -0
  123. package/lib/components/PreventDoubleClick/index.tsx +28 -0
  124. package/lib/components/Select/index.tsx +51 -0
  125. package/lib/components/Select/style.ts +64 -0
  126. package/lib/components/SwipeablePanel/index.tsx +208 -0
  127. package/lib/components/SwipeablePanel/style.ts +81 -0
  128. package/lib/components/Switch/index.tsx +30 -0
  129. package/lib/components/TakePicture/confirmPictureModal.tsx +37 -0
  130. package/lib/components/TakePicture/index.tsx +148 -0
  131. package/lib/components/TakePicture/style.ts +95 -0
  132. package/lib/components/Text/index.tsx +33 -0
  133. package/lib/components/Text/style.ts +101 -0
  134. package/lib/components/Textarea/index.tsx +26 -0
  135. package/lib/components/Textarea/style.ts +38 -0
  136. package/lib/components/TimeOutButton/index.tsx +67 -0
  137. package/lib/components/TimeOutButton/style.ts +42 -0
  138. package/lib/components/Toast/index.tsx +34 -0
  139. package/lib/components/Toast/style.ts +12 -0
  140. package/lib/components/UploadDocument/index.tsx +179 -0
  141. package/lib/components/UploadDocument/style.ts +57 -0
  142. package/lib/components/VirtualKeyboard/index.tsx +75 -0
  143. package/lib/components/VirtualKeyboard/style.ts +25 -0
  144. package/lib/components/index.ts +29 -0
  145. package/lib/configs/constants.ts +273 -0
  146. package/lib/configs/types.ts +326 -0
  147. package/lib/hooks/index.ts +2 -0
  148. package/lib/hooks/useDebounce.tsx +24 -0
  149. package/lib/hooks/useLoadFonts.tsx +13 -0
  150. package/lib/index.js +3 -2
  151. package/metro.config.js +11 -0
  152. package/package.json +72 -63
  153. package/prettier.config.mjs +23 -0
  154. package/stories/Button.stories.tsx +181 -0
  155. package/stories/Card.stories.tsx +22 -0
  156. package/stories/Colors.stories.tsx +57 -0
  157. package/stories/ConfirmationModal.stories.tsx +142 -0
  158. package/stories/Container.stories.tsx +105 -0
  159. package/stories/DeckSwiper.stories.tsx +43 -0
  160. package/stories/DonutCountdown.stories.tsx +134 -0
  161. package/stories/FloatingContainer.stories.tsx +139 -0
  162. package/stories/Footer.stories.tsx +65 -0
  163. package/stories/Header.stories.tsx +37 -0
  164. package/stories/ImagePicker.stories.tsx +14 -0
  165. package/stories/ImageResponsive.stories.tsx +18 -0
  166. package/stories/ImageViewer.stories.tsx +24 -0
  167. package/stories/Input.stories.tsx +119 -0
  168. package/stories/InputPin.stories.tsx +40 -0
  169. package/stories/Menu.stories.tsx +53 -0
  170. package/stories/MenuItem.stories.tsx +30 -0
  171. package/stories/NavigationTitle.stories.tsx +51 -0
  172. package/stories/Notification.stories.tsx +58 -0
  173. package/stories/Select.stories.tsx +270 -0
  174. package/stories/SwipeablePanel.stories.tsx +360 -0
  175. package/stories/Switch.stories.tsx +36 -0
  176. package/stories/TakePicture.stories.tsx +59 -0
  177. package/stories/Text.stories.tsx +61 -0
  178. package/stories/Textarea.stories.tsx +48 -0
  179. package/stories/TimeOutButton.stories.tsx +55 -0
  180. package/stories/Toast.stories.tsx +37 -0
  181. package/stories/UploadDocument.stories.tsx +179 -0
  182. package/stories/VirtualKeyboard.stories.tsx +14 -0
  183. package/tsconfig.json +21 -0
  184. package/utilities/ScrollView.tsx +19 -0
  185. package/utilities/index.ts +2 -0
  186. package/utilities/utils.ts +29 -0
  187. package/lib/components/Button/index.js +0 -104
  188. package/lib/components/Card/index.js +0 -49
  189. package/lib/components/DeckSwiper/index.js +0 -118
  190. package/lib/components/FlashMessage/index.js +0 -81
  191. package/lib/components/FloatingContainer/index.js +0 -69
  192. package/lib/components/Footer/index.js +0 -61
  193. package/lib/components/Header/index.js +0 -45
  194. package/lib/components/ImageResponsive/index.js +0 -39
  195. package/lib/components/ImageResponsive/style.js +0 -7
  196. package/lib/components/ImageViewer/index.js +0 -62
  197. package/lib/components/MenuItem/index.js +0 -44
  198. package/lib/components/Notification/index.js +0 -80
  199. package/lib/components/PreventDoubleClick/index.js +0 -21
  200. package/lib/components/Select/index.js +0 -89
  201. package/lib/components/Select/style.js +0 -81
  202. package/lib/components/Switch/index.js +0 -57
  203. package/lib/components/TakePicture/confirmPictureModal.js +0 -64
  204. package/lib/components/TakePicture/index.js +0 -198
  205. package/lib/components/Text/index.js +0 -75
  206. package/lib/components/TimeOutButton/index.js +0 -104
  207. package/lib/components/VirtualKeyboard/index.js +0 -86
  208. package/lib/components/index.js +0 -28
  209. package/lib/configs/loadFonts.js +0 -11
  210. package/lib/hooks/index.js +0 -1
@@ -1,77 +1,79 @@
1
1
  export const Colors = {
2
2
  // Blacks and Whites
3
+ darkgray: '#2E3640',
4
+ dimgray: '#CFCFCF',
5
+ gray: '#D0D0D0',
3
6
  transparent: 'transparent',
4
7
  white: '#FFFFFF',
5
- gray: '#D0D0D0',
6
- dimgray: '#CFCFCF',
7
- darkgray: '#2E3640',
8
8
  whiteice: '#E7EAEE',
9
9
  whitepearl: '#F7F8F9',
10
10
  // Greens
11
+ darkgreen: '#008A2E',
12
+ green: '#3FE384',
11
13
  lightergreen: '#F5FEFA',
12
14
  lightgreen: '#64FFA5',
13
15
  midgreen: '#3FE39E',
14
- green: '#3FE384',
15
16
  // Blues
16
- lightblue: '#EFF9FF',
17
- electricblue: '#3FA5F8',
18
- midblue: '#727C8E',
19
- darkblue: '#515C6F',
17
+ attentionBlue: '#dbf0fe',
18
+ blue: '#2A539C',
20
19
  brightblue: '#00D8FF',
20
+ darkblue: '#515C6F',
21
+ electricblue: '#3FA5F8',
22
+ lightblue: '#EFF9FF',
21
23
  mediumblue: '#F2F7FE',
22
- blue: '#2A539C',
23
- attentionBlue: '#dbf0fe',
24
+ midblue: '#727C8E',
24
25
  // Violet
25
- lightviolet: '#FAF9FF',
26
26
  brightviolet: '#9980FA',
27
- violet: '#300049',
27
+ lightviolet: '#FAF9FF',
28
28
  placeboPurple: '#F0ECFE',
29
+ violet: '#300049',
29
30
  // Reds
31
+ darkred: '#E60606',
30
32
  lightred: '#FFC1C1',
31
33
  red: '#FD4C4C',
32
34
  // Yellow
33
- lightyellow: '#FBFDE9',
34
- yellow: '#FDD100',
35
35
  darkyellow: '#FFBB87',
36
- lightgold: '#ECDFAA',
37
36
  gold: '#D4AF37',
37
+ lightgold: '#ECDFAA',
38
+ lightyellow: '#FBFDE9',
39
+ yellow: '#FDD100',
38
40
  };
39
41
 
40
42
  export const borderRadius = 8;
41
43
 
42
44
  export const ConstantsWS = Object.freeze({
43
- HIRING: 'HIRING',
44
45
  CANCELED: 'CANCELED',
45
46
  CANCELED_BY_PROFESSIONAL: 'CANCELED_BY_PROFESSIONAL',
47
+ CHAT: 'CHAT',
48
+ CLOSED: 'CLOSED',
49
+ HIRING: 'HIRING',
50
+ ISSUE: 'ISSUE',
51
+ MAP: 'MAP',
46
52
  NOT_CONFIRMED: 'NOT_CONFIRMED',
47
53
  NOT_STARTED: 'NOT_STARTED',
48
- POSTULATION: 'POSTULATION',
49
54
  NOTIFICATION: 'NOTIFICATION',
50
- CHAT: 'CHAT',
51
- MAP: 'MAP',
55
+ POSTULATION: 'POSTULATION',
52
56
  RECOMMENDATION: 'RECOMMENDATION',
53
- ISSUE: 'ISSUE',
54
- CLOSED: 'CLOSED',
55
57
  USER: 'USER',
56
58
  });
57
59
 
58
60
  export const HiringStatus = Object.freeze({
59
- PENDING: 'pending',
60
- ON_THE_WAY: 'onTheWay',
61
61
  ARRIVAL_CONFIRMED: 'arrivalConfirmed',
62
+ CANCELED: 'canceled',
63
+ DONE: 'done',
62
64
  IN_PROGRESS: 'inProgress',
65
+ ON_THE_WAY: 'onTheWay',
63
66
  PAYMENT: 'payment',
64
67
  PAYMENT_ERROR: 'paymentError',
65
- DONE: 'done',
66
- CANCELED: 'canceled',
68
+ PENDING: 'pending',
67
69
  UNPAID: 'unpaid',
68
70
  });
69
71
 
70
72
  export const CouponStatus = Object.freeze({
71
- PENDING: 'pending',
72
- IN_USE: 'inUse',
73
- EXPIRED: 'expired',
74
73
  DONE: 'DONE',
74
+ EXPIRED: 'expired',
75
+ IN_USE: 'inUse',
76
+ PENDING: 'pending',
75
77
  });
76
78
 
77
79
  export const NotificationsTypes = Object.freeze({
@@ -80,22 +82,22 @@ export const NotificationsTypes = Object.freeze({
80
82
  /** Professional accept immediate hiring */
81
83
  HIRING_IMMEDIATE: 'hiringImmediate',
82
84
  /** Professional accept scheduled hiring */
83
- HIRING_SCHEDULED: 'hiringScheduled',
84
85
  HIRING_ACCEPTED: 'hiringAccepted',
85
- HIRING_CANCELED: 'hiringCanceled',
86
- HIRING_ON_THE_WAY: 'hiringOnTheWay',
87
86
  HIRING_ARRIVAL_CONFIRMED: 'hiringArrivalConfirmed',
88
- HIRING_IN_PROGRESS: 'hiringInProgress',
89
- HIRING_DONE: 'hiringDone',
87
+ HIRING_CANCELED: 'hiringCanceled',
90
88
  HIRING_DELAY: 'hiringDelay',
91
- HIRING_DELAY_TRAFFIC: 'hiringDelayTraffic',
92
89
  HIRING_DELAY_ACCIDENT: 'hiringDelayAccident',
90
+ HIRING_DELAY_TRAFFIC: 'hiringDelayTraffic',
93
91
  HIRING_DELAY_WORK: 'hiringDelayWork',
92
+ HIRING_DONE: 'hiringDone',
94
93
  HIRING_EXTRA_TASK: 'hiringExtraTask',
95
94
  HIRING_EXTRA_TASK_ACCEPTED: 'hiringExtraTaskAccepted',
96
95
  HIRING_EXTRA_TASK_REJECTED: 'hiringExtraTaskRejected',
96
+ HIRING_IN_PROGRESS: 'hiringInProgress',
97
+ HIRING_ON_THE_WAY: 'hiringOnTheWay',
97
98
  HIRING_PAYMENT_REJECTED: 'hiringPaymentRejected',
98
99
  HIRING_RATING: 'hiringRating',
100
+ HIRING_SCHEDULED: 'hiringScheduled',
99
101
  NEW_MESSAGE: 'newMessage',
100
102
  /** Reminder for the client to open the door */
101
103
  REMINDER_OPEN_DOOR: 'reminderOpenDoor',
@@ -143,8 +145,8 @@ export const MapStyle = [
143
145
  ],
144
146
  },
145
147
  {
146
- featureType: 'administrative.land_parcel',
147
148
  elementType: 'labels.text.fill',
149
+ featureType: 'administrative.land_parcel',
148
150
  stylers: [
149
151
  {
150
152
  color: '#bdbdbd',
@@ -152,8 +154,8 @@ export const MapStyle = [
152
154
  ],
153
155
  },
154
156
  {
155
- featureType: 'poi',
156
157
  elementType: 'geometry',
158
+ featureType: 'poi',
157
159
  stylers: [
158
160
  {
159
161
  color: '#eeeeee',
@@ -161,8 +163,8 @@ export const MapStyle = [
161
163
  ],
162
164
  },
163
165
  {
164
- featureType: 'poi',
165
166
  elementType: 'labels.text.fill',
167
+ featureType: 'poi',
166
168
  stylers: [
167
169
  {
168
170
  color: '#757575',
@@ -170,8 +172,8 @@ export const MapStyle = [
170
172
  ],
171
173
  },
172
174
  {
173
- featureType: 'poi.park',
174
175
  elementType: 'geometry',
176
+ featureType: 'poi.park',
175
177
  stylers: [
176
178
  {
177
179
  color: '#e5e5e5',
@@ -179,8 +181,8 @@ export const MapStyle = [
179
181
  ],
180
182
  },
181
183
  {
182
- featureType: 'poi.park',
183
184
  elementType: 'labels.text.fill',
185
+ featureType: 'poi.park',
184
186
  stylers: [
185
187
  {
186
188
  color: '#9e9e9e',
@@ -188,8 +190,8 @@ export const MapStyle = [
188
190
  ],
189
191
  },
190
192
  {
191
- featureType: 'road',
192
193
  elementType: 'geometry',
194
+ featureType: 'road',
193
195
  stylers: [
194
196
  {
195
197
  color: '#ffffff',
@@ -197,8 +199,8 @@ export const MapStyle = [
197
199
  ],
198
200
  },
199
201
  {
200
- featureType: 'road.arterial',
201
202
  elementType: 'labels.text.fill',
203
+ featureType: 'road.arterial',
202
204
  stylers: [
203
205
  {
204
206
  color: '#757575',
@@ -206,8 +208,8 @@ export const MapStyle = [
206
208
  ],
207
209
  },
208
210
  {
209
- featureType: 'road.highway',
210
211
  elementType: 'geometry',
212
+ featureType: 'road.highway',
211
213
  stylers: [
212
214
  {
213
215
  color: '#dadada',
@@ -215,8 +217,8 @@ export const MapStyle = [
215
217
  ],
216
218
  },
217
219
  {
218
- featureType: 'road.highway',
219
220
  elementType: 'labels.text.fill',
221
+ featureType: 'road.highway',
220
222
  stylers: [
221
223
  {
222
224
  color: '#616161',
@@ -224,8 +226,8 @@ export const MapStyle = [
224
226
  ],
225
227
  },
226
228
  {
227
- featureType: 'road.local',
228
229
  elementType: 'labels.text.fill',
230
+ featureType: 'road.local',
229
231
  stylers: [
230
232
  {
231
233
  color: '#9e9e9e',
@@ -233,8 +235,8 @@ export const MapStyle = [
233
235
  ],
234
236
  },
235
237
  {
236
- featureType: 'transit.line',
237
238
  elementType: 'geometry',
239
+ featureType: 'transit.line',
238
240
  stylers: [
239
241
  {
240
242
  color: '#e5e5e5',
@@ -242,8 +244,8 @@ export const MapStyle = [
242
244
  ],
243
245
  },
244
246
  {
245
- featureType: 'transit.station',
246
247
  elementType: 'geometry',
248
+ featureType: 'transit.station',
247
249
  stylers: [
248
250
  {
249
251
  color: '#eeeeee',
@@ -251,8 +253,8 @@ export const MapStyle = [
251
253
  ],
252
254
  },
253
255
  {
254
- featureType: 'water',
255
256
  elementType: 'geometry',
257
+ featureType: 'water',
256
258
  stylers: [
257
259
  {
258
260
  color: '#c9c9c9',
@@ -260,8 +262,8 @@ export const MapStyle = [
260
262
  ],
261
263
  },
262
264
  {
263
- featureType: 'water',
264
265
  elementType: 'labels.text.fill',
266
+ featureType: 'water',
265
267
  stylers: [
266
268
  {
267
269
  color: '#9e9e9e',
@@ -0,0 +1,326 @@
1
+ import type { Dayjs } from 'dayjs';
2
+ import type { ReactNode } from 'react';
3
+ import type {
4
+ ImageProps,
5
+ ImageSourcePropType,
6
+ SwitchProps as RNSwitchProps,
7
+ TextProps as RNTextProps,
8
+ StyleProp,
9
+ TextInputProps,
10
+ } from 'react-native';
11
+
12
+ export interface withPreventDoubleClickProps {
13
+ onPress?: VoidFunction;
14
+ [key: string]: any; // Allow additional props to be passed
15
+ }
16
+
17
+ export interface ButtonProps {
18
+ children: ReactNode;
19
+ disabled?: boolean;
20
+ isLoading?: boolean;
21
+ bordered?: boolean;
22
+ noShadow?: boolean;
23
+ variant?:
24
+ | 'brightblue'
25
+ | 'brightviolet'
26
+ | 'darkyellow'
27
+ | 'dim'
28
+ | 'electricblue'
29
+ | 'error'
30
+ | 'inverted'
31
+ | 'light'
32
+ | 'lightgreen'
33
+ | 'primary'
34
+ | 'secondary';
35
+ size?: 'tiny' | 'small' | 'medium' | 'fit' | 'icon';
36
+ style?: StyleProp<any>;
37
+ onPress?: VoidFunction;
38
+ debounceDelay?: number;
39
+ }
40
+
41
+ export interface CardProps extends ButtonProps {
42
+ style?: StyleProp<any>;
43
+ children: ReactNode;
44
+ isButton?: boolean;
45
+ noShadow?: boolean;
46
+ onPress?: VoidFunction;
47
+ }
48
+
49
+ export interface ConfirmationModalProps {
50
+ visible?: boolean;
51
+ title?: string;
52
+ confirmText?: string;
53
+ cancelText?: string;
54
+ onCancel?: VoidFunction;
55
+ onConfirm?: VoidFunction;
56
+ onClose?: VoidFunction | null;
57
+ alertMode?: boolean;
58
+ closeButton?: boolean;
59
+ infoMode?: boolean;
60
+ inverted?: boolean;
61
+ isPrime?: boolean;
62
+ children: ReactNode | null;
63
+ }
64
+
65
+ export interface TextProps extends RNTextProps {
66
+ children: ReactNode;
67
+ variant?: 'default' | 'lowercase' | 'uppercase';
68
+ size?: 'tiny' | 'small' | 'medium' | 'large' | 'extra-large' | 'huge';
69
+ color?:
70
+ | 'brightblue'
71
+ | 'brightviolet'
72
+ | 'dark'
73
+ | 'darkyellow'
74
+ | 'electricblue'
75
+ | 'gold'
76
+ | 'green'
77
+ | 'light'
78
+ | 'lighter'
79
+ | 'lightgold'
80
+ | 'midgreen'
81
+ | 'red'
82
+ | 'violet'
83
+ | 'white'
84
+ | 'yellow';
85
+ weight?: 'regular' | 'bold' | 'semiBold';
86
+ align?: 'left' | 'center' | 'right' | 'justify';
87
+ style?: StyleProp<any>;
88
+ }
89
+
90
+ export interface ContainerProps {
91
+ fullScreen?: boolean;
92
+ enableScroll?: boolean;
93
+ style?: StyleProp<any>;
94
+ scrollStyle?: StyleProp<any>;
95
+ children: ReactNode;
96
+ [key: string]: any; // Allow additional props to be passed
97
+ }
98
+
99
+ export interface CustomChatViewProps {
100
+ currentMessage?: {
101
+ location?: {
102
+ latitude: number;
103
+ longitude: number;
104
+ latitudeDelta?: number;
105
+ longitudeDelta?: number;
106
+ };
107
+ user?: {
108
+ name: string;
109
+ };
110
+ };
111
+ containerStyle?: StyleProp<any>;
112
+ mapViewStyle?: StyleProp<any>;
113
+ }
114
+
115
+ export interface FloatingContainerProps {
116
+ useRefreshControl?: boolean;
117
+ onRefresh?: VoidFunction;
118
+ isRefreshing?: boolean;
119
+ children?: ReactNode;
120
+ floatingComponent?: ReactNode;
121
+ centered?: boolean;
122
+ floatingContainerStyle?: StyleProp<any>;
123
+ disableScroll?: boolean;
124
+ }
125
+
126
+ export interface FooterProps {
127
+ inverted?: boolean;
128
+ tabs: Array<{
129
+ onPress: VoidFunction;
130
+ text: string;
131
+ icon: string;
132
+ badge?: number;
133
+ }>;
134
+ }
135
+
136
+ export interface HeaderProps {
137
+ inverted?: boolean;
138
+ logo: ImageSourcePropType | undefined;
139
+ right?: ReactNode;
140
+ onMenuPress?: VoidFunction;
141
+ }
142
+
143
+ export interface ImageResponsiveProps extends ImageProps {
144
+ source: ImageSourcePropType | undefined;
145
+ style?: StyleProp<any>;
146
+ avatar?: boolean;
147
+ }
148
+
149
+ export interface ImageViewerProps extends ImageResponsiveProps {
150
+ source: ImageSourcePropType | undefined;
151
+ style?: StyleProp<any>;
152
+ }
153
+
154
+ export interface InputProps extends TextInputProps {
155
+ variant?: 'default' | 'completed' | 'error';
156
+ size?: 'fixed' | 'fit';
157
+ disabled?: boolean;
158
+ leftIcon?: ReactNode;
159
+ leftIconWide?: boolean;
160
+ showLabel?: boolean;
161
+ label?: string;
162
+ count?: boolean;
163
+ rightIcon?: ReactNode;
164
+ value?: string;
165
+ maxLength?: number;
166
+ }
167
+
168
+ export interface InputPinProps {
169
+ values?: Array<number | string>;
170
+ }
171
+
172
+ export interface MenuItemProps {
173
+ icon?: ReactNode;
174
+ text?: string | ReactNode;
175
+ last?: boolean;
176
+ disabled?: boolean;
177
+ onPress?: VoidFunction;
178
+ }
179
+
180
+ export interface NavigationTitleProps {
181
+ type?: 'close' | 'back';
182
+ title?: string | ReactNode;
183
+ noShadow?: boolean;
184
+ xlarge?: boolean;
185
+ blockNavigation?: boolean;
186
+ onPress?: VoidFunction;
187
+ }
188
+
189
+ export interface NotificationProps {
190
+ first?: boolean;
191
+ active?: boolean;
192
+ hideAvatar?: boolean;
193
+ avatar?: ImageSourcePropType | undefined;
194
+ title?: string;
195
+ description?: string;
196
+ date?: Dayjs | string;
197
+ onPress?: VoidFunction;
198
+ }
199
+
200
+ export interface SwitchProps extends RNSwitchProps {
201
+ value?: boolean;
202
+ size?: 'medium' | 'small';
203
+ onValueChange?: (value: boolean) => void;
204
+ disabled?: boolean;
205
+ }
206
+
207
+ export interface ConfirmPictureModalProps {
208
+ visible: boolean;
209
+ avatar?: boolean;
210
+ repeatPictureText: string;
211
+ usePictureText: string;
212
+ image?: ImageSourcePropType | undefined | null;
213
+ onRepeatPhoto: VoidFunction;
214
+ onUsePhoto: VoidFunction;
215
+ }
216
+
217
+ export interface TakePictureProps {
218
+ visible: boolean;
219
+ onClose: (image?: string) => void;
220
+ avatar?: boolean;
221
+ cameraErrorMessage: string;
222
+ requestPermissionsMessage: string;
223
+ processingPictureMessage: string;
224
+ repeatPictureText: string;
225
+ usePictureText: string;
226
+ }
227
+
228
+ export interface TextareaProps extends TextInputProps {
229
+ variant?: 'default' | 'completed' | 'error';
230
+ disabled?: boolean;
231
+ numberOfLines?: number;
232
+ fitToContainer?: boolean;
233
+ }
234
+
235
+ export interface TimeOutButtonProps {
236
+ children: ReactNode;
237
+ time?: number; // Time in milliseconds
238
+ warning?: boolean; // If true, shows a warning overlay
239
+ onPress?: VoidFunction; // Function to call when the button is pressed
240
+ }
241
+
242
+ export interface UploadDocumentProps {
243
+ title?: string;
244
+ description?: string;
245
+ uploadButtonText?: string;
246
+ reUploadButtonText?: string;
247
+ completed?: boolean;
248
+ inverted?: boolean;
249
+ isAvatarPicker?: boolean;
250
+ icon?: ReactNode;
251
+ onSelectImage?: (image: string) => void;
252
+ file?: string;
253
+ onPermissionDenied?: VoidFunction;
254
+ mediaModal: {
255
+ title: string;
256
+ confirmText: string;
257
+ cancelText: string;
258
+ description: string;
259
+ };
260
+ takePicture: {
261
+ cameraErrorMessage: string;
262
+ requestPermissionsMessage: string;
263
+ processingPictureMessage: string;
264
+ repeatPictureText: string;
265
+ usePictureText: string;
266
+ };
267
+ }
268
+
269
+ export interface VirtualKeyboardProps {
270
+ onPress: (value: string | number | null) => void;
271
+ hideBiometrics?: boolean;
272
+ }
273
+
274
+ export interface SelectProps {
275
+ variant?: 'default' | 'error' | 'completed';
276
+ placeholder: string;
277
+ disabled?: boolean;
278
+ fitToContainer?: boolean;
279
+ onValueChange?: (value: string) => void;
280
+ value?: string | number;
281
+ items?: Array<{
282
+ label: string;
283
+ value: string | number;
284
+ }>;
285
+ }
286
+
287
+ export interface SwipeablePanelProps {
288
+ offset?: number;
289
+ maximized?: boolean;
290
+ lockPanel?: boolean;
291
+ autoMaximize?: boolean;
292
+ closeAfterSeconds?: number;
293
+ closeButton?: boolean;
294
+ avoidScroll?: boolean;
295
+ onClose?: VoidFunction;
296
+ children?: ReactNode;
297
+ }
298
+
299
+ export interface DonutCountdownProps {
300
+ bgColor?: string;
301
+ color?: string;
302
+ duration?: number;
303
+ onComplete?: VoidFunction;
304
+ radius?: number;
305
+ strokeWidth?: number;
306
+ textColor?: string;
307
+ textSize?: 'small' | 'medium' | 'large';
308
+ }
309
+
310
+ export interface DeckSwiperProps {
311
+ data?: Array<{
312
+ image: ImageSourcePropType;
313
+ title: string;
314
+ description: string;
315
+ }>;
316
+ inverted?: boolean;
317
+ nextText?: string;
318
+ onChange?: (index: number) => void;
319
+ onFinish?: () => void;
320
+ }
321
+
322
+ export interface ToastMessageProps {
323
+ variant: 'success' | 'error';
324
+ message: string;
325
+ description?: string;
326
+ }
package/eas.json ADDED
@@ -0,0 +1,27 @@
1
+ {
2
+ "cli": {
3
+ "version": ">= 16.13.4",
4
+ "promptToConfigurePushNotifications": false,
5
+ "appVersionSource": "remote"
6
+ },
7
+ "build": {
8
+ "development": {
9
+ "developmentClient": true,
10
+ "distribution": "internal",
11
+ "autoIncrement": true
12
+ },
13
+ "preview": {
14
+ "autoIncrement": true,
15
+ "android": {
16
+ "buildType": "apk"
17
+ },
18
+ "ios": {
19
+ "resourceClass": "m-medium"
20
+ }
21
+ },
22
+ "production": {}
23
+ },
24
+ "submit": {
25
+ "production": {}
26
+ }
27
+ }