@gardenfi/garden-book 0.3.3 → 0.3.4-beta.2

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 (63) hide show
  1. package/dist/Button/index.js +6 -6
  2. package/dist/CookieConsent/CookieConsent.js +31 -30
  3. package/dist/CookieConsent/CookieConsentNotice.js +14 -15
  4. package/dist/CookieConsent/CookieConsentPreferences.js +18 -18
  5. package/dist/Footer/Footer.d.ts +34 -0
  6. package/dist/Footer/FooterLink.d.ts +1 -0
  7. package/dist/Footer/FooterLink.js +14 -8
  8. package/dist/Footer/index.js +251 -194
  9. package/dist/Icons/BugReportIcon.d.ts +5 -0
  10. package/dist/Icons/BugReportIcon.js +16 -0
  11. package/dist/Icons/SecurityVerifiedIcon.d.ts +5 -0
  12. package/dist/Icons/SecurityVerifiedIcon.js +22 -0
  13. package/dist/Icons/YoutubeIcon.js +2 -2
  14. package/dist/Icons/index.d.ts +2 -0
  15. package/dist/Icons/index.js +66 -62
  16. package/dist/Logo/AmberLogoFull.d.ts +5 -0
  17. package/dist/Logo/AmberLogoFull.js +25 -0
  18. package/dist/Logo/ArbitrumLogoFull.d.ts +5 -0
  19. package/dist/Logo/ArbitrumLogoFull.js +122 -0
  20. package/dist/Logo/BaseLogoFull.d.ts +5 -0
  21. package/dist/Logo/BaseLogoFull.js +34 -0
  22. package/dist/Logo/BnbChainLogoFull.d.ts +5 -0
  23. package/dist/Logo/BnbChainLogoFull.js +83 -0
  24. package/dist/Logo/HyperliquidLogoFull.d.ts +5 -0
  25. package/dist/Logo/HyperliquidLogoFull.js +104 -0
  26. package/dist/Logo/JumperLogoFull.d.ts +5 -0
  27. package/dist/Logo/JumperLogoFull.js +77 -0
  28. package/dist/Logo/LiFiLogoFull.d.ts +5 -0
  29. package/dist/Logo/LiFiLogoFull.js +43 -0
  30. package/dist/Logo/LightsparkLogoFull.d.ts +5 -0
  31. package/dist/Logo/LightsparkLogoFull.js +56 -0
  32. package/dist/Logo/LitecoinLogoFull.d.ts +5 -0
  33. package/dist/Logo/LitecoinLogoFull.js +97 -0
  34. package/dist/Logo/MaestroLogoFull.d.ts +5 -0
  35. package/dist/Logo/MaestroLogoFull.js +31 -0
  36. package/dist/Logo/MegaEthLogoFull.d.ts +5 -0
  37. package/dist/Logo/MegaEthLogoFull.js +94 -0
  38. package/dist/Logo/MonadLogoFull.d.ts +5 -0
  39. package/dist/Logo/MonadLogoFull.js +62 -0
  40. package/dist/Logo/MulticoinCapitalLogoFull.d.ts +5 -0
  41. package/dist/Logo/MulticoinCapitalLogoFull.js +154 -0
  42. package/dist/Logo/PhantomLogoFull.d.ts +5 -0
  43. package/dist/Logo/PhantomLogoFull.js +76 -0
  44. package/dist/Logo/RangoLogoFull.d.ts +5 -0
  45. package/dist/Logo/RangoLogoFull.js +168 -0
  46. package/dist/Logo/SatsTerminalLogoFull.d.ts +5 -0
  47. package/dist/Logo/SatsTerminalLogoFull.js +81 -0
  48. package/dist/Logo/SolanaLogoFull.d.ts +5 -0
  49. package/dist/Logo/SolanaLogoFull.js +84 -0
  50. package/dist/Logo/StarknetLogoFull.d.ts +5 -0
  51. package/dist/Logo/StarknetLogoFull.js +141 -0
  52. package/dist/Logo/SwapKitLogoFull.d.ts +5 -0
  53. package/dist/Logo/SwapKitLogoFull.js +97 -0
  54. package/dist/Logo/XverseLogoFull.d.ts +5 -0
  55. package/dist/Logo/XverseLogoFull.js +99 -0
  56. package/dist/Logo/index.d.ts +20 -0
  57. package/dist/Logo/index.js +94 -54
  58. package/dist/Typography/Typography.d.ts +9 -6
  59. package/dist/Typography/index.js +64 -54
  60. package/dist/index.js +370 -326
  61. package/dist/style.css +1 -1
  62. package/dist/utils/index.js +27 -4
  63. package/package.json +1 -1
@@ -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-white gf-bg-button-secondary",
23
- ternary: "gf-text-dark-grey gf-bg-button-ternary",
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: d,
58
+ size: l,
59
59
  breakpoints: f,
60
60
  loading: g,
61
- className: l,
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
- l,
79
+ d,
80
80
  o({
81
81
  variant: e,
82
- size: d
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 x } from "./useCookieConsent.js";
4
- import { CookieConsentNotice as E } from "./CookieConsentNotice.js";
5
- import { CookieConsentPreferences as N } from "./CookieConsentPreferences.js";
6
- import { trackConsentEvent as r, DEFAULT_COOKIE_CATEGORIES as b, consentDecision as O } from "./utils.js";
7
- import { cn as i } from "../utils/index.js";
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: o,
10
- categories: f = b,
11
- defaultChecked: l = !0,
9
+ privacyPolicyUrl: f,
10
+ categories: l = x,
11
+ defaultChecked: a = !0,
12
12
  onChange: n,
13
- config: a,
13
+ config: m,
14
14
  desktopModal: e,
15
- mobileBottomSheet: m
15
+ mobileBottomSheet: u
16
16
  }) => {
17
- const { isOpen: u, view: _, ready: p, setView: v, close: y, acceptAll: A, save: C } = x(a);
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 g = {
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: i(
23
- "!gf-items-end !gf-justify-start gf-pl-[40px] !gf-bg-transparent !gf-pointer-events-none",
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: i(
27
- "!gf-pointer-events-auto !gf-w-[420px] gf-gap-0 gf-px-3 gf-py-4 gf-rounded-t-4 gf-rounded-b-none",
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
- }, s = () => {
31
- A(), r("cookie_consent_set", {
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: u,
42
- onClose: y,
43
- desktopModal: g,
44
- mobileBottomSheet: m,
42
+ open: s,
43
+ onClose: g,
44
+ desktopModal: C,
45
+ mobileBottomSheet: u,
45
46
  children: _ === "notice" ? /* @__PURE__ */ c(
46
- E,
47
+ N,
47
48
  {
48
- privacyPolicyUrl: o,
49
+ privacyPolicyUrl: f,
49
50
  onChangePreferences: () => {
50
51
  r("cookie_prefs_opened"), v("preferences");
51
52
  },
52
- onAcceptAll: s
53
+ onAcceptAll: i
53
54
  }
54
55
  ) : /* @__PURE__ */ c(
55
- N,
56
+ b,
56
57
  {
57
- categories: f,
58
- defaultChecked: l,
59
- onAcceptAll: s,
58
+ categories: l,
59
+ defaultChecked: a,
60
+ onAcceptAll: i,
60
61
  onSave: (t) => {
61
- C(t), r("cookie_consent_set", {
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 a, jsx as e } from "react/jsx-runtime";
2
- import { Typography as r } from "../Typography/index.js";
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: s,
7
- onAcceptAll: o
8
- }) => /* @__PURE__ */ a("div", { className: "gf-flex gf-flex-col gf-gap-9", children: [
9
- /* @__PURE__ */ a("div", { className: "gf-flex gf-flex-col gf-gap-3 gf-px-1", children: [
10
- /* @__PURE__ */ e(r, { as: "p", size: "h5", weight: "medium", className: "!gf-leading-5", children: "Manage cookies" }),
11
- /* @__PURE__ */ a(r, { as: "p", size: "h4", children: [
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__ */ a("div", { className: "gf-flex gf-flex-col gf-gap-3", children: [
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: "ternary",
33
+ variant: "secondary",
34
34
  size: "sm",
35
- colors: { ternary: "rgba(255,255,255,0.5)" },
36
- className: "gf-w-full",
37
- onClick: s,
35
+ className: "gf-w-full gf-border gf-border-mist h-10",
36
+ onClick: o,
38
37
  children: "Change preferences"
39
38
  }
40
39
  ),
@@ -43,8 +42,8 @@ const g = ({
43
42
  {
44
43
  variant: "primary",
45
44
  size: "sm",
46
- className: "gf-w-full",
47
- onClick: o,
45
+ className: "gf-w-full h-10",
46
+ onClick: s,
48
47
  children: "Accept all"
49
48
  }
50
49
  )
@@ -1,4 +1,4 @@
1
- import { jsxs as a, jsx as l } from "react/jsx-runtime";
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: t,
10
- onSave: o
9
+ onAcceptAll: o,
10
+ onSave: t
11
11
  }) => {
12
- const [f, m] = p({
12
+ const [f, d] = p({
13
13
  analytics: r,
14
14
  functional: r
15
15
  });
16
- return /* @__PURE__ */ a("div", { className: "gf-flex gf-flex-col gf-gap-9", children: [
17
- /* @__PURE__ */ a("div", { className: "gf-flex gf-flex-col gf-gap-3 gf-px-1", children: [
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 i = e.id, d = e.locked ? !0 : f[i];
21
- return /* @__PURE__ */ a("div", { className: "gf-flex gf-flex-col gf-gap-1", children: [
22
- /* @__PURE__ */ a("div", { className: "gf-flex gf-items-center gf-justify-between gf-gap-4", children: [
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: d,
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: () => m((g) => ({ ...g, [i]: !g[i] }))
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__ */ a("div", { className: "gf-flex gf-flex-col gf-gap-3", children: [
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: "ternary",
53
+ variant: "secondary",
53
54
  size: "sm",
54
- colors: { ternary: "rgba(255,255,255,0.5)" },
55
- className: "gf-w-full",
56
- onClick: t,
55
+ className: "gf-w-full gf-border gf-border-mist h-10",
56
+ onClick: o,
57
57
  children: "Accept all"
58
58
  }
59
59
  ),
@@ -62,8 +62,8 @@ const v = ({
62
62
  {
63
63
  variant: "primary",
64
64
  size: "sm",
65
- className: "gf-w-full",
66
- onClick: () => o(f),
65
+ className: "gf-w-full h-10",
66
+ onClick: () => t(f),
67
67
  children: "Save"
68
68
  }
69
69
  )
@@ -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
  };