@codeimplants/ui-kit 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +144 -0
- package/dist/adapters/index.d.ts +1 -0
- package/dist/adapters/index.js +2 -0
- package/dist/adapters/supportAdapter.d.ts +87 -0
- package/dist/adapters/supportAdapter.js +99 -0
- package/dist/client.d.ts +55 -0
- package/dist/client.js +229 -0
- package/dist/components/IconLibrary.d.ts +23 -0
- package/dist/components/IconLibrary.js +19 -0
- package/dist/components/RetryIndicator.d.ts +5 -0
- package/dist/components/RetryIndicator.js +208 -0
- package/dist/components/SupportContactCard.d.ts +10 -0
- package/dist/components/SupportContactCard.js +140 -0
- package/dist/components/buttons/PrimaryButton.d.ts +19 -0
- package/dist/components/buttons/PrimaryButton.js +42 -0
- package/dist/components/buttons/SecondaryButton.d.ts +20 -0
- package/dist/components/buttons/SecondaryButton.js +37 -0
- package/dist/components/buttons/index.d.ts +2 -0
- package/dist/components/buttons/index.js +3 -0
- package/dist/components/cards/ContentCard.d.ts +16 -0
- package/dist/components/cards/ContentCard.js +24 -0
- package/dist/components/cards/InfoCard.d.ts +9 -0
- package/dist/components/cards/InfoCard.js +51 -0
- package/dist/components/cards/TipsCard.d.ts +11 -0
- package/dist/components/cards/TipsCard.js +70 -0
- package/dist/components/cards/WarningCard.d.ts +11 -0
- package/dist/components/cards/WarningCard.js +80 -0
- package/dist/components/cards/WhatsNewCard.d.ts +15 -0
- package/dist/components/cards/WhatsNewCard.js +79 -0
- package/dist/components/cards/index.d.ts +5 -0
- package/dist/components/cards/index.js +6 -0
- package/dist/components/feedback/ExpandableSection.d.ts +8 -0
- package/dist/components/feedback/ExpandableSection.js +44 -0
- package/dist/components/feedback/SecurityBanner.d.ts +9 -0
- package/dist/components/feedback/SecurityBanner.js +49 -0
- package/dist/components/feedback/SpeedBadge.d.ts +9 -0
- package/dist/components/feedback/SpeedBadge.js +41 -0
- package/dist/components/feedback/StatusBadge.d.ts +17 -0
- package/dist/components/feedback/StatusBadge.js +20 -0
- package/dist/components/feedback/TopBanner.d.ts +7 -0
- package/dist/components/feedback/TopBanner.js +74 -0
- package/dist/components/feedback/index.d.ts +5 -0
- package/dist/components/feedback/index.js +6 -0
- package/dist/components/icons/AnimatedAlert.d.ts +11 -0
- package/dist/components/icons/AnimatedAlert.js +27 -0
- package/dist/components/icons/AnimatedCalendar.d.ts +7 -0
- package/dist/components/icons/AnimatedCalendar.js +34 -0
- package/dist/components/icons/AnimatedCamera.d.ts +7 -0
- package/dist/components/icons/AnimatedCamera.js +34 -0
- package/dist/components/icons/AnimatedClientError.d.ts +11 -0
- package/dist/components/icons/AnimatedClientError.js +20 -0
- package/dist/components/icons/AnimatedClock.d.ts +7 -0
- package/dist/components/icons/AnimatedClock.js +53 -0
- package/dist/components/icons/AnimatedCrash.d.ts +11 -0
- package/dist/components/icons/AnimatedCrash.js +36 -0
- package/dist/components/icons/AnimatedDocument.d.ts +7 -0
- package/dist/components/icons/AnimatedDocument.js +34 -0
- package/dist/components/icons/AnimatedDownload.d.ts +7 -0
- package/dist/components/icons/AnimatedDownload.js +23 -0
- package/dist/components/icons/AnimatedEmergency.d.ts +11 -0
- package/dist/components/icons/AnimatedEmergency.js +26 -0
- package/dist/components/icons/AnimatedInvalidData.d.ts +11 -0
- package/dist/components/icons/AnimatedInvalidData.js +24 -0
- package/dist/components/icons/AnimatedLightning.d.ts +7 -0
- package/dist/components/icons/AnimatedLightning.js +34 -0
- package/dist/components/icons/AnimatedLocationPin.d.ts +7 -0
- package/dist/components/icons/AnimatedLocationPin.js +34 -0
- package/dist/components/icons/AnimatedPermission.d.ts +11 -0
- package/dist/components/icons/AnimatedPermission.js +21 -0
- package/dist/components/icons/AnimatedPermissionDenied.d.ts +11 -0
- package/dist/components/icons/AnimatedPermissionDenied.js +27 -0
- package/dist/components/icons/AnimatedServerError.d.ts +7 -0
- package/dist/components/icons/AnimatedServerError.js +60 -0
- package/dist/components/icons/AnimatedShield.d.ts +7 -0
- package/dist/components/icons/AnimatedShield.js +34 -0
- package/dist/components/icons/AnimatedSparkle.d.ts +7 -0
- package/dist/components/icons/AnimatedSparkle.js +53 -0
- package/dist/components/icons/AnimatedSpeedGauge.d.ts +7 -0
- package/dist/components/icons/AnimatedSpeedGauge.js +50 -0
- package/dist/components/icons/AnimatedTimeout.d.ts +11 -0
- package/dist/components/icons/AnimatedTimeout.js +27 -0
- package/dist/components/icons/AnimatedWarning.d.ts +7 -0
- package/dist/components/icons/AnimatedWarning.js +50 -0
- package/dist/components/icons/AnimatedWifiOff.d.ts +7 -0
- package/dist/components/icons/AnimatedWifiOff.js +65 -0
- package/dist/components/icons/AnimatedWrench.d.ts +7 -0
- package/dist/components/icons/AnimatedWrench.js +43 -0
- package/dist/components/icons/ClockBadge.d.ts +8 -0
- package/dist/components/icons/ClockBadge.js +28 -0
- package/dist/components/icons/DownloadBadge.d.ts +8 -0
- package/dist/components/icons/DownloadBadge.js +28 -0
- package/dist/components/icons/IconWithBadge.d.ts +12 -0
- package/dist/components/icons/IconWithBadge.js +120 -0
- package/dist/components/icons/SimpleIcons.d.ts +12 -0
- package/dist/components/icons/SimpleIcons.js +8 -0
- package/dist/components/icons/XBadge.d.ts +8 -0
- package/dist/components/icons/XBadge.js +28 -0
- package/dist/components/icons/animated/errors/AnimatedClientError.d.ts +11 -0
- package/dist/components/icons/animated/errors/AnimatedClientError.js +20 -0
- package/dist/components/icons/animated/errors/AnimatedCrash.d.ts +11 -0
- package/dist/components/icons/animated/errors/AnimatedCrash.js +36 -0
- package/dist/components/icons/animated/errors/AnimatedInvalidData.d.ts +11 -0
- package/dist/components/icons/animated/errors/AnimatedInvalidData.js +24 -0
- package/dist/components/icons/animated/errors/AnimatedServerError.d.ts +7 -0
- package/dist/components/icons/animated/errors/AnimatedServerError.js +60 -0
- package/dist/components/icons/animated/errors/index.d.ts +4 -0
- package/dist/components/icons/animated/errors/index.js +5 -0
- package/dist/components/icons/animated/general/AnimatedCalendar.d.ts +7 -0
- package/dist/components/icons/animated/general/AnimatedCalendar.js +34 -0
- package/dist/components/icons/animated/general/AnimatedCamera.d.ts +7 -0
- package/dist/components/icons/animated/general/AnimatedCamera.js +34 -0
- package/dist/components/icons/animated/general/AnimatedClock.d.ts +7 -0
- package/dist/components/icons/animated/general/AnimatedClock.js +53 -0
- package/dist/components/icons/animated/general/AnimatedDocument.d.ts +7 -0
- package/dist/components/icons/animated/general/AnimatedDocument.js +34 -0
- package/dist/components/icons/animated/general/AnimatedDownload.d.ts +7 -0
- package/dist/components/icons/animated/general/AnimatedDownload.js +23 -0
- package/dist/components/icons/animated/general/AnimatedLightning.d.ts +7 -0
- package/dist/components/icons/animated/general/AnimatedLightning.js +34 -0
- package/dist/components/icons/animated/general/AnimatedLocationPin.d.ts +7 -0
- package/dist/components/icons/animated/general/AnimatedLocationPin.js +34 -0
- package/dist/components/icons/animated/general/AnimatedShield.d.ts +7 -0
- package/dist/components/icons/animated/general/AnimatedShield.js +34 -0
- package/dist/components/icons/animated/general/AnimatedSparkle.d.ts +7 -0
- package/dist/components/icons/animated/general/AnimatedSparkle.js +53 -0
- package/dist/components/icons/animated/general/AnimatedWarning.d.ts +7 -0
- package/dist/components/icons/animated/general/AnimatedWarning.js +50 -0
- package/dist/components/icons/animated/general/index.d.ts +10 -0
- package/dist/components/icons/animated/general/index.js +11 -0
- package/dist/components/icons/animated/index.d.ts +5 -0
- package/dist/components/icons/animated/index.js +6 -0
- package/dist/components/icons/animated/maintenance/AnimatedAlert.d.ts +11 -0
- package/dist/components/icons/animated/maintenance/AnimatedAlert.js +27 -0
- package/dist/components/icons/animated/maintenance/AnimatedEmergency.d.ts +11 -0
- package/dist/components/icons/animated/maintenance/AnimatedEmergency.js +26 -0
- package/dist/components/icons/animated/maintenance/AnimatedWrench.d.ts +7 -0
- package/dist/components/icons/animated/maintenance/AnimatedWrench.js +43 -0
- package/dist/components/icons/animated/maintenance/index.d.ts +3 -0
- package/dist/components/icons/animated/maintenance/index.js +4 -0
- package/dist/components/icons/animated/network/AnimatedSpeedGauge.d.ts +7 -0
- package/dist/components/icons/animated/network/AnimatedSpeedGauge.js +50 -0
- package/dist/components/icons/animated/network/AnimatedTimeout.d.ts +11 -0
- package/dist/components/icons/animated/network/AnimatedTimeout.js +27 -0
- package/dist/components/icons/animated/network/AnimatedWifiOff.d.ts +7 -0
- package/dist/components/icons/animated/network/AnimatedWifiOff.js +65 -0
- package/dist/components/icons/animated/network/index.d.ts +3 -0
- package/dist/components/icons/animated/network/index.js +4 -0
- package/dist/components/icons/animated/permissions/AnimatedPermission.d.ts +11 -0
- package/dist/components/icons/animated/permissions/AnimatedPermission.js +21 -0
- package/dist/components/icons/animated/permissions/AnimatedPermissionDenied.d.ts +11 -0
- package/dist/components/icons/animated/permissions/AnimatedPermissionDenied.js +27 -0
- package/dist/components/icons/animated/permissions/index.d.ts +2 -0
- package/dist/components/icons/animated/permissions/index.js +3 -0
- package/dist/components/icons/badges/ClockBadge.d.ts +8 -0
- package/dist/components/icons/badges/ClockBadge.js +28 -0
- package/dist/components/icons/badges/DownloadBadge.d.ts +8 -0
- package/dist/components/icons/badges/DownloadBadge.js +28 -0
- package/dist/components/icons/badges/XBadge.d.ts +8 -0
- package/dist/components/icons/badges/XBadge.js +28 -0
- package/dist/components/icons/badges/index.d.ts +3 -0
- package/dist/components/icons/badges/index.js +4 -0
- package/dist/components/icons/index.d.ts +3 -0
- package/dist/components/icons/index.js +4 -0
- package/dist/components/icons/utilities/AlertTriangleIcon.d.ts +7 -0
- package/dist/components/icons/utilities/AlertTriangleIcon.js +4 -0
- package/dist/components/icons/utilities/CheckCircleIcon.d.ts +7 -0
- package/dist/components/icons/utilities/CheckCircleIcon.js +4 -0
- package/dist/components/icons/utilities/DownloadIcon.d.ts +7 -0
- package/dist/components/icons/utilities/DownloadIcon.js +4 -0
- package/dist/components/icons/utilities/IconWithBadge.d.ts +12 -0
- package/dist/components/icons/utilities/IconWithBadge.js +120 -0
- package/dist/components/icons/utilities/SettingsIcon.d.ts +7 -0
- package/dist/components/icons/utilities/SettingsIcon.js +4 -0
- package/dist/components/icons/utilities/ShieldIcon.d.ts +7 -0
- package/dist/components/icons/utilities/ShieldIcon.js +4 -0
- package/dist/components/icons/utilities/SimpleIcons.d.ts +12 -0
- package/dist/components/icons/utilities/SimpleIcons.js +8 -0
- package/dist/components/icons/utilities/XIcon.d.ts +7 -0
- package/dist/components/icons/utilities/XIcon.js +4 -0
- package/dist/components/icons/utilities/index.d.ts +7 -0
- package/dist/components/icons/utilities/index.js +8 -0
- package/dist/components/index.d.ts +9 -0
- package/dist/components/index.js +10 -0
- package/dist/components/layout/DualButtonLayout.d.ts +14 -0
- package/dist/components/layout/DualButtonLayout.js +73 -0
- package/dist/components/layout/ResponsiveLayout.d.ts +25 -0
- package/dist/components/layout/ResponsiveLayout.js +76 -0
- package/dist/components/layout/SafeAreaWrapper.d.ts +21 -0
- package/dist/components/layout/SafeAreaWrapper.js +45 -0
- package/dist/components/layout/ScreenContainer.d.ts +15 -0
- package/dist/components/layout/ScreenContainer.js +21 -0
- package/dist/components/layout/index.d.ts +4 -0
- package/dist/components/layout/index.js +5 -0
- package/dist/components/lists/CheckListItem.d.ts +14 -0
- package/dist/components/lists/CheckListItem.js +40 -0
- package/dist/components/lists/StatusCheckList.d.ts +10 -0
- package/dist/components/lists/StatusCheckList.js +69 -0
- package/dist/components/lists/index.d.ts +2 -0
- package/dist/components/lists/index.js +3 -0
- package/dist/components/shared/CheckListItem.d.ts +14 -0
- package/dist/components/shared/CheckListItem.js +40 -0
- package/dist/components/shared/ConnectionStatus.d.ts +8 -0
- package/dist/components/shared/ConnectionStatus.js +57 -0
- package/dist/components/shared/ContentCard.d.ts +16 -0
- package/dist/components/shared/ContentCard.js +24 -0
- package/dist/components/shared/CountdownTimer.d.ts +9 -0
- package/dist/components/shared/CountdownTimer.js +91 -0
- package/dist/components/shared/DualButtonLayout.d.ts +14 -0
- package/dist/components/shared/DualButtonLayout.js +73 -0
- package/dist/components/shared/ExpandableSection.d.ts +8 -0
- package/dist/components/shared/ExpandableSection.js +44 -0
- package/dist/components/shared/IconWithBadge.d.ts +17 -0
- package/dist/components/shared/IconWithBadge.js +38 -0
- package/dist/components/shared/InfoCard.d.ts +9 -0
- package/dist/components/shared/InfoCard.js +51 -0
- package/dist/components/shared/PrimaryButton.d.ts +19 -0
- package/dist/components/shared/PrimaryButton.js +42 -0
- package/dist/components/shared/ResponsiveLayout.d.ts +25 -0
- package/dist/components/shared/ResponsiveLayout.js +76 -0
- package/dist/components/shared/RetryCounter.d.ts +8 -0
- package/dist/components/shared/RetryCounter.js +17 -0
- package/dist/components/shared/SafeAreaWrapper.d.ts +21 -0
- package/dist/components/shared/SafeAreaWrapper.js +45 -0
- package/dist/components/shared/ScreenContainer.d.ts +15 -0
- package/dist/components/shared/ScreenContainer.js +21 -0
- package/dist/components/shared/SecondaryButton.d.ts +20 -0
- package/dist/components/shared/SecondaryButton.js +37 -0
- package/dist/components/shared/SecurityBanner.d.ts +9 -0
- package/dist/components/shared/SecurityBanner.js +49 -0
- package/dist/components/shared/SpeedBadge.d.ts +9 -0
- package/dist/components/shared/SpeedBadge.js +41 -0
- package/dist/components/shared/StatusBadge.d.ts +17 -0
- package/dist/components/shared/StatusBadge.js +20 -0
- package/dist/components/shared/StatusCheckList.d.ts +10 -0
- package/dist/components/shared/StatusCheckList.js +69 -0
- package/dist/components/shared/SupportButtons.d.ts +9 -0
- package/dist/components/shared/SupportButtons.js +138 -0
- package/dist/components/shared/TipsCard.d.ts +11 -0
- package/dist/components/shared/TipsCard.js +70 -0
- package/dist/components/shared/TopBanner.d.ts +7 -0
- package/dist/components/shared/TopBanner.js +74 -0
- package/dist/components/shared/VersionDisplay.d.ts +14 -0
- package/dist/components/shared/VersionDisplay.js +30 -0
- package/dist/components/shared/WarningCard.d.ts +11 -0
- package/dist/components/shared/WarningCard.js +80 -0
- package/dist/components/shared/WhatsNewCard.d.ts +15 -0
- package/dist/components/shared/WhatsNewCard.js +79 -0
- package/dist/components/status/ConnectionStatus.d.ts +8 -0
- package/dist/components/status/ConnectionStatus.js +57 -0
- package/dist/components/status/VersionDisplay.d.ts +14 -0
- package/dist/components/status/VersionDisplay.js +30 -0
- package/dist/components/status/index.d.ts +2 -0
- package/dist/components/status/index.js +3 -0
- package/dist/components/support/SupportButtons.d.ts +9 -0
- package/dist/components/support/SupportButtons.js +138 -0
- package/dist/components/support/index.d.ts +1 -0
- package/dist/components/support/index.js +2 -0
- package/dist/components/timers/CountdownTimer.d.ts +9 -0
- package/dist/components/timers/CountdownTimer.js +91 -0
- package/dist/components/timers/RetryCounter.d.ts +8 -0
- package/dist/components/timers/RetryCounter.js +17 -0
- package/dist/components/timers/index.d.ts +2 -0
- package/dist/components/timers/index.js +3 -0
- package/dist/components/ui/Button.d.ts +38 -0
- package/dist/components/ui/Button.js +96 -0
- package/dist/components/ui/OfflineBanner.d.ts +15 -0
- package/dist/components/ui/OfflineBanner.js +42 -0
- package/dist/index.d.ts +68 -0
- package/dist/index.js +103 -0
- package/dist/screens/errors/ApiErrorScreen.d.ts +7 -0
- package/dist/screens/errors/ApiErrorScreen.js +166 -0
- package/dist/screens/errors/ClientErrorScreen.d.ts +9 -0
- package/dist/screens/errors/ClientErrorScreen.js +75 -0
- package/dist/screens/errors/ErrorBoundaryScreen.d.ts +9 -0
- package/dist/screens/errors/ErrorBoundaryScreen.js +43 -0
- package/dist/screens/errors/InvalidResponseScreen.d.ts +9 -0
- package/dist/screens/errors/InvalidResponseScreen.js +47 -0
- package/dist/screens/errors/ServerErrorScreen.d.ts +9 -0
- package/dist/screens/errors/ServerErrorScreen.js +72 -0
- package/dist/screens/errors/index.d.ts +5 -0
- package/dist/screens/errors/index.js +6 -0
- package/dist/screens/index.d.ts +4 -0
- package/dist/screens/index.js +5 -0
- package/dist/screens/network/ApiTimeoutScreen.d.ts +9 -0
- package/dist/screens/network/ApiTimeoutScreen.js +47 -0
- package/dist/screens/network/NetworkOfflineScreen.d.ts +9 -0
- package/dist/screens/network/NetworkOfflineScreen.js +42 -0
- package/dist/screens/network/NetworkSlowConnectionScreen.d.ts +9 -0
- package/dist/screens/network/NetworkSlowConnectionScreen.js +41 -0
- package/dist/screens/network/index.d.ts +3 -0
- package/dist/screens/network/index.js +4 -0
- package/dist/screens/permissions/PermissionDeniedScreen.d.ts +9 -0
- package/dist/screens/permissions/PermissionDeniedScreen.js +92 -0
- package/dist/screens/permissions/PermissionRequestScreen.d.ts +16 -0
- package/dist/screens/permissions/PermissionRequestScreen.js +303 -0
- package/dist/screens/permissions/PermissionScreen.d.ts +9 -0
- package/dist/screens/permissions/PermissionScreen.js +45 -0
- package/dist/screens/permissions/index.d.ts +3 -0
- package/dist/screens/permissions/index.js +4 -0
- package/dist/screens/system/AppUpdateScreen.d.ts +9 -0
- package/dist/screens/system/AppUpdateScreen.js +296 -0
- package/dist/screens/system/EmergencyOutageScreen.d.ts +9 -0
- package/dist/screens/system/EmergencyOutageScreen.js +48 -0
- package/dist/screens/system/ForceUpdateScreen.d.ts +9 -0
- package/dist/screens/system/ForceUpdateScreen.js +49 -0
- package/dist/screens/system/OptionalUpdateScreen.d.ts +9 -0
- package/dist/screens/system/OptionalUpdateScreen.js +47 -0
- package/dist/screens/system/PlannedMaintenanceScreen.d.ts +9 -0
- package/dist/screens/system/PlannedMaintenanceScreen.js +41 -0
- package/dist/screens/system/SecurityUpdateScreen.d.ts +9 -0
- package/dist/screens/system/SecurityUpdateScreen.js +64 -0
- package/dist/screens/system/ServiceUnavailableScreen.d.ts +15 -0
- package/dist/screens/system/ServiceUnavailableScreen.js +53 -0
- package/dist/screens/system/SoftUpdateScreen.d.ts +9 -0
- package/dist/screens/system/SoftUpdateScreen.js +55 -0
- package/dist/screens/system/SystemMaintenanceScreen.d.ts +9 -0
- package/dist/screens/system/SystemMaintenanceScreen.js +228 -0
- package/dist/screens/system/UnplannedOutageScreen.d.ts +9 -0
- package/dist/screens/system/UnplannedOutageScreen.js +42 -0
- package/dist/screens/system/index.d.ts +2 -0
- package/dist/screens/system/index.js +3 -0
- package/dist/screens/system/maintenance/EmergencyOutageScreen.d.ts +9 -0
- package/dist/screens/system/maintenance/EmergencyOutageScreen.js +48 -0
- package/dist/screens/system/maintenance/PlannedMaintenanceScreen.d.ts +9 -0
- package/dist/screens/system/maintenance/PlannedMaintenanceScreen.js +41 -0
- package/dist/screens/system/maintenance/ServiceUnavailableScreen.d.ts +15 -0
- package/dist/screens/system/maintenance/ServiceUnavailableScreen.js +53 -0
- package/dist/screens/system/maintenance/SystemMaintenanceScreen.d.ts +9 -0
- package/dist/screens/system/maintenance/SystemMaintenanceScreen.js +228 -0
- package/dist/screens/system/maintenance/UnplannedOutageScreen.d.ts +9 -0
- package/dist/screens/system/maintenance/UnplannedOutageScreen.js +42 -0
- package/dist/screens/system/maintenance/index.d.ts +5 -0
- package/dist/screens/system/maintenance/index.js +6 -0
- package/dist/screens/system/updates/AppUpdateScreen.d.ts +9 -0
- package/dist/screens/system/updates/AppUpdateScreen.js +296 -0
- package/dist/screens/system/updates/ForceUpdateScreen.d.ts +9 -0
- package/dist/screens/system/updates/ForceUpdateScreen.js +49 -0
- package/dist/screens/system/updates/OptionalUpdateScreen.d.ts +9 -0
- package/dist/screens/system/updates/OptionalUpdateScreen.js +47 -0
- package/dist/screens/system/updates/SecurityUpdateScreen.d.ts +9 -0
- package/dist/screens/system/updates/SecurityUpdateScreen.js +64 -0
- package/dist/screens/system/updates/SoftUpdateScreen.d.ts +9 -0
- package/dist/screens/system/updates/SoftUpdateScreen.js +55 -0
- package/dist/screens/system/updates/index.d.ts +5 -0
- package/dist/screens/system/updates/index.js +6 -0
- package/dist/types/common.d.ts +139 -0
- package/dist/types/common.js +4 -0
- package/dist/types/components.d.ts +52 -0
- package/dist/types/components.js +4 -0
- package/dist/types/index.d.ts +4 -0
- package/dist/types/index.js +8 -0
- package/dist/types/screens.d.ts +390 -0
- package/dist/types/screens.js +4 -0
- package/dist/types/support.d.ts +16 -0
- package/dist/types/support.js +4 -0
- package/dist/types.d.ts +580 -0
- package/dist/types.js +4 -0
- package/dist/utils/client.d.ts +55 -0
- package/dist/utils/client.js +229 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.js +2 -0
- package/package.json +72 -0
- package/src/adapters/index.ts +2 -0
- package/src/adapters/supportAdapter.ts +167 -0
- package/src/components/buttons/PrimaryButton.tsx +82 -0
- package/src/components/buttons/SecondaryButton.tsx +81 -0
- package/src/components/buttons/index.ts +3 -0
- package/src/components/cards/ContentCard.tsx +53 -0
- package/src/components/cards/InfoCard.tsx +74 -0
- package/src/components/cards/TipsCard.tsx +106 -0
- package/src/components/cards/WarningCard.tsx +118 -0
- package/src/components/cards/WhatsNewCard.tsx +121 -0
- package/src/components/cards/index.ts +6 -0
- package/src/components/feedback/ExpandableSection.tsx +71 -0
- package/src/components/feedback/SecurityBanner.tsx +74 -0
- package/src/components/feedback/SpeedBadge.tsx +64 -0
- package/src/components/feedback/StatusBadge.tsx +50 -0
- package/src/components/feedback/TopBanner.tsx +104 -0
- package/src/components/feedback/index.ts +6 -0
- package/src/components/icons/animated/errors/AnimatedClientError.tsx +94 -0
- package/src/components/icons/animated/errors/AnimatedCrash.tsx +133 -0
- package/src/components/icons/animated/errors/AnimatedInvalidData.tsx +127 -0
- package/src/components/icons/animated/errors/AnimatedServerError.tsx +85 -0
- package/src/components/icons/animated/errors/index.ts +5 -0
- package/src/components/icons/animated/general/AnimatedCalendar.tsx +54 -0
- package/src/components/icons/animated/general/AnimatedCamera.tsx +54 -0
- package/src/components/icons/animated/general/AnimatedClock.tsx +78 -0
- package/src/components/icons/animated/general/AnimatedDocument.tsx +54 -0
- package/src/components/icons/animated/general/AnimatedDownload.tsx +61 -0
- package/src/components/icons/animated/general/AnimatedLightning.tsx +54 -0
- package/src/components/icons/animated/general/AnimatedLocationPin.tsx +54 -0
- package/src/components/icons/animated/general/AnimatedShield.tsx +54 -0
- package/src/components/icons/animated/general/AnimatedSparkle.tsx +74 -0
- package/src/components/icons/animated/general/AnimatedWarning.tsx +75 -0
- package/src/components/icons/animated/general/index.ts +11 -0
- package/src/components/icons/animated/index.ts +6 -0
- package/src/components/icons/animated/maintenance/AnimatedAlert.tsx +110 -0
- package/src/components/icons/animated/maintenance/AnimatedEmergency.tsx +112 -0
- package/src/components/icons/animated/maintenance/AnimatedWrench.tsx +64 -0
- package/src/components/icons/animated/maintenance/index.ts +4 -0
- package/src/components/icons/animated/network/AnimatedSpeedGauge.tsx +75 -0
- package/src/components/icons/animated/network/AnimatedTimeout.tsx +115 -0
- package/src/components/icons/animated/network/AnimatedWifiOff.tsx +93 -0
- package/src/components/icons/animated/network/index.ts +4 -0
- package/src/components/icons/animated/permissions/AnimatedPermission.tsx +74 -0
- package/src/components/icons/animated/permissions/AnimatedPermissionDenied.tsx +92 -0
- package/src/components/icons/animated/permissions/index.ts +3 -0
- package/src/components/icons/badges/ClockBadge.tsx +49 -0
- package/src/components/icons/badges/DownloadBadge.tsx +49 -0
- package/src/components/icons/badges/XBadge.tsx +49 -0
- package/src/components/icons/badges/index.ts +4 -0
- package/src/components/icons/index.ts +4 -0
- package/src/components/icons/utilities/AlertTriangleIcon.tsx +17 -0
- package/src/components/icons/utilities/CheckCircleIcon.tsx +16 -0
- package/src/components/icons/utilities/DownloadIcon.tsx +17 -0
- package/src/components/icons/utilities/IconWithBadge.tsx +166 -0
- package/src/components/icons/utilities/SettingsIcon.tsx +16 -0
- package/src/components/icons/utilities/ShieldIcon.tsx +15 -0
- package/src/components/icons/utilities/XIcon.tsx +16 -0
- package/src/components/icons/utilities/index.ts +8 -0
- package/src/components/index.ts +10 -0
- package/src/components/layout/DualButtonLayout.tsx +118 -0
- package/src/components/layout/ResponsiveLayout.tsx +118 -0
- package/src/components/layout/SafeAreaWrapper.tsx +72 -0
- package/src/components/layout/ScreenContainer.tsx +53 -0
- package/src/components/layout/index.ts +5 -0
- package/src/components/lists/CheckListItem.tsx +72 -0
- package/src/components/lists/StatusCheckList.tsx +101 -0
- package/src/components/lists/index.ts +3 -0
- package/src/components/status/ConnectionStatus.tsx +90 -0
- package/src/components/status/VersionDisplay.tsx +60 -0
- package/src/components/status/index.ts +3 -0
- package/src/components/support/SupportButtons.tsx +311 -0
- package/src/components/support/index.ts +2 -0
- package/src/components/timers/CountdownTimer.tsx +136 -0
- package/src/components/timers/RetryCounter.tsx +33 -0
- package/src/components/timers/index.ts +3 -0
- package/src/index.ts +125 -0
- package/src/screens/errors/ApiErrorScreen.tsx +276 -0
- package/src/screens/errors/ClientErrorScreen.tsx +135 -0
- package/src/screens/errors/ErrorBoundaryScreen.tsx +98 -0
- package/src/screens/errors/InvalidResponseScreen.tsx +104 -0
- package/src/screens/errors/ServerErrorScreen.tsx +139 -0
- package/src/screens/errors/index.ts +6 -0
- package/src/screens/index.ts +5 -0
- package/src/screens/network/ApiTimeoutScreen.tsx +104 -0
- package/src/screens/network/NetworkOfflineScreen.tsx +92 -0
- package/src/screens/network/NetworkSlowConnectionScreen.tsx +92 -0
- package/src/screens/network/index.ts +4 -0
- package/src/screens/permissions/PermissionDeniedScreen.tsx +176 -0
- package/src/screens/permissions/PermissionRequestScreen.tsx +506 -0
- package/src/screens/permissions/PermissionScreen.tsx +104 -0
- package/src/screens/permissions/index.ts +4 -0
- package/src/screens/system/index.ts +3 -0
- package/src/screens/system/maintenance/EmergencyOutageScreen.tsx +113 -0
- package/src/screens/system/maintenance/PlannedMaintenanceScreen.tsx +98 -0
- package/src/screens/system/maintenance/ServiceUnavailableScreen.tsx +133 -0
- package/src/screens/system/maintenance/SystemMaintenanceScreen.tsx +334 -0
- package/src/screens/system/maintenance/UnplannedOutageScreen.tsx +106 -0
- package/src/screens/system/maintenance/index.ts +6 -0
- package/src/screens/system/updates/AppUpdateScreen.tsx +440 -0
- package/src/screens/system/updates/ForceUpdateScreen.tsx +121 -0
- package/src/screens/system/updates/OptionalUpdateScreen.tsx +120 -0
- package/src/screens/system/updates/SecurityUpdateScreen.tsx +152 -0
- package/src/screens/system/updates/SoftUpdateScreen.tsx +137 -0
- package/src/screens/system/updates/index.ts +6 -0
- package/src/types/common.ts +203 -0
- package/src/types/components.ts +65 -0
- package/src/types/index.ts +9 -0
- package/src/types/reanimated.d.ts +38 -0
- package/src/types/screens.ts +428 -0
- package/src/types/support.ts +23 -0
- package/src/utils/client.ts +273 -0
- package/src/utils/index.ts +2 -0
|
@@ -0,0 +1,296 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useEffect, useRef } from 'react';
|
|
3
|
+
import { View, Text, TouchableOpacity, StyleSheet, ScrollView, Animated } from 'react-native';
|
|
4
|
+
import { DownloadIcon, XIcon } from '../../components/icons/SimpleIcons';
|
|
5
|
+
import { getColor, getColorWithOpacity, isWeb } from '../../client';
|
|
6
|
+
/**
|
|
7
|
+
* App Update Screen Component
|
|
8
|
+
*
|
|
9
|
+
* Fully customizable app update screen.
|
|
10
|
+
* All content, actions, and styling are configurable via props.
|
|
11
|
+
*/
|
|
12
|
+
export const AppUpdateScreen = ({
|
|
13
|
+
// Update type (for default config)
|
|
14
|
+
updateType,
|
|
15
|
+
// Content customization
|
|
16
|
+
title, description, icon,
|
|
17
|
+
// Version info (optional)
|
|
18
|
+
currentVersion, newVersion, showVersionInfo = true,
|
|
19
|
+
// Release notes (optional)
|
|
20
|
+
releaseNotes, showReleaseNotes = true,
|
|
21
|
+
// Actions
|
|
22
|
+
onUpdate, onSkip, onRemindLater,
|
|
23
|
+
// Button text
|
|
24
|
+
updateButtonText = 'Update Now', skipButtonText = 'Skip this version', remindLaterButtonText = 'Remind Me Later',
|
|
25
|
+
// Variant
|
|
26
|
+
variant = 'fullscreen',
|
|
27
|
+
// Styling
|
|
28
|
+
theme, primaryColor, }) => {
|
|
29
|
+
// Animation
|
|
30
|
+
const fadeAnim = useRef(new Animated.Value(0)).current;
|
|
31
|
+
const scaleAnim = useRef(new Animated.Value(0.9)).current;
|
|
32
|
+
useEffect(() => {
|
|
33
|
+
Animated.parallel([
|
|
34
|
+
Animated.timing(fadeAnim, {
|
|
35
|
+
toValue: 1,
|
|
36
|
+
duration: 300,
|
|
37
|
+
useNativeDriver: true,
|
|
38
|
+
}),
|
|
39
|
+
Animated.spring(scaleAnim, {
|
|
40
|
+
toValue: 1,
|
|
41
|
+
tension: 50,
|
|
42
|
+
friction: 7,
|
|
43
|
+
useNativeDriver: true,
|
|
44
|
+
}),
|
|
45
|
+
]).start();
|
|
46
|
+
}, []);
|
|
47
|
+
// Get default config based on updateType (fallback)
|
|
48
|
+
const getDefaultConfig = () => {
|
|
49
|
+
const errorColor = theme?.error || getColor('error');
|
|
50
|
+
const warningColor = theme?.warning || getColor('warning');
|
|
51
|
+
const successColor = theme?.success || getColor('success');
|
|
52
|
+
const primaryColorDefault = theme?.primary || getColor('primary');
|
|
53
|
+
switch (updateType) {
|
|
54
|
+
case 'critical':
|
|
55
|
+
return {
|
|
56
|
+
color: errorColor,
|
|
57
|
+
title: 'Critical Security Update',
|
|
58
|
+
description: 'A critical security update is available. Please update immediately to keep your data safe.',
|
|
59
|
+
badge: 'Security',
|
|
60
|
+
canSkip: false,
|
|
61
|
+
};
|
|
62
|
+
case 'force':
|
|
63
|
+
return {
|
|
64
|
+
color: warningColor,
|
|
65
|
+
title: 'Update Required',
|
|
66
|
+
description: 'A new version is required to continue using the app. Please update now.',
|
|
67
|
+
badge: 'Required',
|
|
68
|
+
canSkip: false,
|
|
69
|
+
};
|
|
70
|
+
case 'optional':
|
|
71
|
+
return {
|
|
72
|
+
color: successColor,
|
|
73
|
+
title: 'Update Available',
|
|
74
|
+
description: 'A new version with exciting features is available. Update now to get the latest improvements.',
|
|
75
|
+
badge: 'New Features',
|
|
76
|
+
canSkip: true,
|
|
77
|
+
};
|
|
78
|
+
case 'soft':
|
|
79
|
+
default:
|
|
80
|
+
return {
|
|
81
|
+
color: primaryColorDefault,
|
|
82
|
+
title: 'Update Available',
|
|
83
|
+
description: 'A new version is available with bug fixes and improvements.',
|
|
84
|
+
badge: null,
|
|
85
|
+
canSkip: true,
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
};
|
|
89
|
+
const defaultConfig = updateType ? getDefaultConfig() : null;
|
|
90
|
+
// Use custom values or fallback to defaults
|
|
91
|
+
const finalTitle = title || defaultConfig?.title || 'Update Available';
|
|
92
|
+
const finalDescription = description || defaultConfig?.description || 'A new version is available.';
|
|
93
|
+
const finalIcon = icon || _jsx(DownloadIcon, { size: 48, color: primaryColor || defaultConfig?.color || theme?.primary || getColor('primary') });
|
|
94
|
+
const finalColor = primaryColor || defaultConfig?.color || theme?.primary || getColor('primary');
|
|
95
|
+
const canSkip = defaultConfig?.canSkip !== false; // Default to true if no updateType
|
|
96
|
+
const badge = defaultConfig?.badge;
|
|
97
|
+
// Format release notes
|
|
98
|
+
const formattedReleaseNotes = Array.isArray(releaseNotes)
|
|
99
|
+
? releaseNotes.join('\n• ')
|
|
100
|
+
: releaseNotes;
|
|
101
|
+
if (variant === 'banner') {
|
|
102
|
+
return (_jsxs(View, { style: [styles.banner, { backgroundColor: finalColor }], children: [_jsxs(View, { style: styles.bannerContent, children: [_jsx(DownloadIcon, { size: 20, color: "#FFFFFF" }), _jsxs(Text, { style: styles.bannerText, children: ["Update to ", newVersion ? `v${newVersion}` : 'latest version', " available"] })] }), _jsxs(View, { style: styles.bannerActions, children: [onUpdate && (_jsx(TouchableOpacity, { onPress: onUpdate, activeOpacity: 0.7, style: styles.bannerButton, children: _jsx(Text, { style: styles.bannerButtonText, children: updateButtonText }) })), canSkip && onSkip && (_jsx(TouchableOpacity, { onPress: onSkip, activeOpacity: 0.7, children: _jsx(XIcon, { size: 20, color: "#FFFFFF" }) }))] })] }));
|
|
103
|
+
}
|
|
104
|
+
// Fullscreen variant
|
|
105
|
+
return (_jsx(View, { style: [styles.container, theme?.background ? { backgroundColor: theme.background } : undefined], children: _jsx(ScrollView, { contentContainerStyle: styles.scrollContent, showsVerticalScrollIndicator: false, children: _jsxs(Animated.View, { style: [
|
|
106
|
+
styles.content,
|
|
107
|
+
{
|
|
108
|
+
opacity: fadeAnim,
|
|
109
|
+
transform: [{ scale: scaleAnim }],
|
|
110
|
+
},
|
|
111
|
+
], children: [_jsx(View, { style: [styles.iconContainer, { backgroundColor: getColorWithOpacity(finalColor, 0.1) }], children: finalIcon }), badge && (_jsx(View, { style: [styles.badge, { backgroundColor: getColorWithOpacity(finalColor, 0.1) }], children: _jsx(Text, { style: [styles.badgeText, { color: finalColor }], children: badge }) })), _jsx(Text, { style: [styles.title, theme?.textPrimary ? { color: theme.textPrimary } : undefined], children: finalTitle }), _jsx(Text, { style: [styles.description, theme?.textSecondary ? { color: theme.textSecondary } : undefined], children: finalDescription }), showVersionInfo && currentVersion && newVersion && (_jsxs(View, { style: styles.versionContainer, children: [_jsxs(View, { style: styles.versionItem, children: [_jsx(Text, { style: styles.versionLabel, children: "Current" }), _jsx(Text, { style: styles.versionNumber, children: currentVersion })] }), _jsx(Text, { style: styles.versionArrow, children: "\u2192" }), _jsxs(View, { style: styles.versionItem, children: [_jsx(Text, { style: styles.versionLabel, children: "New" }), _jsx(Text, { style: [styles.versionNumber, { color: finalColor }], children: newVersion })] })] })), showReleaseNotes && formattedReleaseNotes && (_jsxs(View, { style: styles.releaseNotesContainer, children: [_jsx(Text, { style: styles.releaseNotesTitle, children: "What's New:" }), _jsxs(Text, { style: styles.releaseNotesText, children: [Array.isArray(releaseNotes) ? '• ' : '', formattedReleaseNotes] })] })), _jsxs(View, { style: styles.buttonsContainer, children: [onUpdate && (_jsxs(TouchableOpacity, { style: [styles.button, styles.primaryButton, { backgroundColor: finalColor }], onPress: onUpdate, activeOpacity: 0.8, children: [_jsx(DownloadIcon, { size: 20, color: "#FFFFFF" }), _jsx(Text, { style: styles.primaryButtonText, children: updateButtonText })] })), canSkip && onRemindLater && (_jsx(TouchableOpacity, { style: [styles.button, styles.secondaryButton, { borderColor: finalColor }], onPress: onRemindLater, activeOpacity: 0.8, children: _jsx(Text, { style: [styles.secondaryButtonText, { color: finalColor }], children: remindLaterButtonText }) })), canSkip && onSkip && (_jsx(TouchableOpacity, { onPress: onSkip, activeOpacity: 0.7, children: _jsx(Text, { style: styles.skipText, children: skipButtonText }) }))] })] }) }) }));
|
|
112
|
+
};
|
|
113
|
+
const styles = StyleSheet.create({
|
|
114
|
+
// Fullscreen
|
|
115
|
+
container: {
|
|
116
|
+
flex: 1,
|
|
117
|
+
backgroundColor: '#FFFFFF',
|
|
118
|
+
},
|
|
119
|
+
scrollContent: {
|
|
120
|
+
flexGrow: 1,
|
|
121
|
+
justifyContent: 'center',
|
|
122
|
+
padding: 24,
|
|
123
|
+
},
|
|
124
|
+
content: {
|
|
125
|
+
alignItems: 'center',
|
|
126
|
+
maxWidth: 480,
|
|
127
|
+
width: '100%',
|
|
128
|
+
alignSelf: 'center',
|
|
129
|
+
},
|
|
130
|
+
iconContainer: {
|
|
131
|
+
width: 96,
|
|
132
|
+
height: 96,
|
|
133
|
+
borderRadius: 48,
|
|
134
|
+
justifyContent: 'center',
|
|
135
|
+
alignItems: 'center',
|
|
136
|
+
marginBottom: 16,
|
|
137
|
+
},
|
|
138
|
+
badge: {
|
|
139
|
+
paddingHorizontal: 12,
|
|
140
|
+
paddingVertical: 6,
|
|
141
|
+
borderRadius: 12,
|
|
142
|
+
marginBottom: 16,
|
|
143
|
+
},
|
|
144
|
+
badgeText: {
|
|
145
|
+
fontSize: 12,
|
|
146
|
+
fontWeight: '700',
|
|
147
|
+
textTransform: 'uppercase',
|
|
148
|
+
},
|
|
149
|
+
title: {
|
|
150
|
+
fontSize: 24,
|
|
151
|
+
fontWeight: '700',
|
|
152
|
+
color: '#1F2937',
|
|
153
|
+
textAlign: 'center',
|
|
154
|
+
marginBottom: 12,
|
|
155
|
+
},
|
|
156
|
+
description: {
|
|
157
|
+
fontSize: 16,
|
|
158
|
+
color: '#6B7280',
|
|
159
|
+
textAlign: 'center',
|
|
160
|
+
lineHeight: 24,
|
|
161
|
+
marginBottom: 24,
|
|
162
|
+
},
|
|
163
|
+
versionContainer: {
|
|
164
|
+
flexDirection: 'row',
|
|
165
|
+
alignItems: 'center',
|
|
166
|
+
marginBottom: 24,
|
|
167
|
+
padding: 16,
|
|
168
|
+
backgroundColor: '#F9FAFB',
|
|
169
|
+
borderRadius: 12,
|
|
170
|
+
},
|
|
171
|
+
versionItem: {
|
|
172
|
+
alignItems: 'center',
|
|
173
|
+
marginHorizontal: 8,
|
|
174
|
+
},
|
|
175
|
+
versionLabel: {
|
|
176
|
+
fontSize: 12,
|
|
177
|
+
color: '#6B7280',
|
|
178
|
+
marginBottom: 4,
|
|
179
|
+
},
|
|
180
|
+
versionNumber: {
|
|
181
|
+
fontSize: 18,
|
|
182
|
+
fontWeight: '700',
|
|
183
|
+
color: '#1F2937',
|
|
184
|
+
},
|
|
185
|
+
versionArrow: {
|
|
186
|
+
fontSize: 20,
|
|
187
|
+
color: '#6B7280',
|
|
188
|
+
},
|
|
189
|
+
releaseNotesContainer: {
|
|
190
|
+
width: '100%',
|
|
191
|
+
padding: 16,
|
|
192
|
+
backgroundColor: '#F9FAFB',
|
|
193
|
+
borderRadius: 12,
|
|
194
|
+
marginBottom: 24,
|
|
195
|
+
},
|
|
196
|
+
releaseNotesTitle: {
|
|
197
|
+
fontSize: 14,
|
|
198
|
+
fontWeight: '600',
|
|
199
|
+
color: '#1F2937',
|
|
200
|
+
marginBottom: 8,
|
|
201
|
+
},
|
|
202
|
+
releaseNotesText: {
|
|
203
|
+
fontSize: 14,
|
|
204
|
+
color: '#6B7280',
|
|
205
|
+
lineHeight: 20,
|
|
206
|
+
},
|
|
207
|
+
buttonsContainer: {
|
|
208
|
+
width: '100%',
|
|
209
|
+
alignItems: 'center',
|
|
210
|
+
},
|
|
211
|
+
button: {
|
|
212
|
+
flexDirection: 'row',
|
|
213
|
+
alignItems: 'center',
|
|
214
|
+
justifyContent: 'center',
|
|
215
|
+
paddingVertical: 14,
|
|
216
|
+
paddingHorizontal: 32,
|
|
217
|
+
borderRadius: 12,
|
|
218
|
+
width: '100%',
|
|
219
|
+
maxWidth: 280,
|
|
220
|
+
marginBottom: 12,
|
|
221
|
+
},
|
|
222
|
+
buttonIcon: {
|
|
223
|
+
marginRight: 8,
|
|
224
|
+
},
|
|
225
|
+
primaryButton: {
|
|
226
|
+
...(!isWeb() && {
|
|
227
|
+
shadowColor: '#000',
|
|
228
|
+
shadowOffset: { width: 0, height: 2 },
|
|
229
|
+
shadowOpacity: 0.1,
|
|
230
|
+
shadowRadius: 4,
|
|
231
|
+
elevation: 3,
|
|
232
|
+
}),
|
|
233
|
+
},
|
|
234
|
+
primaryButtonText: {
|
|
235
|
+
fontSize: 16,
|
|
236
|
+
fontWeight: '600',
|
|
237
|
+
color: '#FFFFFF',
|
|
238
|
+
},
|
|
239
|
+
secondaryButton: {
|
|
240
|
+
borderWidth: 2,
|
|
241
|
+
backgroundColor: 'transparent',
|
|
242
|
+
},
|
|
243
|
+
secondaryButtonText: {
|
|
244
|
+
fontSize: 16,
|
|
245
|
+
fontWeight: '600',
|
|
246
|
+
},
|
|
247
|
+
skipText: {
|
|
248
|
+
fontSize: 14,
|
|
249
|
+
color: '#9CA3AF',
|
|
250
|
+
marginTop: 8,
|
|
251
|
+
},
|
|
252
|
+
// Banner
|
|
253
|
+
banner: {
|
|
254
|
+
position: 'absolute',
|
|
255
|
+
top: 0,
|
|
256
|
+
left: 0,
|
|
257
|
+
right: 0,
|
|
258
|
+
flexDirection: 'row',
|
|
259
|
+
alignItems: 'center',
|
|
260
|
+
justifyContent: 'space-between',
|
|
261
|
+
paddingHorizontal: 16,
|
|
262
|
+
paddingVertical: 12,
|
|
263
|
+
zIndex: 1000,
|
|
264
|
+
},
|
|
265
|
+
bannerContent: {
|
|
266
|
+
flexDirection: 'row',
|
|
267
|
+
alignItems: 'center',
|
|
268
|
+
flex: 1,
|
|
269
|
+
},
|
|
270
|
+
bannerIcon: {
|
|
271
|
+
marginRight: 12,
|
|
272
|
+
},
|
|
273
|
+
bannerText: {
|
|
274
|
+
fontSize: 14,
|
|
275
|
+
fontWeight: '600',
|
|
276
|
+
color: '#FFFFFF',
|
|
277
|
+
},
|
|
278
|
+
bannerActions: {
|
|
279
|
+
flexDirection: 'row',
|
|
280
|
+
alignItems: 'center',
|
|
281
|
+
},
|
|
282
|
+
bannerActionButton: {
|
|
283
|
+
marginLeft: 12,
|
|
284
|
+
},
|
|
285
|
+
bannerButton: {
|
|
286
|
+
paddingHorizontal: 12,
|
|
287
|
+
paddingVertical: 6,
|
|
288
|
+
backgroundColor: 'rgba(255, 255, 255, 0.2)',
|
|
289
|
+
borderRadius: 6,
|
|
290
|
+
},
|
|
291
|
+
bannerButtonText: {
|
|
292
|
+
fontSize: 14,
|
|
293
|
+
fontWeight: '600',
|
|
294
|
+
color: '#FFFFFF',
|
|
295
|
+
},
|
|
296
|
+
});
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { EmergencyOutageScreenProps } from '../../types';
|
|
3
|
+
/**
|
|
4
|
+
* Emergency Outage Screen
|
|
5
|
+
*
|
|
6
|
+
* Displayed during critical emergency outages.
|
|
7
|
+
*/
|
|
8
|
+
export declare const EmergencyOutageScreen: React.FC<EmergencyOutageScreenProps>;
|
|
9
|
+
export default EmergencyOutageScreen;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Text, StyleSheet } from 'react-native';
|
|
3
|
+
import ScreenContainer from '../../components/shared/ScreenContainer';
|
|
4
|
+
import IconWithBadge from '../../components/icons/IconWithBadge';
|
|
5
|
+
import StatusBadge from '../../components/shared/StatusBadge';
|
|
6
|
+
import ContentCard from '../../components/shared/ContentCard';
|
|
7
|
+
import PrimaryButton from '../../components/shared/PrimaryButton';
|
|
8
|
+
import SecondaryButton from '../../components/shared/SecondaryButton';
|
|
9
|
+
import AnimatedEmergency from '../../components/icons/AnimatedEmergency';
|
|
10
|
+
import { getColor } from '../../client';
|
|
11
|
+
/**
|
|
12
|
+
* Emergency Outage Screen
|
|
13
|
+
*
|
|
14
|
+
* Displayed during critical emergency outages.
|
|
15
|
+
*/
|
|
16
|
+
export const EmergencyOutageScreen = ({ title = 'Service Unavailable', description = 'We\'re experiencing a critical issue. Our team is working around the clock to restore service.', incidentDetails, onCheckStatus, onGetUpdates, statusButtonText = 'Check Status', updatesButtonText = 'Get Updates', support, theme, primaryColor, backgroundColor, }) => {
|
|
17
|
+
const errorColor = primaryColor || theme?.error || getColor('error');
|
|
18
|
+
return (_jsxs(ScreenContainer, { backgroundColor: backgroundColor || theme?.background, children: [_jsx(IconWithBadge, { icon: _jsx(AnimatedEmergency, { size: 48, color: errorColor }), iconBackgroundColor: "#FEE2E2", badge: _jsx(Text, { style: styles.badgeIcon, children: "!" }), badgeBackgroundColor: errorColor }), _jsx(StatusBadge, { text: "Critical", backgroundColor: "#FEE2E2", textColor: errorColor }), _jsx(Text, { style: [styles.title, theme?.textPrimary ? { color: theme.textPrimary } : undefined], children: title }), _jsx(Text, { style: [styles.description, theme?.textSecondary ? { color: theme.textSecondary } : undefined], children: description }), incidentDetails && (_jsx(ContentCard, { title: "Incident Details", children: _jsx(Text, { style: styles.incidentText, children: incidentDetails }) })), onCheckStatus && (_jsx(PrimaryButton, { onPress: onCheckStatus, backgroundColor: errorColor, children: statusButtonText })), onGetUpdates && (_jsx(SecondaryButton, { onPress: onGetUpdates, children: updatesButtonText }))] }));
|
|
19
|
+
};
|
|
20
|
+
const styles = StyleSheet.create({
|
|
21
|
+
title: {
|
|
22
|
+
fontSize: 24,
|
|
23
|
+
fontWeight: '700',
|
|
24
|
+
color: '#1F2937',
|
|
25
|
+
textAlign: 'center',
|
|
26
|
+
marginBottom: 12,
|
|
27
|
+
lineHeight: 32,
|
|
28
|
+
},
|
|
29
|
+
description: {
|
|
30
|
+
fontSize: 16,
|
|
31
|
+
fontWeight: '400',
|
|
32
|
+
color: '#6B7280',
|
|
33
|
+
textAlign: 'center',
|
|
34
|
+
lineHeight: 24,
|
|
35
|
+
marginBottom: 24,
|
|
36
|
+
},
|
|
37
|
+
incidentText: {
|
|
38
|
+
fontSize: 14,
|
|
39
|
+
color: '#6B7280',
|
|
40
|
+
lineHeight: 20,
|
|
41
|
+
},
|
|
42
|
+
badgeIcon: {
|
|
43
|
+
color: '#FFFFFF',
|
|
44
|
+
fontSize: 20,
|
|
45
|
+
fontWeight: '700',
|
|
46
|
+
},
|
|
47
|
+
});
|
|
48
|
+
export default EmergencyOutageScreen;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { ForceUpdateScreenProps } from '../../types';
|
|
3
|
+
/**
|
|
4
|
+
* Force Update Screen
|
|
5
|
+
*
|
|
6
|
+
* Displayed when an update is required to continue using the app.
|
|
7
|
+
*/
|
|
8
|
+
export declare const ForceUpdateScreen: React.FC<ForceUpdateScreenProps>;
|
|
9
|
+
export default ForceUpdateScreen;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Text, StyleSheet } from 'react-native';
|
|
3
|
+
import ScreenContainer from '../../components/shared/ScreenContainer';
|
|
4
|
+
import IconWithBadge from '../../components/icons/IconWithBadge';
|
|
5
|
+
import StatusBadge from '../../components/shared/StatusBadge';
|
|
6
|
+
import ContentCard from '../../components/shared/ContentCard';
|
|
7
|
+
import PrimaryButton from '../../components/shared/PrimaryButton';
|
|
8
|
+
import VersionDisplay from '../../components/shared/VersionDisplay';
|
|
9
|
+
import AnimatedDownload from '../../components/icons/AnimatedDownload';
|
|
10
|
+
import { getColor } from '../../client';
|
|
11
|
+
/**
|
|
12
|
+
* Force Update Screen
|
|
13
|
+
*
|
|
14
|
+
* Displayed when an update is required to continue using the app.
|
|
15
|
+
*/
|
|
16
|
+
export const ForceUpdateScreen = ({ title = 'Update Required', description = 'Please update to the latest version to continue using the app.', currentVersion, newVersion, features, onUpdate, updateButtonText = 'Update Now', support, theme, primaryColor, backgroundColor, }) => {
|
|
17
|
+
const warningColor = primaryColor || theme?.warning || getColor('warning');
|
|
18
|
+
return (_jsxs(ScreenContainer, { backgroundColor: backgroundColor || theme?.background, children: [_jsx(IconWithBadge, { icon: _jsx(AnimatedDownload, { size: 48, color: warningColor }), iconBackgroundColor: "#FED7AA", badge: _jsx(Text, { style: styles.badgeIcon, children: "!" }), badgeBackgroundColor: warningColor }), _jsx(StatusBadge, { text: "Required", backgroundColor: "#FED7AA", textColor: warningColor }), _jsx(Text, { style: [styles.title, theme?.textPrimary ? { color: theme.textPrimary } : undefined], children: title }), _jsx(Text, { style: [styles.description, theme?.textSecondary ? { color: theme.textSecondary } : undefined], children: description }), currentVersion && newVersion && (_jsx(VersionDisplay, { currentVersion: currentVersion, newVersion: newVersion, primaryColor: warningColor })), features && features.length > 0 && (_jsx(ContentCard, { title: "What's New", children: features.map((feature, index) => (_jsxs(Text, { style: styles.featureText, children: ["\u2022 ", feature] }, index))) })), onUpdate && (_jsx(PrimaryButton, { onPress: onUpdate, backgroundColor: warningColor, children: updateButtonText }))] }));
|
|
19
|
+
};
|
|
20
|
+
const styles = StyleSheet.create({
|
|
21
|
+
title: {
|
|
22
|
+
fontSize: 24,
|
|
23
|
+
fontWeight: '700',
|
|
24
|
+
color: '#1F2937',
|
|
25
|
+
textAlign: 'center',
|
|
26
|
+
marginBottom: 12,
|
|
27
|
+
lineHeight: 32,
|
|
28
|
+
},
|
|
29
|
+
description: {
|
|
30
|
+
fontSize: 16,
|
|
31
|
+
fontWeight: '400',
|
|
32
|
+
color: '#6B7280',
|
|
33
|
+
textAlign: 'center',
|
|
34
|
+
lineHeight: 24,
|
|
35
|
+
marginBottom: 24,
|
|
36
|
+
},
|
|
37
|
+
featureText: {
|
|
38
|
+
fontSize: 14,
|
|
39
|
+
color: '#6B7280',
|
|
40
|
+
lineHeight: 20,
|
|
41
|
+
marginBottom: 8,
|
|
42
|
+
},
|
|
43
|
+
badgeIcon: {
|
|
44
|
+
color: '#FFFFFF',
|
|
45
|
+
fontSize: 20,
|
|
46
|
+
fontWeight: '700',
|
|
47
|
+
},
|
|
48
|
+
});
|
|
49
|
+
export default ForceUpdateScreen;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { OptionalUpdateScreenProps } from '../../types';
|
|
3
|
+
/**
|
|
4
|
+
* Optional Update Screen
|
|
5
|
+
*
|
|
6
|
+
* Displayed when an optional update with new features is available.
|
|
7
|
+
*/
|
|
8
|
+
export declare const OptionalUpdateScreen: React.FC<OptionalUpdateScreenProps>;
|
|
9
|
+
export default OptionalUpdateScreen;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Text, StyleSheet } from 'react-native';
|
|
3
|
+
import ScreenContainer from '../../components/shared/ScreenContainer';
|
|
4
|
+
import IconWithBadge from '../../components/icons/IconWithBadge';
|
|
5
|
+
import ContentCard from '../../components/shared/ContentCard';
|
|
6
|
+
import PrimaryButton from '../../components/shared/PrimaryButton';
|
|
7
|
+
import SecondaryButton from '../../components/shared/SecondaryButton';
|
|
8
|
+
import VersionDisplay from '../../components/shared/VersionDisplay';
|
|
9
|
+
import AnimatedDownload from '../../components/icons/AnimatedDownload';
|
|
10
|
+
import { getColor } from '../../client';
|
|
11
|
+
/**
|
|
12
|
+
* Optional Update Screen
|
|
13
|
+
*
|
|
14
|
+
* Displayed when an optional update with new features is available.
|
|
15
|
+
*/
|
|
16
|
+
export const OptionalUpdateScreen = ({ title = 'New Features Available', description = 'Update now to enjoy exciting new capabilities and improvements.', currentVersion, newVersion, features, onUpdate, onMaybeLater, updateButtonText = 'Update Now', laterButtonText = 'Maybe Later', support, theme, primaryColor, backgroundColor, }) => {
|
|
17
|
+
const infoColor = primaryColor || theme?.primary || getColor('primary');
|
|
18
|
+
return (_jsxs(ScreenContainer, { backgroundColor: backgroundColor || theme?.background, children: [_jsx(IconWithBadge, { icon: _jsx(AnimatedDownload, { size: 48, color: infoColor }), iconBackgroundColor: "#DBEAFE", badge: _jsx(Text, { style: styles.badgeIcon, children: "\u2728" }), badgeBackgroundColor: infoColor }), _jsx(Text, { style: [styles.title, theme?.textPrimary ? { color: theme.textPrimary } : undefined], children: title }), _jsx(Text, { style: [styles.description, theme?.textSecondary ? { color: theme.textSecondary } : undefined], children: description }), currentVersion && newVersion && (_jsx(VersionDisplay, { currentVersion: currentVersion, newVersion: newVersion, primaryColor: infoColor })), features && features.length > 0 && (_jsx(ContentCard, { title: "What's New", children: features.map((feature, index) => (_jsxs(Text, { style: styles.featureText, children: ["\u2022 ", feature] }, index))) })), onUpdate && (_jsx(PrimaryButton, { onPress: onUpdate, backgroundColor: infoColor, children: updateButtonText })), onMaybeLater && (_jsx(SecondaryButton, { onPress: onMaybeLater, children: laterButtonText }))] }));
|
|
19
|
+
};
|
|
20
|
+
const styles = StyleSheet.create({
|
|
21
|
+
title: {
|
|
22
|
+
fontSize: 24,
|
|
23
|
+
fontWeight: '700',
|
|
24
|
+
color: '#1F2937',
|
|
25
|
+
textAlign: 'center',
|
|
26
|
+
marginBottom: 12,
|
|
27
|
+
lineHeight: 32,
|
|
28
|
+
},
|
|
29
|
+
description: {
|
|
30
|
+
fontSize: 16,
|
|
31
|
+
fontWeight: '400',
|
|
32
|
+
color: '#6B7280',
|
|
33
|
+
textAlign: 'center',
|
|
34
|
+
lineHeight: 24,
|
|
35
|
+
marginBottom: 24,
|
|
36
|
+
},
|
|
37
|
+
featureText: {
|
|
38
|
+
fontSize: 14,
|
|
39
|
+
color: '#6B7280',
|
|
40
|
+
lineHeight: 20,
|
|
41
|
+
marginBottom: 8,
|
|
42
|
+
},
|
|
43
|
+
badgeIcon: {
|
|
44
|
+
fontSize: 16,
|
|
45
|
+
},
|
|
46
|
+
});
|
|
47
|
+
export default OptionalUpdateScreen;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { PlannedMaintenanceScreenProps } from '../../types';
|
|
3
|
+
/**
|
|
4
|
+
* Planned Maintenance Screen
|
|
5
|
+
*
|
|
6
|
+
* Displayed during scheduled maintenance.
|
|
7
|
+
*/
|
|
8
|
+
export declare const PlannedMaintenanceScreen: React.FC<PlannedMaintenanceScreenProps>;
|
|
9
|
+
export default PlannedMaintenanceScreen;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Text, StyleSheet } from 'react-native';
|
|
3
|
+
import ScreenContainer from '../../components/shared/ScreenContainer';
|
|
4
|
+
import IconWithBadge from '../../components/icons/IconWithBadge';
|
|
5
|
+
import ContentCard from '../../components/shared/ContentCard';
|
|
6
|
+
import PrimaryButton from '../../components/shared/PrimaryButton';
|
|
7
|
+
import SecondaryButton from '../../components/shared/SecondaryButton';
|
|
8
|
+
import CheckListItem from '../../components/shared/CheckListItem';
|
|
9
|
+
import AnimatedWrench from '../../components/icons/AnimatedWrench';
|
|
10
|
+
import { getColor } from '../../client';
|
|
11
|
+
/**
|
|
12
|
+
* Planned Maintenance Screen
|
|
13
|
+
*
|
|
14
|
+
* Displayed during scheduled maintenance.
|
|
15
|
+
*/
|
|
16
|
+
export const PlannedMaintenanceScreen = ({ title = 'Service Temporarily Unavailable', description = 'We\'re experiencing technical difficulties and working to resolve them.', onCheckAgain, onNotifyWhenBack, checkButtonText = 'Check Again', notifyButtonText = 'Notify Me When Back', support, theme, primaryColor, backgroundColor, }) => {
|
|
17
|
+
const warningColor = primaryColor || theme?.warning || getColor('warning');
|
|
18
|
+
return (_jsxs(ScreenContainer, { backgroundColor: backgroundColor || theme?.background, children: [_jsx(IconWithBadge, { icon: _jsx(AnimatedWrench, { size: 48, color: warningColor }), iconBackgroundColor: "#FEF3C7", badge: _jsx(Text, { style: styles.badgeIcon, children: "\uD83D\uDD50" }), badgeBackgroundColor: warningColor }), _jsx(Text, { style: [styles.title, theme?.textPrimary ? { color: theme.textPrimary } : undefined], children: title }), _jsx(Text, { style: [styles.description, theme?.textSecondary ? { color: theme.textSecondary } : undefined], children: description }), _jsxs(ContentCard, { title: "What's happening?", children: [_jsx(CheckListItem, { text: "Our team is actively working on this" }), _jsx(CheckListItem, { text: "Your data is safe and secure" }), _jsx(CheckListItem, { text: "We'll be back as soon as possible" })] }), onCheckAgain && (_jsx(PrimaryButton, { onPress: onCheckAgain, backgroundColor: warningColor, children: checkButtonText })), onNotifyWhenBack && (_jsx(SecondaryButton, { onPress: onNotifyWhenBack, children: notifyButtonText }))] }));
|
|
19
|
+
};
|
|
20
|
+
const styles = StyleSheet.create({
|
|
21
|
+
title: {
|
|
22
|
+
fontSize: 24,
|
|
23
|
+
fontWeight: '700',
|
|
24
|
+
color: '#1F2937',
|
|
25
|
+
textAlign: 'center',
|
|
26
|
+
marginBottom: 12,
|
|
27
|
+
lineHeight: 32,
|
|
28
|
+
},
|
|
29
|
+
description: {
|
|
30
|
+
fontSize: 16,
|
|
31
|
+
fontWeight: '400',
|
|
32
|
+
color: '#6B7280',
|
|
33
|
+
textAlign: 'center',
|
|
34
|
+
lineHeight: 24,
|
|
35
|
+
marginBottom: 24,
|
|
36
|
+
},
|
|
37
|
+
badgeIcon: {
|
|
38
|
+
fontSize: 16,
|
|
39
|
+
},
|
|
40
|
+
});
|
|
41
|
+
export default PlannedMaintenanceScreen;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { SecurityUpdateScreenProps } from '../../types';
|
|
3
|
+
/**
|
|
4
|
+
* Critical Security Update Screen
|
|
5
|
+
*
|
|
6
|
+
* Displayed when a critical security update is required.
|
|
7
|
+
*/
|
|
8
|
+
export declare const SecurityUpdateScreen: React.FC<SecurityUpdateScreenProps>;
|
|
9
|
+
export default SecurityUpdateScreen;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Text, StyleSheet } from 'react-native';
|
|
3
|
+
import ScreenContainer from '../../components/shared/ScreenContainer';
|
|
4
|
+
import IconWithBadge from '../../components/icons/IconWithBadge';
|
|
5
|
+
import StatusBadge from '../../components/shared/StatusBadge';
|
|
6
|
+
import ContentCard from '../../components/shared/ContentCard';
|
|
7
|
+
import PrimaryButton from '../../components/shared/PrimaryButton';
|
|
8
|
+
import VersionDisplay from '../../components/shared/VersionDisplay';
|
|
9
|
+
import AnimatedDownload from '../../components/icons/AnimatedDownload';
|
|
10
|
+
import { getColor } from '../../client';
|
|
11
|
+
/**
|
|
12
|
+
* Critical Security Update Screen
|
|
13
|
+
*
|
|
14
|
+
* Displayed when a critical security update is required.
|
|
15
|
+
*/
|
|
16
|
+
export const SecurityUpdateScreen = ({ title = 'Critical Security Update', description = 'This update is required for your security', currentVersion, newVersion, features, releaseNotes, onUpdate, updateButtonText = 'Update Now', support, theme, primaryColor, backgroundColor, }) => {
|
|
17
|
+
const warningColor = primaryColor || theme?.warning || getColor('warning');
|
|
18
|
+
return (_jsxs(ScreenContainer, { backgroundColor: backgroundColor || theme?.background, children: [_jsx(IconWithBadge, { icon: _jsx(Text, { style: styles.shieldIcon, children: "\uD83D\uDEE1\uFE0F" }), iconBackgroundColor: "#FED7AA", badge: _jsx(AnimatedDownload, { size: 20, color: "#FFFFFF" }), badgeBackgroundColor: "#3B82F6" }), _jsx(StatusBadge, { text: "Security", backgroundColor: "#FED7AA", textColor: warningColor }), _jsx(Text, { style: [styles.title, theme?.textPrimary ? { color: theme.textPrimary } : undefined], children: title }), _jsx(Text, { style: [styles.description, theme?.textSecondary ? { color: theme.textSecondary } : undefined], children: description }), currentVersion && newVersion && (_jsx(VersionDisplay, { currentVersion: currentVersion, newVersion: newVersion, primaryColor: warningColor })), features && features.length > 0 && (_jsx(ContentCard, { title: "What's New", children: features.map((feature, index) => (_jsxs(Text, { style: styles.featureText, children: [feature.icon || '•', " ", feature.title, feature.description && (_jsxs(Text, { style: styles.featureDescription, children: ['\n', feature.description] }))] }, index))) })), releaseNotes && (_jsx(ContentCard, { title: "Release Notes", children: _jsx(Text, { style: styles.releaseNotesText, children: releaseNotes }) })), onUpdate && (_jsx(PrimaryButton, { onPress: onUpdate, backgroundColor: warningColor, children: updateButtonText })), _jsx(Text, { style: styles.footerText, children: "This update is required to continue using the app" })] }));
|
|
19
|
+
};
|
|
20
|
+
const styles = StyleSheet.create({
|
|
21
|
+
title: {
|
|
22
|
+
fontSize: 24,
|
|
23
|
+
fontWeight: '700',
|
|
24
|
+
color: '#1F2937',
|
|
25
|
+
textAlign: 'center',
|
|
26
|
+
marginBottom: 12,
|
|
27
|
+
lineHeight: 32,
|
|
28
|
+
},
|
|
29
|
+
description: {
|
|
30
|
+
fontSize: 16,
|
|
31
|
+
fontWeight: '400',
|
|
32
|
+
color: '#6B7280',
|
|
33
|
+
textAlign: 'center',
|
|
34
|
+
lineHeight: 24,
|
|
35
|
+
marginBottom: 24,
|
|
36
|
+
},
|
|
37
|
+
shieldIcon: {
|
|
38
|
+
fontSize: 48,
|
|
39
|
+
},
|
|
40
|
+
featureText: {
|
|
41
|
+
fontSize: 14,
|
|
42
|
+
fontWeight: '600',
|
|
43
|
+
color: '#1F2937',
|
|
44
|
+
lineHeight: 20,
|
|
45
|
+
marginBottom: 12,
|
|
46
|
+
},
|
|
47
|
+
featureDescription: {
|
|
48
|
+
fontSize: 14,
|
|
49
|
+
fontWeight: '400',
|
|
50
|
+
color: '#6B7280',
|
|
51
|
+
},
|
|
52
|
+
releaseNotesText: {
|
|
53
|
+
fontSize: 14,
|
|
54
|
+
color: '#6B7280',
|
|
55
|
+
lineHeight: 20,
|
|
56
|
+
},
|
|
57
|
+
footerText: {
|
|
58
|
+
fontSize: 12,
|
|
59
|
+
color: '#9CA3AF',
|
|
60
|
+
textAlign: 'center',
|
|
61
|
+
marginTop: 8,
|
|
62
|
+
},
|
|
63
|
+
});
|
|
64
|
+
export default SecurityUpdateScreen;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { ThemeColors } from '../../types';
|
|
3
|
+
export interface ServiceUnavailableScreenProps {
|
|
4
|
+
title?: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
statusMessages?: string[];
|
|
7
|
+
onCheckAgain?: () => void;
|
|
8
|
+
onNotifyMe?: () => void;
|
|
9
|
+
checkButtonText?: string;
|
|
10
|
+
notifyButtonText?: string;
|
|
11
|
+
theme?: ThemeColors;
|
|
12
|
+
backgroundColor?: string;
|
|
13
|
+
}
|
|
14
|
+
declare const ServiceUnavailableScreen: React.FC<ServiceUnavailableScreenProps>;
|
|
15
|
+
export default ServiceUnavailableScreen;
|