@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,36 @@
|
|
|
1
|
+
import { ProcessingStateRowProps } from "../types.js";
|
|
2
|
+
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
|
+
|
|
4
|
+
//#region src/shared/widgets/processing-state/compound/components/Rows.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* Predefined `Source` row — wallet icon + name + truncated address +
|
|
7
|
+
* explorer link. Reads `sourceWallet` from the {@link ProcessingState}
|
|
8
|
+
* root and renders nothing when the wallet payload is missing.
|
|
9
|
+
*/
|
|
10
|
+
declare function ProcessingStateSourceRow({
|
|
11
|
+
label
|
|
12
|
+
}?: ProcessingStateRowProps): _$react_jsx_runtime0.JSX.Element | null;
|
|
13
|
+
/**
|
|
14
|
+
* Predefined `Source tx` row. Reads `sourceTx` from the
|
|
15
|
+
* {@link ProcessingState} root and renders nothing when the hash is
|
|
16
|
+
* missing.
|
|
17
|
+
*/
|
|
18
|
+
declare function ProcessingStateSourceTxRow({
|
|
19
|
+
label
|
|
20
|
+
}?: ProcessingStateRowProps): _$react_jsx_runtime0.JSX.Element | null;
|
|
21
|
+
/**
|
|
22
|
+
* Predefined `Order submitted` row. Renders only when the root supplies a
|
|
23
|
+
* pre-formatted `submittedAt` timestamp.
|
|
24
|
+
*/
|
|
25
|
+
declare function ProcessingStateSubmittedAtRow({
|
|
26
|
+
label
|
|
27
|
+
}?: ProcessingStateRowProps): _$react_jsx_runtime0.JSX.Element | null;
|
|
28
|
+
/**
|
|
29
|
+
* Predefined `Detected` row. Renders only when the root supplies a
|
|
30
|
+
* pre-formatted `detectedAt` timestamp.
|
|
31
|
+
*/
|
|
32
|
+
declare function ProcessingStateDetectedAtRow({
|
|
33
|
+
label
|
|
34
|
+
}?: ProcessingStateRowProps): _$react_jsx_runtime0.JSX.Element | null;
|
|
35
|
+
//#endregion
|
|
36
|
+
export { ProcessingStateDetectedAtRow, ProcessingStateSourceRow, ProcessingStateSourceTxRow, ProcessingStateSubmittedAtRow };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{useLingui as e}from"../../../../i18n/useLingui.js";import"../../../../../i18n/index.js";import{TxHashValue as t}from"../../../../primitives/TxHashValue/TxHashValue.js";import"../../../../primitives/TxHashValue/index.js";import{WalletValue as n}from"../../../../primitives/WalletValue/WalletValue.js";import"../../../../primitives/WalletValue/index.js";import{useProcessingStateContext as r}from"../context.js";import{ProcessingStateDetail as i}from"./Detail.js";import{jsx as a}from"react/jsx-runtime";function o({label:t}={}){let o=r(`ProcessingState.SourceRow`),{_:s}=e();if(!o.sourceWallet)return null;let{name:c,address:l,explorerUrl:u}=o.sourceWallet;return a(i,{label:t??s({id:`wdxz7K`,message:`Source`}),value:a(n,{name:c??s({id:`sb9Y58`,message:`Wallet`}),address:l,...u?{explorerUrl:u}:{}})})}function s({label:n}={}){let o=r(`ProcessingState.SourceTxRow`),{_:s}=e();return o.sourceTx?.hash?a(i,{label:n??s({id:`yrvWai`,message:`Source tx`}),value:a(t,{hash:o.sourceTx.hash,...o.sourceTx.explorerUrl?{explorerUrl:o.sourceTx.explorerUrl}:{}})}):null}function c({label:t}={}){let n=r(`ProcessingState.SubmittedAtRow`),{_:o}=e();return n.submittedAt===void 0?null:a(i,{label:t??o({id:`TT0aVH`,message:`Order submitted`}),value:n.submittedAt})}function l({label:t}={}){let n=r(`ProcessingState.DetectedAtRow`),{_:o}=e();return n.detectedAt===void 0?null:a(i,{label:t??o({id:`mvYQx_`,message:`Detected`}),value:n.detectedAt})}export{l as ProcessingStateDetectedAtRow,o as ProcessingStateSourceRow,s as ProcessingStateSourceTxRow,c as ProcessingStateSubmittedAtRow};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ProcessingStateStatusPillProps } from "../types.js";
|
|
2
|
+
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
|
+
|
|
4
|
+
//#region src/shared/widgets/processing-state/compound/components/StatusPill.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* Surfaces the in-flight status via an animated 6-dot indicator next to a label. Defaults to `"In transit"`; pass
|
|
7
|
+
* `label` to override (e.g. `"Detecting"`, `"Confirming"`).
|
|
8
|
+
*/
|
|
9
|
+
declare function ProcessingStateStatusPill({
|
|
10
|
+
label
|
|
11
|
+
}?: ProcessingStateStatusPillProps): _$react_jsx_runtime0.JSX.Element;
|
|
12
|
+
//#endregion
|
|
13
|
+
export { ProcessingStateStatusPill };
|
|
@@ -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{useProcessingStateContext as n}from"../context.js";import{PROCESSING_STATE_SLOTS as r}from"../ProcessingState.slots.js";import{styles as i}from"../ProcessingState.styles.js";import{jsx as a,jsxs as o}from"react/jsx-runtime";import*as s from"@stylexjs/stylex";const c=[i.statusPillDotDelay0,i.statusPillDotDelay1,i.statusPillDotDelay2,i.statusPillDotDelay3,i.statusPillDotDelay4,i.statusPillDotDelay5],l=[{cx:3,cy:3},{cx:11,cy:3},{cx:3,cy:9},{cx:11,cy:9},{cx:3,cy:15},{cx:11,cy:15}];function u({label:u}={}){let d=n(`ProcessingState.StatusPill`),{_:f}=e(),p=u??d.statusPillLabel??f({id:`0lHlRj`,message:`In transit`});return a(`div`,{"data-stridge-slot":r.statusPillWrap,...s.props(i.statusPillWrap),children:o(`div`,{"data-stridge-slot":r.statusPill,...s.props(i.statusPill),children:[a(`svg`,{"aria-hidden":!0,viewBox:`0 0 14 18`,xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,...s.props(i.statusPillIcon),children:l.map((e,t)=>a(`circle`,{cx:e.cx,cy:e.cy,r:`1.6`,...s.props(i.statusPillDot,c[t])},`dot-${e.cx}-${e.cy}`))}),a(t.span,{size:`sm`,fontWeight:`medium`,leading:`tight`,children:p})]})})}export{u as ProcessingStateStatusPill};
|
|
@@ -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 <ProcessingState>.`);return r}export{n as ProcessingStateContext,r as useProcessingStateContext};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { ProcessingStateActionsProps, ProcessingStateAsset, ProcessingStateBodyProps, ProcessingStateDetailProps, ProcessingStateDetailsProps, ProcessingStateDialogProps, ProcessingStateHeaderProps, ProcessingStateHeroProps, ProcessingStateProps, ProcessingStateRowProps, ProcessingStateSourceWallet, ProcessingStateStatusPillProps, ProcessingStateTxRef } from "./types.js";
|
|
2
|
+
import { ProcessingState } from "./ProcessingState.js";
|
|
3
|
+
import { PROCESSING_STATE_SLOTS, ProcessingStateSlot } from "./ProcessingState.slots.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./ProcessingState.slots.js";import"./ProcessingState.js";
|
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
import { DialogShellControls } from "../../../dialog/DialogShell.js";
|
|
2
|
+
import { AssetDescriptor } from "../../asset-descriptor.js";
|
|
3
|
+
import { ComponentProps, ReactNode } from "react";
|
|
4
|
+
import { DestinationDto, GatewayPollResponse } from "@stridge/sdk";
|
|
5
|
+
|
|
6
|
+
//#region src/shared/widgets/processing-state/compound/types.d.ts
|
|
7
|
+
/**
|
|
8
|
+
* The credited asset rendered in the Hero (icon + symbol) and used as the default suffix for the
|
|
9
|
+
* "CREDITING" caption. Extends the kit-wide {@link AssetDescriptor} with the DTO + response slots
|
|
10
|
+
* headless integrators can read for the matched settlement.
|
|
11
|
+
*/
|
|
12
|
+
interface ProcessingStateAsset extends AssetDescriptor {
|
|
13
|
+
/**
|
|
14
|
+
* Destination DTO carried from the matched settlement / poll response.
|
|
15
|
+
*/
|
|
16
|
+
raw?: DestinationDto;
|
|
17
|
+
/**
|
|
18
|
+
* Full `gateway/{owner}` poll response that produced the destination.
|
|
19
|
+
*/
|
|
20
|
+
responseRaw?: GatewayPollResponse;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Source-wallet payload backing the predefined `Source` row.
|
|
24
|
+
*/
|
|
25
|
+
interface ProcessingStateSourceWallet {
|
|
26
|
+
/**
|
|
27
|
+
* Wallet display name (e.g. `"Wallet"` or a host-supplied label).
|
|
28
|
+
*/
|
|
29
|
+
name?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Pre-formatted address string (e.g. `"0x12…34ab"`).
|
|
32
|
+
*/
|
|
33
|
+
address: string;
|
|
34
|
+
/**
|
|
35
|
+
* Explorer URL for the wallet on its native chain.
|
|
36
|
+
*/
|
|
37
|
+
explorerUrl?: string;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Source-tx payload backing the predefined `Source tx` row.
|
|
41
|
+
*/
|
|
42
|
+
interface ProcessingStateTxRef {
|
|
43
|
+
/** Pre-formatted hash string. */
|
|
44
|
+
hash: string;
|
|
45
|
+
/** Explorer URL for the tx. */
|
|
46
|
+
explorerUrl?: string;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Props for `<ProcessingState.Dialog>` — the dialog form of the
|
|
50
|
+
* ProcessingState widget. Combines the widget root props with the
|
|
51
|
+
* shared dialog shell controls (`open` / `defaultOpen` / `onOpenChange`
|
|
52
|
+
* / `trigger`).
|
|
53
|
+
*/
|
|
54
|
+
type ProcessingStateDialogProps = ProcessingStateProps & DialogShellControls;
|
|
55
|
+
/**
|
|
56
|
+
* Public props accepted by the {@link ProcessingState} root.
|
|
57
|
+
*/
|
|
58
|
+
interface ProcessingStateProps {
|
|
59
|
+
/** Pre-formatted hero amount string (e.g. `"1.99580"`). Pure layout — no widget-side format. */
|
|
60
|
+
amount: string;
|
|
61
|
+
/**
|
|
62
|
+
* The asset that's crediting. Drives the Hero icon, the Hero amount-line symbol, and the default destination
|
|
63
|
+
* caption.
|
|
64
|
+
*/
|
|
65
|
+
creditedAsset: ProcessingStateAsset;
|
|
66
|
+
/**
|
|
67
|
+
* Optional caption suffix shown below the amount. Defaults to `creditedAsset.symbol`. Pass a custom string to
|
|
68
|
+
* add destination context (e.g. `"USDC (PERPS)"`, `"ETH (Spot)"`).
|
|
69
|
+
*/
|
|
70
|
+
creditedTo?: string;
|
|
71
|
+
/**
|
|
72
|
+
* When `true`, the Hero swaps the formatted amount for a shimmer skeleton — used while the
|
|
73
|
+
* credited figure isn't known yet (transfer-crypto flow waiting on the indexer). The asset
|
|
74
|
+
* chrome and destination caption keep rendering.
|
|
75
|
+
*/
|
|
76
|
+
loading?: boolean;
|
|
77
|
+
/**
|
|
78
|
+
* Optional override for the `Header` title. Defaults to `"Processing"`.
|
|
79
|
+
*/
|
|
80
|
+
headerTitle?: string;
|
|
81
|
+
/**
|
|
82
|
+
* Optional back-button callback for the `Header`. When undefined the
|
|
83
|
+
* chevron is hidden.
|
|
84
|
+
*/
|
|
85
|
+
onBack?: () => void;
|
|
86
|
+
/**
|
|
87
|
+
* Optional override for the `StatusPill` label. Defaults to `"In transit"`.
|
|
88
|
+
*/
|
|
89
|
+
statusPillLabel?: string;
|
|
90
|
+
/**
|
|
91
|
+
* Source-wallet payload — surfaces as the `Source` row inside
|
|
92
|
+
* `<ProcessingState.SourceRow />`.
|
|
93
|
+
*/
|
|
94
|
+
sourceWallet?: ProcessingStateSourceWallet;
|
|
95
|
+
/**
|
|
96
|
+
* Source-chain deposit tx — surfaces as the `Source tx` row inside
|
|
97
|
+
* `<ProcessingState.SourceTxRow />`.
|
|
98
|
+
*/
|
|
99
|
+
sourceTx?: ProcessingStateTxRef;
|
|
100
|
+
/**
|
|
101
|
+
* Pre-formatted "order submitted" timestamp — surfaces as the
|
|
102
|
+
* `Order submitted` row inside `<ProcessingState.SubmittedAtRow />`.
|
|
103
|
+
*/
|
|
104
|
+
submittedAt?: string;
|
|
105
|
+
/**
|
|
106
|
+
* Pre-formatted "detected" timestamp — surfaces as the `Detected` row
|
|
107
|
+
* inside `<ProcessingState.DetectedAtRow />`.
|
|
108
|
+
*/
|
|
109
|
+
detectedAt?: string;
|
|
110
|
+
/**
|
|
111
|
+
* Click handler routed to {@link ProcessingState.Actions}.
|
|
112
|
+
*/
|
|
113
|
+
onClose?: () => void;
|
|
114
|
+
/**
|
|
115
|
+
* Optional override for the Actions CTA label. Defaults to
|
|
116
|
+
* `"Close — we'll notify you"`.
|
|
117
|
+
*/
|
|
118
|
+
closeLabel?: string;
|
|
119
|
+
/**
|
|
120
|
+
* Compound parts; see `ProcessingState.Header`, `ProcessingState.Hero`, etc.
|
|
121
|
+
*/
|
|
122
|
+
children?: ReactNode;
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
* Body slot part props. Forwards every native `<div>` prop through to the
|
|
126
|
+
* underlying `Card.Body`, which becomes the scrollable region when the
|
|
127
|
+
* widget is mounted inside `Dialog.Content`.
|
|
128
|
+
*/
|
|
129
|
+
type ProcessingStateBodyProps = ComponentProps<"div">;
|
|
130
|
+
/**
|
|
131
|
+
* Props for `ProcessingState.Header`.
|
|
132
|
+
*/
|
|
133
|
+
interface ProcessingStateHeaderProps {
|
|
134
|
+
/**
|
|
135
|
+
* Optional override for the title rendered in this slot. Defaults to
|
|
136
|
+
* the `headerTitle` set on the {@link ProcessingState} root, falling
|
|
137
|
+
* back to `"Processing"`.
|
|
138
|
+
*/
|
|
139
|
+
title?: string;
|
|
140
|
+
/**
|
|
141
|
+
* Optional override for the back-button callback. Defaults to the
|
|
142
|
+
* `onBack` set on the {@link ProcessingState} root. Pass `null` to
|
|
143
|
+
* force the chevron hidden even when the root supplies a callback.
|
|
144
|
+
*/
|
|
145
|
+
onBack?: (() => void) | null;
|
|
146
|
+
}
|
|
147
|
+
/**
|
|
148
|
+
* Props for `ProcessingState.Hero`. Accepts no overrides; reads everything from context.
|
|
149
|
+
*/
|
|
150
|
+
type ProcessingStateHeroProps = Record<string, never>;
|
|
151
|
+
/**
|
|
152
|
+
* Props for `ProcessingState.StatusPill`. Surfaces the in-flight status (default `"In transit"`) with an animated
|
|
153
|
+
* dot indicator.
|
|
154
|
+
*/
|
|
155
|
+
interface ProcessingStateStatusPillProps {
|
|
156
|
+
/**
|
|
157
|
+
* Optional override for the pill label. Defaults to the
|
|
158
|
+
* `statusPillLabel` set on the {@link ProcessingState} root, falling
|
|
159
|
+
* back to `"In transit"`.
|
|
160
|
+
*/
|
|
161
|
+
label?: string;
|
|
162
|
+
}
|
|
163
|
+
/**
|
|
164
|
+
* Props for `ProcessingState.Details` (list container).
|
|
165
|
+
*/
|
|
166
|
+
interface ProcessingStateDetailsProps {
|
|
167
|
+
/**
|
|
168
|
+
* `ProcessingState.Detail` children.
|
|
169
|
+
*/
|
|
170
|
+
children?: ReactNode;
|
|
171
|
+
}
|
|
172
|
+
/**
|
|
173
|
+
* Props for `ProcessingState.Detail` (single row).
|
|
174
|
+
*/
|
|
175
|
+
interface ProcessingStateDetailProps {
|
|
176
|
+
/**
|
|
177
|
+
* Row label rendered on the leading edge.
|
|
178
|
+
*/
|
|
179
|
+
label: string;
|
|
180
|
+
/**
|
|
181
|
+
* Row value rendered on the trailing edge. Accepts a free-form `ReactNode`, so callers can mount the canonical
|
|
182
|
+
* helpers or arbitrary inline content.
|
|
183
|
+
*/
|
|
184
|
+
value: ReactNode;
|
|
185
|
+
}
|
|
186
|
+
/**
|
|
187
|
+
* Props for the predefined detail rows
|
|
188
|
+
* ({@link ProcessingState.SourceRow},
|
|
189
|
+
* {@link ProcessingState.SourceTxRow},
|
|
190
|
+
* {@link ProcessingState.SubmittedAtRow},
|
|
191
|
+
* {@link ProcessingState.DetectedAtRow}). Each row pulls its value from
|
|
192
|
+
* the {@link ProcessingState} root's payload props and renders nothing
|
|
193
|
+
* when the value is missing.
|
|
194
|
+
*/
|
|
195
|
+
interface ProcessingStateRowProps {
|
|
196
|
+
/** Override the row label. */
|
|
197
|
+
label?: string;
|
|
198
|
+
}
|
|
199
|
+
/**
|
|
200
|
+
* Props for `ProcessingState.Actions`.
|
|
201
|
+
*/
|
|
202
|
+
interface ProcessingStateActionsProps {
|
|
203
|
+
/**
|
|
204
|
+
* Optional override for the CTA click handler. Defaults to the
|
|
205
|
+
* `onClose` set on the {@link ProcessingState} root.
|
|
206
|
+
*/
|
|
207
|
+
onClose?: () => void;
|
|
208
|
+
/**
|
|
209
|
+
* Optional override for the CTA label. Defaults to the `closeLabel`
|
|
210
|
+
* set on the {@link ProcessingState} root, falling back to
|
|
211
|
+
* `"Close — we'll notify you"`.
|
|
212
|
+
*/
|
|
213
|
+
closeLabel?: string;
|
|
214
|
+
}
|
|
215
|
+
//#endregion
|
|
216
|
+
export { ProcessingStateActionsProps, ProcessingStateAsset, ProcessingStateBodyProps, ProcessingStateDetailProps, ProcessingStateDetailsProps, ProcessingStateDialogProps, ProcessingStateHeaderProps, ProcessingStateHeroProps, ProcessingStateProps, ProcessingStateRowProps, ProcessingStateSourceWallet, ProcessingStateStatusPillProps, ProcessingStateTxRef };
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { TxHashValueProps } from "../../../primitives/TxHashValue/types.js";
|
|
2
|
+
import { TxHashValue } from "../../../primitives/TxHashValue/TxHashValue.js";
|
|
3
|
+
import { WalletValue, WalletValueProps } from "../../../primitives/WalletValue/WalletValue.js";
|
|
4
|
+
import { SuccessStateActionsProps, SuccessStateAssetValueProps, SuccessStateBodyProps, SuccessStateDetailProps, SuccessStateDetailsProps, SuccessStateDialogProps, SuccessStateHeaderProps, SuccessStateHeadlineProps, SuccessStateMoreDetailsProps, SuccessStateProps, SuccessStateRouteValueProps, SuccessStateRowProps, SuccessStateStatusPillProps } from "./types.js";
|
|
5
|
+
import { SuccessStateActions } from "./components/Actions.js";
|
|
6
|
+
import { SuccessStateAssetValue } from "./components/AssetValue.js";
|
|
7
|
+
import { SuccessStateDetail } from "./components/Detail.js";
|
|
8
|
+
import { SuccessStateDetails } from "./components/Details.js";
|
|
9
|
+
import { SuccessStateHeader } from "./components/Header.js";
|
|
10
|
+
import { SuccessStateHeadline } from "./components/Headline.js";
|
|
11
|
+
import { SuccessStateHero } from "./components/Hero.js";
|
|
12
|
+
import { SuccessStateMoreDetails } from "./components/MoreDetails.js";
|
|
13
|
+
import { SuccessStateRouteValue } from "./components/RouteValue.js";
|
|
14
|
+
import { SuccessStateCompletionTxRow, SuccessStateDepositTxRow, SuccessStateDestinationRow, SuccessStateFillStatusRow, SuccessStateFilledAtRow, SuccessStateSourceRow, SuccessStateSubmittedAtRow, SuccessStateTotalTimeRow, SuccessStateYouReceiveRow } from "./components/Rows.js";
|
|
15
|
+
import { SuccessStateStatusPill } from "./components/StatusPill.js";
|
|
16
|
+
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
17
|
+
|
|
18
|
+
//#region src/shared/widgets/success-state/compound/SuccessState.d.ts
|
|
19
|
+
/**
|
|
20
|
+
* Root of the Success State compound. Renders the modal-frame card
|
|
21
|
+
* surface and surfaces the credited transaction (amount + asset +
|
|
22
|
+
* destination context + explorer link) to every compound part rendered
|
|
23
|
+
* inside it.
|
|
24
|
+
*
|
|
25
|
+
* Success State is the kit's terminal screen for any successful gateway
|
|
26
|
+
* deposit — regardless of which method (Wallet / Transfer Crypto /
|
|
27
|
+
* Connect Exchange) produced the credit.
|
|
28
|
+
*
|
|
29
|
+
* Parts:
|
|
30
|
+
* - {@link SuccessState.Header}
|
|
31
|
+
* - {@link SuccessState.Body}
|
|
32
|
+
* - {@link SuccessState.Hero}
|
|
33
|
+
* - {@link SuccessState.Details}
|
|
34
|
+
* - {@link SuccessState.Detail}
|
|
35
|
+
* - {@link SuccessState.Actions}
|
|
36
|
+
*
|
|
37
|
+
* Predefined rows:
|
|
38
|
+
* - {@link SuccessState.FillStatusRow} / {@link SuccessState.TotalTimeRow}
|
|
39
|
+
* - {@link SuccessState.SourceRow} / {@link SuccessState.DestinationRow}
|
|
40
|
+
* - {@link SuccessState.YouReceiveRow}
|
|
41
|
+
* - {@link SuccessState.DepositTxRow} / {@link SuccessState.CompletionTxRow}
|
|
42
|
+
* - {@link SuccessState.SubmittedAtRow} / {@link SuccessState.FilledAtRow}
|
|
43
|
+
*
|
|
44
|
+
* Helpers:
|
|
45
|
+
* - {@link SuccessState.WalletValue} — wallet icon + name + truncated address + explorer link
|
|
46
|
+
* - {@link SuccessState.AssetValue} — `[icon] amount symbol`
|
|
47
|
+
* - {@link SuccessState.RouteValue} — `Hop1 → Hop2 → Hop3`
|
|
48
|
+
*
|
|
49
|
+
* Dialog form: {@link SuccessState.Dialog} pre-composes the widget into
|
|
50
|
+
* a `Dialog.Root + Dialog.Trigger + Dialog.Content` shell — the
|
|
51
|
+
* production-recommended entry point. Use the bare `SuccessState` form
|
|
52
|
+
* when you want the widget mounted inline.
|
|
53
|
+
*/
|
|
54
|
+
declare function SuccessState(props: SuccessStateProps): _$react_jsx_runtime0.JSX.Element;
|
|
55
|
+
declare function SuccessStateBody(props: SuccessStateBodyProps): _$react_jsx_runtime0.JSX.Element;
|
|
56
|
+
declare function SuccessStateDialog({
|
|
57
|
+
open,
|
|
58
|
+
defaultOpen,
|
|
59
|
+
onOpenChange,
|
|
60
|
+
trigger,
|
|
61
|
+
children,
|
|
62
|
+
...rootProps
|
|
63
|
+
}: SuccessStateDialogProps): _$react_jsx_runtime0.JSX.Element;
|
|
64
|
+
declare namespace SuccessState {
|
|
65
|
+
type Props = SuccessStateProps;
|
|
66
|
+
type HeaderProps = SuccessStateHeaderProps;
|
|
67
|
+
type BodyProps = SuccessStateBodyProps;
|
|
68
|
+
type DetailsProps = SuccessStateDetailsProps;
|
|
69
|
+
type DetailProps = SuccessStateDetailProps;
|
|
70
|
+
type ActionsProps = SuccessStateActionsProps;
|
|
71
|
+
type AssetValueProps = SuccessStateAssetValueProps;
|
|
72
|
+
type RouteValueProps = SuccessStateRouteValueProps;
|
|
73
|
+
type HeadlineProps = SuccessStateHeadlineProps;
|
|
74
|
+
type MoreDetailsProps = SuccessStateMoreDetailsProps;
|
|
75
|
+
type StatusPillProps = SuccessStateStatusPillProps;
|
|
76
|
+
type RowProps = SuccessStateRowProps;
|
|
77
|
+
type WalletValueProps = WalletValueProps;
|
|
78
|
+
type TxHashValueProps = TxHashValueProps;
|
|
79
|
+
type DialogProps = SuccessStateDialogProps;
|
|
80
|
+
const Header: typeof SuccessStateHeader;
|
|
81
|
+
const Body: typeof SuccessStateBody;
|
|
82
|
+
const Hero: typeof SuccessStateHero;
|
|
83
|
+
const Headline: typeof SuccessStateHeadline;
|
|
84
|
+
const Details: typeof SuccessStateDetails;
|
|
85
|
+
const Detail: typeof SuccessStateDetail;
|
|
86
|
+
const Actions: typeof SuccessStateActions;
|
|
87
|
+
const AssetValue: typeof SuccessStateAssetValue;
|
|
88
|
+
const RouteValue: typeof SuccessStateRouteValue;
|
|
89
|
+
const StatusPill: typeof SuccessStateStatusPill;
|
|
90
|
+
const MoreDetails: typeof SuccessStateMoreDetails;
|
|
91
|
+
const FillStatusRow: typeof SuccessStateFillStatusRow;
|
|
92
|
+
const TotalTimeRow: typeof SuccessStateTotalTimeRow;
|
|
93
|
+
const SourceRow: typeof SuccessStateSourceRow;
|
|
94
|
+
const DestinationRow: typeof SuccessStateDestinationRow;
|
|
95
|
+
const YouReceiveRow: typeof SuccessStateYouReceiveRow;
|
|
96
|
+
const DepositTxRow: typeof SuccessStateDepositTxRow;
|
|
97
|
+
const CompletionTxRow: typeof SuccessStateCompletionTxRow;
|
|
98
|
+
const SubmittedAtRow: typeof SuccessStateSubmittedAtRow;
|
|
99
|
+
const FilledAtRow: typeof SuccessStateFilledAtRow;
|
|
100
|
+
const WalletValue: typeof WalletValue;
|
|
101
|
+
const TxHashValue: typeof TxHashValue;
|
|
102
|
+
const Dialog: typeof SuccessStateDialog;
|
|
103
|
+
}
|
|
104
|
+
//#endregion
|
|
105
|
+
export { SuccessState };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{DialogShell as e}from"../../../dialog/DialogShell.js";import{Card as t}from"../../../ui/Card/Card.js";import"../../../../ui/index.js";import{Frame as n}from"../../../dialog/Frame.js";import{TxHashValue as r}from"../../../primitives/TxHashValue/TxHashValue.js";import"../../../primitives/TxHashValue/index.js";import{WalletValue as i}from"../../../primitives/WalletValue/WalletValue.js";import"../../../primitives/WalletValue/index.js";import{SuccessStateContext as a}from"./context.js";import{SUCCESS_STATE_SLOTS as o}from"./SuccessState.slots.js";import{styles as s}from"./SuccessState.styles.js";import{SuccessStateActions as c}from"./components/Actions.js";import{SuccessStateAssetValue as l}from"./components/AssetValue.js";import{SuccessStateDetail as u}from"./components/Detail.js";import{SuccessStateDetails as d}from"./components/Details.js";import{SuccessStateHeader as f}from"./components/Header.js";import{SuccessStateHeadline as p}from"./components/Headline.js";import{SuccessStateHero as m}from"./components/Hero.js";import{SuccessStateMoreDetails as h}from"./components/MoreDetails.js";import{SuccessStateRouteValue as g}from"./components/RouteValue.js";import{SuccessStateStatusPill as _}from"./components/StatusPill.js";import{SuccessStateCompletionTxRow as v,SuccessStateDepositTxRow as y,SuccessStateDestinationRow as b,SuccessStateFillStatusRow as x,SuccessStateFilledAtRow as S,SuccessStateSourceRow as C,SuccessStateSubmittedAtRow as w,SuccessStateTotalTimeRow as T,SuccessStateYouReceiveRow as E}from"./components/Rows.js";import{useMemo as D}from"react";import{jsx as O}from"react/jsx-runtime";import*as k from"@stylexjs/stylex";function A(e){let{amount:t,creditedAsset:r,creditedTo:i,explorer:c,depositTx:l,completionTx:u,submittedAt:d,filledAt:f,totalTime:p,sourceWallet:m,headerTitle:h,headlineTitle:g,headlineDescription:_,onDone:v,onClose:y,doneLabel:b,closeLabel:x,children:S}=e,C=D(()=>({amount:t,creditedAsset:r,creditedTo:i,explorer:c,depositTx:l,completionTx:u,submittedAt:d,filledAt:f,totalTime:p,sourceWallet:m,headerTitle:h,headlineTitle:g,headlineDescription:_,onDone:v,onClose:y,doneLabel:b,closeLabel:x}),[t,r,i,c,l,u,d,f,p,m,h,g,_,v,y,b,x]);return O(a.Provider,{value:C,children:O(n,{"data-stridge-slot":o.root,...k.props(s.root),children:S})})}function j(e){return O(t.Body,{"data-stridge-slot":o.body,...e})}function M({open:t,defaultOpen:n,onOpenChange:r,trigger:i,children:a,...o}){return O(e,{open:t,defaultOpen:n,onOpenChange:r,trigger:i,children:O(A,{...o,children:a})})}(function(e){e.Header=f,e.Body=j,e.Hero=m,e.Headline=p,e.Details=d,e.Detail=u,e.Actions=c,e.AssetValue=l,e.RouteValue=g,e.StatusPill=_,e.MoreDetails=h,e.FillStatusRow=x,e.TotalTimeRow=T,e.SourceRow=C,e.DestinationRow=b,e.YouReceiveRow=E,e.DepositTxRow=y,e.CompletionTxRow=v,e.SubmittedAtRow=w,e.FilledAtRow=S,e.WalletValue=i,e.TxHashValue=r,e.Dialog=M})(A||={});export{A as SuccessState};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
//#region src/shared/widgets/success-state/compound/SuccessState.slots.d.ts
|
|
2
|
+
declare const SUCCESS_STATE_SLOTS: {
|
|
3
|
+
readonly root: "success-state";
|
|
4
|
+
readonly header: "success-state-header";
|
|
5
|
+
readonly body: "success-state-body";
|
|
6
|
+
readonly hero: "success-state-hero";
|
|
7
|
+
readonly headline: "success-state-headline";
|
|
8
|
+
readonly actions: "success-state-actions";
|
|
9
|
+
readonly details: "success-state-details";
|
|
10
|
+
readonly detail: "success-state-detail";
|
|
11
|
+
readonly routeValue: "success-state-route-value";
|
|
12
|
+
readonly assetValue: "success-state-asset-value";
|
|
13
|
+
readonly txHashValue: "success-state-tx-hash-value";
|
|
14
|
+
readonly statusPill: "success-state-status-pill";
|
|
15
|
+
readonly moreDetails: "success-state-more-details";
|
|
16
|
+
readonly moreDetailsTrigger: "success-state-more-details-trigger";
|
|
17
|
+
readonly moreDetailsPanel: "success-state-more-details-panel";
|
|
18
|
+
};
|
|
19
|
+
type SuccessStateSlot = (typeof SUCCESS_STATE_SLOTS)[keyof typeof SUCCESS_STATE_SLOTS];
|
|
20
|
+
//#endregion
|
|
21
|
+
export { SUCCESS_STATE_SLOTS, SuccessStateSlot };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e={root:`success-state`,header:`success-state-header`,body:`success-state-body`,hero:`success-state-hero`,headline:`success-state-headline`,actions:`success-state-actions`,details:`success-state-details`,detail:`success-state-detail`,routeValue:`success-state-route-value`,assetValue:`success-state-asset-value`,txHashValue:`success-state-tx-hash-value`,statusPill:`success-state-status-pill`,moreDetails:`success-state-more-details`,moreDetailsTrigger:`success-state-more-details-trigger`,moreDetailsPanel:`success-state-more-details-panel`};export{e as SUCCESS_STATE_SLOTS};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e={root:{"SuccessState__styles.root":`SuccessState__styles.root`,"position-kVAEAm":`x1n2onr6`,"width-kzqmXN":`xh8yej3`,"maxWidth-ks0D6T":`x17fpy1y`,$$css:`@stridge/kit:src/shared/widgets/success-state/compound/SuccessState.styles.ts:53`},header:{"SuccessState__styles.header":`SuccessState__styles.header`,"justifyContent-kjj79g":`x1qughib`,$$css:`@stridge/kit:src/shared/widgets/success-state/compound/SuccessState.styles.ts:61`},closeIcon:{"SuccessState__styles.closeIcon":`SuccessState__styles.closeIcon`,"width-kzqmXN":`xsmyaan`,"height-kZKoxP":`x1kpxq89`,"flexShrink-kmuXW":`x2lah0s`,"color-kMwMTN":`xdksllq`,"strokeWidth-kfJifR":`x1k315e8`,$$css:`@stridge/kit:src/shared/widgets/success-state/compound/SuccessState.styles.ts:64`},hero:{"SuccessState__styles.hero":`SuccessState__styles.hero`,"display-k1xSpc":`x78zum5`,"flexDirection-kXwgrk":`xdt5ytf`,"alignItems-kGNEyG":`x6s0dn4`,"gap-kOIVth":`x883omv`,"paddingTop-kLKAdn":`x9desvi`,"paddingInlineEnd-kwRFfy":`x1o5r3ls`,"paddingBottom-kGO01o":`x1t4gjm`,"paddingInlineStart-kZCmMZ":`xz7312c`,$$css:`@stridge/kit:src/shared/widgets/success-state/compound/SuccessState.styles.ts:72`},heroRing:{"SuccessState__styles.heroRing":`SuccessState__styles.heroRing`,"display-k1xSpc":`x1lliihq`,"width-kzqmXN":`x1fu8urw`,"height-kZKoxP":`x1peatla`,"marginBottom-k1K539":`xzueoph`,"flexShrink-kmuXW":`x2lah0s`,"transformOrigin-k3nNDw":`x1g0ag68`,"animationName-kKVMdj":`xdozz8d`,"animationDuration-k44tkh":`xl8t4ro x1s1fvk8`,"animationTimingFunction-kyAemX":`xa3vuyk`,"animationFillMode-kWV6AL":`x1u6ievf`,$$css:`@stridge/kit:src/shared/widgets/success-state/compound/SuccessState.styles.ts:82`},heroRingCheck:{"SuccessState__styles.heroRingCheck":`SuccessState__styles.heroRingCheck`,"strokeDasharray-k5rJSQ":`x19f38uw`,"strokeDashoffset-kDRTOe":`x1f9z5db`,"animationName-kKVMdj":`xdi478p`,"animationDuration-k44tkh":`x4afe7t x1s1fvk8`,"animationDelay-kKxzle":`x192tdn3 x14q22ui`,"animationTimingFunction-kyAemX":`xa3vuyk`,"animationFillMode-kWV6AL":`x10e4vud`,$$css:`@stridge/kit:src/shared/widgets/success-state/compound/SuccessState.styles.ts:97`},heroAmountRow:{"SuccessState__styles.heroAmountRow":`SuccessState__styles.heroAmountRow`,"display-k1xSpc":`x3nfvp2`,"alignItems-kGNEyG":`x1pha0wt`,"justifyContent-kjj79g":`xl56j7k`,"gap-kOIVth":`x883omv`,"marginTop-keoZOQ":`xr9ek0c`,$$css:`@stridge/kit:src/shared/widgets/success-state/compound/SuccessState.styles.ts:112`},heroAmountIcon:{"SuccessState__styles.heroAmountIcon":`SuccessState__styles.heroAmountIcon`,"alignSelf-kSGwAc":`xamitd3`,$$css:`@stridge/kit:src/shared/widgets/success-state/compound/SuccessState.styles.ts:119`},detailsSection:{"SuccessState__styles.detailsSection":`SuccessState__styles.detailsSection`,"marginTop-keoZOQ":`x1gslohp`,"marginInlineStart-keTefX":`xnzr9dm`,"marginInlineEnd-k71WvV":`xnqxrjt`,$$css:`@stridge/kit:src/shared/widgets/success-state/compound/SuccessState.styles.ts:128`},assetValue:{"SuccessState__styles.assetValue":`SuccessState__styles.assetValue`,"display-k1xSpc":`x3nfvp2`,"alignItems-kGNEyG":`x6s0dn4`,"gap-kOIVth":`x167g77z`,$$css:`@stridge/kit:src/shared/widgets/success-state/compound/SuccessState.styles.ts:134`},routeValue:{"SuccessState__styles.routeValue":`SuccessState__styles.routeValue`,"display-k1xSpc":`x3nfvp2`,"alignItems-kGNEyG":`x6s0dn4`,"gap-kOIVth":`x167g77z`,$$css:`@stridge/kit:src/shared/widgets/success-state/compound/SuccessState.styles.ts:140`},routeArrow:{"SuccessState__styles.routeArrow":`SuccessState__styles.routeArrow`,"width-kzqmXN":`xsmyaan`,"height-kZKoxP":`xegnrdp`,"flexShrink-kmuXW":`x2lah0s`,"color-kMwMTN":`x137ha3m`,$$css:`@stridge/kit:src/shared/widgets/success-state/compound/SuccessState.styles.ts:145`},actions:{"SuccessState__styles.actions":`SuccessState__styles.actions`,"display-k1xSpc":`x78zum5`,"flexDirection-kXwgrk":`xdt5ytf`,"alignItems-kGNEyG":`x6s0dn4`,"gap-kOIVth":`xou54vl`,"paddingTop-kLKAdn":`x1xy6bms`,"paddingInlineEnd-kwRFfy":`x1o5r3ls`,"paddingBottom-kGO01o":`x1t4gjm`,"paddingInlineStart-kZCmMZ":`xz7312c`,$$css:`@stridge/kit:src/shared/widgets/success-state/compound/SuccessState.styles.ts:152`},actionRow:{"SuccessState__styles.actionRow":`SuccessState__styles.actionRow`,"display-k1xSpc":`x78zum5`,"flexDirection-kXwgrk":`x1q0g3np`,"width-kzqmXN":`xh8yej3`,"gap-kOIVth":`x883omv`,$$css:`@stridge/kit:src/shared/widgets/success-state/compound/SuccessState.styles.ts:162`},actionRowPair:{"SuccessState__styles.actionRowPair":`SuccessState__styles.actionRowPair`,"alignItems-kGNEyG":`x1qjc9v5`,$$css:`@stridge/kit:src/shared/widgets/success-state/compound/SuccessState.styles.ts:168`},doneButton:{"SuccessState__styles.doneButton":`SuccessState__styles.doneButton`,"flex-kUk6DE":`x98rzlu`,"width-kzqmXN":`xh8yej3`,"borderWidth-kMzoRj":`xc342km`,$$css:`@stridge/kit:src/shared/widgets/success-state/compound/SuccessState.styles.ts:174`},closeButton:{"SuccessState__styles.closeButton":`SuccessState__styles.closeButton`,"flex-kUk6DE":`x98rzlu`,"width-kzqmXN":`xh8yej3`,$$css:`@stridge/kit:src/shared/widgets/success-state/compound/SuccessState.styles.ts:180`},doneButtonInteractive:{"SuccessState__styles.doneButtonInteractive":`SuccessState__styles.doneButtonInteractive`,"cursor-kkrTdU":`x1ypdohk`,$$css:`@stridge/kit:src/shared/widgets/success-state/compound/SuccessState.styles.ts:184`},doneButtonInert:{"SuccessState__styles.doneButtonInert":`SuccessState__styles.doneButtonInert`,"cursor-kkrTdU":`xt0e3qv`,$$css:`@stridge/kit:src/shared/widgets/success-state/compound/SuccessState.styles.ts:187`},explorerLink:{"SuccessState__styles.explorerLink":`SuccessState__styles.explorerLink`,"color-kMwMTN":`x1me39qh`,"textDecorationLine-kMnn75":`xujl8zx`,"textDecorationThickness-kNySMw":`xyi4chj`,"textUnderlineOffset-kcSHmL":`xda060z`,"--stridge-kit-external-link-align":`x5oa300`,$$css:`@stridge/kit:src/shared/widgets/success-state/compound/SuccessState.styles.ts:195`},headline:{"SuccessState__styles.headline":`SuccessState__styles.headline`,"display-k1xSpc":`x78zum5`,"flexDirection-kXwgrk":`xdt5ytf`,"alignItems-kGNEyG":`x6s0dn4`,"gap-kOIVth":`x883omv`,"paddingTop-kLKAdn":`x9desvi`,"paddingInlineEnd-kwRFfy":`x1o5r3ls`,"paddingBottom-kGO01o":`x1hhzuzn`,"paddingInlineStart-kZCmMZ":`xz7312c`,$$css:`@stridge/kit:src/shared/widgets/success-state/compound/SuccessState.styles.ts:203`},headlineTitle:{"SuccessState__styles.headlineTitle":`SuccessState__styles.headlineTitle`,"margin-kogj98":`x1ghz6dp`,$$css:`@stridge/kit:src/shared/widgets/success-state/compound/SuccessState.styles.ts:213`},headlineDescription:{"SuccessState__styles.headlineDescription":`SuccessState__styles.headlineDescription`,"margin-kogj98":`x1ghz6dp`,"maxWidth-ks0D6T":`x1va8c73`,$$css:`@stridge/kit:src/shared/widgets/success-state/compound/SuccessState.styles.ts:216`},moreDetailsTrigger:{"SuccessState__styles.moreDetailsTrigger":`SuccessState__styles.moreDetailsTrigger`,"cursor-kkrTdU":`x1ypdohk`,"outline-kI3sdo":`x1a2a7pz`,"userSelect-kfSwDN":`x87ps6o`,"WebkitTapHighlightColor-kQizK7":`x1i10hfl`,":focus-visible_boxShadow-kEtg5x":`xf4a2cz`,$$css:`@stridge/kit:src/shared/widgets/success-state/compound/SuccessState.styles.ts:226`},moreDetailsTriggerClosed:{"SuccessState__styles.moreDetailsTriggerClosed":`SuccessState__styles.moreDetailsTriggerClosed`,"borderBottomWidth-kt9PQ7":`x1qhh985`,$$css:`@stridge/kit:src/shared/widgets/success-state/compound/SuccessState.styles.ts:235`},moreDetailsChevron:{"SuccessState__styles.moreDetailsChevron":`SuccessState__styles.moreDetailsChevron`,"width-kzqmXN":`x6jxa94`,"height-kZKoxP":`x1v9usgg`,"flexShrink-kmuXW":`x2lah0s`,"color-kMwMTN":`x137ha3m`,"strokeWidth-kfJifR":`xhr4kjn`,"transformOrigin-k3nNDw":`x1g0ag68`,"transitionProperty-k1ekBW":`x11xpdln`,"transitionDuration-kIyJzY":`x9dyr19 x12w9bfk`,"transitionTimingFunction-kAMwcw":`x9lcvmn`,$$css:`@stridge/kit:src/shared/widgets/success-state/compound/SuccessState.styles.ts:238`},moreDetailsChevronOpen:{"SuccessState__styles.moreDetailsChevronOpen":`SuccessState__styles.moreDetailsChevronOpen`,"transform-k3aq6I":`x1iffjtl`,$$css:`@stridge/kit:src/shared/widgets/success-state/compound/SuccessState.styles.ts:252`}};export{e as styles};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { SuccessStateActionsProps } from "../types.js";
|
|
2
|
+
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
|
+
|
|
4
|
+
//#region src/shared/widgets/success-state/compound/components/Actions.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* Actions part — primary Done/New deposit CTA optionally paired with
|
|
7
|
+
* a secondary Close button (rendered as a side-by-side pair when
|
|
8
|
+
* `onClose` is supplied), plus the optional "View on …" explorer
|
|
9
|
+
* link. Explorer config flows through context.
|
|
10
|
+
*/
|
|
11
|
+
declare function SuccessStateActions({
|
|
12
|
+
onDone,
|
|
13
|
+
onClose,
|
|
14
|
+
doneLabel,
|
|
15
|
+
closeLabel
|
|
16
|
+
}?: SuccessStateActionsProps): _$react_jsx_runtime0.JSX.Element;
|
|
17
|
+
//#endregion
|
|
18
|
+
export { SuccessStateActions };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{useLingui as e}from"../../../../i18n/useLingui.js";import"../../../../../i18n/index.js";import{ExternalLinkIcon as t}from"../../../../icons/ExternalLinkIcon.js";import"../../../../../icons/index.js";import{Button as n}from"../../../../ui/Button/Button.js";import"../../../../ui/Button/index.js";import{ExternalLink as r}from"../../../../ui/ExternalLink/ExternalLink.js";import"../../../../ui/ExternalLink/index.js";import{text as i}from"../../../../ui/Text/Text.js";import"../../../../../ui/index.js";import{useSuccessStateContext as a}from"../context.js";import{SUCCESS_STATE_SLOTS as o}from"../SuccessState.slots.js";import{styles as s}from"../SuccessState.styles.js";import{jsx as c,jsxs as l}from"react/jsx-runtime";import*as u from"@stylexjs/stylex";function d({onDone:d,onClose:f,doneLabel:p,closeLabel:m}={}){let h=a(`SuccessState.Actions`),{_:g}=e(),_=d??h.onDone,v=f??h.onClose,y=typeof _==`function`,b=typeof v==`function`,x=p??h.doneLabel??g({id:`DPfwMq`,message:`Done`}),S=m??h.closeLabel??g({id:`yz7wBu`,message:`Close`});return l(`div`,{"data-stridge-slot":o.actions,...u.props(s.actions),children:[l(`div`,{...u.props(s.actionRow,b&&s.actionRowPair),children:[b?c(n,{size:`cta`,variant:`secondary`,onClick:v,...u.props(s.closeButton,s.doneButtonInteractive),children:c(i.span,{size:`callout`,fontWeight:`semibold`,leading:`tight`,tracking:`tight`,color:`inherit`,children:S})}):null,c(n,{size:`cta`,onClick:y?_:void 0,...u.props(s.doneButton,y?s.doneButtonInteractive:s.doneButtonInert),children:c(i.span,{size:`callout`,fontWeight:`semibold`,leading:`tight`,tracking:`tight`,color:`inherit`,children:x})})]}),h.explorer?c(r,{href:h.explorer.url,suffix:c(t,{"aria-hidden":!0}),...u.props(s.explorerLink),children:c(i.span,{size:`meta`,fontWeight:`medium`,leading:`tight`,color:`inherit`,children:h.explorer.label??g({id:`Sjplg3`,message:`View on Explorer`})})}):null]})}export{d as SuccessStateActions};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { SuccessStateAssetValueProps } from "../types.js";
|
|
2
|
+
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
|
+
|
|
4
|
+
//#region src/shared/widgets/success-state/compound/components/AssetValue.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* AssetValue helper — `[icon] amount symbol`, the canonical composition used inside receipt
|
|
7
|
+
* rows. Pure layout: `amount` arrives pre-formatted from driver transformer code.
|
|
8
|
+
*/
|
|
9
|
+
declare function SuccessStateAssetValue({
|
|
10
|
+
amount,
|
|
11
|
+
symbol,
|
|
12
|
+
chainId,
|
|
13
|
+
address,
|
|
14
|
+
isNative,
|
|
15
|
+
logoUrl
|
|
16
|
+
}: SuccessStateAssetValueProps): _$react_jsx_runtime0.JSX.Element;
|
|
17
|
+
//#endregion
|
|
18
|
+
export { SuccessStateAssetValue };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{text as e}from"../../../../ui/Text/Text.js";import{TokenLogo as t}from"../../../../ui/TokenLogo/TokenLogo.js";import"../../../../ui/TokenLogo/index.js";import"../../../../../ui/index.js";import{SUCCESS_STATE_SLOTS as n}from"../SuccessState.slots.js";import{styles as r}from"../SuccessState.styles.js";import{jsx as i,jsxs as a}from"react/jsx-runtime";import*as o from"@stylexjs/stylex";function s({amount:s,symbol:c,chainId:l,address:u,isNative:d,logoUrl:f}){return a(`span`,{"data-stridge-slot":n.assetValue,...o.props(r.assetValue),children:[i(t,{size:`md`,symbol:c,...l===void 0?{}:{chainId:l},...u===void 0?{}:{address:u},...d===void 0?{}:{isNative:d},...f===void 0?{}:{logoUrl:f},hideChainBadge:!0}),i(e.span,{size:`sm`,fontWeight:`medium`,leading:`tight`,children:s}),i(e.span,{size:`sm`,fontWeight:`medium`,leading:`tight`,color:`subdued`,children:c})]})}export{s as SuccessStateAssetValue};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { SuccessStateDetailProps } from "../types.js";
|
|
2
|
+
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
|
+
|
|
4
|
+
//#region src/shared/widgets/success-state/compound/components/Detail.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* Detail part — a single label/value row inside `SuccessState.Details`.
|
|
7
|
+
*
|
|
8
|
+
* `value` is a freeform `ReactNode` so callers can compose with the
|
|
9
|
+
* canonical helpers (`AssetValue`, `RouteValue`, `WalletValue`) or
|
|
10
|
+
* arbitrary inline content. The row chrome flows from the kit-level
|
|
11
|
+
* `Details.Row` primitive.
|
|
12
|
+
*/
|
|
13
|
+
declare function SuccessStateDetail({
|
|
14
|
+
label,
|
|
15
|
+
value
|
|
16
|
+
}: SuccessStateDetailProps): _$react_jsx_runtime0.JSX.Element;
|
|
17
|
+
//#endregion
|
|
18
|
+
export { SuccessStateDetail };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{Details as e}from"../../../../ui/Details/Details.js";import"../../../../ui/Details/index.js";import{SUCCESS_STATE_SLOTS as t}from"../SuccessState.slots.js";import{jsx as n}from"react/jsx-runtime";function r({label:r,value:i}){return n(e.Row,{"data-stridge-slot":t.detail,label:r,children:i})}export{r as SuccessStateDetail};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { SuccessStateDetailsProps } from "../types.js";
|
|
2
|
+
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
|
+
|
|
4
|
+
//#region src/shared/widgets/success-state/compound/components/Details.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* Details part — bordered card containing `SuccessState.Detail` children.
|
|
7
|
+
*
|
|
8
|
+
* The card chrome and row typography come from the kit-level `Details`
|
|
9
|
+
* primitive; this wrapper only contributes the modal's outer inline
|
|
10
|
+
* margins so the card sits flush with the Hero/Actions sections.
|
|
11
|
+
*/
|
|
12
|
+
declare function SuccessStateDetails({
|
|
13
|
+
children
|
|
14
|
+
}: SuccessStateDetailsProps): _$react_jsx_runtime0.JSX.Element;
|
|
15
|
+
//#endregion
|
|
16
|
+
export { SuccessStateDetails };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{Details as e}from"../../../../ui/Details/Details.js";import"../../../../ui/Details/index.js";import{SUCCESS_STATE_SLOTS as t}from"../SuccessState.slots.js";import{styles as n}from"../SuccessState.styles.js";import{jsx as r}from"react/jsx-runtime";import*as i from"@stylexjs/stylex";function a({children:a}){let o=i.props(n.detailsSection);return r(e,{"data-stridge-slot":t.details,className:o.className,style:o.style,children:a})}export{a as SuccessStateDetails};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { SuccessStateHeaderProps } from "../types.js";
|
|
2
|
+
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
|
+
|
|
4
|
+
//#region src/shared/widgets/success-state/compound/components/Header.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* Header part — title and a trailing `Dialog.CloseButton` (the X). The X only paints when the
|
|
7
|
+
* widget is mounted inside `Dialog.Content`; card-mode renders just the title.
|
|
8
|
+
*/
|
|
9
|
+
declare function SuccessStateHeader({
|
|
10
|
+
title
|
|
11
|
+
}?: SuccessStateHeaderProps): _$react_jsx_runtime0.JSX.Element;
|
|
12
|
+
//#endregion
|
|
13
|
+
export { SuccessStateHeader };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{useLingui as e}from"../../../../i18n/useLingui.js";import"../../../../../i18n/index.js";import{Dialog as t}from"../../../../ui/Dialog/Dialog.js";import"../../../../ui/Dialog/index.js";import{Card as n}from"../../../../ui/Card/Card.js";import{text as r}from"../../../../ui/Text/Text.js";import"../../../../../ui/index.js";import{useSuccessStateContext as i}from"../context.js";import{SUCCESS_STATE_SLOTS as a}from"../SuccessState.slots.js";import{styles as o}from"../SuccessState.styles.js";import{jsx as s,jsxs as c}from"react/jsx-runtime";import*as l from"@stylexjs/stylex";function u({title:u}={}){let d=i(`SuccessState.Header`),{_:f}=e(),p=u??d.headerTitle??f({id:`e3xU5E`,message:`Deposit received`});return c(n.Header,{"data-stridge-slot":a.header,...l.props(o.header),children:[s(r.span,{size:`base`,fontWeight:`semibold`,leading:`tight`,tracking:`tight`,style:{margin:0},children:p}),s(t.CloseButton,{})]})}export{u as SuccessStateHeader};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { SuccessStateHeadlineProps } from "../types.js";
|
|
2
|
+
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
|
+
|
|
4
|
+
//#region src/shared/widgets/success-state/compound/components/Headline.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* Headline part — success ring + title + sub-line. Textual variant
|
|
7
|
+
* of {@link SuccessStateHero}: leads with a brief outcome statement
|
|
8
|
+
* (`"Deposit successful"` / `"Your funds were successfully deposited."`)
|
|
9
|
+
* and lets the rows below carry the numeric payload.
|
|
10
|
+
*/
|
|
11
|
+
declare function SuccessStateHeadline({
|
|
12
|
+
title,
|
|
13
|
+
description
|
|
14
|
+
}?: SuccessStateHeadlineProps): _$react_jsx_runtime0.JSX.Element;
|
|
15
|
+
//#endregion
|
|
16
|
+
export { SuccessStateHeadline };
|
|
@@ -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{useSuccessStateContext as n}from"../context.js";import{SUCCESS_STATE_SLOTS as r}from"../SuccessState.slots.js";import{styles as i}from"../SuccessState.styles.js";import{jsx as a,jsxs as o}from"react/jsx-runtime";import*as s from"@stylexjs/stylex";function c({title:c,description:u}={}){let d=n(`SuccessState.Headline`),{_:f}=e(),p=c??d.headlineTitle??f({id:`--OGth`,message:`Deposit successful`}),m=u??d.headlineDescription??f({id:`oW1G8i`,message:`Your funds were successfully deposited.`});return o(`div`,{"data-stridge-slot":r.headline,...s.props(i.headline),children:[a(l,{}),a(t.h2,{size:`xl`,fontWeight:`semibold`,leading:`tight`,tracking:`tight`,align:`center`,...s.props(i.headlineTitle),children:p}),m?a(t.p,{size:`sm`,leading:`normal`,align:`center`,color:`subdued`,...s.props(i.headlineDescription),children:m}):null]})}function l(){return o(`svg`,{"aria-hidden":!0,viewBox:`0 0 64 64`,xmlns:`http://www.w3.org/2000/svg`,fill:`none`,...s.props(i.heroRing),children:[a(`circle`,{cx:`32`,cy:`32`,r:`28`,strokeWidth:`2.5`,style:{stroke:`var(--stridge-kit-success-ring)`}}),a(`circle`,{cx:`32`,cy:`32`,r:`20`,style:{fill:`var(--stridge-kit-success)`}}),a(`path`,{d:`M23 32.5L29 38.5L41 26.5`,strokeWidth:`2.6`,strokeLinecap:`round`,strokeLinejoin:`round`,...s.props(i.heroRingCheck),style:{stroke:`var(--stridge-kit-success-foreground)`}})]})}export{c as SuccessStateHeadline};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
|
+
|
|
3
|
+
//#region src/shared/widgets/success-state/compound/components/Hero.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* Hero part — success ring + caption + amount row. Reads the pre-formatted hero amount string
|
|
6
|
+
* from compound context; never formats internally.
|
|
7
|
+
*/
|
|
8
|
+
declare function SuccessStateHero(): _$react_jsx_runtime0.JSX.Element;
|
|
9
|
+
//#endregion
|
|
10
|
+
export { SuccessStateHero };
|
|
@@ -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{TokenLogo as n}from"../../../../ui/TokenLogo/TokenLogo.js";import"../../../../ui/TokenLogo/index.js";import"../../../../../ui/index.js";import{useSuccessStateContext as r}from"../context.js";import{SUCCESS_STATE_SLOTS as i}from"../SuccessState.slots.js";import{styles as a}from"../SuccessState.styles.js";import{jsx as o,jsxs as s}from"react/jsx-runtime";import*as c from"@stylexjs/stylex";function l(){let l=r(`SuccessState.Hero`),{_:d}=e(),f=l.creditedTo??l.creditedAsset.symbol;return s(`div`,{"data-stridge-slot":i.hero,...c.props(a.hero),children:[o(u,{}),o(t.span,{size:`2xs`,fontWeight:`medium`,leading:`tight`,tracking:`widest`,transform:`uppercase`,align:`center`,color:`subdued`,children:d({id:`GcuGHR`,message:`Credited to {captionSuffix}`,values:{captionSuffix:f}})}),s(`div`,{dir:`ltr`,...c.props(a.heroAmountRow),children:[o(n,{size:30,symbol:l.creditedAsset.symbol,...l.creditedAsset.chainId===void 0?{}:{chainId:l.creditedAsset.chainId},...l.creditedAsset.address===void 0?{}:{address:l.creditedAsset.address},...l.creditedAsset.isNative===void 0?{}:{isNative:l.creditedAsset.isNative},...l.creditedAsset.logoUrl===void 0?{}:{logoUrl:l.creditedAsset.logoUrl},hideChainBadge:!0,...c.props(a.heroAmountIcon)}),o(t.span,{size:`4xl`,fontWeight:`semibold`,leading:`none`,tracking:`tight`,children:l.amount}),o(t.span,{size:`xl`,fontWeight:`medium`,leading:`tight`,tracking:`tight`,children:l.creditedAsset.symbol})]})]})}function u(){return s(`svg`,{"aria-hidden":!0,viewBox:`0 0 64 64`,xmlns:`http://www.w3.org/2000/svg`,fill:`none`,...c.props(a.heroRing),children:[o(`circle`,{cx:`32`,cy:`32`,r:`28`,strokeWidth:`2.5`,style:{stroke:`var(--stridge-kit-success-ring)`}}),o(`circle`,{cx:`32`,cy:`32`,r:`20`,style:{fill:`var(--stridge-kit-success)`}}),o(`path`,{d:`M23 32.5L29 38.5L41 26.5`,strokeWidth:`2.6`,strokeLinecap:`round`,strokeLinejoin:`round`,...c.props(a.heroRingCheck),style:{stroke:`var(--stridge-kit-success-foreground)`}})]})}export{l as SuccessStateHero};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { SuccessStateMoreDetailsProps } from "../types.js";
|
|
2
|
+
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
|
+
|
|
4
|
+
//#region src/shared/widgets/success-state/compound/components/MoreDetails.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* Collapsible row that expands inline to surface additional context
|
|
7
|
+
* (deposit + completion tx hashes, order timestamps). The trigger
|
|
8
|
+
* renders as a `Details.Row`; children render as flat sibling rows
|
|
9
|
+
* underneath when expanded.
|
|
10
|
+
*/
|
|
11
|
+
declare function SuccessStateMoreDetails({
|
|
12
|
+
label,
|
|
13
|
+
defaultOpen,
|
|
14
|
+
open: openProp,
|
|
15
|
+
onOpenChange,
|
|
16
|
+
children
|
|
17
|
+
}: SuccessStateMoreDetailsProps): _$react_jsx_runtime0.JSX.Element;
|
|
18
|
+
//#endregion
|
|
19
|
+
export { SuccessStateMoreDetails };
|