@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.
- package/dist/assets/CountrySelect.css +1 -1
- package/dist/assets/Modal.css +1 -1
- package/dist/assets/Select.css +1 -1
- package/dist/components/ThemeProvider/index.js +34 -31
- package/dist/components/ui/Modal/index.js +26 -23
- package/dist/index.js +150 -147
- package/dist/theme/index.js +18 -15
- package/dist/theme/theme.d.ts +44 -2
- package/dist/theme/tokens.d.ts +107 -0
- package/dist/theme/tokens.js +48 -6
- package/dist/theme/utils.d.ts +1 -0
- package/dist/theme/utils.js +12 -12
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +6 -6
|
@@ -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(
|
|
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)}
|
package/dist/assets/Modal.css
CHANGED
|
@@ -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:
|
|
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%)}}}
|
package/dist/assets/Select.css
CHANGED
|
@@ -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
|
|
2
|
-
import { createContext as
|
|
3
|
-
import { theme as
|
|
4
|
-
import { themeToCssVariables as
|
|
5
|
-
import '../../assets/ThemeProvider.css';const
|
|
6
|
-
wrapper:
|
|
7
|
-
},
|
|
8
|
-
children:
|
|
9
|
-
className:
|
|
10
|
-
style:
|
|
11
|
-
theme:
|
|
12
|
-
"data-cdp-provider":
|
|
13
|
-
...
|
|
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
|
-
|
|
17
|
-
|
|
18
|
-
),
|
|
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:
|
|
24
|
+
cssVariables: a
|
|
22
25
|
}),
|
|
23
|
-
[r,
|
|
26
|
+
[r, a]
|
|
24
27
|
);
|
|
25
|
-
return /* @__PURE__ */
|
|
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: `${
|
|
29
|
-
style: { ...
|
|
30
|
-
...
|
|
31
|
-
"data-cdp-provider":
|
|
32
|
-
children:
|
|
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
|
|
37
|
-
if (!
|
|
38
|
+
}, E = () => {
|
|
39
|
+
const o = u(m);
|
|
40
|
+
if (!o)
|
|
38
41
|
throw new Error("useTheme must be used within a ThemeProvider");
|
|
39
|
-
return
|
|
42
|
+
return o;
|
|
40
43
|
};
|
|
41
44
|
export {
|
|
42
|
-
|
|
43
|
-
|
|
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
|
|
3
|
-
import { c as
|
|
4
|
-
import { forwardRef as
|
|
5
|
-
import { useTheme as
|
|
6
|
-
import '../../../assets/Modal.css';const
|
|
7
|
-
|
|
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:
|
|
10
|
-
},
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
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
|
|
17
|
-
/* @__PURE__ */ o("div", { className:
|
|
18
|
-
/* @__PURE__ */ o(
|
|
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
|
-
|
|
23
|
-
const
|
|
25
|
+
b.displayName = "ModalContent";
|
|
26
|
+
const R = g, q = D, G = v, Q = h, U = f;
|
|
24
27
|
export {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
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
|
|
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
|
|
8
|
-
import { CopySolanaKeyButton as
|
|
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
|
|
12
|
-
import { Fund as
|
|
13
|
-
import { FundModal as
|
|
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
|
|
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
|
|
29
|
-
import { flattenTokensObject as
|
|
30
|
-
import { IconAppleLogo as
|
|
31
|
-
import { IconArrowLeft as
|
|
32
|
-
import { IconArrowsUpDown as
|
|
33
|
-
import { IconCheck as
|
|
34
|
-
import { IconCheckCircle as
|
|
35
|
-
import { IconChevronDown as
|
|
36
|
-
import { IconCopy as
|
|
37
|
-
import { IconEnvelope as
|
|
38
|
-
import { IconExclamationCircle as
|
|
39
|
-
import { IconExclamationTriangle as
|
|
40
|
-
import { IconGoogleLogo as
|
|
41
|
-
import { IconLock as
|
|
42
|
-
import { IconMinus as
|
|
43
|
-
import { IconPhone as
|
|
44
|
-
import { IconPinCode as
|
|
45
|
-
import { IconPlus as
|
|
46
|
-
import { IconShield as
|
|
47
|
-
import { IconSmartPhone as
|
|
48
|
-
import { IconXMark as
|
|
49
|
-
import { clamp as
|
|
50
|
-
import { getMessageFromUnknownError as
|
|
51
|
-
import { isApiError as
|
|
52
|
-
import { isEmailInvalid as
|
|
53
|
-
import { parseValuesFromPhoneNumber as
|
|
54
|
-
import { sendIframeMessage as
|
|
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
|
|
57
|
-
import { EnrollMfaFlow as
|
|
58
|
-
import { EnrollMfaFlowBackButton as
|
|
59
|
-
import { EnrollMfaFooter as
|
|
60
|
-
import { EnrollMfaImage as
|
|
61
|
-
import { EnrollMfaItem as
|
|
62
|
-
import { EnrollMfaItems as
|
|
63
|
-
import { EnrollMfaTitle as
|
|
64
|
-
import { useEnrollMfaContext as
|
|
65
|
-
import { useEnrollMfaFlow as
|
|
66
|
-
import { FundForm as
|
|
67
|
-
import { FundTitle as
|
|
68
|
-
import { useFundContext as
|
|
69
|
-
import { a as
|
|
70
|
-
import { LinkAuthFlowBackButton as
|
|
71
|
-
import { LinkAuthItem as
|
|
72
|
-
import { LinkAuthItems as
|
|
73
|
-
import { LinkAuthTitle as
|
|
74
|
-
import { useLinkAuthContext as
|
|
75
|
-
import { SignInAuthMethodButtons as
|
|
76
|
-
import { SignInBackButton as
|
|
77
|
-
import { SignInDescription as
|
|
78
|
-
import { SignInFooter as
|
|
79
|
-
import { SignInForm as
|
|
80
|
-
import { SignInImage as
|
|
81
|
-
import { SignInTitle as
|
|
82
|
-
import { useSignInContext as
|
|
83
|
-
import { VerifyMfaDescription as
|
|
84
|
-
import { VerifyMfaFooter as
|
|
85
|
-
import { VerifyMfaFlow as
|
|
86
|
-
import { VerifyMfaImage as
|
|
87
|
-
import { VerifyMfaTitle as
|
|
88
|
-
import { useVerifyMfaContext as
|
|
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
|
-
|
|
97
|
-
|
|
96
|
+
S as CopyEvmKeyButton,
|
|
97
|
+
A as CopySolanaKeyButton,
|
|
98
98
|
y as EnrollMfa,
|
|
99
|
-
|
|
99
|
+
re as EnrollMfaDescription,
|
|
100
100
|
k as EnrollMfaError,
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
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
|
-
|
|
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
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
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
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
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
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
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
|
-
|
|
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
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
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
|
-
|
|
177
|
+
Ze as SignInTitle,
|
|
178
178
|
go as SignOutButton,
|
|
179
179
|
Co as ThemeProvider,
|
|
180
180
|
s as VerifyMfa,
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
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
|
-
|
|
190
|
-
|
|
191
|
-
|
|
189
|
+
d as VerifyMfaModalContent,
|
|
190
|
+
u as VerifyMfaModalTrigger,
|
|
191
|
+
xt as VerifyMfaTitle,
|
|
192
192
|
_o as borderRadius,
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
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
|
-
|
|
202
|
-
|
|
201
|
+
er as flattenTokensObject,
|
|
202
|
+
qo as font,
|
|
203
203
|
Jo as fontComponents,
|
|
204
204
|
Qo as fontSemantic,
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
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
|
-
|
|
211
|
+
tr as themeToCssVariables,
|
|
212
212
|
Yo as tokens,
|
|
213
213
|
c as useAppConfig,
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
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
|
-
|
|
220
|
+
ot as useSignInContext,
|
|
221
221
|
io as useSignInReducer,
|
|
222
222
|
To as useTheme,
|
|
223
|
-
|
|
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
|
};
|
package/dist/theme/index.js
CHANGED
|
@@ -1,21 +1,24 @@
|
|
|
1
|
-
import { cssVariables as
|
|
2
|
-
import { theme as
|
|
3
|
-
import { borderRadius as
|
|
4
|
-
import { flattenTokensObject as R, themeToCssVariables as
|
|
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
|
-
|
|
7
|
-
|
|
6
|
+
m as borderRadius,
|
|
7
|
+
a as borderRadiusComponents,
|
|
8
8
|
c as borderRadiusSemantic,
|
|
9
|
-
|
|
9
|
+
d as colors,
|
|
10
10
|
i as colorsBase,
|
|
11
|
-
|
|
11
|
+
f as colorsComponents,
|
|
12
12
|
p as colorsSemantic,
|
|
13
|
-
|
|
13
|
+
n as cssVariables,
|
|
14
14
|
R as flattenTokensObject,
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
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
|
};
|
package/dist/theme/theme.d.ts
CHANGED
|
@@ -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
|
|
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";
|
package/dist/theme/tokens.d.ts
CHANGED
|
@@ -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;
|
package/dist/theme/tokens.js
CHANGED
|
@@ -446,16 +446,55 @@ const e = {
|
|
|
446
446
|
value: "{borderRadius.sm}"
|
|
447
447
|
}
|
|
448
448
|
}
|
|
449
|
-
},
|
|
449
|
+
}, c = {
|
|
450
450
|
...s,
|
|
451
451
|
...i
|
|
452
|
-
},
|
|
453
|
-
|
|
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
|
-
|
|
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
|
-
|
|
507
|
+
d as tokens,
|
|
508
|
+
n as zIndex,
|
|
509
|
+
v as zIndexComponents,
|
|
510
|
+
f as zIndexSemantic
|
|
469
511
|
};
|
package/dist/theme/utils.d.ts
CHANGED
package/dist/theme/utils.js
CHANGED
|
@@ -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
|
|
4
|
+
function $(t, e = "cdp-web") {
|
|
5
5
|
const o = {};
|
|
6
6
|
function n(r, c) {
|
|
7
|
-
for (const
|
|
8
|
-
if (Object.prototype.hasOwnProperty.call(r,
|
|
9
|
-
const f = [...c,
|
|
10
|
-
if (u(
|
|
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] =
|
|
13
|
-
} else typeof
|
|
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,
|
|
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,
|
|
33
|
-
n += `, ${s(c, e)} ${
|
|
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
|
-
|
|
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.
|
|
1
|
+
export declare const VERSION = "0.0.82";
|
package/dist/version.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coinbase/cdp-react",
|
|
3
|
-
"version": "0.0.
|
|
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-
|
|
20
|
-
"@coinbase/cdp-
|
|
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.
|
|
53
|
-
"@coinbase/cdp-hooks": "^0.0.
|
|
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": "
|
|
68
|
+
"limit": "92 KB"
|
|
69
69
|
}
|
|
70
70
|
],
|
|
71
71
|
"files": [
|