react-native-inapp-inspector 1.0.4 → 1.0.5

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 (46) hide show
  1. package/README.md +3 -3
  2. package/dist/commonjs/components/AnalyticsEventCard.js +10 -10
  3. package/dist/commonjs/components/CodeSnippet.js +233 -10
  4. package/dist/commonjs/components/ConsoleLogCard.js +55 -9
  5. package/dist/commonjs/components/CopyButton.js +2 -1
  6. package/dist/commonjs/components/ErrorBoundary.d.ts +20 -0
  7. package/dist/commonjs/components/ErrorBoundary.js +332 -0
  8. package/dist/commonjs/components/NetworkIcons.d.ts +5 -0
  9. package/dist/commonjs/components/NetworkIcons.js +45 -1
  10. package/dist/commonjs/customHooks/reduxLogger.d.ts +4 -0
  11. package/dist/commonjs/customHooks/reduxLogger.js +30 -0
  12. package/dist/commonjs/customHooks/webViewLogger.d.ts +2 -0
  13. package/dist/commonjs/customHooks/webViewLogger.js +281 -246
  14. package/dist/commonjs/helpers/index.js +2 -1
  15. package/dist/commonjs/index.d.ts +5 -3
  16. package/dist/commonjs/index.js +685 -911
  17. package/dist/commonjs/styles/AppColors.d.ts +29 -1
  18. package/dist/commonjs/styles/AppColors.js +38 -2
  19. package/dist/commonjs/styles/index.d.ts +438 -229
  20. package/dist/commonjs/styles/index.js +448 -209
  21. package/dist/commonjs/types/index.d.ts +2 -2
  22. package/dist/esm/components/AnalyticsEventCard.js +10 -10
  23. package/dist/esm/components/CodeSnippet.js +232 -12
  24. package/dist/esm/components/ConsoleLogCard.js +55 -9
  25. package/dist/esm/components/CopyButton.js +2 -1
  26. package/dist/esm/components/ErrorBoundary.d.ts +20 -0
  27. package/dist/esm/components/ErrorBoundary.js +295 -0
  28. package/dist/esm/components/NetworkIcons.d.ts +5 -0
  29. package/dist/esm/components/NetworkIcons.js +39 -0
  30. package/dist/esm/customHooks/reduxLogger.d.ts +4 -0
  31. package/dist/esm/customHooks/reduxLogger.js +23 -0
  32. package/dist/esm/customHooks/webViewLogger.d.ts +2 -0
  33. package/dist/esm/customHooks/webViewLogger.js +281 -246
  34. package/dist/esm/helpers/index.js +2 -1
  35. package/dist/esm/index.d.ts +5 -3
  36. package/dist/esm/index.js +683 -914
  37. package/dist/esm/styles/AppColors.d.ts +29 -1
  38. package/dist/esm/styles/AppColors.js +35 -1
  39. package/dist/esm/styles/index.d.ts +438 -229
  40. package/dist/esm/styles/index.js +412 -209
  41. package/dist/esm/types/index.d.ts +2 -2
  42. package/example/App.tsx +351 -127
  43. package/example/ios/Podfile.lock +26 -0
  44. package/example/package-lock.json +20 -4
  45. package/example/package.json +4 -3
  46. package/package.json +1 -1
@@ -1,17 +1,50 @@
1
1
  "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
2
35
  Object.defineProperty(exports, "__esModule", { value: true });
36
+ exports.toggleGlobalTheme = exports.getRawStyles = void 0;
3
37
  const react_native_1 = require("react-native");
4
- const AppColors_1 = require("./AppColors");
5
- // Utils
38
+ const AppColors_1 = __importStar(require("./AppColors"));
6
39
  const AppFonts_1 = require("./AppFonts");
7
- const styles = react_native_1.StyleSheet.create({
40
+ const getRawStyles = (colors) => ({
8
41
  header: {
9
42
  flexDirection: 'row',
10
43
  alignItems: 'center',
11
- paddingHorizontal: 16,
12
- paddingVertical: 12,
44
+ paddingHorizontal: 12,
45
+ paddingVertical: 8,
13
46
  zIndex: 10,
14
- minHeight: 56,
47
+ minHeight: 48,
15
48
  shadowColor: '#000000',
16
49
  shadowOffset: { width: 0, height: 2 },
17
50
  shadowOpacity: 0.08,
@@ -28,33 +61,40 @@ const styles = react_native_1.StyleSheet.create({
28
61
  },
29
62
  headerTitle: {
30
63
  fontFamily: AppFonts_1.AppFonts.interBold,
31
- color: AppColors_1.AppColors.primaryLight,
64
+ color: colors.primaryLight,
32
65
  fontSize: 18,
33
66
  letterSpacing: 0.3,
34
67
  },
35
68
  headerButtonGroup: {
36
69
  flexDirection: 'row',
37
70
  alignItems: 'center',
38
- backgroundColor: 'rgba(255, 255, 255, 0.15)',
39
- borderRadius: 8,
71
+ backgroundColor: 'rgba(255, 255, 255, 0.1)',
72
+ borderRadius: 10,
40
73
  padding: 3,
74
+ borderWidth: 1,
75
+ borderColor: 'rgba(255, 255, 255, 0.08)',
41
76
  },
42
77
  headerGroupButton: {
43
78
  flexDirection: 'row',
44
79
  alignItems: 'center',
45
- paddingHorizontal: 12,
80
+ paddingHorizontal: 8,
46
81
  paddingVertical: 6,
47
- borderRadius: 6,
82
+ borderRadius: 8,
48
83
  gap: 4,
49
84
  },
50
85
  headerGroupButtonActive: {
51
- backgroundColor: 'rgba(255, 255, 255, 0.25)',
86
+ backgroundColor: 'rgba(255, 255, 255, 0.22)',
87
+ shadowColor: '#000000',
88
+ shadowOffset: { width: 0, height: 1 },
89
+ shadowOpacity: 0.12,
90
+ shadowRadius: 2,
91
+ elevation: 2,
52
92
  },
53
93
  headerGroupButtonText: {
54
- fontFamily: AppFonts_1.AppFonts.interBold,
55
- fontSize: 14,
56
- color: 'rgba(255, 255, 255, 0.6)',
57
- letterSpacing: 0.2,
94
+ fontFamily: AppFonts_1.AppFonts.interMedium,
95
+ fontSize: 10.5,
96
+ color: 'rgba(255, 255, 255, 0.65)',
97
+ letterSpacing: 0.1,
58
98
  },
59
99
  headerDetailCenter: {
60
100
  alignItems: 'center',
@@ -79,13 +119,13 @@ const styles = react_native_1.StyleSheet.create({
79
119
  },
80
120
  headerMethodText: {
81
121
  fontFamily: AppFonts_1.AppFonts.interBold,
82
- color: AppColors_1.AppColors.primaryLight,
122
+ color: colors.primaryLight,
83
123
  fontSize: 10,
84
124
  letterSpacing: 0.5,
85
125
  },
86
126
  headerDetailTitle: {
87
127
  fontFamily: AppFonts_1.AppFonts.interMedium,
88
- color: AppColors_1.AppColors.primaryLight,
128
+ color: colors.primaryLight,
89
129
  fontSize: 15,
90
130
  flexShrink: 1,
91
131
  letterSpacing: 0.2,
@@ -108,7 +148,7 @@ const styles = react_native_1.StyleSheet.create({
108
148
  },
109
149
  headerSubTitle: {
110
150
  fontFamily: AppFonts_1.AppFonts.interMedium,
111
- color: AppColors_1.AppColors.primaryLight,
151
+ color: colors.primaryLight,
112
152
  fontSize: 11,
113
153
  opacity: 0.95,
114
154
  letterSpacing: 0.2,
@@ -136,9 +176,19 @@ const styles = react_native_1.StyleSheet.create({
136
176
  letterSpacing: 0.2,
137
177
  },
138
178
  iconBtnMinimal: { padding: 6 },
139
- listContent: { paddingBottom: 20 },
179
+ closeButtonCircle: {
180
+ width: 32,
181
+ height: 32,
182
+ borderRadius: 16,
183
+ backgroundColor: 'rgba(255, 255, 255, 0.15)',
184
+ alignItems: 'center',
185
+ justifyContent: 'center',
186
+ borderWidth: 1,
187
+ borderColor: 'rgba(255, 255, 255, 0.08)',
188
+ },
189
+ listContent: { paddingBottom: 12 },
140
190
  detailScroll: { flex: 1 },
141
- detailContent: { paddingHorizontal: 8, paddingTop: 10, paddingBottom: 40 },
191
+ detailContent: { paddingHorizontal: 6, paddingTop: 8, paddingBottom: 20 },
142
192
  fabWrapper: {
143
193
  position: 'absolute',
144
194
  bottom: 180,
@@ -147,7 +197,7 @@ const styles = react_native_1.StyleSheet.create({
147
197
  justifyContent: 'center',
148
198
  zIndex: 99999,
149
199
  elevation: 15,
150
- shadowColor: AppColors_1.AppColors.purple,
200
+ shadowColor: colors.purple,
151
201
  shadowOffset: { width: 0, height: 8 },
152
202
  shadowOpacity: 0.4,
153
203
  shadowRadius: 12,
@@ -157,7 +207,7 @@ const styles = react_native_1.StyleSheet.create({
157
207
  width: 60,
158
208
  height: 60,
159
209
  borderRadius: 30,
160
- backgroundColor: `${AppColors_1.AppColors.purple}25`,
210
+ backgroundColor: `${colors.purple}25`,
161
211
  },
162
212
  fab: {
163
213
  width: 56,
@@ -165,7 +215,8 @@ const styles = react_native_1.StyleSheet.create({
165
215
  borderRadius: 28,
166
216
  alignItems: 'center',
167
217
  justifyContent: 'center',
168
- shadowColor: AppColors_1.AppColors.shadowColorString,
218
+ backgroundColor: colors.purple,
219
+ shadowColor: colors.shadowColorString,
169
220
  shadowOffset: { width: 0, height: 6 },
170
221
  shadowOpacity: 0.35,
171
222
  shadowRadius: 10,
@@ -173,7 +224,7 @@ const styles = react_native_1.StyleSheet.create({
173
224
  },
174
225
  fabText: {
175
226
  fontFamily: AppFonts_1.AppFonts.interBold,
176
- color: AppColors_1.AppColors.primaryLight,
227
+ color: colors.primaryLight,
177
228
  fontSize: 14,
178
229
  },
179
230
  fabBadge: {
@@ -187,58 +238,33 @@ const styles = react_native_1.StyleSheet.create({
187
238
  justifyContent: 'center',
188
239
  paddingHorizontal: 6,
189
240
  borderWidth: 2.5,
190
- borderColor: AppColors_1.AppColors.primaryLight,
191
- shadowColor: AppColors_1.AppColors.shadowColorString,
241
+ borderColor: colors.primaryLight,
242
+ shadowColor: colors.shadowColorString,
192
243
  shadowOffset: { width: 0, height: 2 },
193
244
  shadowOpacity: 0.2,
194
245
  shadowRadius: 3,
195
246
  elevation: 3,
196
247
  },
197
- fabBadgeNormal: { backgroundColor: AppColors_1.AppColors.purple },
198
- fabBadgeError: { backgroundColor: AppColors_1.AppColors.errorColor },
248
+ fabBadgeNormal: { backgroundColor: colors.purple },
249
+ fabBadgeError: { backgroundColor: colors.errorColor },
199
250
  fabBadgeText: {
200
251
  fontFamily: AppFonts_1.AppFonts.interBold,
201
- color: AppColors_1.AppColors.primaryLight,
252
+ color: colors.primaryLight,
202
253
  fontSize: 11,
203
254
  },
204
- dashboardCard: {
205
- marginHorizontal: 16,
206
- marginBottom: 16,
207
- backgroundColor: AppColors_1.AppColors.primaryLight,
208
- borderRadius: 16,
209
- borderWidth: 1,
210
- borderColor: AppColors_1.AppColors.grayBorderSecondary,
211
- shadowColor: '#000000',
212
- shadowOffset: { width: 0, height: 4 },
213
- shadowOpacity: 0.09,
214
- shadowRadius: 12,
215
- elevation: 6,
216
- overflow: 'hidden',
217
- },
218
- dashboardStatsRow: {
219
- flexDirection: 'row',
220
- paddingVertical: 14,
221
- paddingHorizontal: 8,
222
- },
223
255
  statBox: {
224
256
  flex: 1,
225
257
  alignItems: 'center',
226
258
  justifyContent: 'center',
227
259
  },
228
- dashboardStatDivider: {
229
- width: 1,
230
- backgroundColor: AppColors_1.AppColors.dividerColor,
231
- height: '80%',
232
- alignSelf: 'center',
233
- },
234
260
  statValue: {
235
261
  fontFamily: AppFonts_1.AppFonts.interBold,
236
- color: AppColors_1.AppColors.primaryBlack,
262
+ color: colors.primaryBlack,
237
263
  fontSize: 14,
238
264
  },
239
265
  statLabel: {
240
266
  fontFamily: AppFonts_1.AppFonts.interMedium,
241
- color: AppColors_1.AppColors.grayTextWeak,
267
+ color: colors.grayTextWeak,
242
268
  fontSize: 10,
243
269
  marginTop: 4,
244
270
  textTransform: 'uppercase',
@@ -254,8 +280,8 @@ const styles = react_native_1.StyleSheet.create({
254
280
  flexDirection: 'row',
255
281
  alignItems: 'center',
256
282
  justifyContent: 'space-between',
257
- paddingHorizontal: 16,
258
- marginBottom: 14,
283
+ paddingHorizontal: 12,
284
+ marginBottom: 10,
259
285
  gap: 10,
260
286
  marginTop: 4,
261
287
  },
@@ -267,18 +293,18 @@ const styles = react_native_1.StyleSheet.create({
267
293
  toolbarDivider: {
268
294
  width: 1,
269
295
  height: 20,
270
- backgroundColor: AppColors_1.AppColors.dividerColor,
296
+ backgroundColor: colors.dividerColor,
271
297
  marginHorizontal: 2,
272
298
  },
273
299
  toolbarBtn: {
274
- width: 40,
275
- height: 40,
276
- borderRadius: 20,
300
+ width: 34,
301
+ height: 34,
302
+ borderRadius: 17,
277
303
  alignItems: 'center',
278
304
  justifyContent: 'center',
279
- backgroundColor: AppColors_1.AppColors.primaryLight,
305
+ backgroundColor: colors.primaryLight,
280
306
  borderWidth: 1.5,
281
- borderColor: AppColors_1.AppColors.grayBorderSecondary,
307
+ borderColor: colors.grayBorderSecondary,
282
308
  shadowColor: '#000000',
283
309
  shadowOffset: { width: 0, height: 1 },
284
310
  shadowOpacity: 0.04,
@@ -286,8 +312,8 @@ const styles = react_native_1.StyleSheet.create({
286
312
  elevation: 1,
287
313
  },
288
314
  toolbarBtnActive: {
289
- borderColor: AppColors_1.AppColors.purple,
290
- backgroundColor: AppColors_1.AppColors.purpleShade50,
315
+ borderColor: colors.purple,
316
+ backgroundColor: colors.purpleShade50,
291
317
  shadowOpacity: 0.08,
292
318
  shadowRadius: 3,
293
319
  elevation: 2,
@@ -296,46 +322,46 @@ const styles = react_native_1.StyleSheet.create({
296
322
  position: 'absolute',
297
323
  top: -4,
298
324
  right: -4,
299
- backgroundColor: AppColors_1.AppColors.errorColor,
325
+ backgroundColor: colors.errorColor,
300
326
  borderRadius: 10,
301
327
  minWidth: 18,
302
328
  height: 18,
303
329
  alignItems: 'center',
304
330
  justifyContent: 'center',
305
331
  borderWidth: 1.5,
306
- borderColor: AppColors_1.AppColors.primaryLight,
332
+ borderColor: colors.primaryLight,
307
333
  },
308
334
  trashBadgeText: {
309
- color: AppColors_1.AppColors.primaryLight,
335
+ color: colors.primaryLight,
310
336
  fontFamily: AppFonts_1.AppFonts.interBold,
311
337
  fontSize: 9,
312
338
  },
313
339
  filtersContainer: {
314
- paddingHorizontal: 16,
315
- paddingBottom: 16,
340
+ paddingHorizontal: 12,
341
+ paddingBottom: 10,
316
342
  },
317
343
  filtersHeading: {
318
344
  fontFamily: AppFonts_1.AppFonts.interBold,
319
- color: AppColors_1.AppColors.grayTextStrong,
320
- fontSize: 12,
345
+ color: colors.grayTextStrong,
346
+ fontSize: 11,
321
347
  textTransform: 'uppercase',
322
348
  letterSpacing: 0.6,
323
- marginBottom: 8,
349
+ marginBottom: 6,
324
350
  },
325
351
  statusRowContent: {
326
352
  alignItems: 'center',
327
- paddingVertical: 4,
353
+ paddingVertical: 2,
328
354
  },
329
- statusFilterWrap: { marginRight: 8 },
355
+ statusFilterWrap: { marginRight: 6 },
330
356
  statusFilterChip: {
331
- paddingHorizontal: 16,
332
- height: 38,
357
+ paddingHorizontal: 10,
358
+ height: 30,
333
359
  justifyContent: 'center',
334
360
  alignItems: 'center',
335
361
  borderRadius: 24,
336
362
  borderWidth: 1.5,
337
- borderColor: AppColors_1.AppColors.grayBorderSecondary,
338
- backgroundColor: AppColors_1.AppColors.primaryLight,
363
+ borderColor: colors.grayBorderSecondary,
364
+ backgroundColor: colors.primaryLight,
339
365
  shadowColor: '#000000',
340
366
  shadowOffset: { width: 0, height: 1 },
341
367
  shadowOpacity: 0.03,
@@ -343,17 +369,17 @@ const styles = react_native_1.StyleSheet.create({
343
369
  elevation: 1,
344
370
  },
345
371
  statusFilterActive: {
346
- borderColor: AppColors_1.AppColors.purple,
347
- backgroundColor: AppColors_1.AppColors.purpleShade50,
372
+ borderColor: colors.purple,
373
+ backgroundColor: colors.purpleShade50,
348
374
  },
349
375
  statusFilterText: {
350
376
  fontFamily: AppFonts_1.AppFonts.interMedium,
351
- color: AppColors_1.AppColors.grayText,
352
- fontSize: 13,
377
+ color: colors.grayText,
378
+ fontSize: 11.5,
353
379
  },
354
380
  resultCount: {
355
381
  fontFamily: AppFonts_1.AppFonts.interRegular,
356
- color: AppColors_1.AppColors.grayTextWeak,
382
+ color: colors.grayTextWeak,
357
383
  fontSize: 12,
358
384
  marginHorizontal: 16,
359
385
  marginBottom: 8,
@@ -364,12 +390,12 @@ const styles = react_native_1.StyleSheet.create({
364
390
  flex: 1,
365
391
  flexDirection: 'row',
366
392
  alignItems: 'center',
367
- backgroundColor: AppColors_1.AppColors.primaryLight,
393
+ backgroundColor: colors.primaryLight,
368
394
  borderRadius: 24,
369
- paddingHorizontal: 14,
370
- paddingVertical: 6,
395
+ paddingHorizontal: 10,
396
+ paddingVertical: 4,
371
397
  borderWidth: 1.5,
372
- borderColor: AppColors_1.AppColors.grayBorderSecondary,
398
+ borderColor: colors.grayBorderSecondary,
373
399
  shadowColor: '#000000',
374
400
  shadowOffset: { width: 0, height: 1 },
375
401
  shadowOpacity: 0.04,
@@ -379,25 +405,25 @@ const styles = react_native_1.StyleSheet.create({
379
405
  searchInput: {
380
406
  flex: 1,
381
407
  fontFamily: AppFonts_1.AppFonts.interRegular,
382
- color: AppColors_1.AppColors.primaryBlack,
383
- paddingVertical: react_native_1.Platform.OS === 'ios' ? 8 : 4,
384
- marginLeft: 8,
408
+ color: colors.primaryBlack,
409
+ paddingVertical: react_native_1.Platform.OS === 'ios' ? 5 : 2,
410
+ marginLeft: 6,
385
411
  fontSize: 14,
386
412
  },
387
413
  clearBtn: { padding: 4 },
388
414
  clearBtnText: {
389
415
  fontFamily: AppFonts_1.AppFonts.interRegular,
390
- color: AppColors_1.AppColors.grayTextWeak,
416
+ color: colors.grayTextWeak,
391
417
  fontSize: 14,
392
418
  },
393
419
  menuDropdown: {
394
420
  position: 'absolute',
395
421
  top: react_native_1.Platform.OS === 'android' ? (react_native_1.StatusBar.currentHeight || 24) + 60 : 90,
396
422
  width: 170,
397
- backgroundColor: AppColors_1.AppColors.primaryLight,
423
+ backgroundColor: colors.primaryLight,
398
424
  borderRadius: 14,
399
425
  borderWidth: 1,
400
- borderColor: AppColors_1.AppColors.grayBorderSecondary,
426
+ borderColor: colors.grayBorderSecondary,
401
427
  zIndex: 999,
402
428
  shadowColor: '#000000',
403
429
  shadowOffset: { width: 0, height: 8 },
@@ -409,13 +435,13 @@ const styles = react_native_1.StyleSheet.create({
409
435
  dropdownItem: {
410
436
  padding: 13,
411
437
  borderBottomWidth: 1,
412
- borderBottomColor: AppColors_1.AppColors.dividerColor,
438
+ borderBottomColor: colors.dividerColor,
413
439
  },
414
440
  domainHeaderSeparator: {
415
441
  marginTop: 12,
416
442
  paddingTop: 16,
417
443
  borderTopWidth: 1,
418
- borderTopColor: AppColors_1.AppColors.dividerColor,
444
+ borderTopColor: colors.dividerColor,
419
445
  },
420
446
  domainHeaderRow: {
421
447
  flexDirection: 'row',
@@ -450,7 +476,7 @@ const styles = react_native_1.StyleSheet.create({
450
476
  domainTimestamp: {
451
477
  fontFamily: AppFonts_1.AppFonts.interRegular,
452
478
  fontSize: 10,
453
- color: AppColors_1.AppColors.grayTextWeak,
479
+ color: colors.grayTextWeak,
454
480
  },
455
481
  domainMethodCount: {
456
482
  fontFamily: AppFonts_1.AppFonts.interBold,
@@ -462,9 +488,9 @@ const styles = react_native_1.StyleSheet.create({
462
488
  alignItems: 'center',
463
489
  borderRadius: 8,
464
490
  borderWidth: 1,
465
- borderColor: AppColors_1.AppColors.grayBorderSecondary,
491
+ borderColor: colors.grayBorderSecondary,
466
492
  overflow: 'hidden',
467
- backgroundColor: AppColors_1.AppColors.grayBackground,
493
+ backgroundColor: colors.grayBackground,
468
494
  },
469
495
  groupBtnItem: {
470
496
  flexDirection: 'row',
@@ -475,7 +501,7 @@ const styles = react_native_1.StyleSheet.create({
475
501
  },
476
502
  groupBtnBorderRight: {
477
503
  borderRightWidth: 1,
478
- borderRightColor: AppColors_1.AppColors.grayBorderSecondary,
504
+ borderRightColor: colors.grayBorderSecondary,
479
505
  },
480
506
  domainStatText: {
481
507
  fontFamily: AppFonts_1.AppFonts.interBold,
@@ -527,10 +553,10 @@ const styles = react_native_1.StyleSheet.create({
527
553
  shadowRadius: 6,
528
554
  elevation: 3,
529
555
  borderWidth: 1,
530
- borderColor: AppColors_1.AppColors.grayBorderSecondary,
531
- backgroundColor: AppColors_1.AppColors.primaryLight,
556
+ borderColor: colors.grayBorderSecondary,
557
+ backgroundColor: colors.primaryLight,
532
558
  },
533
- cardBody: { paddingHorizontal: 12, paddingTop: 12, paddingBottom: 10 },
559
+ cardBody: { paddingHorizontal: 10, paddingTop: 8, paddingBottom: 8 },
534
560
  cardTopRow: {
535
561
  flexDirection: 'row',
536
562
  alignItems: 'center',
@@ -541,19 +567,19 @@ const styles = react_native_1.StyleSheet.create({
541
567
  height: 13,
542
568
  borderRadius: 4,
543
569
  borderWidth: 1.5,
544
- borderColor: AppColors_1.AppColors.grayTextWeak,
570
+ borderColor: colors.grayTextWeak,
545
571
  alignItems: 'center',
546
572
  justifyContent: 'center',
547
573
  backgroundColor: '#fff',
548
574
  marginRight: 8,
549
575
  },
550
576
  smallCheckboxChecked: {
551
- backgroundColor: AppColors_1.AppColors.purple,
552
- borderColor: AppColors_1.AppColors.purple,
577
+ backgroundColor: colors.purple,
578
+ borderColor: colors.purple,
553
579
  },
554
580
  serialNumber: {
555
581
  fontFamily: AppFonts_1.AppFonts.interBold,
556
- color: AppColors_1.AppColors.grayTextWeak,
582
+ color: colors.grayTextWeak,
557
583
  fontSize: 10,
558
584
  marginRight: 6,
559
585
  minWidth: 20,
@@ -590,7 +616,7 @@ const styles = react_native_1.StyleSheet.create({
590
616
  },
591
617
  cardDateText: {
592
618
  fontFamily: AppFonts_1.AppFonts.interRegular,
593
- color: AppColors_1.AppColors.grayTextWeak,
619
+ color: colors.grayTextWeak,
594
620
  fontSize: 10,
595
621
  letterSpacing: 0.2,
596
622
  },
@@ -602,19 +628,19 @@ const styles = react_native_1.StyleSheet.create({
602
628
  },
603
629
  urlPathText: {
604
630
  fontFamily: AppFonts_1.AppFonts.interMedium,
605
- color: AppColors_1.AppColors.primaryBlack,
631
+ color: colors.primaryBlack,
606
632
  fontSize: 13,
607
633
  flexShrink: 1,
608
634
  },
609
635
  urlDomainText: {
610
636
  fontFamily: AppFonts_1.AppFonts.interRegular,
611
- color: AppColors_1.AppColors.grayText,
637
+ color: colors.grayText,
612
638
  fontSize: 11,
613
639
  flex: 1,
614
640
  },
615
641
  requestTypeText: {
616
642
  fontFamily: AppFonts_1.AppFonts.interRegular,
617
- color: AppColors_1.AppColors.grayText,
643
+ color: colors.grayText,
618
644
  fontSize: 10,
619
645
  },
620
646
  methodBadge: {
@@ -635,7 +661,7 @@ const styles = react_native_1.StyleSheet.create({
635
661
  },
636
662
  timelineTrack: {
637
663
  height: 3,
638
- backgroundColor: AppColors_1.AppColors.graySurface,
664
+ backgroundColor: colors.graySurface,
639
665
  marginTop: 4,
640
666
  borderRadius: 1.5,
641
667
  overflow: 'hidden',
@@ -647,7 +673,7 @@ const styles = react_native_1.StyleSheet.create({
647
673
  alignItems: 'center',
648
674
  justifyContent: 'center',
649
675
  },
650
- emptyIcon: { fontSize: 32, color: AppColors_1.AppColors.grayTextWeak },
676
+ emptyIcon: { fontSize: 32, color: colors.grayTextWeak },
651
677
  emptyContainer: {
652
678
  flex: 1,
653
679
  alignItems: 'center',
@@ -659,7 +685,7 @@ const styles = react_native_1.StyleSheet.create({
659
685
  width: 72,
660
686
  height: 72,
661
687
  borderRadius: 36,
662
- backgroundColor: AppColors_1.AppColors.purpleShade50,
688
+ backgroundColor: colors.purpleShade50,
663
689
  alignItems: 'center',
664
690
  justifyContent: 'center',
665
691
  marginBottom: 20,
@@ -671,14 +697,14 @@ const styles = react_native_1.StyleSheet.create({
671
697
  },
672
698
  emptyTitle: {
673
699
  fontFamily: AppFonts_1.AppFonts.interBold,
674
- color: AppColors_1.AppColors.grayTextStrong,
700
+ color: colors.grayTextStrong,
675
701
  fontSize: 18,
676
702
  marginBottom: 8,
677
703
  letterSpacing: 0.3,
678
704
  },
679
705
  emptySub: {
680
706
  fontFamily: AppFonts_1.AppFonts.interRegular,
681
- color: AppColors_1.AppColors.grayTextWeak,
707
+ color: colors.grayTextWeak,
682
708
  fontSize: 14,
683
709
  textAlign: 'center',
684
710
  lineHeight: 20,
@@ -688,9 +714,9 @@ const styles = react_native_1.StyleSheet.create({
688
714
  marginTop: 28,
689
715
  paddingHorizontal: 24,
690
716
  paddingVertical: 12,
691
- backgroundColor: AppColors_1.AppColors.purple,
717
+ backgroundColor: colors.purple,
692
718
  borderRadius: 24,
693
- shadowColor: AppColors_1.AppColors.purple,
719
+ shadowColor: colors.purple,
694
720
  shadowOffset: { width: 0, height: 4 },
695
721
  shadowOpacity: 0.35,
696
722
  shadowRadius: 8,
@@ -708,8 +734,8 @@ const styles = react_native_1.StyleSheet.create({
708
734
  paddingHorizontal: 10,
709
735
  marginBottom: 12,
710
736
  borderWidth: 1,
711
- borderColor: AppColors_1.AppColors.grayBorderSecondary,
712
- backgroundColor: AppColors_1.AppColors.primaryLight,
737
+ borderColor: colors.grayBorderSecondary,
738
+ backgroundColor: colors.primaryLight,
713
739
  shadowColor: '#000000',
714
740
  shadowOffset: { width: 0, height: 2 },
715
741
  shadowOpacity: 0.05,
@@ -729,11 +755,11 @@ const styles = react_native_1.StyleSheet.create({
729
755
  letterSpacing: 0.5,
730
756
  },
731
757
  detailUrlContainer: {
732
- backgroundColor: AppColors_1.AppColors.grayBackground,
758
+ backgroundColor: colors.grayBackground,
733
759
  borderRadius: 10,
734
760
  padding: 13,
735
761
  borderWidth: 1,
736
- borderColor: AppColors_1.AppColors.grayBorderSecondary,
762
+ borderColor: colors.grayBorderSecondary,
737
763
  shadowColor: '#000000',
738
764
  shadowOffset: { width: 0, height: 1 },
739
765
  shadowOpacity: 0.04,
@@ -742,16 +768,16 @@ const styles = react_native_1.StyleSheet.create({
742
768
  },
743
769
  detailUrl: {
744
770
  fontFamily: AppFonts_1.AppFonts.interRegular,
745
- color: AppColors_1.AppColors.purple,
771
+ color: colors.purple,
746
772
  fontSize: 13,
747
773
  lineHeight: 20,
748
774
  textDecorationLine: 'underline',
749
775
  letterSpacing: 0.2,
750
776
  },
751
777
  metaContainer: {
752
- backgroundColor: AppColors_1.AppColors.primaryLight,
778
+ backgroundColor: colors.primaryLight,
753
779
  borderWidth: 1,
754
- borderColor: AppColors_1.AppColors.grayBorderSecondary,
780
+ borderColor: colors.grayBorderSecondary,
755
781
  borderRadius: 14,
756
782
  marginBottom: 12,
757
783
  overflow: 'hidden',
@@ -768,19 +794,19 @@ const styles = react_native_1.StyleSheet.create({
768
794
  paddingHorizontal: 12,
769
795
  paddingVertical: 10,
770
796
  borderBottomWidth: 1,
771
- borderBottomColor: AppColors_1.AppColors.dividerColor,
772
- backgroundColor: AppColors_1.AppColors.primaryLight,
797
+ borderBottomColor: colors.dividerColor,
798
+ backgroundColor: colors.primaryLight,
773
799
  },
774
800
  metaTitle: {
775
801
  fontFamily: AppFonts_1.AppFonts.interBold,
776
- color: AppColors_1.AppColors.grayTextStrong,
802
+ color: colors.grayTextStrong,
777
803
  fontSize: 12,
778
804
  letterSpacing: 0.6,
779
805
  textTransform: 'uppercase',
780
806
  },
781
807
  metaChevron: {
782
808
  fontFamily: AppFonts_1.AppFonts.interRegular,
783
- color: AppColors_1.AppColors.grayTextWeak,
809
+ color: colors.grayTextWeak,
784
810
  fontSize: 11,
785
811
  },
786
812
  metaBody: { paddingHorizontal: 12, paddingBottom: 8, paddingTop: 4 },
@@ -790,16 +816,16 @@ const styles = react_native_1.StyleSheet.create({
790
816
  justifyContent: 'space-between',
791
817
  paddingVertical: 8,
792
818
  },
793
- metaDivider: { height: 1, backgroundColor: AppColors_1.AppColors.dividerColor },
819
+ metaDivider: { height: 1, backgroundColor: colors.dividerColor },
794
820
  metaLabelRow: { flexDirection: 'row', alignItems: 'center', gap: 8 },
795
821
  metaLabel: {
796
822
  fontFamily: AppFonts_1.AppFonts.interRegular,
797
- color: AppColors_1.AppColors.grayText,
823
+ color: colors.grayText,
798
824
  fontSize: 13,
799
825
  },
800
826
  metaValue: {
801
827
  fontFamily: AppFonts_1.AppFonts.interMedium,
802
- color: AppColors_1.AppColors.primaryBlack,
828
+ color: colors.primaryBlack,
803
829
  fontSize: 13,
804
830
  },
805
831
  metaValueRow: { flexDirection: 'row', alignItems: 'center', gap: 8 },
@@ -815,7 +841,7 @@ const styles = react_native_1.StyleSheet.create({
815
841
  },
816
842
  seperator: {
817
843
  height: 1,
818
- backgroundColor: AppColors_1.AppColors.dividerColor,
844
+ backgroundColor: colors.dividerColor,
819
845
  marginVertical: 10,
820
846
  },
821
847
  detailSearchRow: {
@@ -828,22 +854,22 @@ const styles = react_native_1.StyleSheet.create({
828
854
  flexDirection: 'row',
829
855
  alignItems: 'center',
830
856
  justifyContent: 'space-between',
831
- backgroundColor: AppColors_1.AppColors.primaryLight,
857
+ backgroundColor: colors.primaryLight,
832
858
  borderRadius: 12,
833
859
  paddingLeft: 16,
834
860
  borderWidth: 1,
835
- borderColor: AppColors_1.AppColors.grayBorderSecondary,
861
+ borderColor: colors.grayBorderSecondary,
836
862
  },
837
863
  detailSearchInput: {
838
864
  flex: 1,
839
865
  fontFamily: AppFonts_1.AppFonts.interRegular,
840
- color: AppColors_1.AppColors.primaryBlack,
866
+ color: colors.primaryBlack,
841
867
  height: 40,
842
868
  },
843
869
  sectionContainer: {
844
- backgroundColor: AppColors_1.AppColors.primaryLight,
870
+ backgroundColor: colors.primaryLight,
845
871
  borderWidth: 1,
846
- borderColor: AppColors_1.AppColors.grayBorderSecondary,
872
+ borderColor: colors.grayBorderSecondary,
847
873
  borderRadius: 12,
848
874
  marginBottom: 10,
849
875
  overflow: 'hidden',
@@ -853,7 +879,7 @@ const styles = react_native_1.StyleSheet.create({
853
879
  paddingVertical: 12,
854
880
  paddingHorizontal: 8,
855
881
  borderBottomWidth: 1,
856
- borderBottomColor: AppColors_1.AppColors.dividerColor,
882
+ borderBottomColor: colors.dividerColor,
857
883
  },
858
884
  sectionHeaderRow: {
859
885
  flexDirection: 'row',
@@ -869,16 +895,16 @@ const styles = react_native_1.StyleSheet.create({
869
895
  },
870
896
  sectionTitle: {
871
897
  fontFamily: AppFonts_1.AppFonts.interBold,
872
- color: AppColors_1.AppColors.grayTextStrong,
898
+ color: colors.grayTextStrong,
873
899
  fontSize: 14,
874
900
  flexShrink: 1,
875
901
  },
876
902
  sectionHeaderActions: { flexDirection: 'row', alignItems: 'center', gap: 6 },
877
903
  htCard: {
878
- backgroundColor: AppColors_1.AppColors.primaryLight,
904
+ backgroundColor: colors.primaryLight,
879
905
  borderRadius: 12,
880
906
  borderWidth: 1,
881
- borderColor: AppColors_1.AppColors.grayBorderSecondary,
907
+ borderColor: colors.grayBorderSecondary,
882
908
  borderLeftWidth: 3,
883
909
  marginBottom: 10,
884
910
  overflow: 'hidden',
@@ -890,8 +916,8 @@ const styles = react_native_1.StyleSheet.create({
890
916
  paddingVertical: 10,
891
917
  gap: 8,
892
918
  borderBottomWidth: 1,
893
- borderBottomColor: AppColors_1.AppColors.dividerColor,
894
- backgroundColor: AppColors_1.AppColors.primaryLight,
919
+ borderBottomColor: colors.dividerColor,
920
+ backgroundColor: colors.primaryLight,
895
921
  },
896
922
  htIconWrap: {
897
923
  width: 28,
@@ -902,7 +928,7 @@ const styles = react_native_1.StyleSheet.create({
902
928
  },
903
929
  htTitle: {
904
930
  fontFamily: AppFonts_1.AppFonts.interBold,
905
- color: AppColors_1.AppColors.grayTextStrong,
931
+ color: colors.grayTextStrong,
906
932
  fontSize: 13,
907
933
  flexShrink: 1,
908
934
  },
@@ -922,8 +948,8 @@ const styles = react_native_1.StyleSheet.create({
922
948
  height: 30,
923
949
  borderRadius: 8,
924
950
  borderWidth: 1,
925
- borderColor: AppColors_1.AppColors.grayBorderSecondary,
926
- backgroundColor: AppColors_1.AppColors.primaryLight,
951
+ borderColor: colors.grayBorderSecondary,
952
+ backgroundColor: colors.primaryLight,
927
953
  alignItems: 'center',
928
954
  justifyContent: 'center',
929
955
  },
@@ -931,13 +957,13 @@ const styles = react_native_1.StyleSheet.create({
931
957
  flexDirection: 'row',
932
958
  paddingHorizontal: 8,
933
959
  paddingVertical: 6,
934
- backgroundColor: AppColors_1.AppColors.graySurface,
960
+ backgroundColor: colors.graySurface,
935
961
  borderBottomWidth: 1,
936
- borderBottomColor: AppColors_1.AppColors.dividerColor,
962
+ borderBottomColor: colors.dividerColor,
937
963
  },
938
964
  htColHead: {
939
965
  fontFamily: AppFonts_1.AppFonts.interBold,
940
- color: AppColors_1.AppColors.grayTextWeak,
966
+ color: colors.grayTextWeak,
941
967
  fontSize: 10,
942
968
  letterSpacing: 0.8,
943
969
  textTransform: 'uppercase',
@@ -950,7 +976,7 @@ const styles = react_native_1.StyleSheet.create({
950
976
  },
951
977
  htRowBorder: {
952
978
  borderBottomWidth: react_native_1.StyleSheet.hairlineWidth,
953
- borderBottomColor: AppColors_1.AppColors.dividerColor,
979
+ borderBottomColor: colors.dividerColor,
954
980
  },
955
981
  htKeyCell: {
956
982
  width: '30%',
@@ -959,13 +985,13 @@ const styles = react_native_1.StyleSheet.create({
959
985
  },
960
986
  htKey: {
961
987
  fontFamily: AppFonts_1.AppFonts.interMedium,
962
- color: AppColors_1.AppColors.purple,
988
+ color: colors.purple,
963
989
  fontSize: 11,
964
990
  lineHeight: 16,
965
991
  },
966
992
  htCellDivider: {
967
993
  width: react_native_1.StyleSheet.hairlineWidth,
968
- backgroundColor: AppColors_1.AppColors.dividerColor,
994
+ backgroundColor: colors.dividerColor,
969
995
  alignSelf: 'stretch',
970
996
  marginVertical: 4,
971
997
  },
@@ -976,7 +1002,7 @@ const styles = react_native_1.StyleSheet.create({
976
1002
  },
977
1003
  htValue: {
978
1004
  fontFamily: AppFonts_1.AppFonts.interRegular,
979
- color: AppColors_1.AppColors.primaryBlack,
1005
+ color: colors.primaryBlack,
980
1006
  fontSize: 11,
981
1007
  lineHeight: 17,
982
1008
  },
@@ -985,7 +1011,7 @@ const styles = react_native_1.StyleSheet.create({
985
1011
  },
986
1012
  htExpandText: {
987
1013
  fontFamily: AppFonts_1.AppFonts.interBold,
988
- color: AppColors_1.AppColors.purple,
1014
+ color: colors.purple,
989
1015
  fontSize: 10,
990
1016
  letterSpacing: 0.3,
991
1017
  },
@@ -1002,7 +1028,7 @@ const styles = react_native_1.StyleSheet.create({
1002
1028
  },
1003
1029
  htEmptyText: {
1004
1030
  fontFamily: AppFonts_1.AppFonts.interRegular,
1005
- color: AppColors_1.AppColors.grayTextWeak,
1031
+ color: colors.grayTextWeak,
1006
1032
  fontSize: 12,
1007
1033
  },
1008
1034
  iconSquareBtn: {
@@ -1010,18 +1036,18 @@ const styles = react_native_1.StyleSheet.create({
1010
1036
  height: 30,
1011
1037
  borderRadius: 8,
1012
1038
  borderWidth: 1,
1013
- borderColor: AppColors_1.AppColors.grayBorderSecondary,
1014
- backgroundColor: AppColors_1.AppColors.grayBackground,
1039
+ borderColor: colors.grayBorderSecondary,
1040
+ backgroundColor: colors.grayBackground,
1015
1041
  alignItems: 'center',
1016
1042
  justifyContent: 'center',
1017
1043
  },
1018
1044
  iconSquareBtnSuccess: {
1019
- borderColor: AppColors_1.AppColors.greenColor,
1020
- backgroundColor: AppColors_1.AppColors.greenStatus,
1045
+ borderColor: colors.greenColor,
1046
+ backgroundColor: colors.greenStatus,
1021
1047
  },
1022
1048
  iconSquareBtnActive: {
1023
- borderColor: AppColors_1.AppColors.skyBlue,
1024
- backgroundColor: AppColors_1.AppColors.purpleShade50,
1049
+ borderColor: colors.skyBlue,
1050
+ backgroundColor: colors.purpleShade50,
1025
1051
  },
1026
1052
  codeBlockScroll: { width: '100%', backgroundColor: 'transparent' },
1027
1053
  codeBlock: {
@@ -1031,35 +1057,35 @@ const styles = react_native_1.StyleSheet.create({
1031
1057
  minWidth: '100%',
1032
1058
  },
1033
1059
  codeSyntax: {
1034
- color: AppColors_1.AppColors.grayTextWeak,
1060
+ color: colors.grayTextWeak,
1035
1061
  fontFamily: react_native_1.Platform.OS === 'ios' ? 'Menlo' : 'monospace',
1036
1062
  },
1037
1063
  codeKey: {
1038
- color: AppColors_1.AppColors.purple,
1064
+ color: colors.purple,
1039
1065
  fontFamily: react_native_1.Platform.OS === 'ios' ? 'Menlo' : 'monospace',
1040
1066
  },
1041
1067
  codeText: {
1042
- color: AppColors_1.AppColors.greenBaggageText,
1068
+ color: colors.greenBaggageText,
1043
1069
  fontFamily: react_native_1.Platform.OS === 'ios' ? 'Menlo' : 'monospace',
1044
1070
  },
1045
1071
  codeTextNil: {
1046
- color: AppColors_1.AppColors.errorColor,
1072
+ color: colors.errorColor,
1047
1073
  fontFamily: react_native_1.Platform.OS === 'ios' ? 'Menlo' : 'monospace',
1048
1074
  },
1049
1075
  treeRow: { flexDirection: 'row', alignItems: 'center', paddingVertical: 6 },
1050
1076
  treeChevron: {
1051
1077
  fontFamily: AppFonts_1.AppFonts.interRegular,
1052
- color: AppColors_1.AppColors.grayTextWeak,
1078
+ color: colors.grayTextWeak,
1053
1079
  marginRight: 8,
1054
1080
  },
1055
1081
  treeKeyMargin: { marginRight: 6 },
1056
1082
  highlight: {
1057
- backgroundColor: AppColors_1.AppColors.paleYellow,
1058
- color: AppColors_1.AppColors.primaryBlack,
1083
+ backgroundColor: colors.paleYellow,
1084
+ color: colors.primaryBlack,
1059
1085
  },
1060
1086
  arrayBadge: {
1061
- backgroundColor: AppColors_1.AppColors.purpleShade50,
1062
- borderColor: AppColors_1.AppColors.purple,
1087
+ backgroundColor: colors.purpleShade50,
1088
+ borderColor: colors.purple,
1063
1089
  borderWidth: 1,
1064
1090
  borderRadius: 6,
1065
1091
  paddingHorizontal: 6,
@@ -1067,12 +1093,12 @@ const styles = react_native_1.StyleSheet.create({
1067
1093
  },
1068
1094
  arrayBadgeText: {
1069
1095
  fontFamily: AppFonts_1.AppFonts.interMedium,
1070
- color: AppColors_1.AppColors.purple,
1096
+ color: colors.purple,
1071
1097
  fontSize: 11,
1072
1098
  },
1073
1099
  objectBadge: {
1074
- backgroundColor: AppColors_1.AppColors.grayBackground,
1075
- borderColor: AppColors_1.AppColors.grayTextWeak,
1100
+ backgroundColor: colors.grayBackground,
1101
+ borderColor: colors.grayTextWeak,
1076
1102
  borderWidth: 1,
1077
1103
  borderRadius: 6,
1078
1104
  paddingHorizontal: 6,
@@ -1080,22 +1106,22 @@ const styles = react_native_1.StyleSheet.create({
1080
1106
  },
1081
1107
  objectBadgeText: {
1082
1108
  fontFamily: AppFonts_1.AppFonts.interMedium,
1083
- color: AppColors_1.AppColors.grayTextWeak,
1109
+ color: colors.grayTextWeak,
1084
1110
  fontSize: 11,
1085
1111
  },
1086
1112
  diffBlock: { paddingTop: 12, paddingHorizontal: 12, paddingBottom: 16, gap: 4 },
1087
1113
  diffAdded: {
1088
- color: AppColors_1.AppColors.greenColor,
1114
+ color: colors.greenColor,
1089
1115
  fontFamily: react_native_1.Platform.OS === 'ios' ? 'Menlo' : 'monospace',
1090
1116
  fontSize: 12,
1091
1117
  },
1092
1118
  diffRemoved: {
1093
- color: AppColors_1.AppColors.errorColor,
1119
+ color: colors.errorColor,
1094
1120
  fontFamily: react_native_1.Platform.OS === 'ios' ? 'Menlo' : 'monospace',
1095
1121
  fontSize: 12,
1096
1122
  },
1097
1123
  diffChanged: {
1098
- color: AppColors_1.AppColors.lightOrange,
1124
+ color: colors.lightOrange,
1099
1125
  fontFamily: react_native_1.Platform.OS === 'ios' ? 'Menlo' : 'monospace',
1100
1126
  fontSize: 12,
1101
1127
  },
@@ -1103,11 +1129,11 @@ const styles = react_native_1.StyleSheet.create({
1103
1129
  filePreviewCard: {
1104
1130
  flexDirection: 'row',
1105
1131
  alignItems: 'center',
1106
- backgroundColor: AppColors_1.AppColors.grayBackground,
1132
+ backgroundColor: colors.grayBackground,
1107
1133
  borderRadius: 10,
1108
1134
  padding: 10,
1109
1135
  borderWidth: 1,
1110
- borderColor: AppColors_1.AppColors.grayBorderSecondary,
1136
+ borderColor: colors.grayBorderSecondary,
1111
1137
  gap: 12,
1112
1138
  maxWidth: 300,
1113
1139
  },
@@ -1115,25 +1141,25 @@ const styles = react_native_1.StyleSheet.create({
1115
1141
  width: 44,
1116
1142
  height: 44,
1117
1143
  borderRadius: 6,
1118
- backgroundColor: AppColors_1.AppColors.grayBorderSecondary,
1144
+ backgroundColor: colors.grayBorderSecondary,
1119
1145
  },
1120
1146
  filePreviewDoc: {
1121
1147
  width: 44,
1122
1148
  height: 44,
1123
1149
  borderRadius: 6,
1124
- backgroundColor: AppColors_1.AppColors.graySurface,
1150
+ backgroundColor: colors.graySurface,
1125
1151
  alignItems: 'center',
1126
1152
  justifyContent: 'center',
1127
1153
  },
1128
1154
  filePreviewName: {
1129
1155
  fontFamily: AppFonts_1.AppFonts.interMedium,
1130
- color: AppColors_1.AppColors.primaryBlack,
1156
+ color: colors.primaryBlack,
1131
1157
  fontSize: 13,
1132
1158
  marginBottom: 2,
1133
1159
  },
1134
1160
  filePreviewType: {
1135
1161
  fontFamily: AppFonts_1.AppFonts.interRegular,
1136
- color: AppColors_1.AppColors.grayText,
1162
+ color: colors.grayText,
1137
1163
  fontSize: 11,
1138
1164
  },
1139
1165
  imagePreviewWrapper: {
@@ -1142,9 +1168,9 @@ const styles = react_native_1.StyleSheet.create({
1142
1168
  borderRadius: 12,
1143
1169
  overflow: 'hidden',
1144
1170
  marginBottom: 16,
1145
- backgroundColor: AppColors_1.AppColors.grayBackground,
1171
+ backgroundColor: colors.grayBackground,
1146
1172
  borderWidth: 1,
1147
- borderColor: AppColors_1.AppColors.grayBorderSecondary,
1173
+ borderColor: colors.grayBorderSecondary,
1148
1174
  },
1149
1175
  imagePreview: {
1150
1176
  width: '100%',
@@ -1167,9 +1193,9 @@ const styles = react_native_1.StyleSheet.create({
1167
1193
  elevation: 3,
1168
1194
  },
1169
1195
  sourcePageCard: {
1170
- backgroundColor: AppColors_1.AppColors.primaryLight,
1196
+ backgroundColor: colors.primaryLight,
1171
1197
  borderWidth: 1,
1172
- borderColor: AppColors_1.AppColors.grayBorderSecondary,
1198
+ borderColor: colors.grayBorderSecondary,
1173
1199
  borderRadius: 12,
1174
1200
  marginBottom: 10,
1175
1201
  overflow: 'hidden',
@@ -1181,8 +1207,8 @@ const styles = react_native_1.StyleSheet.create({
1181
1207
  paddingHorizontal: 12,
1182
1208
  paddingVertical: 10,
1183
1209
  borderBottomWidth: 1,
1184
- borderBottomColor: AppColors_1.AppColors.dividerColor,
1185
- backgroundColor: AppColors_1.AppColors.primaryLight,
1210
+ borderBottomColor: colors.dividerColor,
1211
+ backgroundColor: colors.primaryLight,
1186
1212
  },
1187
1213
  sourcePageTop: {
1188
1214
  flexDirection: 'row',
@@ -1199,26 +1225,26 @@ const styles = react_native_1.StyleSheet.create({
1199
1225
  width: 36,
1200
1226
  height: 36,
1201
1227
  borderRadius: 10,
1202
- backgroundColor: AppColors_1.AppColors.purpleShade50,
1228
+ backgroundColor: colors.purpleShade50,
1203
1229
  borderWidth: 1,
1204
- borderColor: `${AppColors_1.AppColors.purple}30`,
1230
+ borderColor: `${colors.purple}30`,
1205
1231
  alignItems: 'center',
1206
1232
  justifyContent: 'center',
1207
1233
  },
1208
1234
  sourcePageLabel: {
1209
1235
  fontFamily: AppFonts_1.AppFonts.interRegular,
1210
- color: AppColors_1.AppColors.grayText,
1236
+ color: colors.grayText,
1211
1237
  fontSize: 11,
1212
1238
  marginBottom: 2,
1213
1239
  },
1214
1240
  sourcePageValue: {
1215
1241
  fontFamily: AppFonts_1.AppFonts.interBold,
1216
- color: AppColors_1.AppColors.purple,
1242
+ color: colors.purple,
1217
1243
  fontSize: 14,
1218
1244
  },
1219
1245
  sourceParamsBox: {
1220
1246
  borderTopWidth: 1,
1221
- borderTopColor: AppColors_1.AppColors.dividerColor,
1247
+ borderTopColor: colors.dividerColor,
1222
1248
  },
1223
1249
  paramsAccordionHeader: {
1224
1250
  flexDirection: 'row',
@@ -1227,7 +1253,7 @@ const styles = react_native_1.StyleSheet.create({
1227
1253
  paddingHorizontal: 12,
1228
1254
  paddingVertical: 10,
1229
1255
  borderBottomWidth: 1,
1230
- borderBottomColor: AppColors_1.AppColors.dividerColor,
1256
+ borderBottomColor: colors.dividerColor,
1231
1257
  backgroundColor: '#fafafa',
1232
1258
  },
1233
1259
  paramsAccordionLeft: {
@@ -1242,7 +1268,7 @@ const styles = react_native_1.StyleSheet.create({
1242
1268
  },
1243
1269
  sourceParamsLabel: {
1244
1270
  fontFamily: AppFonts_1.AppFonts.interBold,
1245
- color: AppColors_1.AppColors.grayTextStrong,
1271
+ color: colors.grayTextStrong,
1246
1272
  fontSize: 12,
1247
1273
  letterSpacing: 0.4,
1248
1274
  textTransform: 'uppercase',
@@ -1261,11 +1287,11 @@ const styles = react_native_1.StyleSheet.create({
1261
1287
  },
1262
1288
  paramRowBorder: {
1263
1289
  borderBottomWidth: 1,
1264
- borderBottomColor: AppColors_1.AppColors.dividerColor,
1290
+ borderBottomColor: colors.dividerColor,
1265
1291
  },
1266
1292
  paramKey: {
1267
1293
  fontFamily: AppFonts_1.AppFonts.Sfprotext,
1268
- color: AppColors_1.AppColors.purple,
1294
+ color: colors.purple,
1269
1295
  fontSize: 12,
1270
1296
  flex: 1,
1271
1297
  },
@@ -1278,7 +1304,7 @@ const styles = react_native_1.StyleSheet.create({
1278
1304
  },
1279
1305
  paramValue: {
1280
1306
  fontFamily: AppFonts_1.AppFonts.Sfprotext,
1281
- color: AppColors_1.AppColors.greenBaggageText,
1307
+ color: colors.greenBaggageText,
1282
1308
  fontSize: 12,
1283
1309
  textAlign: 'right',
1284
1310
  flexShrink: 1,
@@ -1300,7 +1326,7 @@ const styles = react_native_1.StyleSheet.create({
1300
1326
  // ─── Tab Bar ───────────────────────────────────────────────────────────────
1301
1327
  tabBar: {
1302
1328
  flexDirection: 'row',
1303
- backgroundColor: AppColors_1.AppColors.grayBackground,
1329
+ backgroundColor: colors.grayBackground,
1304
1330
  paddingHorizontal: 12,
1305
1331
  paddingTop: 10,
1306
1332
  paddingBottom: 4,
@@ -1315,8 +1341,8 @@ const styles = react_native_1.StyleSheet.create({
1315
1341
  backgroundColor: '#EDEDF4',
1316
1342
  },
1317
1343
  tabItemActive: {
1318
- backgroundColor: AppColors_1.AppColors.purple,
1319
- shadowColor: AppColors_1.AppColors.purple,
1344
+ backgroundColor: colors.purple,
1345
+ shadowColor: colors.purple,
1320
1346
  shadowOpacity: 0.3,
1321
1347
  shadowRadius: 6,
1322
1348
  shadowOffset: { width: 0, height: 2 },
@@ -1325,7 +1351,7 @@ const styles = react_native_1.StyleSheet.create({
1325
1351
  tabText: {
1326
1352
  fontFamily: AppFonts_1.AppFonts.interBold,
1327
1353
  fontSize: 13,
1328
- color: AppColors_1.AppColors.grayText,
1354
+ color: colors.grayText,
1329
1355
  },
1330
1356
  tabTextActive: {
1331
1357
  color: '#FFFFFF',
@@ -1340,18 +1366,231 @@ const styles = react_native_1.StyleSheet.create({
1340
1366
  backgroundColor: '#F7F7FA',
1341
1367
  borderTopWidth: 1,
1342
1368
  borderBottomWidth: 1,
1343
- borderColor: AppColors_1.AppColors.grayBorderSecondary,
1369
+ borderColor: colors.grayBorderSecondary,
1344
1370
  marginTop: 8,
1345
1371
  },
1346
1372
  screenSectionTitle: {
1347
1373
  fontFamily: AppFonts_1.AppFonts.interBold,
1348
1374
  fontSize: 13,
1349
- color: AppColors_1.AppColors.primaryBlack,
1375
+ color: colors.primaryBlack,
1350
1376
  },
1351
1377
  screenSectionCount: {
1352
1378
  fontFamily: AppFonts_1.AppFonts.interMedium,
1353
1379
  fontSize: 12,
1354
- color: AppColors_1.AppColors.grayText,
1380
+ color: colors.grayText,
1381
+ },
1382
+ modalBackdrop: {
1383
+ flex: 1,
1384
+ backgroundColor: 'rgba(0, 0, 0, 0.45)',
1385
+ justifyContent: 'flex-end',
1386
+ },
1387
+ modalBackdropPressable: {
1388
+ ...react_native_1.StyleSheet.absoluteFill,
1389
+ },
1390
+ modalContentCard: {
1391
+ height: '90%',
1392
+ backgroundColor: colors.grayBackground,
1393
+ borderTopLeftRadius: 20,
1394
+ borderTopRightRadius: 20,
1395
+ overflow: 'hidden',
1396
+ shadowColor: '#000000',
1397
+ shadowOffset: { width: 0, height: -4 },
1398
+ shadowOpacity: 0.15,
1399
+ shadowRadius: 10,
1400
+ elevation: 24,
1401
+ },
1402
+ tabBarContainer: {
1403
+ backgroundColor: colors.primaryLight,
1404
+ borderBottomWidth: 1,
1405
+ borderBottomColor: colors.dividerColor,
1406
+ paddingVertical: 8,
1407
+ paddingHorizontal: 12,
1408
+ },
1409
+ contentTabButton: {
1410
+ flexDirection: 'row',
1411
+ alignItems: 'center',
1412
+ paddingHorizontal: 10,
1413
+ paddingVertical: 5,
1414
+ borderRadius: 8,
1415
+ marginRight: 10,
1416
+ backgroundColor: colors.grayBackground,
1417
+ borderWidth: 1,
1418
+ borderColor: colors.dividerColor,
1419
+ },
1420
+ contentTabButtonActive: {
1421
+ backgroundColor: colors.purple,
1422
+ borderColor: colors.purple,
1423
+ shadowColor: colors.purple,
1424
+ shadowOffset: { width: 0, height: 2 },
1425
+ shadowOpacity: 0.12,
1426
+ shadowRadius: 3,
1427
+ elevation: 3,
1428
+ },
1429
+ contentTabButtonText: {
1430
+ fontFamily: AppFonts_1.AppFonts.interMedium,
1431
+ fontSize: 11.5,
1432
+ color: colors.grayText,
1433
+ },
1434
+ contentTabButtonTextActive: {
1435
+ color: '#FFFFFF',
1436
+ fontWeight: 'bold',
1437
+ },
1438
+ insightsContainer: {
1439
+ flex: 1,
1440
+ backgroundColor: colors.grayBackground,
1441
+ },
1442
+ insightsContent: {
1443
+ padding: 10,
1444
+ paddingBottom: 24,
1445
+ },
1446
+ dashboardContainer: {
1447
+ gap: 10,
1448
+ },
1449
+ dashboardModuleCard: {
1450
+ backgroundColor: '#FFFFFF',
1451
+ borderRadius: 10,
1452
+ borderWidth: 1,
1453
+ borderColor: '#EFEFEF',
1454
+ padding: 12,
1455
+ shadowColor: '#000000',
1456
+ shadowOpacity: 0.03,
1457
+ shadowRadius: 4,
1458
+ shadowOffset: { width: 0, height: 1 },
1459
+ elevation: 1,
1460
+ },
1461
+ dashboardModuleHeader: {
1462
+ flexDirection: 'row',
1463
+ justifyContent: 'space-between',
1464
+ alignItems: 'center',
1465
+ marginBottom: 10,
1466
+ borderBottomWidth: 1,
1467
+ borderBottomColor: '#F3F4F6',
1468
+ paddingBottom: 8,
1469
+ },
1470
+ dashboardModuleTitle: {
1471
+ fontFamily: AppFonts_1.AppFonts.interBold,
1472
+ fontSize: 13,
1473
+ color: colors.primaryBlack,
1474
+ },
1475
+ dashboardModuleGoText: {
1476
+ fontFamily: AppFonts_1.AppFonts.interBold,
1477
+ fontSize: 11,
1478
+ color: colors.purple,
1479
+ },
1480
+ dashboardModuleGrid: {
1481
+ flexDirection: 'row',
1482
+ flexWrap: 'wrap',
1483
+ justifyContent: 'space-between',
1484
+ gap: 8,
1485
+ },
1486
+ dashboardGridItem: {
1487
+ flex: 1,
1488
+ minWidth: '22%',
1489
+ backgroundColor: '#F8FAFC',
1490
+ borderRadius: 8,
1491
+ paddingVertical: 8,
1492
+ paddingHorizontal: 4,
1493
+ alignItems: 'center',
1494
+ justifyContent: 'center',
1495
+ },
1496
+ dashboardGridVal: {
1497
+ fontFamily: AppFonts_1.AppFonts.interBold,
1498
+ fontSize: 13,
1499
+ color: colors.primaryBlack,
1500
+ },
1501
+ dashboardGridLbl: {
1502
+ fontFamily: AppFonts_1.AppFonts.interMedium,
1503
+ fontSize: 10,
1504
+ color: colors.grayTextWeak,
1505
+ marginTop: 2,
1506
+ },
1507
+ analyticsCardRow: {},
1508
+ analyticsTopEventsCard: {
1509
+ marginHorizontal: 16,
1510
+ marginBottom: 12,
1511
+ backgroundColor: colors.primaryLight,
1512
+ borderRadius: 12,
1513
+ borderWidth: 1,
1514
+ borderColor: colors.grayBorderSecondary,
1515
+ paddingHorizontal: 16,
1516
+ paddingVertical: 12,
1517
+ shadowColor: '#000',
1518
+ shadowOpacity: 0.04,
1519
+ shadowRadius: 4,
1520
+ shadowOffset: { width: 0, height: 1 },
1521
+ elevation: 1,
1522
+ },
1523
+ analyticsTopEventsHeaderRow: {
1524
+ flexDirection: 'row',
1525
+ alignItems: 'center',
1526
+ justifyContent: 'space-between',
1527
+ marginBottom: 12,
1528
+ },
1529
+ analyticsTopEventsTitle: {
1530
+ fontFamily: AppFonts_1.AppFonts.interBold,
1531
+ fontSize: 10,
1532
+ color: colors.grayTextWeak,
1533
+ letterSpacing: 0.8,
1534
+ textTransform: 'uppercase',
1535
+ },
1536
+ analyticsTopEventsSubtitle: {
1537
+ fontFamily: AppFonts_1.AppFonts.interMedium,
1538
+ fontSize: 9,
1539
+ color: colors.grayTextWeak,
1540
+ letterSpacing: 0.4,
1541
+ },
1542
+ analyticsTopEventRow: {
1543
+ flexDirection: 'row',
1544
+ alignItems: 'center',
1545
+ marginBottom: 8,
1546
+ gap: 8,
1547
+ },
1548
+ analyticsTopEventName: {
1549
+ fontFamily: AppFonts_1.AppFonts.interMedium,
1550
+ fontSize: 12,
1551
+ color: colors.primaryBlack,
1552
+ flex: 1,
1553
+ },
1554
+ analyticsTopEventBarWrap: {
1555
+ flex: 0.8,
1556
+ height: 3,
1557
+ backgroundColor: colors.grayBackground,
1558
+ borderRadius: 2,
1559
+ overflow: 'hidden',
1560
+ },
1561
+ analyticsTopEventBar: {
1562
+ height: '100%',
1563
+ borderRadius: 2,
1564
+ },
1565
+ analyticsTopEventCount: {
1566
+ fontFamily: AppFonts_1.AppFonts.interBold,
1567
+ fontSize: 11,
1568
+ color: colors.grayText,
1569
+ width: 24,
1570
+ textAlign: 'right',
1571
+ },
1572
+ analyticsIconCircle: {
1573
+ width: 24,
1574
+ height: 24,
1575
+ borderRadius: 12,
1576
+ alignItems: 'center',
1577
+ justifyContent: 'center',
1355
1578
  },
1356
1579
  });
1580
+ exports.getRawStyles = getRawStyles;
1581
+ const styles = {};
1582
+ const rebuildStyles = (isDark) => {
1583
+ const colors = isDark ? (0, AppColors_1.getThemeColors)(true) : AppColors_1.default;
1584
+ const newStyles = (0, exports.getRawStyles)(colors);
1585
+ // Clear old keys and copy new ones
1586
+ Object.keys(styles).forEach(key => delete styles[key]);
1587
+ Object.assign(styles, newStyles);
1588
+ };
1589
+ // Initial build
1590
+ rebuildStyles(false);
1591
+ const toggleGlobalTheme = (isDark) => {
1592
+ (0, AppColors_1.updateAppColorsTheme)(isDark);
1593
+ rebuildStyles(isDark);
1594
+ };
1595
+ exports.toggleGlobalTheme = toggleGlobalTheme;
1357
1596
  exports.default = styles;