@stridge/kit 0.1.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/dist/KitProvider.d.ts +91 -0
- package/dist/KitProvider.js +1 -0
- package/dist/_internal/deposit/driver/index.d.ts +5 -0
- package/dist/_internal/deposit/driver/index.js +1 -0
- package/dist/_internal/deposit/widgets/index.d.ts +11 -0
- package/dist/_internal/deposit/widgets/index.js +1 -0
- package/dist/_internal/drivers/stridge/index.d.ts +6 -0
- package/dist/_internal/drivers/stridge/index.js +1 -0
- package/dist/_internal/drivers/stridge-mock/index.d.ts +5 -0
- package/dist/_internal/drivers/stridge-mock/index.js +1 -0
- package/dist/_internal/index.d.ts +2 -0
- package/dist/_internal/index.js +1 -0
- package/dist/_internal/withdraw/driver/index.d.ts +6 -0
- package/dist/_internal/withdraw/driver/index.js +1 -0
- package/dist/_internal/withdraw/widgets/index.d.ts +5 -0
- package/dist/_internal/withdraw/widgets/index.js +1 -0
- package/dist/banners/index.d.ts +1 -0
- package/dist/banners/index.js +1 -0
- package/dist/banners/useBannerAck.d.ts +61 -0
- package/dist/banners/useBannerAck.js +1 -0
- package/dist/deposit/compound/index.d.ts +28 -0
- package/dist/deposit/compound/index.js +1 -0
- package/dist/deposit/dialog/index.d.ts +2 -0
- package/dist/deposit/dialog/index.js +1 -0
- package/dist/drivers/stridge/createStridgeDepositDriver.d.ts +29 -0
- package/dist/drivers/stridge/createStridgeDepositDriver.js +1 -0
- package/dist/drivers/stridge/createStridgeWithdrawDriver.d.ts +113 -0
- package/dist/drivers/stridge/createStridgeWithdrawDriver.js +1 -0
- package/dist/drivers/stridge/internal/encoding.js +1 -0
- package/dist/drivers/stridge/internal/env.js +1 -0
- package/dist/drivers/stridge/internal/metadata.js +1 -0
- package/dist/drivers/stridge/internal/pollOnce.js +1 -0
- package/dist/drivers/stridge/internal/signAndConfirm.js +1 -0
- package/dist/drivers/stridge/poll.js +1 -0
- package/dist/drivers/stridge/rpc.d.ts +77 -0
- package/dist/drivers/stridge/rpc.js +1 -0
- package/dist/drivers/stridge/types.d.ts +145 -0
- package/dist/drivers/stridge/types.js +1 -0
- package/dist/drivers/stridge/wagmiSigner.js +1 -0
- package/dist/drivers/stridge-mock/createStridgeMockDriver.d.ts +120 -0
- package/dist/drivers/stridge-mock/createStridgeMockDriver.js +1 -0
- package/dist/drivers/stridge-mock/createStridgeMockWithdrawDriver.d.ts +118 -0
- package/dist/drivers/stridge-mock/createStridgeMockWithdrawDriver.js +1 -0
- package/dist/drivers/stridge-mock/fixtures.d.ts +127 -0
- package/dist/drivers/stridge-mock/fixtures.js +1 -0
- package/dist/drivers/stridge-mock/store.js +1 -0
- package/dist/drivers/stridge-mock/triggers.d.ts +41 -0
- package/dist/flows/deposit/dialog/DepositBootstrapErrorState.js +1 -0
- package/dist/flows/deposit/dialog/DepositBootstrapErrorState.styles.js +1 -0
- package/dist/flows/deposit/dialog/DepositDialog.d.ts +112 -0
- package/dist/flows/deposit/dialog/DepositDialog.js +1 -0
- package/dist/flows/deposit/driver/context.d.ts +37 -0
- package/dist/flows/deposit/driver/context.js +1 -0
- package/dist/flows/deposit/driver/payloads.d.ts +342 -0
- package/dist/flows/deposit/driver/transformers/balanceToBalancesPayload.js +1 -0
- package/dist/flows/deposit/driver/transformers/quoteToPayload.js +1 -0
- package/dist/flows/deposit/driver/transformers/settlementToPayload.js +1 -0
- package/dist/flows/deposit/driver/transformers/startToAddressesPayload.js +1 -0
- package/dist/flows/deposit/driver/transformers/startToBrandPayload.js +1 -0
- package/dist/flows/deposit/driver/transformers/startToTargetPayload.js +1 -0
- package/dist/flows/deposit/driver/transformers/walletAddressToWalletPayload.js +1 -0
- package/dist/flows/deposit/driver/types.d.ts +177 -0
- package/dist/flows/deposit/orchestrator/controller.d.ts +11 -0
- package/dist/flows/deposit/orchestrator/controller.js +1 -0
- package/dist/flows/deposit/orchestrator/reducer.js +1 -0
- package/dist/flows/deposit/orchestrator/resolveAssetById.js +1 -0
- package/dist/flows/deposit/orchestrator/steps.d.ts +23 -0
- package/dist/flows/deposit/orchestrator/steps.js +1 -0
- package/dist/flows/deposit/orchestrator/types.d.ts +266 -0
- package/dist/flows/deposit/orchestrator/useDeposit.d.ts +35 -0
- package/dist/flows/deposit/orchestrator/useDeposit.js +1 -0
- package/dist/flows/deposit/widgets/amount-entry/AmountEntry.d.ts +35 -0
- package/dist/flows/deposit/widgets/amount-entry/AmountEntry.js +1 -0
- package/dist/flows/deposit/widgets/amount-entry/index.d.ts +1 -0
- package/dist/flows/deposit/widgets/amount-entry/index.js +1 -0
- package/dist/flows/deposit/widgets/asset-picker/AssetPicker.d.ts +25 -0
- package/dist/flows/deposit/widgets/asset-picker/AssetPicker.js +1 -0
- package/dist/flows/deposit/widgets/asset-picker/index.d.ts +1 -0
- package/dist/flows/deposit/widgets/asset-picker/index.js +1 -0
- package/dist/flows/deposit/widgets/confirm-deposit/ConfirmDeposit.d.ts +31 -0
- package/dist/flows/deposit/widgets/confirm-deposit/ConfirmDeposit.js +1 -0
- package/dist/flows/deposit/widgets/confirm-deposit/index.d.ts +1 -0
- package/dist/flows/deposit/widgets/confirm-deposit/index.js +1 -0
- package/dist/flows/deposit/widgets/deposit/Deposit.d.ts +30 -0
- package/dist/flows/deposit/widgets/deposit/Deposit.js +1 -0
- package/dist/flows/deposit/widgets/deposit/compound/Deposit.d.ts +51 -0
- package/dist/flows/deposit/widgets/deposit/compound/Deposit.js +1 -0
- package/dist/flows/deposit/widgets/deposit/compound/Deposit.slots.d.ts +11 -0
- package/dist/flows/deposit/widgets/deposit/compound/Deposit.slots.js +1 -0
- package/dist/flows/deposit/widgets/deposit/compound/Deposit.styles.js +1 -0
- package/dist/flows/deposit/widgets/deposit/compound/components/Header.d.ts +15 -0
- package/dist/flows/deposit/widgets/deposit/compound/components/Header.js +1 -0
- package/dist/flows/deposit/widgets/deposit/compound/components/Method.d.ts +32 -0
- package/dist/flows/deposit/widgets/deposit/compound/components/Method.js +1 -0
- package/dist/flows/deposit/widgets/deposit/compound/components/Methods.d.ts +23 -0
- package/dist/flows/deposit/widgets/deposit/compound/components/Methods.js +1 -0
- package/dist/flows/deposit/widgets/deposit/compound/context.js +1 -0
- package/dist/flows/deposit/widgets/deposit/compound/index.d.ts +3 -0
- package/dist/flows/deposit/widgets/deposit/compound/index.js +1 -0
- package/dist/flows/deposit/widgets/deposit/compound/types.d.ts +129 -0
- package/dist/flows/deposit/widgets/deposit/index.d.ts +1 -0
- package/dist/flows/deposit/widgets/deposit/index.js +1 -0
- package/dist/flows/deposit/widgets/deposit-status-banner/DepositStatusBanner.d.ts +20 -0
- package/dist/flows/deposit/widgets/deposit-status-banner/DepositStatusBanner.js +1 -0
- package/dist/flows/deposit/widgets/deposit-status-banner/compound/DepositStatusBanner.d.ts +102 -0
- package/dist/flows/deposit/widgets/deposit-status-banner/compound/DepositStatusBanner.js +1 -0
- package/dist/flows/deposit/widgets/deposit-status-banner/compound/DepositStatusBanner.slots.d.ts +20 -0
- package/dist/flows/deposit/widgets/deposit-status-banner/compound/DepositStatusBanner.slots.js +1 -0
- package/dist/flows/deposit/widgets/deposit-status-banner/compound/DepositStatusBanner.styles.js +1 -0
- package/dist/flows/deposit/widgets/deposit-status-banner/compound/components/Body.d.ts +17 -0
- package/dist/flows/deposit/widgets/deposit-status-banner/compound/components/Body.js +1 -0
- package/dist/flows/deposit/widgets/deposit-status-banner/compound/components/Close.d.ts +13 -0
- package/dist/flows/deposit/widgets/deposit-status-banner/compound/components/Close.js +1 -0
- package/dist/flows/deposit/widgets/deposit-status-banner/compound/components/Detail.d.ts +14 -0
- package/dist/flows/deposit/widgets/deposit-status-banner/compound/components/Detail.js +1 -0
- package/dist/flows/deposit/widgets/deposit-status-banner/compound/components/Details.d.ts +20 -0
- package/dist/flows/deposit/widgets/deposit-status-banner/compound/components/Details.js +1 -0
- package/dist/flows/deposit/widgets/deposit-status-banner/compound/components/Footer.d.ts +17 -0
- package/dist/flows/deposit/widgets/deposit-status-banner/compound/components/Footer.js +1 -0
- package/dist/flows/deposit/widgets/deposit-status-banner/compound/components/Hero.d.ts +17 -0
- package/dist/flows/deposit/widgets/deposit-status-banner/compound/components/Hero.js +1 -0
- package/dist/flows/deposit/widgets/deposit-status-banner/compound/components/PrimaryAction.d.ts +26 -0
- package/dist/flows/deposit/widgets/deposit-status-banner/compound/components/PrimaryAction.js +1 -0
- package/dist/flows/deposit/widgets/deposit-status-banner/compound/components/Rows.d.ts +35 -0
- package/dist/flows/deposit/widgets/deposit-status-banner/compound/components/Rows.js +1 -0
- package/dist/flows/deposit/widgets/deposit-status-banner/compound/components/Toggle.d.ts +18 -0
- package/dist/flows/deposit/widgets/deposit-status-banner/compound/components/Toggle.js +1 -0
- package/dist/flows/deposit/widgets/deposit-status-banner/compound/context.js +1 -0
- package/dist/flows/deposit/widgets/deposit-status-banner/compound/index.d.ts +3 -0
- package/dist/flows/deposit/widgets/deposit-status-banner/compound/index.js +1 -0
- package/dist/flows/deposit/widgets/deposit-status-banner/compound/types.d.ts +188 -0
- package/dist/flows/deposit/widgets/deposit-status-banner/index.d.ts +1 -0
- package/dist/flows/deposit/widgets/deposit-status-banner/index.js +1 -0
- package/dist/flows/deposit/widgets/error-state/ErrorState.d.ts +30 -0
- package/dist/flows/deposit/widgets/error-state/ErrorState.js +1 -0
- package/dist/flows/deposit/widgets/error-state/index.d.ts +1 -0
- package/dist/flows/deposit/widgets/error-state/index.js +1 -0
- package/dist/flows/deposit/widgets/processing-state/ProcessingState.d.ts +31 -0
- package/dist/flows/deposit/widgets/processing-state/ProcessingState.js +1 -0
- package/dist/flows/deposit/widgets/processing-state/index.d.ts +1 -0
- package/dist/flows/deposit/widgets/processing-state/index.js +1 -0
- package/dist/flows/deposit/widgets/success-state/SuccessState.d.ts +30 -0
- package/dist/flows/deposit/widgets/success-state/SuccessState.js +1 -0
- package/dist/flows/deposit/widgets/success-state/index.d.ts +1 -0
- package/dist/flows/deposit/widgets/success-state/index.js +1 -0
- package/dist/flows/deposit/widgets/transfer-crypto/TransferCrypto.d.ts +41 -0
- package/dist/flows/deposit/widgets/transfer-crypto/TransferCrypto.js +1 -0
- package/dist/flows/deposit/widgets/transfer-crypto/compound/TransferCrypto.d.ts +56 -0
- package/dist/flows/deposit/widgets/transfer-crypto/compound/TransferCrypto.js +1 -0
- package/dist/flows/deposit/widgets/transfer-crypto/compound/TransferCrypto.slots.d.ts +15 -0
- package/dist/flows/deposit/widgets/transfer-crypto/compound/TransferCrypto.slots.js +1 -0
- package/dist/flows/deposit/widgets/transfer-crypto/compound/TransferCrypto.styles.js +1 -0
- package/dist/flows/deposit/widgets/transfer-crypto/compound/components/Address.d.ts +10 -0
- package/dist/flows/deposit/widgets/transfer-crypto/compound/components/Address.js +1 -0
- package/dist/flows/deposit/widgets/transfer-crypto/compound/components/Disclosure.d.ts +17 -0
- package/dist/flows/deposit/widgets/transfer-crypto/compound/components/Disclosure.js +1 -0
- package/dist/flows/deposit/widgets/transfer-crypto/compound/components/Header.d.ts +15 -0
- package/dist/flows/deposit/widgets/transfer-crypto/compound/components/Header.js +1 -0
- package/dist/flows/deposit/widgets/transfer-crypto/compound/components/InfoTooltip.js +1 -0
- package/dist/flows/deposit/widgets/transfer-crypto/compound/components/QrCode.d.ts +21 -0
- package/dist/flows/deposit/widgets/transfer-crypto/compound/components/QrCode.js +1 -0
- package/dist/flows/deposit/widgets/transfer-crypto/compound/components/Selectors.d.ts +11 -0
- package/dist/flows/deposit/widgets/transfer-crypto/compound/components/Selectors.js +1 -0
- package/dist/flows/deposit/widgets/transfer-crypto/compound/components/Summary.d.ts +11 -0
- package/dist/flows/deposit/widgets/transfer-crypto/compound/components/Summary.js +1 -0
- package/dist/flows/deposit/widgets/transfer-crypto/compound/context.js +1 -0
- package/dist/flows/deposit/widgets/transfer-crypto/compound/index.d.ts +3 -0
- package/dist/flows/deposit/widgets/transfer-crypto/compound/index.js +1 -0
- package/dist/flows/deposit/widgets/transfer-crypto/compound/types.d.ts +187 -0
- package/dist/flows/deposit/widgets/transfer-crypto/index.d.ts +1 -0
- package/dist/flows/deposit/widgets/transfer-crypto/index.js +1 -0
- package/dist/flows/shared/transformers/classifySettlementStatus.js +1 -0
- package/dist/flows/shared/transformers/computeQuoteAttrs.js +1 -0
- package/dist/flows/shared/transformers/parseIsoMs.js +1 -0
- package/dist/flows/shared/transformers/parseSmallestUnit.js +1 -0
- package/dist/flows/shared/transformers/pickRelevantSettlement.js +1 -0
- package/dist/flows/withdraw/dialog/WithdrawDialog.d.ts +103 -0
- package/dist/flows/withdraw/dialog/WithdrawDialog.js +1 -0
- package/dist/flows/withdraw/dialog/WithdrawDialogEventsContext.d.ts +36 -0
- package/dist/flows/withdraw/dialog/WithdrawDialogEventsContext.js +1 -0
- package/dist/flows/withdraw/driver/context.d.ts +24 -0
- package/dist/flows/withdraw/driver/context.js +1 -0
- package/dist/flows/withdraw/driver/dto.d.ts +41 -0
- package/dist/flows/withdraw/driver/payloads.d.ts +206 -0
- package/dist/flows/withdraw/driver/transformers/balanceToWithdrawableBalancesPayload.js +1 -0
- package/dist/flows/withdraw/driver/transformers/quoteToWithdrawalPayload.js +1 -0
- package/dist/flows/withdraw/driver/transformers/settlementToWithdrawalPayload.js +1 -0
- package/dist/flows/withdraw/driver/transformers/supportedAssetsToReceiveOptionsPayload.js +1 -0
- package/dist/flows/withdraw/driver/types.d.ts +133 -0
- package/dist/flows/withdraw/orchestrator/controller.d.ts +11 -0
- package/dist/flows/withdraw/orchestrator/controller.js +1 -0
- package/dist/flows/withdraw/orchestrator/index.d.ts +4 -0
- package/dist/flows/withdraw/orchestrator/index.js +1 -0
- package/dist/flows/withdraw/orchestrator/reducer.js +1 -0
- package/dist/flows/withdraw/orchestrator/types.d.ts +156 -0
- package/dist/flows/withdraw/orchestrator/useWithdraw.d.ts +23 -0
- package/dist/flows/withdraw/orchestrator/useWithdraw.js +1 -0
- package/dist/flows/withdraw/widgets/withdraw-error/WithdrawError.d.ts +22 -0
- package/dist/flows/withdraw/widgets/withdraw-error/WithdrawError.js +1 -0
- package/dist/flows/withdraw/widgets/withdraw-error/index.d.ts +1 -0
- package/dist/flows/withdraw/widgets/withdraw-error/index.js +1 -0
- package/dist/flows/withdraw/widgets/withdraw-form/WithdrawForm.d.ts +29 -0
- package/dist/flows/withdraw/widgets/withdraw-form/WithdrawForm.js +1 -0
- package/dist/flows/withdraw/widgets/withdraw-form/compound/WithdrawForm.d.ts +55 -0
- package/dist/flows/withdraw/widgets/withdraw-form/compound/WithdrawForm.js +1 -0
- package/dist/flows/withdraw/widgets/withdraw-form/compound/WithdrawForm.slots.d.ts +31 -0
- package/dist/flows/withdraw/widgets/withdraw-form/compound/WithdrawForm.slots.js +1 -0
- package/dist/flows/withdraw/widgets/withdraw-form/compound/WithdrawForm.styles.js +1 -0
- package/dist/flows/withdraw/widgets/withdraw-form/compound/components/AmountField.d.ts +12 -0
- package/dist/flows/withdraw/widgets/withdraw-form/compound/components/AmountField.js +1 -0
- package/dist/flows/withdraw/widgets/withdraw-form/compound/components/Body.d.ts +20 -0
- package/dist/flows/withdraw/widgets/withdraw-form/compound/components/Body.js +1 -0
- package/dist/flows/withdraw/widgets/withdraw-form/compound/components/BreakdownCard.d.ts +17 -0
- package/dist/flows/withdraw/widgets/withdraw-form/compound/components/BreakdownCard.js +1 -0
- package/dist/flows/withdraw/widgets/withdraw-form/compound/components/Footer.d.ts +18 -0
- package/dist/flows/withdraw/widgets/withdraw-form/compound/components/Footer.js +1 -0
- package/dist/flows/withdraw/widgets/withdraw-form/compound/components/Header.d.ts +21 -0
- package/dist/flows/withdraw/widgets/withdraw-form/compound/components/Header.js +1 -0
- package/dist/flows/withdraw/widgets/withdraw-form/compound/components/InfoTooltip.js +1 -0
- package/dist/flows/withdraw/widgets/withdraw-form/compound/components/ReceiveSelectors.d.ts +13 -0
- package/dist/flows/withdraw/widgets/withdraw-form/compound/components/ReceiveSelectors.js +1 -0
- package/dist/flows/withdraw/widgets/withdraw-form/compound/components/RecipientField.d.ts +19 -0
- package/dist/flows/withdraw/widgets/withdraw-form/compound/components/RecipientField.js +1 -0
- package/dist/flows/withdraw/widgets/withdraw-form/compound/context.js +1 -0
- package/dist/flows/withdraw/widgets/withdraw-form/compound/index.d.ts +3 -0
- package/dist/flows/withdraw/widgets/withdraw-form/compound/index.js +1 -0
- package/dist/flows/withdraw/widgets/withdraw-form/compound/types.d.ts +149 -0
- package/dist/flows/withdraw/widgets/withdraw-form/index.d.ts +1 -0
- package/dist/flows/withdraw/widgets/withdraw-form/index.js +1 -0
- package/dist/flows/withdraw/widgets/withdraw-form/validation.js +1 -0
- package/dist/flows/withdraw/widgets/withdraw-in-progress/WithdrawInProgress.d.ts +19 -0
- package/dist/flows/withdraw/widgets/withdraw-in-progress/WithdrawInProgress.js +1 -0
- package/dist/flows/withdraw/widgets/withdraw-in-progress/index.d.ts +1 -0
- package/dist/flows/withdraw/widgets/withdraw-in-progress/index.js +1 -0
- package/dist/flows/withdraw/widgets/withdraw-success/WithdrawSuccess.d.ts +20 -0
- package/dist/flows/withdraw/widgets/withdraw-success/WithdrawSuccess.js +1 -0
- package/dist/flows/withdraw/widgets/withdraw-success/index.d.ts +1 -0
- package/dist/flows/withdraw/widgets/withdraw-success/index.js +1 -0
- package/dist/format/index.d.ts +10 -0
- package/dist/format/index.js +1 -0
- package/dist/i18n/index.d.ts +9 -0
- package/dist/i18n/index.js +1 -0
- package/dist/i18n/locales/ar.d.ts +6 -0
- package/dist/i18n/locales/ar.js +1 -0
- package/dist/i18n/locales/es.d.ts +6 -0
- package/dist/i18n/locales/es.js +1 -0
- package/dist/icons/index.d.ts +27 -0
- package/dist/icons/index.js +1 -0
- package/dist/index.d.ts +26 -0
- package/dist/index.js +1 -0
- package/dist/kit/package.js +1 -0
- package/dist/scope/KitPortalScope.d.ts +31 -0
- package/dist/scope/KitPortalScope.js +1 -0
- package/dist/scope/KitScope.d.ts +63 -0
- package/dist/scope/KitScope.js +1 -0
- package/dist/scope/KitScope.slots.js +1 -0
- package/dist/scope/context.d.ts +67 -0
- package/dist/scope/context.js +1 -0
- package/dist/scope/index.d.ts +3 -0
- package/dist/scope/index.js +1 -0
- package/dist/shared/chains/index.d.ts +40 -0
- package/dist/shared/chains/index.js +1 -0
- package/dist/shared/constants/brand-links.js +1 -0
- package/dist/shared/dialog/DialogShell.d.ts +63 -0
- package/dist/shared/dialog/DialogShell.js +1 -0
- package/dist/shared/dialog/Frame.js +1 -0
- package/dist/shared/dialog/GatewayKitRoot.js +1 -0
- package/dist/shared/dialog/StepTransition.js +1 -0
- package/dist/shared/dialog/useDirectionalChevronTransform.js +1 -0
- package/dist/shared/driver/types.d.ts +69 -0
- package/dist/shared/error-handling/components/GatewayKitBoundary.js +1 -0
- package/dist/shared/error-handling/components/GatewayKitErrorCard/GatewayKitErrorCard.js +1 -0
- package/dist/shared/error-handling/components/GatewayKitErrorCard/GatewayKitErrorCard.slots.js +1 -0
- package/dist/shared/error-handling/components/GatewayKitErrorCard/GatewayKitErrorCard.styles.js +1 -0
- package/dist/shared/error-handling/components/GatewayKitErrorCard/components/Action.js +1 -0
- package/dist/shared/error-handling/components/GatewayKitErrorCard/components/Actions.js +1 -0
- package/dist/shared/error-handling/components/GatewayKitErrorCard/components/CodeSample.js +1 -0
- package/dist/shared/error-handling/components/GatewayKitErrorCard/components/Description.js +1 -0
- package/dist/shared/error-handling/components/GatewayKitErrorCard/components/DetailRow.js +1 -0
- package/dist/shared/error-handling/components/GatewayKitErrorCard/components/Guidance.js +1 -0
- package/dist/shared/error-handling/components/GatewayKitErrorCard/components/Section.js +1 -0
- package/dist/shared/error-handling/components/GatewayKitErrorCard/components/TechnicalDetails.js +1 -0
- package/dist/shared/error-handling/components/GatewayKitErrorCard/components/TechnicalDetailsToggle.js +1 -0
- package/dist/shared/error-handling/components/GatewayKitErrorCard/components/Title.js +1 -0
- package/dist/shared/error-handling/components/GatewayKitErrorCard/context.js +1 -0
- package/dist/shared/error-handling/components/GatewayKitErrorCard/index.js +1 -0
- package/dist/shared/error-handling/components/GatewayKitRecoveryError.js +1 -0
- package/dist/shared/error-handling/components/GatewayKitSetupError.js +1 -0
- package/dist/shared/error-handling/constants/guides.js +1 -0
- package/dist/shared/error-handling/constants/snippets.js +6 -0
- package/dist/shared/error-handling/index.js +1 -0
- package/dist/shared/error-handling/lib/isWagmiProviderMissingError.js +1 -0
- package/dist/shared/format/formatDurationCoarse.d.ts +29 -0
- package/dist/shared/format/formatDurationCoarse.js +1 -0
- package/dist/shared/format/formatDurationCompact.d.ts +28 -0
- package/dist/shared/format/formatDurationCompact.js +1 -0
- package/dist/shared/format/formatNetworkName.d.ts +27 -0
- package/dist/shared/format/formatNetworkName.js +1 -0
- package/dist/shared/format/formatPercent.d.ts +23 -0
- package/dist/shared/format/formatPercent.js +1 -0
- package/dist/shared/format/formatTimestamp.d.ts +22 -0
- package/dist/shared/format/formatTimestamp.js +1 -0
- package/dist/shared/format/formatTokenAmount.d.ts +46 -0
- package/dist/shared/format/formatTokenAmount.js +1 -0
- package/dist/shared/format/formatUsd.d.ts +41 -0
- package/dist/shared/format/formatUsd.js +1 -0
- package/dist/shared/format/shortenAddress.d.ts +27 -0
- package/dist/shared/format/shortenAddress.js +1 -0
- package/dist/shared/format/types.d.ts +33 -0
- package/dist/shared/i18n/KitI18nProvider.d.ts +23 -0
- package/dist/shared/i18n/KitI18nProvider.js +1 -0
- package/dist/shared/i18n/Trans.d.ts +39 -0
- package/dist/shared/i18n/Trans.js +1 -0
- package/dist/shared/i18n/createKitI18n.d.ts +41 -0
- package/dist/shared/i18n/createKitI18n.js +1 -0
- package/dist/shared/i18n/defaultI18n.js +1 -0
- package/dist/shared/i18n/getLocaleDirection.d.ts +24 -0
- package/dist/shared/i18n/getLocaleDirection.js +1 -0
- package/dist/shared/i18n/locales.d.ts +31 -0
- package/dist/shared/i18n/locales.js +1 -0
- package/dist/shared/i18n/useKitI18n.d.ts +14 -0
- package/dist/shared/i18n/useKitI18n.js +1 -0
- package/dist/shared/i18n/useLingui.d.ts +35 -0
- package/dist/shared/i18n/useLingui.js +1 -0
- package/dist/shared/i18n/useT.d.ts +25 -0
- package/dist/shared/i18n/useT.js +1 -0
- package/dist/shared/icons/AlertIcon.d.ts +12 -0
- package/dist/shared/icons/AlertIcon.js +1 -0
- package/dist/shared/icons/ArrowDownIcon.d.ts +7 -0
- package/dist/shared/icons/ArrowDownIcon.js +1 -0
- package/dist/shared/icons/ArrowRightIcon.d.ts +7 -0
- package/dist/shared/icons/ArrowRightIcon.js +1 -0
- package/dist/shared/icons/ArrowRightLeftIcon.d.ts +7 -0
- package/dist/shared/icons/ArrowRightLeftIcon.js +1 -0
- package/dist/shared/icons/CheckIcon.d.ts +7 -0
- package/dist/shared/icons/CheckIcon.js +1 -0
- package/dist/shared/icons/ChevronDownIcon.d.ts +7 -0
- package/dist/shared/icons/ChevronDownIcon.js +1 -0
- package/dist/shared/icons/ChevronLeftIcon.d.ts +7 -0
- package/dist/shared/icons/ChevronLeftIcon.js +1 -0
- package/dist/shared/icons/ChevronRightIcon.d.ts +7 -0
- package/dist/shared/icons/ChevronRightIcon.js +1 -0
- package/dist/shared/icons/ChevronUpIcon.d.ts +7 -0
- package/dist/shared/icons/ChevronUpIcon.js +1 -0
- package/dist/shared/icons/CircleArrowUpIcon.d.ts +7 -0
- package/dist/shared/icons/CircleArrowUpIcon.js +1 -0
- package/dist/shared/icons/CircleHelpIcon.d.ts +7 -0
- package/dist/shared/icons/CircleHelpIcon.js +1 -0
- package/dist/shared/icons/ClockIcon.d.ts +7 -0
- package/dist/shared/icons/ClockIcon.js +1 -0
- package/dist/shared/icons/CopyIcon.d.ts +7 -0
- package/dist/shared/icons/CopyIcon.js +1 -0
- package/dist/shared/icons/ExternalLinkIcon.d.ts +7 -0
- package/dist/shared/icons/ExternalLinkIcon.js +1 -0
- package/dist/shared/icons/InfoIcon.d.ts +7 -0
- package/dist/shared/icons/InfoIcon.js +1 -0
- package/dist/shared/icons/LoaderIcon.d.ts +7 -0
- package/dist/shared/icons/LoaderIcon.js +1 -0
- package/dist/shared/icons/MailIcon.d.ts +7 -0
- package/dist/shared/icons/MailIcon.js +1 -0
- package/dist/shared/icons/PackageIcon.d.ts +7 -0
- package/dist/shared/icons/PackageIcon.js +1 -0
- package/dist/shared/icons/QrCodeIcon.d.ts +7 -0
- package/dist/shared/icons/QrCodeIcon.js +1 -0
- package/dist/shared/icons/WalletIcon.d.ts +7 -0
- package/dist/shared/icons/WalletIcon.js +1 -0
- package/dist/shared/icons/XIcon.d.ts +7 -0
- package/dist/shared/icons/XIcon.js +1 -0
- package/dist/shared/icons/exchanges/BinanceIcon.d.ts +7 -0
- package/dist/shared/icons/exchanges/BinanceIcon.js +1 -0
- package/dist/shared/icons/exchanges/CoinbaseIcon.d.ts +7 -0
- package/dist/shared/icons/exchanges/CoinbaseIcon.js +1 -0
- package/dist/shared/icons/exchanges/KrakenIcon.d.ts +7 -0
- package/dist/shared/icons/exchanges/KrakenIcon.js +1 -0
- package/dist/shared/icons/exchanges/OkxIcon.d.ts +7 -0
- package/dist/shared/icons/exchanges/OkxIcon.js +1 -0
- package/dist/shared/icons/exchanges/RobinhoodIcon.d.ts +7 -0
- package/dist/shared/icons/exchanges/RobinhoodIcon.js +1 -0
- package/dist/shared/icons/exchanges/index.d.ts +5 -0
- package/dist/shared/icons/exchanges/index.js +1 -0
- package/dist/shared/orchestrator/failureReason.js +1 -0
- package/dist/shared/orchestrator/index.js +1 -0
- package/dist/shared/orchestrator/toFailure.js +1 -0
- package/dist/shared/orchestrator/types.d.ts +20 -0
- package/dist/shared/orchestrator/useDialogLifecycle.js +1 -0
- package/dist/shared/orchestrator/useDriverSettlementListener.js +1 -0
- package/dist/shared/orchestrator/useEffectiveState.js +1 -0
- package/dist/shared/orchestrator/useSettlementWatcher.js +1 -0
- package/dist/shared/orchestrator/userRejection.js +1 -0
- package/dist/shared/primitives/TxHashValue/TxHashValue.d.ts +20 -0
- package/dist/shared/primitives/TxHashValue/TxHashValue.js +1 -0
- package/dist/shared/primitives/TxHashValue/TxHashValue.slots.js +1 -0
- package/dist/shared/primitives/TxHashValue/TxHashValue.styles.js +1 -0
- package/dist/shared/primitives/TxHashValue/index.d.ts +2 -0
- package/dist/shared/primitives/TxHashValue/index.js +1 -0
- package/dist/shared/primitives/TxHashValue/types.d.ts +25 -0
- package/dist/shared/primitives/WalletValue/WalletValue.d.ts +40 -0
- package/dist/shared/primitives/WalletValue/WalletValue.js +1 -0
- package/dist/shared/primitives/WalletValue/index.d.ts +1 -0
- package/dist/shared/primitives/WalletValue/index.js +1 -0
- package/dist/shared/quote/index.js +1 -0
- package/dist/shared/quote/useQuoteCountdown.js +1 -0
- package/dist/shared/styles/tokens.stylex.js +1 -0
- package/dist/shared/ui/Alert/Alert.d.ts +105 -0
- package/dist/shared/ui/Alert/Alert.js +1 -0
- package/dist/shared/ui/Alert/Alert.slots.d.ts +10 -0
- package/dist/shared/ui/Alert/Alert.slots.js +1 -0
- package/dist/shared/ui/Alert/Alert.styles.js +1 -0
- package/dist/shared/ui/Alert/index.d.ts +2 -0
- package/dist/shared/ui/Alert/index.js +1 -0
- package/dist/shared/ui/AmountInput/AmountInput.d.ts +132 -0
- package/dist/shared/ui/AmountInput/AmountInput.js +1 -0
- package/dist/shared/ui/AmountInput/AmountInput.slots.d.ts +11 -0
- package/dist/shared/ui/AmountInput/AmountInput.slots.js +1 -0
- package/dist/shared/ui/AmountInput/AmountInput.styles.js +1 -0
- package/dist/shared/ui/AmountInput/attachInputNormalization.js +1 -0
- package/dist/shared/ui/AmountInput/context.js +1 -0
- package/dist/shared/ui/AmountInput/index.d.ts +3 -0
- package/dist/shared/ui/AmountInput/index.js +1 -0
- package/dist/shared/ui/AmountInput/useAutoShrinkFontSize.js +14 -0
- package/dist/shared/ui/AmountInput/utils.d.ts +12 -0
- package/dist/shared/ui/AmountInput/utils.js +1 -0
- package/dist/shared/ui/Badge/Badge.d.ts +89 -0
- package/dist/shared/ui/Badge/Badge.js +1 -0
- package/dist/shared/ui/Badge/Badge.slots.d.ts +7 -0
- package/dist/shared/ui/Badge/Badge.slots.js +1 -0
- package/dist/shared/ui/Badge/Badge.styles.js +1 -0
- package/dist/shared/ui/Badge/index.d.ts +2 -0
- package/dist/shared/ui/Badge/index.js +1 -0
- package/dist/shared/ui/Button/Button.d.ts +82 -0
- package/dist/shared/ui/Button/Button.js +1 -0
- package/dist/shared/ui/Button/Button.slots.d.ts +7 -0
- package/dist/shared/ui/Button/Button.slots.js +1 -0
- package/dist/shared/ui/Button/Button.styles.js +1 -0
- package/dist/shared/ui/Button/index.d.ts +2 -0
- package/dist/shared/ui/Button/index.js +1 -0
- package/dist/shared/ui/Card/Card.d.ts +93 -0
- package/dist/shared/ui/Card/Card.js +1 -0
- package/dist/shared/ui/Card/Card.slots.d.ts +10 -0
- package/dist/shared/ui/Card/Card.slots.js +1 -0
- package/dist/shared/ui/Card/Card.styles.js +1 -0
- package/dist/shared/ui/Card/index.d.ts +2 -0
- package/dist/shared/ui/Card/index.js +1 -0
- package/dist/shared/ui/Collapsible/Collapsible.d.ts +57 -0
- package/dist/shared/ui/Collapsible/Collapsible.js +1 -0
- package/dist/shared/ui/Collapsible/Collapsible.slots.d.ts +10 -0
- package/dist/shared/ui/Collapsible/Collapsible.slots.js +1 -0
- package/dist/shared/ui/Collapsible/Collapsible.styles.js +1 -0
- package/dist/shared/ui/Collapsible/index.d.ts +2 -0
- package/dist/shared/ui/Collapsible/index.js +1 -0
- package/dist/shared/ui/Details/Details.d.ts +76 -0
- package/dist/shared/ui/Details/Details.js +1 -0
- package/dist/shared/ui/Details/Details.slots.d.ts +9 -0
- package/dist/shared/ui/Details/Details.slots.js +1 -0
- package/dist/shared/ui/Details/Details.styles.js +1 -0
- package/dist/shared/ui/Details/index.d.ts +2 -0
- package/dist/shared/ui/Details/index.js +1 -0
- package/dist/shared/ui/Dialog/Dialog.d.ts +147 -0
- package/dist/shared/ui/Dialog/Dialog.js +1 -0
- package/dist/shared/ui/Dialog/Dialog.slots.d.ts +17 -0
- package/dist/shared/ui/Dialog/Dialog.slots.js +1 -0
- package/dist/shared/ui/Dialog/Dialog.styles.js +1 -0
- package/dist/shared/ui/Dialog/index.d.ts +2 -0
- package/dist/shared/ui/Dialog/index.js +1 -0
- package/dist/shared/ui/ExternalLink/ExternalLink.d.ts +41 -0
- package/dist/shared/ui/ExternalLink/ExternalLink.js +1 -0
- package/dist/shared/ui/ExternalLink/ExternalLink.slots.d.ts +7 -0
- package/dist/shared/ui/ExternalLink/ExternalLink.slots.js +1 -0
- package/dist/shared/ui/ExternalLink/ExternalLink.styles.js +1 -0
- package/dist/shared/ui/ExternalLink/index.d.ts +2 -0
- package/dist/shared/ui/ExternalLink/index.js +1 -0
- package/dist/shared/ui/ExternalLink/toSafeHref.js +1 -0
- package/dist/shared/ui/Field/Field.d.ts +185 -0
- package/dist/shared/ui/Field/Field.js +1 -0
- package/dist/shared/ui/Field/Field.slots.d.ts +21 -0
- package/dist/shared/ui/Field/Field.slots.js +1 -0
- package/dist/shared/ui/Field/Field.styles.js +1 -0
- package/dist/shared/ui/Field/index.d.ts +2 -0
- package/dist/shared/ui/Field/index.js +1 -0
- package/dist/shared/ui/IconButton/IconButton.d.ts +48 -0
- package/dist/shared/ui/IconButton/IconButton.js +1 -0
- package/dist/shared/ui/IconButton/IconButton.slots.d.ts +7 -0
- package/dist/shared/ui/IconButton/IconButton.slots.js +1 -0
- package/dist/shared/ui/IconButton/IconButton.styles.js +1 -0
- package/dist/shared/ui/IconButton/index.d.ts +2 -0
- package/dist/shared/ui/IconButton/index.js +1 -0
- package/dist/shared/ui/Image/Image.d.ts +43 -0
- package/dist/shared/ui/Image/Image.js +1 -0
- package/dist/shared/ui/Image/Image.slots.d.ts +14 -0
- package/dist/shared/ui/Image/Image.slots.js +1 -0
- package/dist/shared/ui/Image/Image.styles.js +1 -0
- package/dist/shared/ui/Image/index.d.ts +3 -0
- package/dist/shared/ui/Image/index.js +1 -0
- package/dist/shared/ui/Image/types.d.ts +131 -0
- package/dist/shared/ui/InputGroup/InputGroup.d.ts +129 -0
- package/dist/shared/ui/InputGroup/InputGroup.js +1 -0
- package/dist/shared/ui/InputGroup/InputGroup.slots.d.ts +16 -0
- package/dist/shared/ui/InputGroup/InputGroup.slots.js +1 -0
- package/dist/shared/ui/InputGroup/InputGroup.styles.js +1 -0
- package/dist/shared/ui/InputGroup/index.d.ts +2 -0
- package/dist/shared/ui/InputGroup/index.js +1 -0
- package/dist/shared/ui/LtrAtom/LtrAtom.d.ts +31 -0
- package/dist/shared/ui/LtrAtom/LtrAtom.js +1 -0
- package/dist/shared/ui/LtrAtom/index.d.ts +1 -0
- package/dist/shared/ui/LtrAtom/index.js +1 -0
- package/dist/shared/ui/ScrollArea/ScrollArea.d.ts +86 -0
- package/dist/shared/ui/ScrollArea/ScrollArea.js +1 -0
- package/dist/shared/ui/ScrollArea/ScrollArea.slots.d.ts +12 -0
- package/dist/shared/ui/ScrollArea/ScrollArea.slots.js +1 -0
- package/dist/shared/ui/ScrollArea/ScrollArea.styles.js +1 -0
- package/dist/shared/ui/ScrollArea/index.d.ts +2 -0
- package/dist/shared/ui/ScrollArea/index.js +1 -0
- package/dist/shared/ui/Select/Select.context.d.ts +10 -0
- package/dist/shared/ui/Select/Select.context.js +1 -0
- package/dist/shared/ui/Select/Select.d.ts +243 -0
- package/dist/shared/ui/Select/Select.js +1 -0
- package/dist/shared/ui/Select/Select.slots.d.ts +20 -0
- package/dist/shared/ui/Select/Select.slots.js +1 -0
- package/dist/shared/ui/Select/Select.styles.js +1 -0
- package/dist/shared/ui/Select/index.d.ts +3 -0
- package/dist/shared/ui/Select/index.js +1 -0
- package/dist/shared/ui/SelectableTile/SelectableTile.d.ts +83 -0
- package/dist/shared/ui/SelectableTile/SelectableTile.js +1 -0
- package/dist/shared/ui/SelectableTile/SelectableTile.slots.d.ts +7 -0
- package/dist/shared/ui/SelectableTile/SelectableTile.slots.js +1 -0
- package/dist/shared/ui/SelectableTile/SelectableTile.styles.js +1 -0
- package/dist/shared/ui/SelectableTile/SelectableTileGroup.d.ts +82 -0
- package/dist/shared/ui/SelectableTile/SelectableTileGroup.js +1 -0
- package/dist/shared/ui/SelectableTile/index.d.ts +3 -0
- package/dist/shared/ui/SelectableTile/index.js +1 -0
- package/dist/shared/ui/Skeleton/Skeleton.d.ts +41 -0
- package/dist/shared/ui/Skeleton/Skeleton.js +1 -0
- package/dist/shared/ui/Skeleton/Skeleton.slots.d.ts +7 -0
- package/dist/shared/ui/Skeleton/Skeleton.slots.js +1 -0
- package/dist/shared/ui/Skeleton/Skeleton.styles.js +1 -0
- package/dist/shared/ui/Skeleton/index.d.ts +2 -0
- package/dist/shared/ui/Skeleton/index.js +1 -0
- package/dist/shared/ui/Text/Text.d.ts +87 -0
- package/dist/shared/ui/Text/Text.js +1 -0
- package/dist/shared/ui/Text/Text.slots.d.ts +7 -0
- package/dist/shared/ui/Text/Text.slots.js +1 -0
- package/dist/shared/ui/Text/Text.styles.js +1 -0
- package/dist/shared/ui/Text/index.d.ts +2 -0
- package/dist/shared/ui/Text/index.js +1 -0
- package/dist/shared/ui/TokenLogo/TokenLogo.d.ts +41 -0
- package/dist/shared/ui/TokenLogo/TokenLogo.js +1 -0
- package/dist/shared/ui/TokenLogo/index.d.ts +2 -0
- package/dist/shared/ui/TokenLogo/index.js +1 -0
- package/dist/shared/ui/TokenLogo/types.d.ts +64 -0
- package/dist/shared/ui/Tooltip/Tooltip.d.ts +171 -0
- package/dist/shared/ui/Tooltip/Tooltip.js +1 -0
- package/dist/shared/ui/Tooltip/Tooltip.slots.d.ts +11 -0
- package/dist/shared/ui/Tooltip/Tooltip.slots.js +1 -0
- package/dist/shared/ui/Tooltip/Tooltip.styles.js +1 -0
- package/dist/shared/ui/Tooltip/index.d.ts +2 -0
- package/dist/shared/ui/Tooltip/index.js +1 -0
- package/dist/shared/ui/WalletRow/WalletRow.d.ts +55 -0
- package/dist/shared/ui/WalletRow/WalletRow.js +1 -0
- package/dist/shared/ui/WalletRow/WalletRow.slots.d.ts +7 -0
- package/dist/shared/ui/WalletRow/WalletRow.slots.js +1 -0
- package/dist/shared/ui/WalletRow/WalletRow.styles.js +1 -0
- package/dist/shared/ui/WalletRow/index.d.ts +2 -0
- package/dist/shared/ui/WalletRow/index.js +1 -0
- package/dist/shared/utils/explorers.js +1 -0
- package/dist/shared/utils/joinClassNames.js +1 -0
- package/dist/shared/utils/logos/api.d.ts +54 -0
- package/dist/shared/utils/logos/api.js +1 -0
- package/dist/shared/utils/logos/chains.d.ts +32 -0
- package/dist/shared/utils/logos/chains.js +1 -0
- package/dist/shared/utils/logos/conventionUrls.js +1 -0
- package/dist/shared/utils/logos/index.js +1 -0
- package/dist/shared/utils/logos/resolveLogoSrc.js +1 -0
- package/dist/shared/utils/logos/types.d.ts +62 -0
- package/dist/shared/utils/mergeClassName.js +1 -0
- package/dist/shared/utils/mergeStyle.js +1 -0
- package/dist/shared/wallet/resolveSupportedChainIds.js +1 -0
- package/dist/shared/wallet/resolveSupportedChains.js +1 -0
- package/dist/shared/wallet/types.d.ts +103 -0
- package/dist/shared/wallet/useWalletState.d.ts +21 -0
- package/dist/shared/wallet/useWalletState.js +1 -0
- package/dist/shared/widgets/amount-entry/compound/AmountEntry.d.ts +59 -0
- package/dist/shared/widgets/amount-entry/compound/AmountEntry.js +1 -0
- package/dist/shared/widgets/amount-entry/compound/AmountEntry.slots.d.ts +15 -0
- package/dist/shared/widgets/amount-entry/compound/AmountEntry.slots.js +1 -0
- package/dist/shared/widgets/amount-entry/compound/AmountEntry.styles.js +1 -0
- package/dist/shared/widgets/amount-entry/compound/components/Flow.d.ts +14 -0
- package/dist/shared/widgets/amount-entry/compound/components/Flow.js +1 -0
- package/dist/shared/widgets/amount-entry/compound/components/Footer.d.ts +22 -0
- package/dist/shared/widgets/amount-entry/compound/components/Footer.js +1 -0
- package/dist/shared/widgets/amount-entry/compound/components/Header.d.ts +15 -0
- package/dist/shared/widgets/amount-entry/compound/components/Header.js +1 -0
- package/dist/shared/widgets/amount-entry/compound/components/Hero/Hero.d.ts +22 -0
- package/dist/shared/widgets/amount-entry/compound/components/Hero/Hero.js +1 -0
- package/dist/shared/widgets/amount-entry/compound/components/Hero/StaticBand.js +1 -0
- package/dist/shared/widgets/amount-entry/compound/components/Hero/SwapBackdrop.js +1 -0
- package/dist/shared/widgets/amount-entry/compound/components/Hero/index.d.ts +1 -0
- package/dist/shared/widgets/amount-entry/compound/components/Hero/index.js +1 -0
- package/dist/shared/widgets/amount-entry/compound/components/Hero/transitions.js +1 -0
- package/dist/shared/widgets/amount-entry/compound/components/Hero/useSwapState.js +1 -0
- package/dist/shared/widgets/amount-entry/compound/components/Hero/utils.js +1 -0
- package/dist/shared/widgets/amount-entry/compound/components/Pills.d.ts +22 -0
- package/dist/shared/widgets/amount-entry/compound/components/Pills.js +1 -0
- package/dist/shared/widgets/amount-entry/compound/context.js +1 -0
- package/dist/shared/widgets/amount-entry/compound/index.d.ts +3 -0
- package/dist/shared/widgets/amount-entry/compound/index.js +1 -0
- package/dist/shared/widgets/amount-entry/compound/types.d.ts +224 -0
- package/dist/shared/widgets/asset-descriptor.d.ts +27 -0
- package/dist/shared/widgets/asset-descriptor.js +1 -0
- package/dist/shared/widgets/asset-picker/compound/AssetPicker.d.ts +51 -0
- package/dist/shared/widgets/asset-picker/compound/AssetPicker.js +1 -0
- package/dist/shared/widgets/asset-picker/compound/AssetPicker.slots.d.ts +11 -0
- package/dist/shared/widgets/asset-picker/compound/AssetPicker.slots.js +1 -0
- package/dist/shared/widgets/asset-picker/compound/AssetPicker.styles.js +1 -0
- package/dist/shared/widgets/asset-picker/compound/components/Asset.d.ts +30 -0
- package/dist/shared/widgets/asset-picker/compound/components/Asset.js +1 -0
- package/dist/shared/widgets/asset-picker/compound/components/Footer.d.ts +16 -0
- package/dist/shared/widgets/asset-picker/compound/components/Footer.js +1 -0
- package/dist/shared/widgets/asset-picker/compound/components/Header.d.ts +19 -0
- package/dist/shared/widgets/asset-picker/compound/components/Header.js +1 -0
- package/dist/shared/widgets/asset-picker/compound/components/List.d.ts +22 -0
- package/dist/shared/widgets/asset-picker/compound/components/List.js +1 -0
- package/dist/shared/widgets/asset-picker/compound/context.js +1 -0
- package/dist/shared/widgets/asset-picker/compound/index.d.ts +3 -0
- package/dist/shared/widgets/asset-picker/compound/index.js +1 -0
- package/dist/shared/widgets/asset-picker/compound/types.d.ts +212 -0
- package/dist/shared/widgets/confirm-transfer/compound/ConfirmTransfer.d.ts +64 -0
- package/dist/shared/widgets/confirm-transfer/compound/ConfirmTransfer.js +1 -0
- package/dist/shared/widgets/confirm-transfer/compound/ConfirmTransfer.slots.d.ts +16 -0
- package/dist/shared/widgets/confirm-transfer/compound/ConfirmTransfer.slots.js +1 -0
- package/dist/shared/widgets/confirm-transfer/compound/ConfirmTransfer.styles.js +1 -0
- package/dist/shared/widgets/confirm-transfer/compound/components/Amounts.d.ts +15 -0
- package/dist/shared/widgets/confirm-transfer/compound/components/Amounts.js +1 -0
- package/dist/shared/widgets/confirm-transfer/compound/components/Breakdown.d.ts +17 -0
- package/dist/shared/widgets/confirm-transfer/compound/components/Breakdown.js +1 -0
- package/dist/shared/widgets/confirm-transfer/compound/components/Disclaimer.d.ts +15 -0
- package/dist/shared/widgets/confirm-transfer/compound/components/Disclaimer.js +1 -0
- package/dist/shared/widgets/confirm-transfer/compound/components/Footer.d.ts +26 -0
- package/dist/shared/widgets/confirm-transfer/compound/components/Footer.js +1 -0
- package/dist/shared/widgets/confirm-transfer/compound/components/Header.d.ts +13 -0
- package/dist/shared/widgets/confirm-transfer/compound/components/Header.js +1 -0
- package/dist/shared/widgets/confirm-transfer/compound/components/Hero.d.ts +16 -0
- package/dist/shared/widgets/confirm-transfer/compound/components/Hero.js +1 -0
- package/dist/shared/widgets/confirm-transfer/compound/components/Meta.d.ts +16 -0
- package/dist/shared/widgets/confirm-transfer/compound/components/Meta.js +1 -0
- package/dist/shared/widgets/confirm-transfer/compound/components/QuoteTimer.js +1 -0
- package/dist/shared/widgets/confirm-transfer/compound/components/splitAmount.js +1 -0
- package/dist/shared/widgets/confirm-transfer/compound/context.js +1 -0
- package/dist/shared/widgets/confirm-transfer/compound/index.d.ts +3 -0
- package/dist/shared/widgets/confirm-transfer/compound/index.js +1 -0
- package/dist/shared/widgets/confirm-transfer/compound/types.d.ts +338 -0
- package/dist/shared/widgets/error-state/compound/ErrorState.d.ts +96 -0
- package/dist/shared/widgets/error-state/compound/ErrorState.js +1 -0
- package/dist/shared/widgets/error-state/compound/ErrorState.slots.d.ts +18 -0
- package/dist/shared/widgets/error-state/compound/ErrorState.slots.js +1 -0
- package/dist/shared/widgets/error-state/compound/ErrorState.styles.js +1 -0
- package/dist/shared/widgets/error-state/compound/components/Actions.d.ts +17 -0
- package/dist/shared/widgets/error-state/compound/components/Actions.js +1 -0
- package/dist/shared/widgets/error-state/compound/components/AssetValue.d.ts +20 -0
- package/dist/shared/widgets/error-state/compound/components/AssetValue.js +1 -0
- package/dist/shared/widgets/error-state/compound/components/Detail.d.ts +14 -0
- package/dist/shared/widgets/error-state/compound/components/Detail.js +1 -0
- package/dist/shared/widgets/error-state/compound/components/Details.d.ts +12 -0
- package/dist/shared/widgets/error-state/compound/components/Details.js +1 -0
- package/dist/shared/widgets/error-state/compound/components/DisclosureChevron.d.ts +11 -0
- package/dist/shared/widgets/error-state/compound/components/DisclosureChevron.js +1 -0
- package/dist/shared/widgets/error-state/compound/components/Header.d.ts +13 -0
- package/dist/shared/widgets/error-state/compound/components/Header.js +1 -0
- package/dist/shared/widgets/error-state/compound/components/HelpInfo.d.ts +10 -0
- package/dist/shared/widgets/error-state/compound/components/HelpInfo.js +1 -0
- package/dist/shared/widgets/error-state/compound/components/Hero.d.ts +9 -0
- package/dist/shared/widgets/error-state/compound/components/Hero.js +1 -0
- package/dist/shared/widgets/error-state/compound/components/MoreDetails.d.ts +18 -0
- package/dist/shared/widgets/error-state/compound/components/MoreDetails.js +1 -0
- package/dist/shared/widgets/error-state/compound/components/Rows.d.ts +57 -0
- package/dist/shared/widgets/error-state/compound/components/Rows.js +1 -0
- package/dist/shared/widgets/error-state/compound/components/StatusValue.d.ts +14 -0
- package/dist/shared/widgets/error-state/compound/components/StatusValue.js +1 -0
- package/dist/shared/widgets/error-state/compound/context.js +1 -0
- package/dist/shared/widgets/error-state/compound/index.d.ts +3 -0
- package/dist/shared/widgets/error-state/compound/index.js +1 -0
- package/dist/shared/widgets/error-state/compound/types.d.ts +291 -0
- package/dist/shared/widgets/processing-state/compound/ProcessingState.d.ts +77 -0
- package/dist/shared/widgets/processing-state/compound/ProcessingState.js +1 -0
- package/dist/shared/widgets/processing-state/compound/ProcessingState.slots.d.ts +15 -0
- package/dist/shared/widgets/processing-state/compound/ProcessingState.slots.js +1 -0
- package/dist/shared/widgets/processing-state/compound/ProcessingState.styles.js +1 -0
- package/dist/shared/widgets/processing-state/compound/components/Actions.d.ts +17 -0
- package/dist/shared/widgets/processing-state/compound/components/Actions.js +1 -0
- package/dist/shared/widgets/processing-state/compound/components/Detail.d.ts +14 -0
- package/dist/shared/widgets/processing-state/compound/components/Detail.js +1 -0
- package/dist/shared/widgets/processing-state/compound/components/Details.d.ts +12 -0
- package/dist/shared/widgets/processing-state/compound/components/Details.js +1 -0
- package/dist/shared/widgets/processing-state/compound/components/Header.d.ts +15 -0
- package/dist/shared/widgets/processing-state/compound/components/Header.js +1 -0
- package/dist/shared/widgets/processing-state/compound/components/Hero.d.ts +16 -0
- package/dist/shared/widgets/processing-state/compound/components/Hero.js +1 -0
- package/dist/shared/widgets/processing-state/compound/components/Rows.d.ts +36 -0
- package/dist/shared/widgets/processing-state/compound/components/Rows.js +1 -0
- package/dist/shared/widgets/processing-state/compound/components/StatusPill.d.ts +13 -0
- package/dist/shared/widgets/processing-state/compound/components/StatusPill.js +1 -0
- package/dist/shared/widgets/processing-state/compound/context.js +1 -0
- package/dist/shared/widgets/processing-state/compound/index.d.ts +3 -0
- package/dist/shared/widgets/processing-state/compound/index.js +1 -0
- package/dist/shared/widgets/processing-state/compound/types.d.ts +216 -0
- package/dist/shared/widgets/success-state/compound/SuccessState.d.ts +105 -0
- package/dist/shared/widgets/success-state/compound/SuccessState.js +1 -0
- package/dist/shared/widgets/success-state/compound/SuccessState.slots.d.ts +21 -0
- package/dist/shared/widgets/success-state/compound/SuccessState.slots.js +1 -0
- package/dist/shared/widgets/success-state/compound/SuccessState.styles.js +1 -0
- package/dist/shared/widgets/success-state/compound/components/Actions.d.ts +18 -0
- package/dist/shared/widgets/success-state/compound/components/Actions.js +1 -0
- package/dist/shared/widgets/success-state/compound/components/AssetValue.d.ts +18 -0
- package/dist/shared/widgets/success-state/compound/components/AssetValue.js +1 -0
- package/dist/shared/widgets/success-state/compound/components/Detail.d.ts +18 -0
- package/dist/shared/widgets/success-state/compound/components/Detail.js +1 -0
- package/dist/shared/widgets/success-state/compound/components/Details.d.ts +16 -0
- package/dist/shared/widgets/success-state/compound/components/Details.js +1 -0
- package/dist/shared/widgets/success-state/compound/components/Header.d.ts +13 -0
- package/dist/shared/widgets/success-state/compound/components/Header.js +1 -0
- package/dist/shared/widgets/success-state/compound/components/Headline.d.ts +16 -0
- package/dist/shared/widgets/success-state/compound/components/Headline.js +1 -0
- package/dist/shared/widgets/success-state/compound/components/Hero.d.ts +10 -0
- package/dist/shared/widgets/success-state/compound/components/Hero.js +1 -0
- package/dist/shared/widgets/success-state/compound/components/MoreDetails.d.ts +19 -0
- package/dist/shared/widgets/success-state/compound/components/MoreDetails.js +1 -0
- package/dist/shared/widgets/success-state/compound/components/RouteValue.d.ts +15 -0
- package/dist/shared/widgets/success-state/compound/components/RouteValue.js +1 -0
- package/dist/shared/widgets/success-state/compound/components/Rows.d.ts +69 -0
- package/dist/shared/widgets/success-state/compound/components/Rows.js +1 -0
- package/dist/shared/widgets/success-state/compound/components/StatusPill.d.ts +13 -0
- package/dist/shared/widgets/success-state/compound/components/StatusPill.js +1 -0
- package/dist/shared/widgets/success-state/compound/context.js +1 -0
- package/dist/shared/widgets/success-state/compound/index.d.ts +3 -0
- package/dist/shared/widgets/success-state/compound/index.js +1 -0
- package/dist/shared/widgets/success-state/compound/types.d.ts +307 -0
- package/dist/storage/adapters.d.ts +29 -0
- package/dist/storage/adapters.js +1 -0
- package/dist/storage/context.d.ts +62 -0
- package/dist/storage/context.js +1 -0
- package/dist/storage/createKitStorage.d.ts +45 -0
- package/dist/storage/createKitStorage.js +1 -0
- package/dist/storage/index.d.ts +4 -0
- package/dist/storage/index.js +1 -0
- package/dist/storage/types.d.ts +26 -0
- package/dist/stridge/StridgeContext.d.ts +29 -0
- package/dist/stridge/StridgeContext.js +1 -0
- package/dist/stridge/StridgeProvider.d.ts +158 -0
- package/dist/stridge/StridgeProvider.js +1 -0
- package/dist/stridge/stubs.js +1 -0
- package/dist/styles/index.css +3494 -0
- package/dist/types.d.ts +15 -0
- package/dist/types.js +1 -0
- package/dist/ui/index.d.ts +48 -0
- package/dist/ui/index.js +1 -0
- package/dist/utils/src/use-copy-to-clipboard.js +1 -0
- package/dist/wallet/index.d.ts +3 -0
- package/dist/wallet/index.js +1 -0
- package/dist/withdraw/compound/index.d.ts +22 -0
- package/dist/withdraw/compound/index.js +1 -0
- package/dist/withdraw/dialog/index.d.ts +2 -0
- package/dist/withdraw/dialog/index.js +1 -0
- package/package.json +156 -0
package/dist/flows/deposit/widgets/deposit-status-banner/compound/DepositStatusBanner.slots.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e={root:`deposit-status-banner`,body:`deposit-status-banner-body`,hero:`deposit-status-banner-hero`,logo:`deposit-status-banner-logo`,badge:`deposit-status-banner-badge`,text:`deposit-status-banner-text`,headline:`deposit-status-banner-headline`,subline:`deposit-status-banner-subline`,close:`deposit-status-banner-close`,details:`deposit-status-banner-details`,detail:`deposit-status-banner-detail`,footer:`deposit-status-banner-footer`,toggle:`deposit-status-banner-toggle`,primaryAction:`deposit-status-banner-primary-action`};export{e as DEPOSIT_STATUS_BANNER_SLOTS};
|
package/dist/flows/deposit/widgets/deposit-status-banner/compound/DepositStatusBanner.styles.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e={root:{"DepositStatusBanner__styles.root":`DepositStatusBanner__styles.root`,"position-kVAEAm":`x10l6tqk`,"left-kbCHJM":`x1nrll8i`,"bottom-krVfgx":`x191j7n5`,"width-kzqmXN":`xfxxnmn`,"maxWidth-ks0D6T":`x1dt7z5j`,"zIndex-kY2c9j":`x1u8a7rm`,"display-k1xSpc":`x78zum5`,"flexDirection-kXwgrk":`xdt5ytf`,"backgroundColor-kWkggS":`x3cgcfv`,"borderWidth-kMzoRj":`xmkeg23`,"borderStyle-ksu8eU":`x1y0btm7`,"borderColor-kVAM5u":`x1aqcfi1`,"borderRadius-kaIpWk":`x5bw3pk`,"boxShadow-kGVxlE":`x1g7ug4b`,"overflow-kVQacm":`xb3r6kr`,$$css:`@stridge/kit:src/flows/deposit/widgets/deposit-status-banner/compound/DepositStatusBanner.styles.ts:24`},rootInline:{"DepositStatusBanner__styles.rootInline":`DepositStatusBanner__styles.rootInline`,"position-kVAEAm":`x1uhb9sk`,"left-kbCHJM":`x1t8mvi6`,"bottom-krVfgx":`xdd4er5`,$$css:`@stridge/kit:src/flows/deposit/widgets/deposit-status-banner/compound/DepositStatusBanner.styles.ts:53`},body:{"DepositStatusBanner__styles.body":`DepositStatusBanner__styles.body`,"display-k1xSpc":`x78zum5`,"alignItems-kGNEyG":`x1cy8zhl`,"gap-kOIVth":`x1v2ro7d`,"paddingTop-kLKAdn":`xyinxu5`,"paddingBottom-kGO01o":`xsag5q8`,"paddingInlineStart-kZCmMZ":`x1onr9mi`,"paddingInlineEnd-kwRFfy":`xpdmqnj`,$$css:`@stridge/kit:src/flows/deposit/widgets/deposit-status-banner/compound/DepositStatusBanner.styles.ts:58`},logo:{"DepositStatusBanner__styles.logo":`DepositStatusBanner__styles.logo`,"position-kVAEAm":`x1n2onr6`,"flexShrink-kmuXW":`x2lah0s`,"width-kzqmXN":`x1td3qas`,"height-kZKoxP":`x10w6t97`,$$css:`@stridge/kit:src/flows/deposit/widgets/deposit-status-banner/compound/DepositStatusBanner.styles.ts:67`},badge:{"DepositStatusBanner__styles.badge":`DepositStatusBanner__styles.badge`,"position-kVAEAm":`x10l6tqk`,"bottom-krVfgx":`x1t1qrwb`,"insetInlineEnd-kt4wiu":`x1d0qlrl`,"width-kzqmXN":`x1kky2od`,"height-kZKoxP":`xlup9mm`,"borderRadius-kaIpWk":`x1npxkrn`,"display-k1xSpc":`x78zum5`,"alignItems-kGNEyG":`x6s0dn4`,"justifyContent-kjj79g":`xl56j7k`,"borderWidth-kMzoRj":`xdh2fpr`,"borderStyle-ksu8eU":`x1y0btm7`,"borderColor-kVAM5u":`xfbvt8z`,"zIndex-kY2c9j":`xhtitgo`,$$css:`@stridge/kit:src/flows/deposit/widgets/deposit-status-banner/compound/DepositStatusBanner.styles.ts:73`},badgePending:{"DepositStatusBanner__styles.badgePending":`DepositStatusBanner__styles.badgePending`,"backgroundColor-kWkggS":`xelfwhf`,"color-kMwMTN":`x1e8cn3g`,"animationName-kKVMdj":`x15qid8x x1aquc0h`,"animationDuration-k44tkh":`x1xixsfh`,"animationIterationCount-ko0y90":`xa4qsjk`,"animationTimingFunction-kyAemX":`x1s7li7e`,$$css:`@stridge/kit:src/flows/deposit/widgets/deposit-status-banner/compound/DepositStatusBanner.styles.ts:93`},badgeSucceeded:{"DepositStatusBanner__styles.badgeSucceeded":`DepositStatusBanner__styles.badgeSucceeded`,"backgroundColor-kWkggS":`xelfwhf`,"color-kMwMTN":`x1e8cn3g`,$$css:`@stridge/kit:src/flows/deposit/widgets/deposit-status-banner/compound/DepositStatusBanner.styles.ts:104`},badgeFailed:{"DepositStatusBanner__styles.badgeFailed":`DepositStatusBanner__styles.badgeFailed`,"backgroundColor-kWkggS":`x1qvyn6m`,"color-kMwMTN":`x18o46el`,$$css:`@stridge/kit:src/flows/deposit/widgets/deposit-status-banner/compound/DepositStatusBanner.styles.ts:108`},badgeIcon:{"DepositStatusBanner__styles.badgeIcon":`DepositStatusBanner__styles.badgeIcon`,"width-kzqmXN":`x1fsd2vl`,"height-kZKoxP":`x170jfvy`,$$css:`@stridge/kit:src/flows/deposit/widgets/deposit-status-banner/compound/DepositStatusBanner.styles.ts:112`},text:{"DepositStatusBanner__styles.text":`DepositStatusBanner__styles.text`,"flex-kUk6DE":`x12lumcd`,"display-k1xSpc":`x78zum5`,"flexDirection-kXwgrk":`xdt5ytf`,"gap-kOIVth":`x195vfkc`,"minWidth-k7Eaqz":`xeuugli`,$$css:`@stridge/kit:src/flows/deposit/widgets/deposit-status-banner/compound/DepositStatusBanner.styles.ts:116`},headline:{"DepositStatusBanner__styles.headline":`DepositStatusBanner__styles.headline`,"fontFamily-kMv6JI":`xlaww2m`,"fontSize-kGuDYH":`x14qa7mu`,"fontWeight-k63SB2":`x1qvi77d`,"lineHeight-kLWn49":`x2fnr2h`,"color-kMwMTN":`x1vits3x`,"margin-kogj98":`x1ghz6dp`,$$css:`@stridge/kit:src/flows/deposit/widgets/deposit-status-banner/compound/DepositStatusBanner.styles.ts:123`},subline:{"DepositStatusBanner__styles.subline":`DepositStatusBanner__styles.subline`,"fontFamily-kMv6JI":`xlaww2m`,"fontSize-kGuDYH":`x1oae1zf`,"fontWeight-k63SB2":`xxjjie5`,"lineHeight-kLWn49":`x14vj8e1`,"color-kMwMTN":`xi96bwj`,"margin-kogj98":`x1ghz6dp`,$$css:`@stridge/kit:src/flows/deposit/widgets/deposit-status-banner/compound/DepositStatusBanner.styles.ts:131`},detailsInner:{"DepositStatusBanner__styles.detailsInner":`DepositStatusBanner__styles.detailsInner`,"paddingInline-kg3NbH":`xqin4a2`,"paddingBottom-kGO01o":`xsag5q8`,$$css:`@stridge/kit:src/flows/deposit/widgets/deposit-status-banner/compound/DepositStatusBanner.styles.ts:145`},details:{"DepositStatusBanner__styles.details":`DepositStatusBanner__styles.details`,"borderRadius-kaIpWk":`x12ur2as`,"backgroundColor-kWkggS":`x407w7c`,"borderWidth-kMzoRj":`xmkeg23`,"borderStyle-ksu8eU":`x1y0btm7`,"borderColor-kVAM5u":`x1bue7yx`,"display-k1xSpc":`x78zum5`,"flexDirection-kXwgrk":`xdt5ytf`,$$css:`@stridge/kit:src/flows/deposit/widgets/deposit-status-banner/compound/DepositStatusBanner.styles.ts:153`},detailsRow:{"DepositStatusBanner__styles.detailsRow":`DepositStatusBanner__styles.detailsRow`,"display-k1xSpc":`x78zum5`,"alignItems-kGNEyG":`x6s0dn4`,"justifyContent-kjj79g":`x1qughib`,"paddingBlock-k8WAf4":`x1vvogim`,"paddingInline-kg3NbH":`xaope02`,"gap-kOIVth":`x1v2ro7d`,"borderTopWidth-kEafiO":`x178xt8z x1g31smg`,"borderTopStyle-kPef9Z":`x13fuv20`,"borderTopColor-kLZC3w":`x1ooxri5`,"fontFamily-kMv6JI":`xlaww2m`,"fontSize-kGuDYH":`x1oae1zf`,"fontWeight-k63SB2":`xi0sa8g`,"lineHeight-kLWn49":`x2fnr2h`,"color-kMwMTN":`x1vits3x`,$$css:`@stridge/kit:src/flows/deposit/widgets/deposit-status-banner/compound/DepositStatusBanner.styles.ts:162`},detailsLabel:{"DepositStatusBanner__styles.detailsLabel":`DepositStatusBanner__styles.detailsLabel`,"fontFamily-kMv6JI":`xlaww2m`,"fontSize-kGuDYH":`x1oae1zf`,"fontWeight-k63SB2":`xi0sa8g`,"lineHeight-kLWn49":`x2fnr2h`,"color-kMwMTN":`xi96bwj`,$$css:`@stridge/kit:src/flows/deposit/widgets/deposit-status-banner/compound/DepositStatusBanner.styles.ts:188`},detailsValue:{"DepositStatusBanner__styles.detailsValue":`DepositStatusBanner__styles.detailsValue`,"fontFamily-kMv6JI":`xlaww2m`,"fontSize-kGuDYH":`x1oae1zf`,"fontWeight-k63SB2":`xi0sa8g`,"lineHeight-kLWn49":`x2fnr2h`,"color-kMwMTN":`x1vits3x`,$$css:`@stridge/kit:src/flows/deposit/widgets/deposit-status-banner/compound/DepositStatusBanner.styles.ts:195`},detailsValueMono:{"DepositStatusBanner__styles.detailsValueMono":`DepositStatusBanner__styles.detailsValueMono`,"fontFamily-kMv6JI":`x47j52l`,$$css:`@stridge/kit:src/flows/deposit/widgets/deposit-status-banner/compound/DepositStatusBanner.styles.ts:202`},footer:{"DepositStatusBanner__styles.footer":`DepositStatusBanner__styles.footer`,"display-k1xSpc":`x78zum5`,"alignItems-kGNEyG":`x6s0dn4`,"justifyContent-kjj79g":`x1qughib`,"gap-kOIVth":`x1v2ro7d`,"paddingBlock-k8WAf4":`xp59q4u`,"paddingInline-kg3NbH":`xaope02`,"borderTopWidth-kEafiO":`x178xt8z`,"borderTopStyle-kPef9Z":`x13fuv20`,"borderTopColor-kLZC3w":`x1ooxri5`,$$css:`@stridge/kit:src/flows/deposit/widgets/deposit-status-banner/compound/DepositStatusBanner.styles.ts:209`}};export{e as styles};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { DepositStatusBannerBodyProps } from "../types.js";
|
|
2
|
+
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
|
+
|
|
4
|
+
//#region src/flows/deposit/widgets/deposit-status-banner/compound/components/Body.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* Top row container. Hosts the Hero on the leading edge and the Close affordance on the trailing
|
|
7
|
+
* edge. Consumers can compose `<DepositStatusBanner.Hero />` + `<DepositStatusBanner.Close />`
|
|
8
|
+
* inside, or replace either part with custom JSX while keeping the layout.
|
|
9
|
+
*/
|
|
10
|
+
declare function DepositStatusBannerBody({
|
|
11
|
+
className,
|
|
12
|
+
style,
|
|
13
|
+
children,
|
|
14
|
+
...rest
|
|
15
|
+
}: DepositStatusBannerBodyProps): _$react_jsx_runtime0.JSX.Element;
|
|
16
|
+
//#endregion
|
|
17
|
+
export { DepositStatusBannerBody };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{DEPOSIT_STATUS_BANNER_SLOTS as e}from"../DepositStatusBanner.slots.js";import{styles as t}from"../DepositStatusBanner.styles.js";import{jsx as n}from"react/jsx-runtime";import*as r from"@stylexjs/stylex";function i({className:i,style:a,children:o,...s}){let c=r.props(t.body);return n(`div`,{"data-stridge-slot":e.body,...s,className:[c.className,i].filter(Boolean).join(` `),style:{...c.style,...a},children:o})}export{i as DepositStatusBannerBody};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { DepositStatusBannerCloseProps } from "../types.js";
|
|
2
|
+
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
|
+
|
|
4
|
+
//#region src/flows/deposit/widgets/deposit-status-banner/compound/components/Close.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* X close affordance positioned on the trailing edge of the Body. Reads `onDismiss` from context
|
|
7
|
+
* and renders nothing when the host hasn't supplied a handler — that's how callers opt out of
|
|
8
|
+
* the dismiss control while still rendering everything else. Wraps the kit's `IconButton` so
|
|
9
|
+
* radius / variant / hover styles track host theming.
|
|
10
|
+
*/
|
|
11
|
+
declare function DepositStatusBannerClose(props: DepositStatusBannerCloseProps): _$react_jsx_runtime0.JSX.Element | null;
|
|
12
|
+
//#endregion
|
|
13
|
+
export { DepositStatusBannerClose };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{useLingui as e}from"../../../../../../shared/i18n/useLingui.js";import"../../../../../../i18n/index.js";import{XIcon as t}from"../../../../../../shared/icons/XIcon.js";import"../../../../../../icons/index.js";import{IconButton as n}from"../../../../../../shared/ui/IconButton/IconButton.js";import"../../../../../../shared/ui/IconButton/index.js";import{DEPOSIT_STATUS_BANNER_SLOTS as r}from"../DepositStatusBanner.slots.js";import{useDepositStatusBannerContext as i}from"../context.js";import{jsx as a}from"react/jsx-runtime";function o(o){let{onDismiss:s}=i(`DepositStatusBanner.Close`),{_:c}=e();return s?a(n,{"aria-label":o[`aria-label`]??c({id:`UqHbdz`,message:`Dismiss pending deposit notice`}),onClick:s,"data-stridge-slot":r.close,children:a(t,{"aria-hidden":!0})}):null}export{o as DepositStatusBannerClose};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { DepositStatusBannerDetailProps } from "../types.js";
|
|
2
|
+
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
|
+
|
|
4
|
+
//#region src/flows/deposit/widgets/deposit-status-banner/compound/components/Detail.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* Single detail row inside `DepositStatusBanner.Details`. Renders label on the leading edge,
|
|
7
|
+
* value on the trailing edge.
|
|
8
|
+
*/
|
|
9
|
+
declare function DepositStatusBannerDetail({
|
|
10
|
+
label,
|
|
11
|
+
value
|
|
12
|
+
}: DepositStatusBannerDetailProps): _$react_jsx_runtime0.JSX.Element;
|
|
13
|
+
//#endregion
|
|
14
|
+
export { DepositStatusBannerDetail };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{DEPOSIT_STATUS_BANNER_SLOTS as e}from"../DepositStatusBanner.slots.js";import{styles as t}from"../DepositStatusBanner.styles.js";import{jsx as n,jsxs as r}from"react/jsx-runtime";import*as i from"@stylexjs/stylex";function a({label:a,value:o}){return r(`div`,{"data-stridge-slot":e.detail,...i.props(t.detailsRow),children:[n(`span`,{...i.props(t.detailsLabel),children:a}),o]})}export{a as DepositStatusBannerDetail};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { DepositStatusBannerDetailsProps } from "../types.js";
|
|
2
|
+
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
|
+
|
|
4
|
+
//#region src/flows/deposit/widgets/deposit-status-banner/compound/components/Details.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* Expanded detail panel container — renders a `Collapsible.Panel` so the show/hide transition
|
|
7
|
+
* animates smoothly via the kit's shared collapsible primitive (height transition + reduced-motion
|
|
8
|
+
* fallback baked in). The Panel reads `open` from the parent `Collapsible` that the banner root
|
|
9
|
+
* set up against the `expanded` prop.
|
|
10
|
+
*
|
|
11
|
+
* The Panel is intentionally style-free; an inner `detailsInner` wrapper owns the framing
|
|
12
|
+
* padding so the panel-element box only carries the height transition. Mixing padding with the
|
|
13
|
+
* transition caused the open/close motion to feel jumpy. Row dividers are handled by the row
|
|
14
|
+
* style itself via `:first-child`, so callers compose Detail rows in whatever order they like.
|
|
15
|
+
*/
|
|
16
|
+
declare function DepositStatusBannerDetails({
|
|
17
|
+
children
|
|
18
|
+
}: DepositStatusBannerDetailsProps): _$react_jsx_runtime0.JSX.Element;
|
|
19
|
+
//#endregion
|
|
20
|
+
export { DepositStatusBannerDetails };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{Collapsible as e}from"../../../../../../shared/ui/Collapsible/Collapsible.js";import"../../../../../../shared/ui/Collapsible/index.js";import{DEPOSIT_STATUS_BANNER_SLOTS as t}from"../DepositStatusBanner.slots.js";import{styles as n}from"../DepositStatusBanner.styles.js";import{jsx as r}from"react/jsx-runtime";import*as i from"@stylexjs/stylex";function a({children:a}){return r(e.Panel,{"data-stridge-slot":t.details,children:r(`div`,{...i.props(n.detailsInner),children:r(`div`,{...i.props(n.details),children:a})})})}export{a as DepositStatusBannerDetails};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { DepositStatusBannerFooterProps } from "../types.js";
|
|
2
|
+
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
|
+
|
|
4
|
+
//#region src/flows/deposit/widgets/deposit-status-banner/compound/components/Footer.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* Bottom row container. Holds the toggle on the leading edge and the primary action on the
|
|
7
|
+
* trailing edge. Consumers compose `<DepositStatusBanner.Toggle />` +
|
|
8
|
+
* `<DepositStatusBanner.PrimaryAction />` inside.
|
|
9
|
+
*/
|
|
10
|
+
declare function DepositStatusBannerFooter({
|
|
11
|
+
className,
|
|
12
|
+
style,
|
|
13
|
+
children,
|
|
14
|
+
...rest
|
|
15
|
+
}: DepositStatusBannerFooterProps): _$react_jsx_runtime0.JSX.Element;
|
|
16
|
+
//#endregion
|
|
17
|
+
export { DepositStatusBannerFooter };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{DEPOSIT_STATUS_BANNER_SLOTS as e}from"../DepositStatusBanner.slots.js";import{styles as t}from"../DepositStatusBanner.styles.js";import{jsx as n}from"react/jsx-runtime";import*as r from"@stylexjs/stylex";function i({className:i,style:a,children:o,...s}){let c=r.props(t.footer);return n(`div`,{"data-stridge-slot":e.footer,...s,className:[c.className,i].filter(Boolean).join(` `),style:{...c.style,...a},children:o})}export{i as DepositStatusBannerFooter};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
|
+
|
|
3
|
+
//#region src/flows/deposit/widgets/deposit-status-banner/compound/components/Hero.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* Hero block: token logo with status badge, headline, and subline. Reads everything from
|
|
6
|
+
* `DepositStatusBanner` context — pass `kind`, `asset`, `headline`, and `subline` on the root
|
|
7
|
+
* to drive what renders here.
|
|
8
|
+
*
|
|
9
|
+
* Lifecycle transitions (pending → succeeded → failed) animate via `motion/react` — the same
|
|
10
|
+
* library the orchestrator uses for step jumps. The badge icon scales in/out and the headline +
|
|
11
|
+
* subline cross-fade with a slight slide + blur. The token logo and the badge ring stay
|
|
12
|
+
* mounted across kind changes (their surface chrome shouldn't blink) so only the meaningful
|
|
13
|
+
* content moves.
|
|
14
|
+
*/
|
|
15
|
+
declare function DepositStatusBannerHero(): _$react_jsx_runtime0.JSX.Element;
|
|
16
|
+
//#endregion
|
|
17
|
+
export { DepositStatusBannerHero };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{AlertIcon as e}from"../../../../../../shared/icons/AlertIcon.js";import{ArrowDownIcon as t}from"../../../../../../shared/icons/ArrowDownIcon.js";import{CheckIcon as n}from"../../../../../../shared/icons/CheckIcon.js";import"../../../../../../icons/index.js";import{TokenLogo as r}from"../../../../../../shared/ui/TokenLogo/TokenLogo.js";import"../../../../../../shared/ui/TokenLogo/index.js";import{DEPOSIT_STATUS_BANNER_SLOTS as i}from"../DepositStatusBanner.slots.js";import{styles as a}from"../DepositStatusBanner.styles.js";import{useDepositStatusBannerContext as o}from"../context.js";import{Fragment as s,jsx as c,jsxs as l}from"react/jsx-runtime";import*as u from"@stylexjs/stylex";import{AnimatePresence as d,motion as f}from"motion/react";const p=[.16,1,.3,1],m=.22,h=.08,g=.14,_={enter:{opacity:0,y:6,filter:`blur(4px)`},center:{opacity:1,y:0,filter:`blur(0px)`,transition:{duration:m,delay:h,ease:p}},exit:{opacity:0,y:-6,filter:`blur(4px)`,transition:{duration:g,ease:p}}},v={enter:{opacity:0,scale:.6},center:{opacity:1,scale:1,transition:{duration:m,delay:h,ease:p}},exit:{opacity:0,scale:.6,transition:{duration:g,ease:p}}};function y(){let{kind:e,asset:t,headline:n,subline:p}=o(`DepositStatusBanner.Hero`);return l(s,{children:[l(`span`,{"data-stridge-slot":i.logo,...u.props(a.logo),children:[c(r,{size:32,symbol:t.symbol,...typeof t.chainId==`number`?{chainId:t.chainId}:{},...t.address?{address:t.address}:{},...t.isNative===void 0?{}:{isNative:t.isNative},...t.logoUrl?{logoUrl:t.logoUrl}:{},hideChainBadge:!0}),c(`span`,{"aria-hidden":!0,"data-stridge-slot":i.badge,...u.props(a.badge,e===`succeeded`&&a.badgeSucceeded,e===`failed`&&a.badgeFailed,e===`pending`&&a.badgePending),children:c(d,{mode:`wait`,initial:!1,children:c(f.span,{variants:v,initial:`enter`,animate:`center`,exit:`exit`,style:{display:`flex`,alignItems:`center`,justifyContent:`center`},children:c(b,{kind:e})},e)})})]}),c(`div`,{"data-stridge-slot":i.text,...u.props(a.text),children:c(d,{mode:`wait`,initial:!1,children:l(f.div,{variants:_,initial:`enter`,animate:`center`,exit:`exit`,style:{display:`flex`,flexDirection:`column`,gap:`2px`,minWidth:0},children:[c(`span`,{"data-stridge-slot":i.headline,...u.props(a.headline),children:n}),c(`span`,{"data-stridge-slot":i.subline,...u.props(a.subline),children:p})]},e)})})]})}function b({kind:r}){let i=u.props(a.badgeIcon);return c(r===`succeeded`?n:r===`failed`?e:t,{"aria-hidden":!0,...i})}export{y as DepositStatusBannerHero};
|
package/dist/flows/deposit/widgets/deposit-status-banner/compound/components/PrimaryAction.d.ts
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { DepositStatusBannerPrimaryActionProps } from "../types.js";
|
|
2
|
+
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
|
+
|
|
4
|
+
//#region src/flows/deposit/widgets/deposit-status-banner/compound/components/PrimaryAction.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* Primary CTA — kind-aware label, always-primary fill. Renders nothing when `onClick` is
|
|
7
|
+
* omitted (the host opted out of navigation for that lifecycle).
|
|
8
|
+
*
|
|
9
|
+
* Default labels:
|
|
10
|
+
* - `pending` → `View progress`
|
|
11
|
+
* - `succeeded` → `View receipt`
|
|
12
|
+
* - `failed` → `View details`
|
|
13
|
+
*
|
|
14
|
+
* The button uses the kit's `default` (primary fill) variant across every kind — a variant
|
|
15
|
+
* swap during the lifecycle transition reads as glitchy because the Button's background-color
|
|
16
|
+
* transition fights with `AnimatePresence`'s entry/exit. Holding the variant constant lets
|
|
17
|
+
* the label own the motion: the new word slides up from below as the old one slides off the
|
|
18
|
+
* top, both fading. The chevron suffix stays mounted so the affordance feels stable while the
|
|
19
|
+
* words change.
|
|
20
|
+
*/
|
|
21
|
+
declare function DepositStatusBannerPrimaryAction({
|
|
22
|
+
onClick,
|
|
23
|
+
label
|
|
24
|
+
}?: DepositStatusBannerPrimaryActionProps): _$react_jsx_runtime0.JSX.Element | null;
|
|
25
|
+
//#endregion
|
|
26
|
+
export { DepositStatusBannerPrimaryAction };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{useLingui as e}from"../../../../../../shared/i18n/useLingui.js";import"../../../../../../i18n/index.js";import{ChevronRightIcon as t}from"../../../../../../shared/icons/ChevronRightIcon.js";import"../../../../../../icons/index.js";import{Button as n}from"../../../../../../shared/ui/Button/Button.js";import"../../../../../../shared/ui/Button/index.js";import{DEPOSIT_STATUS_BANNER_SLOTS as r}from"../DepositStatusBanner.slots.js";import{useDepositStatusBannerContext as i}from"../context.js";import{jsx as a,jsxs as o}from"react/jsx-runtime";import{AnimatePresence as s,motion as c}from"motion/react";const l=[.16,1,.3,1],u={enter:{opacity:0,y:`60%`},center:{opacity:1,y:`0%`,transition:{duration:.22,ease:l}},exit:{opacity:0,y:`-60%`,transition:{duration:.18,ease:l}}};function d({onClick:l,label:d}={}){let f=i(`DepositStatusBanner.PrimaryAction`),{kind:p}=f,m=l??f.onPrimaryAction,{_:h}=e();if(!m)return null;let g=d??h(p===`succeeded`?{id:`AO44G_`,message:`View receipt`}:p===`failed`?{id:`2Eoi_a`,message:`View details`}:{id:`Oi8TiZ`,message:`View progress`}),_=d??[h({id:`Oi8TiZ`,message:`View progress`}),h({id:`AO44G_`,message:`View receipt`}),h({id:`2Eoi_a`,message:`View details`})].reduce((e,t)=>t.length>e.length?t:e);return a(n,{type:`button`,onClick:m,variant:`default`,size:`sm`,suffix:a(t,{"aria-hidden":!0}),"data-stridge-slot":r.primaryAction,children:o(`span`,{style:{position:`relative`,display:`inline-flex`,alignItems:`center`,overflow:`hidden`},children:[a(`span`,{"aria-hidden":!0,style:{visibility:`hidden`,whiteSpace:`nowrap`},children:_}),a(s,{mode:`popLayout`,initial:!1,children:a(c.span,{variants:u,initial:`enter`,animate:`center`,exit:`exit`,style:{position:`absolute`,insetInlineStart:0,insetBlockStart:0,width:`100%`,display:`inline-flex`,alignItems:`center`,justifyContent:`center`,whiteSpace:`nowrap`},children:g},g)})]})})}export{d as DepositStatusBannerPrimaryAction};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { DepositStatusBannerRowProps } from "../types.js";
|
|
2
|
+
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
|
+
|
|
4
|
+
//#region src/flows/deposit/widgets/deposit-status-banner/compound/components/Rows.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* Predefined `Deposit tx` row inside `DepositStatusBanner.Details`. Reads
|
|
7
|
+
* `depositTx` from the {@link DepositStatusBanner} root and renders nothing
|
|
8
|
+
* when the value is missing.
|
|
9
|
+
*/
|
|
10
|
+
declare function DepositStatusBannerDepositTxRow({
|
|
11
|
+
label
|
|
12
|
+
}?: DepositStatusBannerRowProps): _$react_jsx_runtime0.JSX.Element | null;
|
|
13
|
+
/**
|
|
14
|
+
* Predefined `Completion tx` row. Renders only when the lifecycle is
|
|
15
|
+
* `succeeded` and the root supplies a `completionTx`.
|
|
16
|
+
*/
|
|
17
|
+
declare function DepositStatusBannerCompletionTxRow({
|
|
18
|
+
label
|
|
19
|
+
}?: DepositStatusBannerRowProps): _$react_jsx_runtime0.JSX.Element | null;
|
|
20
|
+
/**
|
|
21
|
+
* Predefined `Order submitted` row. Renders only when the root supplies a
|
|
22
|
+
* pre-formatted `submittedAt` timestamp.
|
|
23
|
+
*/
|
|
24
|
+
declare function DepositStatusBannerSubmittedAtRow({
|
|
25
|
+
label
|
|
26
|
+
}?: DepositStatusBannerRowProps): _$react_jsx_runtime0.JSX.Element | null;
|
|
27
|
+
/**
|
|
28
|
+
* Predefined `Order filled` row. Renders only when the root supplies a
|
|
29
|
+
* pre-formatted `filledAt` timestamp.
|
|
30
|
+
*/
|
|
31
|
+
declare function DepositStatusBannerFilledAtRow({
|
|
32
|
+
label
|
|
33
|
+
}?: DepositStatusBannerRowProps): _$react_jsx_runtime0.JSX.Element | null;
|
|
34
|
+
//#endregion
|
|
35
|
+
export { DepositStatusBannerCompletionTxRow, DepositStatusBannerDepositTxRow, DepositStatusBannerFilledAtRow, DepositStatusBannerSubmittedAtRow };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{useLingui as e}from"../../../../../../shared/i18n/useLingui.js";import"../../../../../../i18n/index.js";import{useDepositStatusBannerContext as t}from"../context.js";import{DepositStatusBannerDetail as n}from"./Detail.js";import{TxHashValue as r}from"../../../../../../shared/primitives/TxHashValue/TxHashValue.js";import"../../../../../../shared/primitives/TxHashValue/index.js";import{jsx as i}from"react/jsx-runtime";function a({label:a}={}){let o=t(`DepositStatusBanner.DepositTxRow`),{_:s}=e();return o.depositTx?i(n,{label:a??s({id:`Q12Rrs`,message:`Deposit tx`}),value:i(r,{hash:o.depositTx.hash,...o.depositTx.explorerUrl?{explorerUrl:o.depositTx.explorerUrl}:{}})}):null}function o({label:a}={}){let o=t(`DepositStatusBanner.CompletionTxRow`),{_:s}=e();return o.completionTx?i(n,{label:a??s({id:`rZdp61`,message:`Completion tx`}),value:i(r,{hash:o.completionTx.hash,...o.completionTx.explorerUrl?{explorerUrl:o.completionTx.explorerUrl}:{}})}):null}function s({label:r}={}){let a=t(`DepositStatusBanner.SubmittedAtRow`),{_:o}=e();return a.submittedAt===void 0?null:i(n,{label:r??o({id:`TT0aVH`,message:`Order submitted`}),value:a.submittedAt})}function c({label:r}={}){let a=t(`DepositStatusBanner.FilledAtRow`),{_:o}=e();return a.filledAt===void 0?null:i(n,{label:r??o({id:`lOEm_1`,message:`Order filled`}),value:a.filledAt})}export{o as DepositStatusBannerCompletionTxRow,a as DepositStatusBannerDepositTxRow,c as DepositStatusBannerFilledAtRow,s as DepositStatusBannerSubmittedAtRow};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { DepositStatusBannerToggleProps } from "../types.js";
|
|
2
|
+
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
|
+
|
|
4
|
+
//#region src/flows/deposit/widgets/deposit-status-banner/compound/components/Toggle.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* See more / See less toggle. Renders a `Collapsible.Trigger` so the click hooks straight into
|
|
7
|
+
* the banner's `<Collapsible>` root — height transition, ARIA wiring, and reduced-motion
|
|
8
|
+
* fallback all flow through the kit's shared collapsible primitive.
|
|
9
|
+
*
|
|
10
|
+
* The `expanded` flag still reads from banner context so the label flips in lockstep with the
|
|
11
|
+
* controlled root state. Pass `expandLabel` / `collapseLabel` to override the defaults.
|
|
12
|
+
*/
|
|
13
|
+
declare function DepositStatusBannerToggle({
|
|
14
|
+
expandLabel,
|
|
15
|
+
collapseLabel
|
|
16
|
+
}: DepositStatusBannerToggleProps): _$react_jsx_runtime0.JSX.Element;
|
|
17
|
+
//#endregion
|
|
18
|
+
export { DepositStatusBannerToggle };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{useLingui as e}from"../../../../../../shared/i18n/useLingui.js";import"../../../../../../i18n/index.js";import{Button as t}from"../../../../../../shared/ui/Button/Button.js";import"../../../../../../shared/ui/Button/index.js";import{Collapsible as n}from"../../../../../../shared/ui/Collapsible/Collapsible.js";import"../../../../../../shared/ui/Collapsible/index.js";import{DEPOSIT_STATUS_BANNER_SLOTS as r}from"../DepositStatusBanner.slots.js";import{useDepositStatusBannerContext as i}from"../context.js";import{jsx as a}from"react/jsx-runtime";function o({expandLabel:o,collapseLabel:s}){let{expanded:c}=i(`DepositStatusBanner.Toggle`),{_:l}=e(),u=o??l({id:`V1fa9u`,message:`See more`}),d=s??l({id:`uPo3PQ`,message:`See less`});return a(n.Trigger,{"data-stridge-slot":r.toggle,render:a(t,{type:`button`,variant:`secondary`,size:`sm`,children:c?d:u})})}export{o as DepositStatusBannerToggle};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{createContext as e,use as t}from"react";const n=e(null);function r(e){let r=t(n);if(!r)throw Error(`${e} must be rendered inside <DepositStatusBanner>.`);return r}export{n as DepositStatusBannerContext,r as useDepositStatusBannerContext};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { DepositStatusBannerAsset, DepositStatusBannerBodyProps, DepositStatusBannerCloseProps, DepositStatusBannerDetailProps, DepositStatusBannerDetailsProps, DepositStatusBannerFooterProps, DepositStatusBannerHeroProps, DepositStatusBannerKind, DepositStatusBannerPrimaryActionProps, DepositStatusBannerProps, DepositStatusBannerRowProps, DepositStatusBannerToggleProps, DepositStatusBannerTxRef } from "./types.js";
|
|
2
|
+
import { DepositStatusBanner } from "./DepositStatusBanner.js";
|
|
3
|
+
import { DEPOSIT_STATUS_BANNER_SLOTS, DepositStatusBannerSlot } from "./DepositStatusBanner.slots.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./DepositStatusBanner.slots.js";import"./DepositStatusBanner.js";
|
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
import { ComponentProps, ReactNode } from "react";
|
|
2
|
+
import { DestinationDto, GatewayLegFromDto, GatewayLegToDto, GatewayPollResponse } from "@stridge/sdk";
|
|
3
|
+
|
|
4
|
+
//#region src/flows/deposit/widgets/deposit-status-banner/compound/types.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* Discriminator for the banner's lifecycle. The orchestrator-bound wrapper derives this from the
|
|
7
|
+
* deposit's processing watcher; canvas / showcase mounts pass it directly.
|
|
8
|
+
*
|
|
9
|
+
* - `pending` — the deposit is in flight. Hero shows the down-arrow status badge over the
|
|
10
|
+
* destination logo and the primary CTA navigates to the full processing screen.
|
|
11
|
+
* - `succeeded` — the deposit landed. Hero swaps to the check badge and the CTA navigates to the
|
|
12
|
+
* full success widget so the user can inspect the receipt.
|
|
13
|
+
* - `failed` — the deposit didn't complete. The CTA is hidden (the user routes through the
|
|
14
|
+
* error widget via the standard processing flow); the banner just surfaces the bad news.
|
|
15
|
+
*/
|
|
16
|
+
type DepositStatusBannerKind = "pending" | "succeeded" | "failed";
|
|
17
|
+
/**
|
|
18
|
+
* Tx hash + optional explorer URL surfaced in the expanded detail panel.
|
|
19
|
+
*/
|
|
20
|
+
interface DepositStatusBannerTxRef {
|
|
21
|
+
hash: string;
|
|
22
|
+
explorerUrl?: string;
|
|
23
|
+
/**
|
|
24
|
+
* Source leg DTO (`from` for the deposit tx, `to` for the completion tx).
|
|
25
|
+
*/
|
|
26
|
+
raw?: GatewayLegFromDto | GatewayLegToDto;
|
|
27
|
+
/**
|
|
28
|
+
* Full `gateway/{owner}` poll response that produced the leg.
|
|
29
|
+
*/
|
|
30
|
+
responseRaw?: GatewayPollResponse;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Destination chrome rendered in the Hero. Drives the `<TokenLogo>` resolution.
|
|
34
|
+
*/
|
|
35
|
+
interface DepositStatusBannerAsset {
|
|
36
|
+
symbol: string;
|
|
37
|
+
chainId?: number;
|
|
38
|
+
address?: string;
|
|
39
|
+
isNative?: boolean;
|
|
40
|
+
logoUrl?: string;
|
|
41
|
+
/**
|
|
42
|
+
* Destination DTO carried from the matched settlement / poll response.
|
|
43
|
+
*/
|
|
44
|
+
raw?: DestinationDto;
|
|
45
|
+
/**
|
|
46
|
+
* Full `gateway/{owner}` poll response that produced the destination.
|
|
47
|
+
*/
|
|
48
|
+
responseRaw?: GatewayPollResponse;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Public props accepted by the {@link DepositStatusBanner} root.
|
|
52
|
+
*/
|
|
53
|
+
interface DepositStatusBannerProps {
|
|
54
|
+
/** Lifecycle stage — drives the badge glyph, the default copy, and which CTA renders. */
|
|
55
|
+
kind: DepositStatusBannerKind;
|
|
56
|
+
/** Destination asset shown in the Hero next to the headline. */
|
|
57
|
+
asset: DepositStatusBannerAsset;
|
|
58
|
+
/**
|
|
59
|
+
* Optional headline override. When omitted the banner picks the canonical line for `kind`
|
|
60
|
+
* (`"Deposit received and processing…"` / `"Deposit completed"` / `"Deposit didn't complete"`).
|
|
61
|
+
*/
|
|
62
|
+
headline?: string;
|
|
63
|
+
/**
|
|
64
|
+
* Optional subline override. When omitted the banner picks the canonical copy for `kind`.
|
|
65
|
+
*/
|
|
66
|
+
subline?: string;
|
|
67
|
+
/** Whether the expanded detail panel is open. Controlled — pair with `onToggleExpanded`. */
|
|
68
|
+
expanded: boolean;
|
|
69
|
+
/** Toggle handler for the See more / See less affordance. */
|
|
70
|
+
onToggleExpanded: () => void;
|
|
71
|
+
/** Dismiss handler for the X close affordance. Omit `onDismiss` to hide the X entirely. */
|
|
72
|
+
onDismiss?: () => void;
|
|
73
|
+
/**
|
|
74
|
+
* Source-chain deposit tx — surfaces as the `Deposit tx` row inside
|
|
75
|
+
* `<DepositStatusBanner.DepositTxRow />`.
|
|
76
|
+
*/
|
|
77
|
+
depositTx?: DepositStatusBannerTxRef;
|
|
78
|
+
/**
|
|
79
|
+
* Destination-chain completion tx — surfaces as the `Completion tx`
|
|
80
|
+
* row inside `<DepositStatusBanner.CompletionTxRow />`. Renders only
|
|
81
|
+
* for the `succeeded` lifecycle.
|
|
82
|
+
*/
|
|
83
|
+
completionTx?: DepositStatusBannerTxRef;
|
|
84
|
+
/**
|
|
85
|
+
* Pre-formatted "order submitted" timestamp — surfaces as the
|
|
86
|
+
* `Order submitted` row inside `<DepositStatusBanner.SubmittedAtRow />`.
|
|
87
|
+
*/
|
|
88
|
+
submittedAt?: string;
|
|
89
|
+
/**
|
|
90
|
+
* Pre-formatted "order filled" timestamp — surfaces as the
|
|
91
|
+
* `Order filled` row inside `<DepositStatusBanner.FilledAtRow />`.
|
|
92
|
+
*/
|
|
93
|
+
filledAt?: string;
|
|
94
|
+
/**
|
|
95
|
+
* Click handler routed to {@link DepositStatusBannerPrimaryAction}.
|
|
96
|
+
* Omit to hide the CTA entirely.
|
|
97
|
+
*/
|
|
98
|
+
onPrimaryAction?: () => void;
|
|
99
|
+
/**
|
|
100
|
+
* Strips the floating absolute-positioned chrome so the banner flows inline. Use only in
|
|
101
|
+
* canvas / showcase / storybook contexts; production should leave this `false` so the banner
|
|
102
|
+
* anchors at the bottom of the dialog frame.
|
|
103
|
+
*/
|
|
104
|
+
inline?: boolean;
|
|
105
|
+
/**
|
|
106
|
+
* Children. The recommended composition is `<DepositStatusBanner.Body />`,
|
|
107
|
+
* `<DepositStatusBanner.Details />`, `<DepositStatusBanner.Footer />`. Hosts that want a
|
|
108
|
+
* trimmed banner can drop sections.
|
|
109
|
+
*/
|
|
110
|
+
children?: ReactNode;
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* Props for `DepositStatusBanner.Body` — the top row container holding the Hero + close
|
|
114
|
+
* affordance.
|
|
115
|
+
*/
|
|
116
|
+
type DepositStatusBannerBodyProps = ComponentProps<"div">;
|
|
117
|
+
/**
|
|
118
|
+
* Props for `DepositStatusBanner.Hero` — token logo with status badge plus headline + subline.
|
|
119
|
+
* Reads everything from context.
|
|
120
|
+
*/
|
|
121
|
+
type DepositStatusBannerHeroProps = Record<string, never>;
|
|
122
|
+
/**
|
|
123
|
+
* Props for `DepositStatusBanner.Close` — the X dismiss affordance. Reads `onDismiss` from
|
|
124
|
+
* context; renders nothing when none is set.
|
|
125
|
+
*/
|
|
126
|
+
interface DepositStatusBannerCloseProps {
|
|
127
|
+
/** Override the default `aria-label` (`"Dismiss pending deposit notice"`). */
|
|
128
|
+
"aria-label"?: string;
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* Props for `DepositStatusBanner.Details` — the expanded detail panel container. Children are
|
|
132
|
+
* `DepositStatusBanner.Detail` rows. Hidden when `expanded === false`.
|
|
133
|
+
*/
|
|
134
|
+
interface DepositStatusBannerDetailsProps {
|
|
135
|
+
children?: ReactNode;
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* Props for `DepositStatusBanner.Detail` — a single label/value row inside Details.
|
|
139
|
+
*/
|
|
140
|
+
interface DepositStatusBannerDetailProps {
|
|
141
|
+
label: string;
|
|
142
|
+
value: ReactNode;
|
|
143
|
+
}
|
|
144
|
+
/**
|
|
145
|
+
* Props for `DepositStatusBanner.Footer` — the bottom row container (toggle on the leading edge,
|
|
146
|
+
* primary action on the trailing edge).
|
|
147
|
+
*/
|
|
148
|
+
type DepositStatusBannerFooterProps = ComponentProps<"div">;
|
|
149
|
+
/**
|
|
150
|
+
* Props for `DepositStatusBanner.Toggle` — the See more / See less control. Reads `expanded` and
|
|
151
|
+
* `onToggleExpanded` from context.
|
|
152
|
+
*/
|
|
153
|
+
interface DepositStatusBannerToggleProps {
|
|
154
|
+
/** Override the collapsed-state label. Defaults to `"See more"`. */
|
|
155
|
+
expandLabel?: string;
|
|
156
|
+
/** Override the expanded-state label. Defaults to `"See less"`. */
|
|
157
|
+
collapseLabel?: string;
|
|
158
|
+
}
|
|
159
|
+
/**
|
|
160
|
+
* Props for `DepositStatusBanner.PrimaryAction` — the CTA pill. Hidden by default; the host
|
|
161
|
+
* provides an `onClick` (or sets `onPrimaryAction` on the {@link DepositStatusBanner} root) to
|
|
162
|
+
* opt in. The label defaults are kind-aware (`"View progress"` for pending, `"View receipt"`
|
|
163
|
+
* for succeeded).
|
|
164
|
+
*/
|
|
165
|
+
interface DepositStatusBannerPrimaryActionProps {
|
|
166
|
+
/**
|
|
167
|
+
* Optional override for the click handler. Defaults to the
|
|
168
|
+
* `onPrimaryAction` set on the {@link DepositStatusBanner} root.
|
|
169
|
+
*/
|
|
170
|
+
onClick?: () => void;
|
|
171
|
+
/** Override the auto-selected label. */
|
|
172
|
+
label?: string;
|
|
173
|
+
}
|
|
174
|
+
/**
|
|
175
|
+
* Props for the predefined detail rows
|
|
176
|
+
* ({@link DepositStatusBannerDepositTxRow},
|
|
177
|
+
* {@link DepositStatusBannerCompletionTxRow},
|
|
178
|
+
* {@link DepositStatusBannerSubmittedAtRow},
|
|
179
|
+
* {@link DepositStatusBannerFilledAtRow}). Each row pulls its value from
|
|
180
|
+
* the {@link DepositStatusBanner} root's payload props and renders
|
|
181
|
+
* nothing when the value is missing.
|
|
182
|
+
*/
|
|
183
|
+
interface DepositStatusBannerRowProps {
|
|
184
|
+
/** Override the row label. */
|
|
185
|
+
label?: string;
|
|
186
|
+
}
|
|
187
|
+
//#endregion
|
|
188
|
+
export { DepositStatusBannerAsset, DepositStatusBannerBodyProps, DepositStatusBannerCloseProps, DepositStatusBannerDetailProps, DepositStatusBannerDetailsProps, DepositStatusBannerFooterProps, DepositStatusBannerHeroProps, DepositStatusBannerKind, DepositStatusBannerPrimaryActionProps, DepositStatusBannerProps, DepositStatusBannerRowProps, DepositStatusBannerToggleProps, DepositStatusBannerTxRef };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import { DepositStatusBanner } from "./DepositStatusBanner.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./DepositStatusBanner.js";
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { DialogShellControls } from "../../../../shared/dialog/DialogShell.js";
|
|
2
|
+
import { ComponentProps } from "react";
|
|
3
|
+
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
4
|
+
|
|
5
|
+
//#region src/flows/deposit/widgets/error-state/ErrorState.d.ts
|
|
6
|
+
/**
|
|
7
|
+
* Orchestrated `ErrorState` widget. Two render paths:
|
|
8
|
+
*
|
|
9
|
+
* - Settlement-derived failure (driver's `settlement` entity reached `ready` with
|
|
10
|
+
* `payload.kind === "failed"`). Renders the full failure receipt — source wallet,
|
|
11
|
+
* destination, intended receive amount, deposit tx, timestamps.
|
|
12
|
+
* - FSM-derived failure (the orchestrator routed to `error` after a quote / submission
|
|
13
|
+
* rejection). The widget renders just the headline + reason + Try again, since there's
|
|
14
|
+
* no settlement record to surface.
|
|
15
|
+
*/
|
|
16
|
+
declare function ErrorState(props: ComponentProps<"div">): _$react_jsx_runtime0.JSX.Element | null;
|
|
17
|
+
declare function ErrorStateDialog({
|
|
18
|
+
open,
|
|
19
|
+
defaultOpen,
|
|
20
|
+
onOpenChange,
|
|
21
|
+
trigger,
|
|
22
|
+
...rootProps
|
|
23
|
+
}: ErrorState.DialogProps): _$react_jsx_runtime0.JSX.Element;
|
|
24
|
+
declare namespace ErrorState {
|
|
25
|
+
type Props = ComponentProps<"div">;
|
|
26
|
+
type DialogProps = ComponentProps<"div"> & DialogShellControls;
|
|
27
|
+
const Dialog: typeof ErrorStateDialog;
|
|
28
|
+
}
|
|
29
|
+
//#endregion
|
|
30
|
+
export { ErrorState };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{useDepositSnapshot as e}from"../../driver/context.js";import{useLingui as t}from"../../../../shared/i18n/useLingui.js";import"../../../../i18n/index.js";import{useFailureReasonForKind as n}from"../../../../shared/orchestrator/failureReason.js";import"../../../../shared/orchestrator/index.js";import{useDepositActions as r,useDepositEffectiveState as i}from"../../orchestrator/controller.js";import{DialogShell as a}from"../../../../shared/dialog/DialogShell.js";import{ErrorState as o}from"../../../../shared/widgets/error-state/compound/ErrorState.js";import"../../../../shared/widgets/error-state/compound/index.js";import{toAssetDescriptor as s}from"../../../../shared/widgets/asset-descriptor.js";import{jsx as c,jsxs as l}from"react/jsx-runtime";function u(a){let u=e(),d=i(),{tryAgain:f}=r(),{_:p}=t(),m=n();if(d.name!==`error`)return null;let h=u.settlement,g=h.status===`ready`&&h.payload.kind===`failed`?h.payload:void 0,_=d.name===`error`?d.ctx.failure:void 0,v=p({id:`i-4Fbp`,message:`Deposit failed`}),y=g?m(g.failureKind):_?.reason;if(!g)return l(o,{...a,headline:v,...y?{reason:y}:{},onTryAgain:f,children:[c(o.Header,{}),c(o.Body,{children:c(o.Hero,{})}),c(o.Actions,{})]});let b=g,x={...b.sourceWallet.name===void 0?{}:{name:b.sourceWallet.name},address:b.sourceWallet.address.formatted,...b.sourceWallet.explorerUrl?{explorerUrl:b.sourceWallet.explorerUrl}:{}},S={...b.destination.name===void 0?{}:{name:b.destination.name},address:b.destination.address.formatted},C=s(b.creditedAsset)??{symbol:b.creditedAsset.symbol},w={hash:b.txHash.formatted,...b.txExplorerUrl?{explorerUrl:b.txExplorerUrl}:{}};return l(o,{...a,headline:v,...y?{reason:y}:{},sourceWallet:x,destination:S,receiveAmount:b.receiveAmount.formatted,receiveAsset:C,depositTx:w,submittedAt:b.submittedAt.formatted,failedAt:b.failedAt.formatted,onTryAgain:f,children:[c(o.Header,{}),l(o.Body,{children:[c(o.Hero,{}),l(o.Details,{children:[c(o.FillStatusRow,{}),c(o.SourceRow,{}),c(o.DestinationRow,{}),c(o.YouReceiveRow,{}),l(o.MoreDetails,{children:[c(o.DepositTxRow,{}),c(o.SubmittedAtRow,{}),c(o.FailedAtRow,{})]})]}),c(o.HelpInfo,{})]}),c(o.Actions,{})]})}function d({open:e,defaultOpen:t,onOpenChange:n,trigger:r,...i}){return c(a,{open:e,defaultOpen:t,onOpenChange:n,trigger:r,children:c(u,{...i})})}(function(e){e.Dialog=d})(u||={});export{u as ErrorState};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import { ErrorState } from "./ErrorState.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./ErrorState.js";
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { DialogShellControls } from "../../../../shared/dialog/DialogShell.js";
|
|
2
|
+
import { ComponentProps } from "react";
|
|
3
|
+
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
4
|
+
|
|
5
|
+
//#region src/flows/deposit/widgets/processing-state/ProcessingState.d.ts
|
|
6
|
+
/**
|
|
7
|
+
* Orchestrated `ProcessingState` widget. Mounts as soon as the FSM enters `processing` —
|
|
8
|
+
* **does not** wait for the driver's `settlement` entity to reach `pending`.
|
|
9
|
+
*
|
|
10
|
+
* The wallet flow gives the kit a `TxRef` synchronously (the wallet's broadcast hash) before the
|
|
11
|
+
* gateway's poll catches up, so the user sees the processing chrome immediately even though the
|
|
12
|
+
* indexer hasn't recorded the source-chain deposit yet. As the settlement entity transitions
|
|
13
|
+
* through the pending lifecycle, the widget upgrades its rows in place — the credited amount,
|
|
14
|
+
* `detectedAt` timestamp, and source-wallet adornment land when the indexer picks them up; the
|
|
15
|
+
* deposit-tx hash is shown immediately from `state.ctx.tx`.
|
|
16
|
+
*/
|
|
17
|
+
declare function ProcessingState(props: ComponentProps<"div">): _$react_jsx_runtime0.JSX.Element | null;
|
|
18
|
+
declare function ProcessingStateDialog({
|
|
19
|
+
open,
|
|
20
|
+
defaultOpen,
|
|
21
|
+
onOpenChange,
|
|
22
|
+
trigger,
|
|
23
|
+
...rootProps
|
|
24
|
+
}: ProcessingState.DialogProps): _$react_jsx_runtime0.JSX.Element;
|
|
25
|
+
declare namespace ProcessingState {
|
|
26
|
+
type Props = ComponentProps<"div">;
|
|
27
|
+
type DialogProps = ComponentProps<"div"> & DialogShellControls;
|
|
28
|
+
const Dialog: typeof ProcessingStateDialog;
|
|
29
|
+
}
|
|
30
|
+
//#endregion
|
|
31
|
+
export { ProcessingState };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{useDepositSnapshot as e}from"../../driver/context.js";import{useLingui as t}from"../../../../shared/i18n/useLingui.js";import"../../../../i18n/index.js";import{useDepositActions as n,useDepositEffectiveState as r}from"../../orchestrator/controller.js";import{shortenAddress as i}from"../../../../shared/format/shortenAddress.js";import{DialogShell as a}from"../../../../shared/dialog/DialogShell.js";import{ProcessingState as o}from"../../../../shared/widgets/processing-state/compound/ProcessingState.js";import"../../../../shared/widgets/processing-state/compound/index.js";import{jsx as s,jsxs as c}from"react/jsx-runtime";function l(a){let l=e(),u=r(),{back:d,close:f}=n(),{_:p}=t();if(u.name!==`processing`)return null;let m=l.settlement,h=(m.status===`ready`||m.status===`stale`)&&m.payload.kind===`pending`?m.payload:void 0,g=l.brand,_=g.status===`ready`||g.status===`stale`?g.payload.name:void 0,v=l.target,y=v.status===`ready`||v.status===`stale`?v.payload:void 0,b=l.wallet,x=b.status===`ready`||b.status===`stale`?b.payload:void 0,S=!h||h.receiveAmount.value===0,C=h?h.receiveAmount.formatted:``,w=h?.creditedAsset.symbol??y?.symbol??``,T=h?.creditedTo||_||w,E=u.ctx.tx,D=h?.txHash?.formatted??(E.hash?i(E.hash):``),O=h?.txExplorerUrl??E.explorerUrl,k=h?.sourceWallet.name??p({id:`sb9Y58`,message:`Wallet`}),A=h?.sourceWallet.address.formatted??x?.address.formatted??``,j=h?.sourceWallet.explorerUrl,M=A?{name:k,address:A,...j?{explorerUrl:j}:{}}:void 0,N=D?{hash:D,...O?{explorerUrl:O}:{}}:void 0;return c(o,{...a,amount:C,creditedAsset:{symbol:w},creditedTo:T,...S?{loading:!0}:{},onBack:d,...M?{sourceWallet:M}:{},...N?{sourceTx:N}:{},...h?.submittedAt?{submittedAt:h.submittedAt.formatted}:{},...h?.detectedAt?{detectedAt:h.detectedAt.formatted}:{},onClose:f,children:[s(o.Header,{}),c(o.Body,{children:[s(o.Hero,{}),s(o.StatusPill,{}),c(o.Details,{children:[s(o.SourceRow,{}),s(o.SourceTxRow,{}),s(o.SubmittedAtRow,{}),s(o.DetectedAtRow,{})]})]}),s(o.Actions,{})]})}function u({open:e,defaultOpen:t,onOpenChange:n,trigger:r,...i}){return s(a,{open:e,defaultOpen:t,onOpenChange:n,trigger:r,children:s(l,{...i})})}(function(e){e.Dialog=u})(l||={});export{l as ProcessingState};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import { ProcessingState } from "./ProcessingState.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./ProcessingState.js";
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { DialogShellControls } from "../../../../shared/dialog/DialogShell.js";
|
|
2
|
+
import { ComponentProps } from "react";
|
|
3
|
+
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
4
|
+
|
|
5
|
+
//#region src/flows/deposit/widgets/success-state/SuccessState.d.ts
|
|
6
|
+
/**
|
|
7
|
+
* Orchestrated `SuccessState` widget. Reads the matched (succeeded) settlement entity from the
|
|
8
|
+
* active {@link import("#/flows/deposit/driver").DepositDriver} and routes the done affordance through the
|
|
9
|
+
* orchestrator actions surface.
|
|
10
|
+
*
|
|
11
|
+
* Renders nothing until the driver's `settlement` entity reaches `ready` with
|
|
12
|
+
* `payload.kind === "succeeded"`. Production callers mount the widget inside the kit's
|
|
13
|
+
* `<DepositDialog />` shell; the dialog's lifecycle gates the render on the FSM's `success`
|
|
14
|
+
* state.
|
|
15
|
+
*/
|
|
16
|
+
declare function SuccessState(props: ComponentProps<"div">): _$react_jsx_runtime0.JSX.Element | null;
|
|
17
|
+
declare function SuccessStateDialog({
|
|
18
|
+
open,
|
|
19
|
+
defaultOpen,
|
|
20
|
+
onOpenChange,
|
|
21
|
+
trigger,
|
|
22
|
+
...rootProps
|
|
23
|
+
}: SuccessState.DialogProps): _$react_jsx_runtime0.JSX.Element;
|
|
24
|
+
declare namespace SuccessState {
|
|
25
|
+
type Props = ComponentProps<"div">;
|
|
26
|
+
type DialogProps = ComponentProps<"div"> & DialogShellControls;
|
|
27
|
+
const Dialog: typeof SuccessStateDialog;
|
|
28
|
+
}
|
|
29
|
+
//#endregion
|
|
30
|
+
export { SuccessState };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{useDepositSnapshot as e}from"../../driver/context.js";import{useDepositActions as t,useDepositEffectiveState as n}from"../../orchestrator/controller.js";import{DialogShell as r}from"../../../../shared/dialog/DialogShell.js";import{SuccessState as i}from"../../../../shared/widgets/success-state/compound/SuccessState.js";import"../../../../shared/widgets/success-state/compound/index.js";import{toAssetDescriptor as a}from"../../../../shared/widgets/asset-descriptor.js";import{jsx as o,jsxs as s}from"react/jsx-runtime";function c(r){let c=e(),l=n().name,{successDone:u}=t();if(l!==`success`)return null;let d=c.settlement;if(d.status!==`ready`||d.payload.kind!==`succeeded`)return null;let f=d.payload,p=c.brand,m=p.status===`ready`||p.status===`stale`?p.payload.name:void 0,h=f.destination.name??m??f.creditedAsset.symbol,g=f.aggregatorExplorerUrl?{url:f.aggregatorExplorerUrl}:void 0,_=f.depositTx||f.completionTx||f.submittedAt||f.filledAt,v=a(f.creditedAsset)??{symbol:f.creditedAsset.symbol},y={...f.sourceWallet.name===void 0?{}:{name:f.sourceWallet.name},address:f.sourceWallet.address.formatted,...f.sourceWallet.explorerUrl?{explorerUrl:f.sourceWallet.explorerUrl}:{}};return s(i,{...r,amount:f.receiveAmount.formatted,creditedAsset:v,creditedTo:h,...g?{explorer:g}:{},...f.depositTx?{depositTx:{hash:f.depositTx.hash.formatted,...f.depositTx.explorerUrl?{explorerUrl:f.depositTx.explorerUrl}:{}}}:{},...f.completionTx?{completionTx:{hash:f.completionTx.hash.formatted,...f.completionTx.explorerUrl?{explorerUrl:f.completionTx.explorerUrl}:{}}}:{},submittedAt:f.submittedAt.formatted,filledAt:f.filledAt.formatted,totalTime:f.totalTime.formatted,sourceWallet:y,onDone:u,children:[o(i.Header,{}),s(i.Body,{children:[o(i.Headline,{}),s(i.Details,{children:[o(i.FillStatusRow,{}),o(i.TotalTimeRow,{}),o(i.SourceRow,{}),o(i.DestinationRow,{}),o(i.YouReceiveRow,{}),_?s(i.MoreDetails,{children:[o(i.DepositTxRow,{}),o(i.CompletionTxRow,{}),o(i.SubmittedAtRow,{}),o(i.FilledAtRow,{})]}):null]})]}),o(i.Actions,{})]})}function l({open:e,defaultOpen:t,onOpenChange:n,trigger:i,...a}){return o(r,{open:e,defaultOpen:t,onOpenChange:n,trigger:i,children:o(c,{...a})})}(function(e){e.Dialog=l})(c||={});export{c as SuccessState};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import { SuccessState } from "./SuccessState.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./SuccessState.js";
|