@procivis/one-react-native-components 0.2.54 → 0.3.22
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 +3 -8
- package/lib/commonjs/components/backup/index.js.map +1 -1
- package/lib/commonjs/components/backup/preview-credentials.js +18 -22
- package/lib/commonjs/components/backup/preview-credentials.js.map +1 -1
- package/lib/commonjs/components/credential/credential.js +11 -12
- package/lib/commonjs/components/credential/credential.js.map +1 -1
- package/lib/commonjs/components/credential/index.js.map +1 -1
- package/lib/commonjs/components/entity/EntityButtons.js +20 -25
- package/lib/commonjs/components/entity/EntityButtons.js.map +1 -1
- package/lib/commonjs/components/entity/entity-attributes.js +15 -17
- package/lib/commonjs/components/entity/entity-attributes.js.map +1 -1
- package/lib/commonjs/components/entity/entity-details-with-buttons.js +18 -19
- package/lib/commonjs/components/entity/entity-details-with-buttons.js.map +1 -1
- package/lib/commonjs/components/entity/entity-details.js +12 -14
- package/lib/commonjs/components/entity/entity-details.js.map +1 -1
- package/lib/commonjs/components/entity/index.js +2 -2
- package/lib/commonjs/components/entity/index.js.map +1 -1
- package/lib/commonjs/components/history/history-details-screen.js +67 -0
- package/lib/commonjs/components/history/history-details-screen.js.map +1 -0
- package/lib/commonjs/components/history/history-list-item-icon.js +94 -0
- package/lib/commonjs/components/history/history-list-item-icon.js.map +1 -0
- package/lib/commonjs/components/history/history-list-item.js +45 -0
- package/lib/commonjs/components/history/history-list-item.js.map +1 -0
- package/lib/commonjs/components/history/history-list-screen.js +121 -0
- package/lib/commonjs/components/history/history-list-screen.js.map +1 -0
- package/lib/commonjs/components/history/history-list-section-header.js +39 -0
- package/lib/commonjs/components/history/history-list-section-header.js.map +1 -0
- package/lib/commonjs/components/history/history-list.js +100 -0
- package/lib/commonjs/components/history/history-list.js.map +1 -0
- package/lib/commonjs/components/history/index.js +72 -0
- package/lib/commonjs/components/history/index.js.map +1 -0
- package/lib/commonjs/components/index.js +11 -0
- package/lib/commonjs/components/index.js.map +1 -1
- package/lib/commonjs/components/navigation/header-buttons.js +21 -25
- package/lib/commonjs/components/navigation/header-buttons.js.map +1 -1
- package/lib/commonjs/components/navigation/index.js.map +1 -1
- package/lib/commonjs/components/proof-request/group.js +4 -5
- package/lib/commonjs/components/proof-request/group.js.map +1 -1
- package/lib/commonjs/components/proof-request/index.js.map +1 -1
- package/lib/commonjs/components/proof-request/select-credential.js +11 -12
- package/lib/commonjs/components/proof-request/select-credential.js.map +1 -1
- package/lib/commonjs/components/proof-request/share-credential.js +23 -27
- package/lib/commonjs/components/proof-request/share-credential.js.map +1 -1
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/normalize-color.d.js.map +1 -1
- package/lib/commonjs/ui-components/accessibility/accessibility.js +11 -7
- package/lib/commonjs/ui-components/accessibility/accessibility.js.map +1 -1
- package/lib/commonjs/ui-components/accessibility/accessibilityHistory.js +8 -12
- package/lib/commonjs/ui-components/accessibility/accessibilityHistory.js.map +1 -1
- package/lib/commonjs/ui-components/accessibility/accessibilityHistoryWrappers.js +15 -17
- package/lib/commonjs/ui-components/accessibility/accessibilityHistoryWrappers.js.map +1 -1
- package/lib/commonjs/ui-components/accessibility/accessibilityLanguage.js +8 -10
- package/lib/commonjs/ui-components/accessibility/accessibilityLanguage.js.map +1 -1
- package/lib/commonjs/ui-components/accessibility/index.js +1 -30
- package/lib/commonjs/ui-components/accessibility/index.js.map +1 -1
- package/lib/commonjs/ui-components/accessibility/locale/index.js +2 -3
- package/lib/commonjs/ui-components/accessibility/locale/index.js.map +1 -1
- package/lib/commonjs/ui-components/accessibility/locale.test.js.map +1 -1
- package/lib/commonjs/ui-components/action-modal/ActionModal.js +9 -11
- package/lib/commonjs/ui-components/action-modal/ActionModal.js.map +1 -1
- package/lib/commonjs/ui-components/action-modal/index.js +1 -1
- package/lib/commonjs/ui-components/action-modal/index.js.map +1 -1
- package/lib/commonjs/ui-components/activity-indicator/activity-indicator.js +10 -12
- package/lib/commonjs/ui-components/activity-indicator/activity-indicator.js.map +1 -1
- package/lib/commonjs/ui-components/activity-indicator/index.js +1 -1
- package/lib/commonjs/ui-components/activity-indicator/index.js.map +1 -1
- package/lib/commonjs/ui-components/blur/blur-view.js +13 -15
- package/lib/commonjs/ui-components/blur/blur-view.js.map +1 -1
- package/lib/commonjs/ui-components/blur/index.js +2 -2
- package/lib/commonjs/ui-components/blur/index.js.map +1 -1
- package/lib/commonjs/ui-components/buttons/back-button.js +12 -15
- package/lib/commonjs/ui-components/buttons/back-button.js.map +1 -1
- package/lib/commonjs/ui-components/buttons/button.js +19 -22
- package/lib/commonjs/ui-components/buttons/button.js.map +1 -1
- package/lib/commonjs/ui-components/buttons/connectivity-button.js +16 -18
- package/lib/commonjs/ui-components/buttons/connectivity-button.js.map +1 -1
- package/lib/commonjs/ui-components/buttons/filter-button.js +8 -10
- package/lib/commonjs/ui-components/buttons/filter-button.js.map +1 -1
- package/lib/commonjs/ui-components/buttons/ghost-button.js +12 -14
- package/lib/commonjs/ui-components/buttons/ghost-button.js.map +1 -1
- package/lib/commonjs/ui-components/buttons/hold-button.js +244 -0
- package/lib/commonjs/ui-components/buttons/hold-button.js.map +1 -0
- package/lib/commonjs/ui-components/buttons/index.js +9 -37
- package/lib/commonjs/ui-components/buttons/index.js.map +1 -1
- package/lib/commonjs/ui-components/buttons/scan-button.js +7 -9
- package/lib/commonjs/ui-components/buttons/scan-button.js.map +1 -1
- package/lib/commonjs/ui-components/camera/camera-overlay.js +11 -14
- package/lib/commonjs/ui-components/camera/camera-overlay.js.map +1 -1
- package/lib/commonjs/ui-components/camera/index.js +2 -2
- package/lib/commonjs/ui-components/camera/index.js.map +1 -1
- package/lib/commonjs/ui-components/camera/qr-code-scanner.js +12 -14
- package/lib/commonjs/ui-components/camera/qr-code-scanner.js.map +1 -1
- package/lib/commonjs/ui-components/control/checkbox.js +11 -12
- package/lib/commonjs/ui-components/control/checkbox.js.map +1 -1
- package/lib/commonjs/ui-components/control/index.js.map +1 -1
- package/lib/commonjs/ui-components/control/switch.js +10 -12
- package/lib/commonjs/ui-components/control/switch.js.map +1 -1
- package/lib/commonjs/ui-components/credential/card/credential-card.js +22 -26
- package/lib/commonjs/ui-components/credential/card/credential-card.js.map +1 -1
- package/lib/commonjs/ui-components/credential/card/credential-details-card.js +30 -35
- package/lib/commonjs/ui-components/credential/card/credential-details-card.js.map +1 -1
- package/lib/commonjs/ui-components/credential/card/credential-details-list-item.js +27 -20
- package/lib/commonjs/ui-components/credential/card/credential-details-list-item.js.map +1 -1
- package/lib/commonjs/ui-components/credential/card/credential-header.js +25 -24
- package/lib/commonjs/ui-components/credential/card/credential-header.js.map +1 -1
- package/lib/commonjs/ui-components/credential/card/credential-image-carousel.js +27 -29
- package/lib/commonjs/ui-components/credential/card/credential-image-carousel.js.map +1 -1
- package/lib/commonjs/ui-components/credential/card/index.js +6 -41
- package/lib/commonjs/ui-components/credential/card/index.js.map +1 -1
- package/lib/commonjs/ui-components/credential/credential-attribute-item.js +51 -60
- package/lib/commonjs/ui-components/credential/credential-attribute-item.js.map +1 -1
- package/lib/commonjs/ui-components/credential/credential-carousel-images.js +18 -21
- package/lib/commonjs/ui-components/credential/credential-carousel-images.js.map +1 -1
- package/lib/commonjs/ui-components/credential/index.js +2 -25
- package/lib/commonjs/ui-components/credential/index.js.map +1 -1
- package/lib/commonjs/ui-components/credential/selector-status.js +3 -4
- package/lib/commonjs/ui-components/credential/selector-status.js.map +1 -1
- package/lib/commonjs/ui-components/credential/selector.js +8 -10
- package/lib/commonjs/ui-components/credential/selector.js.map +1 -1
- package/lib/commonjs/ui-components/detail/detail.js +12 -14
- package/lib/commonjs/ui-components/detail/detail.js.map +1 -1
- package/lib/commonjs/ui-components/detail/index.js +1 -1
- package/lib/commonjs/ui-components/detail/index.js.map +1 -1
- package/lib/commonjs/ui-components/entity/avatar.js +14 -16
- package/lib/commonjs/ui-components/entity/avatar.js.map +1 -1
- package/lib/commonjs/ui-components/entity/entity-cluster.js +15 -18
- package/lib/commonjs/ui-components/entity/entity-cluster.js.map +1 -1
- package/lib/commonjs/ui-components/entity/index.js +2 -2
- package/lib/commonjs/ui-components/entity/index.js.map +1 -1
- package/lib/commonjs/ui-components/header/focus-aware-status-bar.js +3 -4
- package/lib/commonjs/ui-components/header/focus-aware-status-bar.js.map +1 -1
- package/lib/commonjs/ui-components/header/foldable-header.js +14 -17
- package/lib/commonjs/ui-components/header/foldable-header.js.map +1 -1
- package/lib/commonjs/ui-components/header/header.js +12 -14
- package/lib/commonjs/ui-components/header/header.js.map +1 -1
- package/lib/commonjs/ui-components/header/index.js +4 -24
- package/lib/commonjs/ui-components/header/index.js.map +1 -1
- package/lib/commonjs/ui-components/header/navigation-header.js +27 -33
- package/lib/commonjs/ui-components/header/navigation-header.js.map +1 -1
- package/lib/commonjs/ui-components/history/data-item.js +30 -23
- package/lib/commonjs/ui-components/history/data-item.js.map +1 -1
- package/lib/commonjs/ui-components/history/history-details.js +181 -0
- package/lib/commonjs/ui-components/history/history-details.js.map +1 -0
- package/lib/commonjs/ui-components/history/{history-list-item.js → history-item.js} +47 -26
- package/lib/commonjs/ui-components/history/history-item.js.map +1 -0
- package/lib/commonjs/ui-components/history/history-section-header.js +7 -9
- package/lib/commonjs/ui-components/history/history-section-header.js.map +1 -1
- package/lib/commonjs/ui-components/history/history-section-list-item.js +13 -12
- package/lib/commonjs/ui-components/history/history-section-list-item.js.map +1 -1
- package/lib/commonjs/ui-components/history/index.js +30 -9
- package/lib/commonjs/ui-components/history/index.js.map +1 -1
- package/lib/commonjs/ui-components/icons/connectivity.js +19 -24
- package/lib/commonjs/ui-components/icons/connectivity.js.map +1 -1
- package/lib/commonjs/ui-components/icons/credential.js +60 -71
- package/lib/commonjs/ui-components/icons/credential.js.map +1 -1
- package/lib/commonjs/ui-components/icons/entity.js +7 -8
- package/lib/commonjs/ui-components/icons/entity.js.map +1 -1
- package/lib/commonjs/ui-components/icons/history.js +113 -133
- package/lib/commonjs/ui-components/icons/history.js.map +1 -1
- package/lib/commonjs/ui-components/icons/icons.js +73 -90
- package/lib/commonjs/ui-components/icons/icons.js.map +1 -1
- package/lib/commonjs/ui-components/icons/index.js.map +1 -1
- package/lib/commonjs/ui-components/icons/input.js +3 -3
- package/lib/commonjs/ui-components/icons/input.js.map +1 -1
- package/lib/commonjs/ui-components/icons/keypad.js +69 -81
- package/lib/commonjs/ui-components/icons/keypad.js.map +1 -1
- package/lib/commonjs/ui-components/icons/loader.js +4 -4
- package/lib/commonjs/ui-components/icons/loader.js.map +1 -1
- package/lib/commonjs/ui-components/icons/nerd-view.js +6 -9
- package/lib/commonjs/ui-components/icons/nerd-view.js.map +1 -1
- package/lib/commonjs/ui-components/icons/selector.js +8 -9
- package/lib/commonjs/ui-components/icons/selector.js.map +1 -1
- package/lib/commonjs/ui-components/icons/wallet.js +16 -19
- package/lib/commonjs/ui-components/icons/wallet.js.map +1 -1
- package/lib/commonjs/ui-components/image/image-or-component.js +15 -18
- package/lib/commonjs/ui-components/image/image-or-component.js.map +1 -1
- package/lib/commonjs/ui-components/image/index.js +2 -9
- package/lib/commonjs/ui-components/image/index.js.map +1 -1
- package/lib/commonjs/ui-components/index.js.map +1 -1
- package/lib/commonjs/ui-components/input/index.js +2 -2
- package/lib/commonjs/ui-components/input/index.js.map +1 -1
- package/lib/commonjs/ui-components/input/radio-group.js +28 -25
- package/lib/commonjs/ui-components/input/radio-group.js.map +1 -1
- package/lib/commonjs/ui-components/input/selection-input.js +27 -38
- package/lib/commonjs/ui-components/input/selection-input.js.map +1 -1
- package/lib/commonjs/ui-components/input/text-input.js +25 -28
- package/lib/commonjs/ui-components/input/text-input.js.map +1 -1
- package/lib/commonjs/ui-components/list/index.js +20 -2
- package/lib/commonjs/ui-components/list/index.js.map +1 -1
- package/lib/commonjs/ui-components/list/list-page-loading-indicator.js +14 -0
- package/lib/commonjs/ui-components/list/list-page-loading-indicator.js.map +1 -0
- package/lib/commonjs/ui-components/list/list-section-header.js +10 -12
- package/lib/commonjs/ui-components/list/list-section-header.js.map +1 -1
- package/lib/commonjs/ui-components/list/list-title-header.js +6 -8
- package/lib/commonjs/ui-components/list/list-title-header.js.map +1 -1
- package/lib/commonjs/ui-components/list/wallet/empty-list.js +73 -0
- package/lib/commonjs/ui-components/list/wallet/empty-list.js.map +1 -0
- package/lib/commonjs/ui-components/list/wallet/empty-search-result.js +41 -0
- package/lib/commonjs/ui-components/list/wallet/empty-search-result.js.map +1 -0
- package/lib/commonjs/ui-components/list/wallet/index.js +21 -0
- package/lib/commonjs/ui-components/list/wallet/index.js.map +1 -0
- package/lib/commonjs/ui-components/loader/index.js +2 -2
- package/lib/commonjs/ui-components/loader/index.js.map +1 -1
- package/lib/commonjs/ui-components/loader/loader.js +17 -17
- package/lib/commonjs/ui-components/loader/loader.js.map +1 -1
- package/lib/commonjs/ui-components/loader/loading-result.js +22 -21
- package/lib/commonjs/ui-components/loader/loading-result.js.map +1 -1
- package/lib/commonjs/ui-components/nerd-view/index.js +2 -8
- package/lib/commonjs/ui-components/nerd-view/index.js.map +1 -1
- package/lib/commonjs/ui-components/nerd-view/nerd-mode-item.js +37 -41
- package/lib/commonjs/ui-components/nerd-view/nerd-mode-item.js.map +1 -1
- package/lib/commonjs/ui-components/pin/index.js +2 -2
- package/lib/commonjs/ui-components/pin/index.js.map +1 -1
- package/lib/commonjs/ui-components/pin/keypad.js +19 -23
- package/lib/commonjs/ui-components/pin/keypad.js.map +1 -1
- package/lib/commonjs/ui-components/pin/pin-code-screen.js +19 -21
- package/lib/commonjs/ui-components/pin/pin-code-screen.js.map +1 -1
- package/lib/commonjs/ui-components/pin/pin-lock-animation.js +1 -2
- package/lib/commonjs/ui-components/pin/pin-lock-animation.js.map +1 -1
- package/lib/commonjs/ui-components/pin/pin-lock.js +10 -12
- package/lib/commonjs/ui-components/pin/pin-lock.js.map +1 -1
- package/lib/commonjs/ui-components/pin/pins.js +8 -9
- package/lib/commonjs/ui-components/pin/pins.js.map +1 -1
- package/lib/commonjs/ui-components/screens/backup-screen.js +15 -18
- package/lib/commonjs/ui-components/screens/backup-screen.js.map +1 -1
- package/lib/commonjs/ui-components/screens/image-preview-screen.js +12 -14
- package/lib/commonjs/ui-components/screens/image-preview-screen.js.map +1 -1
- package/lib/commonjs/ui-components/screens/index.js +8 -49
- package/lib/commonjs/ui-components/screens/index.js.map +1 -1
- package/lib/commonjs/ui-components/screens/nerd-mode-screen.js +34 -41
- package/lib/commonjs/ui-components/screens/nerd-mode-screen.js.map +1 -1
- package/lib/commonjs/ui-components/screens/qr-code-scanner-screen.js +14 -16
- package/lib/commonjs/ui-components/screens/qr-code-scanner-screen.js.map +1 -1
- package/lib/commonjs/ui-components/screens/scroll-view-screen.js +12 -14
- package/lib/commonjs/ui-components/screens/scroll-view-screen.js.map +1 -1
- package/lib/commonjs/ui-components/screens/section-list-screen.js +13 -15
- package/lib/commonjs/ui-components/screens/section-list-screen.js.map +1 -1
- package/lib/commonjs/ui-components/searchbar/animated-search-bar.js +10 -12
- package/lib/commonjs/ui-components/searchbar/animated-search-bar.js.map +1 -1
- package/lib/commonjs/ui-components/searchbar/index.js +2 -2
- package/lib/commonjs/ui-components/searchbar/index.js.map +1 -1
- package/lib/commonjs/ui-components/searchbar/search-bar.js +15 -17
- package/lib/commonjs/ui-components/searchbar/search-bar.js.map +1 -1
- package/lib/commonjs/ui-components/settings/button-setting.js +14 -16
- package/lib/commonjs/ui-components/settings/button-setting.js.map +1 -1
- package/lib/commonjs/ui-components/settings/index.js +2 -2
- package/lib/commonjs/ui-components/settings/index.js.map +1 -1
- package/lib/commonjs/ui-components/settings/setting-item-separator.js +6 -8
- package/lib/commonjs/ui-components/settings/setting-item-separator.js.map +1 -1
- package/lib/commonjs/ui-components/settings/setting-item.js +11 -13
- package/lib/commonjs/ui-components/settings/setting-item.js.map +1 -1
- package/lib/commonjs/ui-components/settings/settings-button.js +7 -9
- package/lib/commonjs/ui-components/settings/settings-button.js.map +1 -1
- package/lib/commonjs/ui-components/settings/switch-setting.js +11 -13
- package/lib/commonjs/ui-components/settings/switch-setting.js.map +1 -1
- package/lib/commonjs/ui-components/state/error-screen.js +10 -12
- package/lib/commonjs/ui-components/state/error-screen.js.map +1 -1
- package/lib/commonjs/ui-components/state/index.js +2 -2
- package/lib/commonjs/ui-components/state/index.js.map +1 -1
- package/lib/commonjs/ui-components/text/base.js +14 -16
- package/lib/commonjs/ui-components/text/base.js.map +1 -1
- package/lib/commonjs/ui-components/text/font.js +11 -13
- package/lib/commonjs/ui-components/text/font.js.map +1 -1
- package/lib/commonjs/ui-components/text/index.js +2 -9
- package/lib/commonjs/ui-components/text/index.js.map +1 -1
- package/lib/commonjs/ui-components/text/typography.js +10 -13
- package/lib/commonjs/ui-components/text/typography.js.map +1 -1
- package/lib/commonjs/ui-components/theme/color-scheme-context.js +2 -1
- package/lib/commonjs/ui-components/theme/color-scheme-context.js.map +1 -1
- package/lib/commonjs/ui-components/theme/color-scheme.js.map +1 -1
- package/lib/commonjs/ui-components/theme/index.js.map +1 -1
- package/lib/commonjs/utils/array.js.map +1 -1
- package/lib/commonjs/utils/backup.js.map +1 -1
- package/lib/commonjs/utils/color.js +1 -1
- package/lib/commonjs/utils/color.js.map +1 -1
- package/lib/commonjs/utils/contrasting-status-bar.js +8 -10
- package/lib/commonjs/utils/contrasting-status-bar.js.map +1 -1
- package/lib/commonjs/utils/date.js +3 -3
- package/lib/commonjs/utils/date.js.map +1 -1
- package/lib/commonjs/utils/filtering.js +11 -0
- package/lib/commonjs/utils/filtering.js.map +1 -0
- package/lib/commonjs/utils/history.js +76 -0
- package/lib/commonjs/utils/history.js.map +1 -0
- package/lib/commonjs/utils/hooks/connectivity/connectivity.js +37 -23
- package/lib/commonjs/utils/hooks/connectivity/connectivity.js.map +1 -1
- package/lib/commonjs/utils/hooks/connectivity/connectivity.test.js +6 -0
- package/lib/commonjs/utils/hooks/connectivity/connectivity.test.js.map +1 -1
- package/lib/commonjs/utils/hooks/core/backup.js +31 -31
- package/lib/commonjs/utils/hooks/core/backup.js.map +1 -1
- package/lib/commonjs/utils/hooks/core/cache.js +44 -0
- package/lib/commonjs/utils/hooks/core/cache.js.map +1 -0
- package/lib/commonjs/utils/hooks/core/core-config.js +15 -1
- package/lib/commonjs/utils/hooks/core/core-config.js.map +1 -1
- package/lib/commonjs/utils/hooks/core/core-context.js +15 -10
- package/lib/commonjs/utils/hooks/core/core-context.js.map +1 -1
- package/lib/commonjs/utils/hooks/core/core-init.js +18 -12
- package/lib/commonjs/utils/hooks/core/core-init.js.map +1 -1
- package/lib/commonjs/utils/hooks/core/credential-schemas.js +16 -27
- package/lib/commonjs/utils/hooks/core/credential-schemas.js.map +1 -1
- package/lib/commonjs/utils/hooks/core/credentials.js +27 -37
- package/lib/commonjs/utils/hooks/core/credentials.js.map +1 -1
- package/lib/commonjs/utils/hooks/core/dids.js +4 -6
- package/lib/commonjs/utils/hooks/core/dids.js.map +1 -1
- package/lib/commonjs/utils/hooks/core/error-code.js +3 -4
- package/lib/commonjs/utils/hooks/core/error-code.js.map +1 -1
- package/lib/commonjs/utils/hooks/core/history.js +5 -37
- package/lib/commonjs/utils/hooks/core/history.js.map +1 -1
- package/lib/commonjs/utils/hooks/core/index.js +11 -0
- package/lib/commonjs/utils/hooks/core/index.js.map +1 -1
- package/lib/commonjs/utils/hooks/core/proof-schemas.js +23 -38
- package/lib/commonjs/utils/hooks/core/proof-schemas.js.map +1 -1
- package/lib/commonjs/utils/hooks/core/proofs.js +107 -76
- package/lib/commonjs/utils/hooks/core/proofs.js.map +1 -1
- package/lib/commonjs/utils/hooks/core/query.js +1 -2
- package/lib/commonjs/utils/hooks/core/query.js.map +1 -1
- package/lib/commonjs/utils/hooks/core/trust-entity.js +8 -4
- package/lib/commonjs/utils/hooks/core/trust-entity.js.map +1 -1
- package/lib/commonjs/utils/hooks/credential-card/credential-card-expanding.js.map +1 -1
- package/lib/commonjs/utils/hooks/header/on-scroll-header-state.js +1 -2
- package/lib/commonjs/utils/hooks/header/on-scroll-header-state.js.map +1 -1
- package/lib/commonjs/utils/hooks/http/client.js.map +1 -1
- package/lib/commonjs/utils/hooks/index.js.map +1 -1
- package/lib/commonjs/utils/hooks/list/list-content-inset.js +9 -10
- package/lib/commonjs/utils/hooks/list/list-content-inset.js.map +1 -1
- package/lib/commonjs/utils/hooks/navigation/before-remove.js.map +1 -1
- package/lib/commonjs/utils/hooks/navigation/close-button-timeout.js.map +1 -1
- package/lib/commonjs/utils/hooks/navigation/deep-link.js +3 -4
- package/lib/commonjs/utils/hooks/navigation/deep-link.js.map +1 -1
- package/lib/commonjs/utils/hooks/navigation/index.js.map +1 -1
- package/lib/commonjs/utils/hooks/navigation/open-settings.js +1 -2
- package/lib/commonjs/utils/hooks/navigation/open-settings.js.map +1 -1
- package/lib/commonjs/utils/hooks/pin-security/pin-security.js +1 -2
- package/lib/commonjs/utils/hooks/pin-security/pin-security.js.map +1 -1
- package/lib/commonjs/utils/hooks/revocation/credential-status.js +17 -26
- package/lib/commonjs/utils/hooks/revocation/credential-status.js.map +1 -1
- package/lib/commonjs/utils/index.js +37 -1
- package/lib/commonjs/utils/index.js.map +1 -1
- package/lib/commonjs/utils/navigation.js +5 -5
- package/lib/commonjs/utils/navigation.js.map +1 -1
- package/lib/commonjs/utils/parsers/credential-images.js +1 -1
- package/lib/commonjs/utils/parsers/credential-images.js.map +1 -1
- package/lib/commonjs/utils/parsers/credential-sharing.js +16 -20
- package/lib/commonjs/utils/parsers/credential-sharing.js.map +1 -1
- package/lib/commonjs/utils/parsers/credential.js +16 -26
- package/lib/commonjs/utils/parsers/credential.js.map +1 -1
- package/lib/commonjs/utils/parsers/index.js +11 -0
- package/lib/commonjs/utils/parsers/index.js.map +1 -1
- package/lib/commonjs/utils/parsers/query.js +3 -2
- package/lib/commonjs/utils/parsers/query.js.map +1 -1
- package/lib/commonjs/utils/parsers/universal-links.js +33 -0
- package/lib/commonjs/utils/parsers/universal-links.js.map +1 -0
- package/lib/commonjs/utils/parsers/universal-links.test.js +40 -0
- package/lib/commonjs/utils/parsers/universal-links.test.js.map +1 -0
- package/lib/commonjs/utils/ref.js.map +1 -1
- package/lib/commonjs/utils/reporting.js +4 -2
- package/lib/commonjs/utils/reporting.js.map +1 -1
- package/lib/commonjs/utils/string.js.map +1 -1
- package/lib/commonjs/utils/testID.js +1 -4
- package/lib/commonjs/utils/testID.js.map +1 -1
- package/lib/commonjs/utils/testID.test.js.map +1 -1
- package/lib/commonjs/utils/useMemoAsync.js +9 -0
- package/lib/commonjs/utils/useMemoAsync.js.map +1 -1
- package/lib/commonjs/utils/uuid.js +1 -1
- package/lib/commonjs/utils/uuid.js.map +1 -1
- package/lib/module/components/backup/index.js.map +1 -1
- package/lib/module/components/backup/preview-credentials.js +17 -21
- package/lib/module/components/backup/preview-credentials.js.map +1 -1
- package/lib/module/components/credential/credential.js +10 -11
- package/lib/module/components/credential/credential.js.map +1 -1
- package/lib/module/components/credential/index.js.map +1 -1
- package/lib/module/components/entity/EntityButtons.js +17 -21
- package/lib/module/components/entity/EntityButtons.js.map +1 -1
- package/lib/module/components/entity/entity-attributes.js +12 -13
- package/lib/module/components/entity/entity-attributes.js.map +1 -1
- package/lib/module/components/entity/entity-details-with-buttons.js +15 -15
- package/lib/module/components/entity/entity-details-with-buttons.js.map +1 -1
- package/lib/module/components/entity/entity-details.js +8 -9
- package/lib/module/components/entity/entity-details.js.map +1 -1
- package/lib/module/components/entity/index.js.map +1 -1
- package/lib/module/components/history/history-details-screen.js +59 -0
- package/lib/module/components/history/history-details-screen.js.map +1 -0
- package/lib/module/components/history/history-list-item-icon.js +84 -0
- package/lib/module/components/history/history-list-item-icon.js.map +1 -0
- package/lib/module/components/history/history-list-item.js +36 -0
- package/lib/module/components/history/history-list-item.js.map +1 -0
- package/lib/module/components/history/history-list-screen.js +112 -0
- package/lib/module/components/history/history-list-screen.js.map +1 -0
- package/lib/module/components/history/history-list-section-header.js +29 -0
- package/lib/module/components/history/history-list-section-header.js.map +1 -0
- package/lib/module/components/history/history-list.js +90 -0
- package/lib/module/components/history/history-list.js.map +1 -0
- package/lib/module/components/history/index.js +7 -0
- package/lib/module/components/history/index.js.map +1 -0
- package/lib/module/components/index.js +1 -0
- package/lib/module/components/index.js.map +1 -1
- package/lib/module/components/navigation/header-buttons.js +19 -23
- package/lib/module/components/navigation/header-buttons.js.map +1 -1
- package/lib/module/components/navigation/index.js.map +1 -1
- package/lib/module/components/proof-request/group.js +3 -4
- package/lib/module/components/proof-request/group.js.map +1 -1
- package/lib/module/components/proof-request/index.js.map +1 -1
- package/lib/module/components/proof-request/select-credential.js +10 -11
- package/lib/module/components/proof-request/select-credential.js.map +1 -1
- package/lib/module/components/proof-request/share-credential.js +21 -25
- package/lib/module/components/proof-request/share-credential.js.map +1 -1
- package/lib/module/index.js.map +1 -1
- package/lib/module/normalize-color.d.js.map +1 -1
- package/lib/module/ui-components/accessibility/accessibility.js +5 -7
- package/lib/module/ui-components/accessibility/accessibility.js.map +1 -1
- package/lib/module/ui-components/accessibility/accessibilityHistory.js +4 -8
- package/lib/module/ui-components/accessibility/accessibilityHistory.js.map +1 -1
- package/lib/module/ui-components/accessibility/accessibilityHistoryWrappers.js +10 -8
- package/lib/module/ui-components/accessibility/accessibilityHistoryWrappers.js.map +1 -1
- package/lib/module/ui-components/accessibility/accessibilityLanguage.js +6 -8
- package/lib/module/ui-components/accessibility/accessibilityLanguage.js.map +1 -1
- package/lib/module/ui-components/accessibility/index.js +4 -4
- package/lib/module/ui-components/accessibility/index.js.map +1 -1
- package/lib/module/ui-components/accessibility/locale/index.js.map +1 -1
- package/lib/module/ui-components/accessibility/locale.test.js.map +1 -1
- package/lib/module/ui-components/action-modal/ActionModal.js +7 -8
- package/lib/module/ui-components/action-modal/ActionModal.js.map +1 -1
- package/lib/module/ui-components/action-modal/index.js.map +1 -1
- package/lib/module/ui-components/activity-indicator/activity-indicator.js +6 -7
- package/lib/module/ui-components/activity-indicator/activity-indicator.js.map +1 -1
- package/lib/module/ui-components/activity-indicator/index.js.map +1 -1
- package/lib/module/ui-components/blur/blur-view.js +10 -11
- package/lib/module/ui-components/blur/blur-view.js.map +1 -1
- package/lib/module/ui-components/blur/index.js.map +1 -1
- package/lib/module/ui-components/buttons/back-button.js +10 -11
- package/lib/module/ui-components/buttons/back-button.js.map +1 -1
- package/lib/module/ui-components/buttons/button.js +17 -18
- package/lib/module/ui-components/buttons/button.js.map +1 -1
- package/lib/module/ui-components/buttons/connectivity-button.js +14 -14
- package/lib/module/ui-components/buttons/connectivity-button.js.map +1 -1
- package/lib/module/ui-components/buttons/filter-button.js +6 -7
- package/lib/module/ui-components/buttons/filter-button.js.map +1 -1
- package/lib/module/ui-components/buttons/ghost-button.js +9 -10
- package/lib/module/ui-components/buttons/ghost-button.js.map +1 -1
- package/lib/module/ui-components/buttons/hold-button.js +236 -0
- package/lib/module/ui-components/buttons/hold-button.js.map +1 -0
- package/lib/module/ui-components/buttons/index.js +8 -7
- package/lib/module/ui-components/buttons/index.js.map +1 -1
- package/lib/module/ui-components/buttons/scan-button.js +5 -6
- package/lib/module/ui-components/buttons/scan-button.js.map +1 -1
- package/lib/module/ui-components/camera/camera-overlay.js +7 -9
- package/lib/module/ui-components/camera/camera-overlay.js.map +1 -1
- package/lib/module/ui-components/camera/index.js.map +1 -1
- package/lib/module/ui-components/camera/qr-code-scanner.js +8 -9
- package/lib/module/ui-components/camera/qr-code-scanner.js.map +1 -1
- package/lib/module/ui-components/control/checkbox.js +9 -10
- package/lib/module/ui-components/control/checkbox.js.map +1 -1
- package/lib/module/ui-components/control/index.js.map +1 -1
- package/lib/module/ui-components/control/switch.js +8 -9
- package/lib/module/ui-components/control/switch.js.map +1 -1
- package/lib/module/ui-components/credential/card/credential-card.js +16 -17
- package/lib/module/ui-components/credential/card/credential-card.js.map +1 -1
- package/lib/module/ui-components/credential/card/credential-details-card.js +26 -30
- package/lib/module/ui-components/credential/card/credential-details-card.js.map +1 -1
- package/lib/module/ui-components/credential/card/credential-details-list-item.js +23 -15
- package/lib/module/ui-components/credential/card/credential-details-list-item.js.map +1 -1
- package/lib/module/ui-components/credential/card/credential-header.js +21 -19
- package/lib/module/ui-components/credential/card/credential-header.js.map +1 -1
- package/lib/module/ui-components/credential/card/credential-image-carousel.js +23 -23
- package/lib/module/ui-components/credential/card/credential-image-carousel.js.map +1 -1
- package/lib/module/ui-components/credential/card/index.js +10 -10
- package/lib/module/ui-components/credential/card/index.js.map +1 -1
- package/lib/module/ui-components/credential/credential-attribute-item.js +47 -55
- package/lib/module/ui-components/credential/credential-attribute-item.js.map +1 -1
- package/lib/module/ui-components/credential/credential-carousel-images.js +15 -18
- package/lib/module/ui-components/credential/credential-carousel-images.js.map +1 -1
- package/lib/module/ui-components/credential/index.js +2 -2
- package/lib/module/ui-components/credential/index.js.map +1 -1
- package/lib/module/ui-components/credential/selector-status.js +3 -3
- package/lib/module/ui-components/credential/selector-status.js.map +1 -1
- package/lib/module/ui-components/credential/selector.js +5 -6
- package/lib/module/ui-components/credential/selector.js.map +1 -1
- package/lib/module/ui-components/detail/detail.js +9 -10
- package/lib/module/ui-components/detail/detail.js.map +1 -1
- package/lib/module/ui-components/detail/index.js.map +1 -1
- package/lib/module/ui-components/entity/avatar.js +10 -11
- package/lib/module/ui-components/entity/avatar.js.map +1 -1
- package/lib/module/ui-components/entity/entity-cluster.js +11 -13
- package/lib/module/ui-components/entity/entity-cluster.js.map +1 -1
- package/lib/module/ui-components/entity/index.js.map +1 -1
- package/lib/module/ui-components/header/focus-aware-status-bar.js +1 -1
- package/lib/module/ui-components/header/focus-aware-status-bar.js.map +1 -1
- package/lib/module/ui-components/header/foldable-header.js +10 -12
- package/lib/module/ui-components/header/foldable-header.js.map +1 -1
- package/lib/module/ui-components/header/header.js +10 -11
- package/lib/module/ui-components/header/header.js.map +1 -1
- package/lib/module/ui-components/header/index.js +6 -6
- package/lib/module/ui-components/header/index.js.map +1 -1
- package/lib/module/ui-components/header/navigation-header.js +23 -28
- package/lib/module/ui-components/header/navigation-header.js.map +1 -1
- package/lib/module/ui-components/history/data-item.js +23 -15
- package/lib/module/ui-components/history/data-item.js.map +1 -1
- package/lib/module/ui-components/history/history-details.js +171 -0
- package/lib/module/ui-components/history/history-details.js.map +1 -0
- package/lib/module/ui-components/history/{history-list-item.js → history-item.js} +44 -22
- package/lib/module/ui-components/history/history-item.js.map +1 -0
- package/lib/module/ui-components/history/history-section-header.js +6 -7
- package/lib/module/ui-components/history/history-section-header.js.map +1 -1
- package/lib/module/ui-components/history/history-section-list-item.js +8 -9
- package/lib/module/ui-components/history/history-section-list-item.js.map +1 -1
- package/lib/module/ui-components/history/index.js +5 -4
- package/lib/module/ui-components/history/index.js.map +1 -1
- package/lib/module/ui-components/icons/connectivity.js +16 -21
- package/lib/module/ui-components/icons/connectivity.js.map +1 -1
- package/lib/module/ui-components/icons/credential.js +57 -68
- package/lib/module/ui-components/icons/credential.js.map +1 -1
- package/lib/module/ui-components/icons/entity.js +4 -5
- package/lib/module/ui-components/icons/entity.js.map +1 -1
- package/lib/module/ui-components/icons/history.js +101 -128
- package/lib/module/ui-components/icons/history.js.map +1 -1
- package/lib/module/ui-components/icons/icons.js +70 -87
- package/lib/module/ui-components/icons/icons.js.map +1 -1
- package/lib/module/ui-components/icons/index.js.map +1 -1
- package/lib/module/ui-components/icons/input.js.map +1 -1
- package/lib/module/ui-components/icons/keypad.js +66 -78
- package/lib/module/ui-components/icons/keypad.js.map +1 -1
- package/lib/module/ui-components/icons/loader.js +1 -1
- package/lib/module/ui-components/icons/loader.js.map +1 -1
- package/lib/module/ui-components/icons/nerd-view.js.map +1 -1
- package/lib/module/ui-components/icons/selector.js +5 -6
- package/lib/module/ui-components/icons/selector.js.map +1 -1
- package/lib/module/ui-components/icons/wallet.js +13 -16
- package/lib/module/ui-components/icons/wallet.js.map +1 -1
- package/lib/module/ui-components/image/image-or-component.js +12 -14
- package/lib/module/ui-components/image/image-or-component.js.map +1 -1
- package/lib/module/ui-components/image/index.js +2 -2
- package/lib/module/ui-components/image/index.js.map +1 -1
- package/lib/module/ui-components/index.js.map +1 -1
- package/lib/module/ui-components/input/index.js.map +1 -1
- package/lib/module/ui-components/input/radio-group.js +26 -22
- package/lib/module/ui-components/input/radio-group.js.map +1 -1
- package/lib/module/ui-components/input/selection-input.js +21 -31
- package/lib/module/ui-components/input/selection-input.js.map +1 -1
- package/lib/module/ui-components/input/text-input.js +21 -22
- package/lib/module/ui-components/input/text-input.js.map +1 -1
- package/lib/module/ui-components/list/index.js +1 -0
- package/lib/module/ui-components/list/index.js.map +1 -1
- package/lib/module/ui-components/list/list-page-loading-indicator.js +7 -0
- package/lib/module/ui-components/list/list-page-loading-indicator.js.map +1 -0
- package/lib/module/ui-components/list/list-section-header.js +8 -9
- package/lib/module/ui-components/list/list-section-header.js.map +1 -1
- package/lib/module/ui-components/list/list-title-header.js +4 -5
- package/lib/module/ui-components/list/list-title-header.js.map +1 -1
- package/lib/module/ui-components/list/wallet/empty-list.js +66 -0
- package/lib/module/ui-components/list/wallet/empty-list.js.map +1 -0
- package/lib/module/ui-components/list/wallet/empty-search-result.js +34 -0
- package/lib/module/ui-components/list/wallet/empty-search-result.js.map +1 -0
- package/lib/module/ui-components/list/wallet/index.js +4 -0
- package/lib/module/ui-components/list/wallet/index.js.map +1 -0
- package/lib/module/ui-components/loader/index.js.map +1 -1
- package/lib/module/ui-components/loader/loader.js +14 -12
- package/lib/module/ui-components/loader/loader.js.map +1 -1
- package/lib/module/ui-components/loader/loading-result.js +21 -19
- package/lib/module/ui-components/loader/loading-result.js.map +1 -1
- package/lib/module/ui-components/nerd-view/index.js +2 -2
- package/lib/module/ui-components/nerd-view/index.js.map +1 -1
- package/lib/module/ui-components/nerd-view/nerd-mode-item.js +31 -34
- package/lib/module/ui-components/nerd-view/nerd-mode-item.js.map +1 -1
- package/lib/module/ui-components/pin/index.js.map +1 -1
- package/lib/module/ui-components/pin/keypad.js +17 -19
- package/lib/module/ui-components/pin/keypad.js.map +1 -1
- package/lib/module/ui-components/pin/pin-code-screen.js +16 -17
- package/lib/module/ui-components/pin/pin-code-screen.js.map +1 -1
- package/lib/module/ui-components/pin/pin-lock-animation.js.map +1 -1
- package/lib/module/ui-components/pin/pin-lock.js +6 -7
- package/lib/module/ui-components/pin/pin-lock.js.map +1 -1
- package/lib/module/ui-components/pin/pins.js +7 -8
- package/lib/module/ui-components/pin/pins.js.map +1 -1
- package/lib/module/ui-components/screens/backup-screen.js +13 -14
- package/lib/module/ui-components/screens/backup-screen.js.map +1 -1
- package/lib/module/ui-components/screens/image-preview-screen.js +9 -10
- package/lib/module/ui-components/screens/image-preview-screen.js.map +1 -1
- package/lib/module/ui-components/screens/index.js +12 -12
- package/lib/module/ui-components/screens/index.js.map +1 -1
- package/lib/module/ui-components/screens/nerd-mode-screen.js +29 -34
- package/lib/module/ui-components/screens/nerd-mode-screen.js.map +1 -1
- package/lib/module/ui-components/screens/qr-code-scanner-screen.js +10 -11
- package/lib/module/ui-components/screens/qr-code-scanner-screen.js.map +1 -1
- package/lib/module/ui-components/screens/scroll-view-screen.js +10 -11
- package/lib/module/ui-components/screens/scroll-view-screen.js.map +1 -1
- package/lib/module/ui-components/screens/section-list-screen.js +11 -12
- package/lib/module/ui-components/screens/section-list-screen.js.map +1 -1
- package/lib/module/ui-components/searchbar/animated-search-bar.js +6 -7
- package/lib/module/ui-components/searchbar/animated-search-bar.js.map +1 -1
- package/lib/module/ui-components/searchbar/index.js.map +1 -1
- package/lib/module/ui-components/searchbar/search-bar.js +11 -12
- package/lib/module/ui-components/searchbar/search-bar.js.map +1 -1
- package/lib/module/ui-components/settings/button-setting.js +10 -11
- package/lib/module/ui-components/settings/button-setting.js.map +1 -1
- package/lib/module/ui-components/settings/index.js.map +1 -1
- package/lib/module/ui-components/settings/setting-item-separator.js +4 -5
- package/lib/module/ui-components/settings/setting-item-separator.js.map +1 -1
- package/lib/module/ui-components/settings/setting-item.js +7 -8
- package/lib/module/ui-components/settings/setting-item.js.map +1 -1
- package/lib/module/ui-components/settings/settings-button.js +5 -6
- package/lib/module/ui-components/settings/settings-button.js.map +1 -1
- package/lib/module/ui-components/settings/switch-setting.js +9 -10
- package/lib/module/ui-components/settings/switch-setting.js.map +1 -1
- package/lib/module/ui-components/state/error-screen.js +7 -8
- package/lib/module/ui-components/state/error-screen.js.map +1 -1
- package/lib/module/ui-components/state/index.js.map +1 -1
- package/lib/module/ui-components/text/base.js +12 -13
- package/lib/module/ui-components/text/base.js.map +1 -1
- package/lib/module/ui-components/text/font.js +10 -11
- package/lib/module/ui-components/text/font.js.map +1 -1
- package/lib/module/ui-components/text/index.js +2 -2
- package/lib/module/ui-components/text/index.js.map +1 -1
- package/lib/module/ui-components/text/typography.js +8 -10
- package/lib/module/ui-components/text/typography.js.map +1 -1
- package/lib/module/ui-components/theme/color-scheme-context.js +1 -0
- package/lib/module/ui-components/theme/color-scheme-context.js.map +1 -1
- package/lib/module/ui-components/theme/color-scheme.js.map +1 -1
- package/lib/module/ui-components/theme/index.js.map +1 -1
- package/lib/module/utils/array.js.map +1 -1
- package/lib/module/utils/backup.js.map +1 -1
- package/lib/module/utils/color.js.map +1 -1
- package/lib/module/utils/contrasting-status-bar.js +5 -6
- package/lib/module/utils/contrasting-status-bar.js.map +1 -1
- package/lib/module/utils/date.js +4 -4
- package/lib/module/utils/date.js.map +1 -1
- package/lib/module/utils/filtering.js +4 -0
- package/lib/module/utils/filtering.js.map +1 -0
- package/lib/module/utils/history.js +66 -0
- package/lib/module/utils/history.js.map +1 -0
- package/lib/module/utils/hooks/connectivity/connectivity.js +36 -19
- package/lib/module/utils/hooks/connectivity/connectivity.js.map +1 -1
- package/lib/module/utils/hooks/connectivity/connectivity.test.js +6 -0
- package/lib/module/utils/hooks/connectivity/connectivity.test.js.map +1 -1
- package/lib/module/utils/hooks/core/backup.js +31 -31
- package/lib/module/utils/hooks/core/backup.js.map +1 -1
- package/lib/module/utils/hooks/core/cache.js +37 -0
- package/lib/module/utils/hooks/core/cache.js.map +1 -0
- package/lib/module/utils/hooks/core/core-config.js +11 -0
- package/lib/module/utils/hooks/core/core-config.js.map +1 -1
- package/lib/module/utils/hooks/core/core-context.js +14 -9
- package/lib/module/utils/hooks/core/core-context.js.map +1 -1
- package/lib/module/utils/hooks/core/core-init.js +16 -8
- package/lib/module/utils/hooks/core/core-init.js.map +1 -1
- package/lib/module/utils/hooks/core/credential-schemas.js +12 -19
- package/lib/module/utils/hooks/core/credential-schemas.js.map +1 -1
- package/lib/module/utils/hooks/core/credentials.js +26 -36
- package/lib/module/utils/hooks/core/credentials.js.map +1 -1
- package/lib/module/utils/hooks/core/dids.js +3 -4
- package/lib/module/utils/hooks/core/dids.js.map +1 -1
- package/lib/module/utils/hooks/core/error-code.js +3 -3
- package/lib/module/utils/hooks/core/error-code.js.map +1 -1
- package/lib/module/utils/hooks/core/history.js +4 -35
- package/lib/module/utils/hooks/core/history.js.map +1 -1
- package/lib/module/utils/hooks/core/index.js +1 -0
- package/lib/module/utils/hooks/core/index.js.map +1 -1
- package/lib/module/utils/hooks/core/proof-schemas.js +19 -30
- package/lib/module/utils/hooks/core/proof-schemas.js.map +1 -1
- package/lib/module/utils/hooks/core/proofs.js +101 -67
- package/lib/module/utils/hooks/core/proofs.js.map +1 -1
- package/lib/module/utils/hooks/core/query.js.map +1 -1
- package/lib/module/utils/hooks/core/trust-entity.js +7 -3
- package/lib/module/utils/hooks/core/trust-entity.js.map +1 -1
- package/lib/module/utils/hooks/credential-card/credential-card-expanding.js.map +1 -1
- package/lib/module/utils/hooks/header/on-scroll-header-state.js +1 -2
- package/lib/module/utils/hooks/header/on-scroll-header-state.js.map +1 -1
- package/lib/module/utils/hooks/http/client.js.map +1 -1
- package/lib/module/utils/hooks/index.js.map +1 -1
- package/lib/module/utils/hooks/list/list-content-inset.js +9 -10
- package/lib/module/utils/hooks/list/list-content-inset.js.map +1 -1
- package/lib/module/utils/hooks/navigation/before-remove.js.map +1 -1
- package/lib/module/utils/hooks/navigation/close-button-timeout.js.map +1 -1
- package/lib/module/utils/hooks/navigation/deep-link.js +3 -4
- package/lib/module/utils/hooks/navigation/deep-link.js.map +1 -1
- package/lib/module/utils/hooks/navigation/index.js.map +1 -1
- package/lib/module/utils/hooks/navigation/open-settings.js +1 -2
- package/lib/module/utils/hooks/navigation/open-settings.js.map +1 -1
- package/lib/module/utils/hooks/pin-security/pin-security.js +1 -2
- package/lib/module/utils/hooks/pin-security/pin-security.js.map +1 -1
- package/lib/module/utils/hooks/revocation/credential-status.js +17 -26
- package/lib/module/utils/hooks/revocation/credential-status.js.map +1 -1
- package/lib/module/utils/index.js +3 -0
- package/lib/module/utils/index.js.map +1 -1
- package/lib/module/utils/navigation.js +5 -5
- package/lib/module/utils/navigation.js.map +1 -1
- package/lib/module/utils/parsers/credential-images.js.map +1 -1
- package/lib/module/utils/parsers/credential-sharing.js +15 -19
- package/lib/module/utils/parsers/credential-sharing.js.map +1 -1
- package/lib/module/utils/parsers/credential.js +16 -25
- package/lib/module/utils/parsers/credential.js.map +1 -1
- package/lib/module/utils/parsers/index.js +1 -0
- package/lib/module/utils/parsers/index.js.map +1 -1
- package/lib/module/utils/parsers/query.js +3 -2
- package/lib/module/utils/parsers/query.js.map +1 -1
- package/lib/module/utils/parsers/universal-links.js +25 -0
- package/lib/module/utils/parsers/universal-links.js.map +1 -0
- package/lib/module/utils/parsers/universal-links.test.js +38 -0
- package/lib/module/utils/parsers/universal-links.test.js.map +1 -0
- package/lib/module/utils/ref.js.map +1 -1
- package/lib/module/utils/reporting.js +1 -0
- package/lib/module/utils/reporting.js.map +1 -1
- package/lib/module/utils/string.js.map +1 -1
- package/lib/module/utils/testID.js +1 -4
- package/lib/module/utils/testID.js.map +1 -1
- package/lib/module/utils/testID.test.js.map +1 -1
- package/lib/module/utils/useMemoAsync.js +10 -0
- package/lib/module/utils/useMemoAsync.js.map +1 -1
- package/lib/module/utils/uuid.js.map +1 -1
- package/lib/typescript/components/entity/entity-attributes.d.ts +1 -0
- package/lib/typescript/components/history/history-details-screen.d.ts +20 -0
- package/lib/typescript/components/history/history-list-item-icon.d.ts +8 -0
- package/lib/typescript/components/history/history-list-item.d.ts +20 -0
- package/lib/typescript/components/history/history-list-screen.d.ts +22 -0
- package/lib/typescript/components/history/history-list-section-header.d.ts +13 -0
- package/lib/typescript/components/history/history-list.d.ts +19 -0
- package/lib/typescript/components/history/index.d.ts +6 -0
- package/lib/typescript/components/index.d.ts +1 -0
- package/lib/typescript/ui-components/accessibility/accessibility.d.ts +2 -2
- package/lib/typescript/ui-components/accessibility/accessibilityHistory.d.ts +1 -1
- package/lib/typescript/ui-components/accessibility/accessibilityHistoryWrappers.d.ts +3 -3
- package/lib/typescript/ui-components/accessibility/index.d.ts +5 -3
- package/lib/typescript/ui-components/buttons/button.d.ts +2 -2
- package/lib/typescript/ui-components/buttons/hold-button.d.ts +16 -0
- package/lib/typescript/ui-components/buttons/index.d.ts +15 -7
- package/lib/typescript/ui-components/buttons/scan-button.d.ts +2 -2
- package/lib/typescript/ui-components/credential/card/credential-header.d.ts +1 -1
- package/lib/typescript/ui-components/credential/card/index.d.ts +10 -5
- package/lib/typescript/ui-components/credential/index.d.ts +2 -1
- package/lib/typescript/ui-components/header/index.d.ts +6 -3
- package/lib/typescript/ui-components/history/data-item.d.ts +2 -2
- package/lib/typescript/ui-components/history/history-details.d.ts +51 -0
- package/lib/typescript/ui-components/history/{history-list-item.d.ts → history-item.d.ts} +4 -3
- package/lib/typescript/ui-components/history/history-section-header.d.ts +2 -2
- package/lib/typescript/ui-components/history/history-section-list-item.d.ts +2 -2
- package/lib/typescript/ui-components/history/index.d.ts +5 -4
- package/lib/typescript/ui-components/icons/history.d.ts +20 -35
- package/lib/typescript/ui-components/image/index.d.ts +2 -1
- package/lib/typescript/ui-components/input/selection-input.d.ts +1 -1
- package/lib/typescript/ui-components/list/index.d.ts +1 -0
- package/lib/typescript/ui-components/list/list-page-loading-indicator.d.ts +4 -0
- package/lib/typescript/ui-components/list/wallet/empty-list.d.ts +10 -0
- package/lib/typescript/ui-components/list/wallet/empty-search-result.d.ts +7 -0
- package/lib/typescript/ui-components/list/wallet/index.d.ts +3 -0
- package/lib/typescript/ui-components/nerd-view/index.d.ts +2 -1
- package/lib/typescript/ui-components/pin/keypad.d.ts +2 -2
- package/lib/typescript/ui-components/screens/index.d.ts +12 -6
- package/lib/typescript/ui-components/text/index.d.ts +2 -1
- package/lib/typescript/ui-components/text/typography.d.ts +14 -14
- package/lib/typescript/ui-components/theme/color-scheme.d.ts +1 -0
- package/lib/typescript/utils/filtering.d.ts +1 -0
- package/lib/typescript/utils/history.d.ts +10 -0
- package/lib/typescript/utils/hooks/connectivity/connectivity.d.ts +1 -1
- package/lib/typescript/utils/hooks/core/backup.d.ts +2 -1
- package/lib/typescript/utils/hooks/core/cache.d.ts +2 -0
- package/lib/typescript/utils/hooks/core/core-config.d.ts +5 -1
- package/lib/typescript/utils/hooks/core/core-init.d.ts +10 -1
- package/lib/typescript/utils/hooks/core/credentials.d.ts +7 -3
- package/lib/typescript/utils/hooks/core/history.d.ts +2 -5
- package/lib/typescript/utils/hooks/core/index.d.ts +1 -0
- package/lib/typescript/utils/hooks/core/proofs.d.ts +14 -8
- package/lib/typescript/utils/hooks/core/trust-entity.d.ts +5 -0
- package/lib/typescript/utils/hooks/revocation/credential-status.d.ts +2 -1
- package/lib/typescript/utils/index.d.ts +3 -0
- package/lib/typescript/utils/parsers/index.d.ts +1 -0
- package/lib/typescript/utils/parsers/universal-links.d.ts +1 -0
- package/lib/typescript/utils/parsers/universal-links.test.d.ts +1 -0
- package/lib/typescript/utils/ref.d.ts +1 -1
- package/package.json +60 -46
- package/src/components/entity/entity-attributes.tsx +4 -3
- package/src/components/entity/entity-details-with-buttons.tsx +4 -3
- package/src/components/history/history-details-screen.tsx +89 -0
- package/src/components/history/history-list-item-icon.tsx +108 -0
- package/src/components/history/history-list-item.tsx +53 -0
- package/src/components/history/history-list-screen.tsx +154 -0
- package/src/components/history/history-list-section-header.tsx +42 -0
- package/src/components/history/history-list.tsx +116 -0
- package/src/components/history/index.tsx +6 -0
- package/src/components/index.ts +1 -0
- package/src/ui-components/accessibility/accessibility.ts +2 -2
- package/src/ui-components/accessibility/accessibilityHistory.tsx +2 -2
- package/src/ui-components/accessibility/accessibilityHistoryWrappers.tsx +3 -5
- package/src/ui-components/accessibility/index.ts +4 -3
- package/src/ui-components/action-modal/ActionModal.stories.tsx +7 -3
- package/src/ui-components/activity-indicator/activity-indicator.stories.tsx +3 -6
- package/src/ui-components/buttons/back-button.stories.tsx +7 -8
- package/src/ui-components/buttons/button.stories.tsx +9 -10
- package/src/ui-components/buttons/connectivity-button.stories.tsx +10 -11
- package/src/ui-components/buttons/connectivity-button.tsx +1 -1
- package/src/ui-components/buttons/ghost-button.stories.tsx +8 -8
- package/src/ui-components/buttons/hold-button.stories.tsx +29 -0
- package/src/ui-components/buttons/hold-button.tsx +276 -0
- package/src/ui-components/buttons/index.ts +16 -6
- package/src/ui-components/buttons/scan-button.stories.tsx +8 -4
- package/src/ui-components/control/checkbox.stories.tsx +8 -8
- package/src/ui-components/control/switch.stories.tsx +11 -8
- package/src/ui-components/credential/card/credential-card.stories.tsx +22 -25
- package/src/ui-components/credential/card/credential-details-card.stories.tsx +249 -245
- package/src/ui-components/credential/card/credential-details-card.tsx +2 -2
- package/src/ui-components/credential/card/credential-details-list-item.tsx +16 -6
- package/src/ui-components/credential/card/credential-header.stories.tsx +15 -17
- package/src/ui-components/credential/card/credential-header.tsx +4 -1
- package/src/ui-components/credential/card/credential-image-carousel.tsx +4 -0
- package/src/ui-components/credential/card/index.ts +11 -5
- package/src/ui-components/credential/index.ts +2 -1
- package/src/ui-components/credential/selector.stories.tsx +7 -7
- package/src/ui-components/detail/detail.stories.tsx +11 -8
- package/src/ui-components/entity/avatar.stories.tsx +10 -7
- package/src/ui-components/entity/entity-cluster.stories.tsx +11 -8
- package/src/ui-components/header/header.stories.tsx +10 -7
- package/src/ui-components/header/index.ts +6 -3
- package/src/ui-components/header/navigation-header.stories.tsx +11 -8
- package/src/ui-components/history/data-item.tsx +13 -4
- package/src/ui-components/history/history-details.tsx +247 -0
- package/src/ui-components/history/{history-list-item.tsx → history-item.tsx} +72 -33
- package/src/ui-components/history/history-section-header.tsx +2 -2
- package/src/ui-components/history/history-section-list-item.tsx +3 -3
- package/src/ui-components/history/index.ts +5 -4
- package/src/ui-components/icons/history.tsx +82 -131
- package/src/ui-components/image/index.tsx +2 -1
- package/src/ui-components/input/radio-group.stories.tsx +34 -0
- package/src/ui-components/input/radio-group.tsx +8 -2
- package/src/ui-components/input/selection-input.stories.tsx +20 -17
- package/src/ui-components/list/index.ts +1 -0
- package/src/ui-components/list/list-page-loading-indicator.tsx +8 -0
- package/src/ui-components/list/wallet/empty-list.tsx +75 -0
- package/src/ui-components/list/wallet/empty-search-result.tsx +39 -0
- package/src/ui-components/list/wallet/index.tsx +4 -0
- package/src/ui-components/loader/loader.stories.tsx +6 -9
- package/src/ui-components/loader/loader.tsx +6 -3
- package/src/ui-components/loader/loading-result.stories.tsx +13 -10
- package/src/ui-components/loader/loading-result.tsx +8 -4
- package/src/ui-components/nerd-view/index.ts +2 -1
- package/src/ui-components/nerd-view/nerd-mode-item.tsx +2 -2
- package/src/ui-components/pin/pin-code-screen.stories.tsx +20 -13
- package/src/ui-components/screens/image-preview-screen.stories.tsx +9 -6
- package/src/ui-components/screens/index.ts +12 -6
- package/src/ui-components/screens/nerd-mode-screen.tsx +1 -1
- package/src/ui-components/screens/qr-code-scanner-screen.stories.tsx +10 -7
- package/src/ui-components/searchbar/search-bar.stories.tsx +15 -8
- package/src/ui-components/searchbar/search-bar.tsx +2 -2
- package/src/ui-components/state/error-screen.stories.tsx +8 -9
- package/src/ui-components/state/error-screen.tsx +1 -1
- package/src/ui-components/text/index.ts +2 -1
- package/src/ui-components/text/typography.stories.tsx +19 -12
- package/src/ui-components/theme/color-scheme-context.tsx +1 -0
- package/src/ui-components/theme/color-scheme.ts +1 -0
- package/src/utils/date.ts +5 -5
- package/src/utils/filtering.ts +5 -0
- package/src/utils/history.ts +71 -0
- package/src/utils/hooks/connectivity/connectivity.test.ts +8 -0
- package/src/utils/hooks/connectivity/connectivity.ts +28 -4
- package/src/utils/hooks/core/backup.ts +25 -21
- package/src/utils/hooks/core/cache.ts +43 -0
- package/src/utils/hooks/core/core-config.ts +19 -0
- package/src/utils/hooks/core/core-context.tsx +15 -2
- package/src/utils/hooks/core/core-init.ts +21 -7
- package/src/utils/hooks/core/credential-schemas.ts +1 -1
- package/src/utils/hooks/core/credentials.ts +9 -14
- package/src/utils/hooks/core/history.ts +2 -57
- package/src/utils/hooks/core/index.ts +1 -0
- package/src/utils/hooks/core/proof-schemas.ts +1 -1
- package/src/utils/hooks/core/proofs.ts +107 -49
- package/src/utils/hooks/core/trust-entity.ts +7 -3
- package/src/utils/hooks/navigation/open-settings.ts +2 -3
- package/src/utils/hooks/revocation/credential-status.ts +3 -2
- package/src/utils/index.ts +3 -0
- package/src/utils/navigation.ts +4 -2
- package/src/utils/parsers/credential.ts +1 -1
- package/src/utils/parsers/index.ts +1 -0
- package/src/utils/parsers/query.tsx +2 -0
- package/src/utils/parsers/universal-links.test.ts +57 -0
- package/src/utils/parsers/universal-links.ts +26 -0
- package/src/utils/ref.ts +1 -1
- package/src/utils/reporting.ts +1 -0
- package/lib/commonjs/ui-components/history/history-list-item.js.map +0 -1
- package/lib/module/ui-components/history/history-list-item.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["RadioGroup","RadioGroupItem","RadioGroupProps","SelectionInput","SelectionInputChoice","SelectionInputProps","TextInput","TextInputAccessory","TextInputProps"],"sources":["index.ts"],"sourcesContent":["import RadioGroup, { RadioGroupItem, RadioGroupProps } from './radio-group';\nimport SelectionInput, { SelectionInputChoice, SelectionInputProps } from './selection-input';\nimport TextInput, { TextInputAccessory, TextInputProps } from './text-input';\n\nexport { RadioGroup, RadioGroupItem, RadioGroupProps };\nexport { SelectionInput, SelectionInputChoice, SelectionInputProps };\nexport { TextInput, TextInputAccessory, TextInputProps };\n"],"mappings":"AAAA,OAAOA,UAAU,IAAIC,cAAc,EAAEC,eAAe,QAAQ,eAAe;AAC3E,OAAOC,cAAc,IAAIC,oBAAoB,EAAEC,mBAAmB,QAAQ,mBAAmB;AAC7F,OAAOC,SAAS,IAAIC,kBAAkB,EAAEC,cAAc,QAAQ,cAAc;AAE5E,SAASR,UAAU,EAAEC,cAAc,EAAEC,eAAe;AACpD,SAASC,cAAc,EAAEC,oBAAoB,EAAEC,mBAAmB;AAClE,SAASC,SAAS,EAAEC,kBAAkB,EAAEC,cAAc"}
|
|
1
|
+
{"version":3,"names":["RadioGroup","RadioGroupItem","RadioGroupProps","SelectionInput","SelectionInputChoice","SelectionInputProps","TextInput","TextInputAccessory","TextInputProps"],"sources":["index.ts"],"sourcesContent":["import RadioGroup, { RadioGroupItem, RadioGroupProps } from './radio-group';\nimport SelectionInput, { SelectionInputChoice, SelectionInputProps } from './selection-input';\nimport TextInput, { TextInputAccessory, TextInputProps } from './text-input';\n\nexport { RadioGroup, RadioGroupItem, RadioGroupProps };\nexport { SelectionInput, SelectionInputChoice, SelectionInputProps };\nexport { TextInput, TextInputAccessory, TextInputProps };\n"],"mappings":"AAAA,OAAOA,UAAU,IAAIC,cAAc,EAAEC,eAAe,QAAQ,eAAe;AAC3E,OAAOC,cAAc,IAAIC,oBAAoB,EAAEC,mBAAmB,QAAQ,mBAAmB;AAC7F,OAAOC,SAAS,IAAIC,kBAAkB,EAAEC,cAAc,QAAQ,cAAc;AAE5E,SAASR,UAAU,EAAEC,cAAc,EAAEC,eAAe;AACpD,SAASC,cAAc,EAAEC,oBAAoB,EAAEC,mBAAmB;AAClE,SAASC,SAAS,EAAEC,kBAAkB,EAAEC,cAAc","ignoreList":[]}
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { FlatList, StyleSheet, View } from 'react-native';
|
|
3
|
+
import { concatTestID } from '../../utils';
|
|
3
4
|
import { TouchableOpacity } from '../accessibility/accessibilityHistoryWrappers';
|
|
4
5
|
import Selector from '../credential/selector';
|
|
5
6
|
import { SelectorStatus } from '../credential/selector-status';
|
|
6
7
|
import Typography from '../text/typography';
|
|
7
8
|
import { useAppColorScheme } from '../theme/color-scheme-context';
|
|
8
|
-
const RadioGroup =
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
} = _ref;
|
|
9
|
+
const RadioGroup = ({
|
|
10
|
+
containerStyle,
|
|
11
|
+
items,
|
|
12
|
+
selectedItem,
|
|
13
|
+
onSelected,
|
|
14
|
+
style,
|
|
15
|
+
listFooter,
|
|
16
|
+
listFooterStyle,
|
|
17
|
+
onEndReached,
|
|
18
|
+
onGetItemAccessibilityLabel,
|
|
19
|
+
testID,
|
|
20
|
+
scrollEnabled = true
|
|
21
|
+
}) => {
|
|
22
22
|
const colorScheme = useAppColorScheme();
|
|
23
23
|
return /*#__PURE__*/React.createElement(FlatList, {
|
|
24
24
|
scrollEnabled: scrollEnabled,
|
|
@@ -27,11 +27,10 @@ const RadioGroup = _ref => {
|
|
|
27
27
|
contentContainerStyle: containerStyle,
|
|
28
28
|
data: items,
|
|
29
29
|
onEndReached: onEndReached,
|
|
30
|
-
renderItem:
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
} = _ref2;
|
|
30
|
+
renderItem: ({
|
|
31
|
+
item,
|
|
32
|
+
index
|
|
33
|
+
}) => {
|
|
35
34
|
const selected = selectedItem === item.key;
|
|
36
35
|
return /*#__PURE__*/React.createElement(React.Fragment, {
|
|
37
36
|
key: item.key
|
|
@@ -51,10 +50,13 @@ const RadioGroup = _ref => {
|
|
|
51
50
|
style: [styles.item, item.style],
|
|
52
51
|
testID: item.testID
|
|
53
52
|
}, /*#__PURE__*/React.createElement(Typography, {
|
|
54
|
-
color: colorScheme.text
|
|
53
|
+
color: colorScheme.text,
|
|
54
|
+
style: styles.label,
|
|
55
|
+
numberOfLines: 2
|
|
55
56
|
}, item.label), /*#__PURE__*/React.createElement(Selector, {
|
|
56
57
|
status: selected ? SelectorStatus.SelectedRadio : SelectorStatus.Empty,
|
|
57
|
-
style: styles.selector
|
|
58
|
+
style: styles.selector,
|
|
59
|
+
testID: concatTestID(item.testID, 'selector')
|
|
58
60
|
})), /*#__PURE__*/React.createElement(View, {
|
|
59
61
|
style: [styles.divider, {
|
|
60
62
|
backgroundColor: colorScheme.background
|
|
@@ -74,10 +76,12 @@ const styles = StyleSheet.create({
|
|
|
74
76
|
item: {
|
|
75
77
|
alignItems: 'center',
|
|
76
78
|
flexDirection: 'row',
|
|
77
|
-
justifyContent: 'space-between',
|
|
78
79
|
paddingVertical: 24,
|
|
79
80
|
width: '100%'
|
|
80
81
|
},
|
|
82
|
+
label: {
|
|
83
|
+
flex: 1
|
|
84
|
+
},
|
|
81
85
|
selector: {
|
|
82
86
|
marginLeft: 4,
|
|
83
87
|
paddingTop: 0
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","FlatList","StyleSheet","View","TouchableOpacity","Selector","SelectorStatus","Typography","useAppColorScheme","RadioGroup","
|
|
1
|
+
{"version":3,"names":["React","FlatList","StyleSheet","View","concatTestID","TouchableOpacity","Selector","SelectorStatus","Typography","useAppColorScheme","RadioGroup","containerStyle","items","selectedItem","onSelected","style","listFooter","listFooterStyle","onEndReached","onGetItemAccessibilityLabel","testID","scrollEnabled","colorScheme","createElement","ListFooterComponent","ListFooterComponentStyle","contentContainerStyle","data","renderItem","item","index","selected","key","Fragment","accessibilityLabel","label","accessibilityRole","accessibilityState","accessibilityValue","length","text","undefined","activeOpacity","onPress","styles","color","numberOfLines","status","SelectedRadio","Empty","selector","divider","backgroundColor","background","showsVerticalScrollIndicator","create","height","width","alignItems","flexDirection","paddingVertical","flex","marginLeft","paddingTop"],"sources":["radio-group.tsx"],"sourcesContent":["import React, { FunctionComponent } from 'react';\nimport { FlatList, FlatListProps, StyleProp, StyleSheet, View, ViewStyle } from 'react-native';\n\nimport { concatTestID } from '../../utils';\nimport { TouchableOpacity } from '../accessibility/accessibilityHistoryWrappers';\nimport Selector from '../credential/selector';\nimport { SelectorStatus } from '../credential/selector-status';\nimport Typography from '../text/typography';\nimport { useAppColorScheme } from '../theme/color-scheme-context';\n\nexport type RadioGroupItem = {\n key: React.Key;\n label: string;\n style?: StyleProp<ViewStyle>;\n testID?: string;\n};\n\nexport type RadioGroupProps = {\n containerStyle?: StyleProp<ViewStyle>;\n items: RadioGroupItem[];\n listFooter?: FlatListProps<RadioGroupItem>['ListFooterComponent'];\n listFooterStyle?: FlatListProps<RadioGroupItem>['ListFooterComponentStyle'];\n onEndReached?: FlatListProps<RadioGroupItem>['onEndReached'];\n onGetItemAccessibilityLabel?: (current: number, length: number) => string;\n onSelected: (item: RadioGroupItem, index: number) => void;\n selectedItem?: React.Key;\n style?: StyleProp<ViewStyle>;\n testID?: string;\n scrollEnabled?: boolean;\n};\n\nconst RadioGroup: FunctionComponent<RadioGroupProps> = ({\n containerStyle,\n items,\n selectedItem,\n onSelected,\n style,\n listFooter,\n listFooterStyle,\n onEndReached,\n onGetItemAccessibilityLabel,\n testID,\n scrollEnabled = true,\n}) => {\n const colorScheme = useAppColorScheme();\n\n return (\n <FlatList<RadioGroupItem>\n scrollEnabled={scrollEnabled}\n ListFooterComponent={listFooter}\n ListFooterComponentStyle={listFooterStyle}\n contentContainerStyle={containerStyle}\n data={items}\n onEndReached={onEndReached}\n renderItem={({ item, index }) => {\n const selected = selectedItem === item.key;\n return (\n <React.Fragment key={item.key}>\n <TouchableOpacity\n accessibilityLabel={item.label}\n accessibilityRole=\"button\"\n accessibilityState={{ selected }}\n accessibilityValue={\n items.length > 1 && onGetItemAccessibilityLabel\n ? {\n text: onGetItemAccessibilityLabel(index + 1, items.length),\n }\n : undefined\n }\n activeOpacity={selected ? 1 : undefined}\n onPress={() => {\n onSelected(item, index);\n }}\n style={[styles.item, item.style]}\n testID={item.testID}>\n <Typography color={colorScheme.text} style={styles.label} numberOfLines={2}>\n {item.label}\n </Typography>\n <Selector\n status={selected ? SelectorStatus.SelectedRadio : SelectorStatus.Empty}\n style={styles.selector}\n testID={concatTestID(item.testID, 'selector')}\n />\n </TouchableOpacity>\n <View style={[styles.divider, { backgroundColor: colorScheme.background }]} />\n </React.Fragment>\n );\n }}\n showsVerticalScrollIndicator={false}\n style={style}\n testID={testID}\n />\n );\n};\n\nconst styles = StyleSheet.create({\n divider: {\n height: 1,\n width: '100%',\n },\n item: {\n alignItems: 'center',\n flexDirection: 'row',\n paddingVertical: 24,\n width: '100%',\n },\n label: {\n flex: 1,\n },\n selector: {\n marginLeft: 4,\n paddingTop: 0,\n },\n});\n\nexport default RadioGroup;\n"],"mappings":"AAAA,OAAOA,KAAK,MAA6B,OAAO;AAChD,SAASC,QAAQ,EAA4BC,UAAU,EAAEC,IAAI,QAAmB,cAAc;AAE9F,SAASC,YAAY,QAAQ,aAAa;AAC1C,SAASC,gBAAgB,QAAQ,+CAA+C;AAChF,OAAOC,QAAQ,MAAM,wBAAwB;AAC7C,SAASC,cAAc,QAAQ,+BAA+B;AAC9D,OAAOC,UAAU,MAAM,oBAAoB;AAC3C,SAASC,iBAAiB,QAAQ,+BAA+B;AAuBjE,MAAMC,UAA8C,GAAGA,CAAC;EACtDC,cAAc;EACdC,KAAK;EACLC,YAAY;EACZC,UAAU;EACVC,KAAK;EACLC,UAAU;EACVC,eAAe;EACfC,YAAY;EACZC,2BAA2B;EAC3BC,MAAM;EACNC,aAAa,GAAG;AAClB,CAAC,KAAK;EACJ,MAAMC,WAAW,GAAGb,iBAAiB,CAAC,CAAC;EAEvC,oBACET,KAAA,CAAAuB,aAAA,CAACtB,QAAQ;IACPoB,aAAa,EAAEA,aAAc;IAC7BG,mBAAmB,EAAER,UAAW;IAChCS,wBAAwB,EAAER,eAAgB;IAC1CS,qBAAqB,EAAEf,cAAe;IACtCgB,IAAI,EAAEf,KAAM;IACZM,YAAY,EAAEA,YAAa;IAC3BU,U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AAE,CAC/C,CACe,CAAC,eACnBpB,KAAA,CAAAuB,aAAA,CAACpB,IAAI;QAACY,KAAK,EAAE,CAAC6B,MAAM,CAACO,OAAO,EAAE;UAAEC,eAAe,EAAE9B,WAAW,CAAC+B;QAAW,CAAC;MAAE,CAAE,CAC/D,CAAC;IAErB,CAAE;IACFC,4BAA4B,EAAE,KAAM;IACpCvC,KAAK,EAAEA,KAAM;IACbK,MAAM,EAAEA;EAAO,CAChB,CAAC;AAEN,CAAC;AAED,MAAMwB,MAAM,GAAG1C,UAAU,CAACqD,MAAM,CAAC;EAC/BJ,OAAO,EAAE;IACPK,MAAM,EAAE,CAAC;IACTC,KAAK,EAAE;EACT,CAAC;EACD5B,IAAI,EAAE;IACJ6B,UAAU,EAAE,QAAQ;IACpBC,aAAa,EAAE,KAAK;IACpBC,eAAe,EAAE,EAAE;IACnBH,KAAK,EAAE;EACT,CAAC;EACDtB,KAAK,EAAE;IACL0B,IAAI,EAAE;EACR,CAAC;EACDX,QAAQ,EAAE;IACRY,UAAU,EAAE,CAAC;IACbC,UAAU,EAAE;EACd;AACF,CAAC,CAAC;AAEF,eAAerD,UAAU","ignoreList":[]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
1
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
2
2
|
import Picker from '@procivis/react-native-picker';
|
|
3
3
|
import React, { forwardRef, useCallback, useMemo, useState } from 'react';
|
|
4
4
|
import { useForwardedRef } from '../../utils/ref';
|
|
@@ -11,38 +11,31 @@ import TextInput, { TextInputAccessory } from './text-input';
|
|
|
11
11
|
* Generic selection input component
|
|
12
12
|
* @see https://www.figma.com/file/Gd0Tj0234hxtl3HMcCJThW/App-Component-Library-(Design)?node-id=4%3A127&t=B2Y3PtJHH22XDPkx-0
|
|
13
13
|
*/
|
|
14
|
-
const SelectionInput = /*#__PURE__*/forwardRef((
|
|
14
|
+
const SelectionInput = /*#__PURE__*/forwardRef(({
|
|
15
|
+
selectedValue,
|
|
16
|
+
values,
|
|
17
|
+
label,
|
|
18
|
+
pickerTitle,
|
|
19
|
+
pickerConfirmLabel,
|
|
20
|
+
pickerCancelLabel,
|
|
21
|
+
onChange,
|
|
22
|
+
error,
|
|
23
|
+
...props
|
|
24
|
+
}, ref) => {
|
|
15
25
|
var _selectedChoice$short;
|
|
16
|
-
let {
|
|
17
|
-
selectedValue,
|
|
18
|
-
values,
|
|
19
|
-
label,
|
|
20
|
-
pickerTitle,
|
|
21
|
-
pickerConfirmLabel,
|
|
22
|
-
pickerCancelLabel,
|
|
23
|
-
onChange,
|
|
24
|
-
error,
|
|
25
|
-
...props
|
|
26
|
-
} = _ref;
|
|
27
26
|
const t = useAccessibilityTranslation();
|
|
28
27
|
const colorScheme = useAppColorScheme();
|
|
29
|
-
const selectedChoice = useMemo(() => selectedValue !== undefined ? values.find(
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
} = _ref2;
|
|
33
|
-
return value === selectedValue;
|
|
34
|
-
}) : undefined, [selectedValue, values]);
|
|
28
|
+
const selectedChoice = useMemo(() => selectedValue !== undefined ? values.find(({
|
|
29
|
+
value
|
|
30
|
+
}) => value === selectedValue) : undefined, [selectedValue, values]);
|
|
35
31
|
const [forwardedRef, refObject] = useForwardedRef(ref);
|
|
36
32
|
const [pickerOpen, setPickerOpen] = useState(false);
|
|
37
33
|
const onOpen = useCallback(() => setPickerOpen(true), []);
|
|
38
34
|
const onConfirm = useCallback(valueLabel => {
|
|
39
35
|
setPickerOpen(false);
|
|
40
|
-
const choice = values.find(
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
} = _ref3;
|
|
44
|
-
return choiceLabel === valueLabel;
|
|
45
|
-
});
|
|
36
|
+
const choice = values.find(({
|
|
37
|
+
label: choiceLabel
|
|
38
|
+
}) => choiceLabel === valueLabel);
|
|
46
39
|
if (!choice || !(onChange !== null && onChange !== void 0 && onChange(choice))) {
|
|
47
40
|
setTimeout(() => focusAccessibility(refObject.current), 200);
|
|
48
41
|
}
|
|
@@ -71,12 +64,9 @@ const SelectionInput = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
71
64
|
}), /*#__PURE__*/React.createElement(Picker, {
|
|
72
65
|
cancelText: pickerCancelLabel,
|
|
73
66
|
confirmText: pickerConfirmLabel,
|
|
74
|
-
items: values.map(
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
} = _ref4;
|
|
78
|
-
return itemLabel;
|
|
79
|
-
}),
|
|
67
|
+
items: values.map(({
|
|
68
|
+
label: itemLabel
|
|
69
|
+
}) => itemLabel),
|
|
80
70
|
modal: true,
|
|
81
71
|
mode: "list",
|
|
82
72
|
onCancel: onCancel,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["Picker","React","forwardRef","useCallback","useMemo","useState","useForwardedRef","focusAccessibility","TouchableOpacity","useAccessibilityTranslation","useAppColorScheme","TextInput","TextInputAccessory","SelectionInput","
|
|
1
|
+
{"version":3,"names":["Picker","React","forwardRef","useCallback","useMemo","useState","useForwardedRef","focusAccessibility","TouchableOpacity","useAccessibilityTranslation","useAppColorScheme","TextInput","TextInputAccessory","SelectionInput","selectedValue","values","label","pickerTitle","pickerConfirmLabel","pickerCancelLabel","onChange","error","props","ref","_selectedChoice$short","t","colorScheme","selectedChoice","undefined","find","value","forwardedRef","refObject","pickerOpen","setPickerOpen","onOpen","onConfirm","valueLabel","choice","choiceLabel","setTimeout","current","onCancel","requestAnimationFrame","accessibilityLabel","createElement","_extends","accessibilityHint","accessibilityRole","accessibilityValue","text","onPress","accessory","Dropdown","disabled","pointerEvents","shortLabel","cancelText","confirmText","items","map","itemLabel","modal","mode","open","textColor","title","displayName"],"sources":["selection-input.tsx"],"sourcesContent":["import Picker from '@procivis/react-native-picker';\nimport React, { forwardRef, useCallback, useMemo, useState } from 'react';\nimport type { TouchableOpacityProps } from 'react-native';\n\nimport { useForwardedRef } from '../../utils/ref';\nimport { focusAccessibility } from '../accessibility/accessibility';\nimport { TouchableOpacity, TouchableOpacityRef } from '../accessibility/accessibilityHistoryWrappers';\nimport { useAccessibilityTranslation } from '../accessibility/accessibilityLanguage';\nimport { useAppColorScheme } from '../theme';\nimport TextInput, { TextInputAccessory } from './text-input';\n\nexport interface SelectionInputChoice {\n label: string;\n /**\n * If specified used in the input display, otherwise {@link label} used.\n * The {@link label} is always used for the picker values.\n */\n shortLabel?: string;\n value: string | number;\n}\n\nexport interface SelectionInputProps extends TouchableOpacityProps {\n error?: string;\n label: string;\n /**\n * Called when selection changes\n * @return `true` to avoid accessibility auto-focusing, `false` otherwise\n */\n onChange?: (value: SelectionInputChoice) => boolean;\n pickerCancelLabel: string;\n\n pickerConfirmLabel: string;\n pickerTitle?: string;\n /** {@link SelectionInputChoice.label} of the selected choice */\n selectedValue?: string | number;\n\n values: SelectionInputChoice[];\n}\n\n/**\n * Generic selection input component\n * @see https://www.figma.com/file/Gd0Tj0234hxtl3HMcCJThW/App-Component-Library-(Design)?node-id=4%3A127&t=B2Y3PtJHH22XDPkx-0\n */\nconst SelectionInput = forwardRef<TouchableOpacityRef, SelectionInputProps>(\n (\n { selectedValue, values, label, pickerTitle, pickerConfirmLabel, pickerCancelLabel, onChange, error, ...props },\n ref,\n ) => {\n const t = useAccessibilityTranslation();\n const colorScheme = useAppColorScheme();\n const selectedChoice = useMemo(\n () => (selectedValue !== undefined ? values.find(({ value }) => value === selectedValue) : undefined),\n [selectedValue, values],\n );\n\n const [forwardedRef, refObject] = useForwardedRef(ref);\n const [pickerOpen, setPickerOpen] = useState(false);\n\n const onOpen = useCallback(() => setPickerOpen(true), []);\n const onConfirm = useCallback(\n (valueLabel: any) => {\n setPickerOpen(false);\n const choice = values.find(({ label: choiceLabel }) => choiceLabel === valueLabel);\n if (!choice || !onChange?.(choice)) {\n setTimeout(() => focusAccessibility(refObject.current), 200);\n }\n },\n [onChange, refObject, values],\n );\n const onCancel = useCallback(() => {\n setPickerOpen(false);\n requestAnimationFrame(() => focusAccessibility(refObject.current));\n }, [refObject]);\n\n const accessibilityLabel = error ? `${label}, ${error}` : label;\n return (\n <TouchableOpacity\n accessibilityHint={t('accessibility.control.combobox.tapToSelect')}\n accessibilityLabel={accessibilityLabel}\n accessibilityRole=\"combobox\"\n accessibilityValue={{ text: selectedChoice?.label }}\n onPress={onOpen}\n ref={forwardedRef}\n {...props}>\n <TextInput\n accessory={TextInputAccessory.Dropdown}\n disabled={true}\n error={error}\n label={label}\n pointerEvents=\"none\"\n value={selectedChoice?.shortLabel ?? selectedChoice?.label}\n />\n <Picker\n cancelText={pickerCancelLabel}\n confirmText={pickerConfirmLabel}\n items={values.map(({ label: itemLabel }) => itemLabel)}\n modal\n mode=\"list\"\n onCancel={onCancel}\n onConfirm={onConfirm}\n open={pickerOpen}\n selectedValue={selectedChoice?.label}\n textColor={colorScheme.text}\n title={pickerTitle ?? label}\n />\n </TouchableOpacity>\n );\n },\n);\n\nSelectionInput.displayName = 'SelectionInput';\nexport default SelectionInput;\n"],"mappings":";AAAA,OAAOA,MAAM,MAAM,+BAA+B;AAClD,OAAOC,KAAK,IAAIC,UAAU,EAAEC,WAAW,EAAEC,OAAO,EAAEC,QAAQ,QAAQ,OAAO;AAGzE,SAASC,eAAe,QAAQ,iBAAiB;AACjD,SAASC,kBAAkB,QAAQ,gCAAgC;AACnE,SAASC,gBAAgB,QAA6B,+CAA+C;AACrG,SAASC,2BAA2B,QAAQ,wCAAwC;AACpF,SAASC,iBAAiB,QAAQ,UAAU;AAC5C,OAAOC,SAAS,IAAIC,kBAAkB,QAAQ,cAAc;AA8B5D;AACA;AACA;AACA;AACA,MAAMC,cAAc,gBAAGX,UAAU,CAC/B,CACE;EAAEY,aAAa;EAAEC,MAAM;EAAEC,KAAK;EAAEC,WAAW;EAAEC,kBAAkB;EAAEC,i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,aAAa,EAAEa,cAAc,aAAdA,cAAc,uBAAdA,cAAc,CAAEX,KAAM;IACrCiD,SAAS,EAAEvC,WAAW,CAACwB,IAAK;IAC5BgB,KAAK,EAAEjD,WAAW,aAAXA,WAAW,cAAXA,WAAW,GAAID;EAAM,CAC7B,CACe,CAAC;AAEvB,CACF,CAAC;AAEDH,cAAc,CAACsD,WAAW,GAAG,gBAAgB;AAC7C,eAAetD,cAAc","ignoreList":[]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
1
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
2
2
|
import React, { forwardRef, useCallback, useEffect, useMemo, useState } from 'react';
|
|
3
3
|
import { Animated, Platform, StyleSheet, TextInput as RNTextInput, useWindowDimensions, View } from 'react-native';
|
|
4
4
|
import { concatTestID } from '../../utils/testID';
|
|
@@ -10,11 +10,11 @@ import { useAppColorScheme } from '../theme/color-scheme-context';
|
|
|
10
10
|
|
|
11
11
|
// difference between font sizes
|
|
12
12
|
const LABEL_SCALE_RATIO = 14 / 12;
|
|
13
|
-
export let TextInputAccessory
|
|
14
|
-
(function (TextInputAccessory) {
|
|
13
|
+
export let TextInputAccessory = /*#__PURE__*/function (TextInputAccessory) {
|
|
15
14
|
TextInputAccessory["Dropdown"] = "dropdown";
|
|
16
15
|
TextInputAccessory["Clear"] = "clear";
|
|
17
|
-
|
|
16
|
+
return TextInputAccessory;
|
|
17
|
+
}({});
|
|
18
18
|
const hitSlop = {
|
|
19
19
|
bottom: 10,
|
|
20
20
|
left: 10,
|
|
@@ -25,22 +25,21 @@ const hitSlop = {
|
|
|
25
25
|
* Generic text input component
|
|
26
26
|
* @see https://www.figma.com/file/Gd0Tj0234hxtl3HMcCJThW/App-Component-Library-(Design)?node-id=3%3A824&t=r7HhHF1rsNLmOBL2-4
|
|
27
27
|
*/
|
|
28
|
-
const TextInput = /*#__PURE__*/forwardRef((
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
} = _ref;
|
|
28
|
+
const TextInput = /*#__PURE__*/forwardRef(({
|
|
29
|
+
value,
|
|
30
|
+
label,
|
|
31
|
+
accessory = TextInputAccessory.Clear,
|
|
32
|
+
accessoryAccessibilityLabel,
|
|
33
|
+
onAccessoryPress,
|
|
34
|
+
onSubmit,
|
|
35
|
+
onFocus,
|
|
36
|
+
onBlur,
|
|
37
|
+
disabled,
|
|
38
|
+
error,
|
|
39
|
+
style,
|
|
40
|
+
placeholder,
|
|
41
|
+
...props
|
|
42
|
+
}, ref) => {
|
|
44
43
|
const colorScheme = useAppColorScheme();
|
|
45
44
|
const {
|
|
46
45
|
fontScale
|
|
@@ -48,11 +47,11 @@ const TextInput = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
48
47
|
const [focused, setFocused] = useState(false);
|
|
49
48
|
const onFocusAction = useCallback(e => {
|
|
50
49
|
setFocused(true);
|
|
51
|
-
onFocus === null || onFocus === void 0
|
|
50
|
+
onFocus === null || onFocus === void 0 || onFocus(e);
|
|
52
51
|
}, [onFocus]);
|
|
53
52
|
const onBlurAction = useCallback(e => {
|
|
54
53
|
setFocused(false);
|
|
55
|
-
onBlur === null || onBlur === void 0
|
|
54
|
+
onBlur === null || onBlur === void 0 || onBlur(e);
|
|
56
55
|
}, [onBlur]);
|
|
57
56
|
const onSubmitEditing = useCallback(e => onSubmit === null || onSubmit === void 0 ? void 0 : onSubmit(e.nativeEvent.text), [onSubmit]);
|
|
58
57
|
const accessoryIcon = useMemo(() => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","forwardRef","useCallback","useEffect","useMemo","useState","Animated","Platform","StyleSheet","TextInput","RNTextInput","useWindowDimensions","View","concatTestID","TouchableOpacity","ClearInputIcon","DropdownInputIcon","font","Typography","useAppColorScheme","LABEL_SCALE_RATIO","TextInputAccessory","hitSlop","bottom","left","right","top","_ref","ref","value","label","accessory","Clear","accessoryAccessibilityLabel","onAccessoryPress","onSubmit","onFocus","onBlur","disabled","error","style","placeholder","props","colorScheme","fontScale","focused","setFocused","onFocusAction","e","onBlurAction","onSubmitEditing","nativeEvent","text","accessoryIcon","Dropdown","createElement","undefined","accessoryComponent","accessibilityLabel","accessibilityRole","accessible","onPress","testID","labelPosition","labelAnimation","Value","timing","duration","toValue","useNativeDriver","start","labelLayout","setLabelLayout","onLabelLayout","event","layout","inputStyle","height","Math","min","input","_extends","defaultValue","editable","maxFontSizeMultiplier","numberOfLines","returnKeyType","regular","styles","inputText","OS","inputAndroid","inputIOS","color","textAlignVertical","underlineColorAndroid","onLayout","transform","translateY","interpolate","inputRange","outputRange","translateX","width","scale","preset","inputRow","borderColor","accent","grayDark","inputWrapperAndroid","create","fontSize","letterSpacing","lineHeight","position","flex","alignItems","borderBottomWidth","flexDirection","marginBottom","paddingVertical","minHeight","justifyContent","overflow","displayName"],"sources":["text-input.tsx"],"sourcesContent":["import React, { forwardRef, useCallback, useEffect, useMemo, useState } from 'react';\nimport {\n Animated,\n Insets,\n LayoutChangeEvent,\n LayoutRectangle,\n NativeSyntheticEvent,\n Platform,\n StyleProp,\n StyleSheet,\n TextInput as RNTextInput,\n TextInputFocusEventData as RNTextInputFocusEventData,\n TextInputProps as RNTextInputProps,\n TextInputSubmitEditingEventData as RNTextInputSubmitEditingEventData,\n useWindowDimensions,\n View,\n ViewStyle,\n} from 'react-native';\n\nimport { concatTestID } from '../../utils/testID';\nimport { TouchableOpacity } from '../accessibility/accessibilityHistoryWrappers';\nimport { ClearInputIcon, DropdownInputIcon } from '../icons/input';\nimport font from '../text/font';\nimport Typography from '../text/typography';\nimport { useAppColorScheme } from '../theme/color-scheme-context';\n\n// difference between font sizes\nconst LABEL_SCALE_RATIO = 14 / 12;\n\nexport enum TextInputAccessory {\n Dropdown = 'dropdown',\n Clear = 'clear',\n}\n\nconst hitSlop: Insets = { bottom: 10, left: 10, right: 10, top: 10 };\n\nexport type TextInputProps = Omit<RNTextInputProps, 'editable' | 'onSubmitEditing' | 'style'> & {\n accessory?: TextInputAccessory;\n accessoryAccessibilityLabel?: string;\n disabled?: boolean;\n error?: string;\n label: string;\n onAccessoryPress?: () => void;\n onSubmit?: (value: string) => void;\n style?: StyleProp<ViewStyle>;\n};\n\n/**\n * Generic text input component\n * @see https://www.figma.com/file/Gd0Tj0234hxtl3HMcCJThW/App-Component-Library-(Design)?node-id=3%3A824&t=r7HhHF1rsNLmOBL2-4\n */\nconst TextInput = forwardRef<RNTextInput, TextInputProps>(\n (\n {\n value,\n label,\n accessory = TextInputAccessory.Clear,\n accessoryAccessibilityLabel,\n onAccessoryPress,\n onSubmit,\n onFocus,\n onBlur,\n disabled,\n error,\n style,\n placeholder,\n ...props\n },\n ref,\n ) => {\n const colorScheme = useAppColorScheme();\n const { fontScale } = useWindowDimensions();\n\n const [focused, setFocused] = useState(false);\n const onFocusAction = useCallback(\n (e: NativeSyntheticEvent<RNTextInputFocusEventData>) => {\n setFocused(true);\n onFocus?.(e);\n },\n [onFocus],\n );\n const onBlurAction = useCallback(\n (e: NativeSyntheticEvent<RNTextInputFocusEventData>) => {\n setFocused(false);\n onBlur?.(e);\n },\n [onBlur],\n );\n\n const onSubmitEditing = useCallback(\n (e: NativeSyntheticEvent<RNTextInputSubmitEditingEventData>) => onSubmit?.(e.nativeEvent.text),\n [onSubmit],\n );\n\n const accessoryIcon = useMemo(() => {\n switch (accessory) {\n case TextInputAccessory.Dropdown:\n return <DropdownInputIcon />;\n case TextInputAccessory.Clear:\n return value && !disabled ? <ClearInputIcon /> : undefined;\n }\n }, [accessory, disabled, value]);\n\n const accessoryComponent = accessoryIcon ? (\n <TouchableOpacity\n accessibilityLabel={accessoryAccessibilityLabel}\n accessibilityRole=\"button\"\n accessible={!disabled}\n disabled={disabled}\n hitSlop={hitSlop}\n onPress={onAccessoryPress}\n testID={concatTestID(props.testID, 'accessoryButton')}>\n {accessoryIcon}\n </TouchableOpacity>\n ) : null;\n\n const labelPosition = focused || value ? 0 : 1;\n const [labelAnimation] = useState<Animated.Value>(() => new Animated.Value(labelPosition));\n useEffect(() => {\n Animated.timing(labelAnimation, {\n duration: 200,\n toValue: labelPosition,\n useNativeDriver: true,\n }).start();\n }, [labelAnimation, labelPosition]);\n\n const [labelLayout, setLabelLayout] = useState<LayoutRectangle>();\n const onLabelLayout = useCallback((event: LayoutChangeEvent) => setLabelLayout(event.nativeEvent.layout), []);\n\n const accessibilityLabel = disabled ? undefined : label;\n const inputStyle = { height: Math.min(2, fontScale) * 24 };\n\n const input = (\n <RNTextInput\n accessibilityLabel={accessibilityLabel}\n defaultValue={value || ''}\n editable={!disabled}\n hitSlop={hitSlop}\n maxFontSizeMultiplier={2}\n numberOfLines={1}\n onBlur={onBlurAction}\n onFocus={onFocusAction}\n onSubmitEditing={onSubmitEditing}\n placeholder={focused ? placeholder : undefined}\n ref={ref}\n returnKeyType=\"next\"\n style={[\n font.regular,\n styles.inputText,\n Platform.OS === 'android' ? styles.inputAndroid : styles.inputIOS,\n {\n color: colorScheme.text,\n },\n ]}\n textAlignVertical=\"center\"\n // https://github.com/facebook/react-native/issues/17530\n underlineColorAndroid=\"#00000000\"\n value={value}\n {...props}\n />\n );\n return (\n <View style={style}>\n <Animated.View\n onLayout={onLabelLayout}\n style={\n labelLayout\n ? {\n transform: [\n {\n // move label into the position of placeholder\n translateY: labelAnimation.interpolate({\n inputRange: [0, 1],\n outputRange: [0, labelLayout.height + 4],\n }),\n },\n {\n // compensate scale position in X direction\n translateX: labelAnimation.interpolate({\n inputRange: [0, 1],\n outputRange: [0, (labelLayout.width * (LABEL_SCALE_RATIO - 1)) / 2],\n }),\n },\n {\n // scale label into the size of placeholder\n scale: labelAnimation.interpolate({\n inputRange: [0, 1],\n outputRange: [1, LABEL_SCALE_RATIO],\n }),\n },\n ],\n }\n : undefined\n }>\n <Typography accessible={false} color={'rgba(0, 0, 0, 0.50)'} preset=\"s\">\n {label}\n </Typography>\n </Animated.View>\n <View\n style={[\n styles.inputRow,\n {\n borderColor: focused ? colorScheme.accent : colorScheme.grayDark,\n },\n ]}>\n {Platform.OS === 'android' ? <View style={[styles.inputWrapperAndroid, inputStyle]}>{input}</View> : input}\n {accessoryComponent}\n </View>\n {error ? (\n <Typography color={colorScheme.error} preset=\"s\">\n {error}\n </Typography>\n ) : null}\n </View>\n );\n },\n);\n\nconst styles = StyleSheet.create({\n inputAndroid: {\n fontSize: 14,\n left: 0,\n letterSpacing: 0.2,\n lineHeight: 22,\n position: 'absolute',\n right: 0,\n },\n inputIOS: {\n flex: 1,\n },\n inputRow: {\n alignItems: 'center',\n borderBottomWidth: 1,\n flexDirection: 'row',\n marginBottom: 4,\n paddingVertical: 4,\n },\n inputText: {\n fontSize: 14,\n letterSpacing: 0.2,\n lineHeight: Platform.OS === 'android' ? 22 : 20,\n minHeight: 24,\n },\n inputWrapperAndroid: {\n flex: 1,\n justifyContent: 'center',\n overflow: 'visible',\n },\n});\n\nTextInput.displayName = 'Input';\n\nexport default TextInput;\n"],"mappings":";AAAA,OAAOA,KAAK,IAAIC,UAAU,EAAEC,WAAW,EAAEC,SAAS,EAAEC,OAAO,EAAEC,QAAQ,QAAQ,OAAO;AACpF,SACEC,QAAQ,EAKRC,QAAQ,EAERC,UAAU,EACVC,SAAS,IAAIC,WAAW,EAIxBC,mBAAmB,EACnBC,IAAI,QAEC,cAAc;AAErB,SAASC,YAAY,QAAQ,oBAAoB;AACjD,SAASC,gBAAgB,QAAQ,+CAA+C;AAChF,SAASC,cAAc,EAAEC,iBAAiB,QAAQ,gBAAgB;AAClE,OAAOC,IAAI,MAAM,cAAc;AAC/B,OAAO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Platform","StyleSheet","TextInput","RNTextInput","useWindowDimensions","View","concatTestID","TouchableOpacity","ClearInputIcon","DropdownInputIcon","font","Typography","useAppColorScheme","LABEL_SCALE_RATIO","TextInputAccessory","hitSlop","bottom","left","right","top","value","label","accessory","Clear","accessoryAccessibilityLabel","onAccessoryPress","onSubmit","onFocus","onBlur","disabled","error","style","placeholder","props","ref","colorScheme","fontScale","focused","setFocused","onFocusAction","e","onBlurAction","onSubmitEditing","nativeEvent","text","accessoryIcon","Dropdown","createElement","undefined","accessoryComponent","accessibilityLabel","accessibilityRole","accessible","onPress","testID","labelPosition","labelAnimation","Value","timing","duration","toValue","useNativeDriver","start","labelLayout","setLabelLayout","onLabelLayout","event","layout","inputStyle","height","Math","min","input","_extends","defaultValue","editable","maxFontSizeMultiplier","numberOfLines","returnKeyType","regular","styles","inputText","OS","inputAndroid","inputIOS","color","textAlignVertical","underlineColorAndroid","onLayout","transform","translateY","interpolate","inputRange","outputRange","translateX","width","scale","preset","inputRow","borderColor","accent","grayDark","inputWrapperAndroid","create","fontSize","letterSpacing","lineHeight","position","flex","alignItems","borderBottomWidth","flexDirection","marginBottom","paddingVertical","minHeight","justifyContent","overflow","displayName"],"sources":["text-input.tsx"],"sourcesContent":["import React, { forwardRef, useCallback, useEffect, useMemo, useState } from 'react';\nimport {\n Animated,\n Insets,\n LayoutChangeEvent,\n LayoutRectangle,\n NativeSyntheticEvent,\n Platform,\n StyleProp,\n StyleSheet,\n TextInput as RNTextInput,\n TextInputFocusEventData as RNTextInputFocusEventData,\n TextInputProps as RNTextInputProps,\n TextInputSubmitEditingEventData as RNTextInputSubmitEditingEventData,\n useWindowDimensions,\n View,\n ViewStyle,\n} from 'react-native';\n\nimport { concatTestID } from '../../utils/testID';\nimport { TouchableOpacity } from '../accessibility/accessibilityHistoryWrappers';\nimport { ClearInputIcon, DropdownInputIcon } from '../icons/input';\nimport font from '../text/font';\nimport Typography from '../text/typography';\nimport { useAppColorScheme } from '../theme/color-scheme-context';\n\n// difference between font sizes\nconst LABEL_SCALE_RATIO = 14 / 12;\n\nexport enum TextInputAccessory {\n Dropdown = 'dropdown',\n Clear = 'clear',\n}\n\nconst hitSlop: Insets = { bottom: 10, left: 10, right: 10, top: 10 };\n\nexport type TextInputProps = Omit<RNTextInputProps, 'editable' | 'onSubmitEditing' | 'style'> & {\n accessory?: TextInputAccessory;\n accessoryAccessibilityLabel?: string;\n disabled?: boolean;\n error?: string;\n label: string;\n onAccessoryPress?: () => void;\n onSubmit?: (value: string) => void;\n style?: StyleProp<ViewStyle>;\n};\n\n/**\n * Generic text input component\n * @see https://www.figma.com/file/Gd0Tj0234hxtl3HMcCJThW/App-Component-Library-(Design)?node-id=3%3A824&t=r7HhHF1rsNLmOBL2-4\n */\nconst TextInput = forwardRef<RNTextInput, TextInputProps>(\n (\n {\n value,\n label,\n accessory = TextInputAccessory.Clear,\n accessoryAccessibilityLabel,\n onAccessoryPress,\n onSubmit,\n onFocus,\n onBlur,\n disabled,\n error,\n style,\n placeholder,\n ...props\n },\n ref,\n ) => {\n const colorScheme = useAppColorScheme();\n const { fontScale } = useWindowDimensions();\n\n const [focused, setFocused] = useState(false);\n const onFocusAction = useCallback(\n (e: NativeSyntheticEvent<RNTextInputFocusEventData>) => {\n setFocused(true);\n onFocus?.(e);\n },\n [onFocus],\n );\n const onBlurAction = useCallback(\n (e: NativeSyntheticEvent<RNTextInputFocusEventData>) => {\n setFocused(false);\n onBlur?.(e);\n },\n [onBlur],\n );\n\n const onSubmitEditing = useCallback(\n (e: NativeSyntheticEvent<RNTextInputSubmitEditingEventData>) => onSubmit?.(e.nativeEvent.text),\n [onSubmit],\n );\n\n const accessoryIcon = useMemo(() => {\n switch (accessory) {\n case TextInputAccessory.Dropdown:\n return <DropdownInputIcon />;\n case TextInputAccessory.Clear:\n return value && !disabled ? <ClearInputIcon /> : undefined;\n }\n }, [accessory, disabled, value]);\n\n const accessoryComponent = accessoryIcon ? (\n <TouchableOpacity\n accessibilityLabel={accessoryAccessibilityLabel}\n accessibilityRole=\"button\"\n accessible={!disabled}\n disabled={disabled}\n hitSlop={hitSlop}\n onPress={onAccessoryPress}\n testID={concatTestID(props.testID, 'accessoryButton')}>\n {accessoryIcon}\n </TouchableOpacity>\n ) : null;\n\n const labelPosition = focused || value ? 0 : 1;\n const [labelAnimation] = useState<Animated.Value>(() => new Animated.Value(labelPosition));\n useEffect(() => {\n Animated.timing(labelAnimation, {\n duration: 200,\n toValue: labelPosition,\n useNativeDriver: true,\n }).start();\n }, [labelAnimation, labelPosition]);\n\n const [labelLayout, setLabelLayout] = useState<LayoutRectangle>();\n const onLabelLayout = useCallback((event: LayoutChangeEvent) => setLabelLayout(event.nativeEvent.layout), []);\n\n const accessibilityLabel = disabled ? undefined : label;\n const inputStyle = { height: Math.min(2, fontScale) * 24 };\n\n const input = (\n <RNTextInput\n accessibilityLabel={accessibilityLabel}\n defaultValue={value || ''}\n editable={!disabled}\n hitSlop={hitSlop}\n maxFontSizeMultiplier={2}\n numberOfLines={1}\n onBlur={onBlurAction}\n onFocus={onFocusAction}\n onSubmitEditing={onSubmitEditing}\n placeholder={focused ? placeholder : undefined}\n ref={ref}\n returnKeyType=\"next\"\n style={[\n font.regular,\n styles.inputText,\n Platform.OS === 'android' ? styles.inputAndroid : styles.inputIOS,\n {\n color: colorScheme.text,\n },\n ]}\n textAlignVertical=\"center\"\n // https://github.com/facebook/react-native/issues/17530\n underlineColorAndroid=\"#00000000\"\n value={value}\n {...props}\n />\n );\n return (\n <View style={style}>\n <Animated.View\n onLayout={onLabelLayout}\n style={\n labelLayout\n ? {\n transform: [\n {\n // move label into the position of placeholder\n translateY: labelAnimation.interpolate({\n inputRange: [0, 1],\n outputRange: [0, labelLayout.height + 4],\n }),\n },\n {\n // compensate scale position in X direction\n translateX: labelAnimation.interpolate({\n inputRange: [0, 1],\n outputRange: [0, (labelLayout.width * (LABEL_SCALE_RATIO - 1)) / 2],\n }),\n },\n {\n // scale label into the size of placeholder\n scale: labelAnimation.interpolate({\n inputRange: [0, 1],\n outputRange: [1, LABEL_SCALE_RATIO],\n }),\n },\n ],\n }\n : undefined\n }>\n <Typography accessible={false} color={'rgba(0, 0, 0, 0.50)'} preset=\"s\">\n {label}\n </Typography>\n </Animated.View>\n <View\n style={[\n styles.inputRow,\n {\n borderColor: focused ? colorScheme.accent : colorScheme.grayDark,\n },\n ]}>\n {Platform.OS === 'android' ? <View style={[styles.inputWrapperAndroid, inputStyle]}>{input}</View> : input}\n {accessoryComponent}\n </View>\n {error ? (\n <Typography color={colorScheme.error} preset=\"s\">\n {error}\n </Typography>\n ) : null}\n </View>\n );\n },\n);\n\nconst styles = StyleSheet.create({\n inputAndroid: {\n fontSize: 14,\n left: 0,\n letterSpacing: 0.2,\n lineHeight: 22,\n position: 'absolute',\n right: 0,\n },\n inputIOS: {\n flex: 1,\n },\n inputRow: {\n alignItems: 'center',\n borderBottomWidth: 1,\n flexDirection: 'row',\n marginBottom: 4,\n paddingVertical: 4,\n },\n inputText: {\n fontSize: 14,\n letterSpacing: 0.2,\n lineHeight: Platform.OS === 'android' ? 22 : 20,\n minHeight: 24,\n },\n inputWrapperAndroid: {\n flex: 1,\n justifyContent: 'center',\n overflow: 'visible',\n },\n});\n\nTextInput.displayName = 'Input';\n\nexport default TextInput;\n"],"mappings":";AAAA,OAAOA,KAAK,IAAIC,UAAU,EAAEC,WAAW,EAAEC,SAAS,EAAEC,OAAO,EAAEC,QAAQ,QAAQ,OAAO;AACpF,SACEC,QAAQ,EAKRC,QAAQ,EAERC,UAAU,EACVC,SAAS,IAAIC,WAAW,EAIxBC,mBAAmB,EACnBC,IAAI,QAEC,cAAc;AAErB,SAASC,YAAY,QAAQ,oBAAoB;AACjD,SAASC,gBAAgB,QAAQ,+CAA+C;AAChF,SAASC,cAAc,EAAEC,iBAAiB,QAAQ,gBAAgB;AAClE,OAAOC,IAAI,MAAM,cAAc;AAC/B,OAAOC,UAAU,MAAM,oBAAoB;AAC3C,SAASC,iBAAiB,QAAQ,+BAA+B;;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C0B,KAAK,EAAE,CAACiD,MAAM,CAACsB,mBAAmB,EAAElC,UAAU;EAAE,GAAEI,KAAY,CAAC,GAAGA,KAAK,EACzGvB,kBACG,CAAC,EACNnB,KAAK,gBACJrC,KAAA,CAAAsD,aAAA,CAACpC,UAAU;IAAC0E,KAAK,EAAElD,WAAW,CAACL,KAAM;IAACmE,MAAM,EAAC;EAAG,GAC7CnE,KACS,CAAC,GACX,IACA,CAAC;AAEX,CACF,CAAC;AAED,MAAMkD,MAAM,GAAG/E,UAAU,CAACsG,MAAM,CAAC;EAC/BpB,YAAY,EAAE;IACZqB,QAAQ,EAAE,EAAE;IACZvF,IAAI,EAAE,CAAC;IACPwF,aAAa,EAAE,GAAG;IAClBC,UAAU,EAAE,EAAE;IACdC,QAAQ,EAAE,UAAU;IACpBzF,KAAK,EAAE;EACT,CAAC;EACDkE,QAAQ,EAAE;IACRwB,IAAI,EAAE;EACR,CAAC;EACDV,QAAQ,EAAE;IACRW,UAAU,EAAE,QAAQ;IACpBC,iBAAiB,EAAE,CAAC;IACpBC,aAAa,EAAE,KAAK;IACpBC,YAAY,EAAE,CAAC;IACfC,eAAe,EAAE;EACnB,CAAC;EACDhC,SAAS,EAAE;IACTuB,QAAQ,EAAE,EAAE;IACZC,aAAa,EAAE,GAAG;IAClBC,UAAU,EAAE1G,QAAQ,CAACkF,EAAE,KAAK,SAAS,GAAG,EAAE,GAAG,EAAE;IAC/CgC,SAAS,EAAE;EACb,CAAC;EACDZ,mBAAmB,EAAE;IACnBM,IAAI,EAAE,CAAC;IACPO,cAAc,EAAE,QAAQ;IACxBC,QAAQ,EAAE;EACZ;AACF,CAAC,CAAC;AAEFlH,SAAS,CAACmH,WAAW,GAAG,OAAO;AAE/B,eAAenH,SAAS","ignoreList":[]}
|
|
@@ -2,4 +2,5 @@ import ListSectionHeader, { ListSectionHeaderProps } from './list-section-header
|
|
|
2
2
|
import ListTitleHeader, { ListTitleHeaderProps } from './list-title-header';
|
|
3
3
|
export { ListSectionHeader, ListSectionHeaderProps };
|
|
4
4
|
export { ListTitleHeader, ListTitleHeaderProps };
|
|
5
|
+
export * from './wallet';
|
|
5
6
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["ListSectionHeader","ListSectionHeaderProps","ListTitleHeader","ListTitleHeaderProps"],"sources":["index.ts"],"sourcesContent":["import ListSectionHeader, { ListSectionHeaderProps } from './list-section-header';\nimport ListTitleHeader, { ListTitleHeaderProps } from './list-title-header';\n\nexport { ListSectionHeader, ListSectionHeaderProps };\nexport { ListTitleHeader, ListTitleHeaderProps };\n"],"mappings":"AAAA,OAAOA,iBAAiB,IAAIC,sBAAsB,QAAQ,uBAAuB;AACjF,OAAOC,eAAe,IAAIC,oBAAoB,QAAQ,qBAAqB;AAE3E,SAASH,iBAAiB,EAAEC,sBAAsB;AAClD,SAASC,eAAe,EAAEC,oBAAoB"}
|
|
1
|
+
{"version":3,"names":["ListSectionHeader","ListSectionHeaderProps","ListTitleHeader","ListTitleHeaderProps"],"sources":["index.ts"],"sourcesContent":["import ListSectionHeader, { ListSectionHeaderProps } from './list-section-header';\nimport ListTitleHeader, { ListTitleHeaderProps } from './list-title-header';\n\nexport { ListSectionHeader, ListSectionHeaderProps };\nexport { ListTitleHeader, ListTitleHeaderProps };\nexport * from './wallet';\n"],"mappings":"AAAA,OAAOA,iBAAiB,IAAIC,sBAAsB,QAAQ,uBAAuB;AACjF,OAAOC,eAAe,IAAIC,oBAAoB,QAAQ,qBAAqB;AAE3E,SAASH,iBAAiB,EAAEC,sBAAsB;AAClD,SAASC,eAAe,EAAEC,oBAAoB;AAC9C,cAAc,UAAU","ignoreList":[]}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ActivityIndicator } from 'react-native';
|
|
3
|
+
const ListPageLoadingIndicator = props => {
|
|
4
|
+
return /*#__PURE__*/React.createElement(ActivityIndicator, props);
|
|
5
|
+
};
|
|
6
|
+
export default ListPageLoadingIndicator;
|
|
7
|
+
//# sourceMappingURL=list-page-loading-indicator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","ActivityIndicator","ListPageLoadingIndicator","props","createElement"],"sources":["list-page-loading-indicator.tsx"],"sourcesContent":["import React, { FC } from 'react';\nimport { ActivityIndicator, ActivityIndicatorProps } from 'react-native';\n\nconst ListPageLoadingIndicator: FC<ActivityIndicatorProps> = (props) => {\n return <ActivityIndicator {...props} />;\n};\n\nexport default ListPageLoadingIndicator;\n"],"mappings":"AAAA,OAAOA,KAAK,MAAc,OAAO;AACjC,SAASC,iBAAiB,QAAgC,cAAc;AAExE,MAAMC,wBAAoD,GAAIC,KAAK,IAAK;EACtE,oBAAOH,KAAA,CAAAI,aAAA,CAACH,iBAAiB,EAAKE,KAAQ,CAAC;AACzC,CAAC;AAED,eAAeD,wBAAwB","ignoreList":[]}
|
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
1
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { StyleSheet } from 'react-native';
|
|
4
4
|
import Typography from '../text/typography';
|
|
5
5
|
import { useAppColorScheme } from '../theme/color-scheme-context';
|
|
6
|
-
const ListSectionHeader =
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
} = _ref;
|
|
6
|
+
const ListSectionHeader = ({
|
|
7
|
+
accessibilityRole,
|
|
8
|
+
color,
|
|
9
|
+
style,
|
|
10
|
+
title,
|
|
11
|
+
...typographyProps
|
|
12
|
+
}) => {
|
|
14
13
|
const colorScheme = useAppColorScheme();
|
|
15
14
|
return /*#__PURE__*/React.createElement(Typography, _extends({
|
|
16
15
|
accessibilityRole: accessibilityRole !== null && accessibilityRole !== void 0 ? accessibilityRole : 'header',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","StyleSheet","Typography","useAppColorScheme","ListSectionHeader","
|
|
1
|
+
{"version":3,"names":["React","StyleSheet","Typography","useAppColorScheme","ListSectionHeader","accessibilityRole","color","style","title","typographyProps","colorScheme","createElement","_extends","text","styles","sectionHeader","create","marginHorizontal","marginVertical"],"sources":["list-section-header.tsx"],"sourcesContent":["import React, { FC } from 'react';\nimport { StyleSheet } from 'react-native';\n\nimport Typography, { TypographyProps } from '../text/typography';\nimport { useAppColorScheme } from '../theme/color-scheme-context';\n\nexport type ListSectionHeaderProps = Partial<TypographyProps> & {\n title: string;\n};\n\nconst ListSectionHeader: FC<ListSectionHeaderProps> = ({\n accessibilityRole,\n color,\n style,\n title,\n ...typographyProps\n}) => {\n const colorScheme = useAppColorScheme();\n return (\n <Typography\n accessibilityRole={accessibilityRole ?? 'header'}\n color={color ?? colorScheme.text}\n style={[styles.sectionHeader, style]}\n {...typographyProps}>\n {title}\n </Typography>\n );\n};\n\nconst styles = StyleSheet.create({\n sectionHeader: {\n marginHorizontal: 20,\n marginVertical: 16,\n },\n});\n\nexport default ListSectionHeader;\n"],"mappings":";AAAA,OAAOA,KAAK,MAAc,OAAO;AACjC,SAASC,UAAU,QAAQ,cAAc;AAEzC,OAAOC,UAAU,MAA2B,oBAAoB;AAChE,SAASC,iBAAiB,QAAQ,+BAA+B;AAMjE,MAAMC,iBAA6C,GAAGA,CAAC;EACrDC,iBAAiB;EACjBC,KAAK;EACLC,KAAK;EACLC,KAAK;EACL,GAAGC;AACL,CAAC,KAAK;EACJ,MAAMC,WAAW,GAAGP,iBAAiB,CAAC,CAAC;EACvC,oBACEH,KAAA,CAAAW,aAAA,CAACT,UAAU,EAAAU,QAAA;IACTP,iBAAiB,EAAEA,iBAAiB,aAAjBA,iBAAiB,cAAjBA,iBAAiB,GAAI,QAAS;IACjDC,KAAK,EAAEA,KAAK,aAALA,KAAK,cAALA,KAAK,GAAII,WAAW,CAACG,IAAK;IACjCN,KAAK,EAAE,CAACO,MAAM,CAACC,aAAa,EAAER,KAAK;EAAE,GACjCE,eAAe,GAClBD,KACS,CAAC;AAEjB,CAAC;AAED,MAAMM,MAAM,GAAGb,UAAU,CAACe,MAAM,CAAC;EAC/BD,aAAa,EAAE;IACbE,gBAAgB,EAAE,EAAE;IACpBC,cAAc,EAAE;EAClB;AACF,CAAC,CAAC;AAEF,eAAed,iBAAiB","ignoreList":[]}
|
|
@@ -2,11 +2,10 @@ import React from 'react';
|
|
|
2
2
|
import { StyleSheet } from 'react-native';
|
|
3
3
|
import Typography from '../text/typography';
|
|
4
4
|
import { useAppColorScheme } from '../theme/color-scheme-context';
|
|
5
|
-
const ListTitleHeader =
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
} = _ref;
|
|
5
|
+
const ListTitleHeader = ({
|
|
6
|
+
title,
|
|
7
|
+
testID
|
|
8
|
+
}) => {
|
|
10
9
|
const colorScheme = useAppColorScheme();
|
|
11
10
|
return /*#__PURE__*/React.createElement(Typography, {
|
|
12
11
|
testID: testID,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","StyleSheet","Typography","useAppColorScheme","ListTitleHeader","
|
|
1
|
+
{"version":3,"names":["React","StyleSheet","Typography","useAppColorScheme","ListTitleHeader","title","testID","colorScheme","createElement","accessibilityRole","color","text","preset","style","styles","listTitle","create","marginBottom","marginHorizontal","marginTop"],"sources":["list-title-header.tsx"],"sourcesContent":["import React, { FC } from 'react';\nimport { StyleSheet } from 'react-native';\n\nimport Typography from '../text/typography';\nimport { useAppColorScheme } from '../theme/color-scheme-context';\n\nexport type ListTitleHeaderProps = {\n title: string;\n testID?: string;\n};\n\nconst ListTitleHeader: FC<ListTitleHeaderProps> = ({ title, testID }) => {\n const colorScheme = useAppColorScheme();\n\n return (\n <Typography testID={testID} accessibilityRole=\"header\" color={colorScheme.text} preset=\"l\" style={styles.listTitle}>\n {title}\n </Typography>\n );\n};\n\nconst styles = StyleSheet.create({\n listTitle: {\n marginBottom: 20,\n marginHorizontal: 20,\n marginTop: 9,\n },\n});\n\nexport default ListTitleHeader;\n"],"mappings":"AAAA,OAAOA,KAAK,MAAc,OAAO;AACjC,SAASC,UAAU,QAAQ,cAAc;AAEzC,OAAOC,UAAU,MAAM,oBAAoB;AAC3C,SAASC,iBAAiB,QAAQ,+BAA+B;AAOjE,MAAMC,eAAyC,GAAGA,CAAC;EAAEC,KAAK;EAAEC;AAAO,CAAC,KAAK;EACvE,MAAMC,WAAW,GAAGJ,iBAAiB,CAAC,CAAC;EAEvC,oBACEH,KAAA,CAAAQ,aAAA,CAACN,UAAU;IAACI,MAAM,EAAEA,MAAO;IAACG,iBAAiB,EAAC,QAAQ;IAACC,KAAK,EAAEH,WAAW,CAACI,IAAK;IAACC,MAAM,EAAC,GAAG;IAACC,KAAK,EAAEC,MAAM,CAACC;EAAU,GAChHV,KACS,CAAC;AAEjB,CAAC;AAED,MAAMS,MAAM,GAAGb,UAAU,CAACe,MAAM,CAAC;EAC/BD,SAAS,EAAE;IACTE,YAAY,EAAE,EAAE;IAChBC,gBAAgB,EAAE,EAAE;IACpBC,SAAS,EAAE;EACb;AACF,CAAC,CAAC;AAEF,eAAef,eAAe","ignoreList":[]}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { StyleSheet, View } from 'react-native';
|
|
3
|
+
import { useSafeAreaInsets } from 'react-native-safe-area-context';
|
|
4
|
+
import { concatTestID } from '../../../utils';
|
|
5
|
+
import { Button } from '../../buttons';
|
|
6
|
+
import { NoCredentialsIcon } from '../../icons';
|
|
7
|
+
import { Typography } from '../../text';
|
|
8
|
+
import { useAppColorScheme } from '../../theme';
|
|
9
|
+
const WalletEmptyList = ({
|
|
10
|
+
onScanPress,
|
|
11
|
+
scanButtonTitle,
|
|
12
|
+
subtitle,
|
|
13
|
+
testID,
|
|
14
|
+
title
|
|
15
|
+
}) => {
|
|
16
|
+
const safeAreaInsets = useSafeAreaInsets();
|
|
17
|
+
const colorScheme = useAppColorScheme();
|
|
18
|
+
return /*#__PURE__*/React.createElement(View, {
|
|
19
|
+
style: styles.empty
|
|
20
|
+
}, /*#__PURE__*/React.createElement(Typography, {
|
|
21
|
+
align: "center",
|
|
22
|
+
color: colorScheme.text,
|
|
23
|
+
preset: "l/line-height-large",
|
|
24
|
+
style: styles.emptyTitle,
|
|
25
|
+
testID: concatTestID(testID, 'title')
|
|
26
|
+
}, title), /*#__PURE__*/React.createElement(Typography, {
|
|
27
|
+
align: "center",
|
|
28
|
+
color: colorScheme.text,
|
|
29
|
+
style: styles.emptySubtitle,
|
|
30
|
+
testID: concatTestID(testID, 'subtitle')
|
|
31
|
+
}, subtitle), /*#__PURE__*/React.createElement(NoCredentialsIcon, {
|
|
32
|
+
style: styles.emptyIcon
|
|
33
|
+
}), /*#__PURE__*/React.createElement(Button, {
|
|
34
|
+
onPress: onScanPress,
|
|
35
|
+
style: [styles.emptyButton, {
|
|
36
|
+
bottom: Math.max(24, safeAreaInsets.bottom)
|
|
37
|
+
}],
|
|
38
|
+
testID: concatTestID(testID, 'scanQrCode'),
|
|
39
|
+
title: scanButtonTitle
|
|
40
|
+
}));
|
|
41
|
+
};
|
|
42
|
+
const styles = StyleSheet.create({
|
|
43
|
+
empty: {
|
|
44
|
+
alignItems: 'center',
|
|
45
|
+
flex: 1,
|
|
46
|
+
marginHorizontal: 16,
|
|
47
|
+
marginTop: 224
|
|
48
|
+
},
|
|
49
|
+
emptyButton: {
|
|
50
|
+
marginBottom: 16,
|
|
51
|
+
position: 'absolute',
|
|
52
|
+
width: '100%'
|
|
53
|
+
},
|
|
54
|
+
emptyIcon: {
|
|
55
|
+
marginTop: -30
|
|
56
|
+
},
|
|
57
|
+
emptySubtitle: {
|
|
58
|
+
opacity: 0.7
|
|
59
|
+
},
|
|
60
|
+
emptyTitle: {
|
|
61
|
+
marginBottom: 8,
|
|
62
|
+
opacity: 0.7
|
|
63
|
+
}
|
|
64
|
+
});
|
|
65
|
+
export default WalletEmptyList;
|
|
66
|
+
//# sourceMappingURL=empty-list.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","StyleSheet","View","useSafeAreaInsets","concatTestID","Button","NoCredentialsIcon","Typography","useAppColorScheme","WalletEmptyList","onScanPress","scanButtonTitle","subtitle","testID","title","safeAreaInsets","colorScheme","createElement","style","styles","empty","align","color","text","preset","emptyTitle","emptySubtitle","emptyIcon","onPress","emptyButton","bottom","Math","max","create","alignItems","flex","marginHorizontal","marginTop","marginBottom","position","width","opacity"],"sources":["empty-list.tsx"],"sourcesContent":["import React, { FC } from 'react';\nimport { StyleSheet, View } from 'react-native';\nimport { useSafeAreaInsets } from 'react-native-safe-area-context';\n\nimport { concatTestID } from '../../../utils';\nimport { Button } from '../../buttons';\nimport { NoCredentialsIcon } from '../../icons';\nimport { Typography } from '../../text';\nimport { useAppColorScheme } from '../../theme';\n\ntype WalletEmptyListProps = {\n onScanPress: () => void;\n scanButtonTitle: string;\n subtitle: string;\n testID: string;\n title: string;\n};\n\nconst WalletEmptyList: FC<WalletEmptyListProps> = ({ onScanPress, scanButtonTitle, subtitle, testID, title }) => {\n const safeAreaInsets = useSafeAreaInsets();\n const colorScheme = useAppColorScheme();\n\n return (\n <View style={styles.empty}>\n <Typography\n align=\"center\"\n color={colorScheme.text}\n preset=\"l/line-height-large\"\n style={styles.emptyTitle}\n testID={concatTestID(testID, 'title')}>\n {title}\n </Typography>\n <Typography\n align=\"center\"\n color={colorScheme.text}\n style={styles.emptySubtitle}\n testID={concatTestID(testID, 'subtitle')}>\n {subtitle}\n </Typography>\n <NoCredentialsIcon style={styles.emptyIcon} />\n <Button\n onPress={onScanPress}\n style={[styles.emptyButton, { bottom: Math.max(24, safeAreaInsets.bottom) }]}\n testID={concatTestID(testID, 'scanQrCode')}\n title={scanButtonTitle}\n />\n </View>\n );\n};\n\nconst styles = StyleSheet.create({\n empty: {\n alignItems: 'center',\n flex: 1,\n marginHorizontal: 16,\n marginTop: 224,\n },\n emptyButton: {\n marginBottom: 16,\n position: 'absolute',\n width: '100%',\n },\n emptyIcon: {\n marginTop: -30,\n },\n emptySubtitle: {\n opacity: 0.7,\n },\n emptyTitle: {\n marginBottom: 8,\n opacity: 0.7,\n },\n});\n\nexport default WalletEmptyList;\n"],"mappings":"AAAA,OAAOA,KAAK,MAAc,OAAO;AACjC,SAASC,UAAU,EAAEC,IAAI,QAAQ,cAAc;AAC/C,SAASC,iBAAiB,QAAQ,gCAAgC;AAElE,SAASC,YAAY,QAAQ,gBAAgB;AAC7C,SAASC,MAAM,QAAQ,eAAe;AACtC,SAASC,iBAAiB,QAAQ,aAAa;AAC/C,SAASC,UAAU,QAAQ,YAAY;AACvC,SAASC,iBAAiB,QAAQ,aAAa;AAU/C,MAAMC,eAAyC,GAAGA,CAAC;EAAEC,WAAW;EAAEC,eAAe;EAAEC,QAAQ;EAAEC,MAAM;EAAEC;AAAM,CAAC,KAAK;EAC/G,MAAMC,cAAc,GAAGZ,iBAAiB,CAAC,CAAC;EAC1C,MAAMa,WAAW,GAAGR,iBAAiB,CAAC,CAAC;EAEvC,oBACER,KAAA,CAAAiB,aAAA,CAACf,IAAI;IAACgB,KAAK,EAAEC,MAAM,CAACC;EAAM,gBACxBpB,KAAA,CAAAiB,aAAA,CAACV,UAAU;IACTc,KAAK,EAAC,QAAQ;IACdC,KAAK,EAAEN,WAAW,CAACO,IAAK;IACxBC,MAAM,EAAC,qBAAqB;IAC5BN,KAAK,EAAEC,MAAM,CAACM,UAAW;IACzBZ,MAAM,EAAET,YAAY,CAACS,MAAM,EAAE,OAAO;EAAE,GACrCC,KACS,CAAC,eACbd,KAAA,CAAAiB,aAAA,CAACV,UAAU;IACTc,KAAK,EAAC,QAAQ;IACdC,KAAK,EAAEN,WAAW,CAACO,IAAK;IAC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