@gardenfi/garden-book 0.3.2 → 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/BottomSheet/BottomSheet.d.ts +4 -0
- package/dist/BottomSheet/index.js +38 -26
- package/dist/Button/index.js +6 -6
- package/dist/CookieConsent/CookieConsent.d.ts +7 -0
- package/dist/CookieConsent/CookieConsent.js +61 -37
- package/dist/CookieConsent/CookieConsentNotice.js +13 -14
- package/dist/CookieConsent/CookieConsentPreferences.js +17 -17
- package/dist/CookieConsent/store.js +19 -19
- package/dist/CookieConsent/utils.d.ts +8 -0
- package/dist/CookieConsent/utils.js +41 -25
- package/dist/DashboardLayout/DashboardSidebar.js +5 -5
- package/dist/DashboardLayout/MobileMenu.js +74 -66
- 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/ResponsiveModal/ResponsiveModal.d.ts +29 -11
- package/dist/ResponsiveModal/index.js +53 -54
- package/dist/Typography/Typography.d.ts +9 -6
- package/dist/Typography/index.js +64 -54
- package/dist/index.d.ts +44 -44
- package/dist/index.js +370 -326
- package/dist/style.css +1 -1
- package/dist/utils/index.js +27 -4
- package/package.json +1 -1
|
@@ -1,117 +1,125 @@
|
|
|
1
|
-
import { jsxs as a, Fragment as
|
|
1
|
+
import { jsxs as a, Fragment as O, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { useState as m } from "react";
|
|
3
|
-
import { HamburgerIcon as
|
|
3
|
+
import { HamburgerIcon as C } from "../HamburgerIcon/index.js";
|
|
4
4
|
import { ResponsiveModal as w } from "../ResponsiveModal/index.js";
|
|
5
5
|
import { Typography as t } from "../Typography/index.js";
|
|
6
|
-
import { Button as
|
|
6
|
+
import { Button as S } from "../Button/index.js";
|
|
7
7
|
import { cn as j } from "../utils/index.js";
|
|
8
8
|
import I from "../node_modules/lucide-react/dist/esm/icons/log-out.js";
|
|
9
|
-
const R = ({ title: i, isOpen:
|
|
10
|
-
/* @__PURE__ */ e("span", { onClick:
|
|
9
|
+
const R = ({ title: i, isOpen: s, onToggle: f, children: n }) => /* @__PURE__ */ a("div", { children: [
|
|
10
|
+
/* @__PURE__ */ e("span", { onClick: f, className: "gf-block gf-cursor-pointer", children: /* @__PURE__ */ e(t, { size: "h3", weight: "medium", children: i }) }),
|
|
11
11
|
/* @__PURE__ */ e(
|
|
12
12
|
"div",
|
|
13
13
|
{
|
|
14
14
|
className: j(
|
|
15
15
|
"gf-grid gf-transition-[grid-template-rows,opacity] gf-duration-500 gf-ease-[cubic-bezier(0.22,1,0.36,1)]",
|
|
16
|
-
|
|
16
|
+
s ? "gf-grid-rows-[1fr] gf-opacity-100" : "gf-grid-rows-[0fr] gf-opacity-0"
|
|
17
17
|
),
|
|
18
|
-
children: /* @__PURE__ */ e("div", { className: "gf-overflow-hidden", children: /* @__PURE__ */ e("div", { className: "gf-ml-6 gf-flex gf-flex-col", children:
|
|
18
|
+
children: /* @__PURE__ */ e("div", { className: "gf-overflow-hidden", children: /* @__PURE__ */ e("div", { className: "gf-ml-6 gf-flex gf-flex-col", children: n }) })
|
|
19
19
|
}
|
|
20
20
|
)
|
|
21
21
|
] }), A = ({
|
|
22
22
|
navGroups: i,
|
|
23
|
-
activePath:
|
|
24
|
-
onNavigate:
|
|
25
|
-
onLogout:
|
|
23
|
+
activePath: s,
|
|
24
|
+
onNavigate: f,
|
|
25
|
+
onLogout: n,
|
|
26
26
|
showLogoutConfirm: N = !1,
|
|
27
27
|
onLogoutConfirmClose: c
|
|
28
28
|
}) => {
|
|
29
29
|
var b;
|
|
30
|
-
const [
|
|
30
|
+
const [p, h] = m(!1), [y, g] = m(!1), [k, u] = m(
|
|
31
31
|
((b = i[0]) == null ? void 0 : b.label) ?? "group-0"
|
|
32
32
|
), d = () => {
|
|
33
33
|
var l;
|
|
34
|
-
|
|
34
|
+
h(!1), u(((l = i[0]) == null ? void 0 : l.label) ?? "group-0");
|
|
35
35
|
}, v = () => {
|
|
36
|
-
d(), N ? g(!0) :
|
|
36
|
+
d(), N ? g(!0) : n();
|
|
37
37
|
}, z = () => {
|
|
38
38
|
g(!1), c == null || c();
|
|
39
39
|
};
|
|
40
|
-
return /* @__PURE__ */ a(
|
|
40
|
+
return /* @__PURE__ */ a(O, { children: [
|
|
41
41
|
/* @__PURE__ */ e(
|
|
42
42
|
"button",
|
|
43
43
|
{
|
|
44
44
|
type: "button",
|
|
45
|
-
onClick: () =>
|
|
45
|
+
onClick: () => h((l) => !l),
|
|
46
46
|
"aria-label": "Open menu",
|
|
47
47
|
className: "gf-shrink-0",
|
|
48
|
-
children: /* @__PURE__ */ e(
|
|
48
|
+
children: /* @__PURE__ */ e(C, { isOpen: p })
|
|
49
49
|
}
|
|
50
50
|
),
|
|
51
|
-
/* @__PURE__ */ a(
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
"
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
t,
|
|
51
|
+
/* @__PURE__ */ a(
|
|
52
|
+
w,
|
|
53
|
+
{
|
|
54
|
+
open: p,
|
|
55
|
+
onClose: d,
|
|
56
|
+
desktopModal: { className: "gf-w-full" },
|
|
57
|
+
children: [
|
|
58
|
+
/* @__PURE__ */ e("nav", { className: "gf-flex gf-flex-col gf-gap-4 gf-p-6 gf-bg-white/30 gf-rounded-xl", children: i.map((l, M) => {
|
|
59
|
+
const o = l.label ?? `group-${M}`;
|
|
60
|
+
return /* @__PURE__ */ e(
|
|
61
|
+
R,
|
|
62
|
+
{
|
|
63
|
+
title: l.label ?? "Navigation",
|
|
64
|
+
isOpen: k === o,
|
|
65
|
+
onToggle: () => u((r) => r === o ? "" : o),
|
|
66
|
+
children: l.items.map((r) => {
|
|
67
|
+
const x = s === r.href || s === `${r.href}/`;
|
|
68
|
+
return /* @__PURE__ */ e(
|
|
69
|
+
"div",
|
|
71
70
|
{
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
71
|
+
className: "gf-cursor-pointer gf-pt-4",
|
|
72
|
+
onClick: () => {
|
|
73
|
+
f(r.href), d();
|
|
74
|
+
},
|
|
75
|
+
children: /* @__PURE__ */ e(
|
|
76
|
+
t,
|
|
77
|
+
{
|
|
78
|
+
size: "h3",
|
|
79
|
+
weight: x ? "medium" : "regular",
|
|
80
|
+
className: x ? "gf-text-primaryIris" : "gf-text-dark-grey",
|
|
81
|
+
children: r.title
|
|
82
|
+
}
|
|
83
|
+
)
|
|
84
|
+
},
|
|
85
|
+
r.href
|
|
86
|
+
);
|
|
87
|
+
})
|
|
88
|
+
},
|
|
89
|
+
o
|
|
90
|
+
);
|
|
91
|
+
}) }),
|
|
92
|
+
/* @__PURE__ */ e("nav", { className: "gf-py-5 gf-px-6 gf-bg-white/30 gf-rounded-xl", children: /* @__PURE__ */ a(
|
|
93
|
+
"button",
|
|
94
|
+
{
|
|
95
|
+
type: "button",
|
|
96
|
+
onClick: v,
|
|
97
|
+
className: "gf-flex gf-w-full gf-cursor-pointer gf-items-center gf-gap-2 focus:gf-outline-none",
|
|
98
|
+
children: [
|
|
99
|
+
/* @__PURE__ */ e(I, { className: "gf-h-5 gf-w-5" }),
|
|
100
|
+
/* @__PURE__ */ e(t, { size: "h3", weight: "medium", children: "Log out" })
|
|
101
|
+
]
|
|
102
|
+
}
|
|
103
|
+
) })
|
|
104
|
+
]
|
|
105
|
+
}
|
|
106
|
+
),
|
|
99
107
|
/* @__PURE__ */ a(
|
|
100
108
|
w,
|
|
101
109
|
{
|
|
102
110
|
open: y,
|
|
103
111
|
onClose: z,
|
|
104
112
|
label: "Ready to sign out?",
|
|
105
|
-
className: "gf-max-w-sm",
|
|
113
|
+
desktopModal: { className: "gf-max-w-sm" },
|
|
106
114
|
children: [
|
|
107
115
|
/* @__PURE__ */ e("div", { className: "gf-flex gf-flex-col gf-gap-2", children: /* @__PURE__ */ e(t, { size: "h5", weight: "regular", children: "You'll be signed out and redirected to the login page." }) }),
|
|
108
116
|
/* @__PURE__ */ e(
|
|
109
|
-
|
|
117
|
+
S,
|
|
110
118
|
{
|
|
111
119
|
variant: "primary",
|
|
112
120
|
className: "gf-w-full",
|
|
113
121
|
onClick: () => {
|
|
114
|
-
g(!1),
|
|
122
|
+
g(!1), n();
|
|
115
123
|
},
|
|
116
124
|
children: "Sign out"
|
|
117
125
|
}
|
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
|
};
|