@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,147 @@
|
|
|
1
|
+
import { ComponentProps } from "react";
|
|
2
|
+
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
|
+
import { Dialog } from "@base-ui/react/dialog";
|
|
4
|
+
|
|
5
|
+
//#region src/shared/ui/Dialog/Dialog.d.ts
|
|
6
|
+
/**
|
|
7
|
+
* Returns `true` when the calling component is rendered inside a `Dialog.Content`. Lets gateway widgets pick the right
|
|
8
|
+
* shell — Card frame inline, dialog frame when portaled — and lets header parts inject the close affordance only when it's
|
|
9
|
+
* needed.
|
|
10
|
+
*/
|
|
11
|
+
declare function useIsInsideDialogContent(): boolean;
|
|
12
|
+
/**
|
|
13
|
+
* Root of the dialog compound. Wraps Base UI's `Dialog.Root` and stamps `data-stridge-slot` on the element.
|
|
14
|
+
*
|
|
15
|
+
* Compose with {@link Dialog.Trigger}, {@link Dialog.Content}, {@link Dialog.Title}, and
|
|
16
|
+
* {@link Dialog.Description} to build a fully accessible modal dialog.
|
|
17
|
+
*/
|
|
18
|
+
declare function Dialog$1(props: Dialog$1.Props): _$react_jsx_runtime0.JSX.Element;
|
|
19
|
+
/**
|
|
20
|
+
* Toggles the dialog open state. Wraps Base UI's `Dialog.Trigger`.
|
|
21
|
+
*/
|
|
22
|
+
declare function DialogTrigger(props: Dialog$1.TriggerProps): _$react_jsx_runtime0.JSX.Element;
|
|
23
|
+
/**
|
|
24
|
+
* Portals its children outside the current DOM subtree. Wraps Base UI's `Dialog.Portal`.
|
|
25
|
+
*/
|
|
26
|
+
declare function DialogPortal(props: Dialog$1.PortalProps): _$react_jsx_runtime0.JSX.Element;
|
|
27
|
+
/**
|
|
28
|
+
* Closes the dialog when activated. Wraps Base UI's `Dialog.Close`.
|
|
29
|
+
* For a pre-styled close affordance in header rows, use {@link Dialog.CloseButton} instead.
|
|
30
|
+
*/
|
|
31
|
+
declare function DialogClose(props: Dialog$1.CloseProps): _$react_jsx_runtime0.JSX.Element;
|
|
32
|
+
/**
|
|
33
|
+
* Full-viewport backdrop rendered behind the dialog popup. Wraps Base UI's `Dialog.Backdrop`.
|
|
34
|
+
* Automatically composed by {@link Dialog.Content} — mount separately only for custom layering.
|
|
35
|
+
*/
|
|
36
|
+
declare function DialogOverlay({
|
|
37
|
+
className,
|
|
38
|
+
style,
|
|
39
|
+
...props
|
|
40
|
+
}: Dialog$1.OverlayProps): _$react_jsx_runtime0.JSX.Element;
|
|
41
|
+
/**
|
|
42
|
+
* Popup shell for the dialog. Wraps Base UI's `Dialog.Popup` inside {@link Dialog.Portal} and
|
|
43
|
+
* {@link Dialog.Overlay}, scopes the portal into `KitPortalScope`, and sets
|
|
44
|
+
* {@link DialogContentContext} so descendants can detect they are inside a kit dialog.
|
|
45
|
+
*
|
|
46
|
+
* @see {@link Dialog.ContentProps} for the `container` prop that scopes the overlay to a custom element.
|
|
47
|
+
*/
|
|
48
|
+
declare function DialogContent({
|
|
49
|
+
children,
|
|
50
|
+
className,
|
|
51
|
+
style,
|
|
52
|
+
container,
|
|
53
|
+
...props
|
|
54
|
+
}: Dialog$1.ContentProps): _$react_jsx_runtime0.JSX.Element;
|
|
55
|
+
/**
|
|
56
|
+
* Inline close affordance for header rows. Renders an `IconButton` styled close button positioned as the trailing flex
|
|
57
|
+
* child of its parent (via `margin-inline-start: auto`) and wired through `Dialog.Close` so the dialog's open state is the
|
|
58
|
+
* source of truth.
|
|
59
|
+
*
|
|
60
|
+
* Returns `null` when rendered outside a `Dialog.Content` — gateway widget headers can compose it unconditionally and it
|
|
61
|
+
* stays absent in card mode.
|
|
62
|
+
*/
|
|
63
|
+
declare function DialogCloseButton(): _$react_jsx_runtime0.JSX.Element | null;
|
|
64
|
+
/**
|
|
65
|
+
* Header row for the dialog. Renders as a styled `<div>` that lays out title and close-affordance
|
|
66
|
+
* children in a flex row. Compose with {@link Dialog.Title} and {@link Dialog.CloseButton}.
|
|
67
|
+
*/
|
|
68
|
+
declare function DialogHeader({
|
|
69
|
+
className,
|
|
70
|
+
style,
|
|
71
|
+
...props
|
|
72
|
+
}: Dialog$1.HeaderProps): _$react_jsx_runtime0.JSX.Element;
|
|
73
|
+
/**
|
|
74
|
+
* Body content slot for non-gateway dialog usage. The body wrapper is a flex column that absorbs leftover dialog height,
|
|
75
|
+
* with the embedded {@link ScrollArea} as its sole flex child. Sizing the scroll-area via flex (rather than a percentage
|
|
76
|
+
* height) makes the chain resolve reliably: the scroll-area's intrinsic content size carries back through the body so the
|
|
77
|
+
* dialog flex shrink can compress the body to its allocated space, and once the body is sized, flex distributes that space
|
|
78
|
+
* to the scroll-area instead of having its `height: 100%` fall through an indefinite parent (only `max-height` is set on
|
|
79
|
+
* `Dialog.Content`) and balloon. Padding lives on the inner wrapper inside the viewport so it scrolls with the content
|
|
80
|
+
* rather than pinning the viewport edges.
|
|
81
|
+
*/
|
|
82
|
+
declare function DialogBody({
|
|
83
|
+
className,
|
|
84
|
+
style,
|
|
85
|
+
children,
|
|
86
|
+
...props
|
|
87
|
+
}: Dialog$1.BodyProps): _$react_jsx_runtime0.JSX.Element;
|
|
88
|
+
/**
|
|
89
|
+
* Footer row for the dialog. Renders as a styled `<div>` intended for action buttons placed at the
|
|
90
|
+
* bottom of the popup.
|
|
91
|
+
*/
|
|
92
|
+
declare function DialogFooter({
|
|
93
|
+
className,
|
|
94
|
+
style,
|
|
95
|
+
...props
|
|
96
|
+
}: Dialog$1.FooterProps): _$react_jsx_runtime0.JSX.Element;
|
|
97
|
+
/**
|
|
98
|
+
* Accessible title for the dialog. Wraps Base UI's `Dialog.Title` and is automatically
|
|
99
|
+
* referenced by the dialog's `aria-labelledby` attribute.
|
|
100
|
+
*/
|
|
101
|
+
declare function DialogTitle({
|
|
102
|
+
className,
|
|
103
|
+
style,
|
|
104
|
+
...props
|
|
105
|
+
}: Dialog$1.TitleProps): _$react_jsx_runtime0.JSX.Element;
|
|
106
|
+
/**
|
|
107
|
+
* Accessible description for the dialog. Wraps Base UI's `Dialog.Description` and is automatically
|
|
108
|
+
* referenced by the dialog's `aria-describedby` attribute.
|
|
109
|
+
*/
|
|
110
|
+
declare function DialogDescription({
|
|
111
|
+
className,
|
|
112
|
+
style,
|
|
113
|
+
...props
|
|
114
|
+
}: Dialog$1.DescriptionProps): _$react_jsx_runtime0.JSX.Element;
|
|
115
|
+
declare namespace Dialog$1 {
|
|
116
|
+
type Props = Dialog.Root.Props;
|
|
117
|
+
type TriggerProps = Dialog.Trigger.Props;
|
|
118
|
+
type PortalProps = Dialog.Portal.Props;
|
|
119
|
+
type CloseProps = Dialog.Close.Props;
|
|
120
|
+
type OverlayProps = Dialog.Backdrop.Props;
|
|
121
|
+
interface ContentProps extends Dialog.Popup.Props {
|
|
122
|
+
/**
|
|
123
|
+
* Element the dialog portals into. Defaults to `document.body` (full-page overlay). Pass a
|
|
124
|
+
* transformed ancestor with `overflow: clip` — e.g. a mobile mockup frame — to scope the
|
|
125
|
+
* dialog's width, height, and backdrop to that rect.
|
|
126
|
+
*/
|
|
127
|
+
container?: HTMLElement | null;
|
|
128
|
+
}
|
|
129
|
+
type HeaderProps = ComponentProps<"div">;
|
|
130
|
+
type BodyProps = ComponentProps<"div">;
|
|
131
|
+
type FooterProps = ComponentProps<"div">;
|
|
132
|
+
type TitleProps = Dialog.Title.Props;
|
|
133
|
+
type DescriptionProps = Dialog.Description.Props;
|
|
134
|
+
const Trigger: typeof DialogTrigger;
|
|
135
|
+
const Close: typeof DialogClose;
|
|
136
|
+
const CloseButton: typeof DialogCloseButton;
|
|
137
|
+
const Portal: typeof DialogPortal;
|
|
138
|
+
const Overlay: typeof DialogOverlay;
|
|
139
|
+
const Content: typeof DialogContent;
|
|
140
|
+
const Header: typeof DialogHeader;
|
|
141
|
+
const Body: typeof DialogBody;
|
|
142
|
+
const Footer: typeof DialogFooter;
|
|
143
|
+
const Title: typeof DialogTitle;
|
|
144
|
+
const Description: typeof DialogDescription;
|
|
145
|
+
}
|
|
146
|
+
//#endregion
|
|
147
|
+
export { Dialog$1 as Dialog, useIsInsideDialogContent };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{useLingui as e}from"../../i18n/useLingui.js";import"../../../i18n/index.js";import{KitPortalScope as t}from"../../../scope/KitPortalScope.js";import"../../../scope/index.js";import{XIcon as n}from"../../icons/XIcon.js";import"../../../icons/index.js";import{joinClassNames as r}from"../../utils/joinClassNames.js";import{mergeClassName as i}from"../../utils/mergeClassName.js";import{mergeStyle as a}from"../../utils/mergeStyle.js";import{IconButton as o}from"../IconButton/IconButton.js";import"../IconButton/index.js";import{ScrollArea as s}from"../ScrollArea/ScrollArea.js";import"../ScrollArea/index.js";import{DIALOG_SLOTS as c}from"./Dialog.slots.js";import{styles as l}from"./Dialog.styles.js";import{createContext as u,use as d}from"react";import{jsx as f,jsxs as p}from"react/jsx-runtime";import*as m from"@stylexjs/stylex";import{Dialog as h}from"@base-ui/react/dialog";const g=u(!1);function _(){return d(g)}function v(e){return f(h.Root,{"data-stridge-slot":c.root,...e})}function y(e){return f(h.Trigger,{"data-stridge-slot":c.trigger,...e})}function b(e){return f(h.Portal,{"data-stridge-slot":c.portal,...e})}function x(e){return f(h.Close,{"data-stridge-slot":c.close,...e})}function S({className:e,style:t,...n}){let r=m.props(l.overlay);return f(h.Backdrop,{"data-stridge-slot":c.overlay,...n,className:i(r.className,e),style:a(r.style,t)})}function C({children:e,className:n,style:r,container:o,...s}){let u=m.props(l.content);return f(b,{container:o??void 0,children:p(t,{children:[f(S,{}),f(h.Popup,{"data-stridge-slot":c.content,...s,className:i(u.className,n),style:a(u.style,r),children:f(g.Provider,{value:!0,children:e})})]})})}function w(){let t=_(),{_:r}=e();return t?f(h.Close,{"data-stridge-slot":c.close,render:f(o,{"aria-label":r({id:`yz7wBu`,message:`Close`}),...m.props(l.closeButton),children:f(n,{"aria-hidden":!0})})}):null}function T({className:e,style:t,...n}){let i=m.props(l.header);return f(`div`,{"data-stridge-slot":c.header,...n,className:r(i.className,e),style:{...i.style,...t}})}function E({className:e,style:t,children:n,...i}){let a=m.props(l.body),o=m.props(l.bodyScrollArea),u=m.props(l.bodyScrollViewport),d=m.props(l.bodyInner);return f(`div`,{"data-stridge-slot":c.body,className:a.className,style:a.style,children:p(s,{className:o.className,style:o.style,children:[f(s.Viewport,{...i,className:r(u.className,e),style:{...u.style,...t},children:f(`div`,{className:d.className,style:d.style,children:n})}),f(s.Scrollbar,{orientation:`vertical`,children:f(s.Thumb,{})})]})})}function D({className:e,style:t,...n}){let i=m.props(l.footer);return f(`div`,{"data-stridge-slot":c.footer,...n,className:r(i.className,e),style:{...i.style,...t}})}function O({className:e,style:t,...n}){let r=m.props(l.title);return f(h.Title,{"data-stridge-slot":c.title,...n,className:i(r.className,e),style:a(r.style,t)})}function k({className:e,style:t,...n}){let r=m.props(l.description);return f(h.Description,{"data-stridge-slot":c.description,...n,className:i(r.className,e),style:a(r.style,t)})}(function(e){e.Trigger=y,e.Close=x,e.CloseButton=w,e.Portal=b,e.Overlay=S,e.Content=C,e.Header=T,e.Body=E,e.Footer=D,e.Title=O,e.Description=k})(v||={});export{v as Dialog,_ as useIsInsideDialogContent};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
//#region src/shared/ui/Dialog/Dialog.slots.d.ts
|
|
2
|
+
declare const DIALOG_SLOTS: {
|
|
3
|
+
readonly root: "dialog";
|
|
4
|
+
readonly trigger: "dialog-trigger";
|
|
5
|
+
readonly portal: "dialog-portal";
|
|
6
|
+
readonly overlay: "dialog-overlay";
|
|
7
|
+
readonly content: "dialog-content";
|
|
8
|
+
readonly close: "dialog-close";
|
|
9
|
+
readonly title: "dialog-title";
|
|
10
|
+
readonly description: "dialog-description";
|
|
11
|
+
readonly header: "dialog-header";
|
|
12
|
+
readonly body: "dialog-body";
|
|
13
|
+
readonly footer: "dialog-footer";
|
|
14
|
+
};
|
|
15
|
+
type DialogSlot = (typeof DIALOG_SLOTS)[keyof typeof DIALOG_SLOTS];
|
|
16
|
+
//#endregion
|
|
17
|
+
export { DIALOG_SLOTS, DialogSlot };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e={root:`dialog`,trigger:`dialog-trigger`,portal:`dialog-portal`,overlay:`dialog-overlay`,content:`dialog-content`,close:`dialog-close`,title:`dialog-title`,description:`dialog-description`,header:`dialog-header`,body:`dialog-body`,footer:`dialog-footer`};export{e as DIALOG_SLOTS};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e={overlay:{"Dialog__styles.overlay":`Dialog__styles.overlay`,"position-kVAEAm":`xixxii4`,"inset-kpwlN0":`x10a8y8t`,"zIndex-kY2c9j":`xg4qres`,"backgroundColor-kWkggS":`xyxldge`,"[data-open]_animationName-k6MjMx":`x12nsbnh`,"[data-open]_animationDuration-kQT8Nr":`x1e1ssmj`,"[data-open]_animationTimingFunction-kGrMy9":`x1o9hdch`,"[data-open]_animationFillMode-kmxUqy":`x1je04mk`,"[data-closed]_animationName-khiDtg":`x5l6jkr`,"[data-closed]_animationDuration-kfqKPr":`x1ej03p1`,"[data-closed]_animationTimingFunction-kBIjI2":`x7w1vdx`,"[data-closed]_animationFillMode-kd5yZw":`x1i76y9b`,"@media (prefers-reduced-motion: reduce)_animationName-kjO2d4":`x1aquc0h`,"@media (prefers-reduced-motion: reduce)_animationDuration-kkDQuc":`x1u6grsq`,$$css:`@stridge/kit:src/shared/ui/Dialog/Dialog.styles.ts:26`},content:{"Dialog__styles.content":`Dialog__styles.content`,"position-kVAEAm":`xixxii4`,"inset-kpwlN0":`x10a8y8t`,"margin-kogj98":`x1bpp3o7`,"zIndex-kY2c9j":`x51lqrf`,"display-k1xSpc":`x78zum5`,"flexDirection-kXwgrk":`xdt5ytf`,"width-kzqmXN":`xh8yej3`,"height-kZKoxP":`xg7h5cd`,"maxWidth-ks0D6T":`xvq9yp0`,"maxHeight-kskxy":`x1q5actc`,"borderWidth-kMzoRj":`xmkeg23`,"borderStyle-ksu8eU":`x1y0btm7`,"borderColor-kVAM5u":`x1aqcfi1`,"borderRadius-kaIpWk":`x1c2egtx`,"backgroundColor-kWkggS":`x3cgcfv`,"color-kMwMTN":`xzn0pkc`,"boxShadow-kGVxlE":`xa2vu2y`,"fontFamily-kMv6JI":`xlaww2m`,"outline-kI3sdo":`x1a2a7pz`,"overflow-kVQacm":`x7giv3`,"transform-k3aq6I":`x3oybdh`,"transformOrigin-k3nNDw":`x1g0ag68`,"willChange-k6sLGO":`x6my1t9`,"[data-open]_animationName-k6MjMx":`x1lhd1x2`,"[data-open]_animationDuration-kQT8Nr":`x1e1ssmj`,"[data-open]_animationTimingFunction-kGrMy9":`x1o9hdch`,"[data-open]_animationFillMode-kmxUqy":`x1je04mk`,"[data-closed]_animationName-khiDtg":`x1t6nk59`,"[data-closed]_animationDuration-kfqKPr":`x1ej03p1`,"[data-closed]_animationTimingFunction-kBIjI2":`x7w1vdx`,"[data-closed]_animationFillMode-kd5yZw":`x1i76y9b`,"@media (prefers-reduced-motion: reduce)_animationName-kjO2d4":`x1aquc0h`,"@media (prefers-reduced-motion: reduce)_animationDuration-kkDQuc":`x1u6grsq`,$$css:`@stridge/kit:src/shared/ui/Dialog/Dialog.styles.ts:66`},closeButton:{"Dialog__styles.closeButton":`Dialog__styles.closeButton`,"marginInlineStart-keTefX":`xvc5jky`,$$css:`@stridge/kit:src/shared/ui/Dialog/Dialog.styles.ts:121`},header:{"Dialog__styles.header":`Dialog__styles.header`,"display-k1xSpc":`x78zum5`,"flexDirection-kXwgrk":`x1q0g3np`,"alignItems-kGNEyG":`x6s0dn4`,"flexShrink-kmuXW":`x2lah0s`,"paddingTop-kLKAdn":`x1cnzs8`,"paddingInlineEnd-kwRFfy":`x1o5r3ls`,"paddingBottom-kGO01o":`x1hhzuzn`,"paddingInlineStart-kZCmMZ":`xz7312c`,"borderBottomWidth-kt9PQ7":`xso031l`,"borderBottomStyle-kfdmCh":`x1q0q8m5`,"borderBottomColor-kL6WhQ":`x188r5k3`,$$css:`@stridge/kit:src/shared/ui/Dialog/Dialog.styles.ts:129`},body:{"Dialog__styles.body":`Dialog__styles.body`,"display-k1xSpc":`x78zum5`,"flexDirection-kXwgrk":`xdt5ytf`,"flex-kUk6DE":`x12lumcd`,"minHeight-kAzted":`x2lwn1j`,$$css:`@stridge/kit:src/shared/ui/Dialog/Dialog.styles.ts:154`},bodyScrollArea:{"Dialog__styles.bodyScrollArea":`Dialog__styles.bodyScrollArea`,"display-k1xSpc":`x78zum5`,"flexDirection-kXwgrk":`xdt5ytf`,"flex-kUk6DE":`x12lumcd`,"minHeight-kAzted":`x2lwn1j`,$$css:`@stridge/kit:src/shared/ui/Dialog/Dialog.styles.ts:167`},bodyScrollViewport:{"Dialog__styles.bodyScrollViewport":`Dialog__styles.bodyScrollViewport`,"flex-kUk6DE":`x845mor`,"minHeight-kAzted":`x2lwn1j`,"width-kzqmXN":`xh8yej3`,"maxWidth-ks0D6T":`x193iq5w`,"height-kZKoxP":`xt7dq6l`,"maxHeight-kskxy":`xmz0i5r`,"overflowX-kXHlph":`x6ikm8r`,"overflowY-kORKVm":`x1rife3k`,$$css:`@stridge/kit:src/shared/ui/Dialog/Dialog.styles.ts:173`},bodyInner:{"Dialog__styles.bodyInner":`Dialog__styles.bodyInner`,"boxSizing-kB7OPa":`x9f619`,"width-kzqmXN":`xh8yej3`,"maxWidth-ks0D6T":`x193iq5w`,"minWidth-k7Eaqz":`xeuugli`,"paddingTop-kLKAdn":`x1h03h88`,"paddingBottom-kGO01o":`xfvigk`,"paddingInlineStart-kZCmMZ":`xz7312c`,"paddingInlineEnd-kwRFfy":`x1o5r3ls`,$$css:`@stridge/kit:src/shared/ui/Dialog/Dialog.styles.ts:189`},footer:{"Dialog__styles.footer":`Dialog__styles.footer`,"display-k1xSpc":`x78zum5`,"flexDirection-kXwgrk":`x1q0g3np`,"alignItems-kGNEyG":`x6s0dn4`,"flexShrink-kmuXW":`x2lah0s`,"borderTopWidth-kEafiO":`x178xt8z`,"borderTopStyle-kPef9Z":`x13fuv20`,"borderTopColor-kLZC3w":`x1wc9ssx`,$$css:`@stridge/kit:src/shared/ui/Dialog/Dialog.styles.ts:204`},title:{"Dialog__styles.title":`Dialog__styles.title`,"marginTop-keoZOQ":`xdj266r`,"marginBottom-k1K539":`xat24cr`,"color-kMwMTN":`xzn0pkc`,"fontFamily-kMv6JI":`xlaww2m`,"fontSize-kGuDYH":`x126f79r`,"fontWeight-k63SB2":`x1qvi77d`,"lineHeight-kLWn49":`xfh9y1j`,$$css:`@stridge/kit:src/shared/ui/Dialog/Dialog.styles.ts:213`},description:{"Dialog__styles.description":`Dialog__styles.description`,"marginTop-keoZOQ":`xdj266r`,"marginBottom-k1K539":`xat24cr`,"color-kMwMTN":`xi96bwj`,"fontFamily-kMv6JI":`xlaww2m`,"fontSize-kGuDYH":`x14qa7mu`,"lineHeight-kLWn49":`x14vj8e1`,$$css:`@stridge/kit:src/shared/ui/Dialog/Dialog.styles.ts:222`}};export{e as styles};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./Dialog.slots.js";import"./Dialog.js";
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { ComponentProps, ReactNode } from "react";
|
|
2
|
+
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
|
+
|
|
4
|
+
//#region src/shared/ui/ExternalLink/ExternalLink.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* Safe external link. Always renders `<a target="_blank" rel="noreferrer noopener">`.
|
|
7
|
+
*
|
|
8
|
+
* `href` is required. Values that don't pass `toSafeHref` (non-`http(s)` schemes, malformed URLs)
|
|
9
|
+
* are sanitized to `"#"` before reaching the rendered anchor — an unsafe URL can never reach `href`.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```tsx
|
|
13
|
+
* <ExternalLink href={url}>Terms apply</ExternalLink>
|
|
14
|
+
* <ExternalLink href={url} suffix={<ExternalLinkIcon aria-hidden />}>
|
|
15
|
+
* Read the docs
|
|
16
|
+
* </ExternalLink>
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
declare function ExternalLink({
|
|
20
|
+
href,
|
|
21
|
+
suffix,
|
|
22
|
+
className,
|
|
23
|
+
style,
|
|
24
|
+
children,
|
|
25
|
+
...props
|
|
26
|
+
}: ExternalLink.Props): _$react_jsx_runtime0.JSX.Element;
|
|
27
|
+
declare namespace ExternalLink {
|
|
28
|
+
interface Props extends Omit<ComponentProps<"a">, "href"> {
|
|
29
|
+
/**
|
|
30
|
+
* External URL. Non-`http(s)` values (`javascript:`, `data:`, malformed strings, …)
|
|
31
|
+
* are sanitized to `"#"` before reaching the anchor.
|
|
32
|
+
*/
|
|
33
|
+
href: string;
|
|
34
|
+
/**
|
|
35
|
+
* Trailing node wrapped in a 14×14 icon slot.
|
|
36
|
+
*/
|
|
37
|
+
suffix?: ReactNode;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
//#endregion
|
|
41
|
+
export { ExternalLink };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{joinClassNames as e}from"../../utils/joinClassNames.js";import{EXTERNAL_LINK_SLOTS as t}from"./ExternalLink.slots.js";import{styles as n}from"./ExternalLink.styles.js";import{toSafeHref as r}from"./toSafeHref.js";import{cloneElement as i,isValidElement as a}from"react";import{jsx as o,jsxs as s}from"react/jsx-runtime";import*as c from"@stylexjs/stylex";function l({href:i,suffix:a,className:l,style:d,children:f,...p}){let m=r(i)??`#`,h=a!=null&&a!==!1,g=c.props(n.root),_=e(g.className,l),v=c.props(n.iconSlot,n.suffixSpacing);return s(`a`,{"data-stridge-slot":t.root,...p,href:m,target:`_blank`,rel:`noreferrer noopener`,className:_,style:{...g.style,...d},children:[f,h?o(`span`,{"data-icon":`inline-end`,...v,children:u(a)}):null]})}function u(e){if(!a(e))return e;let t=c.props(n.iconSvg);return i(e,{className:[e.props.className,t.className].filter(Boolean).join(` `),style:{...e.props.style,...t.style}})}export{l as ExternalLink};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
//#region src/shared/ui/ExternalLink/ExternalLink.slots.d.ts
|
|
2
|
+
declare const EXTERNAL_LINK_SLOTS: {
|
|
3
|
+
readonly root: "external-link";
|
|
4
|
+
};
|
|
5
|
+
type ExternalLinkSlot = (typeof EXTERNAL_LINK_SLOTS)[keyof typeof EXTERNAL_LINK_SLOTS];
|
|
6
|
+
//#endregion
|
|
7
|
+
export { EXTERNAL_LINK_SLOTS, ExternalLinkSlot };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e={root:`external-link`};export{e as EXTERNAL_LINK_SLOTS};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e={root:{"ExternalLink__styles.root":`ExternalLink__styles.root`,"textDecorationLine-kMnn75":`xkrqix3`,"color-kMwMTN":`x1heor9g`,"outline-kI3sdo":`x1a2a7pz`,"borderRadius-kaIpWk":`x2zroun`,"transitionProperty-k1ekBW":`xkdsq27`,"transitionDuration-kIyJzY":`xx6bhzk`,"transitionTimingFunction-kAMwcw":`x9lcvmn`,":focus-visible_boxShadow-kEtg5x":`xqn9ezn`,$$css:`@stridge/kit:src/shared/ui/ExternalLink/ExternalLink.styles.ts:4`},iconSlot:{"ExternalLink__styles.iconSlot":`ExternalLink__styles.iconSlot`,"display-k1xSpc":`x3nfvp2`,"alignItems-kGNEyG":`x6s0dn4`,"justifyContent-kjj79g":`xl56j7k`,"verticalAlign-kXLuUW":`x1ndrt89`,"width-kzqmXN":`x6jxa94`,"height-kZKoxP":`x1v9usgg`,"flexShrink-kmuXW":`x2lah0s`,"lineHeight-kLWn49":`xo5v014`,"textDecorationLine-kMnn75":`xkrqix3`,$$css:`@stridge/kit:src/shared/ui/ExternalLink/ExternalLink.styles.ts:16`},suffixSpacing:{"ExternalLink__styles.suffixSpacing":`ExternalLink__styles.suffixSpacing`,"marginInlineStart-keTefX":`x1ssodb4`,$$css:`@stridge/kit:src/shared/ui/ExternalLink/ExternalLink.styles.ts:27`},iconSvg:{"ExternalLink__styles.iconSvg":`ExternalLink__styles.iconSvg`,"display-k1xSpc":`x78zum5`,"alignItems-kGNEyG":`x6s0dn4`,"justifyContent-kjj79g":`xl56j7k`,"width-kzqmXN":`xh8yej3`,"height-kZKoxP":`x5yr21d`,"flexShrink-kmuXW":`x2lah0s`,"lineHeight-kLWn49":`xo5v014`,"color-kMwMTN":`x15rks2t`,"strokeWidth-kfJifR":`xhr4kjn`,"textDecorationLine-kMnn75":`xkrqix3`,$$css:`@stridge/kit:src/shared/ui/ExternalLink/ExternalLink.styles.ts:30`}};export{e as styles};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./ExternalLink.slots.js";import"./ExternalLink.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function e(e){if(typeof e!=`string`)return null;let t=e.trim();if(!t)return null;try{let e=new URL(t);if(e.protocol===`http:`||e.protocol===`https:`)return t}catch{}return null}export{e as toSafeHref};
|
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
import { ComponentProps, ReactNode } from "react";
|
|
2
|
+
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
|
+
|
|
4
|
+
//#region src/shared/ui/Field/Field.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* Layout orientation for a single `Field`.
|
|
7
|
+
*
|
|
8
|
+
* - `vertical` (default) — label/control/description/error stacked in a column.
|
|
9
|
+
* - `horizontal` — label and control side-by-side; use `Field.Content` to group helpers beside
|
|
10
|
+
* the control (switch rows, choice cards).
|
|
11
|
+
* - `responsive` — vertical below the `field-group` container's 32rem breakpoint, horizontal
|
|
12
|
+
* above. Requires the Field to live inside a `Field.Group`.
|
|
13
|
+
*/
|
|
14
|
+
type FieldOrientation = "vertical" | "horizontal" | "responsive";
|
|
15
|
+
/**
|
|
16
|
+
* Labelling + helper-text shell for a single form control. Pure layout — no input chrome, no
|
|
17
|
+
* validation, no React context. Chrome lives in `InputGroup`; validation state is driven by
|
|
18
|
+
* `data-invalid` on the Field root and `aria-invalid` on the inner control.
|
|
19
|
+
*
|
|
20
|
+
* Canonical vertical order: `Field.Label` → control → `Field.Description` → `Field.Error`. For
|
|
21
|
+
* horizontal layouts wrap helpers in `<Field.Content>` beside the control. Wrap grouped Fields in
|
|
22
|
+
* `<Field.Set>` (fieldset + legend) or `<Field.Group>` (stack + responsive-orientation container).
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* ```tsx
|
|
26
|
+
* <Field data-invalid={hasError}>
|
|
27
|
+
* <Field.Label htmlFor="email">Email</Field.Label>
|
|
28
|
+
* <InputGroup>
|
|
29
|
+
* <InputGroup.Input id="email" type="email" aria-invalid={hasError} />
|
|
30
|
+
* </InputGroup>
|
|
31
|
+
* <Field.Description>We'll only use this for important updates.</Field.Description>
|
|
32
|
+
* {hasError ? <Field.Error>Enter a valid email address.</Field.Error> : null}
|
|
33
|
+
* </Field>
|
|
34
|
+
* ```
|
|
35
|
+
*/
|
|
36
|
+
declare function Field({
|
|
37
|
+
orientation,
|
|
38
|
+
className,
|
|
39
|
+
style,
|
|
40
|
+
...props
|
|
41
|
+
}: Field.Props): _$react_jsx_runtime0.JSX.Element;
|
|
42
|
+
/**
|
|
43
|
+
* Vertical stack of related Fields. Establishes the `field-group` named container used by
|
|
44
|
+
* `orientation="responsive"` and supplies inter-Field spacing.
|
|
45
|
+
*/
|
|
46
|
+
declare function FieldGroup({
|
|
47
|
+
className,
|
|
48
|
+
style,
|
|
49
|
+
...props
|
|
50
|
+
}: Field.GroupProps): _$react_jsx_runtime0.JSX.Element;
|
|
51
|
+
/**
|
|
52
|
+
* Semantic grouping rendered as `<fieldset>` + `<legend>`. Use when the group needs a name a
|
|
53
|
+
* screen-reader announces alongside each control (e.g. "Address Information"). Pair with
|
|
54
|
+
* `Field.Legend` and a `Field.Group` for layout.
|
|
55
|
+
*/
|
|
56
|
+
declare function FieldSet({
|
|
57
|
+
className,
|
|
58
|
+
style,
|
|
59
|
+
...props
|
|
60
|
+
}: Field.SetProps): _$react_jsx_runtime0.JSX.Element;
|
|
61
|
+
/**
|
|
62
|
+
* Legend for a `Field.Set`. `variant="legend"` (default) is heavier semibold suited to section
|
|
63
|
+
* headings; `variant="label"` is the lighter weight used above tight option groups (checkbox /
|
|
64
|
+
* radio arrays).
|
|
65
|
+
*/
|
|
66
|
+
declare function FieldLegend({
|
|
67
|
+
variant,
|
|
68
|
+
className,
|
|
69
|
+
style,
|
|
70
|
+
...props
|
|
71
|
+
}: Field.LegendProps): _$react_jsx_runtime0.JSX.Element;
|
|
72
|
+
/**
|
|
73
|
+
* Accessible label for a Field's control. Use `htmlFor` to associate with the control's `id`; the
|
|
74
|
+
* kit does not auto-wire this (every consumer drives explicit id-linking, matching shadcn).
|
|
75
|
+
*/
|
|
76
|
+
declare function FieldLabel({
|
|
77
|
+
className,
|
|
78
|
+
style,
|
|
79
|
+
...props
|
|
80
|
+
}: Field.LabelProps): _$react_jsx_runtime0.JSX.Element;
|
|
81
|
+
/**
|
|
82
|
+
* Label-styled non-`<label>` heading for rows where the visual heading is decorative rather than
|
|
83
|
+
* form-associated (slider titles, choice-card titles). Use `Field.Label` when the heading should
|
|
84
|
+
* drive a control's accessible name.
|
|
85
|
+
*/
|
|
86
|
+
declare function FieldTitle({
|
|
87
|
+
className,
|
|
88
|
+
style,
|
|
89
|
+
...props
|
|
90
|
+
}: Field.TitleProps): _$react_jsx_runtime0.JSX.Element;
|
|
91
|
+
/**
|
|
92
|
+
* Flex column grouping label + description + error in horizontal Fields, in the column adjacent to
|
|
93
|
+
* the control (switch row, choice card, responsive Select).
|
|
94
|
+
*/
|
|
95
|
+
declare function FieldContent({
|
|
96
|
+
className,
|
|
97
|
+
style,
|
|
98
|
+
...props
|
|
99
|
+
}: Field.ContentProps): _$react_jsx_runtime0.JSX.Element;
|
|
100
|
+
/**
|
|
101
|
+
* Helper text rendered below the control. Color stays muted regardless of `data-invalid` —
|
|
102
|
+
* description and error are independent siblings; the description never disappears when an error
|
|
103
|
+
* fires.
|
|
104
|
+
*/
|
|
105
|
+
declare function FieldDescription({
|
|
106
|
+
className,
|
|
107
|
+
style,
|
|
108
|
+
...props
|
|
109
|
+
}: Field.DescriptionProps): _$react_jsx_runtime0.JSX.Element;
|
|
110
|
+
/**
|
|
111
|
+
* Validation error message. Accepts `children` (direct string) or an `errors` array (Standard
|
|
112
|
+
* Schema / form-library shape). Renders `null` when neither produces content — safe to mount
|
|
113
|
+
* permanently. Multiple distinct messages render as a deduplicated `<ul>`; a single message
|
|
114
|
+
* renders as bare text.
|
|
115
|
+
*/
|
|
116
|
+
declare function FieldError({
|
|
117
|
+
children,
|
|
118
|
+
errors,
|
|
119
|
+
className,
|
|
120
|
+
style,
|
|
121
|
+
...props
|
|
122
|
+
}: Field.ErrorProps): _$react_jsx_runtime0.JSX.Element | null;
|
|
123
|
+
/**
|
|
124
|
+
* Visual divider between Fields inside a `Field.Group`. Optionally accepts centred text content
|
|
125
|
+
* that bridges the rule ("Or continue with").
|
|
126
|
+
*/
|
|
127
|
+
declare function FieldSeparator({
|
|
128
|
+
children,
|
|
129
|
+
className,
|
|
130
|
+
style,
|
|
131
|
+
...props
|
|
132
|
+
}: Field.SeparatorProps): _$react_jsx_runtime0.JSX.Element;
|
|
133
|
+
declare namespace Field {
|
|
134
|
+
interface Props extends ComponentProps<"div"> {
|
|
135
|
+
/**
|
|
136
|
+
* Layout orientation — `vertical` (default) stacks elements in a column; `horizontal`
|
|
137
|
+
* places label and control on the inline axis (use with `Field.Content`); `responsive`
|
|
138
|
+
* flips to horizontal at the `field-group` container's 32rem breakpoint.
|
|
139
|
+
*
|
|
140
|
+
* @default "vertical"
|
|
141
|
+
*/
|
|
142
|
+
orientation?: FieldOrientation;
|
|
143
|
+
}
|
|
144
|
+
type GroupProps = ComponentProps<"div">;
|
|
145
|
+
type SetProps = ComponentProps<"fieldset">;
|
|
146
|
+
type ContentProps = ComponentProps<"div">;
|
|
147
|
+
type LabelProps = ComponentProps<"label">;
|
|
148
|
+
type TitleProps = ComponentProps<"div">;
|
|
149
|
+
type DescriptionProps = ComponentProps<"p">;
|
|
150
|
+
type SeparatorProps = ComponentProps<"div">;
|
|
151
|
+
interface LegendProps extends ComponentProps<"legend"> {
|
|
152
|
+
/**
|
|
153
|
+
* Typography variant. `legend` (default) is heavier semibold for section headings;
|
|
154
|
+
* `label` is the lighter weight used over checkbox / radio arrays.
|
|
155
|
+
*
|
|
156
|
+
* @default "legend"
|
|
157
|
+
*/
|
|
158
|
+
variant?: "legend" | "label";
|
|
159
|
+
}
|
|
160
|
+
interface ErrorProps extends Omit<ComponentProps<"div">, "children"> {
|
|
161
|
+
/**
|
|
162
|
+
* Inline error message. When provided, takes priority over `errors`.
|
|
163
|
+
*/
|
|
164
|
+
children?: ReactNode;
|
|
165
|
+
/**
|
|
166
|
+
* Validation errors from a Standard-Schema-compatible source (Zod, Valibot, ArkType,
|
|
167
|
+
* react-hook-form, TanStack Form). Deduplicated by `message`; multiple distinct messages
|
|
168
|
+
* render as a list; renders `null` when empty.
|
|
169
|
+
*/
|
|
170
|
+
errors?: Array<{
|
|
171
|
+
message?: string;
|
|
172
|
+
} | undefined | null>;
|
|
173
|
+
}
|
|
174
|
+
const Group: typeof FieldGroup;
|
|
175
|
+
const Set: typeof FieldSet;
|
|
176
|
+
const Legend: typeof FieldLegend;
|
|
177
|
+
const Label: typeof FieldLabel;
|
|
178
|
+
const Title: typeof FieldTitle;
|
|
179
|
+
const Content: typeof FieldContent;
|
|
180
|
+
const Description: typeof FieldDescription;
|
|
181
|
+
const Error: typeof FieldError;
|
|
182
|
+
const Separator: typeof FieldSeparator;
|
|
183
|
+
}
|
|
184
|
+
//#endregion
|
|
185
|
+
export { Field, FieldOrientation };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{joinClassNames as e}from"../../utils/joinClassNames.js";import{FIELD_SLOTS as t}from"./Field.slots.js";import{legendStyles as n,rootStyles as r,styles as i}from"./Field.styles.js";import{jsx as a}from"react/jsx-runtime";import*as o from"@stylexjs/stylex";function s({orientation:n=`vertical`,className:i,style:s,...c}){let l=o.props(r[n]);return a(`div`,{role:`group`,"data-stridge-slot":t.root,"data-orientation":n,...c,className:e(l.className,i),style:{...l.style,...s}})}function c({className:n,style:r,...s}){let c=o.props(i.group);return a(`div`,{"data-stridge-slot":t.group,...s,className:e(c.className,n),style:{...c.style,...r}})}function l({className:n,style:r,...s}){let c=o.props(i.set);return a(`fieldset`,{"data-stridge-slot":t.set,...s,className:e(c.className,n),style:{...c.style,...r}})}function u({variant:r=`legend`,className:i,style:s,...c}){let l=o.props(r===`legend`?n.legend:n.label);return a(`legend`,{"data-stridge-slot":t.legend,"data-variant":r,...c,className:e(l.className,i),style:{...l.style,...s}})}function d({className:n,style:r,...s}){let c=o.props(i.label);return a(`label`,{"data-stridge-slot":t.label,...s,className:e(c.className,n),style:{...c.style,...r}})}function f({className:n,style:r,...s}){let c=o.props(i.label);return a(`div`,{"data-stridge-slot":t.title,...s,className:e(c.className,n),style:{...c.style,...r}})}function p({className:n,style:r,...s}){let c=o.props(i.content);return a(`div`,{"data-stridge-slot":t.content,...s,className:e(c.className,n),style:{...c.style,...r}})}function m({className:n,style:r,...s}){let c=o.props(i.description);return a(`p`,{"data-stridge-slot":t.description,...s,className:e(c.className,n),style:{...c.style,...r}})}function h({children:n,errors:r,className:s,style:c,...l}){let u=_(n,r);if(u==null)return null;let d=o.props(i.error);if(typeof u==`string`)return a(`div`,{role:`alert`,"data-stridge-slot":t.error,...l,className:e(d.className,s),style:{...d.style,...c},children:u});let f=o.props(i.errorList);return a(`div`,{role:`alert`,"data-stridge-slot":t.error,...l,className:e(d.className,s),style:{...d.style,...c},children:a(`ul`,{className:f.className,style:f.style,children:u.map(e=>a(`li`,{children:e},e))})})}function g({children:n,className:r,style:s,...c}){let l=o.props(i.separator);return a(`div`,{"data-stridge-slot":t.separator,"data-content":n?``:void 0,...c,className:e(l.className,r),style:{...l.style,...s},children:n})}function _(e,t){if(e!=null&&e!==!1&&e!==``)return typeof e==`string`?e:null;if(t==null||t.length===0)return null;let n=new Map;for(let e of t){let t=e?.message;typeof t==`string`&&t.length>0&&n.set(t,!0)}return n.size===0?null:n.size===1?n.keys().next().value??null:Array.from(n.keys())}(function(e){e.Group=c,e.Set=l,e.Legend=u,e.Label=d,e.Title=f,e.Content=p,e.Description=m,e.Error=h,e.Separator=g})(s||={});export{s as Field};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
//#region src/shared/ui/Field/Field.slots.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* Stable `data-stridge-slot` identifiers for every part of the `Field` compound. Hosts that key
|
|
4
|
+
* off these can target slots from CSS or analytics without depending on rendered class names or DOM
|
|
5
|
+
* positions.
|
|
6
|
+
*/
|
|
7
|
+
declare const FIELD_SLOTS: {
|
|
8
|
+
readonly root: "field";
|
|
9
|
+
readonly group: "field-group";
|
|
10
|
+
readonly set: "field-set";
|
|
11
|
+
readonly legend: "field-legend";
|
|
12
|
+
readonly label: "field-label";
|
|
13
|
+
readonly title: "field-title";
|
|
14
|
+
readonly content: "field-content";
|
|
15
|
+
readonly description: "field-description";
|
|
16
|
+
readonly error: "field-error";
|
|
17
|
+
readonly separator: "field-separator";
|
|
18
|
+
};
|
|
19
|
+
type FieldSlot = (typeof FIELD_SLOTS)[keyof typeof FIELD_SLOTS];
|
|
20
|
+
//#endregion
|
|
21
|
+
export { FIELD_SLOTS, FieldSlot };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e={root:`field`,group:`field-group`,set:`field-set`,legend:`field-legend`,label:`field-label`,title:`field-title`,content:`field-content`,description:`field-description`,error:`field-error`,separator:`field-separator`};export{e as FIELD_SLOTS};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e={vertical:{"Field__rootStyles.vertical":`Field__rootStyles.vertical`,"display-k1xSpc":`x78zum5`,"flexDirection-kXwgrk":`xdt5ytf`,"gap-kOIVth":`x1a6yh9e`,"color-kMwMTN":`xzn0pkc`,'[data-invalid="true"]_color-knoFjF':`x1977m2e`,$$css:`@stridge/kit:src/shared/ui/Field/Field.styles.ts:11`},horizontal:{"Field__rootStyles.horizontal":`Field__rootStyles.horizontal`,"display-k1xSpc":`x78zum5`,"flexDirection-kXwgrk":`x1q0g3np`,"alignItems-kGNEyG":`x6s0dn4`,"gap-kOIVth":`xsfdumc`,"color-kMwMTN":`xzn0pkc`,'[data-invalid="true"]_color-knoFjF':`x1977m2e`,$$css:`@stridge/kit:src/shared/ui/Field/Field.styles.ts:20`},responsive:{"Field__rootStyles.responsive":`Field__rootStyles.responsive`,"display-k1xSpc":`x78zum5`,"flexDirection-kXwgrk":`xdt5ytf`,"gap-kOIVth":`x1a6yh9e`,"color-kMwMTN":`xzn0pkc`,'[data-invalid="true"]_color-knoFjF':`x1977m2e`,"@container field-group (min-width: 32rem)_flexDirection-kaGw1i":`x1ssvtaf`,"@container field-group (min-width: 32rem)_alignItems-kPaFBX":`xbfyvo5`,"@container field-group (min-width: 32rem)_gap-kZ358G":`x114hih5`,$$css:`@stridge/kit:src/shared/ui/Field/Field.styles.ts:30`}},t={legend:{"Field__legendStyles.legend":`Field__legendStyles.legend`,"fontSize-kGuDYH":`x14qa7mu`,"lineHeight-kLWn49":`x14vj8e1`,"fontWeight-k63SB2":`x1qvi77d`,"color-kMwMTN":`xzn0pkc`,"margin-kogj98":`x1ghz6dp`,"padding-kmVPX3":`x1717udv`,$$css:`@stridge/kit:src/shared/ui/Field/Field.styles.ts:46`},label:{"Field__legendStyles.label":`Field__legendStyles.label`,"fontSize-kGuDYH":`x1oae1zf`,"lineHeight-kLWn49":`x14vj8e1`,"fontWeight-k63SB2":`xi0sa8g`,"color-kMwMTN":`xzn0pkc`,"margin-kogj98":`x1ghz6dp`,"padding-kmVPX3":`x1717udv`,$$css:`@stridge/kit:src/shared/ui/Field/Field.styles.ts:54`}},n={group:{"Field__styles.group":`Field__styles.group`,"display-k1xSpc":`x78zum5`,"flexDirection-kXwgrk":`xdt5ytf`,"gap-kOIVth":`xjb6dxy`,"containerType-k9g6sI":`x12h1iku`,"containerName-kanfag":`x1e3ku4n`,$$css:`@stridge/kit:src/shared/ui/Field/Field.styles.ts:68`},set:{"Field__styles.set":`Field__styles.set`,"display-k1xSpc":`x78zum5`,"flexDirection-kXwgrk":`xdt5ytf`,"gap-kOIVth":`xsfdumc`,"margin-kogj98":`x1ghz6dp`,"padding-kmVPX3":`x1717udv`,"borderWidth-kMzoRj":`xc342km`,"borderStyle-ksu8eU":`xng3xce`,"minWidth-k7Eaqz":`xeuugli`,$$css:`@stridge/kit:src/shared/ui/Field/Field.styles.ts:79`},label:{"Field__styles.label":`Field__styles.label`,"display-k1xSpc":`x78zum5`,"alignItems-kGNEyG":`x6s0dn4`,"gap-kOIVth":`x1a6yh9e`,"width-kzqmXN":`xeq5yr9`,"fontSize-kGuDYH":`x14qa7mu`,"lineHeight-kLWn49":`x14vj8e1`,"fontWeight-k63SB2":`xi0sa8g`,"margin-kogj98":`x1ghz6dp`,"userSelect-kfSwDN":`x87ps6o`,$$css:`@stridge/kit:src/shared/ui/Field/Field.styles.ts:96`},description:{"Field__styles.description":`Field__styles.description`,"fontSize-kGuDYH":`x1oae1zf`,"lineHeight-kLWn49":`x14vj8e1`,"fontWeight-k63SB2":`xxjjie5`,"color-kMwMTN":`xi96bwj`,"margin-kogj98":`x1ghz6dp`,$$css:`@stridge/kit:src/shared/ui/Field/Field.styles.ts:107`},error:{"Field__styles.error":`Field__styles.error`,"fontSize-kGuDYH":`x1oae1zf`,"lineHeight-kLWn49":`x14vj8e1`,"fontWeight-k63SB2":`xi0sa8g`,"color-kMwMTN":`xreodjm`,"margin-kogj98":`x1ghz6dp`,"padding-kmVPX3":`x1717udv`,$$css:`@stridge/kit:src/shared/ui/Field/Field.styles.ts:118`},errorList:{"Field__styles.errorList":`Field__styles.errorList`,"margin-kogj98":`x1ghz6dp`,"padding-kmVPX3":`x1717udv`,"listStylePosition-kpqbRz":`x1cy9i3i`,"listStyleType-kH6xsr":`xtaz4m5`,$$css:`@stridge/kit:src/shared/ui/Field/Field.styles.ts:126`},content:{"Field__styles.content":`Field__styles.content`,"display-k1xSpc":`x78zum5`,"flexDirection-kXwgrk":`xdt5ytf`,"gap-kOIVth":`x1r05nms`,"flex-kUk6DE":`x98rzlu`,"minWidth-k7Eaqz":`xeuugli`,$$css:`@stridge/kit:src/shared/ui/Field/Field.styles.ts:136`},separator:{"Field__styles.separator":`Field__styles.separator`,"display-k1xSpc":`x78zum5`,"alignItems-kGNEyG":`x6s0dn4`,"gap-kOIVth":`x2blr79`,"width-kzqmXN":`xh8yej3`,"fontSize-kGuDYH":`x1oae1zf`,"color-kMwMTN":`xi96bwj`,"userSelect-kfSwDN":`x87ps6o`,"::before_content-kgeoSG":`x10tli2e`,"::before_flex-kLB3ol":`xl5i350`,"::before_height-kgzTxl":`xy80zi5`,"::before_backgroundColor-kLkRvE":`xbntbuv`,"::after_content-k5JduY":`x100rkj9`,"::after_flex-krxQOp":`xkbqsiu`,"::after_height-k4zj60":`xcock1l`,"::after_backgroundColor-ks3ayO":`xki0kx`,$$css:`@stridge/kit:src/shared/ui/Field/Field.styles.ts:147`}};export{t as legendStyles,e as rootStyles,n as styles};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./Field.slots.js";import"./Field.js";
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { Button, ButtonSize, ButtonVariant } from "../Button/Button.js";
|
|
2
|
+
import { ReactNode } from "react";
|
|
3
|
+
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
4
|
+
|
|
5
|
+
//#region src/shared/ui/IconButton/IconButton.d.ts
|
|
6
|
+
type IconButtonSize = Extract<ButtonSize, "icon" | "icon-sm">;
|
|
7
|
+
/**
|
|
8
|
+
* Icon-only button. Defaults to `size="icon-sm"` (28×28) with the `secondary` surface.
|
|
9
|
+
*
|
|
10
|
+
* When `onClick` is omitted, renders as an inert placeholder (focusable, but click is a no-op and cursor stays
|
|
11
|
+
* default).
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```tsx
|
|
15
|
+
* <IconButton aria-label="Close" onClick={onClose}>
|
|
16
|
+
* <XIcon />
|
|
17
|
+
* </IconButton>
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
declare function IconButton({
|
|
21
|
+
children,
|
|
22
|
+
onClick,
|
|
23
|
+
size,
|
|
24
|
+
variant,
|
|
25
|
+
...props
|
|
26
|
+
}: IconButton.Props): _$react_jsx_runtime0.JSX.Element;
|
|
27
|
+
declare namespace IconButton {
|
|
28
|
+
type Props = Omit<Button.Props, "size" | "variant" | "prefix" | "suffix" | "isLoading" | "children"> & {
|
|
29
|
+
/**
|
|
30
|
+
* Icon element. Sized automatically; pass the raw icon without setting `width` / `height`.
|
|
31
|
+
*/
|
|
32
|
+
children: ReactNode;
|
|
33
|
+
/**
|
|
34
|
+
* Square button dimensions. Defaults to `"icon-sm"` (28×28).
|
|
35
|
+
*/
|
|
36
|
+
size?: IconButtonSize;
|
|
37
|
+
/**
|
|
38
|
+
* Visual treatment. Defaults to `"secondary"`.
|
|
39
|
+
*/
|
|
40
|
+
variant?: ButtonVariant;
|
|
41
|
+
/**
|
|
42
|
+
* Click handler. Omit for an inert visual placeholder.
|
|
43
|
+
*/
|
|
44
|
+
onClick?: Button.Props["onClick"];
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
//#endregion
|
|
48
|
+
export { IconButton, IconButtonSize };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{Button as e}from"../Button/Button.js";import"../Button/index.js";import{ICON_BUTTON_SLOTS as t}from"./IconButton.slots.js";import{styles as n}from"./IconButton.styles.js";import{jsx as r}from"react/jsx-runtime";import*as i from"@stylexjs/stylex";function a({children:a,onClick:o,size:s=`icon-sm`,variant:c=`secondary`,...l}){let u=typeof o==`function`,d=i.props(u?n.interactive:n.inert);return r(e,{"data-stridge-slot":t.root,size:s,variant:c,onClick:u?o:void 0,prefix:a,className:d.className,style:d.style,...l})}export{a as IconButton};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
//#region src/shared/ui/IconButton/IconButton.slots.d.ts
|
|
2
|
+
declare const ICON_BUTTON_SLOTS: {
|
|
3
|
+
readonly root: "icon-button";
|
|
4
|
+
};
|
|
5
|
+
type IconButtonSlot = (typeof ICON_BUTTON_SLOTS)[keyof typeof ICON_BUTTON_SLOTS];
|
|
6
|
+
//#endregion
|
|
7
|
+
export { ICON_BUTTON_SLOTS, IconButtonSlot };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e={root:`icon-button`};export{e as ICON_BUTTON_SLOTS};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e={interactive:{"IconButton__styles.interactive":`IconButton__styles.interactive`,"cursor-kkrTdU":`x1ypdohk`,$$css:`@stridge/kit:src/shared/ui/IconButton/IconButton.styles.ts:3`},inert:{"IconButton__styles.inert":`IconButton__styles.inert`,"cursor-kkrTdU":`xt0e3qv`,$$css:`@stridge/kit:src/shared/ui/IconButton/IconButton.styles.ts:6`}};export{e as styles};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./IconButton.slots.js";import"./IconButton.js";
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { ImageGroupProps, ImageOverlayProps, ImageProps } from "./types.js";
|
|
2
|
+
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
|
+
|
|
4
|
+
//#region src/shared/ui/Image/Image.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* See {@link ImageProps}.
|
|
7
|
+
*/
|
|
8
|
+
declare function Image({
|
|
9
|
+
src,
|
|
10
|
+
alt,
|
|
11
|
+
size,
|
|
12
|
+
letter,
|
|
13
|
+
shape,
|
|
14
|
+
fallbackDelay,
|
|
15
|
+
className,
|
|
16
|
+
style,
|
|
17
|
+
children,
|
|
18
|
+
...rest
|
|
19
|
+
}: ImageProps): _$react_jsx_runtime0.JSX.Element;
|
|
20
|
+
declare namespace Image {
|
|
21
|
+
var Overlay: ({
|
|
22
|
+
src,
|
|
23
|
+
alt,
|
|
24
|
+
size,
|
|
25
|
+
letter
|
|
26
|
+
}: ImageOverlayProps) => _$react_jsx_runtime0.JSX.Element;
|
|
27
|
+
var Group: ({
|
|
28
|
+
max,
|
|
29
|
+
size,
|
|
30
|
+
overflow,
|
|
31
|
+
className,
|
|
32
|
+
style,
|
|
33
|
+
children,
|
|
34
|
+
...rest
|
|
35
|
+
}: ImageGroupProps) => _$react_jsx_runtime0.JSX.Element;
|
|
36
|
+
}
|
|
37
|
+
declare namespace Image {
|
|
38
|
+
type Props = ImageProps;
|
|
39
|
+
type OverlayProps = ImageOverlayProps;
|
|
40
|
+
type GroupProps = ImageGroupProps;
|
|
41
|
+
}
|
|
42
|
+
//#endregion
|
|
43
|
+
export { Image };
|