@coinbase/cdp-react 0.0.80 → 0.0.82

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.
@@ -1 +1 @@
1
- .CountrySelect-module__country-select-trigger___xGSAp{--cdp-web-button-ring-inset-color: var(--cdp-web-colors-input-border-default);--cdp-web-button-ring-inset-width: 1px;background-color:var(--cdp-web-colors-input-bg-default);border-radius:var(--cdp-web-borderRadius-input);color:var(--cdp-web-colors-input-text-default);font-family:var(--cdp-web-font-family-input);font-weight:500;text-align:left;justify-content:space-between}.CountrySelect-module__select-icon___wEQVx{transform:rotate(180deg);transition:transform .15s ease-in-out}.CountrySelect-module__country-select-trigger___xGSAp[data-state=open] .CountrySelect-module__select-icon___wEQVx{transform:rotate(0)}.CountrySelect-module__country-select-trigger___xGSAp:focus{outline:none}.CountrySelect-module__country-select-trigger___xGSAp:focus-visible{--cdp-web-button-ring-inset-color: var(--cdp-web-colors-input-border-focus);--cdp-web-button-ring-inset-width: 2px;outline:none}.CountrySelect-module__country-select-content___WSd9-{width:auto}.CountrySelect-module__country-select-item___Mr6JZ{display:flex;align-items:center;gap:.25em}.CountrySelect-module__flag___bNBsn{transform:translateY(.05em)}.CountrySelect-module__country-select-content___WSd9- .CountrySelect-module__country-select-item___Mr6JZ{gap:.5em}.CountrySelect-module__country-calling-code___d61ih{color:var(--cdp-web-colors-select-list-item-text-muted)}
1
+ .CountrySelect-module__country-select-trigger___xGSAp{--cdp-web-button-ring-inset-color: var(--cdp-web-colors-input-border-default);--cdp-web-button-ring-inset-width: 1px;background-color:var(--cdp-web-colors-input-bg-default);border-radius:var(--cdp-web-borderRadius-input);color:var(--cdp-web-colors-input-text-default);font-family:var(--cdp-web-font-family-input);font-weight:500;text-align:left;justify-content:space-between}.CountrySelect-module__select-icon___wEQVx{transform:rotate(0);transition:transform .15s ease-in-out}.CountrySelect-module__country-select-trigger___xGSAp[data-state=open] .CountrySelect-module__select-icon___wEQVx{transform:rotate(180deg)}.CountrySelect-module__country-select-trigger___xGSAp:focus{outline:none}.CountrySelect-module__country-select-trigger___xGSAp:focus-visible{--cdp-web-button-ring-inset-color: var(--cdp-web-colors-input-border-focus);--cdp-web-button-ring-inset-width: 2px;outline:none}.CountrySelect-module__country-select-content___WSd9-{width:auto}.CountrySelect-module__country-select-item___Mr6JZ{display:flex;align-items:center;gap:.25em}.CountrySelect-module__flag___bNBsn{transform:translateY(.05em)}.CountrySelect-module__country-select-content___WSd9- .CountrySelect-module__country-select-item___Mr6JZ{gap:.5em}.CountrySelect-module__country-calling-code___d61ih{color:var(--cdp-web-colors-select-list-item-text-muted)}
@@ -1 +1 @@
1
- .Modal-module__modal___MUsZA{--shadow-md: 0 4px 6px -1px rgb(0 0 0 / 10%), 0 2px 4px -2px rgb(0 0 0 / 10%);box-sizing:border-box;box-shadow:var(--shadow-md);width:100%;max-width:28.125em;min-width:0;background:var(--cdp-web-colors-page-bg-default);border-radius:var(--cdp-web-borderRadius-modal);outline:1px solid var(--cdp-web-colors-page-border-default);overflow:hidden;position:relative}.Modal-module__modal___MUsZA[data-state=open]{animation:Modal-module__slide-in___p-A8u .2s ease-out,Modal-module__fade-in___NfUjS .2s ease-out}.Modal-module__modal___MUsZA[data-state=closed]{animation:Modal-module__slide-out___hrRK1 .2s ease-in,Modal-module__fade-out___LpBNV .2s ease-in}.Modal-module__overlay___-RqGQ{background:var(--cdp-web-colors-bg-overlay);box-sizing:border-box;-webkit-backdrop-filter:blur(.5em);backdrop-filter:blur(.5em);display:grid;grid-template-rows:auto 1fr;inset:0;overflow-y:auto;place-items:end center;position:fixed;z-index:auto}.Modal-module__overlay___-RqGQ[data-state=open]{animation:Modal-module__fade-in___NfUjS .2s ease-out}.Modal-module__overlay___-RqGQ[data-state=closed]{animation:Modal-module__fade-out___LpBNV .2s ease-in}.Modal-module__spacer___dIfOA{height:1em}@keyframes Modal-module__fade-in___NfUjS{0%{opacity:0}to{opacity:1}}@keyframes Modal-module__fade-out___LpBNV{0%{opacity:1}to{opacity:0}}@keyframes Modal-module__slide-in___p-A8u{0%{transform:translateY(100%)}to{transform:translateY(0)}}@keyframes Modal-module__slide-out___hrRK1{0%{transform:translateY(0)}to{transform:translateY(100%)}}@media (min-width: 400px){.Modal-module__overlay___-RqGQ{padding:.5rem}}@media (min-width: 450px){.Modal-module__overlay___-RqGQ{place-items:center;padding:1rem;grid-template-rows:1fr}.Modal-module__modal___MUsZA{height:auto}.Modal-module__spacer___dIfOA{display:none}@keyframes Modal-module__slide-in___p-A8u{0%{transform:translateY(10%)}to{transform:translateY(0)}}@keyframes Modal-module__slide-out___hrRK1{0%{transform:translateY(0)}to{transform:translateY(10%)}}}
1
+ .Modal-module__theme-override___tz6IM{display:contents}.Modal-module__modal___MUsZA{--shadow-md: 0 4px 6px -1px rgb(0 0 0 / 10%), 0 2px 4px -2px rgb(0 0 0 / 10%);box-sizing:border-box;box-shadow:var(--shadow-md);width:100%;max-width:28.125em;min-width:0;background:var(--cdp-web-colors-page-bg-default);border-radius:var(--cdp-web-borderRadius-modal);outline:1px solid var(--cdp-web-colors-page-border-default);overflow:hidden;position:relative;z-index:var(--cdp-web-zIndex-modal-dialog)}.Modal-module__modal___MUsZA[data-state=open]{animation:Modal-module__slide-in___p-A8u .2s ease-out,Modal-module__fade-in___NfUjS .2s ease-out}.Modal-module__modal___MUsZA[data-state=closed]{animation:Modal-module__slide-out___hrRK1 .2s ease-in,Modal-module__fade-out___LpBNV .2s ease-in}.Modal-module__overlay___-RqGQ{background:var(--cdp-web-colors-bg-overlay);box-sizing:border-box;-webkit-backdrop-filter:blur(.5em);backdrop-filter:blur(.5em);display:grid;grid-template-rows:auto 1fr;inset:0;overflow-y:auto;place-items:end center;position:fixed;z-index:var(--cdp-web-zIndex-modal-overlay)}.Modal-module__overlay___-RqGQ[data-state=open]{animation:Modal-module__fade-in___NfUjS .2s ease-out}.Modal-module__overlay___-RqGQ[data-state=closed]{animation:Modal-module__fade-out___LpBNV .2s ease-in}.Modal-module__spacer___dIfOA{height:1em}@keyframes Modal-module__fade-in___NfUjS{0%{opacity:0}to{opacity:1}}@keyframes Modal-module__fade-out___LpBNV{0%{opacity:1}to{opacity:0}}@keyframes Modal-module__slide-in___p-A8u{0%{transform:translateY(100%)}to{transform:translateY(0)}}@keyframes Modal-module__slide-out___hrRK1{0%{transform:translateY(0)}to{transform:translateY(100%)}}@media (min-width: 400px){.Modal-module__overlay___-RqGQ{padding:.5rem}}@media (min-width: 450px){.Modal-module__overlay___-RqGQ{place-items:center;padding:1rem;grid-template-rows:1fr}.Modal-module__modal___MUsZA{height:auto}.Modal-module__spacer___dIfOA{display:none}@keyframes Modal-module__slide-in___p-A8u{0%{transform:translateY(10%)}to{transform:translateY(0)}}@keyframes Modal-module__slide-out___hrRK1{0%{transform:translateY(0)}to{transform:translateY(10%)}}}
@@ -1 +1 @@
1
- .Select-module__select-trigger___yqioM{--cdp-web-button-ring-inset-color: var(--cdp-web-colors-select-trigger-border-default);--cdp-web-button-ring-inset-width: 1px;background-color:var(--cdp-web-colors-select-trigger-bg-default);border-radius:var(--cdp-web-borderRadius-select-trigger);color:var(--cdp-web-colors-select-trigger-text-default);font-family:var(--cdp-web-font-family-select);font-weight:500;text-align:left;justify-content:space-between}.Select-module__select-trigger___yqioM:hover{background-color:var(--cdp-web-colors-select-trigger-bg-hover)}.Select-module__select-trigger___yqioM:active{background-color:var(--cdp-web-colors-select-trigger-bg-pressed)}.Select-module__select-trigger___yqioM:focus{outline:none}.Select-module__select-trigger___yqioM:focus-visible{--cdp-web-button-ring-inset-color: var(--cdp-web-colors-select-trigger-border-focus);--cdp-web-button-ring-inset-width: 2px;outline:none}.Select-module__select-icon___hE7Wy{transition:transform .2s ease-in-out}.Select-module__select-trigger___yqioM[data-state=open] .Select-module__select-icon___hE7Wy{transform:rotate(0)}.Select-module__select-trigger___yqioM[data-state=closed] .Select-module__select-icon___hE7Wy{transform:rotate(-90deg)}.Select-module__select-content___6R8J9{--shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 10%), 0 1px 2px -1px rgb(0 0 0 / 10%);background-color:var(--cdp-web-colors-select-list-bg-default);border:1px solid var(--cdp-web-colors-select-list-border-default);border-radius:var(--cdp-web-borderRadius-select-list);box-sizing:border-box;box-shadow:var(--shadow-sm);font-size:var(--cdp-web-font-size-base);font-family:var(--cdp-web-font-family-select);max-height:var(--radix-select-content-available-height);padding:.5em;text-align:left;width:var(--radix-select-trigger-width)}.Select-module__select-content___6R8J9[data-state=open]{animation:Select-module__slide-down-and-fade___66mDK .2s cubic-bezier(.4,0,.2,1)}.Select-module__select-content___6R8J9[data-side=top][data-state=open]{animation:Select-module__slide-up-and-fade___0H9hX .2s cubic-bezier(.4,0,.2,1)}.Select-module__select-item___12l2C{background-color:var(--cdp-web-colors-select-list-item-bg-default);border-radius:var(--cdp-web-borderRadius-select-list);color:var(--cdp-web-colors-select-list-item-text-default);cursor:pointer;font-size:.875em;display:flex;align-items:center;justify-content:space-between;gap:.5em;padding:.5em;transition:background-color .2s cubic-bezier(.4,0,.2,1)}.Select-module__select-item___12l2C[data-highlighted]{background-color:var(--cdp-web-colors-select-list-item-bg-highlight);color:var(--cdp-web-colors-select-list-item-text-onHighlight);outline:none}.Select-module__rotate-180___KuvGV{transform:rotate(180deg)}@keyframes Select-module__slide-down-and-fade___66mDK{0%{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}@keyframes Select-module__slide-up-and-fade___0H9hX{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
1
+ .Select-module__select-trigger___yqioM{--cdp-web-button-ring-inset-color: var(--cdp-web-colors-select-trigger-border-default);--cdp-web-button-ring-inset-width: 1px;background-color:var(--cdp-web-colors-select-trigger-bg-default);border-radius:var(--cdp-web-borderRadius-select-trigger);color:var(--cdp-web-colors-select-trigger-text-default);font-family:var(--cdp-web-font-family-select);font-weight:500;text-align:left;justify-content:space-between}.Select-module__select-trigger___yqioM:hover{background-color:var(--cdp-web-colors-select-trigger-bg-hover)}.Select-module__select-trigger___yqioM:active{background-color:var(--cdp-web-colors-select-trigger-bg-pressed)}.Select-module__select-trigger___yqioM:focus{outline:none}.Select-module__select-trigger___yqioM:focus-visible{--cdp-web-button-ring-inset-color: var(--cdp-web-colors-select-trigger-border-focus);--cdp-web-button-ring-inset-width: 2px;outline:none}.Select-module__select-icon___hE7Wy{transition:transform .2s ease-in-out}.Select-module__select-trigger___yqioM[data-state=open] .Select-module__select-icon___hE7Wy{transform:rotate(0)}.Select-module__select-trigger___yqioM[data-state=closed] .Select-module__select-icon___hE7Wy{transform:rotate(-90deg)}.Select-module__select-content___6R8J9{--shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 10%), 0 1px 2px -1px rgb(0 0 0 / 10%);background-color:var(--cdp-web-colors-select-list-bg-default);border:1px solid var(--cdp-web-colors-select-list-border-default);border-radius:var(--cdp-web-borderRadius-select-list);box-sizing:border-box;box-shadow:var(--shadow-sm);font-size:var(--cdp-web-font-size-base);font-family:var(--cdp-web-font-family-select);max-height:var(--radix-select-content-available-height);padding:.5em;text-align:left;width:var(--radix-select-trigger-width);z-index:var(--cdp-web-zIndex-select-list)}.Select-module__select-content___6R8J9[data-state=open]{animation:Select-module__slide-down-and-fade___66mDK .2s cubic-bezier(.4,0,.2,1)}.Select-module__select-content___6R8J9[data-side=top][data-state=open]{animation:Select-module__slide-up-and-fade___0H9hX .2s cubic-bezier(.4,0,.2,1)}.Select-module__select-item___12l2C{background-color:var(--cdp-web-colors-select-list-item-bg-default);border-radius:var(--cdp-web-borderRadius-select-list);color:var(--cdp-web-colors-select-list-item-text-default);cursor:pointer;font-size:.875em;display:flex;align-items:center;justify-content:space-between;gap:.5em;padding:.5em;transition:background-color .2s cubic-bezier(.4,0,.2,1)}.Select-module__select-item___12l2C[data-highlighted]{background-color:var(--cdp-web-colors-select-list-item-bg-highlight);color:var(--cdp-web-colors-select-list-item-text-onHighlight);outline:none}.Select-module__rotate-180___KuvGV{transform:rotate(180deg)}@keyframes Select-module__slide-down-and-fade___66mDK{0%{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}@keyframes Select-module__slide-up-and-fade___0H9hX{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@@ -1,44 +1,47 @@
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
- children: e,
9
- className: c = "",
10
- style: p,
11
- theme: t,
12
- "data-cdp-provider": i,
13
- ...d
1
+ import { jsx as c, Fragment as v } from "react/jsx-runtime";
2
+ import { createContext as C, useContext as u, useMemo as s, useId as _ } from "react";
3
+ import { theme as N } from "../../theme/theme.js";
4
+ import { themeToCssVariables as i } from "../../theme/utils.js";
5
+ import '../../assets/ThemeProvider.css';const P = "ThemeProvider-module__wrapper___aXwhZ", V = {
6
+ wrapper: P
7
+ }, m = C(void 0), k = ({
8
+ children: o,
9
+ className: d = "",
10
+ style: h,
11
+ theme: e,
12
+ "data-cdp-provider": l,
13
+ ...w
14
14
  }) => {
15
- const r = s(
16
- () => t ? { ...m, ...t } : m,
17
- [t]
18
- ), h = x(), u = i ?? h, o = s(() => T(r), [r]), l = s(
15
+ const n = u(m), t = !!n, r = s(() => {
16
+ const p = t ? n.theme : N;
17
+ return e ? { ...p, ...e } : p;
18
+ }, [t, n?.theme, e]), x = _(), T = l ?? x, a = s(() => i(r), [r]), f = s(
19
+ () => t && e ? i(e) : {},
20
+ [t, e]
21
+ ), b = s(
19
22
  () => ({
20
23
  theme: r,
21
- cssVariables: o
24
+ cssVariables: a
22
25
  }),
23
- [r, o]
26
+ [r, a]
24
27
  );
25
- return /* @__PURE__ */ a(n.Provider, { value: l, children: /* @__PURE__ */ a(
28
+ return t && !e ? /* @__PURE__ */ c(v, { children: o }) : /* @__PURE__ */ c(m.Provider, { value: b, children: /* @__PURE__ */ c(
26
29
  "div",
27
30
  {
28
- className: `${_.wrapper} ${c}`,
29
- style: { ...p, ...o },
30
- ...d,
31
- "data-cdp-provider": u,
32
- children: e
31
+ className: `${V.wrapper} ${d}`,
32
+ style: { ...h, ...t ? f : a },
33
+ ...w,
34
+ "data-cdp-provider": T,
35
+ children: o
33
36
  }
34
37
  ) });
35
- }, $ = () => {
36
- const e = w(n);
37
- if (!e)
38
+ }, E = () => {
39
+ const o = u(m);
40
+ if (!o)
38
41
  throw new Error("useTheme must be used within a ThemeProvider");
39
- return e;
42
+ return o;
40
43
  };
41
44
  export {
42
- V as ThemeProvider,
43
- $ as useTheme
45
+ k as ThemeProvider,
46
+ E as useTheme
44
47
  };
@@ -1,31 +1,34 @@
1
1
  import { jsx as o, jsxs as n } from "react/jsx-runtime";
2
- import { DialogPortal as _, DialogOverlay as p, DialogContent as g, Dialog as M, DialogTitle as D, DialogDescription as f, DialogClose as u, DialogTrigger as y } from "@radix-ui/react-dialog";
3
- import { c as e } from "../../../chunks/lite.1fxw3LjI.js";
4
- import { forwardRef as v, useMemo as C } from "react";
5
- import { useTheme as T } from "../../ThemeProvider/index.js";
6
- import '../../../assets/Modal.css';const x = "Modal-module__modal___MUsZA", N = "Modal-module__overlay___-RqGQ", h = "Modal-module__spacer___dIfOA", a = {
7
- modal: x,
2
+ import { DialogPortal as _, DialogOverlay as p, DialogContent as M, Dialog as g, DialogTitle as h, DialogDescription as v, DialogClose as D, DialogTrigger as f } from "@radix-ui/react-dialog";
3
+ import { c as r } from "../../../chunks/lite.1fxw3LjI.js";
4
+ import { forwardRef as u, useMemo as T } from "react";
5
+ import { useTheme as x, ThemeProvider as y } from "../../ThemeProvider/index.js";
6
+ import '../../../assets/Modal.css';const C = "Modal-module__modal___MUsZA", N = "Modal-module__overlay___-RqGQ", I = "Modal-module__spacer___dIfOA", e = {
7
+ "theme-override": "Modal-module__theme-override___tz6IM",
8
+ modal: C,
8
9
  overlay: N,
9
- spacer: h
10
- }, j = v(
11
- ({ children: r, className: t = "", overlayClassName: c = "", overlayStyle: l, ...i }, d) => {
12
- const { cssVariables: s } = T(), m = C(
13
- () => ({ ...s, ...l }),
14
- [s, l]
10
+ spacer: I
11
+ }, z = {
12
+ "zIndex-popup": "calc(var(--cdp-web-zIndex-modal-dialog) + 1)"
13
+ }, b = u(
14
+ ({ children: s, className: t = "", overlayClassName: d = "", overlayStyle: a, ...m }, c) => {
15
+ const { cssVariables: l } = x(), i = T(
16
+ () => ({ ...l, ...a }),
17
+ [l, a]
15
18
  );
16
- return /* @__PURE__ */ o(_, { children: /* @__PURE__ */ n(p, { className: e(a.overlay, c), style: m, children: [
17
- /* @__PURE__ */ o("div", { className: a.spacer }),
18
- /* @__PURE__ */ o(g, { ...i, ref: d, className: e(a.modal, t), children: r })
19
+ return /* @__PURE__ */ o(_, { children: /* @__PURE__ */ n(p, { className: r(e.overlay, d), style: i, children: [
20
+ /* @__PURE__ */ o("div", { className: e.spacer }),
21
+ /* @__PURE__ */ o(M, { ...m, ref: c, className: r(e.modal, t), children: /* @__PURE__ */ o(y, { theme: z, className: e["theme-override"], children: s }) })
19
22
  ] }) });
20
23
  }
21
24
  );
22
- j.displayName = "ModalContent";
23
- const w = M, G = u, I = f, P = D, Q = y;
25
+ b.displayName = "ModalContent";
26
+ const R = g, q = D, G = v, Q = h, U = f;
24
27
  export {
25
- w as Modal,
26
- G as ModalClose,
27
- j as ModalContent,
28
- I as ModalDescription,
29
- P as ModalTitle,
30
- Q as ModalTrigger
28
+ R as Modal,
29
+ q as ModalClose,
30
+ b as ModalContent,
31
+ G as ModalDescription,
32
+ Q as ModalTitle,
33
+ U as ModalTrigger
31
34
  };
package/dist/index.js CHANGED
@@ -2,15 +2,15 @@ import "./chunks/useSendComponentCallOnce.BHZMuo6E.js";
2
2
  import "react";
3
3
  import "./version.js";
4
4
  import { AuthButton as a } from "./components/AuthButton/index.js";
5
- import { c as p, A as m, C as x, O as i, V as s, d as M, e as u, f as d, u as c, a as I, b as g } from "./chunks/CDPReactProvider.CIQm4C4z.js";
5
+ import { c as p, A as m, C as x, O as i, V as s, d as M, e as d, f as u, u as c, a as I, b as g } from "./chunks/CDPReactProvider.CIQm4C4z.js";
6
6
  import { CopyAddress as C } from "./components/CopyAddress/index.js";
7
- import { CopyEvmKeyButton as h } from "./components/CopyEvmKeyButton/index.js";
8
- import { CopySolanaKeyButton as S } from "./components/CopySolanaKeyButton/index.js";
7
+ import { CopyEvmKeyButton as S } from "./components/CopyEvmKeyButton/index.js";
8
+ import { CopySolanaKeyButton as A } from "./components/CopySolanaKeyButton/index.js";
9
9
  import { EnrollMfa as y, EnrollMfaError as k } from "./components/EnrollMfa/index.js";
10
10
  import { EnrollMfaModal as B, EnrollMfaModalContent as L, EnrollMfaModalTrigger as w } from "./components/EnrollMfaModal/index.js";
11
- import { ExportWallet as D, ExportWalletCopyAddress as b, ExportWalletCopyKeyButton as P, ExportWalletFooter as v, E as O, a as H, b as R, c as U, d as _, ExportWalletTitle as K, ExportWalletWarning as N } from "./components/ExportWallet/index.js";
12
- import { Fund as G, FundFooter as X } from "./components/Fund/index.js";
13
- import { FundModal as z, FundModalContent as J, FundModalTrigger as Q } from "./components/FundModal/index.js";
11
+ import { ExportWallet as D, ExportWalletCopyAddress as b, ExportWalletCopyKeyButton as P, ExportWalletFooter as v, E as O, a as H, b as R, c as U, d as _, ExportWalletTitle as z, ExportWalletWarning as K } from "./components/ExportWallet/index.js";
12
+ import { Fund as j, FundFooter as G } from "./components/Fund/index.js";
13
+ import { FundModal as q, FundModalContent as J, FundModalTrigger as Q } from "./components/FundModal/index.js";
14
14
  import { LinkAuth as Z, LinkAuthError as $ } from "./components/LinkAuth/index.js";
15
15
  import { LinkAuthModal as ro, LinkAuthModalContent as eo, LinkAuthModalTrigger as to } from "./components/LinkAuthModal/index.js";
16
16
  import { SendEvmTransactionButton as fo } from "./components/SendEvmTransactionButton/index.js";
@@ -20,72 +20,72 @@ import { useSignInReducer as io } from "./components/SignIn/useSignInReducer.js"
20
20
  import { SignInModal as Mo, SignInModalContent as uo, SignInModalTrigger as co } from "./components/SignInModal/index.js";
21
21
  import { SignOutButton as go } from "./components/SignOutButton/index.js";
22
22
  import { ThemeProvider as Co, useTheme as To } from "./components/ThemeProvider/index.js";
23
- import { VerifyMfaInline as Ao, VerifyMfaInlineBackButton as So, VerifyMfaInlineFlow as Fo, useVerifyMfaInlineContext as yo } from "./components/VerifyMfaInline/index.js";
23
+ import { VerifyMfaInline as ho, VerifyMfaInlineBackButton as Ao, VerifyMfaInlineFlow as Fo, useVerifyMfaInlineContext as yo } from "./components/VerifyMfaInline/index.js";
24
24
  import { Button as Vo } from "./components/ui/Button/index.js";
25
25
  import { Modal as Lo, ModalClose as wo, ModalContent as Wo, ModalDescription as Do, ModalTitle as bo, ModalTrigger as Po } from "./components/ui/Modal/index.js";
26
26
  import { cssVariables as Oo } from "./theme/cssVariables.js";
27
27
  import { theme as Ro } from "./theme/theme.js";
28
- import { borderRadius as _o, borderRadiusComponents as Ko, borderRadiusSemantic as No, colors as jo, colorsBase as Go, colorsComponents as Xo, colorsSemantic as qo, font as zo, fontComponents as Jo, fontSemantic as Qo, tokens as Yo } from "./theme/tokens.js";
29
- import { flattenTokensObject as $o, themeToCssVariables as or } from "./theme/utils.js";
30
- import { IconAppleLogo as er } from "./icons/IconAppleLogo.js";
31
- import { IconArrowLeft as nr } from "./icons/IconArrowLeft.js";
32
- import { IconArrowsUpDown as ar } from "./icons/IconArrowsUpDown.js";
33
- import { IconCheck as pr } from "./icons/IconCheck.js";
34
- import { IconCheckCircle as xr } from "./icons/IconCheckCircle.js";
35
- import { IconChevronDown as sr } from "./icons/IconChevronDown.js";
36
- import { IconCopy as ur } from "./icons/IconCopy.js";
37
- import { IconEnvelope as cr } from "./icons/IconEnvelope.js";
38
- import { IconExclamationCircle as gr } from "./icons/IconExclamationCircle.js";
39
- import { IconExclamationTriangle as Cr } from "./icons/IconExclamationTriangle.js";
40
- import { IconGoogleLogo as hr } from "./icons/IconGoogleLogo.js";
41
- import { IconLock as Sr } from "./icons/IconLock.js";
42
- import { IconMinus as yr } from "./icons/IconMinus.js";
43
- import { IconPhone as Vr } from "./icons/IconPhone.js";
44
- import { IconPinCode as Lr } from "./icons/IconPinCode.js";
45
- import { IconPlus as Wr } from "./icons/IconPlus.js";
46
- import { IconShield as br } from "./icons/IconShield.js";
47
- import { IconSmartPhone as vr } from "./icons/IconSmartPhone.js";
48
- import { IconXMark as Hr } from "./icons/IconXMark.js";
49
- import { clamp as Ur } from "./utils/clamp.js";
50
- import { getMessageFromUnknownError as Kr } from "./utils/getMessageFromUnknownError.js";
51
- import { isApiError as jr } from "./utils/isApiError.js";
52
- import { isEmailInvalid as Xr } from "./utils/isEmailInvalid.js";
53
- import { parseValuesFromPhoneNumber as zr } from "./utils/parseValuesFromPhoneNumber.js";
54
- import { sendIframeMessage as Qr } from "./utils/sendIframeMessage.js";
28
+ import { borderRadius as _o, borderRadiusComponents as zo, borderRadiusSemantic as Ko, colors as No, colorsBase as jo, colorsComponents as Go, colorsSemantic as Xo, font as qo, fontComponents as Jo, fontSemantic as Qo, tokens as Yo, zIndex as Zo, zIndexComponents as $o, zIndexSemantic as or } from "./theme/tokens.js";
29
+ import { flattenTokensObject as er, themeToCssVariables as tr } from "./theme/utils.js";
30
+ import { IconAppleLogo as fr } from "./icons/IconAppleLogo.js";
31
+ import { IconArrowLeft as lr } from "./icons/IconArrowLeft.js";
32
+ import { IconArrowsUpDown as mr } from "./icons/IconArrowsUpDown.js";
33
+ import { IconCheck as ir } from "./icons/IconCheck.js";
34
+ import { IconCheckCircle as Mr } from "./icons/IconCheckCircle.js";
35
+ import { IconChevronDown as ur } from "./icons/IconChevronDown.js";
36
+ import { IconCopy as Ir } from "./icons/IconCopy.js";
37
+ import { IconEnvelope as Er } from "./icons/IconEnvelope.js";
38
+ import { IconExclamationCircle as Tr } from "./icons/IconExclamationCircle.js";
39
+ import { IconExclamationTriangle as hr } from "./icons/IconExclamationTriangle.js";
40
+ import { IconGoogleLogo as Fr } from "./icons/IconGoogleLogo.js";
41
+ import { IconLock as kr } from "./icons/IconLock.js";
42
+ import { IconMinus as Br } from "./icons/IconMinus.js";
43
+ import { IconPhone as wr } from "./icons/IconPhone.js";
44
+ import { IconPinCode as Dr } from "./icons/IconPinCode.js";
45
+ import { IconPlus as Pr } from "./icons/IconPlus.js";
46
+ import { IconShield as Or } from "./icons/IconShield.js";
47
+ import { IconSmartPhone as Rr } from "./icons/IconSmartPhone.js";
48
+ import { IconXMark as _r } from "./icons/IconXMark.js";
49
+ import { clamp as Kr } from "./utils/clamp.js";
50
+ import { getMessageFromUnknownError as jr } from "./utils/getMessageFromUnknownError.js";
51
+ import { isApiError as Xr } from "./utils/isApiError.js";
52
+ import { isEmailInvalid as Jr } from "./utils/isEmailInvalid.js";
53
+ import { parseValuesFromPhoneNumber as Yr } from "./utils/parseValuesFromPhoneNumber.js";
54
+ import { sendIframeMessage as $r } from "./utils/sendIframeMessage.js";
55
55
  import "@coinbase/cdp-core";
56
- import { EnrollMfaDescription as Zr } from "./components/EnrollMfa/EnrollMfaDescription.js";
57
- import { EnrollMfaFlow as oe } from "./components/EnrollMfa/EnrollMfaFlow.js";
58
- import { EnrollMfaFlowBackButton as ee } from "./components/EnrollMfa/EnrollMfaFlowBackButton.js";
59
- import { EnrollMfaFooter as ne } from "./components/EnrollMfa/EnrollMfaFooter.js";
60
- import { EnrollMfaImage as ae } from "./components/EnrollMfa/EnrollMfaImage.js";
61
- import { EnrollMfaItem as pe } from "./components/EnrollMfa/EnrollMfaItem.js";
62
- import { EnrollMfaItems as xe } from "./components/EnrollMfa/EnrollMfaItems.js";
63
- import { EnrollMfaTitle as se } from "./components/EnrollMfa/EnrollMfaTitle.js";
64
- import { useEnrollMfaContext as ue } from "./components/EnrollMfa/EnrollMfaProvider.js";
65
- import { useEnrollMfaFlow as ce } from "./components/EnrollMfa/EnrollMfaFlowProvider.js";
66
- import { FundForm as ge } from "./components/Fund/FundForm.js";
67
- import { FundTitle as Ce } from "./components/Fund/FundTitle.js";
68
- import { useFundContext as he } from "./components/Fund/FundProvider.js";
69
- import { a as Se, u as Fe } from "./chunks/LinkAuthFlow.BaUSMzGH.js";
70
- import { LinkAuthFlowBackButton as ke } from "./components/LinkAuth/LinkAuthFlowBackButton.js";
71
- import { LinkAuthItem as Be } from "./components/LinkAuth/LinkAuthItem.js";
72
- import { LinkAuthItems as we } from "./components/LinkAuth/LinkAuthItems.js";
73
- import { LinkAuthTitle as De } from "./components/LinkAuth/LinkAuthTitle.js";
74
- import { useLinkAuthContext as Pe } from "./components/LinkAuth/LinkAuthProvider.js";
75
- import { SignInAuthMethodButtons as Oe } from "./components/SignIn/SignInAuthMethodButtons.js";
76
- import { SignInBackButton as Re } from "./components/SignIn/SignInBackButton.js";
77
- import { SignInDescription as _e } from "./components/SignIn/SignInDescription.js";
78
- import { SignInFooter as Ne } from "./components/SignIn/SignInFooter.js";
79
- import { SignInForm as Ge } from "./components/SignIn/SignInForm.js";
80
- import { SignInImage as qe } from "./components/SignIn/SignInImage.js";
81
- import { SignInTitle as Je } from "./components/SignIn/SignInTitle.js";
82
- import { useSignInContext as Ye } from "./components/SignIn/SignInProvider.js";
83
- import { VerifyMfaDescription as $e } from "./components/VerifyMfa/VerifyMfaDescription.js";
84
- import { VerifyMfaFooter as rt } from "./components/VerifyMfa/VerifyMfaFooter.js";
85
- import { VerifyMfaFlow as tt } from "./components/VerifyMfa/VerifyMfaFlow.js";
86
- import { VerifyMfaImage as ft } from "./components/VerifyMfa/VerifyMfaImage.js";
87
- import { VerifyMfaTitle as lt } from "./components/VerifyMfa/VerifyMfaTitle.js";
88
- import { useVerifyMfaContext as mt } from "./components/VerifyMfa/VerifyMfaProvider.js";
56
+ import { EnrollMfaDescription as re } from "./components/EnrollMfa/EnrollMfaDescription.js";
57
+ import { EnrollMfaFlow as te } from "./components/EnrollMfa/EnrollMfaFlow.js";
58
+ import { EnrollMfaFlowBackButton as fe } from "./components/EnrollMfa/EnrollMfaFlowBackButton.js";
59
+ import { EnrollMfaFooter as le } from "./components/EnrollMfa/EnrollMfaFooter.js";
60
+ import { EnrollMfaImage as me } from "./components/EnrollMfa/EnrollMfaImage.js";
61
+ import { EnrollMfaItem as ie } from "./components/EnrollMfa/EnrollMfaItem.js";
62
+ import { EnrollMfaItems as Me } from "./components/EnrollMfa/EnrollMfaItems.js";
63
+ import { EnrollMfaTitle as ue } from "./components/EnrollMfa/EnrollMfaTitle.js";
64
+ import { useEnrollMfaContext as Ie } from "./components/EnrollMfa/EnrollMfaProvider.js";
65
+ import { useEnrollMfaFlow as Ee } from "./components/EnrollMfa/EnrollMfaFlowProvider.js";
66
+ import { FundForm as Te } from "./components/Fund/FundForm.js";
67
+ import { FundTitle as he } from "./components/Fund/FundTitle.js";
68
+ import { useFundContext as Fe } from "./components/Fund/FundProvider.js";
69
+ import { a as ke, u as Ve } from "./chunks/LinkAuthFlow.BaUSMzGH.js";
70
+ import { LinkAuthFlowBackButton as Le } from "./components/LinkAuth/LinkAuthFlowBackButton.js";
71
+ import { LinkAuthItem as We } from "./components/LinkAuth/LinkAuthItem.js";
72
+ import { LinkAuthItems as be } from "./components/LinkAuth/LinkAuthItems.js";
73
+ import { LinkAuthTitle as ve } from "./components/LinkAuth/LinkAuthTitle.js";
74
+ import { useLinkAuthContext as He } from "./components/LinkAuth/LinkAuthProvider.js";
75
+ import { SignInAuthMethodButtons as Ue } from "./components/SignIn/SignInAuthMethodButtons.js";
76
+ import { SignInBackButton as ze } from "./components/SignIn/SignInBackButton.js";
77
+ import { SignInDescription as Ne } from "./components/SignIn/SignInDescription.js";
78
+ import { SignInFooter as Ge } from "./components/SignIn/SignInFooter.js";
79
+ import { SignInForm as qe } from "./components/SignIn/SignInForm.js";
80
+ import { SignInImage as Qe } from "./components/SignIn/SignInImage.js";
81
+ import { SignInTitle as Ze } from "./components/SignIn/SignInTitle.js";
82
+ import { useSignInContext as ot } from "./components/SignIn/SignInProvider.js";
83
+ import { VerifyMfaDescription as et } from "./components/VerifyMfa/VerifyMfaDescription.js";
84
+ import { VerifyMfaFooter as nt } from "./components/VerifyMfa/VerifyMfaFooter.js";
85
+ import { VerifyMfaFlow as at } from "./components/VerifyMfa/VerifyMfaFlow.js";
86
+ import { VerifyMfaImage as pt } from "./components/VerifyMfa/VerifyMfaImage.js";
87
+ import { VerifyMfaTitle as xt } from "./components/VerifyMfa/VerifyMfaTitle.js";
88
+ import { useVerifyMfaContext as st } from "./components/VerifyMfa/VerifyMfaProvider.js";
89
89
  export {
90
90
  p as ALL_AUTH_METHODS,
91
91
  m as AUTH_METHODS,
@@ -93,21 +93,21 @@ export {
93
93
  Vo as Button,
94
94
  x as CDPReactProvider,
95
95
  C as CopyAddress,
96
- h as CopyEvmKeyButton,
97
- S as CopySolanaKeyButton,
96
+ S as CopyEvmKeyButton,
97
+ A as CopySolanaKeyButton,
98
98
  y as EnrollMfa,
99
- Zr as EnrollMfaDescription,
99
+ re as EnrollMfaDescription,
100
100
  k as EnrollMfaError,
101
- oe as EnrollMfaFlow,
102
- ee as EnrollMfaFlowBackButton,
103
- ne as EnrollMfaFooter,
104
- ae as EnrollMfaImage,
105
- pe as EnrollMfaItem,
106
- xe as EnrollMfaItems,
101
+ te as EnrollMfaFlow,
102
+ fe as EnrollMfaFlowBackButton,
103
+ le as EnrollMfaFooter,
104
+ me as EnrollMfaImage,
105
+ ie as EnrollMfaItem,
106
+ Me as EnrollMfaItems,
107
107
  B as EnrollMfaModal,
108
108
  L as EnrollMfaModalContent,
109
109
  w as EnrollMfaModalTrigger,
110
- se as EnrollMfaTitle,
110
+ ue as EnrollMfaTitle,
111
111
  D as ExportWallet,
112
112
  b as ExportWalletCopyAddress,
113
113
  P as ExportWalletCopyKeyButton,
@@ -117,44 +117,44 @@ export {
117
117
  R as ExportWalletModalContent,
118
118
  U as ExportWalletModalTitle,
119
119
  _ as ExportWalletModalTrigger,
120
- K as ExportWalletTitle,
121
- N as ExportWalletWarning,
122
- G as Fund,
123
- X as FundFooter,
124
- ge as FundForm,
125
- z as FundModal,
120
+ z as ExportWalletTitle,
121
+ K as ExportWalletWarning,
122
+ j as Fund,
123
+ G as FundFooter,
124
+ Te as FundForm,
125
+ q as FundModal,
126
126
  J as FundModalContent,
127
127
  Q as FundModalTrigger,
128
- Ce as FundTitle,
129
- er as IconAppleLogo,
130
- nr as IconArrowLeft,
131
- ar as IconArrowsUpDown,
132
- pr as IconCheck,
133
- xr as IconCheckCircle,
134
- sr as IconChevronDown,
135
- ur as IconCopy,
136
- cr as IconEnvelope,
137
- gr as IconExclamationCircle,
138
- Cr as IconExclamationTriangle,
139
- hr as IconGoogleLogo,
140
- Sr as IconLock,
141
- yr as IconMinus,
142
- Vr as IconPhone,
143
- Lr as IconPinCode,
144
- Wr as IconPlus,
145
- br as IconShield,
146
- vr as IconSmartPhone,
147
- Hr as IconXMark,
128
+ he as FundTitle,
129
+ fr as IconAppleLogo,
130
+ lr as IconArrowLeft,
131
+ mr as IconArrowsUpDown,
132
+ ir as IconCheck,
133
+ Mr as IconCheckCircle,
134
+ ur as IconChevronDown,
135
+ Ir as IconCopy,
136
+ Er as IconEnvelope,
137
+ Tr as IconExclamationCircle,
138
+ hr as IconExclamationTriangle,
139
+ Fr as IconGoogleLogo,
140
+ kr as IconLock,
141
+ Br as IconMinus,
142
+ wr as IconPhone,
143
+ Dr as IconPinCode,
144
+ Pr as IconPlus,
145
+ Or as IconShield,
146
+ Rr as IconSmartPhone,
147
+ _r as IconXMark,
148
148
  Z as LinkAuth,
149
149
  $ as LinkAuthError,
150
- Se as LinkAuthFlow,
151
- ke as LinkAuthFlowBackButton,
152
- Be as LinkAuthItem,
153
- we as LinkAuthItems,
150
+ ke as LinkAuthFlow,
151
+ Le as LinkAuthFlowBackButton,
152
+ We as LinkAuthItem,
153
+ be as LinkAuthItems,
154
154
  ro as LinkAuthModal,
155
155
  eo as LinkAuthModalContent,
156
156
  to as LinkAuthModalTrigger,
157
- De as LinkAuthTitle,
157
+ ve as LinkAuthTitle,
158
158
  Lo as Modal,
159
159
  wo as ModalClose,
160
160
  Wo as ModalContent,
@@ -165,62 +165,65 @@ export {
165
165
  fo as SendEvmTransactionButton,
166
166
  lo as SendSolanaTransactionButton,
167
167
  mo as SignIn,
168
- Oe as SignInAuthMethodButtons,
169
- Re as SignInBackButton,
170
- _e as SignInDescription,
171
- Ne as SignInFooter,
172
- Ge as SignInForm,
173
- qe as SignInImage,
168
+ Ue as SignInAuthMethodButtons,
169
+ ze as SignInBackButton,
170
+ Ne as SignInDescription,
171
+ Ge as SignInFooter,
172
+ qe as SignInForm,
173
+ Qe as SignInImage,
174
174
  Mo as SignInModal,
175
175
  uo as SignInModalContent,
176
176
  co as SignInModalTrigger,
177
- Je as SignInTitle,
177
+ Ze as SignInTitle,
178
178
  go as SignOutButton,
179
179
  Co as ThemeProvider,
180
180
  s as VerifyMfa,
181
- $e as VerifyMfaDescription,
182
- tt as VerifyMfaFlow,
183
- rt as VerifyMfaFooter,
184
- ft as VerifyMfaImage,
185
- Ao as VerifyMfaInline,
186
- So as VerifyMfaInlineBackButton,
181
+ et as VerifyMfaDescription,
182
+ at as VerifyMfaFlow,
183
+ nt as VerifyMfaFooter,
184
+ pt as VerifyMfaImage,
185
+ ho as VerifyMfaInline,
186
+ Ao as VerifyMfaInlineBackButton,
187
187
  Fo as VerifyMfaInlineFlow,
188
188
  M as VerifyMfaModal,
189
- u as VerifyMfaModalContent,
190
- d as VerifyMfaModalTrigger,
191
- lt as VerifyMfaTitle,
189
+ d as VerifyMfaModalContent,
190
+ u as VerifyMfaModalTrigger,
191
+ xt as VerifyMfaTitle,
192
192
  _o as borderRadius,
193
- Ko as borderRadiusComponents,
194
- No as borderRadiusSemantic,
195
- Ur as clamp,
196
- jo as colors,
197
- Go as colorsBase,
198
- Xo as colorsComponents,
199
- qo as colorsSemantic,
193
+ zo as borderRadiusComponents,
194
+ Ko as borderRadiusSemantic,
195
+ Kr as clamp,
196
+ No as colors,
197
+ jo as colorsBase,
198
+ Go as colorsComponents,
199
+ Xo as colorsSemantic,
200
200
  Oo as cssVariables,
201
- $o as flattenTokensObject,
202
- zo as font,
201
+ er as flattenTokensObject,
202
+ qo as font,
203
203
  Jo as fontComponents,
204
204
  Qo as fontSemantic,
205
- Kr as getMessageFromUnknownError,
206
- jr as isApiError,
207
- Xr as isEmailInvalid,
208
- zr as parseValuesFromPhoneNumber,
209
- Qr as sendIframeMessage,
205
+ jr as getMessageFromUnknownError,
206
+ Xr as isApiError,
207
+ Jr as isEmailInvalid,
208
+ Yr as parseValuesFromPhoneNumber,
209
+ $r as sendIframeMessage,
210
210
  Ro as theme,
211
- or as themeToCssVariables,
211
+ tr as themeToCssVariables,
212
212
  Yo as tokens,
213
213
  c as useAppConfig,
214
- ue as useEnrollMfaContext,
215
- ce as useEnrollMfaFlow,
216
- he as useFundContext,
217
- Pe as useLinkAuthContext,
218
- Fe as useLinkAuthFlow,
214
+ Ie as useEnrollMfaContext,
215
+ Ee as useEnrollMfaFlow,
216
+ Fe as useFundContext,
217
+ He as useLinkAuthContext,
218
+ Ve as useLinkAuthFlow,
219
219
  I as useProviderName,
220
- Ye as useSignInContext,
220
+ ot as useSignInContext,
221
221
  io as useSignInReducer,
222
222
  To as useTheme,
223
- mt as useVerifyMfaContext,
223
+ st as useVerifyMfaContext,
224
224
  yo as useVerifyMfaInlineContext,
225
- g as useVerifyMfaModal
225
+ g as useVerifyMfaModal,
226
+ Zo as zIndex,
227
+ $o as zIndexComponents,
228
+ or as zIndexSemantic
226
229
  };
@@ -1,21 +1,24 @@
1
- import { cssVariables as r } from "./cssVariables.js";
2
- import { theme as t } from "./theme.js";
3
- import { borderRadius as a, borderRadiusComponents as m, borderRadiusSemantic as c, colors as f, colorsBase as i, colorsComponents as l, colorsSemantic as p, font as b, fontComponents as d, fontSemantic as x, tokens as C } from "./tokens.js";
4
- import { flattenTokensObject as R, themeToCssVariables as S } from "./utils.js";
1
+ import { cssVariables as n } from "./cssVariables.js";
2
+ import { theme as r } from "./theme.js";
3
+ import { borderRadius as m, borderRadiusComponents as a, borderRadiusSemantic as c, colors as d, colorsBase as i, colorsComponents as f, colorsSemantic as p, font as l, fontComponents as x, fontSemantic as b, tokens as C, zIndex as S, zIndexComponents as u, zIndexSemantic as z } from "./tokens.js";
4
+ import { flattenTokensObject as R, themeToCssVariables as h } from "./utils.js";
5
5
  export {
6
- a as borderRadius,
7
- m as borderRadiusComponents,
6
+ m as borderRadius,
7
+ a as borderRadiusComponents,
8
8
  c as borderRadiusSemantic,
9
- f as colors,
9
+ d as colors,
10
10
  i as colorsBase,
11
- l as colorsComponents,
11
+ f as colorsComponents,
12
12
  p as colorsSemantic,
13
- r as cssVariables,
13
+ n as cssVariables,
14
14
  R as flattenTokensObject,
15
- b as font,
16
- d as fontComponents,
17
- x as fontSemantic,
18
- t as theme,
19
- S as themeToCssVariables,
20
- C as tokens
15
+ l as font,
16
+ x as fontComponents,
17
+ b as fontSemantic,
18
+ r as theme,
19
+ h as themeToCssVariables,
20
+ C as tokens,
21
+ S as zIndex,
22
+ u as zIndexComponents,
23
+ z as zIndexSemantic
21
24
  };
@@ -1,4 +1,4 @@
1
- import { borderRadiusSemantic, borderRadiusComponents, colorsSemantic, colorsComponents, fontSemantic, fontComponents } from './tokens';
1
+ import { borderRadiusSemantic, borderRadiusComponents, colorsSemantic, colorsComponents, fontSemantic, fontComponents, zIndexSemantic, zIndexComponents } from './tokens';
2
2
  import { Flattened } from './utils';
3
3
  export declare const theme: Flattened<{
4
4
  borderRadius: {
@@ -638,6 +638,41 @@ export declare const theme: Flattened<{
638
638
  };
639
639
  };
640
640
  };
641
+ zIndex: {
642
+ readonly select: {
643
+ readonly list: {
644
+ readonly value: "{zIndex.popup}";
645
+ };
646
+ };
647
+ readonly modal: {
648
+ readonly overlay: {
649
+ readonly value: "{zIndex.scrim}";
650
+ };
651
+ readonly dialog: {
652
+ readonly value: "{zIndex.floating}";
653
+ };
654
+ };
655
+ readonly base: {
656
+ readonly value: 0;
657
+ readonly unit: "none";
658
+ };
659
+ readonly raised: {
660
+ readonly value: 1;
661
+ readonly unit: "none";
662
+ };
663
+ readonly popup: {
664
+ readonly value: 200;
665
+ readonly unit: "none";
666
+ };
667
+ readonly scrim: {
668
+ readonly value: 400;
669
+ readonly unit: "none";
670
+ };
671
+ readonly floating: {
672
+ readonly value: 500;
673
+ readonly unit: "none";
674
+ };
675
+ };
641
676
  }>;
642
677
  export type SemanticColors = Flattened<{
643
678
  colors: typeof colorsSemantic;
@@ -660,7 +695,14 @@ export type ComponentBorderRadius = Flattened<{
660
695
  borderRadius: typeof borderRadiusComponents;
661
696
  }>;
662
697
  export type BorderRadiusTokens = SemanticBorderRadius & ComponentBorderRadius;
663
- export type Theme = ColorTokens & FontTokens & BorderRadiusTokens;
698
+ export type SemanticZIndex = Flattened<{
699
+ zIndex: typeof zIndexSemantic;
700
+ }>;
701
+ export type ComponentZIndex = Flattened<{
702
+ zIndex: typeof zIndexComponents;
703
+ }>;
704
+ export type ZIndexTokens = SemanticZIndex & ComponentZIndex;
705
+ export type Theme = ColorTokens & FontTokens & BorderRadiusTokens & ZIndexTokens;
664
706
  export type ButtonVariant = "primary" | "secondary" | "linkPrimary" | "linkSecondary" | "transparentPrimary" | "transparentSecondary" | "control";
665
707
  export type Size = "lg" | "md" | "sm" | "xs";
666
708
  export type ButtonSize = Size | "none";
@@ -1295,6 +1295,78 @@ export declare const borderRadius: {
1295
1295
  readonly value: 99999;
1296
1296
  };
1297
1297
  };
1298
+ export declare const zIndexSemantic: {
1299
+ readonly base: {
1300
+ readonly value: 0;
1301
+ readonly unit: "none";
1302
+ };
1303
+ readonly raised: {
1304
+ readonly value: 1;
1305
+ readonly unit: "none";
1306
+ };
1307
+ readonly popup: {
1308
+ readonly value: 200;
1309
+ readonly unit: "none";
1310
+ };
1311
+ readonly scrim: {
1312
+ readonly value: 400;
1313
+ readonly unit: "none";
1314
+ };
1315
+ readonly floating: {
1316
+ readonly value: 500;
1317
+ readonly unit: "none";
1318
+ };
1319
+ };
1320
+ export declare const zIndexComponents: {
1321
+ readonly select: {
1322
+ readonly list: {
1323
+ readonly value: "{zIndex.popup}";
1324
+ };
1325
+ };
1326
+ readonly modal: {
1327
+ readonly overlay: {
1328
+ readonly value: "{zIndex.scrim}";
1329
+ };
1330
+ readonly dialog: {
1331
+ readonly value: "{zIndex.floating}";
1332
+ };
1333
+ };
1334
+ };
1335
+ export declare const zIndex: {
1336
+ readonly select: {
1337
+ readonly list: {
1338
+ readonly value: "{zIndex.popup}";
1339
+ };
1340
+ };
1341
+ readonly modal: {
1342
+ readonly overlay: {
1343
+ readonly value: "{zIndex.scrim}";
1344
+ };
1345
+ readonly dialog: {
1346
+ readonly value: "{zIndex.floating}";
1347
+ };
1348
+ };
1349
+ readonly base: {
1350
+ readonly value: 0;
1351
+ readonly unit: "none";
1352
+ };
1353
+ readonly raised: {
1354
+ readonly value: 1;
1355
+ readonly unit: "none";
1356
+ };
1357
+ readonly popup: {
1358
+ readonly value: 200;
1359
+ readonly unit: "none";
1360
+ };
1361
+ readonly scrim: {
1362
+ readonly value: 400;
1363
+ readonly unit: "none";
1364
+ };
1365
+ readonly floating: {
1366
+ readonly value: 500;
1367
+ readonly unit: "none";
1368
+ };
1369
+ };
1298
1370
  export declare const tokens: {
1299
1371
  borderRadius: {
1300
1372
  readonly badge: {
@@ -1933,5 +2005,40 @@ export declare const tokens: {
1933
2005
  };
1934
2006
  };
1935
2007
  };
2008
+ zIndex: {
2009
+ readonly select: {
2010
+ readonly list: {
2011
+ readonly value: "{zIndex.popup}";
2012
+ };
2013
+ };
2014
+ readonly modal: {
2015
+ readonly overlay: {
2016
+ readonly value: "{zIndex.scrim}";
2017
+ };
2018
+ readonly dialog: {
2019
+ readonly value: "{zIndex.floating}";
2020
+ };
2021
+ };
2022
+ readonly base: {
2023
+ readonly value: 0;
2024
+ readonly unit: "none";
2025
+ };
2026
+ readonly raised: {
2027
+ readonly value: 1;
2028
+ readonly unit: "none";
2029
+ };
2030
+ readonly popup: {
2031
+ readonly value: 200;
2032
+ readonly unit: "none";
2033
+ };
2034
+ readonly scrim: {
2035
+ readonly value: 400;
2036
+ readonly unit: "none";
2037
+ };
2038
+ readonly floating: {
2039
+ readonly value: 500;
2040
+ readonly unit: "none";
2041
+ };
2042
+ };
1936
2043
  };
1937
2044
  export type Tokens = typeof tokens;
@@ -446,16 +446,55 @@ const e = {
446
446
  value: "{borderRadius.sm}"
447
447
  }
448
448
  }
449
- }, f = {
449
+ }, c = {
450
450
  ...s,
451
451
  ...i
452
- }, c = {
453
- borderRadius: f,
452
+ }, f = {
453
+ base: {
454
+ value: 0,
455
+ unit: "none"
456
+ },
457
+ raised: {
458
+ value: 1,
459
+ unit: "none"
460
+ },
461
+ popup: {
462
+ value: 200,
463
+ unit: "none"
464
+ },
465
+ scrim: {
466
+ value: 400,
467
+ unit: "none"
468
+ },
469
+ floating: {
470
+ value: 500,
471
+ unit: "none"
472
+ }
473
+ }, v = {
474
+ select: {
475
+ list: {
476
+ value: "{zIndex.popup}"
477
+ }
478
+ },
479
+ modal: {
480
+ overlay: {
481
+ value: "{zIndex.scrim}"
482
+ },
483
+ dialog: {
484
+ value: "{zIndex.floating}"
485
+ }
486
+ }
487
+ }, n = {
488
+ ...f,
489
+ ...v
490
+ }, d = {
491
+ borderRadius: c,
454
492
  colors: t,
455
- font: u
493
+ font: u,
494
+ zIndex: n
456
495
  };
457
496
  export {
458
- f as borderRadius,
497
+ c as borderRadius,
459
498
  i as borderRadiusComponents,
460
499
  s as borderRadiusSemantic,
461
500
  t as colors,
@@ -465,5 +504,8 @@ export {
465
504
  u as font,
466
505
  o as fontComponents,
467
506
  l as fontSemantic,
468
- c as tokens
507
+ d as tokens,
508
+ n as zIndex,
509
+ v as zIndexComponents,
510
+ f as zIndexSemantic
469
511
  };
@@ -8,6 +8,7 @@ export type Flattened<T extends Record<string, unknown>> = {
8
8
  };
9
9
  export type TokenValue = {
10
10
  value: string | number;
11
+ unit?: "px" | "none";
11
12
  modify?: {
12
13
  type: "color-alpha";
13
14
  value: number | string;
@@ -1,22 +1,22 @@
1
1
  function u(t) {
2
2
  return typeof t == "object" && t !== null && "value" in t && (typeof t.value == "string" || typeof t.value == "number");
3
3
  }
4
- function p(t, e = "cdp-web") {
4
+ function $(t, e = "cdp-web") {
5
5
  const o = {};
6
6
  function n(r, c) {
7
- for (const l in r)
8
- if (Object.prototype.hasOwnProperty.call(r, l)) {
9
- const f = [...c, l], i = r[l];
10
- if (u(i)) {
7
+ for (const i in r)
8
+ if (Object.prototype.hasOwnProperty.call(r, i)) {
9
+ const f = [...c, i], l = r[i];
10
+ if (u(l)) {
11
11
  const y = f.join("-");
12
- o[y] = a(i, e);
13
- } else typeof i == "object" && i !== null && n(i, f);
12
+ o[y] = p(l, e);
13
+ } else typeof l == "object" && l !== null && n(l, f);
14
14
  }
15
15
  }
16
16
  return n(t, []), o;
17
17
  }
18
- const s = (t, e) => t.startsWith("{") && t.endsWith("}") ? `var(--${e ? `${e}-` : ""}${t.slice(1, -1).replace(/\./g, "-")})` : t, a = (t, e) => {
19
- const o = typeof t.value == "number" ? `${t.value}px` : s(t.value, e);
18
+ const s = (t, e) => t.startsWith("{") && t.endsWith("}") ? `var(--${e ? `${e}-` : ""}${t.slice(1, -1).replace(/\./g, "-")})` : t, p = (t, e) => {
19
+ const o = typeof t.value == "number" ? t.unit === "none" ? `${t.value}` : `${t.value}${t.unit ?? "px"}` : s(t.value, e);
20
20
  if (t.modify?.type === "color-alpha")
21
21
  return `color(from ${o} srgb r g b / ${t.modify.value ?? 1})`;
22
22
  if (t.modify?.type === "color-hsl") {
@@ -29,14 +29,14 @@ const s = (t, e) => t.startsWith("{") && t.endsWith("}") ? `var(--${e ? `${e}-`
29
29
  if (typeof r == "string")
30
30
  n += `, ${s(r, e)}`;
31
31
  else {
32
- const [c, l] = r;
33
- n += `, ${s(c, e)} ${l}`;
32
+ const [c, i] = r;
33
+ n += `, ${s(c, e)} ${i}`;
34
34
  }
35
35
  }), `color-mix(in oklab, ${n})`;
36
36
  }
37
37
  return t.modify?.type === "multiply" ? `calc(${o} * ${t.modify.value})` : o;
38
38
  }, m = (t) => Object.entries(t).reduce((e, [o, n]) => (e[`--cdp-web-${o}`] = n, e), {});
39
39
  export {
40
- p as flattenTokensObject,
40
+ $ as flattenTokensObject,
41
41
  m as themeToCssVariables
42
42
  };
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const VERSION = "0.0.80";
1
+ export declare const VERSION = "0.0.82";
package/dist/version.js CHANGED
@@ -1,4 +1,4 @@
1
- const o = "0.0.80";
1
+ const o = "0.0.82";
2
2
  export {
3
3
  o as VERSION
4
4
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coinbase/cdp-react",
3
- "version": "0.0.80",
3
+ "version": "0.0.82",
4
4
  "type": "module",
5
5
  "dependencies": {
6
6
  "@internationalized/number": "3.6.4",
@@ -16,8 +16,8 @@
16
16
  },
17
17
  "peerDependencies": {
18
18
  "react": ">=18.2.0 <19.2.0",
19
- "@coinbase/cdp-hooks": "^0.0.80",
20
- "@coinbase/cdp-core": "^0.0.80"
19
+ "@coinbase/cdp-core": "^0.0.82",
20
+ "@coinbase/cdp-hooks": "^0.0.82"
21
21
  },
22
22
  "devDependencies": {
23
23
  "@size-limit/preset-big-lib": "^11.2.0",
@@ -49,8 +49,8 @@
49
49
  "vite": "^7.0.4",
50
50
  "vite-plugin-dts": "^4.5.4",
51
51
  "vite-plugin-lib-inject-css": "^2.2.2",
52
- "@coinbase/cdp-core": "^0.0.80",
53
- "@coinbase/cdp-hooks": "^0.0.80"
52
+ "@coinbase/cdp-core": "^0.0.82",
53
+ "@coinbase/cdp-hooks": "^0.0.82"
54
54
  },
55
55
  "size-limit": [
56
56
  {
@@ -65,7 +65,7 @@
65
65
  "path": "./dist/components/SignIn/index.js",
66
66
  "import": "{ SignIn }",
67
67
  "running": false,
68
- "limit": "89 KB"
68
+ "limit": "92 KB"
69
69
  }
70
70
  ],
71
71
  "files": [