@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
|
@@ -0,0 +1,212 @@
|
|
|
1
|
+
import { DialogShellControls } from "../../../dialog/DialogShell.js";
|
|
2
|
+
import { ComponentProps, ReactNode } from "react";
|
|
3
|
+
import { OnchainBalanceResponse, OnchainTokenDto } from "@stridge/sdk";
|
|
4
|
+
|
|
5
|
+
//#region src/shared/widgets/asset-picker/compound/types.d.ts
|
|
6
|
+
/**
|
|
7
|
+
* Destination token surfaced through context. The Header uses it to generate the default modal title
|
|
8
|
+
* (e.g. `"Deposit USDC"`, or `"Deposit USDC to {brandName}"` when `<KitProvider brandName="…">` is set).
|
|
9
|
+
*/
|
|
10
|
+
interface AssetPickerToken {
|
|
11
|
+
/**
|
|
12
|
+
* Symbol shown in the default header title (e.g. `"USDC"`).
|
|
13
|
+
*/
|
|
14
|
+
symbol: string;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* A single wallet asset listed in `AssetPicker.List` and accepted by `AssetPicker.Asset` as a destructured shape.
|
|
18
|
+
*/
|
|
19
|
+
interface AssetOption {
|
|
20
|
+
/**
|
|
21
|
+
* Stable id, used as the React key and as the value matched against `selectedId`.
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
* Token symbol shown as the row's primary label (e.g. `"USDT"`).
|
|
26
|
+
*/
|
|
27
|
+
symbol: string;
|
|
28
|
+
/**
|
|
29
|
+
* Source chain identifier (e.g. `"arbitrum"`). Surfaced as a data attribute on the rendered row.
|
|
30
|
+
*/
|
|
31
|
+
chain: string;
|
|
32
|
+
/**
|
|
33
|
+
* Optional raw balance, kept distinct from the formatted string so callers can sort or filter without re-parsing.
|
|
34
|
+
*/
|
|
35
|
+
balance?: number;
|
|
36
|
+
/**
|
|
37
|
+
* Formatted balance string shown below the symbol (e.g. `"64.79481 USDT"`).
|
|
38
|
+
*/
|
|
39
|
+
balanceFormatted: string;
|
|
40
|
+
/**
|
|
41
|
+
* Formatted fiat value rendered on the trailing edge of the row (e.g. `"$64.79"`).
|
|
42
|
+
*/
|
|
43
|
+
fiatFormatted: string;
|
|
44
|
+
/**
|
|
45
|
+
* When true, renders the muted "Low Balance" badge inline.
|
|
46
|
+
*/
|
|
47
|
+
lowBalance?: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* When true, the row dims and stops responding to clicks. Independent of `lowBalance`, which is purely
|
|
50
|
+
* informational, so consumers can combine or use either flag on its own.
|
|
51
|
+
*/
|
|
52
|
+
disabled?: boolean;
|
|
53
|
+
/**
|
|
54
|
+
* EIP-155 chain id (e.g. `1`, `56`). Drives the row's logo resolution and the chain badge.
|
|
55
|
+
*/
|
|
56
|
+
chainId?: number;
|
|
57
|
+
/**
|
|
58
|
+
* On-chain contract address of the token on `chainId`. Use the conventional native sentinel
|
|
59
|
+
* (or set `isNative`) for chain-native tokens.
|
|
60
|
+
*/
|
|
61
|
+
contractAddress?: string;
|
|
62
|
+
/**
|
|
63
|
+
* `true` when the asset is a chain native (ETH, MATIC, BNB, …).
|
|
64
|
+
*/
|
|
65
|
+
isNative?: boolean;
|
|
66
|
+
/**
|
|
67
|
+
* Logo URL — the final URL fallback after the CDN convention URL.
|
|
68
|
+
* Used when Uniswap's assets repo doesn't have an entry for this token.
|
|
69
|
+
*/
|
|
70
|
+
logoUrl?: string;
|
|
71
|
+
/**
|
|
72
|
+
* Chain logo URL — fallback for the chain badge when the chain isn't in the
|
|
73
|
+
* bundled registry or when its CDN entry 404s.
|
|
74
|
+
*/
|
|
75
|
+
chainLogoUrl?: string;
|
|
76
|
+
/**
|
|
77
|
+
* Caller-supplied logo URL that short-circuits the convention CDN and backend fallbacks.
|
|
78
|
+
*/
|
|
79
|
+
pinnedLogoUrl?: string;
|
|
80
|
+
/**
|
|
81
|
+
* Token decimals (e.g. `6` for USDC, `18` for ETH). Optional at the widget
|
|
82
|
+
* layer. Driver-backed flows use it to convert the user-entered amount
|
|
83
|
+
* into base units for the quote request.
|
|
84
|
+
*/
|
|
85
|
+
decimals?: number;
|
|
86
|
+
/**
|
|
87
|
+
* Per-unit USD price (e.g. `1` for USDC, `2351.23` for ETH). Optional at the widget layer; the picker
|
|
88
|
+
* already renders `fiatFormatted`. Driver-backed flows use it to convert the user-entered amount and
|
|
89
|
+
* the wire's smallest-unit fees into USD figures for the confirm-deposit hero + breakdown rows.
|
|
90
|
+
*/
|
|
91
|
+
priceUsd?: number;
|
|
92
|
+
/**
|
|
93
|
+
* Source on-chain token DTO from `balance/onchain` — drilled into for `is_spam`, `usd_price`, etc.
|
|
94
|
+
*/
|
|
95
|
+
raw?: OnchainTokenDto;
|
|
96
|
+
/**
|
|
97
|
+
* Full `balance/onchain` response that produced the token row.
|
|
98
|
+
*/
|
|
99
|
+
responseRaw?: OnchainBalanceResponse;
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* Props for `<AssetPicker.Dialog>` — the dialog form of the AssetPicker
|
|
103
|
+
* widget. Combines the widget root props with the shared dialog shell
|
|
104
|
+
* controls (`open` / `defaultOpen` / `onOpenChange` / `trigger`).
|
|
105
|
+
*/
|
|
106
|
+
type AssetPickerDialogProps = AssetPickerProps & DialogShellControls;
|
|
107
|
+
/**
|
|
108
|
+
* Public props accepted by the {@link AssetPicker} root.
|
|
109
|
+
*/
|
|
110
|
+
interface AssetPickerProps {
|
|
111
|
+
/**
|
|
112
|
+
* Destination token surfaced through context. The Header uses it to build the default title; when omitted the
|
|
113
|
+
* title falls back to a `"USDC"` placeholder.
|
|
114
|
+
*/
|
|
115
|
+
token?: AssetPickerToken;
|
|
116
|
+
/**
|
|
117
|
+
* Currently selected asset id. Surfaced through context so each `AssetPicker.Asset` can self-style.
|
|
118
|
+
*/
|
|
119
|
+
selectedId?: string;
|
|
120
|
+
/**
|
|
121
|
+
* Fired when an `AssetPicker.Asset` row is clicked, with the id of the clicked asset. When undefined the rows
|
|
122
|
+
* render inert (cursor stays default, no click handler).
|
|
123
|
+
*/
|
|
124
|
+
onSelect?: (id: string) => void;
|
|
125
|
+
/**
|
|
126
|
+
* Asset rows rendered inside `AssetPicker.List`.
|
|
127
|
+
*/
|
|
128
|
+
assets?: readonly AssetOption[];
|
|
129
|
+
/**
|
|
130
|
+
* Optional override for the `Header` title. When omitted the default
|
|
131
|
+
* `"Deposit {symbol}"` (built from `token.symbol`) is used.
|
|
132
|
+
*/
|
|
133
|
+
headerTitle?: string;
|
|
134
|
+
/**
|
|
135
|
+
* Optional back-button callback for the `Header`. When undefined the
|
|
136
|
+
* chevron is hidden.
|
|
137
|
+
*/
|
|
138
|
+
onBack?: () => void;
|
|
139
|
+
/**
|
|
140
|
+
* Optional override for the footer CTA label. Defaults to `"Continue"`.
|
|
141
|
+
*/
|
|
142
|
+
footerLabel?: string;
|
|
143
|
+
/**
|
|
144
|
+
* Footer CTA click handler. When undefined the CTA renders inert.
|
|
145
|
+
*/
|
|
146
|
+
onContinue?: () => void;
|
|
147
|
+
/**
|
|
148
|
+
* Compound parts; see `AssetPicker.Header`, `AssetPicker.List`, etc.
|
|
149
|
+
*/
|
|
150
|
+
children?: ReactNode;
|
|
151
|
+
}
|
|
152
|
+
/**
|
|
153
|
+
* Body slot part props. Forwards every native `<div>` prop through to the
|
|
154
|
+
* underlying `Card.Body`, which becomes the scrollable region when the
|
|
155
|
+
* widget is mounted inside `Dialog.Content`.
|
|
156
|
+
*/
|
|
157
|
+
type AssetPickerBodyProps = ComponentProps<"div">;
|
|
158
|
+
/**
|
|
159
|
+
* Props for `AssetPicker.Header`.
|
|
160
|
+
*/
|
|
161
|
+
interface AssetPickerHeaderProps {
|
|
162
|
+
/**
|
|
163
|
+
* Optional override for the title rendered in this slot. Defaults to
|
|
164
|
+
* the `headerTitle` set on the {@link AssetPicker} root, falling back
|
|
165
|
+
* to `"Deposit {symbol}"` (filled from the destination token in
|
|
166
|
+
* context, `"Deposit USDC"` when no token is set).
|
|
167
|
+
*/
|
|
168
|
+
title?: string;
|
|
169
|
+
/**
|
|
170
|
+
* Optional override for the back-button callback. Defaults to the
|
|
171
|
+
* `onBack` set on the {@link AssetPicker} root. Pass `null` to force
|
|
172
|
+
* the chevron hidden even when the root supplies a callback.
|
|
173
|
+
*/
|
|
174
|
+
onBack?: (() => void) | null;
|
|
175
|
+
}
|
|
176
|
+
/**
|
|
177
|
+
* Props for `AssetPicker.List`.
|
|
178
|
+
*/
|
|
179
|
+
interface AssetPickerListProps {
|
|
180
|
+
/**
|
|
181
|
+
* Optional override for the rendered asset rows. Defaults to the
|
|
182
|
+
* `assets` set on the {@link AssetPicker} root.
|
|
183
|
+
*/
|
|
184
|
+
assets?: readonly AssetOption[];
|
|
185
|
+
/**
|
|
186
|
+
* Optional `AssetPicker.Asset` children. Power-user escape hatch —
|
|
187
|
+
* when provided, replaces the default rendering of `assets` from
|
|
188
|
+
* context.
|
|
189
|
+
*/
|
|
190
|
+
children?: ReactNode;
|
|
191
|
+
}
|
|
192
|
+
/**
|
|
193
|
+
* Props for `AssetPicker.Asset` (single row).
|
|
194
|
+
*/
|
|
195
|
+
type AssetPickerAssetProps = AssetOption;
|
|
196
|
+
/**
|
|
197
|
+
* Props for `AssetPicker.Footer`. Owns the full-width primary Continue CTA.
|
|
198
|
+
*/
|
|
199
|
+
interface AssetPickerFooterProps {
|
|
200
|
+
/**
|
|
201
|
+
* Optional override for the CTA label. Defaults to the `footerLabel`
|
|
202
|
+
* set on the {@link AssetPicker} root, falling back to `"Continue"`.
|
|
203
|
+
*/
|
|
204
|
+
label?: string;
|
|
205
|
+
/**
|
|
206
|
+
* Optional override for the CTA click handler. Defaults to the
|
|
207
|
+
* `onContinue` set on the {@link AssetPicker} root.
|
|
208
|
+
*/
|
|
209
|
+
onContinue?: () => void;
|
|
210
|
+
}
|
|
211
|
+
//#endregion
|
|
212
|
+
export { AssetOption, AssetPickerAssetProps, AssetPickerBodyProps, AssetPickerDialogProps, AssetPickerFooterProps, AssetPickerHeaderProps, AssetPickerListProps, AssetPickerProps, AssetPickerToken };
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { ConfirmTransferAmountsProps, ConfirmTransferBodyProps, ConfirmTransferBreakdownProps, ConfirmTransferDialogProps, ConfirmTransferDisclaimerProps, ConfirmTransferFooterProps, ConfirmTransferHeaderProps, ConfirmTransferHeroProps, ConfirmTransferMetaProps, ConfirmTransferProps } from "./types.js";
|
|
2
|
+
import { ConfirmTransferAmounts } from "./components/Amounts.js";
|
|
3
|
+
import { ConfirmTransferBreakdown } from "./components/Breakdown.js";
|
|
4
|
+
import { ConfirmTransferDisclaimer } from "./components/Disclaimer.js";
|
|
5
|
+
import { ConfirmTransferFooter } from "./components/Footer.js";
|
|
6
|
+
import { ConfirmTransferHeader } from "./components/Header.js";
|
|
7
|
+
import { ConfirmTransferHero } from "./components/Hero.js";
|
|
8
|
+
import { ConfirmTransferMeta } from "./components/Meta.js";
|
|
9
|
+
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
10
|
+
|
|
11
|
+
//#region src/shared/widgets/confirm-transfer/compound/ConfirmTransfer.d.ts
|
|
12
|
+
/**
|
|
13
|
+
* Review-and-confirm screen for a deposit. Renders the fiat hero, source/destination/timing,
|
|
14
|
+
* send/receive amounts, an expandable transaction breakdown, a terms disclaimer, and a primary CTA.
|
|
15
|
+
* Pass `loading` to swap each leaf to its shimmer placeholder while data resolves.
|
|
16
|
+
*
|
|
17
|
+
* Parts:
|
|
18
|
+
* - {@link ConfirmTransfer.Header}
|
|
19
|
+
* - {@link ConfirmTransfer.Body}
|
|
20
|
+
* - {@link ConfirmTransfer.Hero}
|
|
21
|
+
* - {@link ConfirmTransfer.Meta}
|
|
22
|
+
* - {@link ConfirmTransfer.Amounts}
|
|
23
|
+
* - {@link ConfirmTransfer.Breakdown}
|
|
24
|
+
* - {@link ConfirmTransfer.Disclaimer}
|
|
25
|
+
* - {@link ConfirmTransfer.Footer}
|
|
26
|
+
*
|
|
27
|
+
* Dialog form: {@link ConfirmTransfer.Dialog} pre-composes the widget
|
|
28
|
+
* into a `Dialog.Root + Dialog.Trigger + Dialog.Content` shell — the
|
|
29
|
+
* production-recommended entry point. Use the bare `ConfirmTransfer`
|
|
30
|
+
* form when you want the widget mounted inline.
|
|
31
|
+
*/
|
|
32
|
+
declare function ConfirmTransfer(props: ConfirmTransferProps): _$react_jsx_runtime0.JSX.Element;
|
|
33
|
+
declare function ConfirmTransferBody(props: ConfirmTransferBodyProps): _$react_jsx_runtime0.JSX.Element;
|
|
34
|
+
declare function ConfirmTransferDialog({
|
|
35
|
+
open,
|
|
36
|
+
defaultOpen,
|
|
37
|
+
onOpenChange,
|
|
38
|
+
trigger,
|
|
39
|
+
children,
|
|
40
|
+
...rootProps
|
|
41
|
+
}: ConfirmTransferDialogProps): _$react_jsx_runtime0.JSX.Element;
|
|
42
|
+
declare namespace ConfirmTransfer {
|
|
43
|
+
type Props = ConfirmTransferProps;
|
|
44
|
+
type HeaderProps = ConfirmTransferHeaderProps;
|
|
45
|
+
type BodyProps = ConfirmTransferBodyProps;
|
|
46
|
+
type HeroProps = ConfirmTransferHeroProps;
|
|
47
|
+
type MetaProps = ConfirmTransferMetaProps;
|
|
48
|
+
type AmountsProps = ConfirmTransferAmountsProps;
|
|
49
|
+
type BreakdownProps = ConfirmTransferBreakdownProps;
|
|
50
|
+
type DisclaimerProps = ConfirmTransferDisclaimerProps;
|
|
51
|
+
type FooterProps = ConfirmTransferFooterProps;
|
|
52
|
+
type DialogProps = ConfirmTransferDialogProps;
|
|
53
|
+
const Header: typeof ConfirmTransferHeader;
|
|
54
|
+
const Body: typeof ConfirmTransferBody;
|
|
55
|
+
const Hero: typeof ConfirmTransferHero;
|
|
56
|
+
const Meta: typeof ConfirmTransferMeta;
|
|
57
|
+
const Amounts: typeof ConfirmTransferAmounts;
|
|
58
|
+
const Breakdown: typeof ConfirmTransferBreakdown;
|
|
59
|
+
const Disclaimer: typeof ConfirmTransferDisclaimer;
|
|
60
|
+
const Footer: typeof ConfirmTransferFooter;
|
|
61
|
+
const Dialog: typeof ConfirmTransferDialog;
|
|
62
|
+
}
|
|
63
|
+
//#endregion
|
|
64
|
+
export { ConfirmTransfer };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{DialogShell as e}from"../../../dialog/DialogShell.js";import{Card as t}from"../../../ui/Card/Card.js";import{Tooltip as n}from"../../../ui/Tooltip/Tooltip.js";import"../../../ui/Tooltip/index.js";import"../../../../ui/index.js";import{Frame as r}from"../../../dialog/Frame.js";import{CONFIRM_TRANSFER_SLOTS as i}from"./ConfirmTransfer.slots.js";import{styles as a}from"./ConfirmTransfer.styles.js";import{ConfirmTransferContext as o}from"./context.js";import{ConfirmTransferAmounts as s}from"./components/Amounts.js";import{ConfirmTransferBreakdown as c}from"./components/Breakdown.js";import{ConfirmTransferDisclaimer as l}from"./components/Disclaimer.js";import{ConfirmTransferFooter as u}from"./components/Footer.js";import{ConfirmTransferHeader as d}from"./components/Header.js";import{ConfirmTransferHero as f}from"./components/Hero.js";import{ConfirmTransferMeta as p}from"./components/Meta.js";import{useMemo as m}from"react";import{jsx as h}from"react/jsx-runtime";import*as g from"@stylexjs/stylex";const _=Object.freeze({});function v(e){let{transfer:t,breakdown:s=_,heroAmountUsd:c,loading:l=!1,phase:u=`loading`,notice:d,error:f,quoteSeconds:p,quoteTotalSeconds:v=30,headerTitle:y,onBack:b,onConfirm:x,children:S}=e,C=m(()=>({transfer:t,breakdown:s,heroAmountUsd:c,loading:l,quoteSeconds:p,quoteTotalSeconds:v,phase:u,notice:d,...f?{error:f}:{},headerTitle:y,onBack:b,onConfirm:x}),[t,s,c,l,p,v,u,d,f,y,b,x]);return h(o.Provider,{value:C,children:h(n.Provider,{children:h(r,{"data-stridge-slot":i.root,"data-loading":l||void 0,...g.props(a.root),children:S})})})}function y(e){return h(t.Body,{"data-stridge-slot":i.body,...e})}function b({open:t,defaultOpen:n,onOpenChange:r,trigger:i,children:a,...o}){return h(e,{open:t,defaultOpen:n,onOpenChange:r,trigger:i,children:h(v,{...o,children:a})})}(function(e){e.Header=d,e.Body=y,e.Hero=f,e.Meta=p,e.Amounts=s,e.Breakdown=c,e.Disclaimer=l,e.Footer=u,e.Dialog=b})(v||={});export{v as ConfirmTransfer};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
//#region src/shared/widgets/confirm-transfer/compound/ConfirmTransfer.slots.d.ts
|
|
2
|
+
declare const CONFIRM_TRANSFER_SLOTS: {
|
|
3
|
+
readonly root: "confirm-transfer";
|
|
4
|
+
readonly header: "confirm-transfer-header";
|
|
5
|
+
readonly body: "confirm-transfer-body";
|
|
6
|
+
readonly hero: "confirm-transfer-hero";
|
|
7
|
+
readonly meta: "confirm-transfer-meta";
|
|
8
|
+
readonly amounts: "confirm-transfer-amounts";
|
|
9
|
+
readonly breakdown: "confirm-transfer-breakdown";
|
|
10
|
+
readonly quoteTimer: "confirm-transfer-quote-timer";
|
|
11
|
+
readonly disclaimer: "confirm-transfer-disclaimer";
|
|
12
|
+
readonly cta: "confirm-transfer-cta";
|
|
13
|
+
};
|
|
14
|
+
type ConfirmTransferSlot = (typeof CONFIRM_TRANSFER_SLOTS)[keyof typeof CONFIRM_TRANSFER_SLOTS];
|
|
15
|
+
//#endregion
|
|
16
|
+
export { CONFIRM_TRANSFER_SLOTS, ConfirmTransferSlot };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e={root:`confirm-transfer`,header:`confirm-transfer-header`,body:`confirm-transfer-body`,hero:`confirm-transfer-hero`,meta:`confirm-transfer-meta`,amounts:`confirm-transfer-amounts`,breakdown:`confirm-transfer-breakdown`,quoteTimer:`confirm-transfer-quote-timer`,disclaimer:`confirm-transfer-disclaimer`,cta:`confirm-transfer-cta`};export{e as CONFIRM_TRANSFER_SLOTS};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e={root:{"ConfirmTransfer__styles.root":`ConfirmTransfer__styles.root`,"position-kVAEAm":`x1n2onr6`,"width-kzqmXN":`xh8yej3`,"maxWidth-ks0D6T":`x17fpy1y`,$$css:`@stridge/kit:src/shared/widgets/confirm-transfer/compound/ConfirmTransfer.styles.ts:4`},header:{"ConfirmTransfer__styles.header":`ConfirmTransfer__styles.header`,"gap-kOIVth":`x1v2ro7d`,"paddingTop-kLKAdn":`xyamay9`,"paddingInlineEnd-kwRFfy":`x1x5flf6`,"paddingBottom-kGO01o":`x1l90r2v`,"paddingInlineStart-kZCmMZ":`xf7dkkf`,$$css:`@stridge/kit:src/shared/widgets/confirm-transfer/compound/ConfirmTransfer.styles.ts:11`},backIcon:{"ConfirmTransfer__styles.backIcon":`ConfirmTransfer__styles.backIcon`,"color-kMwMTN":`x15rks2t`,"strokeWidth-kfJifR":`xhxwl1`,$$css:`@stridge/kit:src/shared/widgets/confirm-transfer/compound/ConfirmTransfer.styles.ts:18`},headerTitle:{"ConfirmTransfer__styles.headerTitle":`ConfirmTransfer__styles.headerTitle`,"margin-kogj98":`x1ghz6dp`,"flexGrow-kzQI83":`x1iyjqo2`,$$css:`@stridge/kit:src/shared/widgets/confirm-transfer/compound/ConfirmTransfer.styles.ts:22`},timerSlot:{"ConfirmTransfer__styles.timerSlot":`ConfirmTransfer__styles.timerSlot`,"display-k1xSpc":`x78zum5`,"alignItems-kGNEyG":`x6s0dn4`,"justifyContent-kjj79g":`xl56j7k`,"width-kzqmXN":`x1td3qas`,"height-kZKoxP":`x10w6t97`,"flexShrink-kmuXW":`x2lah0s`,$$css:`@stridge/kit:src/shared/widgets/confirm-transfer/compound/ConfirmTransfer.styles.ts:26`},timerWrap:{"ConfirmTransfer__styles.timerWrap":`ConfirmTransfer__styles.timerWrap`,"position-kVAEAm":`x1n2onr6`,"width-kzqmXN":`x1td3qas`,"height-kZKoxP":`x10w6t97`,$$css:`@stridge/kit:src/shared/widgets/confirm-transfer/compound/ConfirmTransfer.styles.ts:35`},timerSvg:{"ConfirmTransfer__styles.timerSvg":`ConfirmTransfer__styles.timerSvg`,"position-kVAEAm":`x10l6tqk`,"inset-kpwlN0":`x10a8y8t`,"width-kzqmXN":`xh8yej3`,"height-kZKoxP":`x5yr21d`,"transform-k3aq6I":`x17t9sex`,$$css:`@stridge/kit:src/shared/widgets/confirm-transfer/compound/ConfirmTransfer.styles.ts:40`},timerTrack:{"ConfirmTransfer__styles.timerTrack":`ConfirmTransfer__styles.timerTrack`,"fill-kDwRjp":`xbh8q5q`,"stroke-kjVXCG":`xrjhcif`,"strokeWidth-kfJifR":`xvlca1e`,$$css:`@stridge/kit:src/shared/widgets/confirm-transfer/compound/ConfirmTransfer.styles.ts:47`},timerProgress:{"ConfirmTransfer__styles.timerProgress":`ConfirmTransfer__styles.timerProgress`,"fill-kDwRjp":`xbh8q5q`,"stroke-kjVXCG":`x1uhruij`,"strokeWidth-kfJifR":`xvlca1e`,"strokeLinecap-kU5bRw":`x1owpc8m`,$$css:`@stridge/kit:src/shared/widgets/confirm-transfer/compound/ConfirmTransfer.styles.ts:52`},timerDigits:{"ConfirmTransfer__styles.timerDigits":`ConfirmTransfer__styles.timerDigits`,"position-kVAEAm":`x1n2onr6`,"zIndex-kY2c9j":`x1vjfegm`,"display-k1xSpc":`x78zum5`,"alignItems-kGNEyG":`x6s0dn4`,"justifyContent-kjj79g":`xl56j7k`,"width-kzqmXN":`xh8yej3`,"height-kZKoxP":`x5yr21d`,$$css:`@stridge/kit:src/shared/widgets/confirm-transfer/compound/ConfirmTransfer.styles.ts:58`},sectionFirst:{"ConfirmTransfer__styles.sectionFirst":`ConfirmTransfer__styles.sectionFirst`,"marginTop-keoZOQ":`xqui205`,"marginInlineEnd-k71WvV":`xnqxrjt`,"marginInlineStart-keTefX":`xnzr9dm`,$$css:`@stridge/kit:src/shared/widgets/confirm-transfer/compound/ConfirmTransfer.styles.ts:77`},section:{"ConfirmTransfer__styles.section":`ConfirmTransfer__styles.section`,"marginTop-keoZOQ":`x1hmvnq2`,"marginInlineEnd-k71WvV":`xnqxrjt`,"marginInlineStart-keTefX":`xnzr9dm`,$$css:`@stridge/kit:src/shared/widgets/confirm-transfer/compound/ConfirmTransfer.styles.ts:82`},sectionLast:{"ConfirmTransfer__styles.sectionLast":`ConfirmTransfer__styles.sectionLast`,"marginTop-keoZOQ":`x1hmvnq2`,"marginInlineEnd-k71WvV":`xnqxrjt`,"marginInlineStart-keTefX":`xnzr9dm`,"marginBottom-k1K539":`x91k8ka`,$$css:`@stridge/kit:src/shared/widgets/confirm-transfer/compound/ConfirmTransfer.styles.ts:87`},hero:{"ConfirmTransfer__styles.hero":`ConfirmTransfer__styles.hero`,"display-k1xSpc":`x78zum5`,"flexDirection-kXwgrk":`xdt5ytf`,"alignItems-kGNEyG":`x6s0dn4`,"justifyContent-kjj79g":`xl56j7k`,"gap-kOIVth":`x17d4w8g`,"paddingTop-kLKAdn":`x1y1aw1k`,"paddingBottom-kGO01o":`x1g2khh7`,$$css:`@stridge/kit:src/shared/widgets/confirm-transfer/compound/ConfirmTransfer.styles.ts:98`},heroAmountRow:{"ConfirmTransfer__styles.heroAmountRow":`ConfirmTransfer__styles.heroAmountRow`,"display-k1xSpc":`x78zum5`,"flexDirection-kXwgrk":`x1q0g3np`,"alignItems-kGNEyG":`x1pha0wt`,"justifyContent-kjj79g":`xl56j7k`,"gap-kOIVth":`x195vfkc`,$$css:`@stridge/kit:src/shared/widgets/confirm-transfer/compound/ConfirmTransfer.styles.ts:107`},heroGlyph:{"ConfirmTransfer__styles.heroGlyph":`ConfirmTransfer__styles.heroGlyph`,"display-k1xSpc":`x1rg5ohu`,"fontSize-kGuDYH":`x1fhusgw`,"fontWeight-k63SB2":`xk50ysn`,"lineHeight-kLWn49":`xo5v014`,"letterSpacing-kb6lSQ":`x1b4dsll`,$$css:`@stridge/kit:src/shared/widgets/confirm-transfer/compound/ConfirmTransfer.styles.ts:114`},heroDigits:{"ConfirmTransfer__styles.heroDigits":`ConfirmTransfer__styles.heroDigits`,"display-k1xSpc":`x1rg5ohu`,"fontSize-kGuDYH":`x1xceadr`,"fontWeight-k63SB2":`xk50ysn`,"lineHeight-kLWn49":`xo5v014`,"letterSpacing-kb6lSQ":`xo2cfqc`,$$css:`@stridge/kit:src/shared/widgets/confirm-transfer/compound/ConfirmTransfer.styles.ts:121`},heroSubLine:{"ConfirmTransfer__styles.heroSubLine":`ConfirmTransfer__styles.heroSubLine`,"display-k1xSpc":`x78zum5`,"flexDirection-kXwgrk":`x1q0g3np`,"alignItems-kGNEyG":`x6s0dn4`,"gap-kOIVth":`x17d4w8g`,"marginTop-keoZOQ":`xr9ek0c`,$$css:`@stridge/kit:src/shared/widgets/confirm-transfer/compound/ConfirmTransfer.styles.ts:132`},heroSubLineIcon:{"ConfirmTransfer__styles.heroSubLineIcon":`ConfirmTransfer__styles.heroSubLineIcon`,"flexShrink-kmuXW":`x2lah0s`,$$css:`@stridge/kit:src/shared/widgets/confirm-transfer/compound/ConfirmTransfer.styles.ts:139`},breakdown:{"ConfirmTransfer__styles.breakdown":`ConfirmTransfer__styles.breakdown`,"display-k1xSpc":`x78zum5`,"flexDirection-kXwgrk":`xdt5ytf`,"paddingBlock-k8WAf4":`x12ulsxz`,"paddingInline-kg3NbH":`xfn1xvj`,$$css:`@stridge/kit:src/shared/widgets/confirm-transfer/compound/ConfirmTransfer.styles.ts:146`},breakdownTrigger:{"ConfirmTransfer__styles.breakdownTrigger":`ConfirmTransfer__styles.breakdownTrigger`,"display-k1xSpc":`x78zum5`,"flexDirection-kXwgrk":`x1q0g3np`,"alignItems-kGNEyG":`x6s0dn4`,"justifyContent-kjj79g":`x1qughib`,"width-kzqmXN":`xh8yej3`,"gap-kOIVth":`x1v2ro7d`,"paddingBlock-k8WAf4":`x12ulsxz`,"paddingInline-kg3NbH":`xaope02`,"outline-kI3sdo":`x1a2a7pz`,"cursor-kkrTdU":`x1ypdohk`,"backgroundColor-kWkggS":`xjbqb8w`,"borderWidth-kMzoRj":`xc342km`,"borderStyle-ksu8eU":`x1y0btm7`,"borderRadius-kaIpWk":`x1s7mj9v`,":focus-visible_boxShadow-kEtg5x":`xhatipn`,$$css:`@stridge/kit:src/shared/widgets/confirm-transfer/compound/ConfirmTransfer.styles.ts:152`},breakdownChevron:{"ConfirmTransfer__styles.breakdownChevron":`ConfirmTransfer__styles.breakdownChevron`,"width-kzqmXN":`x6jxa94`,"height-kZKoxP":`x1v9usgg`,"flexShrink-kmuXW":`x2lah0s`,"color-kMwMTN":`xdksllq`,"strokeWidth-kfJifR":`xhr4kjn`,"transitionProperty-k1ekBW":`x11xpdln`,"transitionDuration-kIyJzY":`xx6bhzk`,"transitionTimingFunction-kAMwcw":`x4ognrn`,$$css:`@stridge/kit:src/shared/widgets/confirm-transfer/compound/ConfirmTransfer.styles.ts:171`},breakdownChevronOpen:{"ConfirmTransfer__styles.breakdownChevronOpen":`ConfirmTransfer__styles.breakdownChevronOpen`,"transform-k3aq6I":`x1iffjtl`,$$css:`@stridge/kit:src/shared/widgets/confirm-transfer/compound/ConfirmTransfer.styles.ts:187`},breakdownPanel:{"ConfirmTransfer__styles.breakdownPanel":`ConfirmTransfer__styles.breakdownPanel`,"display-k1xSpc":`x78zum5`,"flexDirection-kXwgrk":`xdt5ytf`,"gap-kOIVth":`x167g77z`,"paddingTop-kLKAdn":`xz9dl7a`,$$css:`@stridge/kit:src/shared/widgets/confirm-transfer/compound/ConfirmTransfer.styles.ts:190`},breakdownRow:{"ConfirmTransfer__styles.breakdownRow":`ConfirmTransfer__styles.breakdownRow`,"display-k1xSpc":`x78zum5`,"flexDirection-kXwgrk":`x1q0g3np`,"alignItems-kGNEyG":`x6s0dn4`,"justifyContent-kjj79g":`x1qughib`,"gap-kOIVth":`x1v2ro7d`,"paddingInline-kg3NbH":`xaope02`,$$css:`@stridge/kit:src/shared/widgets/confirm-transfer/compound/ConfirmTransfer.styles.ts:196`},breakdownLabelGroup:{"ConfirmTransfer__styles.breakdownLabelGroup":`ConfirmTransfer__styles.breakdownLabelGroup`,"display-k1xSpc":`x78zum5`,"flexDirection-kXwgrk":`x1q0g3np`,"alignItems-kGNEyG":`x6s0dn4`,"gap-kOIVth":`x17d4w8g`,"minWidth-k7Eaqz":`xeuugli`,$$css:`@stridge/kit:src/shared/widgets/confirm-transfer/compound/ConfirmTransfer.styles.ts:204`},breakdownValueGroup:{"ConfirmTransfer__styles.breakdownValueGroup":`ConfirmTransfer__styles.breakdownValueGroup`,"display-k1xSpc":`x78zum5`,"flexDirection-kXwgrk":`x1q0g3np`,"alignItems-kGNEyG":`x6s0dn4`,"gap-kOIVth":`x17d4w8g`,"flexShrink-kmuXW":`x2lah0s`,$$css:`@stridge/kit:src/shared/widgets/confirm-transfer/compound/ConfirmTransfer.styles.ts:211`},breakdownInfoTrigger:{"ConfirmTransfer__styles.breakdownInfoTrigger":`ConfirmTransfer__styles.breakdownInfoTrigger`,"display-k1xSpc":`x3nfvp2`,"alignItems-kGNEyG":`x6s0dn4`,"justifyContent-kjj79g":`xl56j7k`,"width-kzqmXN":`x10vfzb2`,"height-kZKoxP":`x6w4g8m`,"padding-kmVPX3":`x1717udv`,"backgroundColor-kWkggS":`xjbqb8w`,"borderWidth-kMzoRj":`xc342km`,"borderStyle-ksu8eU":`x1y0btm7`,"outline-kI3sdo":`x1a2a7pz`,"cursor-kkrTdU":`x1146j2`,"color-kMwMTN":`xi96bwj`,"borderRadius-kaIpWk":`x1npxkrn`,":focus-visible_boxShadow-kEtg5x":`xhatipn`,$$css:`@stridge/kit:src/shared/widgets/confirm-transfer/compound/ConfirmTransfer.styles.ts:218`},breakdownInfoIcon:{"ConfirmTransfer__styles.breakdownInfoIcon":`ConfirmTransfer__styles.breakdownInfoIcon`,"width-kzqmXN":`x10vfzb2`,"height-kZKoxP":`x6w4g8m`,"flexShrink-kmuXW":`x2lah0s`,"color-kMwMTN":`x15rks2t`,$$css:`@stridge/kit:src/shared/widgets/confirm-transfer/compound/ConfirmTransfer.styles.ts:236`},cta:{"ConfirmTransfer__styles.cta":`ConfirmTransfer__styles.cta`,"alignSelf-kSGwAc":`xkh2ocl`,"borderWidth-kMzoRj":`xc342km`,"cursor-kkrTdU":`x1ypdohk`,$$css:`@stridge/kit:src/shared/widgets/confirm-transfer/compound/ConfirmTransfer.styles.ts:252`},footerStack:{"ConfirmTransfer__styles.footerStack":`ConfirmTransfer__styles.footerStack`,"display-k1xSpc":`x78zum5`,"flexDirection-kXwgrk":`xdt5ytf`,"alignItems-kGNEyG":`x6s0dn4`,"gap-kOIVth":`x883omv`,"marginTop-keoZOQ":`x1hmvnq2`,"marginInlineEnd-k71WvV":`xnqxrjt`,"marginInlineStart-keTefX":`xnzr9dm`,"marginBottom-k1K539":`x91k8ka`,$$css:`@stridge/kit:src/shared/widgets/confirm-transfer/compound/ConfirmTransfer.styles.ts:263`},footerNotice:{"ConfirmTransfer__styles.footerNotice":`ConfirmTransfer__styles.footerNotice`,"margin-kogj98":`x1ghz6dp`,"textAlign-k9WMMc":`x2b8uid`,$$css:`@stridge/kit:src/shared/widgets/confirm-transfer/compound/ConfirmTransfer.styles.ts:273`},disclaimerTermsLink:{"ConfirmTransfer__styles.disclaimerTermsLink":`ConfirmTransfer__styles.disclaimerTermsLink`,"color-kMwMTN":`x1me39qh`,"textDecorationLine-kMnn75":`xujl8zx`,"textDecorationThickness-kNySMw":`xyi4chj`,$$css:`@stridge/kit:src/shared/widgets/confirm-transfer/compound/ConfirmTransfer.styles.ts:277`}};export{e as styles};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ConfirmTransferAmountsProps } from "../types.js";
|
|
2
|
+
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
|
+
|
|
4
|
+
//#region src/shared/widgets/confirm-transfer/compound/components/Amounts.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* Amounts part — two-row card showing what the user sends and what they receive.
|
|
7
|
+
* While the root is loading both row values are replaced by shimmer pills sized
|
|
8
|
+
* to match the resolved token icon + value text.
|
|
9
|
+
*/
|
|
10
|
+
declare function ConfirmTransferAmounts({
|
|
11
|
+
sendLabel,
|
|
12
|
+
receiveLabel
|
|
13
|
+
}: ConfirmTransferAmountsProps): _$react_jsx_runtime0.JSX.Element;
|
|
14
|
+
//#endregion
|
|
15
|
+
export { ConfirmTransferAmounts };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{useLingui as e}from"../../../../i18n/useLingui.js";import"../../../../../i18n/index.js";import{Details as t}from"../../../../ui/Details/Details.js";import"../../../../ui/Details/index.js";import{Skeleton as n}from"../../../../ui/Skeleton/Skeleton.js";import"../../../../ui/Skeleton/index.js";import{TokenLogo as r}from"../../../../ui/TokenLogo/TokenLogo.js";import"../../../../ui/TokenLogo/index.js";import{CONFIRM_TRANSFER_SLOTS as i}from"../ConfirmTransfer.slots.js";import{styles as a}from"../ConfirmTransfer.styles.js";import{useConfirmTransferContext as o}from"../context.js";import{jsx as s,jsxs as c}from"react/jsx-runtime";import*as l from"@stylexjs/stylex";function u({sendLabel:n,receiveLabel:r}){let u=o(`ConfirmTransfer.Amounts`),{_:p}=e(),{transfer:m,loading:h}=u,g=l.props(a.section),_=n??p({id:`Ck1xL4`,message:`You send`}),v=r??p({id:`88cUW-`,message:`You receive`});return c(t,{"data-stridge-slot":i.amounts,className:g.className,style:g.style,children:[s(t.Row,{label:_,children:h?s(f,{width:92}):s(d,{amount:m.sendAmount,token:m.sendToken})}),s(t.Row,{label:v,children:h?s(f,{width:124}):s(d,{amount:m.receiveAmount,token:m.receiveToken})})]})}function d({amount:e,token:n}){return c(t.Value,{icon:s(r,{size:`sm`,symbol:n.symbol,...n.chainId===void 0?{}:{chainId:n.chainId},...n.address===void 0?{}:{address:n.address},...n.isNative===void 0?{}:{isNative:n.isNative},...n.logoUrl===void 0?{}:{logoUrl:n.logoUrl}}),children:[e,` `,n.symbol,n.suffix?` ${n.suffix}`:``]})}function f({width:e}){return c(t.Value,{children:[s(n,{width:12,height:12,radius:`var(--stridge-kit-radius-full)`}),s(n,{width:e,height:14})]})}export{u as ConfirmTransferAmounts};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ConfirmTransferBreakdownProps } from "../types.js";
|
|
2
|
+
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
|
+
|
|
4
|
+
//#region src/shared/widgets/confirm-transfer/compound/components/Breakdown.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* Breakdown part — collapsible card listing the route, network cost, price
|
|
7
|
+
* impact, and max slippage rows. While the root is loading the panel locks
|
|
8
|
+
* closed and the chevron slot is replaced by a shimmer.
|
|
9
|
+
*/
|
|
10
|
+
declare function ConfirmTransferBreakdown({
|
|
11
|
+
label,
|
|
12
|
+
defaultOpen,
|
|
13
|
+
open,
|
|
14
|
+
onOpenChange
|
|
15
|
+
}: ConfirmTransferBreakdownProps): _$react_jsx_runtime0.JSX.Element;
|
|
16
|
+
//#endregion
|
|
17
|
+
export { ConfirmTransferBreakdown };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{useLingui as e}from"../../../../i18n/useLingui.js";import"../../../../../i18n/index.js";import{ChevronRightIcon as t}from"../../../../icons/ChevronRightIcon.js";import{InfoIcon as n}from"../../../../icons/InfoIcon.js";import"../../../../../icons/index.js";import{Collapsible as r}from"../../../../ui/Collapsible/Collapsible.js";import"../../../../ui/Collapsible/index.js";import{Skeleton as i}from"../../../../ui/Skeleton/Skeleton.js";import"../../../../ui/Skeleton/index.js";import{text as a}from"../../../../ui/Text/Text.js";import{Tooltip as o}from"../../../../ui/Tooltip/Tooltip.js";import"../../../../ui/Tooltip/index.js";import"../../../../../ui/index.js";import{CONFIRM_TRANSFER_SLOTS as s}from"../ConfirmTransfer.slots.js";import{styles as c}from"../ConfirmTransfer.styles.js";import{useConfirmTransferContext as l}from"../context.js";import{useDirectionalChevronTransform as u}from"../../../../dialog/useDirectionalChevronTransform.js";import{useEffect as d,useState as f}from"react";import{jsx as p,jsxs as m}from"react/jsx-runtime";import*as h from"@stylexjs/stylex";const g=[`selectedRoute`,`networkCost`,`priceImpact`,`maxSlippage`];function _({label:t,defaultOpen:n=!1,open:o,onOpenChange:u}){let _=l(`ConfirmTransfer.Breakdown`),{_:b}=e(),S=t??b({id:`5joj8M`,message:`Transaction breakdown`}),{breakdown:C,loading:w}=_,[T,E]=f(o??n);d(()=>{o!==void 0&&E(o)},[o]);let D=w?!1:T;return m(r,{"data-stridge-slot":s.breakdown,open:D,onOpenChange:e=>{w||(E(e),u?.(e))},disabled:w,...h.props(c.section,c.breakdown),children:[p(r.Trigger,{render:(e,{open:t})=>m(`button`,{type:`button`,...e,children:[p(a.span,{size:`meta`,fontWeight:`medium`,leading:`tight`,tracking:`tight`,children:S}),w?p(i,{width:56,height:12}):p(x,{open:t})]}),"aria-label":S,disabled:w,...h.props(c.breakdownTrigger)}),p(r.Panel,{children:p(`div`,{...h.props(c.breakdownPanel),children:g.map(e=>{let t=v(e,C);return t?p(y,{...t},e):null})})})]})}function v(e,t){switch(e){case`selectedRoute`:return t.selectedRoute?{kind:`selectedRoute`,row:t.selectedRoute}:null;case`networkCost`:return t.networkCost?{kind:`networkCost`,row:t.networkCost}:null;case`priceImpact`:return t.priceImpact?{kind:`priceImpact`,row:t.priceImpact}:null;case`maxSlippage`:return t.maxSlippage?{kind:`maxSlippage`,row:t.maxSlippage}:null;default:return S(e)}}function y(t){let{_:n}=e(),{row:r}=t,i=b(t,e=>n({id:`KGoAE6`,message:`Auto · {value}`,values:{value:e}}));return m(`div`,{...h.props(c.breakdownRow),children:[m(`div`,{...h.props(c.breakdownLabelGroup),children:[p(a.span,{size:`xs`,fontWeight:`medium`,leading:`tight`,tracking:`tight`,color:`subdued`,children:r.label}),r.tooltip?p(C,{content:r.tooltip,label:r.label}):null]}),m(`div`,{...h.props(c.breakdownValueGroup),children:[r.valueAdornment,p(a.span,{size:`xs`,fontWeight:`semibold`,leading:`tight`,tracking:`tight`,children:i})]})]})}function b(e,t){switch(e.kind){case`selectedRoute`:return e.row.value;case`networkCost`:return e.row.valueUsd;case`priceImpact`:return e.row.valuePercent;case`maxSlippage`:return e.row.auto?t(e.row.valuePercent):e.row.valuePercent;default:return S(e)}}function x({open:e}){let n=u(e),r=h.props(c.breakdownChevron);return p(t,{"aria-hidden":!0,className:r.className,style:{...r.style,transform:n}})}function S(e){throw Error(`Unhandled breakdown row variant: ${JSON.stringify(e)}`)}function C({content:t,label:r}){let{_:i}=e();function a(e){e.stopPropagation()}return m(o.Root,{children:[p(o.Trigger,{"aria-label":i({id:`-tu7Q8`,message:`More about {0}`,values:{0:r.toLowerCase()}}),onClick:a,...h.props(c.breakdownInfoTrigger),children:p(n,{"aria-hidden":!0,...h.props(c.breakdownInfoIcon)})}),p(o.Content,{children:t})]})}export{_ as ConfirmTransferBreakdown};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ConfirmTransferDisclaimerProps } from "../types.js";
|
|
2
|
+
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
|
+
|
|
4
|
+
//#region src/shared/widgets/confirm-transfer/compound/components/Disclaimer.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* Disclaimer part — soft-tinted notice row with an info glyph and legal copy.
|
|
7
|
+
* Defaults to "By clicking Confirm Deposit, you agree to our terms.", with
|
|
8
|
+
* `terms` linking to the Stridge terms page. Pass `children` to override the
|
|
9
|
+
* full copy (link included).
|
|
10
|
+
*/
|
|
11
|
+
declare function ConfirmTransferDisclaimer({
|
|
12
|
+
children
|
|
13
|
+
}: ConfirmTransferDisclaimerProps): _$react_jsx_runtime0.JSX.Element;
|
|
14
|
+
//#endregion
|
|
15
|
+
export { ConfirmTransferDisclaimer };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{Trans as e}from"../../../../i18n/Trans.js";import"../../../../../i18n/index.js";import{InfoIcon as t}from"../../../../icons/InfoIcon.js";import"../../../../../icons/index.js";import{Alert as n}from"../../../../ui/Alert/Alert.js";import{ExternalLink as r}from"../../../../ui/ExternalLink/ExternalLink.js";import"../../../../ui/ExternalLink/index.js";import"../../../../../ui/index.js";import{BRAND_LINKS as i}from"../../../../constants/brand-links.js";import{CONFIRM_TRANSFER_SLOTS as a}from"../ConfirmTransfer.slots.js";import{styles as o}from"../ConfirmTransfer.styles.js";import{jsx as s}from"react/jsx-runtime";import*as c from"@stylexjs/stylex";const l=s(e,{id:`kR8ayx`,message:`By clicking Confirm Deposit, you agree to our <0>terms</0>.`,components:{0:s(r,{href:i.terms,...c.props(o.disclaimerTermsLink)})}});function u({children:e=l}){return s(n,{"data-stridge-slot":a.disclaimer,variant:`default`,icon:s(t,{}),...c.props(o.section),children:e})}export{u as ConfirmTransferDisclaimer};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { ConfirmTransferFooterProps } from "../types.js";
|
|
2
|
+
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
|
+
|
|
4
|
+
//#region src/shared/widgets/confirm-transfer/compound/components/Footer.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* Footer part — primary CTA. The label adapts to the current phase:
|
|
7
|
+
* `"Confirm Deposit"` when ready, `"Estimating gas…"` for the initial
|
|
8
|
+
* quote fetch, `"Confirm transaction in your wallet"` while the user is
|
|
9
|
+
* signing, `"Regenerating quote…"` while a fresh quote is being fetched
|
|
10
|
+
* (e.g. after expiry or a declined wallet prompt), and `"Try again"`
|
|
11
|
+
* when the quote step has errored. Renders `notice` from context (e.g.
|
|
12
|
+
* "Signature declined. Please try again.") above the CTA when present;
|
|
13
|
+
* in the `"error"` phase the failure message takes that slot instead.
|
|
14
|
+
* Click is inert when `onConfirm` is undefined or while loading; in the
|
|
15
|
+
* error phase the button stays interactive so retry is one click away.
|
|
16
|
+
*/
|
|
17
|
+
declare function ConfirmTransferFooter({
|
|
18
|
+
label,
|
|
19
|
+
loadingLabel,
|
|
20
|
+
submittingLabel,
|
|
21
|
+
regeneratingLabel,
|
|
22
|
+
retryLabel,
|
|
23
|
+
onConfirm
|
|
24
|
+
}?: ConfirmTransferFooterProps): _$react_jsx_runtime0.JSX.Element;
|
|
25
|
+
//#endregion
|
|
26
|
+
export { ConfirmTransferFooter };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{useLingui as e}from"../../../../i18n/useLingui.js";import"../../../../../i18n/index.js";import{Button as t}from"../../../../ui/Button/Button.js";import"../../../../ui/Button/index.js";import{text as n}from"../../../../ui/Text/Text.js";import"../../../../../ui/index.js";import{CONFIRM_TRANSFER_SLOTS as r}from"../ConfirmTransfer.slots.js";import{styles as i}from"../ConfirmTransfer.styles.js";import{useConfirmTransferContext as a}from"../context.js";import{jsx as o,jsxs as s}from"react/jsx-runtime";import*as c from"@stylexjs/stylex";function l({label:l,loadingLabel:u,submittingLabel:d,regeneratingLabel:f,retryLabel:p,onConfirm:m}={}){let h=a(`ConfirmTransfer.Footer`),{_:g}=e(),{phase:_,notice:v,error:y}=h,b=m??h.onConfirm,x=l??g({id:`qj0vvX`,message:`Confirm Deposit`}),S=u??g({id:`0eg2g7`,message:`Estimating gas…`}),C=d??g({id:`njn4bC`,message:`Confirm transaction in your wallet`}),w=f??g({id:`Ly6geA`,message:`Regenerating quote…`}),T=p??g({id:`KDw4GX`,message:`Try again`}),E=_===`error`,D=_!==`ready`&&!E,O=(_===`ready`||E)&&typeof b==`function`,k=E?T:D?_===`submitting`?C:_===`regenerating`?w:S:x,A=E?y?.message??g({id:`fWsBTs`,message:`Something went wrong. Please try again.`}):v;return s(`div`,{...c.props(i.footerStack),children:[A?o(n.p,{size:`sm`,leading:`tight`,color:E?`danger`:`subdued`,...c.props(i.footerNotice),children:A}):null,o(t,{"data-stridge-slot":r.cta,"data-loading":D||void 0,"aria-busy":D||void 0,size:`cta`,isLoading:D,onClick:O?b:void 0,...c.props(i.cta),children:o(n.span,{size:`callout`,fontWeight:`semibold`,leading:`tight`,tracking:`tight`,color:`inherit`,children:k})})]})}export{l as ConfirmTransferFooter};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ConfirmTransferHeaderProps } from "../types.js";
|
|
2
|
+
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
|
+
|
|
4
|
+
//#region src/shared/widgets/confirm-transfer/compound/components/Header.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* Header part — back button, title, and quote-timer slot.
|
|
7
|
+
*/
|
|
8
|
+
declare function ConfirmTransferHeader({
|
|
9
|
+
title,
|
|
10
|
+
onBack
|
|
11
|
+
}?: ConfirmTransferHeaderProps): _$react_jsx_runtime0.JSX.Element;
|
|
12
|
+
//#endregion
|
|
13
|
+
export { ConfirmTransferHeader };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{useLingui as e}from"../../../../i18n/useLingui.js";import"../../../../../i18n/index.js";import{ChevronLeftIcon as t}from"../../../../icons/ChevronLeftIcon.js";import"../../../../../icons/index.js";import{IconButton as n}from"../../../../ui/IconButton/IconButton.js";import{Dialog as r}from"../../../../ui/Dialog/Dialog.js";import"../../../../ui/Dialog/index.js";import{Card as i}from"../../../../ui/Card/Card.js";import{text as a}from"../../../../ui/Text/Text.js";import"../../../../../ui/index.js";import{CONFIRM_TRANSFER_SLOTS as o}from"../ConfirmTransfer.slots.js";import{styles as s}from"../ConfirmTransfer.styles.js";import{useConfirmTransferContext as c}from"../context.js";import{QuoteTimer as l}from"./QuoteTimer.js";import{jsx as u,jsxs as d}from"react/jsx-runtime";import*as f from"@stylexjs/stylex";function p({title:p,onBack:m}={}){let h=c(`ConfirmTransfer.Header`),{_:g}=e(),_=p??h.headerTitle??g({id:`AOPSKq`,message:`Deposit {0}`,values:{0:h.transfer.receiveToken.symbol}}),v=m===null?void 0:m??h.onBack,y=!h.loading&&typeof h.quoteSeconds==`number`;return d(i.Header,{"data-stridge-slot":o.header,...f.props(s.header),children:[typeof v==`function`?u(n,{"aria-label":g({id:`iH8pgl`,message:`Back`}),onClick:v,children:u(t,{"aria-hidden":!0,...f.props(s.backIcon)})}):null,u(a.span,{size:`base`,fontWeight:`semibold`,leading:`tight`,tracking:`tight`,...f.props(s.headerTitle),children:_}),u(`span`,{"aria-hidden":!y,...f.props(s.timerSlot),children:y?u(l,{seconds:h.quoteSeconds??0,total:h.quoteTotalSeconds}):null}),u(r.CloseButton,{})]})}export{p as ConfirmTransferHeader};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ConfirmTransferHeroProps } from "../types.js";
|
|
2
|
+
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
|
+
|
|
4
|
+
//#region src/shared/widgets/confirm-transfer/compound/components/Hero.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* Hero part — oversized fiat amount centred at the top of the modal body.
|
|
7
|
+
* The leading currency glyph is rendered on a smaller font scale than the
|
|
8
|
+
* digits, with a small subline below showing the destination token amount
|
|
9
|
+
* (icon + `1.99580 USDC` style). Reads `heroAmountUsd` and the receive
|
|
10
|
+
* token from context; `amountUsd` overrides the headline figure.
|
|
11
|
+
*/
|
|
12
|
+
declare function ConfirmTransferHero({
|
|
13
|
+
amountUsd
|
|
14
|
+
}: ConfirmTransferHeroProps): _$react_jsx_runtime0.JSX.Element;
|
|
15
|
+
//#endregion
|
|
16
|
+
export { ConfirmTransferHero };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{Skeleton as e}from"../../../../ui/Skeleton/Skeleton.js";import"../../../../ui/Skeleton/index.js";import{text as t}from"../../../../ui/Text/Text.js";import{TokenLogo as n}from"../../../../ui/TokenLogo/TokenLogo.js";import"../../../../ui/TokenLogo/index.js";import"../../../../../ui/index.js";import{CONFIRM_TRANSFER_SLOTS as r}from"../ConfirmTransfer.slots.js";import{styles as i}from"../ConfirmTransfer.styles.js";import{useConfirmTransferContext as a}from"../context.js";import{splitAmount as o}from"./splitAmount.js";import{jsx as s,jsxs as c}from"react/jsx-runtime";import*as l from"@stylexjs/stylex";function u({amountUsd:u}){let d=a(`ConfirmTransfer.Hero`),{glyph:f,digits:p}=o(u??d.heroAmountUsd),m=d.transfer.receiveToken;return c(`div`,{"data-stridge-slot":r.hero,...l.props(i.sectionFirst,i.hero),children:[c(`div`,{dir:`ltr`,...l.props(i.heroAmountRow),children:[f?s(`span`,{...l.props(i.heroGlyph),children:f}):null,s(`span`,{...l.props(i.heroDigits),children:p})]}),c(`div`,{dir:`ltr`,...l.props(i.heroSubLine),children:[s(n,{size:`md`,symbol:m.symbol,...m.chainId===void 0?{}:{chainId:m.chainId},...m.address===void 0?{}:{address:m.address},...m.isNative===void 0?{}:{isNative:m.isNative},...m.logoUrl===void 0?{}:{logoUrl:m.logoUrl},hideChainBadge:!0,...l.props(i.heroSubLineIcon)}),d.loading?s(e,{width:88,height:14}):c(t.span,{size:`sm`,fontWeight:`medium`,leading:`tight`,tracking:`tight`,color:`subdued`,children:[d.transfer.receiveAmount,` `,m.symbol,m.suffix?` ${m.suffix}`:``]})]})]})}export{u as ConfirmTransferHero};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ConfirmTransferMetaProps } from "../types.js";
|
|
2
|
+
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
|
+
|
|
4
|
+
//#region src/shared/widgets/confirm-transfer/compound/components/Meta.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* Meta part — three-row card showing source, destination, and estimated time.
|
|
7
|
+
* While the root is loading the estimated-time value is replaced by a shimmer;
|
|
8
|
+
* source and destination continue to render their resolved values.
|
|
9
|
+
*/
|
|
10
|
+
declare function ConfirmTransferMeta({
|
|
11
|
+
sourceLabel,
|
|
12
|
+
destinationLabel,
|
|
13
|
+
etaLabel
|
|
14
|
+
}: ConfirmTransferMetaProps): _$react_jsx_runtime0.JSX.Element;
|
|
15
|
+
//#endregion
|
|
16
|
+
export { ConfirmTransferMeta };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{useLingui as e}from"../../../../i18n/useLingui.js";import"../../../../../i18n/index.js";import{Details as t}from"../../../../ui/Details/Details.js";import"../../../../ui/Details/index.js";import{Skeleton as n}from"../../../../ui/Skeleton/Skeleton.js";import"../../../../ui/Skeleton/index.js";import{CONFIRM_TRANSFER_SLOTS as r}from"../ConfirmTransfer.slots.js";import{styles as i}from"../ConfirmTransfer.styles.js";import{useConfirmTransferContext as a}from"../context.js";import{jsx as o,jsxs as s}from"react/jsx-runtime";import*as c from"@stylexjs/stylex";function l({sourceLabel:l,destinationLabel:u,etaLabel:d}){let f=a(`ConfirmTransfer.Meta`),{_:p}=e(),{transfer:m,loading:h}=f,g=c.props(i.section),_=l??p({id:`wdxz7K`,message:`Source`}),v=u??p({id:`Enslfm`,message:`Destination`}),y=d??p({id:`-nuEh_`,message:`Estimated time`});return s(t,{"data-stridge-slot":r.meta,className:g.className,style:g.style,children:[o(t.Row,{label:_,children:o(t.Value,{icon:m.sourceIcon,children:m.sourceLabel})}),o(t.Row,{label:v,children:o(t.Value,{icon:m.destinationIcon,children:m.destinationLabel})}),o(t.Row,{label:y,children:h?o(n,{width:64,height:14}):o(t.Value,{children:m.eta})})]})}export{l as ConfirmTransferMeta};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{useLingui as e}from"../../../../i18n/useLingui.js";import"../../../../../i18n/index.js";import{text as t}from"../../../../ui/Text/Text.js";import"../../../../../ui/index.js";import{CONFIRM_TRANSFER_SLOTS as n}from"../ConfirmTransfer.slots.js";import{styles as r}from"../ConfirmTransfer.styles.js";import{useEffect as i,useRef as a}from"react";import{jsx as o,jsxs as s}from"react/jsx-runtime";import*as c from"@stylexjs/stylex";const l=2*Math.PI*13;function u({seconds:u,total:d=30}){let{_:f}=e(),p=Math.max(d,1),m=Math.max(0,Math.min(u,p)),h=a(null),g=a((typeof performance<`u`?performance.now():0)+m*1e3),_=a(p);return i(()=>{if(typeof performance>`u`)return;let e=Math.max(0,(g.current-performance.now())/1e3);Math.abs(e-m)>.25&&(g.current=performance.now()+m*1e3),_.current=p},[m,p]),i(()=>{let e=h.current;if(!e)return;let t=0,n=()=>{let r=Math.max(0,(g.current-performance.now())/1e3),i=Math.max(0,Math.min(r/_.current,1));e.style.strokeDashoffset=String(l-i*l),r>0&&(t=window.requestAnimationFrame(n))};return t=window.requestAnimationFrame(n),()=>window.cancelAnimationFrame(t)},[]),s(`div`,{"data-stridge-slot":n.quoteTimer,role:`timer`,"aria-label":f({id:`IDt4jm`,message:`{0, plural, one {# second} other {# seconds}} left on quote`,values:{0:Math.ceil(m)}}),...c.props(r.timerWrap),children:[s(`svg`,{viewBox:`0 0 32 32`,"aria-hidden":!0,...c.props(r.timerSvg),children:[o(`circle`,{cx:`16`,cy:`16`,r:13,...c.props(r.timerTrack)}),o(`circle`,{ref:h,cx:`16`,cy:`16`,r:13,...c.props(r.timerProgress),strokeDasharray:l})]}),o(t.span,{size:`caption`,fontWeight:`medium`,leading:`tight`,tracking:`tight`,...c.props(r.timerDigits),children:Math.ceil(m)})]})}export{u as QuoteTimer};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function e(e){let t=e.charAt(0);return!t||/[0-9]/.test(t)?{glyph:``,digits:e}:{glyph:t,digits:e.slice(1)}}export{e as splitAmount};
|
|
@@ -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 <ConfirmTransfer>.`);return r}export{n as ConfirmTransferContext,r as useConfirmTransferContext};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { ConfirmTransferAmountsProps, ConfirmTransferBodyProps, ConfirmTransferBreakdown, ConfirmTransferBreakdownPercentRow, ConfirmTransferBreakdownProps, ConfirmTransferBreakdownTextRow, ConfirmTransferBreakdownUsdRow, ConfirmTransferDialogProps, ConfirmTransferDisclaimerProps, ConfirmTransferFooterProps, ConfirmTransferHeaderProps, ConfirmTransferHeroProps, ConfirmTransferMetaProps, ConfirmTransferProps, ConfirmTransferToken, ConfirmTransferTransfer } from "./types.js";
|
|
2
|
+
import { ConfirmTransfer } from "./ConfirmTransfer.js";
|
|
3
|
+
import { CONFIRM_TRANSFER_SLOTS, ConfirmTransferSlot } from "./ConfirmTransfer.slots.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./ConfirmTransfer.slots.js";import"./ConfirmTransfer.js";
|