@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,78 @@
|
|
|
1
|
+
import React, { useEffect, useRef } from 'react';
|
|
2
|
+
import { View, Animated, StyleSheet } from 'react-native';
|
|
3
|
+
|
|
4
|
+
interface AnimatedClockProps {
|
|
5
|
+
size?: number;
|
|
6
|
+
color?: string;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
const AnimatedClock: React.FC<AnimatedClockProps> = ({
|
|
10
|
+
size = 80,
|
|
11
|
+
color = '#F59E0B',
|
|
12
|
+
}) => {
|
|
13
|
+
const pulseAnim = useRef(new Animated.Value(1)).current;
|
|
14
|
+
|
|
15
|
+
useEffect(() => {
|
|
16
|
+
Animated.loop(
|
|
17
|
+
Animated.sequence([
|
|
18
|
+
Animated.timing(pulseAnim, {
|
|
19
|
+
toValue: 1.1,
|
|
20
|
+
duration: 1000,
|
|
21
|
+
useNativeDriver: true,
|
|
22
|
+
}),
|
|
23
|
+
Animated.timing(pulseAnim, {
|
|
24
|
+
toValue: 1,
|
|
25
|
+
duration: 1000,
|
|
26
|
+
useNativeDriver: true,
|
|
27
|
+
}),
|
|
28
|
+
])
|
|
29
|
+
).start();
|
|
30
|
+
}, []);
|
|
31
|
+
|
|
32
|
+
return (
|
|
33
|
+
<View style={[styles.container, { width: size, height: size }]}>
|
|
34
|
+
<Animated.View
|
|
35
|
+
style={[
|
|
36
|
+
styles.iconBackground,
|
|
37
|
+
{
|
|
38
|
+
width: size,
|
|
39
|
+
height: size,
|
|
40
|
+
borderRadius: size / 2,
|
|
41
|
+
backgroundColor: `${color}15`,
|
|
42
|
+
transform: [{ scale: pulseAnim }],
|
|
43
|
+
},
|
|
44
|
+
]}
|
|
45
|
+
/>
|
|
46
|
+
<Animated.Text
|
|
47
|
+
style={[
|
|
48
|
+
styles.icon,
|
|
49
|
+
{
|
|
50
|
+
fontSize: size * 0.5,
|
|
51
|
+
opacity: pulseAnim.interpolate({
|
|
52
|
+
inputRange: [1, 1.1],
|
|
53
|
+
outputRange: [0.8, 1],
|
|
54
|
+
}),
|
|
55
|
+
},
|
|
56
|
+
]}
|
|
57
|
+
>
|
|
58
|
+
⏰
|
|
59
|
+
</Animated.Text>
|
|
60
|
+
</View>
|
|
61
|
+
);
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
const styles = StyleSheet.create({
|
|
65
|
+
container: {
|
|
66
|
+
justifyContent: 'center',
|
|
67
|
+
alignItems: 'center',
|
|
68
|
+
position: 'relative',
|
|
69
|
+
},
|
|
70
|
+
iconBackground: {
|
|
71
|
+
position: 'absolute',
|
|
72
|
+
},
|
|
73
|
+
icon: {
|
|
74
|
+
textAlign: 'center',
|
|
75
|
+
},
|
|
76
|
+
});
|
|
77
|
+
|
|
78
|
+
export default AnimatedClock;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import React, { useEffect, useRef } from 'react';
|
|
2
|
+
import { Animated, StyleSheet } from 'react-native';
|
|
3
|
+
|
|
4
|
+
interface AnimatedDocumentProps {
|
|
5
|
+
size?: number;
|
|
6
|
+
color?: string;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
const AnimatedDocument: React.FC<AnimatedDocumentProps> = ({
|
|
10
|
+
size = 60,
|
|
11
|
+
color = '#F59E0B',
|
|
12
|
+
}) => {
|
|
13
|
+
const pulseAnim = useRef(new Animated.Value(1)).current;
|
|
14
|
+
|
|
15
|
+
useEffect(() => {
|
|
16
|
+
Animated.loop(
|
|
17
|
+
Animated.sequence([
|
|
18
|
+
Animated.timing(pulseAnim, {
|
|
19
|
+
toValue: 1.06,
|
|
20
|
+
duration: 1800,
|
|
21
|
+
useNativeDriver: true,
|
|
22
|
+
}),
|
|
23
|
+
Animated.timing(pulseAnim, {
|
|
24
|
+
toValue: 1,
|
|
25
|
+
duration: 1800,
|
|
26
|
+
useNativeDriver: true,
|
|
27
|
+
}),
|
|
28
|
+
])
|
|
29
|
+
).start();
|
|
30
|
+
}, []);
|
|
31
|
+
|
|
32
|
+
return (
|
|
33
|
+
<Animated.Text
|
|
34
|
+
style={[
|
|
35
|
+
styles.icon,
|
|
36
|
+
{
|
|
37
|
+
fontSize: size,
|
|
38
|
+
color,
|
|
39
|
+
transform: [{ scale: pulseAnim }],
|
|
40
|
+
},
|
|
41
|
+
]}
|
|
42
|
+
>
|
|
43
|
+
📄
|
|
44
|
+
</Animated.Text>
|
|
45
|
+
);
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
const styles = StyleSheet.create({
|
|
49
|
+
icon: {
|
|
50
|
+
textAlign: 'center',
|
|
51
|
+
},
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
export default AnimatedDocument;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import React, { useEffect, useRef } from 'react';
|
|
2
|
+
import { Animated } from 'react-native';
|
|
3
|
+
import Svg, { Path, Polyline, Line } from 'react-native-svg';
|
|
4
|
+
|
|
5
|
+
interface AnimatedDownloadProps {
|
|
6
|
+
size?: number;
|
|
7
|
+
color?: string;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
const AnimatedDownload: React.FC<AnimatedDownloadProps> = ({ size = 48, color = '#3B82F6' }) => {
|
|
11
|
+
const bounceAnim = useRef(new Animated.Value(0)).current;
|
|
12
|
+
|
|
13
|
+
useEffect(() => {
|
|
14
|
+
Animated.loop(
|
|
15
|
+
Animated.sequence([
|
|
16
|
+
Animated.timing(bounceAnim, {
|
|
17
|
+
toValue: -5,
|
|
18
|
+
duration: 600,
|
|
19
|
+
useNativeDriver: true,
|
|
20
|
+
}),
|
|
21
|
+
Animated.timing(bounceAnim, {
|
|
22
|
+
toValue: 0,
|
|
23
|
+
duration: 600,
|
|
24
|
+
useNativeDriver: true,
|
|
25
|
+
}),
|
|
26
|
+
])
|
|
27
|
+
).start();
|
|
28
|
+
}, [bounceAnim]);
|
|
29
|
+
|
|
30
|
+
return (
|
|
31
|
+
<Animated.View style={{ transform: [{ translateY: bounceAnim }] }}>
|
|
32
|
+
<Svg width={size} height={size} viewBox="0 0 24 24" fill="none">
|
|
33
|
+
<Path
|
|
34
|
+
d="M21 15v4a2 2 0 01-2 2H5a2 2 0 01-2-2v-4"
|
|
35
|
+
stroke={color}
|
|
36
|
+
strokeWidth={2}
|
|
37
|
+
strokeLinecap="round"
|
|
38
|
+
strokeLinejoin="round"
|
|
39
|
+
/>
|
|
40
|
+
<Polyline
|
|
41
|
+
points="7 10 12 15 17 10"
|
|
42
|
+
stroke={color}
|
|
43
|
+
strokeWidth={2}
|
|
44
|
+
strokeLinecap="round"
|
|
45
|
+
strokeLinejoin="round"
|
|
46
|
+
/>
|
|
47
|
+
<Line
|
|
48
|
+
x1="12"
|
|
49
|
+
y1="15"
|
|
50
|
+
x2="12"
|
|
51
|
+
y2="3"
|
|
52
|
+
stroke={color}
|
|
53
|
+
strokeWidth={2}
|
|
54
|
+
strokeLinecap="round"
|
|
55
|
+
/>
|
|
56
|
+
</Svg>
|
|
57
|
+
</Animated.View>
|
|
58
|
+
);
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
export default AnimatedDownload;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import React, { useEffect, useRef } from 'react';
|
|
2
|
+
import { Animated, StyleSheet } from 'react-native';
|
|
3
|
+
|
|
4
|
+
interface AnimatedLightningProps {
|
|
5
|
+
size?: number;
|
|
6
|
+
color?: string;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
const AnimatedLightning: React.FC<AnimatedLightningProps> = ({
|
|
10
|
+
size = 60,
|
|
11
|
+
color = '#10B981',
|
|
12
|
+
}) => {
|
|
13
|
+
const pulseAnim = useRef(new Animated.Value(1)).current;
|
|
14
|
+
|
|
15
|
+
useEffect(() => {
|
|
16
|
+
Animated.loop(
|
|
17
|
+
Animated.sequence([
|
|
18
|
+
Animated.timing(pulseAnim, {
|
|
19
|
+
toValue: 1.1,
|
|
20
|
+
duration: 1500,
|
|
21
|
+
useNativeDriver: true,
|
|
22
|
+
}),
|
|
23
|
+
Animated.timing(pulseAnim, {
|
|
24
|
+
toValue: 1,
|
|
25
|
+
duration: 1500,
|
|
26
|
+
useNativeDriver: true,
|
|
27
|
+
}),
|
|
28
|
+
])
|
|
29
|
+
).start();
|
|
30
|
+
}, []);
|
|
31
|
+
|
|
32
|
+
return (
|
|
33
|
+
<Animated.Text
|
|
34
|
+
style={[
|
|
35
|
+
styles.icon,
|
|
36
|
+
{
|
|
37
|
+
fontSize: size,
|
|
38
|
+
color,
|
|
39
|
+
transform: [{ scale: pulseAnim }],
|
|
40
|
+
},
|
|
41
|
+
]}
|
|
42
|
+
>
|
|
43
|
+
⚡
|
|
44
|
+
</Animated.Text>
|
|
45
|
+
);
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
const styles = StyleSheet.create({
|
|
49
|
+
icon: {
|
|
50
|
+
textAlign: 'center',
|
|
51
|
+
},
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
export default AnimatedLightning;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import React, { useEffect, useRef } from 'react';
|
|
2
|
+
import { Animated, StyleSheet } from 'react-native';
|
|
3
|
+
|
|
4
|
+
interface AnimatedLocationPinProps {
|
|
5
|
+
size?: number;
|
|
6
|
+
color?: string;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
const AnimatedLocationPin: React.FC<AnimatedLocationPinProps> = ({
|
|
10
|
+
size = 60,
|
|
11
|
+
color = '#3B82F6',
|
|
12
|
+
}) => {
|
|
13
|
+
const bounceAnim = useRef(new Animated.Value(0)).current;
|
|
14
|
+
|
|
15
|
+
useEffect(() => {
|
|
16
|
+
Animated.loop(
|
|
17
|
+
Animated.sequence([
|
|
18
|
+
Animated.timing(bounceAnim, {
|
|
19
|
+
toValue: -5,
|
|
20
|
+
duration: 1000,
|
|
21
|
+
useNativeDriver: true,
|
|
22
|
+
}),
|
|
23
|
+
Animated.timing(bounceAnim, {
|
|
24
|
+
toValue: 0,
|
|
25
|
+
duration: 1000,
|
|
26
|
+
useNativeDriver: true,
|
|
27
|
+
}),
|
|
28
|
+
])
|
|
29
|
+
).start();
|
|
30
|
+
}, []);
|
|
31
|
+
|
|
32
|
+
return (
|
|
33
|
+
<Animated.Text
|
|
34
|
+
style={[
|
|
35
|
+
styles.icon,
|
|
36
|
+
{
|
|
37
|
+
fontSize: size,
|
|
38
|
+
color,
|
|
39
|
+
transform: [{ translateY: bounceAnim }],
|
|
40
|
+
},
|
|
41
|
+
]}
|
|
42
|
+
>
|
|
43
|
+
📍
|
|
44
|
+
</Animated.Text>
|
|
45
|
+
);
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
const styles = StyleSheet.create({
|
|
49
|
+
icon: {
|
|
50
|
+
textAlign: 'center',
|
|
51
|
+
},
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
export default AnimatedLocationPin;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import React, { useEffect, useRef } from 'react';
|
|
2
|
+
import { Animated, StyleSheet } from 'react-native';
|
|
3
|
+
|
|
4
|
+
interface AnimatedShieldProps {
|
|
5
|
+
size?: number;
|
|
6
|
+
color?: string;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
const AnimatedShield: React.FC<AnimatedShieldProps> = ({
|
|
10
|
+
size = 60,
|
|
11
|
+
color = '#FDB022',
|
|
12
|
+
}) => {
|
|
13
|
+
const pulseAnim = useRef(new Animated.Value(1)).current;
|
|
14
|
+
|
|
15
|
+
useEffect(() => {
|
|
16
|
+
Animated.loop(
|
|
17
|
+
Animated.sequence([
|
|
18
|
+
Animated.timing(pulseAnim, {
|
|
19
|
+
toValue: 1.05,
|
|
20
|
+
duration: 2000,
|
|
21
|
+
useNativeDriver: true,
|
|
22
|
+
}),
|
|
23
|
+
Animated.timing(pulseAnim, {
|
|
24
|
+
toValue: 1,
|
|
25
|
+
duration: 2000,
|
|
26
|
+
useNativeDriver: true,
|
|
27
|
+
}),
|
|
28
|
+
])
|
|
29
|
+
).start();
|
|
30
|
+
}, []);
|
|
31
|
+
|
|
32
|
+
return (
|
|
33
|
+
<Animated.Text
|
|
34
|
+
style={[
|
|
35
|
+
styles.icon,
|
|
36
|
+
{
|
|
37
|
+
fontSize: size,
|
|
38
|
+
color,
|
|
39
|
+
transform: [{ scale: pulseAnim }],
|
|
40
|
+
},
|
|
41
|
+
]}
|
|
42
|
+
>
|
|
43
|
+
🛡️
|
|
44
|
+
</Animated.Text>
|
|
45
|
+
);
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
const styles = StyleSheet.create({
|
|
49
|
+
icon: {
|
|
50
|
+
textAlign: 'center',
|
|
51
|
+
},
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
export default AnimatedShield;
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import React, { useEffect, useRef } from 'react';
|
|
2
|
+
import { Animated, StyleSheet } from 'react-native';
|
|
3
|
+
|
|
4
|
+
interface AnimatedSparkleProps {
|
|
5
|
+
size?: number;
|
|
6
|
+
color?: string;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
const AnimatedSparkle: React.FC<AnimatedSparkleProps> = ({
|
|
10
|
+
size = 60,
|
|
11
|
+
color = '#3B82F6',
|
|
12
|
+
}) => {
|
|
13
|
+
const rotateAnim = useRef(new Animated.Value(0)).current;
|
|
14
|
+
const scaleAnim = useRef(new Animated.Value(1)).current;
|
|
15
|
+
|
|
16
|
+
useEffect(() => {
|
|
17
|
+
Animated.loop(
|
|
18
|
+
Animated.parallel([
|
|
19
|
+
Animated.sequence([
|
|
20
|
+
Animated.timing(rotateAnim, {
|
|
21
|
+
toValue: 1,
|
|
22
|
+
duration: 3000,
|
|
23
|
+
useNativeDriver: true,
|
|
24
|
+
}),
|
|
25
|
+
Animated.timing(rotateAnim, {
|
|
26
|
+
toValue: 0,
|
|
27
|
+
duration: 0,
|
|
28
|
+
useNativeDriver: true,
|
|
29
|
+
}),
|
|
30
|
+
]),
|
|
31
|
+
Animated.sequence([
|
|
32
|
+
Animated.timing(scaleAnim, {
|
|
33
|
+
toValue: 1.08,
|
|
34
|
+
duration: 1500,
|
|
35
|
+
useNativeDriver: true,
|
|
36
|
+
}),
|
|
37
|
+
Animated.timing(scaleAnim, {
|
|
38
|
+
toValue: 1,
|
|
39
|
+
duration: 1500,
|
|
40
|
+
useNativeDriver: true,
|
|
41
|
+
}),
|
|
42
|
+
]),
|
|
43
|
+
])
|
|
44
|
+
).start();
|
|
45
|
+
}, []);
|
|
46
|
+
|
|
47
|
+
const rotate = rotateAnim.interpolate({
|
|
48
|
+
inputRange: [0, 1],
|
|
49
|
+
outputRange: ['0deg', '360deg'],
|
|
50
|
+
});
|
|
51
|
+
|
|
52
|
+
return (
|
|
53
|
+
<Animated.Text
|
|
54
|
+
style={[
|
|
55
|
+
styles.icon,
|
|
56
|
+
{
|
|
57
|
+
fontSize: size,
|
|
58
|
+
color,
|
|
59
|
+
transform: [{ rotate }, { scale: scaleAnim }],
|
|
60
|
+
},
|
|
61
|
+
]}
|
|
62
|
+
>
|
|
63
|
+
✨
|
|
64
|
+
</Animated.Text>
|
|
65
|
+
);
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
const styles = StyleSheet.create({
|
|
69
|
+
icon: {
|
|
70
|
+
textAlign: 'center',
|
|
71
|
+
},
|
|
72
|
+
});
|
|
73
|
+
|
|
74
|
+
export default AnimatedSparkle;
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import React, { useEffect, useRef } from 'react';
|
|
2
|
+
import { View, Animated, StyleSheet } from 'react-native';
|
|
3
|
+
|
|
4
|
+
interface AnimatedWarningProps {
|
|
5
|
+
size?: number;
|
|
6
|
+
color?: string;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
const AnimatedWarning: React.FC<AnimatedWarningProps> = ({
|
|
10
|
+
size = 80,
|
|
11
|
+
color = '#F97316',
|
|
12
|
+
}) => {
|
|
13
|
+
const pulseAnim = useRef(new Animated.Value(1)).current;
|
|
14
|
+
|
|
15
|
+
useEffect(() => {
|
|
16
|
+
Animated.loop(
|
|
17
|
+
Animated.sequence([
|
|
18
|
+
Animated.timing(pulseAnim, {
|
|
19
|
+
toValue: 1.15,
|
|
20
|
+
duration: 800,
|
|
21
|
+
useNativeDriver: true,
|
|
22
|
+
}),
|
|
23
|
+
Animated.timing(pulseAnim, {
|
|
24
|
+
toValue: 1,
|
|
25
|
+
duration: 800,
|
|
26
|
+
useNativeDriver: true,
|
|
27
|
+
}),
|
|
28
|
+
])
|
|
29
|
+
).start();
|
|
30
|
+
}, []);
|
|
31
|
+
|
|
32
|
+
return (
|
|
33
|
+
<View style={[styles.container, { width: size, height: size }]}>
|
|
34
|
+
<Animated.View
|
|
35
|
+
style={[
|
|
36
|
+
styles.iconBackground,
|
|
37
|
+
{
|
|
38
|
+
width: size,
|
|
39
|
+
height: size,
|
|
40
|
+
borderRadius: size / 2,
|
|
41
|
+
backgroundColor: `${color}15`,
|
|
42
|
+
transform: [{ scale: pulseAnim }],
|
|
43
|
+
},
|
|
44
|
+
]}
|
|
45
|
+
/>
|
|
46
|
+
<Animated.Text
|
|
47
|
+
style={[
|
|
48
|
+
styles.icon,
|
|
49
|
+
{
|
|
50
|
+
fontSize: size * 0.5,
|
|
51
|
+
transform: [{ scale: pulseAnim }],
|
|
52
|
+
},
|
|
53
|
+
]}
|
|
54
|
+
>
|
|
55
|
+
⚠️
|
|
56
|
+
</Animated.Text>
|
|
57
|
+
</View>
|
|
58
|
+
);
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
const styles = StyleSheet.create({
|
|
62
|
+
container: {
|
|
63
|
+
justifyContent: 'center',
|
|
64
|
+
alignItems: 'center',
|
|
65
|
+
position: 'relative',
|
|
66
|
+
},
|
|
67
|
+
iconBackground: {
|
|
68
|
+
position: 'absolute',
|
|
69
|
+
},
|
|
70
|
+
icon: {
|
|
71
|
+
textAlign: 'center',
|
|
72
|
+
},
|
|
73
|
+
});
|
|
74
|
+
|
|
75
|
+
export default AnimatedWarning;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// General Animated Icons - Barrel Export
|
|
2
|
+
export { default as AnimatedClock } from './AnimatedClock';
|
|
3
|
+
export { default as AnimatedWarning } from './AnimatedWarning';
|
|
4
|
+
export { default as AnimatedShield } from './AnimatedShield';
|
|
5
|
+
export { default as AnimatedCalendar } from './AnimatedCalendar';
|
|
6
|
+
export { default as AnimatedDocument } from './AnimatedDocument';
|
|
7
|
+
export { default as AnimatedCamera } from './AnimatedCamera';
|
|
8
|
+
export { default as AnimatedLightning } from './AnimatedLightning';
|
|
9
|
+
export { default as AnimatedLocationPin } from './AnimatedLocationPin';
|
|
10
|
+
export { default as AnimatedSparkle } from './AnimatedSparkle';
|
|
11
|
+
export { default as AnimatedDownload } from './AnimatedDownload';
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import React, { useEffect } from 'react';
|
|
2
|
+
import Animated, {
|
|
3
|
+
useSharedValue,
|
|
4
|
+
useAnimatedProps,
|
|
5
|
+
withRepeat,
|
|
6
|
+
withTiming,
|
|
7
|
+
Easing,
|
|
8
|
+
} from 'react-native-reanimated';
|
|
9
|
+
import Svg, { Path, Circle, G } from 'react-native-svg';
|
|
10
|
+
|
|
11
|
+
const AnimatedPath = Animated.createAnimatedComponent(Path);
|
|
12
|
+
const AnimatedCircle = Animated.createAnimatedComponent(Circle);
|
|
13
|
+
|
|
14
|
+
interface AnimatedAlertProps {
|
|
15
|
+
size?: number;
|
|
16
|
+
color?: string;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Animated Alert Icon
|
|
21
|
+
* Alert bell with ringing animation
|
|
22
|
+
*/
|
|
23
|
+
export const AnimatedAlert: React.FC<AnimatedAlertProps> = ({
|
|
24
|
+
size = 64,
|
|
25
|
+
color = '#F59E0B',
|
|
26
|
+
}) => {
|
|
27
|
+
const rotation = useSharedValue(0);
|
|
28
|
+
const ringPulse = useSharedValue(1);
|
|
29
|
+
|
|
30
|
+
useEffect(() => {
|
|
31
|
+
rotation.value = withRepeat(
|
|
32
|
+
withTiming(10, { duration: 150, easing: Easing.inOut(Easing.ease) }),
|
|
33
|
+
-1,
|
|
34
|
+
true
|
|
35
|
+
);
|
|
36
|
+
|
|
37
|
+
ringPulse.value = withRepeat(
|
|
38
|
+
withTiming(1.3, { duration: 1000, easing: Easing.out(Easing.ease) }),
|
|
39
|
+
-1,
|
|
40
|
+
false
|
|
41
|
+
);
|
|
42
|
+
}, []);
|
|
43
|
+
|
|
44
|
+
const bellProps = useAnimatedProps(() => ({
|
|
45
|
+
transform: `rotate(${rotation.value} 32 24)`,
|
|
46
|
+
}));
|
|
47
|
+
|
|
48
|
+
const ringProps = useAnimatedProps(() => ({
|
|
49
|
+
opacity: 1 - (ringPulse.value - 1) / 0.3,
|
|
50
|
+
r: 28 * ringPulse.value,
|
|
51
|
+
}));
|
|
52
|
+
|
|
53
|
+
return (
|
|
54
|
+
<Svg width={size} height={size} viewBox="0 0 64 64" fill="none">
|
|
55
|
+
{/* Ring pulse effect */}
|
|
56
|
+
<AnimatedCircle
|
|
57
|
+
animatedProps={ringProps}
|
|
58
|
+
cx="32"
|
|
59
|
+
cy="28"
|
|
60
|
+
stroke={color}
|
|
61
|
+
strokeWidth="2"
|
|
62
|
+
fill="none"
|
|
63
|
+
/>
|
|
64
|
+
|
|
65
|
+
{/* Bell body */}
|
|
66
|
+
<AnimatedPath
|
|
67
|
+
animatedProps={bellProps}
|
|
68
|
+
d="M20 28 C20 20, 26 14, 32 14 C38 14, 44 20, 44 28 L44 36 C44 38, 46 40, 48 40 L16 40 C18 40, 20 38, 20 36 Z"
|
|
69
|
+
fill={color}
|
|
70
|
+
opacity={0.9}
|
|
71
|
+
/>
|
|
72
|
+
|
|
73
|
+
{/* Bell clapper */}
|
|
74
|
+
<AnimatedPath
|
|
75
|
+
animatedProps={bellProps}
|
|
76
|
+
d="M32 40 L32 44"
|
|
77
|
+
stroke={color}
|
|
78
|
+
strokeWidth="2"
|
|
79
|
+
strokeLinecap="round"
|
|
80
|
+
/>
|
|
81
|
+
<AnimatedCircle
|
|
82
|
+
animatedProps={bellProps}
|
|
83
|
+
cx="32"
|
|
84
|
+
cy="46"
|
|
85
|
+
r="2"
|
|
86
|
+
fill={color}
|
|
87
|
+
/>
|
|
88
|
+
|
|
89
|
+
{/* Bell top */}
|
|
90
|
+
<Path
|
|
91
|
+
d="M28 14 C28 12, 30 10, 32 10 C34 10, 36 12, 36 14"
|
|
92
|
+
stroke={color}
|
|
93
|
+
strokeWidth="2"
|
|
94
|
+
strokeLinecap="round"
|
|
95
|
+
fill="none"
|
|
96
|
+
/>
|
|
97
|
+
|
|
98
|
+
{/* Sound waves */}
|
|
99
|
+
<Path
|
|
100
|
+
d="M12 24 C12 16, 18 10, 26 8 M52 24 C52 16, 46 10, 38 8"
|
|
101
|
+
stroke={color}
|
|
102
|
+
strokeWidth="2"
|
|
103
|
+
strokeLinecap="round"
|
|
104
|
+
opacity={0.4}
|
|
105
|
+
/>
|
|
106
|
+
</Svg>
|
|
107
|
+
);
|
|
108
|
+
};
|
|
109
|
+
|
|
110
|
+
export default AnimatedAlert;
|