@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,104 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { View, Text, TouchableOpacity, StyleSheet } from 'react-native';
|
|
3
|
+
import type { BannerConfig } from '../../types';
|
|
4
|
+
|
|
5
|
+
interface TopBannerProps {
|
|
6
|
+
banner: BannerConfig;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
const TopBanner: React.FC<TopBannerProps> = ({ banner }) => {
|
|
10
|
+
const getBannerColors = () => {
|
|
11
|
+
switch (banner.type) {
|
|
12
|
+
case 'warning':
|
|
13
|
+
return {
|
|
14
|
+
background: '#FEF3C7',
|
|
15
|
+
text: '#92400E',
|
|
16
|
+
icon: '⚠️',
|
|
17
|
+
};
|
|
18
|
+
case 'error':
|
|
19
|
+
return {
|
|
20
|
+
background: '#FEE2E2',
|
|
21
|
+
text: '#991B1B',
|
|
22
|
+
icon: '❌',
|
|
23
|
+
};
|
|
24
|
+
case 'info':
|
|
25
|
+
return {
|
|
26
|
+
background: '#DBEAFE',
|
|
27
|
+
text: '#1E40AF',
|
|
28
|
+
icon: 'ℹ️',
|
|
29
|
+
};
|
|
30
|
+
case 'success':
|
|
31
|
+
return {
|
|
32
|
+
background: '#D1FAE5',
|
|
33
|
+
text: '#065F46',
|
|
34
|
+
icon: '✅',
|
|
35
|
+
};
|
|
36
|
+
default:
|
|
37
|
+
return {
|
|
38
|
+
background: '#F3F4F6',
|
|
39
|
+
text: '#374151',
|
|
40
|
+
icon: 'ℹ️',
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
const colors = getBannerColors();
|
|
46
|
+
|
|
47
|
+
return (
|
|
48
|
+
<View style={[styles.container, { backgroundColor: colors.background }]}>
|
|
49
|
+
<View style={styles.content}>
|
|
50
|
+
<Text style={styles.icon}>{banner.icon || colors.icon}</Text>
|
|
51
|
+
<Text style={[styles.message, { color: colors.text }]}>
|
|
52
|
+
{banner.message}
|
|
53
|
+
</Text>
|
|
54
|
+
</View>
|
|
55
|
+
{banner.dismissible && banner.onDismiss && (
|
|
56
|
+
<TouchableOpacity
|
|
57
|
+
onPress={banner.onDismiss}
|
|
58
|
+
style={styles.dismissButton}
|
|
59
|
+
activeOpacity={0.7}
|
|
60
|
+
>
|
|
61
|
+
<Text style={[styles.dismissText, { color: colors.text }]}>
|
|
62
|
+
Dismiss
|
|
63
|
+
</Text>
|
|
64
|
+
</TouchableOpacity>
|
|
65
|
+
)}
|
|
66
|
+
</View>
|
|
67
|
+
);
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
const styles = StyleSheet.create({
|
|
71
|
+
container: {
|
|
72
|
+
flexDirection: 'row',
|
|
73
|
+
alignItems: 'center',
|
|
74
|
+
justifyContent: 'space-between',
|
|
75
|
+
paddingVertical: 12,
|
|
76
|
+
paddingHorizontal: 16,
|
|
77
|
+
borderBottomWidth: 1,
|
|
78
|
+
borderBottomColor: 'rgba(0, 0, 0, 0.1)',
|
|
79
|
+
},
|
|
80
|
+
content: {
|
|
81
|
+
flexDirection: 'row',
|
|
82
|
+
alignItems: 'center',
|
|
83
|
+
flex: 1,
|
|
84
|
+
gap: 10,
|
|
85
|
+
},
|
|
86
|
+
icon: {
|
|
87
|
+
fontSize: 18,
|
|
88
|
+
},
|
|
89
|
+
message: {
|
|
90
|
+
fontSize: 14,
|
|
91
|
+
fontWeight: '500',
|
|
92
|
+
flex: 1,
|
|
93
|
+
},
|
|
94
|
+
dismissButton: {
|
|
95
|
+
paddingHorizontal: 12,
|
|
96
|
+
paddingVertical: 6,
|
|
97
|
+
},
|
|
98
|
+
dismissText: {
|
|
99
|
+
fontSize: 14,
|
|
100
|
+
fontWeight: '600',
|
|
101
|
+
},
|
|
102
|
+
});
|
|
103
|
+
|
|
104
|
+
export default TopBanner;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
// Feedback - Barrel Export
|
|
2
|
+
export { default as StatusBadge } from './StatusBadge';
|
|
3
|
+
export { default as SpeedBadge } from './SpeedBadge';
|
|
4
|
+
export { default as TopBanner } from './TopBanner';
|
|
5
|
+
export { default as SecurityBanner } from './SecurityBanner';
|
|
6
|
+
export { default as ExpandableSection } from './ExpandableSection';
|
|
@@ -0,0 +1,94 @@
|
|
|
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, Rect, Circle } from 'react-native-svg';
|
|
10
|
+
|
|
11
|
+
const AnimatedPath = Animated.createAnimatedComponent(Path);
|
|
12
|
+
|
|
13
|
+
interface AnimatedClientErrorProps {
|
|
14
|
+
size?: number;
|
|
15
|
+
color?: string;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Animated Client Error Icon (4xx)
|
|
20
|
+
* Shows warning triangle with error code
|
|
21
|
+
*/
|
|
22
|
+
export const AnimatedClientError: React.FC<AnimatedClientErrorProps> = ({
|
|
23
|
+
size = 64,
|
|
24
|
+
color = '#F59E0B',
|
|
25
|
+
}) => {
|
|
26
|
+
const pulse = useSharedValue(1);
|
|
27
|
+
|
|
28
|
+
useEffect(() => {
|
|
29
|
+
pulse.value = withRepeat(
|
|
30
|
+
withTiming(1.1, { duration: 1000, easing: Easing.inOut(Easing.ease) }),
|
|
31
|
+
-1,
|
|
32
|
+
true
|
|
33
|
+
);
|
|
34
|
+
}, []);
|
|
35
|
+
|
|
36
|
+
const animatedProps = useAnimatedProps(() => ({
|
|
37
|
+
transform: `scale(${pulse.value})`,
|
|
38
|
+
}));
|
|
39
|
+
|
|
40
|
+
return (
|
|
41
|
+
<Svg width={size} height={size} viewBox="0 0 64 64" fill="none">
|
|
42
|
+
{/* Warning triangle background */}
|
|
43
|
+
<Path
|
|
44
|
+
d="M32 8 L56 52 L8 52 Z"
|
|
45
|
+
fill={color}
|
|
46
|
+
opacity={0.1}
|
|
47
|
+
/>
|
|
48
|
+
|
|
49
|
+
{/* Warning triangle border */}
|
|
50
|
+
<AnimatedPath
|
|
51
|
+
animatedProps={animatedProps}
|
|
52
|
+
d="M32 12 L52 48 L12 48 Z"
|
|
53
|
+
stroke={color}
|
|
54
|
+
strokeWidth="3"
|
|
55
|
+
fill="none"
|
|
56
|
+
strokeLinejoin="round"
|
|
57
|
+
/>
|
|
58
|
+
|
|
59
|
+
{/* Exclamation mark */}
|
|
60
|
+
<Path
|
|
61
|
+
d="M32 22 L32 36"
|
|
62
|
+
stroke={color}
|
|
63
|
+
strokeWidth="3"
|
|
64
|
+
strokeLinecap="round"
|
|
65
|
+
/>
|
|
66
|
+
<Circle
|
|
67
|
+
cx="32"
|
|
68
|
+
cy="42"
|
|
69
|
+
r="2"
|
|
70
|
+
fill={color}
|
|
71
|
+
/>
|
|
72
|
+
|
|
73
|
+
{/* Code brackets */}
|
|
74
|
+
<Path
|
|
75
|
+
d="M20 28 L18 32 L20 36"
|
|
76
|
+
stroke={color}
|
|
77
|
+
strokeWidth="2"
|
|
78
|
+
strokeLinecap="round"
|
|
79
|
+
strokeLinejoin="round"
|
|
80
|
+
opacity={0.6}
|
|
81
|
+
/>
|
|
82
|
+
<Path
|
|
83
|
+
d="M44 28 L46 32 L44 36"
|
|
84
|
+
stroke={color}
|
|
85
|
+
strokeWidth="2"
|
|
86
|
+
strokeLinecap="round"
|
|
87
|
+
strokeLinejoin="round"
|
|
88
|
+
opacity={0.6}
|
|
89
|
+
/>
|
|
90
|
+
</Svg>
|
|
91
|
+
);
|
|
92
|
+
};
|
|
93
|
+
|
|
94
|
+
export default AnimatedClientError;
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
import React, { useEffect } from 'react';
|
|
2
|
+
import Animated, {
|
|
3
|
+
useSharedValue,
|
|
4
|
+
useAnimatedProps,
|
|
5
|
+
withRepeat,
|
|
6
|
+
withSequence,
|
|
7
|
+
withTiming,
|
|
8
|
+
Easing,
|
|
9
|
+
} from 'react-native-reanimated';
|
|
10
|
+
import Svg, { Path, Circle, G } from 'react-native-svg';
|
|
11
|
+
|
|
12
|
+
const AnimatedPath = Animated.createAnimatedComponent(Path);
|
|
13
|
+
const AnimatedCircle = Animated.createAnimatedComponent(Circle);
|
|
14
|
+
|
|
15
|
+
interface AnimatedCrashProps {
|
|
16
|
+
size?: number;
|
|
17
|
+
color?: string;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Animated Crash Icon
|
|
22
|
+
* Shows broken pieces with scatter animation
|
|
23
|
+
*/
|
|
24
|
+
export const AnimatedCrash: React.FC<AnimatedCrashProps> = ({
|
|
25
|
+
size = 64,
|
|
26
|
+
color = '#EF4444',
|
|
27
|
+
}) => {
|
|
28
|
+
const scatter1 = useSharedValue(0);
|
|
29
|
+
const scatter2 = useSharedValue(0);
|
|
30
|
+
const scatter3 = useSharedValue(0);
|
|
31
|
+
const opacity = useSharedValue(1);
|
|
32
|
+
|
|
33
|
+
useEffect(() => {
|
|
34
|
+
scatter1.value = withRepeat(
|
|
35
|
+
withSequence(
|
|
36
|
+
withTiming(1, { duration: 1200, easing: Easing.out(Easing.cubic) }),
|
|
37
|
+
withTiming(0, { duration: 800, easing: Easing.in(Easing.cubic) })
|
|
38
|
+
),
|
|
39
|
+
-1,
|
|
40
|
+
false
|
|
41
|
+
);
|
|
42
|
+
|
|
43
|
+
scatter2.value = withRepeat(
|
|
44
|
+
withSequence(
|
|
45
|
+
withTiming(1, { duration: 1300, easing: Easing.out(Easing.cubic) }),
|
|
46
|
+
withTiming(0, { duration: 700, easing: Easing.in(Easing.cubic) })
|
|
47
|
+
),
|
|
48
|
+
-1,
|
|
49
|
+
false
|
|
50
|
+
);
|
|
51
|
+
|
|
52
|
+
scatter3.value = withRepeat(
|
|
53
|
+
withSequence(
|
|
54
|
+
withTiming(1, { duration: 1100, easing: Easing.out(Easing.cubic) }),
|
|
55
|
+
withTiming(0, { duration: 900, easing: Easing.in(Easing.cubic) })
|
|
56
|
+
),
|
|
57
|
+
-1,
|
|
58
|
+
false
|
|
59
|
+
);
|
|
60
|
+
|
|
61
|
+
opacity.value = withRepeat(
|
|
62
|
+
withSequence(
|
|
63
|
+
withTiming(0.3, { duration: 1000 }),
|
|
64
|
+
withTiming(1, { duration: 1000 })
|
|
65
|
+
),
|
|
66
|
+
-1,
|
|
67
|
+
true
|
|
68
|
+
);
|
|
69
|
+
}, []);
|
|
70
|
+
|
|
71
|
+
const animatedProps1 = useAnimatedProps(() => ({
|
|
72
|
+
transform: `translate(${scatter1.value * -8}, ${scatter1.value * -8})`,
|
|
73
|
+
opacity: 1 - scatter1.value * 0.5,
|
|
74
|
+
}));
|
|
75
|
+
|
|
76
|
+
const animatedProps2 = useAnimatedProps(() => ({
|
|
77
|
+
transform: `translate(${scatter2.value * 8}, ${scatter2.value * -6})`,
|
|
78
|
+
opacity: 1 - scatter2.value * 0.5,
|
|
79
|
+
}));
|
|
80
|
+
|
|
81
|
+
const animatedProps3 = useAnimatedProps(() => ({
|
|
82
|
+
transform: `translate(${scatter3.value * -6}, ${scatter3.value * 8})`,
|
|
83
|
+
opacity: 1 - scatter3.value * 0.5,
|
|
84
|
+
}));
|
|
85
|
+
|
|
86
|
+
return (
|
|
87
|
+
<Svg width={size} height={size} viewBox="0 0 64 64" fill="none">
|
|
88
|
+
{/* Piece 1 - Top left */}
|
|
89
|
+
<AnimatedPath
|
|
90
|
+
animatedProps={animatedProps1}
|
|
91
|
+
d="M20 16 L28 20 L24 28 L16 24 Z"
|
|
92
|
+
fill={color}
|
|
93
|
+
opacity={0.8}
|
|
94
|
+
/>
|
|
95
|
+
|
|
96
|
+
{/* Piece 2 - Top right */}
|
|
97
|
+
<AnimatedPath
|
|
98
|
+
animatedProps={animatedProps2}
|
|
99
|
+
d="M36 20 L44 16 L48 24 L40 28 Z"
|
|
100
|
+
fill={color}
|
|
101
|
+
opacity={0.8}
|
|
102
|
+
/>
|
|
103
|
+
|
|
104
|
+
{/* Piece 3 - Bottom */}
|
|
105
|
+
<AnimatedPath
|
|
106
|
+
animatedProps={animatedProps3}
|
|
107
|
+
d="M24 36 L40 36 L38 48 L26 48 Z"
|
|
108
|
+
fill={color}
|
|
109
|
+
opacity={0.8}
|
|
110
|
+
/>
|
|
111
|
+
|
|
112
|
+
{/* Center crack */}
|
|
113
|
+
<Path
|
|
114
|
+
d="M32 12 L32 52 M12 32 L52 32"
|
|
115
|
+
stroke={color}
|
|
116
|
+
strokeWidth="2"
|
|
117
|
+
strokeLinecap="round"
|
|
118
|
+
opacity={0.4}
|
|
119
|
+
/>
|
|
120
|
+
|
|
121
|
+
{/* Warning symbol in center */}
|
|
122
|
+
<Circle cx="32" cy="32" r="6" fill={color} opacity={0.6} />
|
|
123
|
+
<Path
|
|
124
|
+
d="M32 28 L32 32 M32 34 L32 35"
|
|
125
|
+
stroke="#FFFFFF"
|
|
126
|
+
strokeWidth="2"
|
|
127
|
+
strokeLinecap="round"
|
|
128
|
+
/>
|
|
129
|
+
</Svg>
|
|
130
|
+
);
|
|
131
|
+
};
|
|
132
|
+
|
|
133
|
+
export default AnimatedCrash;
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import React, { useEffect } from 'react';
|
|
2
|
+
import Animated, {
|
|
3
|
+
useSharedValue,
|
|
4
|
+
useAnimatedProps,
|
|
5
|
+
withRepeat,
|
|
6
|
+
withSequence,
|
|
7
|
+
withTiming,
|
|
8
|
+
Easing,
|
|
9
|
+
} from 'react-native-reanimated';
|
|
10
|
+
import Svg, { Path, Rect, G } from 'react-native-svg';
|
|
11
|
+
|
|
12
|
+
const AnimatedG = Animated.createAnimatedComponent(G);
|
|
13
|
+
const AnimatedPath = Animated.createAnimatedComponent(Path);
|
|
14
|
+
|
|
15
|
+
interface AnimatedInvalidDataProps {
|
|
16
|
+
size?: number;
|
|
17
|
+
color?: string;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Animated Invalid Data Icon
|
|
22
|
+
* Shows corrupted file/document with glitch effect
|
|
23
|
+
*/
|
|
24
|
+
export const AnimatedInvalidData: React.FC<AnimatedInvalidDataProps> = ({
|
|
25
|
+
size = 64,
|
|
26
|
+
color = '#EF4444',
|
|
27
|
+
}) => {
|
|
28
|
+
const glitch = useSharedValue(0);
|
|
29
|
+
const opacity = useSharedValue(1);
|
|
30
|
+
|
|
31
|
+
useEffect(() => {
|
|
32
|
+
glitch.value = withRepeat(
|
|
33
|
+
withSequence(
|
|
34
|
+
withTiming(0, { duration: 2000 }),
|
|
35
|
+
withTiming(3, { duration: 100, easing: Easing.linear }),
|
|
36
|
+
withTiming(0, { duration: 100 }),
|
|
37
|
+
withTiming(-2, { duration: 100 }),
|
|
38
|
+
withTiming(0, { duration: 100 })
|
|
39
|
+
),
|
|
40
|
+
-1,
|
|
41
|
+
false
|
|
42
|
+
);
|
|
43
|
+
|
|
44
|
+
opacity.value = withRepeat(
|
|
45
|
+
withSequence(
|
|
46
|
+
withTiming(1, { duration: 2000 }),
|
|
47
|
+
withTiming(0.7, { duration: 100 }),
|
|
48
|
+
withTiming(1, { duration: 100 }),
|
|
49
|
+
withTiming(0.8, { duration: 100 }),
|
|
50
|
+
withTiming(1, { duration: 100 })
|
|
51
|
+
),
|
|
52
|
+
-1,
|
|
53
|
+
false
|
|
54
|
+
);
|
|
55
|
+
}, []);
|
|
56
|
+
|
|
57
|
+
const animatedProps = useAnimatedProps(() => ({
|
|
58
|
+
transform: `translateX(${glitch.value})`,
|
|
59
|
+
opacity: opacity.value,
|
|
60
|
+
}));
|
|
61
|
+
|
|
62
|
+
return (
|
|
63
|
+
<Svg width={size} height={size} viewBox="0 0 64 64" fill="none">
|
|
64
|
+
{/* Document outline */}
|
|
65
|
+
<Path
|
|
66
|
+
d="M16 8 L40 8 L48 16 L48 56 L16 56 Z"
|
|
67
|
+
stroke={color}
|
|
68
|
+
strokeWidth="2"
|
|
69
|
+
fill="none"
|
|
70
|
+
/>
|
|
71
|
+
|
|
72
|
+
{/* Folded corner */}
|
|
73
|
+
<Path
|
|
74
|
+
d="M40 8 L40 16 L48 16"
|
|
75
|
+
stroke={color}
|
|
76
|
+
strokeWidth="2"
|
|
77
|
+
fill="none"
|
|
78
|
+
/>
|
|
79
|
+
|
|
80
|
+
{/* Glitched content lines */}
|
|
81
|
+
<AnimatedG
|
|
82
|
+
animatedProps={animatedProps}
|
|
83
|
+
>
|
|
84
|
+
<Path
|
|
85
|
+
d="M22 24 L42 24"
|
|
86
|
+
stroke={color}
|
|
87
|
+
strokeWidth="2"
|
|
88
|
+
strokeLinecap="round"
|
|
89
|
+
opacity={0.6}
|
|
90
|
+
/>
|
|
91
|
+
<Path
|
|
92
|
+
d="M22 32 L38 32"
|
|
93
|
+
stroke={color}
|
|
94
|
+
strokeWidth="2"
|
|
95
|
+
strokeLinecap="round"
|
|
96
|
+
opacity={0.6}
|
|
97
|
+
/>
|
|
98
|
+
<Path
|
|
99
|
+
d="M22 40 L40 40"
|
|
100
|
+
stroke={color}
|
|
101
|
+
strokeWidth="2"
|
|
102
|
+
strokeLinecap="round"
|
|
103
|
+
opacity={0.6}
|
|
104
|
+
/>
|
|
105
|
+
</AnimatedG>
|
|
106
|
+
|
|
107
|
+
{/* X mark overlay */}
|
|
108
|
+
<Path
|
|
109
|
+
d="M26 44 L38 56 M38 44 L26 56"
|
|
110
|
+
stroke={color}
|
|
111
|
+
strokeWidth="3"
|
|
112
|
+
strokeLinecap="round"
|
|
113
|
+
/>
|
|
114
|
+
|
|
115
|
+
{/* Warning dots */}
|
|
116
|
+
<Path
|
|
117
|
+
d="M28 28 L30 28 M34 28 L36 28"
|
|
118
|
+
stroke={color}
|
|
119
|
+
strokeWidth="2"
|
|
120
|
+
strokeLinecap="round"
|
|
121
|
+
opacity={0.4}
|
|
122
|
+
/>
|
|
123
|
+
</Svg>
|
|
124
|
+
);
|
|
125
|
+
};
|
|
126
|
+
|
|
127
|
+
export default AnimatedInvalidData;
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import React, { useEffect, useRef } from 'react';
|
|
2
|
+
import { View, Animated, StyleSheet } from 'react-native';
|
|
3
|
+
|
|
4
|
+
interface AnimatedServerErrorProps {
|
|
5
|
+
size?: number;
|
|
6
|
+
color?: string;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
const AnimatedServerError: React.FC<AnimatedServerErrorProps> = ({
|
|
10
|
+
size = 80,
|
|
11
|
+
color = '#F97316',
|
|
12
|
+
}) => {
|
|
13
|
+
const shakeAnim = useRef(new Animated.Value(0)).current;
|
|
14
|
+
|
|
15
|
+
useEffect(() => {
|
|
16
|
+
Animated.loop(
|
|
17
|
+
Animated.sequence([
|
|
18
|
+
Animated.timing(shakeAnim, {
|
|
19
|
+
toValue: -5,
|
|
20
|
+
duration: 100,
|
|
21
|
+
useNativeDriver: true,
|
|
22
|
+
}),
|
|
23
|
+
Animated.timing(shakeAnim, {
|
|
24
|
+
toValue: 5,
|
|
25
|
+
duration: 100,
|
|
26
|
+
useNativeDriver: true,
|
|
27
|
+
}),
|
|
28
|
+
Animated.timing(shakeAnim, {
|
|
29
|
+
toValue: -5,
|
|
30
|
+
duration: 100,
|
|
31
|
+
useNativeDriver: true,
|
|
32
|
+
}),
|
|
33
|
+
Animated.timing(shakeAnim, {
|
|
34
|
+
toValue: 0,
|
|
35
|
+
duration: 100,
|
|
36
|
+
useNativeDriver: true,
|
|
37
|
+
}),
|
|
38
|
+
Animated.delay(2000),
|
|
39
|
+
])
|
|
40
|
+
).start();
|
|
41
|
+
}, []);
|
|
42
|
+
|
|
43
|
+
return (
|
|
44
|
+
<View style={[styles.container, { width: size, height: size }]}>
|
|
45
|
+
<View
|
|
46
|
+
style={[
|
|
47
|
+
styles.iconBackground,
|
|
48
|
+
{
|
|
49
|
+
width: size,
|
|
50
|
+
height: size,
|
|
51
|
+
borderRadius: size / 2,
|
|
52
|
+
backgroundColor: `${color}15`,
|
|
53
|
+
},
|
|
54
|
+
]}
|
|
55
|
+
/>
|
|
56
|
+
<Animated.Text
|
|
57
|
+
style={[
|
|
58
|
+
styles.icon,
|
|
59
|
+
{
|
|
60
|
+
fontSize: size * 0.5,
|
|
61
|
+
transform: [{ translateX: shakeAnim }],
|
|
62
|
+
},
|
|
63
|
+
]}
|
|
64
|
+
>
|
|
65
|
+
🔌
|
|
66
|
+
</Animated.Text>
|
|
67
|
+
</View>
|
|
68
|
+
);
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
const styles = StyleSheet.create({
|
|
72
|
+
container: {
|
|
73
|
+
justifyContent: 'center',
|
|
74
|
+
alignItems: 'center',
|
|
75
|
+
position: 'relative',
|
|
76
|
+
},
|
|
77
|
+
iconBackground: {
|
|
78
|
+
position: 'absolute',
|
|
79
|
+
},
|
|
80
|
+
icon: {
|
|
81
|
+
textAlign: 'center',
|
|
82
|
+
},
|
|
83
|
+
});
|
|
84
|
+
|
|
85
|
+
export default AnimatedServerError;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// Error Animated Icons - Barrel Export
|
|
2
|
+
export { default as AnimatedCrash } from './AnimatedCrash';
|
|
3
|
+
export { default as AnimatedServerError } from './AnimatedServerError';
|
|
4
|
+
export { default as AnimatedClientError } from './AnimatedClientError';
|
|
5
|
+
export { default as AnimatedInvalidData } from './AnimatedInvalidData';
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import React, { useEffect, useRef } from 'react';
|
|
2
|
+
import { Animated, StyleSheet } from 'react-native';
|
|
3
|
+
|
|
4
|
+
interface AnimatedCalendarProps {
|
|
5
|
+
size?: number;
|
|
6
|
+
color?: string;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
const AnimatedCalendar: React.FC<AnimatedCalendarProps> = ({
|
|
10
|
+
size = 60,
|
|
11
|
+
color = '#3B82F6',
|
|
12
|
+
}) => {
|
|
13
|
+
const scaleAnim = useRef(new Animated.Value(1)).current;
|
|
14
|
+
|
|
15
|
+
useEffect(() => {
|
|
16
|
+
Animated.loop(
|
|
17
|
+
Animated.sequence([
|
|
18
|
+
Animated.timing(scaleAnim, {
|
|
19
|
+
toValue: 1.08,
|
|
20
|
+
duration: 1500,
|
|
21
|
+
useNativeDriver: true,
|
|
22
|
+
}),
|
|
23
|
+
Animated.timing(scaleAnim, {
|
|
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: scaleAnim }],
|
|
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 AnimatedCalendar;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import React, { useEffect, useRef } from 'react';
|
|
2
|
+
import { Animated, StyleSheet } from 'react-native';
|
|
3
|
+
|
|
4
|
+
interface AnimatedCameraProps {
|
|
5
|
+
size?: number;
|
|
6
|
+
color?: string;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
const AnimatedCamera: React.FC<AnimatedCameraProps> = ({
|
|
10
|
+
size = 60,
|
|
11
|
+
color = '#3B82F6',
|
|
12
|
+
}) => {
|
|
13
|
+
const scaleAnim = useRef(new Animated.Value(1)).current;
|
|
14
|
+
|
|
15
|
+
useEffect(() => {
|
|
16
|
+
Animated.loop(
|
|
17
|
+
Animated.sequence([
|
|
18
|
+
Animated.timing(scaleAnim, {
|
|
19
|
+
toValue: 1.07,
|
|
20
|
+
duration: 2000,
|
|
21
|
+
useNativeDriver: true,
|
|
22
|
+
}),
|
|
23
|
+
Animated.timing(scaleAnim, {
|
|
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: scaleAnim }],
|
|
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 AnimatedCamera;
|