@blockscout/ui-toolkit 0.0.1-alpha.1 → 0.0.1-alpha.3

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 (376) hide show
  1. package/README.md +5 -0
  2. package/dist/chakra/accordion.d.ts +1 -1
  3. package/dist/chakra/drawer.d.ts +1 -1
  4. package/dist/chakra/popover.d.ts +1 -2
  5. package/dist/chakra/select.d.ts +4 -1
  6. package/dist/components/AdaptiveTabs/index.d.ts +3 -0
  7. package/dist/components/Hint/Hint.d.ts +11 -0
  8. package/dist/components/RoutedTabs/index.d.ts +3 -0
  9. package/dist/components/buttons/BackToButton.d.ts +7 -0
  10. package/dist/components/buttons/ClearButton.d.ts +6 -0
  11. package/dist/components/{Filter → filters}/FilterInput.d.ts +2 -3
  12. package/dist/components/forms/components/FormFieldError.d.ts +7 -0
  13. package/dist/components/forms/components/index.d.ts +1 -0
  14. package/dist/components/forms/fields/FormFieldAddress.d.ts +5 -0
  15. package/dist/components/forms/fields/FormFieldCheckbox.d.ts +9 -0
  16. package/dist/components/forms/fields/FormFieldColor.d.ts +9 -0
  17. package/dist/components/forms/fields/FormFieldEmail.d.ts +5 -0
  18. package/dist/components/forms/fields/FormFieldSelect.d.ts +7 -0
  19. package/dist/components/forms/fields/FormFieldSelectAsync.d.ts +7 -0
  20. package/dist/components/forms/fields/FormFieldText.d.ts +8 -0
  21. package/dist/components/forms/fields/FormFieldUrl.d.ts +4 -0
  22. package/dist/components/forms/fields/image/FormFieldImagePreview.d.ts +13 -0
  23. package/dist/components/forms/fields/image/useImageField.d.ts +25 -0
  24. package/dist/components/forms/fields/index.d.ts +10 -0
  25. package/dist/components/forms/fields/types.d.ts +19 -0
  26. package/dist/components/forms/inputs/file/DragAndDropArea.d.ts +11 -0
  27. package/dist/components/forms/inputs/file/FileInput.d.ts +13 -0
  28. package/dist/components/forms/inputs/file/FileSnippet.d.ts +11 -0
  29. package/dist/components/forms/inputs/file/utils.d.ts +2 -0
  30. package/dist/components/forms/inputs/index.d.ts +3 -0
  31. package/dist/components/forms/utils/getFormFieldErrorText.d.ts +2 -0
  32. package/dist/components/forms/utils/index.d.ts +1 -0
  33. package/dist/components/forms/validators/address.d.ts +3 -0
  34. package/dist/components/forms/validators/color.d.ts +2 -0
  35. package/dist/components/forms/validators/email.d.ts +2 -0
  36. package/dist/components/forms/validators/index.d.ts +7 -0
  37. package/dist/components/forms/validators/signature.d.ts +1 -0
  38. package/dist/components/forms/validators/text.d.ts +1 -0
  39. package/dist/components/forms/validators/transaction.d.ts +2 -0
  40. package/dist/components/forms/validators/url.d.ts +3 -0
  41. package/dist/components/truncation/TruncatedTextTooltip.d.ts +8 -0
  42. package/dist/hooks/useClipboard.d.ts +1 -1
  43. package/dist/hooks/useFirstMountState.d.ts +1 -0
  44. package/dist/hooks/useIsSticky.d.ts +2 -0
  45. package/dist/hooks/useUpdateEffect.d.ts +2 -0
  46. package/dist/hooks/useViewportSize.d.ts +1 -1
  47. package/dist/index.d.ts +2 -0
  48. package/dist/index.js +10479 -0
  49. package/dist/package/src/index.d.ts +29 -11
  50. package/dist/theme/recipes/alert.recipe.d.ts +6 -46
  51. package/dist/theme/recipes/badge.recipe.d.ts +11 -44
  52. package/dist/theme/recipes/button.recipe.d.ts +17 -20
  53. package/dist/theme/recipes/close-button.recipe.d.ts +0 -3
  54. package/dist/theme/recipes/dialog.recipe.d.ts +1 -1
  55. package/dist/theme/recipes/drawer.recipe.d.ts +1 -1
  56. package/dist/theme/recipes/index.d.ts +47 -147
  57. package/dist/theme/recipes/link.recipe.d.ts +1 -9
  58. package/dist/theme/recipes/list.recipe.d.ts +1 -1
  59. package/dist/theme/recipes/menu.recipe.d.ts +1 -1
  60. package/dist/theme/recipes/select.recipe.d.ts +1 -1
  61. package/dist/theme/recipes/skeleton.recipe.d.ts +5 -6
  62. package/dist/theme/recipes/table.recipe.d.ts +1 -1
  63. package/dist/theme/recipes/tag.recipe.d.ts +0 -12
  64. package/dist/theme/recipes/toast.recipe.d.ts +1 -1
  65. package/dist/theme/theme.d.ts +1 -0
  66. package/dist/utils/consts.d.ts +15 -0
  67. package/dist/utils/guards.d.ts +2 -0
  68. package/dist/utils/htmlEntities.d.ts +26 -0
  69. package/dist/utils/isBrowser.d.ts +1 -0
  70. package/dist/utils/regexp.d.ts +6 -0
  71. package/dist/utils/url.d.ts +6 -0
  72. package/package.json +17 -28
  73. package/dist/_virtual/Button.js +0 -4
  74. package/dist/_virtual/Element.js +0 -4
  75. package/dist/_virtual/Link.js +0 -4
  76. package/dist/_virtual/_commonjsHelpers.js +0 -4
  77. package/dist/_virtual/animate-scroll.js +0 -4
  78. package/dist/_virtual/cancel-events.js +0 -4
  79. package/dist/_virtual/index.js +0 -5
  80. package/dist/_virtual/index2.js +0 -4
  81. package/dist/_virtual/index3.js +0 -4
  82. package/dist/_virtual/index4.js +0 -4
  83. package/dist/_virtual/jsx-runtime.js +0 -5
  84. package/dist/_virtual/jsx-runtime2.js +0 -4
  85. package/dist/_virtual/passive-event-listeners.js +0 -4
  86. package/dist/_virtual/react-is.development.js +0 -4
  87. package/dist/_virtual/react-is.production.min.js +0 -4
  88. package/dist/_virtual/react-jsx-runtime.development.js +0 -4
  89. package/dist/_virtual/react-jsx-runtime.production.min.js +0 -4
  90. package/dist/_virtual/scroll-element.js +0 -4
  91. package/dist/_virtual/scroll-events.js +0 -4
  92. package/dist/_virtual/scroll-hash.js +0 -4
  93. package/dist/_virtual/scroll-link.js +0 -4
  94. package/dist/_virtual/scroll-spy.js +0 -4
  95. package/dist/_virtual/scroller.js +0 -4
  96. package/dist/_virtual/smooth.js +0 -4
  97. package/dist/_virtual/utils.js +0 -4
  98. package/dist/chakra/accordion.js +0 -61
  99. package/dist/chakra/alert.js +0 -45
  100. package/dist/chakra/avatar.js +0 -36
  101. package/dist/chakra/badge.js +0 -18
  102. package/dist/chakra/button.js +0 -65
  103. package/dist/chakra/checkbox.js +0 -33
  104. package/dist/chakra/close-button.js +0 -13
  105. package/dist/chakra/collapsible.js +0 -58
  106. package/dist/chakra/color-mode.js +0 -35
  107. package/dist/chakra/dialog.js +0 -47
  108. package/dist/chakra/drawer.js +0 -39
  109. package/dist/chakra/field.js +0 -65
  110. package/dist/chakra/heading.js +0 -12
  111. package/dist/chakra/icon-button.js +0 -44
  112. package/dist/chakra/image.js +0 -30
  113. package/dist/chakra/input-group.js +0 -47
  114. package/dist/chakra/input.js +0 -5
  115. package/dist/chakra/link.js +0 -68
  116. package/dist/chakra/menu.js +0 -63
  117. package/dist/chakra/pin-input.js +0 -15
  118. package/dist/chakra/popover.js +0 -69
  119. package/dist/chakra/progress-circle.js +0 -17
  120. package/dist/chakra/provider.js +0 -10
  121. package/dist/chakra/radio.js +0 -17
  122. package/dist/chakra/rating.js +0 -21
  123. package/dist/chakra/select.js +0 -185
  124. package/dist/chakra/skeleton.js +0 -40
  125. package/dist/chakra/slider.js +0 -39
  126. package/dist/chakra/switch.js +0 -19
  127. package/dist/chakra/table.js +0 -66
  128. package/dist/chakra/tabs.js +0 -29
  129. package/dist/chakra/tag.js +0 -51
  130. package/dist/chakra/textarea.js +0 -5
  131. package/dist/chakra/toaster.js +0 -31
  132. package/dist/chakra/tooltip.js +0 -85
  133. package/dist/chakra.d.ts +0 -1
  134. package/dist/chakra.js +0 -155
  135. package/dist/components/ButtonBackTo.d.ts +0 -8
  136. package/dist/components/ButtonBackTo.js +0 -22
  137. package/dist/components/Filter/FilterInput.js +0 -48
  138. package/dist/components/TruncatedTextTooltip.d.ts +0 -9
  139. package/dist/components/TruncatedTextTooltip.js +0 -49
  140. package/dist/components/index.d.ts +0 -1
  141. package/dist/components.d.ts +0 -2
  142. package/dist/components.js +0 -1
  143. package/dist/configs/app/api.js +0 -23
  144. package/dist/configs/app/app.js +0 -19
  145. package/dist/configs/app/chain.js +0 -30
  146. package/dist/configs/app/features/account.js +0 -13
  147. package/dist/configs/app/features/addressMetadata.js +0 -15
  148. package/dist/configs/app/features/addressProfileAPI.js +0 -25
  149. package/dist/configs/app/features/addressVerification.js +0 -17
  150. package/dist/configs/app/features/adsBanner.js +0 -50
  151. package/dist/configs/app/features/adsText.js +0 -16
  152. package/dist/configs/app/features/advancedFilter.js +0 -11
  153. package/dist/configs/app/features/beaconChain.js +0 -15
  154. package/dist/configs/app/features/blockchainInteraction.js +0 -15
  155. package/dist/configs/app/features/bridgedTokens.js +0 -16
  156. package/dist/configs/app/features/celo.js +0 -13
  157. package/dist/configs/app/features/csvExport.js +0 -14
  158. package/dist/configs/app/features/dataAvailability.js +0 -11
  159. package/dist/configs/app/features/deFiDropdown.js +0 -12
  160. package/dist/configs/app/features/easterEggBadge.js +0 -12
  161. package/dist/configs/app/features/externalTxs.js +0 -14
  162. package/dist/configs/app/features/faultProofSystem.js +0 -12
  163. package/dist/configs/app/features/gasTracker.js +0 -17
  164. package/dist/configs/app/features/getGasButton.js +0 -17
  165. package/dist/configs/app/features/googleAnalytics.js +0 -12
  166. package/dist/configs/app/features/graphqlApiDocs.js +0 -12
  167. package/dist/configs/app/features/growthBook.js +0 -12
  168. package/dist/configs/app/features/index.js +0 -92
  169. package/dist/configs/app/features/marketplace.js +0 -46
  170. package/dist/configs/app/features/metasuites.js +0 -11
  171. package/dist/configs/app/features/mixpanel.js +0 -12
  172. package/dist/configs/app/features/mudFramework.js +0 -12
  173. package/dist/configs/app/features/multichainButton.js +0 -18
  174. package/dist/configs/app/features/nameService.js +0 -15
  175. package/dist/configs/app/features/pools.js +0 -15
  176. package/dist/configs/app/features/publicTagsSubmission.js +0 -17
  177. package/dist/configs/app/features/restApiDocs.js +0 -12
  178. package/dist/configs/app/features/rewards.js +0 -17
  179. package/dist/configs/app/features/rollbar.js +0 -20
  180. package/dist/configs/app/features/rollup.js +0 -37
  181. package/dist/configs/app/features/safe.js +0 -23
  182. package/dist/configs/app/features/saveOnGas.js +0 -13
  183. package/dist/configs/app/features/sol2uml.js +0 -16
  184. package/dist/configs/app/features/stats.js +0 -16
  185. package/dist/configs/app/features/suave.js +0 -11
  186. package/dist/configs/app/features/txInterpretation.js +0 -16
  187. package/dist/configs/app/features/userOps.js +0 -11
  188. package/dist/configs/app/features/validators.js +0 -16
  189. package/dist/configs/app/features/verifiedTokens.js +0 -15
  190. package/dist/configs/app/features/web3Wallet.js +0 -24
  191. package/dist/configs/app/features/xStarScore.js +0 -12
  192. package/dist/configs/app/index.js +0 -19
  193. package/dist/configs/app/meta.js +0 -16
  194. package/dist/configs/app/services.js +0 -9
  195. package/dist/configs/app/ui/views/address.js +0 -36
  196. package/dist/configs/app/ui/views/block.js +0 -11
  197. package/dist/configs/app/ui/views/index.js +0 -12
  198. package/dist/configs/app/ui/views/nft.js +0 -10
  199. package/dist/configs/app/ui/views/token.js +0 -7
  200. package/dist/configs/app/ui/views/tx.js +0 -15
  201. package/dist/configs/app/ui.js +0 -128
  202. package/dist/configs/app/utils.js +0 -45
  203. package/dist/hooks/useClipboard.js +0 -27
  204. package/dist/hooks/useDisclosure.js +0 -17
  205. package/dist/hooks/useViewportSize.js +0 -17
  206. package/dist/hooks.d.ts +0 -1
  207. package/dist/hooks.js +0 -8
  208. package/dist/icons/arrows/east-mini.svg.js +0 -4
  209. package/dist/icons/arrows/east.svg.js +0 -4
  210. package/dist/icons/check.svg.js +0 -4
  211. package/dist/icons/close.svg.js +0 -4
  212. package/dist/icons/info_filled.svg.js +0 -4
  213. package/dist/icons/link_external.svg.js +0 -4
  214. package/dist/icons/star_filled.svg.js +0 -4
  215. package/dist/icons/star_outline.svg.js +0 -4
  216. package/dist/lib/consts.js +0 -10
  217. package/dist/lib/hooks/useFirstMountState.js +0 -8
  218. package/dist/lib/hooks/useIsMobile.js +0 -7
  219. package/dist/lib/hooks/useUpdateEffect.js +0 -12
  220. package/dist/lib/html-entities.js +0 -5
  221. package/dist/lib/isBrowser.js +0 -6
  222. package/dist/lib/regexp.js +0 -4
  223. package/dist/lib/settings/colorTheme.js +0 -33
  224. package/dist/lib/stripTrailingSlash.js +0 -4
  225. package/dist/node_modules/@uidotdev/usehooks/index.js +0 -51
  226. package/dist/node_modules/bignumber.js/bignumber.js +0 -627
  227. package/dist/node_modules/es-toolkit/dist/function/debounce.js +0 -30
  228. package/dist/node_modules/es-toolkit/dist/function/throttle.js +0 -11
  229. package/dist/node_modules/lodash.throttle/index.js +0 -95
  230. package/dist/node_modules/object-assign/index.js +0 -54
  231. package/dist/node_modules/prop-types/checkPropTypes.js +0 -54
  232. package/dist/node_modules/prop-types/factoryWithThrowingShims.js +0 -52
  233. package/dist/node_modules/prop-types/factoryWithTypeCheckers.js +0 -329
  234. package/dist/node_modules/prop-types/index.js +0 -17
  235. package/dist/node_modules/prop-types/lib/ReactPropTypesSecret.js +0 -10
  236. package/dist/node_modules/prop-types/lib/has.js +0 -7
  237. package/dist/node_modules/react-icons/lib/iconBase.js +0 -108
  238. package/dist/node_modules/react-icons/lib/iconContext.js +0 -12
  239. package/dist/node_modules/react-icons/lu/index.js +0 -12
  240. package/dist/node_modules/react-is/cjs/react-is.development.js +0 -95
  241. package/dist/node_modules/react-is/cjs/react-is.production.min.js +0 -78
  242. package/dist/node_modules/react-is/index.js +0 -10
  243. package/dist/node_modules/react-scroll/modules/components/Button.js +0 -58
  244. package/dist/node_modules/react-scroll/modules/components/Element.js +0 -72
  245. package/dist/node_modules/react-scroll/modules/components/Link.js +0 -49
  246. package/dist/node_modules/react-scroll/modules/index.js +0 -26
  247. package/dist/node_modules/react-scroll/modules/mixins/Helpers.js +0 -192
  248. package/dist/node_modules/react-scroll/modules/mixins/animate-scroll.js +0 -132
  249. package/dist/node_modules/react-scroll/modules/mixins/cancel-events.js +0 -20
  250. package/dist/node_modules/react-scroll/modules/mixins/passive-event-listeners.js +0 -27
  251. package/dist/node_modules/react-scroll/modules/mixins/scroll-element.js +0 -98
  252. package/dist/node_modules/react-scroll/modules/mixins/scroll-events.js +0 -23
  253. package/dist/node_modules/react-scroll/modules/mixins/scroll-hash.js +0 -61
  254. package/dist/node_modules/react-scroll/modules/mixins/scroll-link.js +0 -171
  255. package/dist/node_modules/react-scroll/modules/mixins/scroll-spy.js +0 -79
  256. package/dist/node_modules/react-scroll/modules/mixins/scroller.js +0 -62
  257. package/dist/node_modules/react-scroll/modules/mixins/smooth.js +0 -72
  258. package/dist/node_modules/react-scroll/modules/mixins/utils.js +0 -55
  259. package/dist/package/node_modules/react/cjs/react-jsx-runtime.development.js +0 -604
  260. package/dist/package/node_modules/react/cjs/react-jsx-runtime.production.min.js +0 -28
  261. package/dist/package/node_modules/react/jsx-runtime.js +0 -10
  262. package/dist/theme/foundations/animations.js +0 -15
  263. package/dist/theme/foundations/animations.ts +0 -12
  264. package/dist/theme/foundations/borders.js +0 -12
  265. package/dist/theme/foundations/borders.ts +0 -13
  266. package/dist/theme/foundations/breakpoints.js +0 -11
  267. package/dist/theme/foundations/breakpoints.ts +0 -10
  268. package/dist/theme/foundations/colors.js +0 -163
  269. package/dist/theme/foundations/colors.ts +0 -162
  270. package/dist/theme/foundations/durations.js +0 -12
  271. package/dist/theme/foundations/durations.ts +0 -15
  272. package/dist/theme/foundations/semanticTokens.js +0 -474
  273. package/dist/theme/foundations/semanticTokens.ts +0 -475
  274. package/dist/theme/foundations/shadows.js +0 -16
  275. package/dist/theme/foundations/shadows.ts +0 -19
  276. package/dist/theme/foundations/typography.js +0 -92
  277. package/dist/theme/foundations/typography.ts +0 -93
  278. package/dist/theme/foundations/zIndex.js +0 -24
  279. package/dist/theme/foundations/zIndex.ts +0 -20
  280. package/dist/theme/globalCss.js +0 -51
  281. package/dist/theme/globalCss.ts +0 -57
  282. package/dist/theme/globals/address-entity.js +0 -34
  283. package/dist/theme/globals/address-entity.ts +0 -33
  284. package/dist/theme/globals/recaptcha.js +0 -21
  285. package/dist/theme/globals/recaptcha.ts +0 -20
  286. package/dist/theme/globals/scrollbar.js +0 -33
  287. package/dist/theme/globals/scrollbar.ts +0 -32
  288. package/dist/theme/index.d.ts +0 -1
  289. package/dist/theme/index.ts +0 -1
  290. package/dist/theme/recipes/accordion.recipe.js +0 -143
  291. package/dist/theme/recipes/accordion.recipe.ts +0 -145
  292. package/dist/theme/recipes/alert.recipe.js +0 -134
  293. package/dist/theme/recipes/alert.recipe.ts +0 -138
  294. package/dist/theme/recipes/badge.recipe.js +0 -119
  295. package/dist/theme/recipes/badge.recipe.ts +0 -117
  296. package/dist/theme/recipes/button.recipe.js +0 -272
  297. package/dist/theme/recipes/button.recipe.ts +0 -270
  298. package/dist/theme/recipes/checkbox.recipe.js +0 -53
  299. package/dist/theme/recipes/checkbox.recipe.ts +0 -56
  300. package/dist/theme/recipes/checkmark.recipe.js +0 -73
  301. package/dist/theme/recipes/checkmark.recipe.ts +0 -73
  302. package/dist/theme/recipes/close-button.recipe.js +0 -39
  303. package/dist/theme/recipes/close-button.recipe.ts +0 -37
  304. package/dist/theme/recipes/dialog.recipe.js +0 -210
  305. package/dist/theme/recipes/dialog.recipe.ts +0 -213
  306. package/dist/theme/recipes/drawer.recipe.js +0 -168
  307. package/dist/theme/recipes/drawer.recipe.ts +0 -173
  308. package/dist/theme/recipes/field.recipe.js +0 -174
  309. package/dist/theme/recipes/field.recipe.ts +0 -175
  310. package/dist/theme/recipes/index.js +0 -69
  311. package/dist/theme/recipes/index.ts +0 -68
  312. package/dist/theme/recipes/input.recipe.js +0 -116
  313. package/dist/theme/recipes/input.recipe.ts +0 -119
  314. package/dist/theme/recipes/link.recipe.js +0 -88
  315. package/dist/theme/recipes/link.recipe.ts +0 -86
  316. package/dist/theme/recipes/list.recipe.js +0 -65
  317. package/dist/theme/recipes/list.recipe.ts +0 -67
  318. package/dist/theme/recipes/menu.recipe.js +0 -104
  319. package/dist/theme/recipes/menu.recipe.ts +0 -105
  320. package/dist/theme/recipes/pin-input.recipe.js +0 -34
  321. package/dist/theme/recipes/pin-input.recipe.ts +0 -35
  322. package/dist/theme/recipes/popover.recipe.js +0 -72
  323. package/dist/theme/recipes/popover.recipe.ts +0 -70
  324. package/dist/theme/recipes/progress-circle.recipe.js +0 -74
  325. package/dist/theme/recipes/progress-circle.recipe.ts +0 -74
  326. package/dist/theme/recipes/radio-group.recipe.js +0 -69
  327. package/dist/theme/recipes/radio-group.recipe.ts +0 -73
  328. package/dist/theme/recipes/radiomark.recipe.js +0 -87
  329. package/dist/theme/recipes/radiomark.recipe.ts +0 -91
  330. package/dist/theme/recipes/rating-group.recipe.js +0 -84
  331. package/dist/theme/recipes/rating-group.recipe.ts +0 -93
  332. package/dist/theme/recipes/select.recipe.js +0 -275
  333. package/dist/theme/recipes/select.recipe.ts +0 -277
  334. package/dist/theme/recipes/skeleton.recipe.js +0 -54
  335. package/dist/theme/recipes/skeleton.recipe.ts +0 -55
  336. package/dist/theme/recipes/spinner.recipe.js +0 -33
  337. package/dist/theme/recipes/spinner.recipe.ts +0 -31
  338. package/dist/theme/recipes/stat.recipe.js +0 -101
  339. package/dist/theme/recipes/stat.recipe.ts +0 -101
  340. package/dist/theme/recipes/switch.recipe.js +0 -125
  341. package/dist/theme/recipes/switch.recipe.ts +0 -130
  342. package/dist/theme/recipes/table.recipe.js +0 -83
  343. package/dist/theme/recipes/table.recipe.ts +0 -84
  344. package/dist/theme/recipes/tabs.recipe.js +0 -216
  345. package/dist/theme/recipes/tabs.recipe.ts +0 -219
  346. package/dist/theme/recipes/tag.recipe.js +0 -157
  347. package/dist/theme/recipes/tag.recipe.ts +0 -158
  348. package/dist/theme/recipes/textarea.recipe.js +0 -86
  349. package/dist/theme/recipes/textarea.recipe.ts +0 -86
  350. package/dist/theme/recipes/toast.recipe.js +0 -98
  351. package/dist/theme/recipes/toast.recipe.ts +0 -97
  352. package/dist/theme/recipes/tooltip.recipe.js +0 -87
  353. package/dist/theme/recipes/tooltip.recipe.ts +0 -85
  354. package/dist/theme/theme.js +0 -40
  355. package/dist/theme/theme.ts +0 -41
  356. package/dist/theme/utils/entries.js +0 -11
  357. package/dist/theme/utils/entries.ts +0 -12
  358. package/dist/theme.d.ts +0 -2
  359. package/dist/theme.js +0 -4
  360. package/dist/types/client/adProviders.js +0 -12
  361. package/dist/types/client/contract.js +0 -13
  362. package/dist/types/client/gasTracker.js +0 -7
  363. package/dist/types/client/navigation.js +0 -4
  364. package/dist/types/client/rollup.js +0 -11
  365. package/dist/types/client/txInterpretation.js +0 -8
  366. package/dist/types/client/validators.js +0 -8
  367. package/dist/types/client/wallets.js +0 -8
  368. package/dist/types/homepage.js +0 -15
  369. package/dist/types/views/address.js +0 -14
  370. package/dist/types/views/block.js +0 -12
  371. package/dist/types/views/tx.js +0 -16
  372. package/dist/ui/shared/forms/validators/url.js +0 -12
  373. package/dist/utils/getComponentDisplayName.js +0 -7
  374. package/dist/utils/index.d.ts +0 -1
  375. package/dist/utils.d.ts +0 -2
  376. package/dist/utils.js +0 -4
@@ -1,16 +0,0 @@
1
- import t from "./app.js";
2
- import { getEnvValue as e, getExternalAssetFilePath as a } from "./utils.js";
3
- const _ = "/static/og_image.png", r = Object.freeze({
4
- promoteBlockscoutInTitle: e("NEXT_PUBLIC_PROMOTE_BLOCKSCOUT_IN_TITLE") !== "false",
5
- og: {
6
- description: e("NEXT_PUBLIC_OG_DESCRIPTION") || "",
7
- imageUrl: t.baseUrl + (a("NEXT_PUBLIC_OG_IMAGE_URL") || _),
8
- enhancedDataEnabled: e("NEXT_PUBLIC_OG_ENHANCED_DATA_ENABLED") === "true"
9
- },
10
- seo: {
11
- enhancedDataEnabled: e("NEXT_PUBLIC_SEO_ENHANCED_DATA_ENABLED") === "true"
12
- }
13
- });
14
- export {
15
- r as default
16
- };
@@ -1,9 +0,0 @@
1
- import { getEnvValue as e } from "./utils.js";
2
- const r = Object.freeze({
3
- reCaptchaV2: {
4
- siteKey: e("NEXT_PUBLIC_RE_CAPTCHA_APP_SITE_KEY")
5
- }
6
- });
7
- export {
8
- r as default
9
- };
@@ -1,36 +0,0 @@
1
- import { SMART_CONTRACT_EXTRA_VERIFICATION_METHODS as s, SMART_CONTRACT_LANGUAGE_FILTERS as o } from "../../../../types/client/contract.js";
2
- import { IDENTICON_TYPES as i, ADDRESS_FORMATS as I, ADDRESS_VIEWS_IDS as S } from "../../../../types/views/address.js";
3
- import { getEnvValue as t, parseEnvJson as _ } from "../../utils.js";
4
- const A = (() => {
5
- const e = t("NEXT_PUBLIC_VIEWS_ADDRESS_IDENTICON_TYPE");
6
- return i.find((r) => e === r) || "jazzicon";
7
- })(), T = (() => {
8
- const e = (_(t("NEXT_PUBLIC_VIEWS_ADDRESS_FORMAT")) || []).filter((r) => I.includes(r));
9
- return e.length === 0 ? ["base16"] : e;
10
- })(), a = (() => {
11
- const e = t("NEXT_PUBLIC_VIEWS_ADDRESS_BECH_32_PREFIX");
12
- if (!(!e || !T.includes("bech32")))
13
- return e.length >= 1 && e.length <= 83 ? e : void 0;
14
- })(), c = (() => {
15
- const e = _(t("NEXT_PUBLIC_VIEWS_ADDRESS_HIDDEN_VIEWS")) || [];
16
- return Array.isArray(e) ? S.reduce((n, E) => (n[E] = e.includes(E), n), {}) : void 0;
17
- })(), u = (() => {
18
- const e = t("NEXT_PUBLIC_VIEWS_CONTRACT_EXTRA_VERIFICATION_METHODS");
19
- return e === "none" ? [] : e ? (_(e) || []).filter((n) => s.includes(n)) : s;
20
- })(), l = (() => {
21
- const e = _(t("NEXT_PUBLIC_VIEWS_CONTRACT_LANGUAGE_FILTERS"));
22
- return e ? e.filter((r) => o.includes(r)) : o.filter((n) => n !== "scilla");
23
- })(), D = Object.freeze({
24
- identiconType: A,
25
- hashFormat: {
26
- availableFormats: T,
27
- bech32Prefix: a
28
- },
29
- hiddenViews: c,
30
- solidityscanEnabled: t("NEXT_PUBLIC_VIEWS_CONTRACT_SOLIDITYSCAN_ENABLED") === "true",
31
- extraVerificationMethods: u,
32
- languageFilters: l
33
- });
34
- export {
35
- D as default
36
- };
@@ -1,11 +0,0 @@
1
- import { BLOCK_FIELDS_IDS as o } from "../../../../types/views/block.js";
2
- import { parseEnvJson as s, getEnvValue as t } from "../../utils.js";
3
- const d = (() => {
4
- const e = s(t("NEXT_PUBLIC_VIEWS_BLOCK_HIDDEN_FIELDS")) || [];
5
- return Array.isArray(e) ? o.reduce((r, n) => (r[n] = e.includes(n), r), {}) : void 0;
6
- })(), a = Object.freeze({
7
- hiddenFields: d
8
- });
9
- export {
10
- a as default
11
- };
@@ -1,12 +0,0 @@
1
- import { default as o } from "./address.js";
2
- import { default as f } from "./block.js";
3
- import { default as d } from "./nft.js";
4
- import { default as l } from "./token.js";
5
- import { default as m } from "./tx.js";
6
- export {
7
- o as address,
8
- f as block,
9
- d as nft,
10
- l as token,
11
- m as tx
12
- };
@@ -1,10 +0,0 @@
1
- import { parseEnvJson as E, getEnvValue as e } from "../../utils.js";
2
- const t = Object.freeze({
3
- marketplaces: E(e("NEXT_PUBLIC_VIEWS_NFT_MARKETPLACES")) || [],
4
- verifiedFetch: {
5
- isEnabled: e("NEXT_PUBLIC_HELIA_VERIFIED_FETCH_ENABLED") !== "false"
6
- }
7
- });
8
- export {
9
- t as default
10
- };
@@ -1,7 +0,0 @@
1
- import { getEnvValue as e } from "../../utils.js";
2
- const t = Object.freeze({
3
- hideScamTokensEnabled: e("NEXT_PUBLIC_VIEWS_TOKEN_SCAM_TOGGLE_ENABLED") === "true"
4
- });
5
- export {
6
- t as default
7
- };
@@ -1,15 +0,0 @@
1
- import { TX_FIELDS_IDS as u, TX_ADDITIONAL_FIELDS_IDS as d } from "../../../../types/views/tx.js";
2
- import { parseEnvJson as s, getEnvValue as t } from "../../utils.js";
3
- const I = (() => {
4
- const r = s(t("NEXT_PUBLIC_VIEWS_TX_HIDDEN_FIELDS")) || [];
5
- return Array.isArray(r) ? u.reduce((e, n) => (e[n] = r.includes(n), e), {}) : void 0;
6
- })(), _ = (() => {
7
- const r = s(t("NEXT_PUBLIC_VIEWS_TX_ADDITIONAL_FIELDS")) || [];
8
- return Array.isArray(r) ? d.reduce((e, n) => (e[n] = r.includes(n), e), {}) : void 0;
9
- })(), c = Object.freeze({
10
- hiddenFields: I,
11
- additionalFields: _
12
- });
13
- export {
14
- c as default
15
- };
@@ -1,128 +0,0 @@
1
- import { NAVIGATION_LINK_IDS as T } from "../../types/client/navigation.js";
2
- import { HOME_STATS_WIDGET_IDS as a } from "../../types/homepage.js";
3
- import { COLOR_THEMES as m } from "../../lib/settings/colorTheme.js";
4
- import "./features/advancedFilter.js";
5
- import "./features/account.js";
6
- import "./features/addressVerification.js";
7
- import "./features/addressMetadata.js";
8
- import "./features/adsBanner.js";
9
- import "./features/adsText.js";
10
- import "./features/beaconChain.js";
11
- import "./features/bridgedTokens.js";
12
- import "./features/blockchainInteraction.js";
13
- import "./features/celo.js";
14
- import "./features/csvExport.js";
15
- import "./features/dataAvailability.js";
16
- import "./features/deFiDropdown.js";
17
- import "./features/easterEggBadge.js";
18
- import "./features/externalTxs.js";
19
- import "./features/faultProofSystem.js";
20
- import "./features/gasTracker.js";
21
- import "./features/getGasButton.js";
22
- import "./features/googleAnalytics.js";
23
- import "./features/graphqlApiDocs.js";
24
- import "./features/growthBook.js";
25
- import "./features/marketplace.js";
26
- import "./features/metasuites.js";
27
- import "./features/mixpanel.js";
28
- import "./features/mudFramework.js";
29
- import "./features/multichainButton.js";
30
- import "./features/nameService.js";
31
- import "./features/pools.js";
32
- import "./features/publicTagsSubmission.js";
33
- import "./features/restApiDocs.js";
34
- import "./features/rewards.js";
35
- import "./features/rollbar.js";
36
- import s from "./features/rollup.js";
37
- import "./features/safe.js";
38
- import "./features/saveOnGas.js";
39
- import "./features/sol2uml.js";
40
- import "./features/stats.js";
41
- import "./features/suave.js";
42
- import "./features/txInterpretation.js";
43
- import "./features/userOps.js";
44
- import "./features/addressProfileAPI.js";
45
- import "./features/validators.js";
46
- import "./features/verifiedTokens.js";
47
- import "./features/web3Wallet.js";
48
- import "./features/xStarScore.js";
49
- import * as N from "./ui/views/index.js";
50
- import { parseEnvJson as _, getEnvValue as t, getExternalAssetFilePath as o } from "./utils.js";
51
- const I = (() => {
52
- const r = _(t("NEXT_PUBLIC_NAVIGATION_HIDDEN_LINKS")) || [];
53
- return Array.isArray(r) ? T.reduce((i, E) => (i[E] = r.includes(E), i), {}) : void 0;
54
- })(), p = (() => {
55
- const r = _(t("NEXT_PUBLIC_HOMEPAGE_STATS"));
56
- if (!Array.isArray(r)) {
57
- const e = s;
58
- return e.isEnabled && ["zkEvm", "zkSync", "arbitrum"].includes(e.type) ? ["latest_batch", "average_block_time", "total_txs", "wallet_addresses", "gas_tracker"] : ["total_blocks", "average_block_time", "total_txs", "wallet_addresses", "gas_tracker"];
59
- }
60
- return r.filter((e) => a.includes(e));
61
- })(), n = (() => {
62
- const r = _(t("NEXT_PUBLIC_NAVIGATION_HIGHLIGHTED_ROUTES"));
63
- return Array.isArray(r) ? r : [];
64
- })(), A = (() => {
65
- const r = t("NEXT_PUBLIC_COLOR_THEME_DEFAULT");
66
- return m.find((e) => e.id === r);
67
- })(), Nt = Object.freeze({
68
- navigation: {
69
- logo: {
70
- default: o("NEXT_PUBLIC_NETWORK_LOGO"),
71
- dark: o("NEXT_PUBLIC_NETWORK_LOGO_DARK")
72
- },
73
- icon: {
74
- default: o("NEXT_PUBLIC_NETWORK_ICON"),
75
- dark: o("NEXT_PUBLIC_NETWORK_ICON_DARK")
76
- },
77
- hiddenLinks: I,
78
- highlightedRoutes: n,
79
- otherLinks: _(t("NEXT_PUBLIC_OTHER_LINKS")) || [],
80
- featuredNetworks: o("NEXT_PUBLIC_FEATURED_NETWORKS"),
81
- layout: t("NEXT_PUBLIC_NAVIGATION_LAYOUT") || "vertical"
82
- },
83
- footer: {
84
- links: o("NEXT_PUBLIC_FOOTER_LINKS"),
85
- frontendVersion: t("NEXT_PUBLIC_GIT_TAG"),
86
- frontendCommit: t("NEXT_PUBLIC_GIT_COMMIT_SHA")
87
- },
88
- homepage: {
89
- charts: _(t("NEXT_PUBLIC_HOMEPAGE_CHARTS")) || [],
90
- stats: p,
91
- heroBanner: _(t("NEXT_PUBLIC_HOMEPAGE_HERO_BANNER_CONFIG")),
92
- // !!! DEPRECATED !!!
93
- plate: {
94
- background: t("NEXT_PUBLIC_HOMEPAGE_PLATE_BACKGROUND"),
95
- textColor: t("NEXT_PUBLIC_HOMEPAGE_PLATE_TEXT_COLOR")
96
- }
97
- },
98
- views: N,
99
- indexingAlert: {
100
- blocks: {
101
- isHidden: t("NEXT_PUBLIC_HIDE_INDEXING_ALERT_BLOCKS") === "true"
102
- },
103
- intTxs: {
104
- isHidden: t("NEXT_PUBLIC_HIDE_INDEXING_ALERT_INT_TXS") === "true"
105
- }
106
- },
107
- maintenanceAlert: {
108
- message: t("NEXT_PUBLIC_MAINTENANCE_ALERT_MESSAGE")
109
- },
110
- explorers: {
111
- items: _(t("NEXT_PUBLIC_NETWORK_EXPLORERS")) || []
112
- },
113
- ides: {
114
- items: _(t("NEXT_PUBLIC_CONTRACT_CODE_IDES")) || []
115
- },
116
- hasContractAuditReports: t("NEXT_PUBLIC_HAS_CONTRACT_AUDIT_REPORTS") === "true",
117
- colorTheme: {
118
- default: A
119
- },
120
- fonts: {
121
- heading: _(t("NEXT_PUBLIC_FONT_FAMILY_HEADING")),
122
- body: _(t("NEXT_PUBLIC_FONT_FAMILY_BODY"))
123
- },
124
- maxContentWidth: t("NEXT_PUBLIC_MAX_CONTENT_WIDTH_ENABLED") !== "false"
125
- });
126
- export {
127
- Nt as default
128
- };
@@ -1,45 +0,0 @@
1
- import o from "../../lib/isBrowser.js";
2
- import { FILE_EXTENSION as s } from "../../lib/regexp.js";
3
- const c = (r) => r == null ? void 0 : r.replaceAll("'", '"'), a = (r) => {
4
- const t = (o() ? window.__envs : process.env) ?? {};
5
- if (o() && t.NEXT_PUBLIC_APP_INSTANCE === "pw") {
6
- const e = localStorage.getItem(r);
7
- if (typeof e == "string")
8
- return e;
9
- }
10
- return c(t[r]);
11
- }, i = (r) => {
12
- try {
13
- return JSON.parse(r || "null");
14
- } catch {
15
- return null;
16
- }
17
- }, f = (r) => {
18
- const t = a(r);
19
- if (t)
20
- return l(r, t);
21
- }, l = (r, t) => {
22
- try {
23
- const e = r.replace(/^NEXT_PUBLIC_/, "").replace(/_URL$/, "").toLowerCase(), n = p(t);
24
- if (!n)
25
- throw new Error("Cannot get file path");
26
- return `/assets/configs/${e}.${n}`;
27
- } catch {
28
- return;
29
- }
30
- };
31
- function p(r) {
32
- var t;
33
- try {
34
- return (t = new URL(r).pathname.match(s)) == null ? void 0 : t[1];
35
- } catch {
36
- return i(r) ? "json" : void 0;
37
- }
38
- }
39
- export {
40
- l as buildExternalAssetFilePath,
41
- a as getEnvValue,
42
- f as getExternalAssetFilePath,
43
- i as parseEnvJson,
44
- c as replaceQuotes
45
- };
@@ -1,27 +0,0 @@
1
- import { useCopyToClipboard as p } from "../node_modules/@uidotdev/usehooks/index.js";
2
- import e from "react";
3
- import { SECOND as m } from "../lib/consts.js";
4
- import d from "../lib/hooks/useIsMobile.js";
5
- import { useDisclosure as C } from "./useDisclosure.js";
6
- function M(u, r = m) {
7
- const s = e.useRef(null), t = e.useRef(null), [n, i] = e.useState(!1), c = d(), [, l] = p(), { open: f, onOpenChange: o } = C(), a = e.useCallback(() => {
8
- l(u), i(!0), c && o({ open: !0 }), t.current = window.setTimeout(() => {
9
- o({ open: !1 });
10
- }, r), s.current = window.setTimeout(() => {
11
- i(!1);
12
- }, r + 200);
13
- }, [u, l, r, o, c]);
14
- return e.useEffect(() => () => {
15
- t.current && window.clearTimeout(t.current), s.current && window.clearTimeout(s.current);
16
- }, []), e.useMemo(() => ({
17
- hasCopied: n,
18
- copy: a,
19
- disclosure: {
20
- open: f,
21
- onOpenChange: o
22
- }
23
- }), [n, a, f, o]);
24
- }
25
- export {
26
- M as default
27
- };
@@ -1,17 +0,0 @@
1
- import { useDisclosure as c } from "@chakra-ui/react";
2
- import r from "react";
3
- function a(l) {
4
- const { open: s, onOpen: e, onClose: o, onToggle: n } = c(l), u = r.useCallback(({ open: t }) => {
5
- t ? e() : o();
6
- }, [e, o]);
7
- return r.useMemo(() => ({
8
- open: s,
9
- onOpenChange: u,
10
- onClose: o,
11
- onOpen: e,
12
- onToggle: n
13
- }), [s, u, o, e, n]);
14
- }
15
- export {
16
- a as useDisclosure
17
- };
@@ -1,17 +0,0 @@
1
- import { useState as o, useEffect as d } from "react";
2
- import { debounce as s } from "../node_modules/es-toolkit/dist/function/debounce.js";
3
- function c(e = 100) {
4
- const [n, i] = o({ width: 0, height: 0 });
5
- return d(() => {
6
- i({ width: window.innerWidth, height: window.innerHeight });
7
- const r = s(() => {
8
- i({ width: window.innerWidth, height: window.innerHeight });
9
- }, e), t = new ResizeObserver(r);
10
- return t.observe(document.body), function() {
11
- t.unobserve(document.body);
12
- };
13
- }, [e]), n;
14
- }
15
- export {
16
- c as default
17
- };
package/dist/hooks.d.ts DELETED
@@ -1 +0,0 @@
1
- export {}
package/dist/hooks.js DELETED
@@ -1,8 +0,0 @@
1
- import { default as r } from "./hooks/useClipboard.js";
2
- import { useDisclosure as t } from "./hooks/useDisclosure.js";
3
- import { default as a } from "./hooks/useViewportSize.js";
4
- export {
5
- r as useClipboard,
6
- t as useDisclosure,
7
- a as useViewportSize
8
- };
@@ -1,4 +0,0 @@
1
- const l = "data:image/svg+xml,%3csvg%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M11.535%2011.293a1%201%200%200%200%200%201.414l3.536%203.536a1%201%200%201%201-1.414%201.414l-4.95-4.95a1%201%200%200%201%200-1.414l4.95-4.95a1%201%200%201%201%201.414%201.414l-3.536%203.536Z'%20fill='currentColor'/%3e%3c/svg%3e";
2
- export {
3
- l as default
4
- };
@@ -1,4 +0,0 @@
1
- const l = "data:image/svg+xml,%3csvg%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M13.758%2011c.89%200%201.337-1.077.707-1.707l-2.95-2.95a1%201%200%201%201%201.414-1.414l6.364%206.364a1%201%200%200%201%200%201.414l-6.364%206.364a1%201%200%201%201-1.414-1.414l2.95-2.95c.63-.63.184-1.707-.707-1.707H5a1%201%200%201%201%200-2h8.758Z'%20fill='currentColor'/%3e%3c/svg%3e";
2
- export {
3
- l as default
4
- };
@@ -1,4 +0,0 @@
1
- const l = "data:image/svg+xml,%3csvg%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3e%3cpath%20d='M9.293%2014.465a1%201%200%200%200%201.414%200l7.778-7.78A1%201%200%200%201%2019.899%208.1l-9.192%209.193a1%201%200%200%201-1.414%200l-4.95-4.95a1%201%200%200%201%201.414-1.414l3.536%203.536Z'%20fill='currentColor'/%3e%3c/svg%3e";
2
- export {
3
- l as default
4
- };
@@ -1,4 +0,0 @@
1
- const a = "data:image/svg+xml,%3csvg%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M9.44%208.035a.791.791%200%200%200%201.12%200l3.802-3.803a.791.791%200%200%201%201.119%200l.287.287a.79.79%200%200%201%200%201.119L11.965%209.44a.79.79%200%200%200%200%201.118l3.803%203.803a.791.791%200%200%201%200%201.119l-.287.287a.791.791%200%200%201-1.119%200l-3.803-3.803a.79.79%200%200%200-1.118%200l-3.803%203.803a.79.79%200%200%201-1.119%200l-.287-.287a.791.791%200%200%201%200-1.119l3.803-3.803a.791.791%200%200%200%200-1.118L4.232%205.638a.791.791%200%200%201%200-1.119l.287-.287a.791.791%200%200%201%201.119%200L9.44%208.035Z'%20fill='currentColor'/%3e%3c/svg%3e";
2
- export {
3
- a as default
4
- };
@@ -1,4 +0,0 @@
1
- const t = "data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M9.99984%2018.3334C5.39734%2018.3334%201.6665%2014.6026%201.6665%2010.0001C1.6665%205.39758%205.39734%201.66675%209.99984%201.66675C14.6023%201.66675%2018.3332%205.39758%2018.3332%2010.0001C18.3332%2014.6026%2014.6023%2018.3334%209.99984%2018.3334ZM9.1665%209.16675V14.1667H10.8332V9.16675H9.1665ZM9.1665%205.83342V7.50008H10.8332V5.83342H9.1665Z'%20fill='currentColor'/%3e%3c/svg%3e";
2
- export {
3
- t as default
4
- };
@@ -1,4 +0,0 @@
1
- const a = "data:image/svg+xml,%3csvg%20viewBox='0%200%2012%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M10.621%204.353%205.176%209.798a.69.69%200%201%201-.974-.974l5.444-5.446H5.108a.69.69%200%200%201%200-1.378H12v6.892a.69.69%200%201%201-1.379%200V4.353Z'%20fill='currentColor'/%3e%3c/svg%3e";
2
- export {
3
- a as default
4
- };
@@ -1,4 +0,0 @@
1
- const a = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2020%2020'%20fill='none'%3e%3cpath%20d='M15.713%2020a.724.724%200%200%201-.354-.09L10%2016.956%204.64%2019.91a.728.728%200%200%201-.796-.061.788.788%200%200%201-.256-.342.827.827%200%200%201-.045-.432l1.024-6.252L.229%208.394a.802.802%200%200%201-.207-.377.829.829%200%200%201%20.015-.435.795.795%200%200%201%20.232-.361.741.741%200%200%201%20.379-.179L6.64%206.13%209.321.442a.78.78%200%200%201%20.28-.323.731.731%200%200%201%20.798%200%20.78.78%200%200%201%20.28.323l2.68%205.688%205.993.912a.74.74%200%200%201%20.379.178.8.8%200%200%201%20.232.361.828.828%200%200%201-.192.813l-4.338%204.428%201.024%206.252a.83.83%200%200%201-.167.644.762.762%200%200%201-.26.208.728.728%200%200%201-.319.074h.002Z'%20fill='currentColor'/%3e%3c/svg%3e";
2
- export {
3
- a as default
4
- };
@@ -1,4 +0,0 @@
1
- const l = "data:image/svg+xml,%3csvg%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M15.711%2020a.724.724%200%200%201-.352-.09Zm.005%200a.73.73%200%200%200%20.314-.074.77.77%200%200%200%20.26-.208.806.806%200%200%200%20.167-.644l-1.024-6.252%204.338-4.428a.828.828%200%200%200%20.192-.813.796.796%200%200%200-.232-.36.74.74%200%200%200-.38-.179l-5.86-.892a.25.25%200%200%201-.19-.14L10.679.442A.78.78%200%200%200%2010.4.119a.732.732%200%200%200-.798%200%20.78.78%200%200%200-.28.323L6.699%206.01a.25.25%200%200%201-.188.14l-5.862.892a.741.741%200%200%200-.38.179.795.795%200%200%200-.231.36.829.829%200%200%200-.015.436.802.802%200%200%200%20.207.377l4.25%204.338a.25.25%200%200%201%20.068.215l-1.004%206.127a.827.827%200%200%200%20.045.432.788.788%200%200%200%20.256.342.728.728%200%200%200%20.796.061l5.24-2.886a.25.25%200%200%201%20.24%200l5.24%202.886m-9.354-3.497a.25.25%200%200%200%20.367.26L9.88%2014.74a.25.25%200%200%201%20.24%200l3.507%201.932a.25.25%200%200%200%20.367-.26l-.678-4.141a.25.25%200%200%201%20.068-.216l2.982-3.043a.25.25%200%200%200-.14-.423l-4.09-.622a.25.25%200%200%201-.189-.14l-1.72-3.653a.25.25%200%200%200-.453%200L8.053%207.826a.25.25%200%200%201-.189.141l-4.09.622a.25.25%200%200%200-.14.423l2.982%203.043a.25.25%200%200%201%20.068.216l-.678%204.14ZM15.716%2020h-.003Z'%20fill='currentColor'/%3e%3c/svg%3e";
2
- export {
3
- l as default
4
- };
@@ -1,10 +0,0 @@
1
- import { BigNumber as e } from "../node_modules/bignumber.js/bignumber.js";
2
- const n = new e(10 ** 18), o = new e(10 ** 9);
3
- n.dividedBy(o);
4
- new e(0);
5
- const i = 1e3;
6
- export {
7
- o as GWEI,
8
- i as SECOND,
9
- n as WEI
10
- };
@@ -1,8 +0,0 @@
1
- import r from "react";
2
- function u() {
3
- const t = r.useRef(!0);
4
- return t.current ? (t.current = !1, !0) : t.current;
5
- }
6
- export {
7
- u as useFirstMountState
8
- };
@@ -1,7 +0,0 @@
1
- import { useBreakpointValue as r } from "@chakra-ui/react";
2
- function u(e = !0) {
3
- return r({ base: !0, lg: !1 }, { ssr: e });
4
- }
5
- export {
6
- u as default
7
- };
@@ -1,12 +0,0 @@
1
- import o from "react";
2
- import { useFirstMountState as r } from "./useFirstMountState.js";
3
- const a = (t, e) => {
4
- const f = r();
5
- o.useEffect(() => {
6
- if (!f)
7
- return t();
8
- }, e);
9
- };
10
- export {
11
- a as default
12
- };
@@ -1,5 +0,0 @@
1
- const o = " ", r = " ";
2
- export {
3
- o as nbsp,
4
- r as space
5
- };
@@ -1,6 +0,0 @@
1
- function e() {
2
- return typeof window < "u";
3
- }
4
- export {
5
- e as default
6
- };
@@ -1,4 +0,0 @@
1
- const E = /\.([\da-z]+)$/i;
2
- export {
3
- E as FILE_EXTENSION
4
- };
@@ -1,33 +0,0 @@
1
- const e = [
2
- {
3
- id: "light",
4
- label: "Light",
5
- colorMode: "light",
6
- hex: "#FFFFFF",
7
- sampleBg: "linear-gradient(154deg, #EFEFEF 50%, rgba(255, 255, 255, 0.00) 330.86%)"
8
- },
9
- {
10
- id: "dim",
11
- label: "Dim",
12
- colorMode: "dark",
13
- hex: "#232B37",
14
- sampleBg: "linear-gradient(152deg, #232B37 50%, rgba(255, 255, 255, 0.00) 290.71%)"
15
- },
16
- {
17
- id: "midnight",
18
- label: "Midnight",
19
- colorMode: "dark",
20
- hex: "#1B2E48",
21
- sampleBg: "linear-gradient(148deg, #1B3F71 50%, rgba(255, 255, 255, 0.00) 312.35%)"
22
- },
23
- {
24
- id: "dark",
25
- label: "Dark",
26
- colorMode: "dark",
27
- hex: "#101112",
28
- sampleBg: "linear-gradient(161deg, #000 9.37%, #383838 92.52%)"
29
- }
30
- ];
31
- export {
32
- e as COLOR_THEMES
33
- };
@@ -1,4 +0,0 @@
1
- const a = (l) => l[l.length - 1] === "/" ? l.slice(0, -1) : l;
2
- export {
3
- a as default
4
- };
@@ -1,51 +0,0 @@
1
- import * as n from "react";
2
- function d(o) {
3
- const e = n.useRef(null), r = n.useRef(o);
4
- return n.useLayoutEffect(() => {
5
- r.current = o;
6
- }), n.useEffect(() => {
7
- const t = (c) => {
8
- const u = e.current;
9
- u && !u.contains(c.target) && r.current(c);
10
- };
11
- return document.addEventListener("mousedown", t), document.addEventListener("touchstart", t), () => {
12
- document.removeEventListener("mousedown", t), document.removeEventListener("touchstart", t);
13
- };
14
- }, []), e;
15
- }
16
- function s(o) {
17
- const e = document.createElement("textarea");
18
- e.value = o, document.body.appendChild(e), e.select(), document.execCommand("copy"), document.body.removeChild(e);
19
- }
20
- function i() {
21
- const [o, e] = n.useState(null), r = n.useCallback((t) => {
22
- (async () => {
23
- var u;
24
- try {
25
- if ((u = navigator == null ? void 0 : navigator.clipboard) != null && u.writeText)
26
- await navigator.clipboard.writeText(t), e(t);
27
- else
28
- throw new Error("writeText not supported");
29
- } catch {
30
- s(t), e(t);
31
- }
32
- })();
33
- }, []);
34
- return [o, r];
35
- }
36
- function m(o, e) {
37
- const [r, t] = n.useState(o);
38
- return n.useEffect(() => {
39
- const c = setTimeout(() => {
40
- t(o);
41
- }, e);
42
- return () => {
43
- clearTimeout(c);
44
- };
45
- }, [o, e]), r;
46
- }
47
- export {
48
- d as useClickAway,
49
- i as useCopyToClipboard,
50
- m as useDebounce
51
- };