react-native-inapp-inspector 2.3.18 → 2.3.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/android/src/main/java/com/inappinspector/NetworkInspectorModule.kt +57 -0
- package/dist/commonjs/analytics.js +1 -24
- package/dist/commonjs/bundle.js +1 -16
- package/dist/commonjs/capture.d.ts +2 -0
- package/dist/commonjs/capture.js +1 -32
- package/dist/commonjs/components/AnalyticsDetail.js +92 -623
- package/dist/commonjs/components/AnalyticsEventCard.js +54 -350
- package/dist/commonjs/components/AnalyticsGraph.js +70 -370
- package/dist/commonjs/components/AnimatedEntrance.js +1 -11
- package/dist/commonjs/components/AppHeaderLogo.js +7 -134
- package/dist/commonjs/components/BrandCircleIcon.js +73 -118
- package/dist/commonjs/components/BrandSquareIcon.js +63 -108
- package/dist/commonjs/components/CodeSnippet.js +48 -623
- package/dist/commonjs/components/ConsoleLogCard.js +63 -537
- package/dist/commonjs/components/CopyButton.js +3 -89
- package/dist/commonjs/components/DiffViewer.js +19 -83
- package/dist/commonjs/components/DomainHeader.js +27 -127
- package/dist/commonjs/components/EmptyState.d.ts +1 -0
- package/dist/commonjs/components/EmptyState.js +10 -87
- package/dist/commonjs/components/EndOfListFooter.js +7 -81
- package/dist/commonjs/components/ErrorBoundary.js +72 -566
- package/dist/commonjs/components/HeadersSection.js +31 -110
- package/dist/commonjs/components/HighlightText.js +17 -58
- package/dist/commonjs/components/Inspector/AboutModal.d.ts +6 -0
- package/dist/commonjs/components/Inspector/AboutModal.js +351 -0
- package/dist/commonjs/components/Inspector/AnalyticsFilterModal.js +98 -797
- package/dist/commonjs/components/Inspector/AnalyticsTab.js +284 -930
- package/dist/commonjs/components/Inspector/BundleTab.js +551 -2918
- package/dist/commonjs/components/Inspector/ConsoleTab.js +79 -492
- package/dist/commonjs/components/Inspector/CrashDetail.js +123 -672
- package/dist/commonjs/components/Inspector/CrashFilterModal.js +66 -498
- package/dist/commonjs/components/Inspector/CrashTab.js +98 -670
- package/dist/commonjs/components/Inspector/DebuggingTab.js +64 -871
- package/dist/commonjs/components/Inspector/DeviceInfoTab.js +143 -907
- package/dist/commonjs/components/Inspector/FabLauncher.js +85 -54
- package/dist/commonjs/components/Inspector/FeatureUnderDevNotice.js +6 -99
- package/dist/commonjs/components/Inspector/FeedbackModal.d.ts +9 -0
- package/dist/commonjs/components/Inspector/FeedbackModal.js +167 -521
- package/dist/commonjs/components/Inspector/InspectorContext.js +1 -21
- package/dist/commonjs/components/Inspector/InspectorHeader.js +219 -1093
- package/dist/commonjs/components/Inspector/LogDetail.js +168 -994
- package/dist/commonjs/components/Inspector/MainScreen.js +60 -332
- package/dist/commonjs/components/Inspector/MediaGalleryTab.js +136 -278
- package/dist/commonjs/components/Inspector/MediaPreviewModal.js +134 -361
- package/dist/commonjs/components/Inspector/NavigationTracker.js +1 -12
- package/dist/commonjs/components/Inspector/NetworkDetail.js +96 -432
- package/dist/commonjs/components/Inspector/NetworkFilterModal.js +60 -576
- package/dist/commonjs/components/Inspector/NetworkTab.js +84 -514
- package/dist/commonjs/components/Inspector/NpmStarPrompt.js +17 -433
- package/dist/commonjs/components/Inspector/NpmUpdateToast.js +25 -298
- package/dist/commonjs/components/Inspector/PerformanceTab.js +182 -1397
- package/dist/commonjs/components/Inspector/ReduxDetail.js +188 -1089
- package/dist/commonjs/components/Inspector/ReduxTab.js +85 -701
- package/dist/commonjs/components/Inspector/SettingsPanel.js +431 -3431
- package/dist/commonjs/components/Inspector/SkeletonPlaceholder.js +11 -180
- package/dist/commonjs/components/Inspector/StorageTab.js +93 -826
- package/dist/commonjs/components/Inspector/TabBar.js +47 -183
- package/dist/commonjs/components/Inspector/UpdateAvailableModal.js +34 -408
- package/dist/commonjs/components/JsonViewer.js +168 -380
- package/dist/commonjs/components/LogCard.js +57 -567
- package/dist/commonjs/components/LogSyntaxHighlighter.js +11 -130
- package/dist/commonjs/components/MetaAccordion.js +69 -238
- package/dist/commonjs/components/MiniBarChart.js +3 -56
- package/dist/commonjs/components/MiniLineChart.js +3 -58
- package/dist/commonjs/components/NetworkIcons.d.ts +7 -0
- package/dist/commonjs/components/NetworkIcons.js +479 -997
- package/dist/commonjs/components/QRCodeView.js +5 -79
- package/dist/commonjs/components/SectionHeader.js +15 -37
- package/dist/commonjs/components/SegmentedTabs.js +7 -61
- package/dist/commonjs/components/SkeletonPlaceholder.js +11 -180
- package/dist/commonjs/components/Slider.js +15 -243
- package/dist/commonjs/components/SourcePageCard.js +30 -89
- package/dist/commonjs/components/Toast.js +5 -147
- package/dist/commonjs/components/TouchableScale.js +3 -24
- package/dist/commonjs/components/TreeNode.js +55 -130
- package/dist/commonjs/console.js +1 -16
- package/dist/commonjs/constants/index.js +1 -32
- package/dist/commonjs/constants/telemetryConfig.js +1 -6
- package/dist/commonjs/constants/version.d.ts +1 -1
- package/dist/commonjs/constants/version.js +1 -4
- package/dist/commonjs/crash.js +1 -23
- package/dist/commonjs/customHooks/analyticsLogger.js +1 -250
- package/dist/commonjs/customHooks/bundleAnalyzer.js +1 -957
- package/dist/commonjs/customHooks/consoleLogger.js +6 -445
- package/dist/commonjs/customHooks/crashHandler.js +7 -656
- package/dist/commonjs/customHooks/logFilters.js +1 -23
- package/dist/commonjs/customHooks/networkLogger.js +2 -536
- package/dist/commonjs/customHooks/performanceTracker.js +63 -750
- package/dist/commonjs/customHooks/reduxLogger.js +2 -313
- package/dist/commonjs/customHooks/storageInspector.js +1 -435
- package/dist/commonjs/customHooks/useAccordion.js +1 -18
- package/dist/commonjs/decorators/index.js +1 -100
- package/dist/commonjs/helpers/gaAnalyticsRegistry.js +1 -148
- package/dist/commonjs/helpers/index.js +8 -921
- package/dist/commonjs/helpers/memoryManager.js +1 -99
- package/dist/commonjs/helpers/qrGenerator.js +1 -367
- package/dist/commonjs/helpers/remoteConfig.js +1 -165
- package/dist/commonjs/helpers/searchQueryParser.js +1 -62
- package/dist/commonjs/helpers/settingsStore.js +1 -144
- package/dist/commonjs/helpers/telemetry.js +1 -501
- package/dist/commonjs/helpers/toast.js +1 -20
- package/dist/commonjs/i18n/index.js +1 -90
- package/dist/commonjs/i18n/locales/en.json +1 -1122
- package/dist/commonjs/index.js +5 -2153
- package/dist/commonjs/metro.js +6 -468
- package/dist/commonjs/native/NativeInspector.d.ts +3 -0
- package/dist/commonjs/native/NativeInspector.js +1 -402
- package/dist/commonjs/native/NativeNetworkInspector.d.ts +1 -0
- package/dist/commonjs/native/NativeNetworkInspector.js +1 -4
- package/dist/commonjs/network.js +1 -13
- package/dist/commonjs/performance.js +1 -29
- package/dist/commonjs/redux.js +1 -20
- package/dist/commonjs/storage.js +1 -14
- package/dist/commonjs/styles/AppColors.js +1 -423
- package/dist/commonjs/styles/AppFonts.js +1 -17
- package/dist/commonjs/styles/common.js +1 -190
- package/dist/commonjs/styles/index.d.ts +6 -0
- package/dist/commonjs/styles/index.js +1 -1589
- package/dist/commonjs/types/enums.d.ts +2 -1
- package/dist/commonjs/types/enums.js +1 -150
- package/dist/commonjs/types/index.js +1 -18
- package/dist/commonjs/types/interfaces.d.ts +7 -0
- package/dist/commonjs/types/interfaces.js +1 -2
- package/dist/esm/analytics.js +1 -2
- package/dist/esm/bundle.js +1 -2
- package/dist/esm/capture.d.ts +2 -0
- package/dist/esm/capture.js +1 -29
- package/dist/esm/components/AnalyticsDetail.js +171 -664
- package/dist/esm/components/AnalyticsEventCard.js +77 -335
- package/dist/esm/components/AnalyticsGraph.js +95 -357
- package/dist/esm/components/AnimatedEntrance.js +1 -6
- package/dist/esm/components/AppHeaderLogo.js +7 -94
- package/dist/esm/components/BrandCircleIcon.js +114 -119
- package/dist/esm/components/BrandSquareIcon.js +73 -78
- package/dist/esm/components/CodeSnippet.js +58 -595
- package/dist/esm/components/ConsoleLogCard.js +91 -526
- package/dist/esm/components/CopyButton.js +3 -51
- package/dist/esm/components/DiffViewer.js +22 -48
- package/dist/esm/components/DomainHeader.js +43 -138
- package/dist/esm/components/EmptyState.d.ts +1 -0
- package/dist/esm/components/EmptyState.js +17 -56
- package/dist/esm/components/EndOfListFooter.js +15 -83
- package/dist/esm/components/ErrorBoundary.js +125 -582
- package/dist/esm/components/HeadersSection.js +52 -93
- package/dist/esm/components/HighlightText.js +17 -53
- package/dist/esm/components/Inspector/AboutModal.d.ts +6 -0
- package/dist/esm/components/Inspector/AboutModal.js +351 -0
- package/dist/esm/components/Inspector/AnalyticsFilterModal.js +225 -886
- package/dist/esm/components/Inspector/AnalyticsTab.js +296 -904
- package/dist/esm/components/Inspector/BundleTab.js +1175 -3502
- package/dist/esm/components/Inspector/ConsoleTab.js +113 -488
- package/dist/esm/components/Inspector/CrashDetail.js +236 -747
- package/dist/esm/components/Inspector/CrashFilterModal.js +149 -541
- package/dist/esm/components/Inspector/CrashTab.js +177 -711
- package/dist/esm/components/Inspector/DebuggingTab.js +156 -923
- package/dist/esm/components/Inspector/DeviceInfoTab.js +199 -924
- package/dist/esm/components/Inspector/FabLauncher.js +85 -49
- package/dist/esm/components/Inspector/FeatureUnderDevNotice.js +14 -70
- package/dist/esm/components/Inspector/FeedbackModal.d.ts +9 -0
- package/dist/esm/components/Inspector/FeedbackModal.js +182 -499
- package/dist/esm/components/Inspector/InspectorContext.js +1 -12
- package/dist/esm/components/Inspector/InspectorHeader.js +309 -1145
- package/dist/esm/components/Inspector/LogDetail.js +235 -1023
- package/dist/esm/components/Inspector/MainScreen.js +86 -320
- package/dist/esm/components/Inspector/MediaGalleryTab.js +157 -259
- package/dist/esm/components/Inspector/MediaPreviewModal.js +153 -340
- package/dist/esm/components/Inspector/NavigationTracker.js +1 -10
- package/dist/esm/components/Inspector/NetworkDetail.js +141 -472
- package/dist/esm/components/Inspector/NetworkFilterModal.js +122 -597
- package/dist/esm/components/Inspector/NetworkTab.js +125 -517
- package/dist/esm/components/Inspector/NpmStarPrompt.js +58 -434
- package/dist/esm/components/Inspector/NpmUpdateToast.js +45 -281
- package/dist/esm/components/Inspector/PerformanceTab.js +393 -1570
- package/dist/esm/components/Inspector/ReduxDetail.js +307 -1170
- package/dist/esm/components/Inspector/ReduxTab.js +144 -722
- package/dist/esm/components/Inspector/SettingsPanel.js +647 -3609
- package/dist/esm/components/Inspector/SkeletonPlaceholder.js +30 -163
- package/dist/esm/components/Inspector/StorageTab.js +172 -866
- package/dist/esm/components/Inspector/TabBar.js +52 -183
- package/dist/esm/components/Inspector/UpdateAvailableModal.js +79 -416
- package/dist/esm/components/JsonViewer.js +179 -353
- package/dist/esm/components/LogCard.js +93 -565
- package/dist/esm/components/LogSyntaxHighlighter.js +11 -123
- package/dist/esm/components/MetaAccordion.js +136 -267
- package/dist/esm/components/MiniBarChart.js +3 -18
- package/dist/esm/components/MiniLineChart.js +3 -20
- package/dist/esm/components/NetworkIcons.d.ts +7 -0
- package/dist/esm/components/NetworkIcons.js +481 -817
- package/dist/esm/components/QRCodeView.js +8 -45
- package/dist/esm/components/SectionHeader.js +22 -39
- package/dist/esm/components/SegmentedTabs.js +8 -57
- package/dist/esm/components/SkeletonPlaceholder.js +30 -163
- package/dist/esm/components/Slider.js +24 -213
- package/dist/esm/components/SourcePageCard.js +65 -86
- package/dist/esm/components/Toast.js +10 -117
- package/dist/esm/components/TouchableScale.js +3 -19
- package/dist/esm/components/TreeNode.js +58 -95
- package/dist/esm/console.js +1 -2
- package/dist/esm/constants/index.js +1 -28
- package/dist/esm/constants/telemetryConfig.js +1 -3
- package/dist/esm/constants/version.d.ts +1 -1
- package/dist/esm/constants/version.js +1 -1
- package/dist/esm/crash.js +1 -2
- package/dist/esm/customHooks/analyticsLogger.js +1 -230
- package/dist/esm/customHooks/bundleAnalyzer.js +1 -944
- package/dist/esm/customHooks/consoleLogger.js +6 -432
- package/dist/esm/customHooks/crashHandler.js +7 -630
- package/dist/esm/customHooks/logFilters.js +1 -20
- package/dist/esm/customHooks/networkLogger.js +2 -519
- package/dist/esm/customHooks/performanceTracker.js +63 -723
- package/dist/esm/customHooks/reduxLogger.js +2 -293
- package/dist/esm/customHooks/storageInspector.js +1 -418
- package/dist/esm/customHooks/useAccordion.js +1 -16
- package/dist/esm/decorators/index.js +1 -95
- package/dist/esm/helpers/gaAnalyticsRegistry.js +1 -143
- package/dist/esm/helpers/index.js +8 -861
- package/dist/esm/helpers/memoryManager.js +1 -91
- package/dist/esm/helpers/qrGenerator.js +1 -364
- package/dist/esm/helpers/remoteConfig.js +1 -160
- package/dist/esm/helpers/searchQueryParser.js +1 -59
- package/dist/esm/helpers/settingsStore.js +1 -134
- package/dist/esm/helpers/telemetry.js +1 -489
- package/dist/esm/helpers/toast.js +1 -15
- package/dist/esm/i18n/index.js +1 -78
- package/dist/esm/i18n/locales/en.json +1 -1122
- package/dist/esm/index.js +7 -1967
- package/dist/esm/metro.js +6 -459
- package/dist/esm/native/NativeInspector.d.ts +3 -0
- package/dist/esm/native/NativeInspector.js +1 -370
- package/dist/esm/native/NativeNetworkInspector.d.ts +1 -0
- package/dist/esm/native/NativeNetworkInspector.js +1 -2
- package/dist/esm/network.js +1 -1
- package/dist/esm/performance.js +1 -2
- package/dist/esm/redux.js +1 -1
- package/dist/esm/storage.js +1 -1
- package/dist/esm/styles/AppColors.js +1 -417
- package/dist/esm/styles/AppFonts.js +1 -13
- package/dist/esm/styles/common.js +1 -186
- package/dist/esm/styles/index.d.ts +6 -0
- package/dist/esm/styles/index.js +1 -1551
- package/dist/esm/types/enums.d.ts +2 -1
- package/dist/esm/types/enums.js +1 -147
- package/dist/esm/types/index.js +1 -2
- package/dist/esm/types/interfaces.d.ts +7 -0
- package/dist/esm/types/interfaces.js +1 -1
- package/ios/NetworkInspectorModule.mm +253 -136
- package/package.json +5 -3
- package/react-native-inapp-inspector.podspec +1 -1
- package/src/native/NativeInspector.ts +17 -0
- package/src/native/NativeNetworkInspector.ts +1 -0
- package/src/analytics.ts +0 -35
- package/src/bundle.ts +0 -25
- package/src/capture.ts +0 -101
- package/src/components/AnalyticsDetail.tsx +0 -870
- package/src/components/AnalyticsEventCard.tsx +0 -444
- package/src/components/AnalyticsGraph.tsx +0 -583
- package/src/components/AnimatedEntrance.tsx +0 -20
- package/src/components/AppHeaderLogo.tsx +0 -143
- package/src/components/BrandCircleIcon.tsx +0 -144
- package/src/components/BrandSquareIcon.tsx +0 -184
- package/src/components/CodeSnippet.tsx +0 -725
- package/src/components/ConsoleLogCard.tsx +0 -679
- package/src/components/CopyButton.tsx +0 -87
- package/src/components/DiffViewer.tsx +0 -82
- package/src/components/DomainHeader.tsx +0 -224
- package/src/components/EmptyState.tsx +0 -95
- package/src/components/EndOfListFooter.tsx +0 -100
- package/src/components/ErrorBoundary.tsx +0 -688
- package/src/components/HeadersSection.tsx +0 -172
- package/src/components/HighlightText.tsx +0 -100
- package/src/components/Inspector/AnalyticsFilterModal.tsx +0 -1250
- package/src/components/Inspector/AnalyticsTab.tsx +0 -1362
- package/src/components/Inspector/BundleTab.tsx +0 -4768
- package/src/components/Inspector/ConsoleTab.tsx +0 -726
- package/src/components/Inspector/CrashDetail.tsx +0 -997
- package/src/components/Inspector/CrashFilterModal.tsx +0 -721
- package/src/components/Inspector/CrashTab.tsx +0 -933
- package/src/components/Inspector/DebuggingTab.tsx +0 -1103
- package/src/components/Inspector/DeviceInfoTab.tsx +0 -1397
- package/src/components/Inspector/FabLauncher.tsx +0 -80
- package/src/components/Inspector/FeatureUnderDevNotice.tsx +0 -94
- package/src/components/Inspector/FeedbackModal.tsx +0 -626
- package/src/components/Inspector/InspectorContext.tsx +0 -28
- package/src/components/Inspector/InspectorHeader.tsx +0 -1545
- package/src/components/Inspector/LogDetail.tsx +0 -1431
- package/src/components/Inspector/MainScreen.tsx +0 -459
- package/src/components/Inspector/MediaGalleryTab.tsx +0 -355
- package/src/components/Inspector/MediaPreviewModal.tsx +0 -435
- package/src/components/Inspector/NavigationTracker.tsx +0 -13
- package/src/components/Inspector/NetworkDetail.tsx +0 -795
- package/src/components/Inspector/NetworkFilterModal.tsx +0 -730
- package/src/components/Inspector/NetworkTab.tsx +0 -820
- package/src/components/Inspector/NpmStarPrompt.tsx +0 -532
- package/src/components/Inspector/NpmUpdateToast.tsx +0 -387
- package/src/components/Inspector/PerformanceTab.tsx +0 -1967
- package/src/components/Inspector/ReduxDetail.tsx +0 -1651
- package/src/components/Inspector/ReduxTab.tsx +0 -987
- package/src/components/Inspector/SettingsPanel.tsx +0 -4580
- package/src/components/Inspector/SkeletonPlaceholder.tsx +0 -206
- package/src/components/Inspector/StorageTab.tsx +0 -1159
- package/src/components/Inspector/TabBar.tsx +0 -263
- package/src/components/Inspector/UpdateAvailableModal.tsx +0 -555
- package/src/components/JsonViewer.tsx +0 -547
- package/src/components/LogCard.tsx +0 -694
- package/src/components/LogSyntaxHighlighter.tsx +0 -178
- package/src/components/MetaAccordion.tsx +0 -355
- package/src/components/MiniBarChart.tsx +0 -42
- package/src/components/MiniLineChart.tsx +0 -33
- package/src/components/NetworkIcons.tsx +0 -2599
- package/src/components/QRCodeView.tsx +0 -75
- package/src/components/SectionHeader.tsx +0 -101
- package/src/components/SegmentedTabs.tsx +0 -83
- package/src/components/SkeletonPlaceholder.tsx +0 -206
- package/src/components/Slider.tsx +0 -300
- package/src/components/SourcePageCard.tsx +0 -150
- package/src/components/Toast.tsx +0 -131
- package/src/components/TouchableScale.tsx +0 -61
- package/src/components/TreeNode.tsx +0 -171
- package/src/console.ts +0 -24
- package/src/constants/index.ts +0 -41
- package/src/constants/telemetryConfig.ts +0 -4
- package/src/constants/version.ts +0 -3
- package/src/crash.ts +0 -32
- package/src/customHooks/analyticsLogger.ts +0 -336
- package/src/customHooks/bundleAnalyzer.ts +0 -1256
- package/src/customHooks/consoleLogger.ts +0 -530
- package/src/customHooks/crashHandler.ts +0 -944
- package/src/customHooks/logFilters.ts +0 -32
- package/src/customHooks/networkLogger.ts +0 -624
- package/src/customHooks/performanceTracker.ts +0 -1014
- package/src/customHooks/reduxLogger.ts +0 -406
- package/src/customHooks/storageInspector.ts +0 -513
- package/src/customHooks/useAccordion.tsx +0 -27
- package/src/decorators/index.ts +0 -184
- package/src/helpers/gaAnalyticsRegistry.ts +0 -204
- package/src/helpers/index.ts +0 -1092
- package/src/helpers/memoryManager.ts +0 -138
- package/src/helpers/qrGenerator.ts +0 -430
- package/src/helpers/remoteConfig.ts +0 -212
- package/src/helpers/searchQueryParser.ts +0 -84
- package/src/helpers/settingsStore.ts +0 -171
- package/src/helpers/telemetry.ts +0 -568
- package/src/helpers/toast.ts +0 -17
- package/src/i18n/index.ts +0 -104
- package/src/i18n/locales/en.json +0 -1125
- package/src/index.tsx +0 -2635
- package/src/metro.ts +0 -598
- package/src/network.ts +0 -22
- package/src/performance.ts +0 -38
- package/src/redux.ts +0 -23
- package/src/storage.ts +0 -18
- package/src/styles/AppColors.ts +0 -455
- package/src/styles/AppFonts.ts +0 -26
- package/src/styles/common.ts +0 -209
- package/src/styles/index.ts +0 -1606
- package/src/types/enums.ts +0 -208
- package/src/types/index.ts +0 -34
- package/src/types/interfaces.ts +0 -530
package/src/styles/AppColors.ts
DELETED
|
@@ -1,455 +0,0 @@
|
|
|
1
|
-
const LightColors = {
|
|
2
|
-
// ─── Core (Thai Airways Royal Palette) ───
|
|
3
|
-
primaryLight: '#FFFFFF',
|
|
4
|
-
purple: '#5C2D91', // Thai Royal Purple
|
|
5
|
-
purpleShade50: '#F8F4FC', // Orchid Silk Tint
|
|
6
|
-
offerPurple: '#9B2677', // Thai Orchid Magenta
|
|
7
|
-
grayBorderSecondary: '#E2DFEB',
|
|
8
|
-
grayBackground: '#F8F7FB', // Pearl White Surface
|
|
9
|
-
grayText: '#625D73',
|
|
10
|
-
grayTextWeak: '#8F8A9E',
|
|
11
|
-
greenColor: '#10B981',
|
|
12
|
-
graySurface: '#E2DFEB',
|
|
13
|
-
skyBlue: '#2563EB',
|
|
14
|
-
primaryBlack: '#211B30', // Royal Midnight Dark
|
|
15
|
-
grayTextStrong: '#211B30',
|
|
16
|
-
dividerColor: '#EBE7F2',
|
|
17
|
-
warningIconGold: '#C5A059', // Thai Orchid Gold
|
|
18
|
-
shadowColorString: '#211B30',
|
|
19
|
-
errorColor: '#E11D48',
|
|
20
|
-
lightOrange: '#E5C158', // Thai Warm Gold Light
|
|
21
|
-
darkOrange: '#B89758', // Thai Silk Gold
|
|
22
|
-
successGreen: '#10B981',
|
|
23
|
-
purpleShade700: '#481E78', // Thai Deep Violet
|
|
24
|
-
greenStatus: '#D1FAE5',
|
|
25
|
-
greenBaggageText: '#059669',
|
|
26
|
-
paleYellow: '#F7E9C4', // Thai Pale Gold
|
|
27
|
-
|
|
28
|
-
// ─── Brand / UI ───
|
|
29
|
-
white: '#FFFFFF',
|
|
30
|
-
black: '#000000',
|
|
31
|
-
brandPurple: '#4B1B7D', // Iconic Thai Airways Purple
|
|
32
|
-
liveGreen: '#10B981',
|
|
33
|
-
firebaseOrange: '#D97706',
|
|
34
|
-
greenA400: '#00E676',
|
|
35
|
-
|
|
36
|
-
// ─── Code / Slate ───
|
|
37
|
-
slate900: '#171226',
|
|
38
|
-
slate700: '#332C4A',
|
|
39
|
-
slate600: '#4D446B',
|
|
40
|
-
slate500: '#6E648D',
|
|
41
|
-
slate400: '#948BAF',
|
|
42
|
-
slate200: '#E4DFEE',
|
|
43
|
-
slate100: '#F3F0F8',
|
|
44
|
-
slate50: '#F9F7FC',
|
|
45
|
-
gray700: '#373147',
|
|
46
|
-
gray300: '#D5D0E0',
|
|
47
|
-
highlightYellow: '#FDE047',
|
|
48
|
-
yellowHighlight: '#FFE44D',
|
|
49
|
-
|
|
50
|
-
// ─── Status / Syntax ───
|
|
51
|
-
teal600: '#0D9488',
|
|
52
|
-
cyan600: '#0891B2',
|
|
53
|
-
sky600: '#0284C7',
|
|
54
|
-
blue500: '#3B82F6',
|
|
55
|
-
blue600: '#2563EB',
|
|
56
|
-
blue700: '#1D4ED8',
|
|
57
|
-
blue800: '#1E40AF',
|
|
58
|
-
indigo600: '#4F46E5',
|
|
59
|
-
violet600: '#7C3AED',
|
|
60
|
-
violet500: '#8B5CF6',
|
|
61
|
-
purpleText: '#5C2D91',
|
|
62
|
-
pink600: '#9B2677',
|
|
63
|
-
rose600: '#E11D48',
|
|
64
|
-
orange600: '#EA580C',
|
|
65
|
-
amber500: '#C5A059',
|
|
66
|
-
amber600: '#B89758',
|
|
67
|
-
amber700: '#A17D3B',
|
|
68
|
-
amber800: '#785A1D',
|
|
69
|
-
green500: '#22C55E',
|
|
70
|
-
green600: '#16A34A',
|
|
71
|
-
green700: '#15803D',
|
|
72
|
-
green800: '#166534',
|
|
73
|
-
emerald500: '#10B981',
|
|
74
|
-
emerald600: '#059669',
|
|
75
|
-
grey600: '#616161',
|
|
76
|
-
redErrorText: '#991B1B',
|
|
77
|
-
materialGreen: '#2E7D32',
|
|
78
|
-
googleBlue: '#4285F4',
|
|
79
|
-
googleGreen: '#34A853',
|
|
80
|
-
googleOrange: '#F57C00',
|
|
81
|
-
googleRed: '#E53935',
|
|
82
|
-
googlePurple: '#5C2D91',
|
|
83
|
-
googleTeal: '#00897B',
|
|
84
|
-
|
|
85
|
-
// ─── NPM / Package / Tailwind Spectrum Helpers ───
|
|
86
|
-
npmRed: '#CB3837',
|
|
87
|
-
npmRedTint: '#CB383714',
|
|
88
|
-
npmRedBorder: '#CB383733',
|
|
89
|
-
npmDark: '#20232A',
|
|
90
|
-
reactCyan: '#61DAFB',
|
|
91
|
-
pink500: '#EC4899',
|
|
92
|
-
pink400: '#F472B6',
|
|
93
|
-
rose500: '#F43F5E',
|
|
94
|
-
sky500: '#0EA5E9',
|
|
95
|
-
sky400: '#38BDF8',
|
|
96
|
-
indigo500: '#6366F1',
|
|
97
|
-
purple500: '#8B5CF6',
|
|
98
|
-
purple400: '#A78BFA',
|
|
99
|
-
fuchsia500: '#D946EF',
|
|
100
|
-
emerald400: '#34D399',
|
|
101
|
-
amber400: '#FBBF24',
|
|
102
|
-
orange500: '#F97316',
|
|
103
|
-
red500: '#EF4444',
|
|
104
|
-
teal400: '#2DD4BF',
|
|
105
|
-
teal500: '#14B8A6',
|
|
106
|
-
lime500: '#84CC16',
|
|
107
|
-
yellow400: '#FACC15',
|
|
108
|
-
yellow500: '#EAB308',
|
|
109
|
-
slate800: '#1E293B',
|
|
110
|
-
slate850: '#0F172A',
|
|
111
|
-
|
|
112
|
-
// ─── Bundle / Extended Spectrum ───
|
|
113
|
-
reanimatedNavy: '#001A72',
|
|
114
|
-
expoViolet: '#5A29E4',
|
|
115
|
-
hermesPurple: '#5B44E0',
|
|
116
|
-
cyan500: '#06B6D4',
|
|
117
|
-
indigo400: '#818CF8',
|
|
118
|
-
indigo600Alt: '#4F46E5',
|
|
119
|
-
purple800: '#6B21A8',
|
|
120
|
-
purple900: '#581C87',
|
|
121
|
-
purple50: '#FAF5FF',
|
|
122
|
-
purple100: '#F3E8FF',
|
|
123
|
-
purple200: '#E9D5FF',
|
|
124
|
-
rose700: '#BE123C',
|
|
125
|
-
red600: '#DC2626',
|
|
126
|
-
red50: '#FFFBFB',
|
|
127
|
-
red100: '#FEE2E2',
|
|
128
|
-
amber100: '#FEF3C7',
|
|
129
|
-
amber200: '#FDE68A',
|
|
130
|
-
amber800Warm: '#B45309',
|
|
131
|
-
yellow200: '#FEF08A',
|
|
132
|
-
yellow800: '#854D0E',
|
|
133
|
-
green100: '#DCFCE7',
|
|
134
|
-
emerald100: '#D1FAE5',
|
|
135
|
-
emerald700: '#047857',
|
|
136
|
-
pink100: '#FCE7F3',
|
|
137
|
-
sky100: '#E0F2FE',
|
|
138
|
-
teal100: '#CCFBF1',
|
|
139
|
-
teal700: '#0F766E',
|
|
140
|
-
purple700: '#6D28D9',
|
|
141
|
-
indigo50: '#EEF2FF',
|
|
142
|
-
gray100: '#F3F4F6',
|
|
143
|
-
gray200: '#E5E7EB',
|
|
144
|
-
gray500: '#6B7280',
|
|
145
|
-
gray600: '#4B5563',
|
|
146
|
-
|
|
147
|
-
// ─── Tint Backgrounds / Borders (Theme-Aware) ───
|
|
148
|
-
errorCardBg: '#FFF1F3',
|
|
149
|
-
warnCardBg: '#FDFBF4',
|
|
150
|
-
blueTintBg: '#EFF6FF',
|
|
151
|
-
purpleTintBg: '#F6F0FA',
|
|
152
|
-
purpleTint2: '#EFE7F7',
|
|
153
|
-
roseBg: '#FDF2F8',
|
|
154
|
-
roseBorder: '#FBCFE8',
|
|
155
|
-
errorBorder: '#FECDD3',
|
|
156
|
-
amberBg: '#FDF8EE',
|
|
157
|
-
amberBorder: '#E8D6AC',
|
|
158
|
-
emeraldBg: '#ECFDF5',
|
|
159
|
-
emeraldBorder: '#A7F3D0',
|
|
160
|
-
blueBg: '#EFF6FF',
|
|
161
|
-
blueBorder: '#BFDBFE',
|
|
162
|
-
greenBg: '#F0FDF4',
|
|
163
|
-
greenBorder: '#BBF7D0',
|
|
164
|
-
purpleBg: '#F6F0FA',
|
|
165
|
-
purpleBorder: '#E4D5F2',
|
|
166
|
-
greyBg: '#F5F4F8',
|
|
167
|
-
greyBorder: '#E3DFEC',
|
|
168
|
-
paperBg: '#FBF9FC',
|
|
169
|
-
contentBg: '#F8F7FB',
|
|
170
|
-
|
|
171
|
-
// ─── Toast / Glass / Chip Tokens ───
|
|
172
|
-
toastBg: '#0F172AEE',
|
|
173
|
-
toastBorder: '#33415588',
|
|
174
|
-
mintGreenBg: '#ECFDF5',
|
|
175
|
-
mintGreenBorder: '#A7F3D0',
|
|
176
|
-
mintGreenText: '#059669',
|
|
177
|
-
amberWarmBg: '#FFFBEB',
|
|
178
|
-
amberWarmBorder: '#FDE68A',
|
|
179
|
-
amberWarmText: '#92400E',
|
|
180
|
-
violetSoftBg: '#EDE9FE',
|
|
181
|
-
violetSoftBorder: '#DDD6FE',
|
|
182
|
-
violetSoftText: '#7C3AED',
|
|
183
|
-
skySoftBg: '#E0F2FE',
|
|
184
|
-
skySoftBorder: '#BAE6FD',
|
|
185
|
-
skySoftText: '#0284C7',
|
|
186
|
-
|
|
187
|
-
warningAmber: '#F59E0B',
|
|
188
|
-
npmRedLight: '#FF6B6B',
|
|
189
|
-
red300: '#FCA5A5',
|
|
190
|
-
overlayDark: 'rgba(8, 12, 22, 0.95)',
|
|
191
|
-
headerGlassDark: 'rgba(15, 23, 42, 0.9)',
|
|
192
|
-
badgeGlassDark: 'rgba(15, 23, 42, 0.85)',
|
|
193
|
-
borderGlassLight: 'rgba(255, 255, 255, 0.08)',
|
|
194
|
-
borderGlassMedium: 'rgba(255, 255, 255, 0.15)',
|
|
195
|
-
whiteAlpha06: 'rgba(255, 255, 255, 0.06)',
|
|
196
|
-
whiteAlpha08: 'rgba(255, 255, 255, 0.08)',
|
|
197
|
-
whiteAlpha10: 'rgba(255, 255, 255, 0.1)',
|
|
198
|
-
whiteAlpha12: 'rgba(255, 255, 255, 0.12)',
|
|
199
|
-
whiteAlpha15: 'rgba(255, 255, 255, 0.15)',
|
|
200
|
-
whiteAlpha20: 'rgba(255, 255, 255, 0.2)',
|
|
201
|
-
whiteAlpha24: 'rgba(255, 255, 255, 0.24)',
|
|
202
|
-
whiteAlpha30: 'rgba(255, 255, 255, 0.3)',
|
|
203
|
-
whiteAlpha33: 'rgba(255, 255, 255, 0.33)',
|
|
204
|
-
whiteAlpha60: 'rgba(255, 255, 255, 0.6)',
|
|
205
|
-
|
|
206
|
-
// ─── Domain Colors (Thai Airways Themed) ───
|
|
207
|
-
domainColors: [
|
|
208
|
-
'#5C2D91',
|
|
209
|
-
'#9B2677',
|
|
210
|
-
'#C5A059',
|
|
211
|
-
'#4B1B7D',
|
|
212
|
-
'#0D9488',
|
|
213
|
-
'#2563EB',
|
|
214
|
-
'#B89758',
|
|
215
|
-
'#059669',
|
|
216
|
-
'#3B1359',
|
|
217
|
-
'#D1208A',
|
|
218
|
-
],
|
|
219
|
-
};
|
|
220
|
-
|
|
221
|
-
const DarkColors = {
|
|
222
|
-
primaryLight: '#1C1628', // Thai Dark Card
|
|
223
|
-
purple: '#B68FE8', // Luminous Thai Orchid
|
|
224
|
-
purpleShade50: '#2A1C3E',
|
|
225
|
-
offerPurple: '#F472B6',
|
|
226
|
-
grayBorderSecondary: '#362C4E',
|
|
227
|
-
grayBackground: '#130F1F', // Thai Airways Midnight Sky
|
|
228
|
-
grayText: '#A197B8',
|
|
229
|
-
grayTextWeak: '#756C8C',
|
|
230
|
-
greenColor: '#34D399',
|
|
231
|
-
graySurface: '#362C4E',
|
|
232
|
-
skyBlue: '#60A5FA',
|
|
233
|
-
primaryBlack: '#F7F5FC',
|
|
234
|
-
grayTextStrong: '#F7F5FC',
|
|
235
|
-
dividerColor: '#2B2240',
|
|
236
|
-
warningIconGold: '#E5C158', // Thai Luminous Gold
|
|
237
|
-
shadowColorString: '#000000',
|
|
238
|
-
errorColor: '#F87171',
|
|
239
|
-
lightOrange: '#FDE68A',
|
|
240
|
-
darkOrange: '#D4AF37',
|
|
241
|
-
successGreen: '#34D399',
|
|
242
|
-
purpleShade700: '#8E4DBE',
|
|
243
|
-
greenStatus: '#064E3B',
|
|
244
|
-
greenBaggageText: '#34D399',
|
|
245
|
-
paleYellow: '#78350F',
|
|
246
|
-
|
|
247
|
-
white: '#FFFFFF',
|
|
248
|
-
black: '#000000',
|
|
249
|
-
brandPurple: '#7B3DB8',
|
|
250
|
-
liveGreen: '#34D399',
|
|
251
|
-
firebaseOrange: '#F59E0B',
|
|
252
|
-
greenA400: '#00E676',
|
|
253
|
-
|
|
254
|
-
slate900: '#0B0813',
|
|
255
|
-
slate700: '#261F38',
|
|
256
|
-
slate600: '#3D3357',
|
|
257
|
-
slate500: '#5C4F7F',
|
|
258
|
-
slate400: '#8E82B0',
|
|
259
|
-
slate200: '#C7BEDE',
|
|
260
|
-
slate100: '#E4DFEE',
|
|
261
|
-
slate50: '#F3F0F8',
|
|
262
|
-
gray700: '#312847',
|
|
263
|
-
gray300: '#C7BEDE',
|
|
264
|
-
highlightYellow: '#FDE047',
|
|
265
|
-
yellowHighlight: '#FFE44D',
|
|
266
|
-
|
|
267
|
-
teal600: '#0D9488',
|
|
268
|
-
cyan600: '#0891B2',
|
|
269
|
-
sky600: '#0284C7',
|
|
270
|
-
blue500: '#3B82F6',
|
|
271
|
-
blue600: '#2563EB',
|
|
272
|
-
blue700: '#1D4ED8',
|
|
273
|
-
blue800: '#1E40AF',
|
|
274
|
-
indigo600: '#6366F1',
|
|
275
|
-
violet600: '#8B5CF6',
|
|
276
|
-
violet500: '#A78BFA',
|
|
277
|
-
purpleText: '#C084FC',
|
|
278
|
-
pink600: '#F472B6',
|
|
279
|
-
rose600: '#FB7185',
|
|
280
|
-
orange600: '#FB923C',
|
|
281
|
-
amber500: '#E5C158',
|
|
282
|
-
amber600: '#D4AF37',
|
|
283
|
-
amber700: '#C5A059',
|
|
284
|
-
amber800: '#B89758',
|
|
285
|
-
green500: '#22C55E',
|
|
286
|
-
|
|
287
|
-
// ─── Toast / Glass / Chip Tokens (Dark) ───
|
|
288
|
-
toastBg: '#1E293BEE',
|
|
289
|
-
toastBorder: '#47556988',
|
|
290
|
-
mintGreenBg: '#064E3B66',
|
|
291
|
-
mintGreenBorder: '#05966988',
|
|
292
|
-
mintGreenText: '#34D399',
|
|
293
|
-
amberWarmBg: '#451A0366',
|
|
294
|
-
amberWarmBorder: '#D9770688',
|
|
295
|
-
amberWarmText: '#FCD34D',
|
|
296
|
-
violetSoftBg: '#3B076466',
|
|
297
|
-
violetSoftBorder: '#7C3AED88',
|
|
298
|
-
violetSoftText: '#C084FC',
|
|
299
|
-
skySoftBg: '#082F4966',
|
|
300
|
-
skySoftBorder: '#0284C788',
|
|
301
|
-
skySoftText: '#38BDF8',
|
|
302
|
-
|
|
303
|
-
warningAmber: '#F59E0B',
|
|
304
|
-
npmRedLight: '#FF6B6B',
|
|
305
|
-
red300: '#FCA5A5',
|
|
306
|
-
overlayDark: 'rgba(8, 12, 22, 0.95)',
|
|
307
|
-
headerGlassDark: 'rgba(15, 23, 42, 0.9)',
|
|
308
|
-
badgeGlassDark: 'rgba(15, 23, 42, 0.85)',
|
|
309
|
-
borderGlassLight: 'rgba(255, 255, 255, 0.08)',
|
|
310
|
-
borderGlassMedium: 'rgba(255, 255, 255, 0.15)',
|
|
311
|
-
whiteAlpha06: 'rgba(255, 255, 255, 0.06)',
|
|
312
|
-
whiteAlpha08: 'rgba(255, 255, 255, 0.08)',
|
|
313
|
-
whiteAlpha10: 'rgba(255, 255, 255, 0.1)',
|
|
314
|
-
whiteAlpha12: 'rgba(255, 255, 255, 0.12)',
|
|
315
|
-
whiteAlpha15: 'rgba(255, 255, 255, 0.15)',
|
|
316
|
-
whiteAlpha20: 'rgba(255, 255, 255, 0.2)',
|
|
317
|
-
whiteAlpha24: 'rgba(255, 255, 255, 0.24)',
|
|
318
|
-
whiteAlpha30: 'rgba(255, 255, 255, 0.3)',
|
|
319
|
-
whiteAlpha33: 'rgba(255, 255, 255, 0.33)',
|
|
320
|
-
whiteAlpha60: 'rgba(255, 255, 255, 0.6)',
|
|
321
|
-
green600: '#16A34A',
|
|
322
|
-
green700: '#15803D',
|
|
323
|
-
green800: '#166534',
|
|
324
|
-
emerald500: '#10B981',
|
|
325
|
-
emerald600: '#059669',
|
|
326
|
-
grey600: '#756C8C',
|
|
327
|
-
redErrorText: '#FCA5A5',
|
|
328
|
-
materialGreen: '#2E7D32',
|
|
329
|
-
googleBlue: '#60A5FA',
|
|
330
|
-
googleGreen: '#34D399',
|
|
331
|
-
googleOrange: '#FBBF24',
|
|
332
|
-
googleRed: '#F87171',
|
|
333
|
-
googlePurple: '#C084FC',
|
|
334
|
-
googleTeal: '#2DD4BF',
|
|
335
|
-
|
|
336
|
-
// ─── NPM / Package / Tailwind Spectrum Helpers ───
|
|
337
|
-
npmRed: '#CB3837',
|
|
338
|
-
npmRedTint: '#CB383714',
|
|
339
|
-
npmRedBorder: '#CB383733',
|
|
340
|
-
npmDark: '#20232A',
|
|
341
|
-
reactCyan: '#61DAFB',
|
|
342
|
-
pink500: '#EC4899',
|
|
343
|
-
pink400: '#F472B6',
|
|
344
|
-
rose500: '#F43F5E',
|
|
345
|
-
sky500: '#0EA5E9',
|
|
346
|
-
sky400: '#38BDF8',
|
|
347
|
-
indigo500: '#6366F1',
|
|
348
|
-
purple500: '#8B5CF6',
|
|
349
|
-
purple400: '#A78BFA',
|
|
350
|
-
fuchsia500: '#D946EF',
|
|
351
|
-
emerald400: '#34D399',
|
|
352
|
-
amber400: '#FBBF24',
|
|
353
|
-
orange500: '#F97316',
|
|
354
|
-
red500: '#EF4444',
|
|
355
|
-
teal400: '#2DD4BF',
|
|
356
|
-
teal500: '#14B8A6',
|
|
357
|
-
lime500: '#84CC16',
|
|
358
|
-
yellow400: '#FACC15',
|
|
359
|
-
yellow500: '#EAB308',
|
|
360
|
-
slate800: '#1E293B',
|
|
361
|
-
slate850: '#0F172A',
|
|
362
|
-
|
|
363
|
-
// ─── Bundle / Extended Spectrum ───
|
|
364
|
-
reanimatedNavy: '#6B8CFF',
|
|
365
|
-
expoViolet: '#A78BFA',
|
|
366
|
-
hermesPurple: '#9B8AFF',
|
|
367
|
-
cyan500: '#22D3EE',
|
|
368
|
-
indigo400: '#A5B4FC',
|
|
369
|
-
indigo600Alt: '#818CF8',
|
|
370
|
-
purple800: '#C084FC',
|
|
371
|
-
purple900: '#A855F7',
|
|
372
|
-
purple50: '#2D1B40',
|
|
373
|
-
purple100: '#3B2252',
|
|
374
|
-
purple200: '#4C2D6B',
|
|
375
|
-
rose700: '#FB7185',
|
|
376
|
-
red600: '#F87171',
|
|
377
|
-
red50: '#34151B',
|
|
378
|
-
red100: '#451A1A',
|
|
379
|
-
amber100: '#422D0D',
|
|
380
|
-
amber200: '#5C3D0F',
|
|
381
|
-
amber800Warm: '#FBBF24',
|
|
382
|
-
yellow200: '#5C3D0F',
|
|
383
|
-
yellow800: '#FBBF24',
|
|
384
|
-
green100: '#122D1B',
|
|
385
|
-
emerald100: '#122D25',
|
|
386
|
-
emerald700: '#34D399',
|
|
387
|
-
pink100: '#341626',
|
|
388
|
-
sky100: '#0C2744',
|
|
389
|
-
teal100: '#134E4A',
|
|
390
|
-
teal700: '#2DD4BF',
|
|
391
|
-
purple700: '#8B5CF6',
|
|
392
|
-
indigo50: '#1E1B3A',
|
|
393
|
-
gray100: '#2A2438',
|
|
394
|
-
gray200: '#362C4E',
|
|
395
|
-
gray500: '#A197B8',
|
|
396
|
-
gray600: '#8F8A9E',
|
|
397
|
-
|
|
398
|
-
errorCardBg: '#34151B',
|
|
399
|
-
warnCardBg: '#342B16',
|
|
400
|
-
blueTintBg: '#15243B',
|
|
401
|
-
purpleTintBg: '#281B3B',
|
|
402
|
-
purpleTint2: '#32224A',
|
|
403
|
-
roseBg: '#341626',
|
|
404
|
-
roseBorder: '#782352',
|
|
405
|
-
errorBorder: '#782330',
|
|
406
|
-
amberBg: '#342914',
|
|
407
|
-
amberBorder: '#785E22',
|
|
408
|
-
emeraldBg: '#122D25',
|
|
409
|
-
emeraldBorder: '#236952',
|
|
410
|
-
blueBg: '#13243D',
|
|
411
|
-
blueBorder: '#234978',
|
|
412
|
-
greenBg: '#122D1B',
|
|
413
|
-
greenBorder: '#236939',
|
|
414
|
-
purpleBg: '#2D1B40',
|
|
415
|
-
purpleBorder: '#62358F',
|
|
416
|
-
greyBg: '#1C1628',
|
|
417
|
-
greyBorder: '#362C4E',
|
|
418
|
-
paperBg: '#181224',
|
|
419
|
-
contentBg: '#130F1F',
|
|
420
|
-
|
|
421
|
-
domainColors: [
|
|
422
|
-
'#B68FE8',
|
|
423
|
-
'#F472B6',
|
|
424
|
-
'#E5C158',
|
|
425
|
-
'#8E4DBE',
|
|
426
|
-
'#2DD4BF',
|
|
427
|
-
'#60A5FA',
|
|
428
|
-
'#D4AF37',
|
|
429
|
-
'#34D399',
|
|
430
|
-
'#A78BFA',
|
|
431
|
-
'#FB7185',
|
|
432
|
-
],
|
|
433
|
-
};
|
|
434
|
-
|
|
435
|
-
export const getThemeColors = (isDark: boolean) => {
|
|
436
|
-
return isDark ? DarkColors : LightColors;
|
|
437
|
-
};
|
|
438
|
-
|
|
439
|
-
export const AppColors = {} as typeof LightColors;
|
|
440
|
-
Object.assign(AppColors, LightColors);
|
|
441
|
-
|
|
442
|
-
export const updateAppColorsTheme = (isDark: boolean) => {
|
|
443
|
-
Object.assign(AppColors, getThemeColors(isDark));
|
|
444
|
-
};
|
|
445
|
-
|
|
446
|
-
/**
|
|
447
|
-
* Configure or override specific color tokens used throughout the inspector.
|
|
448
|
-
*/
|
|
449
|
-
export const setAppColors = (customColors: Partial<typeof LightColors>): void => {
|
|
450
|
-
if (!customColors || typeof customColors !== 'object') return;
|
|
451
|
-
Object.assign(AppColors, customColors);
|
|
452
|
-
Object.assign(LightColors, customColors);
|
|
453
|
-
};
|
|
454
|
-
|
|
455
|
-
export default AppColors;
|
package/src/styles/AppFonts.ts
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
export interface AppFontConfig {
|
|
2
|
-
interRegular?: string;
|
|
3
|
-
interMedium?: string;
|
|
4
|
-
interSemiBold?: string;
|
|
5
|
-
interBold?: string;
|
|
6
|
-
Sfprotext?: string;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
export const AppFonts = {
|
|
10
|
-
interRegular: 'Inter-Regular',
|
|
11
|
-
interMedium: 'Inter-Medium',
|
|
12
|
-
interSemiBold: 'Inter-SemiBold',
|
|
13
|
-
interBold: 'Inter-Bold',
|
|
14
|
-
Sfprotext: 'Inter-Regular',
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* Configure or override font families used across all inspector screens.
|
|
19
|
-
* Useful when integrating into apps with custom font setups or system fonts.
|
|
20
|
-
*/
|
|
21
|
-
export const setAppFonts = (customFonts: Partial<typeof AppFonts>): void => {
|
|
22
|
-
if (!customFonts || typeof customFonts !== 'object') return;
|
|
23
|
-
Object.assign(AppFonts, customFonts);
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
export default AppFonts;
|
package/src/styles/common.ts
DELETED
|
@@ -1,209 +0,0 @@
|
|
|
1
|
-
import {StyleSheet} from 'react-native';
|
|
2
|
-
import {AppFonts} from './AppFonts';
|
|
3
|
-
import {AppColors} from './AppColors';
|
|
4
|
-
|
|
5
|
-
// Shared styles for the Inspector UI (repeated patterns + page-level layout).
|
|
6
|
-
// Built dynamically so dark-mode colors stay in sync with toggleGlobalTheme()
|
|
7
|
-
// (see rebuildCommonStyles wired into styles/index.ts).
|
|
8
|
-
|
|
9
|
-
const commonStyles: Record<string, any> = {};
|
|
10
|
-
|
|
11
|
-
const buildCommonStyles = (colors: any) => {
|
|
12
|
-
const newStyles = StyleSheet.create({
|
|
13
|
-
// ─── Layout ──────────────────────────────────────────────────────────────
|
|
14
|
-
pageContainer: {
|
|
15
|
-
flex: 1,
|
|
16
|
-
backgroundColor: colors.grayBackground,
|
|
17
|
-
},
|
|
18
|
-
listHeader: {
|
|
19
|
-
paddingHorizontal: 16,
|
|
20
|
-
paddingTop: 12,
|
|
21
|
-
paddingBottom: 8,
|
|
22
|
-
},
|
|
23
|
-
rowCenter: {
|
|
24
|
-
flexDirection: 'row',
|
|
25
|
-
alignItems: 'center',
|
|
26
|
-
gap: 6,
|
|
27
|
-
},
|
|
28
|
-
rowCenterWrap: {
|
|
29
|
-
flexDirection: 'row',
|
|
30
|
-
alignItems: 'center',
|
|
31
|
-
gap: 8,
|
|
32
|
-
flexWrap: 'wrap',
|
|
33
|
-
},
|
|
34
|
-
rowSpaceBetween: {
|
|
35
|
-
flexDirection: 'row',
|
|
36
|
-
alignItems: 'center',
|
|
37
|
-
justifyContent: 'space-between',
|
|
38
|
-
gap: 8,
|
|
39
|
-
},
|
|
40
|
-
|
|
41
|
-
// ─── Cards / rows ────────────────────────────────────────────────────────
|
|
42
|
-
card: {
|
|
43
|
-
backgroundColor: colors.primaryLight,
|
|
44
|
-
borderRadius: 12,
|
|
45
|
-
borderWidth: 1,
|
|
46
|
-
borderColor: colors.grayBorderSecondary,
|
|
47
|
-
},
|
|
48
|
-
listCard: {
|
|
49
|
-
marginHorizontal: 16,
|
|
50
|
-
marginVertical: 6,
|
|
51
|
-
borderRadius: 12,
|
|
52
|
-
borderWidth: 1,
|
|
53
|
-
borderColor: colors.grayBorderSecondary,
|
|
54
|
-
backgroundColor: colors.primaryLight,
|
|
55
|
-
padding: 14,
|
|
56
|
-
flexDirection: 'row',
|
|
57
|
-
alignItems: 'center',
|
|
58
|
-
justifyContent: 'space-between',
|
|
59
|
-
gap: 12,
|
|
60
|
-
shadowColor: colors.black,
|
|
61
|
-
shadowOffset: {width: 0, height: 2},
|
|
62
|
-
shadowOpacity: 0.04,
|
|
63
|
-
shadowRadius: 4,
|
|
64
|
-
elevation: 2,
|
|
65
|
-
},
|
|
66
|
-
consoleRow: {
|
|
67
|
-
marginHorizontal: 12,
|
|
68
|
-
marginVertical: 3,
|
|
69
|
-
borderRadius: 8,
|
|
70
|
-
borderWidth: 1,
|
|
71
|
-
borderColor: colors.grayBorderSecondary,
|
|
72
|
-
padding: 10,
|
|
73
|
-
flexDirection: 'row',
|
|
74
|
-
gap: 8,
|
|
75
|
-
alignItems: 'flex-start',
|
|
76
|
-
},
|
|
77
|
-
|
|
78
|
-
// ─── Search bar ──────────────────────────────────────────────────────────
|
|
79
|
-
searchBar: {
|
|
80
|
-
flexDirection: 'row',
|
|
81
|
-
alignItems: 'center',
|
|
82
|
-
backgroundColor: colors.grayBackground,
|
|
83
|
-
borderRadius: 8,
|
|
84
|
-
marginHorizontal: 16,
|
|
85
|
-
marginTop: 16,
|
|
86
|
-
marginBottom: 12,
|
|
87
|
-
paddingHorizontal: 10,
|
|
88
|
-
borderWidth: 1,
|
|
89
|
-
borderColor: colors.dividerColor,
|
|
90
|
-
height: 36,
|
|
91
|
-
},
|
|
92
|
-
|
|
93
|
-
// ─── Tabs / pills ────────────────────────────────────────────────────────
|
|
94
|
-
tabBarStrip: {
|
|
95
|
-
backgroundColor: colors.primaryLight,
|
|
96
|
-
borderBottomWidth: 1,
|
|
97
|
-
borderBottomColor: colors.dividerColor,
|
|
98
|
-
paddingVertical: 6,
|
|
99
|
-
},
|
|
100
|
-
subTabPill: {
|
|
101
|
-
paddingVertical: 6,
|
|
102
|
-
paddingHorizontal: 14,
|
|
103
|
-
borderRadius: 8,
|
|
104
|
-
alignItems: 'center',
|
|
105
|
-
flexDirection: 'row',
|
|
106
|
-
gap: 6,
|
|
107
|
-
backgroundColor: `${colors.black}08`,
|
|
108
|
-
borderWidth: 1,
|
|
109
|
-
borderColor: 'transparent',
|
|
110
|
-
},
|
|
111
|
-
subTabPillActive: {
|
|
112
|
-
backgroundColor: colors.purple,
|
|
113
|
-
borderColor: colors.purple,
|
|
114
|
-
},
|
|
115
|
-
subTabPillText: {
|
|
116
|
-
fontFamily: AppFonts.interMedium,
|
|
117
|
-
fontSize: 12,
|
|
118
|
-
color: colors.grayTextStrong,
|
|
119
|
-
},
|
|
120
|
-
subTabPillTextActive: {
|
|
121
|
-
fontFamily: AppFonts.interBold,
|
|
122
|
-
fontSize: 12,
|
|
123
|
-
color: colors.white,
|
|
124
|
-
},
|
|
125
|
-
innerTab: {
|
|
126
|
-
paddingVertical: 8,
|
|
127
|
-
paddingHorizontal: 4,
|
|
128
|
-
borderBottomWidth: 2,
|
|
129
|
-
borderBottomColor: 'transparent',
|
|
130
|
-
flexDirection: 'row',
|
|
131
|
-
alignItems: 'center',
|
|
132
|
-
gap: 4,
|
|
133
|
-
},
|
|
134
|
-
countBadge: {
|
|
135
|
-
minWidth: 20,
|
|
136
|
-
height: 18,
|
|
137
|
-
borderRadius: 9,
|
|
138
|
-
paddingHorizontal: 5,
|
|
139
|
-
alignItems: 'center',
|
|
140
|
-
justifyContent: 'center',
|
|
141
|
-
backgroundColor: colors.grayBackground,
|
|
142
|
-
},
|
|
143
|
-
|
|
144
|
-
// ─── Header / address bar ────────────────────────────────────────────────
|
|
145
|
-
addressBar: {
|
|
146
|
-
paddingHorizontal: 12,
|
|
147
|
-
paddingTop: 6,
|
|
148
|
-
paddingBottom: 6,
|
|
149
|
-
backgroundColor: colors.primaryLight,
|
|
150
|
-
borderBottomWidth: 1,
|
|
151
|
-
borderBottomColor: colors.dividerColor,
|
|
152
|
-
},
|
|
153
|
-
addressBarInner: {
|
|
154
|
-
flexDirection: 'row',
|
|
155
|
-
alignItems: 'center',
|
|
156
|
-
backgroundColor: colors.grayBackground,
|
|
157
|
-
borderRadius: 8,
|
|
158
|
-
borderWidth: 1.5,
|
|
159
|
-
borderColor: colors.grayBorderSecondary,
|
|
160
|
-
paddingHorizontal: 10,
|
|
161
|
-
paddingVertical: 5,
|
|
162
|
-
gap: 8,
|
|
163
|
-
},
|
|
164
|
-
inspectBanner: {
|
|
165
|
-
flexDirection: 'row',
|
|
166
|
-
alignItems: 'center',
|
|
167
|
-
justifyContent: 'space-between',
|
|
168
|
-
backgroundColor: colors.purpleShade50,
|
|
169
|
-
paddingHorizontal: 12,
|
|
170
|
-
paddingVertical: 6,
|
|
171
|
-
borderBottomWidth: 1,
|
|
172
|
-
borderBottomColor: colors.dividerColor,
|
|
173
|
-
},
|
|
174
|
-
|
|
175
|
-
// ─── Badges / buttons ────────────────────────────────────────────────────
|
|
176
|
-
badgeActive: {
|
|
177
|
-
flexDirection: 'row',
|
|
178
|
-
alignItems: 'center',
|
|
179
|
-
gap: 4,
|
|
180
|
-
backgroundColor: colors.greenStatus,
|
|
181
|
-
paddingHorizontal: 8,
|
|
182
|
-
paddingVertical: 3,
|
|
183
|
-
borderRadius: 12,
|
|
184
|
-
},
|
|
185
|
-
iconButton: {
|
|
186
|
-
width: 26,
|
|
187
|
-
height: 26,
|
|
188
|
-
borderRadius: 13,
|
|
189
|
-
backgroundColor: colors.grayBackground,
|
|
190
|
-
borderWidth: 1,
|
|
191
|
-
borderColor: colors.grayBorderSecondary,
|
|
192
|
-
alignItems: 'center',
|
|
193
|
-
justifyContent: 'center',
|
|
194
|
-
},
|
|
195
|
-
});
|
|
196
|
-
|
|
197
|
-
// Clear old keys and copy new ones (keeps the exported object identity).
|
|
198
|
-
Object.keys(commonStyles).forEach(key => delete commonStyles[key]);
|
|
199
|
-
Object.assign(commonStyles, newStyles);
|
|
200
|
-
};
|
|
201
|
-
|
|
202
|
-
// Initial build
|
|
203
|
-
buildCommonStyles(AppColors);
|
|
204
|
-
|
|
205
|
-
export const rebuildCommonStyles = (colors: any) => {
|
|
206
|
-
buildCommonStyles(colors);
|
|
207
|
-
};
|
|
208
|
-
|
|
209
|
-
export default commonStyles;
|