@procivis/one-react-native-components 0.1.63 → 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 +15 -9
- package/lib/commonjs/components/backup/index.js +17 -0
- package/lib/commonjs/components/backup/index.js.map +1 -0
- package/lib/commonjs/components/backup/preview-credentials.js +38 -0
- package/lib/commonjs/components/backup/preview-credentials.js.map +1 -0
- package/lib/commonjs/components/credential/credential.js +62 -0
- package/lib/commonjs/components/credential/credential.js.map +1 -0
- package/lib/commonjs/components/credential/index.js +17 -0
- package/lib/commonjs/components/credential/index.js.map +1 -0
- package/lib/commonjs/components/entity/EntityButtons.js +64 -0
- package/lib/commonjs/components/entity/EntityButtons.js.map +1 -0
- package/lib/commonjs/components/entity/entity-attributes.js +50 -0
- package/lib/commonjs/components/entity/entity-attributes.js.map +1 -0
- package/lib/commonjs/components/entity/entity-details-with-buttons.js +90 -0
- package/lib/commonjs/components/entity/entity-details-with-buttons.js.map +1 -0
- package/lib/commonjs/components/entity/entity-details.js +72 -0
- package/lib/commonjs/components/entity/entity-details.js.map +1 -0
- package/lib/commonjs/components/entity/index.js +27 -0
- package/lib/commonjs/components/entity/index.js.map +1 -0
- 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 +72 -0
- package/lib/commonjs/components/index.js.map +1 -0
- package/lib/commonjs/components/navigation/header-buttons.js +78 -0
- package/lib/commonjs/components/navigation/header-buttons.js.map +1 -0
- package/lib/commonjs/components/navigation/index.js +17 -0
- package/lib/commonjs/components/navigation/index.js.map +1 -0
- package/lib/commonjs/components/proof-request/group.js +35 -0
- package/lib/commonjs/components/proof-request/group.js.map +1 -0
- package/lib/commonjs/components/proof-request/index.js +39 -0
- package/lib/commonjs/components/proof-request/index.js.map +1 -0
- package/lib/commonjs/components/proof-request/select-credential.js +48 -0
- package/lib/commonjs/components/proof-request/select-credential.js.map +1 -0
- package/lib/commonjs/components/proof-request/share-credential.js +159 -0
- package/lib/commonjs/components/proof-request/share-credential.js.map +1 -0
- package/lib/commonjs/index.js +8 -261
- 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 +197 -0
- package/lib/commonjs/ui-components/accessibility/accessibility.js.map +1 -0
- package/lib/commonjs/ui-components/accessibility/accessibilityHistory.js +77 -0
- package/lib/commonjs/ui-components/accessibility/accessibilityHistory.js.map +1 -0
- package/lib/commonjs/ui-components/accessibility/accessibilityHistoryWrappers.js +47 -0
- package/lib/commonjs/ui-components/accessibility/accessibilityHistoryWrappers.js.map +1 -0
- package/lib/commonjs/ui-components/accessibility/accessibilityLanguage.js +61 -0
- package/lib/commonjs/ui-components/accessibility/accessibilityLanguage.js.map +1 -0
- package/lib/commonjs/ui-components/accessibility/index.js +100 -0
- package/lib/commonjs/ui-components/accessibility/index.js.map +1 -0
- package/lib/commonjs/ui-components/accessibility/locale/index.js +20 -0
- package/lib/commonjs/ui-components/accessibility/locale/index.js.map +1 -0
- package/lib/commonjs/ui-components/accessibility/locale.test.js.map +1 -0
- package/lib/commonjs/ui-components/action-modal/ActionModal.js +50 -0
- package/lib/commonjs/ui-components/action-modal/ActionModal.js.map +1 -0
- package/lib/commonjs/ui-components/action-modal/index.js +14 -0
- package/lib/commonjs/ui-components/action-modal/index.js.map +1 -0
- package/lib/commonjs/ui-components/activity-indicator/activity-indicator.js +32 -0
- package/lib/commonjs/ui-components/activity-indicator/activity-indicator.js.map +1 -0
- package/lib/commonjs/ui-components/activity-indicator/index.js +14 -0
- package/lib/commonjs/ui-components/activity-indicator/index.js.map +1 -0
- package/lib/commonjs/ui-components/blur/blur-view.js +74 -0
- package/lib/commonjs/ui-components/blur/blur-view.js.map +1 -0
- package/lib/commonjs/ui-components/blur/index.js +21 -0
- package/lib/commonjs/ui-components/blur/index.js.map +1 -0
- package/lib/commonjs/ui-components/buttons/back-button.js +34 -0
- package/lib/commonjs/ui-components/buttons/back-button.js.map +1 -0
- package/lib/commonjs/ui-components/buttons/button.js +150 -0
- package/lib/commonjs/ui-components/buttons/button.js.map +1 -0
- package/lib/commonjs/ui-components/buttons/connectivity-button.js +80 -0
- package/lib/commonjs/ui-components/buttons/connectivity-button.js.map +1 -0
- package/lib/commonjs/ui-components/buttons/filter-button.js +49 -0
- package/lib/commonjs/ui-components/buttons/filter-button.js.map +1 -0
- package/lib/commonjs/ui-components/buttons/ghost-button.js +60 -0
- package/lib/commonjs/ui-components/buttons/ghost-button.js.map +1 -0
- 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 +76 -0
- package/lib/commonjs/ui-components/buttons/index.js.map +1 -0
- package/lib/commonjs/ui-components/buttons/scan-button.js +81 -0
- package/lib/commonjs/ui-components/buttons/scan-button.js.map +1 -0
- package/lib/commonjs/ui-components/camera/camera-overlay.js +58 -0
- package/lib/commonjs/ui-components/camera/camera-overlay.js.map +1 -0
- package/lib/commonjs/ui-components/camera/index.js +21 -0
- package/lib/commonjs/ui-components/camera/index.js.map +1 -0
- package/lib/commonjs/ui-components/camera/qr-code-scanner.js +48 -0
- package/lib/commonjs/ui-components/camera/qr-code-scanner.js.map +1 -0
- package/lib/commonjs/ui-components/control/checkbox.js +78 -0
- package/lib/commonjs/ui-components/control/checkbox.js.map +1 -0
- package/lib/commonjs/ui-components/control/index.js.map +1 -0
- package/lib/commonjs/ui-components/control/switch.js +63 -0
- package/lib/commonjs/ui-components/control/switch.js.map +1 -0
- package/lib/commonjs/ui-components/credential/card/credential-card.js +179 -0
- package/lib/commonjs/ui-components/credential/card/credential-card.js.map +1 -0
- package/lib/commonjs/ui-components/credential/card/credential-details-card.js +194 -0
- package/lib/commonjs/ui-components/credential/card/credential-details-card.js.map +1 -0
- package/lib/commonjs/ui-components/credential/card/credential-details-list-item.js +91 -0
- package/lib/commonjs/ui-components/credential/card/credential-details-list-item.js.map +1 -0
- package/lib/commonjs/ui-components/credential/card/credential-header.js +174 -0
- package/lib/commonjs/ui-components/credential/card/credential-header.js.map +1 -0
- package/lib/commonjs/ui-components/credential/card/credential-image-carousel.js +122 -0
- package/lib/commonjs/ui-components/credential/card/credential-image-carousel.js.map +1 -0
- package/lib/commonjs/ui-components/credential/card/index.js +56 -0
- package/lib/commonjs/ui-components/credential/card/index.js.map +1 -0
- package/lib/commonjs/ui-components/credential/credential-attribute-item.js +280 -0
- package/lib/commonjs/ui-components/credential/credential-attribute-item.js.map +1 -0
- package/lib/commonjs/ui-components/credential/credential-carousel-images.js +95 -0
- package/lib/commonjs/ui-components/credential/credential-carousel-images.js.map +1 -0
- package/lib/commonjs/ui-components/credential/index.js +67 -0
- package/lib/commonjs/ui-components/credential/index.js.map +1 -0
- package/lib/commonjs/ui-components/credential/selector-status.js +16 -0
- package/lib/commonjs/ui-components/credential/selector-status.js.map +1 -0
- package/lib/commonjs/ui-components/credential/selector.js +77 -0
- package/lib/commonjs/ui-components/credential/selector.js.map +1 -0
- package/lib/commonjs/ui-components/detail/detail.js +82 -0
- package/lib/commonjs/ui-components/detail/detail.js.map +1 -0
- package/lib/commonjs/ui-components/detail/index.js +14 -0
- package/lib/commonjs/ui-components/detail/index.js.map +1 -0
- package/lib/commonjs/ui-components/entity/avatar.js +104 -0
- package/lib/commonjs/ui-components/entity/avatar.js.map +1 -0
- package/lib/commonjs/ui-components/entity/entity-cluster.js +72 -0
- package/lib/commonjs/ui-components/entity/entity-cluster.js.map +1 -0
- package/lib/commonjs/ui-components/entity/index.js +34 -0
- package/lib/commonjs/ui-components/entity/index.js.map +1 -0
- package/lib/commonjs/ui-components/header/focus-aware-status-bar.js +19 -0
- package/lib/commonjs/ui-components/header/focus-aware-status-bar.js.map +1 -0
- package/lib/commonjs/ui-components/header/foldable-header.js +86 -0
- package/lib/commonjs/ui-components/header/foldable-header.js.map +1 -0
- package/lib/commonjs/ui-components/header/header.js +103 -0
- package/lib/commonjs/ui-components/header/header.js.map +1 -0
- package/lib/commonjs/ui-components/header/index.js +35 -0
- package/lib/commonjs/ui-components/header/index.js.map +1 -0
- package/lib/commonjs/ui-components/header/navigation-header.js +142 -0
- package/lib/commonjs/ui-components/header/navigation-header.js.map +1 -0
- package/lib/commonjs/ui-components/history/data-item.js +77 -0
- package/lib/commonjs/ui-components/history/data-item.js.map +1 -0
- 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-item.js +111 -0
- package/lib/commonjs/ui-components/history/history-item.js.map +1 -0
- package/lib/commonjs/ui-components/history/history-section-header.js +47 -0
- package/lib/commonjs/ui-components/history/history-section-header.js.map +1 -0
- package/lib/commonjs/ui-components/history/history-section-list-item.js +48 -0
- package/lib/commonjs/ui-components/history/history-section-list-item.js.map +1 -0
- package/lib/commonjs/ui-components/history/index.js +76 -0
- package/lib/commonjs/ui-components/history/index.js.map +1 -0
- package/lib/commonjs/ui-components/icons/connectivity.js +134 -0
- package/lib/commonjs/ui-components/icons/connectivity.js.map +1 -0
- package/lib/commonjs/ui-components/icons/credential.js +151 -0
- package/lib/commonjs/ui-components/icons/credential.js.map +1 -0
- package/lib/commonjs/ui-components/icons/entity.js +51 -0
- package/lib/commonjs/ui-components/icons/entity.js.map +1 -0
- package/lib/commonjs/ui-components/icons/history.js +388 -0
- package/lib/commonjs/ui-components/icons/history.js.map +1 -0
- package/lib/commonjs/ui-components/icons/icons.js +233 -0
- package/lib/commonjs/ui-components/icons/icons.js.map +1 -0
- package/lib/commonjs/ui-components/icons/index.js.map +1 -0
- package/lib/commonjs/ui-components/icons/input.js +44 -0
- package/lib/commonjs/ui-components/icons/input.js.map +1 -0
- package/lib/commonjs/ui-components/icons/keypad.js +82 -0
- package/lib/commonjs/ui-components/icons/keypad.js.map +1 -0
- package/lib/commonjs/ui-components/icons/loader.js +180 -0
- package/lib/commonjs/ui-components/icons/loader.js.map +1 -0
- package/lib/commonjs/ui-components/icons/nerd-view.js +120 -0
- package/lib/commonjs/ui-components/icons/nerd-view.js.map +1 -0
- package/lib/commonjs/ui-components/icons/selector.js +55 -0
- package/lib/commonjs/ui-components/icons/selector.js.map +1 -0
- package/lib/commonjs/ui-components/icons/wallet.js +118 -0
- package/lib/commonjs/ui-components/icons/wallet.js.map +1 -0
- package/lib/commonjs/ui-components/image/image-or-component.js +77 -0
- package/lib/commonjs/ui-components/image/image-or-component.js.map +1 -0
- package/lib/commonjs/ui-components/image/index.js +14 -0
- package/lib/commonjs/ui-components/image/index.js.map +1 -0
- package/lib/commonjs/ui-components/index.js +281 -0
- package/lib/commonjs/ui-components/index.js.map +1 -0
- package/lib/commonjs/ui-components/input/index.js +65 -0
- package/lib/commonjs/ui-components/input/index.js.map +1 -0
- package/lib/commonjs/ui-components/input/radio-group.js +98 -0
- package/lib/commonjs/ui-components/input/radio-group.js.map +1 -0
- package/lib/commonjs/ui-components/input/selection-input.js +91 -0
- package/lib/commonjs/ui-components/input/selection-input.js.map +1 -0
- package/lib/commonjs/ui-components/input/text-input.js +192 -0
- package/lib/commonjs/ui-components/input/text-input.js.map +1 -0
- package/lib/commonjs/ui-components/list/index.js +52 -0
- package/lib/commonjs/ui-components/list/index.js.map +1 -0
- 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 +34 -0
- package/lib/commonjs/ui-components/list/list-section-header.js.map +1 -0
- package/lib/commonjs/ui-components/list/list-title-header.js +33 -0
- package/lib/commonjs/ui-components/list/list-title-header.js.map +1 -0
- 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 +40 -0
- package/lib/commonjs/ui-components/loader/index.js.map +1 -0
- package/lib/commonjs/ui-components/loader/loader.js +140 -0
- package/lib/commonjs/ui-components/loader/loader.js.map +1 -0
- package/lib/commonjs/ui-components/loader/loading-result.js +93 -0
- package/lib/commonjs/ui-components/loader/loading-result.js.map +1 -0
- package/lib/commonjs/ui-components/nerd-view/index.js +21 -0
- package/lib/commonjs/ui-components/nerd-view/index.js.map +1 -0
- package/lib/commonjs/ui-components/nerd-view/nerd-mode-item.js +234 -0
- package/lib/commonjs/ui-components/nerd-view/nerd-mode-item.js.map +1 -0
- package/lib/commonjs/ui-components/pin/index.js +47 -0
- package/lib/commonjs/ui-components/pin/index.js.map +1 -0
- package/lib/commonjs/ui-components/pin/keypad.js +197 -0
- package/lib/commonjs/ui-components/pin/keypad.js.map +1 -0
- package/lib/commonjs/ui-components/pin/pin-code-screen.js +160 -0
- package/lib/commonjs/ui-components/pin/pin-code-screen.js.map +1 -0
- package/lib/commonjs/ui-components/pin/pin-lock-animation.js +823 -0
- package/lib/commonjs/ui-components/pin/pin-lock-animation.js.map +1 -0
- package/lib/commonjs/ui-components/pin/pin-lock.js +81 -0
- package/lib/commonjs/ui-components/pin/pin-lock.js.map +1 -0
- package/lib/commonjs/ui-components/pin/pins.js +53 -0
- package/lib/commonjs/ui-components/pin/pins.js.map +1 -0
- package/lib/commonjs/ui-components/screens/backup-screen.js +84 -0
- package/lib/commonjs/ui-components/screens/backup-screen.js.map +1 -0
- package/lib/commonjs/ui-components/screens/image-preview-screen.js +90 -0
- package/lib/commonjs/ui-components/screens/image-preview-screen.js.map +1 -0
- package/lib/commonjs/ui-components/screens/index.js +57 -0
- package/lib/commonjs/ui-components/screens/index.js.map +1 -0
- package/lib/commonjs/ui-components/screens/nerd-mode-screen.js +165 -0
- package/lib/commonjs/ui-components/screens/nerd-mode-screen.js.map +1 -0
- package/lib/commonjs/ui-components/screens/qr-code-scanner-screen.js +118 -0
- package/lib/commonjs/ui-components/screens/qr-code-scanner-screen.js.map +1 -0
- package/lib/commonjs/ui-components/screens/scroll-view-screen.js +92 -0
- package/lib/commonjs/ui-components/screens/scroll-view-screen.js.map +1 -0
- package/lib/commonjs/ui-components/screens/section-list-screen.js +65 -0
- package/lib/commonjs/ui-components/screens/section-list-screen.js.map +1 -0
- package/lib/commonjs/ui-components/searchbar/animated-search-bar.js +86 -0
- package/lib/commonjs/ui-components/searchbar/animated-search-bar.js.map +1 -0
- package/lib/commonjs/ui-components/searchbar/index.js +34 -0
- package/lib/commonjs/ui-components/searchbar/index.js.map +1 -0
- package/lib/commonjs/ui-components/searchbar/search-bar.js +97 -0
- package/lib/commonjs/ui-components/searchbar/search-bar.js.map +1 -0
- package/lib/commonjs/ui-components/settings/button-setting.js +65 -0
- package/lib/commonjs/ui-components/settings/button-setting.js.map +1 -0
- package/lib/commonjs/ui-components/settings/index.js +73 -0
- package/lib/commonjs/ui-components/settings/index.js.map +1 -0
- package/lib/commonjs/ui-components/settings/setting-item-separator.js +38 -0
- package/lib/commonjs/ui-components/settings/setting-item-separator.js.map +1 -0
- package/lib/commonjs/ui-components/settings/setting-item.js +77 -0
- package/lib/commonjs/ui-components/settings/setting-item.js.map +1 -0
- package/lib/commonjs/ui-components/settings/settings-button.js +33 -0
- package/lib/commonjs/ui-components/settings/settings-button.js.map +1 -0
- package/lib/commonjs/ui-components/settings/switch-setting.js +33 -0
- package/lib/commonjs/ui-components/settings/switch-setting.js.map +1 -0
- package/lib/commonjs/ui-components/state/error-screen.js +69 -0
- package/lib/commonjs/ui-components/state/error-screen.js.map +1 -0
- package/lib/commonjs/ui-components/state/index.js +27 -0
- package/lib/commonjs/ui-components/state/index.js.map +1 -0
- package/lib/commonjs/ui-components/text/base.js +38 -0
- package/lib/commonjs/ui-components/text/base.js.map +1 -0
- package/lib/commonjs/ui-components/text/font.js +62 -0
- package/lib/commonjs/ui-components/text/font.js.map +1 -0
- package/lib/commonjs/ui-components/text/index.js +14 -0
- package/lib/commonjs/ui-components/text/index.js.map +1 -0
- package/lib/commonjs/ui-components/text/typography.js +116 -0
- package/lib/commonjs/ui-components/text/typography.js.map +1 -0
- package/lib/commonjs/ui-components/theme/color-scheme-context.js +53 -0
- package/lib/commonjs/ui-components/theme/color-scheme-context.js.map +1 -0
- package/lib/commonjs/ui-components/theme/color-scheme.js.map +1 -0
- package/lib/commonjs/ui-components/theme/index.js.map +1 -0
- package/lib/commonjs/utils/array.js +10 -0
- package/lib/commonjs/utils/array.js.map +1 -0
- package/lib/commonjs/utils/backup.js +12 -0
- package/lib/commonjs/utils/backup.js.map +1 -0
- 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 +100 -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 +162 -0
- package/lib/commonjs/utils/hooks/connectivity/connectivity.js.map +1 -0
- package/lib/commonjs/utils/hooks/connectivity/connectivity.test.js +62 -0
- package/lib/commonjs/utils/hooks/connectivity/connectivity.test.js.map +1 -0
- package/lib/commonjs/utils/hooks/core/backup.js +155 -0
- package/lib/commonjs/utils/hooks/core/backup.js.map +1 -0
- 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 +33 -0
- package/lib/commonjs/utils/hooks/core/core-config.js.map +1 -0
- package/lib/commonjs/utils/hooks/core/core-context.js +77 -0
- package/lib/commonjs/utils/hooks/core/core-context.js.map +1 -0
- package/lib/commonjs/utils/hooks/core/core-init.js +97 -0
- package/lib/commonjs/utils/hooks/core/core-init.js.map +1 -0
- package/lib/commonjs/utils/hooks/core/credential-schemas.js +100 -0
- package/lib/commonjs/utils/hooks/core/credential-schemas.js.map +1 -0
- package/lib/commonjs/utils/hooks/core/credentials.js +160 -0
- package/lib/commonjs/utils/hooks/core/credentials.js.map +1 -0
- package/lib/commonjs/utils/hooks/core/dids.js +33 -0
- package/lib/commonjs/utils/hooks/core/dids.js.map +1 -0
- package/lib/commonjs/utils/hooks/core/error-code.js +14 -0
- package/lib/commonjs/utils/hooks/core/error-code.js.map +1 -0
- package/lib/commonjs/utils/hooks/core/history.js +33 -0
- package/lib/commonjs/utils/hooks/core/history.js.map +1 -0
- package/lib/commonjs/utils/hooks/core/index.js +149 -0
- package/lib/commonjs/utils/hooks/core/index.js.map +1 -0
- package/lib/commonjs/utils/hooks/core/proof-schemas.js +117 -0
- package/lib/commonjs/utils/hooks/core/proof-schemas.js.map +1 -0
- package/lib/commonjs/utils/hooks/core/proofs.js +367 -0
- package/lib/commonjs/utils/hooks/core/proofs.js.map +1 -0
- package/lib/commonjs/utils/hooks/core/query.js +24 -0
- package/lib/commonjs/utils/hooks/core/query.js.map +1 -0
- package/lib/commonjs/utils/hooks/core/trust-entity.js +99 -0
- package/lib/commonjs/utils/hooks/core/trust-entity.js.map +1 -0
- package/lib/commonjs/utils/hooks/credential-card/credential-card-expanding.js +51 -0
- package/lib/commonjs/utils/hooks/credential-card/credential-card-expanding.js.map +1 -0
- 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 +20 -0
- package/lib/commonjs/utils/hooks/http/client.js.map +1 -0
- package/lib/commonjs/utils/hooks/index.js +85 -11
- 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 +28 -0
- package/lib/commonjs/utils/hooks/navigation/before-remove.js.map +1 -0
- package/lib/commonjs/utils/hooks/navigation/close-button-timeout.js +34 -0
- package/lib/commonjs/utils/hooks/navigation/close-button-timeout.js.map +1 -0
- package/lib/commonjs/utils/hooks/navigation/deep-link.js +45 -0
- package/lib/commonjs/utils/hooks/navigation/deep-link.js.map +1 -0
- package/lib/commonjs/utils/hooks/navigation/index.js +50 -0
- package/lib/commonjs/utils/hooks/navigation/index.js.map +1 -0
- package/lib/commonjs/utils/hooks/navigation/open-settings.js +42 -0
- package/lib/commonjs/utils/hooks/navigation/open-settings.js.map +1 -0
- package/lib/commonjs/utils/hooks/pin-security/pin-security.js +86 -0
- package/lib/commonjs/utils/hooks/pin-security/pin-security.js.map +1 -0
- package/lib/commonjs/utils/hooks/revocation/credential-status.js +58 -0
- package/lib/commonjs/utils/hooks/revocation/credential-status.js.map +1 -0
- package/lib/commonjs/utils/index.js +154 -44
- 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 +86 -0
- package/lib/commonjs/utils/parsers/credential-images.js.map +1 -0
- package/lib/commonjs/utils/parsers/credential-sharing.js +251 -0
- package/lib/commonjs/utils/parsers/credential-sharing.js.map +1 -0
- package/lib/commonjs/utils/parsers/credential.js +313 -0
- package/lib/commonjs/utils/parsers/credential.js.map +1 -0
- package/lib/commonjs/utils/parsers/index.js +61 -0
- package/lib/commonjs/utils/parsers/index.js.map +1 -0
- package/lib/commonjs/utils/parsers/query.js +104 -0
- package/lib/commonjs/utils/parsers/query.js.map +1 -0
- 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 +88 -0
- package/lib/commonjs/utils/reporting.js.map +1 -0
- package/lib/commonjs/utils/string.js +20 -0
- package/lib/commonjs/utils/string.js.map +1 -0
- 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 +10 -1
- package/lib/commonjs/utils/useMemoAsync.js.map +1 -1
- package/lib/commonjs/utils/uuid.js +16 -0
- package/lib/commonjs/utils/uuid.js.map +1 -0
- package/lib/module/components/backup/index.js +2 -0
- package/lib/module/components/backup/index.js.map +1 -0
- package/lib/module/components/backup/preview-credentials.js +30 -0
- package/lib/module/components/backup/preview-credentials.js.map +1 -0
- package/lib/module/components/credential/credential.js +54 -0
- package/lib/module/components/credential/credential.js.map +1 -0
- package/lib/module/components/credential/index.js +2 -0
- package/lib/module/components/credential/index.js.map +1 -0
- package/lib/module/components/entity/EntityButtons.js +56 -0
- package/lib/module/components/entity/EntityButtons.js.map +1 -0
- package/lib/module/components/entity/entity-attributes.js +42 -0
- package/lib/module/components/entity/entity-attributes.js.map +1 -0
- package/lib/module/components/entity/entity-details-with-buttons.js +81 -0
- package/lib/module/components/entity/entity-details-with-buttons.js.map +1 -0
- package/lib/module/components/entity/entity-details.js +63 -0
- package/lib/module/components/entity/entity-details.js.map +1 -0
- package/lib/module/components/entity/index.js +3 -0
- package/lib/module/components/entity/index.js.map +1 -0
- 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 +7 -0
- package/lib/module/components/index.js.map +1 -0
- package/lib/module/components/navigation/header-buttons.js +66 -0
- package/lib/module/components/navigation/header-buttons.js.map +1 -0
- package/lib/module/components/navigation/index.js +2 -0
- package/lib/module/components/navigation/index.js.map +1 -0
- package/lib/module/components/proof-request/group.js +27 -0
- package/lib/module/components/proof-request/group.js.map +1 -0
- package/lib/module/components/proof-request/index.js +4 -0
- package/lib/module/components/proof-request/index.js.map +1 -0
- package/lib/module/components/proof-request/select-credential.js +40 -0
- package/lib/module/components/proof-request/select-credential.js.map +1 -0
- package/lib/module/components/proof-request/share-credential.js +150 -0
- package/lib/module/components/proof-request/share-credential.js.map +1 -0
- package/lib/module/index.js +2 -25
- 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 +183 -0
- package/lib/module/ui-components/accessibility/accessibility.js.map +1 -0
- package/lib/module/ui-components/accessibility/accessibilityHistory.js +67 -0
- package/lib/module/ui-components/accessibility/accessibilityHistory.js.map +1 -0
- package/lib/module/ui-components/accessibility/accessibilityHistoryWrappers.js +40 -0
- package/lib/module/ui-components/accessibility/accessibilityHistoryWrappers.js.map +1 -0
- package/lib/module/ui-components/accessibility/accessibilityLanguage.js +51 -0
- package/lib/module/ui-components/accessibility/accessibilityLanguage.js.map +1 -0
- package/lib/module/ui-components/accessibility/index.js +8 -0
- package/lib/module/ui-components/accessibility/index.js.map +1 -0
- package/lib/module/ui-components/accessibility/locale/index.js.map +1 -0
- package/lib/module/ui-components/accessibility/locale.test.js.map +1 -0
- package/lib/module/ui-components/action-modal/ActionModal.js +43 -0
- package/lib/module/ui-components/action-modal/ActionModal.js.map +1 -0
- package/lib/module/ui-components/action-modal/index.js.map +1 -0
- package/lib/module/ui-components/activity-indicator/activity-indicator.js +23 -0
- package/lib/module/ui-components/activity-indicator/activity-indicator.js.map +1 -0
- package/lib/module/ui-components/activity-indicator/index.js.map +1 -0
- package/lib/module/ui-components/blur/blur-view.js +66 -0
- package/lib/module/ui-components/blur/blur-view.js.map +1 -0
- package/lib/module/ui-components/blur/index.js.map +1 -0
- package/lib/module/ui-components/buttons/back-button.js +27 -0
- package/lib/module/ui-components/buttons/back-button.js.map +1 -0
- package/lib/module/ui-components/buttons/button.js +142 -0
- package/lib/module/ui-components/buttons/button.js.map +1 -0
- package/lib/module/ui-components/buttons/connectivity-button.js +73 -0
- package/lib/module/ui-components/buttons/connectivity-button.js.map +1 -0
- package/lib/module/ui-components/buttons/filter-button.js +42 -0
- package/lib/module/ui-components/buttons/filter-button.js.map +1 -0
- package/lib/module/ui-components/buttons/ghost-button.js +52 -0
- package/lib/module/ui-components/buttons/ghost-button.js.map +1 -0
- 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 +9 -0
- package/lib/module/ui-components/buttons/index.js.map +1 -0
- package/lib/module/ui-components/buttons/scan-button.js +74 -0
- package/lib/module/ui-components/buttons/scan-button.js.map +1 -0
- package/lib/module/ui-components/camera/camera-overlay.js +49 -0
- package/lib/module/ui-components/camera/camera-overlay.js.map +1 -0
- package/lib/module/ui-components/camera/index.js.map +1 -0
- package/lib/module/ui-components/camera/qr-code-scanner.js +39 -0
- package/lib/module/ui-components/camera/qr-code-scanner.js.map +1 -0
- package/lib/module/ui-components/control/checkbox.js +69 -0
- package/lib/module/ui-components/control/checkbox.js.map +1 -0
- package/lib/module/ui-components/control/index.js.map +1 -0
- package/lib/module/ui-components/control/switch.js +55 -0
- package/lib/module/ui-components/control/switch.js.map +1 -0
- package/lib/module/ui-components/credential/card/credential-card.js +170 -0
- package/lib/module/ui-components/credential/card/credential-card.js.map +1 -0
- package/lib/module/ui-components/credential/card/credential-details-card.js +185 -0
- package/lib/module/ui-components/credential/card/credential-details-card.js.map +1 -0
- package/lib/module/ui-components/credential/card/credential-details-list-item.js +82 -0
- package/lib/module/ui-components/credential/card/credential-details-list-item.js.map +1 -0
- package/lib/module/ui-components/credential/card/credential-header.js +165 -0
- package/lib/module/ui-components/credential/card/credential-header.js.map +1 -0
- package/lib/module/ui-components/credential/card/credential-image-carousel.js +113 -0
- package/lib/module/ui-components/credential/card/credential-image-carousel.js.map +1 -0
- package/lib/module/ui-components/credential/card/index.js +11 -0
- package/lib/module/ui-components/credential/card/index.js.map +1 -0
- package/lib/module/ui-components/credential/credential-attribute-item.js +271 -0
- package/lib/module/ui-components/credential/credential-attribute-item.js.map +1 -0
- package/lib/module/ui-components/credential/credential-carousel-images.js +83 -0
- package/lib/module/ui-components/credential/credential-carousel-images.js.map +1 -0
- package/lib/module/ui-components/credential/index.js +9 -0
- package/lib/module/ui-components/credential/index.js.map +1 -0
- package/lib/module/ui-components/credential/selector-status.js +10 -0
- package/lib/module/ui-components/credential/selector-status.js.map +1 -0
- package/lib/module/ui-components/credential/selector.js +69 -0
- package/lib/module/ui-components/credential/selector.js.map +1 -0
- package/lib/module/ui-components/detail/detail.js +74 -0
- package/lib/module/ui-components/detail/detail.js.map +1 -0
- package/lib/module/ui-components/detail/index.js.map +1 -0
- package/lib/module/ui-components/entity/avatar.js +95 -0
- package/lib/module/ui-components/entity/avatar.js.map +1 -0
- package/lib/module/ui-components/entity/entity-cluster.js +63 -0
- package/lib/module/ui-components/entity/entity-cluster.js.map +1 -0
- package/lib/module/ui-components/entity/index.js.map +1 -0
- package/lib/module/ui-components/header/focus-aware-status-bar.js +12 -0
- package/lib/module/ui-components/header/focus-aware-status-bar.js.map +1 -0
- package/lib/module/ui-components/header/foldable-header.js +77 -0
- package/lib/module/ui-components/header/foldable-header.js.map +1 -0
- package/lib/module/ui-components/header/header.js +96 -0
- package/lib/module/ui-components/header/header.js.map +1 -0
- package/lib/module/ui-components/header/index.js +9 -0
- package/lib/module/ui-components/header/index.js.map +1 -0
- package/lib/module/ui-components/header/navigation-header.js +133 -0
- package/lib/module/ui-components/header/navigation-header.js.map +1 -0
- package/lib/module/ui-components/history/data-item.js +68 -0
- package/lib/module/ui-components/history/data-item.js.map +1 -0
- 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-item.js +102 -0
- package/lib/module/ui-components/history/history-item.js.map +1 -0
- package/lib/module/ui-components/history/history-section-header.js +41 -0
- package/lib/module/ui-components/history/history-section-header.js.map +1 -0
- package/lib/module/ui-components/history/history-section-list-item.js +42 -0
- package/lib/module/ui-components/history/history-section-list-item.js.map +1 -0
- package/lib/module/ui-components/history/index.js +10 -0
- package/lib/module/ui-components/history/index.js.map +1 -0
- package/lib/module/ui-components/icons/connectivity.js +120 -0
- package/lib/module/ui-components/icons/connectivity.js.map +1 -0
- package/lib/module/ui-components/icons/credential.js +136 -0
- package/lib/module/ui-components/icons/credential.js.map +1 -0
- package/lib/module/ui-components/icons/entity.js +42 -0
- package/lib/module/ui-components/icons/entity.js.map +1 -0
- package/lib/module/ui-components/icons/history.js +364 -0
- package/lib/module/ui-components/icons/history.js.map +1 -0
- package/lib/module/ui-components/icons/icons.js +214 -0
- package/lib/module/ui-components/icons/icons.js.map +1 -0
- package/lib/module/ui-components/icons/index.js.map +1 -0
- package/lib/module/ui-components/icons/input.js.map +1 -0
- package/lib/module/ui-components/icons/keypad.js +69 -0
- package/lib/module/ui-components/icons/keypad.js.map +1 -0
- package/lib/module/ui-components/icons/loader.js +168 -0
- package/lib/module/ui-components/icons/loader.js.map +1 -0
- package/lib/module/ui-components/icons/nerd-view.js.map +1 -0
- package/lib/module/ui-components/icons/selector.js +44 -0
- package/lib/module/ui-components/icons/selector.js.map +1 -0
- package/lib/module/ui-components/icons/wallet.js +108 -0
- package/lib/module/ui-components/icons/wallet.js.map +1 -0
- package/lib/module/ui-components/image/image-or-component.js +69 -0
- package/lib/module/ui-components/image/image-or-component.js.map +1 -0
- package/lib/module/ui-components/image/index.js +3 -0
- package/lib/module/ui-components/image/index.js.map +1 -0
- package/lib/module/ui-components/index.js +26 -0
- package/lib/module/ui-components/index.js.map +1 -0
- package/lib/module/ui-components/input/index.js.map +1 -0
- package/lib/module/ui-components/input/radio-group.js +91 -0
- package/lib/module/ui-components/input/radio-group.js.map +1 -0
- package/lib/module/ui-components/input/selection-input.js +82 -0
- package/lib/module/ui-components/input/selection-input.js.map +1 -0
- package/lib/module/ui-components/input/text-input.js +184 -0
- package/lib/module/ui-components/input/text-input.js.map +1 -0
- package/lib/module/ui-components/list/index.js +6 -0
- package/lib/module/ui-components/list/index.js.map +1 -0
- 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 +27 -0
- package/lib/module/ui-components/list/list-section-header.js.map +1 -0
- package/lib/module/ui-components/list/list-title-header.js +26 -0
- package/lib/module/ui-components/list/list-title-header.js.map +1 -0
- 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 -0
- package/lib/module/ui-components/loader/loader.js +132 -0
- package/lib/module/ui-components/loader/loader.js.map +1 -0
- package/lib/module/ui-components/loader/loading-result.js +86 -0
- package/lib/module/ui-components/loader/loading-result.js.map +1 -0
- package/lib/module/ui-components/nerd-view/index.js +3 -0
- package/lib/module/ui-components/nerd-view/index.js.map +1 -0
- package/lib/module/ui-components/nerd-view/nerd-mode-item.js +224 -0
- package/lib/module/ui-components/nerd-view/nerd-mode-item.js.map +1 -0
- package/lib/module/ui-components/pin/index.js +5 -0
- package/lib/module/ui-components/pin/index.js.map +1 -0
- package/lib/module/ui-components/pin/keypad.js +189 -0
- package/lib/module/ui-components/pin/keypad.js.map +1 -0
- package/lib/module/ui-components/pin/pin-code-screen.js +151 -0
- package/lib/module/ui-components/pin/pin-code-screen.js.map +1 -0
- package/lib/module/ui-components/pin/pin-lock-animation.js +817 -0
- package/lib/module/ui-components/pin/pin-lock-animation.js.map +1 -0
- package/lib/module/ui-components/pin/pin-lock.js +72 -0
- package/lib/module/ui-components/pin/pin-lock.js.map +1 -0
- package/lib/module/ui-components/pin/pins.js +45 -0
- package/lib/module/ui-components/pin/pins.js.map +1 -0
- package/lib/module/ui-components/screens/backup-screen.js +77 -0
- package/lib/module/ui-components/screens/backup-screen.js.map +1 -0
- package/lib/module/ui-components/screens/image-preview-screen.js +82 -0
- package/lib/module/ui-components/screens/image-preview-screen.js.map +1 -0
- package/lib/module/ui-components/screens/index.js +13 -0
- package/lib/module/ui-components/screens/index.js.map +1 -0
- package/lib/module/ui-components/screens/nerd-mode-screen.js +156 -0
- package/lib/module/ui-components/screens/nerd-mode-screen.js.map +1 -0
- package/lib/module/ui-components/screens/qr-code-scanner-screen.js +109 -0
- package/lib/module/ui-components/screens/qr-code-scanner-screen.js.map +1 -0
- package/lib/module/ui-components/screens/scroll-view-screen.js +85 -0
- package/lib/module/ui-components/screens/scroll-view-screen.js.map +1 -0
- package/lib/module/ui-components/screens/section-list-screen.js +58 -0
- package/lib/module/ui-components/screens/section-list-screen.js.map +1 -0
- package/lib/module/ui-components/searchbar/animated-search-bar.js +77 -0
- package/lib/module/ui-components/searchbar/animated-search-bar.js.map +1 -0
- package/lib/module/ui-components/searchbar/index.js.map +1 -0
- package/lib/module/ui-components/searchbar/search-bar.js +88 -0
- package/lib/module/ui-components/searchbar/search-bar.js.map +1 -0
- package/lib/module/ui-components/settings/button-setting.js +56 -0
- package/lib/module/ui-components/settings/button-setting.js.map +1 -0
- package/lib/module/ui-components/settings/index.js.map +1 -0
- package/lib/module/ui-components/settings/setting-item-separator.js +31 -0
- package/lib/module/ui-components/settings/setting-item-separator.js.map +1 -0
- package/lib/module/ui-components/settings/setting-item.js +68 -0
- package/lib/module/ui-components/settings/setting-item.js.map +1 -0
- package/lib/module/ui-components/settings/settings-button.js +26 -0
- package/lib/module/ui-components/settings/settings-button.js.map +1 -0
- package/lib/module/ui-components/settings/switch-setting.js +26 -0
- package/lib/module/ui-components/settings/switch-setting.js.map +1 -0
- package/lib/module/ui-components/state/error-screen.js +62 -0
- package/lib/module/ui-components/state/error-screen.js.map +1 -0
- package/lib/module/ui-components/state/index.js.map +1 -0
- package/lib/module/ui-components/text/base.js +30 -0
- package/lib/module/ui-components/text/base.js.map +1 -0
- package/lib/module/ui-components/text/font.js +55 -0
- package/lib/module/ui-components/text/font.js.map +1 -0
- package/lib/module/ui-components/text/index.js +3 -0
- package/lib/module/ui-components/text/index.js.map +1 -0
- package/lib/module/ui-components/text/typography.js +109 -0
- package/lib/module/ui-components/text/typography.js.map +1 -0
- package/lib/module/ui-components/theme/color-scheme-context.js +45 -0
- package/lib/module/ui-components/theme/color-scheme-context.js.map +1 -0
- package/lib/module/ui-components/theme/color-scheme.js.map +1 -0
- package/lib/module/ui-components/theme/index.js.map +1 -0
- package/lib/module/utils/array.js +4 -0
- package/lib/module/utils/array.js.map +1 -0
- package/lib/module/utils/backup.js +5 -0
- package/lib/module/utils/backup.js.map +1 -0
- 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 +91 -3
- 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 +153 -0
- package/lib/module/utils/hooks/connectivity/connectivity.js.map +1 -0
- package/lib/module/utils/hooks/connectivity/connectivity.test.js +60 -0
- package/lib/module/utils/hooks/connectivity/connectivity.test.js.map +1 -0
- package/lib/module/utils/hooks/core/backup.js +143 -0
- package/lib/module/utils/hooks/core/backup.js.map +1 -0
- 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 +23 -0
- package/lib/module/utils/hooks/core/core-config.js.map +1 -0
- package/lib/module/utils/hooks/core/core-context.js +67 -0
- package/lib/module/utils/hooks/core/core-context.js.map +1 -0
- package/lib/module/utils/hooks/core/core-init.js +90 -0
- package/lib/module/utils/hooks/core/core-init.js.map +1 -0
- package/lib/module/utils/hooks/core/credential-schemas.js +88 -0
- package/lib/module/utils/hooks/core/credential-schemas.js.map +1 -0
- package/lib/module/utils/hooks/core/credentials.js +145 -0
- package/lib/module/utils/hooks/core/credentials.js.map +1 -0
- package/lib/module/utils/hooks/core/dids.js +26 -0
- package/lib/module/utils/hooks/core/dids.js.map +1 -0
- package/lib/module/utils/hooks/core/error-code.js +8 -0
- package/lib/module/utils/hooks/core/error-code.js.map +1 -0
- package/lib/module/utils/hooks/core/history.js +26 -0
- package/lib/module/utils/hooks/core/history.js.map +1 -0
- package/lib/module/utils/hooks/core/index.js +14 -0
- package/lib/module/utils/hooks/core/index.js.map +1 -0
- package/lib/module/utils/hooks/core/proof-schemas.js +104 -0
- package/lib/module/utils/hooks/core/proof-schemas.js.map +1 -0
- package/lib/module/utils/hooks/core/proofs.js +346 -0
- package/lib/module/utils/hooks/core/proofs.js.map +1 -0
- package/lib/module/utils/hooks/core/query.js +18 -0
- package/lib/module/utils/hooks/core/query.js.map +1 -0
- package/lib/module/utils/hooks/core/trust-entity.js +88 -0
- package/lib/module/utils/hooks/core/trust-entity.js.map +1 -0
- package/lib/module/utils/hooks/credential-card/credential-card-expanding.js +43 -0
- package/lib/module/utils/hooks/credential-card/credential-card-expanding.js.map +1 -0
- 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 +13 -0
- package/lib/module/utils/hooks/http/client.js.map +1 -0
- package/lib/module/utils/hooks/index.js +8 -4
- 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 +21 -0
- package/lib/module/utils/hooks/navigation/before-remove.js.map +1 -0
- package/lib/module/utils/hooks/navigation/close-button-timeout.js +27 -0
- package/lib/module/utils/hooks/navigation/close-button-timeout.js.map +1 -0
- package/lib/module/utils/hooks/navigation/deep-link.js +37 -0
- package/lib/module/utils/hooks/navigation/deep-link.js.map +1 -0
- package/lib/module/utils/hooks/navigation/index.js +5 -0
- package/lib/module/utils/hooks/navigation/index.js.map +1 -0
- package/lib/module/utils/hooks/navigation/open-settings.js +35 -0
- package/lib/module/utils/hooks/navigation/open-settings.js.map +1 -0
- package/lib/module/utils/hooks/pin-security/pin-security.js +79 -0
- package/lib/module/utils/hooks/pin-security/pin-security.js.map +1 -0
- package/lib/module/utils/hooks/revocation/credential-status.js +52 -0
- package/lib/module/utils/hooks/revocation/credential-status.js.map +1 -0
- package/lib/module/utils/index.js +14 -5
- 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 +78 -0
- package/lib/module/utils/parsers/credential-images.js.map +1 -0
- package/lib/module/utils/parsers/credential-sharing.js +238 -0
- package/lib/module/utils/parsers/credential-sharing.js.map +1 -0
- package/lib/module/utils/parsers/credential.js +295 -0
- package/lib/module/utils/parsers/credential.js.map +1 -0
- package/lib/module/utils/parsers/index.js +6 -0
- package/lib/module/utils/parsers/index.js.map +1 -0
- package/lib/module/utils/parsers/query.js +92 -0
- package/lib/module/utils/parsers/query.js.map +1 -0
- 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 +77 -0
- package/lib/module/utils/reporting.js.map +1 -0
- package/lib/module/utils/string.js +10 -0
- package/lib/module/utils/string.js.map +1 -0
- 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 +11 -1
- package/lib/module/utils/useMemoAsync.js.map +1 -1
- package/lib/module/utils/uuid.js +9 -0
- package/lib/module/utils/uuid.js.map +1 -0
- package/lib/typescript/components/backup/index.d.ts +1 -0
- package/lib/typescript/components/backup/preview-credentials.d.ts +11 -0
- package/lib/typescript/components/credential/credential.d.ts +16 -0
- package/lib/typescript/components/credential/index.d.ts +1 -0
- package/lib/typescript/components/entity/EntityButtons.d.ts +14 -0
- package/lib/typescript/components/entity/entity-attributes.d.ts +13 -0
- package/lib/typescript/components/entity/entity-details-with-buttons.d.ts +18 -0
- package/lib/typescript/components/entity/entity-details.d.ts +19 -0
- package/lib/typescript/components/entity/index.d.ts +2 -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 +6 -0
- package/lib/typescript/components/navigation/header-buttons.d.ts +21 -0
- package/lib/typescript/components/navigation/index.d.ts +1 -0
- package/lib/typescript/components/proof-request/group.d.ts +2 -0
- package/lib/typescript/components/proof-request/index.d.ts +3 -0
- package/lib/typescript/components/proof-request/select-credential.d.ts +14 -0
- package/lib/typescript/components/proof-request/share-credential.d.ts +27 -0
- package/lib/typescript/index.d.ts +2 -25
- package/lib/typescript/ui-components/accessibility/accessibility.d.ts +55 -0
- package/lib/typescript/ui-components/accessibility/accessibilityHistory.d.ts +13 -0
- package/lib/typescript/ui-components/accessibility/accessibilityHistoryWrappers.d.ts +18 -0
- package/lib/typescript/ui-components/accessibility/index.d.ts +8 -0
- package/lib/typescript/ui-components/buttons/back-button.d.ts +9 -0
- package/lib/typescript/ui-components/buttons/button.d.ts +22 -0
- package/lib/typescript/ui-components/buttons/hold-button.d.ts +16 -0
- package/lib/typescript/ui-components/buttons/index.d.ts +15 -0
- package/lib/typescript/ui-components/buttons/scan-button.d.ts +5 -0
- package/lib/typescript/ui-components/credential/card/credential-card.d.ts +25 -0
- package/lib/typescript/ui-components/credential/card/credential-header.d.ts +20 -0
- package/lib/typescript/ui-components/credential/card/index.d.ts +15 -0
- package/lib/typescript/ui-components/credential/credential-attribute-item.d.ts +49 -0
- package/lib/typescript/ui-components/credential/index.d.ts +9 -0
- package/lib/typescript/ui-components/entity/avatar.d.ts +11 -0
- package/lib/typescript/ui-components/entity/entity-cluster.d.ts +13 -0
- package/lib/typescript/ui-components/header/index.d.ts +11 -0
- package/lib/typescript/ui-components/history/data-item.d.ts +12 -0
- package/lib/typescript/ui-components/history/history-details.d.ts +51 -0
- package/lib/typescript/ui-components/history/history-item.d.ts +15 -0
- package/lib/typescript/ui-components/history/history-section-header.d.ts +7 -0
- package/lib/typescript/ui-components/history/history-section-list-item.d.ts +7 -0
- package/lib/typescript/ui-components/history/index.d.ts +9 -0
- package/lib/typescript/ui-components/icons/history.d.ts +27 -0
- package/lib/typescript/ui-components/image/index.d.ts +3 -0
- package/lib/typescript/ui-components/index.d.ts +25 -0
- package/lib/typescript/ui-components/input/selection-input.d.ts +32 -0
- package/lib/typescript/ui-components/list/index.d.ts +5 -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 +3 -0
- package/lib/typescript/ui-components/pin/index.d.ts +4 -0
- package/lib/typescript/ui-components/pin/keypad.d.ts +16 -0
- package/lib/typescript/ui-components/pin/pin-lock-animation.d.ts +731 -0
- package/lib/typescript/ui-components/pin/pin-lock.d.ts +13 -0
- package/lib/typescript/ui-components/screens/index.d.ts +18 -0
- package/lib/typescript/ui-components/screens/nerd-mode-screen.d.ts +49 -0
- package/lib/typescript/ui-components/text/index.d.ts +3 -0
- package/lib/typescript/ui-components/text/typography.d.ts +112 -0
- package/lib/typescript/ui-components/theme/color-scheme.d.ts +32 -0
- package/lib/typescript/utils/array.d.ts +1 -0
- package/lib/typescript/utils/backup.d.ts +1 -0
- package/lib/typescript/utils/date.d.ts +32 -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 +27 -0
- package/lib/typescript/utils/hooks/connectivity/connectivity.test.d.ts +1 -0
- package/lib/typescript/utils/hooks/core/backup.d.ts +13 -0
- package/lib/typescript/utils/hooks/core/cache.d.ts +2 -0
- package/lib/typescript/utils/hooks/core/core-config.d.ts +5 -0
- package/lib/typescript/utils/hooks/core/core-context.d.ts +15 -0
- package/lib/typescript/utils/hooks/core/core-init.d.ts +12 -0
- package/lib/typescript/utils/hooks/core/credential-schemas.d.ts +11 -0
- package/lib/typescript/utils/hooks/core/credentials.d.ts +22 -0
- package/lib/typescript/utils/hooks/core/dids.d.ts +3 -0
- package/lib/typescript/utils/hooks/core/error-code.d.ts +6 -0
- package/lib/typescript/utils/hooks/core/history.d.ts +3 -0
- package/lib/typescript/utils/hooks/core/index.d.ts +13 -0
- package/lib/typescript/utils/hooks/core/proof-schemas.d.ts +14 -0
- package/lib/typescript/utils/hooks/core/proofs.d.ts +43 -0
- package/lib/typescript/utils/hooks/core/query.d.ts +2 -0
- package/lib/typescript/utils/hooks/core/trust-entity.d.ts +11 -0
- package/lib/typescript/utils/hooks/credential-card/credential-card-expanding.d.ts +10 -0
- package/lib/typescript/utils/hooks/http/client.d.ts +2 -0
- package/lib/typescript/utils/hooks/index.d.ts +8 -4
- package/lib/typescript/utils/hooks/navigation/before-remove.d.ts +1 -0
- package/lib/typescript/utils/hooks/navigation/close-button-timeout.d.ts +3 -0
- package/lib/typescript/utils/hooks/navigation/deep-link.d.ts +2 -0
- package/lib/typescript/utils/hooks/navigation/index.d.ts +4 -0
- package/lib/typescript/utils/hooks/navigation/open-settings.d.ts +6 -0
- package/lib/typescript/utils/hooks/pin-security/pin-security.d.ts +6 -0
- package/lib/typescript/utils/hooks/revocation/credential-status.d.ts +8 -0
- package/lib/typescript/utils/index.d.ts +14 -5
- package/lib/typescript/utils/parsers/credential-images.d.ts +3 -0
- package/lib/typescript/utils/parsers/credential-sharing.d.ts +16 -0
- package/lib/typescript/utils/parsers/credential.d.ts +76 -0
- package/lib/typescript/utils/parsers/index.d.ts +5 -0
- package/lib/typescript/utils/parsers/query.d.ts +7 -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/lib/typescript/utils/reporting.d.ts +4 -0
- package/lib/typescript/utils/string.d.ts +4 -0
- package/lib/typescript/utils/uuid.d.ts +6 -0
- package/package.json +86 -45
- package/src/components/backup/index.ts +1 -0
- package/src/components/backup/preview-credentials.tsx +38 -0
- package/src/components/credential/credential.tsx +72 -0
- package/src/components/credential/index.ts +1 -0
- package/src/components/entity/EntityButtons.tsx +79 -0
- package/src/components/entity/entity-attributes.tsx +63 -0
- package/src/components/entity/entity-details-with-buttons.tsx +99 -0
- package/src/components/entity/entity-details.tsx +85 -0
- package/src/components/entity/index.ts +3 -0
- 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 +6 -0
- package/src/components/navigation/header-buttons.tsx +64 -0
- package/src/components/navigation/index.ts +1 -0
- package/src/components/proof-request/group.tsx +26 -0
- package/src/components/proof-request/index.ts +3 -0
- package/src/components/proof-request/select-credential.tsx +48 -0
- package/src/components/proof-request/share-credential.tsx +194 -0
- package/src/index.ts +2 -25
- package/src/ui-components/accessibility/accessibility.ts +215 -0
- package/src/ui-components/accessibility/accessibilityHistory.tsx +77 -0
- package/src/ui-components/accessibility/accessibilityHistoryWrappers.tsx +78 -0
- package/src/ui-components/accessibility/index.ts +36 -0
- package/src/ui-components/action-modal/ActionModal.stories.tsx +39 -0
- package/src/ui-components/activity-indicator/activity-indicator.stories.tsx +18 -0
- package/src/ui-components/blur/blur-view.tsx +82 -0
- package/src/ui-components/buttons/back-button.stories.tsx +30 -0
- package/src/ui-components/buttons/back-button.tsx +30 -0
- package/src/ui-components/buttons/button.stories.tsx +28 -0
- package/src/ui-components/buttons/button.tsx +169 -0
- package/src/ui-components/buttons/connectivity-button.stories.tsx +33 -0
- package/src/ui-components/buttons/connectivity-button.tsx +95 -0
- package/src/ui-components/buttons/ghost-button.stories.tsx +28 -0
- 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 +34 -0
- package/src/ui-components/buttons/scan-button.stories.tsx +30 -0
- package/src/ui-components/control/checkbox.stories.tsx +27 -0
- package/src/ui-components/control/switch.stories.tsx +32 -0
- package/src/ui-components/credential/card/credential-card.stories.tsx +51 -0
- package/src/ui-components/credential/card/credential-card.tsx +189 -0
- package/src/ui-components/credential/card/credential-details-card.stories.tsx +303 -0
- package/src/ui-components/credential/card/credential-details-card.tsx +242 -0
- package/src/ui-components/credential/card/credential-details-list-item.tsx +97 -0
- package/src/ui-components/credential/card/credential-header.stories.tsx +48 -0
- package/src/ui-components/credential/card/credential-header.tsx +199 -0
- package/src/ui-components/credential/card/credential-image-carousel.tsx +117 -0
- package/src/ui-components/credential/card/index.ts +22 -0
- package/src/ui-components/credential/credential-attribute-item.tsx +373 -0
- package/src/ui-components/credential/index.ts +14 -0
- package/src/ui-components/credential/selector.stories.tsx +37 -0
- package/src/ui-components/credential/selector.tsx +64 -0
- package/src/ui-components/detail/detail.stories.tsx +68 -0
- package/src/ui-components/detail/detail.tsx +98 -0
- package/src/ui-components/entity/avatar.stories.tsx +42 -0
- package/src/ui-components/entity/avatar.tsx +100 -0
- package/src/ui-components/entity/entity-cluster.stories.tsx +45 -0
- package/src/ui-components/entity/entity-cluster.tsx +82 -0
- package/src/ui-components/header/header.stories.tsx +62 -0
- package/src/ui-components/header/header.tsx +105 -0
- package/src/ui-components/header/index.ts +12 -0
- package/src/ui-components/header/navigation-header.stories.tsx +59 -0
- package/src/ui-components/header/navigation-header.tsx +147 -0
- package/src/ui-components/history/data-item.tsx +88 -0
- package/src/ui-components/history/history-details.tsx +247 -0
- package/src/ui-components/history/history-item.tsx +141 -0
- package/src/ui-components/history/history-section-header.tsx +44 -0
- package/src/ui-components/history/history-section-list-item.tsx +41 -0
- package/src/ui-components/history/index.ts +10 -0
- package/src/ui-components/icons/entity.tsx +31 -0
- package/src/ui-components/icons/history.tsx +329 -0
- package/src/ui-components/image/index.tsx +4 -0
- package/src/ui-components/index.ts +25 -0
- package/src/ui-components/input/radio-group.stories.tsx +34 -0
- package/src/ui-components/input/radio-group.tsx +116 -0
- package/src/ui-components/input/selection-input.stories.tsx +49 -0
- package/src/ui-components/input/selection-input.tsx +112 -0
- package/src/ui-components/input/text-input.tsx +253 -0
- package/src/ui-components/list/index.ts +6 -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 +28 -0
- package/src/ui-components/loader/loader.tsx +174 -0
- package/src/ui-components/loader/loading-result.stories.tsx +70 -0
- package/src/ui-components/loader/loading-result.tsx +97 -0
- package/src/ui-components/nerd-view/index.ts +4 -0
- package/src/ui-components/nerd-view/nerd-mode-item.tsx +299 -0
- package/src/ui-components/pin/index.ts +5 -0
- package/src/ui-components/pin/keypad.tsx +166 -0
- package/src/ui-components/pin/pin-code-screen.stories.tsx +87 -0
- package/src/ui-components/pin/pin-code-screen.tsx +195 -0
- package/src/ui-components/pin/pin-lock-animation.tsx +500 -0
- package/src/ui-components/pin/pin-lock.tsx +82 -0
- package/src/ui-components/screens/backup-screen.tsx +92 -0
- package/src/ui-components/screens/image-preview-screen.stories.tsx +31 -0
- package/src/ui-components/screens/image-preview-screen.tsx +82 -0
- package/src/ui-components/screens/index.ts +19 -0
- package/src/ui-components/screens/nerd-mode-screen.tsx +214 -0
- package/src/ui-components/screens/qr-code-scanner-screen.stories.tsx +40 -0
- package/src/ui-components/screens/qr-code-scanner-screen.tsx +124 -0
- package/src/ui-components/screens/scroll-view-screen.tsx +91 -0
- package/src/ui-components/screens/section-list-screen.tsx +61 -0
- package/src/ui-components/searchbar/search-bar.stories.tsx +38 -0
- package/src/ui-components/searchbar/search-bar.tsx +94 -0
- package/src/ui-components/state/error-screen.stories.tsx +21 -0
- package/src/ui-components/state/error-screen.tsx +71 -0
- package/src/ui-components/text/index.ts +4 -0
- package/src/ui-components/text/typography.stories.tsx +77 -0
- package/src/ui-components/theme/color-scheme-context.tsx +49 -0
- package/src/ui-components/theme/color-scheme.ts +32 -0
- package/src/utils/array.ts +3 -0
- package/src/utils/backup.ts +5 -0
- package/src/utils/date.ts +106 -2
- package/src/utils/filtering.ts +5 -0
- package/src/utils/history.ts +71 -0
- package/src/utils/hooks/connectivity/connectivity.test.ts +95 -0
- package/src/utils/hooks/connectivity/connectivity.ts +186 -0
- package/src/utils/hooks/core/backup.ts +144 -0
- package/src/utils/hooks/core/cache.ts +43 -0
- package/src/utils/hooks/core/core-config.ts +32 -0
- package/src/utils/hooks/core/core-context.tsx +114 -0
- package/src/utils/hooks/core/core-init.ts +106 -0
- package/src/utils/hooks/core/credential-schemas.ts +110 -0
- package/src/utils/hooks/core/credentials.ts +166 -0
- package/src/utils/hooks/core/dids.ts +28 -0
- package/src/utils/hooks/core/error-code.ts +6 -0
- package/src/utils/hooks/core/history.ts +30 -0
- package/src/utils/hooks/core/index.ts +13 -0
- package/src/utils/hooks/core/proof-schemas.ts +130 -0
- package/src/utils/hooks/core/proofs.ts +409 -0
- package/src/utils/hooks/core/query.ts +19 -0
- package/src/utils/hooks/core/trust-entity.ts +113 -0
- package/src/utils/hooks/credential-card/credential-card-expanding.tsx +45 -0
- package/src/utils/hooks/http/client.ts +13 -0
- package/src/utils/hooks/index.ts +8 -5
- package/src/utils/hooks/navigation/before-remove.tsx +22 -0
- package/src/utils/hooks/navigation/close-button-timeout.tsx +29 -0
- package/src/utils/hooks/navigation/deep-link.ts +40 -0
- package/src/utils/hooks/navigation/index.ts +4 -0
- package/src/utils/hooks/navigation/open-settings.ts +39 -0
- package/src/utils/hooks/pin-security/pin-security.ts +99 -0
- package/src/utils/hooks/revocation/credential-status.ts +45 -0
- package/src/utils/index.ts +14 -14
- package/src/utils/navigation.ts +4 -2
- package/src/utils/parsers/credential-images.tsx +78 -0
- package/src/utils/parsers/credential-sharing.tsx +366 -0
- package/src/utils/parsers/credential.ts +365 -0
- package/src/utils/parsers/index.ts +5 -0
- package/src/utils/parsers/query.tsx +82 -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 +85 -0
- package/src/utils/string.ts +17 -0
- package/src/utils/useMemoAsync.ts +1 -1
- package/src/utils/uuid.ts +8 -0
- package/lib/commonjs/accessibility/accessibility.js +0 -193
- package/lib/commonjs/accessibility/accessibility.js.map +0 -1
- package/lib/commonjs/accessibility/accessibilityHistory.js +0 -81
- package/lib/commonjs/accessibility/accessibilityHistory.js.map +0 -1
- package/lib/commonjs/accessibility/accessibilityHistoryWrappers.js +0 -49
- package/lib/commonjs/accessibility/accessibilityHistoryWrappers.js.map +0 -1
- package/lib/commonjs/accessibility/accessibilityLanguage.js +0 -63
- package/lib/commonjs/accessibility/accessibilityLanguage.js.map +0 -1
- package/lib/commonjs/accessibility/index.js +0 -129
- package/lib/commonjs/accessibility/index.js.map +0 -1
- package/lib/commonjs/accessibility/locale/index.js +0 -21
- package/lib/commonjs/accessibility/locale/index.js.map +0 -1
- package/lib/commonjs/accessibility/locale.test.js.map +0 -1
- package/lib/commonjs/action-modal/ActionModal.js +0 -52
- package/lib/commonjs/action-modal/ActionModal.js.map +0 -1
- package/lib/commonjs/action-modal/index.js +0 -14
- package/lib/commonjs/action-modal/index.js.map +0 -1
- package/lib/commonjs/activity-indicator/activity-indicator.js +0 -34
- package/lib/commonjs/activity-indicator/activity-indicator.js.map +0 -1
- package/lib/commonjs/activity-indicator/index.js +0 -14
- package/lib/commonjs/activity-indicator/index.js.map +0 -1
- package/lib/commonjs/blur/blur-view.js +0 -76
- package/lib/commonjs/blur/blur-view.js.map +0 -1
- package/lib/commonjs/blur/index.js +0 -21
- package/lib/commonjs/blur/index.js.map +0 -1
- package/lib/commonjs/buttons/back-button.js +0 -37
- package/lib/commonjs/buttons/back-button.js.map +0 -1
- package/lib/commonjs/buttons/button.js +0 -153
- package/lib/commonjs/buttons/button.js.map +0 -1
- package/lib/commonjs/buttons/connectivity-button.js +0 -82
- package/lib/commonjs/buttons/connectivity-button.js.map +0 -1
- package/lib/commonjs/buttons/filter-button.js +0 -51
- package/lib/commonjs/buttons/filter-button.js.map +0 -1
- package/lib/commonjs/buttons/ghost-button.js +0 -62
- package/lib/commonjs/buttons/ghost-button.js.map +0 -1
- package/lib/commonjs/buttons/index.js +0 -104
- package/lib/commonjs/buttons/index.js.map +0 -1
- package/lib/commonjs/buttons/scan-button.js +0 -83
- package/lib/commonjs/buttons/scan-button.js.map +0 -1
- package/lib/commonjs/camera/camera-overlay.js +0 -61
- package/lib/commonjs/camera/camera-overlay.js.map +0 -1
- package/lib/commonjs/camera/index.js +0 -21
- package/lib/commonjs/camera/index.js.map +0 -1
- package/lib/commonjs/camera/qr-code-scanner.js +0 -50
- package/lib/commonjs/camera/qr-code-scanner.js.map +0 -1
- package/lib/commonjs/control/checkbox.js +0 -79
- package/lib/commonjs/control/checkbox.js.map +0 -1
- package/lib/commonjs/control/index.js.map +0 -1
- package/lib/commonjs/control/switch.js +0 -65
- package/lib/commonjs/control/switch.js.map +0 -1
- package/lib/commonjs/credential/card/credential-card.js +0 -189
- package/lib/commonjs/credential/card/credential-card.js.map +0 -1
- package/lib/commonjs/credential/card/credential-details-card.js +0 -201
- package/lib/commonjs/credential/card/credential-details-card.js.map +0 -1
- package/lib/commonjs/credential/card/credential-details-list-item.js +0 -84
- package/lib/commonjs/credential/card/credential-details-list-item.js.map +0 -1
- package/lib/commonjs/credential/card/credential-header.js +0 -172
- package/lib/commonjs/credential/card/credential-header.js.map +0 -1
- package/lib/commonjs/credential/card/credential-image-carousel.js +0 -124
- package/lib/commonjs/credential/card/credential-image-carousel.js.map +0 -1
- package/lib/commonjs/credential/card/index.js +0 -85
- package/lib/commonjs/credential/card/index.js.map +0 -1
- package/lib/commonjs/credential/credential-attribute-item.js +0 -289
- package/lib/commonjs/credential/credential-attribute-item.js.map +0 -1
- package/lib/commonjs/credential/credential-carousel-images.js +0 -98
- package/lib/commonjs/credential/credential-carousel-images.js.map +0 -1
- package/lib/commonjs/credential/index.js +0 -90
- package/lib/commonjs/credential/index.js.map +0 -1
- package/lib/commonjs/credential/selector-status.js +0 -17
- package/lib/commonjs/credential/selector-status.js.map +0 -1
- package/lib/commonjs/credential/selector.js +0 -79
- package/lib/commonjs/credential/selector.js.map +0 -1
- package/lib/commonjs/detail/detail.js +0 -84
- package/lib/commonjs/detail/detail.js.map +0 -1
- package/lib/commonjs/detail/index.js +0 -14
- package/lib/commonjs/detail/index.js.map +0 -1
- package/lib/commonjs/entity/avatar.js +0 -96
- package/lib/commonjs/entity/avatar.js.map +0 -1
- package/lib/commonjs/entity/entity-cluster.js +0 -66
- package/lib/commonjs/entity/entity-cluster.js.map +0 -1
- package/lib/commonjs/entity/index.js +0 -34
- package/lib/commonjs/entity/index.js.map +0 -1
- package/lib/commonjs/header/focus-aware-status-bar.js +0 -20
- package/lib/commonjs/header/focus-aware-status-bar.js.map +0 -1
- package/lib/commonjs/header/foldable-header.js +0 -89
- package/lib/commonjs/header/foldable-header.js.map +0 -1
- package/lib/commonjs/header/header.js +0 -105
- package/lib/commonjs/header/header.js.map +0 -1
- package/lib/commonjs/header/index.js +0 -55
- package/lib/commonjs/header/index.js.map +0 -1
- package/lib/commonjs/header/navigation-header.js +0 -148
- package/lib/commonjs/header/navigation-header.js.map +0 -1
- package/lib/commonjs/history/data-item.js +0 -70
- package/lib/commonjs/history/data-item.js.map +0 -1
- package/lib/commonjs/history/history-list-item.js +0 -90
- package/lib/commonjs/history/history-list-item.js.map +0 -1
- package/lib/commonjs/history/history-section-header.js +0 -49
- package/lib/commonjs/history/history-section-header.js.map +0 -1
- package/lib/commonjs/history/history-section-list-item.js +0 -47
- package/lib/commonjs/history/history-section-list-item.js.map +0 -1
- package/lib/commonjs/history/index.js +0 -55
- package/lib/commonjs/history/index.js.map +0 -1
- package/lib/commonjs/icons/connectivity.js +0 -139
- package/lib/commonjs/icons/connectivity.js.map +0 -1
- package/lib/commonjs/icons/credential.js +0 -162
- package/lib/commonjs/icons/credential.js.map +0 -1
- package/lib/commonjs/icons/entity.js +0 -34
- package/lib/commonjs/icons/entity.js.map +0 -1
- package/lib/commonjs/icons/history.js +0 -408
- package/lib/commonjs/icons/history.js.map +0 -1
- package/lib/commonjs/icons/icons.js +0 -250
- package/lib/commonjs/icons/icons.js.map +0 -1
- package/lib/commonjs/icons/index.js.map +0 -1
- package/lib/commonjs/icons/input.js +0 -44
- package/lib/commonjs/icons/input.js.map +0 -1
- package/lib/commonjs/icons/keypad.js +0 -94
- package/lib/commonjs/icons/keypad.js.map +0 -1
- package/lib/commonjs/icons/loader.js +0 -180
- package/lib/commonjs/icons/loader.js.map +0 -1
- package/lib/commonjs/icons/nerd-view.js +0 -123
- package/lib/commonjs/icons/nerd-view.js.map +0 -1
- package/lib/commonjs/icons/selector.js +0 -56
- package/lib/commonjs/icons/selector.js.map +0 -1
- package/lib/commonjs/icons/wallet.js +0 -121
- package/lib/commonjs/icons/wallet.js.map +0 -1
- package/lib/commonjs/image/image-or-component.js +0 -80
- package/lib/commonjs/image/image-or-component.js.map +0 -1
- package/lib/commonjs/image/index.js +0 -21
- package/lib/commonjs/image/index.js.map +0 -1
- package/lib/commonjs/input/index.js +0 -65
- package/lib/commonjs/input/index.js.map +0 -1
- package/lib/commonjs/input/radio-group.js +0 -95
- package/lib/commonjs/input/radio-group.js.map +0 -1
- package/lib/commonjs/input/selection-input.js +0 -102
- package/lib/commonjs/input/selection-input.js.map +0 -1
- package/lib/commonjs/input/text-input.js +0 -195
- package/lib/commonjs/input/text-input.js.map +0 -1
- package/lib/commonjs/list/index.js +0 -34
- package/lib/commonjs/list/index.js.map +0 -1
- package/lib/commonjs/list/list-section-header.js +0 -36
- package/lib/commonjs/list/list-section-header.js.map +0 -1
- package/lib/commonjs/list/list-title-header.js +0 -35
- package/lib/commonjs/list/list-title-header.js.map +0 -1
- package/lib/commonjs/loader/index.js +0 -40
- package/lib/commonjs/loader/index.js.map +0 -1
- package/lib/commonjs/loader/loader.js +0 -140
- package/lib/commonjs/loader/loader.js.map +0 -1
- package/lib/commonjs/loader/loading-result.js +0 -92
- package/lib/commonjs/loader/loading-result.js.map +0 -1
- package/lib/commonjs/nerd-view/index.js +0 -27
- package/lib/commonjs/nerd-view/index.js.map +0 -1
- package/lib/commonjs/nerd-view/nerd-mode-item.js +0 -235
- package/lib/commonjs/nerd-view/nerd-mode-item.js.map +0 -1
- package/lib/commonjs/pin/index.js +0 -32
- package/lib/commonjs/pin/index.js.map +0 -1
- package/lib/commonjs/pin/keypad.js +0 -201
- package/lib/commonjs/pin/keypad.js.map +0 -1
- package/lib/commonjs/pin/pin-code-screen.js +0 -162
- package/lib/commonjs/pin/pin-code-screen.js.map +0 -1
- package/lib/commonjs/pin/pins.js +0 -54
- package/lib/commonjs/pin/pins.js.map +0 -1
- package/lib/commonjs/screens/backup-screen.js +0 -87
- package/lib/commonjs/screens/backup-screen.js.map +0 -1
- package/lib/commonjs/screens/image-preview-screen.js +0 -92
- package/lib/commonjs/screens/image-preview-screen.js.map +0 -1
- package/lib/commonjs/screens/index.js +0 -98
- package/lib/commonjs/screens/index.js.map +0 -1
- package/lib/commonjs/screens/nerd-mode-screen.js +0 -142
- package/lib/commonjs/screens/nerd-mode-screen.js.map +0 -1
- package/lib/commonjs/screens/qr-code-scanner-screen.js +0 -120
- package/lib/commonjs/screens/qr-code-scanner-screen.js.map +0 -1
- package/lib/commonjs/screens/scroll-view-screen.js +0 -94
- package/lib/commonjs/screens/scroll-view-screen.js.map +0 -1
- package/lib/commonjs/screens/section-list-screen.js +0 -67
- package/lib/commonjs/screens/section-list-screen.js.map +0 -1
- package/lib/commonjs/searchbar/animated-search-bar.js +0 -88
- package/lib/commonjs/searchbar/animated-search-bar.js.map +0 -1
- package/lib/commonjs/searchbar/index.js +0 -34
- package/lib/commonjs/searchbar/index.js.map +0 -1
- package/lib/commonjs/searchbar/search-bar.js +0 -99
- package/lib/commonjs/searchbar/search-bar.js.map +0 -1
- package/lib/commonjs/settings/button-setting.js +0 -67
- package/lib/commonjs/settings/button-setting.js.map +0 -1
- package/lib/commonjs/settings/index.js +0 -73
- package/lib/commonjs/settings/index.js.map +0 -1
- package/lib/commonjs/settings/setting-item-separator.js +0 -40
- package/lib/commonjs/settings/setting-item-separator.js.map +0 -1
- package/lib/commonjs/settings/setting-item.js +0 -79
- package/lib/commonjs/settings/setting-item.js.map +0 -1
- package/lib/commonjs/settings/settings-button.js +0 -35
- package/lib/commonjs/settings/settings-button.js.map +0 -1
- package/lib/commonjs/settings/switch-setting.js +0 -35
- package/lib/commonjs/settings/switch-setting.js.map +0 -1
- package/lib/commonjs/state/error-screen.js +0 -71
- package/lib/commonjs/state/error-screen.js.map +0 -1
- package/lib/commonjs/state/index.js +0 -27
- package/lib/commonjs/state/index.js.map +0 -1
- package/lib/commonjs/text/base.js +0 -40
- package/lib/commonjs/text/base.js.map +0 -1
- package/lib/commonjs/text/font.js +0 -64
- package/lib/commonjs/text/font.js.map +0 -1
- package/lib/commonjs/text/index.js +0 -21
- package/lib/commonjs/text/index.js.map +0 -1
- package/lib/commonjs/text/typography.js +0 -119
- package/lib/commonjs/text/typography.js.map +0 -1
- package/lib/commonjs/theme/color-scheme-context.js +0 -52
- package/lib/commonjs/theme/color-scheme-context.js.map +0 -1
- package/lib/commonjs/theme/color-scheme.js.map +0 -1
- package/lib/commonjs/theme/index.js.map +0 -1
- package/lib/module/accessibility/accessibility.js +0 -185
- package/lib/module/accessibility/accessibility.js.map +0 -1
- package/lib/module/accessibility/accessibilityHistory.js +0 -71
- package/lib/module/accessibility/accessibilityHistory.js.map +0 -1
- package/lib/module/accessibility/accessibilityHistoryWrappers.js +0 -38
- package/lib/module/accessibility/accessibilityHistoryWrappers.js.map +0 -1
- package/lib/module/accessibility/accessibilityLanguage.js +0 -53
- package/lib/module/accessibility/accessibilityLanguage.js.map +0 -1
- package/lib/module/accessibility/index.js +0 -8
- package/lib/module/accessibility/index.js.map +0 -1
- package/lib/module/accessibility/locale/index.js.map +0 -1
- package/lib/module/accessibility/locale.test.js.map +0 -1
- package/lib/module/action-modal/ActionModal.js +0 -44
- package/lib/module/action-modal/ActionModal.js.map +0 -1
- package/lib/module/action-modal/index.js.map +0 -1
- package/lib/module/activity-indicator/activity-indicator.js +0 -24
- package/lib/module/activity-indicator/activity-indicator.js.map +0 -1
- package/lib/module/activity-indicator/index.js.map +0 -1
- package/lib/module/blur/blur-view.js +0 -67
- package/lib/module/blur/blur-view.js.map +0 -1
- package/lib/module/blur/index.js.map +0 -1
- package/lib/module/buttons/back-button.js +0 -28
- package/lib/module/buttons/back-button.js.map +0 -1
- package/lib/module/buttons/button.js +0 -143
- package/lib/module/buttons/button.js.map +0 -1
- package/lib/module/buttons/connectivity-button.js +0 -73
- package/lib/module/buttons/connectivity-button.js.map +0 -1
- package/lib/module/buttons/filter-button.js +0 -43
- package/lib/module/buttons/filter-button.js.map +0 -1
- package/lib/module/buttons/ghost-button.js +0 -53
- package/lib/module/buttons/ghost-button.js.map +0 -1
- package/lib/module/buttons/index.js +0 -8
- package/lib/module/buttons/index.js.map +0 -1
- package/lib/module/buttons/scan-button.js +0 -75
- package/lib/module/buttons/scan-button.js.map +0 -1
- package/lib/module/camera/camera-overlay.js +0 -51
- package/lib/module/camera/camera-overlay.js.map +0 -1
- package/lib/module/camera/index.js.map +0 -1
- package/lib/module/camera/qr-code-scanner.js +0 -40
- package/lib/module/camera/qr-code-scanner.js.map +0 -1
- package/lib/module/control/checkbox.js +0 -70
- package/lib/module/control/checkbox.js.map +0 -1
- package/lib/module/control/index.js.map +0 -1
- package/lib/module/control/switch.js +0 -56
- package/lib/module/control/switch.js.map +0 -1
- package/lib/module/credential/card/credential-card.js +0 -177
- package/lib/module/credential/card/credential-card.js.map +0 -1
- package/lib/module/credential/card/credential-details-card.js +0 -191
- package/lib/module/credential/card/credential-details-card.js.map +0 -1
- package/lib/module/credential/card/credential-details-list-item.js +0 -74
- package/lib/module/credential/card/credential-details-list-item.js.map +0 -1
- package/lib/module/credential/card/credential-header.js +0 -162
- package/lib/module/credential/card/credential-header.js.map +0 -1
- package/lib/module/credential/card/credential-image-carousel.js +0 -113
- package/lib/module/credential/card/credential-image-carousel.js.map +0 -1
- package/lib/module/credential/card/index.js +0 -11
- package/lib/module/credential/card/index.js.map +0 -1
- package/lib/module/credential/credential-attribute-item.js +0 -279
- package/lib/module/credential/credential-attribute-item.js.map +0 -1
- package/lib/module/credential/credential-carousel-images.js +0 -86
- package/lib/module/credential/credential-carousel-images.js.map +0 -1
- package/lib/module/credential/index.js +0 -9
- package/lib/module/credential/index.js.map +0 -1
- package/lib/module/credential/selector-status.js +0 -10
- package/lib/module/credential/selector-status.js.map +0 -1
- package/lib/module/credential/selector.js +0 -70
- package/lib/module/credential/selector.js.map +0 -1
- package/lib/module/detail/detail.js +0 -75
- package/lib/module/detail/detail.js.map +0 -1
- package/lib/module/detail/index.js.map +0 -1
- package/lib/module/entity/avatar.js +0 -86
- package/lib/module/entity/avatar.js.map +0 -1
- package/lib/module/entity/entity-cluster.js +0 -56
- package/lib/module/entity/entity-cluster.js.map +0 -1
- package/lib/module/entity/index.js.map +0 -1
- package/lib/module/header/focus-aware-status-bar.js +0 -12
- package/lib/module/header/focus-aware-status-bar.js.map +0 -1
- package/lib/module/header/foldable-header.js +0 -79
- package/lib/module/header/foldable-header.js.map +0 -1
- package/lib/module/header/header.js +0 -97
- package/lib/module/header/header.js.map +0 -1
- package/lib/module/header/index.js +0 -9
- package/lib/module/header/index.js.map +0 -1
- package/lib/module/header/navigation-header.js +0 -138
- package/lib/module/header/navigation-header.js.map +0 -1
- package/lib/module/history/data-item.js +0 -60
- package/lib/module/history/data-item.js.map +0 -1
- package/lib/module/history/history-list-item.js +0 -80
- package/lib/module/history/history-list-item.js.map +0 -1
- package/lib/module/history/history-section-header.js +0 -42
- package/lib/module/history/history-section-header.js.map +0 -1
- package/lib/module/history/history-section-list-item.js +0 -43
- package/lib/module/history/history-section-list-item.js.map +0 -1
- package/lib/module/history/index.js +0 -9
- package/lib/module/history/index.js.map +0 -1
- package/lib/module/icons/connectivity.js +0 -125
- package/lib/module/icons/connectivity.js.map +0 -1
- package/lib/module/icons/credential.js +0 -147
- package/lib/module/icons/credential.js.map +0 -1
- package/lib/module/icons/entity.js +0 -25
- package/lib/module/icons/entity.js.map +0 -1
- package/lib/module/icons/history.js +0 -391
- package/lib/module/icons/history.js.map +0 -1
- package/lib/module/icons/icons.js +0 -231
- package/lib/module/icons/icons.js.map +0 -1
- package/lib/module/icons/index.js.map +0 -1
- package/lib/module/icons/input.js.map +0 -1
- package/lib/module/icons/keypad.js +0 -81
- package/lib/module/icons/keypad.js.map +0 -1
- package/lib/module/icons/loader.js +0 -168
- package/lib/module/icons/loader.js.map +0 -1
- package/lib/module/icons/nerd-view.js.map +0 -1
- package/lib/module/icons/selector.js +0 -45
- package/lib/module/icons/selector.js.map +0 -1
- package/lib/module/icons/wallet.js +0 -111
- package/lib/module/icons/wallet.js.map +0 -1
- package/lib/module/image/image-or-component.js +0 -71
- package/lib/module/image/image-or-component.js.map +0 -1
- package/lib/module/image/index.js +0 -3
- package/lib/module/image/index.js.map +0 -1
- package/lib/module/input/index.js.map +0 -1
- package/lib/module/input/radio-group.js +0 -87
- package/lib/module/input/radio-group.js.map +0 -1
- package/lib/module/input/selection-input.js +0 -92
- package/lib/module/input/selection-input.js.map +0 -1
- package/lib/module/input/text-input.js +0 -185
- package/lib/module/input/text-input.js.map +0 -1
- package/lib/module/list/index.js +0 -5
- package/lib/module/list/index.js.map +0 -1
- package/lib/module/list/list-section-header.js +0 -28
- package/lib/module/list/list-section-header.js.map +0 -1
- package/lib/module/list/list-title-header.js +0 -27
- package/lib/module/list/list-title-header.js.map +0 -1
- package/lib/module/loader/index.js.map +0 -1
- package/lib/module/loader/loader.js +0 -130
- package/lib/module/loader/loader.js.map +0 -1
- package/lib/module/loader/loading-result.js +0 -84
- package/lib/module/loader/loading-result.js.map +0 -1
- package/lib/module/nerd-view/index.js +0 -3
- package/lib/module/nerd-view/index.js.map +0 -1
- package/lib/module/nerd-view/nerd-mode-item.js +0 -224
- package/lib/module/nerd-view/nerd-mode-item.js.map +0 -1
- package/lib/module/pin/index.js +0 -4
- package/lib/module/pin/index.js.map +0 -1
- package/lib/module/pin/keypad.js +0 -191
- package/lib/module/pin/keypad.js.map +0 -1
- package/lib/module/pin/pin-code-screen.js +0 -152
- package/lib/module/pin/pin-code-screen.js.map +0 -1
- package/lib/module/pin/pins.js +0 -46
- package/lib/module/pin/pins.js.map +0 -1
- package/lib/module/screens/backup-screen.js +0 -78
- package/lib/module/screens/backup-screen.js.map +0 -1
- package/lib/module/screens/image-preview-screen.js +0 -83
- package/lib/module/screens/image-preview-screen.js.map +0 -1
- package/lib/module/screens/index.js +0 -13
- package/lib/module/screens/index.js.map +0 -1
- package/lib/module/screens/nerd-mode-screen.js +0 -132
- package/lib/module/screens/nerd-mode-screen.js.map +0 -1
- package/lib/module/screens/qr-code-scanner-screen.js +0 -110
- package/lib/module/screens/qr-code-scanner-screen.js.map +0 -1
- package/lib/module/screens/scroll-view-screen.js +0 -86
- package/lib/module/screens/scroll-view-screen.js.map +0 -1
- package/lib/module/screens/section-list-screen.js +0 -59
- package/lib/module/screens/section-list-screen.js.map +0 -1
- package/lib/module/searchbar/animated-search-bar.js +0 -78
- package/lib/module/searchbar/animated-search-bar.js.map +0 -1
- package/lib/module/searchbar/index.js.map +0 -1
- package/lib/module/searchbar/search-bar.js +0 -89
- package/lib/module/searchbar/search-bar.js.map +0 -1
- package/lib/module/settings/button-setting.js +0 -57
- package/lib/module/settings/button-setting.js.map +0 -1
- package/lib/module/settings/index.js.map +0 -1
- package/lib/module/settings/setting-item-separator.js +0 -32
- package/lib/module/settings/setting-item-separator.js.map +0 -1
- package/lib/module/settings/setting-item.js +0 -69
- package/lib/module/settings/setting-item.js.map +0 -1
- package/lib/module/settings/settings-button.js +0 -27
- package/lib/module/settings/settings-button.js.map +0 -1
- package/lib/module/settings/switch-setting.js +0 -27
- package/lib/module/settings/switch-setting.js.map +0 -1
- package/lib/module/state/error-screen.js +0 -63
- package/lib/module/state/error-screen.js.map +0 -1
- package/lib/module/state/index.js.map +0 -1
- package/lib/module/text/base.js +0 -31
- package/lib/module/text/base.js.map +0 -1
- package/lib/module/text/font.js +0 -56
- package/lib/module/text/font.js.map +0 -1
- package/lib/module/text/index.js +0 -3
- package/lib/module/text/index.js.map +0 -1
- package/lib/module/text/typography.js +0 -111
- package/lib/module/text/typography.js.map +0 -1
- package/lib/module/theme/color-scheme-context.js +0 -44
- package/lib/module/theme/color-scheme-context.js.map +0 -1
- package/lib/module/theme/color-scheme.js.map +0 -1
- package/lib/module/theme/index.js.map +0 -1
- package/lib/typescript/accessibility/accessibility.d.ts +0 -55
- package/lib/typescript/accessibility/accessibilityHistory.d.ts +0 -13
- package/lib/typescript/accessibility/accessibilityHistoryWrappers.d.ts +0 -18
- package/lib/typescript/accessibility/index.d.ts +0 -6
- package/lib/typescript/buttons/back-button.d.ts +0 -9
- package/lib/typescript/buttons/button.d.ts +0 -22
- package/lib/typescript/buttons/index.d.ts +0 -7
- package/lib/typescript/buttons/scan-button.d.ts +0 -5
- package/lib/typescript/credential/card/credential-card.d.ts +0 -22
- package/lib/typescript/credential/card/credential-header.d.ts +0 -20
- package/lib/typescript/credential/card/index.d.ts +0 -10
- package/lib/typescript/credential/credential-attribute-item.d.ts +0 -48
- package/lib/typescript/credential/index.d.ts +0 -8
- package/lib/typescript/entity/avatar.d.ts +0 -10
- package/lib/typescript/entity/entity-cluster.d.ts +0 -12
- package/lib/typescript/header/index.d.ts +0 -8
- package/lib/typescript/history/data-item.d.ts +0 -12
- package/lib/typescript/history/history-list-item.d.ts +0 -14
- package/lib/typescript/history/history-section-header.d.ts +0 -7
- package/lib/typescript/history/history-section-list-item.d.ts +0 -7
- package/lib/typescript/history/index.d.ts +0 -8
- package/lib/typescript/icons/history.d.ts +0 -42
- package/lib/typescript/image/index.d.ts +0 -2
- package/lib/typescript/input/selection-input.d.ts +0 -32
- package/lib/typescript/list/index.d.ts +0 -4
- package/lib/typescript/nerd-view/index.d.ts +0 -2
- package/lib/typescript/pin/index.d.ts +0 -3
- package/lib/typescript/pin/keypad.d.ts +0 -16
- package/lib/typescript/screens/index.d.ts +0 -12
- package/lib/typescript/screens/nerd-mode-screen.d.ts +0 -22
- package/lib/typescript/text/index.d.ts +0 -2
- package/lib/typescript/text/typography.d.ts +0 -112
- package/lib/typescript/theme/color-scheme.d.ts +0 -31
- package/src/accessibility/accessibility.ts +0 -215
- package/src/accessibility/accessibilityHistory.tsx +0 -77
- package/src/accessibility/accessibilityHistoryWrappers.tsx +0 -80
- package/src/accessibility/index.ts +0 -35
- package/src/action-modal/ActionModal.stories.tsx +0 -35
- package/src/activity-indicator/activity-indicator.stories.tsx +0 -21
- package/src/blur/blur-view.tsx +0 -82
- package/src/buttons/back-button.stories.tsx +0 -31
- package/src/buttons/back-button.tsx +0 -31
- package/src/buttons/button.stories.tsx +0 -29
- package/src/buttons/button.tsx +0 -169
- package/src/buttons/connectivity-button.stories.tsx +0 -34
- package/src/buttons/connectivity-button.tsx +0 -95
- package/src/buttons/ghost-button.stories.tsx +0 -28
- package/src/buttons/index.ts +0 -24
- package/src/buttons/scan-button.stories.tsx +0 -26
- package/src/control/checkbox.stories.tsx +0 -27
- package/src/control/switch.stories.tsx +0 -29
- package/src/credential/card/credential-card.stories.tsx +0 -52
- package/src/credential/card/credential-card.tsx +0 -195
- package/src/credential/card/credential-details-card.stories.tsx +0 -268
- package/src/credential/card/credential-details-card.tsx +0 -242
- package/src/credential/card/credential-details-list-item.tsx +0 -87
- package/src/credential/card/credential-header.stories.tsx +0 -50
- package/src/credential/card/credential-header.tsx +0 -195
- package/src/credential/card/credential-image-carousel.tsx +0 -113
- package/src/credential/card/index.ts +0 -11
- package/src/credential/credential-attribute-item.tsx +0 -372
- package/src/credential/index.ts +0 -13
- package/src/credential/selector.stories.tsx +0 -37
- package/src/credential/selector.tsx +0 -64
- package/src/detail/detail.stories.tsx +0 -65
- package/src/detail/detail.tsx +0 -98
- package/src/entity/avatar.stories.tsx +0 -39
- package/src/entity/avatar.tsx +0 -87
- package/src/entity/entity-cluster.stories.tsx +0 -42
- package/src/entity/entity-cluster.tsx +0 -72
- package/src/header/header.stories.tsx +0 -59
- package/src/header/header.tsx +0 -105
- package/src/header/index.ts +0 -9
- package/src/header/navigation-header.stories.tsx +0 -56
- package/src/header/navigation-header.tsx +0 -147
- package/src/history/data-item.tsx +0 -79
- package/src/history/history-list-item.tsx +0 -102
- package/src/history/history-section-header.tsx +0 -44
- package/src/history/history-section-list-item.tsx +0 -41
- package/src/history/index.ts +0 -9
- package/src/icons/entity.tsx +0 -21
- package/src/icons/history.tsx +0 -378
- package/src/image/index.tsx +0 -3
- package/src/input/radio-group.tsx +0 -110
- package/src/input/selection-input.stories.tsx +0 -46
- package/src/input/selection-input.tsx +0 -112
- package/src/input/text-input.tsx +0 -253
- package/src/list/index.ts +0 -5
- package/src/loader/loader.stories.tsx +0 -31
- package/src/loader/loader.tsx +0 -169
- package/src/loader/loading-result.stories.tsx +0 -67
- package/src/loader/loading-result.tsx +0 -93
- package/src/nerd-view/index.ts +0 -3
- package/src/nerd-view/nerd-mode-item.tsx +0 -296
- package/src/pin/index.ts +0 -4
- package/src/pin/keypad.tsx +0 -166
- package/src/pin/pin-code-screen.stories.tsx +0 -80
- package/src/pin/pin-code-screen.tsx +0 -195
- package/src/screens/backup-screen.tsx +0 -92
- package/src/screens/image-preview-screen.stories.tsx +0 -28
- package/src/screens/image-preview-screen.tsx +0 -82
- package/src/screens/index.ts +0 -13
- package/src/screens/nerd-mode-screen.tsx +0 -150
- package/src/screens/qr-code-scanner-screen.stories.tsx +0 -37
- package/src/screens/qr-code-scanner-screen.tsx +0 -124
- package/src/screens/scroll-view-screen.tsx +0 -91
- package/src/screens/section-list-screen.tsx +0 -61
- package/src/searchbar/search-bar.stories.tsx +0 -31
- package/src/searchbar/search-bar.tsx +0 -94
- package/src/state/error-screen.stories.tsx +0 -22
- package/src/state/error-screen.tsx +0 -71
- package/src/text/index.ts +0 -3
- package/src/text/typography.stories.tsx +0 -70
- package/src/theme/color-scheme-context.tsx +0 -48
- package/src/theme/color-scheme.ts +0 -31
- /package/lib/commonjs/{accessibility → ui-components/accessibility}/locale/de.json +0 -0
- /package/lib/commonjs/{accessibility → ui-components/accessibility}/locale/en.json +0 -0
- /package/lib/commonjs/{accessibility → ui-components/accessibility}/locale/fr.json +0 -0
- /package/lib/commonjs/{accessibility → ui-components/accessibility}/locale/it.json +0 -0
- /package/lib/commonjs/{accessibility → ui-components/accessibility}/locale.test.js +0 -0
- /package/lib/commonjs/{control → ui-components/control}/index.js +0 -0
- /package/lib/commonjs/{icons → ui-components/icons}/index.js +0 -0
- /package/lib/commonjs/{theme → ui-components/theme}/color-scheme.js +0 -0
- /package/lib/commonjs/{theme → ui-components/theme}/index.js +0 -0
- /package/lib/module/{accessibility → ui-components/accessibility}/locale/de.json +0 -0
- /package/lib/module/{accessibility → ui-components/accessibility}/locale/en.json +0 -0
- /package/lib/module/{accessibility → ui-components/accessibility}/locale/fr.json +0 -0
- /package/lib/module/{accessibility → ui-components/accessibility}/locale/index.js +0 -0
- /package/lib/module/{accessibility → ui-components/accessibility}/locale/it.json +0 -0
- /package/lib/module/{accessibility → ui-components/accessibility}/locale.test.js +0 -0
- /package/lib/module/{action-modal → ui-components/action-modal}/index.js +0 -0
- /package/lib/module/{activity-indicator → ui-components/activity-indicator}/index.js +0 -0
- /package/lib/module/{blur → ui-components/blur}/index.js +0 -0
- /package/lib/module/{camera → ui-components/camera}/index.js +0 -0
- /package/lib/module/{control → ui-components/control}/index.js +0 -0
- /package/lib/module/{detail → ui-components/detail}/index.js +0 -0
- /package/lib/module/{entity → ui-components/entity}/index.js +0 -0
- /package/lib/module/{icons → ui-components/icons}/index.js +0 -0
- /package/lib/module/{icons → ui-components/icons}/input.js +0 -0
- /package/lib/module/{icons → ui-components/icons}/nerd-view.js +0 -0
- /package/lib/module/{input → ui-components/input}/index.js +0 -0
- /package/lib/module/{loader → ui-components/loader}/index.js +0 -0
- /package/lib/module/{searchbar → ui-components/searchbar}/index.js +0 -0
- /package/lib/module/{settings → ui-components/settings}/index.js +0 -0
- /package/lib/module/{state → ui-components/state}/index.js +0 -0
- /package/lib/module/{theme → ui-components/theme}/color-scheme.js +0 -0
- /package/lib/module/{theme → ui-components/theme}/index.js +0 -0
- /package/lib/typescript/{accessibility → ui-components/accessibility}/accessibilityLanguage.d.ts +0 -0
- /package/lib/typescript/{accessibility → ui-components/accessibility}/locale/index.d.ts +0 -0
- /package/lib/typescript/{accessibility → ui-components/accessibility}/locale.test.d.ts +0 -0
- /package/lib/typescript/{action-modal → ui-components/action-modal}/ActionModal.d.ts +0 -0
- /package/lib/typescript/{action-modal → ui-components/action-modal}/index.d.ts +0 -0
- /package/lib/typescript/{activity-indicator → ui-components/activity-indicator}/activity-indicator.d.ts +0 -0
- /package/lib/typescript/{activity-indicator → ui-components/activity-indicator}/index.d.ts +0 -0
- /package/lib/typescript/{blur → ui-components/blur}/blur-view.d.ts +0 -0
- /package/lib/typescript/{blur → ui-components/blur}/index.d.ts +0 -0
- /package/lib/typescript/{buttons → ui-components/buttons}/connectivity-button.d.ts +0 -0
- /package/lib/typescript/{buttons → ui-components/buttons}/filter-button.d.ts +0 -0
- /package/lib/typescript/{buttons → ui-components/buttons}/ghost-button.d.ts +0 -0
- /package/lib/typescript/{camera → ui-components/camera}/camera-overlay.d.ts +0 -0
- /package/lib/typescript/{camera → ui-components/camera}/index.d.ts +0 -0
- /package/lib/typescript/{camera → ui-components/camera}/qr-code-scanner.d.ts +0 -0
- /package/lib/typescript/{control → ui-components/control}/checkbox.d.ts +0 -0
- /package/lib/typescript/{control → ui-components/control}/index.d.ts +0 -0
- /package/lib/typescript/{control → ui-components/control}/switch.d.ts +0 -0
- /package/lib/typescript/{credential → ui-components/credential}/card/credential-details-card.d.ts +0 -0
- /package/lib/typescript/{credential → ui-components/credential}/card/credential-details-list-item.d.ts +0 -0
- /package/lib/typescript/{credential → ui-components/credential}/card/credential-image-carousel.d.ts +0 -0
- /package/lib/typescript/{credential → ui-components/credential}/credential-carousel-images.d.ts +0 -0
- /package/lib/typescript/{credential → ui-components/credential}/selector-status.d.ts +0 -0
- /package/lib/typescript/{credential → ui-components/credential}/selector.d.ts +0 -0
- /package/lib/typescript/{detail → ui-components/detail}/detail.d.ts +0 -0
- /package/lib/typescript/{detail → ui-components/detail}/index.d.ts +0 -0
- /package/lib/typescript/{entity → ui-components/entity}/index.d.ts +0 -0
- /package/lib/typescript/{header → ui-components/header}/focus-aware-status-bar.d.ts +0 -0
- /package/lib/typescript/{header → ui-components/header}/foldable-header.d.ts +0 -0
- /package/lib/typescript/{header → ui-components/header}/header.d.ts +0 -0
- /package/lib/typescript/{header → ui-components/header}/navigation-header.d.ts +0 -0
- /package/lib/typescript/{icons → ui-components/icons}/connectivity.d.ts +0 -0
- /package/lib/typescript/{icons → ui-components/icons}/credential.d.ts +0 -0
- /package/lib/typescript/{icons → ui-components/icons}/entity.d.ts +0 -0
- /package/lib/typescript/{icons → ui-components/icons}/icons.d.ts +0 -0
- /package/lib/typescript/{icons → ui-components/icons}/index.d.ts +0 -0
- /package/lib/typescript/{icons → ui-components/icons}/input.d.ts +0 -0
- /package/lib/typescript/{icons → ui-components/icons}/keypad.d.ts +0 -0
- /package/lib/typescript/{icons → ui-components/icons}/loader.d.ts +0 -0
- /package/lib/typescript/{icons → ui-components/icons}/nerd-view.d.ts +0 -0
- /package/lib/typescript/{icons → ui-components/icons}/selector.d.ts +0 -0
- /package/lib/typescript/{icons → ui-components/icons}/wallet.d.ts +0 -0
- /package/lib/typescript/{image → ui-components/image}/image-or-component.d.ts +0 -0
- /package/lib/typescript/{input → ui-components/input}/index.d.ts +0 -0
- /package/lib/typescript/{input → ui-components/input}/radio-group.d.ts +0 -0
- /package/lib/typescript/{input → ui-components/input}/text-input.d.ts +0 -0
- /package/lib/typescript/{list → ui-components/list}/list-section-header.d.ts +0 -0
- /package/lib/typescript/{list → ui-components/list}/list-title-header.d.ts +0 -0
- /package/lib/typescript/{loader → ui-components/loader}/index.d.ts +0 -0
- /package/lib/typescript/{loader → ui-components/loader}/loader.d.ts +0 -0
- /package/lib/typescript/{loader → ui-components/loader}/loading-result.d.ts +0 -0
- /package/lib/typescript/{nerd-view → ui-components/nerd-view}/nerd-mode-item.d.ts +0 -0
- /package/lib/typescript/{pin → ui-components/pin}/pin-code-screen.d.ts +0 -0
- /package/lib/typescript/{pin → ui-components/pin}/pins.d.ts +0 -0
- /package/lib/typescript/{screens → ui-components/screens}/backup-screen.d.ts +0 -0
- /package/lib/typescript/{screens → ui-components/screens}/image-preview-screen.d.ts +0 -0
- /package/lib/typescript/{screens → ui-components/screens}/qr-code-scanner-screen.d.ts +0 -0
- /package/lib/typescript/{screens → ui-components/screens}/scroll-view-screen.d.ts +0 -0
- /package/lib/typescript/{screens → ui-components/screens}/section-list-screen.d.ts +0 -0
- /package/lib/typescript/{searchbar → ui-components/searchbar}/animated-search-bar.d.ts +0 -0
- /package/lib/typescript/{searchbar → ui-components/searchbar}/index.d.ts +0 -0
- /package/lib/typescript/{searchbar → ui-components/searchbar}/search-bar.d.ts +0 -0
- /package/lib/typescript/{settings → ui-components/settings}/button-setting.d.ts +0 -0
- /package/lib/typescript/{settings → ui-components/settings}/index.d.ts +0 -0
- /package/lib/typescript/{settings → ui-components/settings}/setting-item-separator.d.ts +0 -0
- /package/lib/typescript/{settings → ui-components/settings}/setting-item.d.ts +0 -0
- /package/lib/typescript/{settings → ui-components/settings}/settings-button.d.ts +0 -0
- /package/lib/typescript/{settings → ui-components/settings}/switch-setting.d.ts +0 -0
- /package/lib/typescript/{state → ui-components/state}/error-screen.d.ts +0 -0
- /package/lib/typescript/{state → ui-components/state}/index.d.ts +0 -0
- /package/lib/typescript/{text → ui-components/text}/base.d.ts +0 -0
- /package/lib/typescript/{text → ui-components/text}/font.d.ts +0 -0
- /package/lib/typescript/{theme → ui-components/theme}/color-scheme-context.d.ts +0 -0
- /package/lib/typescript/{theme → ui-components/theme}/index.d.ts +0 -0
- /package/src/{accessibility → ui-components/accessibility}/accessibilityLanguage.tsx +0 -0
- /package/src/{accessibility → ui-components/accessibility}/locale/de.json +0 -0
- /package/src/{accessibility → ui-components/accessibility}/locale/en.json +0 -0
- /package/src/{accessibility → ui-components/accessibility}/locale/fr.json +0 -0
- /package/src/{accessibility → ui-components/accessibility}/locale/index.ts +0 -0
- /package/src/{accessibility → ui-components/accessibility}/locale/it.json +0 -0
- /package/src/{accessibility → ui-components/accessibility}/locale.test.ts +0 -0
- /package/src/{action-modal → ui-components/action-modal}/ActionModal.tsx +0 -0
- /package/src/{action-modal → ui-components/action-modal}/index.ts +0 -0
- /package/src/{activity-indicator → ui-components/activity-indicator}/activity-indicator.tsx +0 -0
- /package/src/{activity-indicator → ui-components/activity-indicator}/index.ts +0 -0
- /package/src/{blur → ui-components/blur}/index.ts +0 -0
- /package/src/{buttons → ui-components/buttons}/filter-button.tsx +0 -0
- /package/src/{buttons → ui-components/buttons}/ghost-button.tsx +0 -0
- /package/src/{buttons → ui-components/buttons}/scan-button.tsx +0 -0
- /package/src/{camera → ui-components/camera}/camera-overlay.tsx +0 -0
- /package/src/{camera → ui-components/camera}/index.tsx +0 -0
- /package/src/{camera → ui-components/camera}/qr-code-scanner.tsx +0 -0
- /package/src/{control → ui-components/control}/checkbox.tsx +0 -0
- /package/src/{control → ui-components/control}/index.ts +0 -0
- /package/src/{control → ui-components/control}/switch.tsx +0 -0
- /package/src/{credential → ui-components/credential}/credential-carousel-images.tsx +0 -0
- /package/src/{credential → ui-components/credential}/selector-status.ts +0 -0
- /package/src/{detail → ui-components/detail}/index.tsx +0 -0
- /package/src/{entity → ui-components/entity}/index.ts +0 -0
- /package/src/{header → ui-components/header}/focus-aware-status-bar.tsx +0 -0
- /package/src/{header → ui-components/header}/foldable-header.tsx +0 -0
- /package/src/{icons → ui-components/icons}/connectivity.tsx +0 -0
- /package/src/{icons → ui-components/icons}/credential.tsx +0 -0
- /package/src/{icons → ui-components/icons}/icons.tsx +0 -0
- /package/src/{icons → ui-components/icons}/index.ts +0 -0
- /package/src/{icons → ui-components/icons}/input.tsx +0 -0
- /package/src/{icons → ui-components/icons}/keypad.tsx +0 -0
- /package/src/{icons → ui-components/icons}/loader.tsx +0 -0
- /package/src/{icons → ui-components/icons}/nerd-view.tsx +0 -0
- /package/src/{icons → ui-components/icons}/selector.tsx +0 -0
- /package/src/{icons → ui-components/icons}/wallet.tsx +0 -0
- /package/src/{image → ui-components/image}/image-or-component.tsx +0 -0
- /package/src/{input → ui-components/input}/index.ts +0 -0
- /package/src/{list → ui-components/list}/list-section-header.tsx +0 -0
- /package/src/{list → ui-components/list}/list-title-header.tsx +0 -0
- /package/src/{loader → ui-components/loader}/index.ts +0 -0
- /package/src/{pin → ui-components/pin}/pins.tsx +0 -0
- /package/src/{searchbar → ui-components/searchbar}/animated-search-bar.tsx +0 -0
- /package/src/{searchbar → ui-components/searchbar}/index.ts +0 -0
- /package/src/{settings → ui-components/settings}/button-setting.tsx +0 -0
- /package/src/{settings → ui-components/settings}/index.ts +0 -0
- /package/src/{settings → ui-components/settings}/setting-item-separator.tsx +0 -0
- /package/src/{settings → ui-components/settings}/setting-item.tsx +0 -0
- /package/src/{settings → ui-components/settings}/settings-button.tsx +0 -0
- /package/src/{settings → ui-components/settings}/switch-setting.tsx +0 -0
- /package/src/{state → ui-components/state}/index.ts +0 -0
- /package/src/{text → ui-components/text}/base.tsx +0 -0
- /package/src/{text → ui-components/text}/font.ts +0 -0
- /package/src/{text → ui-components/text}/typography.tsx +0 -0
- /package/src/{theme → ui-components/theme}/index.ts +0 -0
|
@@ -0,0 +1,185 @@
|
|
|
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
|
+
import React, { useCallback, useEffect, useMemo, useState } from 'react';
|
|
3
|
+
import { StyleSheet, View } from 'react-native';
|
|
4
|
+
import Animated, { useAnimatedStyle, useSharedValue, withTiming } from 'react-native-reanimated';
|
|
5
|
+
import { concatTestID } from '../../../utils/testID';
|
|
6
|
+
import { Button, ButtonType } from '../../buttons';
|
|
7
|
+
import { DownIcon, UpIcon } from '../../icons/credential';
|
|
8
|
+
import { useAppColorScheme } from '../../theme/color-scheme-context';
|
|
9
|
+
import CredentialAttributeItem from '../credential-attribute-item';
|
|
10
|
+
import CredentialCard from './credential-card';
|
|
11
|
+
const PREVIEW_ATTRIBUTES_COUNT = 3;
|
|
12
|
+
const CredentialDetailsCard = ({
|
|
13
|
+
animate = true,
|
|
14
|
+
attributes,
|
|
15
|
+
card,
|
|
16
|
+
expanded,
|
|
17
|
+
footer,
|
|
18
|
+
onImagePreview,
|
|
19
|
+
onAttributeSelected,
|
|
20
|
+
style,
|
|
21
|
+
showAllButtonLabel,
|
|
22
|
+
testID,
|
|
23
|
+
...viewProps
|
|
24
|
+
}) => {
|
|
25
|
+
var _header$accessory;
|
|
26
|
+
const colorScheme = useAppColorScheme();
|
|
27
|
+
const [previewAttributesHeight, setPreviewAttributesHeight] = useState();
|
|
28
|
+
const [fullAttributesHeight, setFullAttributesHeight] = useState();
|
|
29
|
+
const [buttonViewHeight, setButtonViewHeight] = useState();
|
|
30
|
+
const [allAttributesRendered, setAllAttributesRendered] = useState(attributes && attributes.length <= PREVIEW_ATTRIBUTES_COUNT || !showAllButtonLabel);
|
|
31
|
+
const CaretIcon = expanded ? UpIcon : DownIcon;
|
|
32
|
+
const currentHeight = useSharedValue(undefined);
|
|
33
|
+
const previewAttributes = attributes ? attributes.slice(0, PREVIEW_ATTRIBUTES_COUNT) : [];
|
|
34
|
+
const extraAttributes = useMemo(() => attributes ? attributes.slice(PREVIEW_ATTRIBUTES_COUNT) : [], [attributes]);
|
|
35
|
+
useEffect(() => {
|
|
36
|
+
if (!extraAttributes || allAttributesRendered) {
|
|
37
|
+
setButtonViewHeight(0);
|
|
38
|
+
}
|
|
39
|
+
}, [extraAttributes, allAttributesRendered]);
|
|
40
|
+
useEffect(() => {
|
|
41
|
+
if (extraAttributes.length === 0) {
|
|
42
|
+
const viewStyle = StyleSheet.flatten([styles.allAttributesWrapper, footer && styles.allAttributesWrapperWithFooter]);
|
|
43
|
+
const padding = viewStyle.paddingBottom;
|
|
44
|
+
setFullAttributesHeight(padding);
|
|
45
|
+
}
|
|
46
|
+
}, [extraAttributes, footer]);
|
|
47
|
+
useEffect(() => {
|
|
48
|
+
if (previewAttributesHeight === undefined || buttonViewHeight === undefined) {
|
|
49
|
+
return;
|
|
50
|
+
}
|
|
51
|
+
if (allAttributesRendered && fullAttributesHeight === undefined) {
|
|
52
|
+
return;
|
|
53
|
+
}
|
|
54
|
+
const additionalAttributesHeight = fullAttributesHeight !== null && fullAttributesHeight !== void 0 ? fullAttributesHeight : 0;
|
|
55
|
+
const additionalHeight = allAttributesRendered ? additionalAttributesHeight : buttonViewHeight;
|
|
56
|
+
const newHeight = expanded || !animate ? previewAttributesHeight + additionalHeight : 0;
|
|
57
|
+
if (currentHeight.value === undefined || !animate) {
|
|
58
|
+
currentHeight.value = newHeight;
|
|
59
|
+
return;
|
|
60
|
+
}
|
|
61
|
+
const duration = !expanded ? 250 : allAttributesRendered ? previewAttributes.length * 50 : extraAttributes.length * 50;
|
|
62
|
+
currentHeight.value = withTiming(newHeight, {
|
|
63
|
+
duration
|
|
64
|
+
});
|
|
65
|
+
}, [allAttributesRendered, buttonViewHeight, currentHeight, animate, expanded, extraAttributes.length, fullAttributesHeight, previewAttributes.length, previewAttributesHeight]);
|
|
66
|
+
const credentialAttributesStyle = useAnimatedStyle(() => {
|
|
67
|
+
if (currentHeight.value === undefined) {
|
|
68
|
+
if (expanded) {
|
|
69
|
+
return {};
|
|
70
|
+
}
|
|
71
|
+
return {
|
|
72
|
+
height: 0
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
return {
|
|
76
|
+
height: currentHeight.value
|
|
77
|
+
};
|
|
78
|
+
}, [expanded, currentHeight]);
|
|
79
|
+
const onPreviewAttrContentLayout = useCallback(event => {
|
|
80
|
+
setPreviewAttributesHeight(event.nativeEvent.layout.height);
|
|
81
|
+
}, []);
|
|
82
|
+
const onFullAttrContentLayout = useCallback(event => {
|
|
83
|
+
setFullAttributesHeight(event.nativeEvent.layout.height);
|
|
84
|
+
}, []);
|
|
85
|
+
const onButtonViewLayout = useCallback(event => {
|
|
86
|
+
setButtonViewHeight(event.nativeEvent.layout.height);
|
|
87
|
+
}, []);
|
|
88
|
+
const footerView = useMemo(() => {
|
|
89
|
+
if (!footer) {
|
|
90
|
+
return undefined;
|
|
91
|
+
}
|
|
92
|
+
if (/*#__PURE__*/React.isValidElement(footer)) {
|
|
93
|
+
return footer;
|
|
94
|
+
} else {
|
|
95
|
+
const FooterComponent = footer;
|
|
96
|
+
return /*#__PURE__*/React.createElement(FooterComponent, null);
|
|
97
|
+
}
|
|
98
|
+
}, [footer]);
|
|
99
|
+
const {
|
|
100
|
+
header,
|
|
101
|
+
...cardProps
|
|
102
|
+
} = card;
|
|
103
|
+
const renderExtraAttributes = allAttributesRendered || previewAttributesHeight !== undefined && currentHeight.value !== undefined;
|
|
104
|
+
return /*#__PURE__*/React.createElement(View, _extends({
|
|
105
|
+
style: [styles.detailsCard, {
|
|
106
|
+
backgroundColor: colorScheme.white
|
|
107
|
+
}, style]
|
|
108
|
+
}, viewProps, {
|
|
109
|
+
testID: concatTestID(card.testID, expanded ? 'expanded' : 'collapsed')
|
|
110
|
+
}), /*#__PURE__*/React.createElement(CredentialCard, _extends({}, cardProps, {
|
|
111
|
+
header: {
|
|
112
|
+
...header,
|
|
113
|
+
accessory: (_header$accessory = header.accessory) !== null && _header$accessory !== void 0 ? _header$accessory : CaretIcon
|
|
114
|
+
},
|
|
115
|
+
style: [styles.card, cardProps.style]
|
|
116
|
+
})), previewAttributes.length > 0 && /*#__PURE__*/React.createElement(Animated.View, {
|
|
117
|
+
style: [styles.attributesAnimatedWrapper, credentialAttributesStyle]
|
|
118
|
+
}, /*#__PURE__*/React.createElement(View, {
|
|
119
|
+
style: styles.attributesWrapper
|
|
120
|
+
}, /*#__PURE__*/React.createElement(View, {
|
|
121
|
+
onLayout: onPreviewAttrContentLayout,
|
|
122
|
+
style: styles.previewAttributesWrapper
|
|
123
|
+
}, previewAttributes.map((attribute, idx) => /*#__PURE__*/React.createElement(CredentialAttributeItem, _extends({
|
|
124
|
+
key: attribute.id,
|
|
125
|
+
last: !footerView && !extraAttributes.length && idx === previewAttributes.length - 1,
|
|
126
|
+
testID: concatTestID(testID, 'attribute', idx.toString()),
|
|
127
|
+
onImagePreview: onImagePreview,
|
|
128
|
+
onPress: onAttributeSelected
|
|
129
|
+
}, attribute)))), !allAttributesRendered && extraAttributes.length > 0 && /*#__PURE__*/React.createElement(View, {
|
|
130
|
+
style: styles.allAttributesWrapper,
|
|
131
|
+
onLayout: onButtonViewLayout
|
|
132
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
133
|
+
onPress: () => setAllAttributesRendered(true),
|
|
134
|
+
type: ButtonType.Secondary,
|
|
135
|
+
testID: concatTestID(testID, 'showAllAttributesButton'),
|
|
136
|
+
title: showAllButtonLabel
|
|
137
|
+
})), renderExtraAttributes && /*#__PURE__*/React.createElement(View, {
|
|
138
|
+
style: [styles.allAttributesWrapper, footerView && styles.allAttributesWrapperWithFooter],
|
|
139
|
+
onLayout: onFullAttrContentLayout
|
|
140
|
+
}, extraAttributes.map((attribute, index, {
|
|
141
|
+
length
|
|
142
|
+
}) => /*#__PURE__*/React.createElement(CredentialAttributeItem, _extends({
|
|
143
|
+
key: attribute.id,
|
|
144
|
+
last: !footerView && index === length - 1,
|
|
145
|
+
testID: concatTestID(testID, 'attribute', index.toString()),
|
|
146
|
+
onImagePreview: onImagePreview,
|
|
147
|
+
onPress: onAttributeSelected
|
|
148
|
+
}, attribute)))))), footerView ? /*#__PURE__*/React.createElement(View, {
|
|
149
|
+
style: styles.footer
|
|
150
|
+
}, footerView) : null);
|
|
151
|
+
};
|
|
152
|
+
const styles = StyleSheet.create({
|
|
153
|
+
allAttributesWrapper: {
|
|
154
|
+
paddingBottom: 12,
|
|
155
|
+
paddingHorizontal: 4,
|
|
156
|
+
width: '100%'
|
|
157
|
+
},
|
|
158
|
+
allAttributesWrapperWithFooter: {
|
|
159
|
+
paddingBottom: 0
|
|
160
|
+
},
|
|
161
|
+
attributesAnimatedWrapper: {
|
|
162
|
+
overflow: 'hidden'
|
|
163
|
+
},
|
|
164
|
+
attributesWrapper: {
|
|
165
|
+
paddingTop: 7,
|
|
166
|
+
position: 'absolute',
|
|
167
|
+
width: '100%'
|
|
168
|
+
},
|
|
169
|
+
card: {
|
|
170
|
+
borderRadius: 0
|
|
171
|
+
},
|
|
172
|
+
detailsCard: {
|
|
173
|
+
borderRadius: 10,
|
|
174
|
+
overflow: 'hidden'
|
|
175
|
+
},
|
|
176
|
+
footer: {
|
|
177
|
+
marginTop: 12
|
|
178
|
+
},
|
|
179
|
+
previewAttributesWrapper: {
|
|
180
|
+
paddingHorizontal: 4,
|
|
181
|
+
width: '100%'
|
|
182
|
+
}
|
|
183
|
+
});
|
|
184
|
+
export default CredentialDetailsCard;
|
|
185
|
+
//# sourceMappingURL=credential-details-card.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","useCallback","useEffect","useMemo","useState","StyleSheet","View","Animated","useAnimatedStyle","useSharedValue","withTiming","concatTestID","Button","ButtonType","DownIcon","UpIcon","useAppColorScheme","CredentialAttributeItem","CredentialCard","PREVIEW_ATTRIBUTES_COUNT","CredentialDetailsCard","animate","attributes","card","expanded","footer","onImagePreview","onAttributeSelected","style","showAllButtonLabel","testID","viewProps","_header$accessory","colorScheme","previewAttributesHeight","setPreviewAttributesHeight","fullAttributesHeight","setFullAttributesHeight","buttonViewHeight","setButtonViewHeight","allAttributesRendered","setAllAttributesRendered","length","CaretIcon","currentHeight","undefined","previewAttributes","slice","extraAttributes","viewStyle","flatten","styles","allAttributesWrapper","allAttributesWrapperWithFooter","padding","paddingBottom","additionalAttributesHeight","additionalHeight","newHeight","value","duration","credentialAttributesStyle","height","onPreviewAttrContentLayout","event","nativeEvent","layout","onFullAttrContentLayout","onButtonViewLayout","footerView","isValidElement","FooterComponent","createElement","header","cardProps","renderExtraAttributes","_extends","detailsCard","backgroundColor","white","accessory","attributesAnimatedWrapper","attributesWrapper","onLayout","previewAttributesWrapper","map","attribute","idx","key","id","last","toString","onPress","type","Secondary","title","index","create","paddingHorizontal","width","overflow","paddingTop","position","borderRadius","marginTop"],"sources":["credential-details-card.tsx"],"sourcesContent":["import React, { ComponentType, FC, ReactElement, useCallback, useEffect, useMemo, useState } from 'react';\nimport { ImageSourcePropType, LayoutChangeEvent, StyleSheet, View, ViewProps } from 'react-native';\nimport Animated, { useAnimatedStyle, useSharedValue, withTiming } from 'react-native-reanimated';\n\nimport { concatTestID } from '../../../utils/testID';\nimport { Button, ButtonType } from '../../buttons';\nimport { DownIcon, UpIcon } from '../../icons/credential';\nimport { useAppColorScheme } from '../../theme/color-scheme-context';\nimport CredentialAttributeItem, { CredentialAttribute } from '../credential-attribute-item';\nimport CredentialCard, { CredentialCardProps } from './credential-card';\n\nexport type CredentialDetailsCardProps = ViewProps & {\n animate?: boolean;\n attributes: CredentialAttribute[] | false;\n card: CredentialCardProps;\n expanded?: boolean;\n footer?: ComponentType<any> | ReactElement;\n onImagePreview?: (name: string, image: ImageSourcePropType) => void;\n onAttributeSelected?: (id: string, selected: boolean) => void;\n showAllButtonLabel?: string;\n};\n\nconst PREVIEW_ATTRIBUTES_COUNT = 3;\n\nconst CredentialDetailsCard: FC<CredentialDetailsCardProps> = ({\n animate = true,\n attributes,\n card,\n expanded,\n footer,\n onImagePreview,\n onAttributeSelected,\n style,\n showAllButtonLabel,\n testID,\n ...viewProps\n}) => {\n const colorScheme = useAppColorScheme();\n const [previewAttributesHeight, setPreviewAttributesHeight] = useState<number>();\n const [fullAttributesHeight, setFullAttributesHeight] = useState<number>();\n const [buttonViewHeight, setButtonViewHeight] = useState<number>();\n\n const [allAttributesRendered, setAllAttributesRendered] = useState<boolean>(\n (attributes && attributes.length <= PREVIEW_ATTRIBUTES_COUNT) || !showAllButtonLabel,\n );\n\n const CaretIcon = expanded ? UpIcon : DownIcon;\n\n const currentHeight = useSharedValue<number | undefined>(undefined);\n\n const previewAttributes = attributes ? attributes.slice(0, PREVIEW_ATTRIBUTES_COUNT) : [];\n const extraAttributes = useMemo(() => (attributes ? attributes.slice(PREVIEW_ATTRIBUTES_COUNT) : []), [attributes]);\n\n useEffect(() => {\n if (!extraAttributes || allAttributesRendered) {\n setButtonViewHeight(0);\n }\n }, [extraAttributes, allAttributesRendered]);\n\n useEffect(() => {\n if (extraAttributes.length === 0) {\n const viewStyle = StyleSheet.flatten([\n styles.allAttributesWrapper,\n footer && styles.allAttributesWrapperWithFooter,\n ]);\n const padding = viewStyle.paddingBottom;\n setFullAttributesHeight(padding);\n }\n }, [extraAttributes, footer]);\n\n useEffect(() => {\n if (previewAttributesHeight === undefined || buttonViewHeight === undefined) {\n return;\n }\n if (allAttributesRendered && fullAttributesHeight === undefined) {\n return;\n }\n\n const additionalAttributesHeight = fullAttributesHeight ?? 0;\n const additionalHeight = allAttributesRendered ? additionalAttributesHeight : buttonViewHeight;\n const newHeight = expanded || !animate ? previewAttributesHeight + additionalHeight : 0;\n\n if (currentHeight.value === undefined || !animate) {\n currentHeight.value = newHeight;\n return;\n }\n\n const duration = !expanded\n ? 250\n : allAttributesRendered\n ? previewAttributes.length * 50\n : extraAttributes.length * 50;\n currentHeight.value = withTiming(newHeight, {\n duration,\n });\n }, [\n allAttributesRendered,\n buttonViewHeight,\n currentHeight,\n animate,\n expanded,\n extraAttributes.length,\n fullAttributesHeight,\n previewAttributes.length,\n previewAttributesHeight,\n ]);\n\n const credentialAttributesStyle = useAnimatedStyle(() => {\n if (currentHeight.value === undefined) {\n if (expanded) {\n return {};\n }\n return {\n height: 0,\n };\n }\n return {\n height: currentHeight.value,\n };\n }, [expanded, currentHeight]);\n\n const onPreviewAttrContentLayout = useCallback((event: LayoutChangeEvent) => {\n setPreviewAttributesHeight(event.nativeEvent.layout.height);\n }, []);\n\n const onFullAttrContentLayout = useCallback((event: LayoutChangeEvent) => {\n setFullAttributesHeight(event.nativeEvent.layout.height);\n }, []);\n\n const onButtonViewLayout = useCallback((event: LayoutChangeEvent) => {\n setButtonViewHeight(event.nativeEvent.layout.height);\n }, []);\n\n const footerView: ReactElement | undefined = useMemo(() => {\n if (!footer) {\n return undefined;\n }\n if (React.isValidElement(footer)) {\n return footer;\n } else {\n const FooterComponent = footer as React.ComponentType<any>;\n return <FooterComponent />;\n }\n }, [footer]);\n\n const { header, ...cardProps } = card;\n\n const renderExtraAttributes =\n allAttributesRendered || (previewAttributesHeight !== undefined && currentHeight.value !== undefined);\n return (\n <View\n style={[styles.detailsCard, { backgroundColor: colorScheme.white }, style]}\n {...viewProps}\n testID={concatTestID(card.testID, expanded ? 'expanded' : 'collapsed')}>\n <CredentialCard\n {...cardProps}\n header={{ ...header, accessory: header.accessory ?? CaretIcon }}\n style={[styles.card, cardProps.style]}\n />\n {previewAttributes.length > 0 && (\n <Animated.View style={[styles.attributesAnimatedWrapper, credentialAttributesStyle]}>\n <View style={styles.attributesWrapper}>\n <View onLayout={onPreviewAttrContentLayout} style={styles.previewAttributesWrapper}>\n {previewAttributes.map((attribute, idx) => (\n <CredentialAttributeItem\n key={attribute.id}\n last={!footerView && !extraAttributes.length && idx === previewAttributes.length - 1}\n testID={concatTestID(testID, 'attribute', idx.toString())}\n onImagePreview={onImagePreview}\n onPress={onAttributeSelected}\n {...attribute}\n />\n ))}\n </View>\n {!allAttributesRendered && extraAttributes.length > 0 && (\n <View style={styles.allAttributesWrapper} onLayout={onButtonViewLayout}>\n <Button\n onPress={() => setAllAttributesRendered(true)}\n type={ButtonType.Secondary}\n testID={concatTestID(testID, 'showAllAttributesButton')}\n title={showAllButtonLabel!}\n />\n </View>\n )}\n {renderExtraAttributes && (\n <View\n style={[styles.allAttributesWrapper, footerView && styles.allAttributesWrapperWithFooter]}\n onLayout={onFullAttrContentLayout}>\n {extraAttributes.map((attribute, index, { length }) => (\n <CredentialAttributeItem\n key={attribute.id}\n last={!footerView && index === length - 1}\n testID={concatTestID(testID, 'attribute', index.toString())}\n onImagePreview={onImagePreview}\n onPress={onAttributeSelected}\n {...attribute}\n />\n ))}\n </View>\n )}\n </View>\n </Animated.View>\n )}\n {footerView ? <View style={styles.footer}>{footerView}</View> : null}\n </View>\n );\n};\n\nconst styles = StyleSheet.create({\n allAttributesWrapper: {\n paddingBottom: 12,\n paddingHorizontal: 4,\n width: '100%',\n },\n allAttributesWrapperWithFooter: {\n paddingBottom: 0,\n },\n attributesAnimatedWrapper: {\n overflow: 'hidden',\n },\n attributesWrapper: {\n paddingTop: 7,\n position: 'absolute',\n width: '100%',\n },\n card: {\n borderRadius: 0,\n },\n detailsCard: {\n borderRadius: 10,\n overflow: 'hidden',\n },\n footer: {\n marginTop: 12,\n },\n previewAttributesWrapper: {\n paddingHorizontal: 4,\n width: '100%',\n },\n});\n\nexport default CredentialDetailsCard;\n"],"mappings":";AAAA,OAAOA,KAAK,IAAqCC,WAAW,EAAEC,SAAS,EAAEC,OAAO,EAAEC,QAAQ,QAAQ,OAAO;AACzG,S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AAY,EAAE,EAAE;IAChBH,QAAQ,EAAE;EACZ,CAAC;EACD3E,MAAM,EAAE;IACN+E,SAAS,EAAE;EACb,CAAC;EACDpB,wBAAwB,EAAE;IACxBc,iBAAiB,EAAE,CAAC;IACpBC,KAAK,EAAE;EACT;AACF,CAAC,CAAC;AAEF,eAAe/E,qBAAqB","ignoreList":[]}
|
|
@@ -0,0 +1,82 @@
|
|
|
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
|
+
import React, { useCallback, useEffect, useState } from 'react';
|
|
3
|
+
import { StyleSheet, View } from 'react-native';
|
|
4
|
+
import Animated, { useAnimatedStyle, useSharedValue, withTiming } from 'react-native-reanimated';
|
|
5
|
+
import { CredentialCardRatio, CredentialCardShadow } from './credential-card';
|
|
6
|
+
import CredentialDetailsCard from './credential-details-card';
|
|
7
|
+
const CredentialDetailsCardListItem = ({
|
|
8
|
+
detailsCardStyle,
|
|
9
|
+
expanded,
|
|
10
|
+
lastItem,
|
|
11
|
+
style,
|
|
12
|
+
...props
|
|
13
|
+
}) => {
|
|
14
|
+
const [cardWidth, setCardWidth] = useState();
|
|
15
|
+
const [minHeight, setMinHeight] = useState();
|
|
16
|
+
const [detailsCardHeight, setDetailsCardHeight] = useState();
|
|
17
|
+
const cardListItemHeight = useSharedValue(undefined);
|
|
18
|
+
useEffect(() => {
|
|
19
|
+
if (!detailsCardHeight || !minHeight) {
|
|
20
|
+
return;
|
|
21
|
+
}
|
|
22
|
+
const newValue = expanded ? detailsCardHeight : minHeight;
|
|
23
|
+
if (cardListItemHeight.value === undefined) {
|
|
24
|
+
cardListItemHeight.value = newValue;
|
|
25
|
+
return;
|
|
26
|
+
}
|
|
27
|
+
cardListItemHeight.value = withTiming(newValue, {
|
|
28
|
+
duration: 250
|
|
29
|
+
});
|
|
30
|
+
}, [cardListItemHeight, detailsCardHeight, minHeight, expanded]);
|
|
31
|
+
const animatedCardWrapperStyle = useAnimatedStyle(() => {
|
|
32
|
+
if (cardListItemHeight.value !== undefined) {
|
|
33
|
+
return {
|
|
34
|
+
height: cardListItemHeight.value
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
if (lastItem || expanded) {
|
|
38
|
+
return {};
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
height: 60
|
|
42
|
+
};
|
|
43
|
+
}, [cardListItemHeight, lastItem, expanded]);
|
|
44
|
+
const cardWrapperStyle = {
|
|
45
|
+
minHeight: cardWidth ? cardWidth / CredentialCardRatio : undefined
|
|
46
|
+
};
|
|
47
|
+
const onContentLayout = useCallback(event => {
|
|
48
|
+
var _StyleSheet$flatten$b, _StyleSheet$flatten;
|
|
49
|
+
const {
|
|
50
|
+
width,
|
|
51
|
+
height
|
|
52
|
+
} = event.nativeEvent.layout;
|
|
53
|
+
setCardWidth(width);
|
|
54
|
+
if (!minHeight) {
|
|
55
|
+
setMinHeight(lastItem ? width / CredentialCardRatio : 60);
|
|
56
|
+
}
|
|
57
|
+
const borderWidth = (_StyleSheet$flatten$b = (_StyleSheet$flatten = StyleSheet.flatten(style)) === null || _StyleSheet$flatten === void 0 ? void 0 : _StyleSheet$flatten.borderWidth) !== null && _StyleSheet$flatten$b !== void 0 ? _StyleSheet$flatten$b : 0;
|
|
58
|
+
setDetailsCardHeight(height + 2 * borderWidth);
|
|
59
|
+
}, [lastItem, minHeight, style]);
|
|
60
|
+
return /*#__PURE__*/React.createElement(Animated.View, {
|
|
61
|
+
style: [styles.animatedWrapper, animatedCardWrapperStyle, style]
|
|
62
|
+
}, /*#__PURE__*/React.createElement(View, {
|
|
63
|
+
style: [styles.cardWrapper, cardWrapperStyle]
|
|
64
|
+
}, /*#__PURE__*/React.createElement(CredentialDetailsCard, _extends({
|
|
65
|
+
animate: false,
|
|
66
|
+
expanded: expanded,
|
|
67
|
+
onLayout: onContentLayout,
|
|
68
|
+
style: detailsCardStyle
|
|
69
|
+
}, props))));
|
|
70
|
+
};
|
|
71
|
+
const styles = StyleSheet.create({
|
|
72
|
+
animatedWrapper: {
|
|
73
|
+
...CredentialCardShadow
|
|
74
|
+
},
|
|
75
|
+
cardWrapper: {
|
|
76
|
+
borderRadius: 10,
|
|
77
|
+
height: '100%',
|
|
78
|
+
overflow: 'hidden'
|
|
79
|
+
}
|
|
80
|
+
});
|
|
81
|
+
export default CredentialDetailsCardListItem;
|
|
82
|
+
//# sourceMappingURL=credential-details-list-item.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","useCallback","useEffect","useState","StyleSheet","View","Animated","useAnimatedStyle","useSharedValue","withTiming","CredentialCardRatio","CredentialCardShadow","CredentialDetailsCard","CredentialDetailsCardListItem","detailsCardStyle","expanded","lastItem","style","props","cardWidth","setCardWidth","minHeight","setMinHeight","detailsCardHeight","setDetailsCardHeight","cardListItemHeight","undefined","newValue","value","duration","animatedCardWrapperStyle","height","cardWrapperStyle","onContentLayout","event","_StyleSheet$flatten$b","_StyleSheet$flatten","width","nativeEvent","layout","borderWidth","flatten","createElement","styles","animatedWrapper","cardWrapper","_extends","animate","onLayout","create","borderRadius","overflow"],"sources":["credential-details-list-item.tsx"],"sourcesContent":["import React, { FC, useCallback, useEffect, useState } from 'react';\nimport { LayoutChangeEvent, StyleProp, StyleSheet, View, ViewStyle } from 'react-native';\nimport Animated, { useAnimatedStyle, useSharedValue, withTiming } from 'react-native-reanimated';\n\nimport { CredentialCardRatio, CredentialCardShadow } from './credential-card';\nimport CredentialDetailsCard, { CredentialDetailsCardProps } from './credential-details-card';\n\nexport type CredentialDetailsCardListItemProps = Omit<CredentialDetailsCardProps, 'animate'> & {\n detailsCardStyle?: StyleProp<ViewStyle>;\n lastItem?: boolean;\n};\n\nconst CredentialDetailsCardListItem: FC<CredentialDetailsCardListItemProps> = ({\n detailsCardStyle,\n expanded,\n lastItem,\n style,\n ...props\n}) => {\n const [cardWidth, setCardWidth] = useState<number>();\n const [minHeight, setMinHeight] = useState<number>();\n const [detailsCardHeight, setDetailsCardHeight] = useState<number>();\n\n const cardListItemHeight = useSharedValue<number | undefined>(undefined);\n\n useEffect(() => {\n if (!detailsCardHeight || !minHeight) {\n return;\n }\n const newValue = expanded ? detailsCardHeight : minHeight;\n if (cardListItemHeight.value === undefined) {\n cardListItemHeight.value = newValue;\n return;\n }\n cardListItemHeight.value = withTiming(newValue, {\n duration: 250,\n });\n }, [cardListItemHeight, detailsCardHeight, minHeight, expanded]);\n\n const animatedCardWrapperStyle = useAnimatedStyle(() => {\n if (cardListItemHeight.value !== undefined) {\n return {\n height: cardListItemHeight.value,\n };\n }\n if (lastItem || expanded) {\n return {};\n }\n return {\n height: 60,\n };\n }, [cardListItemHeight, lastItem, expanded]);\n\n const cardWrapperStyle: ViewStyle = {\n minHeight: cardWidth ? cardWidth / CredentialCardRatio : undefined,\n }\n\n const onContentLayout = useCallback(\n (event: LayoutChangeEvent) => {\n const { width, height } = event.nativeEvent.layout;\n setCardWidth(width);\n if (!minHeight) {\n setMinHeight(lastItem ? width / CredentialCardRatio : 60);\n }\n const borderWidth = StyleSheet.flatten(style)?.borderWidth ?? 0;\n setDetailsCardHeight(height + 2 * borderWidth);\n },\n [lastItem, minHeight, style],\n );\n\n return (\n <Animated.View style={[styles.animatedWrapper, animatedCardWrapperStyle, style]}>\n <View style={[styles.cardWrapper, cardWrapperStyle]}>\n <CredentialDetailsCard\n animate={false}\n expanded={expanded}\n onLayout={onContentLayout}\n style={detailsCardStyle}\n {...props}\n />\n </View>\n </Animated.View>\n );\n};\n\nconst styles = StyleSheet.create({\n animatedWrapper: {\n ...CredentialCardShadow,\n },\n cardWrapper: {\n borderRadius: 10,\n height: '100%',\n overflow: 'hidden',\n },\n});\n\nexport default CredentialDetailsCardListItem;\n"],"mappings":";AAAA,OAAOA,KAAK,IAAQC,WAAW,EAAEC,SAAS,EAAEC,QAAQ,QAA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EAAAkC,QAAA;IACpBC,OAAO,EAAE,KAAM;IACfhC,QAAQ,EAAEA,QAAS;IACnBiC,QAAQ,EAAEf,eAAgB;IAC1BhB,KAAK,EAAEH;EAAiB,GACpBI,KAAK,CACV,CACG,CACO,CAAC;AAEpB,CAAC;AAED,MAAMyB,MAAM,GAAGvC,UAAU,CAAC6C,MAAM,CAAC;EAC/BL,eAAe,EAAE;IACf,GAAGjC;EACL,CAAC;EACDkC,WAAW,EAAE;IACXK,YAAY,EAAE,EAAE;IAChBnB,MAAM,EAAE,MAAM;IACdoB,QAAQ,EAAE;EACZ;AACF,CAAC,CAAC;AAEF,eAAetC,6BAA6B","ignoreList":[]}
|
|
@@ -0,0 +1,165 @@
|
|
|
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
|
+
import React, { useMemo } from 'react';
|
|
3
|
+
import { StyleSheet, View } from 'react-native';
|
|
4
|
+
import { concatTestID } from '../../../utils/testID';
|
|
5
|
+
import BlurView from '../../blur/blur-view';
|
|
6
|
+
import ImageOrComponent from '../../image/image-or-component';
|
|
7
|
+
import Typography from '../../text/typography';
|
|
8
|
+
import { useAppColorScheme } from '../../theme/color-scheme-context';
|
|
9
|
+
const CredentialHeader = ({
|
|
10
|
+
accessory,
|
|
11
|
+
blur = true,
|
|
12
|
+
color = '#5A69F3',
|
|
13
|
+
credentialDetailPrimary,
|
|
14
|
+
credentialDetailSecondary,
|
|
15
|
+
credentialDetailTestID,
|
|
16
|
+
credentialDetailErrorColor,
|
|
17
|
+
credentialName,
|
|
18
|
+
icon,
|
|
19
|
+
iconLabelColor = '#FFFFFF',
|
|
20
|
+
statusIcon,
|
|
21
|
+
style,
|
|
22
|
+
testID
|
|
23
|
+
}) => {
|
|
24
|
+
const colorScheme = useAppColorScheme();
|
|
25
|
+
const statusIconView = useMemo(() => {
|
|
26
|
+
if (!statusIcon) {
|
|
27
|
+
return undefined;
|
|
28
|
+
}
|
|
29
|
+
if (/*#__PURE__*/React.isValidElement(statusIcon)) {
|
|
30
|
+
return statusIcon;
|
|
31
|
+
} else {
|
|
32
|
+
const StatusIconComponent = statusIcon;
|
|
33
|
+
return /*#__PURE__*/React.createElement(StatusIconComponent, null);
|
|
34
|
+
}
|
|
35
|
+
}, [statusIcon]);
|
|
36
|
+
const accessoryView = useMemo(() => {
|
|
37
|
+
if (!accessory) {
|
|
38
|
+
return undefined;
|
|
39
|
+
}
|
|
40
|
+
if (/*#__PURE__*/React.isValidElement(accessory)) {
|
|
41
|
+
return accessory;
|
|
42
|
+
} else {
|
|
43
|
+
const AccessoryComponent = accessory;
|
|
44
|
+
return /*#__PURE__*/React.createElement(AccessoryComponent, null);
|
|
45
|
+
}
|
|
46
|
+
}, [accessory]);
|
|
47
|
+
const DetailText = useMemo(() => {
|
|
48
|
+
if (!credentialDetailPrimary) {
|
|
49
|
+
return undefined;
|
|
50
|
+
}
|
|
51
|
+
const commonProps = {
|
|
52
|
+
color: credentialDetailErrorColor ? colorScheme.error : colorScheme.text,
|
|
53
|
+
ellipsizeMode: 'tail',
|
|
54
|
+
numberOfLines: 1,
|
|
55
|
+
preset: 'xs',
|
|
56
|
+
style: styles.detailText
|
|
57
|
+
};
|
|
58
|
+
return /*#__PURE__*/React.createElement(View, {
|
|
59
|
+
style: styles.detailTextContainer
|
|
60
|
+
}, /*#__PURE__*/React.createElement(Typography, _extends({}, commonProps, {
|
|
61
|
+
testID: credentialDetailTestID !== null && credentialDetailTestID !== void 0 ? credentialDetailTestID : concatTestID(testID, 'primaryDetail')
|
|
62
|
+
}), credentialDetailPrimary), credentialDetailSecondary ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Typography, _extends({}, commonProps, {
|
|
63
|
+
style: styles.interpunct
|
|
64
|
+
}), '·'), /*#__PURE__*/React.createElement(Typography, _extends({}, commonProps, {
|
|
65
|
+
testID: concatTestID(testID, 'secondaryDetail')
|
|
66
|
+
}), credentialDetailSecondary)) : null);
|
|
67
|
+
}, [credentialDetailPrimary, credentialDetailSecondary, colorScheme, testID, credentialDetailErrorColor, credentialDetailTestID]);
|
|
68
|
+
return /*#__PURE__*/React.createElement(View, {
|
|
69
|
+
style: [styles.container, {
|
|
70
|
+
backgroundColor: blur ? undefined : colorScheme.white
|
|
71
|
+
}, style],
|
|
72
|
+
testID: testID
|
|
73
|
+
}, blur && /*#__PURE__*/React.createElement(BlurView, {
|
|
74
|
+
blurStyle: "strong",
|
|
75
|
+
style: StyleSheet.absoluteFill
|
|
76
|
+
}), /*#__PURE__*/React.createElement(View, {
|
|
77
|
+
style: [styles.imageContainer, {
|
|
78
|
+
backgroundColor: color
|
|
79
|
+
}]
|
|
80
|
+
}, icon ? /*#__PURE__*/React.createElement(ImageOrComponent, {
|
|
81
|
+
testID: concatTestID(testID, 'logoIcon'),
|
|
82
|
+
source: icon,
|
|
83
|
+
style: styles.image
|
|
84
|
+
}) : /*#__PURE__*/React.createElement(View, {
|
|
85
|
+
testID: concatTestID(testID, 'logoBackgroundColor', String(color))
|
|
86
|
+
}, /*#__PURE__*/React.createElement(View, {
|
|
87
|
+
testID: concatTestID(testID, 'logoTextColor', String(iconLabelColor))
|
|
88
|
+
}, /*#__PURE__*/React.createElement(Typography, {
|
|
89
|
+
testID: concatTestID(testID, 'logoName'),
|
|
90
|
+
color: iconLabelColor,
|
|
91
|
+
preset: "m",
|
|
92
|
+
style: styles.imagePlaceholder
|
|
93
|
+
}, credentialName.substring(0, 1))))), statusIconView && /*#__PURE__*/React.createElement(View, {
|
|
94
|
+
style: styles.statusIconWrapper
|
|
95
|
+
}, statusIconView), /*#__PURE__*/React.createElement(View, {
|
|
96
|
+
style: styles.text
|
|
97
|
+
}, /*#__PURE__*/React.createElement(Typography, {
|
|
98
|
+
testID: concatTestID(testID, 'name'),
|
|
99
|
+
color: colorScheme.text,
|
|
100
|
+
ellipsizeMode: 'tail',
|
|
101
|
+
numberOfLines: 1,
|
|
102
|
+
preset: "regular",
|
|
103
|
+
style: styles.nameText
|
|
104
|
+
}, credentialName), DetailText), accessoryView && /*#__PURE__*/React.createElement(View, {
|
|
105
|
+
style: styles.accessory
|
|
106
|
+
}, accessoryView));
|
|
107
|
+
};
|
|
108
|
+
const styles = StyleSheet.create({
|
|
109
|
+
accessory: {
|
|
110
|
+
alignItems: 'center',
|
|
111
|
+
height: 44,
|
|
112
|
+
justifyContent: 'center',
|
|
113
|
+
width: 44
|
|
114
|
+
},
|
|
115
|
+
container: {
|
|
116
|
+
alignItems: 'center',
|
|
117
|
+
flexDirection: 'row',
|
|
118
|
+
height: 60,
|
|
119
|
+
padding: 8
|
|
120
|
+
},
|
|
121
|
+
detailText: {
|
|
122
|
+
flex: 1,
|
|
123
|
+
opacity: 0.7
|
|
124
|
+
},
|
|
125
|
+
detailTextContainer: {
|
|
126
|
+
flexDirection: 'row',
|
|
127
|
+
marginTop: -1
|
|
128
|
+
},
|
|
129
|
+
image: {
|
|
130
|
+
height: 44,
|
|
131
|
+
width: 44
|
|
132
|
+
},
|
|
133
|
+
imageContainer: {
|
|
134
|
+
alignItems: 'center',
|
|
135
|
+
borderRadius: 5,
|
|
136
|
+
height: 44,
|
|
137
|
+
justifyContent: 'center',
|
|
138
|
+
marginRight: 8,
|
|
139
|
+
overflow: 'hidden',
|
|
140
|
+
width: 44
|
|
141
|
+
},
|
|
142
|
+
imagePlaceholder: {
|
|
143
|
+
paddingLeft: 1,
|
|
144
|
+
paddingTop: 3,
|
|
145
|
+
textTransform: 'uppercase'
|
|
146
|
+
},
|
|
147
|
+
interpunct: {
|
|
148
|
+
marginHorizontal: 12,
|
|
149
|
+
opacity: 0.5
|
|
150
|
+
},
|
|
151
|
+
nameText: {
|
|
152
|
+
marginTop: 2
|
|
153
|
+
},
|
|
154
|
+
statusIconWrapper: {
|
|
155
|
+
bottom: 3,
|
|
156
|
+
left: 36,
|
|
157
|
+
position: 'absolute'
|
|
158
|
+
},
|
|
159
|
+
text: {
|
|
160
|
+
flex: 1,
|
|
161
|
+
justifyContent: 'center'
|
|
162
|
+
}
|
|
163
|
+
});
|
|
164
|
+
export default CredentialHeader;
|
|
165
|
+
//# sourceMappingURL=credential-header.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","useMemo","StyleSheet","View","concatTestID","BlurView","ImageOrComponent","Typography","useAppColorScheme","CredentialHeader","accessory","blur","color","credentialDetailPrimary","credentialDetailSecondary","credentialDetailTestID","credentialDetailErrorColor","credentialName","icon","iconLabelColor","statusIcon","style","testID","colorScheme","statusIconView","undefined","isValidElement","StatusIconComponent","createElement","accessoryView","AccessoryComponent","DetailText","commonProps","error","text","ellipsizeMode","numberOfLines","preset","styles","detailText","detailTextContainer","_extends","Fragment","interpunct","container","backgroundColor","white","blurStyle","absoluteFill","imageContainer","source","image","String","imagePlaceholder","substring","statusIconWrapper","nameText","create","alignItems","height","justifyContent","width","flexDirection","padding","flex","opacity","marginTop","borderRadius","marginRight","overflow","paddingLeft","paddingTop","textTransform","marginHorizontal","bottom","left","position"],"sources":["credential-header.tsx"],"sourcesContent":["import React, { FC, useMemo } from 'react';\nimport { AccessibilityProps, ColorValue, StyleProp, StyleSheet, View, ViewStyle } from 'react-native';\n\nimport { concatTestID } from '../../../utils/testID';\nimport BlurView from '../../blur/blur-view';\nimport ImageOrComponent, { ImageOrComponentSource } from '../../image/image-or-component';\nimport Typography, { TypographyProps } from '../../text/typography';\nimport { useAppColorScheme } from '../../theme/color-scheme-context';\n\nexport interface CredentialHeaderProps extends AccessibilityProps {\n accessory?: React.ComponentType<any> | React.ReactElement;\n blur?: boolean;\n color?: ColorValue;\n credentialDetailPrimary?: string;\n credentialDetailSecondary?: string;\n credentialDetailTestID?: string;\n credentialDetailErrorColor?: boolean;\n credentialName: string;\n icon?: ImageOrComponentSource;\n iconLabelColor?: ColorValue;\n statusIcon?: React.ComponentType<any> | React.ReactElement;\n style?: StyleProp<ViewStyle>;\n testID?: string;\n}\n\nconst CredentialHeader: FC<CredentialHeaderProps> = ({\n accessory,\n blur = true,\n color = '#5A69F3',\n credentialDetailPrimary,\n credentialDetailSecondary,\n credentialDetailTestID,\n credentialDetailErrorColor,\n credentialName,\n icon,\n iconLabelColor = '#FFFFFF',\n statusIcon,\n style,\n testID,\n}) => {\n const colorScheme = useAppColorScheme();\n\n const statusIconView: React.ReactElement | undefined = useMemo(() => {\n if (!statusIcon) {\n return undefined;\n }\n if (React.isValidElement(statusIcon)) {\n return statusIcon;\n } else {\n const StatusIconComponent = statusIcon as React.ComponentType<any>;\n return <StatusIconComponent />;\n }\n }, [statusIcon]);\n\n const accessoryView: React.ReactElement | undefined = useMemo(() => {\n if (!accessory) {\n return undefined;\n }\n if (React.isValidElement(accessory)) {\n return accessory;\n } else {\n const AccessoryComponent = accessory as React.ComponentType<any>;\n return <AccessoryComponent />;\n }\n }, [accessory]);\n\n const DetailText = useMemo(() => {\n if (!credentialDetailPrimary) {\n return undefined;\n }\n const commonProps: TypographyProps = {\n color: credentialDetailErrorColor ? colorScheme.error : colorScheme.text,\n ellipsizeMode: 'tail',\n numberOfLines: 1,\n preset: 'xs',\n style: styles.detailText,\n };\n return (\n <View style={styles.detailTextContainer}>\n <Typography {...commonProps} testID={credentialDetailTestID ?? concatTestID(testID, 'primaryDetail')}>\n {credentialDetailPrimary}\n </Typography>\n {credentialDetailSecondary ? (\n <>\n <Typography {...commonProps} style={styles.interpunct}>\n {'·'}\n </Typography>\n <Typography {...commonProps} testID={concatTestID(testID, 'secondaryDetail')}>\n {credentialDetailSecondary}\n </Typography>\n </>\n ) : null}\n </View>\n );\n }, [\n credentialDetailPrimary,\n credentialDetailSecondary,\n colorScheme,\n testID,\n credentialDetailErrorColor,\n credentialDetailTestID,\n ]);\n\n return (\n <View style={[styles.container, { backgroundColor: blur ? undefined : colorScheme.white }, style]} testID={testID}>\n {blur && <BlurView blurStyle=\"strong\" style={StyleSheet.absoluteFill} />}\n <View style={[styles.imageContainer, { backgroundColor: color }]}>\n {icon ? (\n <ImageOrComponent testID={concatTestID(testID, 'logoIcon')} source={icon} style={styles.image} />\n ) : (\n <View testID={concatTestID(testID, 'logoBackgroundColor', String(color))}>\n <View testID={concatTestID(testID, 'logoTextColor', String(iconLabelColor))}>\n <Typography\n testID={concatTestID(testID, 'logoName')}\n color={iconLabelColor}\n preset=\"m\"\n style={styles.imagePlaceholder}>\n {credentialName.substring(0, 1)}\n </Typography>\n </View>\n </View>\n )}\n </View>\n {statusIconView && <View style={styles.statusIconWrapper}>{statusIconView}</View>}\n <View style={styles.text}>\n <Typography\n testID={concatTestID(testID, 'name')}\n color={colorScheme.text}\n ellipsizeMode={'tail'}\n numberOfLines={1}\n preset=\"regular\"\n style={styles.nameText}>\n {credentialName}\n </Typography>\n {DetailText}\n </View>\n {accessoryView && <View style={styles.accessory}>{accessoryView}</View>}\n </View>\n );\n};\n\nconst styles = StyleSheet.create({\n accessory: {\n alignItems: 'center',\n height: 44,\n justifyContent: 'center',\n width: 44,\n },\n container: {\n alignItems: 'center',\n flexDirection: 'row',\n height: 60,\n padding: 8,\n },\n detailText: {\n flex: 1,\n opacity: 0.7,\n },\n detailTextContainer: {\n flexDirection: 'row',\n marginTop: -1,\n },\n image: {\n height: 44,\n width: 44,\n },\n imageContainer: {\n alignItems: 'center',\n borderRadius: 5,\n height: 44,\n justifyContent: 'center',\n marginRight: 8,\n overflow: 'hidden',\n width: 44,\n },\n imagePlaceholder: {\n paddingLeft: 1,\n paddingTop: 3,\n textTransform: 'uppercase',\n },\n interpunct: {\n marginHorizontal: 12,\n opacity: 0.5,\n },\n nameText: {\n marginTop: 2,\n },\n statusIconWrapper: {\n bottom: 3,\n left: 36,\n position: 'absolute',\n },\n text: {\n flex: 1,\n justifyContent: 'center',\n },\n});\n\nexport default CredentialHeader;\n"],"mappings":";AAAA,OAAOA,KAAK,IAAQC,OAAO,QAAQ,OAAO;AAC1C,S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;EACDR,gBAAgB,EAAE;IAChBiB,WAAW,EAAE,CAAC;IACdC,UAAU,EAAE,CAAC;IACbC,aAAa,EAAE;EACjB,CAAC;EACD7B,UAAU,EAAE;IACV8B,gBAAgB,EAAE,EAAE;IACpBR,OAAO,EAAE;EACX,CAAC;EACDT,QAAQ,EAAE;IACRU,SAAS,EAAE;EACb,CAAC;EACDX,iBAAiB,EAAE;IACjBmB,MAAM,EAAE,CAAC;IACTC,IAAI,EAAE,EAAE;IACRC,QAAQ,EAAE;EACZ,CAAC;EACD1C,IAAI,EAAE;IACJ8B,IAAI,EAAE,CAAC;IACPJ,cAAc,EAAE;EAClB;AACF,CAAC,CAAC;AAEF,eAAenD,gBAAgB","ignoreList":[]}
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import React, { useState } from 'react';
|
|
2
|
+
import { StyleSheet, View } from 'react-native';
|
|
3
|
+
import Carousel from 'react-native-reanimated-carousel';
|
|
4
|
+
import Svg, { Circle } from 'react-native-svg';
|
|
5
|
+
import { concatTestID } from '../../../utils';
|
|
6
|
+
export let CarouselImageType = /*#__PURE__*/function (CarouselImageType) {
|
|
7
|
+
CarouselImageType["Barcode"] = "Barcode";
|
|
8
|
+
CarouselImageType["QrCode"] = "QrCode";
|
|
9
|
+
CarouselImageType["MRZ"] = "MRZ";
|
|
10
|
+
CarouselImageType["Photo"] = "Photo";
|
|
11
|
+
return CarouselImageType;
|
|
12
|
+
}({});
|
|
13
|
+
const CarouselComponent = ({
|
|
14
|
+
carouselSize,
|
|
15
|
+
imagesToRender,
|
|
16
|
+
style,
|
|
17
|
+
testID
|
|
18
|
+
}) => {
|
|
19
|
+
const [selectedDot, setSelectedDot] = useState(0);
|
|
20
|
+
if (!carouselSize.width || !carouselSize.height) {
|
|
21
|
+
return null;
|
|
22
|
+
}
|
|
23
|
+
const numberOfSlides = imagesToRender.length;
|
|
24
|
+
if (!numberOfSlides) {
|
|
25
|
+
return null;
|
|
26
|
+
}
|
|
27
|
+
return /*#__PURE__*/React.createElement(View, {
|
|
28
|
+
style: [styles.container, style]
|
|
29
|
+
}, /*#__PURE__*/React.createElement(Carousel, {
|
|
30
|
+
width: carouselSize.width,
|
|
31
|
+
onSnapToItem: setSelectedDot,
|
|
32
|
+
height: carouselSize.height,
|
|
33
|
+
enabled: numberOfSlides >= 2,
|
|
34
|
+
data: imagesToRender,
|
|
35
|
+
testID: testID,
|
|
36
|
+
panGestureHandlerProps: {
|
|
37
|
+
activeOffsetX: [-10, 10],
|
|
38
|
+
failOffsetY: [-10, 10]
|
|
39
|
+
},
|
|
40
|
+
renderItem: ({
|
|
41
|
+
item: {
|
|
42
|
+
type,
|
|
43
|
+
element
|
|
44
|
+
}
|
|
45
|
+
}) => /*#__PURE__*/React.createElement(View, {
|
|
46
|
+
style: styles.carouselItem
|
|
47
|
+
}, /*#__PURE__*/React.createElement(View, {
|
|
48
|
+
style: [styles[type]]
|
|
49
|
+
}, element))
|
|
50
|
+
}), numberOfSlides >= 2 ? /*#__PURE__*/React.createElement(View, {
|
|
51
|
+
style: styles.pageDotContainer
|
|
52
|
+
}, imagesToRender.map((_, index) => /*#__PURE__*/React.createElement(Svg, {
|
|
53
|
+
key: index,
|
|
54
|
+
width: "8",
|
|
55
|
+
height: "8",
|
|
56
|
+
viewBox: "0 0 8 8",
|
|
57
|
+
fill: "none"
|
|
58
|
+
}, /*#__PURE__*/React.createElement(Circle, {
|
|
59
|
+
testID: concatTestID(testID, 'dot', index.toString()),
|
|
60
|
+
cx: "4.5",
|
|
61
|
+
cy: "4",
|
|
62
|
+
r: "4",
|
|
63
|
+
fill: "white",
|
|
64
|
+
fillOpacity: selectedDot === index ? 0.8 : 0.2
|
|
65
|
+
})))) : null);
|
|
66
|
+
};
|
|
67
|
+
const styles = StyleSheet.create({
|
|
68
|
+
// eslint-disable-next-line react-native/no-unused-styles
|
|
69
|
+
Barcode: {
|
|
70
|
+
borderRadius: 4,
|
|
71
|
+
height: '50%',
|
|
72
|
+
width: '80%'
|
|
73
|
+
},
|
|
74
|
+
// eslint-disable-next-line react-native/no-unused-styles
|
|
75
|
+
MRZ: {
|
|
76
|
+
height: '50%',
|
|
77
|
+
width: '100%'
|
|
78
|
+
},
|
|
79
|
+
// eslint-disable-next-line react-native/no-unused-styles
|
|
80
|
+
Photo: {
|
|
81
|
+
aspectRatio: 1,
|
|
82
|
+
borderColor: '#FFFFFF',
|
|
83
|
+
borderRadius: 100,
|
|
84
|
+
borderWidth: 2,
|
|
85
|
+
height: '70%',
|
|
86
|
+
overflow: 'hidden'
|
|
87
|
+
},
|
|
88
|
+
// eslint-disable-next-line react-native/no-unused-styles
|
|
89
|
+
QrCode: {
|
|
90
|
+
aspectRatio: 1,
|
|
91
|
+
borderRadius: 4,
|
|
92
|
+
height: '70%'
|
|
93
|
+
},
|
|
94
|
+
carouselItem: {
|
|
95
|
+
alignItems: 'center',
|
|
96
|
+
height: '100%',
|
|
97
|
+
justifyContent: 'center',
|
|
98
|
+
width: '100%'
|
|
99
|
+
},
|
|
100
|
+
container: {
|
|
101
|
+
flex: 1,
|
|
102
|
+
position: 'absolute',
|
|
103
|
+
width: '100%'
|
|
104
|
+
},
|
|
105
|
+
pageDotContainer: {
|
|
106
|
+
bottom: 15,
|
|
107
|
+
columnGap: 8,
|
|
108
|
+
flexDirection: 'row',
|
|
109
|
+
justifyContent: 'center'
|
|
110
|
+
}
|
|
111
|
+
});
|
|
112
|
+
export default CarouselComponent;
|
|
113
|
+
//# sourceMappingURL=credential-image-carousel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","useState","StyleSheet","View","Carousel","Svg","Circle","concatTestID","CarouselImageType","CarouselComponent","carouselSize","imagesToRender","style","testID","selectedDot","setSelectedDot","width","height","numberOfSlides","length","createElement","styles","container","onSnapToItem","enabled","data","panGestureHandlerProps","activeOffsetX","failOffsetY","renderItem","item","type","element","carouselItem","pageDotContainer","map","_","index","key","viewBox","fill","toString","cx","cy","r","fillOpacity","create","Barcode","borderRadius","MRZ","Photo","aspectRatio","borderColor","borderWidth","overflow","QrCode","alignItems","justifyContent","flex","position","bottom","columnGap","flexDirection"],"sources":["credential-image-carousel.tsx"],"sourcesContent":["import React, { FC, useState } from 'react';\nimport { StyleProp, StyleSheet, View, ViewStyle } from 'react-native';\nimport Carousel from 'react-native-reanimated-carousel';\nimport Svg, { Circle } from 'react-native-svg';\n\nimport { concatTestID } from '../../../utils';\n\nexport enum CarouselImageType {\n Barcode = 'Barcode',\n QrCode = 'QrCode',\n MRZ = 'MRZ',\n Photo = 'Photo',\n}\n\nexport type CarouselImage = {\n type: CarouselImageType;\n element: React.ReactElement;\n};\n\ntype CarouselProps = {\n carouselSize: { width: number; height: number };\n imagesToRender: CarouselImage[];\n style?: StyleProp<ViewStyle>;\n testID?: string;\n};\n\nconst CarouselComponent: FC<CarouselProps> = ({ carouselSize, imagesToRender, style, testID }) => {\n const [selectedDot, setSelectedDot] = useState(0);\n\n if (!carouselSize.width || !carouselSize.height) {\n return null;\n }\n\n const numberOfSlides = imagesToRender.length;\n\n if (!numberOfSlides) {\n return null;\n }\n\n return (\n <View style={[styles.container, style]}>\n <Carousel\n width={carouselSize.width}\n onSnapToItem={setSelectedDot}\n height={carouselSize.height}\n enabled={numberOfSlides >= 2}\n data={imagesToRender}\n testID={testID}\n panGestureHandlerProps={{\n activeOffsetX: [-10, 10],\n failOffsetY: [-10, 10],\n }}\n renderItem={({ item: { type, element } }) => (\n <View style={styles.carouselItem}>\n <View style={[styles[type]]}>{element}</View>\n </View>\n )}\n />\n {numberOfSlides >= 2 ? (\n <View style={styles.pageDotContainer}>\n {imagesToRender.map((_, index) => (\n <Svg key={index} width=\"8\" height=\"8\" viewBox=\"0 0 8 8\" fill=\"none\">\n <Circle\n testID={concatTestID(testID, 'dot', index.toString())}\n cx=\"4.5\"\n cy=\"4\"\n r=\"4\"\n fill=\"white\"\n fillOpacity={selectedDot === index ? 0.8 : 0.2}\n />\n </Svg>\n ))}\n </View>\n ) : null}\n </View>\n );\n};\n\nconst styles = StyleSheet.create({\n // eslint-disable-next-line react-native/no-unused-styles\n Barcode: { borderRadius: 4, height: '50%', width: '80%' },\n // eslint-disable-next-line react-native/no-unused-styles\n MRZ: {\n height: '50%',\n width: '100%',\n },\n // eslint-disable-next-line react-native/no-unused-styles\n Photo: {\n aspectRatio: 1,\n borderColor: '#FFFFFF',\n borderRadius: 100,\n borderWidth: 2,\n height: '70%',\n overflow: 'hidden',\n },\n // eslint-disable-next-line react-native/no-unused-styles\n QrCode: { aspectRatio: 1, borderRadius: 4, height: '70%' },\n carouselItem: {\n alignItems: 'center',\n height: '100%',\n justifyContent: 'center',\n width: '100%',\n },\n container: {\n flex: 1,\n position: 'absolute',\n width: '100%',\n },\n pageDotContainer: {\n bottom: 15,\n columnGap: 8,\n flexDirection: 'row',\n justifyContent: 'center',\n },\n});\n\nexport default CarouselComponent;\n"],"mappings":"AAAA,OAAOA,KAAK,IAAQC,QAAQ,QAAQ,OAAO;AAC3C,SAAoBC,UAAU,EAAEC,IAAI,QAAmB,cAAc;AACrE,OAAOC,QAAQ,MAAM,kCAAkC;AACvD,OAAOC,GAAG,IAAIC,MAAM,QAAQ,kBAAkB;AAE9C,SAASC,YAAY,QAAQ,gBAAgB;AAE7C,WAAYC,iBAAiB,0BAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAA,OAAjBA,iBAAiB;AAAA;AAmB7B,MAAMC,iBAAoC,GAAGA,CAAC;EAAEC,YAAY;EAAEC,cAAc;EAAEC,KAAK;EAAEC;AAAO,CAAC,KAAK;EAChG,MAAM,CAACC,WAAW,EAAEC,cAAc,CAAC,GAAGd,QAAQ,CAAC,CAAC,CAAC;EAEjD,IAAI,CAACS,YAAY,CAACM,KAAK,IAAI,CAACN,YAAY,CAACO,MAAM,EAAE;IAC/C,OAAO,IAAI;EACb;EAEA,MAAMC,cAAc,GAAGP,cAAc,CAACQ,MAAM;EAE5C,IA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 @@
|
|
|
1
|
+
import CredentialCard, { CredentialCardRatio, CredentialCardShadow } from './credential-card';
|
|
2
|
+
import CredentialDetailsCard from './credential-details-card';
|
|
3
|
+
import CredentialDetailsCardListItem from './credential-details-list-item';
|
|
4
|
+
import CredentialHeader from './credential-header';
|
|
5
|
+
import { CarouselImageType } from './credential-image-carousel';
|
|
6
|
+
export { CarouselImageType };
|
|
7
|
+
export { CredentialCard, CredentialCardRatio, CredentialCardShadow };
|
|
8
|
+
export { CredentialDetailsCard };
|
|
9
|
+
export { CredentialDetailsCardListItem };
|
|
10
|
+
export { CredentialHeader };
|
|
11
|
+
//# sourceMappingURL=index.js.map
|