@coinbase/cdp-react 0.0.78 → 0.0.80

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 (164) hide show
  1. package/README.md +5 -0
  2. package/dist/assets/Badge.css +1 -0
  3. package/dist/assets/Banner.css +1 -1
  4. package/dist/assets/CDPReactProvider.css +1 -0
  5. package/dist/assets/CoinbaseFooter.css +1 -1
  6. package/dist/assets/CopyTextField.css +1 -0
  7. package/dist/assets/EnrollMfa.css +1 -0
  8. package/dist/assets/EnrollMfaDescription.css +1 -0
  9. package/dist/assets/EnrollMfaFlow.css +1 -0
  10. package/dist/assets/EnrollMfaFlowBackButton.css +1 -0
  11. package/dist/assets/EnrollMfaItems.css +1 -0
  12. package/dist/assets/EnrollMfaModal.css +1 -0
  13. package/dist/assets/EnrollMfaTitle.css +1 -0
  14. package/dist/assets/ExportWallet.css +1 -1
  15. package/dist/assets/OTPForm.css +1 -1
  16. package/dist/assets/QRCode.css +1 -0
  17. package/dist/assets/ToggleListItem.css +1 -0
  18. package/dist/assets/VerifyMfaDescription.css +1 -0
  19. package/dist/assets/VerifyMfaFlow.css +1 -0
  20. package/dist/assets/VerifyMfaImage.css +1 -0
  21. package/dist/assets/VerifyMfaInline.css +1 -0
  22. package/dist/assets/VerifyMfaTitle.css +1 -0
  23. package/dist/assets/totp.css +1 -0
  24. package/dist/chunks/CDPReactProvider.CIQm4C4z.js +299 -0
  25. package/dist/chunks/{LinkAuthFlow.3HN888DV.js → LinkAuthFlow.BaUSMzGH.js} +1 -1
  26. package/dist/chunks/index.CKQKBoX2.js +9 -0
  27. package/dist/chunks/{index.Bvudzh_y.js → index.C_DV0Ud7.js} +1 -1
  28. package/dist/chunks/index.Dp-lIxM1.js +9 -0
  29. package/dist/components/CDPReactProvider/index.d.ts +4 -1
  30. package/dist/components/CDPReactProvider/index.js +11 -79
  31. package/dist/components/CopyAddress/index.js +24 -60
  32. package/dist/components/EnrollMfa/EnrollMfaDescription.d.ts +6 -0
  33. package/dist/components/EnrollMfa/EnrollMfaDescription.js +21 -0
  34. package/dist/components/EnrollMfa/EnrollMfaFlow.d.ts +12 -0
  35. package/dist/components/EnrollMfa/EnrollMfaFlow.js +46 -0
  36. package/dist/components/EnrollMfa/EnrollMfaFlowBackButton.d.ts +9 -0
  37. package/dist/components/EnrollMfa/EnrollMfaFlowBackButton.js +39 -0
  38. package/dist/components/EnrollMfa/EnrollMfaFlowProvider.d.ts +21 -0
  39. package/dist/components/EnrollMfa/EnrollMfaFlowProvider.js +34 -0
  40. package/dist/components/EnrollMfa/EnrollMfaFooter.d.ts +2 -0
  41. package/dist/components/EnrollMfa/EnrollMfaFooter.js +7 -0
  42. package/dist/components/EnrollMfa/EnrollMfaImage.d.ts +6 -0
  43. package/dist/components/EnrollMfa/EnrollMfaImage.js +19 -0
  44. package/dist/components/EnrollMfa/EnrollMfaItem.d.ts +11 -0
  45. package/dist/components/EnrollMfa/EnrollMfaItem.js +21 -0
  46. package/dist/components/EnrollMfa/EnrollMfaItems.d.ts +9 -0
  47. package/dist/components/EnrollMfa/EnrollMfaItems.js +39 -0
  48. package/dist/components/EnrollMfa/EnrollMfaProvider.d.ts +14 -0
  49. package/dist/components/EnrollMfa/EnrollMfaProvider.js +24 -0
  50. package/dist/components/EnrollMfa/EnrollMfaTitle.d.ts +6 -0
  51. package/dist/components/EnrollMfa/EnrollMfaTitle.js +21 -0
  52. package/dist/components/EnrollMfa/index.d.ts +20 -0
  53. package/dist/components/EnrollMfa/index.js +171 -0
  54. package/dist/components/EnrollMfa/methods/totp.d.ts +6 -0
  55. package/dist/components/EnrollMfa/methods/totp.js +120 -0
  56. package/dist/components/EnrollMfa/types.d.ts +83 -0
  57. package/dist/components/EnrollMfa/types.js +2 -0
  58. package/dist/components/EnrollMfa/useEnrollMfaReducer.d.ts +3 -0
  59. package/dist/components/EnrollMfa/useEnrollMfaReducer.js +111 -0
  60. package/dist/components/EnrollMfaModal/index.d.ts +20 -0
  61. package/dist/components/EnrollMfaModal/index.js +144 -0
  62. package/dist/components/ExportWallet/index.d.ts +2 -1
  63. package/dist/components/ExportWallet/index.js +225 -165
  64. package/dist/components/ExportWalletModal/index.d.ts +7 -4
  65. package/dist/components/ExportWalletModal/index.js +9 -7
  66. package/dist/components/Fund/index.js +5 -5
  67. package/dist/components/FundModal/index.js +14 -14
  68. package/dist/components/LinkAuth/LinkAuthFlow.js +2 -2
  69. package/dist/components/LinkAuth/LinkAuthFlowBackButton.js +2 -2
  70. package/dist/components/LinkAuth/LinkAuthFlowProvider.js +2 -2
  71. package/dist/components/LinkAuth/LinkAuthItem.js +26 -45
  72. package/dist/components/LinkAuth/LinkAuthItems.js +1 -1
  73. package/dist/components/LinkAuth/LinkAuthProvider.js +1 -1
  74. package/dist/components/LinkAuth/index.js +3 -3
  75. package/dist/components/LinkAuth/types.js +1 -1
  76. package/dist/components/LinkAuth/utils.js +1 -1
  77. package/dist/components/LinkAuthModal/index.js +2 -2
  78. package/dist/components/OAuthStatusModal/index.js +1 -1
  79. package/dist/components/SignIn/SignInAuthMethodButtons.js +1 -1
  80. package/dist/components/SignIn/SignInBackButton.js +1 -1
  81. package/dist/components/SignIn/SignInDescription.js +2 -2
  82. package/dist/components/SignIn/SignInForm.js +2 -2
  83. package/dist/components/SignIn/SignInImage.js +5 -5
  84. package/dist/components/SignIn/SignInProvider.js +1 -1
  85. package/dist/components/SignIn/SignInTitle.js +2 -2
  86. package/dist/components/SignIn/flows/SignInWithEmail.js +1 -1
  87. package/dist/components/SignIn/flows/SignInWithOAuth.js +1 -1
  88. package/dist/components/SignIn/flows/SignInWithSms.js +1 -1
  89. package/dist/components/SignIn/index.js +4 -4
  90. package/dist/components/SignIn/types.js +1 -1
  91. package/dist/components/SignIn/useSignInReducer.js +1 -1
  92. package/dist/components/SignInModal/index.js +13 -13
  93. package/dist/components/ThemeProvider/index.d.ts +4 -6
  94. package/dist/components/ThemeProvider/index.js +32 -21
  95. package/dist/components/VerifyMfa/VerifyMfaDescription.d.ts +6 -0
  96. package/dist/components/VerifyMfa/VerifyMfaDescription.js +21 -0
  97. package/dist/components/VerifyMfa/VerifyMfaFlow.d.ts +11 -0
  98. package/dist/components/VerifyMfa/VerifyMfaFlow.js +19 -0
  99. package/dist/components/VerifyMfa/VerifyMfaFooter.d.ts +2 -0
  100. package/dist/components/VerifyMfa/VerifyMfaFooter.js +7 -0
  101. package/dist/components/VerifyMfa/VerifyMfaImage.d.ts +6 -0
  102. package/dist/components/VerifyMfa/VerifyMfaImage.js +21 -0
  103. package/dist/components/VerifyMfa/VerifyMfaProvider.d.ts +15 -0
  104. package/dist/components/VerifyMfa/VerifyMfaProvider.js +28 -0
  105. package/dist/components/VerifyMfa/VerifyMfaTitle.d.ts +6 -0
  106. package/dist/components/VerifyMfa/VerifyMfaTitle.js +21 -0
  107. package/dist/components/VerifyMfa/index.d.ts +16 -0
  108. package/dist/components/VerifyMfa/index.js +20 -0
  109. package/dist/components/VerifyMfa/methods/totp.d.ts +6 -0
  110. package/dist/components/VerifyMfa/methods/totp.js +69 -0
  111. package/dist/components/VerifyMfa/types.d.ts +60 -0
  112. package/dist/components/VerifyMfa/types.js +2 -0
  113. package/dist/components/VerifyMfa/useVerifyMfaReducer.d.ts +2 -0
  114. package/dist/components/VerifyMfa/useVerifyMfaReducer.js +61 -0
  115. package/dist/components/VerifyMfaInline/index.d.ts +40 -0
  116. package/dist/components/VerifyMfaInline/index.js +175 -0
  117. package/dist/components/VerifyMfaModal/index.d.ts +23 -0
  118. package/dist/components/VerifyMfaModal/index.js +19 -0
  119. package/dist/components/forms/AmountInput/index.d.ts +1 -1
  120. package/dist/components/forms/ExchangeAmountInput/index.d.ts +1 -1
  121. package/dist/components/forms/OTPForm/index.d.ts +2 -2
  122. package/dist/components/forms/OTPForm/index.js +81 -64
  123. package/dist/components/ui/Badge/index.d.ts +7 -0
  124. package/dist/components/ui/Badge/index.js +9 -0
  125. package/dist/components/ui/CopyTextField/index.d.ts +10 -0
  126. package/dist/components/ui/CopyTextField/index.js +81 -0
  127. package/dist/components/ui/Modal/index.js +4 -4
  128. package/dist/components/ui/QRCode/QRCodeSvg.d.ts +17 -0
  129. package/dist/components/ui/QRCode/QRCodeSvg.js +57 -0
  130. package/dist/components/ui/QRCode/index.d.ts +5 -0
  131. package/dist/components/ui/QRCode/index.js +31 -0
  132. package/dist/components/ui/QRCode/useCorners.d.ts +1 -0
  133. package/dist/components/ui/QRCode/useCorners.js +72 -0
  134. package/dist/components/ui/QRCode/useDotsPath.d.ts +11 -0
  135. package/dist/components/ui/QRCode/useDotsPath.js +66 -0
  136. package/dist/components/ui/QRCode/useLogo.d.ts +12 -0
  137. package/dist/components/ui/QRCode/useLogo.js +52 -0
  138. package/dist/components/ui/QRCode/useMatrix.d.ts +1 -0
  139. package/dist/components/ui/QRCode/useMatrix.js +17 -0
  140. package/dist/components/ui/ToggleListItem/index.d.ts +15 -0
  141. package/dist/components/ui/ToggleListItem/index.js +52 -0
  142. package/dist/hooks/useKeyExportPostMessage.js +67 -55
  143. package/dist/hooks/useVerifyMfaModal.d.ts +22 -0
  144. package/dist/hooks/useVerifyMfaModal.js +10 -0
  145. package/dist/icons/IconCoinbaseWordmark.js +10 -13
  146. package/dist/icons/IconPinCode.d.ts +2 -0
  147. package/dist/icons/IconPinCode.js +13 -0
  148. package/dist/icons/IconShield.d.ts +2 -0
  149. package/dist/icons/IconShield.js +7 -0
  150. package/dist/icons/IconSmartPhone.d.ts +2 -0
  151. package/dist/icons/IconSmartPhone.js +7 -0
  152. package/dist/icons/index.d.ts +5 -2
  153. package/dist/icons/index.js +22 -16
  154. package/dist/index.d.ts +6 -0
  155. package/dist/index.js +220 -165
  156. package/dist/theme/theme.d.ts +104 -0
  157. package/dist/theme/tokens.d.ts +312 -0
  158. package/dist/theme/tokens.js +70 -0
  159. package/dist/utils/transition.d.ts +2 -2
  160. package/dist/version.d.ts +1 -1
  161. package/dist/version.js +1 -1
  162. package/package.json +9 -7
  163. package/dist/assets/CopyAddress.css +0 -1
  164. package/dist/assets/LinkAuthItem.css +0 -1
@@ -1,8 +1,8 @@
1
- import { jsx as o, jsxs as i, Fragment as p } from "react/jsx-runtime";
1
+ import { jsx as o, jsxs as u, Fragment as p } from "react/jsx-runtime";
2
2
  import { u as w } from "../../chunks/useSendComponentCallOnce.BHZMuo6E.js";
3
3
  import { createContext as j, useState as A, useCallback as F, useMemo as S, useId as $, useContext as z } from "react";
4
4
  import { c as x } from "../../chunks/lite.1fxw3LjI.js";
5
- import { useAppConfig as V } from "../CDPReactProvider/index.js";
5
+ import { u as V } from "../../chunks/CDPReactProvider.CIQm4C4z.js";
6
6
  import { Fund as k, FundFooter as D } from "../Fund/index.js";
7
7
  import { Button as v } from "../ui/Button/index.js";
8
8
  import { Modal as H, ModalContent as L, ModalTitle as R, ModalClose as U, ModalTrigger as W } from "../ui/Modal/index.js";
@@ -32,13 +32,13 @@ import '../../assets/FundModal.css';const B = "FundModal-module__trigger___2IuXj
32
32
  const { cryptoCurrency: r } = y();
33
33
  return /* @__PURE__ */ o(W, { asChild: !0, children: n || /* @__PURE__ */ o(v, { variant: "primary", className: x(t.trigger, l), ...s, children: e || `Deposit ${r.toUpperCase()}` }) });
34
34
  }, f = (n) => {
35
- const { showCoinbaseFooter: l } = V(), e = $(), { unmount: s, ...r } = y(), { openIn: m, submitLabel: u, title: a } = r;
35
+ const { showCoinbaseFooter: l } = V(), e = $(), { unmount: s, ...r } = y(), { openIn: m, submitLabel: i, title: a } = r;
36
36
  return /* @__PURE__ */ o(L, { "aria-describedby": void 0, ...n, children: /* @__PURE__ */ o(
37
37
  k,
38
38
  {
39
39
  className: x(t.fund, l ? "" : t["no-footer"]),
40
40
  ...r,
41
- children: /* @__PURE__ */ i(p, { children: [
41
+ children: /* @__PURE__ */ u(p, { children: [
42
42
  /* @__PURE__ */ o(C, { children: /* @__PURE__ */ o(R, { asChild: !0, children: /* @__PURE__ */ o(_, { as: "span", children: a }) }) }),
43
43
  /* @__PURE__ */ o(
44
44
  q,
@@ -47,13 +47,13 @@ import '../../assets/FundModal.css';const B = "FundModal-module__trigger___2IuXj
47
47
  openIn: m,
48
48
  unmountOnTransactionSuccess: !0,
49
49
  unmount: s,
50
- submitLabel: u,
51
- children: ({ view: d, Content: c }) => /* @__PURE__ */ i(
50
+ submitLabel: i,
51
+ children: ({ view: d, Content: c }) => /* @__PURE__ */ u(
52
52
  "div",
53
53
  {
54
54
  className: `${t["fund-inner"]} ${d === "transaction-status" ? t["tx-status"] : ""} ${d === "error" ? t["error-view"] : ""}`,
55
55
  children: [
56
- /* @__PURE__ */ i("div", { className: t["title-buttons"], children: [
56
+ /* @__PURE__ */ u("div", { className: t["title-buttons"], children: [
57
57
  d === "error" ? /* @__PURE__ */ o(C, { children: /* @__PURE__ */ o(_, { id: e, children: a }) }) : /* @__PURE__ */ o(_, { className: t.title, id: e, children: a }),
58
58
  /* @__PURE__ */ o(U, { asChild: !0, children: /* @__PURE__ */ o(
59
59
  v,
@@ -76,11 +76,11 @@ import '../../assets/FundModal.css';const B = "FundModal-module__trigger___2IuXj
76
76
  ] })
77
77
  }
78
78
  ) });
79
- }, io = ({ children: n, open: l, setIsOpen: e, ...s }) => {
79
+ }, uo = ({ children: n, open: l, setIsOpen: e, ...s }) => {
80
80
  w("fund_modal");
81
- const r = l !== void 0, [m, u] = A(!1), a = r ? l : m, d = F(
82
- (h) => r ? e?.(h) : u(h),
83
- [r, e, u]
81
+ const r = l !== void 0, [m, i] = A(!1), a = r ? l : m, d = F(
82
+ (h) => r ? e?.(h) : i(h),
83
+ [r, e, i]
84
84
  ), c = F(() => {
85
85
  d(!1);
86
86
  }, [d]), O = S(
@@ -90,16 +90,16 @@ import '../../assets/FundModal.css';const B = "FundModal-module__trigger___2IuXj
90
90
  }),
91
91
  [c, s]
92
92
  ), T = n ? g(n, b) : !1, M = n ? g(n, f) : !1, I = !T && !M;
93
- return /* @__PURE__ */ o(N.Provider, { value: O, children: /* @__PURE__ */ o(H, { open: a, onOpenChange: d, children: I ? /* @__PURE__ */ i(p, { children: [
93
+ return /* @__PURE__ */ o(N.Provider, { value: O, children: /* @__PURE__ */ o(H, { open: a, onOpenChange: d, children: I ? /* @__PURE__ */ u(p, { children: [
94
94
  /* @__PURE__ */ o(b, { children: n }),
95
95
  /* @__PURE__ */ o(f, {})
96
- ] }) : /* @__PURE__ */ i(p, { children: [
96
+ ] }) : /* @__PURE__ */ u(p, { children: [
97
97
  n,
98
98
  !M && /* @__PURE__ */ o(f, {})
99
99
  ] }) }) });
100
100
  };
101
101
  export {
102
- io as FundModal,
102
+ uo as FundModal,
103
103
  f as FundModalContent,
104
104
  b as FundModalTrigger
105
105
  };
@@ -1,11 +1,11 @@
1
1
  import "react/jsx-runtime";
2
2
  import "react";
3
- import "../CDPReactProvider/index.js";
3
+ import "../../chunks/CDPReactProvider.CIQm4C4z.js";
4
4
  import "../SignIn/index.js";
5
5
  import "@coinbase/cdp-hooks";
6
6
  import "../ui/SwitchSlideTransition/index.js";
7
7
  import "../ui/VisuallyHidden/index.js";
8
- import { a as A } from "../../chunks/LinkAuthFlow.3HN888DV.js";
8
+ import { a as A } from "../../chunks/LinkAuthFlow.BaUSMzGH.js";
9
9
  import "./LinkAuthItems.js";
10
10
  import "./types.js";
11
11
  import "../SignIn/SignInProvider.js";
@@ -3,9 +3,9 @@ import { c as k } from "../../chunks/lite.1fxw3LjI.js";
3
3
  import "react";
4
4
  import { Button as p } from "../ui/Button/index.js";
5
5
  import { IconArrowLeft as f } from "../../icons/IconArrowLeft.js";
6
- import { b as w } from "../../chunks/LinkAuthFlow.3HN888DV.js";
6
+ import { b as w } from "../../chunks/LinkAuthFlow.BaUSMzGH.js";
7
7
  import { useLinkAuthContext as _ } from "./LinkAuthProvider.js";
8
- import "../CDPReactProvider/index.js";
8
+ import "../../chunks/CDPReactProvider.CIQm4C4z.js";
9
9
  import { methodToView as b } from "./utils.js";
10
10
  import '../../assets/LinkAuthFlowBackButton.css';const h = "LinkAuthFlowBackButton-module__button___wPKfW", B = "LinkAuthFlowBackButton-module__icon___OUmzY", o = {
11
11
  button: h,
@@ -1,7 +1,7 @@
1
1
  import "react/jsx-runtime";
2
2
  import "react";
3
- import "../CDPReactProvider/index.js";
4
- import { L as e, u as n, b as s } from "../../chunks/LinkAuthFlow.3HN888DV.js";
3
+ import "../../chunks/CDPReactProvider.CIQm4C4z.js";
4
+ import { L as e, u as n, b as s } from "../../chunks/LinkAuthFlow.BaUSMzGH.js";
5
5
  export {
6
6
  e as LinkAuthFlowProvider,
7
7
  n as useLinkAuthFlow,
@@ -1,48 +1,29 @@
1
- import { jsxs as _, jsx as t } from "react/jsx-runtime";
1
+ import { jsx as m } from "react/jsx-runtime";
2
2
  import "react";
3
- import { Button as o } from "../ui/Button/index.js";
4
- import { IconMinus as u } from "../../icons/IconMinus.js";
5
- import { IconPlus as s } from "../../icons/IconPlus.js";
6
- import "../CDPReactProvider/index.js";
7
- import '../../assets/LinkAuthItem.css';const d = "LinkAuthItem-module__item___NE3CT", l = "LinkAuthItem-module__button___nM5Tc", i = {
8
- item: d,
9
- "item-icon": "LinkAuthItem-module__item-icon___ZIQny",
10
- "item-text": "LinkAuthItem-module__item-text___-5DVL",
11
- "item-action": "LinkAuthItem-module__item-action___4wOIN",
12
- button: l
13
- }, v = ({
14
- authMethod: h,
15
- userAlias: a,
16
- icon: m,
17
- isLinked: r,
18
- isPending: n,
19
- label: e,
20
- onLink: c
21
- }) => /* @__PURE__ */ _("div", { className: i.item, children: [
22
- m && /* @__PURE__ */ t("div", { className: i["item-icon"], children: m }),
23
- /* @__PURE__ */ t("div", { className: i["item-text"], children: a || e }),
24
- /* @__PURE__ */ t("div", { className: i["item-action"], children: r ? /* @__PURE__ */ t(
25
- o,
26
- {
27
- variant: "secondary",
28
- className: i.button,
29
- isPending: n,
30
- disabled: !0,
31
- "aria-label": `Unlink ${e}`,
32
- children: /* @__PURE__ */ t(u, { "aria-hidden": "true" })
33
- }
34
- ) : /* @__PURE__ */ t(
35
- o,
36
- {
37
- variant: "primary",
38
- className: i.button,
39
- onClick: c,
40
- "aria-label": `Link ${e}`,
41
- isPending: n,
42
- children: /* @__PURE__ */ t(s, { "aria-hidden": "true" })
43
- }
44
- ) })
45
- ] });
3
+ import { ToggleListItem as s } from "../ui/ToggleListItem/index.js";
4
+ import "../../chunks/CDPReactProvider.CIQm4C4z.js";
5
+ const u = ({
6
+ authMethod: n,
7
+ userAlias: e,
8
+ icon: o,
9
+ isLinked: i,
10
+ isPending: a,
11
+ label: t,
12
+ onLink: r
13
+ }) => /* @__PURE__ */ m(
14
+ s,
15
+ {
16
+ icon: o,
17
+ label: e || t,
18
+ isActive: i,
19
+ isPending: a,
20
+ onActivate: r,
21
+ isDisabled: i,
22
+ activateAriaLabel: `Link ${t}`,
23
+ deactivateAriaLabel: `Unlink ${t}`,
24
+ size: "sm"
25
+ }
26
+ );
46
27
  export {
47
- v as LinkAuthItem
28
+ u as LinkAuthItem
48
29
  };
@@ -1,7 +1,7 @@
1
1
  import { jsx as l } from "react/jsx-runtime";
2
2
  import { c as I } from "../../chunks/lite.1fxw3LjI.js";
3
3
  import { useMemo as b } from "react";
4
- import "../CDPReactProvider/index.js";
4
+ import "../../chunks/CDPReactProvider.CIQm4C4z.js";
5
5
  import { IconAppleLogo as d } from "../../icons/IconAppleLogo.js";
6
6
  import { IconEnvelope as f } from "../../icons/IconEnvelope.js";
7
7
  import { IconGoogleColorLogo as L } from "../../icons/IconGoogleColorLogo.js";
@@ -1,7 +1,7 @@
1
1
  import { jsx as m } from "react/jsx-runtime";
2
2
  import { useCurrentUser as c } from "@coinbase/cdp-hooks";
3
3
  import { createContext as p, useContext as M, useMemo as r, useReducer as A, useEffect as f } from "react";
4
- import { useAppConfig as L } from "../CDPReactProvider/index.js";
4
+ import { u as L } from "../../chunks/CDPReactProvider.CIQm4C4z.js";
5
5
  import { formatPhoneNumber as k } from "../../utils/formatPhoneNumber.js";
6
6
  const T = {
7
7
  methodToLink: null,
@@ -2,14 +2,14 @@ import { jsx as r, jsxs as h, Fragment as w } from "react/jsx-runtime";
2
2
  import { useLinkOAuth as C } from "@coinbase/cdp-hooks";
3
3
  import { u as I } from "../../chunks/useSendComponentCallOnce.BHZMuo6E.js";
4
4
  import { useRef as d, useState as N, useCallback as u } from "react";
5
- import "../CDPReactProvider/index.js";
5
+ import "../../chunks/CDPReactProvider.CIQm4C4z.js";
6
6
  import { useOauthStatusModal as P } from "../OAuthStatusModal/index.js";
7
7
  import { Banner as U } from "../ui/Banner/index.js";
8
8
  import { getMessageFromUnknownError as D } from "../../utils/getMessageFromUnknownError.js";
9
9
  import "libphonenumber-js";
10
10
  import { toOAuthProviderType as H } from "../../utils/toOAuthProviderType.js";
11
- import { L as M, a as v } from "../../chunks/LinkAuthFlow.3HN888DV.js";
12
- import { u as mt } from "../../chunks/LinkAuthFlow.3HN888DV.js";
11
+ import { L as M, a as v } from "../../chunks/LinkAuthFlow.BaUSMzGH.js";
12
+ import { u as mt } from "../../chunks/LinkAuthFlow.BaUSMzGH.js";
13
13
  import { LinkAuthFlowBackButton as V } from "./LinkAuthFlowBackButton.js";
14
14
  import { LinkAuthItem as dt } from "./LinkAuthItem.js";
15
15
  import { LinkAuthItems as ft } from "./LinkAuthItems.js";
@@ -1,4 +1,4 @@
1
- import "../CDPReactProvider/index.js";
1
+ import "../../chunks/CDPReactProvider.CIQm4C4z.js";
2
2
  const t = ["list", "email", "sms"];
3
3
  export {
4
4
  t as LINK_AUTH_FLOW_VIEWS
@@ -1,4 +1,4 @@
1
- import "../CDPReactProvider/index.js";
1
+ import "../../chunks/CDPReactProvider.CIQm4C4z.js";
2
2
  import { LINK_AUTH_FLOW_VIEWS as i } from "./types.js";
3
3
  const t = (r) => i.includes(r), o = (r) => r && t(r) ? r : "list";
4
4
  export {
@@ -2,7 +2,7 @@ import { jsx as o, jsxs as n, Fragment as d } from "react/jsx-runtime";
2
2
  import { u as p } from "../../chunks/useSendComponentCallOnce.BHZMuo6E.js";
3
3
  import { createContext as f, useMemo as L, useContext as g } from "react";
4
4
  import { c as A } from "../../chunks/lite.1fxw3LjI.js";
5
- import "../CDPReactProvider/index.js";
5
+ import "../../chunks/CDPReactProvider.CIQm4C4z.js";
6
6
  import { LinkAuth as C, LinkAuthError as x } from "../LinkAuth/index.js";
7
7
  import { Button as m } from "../ui/Button/index.js";
8
8
  import { Modal as b, ModalContent as v, ModalTitle as w, ModalClose as N, ModalTrigger as T } from "../ui/Modal/index.js";
@@ -11,7 +11,7 @@ import { IconXMark as F } from "../../icons/IconXMark.js";
11
11
  import { childrenHasComponent as c } from "../../utils/childrenHasComponent.js";
12
12
  import { LinkAuthTitle as H } from "../LinkAuth/LinkAuthTitle.js";
13
13
  import { LinkAuthFlowBackButton as j } from "../LinkAuth/LinkAuthFlowBackButton.js";
14
- import { a as B } from "../../chunks/LinkAuthFlow.3HN888DV.js";
14
+ import { a as B } from "../../chunks/LinkAuthFlow.BaUSMzGH.js";
15
15
  import '../../assets/LinkAuthModal.css';const S = "LinkAuthModal-module__header___qoco6", D = "LinkAuthModal-module__error___Srl7H", E = "LinkAuthModal-module__trigger___aHDfG", r = {
16
16
  header: S,
17
17
  error: D,
@@ -3,7 +3,7 @@ import "@coinbase/cdp-core";
3
3
  import { useOAuthState as I } from "@coinbase/cdp-hooks";
4
4
  import { u as b } from "../../chunks/useSendComponentCallOnce.BHZMuo6E.js";
5
5
  import { useCallback as N, useState as O, useEffect as h, useRef as A } from "react";
6
- import { useProviderName as $ } from "../CDPReactProvider/index.js";
6
+ import { a as $ } from "../../chunks/CDPReactProvider.CIQm4C4z.js";
7
7
  import { CoinbaseFooter as k } from "../ui/CoinbaseFooter/index.js";
8
8
  import { LoadingSpinner as w } from "../ui/LoadingSpinner/index.js";
9
9
  import { Modal as E, ModalContent as L, ModalTitle as y, ModalDescription as R } from "../ui/Modal/index.js";
@@ -1,6 +1,6 @@
1
1
  import { jsx as n, jsxs as r } from "react/jsx-runtime";
2
2
  import { useCallback as v, useMemo as y } from "react";
3
- import "../CDPReactProvider/index.js";
3
+ import "../../chunks/CDPReactProvider.CIQm4C4z.js";
4
4
  import { useSignInWithOAuth as S } from "./hooks/useSignInWithOAuth.js";
5
5
  import { useSignInContext as _ } from "./SignInProvider.js";
6
6
  import { Button as C } from "../ui/Button/index.js";
@@ -5,7 +5,7 @@ import { IconArrowLeft as d } from "../../icons/IconArrowLeft.js";
5
5
  import "../../theme/theme.js";
6
6
  import { useSignInContext as B } from "./SignInProvider.js";
7
7
  import "@coinbase/cdp-hooks";
8
- import "../CDPReactProvider/index.js";
8
+ import "../../chunks/CDPReactProvider.CIQm4C4z.js";
9
9
  import '../../assets/SignInBackButton.css';const _ = "SignInBackButton-module__icon___stNFS", k = {
10
10
  icon: _
11
11
  }, T = ({
@@ -1,9 +1,9 @@
1
1
  import { jsx as i } from "react/jsx-runtime";
2
2
  import "react";
3
- import { a as d } from "../../chunks/index.Bvudzh_y.js";
3
+ import { a as d } from "../../chunks/index.C_DV0Ud7.js";
4
4
  import { useSignInContext as h } from "./SignInProvider.js";
5
5
  import "@coinbase/cdp-hooks";
6
- import "../CDPReactProvider/index.js";
6
+ import "../../chunks/CDPReactProvider.CIQm4C4z.js";
7
7
  import '../../assets/SignInDescription.css';const u = "SignInDescription-module__description___jZLc6", _ = {
8
8
  description: u
9
9
  }, M = ({
@@ -1,8 +1,8 @@
1
1
  import { jsx as a } from "react/jsx-runtime";
2
2
  import { useRef as d, useState as I, useLayoutEffect as p } from "react";
3
- import "../CDPReactProvider/index.js";
3
+ import "../../chunks/CDPReactProvider.CIQm4C4z.js";
4
4
  import { SwitchFadeTransition as T } from "../ui/SwitchFadeTransition/index.js";
5
- import { a as y } from "../../chunks/index.Bvudzh_y.js";
5
+ import { a as y } from "../../chunks/index.C_DV0Ud7.js";
6
6
  import { useSignInContext as v } from "./SignInProvider.js";
7
7
  import "@coinbase/cdp-hooks";
8
8
  import '../../assets/SignInForm.css';const E = {
@@ -1,9 +1,9 @@
1
1
  import { jsx as i } from "react/jsx-runtime";
2
- import { useAppConfig as e } from "../CDPReactProvider/index.js";
3
- import '../../assets/SignInImage.css';const a = "SignInImage-module__logo___rlzt-", m = {
4
- logo: a
5
- }, p = (t) => /^https?:\/\//.test(t), f = ({ className: t = "", alt: n, src: g }) => {
6
- const o = e(), s = o.appLogoUrl && p(o.appLogoUrl) ? o.appLogoUrl : void 0, l = g && p(g) ? g : s, r = n || o.appName || "";
2
+ import { u as a } from "../../chunks/CDPReactProvider.CIQm4C4z.js";
3
+ import '../../assets/SignInImage.css';const e = "SignInImage-module__logo___rlzt-", m = {
4
+ logo: e
5
+ }, p = (t) => /^https?:\/\//.test(t), f = ({ className: t = "", alt: s, src: g }) => {
6
+ const o = a(), n = o.appLogoUrl && p(o.appLogoUrl) ? o.appLogoUrl : void 0, l = g && p(g) ? g : n, r = s || o.appName || "";
7
7
  return l ? /* @__PURE__ */ i(
8
8
  "img",
9
9
  {
@@ -1,6 +1,6 @@
1
1
  import { jsx as h } from "react/jsx-runtime";
2
2
  import { createContext as m, useContext as l, useMemo as i } from "react";
3
- import { useAppConfig as f } from "../CDPReactProvider/index.js";
3
+ import { u as f } from "../../chunks/CDPReactProvider.CIQm4C4z.js";
4
4
  import "@coinbase/cdp-hooks";
5
5
  import { useSignInReducer as p } from "./useSignInReducer.js";
6
6
  const a = {
@@ -1,9 +1,9 @@
1
1
  import { jsx as n } from "react/jsx-runtime";
2
2
  import "react";
3
- import { a as c } from "../../chunks/index.Bvudzh_y.js";
3
+ import { a as c } from "../../chunks/index.C_DV0Ud7.js";
4
4
  import { useSignInContext as d } from "./SignInProvider.js";
5
5
  import "@coinbase/cdp-hooks";
6
- import "../CDPReactProvider/index.js";
6
+ import "../../chunks/CDPReactProvider.CIQm4C4z.js";
7
7
  import '../../assets/SignInTitle.css';const l = "SignInTitle-module__heading___QJ071", g = {
8
8
  heading: l
9
9
  }, S = ({
@@ -8,7 +8,7 @@ import { useEmailForm as A } from "../hooks/useEmailForm.js";
8
8
  import { useOTPForm as B } from "../hooks/useOTPForm.js";
9
9
  import { SignInCredentials as G } from "../SignInCredentials.js";
10
10
  import { useSignInContext as E } from "../SignInProvider.js";
11
- import "../../CDPReactProvider/index.js";
11
+ import "../../../chunks/CDPReactProvider.CIQm4C4z.js";
12
12
  const J = ["email", "otp"], N = ({
13
13
  step: n,
14
14
  autoFocus: s,
@@ -1,7 +1,7 @@
1
1
  import { jsxs as h, Fragment as a, jsx as e } from "react/jsx-runtime";
2
2
  import "@coinbase/cdp-hooks";
3
3
  import { useRef as A, useCallback as S, useEffect as v } from "react";
4
- import { useAppConfig as m } from "../../CDPReactProvider/index.js";
4
+ import { u as m } from "../../../chunks/CDPReactProvider.CIQm4C4z.js";
5
5
  import { useSignInWithOAuth as O } from "../hooks/useSignInWithOAuth.js";
6
6
  import { Button as W } from "../../ui/Button/index.js";
7
7
  import { ServerError as I } from "../../ui/ServerError/index.js";
@@ -11,7 +11,7 @@ import { useOTPForm as _ } from "../hooks/useOTPForm.js";
11
11
  import { usePhoneNumberForm as $ } from "../hooks/usePhoneNumberForm.js";
12
12
  import { SignInCredentials as K } from "../SignInCredentials.js";
13
13
  import { useSignInContext as O } from "../SignInProvider.js";
14
- import "../../CDPReactProvider/index.js";
14
+ import "../../../chunks/CDPReactProvider.CIQm4C4z.js";
15
15
  const ee = ["phoneNumber", "otp"], te = ({
16
16
  step: o,
17
17
  autoFocus: i,
@@ -1,7 +1,7 @@
1
1
  import { jsx as n, jsxs as r, Fragment as c } from "react/jsx-runtime";
2
- import { u as d } from "../../chunks/useSendComponentCallOnce.BHZMuo6E.js";
2
+ import { u } from "../../chunks/useSendComponentCallOnce.BHZMuo6E.js";
3
3
  import "react";
4
- import { useAppConfig as u } from "../CDPReactProvider/index.js";
4
+ import { u as d } from "../../chunks/CDPReactProvider.CIQm4C4z.js";
5
5
  import { SignInAuthMethodButtons as f } from "./SignInAuthMethodButtons.js";
6
6
  import { SignInBackButton as I } from "./SignInBackButton.js";
7
7
  import { SignInDescription as S } from "./SignInDescription.js";
@@ -23,7 +23,7 @@ import '../../assets/SignIn.css';const F = "SignIn-module__footer___3Gkbc", t =
23
23
  onSuccess: p,
24
24
  ...a
25
25
  }) => {
26
- const { state: _ } = h(), { showCoinbaseFooter: g } = u(), s = typeof o == "function" ? o(_) : o;
26
+ const { state: _ } = h(), { showCoinbaseFooter: g } = d(), s = typeof o == "function" ? o(_) : o;
27
27
  return /* @__PURE__ */ r("div", { className: `${t["sign-in"]} ${e}`, ...a, children: [
28
28
  s,
29
29
  !s && /* @__PURE__ */ r(c, { children: [
@@ -40,7 +40,7 @@ import '../../assets/SignIn.css';const F = "SignIn-module__footer___3Gkbc", t =
40
40
  g && /* @__PURE__ */ n(b, { className: t.footer })
41
41
  ] })
42
42
  ] });
43
- }, V = ({ authMethods: e, ...o }) => (d("sign_in"), /* @__PURE__ */ n(C, { authMethods: e, children: /* @__PURE__ */ n(N, { ...o }) }));
43
+ }, V = ({ authMethods: e, ...o }) => (u("sign_in"), /* @__PURE__ */ n(C, { authMethods: e, children: /* @__PURE__ */ n(N, { ...o }) }));
44
44
  export {
45
45
  V as SignIn,
46
46
  f as SignInAuthMethodButtons,
@@ -1,3 +1,3 @@
1
1
  import "@coinbase/cdp-hooks";
2
2
  import "react";
3
- import "../CDPReactProvider/index.js";
3
+ import "../../chunks/CDPReactProvider.CIQm4C4z.js";
@@ -1,6 +1,6 @@
1
1
  import { useReducer as u } from "react";
2
2
  import "@coinbase/cdp-hooks";
3
- import "../CDPReactProvider/index.js";
3
+ import "../../chunks/CDPReactProvider.CIQm4C4z.js";
4
4
  function l(e, r) {
5
5
  switch (r.type) {
6
6
  case "SET_AUTH_METHODS":
@@ -2,7 +2,7 @@ import { jsx as n, jsxs as t, Fragment as c } from "react/jsx-runtime";
2
2
  import { u as C } from "../../chunks/useSendComponentCallOnce.BHZMuo6E.js";
3
3
  import { createContext as b, useMemo as x, useContext as v } from "react";
4
4
  import { c as N } from "../../chunks/lite.1fxw3LjI.js";
5
- import { useAppConfig as w } from "../CDPReactProvider/index.js";
5
+ import { u as w } from "../../chunks/CDPReactProvider.CIQm4C4z.js";
6
6
  import { SignIn as T } from "../SignIn/index.js";
7
7
  import "@coinbase/cdp-hooks";
8
8
  import { Button as h } from "../ui/Button/index.js";
@@ -36,14 +36,14 @@ import '../../assets/SignInModal.css';const O = "SignInModal-module__trigger___I
36
36
  }, p = ({
37
37
  children: i,
38
38
  className: o = "",
39
- label: s,
39
+ label: a,
40
40
  ...r
41
- }) => /* @__PURE__ */ n(k, { asChild: !0, children: i || /* @__PURE__ */ n(h, { className: N(e.trigger, o), ...r, children: s || "Sign in" }) }), m = (i) => {
42
- const { showCoinbaseFooter: o } = w(), { authMethods: s, onSuccess: r } = q();
41
+ }) => /* @__PURE__ */ n(k, { asChild: !0, children: i || /* @__PURE__ */ n(h, { className: N(e.trigger, o), ...r, children: a || "Sign in" }) }), m = (i) => {
42
+ const { showCoinbaseFooter: o } = w(), { authMethods: a, onSuccess: r } = q();
43
43
  return /* @__PURE__ */ n(B, { ...i, children: /* @__PURE__ */ n(
44
44
  T,
45
45
  {
46
- authMethods: s,
46
+ authMethods: a,
47
47
  onSuccess: r,
48
48
  className: `${e["sign-in"]} ${o ? "" : e["no-footer"]}`,
49
49
  ...i,
@@ -54,13 +54,13 @@ import '../../assets/SignInModal.css';const O = "SignInModal-module__trigger___I
54
54
  /* @__PURE__ */ n(D, { asChild: !0, children: /* @__PURE__ */ n(h, { "aria-label": "Close", size: "md", variant: "transparentSecondary", children: /* @__PURE__ */ n(A, { className: e["close-icon"] }) }) })
55
55
  ] }),
56
56
  /* @__PURE__ */ n("div", { className: e["sign-in-image"], children: /* @__PURE__ */ n(z, {}) }),
57
- /* @__PURE__ */ n(E, { onSuccess: r, children: ({ authMethod: l, step: a, Form: d }) => /* @__PURE__ */ t(c, { children: [
57
+ /* @__PURE__ */ n(E, { onSuccess: r, children: ({ authMethod: s, step: l, Form: d }) => /* @__PURE__ */ t(c, { children: [
58
58
  /* @__PURE__ */ t("div", { className: e["title-desc-wrapper"], children: [
59
- a === "verification" ? /* @__PURE__ */ n(g, { as: "div", children: /* @__PURE__ */ n(_, {}) }) : /* @__PURE__ */ n(_, {}),
60
- a === "credentials" ? /* @__PURE__ */ n(g, { as: "div", children: /* @__PURE__ */ n(u, { authMethod: l }) }) : /* @__PURE__ */ n(u, { authMethod: l })
59
+ l === "verification" ? /* @__PURE__ */ n(g, { as: "div", children: /* @__PURE__ */ n(_, {}) }) : /* @__PURE__ */ n(_, {}),
60
+ l === "credentials" ? /* @__PURE__ */ n(g, { as: "div", children: /* @__PURE__ */ n(u, { authMethod: s }) }) : /* @__PURE__ */ n(u, { authMethod: s })
61
61
  ] }),
62
62
  /* @__PURE__ */ n("div", { className: e["sign-in-form"], children: d }),
63
- a === "credentials" && /* @__PURE__ */ n(H, { activeMethod: l })
63
+ l === "credentials" && /* @__PURE__ */ n(H, { activeMethod: s })
64
64
  ] }) }),
65
65
  o && /* @__PURE__ */ n(J, { className: e.footer })
66
66
  ] })
@@ -69,13 +69,13 @@ import '../../assets/SignInModal.css';const O = "SignInModal-module__trigger___I
69
69
  }, mn = ({
70
70
  authMethods: i,
71
71
  children: o,
72
- open: s,
72
+ open: a,
73
73
  setIsOpen: r,
74
- onSuccess: l
74
+ onSuccess: s
75
75
  }) => {
76
76
  C("sign_in_modal");
77
- const a = o ? f(o, p) : !1, d = o ? f(o, m) : !1, S = !a && !d, I = x(() => ({ authMethods: i, onSuccess: l }), [i, l]);
78
- return /* @__PURE__ */ n(M.Provider, { value: I, children: /* @__PURE__ */ n(F, { open: s, onOpenChange: r, children: S ? /* @__PURE__ */ t(c, { children: [
77
+ const l = o ? f(o, p) : !1, d = o ? f(o, m) : !1, S = !l && !d, I = x(() => ({ authMethods: i, onSuccess: s }), [i, s]);
78
+ return /* @__PURE__ */ n(M.Provider, { value: I, children: /* @__PURE__ */ n(F, { open: a, onOpenChange: r, children: S ? /* @__PURE__ */ t(c, { children: [
79
79
  /* @__PURE__ */ n(p, { children: o }),
80
80
  /* @__PURE__ */ n(m, {})
81
81
  ] }) : /* @__PURE__ */ t(c, { children: [
@@ -1,15 +1,13 @@
1
- import { CSSProperties, ReactNode, JSX } from 'react';
1
+ import { HTMLAttributes, JSX } from 'react';
2
2
  import { Theme } from '../../theme/theme';
3
3
  import { CDPWebCSSVariables } from '../../theme/utils';
4
4
  export type ThemeProviderProps = {
5
- children: ReactNode;
6
- className?: string;
7
- style?: CSSProperties;
8
5
  theme?: Partial<Theme>;
9
- };
6
+ "data-cdp-provider"?: string;
7
+ } & HTMLAttributes<HTMLDivElement>;
10
8
  export interface ThemeContextValue {
11
9
  theme: Theme;
12
10
  cssVariables: CDPWebCSSVariables;
13
11
  }
14
- export declare const ThemeProvider: ({ children, className, style, theme: themeOverrides, }: ThemeProviderProps) => JSX.Element;
12
+ export declare const ThemeProvider: ({ children, className, style, theme: themeOverrides, "data-cdp-provider": nameFromProps, ...props }: ThemeProviderProps) => JSX.Element;
15
13
  export declare const useTheme: () => ThemeContextValue;
@@ -1,33 +1,44 @@
1
- import { jsx as m } from "react/jsx-runtime";
2
- import { createContext as p, useContext as u, useMemo as s } from "react";
3
- import { theme as n } from "../../theme/theme.js";
4
- import { themeToCssVariables as l } from "../../theme/utils.js";
5
- import '../../assets/ThemeProvider.css';const w = "ThemeProvider-module__wrapper___aXwhZ", d = {
6
- wrapper: w
7
- }, a = p(void 0), _ = ({
1
+ import { jsx as a } from "react/jsx-runtime";
2
+ import { createContext as v, useContext as w, useMemo as s, useId as x } from "react";
3
+ import { theme as m } from "../../theme/theme.js";
4
+ import { themeToCssVariables as T } from "../../theme/utils.js";
5
+ import '../../assets/ThemeProvider.css';const f = "ThemeProvider-module__wrapper___aXwhZ", _ = {
6
+ wrapper: f
7
+ }, n = v(void 0), V = ({
8
8
  children: e,
9
9
  className: c = "",
10
- style: i,
11
- theme: o
10
+ style: p,
11
+ theme: t,
12
+ "data-cdp-provider": i,
13
+ ...d
12
14
  }) => {
13
- const t = s(
14
- () => o ? { ...n, ...o } : n,
15
- [o]
16
- ), r = s(() => l(t), [t]), h = s(
15
+ const r = s(
16
+ () => t ? { ...m, ...t } : m,
17
+ [t]
18
+ ), h = x(), u = i ?? h, o = s(() => T(r), [r]), l = s(
17
19
  () => ({
18
- theme: t,
19
- cssVariables: r
20
+ theme: r,
21
+ cssVariables: o
20
22
  }),
21
- [t, r]
23
+ [r, o]
22
24
  );
23
- return /* @__PURE__ */ m(a.Provider, { value: h, children: /* @__PURE__ */ m("div", { className: `${d.wrapper} ${c}`, style: { ...i, ...r }, children: e }) });
24
- }, C = () => {
25
- const e = u(a);
25
+ return /* @__PURE__ */ a(n.Provider, { value: l, children: /* @__PURE__ */ a(
26
+ "div",
27
+ {
28
+ className: `${_.wrapper} ${c}`,
29
+ style: { ...p, ...o },
30
+ ...d,
31
+ "data-cdp-provider": u,
32
+ children: e
33
+ }
34
+ ) });
35
+ }, $ = () => {
36
+ const e = w(n);
26
37
  if (!e)
27
38
  throw new Error("useTheme must be used within a ThemeProvider");
28
39
  return e;
29
40
  };
30
41
  export {
31
- _ as ThemeProvider,
32
- C as useTheme
42
+ V as ThemeProvider,
43
+ $ as useTheme
33
44
  };
@@ -0,0 +1,6 @@
1
+ import { ElementType, HTMLAttributes } from 'react';
2
+ import { VerifyMfaMethodComponentProps } from './types';
3
+ export interface VerifyMfaDescriptionProps extends VerifyMfaMethodComponentProps, HTMLAttributes<HTMLElement> {
4
+ as?: ElementType;
5
+ }
6
+ export declare const VerifyMfaDescription: ({ as: Component, children, className, method: methodFromProps, step: stepFromProps, ...props }: VerifyMfaDescriptionProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,21 @@
1
+ import { jsx as s } from "react/jsx-runtime";
2
+ import "react";
3
+ import { m as f } from "../../chunks/index.Dp-lIxM1.js";
4
+ import "@coinbase/cdp-hooks";
5
+ import { useVerifyMfaContext as a } from "./VerifyMfaProvider.js";
6
+ import '../../assets/VerifyMfaDescription.css';const y = "VerifyMfaDescription-module__description___mDWgu", _ = {
7
+ description: y
8
+ }, x = ({
9
+ as: i = "p",
10
+ children: t,
11
+ className: r = "",
12
+ method: n,
13
+ step: p,
14
+ ...m
15
+ }) => {
16
+ const { state: o } = a(), c = p || o.step, e = n || o.method, d = f[e].description;
17
+ return /* @__PURE__ */ s(i, { className: `${_.description} ${r}`, ...m, children: t || /* @__PURE__ */ s(d, { step: c, method: e }) });
18
+ };
19
+ export {
20
+ x as VerifyMfaDescription
21
+ };