@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.
Files changed (74) hide show
  1. package/dist/BottomSheet/BottomSheet.d.ts +4 -0
  2. package/dist/BottomSheet/index.js +38 -26
  3. package/dist/Button/index.js +6 -6
  4. package/dist/CookieConsent/CookieConsent.d.ts +7 -0
  5. package/dist/CookieConsent/CookieConsent.js +61 -37
  6. package/dist/CookieConsent/CookieConsentNotice.js +13 -14
  7. package/dist/CookieConsent/CookieConsentPreferences.js +17 -17
  8. package/dist/CookieConsent/store.js +19 -19
  9. package/dist/CookieConsent/utils.d.ts +8 -0
  10. package/dist/CookieConsent/utils.js +41 -25
  11. package/dist/DashboardLayout/DashboardSidebar.js +5 -5
  12. package/dist/DashboardLayout/MobileMenu.js +74 -66
  13. package/dist/Footer/Footer.d.ts +34 -0
  14. package/dist/Footer/FooterLink.d.ts +1 -0
  15. package/dist/Footer/FooterLink.js +14 -8
  16. package/dist/Footer/index.js +249 -189
  17. package/dist/Icons/BugReportIcon.d.ts +5 -0
  18. package/dist/Icons/BugReportIcon.js +16 -0
  19. package/dist/Icons/SecurityVerifiedIcon.d.ts +5 -0
  20. package/dist/Icons/SecurityVerifiedIcon.js +22 -0
  21. package/dist/Icons/YoutubeIcon.js +2 -2
  22. package/dist/Icons/index.d.ts +2 -0
  23. package/dist/Icons/index.js +66 -62
  24. package/dist/Logo/AmberLogoFull.d.ts +5 -0
  25. package/dist/Logo/AmberLogoFull.js +25 -0
  26. package/dist/Logo/ArbitrumLogoFull.d.ts +5 -0
  27. package/dist/Logo/ArbitrumLogoFull.js +122 -0
  28. package/dist/Logo/BaseLogoFull.d.ts +5 -0
  29. package/dist/Logo/BaseLogoFull.js +34 -0
  30. package/dist/Logo/BnbChainLogoFull.d.ts +5 -0
  31. package/dist/Logo/BnbChainLogoFull.js +83 -0
  32. package/dist/Logo/HyperliquidLogoFull.d.ts +5 -0
  33. package/dist/Logo/HyperliquidLogoFull.js +104 -0
  34. package/dist/Logo/JumperLogoFull.d.ts +5 -0
  35. package/dist/Logo/JumperLogoFull.js +77 -0
  36. package/dist/Logo/LiFiLogoFull.d.ts +5 -0
  37. package/dist/Logo/LiFiLogoFull.js +43 -0
  38. package/dist/Logo/LightsparkLogoFull.d.ts +5 -0
  39. package/dist/Logo/LightsparkLogoFull.js +56 -0
  40. package/dist/Logo/LitecoinLogoFull.d.ts +5 -0
  41. package/dist/Logo/LitecoinLogoFull.js +97 -0
  42. package/dist/Logo/MaestroLogoFull.d.ts +5 -0
  43. package/dist/Logo/MaestroLogoFull.js +31 -0
  44. package/dist/Logo/MegaEthLogoFull.d.ts +5 -0
  45. package/dist/Logo/MegaEthLogoFull.js +94 -0
  46. package/dist/Logo/MonadLogoFull.d.ts +5 -0
  47. package/dist/Logo/MonadLogoFull.js +62 -0
  48. package/dist/Logo/MulticoinCapitalLogoFull.d.ts +5 -0
  49. package/dist/Logo/MulticoinCapitalLogoFull.js +154 -0
  50. package/dist/Logo/PhantomLogoFull.d.ts +5 -0
  51. package/dist/Logo/PhantomLogoFull.js +76 -0
  52. package/dist/Logo/RangoLogoFull.d.ts +5 -0
  53. package/dist/Logo/RangoLogoFull.js +168 -0
  54. package/dist/Logo/SatsTerminalLogoFull.d.ts +5 -0
  55. package/dist/Logo/SatsTerminalLogoFull.js +81 -0
  56. package/dist/Logo/SolanaLogoFull.d.ts +5 -0
  57. package/dist/Logo/SolanaLogoFull.js +84 -0
  58. package/dist/Logo/StarknetLogoFull.d.ts +5 -0
  59. package/dist/Logo/StarknetLogoFull.js +141 -0
  60. package/dist/Logo/SwapKitLogoFull.d.ts +5 -0
  61. package/dist/Logo/SwapKitLogoFull.js +97 -0
  62. package/dist/Logo/XverseLogoFull.d.ts +5 -0
  63. package/dist/Logo/XverseLogoFull.js +99 -0
  64. package/dist/Logo/index.d.ts +20 -0
  65. package/dist/Logo/index.js +94 -54
  66. package/dist/ResponsiveModal/ResponsiveModal.d.ts +29 -11
  67. package/dist/ResponsiveModal/index.js +53 -54
  68. package/dist/Typography/Typography.d.ts +9 -6
  69. package/dist/Typography/index.js +64 -54
  70. package/dist/index.d.ts +44 -44
  71. package/dist/index.js +370 -326
  72. package/dist/style.css +1 -1
  73. package/dist/utils/index.js +27 -4
  74. package/package.json +1 -1
@@ -1,117 +1,125 @@
1
- import { jsxs as a, Fragment as C, jsx as e } from "react/jsx-runtime";
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 S } from "../HamburgerIcon/index.js";
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 M } from "../Button/index.js";
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: n, onToggle: o, children: s }) => /* @__PURE__ */ a("div", { children: [
10
- /* @__PURE__ */ e("span", { onClick: o, className: "gf-block gf-cursor-pointer", children: /* @__PURE__ */ e(t, { size: "h3", weight: "medium", children: i }) }),
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
- n ? "gf-grid-rows-[1fr] gf-opacity-100" : "gf-grid-rows-[0fr] gf-opacity-0"
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: s }) })
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: n,
24
- onNavigate: o,
25
- onLogout: s,
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 [h, p] = m(!1), [y, g] = m(!1), [k, u] = m(
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
- p(!1), u(((l = i[0]) == null ? void 0 : l.label) ?? "group-0");
34
+ h(!1), u(((l = i[0]) == null ? void 0 : l.label) ?? "group-0");
35
35
  }, v = () => {
36
- d(), N ? g(!0) : s();
36
+ d(), N ? g(!0) : n();
37
37
  }, z = () => {
38
38
  g(!1), c == null || c();
39
39
  };
40
- return /* @__PURE__ */ a(C, { children: [
40
+ return /* @__PURE__ */ a(O, { children: [
41
41
  /* @__PURE__ */ e(
42
42
  "button",
43
43
  {
44
44
  type: "button",
45
- onClick: () => p((l) => !l),
45
+ onClick: () => h((l) => !l),
46
46
  "aria-label": "Open menu",
47
47
  className: "gf-shrink-0",
48
- children: /* @__PURE__ */ e(S, { isOpen: h })
48
+ children: /* @__PURE__ */ e(C, { isOpen: p })
49
49
  }
50
50
  ),
51
- /* @__PURE__ */ a(w, { open: h, onClose: d, className: "gf-w-full", children: [
52
- /* @__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, O) => {
53
- const f = l.label ?? `group-${O}`;
54
- return /* @__PURE__ */ e(
55
- R,
56
- {
57
- title: l.label ?? "Navigation",
58
- isOpen: k === f,
59
- onToggle: () => u((r) => r === f ? "" : f),
60
- children: l.items.map((r) => {
61
- const x = n === r.href || n === `${r.href}/`;
62
- return /* @__PURE__ */ e(
63
- "div",
64
- {
65
- className: "gf-cursor-pointer gf-pt-4",
66
- onClick: () => {
67
- o(r.href), d();
68
- },
69
- children: /* @__PURE__ */ e(
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
- size: "h3",
73
- weight: x ? "medium" : "regular",
74
- className: x ? "gf-text-primaryIris" : "gf-text-dark-grey",
75
- children: r.title
76
- }
77
- )
78
- },
79
- r.href
80
- );
81
- })
82
- },
83
- f
84
- );
85
- }) }),
86
- /* @__PURE__ */ e("nav", { className: "gf-py-5 gf-px-6 gf-bg-white/30 gf-rounded-xl", children: /* @__PURE__ */ a(
87
- "button",
88
- {
89
- type: "button",
90
- onClick: v,
91
- className: "gf-flex gf-w-full gf-cursor-pointer gf-items-center gf-gap-2 focus:gf-outline-none",
92
- children: [
93
- /* @__PURE__ */ e(I, { className: "gf-h-5 gf-w-5" }),
94
- /* @__PURE__ */ e(t, { size: "h3", weight: "medium", children: "Log out" })
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
- M,
117
+ S,
110
118
  {
111
119
  variant: "primary",
112
120
  className: "gf-w-full",
113
121
  onClick: () => {
114
- g(!1), s();
122
+ g(!1), n();
115
123
  },
116
124
  children: "Sign out"
117
125
  }
@@ -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 {};
@@ -14,6 +14,7 @@ type FooterLinksProps = {
14
14
  className?: string;
15
15
  listClassName?: string;
16
16
  isRoutes?: boolean;
17
+ isLogoHovered?: boolean;
17
18
  };
18
19
  export declare const FooterLinks: React.FC<FooterLinksProps>;
19
20
  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
- const o = ({
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: u = "gf-flex gf-w-full gf-flex-col gf-gap-3 md:gf-w-fit",
10
- listClassName: p = "gf-flex gf-flex-col gf-gap-1",
11
- isRoutes: l = !1
12
- }) => /* @__PURE__ */ s("div", { className: u, children: [
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: p, children: Object.values(n).map(
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: `gf-cursor-pointer gf-transition-all gf-duration-500 gf-ease-in-out gf-text-inherit ${l ? "gf-flex gf-w-fit gf-gap-0.5 gf-items-end gf-transition-colors gf-duration-500 gf-ease-in-out" : ""}`,
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
- o as FooterLinks
92
+ w as FooterLinks
87
93
  };