@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.
- package/README.md +2 -1
- package/dist/assets/AmountInput.css +1 -1
- package/dist/assets/AuthButton.css +1 -1
- package/dist/assets/Button.css +1 -1
- package/dist/assets/ButtonBase.css +1 -1
- package/dist/assets/Error.css +1 -1
- package/dist/assets/Field.css +1 -1
- package/dist/assets/Fund.css +1 -1
- package/dist/assets/FundPaymentMethods.css +1 -1
- package/dist/assets/Input.css +1 -1
- package/dist/assets/Modal.css +1 -1
- package/dist/assets/PhoneNumberInput.css +1 -1
- package/dist/assets/Select.css +1 -1
- package/dist/assets/SendEvmTransactionButton.css +1 -0
- package/dist/assets/SendSolanaTransactionButton.css +1 -0
- package/dist/assets/SignIn.css +1 -1
- package/dist/assets/SuccessMessage.css +1 -1
- package/dist/components/CDPReactProvider/index.js +26 -26
- package/dist/components/Fund/FundProvider.js +78 -74
- package/dist/components/Fund/hooks/useBuyUrl.d.ts +1 -2
- package/dist/components/Fund/hooks/useBuyUrl.js +23 -23
- package/dist/components/Fund/types.d.ts +2 -1
- package/dist/components/{SendTransactionButton → SendEvmTransactionButton}/index.d.ts +2 -2
- package/dist/components/SendEvmTransactionButton/index.js +67 -0
- package/dist/components/SendSolanaTransactionButton/index.d.ts +13 -0
- package/dist/components/SendSolanaTransactionButton/index.js +67 -0
- package/dist/components/SignIn/SignInForm.js +38 -24
- package/dist/components/ui/SwitchTransition/index.js +65 -65
- package/dist/index.d.ts +2 -1
- package/dist/index.js +88 -81
- package/dist/theme/index.js +14 -9
- package/dist/theme/theme.d.ts +116 -18
- package/dist/theme/tokens.d.ts +321 -39
- package/dist/theme/tokens.js +117 -25
- package/dist/theme/utils.d.ts +6 -3
- package/dist/theme/utils.js +16 -18
- package/package.json +5 -5
- package/dist/assets/SendTransactionButton.css +0 -1
- 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
|
|
2
|
-
import { useRef as
|
|
3
|
-
import { useAppConfig as
|
|
4
|
-
import { SwitchFadeTransition as
|
|
5
|
-
import { a as
|
|
6
|
-
import { useSignInContext as
|
|
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
|
|
8
|
+
import '../../assets/SignInForm.css';const E = {
|
|
9
9
|
"auth-method-wrapper": "SignInForm-module__auth-method-wrapper___uIOAB"
|
|
10
|
-
},
|
|
11
|
-
onSuccess:
|
|
12
|
-
step:
|
|
13
|
-
children:
|
|
14
|
-
...
|
|
10
|
+
}, B = ({
|
|
11
|
+
onSuccess: l,
|
|
12
|
+
step: f,
|
|
13
|
+
children: M,
|
|
14
|
+
...g
|
|
15
15
|
}) => {
|
|
16
|
-
const { state:
|
|
17
|
-
return
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
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:
|
|
38
|
+
items: w,
|
|
25
39
|
initialEntered: !0,
|
|
26
|
-
transitionRef:
|
|
27
|
-
...
|
|
28
|
-
children: ({ itemKey:
|
|
29
|
-
const
|
|
30
|
-
return /* @__PURE__ */
|
|
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
|
-
|
|
50
|
+
B as SignInForm
|
|
37
51
|
};
|
|
@@ -1,106 +1,106 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
3
|
-
import { useTransitionMap as
|
|
4
|
-
import '../../../assets/SwitchTransition.css';const
|
|
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
|
-
},
|
|
6
|
+
}, V = (b) => {
|
|
7
7
|
const {
|
|
8
|
-
children:
|
|
8
|
+
children: n,
|
|
9
9
|
index: d,
|
|
10
|
-
itemKey:
|
|
10
|
+
itemKey: r,
|
|
11
11
|
initialEntered: l,
|
|
12
12
|
setItem: u,
|
|
13
13
|
deleteItem: f,
|
|
14
|
-
stateMap:
|
|
15
|
-
transitionName:
|
|
16
|
-
parentKey:
|
|
17
|
-
} =
|
|
18
|
-
|
|
19
|
-
f(
|
|
20
|
-
}), [
|
|
21
|
-
const { isEnter:
|
|
22
|
-
return I ?
|
|
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: !
|
|
25
|
-
itemKey:
|
|
26
|
-
"data-transition":
|
|
24
|
+
inert: !m,
|
|
25
|
+
itemKey: r,
|
|
26
|
+
"data-transition": y,
|
|
27
27
|
"data-status": x,
|
|
28
|
-
"data-is-enter":
|
|
28
|
+
"data-is-enter": m,
|
|
29
29
|
"data-is-resolved": w,
|
|
30
|
-
"data-parent":
|
|
30
|
+
"data-parent": p
|
|
31
31
|
}) : null;
|
|
32
|
-
},
|
|
33
|
-
allowMultiple:
|
|
34
|
-
animateHeight:
|
|
32
|
+
}, Z = ({
|
|
33
|
+
allowMultiple: b,
|
|
34
|
+
animateHeight: n,
|
|
35
35
|
autoFocus: d,
|
|
36
|
-
initialEntered:
|
|
36
|
+
initialEntered: r,
|
|
37
37
|
as: l = "div",
|
|
38
38
|
children: u,
|
|
39
39
|
className: f = "",
|
|
40
|
-
enter:
|
|
41
|
-
exit:
|
|
42
|
-
items:
|
|
43
|
-
mountOnEnter:
|
|
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:
|
|
47
|
+
style: q,
|
|
48
48
|
timeout: e = 200,
|
|
49
49
|
transitionName: T,
|
|
50
|
-
transitionRef:
|
|
51
|
-
unmountOnExit:
|
|
50
|
+
transitionRef: z,
|
|
51
|
+
unmountOnExit: L,
|
|
52
52
|
...$
|
|
53
53
|
}) => {
|
|
54
|
-
const
|
|
55
|
-
allowMultiple:
|
|
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:
|
|
58
|
-
unmountOnExit:
|
|
57
|
+
mountOnEnter: m,
|
|
58
|
+
unmountOnExit: L,
|
|
59
59
|
preEnter: w,
|
|
60
60
|
preExit: x,
|
|
61
|
-
enter:
|
|
62
|
-
exit:
|
|
61
|
+
enter: v,
|
|
62
|
+
exit: y,
|
|
63
63
|
timeout: e,
|
|
64
64
|
onStateChange: I
|
|
65
65
|
});
|
|
66
|
-
|
|
67
|
-
transition:
|
|
66
|
+
J(z, () => ({
|
|
67
|
+
transition: n || d ? {
|
|
68
68
|
...o,
|
|
69
69
|
toggle: (t) => {
|
|
70
|
-
o.toggle(t),
|
|
70
|
+
o.toggle(t), A(t);
|
|
71
71
|
}
|
|
72
72
|
} : o
|
|
73
|
-
})),
|
|
74
|
-
if (!
|
|
73
|
+
})), j(() => {
|
|
74
|
+
if (!n)
|
|
75
75
|
return;
|
|
76
76
|
let t = null;
|
|
77
|
-
const
|
|
78
|
-
if (!
|
|
77
|
+
const i = g.current;
|
|
78
|
+
if (!i)
|
|
79
79
|
return;
|
|
80
80
|
const c = setTimeout(() => {
|
|
81
|
-
const a =
|
|
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((
|
|
88
|
-
for (const
|
|
89
|
-
const
|
|
90
|
-
C(
|
|
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
|
-
}, [
|
|
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
|
|
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
|
-
|
|
115
|
+
i && clearTimeout(i);
|
|
116
116
|
};
|
|
117
117
|
}, [d, E, s, e]);
|
|
118
|
-
const K = /* @__PURE__ */
|
|
119
|
-
|
|
118
|
+
const K = /* @__PURE__ */ h(G, { children: p.map((t, i) => /* @__PURE__ */ h(
|
|
119
|
+
V,
|
|
120
120
|
{
|
|
121
|
-
index:
|
|
121
|
+
index: i,
|
|
122
122
|
itemKey: t,
|
|
123
123
|
setItem: o.setItem,
|
|
124
124
|
deleteItem: o.deleteItem,
|
|
125
125
|
stateMap: o.stateMap,
|
|
126
|
-
initialEntered:
|
|
126
|
+
initialEntered: r ? N.current === t : void 0,
|
|
127
127
|
transitionName: T,
|
|
128
128
|
parentKey: s,
|
|
129
129
|
children: u
|
|
130
130
|
},
|
|
131
|
-
|
|
131
|
+
t
|
|
132
132
|
)) });
|
|
133
|
-
return /* @__PURE__ */
|
|
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":
|
|
141
|
-
className: `${
|
|
140
|
+
"data-animate-height": n,
|
|
141
|
+
className: `${U["transition-wrapper"]} ${f}`,
|
|
142
142
|
style: {
|
|
143
|
-
...
|
|
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":
|
|
147
|
+
"--cdp-web-transition-height": n && S ? `${S}px` : void 0
|
|
148
148
|
},
|
|
149
|
-
children:
|
|
149
|
+
children: n ? /* @__PURE__ */ h("div", { children: K }) : K
|
|
150
150
|
}
|
|
151
151
|
);
|
|
152
152
|
};
|
|
153
153
|
export {
|
|
154
|
-
|
|
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/
|
|
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 {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
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
|
-
|
|
49
|
+
bo as FundForm,
|
|
49
50
|
s as FundModal,
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
l as
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
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
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
97
|
+
wo as useFundContext,
|
|
98
|
+
Go as useSignInContext,
|
|
99
|
+
C as useSignInReducer,
|
|
100
|
+
b as useTheme
|
|
94
101
|
};
|
package/dist/theme/index.js
CHANGED
|
@@ -1,16 +1,21 @@
|
|
|
1
1
|
import { cssVariables as r } from "./cssVariables.js";
|
|
2
2
|
import { theme as t } from "./theme.js";
|
|
3
|
-
import {
|
|
4
|
-
import { flattenTokensObject as
|
|
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
|
|
7
|
-
|
|
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
|
-
|
|
12
|
+
p as colorsSemantic,
|
|
10
13
|
r as cssVariables,
|
|
11
|
-
|
|
12
|
-
|
|
14
|
+
R as flattenTokensObject,
|
|
15
|
+
b as font,
|
|
16
|
+
d as fontComponents,
|
|
17
|
+
x as fontSemantic,
|
|
13
18
|
t as theme,
|
|
14
|
-
|
|
15
|
-
|
|
19
|
+
S as themeToCssVariables,
|
|
20
|
+
C as tokens
|
|
16
21
|
};
|