@coinbase/cdp-react 0.0.18 → 0.0.19
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/dist/assets/Button.css +1 -1
- package/dist/assets/EmailForm.css +1 -0
- package/dist/assets/Error.css +1 -1
- package/dist/assets/Field.css +1 -1
- package/dist/assets/FlowEmailOTP.css +1 -0
- package/dist/assets/FlowPhoneNumberOTP.css +1 -0
- package/dist/assets/Input.css +1 -1
- package/dist/assets/Label.css +1 -0
- package/dist/assets/OTP.css +1 -1
- package/dist/assets/OTPForm.css +1 -0
- package/dist/assets/PhoneNumberForm.css +1 -0
- package/dist/assets/PhoneNumberInput.css +1 -0
- package/dist/assets/SignIn.css +1 -1
- package/dist/assets/SignInAuthMethodButtons.css +1 -0
- package/dist/assets/SignInBackButton.css +1 -0
- package/dist/assets/SignInCredentials.css +1 -0
- package/dist/assets/SignInDescription.css +1 -1
- package/dist/assets/SignInFooter.css +1 -0
- package/dist/assets/SignInForm.css +1 -1
- package/dist/assets/SignInImage.css +1 -1
- package/dist/assets/SignInModal.css +1 -1
- package/dist/assets/SignInTitle.css +1 -1
- package/dist/assets/SuccessMessage.css +1 -0
- package/dist/assets/SwitchFadeTransition.css +1 -0
- package/dist/assets/SwitchSlideTransition.css +1 -0
- package/dist/assets/SwitchTransition.css +1 -0
- package/dist/assets/ThemeProvider.css +1 -1
- package/dist/chunks/index.BzllgVaP.js +12 -0
- package/dist/components/AuthButton/index.js +1 -1
- package/dist/components/Button/index.d.ts +2 -1
- package/dist/components/Button/index.js +47 -22
- package/dist/components/CDPReactProvider/index.d.ts +3 -0
- package/dist/components/CDPReactProvider/index.js +20 -13
- package/dist/components/EmailForm/index.d.ts +11 -0
- package/dist/components/EmailForm/index.js +56 -0
- package/dist/components/Error/index.d.ts +2 -2
- package/dist/components/Error/index.js +11 -11
- package/dist/components/Field/index.d.ts +2 -1
- package/dist/components/Field/index.js +20 -18
- package/dist/components/FlowEmailOTP/index.d.ts +18 -0
- package/dist/components/FlowEmailOTP/index.js +70 -0
- package/dist/components/FlowPhoneNumberOTP/index.d.ts +18 -0
- package/dist/components/FlowPhoneNumberOTP/index.js +75 -0
- package/dist/components/Label/index.d.ts +7 -0
- package/dist/components/Label/index.js +13 -0
- package/dist/components/OTP/index.d.ts +3 -0
- package/dist/components/OTP/index.js +48 -33
- package/dist/components/OTPForm/index.d.ts +16 -0
- package/dist/components/OTPForm/index.js +76 -0
- package/dist/components/PhoneNumberForm/index.d.ts +14 -0
- package/dist/components/PhoneNumberForm/index.js +68 -0
- package/dist/components/PhoneNumberInput/PhoneNumberMetadata.d.ts +2 -0
- package/dist/components/PhoneNumberInput/PhoneNumberMetadata.js +5 -0
- package/dist/components/PhoneNumberInput/index.d.ts +10 -0
- package/dist/components/PhoneNumberInput/index.js +76 -0
- package/dist/components/PhoneNumberInput/maskOverride.d.ts +8 -0
- package/dist/components/PhoneNumberInput/maskOverride.js +61 -0
- package/dist/components/PhoneNumberInput/usePhoneNumberFormatter.d.ts +7 -0
- package/dist/components/PhoneNumberInput/usePhoneNumberFormatter.js +52 -0
- package/dist/components/ServerError/index.js +4 -4
- package/dist/components/SignIn/SignInAuthMethodButtons.d.ts +13 -0
- package/dist/components/SignIn/SignInAuthMethodButtons.js +57 -0
- package/dist/components/SignIn/SignInBackButton.d.ts +9 -0
- package/dist/components/SignIn/SignInBackButton.js +38 -0
- package/dist/components/SignIn/SignInCredentials.d.ts +2 -0
- package/dist/components/SignIn/SignInCredentials.js +8 -0
- package/dist/components/SignIn/SignInDescription.d.ts +4 -3
- package/dist/components/SignIn/SignInDescription.js +16 -23
- package/dist/components/SignIn/SignInFooter.d.ts +2 -0
- package/dist/components/SignIn/SignInFooter.js +18 -0
- package/dist/components/SignIn/SignInForm.d.ts +12 -4
- package/dist/components/SignIn/SignInForm.js +25 -196
- package/dist/components/SignIn/SignInImage.d.ts +2 -2
- package/dist/components/SignIn/SignInImage.js +11 -14
- package/dist/components/SignIn/SignInProvider.d.ts +1 -1
- package/dist/components/SignIn/SignInProvider.js +24 -16
- package/dist/components/SignIn/SignInTitle.d.ts +4 -3
- package/dist/components/SignIn/SignInTitle.js +18 -13
- package/dist/components/SignIn/flows/SignInWithEmail.d.ts +5 -0
- package/dist/components/SignIn/flows/SignInWithEmail.js +71 -0
- package/dist/components/SignIn/flows/SignInWithSms.d.ts +5 -0
- package/dist/components/SignIn/flows/SignInWithSms.js +2994 -0
- package/dist/components/SignIn/hooks/useEmailForm.d.ts +13 -0
- package/dist/components/SignIn/hooks/useEmailForm.js +42 -0
- package/dist/components/SignIn/hooks/useOTPForm.d.ts +16 -0
- package/dist/components/SignIn/hooks/useOTPForm.js +59 -0
- package/dist/components/SignIn/hooks/usePhoneNumberForm.d.ts +13 -0
- package/dist/components/SignIn/hooks/usePhoneNumberForm.js +42 -0
- package/dist/components/SignIn/index.d.ts +5 -2
- package/dist/components/SignIn/index.js +42 -24
- package/dist/components/SignIn/types.d.ts +106 -0
- package/dist/components/SignIn/types.js +3 -0
- package/dist/components/SignIn/useSignInReducer.d.ts +1 -57
- package/dist/components/SignIn/useSignInReducer.js +62 -20
- package/dist/components/SignInModal/index.d.ts +2 -2
- package/dist/components/SignInModal/index.js +62 -43
- package/dist/components/SuccessMessage/index.d.ts +7 -0
- package/dist/components/SuccessMessage/index.js +16 -0
- package/dist/components/SwitchFadeTransition/index.d.ts +5 -0
- package/dist/components/SwitchFadeTransition/index.js +24 -0
- package/dist/components/SwitchSlideTransition/index.d.ts +7 -0
- package/dist/components/SwitchSlideTransition/index.js +27 -0
- package/dist/components/SwitchTransition/index.d.ts +25 -0
- package/dist/components/SwitchTransition/index.js +155 -0
- package/dist/data/countries.d.ts +12 -0
- package/dist/data/countries.js +25 -0
- package/dist/data/countryNames.d.ts +1 -0
- package/dist/data/countryNames.js +6 -0
- package/dist/hooks/usePhoneNumberValidators.d.ts +14 -0
- package/dist/hooks/usePhoneNumberValidators.js +36 -0
- package/dist/hooks/useTimer.d.ts +5 -0
- package/dist/hooks/useTimer.js +24 -0
- package/dist/icons/IconArrowLeft.d.ts +2 -0
- package/dist/icons/IconArrowLeft.js +14 -0
- package/dist/icons/IconCheckCircle.js +2 -3
- package/dist/icons/IconCoinbaseWordmark.js +5 -5
- package/dist/icons/IconEnvelope.d.ts +2 -0
- package/dist/icons/IconEnvelope.js +7 -0
- package/dist/icons/IconExclamationCircle.js +3 -4
- package/dist/icons/IconPhone.d.ts +2 -0
- package/dist/icons/IconPhone.js +7 -0
- package/dist/icons/IconXMark.js +6 -5
- package/dist/icons/index.d.ts +3 -0
- package/dist/icons/index.js +14 -8
- package/dist/index.js +66 -53
- package/dist/theme/theme.d.ts +11 -2
- package/dist/theme/tokens.d.ts +30 -6
- package/dist/theme/tokens.js +7 -3
- package/dist/utils/parseValuesFromPhoneNumber.d.ts +6 -0
- package/dist/utils/parseValuesFromPhoneNumber.js +16 -0
- package/dist/utils/validatePhoneNumber.d.ts +1 -0
- package/dist/utils/validatePhoneNumber.js +1 -0
- package/package.json +11 -7
|
@@ -1,50 +1,69 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { Dialog as
|
|
1
|
+
import { jsxs as i, jsx as n, Fragment as m } from "react/jsx-runtime";
|
|
2
|
+
import { Dialog as f, DialogTrigger as I, DialogPortal as S, DialogOverlay as M, DialogContent as v, DialogClose as b, DialogTitle as D, DialogDescription as N } from "@radix-ui/react-dialog";
|
|
3
3
|
import "react";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { SignIn as
|
|
7
|
-
import "
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import { SignInForm as
|
|
13
|
-
import
|
|
14
|
-
|
|
15
|
-
|
|
4
|
+
import { Button as c } from "../Button/index.js";
|
|
5
|
+
import { useAppConfig as y } from "../CDPReactProvider/index.js";
|
|
6
|
+
import { SignIn as C } from "../SignIn/index.js";
|
|
7
|
+
import { useTheme as x } from "../ThemeProvider/index.js";
|
|
8
|
+
import { VisuallyHidden as a } from "../VisuallyHidden/index.js";
|
|
9
|
+
import { IconXMark as T } from "../../icons/IconXMark.js";
|
|
10
|
+
import { SignInBackButton as k } from "../SignIn/SignInBackButton.js";
|
|
11
|
+
import { SignInImage as B } from "../SignIn/SignInImage.js";
|
|
12
|
+
import { SignInForm as w } from "../SignIn/SignInForm.js";
|
|
13
|
+
import { SignInTitle as l } from "../SignIn/SignInTitle.js";
|
|
14
|
+
import { SignInDescription as t } from "../SignIn/SignInDescription.js";
|
|
15
|
+
import { SignInAuthMethodButtons as F } from "../SignIn/SignInAuthMethodButtons.js";
|
|
16
|
+
import { SignInFooter as j } from "../SignIn/SignInFooter.js";
|
|
17
|
+
import '../../assets/SignInModal.css';const A = "SignInModal-module__trigger___IcJ8x", V = "SignInModal-module__modal___PErrT", z = "SignInModal-module__footer___6qEo2", E = "SignInModal-module__buttons___jhaVn", H = "SignInModal-module__overlay___-0rmi", J = "SignInModal-module__spacer___x-lRH", o = {
|
|
18
|
+
trigger: A,
|
|
19
|
+
modal: V,
|
|
16
20
|
"sign-in": "SignInModal-module__sign-in___n05-5",
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
"sign-in-description": "SignInModal-module__sign-in-description___-Oi9q",
|
|
21
|
+
"no-footer": "SignInModal-module__no-footer___meSt1",
|
|
22
|
+
"title-desc-wrapper": "SignInModal-module__title-desc-wrapper___--XLa",
|
|
20
23
|
"sign-in-form": "SignInModal-module__sign-in-form___Jzx1-",
|
|
21
|
-
"
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
24
|
+
"sign-in-image": "SignInModal-module__sign-in-image___DGg7B",
|
|
25
|
+
footer: z,
|
|
26
|
+
buttons: E,
|
|
27
|
+
"back-button": "SignInModal-module__back-button___nMh2-",
|
|
28
|
+
"close-icon": "SignInModal-module__close-icon___b-gMh",
|
|
29
|
+
overlay: H,
|
|
30
|
+
spacer: J
|
|
31
|
+
}, rn = ({ children: _, open: g, setIsOpen: p, onSuccess: s }) => {
|
|
32
|
+
const { cssVariables: h } = x(), { showCoinbaseFooter: d } = y();
|
|
33
|
+
return /* @__PURE__ */ i(f, { open: g, onOpenChange: p, children: [
|
|
34
|
+
/* @__PURE__ */ n(I, { asChild: !0, children: _ || /* @__PURE__ */ n(c, { variant: "primary", className: o.trigger, children: "Sign in" }) }),
|
|
35
|
+
/* @__PURE__ */ n(S, { children: /* @__PURE__ */ i(M, { className: o.overlay, style: h, children: [
|
|
36
|
+
/* @__PURE__ */ n("div", { className: o.spacer }),
|
|
37
|
+
/* @__PURE__ */ n(v, { className: o.modal, children: /* @__PURE__ */ n(
|
|
38
|
+
C,
|
|
39
|
+
{
|
|
40
|
+
onSuccess: s,
|
|
41
|
+
className: `${o["sign-in"]} ${d ? "" : o["no-footer"]}`,
|
|
42
|
+
children: /* @__PURE__ */ i(m, { children: [
|
|
43
|
+
/* @__PURE__ */ n(O, {}),
|
|
44
|
+
/* @__PURE__ */ i("div", { className: o.buttons, children: [
|
|
45
|
+
/* @__PURE__ */ n(k, { className: o["back-button"] }),
|
|
46
|
+
/* @__PURE__ */ n(b, { asChild: !0, children: /* @__PURE__ */ n(c, { "aria-label": "Close", size: "md", variant: "transparentSecondary", children: /* @__PURE__ */ n(T, { className: o["close-icon"] }) }) })
|
|
47
|
+
] }),
|
|
48
|
+
/* @__PURE__ */ n("div", { className: o["sign-in-image"], children: /* @__PURE__ */ n(B, {}) }),
|
|
49
|
+
/* @__PURE__ */ n(w, { onSuccess: s, children: ({ authMethod: e, step: r, Form: u }) => /* @__PURE__ */ i(m, { children: [
|
|
50
|
+
/* @__PURE__ */ i("div", { className: o["title-desc-wrapper"], children: [
|
|
51
|
+
r === "verification" ? /* @__PURE__ */ n(a, { as: "div", children: /* @__PURE__ */ n(l, {}) }) : /* @__PURE__ */ n(l, {}),
|
|
52
|
+
r === "credentials" ? /* @__PURE__ */ n(a, { as: "div", children: /* @__PURE__ */ n(t, { authMethod: e }) }) : /* @__PURE__ */ n(t, { authMethod: e })
|
|
53
|
+
] }),
|
|
54
|
+
/* @__PURE__ */ n("div", { className: o["sign-in-form"], children: u }),
|
|
55
|
+
r === "credentials" && /* @__PURE__ */ n(F, { activeMethod: e })
|
|
56
|
+
] }) }),
|
|
57
|
+
d && /* @__PURE__ */ n(j, { className: o.footer })
|
|
58
|
+
] })
|
|
59
|
+
}
|
|
60
|
+
) })
|
|
45
61
|
] }) })
|
|
46
62
|
] });
|
|
47
|
-
}
|
|
63
|
+
}, O = () => /* @__PURE__ */ i(a, { children: [
|
|
64
|
+
/* @__PURE__ */ n(D, { asChild: !0, children: /* @__PURE__ */ n(l, { as: "span" }) }),
|
|
65
|
+
/* @__PURE__ */ n(N, { asChild: !0, children: /* @__PURE__ */ n(t, { as: "span" }) })
|
|
66
|
+
] });
|
|
48
67
|
export {
|
|
49
|
-
|
|
68
|
+
rn as SignInModal
|
|
50
69
|
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
export interface Props extends HTMLAttributes<HTMLParagraphElement> {
|
|
3
|
+
children: ReactNode;
|
|
4
|
+
id?: string;
|
|
5
|
+
className?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const SuccessMessage: import('react').ForwardRefExoticComponent<Props & import('react').RefAttributes<HTMLParagraphElement>>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { jsxs as i, jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as m } from "react";
|
|
3
|
+
import { IconCheckCircle as u } from "../../icons/IconCheckCircle.js";
|
|
4
|
+
import '../../assets/SuccessMessage.css';const t = "SuccessMessage-module__success___ifqoT", _ = "SuccessMessage-module__icon___ClY26", c = {
|
|
5
|
+
success: t,
|
|
6
|
+
icon: _
|
|
7
|
+
}, l = m(
|
|
8
|
+
({ children: e, id: o, className: r = "", ...a }, n) => /* @__PURE__ */ i("p", { id: o, className: `${c.success} ${r}`, ref: n, ...a, children: [
|
|
9
|
+
/* @__PURE__ */ s(u, { className: c.icon }),
|
|
10
|
+
/* @__PURE__ */ s("span", { children: e })
|
|
11
|
+
] })
|
|
12
|
+
);
|
|
13
|
+
l.displayName = "SuccessMessage";
|
|
14
|
+
export {
|
|
15
|
+
l as SuccessMessage
|
|
16
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { Key } from 'react';
|
|
2
|
+
import { SwitchTransitionProps, SwitchTransitionRef } from '../SwitchTransition/SwitchTransition';
|
|
3
|
+
export type SwitchFadeTransitionProps<T extends Key> = Omit<SwitchTransitionProps<T>, "transitionName" | "unmountOnExit" | "mountOnEnter" | "preEnter">;
|
|
4
|
+
export type SwitchFadeTransitionRef<T extends Key> = SwitchTransitionRef<T>;
|
|
5
|
+
export declare const SwitchFadeTransition: <T extends Key>({ children, className, ...props }: SwitchFadeTransitionProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import { SwitchTransition as e } from "../SwitchTransition/index.js";
|
|
4
|
+
import '../../assets/SwitchFadeTransition.css';const o = {
|
|
5
|
+
"switch-fade-transition": "SwitchFadeTransition-module__switch-fade-transition___0ACbj"
|
|
6
|
+
}, c = ({
|
|
7
|
+
children: t,
|
|
8
|
+
className: i = "",
|
|
9
|
+
...n
|
|
10
|
+
}) => /* @__PURE__ */ r(
|
|
11
|
+
e,
|
|
12
|
+
{
|
|
13
|
+
transitionName: "fade",
|
|
14
|
+
className: `${o["switch-fade-transition"]} ${i}`,
|
|
15
|
+
preEnter: !0,
|
|
16
|
+
mountOnEnter: !0,
|
|
17
|
+
unmountOnExit: !0,
|
|
18
|
+
...n,
|
|
19
|
+
children: t
|
|
20
|
+
}
|
|
21
|
+
);
|
|
22
|
+
export {
|
|
23
|
+
c as SwitchFadeTransition
|
|
24
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Key } from 'react';
|
|
2
|
+
import { SwitchTransitionProps, SwitchTransitionRef } from '../SwitchTransition/SwitchTransition';
|
|
3
|
+
export interface SwitchSlideTransitionProps<T extends Key> extends Omit<SwitchTransitionProps<T>, "transitionName" | "unmountOnExit" | "mountOnEnter" | "preEnter"> {
|
|
4
|
+
direction?: "left" | "right";
|
|
5
|
+
}
|
|
6
|
+
export type SwitchSlideTransitionRef<T extends Key> = SwitchTransitionRef<T>;
|
|
7
|
+
export declare const SwitchSlideTransition: <T extends Key>({ children, className, direction, timeout, ...props }: SwitchSlideTransitionProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import { SwitchTransition as o } from "../SwitchTransition/index.js";
|
|
4
|
+
import '../../assets/SwitchSlideTransition.css';const a = {
|
|
5
|
+
"switch-slide-transition": "SwitchSlideTransition-module__switch-slide-transition___iPQKq"
|
|
6
|
+
}, u = ({
|
|
7
|
+
children: t,
|
|
8
|
+
className: i = "",
|
|
9
|
+
direction: n = "left",
|
|
10
|
+
timeout: r = 300,
|
|
11
|
+
...s
|
|
12
|
+
}) => /* @__PURE__ */ e(
|
|
13
|
+
o,
|
|
14
|
+
{
|
|
15
|
+
transitionName: `slide-${n}`,
|
|
16
|
+
className: `${a["switch-slide-transition"]} ${i}`,
|
|
17
|
+
preEnter: !0,
|
|
18
|
+
mountOnEnter: !0,
|
|
19
|
+
unmountOnExit: !0,
|
|
20
|
+
timeout: r,
|
|
21
|
+
...s,
|
|
22
|
+
children: t
|
|
23
|
+
}
|
|
24
|
+
);
|
|
25
|
+
export {
|
|
26
|
+
u as SwitchSlideTransition
|
|
27
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ElementType, HTMLAttributes, Key, ReactNode, Ref } from 'react';
|
|
2
|
+
import { TransitionMapOptions, TransitionMapResult, TransitionState } from 'react-transition-state';
|
|
3
|
+
export interface SwitchTransitionRef<T extends Key> {
|
|
4
|
+
transition: TransitionMapResult<T>;
|
|
5
|
+
}
|
|
6
|
+
export interface SwitchTransitionProps<T extends Key> extends Omit<HTMLAttributes<HTMLElement>, "children">, TransitionMapOptions<T> {
|
|
7
|
+
animateHeight?: boolean;
|
|
8
|
+
autoFocus?: boolean;
|
|
9
|
+
as?: ElementType;
|
|
10
|
+
children: (props: {
|
|
11
|
+
"data-index": number;
|
|
12
|
+
inert?: boolean;
|
|
13
|
+
itemKey: T;
|
|
14
|
+
"data-transition": string;
|
|
15
|
+
"data-status": TransitionState["status"] | undefined;
|
|
16
|
+
"data-is-enter": TransitionState["isEnter"] | undefined;
|
|
17
|
+
"data-is-resolved": TransitionState["isResolved"] | undefined;
|
|
18
|
+
"data-parent": string;
|
|
19
|
+
}) => ReactNode;
|
|
20
|
+
className?: string;
|
|
21
|
+
items: T[];
|
|
22
|
+
transitionName: "fade" | "slide-left" | "slide-right" | string;
|
|
23
|
+
transitionRef?: Ref<SwitchTransitionRef<T>>;
|
|
24
|
+
}
|
|
25
|
+
export declare const SwitchTransition: <T extends Key>({ allowMultiple, animateHeight, autoFocus, initialEntered, as: Component, children, className, enter, exit, items, mountOnEnter, onStateChange, preEnter, preExit, style, timeout, transitionName, transitionRef, unmountOnExit, ...props }: SwitchTransitionProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
import { jsx as m, Fragment as W } from "react/jsx-runtime";
|
|
2
|
+
import { useId as A, useState as R, useRef as B, useImperativeHandle as D, useLayoutEffect as _, useEffect as F } from "react";
|
|
3
|
+
import { useTransitionMap as G } from "react-transition-state";
|
|
4
|
+
import '../../assets/SwitchTransition.css';const H = {
|
|
5
|
+
"transition-wrapper": "SwitchTransition-module__transition-wrapper___UekKW"
|
|
6
|
+
}, J = (h) => {
|
|
7
|
+
const {
|
|
8
|
+
children: r,
|
|
9
|
+
index: d,
|
|
10
|
+
itemKey: i,
|
|
11
|
+
initialEntered: l,
|
|
12
|
+
setItem: u,
|
|
13
|
+
deleteItem: f,
|
|
14
|
+
stateMap: b,
|
|
15
|
+
transitionName: v,
|
|
16
|
+
parentKey: y
|
|
17
|
+
} = h;
|
|
18
|
+
F(() => (u(i, { initialEntered: l }), () => {
|
|
19
|
+
f(i);
|
|
20
|
+
}), [i, l, u, f]);
|
|
21
|
+
const { isEnter: p, isMounted: w, isResolved: I, status: x } = b.get(i) || {};
|
|
22
|
+
return w ? r({
|
|
23
|
+
"data-index": d,
|
|
24
|
+
inert: !p,
|
|
25
|
+
itemKey: i,
|
|
26
|
+
"data-transition": v,
|
|
27
|
+
"data-status": x,
|
|
28
|
+
"data-is-enter": p,
|
|
29
|
+
"data-is-resolved": I,
|
|
30
|
+
"data-parent": y
|
|
31
|
+
}) : null;
|
|
32
|
+
}, X = ({
|
|
33
|
+
allowMultiple: h,
|
|
34
|
+
animateHeight: r,
|
|
35
|
+
autoFocus: d,
|
|
36
|
+
initialEntered: i,
|
|
37
|
+
as: l = "div",
|
|
38
|
+
children: u,
|
|
39
|
+
className: f = "",
|
|
40
|
+
enter: b,
|
|
41
|
+
exit: v,
|
|
42
|
+
items: y,
|
|
43
|
+
mountOnEnter: p,
|
|
44
|
+
onStateChange: w,
|
|
45
|
+
preEnter: I,
|
|
46
|
+
preExit: x,
|
|
47
|
+
style: j,
|
|
48
|
+
timeout: e = 200,
|
|
49
|
+
transitionName: T,
|
|
50
|
+
transitionRef: q,
|
|
51
|
+
unmountOnExit: k,
|
|
52
|
+
...$
|
|
53
|
+
}) => {
|
|
54
|
+
const z = A(), s = $.id || z, [E, L] = R(null), [S, K] = R(null), g = B(null), o = G({
|
|
55
|
+
allowMultiple: h,
|
|
56
|
+
initialEntered: !1,
|
|
57
|
+
mountOnEnter: p,
|
|
58
|
+
unmountOnExit: k,
|
|
59
|
+
preEnter: I,
|
|
60
|
+
preExit: x,
|
|
61
|
+
enter: b,
|
|
62
|
+
exit: v,
|
|
63
|
+
timeout: e,
|
|
64
|
+
onStateChange: w
|
|
65
|
+
});
|
|
66
|
+
D(q, () => ({
|
|
67
|
+
transition: r || d ? {
|
|
68
|
+
...o,
|
|
69
|
+
toggle: (t) => {
|
|
70
|
+
o.toggle(t), L(t);
|
|
71
|
+
}
|
|
72
|
+
} : o
|
|
73
|
+
})), _(() => {
|
|
74
|
+
if (!r)
|
|
75
|
+
return;
|
|
76
|
+
let t = null;
|
|
77
|
+
const n = g.current;
|
|
78
|
+
if (!n)
|
|
79
|
+
return;
|
|
80
|
+
const c = setTimeout(() => {
|
|
81
|
+
const a = n.querySelector(
|
|
82
|
+
`[data-is-enter="true"][data-parent="${s}"]`
|
|
83
|
+
);
|
|
84
|
+
if (!a)
|
|
85
|
+
return;
|
|
86
|
+
const M = a?.scrollHeight ?? null;
|
|
87
|
+
M !== null && K(M), t = new ResizeObserver((N) => {
|
|
88
|
+
for (const O of N) {
|
|
89
|
+
const U = O.contentRect.height;
|
|
90
|
+
K(U);
|
|
91
|
+
}
|
|
92
|
+
}), t.observe(a);
|
|
93
|
+
}, 0);
|
|
94
|
+
return () => {
|
|
95
|
+
c && clearTimeout(c), t?.disconnect();
|
|
96
|
+
};
|
|
97
|
+
}, [r, E, s]), _(() => {
|
|
98
|
+
if (!d)
|
|
99
|
+
return;
|
|
100
|
+
const t = typeof e == "number" ? e : e.enter;
|
|
101
|
+
if (t === void 0)
|
|
102
|
+
return;
|
|
103
|
+
const n = setTimeout(() => {
|
|
104
|
+
const c = g.current?.querySelector(
|
|
105
|
+
`[data-is-enter="true"][data-parent="${s}"]`
|
|
106
|
+
);
|
|
107
|
+
if (!c)
|
|
108
|
+
return;
|
|
109
|
+
const a = c.querySelector(
|
|
110
|
+
'input, textarea, select, button, [tabindex]:not([tabindex="-1"])'
|
|
111
|
+
);
|
|
112
|
+
a && a.focus();
|
|
113
|
+
}, t);
|
|
114
|
+
return () => {
|
|
115
|
+
n && clearTimeout(n);
|
|
116
|
+
};
|
|
117
|
+
}, [d, E, s, e]);
|
|
118
|
+
const C = /* @__PURE__ */ m(W, { children: y.map((t, n) => /* @__PURE__ */ m(
|
|
119
|
+
J,
|
|
120
|
+
{
|
|
121
|
+
index: n,
|
|
122
|
+
itemKey: t,
|
|
123
|
+
setItem: o.setItem,
|
|
124
|
+
deleteItem: o.deleteItem,
|
|
125
|
+
stateMap: o.stateMap,
|
|
126
|
+
initialEntered: i ? n === 0 : void 0,
|
|
127
|
+
transitionName: T,
|
|
128
|
+
parentKey: s,
|
|
129
|
+
children: u
|
|
130
|
+
},
|
|
131
|
+
n
|
|
132
|
+
)) });
|
|
133
|
+
return /* @__PURE__ */ m(
|
|
134
|
+
l,
|
|
135
|
+
{
|
|
136
|
+
...$,
|
|
137
|
+
id: s,
|
|
138
|
+
ref: g,
|
|
139
|
+
"data-transition": T || void 0,
|
|
140
|
+
"data-animate-height": r,
|
|
141
|
+
className: `${H["transition-wrapper"]} ${f}`,
|
|
142
|
+
style: {
|
|
143
|
+
...j,
|
|
144
|
+
"--cdp-web-transition-enter-timeout": typeof e == "object" ? `${e.enter ?? 200}ms` : void 0,
|
|
145
|
+
"--cdp-web-transition-exit-timeout": typeof e == "object" ? `${e.exit ?? 200}ms` : void 0,
|
|
146
|
+
"--cdp-web-transition-timeout": typeof e == "number" ? `${e}ms` : void 0,
|
|
147
|
+
"--cdp-web-transition-height": r && S ? `${S}px` : void 0
|
|
148
|
+
},
|
|
149
|
+
children: r ? /* @__PURE__ */ m("div", { children: C }) : C
|
|
150
|
+
}
|
|
151
|
+
);
|
|
152
|
+
};
|
|
153
|
+
export {
|
|
154
|
+
X as SwitchTransition
|
|
155
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { CountryCallingCode, CountryCode as ICountryCode } from 'libphonenumber-js';
|
|
2
|
+
export type CountryCode = ICountryCode;
|
|
3
|
+
export type CountryOption = {
|
|
4
|
+
callingCode: CountryCallingCode;
|
|
5
|
+
code: CountryCode;
|
|
6
|
+
flag: string;
|
|
7
|
+
name: string;
|
|
8
|
+
};
|
|
9
|
+
export declare const OFAC_BLOCKED_COUNTRIES: string[];
|
|
10
|
+
export declare const DEFAULT_COUNTRY_CODE: CountryCode;
|
|
11
|
+
export declare const nonThrowingGetCountryCallingCode: (countryCode: CountryCode) => CountryCallingCode | undefined;
|
|
12
|
+
export declare const countries: CountryOption[];
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { getCountries as e, getCountryCallingCode as a } from "libphonenumber-js";
|
|
2
|
+
import { countryNames as r } from "./countryNames.js";
|
|
3
|
+
const l = ["CU", "ET", "IR", "KP", "KZ", "MM", "RU", "SY"], i = "US", o = {
|
|
4
|
+
US: "🇺🇸"
|
|
5
|
+
}, s = (n) => {
|
|
6
|
+
try {
|
|
7
|
+
return a(n);
|
|
8
|
+
} catch {
|
|
9
|
+
return;
|
|
10
|
+
}
|
|
11
|
+
}, u = e().map((n) => {
|
|
12
|
+
const t = l.includes(n);
|
|
13
|
+
return {
|
|
14
|
+
callingCode: a(n),
|
|
15
|
+
code: n,
|
|
16
|
+
flag: t || !o[n] ? "" : o[n],
|
|
17
|
+
name: t || !r[`language${n}`] ? "" : r[`language${n}`]
|
|
18
|
+
};
|
|
19
|
+
}).filter((n) => !!n.flag && !!n.name);
|
|
20
|
+
export {
|
|
21
|
+
i as DEFAULT_COUNTRY_CODE,
|
|
22
|
+
l as OFAC_BLOCKED_COUNTRIES,
|
|
23
|
+
u as countries,
|
|
24
|
+
s as nonThrowingGetCountryCallingCode
|
|
25
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const countryNames: Record<string, string>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { APIError } from '@coinbase/cdp-hooks';
|
|
2
|
+
import { CountryCode } from '../data/countries';
|
|
3
|
+
interface UsePhoneNumberValidatorsProps {
|
|
4
|
+
countryCode?: CountryCode;
|
|
5
|
+
}
|
|
6
|
+
export declare const usePhoneNumberValidators: ({ countryCode }: UsePhoneNumberValidatorsProps) => {
|
|
7
|
+
isInvalidCountry: (v: string) => boolean;
|
|
8
|
+
isInvalidLength: (v: string) => boolean;
|
|
9
|
+
isInvalidNumber: (v: string) => boolean;
|
|
10
|
+
isInvalidTooShort: (v: string) => boolean;
|
|
11
|
+
isInvalidTooLong: (v: string) => boolean;
|
|
12
|
+
isInvalidPhoneNumberError: (error: string | APIError) => boolean;
|
|
13
|
+
};
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import "@coinbase/cdp-hooks";
|
|
2
|
+
import { validatePhoneNumberLength as t } from "libphonenumber-js";
|
|
3
|
+
import { useCallback as n } from "react";
|
|
4
|
+
import "../data/countries.js";
|
|
5
|
+
const h = ({ countryCode: i = "US" }) => {
|
|
6
|
+
const a = n(
|
|
7
|
+
(s) => t(s, i) === "INVALID_COUNTRY",
|
|
8
|
+
[i]
|
|
9
|
+
), m = n(
|
|
10
|
+
(s) => t(s, i) === "INVALID_LENGTH",
|
|
11
|
+
[i]
|
|
12
|
+
), e = n(
|
|
13
|
+
(s) => t(s, i) === "NOT_A_NUMBER",
|
|
14
|
+
[i]
|
|
15
|
+
), l = n(
|
|
16
|
+
(s) => t(s, i) === "TOO_SHORT",
|
|
17
|
+
[i]
|
|
18
|
+
), N = n(
|
|
19
|
+
(s) => t(s, i) === "TOO_LONG",
|
|
20
|
+
[i]
|
|
21
|
+
), I = n((s) => {
|
|
22
|
+
const o = typeof s == "string" ? s : s.message;
|
|
23
|
+
return /invalid phone number/i.test(o);
|
|
24
|
+
}, []);
|
|
25
|
+
return {
|
|
26
|
+
isInvalidCountry: a,
|
|
27
|
+
isInvalidLength: m,
|
|
28
|
+
isInvalidNumber: e,
|
|
29
|
+
isInvalidTooShort: l,
|
|
30
|
+
isInvalidTooLong: N,
|
|
31
|
+
isInvalidPhoneNumberError: I
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
export {
|
|
35
|
+
h as usePhoneNumberValidators
|
|
36
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { useState as f, useRef as l, useCallback as c, useEffect as o } from "react";
|
|
2
|
+
const I = () => {
|
|
3
|
+
const [i, r] = f(null), e = l(null), n = l(null), u = c(() => {
|
|
4
|
+
if (!n.current) {
|
|
5
|
+
r(null);
|
|
6
|
+
return;
|
|
7
|
+
}
|
|
8
|
+
const t = n.current - Date.now();
|
|
9
|
+
t <= 0 ? (r(0), e.current && clearInterval(e.current)) : r(Math.ceil(t / 1e3));
|
|
10
|
+
}, []), a = c(
|
|
11
|
+
(t) => {
|
|
12
|
+
e.current && clearInterval(e.current), n.current = Date.now() + t * 1e3, r(t), e.current = setInterval(u, 1e3);
|
|
13
|
+
},
|
|
14
|
+
[u]
|
|
15
|
+
), s = c(() => {
|
|
16
|
+
e.current && clearInterval(e.current), r(null), n.current = null;
|
|
17
|
+
}, []);
|
|
18
|
+
return o(() => () => {
|
|
19
|
+
e.current && clearInterval(e.current);
|
|
20
|
+
}, []), { timeRemaining: i, start: a, reset: s };
|
|
21
|
+
};
|
|
22
|
+
export {
|
|
23
|
+
I as useTimer
|
|
24
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import { SvgIcon as e } from "./SvgIcon.js";
|
|
4
|
+
const n = (r) => /* @__PURE__ */ o(e, { viewBox: "0 0 24 24", fill: "currentColor", width: "24", height: "24", ...r, children: /* @__PURE__ */ o(
|
|
5
|
+
"path",
|
|
6
|
+
{
|
|
7
|
+
fillRule: "evenodd",
|
|
8
|
+
d: "M11.03 3.97a.75.75 0 0 1 0 1.06l-6.22 6.22H21a.75.75 0 0 1 0 1.5H4.81l6.22 6.22a.75.75 0 1 1-1.06 1.06l-7.5-7.5a.75.75 0 0 1 0-1.06l7.5-7.5a.75.75 0 0 1 1.06 0Z",
|
|
9
|
+
clipRule: "evenodd"
|
|
10
|
+
}
|
|
11
|
+
) });
|
|
12
|
+
export {
|
|
13
|
+
n as IconArrowLeft
|
|
14
|
+
};
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
3
|
import { SvgIcon as l } from "./SvgIcon.js";
|
|
4
|
-
const c = (o) => /* @__PURE__ */ e(l, { viewBox: "0 0
|
|
4
|
+
const c = (o) => /* @__PURE__ */ e(l, { viewBox: "0 0 16 16", width: "16", height: "16", fill: "currentColor", ...o, children: /* @__PURE__ */ e(
|
|
5
5
|
"path",
|
|
6
6
|
{
|
|
7
|
-
fill: "currentColor",
|
|
8
7
|
fillRule: "evenodd",
|
|
9
|
-
d: "
|
|
8
|
+
d: "M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14Zm3.844-8.791a.75.75 0 0 0-1.188-.918l-3.7 4.79-1.649-1.833a.75.75 0 1 0-1.114 1.004l2.25 2.5a.75.75 0 0 0 1.15-.043l4.25-5.5Z",
|
|
10
9
|
clipRule: "evenodd"
|
|
11
10
|
}
|
|
12
11
|
) });
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as r, jsx as C } from "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import { SvgIcon as
|
|
4
|
-
const
|
|
3
|
+
import { SvgIcon as H } from "./SvgIcon.js";
|
|
4
|
+
const o = (i) => /* @__PURE__ */ r(H, { width: "67", height: "13", viewBox: "0 0 67 13", fill: "none", ...i, children: [
|
|
5
5
|
/* @__PURE__ */ C("g", { clipPath: "url(#clip0_7507_87)", children: /* @__PURE__ */ C(
|
|
6
6
|
"path",
|
|
7
7
|
{
|
|
8
8
|
d: "M13.5224 3.8526C11.0884 3.8526 9.18662 5.70351 9.18662 8.18134C9.18662 10.6592 11.0404 12.4942 13.5224 12.4942C16.0044 12.4942 17.8903 10.6275 17.8903 8.1655C17.8903 5.71935 16.0366 3.8526 13.5224 3.8526ZM13.5388 10.7085C12.1527 10.7085 11.1371 9.63014 11.1371 8.18195C11.1371 6.71731 12.1363 5.63954 13.5224 5.63954C14.9248 5.63954 15.9399 6.73376 15.9399 8.18195C15.9399 9.63014 14.9248 10.7085 13.5388 10.7085ZM18.4219 5.7358H19.631V12.334H21.565V4.01344H18.4219V5.7358ZM4.31932 5.63893C5.33499 5.63893 6.14083 6.26646 6.44675 7.19983H8.4939C8.12291 5.20453 6.47899 3.8526 4.33574 3.8526C1.90179 3.8526 0 5.70351 0 8.18195C0 10.6604 1.85375 12.4948 4.33574 12.4948C6.43094 12.4948 8.10709 11.1429 8.47809 9.13116H6.44675C6.15665 10.0645 5.3508 10.7085 4.33514 10.7085C2.93266 10.7085 1.94984 9.63014 1.94984 8.18195C1.95045 6.71731 2.91746 5.63893 4.31932 5.63893ZM55.1696 7.37713L53.7513 7.16815C53.0744 7.07189 52.5909 6.84647 52.5909 6.3152C52.5909 5.7358 53.2198 5.44641 54.0736 5.44641C55.0084 5.44641 55.6051 5.84851 55.734 6.50833H57.6035C57.3937 4.83472 56.1044 3.85321 54.1223 3.85321C52.0752 3.85321 50.7213 4.8993 50.7213 6.37978C50.7213 7.79568 51.6081 8.61695 53.3967 8.87406L54.815 9.08303C55.5084 9.17929 55.8952 9.45346 55.8952 9.96828C55.8952 10.6281 55.2182 10.9016 54.2835 10.9016C53.1389 10.9016 52.4942 10.435 52.3975 9.72701H50.4957C50.6733 11.3525 51.9462 12.4948 54.2671 12.4948C56.3787 12.4948 57.7805 11.5292 57.7805 9.8714C57.7805 8.39092 56.7655 7.61839 55.1696 7.37713ZM20.598 0.585792C19.8888 0.585792 19.3567 1.10061 19.3567 1.80856C19.3567 2.51651 19.8882 3.03133 20.598 3.03133C21.3071 3.03133 21.8393 2.51651 21.8393 1.80856C21.8393 1.10061 21.3071 0.585792 20.598 0.585792ZM48.9807 6.86231C48.9807 5.06014 47.8848 3.85321 45.5639 3.85321C43.372 3.85321 42.1472 4.96388 41.9051 6.66978H43.8233C43.92 6.00996 44.4358 5.46286 45.5317 5.46286C46.5151 5.46286 46.9986 5.89725 46.9986 6.42852C46.9986 7.12063 46.1119 7.29731 45.016 7.41003C43.5332 7.57087 41.6959 8.08569 41.6959 10.017C41.6959 11.5139 42.8083 12.479 44.5811 12.479C45.9672 12.479 46.8375 11.8996 47.2729 10.9821C47.3374 11.8027 47.9498 12.334 48.8043 12.334H49.9325V10.6123H48.9813V6.86231H48.9807ZM47.0789 8.95448C47.0789 10.0651 46.1119 10.8858 44.9351 10.8858C44.2095 10.8858 43.5971 10.58 43.5971 9.93659C43.5971 9.11593 44.5805 8.89051 45.483 8.79425C46.3534 8.71383 46.8369 8.52069 47.0789 8.15027V8.95448ZM36.8122 3.8526C35.732 3.8526 34.8295 4.30345 34.1848 5.05953V0.505371H32.2508V12.334H34.1526V11.2398C34.7973 12.0282 35.7162 12.4948 36.8122 12.4948C39.133 12.4948 40.89 10.6604 40.89 8.18195C40.89 5.70351 39.1008 3.8526 36.8122 3.8526ZM36.5221 10.7085C35.136 10.7085 34.1203 9.63014 34.1203 8.18195C34.1203 6.73376 35.1518 5.63954 36.5379 5.63954C37.9403 5.63954 38.9232 6.71792 38.9232 8.18195C38.9232 9.63014 37.9081 10.7085 36.5221 10.7085ZM27.6249 3.8526C26.3678 3.8526 25.5456 4.36742 25.062 5.09182V4.01344H23.1438V12.3334H25.0779V7.81152C25.0779 6.54001 25.8837 5.63893 27.0764 5.63893C28.1887 5.63893 28.8814 6.4273 28.8814 7.57026V12.334H30.8155V7.42587C30.8161 5.33308 29.7366 3.8526 27.6249 3.8526ZM67 7.90839C67 5.52683 65.2594 3.85321 62.9221 3.85321C60.4401 3.85321 58.6186 5.71996 58.6186 8.18195C58.6186 10.7731 60.5691 12.4948 62.9544 12.4948C64.9693 12.4948 66.5487 11.3038 66.9513 9.6143H64.9364C64.6463 10.3545 63.9372 10.7731 62.986 10.7731C61.7447 10.7731 60.8099 10.0006 60.6007 8.64863H66.9994V7.90839H67ZM60.7138 7.26441C61.0203 6.10562 61.8906 5.54267 62.8899 5.54267C63.9858 5.54267 64.8239 6.1702 65.0173 7.26441H60.7138Z",
|
|
9
|
-
fill: "
|
|
9
|
+
fill: "currentColor"
|
|
10
10
|
}
|
|
11
11
|
) }),
|
|
12
12
|
/* @__PURE__ */ C("defs", { children: /* @__PURE__ */ C("clipPath", { id: "clip0_7507_87", children: /* @__PURE__ */ C("rect", { width: "67", height: "11.9895", fill: "white", transform: "translate(0 0.505371)" }) }) })
|
|
13
13
|
] });
|
|
14
14
|
export {
|
|
15
|
-
|
|
15
|
+
o as IconCoinbaseWordmark
|
|
16
16
|
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import { SvgIcon as t } from "./SvgIcon.js";
|
|
4
|
+
const p = (r) => /* @__PURE__ */ o(t, { fill: "currentColor", width: "20", height: "14", viewBox: "1 0 20 14", ...r, children: /* @__PURE__ */ o("path", { d: "M0.98877 -0.00488281H20.9888V13.9951H0.98877V-0.00488281ZM18.9888 3.02648L10.9888 9.88362L2.98877 3.02648V11.9951H18.9888V3.02648ZM4.85869 1.99512L10.9888 7.24947L17.1188 1.99512H4.85869Z" }) });
|
|
5
|
+
export {
|
|
6
|
+
p as IconEnvelope
|
|
7
|
+
};
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
3
|
import { SvgIcon as r } from "./SvgIcon.js";
|
|
4
|
-
const
|
|
4
|
+
const n = (e) => /* @__PURE__ */ o(r, { viewBox: "0 0 16 16", width: "16", height: "16", fill: "currentColor", ...e, children: /* @__PURE__ */ o(
|
|
5
5
|
"path",
|
|
6
6
|
{
|
|
7
|
-
fill: "currentColor",
|
|
8
7
|
fillRule: "evenodd",
|
|
9
|
-
d: "
|
|
8
|
+
d: "M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14ZM8 4a.75.75 0 0 1 .75.75v3a.75.75 0 0 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",
|
|
10
9
|
clipRule: "evenodd"
|
|
11
10
|
}
|
|
12
11
|
) });
|
|
13
12
|
export {
|
|
14
|
-
|
|
13
|
+
n as IconExclamationCircle
|
|
15
14
|
};
|