@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,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface IconWithBadgeProps {
|
|
3
|
+
icon: React.ReactNode;
|
|
4
|
+
badge?: React.ReactNode;
|
|
5
|
+
size?: number;
|
|
6
|
+
iconBackgroundColor?: string;
|
|
7
|
+
badgeBackgroundColor?: string;
|
|
8
|
+
backgroundColor?: string;
|
|
9
|
+
showBadge?: boolean;
|
|
10
|
+
}
|
|
11
|
+
declare const IconWithBadge: React.FC<IconWithBadgeProps>;
|
|
12
|
+
export default IconWithBadge;
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useEffect, useRef } from 'react';
|
|
3
|
+
import { View, StyleSheet, Animated } from 'react-native';
|
|
4
|
+
const IconWithBadge = ({ icon, badge, size = 120, iconBackgroundColor, badgeBackgroundColor, backgroundColor, // Deprecated
|
|
5
|
+
showBadge = true, }) => {
|
|
6
|
+
// Use iconBackgroundColor if provided, otherwise fall back to backgroundColor
|
|
7
|
+
const finalIconBg = iconBackgroundColor || backgroundColor || '#FEF3C7';
|
|
8
|
+
const badgeAnim = useRef(new Animated.Value(0)).current;
|
|
9
|
+
const iconAnim = useRef(new Animated.Value(0)).current;
|
|
10
|
+
useEffect(() => {
|
|
11
|
+
// Icon entrance animation
|
|
12
|
+
Animated.spring(iconAnim, {
|
|
13
|
+
toValue: 1,
|
|
14
|
+
tension: 50,
|
|
15
|
+
friction: 7,
|
|
16
|
+
useNativeDriver: true,
|
|
17
|
+
}).start();
|
|
18
|
+
// Badge slide-in animation (delayed)
|
|
19
|
+
if (showBadge && badge) {
|
|
20
|
+
Animated.sequence([
|
|
21
|
+
Animated.delay(300),
|
|
22
|
+
Animated.spring(badgeAnim, {
|
|
23
|
+
toValue: 1,
|
|
24
|
+
tension: 50,
|
|
25
|
+
friction: 7,
|
|
26
|
+
useNativeDriver: true,
|
|
27
|
+
}),
|
|
28
|
+
]).start();
|
|
29
|
+
}
|
|
30
|
+
}, [showBadge, badge]);
|
|
31
|
+
const badgeSize = size * 0.4;
|
|
32
|
+
const finalBadgeBg = badgeBackgroundColor || '#FFFFFF';
|
|
33
|
+
return (_jsxs(View, { style: [styles.container, { width: size, height: size }], children: [_jsx(Animated.View, { style: [
|
|
34
|
+
styles.background,
|
|
35
|
+
{
|
|
36
|
+
width: size,
|
|
37
|
+
height: size,
|
|
38
|
+
borderRadius: size / 2,
|
|
39
|
+
backgroundColor: finalIconBg,
|
|
40
|
+
opacity: iconAnim,
|
|
41
|
+
transform: [
|
|
42
|
+
{
|
|
43
|
+
scale: iconAnim.interpolate({
|
|
44
|
+
inputRange: [0, 1],
|
|
45
|
+
outputRange: [0.8, 1],
|
|
46
|
+
}),
|
|
47
|
+
},
|
|
48
|
+
],
|
|
49
|
+
},
|
|
50
|
+
] }), _jsx(Animated.View, { style: [
|
|
51
|
+
styles.iconContainer,
|
|
52
|
+
{
|
|
53
|
+
opacity: iconAnim,
|
|
54
|
+
transform: [
|
|
55
|
+
{
|
|
56
|
+
scale: iconAnim.interpolate({
|
|
57
|
+
inputRange: [0, 1],
|
|
58
|
+
outputRange: [0.5, 1],
|
|
59
|
+
}),
|
|
60
|
+
},
|
|
61
|
+
],
|
|
62
|
+
},
|
|
63
|
+
], children: icon }), showBadge && badge && (_jsx(Animated.View, { style: [
|
|
64
|
+
styles.badge,
|
|
65
|
+
{
|
|
66
|
+
width: badgeSize,
|
|
67
|
+
height: badgeSize,
|
|
68
|
+
borderRadius: badgeSize / 2,
|
|
69
|
+
backgroundColor: finalBadgeBg,
|
|
70
|
+
opacity: badgeAnim,
|
|
71
|
+
transform: [
|
|
72
|
+
{
|
|
73
|
+
translateX: badgeAnim.interpolate({
|
|
74
|
+
inputRange: [0, 1],
|
|
75
|
+
outputRange: [20, 0],
|
|
76
|
+
}),
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
translateY: badgeAnim.interpolate({
|
|
80
|
+
inputRange: [0, 1],
|
|
81
|
+
outputRange: [20, 0],
|
|
82
|
+
}),
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
scale: badgeAnim.interpolate({
|
|
86
|
+
inputRange: [0, 1],
|
|
87
|
+
outputRange: [0.5, 1],
|
|
88
|
+
}),
|
|
89
|
+
},
|
|
90
|
+
],
|
|
91
|
+
},
|
|
92
|
+
], children: badge }))] }));
|
|
93
|
+
};
|
|
94
|
+
const styles = StyleSheet.create({
|
|
95
|
+
container: {
|
|
96
|
+
position: 'relative',
|
|
97
|
+
justifyContent: 'center',
|
|
98
|
+
alignItems: 'center',
|
|
99
|
+
},
|
|
100
|
+
background: {
|
|
101
|
+
position: 'absolute',
|
|
102
|
+
},
|
|
103
|
+
iconContainer: {
|
|
104
|
+
justifyContent: 'center',
|
|
105
|
+
alignItems: 'center',
|
|
106
|
+
},
|
|
107
|
+
badge: {
|
|
108
|
+
position: 'absolute',
|
|
109
|
+
bottom: 0,
|
|
110
|
+
right: 0,
|
|
111
|
+
justifyContent: 'center',
|
|
112
|
+
alignItems: 'center',
|
|
113
|
+
shadowColor: '#000',
|
|
114
|
+
shadowOffset: { width: 0, height: 2 },
|
|
115
|
+
shadowOpacity: 0.1,
|
|
116
|
+
shadowRadius: 8,
|
|
117
|
+
elevation: 4,
|
|
118
|
+
},
|
|
119
|
+
});
|
|
120
|
+
export default IconWithBadge;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import Svg, { Path, Circle } from 'react-native-svg';
|
|
3
|
+
const SettingsIcon = ({ size = 24, color = 'currentColor' }) => (_jsxs(Svg, { width: size, height: size, viewBox: "0 0 24 24", fill: "none", stroke: color, strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", children: [_jsx(Circle, { cx: "12", cy: "12", r: "3" }), _jsx(Path, { d: "M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z" })] }));
|
|
4
|
+
export default SettingsIcon;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import Svg, { Path } from 'react-native-svg';
|
|
3
|
+
const ShieldIcon = ({ size = 24, color = 'currentColor' }) => (_jsx(Svg, { width: size, height: size, viewBox: "0 0 24 24", fill: "none", stroke: color, strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", children: _jsx(Path, { d: "M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z" }) }));
|
|
4
|
+
export default ShieldIcon;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface IconProps {
|
|
3
|
+
size?: number;
|
|
4
|
+
color?: string;
|
|
5
|
+
}
|
|
6
|
+
export declare const ShieldIcon: React.FC<IconProps>;
|
|
7
|
+
export declare const SettingsIcon: React.FC<IconProps>;
|
|
8
|
+
export declare const CheckCircleIcon: React.FC<IconProps>;
|
|
9
|
+
export declare const AlertTriangleIcon: React.FC<IconProps>;
|
|
10
|
+
export declare const DownloadIcon: React.FC<IconProps>;
|
|
11
|
+
export declare const XIcon: React.FC<IconProps>;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import Svg, { Path, Circle } from 'react-native-svg';
|
|
3
|
+
export const ShieldIcon = ({ size = 24, color = 'currentColor' }) => (_jsx(Svg, { width: size, height: size, viewBox: "0 0 24 24", fill: "none", stroke: color, strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", children: _jsx(Path, { d: "M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z" }) }));
|
|
4
|
+
export const SettingsIcon = ({ size = 24, color = 'currentColor' }) => (_jsxs(Svg, { width: size, height: size, viewBox: "0 0 24 24", fill: "none", stroke: color, strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", children: [_jsx(Circle, { cx: "12", cy: "12", r: "3" }), _jsx(Path, { d: "M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z" })] }));
|
|
5
|
+
export const CheckCircleIcon = ({ size = 24, color = 'currentColor' }) => (_jsxs(Svg, { width: size, height: size, viewBox: "0 0 24 24", fill: "none", stroke: color, strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", children: [_jsx(Path, { d: "M22 11.08V12a10 10 0 1 1-5.93-9.14" }), _jsx(Path, { d: "M22 4L12 14.01l-3-3" })] }));
|
|
6
|
+
export const AlertTriangleIcon = ({ size = 24, color = 'currentColor' }) => (_jsxs(Svg, { width: size, height: size, viewBox: "0 0 24 24", fill: "none", stroke: color, strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", children: [_jsx(Path, { d: "M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z" }), _jsx(Path, { d: "M12 9v4" }), _jsx(Path, { d: "M12 17h.01" })] }));
|
|
7
|
+
export const DownloadIcon = ({ size = 24, color = 'currentColor' }) => (_jsxs(Svg, { width: size, height: size, viewBox: "0 0 24 24", fill: "none", stroke: color, strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", children: [_jsx(Path, { d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" }), _jsx(Path, { d: "M7 10l5 5 5-5" }), _jsx(Path, { d: "M12 15V3" })] }));
|
|
8
|
+
export const XIcon = ({ size = 24, color = 'currentColor' }) => (_jsxs(Svg, { width: size, height: size, viewBox: "0 0 24 24", fill: "none", stroke: color, strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", children: [_jsx(Path, { d: "M18 6L6 18" }), _jsx(Path, { d: "M6 6l12 12" })] }));
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import Svg, { Path } from 'react-native-svg';
|
|
3
|
+
const XIcon = ({ size = 24, color = 'currentColor' }) => (_jsxs(Svg, { width: size, height: size, viewBox: "0 0 24 24", fill: "none", stroke: color, strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", children: [_jsx(Path, { d: "M18 6L6 18" }), _jsx(Path, { d: "M6 6l12 12" })] }));
|
|
4
|
+
export default XIcon;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { default as IconWithBadge } from './IconWithBadge';
|
|
2
|
+
export { default as DownloadIcon } from './DownloadIcon';
|
|
3
|
+
export { default as XIcon } from './XIcon';
|
|
4
|
+
export { default as ShieldIcon } from './ShieldIcon';
|
|
5
|
+
export { default as SettingsIcon } from './SettingsIcon';
|
|
6
|
+
export { default as CheckCircleIcon } from './CheckCircleIcon';
|
|
7
|
+
export { default as AlertTriangleIcon } from './AlertTriangleIcon';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
// Icon Utilities - Barrel Export
|
|
2
|
+
export { default as IconWithBadge } from './IconWithBadge';
|
|
3
|
+
export { default as DownloadIcon } from './DownloadIcon';
|
|
4
|
+
export { default as XIcon } from './XIcon';
|
|
5
|
+
export { default as ShieldIcon } from './ShieldIcon';
|
|
6
|
+
export { default as SettingsIcon } from './SettingsIcon';
|
|
7
|
+
export { default as CheckCircleIcon } from './CheckCircleIcon';
|
|
8
|
+
export { default as AlertTriangleIcon } from './AlertTriangleIcon';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// Components - Barrel Export
|
|
2
|
+
export * from './buttons';
|
|
3
|
+
export * from './cards';
|
|
4
|
+
export * from './layout';
|
|
5
|
+
export * from './feedback';
|
|
6
|
+
export * from './lists';
|
|
7
|
+
export * from './support';
|
|
8
|
+
export * from './timers';
|
|
9
|
+
export * from './status';
|
|
10
|
+
export * from './icons';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { ThemeColors } from '../../types';
|
|
3
|
+
interface DualButtonLayoutProps {
|
|
4
|
+
primaryText: string;
|
|
5
|
+
primaryAction: () => void;
|
|
6
|
+
primaryIcon?: string;
|
|
7
|
+
secondaryText: string;
|
|
8
|
+
secondaryAction: () => void;
|
|
9
|
+
secondaryIcon?: string;
|
|
10
|
+
layout?: 'horizontal' | 'vertical';
|
|
11
|
+
theme?: ThemeColors;
|
|
12
|
+
}
|
|
13
|
+
declare const DualButtonLayout: React.FC<DualButtonLayoutProps>;
|
|
14
|
+
export default DualButtonLayout;
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { View, Text, TouchableOpacity, StyleSheet } from 'react-native';
|
|
3
|
+
const DualButtonLayout = ({ primaryText, primaryAction, primaryIcon = '🔄', secondaryText, secondaryAction, secondaryIcon = '🏠', layout = 'horizontal', theme, }) => {
|
|
4
|
+
const primaryColor = theme?.primary || '#2563EB';
|
|
5
|
+
return (_jsxs(View, { style: [styles.container, layout === 'vertical' ? styles.verticalContainer : undefined], children: [_jsxs(TouchableOpacity, { style: [
|
|
6
|
+
styles.primaryButton,
|
|
7
|
+
{ backgroundColor: primaryColor },
|
|
8
|
+
layout === 'vertical' && styles.fullWidth,
|
|
9
|
+
], onPress: primaryAction, activeOpacity: 0.8, children: [_jsx(Text, { style: styles.primaryIcon, children: primaryIcon }), _jsx(Text, { style: styles.primaryText, children: primaryText })] }), _jsxs(TouchableOpacity, { style: [
|
|
10
|
+
styles.secondaryButton,
|
|
11
|
+
layout === 'vertical' && styles.fullWidth,
|
|
12
|
+
], onPress: secondaryAction, activeOpacity: 0.8, children: [_jsx(Text, { style: styles.secondaryIcon, children: secondaryIcon }), _jsx(Text, { style: styles.secondaryText, children: secondaryText })] })] }));
|
|
13
|
+
};
|
|
14
|
+
const styles = StyleSheet.create({
|
|
15
|
+
container: {
|
|
16
|
+
flexDirection: 'row',
|
|
17
|
+
gap: 12,
|
|
18
|
+
marginTop: 24,
|
|
19
|
+
paddingHorizontal: 20,
|
|
20
|
+
},
|
|
21
|
+
verticalContainer: {
|
|
22
|
+
flexDirection: 'column',
|
|
23
|
+
gap: 12,
|
|
24
|
+
},
|
|
25
|
+
fullWidth: {
|
|
26
|
+
width: '100%',
|
|
27
|
+
},
|
|
28
|
+
primaryButton: {
|
|
29
|
+
flex: 1,
|
|
30
|
+
flexDirection: 'row',
|
|
31
|
+
alignItems: 'center',
|
|
32
|
+
justifyContent: 'center',
|
|
33
|
+
paddingVertical: 14,
|
|
34
|
+
paddingHorizontal: 20,
|
|
35
|
+
borderRadius: 12,
|
|
36
|
+
gap: 8,
|
|
37
|
+
shadowColor: '#000',
|
|
38
|
+
shadowOffset: { width: 0, height: 2 },
|
|
39
|
+
shadowOpacity: 0.1,
|
|
40
|
+
shadowRadius: 4,
|
|
41
|
+
elevation: 2,
|
|
42
|
+
},
|
|
43
|
+
primaryIcon: {
|
|
44
|
+
fontSize: 18,
|
|
45
|
+
},
|
|
46
|
+
primaryText: {
|
|
47
|
+
color: '#FFFFFF',
|
|
48
|
+
fontSize: 16,
|
|
49
|
+
fontWeight: '600',
|
|
50
|
+
},
|
|
51
|
+
secondaryButton: {
|
|
52
|
+
flex: 1,
|
|
53
|
+
flexDirection: 'row',
|
|
54
|
+
alignItems: 'center',
|
|
55
|
+
justifyContent: 'center',
|
|
56
|
+
paddingVertical: 14,
|
|
57
|
+
paddingHorizontal: 20,
|
|
58
|
+
borderRadius: 12,
|
|
59
|
+
gap: 8,
|
|
60
|
+
backgroundColor: '#FFFFFF',
|
|
61
|
+
borderWidth: 1.5,
|
|
62
|
+
borderColor: '#E5E7EB',
|
|
63
|
+
},
|
|
64
|
+
secondaryIcon: {
|
|
65
|
+
fontSize: 18,
|
|
66
|
+
},
|
|
67
|
+
secondaryText: {
|
|
68
|
+
color: '#374151',
|
|
69
|
+
fontSize: 16,
|
|
70
|
+
fontWeight: '600',
|
|
71
|
+
},
|
|
72
|
+
});
|
|
73
|
+
export default DualButtonLayout;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ViewStyle } from 'react-native';
|
|
3
|
+
/**
|
|
4
|
+
* ResponsiveLayout Component
|
|
5
|
+
*
|
|
6
|
+
* Provides responsive layout utilities that adapt to different screen sizes.
|
|
7
|
+
* Prevents content overflow and ensures proper spacing on mobile devices.
|
|
8
|
+
*/
|
|
9
|
+
interface ResponsiveLayoutProps {
|
|
10
|
+
children: React.ReactNode;
|
|
11
|
+
maxWidth?: number;
|
|
12
|
+
horizontalPadding?: 'small' | 'medium' | 'large';
|
|
13
|
+
verticalPadding?: 'small' | 'medium' | 'large';
|
|
14
|
+
style?: ViewStyle;
|
|
15
|
+
}
|
|
16
|
+
export declare const ResponsiveLayout: React.FC<ResponsiveLayoutProps>;
|
|
17
|
+
/**
|
|
18
|
+
* Utility function to get responsive font size
|
|
19
|
+
*/
|
|
20
|
+
export declare const getResponsiveFontSize: (baseSize: number) => number;
|
|
21
|
+
/**
|
|
22
|
+
* Utility function to get responsive spacing
|
|
23
|
+
*/
|
|
24
|
+
export declare const getResponsiveSpacing: (baseSpacing: number) => number;
|
|
25
|
+
export default ResponsiveLayout;
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { View, StyleSheet, Dimensions, Platform } from 'react-native';
|
|
3
|
+
const PADDING_VALUES = {
|
|
4
|
+
small: 12,
|
|
5
|
+
medium: 24,
|
|
6
|
+
large: 32,
|
|
7
|
+
};
|
|
8
|
+
export const ResponsiveLayout = ({ children, maxWidth = 480, horizontalPadding = 'medium', verticalPadding = 'medium', style, }) => {
|
|
9
|
+
const { width, height } = Dimensions.get('window');
|
|
10
|
+
// Determine if we're on a small screen
|
|
11
|
+
const isSmallScreen = width < 375;
|
|
12
|
+
const isMobile = Platform.OS !== 'web' || width < 768;
|
|
13
|
+
// Adjust padding for small screens
|
|
14
|
+
const getHorizontalPadding = () => {
|
|
15
|
+
if (isSmallScreen)
|
|
16
|
+
return PADDING_VALUES.small;
|
|
17
|
+
return PADDING_VALUES[horizontalPadding];
|
|
18
|
+
};
|
|
19
|
+
const getVerticalPadding = () => {
|
|
20
|
+
if (isSmallScreen)
|
|
21
|
+
return PADDING_VALUES.small;
|
|
22
|
+
return PADDING_VALUES[verticalPadding];
|
|
23
|
+
};
|
|
24
|
+
return (_jsx(View, { style: [
|
|
25
|
+
styles.container,
|
|
26
|
+
{
|
|
27
|
+
paddingHorizontal: getHorizontalPadding(),
|
|
28
|
+
paddingVertical: getVerticalPadding(),
|
|
29
|
+
},
|
|
30
|
+
style,
|
|
31
|
+
], children: _jsx(View, { style: [
|
|
32
|
+
styles.content,
|
|
33
|
+
{
|
|
34
|
+
maxWidth: isMobile ? width - (getHorizontalPadding() * 2) : maxWidth,
|
|
35
|
+
width: '100%',
|
|
36
|
+
},
|
|
37
|
+
], children: children }) }));
|
|
38
|
+
};
|
|
39
|
+
const styles = StyleSheet.create({
|
|
40
|
+
container: {
|
|
41
|
+
flex: 1,
|
|
42
|
+
alignItems: 'center',
|
|
43
|
+
justifyContent: 'center',
|
|
44
|
+
},
|
|
45
|
+
content: {
|
|
46
|
+
width: '100%',
|
|
47
|
+
alignSelf: 'center',
|
|
48
|
+
},
|
|
49
|
+
});
|
|
50
|
+
/**
|
|
51
|
+
* Utility function to get responsive font size
|
|
52
|
+
*/
|
|
53
|
+
export const getResponsiveFontSize = (baseSize) => {
|
|
54
|
+
const { width } = Dimensions.get('window');
|
|
55
|
+
if (width < 375) {
|
|
56
|
+
// Small phones: reduce by 10%
|
|
57
|
+
return baseSize * 0.9;
|
|
58
|
+
}
|
|
59
|
+
else if (width > 768) {
|
|
60
|
+
// Tablets/Desktop: increase by 5%
|
|
61
|
+
return baseSize * 1.05;
|
|
62
|
+
}
|
|
63
|
+
return baseSize;
|
|
64
|
+
};
|
|
65
|
+
/**
|
|
66
|
+
* Utility function to get responsive spacing
|
|
67
|
+
*/
|
|
68
|
+
export const getResponsiveSpacing = (baseSpacing) => {
|
|
69
|
+
const { width } = Dimensions.get('window');
|
|
70
|
+
if (width < 375) {
|
|
71
|
+
// Small phones: reduce spacing
|
|
72
|
+
return baseSpacing * 0.75;
|
|
73
|
+
}
|
|
74
|
+
return baseSpacing;
|
|
75
|
+
};
|
|
76
|
+
export default ResponsiveLayout;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ViewStyle } from 'react-native';
|
|
3
|
+
import type { SafeAreaEdge } from '../../types';
|
|
4
|
+
/**
|
|
5
|
+
* SafeAreaWrapper Component
|
|
6
|
+
*
|
|
7
|
+
* Cross-platform safe area wrapper that handles:
|
|
8
|
+
* - Mobile: Notches, status bars, navigation bars
|
|
9
|
+
* - Web: Fallback padding for consistent layout
|
|
10
|
+
*
|
|
11
|
+
* This ensures content doesn't overlap with system UI elements
|
|
12
|
+
* and provides consistent spacing across platforms.
|
|
13
|
+
*/
|
|
14
|
+
interface SafeAreaWrapperProps {
|
|
15
|
+
children: React.ReactNode;
|
|
16
|
+
edges?: SafeAreaEdge[];
|
|
17
|
+
style?: ViewStyle;
|
|
18
|
+
backgroundColor?: string;
|
|
19
|
+
}
|
|
20
|
+
export declare const SafeAreaWrapper: React.FC<SafeAreaWrapperProps>;
|
|
21
|
+
export default SafeAreaWrapper;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { View, StyleSheet, Platform } from 'react-native';
|
|
3
|
+
export const SafeAreaWrapper = ({ children, edges = ['top', 'bottom', 'left', 'right'], style, backgroundColor = '#FFFFFF', }) => {
|
|
4
|
+
// Calculate safe area padding based on platform
|
|
5
|
+
const getSafeAreaPadding = () => {
|
|
6
|
+
const padding = {};
|
|
7
|
+
if (Platform.OS === 'web') {
|
|
8
|
+
// Web fallback: Use standard padding
|
|
9
|
+
if (edges.includes('top'))
|
|
10
|
+
padding.paddingTop = 0;
|
|
11
|
+
if (edges.includes('bottom'))
|
|
12
|
+
padding.paddingBottom = 0;
|
|
13
|
+
if (edges.includes('left'))
|
|
14
|
+
padding.paddingLeft = 0;
|
|
15
|
+
if (edges.includes('right'))
|
|
16
|
+
padding.paddingRight = 0;
|
|
17
|
+
}
|
|
18
|
+
else {
|
|
19
|
+
// Mobile: Use safe area insets
|
|
20
|
+
// Note: In a real implementation, you would use react-native-safe-area-context
|
|
21
|
+
// For now, we'll use reasonable defaults
|
|
22
|
+
if (edges.includes('top'))
|
|
23
|
+
padding.paddingTop = 44; // Status bar height
|
|
24
|
+
if (edges.includes('bottom'))
|
|
25
|
+
padding.paddingBottom = 34; // Home indicator
|
|
26
|
+
if (edges.includes('left'))
|
|
27
|
+
padding.paddingLeft = 0;
|
|
28
|
+
if (edges.includes('right'))
|
|
29
|
+
padding.paddingRight = 0;
|
|
30
|
+
}
|
|
31
|
+
return padding;
|
|
32
|
+
};
|
|
33
|
+
return (_jsx(View, { style: [
|
|
34
|
+
styles.container,
|
|
35
|
+
{ backgroundColor },
|
|
36
|
+
getSafeAreaPadding(),
|
|
37
|
+
style,
|
|
38
|
+
], children: children }));
|
|
39
|
+
};
|
|
40
|
+
const styles = StyleSheet.create({
|
|
41
|
+
container: {
|
|
42
|
+
flex: 1,
|
|
43
|
+
},
|
|
44
|
+
});
|
|
45
|
+
export default SafeAreaWrapper;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ViewStyle } from 'react-native';
|
|
3
|
+
/**
|
|
4
|
+
* ScreenContainer Component
|
|
5
|
+
*
|
|
6
|
+
* Standardized container for all UI Kit screens.
|
|
7
|
+
* Provides consistent layout, spacing, and SafeArea support.
|
|
8
|
+
*/
|
|
9
|
+
interface ScreenContainerProps {
|
|
10
|
+
children: React.ReactNode;
|
|
11
|
+
backgroundColor?: string;
|
|
12
|
+
style?: ViewStyle;
|
|
13
|
+
}
|
|
14
|
+
export declare const ScreenContainer: React.FC<ScreenContainerProps>;
|
|
15
|
+
export default ScreenContainer;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { View, ScrollView, StyleSheet } from 'react-native';
|
|
3
|
+
import SafeAreaWrapper from './SafeAreaWrapper';
|
|
4
|
+
export const ScreenContainer = ({ children, backgroundColor = '#F9FAFB', style, }) => {
|
|
5
|
+
return (_jsx(SafeAreaWrapper, { backgroundColor: backgroundColor, children: _jsx(ScrollView, { contentContainerStyle: styles.scrollContent, showsVerticalScrollIndicator: false, style: style, children: _jsx(View, { style: styles.content, children: children }) }) }));
|
|
6
|
+
};
|
|
7
|
+
const styles = StyleSheet.create({
|
|
8
|
+
scrollContent: {
|
|
9
|
+
flexGrow: 1,
|
|
10
|
+
justifyContent: 'center',
|
|
11
|
+
paddingHorizontal: 24,
|
|
12
|
+
paddingVertical: 32,
|
|
13
|
+
},
|
|
14
|
+
content: {
|
|
15
|
+
alignItems: 'center',
|
|
16
|
+
maxWidth: 480,
|
|
17
|
+
width: '100%',
|
|
18
|
+
alignSelf: 'center',
|
|
19
|
+
},
|
|
20
|
+
});
|
|
21
|
+
export default ScreenContainer;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// Layout - Barrel Export
|
|
2
|
+
export { default as ScreenContainer } from './ScreenContainer';
|
|
3
|
+
export { default as SafeAreaWrapper } from './SafeAreaWrapper';
|
|
4
|
+
export { default as ResponsiveLayout } from './ResponsiveLayout';
|
|
5
|
+
export { default as DualButtonLayout } from './DualButtonLayout';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* CheckListItem Component
|
|
4
|
+
*
|
|
5
|
+
* List item with icon (typically checkmark) and text.
|
|
6
|
+
* Used for displaying status lists and feature lists.
|
|
7
|
+
*/
|
|
8
|
+
interface CheckListItemProps {
|
|
9
|
+
text: string;
|
|
10
|
+
icon?: React.ReactNode;
|
|
11
|
+
iconColor?: string;
|
|
12
|
+
}
|
|
13
|
+
export declare const CheckListItem: React.FC<CheckListItemProps>;
|
|
14
|
+
export default CheckListItem;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { View, Text, StyleSheet } from 'react-native';
|
|
3
|
+
export const CheckListItem = ({ text, icon, iconColor = '#10B981', }) => {
|
|
4
|
+
// Default checkmark icon if none provided
|
|
5
|
+
const defaultIcon = (_jsx(View, { style: [styles.defaultIcon, { backgroundColor: iconColor }], children: _jsx(Text, { style: styles.checkmark, children: "\u2713" }) }));
|
|
6
|
+
return (_jsxs(View, { style: styles.container, children: [_jsx(View, { style: styles.iconContainer, children: icon || defaultIcon }), _jsx(Text, { style: styles.text, children: text })] }));
|
|
7
|
+
};
|
|
8
|
+
const styles = StyleSheet.create({
|
|
9
|
+
container: {
|
|
10
|
+
flexDirection: 'row',
|
|
11
|
+
alignItems: 'flex-start',
|
|
12
|
+
marginBottom: 12,
|
|
13
|
+
},
|
|
14
|
+
iconContainer: {
|
|
15
|
+
width: 24,
|
|
16
|
+
height: 24,
|
|
17
|
+
marginRight: 12,
|
|
18
|
+
justifyContent: 'center',
|
|
19
|
+
alignItems: 'center',
|
|
20
|
+
},
|
|
21
|
+
defaultIcon: {
|
|
22
|
+
width: 20,
|
|
23
|
+
height: 20,
|
|
24
|
+
borderRadius: 10,
|
|
25
|
+
justifyContent: 'center',
|
|
26
|
+
alignItems: 'center',
|
|
27
|
+
},
|
|
28
|
+
checkmark: {
|
|
29
|
+
color: '#FFFFFF',
|
|
30
|
+
fontSize: 12,
|
|
31
|
+
fontWeight: '700',
|
|
32
|
+
},
|
|
33
|
+
text: {
|
|
34
|
+
flex: 1,
|
|
35
|
+
fontSize: 14,
|
|
36
|
+
color: '#6B7280',
|
|
37
|
+
lineHeight: 20,
|
|
38
|
+
},
|
|
39
|
+
});
|
|
40
|
+
export default CheckListItem;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface StatusCheckListProps {
|
|
3
|
+
messages: string[];
|
|
4
|
+
title?: string;
|
|
5
|
+
backgroundColor?: string;
|
|
6
|
+
borderColor?: string;
|
|
7
|
+
checkColor?: string;
|
|
8
|
+
}
|
|
9
|
+
declare const StatusCheckList: React.FC<StatusCheckListProps>;
|
|
10
|
+
export default StatusCheckList;
|