@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,34 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useEffect, useRef } from 'react';
|
|
3
|
+
import { Animated, StyleSheet } from 'react-native';
|
|
4
|
+
const AnimatedCamera = ({ size = 60, color = '#3B82F6', }) => {
|
|
5
|
+
const scaleAnim = useRef(new Animated.Value(1)).current;
|
|
6
|
+
useEffect(() => {
|
|
7
|
+
Animated.loop(Animated.sequence([
|
|
8
|
+
Animated.timing(scaleAnim, {
|
|
9
|
+
toValue: 1.07,
|
|
10
|
+
duration: 2000,
|
|
11
|
+
useNativeDriver: true,
|
|
12
|
+
}),
|
|
13
|
+
Animated.timing(scaleAnim, {
|
|
14
|
+
toValue: 1,
|
|
15
|
+
duration: 2000,
|
|
16
|
+
useNativeDriver: true,
|
|
17
|
+
}),
|
|
18
|
+
])).start();
|
|
19
|
+
}, []);
|
|
20
|
+
return (_jsx(Animated.Text, { style: [
|
|
21
|
+
styles.icon,
|
|
22
|
+
{
|
|
23
|
+
fontSize: size,
|
|
24
|
+
color,
|
|
25
|
+
transform: [{ scale: scaleAnim }],
|
|
26
|
+
},
|
|
27
|
+
], children: "\uD83D\uDCF7" }));
|
|
28
|
+
};
|
|
29
|
+
const styles = StyleSheet.create({
|
|
30
|
+
icon: {
|
|
31
|
+
textAlign: 'center',
|
|
32
|
+
},
|
|
33
|
+
});
|
|
34
|
+
export default AnimatedCamera;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface AnimatedClientErrorProps {
|
|
3
|
+
size?: number;
|
|
4
|
+
color?: string;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Animated Client Error Icon (4xx)
|
|
8
|
+
* Shows warning triangle with error code
|
|
9
|
+
*/
|
|
10
|
+
export declare const AnimatedClientError: React.FC<AnimatedClientErrorProps>;
|
|
11
|
+
export default AnimatedClientError;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useEffect } from 'react';
|
|
3
|
+
import Animated, { useSharedValue, useAnimatedProps, withRepeat, withTiming, Easing, } from 'react-native-reanimated';
|
|
4
|
+
import Svg, { Path, Circle } from 'react-native-svg';
|
|
5
|
+
const AnimatedPath = Animated.createAnimatedComponent(Path);
|
|
6
|
+
/**
|
|
7
|
+
* Animated Client Error Icon (4xx)
|
|
8
|
+
* Shows warning triangle with error code
|
|
9
|
+
*/
|
|
10
|
+
export const AnimatedClientError = ({ size = 64, color = '#F59E0B', }) => {
|
|
11
|
+
const pulse = useSharedValue(1);
|
|
12
|
+
useEffect(() => {
|
|
13
|
+
pulse.value = withRepeat(withTiming(1.1, { duration: 1000, easing: Easing.inOut(Easing.ease) }), -1, true);
|
|
14
|
+
}, []);
|
|
15
|
+
const animatedProps = useAnimatedProps(() => ({
|
|
16
|
+
transform: `scale(${pulse.value})`,
|
|
17
|
+
}));
|
|
18
|
+
return (_jsxs(Svg, { width: size, height: size, viewBox: "0 0 64 64", fill: "none", children: [_jsx(Path, { d: "M32 8 L56 52 L8 52 Z", fill: color, opacity: 0.1 }), _jsx(AnimatedPath, { animatedProps: animatedProps, d: "M32 12 L52 48 L12 48 Z", stroke: color, strokeWidth: "3", fill: "none", strokeLinejoin: "round" }), _jsx(Path, { d: "M32 22 L32 36", stroke: color, strokeWidth: "3", strokeLinecap: "round" }), _jsx(Circle, { cx: "32", cy: "42", r: "2", fill: color }), _jsx(Path, { d: "M20 28 L18 32 L20 36", stroke: color, strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", opacity: 0.6 }), _jsx(Path, { d: "M44 28 L46 32 L44 36", stroke: color, strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", opacity: 0.6 })] }));
|
|
19
|
+
};
|
|
20
|
+
export default AnimatedClientError;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useEffect, useRef } from 'react';
|
|
3
|
+
import { View, Animated, StyleSheet } from 'react-native';
|
|
4
|
+
const AnimatedClock = ({ size = 80, color = '#F59E0B', }) => {
|
|
5
|
+
const pulseAnim = useRef(new Animated.Value(1)).current;
|
|
6
|
+
useEffect(() => {
|
|
7
|
+
Animated.loop(Animated.sequence([
|
|
8
|
+
Animated.timing(pulseAnim, {
|
|
9
|
+
toValue: 1.1,
|
|
10
|
+
duration: 1000,
|
|
11
|
+
useNativeDriver: true,
|
|
12
|
+
}),
|
|
13
|
+
Animated.timing(pulseAnim, {
|
|
14
|
+
toValue: 1,
|
|
15
|
+
duration: 1000,
|
|
16
|
+
useNativeDriver: true,
|
|
17
|
+
}),
|
|
18
|
+
])).start();
|
|
19
|
+
}, []);
|
|
20
|
+
return (_jsxs(View, { style: [styles.container, { width: size, height: size }], children: [_jsx(Animated.View, { style: [
|
|
21
|
+
styles.iconBackground,
|
|
22
|
+
{
|
|
23
|
+
width: size,
|
|
24
|
+
height: size,
|
|
25
|
+
borderRadius: size / 2,
|
|
26
|
+
backgroundColor: `${color}15`,
|
|
27
|
+
transform: [{ scale: pulseAnim }],
|
|
28
|
+
},
|
|
29
|
+
] }), _jsx(Animated.Text, { style: [
|
|
30
|
+
styles.icon,
|
|
31
|
+
{
|
|
32
|
+
fontSize: size * 0.5,
|
|
33
|
+
opacity: pulseAnim.interpolate({
|
|
34
|
+
inputRange: [1, 1.1],
|
|
35
|
+
outputRange: [0.8, 1],
|
|
36
|
+
}),
|
|
37
|
+
},
|
|
38
|
+
], children: "\u23F0" })] }));
|
|
39
|
+
};
|
|
40
|
+
const styles = StyleSheet.create({
|
|
41
|
+
container: {
|
|
42
|
+
justifyContent: 'center',
|
|
43
|
+
alignItems: 'center',
|
|
44
|
+
position: 'relative',
|
|
45
|
+
},
|
|
46
|
+
iconBackground: {
|
|
47
|
+
position: 'absolute',
|
|
48
|
+
},
|
|
49
|
+
icon: {
|
|
50
|
+
textAlign: 'center',
|
|
51
|
+
},
|
|
52
|
+
});
|
|
53
|
+
export default AnimatedClock;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface AnimatedCrashProps {
|
|
3
|
+
size?: number;
|
|
4
|
+
color?: string;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Animated Crash Icon
|
|
8
|
+
* Shows broken pieces with scatter animation
|
|
9
|
+
*/
|
|
10
|
+
export declare const AnimatedCrash: React.FC<AnimatedCrashProps>;
|
|
11
|
+
export default AnimatedCrash;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useEffect } from 'react';
|
|
3
|
+
import Animated, { useSharedValue, useAnimatedProps, withRepeat, withSequence, withTiming, Easing, } from 'react-native-reanimated';
|
|
4
|
+
import Svg, { Path, Circle } from 'react-native-svg';
|
|
5
|
+
const AnimatedPath = Animated.createAnimatedComponent(Path);
|
|
6
|
+
const AnimatedCircle = Animated.createAnimatedComponent(Circle);
|
|
7
|
+
/**
|
|
8
|
+
* Animated Crash Icon
|
|
9
|
+
* Shows broken pieces with scatter animation
|
|
10
|
+
*/
|
|
11
|
+
export const AnimatedCrash = ({ size = 64, color = '#EF4444', }) => {
|
|
12
|
+
const scatter1 = useSharedValue(0);
|
|
13
|
+
const scatter2 = useSharedValue(0);
|
|
14
|
+
const scatter3 = useSharedValue(0);
|
|
15
|
+
const opacity = useSharedValue(1);
|
|
16
|
+
useEffect(() => {
|
|
17
|
+
scatter1.value = withRepeat(withSequence(withTiming(1, { duration: 1200, easing: Easing.out(Easing.cubic) }), withTiming(0, { duration: 800, easing: Easing.in(Easing.cubic) })), -1, false);
|
|
18
|
+
scatter2.value = withRepeat(withSequence(withTiming(1, { duration: 1300, easing: Easing.out(Easing.cubic) }), withTiming(0, { duration: 700, easing: Easing.in(Easing.cubic) })), -1, false);
|
|
19
|
+
scatter3.value = withRepeat(withSequence(withTiming(1, { duration: 1100, easing: Easing.out(Easing.cubic) }), withTiming(0, { duration: 900, easing: Easing.in(Easing.cubic) })), -1, false);
|
|
20
|
+
opacity.value = withRepeat(withSequence(withTiming(0.3, { duration: 1000 }), withTiming(1, { duration: 1000 })), -1, true);
|
|
21
|
+
}, []);
|
|
22
|
+
const animatedProps1 = useAnimatedProps(() => ({
|
|
23
|
+
transform: `translate(${scatter1.value * -8}, ${scatter1.value * -8})`,
|
|
24
|
+
opacity: 1 - scatter1.value * 0.5,
|
|
25
|
+
}));
|
|
26
|
+
const animatedProps2 = useAnimatedProps(() => ({
|
|
27
|
+
transform: `translate(${scatter2.value * 8}, ${scatter2.value * -6})`,
|
|
28
|
+
opacity: 1 - scatter2.value * 0.5,
|
|
29
|
+
}));
|
|
30
|
+
const animatedProps3 = useAnimatedProps(() => ({
|
|
31
|
+
transform: `translate(${scatter3.value * -6}, ${scatter3.value * 8})`,
|
|
32
|
+
opacity: 1 - scatter3.value * 0.5,
|
|
33
|
+
}));
|
|
34
|
+
return (_jsxs(Svg, { width: size, height: size, viewBox: "0 0 64 64", fill: "none", children: [_jsx(AnimatedPath, { animatedProps: animatedProps1, d: "M20 16 L28 20 L24 28 L16 24 Z", fill: color, opacity: 0.8 }), _jsx(AnimatedPath, { animatedProps: animatedProps2, d: "M36 20 L44 16 L48 24 L40 28 Z", fill: color, opacity: 0.8 }), _jsx(AnimatedPath, { animatedProps: animatedProps3, d: "M24 36 L40 36 L38 48 L26 48 Z", fill: color, opacity: 0.8 }), _jsx(Path, { d: "M32 12 L32 52 M12 32 L52 32", stroke: color, strokeWidth: "2", strokeLinecap: "round", opacity: 0.4 }), _jsx(Circle, { cx: "32", cy: "32", r: "6", fill: color, opacity: 0.6 }), _jsx(Path, { d: "M32 28 L32 32 M32 34 L32 35", stroke: "#FFFFFF", strokeWidth: "2", strokeLinecap: "round" })] }));
|
|
35
|
+
};
|
|
36
|
+
export default AnimatedCrash;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useEffect, useRef } from 'react';
|
|
3
|
+
import { Animated, StyleSheet } from 'react-native';
|
|
4
|
+
const AnimatedDocument = ({ size = 60, color = '#F59E0B', }) => {
|
|
5
|
+
const pulseAnim = useRef(new Animated.Value(1)).current;
|
|
6
|
+
useEffect(() => {
|
|
7
|
+
Animated.loop(Animated.sequence([
|
|
8
|
+
Animated.timing(pulseAnim, {
|
|
9
|
+
toValue: 1.06,
|
|
10
|
+
duration: 1800,
|
|
11
|
+
useNativeDriver: true,
|
|
12
|
+
}),
|
|
13
|
+
Animated.timing(pulseAnim, {
|
|
14
|
+
toValue: 1,
|
|
15
|
+
duration: 1800,
|
|
16
|
+
useNativeDriver: true,
|
|
17
|
+
}),
|
|
18
|
+
])).start();
|
|
19
|
+
}, []);
|
|
20
|
+
return (_jsx(Animated.Text, { style: [
|
|
21
|
+
styles.icon,
|
|
22
|
+
{
|
|
23
|
+
fontSize: size,
|
|
24
|
+
color,
|
|
25
|
+
transform: [{ scale: pulseAnim }],
|
|
26
|
+
},
|
|
27
|
+
], children: "\uD83D\uDCC4" }));
|
|
28
|
+
};
|
|
29
|
+
const styles = StyleSheet.create({
|
|
30
|
+
icon: {
|
|
31
|
+
textAlign: 'center',
|
|
32
|
+
},
|
|
33
|
+
});
|
|
34
|
+
export default AnimatedDocument;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useEffect, useRef } from 'react';
|
|
3
|
+
import { Animated } from 'react-native';
|
|
4
|
+
import Svg, { Path, Polyline, Line } from 'react-native-svg';
|
|
5
|
+
const AnimatedDownload = ({ size = 48, color = '#3B82F6' }) => {
|
|
6
|
+
const bounceAnim = useRef(new Animated.Value(0)).current;
|
|
7
|
+
useEffect(() => {
|
|
8
|
+
Animated.loop(Animated.sequence([
|
|
9
|
+
Animated.timing(bounceAnim, {
|
|
10
|
+
toValue: -5,
|
|
11
|
+
duration: 600,
|
|
12
|
+
useNativeDriver: true,
|
|
13
|
+
}),
|
|
14
|
+
Animated.timing(bounceAnim, {
|
|
15
|
+
toValue: 0,
|
|
16
|
+
duration: 600,
|
|
17
|
+
useNativeDriver: true,
|
|
18
|
+
}),
|
|
19
|
+
])).start();
|
|
20
|
+
}, [bounceAnim]);
|
|
21
|
+
return (_jsx(Animated.View, { style: { transform: [{ translateY: bounceAnim }] }, children: _jsxs(Svg, { width: size, height: size, viewBox: "0 0 24 24", fill: "none", children: [_jsx(Path, { d: "M21 15v4a2 2 0 01-2 2H5a2 2 0 01-2-2v-4", stroke: color, strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }), _jsx(Polyline, { points: "7 10 12 15 17 10", stroke: color, strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }), _jsx(Line, { x1: "12", y1: "15", x2: "12", y2: "3", stroke: color, strokeWidth: 2, strokeLinecap: "round" })] }) }));
|
|
22
|
+
};
|
|
23
|
+
export default AnimatedDownload;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface AnimatedEmergencyProps {
|
|
3
|
+
size?: number;
|
|
4
|
+
color?: string;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Animated Emergency Icon
|
|
8
|
+
* Emergency siren with flashing light
|
|
9
|
+
*/
|
|
10
|
+
export declare const AnimatedEmergency: React.FC<AnimatedEmergencyProps>;
|
|
11
|
+
export default AnimatedEmergency;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useEffect } from 'react';
|
|
3
|
+
import Animated, { useSharedValue, useAnimatedProps, withRepeat, withSequence, withTiming, Easing, } from 'react-native-reanimated';
|
|
4
|
+
import Svg, { Path, G } from 'react-native-svg';
|
|
5
|
+
const AnimatedG = Animated.createAnimatedComponent(G);
|
|
6
|
+
const AnimatedPath = Animated.createAnimatedComponent(Path);
|
|
7
|
+
/**
|
|
8
|
+
* Animated Emergency Icon
|
|
9
|
+
* Emergency siren with flashing light
|
|
10
|
+
*/
|
|
11
|
+
export const AnimatedEmergency = ({ size = 64, color = '#DC2626', }) => {
|
|
12
|
+
const flash = useSharedValue(0);
|
|
13
|
+
const rotate = useSharedValue(0);
|
|
14
|
+
useEffect(() => {
|
|
15
|
+
flash.value = withRepeat(withSequence(withTiming(1, { duration: 300 }), withTiming(0, { duration: 300 })), -1, false);
|
|
16
|
+
rotate.value = withRepeat(withTiming(360, { duration: 2000, easing: Easing.linear }), -1, false);
|
|
17
|
+
}, []);
|
|
18
|
+
const flashProps = useAnimatedProps(() => ({
|
|
19
|
+
opacity: flash.value,
|
|
20
|
+
}));
|
|
21
|
+
const rotateProps = useAnimatedProps(() => ({
|
|
22
|
+
transform: `rotate(${rotate.value} 32 24)`,
|
|
23
|
+
}));
|
|
24
|
+
return (_jsxs(Svg, { width: size, height: size, viewBox: "0 0 64 64", fill: "none", children: [_jsx(AnimatedG, { animatedProps: rotateProps, children: _jsx(Path, { d: "M32 8 L32 16 M48 16 L42 22 M54 32 L46 32 M48 48 L42 42 M32 56 L32 48 M16 48 L22 42 M10 32 L18 32 M16 16 L22 22", stroke: color, strokeWidth: "2", strokeLinecap: "round", opacity: 0.6 }) }), _jsx(Path, { d: "M20 32 L24 24 L40 24 L44 32 Z", fill: color, opacity: 0.3 }), _jsx(AnimatedPath, { animatedProps: flashProps, d: "M26 24 L32 16 L38 24 Z", fill: color }), _jsx(Path, { d: "M18 32 L46 32 L44 40 L20 40 Z", fill: color, opacity: 0.8 }), _jsx(Path, { d: "M22 34 L24 38 M28 34 L30 38 M34 34 L36 38 M40 34 L42 38", stroke: "#FFFFFF", strokeWidth: "2", strokeLinecap: "round", opacity: 0.6 }), _jsx(Path, { d: "M32 44 L32 50 M32 52 L32 53", stroke: color, strokeWidth: "3", strokeLinecap: "round" })] }));
|
|
25
|
+
};
|
|
26
|
+
export default AnimatedEmergency;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface AnimatedInvalidDataProps {
|
|
3
|
+
size?: number;
|
|
4
|
+
color?: string;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Animated Invalid Data Icon
|
|
8
|
+
* Shows corrupted file/document with glitch effect
|
|
9
|
+
*/
|
|
10
|
+
export declare const AnimatedInvalidData: React.FC<AnimatedInvalidDataProps>;
|
|
11
|
+
export default AnimatedInvalidData;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useEffect } from 'react';
|
|
3
|
+
import Animated, { useSharedValue, useAnimatedProps, withRepeat, withSequence, withTiming, Easing, } from 'react-native-reanimated';
|
|
4
|
+
import Svg, { Path, G } from 'react-native-svg';
|
|
5
|
+
const AnimatedG = Animated.createAnimatedComponent(G);
|
|
6
|
+
const AnimatedPath = Animated.createAnimatedComponent(Path);
|
|
7
|
+
/**
|
|
8
|
+
* Animated Invalid Data Icon
|
|
9
|
+
* Shows corrupted file/document with glitch effect
|
|
10
|
+
*/
|
|
11
|
+
export const AnimatedInvalidData = ({ size = 64, color = '#EF4444', }) => {
|
|
12
|
+
const glitch = useSharedValue(0);
|
|
13
|
+
const opacity = useSharedValue(1);
|
|
14
|
+
useEffect(() => {
|
|
15
|
+
glitch.value = withRepeat(withSequence(withTiming(0, { duration: 2000 }), withTiming(3, { duration: 100, easing: Easing.linear }), withTiming(0, { duration: 100 }), withTiming(-2, { duration: 100 }), withTiming(0, { duration: 100 })), -1, false);
|
|
16
|
+
opacity.value = withRepeat(withSequence(withTiming(1, { duration: 2000 }), withTiming(0.7, { duration: 100 }), withTiming(1, { duration: 100 }), withTiming(0.8, { duration: 100 }), withTiming(1, { duration: 100 })), -1, false);
|
|
17
|
+
}, []);
|
|
18
|
+
const animatedProps = useAnimatedProps(() => ({
|
|
19
|
+
transform: `translateX(${glitch.value})`,
|
|
20
|
+
opacity: opacity.value,
|
|
21
|
+
}));
|
|
22
|
+
return (_jsxs(Svg, { width: size, height: size, viewBox: "0 0 64 64", fill: "none", children: [_jsx(Path, { d: "M16 8 L40 8 L48 16 L48 56 L16 56 Z", stroke: color, strokeWidth: "2", fill: "none" }), _jsx(Path, { d: "M40 8 L40 16 L48 16", stroke: color, strokeWidth: "2", fill: "none" }), _jsxs(AnimatedG, { animatedProps: animatedProps, children: [_jsx(Path, { d: "M22 24 L42 24", stroke: color, strokeWidth: "2", strokeLinecap: "round", opacity: 0.6 }), _jsx(Path, { d: "M22 32 L38 32", stroke: color, strokeWidth: "2", strokeLinecap: "round", opacity: 0.6 }), _jsx(Path, { d: "M22 40 L40 40", stroke: color, strokeWidth: "2", strokeLinecap: "round", opacity: 0.6 })] }), _jsx(Path, { d: "M26 44 L38 56 M38 44 L26 56", stroke: color, strokeWidth: "3", strokeLinecap: "round" }), _jsx(Path, { d: "M28 28 L30 28 M34 28 L36 28", stroke: color, strokeWidth: "2", strokeLinecap: "round", opacity: 0.4 })] }));
|
|
23
|
+
};
|
|
24
|
+
export default AnimatedInvalidData;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useEffect, useRef } from 'react';
|
|
3
|
+
import { Animated, StyleSheet } from 'react-native';
|
|
4
|
+
const AnimatedLightning = ({ size = 60, color = '#10B981', }) => {
|
|
5
|
+
const pulseAnim = useRef(new Animated.Value(1)).current;
|
|
6
|
+
useEffect(() => {
|
|
7
|
+
Animated.loop(Animated.sequence([
|
|
8
|
+
Animated.timing(pulseAnim, {
|
|
9
|
+
toValue: 1.1,
|
|
10
|
+
duration: 1500,
|
|
11
|
+
useNativeDriver: true,
|
|
12
|
+
}),
|
|
13
|
+
Animated.timing(pulseAnim, {
|
|
14
|
+
toValue: 1,
|
|
15
|
+
duration: 1500,
|
|
16
|
+
useNativeDriver: true,
|
|
17
|
+
}),
|
|
18
|
+
])).start();
|
|
19
|
+
}, []);
|
|
20
|
+
return (_jsx(Animated.Text, { style: [
|
|
21
|
+
styles.icon,
|
|
22
|
+
{
|
|
23
|
+
fontSize: size,
|
|
24
|
+
color,
|
|
25
|
+
transform: [{ scale: pulseAnim }],
|
|
26
|
+
},
|
|
27
|
+
], children: "\u26A1" }));
|
|
28
|
+
};
|
|
29
|
+
const styles = StyleSheet.create({
|
|
30
|
+
icon: {
|
|
31
|
+
textAlign: 'center',
|
|
32
|
+
},
|
|
33
|
+
});
|
|
34
|
+
export default AnimatedLightning;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useEffect, useRef } from 'react';
|
|
3
|
+
import { Animated, StyleSheet } from 'react-native';
|
|
4
|
+
const AnimatedLocationPin = ({ size = 60, color = '#3B82F6', }) => {
|
|
5
|
+
const bounceAnim = useRef(new Animated.Value(0)).current;
|
|
6
|
+
useEffect(() => {
|
|
7
|
+
Animated.loop(Animated.sequence([
|
|
8
|
+
Animated.timing(bounceAnim, {
|
|
9
|
+
toValue: -5,
|
|
10
|
+
duration: 1000,
|
|
11
|
+
useNativeDriver: true,
|
|
12
|
+
}),
|
|
13
|
+
Animated.timing(bounceAnim, {
|
|
14
|
+
toValue: 0,
|
|
15
|
+
duration: 1000,
|
|
16
|
+
useNativeDriver: true,
|
|
17
|
+
}),
|
|
18
|
+
])).start();
|
|
19
|
+
}, []);
|
|
20
|
+
return (_jsx(Animated.Text, { style: [
|
|
21
|
+
styles.icon,
|
|
22
|
+
{
|
|
23
|
+
fontSize: size,
|
|
24
|
+
color,
|
|
25
|
+
transform: [{ translateY: bounceAnim }],
|
|
26
|
+
},
|
|
27
|
+
], children: "\uD83D\uDCCD" }));
|
|
28
|
+
};
|
|
29
|
+
const styles = StyleSheet.create({
|
|
30
|
+
icon: {
|
|
31
|
+
textAlign: 'center',
|
|
32
|
+
},
|
|
33
|
+
});
|
|
34
|
+
export default AnimatedLocationPin;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface AnimatedPermissionProps {
|
|
3
|
+
size?: number;
|
|
4
|
+
color?: string;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Animated Permission Icon
|
|
8
|
+
* Generic permission icon with shield and checkmark
|
|
9
|
+
*/
|
|
10
|
+
export declare const AnimatedPermission: React.FC<AnimatedPermissionProps>;
|
|
11
|
+
export default AnimatedPermission;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useEffect } from 'react';
|
|
3
|
+
import Animated, { useSharedValue, useAnimatedProps, withRepeat, withTiming, Easing, } from 'react-native-reanimated';
|
|
4
|
+
import Svg, { Path, G } from 'react-native-svg';
|
|
5
|
+
const AnimatedG = Animated.createAnimatedComponent(G);
|
|
6
|
+
/**
|
|
7
|
+
* Animated Permission Icon
|
|
8
|
+
* Generic permission icon with shield and checkmark
|
|
9
|
+
*/
|
|
10
|
+
export const AnimatedPermission = ({ size = 64, color = '#3B82F6', }) => {
|
|
11
|
+
const scale = useSharedValue(1);
|
|
12
|
+
useEffect(() => {
|
|
13
|
+
scale.value = withRepeat(withTiming(1.1, { duration: 1500, easing: Easing.inOut(Easing.ease) }), -1, true);
|
|
14
|
+
}, []);
|
|
15
|
+
const animatedProps = useAnimatedProps(() => ({
|
|
16
|
+
transform: `scale(${scale.value})`,
|
|
17
|
+
transformOrigin: '32 32',
|
|
18
|
+
}));
|
|
19
|
+
return (_jsxs(Svg, { width: size, height: size, viewBox: "0 0 64 64", fill: "none", children: [_jsx(Path, { d: "M32 8 C32 8, 48 12, 48 20 C48 36, 32 56, 32 56 C32 56, 16 36, 16 20 C16 12, 32 8, 32 8 Z", fill: color, opacity: 0.1 }), _jsx(Path, { d: "M32 10 C32 10, 46 14, 46 20 C46 34, 32 52, 32 52 C32 52, 18 34, 18 20 C18 14, 32 10, 32 10 Z", stroke: color, strokeWidth: "2.5", fill: "none" }), _jsx(AnimatedG, { animatedProps: animatedProps, children: _jsx(Path, { d: "M24 30 L30 36 L42 24", stroke: color, strokeWidth: "3", strokeLinecap: "round", strokeLinejoin: "round" }) })] }));
|
|
20
|
+
};
|
|
21
|
+
export default AnimatedPermission;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface AnimatedPermissionDeniedProps {
|
|
3
|
+
size?: number;
|
|
4
|
+
color?: string;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Animated Permission Denied Icon
|
|
8
|
+
* Shield with X mark for denied permissions
|
|
9
|
+
*/
|
|
10
|
+
export declare const AnimatedPermissionDenied: React.FC<AnimatedPermissionDeniedProps>;
|
|
11
|
+
export default AnimatedPermissionDenied;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useEffect } from 'react';
|
|
3
|
+
import Animated, { useSharedValue, useAnimatedProps, withRepeat, withSequence, withTiming, Easing, } from 'react-native-reanimated';
|
|
4
|
+
import Svg, { Path, Circle } from 'react-native-svg';
|
|
5
|
+
const AnimatedPath = Animated.createAnimatedComponent(Path);
|
|
6
|
+
const AnimatedCircle = Animated.createAnimatedComponent(Circle);
|
|
7
|
+
/**
|
|
8
|
+
* Animated Permission Denied Icon
|
|
9
|
+
* Shield with X mark for denied permissions
|
|
10
|
+
*/
|
|
11
|
+
export const AnimatedPermissionDenied = ({ size = 64, color = '#EF4444', }) => {
|
|
12
|
+
const shake = useSharedValue(0);
|
|
13
|
+
const pulse = useSharedValue(1);
|
|
14
|
+
useEffect(() => {
|
|
15
|
+
shake.value = withRepeat(withSequence(withTiming(0, { duration: 2000 }), withTiming(-3, { duration: 50 }), withTiming(3, { duration: 100 }), withTiming(-3, { duration: 100 }), withTiming(3, { duration: 100 }), withTiming(0, { duration: 50 })), -1, false);
|
|
16
|
+
pulse.value = withRepeat(withTiming(1.1, { duration: 1000, easing: Easing.inOut(Easing.ease) }), -1, true);
|
|
17
|
+
}, []);
|
|
18
|
+
const shieldProps = useAnimatedProps(() => ({
|
|
19
|
+
transform: `translateX(${shake.value})`,
|
|
20
|
+
}));
|
|
21
|
+
const xProps = useAnimatedProps(() => ({
|
|
22
|
+
transform: `scale(${pulse.value})`,
|
|
23
|
+
transformOrigin: '32 32',
|
|
24
|
+
}));
|
|
25
|
+
return (_jsxs(Svg, { width: size, height: size, viewBox: "0 0 64 64", fill: "none", children: [_jsx(AnimatedPath, { animatedProps: shieldProps, d: "M32 8 C32 8, 48 12, 48 20 C48 36, 32 56, 32 56 C32 56, 16 36, 16 20 C16 12, 32 8, 32 8 Z", fill: color, opacity: 0.1 }), _jsx(AnimatedPath, { animatedProps: shieldProps, d: "M32 10 C32 10, 46 14, 46 20 C46 34, 32 52, 32 52 C32 52, 18 34, 18 20 C18 14, 32 10, 32 10 Z", stroke: color, strokeWidth: "2.5", fill: "none" }), _jsx(AnimatedPath, { animatedProps: xProps, d: "M24 24 L40 40 M40 24 L24 40", stroke: color, strokeWidth: "3", strokeLinecap: "round" })] }));
|
|
26
|
+
};
|
|
27
|
+
export default AnimatedPermissionDenied;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useEffect, useRef } from 'react';
|
|
3
|
+
import { View, Animated, StyleSheet } from 'react-native';
|
|
4
|
+
const AnimatedServerError = ({ size = 80, color = '#F97316', }) => {
|
|
5
|
+
const shakeAnim = useRef(new Animated.Value(0)).current;
|
|
6
|
+
useEffect(() => {
|
|
7
|
+
Animated.loop(Animated.sequence([
|
|
8
|
+
Animated.timing(shakeAnim, {
|
|
9
|
+
toValue: -5,
|
|
10
|
+
duration: 100,
|
|
11
|
+
useNativeDriver: true,
|
|
12
|
+
}),
|
|
13
|
+
Animated.timing(shakeAnim, {
|
|
14
|
+
toValue: 5,
|
|
15
|
+
duration: 100,
|
|
16
|
+
useNativeDriver: true,
|
|
17
|
+
}),
|
|
18
|
+
Animated.timing(shakeAnim, {
|
|
19
|
+
toValue: -5,
|
|
20
|
+
duration: 100,
|
|
21
|
+
useNativeDriver: true,
|
|
22
|
+
}),
|
|
23
|
+
Animated.timing(shakeAnim, {
|
|
24
|
+
toValue: 0,
|
|
25
|
+
duration: 100,
|
|
26
|
+
useNativeDriver: true,
|
|
27
|
+
}),
|
|
28
|
+
Animated.delay(2000),
|
|
29
|
+
])).start();
|
|
30
|
+
}, []);
|
|
31
|
+
return (_jsxs(View, { style: [styles.container, { width: size, height: size }], children: [_jsx(View, { style: [
|
|
32
|
+
styles.iconBackground,
|
|
33
|
+
{
|
|
34
|
+
width: size,
|
|
35
|
+
height: size,
|
|
36
|
+
borderRadius: size / 2,
|
|
37
|
+
backgroundColor: `${color}15`,
|
|
38
|
+
},
|
|
39
|
+
] }), _jsx(Animated.Text, { style: [
|
|
40
|
+
styles.icon,
|
|
41
|
+
{
|
|
42
|
+
fontSize: size * 0.5,
|
|
43
|
+
transform: [{ translateX: shakeAnim }],
|
|
44
|
+
},
|
|
45
|
+
], children: "\uD83D\uDD0C" })] }));
|
|
46
|
+
};
|
|
47
|
+
const styles = StyleSheet.create({
|
|
48
|
+
container: {
|
|
49
|
+
justifyContent: 'center',
|
|
50
|
+
alignItems: 'center',
|
|
51
|
+
position: 'relative',
|
|
52
|
+
},
|
|
53
|
+
iconBackground: {
|
|
54
|
+
position: 'absolute',
|
|
55
|
+
},
|
|
56
|
+
icon: {
|
|
57
|
+
textAlign: 'center',
|
|
58
|
+
},
|
|
59
|
+
});
|
|
60
|
+
export default AnimatedServerError;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useEffect, useRef } from 'react';
|
|
3
|
+
import { Animated, StyleSheet } from 'react-native';
|
|
4
|
+
const AnimatedShield = ({ size = 60, color = '#FDB022', }) => {
|
|
5
|
+
const pulseAnim = useRef(new Animated.Value(1)).current;
|
|
6
|
+
useEffect(() => {
|
|
7
|
+
Animated.loop(Animated.sequence([
|
|
8
|
+
Animated.timing(pulseAnim, {
|
|
9
|
+
toValue: 1.05,
|
|
10
|
+
duration: 2000,
|
|
11
|
+
useNativeDriver: true,
|
|
12
|
+
}),
|
|
13
|
+
Animated.timing(pulseAnim, {
|
|
14
|
+
toValue: 1,
|
|
15
|
+
duration: 2000,
|
|
16
|
+
useNativeDriver: true,
|
|
17
|
+
}),
|
|
18
|
+
])).start();
|
|
19
|
+
}, []);
|
|
20
|
+
return (_jsx(Animated.Text, { style: [
|
|
21
|
+
styles.icon,
|
|
22
|
+
{
|
|
23
|
+
fontSize: size,
|
|
24
|
+
color,
|
|
25
|
+
transform: [{ scale: pulseAnim }],
|
|
26
|
+
},
|
|
27
|
+
], children: "\uD83D\uDEE1\uFE0F" }));
|
|
28
|
+
};
|
|
29
|
+
const styles = StyleSheet.create({
|
|
30
|
+
icon: {
|
|
31
|
+
textAlign: 'center',
|
|
32
|
+
},
|
|
33
|
+
});
|
|
34
|
+
export default AnimatedShield;
|