@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,243 @@
|
|
|
1
|
+
import { SelectVariant } from "./Select.context.js";
|
|
2
|
+
import { ComponentProps, ReactNode } from "react";
|
|
3
|
+
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
4
|
+
import { Select } from "@base-ui/react/select";
|
|
5
|
+
|
|
6
|
+
//#region src/shared/ui/Select/Select.d.ts
|
|
7
|
+
/**
|
|
8
|
+
* Root of the select compound. Wraps Base UI's `Select.Root` and provides the shared
|
|
9
|
+
* {@link SelectContext} so child parts (`Select.Trigger`, `Select.Content`, `Select.Item`) can
|
|
10
|
+
* read the active `variant` without prop-drilling.
|
|
11
|
+
*
|
|
12
|
+
* @template Value The type of each selectable option value.
|
|
13
|
+
* @template Multiple Whether multi-select is enabled. Defaults to `false`.
|
|
14
|
+
*/
|
|
15
|
+
declare function Select$1<Value, Multiple extends boolean | undefined = false>({
|
|
16
|
+
variant,
|
|
17
|
+
...props
|
|
18
|
+
}: Select$1.Props<Value, Multiple>): _$react_jsx_runtime0.JSX.Element;
|
|
19
|
+
/**
|
|
20
|
+
* Groups a set of `Select.Item` and `Select.Label` elements for accessibility and layout.
|
|
21
|
+
* Wraps Base UI's `Select.Group`.
|
|
22
|
+
*/
|
|
23
|
+
declare function SelectGroup(props: Select$1.GroupProps): _$react_jsx_runtime0.JSX.Element;
|
|
24
|
+
/**
|
|
25
|
+
* Displays the currently selected value inside `Select.Trigger`. When `placeholder` is provided
|
|
26
|
+
* and no value is selected, renders the placeholder text instead. Wraps Base UI's `Select.Value`.
|
|
27
|
+
*/
|
|
28
|
+
declare function SelectValue({
|
|
29
|
+
placeholder,
|
|
30
|
+
className,
|
|
31
|
+
style,
|
|
32
|
+
...props
|
|
33
|
+
}: Select$1.ValueProps): _$react_jsx_runtime0.JSX.Element;
|
|
34
|
+
/**
|
|
35
|
+
* Button that opens the select dropdown. Reads `variant` from {@link SelectContext} to apply
|
|
36
|
+
* `outline` or `tile` chrome. Wraps Base UI's `Select.Trigger`.
|
|
37
|
+
*/
|
|
38
|
+
declare function SelectTrigger({
|
|
39
|
+
children,
|
|
40
|
+
className,
|
|
41
|
+
style,
|
|
42
|
+
...props
|
|
43
|
+
}: Select$1.TriggerProps): _$react_jsx_runtime0.JSX.Element;
|
|
44
|
+
/**
|
|
45
|
+
* Static, non-interactive trigger surface — same chrome as `Select.Trigger`
|
|
46
|
+
* but without dropdown behaviour. Useful when a row should look like a
|
|
47
|
+
* Select but the host has no change handler wired (read-only display).
|
|
48
|
+
*
|
|
49
|
+
* Pass `variant` directly; this part isn't a child of `<Select>`, so it
|
|
50
|
+
* can't read context.
|
|
51
|
+
*/
|
|
52
|
+
declare function SelectStaticTrigger({
|
|
53
|
+
variant,
|
|
54
|
+
children,
|
|
55
|
+
className,
|
|
56
|
+
style,
|
|
57
|
+
...props
|
|
58
|
+
}: Select$1.StaticTriggerProps): _$react_jsx_runtime0.JSX.Element;
|
|
59
|
+
/**
|
|
60
|
+
* Portals its children outside the current DOM subtree. Wraps Base UI's `Select.Portal`.
|
|
61
|
+
* Automatically composed by {@link Select.Content} — mount separately only for custom layering.
|
|
62
|
+
*/
|
|
63
|
+
declare function SelectPortal(props: Select$1.PortalProps): _$react_jsx_runtime0.JSX.Element;
|
|
64
|
+
/**
|
|
65
|
+
* Positions the select popup relative to its trigger. Wraps Base UI's `Select.Positioner`.
|
|
66
|
+
* Automatically composed by {@link Select.Content}.
|
|
67
|
+
*/
|
|
68
|
+
declare function SelectPositioner(props: Select$1.PositionerProps): _$react_jsx_runtime0.JSX.Element;
|
|
69
|
+
/**
|
|
70
|
+
* Dropdown popup containing the list of items. Composes {@link Select.Portal}, `KitPortalScope`,
|
|
71
|
+
* and {@link Select.Positioner} with a {@link ScrollArea} viewport so callers only need this part.
|
|
72
|
+
*
|
|
73
|
+
* Defaults: `position="popper"`, `side="bottom"`, `align="center"`, `sideOffset=4`,
|
|
74
|
+
* `scrollArrows=true`.
|
|
75
|
+
*/
|
|
76
|
+
declare function SelectContent({
|
|
77
|
+
position,
|
|
78
|
+
side,
|
|
79
|
+
align,
|
|
80
|
+
sideOffset,
|
|
81
|
+
scrollArrows,
|
|
82
|
+
className,
|
|
83
|
+
style,
|
|
84
|
+
children,
|
|
85
|
+
...props
|
|
86
|
+
}: Select$1.PopupProps): _$react_jsx_runtime0.JSX.Element;
|
|
87
|
+
/**
|
|
88
|
+
* Accessible label for a `Select.Group`. Wraps Base UI's `Select.GroupLabel` and is automatically
|
|
89
|
+
* associated with its sibling group.
|
|
90
|
+
*/
|
|
91
|
+
declare function SelectLabel({
|
|
92
|
+
className,
|
|
93
|
+
style,
|
|
94
|
+
...props
|
|
95
|
+
}: Select$1.LabelProps): _$react_jsx_runtime0.JSX.Element;
|
|
96
|
+
/**
|
|
97
|
+
* Selectable option inside `Select.Content`. Reads `variant` from {@link SelectContext} to apply
|
|
98
|
+
* `outline` or `tile` item chrome. Wraps Base UI's `Select.Item`.
|
|
99
|
+
*/
|
|
100
|
+
declare function SelectItem({
|
|
101
|
+
children,
|
|
102
|
+
className,
|
|
103
|
+
style,
|
|
104
|
+
...props
|
|
105
|
+
}: Select$1.ItemProps): _$react_jsx_runtime0.JSX.Element;
|
|
106
|
+
/**
|
|
107
|
+
* Non-interactive sibling of {@link SelectItem} for catalog rows that should
|
|
108
|
+
* stay visible but unselectable. Rendered as a plain `<div>` outside Base UI's
|
|
109
|
+
* composite list — arrow keys / typeahead / click skip it entirely — but
|
|
110
|
+
* `role="option"` + `aria-disabled="true"` keep the listbox a11y intact for
|
|
111
|
+
* screen readers. Visual treatment matches the regular item (same chrome,
|
|
112
|
+
* dimmed). Use this from compound widgets when the underlying item is in the
|
|
113
|
+
* catalog but the merchant hasn't enabled it for this flow.
|
|
114
|
+
*/
|
|
115
|
+
declare function SelectDisabledItem({
|
|
116
|
+
children,
|
|
117
|
+
className,
|
|
118
|
+
style,
|
|
119
|
+
...props
|
|
120
|
+
}: Select$1.DisabledItemProps): _$react_jsx_runtime0.JSX.Element;
|
|
121
|
+
/**
|
|
122
|
+
* Visual divider between groups or items inside `Select.Content`. Wraps Base UI's
|
|
123
|
+
* `Select.Separator`.
|
|
124
|
+
*/
|
|
125
|
+
declare function SelectSeparator({
|
|
126
|
+
className,
|
|
127
|
+
style,
|
|
128
|
+
...props
|
|
129
|
+
}: Select$1.SeparatorProps): _$react_jsx_runtime0.JSX.Element;
|
|
130
|
+
/**
|
|
131
|
+
* Scroll-up affordance that appears at the top of `Select.Content` when the popup overflows.
|
|
132
|
+
* Wraps Base UI's `Select.ScrollUpArrow`. Rendered automatically by {@link Select.Content} when
|
|
133
|
+
* `scrollArrows` is `true`.
|
|
134
|
+
*/
|
|
135
|
+
declare function SelectScrollUpButton({
|
|
136
|
+
className,
|
|
137
|
+
style,
|
|
138
|
+
...props
|
|
139
|
+
}: Select$1.ScrollUpButtonProps): _$react_jsx_runtime0.JSX.Element;
|
|
140
|
+
/**
|
|
141
|
+
* Scroll-down affordance that appears at the bottom of `Select.Content` when the popup overflows.
|
|
142
|
+
* Wraps Base UI's `Select.ScrollDownArrow`. Rendered automatically by {@link Select.Content} when
|
|
143
|
+
* `scrollArrows` is `true`.
|
|
144
|
+
*/
|
|
145
|
+
declare function SelectScrollDownButton({
|
|
146
|
+
className,
|
|
147
|
+
style,
|
|
148
|
+
...props
|
|
149
|
+
}: Select$1.ScrollDownButtonProps): _$react_jsx_runtime0.JSX.Element;
|
|
150
|
+
declare namespace Select$1 {
|
|
151
|
+
/**
|
|
152
|
+
* Visual style applied to the trigger and dropdown.
|
|
153
|
+
*
|
|
154
|
+
* - `outline` (default): bordered input surface, fixed 36px height.
|
|
155
|
+
* - `tile`: selectable-tile surface + card border + tile radius. Full
|
|
156
|
+
* width by default; sized for asset-row contexts (~44px tall).
|
|
157
|
+
*/
|
|
158
|
+
type Variant = SelectVariant;
|
|
159
|
+
type Props<Value, Multiple extends boolean | undefined = false> = Select.Root.Props<Value, Multiple> & {
|
|
160
|
+
/**
|
|
161
|
+
* Visual style applied to the trigger and dropdown. Propagated to child parts via
|
|
162
|
+
* {@link SelectContext}.
|
|
163
|
+
*
|
|
164
|
+
* @default "outline"
|
|
165
|
+
*/
|
|
166
|
+
variant?: Variant;
|
|
167
|
+
};
|
|
168
|
+
type GroupProps = Select.Group.Props;
|
|
169
|
+
type ItemTextProps = Select.ItemText.Props;
|
|
170
|
+
type ItemIndicatorProps = Select.ItemIndicator.Props;
|
|
171
|
+
type PortalProps = Select.Portal.Props;
|
|
172
|
+
type PositionerProps = Select.Positioner.Props;
|
|
173
|
+
type TriggerProps = Select.Trigger.Props;
|
|
174
|
+
type ItemProps = Select.Item.Props;
|
|
175
|
+
type LabelProps = Select.GroupLabel.Props;
|
|
176
|
+
type SeparatorProps = Select.Separator.Props;
|
|
177
|
+
type ScrollUpButtonProps = Select.ScrollUpArrow.Props;
|
|
178
|
+
type ScrollDownButtonProps = Select.ScrollDownArrow.Props;
|
|
179
|
+
type StaticTriggerProps = Omit<ComponentProps<"div">, "children"> & {
|
|
180
|
+
variant?: Variant;
|
|
181
|
+
children?: ReactNode;
|
|
182
|
+
};
|
|
183
|
+
type DisabledItemProps = Omit<ComponentProps<"div">, "children" | "role" | "aria-disabled" | "aria-selected"> & {
|
|
184
|
+
children?: ReactNode;
|
|
185
|
+
};
|
|
186
|
+
type PopupProps = Select.Popup.Props & {
|
|
187
|
+
/**
|
|
188
|
+
* Side of the trigger the popup appears on.
|
|
189
|
+
*
|
|
190
|
+
* @default "bottom"
|
|
191
|
+
*/
|
|
192
|
+
side?: Select.Positioner.Props["side"];
|
|
193
|
+
/**
|
|
194
|
+
* Alignment of the popup along the cross axis.
|
|
195
|
+
*
|
|
196
|
+
* @default "center"
|
|
197
|
+
*/
|
|
198
|
+
align?: Select.Positioner.Props["align"];
|
|
199
|
+
/**
|
|
200
|
+
* Gap in pixels between the popup and the trigger element.
|
|
201
|
+
*
|
|
202
|
+
* @default 4
|
|
203
|
+
*/
|
|
204
|
+
sideOffset?: Select.Positioner.Props["sideOffset"];
|
|
205
|
+
/**
|
|
206
|
+
* Positioning strategy for the popup.
|
|
207
|
+
*
|
|
208
|
+
* - `"popper"` (default): positions relative to the trigger using floating-UI rules.
|
|
209
|
+
* - `"item-aligned"`: aligns the selected item with the trigger (`alignItemWithTrigger`).
|
|
210
|
+
*
|
|
211
|
+
* @default "popper"
|
|
212
|
+
*/
|
|
213
|
+
position?: "popper" | "item-aligned";
|
|
214
|
+
/**
|
|
215
|
+
* Whether to render the up/down scroll-arrow buttons that appear
|
|
216
|
+
* when the popup overflows. Defaults to `true`. Set to `false` to
|
|
217
|
+
* rely on native scrollbar / wheel / keyboard scrolling instead.
|
|
218
|
+
*/
|
|
219
|
+
scrollArrows?: boolean;
|
|
220
|
+
};
|
|
221
|
+
type ValueProps = Select.Value.Props & {
|
|
222
|
+
/**
|
|
223
|
+
* Text displayed when no value is selected. When provided, `Select.Value` switches to a
|
|
224
|
+
* render-prop form that shows the placeholder only when the selection is empty.
|
|
225
|
+
*/
|
|
226
|
+
placeholder?: string;
|
|
227
|
+
};
|
|
228
|
+
const Group: typeof SelectGroup;
|
|
229
|
+
const Value: typeof SelectValue;
|
|
230
|
+
const Trigger: typeof SelectTrigger;
|
|
231
|
+
const StaticTrigger: typeof SelectStaticTrigger;
|
|
232
|
+
const Portal: typeof SelectPortal;
|
|
233
|
+
const Positioner: typeof SelectPositioner;
|
|
234
|
+
const Content: typeof SelectContent;
|
|
235
|
+
const Label: typeof SelectLabel;
|
|
236
|
+
const Item: typeof SelectItem;
|
|
237
|
+
const DisabledItem: typeof SelectDisabledItem;
|
|
238
|
+
const Separator: typeof SelectSeparator;
|
|
239
|
+
const ScrollUpButton: typeof SelectScrollUpButton;
|
|
240
|
+
const ScrollDownButton: typeof SelectScrollDownButton;
|
|
241
|
+
}
|
|
242
|
+
//#endregion
|
|
243
|
+
export { Select$1 as Select };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{KitPortalScope as e}from"../../../scope/KitPortalScope.js";import"../../../scope/index.js";import{ChevronDownIcon as t}from"../../icons/ChevronDownIcon.js";import{ChevronUpIcon as n}from"../../icons/ChevronUpIcon.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{ScrollArea as o}from"../ScrollArea/ScrollArea.js";import"../ScrollArea/index.js";import{DEFAULT_SELECT_CONTEXT as s,SelectContext as c,useSelectContext as l}from"./Select.context.js";import{SELECT_SLOTS as u}from"./Select.slots.js";import{styles as d}from"./Select.styles.js";import{jsx as f,jsxs as p}from"react/jsx-runtime";import*as m from"@stylexjs/stylex";import{Select as h}from"@base-ui/react/select";function g({variant:e=s.variant,...t}){return f(c.Provider,{value:{variant:e},children:f(h.Root,{"data-stridge-slot":u.root,...t})})}function _(e){return f(h.Group,{"data-stridge-slot":u.group,...e})}function v({placeholder:e,className:t,style:n,...r}){let o=m.props(d.value),s=m.props(d.value,d.placeholder);return e?f(h.Value,{render:(c,{value:l})=>(Array.isArray(l)?l.length>0:l!=null)?f(h.Value,{"data-stridge-slot":u.value,...r,className:i(o.className,t),style:a(o.style,n)}):f(`span`,{"data-stridge-slot":u.value,...s,children:e}),...r}):f(h.Value,{"data-stridge-slot":u.value,...r,className:i(o.className,t),style:a(o.style,n)})}function y({children:e,className:n,style:r,...o}){let{variant:s}=l(),c=m.props(d.triggerBase,s===`tile`?d.triggerTile:d.triggerOutline),g=m.props(d.triggerContent),_=m.props(d.iconBase,s===`tile`?d.iconTile:d.iconOutline);return p(h.Trigger,{"data-stridge-slot":u.trigger,...o,className:i(c.className,n),style:a(c.style,r),children:[f(`span`,{...g,children:e}),f(h.Icon,{children:f(t,{"data-stridge-slot":u.icon,..._})})]})}function b({variant:e=s.variant,children:n,className:i,style:a,...o}){let c=m.props(d.triggerBase,e===`tile`?d.triggerTile:d.triggerOutline,d.triggerStatic),l=m.props(d.triggerContent),h=m.props(d.iconBase,e===`tile`?d.iconTile:d.iconOutline);return p(`div`,{"data-stridge-slot":u.staticTrigger,...o,className:r(c.className,i),style:{...c.style,...a},children:[f(`span`,{...l,children:n}),f(t,{"data-stridge-slot":u.icon,"aria-hidden":!0,...h})]})}function x(e){return f(h.Portal,{"data-stridge-slot":u.portal,...e})}function S(e){return f(h.Positioner,{"data-stridge-slot":u.positioner,...e,...m.props(d.positioner)})}function C({position:t=`popper`,side:n=`bottom`,align:s=`center`,sideOffset:c=4,scrollArrows:g=!0,className:_,style:v,children:y,...b}){let{variant:C}=l(),w=m.props(d.popupBase,C===`tile`?d.popupTile:d.popupOutline),T=m.props(d.popupScrollArea),E=m.props(d.popupViewport);return f(x,{children:f(e,{children:p(S,{align:s,alignItemWithTrigger:t===`item-aligned`,side:n,sideOffset:c,children:[g?f(O,{}):null,f(h.Popup,{"data-stridge-slot":u.content,...b,render:e=>{let{children:t,className:n,style:i,...a}=e;return p(o,{className:T.className,style:T.style,children:[f(o.Viewport,{...a,className:r(E.className,n),style:{...E.style,...i},children:t}),f(o.Scrollbar,{orientation:`vertical`,children:f(o.Thumb,{})})]})},className:i(w.className,_),style:a(w.style,v),children:y}),g?f(k,{}):null]})})})}function w({className:e,style:t,...n}){let r=m.props(d.label);return f(h.GroupLabel,{"data-stridge-slot":u.label,...n,className:i(r.className,e),style:a(r.style,t)})}function T({children:e,className:t,style:n,...r}){let{variant:o}=l(),s=m.props(d.itemBase,o===`tile`?d.itemTile:d.itemOutline),c=m.props(d.itemText);return f(h.Item,{"data-stridge-slot":u.item,...r,className:i(s.className,t),style:a(s.style,n),children:f(h.ItemText,{...c,children:e})})}function E({children:e,className:t,style:n,...i}){let{variant:a}=l(),o=m.props(d.itemBase,a===`tile`?d.itemTile:d.itemOutline,d.itemDisabled),s=m.props(d.itemText);return f(`div`,{role:`option`,"aria-disabled":`true`,"aria-selected":`false`,tabIndex:-1,"data-stridge-slot":u.item,"data-disabled":``,...i,className:r(o.className,t),style:{...o.style,...n},children:f(`span`,{...s,children:e})})}function D({className:e,style:t,...n}){let r=m.props(d.separator);return f(h.Separator,{"data-stridge-slot":u.separator,...n,className:i(r.className,e),style:a(r.style,t)})}function O({className:e,style:t,...r}){let o=m.props(d.scrollButton,d.scrollUpButton),s=m.props(d.scrollIcon);return f(h.ScrollUpArrow,{"data-stridge-slot":u.scrollUpButton,...r,className:i(o.className,e),style:a(o.style,t),children:f(n,{...s})})}function k({className:e,style:n,...r}){let o=m.props(d.scrollButton,d.scrollDownButton),s=m.props(d.scrollIcon);return f(h.ScrollDownArrow,{"data-stridge-slot":u.scrollDownButton,...r,className:i(o.className,e),style:a(o.style,n),children:f(t,{...s})})}(function(e){e.Group=_,e.Value=v,e.Trigger=y,e.StaticTrigger=b,e.Portal=x,e.Positioner=S,e.Content=C,e.Label=w,e.Item=T,e.DisabledItem=E,e.Separator=D,e.ScrollUpButton=O,e.ScrollDownButton=k})(g||={});export{g as Select};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
//#region src/shared/ui/Select/Select.slots.d.ts
|
|
2
|
+
declare const SELECT_SLOTS: {
|
|
3
|
+
readonly root: "select";
|
|
4
|
+
readonly group: "select-group";
|
|
5
|
+
readonly value: "select-value";
|
|
6
|
+
readonly trigger: "select-trigger";
|
|
7
|
+
readonly staticTrigger: "select-static-trigger";
|
|
8
|
+
readonly icon: "select-icon";
|
|
9
|
+
readonly portal: "select-portal";
|
|
10
|
+
readonly positioner: "select-positioner";
|
|
11
|
+
readonly content: "select-content";
|
|
12
|
+
readonly label: "select-label";
|
|
13
|
+
readonly item: "select-item";
|
|
14
|
+
readonly separator: "select-separator";
|
|
15
|
+
readonly scrollUpButton: "select-scroll-up-button";
|
|
16
|
+
readonly scrollDownButton: "select-scroll-down-button";
|
|
17
|
+
};
|
|
18
|
+
type SelectSlot = (typeof SELECT_SLOTS)[keyof typeof SELECT_SLOTS];
|
|
19
|
+
//#endregion
|
|
20
|
+
export { SELECT_SLOTS, SelectSlot };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e={root:`select`,group:`select-group`,value:`select-value`,trigger:`select-trigger`,staticTrigger:`select-static-trigger`,icon:`select-icon`,portal:`select-portal`,positioner:`select-positioner`,content:`select-content`,label:`select-label`,item:`select-item`,separator:`select-separator`,scrollUpButton:`select-scroll-up-button`,scrollDownButton:`select-scroll-down-button`};export{e as SELECT_SLOTS};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e={triggerBase:{"Select__styles.triggerBase":`Select__styles.triggerBase`,"display-k1xSpc":`x3nfvp2`,"alignItems-kGNEyG":`x6s0dn4`,"gap-kOIVth":`x1a6yh9e`,"fontFamily-kMv6JI":`xlaww2m`,"fontSize-kGuDYH":`x14qa7mu`,"lineHeight-kLWn49":`x14vj8e1`,"whiteSpace-khDVqt":`xuxw1ft`,"userSelect-kfSwDN":`x87ps6o`,"cursor-kkrTdU":`xt0e3qv`,"outline-kI3sdo":`x1a2a7pz`,"textAlign-k9WMMc":`x1yc453h`,"transitionProperty-k1ekBW":`xk3iem4`,"transitionDuration-kIyJzY":`xx6bhzk`,"transitionTimingFunction-kAMwcw":`x9lcvmn`,$$css:`@stridge/kit:src/shared/ui/Select/Select.styles.ts:24`},triggerStatic:{"Select__styles.triggerStatic":`Select__styles.triggerStatic`,"cursor-kkrTdU":`xt0e3qv`,$$css:`@stridge/kit:src/shared/ui/Select/Select.styles.ts:40`},triggerContent:{"Select__styles.triggerContent":`Select__styles.triggerContent`,"display-k1xSpc":`x78zum5`,"alignItems-kGNEyG":`x6s0dn4`,"gap-kOIVth":`x1a6yh9e`,"flex-kUk6DE":`x98rzlu`,"minWidth-k7Eaqz":`xeuugli`,"textAlign-k9WMMc":`x1yc453h`,"overflow-kVQacm":`xb3r6kr`,$$css:`@stridge/kit:src/shared/ui/Select/Select.styles.ts:43`},triggerOutline:{"Select__styles.triggerOutline":`Select__styles.triggerOutline`,"width-kzqmXN":`xeq5yr9`,"height-kZKoxP":`xc9qbxq`,"paddingInlineStart-kZCmMZ":`x1qntkwk`,"paddingInlineEnd-kwRFfy":`xzfcf9p`,"borderWidth-kMzoRj":`xmkeg23`,"borderStyle-ksu8eU":`x1y0btm7`,"borderColor-kVAM5u":`x12c9lpl`,"borderRadius-kaIpWk":`x12ur2as`,"backgroundColor-kWkggS":`x1ofs3es x1i3dt4k`,"color-kMwMTN":`xzn0pkc`,"boxShadow-kGVxlE":`xzh026d`,"transitionProperty-k1ekBW":`x11vqxbs`,"transitionDuration-kIyJzY":`xx6bhzk`,"transitionTimingFunction-kAMwcw":`x9lcvmn`,":focus-visible_borderColor-kOJeXU":`x1mt3fz5`,":focus-visible_boxShadow-kEtg5x":`x159teg`,"[data-disabled]_pointerEvents-k7dGCq":`x7gqb9v`,"[data-disabled]_opacity-kncrQb":`x1szrgyu`,"[aria-invalid=true]_borderColor-kmuzpH":`x1e0f7l1`,"[aria-invalid=true]:focus-visible_borderColor-kAVsxs":`xu6psuv`,"[aria-invalid=true]:focus-visible_boxShadow-kfN9lc":`xsklecs`,"[aria-invalid=true][data-popup-open]_borderColor-krGkLy":`x13rkwjk`,"[aria-invalid=true][data-popup-open]_boxShadow-kt7deA":`xyy5omr`,$$css:`@stridge/kit:src/shared/ui/Select/Select.styles.ts:52`},triggerTile:{"Select__styles.triggerTile":`Select__styles.triggerTile`,"width-kzqmXN":`xh8yej3`,"paddingTop-kLKAdn":`xzi3mdb`,"paddingBottom-kGO01o":`xxbrewl`,"paddingInline-kg3NbH":`xqin4a2`,"borderWidth-kMzoRj":`xmkeg23`,"borderStyle-ksu8eU":`x1y0btm7`,"borderColor-kVAM5u":`x1bue7yx`,"borderRadius-kaIpWk":`xi9trdq`,"backgroundColor-kWkggS":`xsdq91f xjl87wc`,"color-kMwMTN":`xzn0pkc`,"cursor-kkrTdU":`x1ypdohk`,"transitionProperty-k1ekBW":`x11vqxbs`,"transitionDuration-kIyJzY":`xx6bhzk`,"transitionTimingFunction-kAMwcw":`x9lcvmn`,":focus-visible_borderColor-kOJeXU":`x1mt3fz5`,":focus-visible_boxShadow-kEtg5x":`x159teg`,"[data-disabled]_pointerEvents-k7dGCq":`x7gqb9v`,"[aria-invalid=true]_borderColor-kmuzpH":`x1e0f7l1`,"[aria-invalid=true]:focus-visible_borderColor-kAVsxs":`xu6psuv`,"[aria-invalid=true]:focus-visible_boxShadow-kfN9lc":`xsklecs`,"[aria-invalid=true][data-popup-open]_borderColor-krGkLy":`x13rkwjk`,"[aria-invalid=true][data-popup-open]_boxShadow-kt7deA":`xyy5omr`,$$css:`@stridge/kit:src/shared/ui/Select/Select.styles.ts:90`},value:{"Select__styles.value":`Select__styles.value`,"display-k1xSpc":`x78zum5`,"alignItems-kGNEyG":`x6s0dn4`,"minWidth-k7Eaqz":`xeuugli`,"gap-kOIVth":`x1a6yh9e`,"overflow-kVQacm":`xb3r6kr`,"textOverflow-kg5iWk":`xlyipyv`,"whiteSpace-khDVqt":`xuxw1ft`,$$css:`@stridge/kit:src/shared/ui/Select/Select.styles.ts:127`},placeholder:{"Select__styles.placeholder":`Select__styles.placeholder`,"color-kMwMTN":`xi96bwj`,$$css:`@stridge/kit:src/shared/ui/Select/Select.styles.ts:136`},iconBase:{"Select__styles.iconBase":`Select__styles.iconBase`,"display-k1xSpc":`x1lliihq`,"flexShrink-kmuXW":`x2lah0s`,"transitionProperty-k1ekBW":`x11xpdln`,"transitionDuration-kIyJzY":`x13dflua`,"transitionTimingFunction-kAMwcw":`x9lcvmn`,"[data-popup-open] &_transform-k5abDR":`x1c3rhtc`,$$css:`@stridge/kit:src/shared/ui/Select/Select.styles.ts:139`},iconOutline:{"Select__styles.iconOutline":`Select__styles.iconOutline`,"width-kzqmXN":`x1kky2od`,"height-kZKoxP":`xlup9mm`,"color-kMwMTN":`xi96bwj`,"opacity-kSiTet":`xbyyjgo`,$$css:`@stridge/kit:src/shared/ui/Select/Select.styles.ts:149`},iconTile:{"Select__styles.iconTile":`Select__styles.iconTile`,"width-kzqmXN":`xsmyaan`,"height-kZKoxP":`x1kpxq89`,"color-kMwMTN":`xdksllq`,"strokeWidth-kfJifR":`xhr4kjn`,$$css:`@stridge/kit:src/shared/ui/Select/Select.styles.ts:155`},positioner:{"Select__styles.positioner":`Select__styles.positioner`,"zIndex-kY2c9j":`x1x47hvv`,$$css:`@stridge/kit:src/shared/ui/Select/Select.styles.ts:161`},popupBase:{"Select__styles.popupBase":`Select__styles.popupBase`,"position-kVAEAm":`x1n2onr6`,"minWidth-k7Eaqz":`x80t9vs`,"maxHeight-kskxy":`x1ko6lg0`,"overflowX-kXHlph":`x6ikm8r`,"overflowY-kORKVm":`x1odjw0f`,"padding-kmVPX3":`x1ljrego`,"borderWidth-kMzoRj":`xmkeg23`,"borderStyle-ksu8eU":`x1y0btm7`,"boxShadow-kGVxlE":`x1lo0mqj`,"transformOrigin-k3nNDw":`xctpfpq`,"outline-kI3sdo":`x1a2a7pz`,"[data-open]_animationName-k6MjMx":`x1v7ye95`,"[data-open]_animationDuration-kQT8Nr":`x6qscqp`,"[data-open]_animationTimingFunction-kGrMy9":`xec0cv`,"[data-open]_@media (prefers-reduced-motion: reduce)_animationName-kkMe6y":`x1fxewv3`,"[data-open]_@media (prefers-reduced-motion: reduce)_animationDuration-kUsvFl":`xslpr3k`,"[data-closed]_animationName-khiDtg":`x130u89k`,"[data-closed]_animationDuration-kfqKPr":`x1ej03p1`,"[data-closed]_animationTimingFunction-kBIjI2":`x1gv3vh9`,"[data-closed]_@media (prefers-reduced-motion: reduce)_animationName-kng8EN":`x1cha3i4`,"[data-closed]_@media (prefers-reduced-motion: reduce)_animationDuration-kX5ucw":`xgx5xwo`,$$css:`@stridge/kit:src/shared/ui/Select/Select.styles.ts:164`},popupScrollArea:{"Select__styles.popupScrollArea":`Select__styles.popupScrollArea`,"width-kzqmXN":`xezivpi`,"height-kZKoxP":`xt7dq6l`,$$css:`@stridge/kit:src/shared/ui/Select/Select.styles.ts:195`},popupViewport:{"Select__styles.popupViewport":`Select__styles.popupViewport`,"width-kzqmXN":`xh8yej3`,"maxWidth-ks0D6T":`x193iq5w`,$$css:`@stridge/kit:src/shared/ui/Select/Select.styles.ts:199`},popupOutline:{"Select__styles.popupOutline":`Select__styles.popupOutline`,"borderColor-kVAM5u":`x12c9lpl`,"borderRadius-kaIpWk":`x12ur2as`,"backgroundColor-kWkggS":`x1gdua1s`,"color-kMwMTN":`xqk8w4k`,$$css:`@stridge/kit:src/shared/ui/Select/Select.styles.ts:203`},popupTile:{"Select__styles.popupTile":`Select__styles.popupTile`,"borderColor-kVAM5u":`x1bue7yx`,"borderRadius-kaIpWk":`xi9trdq`,"backgroundColor-kWkggS":`x1gdua1s`,"color-kMwMTN":`xqk8w4k`,$$css:`@stridge/kit:src/shared/ui/Select/Select.styles.ts:209`},itemBase:{"Select__styles.itemBase":`Select__styles.itemBase`,"position-kVAEAm":`x1n2onr6`,"display-k1xSpc":`x78zum5`,"alignItems-kGNEyG":`x6s0dn4`,"width-kzqmXN":`xh8yej3`,"gap-kOIVth":`x1a6yh9e`,"paddingInlineStart-kZCmMZ":`xpsy26f`,"paddingInlineEnd-kwRFfy":`xy51phz`,"fontFamily-kMv6JI":`xlaww2m`,"fontSize-kGuDYH":`x14qa7mu`,"lineHeight-kLWn49":`x14vj8e1`,"cursor-kkrTdU":`xt0e3qv`,"userSelect-kfSwDN":`x87ps6o`,"outline-kI3sdo":`x1a2a7pz`,"color-kMwMTN":`xqk8w4k`,"textAlign-k9WMMc":`x1yc453h`,"[data-disabled]_pointerEvents-k7dGCq":`x7gqb9v`,"[data-disabled]_opacity-kncrQb":`x1szrgyu`,$$css:`@stridge/kit:src/shared/ui/Select/Select.styles.ts:215`},itemOutline:{"Select__styles.itemOutline":`Select__styles.itemOutline`,"minHeight-kAzted":`x21xpn4`,"paddingTop-kLKAdn":`xq38ur3`,"paddingBottom-kGO01o":`x1hli9g4`,"borderRadius-kaIpWk":`x143j3yi`,":focus_backgroundColor-kL3a3j":`x12wwdwo`,":focus_color-kabz5l":`x1gfp9c8`,"[data-highlighted]_backgroundColor-kRQljQ":`xr6bgp2`,"[data-highlighted]_color-kEenPV":`x163giyb`,$$css:`@stridge/kit:src/shared/ui/Select/Select.styles.ts:236`},itemTile:{"Select__styles.itemTile":`Select__styles.itemTile`,"minHeight-kAzted":`x1ba4aug`,"paddingTop-kLKAdn":`x1y1aw1k`,"paddingBottom-kGO01o":`xwib8y2`,"borderRadius-kaIpWk":`x1s7mj9v`,":focus_backgroundColor-kL3a3j":`x91zbg9`,":focus_color-kabz5l":`x1gfp9c8`,"[data-highlighted]_backgroundColor-kRQljQ":`xevhoj0`,"[data-highlighted]_color-kEenPV":`x163giyb`,$$css:`@stridge/kit:src/shared/ui/Select/Select.styles.ts:250`},itemDisabled:{"Select__styles.itemDisabled":`Select__styles.itemDisabled`,"cursor-kkrTdU":`x1h6gzvc`,"opacity-kSiTet":`xyd83as`,"color-kMwMTN":`xi96bwj`,"backgroundColor-kWkggS":`xjbqb8w`,":hover_backgroundColor-kGzVvX":`x1n5bzlp`,":hover_color-kDPRdz":`xib2ewr`,":focus_backgroundColor-kL3a3j":`xyc4ar7`,":focus_color-kabz5l":`x1thzfav`,":focus-visible_backgroundColor-kJX3Yn":`x14rb9jf`,":focus-visible_color-kTyn8Z":`xk1skjw`,":active_backgroundColor-kSReZ0":`xyftt0y`,":active_color-kc7ZrP":`x1u0pxdh`,"[data-disabled]_pointerEvents-k7dGCq":`x1sw4l06`,"[data-disabled]_opacity-kncrQb":`x11xjgb3`,$$css:`@stridge/kit:src/shared/ui/Select/Select.styles.ts:277`},itemText:{"Select__styles.itemText":`Select__styles.itemText`,"display-k1xSpc":`x78zum5`,"alignItems-kGNEyG":`x6s0dn4`,"gap-kOIVth":`x1a6yh9e`,"minWidth-k7Eaqz":`xeuugli`,$$css:`@stridge/kit:src/shared/ui/Select/Select.styles.ts:303`},label:{"Select__styles.label":`Select__styles.label`,"paddingTop-kLKAdn":`xq38ur3`,"paddingBottom-kGO01o":`x1hli9g4`,"paddingInline-kg3NbH":`xxztuhb`,"color-kMwMTN":`xi96bwj`,"fontFamily-kMv6JI":`xlaww2m`,"fontSize-kGuDYH":`x1oae1zf`,"lineHeight-kLWn49":`x14vj8e1`,$$css:`@stridge/kit:src/shared/ui/Select/Select.styles.ts:309`},separator:{"Select__styles.separator":`Select__styles.separator`,"height-kZKoxP":`xjm9jq1`,"marginTop-keoZOQ":`x1p5pg8g`,"marginBottom-k1K539":`x1782xsq`,"marginInline-kUOVxO":`x1mqxmvn`,"backgroundColor-kWkggS":`x136i1dt`,"pointerEvents-kfzvcC":`x47corl`,$$css:`@stridge/kit:src/shared/ui/Select/Select.styles.ts:318`},scrollButton:{"Select__styles.scrollButton":`Select__styles.scrollButton`,"position-kVAEAm":`x1n2onr6`,"zIndex-kY2c9j":`xfa8aoj`,"display-k1xSpc":`x78zum5`,"alignItems-kGNEyG":`x6s0dn4`,"justifyContent-kjj79g":`xl56j7k`,"width-kzqmXN":`xh8yej3`,"height-kZKoxP":`xxk0z11`,"minHeight-kAzted":`xjwf9q1`,"borderWidth-kMzoRj":`xmkeg23`,"borderStyle-ksu8eU":`x1y0btm7`,"borderColor-kVAM5u":`x12c9lpl`,"backgroundColor-kWkggS":`x1gdua1s`,"color-kMwMTN":`xqk8w4k`,"textAlign-k9WMMc":`x2b8uid`,"cursor-kkrTdU":`xt0e3qv`,"::before_position-kEoFBp":`x1hmns74`,"::before_insetInlineStart-kSJ0CW":`x1682cnc`,"::before_width-kOlAkY":`x1rmj1tg`,"::before_height-kgzTxl":`xszcg87`,"::before_content-kgeoSG":`x10tli2e`,"::before_pointerEvents-km8f2m":`xkk1bqk`,$$css:`@stridge/kit:src/shared/ui/Select/Select.styles.ts:326`},scrollUpButton:{"Select__styles.scrollUpButton":`Select__styles.scrollUpButton`,"borderBottomWidth-kt9PQ7":`x1qhh985`,"borderStartStartRadius-krdFHd":`x1d6sz28`,"borderStartEndRadius-kfmiAY":`x1982ebo`,"[data-direction=up]::before_top-kmeIDP":`x1yuh1d4`,$$css:`@stridge/kit:src/shared/ui/Select/Select.styles.ts:351`},scrollDownButton:{"Select__styles.scrollDownButton":`Select__styles.scrollDownButton`,"bottom-krVfgx":`x1ey2m1c`,"borderTopWidth-kEafiO":`x972fbf`,"borderEndStartRadius-kVL7Gh":`x1n8kxja`,"borderEndEndRadius-kT0f0o":`x8xpvqr`,"[data-direction=down]::before_bottom-kr3AeW":`xzs8kq4`,$$css:`@stridge/kit:src/shared/ui/Select/Select.styles.ts:359`},scrollIcon:{"Select__styles.scrollIcon":`Select__styles.scrollIcon`,"display-k1xSpc":`x1lliihq`,"width-kzqmXN":`x1kky2od`,"height-kZKoxP":`xlup9mm`,$$css:`@stridge/kit:src/shared/ui/Select/Select.styles.ts:368`}};export{e as styles};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./Select.slots.js";import"./Select.js";
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { CSSProperties, HTMLAttributes, MouseEventHandler, ReactNode, Ref } from "react";
|
|
2
|
+
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
|
+
|
|
4
|
+
//#region src/shared/ui/SelectableTile/SelectableTile.d.ts
|
|
5
|
+
type SelectableTileShape = "card" | "pill";
|
|
6
|
+
/**
|
|
7
|
+
* Selectable surface. Use `shape="card"` for full-width rows, `shape="pill"`
|
|
8
|
+
* for equal-width chips.
|
|
9
|
+
*
|
|
10
|
+
* The interactive form renders Base UI's `Toggle` — a button that carries
|
|
11
|
+
* `aria-pressed` semantics and integrates with `<SelectableTileGroup>`'s
|
|
12
|
+
* roving-tabindex / arrow-key navigation. Pass a `value` to participate in
|
|
13
|
+
* a group's shared selection state; the parent group derives `pressed` from
|
|
14
|
+
* its `value` array (single-select with `multiple={false}`, multi-select
|
|
15
|
+
* otherwise). Outside a group, drive the visual state via `selected` and
|
|
16
|
+
* the click via `onClick`.
|
|
17
|
+
*
|
|
18
|
+
* The inert form (no `onClick`) renders a `<div role="option">` with
|
|
19
|
+
* `aria-selected` so showcase / static surfaces (asset-list previews,
|
|
20
|
+
* fixture-only flows) still convey selection without the button affordance.
|
|
21
|
+
*/
|
|
22
|
+
declare function SelectableTile({
|
|
23
|
+
selected,
|
|
24
|
+
shape,
|
|
25
|
+
interactive: interactiveProp,
|
|
26
|
+
disabled,
|
|
27
|
+
onClick,
|
|
28
|
+
value,
|
|
29
|
+
className,
|
|
30
|
+
style,
|
|
31
|
+
children,
|
|
32
|
+
...props
|
|
33
|
+
}: SelectableTile.Props): _$react_jsx_runtime0.JSX.Element;
|
|
34
|
+
declare namespace SelectableTile {
|
|
35
|
+
/**
|
|
36
|
+
* Common attributes accepted by both the interactive (`button`) and inert (`div`) forms.
|
|
37
|
+
* Typed against `HTMLElement` so the prop bag stays valid for either branch.
|
|
38
|
+
*
|
|
39
|
+
* `role` is omitted because the inert form pins `role="option"` to keep `aria-selected`
|
|
40
|
+
* valid; the interactive form uses Base UI's `Toggle` semantics. If a different role is
|
|
41
|
+
* needed in a future caller, expose a dedicated escape hatch rather than reopening this.
|
|
42
|
+
*/
|
|
43
|
+
type CommonAttributes = Omit<HTMLAttributes<HTMLElement>, "role" | "onClick" | "value" | "defaultValue">;
|
|
44
|
+
export type Props = CommonAttributes & {
|
|
45
|
+
/**
|
|
46
|
+
* Active state. Drives `aria-pressed` (interactive) / `aria-selected` (inert)
|
|
47
|
+
* and the kit's selected styling. Inside a `<SelectableTileGroup>`, the group's
|
|
48
|
+
* `value` array overrides this prop.
|
|
49
|
+
*/
|
|
50
|
+
selected?: boolean;
|
|
51
|
+
/**
|
|
52
|
+
* Surface shape. Defaults to `"card"`.
|
|
53
|
+
*/
|
|
54
|
+
shape?: SelectableTileShape;
|
|
55
|
+
/**
|
|
56
|
+
* Force interactive vs inert rendering. Defaults to `typeof onClick === "function" || typeof value === "string"`.
|
|
57
|
+
*/
|
|
58
|
+
interactive?: boolean;
|
|
59
|
+
/**
|
|
60
|
+
* Disables the underlying button when interactive; renders `aria-disabled` when inert.
|
|
61
|
+
*/
|
|
62
|
+
disabled?: boolean;
|
|
63
|
+
/**
|
|
64
|
+
* Click handler.
|
|
65
|
+
*/
|
|
66
|
+
onClick?: MouseEventHandler<HTMLElement>;
|
|
67
|
+
/**
|
|
68
|
+
* Identifier used when the tile is part of a `<SelectableTileGroup>`.
|
|
69
|
+
* Lets the parent group track which tile(s) are pressed.
|
|
70
|
+
*/
|
|
71
|
+
value?: string;
|
|
72
|
+
/**
|
|
73
|
+
* Ref to the rendered element (button or div, depending on `interactive`).
|
|
74
|
+
*/
|
|
75
|
+
ref?: Ref<HTMLElement>;
|
|
76
|
+
children?: ReactNode;
|
|
77
|
+
className?: string;
|
|
78
|
+
style?: CSSProperties;
|
|
79
|
+
};
|
|
80
|
+
export {};
|
|
81
|
+
}
|
|
82
|
+
//#endregion
|
|
83
|
+
export { SelectableTile, SelectableTileShape };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{joinClassNames as e}from"../../utils/joinClassNames.js";import{SELECTABLE_TILE_SLOTS as t}from"./SelectableTile.slots.js";import{shapeStyles as n,styles as r}from"./SelectableTile.styles.js";import{jsx as i}from"react/jsx-runtime";import*as a from"@stylexjs/stylex";import{Toggle as o}from"@base-ui/react/toggle";function s({selected:s=!1,shape:c=`card`,interactive:l,disabled:u=!1,onClick:d,value:f,className:p,style:m,children:h,...g}){let _=l??(typeof d==`function`||typeof f==`string`),v=a.props(r.base,n[c],_?r.interactive:r.inert,s&&r.selected,u&&r.disabled),y={"data-stridge-slot":t.root,"data-shape":c,"data-selected":s||void 0,"data-interactive":_||void 0,className:e(v.className,p),style:{...v.style,...m}};return _?i(o,{...g,...y,value:f,pressed:s,disabled:u,onClick:d,children:h}):i(`div`,{role:`option`,tabIndex:-1,"aria-selected":s,"aria-disabled":u||void 0,...y,...g,children:h})}export{s as SelectableTile};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
//#region src/shared/ui/SelectableTile/SelectableTile.slots.d.ts
|
|
2
|
+
declare const SELECTABLE_TILE_SLOTS: {
|
|
3
|
+
readonly root: "selectable-tile";
|
|
4
|
+
};
|
|
5
|
+
type SelectableTileSlot = (typeof SELECTABLE_TILE_SLOTS)[keyof typeof SELECTABLE_TILE_SLOTS];
|
|
6
|
+
//#endregion
|
|
7
|
+
export { SELECTABLE_TILE_SLOTS, SelectableTileSlot };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e={root:`selectable-tile`};export{e as SELECTABLE_TILE_SLOTS};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e={base:{"SelectableTile__styles.base":`SelectableTile__styles.base`,"position-kVAEAm":`x1n2onr6`,"display-k1xSpc":`x78zum5`,"alignItems-kGNEyG":`x6s0dn4`,"margin-kogj98":`x1ghz6dp`,"outline-kI3sdo":`x1a2a7pz`,"backgroundColor-kWkggS":`xsdq91f`,"borderWidth-kMzoRj":`xmkeg23`,"borderStyle-ksu8eU":`x1y0btm7`,"borderColor-kVAM5u":`xa3awxp`,"color-kMwMTN":`x1kqivnd`,"textAlign-k9WMMc":`x1yc453h`,"textDecoration-kybGjl":`x1hl2dhg`,"fontFamily-kMv6JI":`xlaww2m`,"appearance-kysU6D":`xjyslct`,"transitionProperty-k1ekBW":`xju6q8h`,"transitionDuration-kIyJzY":`x1vhb3u9`,"transitionTimingFunction-kAMwcw":`x1xv5090`,":focus-visible_borderColor-kOJeXU":`x1muc15j`,":focus-visible_boxShadow-kEtg5x":`x1s9xil4`,$$css:`@stridge/kit:src/shared/ui/SelectableTile/SelectableTile.styles.ts:4`},interactive:{"SelectableTile__styles.interactive":`SelectableTile__styles.interactive`,"cursor-kkrTdU":`x1ypdohk`,"backgroundColor-kWkggS":`xsdq91f x1k72nz7 x18xkpei`,$$css:`@stridge/kit:src/shared/ui/SelectableTile/SelectableTile.styles.ts:27`},inert:{"SelectableTile__styles.inert":`SelectableTile__styles.inert`,"cursor-kkrTdU":`xt0e3qv`,$$css:`@stridge/kit:src/shared/ui/SelectableTile/SelectableTile.styles.ts:42`},selected:{"SelectableTile__styles.selected":`SelectableTile__styles.selected`,"backgroundColor-kWkggS":`x1b6mqgj`,"borderColor-kVAM5u":`x10ssn8f`,"boxShadow-kGVxlE":`x1r82gqv`,"color-kMwMTN":`x1823it2`,$$css:`@stridge/kit:src/shared/ui/SelectableTile/SelectableTile.styles.ts:45`},highlighted:{"SelectableTile__styles.highlighted":`SelectableTile__styles.highlighted`,"borderColor-kVAM5u":`x10ssn8f`,"boxShadow-kGVxlE":`xprdceg`,$$css:`@stridge/kit:src/shared/ui/SelectableTile/SelectableTile.styles.ts:58`},disabled:{"SelectableTile__styles.disabled":`SelectableTile__styles.disabled`,"opacity-kSiTet":`xbyyjgo`,"pointerEvents-kfzvcC":`x47corl`,$$css:`@stridge/kit:src/shared/ui/SelectableTile/SelectableTile.styles.ts:62`}},t={card:{"SelectableTile__shapeStyles.card":`SelectableTile__shapeStyles.card`,"flexDirection-kXwgrk":`x1q0g3np`,"width-kzqmXN":`xh8yej3`,"borderRadius-kaIpWk":`xi9trdq`,"paddingBlock-k8WAf4":`xxlmvz2`,"paddingInline-kg3NbH":`x1hr3lfm`,$$css:`@stridge/kit:src/shared/ui/SelectableTile/SelectableTile.styles.ts:68`},pill:{"SelectableTile__shapeStyles.pill":`SelectableTile__shapeStyles.pill`,"flexGrow-kzQI83":`x1iyjqo2`,"flexShrink-kmuXW":`xs83m0k`,"flexBasis-kCS8Yb":`x1r8uery`,"flexDirection-kXwgrk":`x1q0g3np`,"justifyContent-kjj79g":`xl56j7k`,"borderRadius-kaIpWk":`x1g6ocf5`,"paddingBlock-k8WAf4":`x1b9wmvo`,"paddingInline-kg3NbH":`xaope02`,$$css:`@stridge/kit:src/shared/ui/SelectableTile/SelectableTile.styles.ts:75`}};export{t as shapeStyles,e as styles};
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { CSSProperties, ReactNode } from "react";
|
|
2
|
+
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
|
+
|
|
4
|
+
//#region src/shared/ui/SelectableTile/SelectableTileGroup.d.ts
|
|
5
|
+
interface SelectableTileGroupProps {
|
|
6
|
+
/**
|
|
7
|
+
* Value(s) of the currently pressed tile(s). Pass a single-element
|
|
8
|
+
* array for single-select pickers (asset picker, percent presets);
|
|
9
|
+
* pass `undefined` (or `[]`) for nav-style lists where the rows
|
|
10
|
+
* dispatch transitions on click and don't track a pressed state.
|
|
11
|
+
*/
|
|
12
|
+
value?: readonly string[];
|
|
13
|
+
/**
|
|
14
|
+
* Fired when the pressed state of the group changes. Receives the
|
|
15
|
+
* full pressed array. For single-select callers, read `next[0]`.
|
|
16
|
+
*/
|
|
17
|
+
onValueChange?: (next: string[]) => void;
|
|
18
|
+
/**
|
|
19
|
+
* `false` (default) — at most one tile pressed at a time. `true` —
|
|
20
|
+
* any number can be pressed simultaneously.
|
|
21
|
+
*/
|
|
22
|
+
multiple?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Arrow-key navigation orientation. Defaults to `"vertical"` so
|
|
25
|
+
* Up / Down walk the rows (the kit's full-width card stack).
|
|
26
|
+
*/
|
|
27
|
+
orientation?: "vertical" | "horizontal";
|
|
28
|
+
/**
|
|
29
|
+
* Whether arrow-key navigation wraps from last → first / first →
|
|
30
|
+
* last. Defaults to `true`.
|
|
31
|
+
*/
|
|
32
|
+
loopFocus?: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* Disables every tile in the group.
|
|
35
|
+
*/
|
|
36
|
+
disabled?: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Optional accessible label, applied to the underlying group.
|
|
39
|
+
*/
|
|
40
|
+
"aria-label"?: string;
|
|
41
|
+
children?: ReactNode;
|
|
42
|
+
className?: string;
|
|
43
|
+
style?: CSSProperties;
|
|
44
|
+
/**
|
|
45
|
+
* Pass-through DOM attributes (data-*, aria-*).
|
|
46
|
+
*/
|
|
47
|
+
[key: `data-${string}`]: string | number | boolean | undefined;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Roving-tabindex container for a stack of `SelectableTile`s. Wraps
|
|
51
|
+
* Base UI's `ToggleGroup`, which provides arrow-key navigation, focus
|
|
52
|
+
* looping, and shared pressed-state across the children for free.
|
|
53
|
+
*
|
|
54
|
+
* Three usage patterns:
|
|
55
|
+
*
|
|
56
|
+
* - **Single-select** (asset picker, percent-preset pills) — pass
|
|
57
|
+
* `value={[selectedId]}` + `multiple={false}`. The group tracks which
|
|
58
|
+
* tile is pressed and fires `onValueChange` with the new array.
|
|
59
|
+
* - **Multi-select** — pass `value={selectedIds}` + `multiple={true}`.
|
|
60
|
+
* Same shape, group permits multiple presses.
|
|
61
|
+
* - **Nav-only** (deposit method picker) — omit `value` /
|
|
62
|
+
* `onValueChange`. Tiles still get arrow-key navigation; click
|
|
63
|
+
* handlers (via `SelectableTile.onClick`) drive the actual behavior.
|
|
64
|
+
*
|
|
65
|
+
* Children should be `<SelectableTile>` instances (interactive). Static
|
|
66
|
+
* (`role="option"`) tiles render unchanged but won't participate in
|
|
67
|
+
* arrow-key navigation.
|
|
68
|
+
*/
|
|
69
|
+
declare function SelectableTileGroup({
|
|
70
|
+
value,
|
|
71
|
+
onValueChange,
|
|
72
|
+
multiple,
|
|
73
|
+
orientation,
|
|
74
|
+
loopFocus,
|
|
75
|
+
disabled,
|
|
76
|
+
className,
|
|
77
|
+
style,
|
|
78
|
+
children,
|
|
79
|
+
...rest
|
|
80
|
+
}: SelectableTileGroupProps): _$react_jsx_runtime0.JSX.Element;
|
|
81
|
+
//#endregion
|
|
82
|
+
export { SelectableTileGroup, SelectableTileGroupProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{joinClassNames as e}from"../../utils/joinClassNames.js";import{jsx as t}from"react/jsx-runtime";import{ToggleGroup as n}from"@base-ui/react/toggle-group";function r({value:r,onValueChange:i,multiple:a=!1,orientation:o=`vertical`,loopFocus:s=!0,disabled:c=!1,className:l,style:u,children:d,...f}){let p={className:`SelectableTileGroup__styles.root x1a2a7pz`,"data-style-src":`@stridge/kit:src/shared/ui/SelectableTile/SelectableTileGroup.tsx:7`},m={multiple:a,orientation:o,loopFocus:s,disabled:c,className:e(p.className,l),style:{...p.style,...u},...f};return r!==void 0&&(m.value=r),i&&(m.onValueChange=e=>i(e)),t(n,{...m,children:d})}export{r as SelectableTileGroup};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./SelectableTile.slots.js";import"./SelectableTile.js";import"./SelectableTileGroup.js";
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { ComponentProps } from "react";
|
|
2
|
+
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
|
+
|
|
4
|
+
//#region src/shared/ui/Skeleton/Skeleton.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* Loading placeholder. Renders a pill-shaped rect with a shimmer sweep. Set `width` and `height` to mirror the
|
|
7
|
+
* value being replaced so the layout doesn't reflow when data lands.
|
|
8
|
+
*
|
|
9
|
+
* Rendered with `aria-hidden` because skeletons are decorative.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```tsx
|
|
13
|
+
* {value ? <span>{value}</span> : <Skeleton width={120} height={16} />}
|
|
14
|
+
* ```
|
|
15
|
+
*/
|
|
16
|
+
declare function Skeleton({
|
|
17
|
+
width,
|
|
18
|
+
height,
|
|
19
|
+
radius,
|
|
20
|
+
className,
|
|
21
|
+
style,
|
|
22
|
+
...props
|
|
23
|
+
}: Skeleton.Props): _$react_jsx_runtime0.JSX.Element;
|
|
24
|
+
declare namespace Skeleton {
|
|
25
|
+
type Props = Omit<ComponentProps<"span">, "children" | "width" | "height"> & {
|
|
26
|
+
/**
|
|
27
|
+
* Slot width — should mirror the value being replaced.
|
|
28
|
+
*/
|
|
29
|
+
width?: number | string;
|
|
30
|
+
/**
|
|
31
|
+
* Slot height — should mirror the value being replaced.
|
|
32
|
+
*/
|
|
33
|
+
height?: number | string;
|
|
34
|
+
/**
|
|
35
|
+
* Pill radius. Defaults to `6px`.
|
|
36
|
+
*/
|
|
37
|
+
radius?: number | string;
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
//#endregion
|
|
41
|
+
export { Skeleton };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{joinClassNames as e}from"../../utils/joinClassNames.js";import{SKELETON_SLOTS as t}from"./Skeleton.slots.js";import{styles as n}from"./Skeleton.styles.js";import{jsx as r}from"react/jsx-runtime";import*as i from"@stylexjs/stylex";function a({width:a,height:o,radius:s,className:c,style:l,...u}){let d=i.props(n.root),f={width:a,height:o,borderRadius:s??`6px`,...l};return r(`span`,{"aria-hidden":!0,"data-stridge-slot":t.root,...u,className:e(d.className,c),style:{...d.style,...f}})}export{a as Skeleton};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e={root:`skeleton`};export{e as SKELETON_SLOTS};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e={root:{"Skeleton__styles.root":`Skeleton__styles.root`,"display-k1xSpc":`x1rg5ohu`,"flexShrink-kmuXW":`x2lah0s`,"backgroundColor-kWkggS":`x3l8li6`,"backgroundImage-kKwaWg":`x1sxldtw`,"backgroundSize-kgSjnq":`xakli9p`,"backgroundRepeat-kz484i":`xiy17q3`,"animationName-kKVMdj":`x1ng0oyw`,"animationDuration-k44tkh":`x1sbju2s`,"animationIterationCount-ko0y90":`xa4qsjk`,"animationTimingFunction-kyAemX":`x1esw782`,$$css:`@stridge/kit:src/shared/ui/Skeleton/Skeleton.styles.ts:12`}};export{e as styles};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./Skeleton.slots.js";import"./Skeleton.js";
|