@stridge/kit 0.1.0-alpha.60 → 0.1.0-alpha.62
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/dist/KitProvider.d.ts +0 -21
- package/dist/KitProvider.js +1 -1
- package/dist/_internal/deposit/driver/index.d.ts +3 -3
- package/dist/_internal/drivers/stridge-mock/index.d.ts +3 -2
- package/dist/_internal/drivers/stridge-mock/index.js +1 -1
- package/dist/activity/compound/index.js +1 -1
- package/dist/deposit/compound/index.d.ts +21 -10
- package/dist/deposit/compound/index.js +1 -1
- package/dist/deposit/widgets/index.d.ts +6 -3
- package/dist/deposit/widgets/index.js +1 -1
- package/dist/drivers/stridge/createStridgeDepositDriver.js +1 -1
- package/dist/drivers/stridge-mock/checkoutChannel.d.ts +31 -0
- package/dist/drivers/stridge-mock/checkoutChannel.js +1 -0
- package/dist/drivers/stridge-mock/createStridgeMockDriver.d.ts +28 -0
- package/dist/drivers/stridge-mock/createStridgeMockDriver.js +1 -1
- package/dist/drivers/stridge-mock/fixtures.d.ts +6 -2
- package/dist/drivers/stridge-mock/fixtures.js +1 -1
- package/dist/drivers/stridge-mock/triggers.d.ts +12 -0
- package/dist/events/emit/useDepositEmissions.js +1 -1
- package/dist/flows/deposit/dialog/DepositDialog.js +1 -1
- package/dist/flows/deposit/driver/payloads.d.ts +206 -20
- package/dist/flows/deposit/driver/types.d.ts +106 -10
- package/dist/flows/deposit/orchestrator/controller.js +1 -1
- package/dist/flows/deposit/orchestrator/index.d.ts +1 -1
- package/dist/flows/deposit/orchestrator/reducer.js +1 -1
- package/dist/flows/deposit/orchestrator/types.d.ts +202 -66
- package/dist/flows/deposit/shared/checkoutPopup.js +1 -0
- package/dist/flows/deposit/shared/onramp.js +1 -0
- package/dist/flows/deposit/shared/onrampError.js +1 -0
- package/dist/flows/deposit/widgets/amount-entry/AmountEntry.js +1 -1
- package/dist/flows/deposit/widgets/deposit/Deposit.js +1 -1
- package/dist/flows/deposit/widgets/deposit/compound/Deposit.d.ts +5 -5
- package/dist/flows/deposit/widgets/deposit/compound/components/Guards.js +1 -1
- package/dist/flows/deposit/widgets/deposit/compound/components/Methods.d.ts +1 -2
- package/dist/flows/deposit/widgets/deposit/compound/components/RailPicker.js +1 -1
- package/dist/flows/deposit/widgets/deposit/compound/types.d.ts +9 -9
- package/dist/flows/deposit/widgets/error-state/ErrorState.js +1 -1
- package/dist/flows/deposit/widgets/onramp-amount-entry/OnrampAmountEntry.d.ts +68 -0
- package/dist/flows/deposit/widgets/onramp-amount-entry/OnrampAmountEntry.js +1 -0
- package/dist/flows/deposit/widgets/onramp-amount-entry/compound/OnrampAmountEntry.d.ts +66 -0
- package/dist/flows/deposit/widgets/onramp-amount-entry/compound/OnrampAmountEntry.js +1 -0
- package/dist/flows/deposit/widgets/onramp-amount-entry/compound/OnrampAmountEntry.slots.d.ts +21 -0
- package/dist/flows/deposit/widgets/onramp-amount-entry/compound/OnrampAmountEntry.slots.js +1 -0
- package/dist/flows/deposit/widgets/onramp-amount-entry/compound/OnrampAmountEntry.styles.js +1 -0
- package/dist/flows/deposit/widgets/onramp-amount-entry/compound/components/CurrencyChip.d.ts +12 -0
- package/dist/flows/deposit/widgets/onramp-amount-entry/compound/components/CurrencyChip.js +1 -0
- package/dist/flows/deposit/widgets/onramp-amount-entry/compound/components/HeroLabel.d.ts +13 -0
- package/dist/flows/deposit/widgets/onramp-amount-entry/compound/components/HeroLabel.js +1 -0
- package/dist/flows/deposit/widgets/onramp-amount-entry/compound/components/ProviderCard.d.ts +12 -0
- package/dist/flows/deposit/widgets/onramp-amount-entry/compound/components/ProviderCard.js +1 -0
- package/dist/flows/deposit/widgets/onramp-amount-entry/compound/components/ReceiveChip.d.ts +14 -0
- package/dist/flows/deposit/widgets/onramp-amount-entry/compound/components/ReceiveChip.js +1 -0
- package/dist/flows/deposit/widgets/onramp-amount-entry/compound/context.d.ts +14 -0
- package/dist/flows/deposit/widgets/{cash-amount-entry → onramp-amount-entry}/compound/context.js +1 -1
- package/dist/flows/deposit/widgets/onramp-amount-entry/compound/index.d.ts +4 -0
- package/dist/flows/deposit/widgets/onramp-amount-entry/compound/index.js +1 -0
- package/dist/flows/deposit/widgets/onramp-amount-entry/compound/types.d.ts +40 -0
- package/dist/flows/deposit/widgets/onramp-amount-entry/index.d.ts +1 -0
- package/dist/flows/deposit/widgets/onramp-amount-entry/index.js +1 -0
- package/dist/flows/deposit/widgets/onramp-confirm/OnrampConfirm.d.ts +52 -0
- package/dist/flows/deposit/widgets/onramp-confirm/OnrampConfirm.js +1 -0
- package/dist/flows/deposit/widgets/onramp-confirm/compound/OnrampConfirm.d.ts +44 -0
- package/dist/flows/deposit/widgets/onramp-confirm/compound/OnrampConfirm.js +1 -0
- package/dist/flows/deposit/widgets/onramp-confirm/compound/OnrampConfirm.slots.d.ts +31 -0
- package/dist/flows/deposit/widgets/onramp-confirm/compound/OnrampConfirm.slots.js +1 -0
- package/dist/flows/deposit/widgets/onramp-confirm/compound/OnrampConfirm.styles.js +1 -0
- package/dist/flows/deposit/widgets/onramp-confirm/compound/components/Body.d.ts +16 -0
- package/dist/flows/deposit/widgets/onramp-confirm/compound/components/Body.js +1 -0
- package/dist/flows/deposit/widgets/onramp-confirm/compound/components/Disclaimer.d.ts +21 -0
- package/dist/flows/deposit/widgets/onramp-confirm/compound/components/Disclaimer.js +1 -0
- package/dist/flows/deposit/widgets/onramp-confirm/compound/components/Header.d.ts +15 -0
- package/dist/flows/deposit/widgets/onramp-confirm/compound/components/Header.js +1 -0
- package/dist/flows/deposit/widgets/onramp-confirm/compound/components/Summary.d.ts +15 -0
- package/dist/flows/deposit/widgets/onramp-confirm/compound/components/Summary.js +1 -0
- package/dist/flows/deposit/widgets/onramp-confirm/compound/context.d.ts +46 -0
- package/dist/flows/deposit/widgets/{cash-confirm → onramp-confirm}/compound/context.js +1 -1
- package/dist/flows/deposit/widgets/onramp-confirm/compound/index.d.ts +4 -0
- package/dist/flows/deposit/widgets/onramp-confirm/compound/index.js +1 -0
- package/dist/flows/deposit/widgets/onramp-confirm/compound/types.d.ts +67 -0
- package/dist/flows/deposit/widgets/onramp-confirm/index.d.ts +1 -0
- package/dist/flows/deposit/widgets/onramp-confirm/index.js +1 -0
- package/dist/flows/deposit/widgets/onramp-currency-picker/OnrampCurrencyPicker.d.ts +39 -0
- package/dist/flows/deposit/widgets/onramp-currency-picker/OnrampCurrencyPicker.js +1 -0
- package/dist/flows/deposit/widgets/onramp-currency-picker/compound/OnrampCurrencyPicker.d.ts +37 -0
- package/dist/flows/deposit/widgets/onramp-currency-picker/compound/OnrampCurrencyPicker.js +1 -0
- package/dist/flows/deposit/widgets/onramp-currency-picker/compound/OnrampCurrencyPicker.slots.d.ts +17 -0
- package/dist/flows/deposit/widgets/onramp-currency-picker/compound/OnrampCurrencyPicker.slots.js +1 -0
- package/dist/flows/deposit/widgets/onramp-currency-picker/compound/OnrampCurrencyPicker.styles.js +1 -0
- package/dist/flows/deposit/widgets/onramp-currency-picker/compound/components/Body.d.ts +6 -0
- package/dist/flows/deposit/widgets/onramp-currency-picker/compound/components/Body.js +1 -0
- package/dist/flows/deposit/widgets/onramp-currency-picker/compound/components/CurrencyRow.d.ts +12 -0
- package/dist/flows/deposit/widgets/onramp-currency-picker/compound/components/CurrencyRow.js +1 -0
- package/dist/flows/deposit/widgets/onramp-currency-picker/compound/components/Empty.js +1 -0
- package/dist/flows/deposit/widgets/onramp-currency-picker/compound/components/Header.d.ts +10 -0
- package/dist/flows/deposit/widgets/onramp-currency-picker/compound/components/Header.js +1 -0
- package/dist/flows/deposit/widgets/onramp-currency-picker/compound/components/Search.d.ts +6 -0
- package/dist/flows/deposit/widgets/onramp-currency-picker/compound/components/Search.js +1 -0
- package/dist/flows/deposit/widgets/onramp-currency-picker/compound/context.js +1 -0
- package/dist/flows/deposit/widgets/onramp-currency-picker/compound/index.d.ts +3 -0
- package/dist/flows/deposit/widgets/onramp-currency-picker/compound/index.js +1 -0
- package/dist/flows/deposit/widgets/onramp-currency-picker/compound/types.d.ts +48 -0
- package/dist/flows/deposit/widgets/onramp-currency-picker/index.d.ts +1 -0
- package/dist/flows/deposit/widgets/onramp-currency-picker/index.js +1 -0
- package/dist/flows/deposit/widgets/onramp-payment-pending/OnrampPaymentPending.d.ts +50 -0
- package/dist/flows/deposit/widgets/onramp-payment-pending/OnrampPaymentPending.js +1 -0
- package/dist/flows/deposit/widgets/onramp-payment-pending/compound/OnrampPaymentPending.d.ts +68 -0
- package/dist/flows/deposit/widgets/onramp-payment-pending/compound/OnrampPaymentPending.js +1 -0
- package/dist/flows/deposit/widgets/onramp-payment-pending/compound/OnrampPaymentPending.slots.d.ts +17 -0
- package/dist/flows/deposit/widgets/onramp-payment-pending/compound/OnrampPaymentPending.slots.js +1 -0
- package/dist/flows/deposit/widgets/onramp-payment-pending/compound/components/Flow.d.ts +13 -0
- package/dist/flows/deposit/widgets/onramp-payment-pending/compound/components/Flow.js +1 -0
- package/dist/flows/deposit/widgets/onramp-payment-pending/compound/components/Flow.styles.js +1 -0
- package/dist/flows/deposit/widgets/onramp-payment-pending/compound/components/ReopenButton.d.ts +11 -0
- package/dist/flows/deposit/widgets/onramp-payment-pending/compound/components/ReopenButton.js +1 -0
- package/dist/flows/deposit/widgets/onramp-payment-pending/compound/context.d.ts +32 -0
- package/dist/flows/deposit/widgets/onramp-payment-pending/compound/context.js +1 -0
- package/dist/flows/deposit/widgets/onramp-payment-pending/compound/index.d.ts +3 -0
- package/dist/flows/deposit/widgets/onramp-payment-pending/compound/index.js +1 -0
- package/dist/flows/deposit/widgets/onramp-payment-pending/index.d.ts +1 -0
- package/dist/flows/deposit/widgets/onramp-payment-pending/index.js +1 -0
- package/dist/flows/deposit/widgets/onramp-provider-picker/OnrampProviderPicker.d.ts +38 -0
- package/dist/flows/deposit/widgets/onramp-provider-picker/OnrampProviderPicker.js +1 -0
- package/dist/flows/deposit/widgets/onramp-provider-picker/compound/OnrampProviderPicker.d.ts +35 -0
- package/dist/flows/deposit/widgets/onramp-provider-picker/compound/OnrampProviderPicker.js +1 -0
- package/dist/flows/deposit/widgets/onramp-provider-picker/compound/OnrampProviderPicker.slots.d.ts +19 -0
- package/dist/flows/deposit/widgets/onramp-provider-picker/compound/OnrampProviderPicker.slots.js +1 -0
- package/dist/flows/deposit/widgets/onramp-provider-picker/compound/OnrampProviderPicker.styles.js +1 -0
- package/dist/flows/deposit/widgets/onramp-provider-picker/compound/components/Body.d.ts +6 -0
- package/dist/flows/deposit/widgets/onramp-provider-picker/compound/components/Body.js +1 -0
- package/dist/flows/deposit/widgets/onramp-provider-picker/compound/components/Header.d.ts +10 -0
- package/dist/flows/deposit/widgets/onramp-provider-picker/compound/components/Header.js +1 -0
- package/dist/flows/deposit/widgets/onramp-provider-picker/compound/components/ProviderRow.d.ts +15 -0
- package/dist/flows/deposit/widgets/onramp-provider-picker/compound/components/ProviderRow.js +1 -0
- package/dist/flows/deposit/widgets/onramp-provider-picker/compound/context.js +1 -0
- package/dist/flows/deposit/widgets/onramp-provider-picker/compound/index.d.ts +3 -0
- package/dist/flows/deposit/widgets/onramp-provider-picker/compound/index.js +1 -0
- package/dist/flows/deposit/widgets/onramp-provider-picker/compound/types.d.ts +50 -0
- package/dist/flows/deposit/widgets/onramp-provider-picker/index.d.ts +1 -0
- package/dist/flows/deposit/widgets/onramp-provider-picker/index.js +1 -0
- package/dist/flows/deposit/widgets/success-state/SuccessState.js +1 -1
- package/dist/flows/deposit/widgets/transfer-crypto/compound/components/QrCode.js +1 -1
- package/dist/flows/withdraw/widgets/withdraw-form/compound/components/RecipientField.js +1 -1
- package/dist/format/index.d.ts +2 -1
- package/dist/format/index.js +1 -1
- package/dist/i18n/locales/ar.js +1 -1
- package/dist/i18n/locales/es.js +1 -1
- package/dist/i18n/locales/source-keys.d.ts +1 -1
- package/dist/icons/index.d.ts +4 -8
- package/dist/icons/index.js +1 -1
- package/dist/index.d.ts +3 -4
- package/dist/index.js +1 -1
- package/dist/package.js +1 -1
- package/dist/shared/attribution/Attribution.js +1 -1
- package/dist/shared/attribution/Attribution.styles.js +1 -1
- package/dist/shared/dialog/Frame.js +1 -1
- package/dist/shared/format/formatFiat.d.ts +31 -0
- package/dist/shared/format/formatFiat.js +1 -0
- package/dist/shared/icons/BellIcon.d.ts +7 -0
- package/dist/shared/icons/BellIcon.js +1 -0
- package/dist/shared/icons/BitcoinIcon.d.ts +5 -8
- package/dist/shared/icons/BitcoinIcon.js +1 -1
- package/dist/shared/icons/CardIcon.d.ts +3 -3
- package/dist/shared/icons/DirhamSignIcon.d.ts +16 -0
- package/dist/shared/icons/DirhamSignIcon.js +1 -0
- package/dist/shared/icons/SearchIcon.d.ts +7 -0
- package/dist/shared/icons/SearchIcon.js +1 -0
- package/dist/shared/orchestrator/index.js +1 -1
- package/dist/shared/orchestrator/useOnrampSessionWatcher.js +1 -0
- package/dist/shared/ui/AmountInput/useAutoShrinkFontSize.js +1 -1
- package/dist/shared/ui/Checkbox/Checkbox.d.ts +47 -0
- package/dist/shared/ui/Checkbox/Checkbox.js +1 -0
- package/dist/shared/ui/Checkbox/Checkbox.slots.d.ts +12 -0
- package/dist/shared/ui/Checkbox/Checkbox.slots.js +1 -0
- package/dist/shared/ui/Checkbox/Checkbox.styles.js +1 -0
- package/dist/shared/ui/Checkbox/index.d.ts +2 -0
- package/dist/shared/ui/Checkbox/index.js +1 -0
- package/dist/shared/ui/CurrencyGlyph/CurrencyGlyph.d.ts +36 -0
- package/dist/shared/ui/CurrencyGlyph/CurrencyGlyph.js +1 -0
- package/dist/shared/ui/CurrencyGlyph/CurrencyGlyph.slots.d.ts +12 -0
- package/dist/shared/ui/CurrencyGlyph/CurrencyGlyph.slots.js +1 -0
- package/dist/shared/ui/CurrencyGlyph/CurrencyGlyph.styles.js +1 -0
- package/dist/shared/ui/CurrencyGlyph/flags.js +1 -0
- package/dist/shared/ui/CurrencyGlyph/index.d.ts +2 -0
- package/dist/shared/ui/CurrencyGlyph/index.js +1 -0
- package/dist/shared/ui/DisclosureRow/DisclosureRow.d.ts +56 -0
- package/dist/shared/ui/DisclosureRow/DisclosureRow.js +1 -0
- package/dist/shared/ui/DisclosureRow/DisclosureRow.slots.d.ts +8 -0
- package/dist/shared/ui/DisclosureRow/DisclosureRow.slots.js +1 -0
- package/dist/shared/ui/DisclosureRow/DisclosureRow.styles.js +1 -0
- package/dist/shared/ui/DisclosureRow/index.d.ts +2 -0
- package/dist/shared/ui/DisclosureRow/index.js +1 -0
- package/dist/shared/ui/FiatSymbol/FiatAmount.d.ts +32 -0
- package/dist/shared/ui/FiatSymbol/FiatAmount.js +1 -0
- package/dist/shared/ui/FiatSymbol/FiatSymbol.d.ts +30 -0
- package/dist/shared/ui/FiatSymbol/FiatSymbol.js +1 -0
- package/dist/shared/ui/FiatSymbol/index.d.ts +2 -0
- package/dist/shared/ui/FiatSymbol/index.js +1 -0
- package/dist/shared/ui/Tabs/Tabs.d.ts +2 -2
- package/dist/shared/utils/logos/resolveLogoSrc.js +1 -1
- package/dist/shared/widgets/activity/compound/ActivityDetail.js +1 -1
- package/dist/shared/widgets/amount-entry/compound/AmountEntry.js +1 -1
- package/dist/shared/widgets/amount-entry/compound/AmountEntry.styles.js +1 -1
- package/dist/shared/widgets/amount-entry/compound/components/Footer.js +1 -1
- package/dist/shared/widgets/amount-entry/compound/components/Hero/Hero.d.ts +2 -1
- package/dist/shared/widgets/amount-entry/compound/components/Hero/Hero.js +1 -1
- package/dist/shared/widgets/amount-entry/compound/components/Hero/StaticBand.js +1 -1
- package/dist/shared/widgets/amount-entry/compound/types.d.ts +16 -0
- package/dist/shared/widgets/confirm-transfer/compound/components/Breakdown.js +1 -1
- package/dist/shared/widgets/error-state/compound/ErrorState.styles.js +1 -1
- package/dist/shared/widgets/error-state/compound/components/MoreDetails.d.ts +3 -3
- package/dist/shared/widgets/error-state/compound/components/MoreDetails.js +1 -1
- package/dist/shared/widgets/success-state/compound/SuccessState.styles.js +1 -1
- package/dist/shared/widgets/success-state/compound/components/MoreDetails.d.ts +2 -3
- package/dist/shared/widgets/success-state/compound/components/MoreDetails.js +1 -1
- package/dist/stridge/StridgeProvider.d.ts +0 -10
- package/dist/stridge/StridgeProvider.js +1 -1
- package/dist/stridge/stubs.js +1 -1
- package/dist/styles/index.css +118 -40
- package/dist/types.d.ts +3 -3
- package/dist/ui/index.d.ts +9 -1
- package/dist/ui/index.js +1 -1
- package/dist/version.js +1 -1
- package/dist/withdraw/compound/index.js +1 -1
- package/package.json +1 -1
- package/dist/flows/deposit/bindings/DepositBindings.d.ts +0 -87
- package/dist/flows/deposit/bindings/DepositBindings.js +0 -1
- package/dist/flows/deposit/bindings/index.d.ts +0 -1
- package/dist/flows/deposit/bindings/index.js +0 -1
- package/dist/flows/deposit/shared/cash.d.ts +0 -20
- package/dist/flows/deposit/shared/cash.js +0 -1
- package/dist/flows/deposit/widgets/cash-amount-entry/CashAmountEntry.d.ts +0 -71
- package/dist/flows/deposit/widgets/cash-amount-entry/CashAmountEntry.js +0 -1
- package/dist/flows/deposit/widgets/cash-amount-entry/compound/CashAmountEntry.d.ts +0 -69
- package/dist/flows/deposit/widgets/cash-amount-entry/compound/CashAmountEntry.js +0 -1
- package/dist/flows/deposit/widgets/cash-amount-entry/compound/CashAmountEntry.slots.d.ts +0 -16
- package/dist/flows/deposit/widgets/cash-amount-entry/compound/CashAmountEntry.slots.js +0 -1
- package/dist/flows/deposit/widgets/cash-amount-entry/compound/CashAmountEntry.styles.js +0 -1
- package/dist/flows/deposit/widgets/cash-amount-entry/compound/components/HeroLabel.d.ts +0 -13
- package/dist/flows/deposit/widgets/cash-amount-entry/compound/components/HeroLabel.js +0 -1
- package/dist/flows/deposit/widgets/cash-amount-entry/compound/components/MethodChip.d.ts +0 -18
- package/dist/flows/deposit/widgets/cash-amount-entry/compound/components/MethodChip.js +0 -1
- package/dist/flows/deposit/widgets/cash-amount-entry/compound/components/ReceiveChip.d.ts +0 -14
- package/dist/flows/deposit/widgets/cash-amount-entry/compound/components/ReceiveChip.js +0 -1
- package/dist/flows/deposit/widgets/cash-amount-entry/compound/index.d.ts +0 -3
- package/dist/flows/deposit/widgets/cash-amount-entry/compound/index.js +0 -1
- package/dist/flows/deposit/widgets/cash-amount-entry/compound/types.d.ts +0 -42
- package/dist/flows/deposit/widgets/cash-amount-entry/index.d.ts +0 -1
- package/dist/flows/deposit/widgets/cash-amount-entry/index.js +0 -1
- package/dist/flows/deposit/widgets/cash-confirm/CashConfirm.d.ts +0 -63
- package/dist/flows/deposit/widgets/cash-confirm/CashConfirm.js +0 -1
- package/dist/flows/deposit/widgets/cash-confirm/compound/CashConfirm.d.ts +0 -54
- package/dist/flows/deposit/widgets/cash-confirm/compound/CashConfirm.js +0 -1
- package/dist/flows/deposit/widgets/cash-confirm/compound/CashConfirm.slots.d.ts +0 -33
- package/dist/flows/deposit/widgets/cash-confirm/compound/CashConfirm.slots.js +0 -1
- package/dist/flows/deposit/widgets/cash-confirm/compound/CashConfirm.styles.js +0 -1
- package/dist/flows/deposit/widgets/cash-confirm/compound/cashConfirmDimensions.js +0 -1
- package/dist/flows/deposit/widgets/cash-confirm/compound/components/ApplePayBody.d.ts +0 -15
- package/dist/flows/deposit/widgets/cash-confirm/compound/components/ApplePayBody.js +0 -1
- package/dist/flows/deposit/widgets/cash-confirm/compound/components/Body.d.ts +0 -22
- package/dist/flows/deposit/widgets/cash-confirm/compound/components/Body.js +0 -1
- package/dist/flows/deposit/widgets/cash-confirm/compound/components/BodyLabel.js +0 -1
- package/dist/flows/deposit/widgets/cash-confirm/compound/components/CardBody.d.ts +0 -16
- package/dist/flows/deposit/widgets/cash-confirm/compound/components/CardBody.js +0 -1
- package/dist/flows/deposit/widgets/cash-confirm/compound/components/CardInputRow.icons.js +0 -1
- package/dist/flows/deposit/widgets/cash-confirm/compound/components/CardInputRow.js +0 -1
- package/dist/flows/deposit/widgets/cash-confirm/compound/components/CardInputRow.keys.js +0 -1
- package/dist/flows/deposit/widgets/cash-confirm/compound/components/CardInputRow.state.js +0 -1
- package/dist/flows/deposit/widgets/cash-confirm/compound/components/CardInputRow.styles.js +0 -1
- package/dist/flows/deposit/widgets/cash-confirm/compound/components/GooglePayBody.d.ts +0 -16
- package/dist/flows/deposit/widgets/cash-confirm/compound/components/GooglePayBody.js +0 -1
- package/dist/flows/deposit/widgets/cash-confirm/compound/components/Header.d.ts +0 -21
- package/dist/flows/deposit/widgets/cash-confirm/compound/components/Header.js +0 -1
- package/dist/flows/deposit/widgets/cash-confirm/compound/components/Summary.d.ts +0 -17
- package/dist/flows/deposit/widgets/cash-confirm/compound/components/Summary.js +0 -1
- package/dist/flows/deposit/widgets/cash-confirm/compound/components/cardFormat.js +0 -1
- package/dist/flows/deposit/widgets/cash-confirm/compound/index.d.ts +0 -3
- package/dist/flows/deposit/widgets/cash-confirm/compound/index.js +0 -1
- package/dist/flows/deposit/widgets/cash-confirm/compound/types.d.ts +0 -66
- package/dist/flows/deposit/widgets/cash-confirm/index.d.ts +0 -1
- package/dist/flows/deposit/widgets/cash-confirm/index.js +0 -1
- package/dist/flows/deposit/widgets/cash-confirm/mocks.js +0 -1
- package/dist/shared/icons/AmexIcon.d.ts +0 -14
- package/dist/shared/icons/AmexIcon.js +0 -1
- package/dist/shared/icons/ApplePayIcon.d.ts +0 -15
- package/dist/shared/icons/ApplePayIcon.js +0 -1
- package/dist/shared/icons/CashIcon.d.ts +0 -16
- package/dist/shared/icons/CashIcon.js +0 -1
- package/dist/shared/icons/DiscoverIcon.d.ts +0 -14
- package/dist/shared/icons/DiscoverIcon.js +0 -1
- package/dist/shared/icons/GooglePayIcon.d.ts +0 -15
- package/dist/shared/icons/GooglePayIcon.js +0 -1
- package/dist/shared/icons/MastercardIcon.d.ts +0 -16
- package/dist/shared/icons/MastercardIcon.js +0 -1
- package/dist/shared/icons/VisaIcon.d.ts +0 -15
- package/dist/shared/icons/VisaIcon.js +0 -1
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { CSSProperties, Ref } from "react";
|
|
2
|
+
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
|
+
|
|
4
|
+
//#region src/shared/ui/Checkbox/Checkbox.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* Accessible checkbox control — a themed box that renders a check indicator when ticked. Wraps Base
|
|
7
|
+
* UI's headless `Checkbox` (keyboard + screen-reader semantics, hidden native input) and stamps the
|
|
8
|
+
* kit's token-driven surface. Label the control via `aria-label` / `aria-labelledby` — the box
|
|
9
|
+
* itself carries no visible label, so rich label content (e.g. a sentence with inline links) can
|
|
10
|
+
* live as a sibling without the links toggling the box.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```tsx
|
|
14
|
+
* <Checkbox checked={agreed} onCheckedChange={setAgreed} aria-labelledby="consent-text" />
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
declare function Checkbox({
|
|
18
|
+
checked,
|
|
19
|
+
defaultChecked,
|
|
20
|
+
onCheckedChange,
|
|
21
|
+
disabled,
|
|
22
|
+
className,
|
|
23
|
+
style,
|
|
24
|
+
...props
|
|
25
|
+
}: Checkbox.Props): _$react_jsx_runtime0.JSX.Element;
|
|
26
|
+
declare namespace Checkbox {
|
|
27
|
+
interface Props {
|
|
28
|
+
/** Controlled checked state. */
|
|
29
|
+
checked?: boolean;
|
|
30
|
+
/** Initial checked state for uncontrolled usage. */
|
|
31
|
+
defaultChecked?: boolean;
|
|
32
|
+
/** Fires with the next checked state on toggle. */
|
|
33
|
+
onCheckedChange?: (checked: boolean) => void;
|
|
34
|
+
/** When true, the control is non-interactive and dimmed. */
|
|
35
|
+
disabled?: boolean;
|
|
36
|
+
/** DOM id (associate an external `<label htmlFor>` or `aria-labelledby` target). */
|
|
37
|
+
id?: string;
|
|
38
|
+
"aria-label"?: string;
|
|
39
|
+
"aria-labelledby"?: string;
|
|
40
|
+
"aria-describedby"?: string;
|
|
41
|
+
className?: string;
|
|
42
|
+
style?: CSSProperties;
|
|
43
|
+
ref?: Ref<HTMLButtonElement>;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
//#endregion
|
|
47
|
+
export { Checkbox };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{joinClassNames as e}from"../../utils/joinClassNames.js";import{CheckIcon as t}from"../../icons/CheckIcon.js";import"../../../icons/index.js";import{CHECKBOX_SLOTS as n}from"./Checkbox.slots.js";import{styles as r}from"./Checkbox.styles.js";import{jsx as i}from"react/jsx-runtime";import*as a from"@stylexjs/stylex";import{Checkbox as o}from"@base-ui/react/checkbox";function s({checked:s,defaultChecked:c,onCheckedChange:l,disabled:u,className:d,style:f,...p}){let m=a.props(r.root,u?r.disabled:null);return i(o.Root,{...s===void 0?{}:{checked:s},...c===void 0?{}:{defaultChecked:c},...l?{onCheckedChange:e=>l(e)}:{},...u===void 0?{}:{disabled:u},"data-stridge-slot":n.root,...p,className:e(m.className,d),style:{...m.style,...f},children:i(o.Indicator,{"data-stridge-slot":n.indicator,...a.props(r.indicator),children:i(t,{"aria-hidden":!0,...a.props(r.icon)})})})}export{s as Checkbox};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
//#region src/shared/ui/Checkbox/Checkbox.slots.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* `data-stridge-slot` values for {@link import("./Checkbox").Checkbox}. Host CSS targets
|
|
4
|
+
* `[data-stridge-slot="checkbox"]` / `"checkbox-indicator"` to restyle the control.
|
|
5
|
+
*/
|
|
6
|
+
declare const CHECKBOX_SLOTS: {
|
|
7
|
+
readonly root: "checkbox";
|
|
8
|
+
readonly indicator: "checkbox-indicator";
|
|
9
|
+
};
|
|
10
|
+
type CheckboxSlot = (typeof CHECKBOX_SLOTS)[keyof typeof CHECKBOX_SLOTS];
|
|
11
|
+
//#endregion
|
|
12
|
+
export { CHECKBOX_SLOTS, CheckboxSlot };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e={root:`checkbox`,indicator:`checkbox-indicator`};export{e as CHECKBOX_SLOTS};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e={root:{"Checkbox__styles.root":`Checkbox__styles.root`,"position-kVAEAm":`x1n2onr6`,"display-k1xSpc":`x3nfvp2`,"alignItems-kGNEyG":`x6s0dn4`,"justifyContent-kjj79g":`xl56j7k`,"flexShrink-kmuXW":`x2lah0s`,"width-kzqmXN":`x1xp8n7a`,"height-kZKoxP":`xmix8c7`,"padding-kmVPX3":`x1717udv`,"margin-kogj98":`x1ghz6dp`,"borderRadius-kaIpWk":`x143j3yi`,"borderWidth-kMzoRj":`xvndefy`,"borderStyle-ksu8eU":`x1y0btm7`,"borderColor-kVAM5u":`x12c9lpl`,"backgroundColor-kWkggS":`x19u6ldj`,"appearance-kysU6D":`xjyslct`,"cursor-kkrTdU":`x1ypdohk`,"transitionProperty-k1ekBW":`x11vqxbs`,"transitionDuration-kIyJzY":`xx6bhzk`,"transitionTimingFunction-kAMwcw":`x9lcvmn`,"outline-kI3sdo":`x1a2a7pz`,"boxShadow-kGVxlE":`x159teg`,$$css:`@stridge/kit:src/shared/ui/Checkbox/Checkbox.styles.ts:4`},disabled:{"Checkbox__styles.disabled":`Checkbox__styles.disabled`,"cursor-kkrTdU":`x1h6gzvc`,"opacity-kSiTet":`xbyyjgo`,$$css:`@stridge/kit:src/shared/ui/Checkbox/Checkbox.styles.ts:30`},indicator:{"Checkbox__styles.indicator":`Checkbox__styles.indicator`,"position-kVAEAm":`x10l6tqk`,"top-k87sOh":`x13vifvy`,"insetInlineStart-kLqNvP":`x1o0tod`,"display-k1xSpc":`x78zum5`,"alignItems-kGNEyG":`x6s0dn4`,"justifyContent-kjj79g":`xl56j7k`,"width-kzqmXN":`xh8yej3`,"height-kZKoxP":`x5yr21d`,"borderRadius-kaIpWk":`x2zroun`,"backgroundColor-kWkggS":`xdmxa9o`,$$css:`@stridge/kit:src/shared/ui/Checkbox/Checkbox.styles.ts:34`},icon:{"Checkbox__styles.icon":`Checkbox__styles.icon`,"width-kzqmXN":`xsmyaan`,"height-kZKoxP":`x1kpxq89`,"color-kMwMTN":`x1kho0d4`,"strokeWidth-kfJifR":`xqjr0vm`,$$css:`@stridge/kit:src/shared/ui/Checkbox/Checkbox.styles.ts:46`}};export{e as styles};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./Checkbox.slots.js";import"./Checkbox.js";
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { ComponentProps } from "react";
|
|
2
|
+
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
|
+
|
|
4
|
+
//#region src/shared/ui/CurrencyGlyph/CurrencyGlyph.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* Currency emblem for currency rows and the amount-entry chip. Resolves the currency's country flag
|
|
7
|
+
* by CDN convention (clipped to a circle) and renders it via {@link Image}; when the flag 404s or
|
|
8
|
+
* the currency has no mapped flag, the `Image` fallback shows a themed circle with the currency
|
|
9
|
+
* `symbol` (or 3-letter `code`). A driver-supplied `iconUrl` overrides the convention flag.
|
|
10
|
+
* RTL-safe and crisp at every density.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```tsx
|
|
14
|
+
* <CurrencyGlyph code="EUR" symbol="€" />
|
|
15
|
+
* <CurrencyGlyph code="JPY" symbol="¥" size={18} />
|
|
16
|
+
* ```
|
|
17
|
+
*/
|
|
18
|
+
declare function CurrencyGlyph({
|
|
19
|
+
code,
|
|
20
|
+
symbol,
|
|
21
|
+
iconUrl,
|
|
22
|
+
size,
|
|
23
|
+
className,
|
|
24
|
+
style,
|
|
25
|
+
...props
|
|
26
|
+
}: CurrencyGlyph.Props): _$react_jsx_runtime0.JSX.Element;
|
|
27
|
+
declare namespace CurrencyGlyph {
|
|
28
|
+
type Props = Omit<ComponentProps<"span">, "children"> & {
|
|
29
|
+
/** ISO-4217 currency code (e.g. `"USD"`). Drives the bundled-flag lookup + the fallback glyph. */code: string; /** Currency symbol (e.g. `"$"`). Rendered when no flag is bundled and it is 1–2 chars. */
|
|
30
|
+
symbol?: string; /** Optional driver-supplied emblem URL — overrides the bundled flag + symbol fallback. */
|
|
31
|
+
iconUrl?: string; /** Diameter in pixels. Defaults to `36` (row size); pass `18`–`20` for an inline chip. */
|
|
32
|
+
size?: number;
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
//#endregion
|
|
36
|
+
export { CurrencyGlyph };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{joinClassNames as e}from"../../utils/joinClassNames.js";import{Image as t}from"../Image/Image.js";import"../Image/index.js";import{CURRENCY_GLYPH_SLOTS as n}from"./CurrencyGlyph.slots.js";import{styles as r}from"./CurrencyGlyph.styles.js";import{buildCurrencyFlagUrl as i}from"./flags.js";import{jsx as a}from"react/jsx-runtime";import*as o from"@stylexjs/stylex";function s(e,t){let n=t?.trim();return n&&n.length<=2?n:e.slice(0,3).toUpperCase()}function c({code:c,symbol:l,iconUrl:u,size:d=36,className:f,style:p,...m}){let h=u??i(c);if(h)return a(t,{src:h,alt:c,size:d,shape:`circle`,letter:s(c,l),"data-stridge-slot":n.root,...m,...f?{className:f}:{},...p?{style:p}:{}});let g=o.props(r.root),_=o.props(r.label),v=Math.max(9,Math.round(d*.4));return a(`span`,{"data-stridge-slot":n.root,"aria-hidden":`true`,...m,className:e(g.className,f),style:{...g.style,width:`${d}px`,height:`${d}px`,fontSize:`${v}px`,...p},children:a(`span`,{"data-stridge-slot":n.label,..._,children:s(c,l)})})}export{c as CurrencyGlyph};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
//#region src/shared/ui/CurrencyGlyph/CurrencyGlyph.slots.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* `data-stridge-slot` values for {@link import("./CurrencyGlyph").CurrencyGlyph}. Host CSS targets
|
|
4
|
+
* `[data-stridge-slot="currency-glyph"]` to restyle the chip without reaching into kit internals.
|
|
5
|
+
*/
|
|
6
|
+
declare const CURRENCY_GLYPH_SLOTS: {
|
|
7
|
+
readonly root: "currency-glyph";
|
|
8
|
+
readonly label: "currency-glyph-label";
|
|
9
|
+
};
|
|
10
|
+
type CurrencyGlyphSlot = (typeof CURRENCY_GLYPH_SLOTS)[keyof typeof CURRENCY_GLYPH_SLOTS];
|
|
11
|
+
//#endregion
|
|
12
|
+
export { CURRENCY_GLYPH_SLOTS, CurrencyGlyphSlot };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e={root:`currency-glyph`,label:`currency-glyph-label`};export{e as CURRENCY_GLYPH_SLOTS};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e={root:{"CurrencyGlyph__styles.root":`CurrencyGlyph__styles.root`,"display-k1xSpc":`x3nfvp2`,"alignItems-kGNEyG":`x6s0dn4`,"justifyContent-kjj79g":`xl56j7k`,"flexShrink-kmuXW":`x2lah0s`,"borderRadius-kaIpWk":`x1npxkrn`,"backgroundColor-kWkggS":`x1qkydf4`,"color-kMwMTN":`xzn0pkc`,"borderWidth-kMzoRj":`xmkeg23`,"borderStyle-ksu8eU":`x1y0btm7`,"borderColor-kVAM5u":`x12c9lpl`,"fontFamily-kMv6JI":`xlaww2m`,"fontWeight-k63SB2":`x1qvi77d`,"lineHeight-kLWn49":`xo5v014`,"overflow-kVQacm":`xb3r6kr`,"userSelect-kfSwDN":`x87ps6o`,$$css:`@stridge/kit:src/shared/ui/CurrencyGlyph/CurrencyGlyph.styles.ts:4`},label:{"CurrencyGlyph__styles.label":`CurrencyGlyph__styles.label`,"display-k1xSpc":`x1lliihq`,"textAlign-k9WMMc":`x2b8uid`,"letterSpacing-kb6lSQ":`x17krmmv`,$$css:`@stridge/kit:src/shared/ui/CurrencyGlyph/CurrencyGlyph.styles.ts:21`}};export{e as styles};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e={USD:`us`,EUR:`eu`,GBP:`gb`,JPY:`jp`,CNY:`cn`,AUD:`au`,CAD:`ca`,CHF:`ch`,HKD:`hk`,NZD:`nz`,SGD:`sg`,SEK:`se`,NOK:`no`,DKK:`dk`,PLN:`pl`,CZK:`cz`,HUF:`hu`,RON:`ro`,TRY:`tr`,RUB:`ru`,UAH:`ua`,AED:`ae`,SAR:`sa`,QAR:`qa`,KWD:`kw`,BHD:`bh`,OMR:`om`,ILS:`il`,INR:`in`,PKR:`pk`,BDT:`bd`,LKR:`lk`,IDR:`id`,MYR:`my`,PHP:`ph`,VND:`vn`,THB:`th`,KRW:`kr`,TWD:`tw`,KZT:`kz`,ZAR:`za`,NGN:`ng`,EGP:`eg`,KES:`ke`,GHS:`gh`,MAD:`ma`,BRL:`br`,MXN:`mx`,ARS:`ar`,CLP:`cl`,COP:`co`,PEN:`pe`,UYU:`uy`};function t(t){let n=e[t.toUpperCase()];return n?`https://raw.githubusercontent.com/lipis/flag-icons/main/flags/1x1/${n}.svg`:void 0}export{t as buildCurrencyFlagUrl};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./CurrencyGlyph.slots.js";import"./CurrencyGlyph.js";
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { Details } from "../Details/Details.js";
|
|
2
|
+
import { ComponentProps, ReactNode } from "react";
|
|
3
|
+
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
4
|
+
|
|
5
|
+
//#region src/shared/ui/DisclosureRow/DisclosureRow.d.ts
|
|
6
|
+
/**
|
|
7
|
+
* Inline "More details" disclosure: a labelled {@link Details.Row} trigger with a rotating chevron
|
|
8
|
+
* that expands a panel of sibling rows below. The single shared shape behind every disclosure of
|
|
9
|
+
* this kind in the kit — success, failure / error, and the onramp confirm breakdown — so they stay
|
|
10
|
+
* pixel-identical (no per-call hover shift, the same quarter-turn chevron animation).
|
|
11
|
+
*
|
|
12
|
+
* Controlled (`open` + `onOpenChange`) or uncontrolled (`defaultOpen`). Self-gating stays with the
|
|
13
|
+
* caller: render `<DisclosureRow>` only when there's something to reveal — it always shows its
|
|
14
|
+
* trigger.
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* ```tsx
|
|
18
|
+
* <DisclosureRow label={t`More details`} triggerProps={{ "data-stridge-slot": SLOTS.moreDetailsTrigger }}>
|
|
19
|
+
* <SubmittedAtRow />
|
|
20
|
+
* <DepositTxRow />
|
|
21
|
+
* </DisclosureRow>
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
24
|
+
declare function DisclosureRow({
|
|
25
|
+
label,
|
|
26
|
+
open: openProp,
|
|
27
|
+
defaultOpen,
|
|
28
|
+
onOpenChange,
|
|
29
|
+
children,
|
|
30
|
+
triggerProps
|
|
31
|
+
}: DisclosureRow.Props): _$react_jsx_runtime0.JSX.Element;
|
|
32
|
+
declare namespace DisclosureRow {
|
|
33
|
+
interface Props {
|
|
34
|
+
/** Leading-edge label rendered in the trigger row (e.g. "More details"). */
|
|
35
|
+
label: ReactNode;
|
|
36
|
+
/** Controlled open state. Omit for uncontrolled — seed the initial state with `defaultOpen`. */
|
|
37
|
+
open?: boolean;
|
|
38
|
+
/** Initial open state when uncontrolled. Defaults to `false`. */
|
|
39
|
+
defaultOpen?: boolean;
|
|
40
|
+
/** Fires with the next open state whenever the trigger toggles. */
|
|
41
|
+
onOpenChange?: (open: boolean) => void;
|
|
42
|
+
/** Panel content revealed when open — typically a stack of sibling `Details.Row`s. */
|
|
43
|
+
children?: ReactNode;
|
|
44
|
+
/**
|
|
45
|
+
* Extra props forwarded to the trigger `Details.Row` — pass a call-site `data-stridge-slot`
|
|
46
|
+
* (so existing slot queries keep resolving), `aria-label`, or className/style overrides. The
|
|
47
|
+
* `data-*` index signature is explicit because React's DOM prop types reject `data-` keys in
|
|
48
|
+
* an object literal.
|
|
49
|
+
*/
|
|
50
|
+
triggerProps?: Omit<ComponentProps<typeof Details.Row>, "label" | "children"> & {
|
|
51
|
+
[dataAttribute: `data-${string}`]: string | undefined;
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
//#endregion
|
|
56
|
+
export { DisclosureRow };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{joinClassNames as e}from"../../utils/joinClassNames.js";import{ChevronRightIcon as t}from"../../icons/ChevronRightIcon.js";import"../../../icons/index.js";import{Collapsible as n}from"../Collapsible/Collapsible.js";import"../Collapsible/index.js";import{Details as r}from"../Details/Details.js";import"../Details/index.js";import{useDirectionalChevronTransform as i}from"../../dialog/useDirectionalChevronTransform.js";import{DISCLOSURE_ROW_SLOTS as a}from"./DisclosureRow.slots.js";import{styles as o}from"./DisclosureRow.styles.js";import{useCallback as s,useState as c}from"react";import{jsx as l,jsxs as u}from"react/jsx-runtime";import*as d from"@stylexjs/stylex";function f({label:f,open:p,defaultOpen:m=!1,onOpenChange:h,children:g,triggerProps:_}){let v=typeof p==`boolean`,[y,b]=c(m),x=v?p:y,S=s(e=>{v||b(e),h?.(e)},[v,h]),C=d.props(o.trigger,x?null:o.triggerClosed),w=d.props(o.chevron),T=i(x),{className:E,style:D,...O}=_??{};return u(n,{open:x,onOpenChange:S,children:[l(n.Trigger,{nativeButton:!1,render:l(r.Row,{"data-stridge-slot":a.trigger,...O,label:f,className:e(C.className,E),style:{...C.style,...D},children:l(t,{"aria-hidden":!0,"data-stridge-slot":a.chevron,className:w.className,style:{...w.style,transform:T}})})}),l(n.Panel,{children:g})]})}export{f as DisclosureRow};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
//#region src/shared/ui/DisclosureRow/DisclosureRow.slots.d.ts
|
|
2
|
+
declare const DISCLOSURE_ROW_SLOTS: {
|
|
3
|
+
readonly trigger: "disclosure-row-trigger";
|
|
4
|
+
readonly chevron: "disclosure-row-chevron";
|
|
5
|
+
};
|
|
6
|
+
type DisclosureRowSlot = (typeof DISCLOSURE_ROW_SLOTS)[keyof typeof DISCLOSURE_ROW_SLOTS];
|
|
7
|
+
//#endregion
|
|
8
|
+
export { DISCLOSURE_ROW_SLOTS, DisclosureRowSlot };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e={trigger:`disclosure-row-trigger`,chevron:`disclosure-row-chevron`};export{e as DISCLOSURE_ROW_SLOTS};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e={trigger:{"DisclosureRow__styles.trigger":`DisclosureRow__styles.trigger`,"cursor-kkrTdU":`x1ypdohk`,"outline-kI3sdo":`x1a2a7pz`,"userSelect-kfSwDN":`x87ps6o`,"WebkitTapHighlightColor-kQizK7":`x1i10hfl`,":focus-visible_boxShadow-kEtg5x":`xf4a2cz`,$$css:`@stridge/kit:src/shared/ui/DisclosureRow/DisclosureRow.styles.ts:8`},triggerClosed:{"DisclosureRow__styles.triggerClosed":`DisclosureRow__styles.triggerClosed`,"borderBottomWidth-kt9PQ7":`x1qhh985`,$$css:`@stridge/kit:src/shared/ui/DisclosureRow/DisclosureRow.styles.ts:18`},chevron:{"DisclosureRow__styles.chevron":`DisclosureRow__styles.chevron`,"width-kzqmXN":`x6jxa94`,"height-kZKoxP":`x1v9usgg`,"flexShrink-kmuXW":`x2lah0s`,"color-kMwMTN":`x137ha3m`,"strokeWidth-kfJifR":`xhr4kjn`,"transformOrigin-k3nNDw":`x1g0ag68`,"transitionProperty-k1ekBW":`x11xpdln`,"transitionDuration-kIyJzY":`x9dyr19 x12w9bfk`,"transitionTimingFunction-kAMwcw":`x9lcvmn`,$$css:`@stridge/kit:src/shared/ui/DisclosureRow/DisclosureRow.styles.ts:22`}};export{e as styles};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./DisclosureRow.slots.js";import"./DisclosureRow.js";
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
|
+
|
|
3
|
+
//#region src/shared/ui/FiatSymbol/FiatAmount.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* Props for {@link FiatAmount}.
|
|
6
|
+
*/
|
|
7
|
+
interface FiatAmountProps {
|
|
8
|
+
/** Numeric amount in major units (e.g. `28.5`). Formatted locale-aware via `Intl.NumberFormat`. */
|
|
9
|
+
value: number;
|
|
10
|
+
/** ISO-4217 currency code (e.g. `"AED"`, `"EUR"`). */
|
|
11
|
+
currency: string;
|
|
12
|
+
/** BCP-47 locale driving grouping, decimals, and symbol placement (e.g. `i18n.locale`, `ctx.locale`). */
|
|
13
|
+
locale?: Intl.LocalesArgument;
|
|
14
|
+
/** Extra `Intl.NumberFormat` overrides merged on top of the currency defaults (e.g. fraction digits). */
|
|
15
|
+
format?: Intl.NumberFormatOptions;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Render a fiat amount with its symbol, locale-correct, where the symbol routes through
|
|
19
|
+
* {@link FiatSymbol}. Identical output to `formatFiat` for every currency except those whose modern
|
|
20
|
+
* sign lacks font coverage (the UAE dirham), which draw the official SVG inline instead of a tofu
|
|
21
|
+
* box. Splits the formatted output via `formatToParts` so the symbol is swapped in place — grouping,
|
|
22
|
+
* decimals, and symbol-before/after placement all follow the currency's CLDR rules. The SVG inherits
|
|
23
|
+
* the surrounding `font-size` and `color`, so it sits like text wherever this is used.
|
|
24
|
+
*/
|
|
25
|
+
declare function FiatAmount({
|
|
26
|
+
value,
|
|
27
|
+
currency,
|
|
28
|
+
locale,
|
|
29
|
+
format
|
|
30
|
+
}: FiatAmountProps): _$react_jsx_runtime0.JSX.Element;
|
|
31
|
+
//#endregion
|
|
32
|
+
export { FiatAmount, FiatAmountProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{FiatSymbol as e}from"./FiatSymbol.js";import{Fragment as t,jsx as n,jsxs as r}from"react/jsx-runtime";function i({value:i,currency:a,locale:o,format:s}){let c=new Intl.NumberFormat(o,{style:`currency`,currency:a,currencyDisplay:`narrowSymbol`,...s}).formatToParts(i),l=c.findIndex(e=>e.type===`currency`);if(l===-1)return n(t,{children:c.map(e=>e.value).join(``)});let u=c.slice(0,l).map(e=>e.value).join(``),d=c.slice(l+1).map(e=>e.value).join(``);return r(`span`,{style:{whiteSpace:`nowrap`},children:[u,n(e,{code:a,symbol:c[l]?.value}),d]})}export{i as FiatAmount};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { SVGProps } from "react";
|
|
2
|
+
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
|
+
|
|
4
|
+
//#region src/shared/ui/FiatSymbol/FiatSymbol.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* Props for {@link FiatSymbol}.
|
|
7
|
+
*/
|
|
8
|
+
interface FiatSymbolProps {
|
|
9
|
+
/** ISO-4217 currency code (e.g. `"AED"`, `"USD"`) — drives the SVG-sign special-case lookup. */
|
|
10
|
+
code: string;
|
|
11
|
+
/** Pre-resolved text symbol rendered when the code has no dedicated SVG sign (`"$"`, `"€"`, `"¥"`). */
|
|
12
|
+
symbol?: string;
|
|
13
|
+
/** Props forwarded to the SVG sign when one is used — e.g. `style` to tweak its size or alignment. */
|
|
14
|
+
iconProps?: SVGProps<SVGSVGElement>;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Render a fiat currency's symbol. For a currency whose modern sign has no font coverage yet —
|
|
18
|
+
* currently only the UAE dirham ({@link DirhamSignIcon}, `U+20C3`) — this draws the official mark as
|
|
19
|
+
* an inline SVG that inherits the surrounding font size and colour, sidestepping the tofu box the
|
|
20
|
+
* bare codepoint would produce on today's devices. Every other currency renders its text `symbol`
|
|
21
|
+
* (falling back to the bare `code`), so the component is a drop-in anywhere a symbol string was
|
|
22
|
+
* printed.
|
|
23
|
+
*/
|
|
24
|
+
declare function FiatSymbol({
|
|
25
|
+
code,
|
|
26
|
+
symbol,
|
|
27
|
+
iconProps
|
|
28
|
+
}: FiatSymbolProps): _$react_jsx_runtime0.JSX.Element;
|
|
29
|
+
//#endregion
|
|
30
|
+
export { FiatSymbol, FiatSymbolProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{DirhamSignIcon as e}from"../../icons/DirhamSignIcon.js";import"../../../icons/index.js";import{Fragment as t,jsx as n}from"react/jsx-runtime";const r={AED:e};function i({code:e,symbol:i,iconProps:a}){let o=r[e.toUpperCase()];return o?n(o,{"aria-label":e,...a}):n(t,{children:i??e})}export{i as FiatSymbol};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./FiatSymbol.js";import"./FiatAmount.js";
|
|
@@ -26,11 +26,11 @@ type TabsVariant = "default" | "line" | "ghost";
|
|
|
26
26
|
* <Tabs.Root defaultValue="crypto">
|
|
27
27
|
* <Tabs.List variant="default">
|
|
28
28
|
* <Tabs.Tab value="crypto">Crypto</Tabs.Tab>
|
|
29
|
-
* <Tabs.Tab value="
|
|
29
|
+
* <Tabs.Tab value="onramp">Cash</Tabs.Tab>
|
|
30
30
|
* <Tabs.Indicator />
|
|
31
31
|
* </Tabs.List>
|
|
32
32
|
* <Tabs.Panel value="crypto">…</Tabs.Panel>
|
|
33
|
-
* <Tabs.Panel value="
|
|
33
|
+
* <Tabs.Panel value="onramp">…</Tabs.Panel>
|
|
34
34
|
* </Tabs.Root>
|
|
35
35
|
* ```
|
|
36
36
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{buildCanonicalLogoUrl as e,buildCanonicalNativeLogoUrl as t,buildChainLogoUrl as n,buildErc20LogoUrl as r}from"./conventionUrls.js";function i(i){if(i.pinnedLogoUrl)return[i.pinnedLogoUrl];let a=[];if(i.isNative){let e=t(i.symbol);e&&a.push(e)}else{let
|
|
1
|
+
import{buildCanonicalLogoUrl as e,buildCanonicalNativeLogoUrl as t,buildChainLogoUrl as n,buildErc20LogoUrl as r}from"./conventionUrls.js";function i(i){if(i.pinnedLogoUrl)return[i.pinnedLogoUrl];let a=[];if(i.isNative){let e=t(i.symbol);e&&a.push(e)}else{let n=e(i.symbol);n&&a.push(n);let r=t(i.symbol);r&&a.push(r)}let s=i.isNative?n(i.chainId):r(i.chainId,i.address);return s&&a.push(s),i.logoUrl&&a.push(i.logoUrl),o(a)}function a(e){let t=[],r=n(e.chainId);return r&&t.push(r),e.chainLogoUrl&&t.push(e.chainLogoUrl),o(t)}function o(e){let t=new Set,n=[];for(let r of e)t.has(r)||(t.add(r),n.push(r));return n}export{a as resolveChainLogoChain,i as resolveTokenLogoChain};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import{useLingui as e}from"../../../i18n/useLingui.js";import"../../../../i18n/index.js";import{useFailureReasonForKind as t}from"../../../orchestrator/failureReason.js";import"../../../orchestrator/index.js";import{Step as n,Steps as r}from"../../../ui/Steps/Steps.js";import"../../../ui/Steps/index.js";import{
|
|
1
|
+
"use client";import{useLingui as e}from"../../../i18n/useLingui.js";import"../../../../i18n/index.js";import{useFailureReasonForKind as t}from"../../../orchestrator/failureReason.js";import"../../../orchestrator/index.js";import{Step as n,Steps as r}from"../../../ui/Steps/Steps.js";import"../../../ui/Steps/index.js";import{ProcessingState as i}from"../../processing-state/compound/ProcessingState.js";import"../../processing-state/compound/index.js";import{ErrorState as a}from"../../error-state/compound/ErrorState.js";import"../../error-state/compound/index.js";import{SuccessState as o}from"../../success-state/compound/SuccessState.js";import"../../success-state/compound/index.js";import{useActivitySource as s}from"./context.js";import{ActivityListHeader as c}from"./components/ActivityHeader.js";import{toAssetDescriptor as l}from"../../asset-descriptor.js";import{settlementToWidgetProps as u}from"../adapters/settlementToWidgetProps.js";import{createContext as d,use as f,useEffect as p}from"react";import{jsx as m,jsxs as h}from"react/jsx-runtime";function g(e,t,n){return t===`withdraw`?n===`pending`?e.withdrawPending:n===`succeeded`?e.withdrawSucceeded:e.withdrawFailed:n===`pending`?e.depositPending:n===`succeeded`?e.depositSucceeded:e.depositFailed}const _=d(null);_.displayName=`ActivityDetailContext`;function v({children:t}){let i=s(`ActivityDetail`),{_:a}=e(),o=i.entity,c=o.status===`ready`||o.status===`stale`,l=c?o.raw:void 0,d=i.settlementId,f=l&&d?u(l,d,i.settlementContext):null,v=c&&d!==void 0&&!f,S=i.back,C=i.onLookupMiss;if(p(()=>{v&&(S??C)?.()},[v,S,C]),!f)return null;let w={depositPending:a({id:`JYp-ic`,message:`Deposit processing`}),depositSucceeded:a({id:`e3xU5E`,message:`Deposit received`}),depositFailed:a({id:`i-4Fbp`,message:`Deposit failed`}),withdrawPending:a({id:`w-2VR9`,message:`Withdrawal in progress…`}),withdrawSucceeded:a({id:`q32Nt8`,message:`Withdrawal complete`}),withdrawFailed:a({id:`KTNWsg`,message:`Withdrawal failed`})},T={payload:f.payload,direction:f.direction,headerTitle:g(w,f.direction,f.payload.kind),...S?{onBack:S}:{}},E=h(r,{activeStep:f.payload.kind,children:[m(n,{name:`pending`,children:m(y,{})}),m(n,{name:`succeeded`,children:m(b,{})}),m(n,{name:`failed`,children:m(x,{})})]});return m(_,{value:T,children:t??E})}function y({children:e}){let t=f(_);if(!t||t.payload.kind!==`pending`)return null;let{payload:n,headerTitle:r,onBack:a}=t,o=l(n.creditedAsset)??{symbol:n.creditedAsset.symbol},s={...n.sourceWallet.name===void 0?{}:{name:n.sourceWallet.name},address:n.sourceWallet.address.formatted,...n.sourceWallet.explorerUrl?{explorerUrl:n.sourceWallet.explorerUrl}:{}},u=n.receiveAmount.value===0;return h(i,{amount:n.receiveAmount.formatted,creditedAsset:o,creditedTo:n.creditedTo,headerTitle:r,...u?{loading:!0}:{},...n.txHash?{sourceTx:{hash:n.txHash.formatted,...n.txExplorerUrl?{explorerUrl:n.txExplorerUrl}:{}}}:{},...s.address?{sourceWallet:s}:{},submittedAt:n.submittedAt.formatted,...n.detectedAt?{detectedAt:n.detectedAt.formatted}:{},children:[m(c,{title:r,onBack:a}),e??h(i.Body,{children:[m(i.Hero,{}),m(i.StatusPill,{}),h(i.Details,{children:[m(i.SourceRow,{}),m(i.SourceTxRow,{}),m(i.SubmittedAtRow,{}),m(i.DetectedAtRow,{})]})]})]})}function b({children:t}){let{_:n}=e(),r=f(_);if(!r||r.payload.kind!==`succeeded`)return null;let{payload:i,direction:a,headerTitle:s,onBack:u}=r,d=l(i.creditedAsset)??{symbol:i.creditedAsset.symbol},p={...i.sourceWallet.name===void 0?{}:{name:i.sourceWallet.name},address:i.sourceWallet.address.formatted,...i.sourceWallet.explorerUrl?{explorerUrl:i.sourceWallet.explorerUrl}:{}},g=i.destination.name??i.creditedAsset.symbol,v=i.aggregatorExplorerUrl?{url:i.aggregatorExplorerUrl}:void 0,y=i.depositTx||i.completionTx||i.submittedAt||i.filledAt,b=n(a===`withdraw`?{id:`_girqu`,message:`Withdrawal successful`}:{id:`--OGth`,message:`Deposit successful`}),x=n(a===`withdraw`?{id:`_QZdX-`,message:`Your withdrawal was completed successfully.`}:{id:`oW1G8i`,message:`Your funds were successfully deposited.`});return h(o,{amount:i.receiveAmount.formatted,creditedAsset:d,creditedTo:g,headerTitle:s,headlineTitle:b,headlineDescription:x,...v?{explorer:v}:{},...i.depositTx?{depositTx:{hash:i.depositTx.hash.formatted,...i.depositTx.explorerUrl?{explorerUrl:i.depositTx.explorerUrl}:{}}}:{},...i.completionTx?{completionTx:{hash:i.completionTx.hash.formatted,...i.completionTx.explorerUrl?{explorerUrl:i.completionTx.explorerUrl}:{}}}:{},submittedAt:i.submittedAt.formatted,filledAt:i.filledAt.formatted,totalTime:i.totalTime.formatted,sourceWallet:p,children:[m(c,{title:s,onBack:u}),t??h(o.Body,{children:[m(o.Headline,{}),h(o.Details,{children:[m(o.FillStatusRow,{}),m(o.TotalTimeRow,{}),m(o.SourceRow,{}),m(o.DestinationRow,{}),m(o.YouReceiveRow,{}),y?h(o.MoreDetails,{children:[m(o.DepositTxRow,{}),m(o.CompletionTxRow,{}),m(o.SubmittedAtRow,{}),m(o.FilledAtRow,{})]}):null]})]})]})}function x({children:n}){let{_:r}=e(),i=t(),o=f(_);if(!o||o.payload.kind!==`failed`)return null;let{payload:s,direction:u,headerTitle:d,onBack:p}=o,g={...s.sourceWallet.name===void 0?{}:{name:s.sourceWallet.name},address:s.sourceWallet.address.formatted,...s.sourceWallet.explorerUrl?{explorerUrl:s.sourceWallet.explorerUrl}:{}},v={...s.destination.name===void 0?{}:{name:s.destination.name},address:s.destination.address.formatted},y=l(s.creditedAsset)??{symbol:s.creditedAsset.symbol},b={hash:s.txHash.formatted,...s.txExplorerUrl?{explorerUrl:s.txExplorerUrl}:{}},x=i(s.failureKind);return h(a,{headline:r(u===`withdraw`?{id:`KTNWsg`,message:`Withdrawal failed`}:{id:`i-4Fbp`,message:`Deposit failed`}),reason:x,headerTitle:d,sourceWallet:g,destination:v,receiveAmount:s.receiveAmount.formatted,receiveAsset:y,depositTx:b,submittedAt:s.submittedAt.formatted,failedAt:s.failedAt.formatted,children:[m(c,{title:d,onBack:p}),n??h(a.Body,{children:[m(a.Hero,{}),h(a.Details,{children:[m(a.FillStatusRow,{}),m(a.SourceRow,{}),m(a.DestinationRow,{}),m(a.YouReceiveRow,{}),h(a.MoreDetails,{children:[m(a.DepositTxRow,{}),m(a.SubmittedAtRow,{}),m(a.FailedAtRow,{})]})]}),m(a.HelpInfo,{})]})]})}(function(e){e.Processing=y,e.Succeeded=b,e.Failed=x})(v||={});export{v as ActivityDetail};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import{DialogShell as e}from"../../../dialog/DialogShell.js";import{Card as t}from"../../../ui/Card/Card.js";import{Tooltip as n}from"../../../ui/Tooltip/Tooltip.js";import"../../../ui/Tooltip/index.js";import"../../../../ui/index.js";import{Frame as r}from"../../../dialog/Frame.js";import{AMOUNT_ENTRY_SLOTS as i}from"./AmountEntry.slots.js";import{styles as a}from"./AmountEntry.styles.js";import{AmountEntryDetails as o,AmountEntryDetailsRow as s}from"./components/Details.js";import{AmountEntryContext as c}from"./context.js";import{AmountEntryFlow as l}from"./components/Flow.js";import{AmountEntryFooter as u}from"./components/Footer.js";import{AmountEntryHeader as d}from"./components/Header.js";import{AmountEntryHero as f}from"./components/Hero/Hero.js";import"./components/Hero/index.js";import{AmountEntryNotice as p}from"./components/Notice.js";import{AmountEntryPills as m}from"./components/Pills.js";import{useMemo as h}from"react";import{jsx as g}from"react/jsx-runtime";import*as _ from"@stylexjs/stylex";const v={useGrouping:!0,maximumFractionDigits:8},y=[];function b(e){let{amount:t,sendToken:o,receiveToken:s,locale:l,format:u,min:d=0,max:f,onAmountChange:p,headerTitle:m,onBack:b,currencySymbol:x,
|
|
1
|
+
"use client";import{DialogShell as e}from"../../../dialog/DialogShell.js";import{Card as t}from"../../../ui/Card/Card.js";import{Tooltip as n}from"../../../ui/Tooltip/Tooltip.js";import"../../../ui/Tooltip/index.js";import"../../../../ui/index.js";import{Frame as r}from"../../../dialog/Frame.js";import{AMOUNT_ENTRY_SLOTS as i}from"./AmountEntry.slots.js";import{styles as a}from"./AmountEntry.styles.js";import{AmountEntryDetails as o,AmountEntryDetailsRow as s}from"./components/Details.js";import{AmountEntryContext as c}from"./context.js";import{AmountEntryFlow as l}from"./components/Flow.js";import{AmountEntryFooter as u}from"./components/Footer.js";import{AmountEntryHeader as d}from"./components/Header.js";import{AmountEntryHero as f}from"./components/Hero/Hero.js";import"./components/Hero/index.js";import{AmountEntryNotice as p}from"./components/Notice.js";import{AmountEntryPills as m}from"./components/Pills.js";import{useMemo as h}from"react";import{jsx as g}from"react/jsx-runtime";import*as _ from"@stylexjs/stylex";const v={useGrouping:!0,maximumFractionDigits:8},y=[];function b(e){let{amount:t,sendToken:o,receiveToken:s,locale:l,format:u,min:d=0,max:f,onAmountChange:p,headerTitle:m,onBack:b,currencySymbol:x,currencyCode:S,subLine:C,subLineAmount:w,presets:T=y,activePreset:E,onPresetSelect:D,bridge:O,footerLabel:k,onContinue:A,ctaDisabled:j,notice:M,headerTrailing:N,children:P}=e,F=h(()=>({amount:t,sendToken:o,receiveToken:s,locale:l,format:u??v,min:d,max:f,onAmountChange:p,headerTitle:m,onBack:b,currencySymbol:x,currencyCode:S,subLine:C,subLineAmount:w,presets:T,activePreset:E,onPresetSelect:D,bridge:O,footerLabel:k,onContinue:A,ctaDisabled:j,notice:M,headerTrailing:N}),[t,o,s,l,u,d,f,p,m,b,x,S,C,w,T,E,D,O,k,A,j,M,N]);return g(c.Provider,{value:F,children:g(n.Provider,{children:g(r,{"data-stridge-slot":i.root,..._.props(a.root),children:P})})})}function x(e){return g(t.Body,{"data-stridge-slot":i.body,...e})}function S({open:t,defaultOpen:n,onOpenChange:r,trigger:i,children:a,...o}){return g(e,{open:t,defaultOpen:n,onOpenChange:r,trigger:i,children:g(b,{...o,children:a})})}(function(e){e.Header=d,e.Body=x,e.Hero=f,e.Pills=m,e.Flow=l,e.Footer=u,e.Notice=p,e.Details=o,e.DetailsRow=s,e.Dialog=S})(b||={});export{b as AmountEntry};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e={root:{"AmountEntry__styles.root":`AmountEntry__styles.root`,"position-kVAEAm":`x1n2onr6`,"width-kzqmXN":`xh8yej3`,"maxWidth-ks0D6T":`x17fpy1y`,$$css:`@stridge/kit:src/shared/widgets/amount-entry/compound/AmountEntry.styles.ts:18`},header:{"AmountEntry__styles.header":`AmountEntry__styles.header`,"gap-kOIVth":`x1v2ro7d`,"paddingTop-kLKAdn":`xyamay9`,"paddingInlineEnd-kwRFfy":`x1x5flf6`,"paddingBottom-kGO01o":`x1l90r2v`,"paddingInlineStart-kZCmMZ":`xf7dkkf`,$$css:`@stridge/kit:src/shared/widgets/amount-entry/compound/AmountEntry.styles.ts:25`},headerTitle:{"AmountEntry__styles.headerTitle":`AmountEntry__styles.headerTitle`,"margin-kogj98":`x1ghz6dp`,"flexGrow-kzQI83":`x1iyjqo2`,$$css:`@stridge/kit:src/shared/widgets/amount-entry/compound/AmountEntry.styles.ts:32`},headerTrailing:{"AmountEntry__styles.headerTrailing":`AmountEntry__styles.headerTrailing`,"display-k1xSpc":`x78zum5`,"alignItems-kGNEyG":`x6s0dn4`,"gap-kOIVth":`x1a6yh9e`,$$css:`@stridge/kit:src/shared/widgets/amount-entry/compound/AmountEntry.styles.ts:39`},backIcon:{"AmountEntry__styles.backIcon":`AmountEntry__styles.backIcon`,"color-kMwMTN":`xzn0pkc`,"strokeWidth-kfJifR":`xhxwl1`,$$css:`@stridge/kit:src/shared/widgets/amount-entry/compound/AmountEntry.styles.ts:44`},closeIcon:{"AmountEntry__styles.closeIcon":`AmountEntry__styles.closeIcon`,"color-kMwMTN":`xzn0pkc`,"strokeWidth-kfJifR":`xhr4kjn`,$$css:`@stridge/kit:src/shared/widgets/amount-entry/compound/AmountEntry.styles.ts:48`},heroBlock:{"AmountEntry__styles.heroBlock":`AmountEntry__styles.heroBlock`,"display-k1xSpc":`x78zum5`,"flexDirection-kXwgrk":`xdt5ytf`,"alignItems-kGNEyG":`x6s0dn4`,"paddingTop-kLKAdn":`x1byr4rc`,"paddingInlineEnd-kwRFfy":`x1o5r3ls`,"paddingBottom-kGO01o":`xwib8y2`,"paddingInlineStart-kZCmMZ":`xz7312c`,"gap-kOIVth":`x167g77z`,"textAlign-k9WMMc":`x2b8uid`,$$css:`@stridge/kit:src/shared/widgets/amount-entry/compound/AmountEntry.styles.ts:60`},hero:{"AmountEntry__styles.hero":`AmountEntry__styles.hero`,"gap-kOIVth":`x1nj97wv`,$$css:`@stridge/kit:src/shared/widgets/amount-entry/compound/AmountEntry.styles.ts:76`},heroCurrency:{"AmountEntry__styles.heroCurrency":`AmountEntry__styles.heroCurrency`,"display-k1xSpc":`x1rg5ohu`,"fontSize-kGuDYH":`xsfzzmd`,"lineHeight-kLWn49":`xo5v014`,"letterSpacing-kb6lSQ":`x1b4dsll`,$$css:`@stridge/kit:src/shared/widgets/amount-entry/compound/AmountEntry.styles.ts:79`},heroAmount:{"AmountEntry__styles.heroAmount":`AmountEntry__styles.heroAmount`,"fontSize-kGuDYH":`xrv4cvt`,"lineHeight-kLWn49":`xo5v014`,"letterSpacing-kb6lSQ":`xo2cfqc`,$$css:`@stridge/kit:src/shared/widgets/amount-entry/compound/AmountEntry.styles.ts:85`},subLine:{"AmountEntry__styles.subLine":`AmountEntry__styles.subLine`,"display-k1xSpc":`x78zum5`,"flexDirection-kXwgrk":`x1q0g3np`,"alignItems-kGNEyG":`x6s0dn4`,"gap-kOIVth":`x17d4w8g`,$$css:`@stridge/kit:src/shared/widgets/amount-entry/compound/AmountEntry.styles.ts:90`},subLineIcon:{"AmountEntry__styles.subLineIcon":`AmountEntry__styles.subLineIcon`,"width-kzqmXN":`x6jxa94`,"height-kZKoxP":`x1v9usgg`,"flexShrink-kmuXW":`x2lah0s`,"color-kMwMTN":`x137ha3m`,$$css:`@stridge/kit:src/shared/widgets/amount-entry/compound/AmountEntry.styles.ts:96`},bigSlot:{"AmountEntry__styles.bigSlot":`AmountEntry__styles.bigSlot`,"position-kVAEAm":`x1n2onr6`,"zIndex-kY2c9j":`x1fina04`,"display-k1xSpc":`x3nfvp2`,"alignItems-kGNEyG":`x1pha0wt`,$$css:`@stridge/kit:src/shared/widgets/amount-entry/compound/AmountEntry.styles.ts:105`},swapToggle:{"AmountEntry__styles.swapToggle":`AmountEntry__styles.swapToggle`,"appearance-kysU6D":`xjyslct`,"display-k1xSpc":`x3nfvp2`,"flexDirection-kXwgrk":`x1q0g3np`,"alignItems-kGNEyG":`x6s0dn4`,"gap-kOIVth":`x17d4w8g`,"backgroundColor-kWkggS":`x1qkydf4`,"margin-kogj98":`x1ghz6dp`,"paddingBlock-k8WAf4":`x12ulsxz`,"paddingInline-kg3NbH":`x1awh872`,"font-kVVagm":`xln7xf2`,"color-kMwMTN":`xi96bwj`,"cursor-kkrTdU":`x1ypdohk`,"borderRadius-kaIpWk":`x1npxkrn`,"transitionProperty-k1ekBW":`xs2xxs2`,"transitionDuration-kIyJzY":`x9dyr19`,"transitionTimingFunction-kAMwcw":`x9lcvmn`,":hover_backgroundColor-kGzVvX":`x1tkvd9a`,":hover_color-kDPRdz":`xpscirx`,":focus-visible_outline-k3Woio":`x67ar3w`,":focus-visible_outlineOffset-kiEn40":`x7s97pk`,$$css:`@stridge/kit:src/shared/widgets/amount-entry/compound/AmountEntry.styles.ts:112`},swapIcon:{"AmountEntry__styles.swapIcon":`AmountEntry__styles.swapIcon`,"display-k1xSpc":`x3nfvp2`,"alignItems-kGNEyG":`x6s0dn4`,"justifyContent-kjj79g":`xl56j7k`,"width-kzqmXN":`x6jxa94`,"height-kZKoxP":`x1v9usgg`,"flexShrink-kmuXW":`x2lah0s`,"color-kMwMTN":`x1heor9g`,$$css:`@stridge/kit:src/shared/widgets/amount-entry/compound/AmountEntry.styles.ts:139`},swapTextWrap:{"AmountEntry__styles.swapTextWrap":`AmountEntry__styles.swapTextWrap`,"display-k1xSpc":`x3nfvp2`,"alignItems-kGNEyG":`x6s0dn4`,$$css:`@stridge/kit:src/shared/widgets/amount-entry/compound/AmountEntry.styles.ts:148`},swapText:{"AmountEntry__styles.swapText":`AmountEntry__styles.swapText`,"position-kVAEAm":`x1n2onr6`,"zIndex-kY2c9j":`x11uqc5h`,"display-k1xSpc":`x1rg5ohu`,"fontSize-kGuDYH":`xkpwil5`,"lineHeight-kLWn49":`x132q4wb`,"fontWeight-k63SB2":`xk50ysn`,"letterSpacing-kb6lSQ":`xjat59b`,"whiteSpace-khDVqt":`xuxw1ft`,"color-kMwMTN":`x1heor9g`,$$css:`@stridge/kit:src/shared/widgets/amount-entry/compound/AmountEntry.styles.ts:152`},swapSymbol:{"AmountEntry__styles.swapSymbol":`AmountEntry__styles.swapSymbol`,"display-k1xSpc":`x1rg5ohu`,"fontSize-kGuDYH":`xkpwil5`,"lineHeight-kLWn49":`x132q4wb`,"fontWeight-k63SB2":`xk50ysn`,"letterSpacing-kb6lSQ":`xjat59b`,"whiteSpace-khDVqt":`x1sdyfia`,"color-kMwMTN":`x1heor9g`,$$css:`@stridge/kit:src/shared/widgets/amount-entry/compound/AmountEntry.styles.ts:163`},swapBackdrop:{"AmountEntry__styles.swapBackdrop":`AmountEntry__styles.swapBackdrop`,"position-kVAEAm":`x10l6tqk`,"inset-kpwlN0":`x1v1xp8j`,"zIndex-kY2c9j":`x8knxv4`,"filter-ku685b":`x1qgin71`,"pointerEvents-kfzvcC":`x47corl`,"backgroundImage-kKwaWg":`x1bmns5n`,$$css:`@stridge/kit:src/shared/widgets/amount-entry/compound/AmountEntry.styles.ts:173`},pills:{"AmountEntry__styles.pills":`AmountEntry__styles.pills`,"display-k1xSpc":`x78zum5`,"flexDirection-kXwgrk":`x1q0g3np`,"width-kzqmXN":`xh8yej3`,"gap-kOIVth":`x167g77z`,"paddingTop-kLKAdn":`x9desvi`,"paddingInlineEnd-kwRFfy":`x1o5r3ls`,"paddingInlineStart-kZCmMZ":`xz7312c`,$$css:`@stridge/kit:src/shared/widgets/amount-entry/compound/AmountEntry.styles.ts:186`},flowWrap:{"AmountEntry__styles.flowWrap":`AmountEntry__styles.flowWrap`,"display-k1xSpc":`x78zum5`,"justifyContent-kjj79g":`xl56j7k`,"paddingTop-kLKAdn":`x9desvi`,"paddingInlineEnd-kwRFfy":`x1o5r3ls`,"paddingInlineStart-kZCmMZ":`xz7312c`,$$css:`@stridge/kit:src/shared/widgets/amount-entry/compound/AmountEntry.styles.ts:199`},flow:{"AmountEntry__styles.flow":`AmountEntry__styles.flow`,"display-k1xSpc":`x78zum5`,"flexDirection-kXwgrk":`x1q0g3np`,"alignItems-kGNEyG":`x6s0dn4`,"justifyContent-kjj79g":`xl56j7k`,"backgroundColor-kWkggS":`x12obg9s`,"borderColor-kVAM5u":`x1bue7yx`,"borderStyle-ksu8eU":`x1y0btm7`,"borderWidth-kMzoRj":`xmkeg23`,"borderRadius-kaIpWk":`x1npxkrn`,"paddingBlock-k8WAf4":`xxlmvz2`,"paddingInline-kg3NbH":`x65v0h`,"gap-kOIVth":`x1c1vhfx`,$$css:`@stridge/kit:src/shared/widgets/amount-entry/compound/AmountEntry.styles.ts:206`},flowSide:{"AmountEntry__styles.flowSide":`AmountEntry__styles.flowSide`,"display-k1xSpc":`x78zum5`,"flexDirection-kXwgrk":`x1q0g3np`,"alignItems-kGNEyG":`x6s0dn4`,"gap-kOIVth":`x1v2ro7d`,"minWidth-k7Eaqz":`xeuugli`,$$css:`@stridge/kit:src/shared/widgets/amount-entry/compound/AmountEntry.styles.ts:220`},flowLabels:{"AmountEntry__styles.flowLabels":`AmountEntry__styles.flowLabels`,"display-k1xSpc":`x78zum5`,"flexDirection-kXwgrk":`xdt5ytf`,"gap-kOIVth":`x12mrbbr`,"minWidth-k7Eaqz":`xeuugli`,$$css:`@stridge/kit:src/shared/widgets/amount-entry/compound/AmountEntry.styles.ts:227`},flowBridge:{"AmountEntry__styles.flowBridge":`AmountEntry__styles.flowBridge`,"display-k1xSpc":`x78zum5`,"alignItems-kGNEyG":`x6s0dn4`,"justifyContent-kjj79g":`xl56j7k`,"flexShrink-kmuXW":`x2lah0s`,"color-kMwMTN":`x137ha3m`,$$css:`@stridge/kit:src/shared/widgets/amount-entry/compound/AmountEntry.styles.ts:233`},flowBridgeIcon:{"AmountEntry__styles.flowBridgeIcon":`AmountEntry__styles.flowBridgeIcon`,"width-kzqmXN":`x1kky2od`,"height-kZKoxP":`xlup9mm`,"flexShrink-kmuXW":`x2lah0s`,"color-kMwMTN":`x137ha3m`,"strokeWidth-kfJifR":`xhr4kjn`,$$css:`@stridge/kit:src/shared/widgets/amount-entry/compound/AmountEntry.styles.ts:240`},footer:{"AmountEntry__styles.footer":`AmountEntry__styles.footer`,"display-k1xSpc":`x78zum5`,"flexDirection-kXwgrk":`xdt5ytf`,"gap-kOIVth":`x167g77z`,"paddingTop-kLKAdn":`x9desvi`,"paddingInlineEnd-kwRFfy":`x1o5r3ls`,"paddingBottom-kGO01o":`x1t4gjm`,"paddingInlineStart-kZCmMZ":`xz7312c`,$$css:`@stridge/kit:src/shared/widgets/amount-entry/compound/AmountEntry.styles.ts:248`},cta:{"AmountEntry__styles.cta":`AmountEntry__styles.cta`,"width-kzqmXN":`xh8yej3`,$$css:`@stridge/kit:src/shared/widgets/amount-entry/compound/AmountEntry.styles.ts:258`},ctaInteractive:{"AmountEntry__styles.ctaInteractive":`AmountEntry__styles.ctaInteractive`,"cursor-kkrTdU":`x1ypdohk`,$$css:`@stridge/kit:src/shared/widgets/amount-entry/compound/AmountEntry.styles.ts:261`},ctaInert:{"AmountEntry__styles.ctaInert":`AmountEntry__styles.ctaInert`,"cursor-kkrTdU":`xt0e3qv`,$$css:`@stridge/kit:src/shared/widgets/amount-entry/compound/AmountEntry.styles.ts:264`},noticeText:{"AmountEntry__styles.noticeText":`AmountEntry__styles.noticeText`,"marginBlock-kqGvvJ":`x10im51j`,"textAlign-k9WMMc":`x2b8uid`,$$css:`@stridge/kit:src/shared/widgets/amount-entry/compound/AmountEntry.styles.ts:268`},detailsWrap:{"AmountEntry__styles.detailsWrap":`AmountEntry__styles.detailsWrap`,"display-k1xSpc":`x78zum5`,"flexDirection-kXwgrk":`xdt5ytf`,"paddingTop-kLKAdn":`x9desvi`,"paddingInlineEnd-kwRFfy":`x1o5r3ls`,"paddingInlineStart-kZCmMZ":`xz7312c`,$$css:`@stridge/kit:src/shared/widgets/amount-entry/compound/AmountEntry.styles.ts:275`},detailsCard:{"AmountEntry__styles.detailsCard":`AmountEntry__styles.detailsCard`,"display-k1xSpc":`x78zum5`,"flexDirection-kXwgrk":`xdt5ytf`,"gap-kOIVth":`x1v2ro7d`,"backgroundColor-kWkggS":`x12obg9s`,"borderColor-kVAM5u":`x1bue7yx`,"borderStyle-ksu8eU":`x1y0btm7`,"borderWidth-kMzoRj":`xmkeg23`,"borderRadius-kaIpWk":`x13pkpm2`,"paddingBlock-k8WAf4":`x1xn8qrt`,"paddingInline-kg3NbH":`x1hr3lfm`,$$css:`@stridge/kit:src/shared/widgets/amount-entry/compound/AmountEntry.styles.ts:282`},detailsRow:{"AmountEntry__styles.detailsRow":`AmountEntry__styles.detailsRow`,"display-k1xSpc":`x78zum5`,"flexDirection-kXwgrk":`x1q0g3np`,"alignItems-kGNEyG":`x6s0dn4`,"justifyContent-kjj79g":`x1qughib`,"gap-kOIVth":`x1v2ro7d`,$$css:`@stridge/kit:src/shared/widgets/amount-entry/compound/AmountEntry.styles.ts:294`},detailsRowLabelCell:{"AmountEntry__styles.detailsRowLabelCell":`AmountEntry__styles.detailsRowLabelCell`,"display-k1xSpc":`x3nfvp2`,"flexDirection-kXwgrk":`x1q0g3np`,"alignItems-kGNEyG":`x6s0dn4`,"gap-kOIVth":`x1jnr06f`,"minWidth-k7Eaqz":`xeuugli`,$$css:`@stridge/kit:src/shared/widgets/amount-entry/compound/AmountEntry.styles.ts:301`},detailsRowLabel:{"AmountEntry__styles.detailsRowLabel":`AmountEntry__styles.detailsRowLabel`,"margin-kogj98":`x1ghz6dp`,"minWidth-k7Eaqz":`xeuugli`,$$css:`@stridge/kit:src/shared/widgets/amount-entry/compound/AmountEntry.styles.ts:308`},detailsRowInfoTrigger:{"AmountEntry__styles.detailsRowInfoTrigger":`AmountEntry__styles.detailsRowInfoTrigger`,"appearance-kysU6D":`xjyslct`,"display-k1xSpc":`x3nfvp2`,"alignItems-kGNEyG":`x6s0dn4`,"justifyContent-kjj79g":`xl56j7k`,"margin-kogj98":`x1ghz6dp`,"padding-kmVPX3":`x1717udv`,"font-kVVagm":`xln7xf2`,"color-kMwMTN":`x137ha3m`,"cursor-kkrTdU":`x1146j2`,":hover_color-kDPRdz":`xpscirx`,":focus-visible_outline-k3Woio":`x67ar3w`,":focus-visible_outlineOffset-kiEn40":`x7s97pk`,":focus-visible_borderRadius-k7aC84":`x1o5aa3h`,$$css:`@stridge/kit:src/shared/widgets/amount-entry/compound/AmountEntry.styles.ts:312`},detailsRowInfoIcon:{"AmountEntry__styles.detailsRowInfoIcon":`AmountEntry__styles.detailsRowInfoIcon`,"width-kzqmXN":`x1fxhmyf`,"height-kZKoxP":`x18gnavp`,"flexShrink-kmuXW":`x2lah0s`,"color-kMwMTN":`x1heor9g`,$$css:`@stridge/kit:src/shared/widgets/amount-entry/compound/AmountEntry.styles.ts:333`},detailsRowValueCell:{"AmountEntry__styles.detailsRowValueCell":`AmountEntry__styles.detailsRowValueCell`,"display-k1xSpc":`x3nfvp2`,"flexDirection-kXwgrk":`x1q0g3np`,"alignItems-kGNEyG":`x6s0dn4`,"gap-kOIVth":`x17d4w8g`,"margin-kogj98":`x1ghz6dp`,"textAlign-k9WMMc":`xp4054r`,$$css:`@stridge/kit:src/shared/widgets/amount-entry/compound/AmountEntry.styles.ts:339`}};export{e as styles};
|
|
1
|
+
const e={root:{"AmountEntry__styles.root":`AmountEntry__styles.root`,"position-kVAEAm":`x1n2onr6`,"width-kzqmXN":`xh8yej3`,"maxWidth-ks0D6T":`x17fpy1y`,$$css:`@stridge/kit:src/shared/widgets/amount-entry/compound/AmountEntry.styles.ts:18`},header:{"AmountEntry__styles.header":`AmountEntry__styles.header`,"gap-kOIVth":`x1v2ro7d`,"paddingTop-kLKAdn":`xyamay9`,"paddingInlineEnd-kwRFfy":`x1x5flf6`,"paddingBottom-kGO01o":`x1l90r2v`,"paddingInlineStart-kZCmMZ":`xf7dkkf`,$$css:`@stridge/kit:src/shared/widgets/amount-entry/compound/AmountEntry.styles.ts:25`},headerTitle:{"AmountEntry__styles.headerTitle":`AmountEntry__styles.headerTitle`,"margin-kogj98":`x1ghz6dp`,"flexGrow-kzQI83":`x1iyjqo2`,$$css:`@stridge/kit:src/shared/widgets/amount-entry/compound/AmountEntry.styles.ts:32`},headerTrailing:{"AmountEntry__styles.headerTrailing":`AmountEntry__styles.headerTrailing`,"display-k1xSpc":`x78zum5`,"alignItems-kGNEyG":`x6s0dn4`,"gap-kOIVth":`x1a6yh9e`,$$css:`@stridge/kit:src/shared/widgets/amount-entry/compound/AmountEntry.styles.ts:39`},backIcon:{"AmountEntry__styles.backIcon":`AmountEntry__styles.backIcon`,"color-kMwMTN":`xzn0pkc`,"strokeWidth-kfJifR":`xhxwl1`,$$css:`@stridge/kit:src/shared/widgets/amount-entry/compound/AmountEntry.styles.ts:44`},closeIcon:{"AmountEntry__styles.closeIcon":`AmountEntry__styles.closeIcon`,"color-kMwMTN":`xzn0pkc`,"strokeWidth-kfJifR":`xhr4kjn`,$$css:`@stridge/kit:src/shared/widgets/amount-entry/compound/AmountEntry.styles.ts:48`},heroBlock:{"AmountEntry__styles.heroBlock":`AmountEntry__styles.heroBlock`,"display-k1xSpc":`x78zum5`,"flexDirection-kXwgrk":`xdt5ytf`,"alignItems-kGNEyG":`x6s0dn4`,"paddingTop-kLKAdn":`x1byr4rc`,"paddingInlineEnd-kwRFfy":`x1o5r3ls`,"paddingBottom-kGO01o":`xwib8y2`,"paddingInlineStart-kZCmMZ":`xz7312c`,"gap-kOIVth":`x167g77z`,"textAlign-k9WMMc":`x2b8uid`,$$css:`@stridge/kit:src/shared/widgets/amount-entry/compound/AmountEntry.styles.ts:60`},heroBlockCompact:{"AmountEntry__styles.heroBlockCompact":`AmountEntry__styles.heroBlockCompact`,"paddingTop-kLKAdn":`x1yrsyyn`,$$css:`@stridge/kit:src/shared/widgets/amount-entry/compound/AmountEntry.styles.ts:73`},hero:{"AmountEntry__styles.hero":`AmountEntry__styles.hero`,"gap-kOIVth":`x1nj97wv`,$$css:`@stridge/kit:src/shared/widgets/amount-entry/compound/AmountEntry.styles.ts:81`},heroCurrency:{"AmountEntry__styles.heroCurrency":`AmountEntry__styles.heroCurrency`,"display-k1xSpc":`x1rg5ohu`,"fontSize-kGuDYH":`xsfzzmd`,"lineHeight-kLWn49":`xo5v014`,"letterSpacing-kb6lSQ":`x1b4dsll`,$$css:`@stridge/kit:src/shared/widgets/amount-entry/compound/AmountEntry.styles.ts:84`},heroAmount:{"AmountEntry__styles.heroAmount":`AmountEntry__styles.heroAmount`,"fontSize-kGuDYH":`xrv4cvt`,"lineHeight-kLWn49":`xo5v014`,"letterSpacing-kb6lSQ":`xo2cfqc`,$$css:`@stridge/kit:src/shared/widgets/amount-entry/compound/AmountEntry.styles.ts:90`},subLine:{"AmountEntry__styles.subLine":`AmountEntry__styles.subLine`,"display-k1xSpc":`x78zum5`,"flexDirection-kXwgrk":`x1q0g3np`,"alignItems-kGNEyG":`x6s0dn4`,"gap-kOIVth":`x17d4w8g`,$$css:`@stridge/kit:src/shared/widgets/amount-entry/compound/AmountEntry.styles.ts:95`},subLineIcon:{"AmountEntry__styles.subLineIcon":`AmountEntry__styles.subLineIcon`,"width-kzqmXN":`x6jxa94`,"height-kZKoxP":`x1v9usgg`,"flexShrink-kmuXW":`x2lah0s`,"color-kMwMTN":`x137ha3m`,$$css:`@stridge/kit:src/shared/widgets/amount-entry/compound/AmountEntry.styles.ts:101`},bigSlot:{"AmountEntry__styles.bigSlot":`AmountEntry__styles.bigSlot`,"position-kVAEAm":`x1n2onr6`,"zIndex-kY2c9j":`x1fina04`,"display-k1xSpc":`x3nfvp2`,"alignItems-kGNEyG":`x1pha0wt`,$$css:`@stridge/kit:src/shared/widgets/amount-entry/compound/AmountEntry.styles.ts:110`},swapToggle:{"AmountEntry__styles.swapToggle":`AmountEntry__styles.swapToggle`,"appearance-kysU6D":`xjyslct`,"display-k1xSpc":`x3nfvp2`,"flexDirection-kXwgrk":`x1q0g3np`,"alignItems-kGNEyG":`x6s0dn4`,"gap-kOIVth":`x17d4w8g`,"backgroundColor-kWkggS":`x1qkydf4`,"margin-kogj98":`x1ghz6dp`,"paddingBlock-k8WAf4":`x12ulsxz`,"paddingInline-kg3NbH":`x1awh872`,"font-kVVagm":`xln7xf2`,"color-kMwMTN":`xi96bwj`,"cursor-kkrTdU":`x1ypdohk`,"borderRadius-kaIpWk":`x1npxkrn`,"transitionProperty-k1ekBW":`xs2xxs2`,"transitionDuration-kIyJzY":`x9dyr19`,"transitionTimingFunction-kAMwcw":`x9lcvmn`,":hover_backgroundColor-kGzVvX":`x1tkvd9a`,":hover_color-kDPRdz":`xpscirx`,":focus-visible_outline-k3Woio":`x67ar3w`,":focus-visible_outlineOffset-kiEn40":`x7s97pk`,$$css:`@stridge/kit:src/shared/widgets/amount-entry/compound/AmountEntry.styles.ts:117`},swapIcon:{"AmountEntry__styles.swapIcon":`AmountEntry__styles.swapIcon`,"display-k1xSpc":`x3nfvp2`,"alignItems-kGNEyG":`x6s0dn4`,"justifyContent-kjj79g":`xl56j7k`,"width-kzqmXN":`x6jxa94`,"height-kZKoxP":`x1v9usgg`,"flexShrink-kmuXW":`x2lah0s`,"color-kMwMTN":`x1heor9g`,$$css:`@stridge/kit:src/shared/widgets/amount-entry/compound/AmountEntry.styles.ts:144`},swapTextWrap:{"AmountEntry__styles.swapTextWrap":`AmountEntry__styles.swapTextWrap`,"display-k1xSpc":`x3nfvp2`,"alignItems-kGNEyG":`x6s0dn4`,$$css:`@stridge/kit:src/shared/widgets/amount-entry/compound/AmountEntry.styles.ts:153`},swapText:{"AmountEntry__styles.swapText":`AmountEntry__styles.swapText`,"position-kVAEAm":`x1n2onr6`,"zIndex-kY2c9j":`x11uqc5h`,"display-k1xSpc":`x1rg5ohu`,"fontSize-kGuDYH":`xkpwil5`,"lineHeight-kLWn49":`x132q4wb`,"fontWeight-k63SB2":`xk50ysn`,"letterSpacing-kb6lSQ":`xjat59b`,"whiteSpace-khDVqt":`xuxw1ft`,"color-kMwMTN":`x1heor9g`,$$css:`@stridge/kit:src/shared/widgets/amount-entry/compound/AmountEntry.styles.ts:157`},swapSymbol:{"AmountEntry__styles.swapSymbol":`AmountEntry__styles.swapSymbol`,"display-k1xSpc":`x1rg5ohu`,"fontSize-kGuDYH":`xkpwil5`,"lineHeight-kLWn49":`x132q4wb`,"fontWeight-k63SB2":`xk50ysn`,"letterSpacing-kb6lSQ":`xjat59b`,"whiteSpace-khDVqt":`x1sdyfia`,"color-kMwMTN":`x1heor9g`,$$css:`@stridge/kit:src/shared/widgets/amount-entry/compound/AmountEntry.styles.ts:168`},swapBackdrop:{"AmountEntry__styles.swapBackdrop":`AmountEntry__styles.swapBackdrop`,"position-kVAEAm":`x10l6tqk`,"inset-kpwlN0":`x1v1xp8j`,"zIndex-kY2c9j":`x8knxv4`,"filter-ku685b":`x1qgin71`,"pointerEvents-kfzvcC":`x47corl`,"backgroundImage-kKwaWg":`x1bmns5n`,$$css:`@stridge/kit:src/shared/widgets/amount-entry/compound/AmountEntry.styles.ts:178`},pills:{"AmountEntry__styles.pills":`AmountEntry__styles.pills`,"display-k1xSpc":`x78zum5`,"flexDirection-kXwgrk":`x1q0g3np`,"width-kzqmXN":`xh8yej3`,"gap-kOIVth":`x167g77z`,"paddingTop-kLKAdn":`x9desvi`,"paddingInlineEnd-kwRFfy":`x1o5r3ls`,"paddingInlineStart-kZCmMZ":`xz7312c`,$$css:`@stridge/kit:src/shared/widgets/amount-entry/compound/AmountEntry.styles.ts:191`},flowWrap:{"AmountEntry__styles.flowWrap":`AmountEntry__styles.flowWrap`,"display-k1xSpc":`x78zum5`,"justifyContent-kjj79g":`xl56j7k`,"paddingTop-kLKAdn":`x9desvi`,"paddingInlineEnd-kwRFfy":`x1o5r3ls`,"paddingInlineStart-kZCmMZ":`xz7312c`,$$css:`@stridge/kit:src/shared/widgets/amount-entry/compound/AmountEntry.styles.ts:204`},flow:{"AmountEntry__styles.flow":`AmountEntry__styles.flow`,"display-k1xSpc":`x78zum5`,"flexDirection-kXwgrk":`x1q0g3np`,"alignItems-kGNEyG":`x6s0dn4`,"justifyContent-kjj79g":`xl56j7k`,"backgroundColor-kWkggS":`x12obg9s`,"borderColor-kVAM5u":`x1bue7yx`,"borderStyle-ksu8eU":`x1y0btm7`,"borderWidth-kMzoRj":`xmkeg23`,"borderRadius-kaIpWk":`x1npxkrn`,"paddingBlock-k8WAf4":`xxlmvz2`,"paddingInline-kg3NbH":`x65v0h`,"gap-kOIVth":`x1c1vhfx`,$$css:`@stridge/kit:src/shared/widgets/amount-entry/compound/AmountEntry.styles.ts:211`},flowSide:{"AmountEntry__styles.flowSide":`AmountEntry__styles.flowSide`,"display-k1xSpc":`x78zum5`,"flexDirection-kXwgrk":`x1q0g3np`,"alignItems-kGNEyG":`x6s0dn4`,"gap-kOIVth":`x1v2ro7d`,"minWidth-k7Eaqz":`xeuugli`,$$css:`@stridge/kit:src/shared/widgets/amount-entry/compound/AmountEntry.styles.ts:225`},flowLabels:{"AmountEntry__styles.flowLabels":`AmountEntry__styles.flowLabels`,"display-k1xSpc":`x78zum5`,"flexDirection-kXwgrk":`xdt5ytf`,"gap-kOIVth":`x12mrbbr`,"minWidth-k7Eaqz":`xeuugli`,$$css:`@stridge/kit:src/shared/widgets/amount-entry/compound/AmountEntry.styles.ts:232`},flowBridge:{"AmountEntry__styles.flowBridge":`AmountEntry__styles.flowBridge`,"display-k1xSpc":`x78zum5`,"alignItems-kGNEyG":`x6s0dn4`,"justifyContent-kjj79g":`xl56j7k`,"flexShrink-kmuXW":`x2lah0s`,"color-kMwMTN":`x137ha3m`,$$css:`@stridge/kit:src/shared/widgets/amount-entry/compound/AmountEntry.styles.ts:238`},flowBridgeIcon:{"AmountEntry__styles.flowBridgeIcon":`AmountEntry__styles.flowBridgeIcon`,"width-kzqmXN":`x1kky2od`,"height-kZKoxP":`xlup9mm`,"flexShrink-kmuXW":`x2lah0s`,"color-kMwMTN":`x137ha3m`,"strokeWidth-kfJifR":`xhr4kjn`,$$css:`@stridge/kit:src/shared/widgets/amount-entry/compound/AmountEntry.styles.ts:245`},footer:{"AmountEntry__styles.footer":`AmountEntry__styles.footer`,"display-k1xSpc":`x78zum5`,"flexDirection-kXwgrk":`xdt5ytf`,"gap-kOIVth":`x167g77z`,"paddingTop-kLKAdn":`x9desvi`,"paddingInlineEnd-kwRFfy":`x1o5r3ls`,"paddingBottom-kGO01o":`x1t4gjm`,"paddingInlineStart-kZCmMZ":`xz7312c`,$$css:`@stridge/kit:src/shared/widgets/amount-entry/compound/AmountEntry.styles.ts:253`},cta:{"AmountEntry__styles.cta":`AmountEntry__styles.cta`,"width-kzqmXN":`xh8yej3`,$$css:`@stridge/kit:src/shared/widgets/amount-entry/compound/AmountEntry.styles.ts:263`},ctaInteractive:{"AmountEntry__styles.ctaInteractive":`AmountEntry__styles.ctaInteractive`,"cursor-kkrTdU":`x1ypdohk`,$$css:`@stridge/kit:src/shared/widgets/amount-entry/compound/AmountEntry.styles.ts:266`},ctaInert:{"AmountEntry__styles.ctaInert":`AmountEntry__styles.ctaInert`,"cursor-kkrTdU":`xt0e3qv`,$$css:`@stridge/kit:src/shared/widgets/amount-entry/compound/AmountEntry.styles.ts:269`},noticeText:{"AmountEntry__styles.noticeText":`AmountEntry__styles.noticeText`,"marginBlock-kqGvvJ":`x10im51j`,"textAlign-k9WMMc":`x2b8uid`,$$css:`@stridge/kit:src/shared/widgets/amount-entry/compound/AmountEntry.styles.ts:273`},detailsWrap:{"AmountEntry__styles.detailsWrap":`AmountEntry__styles.detailsWrap`,"display-k1xSpc":`x78zum5`,"flexDirection-kXwgrk":`xdt5ytf`,"paddingTop-kLKAdn":`x9desvi`,"paddingInlineEnd-kwRFfy":`x1o5r3ls`,"paddingInlineStart-kZCmMZ":`xz7312c`,$$css:`@stridge/kit:src/shared/widgets/amount-entry/compound/AmountEntry.styles.ts:280`},detailsCard:{"AmountEntry__styles.detailsCard":`AmountEntry__styles.detailsCard`,"display-k1xSpc":`x78zum5`,"flexDirection-kXwgrk":`xdt5ytf`,"gap-kOIVth":`x1v2ro7d`,"backgroundColor-kWkggS":`x12obg9s`,"borderColor-kVAM5u":`x1bue7yx`,"borderStyle-ksu8eU":`x1y0btm7`,"borderWidth-kMzoRj":`xmkeg23`,"borderRadius-kaIpWk":`x13pkpm2`,"paddingBlock-k8WAf4":`x1xn8qrt`,"paddingInline-kg3NbH":`x1hr3lfm`,$$css:`@stridge/kit:src/shared/widgets/amount-entry/compound/AmountEntry.styles.ts:287`},detailsRow:{"AmountEntry__styles.detailsRow":`AmountEntry__styles.detailsRow`,"display-k1xSpc":`x78zum5`,"flexDirection-kXwgrk":`x1q0g3np`,"alignItems-kGNEyG":`x6s0dn4`,"justifyContent-kjj79g":`x1qughib`,"gap-kOIVth":`x1v2ro7d`,$$css:`@stridge/kit:src/shared/widgets/amount-entry/compound/AmountEntry.styles.ts:299`},detailsRowLabelCell:{"AmountEntry__styles.detailsRowLabelCell":`AmountEntry__styles.detailsRowLabelCell`,"display-k1xSpc":`x3nfvp2`,"flexDirection-kXwgrk":`x1q0g3np`,"alignItems-kGNEyG":`x6s0dn4`,"gap-kOIVth":`x1jnr06f`,"minWidth-k7Eaqz":`xeuugli`,$$css:`@stridge/kit:src/shared/widgets/amount-entry/compound/AmountEntry.styles.ts:306`},detailsRowLabel:{"AmountEntry__styles.detailsRowLabel":`AmountEntry__styles.detailsRowLabel`,"margin-kogj98":`x1ghz6dp`,"minWidth-k7Eaqz":`xeuugli`,$$css:`@stridge/kit:src/shared/widgets/amount-entry/compound/AmountEntry.styles.ts:313`},detailsRowInfoTrigger:{"AmountEntry__styles.detailsRowInfoTrigger":`AmountEntry__styles.detailsRowInfoTrigger`,"appearance-kysU6D":`xjyslct`,"display-k1xSpc":`x3nfvp2`,"alignItems-kGNEyG":`x6s0dn4`,"justifyContent-kjj79g":`xl56j7k`,"margin-kogj98":`x1ghz6dp`,"padding-kmVPX3":`x1717udv`,"font-kVVagm":`xln7xf2`,"color-kMwMTN":`x137ha3m`,"cursor-kkrTdU":`x1146j2`,":hover_color-kDPRdz":`xpscirx`,":focus-visible_outline-k3Woio":`x67ar3w`,":focus-visible_outlineOffset-kiEn40":`x7s97pk`,":focus-visible_borderRadius-k7aC84":`x1o5aa3h`,$$css:`@stridge/kit:src/shared/widgets/amount-entry/compound/AmountEntry.styles.ts:317`},detailsRowInfoIcon:{"AmountEntry__styles.detailsRowInfoIcon":`AmountEntry__styles.detailsRowInfoIcon`,"width-kzqmXN":`x1fxhmyf`,"height-kZKoxP":`x18gnavp`,"flexShrink-kmuXW":`x2lah0s`,"color-kMwMTN":`x1heor9g`,$$css:`@stridge/kit:src/shared/widgets/amount-entry/compound/AmountEntry.styles.ts:338`},detailsRowValueCell:{"AmountEntry__styles.detailsRowValueCell":`AmountEntry__styles.detailsRowValueCell`,"display-k1xSpc":`x3nfvp2`,"flexDirection-kXwgrk":`x1q0g3np`,"alignItems-kGNEyG":`x6s0dn4`,"gap-kOIVth":`x17d4w8g`,"margin-kogj98":`x1ghz6dp`,"textAlign-k9WMMc":`xp4054r`,$$css:`@stridge/kit:src/shared/widgets/amount-entry/compound/AmountEntry.styles.ts:344`}};export{e as styles};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import{useLingui as e}from"../../../../i18n/useLingui.js";import"../../../../../i18n/index.js";import{Button as t}from"../../../../ui/Button/Button.js";import"../../../../ui/Button/index.js";import{AMOUNT_ENTRY_SLOTS as n}from"../AmountEntry.slots.js";import{styles as r}from"../AmountEntry.styles.js";import{useAmountEntryContext as i}from"../context.js";import{jsx as a,jsxs as o}from"react/jsx-runtime";import*as s from"@stylexjs/stylex";function c({label:c,onContinue:l,children:u}={}){let d=i(`AmountEntry.Footer`),{_:f}=e(),p=l??d.onContinue,m=c??d.footerLabel??f({id:`xGVfLh`,message:`Continue`}),h=typeof p==`function
|
|
1
|
+
"use client";import{useLingui as e}from"../../../../i18n/useLingui.js";import"../../../../../i18n/index.js";import{Button as t}from"../../../../ui/Button/Button.js";import"../../../../ui/Button/index.js";import{AMOUNT_ENTRY_SLOTS as n}from"../AmountEntry.slots.js";import{styles as r}from"../AmountEntry.styles.js";import{useAmountEntryContext as i}from"../context.js";import{jsx as a,jsxs as o}from"react/jsx-runtime";import*as s from"@stylexjs/stylex";function c({label:c,onContinue:l,children:u}={}){let d=i(`AmountEntry.Footer`),{_:f}=e(),p=l??d.onContinue,m=c??d.footerLabel??f({id:`xGVfLh`,message:`Continue`}),h=d.ctaDisabled===!0,g=typeof p==`function`&&!h;return o(`div`,{"data-stridge-slot":n.footer,...s.props(r.footer),children:[u,a(t,{size:`cta`,disabled:h,onClick:g?p:void 0,...s.props(r.cta,g?r.ctaInteractive:r.ctaInert),children:m})]})}export{c as AmountEntryFooter};
|
|
@@ -16,7 +16,8 @@ import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
|
16
16
|
declare function AmountEntryHero({
|
|
17
17
|
currencySymbol: currencySymbolProp,
|
|
18
18
|
subLine: subLineProp,
|
|
19
|
-
subLineAmount: subLineAmountProp
|
|
19
|
+
subLineAmount: subLineAmountProp,
|
|
20
|
+
compact: compactProp
|
|
20
21
|
}?: AmountEntryHeroProps): _$react_jsx_runtime0.JSX.Element;
|
|
21
22
|
//#endregion
|
|
22
23
|
export { AmountEntryHero };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import{useLingui as e}from"../../../../../i18n/useLingui.js";import"../../../../../../i18n/index.js";import{ArrowRightLeftIcon as t}from"../../../../../icons/ArrowRightLeftIcon.js";import"../../../../../../icons/index.js";import{parseAmountInputValue as n}from"../../../../../ui/AmountInput/utils.js";import{AmountInput as r}from"../../../../../ui/AmountInput/AmountInput.js";import"../../../../../ui/AmountInput/index.js";import{
|
|
1
|
+
"use client";import{useLingui as e}from"../../../../../i18n/useLingui.js";import"../../../../../../i18n/index.js";import{ArrowRightLeftIcon as t}from"../../../../../icons/ArrowRightLeftIcon.js";import"../../../../../../icons/index.js";import{parseAmountInputValue as n}from"../../../../../ui/AmountInput/utils.js";import{AmountInput as r}from"../../../../../ui/AmountInput/AmountInput.js";import"../../../../../ui/AmountInput/index.js";import{FiatSymbol as i}from"../../../../../ui/FiatSymbol/FiatSymbol.js";import{FiatAmount as a}from"../../../../../ui/FiatSymbol/FiatAmount.js";import"../../../../../ui/FiatSymbol/index.js";import{AMOUNT_ENTRY_SLOTS as o}from"../../AmountEntry.slots.js";import{styles as s}from"../../AmountEntry.styles.js";import{useAmountEntryContext as c}from"../../context.js";import{detectAssetDecimals as l,formatAmountForBand as u,formatFiatLine as d,splitSubLine as f}from"./utils.js";import{StaticBand as ee}from"./StaticBand.js";import{ICON_TRANSITION as p,SWAP_TRANSITION as m,SYMBOL_TRANSITION as te,WIDTH_TRANSITION as h}from"./transitions.js";import{SwapBackdrop as g}from"./SwapBackdrop.js";import{useSwapState as _}from"./useSwapState.js";import{useCallback as v,useEffect as y,useId as ne,useRef as b,useState as x}from"react";import{jsx as S,jsxs as C}from"react/jsx-runtime";import{LayoutGroup as re,m as w}from"motion/react";import*as T from"@stylexjs/stylex";function E({currencySymbol:a,subLine:d,subLineAmount:f,compact:E}={}){let O=c(`AmountEntry.Hero`),k=a??O.currencySymbol??`$`,A=d??O.subLine,j=f??O.subLineAmount,{_:M}=e(),ie=typeof O.onAmountChange==`function`,N=ne(),P=b(null),F=b(null),[I,ae]=x(null);y(()=>{let e=F.current;if(!e||typeof ResizeObserver>`u`)return;let t=()=>{let t=window.getComputedStyle(e),n=(Number.parseFloat(t.paddingInlineStart)||0)+(Number.parseFloat(t.paddingInlineEnd)||0),r=e.clientWidth-n;ae(e=>e===r||r<=0?e:r)};t();let n=new ResizeObserver(t);return n.observe(e),()=>n.disconnect()},[]);let L=O.format?.maximumFractionDigits??5,R=O.format?.useGrouping!==!1,z=l(j,L),B=v((e,t)=>u(e,t,{locale:O.locale,fiatFormat:O.format,fiatMaxDecimals:L,assetDecimals:z,useGrouping:R}),[O.locale,O.format,L,z,R]),{swapped:V,isAnimating:H,onSwap:U}=_({inputRef:P,onAfterSwap:v(e=>{O.amount!==null&&K(B(O.amount,e))},[O.amount,B])}),W=O.amount===null?``:B(O.amount,V),[G,K]=x(W);y(()=>{document.activeElement!==P.current&&K(W)},[W]);let q=e=>{K(e),O.onAmountChange?.(n(e,O.locale))},J=`${N}-fiat`,Y=`${N}-asset`,X=V?Y:J,Z=V?J:Y,Q=D({swapped:V,ctx:O,currencySymbol:k,subLineAmount:j}),$=T.props(s.heroBlock,E?s.heroBlockCompact:null),oe=I===null?void 0:{"--stridge-amt-available-width":`${I}px`};return S(re,{id:N,children:C(`div`,{ref:F,"data-stridge-slot":o.hero,className:$.className,style:$.style,children:[C(w.div,{layoutId:X,dir:`ltr`,transition:m,...T.props(s.bigSlot),children:[S(g,{active:H}),ie?C(r,{"data-stridge-slot":o.heroBand,value:G,onValueChange:q,locale:O.locale??`en-US`,maxDecimals:V?z:L,useGrouping:R,placeholder:`0`,className:T.props(s.hero).className,style:{...T.props(s.hero).style,...oe},children:[!V&&S(r.Prefix,{...T.props(s.heroCurrency),children:S(i,{code:O.currencyCode??``,symbol:k})}),S(r.Field,{"aria-label":V?`Amount in ${O.receiveToken.symbol}`:`Amount in ${k}`,ref:P,autoFocus:!0,...T.props(s.heroAmount)})]}):S(ee,{swapped:V,ctx:O,currencySymbol:k,assetDecimals:z})]},X),A??C(`button`,{type:`button`,dir:`ltr`,"data-stridge-slot":o.heroSwap,"aria-label":M({id:`GwkmPx`,message:`Swap displayed amount`}),"aria-pressed":V,onClick:U,...T.props(s.swapToggle),children:[S(w.span,{"aria-hidden":!0,animate:{scaleY:V?-1:1},transition:p,...T.props(s.swapIcon),children:S(t,{width:`14`,height:`14`})}),C(w.span,{layout:!0,transition:h,...T.props(s.swapTextWrap),children:[C(w.span,{layoutId:Z,transition:m,...T.props(s.swapText),children:[Q.digits,S(g,{active:H})]},Z),Q.symbol&&S(w.span,{initial:{opacity:0},animate:{opacity:1},transition:te,...T.props(s.swapSymbol),children:Q.symbol},`symbol-${Q.symbol}`)]})]})]})})}function D({swapped:e,ctx:t,currencySymbol:n,subLineAmount:r}){if(e)return{digits:t.currencyCode?S(a,{value:t.amount??0,currency:t.currencyCode,locale:t.locale,...t.format?{format:t.format}:{}}):d(t.amount,n,t.locale,t.format),symbol:null};let i=f(r);return{digits:i.digits||`${t.amount??0}`,symbol:i.symbol||` ${t.receiveToken.symbol}`}}export{E as AmountEntryHero};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import{
|
|
1
|
+
"use client";import{FiatSymbol as e}from"../../../../../ui/FiatSymbol/FiatSymbol.js";import"../../../../../ui/FiatSymbol/index.js";import{styles as t}from"../../AmountEntry.styles.js";import{formatAmountForBand as n}from"./utils.js";import{jsx as r,jsxs as i}from"react/jsx-runtime";import*as a from"@stylexjs/stylex";function o({swapped:o,ctx:s,currencySymbol:c,assetDecimals:l}){let u=s.format?.useGrouping!==!1,d=s.format?.maximumFractionDigits??5,f=s.amount===null?`0`:n(s.amount,o,{locale:s.locale,fiatFormat:s.format,fiatMaxDecimals:d,assetDecimals:l,useGrouping:u});return i(`div`,{...a.props(t.hero),children:[!o&&r(`span`,{...a.props(t.heroCurrency),children:r(e,{code:s.currencyCode??``,symbol:c})}),r(`span`,{...a.props(t.heroAmount),children:f})]})}export{o as StaticBand};
|
|
@@ -86,6 +86,11 @@ interface AmountEntryProps {
|
|
|
86
86
|
* Defaults to `"$"`.
|
|
87
87
|
*/
|
|
88
88
|
currencySymbol?: string;
|
|
89
|
+
/**
|
|
90
|
+
* ISO-4217 code of the hero currency (e.g. `"AED"`, `"USD"`). When set, the symbol renders via
|
|
91
|
+
* {@link import("#/shared/ui").FiatSymbol}; otherwise it falls back to the plain `currencySymbol` text.
|
|
92
|
+
*/
|
|
93
|
+
currencyCode?: string;
|
|
89
94
|
/**
|
|
90
95
|
* Sub-line slot rendered below the hero amount. When omitted, a
|
|
91
96
|
* default sub-line composed from `subLineAmount` (or the receive
|
|
@@ -126,6 +131,12 @@ interface AmountEntryProps {
|
|
|
126
131
|
* Footer CTA click handler. When undefined the CTA renders inert.
|
|
127
132
|
*/
|
|
128
133
|
onContinue?: () => void;
|
|
134
|
+
/**
|
|
135
|
+
* Renders the Footer CTA as a disabled `Button` (greyed, non-interactive) without withholding
|
|
136
|
+
* {@link onContinue}. Use for transient "not ready yet" states — e.g. the onramp quote is still
|
|
137
|
+
* loading — where the action exists but shouldn't fire yet.
|
|
138
|
+
*/
|
|
139
|
+
ctaDisabled?: boolean;
|
|
129
140
|
/**
|
|
130
141
|
* Validation hint surfaced below the swap-direction Flow row when the typed amount sits
|
|
131
142
|
* outside the host's allowed range (min / max / above balance). Omit when no hint is
|
|
@@ -197,6 +208,11 @@ interface AmountEntryHeroProps {
|
|
|
197
208
|
* to the `subLineAmount` set on the {@link AmountEntry} root.
|
|
198
209
|
*/
|
|
199
210
|
subLineAmount?: string;
|
|
211
|
+
/**
|
|
212
|
+
* Collapse the band's large top padding. Use when the flow renders its own label directly above
|
|
213
|
+
* the band (e.g. the onramp "YOU PAY") so the amount sits right under it.
|
|
214
|
+
*/
|
|
215
|
+
compact?: boolean;
|
|
200
216
|
}
|
|
201
217
|
/**
|
|
202
218
|
* Pills (percent-preset row) part props.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import{useLingui as e}from"../../../../i18n/useLingui.js";import"../../../../../i18n/index.js";import{assertNever as t}from"../../../../utils/assertNever.js";import{ChevronRightIcon as n}from"../../../../icons/ChevronRightIcon.js";import{InfoIcon as r}from"../../../../icons/InfoIcon.js";import"../../../../../icons/index.js";import{Collapsible as i}from"../../../../ui/Collapsible/Collapsible.js";import"../../../../ui/Collapsible/index.js";import{
|
|
1
|
+
"use client";import{useLingui as e}from"../../../../i18n/useLingui.js";import"../../../../../i18n/index.js";import{assertNever as t}from"../../../../utils/assertNever.js";import{ChevronRightIcon as n}from"../../../../icons/ChevronRightIcon.js";import{InfoIcon as r}from"../../../../icons/InfoIcon.js";import"../../../../../icons/index.js";import{Collapsible as i}from"../../../../ui/Collapsible/Collapsible.js";import"../../../../ui/Collapsible/index.js";import{useDirectionalChevronTransform as a}from"../../../../dialog/useDirectionalChevronTransform.js";import{Skeleton as o}from"../../../../ui/Skeleton/Skeleton.js";import"../../../../ui/Skeleton/index.js";import{text as s}from"../../../../ui/Text/Text.js";import{Tooltip as c}from"../../../../ui/Tooltip/Tooltip.js";import"../../../../ui/Tooltip/index.js";import"../../../../../ui/index.js";import{CONFIRM_TRANSFER_SLOTS as l}from"../ConfirmTransfer.slots.js";import{styles as u}from"../ConfirmTransfer.styles.js";import{useConfirmTransferContext as d}from"../context.js";import{useEffect as f,useState as p}from"react";import{jsx as m,jsxs as h}from"react/jsx-runtime";import*as g from"@stylexjs/stylex";const _=[`selectedRoute`,`networkCost`,`priceImpact`,`maxSlippage`];function v({label:t,defaultOpen:n=!1,open:r,onOpenChange:a}){let c=d(`ConfirmTransfer.Breakdown`),{_:v}=e(),x=t??v({id:`5joj8M`,message:`Transaction breakdown`}),{breakdown:C,loading:w}=c,[T,E]=p(r??n);f(()=>{r!==void 0&&E(r)},[r]);let D=w?!1:T;return h(i,{"data-stridge-slot":l.breakdown,open:D,onOpenChange:e=>{w||(E(e),a?.(e))},disabled:w,...g.props(u.section,u.breakdown),children:[m(i.Trigger,{render:(e,{open:t})=>h(`button`,{type:`button`,...e,children:[m(s.span,{size:`meta`,fontWeight:`medium`,leading:`tight`,tracking:`tight`,children:x}),w?m(o,{width:56,height:12}):m(S,{open:t})]}),"aria-label":x,disabled:w,...g.props(u.breakdownTrigger)}),m(i.Panel,{children:m(`div`,{...g.props(u.breakdownPanel),children:_.map(e=>{let t=y(e,C);return t?m(b,{...t},e):null})})})]})}function y(e,n){switch(e){case`selectedRoute`:return n.selectedRoute?{kind:`selectedRoute`,row:n.selectedRoute}:null;case`networkCost`:return n.networkCost?{kind:`networkCost`,row:n.networkCost}:null;case`priceImpact`:return n.priceImpact?{kind:`priceImpact`,row:n.priceImpact}:null;case`maxSlippage`:return n.maxSlippage?{kind:`maxSlippage`,row:n.maxSlippage}:null;default:return t(e)}}function b(t){let{_:n}=e(),{row:r}=t,i=x(t,e=>n({id:`KGoAE6`,message:`Auto · {value}`,values:{value:e}}));return h(`div`,{...g.props(u.breakdownRow),children:[h(`div`,{...g.props(u.breakdownLabelGroup),children:[m(s.span,{size:`xs`,fontWeight:`medium`,leading:`tight`,tracking:`tight`,color:`subdued`,children:r.label}),r.tooltip?m(C,{content:r.tooltip,label:r.label}):null]}),h(`div`,{...g.props(u.breakdownValueGroup),children:[r.valueAdornment,m(s.span,{size:`xs`,fontWeight:`semibold`,leading:`tight`,tracking:`tight`,children:i})]})]})}function x(e,n){switch(e.kind){case`selectedRoute`:return e.row.value;case`networkCost`:return e.row.valueUsd;case`priceImpact`:return e.row.valuePercent;case`maxSlippage`:return e.row.auto?n(e.row.valuePercent):e.row.valuePercent;default:return t(e)}}function S({open:e}){let t=a(e),r=g.props(u.breakdownChevron);return m(n,{"aria-hidden":!0,className:r.className,style:{...r.style,transform:t}})}function C({content:t,label:n}){let{_:i}=e();function a(e){e.stopPropagation()}return h(c.Root,{children:[m(c.Trigger,{"aria-label":i({id:`-tu7Q8`,message:`More about {0}`,values:{0:n.toLowerCase()}}),onClick:a,...g.props(u.breakdownInfoTrigger),children:m(r,{"aria-hidden":!0,...g.props(u.breakdownInfoIcon)})}),m(c.Content,{children:t})]})}export{v as ConfirmTransferBreakdown};
|