@coinbase/cdp-react 0.0.37 → 0.0.39

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 (39) hide show
  1. package/README.md +2 -1
  2. package/dist/assets/AmountInput.css +1 -1
  3. package/dist/assets/AuthButton.css +1 -1
  4. package/dist/assets/Button.css +1 -1
  5. package/dist/assets/ButtonBase.css +1 -1
  6. package/dist/assets/Error.css +1 -1
  7. package/dist/assets/Field.css +1 -1
  8. package/dist/assets/Fund.css +1 -1
  9. package/dist/assets/FundPaymentMethods.css +1 -1
  10. package/dist/assets/Input.css +1 -1
  11. package/dist/assets/Modal.css +1 -1
  12. package/dist/assets/PhoneNumberInput.css +1 -1
  13. package/dist/assets/Select.css +1 -1
  14. package/dist/assets/SendEvmTransactionButton.css +1 -0
  15. package/dist/assets/SendSolanaTransactionButton.css +1 -0
  16. package/dist/assets/SignIn.css +1 -1
  17. package/dist/assets/SuccessMessage.css +1 -1
  18. package/dist/components/CDPReactProvider/index.js +26 -26
  19. package/dist/components/Fund/FundProvider.js +78 -74
  20. package/dist/components/Fund/hooks/useBuyUrl.d.ts +1 -2
  21. package/dist/components/Fund/hooks/useBuyUrl.js +23 -23
  22. package/dist/components/Fund/types.d.ts +2 -1
  23. package/dist/components/{SendTransactionButton → SendEvmTransactionButton}/index.d.ts +2 -2
  24. package/dist/components/SendEvmTransactionButton/index.js +67 -0
  25. package/dist/components/SendSolanaTransactionButton/index.d.ts +13 -0
  26. package/dist/components/SendSolanaTransactionButton/index.js +67 -0
  27. package/dist/components/SignIn/SignInForm.js +38 -24
  28. package/dist/components/ui/SwitchTransition/index.js +65 -65
  29. package/dist/index.d.ts +2 -1
  30. package/dist/index.js +88 -81
  31. package/dist/theme/index.js +14 -9
  32. package/dist/theme/theme.d.ts +116 -18
  33. package/dist/theme/tokens.d.ts +321 -39
  34. package/dist/theme/tokens.js +117 -25
  35. package/dist/theme/utils.d.ts +6 -3
  36. package/dist/theme/utils.js +16 -18
  37. package/package.json +5 -5
  38. package/dist/assets/SendTransactionButton.css +0 -1
  39. package/dist/components/SendTransactionButton/index.js +0 -67
@@ -0,0 +1,13 @@
1
+ import { APIError, SendSolanaTransactionOptions } from '@coinbase/cdp-hooks';
2
+ import { ButtonHTMLAttributes, ReactNode } from 'react';
3
+ import { ButtonVariant } from '../../theme/theme';
4
+ export interface SendSolanaTransactionButtonProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, "onError"> {
5
+ account: SendSolanaTransactionOptions["solanaAccount"];
6
+ network: SendSolanaTransactionOptions["network"];
7
+ onError?: (error: APIError | Error) => void;
8
+ onSuccess?: (signature: string) => void;
9
+ pendingLabel?: ReactNode;
10
+ transaction: SendSolanaTransactionOptions["transaction"];
11
+ variant?: ButtonVariant;
12
+ }
13
+ export declare const SendSolanaTransactionButton: ({ account, children, className, network, onClick, onError, onSuccess, pendingLabel, transaction, variant, ...props }: SendSolanaTransactionButtonProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,67 @@
1
+ import { jsx as y } from "react/jsx-runtime";
2
+ import { useSendSolanaTransaction as T, APIError as _ } from "@coinbase/cdp-hooks";
3
+ import { useState as w, useCallback as B } from "react";
4
+ import { Button as E } from "../ui/Button/index.js";
5
+ import "../../theme/theme.js";
6
+ import { getMessageFromUnknownError as x } from "../../utils/getMessageFromUnknownError.js";
7
+ import '../../assets/SendSolanaTransactionButton.css';const P = {
8
+ "send-solana-transaction-button": "SendSolanaTransactionButton-module__send-solana-transaction-button___OxwvB"
9
+ }, q = ({
10
+ account: t,
11
+ children: d,
12
+ className: f = "",
13
+ network: s,
14
+ onClick: r,
15
+ onError: e,
16
+ onSuccess: i,
17
+ pendingLabel: u,
18
+ transaction: o,
19
+ variant: p = "primary",
20
+ ...S
21
+ }) => {
22
+ const [g, l] = w(!1), { sendSolanaTransaction: c } = T(), h = B(
23
+ async (m) => {
24
+ m.preventDefault(), r?.(m);
25
+ try {
26
+ if (!t || !s || !o) {
27
+ const n = [];
28
+ throw t || n.push("account"), s || n.push("network"), o || n.push("transaction"), new Error(`Missing required parameters: ${n.join(", ")}`);
29
+ }
30
+ l(!0);
31
+ const { transactionSignature: a } = await c({
32
+ transaction: o,
33
+ solanaAccount: t,
34
+ network: s
35
+ });
36
+ i?.(a);
37
+ } catch (a) {
38
+ let n;
39
+ if (a instanceof _ || a instanceof Error)
40
+ n = a;
41
+ else {
42
+ const b = x(a);
43
+ n = new Error(b);
44
+ }
45
+ e?.(n);
46
+ } finally {
47
+ l(!1);
48
+ }
49
+ },
50
+ [t, s, r, e, i, c, o]
51
+ );
52
+ return /* @__PURE__ */ y(
53
+ E,
54
+ {
55
+ className: `${P["send-solana-transaction-button"]} ${f}`,
56
+ isPending: g,
57
+ pendingLabel: u || "Sending transaction...",
58
+ onClick: h,
59
+ variant: p,
60
+ ...S,
61
+ children: d || "Send transaction"
62
+ }
63
+ );
64
+ };
65
+ export {
66
+ q as SendSolanaTransactionButton
67
+ };
@@ -1,37 +1,51 @@
1
- import { jsx as e } from "react/jsx-runtime";
2
- import { useRef as s, useLayoutEffect as g } from "react";
3
- import { useAppConfig as M } from "../CDPReactProvider/index.js";
4
- import { SwitchFadeTransition as w } from "../ui/SwitchFadeTransition/index.js";
5
- import { a as _ } from "../../chunks/index.BzllgVaP.js";
6
- import { useSignInContext as F } from "./SignInProvider.js";
1
+ import { jsx as a } from "react/jsx-runtime";
2
+ import { useRef as d, useState as _, useLayoutEffect as p } from "react";
3
+ import { useAppConfig as I } from "../CDPReactProvider/index.js";
4
+ import { SwitchFadeTransition as T } from "../ui/SwitchFadeTransition/index.js";
5
+ import { a as y } from "../../chunks/index.BzllgVaP.js";
6
+ import { useSignInContext as v } from "./SignInProvider.js";
7
7
  import "@coinbase/cdp-hooks";
8
- import '../../assets/SignInForm.css';const I = {
8
+ import '../../assets/SignInForm.css';const E = {
9
9
  "auth-method-wrapper": "SignInForm-module__auth-method-wrapper___uIOAB"
10
- }, T = ({
11
- onSuccess: a,
12
- step: u,
13
- children: h,
14
- ...m
10
+ }, B = ({
11
+ onSuccess: l,
12
+ step: f,
13
+ children: M,
14
+ ...g
15
15
  }) => {
16
- const { state: t } = F(), { authMethods: p } = M(), c = u || t.step, o = s(t.authMethod), r = s(null);
17
- return g(() => {
18
- o.current !== t.authMethod && (r.current?.transition.toggle(t.authMethod), o.current = t.authMethod);
19
- }, [t.authMethod]), /* @__PURE__ */ e(
20
- w,
16
+ const { state: o, dispatch: c } = v(), { authMethods: e } = I(), S = f || o.step, m = d(o.authMethod), i = d(e), u = d(null), [w, A] = _(e || []);
17
+ return p(() => {
18
+ let t = o.authMethod;
19
+ const r = !e?.includes(o.authMethod), n = i.current && i.current.length === e?.length && i.current.some((h, s) => h !== e?.[s]);
20
+ if ((r || n) && (t = e?.[0]), t && t !== o.authMethod) {
21
+ c({
22
+ type: "SET_AUTH_METHOD",
23
+ payload: { authMethod: t }
24
+ });
25
+ return;
26
+ }
27
+ u.current?.transition && t && m.current !== t && (u.current.transition.toggle(t), m.current = t);
28
+ }, [e, c, o.authMethod]), p(() => {
29
+ i.current = e, A((t) => {
30
+ const r = e?.filter((n) => !t.includes(n)) || [];
31
+ return r.length ? [...t, ...r] : t;
32
+ });
33
+ }, [e]), /* @__PURE__ */ a(
34
+ T,
21
35
  {
22
36
  animateHeight: !0,
23
37
  timeout: 250,
24
- items: p || ["email"],
38
+ items: w,
25
39
  initialEntered: !0,
26
- transitionRef: r,
27
- ...m,
28
- children: ({ itemKey: n, ...d }) => {
29
- const f = _[n].forms;
30
- return /* @__PURE__ */ e("div", { ...d, className: I["auth-method-wrapper"], children: /* @__PURE__ */ e(f, { step: c, onSuccess: a, children: ({ step: l, Form: i }) => h?.({ step: l, authMethod: n, Form: i }) || i }) });
40
+ transitionRef: u,
41
+ ...g,
42
+ children: ({ itemKey: t, ...r }) => {
43
+ const n = y[t].forms;
44
+ return /* @__PURE__ */ a("div", { ...r, className: E["auth-method-wrapper"], children: /* @__PURE__ */ a(n, { step: S, onSuccess: l, children: ({ step: h, Form: s }) => M?.({ step: h, authMethod: t, Form: s }) || s }) });
31
45
  }
32
46
  }
33
47
  );
34
48
  };
35
49
  export {
36
- T as SignInForm
50
+ B as SignInForm
37
51
  };
@@ -1,106 +1,106 @@
1
- import { jsx as m, Fragment as B } from "react/jsx-runtime";
2
- import { useId as D, useState as R, useRef as F, useImperativeHandle as G, useLayoutEffect as _, useEffect as H } from "react";
3
- import { useTransitionMap as J } from "react-transition-state";
4
- import '../../../assets/SwitchTransition.css';const P = {
1
+ import { jsx as h, Fragment as G } from "react/jsx-runtime";
2
+ import { useRef as R, useId as H, useState as _, useImperativeHandle as J, useLayoutEffect as j, useEffect as P } from "react";
3
+ import { useTransitionMap as Q } from "react-transition-state";
4
+ import '../../../assets/SwitchTransition.css';const U = {
5
5
  "transition-wrapper": "SwitchTransition-module__transition-wrapper___jrI35"
6
- }, Q = (h) => {
6
+ }, V = (b) => {
7
7
  const {
8
- children: r,
8
+ children: n,
9
9
  index: d,
10
- itemKey: i,
10
+ itemKey: r,
11
11
  initialEntered: l,
12
12
  setItem: u,
13
13
  deleteItem: f,
14
- stateMap: b,
15
- transitionName: v,
16
- parentKey: y
17
- } = h;
18
- H(() => (u(i, { initialEntered: l }), () => {
19
- f(i);
20
- }), [i, l, u, f]);
21
- const { isEnter: p, isMounted: I, isResolved: w, status: x } = b.get(i) || {};
22
- return I ? r({
14
+ stateMap: v,
15
+ transitionName: y,
16
+ parentKey: p
17
+ } = b;
18
+ P(() => (u(r, { initialEntered: l }), () => {
19
+ f(r);
20
+ }), [r, l, u, f]);
21
+ const { isEnter: m, isMounted: I, isResolved: w, status: x } = v.get(r) || {};
22
+ return I ? n({
23
23
  "data-index": d,
24
- inert: !p,
25
- itemKey: i,
26
- "data-transition": v,
24
+ inert: !m,
25
+ itemKey: r,
26
+ "data-transition": y,
27
27
  "data-status": x,
28
- "data-is-enter": p,
28
+ "data-is-enter": m,
29
29
  "data-is-resolved": w,
30
- "data-parent": y
30
+ "data-parent": p
31
31
  }) : null;
32
- }, X = ({
33
- allowMultiple: h,
34
- animateHeight: r,
32
+ }, Z = ({
33
+ allowMultiple: b,
34
+ animateHeight: n,
35
35
  autoFocus: d,
36
- initialEntered: i,
36
+ initialEntered: r,
37
37
  as: l = "div",
38
38
  children: u,
39
39
  className: f = "",
40
- enter: b,
41
- exit: v,
42
- items: y,
43
- mountOnEnter: p,
40
+ enter: v,
41
+ exit: y,
42
+ items: p,
43
+ mountOnEnter: m,
44
44
  onStateChange: I,
45
45
  preEnter: w,
46
46
  preExit: x,
47
- style: j,
47
+ style: q,
48
48
  timeout: e = 200,
49
49
  transitionName: T,
50
- transitionRef: q,
51
- unmountOnExit: z,
50
+ transitionRef: z,
51
+ unmountOnExit: L,
52
52
  ...$
53
53
  }) => {
54
- const L = D(), s = $.id || L, [E, N] = R(null), [S, C] = R(null), g = F(null), o = J({
55
- allowMultiple: h,
54
+ const N = R(p[0]), O = H(), s = $.id || O, [E, A] = _(null), [S, C] = _(null), g = R(null), o = Q({
55
+ allowMultiple: b,
56
56
  initialEntered: !1,
57
- mountOnEnter: p,
58
- unmountOnExit: z,
57
+ mountOnEnter: m,
58
+ unmountOnExit: L,
59
59
  preEnter: w,
60
60
  preExit: x,
61
- enter: b,
62
- exit: v,
61
+ enter: v,
62
+ exit: y,
63
63
  timeout: e,
64
64
  onStateChange: I
65
65
  });
66
- G(q, () => ({
67
- transition: r || d ? {
66
+ J(z, () => ({
67
+ transition: n || d ? {
68
68
  ...o,
69
69
  toggle: (t) => {
70
- o.toggle(t), N(t);
70
+ o.toggle(t), A(t);
71
71
  }
72
72
  } : o
73
- })), _(() => {
74
- if (!r)
73
+ })), j(() => {
74
+ if (!n)
75
75
  return;
76
76
  let t = null;
77
- const n = g.current;
78
- if (!n)
77
+ const i = g.current;
78
+ if (!i)
79
79
  return;
80
80
  const c = setTimeout(() => {
81
- const a = n.querySelector(
81
+ const a = i.querySelector(
82
82
  `[data-is-enter="true"][data-parent="${s}"]`
83
83
  );
84
84
  if (!a)
85
85
  return;
86
86
  const M = a?.scrollHeight ?? null;
87
- M !== null && C(M), t = new ResizeObserver((O) => {
88
- for (const k of O) {
89
- const A = k.contentRect.height;
90
- C(A);
87
+ M !== null && C(M), t = new ResizeObserver((B) => {
88
+ for (const D of B) {
89
+ const F = D.contentRect.height;
90
+ C(F);
91
91
  }
92
92
  }), t.observe(a);
93
93
  }, 0);
94
94
  return () => {
95
95
  c && clearTimeout(c), t?.disconnect();
96
96
  };
97
- }, [r, E, s]), _(() => {
97
+ }, [n, E, s]), j(() => {
98
98
  if (!d)
99
99
  return;
100
100
  const t = typeof e == "number" ? e : e.enter;
101
101
  if (t === void 0)
102
102
  return;
103
- const n = setTimeout(() => {
103
+ const i = setTimeout(() => {
104
104
  const c = g.current?.querySelector(
105
105
  `[data-is-enter="true"][data-parent="${s}"]`
106
106
  );
@@ -112,44 +112,44 @@ import '../../../assets/SwitchTransition.css';const P = {
112
112
  a && a.focus();
113
113
  }, t);
114
114
  return () => {
115
- n && clearTimeout(n);
115
+ i && clearTimeout(i);
116
116
  };
117
117
  }, [d, E, s, e]);
118
- const K = /* @__PURE__ */ m(B, { children: y.map((t, n) => /* @__PURE__ */ m(
119
- Q,
118
+ const K = /* @__PURE__ */ h(G, { children: p.map((t, i) => /* @__PURE__ */ h(
119
+ V,
120
120
  {
121
- index: n,
121
+ index: i,
122
122
  itemKey: t,
123
123
  setItem: o.setItem,
124
124
  deleteItem: o.deleteItem,
125
125
  stateMap: o.stateMap,
126
- initialEntered: i ? n === 0 : void 0,
126
+ initialEntered: r ? N.current === t : void 0,
127
127
  transitionName: T,
128
128
  parentKey: s,
129
129
  children: u
130
130
  },
131
- n
131
+ t
132
132
  )) });
133
- return /* @__PURE__ */ m(
133
+ return /* @__PURE__ */ h(
134
134
  l,
135
135
  {
136
136
  ...$,
137
137
  id: s,
138
138
  ref: g,
139
139
  "data-transition": T || void 0,
140
- "data-animate-height": r,
141
- className: `${P["transition-wrapper"]} ${f}`,
140
+ "data-animate-height": n,
141
+ className: `${U["transition-wrapper"]} ${f}`,
142
142
  style: {
143
- ...j,
143
+ ...q,
144
144
  "--cdp-web-transition-enter-timeout": typeof e == "object" ? `${e.enter ?? 200}ms` : void 0,
145
145
  "--cdp-web-transition-exit-timeout": typeof e == "object" ? `${e.exit ?? 200}ms` : void 0,
146
146
  "--cdp-web-transition-timeout": typeof e == "number" ? `${e}ms` : void 0,
147
- "--cdp-web-transition-height": r && S ? `${S}px` : void 0
147
+ "--cdp-web-transition-height": n && S ? `${S}px` : void 0
148
148
  },
149
- children: r ? /* @__PURE__ */ m("div", { children: K }) : K
149
+ children: n ? /* @__PURE__ */ h("div", { children: K }) : K
150
150
  }
151
151
  );
152
152
  };
153
153
  export {
154
- X as SwitchTransition
154
+ Z as SwitchTransition
155
155
  };
package/dist/index.d.ts CHANGED
@@ -2,7 +2,8 @@ export * from './components/CDPReactProvider';
2
2
  export * from './components/AuthButton';
3
3
  export * from './components/Fund';
4
4
  export * from './components/FundModal';
5
- export * from './components/SendTransactionButton';
5
+ export * from './components/SendEvmTransactionButton';
6
+ export * from './components/SendSolanaTransactionButton';
6
7
  export * from './components/SignIn';
7
8
  export * from './components/SignOutButton';
8
9
  export * from './components/SignInModal';
package/dist/index.js CHANGED
@@ -2,93 +2,100 @@ import { AUTH_METHODS as e, CDPReactProvider as t, useAppConfig as n } from "./c
2
2
  import { AuthButton as p } from "./components/AuthButton/index.js";
3
3
  import { Fund as x, FundFooter as i } from "./components/Fund/index.js";
4
4
  import { FundModal as s } from "./components/FundModal/index.js";
5
- import { SendTransactionButton as I } from "./components/SendTransactionButton/index.js";
6
- import { SignIn as l } from "./components/SignIn/index.js";
7
- import { useSignInReducer as S } from "./components/SignIn/useSignInReducer.js";
8
- import { SignOutButton as h } from "./components/SignOutButton/index.js";
9
- import { SignInModal as C } from "./components/SignInModal/index.js";
10
- import { ThemeProvider as k, useTheme as A } from "./components/ThemeProvider/index.js";
11
- import { cssVariables as E } from "./theme/cssVariables.js";
12
- import { theme as v } from "./theme/theme.js";
13
- import { colors as D, colorsBase as P, colorsComponents as b, colorsSemantic as O, font as U, tokens as V } from "./theme/tokens.js";
14
- import { flattenTokensObject as L, themeToCssVariables as R } from "./theme/utils.js";
15
- import { IconArrowLeft as N } from "./icons/IconArrowLeft.js";
16
- import { IconArrowsUpDown as _ } from "./icons/IconArrowsUpDown.js";
17
- import { IconCheck as y } from "./icons/IconCheck.js";
18
- import { IconCheckCircle as G } from "./icons/IconCheckCircle.js";
19
- import { IconChevronDown as K } from "./icons/IconChevronDown.js";
20
- import { IconEnvelope as W } from "./icons/IconEnvelope.js";
21
- import { IconExclamationCircle as Z } from "./icons/IconExclamationCircle.js";
22
- import { IconExclamationTriangle as oo } from "./icons/IconExclamationTriangle.js";
23
- import { IconLock as eo } from "./icons/IconLock.js";
24
- import { IconPhone as no } from "./icons/IconPhone.js";
25
- import { IconXMark as po } from "./icons/IconXMark.js";
26
- import { clamp as xo } from "./utils/clamp.js";
27
- import { getMessageFromUnknownError as co } from "./utils/getMessageFromUnknownError.js";
28
- import { isApiError as ao } from "./utils/isApiError.js";
29
- import { isEmailInvalid as uo } from "./utils/isEmailInvalid.js";
30
- import { parseValuesFromPhoneNumber as go } from "./utils/parseValuesFromPhoneNumber.js";
31
- import { FundForm as ho } from "./components/Fund/FundForm.js";
32
- import { FundTitle as Co } from "./components/Fund/FundTitle.js";
33
- import { useFundContext as ko } from "./components/Fund/FundProvider.js";
34
- import { SignInAuthMethodButtons as Bo } from "./components/SignIn/SignInAuthMethodButtons.js";
35
- import { SignInBackButton as Mo } from "./components/SignIn/SignInBackButton.js";
36
- import { SignInDescription as wo } from "./components/SignIn/SignInDescription.js";
37
- import { SignInFooter as Po } from "./components/SignIn/SignInFooter.js";
38
- import { SignInForm as Oo } from "./components/SignIn/SignInForm.js";
39
- import { SignInImage as Vo } from "./components/SignIn/SignInImage.js";
40
- import { SignInTitle as Lo } from "./components/SignIn/SignInTitle.js";
41
- import { useSignInContext as jo } from "./components/SignIn/SignInProvider.js";
5
+ import { SendEvmTransactionButton as u } from "./components/SendEvmTransactionButton/index.js";
6
+ import { SendSolanaTransactionButton as l } from "./components/SendSolanaTransactionButton/index.js";
7
+ import { SignIn as S } from "./components/SignIn/index.js";
8
+ import { useSignInReducer as C } from "./components/SignIn/useSignInReducer.js";
9
+ import { SignOutButton as F } from "./components/SignOutButton/index.js";
10
+ import { SignInModal as k } from "./components/SignInModal/index.js";
11
+ import { ThemeProvider as E, useTheme as b } from "./components/ThemeProvider/index.js";
12
+ import { cssVariables as v } from "./theme/cssVariables.js";
13
+ import { theme as w } from "./theme/theme.js";
14
+ import { borderRadius as P, borderRadiusComponents as R, borderRadiusSemantic as O, colors as U, colorsBase as V, colorsComponents as H, colorsSemantic as L, font as j, fontComponents as N, fontSemantic as X, tokens as _ } from "./theme/tokens.js";
15
+ import { flattenTokensObject as y, themeToCssVariables as z } from "./theme/utils.js";
16
+ import { IconArrowLeft as J } from "./icons/IconArrowLeft.js";
17
+ import { IconArrowsUpDown as Q } from "./icons/IconArrowsUpDown.js";
18
+ import { IconCheck as Y } from "./icons/IconCheck.js";
19
+ import { IconCheckCircle as $ } from "./icons/IconCheckCircle.js";
20
+ import { IconChevronDown as ro } from "./icons/IconChevronDown.js";
21
+ import { IconEnvelope as to } from "./icons/IconEnvelope.js";
22
+ import { IconExclamationCircle as mo } from "./icons/IconExclamationCircle.js";
23
+ import { IconExclamationTriangle as fo } from "./icons/IconExclamationTriangle.js";
24
+ import { IconLock as io } from "./icons/IconLock.js";
25
+ import { IconPhone as so } from "./icons/IconPhone.js";
26
+ import { IconXMark as uo } from "./icons/IconXMark.js";
27
+ import { clamp as lo } from "./utils/clamp.js";
28
+ import { getMessageFromUnknownError as go } from "./utils/getMessageFromUnknownError.js";
29
+ import { isApiError as ho } from "./utils/isApiError.js";
30
+ import { isEmailInvalid as To } from "./utils/isEmailInvalid.js";
31
+ import { parseValuesFromPhoneNumber as Bo } from "./utils/parseValuesFromPhoneNumber.js";
32
+ import { FundForm as bo } from "./components/Fund/FundForm.js";
33
+ import { FundTitle as vo } from "./components/Fund/FundTitle.js";
34
+ import { useFundContext as wo } from "./components/Fund/FundProvider.js";
35
+ import { SignInAuthMethodButtons as Po } from "./components/SignIn/SignInAuthMethodButtons.js";
36
+ import { SignInBackButton as Oo } from "./components/SignIn/SignInBackButton.js";
37
+ import { SignInDescription as Vo } from "./components/SignIn/SignInDescription.js";
38
+ import { SignInFooter as Lo } from "./components/SignIn/SignInFooter.js";
39
+ import { SignInForm as No } from "./components/SignIn/SignInForm.js";
40
+ import { SignInImage as _o } from "./components/SignIn/SignInImage.js";
41
+ import { SignInTitle as yo } from "./components/SignIn/SignInTitle.js";
42
+ import { useSignInContext as Go } from "./components/SignIn/SignInProvider.js";
42
43
  export {
43
44
  e as AUTH_METHODS,
44
45
  p as AuthButton,
45
46
  t as CDPReactProvider,
46
47
  x as Fund,
47
48
  i as FundFooter,
48
- ho as FundForm,
49
+ bo as FundForm,
49
50
  s as FundModal,
50
- Co as FundTitle,
51
- N as IconArrowLeft,
52
- _ as IconArrowsUpDown,
53
- y as IconCheck,
54
- G as IconCheckCircle,
55
- K as IconChevronDown,
56
- W as IconEnvelope,
57
- Z as IconExclamationCircle,
58
- oo as IconExclamationTriangle,
59
- eo as IconLock,
60
- no as IconPhone,
61
- po as IconXMark,
62
- I as SendTransactionButton,
63
- l as SignIn,
64
- Bo as SignInAuthMethodButtons,
65
- Mo as SignInBackButton,
66
- wo as SignInDescription,
67
- Po as SignInFooter,
68
- Oo as SignInForm,
69
- Vo as SignInImage,
70
- C as SignInModal,
71
- Lo as SignInTitle,
72
- h as SignOutButton,
73
- k as ThemeProvider,
74
- xo as clamp,
75
- D as colors,
76
- P as colorsBase,
77
- b as colorsComponents,
78
- O as colorsSemantic,
79
- E as cssVariables,
80
- L as flattenTokensObject,
81
- U as font,
82
- co as getMessageFromUnknownError,
83
- ao as isApiError,
84
- uo as isEmailInvalid,
85
- go as parseValuesFromPhoneNumber,
86
- v as theme,
87
- R as themeToCssVariables,
88
- V as tokens,
51
+ vo as FundTitle,
52
+ J as IconArrowLeft,
53
+ Q as IconArrowsUpDown,
54
+ Y as IconCheck,
55
+ $ as IconCheckCircle,
56
+ ro as IconChevronDown,
57
+ to as IconEnvelope,
58
+ mo as IconExclamationCircle,
59
+ fo as IconExclamationTriangle,
60
+ io as IconLock,
61
+ so as IconPhone,
62
+ uo as IconXMark,
63
+ u as SendEvmTransactionButton,
64
+ l as SendSolanaTransactionButton,
65
+ S as SignIn,
66
+ Po as SignInAuthMethodButtons,
67
+ Oo as SignInBackButton,
68
+ Vo as SignInDescription,
69
+ Lo as SignInFooter,
70
+ No as SignInForm,
71
+ _o as SignInImage,
72
+ k as SignInModal,
73
+ yo as SignInTitle,
74
+ F as SignOutButton,
75
+ E as ThemeProvider,
76
+ P as borderRadius,
77
+ R as borderRadiusComponents,
78
+ O as borderRadiusSemantic,
79
+ lo as clamp,
80
+ U as colors,
81
+ V as colorsBase,
82
+ H as colorsComponents,
83
+ L as colorsSemantic,
84
+ v as cssVariables,
85
+ y as flattenTokensObject,
86
+ j as font,
87
+ N as fontComponents,
88
+ X as fontSemantic,
89
+ go as getMessageFromUnknownError,
90
+ ho as isApiError,
91
+ To as isEmailInvalid,
92
+ Bo as parseValuesFromPhoneNumber,
93
+ w as theme,
94
+ z as themeToCssVariables,
95
+ _ as tokens,
89
96
  n as useAppConfig,
90
- ko as useFundContext,
91
- jo as useSignInContext,
92
- S as useSignInReducer,
93
- A as useTheme
97
+ wo as useFundContext,
98
+ Go as useSignInContext,
99
+ C as useSignInReducer,
100
+ b as useTheme
94
101
  };
@@ -1,16 +1,21 @@
1
1
  import { cssVariables as r } from "./cssVariables.js";
2
2
  import { theme as t } from "./theme.js";
3
- import { colors as a, colorsBase as c, colorsComponents as l, colorsSemantic as n, font as f, tokens as p } from "./tokens.js";
4
- import { flattenTokensObject as b, themeToCssVariables as i } from "./utils.js";
3
+ import { borderRadius as a, borderRadiusComponents as m, borderRadiusSemantic as c, colors as f, colorsBase as i, colorsComponents as l, colorsSemantic as p, font as b, fontComponents as d, fontSemantic as x, tokens as C } from "./tokens.js";
4
+ import { flattenTokensObject as R, themeToCssVariables as S } from "./utils.js";
5
5
  export {
6
- a as colors,
7
- c as colorsBase,
6
+ a as borderRadius,
7
+ m as borderRadiusComponents,
8
+ c as borderRadiusSemantic,
9
+ f as colors,
10
+ i as colorsBase,
8
11
  l as colorsComponents,
9
- n as colorsSemantic,
12
+ p as colorsSemantic,
10
13
  r as cssVariables,
11
- b as flattenTokensObject,
12
- f as font,
14
+ R as flattenTokensObject,
15
+ b as font,
16
+ d as fontComponents,
17
+ x as fontSemantic,
13
18
  t as theme,
14
- i as themeToCssVariables,
15
- p as tokens
19
+ S as themeToCssVariables,
20
+ C as tokens
16
21
  };