@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,179 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = exports.CredentialCardShadow = exports.CredentialCardRatio = void 0;
|
|
7
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
var _testID = require("../../../utils/testID");
|
|
10
|
+
var _accessibilityHistoryWrappers = require("../../accessibility/accessibilityHistoryWrappers");
|
|
11
|
+
var _blurView = _interopRequireDefault(require("../../blur/blur-view"));
|
|
12
|
+
var _imageOrComponent = _interopRequireDefault(require("../../image/image-or-component"));
|
|
13
|
+
var _typography = _interopRequireDefault(require("../../text/typography"));
|
|
14
|
+
var _colorSchemeContext = require("../../theme/color-scheme-context");
|
|
15
|
+
var _credentialHeader = _interopRequireDefault(require("./credential-header"));
|
|
16
|
+
var _credentialImageCarousel = _interopRequireDefault(require("./credential-image-carousel"));
|
|
17
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
18
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
19
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
20
|
+
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); }
|
|
21
|
+
const CredentialCardShadow = exports.CredentialCardShadow = {
|
|
22
|
+
shadowColor: '#10274226',
|
|
23
|
+
shadowOffset: {
|
|
24
|
+
height: 5,
|
|
25
|
+
width: 0
|
|
26
|
+
},
|
|
27
|
+
shadowOpacity: 1,
|
|
28
|
+
shadowRadius: 7
|
|
29
|
+
};
|
|
30
|
+
const CredentialCardRatio = exports.CredentialCardRatio = 18 / 11;
|
|
31
|
+
const CredentialCard = ({
|
|
32
|
+
cardCarouselImages = [],
|
|
33
|
+
cardImage,
|
|
34
|
+
color = '#5A69F3',
|
|
35
|
+
credentialId,
|
|
36
|
+
header,
|
|
37
|
+
notice,
|
|
38
|
+
onCardPress,
|
|
39
|
+
onHeaderPress,
|
|
40
|
+
style,
|
|
41
|
+
testID
|
|
42
|
+
}) => {
|
|
43
|
+
var _header$color;
|
|
44
|
+
const colorScheme = (0, _colorSchemeContext.useAppColorScheme)();
|
|
45
|
+
const [tappableHeaderHeight, setTappableHeaderHeight] = (0, _react.useState)();
|
|
46
|
+
const [cardSize, setCardSize] = (0, _react.useState)();
|
|
47
|
+
const onCardLayoutChange = (0, _react.useCallback)(event => {
|
|
48
|
+
const {
|
|
49
|
+
width,
|
|
50
|
+
height
|
|
51
|
+
} = event.nativeEvent.layout;
|
|
52
|
+
setCardSize({
|
|
53
|
+
width,
|
|
54
|
+
height
|
|
55
|
+
});
|
|
56
|
+
}, []);
|
|
57
|
+
const onHeaderLayoutChange = (0, _react.useCallback)(event => {
|
|
58
|
+
setTappableHeaderHeight(event.nativeEvent.layout.height);
|
|
59
|
+
}, []);
|
|
60
|
+
const headerPressHandler = (0, _react.useCallback)(() => {
|
|
61
|
+
onHeaderPress === null || onHeaderPress === void 0 || onHeaderPress(credentialId);
|
|
62
|
+
}, [credentialId, onHeaderPress]);
|
|
63
|
+
const cardPressHandler = (0, _react.useCallback)(() => {
|
|
64
|
+
onCardPress === null || onCardPress === void 0 || onCardPress(credentialId);
|
|
65
|
+
}, [credentialId, onCardPress]);
|
|
66
|
+
const noticeIconView = (0, _react.useMemo)(() => {
|
|
67
|
+
if (!(notice !== null && notice !== void 0 && notice.noticeIcon)) {
|
|
68
|
+
return undefined;
|
|
69
|
+
}
|
|
70
|
+
if (/*#__PURE__*/_react.default.isValidElement(notice.noticeIcon)) {
|
|
71
|
+
return notice.noticeIcon;
|
|
72
|
+
} else {
|
|
73
|
+
const NoticeIconComponent = notice.noticeIcon;
|
|
74
|
+
return /*#__PURE__*/_react.default.createElement(NoticeIconComponent, null);
|
|
75
|
+
}
|
|
76
|
+
}, [notice === null || notice === void 0 ? void 0 : notice.noticeIcon]);
|
|
77
|
+
const shouldShowCarousel = (cardSize === null || cardSize === void 0 ? void 0 : cardSize.width) && cardSize.height;
|
|
78
|
+
return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
79
|
+
onLayout: onCardLayoutChange,
|
|
80
|
+
style: [styles.card, style],
|
|
81
|
+
testID: testID
|
|
82
|
+
}, cardImage ? 'imageSource' in cardImage ? /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
83
|
+
style: styles.cardImage
|
|
84
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.Image, {
|
|
85
|
+
testID: (0, _testID.concatTestID)(testID, 'imageSource'),
|
|
86
|
+
source: cardImage.imageSource,
|
|
87
|
+
style: styles.image
|
|
88
|
+
})) : /*#__PURE__*/_react.default.createElement(_imageOrComponent.default, {
|
|
89
|
+
testID: (0, _testID.concatTestID)(testID, 'cardImage'),
|
|
90
|
+
source: cardImage,
|
|
91
|
+
style: styles.cardImage
|
|
92
|
+
}) : /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
93
|
+
testID: (0, _testID.concatTestID)(testID, 'cardBackgroundColor', String(color)),
|
|
94
|
+
style: [styles.cardImage, {
|
|
95
|
+
backgroundColor: color
|
|
96
|
+
}]
|
|
97
|
+
}), onCardPress && /*#__PURE__*/_react.default.createElement(_accessibilityHistoryWrappers.TouchableOpacity, {
|
|
98
|
+
style: styles.cardButton,
|
|
99
|
+
onPress: cardPressHandler
|
|
100
|
+
}), shouldShowCarousel ? /*#__PURE__*/_react.default.createElement(_credentialImageCarousel.default, {
|
|
101
|
+
style: {
|
|
102
|
+
marginTop: tappableHeaderHeight !== null && tappableHeaderHeight !== void 0 ? tappableHeaderHeight : 0
|
|
103
|
+
},
|
|
104
|
+
imagesToRender: cardCarouselImages !== null && cardCarouselImages !== void 0 ? cardCarouselImages : [],
|
|
105
|
+
carouselSize: {
|
|
106
|
+
width: cardSize.width,
|
|
107
|
+
height: cardSize.height - (tappableHeaderHeight !== null && tappableHeaderHeight !== void 0 ? tappableHeaderHeight : 0)
|
|
108
|
+
},
|
|
109
|
+
testID: (0, _testID.concatTestID)(testID, 'carousel')
|
|
110
|
+
}) : null, /*#__PURE__*/_react.default.createElement(_accessibilityHistoryWrappers.TouchableOpacity, {
|
|
111
|
+
onLayout: onHeaderLayoutChange,
|
|
112
|
+
activeOpacity: 0.9,
|
|
113
|
+
disabled: !onHeaderPress,
|
|
114
|
+
onPress: headerPressHandler,
|
|
115
|
+
style: styles.header
|
|
116
|
+
}, /*#__PURE__*/_react.default.createElement(_credentialHeader.default, _extends({}, header, {
|
|
117
|
+
color: (_header$color = header.color) !== null && _header$color !== void 0 ? _header$color : color,
|
|
118
|
+
testID: (0, _testID.concatTestID)(testID, 'header')
|
|
119
|
+
}))), notice && /*#__PURE__*/_react.default.createElement(_blurView.default, {
|
|
120
|
+
blurStyle: "soft",
|
|
121
|
+
style: [styles.notice],
|
|
122
|
+
testID: (0, _testID.concatTestID)(testID, 'notice')
|
|
123
|
+
}, noticeIconView && /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
124
|
+
style: styles.noticeIcon
|
|
125
|
+
}, noticeIconView), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
126
|
+
style: styles.noticeTextWrapper
|
|
127
|
+
}, /*#__PURE__*/_react.default.createElement(_typography.default, {
|
|
128
|
+
color: colorScheme.text,
|
|
129
|
+
preset: "xs/line-height-small",
|
|
130
|
+
style: styles.noticeText,
|
|
131
|
+
testID: (0, _testID.concatTestID)(testID, 'notice.text')
|
|
132
|
+
}, notice.text))));
|
|
133
|
+
};
|
|
134
|
+
const styles = _reactNative.StyleSheet.create({
|
|
135
|
+
card: {
|
|
136
|
+
borderRadius: 10,
|
|
137
|
+
overflow: 'hidden'
|
|
138
|
+
},
|
|
139
|
+
cardButton: {
|
|
140
|
+
height: '100%',
|
|
141
|
+
position: 'absolute',
|
|
142
|
+
width: '100%'
|
|
143
|
+
},
|
|
144
|
+
cardImage: {
|
|
145
|
+
aspectRatio: CredentialCardRatio,
|
|
146
|
+
width: '100%'
|
|
147
|
+
},
|
|
148
|
+
header: {
|
|
149
|
+
position: 'absolute',
|
|
150
|
+
top: 0,
|
|
151
|
+
width: '100%'
|
|
152
|
+
},
|
|
153
|
+
image: {
|
|
154
|
+
height: '100%',
|
|
155
|
+
width: '100%'
|
|
156
|
+
},
|
|
157
|
+
notice: {
|
|
158
|
+
bottom: 0,
|
|
159
|
+
columnGap: 6,
|
|
160
|
+
flexDirection: 'row',
|
|
161
|
+
justifyContent: 'flex-start',
|
|
162
|
+
paddingBottom: 6,
|
|
163
|
+
paddingHorizontal: 12,
|
|
164
|
+
paddingTop: 2,
|
|
165
|
+
position: 'absolute',
|
|
166
|
+
width: '100%'
|
|
167
|
+
},
|
|
168
|
+
noticeIcon: {
|
|
169
|
+
marginTop: 4
|
|
170
|
+
},
|
|
171
|
+
noticeText: {
|
|
172
|
+
marginVertical: 5
|
|
173
|
+
},
|
|
174
|
+
noticeTextWrapper: {
|
|
175
|
+
flex: 1
|
|
176
|
+
}
|
|
177
|
+
});
|
|
178
|
+
var _default = exports.default = CredentialCard;
|
|
179
|
+
//# sourceMappingURL=credential-card.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_testID","_accessibilityHistoryWrappers","_blurView","_interopRequireDefault","_imageOrComponent","_typography","_colorSchemeContext","_credentialHeader","_credentialImageCarousel","e","__esModule","default","_getRequireWildcardCache","WeakMap","r","t","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","_extends","assign","bind","arguments","length","apply","CredentialCardShadow","exports","shadowColor","shadowOffset","height","width","shadowOpacity","shadowRadius","CredentialCardRatio","CredentialCard","cardCarouselImages","cardImage","color","credentialId","header","notice","onCardPress","onHeaderPress","style","testID","_header$color","colorScheme","useAppColorScheme","tappableHeaderHeight","setTappableHeaderHeight","useState","cardSize","setCardSize","onCardLayoutChange","useCallback","event","nativeEvent","layout","onHeaderLayoutChange","headerPressHandler","cardPressHandler","noticeIconView","useMemo","noticeIcon","undefined","React","isValidElement","NoticeIconComponent","createElement","shouldShowCarousel","View","onLayout","styles","card","Image","concatTestID","source","imageSource","image","String","backgroundColor","TouchableOpacity","cardButton","onPress","marginTop","imagesToRender","carouselSize","activeOpacity","disabled","blurStyle","noticeTextWrapper","text","preset","noticeText","StyleSheet","create","borderRadius","overflow","position","aspectRatio","top","bottom","columnGap","flexDirection","justifyContent","paddingBottom","paddingHorizontal","paddingTop","marginVertical","flex","_default"],"sources":["credential-card.tsx"],"sourcesContent":["import React, { FC, useCallback, useMemo, useState } from 'react';\nimport { ColorValue, Image, LayoutChangeEvent, StyleProp, StyleSheet, View, ViewStyle } from 'react-native';\n\nimport { concatTestID } from '../../../utils/testID';\nimport { TouchableOpacity } from '../../accessibility/accessibilityHistoryWrappers';\nimport BlurView from '../../blur/blur-view';\nimport ImageOrComponent, { ImageOrComponentSource } from '../../image/image-or-component';\nimport Typography from '../../text/typography';\nimport { useAppColorScheme } from '../../theme/color-scheme-context';\nimport CredentialHeader, { CredentialHeaderProps } from './credential-header';\nimport CarouselComponent, { CarouselImage } from './credential-image-carousel';\n\nexport const CredentialCardShadow: Pick<ViewStyle, 'shadowColor' | 'shadowOffset' | 'shadowOpacity' | 'shadowRadius'> =\n {\n shadowColor: '#10274226',\n shadowOffset: {\n height: 5,\n width: 0,\n },\n shadowOpacity: 1,\n shadowRadius: 7,\n };\n\nexport const CredentialCardRatio = 18 / 11;\n\nexport type CredentialCardNotice = {\n text: string;\n noticeIcon?: React.ComponentType<any> | React.ReactElement;\n};\n\nexport type CredentialCardProps = {\n cardCarouselImages?: CarouselImage[];\n cardImage?: ImageOrComponentSource;\n color?: ColorValue;\n credentialId?: string;\n header: CredentialHeaderProps;\n notice?: CredentialCardNotice;\n onCardPress?: (credentialId?: string) => void;\n onHeaderPress?: (credentialId?: string) => void;\n style?: StyleProp<ViewStyle>;\n testID?: string;\n};\n\nconst CredentialCard: FC<CredentialCardProps> = ({\n cardCarouselImages = [],\n cardImage,\n color = '#5A69F3',\n credentialId,\n header,\n notice,\n onCardPress,\n onHeaderPress,\n style,\n testID,\n}) => {\n const colorScheme = useAppColorScheme();\n const [tappableHeaderHeight, setTappableHeaderHeight] = useState<number>();\n const [cardSize, setCardSize] = useState<{ height: number; width: number }>();\n\n const onCardLayoutChange = useCallback((event: LayoutChangeEvent) => {\n const { width, height } = event.nativeEvent.layout;\n setCardSize({ width, height });\n }, []);\n\n const onHeaderLayoutChange = useCallback((event: LayoutChangeEvent) => {\n setTappableHeaderHeight(event.nativeEvent.layout.height);\n }, []);\n\n const headerPressHandler = useCallback(() => {\n onHeaderPress?.(credentialId);\n }, [credentialId, onHeaderPress]);\n\n const cardPressHandler = useCallback(() => {\n onCardPress?.(credentialId);\n }, [credentialId, onCardPress]);\n\n const noticeIconView: React.ReactElement | undefined = useMemo(() => {\n if (!notice?.noticeIcon) {\n return undefined;\n }\n if (React.isValidElement(notice.noticeIcon)) {\n return notice.noticeIcon;\n } else {\n const NoticeIconComponent = notice.noticeIcon as React.ComponentType<any>;\n return <NoticeIconComponent />;\n }\n }, [notice?.noticeIcon]);\n\n const shouldShowCarousel = cardSize?.width && cardSize.height;\n return (\n <View onLayout={onCardLayoutChange} style={[styles.card, style]} testID={testID}>\n {cardImage ? (\n 'imageSource' in cardImage ? (\n <View style={styles.cardImage}>\n <Image testID={concatTestID(testID, 'imageSource')} source={cardImage.imageSource} style={styles.image} />\n </View>\n ) : (\n <ImageOrComponent testID={concatTestID(testID, 'cardImage')} source={cardImage} style={styles.cardImage} />\n )\n ) : (\n <View\n testID={concatTestID(testID, 'cardBackgroundColor', String(color))}\n style={[styles.cardImage, { backgroundColor: color }]}\n />\n )}\n {onCardPress && <TouchableOpacity style={styles.cardButton} onPress={cardPressHandler} />}\n {shouldShowCarousel ? (\n <CarouselComponent\n style={{ marginTop: tappableHeaderHeight ?? 0 }}\n imagesToRender={cardCarouselImages ?? []}\n carouselSize={{\n width: cardSize.width,\n height: cardSize.height - (tappableHeaderHeight ?? 0),\n }}\n testID={concatTestID(testID, 'carousel')}\n />\n ) : null}\n <TouchableOpacity\n onLayout={onHeaderLayoutChange}\n activeOpacity={0.9}\n disabled={!onHeaderPress}\n onPress={headerPressHandler}\n style={styles.header}>\n <CredentialHeader {...header} color={header.color ?? color} testID={concatTestID(testID, 'header')} />\n </TouchableOpacity>\n {notice && (\n <BlurView blurStyle=\"soft\" style={[styles.notice]} testID={concatTestID(testID, 'notice')}>\n {noticeIconView && <View style={styles.noticeIcon}>{noticeIconView}</View>}\n <View style={styles.noticeTextWrapper}>\n <Typography\n color={colorScheme.text}\n preset=\"xs/line-height-small\"\n style={styles.noticeText}\n testID={concatTestID(testID, 'notice.text')}>\n {notice.text}\n </Typography>\n </View>\n </BlurView>\n )}\n </View>\n );\n};\n\nconst styles = StyleSheet.create({\n card: {\n borderRadius: 10,\n overflow: 'hidden',\n },\n cardButton: {\n height: '100%',\n position: 'absolute',\n width: '100%',\n },\n cardImage: {\n aspectRatio: CredentialCardRatio,\n width: '100%',\n },\n header: {\n position: 'absolute',\n top: 0,\n width: '100%',\n },\n image: {\n height: '100%',\n width: '100%',\n },\n notice: {\n bottom: 0,\n columnGap: 6,\n flexDirection: 'row',\n justifyContent: 'flex-start',\n paddingBottom: 6,\n paddingHorizontal: 12,\n paddingTop: 2,\n position: 'absolute',\n width: '100%',\n },\n noticeIcon: {\n marginTop: 4,\n },\n noticeText: {\n marginVertical: 5,\n },\n noticeTextWrapper: {\n flex: 1,\n },\n});\n\nexport default CredentialCard;\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAEA,IAAAE,OAAA,GAAAF,OAAA;AACA,IAAAG,6BAAA,GAAAH,OAAA;AACA,IAAAI,SAAA,GAAAC,sBAAA,CAAAL,OAAA;AACA,IAAAM,iBAAA,GAAAD,sBAAA,CAAAL,OAAA;AACA,IAAAO,WAAA,GAAAF,sBAAA,CAAAL,OAAA;AACA,IAAAQ,mBAAA,GAAAR,OAAA;AACA,IAAAS,iBAAA,GAAAJ,sBAAA,CAAAL,OAAA;AACA,IAAAU,wBAAA,GAAAL,sBAAA,CAAAL,OAAA;AAA+E,SAAAK,uBAAAM,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAG,yBAAAH,CAAA,6BAAAI,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAD,wBAAA,YAAAA,CAAAH,CAAA,WAAAA,CAAA,GAAAM,CAAA,GAAAD,CAAA,KAAAL,CAAA;AAAA,SAAAZ,wBAAAY,CAAA,EAAAK,CAAA,SAAAA,CAAA,IAAAL,CAAA,IAAAA,CAAA,CAAAC,UAAA,SAAAD,CAAA,eAAAA,CAAA,uBAA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perty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
var _reactNativeReanimated = _interopRequireWildcard(require("react-native-reanimated"));
|
|
10
|
+
var _testID = require("../../../utils/testID");
|
|
11
|
+
var _buttons = require("../../buttons");
|
|
12
|
+
var _credential = require("../../icons/credential");
|
|
13
|
+
var _colorSchemeContext = require("../../theme/color-scheme-context");
|
|
14
|
+
var _credentialAttributeItem = _interopRequireDefault(require("../credential-attribute-item"));
|
|
15
|
+
var _credentialCard = _interopRequireDefault(require("./credential-card"));
|
|
16
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
17
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
18
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
19
|
+
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); }
|
|
20
|
+
const PREVIEW_ATTRIBUTES_COUNT = 3;
|
|
21
|
+
const CredentialDetailsCard = ({
|
|
22
|
+
animate = true,
|
|
23
|
+
attributes,
|
|
24
|
+
card,
|
|
25
|
+
expanded,
|
|
26
|
+
footer,
|
|
27
|
+
onImagePreview,
|
|
28
|
+
onAttributeSelected,
|
|
29
|
+
style,
|
|
30
|
+
showAllButtonLabel,
|
|
31
|
+
testID,
|
|
32
|
+
...viewProps
|
|
33
|
+
}) => {
|
|
34
|
+
var _header$accessory;
|
|
35
|
+
const colorScheme = (0, _colorSchemeContext.useAppColorScheme)();
|
|
36
|
+
const [previewAttributesHeight, setPreviewAttributesHeight] = (0, _react.useState)();
|
|
37
|
+
const [fullAttributesHeight, setFullAttributesHeight] = (0, _react.useState)();
|
|
38
|
+
const [buttonViewHeight, setButtonViewHeight] = (0, _react.useState)();
|
|
39
|
+
const [allAttributesRendered, setAllAttributesRendered] = (0, _react.useState)(attributes && attributes.length <= PREVIEW_ATTRIBUTES_COUNT || !showAllButtonLabel);
|
|
40
|
+
const CaretIcon = expanded ? _credential.UpIcon : _credential.DownIcon;
|
|
41
|
+
const currentHeight = (0, _reactNativeReanimated.useSharedValue)(undefined);
|
|
42
|
+
const previewAttributes = attributes ? attributes.slice(0, PREVIEW_ATTRIBUTES_COUNT) : [];
|
|
43
|
+
const extraAttributes = (0, _react.useMemo)(() => attributes ? attributes.slice(PREVIEW_ATTRIBUTES_COUNT) : [], [attributes]);
|
|
44
|
+
(0, _react.useEffect)(() => {
|
|
45
|
+
if (!extraAttributes || allAttributesRendered) {
|
|
46
|
+
setButtonViewHeight(0);
|
|
47
|
+
}
|
|
48
|
+
}, [extraAttributes, allAttributesRendered]);
|
|
49
|
+
(0, _react.useEffect)(() => {
|
|
50
|
+
if (extraAttributes.length === 0) {
|
|
51
|
+
const viewStyle = _reactNative.StyleSheet.flatten([styles.allAttributesWrapper, footer && styles.allAttributesWrapperWithFooter]);
|
|
52
|
+
const padding = viewStyle.paddingBottom;
|
|
53
|
+
setFullAttributesHeight(padding);
|
|
54
|
+
}
|
|
55
|
+
}, [extraAttributes, footer]);
|
|
56
|
+
(0, _react.useEffect)(() => {
|
|
57
|
+
if (previewAttributesHeight === undefined || buttonViewHeight === undefined) {
|
|
58
|
+
return;
|
|
59
|
+
}
|
|
60
|
+
if (allAttributesRendered && fullAttributesHeight === undefined) {
|
|
61
|
+
return;
|
|
62
|
+
}
|
|
63
|
+
const additionalAttributesHeight = fullAttributesHeight !== null && fullAttributesHeight !== void 0 ? fullAttributesHeight : 0;
|
|
64
|
+
const additionalHeight = allAttributesRendered ? additionalAttributesHeight : buttonViewHeight;
|
|
65
|
+
const newHeight = expanded || !animate ? previewAttributesHeight + additionalHeight : 0;
|
|
66
|
+
if (currentHeight.value === undefined || !animate) {
|
|
67
|
+
currentHeight.value = newHeight;
|
|
68
|
+
return;
|
|
69
|
+
}
|
|
70
|
+
const duration = !expanded ? 250 : allAttributesRendered ? previewAttributes.length * 50 : extraAttributes.length * 50;
|
|
71
|
+
currentHeight.value = (0, _reactNativeReanimated.withTiming)(newHeight, {
|
|
72
|
+
duration
|
|
73
|
+
});
|
|
74
|
+
}, [allAttributesRendered, buttonViewHeight, currentHeight, animate, expanded, extraAttributes.length, fullAttributesHeight, previewAttributes.length, previewAttributesHeight]);
|
|
75
|
+
const credentialAttributesStyle = (0, _reactNativeReanimated.useAnimatedStyle)(() => {
|
|
76
|
+
if (currentHeight.value === undefined) {
|
|
77
|
+
if (expanded) {
|
|
78
|
+
return {};
|
|
79
|
+
}
|
|
80
|
+
return {
|
|
81
|
+
height: 0
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
return {
|
|
85
|
+
height: currentHeight.value
|
|
86
|
+
};
|
|
87
|
+
}, [expanded, currentHeight]);
|
|
88
|
+
const onPreviewAttrContentLayout = (0, _react.useCallback)(event => {
|
|
89
|
+
setPreviewAttributesHeight(event.nativeEvent.layout.height);
|
|
90
|
+
}, []);
|
|
91
|
+
const onFullAttrContentLayout = (0, _react.useCallback)(event => {
|
|
92
|
+
setFullAttributesHeight(event.nativeEvent.layout.height);
|
|
93
|
+
}, []);
|
|
94
|
+
const onButtonViewLayout = (0, _react.useCallback)(event => {
|
|
95
|
+
setButtonViewHeight(event.nativeEvent.layout.height);
|
|
96
|
+
}, []);
|
|
97
|
+
const footerView = (0, _react.useMemo)(() => {
|
|
98
|
+
if (!footer) {
|
|
99
|
+
return undefined;
|
|
100
|
+
}
|
|
101
|
+
if (/*#__PURE__*/_react.default.isValidElement(footer)) {
|
|
102
|
+
return footer;
|
|
103
|
+
} else {
|
|
104
|
+
const FooterComponent = footer;
|
|
105
|
+
return /*#__PURE__*/_react.default.createElement(FooterComponent, null);
|
|
106
|
+
}
|
|
107
|
+
}, [footer]);
|
|
108
|
+
const {
|
|
109
|
+
header,
|
|
110
|
+
...cardProps
|
|
111
|
+
} = card;
|
|
112
|
+
const renderExtraAttributes = allAttributesRendered || previewAttributesHeight !== undefined && currentHeight.value !== undefined;
|
|
113
|
+
return /*#__PURE__*/_react.default.createElement(_reactNative.View, _extends({
|
|
114
|
+
style: [styles.detailsCard, {
|
|
115
|
+
backgroundColor: colorScheme.white
|
|
116
|
+
}, style]
|
|
117
|
+
}, viewProps, {
|
|
118
|
+
testID: (0, _testID.concatTestID)(card.testID, expanded ? 'expanded' : 'collapsed')
|
|
119
|
+
}), /*#__PURE__*/_react.default.createElement(_credentialCard.default, _extends({}, cardProps, {
|
|
120
|
+
header: {
|
|
121
|
+
...header,
|
|
122
|
+
accessory: (_header$accessory = header.accessory) !== null && _header$accessory !== void 0 ? _header$accessory : CaretIcon
|
|
123
|
+
},
|
|
124
|
+
style: [styles.card, cardProps.style]
|
|
125
|
+
})), previewAttributes.length > 0 && /*#__PURE__*/_react.default.createElement(_reactNativeReanimated.default.View, {
|
|
126
|
+
style: [styles.attributesAnimatedWrapper, credentialAttributesStyle]
|
|
127
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
128
|
+
style: styles.attributesWrapper
|
|
129
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
130
|
+
onLayout: onPreviewAttrContentLayout,
|
|
131
|
+
style: styles.previewAttributesWrapper
|
|
132
|
+
}, previewAttributes.map((attribute, idx) => /*#__PURE__*/_react.default.createElement(_credentialAttributeItem.default, _extends({
|
|
133
|
+
key: attribute.id,
|
|
134
|
+
last: !footerView && !extraAttributes.length && idx === previewAttributes.length - 1,
|
|
135
|
+
testID: (0, _testID.concatTestID)(testID, 'attribute', idx.toString()),
|
|
136
|
+
onImagePreview: onImagePreview,
|
|
137
|
+
onPress: onAttributeSelected
|
|
138
|
+
}, attribute)))), !allAttributesRendered && extraAttributes.length > 0 && /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
139
|
+
style: styles.allAttributesWrapper,
|
|
140
|
+
onLayout: onButtonViewLayout
|
|
141
|
+
}, /*#__PURE__*/_react.default.createElement(_buttons.Button, {
|
|
142
|
+
onPress: () => setAllAttributesRendered(true),
|
|
143
|
+
type: _buttons.ButtonType.Secondary,
|
|
144
|
+
testID: (0, _testID.concatTestID)(testID, 'showAllAttributesButton'),
|
|
145
|
+
title: showAllButtonLabel
|
|
146
|
+
})), renderExtraAttributes && /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
147
|
+
style: [styles.allAttributesWrapper, footerView && styles.allAttributesWrapperWithFooter],
|
|
148
|
+
onLayout: onFullAttrContentLayout
|
|
149
|
+
}, extraAttributes.map((attribute, index, {
|
|
150
|
+
length
|
|
151
|
+
}) => /*#__PURE__*/_react.default.createElement(_credentialAttributeItem.default, _extends({
|
|
152
|
+
key: attribute.id,
|
|
153
|
+
last: !footerView && index === length - 1,
|
|
154
|
+
testID: (0, _testID.concatTestID)(testID, 'attribute', index.toString()),
|
|
155
|
+
onImagePreview: onImagePreview,
|
|
156
|
+
onPress: onAttributeSelected
|
|
157
|
+
}, attribute)))))), footerView ? /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
158
|
+
style: styles.footer
|
|
159
|
+
}, footerView) : null);
|
|
160
|
+
};
|
|
161
|
+
const styles = _reactNative.StyleSheet.create({
|
|
162
|
+
allAttributesWrapper: {
|
|
163
|
+
paddingBottom: 12,
|
|
164
|
+
paddingHorizontal: 4,
|
|
165
|
+
width: '100%'
|
|
166
|
+
},
|
|
167
|
+
allAttributesWrapperWithFooter: {
|
|
168
|
+
paddingBottom: 0
|
|
169
|
+
},
|
|
170
|
+
attributesAnimatedWrapper: {
|
|
171
|
+
overflow: 'hidden'
|
|
172
|
+
},
|
|
173
|
+
attributesWrapper: {
|
|
174
|
+
paddingTop: 7,
|
|
175
|
+
position: 'absolute',
|
|
176
|
+
width: '100%'
|
|
177
|
+
},
|
|
178
|
+
card: {
|
|
179
|
+
borderRadius: 0
|
|
180
|
+
},
|
|
181
|
+
detailsCard: {
|
|
182
|
+
borderRadius: 10,
|
|
183
|
+
overflow: 'hidden'
|
|
184
|
+
},
|
|
185
|
+
footer: {
|
|
186
|
+
marginTop: 12
|
|
187
|
+
},
|
|
188
|
+
previewAttributesWrapper: {
|
|
189
|
+
paddingHorizontal: 4,
|
|
190
|
+
width: '100%'
|
|
191
|
+
}
|
|
192
|
+
});
|
|
193
|
+
var _default = exports.default = CredentialDetailsCard;
|
|
194
|
+
//# sourceMappingURL=credential-details-card.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_reactNativeReanimated","_testID","_buttons","_credential","_colorSchemeContext","_credentialAttributeItem","_interopRequireDefault","_credentialCard","e","__esModule","default","_getRequireWildcardCache","WeakMap","r","t","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","_extends","assign","bind","arguments","length","apply","PREVIEW_ATTRIBUTES_COUNT","CredentialDetailsCard","animate","attributes","card","expanded","footer","onImagePreview","onAttributeSelected","style","showAllButtonLabel","testID","viewProps","_header$accessory","colorScheme","useAppColorScheme","previewAttributesHeight","setPreviewAttributesHeight","useState","fullAttributesHeight","setFullAttributesHeight","buttonViewHeight","setButtonViewHeight","allAttributesRendered","setAllAttributesRendered","CaretIcon","UpIcon","DownIcon","currentHeight","useSharedValue","undefined","previewAttributes","slice","extraAttributes","useMemo","useEffect","viewStyle","StyleSheet","flatten","styles","allAttributesWrapper","allAttributesWrapperWithFooter","padding","paddingBottom","additionalAttributesHeight","additionalHeight","newHeight","value","duration","withTiming","credentialAttributesStyle","useAnimatedStyle","height","onPreviewAttrContentLayout","useCallback","event","nativeEvent","layout","onFullAttrContentLayout","onButtonViewLayout","footerView","React","isValidElement","FooterComponent","createElement","header","cardProps","renderExtraAttributes","View","detailsCard","backgroundColor","white","concatTestID","accessory","attributesAnimatedWrapper","attributesWrapper","onLayout","previewAttributesWrapper","map","attribute","idx","key","id","last","toString","onPress","Button","type","ButtonType","Secondary","title","index","create","paddingHorizontal","width","overflow","paddingTop","position","borderRadius","marginTop","_default","exports"],"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,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,sBAAA,GAAAH,uBAAA,CAAAC,OAAA;AAEA,IAAAG,OAAA,GAAAH,OAAA;AACA,IAAAI,QAAA,GAAAJ,OAAA;AACA,IAAAK,WAAA,GAAAL,OAAA;AACA,IAAAM,mBAAA,GAAAN,OAAA;AACA,IAAAO,wBAAA,GAAAC,sBAAA,CAAAR,OAAA;AACA,IAAAS,eAAA,GAAAD,sBAAA,CAAAR,OAAA;AAAwE,SAAAQ,uBAAAE,CAAA,WAAAA,CAA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CAACuD,MAAM,CAAC;EAC/BpD,oBAAoB,EAAE;IACpBG,aAAa,EAAE,EAAE;IACjBkD,iBAAiB,EAAE,CAAC;IACpBC,KAAK,EAAE;EACT,CAAC;EACDrD,8BAA8B,EAAE;IAC9BE,aAAa,EAAE;EACjB,CAAC;EACD+B,yBAAyB,EAAE;IACzBqB,QAAQ,EAAE;EACZ,CAAC;EACDpB,iBAAiB,EAAE;IACjBqB,UAAU,EAAE,CAAC;IACbC,QAAQ,EAAE,UAAU;IACpBH,KAAK,EAAE;EACT,CAAC;EACD1F,IAAI,EAAE;IACJ8F,YAAY,EAAE;EAChB,CAAC;EACD7B,WAAW,EAAE;IACX6B,YAAY,EAAE,EAAE;IAChBH,QAAQ,EAAE;EACZ,CAAC;EACDzF,MAAM,EAAE;IACN6F,SAAS,EAAE;EACb,CAAC;EACDtB,wBAAwB,EAAE;IACxBgB,iBAAiB,EAAE,CAAC;IACpBC,KAAK,EAAE;EACT;AACF,CAAC,CAAC;AAAC,IAAAM,QAAA,GAAAC,OAAA,CAAA7H,OAAA,GAEYyB,qBAAqB","ignoreList":[]}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
var _reactNativeReanimated = _interopRequireWildcard(require("react-native-reanimated"));
|
|
10
|
+
var _credentialCard = require("./credential-card");
|
|
11
|
+
var _credentialDetailsCard = _interopRequireDefault(require("./credential-details-card"));
|
|
12
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
13
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
14
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
15
|
+
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); }
|
|
16
|
+
const CredentialDetailsCardListItem = ({
|
|
17
|
+
detailsCardStyle,
|
|
18
|
+
expanded,
|
|
19
|
+
lastItem,
|
|
20
|
+
style,
|
|
21
|
+
...props
|
|
22
|
+
}) => {
|
|
23
|
+
const [cardWidth, setCardWidth] = (0, _react.useState)();
|
|
24
|
+
const [minHeight, setMinHeight] = (0, _react.useState)();
|
|
25
|
+
const [detailsCardHeight, setDetailsCardHeight] = (0, _react.useState)();
|
|
26
|
+
const cardListItemHeight = (0, _reactNativeReanimated.useSharedValue)(undefined);
|
|
27
|
+
(0, _react.useEffect)(() => {
|
|
28
|
+
if (!detailsCardHeight || !minHeight) {
|
|
29
|
+
return;
|
|
30
|
+
}
|
|
31
|
+
const newValue = expanded ? detailsCardHeight : minHeight;
|
|
32
|
+
if (cardListItemHeight.value === undefined) {
|
|
33
|
+
cardListItemHeight.value = newValue;
|
|
34
|
+
return;
|
|
35
|
+
}
|
|
36
|
+
cardListItemHeight.value = (0, _reactNativeReanimated.withTiming)(newValue, {
|
|
37
|
+
duration: 250
|
|
38
|
+
});
|
|
39
|
+
}, [cardListItemHeight, detailsCardHeight, minHeight, expanded]);
|
|
40
|
+
const animatedCardWrapperStyle = (0, _reactNativeReanimated.useAnimatedStyle)(() => {
|
|
41
|
+
if (cardListItemHeight.value !== undefined) {
|
|
42
|
+
return {
|
|
43
|
+
height: cardListItemHeight.value
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
if (lastItem || expanded) {
|
|
47
|
+
return {};
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
height: 60
|
|
51
|
+
};
|
|
52
|
+
}, [cardListItemHeight, lastItem, expanded]);
|
|
53
|
+
const cardWrapperStyle = {
|
|
54
|
+
minHeight: cardWidth ? cardWidth / _credentialCard.CredentialCardRatio : undefined
|
|
55
|
+
};
|
|
56
|
+
const onContentLayout = (0, _react.useCallback)(event => {
|
|
57
|
+
var _StyleSheet$flatten$b, _StyleSheet$flatten;
|
|
58
|
+
const {
|
|
59
|
+
width,
|
|
60
|
+
height
|
|
61
|
+
} = event.nativeEvent.layout;
|
|
62
|
+
setCardWidth(width);
|
|
63
|
+
if (!minHeight) {
|
|
64
|
+
setMinHeight(lastItem ? width / _credentialCard.CredentialCardRatio : 60);
|
|
65
|
+
}
|
|
66
|
+
const borderWidth = (_StyleSheet$flatten$b = (_StyleSheet$flatten = _reactNative.StyleSheet.flatten(style)) === null || _StyleSheet$flatten === void 0 ? void 0 : _StyleSheet$flatten.borderWidth) !== null && _StyleSheet$flatten$b !== void 0 ? _StyleSheet$flatten$b : 0;
|
|
67
|
+
setDetailsCardHeight(height + 2 * borderWidth);
|
|
68
|
+
}, [lastItem, minHeight, style]);
|
|
69
|
+
return /*#__PURE__*/_react.default.createElement(_reactNativeReanimated.default.View, {
|
|
70
|
+
style: [styles.animatedWrapper, animatedCardWrapperStyle, style]
|
|
71
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
72
|
+
style: [styles.cardWrapper, cardWrapperStyle]
|
|
73
|
+
}, /*#__PURE__*/_react.default.createElement(_credentialDetailsCard.default, _extends({
|
|
74
|
+
animate: false,
|
|
75
|
+
expanded: expanded,
|
|
76
|
+
onLayout: onContentLayout,
|
|
77
|
+
style: detailsCardStyle
|
|
78
|
+
}, props))));
|
|
79
|
+
};
|
|
80
|
+
const styles = _reactNative.StyleSheet.create({
|
|
81
|
+
animatedWrapper: {
|
|
82
|
+
..._credentialCard.CredentialCardShadow
|
|
83
|
+
},
|
|
84
|
+
cardWrapper: {
|
|
85
|
+
borderRadius: 10,
|
|
86
|
+
height: '100%',
|
|
87
|
+
overflow: 'hidden'
|
|
88
|
+
}
|
|
89
|
+
});
|
|
90
|
+
var _default = exports.default = CredentialDetailsCardListItem;
|
|
91
|
+
//# sourceMappingURL=credential-details-list-item.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_reactNativeReanimated","_credentialCard","_credentialDetailsCard","_interopRequireDefault","e","__esModule","default","_getRequireWildcardCache","WeakMap","r","t","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","_extends","assign","bind","arguments","length","apply","CredentialDetailsCardListItem","detailsCardStyle","expanded","lastItem","style","props","cardWidth","setCardWidth","useState","minHeight","setMinHeight","detailsCardHeight","setDetailsCardHeight","cardListItemHeight","useSharedValue","undefined","useEffect","newValue","value","withTiming","duration","animatedCardWrapperStyle","useAnimatedStyle","height","cardWrapperStyle","CredentialCardRatio","onContentLayout","useCallback","event","_StyleSheet$flatten$b","_StyleSheet$flatten","width","nativeEvent","layout","borderWidth","StyleSheet","flatten","createElement","View","styles","animatedWrapper","cardWrapper","animate","onLayout","create","CredentialCardShadow","borderRadius","overflow","_default","exports"],"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,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,sBAAA,GAAAH,uBAAA,CAAAC,OAAA;AAEA,IAAAG,eAAA,GAAAH,OAAA;AACA,IAAAI,sBAAA,GAAAC,sBAAA,CAAAL,OAAA;AAA8F,SAAAK,uBAAAC,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAG,yBAAAH,CAAA,6BAAAI,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAD,wBAAA,YAAAA,CAAAH,CAAA,WAAAA,CAAA,GAAAM,CAAA,GAAAD,CAAA,KAAAL,CAAA;AAAA,SAAAP,wBAAAO,CAAA,EAAAK,CAAA,SAAAA,CAAA,IAAAL,CAAA,IAAAA,CAAA,CAAAC,UAAA,SAAAD,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAE,OAAA,EAAAF,CAAA,QAAAM,CAAA,GAAAH,wBAAA,CAAAE,CAAA,OAAAC,CAAA,IAAAA,CAAA,CAAAC,GAAA,CAAAP,CAAA,UAAAM,CAAA,CAAAE,GAAA,CAAAR,CAAA,OAAAS,CAAA,KAAAC,SAAA,UAAAC,CAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,CAAA,IAAAf,CAAA,oBAAAe,CAAA,OAAAC,cAAA,CAAAC,IAAA,CAAAjB,CAAA,EAAAe,CAAA,SAAAG,CAAA,GAAAP,CAAA,GAAAC,MAAA,CAAAE,wBAAA,CAAAd,CAAA,EAAAe,CAAA,UAAAG,CAAA,KA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