@procivis/one-react-native-components 0.1.63
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/LICENSE +201 -0
- package/README.md +66 -0
- package/lib/commonjs/accessibility/accessibility.js +193 -0
- package/lib/commonjs/accessibility/accessibility.js.map +1 -0
- package/lib/commonjs/accessibility/accessibilityHistory.js +81 -0
- package/lib/commonjs/accessibility/accessibilityHistory.js.map +1 -0
- package/lib/commonjs/accessibility/accessibilityHistoryWrappers.js +49 -0
- package/lib/commonjs/accessibility/accessibilityHistoryWrappers.js.map +1 -0
- package/lib/commonjs/accessibility/accessibilityLanguage.js +63 -0
- package/lib/commonjs/accessibility/accessibilityLanguage.js.map +1 -0
- package/lib/commonjs/accessibility/index.js +129 -0
- package/lib/commonjs/accessibility/index.js.map +1 -0
- package/lib/commonjs/accessibility/locale/de.json +21 -0
- package/lib/commonjs/accessibility/locale/en.json +21 -0
- package/lib/commonjs/accessibility/locale/fr.json +21 -0
- package/lib/commonjs/accessibility/locale/index.js +21 -0
- package/lib/commonjs/accessibility/locale/index.js.map +1 -0
- package/lib/commonjs/accessibility/locale/it.json +21 -0
- package/lib/commonjs/accessibility/locale.test.js +15 -0
- package/lib/commonjs/accessibility/locale.test.js.map +1 -0
- package/lib/commonjs/action-modal/ActionModal.js +52 -0
- package/lib/commonjs/action-modal/ActionModal.js.map +1 -0
- package/lib/commonjs/action-modal/index.js +14 -0
- package/lib/commonjs/action-modal/index.js.map +1 -0
- package/lib/commonjs/activity-indicator/activity-indicator.js +34 -0
- package/lib/commonjs/activity-indicator/activity-indicator.js.map +1 -0
- package/lib/commonjs/activity-indicator/index.js +14 -0
- package/lib/commonjs/activity-indicator/index.js.map +1 -0
- package/lib/commonjs/blur/blur-view.js +76 -0
- package/lib/commonjs/blur/blur-view.js.map +1 -0
- package/lib/commonjs/blur/index.js +21 -0
- package/lib/commonjs/blur/index.js.map +1 -0
- package/lib/commonjs/buttons/back-button.js +37 -0
- package/lib/commonjs/buttons/back-button.js.map +1 -0
- package/lib/commonjs/buttons/button.js +153 -0
- package/lib/commonjs/buttons/button.js.map +1 -0
- package/lib/commonjs/buttons/connectivity-button.js +82 -0
- package/lib/commonjs/buttons/connectivity-button.js.map +1 -0
- package/lib/commonjs/buttons/filter-button.js +51 -0
- package/lib/commonjs/buttons/filter-button.js.map +1 -0
- package/lib/commonjs/buttons/ghost-button.js +62 -0
- package/lib/commonjs/buttons/ghost-button.js.map +1 -0
- package/lib/commonjs/buttons/index.js +104 -0
- package/lib/commonjs/buttons/index.js.map +1 -0
- package/lib/commonjs/buttons/scan-button.js +83 -0
- package/lib/commonjs/buttons/scan-button.js.map +1 -0
- package/lib/commonjs/camera/camera-overlay.js +61 -0
- package/lib/commonjs/camera/camera-overlay.js.map +1 -0
- package/lib/commonjs/camera/index.js +21 -0
- package/lib/commonjs/camera/index.js.map +1 -0
- package/lib/commonjs/camera/qr-code-scanner.js +50 -0
- package/lib/commonjs/camera/qr-code-scanner.js.map +1 -0
- package/lib/commonjs/control/checkbox.js +79 -0
- package/lib/commonjs/control/checkbox.js.map +1 -0
- package/lib/commonjs/control/index.js +32 -0
- package/lib/commonjs/control/index.js.map +1 -0
- package/lib/commonjs/control/switch.js +65 -0
- package/lib/commonjs/control/switch.js.map +1 -0
- package/lib/commonjs/credential/card/credential-card.js +189 -0
- package/lib/commonjs/credential/card/credential-card.js.map +1 -0
- package/lib/commonjs/credential/card/credential-details-card.js +201 -0
- package/lib/commonjs/credential/card/credential-details-card.js.map +1 -0
- package/lib/commonjs/credential/card/credential-details-list-item.js +84 -0
- package/lib/commonjs/credential/card/credential-details-list-item.js.map +1 -0
- package/lib/commonjs/credential/card/credential-header.js +172 -0
- package/lib/commonjs/credential/card/credential-header.js.map +1 -0
- package/lib/commonjs/credential/card/credential-image-carousel.js +124 -0
- package/lib/commonjs/credential/card/credential-image-carousel.js.map +1 -0
- package/lib/commonjs/credential/card/index.js +85 -0
- package/lib/commonjs/credential/card/index.js.map +1 -0
- package/lib/commonjs/credential/credential-attribute-item.js +289 -0
- package/lib/commonjs/credential/credential-attribute-item.js.map +1 -0
- package/lib/commonjs/credential/credential-carousel-images.js +98 -0
- package/lib/commonjs/credential/credential-carousel-images.js.map +1 -0
- package/lib/commonjs/credential/index.js +90 -0
- package/lib/commonjs/credential/index.js.map +1 -0
- package/lib/commonjs/credential/selector-status.js +17 -0
- package/lib/commonjs/credential/selector-status.js.map +1 -0
- package/lib/commonjs/credential/selector.js +79 -0
- package/lib/commonjs/credential/selector.js.map +1 -0
- package/lib/commonjs/detail/detail.js +84 -0
- package/lib/commonjs/detail/detail.js.map +1 -0
- package/lib/commonjs/detail/index.js +14 -0
- package/lib/commonjs/detail/index.js.map +1 -0
- package/lib/commonjs/entity/avatar.js +96 -0
- package/lib/commonjs/entity/avatar.js.map +1 -0
- package/lib/commonjs/entity/entity-cluster.js +66 -0
- package/lib/commonjs/entity/entity-cluster.js.map +1 -0
- package/lib/commonjs/entity/index.js +34 -0
- package/lib/commonjs/entity/index.js.map +1 -0
- package/lib/commonjs/header/focus-aware-status-bar.js +20 -0
- package/lib/commonjs/header/focus-aware-status-bar.js.map +1 -0
- package/lib/commonjs/header/foldable-header.js +89 -0
- package/lib/commonjs/header/foldable-header.js.map +1 -0
- package/lib/commonjs/header/header.js +105 -0
- package/lib/commonjs/header/header.js.map +1 -0
- package/lib/commonjs/header/index.js +55 -0
- package/lib/commonjs/header/index.js.map +1 -0
- package/lib/commonjs/header/navigation-header.js +148 -0
- package/lib/commonjs/header/navigation-header.js.map +1 -0
- package/lib/commonjs/history/data-item.js +70 -0
- package/lib/commonjs/history/data-item.js.map +1 -0
- package/lib/commonjs/history/history-list-item.js +90 -0
- package/lib/commonjs/history/history-list-item.js.map +1 -0
- package/lib/commonjs/history/history-section-header.js +49 -0
- package/lib/commonjs/history/history-section-header.js.map +1 -0
- package/lib/commonjs/history/history-section-list-item.js +47 -0
- package/lib/commonjs/history/history-section-list-item.js.map +1 -0
- package/lib/commonjs/history/index.js +55 -0
- package/lib/commonjs/history/index.js.map +1 -0
- package/lib/commonjs/icons/connectivity.js +139 -0
- package/lib/commonjs/icons/connectivity.js.map +1 -0
- package/lib/commonjs/icons/credential.js +162 -0
- package/lib/commonjs/icons/credential.js.map +1 -0
- package/lib/commonjs/icons/entity.js +34 -0
- package/lib/commonjs/icons/entity.js.map +1 -0
- package/lib/commonjs/icons/history.js +408 -0
- package/lib/commonjs/icons/history.js.map +1 -0
- package/lib/commonjs/icons/icons.js +250 -0
- package/lib/commonjs/icons/icons.js.map +1 -0
- package/lib/commonjs/icons/index.js +127 -0
- package/lib/commonjs/icons/index.js.map +1 -0
- package/lib/commonjs/icons/input.js +44 -0
- package/lib/commonjs/icons/input.js.map +1 -0
- package/lib/commonjs/icons/keypad.js +94 -0
- package/lib/commonjs/icons/keypad.js.map +1 -0
- package/lib/commonjs/icons/loader.js +180 -0
- package/lib/commonjs/icons/loader.js.map +1 -0
- package/lib/commonjs/icons/nerd-view.js +123 -0
- package/lib/commonjs/icons/nerd-view.js.map +1 -0
- package/lib/commonjs/icons/selector.js +56 -0
- package/lib/commonjs/icons/selector.js.map +1 -0
- package/lib/commonjs/icons/wallet.js +121 -0
- package/lib/commonjs/icons/wallet.js.map +1 -0
- package/lib/commonjs/image/image-or-component.js +80 -0
- package/lib/commonjs/image/image-or-component.js.map +1 -0
- package/lib/commonjs/image/index.js +21 -0
- package/lib/commonjs/image/index.js.map +1 -0
- package/lib/commonjs/index.js +292 -0
- package/lib/commonjs/index.js.map +1 -0
- package/lib/commonjs/input/index.js +65 -0
- package/lib/commonjs/input/index.js.map +1 -0
- package/lib/commonjs/input/radio-group.js +95 -0
- package/lib/commonjs/input/radio-group.js.map +1 -0
- package/lib/commonjs/input/selection-input.js +102 -0
- package/lib/commonjs/input/selection-input.js.map +1 -0
- package/lib/commonjs/input/text-input.js +195 -0
- package/lib/commonjs/input/text-input.js.map +1 -0
- package/lib/commonjs/list/index.js +34 -0
- package/lib/commonjs/list/index.js.map +1 -0
- package/lib/commonjs/list/list-section-header.js +36 -0
- package/lib/commonjs/list/list-section-header.js.map +1 -0
- package/lib/commonjs/list/list-title-header.js +35 -0
- package/lib/commonjs/list/list-title-header.js.map +1 -0
- package/lib/commonjs/loader/index.js +40 -0
- package/lib/commonjs/loader/index.js.map +1 -0
- package/lib/commonjs/loader/loader.js +140 -0
- package/lib/commonjs/loader/loader.js.map +1 -0
- package/lib/commonjs/loader/loading-result.js +92 -0
- package/lib/commonjs/loader/loading-result.js.map +1 -0
- package/lib/commonjs/nerd-view/index.js +27 -0
- package/lib/commonjs/nerd-view/index.js.map +1 -0
- package/lib/commonjs/nerd-view/nerd-mode-item.js +235 -0
- package/lib/commonjs/nerd-view/nerd-mode-item.js.map +1 -0
- package/lib/commonjs/normalize-color.d.js +2 -0
- package/lib/commonjs/normalize-color.d.js.map +1 -0
- package/lib/commonjs/pin/index.js +32 -0
- package/lib/commonjs/pin/index.js.map +1 -0
- package/lib/commonjs/pin/keypad.js +201 -0
- package/lib/commonjs/pin/keypad.js.map +1 -0
- package/lib/commonjs/pin/pin-code-screen.js +162 -0
- package/lib/commonjs/pin/pin-code-screen.js.map +1 -0
- package/lib/commonjs/pin/pins.js +54 -0
- package/lib/commonjs/pin/pins.js.map +1 -0
- package/lib/commonjs/screens/backup-screen.js +87 -0
- package/lib/commonjs/screens/backup-screen.js.map +1 -0
- package/lib/commonjs/screens/image-preview-screen.js +92 -0
- package/lib/commonjs/screens/image-preview-screen.js.map +1 -0
- package/lib/commonjs/screens/index.js +98 -0
- package/lib/commonjs/screens/index.js.map +1 -0
- package/lib/commonjs/screens/nerd-mode-screen.js +142 -0
- package/lib/commonjs/screens/nerd-mode-screen.js.map +1 -0
- package/lib/commonjs/screens/qr-code-scanner-screen.js +120 -0
- package/lib/commonjs/screens/qr-code-scanner-screen.js.map +1 -0
- package/lib/commonjs/screens/scroll-view-screen.js +94 -0
- package/lib/commonjs/screens/scroll-view-screen.js.map +1 -0
- package/lib/commonjs/screens/section-list-screen.js +67 -0
- package/lib/commonjs/screens/section-list-screen.js.map +1 -0
- package/lib/commonjs/searchbar/animated-search-bar.js +88 -0
- package/lib/commonjs/searchbar/animated-search-bar.js.map +1 -0
- package/lib/commonjs/searchbar/index.js +34 -0
- package/lib/commonjs/searchbar/index.js.map +1 -0
- package/lib/commonjs/searchbar/search-bar.js +99 -0
- package/lib/commonjs/searchbar/search-bar.js.map +1 -0
- package/lib/commonjs/settings/button-setting.js +67 -0
- package/lib/commonjs/settings/button-setting.js.map +1 -0
- package/lib/commonjs/settings/index.js +73 -0
- package/lib/commonjs/settings/index.js.map +1 -0
- package/lib/commonjs/settings/setting-item-separator.js +40 -0
- package/lib/commonjs/settings/setting-item-separator.js.map +1 -0
- package/lib/commonjs/settings/setting-item.js +79 -0
- package/lib/commonjs/settings/setting-item.js.map +1 -0
- package/lib/commonjs/settings/settings-button.js +35 -0
- package/lib/commonjs/settings/settings-button.js.map +1 -0
- package/lib/commonjs/settings/switch-setting.js +35 -0
- package/lib/commonjs/settings/switch-setting.js.map +1 -0
- package/lib/commonjs/state/error-screen.js +71 -0
- package/lib/commonjs/state/error-screen.js.map +1 -0
- package/lib/commonjs/state/index.js +27 -0
- package/lib/commonjs/state/index.js.map +1 -0
- package/lib/commonjs/text/base.js +40 -0
- package/lib/commonjs/text/base.js.map +1 -0
- package/lib/commonjs/text/font.js +64 -0
- package/lib/commonjs/text/font.js.map +1 -0
- package/lib/commonjs/text/index.js +21 -0
- package/lib/commonjs/text/index.js.map +1 -0
- package/lib/commonjs/text/typography.js +119 -0
- package/lib/commonjs/text/typography.js.map +1 -0
- package/lib/commonjs/theme/color-scheme-context.js +52 -0
- package/lib/commonjs/theme/color-scheme-context.js.map +1 -0
- package/lib/commonjs/theme/color-scheme.js +2 -0
- package/lib/commonjs/theme/color-scheme.js.map +1 -0
- package/lib/commonjs/theme/index.js +19 -0
- package/lib/commonjs/theme/index.js.map +1 -0
- package/lib/commonjs/utils/color.js +34 -0
- package/lib/commonjs/utils/color.js.map +1 -0
- package/lib/commonjs/utils/contrasting-status-bar.js +30 -0
- package/lib/commonjs/utils/contrasting-status-bar.js.map +1 -0
- package/lib/commonjs/utils/date.js +57 -0
- package/lib/commonjs/utils/date.js.map +1 -0
- package/lib/commonjs/utils/hooks/header/on-scroll-header-state.js +21 -0
- package/lib/commonjs/utils/hooks/header/on-scroll-header-state.js.map +1 -0
- package/lib/commonjs/utils/hooks/index.js +20 -0
- package/lib/commonjs/utils/hooks/index.js.map +1 -0
- package/lib/commonjs/utils/hooks/list/list-content-inset.js +31 -0
- package/lib/commonjs/utils/hooks/list/list-content-inset.js.map +1 -0
- package/lib/commonjs/utils/index.js +83 -0
- package/lib/commonjs/utils/index.js.map +1 -0
- package/lib/commonjs/utils/navigation.js +51 -0
- package/lib/commonjs/utils/navigation.js.map +1 -0
- package/lib/commonjs/utils/ref.js +42 -0
- package/lib/commonjs/utils/ref.js.map +1 -0
- package/lib/commonjs/utils/testID.js +18 -0
- package/lib/commonjs/utils/testID.js.map +1 -0
- package/lib/commonjs/utils/testID.test.js +21 -0
- package/lib/commonjs/utils/testID.test.js.map +1 -0
- package/lib/commonjs/utils/useMemoAsync.js +26 -0
- package/lib/commonjs/utils/useMemoAsync.js.map +1 -0
- package/lib/module/accessibility/accessibility.js +185 -0
- package/lib/module/accessibility/accessibility.js.map +1 -0
- package/lib/module/accessibility/accessibilityHistory.js +71 -0
- package/lib/module/accessibility/accessibilityHistory.js.map +1 -0
- package/lib/module/accessibility/accessibilityHistoryWrappers.js +38 -0
- package/lib/module/accessibility/accessibilityHistoryWrappers.js.map +1 -0
- package/lib/module/accessibility/accessibilityLanguage.js +53 -0
- package/lib/module/accessibility/accessibilityLanguage.js.map +1 -0
- package/lib/module/accessibility/index.js +8 -0
- package/lib/module/accessibility/index.js.map +1 -0
- package/lib/module/accessibility/locale/de.json +21 -0
- package/lib/module/accessibility/locale/en.json +21 -0
- package/lib/module/accessibility/locale/fr.json +21 -0
- package/lib/module/accessibility/locale/index.js +12 -0
- package/lib/module/accessibility/locale/index.js.map +1 -0
- package/lib/module/accessibility/locale/it.json +21 -0
- package/lib/module/accessibility/locale.test.js +13 -0
- package/lib/module/accessibility/locale.test.js.map +1 -0
- package/lib/module/action-modal/ActionModal.js +44 -0
- package/lib/module/action-modal/ActionModal.js.map +1 -0
- package/lib/module/action-modal/index.js +3 -0
- package/lib/module/action-modal/index.js.map +1 -0
- package/lib/module/activity-indicator/activity-indicator.js +24 -0
- package/lib/module/activity-indicator/activity-indicator.js.map +1 -0
- package/lib/module/activity-indicator/index.js +3 -0
- package/lib/module/activity-indicator/index.js.map +1 -0
- package/lib/module/blur/blur-view.js +67 -0
- package/lib/module/blur/blur-view.js.map +1 -0
- package/lib/module/blur/index.js +3 -0
- package/lib/module/blur/index.js.map +1 -0
- package/lib/module/buttons/back-button.js +28 -0
- package/lib/module/buttons/back-button.js.map +1 -0
- package/lib/module/buttons/button.js +143 -0
- package/lib/module/buttons/button.js.map +1 -0
- package/lib/module/buttons/connectivity-button.js +73 -0
- package/lib/module/buttons/connectivity-button.js.map +1 -0
- package/lib/module/buttons/filter-button.js +43 -0
- package/lib/module/buttons/filter-button.js.map +1 -0
- package/lib/module/buttons/ghost-button.js +53 -0
- package/lib/module/buttons/ghost-button.js.map +1 -0
- package/lib/module/buttons/index.js +8 -0
- package/lib/module/buttons/index.js.map +1 -0
- package/lib/module/buttons/scan-button.js +75 -0
- package/lib/module/buttons/scan-button.js.map +1 -0
- package/lib/module/camera/camera-overlay.js +51 -0
- package/lib/module/camera/camera-overlay.js.map +1 -0
- package/lib/module/camera/index.js +3 -0
- package/lib/module/camera/index.js.map +1 -0
- package/lib/module/camera/qr-code-scanner.js +40 -0
- package/lib/module/camera/qr-code-scanner.js.map +1 -0
- package/lib/module/control/checkbox.js +70 -0
- package/lib/module/control/checkbox.js.map +1 -0
- package/lib/module/control/index.js +4 -0
- package/lib/module/control/index.js.map +1 -0
- package/lib/module/control/switch.js +56 -0
- package/lib/module/control/switch.js.map +1 -0
- package/lib/module/credential/card/credential-card.js +177 -0
- package/lib/module/credential/card/credential-card.js.map +1 -0
- package/lib/module/credential/card/credential-details-card.js +191 -0
- package/lib/module/credential/card/credential-details-card.js.map +1 -0
- package/lib/module/credential/card/credential-details-list-item.js +74 -0
- package/lib/module/credential/card/credential-details-list-item.js.map +1 -0
- package/lib/module/credential/card/credential-header.js +162 -0
- package/lib/module/credential/card/credential-header.js.map +1 -0
- package/lib/module/credential/card/credential-image-carousel.js +113 -0
- package/lib/module/credential/card/credential-image-carousel.js.map +1 -0
- package/lib/module/credential/card/index.js +11 -0
- package/lib/module/credential/card/index.js.map +1 -0
- package/lib/module/credential/credential-attribute-item.js +279 -0
- package/lib/module/credential/credential-attribute-item.js.map +1 -0
- package/lib/module/credential/credential-carousel-images.js +86 -0
- package/lib/module/credential/credential-carousel-images.js.map +1 -0
- package/lib/module/credential/index.js +9 -0
- package/lib/module/credential/index.js.map +1 -0
- package/lib/module/credential/selector-status.js +10 -0
- package/lib/module/credential/selector-status.js.map +1 -0
- package/lib/module/credential/selector.js +70 -0
- package/lib/module/credential/selector.js.map +1 -0
- package/lib/module/detail/detail.js +75 -0
- package/lib/module/detail/detail.js.map +1 -0
- package/lib/module/detail/index.js +3 -0
- package/lib/module/detail/index.js.map +1 -0
- package/lib/module/entity/avatar.js +86 -0
- package/lib/module/entity/avatar.js.map +1 -0
- package/lib/module/entity/entity-cluster.js +56 -0
- package/lib/module/entity/entity-cluster.js.map +1 -0
- package/lib/module/entity/index.js +5 -0
- package/lib/module/entity/index.js.map +1 -0
- package/lib/module/header/focus-aware-status-bar.js +12 -0
- package/lib/module/header/focus-aware-status-bar.js.map +1 -0
- package/lib/module/header/foldable-header.js +79 -0
- package/lib/module/header/foldable-header.js.map +1 -0
- package/lib/module/header/header.js +97 -0
- package/lib/module/header/header.js.map +1 -0
- package/lib/module/header/index.js +9 -0
- package/lib/module/header/index.js.map +1 -0
- package/lib/module/header/navigation-header.js +138 -0
- package/lib/module/header/navigation-header.js.map +1 -0
- package/lib/module/history/data-item.js +60 -0
- package/lib/module/history/data-item.js.map +1 -0
- package/lib/module/history/history-list-item.js +80 -0
- package/lib/module/history/history-list-item.js.map +1 -0
- package/lib/module/history/history-section-header.js +42 -0
- package/lib/module/history/history-section-header.js.map +1 -0
- package/lib/module/history/history-section-list-item.js +43 -0
- package/lib/module/history/history-section-list-item.js.map +1 -0
- package/lib/module/history/index.js +9 -0
- package/lib/module/history/index.js.map +1 -0
- package/lib/module/icons/connectivity.js +125 -0
- package/lib/module/icons/connectivity.js.map +1 -0
- package/lib/module/icons/credential.js +147 -0
- package/lib/module/icons/credential.js.map +1 -0
- package/lib/module/icons/entity.js +25 -0
- package/lib/module/icons/entity.js.map +1 -0
- package/lib/module/icons/history.js +391 -0
- package/lib/module/icons/history.js.map +1 -0
- package/lib/module/icons/icons.js +231 -0
- package/lib/module/icons/icons.js.map +1 -0
- package/lib/module/icons/index.js +12 -0
- package/lib/module/icons/index.js.map +1 -0
- package/lib/module/icons/input.js +33 -0
- package/lib/module/icons/input.js.map +1 -0
- package/lib/module/icons/keypad.js +81 -0
- package/lib/module/icons/keypad.js.map +1 -0
- package/lib/module/icons/loader.js +168 -0
- package/lib/module/icons/loader.js.map +1 -0
- package/lib/module/icons/nerd-view.js +110 -0
- package/lib/module/icons/nerd-view.js.map +1 -0
- package/lib/module/icons/selector.js +45 -0
- package/lib/module/icons/selector.js.map +1 -0
- package/lib/module/icons/wallet.js +111 -0
- package/lib/module/icons/wallet.js.map +1 -0
- package/lib/module/image/image-or-component.js +71 -0
- package/lib/module/image/image-or-component.js.map +1 -0
- package/lib/module/image/index.js +3 -0
- package/lib/module/image/index.js.map +1 -0
- package/lib/module/index.js +27 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/input/index.js +7 -0
- package/lib/module/input/index.js.map +1 -0
- package/lib/module/input/radio-group.js +87 -0
- package/lib/module/input/radio-group.js.map +1 -0
- package/lib/module/input/selection-input.js +92 -0
- package/lib/module/input/selection-input.js.map +1 -0
- package/lib/module/input/text-input.js +185 -0
- package/lib/module/input/text-input.js.map +1 -0
- package/lib/module/list/index.js +5 -0
- package/lib/module/list/index.js.map +1 -0
- package/lib/module/list/list-section-header.js +28 -0
- package/lib/module/list/list-section-header.js.map +1 -0
- package/lib/module/list/list-title-header.js +27 -0
- package/lib/module/list/list-title-header.js.map +1 -0
- package/lib/module/loader/index.js +5 -0
- package/lib/module/loader/index.js.map +1 -0
- package/lib/module/loader/loader.js +130 -0
- package/lib/module/loader/loader.js.map +1 -0
- package/lib/module/loader/loading-result.js +84 -0
- package/lib/module/loader/loading-result.js.map +1 -0
- package/lib/module/nerd-view/index.js +3 -0
- package/lib/module/nerd-view/index.js.map +1 -0
- package/lib/module/nerd-view/nerd-mode-item.js +224 -0
- package/lib/module/nerd-view/nerd-mode-item.js.map +1 -0
- package/lib/module/normalize-color.d.js +2 -0
- package/lib/module/normalize-color.d.js.map +1 -0
- package/lib/module/pin/index.js +4 -0
- package/lib/module/pin/index.js.map +1 -0
- package/lib/module/pin/keypad.js +191 -0
- package/lib/module/pin/keypad.js.map +1 -0
- package/lib/module/pin/pin-code-screen.js +152 -0
- package/lib/module/pin/pin-code-screen.js.map +1 -0
- package/lib/module/pin/pins.js +46 -0
- package/lib/module/pin/pins.js.map +1 -0
- package/lib/module/screens/backup-screen.js +78 -0
- package/lib/module/screens/backup-screen.js.map +1 -0
- package/lib/module/screens/image-preview-screen.js +83 -0
- package/lib/module/screens/image-preview-screen.js.map +1 -0
- package/lib/module/screens/index.js +13 -0
- package/lib/module/screens/index.js.map +1 -0
- package/lib/module/screens/nerd-mode-screen.js +132 -0
- package/lib/module/screens/nerd-mode-screen.js.map +1 -0
- package/lib/module/screens/qr-code-scanner-screen.js +110 -0
- package/lib/module/screens/qr-code-scanner-screen.js.map +1 -0
- package/lib/module/screens/scroll-view-screen.js +86 -0
- package/lib/module/screens/scroll-view-screen.js.map +1 -0
- package/lib/module/screens/section-list-screen.js +59 -0
- package/lib/module/screens/section-list-screen.js.map +1 -0
- package/lib/module/searchbar/animated-search-bar.js +78 -0
- package/lib/module/searchbar/animated-search-bar.js.map +1 -0
- package/lib/module/searchbar/index.js +5 -0
- package/lib/module/searchbar/index.js.map +1 -0
- package/lib/module/searchbar/search-bar.js +89 -0
- package/lib/module/searchbar/search-bar.js.map +1 -0
- package/lib/module/settings/button-setting.js +57 -0
- package/lib/module/settings/button-setting.js.map +1 -0
- package/lib/module/settings/index.js +11 -0
- package/lib/module/settings/index.js.map +1 -0
- package/lib/module/settings/setting-item-separator.js +32 -0
- package/lib/module/settings/setting-item-separator.js.map +1 -0
- package/lib/module/settings/setting-item.js +69 -0
- package/lib/module/settings/setting-item.js.map +1 -0
- package/lib/module/settings/settings-button.js +27 -0
- package/lib/module/settings/settings-button.js.map +1 -0
- package/lib/module/settings/switch-setting.js +27 -0
- package/lib/module/settings/switch-setting.js.map +1 -0
- package/lib/module/state/error-screen.js +63 -0
- package/lib/module/state/error-screen.js.map +1 -0
- package/lib/module/state/index.js +3 -0
- package/lib/module/state/index.js.map +1 -0
- package/lib/module/text/base.js +31 -0
- package/lib/module/text/base.js.map +1 -0
- package/lib/module/text/font.js +56 -0
- package/lib/module/text/font.js.map +1 -0
- package/lib/module/text/index.js +3 -0
- package/lib/module/text/index.js.map +1 -0
- package/lib/module/text/typography.js +111 -0
- package/lib/module/text/typography.js.map +1 -0
- package/lib/module/theme/color-scheme-context.js +44 -0
- package/lib/module/theme/color-scheme-context.js.map +1 -0
- package/lib/module/theme/color-scheme.js +2 -0
- package/lib/module/theme/color-scheme.js.map +1 -0
- package/lib/module/theme/index.js +3 -0
- package/lib/module/theme/index.js.map +1 -0
- package/lib/module/utils/color.js +23 -0
- package/lib/module/utils/color.js.map +1 -0
- package/lib/module/utils/contrasting-status-bar.js +21 -0
- package/lib/module/utils/contrasting-status-bar.js.map +1 -0
- package/lib/module/utils/date.js +51 -0
- package/lib/module/utils/date.js.map +1 -0
- package/lib/module/utils/hooks/header/on-scroll-header-state.js +14 -0
- package/lib/module/utils/hooks/header/on-scroll-header-state.js.map +1 -0
- package/lib/module/utils/hooks/index.js +5 -0
- package/lib/module/utils/hooks/index.js.map +1 -0
- package/lib/module/utils/hooks/list/list-content-inset.js +24 -0
- package/lib/module/utils/hooks/list/list-content-inset.js.map +1 -0
- package/lib/module/utils/index.js +9 -0
- package/lib/module/utils/index.js.map +1 -0
- package/lib/module/utils/navigation.js +45 -0
- package/lib/module/utils/navigation.js.map +1 -0
- package/lib/module/utils/ref.js +35 -0
- package/lib/module/utils/ref.js.map +1 -0
- package/lib/module/utils/testID.js +12 -0
- package/lib/module/utils/testID.js.map +1 -0
- package/lib/module/utils/testID.test.js +19 -0
- package/lib/module/utils/testID.test.js.map +1 -0
- package/lib/module/utils/useMemoAsync.js +20 -0
- package/lib/module/utils/useMemoAsync.js.map +1 -0
- package/lib/typescript/accessibility/accessibility.d.ts +55 -0
- package/lib/typescript/accessibility/accessibilityHistory.d.ts +13 -0
- package/lib/typescript/accessibility/accessibilityHistoryWrappers.d.ts +18 -0
- package/lib/typescript/accessibility/accessibilityLanguage.d.ts +20 -0
- package/lib/typescript/accessibility/index.d.ts +6 -0
- package/lib/typescript/accessibility/locale/index.d.ts +90 -0
- package/lib/typescript/accessibility/locale.test.d.ts +1 -0
- package/lib/typescript/action-modal/ActionModal.d.ts +10 -0
- package/lib/typescript/action-modal/index.d.ts +2 -0
- package/lib/typescript/activity-indicator/activity-indicator.d.ts +7 -0
- package/lib/typescript/activity-indicator/index.d.ts +2 -0
- package/lib/typescript/blur/blur-view.d.ts +10 -0
- package/lib/typescript/blur/index.d.ts +2 -0
- package/lib/typescript/buttons/back-button.d.ts +9 -0
- package/lib/typescript/buttons/button.d.ts +22 -0
- package/lib/typescript/buttons/connectivity-button.d.ts +17 -0
- package/lib/typescript/buttons/filter-button.d.ts +7 -0
- package/lib/typescript/buttons/ghost-button.d.ts +11 -0
- package/lib/typescript/buttons/index.d.ts +7 -0
- package/lib/typescript/buttons/scan-button.d.ts +5 -0
- package/lib/typescript/camera/camera-overlay.d.ts +7 -0
- package/lib/typescript/camera/index.d.ts +2 -0
- package/lib/typescript/camera/qr-code-scanner.d.ts +11 -0
- package/lib/typescript/control/checkbox.d.ts +9 -0
- package/lib/typescript/control/index.d.ts +3 -0
- package/lib/typescript/control/switch.d.ts +7 -0
- package/lib/typescript/credential/card/credential-card.d.ts +22 -0
- package/lib/typescript/credential/card/credential-details-card.d.ts +16 -0
- package/lib/typescript/credential/card/credential-details-list-item.d.ts +9 -0
- package/lib/typescript/credential/card/credential-header.d.ts +20 -0
- package/lib/typescript/credential/card/credential-image-carousel.d.ts +23 -0
- package/lib/typescript/credential/card/index.d.ts +10 -0
- package/lib/typescript/credential/credential-attribute-item.d.ts +48 -0
- package/lib/typescript/credential/credential-carousel-images.d.ts +19 -0
- package/lib/typescript/credential/index.d.ts +8 -0
- package/lib/typescript/credential/selector-status.d.ts +8 -0
- package/lib/typescript/credential/selector.d.ts +15 -0
- package/lib/typescript/detail/detail.d.ts +18 -0
- package/lib/typescript/detail/index.d.ts +2 -0
- package/lib/typescript/entity/avatar.d.ts +10 -0
- package/lib/typescript/entity/entity-cluster.d.ts +12 -0
- package/lib/typescript/entity/index.d.ts +4 -0
- package/lib/typescript/header/focus-aware-status-bar.d.ts +4 -0
- package/lib/typescript/header/foldable-header.d.ts +11 -0
- package/lib/typescript/header/header.d.ts +17 -0
- package/lib/typescript/header/index.d.ts +8 -0
- package/lib/typescript/header/navigation-header.d.ts +15 -0
- package/lib/typescript/history/data-item.d.ts +12 -0
- package/lib/typescript/history/history-list-item.d.ts +14 -0
- package/lib/typescript/history/history-section-header.d.ts +7 -0
- package/lib/typescript/history/history-section-list-item.d.ts +7 -0
- package/lib/typescript/history/index.d.ts +8 -0
- package/lib/typescript/icons/connectivity.d.ts +12 -0
- package/lib/typescript/icons/credential.d.ts +9 -0
- package/lib/typescript/icons/entity.d.ts +3 -0
- package/lib/typescript/icons/history.d.ts +42 -0
- package/lib/typescript/icons/icons.d.ts +13 -0
- package/lib/typescript/icons/index.d.ts +11 -0
- package/lib/typescript/icons/input.d.ts +3 -0
- package/lib/typescript/icons/keypad.d.ts +6 -0
- package/lib/typescript/icons/loader.d.ts +6 -0
- package/lib/typescript/icons/nerd-view.d.ts +7 -0
- package/lib/typescript/icons/selector.d.ts +10 -0
- package/lib/typescript/icons/wallet.d.ts +4 -0
- package/lib/typescript/image/image-or-component.d.ts +16 -0
- package/lib/typescript/image/index.d.ts +2 -0
- package/lib/typescript/index.d.ts +26 -0
- package/lib/typescript/input/index.d.ts +6 -0
- package/lib/typescript/input/radio-group.d.ts +23 -0
- package/lib/typescript/input/selection-input.d.ts +32 -0
- package/lib/typescript/input/text-input.d.ts +31 -0
- package/lib/typescript/list/index.d.ts +4 -0
- package/lib/typescript/list/list-section-header.d.ts +7 -0
- package/lib/typescript/list/list-title-header.d.ts +7 -0
- package/lib/typescript/loader/index.d.ts +4 -0
- package/lib/typescript/loader/loader.d.ts +14 -0
- package/lib/typescript/loader/loading-result.d.ts +16 -0
- package/lib/typescript/nerd-view/index.d.ts +2 -0
- package/lib/typescript/nerd-view/nerd-mode-item.d.ts +31 -0
- package/lib/typescript/pin/index.d.ts +3 -0
- package/lib/typescript/pin/keypad.d.ts +16 -0
- package/lib/typescript/pin/pin-code-screen.d.ts +32 -0
- package/lib/typescript/pin/pins.d.ts +7 -0
- package/lib/typescript/screens/backup-screen.d.ts +16 -0
- package/lib/typescript/screens/image-preview-screen.d.ts +9 -0
- package/lib/typescript/screens/index.d.ts +12 -0
- package/lib/typescript/screens/nerd-mode-screen.d.ts +22 -0
- package/lib/typescript/screens/qr-code-scanner-screen.d.ts +14 -0
- package/lib/typescript/screens/scroll-view-screen.d.ts +13 -0
- package/lib/typescript/screens/section-list-screen.d.ts +12 -0
- package/lib/typescript/searchbar/animated-search-bar.d.ts +10 -0
- package/lib/typescript/searchbar/index.d.ts +4 -0
- package/lib/typescript/searchbar/search-bar.d.ts +10 -0
- package/lib/typescript/settings/button-setting.d.ts +13 -0
- package/lib/typescript/settings/index.d.ts +10 -0
- package/lib/typescript/settings/setting-item-separator.d.ts +8 -0
- package/lib/typescript/settings/setting-item.d.ts +9 -0
- package/lib/typescript/settings/settings-button.d.ts +5 -0
- package/lib/typescript/settings/switch-setting.d.ts +13 -0
- package/lib/typescript/state/error-screen.d.ts +15 -0
- package/lib/typescript/state/index.d.ts +2 -0
- package/lib/typescript/text/base.d.ts +20 -0
- package/lib/typescript/text/font.d.ts +26 -0
- package/lib/typescript/text/index.d.ts +2 -0
- package/lib/typescript/text/typography.d.ts +112 -0
- package/lib/typescript/theme/color-scheme-context.d.ts +10 -0
- package/lib/typescript/theme/color-scheme.d.ts +31 -0
- package/lib/typescript/theme/index.d.ts +3 -0
- package/lib/typescript/utils/color.d.ts +4 -0
- package/lib/typescript/utils/contrasting-status-bar.d.ts +10 -0
- package/lib/typescript/utils/date.d.ts +12 -0
- package/lib/typescript/utils/hooks/header/on-scroll-header-state.d.ts +5 -0
- package/lib/typescript/utils/hooks/index.d.ts +4 -0
- package/lib/typescript/utils/hooks/list/list-content-inset.d.ts +8 -0
- package/lib/typescript/utils/index.d.ts +8 -0
- package/lib/typescript/utils/navigation.d.ts +9 -0
- package/lib/typescript/utils/ref.d.ts +11 -0
- package/lib/typescript/utils/testID.d.ts +6 -0
- package/lib/typescript/utils/testID.test.d.ts +1 -0
- package/lib/typescript/utils/useMemoAsync.d.ts +21 -0
- package/package.json +240 -0
- package/src/accessibility/accessibility.ts +215 -0
- package/src/accessibility/accessibilityHistory.tsx +77 -0
- package/src/accessibility/accessibilityHistoryWrappers.tsx +80 -0
- package/src/accessibility/accessibilityLanguage.tsx +66 -0
- package/src/accessibility/index.ts +35 -0
- package/src/accessibility/locale/de.json +21 -0
- package/src/accessibility/locale/en.json +21 -0
- package/src/accessibility/locale/fr.json +21 -0
- package/src/accessibility/locale/index.ts +19 -0
- package/src/accessibility/locale/it.json +21 -0
- package/src/accessibility/locale.test.ts +16 -0
- package/src/action-modal/ActionModal.stories.tsx +35 -0
- package/src/action-modal/ActionModal.tsx +45 -0
- package/src/action-modal/index.ts +3 -0
- package/src/activity-indicator/activity-indicator.stories.tsx +21 -0
- package/src/activity-indicator/activity-indicator.tsx +25 -0
- package/src/activity-indicator/index.ts +3 -0
- package/src/blur/blur-view.tsx +82 -0
- package/src/blur/index.ts +3 -0
- package/src/buttons/back-button.stories.tsx +31 -0
- package/src/buttons/back-button.tsx +31 -0
- package/src/buttons/button.stories.tsx +29 -0
- package/src/buttons/button.tsx +169 -0
- package/src/buttons/connectivity-button.stories.tsx +34 -0
- package/src/buttons/connectivity-button.tsx +95 -0
- package/src/buttons/filter-button.tsx +38 -0
- package/src/buttons/ghost-button.stories.tsx +28 -0
- package/src/buttons/ghost-button.tsx +56 -0
- package/src/buttons/index.ts +24 -0
- package/src/buttons/scan-button.stories.tsx +26 -0
- package/src/buttons/scan-button.tsx +66 -0
- package/src/camera/camera-overlay.tsx +48 -0
- package/src/camera/index.tsx +3 -0
- package/src/camera/qr-code-scanner.tsx +52 -0
- package/src/control/checkbox.stories.tsx +27 -0
- package/src/control/checkbox.tsx +81 -0
- package/src/control/index.ts +4 -0
- package/src/control/switch.stories.tsx +29 -0
- package/src/control/switch.tsx +47 -0
- package/src/credential/card/credential-card.stories.tsx +52 -0
- package/src/credential/card/credential-card.tsx +195 -0
- package/src/credential/card/credential-details-card.stories.tsx +268 -0
- package/src/credential/card/credential-details-card.tsx +242 -0
- package/src/credential/card/credential-details-list-item.tsx +87 -0
- package/src/credential/card/credential-header.stories.tsx +50 -0
- package/src/credential/card/credential-header.tsx +195 -0
- package/src/credential/card/credential-image-carousel.tsx +113 -0
- package/src/credential/card/index.ts +11 -0
- package/src/credential/credential-attribute-item.tsx +372 -0
- package/src/credential/credential-carousel-images.tsx +90 -0
- package/src/credential/index.ts +13 -0
- package/src/credential/selector-status.ts +8 -0
- package/src/credential/selector.stories.tsx +37 -0
- package/src/credential/selector.tsx +64 -0
- package/src/detail/detail.stories.tsx +65 -0
- package/src/detail/detail.tsx +98 -0
- package/src/detail/index.tsx +3 -0
- package/src/entity/avatar.stories.tsx +39 -0
- package/src/entity/avatar.tsx +87 -0
- package/src/entity/entity-cluster.stories.tsx +42 -0
- package/src/entity/entity-cluster.tsx +72 -0
- package/src/entity/index.ts +5 -0
- package/src/header/focus-aware-status-bar.tsx +10 -0
- package/src/header/foldable-header.tsx +107 -0
- package/src/header/header.stories.tsx +59 -0
- package/src/header/header.tsx +105 -0
- package/src/header/index.ts +9 -0
- package/src/header/navigation-header.stories.tsx +56 -0
- package/src/header/navigation-header.tsx +147 -0
- package/src/history/data-item.tsx +79 -0
- package/src/history/history-list-item.tsx +102 -0
- package/src/history/history-section-header.tsx +44 -0
- package/src/history/history-section-list-item.tsx +41 -0
- package/src/history/index.ts +9 -0
- package/src/icons/connectivity.tsx +114 -0
- package/src/icons/credential.tsx +118 -0
- package/src/icons/entity.tsx +21 -0
- package/src/icons/history.tsx +378 -0
- package/src/icons/icons.tsx +134 -0
- package/src/icons/index.ts +11 -0
- package/src/icons/input.tsx +29 -0
- package/src/icons/keypad.tsx +40 -0
- package/src/icons/loader.tsx +117 -0
- package/src/icons/nerd-view.tsx +105 -0
- package/src/icons/selector.tsx +43 -0
- package/src/icons/wallet.tsx +73 -0
- package/src/image/image-or-component.tsx +92 -0
- package/src/image/index.tsx +3 -0
- package/src/index.ts +26 -0
- package/src/input/index.ts +7 -0
- package/src/input/radio-group.tsx +110 -0
- package/src/input/selection-input.stories.tsx +46 -0
- package/src/input/selection-input.tsx +112 -0
- package/src/input/text-input.tsx +253 -0
- package/src/list/index.ts +5 -0
- package/src/list/list-section-header.tsx +37 -0
- package/src/list/list-title-header.tsx +30 -0
- package/src/loader/index.ts +5 -0
- package/src/loader/loader.stories.tsx +31 -0
- package/src/loader/loader.tsx +169 -0
- package/src/loader/loading-result.stories.tsx +67 -0
- package/src/loader/loading-result.tsx +93 -0
- package/src/nerd-view/index.ts +3 -0
- package/src/nerd-view/nerd-mode-item.tsx +296 -0
- package/src/normalize-color.d.ts +1 -0
- package/src/pin/index.ts +4 -0
- package/src/pin/keypad.tsx +166 -0
- package/src/pin/pin-code-screen.stories.tsx +80 -0
- package/src/pin/pin-code-screen.tsx +195 -0
- package/src/pin/pins.tsx +48 -0
- package/src/screens/backup-screen.tsx +92 -0
- package/src/screens/image-preview-screen.stories.tsx +28 -0
- package/src/screens/image-preview-screen.tsx +82 -0
- package/src/screens/index.ts +13 -0
- package/src/screens/nerd-mode-screen.tsx +150 -0
- package/src/screens/qr-code-scanner-screen.stories.tsx +37 -0
- package/src/screens/qr-code-scanner-screen.tsx +124 -0
- package/src/screens/scroll-view-screen.tsx +91 -0
- package/src/screens/section-list-screen.tsx +61 -0
- package/src/searchbar/animated-search-bar.tsx +96 -0
- package/src/searchbar/index.ts +5 -0
- package/src/searchbar/search-bar.stories.tsx +31 -0
- package/src/searchbar/search-bar.tsx +94 -0
- package/src/settings/button-setting.tsx +72 -0
- package/src/settings/index.ts +11 -0
- package/src/settings/setting-item-separator.tsx +32 -0
- package/src/settings/setting-item.tsx +68 -0
- package/src/settings/settings-button.tsx +23 -0
- package/src/settings/switch-setting.tsx +33 -0
- package/src/state/error-screen.stories.tsx +22 -0
- package/src/state/error-screen.tsx +71 -0
- package/src/state/index.ts +3 -0
- package/src/text/base.tsx +53 -0
- package/src/text/font.ts +52 -0
- package/src/text/index.ts +3 -0
- package/src/text/typography.stories.tsx +70 -0
- package/src/text/typography.tsx +117 -0
- package/src/theme/color-scheme-context.tsx +48 -0
- package/src/theme/color-scheme.ts +31 -0
- package/src/theme/index.ts +4 -0
- package/src/utils/color.ts +34 -0
- package/src/utils/contrasting-status-bar.tsx +21 -0
- package/src/utils/date.ts +49 -0
- package/src/utils/hooks/header/on-scroll-header-state.tsx +16 -0
- package/src/utils/hooks/index.ts +5 -0
- package/src/utils/hooks/list/list-content-inset.ts +24 -0
- package/src/utils/index.ts +19 -0
- package/src/utils/navigation.ts +37 -0
- package/src/utils/ref.ts +39 -0
- package/src/utils/testID.test.ts +20 -0
- package/src/utils/testID.ts +9 -0
- package/src/utils/useMemoAsync.ts +50 -0
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
var _reactNativeSafeAreaContext = require("react-native-safe-area-context");
|
|
10
|
+
var _accessibilityHistoryWrappers = require("../accessibility/accessibilityHistoryWrappers");
|
|
11
|
+
var _header = require("../header");
|
|
12
|
+
var _icons = require("../icons");
|
|
13
|
+
var _theme = require("../theme");
|
|
14
|
+
var _utils = require("../utils");
|
|
15
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
16
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
17
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
18
|
+
const ImagePreviewScreen = _ref => {
|
|
19
|
+
let {
|
|
20
|
+
image,
|
|
21
|
+
onClose,
|
|
22
|
+
title,
|
|
23
|
+
testID,
|
|
24
|
+
style,
|
|
25
|
+
...viewProps
|
|
26
|
+
} = _ref;
|
|
27
|
+
const colorScheme = (0, _theme.useAppColorScheme)();
|
|
28
|
+
const insets = (0, _reactNativeSafeAreaContext.useSafeAreaInsets)();
|
|
29
|
+
const [imageSize, setImageSize] = (0, _react.useState)();
|
|
30
|
+
const layoutHandler = (0, _react.useCallback)(event => {
|
|
31
|
+
const {
|
|
32
|
+
width,
|
|
33
|
+
height
|
|
34
|
+
} = event.nativeEvent.layout;
|
|
35
|
+
setImageSize({
|
|
36
|
+
height,
|
|
37
|
+
width
|
|
38
|
+
});
|
|
39
|
+
}, []);
|
|
40
|
+
return /*#__PURE__*/_react.default.createElement(_reactNative.View, _extends({
|
|
41
|
+
style: [styles.screen, {
|
|
42
|
+
backgroundColor: colorScheme.nerdView.background
|
|
43
|
+
}, style],
|
|
44
|
+
testID: testID
|
|
45
|
+
}, viewProps), /*#__PURE__*/_react.default.createElement(_utils.ContrastingStatusBar, {
|
|
46
|
+
backgroundColor: colorScheme.nerdView.background
|
|
47
|
+
}), /*#__PURE__*/_react.default.createElement(_header.NavigationHeader, {
|
|
48
|
+
backgroundColor: "transparent",
|
|
49
|
+
blurred: false,
|
|
50
|
+
leftItem: /*#__PURE__*/_react.default.createElement(_accessibilityHistoryWrappers.TouchableOpacity, {
|
|
51
|
+
onPress: onClose,
|
|
52
|
+
testID: (0, _utils.concatTestID)(testID, 'close')
|
|
53
|
+
}, /*#__PURE__*/_react.default.createElement(_icons.CloseIcon, {
|
|
54
|
+
color: colorScheme.white
|
|
55
|
+
})),
|
|
56
|
+
style: {
|
|
57
|
+
paddingTop: insets.top
|
|
58
|
+
},
|
|
59
|
+
title: title,
|
|
60
|
+
titleColor: colorScheme.white,
|
|
61
|
+
testID: (0, _utils.concatTestID)(testID, 'header')
|
|
62
|
+
}), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
63
|
+
onLayout: layoutHandler,
|
|
64
|
+
style: styles.imageContainer
|
|
65
|
+
}, imageSize && /*#__PURE__*/_react.default.createElement(_reactNative.Image, {
|
|
66
|
+
accessibilityLabel: title,
|
|
67
|
+
accessibilityRole: "image",
|
|
68
|
+
accessible: true,
|
|
69
|
+
resizeMethod: "resize",
|
|
70
|
+
resizeMode: "contain",
|
|
71
|
+
source: image,
|
|
72
|
+
style: [styles.image, imageSize],
|
|
73
|
+
testID: (0, _utils.concatTestID)(testID, 'image')
|
|
74
|
+
})));
|
|
75
|
+
};
|
|
76
|
+
const styles = _reactNative.StyleSheet.create({
|
|
77
|
+
image: {
|
|
78
|
+
position: 'absolute'
|
|
79
|
+
},
|
|
80
|
+
imageContainer: {
|
|
81
|
+
alignItems: 'center',
|
|
82
|
+
flex: 1,
|
|
83
|
+
justifyContent: 'center',
|
|
84
|
+
marginHorizontal: 18
|
|
85
|
+
},
|
|
86
|
+
screen: {
|
|
87
|
+
flex: 1
|
|
88
|
+
}
|
|
89
|
+
});
|
|
90
|
+
var _default = ImagePreviewScreen;
|
|
91
|
+
exports.default = _default;
|
|
92
|
+
//# sourceMappingURL=image-preview-screen.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_reactNativeSafeAreaContext","_accessibilityHistoryWrappers","_header","_icons","_theme","_utils","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","default","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","_extends","assign","bind","target","i","arguments","length","source","apply","ImagePreviewScreen","_ref","image","onClose","title","testID","style","viewProps","colorScheme","useAppColorScheme","insets","useSafeAreaInsets","imageSize","setImageSize","useState","layoutHandler","useCallback","event","width","height","nativeEvent","layout","createElement","View","styles","screen","backgroundColor","nerdView","background","ContrastingStatusBar","NavigationHeader","blurred","leftItem","TouchableOpacity","onPress","concatTestID","CloseIcon","color","white","paddingTop","top","titleColor","onLayout","imageContainer","Image","accessibilityLabel","accessibilityRole","accessible","resizeMethod","resizeMode","StyleSheet","create","position","alignItems","flex","justifyContent","marginHorizontal","_default","exports"],"sources":["image-preview-screen.tsx"],"sourcesContent":["import React, { FC, useCallback, useState } from 'react';\nimport { Image, ImageSourcePropType, ImageStyle, LayoutChangeEvent, StyleSheet, View, ViewProps } from 'react-native';\nimport { useSafeAreaInsets } from 'react-native-safe-area-context';\n\nimport { TouchableOpacity } from '../accessibility/accessibilityHistoryWrappers';\nimport { NavigationHeader } from '../header';\nimport { CloseIcon } from '../icons';\nimport { useAppColorScheme } from '../theme';\nimport { concatTestID, ContrastingStatusBar } from '../utils';\n\nexport type ImagePreviewScreenProps = ViewProps & {\n image: ImageSourcePropType;\n onClose: () => void;\n title: string;\n};\n\nconst ImagePreviewScreen: FC<ImagePreviewScreenProps> = ({ image, onClose, title, testID, style, ...viewProps }) => {\n const colorScheme = useAppColorScheme();\n const insets = useSafeAreaInsets();\n\n const [imageSize, setImageSize] = useState<ImageStyle>();\n const layoutHandler = useCallback((event: LayoutChangeEvent) => {\n const { width, height } = event.nativeEvent.layout;\n setImageSize({ height, width });\n }, []);\n\n return (\n <View\n style={[styles.screen, { backgroundColor: colorScheme.nerdView.background }, style]}\n testID={testID}\n {...viewProps}>\n <ContrastingStatusBar backgroundColor={colorScheme.nerdView.background} />\n <NavigationHeader\n backgroundColor=\"transparent\"\n blurred={false}\n leftItem={\n <TouchableOpacity onPress={onClose} testID={concatTestID(testID, 'close')}>\n <CloseIcon color={colorScheme.white} />\n </TouchableOpacity>\n }\n style={{\n paddingTop: insets.top,\n }}\n title={title}\n titleColor={colorScheme.white}\n testID={concatTestID(testID, 'header')}\n />\n\n <View onLayout={layoutHandler} style={styles.imageContainer}>\n {imageSize && (\n <Image\n accessibilityLabel={title}\n accessibilityRole=\"image\"\n accessible={true}\n resizeMethod=\"resize\"\n resizeMode=\"contain\"\n source={image}\n style={[styles.image, imageSize]}\n testID={concatTestID(testID, 'image')}\n />\n )}\n </View>\n </View>\n );\n};\n\nconst styles = StyleSheet.create({\n image: {\n position: 'absolute',\n },\n imageContainer: {\n alignItems: 'center',\n flex: 1,\n justifyContent: 'center',\n marginHorizontal: 18,\n },\n screen: {\n flex: 1,\n },\n});\n\nexport default ImagePreviewScreen;\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,2BAAA,GAAAF,OAAA;AAEA,IAAAG,6BAAA,GAAAH,OAAA;AACA,IAAAI,OAAA,GAAAJ,OAAA;AACA,IAAAK,MAAA,GAAAL,OAAA;AACA,IAAAM,MAAA,GAAAN,OAAA;AACA,IAAAO,MAAA,GAAAP,OAAA;AAA8D,SAAAQ,yBAAAC,WAAA,eAAAC,OAAA,kCAAAC,iBAAA,OAAAD,OAAA,QAAAE,gBAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,WAAA,WAAAA,WAAA,GAAAG,gBAAA,GAAAD,iBAAA,KAAAF,WAAA;AAAA,SAAAV,wBAAAc,GAAA,EAAAJ,WAAA,SAAAA,WAAA,IAAAI,GAAA,IAAAA,GAAA,CAAAC,UAAA,WAAAD,GAAA,QAAAA,GAAA,oBAAAA,GAAA,wBAAAA,GAAA,4BAAAE,OAAA,EAAAF,GAAA,UAAAG,KAAA,GAAAR,wBAAA,CAAAC,WAAA,OAAAO,KAAA,IAAAA,KAAA,CAAAC,GAAA,CAAAJ,GAAA,YAAAG,KAAA,CAAAE,GAAA,CAAAL,GAAA,SAAAM,MAAA,WAAAC,qBAAA,GAAAC,MAAA,C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,UAAU,EAAEjC,WAAW,CAAC8B,KAAM;IAC9BjC,MAAM,EAAE,IAAA8B,mBAAY,EAAC9B,MAAM,EAAE,QAAQ;EAAE,EACvC,eAEF9C,MAAA,CAAAiB,OAAA,CAAA8C,aAAA,CAAC5D,YAAA,CAAA6D,IAAI;IAACmB,QAAQ,EAAE3B,aAAc;IAACT,KAAK,EAAEkB,MAAM,CAACmB;EAAe,GACzD/B,SAAS,iBACRrD,MAAA,CAAAiB,OAAA,CAAA8C,aAAA,CAAC5D,YAAA,CAAAkF,KAAK;IACJC,kBAAkB,EAAEzC,KAAM;IAC1B0C,iBAAiB,EAAC,OAAO;IACzBC,UAAU,EAAE,IAAK;IACjBC,YAAY,EAAC,QAAQ;IACrBC,UAAU,EAAC,SAAS;IACpBnD,MAAM,EAAEI,KAAM;IACdI,KAAK,EAAE,CAACkB,MAAM,CAACtB,KAAK,EAAEU,SAAS,CAAE;IACjCP,MAAM,EAAE,IAAA8B,mBAAY,EAAC9B,MAAM,EAAE,OAAO;EAAE,EAEzC,CACI,CACF;AAEX,CAAC;AAED,MAAMmB,MAAM,GAAG0B,uBAAU,CAACC,MAAM,CAAC;EAC/BjD,KAAK,EAAE;IACLkD,QAAQ,EAAE;EACZ,CAAC;EACDT,cAAc,EAAE;IACdU,UAAU,EAAE,QAAQ;IACpBC,IAAI,EAAE,CAAC;IACPC,cAAc,EAAE,QAAQ;IACxBC,gBAAgB,EAAE;EACpB,CAAC;EACD/B,MAAM,EAAE;IACN6B,IAAI,EAAE;EACR;AACF,CAAC,CAAC;AAAC,IAAAG,QAAA,GAEYzD,kBAAkB;AAAA0D,OAAA,CAAAlF,OAAA,GAAAiF,QAAA"}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "BackupScreen", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _backupScreen.default;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(exports, "BackupScreenMode", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function () {
|
|
15
|
+
return _backupScreen.BackupScreenMode;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
Object.defineProperty(exports, "BackupScreenProps", {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function () {
|
|
21
|
+
return _backupScreen.BackupScreenProps;
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
Object.defineProperty(exports, "ImagePreviewScreen", {
|
|
25
|
+
enumerable: true,
|
|
26
|
+
get: function () {
|
|
27
|
+
return _imagePreviewScreen.default;
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
Object.defineProperty(exports, "ImagePreviewScreenProps", {
|
|
31
|
+
enumerable: true,
|
|
32
|
+
get: function () {
|
|
33
|
+
return _imagePreviewScreen.ImagePreviewScreenProps;
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
Object.defineProperty(exports, "NerdModeScreen", {
|
|
37
|
+
enumerable: true,
|
|
38
|
+
get: function () {
|
|
39
|
+
return _nerdModeScreen.default;
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
Object.defineProperty(exports, "NerdModeScreenProps", {
|
|
43
|
+
enumerable: true,
|
|
44
|
+
get: function () {
|
|
45
|
+
return _nerdModeScreen.NerdModeScreenProps;
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
Object.defineProperty(exports, "NerdModeSection", {
|
|
49
|
+
enumerable: true,
|
|
50
|
+
get: function () {
|
|
51
|
+
return _nerdModeScreen.NerdModeSection;
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
Object.defineProperty(exports, "QRCodeScannerScreen", {
|
|
55
|
+
enumerable: true,
|
|
56
|
+
get: function () {
|
|
57
|
+
return _qrCodeScannerScreen.default;
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
Object.defineProperty(exports, "QRCodeScannerScreenProps", {
|
|
61
|
+
enumerable: true,
|
|
62
|
+
get: function () {
|
|
63
|
+
return _qrCodeScannerScreen.QRCodeScannerScreenProps;
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
Object.defineProperty(exports, "ScrollViewScreen", {
|
|
67
|
+
enumerable: true,
|
|
68
|
+
get: function () {
|
|
69
|
+
return _scrollViewScreen.default;
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
Object.defineProperty(exports, "ScrollViewScreenProps", {
|
|
73
|
+
enumerable: true,
|
|
74
|
+
get: function () {
|
|
75
|
+
return _scrollViewScreen.ScrollViewScreenProps;
|
|
76
|
+
}
|
|
77
|
+
});
|
|
78
|
+
Object.defineProperty(exports, "SectionListScreen", {
|
|
79
|
+
enumerable: true,
|
|
80
|
+
get: function () {
|
|
81
|
+
return _sectionListScreen.default;
|
|
82
|
+
}
|
|
83
|
+
});
|
|
84
|
+
Object.defineProperty(exports, "SectionListScreenProps", {
|
|
85
|
+
enumerable: true,
|
|
86
|
+
get: function () {
|
|
87
|
+
return _sectionListScreen.SectionListScreenProps;
|
|
88
|
+
}
|
|
89
|
+
});
|
|
90
|
+
var _backupScreen = _interopRequireWildcard(require("./backup-screen"));
|
|
91
|
+
var _imagePreviewScreen = _interopRequireWildcard(require("./image-preview-screen"));
|
|
92
|
+
var _nerdModeScreen = _interopRequireWildcard(require("./nerd-mode-screen"));
|
|
93
|
+
var _qrCodeScannerScreen = _interopRequireWildcard(require("./qr-code-scanner-screen"));
|
|
94
|
+
var _scrollViewScreen = _interopRequireWildcard(require("./scroll-view-screen"));
|
|
95
|
+
var _sectionListScreen = _interopRequireWildcard(require("./section-list-screen"));
|
|
96
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
97
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
98
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_backupScreen","_interopRequireWildcard","require","_imagePreviewScreen","_nerdModeScreen","_qrCodeScannerScreen","_scrollViewScreen","_sectionListScreen","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","default","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set"],"sources":["index.ts"],"sourcesContent":["import BackupScreen, { BackupScreenMode, BackupScreenProps } from './backup-screen';\nimport ImagePreviewScreen, { ImagePreviewScreenProps } from './image-preview-screen';\nimport NerdModeScreen, { NerdModeScreenProps, NerdModeSection } from './nerd-mode-screen';\nimport QRCodeScannerScreen, { QRCodeScannerScreenProps } from './qr-code-scanner-screen';\nimport ScrollViewScreen, { ScrollViewScreenProps } from './scroll-view-screen';\nimport SectionListScreen, { SectionListScreenProps } from './section-list-screen';\n\nexport { BackupScreen, BackupScreenMode, BackupScreenProps };\nexport { ImagePreviewScreen, ImagePreviewScreenProps };\nexport { NerdModeScreen, NerdModeScreenProps, NerdModeSection };\nexport { QRCodeScannerSc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wBAAA,CAAAV,GAAA,EAAAW,GAAA,cAAAI,IAAA,KAAAA,IAAA,CAAAV,GAAA,IAAAU,IAAA,CAAAC,GAAA,KAAAR,MAAA,CAAAC,cAAA,CAAAH,MAAA,EAAAK,GAAA,EAAAI,IAAA,YAAAT,MAAA,CAAAK,GAAA,IAAAX,GAAA,CAAAW,GAAA,SAAAL,MAAA,CAAAJ,OAAA,GAAAF,GAAA,MAAAG,KAAA,IAAAA,KAAA,CAAAa,GAAA,CAAAhB,GAAA,EAAAM,MAAA,YAAAA,MAAA"}
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
var _reactNativeGestureHandler = require("react-native-gesture-handler");
|
|
10
|
+
var _reactNativeReanimated = _interopRequireWildcard(require("react-native-reanimated"));
|
|
11
|
+
var _reactNativeSafeAreaContext = require("react-native-safe-area-context");
|
|
12
|
+
var _nerdModeItem = _interopRequireDefault(require("..//nerd-view/nerd-mode-item"));
|
|
13
|
+
var _entityCluster = _interopRequireDefault(require("../entity/entity-cluster"));
|
|
14
|
+
var _navigationHeader = _interopRequireDefault(require("../header/navigation-header"));
|
|
15
|
+
var _icons = require("../icons/icons");
|
|
16
|
+
var _typography = _interopRequireDefault(require("../text/typography"));
|
|
17
|
+
var _colorSchemeContext = require("../theme/color-scheme-context");
|
|
18
|
+
var _contrastingStatusBar = _interopRequireDefault(require("../utils/contrasting-status-bar"));
|
|
19
|
+
var _testID = require("../utils/testID");
|
|
20
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
21
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
22
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
23
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
24
|
+
const styles = _reactNative.StyleSheet.create({
|
|
25
|
+
entityCluster: {
|
|
26
|
+
paddingHorizontal: 24,
|
|
27
|
+
paddingVertical: 20
|
|
28
|
+
},
|
|
29
|
+
sectionHeaderContainer: {
|
|
30
|
+
justifyContent: 'center',
|
|
31
|
+
marginTop: 20,
|
|
32
|
+
paddingVertical: 16
|
|
33
|
+
},
|
|
34
|
+
sectionHeaderText: {
|
|
35
|
+
opacity: 0.7,
|
|
36
|
+
paddingHorizontal: 20
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
const AnimatedSectionList = _reactNativeReanimated.default.createAnimatedComponent(_reactNative.SectionList);
|
|
40
|
+
const NerdModeScreen = _ref => {
|
|
41
|
+
let {
|
|
42
|
+
sections,
|
|
43
|
+
labels,
|
|
44
|
+
onClose,
|
|
45
|
+
onCopyToClipboard,
|
|
46
|
+
entityCluster,
|
|
47
|
+
testID,
|
|
48
|
+
title
|
|
49
|
+
} = _ref;
|
|
50
|
+
const insets = (0, _reactNativeSafeAreaContext.useSafeAreaInsets)();
|
|
51
|
+
const colorScheme = (0, _colorSchemeContext.useAppColorScheme)();
|
|
52
|
+
const scrollOffset = (0, _reactNativeReanimated.useSharedValue)(0);
|
|
53
|
+
const [expandedAttributes, setExpandedAttributes] = (0, _react.useState)(0);
|
|
54
|
+
|
|
55
|
+
// This is a bit of a hack. It's used to notify attributes that another attribute has been expanded
|
|
56
|
+
// which will allow them to update their scroll offset accordingly.
|
|
57
|
+
const onExpand = expanded => {
|
|
58
|
+
setExpandedAttributes(prev => expanded ? prev + 1 : prev - 1);
|
|
59
|
+
};
|
|
60
|
+
const onScroll = (0, _reactNativeReanimated.useAnimatedScrollHandler)({
|
|
61
|
+
onScroll: _ref2 => {
|
|
62
|
+
let {
|
|
63
|
+
contentOffset
|
|
64
|
+
} = _ref2;
|
|
65
|
+
scrollOffset.value = contentOffset.y;
|
|
66
|
+
}
|
|
67
|
+
});
|
|
68
|
+
const lastElementsForSection = sections.reduce((acc, _ref3) => {
|
|
69
|
+
let {
|
|
70
|
+
title: sectionTitle,
|
|
71
|
+
data
|
|
72
|
+
} = _ref3;
|
|
73
|
+
const lastElement = data[data.length - 1];
|
|
74
|
+
return {
|
|
75
|
+
...acc,
|
|
76
|
+
[sectionTitle]: lastElement.attributeKey
|
|
77
|
+
};
|
|
78
|
+
}, {});
|
|
79
|
+
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_contrastingStatusBar.default, {
|
|
80
|
+
backgroundColor: colorScheme.nerdView.background
|
|
81
|
+
}), /*#__PURE__*/_react.default.createElement(_navigationHeader.default, {
|
|
82
|
+
leftItem: /*#__PURE__*/_react.default.createElement(_reactNativeGestureHandler.TouchableOpacity, {
|
|
83
|
+
onPress: onClose,
|
|
84
|
+
testID: (0, _testID.concatTestID)(testID, 'closeIcon')
|
|
85
|
+
}, /*#__PURE__*/_react.default.createElement(_icons.CloseIcon, {
|
|
86
|
+
color: colorScheme.white
|
|
87
|
+
})),
|
|
88
|
+
style: {
|
|
89
|
+
backgroundColor: colorScheme.nerdView.background,
|
|
90
|
+
paddingTop: insets.top
|
|
91
|
+
},
|
|
92
|
+
title: title,
|
|
93
|
+
titleColor: colorScheme.white
|
|
94
|
+
}), /*#__PURE__*/_react.default.createElement(AnimatedSectionList, {
|
|
95
|
+
ListHeaderComponent: entityCluster ? /*#__PURE__*/_react.default.createElement(_entityCluster.default, {
|
|
96
|
+
entityName: entityCluster === null || entityCluster === void 0 ? void 0 : entityCluster.entityName,
|
|
97
|
+
style: [styles.entityCluster, {
|
|
98
|
+
backgroundColor: colorScheme.nerdView.background
|
|
99
|
+
}],
|
|
100
|
+
testID: (0, _testID.concatTestID)(testID, 'entityCluster'),
|
|
101
|
+
textColor: colorScheme.white
|
|
102
|
+
}) : null,
|
|
103
|
+
onScroll: onScroll,
|
|
104
|
+
renderItem: _ref4 => {
|
|
105
|
+
let {
|
|
106
|
+
item,
|
|
107
|
+
section
|
|
108
|
+
} = _ref4;
|
|
109
|
+
return /*#__PURE__*/_react.default.createElement(_nerdModeItem.default, _extends({}, item, {
|
|
110
|
+
expandedAttributes: expandedAttributes,
|
|
111
|
+
labels: labels,
|
|
112
|
+
last: lastElementsForSection[section.title] === item.attributeKey,
|
|
113
|
+
onCopyToClipboard: onCopyToClipboard,
|
|
114
|
+
onExpand: onExpand,
|
|
115
|
+
scrollOffset: scrollOffset,
|
|
116
|
+
testID: (0, _testID.concatTestID)(testID, item.testID)
|
|
117
|
+
}));
|
|
118
|
+
},
|
|
119
|
+
renderSectionHeader: _ref5 => {
|
|
120
|
+
let {
|
|
121
|
+
section
|
|
122
|
+
} = _ref5;
|
|
123
|
+
return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
124
|
+
style: styles.sectionHeaderContainer,
|
|
125
|
+
testID: (0, _testID.concatTestID)(testID, section.title)
|
|
126
|
+
}, /*#__PURE__*/_react.default.createElement(_typography.default, {
|
|
127
|
+
color: colorScheme.white,
|
|
128
|
+
style: styles.sectionHeaderText
|
|
129
|
+
}, section.title));
|
|
130
|
+
},
|
|
131
|
+
scrollEventThrottle: 16,
|
|
132
|
+
sections: sections,
|
|
133
|
+
stickySectionHeadersEnabled: false,
|
|
134
|
+
style: {
|
|
135
|
+
backgroundColor: colorScheme.nerdView.background
|
|
136
|
+
},
|
|
137
|
+
testID: testID
|
|
138
|
+
}));
|
|
139
|
+
};
|
|
140
|
+
var _default = NerdModeScreen;
|
|
141
|
+
exports.default = _default;
|
|
142
|
+
//# sourceMappingURL=nerd-mode-screen.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_reactNativeGestureHandler","_reactNativeReanimated","_reactNativeSafeAreaContext","_nerdModeItem","_interopRequireDefault","_entityCluster","_navigationHeader","_icons","_typography","_colorSchemeContext","_contrastingStatusBar","_testID","obj","__esModule","default","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","_extends","assign","bind","target","i","arguments","length","source","apply","styles","StyleSheet","create","entityCluster","paddingHorizontal","paddingVertical","sectionHeaderContainer","justifyContent","marginTop","sectionHeaderText","opacity","AnimatedSectionList","Animated","createAnimatedComponent","SectionList","NerdModeScreen","_ref","sections","labels","onClose","onCopyToClipboard","testID","title","insets","useSafeAreaInsets","colorScheme","useAppColorScheme","scrollOffset","useSharedValue","expandedAttributes","setExpandedAttributes","useState","onExpand","expanded","prev","onScroll","useAnimatedScrollHandler","_ref2","contentOffset","value","y","lastElementsForSection","reduce","acc","_ref3","sectionTitle","data","lastElement","attributeKey","createElement","Fragment","backgroundColor","nerdView","background","leftItem","TouchableOpacity","onPress","concatTestID","CloseIcon","color","white","style","paddingTop","top","titleColor","ListHeaderComponent","entityName","textColor","renderItem","_ref4","item","section","last","renderSectionHeader","_ref5","View","scrollEventThrottle","stickySectionHeadersEnabled","_default","exports"],"sources":["nerd-mode-screen.tsx"],"sourcesContent":["import React, { FunctionComponent, useState } from 'react';\nimport { SectionList, StyleSheet, View } from 'react-native';\nimport { TouchableOpacity } from 'react-native-gesture-handler';\nimport Animated, { useAnimatedScrollHandler, useSharedValue } from 'react-native-reanimated';\nimport { useSafeAreaInsets } from 'react-native-safe-area-context';\n\nimport NerdModeItem, { NerdModeItemProps } from '..//nerd-view/nerd-mode-item';\nimport EntityCluster from '../entity/entity-cluster';\nimport NavigationHeader from '../header/navigation-header';\nimport { CloseIcon } from '../icons/icons';\nimport Typography from '../text/typography';\nimport { useAppColorScheme } from '../theme/color-scheme-context';\nimport ContrastingStatusBar from '../utils/contrasting-status-bar';\nimport { concatTestID } from '../utils/testID';\n\nconst styles = StyleSheet.create({\n entityCluster: {\n paddingHorizontal: 24,\n paddingVertical: 20,\n },\n sectionHeaderContainer: {\n justifyContent: 'center',\n marginTop: 20,\n paddingVertical: 16,\n },\n sectionHeaderText: {\n opacity: 0.7,\n paddingHorizontal: 20,\n },\n});\n\nexport type NerdModeSection = {\n data: Array<Omit<NerdModeItemProps, 'labels' | 'onCopyToClipboard'>>;\n title: string;\n};\n\nexport type NerdModeScreenProps = {\n entityCluster?: {\n entityName: string;\n };\n labels: {\n expand: string;\n collapse: string;\n };\n onClose: () => void;\n onCopyToClipboard: (value: string) => void;\n sections: NerdModeSection[];\n testID: string;\n title: string;\n};\n\nconst AnimatedSectionList = Animated.createAnimatedComponent(\n SectionList<Omit<NerdModeItemProps, 'labels' | 'onCopyToClipboard'>>,\n);\nconst NerdModeScreen: FunctionComponent<NerdModeScreenProps> = ({\n sections,\n labels,\n onClose,\n onCopyToClipboard,\n entityCluster,\n testID,\n title,\n}) => {\n const insets = useSafeAreaInsets();\n const colorScheme = useAppColorScheme();\n const scrollOffset = useSharedValue(0);\n const [expandedAttributes, setExpandedAttributes] = useState(0);\n\n // This is a bit of a hack. It's used to notify attributes that another attribute has been expanded\n // which will allow them to update their scroll offset accordingly.\n const onExpand = (expanded: boolean) => {\n setExpandedAttributes((prev) => (expanded ? prev + 1 : prev - 1));\n };\n\n const onScroll = useAnimatedScrollHandler({\n onScroll: ({ contentOffset }) => {\n scrollOffset.value = contentOffset.y;\n },\n });\n\n const lastElementsForSection = sections.reduce((acc, { title: sectionTitle, data }) => {\n const lastElement = data[data.length - 1];\n return { ...acc, [sectionTitle]: lastElement.attributeKey };\n }, {} as Record<string, string>);\n\n return (\n <>\n <ContrastingStatusBar backgroundColor={colorScheme.nerdView.background} />\n <NavigationHeader\n leftItem={\n <TouchableOpacity onPress={onClose} testID={concatTestID(testID, 'closeIcon')}>\n <CloseIcon color={colorScheme.white} />\n </TouchableOpacity>\n }\n style={{\n backgroundColor: colorScheme.nerdView.background,\n paddingTop: insets.top,\n }}\n title={title}\n titleColor={colorScheme.white}\n />\n <AnimatedSectionList\n ListHeaderComponent={\n entityCluster ? (\n <EntityCluster\n entityName={entityCluster?.entityName}\n style={[\n styles.entityCluster,\n {\n backgroundColor: colorScheme.nerdView.background,\n },\n ]}\n testID={concatTestID(testID, 'entityCluster')}\n textColor={colorScheme.white}\n />\n ) : null\n }\n onScroll={onScroll}\n renderItem={({ item, section }) => (\n <NerdModeItem\n {...item}\n expandedAttributes={expandedAttributes}\n labels={labels}\n last={lastElementsForSection[section.title] === item.attributeKey}\n onCopyToClipboard={onCopyToClipboard}\n onExpand={onExpand}\n scrollOffset={scrollOffset}\n testID={concatTestID(testID, item.testID)}\n />\n )}\n renderSectionHeader={({ section }) => {\n return (\n <View style={styles.sectionHeaderContainer} testID={concatTestID(testID, section.title)}>\n <Typography color={colorScheme.white} style={styles.sectionHeaderText}>\n {section.title}\n </Typography>\n </View>\n );\n }}\n scrollEventThrottle={16}\n sections={sections}\n stickySectionHeadersEnabled={false}\n style={{ backgroundColor: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AAE,KAAM;IACnChB,KAAK,EAAE;MAAEV,eAAe,EAAE1B,WAAW,CAAC2B,QAAQ,CAACC;IAAW,CAAE;IAC5DhC,MAAM,EAAEA;EAAO,EACf,CACD;AAEP,CAAC;AAAC,IAAAyD,QAAA,GAEa/D,cAAc;AAAAgE,OAAA,CAAA5G,OAAA,GAAA2G,QAAA"}
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
var _reactNativeSafeAreaContext = require("react-native-safe-area-context");
|
|
10
|
+
var _reactNativeVisionCamera = require("react-native-vision-camera");
|
|
11
|
+
var _accessibilityLanguage = require("../accessibility/accessibilityLanguage");
|
|
12
|
+
var _blurView = _interopRequireDefault(require("../blur/blur-view"));
|
|
13
|
+
var _buttons = require("../buttons");
|
|
14
|
+
var _cameraOverlay = _interopRequireDefault(require("../camera/camera-overlay"));
|
|
15
|
+
var _qrCodeScanner = _interopRequireDefault(require("../camera/qr-code-scanner"));
|
|
16
|
+
var _icons = require("../icons");
|
|
17
|
+
var _text = require("../text");
|
|
18
|
+
var _theme = require("../theme");
|
|
19
|
+
var _utils = require("../utils");
|
|
20
|
+
var _color = require("../utils/color");
|
|
21
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
22
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
23
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
24
|
+
const QRCodeScannerScreen = _ref => {
|
|
25
|
+
let {
|
|
26
|
+
codeTypes,
|
|
27
|
+
footer,
|
|
28
|
+
onQRCodeRead,
|
|
29
|
+
onClose,
|
|
30
|
+
overlayStyle,
|
|
31
|
+
noCameraView = null,
|
|
32
|
+
title
|
|
33
|
+
} = _ref;
|
|
34
|
+
const t = (0, _accessibilityLanguage.useAccessibilityTranslation)();
|
|
35
|
+
const insets = (0, _reactNativeSafeAreaContext.useSafeAreaInsets)();
|
|
36
|
+
const colorScheme = (0, _theme.useAppColorScheme)();
|
|
37
|
+
const footerView = (0, _react.useMemo)(() => {
|
|
38
|
+
if (!footer) {
|
|
39
|
+
return undefined;
|
|
40
|
+
}
|
|
41
|
+
if ( /*#__PURE__*/_react.default.isValidElement(footer)) {
|
|
42
|
+
return footer;
|
|
43
|
+
} else {
|
|
44
|
+
const FooterComponent = footer;
|
|
45
|
+
return /*#__PURE__*/_react.default.createElement(FooterComponent, null);
|
|
46
|
+
}
|
|
47
|
+
}, [footer]);
|
|
48
|
+
const minBottomBlurViewHeight = _reactNative.Dimensions.get('window').height * 0.15;
|
|
49
|
+
const device = (0, _reactNativeVisionCamera.useCameraDevice)('back');
|
|
50
|
+
if (!device) {
|
|
51
|
+
return noCameraView;
|
|
52
|
+
}
|
|
53
|
+
return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
54
|
+
style: styles.container
|
|
55
|
+
}, /*#__PURE__*/_react.default.createElement(_qrCodeScanner.default, {
|
|
56
|
+
cameraOverlay: /*#__PURE__*/_react.default.createElement(_cameraOverlay.default, {
|
|
57
|
+
style: overlayStyle
|
|
58
|
+
}),
|
|
59
|
+
codeTypes: codeTypes,
|
|
60
|
+
onQRCodeRead: onQRCodeRead,
|
|
61
|
+
style: _reactNative.StyleSheet.absoluteFill
|
|
62
|
+
}), /*#__PURE__*/_react.default.createElement(_utils.ContrastingStatusBar, {
|
|
63
|
+
backgroundColor: colorScheme.black
|
|
64
|
+
}), /*#__PURE__*/_react.default.createElement(_blurView.default, {
|
|
65
|
+
darkMode: true,
|
|
66
|
+
blurStyle: "soft",
|
|
67
|
+
style: [styles.topBlurView, {
|
|
68
|
+
backgroundColor: (0, _color.colorWithAlphaComponent)(colorScheme.black, 0.5)
|
|
69
|
+
}]
|
|
70
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
71
|
+
style: [styles.headerSection, {
|
|
72
|
+
top: insets.top
|
|
73
|
+
}]
|
|
74
|
+
}, /*#__PURE__*/_react.default.createElement(_buttons.GhostButton, {
|
|
75
|
+
icon: /*#__PURE__*/_react.default.createElement(_icons.CloseIcon, {
|
|
76
|
+
color: colorScheme.white
|
|
77
|
+
}),
|
|
78
|
+
onPress: onClose,
|
|
79
|
+
accessibilityLabel: t('accessibility.nav.close')
|
|
80
|
+
}))), /*#__PURE__*/_react.default.createElement(_blurView.default, {
|
|
81
|
+
darkMode: true,
|
|
82
|
+
blurStyle: "soft",
|
|
83
|
+
style: [styles.bottomBlurView, {
|
|
84
|
+
backgroundColor: (0, _color.colorWithAlphaComponent)(colorScheme.black, 0.5),
|
|
85
|
+
minHeight: minBottomBlurViewHeight,
|
|
86
|
+
paddingBottom: Math.max(insets.bottom, 32)
|
|
87
|
+
}]
|
|
88
|
+
}, /*#__PURE__*/_react.default.createElement(_text.Typography, {
|
|
89
|
+
align: "center",
|
|
90
|
+
style: styles.title,
|
|
91
|
+
color: colorScheme.white
|
|
92
|
+
}, title), footerView));
|
|
93
|
+
};
|
|
94
|
+
const styles = _reactNative.StyleSheet.create({
|
|
95
|
+
bottomBlurView: {
|
|
96
|
+
bottom: 0,
|
|
97
|
+
position: 'absolute',
|
|
98
|
+
width: '100%'
|
|
99
|
+
},
|
|
100
|
+
container: {
|
|
101
|
+
flex: 1
|
|
102
|
+
},
|
|
103
|
+
headerSection: {
|
|
104
|
+
paddingHorizontal: 22,
|
|
105
|
+
paddingTop: 16,
|
|
106
|
+
position: 'absolute'
|
|
107
|
+
},
|
|
108
|
+
title: {
|
|
109
|
+
marginTop: 32
|
|
110
|
+
},
|
|
111
|
+
topBlurView: {
|
|
112
|
+
height: '15%',
|
|
113
|
+
position: 'absolute',
|
|
114
|
+
top: 0,
|
|
115
|
+
width: '100%'
|
|
116
|
+
}
|
|
117
|
+
});
|
|
118
|
+
var _default = /*#__PURE__*/(0, _react.memo)(QRCodeScannerScreen);
|
|
119
|
+
exports.default = _default;
|
|
120
|
+
//# sourceMappingURL=qr-code-scanner-screen.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_reactNativeSafeAreaContext","_reactNativeVisionCamera","_accessibilityLanguage","_blurView","_interopRequireDefault","_buttons","_cameraOverlay","_qrCodeScanner","_icons","_text","_theme","_utils","_color","obj","__esModule","default","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","QRCodeScannerScreen","_ref","codeTypes","footer","onQRCodeRead","onClose","overlayStyle","noCameraView","title","t","useAccessibilityTranslation","insets","useSafeAreaInsets","colorScheme","useAppColorScheme","footerView","useMemo","undefined","React","isValidElement","FooterComponent","createElement","minBottomBlurViewHeight","Dimensions","height","device","useCameraDevice","View","style","styles","container","cameraOverlay","StyleSheet","absoluteFill","ContrastingStatusBar","backgroundColor","black","darkMode","blurStyle","topBlurView","colorWithAlphaComponent","headerSection","top","GhostButton","icon","CloseIcon","color","white","onPress","accessibilityLabel","bottomBlurView","minHeight","paddingBottom","Math","max","bottom","Typography","align","create","position","width","flex","paddingHorizontal","paddingTop","marginTop","_default","memo","exports"],"sources":["qr-code-scanner-screen.tsx"],"sourcesContent":["import React, { FunctionComponent, memo, ReactElement, useMemo } from 'react';\nimport { Dimensions, StyleProp, StyleSheet, View, ViewStyle } from 'react-native';\nimport { useSafeAreaInsets } from 'react-native-safe-area-context';\nimport { useCameraDevice } from 'react-native-vision-camera';\n\nimport { useAccessibilityTranslation } from '../accessibility/accessibilityLanguage';\nimport BlurView from '../blur/blur-view';\nimport { GhostButton } from '../buttons';\nimport CameraOverlay from '../camera/camera-overlay';\nimport QRCodeScanner, { QRCodeScannerProps } from '../camera/qr-code-scanner';\nimport { CloseIcon } from '../icons';\nimport { Typography } from '../text';\nimport { useAppColorScheme } from '../theme';\nimport { ContrastingStatusBar } from '../utils';\nimport { colorWithAlphaComponent } from '../utils/color';\n\nexport interface QRCodeScannerScreenProps {\n codeTypes?: QRCodeScannerProps['codeTypes'];\n footer?: React.ComponentType<any> | React.ReactElement;\n onQRCodeRead: QRCodeScannerProps['onQRCodeRead'];\n onClose: () => void;\n overlayStyle?: StyleProp<ViewStyle>;\n noCameraView?: JSX.Element;\n title: ReactElement | string;\n}\n\nconst QRCodeScannerScreen: FunctionComponent<QRCodeScannerScreenProps> = ({\n codeTypes,\n footer,\n onQRCodeRead,\n onClose,\n overlayStyle,\n noCameraView = null,\n title,\n}) => {\n const t = useAccessibilityTranslation();\n const insets = useSafeAreaInsets();\n const colorScheme = useAppColorScheme();\n\n const footerView: React.ReactElement | undefined = useMemo(() => {\n if (!footer) {\n return undefined;\n }\n if (React.isValidElement(footer)) {\n return footer;\n } else {\n const FooterComponent = footer as React.ComponentType<any>;\n return <FooterComponent />;\n }\n }, [footer]);\n\n const minBottomBlurViewHeight = Dimensions.get('window').height * 0.15;\n\n const device = useCameraDevice('back');\n if (!device) {\n return noCameraView;\n }\n\n return (\n <View style={styles.container}>\n <QRCodeScanner\n cameraOverlay={<CameraOverlay style={overlayStyle} />}\n codeTypes={codeTypes}\n onQRCodeRead={onQRCodeRead}\n style={StyleSheet.absoluteFill}\n />\n <ContrastingStatusBar backgroundColor={colorScheme.black} />\n <BlurView\n darkMode={true}\n blurStyle=\"soft\"\n style={[styles.topBlurView, { backgroundColor: colorWithAlphaComponent(colorScheme.black, 0.5) }]}>\n <View style={[styles.headerSection, { top: insets.top }]}>\n <GhostButton\n icon={<CloseIcon color={colorScheme.white} />}\n onPress={onClose}\n accessibilityLabel={t('accessibility.nav.close')}\n />\n </View>\n </BlurView>\n <BlurView\n darkMode={true}\n blurStyle=\"soft\"\n style={[\n styles.bottomBlurView,\n {\n backgroundColor: colorWithAlphaComponent(colorScheme.black, 0.5),\n minHeight: minBottomBlurViewHeight,\n paddingBottom: Math.max(insets.bottom, 32),\n },\n ]}>\n <Typography align=\"center\" style={styles.title} color={colorScheme.white}>\n {title}\n </Typography>\n {footerView}\n </BlurView>\n </View>\n );\n};\nconst styles = StyleSheet.create({\n bottomBlurView: {\n bottom: 0,\n position: 'absolute',\n width: '100%',\n },\n container: {\n flex: 1,\n },\n headerSection: {\n paddingHorizontal: 22,\n paddingTop: 16,\n position: 'absolute',\n },\n title: {\n marginTop: 32,\n },\n topBlurView: {\n height: '15%',\n position: 'absolute',\n top: 0,\n width: '100%',\n },\n});\n\nexport default memo(QRCodeScannerScreen);\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,2BAAA,GAAAF,OAAA;AACA,IAAAG,wBAAA,GAAAH,OAAA;AAEA,IAAAI,sBAAA,GAAAJ,OAAA;AACA,IAAAK,SAAA,GAAAC,sBAAA,CAAAN,OAAA;AACA,IAAAO,QAAA,GAAAP,OAAA;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
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
var _reactNativeSafeAreaContext = require("react-native-safe-area-context");
|
|
10
|
+
var _navigationHeader = _interopRequireDefault(require("../header/navigation-header"));
|
|
11
|
+
var _listTitleHeader = _interopRequireDefault(require("../list/list-title-header"));
|
|
12
|
+
var _colorSchemeContext = require("../theme/color-scheme-context");
|
|
13
|
+
var _onScrollHeaderState = require("../utils/hooks/header/on-scroll-header-state");
|
|
14
|
+
var _listContentInset = require("../utils/hooks/list/list-content-inset");
|
|
15
|
+
var _testID = require("../utils/testID");
|
|
16
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
18
|
+
const ScrollViewScreen = _ref => {
|
|
19
|
+
let {
|
|
20
|
+
children,
|
|
21
|
+
header,
|
|
22
|
+
modalPresentation,
|
|
23
|
+
scrollView,
|
|
24
|
+
style,
|
|
25
|
+
testID,
|
|
26
|
+
...viewProps
|
|
27
|
+
} = _ref;
|
|
28
|
+
const colorScheme = (0, _colorSchemeContext.useAppColorScheme)();
|
|
29
|
+
const {
|
|
30
|
+
top
|
|
31
|
+
} = (0, _reactNativeSafeAreaContext.useSafeAreaInsets)();
|
|
32
|
+
const contentInsetsStyle = (0, _listContentInset.useListContentInset)({
|
|
33
|
+
additionalBottomPadding: 24,
|
|
34
|
+
headerHeight: modalPresentation && _reactNative.Platform.OS === 'ios' ? 63 : 48,
|
|
35
|
+
modalPresentation
|
|
36
|
+
});
|
|
37
|
+
const {
|
|
38
|
+
titleVisible,
|
|
39
|
+
onScroll
|
|
40
|
+
} = (0, _onScrollHeaderState.useOnScrollHeaderState)();
|
|
41
|
+
const {
|
|
42
|
+
contentContainerStyle,
|
|
43
|
+
...scrollViewProps
|
|
44
|
+
} = scrollView !== null && scrollView !== void 0 ? scrollView : {};
|
|
45
|
+
let headerPaddingStyle;
|
|
46
|
+
if (!modalPresentation || _reactNative.Platform.OS === 'android') {
|
|
47
|
+
headerPaddingStyle = {
|
|
48
|
+
paddingTop: top
|
|
49
|
+
};
|
|
50
|
+
} else if (modalPresentation && !header.modalHandleVisible && _reactNative.Platform.OS === 'ios') {
|
|
51
|
+
headerPaddingStyle = styles.modalHeaderWithoutHandle;
|
|
52
|
+
}
|
|
53
|
+
return /*#__PURE__*/_react.default.createElement(_reactNative.View, _extends({
|
|
54
|
+
style: [styles.container, {
|
|
55
|
+
backgroundColor: colorScheme.background
|
|
56
|
+
}, style],
|
|
57
|
+
testID: testID
|
|
58
|
+
}, viewProps), /*#__PURE__*/_react.default.createElement(_reactNative.ScrollView, _extends({
|
|
59
|
+
contentContainerStyle: [styles.contentContainer, contentInsetsStyle, contentContainerStyle],
|
|
60
|
+
onScroll: onScroll,
|
|
61
|
+
scrollEventThrottle: 100
|
|
62
|
+
}, scrollViewProps), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
63
|
+
style: styles.content,
|
|
64
|
+
testID: (0, _testID.concatTestID)(testID, 'content')
|
|
65
|
+
}, !header.static && /*#__PURE__*/_react.default.createElement(_listTitleHeader.default, {
|
|
66
|
+
title: header.title
|
|
67
|
+
}), children)), /*#__PURE__*/_react.default.createElement(_navigationHeader.default, _extends({
|
|
68
|
+
animate: true,
|
|
69
|
+
blurred: true,
|
|
70
|
+
style: [styles.header, headerPaddingStyle],
|
|
71
|
+
titleVisible: header.static || titleVisible
|
|
72
|
+
}, header)));
|
|
73
|
+
};
|
|
74
|
+
const styles = _reactNative.StyleSheet.create({
|
|
75
|
+
container: {
|
|
76
|
+
flex: 1
|
|
77
|
+
},
|
|
78
|
+
content: {
|
|
79
|
+
flex: 1
|
|
80
|
+
},
|
|
81
|
+
contentContainer: {
|
|
82
|
+
flexGrow: 1
|
|
83
|
+
},
|
|
84
|
+
header: {
|
|
85
|
+
position: 'absolute',
|
|
86
|
+
width: '100%'
|
|
87
|
+
},
|
|
88
|
+
modalHeaderWithoutHandle: {
|
|
89
|
+
paddingTop: 15
|
|
90
|
+
}
|
|
91
|
+
});
|
|
92
|
+
var _default = ScrollViewScreen;
|
|
93
|
+
exports.default = _default;
|
|
94
|
+
//# sourceMappingURL=scroll-view-screen.js.map
|