@stridge/kit 0.1.0-alpha.61 → 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.
Files changed (170) hide show
  1. package/dist/_internal/deposit/driver/index.d.ts +2 -2
  2. package/dist/deposit/compound/index.d.ts +10 -2
  3. package/dist/deposit/compound/index.js +1 -1
  4. package/dist/deposit/widgets/index.d.ts +3 -1
  5. package/dist/deposit/widgets/index.js +1 -1
  6. package/dist/drivers/stridge/createStridgeDepositDriver.js +1 -1
  7. package/dist/drivers/stridge-mock/createStridgeMockDriver.js +1 -1
  8. package/dist/drivers/stridge-mock/fixtures.d.ts +1 -1
  9. package/dist/drivers/stridge-mock/fixtures.js +1 -1
  10. package/dist/flows/deposit/dialog/DepositDialog.js +1 -1
  11. package/dist/flows/deposit/driver/payloads.d.ts +136 -7
  12. package/dist/flows/deposit/driver/types.d.ts +44 -2
  13. package/dist/flows/deposit/orchestrator/controller.js +1 -1
  14. package/dist/flows/deposit/orchestrator/reducer.js +1 -1
  15. package/dist/flows/deposit/orchestrator/types.d.ts +105 -12
  16. package/dist/flows/deposit/shared/onramp.js +1 -1
  17. package/dist/flows/deposit/shared/onrampError.js +1 -0
  18. package/dist/flows/deposit/widgets/deposit/Deposit.js +1 -1
  19. package/dist/flows/deposit/widgets/error-state/ErrorState.js +1 -1
  20. package/dist/flows/deposit/widgets/onramp-amount-entry/OnrampAmountEntry.d.ts +12 -8
  21. package/dist/flows/deposit/widgets/onramp-amount-entry/OnrampAmountEntry.js +1 -1
  22. package/dist/flows/deposit/widgets/onramp-amount-entry/compound/OnrampAmountEntry.d.ts +4 -0
  23. package/dist/flows/deposit/widgets/onramp-amount-entry/compound/OnrampAmountEntry.js +1 -1
  24. package/dist/flows/deposit/widgets/onramp-amount-entry/compound/OnrampAmountEntry.slots.d.ts +7 -0
  25. package/dist/flows/deposit/widgets/onramp-amount-entry/compound/OnrampAmountEntry.slots.js +1 -1
  26. package/dist/flows/deposit/widgets/onramp-amount-entry/compound/OnrampAmountEntry.styles.js +1 -1
  27. package/dist/flows/deposit/widgets/onramp-amount-entry/compound/components/CurrencyChip.d.ts +12 -0
  28. package/dist/flows/deposit/widgets/onramp-amount-entry/compound/components/CurrencyChip.js +1 -0
  29. package/dist/flows/deposit/widgets/onramp-amount-entry/compound/components/ProviderCard.d.ts +12 -0
  30. package/dist/flows/deposit/widgets/onramp-amount-entry/compound/components/ProviderCard.js +1 -0
  31. package/dist/flows/deposit/widgets/onramp-amount-entry/compound/components/ReceiveChip.js +1 -1
  32. package/dist/flows/deposit/widgets/onramp-amount-entry/compound/context.d.ts +14 -0
  33. package/dist/flows/deposit/widgets/onramp-amount-entry/compound/index.d.ts +1 -0
  34. package/dist/flows/deposit/widgets/onramp-amount-entry/compound/types.d.ts +12 -1
  35. package/dist/flows/deposit/widgets/onramp-confirm/OnrampConfirm.d.ts +2 -0
  36. package/dist/flows/deposit/widgets/onramp-confirm/OnrampConfirm.js +1 -1
  37. package/dist/flows/deposit/widgets/onramp-confirm/compound/OnrampConfirm.d.ts +2 -0
  38. package/dist/flows/deposit/widgets/onramp-confirm/compound/OnrampConfirm.js +1 -1
  39. package/dist/flows/deposit/widgets/onramp-confirm/compound/OnrampConfirm.slots.d.ts +7 -0
  40. package/dist/flows/deposit/widgets/onramp-confirm/compound/OnrampConfirm.slots.js +1 -1
  41. package/dist/flows/deposit/widgets/onramp-confirm/compound/OnrampConfirm.styles.js +1 -1
  42. package/dist/flows/deposit/widgets/onramp-confirm/compound/components/Body.js +1 -1
  43. package/dist/flows/deposit/widgets/onramp-confirm/compound/components/Disclaimer.d.ts +21 -0
  44. package/dist/flows/deposit/widgets/onramp-confirm/compound/components/Disclaimer.js +1 -0
  45. package/dist/flows/deposit/widgets/onramp-confirm/compound/components/Summary.d.ts +2 -2
  46. package/dist/flows/deposit/widgets/onramp-confirm/compound/components/Summary.js +1 -1
  47. package/dist/flows/deposit/widgets/onramp-confirm/compound/context.d.ts +28 -7
  48. package/dist/flows/deposit/widgets/onramp-confirm/compound/index.d.ts +1 -1
  49. package/dist/flows/deposit/widgets/onramp-confirm/compound/types.d.ts +7 -2
  50. package/dist/flows/deposit/widgets/onramp-currency-picker/OnrampCurrencyPicker.d.ts +39 -0
  51. package/dist/flows/deposit/widgets/onramp-currency-picker/OnrampCurrencyPicker.js +1 -0
  52. package/dist/flows/deposit/widgets/onramp-currency-picker/compound/OnrampCurrencyPicker.d.ts +37 -0
  53. package/dist/flows/deposit/widgets/onramp-currency-picker/compound/OnrampCurrencyPicker.js +1 -0
  54. package/dist/flows/deposit/widgets/onramp-currency-picker/compound/OnrampCurrencyPicker.slots.d.ts +17 -0
  55. package/dist/flows/deposit/widgets/onramp-currency-picker/compound/OnrampCurrencyPicker.slots.js +1 -0
  56. package/dist/flows/deposit/widgets/onramp-currency-picker/compound/OnrampCurrencyPicker.styles.js +1 -0
  57. package/dist/flows/deposit/widgets/onramp-currency-picker/compound/components/Body.d.ts +6 -0
  58. package/dist/flows/deposit/widgets/onramp-currency-picker/compound/components/Body.js +1 -0
  59. package/dist/flows/deposit/widgets/onramp-currency-picker/compound/components/CurrencyRow.d.ts +12 -0
  60. package/dist/flows/deposit/widgets/onramp-currency-picker/compound/components/CurrencyRow.js +1 -0
  61. package/dist/flows/deposit/widgets/onramp-currency-picker/compound/components/Empty.js +1 -0
  62. package/dist/flows/deposit/widgets/onramp-currency-picker/compound/components/Header.d.ts +10 -0
  63. package/dist/flows/deposit/widgets/onramp-currency-picker/compound/components/Header.js +1 -0
  64. package/dist/flows/deposit/widgets/onramp-currency-picker/compound/components/Search.d.ts +6 -0
  65. package/dist/flows/deposit/widgets/onramp-currency-picker/compound/components/Search.js +1 -0
  66. package/dist/flows/deposit/widgets/onramp-currency-picker/compound/context.js +1 -0
  67. package/dist/flows/deposit/widgets/onramp-currency-picker/compound/index.d.ts +3 -0
  68. package/dist/flows/deposit/widgets/onramp-currency-picker/compound/index.js +1 -0
  69. package/dist/flows/deposit/widgets/onramp-currency-picker/compound/types.d.ts +48 -0
  70. package/dist/flows/deposit/widgets/onramp-currency-picker/index.d.ts +1 -0
  71. package/dist/flows/deposit/widgets/onramp-currency-picker/index.js +1 -0
  72. package/dist/flows/deposit/widgets/onramp-payment-pending/OnrampPaymentPending.d.ts +2 -0
  73. package/dist/flows/deposit/widgets/onramp-payment-pending/OnrampPaymentPending.js +1 -1
  74. package/dist/flows/deposit/widgets/onramp-payment-pending/compound/OnrampPaymentPending.d.ts +6 -1
  75. package/dist/flows/deposit/widgets/onramp-payment-pending/compound/OnrampPaymentPending.js +1 -1
  76. package/dist/flows/deposit/widgets/onramp-payment-pending/compound/OnrampPaymentPending.slots.d.ts +3 -0
  77. package/dist/flows/deposit/widgets/onramp-payment-pending/compound/OnrampPaymentPending.slots.js +1 -1
  78. package/dist/flows/deposit/widgets/onramp-payment-pending/compound/components/Flow.d.ts +13 -0
  79. package/dist/flows/deposit/widgets/onramp-payment-pending/compound/components/Flow.js +1 -0
  80. package/dist/flows/deposit/widgets/onramp-payment-pending/compound/components/Flow.styles.js +1 -0
  81. package/dist/flows/deposit/widgets/onramp-payment-pending/compound/context.d.ts +32 -0
  82. package/dist/flows/deposit/widgets/onramp-payment-pending/compound/index.d.ts +1 -0
  83. package/dist/flows/deposit/widgets/onramp-provider-picker/OnrampProviderPicker.d.ts +38 -0
  84. package/dist/flows/deposit/widgets/onramp-provider-picker/OnrampProviderPicker.js +1 -0
  85. package/dist/flows/deposit/widgets/onramp-provider-picker/compound/OnrampProviderPicker.d.ts +35 -0
  86. package/dist/flows/deposit/widgets/onramp-provider-picker/compound/OnrampProviderPicker.js +1 -0
  87. package/dist/flows/deposit/widgets/onramp-provider-picker/compound/OnrampProviderPicker.slots.d.ts +19 -0
  88. package/dist/flows/deposit/widgets/onramp-provider-picker/compound/OnrampProviderPicker.slots.js +1 -0
  89. package/dist/flows/deposit/widgets/onramp-provider-picker/compound/OnrampProviderPicker.styles.js +1 -0
  90. package/dist/flows/deposit/widgets/onramp-provider-picker/compound/components/Body.d.ts +6 -0
  91. package/dist/flows/deposit/widgets/onramp-provider-picker/compound/components/Body.js +1 -0
  92. package/dist/flows/deposit/widgets/onramp-provider-picker/compound/components/Header.d.ts +10 -0
  93. package/dist/flows/deposit/widgets/onramp-provider-picker/compound/components/Header.js +1 -0
  94. package/dist/flows/deposit/widgets/onramp-provider-picker/compound/components/ProviderRow.d.ts +15 -0
  95. package/dist/flows/deposit/widgets/onramp-provider-picker/compound/components/ProviderRow.js +1 -0
  96. package/dist/flows/deposit/widgets/onramp-provider-picker/compound/context.js +1 -0
  97. package/dist/flows/deposit/widgets/onramp-provider-picker/compound/index.d.ts +3 -0
  98. package/dist/flows/deposit/widgets/onramp-provider-picker/compound/index.js +1 -0
  99. package/dist/flows/deposit/widgets/onramp-provider-picker/compound/types.d.ts +50 -0
  100. package/dist/flows/deposit/widgets/onramp-provider-picker/index.d.ts +1 -0
  101. package/dist/flows/deposit/widgets/onramp-provider-picker/index.js +1 -0
  102. package/dist/flows/deposit/widgets/success-state/SuccessState.js +1 -1
  103. package/dist/flows/withdraw/widgets/withdraw-form/compound/components/RecipientField.js +1 -1
  104. package/dist/format/index.d.ts +2 -1
  105. package/dist/format/index.js +1 -1
  106. package/dist/i18n/locales/ar.js +1 -1
  107. package/dist/i18n/locales/es.js +1 -1
  108. package/dist/i18n/locales/source-keys.d.ts +1 -1
  109. package/dist/icons/index.d.ts +4 -1
  110. package/dist/icons/index.js +1 -1
  111. package/dist/package.js +1 -1
  112. package/dist/shared/attribution/Attribution.js +1 -1
  113. package/dist/shared/attribution/Attribution.styles.js +1 -1
  114. package/dist/shared/dialog/Frame.js +1 -1
  115. package/dist/shared/format/formatFiat.d.ts +31 -0
  116. package/dist/shared/format/formatFiat.js +1 -0
  117. package/dist/shared/icons/BellIcon.d.ts +7 -0
  118. package/dist/shared/icons/BellIcon.js +1 -0
  119. package/dist/shared/icons/DirhamSignIcon.d.ts +16 -0
  120. package/dist/shared/icons/DirhamSignIcon.js +1 -0
  121. package/dist/shared/icons/SearchIcon.d.ts +7 -0
  122. package/dist/shared/icons/SearchIcon.js +1 -0
  123. package/dist/shared/ui/AmountInput/useAutoShrinkFontSize.js +1 -1
  124. package/dist/shared/ui/Checkbox/Checkbox.d.ts +47 -0
  125. package/dist/shared/ui/Checkbox/Checkbox.js +1 -0
  126. package/dist/shared/ui/Checkbox/Checkbox.slots.d.ts +12 -0
  127. package/dist/shared/ui/Checkbox/Checkbox.slots.js +1 -0
  128. package/dist/shared/ui/Checkbox/Checkbox.styles.js +1 -0
  129. package/dist/shared/ui/Checkbox/index.d.ts +2 -0
  130. package/dist/shared/ui/Checkbox/index.js +1 -0
  131. package/dist/shared/ui/CurrencyGlyph/CurrencyGlyph.d.ts +36 -0
  132. package/dist/shared/ui/CurrencyGlyph/CurrencyGlyph.js +1 -0
  133. package/dist/shared/ui/CurrencyGlyph/CurrencyGlyph.slots.d.ts +12 -0
  134. package/dist/shared/ui/CurrencyGlyph/CurrencyGlyph.slots.js +1 -0
  135. package/dist/shared/ui/CurrencyGlyph/CurrencyGlyph.styles.js +1 -0
  136. package/dist/shared/ui/CurrencyGlyph/flags.js +1 -0
  137. package/dist/shared/ui/CurrencyGlyph/index.d.ts +2 -0
  138. package/dist/shared/ui/CurrencyGlyph/index.js +1 -0
  139. package/dist/shared/ui/DisclosureRow/DisclosureRow.d.ts +56 -0
  140. package/dist/shared/ui/DisclosureRow/DisclosureRow.js +1 -0
  141. package/dist/shared/ui/DisclosureRow/DisclosureRow.slots.d.ts +8 -0
  142. package/dist/shared/ui/DisclosureRow/DisclosureRow.slots.js +1 -0
  143. package/dist/shared/ui/DisclosureRow/DisclosureRow.styles.js +1 -0
  144. package/dist/shared/ui/DisclosureRow/index.d.ts +2 -0
  145. package/dist/shared/ui/DisclosureRow/index.js +1 -0
  146. package/dist/shared/ui/FiatSymbol/FiatAmount.d.ts +32 -0
  147. package/dist/shared/ui/FiatSymbol/FiatAmount.js +1 -0
  148. package/dist/shared/ui/FiatSymbol/FiatSymbol.d.ts +30 -0
  149. package/dist/shared/ui/FiatSymbol/FiatSymbol.js +1 -0
  150. package/dist/shared/ui/FiatSymbol/index.d.ts +2 -0
  151. package/dist/shared/ui/FiatSymbol/index.js +1 -0
  152. package/dist/shared/utils/logos/resolveLogoSrc.js +1 -1
  153. package/dist/shared/widgets/amount-entry/compound/AmountEntry.js +1 -1
  154. package/dist/shared/widgets/amount-entry/compound/AmountEntry.styles.js +1 -1
  155. package/dist/shared/widgets/amount-entry/compound/components/Hero/Hero.d.ts +2 -1
  156. package/dist/shared/widgets/amount-entry/compound/components/Hero/Hero.js +1 -1
  157. package/dist/shared/widgets/amount-entry/compound/components/Hero/StaticBand.js +1 -1
  158. package/dist/shared/widgets/amount-entry/compound/types.d.ts +10 -0
  159. package/dist/shared/widgets/confirm-transfer/compound/components/Breakdown.js +1 -1
  160. package/dist/shared/widgets/error-state/compound/ErrorState.styles.js +1 -1
  161. package/dist/shared/widgets/error-state/compound/components/MoreDetails.d.ts +3 -3
  162. package/dist/shared/widgets/error-state/compound/components/MoreDetails.js +1 -1
  163. package/dist/shared/widgets/success-state/compound/SuccessState.styles.js +1 -1
  164. package/dist/shared/widgets/success-state/compound/components/MoreDetails.d.ts +2 -3
  165. package/dist/shared/widgets/success-state/compound/components/MoreDetails.js +1 -1
  166. package/dist/styles/index.css +118 -0
  167. package/dist/ui/index.d.ts +9 -1
  168. package/dist/ui/index.js +1 -1
  169. package/dist/version.js +1 -1
  170. package/package.json +1 -1
@@ -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,2 @@
1
+ import { CurrencyGlyph } from "./CurrencyGlyph.js";
2
+ import { CURRENCY_GLYPH_SLOTS, CurrencyGlyphSlot } from "./CurrencyGlyph.slots.js";
@@ -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,2 @@
1
+ import { DisclosureRow } from "./DisclosureRow.js";
2
+ import { DISCLOSURE_ROW_SLOTS, DisclosureRowSlot } from "./DisclosureRow.slots.js";
@@ -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,2 @@
1
+ import { FiatAmount, FiatAmountProps } from "./FiatAmount.js";
2
+ import { FiatSymbol, FiatSymbolProps } from "./FiatSymbol.js";
@@ -0,0 +1 @@
1
+ import"./FiatSymbol.js";import"./FiatAmount.js";
@@ -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 t=e(i.symbol);t&&a.push(t)}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
+ 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{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,subLine:S,subLineAmount:C,presets:w=y,activePreset:T,onPresetSelect:E,bridge:D,footerLabel:O,onContinue:k,ctaDisabled:A,notice:j,headerTrailing:M,children:N}=e,P=h(()=>({amount:t,sendToken:o,receiveToken:s,locale:l,format:u??v,min:d,max:f,onAmountChange:p,headerTitle:m,onBack:b,currencySymbol:x,subLine:S,subLineAmount:C,presets:w,activePreset:T,onPresetSelect:E,bridge:D,footerLabel:O,onContinue:k,ctaDisabled:A,notice:j,headerTrailing:M}),[t,o,s,l,u,d,f,p,m,b,x,S,C,w,T,E,D,O,k,A,j,M]);return g(c.Provider,{value:P,children:g(n.Provider,{children:g(r,{"data-stridge-slot":i.root,..._.props(a.root),children:N})})})}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
+ "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};
@@ -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{AMOUNT_ENTRY_SLOTS as i}from"../../AmountEntry.slots.js";import{styles as a}from"../../AmountEntry.styles.js";import{useAmountEntryContext as o}from"../../context.js";import{detectAssetDecimals as s,formatAmountForBand as c,formatFiatLine as l,splitSubLine as u}from"./utils.js";import{StaticBand as ee}from"./StaticBand.js";import{ICON_TRANSITION as d,SWAP_TRANSITION as f,SYMBOL_TRANSITION as p,WIDTH_TRANSITION as te}from"./transitions.js";import{SwapBackdrop as m}from"./SwapBackdrop.js";import{useSwapState as h}from"./useSwapState.js";import{useCallback as g,useEffect as _,useId as v,useRef as y,useState as b}from"react";import{jsx as x,jsxs as S}from"react/jsx-runtime";import{LayoutGroup as C,m as w}from"motion/react";import*as T from"@stylexjs/stylex";function E({currencySymbol:l,subLine:u,subLineAmount:E}={}){let D=o(`AmountEntry.Hero`),O=l??D.currencySymbol??`$`,k=u??D.subLine,A=E??D.subLineAmount,{_:j}=e(),M=typeof D.onAmountChange==`function`,N=v(),P=y(null),F=y(null),[I,re]=b(null);_(()=>{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;re(e=>e===r||r<=0?e:r)};t();let n=new ResizeObserver(t);return n.observe(e),()=>n.disconnect()},[]);let L=D.format?.maximumFractionDigits??5,R=D.format?.useGrouping!==!1,z=s(A,L),B=g((e,t)=>c(e,t,{locale:D.locale,fiatFormat:D.format,fiatMaxDecimals:L,assetDecimals:z,useGrouping:R}),[D.locale,D.format,L,z,R]),{swapped:V,isAnimating:H,onSwap:U}=h({inputRef:P,onAfterSwap:g(e=>{D.amount!==null&&K(B(D.amount,e))},[D.amount,B])}),W=D.amount===null?``:B(D.amount,V),[G,K]=b(W);_(()=>{document.activeElement!==P.current&&K(W)},[W]);let q=e=>{K(e),D.onAmountChange?.(n(e,D.locale))},J=`${N}-fiat`,Y=`${N}-asset`,X=V?Y:J,Z=V?J:Y,Q=ne({swapped:V,ctx:D,currencySymbol:O,subLineAmount:A}),$=T.props(a.heroBlock),ie=I===null?void 0:{"--stridge-amt-available-width":`${I}px`};return x(C,{id:N,children:S(`div`,{ref:F,"data-stridge-slot":i.hero,className:$.className,style:$.style,children:[S(w.div,{layoutId:X,dir:`ltr`,transition:f,...T.props(a.bigSlot),children:[x(m,{active:H}),M?S(r,{"data-stridge-slot":i.heroBand,value:G,onValueChange:q,locale:D.locale??`en-US`,maxDecimals:V?z:L,useGrouping:R,placeholder:`0`,className:T.props(a.hero).className,style:{...T.props(a.hero).style,...ie},children:[!V&&x(r.Prefix,{...T.props(a.heroCurrency),children:O}),x(r.Field,{"aria-label":V?`Amount in ${D.receiveToken.symbol}`:`Amount in ${O}`,ref:P,autoFocus:!0,...T.props(a.heroAmount)})]}):x(ee,{swapped:V,ctx:D,currencySymbol:O,assetDecimals:z})]},X),k??S(`button`,{type:`button`,dir:`ltr`,"data-stridge-slot":i.heroSwap,"aria-label":j({id:`GwkmPx`,message:`Swap displayed amount`}),"aria-pressed":V,onClick:U,...T.props(a.swapToggle),children:[x(w.span,{"aria-hidden":!0,animate:{scaleY:V?-1:1},transition:d,...T.props(a.swapIcon),children:x(t,{width:`14`,height:`14`})}),S(w.span,{layout:!0,transition:te,...T.props(a.swapTextWrap),children:[S(w.span,{layoutId:Z,transition:f,...T.props(a.swapText),children:[Q.digits,x(m,{active:H})]},Z),Q.symbol&&x(w.span,{initial:{opacity:0},animate:{opacity:1},transition:p,...T.props(a.swapSymbol),children:Q.symbol},`symbol-${Q.symbol}`)]})]})]})})}function ne({swapped:e,ctx:t,currencySymbol:n,subLineAmount:r}){if(e)return{digits:l(t.amount,n,t.locale,t.format),symbol:null};let i=u(r);return{digits:i.digits||`${t.amount??0}`,symbol:i.symbol||` ${t.receiveToken.symbol}`}}export{E as AmountEntryHero};
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{styles as e}from"../../AmountEntry.styles.js";import{formatAmountForBand as t}from"./utils.js";import{jsx as n,jsxs as r}from"react/jsx-runtime";import*as i from"@stylexjs/stylex";function a({swapped:a,ctx:o,currencySymbol:s,assetDecimals:c}){let l=o.format?.useGrouping!==!1,u=o.format?.maximumFractionDigits??5,d=o.amount===null?`0`:t(o.amount,a,{locale:o.locale,fiatFormat:o.format,fiatMaxDecimals:u,assetDecimals:c,useGrouping:l});return r(`div`,{...i.props(e.hero),children:[!a&&n(`span`,{...i.props(e.heroCurrency),children:s}),n(`span`,{...i.props(e.heroAmount),children:d})]})}export{a as StaticBand};
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
@@ -203,6 +208,11 @@ interface AmountEntryHeroProps {
203
208
  * to the `subLineAmount` set on the {@link AmountEntry} root.
204
209
  */
205
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;
206
216
  }
207
217
  /**
208
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{Skeleton as a}from"../../../../ui/Skeleton/Skeleton.js";import"../../../../ui/Skeleton/index.js";import{text as o}from"../../../../ui/Text/Text.js";import{Tooltip as s}from"../../../../ui/Tooltip/Tooltip.js";import"../../../../ui/Tooltip/index.js";import"../../../../../ui/index.js";import{useDirectionalChevronTransform as c}from"../../../../dialog/useDirectionalChevronTransform.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:s}){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),s?.(e))},disabled:w,...g.props(u.section,u.breakdown),children:[m(i.Trigger,{render:(e,{open:t})=>h(`button`,{type:`button`,...e,children:[m(o.span,{size:`meta`,fontWeight:`medium`,leading:`tight`,tracking:`tight`,children:x}),w?m(a,{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(o.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(o.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=c(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(s.Root,{children:[m(s.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(s.Content,{children:t})]})}export{v as ConfirmTransferBreakdown};
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};
@@ -1 +1 @@
1
- const e={root:{"ErrorState__styles.root":`ErrorState__styles.root`,"position-kVAEAm":`x1n2onr6`,"width-kzqmXN":`xh8yej3`,"maxWidth-ks0D6T":`x17fpy1y`,$$css:`@stridge/kit:src/shared/widgets/error-state/compound/ErrorState.styles.ts:32`},header:{"ErrorState__styles.header":`ErrorState__styles.header`,"justifyContent-kjj79g":`x1qughib`,$$css:`@stridge/kit:src/shared/widgets/error-state/compound/ErrorState.styles.ts:40`},closeIcon:{"ErrorState__styles.closeIcon":`ErrorState__styles.closeIcon`,"color-kMwMTN":`xdksllq`,"strokeWidth-kfJifR":`x1k315e8`,$$css:`@stridge/kit:src/shared/widgets/error-state/compound/ErrorState.styles.ts:43`},hero:{"ErrorState__styles.hero":`ErrorState__styles.hero`,"display-k1xSpc":`x78zum5`,"flexDirection-kXwgrk":`xdt5ytf`,"alignItems-kGNEyG":`x6s0dn4`,"gap-kOIVth":`x883omv`,"paddingTop-kLKAdn":`x9desvi`,"paddingInlineEnd-kwRFfy":`x1o5r3ls`,"paddingBottom-kGO01o":`x1t4gjm`,"paddingInlineStart-kZCmMZ":`xz7312c`,"animationName-kKVMdj":`xv305lp`,"animationDuration-k44tkh":`xmprevt x1s1fvk8`,"animationTimingFunction-kyAemX":`xa3vuyk`,"animationFillMode-kWV6AL":`x1u6ievf`,$$css:`@stridge/kit:src/shared/widgets/error-state/compound/ErrorState.styles.ts:48`},heroRing:{"ErrorState__styles.heroRing":`ErrorState__styles.heroRing`,"display-k1xSpc":`x1lliihq`,"width-kzqmXN":`x1fu8urw`,"height-kZKoxP":`x1peatla`,"marginBottom-k1K539":`xat24cr`,"flexShrink-kmuXW":`x2lah0s`,$$css:`@stridge/kit:src/shared/widgets/error-state/compound/ErrorState.styles.ts:65`},heroRingMark:{"ErrorState__styles.heroRingMark":`ErrorState__styles.heroRingMark`,"transformOrigin-k3nNDw":`x1g0ag68`,"animationName-kKVMdj":`x14k796y x1aquc0h`,"animationDuration-k44tkh":`xmprevt`,"animationDelay-kKxzle":`x1x1c4bx x14q22ui`,"animationTimingFunction-kyAemX":`x4hg4is`,"animationFillMode-kWV6AL":`x1u6ievf`,"animationIterationCount-ko0y90":`x1v7wizp`,$$css:`@stridge/kit:src/shared/widgets/error-state/compound/ErrorState.styles.ts:72`},heroHeadline:{"ErrorState__styles.heroHeadline":`ErrorState__styles.heroHeadline`,"marginTop-keoZOQ":`x1xmf6yo`,$$css:`@stridge/kit:src/shared/widgets/error-state/compound/ErrorState.styles.ts:87`},heroReason:{"ErrorState__styles.heroReason":`ErrorState__styles.heroReason`,"maxWidth-ks0D6T":`x1va8c73`,$$css:`@stridge/kit:src/shared/widgets/error-state/compound/ErrorState.styles.ts:90`},detailsSection:{"ErrorState__styles.detailsSection":`ErrorState__styles.detailsSection`,"marginInlineStart-keTefX":`xnzr9dm`,"marginInlineEnd-k71WvV":`xnqxrjt`,$$css:`@stridge/kit:src/shared/widgets/error-state/compound/ErrorState.styles.ts:100`},statusValueFailed:{"ErrorState__styles.statusValueFailed":`ErrorState__styles.statusValueFailed`,"color-kMwMTN":`x19vemxs`,$$css:`@stridge/kit:src/shared/widgets/error-state/compound/ErrorState.styles.ts:105`},assetValue:{"ErrorState__styles.assetValue":`ErrorState__styles.assetValue`,"display-k1xSpc":`x3nfvp2`,"alignItems-kGNEyG":`x6s0dn4`,"gap-kOIVth":`x167g77z`,$$css:`@stridge/kit:src/shared/widgets/error-state/compound/ErrorState.styles.ts:109`},assetValueText:{"ErrorState__styles.assetValueText":`ErrorState__styles.assetValueText`,"display-k1xSpc":`x3nfvp2`,"alignItems-kGNEyG":`x1pha0wt`,"gap-kOIVth":`x17d4w8g`,$$css:`@stridge/kit:src/shared/widgets/error-state/compound/ErrorState.styles.ts:114`},assetValueStruck:{"ErrorState__styles.assetValueStruck":`ErrorState__styles.assetValueStruck`,"textDecorationLine-kMnn75":`x5lhwog`,"textDecorationThickness-kNySMw":`xyi4chj`,"textUnderlineOffset-kcSHmL":`xrys4gj`,$$css:`@stridge/kit:src/shared/widgets/error-state/compound/ErrorState.styles.ts:123`},disclosureChevron:{"ErrorState__styles.disclosureChevron":`ErrorState__styles.disclosureChevron`,"width-kzqmXN":`x6jxa94`,"height-kZKoxP":`x1v9usgg`,"flexShrink-kmuXW":`x2lah0s`,"color-kMwMTN":`x137ha3m`,"strokeWidth-kfJifR":`xhr4kjn`,$$css:`@stridge/kit:src/shared/widgets/error-state/compound/ErrorState.styles.ts:129`},moreDetailsTrigger:{"ErrorState__styles.moreDetailsTrigger":`ErrorState__styles.moreDetailsTrigger`,"cursor-kkrTdU":`x1ypdohk`,"outline-kI3sdo":`x1a2a7pz`,"userSelect-kfSwDN":`x87ps6o`,"WebkitTapHighlightColor-kQizK7":`x1i10hfl`,":focus-visible_boxShadow-kEtg5x":`xf4a2cz`,$$css:`@stridge/kit:src/shared/widgets/error-state/compound/ErrorState.styles.ts:137`},moreDetailsTriggerClosed:{"ErrorState__styles.moreDetailsTriggerClosed":`ErrorState__styles.moreDetailsTriggerClosed`,"borderBottomWidth-kt9PQ7":`x1qhh985`,$$css:`@stridge/kit:src/shared/widgets/error-state/compound/ErrorState.styles.ts:146`},moreDetailsChevron:{"ErrorState__styles.moreDetailsChevron":`ErrorState__styles.moreDetailsChevron`,"width-kzqmXN":`x6jxa94`,"height-kZKoxP":`x1v9usgg`,"flexShrink-kmuXW":`x2lah0s`,"color-kMwMTN":`x137ha3m`,"strokeWidth-kfJifR":`xhr4kjn`,"transformOrigin-k3nNDw":`x1g0ag68`,"transitionProperty-k1ekBW":`x11xpdln`,"transitionDuration-kIyJzY":`x9dyr19 x12w9bfk`,"transitionTimingFunction-kAMwcw":`x9lcvmn`,$$css:`@stridge/kit:src/shared/widgets/error-state/compound/ErrorState.styles.ts:149`},moreDetailsChevronOpen:{"ErrorState__styles.moreDetailsChevronOpen":`ErrorState__styles.moreDetailsChevronOpen`,"transform-k3aq6I":`x1iffjtl`,$$css:`@stridge/kit:src/shared/widgets/error-state/compound/ErrorState.styles.ts:163`},helpInfo:{"ErrorState__styles.helpInfo":`ErrorState__styles.helpInfo`,"marginTop-keoZOQ":`xhrpt6u`,"marginInlineStart-keTefX":`xnzr9dm`,"marginInlineEnd-k71WvV":`xnqxrjt`,"borderRadius-kaIpWk":`x1s7mj9v`,$$css:`@stridge/kit:src/shared/widgets/error-state/compound/ErrorState.styles.ts:166`},helpInfoLink:{"ErrorState__styles.helpInfoLink":`ErrorState__styles.helpInfoLink`,"color-kMwMTN":`x1me39qh`,"textDecorationLine-kMnn75":`xujl8zx`,"textDecorationThickness-kNySMw":`xyi4chj`,"textUnderlineOffset-kcSHmL":`xda060z`,"--stridge-kit-external-link-align":`x5oa300`,$$css:`@stridge/kit:src/shared/widgets/error-state/compound/ErrorState.styles.ts:172`},actions:{"ErrorState__styles.actions":`ErrorState__styles.actions`,"display-k1xSpc":`x78zum5`,"flexDirection-kXwgrk":`xdt5ytf`,"alignItems-kGNEyG":`x1qjc9v5`,"paddingTop-kLKAdn":`x109j2v6`,"paddingInlineEnd-kwRFfy":`x1o5r3ls`,"paddingBottom-kGO01o":`x1t4gjm`,"paddingInlineStart-kZCmMZ":`xz7312c`,$$css:`@stridge/kit:src/shared/widgets/error-state/compound/ErrorState.styles.ts:180`},cta:{"ErrorState__styles.cta":`ErrorState__styles.cta`,"width-kzqmXN":`xh8yej3`,"alignSelf-kSGwAc":`xkh2ocl`,":focus-visible_boxShadow-kEtg5x":`xhatipn`,$$css:`@stridge/kit:src/shared/widgets/error-state/compound/ErrorState.styles.ts:189`},ctaInteractive:{"ErrorState__styles.ctaInteractive":`ErrorState__styles.ctaInteractive`,"cursor-kkrTdU":`x1ypdohk`,$$css:`@stridge/kit:src/shared/widgets/error-state/compound/ErrorState.styles.ts:196`},ctaInert:{"ErrorState__styles.ctaInert":`ErrorState__styles.ctaInert`,"cursor-kkrTdU":`xt0e3qv`,$$css:`@stridge/kit:src/shared/widgets/error-state/compound/ErrorState.styles.ts:199`},ctaPrimary:{"ErrorState__styles.ctaPrimary":`ErrorState__styles.ctaPrimary`,"borderWidth-kMzoRj":`xc342km`,$$css:`@stridge/kit:src/shared/widgets/error-state/compound/ErrorState.styles.ts:202`}};export{e as styles};
1
+ const e={root:{"ErrorState__styles.root":`ErrorState__styles.root`,"position-kVAEAm":`x1n2onr6`,"width-kzqmXN":`xh8yej3`,"maxWidth-ks0D6T":`x17fpy1y`,$$css:`@stridge/kit:src/shared/widgets/error-state/compound/ErrorState.styles.ts:32`},header:{"ErrorState__styles.header":`ErrorState__styles.header`,"justifyContent-kjj79g":`x1qughib`,$$css:`@stridge/kit:src/shared/widgets/error-state/compound/ErrorState.styles.ts:40`},closeIcon:{"ErrorState__styles.closeIcon":`ErrorState__styles.closeIcon`,"color-kMwMTN":`xdksllq`,"strokeWidth-kfJifR":`x1k315e8`,$$css:`@stridge/kit:src/shared/widgets/error-state/compound/ErrorState.styles.ts:43`},hero:{"ErrorState__styles.hero":`ErrorState__styles.hero`,"display-k1xSpc":`x78zum5`,"flexDirection-kXwgrk":`xdt5ytf`,"alignItems-kGNEyG":`x6s0dn4`,"gap-kOIVth":`x883omv`,"paddingTop-kLKAdn":`x9desvi`,"paddingInlineEnd-kwRFfy":`x1o5r3ls`,"paddingBottom-kGO01o":`x1t4gjm`,"paddingInlineStart-kZCmMZ":`xz7312c`,"animationName-kKVMdj":`xv305lp`,"animationDuration-k44tkh":`xmprevt x1s1fvk8`,"animationTimingFunction-kyAemX":`xa3vuyk`,"animationFillMode-kWV6AL":`x1u6ievf`,$$css:`@stridge/kit:src/shared/widgets/error-state/compound/ErrorState.styles.ts:48`},heroRing:{"ErrorState__styles.heroRing":`ErrorState__styles.heroRing`,"display-k1xSpc":`x1lliihq`,"width-kzqmXN":`x1fu8urw`,"height-kZKoxP":`x1peatla`,"marginBottom-k1K539":`xat24cr`,"flexShrink-kmuXW":`x2lah0s`,$$css:`@stridge/kit:src/shared/widgets/error-state/compound/ErrorState.styles.ts:65`},heroRingMark:{"ErrorState__styles.heroRingMark":`ErrorState__styles.heroRingMark`,"transformOrigin-k3nNDw":`x1g0ag68`,"animationName-kKVMdj":`x14k796y x1aquc0h`,"animationDuration-k44tkh":`xmprevt`,"animationDelay-kKxzle":`x1x1c4bx x14q22ui`,"animationTimingFunction-kyAemX":`x4hg4is`,"animationFillMode-kWV6AL":`x1u6ievf`,"animationIterationCount-ko0y90":`x1v7wizp`,$$css:`@stridge/kit:src/shared/widgets/error-state/compound/ErrorState.styles.ts:72`},heroHeadline:{"ErrorState__styles.heroHeadline":`ErrorState__styles.heroHeadline`,"marginTop-keoZOQ":`x1xmf6yo`,$$css:`@stridge/kit:src/shared/widgets/error-state/compound/ErrorState.styles.ts:87`},heroReason:{"ErrorState__styles.heroReason":`ErrorState__styles.heroReason`,"maxWidth-ks0D6T":`x1va8c73`,$$css:`@stridge/kit:src/shared/widgets/error-state/compound/ErrorState.styles.ts:90`},detailsSection:{"ErrorState__styles.detailsSection":`ErrorState__styles.detailsSection`,"marginInlineStart-keTefX":`xnzr9dm`,"marginInlineEnd-k71WvV":`xnqxrjt`,$$css:`@stridge/kit:src/shared/widgets/error-state/compound/ErrorState.styles.ts:100`},statusValueFailed:{"ErrorState__styles.statusValueFailed":`ErrorState__styles.statusValueFailed`,"color-kMwMTN":`x19vemxs`,$$css:`@stridge/kit:src/shared/widgets/error-state/compound/ErrorState.styles.ts:105`},assetValue:{"ErrorState__styles.assetValue":`ErrorState__styles.assetValue`,"display-k1xSpc":`x3nfvp2`,"alignItems-kGNEyG":`x6s0dn4`,"gap-kOIVth":`x167g77z`,$$css:`@stridge/kit:src/shared/widgets/error-state/compound/ErrorState.styles.ts:109`},assetValueText:{"ErrorState__styles.assetValueText":`ErrorState__styles.assetValueText`,"display-k1xSpc":`x3nfvp2`,"alignItems-kGNEyG":`x1pha0wt`,"gap-kOIVth":`x17d4w8g`,$$css:`@stridge/kit:src/shared/widgets/error-state/compound/ErrorState.styles.ts:114`},assetValueStruck:{"ErrorState__styles.assetValueStruck":`ErrorState__styles.assetValueStruck`,"textDecorationLine-kMnn75":`x5lhwog`,"textDecorationThickness-kNySMw":`xyi4chj`,"textUnderlineOffset-kcSHmL":`xrys4gj`,$$css:`@stridge/kit:src/shared/widgets/error-state/compound/ErrorState.styles.ts:123`},disclosureChevron:{"ErrorState__styles.disclosureChevron":`ErrorState__styles.disclosureChevron`,"width-kzqmXN":`x6jxa94`,"height-kZKoxP":`x1v9usgg`,"flexShrink-kmuXW":`x2lah0s`,"color-kMwMTN":`x137ha3m`,"strokeWidth-kfJifR":`xhr4kjn`,$$css:`@stridge/kit:src/shared/widgets/error-state/compound/ErrorState.styles.ts:129`},helpInfo:{"ErrorState__styles.helpInfo":`ErrorState__styles.helpInfo`,"marginTop-keoZOQ":`xhrpt6u`,"marginInlineStart-keTefX":`xnzr9dm`,"marginInlineEnd-k71WvV":`xnqxrjt`,"borderRadius-kaIpWk":`x1s7mj9v`,$$css:`@stridge/kit:src/shared/widgets/error-state/compound/ErrorState.styles.ts:136`},helpInfoLink:{"ErrorState__styles.helpInfoLink":`ErrorState__styles.helpInfoLink`,"color-kMwMTN":`x1me39qh`,"textDecorationLine-kMnn75":`xujl8zx`,"textDecorationThickness-kNySMw":`xyi4chj`,"textUnderlineOffset-kcSHmL":`xda060z`,"--stridge-kit-external-link-align":`x5oa300`,$$css:`@stridge/kit:src/shared/widgets/error-state/compound/ErrorState.styles.ts:142`},actions:{"ErrorState__styles.actions":`ErrorState__styles.actions`,"display-k1xSpc":`x78zum5`,"flexDirection-kXwgrk":`xdt5ytf`,"alignItems-kGNEyG":`x1qjc9v5`,"paddingTop-kLKAdn":`x109j2v6`,"paddingInlineEnd-kwRFfy":`x1o5r3ls`,"paddingBottom-kGO01o":`x1t4gjm`,"paddingInlineStart-kZCmMZ":`xz7312c`,$$css:`@stridge/kit:src/shared/widgets/error-state/compound/ErrorState.styles.ts:150`},cta:{"ErrorState__styles.cta":`ErrorState__styles.cta`,"width-kzqmXN":`xh8yej3`,"alignSelf-kSGwAc":`xkh2ocl`,":focus-visible_boxShadow-kEtg5x":`xhatipn`,$$css:`@stridge/kit:src/shared/widgets/error-state/compound/ErrorState.styles.ts:159`},ctaInteractive:{"ErrorState__styles.ctaInteractive":`ErrorState__styles.ctaInteractive`,"cursor-kkrTdU":`x1ypdohk`,$$css:`@stridge/kit:src/shared/widgets/error-state/compound/ErrorState.styles.ts:166`},ctaInert:{"ErrorState__styles.ctaInert":`ErrorState__styles.ctaInert`,"cursor-kkrTdU":`xt0e3qv`,$$css:`@stridge/kit:src/shared/widgets/error-state/compound/ErrorState.styles.ts:169`},ctaPrimary:{"ErrorState__styles.ctaPrimary":`ErrorState__styles.ctaPrimary`,"borderWidth-kMzoRj":`xc342km`,$$css:`@stridge/kit:src/shared/widgets/error-state/compound/ErrorState.styles.ts:172`}};export{e as styles};
@@ -3,9 +3,9 @@ import * as _$react_jsx_runtime0 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/shared/widgets/error-state/compound/components/MoreDetails.d.ts
5
5
  /**
6
- * Collapsible row that expands inline to surface additional context (e.g. Reason code, Detected, Source tx). The
7
- * trigger renders as a `Details.Row`; children render as flat sibling rows underneath. Supports controlled and
8
- * uncontrolled open state via `open` / `defaultOpen` / `onOpenChange`.
6
+ * Collapsible row that expands inline to surface additional context (e.g. Reason code, Detected,
7
+ * Source tx). Built on the shared {@link DisclosureRow} so it stays identical to the success /
8
+ * onramp disclosures. Supports controlled and uncontrolled open state.
9
9
  */
10
10
  declare function ErrorStateMoreDetails({
11
11
  label,
@@ -1 +1 @@
1
- "use client";import{useLingui as e}from"../../../../i18n/useLingui.js";import"../../../../../i18n/index.js";import{ChevronRightIcon as t}from"../../../../icons/ChevronRightIcon.js";import"../../../../../icons/index.js";import{Collapsible as n}from"../../../../ui/Collapsible/Collapsible.js";import"../../../../ui/Collapsible/index.js";import{Details as r}from"../../../../ui/Details/Details.js";import"../../../../ui/Details/index.js";import{useDirectionalChevronTransform as i}from"../../../../dialog/useDirectionalChevronTransform.js";import{useErrorStateContext as a}from"../context.js";import{ERROR_STATE_SLOTS as o}from"../ErrorState.slots.js";import{styles as s}from"../ErrorState.styles.js";import{useCallback as c,useState as l}from"react";import{jsx as u,jsxs as d}from"react/jsx-runtime";import*as f from"@stylexjs/stylex";function p({label:p,defaultOpen:m=!1,open:h,onOpenChange:g,children:_}){let v=a(`ErrorState.MoreDetails`),{_:y}=e();if(!v.depositTx&&v.submittedAt===void 0&&v.failedAt===void 0)return null;let b=p??y({id:`LEbOpR`,message:`More details`}),x=typeof h==`boolean`,[S,C]=l(m),w=x?h:S,T=c(e=>{x||C(e),g?.(e)},[x,g]),E=f.props(s.moreDetailsTrigger,w?null:s.moreDetailsTriggerClosed),D=f.props(s.moreDetailsChevron),O=i(w);return d(n,{open:w,onOpenChange:T,children:[u(n.Trigger,{nativeButton:!1,render:u(r.Row,{"data-stridge-slot":o.moreDetailsTrigger,label:b,className:E.className,style:E.style,children:u(t,{"aria-hidden":!0,className:D.className,style:{...D.style,transform:O}})})}),u(n.Panel,{children:_})]})}export{p as ErrorStateMoreDetails};
1
+ "use client";import{useLingui as e}from"../../../../i18n/useLingui.js";import"../../../../../i18n/index.js";import{DisclosureRow as t}from"../../../../ui/DisclosureRow/DisclosureRow.js";import"../../../../ui/DisclosureRow/index.js";import{useErrorStateContext as n}from"../context.js";import{ERROR_STATE_SLOTS as r}from"../ErrorState.slots.js";import{jsx as i}from"react/jsx-runtime";function a({label:a,defaultOpen:o=!1,open:s,onOpenChange:c,children:l}){let u=n(`ErrorState.MoreDetails`),{_:d}=e();return!u.depositTx&&u.submittedAt===void 0&&u.failedAt===void 0?null:i(t,{label:a??d({id:`LEbOpR`,message:`More details`}),defaultOpen:o,triggerProps:{"data-stridge-slot":r.moreDetailsTrigger},...typeof s==`boolean`?{open:s}:{},...c?{onOpenChange:c}:{},children:l})}export{a as ErrorStateMoreDetails};
@@ -1 +1 @@
1
- const e={root:{"SuccessState__styles.root":`SuccessState__styles.root`,"position-kVAEAm":`x1n2onr6`,"width-kzqmXN":`xh8yej3`,"maxWidth-ks0D6T":`x17fpy1y`,$$css:`@stridge/kit:src/shared/widgets/success-state/compound/SuccessState.styles.ts:53`},header:{"SuccessState__styles.header":`SuccessState__styles.header`,"justifyContent-kjj79g":`x1qughib`,$$css:`@stridge/kit:src/shared/widgets/success-state/compound/SuccessState.styles.ts:61`},closeIcon:{"SuccessState__styles.closeIcon":`SuccessState__styles.closeIcon`,"width-kzqmXN":`xsmyaan`,"height-kZKoxP":`x1kpxq89`,"flexShrink-kmuXW":`x2lah0s`,"color-kMwMTN":`xdksllq`,"strokeWidth-kfJifR":`x1k315e8`,$$css:`@stridge/kit:src/shared/widgets/success-state/compound/SuccessState.styles.ts:64`},hero:{"SuccessState__styles.hero":`SuccessState__styles.hero`,"display-k1xSpc":`x78zum5`,"flexDirection-kXwgrk":`xdt5ytf`,"alignItems-kGNEyG":`x6s0dn4`,"gap-kOIVth":`x883omv`,"paddingTop-kLKAdn":`x9desvi`,"paddingInlineEnd-kwRFfy":`x1o5r3ls`,"paddingBottom-kGO01o":`x1t4gjm`,"paddingInlineStart-kZCmMZ":`xz7312c`,$$css:`@stridge/kit:src/shared/widgets/success-state/compound/SuccessState.styles.ts:72`},heroRing:{"SuccessState__styles.heroRing":`SuccessState__styles.heroRing`,"display-k1xSpc":`x1lliihq`,"width-kzqmXN":`x1fu8urw`,"height-kZKoxP":`x1peatla`,"marginBottom-k1K539":`xzueoph`,"flexShrink-kmuXW":`x2lah0s`,"transformOrigin-k3nNDw":`x1g0ag68`,"animationName-kKVMdj":`xdozz8d`,"animationDuration-k44tkh":`xl8t4ro x1s1fvk8`,"animationTimingFunction-kyAemX":`xa3vuyk`,"animationFillMode-kWV6AL":`x1u6ievf`,$$css:`@stridge/kit:src/shared/widgets/success-state/compound/SuccessState.styles.ts:82`},heroRingCheck:{"SuccessState__styles.heroRingCheck":`SuccessState__styles.heroRingCheck`,"strokeDasharray-k5rJSQ":`x19f38uw`,"strokeDashoffset-kDRTOe":`x1f9z5db`,"animationName-kKVMdj":`xdi478p`,"animationDuration-k44tkh":`x4afe7t x1s1fvk8`,"animationDelay-kKxzle":`x192tdn3 x14q22ui`,"animationTimingFunction-kyAemX":`xa3vuyk`,"animationFillMode-kWV6AL":`x10e4vud`,$$css:`@stridge/kit:src/shared/widgets/success-state/compound/SuccessState.styles.ts:97`},heroAmountRow:{"SuccessState__styles.heroAmountRow":`SuccessState__styles.heroAmountRow`,"display-k1xSpc":`x3nfvp2`,"alignItems-kGNEyG":`x1pha0wt`,"justifyContent-kjj79g":`xl56j7k`,"gap-kOIVth":`x883omv`,"marginTop-keoZOQ":`xr9ek0c`,$$css:`@stridge/kit:src/shared/widgets/success-state/compound/SuccessState.styles.ts:112`},heroAmountIcon:{"SuccessState__styles.heroAmountIcon":`SuccessState__styles.heroAmountIcon`,"alignSelf-kSGwAc":`xamitd3`,$$css:`@stridge/kit:src/shared/widgets/success-state/compound/SuccessState.styles.ts:119`},detailsSection:{"SuccessState__styles.detailsSection":`SuccessState__styles.detailsSection`,"marginTop-keoZOQ":`x1gslohp`,"marginInlineStart-keTefX":`xnzr9dm`,"marginInlineEnd-k71WvV":`xnqxrjt`,$$css:`@stridge/kit:src/shared/widgets/success-state/compound/SuccessState.styles.ts:128`},assetValue:{"SuccessState__styles.assetValue":`SuccessState__styles.assetValue`,"display-k1xSpc":`x3nfvp2`,"alignItems-kGNEyG":`x6s0dn4`,"gap-kOIVth":`x167g77z`,$$css:`@stridge/kit:src/shared/widgets/success-state/compound/SuccessState.styles.ts:134`},routeValue:{"SuccessState__styles.routeValue":`SuccessState__styles.routeValue`,"display-k1xSpc":`x3nfvp2`,"alignItems-kGNEyG":`x6s0dn4`,"gap-kOIVth":`x167g77z`,$$css:`@stridge/kit:src/shared/widgets/success-state/compound/SuccessState.styles.ts:140`},routeArrow:{"SuccessState__styles.routeArrow":`SuccessState__styles.routeArrow`,"width-kzqmXN":`xsmyaan`,"height-kZKoxP":`xegnrdp`,"flexShrink-kmuXW":`x2lah0s`,"color-kMwMTN":`x137ha3m`,$$css:`@stridge/kit:src/shared/widgets/success-state/compound/SuccessState.styles.ts:145`},actions:{"SuccessState__styles.actions":`SuccessState__styles.actions`,"display-k1xSpc":`x78zum5`,"flexDirection-kXwgrk":`xdt5ytf`,"alignItems-kGNEyG":`x6s0dn4`,"gap-kOIVth":`xou54vl`,"paddingTop-kLKAdn":`x1xy6bms`,"paddingInlineEnd-kwRFfy":`x1o5r3ls`,"paddingBottom-kGO01o":`x1t4gjm`,"paddingInlineStart-kZCmMZ":`xz7312c`,$$css:`@stridge/kit:src/shared/widgets/success-state/compound/SuccessState.styles.ts:152`},actionRow:{"SuccessState__styles.actionRow":`SuccessState__styles.actionRow`,"display-k1xSpc":`x78zum5`,"flexDirection-kXwgrk":`x1q0g3np`,"width-kzqmXN":`xh8yej3`,"gap-kOIVth":`x883omv`,$$css:`@stridge/kit:src/shared/widgets/success-state/compound/SuccessState.styles.ts:162`},actionRowPair:{"SuccessState__styles.actionRowPair":`SuccessState__styles.actionRowPair`,"alignItems-kGNEyG":`x1qjc9v5`,$$css:`@stridge/kit:src/shared/widgets/success-state/compound/SuccessState.styles.ts:168`},doneButton:{"SuccessState__styles.doneButton":`SuccessState__styles.doneButton`,"flex-kUk6DE":`x98rzlu`,"width-kzqmXN":`xh8yej3`,"borderWidth-kMzoRj":`xc342km`,$$css:`@stridge/kit:src/shared/widgets/success-state/compound/SuccessState.styles.ts:174`},closeButton:{"SuccessState__styles.closeButton":`SuccessState__styles.closeButton`,"flex-kUk6DE":`x98rzlu`,"width-kzqmXN":`xh8yej3`,$$css:`@stridge/kit:src/shared/widgets/success-state/compound/SuccessState.styles.ts:180`},doneButtonInteractive:{"SuccessState__styles.doneButtonInteractive":`SuccessState__styles.doneButtonInteractive`,"cursor-kkrTdU":`x1ypdohk`,$$css:`@stridge/kit:src/shared/widgets/success-state/compound/SuccessState.styles.ts:184`},doneButtonInert:{"SuccessState__styles.doneButtonInert":`SuccessState__styles.doneButtonInert`,"cursor-kkrTdU":`xt0e3qv`,$$css:`@stridge/kit:src/shared/widgets/success-state/compound/SuccessState.styles.ts:187`},explorerLink:{"SuccessState__styles.explorerLink":`SuccessState__styles.explorerLink`,"color-kMwMTN":`x1me39qh`,"textDecorationLine-kMnn75":`xujl8zx`,"textDecorationThickness-kNySMw":`xyi4chj`,"textUnderlineOffset-kcSHmL":`xda060z`,"--stridge-kit-external-link-align":`x5oa300`,$$css:`@stridge/kit:src/shared/widgets/success-state/compound/SuccessState.styles.ts:195`},headline:{"SuccessState__styles.headline":`SuccessState__styles.headline`,"display-k1xSpc":`x78zum5`,"flexDirection-kXwgrk":`xdt5ytf`,"alignItems-kGNEyG":`x6s0dn4`,"gap-kOIVth":`x883omv`,"paddingTop-kLKAdn":`x9desvi`,"paddingInlineEnd-kwRFfy":`x1o5r3ls`,"paddingBottom-kGO01o":`x1hhzuzn`,"paddingInlineStart-kZCmMZ":`xz7312c`,$$css:`@stridge/kit:src/shared/widgets/success-state/compound/SuccessState.styles.ts:203`},headlineTitle:{"SuccessState__styles.headlineTitle":`SuccessState__styles.headlineTitle`,"margin-kogj98":`x1ghz6dp`,$$css:`@stridge/kit:src/shared/widgets/success-state/compound/SuccessState.styles.ts:213`},headlineDescription:{"SuccessState__styles.headlineDescription":`SuccessState__styles.headlineDescription`,"margin-kogj98":`x1ghz6dp`,"maxWidth-ks0D6T":`x1va8c73`,$$css:`@stridge/kit:src/shared/widgets/success-state/compound/SuccessState.styles.ts:216`},moreDetailsTrigger:{"SuccessState__styles.moreDetailsTrigger":`SuccessState__styles.moreDetailsTrigger`,"cursor-kkrTdU":`x1ypdohk`,"outline-kI3sdo":`x1a2a7pz`,"userSelect-kfSwDN":`x87ps6o`,"WebkitTapHighlightColor-kQizK7":`x1i10hfl`,":focus-visible_boxShadow-kEtg5x":`xf4a2cz`,$$css:`@stridge/kit:src/shared/widgets/success-state/compound/SuccessState.styles.ts:226`},moreDetailsTriggerClosed:{"SuccessState__styles.moreDetailsTriggerClosed":`SuccessState__styles.moreDetailsTriggerClosed`,"borderBottomWidth-kt9PQ7":`x1qhh985`,$$css:`@stridge/kit:src/shared/widgets/success-state/compound/SuccessState.styles.ts:235`},moreDetailsChevron:{"SuccessState__styles.moreDetailsChevron":`SuccessState__styles.moreDetailsChevron`,"width-kzqmXN":`x6jxa94`,"height-kZKoxP":`x1v9usgg`,"flexShrink-kmuXW":`x2lah0s`,"color-kMwMTN":`x137ha3m`,"strokeWidth-kfJifR":`xhr4kjn`,"transformOrigin-k3nNDw":`x1g0ag68`,"transitionProperty-k1ekBW":`x11xpdln`,"transitionDuration-kIyJzY":`x9dyr19 x12w9bfk`,"transitionTimingFunction-kAMwcw":`x9lcvmn`,$$css:`@stridge/kit:src/shared/widgets/success-state/compound/SuccessState.styles.ts:238`},moreDetailsChevronOpen:{"SuccessState__styles.moreDetailsChevronOpen":`SuccessState__styles.moreDetailsChevronOpen`,"transform-k3aq6I":`x1iffjtl`,$$css:`@stridge/kit:src/shared/widgets/success-state/compound/SuccessState.styles.ts:252`}};export{e as styles};
1
+ const e={root:{"SuccessState__styles.root":`SuccessState__styles.root`,"position-kVAEAm":`x1n2onr6`,"width-kzqmXN":`xh8yej3`,"maxWidth-ks0D6T":`x17fpy1y`,$$css:`@stridge/kit:src/shared/widgets/success-state/compound/SuccessState.styles.ts:53`},header:{"SuccessState__styles.header":`SuccessState__styles.header`,"justifyContent-kjj79g":`x1qughib`,$$css:`@stridge/kit:src/shared/widgets/success-state/compound/SuccessState.styles.ts:61`},closeIcon:{"SuccessState__styles.closeIcon":`SuccessState__styles.closeIcon`,"width-kzqmXN":`xsmyaan`,"height-kZKoxP":`x1kpxq89`,"flexShrink-kmuXW":`x2lah0s`,"color-kMwMTN":`xdksllq`,"strokeWidth-kfJifR":`x1k315e8`,$$css:`@stridge/kit:src/shared/widgets/success-state/compound/SuccessState.styles.ts:64`},hero:{"SuccessState__styles.hero":`SuccessState__styles.hero`,"display-k1xSpc":`x78zum5`,"flexDirection-kXwgrk":`xdt5ytf`,"alignItems-kGNEyG":`x6s0dn4`,"gap-kOIVth":`x883omv`,"paddingTop-kLKAdn":`x9desvi`,"paddingInlineEnd-kwRFfy":`x1o5r3ls`,"paddingBottom-kGO01o":`x1t4gjm`,"paddingInlineStart-kZCmMZ":`xz7312c`,$$css:`@stridge/kit:src/shared/widgets/success-state/compound/SuccessState.styles.ts:72`},heroRing:{"SuccessState__styles.heroRing":`SuccessState__styles.heroRing`,"display-k1xSpc":`x1lliihq`,"width-kzqmXN":`x1fu8urw`,"height-kZKoxP":`x1peatla`,"marginBottom-k1K539":`xzueoph`,"flexShrink-kmuXW":`x2lah0s`,"transformOrigin-k3nNDw":`x1g0ag68`,"animationName-kKVMdj":`xdozz8d`,"animationDuration-k44tkh":`xl8t4ro x1s1fvk8`,"animationTimingFunction-kyAemX":`xa3vuyk`,"animationFillMode-kWV6AL":`x1u6ievf`,$$css:`@stridge/kit:src/shared/widgets/success-state/compound/SuccessState.styles.ts:82`},heroRingCheck:{"SuccessState__styles.heroRingCheck":`SuccessState__styles.heroRingCheck`,"strokeDasharray-k5rJSQ":`x19f38uw`,"strokeDashoffset-kDRTOe":`x1f9z5db`,"animationName-kKVMdj":`xdi478p`,"animationDuration-k44tkh":`x4afe7t x1s1fvk8`,"animationDelay-kKxzle":`x192tdn3 x14q22ui`,"animationTimingFunction-kyAemX":`xa3vuyk`,"animationFillMode-kWV6AL":`x10e4vud`,$$css:`@stridge/kit:src/shared/widgets/success-state/compound/SuccessState.styles.ts:97`},heroAmountRow:{"SuccessState__styles.heroAmountRow":`SuccessState__styles.heroAmountRow`,"display-k1xSpc":`x3nfvp2`,"alignItems-kGNEyG":`x1pha0wt`,"justifyContent-kjj79g":`xl56j7k`,"gap-kOIVth":`x883omv`,"marginTop-keoZOQ":`xr9ek0c`,$$css:`@stridge/kit:src/shared/widgets/success-state/compound/SuccessState.styles.ts:112`},heroAmountIcon:{"SuccessState__styles.heroAmountIcon":`SuccessState__styles.heroAmountIcon`,"alignSelf-kSGwAc":`xamitd3`,$$css:`@stridge/kit:src/shared/widgets/success-state/compound/SuccessState.styles.ts:119`},detailsSection:{"SuccessState__styles.detailsSection":`SuccessState__styles.detailsSection`,"marginTop-keoZOQ":`x1gslohp`,"marginInlineStart-keTefX":`xnzr9dm`,"marginInlineEnd-k71WvV":`xnqxrjt`,$$css:`@stridge/kit:src/shared/widgets/success-state/compound/SuccessState.styles.ts:128`},assetValue:{"SuccessState__styles.assetValue":`SuccessState__styles.assetValue`,"display-k1xSpc":`x3nfvp2`,"alignItems-kGNEyG":`x6s0dn4`,"gap-kOIVth":`x167g77z`,$$css:`@stridge/kit:src/shared/widgets/success-state/compound/SuccessState.styles.ts:134`},routeValue:{"SuccessState__styles.routeValue":`SuccessState__styles.routeValue`,"display-k1xSpc":`x3nfvp2`,"alignItems-kGNEyG":`x6s0dn4`,"gap-kOIVth":`x167g77z`,$$css:`@stridge/kit:src/shared/widgets/success-state/compound/SuccessState.styles.ts:140`},routeArrow:{"SuccessState__styles.routeArrow":`SuccessState__styles.routeArrow`,"width-kzqmXN":`xsmyaan`,"height-kZKoxP":`xegnrdp`,"flexShrink-kmuXW":`x2lah0s`,"color-kMwMTN":`x137ha3m`,$$css:`@stridge/kit:src/shared/widgets/success-state/compound/SuccessState.styles.ts:145`},actions:{"SuccessState__styles.actions":`SuccessState__styles.actions`,"display-k1xSpc":`x78zum5`,"flexDirection-kXwgrk":`xdt5ytf`,"alignItems-kGNEyG":`x6s0dn4`,"gap-kOIVth":`xou54vl`,"paddingTop-kLKAdn":`x1xy6bms`,"paddingInlineEnd-kwRFfy":`x1o5r3ls`,"paddingBottom-kGO01o":`x1t4gjm`,"paddingInlineStart-kZCmMZ":`xz7312c`,$$css:`@stridge/kit:src/shared/widgets/success-state/compound/SuccessState.styles.ts:152`},actionRow:{"SuccessState__styles.actionRow":`SuccessState__styles.actionRow`,"display-k1xSpc":`x78zum5`,"flexDirection-kXwgrk":`x1q0g3np`,"width-kzqmXN":`xh8yej3`,"gap-kOIVth":`x883omv`,$$css:`@stridge/kit:src/shared/widgets/success-state/compound/SuccessState.styles.ts:162`},actionRowPair:{"SuccessState__styles.actionRowPair":`SuccessState__styles.actionRowPair`,"alignItems-kGNEyG":`x1qjc9v5`,$$css:`@stridge/kit:src/shared/widgets/success-state/compound/SuccessState.styles.ts:168`},doneButton:{"SuccessState__styles.doneButton":`SuccessState__styles.doneButton`,"flex-kUk6DE":`x98rzlu`,"width-kzqmXN":`xh8yej3`,"borderWidth-kMzoRj":`xc342km`,$$css:`@stridge/kit:src/shared/widgets/success-state/compound/SuccessState.styles.ts:174`},closeButton:{"SuccessState__styles.closeButton":`SuccessState__styles.closeButton`,"flex-kUk6DE":`x98rzlu`,"width-kzqmXN":`xh8yej3`,$$css:`@stridge/kit:src/shared/widgets/success-state/compound/SuccessState.styles.ts:180`},doneButtonInteractive:{"SuccessState__styles.doneButtonInteractive":`SuccessState__styles.doneButtonInteractive`,"cursor-kkrTdU":`x1ypdohk`,$$css:`@stridge/kit:src/shared/widgets/success-state/compound/SuccessState.styles.ts:184`},doneButtonInert:{"SuccessState__styles.doneButtonInert":`SuccessState__styles.doneButtonInert`,"cursor-kkrTdU":`xt0e3qv`,$$css:`@stridge/kit:src/shared/widgets/success-state/compound/SuccessState.styles.ts:187`},explorerLink:{"SuccessState__styles.explorerLink":`SuccessState__styles.explorerLink`,"color-kMwMTN":`x1me39qh`,"textDecorationLine-kMnn75":`xujl8zx`,"textDecorationThickness-kNySMw":`xyi4chj`,"textUnderlineOffset-kcSHmL":`xda060z`,"--stridge-kit-external-link-align":`x5oa300`,$$css:`@stridge/kit:src/shared/widgets/success-state/compound/SuccessState.styles.ts:195`},headline:{"SuccessState__styles.headline":`SuccessState__styles.headline`,"display-k1xSpc":`x78zum5`,"flexDirection-kXwgrk":`xdt5ytf`,"alignItems-kGNEyG":`x6s0dn4`,"gap-kOIVth":`x883omv`,"paddingTop-kLKAdn":`x9desvi`,"paddingInlineEnd-kwRFfy":`x1o5r3ls`,"paddingBottom-kGO01o":`x1hhzuzn`,"paddingInlineStart-kZCmMZ":`xz7312c`,$$css:`@stridge/kit:src/shared/widgets/success-state/compound/SuccessState.styles.ts:203`},headlineTitle:{"SuccessState__styles.headlineTitle":`SuccessState__styles.headlineTitle`,"margin-kogj98":`x1ghz6dp`,$$css:`@stridge/kit:src/shared/widgets/success-state/compound/SuccessState.styles.ts:213`},headlineDescription:{"SuccessState__styles.headlineDescription":`SuccessState__styles.headlineDescription`,"margin-kogj98":`x1ghz6dp`,"maxWidth-ks0D6T":`x1va8c73`,$$css:`@stridge/kit:src/shared/widgets/success-state/compound/SuccessState.styles.ts:216`}};export{e as styles};
@@ -4,9 +4,8 @@ import * as _$react_jsx_runtime0 from "react/jsx-runtime";
4
4
  //#region src/shared/widgets/success-state/compound/components/MoreDetails.d.ts
5
5
  /**
6
6
  * Collapsible row that expands inline to surface additional context
7
- * (deposit + completion tx hashes, order timestamps). The trigger
8
- * renders as a `Details.Row`; children render as flat sibling rows
9
- * underneath when expanded.
7
+ * (deposit + completion tx hashes, order timestamps). Built on the shared
8
+ * {@link DisclosureRow} so it stays identical to the failure / onramp disclosures.
10
9
  */
11
10
  declare function SuccessStateMoreDetails({
12
11
  label,
@@ -1 +1 @@
1
- "use client";import{useLingui as e}from"../../../../i18n/useLingui.js";import"../../../../../i18n/index.js";import{ChevronRightIcon as t}from"../../../../icons/ChevronRightIcon.js";import"../../../../../icons/index.js";import{Collapsible as n}from"../../../../ui/Collapsible/Collapsible.js";import"../../../../ui/Collapsible/index.js";import{Details as r}from"../../../../ui/Details/Details.js";import"../../../../ui/Details/index.js";import{useDirectionalChevronTransform as i}from"../../../../dialog/useDirectionalChevronTransform.js";import{useSuccessStateContext as a}from"../context.js";import{SUCCESS_STATE_SLOTS as o}from"../SuccessState.slots.js";import{styles as s}from"../SuccessState.styles.js";import{useCallback as c,useState as l}from"react";import{jsx as u,jsxs as d}from"react/jsx-runtime";import*as f from"@stylexjs/stylex";function p({label:p,defaultOpen:m=!1,open:h,onOpenChange:g,children:_}){let v=a(`SuccessState.MoreDetails`),{_:y}=e();if(!v.depositTx&&!v.completionTx&&v.submittedAt===void 0&&v.filledAt===void 0)return null;let b=p??y({id:`LEbOpR`,message:`More details`}),x=typeof h==`boolean`,[S,C]=l(m),w=x?h:S,T=c(e=>{x||C(e),g?.(e)},[x,g]),E=f.props(s.moreDetailsTrigger,w?null:s.moreDetailsTriggerClosed),D=f.props(s.moreDetailsChevron),O=i(w);return d(n,{open:w,onOpenChange:T,children:[u(n.Trigger,{nativeButton:!1,render:u(r.Row,{"data-stridge-slot":o.moreDetailsTrigger,label:b,className:E.className,style:E.style,children:u(t,{"aria-hidden":!0,className:D.className,style:{...D.style,transform:O}})})}),u(n.Panel,{children:_})]})}export{p as SuccessStateMoreDetails};
1
+ "use client";import{useLingui as e}from"../../../../i18n/useLingui.js";import"../../../../../i18n/index.js";import{DisclosureRow as t}from"../../../../ui/DisclosureRow/DisclosureRow.js";import"../../../../ui/DisclosureRow/index.js";import{useSuccessStateContext as n}from"../context.js";import{SUCCESS_STATE_SLOTS as r}from"../SuccessState.slots.js";import{jsx as i}from"react/jsx-runtime";function a({label:a,defaultOpen:o=!1,open:s,onOpenChange:c,children:l}){let u=n(`SuccessState.MoreDetails`),{_:d}=e();return!u.depositTx&&!u.completionTx&&u.submittedAt===void 0&&u.filledAt===void 0?null:i(t,{label:a??d({id:`LEbOpR`,message:`More details`}),defaultOpen:o,triggerProps:{"data-stridge-slot":r.moreDetailsTrigger},...typeof s==`boolean`?{open:s}:{},...c?{onOpenChange:c}:{},children:l})}export{a as SuccessStateMoreDetails};