@coinbase/cdp-react 0.0.0 → 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +99 -0
- package/dist/assets/Button.css +1 -0
- package/dist/assets/Error.css +1 -0
- package/dist/assets/Field.css +1 -0
- package/dist/assets/Input.css +1 -0
- package/dist/assets/LoadingSpinner.css +1 -0
- package/dist/assets/OTP.css +1 -0
- package/dist/assets/SignIn.css +1 -0
- package/dist/assets/SignInModal.css +1 -0
- package/dist/assets/SignOutButton.css +1 -0
- package/dist/assets/ThemeProvider.css +1 -0
- package/dist/assets/VisuallyHidden.css +1 -0
- package/dist/chunks/SignIn.module.Dl3CqKQ_.js +20 -0
- package/dist/components/AuthButton/index.d.ts +1 -0
- package/dist/components/AuthButton/index.js +20 -0
- package/dist/components/Button/index.d.ts +8 -0
- package/dist/components/Button/index.js +28 -0
- package/dist/components/CDPReactProvider/index.d.ts +11 -0
- package/dist/components/CDPReactProvider/index.js +20 -0
- package/dist/components/Error/index.d.ts +7 -0
- package/dist/components/Error/index.js +16 -0
- package/dist/components/Field/index.d.ts +11 -0
- package/dist/components/Field/index.js +22 -0
- package/dist/components/Input/index.d.ts +4 -0
- package/dist/components/Input/index.js +17 -0
- package/dist/components/LoadingSpinner/index.d.ts +3 -0
- package/dist/components/LoadingSpinner/index.js +31 -0
- package/dist/components/OTP/index.d.ts +7 -0
- package/dist/components/OTP/index.js +42 -0
- package/dist/components/ServerError/index.d.ts +8 -0
- package/dist/components/ServerError/index.js +14 -0
- package/dist/components/SignIn/SignInDescription.d.ts +5 -0
- package/dist/components/SignIn/SignInDescription.js +27 -0
- package/dist/components/SignIn/SignInForm.d.ts +6 -0
- package/dist/components/SignIn/SignInForm.js +177 -0
- package/dist/components/SignIn/SignInImage.d.ts +6 -0
- package/dist/components/SignIn/SignInImage.js +21 -0
- package/dist/components/SignIn/SignInProvider.d.ts +13 -0
- package/dist/components/SignIn/SignInProvider.js +29 -0
- package/dist/components/SignIn/SignInTitle.d.ts +5 -0
- package/dist/components/SignIn/SignInTitle.js +16 -0
- package/dist/components/SignIn/index.d.ts +14 -0
- package/dist/components/SignIn/index.js +28 -0
- package/dist/components/SignIn/useSignInReducer.d.ts +58 -0
- package/dist/components/SignIn/useSignInReducer.js +49 -0
- package/dist/components/SignInModal/index.d.ts +8 -0
- package/dist/components/SignInModal/index.js +50 -0
- package/dist/components/SignOutButton/index.d.ts +8 -0
- package/dist/components/SignOutButton/index.js +16 -0
- package/dist/components/ThemeProvider/index.d.ts +15 -0
- package/dist/components/ThemeProvider/index.js +33 -0
- package/dist/components/VisuallyHidden/index.d.ts +10 -0
- package/dist/components/VisuallyHidden/index.js +17 -0
- package/dist/icons/IconCheckCircle.d.ts +2 -0
- package/dist/icons/IconCheckCircle.js +15 -0
- package/dist/icons/IconCoinbaseWordmark.d.ts +2 -0
- package/dist/icons/IconCoinbaseWordmark.js +16 -0
- package/dist/icons/IconExclamationCircle.d.ts +2 -0
- package/dist/icons/IconExclamationCircle.js +15 -0
- package/dist/icons/IconLock.d.ts +2 -0
- package/dist/icons/IconLock.js +13 -0
- package/dist/icons/IconXMark.d.ts +2 -0
- package/dist/icons/IconXMark.js +13 -0
- package/dist/icons/SvgIcon.d.ts +4 -0
- package/dist/icons/SvgIcon.js +19 -0
- package/dist/icons/index.d.ts +4 -0
- package/dist/icons/index.js +10 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.js +48 -0
- package/dist/theme/index.d.ts +3 -0
- package/dist/theme/index.js +10 -0
- package/dist/theme/theme.d.ts +37 -0
- package/dist/theme/theme.js +6 -0
- package/dist/theme/tokens.d.ts +50 -0
- package/dist/theme/tokens.js +63 -0
- package/dist/theme/utils.d.ts +11 -0
- package/dist/theme/utils.js +18 -0
- package/dist/utils/index.d.ts +2 -0
- package/dist/utils/index.js +6 -0
- package/dist/utils/isApiError.d.ts +6 -0
- package/dist/utils/isApiError.js +4 -0
- package/dist/utils/isEmailInvalid.d.ts +1 -0
- package/dist/utils/isEmailInvalid.js +4 -0
- package/package.json +108 -6
- package/index.js +0 -1
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import { SvgIcon as r } from "./SvgIcon.js";
|
|
4
|
+
const c = (e) => /* @__PURE__ */ o(r, { viewBox: "0 0 24 24", width: "24", height: "24", ...e, children: /* @__PURE__ */ o(
|
|
5
|
+
"path",
|
|
6
|
+
{
|
|
7
|
+
fill: "currentColor",
|
|
8
|
+
fillRule: "evenodd",
|
|
9
|
+
d: "M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12ZM12 8.25a.75.75 0 0 1 .75.75v3.75a.75.75 0 0 1-1.5 0V9a.75.75 0 0 1 .75-.75Zm0 8.25a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Z",
|
|
10
|
+
clipRule: "evenodd"
|
|
11
|
+
}
|
|
12
|
+
) });
|
|
13
|
+
export {
|
|
14
|
+
c as IconExclamationCircle
|
|
15
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import { SvgIcon as t } from "./SvgIcon.js";
|
|
4
|
+
const n = (r) => /* @__PURE__ */ o(t, { width: "11", height: "11", viewBox: "0 0 11 11", ...r, children: /* @__PURE__ */ o(
|
|
5
|
+
"path",
|
|
6
|
+
{
|
|
7
|
+
d: "M2.98877 4.49512V3.49512C2.98877 1.83826 4.33192 0.495117 5.98877 0.495117C7.64562 0.495117 8.98877 1.83826 8.98877 3.49512V4.49512H10.9888V10.4951H0.98877V4.49512H2.98877ZM7.78877 3.49512C7.78877 2.501 6.98288 1.69512 5.98877 1.69512C4.99466 1.69512 4.18877 2.501 4.18877 3.49512V4.49512H7.78877V3.49512Z",
|
|
8
|
+
fill: "currentColor"
|
|
9
|
+
}
|
|
10
|
+
) });
|
|
11
|
+
export {
|
|
12
|
+
n as IconLock
|
|
13
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import { SvgIcon as L } from "./SvgIcon.js";
|
|
4
|
+
const n = (o) => /* @__PURE__ */ r(L, { width: "15", height: "14", viewBox: "0 0 15 14", ...o, children: /* @__PURE__ */ r(
|
|
5
|
+
"path",
|
|
6
|
+
{
|
|
7
|
+
d: "M6.85395 6.99516L0.98877 1.12998L2.12364 -0.00488281L7.98881 5.86029L13.854 -0.00488281L14.9889 1.12998L9.12368 6.99516L14.9888 12.8602L13.8539 13.9951L7.98881 8.13003L2.12372 13.9951L0.988857 12.8602L6.85395 6.99516Z",
|
|
8
|
+
fill: "currentColor"
|
|
9
|
+
}
|
|
10
|
+
) });
|
|
11
|
+
export {
|
|
12
|
+
n as IconXMark
|
|
13
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
const n = ({
|
|
4
|
+
children: o,
|
|
5
|
+
...r
|
|
6
|
+
}) => /* @__PURE__ */ i(
|
|
7
|
+
"svg",
|
|
8
|
+
{
|
|
9
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
10
|
+
fill: "none",
|
|
11
|
+
role: "img",
|
|
12
|
+
"aria-hidden": r["aria-label"] ? void 0 : !0,
|
|
13
|
+
...r,
|
|
14
|
+
children: o
|
|
15
|
+
}
|
|
16
|
+
);
|
|
17
|
+
export {
|
|
18
|
+
n as SvgIcon
|
|
19
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { IconCheckCircle as c } from "./IconCheckCircle.js";
|
|
2
|
+
import { IconExclamationCircle as m } from "./IconExclamationCircle.js";
|
|
3
|
+
import { IconLock as t } from "./IconLock.js";
|
|
4
|
+
import { IconXMark as f } from "./IconXMark.js";
|
|
5
|
+
export {
|
|
6
|
+
c as IconCheckCircle,
|
|
7
|
+
m as IconExclamationCircle,
|
|
8
|
+
t as IconLock,
|
|
9
|
+
f as IconXMark
|
|
10
|
+
};
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from './components/CDPReactProvider';
|
|
2
|
+
export * from './components/AuthButton';
|
|
3
|
+
export * from './components/SignIn';
|
|
4
|
+
export * from './components/SignOutButton';
|
|
5
|
+
export * from './components/SignInModal';
|
|
6
|
+
export * from './components/ThemeProvider';
|
|
7
|
+
export * from './theme';
|
|
8
|
+
export * from './icons';
|
|
9
|
+
export * from './utils';
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { CDPReactProvider as e, useAppConfig as t } from "./components/CDPReactProvider/index.js";
|
|
2
|
+
import { AuthButton as m } from "./components/AuthButton/index.js";
|
|
3
|
+
import { SignIn as f } from "./components/SignIn/index.js";
|
|
4
|
+
import { useSignInReducer as x } from "./components/SignIn/useSignInReducer.js";
|
|
5
|
+
import { SignOutButton as I } from "./components/SignOutButton/index.js";
|
|
6
|
+
import { SignInModal as a } from "./components/SignInModal/index.js";
|
|
7
|
+
import { ThemeProvider as l, useTheme as u } from "./components/ThemeProvider/index.js";
|
|
8
|
+
import { flattenedTheme as C } from "./theme/theme.js";
|
|
9
|
+
import { colors as h, tokens as T } from "./theme/tokens.js";
|
|
10
|
+
import { flattenTokensObject as v, themeToCssVariables as A } from "./theme/utils.js";
|
|
11
|
+
import { IconCheckCircle as P } from "./icons/IconCheckCircle.js";
|
|
12
|
+
import { IconExclamationCircle as B } from "./icons/IconExclamationCircle.js";
|
|
13
|
+
import { IconLock as M } from "./icons/IconLock.js";
|
|
14
|
+
import { IconXMark as R } from "./icons/IconXMark.js";
|
|
15
|
+
import { isEmailInvalid as F } from "./utils/isEmailInvalid.js";
|
|
16
|
+
import { isApiError as V } from "./utils/isApiError.js";
|
|
17
|
+
import { SignInDescription as q } from "./components/SignIn/SignInDescription.js";
|
|
18
|
+
import { SignInForm as y } from "./components/SignIn/SignInForm.js";
|
|
19
|
+
import { SignInImage as G } from "./components/SignIn/SignInImage.js";
|
|
20
|
+
import { SignInTitle as J } from "./components/SignIn/SignInTitle.js";
|
|
21
|
+
import { useSignInContext as N } from "./components/SignIn/SignInProvider.js";
|
|
22
|
+
export {
|
|
23
|
+
m as AuthButton,
|
|
24
|
+
e as CDPReactProvider,
|
|
25
|
+
P as IconCheckCircle,
|
|
26
|
+
B as IconExclamationCircle,
|
|
27
|
+
M as IconLock,
|
|
28
|
+
R as IconXMark,
|
|
29
|
+
f as SignIn,
|
|
30
|
+
q as SignInDescription,
|
|
31
|
+
y as SignInForm,
|
|
32
|
+
G as SignInImage,
|
|
33
|
+
a as SignInModal,
|
|
34
|
+
J as SignInTitle,
|
|
35
|
+
I as SignOutButton,
|
|
36
|
+
l as ThemeProvider,
|
|
37
|
+
h as colors,
|
|
38
|
+
v as flattenTokensObject,
|
|
39
|
+
C as flattenedTheme,
|
|
40
|
+
V as isApiError,
|
|
41
|
+
F as isEmailInvalid,
|
|
42
|
+
A as themeToCssVariables,
|
|
43
|
+
T as tokens,
|
|
44
|
+
t as useAppConfig,
|
|
45
|
+
N as useSignInContext,
|
|
46
|
+
x as useSignInReducer,
|
|
47
|
+
u as useTheme
|
|
48
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { flattenedTheme as t } from "./theme.js";
|
|
2
|
+
import { colors as s, tokens as f } from "./tokens.js";
|
|
3
|
+
import { flattenTokensObject as a, themeToCssVariables as l } from "./utils.js";
|
|
4
|
+
export {
|
|
5
|
+
s as colors,
|
|
6
|
+
a as flattenTokensObject,
|
|
7
|
+
t as flattenedTheme,
|
|
8
|
+
l as themeToCssVariables,
|
|
9
|
+
f as tokens
|
|
10
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
export declare const flattenedTheme: import('./utils').Flattened<{
|
|
2
|
+
colors: {
|
|
3
|
+
error: string;
|
|
4
|
+
success: string;
|
|
5
|
+
background: string;
|
|
6
|
+
backgroundOverlay: string;
|
|
7
|
+
text: string;
|
|
8
|
+
textSecondary: string;
|
|
9
|
+
primary: string;
|
|
10
|
+
primaryText: string;
|
|
11
|
+
primaryHoverBackground: string;
|
|
12
|
+
primaryHoverText: string;
|
|
13
|
+
primaryFocusRing: string;
|
|
14
|
+
secondary: string;
|
|
15
|
+
secondaryText: string;
|
|
16
|
+
secondaryHoverBackground: string;
|
|
17
|
+
secondaryHoverText: string;
|
|
18
|
+
secondaryFocusRing: string;
|
|
19
|
+
linkText: string;
|
|
20
|
+
linkHover: string;
|
|
21
|
+
linkSecondaryText: string;
|
|
22
|
+
linkSecondaryHover: string;
|
|
23
|
+
border: string;
|
|
24
|
+
inputBackground: string;
|
|
25
|
+
inputBorder: string;
|
|
26
|
+
inputFocusBorder: string;
|
|
27
|
+
inputLabel: string;
|
|
28
|
+
inputPlaceholder: string;
|
|
29
|
+
inputText: string;
|
|
30
|
+
};
|
|
31
|
+
fontFamily: {
|
|
32
|
+
sans: string;
|
|
33
|
+
};
|
|
34
|
+
fontSizeBase: number;
|
|
35
|
+
}>;
|
|
36
|
+
export type Theme = typeof flattenedTheme;
|
|
37
|
+
export type ButtonVariant = "primary" | "secondary" | "transparentPrimary" | "transparentSecondary";
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
export declare const colors: {
|
|
2
|
+
blue500: string;
|
|
3
|
+
blue550: string;
|
|
4
|
+
black: string;
|
|
5
|
+
white: string;
|
|
6
|
+
gray50: string;
|
|
7
|
+
gray100: string;
|
|
8
|
+
gray200: string;
|
|
9
|
+
gray500: string;
|
|
10
|
+
gray700: string;
|
|
11
|
+
gray900: string;
|
|
12
|
+
red500: string;
|
|
13
|
+
green500: string;
|
|
14
|
+
};
|
|
15
|
+
export declare const tokens: {
|
|
16
|
+
colors: {
|
|
17
|
+
error: string;
|
|
18
|
+
success: string;
|
|
19
|
+
background: string;
|
|
20
|
+
backgroundOverlay: string;
|
|
21
|
+
text: string;
|
|
22
|
+
textSecondary: string;
|
|
23
|
+
primary: string;
|
|
24
|
+
primaryText: string;
|
|
25
|
+
primaryHoverBackground: string;
|
|
26
|
+
primaryHoverText: string;
|
|
27
|
+
primaryFocusRing: string;
|
|
28
|
+
secondary: string;
|
|
29
|
+
secondaryText: string;
|
|
30
|
+
secondaryHoverBackground: string;
|
|
31
|
+
secondaryHoverText: string;
|
|
32
|
+
secondaryFocusRing: string;
|
|
33
|
+
linkText: string;
|
|
34
|
+
linkHover: string;
|
|
35
|
+
linkSecondaryText: string;
|
|
36
|
+
linkSecondaryHover: string;
|
|
37
|
+
border: string;
|
|
38
|
+
inputBackground: string;
|
|
39
|
+
inputBorder: string;
|
|
40
|
+
inputFocusBorder: string;
|
|
41
|
+
inputLabel: string;
|
|
42
|
+
inputPlaceholder: string;
|
|
43
|
+
inputText: string;
|
|
44
|
+
};
|
|
45
|
+
fontFamily: {
|
|
46
|
+
sans: string;
|
|
47
|
+
};
|
|
48
|
+
fontSizeBase: number;
|
|
49
|
+
};
|
|
50
|
+
export type Tokens = typeof tokens;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
const e = {
|
|
2
|
+
// Brand colors
|
|
3
|
+
blue500: "#0052ff",
|
|
4
|
+
blue550: "#014cec",
|
|
5
|
+
black: "#0a0b0d",
|
|
6
|
+
white: "#ffffff",
|
|
7
|
+
// grayscale
|
|
8
|
+
gray50: "#f9fafb",
|
|
9
|
+
gray100: "#eef0f3",
|
|
10
|
+
gray200: "#dcdfe4",
|
|
11
|
+
gray500: "#9397a0",
|
|
12
|
+
gray700: "#5b616e",
|
|
13
|
+
gray900: "#1a1d21",
|
|
14
|
+
// contextual
|
|
15
|
+
red500: "#cf202f",
|
|
16
|
+
green500: "#008531"
|
|
17
|
+
}, r = {
|
|
18
|
+
colors: {
|
|
19
|
+
// Contextual
|
|
20
|
+
error: e.red500,
|
|
21
|
+
success: e.green500,
|
|
22
|
+
// Background
|
|
23
|
+
background: e.white,
|
|
24
|
+
backgroundOverlay: "rgba(255,255,255,0.5)",
|
|
25
|
+
// Foreground
|
|
26
|
+
text: e.black,
|
|
27
|
+
textSecondary: e.gray700,
|
|
28
|
+
// Primary action
|
|
29
|
+
primary: e.blue500,
|
|
30
|
+
primaryText: e.white,
|
|
31
|
+
primaryHoverBackground: e.blue550,
|
|
32
|
+
primaryHoverText: e.white,
|
|
33
|
+
primaryFocusRing: e.blue500,
|
|
34
|
+
// Secondary action
|
|
35
|
+
secondary: e.gray100,
|
|
36
|
+
secondaryText: e.black,
|
|
37
|
+
secondaryHoverBackground: e.gray200,
|
|
38
|
+
secondaryHoverText: e.black,
|
|
39
|
+
secondaryFocusRing: e.black,
|
|
40
|
+
// Link
|
|
41
|
+
linkText: e.blue500,
|
|
42
|
+
linkHover: e.blue550,
|
|
43
|
+
linkSecondaryText: e.black,
|
|
44
|
+
linkSecondaryHover: e.gray700,
|
|
45
|
+
// Borders and dividers
|
|
46
|
+
border: e.gray200,
|
|
47
|
+
// Input
|
|
48
|
+
inputBackground: e.white,
|
|
49
|
+
inputBorder: e.gray500,
|
|
50
|
+
inputFocusBorder: e.blue500,
|
|
51
|
+
inputLabel: e.black,
|
|
52
|
+
inputPlaceholder: e.gray700,
|
|
53
|
+
inputText: e.black
|
|
54
|
+
},
|
|
55
|
+
fontFamily: {
|
|
56
|
+
sans: '-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"'
|
|
57
|
+
},
|
|
58
|
+
fontSizeBase: 16
|
|
59
|
+
};
|
|
60
|
+
export {
|
|
61
|
+
e as colors,
|
|
62
|
+
r as tokens
|
|
63
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export type KebabCasePaths<T> = T extends Record<string, unknown> ? {
|
|
2
|
+
[K in keyof T]: T[K] extends Record<string, unknown> ? `${K & string}-${KebabCasePaths<T[K]> & string}` : K & string;
|
|
3
|
+
}[keyof T] : never;
|
|
4
|
+
export type Flattened<T extends Record<string, unknown>> = {
|
|
5
|
+
[K in KebabCasePaths<T>]: string;
|
|
6
|
+
};
|
|
7
|
+
export declare function flattenTokensObject<T extends Record<string, unknown>>(obj: T, path?: string[]): Flattened<T>;
|
|
8
|
+
export declare const themeToCssVariables: (theme: Record<string, string>) => CDPWebCSSVariables;
|
|
9
|
+
export type CDPWebCSSVariables = {
|
|
10
|
+
[key: `--cdp-web-${string}`]: string;
|
|
11
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
function i(n, r = []) {
|
|
2
|
+
const t = {};
|
|
3
|
+
for (const [s, e] of Object.entries(n)) {
|
|
4
|
+
const o = [...r, s];
|
|
5
|
+
if (typeof e == "object" && e !== null && !Array.isArray(e))
|
|
6
|
+
Object.assign(t, i(e, o));
|
|
7
|
+
else {
|
|
8
|
+
const c = o.join("-");
|
|
9
|
+
Array.isArray(e) ? t[c] = e.join(" ") : t[c] = typeof e == "number" ? `${e}px` : String(e);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
return t;
|
|
13
|
+
}
|
|
14
|
+
const a = (n) => Object.entries(n).reduce((r, [t, s]) => (r[`--cdp-web-${t}`] = s, r), {});
|
|
15
|
+
export {
|
|
16
|
+
i as flattenTokensObject,
|
|
17
|
+
a as themeToCssVariables
|
|
18
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const isEmailInvalid: (value: string) => boolean;
|
package/package.json
CHANGED
|
@@ -1,8 +1,110 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coinbase/cdp-react",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"dependencies": {
|
|
6
|
+
"@radix-ui/react-dialog": "^1.1.14",
|
|
7
|
+
"@radix-ui/react-form": "^0.1.7",
|
|
8
|
+
"@radix-ui/react-one-time-password-field": "^0.1.7"
|
|
9
|
+
},
|
|
10
|
+
"peerDependencies": {
|
|
11
|
+
"react": "^18.2.0",
|
|
12
|
+
"@coinbase/cdp-core": "^0.0.1",
|
|
13
|
+
"@coinbase/cdp-hooks": "^0.0.1"
|
|
14
|
+
},
|
|
15
|
+
"devDependencies": {
|
|
16
|
+
"@size-limit/preset-big-lib": "^11.2.0",
|
|
17
|
+
"@size-limit/webpack": "^11.2.0",
|
|
18
|
+
"@size-limit/webpack-css": "^11.2.0",
|
|
19
|
+
"@size-limit/webpack-why": "^11.2.0",
|
|
20
|
+
"@testing-library/dom": "^10.0.0",
|
|
21
|
+
"@testing-library/jest-dom": "^6.6.3",
|
|
22
|
+
"@testing-library/react": "~16.2.0",
|
|
23
|
+
"@testing-library/user-event": "^14.6.1",
|
|
24
|
+
"@types/glob": "^9.0.0",
|
|
25
|
+
"@types/react": "^18.2.0",
|
|
26
|
+
"@types/react-dom": "^18.2.0",
|
|
27
|
+
"@vitejs/plugin-react": "^4.6.0",
|
|
28
|
+
"eslint-plugin-react": "^7.37.5",
|
|
29
|
+
"eslint-plugin-react-hooks": "^5.2.0",
|
|
30
|
+
"glob": "^11.0.3",
|
|
31
|
+
"react": "^18.2.0",
|
|
32
|
+
"react-dom": "^18.2.0",
|
|
33
|
+
"size-limit": "^11.2.0",
|
|
34
|
+
"vite": "^7.0.4",
|
|
35
|
+
"vite-plugin-dts": "^4.5.4",
|
|
36
|
+
"vite-plugin-lib-inject-css": "^2.2.2",
|
|
37
|
+
"@coinbase/cdp-core": "^0.0.1",
|
|
38
|
+
"@coinbase/cdp-hooks": "^0.0.1"
|
|
39
|
+
},
|
|
40
|
+
"size-limit": [
|
|
41
|
+
{
|
|
42
|
+
"name": "full-package",
|
|
43
|
+
"path": "./dist/index.js",
|
|
44
|
+
"import": "*",
|
|
45
|
+
"limit": "65 KB"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"name": "single-component",
|
|
49
|
+
"path": "./dist/components/SignIn/index.js",
|
|
50
|
+
"import": "{ SignIn }",
|
|
51
|
+
"limit": "65 KB"
|
|
52
|
+
}
|
|
53
|
+
],
|
|
54
|
+
"files": [
|
|
55
|
+
"dist/**",
|
|
56
|
+
"!dist/**/*.tsbuildinfo"
|
|
57
|
+
],
|
|
58
|
+
"sideEffects": [
|
|
59
|
+
"**/*.css"
|
|
60
|
+
],
|
|
61
|
+
"exports": {
|
|
62
|
+
".": {
|
|
63
|
+
"import": {
|
|
64
|
+
"types": "./dist/index.d.ts",
|
|
65
|
+
"default": "./dist/index.js"
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
"./components/*": {
|
|
69
|
+
"import": {
|
|
70
|
+
"types": "./dist/components/*/index.d.ts",
|
|
71
|
+
"default": "./dist/components/*/index.js"
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
"./icons": {
|
|
75
|
+
"import": {
|
|
76
|
+
"types": "./dist/icons/index.d.ts",
|
|
77
|
+
"default": "./dist/icons/index.js"
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
"./icons/*": {
|
|
81
|
+
"import": {
|
|
82
|
+
"types": "./dist/icons/*.d.ts",
|
|
83
|
+
"default": "./dist/icons/*.js"
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
"./theme": {
|
|
87
|
+
"import": {
|
|
88
|
+
"types": "./dist/theme/index.d.ts",
|
|
89
|
+
"default": "./dist/theme/index.js"
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
"./theme/*": {
|
|
93
|
+
"import": {
|
|
94
|
+
"types": "./dist/theme/*.d.ts",
|
|
95
|
+
"default": "./dist/theme/*.js"
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
"scripts": {
|
|
100
|
+
"build": "pnpm run check:types && vite build",
|
|
101
|
+
"build:watch": "vite build --watch",
|
|
102
|
+
"check:types": "tsc --noEmit",
|
|
103
|
+
"clean": "rm -rf dist",
|
|
104
|
+
"clean:all": "pnpm clean && rm -rf node_modules",
|
|
105
|
+
"size-limit": "size-limit",
|
|
106
|
+
"test": "vitest",
|
|
107
|
+
"test:run": "vitest --run",
|
|
108
|
+
"genc": "node ../../scripts/generate-component.mjs src/components"
|
|
109
|
+
}
|
|
110
|
+
}
|
package/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
console.log("Temporary package");
|