@stridge/kit 0.1.0-alpha.54 → 0.1.0-alpha.56

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/KitProvider.js +1 -1
  2. package/dist/_internal/deposit/driver/index.d.ts +2 -2
  3. package/dist/deposit/compound/index.d.ts +11 -5
  4. package/dist/deposit/compound/index.js +1 -1
  5. package/dist/deposit/widgets/index.d.ts +3 -1
  6. package/dist/deposit/widgets/index.js +1 -1
  7. package/dist/drivers/stridge/createStridgeDepositDriver.js +1 -1
  8. package/dist/drivers/stridge-mock/createStridgeMockDriver.js +1 -1
  9. package/dist/drivers/stridge-mock/fixtures.js +1 -1
  10. package/dist/events/bus/flowIdRegistry.d.ts +1 -1
  11. package/dist/events/bus/flowIdRegistry.js +1 -1
  12. package/dist/events/bus/metadata.js +1 -1
  13. package/dist/events/emit/index.js +1 -1
  14. package/dist/events/emit/useActivityEmissions.js +1 -0
  15. package/dist/events/emit/useDepositEmissions.js +1 -1
  16. package/dist/events/index.d.ts +2 -1
  17. package/dist/events/types/activity.d.ts +53 -0
  18. package/dist/events/types/deposit.d.ts +1 -1
  19. package/dist/events/types/envelope.d.ts +4 -4
  20. package/dist/events/types/index.d.ts +2 -1
  21. package/dist/flows/activity/dialog/ActivityDialog.d.ts +9 -1
  22. package/dist/flows/activity/dialog/ActivityDialog.js +1 -1
  23. package/dist/flows/deposit/bindings/DepositBindings.d.ts +87 -0
  24. package/dist/flows/deposit/bindings/DepositBindings.js +1 -0
  25. package/dist/flows/deposit/bindings/index.d.ts +1 -0
  26. package/dist/flows/deposit/bindings/index.js +1 -0
  27. package/dist/flows/deposit/dialog/DepositDialog.js +1 -1
  28. package/dist/flows/deposit/driver/payloads.d.ts +35 -1
  29. package/dist/flows/deposit/driver/types.d.ts +10 -1
  30. package/dist/flows/deposit/orchestrator/controller.js +1 -1
  31. package/dist/flows/deposit/orchestrator/index.d.ts +5 -0
  32. package/dist/flows/deposit/orchestrator/reducer.d.ts +1 -0
  33. package/dist/flows/deposit/orchestrator/reducer.js +1 -1
  34. package/dist/flows/deposit/orchestrator/types.d.ts +107 -2
  35. package/dist/flows/deposit/orchestrator/useDeposit.js +1 -1
  36. package/dist/flows/deposit/shared/cash.d.ts +20 -0
  37. package/dist/flows/deposit/shared/cash.js +1 -0
  38. package/dist/flows/deposit/widgets/amount-entry/AmountEntry.d.ts +1 -1
  39. package/dist/flows/deposit/widgets/amount-entry/AmountEntry.js +1 -1
  40. package/dist/flows/deposit/widgets/cash-amount-entry/CashAmountEntry.d.ts +71 -0
  41. package/dist/flows/deposit/widgets/cash-amount-entry/CashAmountEntry.js +1 -0
  42. package/dist/flows/deposit/widgets/cash-amount-entry/compound/CashAmountEntry.d.ts +69 -0
  43. package/dist/flows/deposit/widgets/cash-amount-entry/compound/CashAmountEntry.js +1 -0
  44. package/dist/flows/deposit/widgets/cash-amount-entry/compound/CashAmountEntry.slots.d.ts +16 -0
  45. package/dist/flows/deposit/widgets/cash-amount-entry/compound/CashAmountEntry.slots.js +1 -0
  46. package/dist/flows/deposit/widgets/cash-amount-entry/compound/CashAmountEntry.styles.js +1 -0
  47. package/dist/flows/deposit/widgets/cash-amount-entry/compound/components/HeroLabel.d.ts +13 -0
  48. package/dist/flows/deposit/widgets/cash-amount-entry/compound/components/HeroLabel.js +1 -0
  49. package/dist/flows/deposit/widgets/cash-amount-entry/compound/components/MethodChip.d.ts +18 -0
  50. package/dist/flows/deposit/widgets/cash-amount-entry/compound/components/MethodChip.js +1 -0
  51. package/dist/flows/deposit/widgets/cash-amount-entry/compound/components/ReceiveChip.d.ts +14 -0
  52. package/dist/flows/deposit/widgets/cash-amount-entry/compound/components/ReceiveChip.js +1 -0
  53. package/dist/flows/deposit/widgets/cash-amount-entry/compound/context.js +1 -0
  54. package/dist/flows/deposit/widgets/cash-amount-entry/compound/index.d.ts +3 -0
  55. package/dist/flows/deposit/widgets/cash-amount-entry/compound/index.js +1 -0
  56. package/dist/flows/deposit/widgets/cash-amount-entry/compound/types.d.ts +42 -0
  57. package/dist/flows/deposit/widgets/cash-amount-entry/index.d.ts +1 -0
  58. package/dist/flows/deposit/widgets/cash-amount-entry/index.js +1 -0
  59. package/dist/flows/deposit/widgets/cash-confirm/CashConfirm.d.ts +63 -0
  60. package/dist/flows/deposit/widgets/cash-confirm/CashConfirm.js +1 -0
  61. package/dist/flows/deposit/widgets/cash-confirm/compound/CashConfirm.d.ts +54 -0
  62. package/dist/flows/deposit/widgets/cash-confirm/compound/CashConfirm.js +1 -0
  63. package/dist/flows/deposit/widgets/cash-confirm/compound/CashConfirm.slots.d.ts +33 -0
  64. package/dist/flows/deposit/widgets/cash-confirm/compound/CashConfirm.slots.js +1 -0
  65. package/dist/flows/deposit/widgets/cash-confirm/compound/CashConfirm.styles.js +1 -0
  66. package/dist/flows/deposit/widgets/cash-confirm/compound/cashConfirmDimensions.js +1 -0
  67. package/dist/flows/deposit/widgets/cash-confirm/compound/components/ApplePayBody.d.ts +15 -0
  68. package/dist/flows/deposit/widgets/cash-confirm/compound/components/ApplePayBody.js +1 -0
  69. package/dist/flows/deposit/widgets/cash-confirm/compound/components/Body.d.ts +22 -0
  70. package/dist/flows/deposit/widgets/cash-confirm/compound/components/Body.js +1 -0
  71. package/dist/flows/deposit/widgets/cash-confirm/compound/components/BodyLabel.js +1 -0
  72. package/dist/flows/deposit/widgets/cash-confirm/compound/components/CardBody.d.ts +16 -0
  73. package/dist/flows/deposit/widgets/cash-confirm/compound/components/CardBody.js +1 -0
  74. package/dist/flows/deposit/widgets/cash-confirm/compound/components/CardInputRow.icons.js +1 -0
  75. package/dist/flows/deposit/widgets/cash-confirm/compound/components/CardInputRow.js +1 -0
  76. package/dist/flows/deposit/widgets/cash-confirm/compound/components/CardInputRow.keys.js +1 -0
  77. package/dist/flows/deposit/widgets/cash-confirm/compound/components/CardInputRow.state.js +1 -0
  78. package/dist/flows/deposit/widgets/cash-confirm/compound/components/CardInputRow.styles.js +1 -0
  79. package/dist/flows/deposit/widgets/cash-confirm/compound/components/GooglePayBody.d.ts +16 -0
  80. package/dist/flows/deposit/widgets/cash-confirm/compound/components/GooglePayBody.js +1 -0
  81. package/dist/flows/deposit/widgets/cash-confirm/compound/components/Header.d.ts +21 -0
  82. package/dist/flows/deposit/widgets/cash-confirm/compound/components/Header.js +1 -0
  83. package/dist/flows/deposit/widgets/cash-confirm/compound/components/Summary.d.ts +17 -0
  84. package/dist/flows/deposit/widgets/cash-confirm/compound/components/Summary.js +1 -0
  85. package/dist/flows/deposit/widgets/cash-confirm/compound/components/cardFormat.js +1 -0
  86. package/dist/flows/deposit/widgets/cash-confirm/compound/context.js +1 -0
  87. package/dist/flows/deposit/widgets/cash-confirm/compound/index.d.ts +3 -0
  88. package/dist/flows/deposit/widgets/cash-confirm/compound/index.js +1 -0
  89. package/dist/flows/deposit/widgets/cash-confirm/compound/types.d.ts +66 -0
  90. package/dist/flows/deposit/widgets/cash-confirm/index.d.ts +1 -0
  91. package/dist/flows/deposit/widgets/cash-confirm/index.js +1 -0
  92. package/dist/flows/deposit/widgets/cash-confirm/mocks.js +1 -0
  93. package/dist/flows/deposit/widgets/deposit/Deposit.d.ts +6 -0
  94. package/dist/flows/deposit/widgets/deposit/Deposit.js +1 -1
  95. package/dist/flows/deposit/widgets/deposit/compound/Deposit.d.ts +26 -1
  96. package/dist/flows/deposit/widgets/deposit/compound/Deposit.js +1 -1
  97. package/dist/flows/deposit/widgets/deposit/compound/Deposit.slots.d.ts +6 -0
  98. package/dist/flows/deposit/widgets/deposit/compound/Deposit.slots.js +1 -1
  99. package/dist/flows/deposit/widgets/deposit/compound/Deposit.styles.js +1 -1
  100. package/dist/flows/deposit/widgets/deposit/compound/components/Guards.js +1 -1
  101. package/dist/flows/deposit/widgets/deposit/compound/components/Method.d.ts +1 -0
  102. package/dist/flows/deposit/widgets/deposit/compound/components/Method.js +1 -1
  103. package/dist/flows/deposit/widgets/deposit/compound/components/MethodSection.d.ts +40 -0
  104. package/dist/flows/deposit/widgets/deposit/compound/components/MethodSection.js +1 -0
  105. package/dist/flows/deposit/widgets/deposit/compound/components/Methods.d.ts +16 -9
  106. package/dist/flows/deposit/widgets/deposit/compound/components/Methods.js +1 -1
  107. package/dist/flows/deposit/widgets/deposit/compound/components/Rail.d.ts +18 -0
  108. package/dist/flows/deposit/widgets/deposit/compound/components/Rail.js +1 -0
  109. package/dist/flows/deposit/widgets/deposit/compound/components/RailPicker.d.ts +43 -0
  110. package/dist/flows/deposit/widgets/deposit/compound/components/RailPicker.js +1 -0
  111. package/dist/flows/deposit/widgets/deposit/compound/index.d.ts +1 -1
  112. package/dist/flows/deposit/widgets/deposit/compound/types.d.ts +100 -1
  113. package/dist/flows/deposit/widgets/transfer-crypto/compound/components/QrCode.js +1 -1
  114. package/dist/flows/withdraw/orchestrator/reducer.js +1 -1
  115. package/dist/i18n/locales/ar.js +1 -1
  116. package/dist/i18n/locales/es.js +1 -1
  117. package/dist/i18n/locales/source-keys.d.ts +1 -1
  118. package/dist/icons/index.d.ts +10 -1
  119. package/dist/icons/index.js +1 -1
  120. package/dist/index.d.ts +8 -6
  121. package/dist/index.js +1 -1
  122. package/dist/package.js +1 -1
  123. package/dist/shared/icons/AmexIcon.d.ts +14 -0
  124. package/dist/shared/icons/AmexIcon.js +1 -0
  125. package/dist/shared/icons/ApplePayIcon.d.ts +15 -0
  126. package/dist/shared/icons/ApplePayIcon.js +1 -0
  127. package/dist/shared/icons/BitcoinIcon.d.ts +17 -0
  128. package/dist/shared/icons/BitcoinIcon.js +1 -0
  129. package/dist/shared/icons/CardIcon.d.ts +16 -0
  130. package/dist/shared/icons/CardIcon.js +1 -0
  131. package/dist/shared/icons/CashIcon.d.ts +16 -0
  132. package/dist/shared/icons/CashIcon.js +1 -0
  133. package/dist/shared/icons/DiscoverIcon.d.ts +14 -0
  134. package/dist/shared/icons/DiscoverIcon.js +1 -0
  135. package/dist/shared/icons/GooglePayIcon.d.ts +15 -0
  136. package/dist/shared/icons/GooglePayIcon.js +1 -0
  137. package/dist/shared/icons/MastercardIcon.d.ts +16 -0
  138. package/dist/shared/icons/MastercardIcon.js +1 -0
  139. package/dist/shared/icons/VisaIcon.d.ts +15 -0
  140. package/dist/shared/icons/VisaIcon.js +1 -0
  141. package/dist/shared/ui/Tabs/Tabs.d.ts +79 -0
  142. package/dist/shared/ui/Tabs/Tabs.js +1 -0
  143. package/dist/shared/ui/Tabs/Tabs.slots.d.ts +11 -0
  144. package/dist/shared/ui/Tabs/Tabs.slots.js +1 -0
  145. package/dist/shared/ui/Tabs/Tabs.styles.js +1 -0
  146. package/dist/shared/ui/Tabs/index.d.ts +2 -0
  147. package/dist/shared/ui/Tabs/index.js +1 -0
  148. package/dist/shared/utils/assertNever.js +1 -0
  149. package/dist/shared/widgets/amount-entry/compound/AmountEntry.d.ts +7 -2
  150. package/dist/shared/widgets/amount-entry/compound/AmountEntry.js +1 -1
  151. package/dist/shared/widgets/amount-entry/compound/AmountEntry.slots.d.ts +5 -0
  152. package/dist/shared/widgets/amount-entry/compound/AmountEntry.slots.js +1 -1
  153. package/dist/shared/widgets/amount-entry/compound/AmountEntry.styles.js +1 -1
  154. package/dist/shared/widgets/amount-entry/compound/components/Details.d.ts +34 -0
  155. package/dist/shared/widgets/amount-entry/compound/components/Details.js +1 -0
  156. package/dist/shared/widgets/amount-entry/compound/components/Footer.d.ts +2 -1
  157. package/dist/shared/widgets/amount-entry/compound/components/Footer.js +1 -1
  158. package/dist/shared/widgets/amount-entry/compound/index.d.ts +1 -1
  159. package/dist/shared/widgets/amount-entry/compound/types.d.ts +37 -1
  160. package/dist/shared/widgets/confirm-transfer/compound/components/Breakdown.js +1 -1
  161. package/dist/storage/context.d.ts +9 -1
  162. package/dist/storage/context.js +1 -1
  163. package/dist/storage/index.d.ts +1 -1
  164. package/dist/stridge/stubs.js +1 -1
  165. package/dist/styles/index.css +275 -2
  166. package/dist/types.d.ts +3 -3
  167. package/dist/ui/index.d.ts +3 -1
  168. package/dist/ui/index.js +1 -1
  169. package/dist/withdraw/compound/index.d.ts +2 -2
  170. package/package.json +3 -3
@@ -0,0 +1,15 @@
1
+ import { SVGProps } from "react";
2
+ import * as _$react_jsx_runtime0 from "react/jsx-runtime";
3
+
4
+ //#region src/shared/icons/GooglePayIcon.d.ts
5
+ /**
6
+ * Google "G" glyph — monochrome silhouette filled with `currentColor`. Used
7
+ * as the themed glyph for the cash rail's Google Pay method in
8
+ * `Deposit.Method`. The full Google Pay button lockup is reserved for
9
+ * integrators with Google brand approval, who pass the official mark through
10
+ * the `DepositMethodInput.icon` override prop. The `Pay` suffix on the
11
+ * identifier disambiguates this from non-payment uses of the Google brand.
12
+ */
13
+ declare function GooglePayIcon(props: SVGProps<SVGSVGElement>): _$react_jsx_runtime0.JSX.Element;
14
+ //#endregion
15
+ export { GooglePayIcon };
@@ -0,0 +1 @@
1
+ import{jsx as e}from"react/jsx-runtime";function t(t){return e(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`currentColor`,...t,children:e(`path`,{d:`M21.35 11.1H12.18v3.83h5.27c-.5 2.43-2.55 3.83-5.27 3.83-3.21 0-5.81-2.6-5.81-5.81s2.6-5.81 5.81-5.81c1.39 0 2.65.49 3.64 1.31l2.71-2.71C16.84 4.16 14.61 3 12.18 3 7.05 3 2.92 7.13 2.92 12.26s4.13 9.26 9.26 9.26c5.35 0 8.93-3.74 8.93-9 0-.61-.06-1.21-.16-1.79z`})})}export{t as GooglePayIcon};
@@ -0,0 +1,16 @@
1
+ import { SVGProps } from "react";
2
+ import * as _$react_jsx_runtime0 from "react/jsx-runtime";
3
+
4
+ //#region src/shared/icons/MastercardIcon.d.ts
5
+ /**
6
+ * Mastercard monochrome silhouette — two interlocking circles, the brand's icon-only mark.
7
+ * Themed via `currentColor`. Used as the detected-brand glyph in the cash deposit's
8
+ * `CardInputRow` when `detectBrand(pan)` returns `"mastercard"`. Full-colour Mastercard
9
+ * lockups (the red+orange Venn diagram) are reserved for integrators with brand approval; this
10
+ * kit ships the silhouette for trademark safety. The two circles paint at 70% opacity each so
11
+ * the overlap region renders at full opacity in `currentColor` — keeps the iconic Venn shape
12
+ * recognisable without baking in the brand colours.
13
+ */
14
+ declare function MastercardIcon(props: SVGProps<SVGSVGElement>): _$react_jsx_runtime0.JSX.Element;
15
+ //#endregion
16
+ export { MastercardIcon };
@@ -0,0 +1 @@
1
+ import{jsx as e,jsxs as t}from"react/jsx-runtime";function n(n){return t(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:32,height:20,viewBox:`0 0 32 20`,fill:`currentColor`,...n,children:[e(`circle`,{cx:`12`,cy:`10`,r:`6`,fillOpacity:`0.7`}),e(`circle`,{cx:`20`,cy:`10`,r:`6`,fillOpacity:`0.7`})]})}export{n as MastercardIcon};
@@ -0,0 +1,15 @@
1
+ import { SVGProps } from "react";
2
+ import * as _$react_jsx_runtime0 from "react/jsx-runtime";
3
+
4
+ //#region src/shared/icons/VisaIcon.d.ts
5
+ /**
6
+ * Visa-brand monochrome wordmark — silhouette letterforms in `currentColor`. Used as the
7
+ * detected-brand glyph in the cash deposit's `CardInputRow` when `detectBrand(pan)` returns
8
+ * `"visa"`. The natural 32×20 aspect ratio matches card-art conventions; consumers constrain
9
+ * via inline width/height. Full-colour Visa brand lockups are reserved for integrators with
10
+ * brand approval, who pass the official mark through a slot override; this kit ships the
11
+ * silhouette for trademark safety.
12
+ */
13
+ declare function VisaIcon(props: SVGProps<SVGSVGElement>): _$react_jsx_runtime0.JSX.Element;
14
+ //#endregion
15
+ export { VisaIcon };
@@ -0,0 +1 @@
1
+ import{jsx as e}from"react/jsx-runtime";function t(t){return e(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:32,height:20,viewBox:`0 0 32 20`,fill:`currentColor`,...t,children:e(`text`,{x:`16`,y:`14.5`,textAnchor:`middle`,fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif`,fontSize:`11`,fontWeight:`900`,fontStyle:`italic`,letterSpacing:`-0.2`,children:`VISA`})})}export{t as VisaIcon};
@@ -0,0 +1,79 @@
1
+ import * as _$react_jsx_runtime0 from "react/jsx-runtime";
2
+ import { Tabs } from "@base-ui/react/tabs";
3
+
4
+ //#region src/shared/ui/Tabs/Tabs.d.ts
5
+ /**
6
+ * Visual variant for the segmented-tabs primitive.
7
+ *
8
+ * - `default` — recessed track + floating pill indicator (segmented control).
9
+ * - `line` — transparent track + underline indicator (page tabs / nav).
10
+ * - `ghost` — no track + no indicator; hover wash on idle tabs.
11
+ *
12
+ * Set on `Tabs.List`; `Tabs.Tab` and `Tabs.Indicator` inherit via `TabsListContext`.
13
+ */
14
+ type TabsVariant = "default" | "line" | "ghost";
15
+ /**
16
+ * Segmented tabs primitive. Compose `Tabs.Root` with one `Tabs.List` (which hosts
17
+ * `Tabs.Tab` + `Tabs.Indicator`) and one `Tabs.Panel` per tab `value`.
18
+ *
19
+ * Wraps `@base-ui/react/tabs` for ARIA semantics (roving tabindex, arrow-key navigation,
20
+ * `aria-controls` / `aria-labelledby` panel wiring). Active tab coordinates are exposed
21
+ * via the 6 `--active-tab-*` CSS vars Base UI sets on `Tabs.Indicator`; the kit's styles
22
+ * consume `--active-tab-left` / `--active-tab-right` and flip between them under RTL.
23
+ *
24
+ * @example
25
+ * ```tsx
26
+ * <Tabs.Root defaultValue="crypto">
27
+ * <Tabs.List variant="default">
28
+ * <Tabs.Tab value="crypto">Crypto</Tabs.Tab>
29
+ * <Tabs.Tab value="cash">Cash</Tabs.Tab>
30
+ * <Tabs.Indicator />
31
+ * </Tabs.List>
32
+ * <Tabs.Panel value="crypto">…</Tabs.Panel>
33
+ * <Tabs.Panel value="cash">…</Tabs.Panel>
34
+ * </Tabs.Root>
35
+ * ```
36
+ */
37
+ declare function TabsRoot({
38
+ className,
39
+ style,
40
+ ...props
41
+ }: Tabs$1.RootProps): _$react_jsx_runtime0.JSX.Element;
42
+ declare function TabsList({
43
+ className,
44
+ style,
45
+ variant,
46
+ ...props
47
+ }: Tabs$1.ListProps): _$react_jsx_runtime0.JSX.Element;
48
+ declare function TabsTab({
49
+ className,
50
+ style,
51
+ ...props
52
+ }: Tabs$1.TabProps): _$react_jsx_runtime0.JSX.Element;
53
+ declare function TabsIndicator({
54
+ className,
55
+ style,
56
+ ...props
57
+ }: Tabs$1.IndicatorProps): _$react_jsx_runtime0.JSX.Element;
58
+ declare function TabsPanel({
59
+ className,
60
+ style,
61
+ ...props
62
+ }: Tabs$1.PanelProps): _$react_jsx_runtime0.JSX.Element;
63
+ declare namespace Tabs$1 {
64
+ type Variant = TabsVariant;
65
+ type RootProps = Tabs.Root.Props;
66
+ type ListProps = Tabs.List.Props & {
67
+ variant?: TabsVariant;
68
+ };
69
+ type TabProps = Tabs.Tab.Props;
70
+ type IndicatorProps = Tabs.Indicator.Props;
71
+ type PanelProps = Tabs.Panel.Props;
72
+ const Root: typeof TabsRoot;
73
+ const List: typeof TabsList;
74
+ const Tab: typeof TabsTab;
75
+ const Indicator: typeof TabsIndicator;
76
+ const Panel: typeof TabsPanel;
77
+ }
78
+ //#endregion
79
+ export { Tabs$1 as Tabs, TabsIndicator, TabsList, TabsPanel, TabsRoot, TabsTab, TabsVariant };
@@ -0,0 +1 @@
1
+ "use client";import{mergeClassName as e}from"../../utils/mergeClassName.js";import{TABS_SLOTS as t}from"./Tabs.slots.js";import{indicatorStyles as n,listStyles as r,panelStyles as i,rootStyles as a,tabStyles as o}from"./Tabs.styles.js";import{createContext as s,use as c,useMemo as l}from"react";import{jsx as u}from"react/jsx-runtime";import*as d from"@stylexjs/stylex";import{Tabs as f}from"@base-ui/react/tabs";const p=s({variant:`default`});function m({className:n,style:r,...i}){let o=d.props(a.base);return u(f.Root,{"data-stridge-slot":t.root,...i,className:e(o.className,n),style:{...o.style,...r}})}function h({className:n,style:i,variant:a=`default`,...o}){let s=d.props(r.base,r[a]);return u(p,{value:l(()=>({variant:a}),[a]),children:u(f.List,{"data-stridge-slot":t.list,"data-variant":a,...o,className:e(s.className,n),style:{...s.style,...i}})})}function g({className:n,style:r,...i}){let{variant:a}=c(p),s=d.props(o.base,o[a]);return u(f.Tab,{"data-stridge-slot":t.tab,"data-variant":a,...i,className:e(s.className,n),style:{...s.style,...r}})}function _({className:r,style:i,...a}){let{variant:o}=c(p),s=d.props(n.base,n[o]);return u(f.Indicator,{"data-stridge-slot":t.indicator,"data-variant":o,...a,className:e(s.className,r),style:{...s.style,...i}})}function v({className:n,style:r,...a}){let o=d.props(i.base);return u(f.Panel,{"data-stridge-slot":t.panel,...a,className:e(o.className,n),style:{...o.style,...r}})}let y;(function(e){e.Root=m,e.List=h,e.Tab=g,e.Indicator=_,e.Panel=v})(y||={});export{y as Tabs,_ as TabsIndicator,h as TabsList,v as TabsPanel,m as TabsRoot,g as TabsTab};
@@ -0,0 +1,11 @@
1
+ //#region src/shared/ui/Tabs/Tabs.slots.d.ts
2
+ declare const TABS_SLOTS: {
3
+ readonly root: "tabs";
4
+ readonly list: "tabs-list";
5
+ readonly tab: "tabs-tab";
6
+ readonly indicator: "tabs-indicator";
7
+ readonly panel: "tabs-panel";
8
+ };
9
+ type TabsSlot = (typeof TABS_SLOTS)[keyof typeof TABS_SLOTS];
10
+ //#endregion
11
+ export { TABS_SLOTS, TabsSlot };
@@ -0,0 +1 @@
1
+ const e={root:`tabs`,list:`tabs-list`,tab:`tabs-tab`,indicator:`tabs-indicator`,panel:`tabs-panel`};export{e as TABS_SLOTS};
@@ -0,0 +1 @@
1
+ const e={base:{"Tabs__rootStyles.base":`Tabs__rootStyles.base`,"display-k1xSpc":`x78zum5`,"flexDirection-kXwgrk":`xdt5ytf`,"gap-kOIVth":`xsfdumc`,"[data-orientation=vertical]_flexDirection-k3uqFh":`xlpxku1`,$$css:`@stridge/kit:src/shared/ui/Tabs/Tabs.styles.ts:4`}},t={base:{"Tabs__listStyles.base":`Tabs__listStyles.base`,"position-kVAEAm":`x1n2onr6`,"display-k1xSpc":`x78zum5`,"alignItems-kGNEyG":`x6s0dn4`,"justifyContent-kjj79g":`xl56j7k`,"color-kMwMTN":`xddgj62`,"gap-kOIVth":`x1r05nms`,"boxSizing-kB7OPa":`x9f619`,"[data-orientation=vertical]_height-k2AXh":`x1smgklz`,"[data-orientation=vertical]_flexDirection-k3uqFh":`x1nquej0`,$$css:`@stridge/kit:src/shared/ui/Tabs/Tabs.styles.ts:14`},default:{"Tabs__listStyles.default":`Tabs__listStyles.default`,"padding-kmVPX3":`x1ljrego`,"backgroundColor-kWkggS":`x13y6qn8`,"borderWidth-kMzoRj":`xmkeg23`,"borderStyle-ksu8eU":`x1y0btm7`,"borderColor-kVAM5u":`x1s46ruh`,"borderRadius-kaIpWk":`x1gt2vge`,$$css:`@stridge/kit:src/shared/ui/Tabs/Tabs.styles.ts:27`},line:{"Tabs__listStyles.line":`Tabs__listStyles.line`,$$css:`@stridge/kit:src/shared/ui/Tabs/Tabs.styles.ts:35`},ghost:{"Tabs__listStyles.ghost":`Tabs__listStyles.ghost`,$$css:`@stridge/kit:src/shared/ui/Tabs/Tabs.styles.ts:36`}},n={base:{"Tabs__tabStyles.base":`Tabs__tabStyles.base`,"position-kVAEAm":`x1n2onr6`,"zIndex-kY2c9j":`x1n327nk`,"display-k1xSpc":`x3nfvp2`,"flexGrow-kzQI83":`x1iyjqo2`,"flexShrink-kmuXW":`xs83m0k`,"flexBasis-kCS8Yb":`x1r8uery`,"cursor-kkrTdU":`x1ypdohk`,"userSelect-kfSwDN":`x87ps6o`,"alignItems-kGNEyG":`x6s0dn4`,"justifyContent-kjj79g":`xl56j7k`,"gap-kOIVth":`x1a6yh9e`,"whiteSpace-khDVqt":`xuxw1ft`,"borderWidth-kMzoRj":`xmkeg23`,"borderStyle-ksu8eU":`x1y0btm7`,"borderColor-kVAM5u":`x9r1u3d`,"paddingInline-kg3NbH":`x1fk34n2`,"paddingBlock-k8WAf4":`x1wjkr2j`,"fontFamily-kMv6JI":`xlaww2m`,"fontWeight-k63SB2":`xi0sa8g`,"fontSize-kGuDYH":`x14qa7mu`,"outline-kI3sdo":`x1a2a7pz`,"backgroundColor-kWkggS":`xjbqb8w`,"transitionProperty-k1ekBW":`xgzoi8n`,"transitionDuration-kIyJzY":`x1vhb3u9`,"transitionTimingFunction-kAMwcw":`x1xv5090`,"color-kMwMTN":`xddgj62 xbs6d1p`,":focus-visible_borderColor-kOJeXU":`x1mt3fz5`,":focus-visible_boxShadow-kEtg5x":`x159teg`,"[data-disabled]_cursor-k7V0jq":`x1j1ks5o`,"[data-disabled]_opacity-kncrQb":`x1szrgyu`,"[data-disabled]_color-kr7yC9":`xctydo3`,"[data-orientation=vertical]_width-kwVBnF":`x1nvwyg1`,"[data-orientation=vertical]_justifyContent-kW83ku":`x1sydc4h`,$$css:`@stridge/kit:src/shared/ui/Tabs/Tabs.styles.ts:39`},default:{"Tabs__tabStyles.default":`Tabs__tabStyles.default`,"borderRadius-kaIpWk":`xfauvix`,"[data-active]_color-kZgtTg":`xqclgz3`,"[data-active]_fontWeight-kXEcAL":`x1xpet1t`,$$css:`@stridge/kit:src/shared/ui/Tabs/Tabs.styles.ts:83`},line:{"Tabs__tabStyles.line":`Tabs__tabStyles.line`,"borderRadius-kaIpWk":`x2u8bby`,"[data-active]_color-kZgtTg":`xqclgz3`,"[data-active]_fontWeight-kXEcAL":`x1xpet1t`,$$css:`@stridge/kit:src/shared/ui/Tabs/Tabs.styles.ts:90`},ghost:{"Tabs__tabStyles.ghost":`Tabs__tabStyles.ghost`,"borderRadius-kaIpWk":`xfauvix`,"backgroundColor-kWkggS":`xjbqb8w xyv6lf4`,"[data-active]_backgroundColor-kUQuju":`xthri8c`,"[data-active]_color-kZgtTg":`xqclgz3`,"[data-active]_fontWeight-kXEcAL":`x1xpet1t`,"[data-disabled]_backgroundColor-kXNYay":`xynnxzo`,$$css:`@stridge/kit:src/shared/ui/Tabs/Tabs.styles.ts:97`}},r={base:{"Tabs__indicatorStyles.base":`Tabs__indicatorStyles.base`,"position-kVAEAm":`x10l6tqk`,"transitionProperty-k1ekBW":`x36inuq`,"transitionDuration-kIyJzY":`x1szhkt1`,"transitionTimingFunction-kAMwcw":`x1xv5090`,"boxSizing-kB7OPa":`x9f619`,"left-kbCHJM":`xvbikie`,"width-kzqmXN":`xoffw1`,":where([dir=rtl]) &_left-kI7wb3":`x1et6zyk`,":where([dir=rtl]) &_right-kL6kVs":`xdvm21q`,$$css:`@stridge/kit:src/shared/ui/Tabs/Tabs.styles.ts:127`},default:{"Tabs__indicatorStyles.default":`Tabs__indicatorStyles.default`,"top-k87sOh":`x10uur0e`,"height-kZKoxP":`x1gezbiy`,"borderRadius-kaIpWk":`xfauvix`,"backgroundColor-kWkggS":`x1ge2e6s`,"borderWidth-kMzoRj":`xmkeg23`,"borderStyle-ksu8eU":`x1y0btm7`,"borderColor-kVAM5u":`xab7lrg`,$$css:`@stridge/kit:src/shared/ui/Tabs/Tabs.styles.ts:140`},line:{"Tabs__indicatorStyles.line":`Tabs__indicatorStyles.line`,"backgroundColor-kWkggS":`x1fkz0ev`,"borderRadius-kaIpWk":`x1npxkrn`,"[data-orientation=horizontal]_bottom-k9htvw":`x1e9oa8n`,"[data-orientation=horizontal]_height-kH2gFy":`x1nzntce`,"[data-orientation=vertical]_top-kAKlKY":`xfdi2ae`,"[data-orientation=vertical]_height-k2AXh":`x6demw2`,"[data-orientation=vertical]_width-kwVBnF":`x13i9a9u`,"[data-orientation=vertical]_left-ksD6Ru":`x1fhtaip`,"[data-orientation=vertical]_:where([dir=rtl]) &_left-kNEBsG":`xqse6zn`,"[data-orientation=vertical]_:where([dir=rtl]) &_right-kObveJ":`x1ef44r0`,$$css:`@stridge/kit:src/shared/ui/Tabs/Tabs.styles.ts:149`},ghost:{"Tabs__indicatorStyles.ghost":`Tabs__indicatorStyles.ghost`,"display-k1xSpc":`x1s85apg`,$$css:`@stridge/kit:src/shared/ui/Tabs/Tabs.styles.ts:167`}},i={base:{"Tabs__panelStyles.base":`Tabs__panelStyles.base`,"flexGrow-kzQI83":`x1iyjqo2`,"flexShrink-kmuXW":`xs83m0k`,"flexBasis-kCS8Yb":`x1r8uery`,"fontSize-kGuDYH":`x14qa7mu`,"outline-kI3sdo":`x1a2a7pz`,$$css:`@stridge/kit:src/shared/ui/Tabs/Tabs.styles.ts:172`}};export{r as indicatorStyles,t as listStyles,i as panelStyles,e as rootStyles,n as tabStyles};
@@ -0,0 +1,2 @@
1
+ import { Tabs, TabsIndicator, TabsList, TabsPanel, TabsRoot, TabsTab, TabsVariant } from "./Tabs.js";
2
+ import { TABS_SLOTS, TabsSlot } from "./Tabs.slots.js";
@@ -0,0 +1 @@
1
+ import"./Tabs.slots.js";import"./Tabs.js";
@@ -0,0 +1 @@
1
+ function e(e){throw Error(`Unhandled discriminant: ${JSON.stringify(e)}`)}export{e as assertNever};
@@ -1,7 +1,8 @@
1
- import { AmountEntryBodyProps, AmountEntryDialogProps, AmountEntryFlowProps, AmountEntryFooterProps, AmountEntryHeaderProps, AmountEntryHeroProps, AmountEntryNoticeProps, AmountEntryPillsProps, AmountEntryProps } from "./types.js";
1
+ import { AmountEntryBodyProps, AmountEntryDetailsProps, AmountEntryDetailsRowProps, AmountEntryDialogProps, AmountEntryFlowProps, AmountEntryFooterProps, AmountEntryHeaderProps, AmountEntryHeroProps, AmountEntryNoticeProps, AmountEntryPillsProps, AmountEntryProps } from "./types.js";
2
+ import { AmountEntryHeader } from "./components/Header.js";
3
+ import { AmountEntryDetails, AmountEntryDetailsRow } from "./components/Details.js";
2
4
  import { AmountEntryFlow } from "./components/Flow.js";
3
5
  import { AmountEntryFooter } from "./components/Footer.js";
4
- import { AmountEntryHeader } from "./components/Header.js";
5
6
  import { AmountEntryHero } from "./components/Hero/Hero.js";
6
7
  import { AmountEntryNotice } from "./components/Notice.js";
7
8
  import { AmountEntryPills } from "./components/Pills.js";
@@ -48,6 +49,8 @@ declare namespace AmountEntry {
48
49
  type FlowProps = AmountEntryFlowProps;
49
50
  type FooterProps = AmountEntryFooterProps;
50
51
  type NoticeProps = AmountEntryNoticeProps;
52
+ type DetailsProps = AmountEntryDetailsProps;
53
+ type DetailsRowProps = AmountEntryDetailsRowProps;
51
54
  type DialogProps = AmountEntryDialogProps;
52
55
  const Header: typeof AmountEntryHeader;
53
56
  const Body: typeof AmountEntryBody;
@@ -56,6 +59,8 @@ declare namespace AmountEntry {
56
59
  const Flow: typeof AmountEntryFlow;
57
60
  const Footer: typeof AmountEntryFooter;
58
61
  const Notice: typeof AmountEntryNotice;
62
+ const Details: typeof AmountEntryDetails;
63
+ const DetailsRow: typeof AmountEntryDetailsRow;
59
64
  const Dialog: typeof AmountEntryDialog;
60
65
  }
61
66
  //#endregion
@@ -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{AmountEntryContext as o}from"./context.js";import{AmountEntryFlow as s}from"./components/Flow.js";import{AmountEntryFooter as c}from"./components/Footer.js";import{AmountEntryHeader as l}from"./components/Header.js";import{AmountEntryHero as u}from"./components/Hero/Hero.js";import"./components/Hero/index.js";import{AmountEntryNotice as d}from"./components/Notice.js";import{AmountEntryPills as f}from"./components/Pills.js";import{useMemo as p}from"react";import{jsx as m}from"react/jsx-runtime";import*as h from"@stylexjs/stylex";const g={useGrouping:!0,maximumFractionDigits:8},_=[];function v(e){let{amount:t,sendToken:s,receiveToken:c,locale:l,format:u,min:d=0,max:f,onAmountChange:v,headerTitle:y,onBack:b,currencySymbol:x,subLine:S,subLineAmount:C,presets:w=_,activePreset:T,onPresetSelect:E,bridge:D,footerLabel:O,onContinue:k,notice:A,headerTrailing:j,children:M}=e,N=p(()=>({amount:t,sendToken:s,receiveToken:c,locale:l,format:u??g,min:d,max:f,onAmountChange:v,headerTitle:y,onBack:b,currencySymbol:x,subLine:S,subLineAmount:C,presets:w,activePreset:T,onPresetSelect:E,bridge:D,footerLabel:O,onContinue:k,notice:A,headerTrailing:j}),[t,s,c,l,u,d,f,v,y,b,x,S,C,w,T,E,D,O,k,A,j]);return m(o.Provider,{value:N,children:m(n.Provider,{children:m(r,{"data-stridge-slot":i.root,...h.props(a.root),children:M})})})}function y(e){return m(t.Body,{"data-stridge-slot":i.body,...e})}function b({open:t,defaultOpen:n,onOpenChange:r,trigger:i,children:a,...o}){return m(e,{open:t,defaultOpen:n,onOpenChange:r,trigger:i,children:m(v,{...o,children:a})})}(function(e){e.Header=l,e.Body=y,e.Hero=u,e.Pills=f,e.Flow=s,e.Footer=c,e.Notice=d,e.Dialog=b})(v||={});export{v 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,subLine:S,subLineAmount:C,presets:w=y,activePreset:T,onPresetSelect:E,bridge:D,footerLabel:O,onContinue:k,notice:A,headerTrailing:j,children:M}=e,N=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,notice:A,headerTrailing:j}),[t,o,s,l,u,d,f,p,m,b,x,S,C,w,T,E,D,O,k,A,j]);return g(c.Provider,{value:N,children:g(n.Provider,{children:g(r,{"data-stridge-slot":i.root,..._.props(a.root),children:M})})})}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};
@@ -10,6 +10,11 @@ declare const AMOUNT_ENTRY_SLOTS: {
10
10
  readonly heroBand: "amount-entry-hero-band";
11
11
  readonly heroSwap: "amount-entry-hero-swap";
12
12
  readonly notice: "amount-entry-notice";
13
+ readonly details: "amount-entry-details";
14
+ readonly detailsRow: "amount-entry-details-row";
15
+ readonly detailsRowLabel: "amount-entry-details-row-label";
16
+ readonly detailsRowValue: "amount-entry-details-row-value";
17
+ readonly detailsRowInfo: "amount-entry-details-row-info";
13
18
  };
14
19
  type AmountEntrySlot = (typeof AMOUNT_ENTRY_SLOTS)[keyof typeof AMOUNT_ENTRY_SLOTS];
15
20
  //#endregion
@@ -1 +1 @@
1
- const e={root:`amount-entry`,header:`amount-entry-header`,body:`amount-entry-body`,footer:`amount-entry-footer`,flow:`amount-entry-flow`,pills:`amount-entry-pills`,hero:`amount-entry-hero`,heroBand:`amount-entry-hero-band`,heroSwap:`amount-entry-hero-swap`,notice:`amount-entry-notice`};export{e as AMOUNT_ENTRY_SLOTS};
1
+ const e={root:`amount-entry`,header:`amount-entry-header`,body:`amount-entry-body`,footer:`amount-entry-footer`,flow:`amount-entry-flow`,pills:`amount-entry-pills`,hero:`amount-entry-hero`,heroBand:`amount-entry-hero-band`,heroSwap:`amount-entry-hero-swap`,notice:`amount-entry-notice`,details:`amount-entry-details`,detailsRow:`amount-entry-details-row`,detailsRowLabel:`amount-entry-details-row-label`,detailsRowValue:`amount-entry-details-row-value`,detailsRowInfo:`amount-entry-details-row-info`};export{e as AMOUNT_ENTRY_SLOTS};
@@ -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`}};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`},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};
@@ -0,0 +1,34 @@
1
+ import { AmountEntryDetailsProps, AmountEntryDetailsRowProps } from "../types.js";
2
+ import * as _$react_jsx_runtime0 from "react/jsx-runtime";
3
+
4
+ //#region src/shared/widgets/amount-entry/compound/components/Details.d.ts
5
+ /**
6
+ * Details part — the labelled-value breakdown card under {@link AmountEntry.Pills}. Consumers
7
+ * compose {@link AmountEntry.DetailsRow} children freely; the part owns the surrounding card
8
+ * chrome, the body-side padding, and the inter-row spacing.
9
+ *
10
+ * Renders nothing decorative when no children are passed — drop the part entirely instead of
11
+ * rendering an empty card.
12
+ */
13
+ declare function AmountEntryDetails({
14
+ className,
15
+ style,
16
+ children,
17
+ ...rest
18
+ }: AmountEntryDetailsProps): _$react_jsx_runtime0.JSX.Element;
19
+ /**
20
+ * Single row inside an {@link AmountEntry.Details} surface. Label on the start edge (with an
21
+ * optional info-icon tooltip), value on the end edge. The widget root provides a
22
+ * `<Tooltip.Provider>`, so `info` content shows on hover/focus without extra wiring.
23
+ */
24
+ declare function AmountEntryDetailsRow({
25
+ label,
26
+ info,
27
+ infoLabel,
28
+ className,
29
+ style,
30
+ children,
31
+ ...rest
32
+ }: AmountEntryDetailsRowProps): _$react_jsx_runtime0.JSX.Element;
33
+ //#endregion
34
+ export { AmountEntryDetails, AmountEntryDetailsRow };
@@ -0,0 +1 @@
1
+ "use client";import{useLingui as e}from"../../../../i18n/useLingui.js";import"../../../../../i18n/index.js";import{joinClassNames as t}from"../../../../utils/joinClassNames.js";import{InfoIcon as n}from"../../../../icons/InfoIcon.js";import"../../../../../icons/index.js";import{text as r}from"../../../../ui/Text/Text.js";import{Tooltip as i}from"../../../../ui/Tooltip/Tooltip.js";import"../../../../ui/Tooltip/index.js";import"../../../../../ui/index.js";import{AMOUNT_ENTRY_SLOTS as a}from"../AmountEntry.slots.js";import{styles as o}from"../AmountEntry.styles.js";import{jsx as s,jsxs as c}from"react/jsx-runtime";import*as l from"@stylexjs/stylex";function u({className:e,style:n,children:r,...i}){let c=l.props(o.detailsWrap),u=l.props(o.detailsCard);return s(`div`,{"data-stridge-slot":a.details,className:c.className,style:c.style,children:s(`div`,{...i,className:t(u.className,e),style:{...u.style,...n},children:r})})}function d({label:u,info:d,infoLabel:f,className:p,style:m,children:h,...g}){let{_}=e(),v=l.props(o.detailsRow),y=f??_({id:`kjrq_8`,message:`More information`});return c(`div`,{...g,"data-stridge-slot":a.detailsRow,className:t(v.className,p),style:{...v.style,...m},children:[c(`span`,{"data-stridge-slot":a.detailsRowLabel,...l.props(o.detailsRowLabelCell),children:[s(r.span,{size:`sm`,color:`subdued`,leading:`tight`,truncate:!0,...l.props(o.detailsRowLabel),children:u}),d?c(i.Root,{children:[s(i.Trigger,{"aria-label":y,"data-stridge-slot":a.detailsRowInfo,...l.props(o.detailsRowInfoTrigger),children:s(n,{"aria-hidden":!0,...l.props(o.detailsRowInfoIcon)})}),s(i.Content,{children:d})]}):null]}),s(`span`,{"data-stridge-slot":a.detailsRowValue,...l.props(o.detailsRowValueCell),children:s(r.span,{size:`sm`,color:`default`,leading:`tight`,children:h})})]})}export{u as AmountEntryDetails,d as AmountEntryDetailsRow};
@@ -16,7 +16,8 @@ import * as _$react_jsx_runtime0 from "react/jsx-runtime";
16
16
  */
17
17
  declare function AmountEntryFooter({
18
18
  label,
19
- onContinue
19
+ onContinue,
20
+ children
20
21
  }?: AmountEntryFooterProps): _$react_jsx_runtime0.JSX.Element;
21
22
  //#endregion
22
23
  export { AmountEntryFooter };
@@ -1 +1 @@
1
- "use client";import{useLingui as e}from"../../../../i18n/useLingui.js";import"../../../../../i18n/index.js";import{Button as t}from"../../../../ui/Button/Button.js";import"../../../../ui/Button/index.js";import{AMOUNT_ENTRY_SLOTS as n}from"../AmountEntry.slots.js";import{styles as r}from"../AmountEntry.styles.js";import{useAmountEntryContext as i}from"../context.js";import{jsx as a}from"react/jsx-runtime";import*as o from"@stylexjs/stylex";function s({label:s,onContinue:c}={}){let l=i(`AmountEntry.Footer`),{_:u}=e(),d=c??l.onContinue,f=s??l.footerLabel??u({id:`xGVfLh`,message:`Continue`}),p=typeof d==`function`;return a(`div`,{"data-stridge-slot":n.footer,...o.props(r.footer),children:a(t,{size:`cta`,onClick:p?d:void 0,...o.props(r.cta,p?r.ctaInteractive:r.ctaInert),children:f})})}export{s as AmountEntryFooter};
1
+ "use client";import{useLingui as e}from"../../../../i18n/useLingui.js";import"../../../../../i18n/index.js";import{Button as t}from"../../../../ui/Button/Button.js";import"../../../../ui/Button/index.js";import{AMOUNT_ENTRY_SLOTS as n}from"../AmountEntry.slots.js";import{styles as r}from"../AmountEntry.styles.js";import{useAmountEntryContext as i}from"../context.js";import{jsx as a,jsxs as o}from"react/jsx-runtime";import*as s from"@stylexjs/stylex";function c({label:c,onContinue:l,children:u}={}){let d=i(`AmountEntry.Footer`),{_:f}=e(),p=l??d.onContinue,m=c??d.footerLabel??f({id:`xGVfLh`,message:`Continue`}),h=typeof p==`function`;return o(`div`,{"data-stridge-slot":n.footer,...s.props(r.footer),children:[u,a(t,{size:`cta`,onClick:h?p:void 0,...s.props(r.cta,h?r.ctaInteractive:r.ctaInert),children:m})]})}export{c as AmountEntryFooter};
@@ -1,3 +1,3 @@
1
- import { AmountEntryBodyProps, AmountEntryDialogProps, AmountEntryFlowProps, AmountEntryFooterProps, AmountEntryHeaderProps, AmountEntryHeroProps, AmountEntryPercentPreset, AmountEntryPillsProps, AmountEntryProps, AmountEntryToken } from "./types.js";
1
+ import { AmountEntryBodyProps, AmountEntryDetailsProps, AmountEntryDetailsRowProps, AmountEntryDialogProps, AmountEntryFlowProps, AmountEntryFooterProps, AmountEntryHeaderProps, AmountEntryHeroProps, AmountEntryNoticeProps, AmountEntryPercentPreset, AmountEntryPillsProps, AmountEntryProps, AmountEntryToken } from "./types.js";
2
2
  import { AmountEntry } from "./AmountEntry.js";
3
3
  import { AMOUNT_ENTRY_SLOTS, AmountEntrySlot } from "./AmountEntry.slots.js";
@@ -229,6 +229,36 @@ interface AmountEntryFlowProps {
229
229
  */
230
230
  bridge?: ReactNode;
231
231
  }
232
+ /**
233
+ * Details part props — the card surface that hosts a labelled-value breakdown under the Pills row.
234
+ * Consumers pass {@link AmountEntryDetailsRow} children freely; the part owns layout, spacing, and
235
+ * the surrounding card chrome.
236
+ */
237
+ interface AmountEntryDetailsProps extends ComponentProps<"div"> {
238
+ children?: ReactNode;
239
+ }
240
+ /**
241
+ * Single row inside an {@link AmountEntryDetailsProps}-shaped card — a label on the start edge, an
242
+ * optional info-icon tooltip next to the label, and a value (passed as `children`) on the end
243
+ * edge. Renders inside the row's existing `<Tooltip.Provider>` (the AmountEntry root provides one),
244
+ * so `info` content is shown via a `<Tooltip.Root>` with no extra wiring.
245
+ */
246
+ interface AmountEntryDetailsRowProps extends ComponentProps<"div"> {
247
+ /** Label rendered on the start edge of the row. */
248
+ label: ReactNode;
249
+ /**
250
+ * Optional tooltip content for the info icon rendered next to the label. When omitted, no icon
251
+ * is rendered. Plain text or rich nodes both work.
252
+ */
253
+ info?: ReactNode;
254
+ /**
255
+ * Accessible label for the info-icon trigger. Defaults to `"More information"`. Override when
256
+ * the row's label alone doesn't disambiguate the row for screen readers.
257
+ */
258
+ infoLabel?: string;
259
+ /** The row's value (e.g. `"200.00 USD"`). Forwarded as the end-edge cell. */
260
+ children?: ReactNode;
261
+ }
232
262
  /**
233
263
  * Footer part props — owns the full-width primary Continue CTA.
234
264
  */
@@ -243,6 +273,12 @@ interface AmountEntryFooterProps {
243
273
  * `onContinue` set on the {@link AmountEntry} root.
244
274
  */
245
275
  onContinue?: () => void;
276
+ /**
277
+ * Optional nodes rendered above the CTA inside the footer's flex column. Useful when a
278
+ * validation hint (e.g. `<AmountEntry.Notice />`) should sit tight against the button rather
279
+ * than at the bottom of the body. Inherits the footer's `gap: 8px` for spacing.
280
+ */
281
+ children?: ReactNode;
246
282
  }
247
283
  //#endregion
248
- export { AmountEntryBodyProps, AmountEntryDialogProps, AmountEntryFlowProps, AmountEntryFooterProps, AmountEntryHeaderProps, AmountEntryHeroProps, AmountEntryNoticeProps, AmountEntryPercentPreset, AmountEntryPillsProps, AmountEntryProps, AmountEntryToken };
284
+ export { AmountEntryBodyProps, AmountEntryDetailsProps, AmountEntryDetailsRowProps, AmountEntryDialogProps, AmountEntryFlowProps, AmountEntryFooterProps, AmountEntryHeaderProps, AmountEntryHeroProps, AmountEntryNoticeProps, AmountEntryPercentPreset, AmountEntryPillsProps, AmountEntryProps, AmountEntryToken };
@@ -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{InfoIcon as n}from"../../../../icons/InfoIcon.js";import"../../../../../icons/index.js";import{Collapsible as r}from"../../../../ui/Collapsible/Collapsible.js";import"../../../../ui/Collapsible/index.js";import{Skeleton as i}from"../../../../ui/Skeleton/Skeleton.js";import"../../../../ui/Skeleton/index.js";import{text as a}from"../../../../ui/Text/Text.js";import{Tooltip as o}from"../../../../ui/Tooltip/Tooltip.js";import"../../../../ui/Tooltip/index.js";import"../../../../../ui/index.js";import{CONFIRM_TRANSFER_SLOTS as s}from"../ConfirmTransfer.slots.js";import{styles as c}from"../ConfirmTransfer.styles.js";import{useConfirmTransferContext as l}from"../context.js";import{useDirectionalChevronTransform as u}from"../../../../dialog/useDirectionalChevronTransform.js";import{useEffect as d,useState as f}from"react";import{jsx as p,jsxs as m}from"react/jsx-runtime";import*as h from"@stylexjs/stylex";const g=[`selectedRoute`,`networkCost`,`priceImpact`,`maxSlippage`];function _({label:t,defaultOpen:n=!1,open:o,onOpenChange:u}){let _=l(`ConfirmTransfer.Breakdown`),{_:b}=e(),S=t??b({id:`5joj8M`,message:`Transaction breakdown`}),{breakdown:C,loading:w}=_,[T,E]=f(o??n);d(()=>{o!==void 0&&E(o)},[o]);let D=w?!1:T;return m(r,{"data-stridge-slot":s.breakdown,open:D,onOpenChange:e=>{w||(E(e),u?.(e))},disabled:w,...h.props(c.section,c.breakdown),children:[p(r.Trigger,{render:(e,{open:t})=>m(`button`,{type:`button`,...e,children:[p(a.span,{size:`meta`,fontWeight:`medium`,leading:`tight`,tracking:`tight`,children:S}),w?p(i,{width:56,height:12}):p(x,{open:t})]}),"aria-label":S,disabled:w,...h.props(c.breakdownTrigger)}),p(r.Panel,{children:p(`div`,{...h.props(c.breakdownPanel),children:g.map(e=>{let t=v(e,C);return t?p(y,{...t},e):null})})})]})}function v(e,t){switch(e){case`selectedRoute`:return t.selectedRoute?{kind:`selectedRoute`,row:t.selectedRoute}:null;case`networkCost`:return t.networkCost?{kind:`networkCost`,row:t.networkCost}:null;case`priceImpact`:return t.priceImpact?{kind:`priceImpact`,row:t.priceImpact}:null;case`maxSlippage`:return t.maxSlippage?{kind:`maxSlippage`,row:t.maxSlippage}:null;default:return S(e)}}function y(t){let{_:n}=e(),{row:r}=t,i=b(t,e=>n({id:`KGoAE6`,message:`Auto · {value}`,values:{value:e}}));return m(`div`,{...h.props(c.breakdownRow),children:[m(`div`,{...h.props(c.breakdownLabelGroup),children:[p(a.span,{size:`xs`,fontWeight:`medium`,leading:`tight`,tracking:`tight`,color:`subdued`,children:r.label}),r.tooltip?p(C,{content:r.tooltip,label:r.label}):null]}),m(`div`,{...h.props(c.breakdownValueGroup),children:[r.valueAdornment,p(a.span,{size:`xs`,fontWeight:`semibold`,leading:`tight`,tracking:`tight`,children:i})]})]})}function b(e,t){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?t(e.row.valuePercent):e.row.valuePercent;default:return S(e)}}function x({open:e}){let n=u(e),r=h.props(c.breakdownChevron);return p(t,{"aria-hidden":!0,className:r.className,style:{...r.style,transform:n}})}function S(e){throw Error(`Unhandled breakdown row variant: ${JSON.stringify(e)}`)}function C({content:t,label:r}){let{_:i}=e();function a(e){e.stopPropagation()}return m(o.Root,{children:[p(o.Trigger,{"aria-label":i({id:`-tu7Q8`,message:`More about {0}`,values:{0:r.toLowerCase()}}),onClick:a,...h.props(c.breakdownInfoTrigger),children:p(n,{"aria-hidden":!0,...h.props(c.breakdownInfoIcon)})}),p(o.Content,{children:t})]})}export{_ 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{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};
@@ -49,6 +49,14 @@ declare function KitStorageProvider({
49
49
  * Throws when no `<KitProvider />` / `<KitStorageProvider />` is mounted above the caller.
50
50
  */
51
51
  declare function useKitStorage(): KitStorage;
52
+ /**
53
+ * Soft variant of {@link useKitStorage} — returns `null` when no `<KitProvider />` /
54
+ * `<KitStorageProvider />` is mounted above the caller. Mirrors the
55
+ * `useOptionalWagmi` precedent used by the kit's wagmi-optional posture: kit widgets
56
+ * mounted outside `<KitProvider />` (e.g. standalone `<Deposit />` in a host's own provider
57
+ * tree) should degrade gracefully rather than throw on a missing storage provider.
58
+ */
59
+ declare function useOptionalKitStorage(): KitStorage | null;
52
60
  /**
53
61
  * Reactively read the value at `key` from the kit's storage. Re-renders the calling component
54
62
  * whenever any kit-storage mutation lands on this `key`. Pass `null` for "no key yet" — the
@@ -59,4 +67,4 @@ declare function useKitStorage(): KitStorage;
59
67
  */
60
68
  declare function useKitStorageValue(key: string | null): string | null;
61
69
  //#endregion
62
- export { DEFAULT_KIT_STORAGE_NAMESPACE, KitStorageProvider, useKitStorage, useKitStorageValue };
70
+ export { DEFAULT_KIT_STORAGE_NAMESPACE, KitStorageProvider, useKitStorage, useKitStorageValue, useOptionalKitStorage };
@@ -1 +1 @@
1
- "use client";import{resolveStorageAdapter as e}from"./adapters.js";import{createKitStorage as t}from"./createKitStorage.js";import{createContext as n,use as r,useMemo as i,useSyncExternalStore as a}from"react";import{jsx as o}from"react/jsx-runtime";const s=`stridge-kit:storage:v1`,c=n(null);c.displayName=`KitStorageContext`;function l({storage:n=`session`,namespace:r=s,children:a}){let l=i(()=>t(e(n),r),[n,r]);return o(c.Provider,{value:l,children:a})}function u(){let e=r(c);if(e===null)throw Error(`useKitStorage must be used inside a <KitProvider /> or <KitStorageProvider />.`);return e}function d(e){let t=u();return a(t.subscribe,()=>e===null?null:t.get(e),()=>null)}export{s as DEFAULT_KIT_STORAGE_NAMESPACE,l as KitStorageProvider,u as useKitStorage,d as useKitStorageValue};
1
+ "use client";import{resolveStorageAdapter as e}from"./adapters.js";import{createKitStorage as t}from"./createKitStorage.js";import{createContext as n,use as r,useMemo as i,useSyncExternalStore as a}from"react";import{jsx as o}from"react/jsx-runtime";const s=`stridge-kit:storage:v1`,c=n(null);c.displayName=`KitStorageContext`;function l({storage:n=`session`,namespace:r=s,children:a}){let l=i(()=>t(e(n),r),[n,r]);return o(c.Provider,{value:l,children:a})}function u(){let e=r(c);if(e===null)throw Error(`useKitStorage must be used inside a <KitProvider /> or <KitStorageProvider />.`);return e}function d(){return r(c)}function f(e){let t=u();return a(t.subscribe,()=>e===null?null:t.get(e),()=>null)}export{s as DEFAULT_KIT_STORAGE_NAMESPACE,l as KitStorageProvider,u as useKitStorage,f as useKitStorageValue,d as useOptionalKitStorage};
@@ -1,4 +1,4 @@
1
1
  import { KitStorageAdapter, KitStoragePersistence } from "./types.js";
2
2
  import { createLocalStorageAdapter, createMemoryStorageAdapter, createSessionStorageAdapter, resolveStorageAdapter } from "./adapters.js";
3
3
  import { KitStorage, createKitStorage } from "./createKitStorage.js";
4
- import { DEFAULT_KIT_STORAGE_NAMESPACE, KitStorageProvider, useKitStorage, useKitStorageValue } from "./context.js";
4
+ import { DEFAULT_KIT_STORAGE_NAMESPACE, KitStorageProvider, useKitStorage, useKitStorageValue, useOptionalKitStorage } from "./context.js";
@@ -1 +1 @@
1
- const e=Object.freeze({status:`idle`}),t=Object.freeze({brand:e,target:e,addresses:e,balances:e,quote:e,settlement:e,wallet:e,activity:e}),n=Object.freeze({withdrawableBalances:e,receiveOptions:e,quote:e,settlement:e,activity:e}),r=()=>{};function i(){if(typeof DOMException==`function`)return new DOMException(`Aborted`,`AbortError`);let e=Error(`Aborted`);return e.name=`AbortError`,e}function a(e){return new Promise((t,n)=>{if(e.aborted){n(i());return}e.addEventListener(`abort`,()=>n(i()),{once:!0})})}function o(){return{getSnapshot:()=>t,subscribe:()=>r,arm:()=>{},requestQuote:(e,t)=>a(t),submitDeposit:(e,t)=>a(t),watchSettlement:()=>{},fetchActiveSettlement:async()=>null}}function s(){return{getSnapshot:()=>n,subscribe:()=>r,arm:()=>{},requestQuote:(e,t)=>a(t),prepareWithdrawal:(e,t)=>a(t),watchSettlement:()=>{}}}export{o as createStubDepositDriver,s as createStubWithdrawDriver};
1
+ const e=Object.freeze({status:`idle`}),t=Object.freeze({brand:e,target:e,addresses:e,balances:e,quote:e,settlement:e,wallet:e,cashMethods:e,activity:e}),n=Object.freeze({withdrawableBalances:e,receiveOptions:e,quote:e,settlement:e,activity:e}),r=()=>{};function i(){if(typeof DOMException==`function`)return new DOMException(`Aborted`,`AbortError`);let e=Error(`Aborted`);return e.name=`AbortError`,e}function a(e){return new Promise((t,n)=>{if(e.aborted){n(i());return}e.addEventListener(`abort`,()=>n(i()),{once:!0})})}function o(){return{getSnapshot:()=>t,subscribe:()=>r,arm:()=>{},requestQuote:(e,t)=>a(t),submitDeposit:(e,t)=>a(t),watchSettlement:()=>{},fetchActiveSettlement:async()=>null}}function s(){return{getSnapshot:()=>n,subscribe:()=>r,arm:()=>{},requestQuote:(e,t)=>a(t),prepareWithdrawal:(e,t)=>a(t),watchSettlement:()=>{}}}export{o as createStubDepositDriver,s as createStubWithdrawDriver};