@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,87 @@
|
|
|
1
|
+
import { CSSProperties, ComponentPropsWithoutRef, ElementType, FunctionComponent } from "react";
|
|
2
|
+
|
|
3
|
+
//#region src/shared/ui/Text/Text.d.ts
|
|
4
|
+
type HtmlTags = "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "p" | "span" | "div" | "code" | "pre" | "label" | "strong" | "em";
|
|
5
|
+
/**
|
|
6
|
+
* Named font-size scale.
|
|
7
|
+
*
|
|
8
|
+
* `2xs / xs / sm / base / lg / xl / 2xl / 3xl / 4xl` are the standard
|
|
9
|
+
* Tailwind-style steps; `caption / meta / callout` fill the off-step
|
|
10
|
+
* canvas-spec rows (11 / 13 / 15 px) the kit's body typography uses.
|
|
11
|
+
* All values flow through `--stridge-kit-text-*` tokens.
|
|
12
|
+
*/
|
|
13
|
+
type TextSize = "2xs" | "caption" | "xs" | "meta" | "sm" | "callout" | "base" | "lg" | "xl" | "2xl" | "3xl" | "4xl";
|
|
14
|
+
type TextFontWeight = "normal" | "medium" | "semibold" | "bold";
|
|
15
|
+
type TextColor = "default" | "subdued" | "tertiary" | "disabled" | "primary" | "secondary" | "success" | "danger" | "warning" | "info" | "accent" | "inherit";
|
|
16
|
+
type TextFont = "sans" | "mono";
|
|
17
|
+
/**
|
|
18
|
+
* Named line-height scale.
|
|
19
|
+
*
|
|
20
|
+
* Four-step unitless ratio scale, Tailwind-aligned. Ratios scale with
|
|
21
|
+
* font-size, so a single token covers heading + body + code rows
|
|
22
|
+
* uniformly across the kit's type scale.
|
|
23
|
+
*/
|
|
24
|
+
type TextLeading = "none" | "tight" | "normal" | "relaxed";
|
|
25
|
+
/**
|
|
26
|
+
* Named letter-spacing scale.
|
|
27
|
+
*
|
|
28
|
+
* Five-step Tailwind-aligned scale. Negative steps (`tighter / tight`)
|
|
29
|
+
* tighten display + body copy; positive steps (`wide / widest`) widen
|
|
30
|
+
* mono and uppercase text.
|
|
31
|
+
*/
|
|
32
|
+
type TextTracking = "tighter" | "tight" | "normal" | "wide" | "widest";
|
|
33
|
+
type TextTransform = "none" | "uppercase" | "lowercase" | "capitalize";
|
|
34
|
+
type TextAlign = "start" | "center" | "end";
|
|
35
|
+
type TextElement = "code" | "pre" | "em";
|
|
36
|
+
/**
|
|
37
|
+
* Style variants accepted by the `Text` factory.
|
|
38
|
+
*
|
|
39
|
+
* Every typography prop maps to a named token in the kit's
|
|
40
|
+
* `--stridge-kit-*` scale. The factory deliberately doesn't expose
|
|
41
|
+
* arbitrary CSS values — consumers that need a value the scale
|
|
42
|
+
* doesn't cover should add it to the kit's tokens, not pass a raw
|
|
43
|
+
* string here, so a host that retunes the kit's scale retunes every
|
|
44
|
+
* consumer uniformly.
|
|
45
|
+
*/
|
|
46
|
+
type TextStyleVariants = {
|
|
47
|
+
size?: TextSize;
|
|
48
|
+
fontWeight?: TextFontWeight;
|
|
49
|
+
color?: TextColor;
|
|
50
|
+
font?: TextFont;
|
|
51
|
+
leading?: TextLeading;
|
|
52
|
+
tracking?: TextTracking;
|
|
53
|
+
transform?: TextTransform;
|
|
54
|
+
align?: TextAlign;
|
|
55
|
+
truncate?: boolean;
|
|
56
|
+
element?: TextElement;
|
|
57
|
+
};
|
|
58
|
+
type TextProps<T extends ElementType> = Omit<ComponentPropsWithoutRef<T>, keyof TextStyleVariants | "color"> & TextStyleVariants & {
|
|
59
|
+
as?: ElementType;
|
|
60
|
+
className?: string;
|
|
61
|
+
style?: CSSProperties;
|
|
62
|
+
};
|
|
63
|
+
type TextComponent<T extends ElementType> = FunctionComponent<TextProps<T>>;
|
|
64
|
+
type TextComponentMap = { [Tag in HtmlTags]: TextComponent<Tag> };
|
|
65
|
+
type TextFactory = (<T extends ElementType>(Component: T) => TextComponent<T>) & TextComponentMap;
|
|
66
|
+
/**
|
|
67
|
+
* Factory that wraps any HTML tag or React component with the kit's typography system.
|
|
68
|
+
*
|
|
69
|
+
* Called as a function — `text(Component)` — it returns a memoized `TextComponent<T>` that
|
|
70
|
+
* applies the kit's `--stridge-kit-*` token scale via style props. Called as a namespace —
|
|
71
|
+
* `text.p`, `text.h2`, `text.span`, etc. — it gives direct access to pre-built components for
|
|
72
|
+
* every tag in {@link HtmlTags}.
|
|
73
|
+
*
|
|
74
|
+
* Per-tag defaults (from {@link MAP_TAG_TO_DEFAULT_VARIANTS}):
|
|
75
|
+
* `h1`–`h6` carry bold/semibold weight and descending sizes; `p` / `span` / `div` default to
|
|
76
|
+
* `normal` weight and `base` size; `label` defaults to `medium` weight; `strong` / `em` inherit
|
|
77
|
+
* color from their parent.
|
|
78
|
+
*
|
|
79
|
+
* @example
|
|
80
|
+
* ```tsx
|
|
81
|
+
* const Title = text.h2;
|
|
82
|
+
* <Title size="xl" color="subdued">Summary</Title>
|
|
83
|
+
* ```
|
|
84
|
+
*/
|
|
85
|
+
declare const text: TextFactory;
|
|
86
|
+
//#endregion
|
|
87
|
+
export { HtmlTags, TextAlign, TextColor, TextComponent, TextFactory, TextFont, TextFontWeight, TextLeading, TextProps, TextSize, TextTracking, TextTransform, text };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{joinClassNames as e}from"../../utils/joinClassNames.js";import{TEXT_SLOTS as t}from"./Text.slots.js";import{alignStyles as n,colorStyles as r,fontStyles as i,leadingStyles as a,sizeStyles as o,styles as s,trackingStyles as c,transformStyles as l,truncateStyles as u,weightStyles as d}from"./Text.styles.js";import{createElement as f}from"react";import*as p from"@stylexjs/stylex";const m=[`h1`,`h2`,`h3`,`h4`,`h5`,`h6`,`p`,`span`,`div`,`code`,`pre`,`label`,`strong`,`em`],h={h1:{fontWeight:`bold`,size:`3xl`,color:`default`},h2:{fontWeight:`bold`,size:`2xl`,color:`default`},h3:{fontWeight:`semibold`,size:`xl`,color:`default`},h4:{fontWeight:`semibold`,size:`lg`,color:`default`},h5:{fontWeight:`semibold`,size:`base`,color:`default`},h6:{fontWeight:`semibold`,size:`sm`,color:`default`},p:{fontWeight:`normal`,size:`base`,color:`default`},span:{fontWeight:`normal`,size:`base`,color:`default`},div:{fontWeight:`normal`,size:`base`,color:`default`},code:{fontWeight:`normal`,size:`sm`,color:`default`},pre:{fontWeight:`normal`,size:`sm`,color:`default`},label:{fontWeight:`medium`,size:`sm`,color:`default`},strong:{fontWeight:`bold`,color:`inherit`},em:{fontWeight:`normal`,color:`inherit`}};function g({size:e=`base`,fontWeight:t=`normal`,color:f=`default`,font:p,leading:m,tracking:h,transform:g,align:_,truncate:v,element:y}={}){return[s.base,o[e],d[t],r[f],p&&i[p],m&&a[m],h&&c[h],g&&l[g],_&&n[_],v&&u.on,y===`code`&&s.code,y===`pre`&&s.pre,y===`em`&&s.italic]}function _(n){return r=>{let{children:i,size:a,color:o,fontWeight:s,font:c,leading:l,tracking:u,transform:d,align:m,truncate:_,as:v,className:y,style:b,...x}=r,S=typeof n==`string`?h[n]:void 0,C=a??S?.size??`base`,w=o??S?.color??`default`,T=s??S?.fontWeight??`normal`,E=v||n,D=typeof E==`string`?E:void 0,O=p.props(g({size:C,color:w,fontWeight:T,font:c,leading:l,tracking:u,transform:d,align:m,truncate:_}),D===`code`&&g({element:`code`}),D===`pre`&&g({element:`pre`}),D===`em`&&g({element:`em`}));return f(E,{"data-stridge-slot":t.root,...x,className:e(O.className,y),style:{...O.style,...b}},i)}}function v(e){let t=new Map,n=e=>{let n=typeof e==`string`?e:e.displayName||e.name||`Anonymous`;t.has(e)||t.set(e,_(e));let r=t.get(e);return r.displayName=`Text(${n})`,r};return Object.entries(e).forEach(([t,r])=>{let i=Array.isArray(e)?r:t,a=n(r);Object.defineProperty(n,i,{configurable:!0,enumerable:!0,get:()=>a})}),{text:n}}const y=v(m).text;export{y as text};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e={root:`text`};export{e as TEXT_SLOTS};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e={base:{"Text__styles.base":`Text__styles.base`,"marginTop-keoZOQ":`xdj266r`,"marginBottom-k1K539":`xat24cr`,"fontFamily-kMv6JI":`xlaww2m`,"fontSize-kGuDYH":`xmnoevb`,"fontWeight-k63SB2":`xxjjie5`,"lineHeight-kLWn49":`x14vj8e1`,"color-kMwMTN":`xzn0pkc`,$$css:`@stridge/kit:src/shared/ui/Text/Text.styles.ts:4`},code:{"Text__styles.code":`Text__styles.code`,"display-k1xSpc":`xt0psk2`,"borderRadius-kaIpWk":`x143j3yi`,"backgroundColor-kWkggS":`x1qkydf4`,"paddingInline-kg3NbH":`x7mqn57`,"paddingTop-kLKAdn":`xrhwvvd`,"paddingBottom-kGO01o":`xnw97ix`,"fontFamily-kMv6JI":`x47j52l`,"fontSize-kGuDYH":`x14qa7mu`,$$css:`@stridge/kit:src/shared/ui/Text/Text.styles.ts:13`},pre:{"Text__styles.pre":`Text__styles.pre`,"display-k1xSpc":`x1lliihq`,"overflowX-kXHlph":`xw2csxc`,"borderRadius-kaIpWk":`x143j3yi`,"backgroundColor-kWkggS":`x1qkydf4`,"padding-kmVPX3":`x163h9xw`,"fontFamily-kMv6JI":`x47j52l`,"fontSize-kGuDYH":`x14qa7mu`,"lineHeight-kLWn49":`x1ppnlvb`,$$css:`@stridge/kit:src/shared/ui/Text/Text.styles.ts:23`},italic:{"Text__styles.italic":`Text__styles.italic`,"fontStyle-kKX8nH":`x1k4tb9n`,$$css:`@stridge/kit:src/shared/ui/Text/Text.styles.ts:33`}},t={"2xs":{"Text__sizeStyles.2xs":`Text__sizeStyles.2xs`,"fontSize-kGuDYH":`x1r4ghiz`,$$css:`@stridge/kit:src/shared/ui/Text/Text.styles.ts:38`},caption:{"Text__sizeStyles.caption":`Text__sizeStyles.caption`,"fontSize-kGuDYH":`x1qvzm30`,$$css:`@stridge/kit:src/shared/ui/Text/Text.styles.ts:41`},xs:{"Text__sizeStyles.xs":`Text__sizeStyles.xs`,"fontSize-kGuDYH":`x1oae1zf`,$$css:`@stridge/kit:src/shared/ui/Text/Text.styles.ts:44`},meta:{"Text__sizeStyles.meta":`Text__sizeStyles.meta`,"fontSize-kGuDYH":`x1fqmwpq`,$$css:`@stridge/kit:src/shared/ui/Text/Text.styles.ts:47`},sm:{"Text__sizeStyles.sm":`Text__sizeStyles.sm`,"fontSize-kGuDYH":`x14qa7mu`,$$css:`@stridge/kit:src/shared/ui/Text/Text.styles.ts:50`},callout:{"Text__sizeStyles.callout":`Text__sizeStyles.callout`,"fontSize-kGuDYH":`x18h8u2c`,$$css:`@stridge/kit:src/shared/ui/Text/Text.styles.ts:53`},base:{"Text__sizeStyles.base":`Text__sizeStyles.base`,"fontSize-kGuDYH":`xmnoevb`,$$css:`@stridge/kit:src/shared/ui/Text/Text.styles.ts:56`},lg:{"Text__sizeStyles.lg":`Text__sizeStyles.lg`,"fontSize-kGuDYH":`x126f79r`,$$css:`@stridge/kit:src/shared/ui/Text/Text.styles.ts:59`},xl:{"Text__sizeStyles.xl":`Text__sizeStyles.xl`,"fontSize-kGuDYH":`x1r7tr6q`,$$css:`@stridge/kit:src/shared/ui/Text/Text.styles.ts:62`},"2xl":{"Text__sizeStyles.2xl":`Text__sizeStyles.2xl`,"fontSize-kGuDYH":`x1ll9jre`,"lineHeight-kLWn49":`x2fnr2h`,$$css:`@stridge/kit:src/shared/ui/Text/Text.styles.ts:65`},"3xl":{"Text__sizeStyles.3xl":`Text__sizeStyles.3xl`,"fontSize-kGuDYH":`x19x2dhx`,"lineHeight-kLWn49":`x2fnr2h`,"letterSpacing-kb6lSQ":`x17krmmv`,$$css:`@stridge/kit:src/shared/ui/Text/Text.styles.ts:69`},"4xl":{"Text__sizeStyles.4xl":`Text__sizeStyles.4xl`,"fontSize-kGuDYH":`x1nagcoj`,"lineHeight-kLWn49":`x2fnr2h`,"letterSpacing-kb6lSQ":`x17krmmv`,$$css:`@stridge/kit:src/shared/ui/Text/Text.styles.ts:74`}},n={normal:{"Text__weightStyles.normal":`Text__weightStyles.normal`,"fontWeight-k63SB2":`xxjjie5`,$$css:`@stridge/kit:src/shared/ui/Text/Text.styles.ts:81`},medium:{"Text__weightStyles.medium":`Text__weightStyles.medium`,"fontWeight-k63SB2":`xi0sa8g`,$$css:`@stridge/kit:src/shared/ui/Text/Text.styles.ts:84`},semibold:{"Text__weightStyles.semibold":`Text__weightStyles.semibold`,"fontWeight-k63SB2":`x1qvi77d`,$$css:`@stridge/kit:src/shared/ui/Text/Text.styles.ts:87`},bold:{"Text__weightStyles.bold":`Text__weightStyles.bold`,"fontWeight-k63SB2":`x1uq483d`,$$css:`@stridge/kit:src/shared/ui/Text/Text.styles.ts:90`}},r={default:{"Text__colorStyles.default":`Text__colorStyles.default`,"color-kMwMTN":`xzn0pkc`,$$css:`@stridge/kit:src/shared/ui/Text/Text.styles.ts:95`},subdued:{"Text__colorStyles.subdued":`Text__colorStyles.subdued`,"color-kMwMTN":`xi96bwj`,$$css:`@stridge/kit:src/shared/ui/Text/Text.styles.ts:98`},tertiary:{"Text__colorStyles.tertiary":`Text__colorStyles.tertiary`,"color-kMwMTN":`x137ha3m`,$$css:`@stridge/kit:src/shared/ui/Text/Text.styles.ts:101`},disabled:{"Text__colorStyles.disabled":`Text__colorStyles.disabled`,"color-kMwMTN":`xi96bwj`,"opacity-kSiTet":`xbyyjgo`,$$css:`@stridge/kit:src/shared/ui/Text/Text.styles.ts:104`},primary:{"Text__colorStyles.primary":`Text__colorStyles.primary`,"color-kMwMTN":`x1me39qh`,$$css:`@stridge/kit:src/shared/ui/Text/Text.styles.ts:108`},secondary:{"Text__colorStyles.secondary":`Text__colorStyles.secondary`,"color-kMwMTN":`x1xr5t3o`,$$css:`@stridge/kit:src/shared/ui/Text/Text.styles.ts:111`},success:{"Text__colorStyles.success":`Text__colorStyles.success`,"color-kMwMTN":`xwiqrka`,$$css:`@stridge/kit:src/shared/ui/Text/Text.styles.ts:114`},danger:{"Text__colorStyles.danger":`Text__colorStyles.danger`,"color-kMwMTN":`x19vemxs`,$$css:`@stridge/kit:src/shared/ui/Text/Text.styles.ts:117`},warning:{"Text__colorStyles.warning":`Text__colorStyles.warning`,"color-kMwMTN":`x1a3v400`,$$css:`@stridge/kit:src/shared/ui/Text/Text.styles.ts:120`},info:{"Text__colorStyles.info":`Text__colorStyles.info`,"color-kMwMTN":`x1b9tnpo`,$$css:`@stridge/kit:src/shared/ui/Text/Text.styles.ts:123`},accent:{"Text__colorStyles.accent":`Text__colorStyles.accent`,"color-kMwMTN":`xabhnm`,$$css:`@stridge/kit:src/shared/ui/Text/Text.styles.ts:126`},inherit:{"Text__colorStyles.inherit":`Text__colorStyles.inherit`,"color-kMwMTN":`x1heor9g`,$$css:`@stridge/kit:src/shared/ui/Text/Text.styles.ts:129`}},i={sans:{"Text__fontStyles.sans":`Text__fontStyles.sans`,"fontFamily-kMv6JI":`xlaww2m`,$$css:`@stridge/kit:src/shared/ui/Text/Text.styles.ts:134`},mono:{"Text__fontStyles.mono":`Text__fontStyles.mono`,"fontFamily-kMv6JI":`x47j52l`,$$css:`@stridge/kit:src/shared/ui/Text/Text.styles.ts:137`}},a={none:{"Text__leadingStyles.none":`Text__leadingStyles.none`,"lineHeight-kLWn49":`xfh9y1j`,$$css:`@stridge/kit:src/shared/ui/Text/Text.styles.ts:142`},tight:{"Text__leadingStyles.tight":`Text__leadingStyles.tight`,"lineHeight-kLWn49":`x2fnr2h`,$$css:`@stridge/kit:src/shared/ui/Text/Text.styles.ts:145`},normal:{"Text__leadingStyles.normal":`Text__leadingStyles.normal`,"lineHeight-kLWn49":`x14vj8e1`,$$css:`@stridge/kit:src/shared/ui/Text/Text.styles.ts:148`},relaxed:{"Text__leadingStyles.relaxed":`Text__leadingStyles.relaxed`,"lineHeight-kLWn49":`x1ppnlvb`,$$css:`@stridge/kit:src/shared/ui/Text/Text.styles.ts:151`}},o={tighter:{"Text__trackingStyles.tighter":`Text__trackingStyles.tighter`,"letterSpacing-kb6lSQ":`xtawdc6`,$$css:`@stridge/kit:src/shared/ui/Text/Text.styles.ts:156`},tight:{"Text__trackingStyles.tight":`Text__trackingStyles.tight`,"letterSpacing-kb6lSQ":`x17krmmv`,$$css:`@stridge/kit:src/shared/ui/Text/Text.styles.ts:159`},normal:{"Text__trackingStyles.normal":`Text__trackingStyles.normal`,"letterSpacing-kb6lSQ":`x1f44it8`,$$css:`@stridge/kit:src/shared/ui/Text/Text.styles.ts:162`},wide:{"Text__trackingStyles.wide":`Text__trackingStyles.wide`,"letterSpacing-kb6lSQ":`xen6mf`,$$css:`@stridge/kit:src/shared/ui/Text/Text.styles.ts:165`},widest:{"Text__trackingStyles.widest":`Text__trackingStyles.widest`,"letterSpacing-kb6lSQ":`x15wrrv1`,$$css:`@stridge/kit:src/shared/ui/Text/Text.styles.ts:168`}},s={none:{"Text__transformStyles.none":`Text__transformStyles.none`,"textTransform-kP9fke":`x6mezaz`,$$css:`@stridge/kit:src/shared/ui/Text/Text.styles.ts:173`},uppercase:{"Text__transformStyles.uppercase":`Text__transformStyles.uppercase`,"textTransform-kP9fke":`xtvhhri`,$$css:`@stridge/kit:src/shared/ui/Text/Text.styles.ts:176`},lowercase:{"Text__transformStyles.lowercase":`Text__transformStyles.lowercase`,"textTransform-kP9fke":`x1kyqaxf`,$$css:`@stridge/kit:src/shared/ui/Text/Text.styles.ts:179`},capitalize:{"Text__transformStyles.capitalize":`Text__transformStyles.capitalize`,"textTransform-kP9fke":`xn80e1m`,$$css:`@stridge/kit:src/shared/ui/Text/Text.styles.ts:182`}},c={start:{"Text__alignStyles.start":`Text__alignStyles.start`,"textAlign-k9WMMc":`x1yc453h`,$$css:`@stridge/kit:src/shared/ui/Text/Text.styles.ts:187`},center:{"Text__alignStyles.center":`Text__alignStyles.center`,"textAlign-k9WMMc":`x2b8uid`,$$css:`@stridge/kit:src/shared/ui/Text/Text.styles.ts:190`},end:{"Text__alignStyles.end":`Text__alignStyles.end`,"textAlign-k9WMMc":`xp4054r`,$$css:`@stridge/kit:src/shared/ui/Text/Text.styles.ts:193`}},l={on:{"Text__truncateStyles.on":`Text__truncateStyles.on`,"whiteSpace-khDVqt":`xuxw1ft`,"overflow-kVQacm":`xb3r6kr`,"textOverflow-kg5iWk":`xlyipyv`,"minWidth-k7Eaqz":`xeuugli`,$$css:`@stridge/kit:src/shared/ui/Text/Text.styles.ts:198`}};export{c as alignStyles,r as colorStyles,i as fontStyles,a as leadingStyles,t as sizeStyles,e as styles,o as trackingStyles,s as transformStyles,l as truncateStyles,n as weightStyles};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./Text.slots.js";import"./Text.js";
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { TokenLogoProps } from "./types.js";
|
|
2
|
+
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
|
+
|
|
4
|
+
//#region src/shared/ui/TokenLogo/TokenLogo.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* Token-aware wrapper over `Image` + `Image.Overlay` that produces the canonical Stridge token
|
|
7
|
+
* disc with an optional chain badge. Encapsulates the entire URL resolution chain so widget code
|
|
8
|
+
* only ever passes the token's identity (`chainId` / `address` / `isNative` / `logoUrl`)
|
|
9
|
+
* plus the visual `symbol` — never raw URL strings.
|
|
10
|
+
*
|
|
11
|
+
* Resolution order applied internally:
|
|
12
|
+
*
|
|
13
|
+
* 1. `pinnedLogoUrl` — host's escape hatch.
|
|
14
|
+
* 2. Canonical Ethereum-mainnet Trustwallet URL for the symbol, when it's a recognized blue-chip
|
|
15
|
+
* (USDC, USDT, DAI, …). Ethereum-first because Trustwallet always has these and the artwork is
|
|
16
|
+
* identical across chains — avoids predictable per-chain 404s.
|
|
17
|
+
* 3. Per-chain Trustwallet CDN URL for `(chainId, address)` (or chain native). Stays underneath
|
|
18
|
+
* the canonical URL as a safety net for chain-specific artwork.
|
|
19
|
+
* 4. `logoUrl` — Stridge backend's curated string.
|
|
20
|
+
* 5. Gradient+letter visual fallback (handled by the underlying `Image`).
|
|
21
|
+
*
|
|
22
|
+
* The chain badge follows the same pattern keyed by `chainId` (with `chainLogoUrl` as the
|
|
23
|
+
* fallback). Pass `hideChainBadge` for surfaces where the chain identity is already obvious.
|
|
24
|
+
*/
|
|
25
|
+
declare function TokenLogo({
|
|
26
|
+
chainId,
|
|
27
|
+
address,
|
|
28
|
+
isNative,
|
|
29
|
+
logoUrl,
|
|
30
|
+
chainLogoUrl,
|
|
31
|
+
pinnedLogoUrl,
|
|
32
|
+
symbol,
|
|
33
|
+
name,
|
|
34
|
+
size,
|
|
35
|
+
shape,
|
|
36
|
+
hideChainBadge,
|
|
37
|
+
letter,
|
|
38
|
+
...rest
|
|
39
|
+
}: TokenLogoProps): _$react_jsx_runtime0.JSX.Element;
|
|
40
|
+
//#endregion
|
|
41
|
+
export { TokenLogo };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{getChainLogoMeta as e}from"../../utils/logos/chains.js";import{resolveChainLogoChain as t,resolveTokenLogoChain as n}from"../../utils/logos/resolveLogoSrc.js";import"../../utils/logos/index.js";import{Image as r}from"../Image/Image.js";import"../Image/index.js";import{useMemo as i}from"react";import{jsx as a}from"react/jsx-runtime";function o({chainId:o,address:s,isNative:c,logoUrl:l,chainLogoUrl:u,pinnedLogoUrl:d,symbol:f,name:p,size:m,shape:h=`circle`,hideChainBadge:g=!1,letter:_,...v}){let y=i(()=>n({...o===void 0?{}:{chainId:o},...s===void 0?{}:{address:s},...c===void 0?{}:{isNative:c},...l===void 0?{}:{logoUrl:l},...d===void 0?{}:{pinnedLogoUrl:d},symbol:f}),[o,s,c,l,d,f]),b=i(()=>!g&&o!==void 0?t({chainId:o,...u===void 0?{}:{chainLogoUrl:u}}):[],[o,u,g]),x=!g&&o!==void 0,S=o===void 0?void 0:e(o)?.name;return a(r,{src:y,alt:f,shape:h,letter:_??p??f,...m===void 0?{}:{size:m},...v,children:x?a(r.Overlay,{src:b,alt:S??`Network`}):null})}export{o as TokenLogo};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./TokenLogo.js";
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { TokenLogoInput } from "../../utils/logos/types.js";
|
|
2
|
+
import { ImageShape, ImageSize } from "../Image/types.js";
|
|
3
|
+
import { ComponentProps } from "react";
|
|
4
|
+
|
|
5
|
+
//#region src/shared/ui/TokenLogo/types.d.ts
|
|
6
|
+
/**
|
|
7
|
+
* Public props accepted by `<TokenLogo>`. Renders a token's logo with an optional chain badge in
|
|
8
|
+
* the bottom-right, deferring to a deterministic gradient+letter fallback when every URL in the
|
|
9
|
+
* resolution chain 404s.
|
|
10
|
+
*
|
|
11
|
+
* The token identity (`chainId`, `address`, `isNative`, `logoUrl`) plus the visual `symbol`
|
|
12
|
+
* are everything the resolver needs. Pass what you have — the resolver picks the best URL chain
|
|
13
|
+
* automatically: host override → convention CDN URL → backend URL → gradient+letter visual.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```tsx
|
|
17
|
+
* <TokenLogo
|
|
18
|
+
* size="2xl"
|
|
19
|
+
* symbol="USDC"
|
|
20
|
+
* chainId={42161}
|
|
21
|
+
* address="0xaf88d065e77c8cc2239327c5edb3a432268e5831"
|
|
22
|
+
* logoUrl={token.logo}
|
|
23
|
+
* />
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
26
|
+
interface TokenLogoProps extends Omit<ComponentProps<"span">, "children" | "size">, TokenLogoInput {
|
|
27
|
+
/**
|
|
28
|
+
* Symbol shown to the user. Doubles as the `alt` for accessibility and as the deterministic
|
|
29
|
+
* seed for the gradient+letter fallback when all URLs fail.
|
|
30
|
+
*/
|
|
31
|
+
symbol: string;
|
|
32
|
+
/**
|
|
33
|
+
* Optional name (e.g. `"USD Coin"`) used as the seed instead of `symbol`.
|
|
34
|
+
*/
|
|
35
|
+
name?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Preset or numeric pixel size. When omitted, inherits from an enclosing `<Image.Group>` if
|
|
38
|
+
* one is mounted (so chain stacks render at a single uniform size); otherwise the underlying
|
|
39
|
+
* `Image` falls back to its `"md"` default.
|
|
40
|
+
*/
|
|
41
|
+
size?: ImageSize | number;
|
|
42
|
+
/**
|
|
43
|
+
* Disc shape. Defaults to `"circle"`.
|
|
44
|
+
*/
|
|
45
|
+
shape?: ImageShape;
|
|
46
|
+
/**
|
|
47
|
+
* Suppress the chain badge overlay. Defaults to `false`. Use this when the surrounding row
|
|
48
|
+
* already communicates the chain (e.g. transfer-crypto pickers grouped by chain).
|
|
49
|
+
*/
|
|
50
|
+
hideChainBadge?: boolean;
|
|
51
|
+
/**
|
|
52
|
+
* Logo URL for the chain badge, used as the fallback when the chain isn't in the bundled
|
|
53
|
+
* registry or when its CDN entry 404s. Independent of the token's `logoUrl` because the
|
|
54
|
+
* backend typically hands back two distinct strings (one for the asset, one for the native
|
|
55
|
+
* logo of its chain).
|
|
56
|
+
*/
|
|
57
|
+
chainLogoUrl?: string;
|
|
58
|
+
/**
|
|
59
|
+
* Override the fallback letter (defaults to the first uppercase character of `symbol`).
|
|
60
|
+
*/
|
|
61
|
+
letter?: string;
|
|
62
|
+
}
|
|
63
|
+
//#endregion
|
|
64
|
+
export { TokenLogoProps };
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
import { ComponentProps, ReactNode } from "react";
|
|
2
|
+
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
|
+
import { Tooltip } from "@base-ui/react/tooltip";
|
|
4
|
+
|
|
5
|
+
//#region src/shared/ui/Tooltip/Tooltip.d.ts
|
|
6
|
+
/**
|
|
7
|
+
* Visual style applied to the tooltip popup and its arrow.
|
|
8
|
+
*
|
|
9
|
+
* - `default`: dark surface tooltip.
|
|
10
|
+
* - `inverse`: light surface tooltip, used on dark backgrounds.
|
|
11
|
+
*/
|
|
12
|
+
type TooltipVariant = "default" | "inverse";
|
|
13
|
+
/**
|
|
14
|
+
* Shared configuration provider for all `Tooltip.Root` instances in its subtree. Wraps Base UI's
|
|
15
|
+
* `Tooltip.Provider`. Defaults `delay` to `200` ms.
|
|
16
|
+
*/
|
|
17
|
+
declare function TooltipProvider({
|
|
18
|
+
delay,
|
|
19
|
+
...props
|
|
20
|
+
}: Tooltip$1.ProviderProps): _$react_jsx_runtime0.JSX.Element;
|
|
21
|
+
/**
|
|
22
|
+
* Root of the tooltip compound. Wraps Base UI's `Tooltip.Root`. Pass `disabled` to suppress
|
|
23
|
+
* the tooltip without unmounting the trigger.
|
|
24
|
+
*/
|
|
25
|
+
declare function TooltipRoot({
|
|
26
|
+
disabled,
|
|
27
|
+
...props
|
|
28
|
+
}: Tooltip$1.RootProps): _$react_jsx_runtime0.JSX.Element;
|
|
29
|
+
/**
|
|
30
|
+
* Element that opens the tooltip on hover or focus. Wraps Base UI's `Tooltip.Trigger`.
|
|
31
|
+
*/
|
|
32
|
+
declare function TooltipTrigger(props: Tooltip$1.TriggerProps): _$react_jsx_runtime0.JSX.Element;
|
|
33
|
+
/**
|
|
34
|
+
* Portals its children outside the current DOM subtree. Wraps Base UI's `Tooltip.Portal`.
|
|
35
|
+
* Automatically composed by {@link Tooltip.Content} — mount separately only for custom layering.
|
|
36
|
+
*/
|
|
37
|
+
declare function TooltipPortal(props: Tooltip$1.PortalProps): _$react_jsx_runtime0.JSX.Element;
|
|
38
|
+
/**
|
|
39
|
+
* Positions the tooltip popup relative to its trigger. Wraps Base UI's `Tooltip.Positioner`.
|
|
40
|
+
* Defaults `sideOffset` to `8` px.
|
|
41
|
+
*/
|
|
42
|
+
declare function TooltipPositioner({
|
|
43
|
+
sideOffset,
|
|
44
|
+
className,
|
|
45
|
+
style,
|
|
46
|
+
...props
|
|
47
|
+
}: Tooltip$1.PositionerProps): _$react_jsx_runtime0.JSX.Element;
|
|
48
|
+
/**
|
|
49
|
+
* Styled popup for the tooltip. Composes {@link Tooltip.Portal}, `KitPortalScope`, and
|
|
50
|
+
* {@link Tooltip.Positioner} so callers only need this single part.
|
|
51
|
+
*
|
|
52
|
+
* Defaults: `variant="default"`, `withArrow=true`, `side="top"`, `align="center"`,
|
|
53
|
+
* `alignOffset=0`, `sideOffset=8`.
|
|
54
|
+
*/
|
|
55
|
+
declare function TooltipContent({
|
|
56
|
+
variant,
|
|
57
|
+
withArrow,
|
|
58
|
+
sideOffset,
|
|
59
|
+
side,
|
|
60
|
+
align,
|
|
61
|
+
alignOffset,
|
|
62
|
+
arrowPadding,
|
|
63
|
+
collisionAvoidance,
|
|
64
|
+
collisionBoundary,
|
|
65
|
+
collisionPadding,
|
|
66
|
+
sticky,
|
|
67
|
+
positionMethod,
|
|
68
|
+
anchor,
|
|
69
|
+
disableAnchorTracking,
|
|
70
|
+
className,
|
|
71
|
+
style,
|
|
72
|
+
children,
|
|
73
|
+
...props
|
|
74
|
+
}: Tooltip$1.ContentProps): _$react_jsx_runtime0.JSX.Element;
|
|
75
|
+
/**
|
|
76
|
+
* Arrow indicator pointing from the tooltip popup toward its trigger. Wraps Base UI's
|
|
77
|
+
* `Tooltip.Arrow` and renders the kit-styled {@link ArrowSvg}. Accepts `variant` to match the
|
|
78
|
+
* popup's color scheme.
|
|
79
|
+
*/
|
|
80
|
+
declare function TooltipArrow({
|
|
81
|
+
variant,
|
|
82
|
+
className,
|
|
83
|
+
style,
|
|
84
|
+
...props
|
|
85
|
+
}: Tooltip$1.ArrowProps): _$react_jsx_runtime0.JSX.Element;
|
|
86
|
+
declare namespace Tooltip$1 {
|
|
87
|
+
type Variant = TooltipVariant;
|
|
88
|
+
type ProviderProps = Tooltip.Provider.Props;
|
|
89
|
+
type RootProps = Tooltip.Root.Props & {
|
|
90
|
+
/**
|
|
91
|
+
* When `true`, suppresses the tooltip without unmounting the trigger.
|
|
92
|
+
*
|
|
93
|
+
* @default false
|
|
94
|
+
*/
|
|
95
|
+
disabled?: boolean;
|
|
96
|
+
};
|
|
97
|
+
type TriggerProps = Tooltip.Trigger.Props;
|
|
98
|
+
type PortalProps = Tooltip.Portal.Props;
|
|
99
|
+
type PositionerProps = Tooltip.Positioner.Props & {
|
|
100
|
+
/**
|
|
101
|
+
* Gap in pixels between the tooltip popup and the trigger element.
|
|
102
|
+
*
|
|
103
|
+
* @default 8
|
|
104
|
+
*/
|
|
105
|
+
sideOffset?: number;
|
|
106
|
+
};
|
|
107
|
+
type ContentProps = Tooltip.Popup.Props & {
|
|
108
|
+
children?: ReactNode;
|
|
109
|
+
/**
|
|
110
|
+
* Color scheme of the popup and its arrow.
|
|
111
|
+
*
|
|
112
|
+
* @default "default"
|
|
113
|
+
*/
|
|
114
|
+
variant?: Variant;
|
|
115
|
+
/**
|
|
116
|
+
* Whether to render the directional arrow pointing toward the trigger.
|
|
117
|
+
*
|
|
118
|
+
* @default true
|
|
119
|
+
*/
|
|
120
|
+
withArrow?: boolean;
|
|
121
|
+
/**
|
|
122
|
+
* Gap in pixels between the popup and the trigger element.
|
|
123
|
+
*
|
|
124
|
+
* @default 8
|
|
125
|
+
*/
|
|
126
|
+
sideOffset?: number;
|
|
127
|
+
/**
|
|
128
|
+
* Side of the trigger the popup appears on.
|
|
129
|
+
*
|
|
130
|
+
* @default "top"
|
|
131
|
+
*/
|
|
132
|
+
side?: Tooltip.Positioner.Props["side"];
|
|
133
|
+
/**
|
|
134
|
+
* Alignment of the popup along the cross axis.
|
|
135
|
+
*
|
|
136
|
+
* @default "center"
|
|
137
|
+
*/
|
|
138
|
+
align?: Tooltip.Positioner.Props["align"];
|
|
139
|
+
/**
|
|
140
|
+
* Offset in pixels along the cross axis.
|
|
141
|
+
*
|
|
142
|
+
* @default 0
|
|
143
|
+
*/
|
|
144
|
+
alignOffset?: Tooltip.Positioner.Props["alignOffset"];
|
|
145
|
+
arrowPadding?: Tooltip.Positioner.Props["arrowPadding"];
|
|
146
|
+
collisionAvoidance?: Tooltip.Positioner.Props["collisionAvoidance"];
|
|
147
|
+
collisionBoundary?: Tooltip.Positioner.Props["collisionBoundary"];
|
|
148
|
+
collisionPadding?: Tooltip.Positioner.Props["collisionPadding"];
|
|
149
|
+
sticky?: Tooltip.Positioner.Props["sticky"];
|
|
150
|
+
positionMethod?: Tooltip.Positioner.Props["positionMethod"];
|
|
151
|
+
anchor?: Tooltip.Positioner.Props["anchor"];
|
|
152
|
+
disableAnchorTracking?: Tooltip.Positioner.Props["disableAnchorTracking"];
|
|
153
|
+
};
|
|
154
|
+
type ArrowProps = ComponentProps<typeof Tooltip.Arrow> & {
|
|
155
|
+
/**
|
|
156
|
+
* Color scheme of the arrow, matched to the popup's `variant`.
|
|
157
|
+
*
|
|
158
|
+
* @default "default"
|
|
159
|
+
*/
|
|
160
|
+
variant?: Variant;
|
|
161
|
+
};
|
|
162
|
+
const Provider: typeof TooltipProvider;
|
|
163
|
+
const Root: typeof TooltipRoot;
|
|
164
|
+
const Trigger: typeof TooltipTrigger;
|
|
165
|
+
const Portal: typeof TooltipPortal;
|
|
166
|
+
const Positioner: typeof TooltipPositioner;
|
|
167
|
+
const Content: typeof TooltipContent;
|
|
168
|
+
const Arrow: typeof TooltipArrow;
|
|
169
|
+
}
|
|
170
|
+
//#endregion
|
|
171
|
+
export { Tooltip$1 as Tooltip, TooltipVariant };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{KitPortalScope as e}from"../../../scope/KitPortalScope.js";import"../../../scope/index.js";import{mergeClassName as t}from"../../utils/mergeClassName.js";import{mergeStyle as n}from"../../utils/mergeStyle.js";import{TOOLTIP_SLOTS as r}from"./Tooltip.slots.js";import{styles as i}from"./Tooltip.styles.js";import{jsx as a,jsxs as o}from"react/jsx-runtime";import*as s from"@stylexjs/stylex";import{Tooltip as c}from"@base-ui/react/tooltip";function l({delay:e=200,...t}){return a(c.Provider,{delay:e,...t})}function u({disabled:e,...t}){return a(c.Root,{disabled:e,...t})}function d(e){return a(c.Trigger,{"data-stridge-slot":r.trigger,...e})}function f(e){return a(c.Portal,{"data-stridge-slot":r.portal,...e})}function p({sideOffset:e=8,className:o,style:l,...u}){let d=s.props(i.positioner);return a(c.Positioner,{"data-stridge-slot":r.positioner,sideOffset:e,...u,className:t(d.className,o),style:n(d.style,l)})}function m({variant:l=`default`,withArrow:u=!0,sideOffset:d=8,side:m=`top`,align:g=`center`,alignOffset:_=0,arrowPadding:v,collisionAvoidance:y,collisionBoundary:b,collisionPadding:x,sticky:S,positionMethod:C,anchor:w,disableAnchorTracking:T,className:E,style:D,children:O,...k}){let A=s.props(i.content,l===`inverse`&&i.inverseContent);return a(f,{children:a(e,{children:a(p,{side:m,align:g,alignOffset:_,sideOffset:d,arrowPadding:v,collisionAvoidance:y,collisionBoundary:b,collisionPadding:x,sticky:S,positionMethod:C,anchor:w,disableAnchorTracking:T,children:o(c.Popup,{"data-stridge-slot":r.content,...k,className:t(A.className,E),style:n(A.style,D),children:[u?a(h,{variant:l}):null,O]})})})})}function h({variant:e=`default`,className:o,style:l,...u}){let d=s.props(i.arrow);return a(c.Arrow,{"data-stridge-slot":r.arrow,...u,className:t(d.className,o),style:n(d.style,l),children:a(g,{variant:e})})}function g({variant:e,...t}){let n=e===`inverse`;return o(`svg`,{width:`20`,height:`10`,viewBox:`0 0 20 10`,fill:`none`,...t,children:[a(`path`,{d:`M9.66437 2.60207L4.80758 6.97318C4.07308 7.63423 3.11989 8 2.13172 8H0V10H20V8H18.5349C17.5468 8 16.5936 7.63423 15.8591 6.97318L11.0023 2.60207C10.622 2.2598 10.0447 2.25979 9.66437 2.60207Z`,...s.props(n?i.inverseArrowFill:i.arrowFill)}),a(`path`,{d:`M8.99542 1.85876C9.75604 1.17425 10.9106 1.17422 11.6713 1.85878L16.5281 6.22989C17.0789 6.72568 17.7938 7.00001 18.5349 7.00001L15.89 7L11.0023 2.60207C10.622 2.2598 10.0447 2.2598 9.66436 2.60207L4.77734 7L2.13171 7.00001C2.87284 7.00001 3.58774 6.72568 4.13861 6.22989L8.99542 1.85876Z`,...s.props(n?i.inverseArrowStroke:i.arrowStroke)})]})}let _;(function(e){e.Provider=l,e.Root=u,e.Trigger=d,e.Portal=f,e.Positioner=p,e.Content=m,e.Arrow=h})(_||={});export{_ as Tooltip};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
//#region src/shared/ui/Tooltip/Tooltip.slots.d.ts
|
|
2
|
+
declare const TOOLTIP_SLOTS: {
|
|
3
|
+
readonly trigger: "tooltip-trigger";
|
|
4
|
+
readonly portal: "tooltip-portal";
|
|
5
|
+
readonly positioner: "tooltip-positioner";
|
|
6
|
+
readonly content: "tooltip-content";
|
|
7
|
+
readonly arrow: "tooltip-arrow";
|
|
8
|
+
};
|
|
9
|
+
type TooltipSlot = (typeof TOOLTIP_SLOTS)[keyof typeof TOOLTIP_SLOTS];
|
|
10
|
+
//#endregion
|
|
11
|
+
export { TOOLTIP_SLOTS, TooltipSlot };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e={trigger:`tooltip-trigger`,portal:`tooltip-portal`,positioner:`tooltip-positioner`,content:`tooltip-content`,arrow:`tooltip-arrow`};export{e as TOOLTIP_SLOTS};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e={positioner:{"Tooltip__styles.positioner":`Tooltip__styles.positioner`,"isolation-kHBbk8":`xc8icb0`,"zIndex-kY2c9j":`xlow4cx`,$$css:`@stridge/kit:src/shared/ui/Tooltip/Tooltip.styles.ts:24`},content:{"Tooltip__styles.content":`Tooltip__styles.content`,"position-kVAEAm":`x1n2onr6`,"zIndex-kY2c9j":`xlow4cx`,"width-kzqmXN":`xeq5yr9`,"maxWidth-ks0D6T":`x1va8c73`,"borderWidth-kMzoRj":`xmkeg23`,"borderStyle-ksu8eU":`x1y0btm7`,"borderColor-kVAM5u":`x12c9lpl`,"borderRadius-kaIpWk":`x13pkpm2`,"paddingTop-kLKAdn":`xq38ur3`,"paddingBottom-kGO01o":`x1hli9g4`,"paddingInline-kg3NbH":`xxztuhb`,"backgroundColor-kWkggS":`x1gdua1s`,"color-kMwMTN":`xqk8w4k`,"boxShadow-kGVxlE":`x1g7ug4b`,"fontFamily-kMv6JI":`xlaww2m`,"fontSize-kGuDYH":`x14qa7mu`,"lineHeight-kLWn49":`x14vj8e1`,"transformOrigin-k3nNDw":`xctpfpq`,"willChange-k6sLGO":`x1q1rmc8`,"[data-open]_animationName-k6MjMx":`x1v7ye95`,"[data-open]_animationDuration-kQT8Nr":`x6qscqp`,"[data-open]_animationTimingFunction-kGrMy9":`xec0cv`,"[data-closed]_animationName-khiDtg":`x130u89k`,"[data-closed]_animationDuration-kfqKPr":`x1ej03p1`,"[data-closed]_animationTimingFunction-kBIjI2":`x1gv3vh9`,"@media (prefers-reduced-motion: reduce)_animationName-kjO2d4":`x1aquc0h`,"@media (prefers-reduced-motion: reduce)_animationDuration-kkDQuc":`x1u6grsq`,$$css:`@stridge/kit:src/shared/ui/Tooltip/Tooltip.styles.ts:28`},inverseContent:{"Tooltip__styles.inverseContent":`Tooltip__styles.inverseContent`,"borderColor-kVAM5u":`x9r1u3d`,"backgroundColor-kWkggS":`x1lbpfnh`,"color-kMwMTN":`xv5fsj6`,"boxShadow-kGVxlE":`x1g7ug4b`,$$css:`@stridge/kit:src/shared/ui/Tooltip/Tooltip.styles.ts:63`},arrow:{"Tooltip__styles.arrow":`Tooltip__styles.arrow`,"display-k1xSpc":`x78zum5`,"[data-side=bottom]_top-kI8ZZa":`x10hicux`,"[data-side=bottom]_transform-kFGJGK":`x1pdsi1e`,"[data-side=left]_right-kQdACu":`x1f3sk1h`,"[data-side=left]_transform-kuRWOk":`x1nsrxey`,"[data-side=right]_left-kr0lxG":`xcghi9w`,"[data-side=right]_transform-kOQwwO":`xleqk9n`,"[data-side=top]_bottom-k7S4vO":`x1tuhd6z`,"[data-side=top]_transform-k5KnT2":`x1shx6fy`,"[data-side=inline-start]_insetInlineEnd-ku2pP4":`x118mprz`,"[data-side=inline-start]_transform-kWInG2":`x6e4vt5`,"[data-side=inline-end]_insetInlineStart-k1nIgq":`xozvt59`,"[data-side=inline-end]_transform-kwEd5o":`x1ervhv0`,$$css:`@stridge/kit:src/shared/ui/Tooltip/Tooltip.styles.ts:69`},arrowFill:{"Tooltip__styles.arrowFill":`Tooltip__styles.arrowFill`,"fill-kDwRjp":`x1wlrupo`,$$css:`@stridge/kit:src/shared/ui/Tooltip/Tooltip.styles.ts:96`},arrowStroke:{"Tooltip__styles.arrowStroke":`Tooltip__styles.arrowStroke`,"fill-kDwRjp":`xn1vxmx`,$$css:`@stridge/kit:src/shared/ui/Tooltip/Tooltip.styles.ts:99`},inverseArrowFill:{"Tooltip__styles.inverseArrowFill":`Tooltip__styles.inverseArrowFill`,"fill-kDwRjp":`xnc8ywt`,$$css:`@stridge/kit:src/shared/ui/Tooltip/Tooltip.styles.ts:102`},inverseArrowStroke:{"Tooltip__styles.inverseArrowStroke":`Tooltip__styles.inverseArrowStroke`,"fill-kDwRjp":`xy6m8k3`,$$css:`@stridge/kit:src/shared/ui/Tooltip/Tooltip.styles.ts:105`}};export{e as styles};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./Tooltip.slots.js";import"./Tooltip.js";
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
|
+
|
|
3
|
+
//#region src/shared/ui/WalletRow/WalletRow.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* Typography rhythm for the name span. `regular` renders at `sm/medium`; `compact` at
|
|
6
|
+
* `meta/semibold` for denser layouts (error-state receipt rows).
|
|
7
|
+
*/
|
|
8
|
+
type WalletRowDensity = "regular" | "compact";
|
|
9
|
+
interface WalletRowProps {
|
|
10
|
+
/** Optional URL of the wallet brand icon. */
|
|
11
|
+
iconUrl?: string;
|
|
12
|
+
/** Wallet display name (e.g. `"Wallet"`, `"Coinbase Pro"`). */
|
|
13
|
+
name?: string;
|
|
14
|
+
/**
|
|
15
|
+
* Pre-formatted address string (e.g. `"0x…1234"`). The caller is responsible for
|
|
16
|
+
* truncation — the row is a pure layout primitive and never reformats. Driver-backed
|
|
17
|
+
* widgets pass `wallet.payload.address.formatted` directly.
|
|
18
|
+
*/
|
|
19
|
+
formattedAddress: string;
|
|
20
|
+
/**
|
|
21
|
+
* Optional explorer URL the row links out to. When the URL parses to an `http(s)`
|
|
22
|
+
* resource a small external-link glyph is appended after the address and the entire
|
|
23
|
+
* value becomes a click target.
|
|
24
|
+
*/
|
|
25
|
+
explorerUrl?: string;
|
|
26
|
+
/** Typography rhythm for the name span. Defaults to `"regular"`. */
|
|
27
|
+
density?: WalletRowDensity;
|
|
28
|
+
/**
|
|
29
|
+
* When `true`, suppress the leading icon — including the gradient+letter fallback that
|
|
30
|
+
* `Image` would otherwise render when `iconUrl` is missing.
|
|
31
|
+
*/
|
|
32
|
+
hideIcon?: boolean;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Pure-layout wallet identity row — `[icon] name (…tail) ↗`. Receives pre-formatted props from
|
|
36
|
+
* the driver layer (`wallet.payload.address.formatted`, `sourceWallet.address.formatted`) and
|
|
37
|
+
* never calls `shortenAddress` or any other formatter itself.
|
|
38
|
+
*
|
|
39
|
+
* @example
|
|
40
|
+
* ```tsx
|
|
41
|
+
* const { wallet } = useDepositSnapshot();
|
|
42
|
+
* if (wallet.status !== "ready") return null;
|
|
43
|
+
* <WalletRow name={t("Wallet")} formattedAddress={wallet.payload.address.formatted} />
|
|
44
|
+
* ```
|
|
45
|
+
*/
|
|
46
|
+
declare function WalletRow({
|
|
47
|
+
iconUrl,
|
|
48
|
+
name,
|
|
49
|
+
formattedAddress,
|
|
50
|
+
explorerUrl,
|
|
51
|
+
density,
|
|
52
|
+
hideIcon
|
|
53
|
+
}: WalletRowProps): _$react_jsx_runtime0.JSX.Element;
|
|
54
|
+
//#endregion
|
|
55
|
+
export { WalletRow, WalletRowDensity, type WalletRowProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{ExternalLinkIcon as e}from"../../icons/ExternalLinkIcon.js";import"../../../icons/index.js";import{toSafeHref as t}from"../ExternalLink/toSafeHref.js";import{ExternalLink as n}from"../ExternalLink/ExternalLink.js";import"../ExternalLink/index.js";import{Image as r}from"../Image/Image.js";import"../Image/index.js";import{LtrAtom as i}from"../LtrAtom/LtrAtom.js";import"../LtrAtom/index.js";import{text as a}from"../Text/Text.js";import"../Text/index.js";import{WALLET_ROW_SLOTS as o}from"./WalletRow.slots.js";import{styles as s}from"./WalletRow.styles.js";import{Fragment as c,jsx as l,jsxs as u}from"react/jsx-runtime";import*as d from"@stylexjs/stylex";function f({iconUrl:f,name:p,formattedAddress:m,explorerUrl:h,density:g=`regular`,hideIcon:_=!1}){let v=t(h),y=d.props(s.root),b=u(c,{children:[_?null:l(r,{size:`md`,src:f,alt:p??``}),p?g===`compact`?l(a.span,{size:`meta`,fontWeight:`semibold`,leading:`tight`,children:p}):l(a.span,{size:`sm`,fontWeight:`medium`,leading:`tight`,children:p}):null,l(a.span,{size:`meta`,fontWeight:`medium`,leading:`tight`,tracking:`normal`,font:`mono`,color:`subdued`,children:l(i,{children:p?`(${m})`:m})})]});return v?l(n,{dir:`ltr`,href:v,suffix:l(e,{"aria-hidden":!0}),"data-stridge-slot":o.root,className:y.className,style:y.style,children:b}):l(`span`,{dir:`ltr`,"data-stridge-slot":o.root,className:y.className,style:y.style,children:b})}export{f as WalletRow};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
//#region src/shared/ui/WalletRow/WalletRow.slots.d.ts
|
|
2
|
+
declare const WALLET_ROW_SLOTS: {
|
|
3
|
+
readonly root: "wallet-row";
|
|
4
|
+
};
|
|
5
|
+
type WalletRowSlot = (typeof WALLET_ROW_SLOTS)[keyof typeof WALLET_ROW_SLOTS];
|
|
6
|
+
//#endregion
|
|
7
|
+
export { WALLET_ROW_SLOTS, WalletRowSlot };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e={root:`wallet-row`};export{e as WALLET_ROW_SLOTS};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e={root:{"WalletRow__styles.root":`WalletRow__styles.root`,"display-k1xSpc":`x3nfvp2`,"alignItems-kGNEyG":`x6s0dn4`,"gap-kOIVth":`x167g77z`,$$css:`@stridge/kit:src/shared/ui/WalletRow/WalletRow.styles.ts:3`}};export{e as styles};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./WalletRow.slots.js";import"./WalletRow.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e={1:`https://etherscan.io`,10:`https://optimistic.etherscan.io`,56:`https://bscscan.com`,100:`https://gnosisscan.io`,137:`https://polygonscan.com`,250:`https://ftmscan.com`,324:`https://explorer.zksync.io`,5e3:`https://explorer.mantle.xyz`,8453:`https://basescan.org`,42161:`https://arbiscan.io`,43114:`https://snowtrace.io`,59144:`https://lineascan.build`,81457:`https://blastscan.io`,534352:`https://scrollscan.com`};function t(){return e}export{t as defaultBlockExplorers};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function e(...e){let t=e.filter(Boolean);return t.length>0?t.join(` `):void 0}export{e as joinClassNames};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { ChainLogoMeta } from "./chains.js";
|
|
2
|
+
import { ChainLogoInput, TokenLogoInput } from "./types.js";
|
|
3
|
+
|
|
4
|
+
//#region src/shared/utils/logos/api.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* Logo resolution namespace. Exposes two priority-chain resolvers (`token`, `chain`) and the
|
|
7
|
+
* bundled chain registry (`chains`).
|
|
8
|
+
*
|
|
9
|
+
* Each resolver returns a priority-ordered candidate chain — index `[0]` is the most-preferred
|
|
10
|
+
* URL. Walk the chain on image errors (`<TokenLogo>` does this internally) or pluck `[0]` for a
|
|
11
|
+
* single-shot URL.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```ts
|
|
15
|
+
* import { logos } from "@stridge/kit";
|
|
16
|
+
*
|
|
17
|
+
* // Resolve a token logo (full priority chain)
|
|
18
|
+
* const candidates = logos.token({
|
|
19
|
+
* chainId: 1,
|
|
20
|
+
* address: "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
|
|
21
|
+
* symbol: "USDC",
|
|
22
|
+
* });
|
|
23
|
+
* // → [
|
|
24
|
+
* // "https://raw.githubusercontent.com/.../ethereum/.../USDC.png",
|
|
25
|
+
* // "https://raw.githubusercontent.com/.../ethereum/assets/0xA0b.../logo.png",
|
|
26
|
+
* // ]
|
|
27
|
+
*
|
|
28
|
+
* // Resolve a chain badge (e.g. for the BNB Chain logo)
|
|
29
|
+
* logos.chain({ chainId: 56 });
|
|
30
|
+
* // → ["https://raw.githubusercontent.com/.../smartchain/info/logo.png"]
|
|
31
|
+
*
|
|
32
|
+
* // Read the bundled registry — useful for "supported chains" pickers
|
|
33
|
+
* for (const c of logos.chains) console.log(c.chainId, c.name);
|
|
34
|
+
* ```
|
|
35
|
+
*/
|
|
36
|
+
declare const logos: Readonly<{
|
|
37
|
+
/**
|
|
38
|
+
* Resolution chain for a token logo. Returns priority-ordered candidates.
|
|
39
|
+
*/
|
|
40
|
+
readonly token: (input: TokenLogoInput) => readonly string[];
|
|
41
|
+
/**
|
|
42
|
+
* Resolution chain for a chain logo. Returns priority-ordered candidates.
|
|
43
|
+
*/
|
|
44
|
+
readonly chain: (input: ChainLogoInput) => readonly string[];
|
|
45
|
+
/**
|
|
46
|
+
* Bundled chain registry — every EIP-155 chain id with built-in metadata. Used by the
|
|
47
|
+
* resolvers internally; also useful for rendering "supported chains" lists or narrowing
|
|
48
|
+
* user input to recognized chains.
|
|
49
|
+
*/
|
|
50
|
+
readonly chains: readonly ChainLogoMeta[];
|
|
51
|
+
}>;
|
|
52
|
+
type LogosNamespace = typeof logos;
|
|
53
|
+
//#endregion
|
|
54
|
+
export { LogosNamespace, logos };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{listChainLogoMeta as e}from"./chains.js";import{resolveChainLogoChain as t,resolveTokenLogoChain as n}from"./resolveLogoSrc.js";const r=Object.freeze(e()),i=Object.freeze({token(e){return n(e)},chain(e){return t(e)},chains:r});export{i as logos};
|