@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.
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 +13 -14
  4. package/dist/CookieConsent/CookieConsentPreferences.js +17 -17
  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 +249 -189
  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
@@ -1,78 +1,118 @@
1
1
  import { ArbitrumLogo as e } from "./ArbitrumLogo.js";
2
2
  import { BTCLogo as m } from "./BTCLogo.js";
3
- import { CatalogLogo as p } from "./CatalogLogo.js";
4
- import { Coinbase as a } from "./Coinbase.js";
3
+ import { CatalogLogo as l } from "./CatalogLogo.js";
4
+ import { Coinbase as f } from "./Coinbase.js";
5
5
  import { EthereumLogo as g } from "./EthereumLogo.js";
6
- import { GardenExplorer as L } from "./GardenExplorer.js";
7
- import { GardenFullLogo as G } from "./GardenFullLogo.js";
8
- import { GardenLogo as C } from "./GardenLogo.js";
9
- import { GardenLogoText as T } from "./GardenLogoText.js";
10
- import { GardenStrokeIcon as D } from "./GardenStrokeIcon.js";
11
- import { GMXLogo as I } from "./GMXLogo.js";
12
- import { PhantomIcon as s } from "./PhantomIcon.js";
13
- import { PolygonLogo as M } from "./PolygonLogo.js";
14
- import { RadiantLogo as b } from "./RadiantLogo.js";
15
- import { TrailOfBits as P } from "./TrailOfBits.js";
16
- import { TrustWallet as A } from "./TrustWallet.js";
17
- import { WalletConnect as O } from "./WalletConnect.js";
18
- import { SwellBTC as W } from "./SwellBTC.js";
19
- import { DLCBTC as v } from "./DLCBTC.js";
20
- import { TraderJoe as J } from "./TraderJoe.js";
21
- import { Debridge as V } from "./Debridge.js";
22
- import { Camelot as q } from "./Camelot.js";
23
- import { GMX as H } from "./GMX.js";
6
+ import { GardenExplorer as n } from "./GardenExplorer.js";
7
+ import { GardenFullLogo as i } from "./GardenFullLogo.js";
8
+ import { GardenLogo as d } from "./GardenLogo.js";
9
+ import { GardenLogoText as C } from "./GardenLogoText.js";
10
+ import { GardenStrokeIcon as s } from "./GardenStrokeIcon.js";
11
+ import { GMXLogo as h } from "./GMXLogo.js";
12
+ import { PhantomIcon as M } from "./PhantomIcon.js";
13
+ import { PolygonLogo as b } from "./PolygonLogo.js";
14
+ import { RadiantLogo as D } from "./RadiantLogo.js";
15
+ import { TrailOfBits as A } from "./TrailOfBits.js";
16
+ import { TrustWallet as P } from "./TrustWallet.js";
17
+ import { WalletConnect as R } from "./WalletConnect.js";
18
+ import { SwellBTC as v } from "./SwellBTC.js";
19
+ import { DLCBTC as J } from "./DLCBTC.js";
20
+ import { TraderJoe as W } from "./TraderJoe.js";
21
+ import { Debridge as H } from "./Debridge.js";
22
+ import { Camelot as N } from "./Camelot.js";
23
+ import { GMX as j } from "./GMX.js";
24
24
  import { Solv as Q } from "./Solv.js";
25
25
  import { PancakeSwap as Y } from "./PancakeSwap.js";
26
26
  import { Dodo as _ } from "./DODO.js";
27
27
  import { Vertex as oo } from "./Vertex.js";
28
28
  import { Radiant as eo } from "./Radiant.js";
29
29
  import { GardenIcon as mo } from "./GardenIcon.js";
30
- import { GardenIconOutline as po } from "./GardenIconOutline.js";
31
- import { NFTIcon as ao } from "./NFTIcon.js";
30
+ import { GardenIconOutline as lo } from "./GardenIconOutline.js";
31
+ import { NFTIcon as fo } from "./NFTIcon.js";
32
32
  import { GardenExplorerAlt as go } from "./GardenExplorerAlt.js";
33
- import { GardenDocs as lo } from "./GardenDocs.js";
33
+ import { GardenDocs as no } from "./GardenDocs.js";
34
34
  import { GardenLogoMarkDark as io } from "./GardenLogoMarkDark.js";
35
- import { GardenLogoMarkLight as co } from "./GardenLogoMarkLight.js";
36
- import { GardenLogoDark as ko } from "./GardenLogoDark.js";
37
- import { GardenLogoLight as uo } from "./GardenLogoLight.js";
38
- import { Code4renaLogo as ho } from "./Code4renaLogo.js";
35
+ import { GardenLogoMarkLight as Go } from "./GardenLogoMarkLight.js";
36
+ import { GardenLogoDark as co } from "./GardenLogoDark.js";
37
+ import { GardenLogoLight as To } from "./GardenLogoLight.js";
38
+ import { Code4renaLogo as ko } from "./Code4renaLogo.js";
39
+ import { AmberLogoFull as So } from "./AmberLogoFull.js";
40
+ import { ArbitrumLogoFull as Bo } from "./ArbitrumLogoFull.js";
41
+ import { BaseLogoFull as Io } from "./BaseLogoFull.js";
42
+ import { BnbChainLogoFull as Eo } from "./BnbChainLogoFull.js";
43
+ import { HyperliquidLogoFull as wo } from "./HyperliquidLogoFull.js";
44
+ import { JumperLogoFull as Xo } from "./JumperLogoFull.js";
45
+ import { LiFiLogoFull as yo } from "./LiFiLogoFull.js";
46
+ import { LightsparkLogoFull as Oo } from "./LightsparkLogoFull.js";
47
+ import { LitecoinLogoFull as qo } from "./LitecoinLogoFull.js";
48
+ import { MaestroLogoFull as Ko } from "./MaestroLogoFull.js";
49
+ import { MegaEthLogoFull as Vo } from "./MegaEthLogoFull.js";
50
+ import { MonadLogoFull as zo } from "./MonadLogoFull.js";
51
+ import { MulticoinCapitalLogoFull as Uo } from "./MulticoinCapitalLogoFull.js";
52
+ import { PhantomLogoFull as Zo } from "./PhantomLogoFull.js";
53
+ import { RangoLogoFull as $o } from "./RangoLogoFull.js";
54
+ import { SolanaLogoFull as rr } from "./SolanaLogoFull.js";
55
+ import { StarknetLogoFull as tr } from "./StarknetLogoFull.js";
56
+ import { SwapKitLogoFull as pr } from "./SwapKitLogoFull.js";
57
+ import { XverseLogoFull as xr } from "./XverseLogoFull.js";
58
+ import { SatsTerminalLogoFull as ar } from "./SatsTerminalLogoFull.js";
39
59
  export {
60
+ So as AmberLogoFull,
40
61
  e as ArbitrumLogo,
62
+ Bo as ArbitrumLogoFull,
41
63
  m as BTCLogo,
42
- q as Camelot,
43
- p as CatalogLogo,
44
- ho as Code4renaLogo,
45
- a as Coinbase,
46
- v as DLCBTC,
47
- V as Debridge,
64
+ Io as BaseLogoFull,
65
+ Eo as BnbChainLogoFull,
66
+ N as Camelot,
67
+ l as CatalogLogo,
68
+ ko as Code4renaLogo,
69
+ f as Coinbase,
70
+ J as DLCBTC,
71
+ H as Debridge,
48
72
  _ as Dodo,
49
73
  g as EthereumLogo,
50
- H as GMX,
51
- I as GMXLogo,
52
- lo as GardenDocs,
53
- L as GardenExplorer,
74
+ j as GMX,
75
+ h as GMXLogo,
76
+ no as GardenDocs,
77
+ n as GardenExplorer,
54
78
  go as GardenExplorerAlt,
55
- G as GardenFullLogo,
79
+ i as GardenFullLogo,
56
80
  mo as GardenIcon,
57
- po as GardenIconOutline,
58
- C as GardenLogo,
59
- ko as GardenLogoDark,
60
- uo as GardenLogoLight,
81
+ lo as GardenIconOutline,
82
+ d as GardenLogo,
83
+ co as GardenLogoDark,
84
+ To as GardenLogoLight,
61
85
  io as GardenLogoMarkDark,
62
- co as GardenLogoMarkLight,
63
- T as GardenLogoText,
64
- D as GardenStrokeIcon,
65
- ao as NFTIcon,
86
+ Go as GardenLogoMarkLight,
87
+ C as GardenLogoText,
88
+ s as GardenStrokeIcon,
89
+ wo as HyperliquidLogoFull,
90
+ Xo as JumperLogoFull,
91
+ yo as LiFiLogoFull,
92
+ Oo as LightsparkLogoFull,
93
+ qo as LitecoinLogoFull,
94
+ Ko as MaestroLogoFull,
95
+ Vo as MegaEthLogoFull,
96
+ zo as MonadLogoFull,
97
+ Uo as MulticoinCapitalLogoFull,
98
+ fo as NFTIcon,
66
99
  Y as PancakeSwap,
67
- s as PhantomIcon,
68
- M as PolygonLogo,
100
+ M as PhantomIcon,
101
+ Zo as PhantomLogoFull,
102
+ b as PolygonLogo,
69
103
  eo as Radiant,
70
- b as RadiantLogo,
104
+ D as RadiantLogo,
105
+ $o as RangoLogoFull,
106
+ ar as SatsTerminalLogoFull,
107
+ rr as SolanaLogoFull,
71
108
  Q as Solv,
72
- W as SwellBTC,
73
- J as TraderJoe,
74
- P as TrailOfBits,
75
- A as TrustWallet,
109
+ tr as StarknetLogoFull,
110
+ pr as SwapKitLogoFull,
111
+ v as SwellBTC,
112
+ W as TraderJoe,
113
+ A as TrailOfBits,
114
+ P as TrustWallet,
76
115
  oo as Vertex,
77
- O as WalletConnect
116
+ R as WalletConnect,
117
+ xr as XverseLogoFull
78
118
  };
@@ -1,12 +1,14 @@
1
1
  export type SizeVariants = "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
2
2
  export type WeightVariants = "thin" | "light" | "regular" | "medium" | "semibold" | "bold" | "heavy" | "black";
3
- type breakpointVariants = "xs" | "sm" | "md" | "lg" | "xl";
3
+ export type ColorVariants = "near-black" | "graphite" | "neutral-grey" | "mist" | "rose" | "white";
4
+ type BreakpointVariants = "xs" | "sm" | "md" | "lg" | "xl";
4
5
  type Breakpoints = {
5
- [K in breakpointVariants]?: SizeVariants;
6
+ [K in BreakpointVariants]?: SizeVariants;
6
7
  };
7
8
  type BaseTypographyProps = {
8
9
  size?: SizeVariants;
9
10
  weight?: WeightVariants;
11
+ color?: ColorVariants;
10
12
  breakpoints?: Breakpoints;
11
13
  as?: "div" | "span" | "p" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "a" | "cite";
12
14
  };
@@ -25,11 +27,12 @@ type TypographyProps = BaseTypographyProps & ((React.HTMLAttributes<HTMLDivEleme
25
27
  }));
26
28
  /**
27
29
  * Typography component
28
- * @param size - default size of the text => "h1" | "h2" | "h3" | "h4" | "h5" | "h6"
30
+ * @param size - size of the text => "h1" | "h2" | "h3" | "h4" | "h5" | "h6"
29
31
  * @param weight - weight of the text => "thin" | "light" | "regular" | "medium" | "semibold" | "bold" | "heavy" | "black"
30
- * @param breakpoints - Breakpoints for the text size => { [key in ["xs","sm","md","lg","xl"]]: SizeVariants }
31
- * @param as -HTML element to render as => "div" | "span" | "p" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "a" | "cite"
32
- * @default size - "h3" weight - "medium" as - "span"
32
+ * @param color - text color token => "near-black" | "graphite" | "neutral-grey" | "mist" | "rose" | "white"
33
+ * @param breakpoints - per-breakpoint size overrides => { [key in "xs" | "sm" | "md" | "lg" | "xl"]?: SizeVariants }
34
+ * @param as - HTML element to render as => "div" | "span" | "p" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "a" | "cite"
35
+ * @default size - "h3" weight - "regular" color - "near-black" as - "span"
33
36
  */
34
37
  export declare const Typography: React.FC<TypographyProps>;
35
38
  export {};
@@ -1,8 +1,16 @@
1
- import { jsx as n } from "react/jsx-runtime";
1
+ import { jsx as d } from "react/jsx-runtime";
2
2
  import { cva as m } from "class-variance-authority";
3
3
  import { cn as h } from "../utils/index.js";
4
- const e = m(["gf-font-haffer gf-text-dark-grey not-italic"], {
4
+ const p = m(["gf-font-haffer gf-not-italic"], {
5
5
  variants: {
6
+ color: {
7
+ "near-black": "gf-text-near-black",
8
+ graphite: "gf-text-graphite",
9
+ "neutral-grey": "gf-text-neutral-grey",
10
+ mist: "gf-text-mist",
11
+ rose: "gf-text-rose",
12
+ white: "gf-text-white"
13
+ },
6
14
  size: {
7
15
  h1: "gf-text-[32px] gf-leading-[40px]",
8
16
  h2: "gf-text-xl gf-leading-[20px]",
@@ -20,70 +28,72 @@ const e = m(["gf-font-haffer gf-text-dark-grey not-italic"], {
20
28
  bold: "gf-font-bold",
21
29
  heavy: "gf-font-heavy",
22
30
  black: "gf-font-black"
23
- },
24
- breakpointSize: {
25
- "xs:h1": "xs:gf-text-[32px] xs:gf-leading-[48px]",
26
- "xs:h2": "xs:gf-text-xl xs:gf-leading-7",
27
- "xs:h3": "xs:gf-text-base xs:gf-leading-6",
28
- "xs:h4": "xs:gf-text-sm xs:gf-leading-5",
29
- "xs:h5": "xs:gf-text-xs xs:gf-leading-4",
30
- "xs:h6": "xs:gf-text-[10px] xs:gf-leading-3",
31
- "sm:h1": "sm:gf-text-[32px] sm:gf-leading-[48px]",
32
- "sm:h2": "sm:gf-text-xl sm:gf-leading-7",
33
- "sm:h3": "sm:gf-text-base sm:gf-leading-6",
34
- "sm:h4": "sm:gf-text-sm sm:gf-leading-5",
35
- "sm:h5": "sm:gf-text-xs sm:gf-leading-4",
36
- "sm:h6": "sm:gf-text-[10px] sm:gf-leading-3",
37
- "md:h1": "md:gf-text-[32px] md:gf-leading-[48px]",
38
- "md:h2": "md:gf-text-xl md:gf-leading-7",
39
- "md:h3": "md:gf-text-base md:gf-leading-6",
40
- "md:h4": "md:gf-text-sm md:gf-leading-5",
41
- "md:h5": "md:gf-text-xs md:gf-leading-4",
42
- "md:h6": "md:gf-text-[10px] md:gf-leading-3",
43
- "lg:h1": "lg:gf-text-[32px] lg:gf-leading-[48px]",
44
- "lg:h2": "lg:gf-text-xl lg:gf-leading-7",
45
- "lg:h3": "lg:gf-text-base lg:gf-leading-6",
46
- "lg:h4": "lg:gf-text-sm lg:gf-leading-5",
47
- "lg:h5": "lg:gf-text-xs lg:gf-leading-4",
48
- "lg:h6": "lg:gf-text-[10px] lg:gf-leading-3",
49
- "xl:h1": "xl:gf-text-[32px] xl:gf-leading-[48px]",
50
- "xl:h2": "xl:gf-text-xl xl:gf-leading-7",
51
- "xl:h3": "xl:gf-text-base xl:gf-leading-6",
52
- "xl:h4": "xl:gf-text-sm xl:gf-leading-5",
53
- "xl:h5": "xl:gf-text-xs xl:gf-leading-4",
54
- "xl:h6": "xl:gf-text-[10px] xl:gf-leading-3"
55
- },
56
- defaultVariants: {
57
- size: "h3",
58
- weight: "medium"
59
31
  }
32
+ },
33
+ defaultVariants: {
34
+ size: "h3",
35
+ weight: "regular",
36
+ color: "near-black"
60
37
  }
61
- }), b = ({
38
+ }), o = {
39
+ "xs:h1": "xs:gf-text-[32px] xs:gf-leading-[48px]",
40
+ "xs:h2": "xs:gf-text-xl xs:gf-leading-7",
41
+ "xs:h3": "xs:gf-text-base xs:gf-leading-6",
42
+ "xs:h4": "xs:gf-text-sm xs:gf-leading-5",
43
+ "xs:h5": "xs:gf-text-xs xs:gf-leading-4",
44
+ "xs:h6": "xs:gf-text-[10px] xs:gf-leading-3",
45
+ "sm:h1": "sm:gf-text-[32px] sm:gf-leading-[48px]",
46
+ "sm:h2": "sm:gf-text-xl sm:gf-leading-7",
47
+ "sm:h3": "sm:gf-text-base sm:gf-leading-6",
48
+ "sm:h4": "sm:gf-text-sm sm:gf-leading-5",
49
+ "sm:h5": "sm:gf-text-xs sm:gf-leading-4",
50
+ "sm:h6": "sm:gf-text-[10px] sm:gf-leading-3",
51
+ "md:h1": "md:gf-text-[32px] md:gf-leading-[48px]",
52
+ "md:h2": "md:gf-text-xl md:gf-leading-7",
53
+ "md:h3": "md:gf-text-base md:gf-leading-6",
54
+ "md:h4": "md:gf-text-sm md:gf-leading-5",
55
+ "md:h5": "md:gf-text-xs md:gf-leading-4",
56
+ "md:h6": "md:gf-text-[10px] md:gf-leading-3",
57
+ "lg:h1": "lg:gf-text-[32px] lg:gf-leading-[48px]",
58
+ "lg:h2": "lg:gf-text-xl lg:gf-leading-7",
59
+ "lg:h3": "lg:gf-text-base lg:gf-leading-6",
60
+ "lg:h4": "lg:gf-text-sm lg:gf-leading-5",
61
+ "lg:h5": "lg:gf-text-xs lg:gf-leading-4",
62
+ "lg:h6": "lg:gf-text-[10px] lg:gf-leading-3",
63
+ "xl:h1": "xl:gf-text-[32px] xl:gf-leading-[48px]",
64
+ "xl:h2": "xl:gf-text-xl xl:gf-leading-7",
65
+ "xl:h3": "xl:gf-text-base xl:gf-leading-6",
66
+ "xl:h4": "xl:gf-text-sm xl:gf-leading-5",
67
+ "xl:h5": "xl:gf-text-xs xl:gf-leading-4",
68
+ "xl:h6": "xl:gf-text-[10px] xl:gf-leading-3"
69
+ }, u = ({
62
70
  as: t = "span",
63
- size: f,
64
- weight: l = "regular",
65
- breakpoints: x,
66
- className: s,
67
- ...a
71
+ size: e,
72
+ weight: x,
73
+ color: f,
74
+ breakpoints: g,
75
+ className: l,
76
+ ...s
68
77
  }) => {
69
- const d = x ? Object.entries(x).map(([g, i]) => `${g}:${i}`).map(
70
- (g) => e({ breakpointSize: g })
78
+ const a = g ? Object.entries(g).map(
79
+ ([i, n]) => o[`${i}:${n}`]
71
80
  ).join(" ") : "";
72
- return /* @__PURE__ */ n(
81
+ return /* @__PURE__ */ d(
73
82
  t,
74
83
  {
75
84
  className: h(
76
- e({
77
- size: f,
78
- weight: l,
79
- className: s
85
+ p({
86
+ size: e,
87
+ weight: x,
88
+ color: f,
89
+ className: l
80
90
  }),
81
- d
91
+ a
82
92
  ),
83
- ...a
93
+ ...s
84
94
  }
85
95
  );
86
96
  };
87
97
  export {
88
- b as Typography
98
+ u as Typography
89
99
  };