@gardenfi/garden-book 0.2.25 → 0.2.26

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 (403) hide show
  1. package/dist/animations/RollingText/RollingText.stories.d.ts +7 -0
  2. package/dist/animations/ScaleY/ScaleY.stories.d.ts +7 -0
  3. package/dist/animations/Shine/Shine.stories.d.ts +7 -0
  4. package/dist/components/atoms/BottomSheet/BottomSheet.stories.d.ts +7 -0
  5. package/dist/components/atoms/Button/Button.stories.d.ts +17 -0
  6. package/dist/components/atoms/Button/spinner.json.d.ts +3 -0
  7. package/dist/components/atoms/Checkbox/Checkbox.stories.d.ts +7 -0
  8. package/dist/components/atoms/Container/Container.stories.d.ts +7 -0
  9. package/dist/components/atoms/Icons/ExchangeAltIcon.d.ts +3 -0
  10. package/dist/{Icons → components/atoms/Icons}/GlobeIcon.d.ts +1 -1
  11. package/dist/components/atoms/Icons/Icons.stories.d.ts +5 -0
  12. package/dist/{Icons → components/atoms/Icons}/index.d.ts +2 -2
  13. package/dist/components/atoms/Logo/Logo.stories.d.ts +5 -0
  14. package/dist/components/atoms/Modal/Modal.stories.d.ts +7 -0
  15. package/dist/{Opacity → components/atoms/Opacity}/Opacity.d.ts +1 -1
  16. package/dist/components/atoms/Opacity/Opacity.stories.d.ts +11 -0
  17. package/dist/components/atoms/Sidebar/Sidebar.stories.d.ts +9 -0
  18. package/dist/components/atoms/Typography/Typography.stories.d.ts +16 -0
  19. package/dist/components/atoms/index.d.ts +13 -0
  20. package/dist/components/index.d.ts +3 -0
  21. package/dist/components/molecules/Chip/Chip.stories.d.ts +37 -0
  22. package/dist/components/molecules/GradientScroll/GradientScroll.stories.d.ts +28 -0
  23. package/dist/components/molecules/InfoBadge/InfoBadge.stories.d.ts +14 -0
  24. package/dist/components/molecules/TokenInfo/TokenInfo.stories.d.ts +19 -0
  25. package/dist/components/molecules/TokenNetworkLogos/TokenNetworkLogos.stories.d.ts +21 -0
  26. package/dist/components/molecules/index.d.ts +7 -0
  27. package/dist/components/organisms/BlogCard/BlogCard.stories.d.ts +21 -0
  28. package/dist/components/organisms/Footer/Footer.stories.d.ts +17 -0
  29. package/dist/components/organisms/QuestCard/QuestCard.stories.d.ts +27 -0
  30. package/dist/components/organisms/index.d.ts +3 -0
  31. package/dist/fonts/HafferBlack.woff2 +0 -0
  32. package/dist/fonts/HafferBold.woff2 +0 -0
  33. package/dist/fonts/HafferHeavy.woff2 +0 -0
  34. package/dist/fonts/HafferLight.woff2 +0 -0
  35. package/dist/fonts/HafferMedium.woff2 +0 -0
  36. package/dist/fonts/HafferRegular.woff2 +0 -0
  37. package/dist/fonts/HafferSemiBold.woff2 +0 -0
  38. package/dist/fonts/HafferThin.woff2 +0 -0
  39. package/dist/index.d.ts +1 -19
  40. package/dist/index.es-DRwhRJ5M.js +8030 -0
  41. package/dist/index.es-ov1WrgHZ.cjs +11 -0
  42. package/dist/style.css +1 -1
  43. package/dist/ui.cjs.js +65 -0
  44. package/dist/ui.es.js +16098 -0
  45. package/dist/ui.umd.js +75 -0
  46. package/package.json +20 -28
  47. package/dist/BlogCard/index.d.ts +0 -1
  48. package/dist/BlogCard/index.js +0 -60
  49. package/dist/BottomSheet/index.d.ts +0 -1
  50. package/dist/BottomSheet/index.js +0 -17
  51. package/dist/Button/ClientOnlyLottie.js +0 -27
  52. package/dist/Button/index.d.ts +0 -1
  53. package/dist/Button/index.js +0 -108
  54. package/dist/Button/spinner.json.js +0 -375
  55. package/dist/Checkbox/index.d.ts +0 -1
  56. package/dist/Checkbox/index.js +0 -7
  57. package/dist/Chip/index.d.ts +0 -1
  58. package/dist/Chip/index.js +0 -20
  59. package/dist/ClientOnly/index.js +0 -6
  60. package/dist/Container/index.d.ts +0 -1
  61. package/dist/Container/index.js +0 -6
  62. package/dist/Footer/FooterBackgroundAnimation.js +0 -100
  63. package/dist/Footer/FooterLink.js +0 -87
  64. package/dist/Footer/index.d.ts +0 -1
  65. package/dist/Footer/index.js +0 -381
  66. package/dist/GradientScroll/index.d.ts +0 -1
  67. package/dist/GradientScroll/index.js +0 -116
  68. package/dist/Icons/APIIcon.js +0 -37
  69. package/dist/Icons/AddIcon.js +0 -16
  70. package/dist/Icons/ArrowDownwardIcon.js +0 -16
  71. package/dist/Icons/ArrowEastIcon.js +0 -22
  72. package/dist/Icons/ArrowInwardIcon.js +0 -37
  73. package/dist/Icons/ArrowLeftIcon.js +0 -16
  74. package/dist/Icons/ArrowNorthEastIcon.js +0 -16
  75. package/dist/Icons/ArrowNorthWestIcon.js +0 -16
  76. package/dist/Icons/ArrowRightIcon.js +0 -16
  77. package/dist/Icons/ArrowSouthEastIcon.js +0 -16
  78. package/dist/Icons/ArrowSouthWestIcon.js +0 -16
  79. package/dist/Icons/ArrowSyncIcon.js +0 -16
  80. package/dist/Icons/ArrowUpwardIcon.js +0 -16
  81. package/dist/Icons/BlogIcon.js +0 -37
  82. package/dist/Icons/BooksIcon.js +0 -8
  83. package/dist/Icons/BrandKitIcon.js +0 -37
  84. package/dist/Icons/BtcIcon.js +0 -5
  85. package/dist/Icons/CancelIcon.js +0 -22
  86. package/dist/Icons/ChainflipIcon.js +0 -103
  87. package/dist/Icons/CheckCircleIcon.js +0 -22
  88. package/dist/Icons/CheckIcon.js +0 -16
  89. package/dist/Icons/Checked.js +0 -37
  90. package/dist/Icons/ClockIcon.js +0 -16
  91. package/dist/Icons/CloseIcon.js +0 -16
  92. package/dist/Icons/CodeBlockIcon.js +0 -22
  93. package/dist/Icons/CompareArrowsIcon.js +0 -22
  94. package/dist/Icons/ConsoleIcon.js +0 -22
  95. package/dist/Icons/CopyIcon.js +0 -16
  96. package/dist/Icons/CopyrightsIcon.js +0 -22
  97. package/dist/Icons/DeleteIcon.js +0 -16
  98. package/dist/Icons/DigitalWellbeingIcon.js +0 -8
  99. package/dist/Icons/DiscordIcon.js +0 -22
  100. package/dist/Icons/DistanceIcon.js +0 -8
  101. package/dist/Icons/DollarChipIcon.js +0 -37
  102. package/dist/Icons/DraftIcon.js +0 -37
  103. package/dist/Icons/EditIcon.js +0 -16
  104. package/dist/Icons/EncryptedIcon.js +0 -37
  105. package/dist/Icons/ExchangeAltIcon.d.ts +0 -5
  106. package/dist/Icons/ExchangeAltIcon.js +0 -37
  107. package/dist/Icons/ExchangeIcon.js +0 -19
  108. package/dist/Icons/FaqIcon.js +0 -37
  109. package/dist/Icons/FeesIcon.js +0 -22
  110. package/dist/Icons/FillDownIcon.js +0 -5
  111. package/dist/Icons/FillUpIcon.js +0 -5
  112. package/dist/Icons/FingerprintIcon.js +0 -22
  113. package/dist/Icons/FlowChartIcon.js +0 -8
  114. package/dist/Icons/FolderIcon.js +0 -37
  115. package/dist/Icons/GasStationIcon.js +0 -22
  116. package/dist/Icons/GiftBoxIcon.js +0 -37
  117. package/dist/Icons/GlobeIcon.js +0 -16
  118. package/dist/Icons/HorizontalSwap.js +0 -37
  119. package/dist/Icons/HubIcon.js +0 -16
  120. package/dist/Icons/InfinityIcon.js +0 -22
  121. package/dist/Icons/InfoIcon.js +0 -16
  122. package/dist/Icons/KeyboardDownIcon.js +0 -16
  123. package/dist/Icons/KeyboardLeftIcon.js +0 -16
  124. package/dist/Icons/KeyboardRightIcon.js +0 -16
  125. package/dist/Icons/KeyboardUpIcon.js +0 -16
  126. package/dist/Icons/LinkIcon.js +0 -16
  127. package/dist/Icons/LocationPointerIcon.js +0 -5
  128. package/dist/Icons/LockIcon.js +0 -16
  129. package/dist/Icons/LogoutIcon.js +0 -16
  130. package/dist/Icons/MailIcon.js +0 -5
  131. package/dist/Icons/MenuIcon.js +0 -16
  132. package/dist/Icons/MinusIcon.js +0 -19
  133. package/dist/Icons/OpenInFullIcon.js +0 -16
  134. package/dist/Icons/OpenInNewIcon.js +0 -22
  135. package/dist/Icons/OtterSecIcon.js +0 -31
  136. package/dist/Icons/PageInfoIcon.js +0 -16
  137. package/dist/Icons/PasskeyIcon.js +0 -22
  138. package/dist/Icons/PaymentsIcon.js +0 -8
  139. package/dist/Icons/PlusIcon.js +0 -19
  140. package/dist/Icons/RadioCheckedIcon.js +0 -16
  141. package/dist/Icons/RadioUncheckedIcon.js +0 -16
  142. package/dist/Icons/RaiseHandIcon.js +0 -37
  143. package/dist/Icons/ReferralIcon.js +0 -16
  144. package/dist/Icons/RelayLinkIcon.js +0 -88
  145. package/dist/Icons/RemoveIcon.js +0 -16
  146. package/dist/Icons/RewardsIcon.js +0 -5
  147. package/dist/Icons/Rotate360Icon.js +0 -37
  148. package/dist/Icons/RoutingIcon.js +0 -37
  149. package/dist/Icons/RowInfoIcon.js +0 -37
  150. package/dist/Icons/SDKIcon.js +0 -37
  151. package/dist/Icons/SearchIcon.js +0 -16
  152. package/dist/Icons/SearchIconThin.js +0 -37
  153. package/dist/Icons/ShapesIcon.js +0 -8
  154. package/dist/Icons/Share.js +0 -22
  155. package/dist/Icons/StakeIcon.js +0 -37
  156. package/dist/Icons/StarIcon.js +0 -16
  157. package/dist/Icons/SwapHorizontalIcon.js +0 -21
  158. package/dist/Icons/ThorswapIcon.js +0 -55
  159. package/dist/Icons/TimerIcon.js +0 -16
  160. package/dist/Icons/Unchecked.js +0 -37
  161. package/dist/Icons/UserGroupsIcon.js +0 -8
  162. package/dist/Icons/WalletIcon.js +0 -16
  163. package/dist/Icons/WalletIconRose.js +0 -22
  164. package/dist/Icons/WarningIcon.js +0 -37
  165. package/dist/Icons/XIcon.js +0 -22
  166. package/dist/Icons/XSolidIcon.js +0 -22
  167. package/dist/Icons/ZellicIcon.js +0 -101
  168. package/dist/Icons/index.js +0 -200
  169. package/dist/InfoBadge/index.d.ts +0 -1
  170. package/dist/InfoBadge/index.js +0 -16
  171. package/dist/Logo/ArbitrumLogo.js +0 -66
  172. package/dist/Logo/BTCLogo.js +0 -32
  173. package/dist/Logo/Camelot.js +0 -73
  174. package/dist/Logo/CatalogLogo.js +0 -44
  175. package/dist/Logo/Coinbase.js +0 -24
  176. package/dist/Logo/DLCBTC.js +0 -68
  177. package/dist/Logo/DODO.js +0 -77
  178. package/dist/Logo/Debridge.js +0 -103
  179. package/dist/Logo/EthereumLogo.js +0 -60
  180. package/dist/Logo/GMX.js +0 -49
  181. package/dist/Logo/GMXLogo.js +0 -40
  182. package/dist/Logo/GardenDocs.js +0 -31
  183. package/dist/Logo/GardenExplorer.js +0 -34
  184. package/dist/Logo/GardenExplorerAlt.js +0 -31
  185. package/dist/Logo/GardenFullLogo.js +0 -66
  186. package/dist/Logo/GardenIcon.js +0 -33
  187. package/dist/Logo/GardenIconOutline.js +0 -43
  188. package/dist/Logo/GardenLogo.js +0 -33
  189. package/dist/Logo/GardenLogoDark.js +0 -83
  190. package/dist/Logo/GardenLogoLight.js +0 -83
  191. package/dist/Logo/GardenLogoMarkDark.js +0 -41
  192. package/dist/Logo/GardenLogoMarkLight.js +0 -41
  193. package/dist/Logo/GardenLogoText.js +0 -59
  194. package/dist/Logo/GardenStrokeIcon.js +0 -43
  195. package/dist/Logo/NFTIcon.js +0 -37
  196. package/dist/Logo/PancakeSwap.js +0 -134
  197. package/dist/Logo/PhantomIcon.js +0 -23
  198. package/dist/Logo/PolygonLogo.js +0 -31
  199. package/dist/Logo/Radiant.js +0 -31
  200. package/dist/Logo/RadiantLogo.js +0 -40
  201. package/dist/Logo/Solv.js +0 -73
  202. package/dist/Logo/SwellBTC.js +0 -31
  203. package/dist/Logo/TraderJoe.js +0 -98
  204. package/dist/Logo/TrailOfBits.js +0 -190
  205. package/dist/Logo/TrustWallet.js +0 -50
  206. package/dist/Logo/Vertex.js +0 -90
  207. package/dist/Logo/WalletConnect.js +0 -22
  208. package/dist/Logo/index.js +0 -76
  209. package/dist/Modal/index.d.ts +0 -1
  210. package/dist/Modal/index.js +0 -66
  211. package/dist/Opacity/index.d.ts +0 -2
  212. package/dist/Opacity/index.js +0 -25
  213. package/dist/QuestCard/index.d.ts +0 -1
  214. package/dist/QuestCard/index.js +0 -57
  215. package/dist/Sidebar/index.d.ts +0 -1
  216. package/dist/Sidebar/index.js +0 -41
  217. package/dist/TokenInfo/index.d.ts +0 -1
  218. package/dist/TokenInfo/index.js +0 -44
  219. package/dist/TokenNetworkLogos/index.d.ts +0 -1
  220. package/dist/TokenNetworkLogos/index.js +0 -41
  221. package/dist/Typography/index.d.ts +0 -1
  222. package/dist/Typography/index.js +0 -89
  223. package/dist/animations/RollingText/RollingText.js +0 -70
  224. package/dist/animations/ScaleY/ScaleY.js +0 -32
  225. package/dist/animations/Shine/Shine.js +0 -6
  226. package/dist/assets/blogPlaceholder.svg.js +0 -4
  227. package/dist/assets/maskRect.svg.js +0 -4
  228. package/dist/hooks/useClientOnly.js +0 -10
  229. package/dist/index.js +0 -315
  230. package/dist/node_modules/@radix-ui/primitive/dist/index.js +0 -9
  231. package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.js +0 -29
  232. package/dist/node_modules/@radix-ui/react-context/dist/index.js +0 -70
  233. package/dist/node_modules/@radix-ui/react-dialog/dist/index.js +0 -257
  234. package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +0 -127
  235. package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.js +0 -17
  236. package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.js +0 -137
  237. package/dist/node_modules/@radix-ui/react-id/dist/index.js +0 -13
  238. package/dist/node_modules/@radix-ui/react-portal/dist/index.js +0 -16
  239. package/dist/node_modules/@radix-ui/react-presence/dist/index.js +0 -71
  240. package/dist/node_modules/@radix-ui/react-primitive/dist/index.js +0 -36
  241. package/dist/node_modules/@radix-ui/react-slot/dist/index.js +0 -50
  242. package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +0 -13
  243. package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +0 -54
  244. package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js +0 -14
  245. package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +0 -6
  246. package/dist/node_modules/aria-hidden/dist/es2015/index.js +0 -52
  247. package/dist/node_modules/vaul/dist/index.js +0 -1038
  248. package/dist/utils/index.js +0 -6
  249. /package/dist/{BottomSheet → components/atoms/BottomSheet}/BottomSheet.d.ts +0 -0
  250. /package/dist/{Button → components/atoms/Button}/Button.d.ts +0 -0
  251. /package/dist/{Button → components/atoms/Button}/ClientOnlyLottie.d.ts +0 -0
  252. /package/dist/{Checkbox → components/atoms/Checkbox}/Checkbox.d.ts +0 -0
  253. /package/dist/{ClientOnly → components/atoms/ClientOnly}/ClientOnly.d.ts +0 -0
  254. /package/dist/{ClientOnly → components/atoms/ClientOnly}/index.d.ts +0 -0
  255. /package/dist/{Container → components/atoms/Container}/Container.d.ts +0 -0
  256. /package/dist/{Icons → components/atoms/Icons}/APIIcon.d.ts +0 -0
  257. /package/dist/{Icons → components/atoms/Icons}/AddIcon.d.ts +0 -0
  258. /package/dist/{Icons → components/atoms/Icons}/ArrowDownwardIcon.d.ts +0 -0
  259. /package/dist/{Icons → components/atoms/Icons}/ArrowEastIcon.d.ts +0 -0
  260. /package/dist/{Icons → components/atoms/Icons}/ArrowInwardIcon.d.ts +0 -0
  261. /package/dist/{Icons → components/atoms/Icons}/ArrowLeftIcon.d.ts +0 -0
  262. /package/dist/{Icons → components/atoms/Icons}/ArrowNorthEastIcon.d.ts +0 -0
  263. /package/dist/{Icons → components/atoms/Icons}/ArrowNorthWestIcon.d.ts +0 -0
  264. /package/dist/{Icons → components/atoms/Icons}/ArrowRightIcon.d.ts +0 -0
  265. /package/dist/{Icons → components/atoms/Icons}/ArrowSouthEastIcon.d.ts +0 -0
  266. /package/dist/{Icons → components/atoms/Icons}/ArrowSouthWestIcon.d.ts +0 -0
  267. /package/dist/{Icons → components/atoms/Icons}/ArrowSyncIcon.d.ts +0 -0
  268. /package/dist/{Icons → components/atoms/Icons}/ArrowUpwardIcon.d.ts +0 -0
  269. /package/dist/{Icons → components/atoms/Icons}/BlogIcon.d.ts +0 -0
  270. /package/dist/{Icons → components/atoms/Icons}/BooksIcon.d.ts +0 -0
  271. /package/dist/{Icons → components/atoms/Icons}/BrandKitIcon.d.ts +0 -0
  272. /package/dist/{Icons → components/atoms/Icons}/BtcIcon.d.ts +0 -0
  273. /package/dist/{Icons → components/atoms/Icons}/CancelIcon.d.ts +0 -0
  274. /package/dist/{Icons → components/atoms/Icons}/ChainflipIcon.d.ts +0 -0
  275. /package/dist/{Icons → components/atoms/Icons}/CheckCircleIcon.d.ts +0 -0
  276. /package/dist/{Icons → components/atoms/Icons}/CheckIcon.d.ts +0 -0
  277. /package/dist/{Icons → components/atoms/Icons}/Checked.d.ts +0 -0
  278. /package/dist/{Icons → components/atoms/Icons}/ClockIcon.d.ts +0 -0
  279. /package/dist/{Icons → components/atoms/Icons}/CloseIcon.d.ts +0 -0
  280. /package/dist/{Icons → components/atoms/Icons}/CodeBlockIcon.d.ts +0 -0
  281. /package/dist/{Icons → components/atoms/Icons}/CompareArrowsIcon.d.ts +0 -0
  282. /package/dist/{Icons → components/atoms/Icons}/ConsoleIcon.d.ts +0 -0
  283. /package/dist/{Icons → components/atoms/Icons}/CopyIcon.d.ts +0 -0
  284. /package/dist/{Icons → components/atoms/Icons}/CopyrightsIcon.d.ts +0 -0
  285. /package/dist/{Icons → components/atoms/Icons}/DeleteIcon.d.ts +0 -0
  286. /package/dist/{Icons → components/atoms/Icons}/DigitalWellbeingIcon.d.ts +0 -0
  287. /package/dist/{Icons → components/atoms/Icons}/DiscordIcon.d.ts +0 -0
  288. /package/dist/{Icons → components/atoms/Icons}/DistanceIcon.d.ts +0 -0
  289. /package/dist/{Icons → components/atoms/Icons}/DollarChipIcon.d.ts +0 -0
  290. /package/dist/{Icons → components/atoms/Icons}/DraftIcon.d.ts +0 -0
  291. /package/dist/{Icons → components/atoms/Icons}/EditIcon.d.ts +0 -0
  292. /package/dist/{Icons → components/atoms/Icons}/EncryptedIcon.d.ts +0 -0
  293. /package/dist/{Icons → components/atoms/Icons}/ExchangeIcon.d.ts +0 -0
  294. /package/dist/{Icons → components/atoms/Icons}/FaqIcon.d.ts +0 -0
  295. /package/dist/{Icons → components/atoms/Icons}/FeesIcon.d.ts +0 -0
  296. /package/dist/{Icons → components/atoms/Icons}/FillDownIcon.d.ts +0 -0
  297. /package/dist/{Icons → components/atoms/Icons}/FillUpIcon.d.ts +0 -0
  298. /package/dist/{Icons → components/atoms/Icons}/FingerprintIcon.d.ts +0 -0
  299. /package/dist/{Icons → components/atoms/Icons}/FlowChartIcon.d.ts +0 -0
  300. /package/dist/{Icons → components/atoms/Icons}/FolderIcon.d.ts +0 -0
  301. /package/dist/{Icons → components/atoms/Icons}/GasStationIcon.d.ts +0 -0
  302. /package/dist/{Icons → components/atoms/Icons}/GiftBoxIcon.d.ts +0 -0
  303. /package/dist/{Icons → components/atoms/Icons}/HorizontalSwap.d.ts +0 -0
  304. /package/dist/{Icons → components/atoms/Icons}/HubIcon.d.ts +0 -0
  305. /package/dist/{Icons → components/atoms/Icons}/InfinityIcon.d.ts +0 -0
  306. /package/dist/{Icons → components/atoms/Icons}/InfoIcon.d.ts +0 -0
  307. /package/dist/{Icons → components/atoms/Icons}/KeyboardDownIcon.d.ts +0 -0
  308. /package/dist/{Icons → components/atoms/Icons}/KeyboardLeftIcon.d.ts +0 -0
  309. /package/dist/{Icons → components/atoms/Icons}/KeyboardRightIcon.d.ts +0 -0
  310. /package/dist/{Icons → components/atoms/Icons}/KeyboardUpIcon.d.ts +0 -0
  311. /package/dist/{Icons → components/atoms/Icons}/LinkIcon.d.ts +0 -0
  312. /package/dist/{Icons → components/atoms/Icons}/LocationPointerIcon.d.ts +0 -0
  313. /package/dist/{Icons → components/atoms/Icons}/LockIcon.d.ts +0 -0
  314. /package/dist/{Icons → components/atoms/Icons}/LogoutIcon.d.ts +0 -0
  315. /package/dist/{Icons → components/atoms/Icons}/MailIcon.d.ts +0 -0
  316. /package/dist/{Icons → components/atoms/Icons}/MenuIcon.d.ts +0 -0
  317. /package/dist/{Icons → components/atoms/Icons}/MinusIcon.d.ts +0 -0
  318. /package/dist/{Icons → components/atoms/Icons}/OpenInFullIcon.d.ts +0 -0
  319. /package/dist/{Icons → components/atoms/Icons}/OpenInNewIcon.d.ts +0 -0
  320. /package/dist/{Icons → components/atoms/Icons}/OtterSecIcon.d.ts +0 -0
  321. /package/dist/{Icons → components/atoms/Icons}/PageInfoIcon.d.ts +0 -0
  322. /package/dist/{Icons/PasskeyIcon.d.ts → components/atoms/Icons/Passkey.d.ts} +0 -0
  323. /package/dist/{Icons → components/atoms/Icons}/PaymentsIcon.d.ts +0 -0
  324. /package/dist/{Icons → components/atoms/Icons}/PlusIcon.d.ts +0 -0
  325. /package/dist/{Icons → components/atoms/Icons}/RadioCheckedIcon.d.ts +0 -0
  326. /package/dist/{Icons → components/atoms/Icons}/RadioUncheckedIcon.d.ts +0 -0
  327. /package/dist/{Icons → components/atoms/Icons}/RaiseHandIcon.d.ts +0 -0
  328. /package/dist/{Icons → components/atoms/Icons}/ReferralIcon.d.ts +0 -0
  329. /package/dist/{Icons → components/atoms/Icons}/RelayLinkIcon.d.ts +0 -0
  330. /package/dist/{Icons → components/atoms/Icons}/RemoveIcon.d.ts +0 -0
  331. /package/dist/{Icons → components/atoms/Icons}/RewardsIcon.d.ts +0 -0
  332. /package/dist/{Icons → components/atoms/Icons}/Rotate360Icon.d.ts +0 -0
  333. /package/dist/{Icons → components/atoms/Icons}/RoutingIcon.d.ts +0 -0
  334. /package/dist/{Icons → components/atoms/Icons}/RowInfoIcon.d.ts +0 -0
  335. /package/dist/{Icons → components/atoms/Icons}/SDKIcon.d.ts +0 -0
  336. /package/dist/{Icons → components/atoms/Icons}/SearchIcon.d.ts +0 -0
  337. /package/dist/{Icons → components/atoms/Icons}/SearchIconThin.d.ts +0 -0
  338. /package/dist/{Icons → components/atoms/Icons}/ShapesIcon.d.ts +0 -0
  339. /package/dist/{Icons → components/atoms/Icons}/Share.d.ts +0 -0
  340. /package/dist/{Icons → components/atoms/Icons}/StakeIcon.d.ts +0 -0
  341. /package/dist/{Icons → components/atoms/Icons}/StarIcon.d.ts +0 -0
  342. /package/dist/{Icons → components/atoms/Icons}/SwapHorizontalIcon.d.ts +0 -0
  343. /package/dist/{Icons → components/atoms/Icons}/ThorswapIcon.d.ts +0 -0
  344. /package/dist/{Icons → components/atoms/Icons}/TimerIcon.d.ts +0 -0
  345. /package/dist/{Icons → components/atoms/Icons}/Unchecked.d.ts +0 -0
  346. /package/dist/{Icons → components/atoms/Icons}/UserGroupsIcon.d.ts +0 -0
  347. /package/dist/{Icons → components/atoms/Icons}/WalletIcon.d.ts +0 -0
  348. /package/dist/{Icons → components/atoms/Icons}/WalletIconRose.d.ts +0 -0
  349. /package/dist/{Icons → components/atoms/Icons}/WarningIcon.d.ts +0 -0
  350. /package/dist/{Icons → components/atoms/Icons}/XIcon.d.ts +0 -0
  351. /package/dist/{Icons → components/atoms/Icons}/XSolidIcon.d.ts +0 -0
  352. /package/dist/{Icons → components/atoms/Icons}/ZellicIcon.d.ts +0 -0
  353. /package/dist/{Logo → components/atoms/Logo}/ArbitrumLogo.d.ts +0 -0
  354. /package/dist/{Logo → components/atoms/Logo}/BTCLogo.d.ts +0 -0
  355. /package/dist/{Logo → components/atoms/Logo}/Camelot.d.ts +0 -0
  356. /package/dist/{Logo → components/atoms/Logo}/CatalogLogo.d.ts +0 -0
  357. /package/dist/{Logo → components/atoms/Logo}/Coinbase.d.ts +0 -0
  358. /package/dist/{Logo → components/atoms/Logo}/DLCBTC.d.ts +0 -0
  359. /package/dist/{Logo → components/atoms/Logo}/DODO.d.ts +0 -0
  360. /package/dist/{Logo → components/atoms/Logo}/Debridge.d.ts +0 -0
  361. /package/dist/{Logo → components/atoms/Logo}/EthereumLogo.d.ts +0 -0
  362. /package/dist/{Logo → components/atoms/Logo}/GMX.d.ts +0 -0
  363. /package/dist/{Logo → components/atoms/Logo}/GMXLogo.d.ts +0 -0
  364. /package/dist/{Logo → components/atoms/Logo}/GardenDocs.d.ts +0 -0
  365. /package/dist/{Logo → components/atoms/Logo}/GardenExplorer.d.ts +0 -0
  366. /package/dist/{Logo → components/atoms/Logo}/GardenExplorerAlt.d.ts +0 -0
  367. /package/dist/{Logo → components/atoms/Logo}/GardenFullLogo.d.ts +0 -0
  368. /package/dist/{Logo → components/atoms/Logo}/GardenIcon.d.ts +0 -0
  369. /package/dist/{Logo → components/atoms/Logo}/GardenIconOutline.d.ts +0 -0
  370. /package/dist/{Logo → components/atoms/Logo}/GardenLogo.d.ts +0 -0
  371. /package/dist/{Logo → components/atoms/Logo}/GardenLogoDark.d.ts +0 -0
  372. /package/dist/{Logo → components/atoms/Logo}/GardenLogoLight.d.ts +0 -0
  373. /package/dist/{Logo → components/atoms/Logo}/GardenLogoMarkDark.d.ts +0 -0
  374. /package/dist/{Logo → components/atoms/Logo}/GardenLogoMarkLight.d.ts +0 -0
  375. /package/dist/{Logo → components/atoms/Logo}/GardenLogoText.d.ts +0 -0
  376. /package/dist/{Logo → components/atoms/Logo}/GardenStrokeIcon.d.ts +0 -0
  377. /package/dist/{Logo → components/atoms/Logo}/NFTIcon.d.ts +0 -0
  378. /package/dist/{Logo → components/atoms/Logo}/PancakeSwap.d.ts +0 -0
  379. /package/dist/{Logo → components/atoms/Logo}/PhantomIcon.d.ts +0 -0
  380. /package/dist/{Logo → components/atoms/Logo}/PolygonLogo.d.ts +0 -0
  381. /package/dist/{Logo → components/atoms/Logo}/Radiant.d.ts +0 -0
  382. /package/dist/{Logo → components/atoms/Logo}/RadiantLogo.d.ts +0 -0
  383. /package/dist/{Logo → components/atoms/Logo}/Solv.d.ts +0 -0
  384. /package/dist/{Logo → components/atoms/Logo}/SwellBTC.d.ts +0 -0
  385. /package/dist/{Logo → components/atoms/Logo}/TraderJoe.d.ts +0 -0
  386. /package/dist/{Logo → components/atoms/Logo}/TrailOfBits.d.ts +0 -0
  387. /package/dist/{Logo → components/atoms/Logo}/TrustWallet.d.ts +0 -0
  388. /package/dist/{Logo → components/atoms/Logo}/Vertex.d.ts +0 -0
  389. /package/dist/{Logo → components/atoms/Logo}/WalletConnect.d.ts +0 -0
  390. /package/dist/{Logo → components/atoms/Logo}/index.d.ts +0 -0
  391. /package/dist/{Modal → components/atoms/Modal}/Modal.d.ts +0 -0
  392. /package/dist/{Sidebar → components/atoms/Sidebar}/Sidebar.d.ts +0 -0
  393. /package/dist/{Typography → components/atoms/Typography}/Typography.d.ts +0 -0
  394. /package/dist/{Chip → components/molecules/Chip}/Chip.d.ts +0 -0
  395. /package/dist/{GradientScroll → components/molecules/GradientScroll}/GradientScroll.d.ts +0 -0
  396. /package/dist/{InfoBadge → components/molecules/InfoBadge}/InfoBadge.d.ts +0 -0
  397. /package/dist/{TokenInfo → components/molecules/TokenInfo}/TokenInfo.d.ts +0 -0
  398. /package/dist/{TokenNetworkLogos → components/molecules/TokenNetworkLogos}/TokenNetworkLogos.d.ts +0 -0
  399. /package/dist/{BlogCard → components/organisms/BlogCard}/BlogCard.d.ts +0 -0
  400. /package/dist/{Footer → components/organisms/Footer}/Footer.d.ts +0 -0
  401. /package/dist/{Footer → components/organisms/Footer}/FooterBackgroundAnimation.d.ts +0 -0
  402. /package/dist/{Footer → components/organisms/Footer}/FooterLink.d.ts +0 -0
  403. /package/dist/{QuestCard → components/organisms/QuestCard}/QuestCard.d.ts +0 -0
@@ -1,29 +0,0 @@
1
- import * as f from "react";
2
- function l(n, o) {
3
- if (typeof n == "function")
4
- return n(o);
5
- n != null && (n.current = o);
6
- }
7
- function i(...n) {
8
- return (o) => {
9
- let u = !1;
10
- const c = n.map((t) => {
11
- const e = l(t, o);
12
- return !u && typeof e == "function" && (u = !0), e;
13
- });
14
- if (u)
15
- return () => {
16
- for (let t = 0; t < c.length; t++) {
17
- const e = c[t];
18
- typeof e == "function" ? e() : l(n[t], null);
19
- }
20
- };
21
- };
22
- }
23
- function s(...n) {
24
- return f.useCallback(i(...n), n);
25
- }
26
- export {
27
- i as composeRefs,
28
- s as useComposedRefs
29
- };
@@ -1,70 +0,0 @@
1
- import * as u from "react";
2
- import { jsx as h } from "react/jsx-runtime";
3
- function w(e, c) {
4
- const o = u.createContext(c), a = (r) => {
5
- const { children: t, ...n } = r, s = u.useMemo(() => n, Object.values(n));
6
- return /* @__PURE__ */ h(o.Provider, { value: s, children: t });
7
- };
8
- a.displayName = e + "Provider";
9
- function i(r) {
10
- const t = u.useContext(o);
11
- if (t) return t;
12
- if (c !== void 0) return c;
13
- throw new Error(`\`${r}\` must be used within \`${e}\``);
14
- }
15
- return [a, i];
16
- }
17
- function _(e, c = []) {
18
- let o = [];
19
- function a(r, t) {
20
- const n = u.createContext(t), s = o.length;
21
- o = [...o, t];
22
- const p = (d) => {
23
- var S;
24
- const { scope: x, children: C, ...m } = d, v = ((S = x == null ? void 0 : x[e]) == null ? void 0 : S[s]) || n, P = u.useMemo(() => m, Object.values(m));
25
- return /* @__PURE__ */ h(v.Provider, { value: P, children: C });
26
- };
27
- p.displayName = r + "Provider";
28
- function f(d, x) {
29
- var v;
30
- const C = ((v = x == null ? void 0 : x[e]) == null ? void 0 : v[s]) || n, m = u.useContext(C);
31
- if (m) return m;
32
- if (t !== void 0) return t;
33
- throw new Error(`\`${d}\` must be used within \`${r}\``);
34
- }
35
- return [p, f];
36
- }
37
- const i = () => {
38
- const r = o.map((t) => u.createContext(t));
39
- return function(n) {
40
- const s = (n == null ? void 0 : n[e]) || r;
41
- return u.useMemo(
42
- () => ({ [`__scope${e}`]: { ...n, [e]: s } }),
43
- [n, s]
44
- );
45
- };
46
- };
47
- return i.scopeName = e, [a, l(i, ...c)];
48
- }
49
- function l(...e) {
50
- const c = e[0];
51
- if (e.length === 1) return c;
52
- const o = () => {
53
- const a = e.map((i) => ({
54
- useScope: i(),
55
- scopeName: i.scopeName
56
- }));
57
- return function(r) {
58
- const t = a.reduce((n, { useScope: s, scopeName: p }) => {
59
- const d = s(r)[`__scope${p}`];
60
- return { ...n, ...d };
61
- }, {});
62
- return u.useMemo(() => ({ [`__scope${c.scopeName}`]: t }), [t]);
63
- };
64
- };
65
- return o.scopeName = c.scopeName, o;
66
- }
67
- export {
68
- w as createContext,
69
- _ as createContextScope
70
- };
@@ -1,257 +0,0 @@
1
- import * as s from "react";
2
- import { composeEventHandlers as p } from "../../primitive/dist/index.js";
3
- import { useComposedRefs as _ } from "../../react-compose-refs/dist/index.js";
4
- import { createContextScope as $, createContext as B } from "../../react-context/dist/index.js";
5
- import { useId as R } from "../../react-id/dist/index.js";
6
- import { useControllableState as j } from "../../react-use-controllable-state/dist/index.js";
7
- import { DismissableLayer as H } from "../../react-dismissable-layer/dist/index.js";
8
- import { FocusScope as V } from "../../react-focus-scope/dist/index.js";
9
- import { Portal as q } from "../../react-portal/dist/index.js";
10
- import { Presence as h } from "../../react-presence/dist/index.js";
11
- import { Primitive as m } from "../../react-primitive/dist/index.js";
12
- import { useFocusGuards as K } from "../../react-focus-guards/dist/index.js";
13
- import { RemoveScroll as U } from "react-remove-scroll";
14
- import { hideOthers as Y } from "../../../aria-hidden/dist/es2015/index.js";
15
- import { createSlot as Z } from "../../react-slot/dist/index.js";
16
- import { jsx as i, jsxs as P, Fragment as O } from "react/jsx-runtime";
17
- var v = "Dialog", [I] = $(v), [z, u] = I(v), x = (e) => {
18
- const {
19
- __scopeDialog: o,
20
- children: n,
21
- open: a,
22
- defaultOpen: r,
23
- onOpenChange: t,
24
- modal: c = !0
25
- } = e, l = s.useRef(null), d = s.useRef(null), [g, C] = j({
26
- prop: a,
27
- defaultProp: r ?? !1,
28
- onChange: t,
29
- caller: v
30
- });
31
- return /* @__PURE__ */ i(
32
- z,
33
- {
34
- scope: o,
35
- triggerRef: l,
36
- contentRef: d,
37
- contentId: R(),
38
- titleId: R(),
39
- descriptionId: R(),
40
- open: g,
41
- onOpenChange: C,
42
- onOpenToggle: s.useCallback(() => C((L) => !L), [C]),
43
- modal: c,
44
- children: n
45
- }
46
- );
47
- };
48
- x.displayName = v;
49
- var A = "DialogTrigger", J = s.forwardRef(
50
- (e, o) => {
51
- const { __scopeDialog: n, ...a } = e, r = u(A, n), t = _(o, r.triggerRef);
52
- return /* @__PURE__ */ i(
53
- m.button,
54
- {
55
- type: "button",
56
- "aria-haspopup": "dialog",
57
- "aria-expanded": r.open,
58
- "aria-controls": r.contentId,
59
- "data-state": N(r.open),
60
- ...a,
61
- ref: t,
62
- onClick: p(e.onClick, r.onOpenToggle)
63
- }
64
- );
65
- }
66
- );
67
- J.displayName = A;
68
- var E = "DialogPortal", [Q, b] = I(E, {
69
- forceMount: void 0
70
- }), T = (e) => {
71
- const { __scopeDialog: o, forceMount: n, children: a, container: r } = e, t = u(E, o);
72
- return /* @__PURE__ */ i(Q, { scope: o, forceMount: n, children: s.Children.map(a, (c) => /* @__PURE__ */ i(h, { present: n || t.open, children: /* @__PURE__ */ i(q, { asChild: !0, container: r, children: c }) })) });
73
- };
74
- T.displayName = E;
75
- var D = "DialogOverlay", M = s.forwardRef(
76
- (e, o) => {
77
- const n = b(D, e.__scopeDialog), { forceMount: a = n.forceMount, ...r } = e, t = u(D, e.__scopeDialog);
78
- return t.modal ? /* @__PURE__ */ i(h, { present: a || t.open, children: /* @__PURE__ */ i(ee, { ...r, ref: o }) }) : null;
79
- }
80
- );
81
- M.displayName = D;
82
- var X = Z("DialogOverlay.RemoveScroll"), ee = s.forwardRef(
83
- (e, o) => {
84
- const { __scopeDialog: n, ...a } = e, r = u(D, n);
85
- return (
86
- // Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
87
- // ie. when `Overlay` and `Content` are siblings
88
- /* @__PURE__ */ i(U, { as: X, allowPinchZoom: !0, shards: [r.contentRef], children: /* @__PURE__ */ i(
89
- m.div,
90
- {
91
- "data-state": N(r.open),
92
- ...a,
93
- ref: o,
94
- style: { pointerEvents: "auto", ...a.style }
95
- }
96
- ) })
97
- );
98
- }
99
- ), f = "DialogContent", w = s.forwardRef(
100
- (e, o) => {
101
- const n = b(f, e.__scopeDialog), { forceMount: a = n.forceMount, ...r } = e, t = u(f, e.__scopeDialog);
102
- return /* @__PURE__ */ i(h, { present: a || t.open, children: t.modal ? /* @__PURE__ */ i(te, { ...r, ref: o }) : /* @__PURE__ */ i(oe, { ...r, ref: o }) });
103
- }
104
- );
105
- w.displayName = f;
106
- var te = s.forwardRef(
107
- (e, o) => {
108
- const n = u(f, e.__scopeDialog), a = s.useRef(null), r = _(o, n.contentRef, a);
109
- return s.useEffect(() => {
110
- const t = a.current;
111
- if (t) return Y(t);
112
- }, []), /* @__PURE__ */ i(
113
- F,
114
- {
115
- ...e,
116
- ref: r,
117
- trapFocus: n.open,
118
- disableOutsidePointerEvents: !0,
119
- onCloseAutoFocus: p(e.onCloseAutoFocus, (t) => {
120
- var c;
121
- t.preventDefault(), (c = n.triggerRef.current) == null || c.focus();
122
- }),
123
- onPointerDownOutside: p(e.onPointerDownOutside, (t) => {
124
- const c = t.detail.originalEvent, l = c.button === 0 && c.ctrlKey === !0;
125
- (c.button === 2 || l) && t.preventDefault();
126
- }),
127
- onFocusOutside: p(
128
- e.onFocusOutside,
129
- (t) => t.preventDefault()
130
- )
131
- }
132
- );
133
- }
134
- ), oe = s.forwardRef(
135
- (e, o) => {
136
- const n = u(f, e.__scopeDialog), a = s.useRef(!1), r = s.useRef(!1);
137
- return /* @__PURE__ */ i(
138
- F,
139
- {
140
- ...e,
141
- ref: o,
142
- trapFocus: !1,
143
- disableOutsidePointerEvents: !1,
144
- onCloseAutoFocus: (t) => {
145
- var c, l;
146
- (c = e.onCloseAutoFocus) == null || c.call(e, t), t.defaultPrevented || (a.current || (l = n.triggerRef.current) == null || l.focus(), t.preventDefault()), a.current = !1, r.current = !1;
147
- },
148
- onInteractOutside: (t) => {
149
- var d, g;
150
- (d = e.onInteractOutside) == null || d.call(e, t), t.defaultPrevented || (a.current = !0, t.detail.originalEvent.type === "pointerdown" && (r.current = !0));
151
- const c = t.target;
152
- ((g = n.triggerRef.current) == null ? void 0 : g.contains(c)) && t.preventDefault(), t.detail.originalEvent.type === "focusin" && r.current && t.preventDefault();
153
- }
154
- }
155
- );
156
- }
157
- ), F = s.forwardRef(
158
- (e, o) => {
159
- const { __scopeDialog: n, trapFocus: a, onOpenAutoFocus: r, onCloseAutoFocus: t, ...c } = e, l = u(f, n), d = s.useRef(null), g = _(o, d);
160
- return K(), /* @__PURE__ */ P(O, { children: [
161
- /* @__PURE__ */ i(
162
- V,
163
- {
164
- asChild: !0,
165
- loop: !0,
166
- trapped: a,
167
- onMountAutoFocus: r,
168
- onUnmountAutoFocus: t,
169
- children: /* @__PURE__ */ i(
170
- H,
171
- {
172
- role: "dialog",
173
- id: l.contentId,
174
- "aria-describedby": l.descriptionId,
175
- "aria-labelledby": l.titleId,
176
- "data-state": N(l.open),
177
- ...c,
178
- ref: g,
179
- onDismiss: () => l.onOpenChange(!1)
180
- }
181
- )
182
- }
183
- ),
184
- /* @__PURE__ */ P(O, { children: [
185
- /* @__PURE__ */ i(ie, { titleId: l.titleId }),
186
- /* @__PURE__ */ i(ce, { contentRef: d, descriptionId: l.descriptionId })
187
- ] })
188
- ] });
189
- }
190
- ), y = "DialogTitle", re = s.forwardRef(
191
- (e, o) => {
192
- const { __scopeDialog: n, ...a } = e, r = u(y, n);
193
- return /* @__PURE__ */ i(m.h2, { id: r.titleId, ...a, ref: o });
194
- }
195
- );
196
- re.displayName = y;
197
- var S = "DialogDescription", ne = s.forwardRef(
198
- (e, o) => {
199
- const { __scopeDialog: n, ...a } = e, r = u(S, n);
200
- return /* @__PURE__ */ i(m.p, { id: r.descriptionId, ...a, ref: o });
201
- }
202
- );
203
- ne.displayName = S;
204
- var W = "DialogClose", ae = s.forwardRef(
205
- (e, o) => {
206
- const { __scopeDialog: n, ...a } = e, r = u(W, n);
207
- return /* @__PURE__ */ i(
208
- m.button,
209
- {
210
- type: "button",
211
- ...a,
212
- ref: o,
213
- onClick: p(e.onClick, () => r.onOpenChange(!1))
214
- }
215
- );
216
- }
217
- );
218
- ae.displayName = W;
219
- function N(e) {
220
- return e ? "open" : "closed";
221
- }
222
- var k = "DialogTitleWarning", [Ne, G] = B(k, {
223
- contentName: f,
224
- titleName: y,
225
- docsSlug: "dialog"
226
- }), ie = ({ titleId: e }) => {
227
- const o = G(k), n = `\`${o.contentName}\` requires a \`${o.titleName}\` for the component to be accessible for screen reader users.
228
-
229
- If you want to hide the \`${o.titleName}\`, you can wrap it with our VisuallyHidden component.
230
-
231
- For more information, see https://radix-ui.com/primitives/docs/components/${o.docsSlug}`;
232
- return s.useEffect(() => {
233
- e && (document.getElementById(e) || console.error(n));
234
- }, [n, e]), null;
235
- }, se = "DialogDescriptionWarning", ce = ({ contentRef: e, descriptionId: o }) => {
236
- const a = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${G(se).contentName}}.`;
237
- return s.useEffect(() => {
238
- var t;
239
- const r = (t = e.current) == null ? void 0 : t.getAttribute("aria-describedby");
240
- o && r && (document.getElementById(o) || console.warn(a));
241
- }, [a, e, o]), null;
242
- }, Pe = x, Oe = T, Ie = M, xe = w;
243
- export {
244
- xe as Content,
245
- x as Dialog,
246
- ae as DialogClose,
247
- w as DialogContent,
248
- ne as DialogDescription,
249
- M as DialogOverlay,
250
- T as DialogPortal,
251
- re as DialogTitle,
252
- J as DialogTrigger,
253
- Ie as Overlay,
254
- Oe as Portal,
255
- Pe as Root,
256
- Ne as WarningProvider
257
- };
@@ -1,127 +0,0 @@
1
- import * as n from "react";
2
- import { composeEventHandlers as m } from "../../primitive/dist/index.js";
3
- import { Primitive as g, dispatchDiscreteCustomEvent as k } from "../../react-primitive/dist/index.js";
4
- import { useComposedRefs as R } from "../../react-compose-refs/dist/index.js";
5
- import { useCallbackRef as w } from "../../react-use-callback-ref/dist/index.js";
6
- import { useEscapeKeydown as U } from "../../react-use-escape-keydown/dist/index.js";
7
- import { jsx as T } from "react/jsx-runtime";
8
- var z = "DismissableLayer", y = "dismissableLayer.update", H = "dismissableLayer.pointerDownOutside", M = "dismissableLayer.focusOutside", L, B = n.createContext({
9
- layers: /* @__PURE__ */ new Set(),
10
- layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
11
- branches: /* @__PURE__ */ new Set()
12
- }), j = n.forwardRef(
13
- (r, e) => {
14
- const {
15
- disableOutsidePointerEvents: i = !1,
16
- onEscapeKeyDown: o,
17
- onPointerDownOutside: t,
18
- onFocusOutside: a,
19
- onInteractOutside: l,
20
- onDismiss: d,
21
- ...v
22
- } = r, c = n.useContext(B), [u, S] = n.useState(null), f = (u == null ? void 0 : u.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, F] = n.useState({}), W = R(e, (s) => S(s)), p = Array.from(c.layers), [A] = [...c.layersWithOutsidePointerEventsDisabled].slice(-1), N = p.indexOf(A), b = u ? p.indexOf(u) : -1, I = c.layersWithOutsidePointerEventsDisabled.size > 0, P = b >= N, _ = q((s) => {
23
- const E = s.target, C = [...c.branches].some((h) => h.contains(E));
24
- !P || C || (t == null || t(s), l == null || l(s), s.defaultPrevented || d == null || d());
25
- }, f), D = G((s) => {
26
- const E = s.target;
27
- [...c.branches].some((h) => h.contains(E)) || (a == null || a(s), l == null || l(s), s.defaultPrevented || d == null || d());
28
- }, f);
29
- return U((s) => {
30
- b === c.layers.size - 1 && (o == null || o(s), !s.defaultPrevented && d && (s.preventDefault(), d()));
31
- }, f), n.useEffect(() => {
32
- if (u)
33
- return i && (c.layersWithOutsidePointerEventsDisabled.size === 0 && (L = f.body.style.pointerEvents, f.body.style.pointerEvents = "none"), c.layersWithOutsidePointerEventsDisabled.add(u)), c.layers.add(u), O(), () => {
34
- i && c.layersWithOutsidePointerEventsDisabled.size === 1 && (f.body.style.pointerEvents = L);
35
- };
36
- }, [u, f, i, c]), n.useEffect(() => () => {
37
- u && (c.layers.delete(u), c.layersWithOutsidePointerEventsDisabled.delete(u), O());
38
- }, [u, c]), n.useEffect(() => {
39
- const s = () => F({});
40
- return document.addEventListener(y, s), () => document.removeEventListener(y, s);
41
- }, []), /* @__PURE__ */ T(
42
- g.div,
43
- {
44
- ...v,
45
- ref: W,
46
- style: {
47
- pointerEvents: I ? P ? "auto" : "none" : void 0,
48
- ...r.style
49
- },
50
- onFocusCapture: m(r.onFocusCapture, D.onFocusCapture),
51
- onBlurCapture: m(r.onBlurCapture, D.onBlurCapture),
52
- onPointerDownCapture: m(
53
- r.onPointerDownCapture,
54
- _.onPointerDownCapture
55
- )
56
- }
57
- );
58
- }
59
- );
60
- j.displayName = z;
61
- var X = "DismissableLayerBranch", Y = n.forwardRef((r, e) => {
62
- const i = n.useContext(B), o = n.useRef(null), t = R(e, o);
63
- return n.useEffect(() => {
64
- const a = o.current;
65
- if (a)
66
- return i.branches.add(a), () => {
67
- i.branches.delete(a);
68
- };
69
- }, [i.branches]), /* @__PURE__ */ T(g.div, { ...r, ref: t });
70
- });
71
- Y.displayName = X;
72
- function q(r, e = globalThis == null ? void 0 : globalThis.document) {
73
- const i = w(r), o = n.useRef(!1), t = n.useRef(() => {
74
- });
75
- return n.useEffect(() => {
76
- const a = (d) => {
77
- if (d.target && !o.current) {
78
- let v = function() {
79
- x(
80
- H,
81
- i,
82
- c,
83
- { discrete: !0 }
84
- );
85
- };
86
- const c = { originalEvent: d };
87
- d.pointerType === "touch" ? (e.removeEventListener("click", t.current), t.current = v, e.addEventListener("click", t.current, { once: !0 })) : v();
88
- } else
89
- e.removeEventListener("click", t.current);
90
- o.current = !1;
91
- }, l = window.setTimeout(() => {
92
- e.addEventListener("pointerdown", a);
93
- }, 0);
94
- return () => {
95
- window.clearTimeout(l), e.removeEventListener("pointerdown", a), e.removeEventListener("click", t.current);
96
- };
97
- }, [e, i]), {
98
- // ensures we check React component tree (not just DOM tree)
99
- onPointerDownCapture: () => o.current = !0
100
- };
101
- }
102
- function G(r, e = globalThis == null ? void 0 : globalThis.document) {
103
- const i = w(r), o = n.useRef(!1);
104
- return n.useEffect(() => {
105
- const t = (a) => {
106
- a.target && !o.current && x(M, i, { originalEvent: a }, {
107
- discrete: !1
108
- });
109
- };
110
- return e.addEventListener("focusin", t), () => e.removeEventListener("focusin", t);
111
- }, [e, i]), {
112
- onFocusCapture: () => o.current = !0,
113
- onBlurCapture: () => o.current = !1
114
- };
115
- }
116
- function O() {
117
- const r = new CustomEvent(y);
118
- document.dispatchEvent(r);
119
- }
120
- function x(r, e, i, { discrete: o }) {
121
- const t = i.originalEvent.target, a = new CustomEvent(r, { bubbles: !1, cancelable: !0, detail: i });
122
- e && t.addEventListener(r, e, { once: !0 }), o ? k(t, a) : t.dispatchEvent(a);
123
- }
124
- export {
125
- j as DismissableLayer,
126
- Y as DismissableLayerBranch
127
- };
@@ -1,17 +0,0 @@
1
- import * as r from "react";
2
- var t = 0;
3
- function a() {
4
- r.useEffect(() => {
5
- const e = document.querySelectorAll("[data-radix-focus-guard]");
6
- return document.body.insertAdjacentElement("afterbegin", e[0] ?? n()), document.body.insertAdjacentElement("beforeend", e[1] ?? n()), t++, () => {
7
- t === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach((o) => o.remove()), t--;
8
- };
9
- }, []);
10
- }
11
- function n() {
12
- const e = document.createElement("span");
13
- return e.setAttribute("data-radix-focus-guard", ""), e.tabIndex = 0, e.style.outline = "none", e.style.opacity = "0", e.style.position = "fixed", e.style.pointerEvents = "none", e;
14
- }
15
- export {
16
- a as useFocusGuards
17
- };
@@ -1,137 +0,0 @@
1
- import * as d from "react";
2
- import { useComposedRefs as R } from "../../react-compose-refs/dist/index.js";
3
- import { Primitive as M } from "../../react-primitive/dist/index.js";
4
- import { useCallbackRef as y } from "../../react-use-callback-ref/dist/index.js";
5
- import { jsx as _ } from "react/jsx-runtime";
6
- var F = "focusScope.autoFocusOnMount", T = "focusScope.autoFocusOnUnmount", N = { bubbles: !1, cancelable: !0 }, K = "FocusScope", k = d.forwardRef((e, n) => {
7
- const {
8
- loop: t = !1,
9
- trapped: u = !1,
10
- onMountAutoFocus: p,
11
- onUnmountAutoFocus: L,
12
- ...g
13
- } = e, [o, U] = d.useState(null), E = y(p), v = y(L), b = d.useRef(null), A = R(n, (s) => U(s)), a = d.useRef({
14
- paused: !1,
15
- pause() {
16
- this.paused = !0;
17
- },
18
- resume() {
19
- this.paused = !1;
20
- }
21
- }).current;
22
- d.useEffect(() => {
23
- if (u) {
24
- let s = function(i) {
25
- if (a.paused || !o) return;
26
- const c = i.target;
27
- o.contains(c) ? b.current = c : f(b.current, { select: !0 });
28
- }, l = function(i) {
29
- if (a.paused || !o) return;
30
- const c = i.relatedTarget;
31
- c !== null && (o.contains(c) || f(b.current, { select: !0 }));
32
- }, r = function(i) {
33
- if (document.activeElement === document.body)
34
- for (const h of i)
35
- h.removedNodes.length > 0 && f(o);
36
- };
37
- document.addEventListener("focusin", s), document.addEventListener("focusout", l);
38
- const m = new MutationObserver(r);
39
- return o && m.observe(o, { childList: !0, subtree: !0 }), () => {
40
- document.removeEventListener("focusin", s), document.removeEventListener("focusout", l), m.disconnect();
41
- };
42
- }
43
- }, [u, o, a.paused]), d.useEffect(() => {
44
- if (o) {
45
- S.add(a);
46
- const s = document.activeElement;
47
- if (!o.contains(s)) {
48
- const r = new CustomEvent(F, N);
49
- o.addEventListener(F, E), o.dispatchEvent(r), r.defaultPrevented || (w(W(I(o)), { select: !0 }), document.activeElement === s && f(o));
50
- }
51
- return () => {
52
- o.removeEventListener(F, E), setTimeout(() => {
53
- const r = new CustomEvent(T, N);
54
- o.addEventListener(T, v), o.dispatchEvent(r), r.defaultPrevented || f(s ?? document.body, { select: !0 }), o.removeEventListener(T, v), S.remove(a);
55
- }, 0);
56
- };
57
- }
58
- }, [o, E, v, a]);
59
- const P = d.useCallback(
60
- (s) => {
61
- if (!t && !u || a.paused) return;
62
- const l = s.key === "Tab" && !s.altKey && !s.ctrlKey && !s.metaKey, r = document.activeElement;
63
- if (l && r) {
64
- const m = s.currentTarget, [i, c] = x(m);
65
- i && c ? !s.shiftKey && r === c ? (s.preventDefault(), t && f(i, { select: !0 })) : s.shiftKey && r === i && (s.preventDefault(), t && f(c, { select: !0 })) : r === m && s.preventDefault();
66
- }
67
- },
68
- [t, u, a.paused]
69
- );
70
- return /* @__PURE__ */ _(M.div, { tabIndex: -1, ...g, ref: A, onKeyDown: P });
71
- });
72
- k.displayName = K;
73
- function w(e, { select: n = !1 } = {}) {
74
- const t = document.activeElement;
75
- for (const u of e)
76
- if (f(u, { select: n }), document.activeElement !== t) return;
77
- }
78
- function x(e) {
79
- const n = I(e), t = O(n, e), u = O(n.reverse(), e);
80
- return [t, u];
81
- }
82
- function I(e) {
83
- const n = [], t = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, {
84
- acceptNode: (u) => {
85
- const p = u.tagName === "INPUT" && u.type === "hidden";
86
- return u.disabled || u.hidden || p ? NodeFilter.FILTER_SKIP : u.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
87
- }
88
- });
89
- for (; t.nextNode(); ) n.push(t.currentNode);
90
- return n;
91
- }
92
- function O(e, n) {
93
- for (const t of e)
94
- if (!D(t, { upTo: n })) return t;
95
- }
96
- function D(e, { upTo: n }) {
97
- if (getComputedStyle(e).visibility === "hidden") return !0;
98
- for (; e; ) {
99
- if (n !== void 0 && e === n) return !1;
100
- if (getComputedStyle(e).display === "none") return !0;
101
- e = e.parentElement;
102
- }
103
- return !1;
104
- }
105
- function H(e) {
106
- return e instanceof HTMLInputElement && "select" in e;
107
- }
108
- function f(e, { select: n = !1 } = {}) {
109
- if (e && e.focus) {
110
- const t = document.activeElement;
111
- e.focus({ preventScroll: !0 }), e !== t && H(e) && n && e.select();
112
- }
113
- }
114
- var S = V();
115
- function V() {
116
- let e = [];
117
- return {
118
- add(n) {
119
- const t = e[0];
120
- n !== t && (t == null || t.pause()), e = C(e, n), e.unshift(n);
121
- },
122
- remove(n) {
123
- var t;
124
- e = C(e, n), (t = e[0]) == null || t.resume();
125
- }
126
- };
127
- }
128
- function C(e, n) {
129
- const t = [...e], u = t.indexOf(n);
130
- return u !== -1 && t.splice(u, 1), t;
131
- }
132
- function W(e) {
133
- return e.filter((n) => n.tagName !== "A");
134
- }
135
- export {
136
- k as FocusScope
137
- };
@@ -1,13 +0,0 @@
1
- import * as o from "react";
2
- import { useLayoutEffect as a } from "../../react-use-layout-effect/dist/index.js";
3
- var s = o[" useId ".trim().toString()] || (() => {
4
- }), f = 0;
5
- function i(t) {
6
- const [e, r] = o.useState(s());
7
- return a(() => {
8
- r((u) => u ?? String(f++));
9
- }, [t]), t || (e ? `radix-${e}` : "");
10
- }
11
- export {
12
- i as useId
13
- };
@@ -1,16 +0,0 @@
1
- import * as r from "react";
2
- import s from "react-dom";
3
- import { Primitive as c } from "../../react-primitive/dist/index.js";
4
- import { useLayoutEffect as u } from "../../react-use-layout-effect/dist/index.js";
5
- import { jsx as l } from "react/jsx-runtime";
6
- var p = "Portal", d = r.forwardRef((e, a) => {
7
- var o;
8
- const { container: f, ...i } = e, [m, n] = r.useState(!1);
9
- u(() => n(!0), []);
10
- const t = f || m && ((o = globalThis == null ? void 0 : globalThis.document) == null ? void 0 : o.body);
11
- return t ? s.createPortal(/* @__PURE__ */ l(c.div, { ...i, ref: a }), t) : null;
12
- });
13
- d.displayName = p;
14
- export {
15
- d as Portal
16
- };