@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,74 @@
|
|
|
1
|
+
import React, { useEffect, useRef } from 'react';
|
|
2
|
+
import { View, Text, StyleSheet, Animated } from 'react-native';
|
|
3
|
+
|
|
4
|
+
interface InfoCardProps {
|
|
5
|
+
title?: string;
|
|
6
|
+
description: string;
|
|
7
|
+
backgroundColor?: string;
|
|
8
|
+
borderColor?: string;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
const InfoCard: React.FC<InfoCardProps> = ({
|
|
12
|
+
title = "Why we need this permission",
|
|
13
|
+
description,
|
|
14
|
+
backgroundColor = '#FFFFFF',
|
|
15
|
+
borderColor = '#E5E7EB',
|
|
16
|
+
}) => {
|
|
17
|
+
const fadeAnim = useRef(new Animated.Value(0)).current;
|
|
18
|
+
|
|
19
|
+
useEffect(() => {
|
|
20
|
+
Animated.timing(fadeAnim, {
|
|
21
|
+
toValue: 1,
|
|
22
|
+
duration: 500,
|
|
23
|
+
delay: 200,
|
|
24
|
+
useNativeDriver: true,
|
|
25
|
+
}).start();
|
|
26
|
+
}, []);
|
|
27
|
+
|
|
28
|
+
return (
|
|
29
|
+
<Animated.View
|
|
30
|
+
style={[
|
|
31
|
+
styles.container,
|
|
32
|
+
{
|
|
33
|
+
backgroundColor,
|
|
34
|
+
borderColor,
|
|
35
|
+
opacity: fadeAnim,
|
|
36
|
+
transform: [
|
|
37
|
+
{
|
|
38
|
+
translateY: fadeAnim.interpolate({
|
|
39
|
+
inputRange: [0, 1],
|
|
40
|
+
outputRange: [20, 0],
|
|
41
|
+
}),
|
|
42
|
+
},
|
|
43
|
+
],
|
|
44
|
+
},
|
|
45
|
+
]}
|
|
46
|
+
>
|
|
47
|
+
<Text style={styles.title}>{title}</Text>
|
|
48
|
+
<Text style={styles.description}>{description}</Text>
|
|
49
|
+
</Animated.View>
|
|
50
|
+
);
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
const styles = StyleSheet.create({
|
|
54
|
+
container: {
|
|
55
|
+
borderRadius: 12,
|
|
56
|
+
padding: 20,
|
|
57
|
+
marginBottom: 16,
|
|
58
|
+
borderWidth: 1,
|
|
59
|
+
width: '100%',
|
|
60
|
+
},
|
|
61
|
+
title: {
|
|
62
|
+
fontSize: 16,
|
|
63
|
+
fontWeight: '600',
|
|
64
|
+
color: '#1F2937',
|
|
65
|
+
marginBottom: 8,
|
|
66
|
+
},
|
|
67
|
+
description: {
|
|
68
|
+
fontSize: 14,
|
|
69
|
+
color: '#6B7280',
|
|
70
|
+
lineHeight: 20,
|
|
71
|
+
},
|
|
72
|
+
});
|
|
73
|
+
|
|
74
|
+
export default InfoCard;
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import React, { useEffect, useRef } from 'react';
|
|
2
|
+
import { View, Text, StyleSheet, Animated } from 'react-native';
|
|
3
|
+
|
|
4
|
+
interface TipsCardProps {
|
|
5
|
+
title?: string;
|
|
6
|
+
tips: string[];
|
|
7
|
+
backgroundColor?: string;
|
|
8
|
+
borderColor?: string;
|
|
9
|
+
titleColor?: string;
|
|
10
|
+
textColor?: string;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
const TipsCard: React.FC<TipsCardProps> = ({
|
|
14
|
+
title = 'Try these tips:',
|
|
15
|
+
tips,
|
|
16
|
+
backgroundColor = '#FFFFFF',
|
|
17
|
+
borderColor = '#E5E7EB',
|
|
18
|
+
titleColor = '#1F2937',
|
|
19
|
+
textColor = '#6B7280',
|
|
20
|
+
}) => {
|
|
21
|
+
const fadeAnim = useRef(new Animated.Value(0)).current;
|
|
22
|
+
|
|
23
|
+
useEffect(() => {
|
|
24
|
+
Animated.timing(fadeAnim, {
|
|
25
|
+
toValue: 1,
|
|
26
|
+
duration: 500,
|
|
27
|
+
delay: 300,
|
|
28
|
+
useNativeDriver: true,
|
|
29
|
+
}).start();
|
|
30
|
+
}, []);
|
|
31
|
+
|
|
32
|
+
return (
|
|
33
|
+
<Animated.View
|
|
34
|
+
style={[
|
|
35
|
+
styles.container,
|
|
36
|
+
{
|
|
37
|
+
backgroundColor,
|
|
38
|
+
borderColor,
|
|
39
|
+
opacity: fadeAnim,
|
|
40
|
+
transform: [
|
|
41
|
+
{
|
|
42
|
+
translateY: fadeAnim.interpolate({
|
|
43
|
+
inputRange: [0, 1],
|
|
44
|
+
outputRange: [20, 0],
|
|
45
|
+
}),
|
|
46
|
+
},
|
|
47
|
+
],
|
|
48
|
+
},
|
|
49
|
+
]}
|
|
50
|
+
>
|
|
51
|
+
<Text style={[styles.title, { color: titleColor }]}>{title}</Text>
|
|
52
|
+
<View style={styles.tipsList}>
|
|
53
|
+
{tips.map((tip, index) => (
|
|
54
|
+
<View key={index} style={styles.tipItem}>
|
|
55
|
+
<View style={styles.numberContainer}>
|
|
56
|
+
<Text style={[styles.number, { color: textColor }]}>{index + 1}</Text>
|
|
57
|
+
</View>
|
|
58
|
+
<Text style={[styles.tipText, { color: textColor }]}>{tip}</Text>
|
|
59
|
+
</View>
|
|
60
|
+
))}
|
|
61
|
+
</View>
|
|
62
|
+
</Animated.View>
|
|
63
|
+
);
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
const styles = StyleSheet.create({
|
|
67
|
+
container: {
|
|
68
|
+
borderRadius: 12,
|
|
69
|
+
padding: 20,
|
|
70
|
+
marginBottom: 24,
|
|
71
|
+
borderWidth: 1,
|
|
72
|
+
width: '100%',
|
|
73
|
+
},
|
|
74
|
+
title: {
|
|
75
|
+
fontSize: 16,
|
|
76
|
+
fontWeight: '600',
|
|
77
|
+
marginBottom: 16,
|
|
78
|
+
},
|
|
79
|
+
tipsList: {
|
|
80
|
+
gap: 12,
|
|
81
|
+
},
|
|
82
|
+
tipItem: {
|
|
83
|
+
flexDirection: 'row',
|
|
84
|
+
alignItems: 'flex-start',
|
|
85
|
+
},
|
|
86
|
+
numberContainer: {
|
|
87
|
+
width: 24,
|
|
88
|
+
height: 24,
|
|
89
|
+
borderRadius: 12,
|
|
90
|
+
backgroundColor: '#F3F4F6',
|
|
91
|
+
justifyContent: 'center',
|
|
92
|
+
alignItems: 'center',
|
|
93
|
+
marginRight: 12,
|
|
94
|
+
},
|
|
95
|
+
number: {
|
|
96
|
+
fontSize: 14,
|
|
97
|
+
fontWeight: '600',
|
|
98
|
+
},
|
|
99
|
+
tipText: {
|
|
100
|
+
flex: 1,
|
|
101
|
+
fontSize: 14,
|
|
102
|
+
lineHeight: 20,
|
|
103
|
+
},
|
|
104
|
+
});
|
|
105
|
+
|
|
106
|
+
export default TipsCard;
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import React, { useEffect, useRef } from 'react';
|
|
2
|
+
import { View, Text, StyleSheet, Animated } from 'react-native';
|
|
3
|
+
|
|
4
|
+
interface WarningCardProps {
|
|
5
|
+
title?: string;
|
|
6
|
+
description?: string;
|
|
7
|
+
steps: string[];
|
|
8
|
+
backgroundColor?: string;
|
|
9
|
+
borderColor?: string;
|
|
10
|
+
iconColor?: string;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
const WarningCard: React.FC<WarningCardProps> = ({
|
|
14
|
+
title = "Permission Denied",
|
|
15
|
+
description,
|
|
16
|
+
steps,
|
|
17
|
+
backgroundColor = '#FED7AA',
|
|
18
|
+
borderColor = '#F97316',
|
|
19
|
+
iconColor = '#F97316',
|
|
20
|
+
}) => {
|
|
21
|
+
const fadeAnim = useRef(new Animated.Value(0)).current;
|
|
22
|
+
|
|
23
|
+
useEffect(() => {
|
|
24
|
+
Animated.timing(fadeAnim, {
|
|
25
|
+
toValue: 1,
|
|
26
|
+
duration: 500,
|
|
27
|
+
delay: 300,
|
|
28
|
+
useNativeDriver: true,
|
|
29
|
+
}).start();
|
|
30
|
+
}, []);
|
|
31
|
+
|
|
32
|
+
return (
|
|
33
|
+
<Animated.View
|
|
34
|
+
style={[
|
|
35
|
+
styles.container,
|
|
36
|
+
{
|
|
37
|
+
backgroundColor,
|
|
38
|
+
borderColor,
|
|
39
|
+
opacity: fadeAnim,
|
|
40
|
+
transform: [
|
|
41
|
+
{
|
|
42
|
+
translateY: fadeAnim.interpolate({
|
|
43
|
+
inputRange: [0, 1],
|
|
44
|
+
outputRange: [20, 0],
|
|
45
|
+
}),
|
|
46
|
+
},
|
|
47
|
+
],
|
|
48
|
+
},
|
|
49
|
+
]}
|
|
50
|
+
>
|
|
51
|
+
<View style={styles.header}>
|
|
52
|
+
<Text style={[styles.icon, { color: iconColor }]}>⚠️</Text>
|
|
53
|
+
<Text style={styles.title}>{title}</Text>
|
|
54
|
+
</View>
|
|
55
|
+
{description && <Text style={styles.description}>{description}</Text>}
|
|
56
|
+
<View style={styles.stepsList}>
|
|
57
|
+
{steps.map((step, index) => (
|
|
58
|
+
<View key={index} style={styles.stepItem}>
|
|
59
|
+
<Text style={styles.stepNumber}>{index + 1}.</Text>
|
|
60
|
+
<Text style={styles.stepText}>{step}</Text>
|
|
61
|
+
</View>
|
|
62
|
+
))}
|
|
63
|
+
</View>
|
|
64
|
+
</Animated.View>
|
|
65
|
+
);
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
const styles = StyleSheet.create({
|
|
69
|
+
container: {
|
|
70
|
+
borderRadius: 12,
|
|
71
|
+
padding: 20,
|
|
72
|
+
marginBottom: 16,
|
|
73
|
+
borderWidth: 1.5,
|
|
74
|
+
width: '100%',
|
|
75
|
+
},
|
|
76
|
+
header: {
|
|
77
|
+
flexDirection: 'row',
|
|
78
|
+
alignItems: 'center',
|
|
79
|
+
marginBottom: 12,
|
|
80
|
+
},
|
|
81
|
+
icon: {
|
|
82
|
+
fontSize: 20,
|
|
83
|
+
marginRight: 8,
|
|
84
|
+
},
|
|
85
|
+
title: {
|
|
86
|
+
fontSize: 16,
|
|
87
|
+
fontWeight: '600',
|
|
88
|
+
color: '#92400E',
|
|
89
|
+
},
|
|
90
|
+
description: {
|
|
91
|
+
fontSize: 14,
|
|
92
|
+
color: '#92400E',
|
|
93
|
+
lineHeight: 20,
|
|
94
|
+
marginBottom: 12,
|
|
95
|
+
},
|
|
96
|
+
stepsList: {
|
|
97
|
+
gap: 8,
|
|
98
|
+
},
|
|
99
|
+
stepItem: {
|
|
100
|
+
flexDirection: 'row',
|
|
101
|
+
alignItems: 'flex-start',
|
|
102
|
+
},
|
|
103
|
+
stepNumber: {
|
|
104
|
+
fontSize: 14,
|
|
105
|
+
fontWeight: '600',
|
|
106
|
+
color: '#92400E',
|
|
107
|
+
marginRight: 8,
|
|
108
|
+
minWidth: 20,
|
|
109
|
+
},
|
|
110
|
+
stepText: {
|
|
111
|
+
flex: 1,
|
|
112
|
+
fontSize: 14,
|
|
113
|
+
color: '#92400E',
|
|
114
|
+
lineHeight: 20,
|
|
115
|
+
},
|
|
116
|
+
});
|
|
117
|
+
|
|
118
|
+
export default WarningCard;
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import React, { useEffect, useRef } from 'react';
|
|
2
|
+
import { View, Text, StyleSheet, Animated } from 'react-native';
|
|
3
|
+
|
|
4
|
+
export interface FeatureItem {
|
|
5
|
+
icon: string;
|
|
6
|
+
title: string;
|
|
7
|
+
description: string;
|
|
8
|
+
iconColor?: string;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
interface WhatsNewCardProps {
|
|
12
|
+
features: FeatureItem[];
|
|
13
|
+
title?: string;
|
|
14
|
+
backgroundColor?: string;
|
|
15
|
+
borderColor?: string;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
const WhatsNewCard: React.FC<WhatsNewCardProps> = ({
|
|
19
|
+
features,
|
|
20
|
+
title = "What's New",
|
|
21
|
+
backgroundColor = '#FFFFFF',
|
|
22
|
+
borderColor = '#E5E7EB',
|
|
23
|
+
}) => {
|
|
24
|
+
const fadeAnim = useRef(new Animated.Value(0)).current;
|
|
25
|
+
|
|
26
|
+
useEffect(() => {
|
|
27
|
+
Animated.timing(fadeAnim, {
|
|
28
|
+
toValue: 1,
|
|
29
|
+
duration: 500,
|
|
30
|
+
delay: 200,
|
|
31
|
+
useNativeDriver: true,
|
|
32
|
+
}).start();
|
|
33
|
+
}, []);
|
|
34
|
+
|
|
35
|
+
return (
|
|
36
|
+
<Animated.View
|
|
37
|
+
style={[
|
|
38
|
+
styles.container,
|
|
39
|
+
{
|
|
40
|
+
backgroundColor,
|
|
41
|
+
borderColor,
|
|
42
|
+
opacity: fadeAnim,
|
|
43
|
+
transform: [
|
|
44
|
+
{
|
|
45
|
+
translateY: fadeAnim.interpolate({
|
|
46
|
+
inputRange: [0, 1],
|
|
47
|
+
outputRange: [20, 0],
|
|
48
|
+
}),
|
|
49
|
+
},
|
|
50
|
+
],
|
|
51
|
+
},
|
|
52
|
+
]}
|
|
53
|
+
>
|
|
54
|
+
<Text style={styles.title}>{title}</Text>
|
|
55
|
+
{features.map((feature, index) => (
|
|
56
|
+
<View key={index} style={styles.featureItem}>
|
|
57
|
+
<View
|
|
58
|
+
style={[
|
|
59
|
+
styles.iconContainer,
|
|
60
|
+
{ backgroundColor: feature.iconColor || '#F3F4F6' },
|
|
61
|
+
]}
|
|
62
|
+
>
|
|
63
|
+
<Text style={styles.icon}>{feature.icon}</Text>
|
|
64
|
+
</View>
|
|
65
|
+
<View style={styles.textContainer}>
|
|
66
|
+
<Text style={styles.featureTitle}>{feature.title}</Text>
|
|
67
|
+
<Text style={styles.featureDescription}>{feature.description}</Text>
|
|
68
|
+
</View>
|
|
69
|
+
</View>
|
|
70
|
+
))}
|
|
71
|
+
</Animated.View>
|
|
72
|
+
);
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
const styles = StyleSheet.create({
|
|
76
|
+
container: {
|
|
77
|
+
borderRadius: 12,
|
|
78
|
+
padding: 24,
|
|
79
|
+
marginBottom: 20,
|
|
80
|
+
borderWidth: 1,
|
|
81
|
+
width: '100%',
|
|
82
|
+
},
|
|
83
|
+
title: {
|
|
84
|
+
fontSize: 18,
|
|
85
|
+
fontWeight: '600',
|
|
86
|
+
color: '#1F2937',
|
|
87
|
+
marginBottom: 20,
|
|
88
|
+
},
|
|
89
|
+
featureItem: {
|
|
90
|
+
flexDirection: 'row',
|
|
91
|
+
alignItems: 'flex-start',
|
|
92
|
+
marginBottom: 16,
|
|
93
|
+
},
|
|
94
|
+
iconContainer: {
|
|
95
|
+
width: 40,
|
|
96
|
+
height: 40,
|
|
97
|
+
borderRadius: 8,
|
|
98
|
+
justifyContent: 'center',
|
|
99
|
+
alignItems: 'center',
|
|
100
|
+
marginRight: 12,
|
|
101
|
+
},
|
|
102
|
+
icon: {
|
|
103
|
+
fontSize: 20,
|
|
104
|
+
},
|
|
105
|
+
textContainer: {
|
|
106
|
+
flex: 1,
|
|
107
|
+
},
|
|
108
|
+
featureTitle: {
|
|
109
|
+
fontSize: 16,
|
|
110
|
+
fontWeight: '600',
|
|
111
|
+
color: '#1F2937',
|
|
112
|
+
marginBottom: 4,
|
|
113
|
+
},
|
|
114
|
+
featureDescription: {
|
|
115
|
+
fontSize: 14,
|
|
116
|
+
color: '#6B7280',
|
|
117
|
+
lineHeight: 20,
|
|
118
|
+
},
|
|
119
|
+
});
|
|
120
|
+
|
|
121
|
+
export default WhatsNewCard;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
// Cards - Barrel Export
|
|
2
|
+
export { default as ContentCard } from './ContentCard';
|
|
3
|
+
export { default as InfoCard } from './InfoCard';
|
|
4
|
+
export { default as WarningCard } from './WarningCard';
|
|
5
|
+
export { default as WhatsNewCard } from './WhatsNewCard';
|
|
6
|
+
export { default as TipsCard } from './TipsCard';
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import React, { useState } from 'react';
|
|
2
|
+
import { View, Text, TouchableOpacity, StyleSheet, LayoutAnimation, Platform, UIManager } from 'react-native';
|
|
3
|
+
|
|
4
|
+
if (Platform.OS === 'android' && UIManager.setLayoutAnimationEnabledExperimental) {
|
|
5
|
+
UIManager.setLayoutAnimationEnabledExperimental(true);
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
interface ExpandableSectionProps {
|
|
9
|
+
title: string;
|
|
10
|
+
children: React.ReactNode;
|
|
11
|
+
defaultExpanded?: boolean;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
const ExpandableSection: React.FC<ExpandableSectionProps> = ({
|
|
15
|
+
title,
|
|
16
|
+
children,
|
|
17
|
+
defaultExpanded = false,
|
|
18
|
+
}) => {
|
|
19
|
+
const [isExpanded, setIsExpanded] = useState(defaultExpanded);
|
|
20
|
+
|
|
21
|
+
const toggleExpand = () => {
|
|
22
|
+
LayoutAnimation.configureNext(LayoutAnimation.Presets.easeInEaseOut);
|
|
23
|
+
setIsExpanded(!isExpanded);
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
return (
|
|
27
|
+
<View style={styles.container}>
|
|
28
|
+
<TouchableOpacity
|
|
29
|
+
style={styles.header}
|
|
30
|
+
onPress={toggleExpand}
|
|
31
|
+
activeOpacity={0.7}
|
|
32
|
+
>
|
|
33
|
+
<Text style={styles.arrow}>{isExpanded ? '▼' : '▶'}</Text>
|
|
34
|
+
<Text style={styles.title}>{title}</Text>
|
|
35
|
+
</TouchableOpacity>
|
|
36
|
+
{isExpanded && <View style={styles.content}>{children}</View>}
|
|
37
|
+
</View>
|
|
38
|
+
);
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
const styles = StyleSheet.create({
|
|
42
|
+
container: {
|
|
43
|
+
marginTop: 16,
|
|
44
|
+
marginHorizontal: 20,
|
|
45
|
+
},
|
|
46
|
+
header: {
|
|
47
|
+
flexDirection: 'row',
|
|
48
|
+
alignItems: 'center',
|
|
49
|
+
paddingVertical: 12,
|
|
50
|
+
gap: 8,
|
|
51
|
+
},
|
|
52
|
+
arrow: {
|
|
53
|
+
fontSize: 12,
|
|
54
|
+
color: '#6B7280',
|
|
55
|
+
},
|
|
56
|
+
title: {
|
|
57
|
+
fontSize: 15,
|
|
58
|
+
fontWeight: '600',
|
|
59
|
+
color: '#374151',
|
|
60
|
+
},
|
|
61
|
+
content: {
|
|
62
|
+
marginTop: 8,
|
|
63
|
+
padding: 16,
|
|
64
|
+
backgroundColor: '#FEF3C7',
|
|
65
|
+
borderRadius: 8,
|
|
66
|
+
borderLeftWidth: 3,
|
|
67
|
+
borderLeftColor: '#F59E0B',
|
|
68
|
+
},
|
|
69
|
+
});
|
|
70
|
+
|
|
71
|
+
export default ExpandableSection;
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import React, { useEffect, useRef } from 'react';
|
|
2
|
+
import { View, Text, StyleSheet, Animated } from 'react-native';
|
|
3
|
+
|
|
4
|
+
interface SecurityBannerProps {
|
|
5
|
+
message?: string;
|
|
6
|
+
backgroundColor?: string;
|
|
7
|
+
textColor?: string;
|
|
8
|
+
iconColor?: string;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
const SecurityBanner: React.FC<SecurityBannerProps> = ({
|
|
12
|
+
message = "Your data is secure. We only use this permission for the stated purpose and never share it with third parties.",
|
|
13
|
+
backgroundColor = '#D1FAE5',
|
|
14
|
+
textColor = '#065F46',
|
|
15
|
+
iconColor = '#10B981',
|
|
16
|
+
}) => {
|
|
17
|
+
const fadeAnim = useRef(new Animated.Value(0)).current;
|
|
18
|
+
|
|
19
|
+
useEffect(() => {
|
|
20
|
+
Animated.timing(fadeAnim, {
|
|
21
|
+
toValue: 1,
|
|
22
|
+
duration: 500,
|
|
23
|
+
delay: 400,
|
|
24
|
+
useNativeDriver: true,
|
|
25
|
+
}).start();
|
|
26
|
+
}, []);
|
|
27
|
+
|
|
28
|
+
return (
|
|
29
|
+
<Animated.View
|
|
30
|
+
style={[
|
|
31
|
+
styles.container,
|
|
32
|
+
{
|
|
33
|
+
backgroundColor,
|
|
34
|
+
opacity: fadeAnim,
|
|
35
|
+
},
|
|
36
|
+
]}
|
|
37
|
+
>
|
|
38
|
+
<View style={[styles.iconContainer, { backgroundColor: `${iconColor}20` }]}>
|
|
39
|
+
<Text style={[styles.icon, { color: iconColor }]}>✓</Text>
|
|
40
|
+
</View>
|
|
41
|
+
<Text style={[styles.message, { color: textColor }]}>{message}</Text>
|
|
42
|
+
</Animated.View>
|
|
43
|
+
);
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
const styles = StyleSheet.create({
|
|
47
|
+
container: {
|
|
48
|
+
flexDirection: 'row',
|
|
49
|
+
alignItems: 'center',
|
|
50
|
+
borderRadius: 12,
|
|
51
|
+
padding: 16,
|
|
52
|
+
marginBottom: 24,
|
|
53
|
+
width: '100%',
|
|
54
|
+
},
|
|
55
|
+
iconContainer: {
|
|
56
|
+
width: 24,
|
|
57
|
+
height: 24,
|
|
58
|
+
borderRadius: 12,
|
|
59
|
+
justifyContent: 'center',
|
|
60
|
+
alignItems: 'center',
|
|
61
|
+
marginRight: 12,
|
|
62
|
+
},
|
|
63
|
+
icon: {
|
|
64
|
+
fontSize: 14,
|
|
65
|
+
fontWeight: '700',
|
|
66
|
+
},
|
|
67
|
+
message: {
|
|
68
|
+
flex: 1,
|
|
69
|
+
fontSize: 13,
|
|
70
|
+
lineHeight: 18,
|
|
71
|
+
},
|
|
72
|
+
});
|
|
73
|
+
|
|
74
|
+
export default SecurityBanner;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import React, { useEffect, useRef } from 'react';
|
|
2
|
+
import { View, Text, StyleSheet, Animated } from 'react-native';
|
|
3
|
+
|
|
4
|
+
interface SpeedBadgeProps {
|
|
5
|
+
speed?: '2G' | '3G' | '4G' | '5G';
|
|
6
|
+
backgroundColor?: string;
|
|
7
|
+
textColor?: string;
|
|
8
|
+
iconColor?: string;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
const SpeedBadge: React.FC<SpeedBadgeProps> = ({
|
|
12
|
+
speed = '2G',
|
|
13
|
+
backgroundColor = '#FEF3C7',
|
|
14
|
+
textColor = '#92400E',
|
|
15
|
+
iconColor = '#F59E0B',
|
|
16
|
+
}) => {
|
|
17
|
+
const fadeAnim = useRef(new Animated.Value(0)).current;
|
|
18
|
+
|
|
19
|
+
useEffect(() => {
|
|
20
|
+
Animated.timing(fadeAnim, {
|
|
21
|
+
toValue: 1,
|
|
22
|
+
duration: 500,
|
|
23
|
+
delay: 200,
|
|
24
|
+
useNativeDriver: true,
|
|
25
|
+
}).start();
|
|
26
|
+
}, []);
|
|
27
|
+
|
|
28
|
+
return (
|
|
29
|
+
<Animated.View
|
|
30
|
+
style={[
|
|
31
|
+
styles.container,
|
|
32
|
+
{
|
|
33
|
+
backgroundColor,
|
|
34
|
+
opacity: fadeAnim,
|
|
35
|
+
},
|
|
36
|
+
]}
|
|
37
|
+
>
|
|
38
|
+
<Text style={[styles.icon, { color: iconColor }]}>⚡</Text>
|
|
39
|
+
<Text style={[styles.text, { color: textColor }]}>{speed} Speed</Text>
|
|
40
|
+
</Animated.View>
|
|
41
|
+
);
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
const styles = StyleSheet.create({
|
|
45
|
+
container: {
|
|
46
|
+
flexDirection: 'row',
|
|
47
|
+
alignItems: 'center',
|
|
48
|
+
paddingVertical: 6,
|
|
49
|
+
paddingHorizontal: 12,
|
|
50
|
+
borderRadius: 16,
|
|
51
|
+
marginBottom: 24,
|
|
52
|
+
alignSelf: 'center',
|
|
53
|
+
},
|
|
54
|
+
icon: {
|
|
55
|
+
fontSize: 14,
|
|
56
|
+
marginRight: 6,
|
|
57
|
+
},
|
|
58
|
+
text: {
|
|
59
|
+
fontSize: 14,
|
|
60
|
+
fontWeight: '600',
|
|
61
|
+
},
|
|
62
|
+
});
|
|
63
|
+
|
|
64
|
+
export default SpeedBadge;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { View, Text, StyleSheet, ViewStyle, TextStyle } from 'react-native';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* StatusBadge Component
|
|
6
|
+
*
|
|
7
|
+
* Small pill-shaped badge for status labels.
|
|
8
|
+
* Used to display status like "Security", "Required", "Service Alert", etc.
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
interface StatusBadgeProps {
|
|
12
|
+
text: string;
|
|
13
|
+
backgroundColor?: string;
|
|
14
|
+
textColor?: string;
|
|
15
|
+
style?: ViewStyle;
|
|
16
|
+
textStyle?: TextStyle;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export const StatusBadge: React.FC<StatusBadgeProps> = ({
|
|
20
|
+
text,
|
|
21
|
+
backgroundColor = '#FED7AA',
|
|
22
|
+
textColor = '#F59E0B',
|
|
23
|
+
style,
|
|
24
|
+
textStyle,
|
|
25
|
+
}) => {
|
|
26
|
+
return (
|
|
27
|
+
<View style={[styles.badge, { backgroundColor }, style]}>
|
|
28
|
+
<Text style={[styles.text, { color: textColor }, textStyle]}>
|
|
29
|
+
{text}
|
|
30
|
+
</Text>
|
|
31
|
+
</View>
|
|
32
|
+
);
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
const styles = StyleSheet.create({
|
|
36
|
+
badge: {
|
|
37
|
+
paddingHorizontal: 12,
|
|
38
|
+
paddingVertical: 6,
|
|
39
|
+
borderRadius: 12,
|
|
40
|
+
marginBottom: 16,
|
|
41
|
+
alignSelf: 'center',
|
|
42
|
+
},
|
|
43
|
+
text: {
|
|
44
|
+
fontSize: 12,
|
|
45
|
+
fontWeight: '600',
|
|
46
|
+
textTransform: 'capitalize',
|
|
47
|
+
},
|
|
48
|
+
});
|
|
49
|
+
|
|
50
|
+
export default StatusBadge;
|