@coinbase/cdp-react 0.0.23 → 0.0.25
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 -2
- 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 -0
- package/dist/assets/CoinbaseFooter.css +1 -0
- package/dist/assets/ExchangeAmountInput.css +1 -1
- package/dist/assets/Fund.css +1 -0
- package/dist/assets/FundAmountInput.css +1 -0
- package/dist/assets/FundErrorScreen.css +1 -0
- package/dist/assets/FundForm.css +1 -0
- package/dist/assets/FundModal.css +1 -0
- package/dist/assets/FundPaymentMethods.css +1 -0
- package/dist/assets/FundPresetAmountInputs.css +1 -0
- package/dist/assets/FundTitle.css +1 -0
- package/dist/assets/FundTransactionStatus.css +1 -0
- package/dist/assets/Input.css +1 -1
- package/dist/assets/Modal.css +1 -1
- package/dist/assets/Select.css +1 -0
- package/dist/assets/ThemeProvider.css +1 -1
- package/dist/components/Fund/FundForm.d.ts +18 -0
- package/dist/components/Fund/FundForm.js +156 -0
- package/dist/components/Fund/FundProvider.d.ts +6 -0
- package/dist/components/Fund/FundProvider.js +128 -0
- package/dist/components/Fund/FundTitle.d.ts +5 -0
- package/dist/components/Fund/FundTitle.js +17 -0
- package/dist/components/Fund/components/FundAmountInput.d.ts +5 -0
- package/dist/components/Fund/components/FundAmountInput.js +58 -0
- package/dist/components/Fund/components/FundErrorScreen.d.ts +6 -0
- package/dist/components/Fund/components/FundErrorScreen.js +118 -0
- package/dist/components/Fund/components/FundPaymentMethods.d.ts +6 -0
- package/dist/components/Fund/components/FundPaymentMethods.js +55 -0
- package/dist/components/Fund/components/FundPresetAmountInputs.d.ts +6 -0
- package/dist/components/Fund/components/FundPresetAmountInputs.js +41 -0
- package/dist/components/Fund/components/FundTransactionStatus.d.ts +8 -0
- package/dist/components/Fund/components/FundTransactionStatus.js +106 -0
- package/dist/components/Fund/hooks/useBuyUrl.d.ts +14 -0
- package/dist/components/Fund/hooks/useBuyUrl.js +65 -0
- package/dist/components/Fund/hooks/useEmitLifecycleStatus.d.ts +5 -0
- package/dist/components/Fund/hooks/useEmitLifecycleStatus.js +14 -0
- package/dist/components/Fund/hooks/useExchangeRate.d.ts +11 -0
- package/dist/components/Fund/hooks/useExchangeRate.js +62 -0
- package/dist/components/Fund/hooks/usePaymentMethods.d.ts +11 -0
- package/dist/components/Fund/hooks/usePaymentMethods.js +112 -0
- package/dist/components/Fund/hooks/usePopupMonitor.d.ts +3 -0
- package/dist/components/Fund/hooks/usePopupMonitor.js +17 -0
- package/dist/components/Fund/hooks/useSetupOnrampEventListeners.d.ts +1 -0
- package/dist/components/Fund/hooks/useSetupOnrampEventListeners.js +56 -0
- package/dist/components/Fund/index.d.ts +10 -0
- package/dist/components/Fund/index.js +30 -0
- package/dist/components/Fund/types.d.ts +218 -0
- package/dist/components/Fund/types.js +1 -0
- package/dist/components/Fund/useFundReducer.d.ts +9 -0
- package/dist/components/Fund/useFundReducer.js +104 -0
- package/dist/components/Fund/utils/buildPaymentMethods.d.ts +5 -0
- package/dist/components/Fund/utils/buildPaymentMethods.js +57 -0
- package/dist/components/Fund/utils/setupOnrampEventListeners.d.ts +9 -0
- package/dist/components/Fund/utils/setupOnrampEventListeners.js +19 -0
- package/dist/components/Fund/utils/subscribeToWindowMessage.d.ts +14 -0
- package/dist/components/Fund/utils/subscribeToWindowMessage.js +24 -0
- package/dist/components/FundModal/index.d.ts +9 -0
- package/dist/components/FundModal/index.js +92 -0
- package/dist/components/SignIn/SignInFooter.d.ts +1 -1
- package/dist/components/SignIn/SignInFooter.js +4 -15
- package/dist/components/forms/ExchangeAmountInput/index.js +93 -65
- package/dist/components/forms/ExchangeAmountInput/types.d.ts +2 -1
- package/dist/components/forms/ExchangeAmountInput/useExchangeAmountInput.js +42 -38
- package/dist/components/forms/Input/index.d.ts +6 -2
- package/dist/components/forms/Input/index.js +27 -12
- package/dist/components/forms/PhoneNumberInput/index.d.ts +2 -2
- package/dist/components/forms/Select/index.d.ts +21 -0
- package/dist/components/forms/Select/index.js +74 -0
- package/dist/components/ui/Button/index.d.ts +4 -5
- package/dist/components/ui/Button/index.js +35 -56
- package/dist/components/ui/ButtonBase/index.d.ts +8 -0
- package/dist/components/ui/ButtonBase/index.js +45 -0
- package/dist/components/ui/CoinbaseFooter/index.d.ts +2 -0
- package/dist/components/ui/CoinbaseFooter/index.js +19 -0
- package/dist/components/ui/LoadingSkeleton/index.d.ts +3 -2
- package/dist/components/ui/LoadingSkeleton/index.js +9 -15
- package/dist/components/ui/LoadingSpinner/index.d.ts +9 -2
- package/dist/components/ui/LoadingSpinner/index.js +39 -17
- package/dist/icons/IconAppleLogo.d.ts +2 -0
- package/dist/icons/IconAppleLogo.js +10 -0
- package/dist/icons/IconCheck.d.ts +2 -0
- package/dist/icons/IconCheck.js +14 -0
- package/dist/icons/IconChevronDown.d.ts +2 -0
- package/dist/icons/IconChevronDown.js +14 -0
- package/dist/icons/IconCoinbaseMark.d.ts +2 -0
- package/dist/icons/IconCoinbaseMark.js +13 -0
- package/dist/icons/IconCreditCard.d.ts +2 -0
- package/dist/icons/IconCreditCard.js +10 -0
- package/dist/icons/IconExclamationTriangle.d.ts +2 -0
- package/dist/icons/IconExclamationTriangle.js +14 -0
- package/dist/icons/index.d.ts +3 -0
- package/dist/icons/index.js +20 -14
- package/dist/index.d.ts +2 -0
- package/dist/index.js +86 -69
- package/dist/theme/theme.d.ts +120 -2
- package/dist/theme/tokens.d.ts +346 -0
- package/dist/theme/tokens.js +76 -8
- package/dist/utils/formatFiat.d.ts +1 -0
- package/dist/utils/formatFiat.js +13 -0
- package/dist/utils/openPopup.d.ts +7 -0
- package/dist/utils/openPopup.js +15 -0
- package/package.json +7 -6
- package/dist/assets/SignInFooter.css +0 -1
|
@@ -1,75 +1,54 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { forwardRef as
|
|
1
|
+
import { jsx as t, jsxs as c, Fragment as p } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as u } from "react";
|
|
3
|
+
import { ButtonBase as k } from "../ButtonBase/index.js";
|
|
3
4
|
import { LoadingSpinner as B } from "../LoadingSpinner/index.js";
|
|
4
|
-
import { VisuallyHidden as
|
|
5
|
+
import { VisuallyHidden as b } from "../VisuallyHidden/index.js";
|
|
5
6
|
import "../../../theme/theme.js";
|
|
6
|
-
import '../../../assets/Button.css';const f = "Button-module__btn___Wj6Dr",
|
|
7
|
+
import '../../../assets/Button.css';const f = "Button-module__btn___Wj6Dr", S = "Button-module__primary___WGT--", h = "Button-module__secondary___Fx0LJ", r = {
|
|
7
8
|
btn: f,
|
|
8
|
-
"size-lg": "Button-module__size-lg___WlcVE",
|
|
9
|
-
"size-md": "Button-module__size-md___-SMmD",
|
|
10
|
-
"size-sm": "Button-module__size-sm___Vnrq6",
|
|
11
9
|
"link-primary": "Button-module__link-primary___6Zgkh",
|
|
12
10
|
"link-secondary": "Button-module__link-secondary___S0Qdo",
|
|
13
|
-
primary:
|
|
14
|
-
secondary:
|
|
11
|
+
primary: S,
|
|
12
|
+
secondary: h,
|
|
15
13
|
"transparent-primary": "Button-module__transparent-primary___iwWv5",
|
|
16
|
-
"transparent-secondary": "Button-module__transparent-secondary___GfRXu"
|
|
17
|
-
|
|
14
|
+
"transparent-secondary": "Button-module__transparent-secondary___GfRXu",
|
|
15
|
+
"control-btn": "Button-module__control-btn___9Gkoz"
|
|
16
|
+
}, a = {
|
|
17
|
+
primary: r.primary,
|
|
18
|
+
secondary: r.secondary,
|
|
19
|
+
linkPrimary: r["link-primary"],
|
|
20
|
+
linkSecondary: r["link-secondary"],
|
|
21
|
+
transparentPrimary: r["transparent-primary"],
|
|
22
|
+
transparentSecondary: r["transparent-secondary"],
|
|
23
|
+
control: r["control-btn"]
|
|
24
|
+
}, x = u(
|
|
18
25
|
({
|
|
19
|
-
children:
|
|
20
|
-
className:
|
|
21
|
-
isPending:
|
|
22
|
-
pendingLabel:
|
|
23
|
-
size:
|
|
26
|
+
children: e,
|
|
27
|
+
className: i = "",
|
|
28
|
+
isPending: o,
|
|
29
|
+
pendingLabel: s = "Loading...",
|
|
30
|
+
size: m = "md",
|
|
24
31
|
variant: n = "primary",
|
|
25
32
|
..._
|
|
26
33
|
}, d) => {
|
|
27
|
-
const
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
switch (t) {
|
|
31
|
-
case "lg":
|
|
32
|
-
return r["size-lg"];
|
|
33
|
-
case "md":
|
|
34
|
-
return r["size-md"];
|
|
35
|
-
case "sm":
|
|
36
|
-
return r["size-sm"];
|
|
37
|
-
default:
|
|
38
|
-
return r["size-lg"];
|
|
39
|
-
}
|
|
40
|
-
}, [t, n]), l = a(() => {
|
|
41
|
-
switch (n) {
|
|
42
|
-
case "primary":
|
|
43
|
-
return r.primary;
|
|
44
|
-
case "secondary":
|
|
45
|
-
return r.secondary;
|
|
46
|
-
case "linkPrimary":
|
|
47
|
-
return r["link-primary"];
|
|
48
|
-
case "linkSecondary":
|
|
49
|
-
return r["link-secondary"];
|
|
50
|
-
case "transparentPrimary":
|
|
51
|
-
return r["transparent-primary"];
|
|
52
|
-
case "transparentSecondary":
|
|
53
|
-
return r["transparent-secondary"];
|
|
54
|
-
default:
|
|
55
|
-
return r.primary;
|
|
56
|
-
}
|
|
57
|
-
}, [n]);
|
|
58
|
-
return /* @__PURE__ */ e(
|
|
59
|
-
"button",
|
|
34
|
+
const y = n === "linkPrimary" || n === "linkSecondary" ? "none" : m, l = a[n] ?? a.primary;
|
|
35
|
+
return /* @__PURE__ */ t(
|
|
36
|
+
k,
|
|
60
37
|
{
|
|
61
|
-
className: `${r.btn} ${
|
|
38
|
+
className: `${r.btn} ${l} ${i}`,
|
|
62
39
|
ref: d,
|
|
40
|
+
isPending: o,
|
|
41
|
+
size: y,
|
|
63
42
|
..._,
|
|
64
|
-
children:
|
|
65
|
-
/* @__PURE__ */
|
|
66
|
-
/* @__PURE__ */
|
|
67
|
-
] }) :
|
|
43
|
+
children: o ? /* @__PURE__ */ c(p, { children: [
|
|
44
|
+
/* @__PURE__ */ t(B, { "aria-hidden": "true" }),
|
|
45
|
+
/* @__PURE__ */ t(b, { children: s })
|
|
46
|
+
] }) : e
|
|
68
47
|
}
|
|
69
48
|
);
|
|
70
49
|
}
|
|
71
50
|
);
|
|
72
|
-
|
|
51
|
+
x.displayName = "Button";
|
|
73
52
|
export {
|
|
74
|
-
|
|
53
|
+
x as Button
|
|
75
54
|
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ButtonHTMLAttributes } from 'react';
|
|
2
|
+
import { ButtonSize } from '../../../theme/theme';
|
|
3
|
+
export interface ButtonBaseProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
4
|
+
fullWidth?: boolean;
|
|
5
|
+
isPending?: boolean;
|
|
6
|
+
size?: ButtonSize;
|
|
7
|
+
}
|
|
8
|
+
export declare const ButtonBase: import('react').ForwardRefExoticComponent<ButtonBaseProps & import('react').RefAttributes<HTMLButtonElement>>;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { jsx as d } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as B, useMemo as r } from "react";
|
|
3
|
+
import "../../../theme/theme.js";
|
|
4
|
+
import '../../../assets/ButtonBase.css';const z = "ButtonBase-module__btn___9S8PJ", s = {
|
|
5
|
+
btn: z,
|
|
6
|
+
"full-width": "ButtonBase-module__full-width___vLJsn",
|
|
7
|
+
"size-lg": "ButtonBase-module__size-lg___569jT",
|
|
8
|
+
"size-md": "ButtonBase-module__size-md___sAsBJ",
|
|
9
|
+
"size-sm": "ButtonBase-module__size-sm___xHCtU",
|
|
10
|
+
"size-xs": "ButtonBase-module__size-xs___LiiO7"
|
|
11
|
+
}, _ = {
|
|
12
|
+
lg: s["size-lg"],
|
|
13
|
+
md: s["size-md"],
|
|
14
|
+
sm: s["size-sm"],
|
|
15
|
+
xs: s["size-xs"],
|
|
16
|
+
none: ""
|
|
17
|
+
}, c = B(
|
|
18
|
+
({
|
|
19
|
+
children: n,
|
|
20
|
+
className: m = "",
|
|
21
|
+
fullWidth: t = !1,
|
|
22
|
+
isPending: i,
|
|
23
|
+
size: o = "md",
|
|
24
|
+
...u
|
|
25
|
+
}, a) => {
|
|
26
|
+
const l = r(() => {
|
|
27
|
+
const e = [s.btn];
|
|
28
|
+
return e.push(_[o] ?? _.md), t && e.push(s["full-width"]), e.join(" ");
|
|
29
|
+
}, [t, o]);
|
|
30
|
+
return /* @__PURE__ */ d(
|
|
31
|
+
"button",
|
|
32
|
+
{
|
|
33
|
+
className: `${l} ${m}`,
|
|
34
|
+
ref: a,
|
|
35
|
+
"data-pending": i,
|
|
36
|
+
...u,
|
|
37
|
+
children: n
|
|
38
|
+
}
|
|
39
|
+
);
|
|
40
|
+
}
|
|
41
|
+
);
|
|
42
|
+
c.displayName = "ButtonBase";
|
|
43
|
+
export {
|
|
44
|
+
c as ButtonBase
|
|
45
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { jsxs as s, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import { IconCoinbaseWordmark as c } from "../../../icons/IconCoinbaseWordmark.js";
|
|
4
|
+
import { IconLock as i } from "../../../icons/IconLock.js";
|
|
5
|
+
import '../../../assets/CoinbaseFooter.css';const r = "CoinbaseFooter-module__footer___d0ToM", a = "CoinbaseFooter-module__text___dmxyS", _ = "CoinbaseFooter-module__icon___3-qMm", o = {
|
|
6
|
+
footer: r,
|
|
7
|
+
text: a,
|
|
8
|
+
icon: _,
|
|
9
|
+
"coinbase-icon": "CoinbaseFooter-module__coinbase-icon___Ws6HN"
|
|
10
|
+
}, x = ({ className: n = "", ...t }) => /* @__PURE__ */ s("div", { className: `${o.footer} ${n}`, ...t, children: [
|
|
11
|
+
/* @__PURE__ */ e(i, { className: o.icon }),
|
|
12
|
+
/* @__PURE__ */ s("p", { className: o.text, children: [
|
|
13
|
+
/* @__PURE__ */ e("span", { children: "Secured by " }),
|
|
14
|
+
/* @__PURE__ */ e(c, { className: o["coinbase-icon"], "aria-label": "Coinbase" })
|
|
15
|
+
] })
|
|
16
|
+
] });
|
|
17
|
+
export {
|
|
18
|
+
x as CoinbaseFooter
|
|
19
|
+
};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { CSSProperties, ElementType } from 'react';
|
|
1
|
+
import { CSSProperties, ElementType, ReactNode } from 'react';
|
|
2
2
|
interface LoadingSkeletonProps {
|
|
3
3
|
as?: ElementType;
|
|
4
4
|
className?: string;
|
|
5
5
|
style?: CSSProperties;
|
|
6
|
+
children?: ReactNode;
|
|
6
7
|
}
|
|
7
|
-
export declare const LoadingSkeleton: ({ as: Component, className, style, }: LoadingSkeletonProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare const LoadingSkeleton: ({ as: Component, children, className, style, }: LoadingSkeletonProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
9
|
export {};
|
|
@@ -1,19 +1,13 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import '../../../assets/LoadingSkeleton.css';const
|
|
4
|
-
loading:
|
|
5
|
-
},
|
|
3
|
+
import '../../../assets/LoadingSkeleton.css';const i = "LoadingSkeleton-module__loading___kqndV", t = {
|
|
4
|
+
loading: i
|
|
5
|
+
}, r = ({
|
|
6
6
|
as: o = "div",
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
{
|
|
12
|
-
"aria-hidden": "true",
|
|
13
|
-
className: `${i.loading} ${n}`,
|
|
14
|
-
style: a
|
|
15
|
-
}
|
|
16
|
-
);
|
|
7
|
+
children: n,
|
|
8
|
+
className: a = "",
|
|
9
|
+
style: d
|
|
10
|
+
}) => /* @__PURE__ */ e(o, { "aria-hidden": "true", className: `${t.loading} ${a}`, style: d, children: n });
|
|
17
11
|
export {
|
|
18
|
-
|
|
12
|
+
r as LoadingSkeleton
|
|
19
13
|
};
|
|
@@ -1,3 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
2
|
+
interface LoadingSpinnerProps {
|
|
2
3
|
className?: string;
|
|
3
|
-
|
|
4
|
+
staticStroke?: boolean;
|
|
5
|
+
staticStrokeColor?: string;
|
|
6
|
+
strokeWidth?: string | number;
|
|
7
|
+
style?: CSSProperties;
|
|
8
|
+
}
|
|
9
|
+
export declare const LoadingSpinner: ({ className, staticStroke, staticStrokeColor, strokeWidth, style, }: LoadingSpinnerProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -1,8 +1,15 @@
|
|
|
1
|
-
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
3
|
-
|
|
1
|
+
import { jsx as n, jsxs as s } from "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import '../../../assets/LoadingSpinner.css';const p = "LoadingSpinner-module__spinner___-zo6Y", i = {
|
|
4
|
+
spinner: p,
|
|
4
5
|
"spinner-circle": "LoadingSpinner-module__spinner-circle___9Jfm7"
|
|
5
|
-
},
|
|
6
|
+
}, g = ({
|
|
7
|
+
className: o,
|
|
8
|
+
staticStroke: c,
|
|
9
|
+
staticStrokeColor: r = "currentColor",
|
|
10
|
+
strokeWidth: e = "3",
|
|
11
|
+
style: l
|
|
12
|
+
}) => /* @__PURE__ */ n(
|
|
6
13
|
"svg",
|
|
7
14
|
{
|
|
8
15
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -12,20 +19,35 @@ import '../../../assets/LoadingSpinner.css';const r = "LoadingSpinner-module__sp
|
|
|
12
19
|
width: "24",
|
|
13
20
|
height: "24",
|
|
14
21
|
stroke: "currentColor",
|
|
15
|
-
className:
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
22
|
+
className: o,
|
|
23
|
+
style: l,
|
|
24
|
+
children: /* @__PURE__ */ s("g", { className: i.spinner, children: [
|
|
25
|
+
c && /* @__PURE__ */ n(
|
|
26
|
+
"circle",
|
|
27
|
+
{
|
|
28
|
+
cx: "12",
|
|
29
|
+
cy: "12",
|
|
30
|
+
r: "9.5",
|
|
31
|
+
fill: "none",
|
|
32
|
+
strokeWidth: e,
|
|
33
|
+
stroke: r,
|
|
34
|
+
opacity: r === "currentColor" ? "0.2" : void 0
|
|
35
|
+
}
|
|
36
|
+
),
|
|
37
|
+
/* @__PURE__ */ n(
|
|
38
|
+
"circle",
|
|
39
|
+
{
|
|
40
|
+
className: i["spinner-circle"],
|
|
41
|
+
cx: "12",
|
|
42
|
+
cy: "12",
|
|
43
|
+
r: "9.5",
|
|
44
|
+
fill: "none",
|
|
45
|
+
strokeWidth: e
|
|
46
|
+
}
|
|
47
|
+
)
|
|
48
|
+
] })
|
|
27
49
|
}
|
|
28
50
|
);
|
|
29
51
|
export {
|
|
30
|
-
|
|
52
|
+
g as LoadingSpinner
|
|
31
53
|
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { jsxs as r, jsx as C } from "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import { SvgIcon as t } from "./SvgIcon.js";
|
|
4
|
+
const h = (o) => /* @__PURE__ */ r(t, { width: "14", height: "16", viewBox: "0 0 14 16", fill: "currentColor", ...o, children: [
|
|
5
|
+
/* @__PURE__ */ C("path", { d: "M10.0787 0C10.1159 0 10.1532 0 10.1925 0C10.2839 1.12836 9.85317 1.97146 9.32974 2.58201C8.81615 3.18834 8.11286 3.77641 6.97537 3.68718C6.89949 2.57498 7.33088 1.79441 7.8536 1.18527C8.33839 0.617575 9.22716 0.112414 10.0787 0Z" }),
|
|
6
|
+
/* @__PURE__ */ C("path", { d: "M13.5221 11.7446C13.5221 11.7558 13.5221 11.7657 13.5221 11.7762C13.2025 12.7444 12.7465 13.5741 12.19 14.3442C11.6821 15.0432 11.0596 15.984 9.94808 15.984C8.98765 15.984 8.3497 15.3664 7.36537 15.3496C6.32414 15.3327 5.75153 15.866 4.79952 16.0002C4.69062 16.0002 4.58172 16.0002 4.47493 16.0002C3.77585 15.899 3.21167 15.3454 2.80066 14.8465C1.5887 13.3725 0.652147 11.4685 0.477905 9.0319C0.477905 8.79302 0.477905 8.55485 0.477905 8.31597C0.551677 6.57215 1.399 5.15432 2.52525 4.46719C3.11963 4.10185 3.93674 3.7906 4.84659 3.92971C5.23653 3.99014 5.6349 4.12363 5.98408 4.25571C6.315 4.38288 6.72883 4.60841 7.12087 4.59647C7.38645 4.58874 7.65062 4.45033 7.91831 4.35267C8.7024 4.06953 9.47103 3.74493 10.4842 3.89739C11.7017 4.08147 12.5659 4.62246 13.0999 5.45714C12.0699 6.11265 11.2556 7.10049 11.3947 8.7874C11.5184 10.3197 12.4092 11.2162 13.5221 11.7446Z" })
|
|
7
|
+
] });
|
|
8
|
+
export {
|
|
9
|
+
h as IconAppleLogo
|
|
10
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import { SvgIcon as l } from "./SvgIcon.js";
|
|
4
|
+
const n = (e) => /* @__PURE__ */ o(l, { viewBox: "0 0 16 16", width: "16", height: "16", fill: "currentColor", ...e, children: /* @__PURE__ */ o(
|
|
5
|
+
"path",
|
|
6
|
+
{
|
|
7
|
+
fillRule: "evenodd",
|
|
8
|
+
d: "M12.416 3.376a.75.75 0 0 1 .208 1.04l-5 7.5a.75.75 0 0 1-1.154.114l-3-3a.75.75 0 0 1 1.06-1.06l2.353 2.353 4.493-6.74a.75.75 0 0 1 1.04-.207Z",
|
|
9
|
+
clipRule: "evenodd"
|
|
10
|
+
}
|
|
11
|
+
) });
|
|
12
|
+
export {
|
|
13
|
+
n as IconCheck
|
|
14
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import { SvgIcon as r } from "./SvgIcon.js";
|
|
4
|
+
const t = (e) => /* @__PURE__ */ o(r, { viewBox: "0 0 16 16", fill: "currentColor", width: "16", height: "16", ...e, children: /* @__PURE__ */ o(
|
|
5
|
+
"path",
|
|
6
|
+
{
|
|
7
|
+
fillRule: "evenodd",
|
|
8
|
+
d: "M4.22 6.22a.75.75 0 0 1 1.06 0L8 8.94l2.72-2.72a.75.75 0 1 1 1.06 1.06l-3.25 3.25a.75.75 0 0 1-1.06 0L4.22 7.28a.75.75 0 0 1 0-1.06Z",
|
|
9
|
+
clipRule: "evenodd"
|
|
10
|
+
}
|
|
11
|
+
) });
|
|
12
|
+
export {
|
|
13
|
+
t as IconChevronDown
|
|
14
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import { SvgIcon as r } from "./SvgIcon.js";
|
|
4
|
+
const e = (i) => /* @__PURE__ */ o(r, { width: "16", height: "17", viewBox: "0 0 16 17", fill: "none", ...i, children: /* @__PURE__ */ o(
|
|
5
|
+
"path",
|
|
6
|
+
{
|
|
7
|
+
d: "M8.01503 12.5C5.80088 12.5 4.00751 10.6354 4.00751 8.33333C4.00751 6.03125 5.80088 4.16667 8.01503 4.16667C9.99875 4.16667 11.6452 5.67014 11.9624 7.63889H16C15.6594 3.36111 12.2162 0 8.01503 0C3.59006 0 0 3.73264 0 8.33333C0 12.934 3.59006 16.6667 8.01503 16.6667C12.2162 16.6667 15.6594 13.3056 16 9.02778H11.9624C11.6452 10.9965 9.99875 12.5 8.01503 12.5Z",
|
|
8
|
+
fill: "#0052ff"
|
|
9
|
+
}
|
|
10
|
+
) });
|
|
11
|
+
export {
|
|
12
|
+
e as IconCoinbaseMark
|
|
13
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { jsxs as t, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import { SvgIcon as i } from "./SvgIcon.js";
|
|
4
|
+
const d = (o) => /* @__PURE__ */ t(i, { width: "14", height: "16", viewBox: "0 0 14 16", fill: "currentColor", ...o, children: [
|
|
5
|
+
/* @__PURE__ */ r("path", { d: "M0.477905 2.33301V12.9997H13.5221V2.33301H0.477905ZM12.1634 3.99967V5.33301H1.83668V3.99967H12.1634ZM1.83668 11.333V7.66634H12.1634V11.333H1.83668Z" }),
|
|
6
|
+
/* @__PURE__ */ r("path", { d: "M2.65195 8.66634H7.00003V9.66634H2.65195V8.66634Z" })
|
|
7
|
+
] });
|
|
8
|
+
export {
|
|
9
|
+
d as IconCreditCard
|
|
10
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import { SvgIcon as l } from "./SvgIcon.js";
|
|
4
|
+
const n = (e) => /* @__PURE__ */ o(l, { viewBox: "0 0 16 16", width: "16", height: "16", fill: "currentColor", ...e, children: /* @__PURE__ */ o(
|
|
5
|
+
"path",
|
|
6
|
+
{
|
|
7
|
+
fillRule: "evenodd",
|
|
8
|
+
d: "M6.701 2.25c.577-1 2.02-1 2.598 0l5.196 9a1.5 1.5 0 0 1-1.299 2.25H2.804a1.5 1.5 0 0 1-1.3-2.25l5.197-9ZM8 4a.75.75 0 0 1 .75.75v3a.75.75 0 1 1-1.5 0v-3A.75.75 0 0 1 8 4Zm0 8a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z",
|
|
9
|
+
clipRule: "evenodd"
|
|
10
|
+
}
|
|
11
|
+
) });
|
|
12
|
+
export {
|
|
13
|
+
n as IconExclamationTriangle
|
|
14
|
+
};
|
package/dist/icons/index.d.ts
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
export * from './IconArrowLeft';
|
|
2
2
|
export * from './IconArrowsUpDown';
|
|
3
|
+
export * from './IconCheck';
|
|
3
4
|
export * from './IconCheckCircle';
|
|
5
|
+
export * from './IconChevronDown';
|
|
4
6
|
export * from './IconEnvelope';
|
|
5
7
|
export * from './IconExclamationCircle';
|
|
8
|
+
export * from './IconExclamationTriangle';
|
|
6
9
|
export * from './IconLock';
|
|
7
10
|
export * from './IconPhone';
|
|
8
11
|
export * from './IconXMark';
|
package/dist/icons/index.js
CHANGED
|
@@ -1,18 +1,24 @@
|
|
|
1
1
|
import { IconArrowLeft as e } from "./IconArrowLeft.js";
|
|
2
|
-
import { IconArrowsUpDown as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
2
|
+
import { IconArrowsUpDown as c } from "./IconArrowsUpDown.js";
|
|
3
|
+
import { IconCheck as m } from "./IconCheck.js";
|
|
4
|
+
import { IconCheckCircle as x } from "./IconCheckCircle.js";
|
|
5
|
+
import { IconChevronDown as I } from "./IconChevronDown.js";
|
|
6
|
+
import { IconEnvelope as l } from "./IconEnvelope.js";
|
|
7
|
+
import { IconExclamationCircle as C } from "./IconExclamationCircle.js";
|
|
8
|
+
import { IconExclamationTriangle as k } from "./IconExclamationTriangle.js";
|
|
9
|
+
import { IconLock as E } from "./IconLock.js";
|
|
10
|
+
import { IconPhone as A } from "./IconPhone.js";
|
|
11
|
+
import { IconXMark as L } from "./IconXMark.js";
|
|
9
12
|
export {
|
|
10
13
|
e as IconArrowLeft,
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
I as
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
14
|
+
c as IconArrowsUpDown,
|
|
15
|
+
m as IconCheck,
|
|
16
|
+
x as IconCheckCircle,
|
|
17
|
+
I as IconChevronDown,
|
|
18
|
+
l as IconEnvelope,
|
|
19
|
+
C as IconExclamationCircle,
|
|
20
|
+
k as IconExclamationTriangle,
|
|
21
|
+
E as IconLock,
|
|
22
|
+
A as IconPhone,
|
|
23
|
+
L as IconXMark
|
|
18
24
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export * from './components/CDPReactProvider';
|
|
2
2
|
export * from './components/AuthButton';
|
|
3
|
+
export * from './components/Fund';
|
|
4
|
+
export * from './components/FundModal';
|
|
3
5
|
export * from './components/SendTransactionButton';
|
|
4
6
|
export * from './components/SignIn';
|
|
5
7
|
export * from './components/SignOutButton';
|