@gardenfi/garden-book 0.3.3 → 0.3.4-beta.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/dist/Button/index.js +6 -6
- package/dist/CookieConsent/CookieConsent.js +31 -30
- package/dist/CookieConsent/CookieConsentNotice.js +13 -14
- package/dist/CookieConsent/CookieConsentPreferences.js +17 -17
- package/dist/Footer/Footer.d.ts +34 -0
- package/dist/Footer/FooterLink.d.ts +1 -0
- package/dist/Footer/FooterLink.js +14 -8
- package/dist/Footer/index.js +249 -189
- package/dist/Icons/BugReportIcon.d.ts +5 -0
- package/dist/Icons/BugReportIcon.js +16 -0
- package/dist/Icons/SecurityVerifiedIcon.d.ts +5 -0
- package/dist/Icons/SecurityVerifiedIcon.js +22 -0
- package/dist/Icons/YoutubeIcon.js +2 -2
- package/dist/Icons/index.d.ts +2 -0
- package/dist/Icons/index.js +66 -62
- package/dist/Logo/AmberLogoFull.d.ts +5 -0
- package/dist/Logo/AmberLogoFull.js +25 -0
- package/dist/Logo/ArbitrumLogoFull.d.ts +5 -0
- package/dist/Logo/ArbitrumLogoFull.js +122 -0
- package/dist/Logo/BaseLogoFull.d.ts +5 -0
- package/dist/Logo/BaseLogoFull.js +34 -0
- package/dist/Logo/BnbChainLogoFull.d.ts +5 -0
- package/dist/Logo/BnbChainLogoFull.js +83 -0
- package/dist/Logo/HyperliquidLogoFull.d.ts +5 -0
- package/dist/Logo/HyperliquidLogoFull.js +104 -0
- package/dist/Logo/JumperLogoFull.d.ts +5 -0
- package/dist/Logo/JumperLogoFull.js +77 -0
- package/dist/Logo/LiFiLogoFull.d.ts +5 -0
- package/dist/Logo/LiFiLogoFull.js +43 -0
- package/dist/Logo/LightsparkLogoFull.d.ts +5 -0
- package/dist/Logo/LightsparkLogoFull.js +56 -0
- package/dist/Logo/LitecoinLogoFull.d.ts +5 -0
- package/dist/Logo/LitecoinLogoFull.js +97 -0
- package/dist/Logo/MaestroLogoFull.d.ts +5 -0
- package/dist/Logo/MaestroLogoFull.js +31 -0
- package/dist/Logo/MegaEthLogoFull.d.ts +5 -0
- package/dist/Logo/MegaEthLogoFull.js +94 -0
- package/dist/Logo/MonadLogoFull.d.ts +5 -0
- package/dist/Logo/MonadLogoFull.js +62 -0
- package/dist/Logo/MulticoinCapitalLogoFull.d.ts +5 -0
- package/dist/Logo/MulticoinCapitalLogoFull.js +154 -0
- package/dist/Logo/PhantomLogoFull.d.ts +5 -0
- package/dist/Logo/PhantomLogoFull.js +76 -0
- package/dist/Logo/RangoLogoFull.d.ts +5 -0
- package/dist/Logo/RangoLogoFull.js +168 -0
- package/dist/Logo/SatsTerminalLogoFull.d.ts +5 -0
- package/dist/Logo/SatsTerminalLogoFull.js +81 -0
- package/dist/Logo/SolanaLogoFull.d.ts +5 -0
- package/dist/Logo/SolanaLogoFull.js +84 -0
- package/dist/Logo/StarknetLogoFull.d.ts +5 -0
- package/dist/Logo/StarknetLogoFull.js +141 -0
- package/dist/Logo/SwapKitLogoFull.d.ts +5 -0
- package/dist/Logo/SwapKitLogoFull.js +97 -0
- package/dist/Logo/XverseLogoFull.d.ts +5 -0
- package/dist/Logo/XverseLogoFull.js +99 -0
- package/dist/Logo/index.d.ts +20 -0
- package/dist/Logo/index.js +94 -54
- package/dist/Typography/Typography.d.ts +9 -6
- package/dist/Typography/index.js +64 -54
- package/dist/index.js +370 -326
- package/dist/style.css +1 -1
- package/dist/utils/index.js +27 -4
- package/package.json +1 -1
package/dist/Button/index.js
CHANGED
|
@@ -19,8 +19,8 @@ const o = c(
|
|
|
19
19
|
variants: {
|
|
20
20
|
variant: {
|
|
21
21
|
primary: "gf-text-white gf-bg-button-primary",
|
|
22
|
-
secondary: "gf-text-
|
|
23
|
-
ternary: "gf-text-
|
|
22
|
+
secondary: "gf-text-near-black gf-bg-button-secondary",
|
|
23
|
+
ternary: "gf-text-white gf-bg-button-ternary",
|
|
24
24
|
disabled: "gf-bg-button-disabled-bg gf-text-button-disabled-text gf-cursor-not-allowed"
|
|
25
25
|
},
|
|
26
26
|
size: {
|
|
@@ -55,10 +55,10 @@ const o = c(
|
|
|
55
55
|
), O = y(
|
|
56
56
|
({
|
|
57
57
|
variant: e,
|
|
58
|
-
size:
|
|
58
|
+
size: l,
|
|
59
59
|
breakpoints: f,
|
|
60
60
|
loading: g,
|
|
61
|
-
className:
|
|
61
|
+
className: d,
|
|
62
62
|
children: n,
|
|
63
63
|
colors: r,
|
|
64
64
|
...x
|
|
@@ -76,10 +76,10 @@ const o = c(
|
|
|
76
76
|
ref: m,
|
|
77
77
|
className: h(
|
|
78
78
|
"gf-transition-colors gf-duration-300",
|
|
79
|
-
|
|
79
|
+
d,
|
|
80
80
|
o({
|
|
81
81
|
variant: e,
|
|
82
|
-
size:
|
|
82
|
+
size: l
|
|
83
83
|
}),
|
|
84
84
|
i,
|
|
85
85
|
g
|
|
@@ -1,34 +1,35 @@
|
|
|
1
1
|
import { jsx as c } from "react/jsx-runtime";
|
|
2
2
|
import { ResponsiveModal as S } from "../ResponsiveModal/index.js";
|
|
3
|
-
import { useCookieConsent as
|
|
4
|
-
import { CookieConsentNotice as
|
|
5
|
-
import { CookieConsentPreferences as
|
|
6
|
-
import { trackConsentEvent as r, DEFAULT_COOKIE_CATEGORIES as
|
|
7
|
-
import { cn as
|
|
3
|
+
import { useCookieConsent as E } from "./useCookieConsent.js";
|
|
4
|
+
import { CookieConsentNotice as N } from "./CookieConsentNotice.js";
|
|
5
|
+
import { CookieConsentPreferences as b } from "./CookieConsentPreferences.js";
|
|
6
|
+
import { trackConsentEvent as r, DEFAULT_COOKIE_CATEGORIES as x, consentDecision as O } from "./utils.js";
|
|
7
|
+
import { cn as o } from "../utils/index.js";
|
|
8
8
|
const F = ({
|
|
9
|
-
privacyPolicyUrl:
|
|
10
|
-
categories:
|
|
11
|
-
defaultChecked:
|
|
9
|
+
privacyPolicyUrl: f,
|
|
10
|
+
categories: l = x,
|
|
11
|
+
defaultChecked: a = !0,
|
|
12
12
|
onChange: n,
|
|
13
|
-
config:
|
|
13
|
+
config: m,
|
|
14
14
|
desktopModal: e,
|
|
15
|
-
mobileBottomSheet:
|
|
15
|
+
mobileBottomSheet: u
|
|
16
16
|
}) => {
|
|
17
|
-
const { isOpen:
|
|
17
|
+
const { isOpen: s, view: _, ready: p, setView: v, close: g, acceptAll: y, save: A } = E(m);
|
|
18
18
|
if (!p) return null;
|
|
19
|
-
const
|
|
19
|
+
const C = {
|
|
20
20
|
preventClose: (e == null ? void 0 : e.preventClose) ?? !0,
|
|
21
21
|
disableScrollLock: (e == null ? void 0 : e.disableScrollLock) ?? !0,
|
|
22
|
-
overlayClassName:
|
|
23
|
-
"!gf-items-end !gf-justify-start gf-pl-
|
|
22
|
+
overlayClassName: o(
|
|
23
|
+
"!gf-items-end !gf-justify-start gf-pl-4 sm:gf-pl-6 md:gf-pl-10 !gf-bg-transparent !gf-pointer-events-none",
|
|
24
24
|
e == null ? void 0 : e.overlayClassName
|
|
25
25
|
),
|
|
26
|
-
className:
|
|
27
|
-
"!gf-pointer-events-auto !gf-
|
|
26
|
+
className: o(
|
|
27
|
+
s ? "!gf-pointer-events-auto" : "!gf-pointer-events-none",
|
|
28
|
+
"!gf-w-[420px] gf-gap-0 gf-px-3 gf-py-4 gf-rounded-t-4 gf-rounded-b-none",
|
|
28
29
|
e == null ? void 0 : e.className
|
|
29
30
|
)
|
|
30
|
-
},
|
|
31
|
-
|
|
31
|
+
}, i = () => {
|
|
32
|
+
y(), r("cookie_consent_set", {
|
|
32
33
|
consent_action: "accept_all",
|
|
33
34
|
consent_analytics: !0,
|
|
34
35
|
consent_functional: !0,
|
|
@@ -38,27 +39,27 @@ const F = ({
|
|
|
38
39
|
return /* @__PURE__ */ c(
|
|
39
40
|
S,
|
|
40
41
|
{
|
|
41
|
-
open:
|
|
42
|
-
onClose:
|
|
43
|
-
desktopModal:
|
|
44
|
-
mobileBottomSheet:
|
|
42
|
+
open: s,
|
|
43
|
+
onClose: g,
|
|
44
|
+
desktopModal: C,
|
|
45
|
+
mobileBottomSheet: u,
|
|
45
46
|
children: _ === "notice" ? /* @__PURE__ */ c(
|
|
46
|
-
|
|
47
|
+
N,
|
|
47
48
|
{
|
|
48
|
-
privacyPolicyUrl:
|
|
49
|
+
privacyPolicyUrl: f,
|
|
49
50
|
onChangePreferences: () => {
|
|
50
51
|
r("cookie_prefs_opened"), v("preferences");
|
|
51
52
|
},
|
|
52
|
-
onAcceptAll:
|
|
53
|
+
onAcceptAll: i
|
|
53
54
|
}
|
|
54
55
|
) : /* @__PURE__ */ c(
|
|
55
|
-
|
|
56
|
+
b,
|
|
56
57
|
{
|
|
57
|
-
categories:
|
|
58
|
-
defaultChecked:
|
|
59
|
-
onAcceptAll:
|
|
58
|
+
categories: l,
|
|
59
|
+
defaultChecked: a,
|
|
60
|
+
onAcceptAll: i,
|
|
60
61
|
onSave: (t) => {
|
|
61
|
-
|
|
62
|
+
A(t), r("cookie_consent_set", {
|
|
62
63
|
consent_action: "save",
|
|
63
64
|
consent_analytics: t.analytics,
|
|
64
65
|
consent_functional: t.functional,
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { Typography as
|
|
1
|
+
import { jsxs as r, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { Typography as a } from "../Typography/index.js";
|
|
3
3
|
import { Button as l } from "../Button/index.js";
|
|
4
4
|
const g = ({
|
|
5
5
|
privacyPolicyUrl: i,
|
|
6
|
-
onChangePreferences:
|
|
7
|
-
onAcceptAll:
|
|
8
|
-
}) => /* @__PURE__ */
|
|
9
|
-
/* @__PURE__ */
|
|
10
|
-
/* @__PURE__ */ e(
|
|
11
|
-
/* @__PURE__ */ a
|
|
6
|
+
onChangePreferences: o,
|
|
7
|
+
onAcceptAll: s
|
|
8
|
+
}) => /* @__PURE__ */ r("div", { className: "gf-flex gf-flex-col gf-gap-9", children: [
|
|
9
|
+
/* @__PURE__ */ r("div", { className: "gf-flex gf-flex-col gf-gap-3 gf-px-1", children: [
|
|
10
|
+
/* @__PURE__ */ e(a, { as: "p", size: "h5", weight: "medium", className: "!gf-leading-5", children: "Manage cookies" }),
|
|
11
|
+
/* @__PURE__ */ r(a, { as: "p", size: "h4", color: "neutral-grey", children: [
|
|
12
12
|
"We use cookies and analytics to improve Garden. ",
|
|
13
13
|
/* @__PURE__ */ e("br", {}),
|
|
14
14
|
"Learn more in our",
|
|
@@ -26,15 +26,14 @@ const g = ({
|
|
|
26
26
|
"."
|
|
27
27
|
] })
|
|
28
28
|
] }),
|
|
29
|
-
/* @__PURE__ */
|
|
29
|
+
/* @__PURE__ */ r("div", { className: "gf-flex gf-flex-col gf-gap-3", children: [
|
|
30
30
|
/* @__PURE__ */ e(
|
|
31
31
|
l,
|
|
32
32
|
{
|
|
33
|
-
variant: "
|
|
33
|
+
variant: "secondary",
|
|
34
34
|
size: "sm",
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
onClick: s,
|
|
35
|
+
className: "gf-w-full gf-border gf-border-mist",
|
|
36
|
+
onClick: o,
|
|
38
37
|
children: "Change preferences"
|
|
39
38
|
}
|
|
40
39
|
),
|
|
@@ -44,7 +43,7 @@ const g = ({
|
|
|
44
43
|
variant: "primary",
|
|
45
44
|
size: "sm",
|
|
46
45
|
className: "gf-w-full",
|
|
47
|
-
onClick:
|
|
46
|
+
onClick: s,
|
|
48
47
|
children: "Accept all"
|
|
49
48
|
}
|
|
50
49
|
)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as i, jsx as l } from "react/jsx-runtime";
|
|
2
2
|
import { useState as p } from "react";
|
|
3
3
|
import { Typography as s } from "../Typography/index.js";
|
|
4
4
|
import { Button as c } from "../Button/index.js";
|
|
@@ -6,29 +6,29 @@ import { CheckBox as h } from "../Checkbox/Checkbox.js";
|
|
|
6
6
|
const v = ({
|
|
7
7
|
categories: n,
|
|
8
8
|
defaultChecked: r,
|
|
9
|
-
onAcceptAll:
|
|
10
|
-
onSave:
|
|
9
|
+
onAcceptAll: o,
|
|
10
|
+
onSave: t
|
|
11
11
|
}) => {
|
|
12
|
-
const [f,
|
|
12
|
+
const [f, d] = p({
|
|
13
13
|
analytics: r,
|
|
14
14
|
functional: r
|
|
15
15
|
});
|
|
16
|
-
return /* @__PURE__ */
|
|
17
|
-
/* @__PURE__ */
|
|
16
|
+
return /* @__PURE__ */ i("div", { className: "gf-flex gf-flex-col gf-gap-9", children: [
|
|
17
|
+
/* @__PURE__ */ i("div", { className: "gf-flex gf-flex-col gf-gap-3 gf-px-1", children: [
|
|
18
18
|
/* @__PURE__ */ l(s, { as: "p", size: "h5", weight: "medium", className: "!gf-leading-5", children: "Manage cookies" }),
|
|
19
19
|
/* @__PURE__ */ l("div", { className: "gf-flex gf-flex-col gf-gap-4", children: n.map((e) => {
|
|
20
|
-
const
|
|
21
|
-
return /* @__PURE__ */
|
|
22
|
-
/* @__PURE__ */
|
|
20
|
+
const a = e.id, m = e.locked ? !0 : f[a];
|
|
21
|
+
return /* @__PURE__ */ i("div", { className: "gf-flex gf-flex-col gf-gap-1", children: [
|
|
22
|
+
/* @__PURE__ */ i("div", { className: "gf-flex gf-items-center gf-justify-between gf-gap-4", children: [
|
|
23
23
|
/* @__PURE__ */ l(s, { as: "p", size: "h4", weight: "medium", children: e.title }),
|
|
24
24
|
/* @__PURE__ */ l(
|
|
25
25
|
h,
|
|
26
26
|
{
|
|
27
|
-
checked:
|
|
27
|
+
checked: m,
|
|
28
28
|
disabled: e.locked,
|
|
29
29
|
"aria-label": e.title,
|
|
30
30
|
className: "gf-shrink-0 gf-text-dark-grey",
|
|
31
|
-
onClick: () =>
|
|
31
|
+
onClick: () => d((g) => ({ ...g, [a]: !g[a] }))
|
|
32
32
|
}
|
|
33
33
|
)
|
|
34
34
|
] }),
|
|
@@ -38,6 +38,7 @@ const v = ({
|
|
|
38
38
|
as: "p",
|
|
39
39
|
size: "h4",
|
|
40
40
|
weight: "regular",
|
|
41
|
+
color: "neutral-grey",
|
|
41
42
|
className: "gf-max-w-[340px]",
|
|
42
43
|
children: e.description
|
|
43
44
|
}
|
|
@@ -45,15 +46,14 @@ const v = ({
|
|
|
45
46
|
] }, e.id);
|
|
46
47
|
}) })
|
|
47
48
|
] }),
|
|
48
|
-
/* @__PURE__ */
|
|
49
|
+
/* @__PURE__ */ i("div", { className: "gf-flex gf-flex-col gf-gap-3", children: [
|
|
49
50
|
/* @__PURE__ */ l(
|
|
50
51
|
c,
|
|
51
52
|
{
|
|
52
|
-
variant: "
|
|
53
|
+
variant: "secondary",
|
|
53
54
|
size: "sm",
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
onClick: t,
|
|
55
|
+
className: "gf-w-full gf-border gf-border-mist",
|
|
56
|
+
onClick: o,
|
|
57
57
|
children: "Accept all"
|
|
58
58
|
}
|
|
59
59
|
),
|
|
@@ -63,7 +63,7 @@ const v = ({
|
|
|
63
63
|
variant: "primary",
|
|
64
64
|
size: "sm",
|
|
65
65
|
className: "gf-w-full",
|
|
66
|
-
onClick: () =>
|
|
66
|
+
onClick: () => t(f),
|
|
67
67
|
children: "Save"
|
|
68
68
|
}
|
|
69
69
|
)
|
package/dist/Footer/Footer.d.ts
CHANGED
|
@@ -5,12 +5,46 @@ export type SocialLinks = {
|
|
|
5
5
|
x?: string;
|
|
6
6
|
youtube?: string;
|
|
7
7
|
};
|
|
8
|
+
export type FooterLabels = {
|
|
9
|
+
sections?: {
|
|
10
|
+
products?: string;
|
|
11
|
+
resources?: string;
|
|
12
|
+
developers?: string;
|
|
13
|
+
routes?: string;
|
|
14
|
+
security?: string;
|
|
15
|
+
};
|
|
16
|
+
products?: {
|
|
17
|
+
swap?: string;
|
|
18
|
+
stake?: string;
|
|
19
|
+
explorer?: string;
|
|
20
|
+
};
|
|
21
|
+
resources?: {
|
|
22
|
+
blog?: string;
|
|
23
|
+
routes?: string;
|
|
24
|
+
faq?: string;
|
|
25
|
+
brandKit?: string;
|
|
26
|
+
analytics?: string;
|
|
27
|
+
governance?: string;
|
|
28
|
+
};
|
|
29
|
+
developers?: {
|
|
30
|
+
docs?: string;
|
|
31
|
+
api?: string;
|
|
32
|
+
sdk?: string;
|
|
33
|
+
security?: string;
|
|
34
|
+
};
|
|
35
|
+
legal?: {
|
|
36
|
+
privacyPolicy?: string;
|
|
37
|
+
termsOfService?: string;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
8
40
|
type FooterProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
9
41
|
network?: string;
|
|
10
42
|
navigate?: (path: string) => void;
|
|
11
43
|
maskUrl?: string;
|
|
12
44
|
socialLinks?: SocialLinks;
|
|
13
45
|
bgVideoSrc?: string;
|
|
46
|
+
labels?: FooterLabels;
|
|
47
|
+
locale?: string;
|
|
14
48
|
};
|
|
15
49
|
export declare const Footer: React.FC<FooterProps>;
|
|
16
50
|
export {};
|
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
import { jsxs as s, jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import { RollingText as i } from "../animations/RollingText/RollingText.js";
|
|
3
3
|
import { Typography as r } from "../Typography/index.js";
|
|
4
|
-
|
|
4
|
+
import { cn as h } from "../utils/index.js";
|
|
5
|
+
const w = ({
|
|
5
6
|
title: c,
|
|
6
7
|
links: n,
|
|
7
8
|
hoveredIndex: g,
|
|
8
9
|
onHover: e,
|
|
9
|
-
className:
|
|
10
|
-
listClassName:
|
|
11
|
-
isRoutes: l = !1
|
|
12
|
-
|
|
10
|
+
className: p = "gf-flex gf-w-full gf-flex-col gf-gap-3 md:gf-w-fit",
|
|
11
|
+
listClassName: u = "gf-flex gf-flex-col gf-gap-1",
|
|
12
|
+
isRoutes: l = !1,
|
|
13
|
+
isLogoHovered: m = !1
|
|
14
|
+
}) => /* @__PURE__ */ s("div", { className: p, children: [
|
|
13
15
|
/* @__PURE__ */ t(
|
|
14
16
|
r,
|
|
15
17
|
{
|
|
@@ -19,7 +21,7 @@ const o = ({
|
|
|
19
21
|
children: /* @__PURE__ */ t("span", { children: c })
|
|
20
22
|
}
|
|
21
23
|
),
|
|
22
|
-
/* @__PURE__ */ t("ul", { className:
|
|
24
|
+
/* @__PURE__ */ t("ul", { className: u, children: Object.values(n).map(
|
|
23
25
|
(a, f) => a.link && /* @__PURE__ */ t(
|
|
24
26
|
"li",
|
|
25
27
|
{
|
|
@@ -38,7 +40,11 @@ const o = ({
|
|
|
38
40
|
target: "_blank",
|
|
39
41
|
size: "h4",
|
|
40
42
|
weight: "regular",
|
|
41
|
-
className:
|
|
43
|
+
className: h(
|
|
44
|
+
"gf-cursor-pointer gf-transition-all gf-duration-500 gf-ease-in-out",
|
|
45
|
+
m ? "gf-text-inherit" : "gf-text-graphite",
|
|
46
|
+
l && "gf-flex gf-w-fit gf-gap-0.5 gf-items-end gf-transition-colors gf-duration-500 gf-ease-in-out"
|
|
47
|
+
),
|
|
42
48
|
children: [
|
|
43
49
|
a.inputAsset && /* @__PURE__ */ t(
|
|
44
50
|
i,
|
|
@@ -83,5 +89,5 @@ const o = ({
|
|
|
83
89
|
) })
|
|
84
90
|
] });
|
|
85
91
|
export {
|
|
86
|
-
|
|
92
|
+
w as FooterLinks
|
|
87
93
|
};
|