@gardenfi/garden-book 0.2.3-beta.13 → 0.2.3-beta.14

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 (259) hide show
  1. package/dist/BlogCard/BlogCard.js +60 -0
  2. package/dist/BottomSheet/BottomSheet.js +17 -0
  3. package/dist/Button/Button.js +108 -0
  4. package/dist/Button/ClientOnlyLottie.js +27 -0
  5. package/dist/{Button.js → Button/spinner.json.js} +30 -170
  6. package/dist/Checkbox/Checkbox.js +7 -0
  7. package/dist/Chip/Chip.js +20 -0
  8. package/dist/ClientOnly/ClientOnly.js +6 -0
  9. package/dist/Container/Container.js +6 -0
  10. package/dist/Footer/Footer.js +371 -0
  11. package/dist/Footer/FooterBackgroundAnimation.js +100 -0
  12. package/dist/Footer/FooterLink.js +86 -0
  13. package/dist/GradientScroll/GradientScroll.js +73 -0
  14. package/dist/Icons/APIIcon/APIIcon.js +37 -0
  15. package/dist/Icons/AddIcon/AddIcon.js +16 -0
  16. package/dist/Icons/ArrowDownwardIcon/ArrowDownwardIcon.js +16 -0
  17. package/dist/Icons/ArrowEastIcon/ArrowEastIcon.js +22 -0
  18. package/dist/Icons/ArrowInwardIcon/ArrowInwardIcon.js +37 -0
  19. package/dist/Icons/ArrowLeftIcon/ArrowLeftIcon.js +16 -0
  20. package/dist/Icons/ArrowNorthEastIcon/ArrowNorthEastIcon.js +16 -0
  21. package/dist/Icons/ArrowNorthWestIcon/ArrowNorthWestIcon.js +16 -0
  22. package/dist/Icons/ArrowRightIcon/ArrowRightIcon.js +16 -0
  23. package/dist/Icons/ArrowSouthEastIcon/ArrowSouthEastIcon.js +16 -0
  24. package/dist/Icons/ArrowSouthWestIcon/ArrowSouthWestIcon.js +16 -0
  25. package/dist/Icons/ArrowSyncIcon/ArrowSyncIcon.js +16 -0
  26. package/dist/Icons/ArrowUpwardIcon/ArrowUpwardIcon.js +16 -0
  27. package/dist/Icons/BlogIcon/BlogIcon.js +37 -0
  28. package/dist/Icons/BrandKitIcon/BrandKitIcon.js +37 -0
  29. package/dist/Icons/CancelIcon/CancelIcon.js +22 -0
  30. package/dist/Icons/ChainflipIcon/ChainflipIcon.js +103 -0
  31. package/dist/Icons/CheckCircleIcon/CheckCircleIcon.js +22 -0
  32. package/dist/Icons/CheckIcon/CheckIcon.js +16 -0
  33. package/dist/Icons/Checked/Checked.js +37 -0
  34. package/dist/Icons/ClockIcon/ClockIcon.js +16 -0
  35. package/dist/Icons/CloseIcon/CloseIcon.js +16 -0
  36. package/dist/Icons/CodeBlockIcon/CodeBlockIcon.js +22 -0
  37. package/dist/Icons/CompareArrowsIcon/CompareArrowsIcon.js +22 -0
  38. package/dist/Icons/ConsoleIcon/ConsoleIcon.js +22 -0
  39. package/dist/Icons/CopyIcon/CopyIcon.js +16 -0
  40. package/dist/Icons/CopyrightsIcon/CopyrightsIcon.js +22 -0
  41. package/dist/Icons/DeleteIcon/DeleteIcon.js +16 -0
  42. package/dist/Icons/DiscordIcon/DiscordIcon.js +22 -0
  43. package/dist/Icons/DollarChipIcon/DollarChipIcon.js +37 -0
  44. package/dist/Icons/DraftIcon/DraftIcon.js +37 -0
  45. package/dist/Icons/EditIcon/EditIcon.js +16 -0
  46. package/dist/Icons/EncryptedIcon/EncryptedIcon.js +37 -0
  47. package/dist/Icons/ExchangeIcon/ExchangeIcon.js +19 -0
  48. package/dist/Icons/FaqIcon/FaqIcon.js +37 -0
  49. package/dist/Icons/FeesIcon/FeesIcon.js +22 -0
  50. package/dist/Icons/FingerprintIcon/FingerprintIcon.js +22 -0
  51. package/dist/Icons/FolderIcon/FolderIcon.js +37 -0
  52. package/dist/Icons/GasStationIcon/GasStationIcon.js +22 -0
  53. package/dist/Icons/GiftBoxIcon/GiftBoxIcon.js +37 -0
  54. package/dist/Icons/{LanguageIcon → GlobeIcon}/GlobeIcon.d.ts +1 -1
  55. package/dist/Icons/GlobeIcon/GlobeIcon.js +16 -0
  56. package/dist/Icons/GlobeIcon/index.d.ts +1 -0
  57. package/dist/Icons/HorizontalSwap/HorizontalSwap.js +37 -0
  58. package/dist/Icons/HubIcon/HubIcon.js +16 -0
  59. package/dist/Icons/InfinityIcon/InfinityIcon.js +22 -0
  60. package/dist/Icons/InfoIcon/InfoIcon.js +16 -0
  61. package/dist/Icons/KeyboardDownIcon/KeyboardDownIcon.js +16 -0
  62. package/dist/Icons/KeyboardLeftIcon/KeyboardLeftIcon.js +16 -0
  63. package/dist/Icons/KeyboardRightIcon/KeyboardRightIcon.js +16 -0
  64. package/dist/Icons/KeyboardUpIcon/KeyboardUpIcon.js +16 -0
  65. package/dist/Icons/LinkIcon/LinkIcon.js +16 -0
  66. package/dist/Icons/LockIcon/LockIcon.js +16 -0
  67. package/dist/Icons/LogoutIcon/LogoutIcon.js +16 -0
  68. package/dist/Icons/MenuIcon/MenuIcon.js +16 -0
  69. package/dist/Icons/MinusIcon/MinusIcon.js +19 -0
  70. package/dist/Icons/OpenInFullIcon/OpenInFullIcon.js +16 -0
  71. package/dist/Icons/OpenInNewIcon/OpenInNewIcon.js +22 -0
  72. package/dist/Icons/OtterSecIcon/OtterSecIcon.js +31 -0
  73. package/dist/Icons/PageInfoIcon/PageInfoIcon.js +16 -0
  74. package/dist/Icons/PasskeyIcon/PasskeyIcon.js +22 -0
  75. package/dist/Icons/PasskeyIcon/index.d.ts +1 -1
  76. package/dist/Icons/PlusIcon/PlusIcon.js +19 -0
  77. package/dist/Icons/RadioCheckedIcon/RadioCheckedIcon.js +16 -0
  78. package/dist/Icons/RadioUncheckedIcon/RadioUncheckedIcon.js +16 -0
  79. package/dist/Icons/RaiseHandIcon/RaiseHandIcon.js +37 -0
  80. package/dist/Icons/ReferralIcon/ReferralIcon.js +16 -0
  81. package/dist/Icons/RelayLinkIcon/RelayLinkIcon.js +88 -0
  82. package/dist/Icons/RemoveIcon/RemoveIcon.js +16 -0
  83. package/dist/Icons/Rotate360Icon/Rotate360Icon.js +37 -0
  84. package/dist/Icons/RoutingIcon/RoutingIcon.js +37 -0
  85. package/dist/Icons/RowInfoIcon/RowInfoIcon.js +37 -0
  86. package/dist/Icons/SDKIcon/SDKIcon.js +37 -0
  87. package/dist/Icons/SearchIcon/SearchIcon.js +16 -0
  88. package/dist/Icons/SearchIconThin/SearchIconThin.js +37 -0
  89. package/dist/Icons/Share/Share.js +22 -0
  90. package/dist/Icons/StakeIcon/StakeIcon.js +37 -0
  91. package/dist/Icons/StarIcon/StarIcon.js +16 -0
  92. package/dist/Icons/SwapHorizontalIcon/SwapHorizontalIcon.js +21 -0
  93. package/dist/Icons/ThorswapIcon/ThorswapIcon.js +55 -0
  94. package/dist/Icons/TimerIcon/TimerIcon.js +16 -0
  95. package/dist/Icons/Unchecked/Unchecked.js +37 -0
  96. package/dist/Icons/WalletIcon/WalletIcon.js +16 -0
  97. package/dist/Icons/WalletIconRose/WalletIconRose.js +22 -0
  98. package/dist/Icons/WarningIcon/WarningIcon.js +37 -0
  99. package/dist/Icons/XIcon/XIcon.js +22 -0
  100. package/dist/Icons/XSolidIcon/XSolidIcon.js +22 -0
  101. package/dist/Icons/ZellicIcon/ZellicIcon.js +101 -0
  102. package/dist/Icons/index.d.ts +1 -1
  103. package/dist/InfoBadge/InfoBadge.js +16 -0
  104. package/dist/Logo/ArbitrumLogo/ArbitrumLogo.js +66 -0
  105. package/dist/Logo/BTCLogo/BTCLogo.js +32 -0
  106. package/dist/Logo/Camelot/Camelot.js +73 -0
  107. package/dist/Logo/CatalogLogo/CatalogLogo.js +44 -0
  108. package/dist/Logo/Coinbase/Coinbase.js +24 -0
  109. package/dist/Logo/DLCBTC/DLCBTC.js +68 -0
  110. package/dist/Logo/Debridge/Debridge.js +103 -0
  111. package/dist/Logo/Dodo/DODO.js +77 -0
  112. package/dist/Logo/EthereumLogo/EthereumLogo.js +60 -0
  113. package/dist/Logo/GMX/GMX.js +49 -0
  114. package/dist/Logo/GMXLogo/GMXLogo.js +40 -0
  115. package/dist/Logo/GardenDocs/GardenDocs.js +31 -0
  116. package/dist/Logo/GardenExplorer/GardenExplorer.js +34 -0
  117. package/dist/Logo/GardenExplorerAlt/GardenExplorerAlt.js +31 -0
  118. package/dist/Logo/GardenFullLogo/GardenFullLogo.js +66 -0
  119. package/dist/{GardenIcon-E0OJI-b-.js → Logo/GardenIcon/GardenIcon.js} +11 -13
  120. package/dist/Logo/GardenIconOutline/GardenIconOutline.js +43 -0
  121. package/dist/Logo/GardenLogo/GardenLogo.js +33 -0
  122. package/dist/Logo/GardenLogoDark/GardenLogoDark.js +83 -0
  123. package/dist/Logo/GardenLogoLight/GardenLogoLight.js +83 -0
  124. package/dist/Logo/GardenLogoMarkDark/GardenLogoMarkDark.js +41 -0
  125. package/dist/Logo/GardenLogoMarkLight/GardenLogoMarkLight.js +41 -0
  126. package/dist/Logo/GardenLogoText/GardenLogoText.js +59 -0
  127. package/dist/Logo/GardenStrokeIcon/GardenStrokeIcon.js +43 -0
  128. package/dist/Logo/NFTIcon/NFTIcon.js +37 -0
  129. package/dist/Logo/PancakeSwap/PancakeSwap.js +134 -0
  130. package/dist/Logo/PhantomIcon/PhantomIcon.js +23 -0
  131. package/dist/Logo/PolygonLogo/PolygonLogo.js +31 -0
  132. package/dist/Logo/Radiant/Radiant.js +31 -0
  133. package/dist/Logo/RadiantLogo/RadiantLogo.js +40 -0
  134. package/dist/Logo/Solv/Solv.js +73 -0
  135. package/dist/Logo/SwellBTC/SwellBTC.js +31 -0
  136. package/dist/Logo/TraderJoe/TraderJoe.js +98 -0
  137. package/dist/Logo/TrailOfBits/TrailOfBits.js +190 -0
  138. package/dist/Logo/TrustWallet/TrustWallet.js +50 -0
  139. package/dist/Logo/Vertex/Vertex.js +90 -0
  140. package/dist/Logo/WalletConnect/WalletConnect.js +22 -0
  141. package/dist/Modal/Modal.js +66 -0
  142. package/dist/Opacity/Opacity.d.ts +1 -1
  143. package/dist/Opacity/Opacity.js +25 -0
  144. package/dist/QuestCard/QuestCard.js +57 -0
  145. package/dist/Sidebar/Sidebar.js +41 -0
  146. package/dist/TokenInfo/TokenInfo.js +44 -0
  147. package/dist/TokenNetworkLogos/TokenNetworkLogos.js +39 -0
  148. package/dist/{Typography-DX9XpQWB.js → Typography/Typography.js} +23 -25
  149. package/dist/animations/RollingText/RollingText.d.ts +12 -0
  150. package/dist/animations/RollingText/RollingText.js +70 -0
  151. package/dist/animations/ScaleY/ScaleY.d.ts +12 -0
  152. package/dist/animations/ScaleY/ScaleY.js +32 -0
  153. package/dist/animations/Shine/Shine.d.ts +11 -0
  154. package/dist/animations/Shine/Shine.js +6 -0
  155. package/dist/animations/index.d.ts +5 -0
  156. package/dist/assets/blogPlaceholder.svg.js +4 -0
  157. package/dist/assets/maskRect.svg.js +4 -0
  158. package/dist/hooks/useClientOnly.d.ts +5 -0
  159. package/dist/hooks/useClientOnly.js +10 -0
  160. package/dist/index.d.ts +21 -0
  161. package/dist/index.js +287 -0
  162. package/dist/node_modules/@radix-ui/primitive/dist/index.js +9 -0
  163. package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.js +29 -0
  164. package/dist/node_modules/@radix-ui/react-context/dist/index.js +70 -0
  165. package/dist/node_modules/@radix-ui/react-dialog/dist/index.js +257 -0
  166. package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +127 -0
  167. package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.js +17 -0
  168. package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.js +137 -0
  169. package/dist/node_modules/@radix-ui/react-id/dist/index.js +13 -0
  170. package/dist/node_modules/@radix-ui/react-portal/dist/index.js +16 -0
  171. package/dist/node_modules/@radix-ui/react-presence/dist/index.js +71 -0
  172. package/dist/node_modules/@radix-ui/react-primitive/dist/index.js +36 -0
  173. package/dist/node_modules/@radix-ui/react-slot/dist/index.js +50 -0
  174. package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +13 -0
  175. package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +54 -0
  176. package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js +14 -0
  177. package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +6 -0
  178. package/dist/node_modules/aria-hidden/dist/es2015/index.js +52 -0
  179. package/dist/node_modules/vaul/dist/index.js +1038 -0
  180. package/dist/style.css +1 -17
  181. package/dist/utils/utils.d.ts +3 -0
  182. package/dist/utils/utils.js +6 -0
  183. package/package.json +8 -4
  184. package/dist/BlogCard.js +0 -820
  185. package/dist/BlogCard.js.map +0 -1
  186. package/dist/BottomSheet.js +0 -2801
  187. package/dist/BottomSheet.js.map +0 -1
  188. package/dist/Button/spinner.json.d.ts +0 -3
  189. package/dist/Button.js.map +0 -1
  190. package/dist/Checkbox.js +0 -9
  191. package/dist/Checkbox.js.map +0 -1
  192. package/dist/Chip-DOSAEkS5.js +0 -24
  193. package/dist/Chip-DOSAEkS5.js.map +0 -1
  194. package/dist/Chip.js +0 -5
  195. package/dist/Chip.js.map +0 -1
  196. package/dist/ClientOnly-CMQEf-Yl.js +0 -13
  197. package/dist/ClientOnly-CMQEf-Yl.js.map +0 -1
  198. package/dist/ClientOnly.js +0 -5
  199. package/dist/ClientOnly.js.map +0 -1
  200. package/dist/Combination-BN2ESQ8D.js +0 -666
  201. package/dist/Combination-BN2ESQ8D.js.map +0 -1
  202. package/dist/Container.js +0 -9
  203. package/dist/Container.js.map +0 -1
  204. package/dist/Footer.js +0 -661
  205. package/dist/Footer.js.map +0 -1
  206. package/dist/GardenIcon-E0OJI-b-.js.map +0 -1
  207. package/dist/GradientScroll.js +0 -86
  208. package/dist/GradientScroll.js.map +0 -1
  209. package/dist/Icons/LanguageIcon/index.d.ts +0 -1
  210. package/dist/Icons.js +0 -1936
  211. package/dist/Icons.js.map +0 -1
  212. package/dist/InfoBadge.js +0 -19
  213. package/dist/InfoBadge.js.map +0 -1
  214. package/dist/KeyboardDownIcon-hh63DdT7.js +0 -19
  215. package/dist/KeyboardDownIcon-hh63DdT7.js.map +0 -1
  216. package/dist/Logo.js +0 -2044
  217. package/dist/Logo.js.map +0 -1
  218. package/dist/Modal.js +0 -77
  219. package/dist/Modal.js.map +0 -1
  220. package/dist/Opacity-DRe3jTZ4.js +0 -29
  221. package/dist/Opacity-DRe3jTZ4.js.map +0 -1
  222. package/dist/Opacity.js +0 -5
  223. package/dist/Opacity.js.map +0 -1
  224. package/dist/OpenInFullIcon-D2mt0Gjr.js +0 -34
  225. package/dist/OpenInFullIcon-D2mt0Gjr.js.map +0 -1
  226. package/dist/QuestCard.js +0 -60
  227. package/dist/QuestCard.js.map +0 -1
  228. package/dist/RadioUncheckedIcon-KnzZG6cp.js +0 -34
  229. package/dist/RadioUncheckedIcon-KnzZG6cp.js.map +0 -1
  230. package/dist/Sidebar.js +0 -45
  231. package/dist/Sidebar.js.map +0 -1
  232. package/dist/TokenInfo.js +0 -47
  233. package/dist/TokenInfo.js.map +0 -1
  234. package/dist/TokenNetworkLogos-DZZrRsmI.js +0 -41
  235. package/dist/TokenNetworkLogos-DZZrRsmI.js.map +0 -1
  236. package/dist/TokenNetworkLogos.js +0 -5
  237. package/dist/TokenNetworkLogos.js.map +0 -1
  238. package/dist/Typography-DX9XpQWB.js.map +0 -1
  239. package/dist/Typography.js +0 -5
  240. package/dist/Typography.js.map +0 -1
  241. package/dist/Unchecked-B7UGXlAZ.js +0 -76
  242. package/dist/Unchecked-B7UGXlAZ.js.map +0 -1
  243. package/dist/XIcon-DC822TMq.js +0 -67
  244. package/dist/XIcon-DC822TMq.js.map +0 -1
  245. package/dist/fonts/HafferBlack.woff2 +0 -0
  246. package/dist/fonts/HafferBold.woff2 +0 -0
  247. package/dist/fonts/HafferHeavy.woff2 +0 -0
  248. package/dist/fonts/HafferLight.woff2 +0 -0
  249. package/dist/fonts/HafferMedium.woff2 +0 -0
  250. package/dist/fonts/HafferRegular.woff2 +0 -0
  251. package/dist/fonts/HafferSemiBold.woff2 +0 -0
  252. package/dist/fonts/HafferThin.woff2 +0 -0
  253. package/dist/index-Ir5YwUO1.js +0 -45
  254. package/dist/index-Ir5YwUO1.js.map +0 -1
  255. package/dist/useClientOnly-Bzx92NOa.js +0 -12
  256. package/dist/useClientOnly-Bzx92NOa.js.map +0 -1
  257. package/dist/utils-BnsJHiW8.js +0 -2478
  258. package/dist/utils-BnsJHiW8.js.map +0 -1
  259. /package/dist/Icons/PasskeyIcon/{Passkey.d.ts → PasskeyIcon.d.ts} +0 -0
@@ -0,0 +1,60 @@
1
+ import { jsx as e, jsxs as o } from "react/jsx-runtime";
2
+ import { useState as m, useEffect as y } from "react";
3
+ import { Opacity as N } from "../Opacity/Opacity.js";
4
+ import { Typography as f } from "../Typography/Typography.js";
5
+ import { LazyLoadImage as b } from "react-lazy-load-image-component";
6
+ /* empty css */
7
+ import d from "../assets/blogPlaceholder.svg.js";
8
+ import { cn as a } from "../utils/utils.js";
9
+ const k = ({
10
+ thumbnail: r,
11
+ category: i,
12
+ date: g,
13
+ title: l,
14
+ className: c,
15
+ thumbnailClassName: t
16
+ }) => {
17
+ const [p, n] = m(!1), [h, s] = m(r ?? d);
18
+ y(() => {
19
+ s(r ?? d);
20
+ }, [r]);
21
+ const u = () => {
22
+ s(d);
23
+ }, x = b;
24
+ return /* @__PURE__ */ e(N, { level: "semi-dark", className: "gf-rounded-2xl h-full", children: /* @__PURE__ */ o("div", { className: a(c, "gf-overflow-hidden gf-rounded-2xl"), children: [
25
+ /* @__PURE__ */ e(
26
+ "div",
27
+ {
28
+ className: a(t, `${p ? "" : "gf-filter gf-blur-md"}`),
29
+ children: /* @__PURE__ */ e(
30
+ x,
31
+ {
32
+ alt: l,
33
+ effect: "blur",
34
+ src: h,
35
+ onLoad: () => n(!0),
36
+ onError: u
37
+ }
38
+ )
39
+ }
40
+ ),
41
+ /* @__PURE__ */ o("div", { className: "gf-px-4 gf-pt-4 gf-pb-5 gf-md:px-5 gf-md:pb-11", children: [
42
+ /* @__PURE__ */ o("div", { className: "gf-flex gf-justify-between gf-mb-3", children: [
43
+ /* @__PURE__ */ e(
44
+ f,
45
+ {
46
+ size: "h5",
47
+ weight: "medium",
48
+ className: "gf-bg-rose gf-px-3 gf-py-1 gf-rounded-full",
49
+ children: i
50
+ }
51
+ ),
52
+ /* @__PURE__ */ e(f, { size: "h5", weight: "medium", className: "gf-px-3 gf-py-1", children: g })
53
+ ] }),
54
+ /* @__PURE__ */ e(f, { size: "h3", weight: "bold", children: l })
55
+ ] })
56
+ ] }) });
57
+ };
58
+ export {
59
+ k as BlogCard
60
+ };
@@ -0,0 +1,17 @@
1
+ import { jsx as f, jsxs as e } from "react/jsx-runtime";
2
+ import { Drawer as g } from "../node_modules/vaul/dist/index.js";
3
+ import { ClientOnly as t } from "../ClientOnly/ClientOnly.js";
4
+ const s = ({
5
+ children: o,
6
+ open: r,
7
+ onOpenChange: l
8
+ }) => /* @__PURE__ */ f(t, { children: /* @__PURE__ */ e(g.Root, { open: r, onOpenChange: l, children: [
9
+ /* @__PURE__ */ f(g.Overlay, { className: "gf-fixed gf-inset-0 gf-z-50 gf-h-screen gf-w-screen gf-bg-dark-grey gf-bg-opacity-40 gf-transition-colors gf-duration-500 gf-ease-cubic-in-out" }),
10
+ /* @__PURE__ */ f(g.Portal, { children: /* @__PURE__ */ e(g.Content, { className: "gf-fixed gf-bottom-0 gf-z-50 gf-h-fit gf-w-full gf-rounded-t-xl gf-bg-white/50 gf-px-4 gf-py-4 gf-outline-none gf-backdrop-blur-[20px]", children: [
11
+ /* @__PURE__ */ f("div", { className: "gf-mx-auto gf-mb-3 gf-h-1 gf-w-[60px] gf-rounded-full gf-bg-white/30" }),
12
+ /* @__PURE__ */ f("div", { className: "gf-scrollbar-hide gf-flex gf-max-h-[90vh] gf-flex-col gf-gap-5 gf-overflow-y-scroll", children: o })
13
+ ] }) })
14
+ ] }) });
15
+ export {
16
+ s as BottomSheet
17
+ };
@@ -0,0 +1,108 @@
1
+ import { jsx as s, jsxs as b } from "react/jsx-runtime";
2
+ import { cva as c } from "class-variance-authority";
3
+ import { cn as h } from "../utils/utils.js";
4
+ import { forwardRef as y } from "react";
5
+ import { ClientOnlyLottie as p } from "./ClientOnlyLottie.js";
6
+ import C from "./spinner.json.js";
7
+ const o = c(
8
+ [
9
+ "gf-font-haffer",
10
+ "gf-font-medium",
11
+ "gf-min-w-32",
12
+ "gf-px-6",
13
+ "gf-focus:outline-none",
14
+ "gf-border-none",
15
+ "gf-transition-colors",
16
+ "gf-duration-500"
17
+ ],
18
+ {
19
+ variants: {
20
+ variant: {
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",
24
+ disabled: "gf-bg-button-disabled-bg gf-text-button-disabled-text gf-cursor-not-allowed"
25
+ },
26
+ size: {
27
+ sm: "gf-h-9 gf-rounded-xl gf-text-xs",
28
+ md: "gf-h-10 gf-rounded-xl gf-text-sm",
29
+ lg: "gf-h-12 gf-rounded-2xl gf-text-base"
30
+ },
31
+ breakpointSize: {
32
+ // breakpoint: button size
33
+ "xs:sm": "xs:gf-h-9 xs:gf-rounded-xl xs:gf-text-xs",
34
+ "xs:md": "xs:gf-h-10 xs:gf-rounded-xl xs:gf-text-sm",
35
+ "xs:lg": "xs:gf-h-12 xs:gf-rounded-2xl xs:gf-text-base",
36
+ "sm:sm": "sm:gf-h-9 sm:gf-rounded-xl sm:gf-text-xs",
37
+ "sm:md": "sm:gf-h-10 sm:gf-rounded-xl sm:gf-text-sm",
38
+ "sm:lg": "sm:gf-h-12 sm:gf-rounded-2xl sm:gf-text-base",
39
+ "md:sm": "md:gf-h-9 md:gf-rounded-xl md:gf-text-xs",
40
+ "md:md": "md:gf-h-10 md:gf-rounded-xl md:gf-text-sm",
41
+ "md:lg": "md:gf-h-12 md:gf-rounded-2xl md:gf-text-base",
42
+ "lg:sm": "lg:gf-h-9 lg:gf-rounded-xl lg:gf-text-xs",
43
+ "lg:md": "lg:gf-h-10 lg:gf-rounded-xl lg:gf-text-sm",
44
+ "lg:lg": "lg:gf-h-12 lg:gf-rounded-2xl lg:gf-text-base",
45
+ "xl:sm": "xl:gf-h-9 xl:gf-rounded-xl xl:gf-text-xs",
46
+ "xl:md": "xl:gf-h-10 xl:gf-rounded-xl xl:gf-text-sm",
47
+ "xl:lg": "xl:gf-h-12 xl:gf-rounded-2xl xl:gf-text-base"
48
+ }
49
+ },
50
+ defaultVariants: {
51
+ variant: "primary",
52
+ size: "md"
53
+ }
54
+ }
55
+ ), O = y(
56
+ ({
57
+ variant: e,
58
+ size: d,
59
+ breakpoints: f,
60
+ loading: g,
61
+ className: l,
62
+ children: n,
63
+ colors: r,
64
+ ...x
65
+ }, m) => {
66
+ const i = f ? Object.entries(f).map(([t, u]) => `${t}:${u}`).map(
67
+ (t) => o({ breakpointSize: t })
68
+ ).join(" ") : "", a = (() => {
69
+ if (!r || !e) return {};
70
+ const t = r[e];
71
+ return t ? e === "primary" ? { backgroundColor: t } : e === "secondary" ? { backgroundColor: t } : e === "ternary" ? { backgroundColor: t } : e === "disabled" ? { backgroundColor: t } : {} : {};
72
+ })();
73
+ return /* @__PURE__ */ s(
74
+ "button",
75
+ {
76
+ ref: m,
77
+ className: h(
78
+ "gf-transition-colors gf-duration-300",
79
+ l,
80
+ o({
81
+ variant: e,
82
+ size: d
83
+ }),
84
+ i,
85
+ g
86
+ ),
87
+ style: a,
88
+ disabled: g || e === "disabled",
89
+ ...x,
90
+ children: /* @__PURE__ */ b("div", { className: "gf-flex gf-justify-center gf-items-center gf-gap-3", children: [
91
+ n,
92
+ g && /* @__PURE__ */ s(
93
+ p,
94
+ {
95
+ animationData: C,
96
+ loop: !0,
97
+ autoplay: !0,
98
+ style: { width: 24, height: 24 }
99
+ }
100
+ )
101
+ ] })
102
+ }
103
+ );
104
+ }
105
+ );
106
+ export {
107
+ O as Button
108
+ };
@@ -0,0 +1,27 @@
1
+ import { jsx as t } from "react/jsx-runtime";
2
+ import { useState as f, useEffect as p } from "react";
3
+ import { ClientOnly as u } from "../ClientOnly/ClientOnly.js";
4
+ const s = ({
5
+ animationData: n,
6
+ loop: r = !0,
7
+ autoplay: i = !0,
8
+ style: e
9
+ }) => {
10
+ const [o, m] = f(null);
11
+ return p(() => {
12
+ import("lottie-react").then((l) => {
13
+ m(() => l.default);
14
+ });
15
+ }, []), /* @__PURE__ */ t(u, { fallback: /* @__PURE__ */ t("div", { style: e }), children: o ? /* @__PURE__ */ t(
16
+ o,
17
+ {
18
+ animationData: n,
19
+ loop: r,
20
+ autoplay: i,
21
+ style: e
22
+ }
23
+ ) : /* @__PURE__ */ t("div", { style: e }) });
24
+ };
25
+ export {
26
+ s as ClientOnlyLottie
27
+ };
@@ -1,40 +1,4 @@
1
- import { jsx, jsxs } from "react/jsx-runtime";
2
- import { c as cva } from "./index-Ir5YwUO1.js";
3
- import { c as cn } from "./utils-BnsJHiW8.js";
4
- import { useState, useEffect, forwardRef } from "react";
5
- import { C as ClientOnly } from "./ClientOnly-CMQEf-Yl.js";
6
- const ClientOnlyLottie = ({
7
- animationData,
8
- loop = true,
9
- autoplay = true,
10
- style
11
- }) => {
12
- const [LottieComponent, setLottieComponent] = useState(null);
13
- useEffect(() => {
14
- import("lottie-react").then((module) => {
15
- setLottieComponent(() => module.default);
16
- });
17
- }, []);
18
- return /* @__PURE__ */ jsx(ClientOnly, { fallback: /* @__PURE__ */ jsx("div", { style }), children: LottieComponent ? /* @__PURE__ */ jsx(
19
- LottieComponent,
20
- {
21
- animationData,
22
- loop,
23
- autoplay,
24
- style
25
- }
26
- ) : /* @__PURE__ */ jsx("div", { style }) });
27
- };
28
- const v = "5.7.4";
29
- const fr = 60;
30
- const ip = 0;
31
- const op = 120;
32
- const w = 64;
33
- const h = 64;
34
- const nm = "loading spinner";
35
- const ddd = 0;
36
- const assets = [];
37
- const layers = [
1
+ const s = "5.7.4", n = 60, r = 0, x = 120, e = 64, k = 64, a = "loading spinner", m = 0, i = [], t = [
38
2
  {
39
3
  ddd: 0,
40
4
  ind: 1,
@@ -178,13 +142,13 @@ const layers = [
178
142
  0
179
143
  ]
180
144
  ],
181
- c: true
145
+ c: !0
182
146
  },
183
147
  ix: 2
184
148
  },
185
149
  nm: "Path 1",
186
150
  mn: "ADBE Vector Shape - Group",
187
- hd: false
151
+ hd: !1
188
152
  },
189
153
  {
190
154
  ty: "st",
@@ -214,7 +178,7 @@ const layers = [
214
178
  bm: 0,
215
179
  nm: "Stroke 1",
216
180
  mn: "ADBE Vector Graphic - Stroke",
217
- hd: false
181
+ hd: !1
218
182
  },
219
183
  {
220
184
  ty: "tr",
@@ -271,7 +235,7 @@ const layers = [
271
235
  bm: 0,
272
236
  ix: 1,
273
237
  mn: "ADBE Vector Group",
274
- hd: false
238
+ hd: !1
275
239
  },
276
240
  {
277
241
  ty: "tm",
@@ -374,7 +338,7 @@ const layers = [
374
338
  ix: 2,
375
339
  nm: "Trim Paths 1",
376
340
  mn: "ADBE Vector Filter - Trim",
377
- hd: false
341
+ hd: !1
378
342
  }
379
343
  ],
380
344
  ip: 0,
@@ -382,134 +346,30 @@ const layers = [
382
346
  st: 0,
383
347
  bm: 0
384
348
  }
385
- ];
386
- const markers = [];
387
- const spinnerAnimation = {
388
- v,
389
- fr,
390
- ip,
391
- op,
392
- w,
393
- h,
394
- nm,
395
- ddd,
396
- assets,
397
- layers,
398
- markers
349
+ ], o = [], c = {
350
+ v: s,
351
+ fr: 60,
352
+ ip: 0,
353
+ op: 120,
354
+ w: 64,
355
+ h: 64,
356
+ nm: a,
357
+ ddd: 0,
358
+ assets: i,
359
+ layers: t,
360
+ markers: o
399
361
  };
400
- const buttonStyles = cva(
401
- [
402
- "gf-font-haffer",
403
- "gf-font-medium",
404
- "gf-min-w-32",
405
- "gf-px-6",
406
- "gf-focus:outline-none",
407
- "gf-border-none",
408
- "gf-transition-colors",
409
- "gf-duration-500"
410
- ],
411
- {
412
- variants: {
413
- variant: {
414
- primary: "gf-text-white gf-bg-button-primary",
415
- secondary: "gf-text-white gf-bg-button-secondary",
416
- ternary: "gf-text-dark-grey gf-bg-button-ternary",
417
- disabled: "gf-bg-button-disabled-bg gf-text-button-disabled-text gf-cursor-not-allowed"
418
- },
419
- size: {
420
- sm: "gf-h-9 gf-rounded-xl gf-text-xs",
421
- md: "gf-h-10 gf-rounded-xl gf-text-sm",
422
- lg: "gf-h-12 gf-rounded-2xl gf-text-base"
423
- },
424
- breakpointSize: {
425
- // breakpoint: button size
426
- "xs:sm": "xs:gf-h-9 xs:gf-rounded-xl xs:gf-text-xs",
427
- "xs:md": "xs:gf-h-10 xs:gf-rounded-xl xs:gf-text-sm",
428
- "xs:lg": "xs:gf-h-12 xs:gf-rounded-2xl xs:gf-text-base",
429
- "sm:sm": "sm:gf-h-9 sm:gf-rounded-xl sm:gf-text-xs",
430
- "sm:md": "sm:gf-h-10 sm:gf-rounded-xl sm:gf-text-sm",
431
- "sm:lg": "sm:gf-h-12 sm:gf-rounded-2xl sm:gf-text-base",
432
- "md:sm": "md:gf-h-9 md:gf-rounded-xl md:gf-text-xs",
433
- "md:md": "md:gf-h-10 md:gf-rounded-xl md:gf-text-sm",
434
- "md:lg": "md:gf-h-12 md:gf-rounded-2xl md:gf-text-base",
435
- "lg:sm": "lg:gf-h-9 lg:gf-rounded-xl lg:gf-text-xs",
436
- "lg:md": "lg:gf-h-10 lg:gf-rounded-xl lg:gf-text-sm",
437
- "lg:lg": "lg:gf-h-12 lg:gf-rounded-2xl lg:gf-text-base",
438
- "xl:sm": "xl:gf-h-9 xl:gf-rounded-xl xl:gf-text-xs",
439
- "xl:md": "xl:gf-h-10 xl:gf-rounded-xl xl:gf-text-sm",
440
- "xl:lg": "xl:gf-h-12 xl:gf-rounded-2xl xl:gf-text-base"
441
- }
442
- },
443
- defaultVariants: {
444
- variant: "primary",
445
- size: "md"
446
- }
447
- }
448
- );
449
- const Button = forwardRef(
450
- ({
451
- variant,
452
- size,
453
- breakpoints,
454
- loading,
455
- className,
456
- children,
457
- colors,
458
- ...props
459
- }, ref) => {
460
- const breakpointClasses = breakpoints ? Object.entries(breakpoints).map(([breakpoint, size2]) => `${breakpoint}:${size2}`).map(
461
- (key) => buttonStyles({ breakpointSize: key })
462
- ).join(" ") : "";
463
- const getDynamicColorStyle = () => {
464
- if (!colors || !variant) return {};
465
- const colorClass = colors[variant];
466
- if (!colorClass) return {};
467
- if (variant === "primary") {
468
- return { backgroundColor: colorClass };
469
- } else if (variant === "secondary") {
470
- return { backgroundColor: colorClass };
471
- } else if (variant === "ternary") {
472
- return { backgroundColor: colorClass };
473
- } else if (variant === "disabled") {
474
- return { backgroundColor: colorClass };
475
- }
476
- return {};
477
- };
478
- const dynamicColorStyle = getDynamicColorStyle();
479
- return /* @__PURE__ */ jsx(
480
- "button",
481
- {
482
- ref,
483
- className: cn(
484
- "gf-transition-colors gf-duration-300",
485
- className,
486
- buttonStyles({
487
- variant,
488
- size
489
- }),
490
- breakpointClasses,
491
- loading
492
- ),
493
- style: dynamicColorStyle,
494
- disabled: loading || variant === "disabled",
495
- ...props,
496
- children: /* @__PURE__ */ jsxs("div", { className: "gf-flex gf-justify-center gf-items-center gf-gap-3", children: [
497
- children,
498
- loading && /* @__PURE__ */ jsx(
499
- ClientOnlyLottie,
500
- {
501
- animationData: spinnerAnimation,
502
- loop: true,
503
- autoplay: true,
504
- style: { width: 24, height: 24 }
505
- }
506
- )
507
- ] })
508
- }
509
- );
510
- }
511
- );
512
362
  export {
513
- Button
363
+ i as assets,
364
+ m as ddd,
365
+ c as default,
366
+ n as fr,
367
+ k as h,
368
+ r as ip,
369
+ t as layers,
370
+ o as markers,
371
+ a as nm,
372
+ x as op,
373
+ s as v,
374
+ e as w
514
375
  };
515
- //# sourceMappingURL=Button.js.map
@@ -0,0 +1,7 @@
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ import { Checked as m } from "../Icons/Checked/Checked.js";
3
+ import { Unchecked as s } from "../Icons/Unchecked/Unchecked.js";
4
+ const p = ({ checked: o, color: e, ...c }) => /* @__PURE__ */ r("div", { ...c, children: o ? /* @__PURE__ */ r(m, { className: "gf-cursor-pointer", color: e }) : /* @__PURE__ */ r(s, { className: "gf-cursor-pointer" }) });
5
+ export {
6
+ p as CheckBox
7
+ };
@@ -0,0 +1,20 @@
1
+ import { jsx as f, Fragment as t } from "react/jsx-runtime";
2
+ import { cn as c } from "../utils/utils.js";
3
+ import { RadioCheckedIcon as r } from "../Icons/RadioCheckedIcon/RadioCheckedIcon.js";
4
+ import { RadioUncheckedIcon as s } from "../Icons/RadioUncheckedIcon/RadioUncheckedIcon.js";
5
+ const g = ({ children: e, className: o, ...m }) => /* @__PURE__ */ f(
6
+ "div",
7
+ {
8
+ className: c(
9
+ "gf-flex gf-items-center gf-rounded-full gf-text-dark-grey gf-font-medium gf-w-max gf-bg-white gf-gap-x-2",
10
+ o
11
+ ),
12
+ ...m,
13
+ children: e
14
+ }
15
+ ), i = ({ checked: e }) => /* @__PURE__ */ f(t, { children: e ? /* @__PURE__ */ f(r, { className: "gf-w-4 gf-sm:w-5" }) : /* @__PURE__ */ f(s, { className: "gf-w-4 gf-sm:w-5" }) }), n = ({ children: e, ...o }) => /* @__PURE__ */ f("div", { className: "gf-flex gf-items-center gf-justify-center", ...o, children: e });
16
+ g.CheckBox = i;
17
+ g.Logo = n;
18
+ export {
19
+ g as Chip
20
+ };
@@ -0,0 +1,6 @@
1
+ import { jsx as n, Fragment as t } from "react/jsx-runtime";
2
+ import { useClientOnly as i } from "../hooks/useClientOnly.js";
3
+ const m = ({ children: r, fallback: e = null }) => i() ? /* @__PURE__ */ n(t, { children: r }) : /* @__PURE__ */ n(t, { children: e });
4
+ export {
5
+ m as ClientOnly
6
+ };
@@ -0,0 +1,6 @@
1
+ import { jsx as f } from "react/jsx-runtime";
2
+ import { cn as n } from "../utils/utils.js";
3
+ const m = ({ children: r, className: o, ...t }) => /* @__PURE__ */ f("div", { ...t, className: n("gf-p-6 gf-rounded-2xl gf-w-fit", o), children: r });
4
+ export {
5
+ m as Container
6
+ };