@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,192 +0,0 @@
1
- import C from "react";
2
- import "react-dom";
3
- import { __require as R } from "./utils.js";
4
- import { __require as A } from "./scroll-spy.js";
5
- import { __require as U } from "./scroller.js";
6
- import { __require as N } from "../../../prop-types/index.js";
7
- import { __require as L } from "./scroll-hash.js";
8
- var b, B;
9
- function K() {
10
- if (B) return b;
11
- B = 1;
12
- var g = Object.assign || function(a) {
13
- for (var t = 1; t < arguments.length; t++) {
14
- var l = arguments[t];
15
- for (var o in l)
16
- Object.prototype.hasOwnProperty.call(l, o) && (a[o] = l[o]);
17
- }
18
- return a;
19
- }, k = /* @__PURE__ */ function() {
20
- function a(t, l) {
21
- for (var o = 0; o < l.length; o++) {
22
- var i = l[o];
23
- i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(t, i.key, i);
24
- }
25
- }
26
- return function(t, l, o) {
27
- return l && a(t.prototype, l), o && a(t, o), t;
28
- };
29
- }();
30
- function H(a, t) {
31
- if (!(a instanceof t))
32
- throw new TypeError("Cannot call a class as a function");
33
- }
34
- function O(a, t) {
35
- if (!a)
36
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
37
- return t && (typeof t == "object" || typeof t == "function") ? t : a;
38
- }
39
- function T(a, t) {
40
- if (typeof t != "function" && t !== null)
41
- throw new TypeError("Super expression must either be null or a function, not " + typeof t);
42
- a.prototype = Object.create(t && t.prototype, { constructor: { value: a, enumerable: !1, writable: !0, configurable: !0 } }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(a, t) : a.__proto__ = t);
43
- }
44
- var v = C;
45
- R();
46
- var h = A(), S = U(), n = /* @__PURE__ */ N(), u = L(), w = {
47
- to: n.string.isRequired,
48
- containerId: n.string,
49
- container: n.object,
50
- activeClass: n.string,
51
- spy: n.bool,
52
- smooth: n.oneOfType([n.bool, n.string]),
53
- offset: n.number,
54
- delay: n.number,
55
- isDynamic: n.bool,
56
- onClick: n.func,
57
- duration: n.oneOfType([n.number, n.func]),
58
- absolute: n.bool,
59
- onSetActive: n.func,
60
- onSetInactive: n.func,
61
- ignoreCancelEvents: n.bool,
62
- hashSpy: n.bool,
63
- spyThrottle: n.number
64
- }, I = {
65
- Scroll: function(t, l) {
66
- console.warn("Helpers.Scroll is deprecated since v1.7.0");
67
- var o = l || S, i = function(c) {
68
- T(e, c);
69
- function e(p) {
70
- H(this, e);
71
- var r = O(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, p));
72
- return f.call(r), r.state = {
73
- active: !1
74
- }, r;
75
- }
76
- return k(e, [{
77
- key: "getScrollSpyContainer",
78
- value: function() {
79
- var r = this.props.containerId, s = this.props.container;
80
- return r ? document.getElementById(r) : s && s.nodeType ? s : document;
81
- }
82
- }, {
83
- key: "componentDidMount",
84
- value: function() {
85
- if (this.props.spy || this.props.hashSpy) {
86
- var r = this.getScrollSpyContainer();
87
- h.isMounted(r) || h.mount(r, this.props.spyThrottle), this.props.hashSpy && (u.isMounted() || u.mount(o), u.mapContainer(this.props.to, r)), this.props.spy && h.addStateHandler(this.stateHandler), h.addSpyHandler(this.spyHandler, r), this.setState({
88
- container: r
89
- });
90
- }
91
- }
92
- }, {
93
- key: "componentWillUnmount",
94
- value: function() {
95
- h.unmount(this.stateHandler, this.spyHandler);
96
- }
97
- }, {
98
- key: "render",
99
- value: function() {
100
- var r = "";
101
- this.state && this.state.active ? r = ((this.props.className || "") + " " + (this.props.activeClass || "active")).trim() : r = this.props.className;
102
- var s = g({}, this.props);
103
- for (var m in w)
104
- s.hasOwnProperty(m) && delete s[m];
105
- return s.className = r, s.onClick = this.handleClick, v.createElement(t, s);
106
- }
107
- }]), e;
108
- }(v.Component), f = function() {
109
- var e = this;
110
- this.scrollTo = function(p, r) {
111
- o.scrollTo(p, g({}, e.state, r));
112
- }, this.handleClick = function(p) {
113
- e.props.onClick && e.props.onClick(p), p.stopPropagation && p.stopPropagation(), p.preventDefault && p.preventDefault(), e.scrollTo(e.props.to, e.props);
114
- }, this.stateHandler = function() {
115
- o.getActiveLink() !== e.props.to && (e.state !== null && e.state.active && e.props.onSetInactive && e.props.onSetInactive(), e.setState({ active: !1 }));
116
- }, this.spyHandler = function(p) {
117
- var r = e.getScrollSpyContainer();
118
- if (!(u.isMounted() && !u.isInitialized())) {
119
- var s = e.props.to, m = null, d = 0, _ = 0, E = 0;
120
- if (r.getBoundingClientRect) {
121
- var M = r.getBoundingClientRect();
122
- E = M.top;
123
- }
124
- if (!m || e.props.isDynamic) {
125
- if (m = o.get(s), !m)
126
- return;
127
- var q = m.getBoundingClientRect();
128
- d = q.top - E + p, _ = d + q.height;
129
- }
130
- var y = p - e.props.offset, j = y >= Math.floor(d) && y < Math.floor(_), D = y < Math.floor(d) || y >= Math.floor(_), P = o.getActiveLink();
131
- if (D)
132
- return s === P && o.setActiveLink(void 0), e.props.hashSpy && u.getHash() === s && u.changeHash(), e.props.spy && e.state.active && (e.setState({ active: !1 }), e.props.onSetInactive && e.props.onSetInactive()), h.updateStates();
133
- if (j && P !== s)
134
- return o.setActiveLink(s), e.props.hashSpy && u.changeHash(s), e.props.spy && (e.setState({ active: !0 }), e.props.onSetActive && e.props.onSetActive(s)), h.updateStates();
135
- }
136
- };
137
- };
138
- return i.propTypes = w, i.defaultProps = { offset: 0 }, i;
139
- },
140
- Element: function(t) {
141
- console.warn("Helpers.Element is deprecated since v1.7.0");
142
- var l = function(o) {
143
- T(i, o);
144
- function i(f) {
145
- H(this, i);
146
- var c = O(this, (i.__proto__ || Object.getPrototypeOf(i)).call(this, f));
147
- return c.childBindings = {
148
- domNode: null
149
- }, c;
150
- }
151
- return k(i, [{
152
- key: "componentDidMount",
153
- value: function() {
154
- if (typeof window > "u")
155
- return !1;
156
- this.registerElems(this.props.name);
157
- }
158
- }, {
159
- key: "componentDidUpdate",
160
- value: function(c) {
161
- this.props.name !== c.name && this.registerElems(this.props.name);
162
- }
163
- }, {
164
- key: "componentWillUnmount",
165
- value: function() {
166
- if (typeof window > "u")
167
- return !1;
168
- S.unregister(this.props.name);
169
- }
170
- }, {
171
- key: "registerElems",
172
- value: function(c) {
173
- S.register(c, this.childBindings.domNode);
174
- }
175
- }, {
176
- key: "render",
177
- value: function() {
178
- return v.createElement(t, g({}, this.props, { parentBindings: this.childBindings }));
179
- }
180
- }]), i;
181
- }(v.Component);
182
- return l.propTypes = {
183
- name: n.string,
184
- id: n.string
185
- }, l;
186
- }
187
- };
188
- return b = I, b;
189
- }
190
- export {
191
- K as __require
192
- };
@@ -1,132 +0,0 @@
1
- import { __exports as c } from "../../../../_virtual/animate-scroll.js";
2
- import { __require as X } from "./utils.js";
3
- import { __require as B } from "./smooth.js";
4
- import { __require as D } from "./cancel-events.js";
5
- import { __require as L } from "./scroll-events.js";
6
- var P;
7
- function U() {
8
- if (P) return c;
9
- P = 1, Object.defineProperty(c, "__esModule", {
10
- value: !0
11
- });
12
- var E = Object.assign || function(a) {
13
- for (var t = 1; t < arguments.length; t++) {
14
- var e = arguments[t];
15
- for (var n in e)
16
- Object.prototype.hasOwnProperty.call(e, n) && (a[n] = e[n]);
17
- }
18
- return a;
19
- }, _ = X();
20
- i(_);
21
- var y = B(), s = i(y), b = D(), q = i(b), S = L(), l = i(S);
22
- function i(a) {
23
- return a && a.__esModule ? a : { default: a };
24
- }
25
- var g = function(t) {
26
- return s.default[t.smooth] || s.default.defaultEasing;
27
- }, W = function(t) {
28
- return typeof t == "function" ? t : function() {
29
- return t;
30
- };
31
- }, C = function() {
32
- if (typeof window < "u")
33
- return window.requestAnimationFrame || window.webkitRequestAnimationFrame;
34
- }, u = function() {
35
- return C() || function(a, t, e) {
36
- window.setTimeout(a, e || 1e3 / 60, (/* @__PURE__ */ new Date()).getTime());
37
- };
38
- }(), v = function() {
39
- return {
40
- currentPosition: 0,
41
- startPosition: 0,
42
- targetPosition: 0,
43
- progress: 0,
44
- duration: 0,
45
- cancel: !1,
46
- target: null,
47
- containerElement: null,
48
- to: null,
49
- start: null,
50
- delta: null,
51
- percent: null,
52
- delayTimeout: null
53
- };
54
- }, w = function(t) {
55
- var e = t.data.containerElement;
56
- if (e && e !== document && e !== document.body)
57
- return e.scrollLeft;
58
- var n = window.pageXOffset !== void 0, r = (document.compatMode || "") === "CSS1Compat";
59
- return n ? window.pageXOffset : r ? document.documentElement.scrollLeft : document.body.scrollLeft;
60
- }, T = function(t) {
61
- var e = t.data.containerElement;
62
- if (e && e !== document && e !== document.body)
63
- return e.scrollTop;
64
- var n = window.pageXOffset !== void 0, r = (document.compatMode || "") === "CSS1Compat";
65
- return n ? window.pageYOffset : r ? document.documentElement.scrollTop : document.body.scrollTop;
66
- }, M = function(t) {
67
- var e = t.data.containerElement;
68
- if (e && e !== document && e !== document.body)
69
- return e.scrollWidth - e.offsetWidth;
70
- var n = document.body, r = document.documentElement;
71
- return Math.max(n.scrollWidth, n.offsetWidth, r.clientWidth, r.scrollWidth, r.offsetWidth);
72
- }, H = function(t) {
73
- var e = t.data.containerElement;
74
- if (e && e !== document && e !== document.body)
75
- return e.scrollHeight - e.offsetHeight;
76
- var n = document.body, r = document.documentElement;
77
- return Math.max(n.scrollHeight, n.offsetHeight, r.clientHeight, r.scrollHeight, r.offsetHeight);
78
- }, A = function a(t, e, n) {
79
- var r = e.data;
80
- if (!e.ignoreCancelEvents && r.cancel) {
81
- l.default.registered.end && l.default.registered.end(r.to, r.target, r.currentPositionY);
82
- return;
83
- }
84
- if (r.delta = Math.round(r.targetPosition - r.startPosition), r.start === null && (r.start = n), r.progress = n - r.start, r.percent = r.progress >= r.duration ? 1 : t(r.progress / r.duration), r.currentPosition = r.startPosition + Math.ceil(r.delta * r.percent), r.containerElement && r.containerElement !== document && r.containerElement !== document.body ? e.horizontal ? r.containerElement.scrollLeft = r.currentPosition : r.containerElement.scrollTop = r.currentPosition : e.horizontal ? window.scrollTo(r.currentPosition, 0) : window.scrollTo(0, r.currentPosition), r.percent < 1) {
85
- var m = a.bind(null, t, e);
86
- u.call(window, m);
87
- return;
88
- }
89
- l.default.registered.end && l.default.registered.end(r.to, r.target, r.currentPosition);
90
- }, f = function(t) {
91
- t.data.containerElement = t ? t.containerId ? document.getElementById(t.containerId) : t.container && t.container.nodeType ? t.container : document : null;
92
- }, o = function(t, e, n, r) {
93
- if (e.data = e.data || v(), window.clearTimeout(e.data.delayTimeout), q.default.subscribe(function() {
94
- e.data.cancel = !0;
95
- }), f(e), e.data.start = null, e.data.cancel = !1, e.data.startPosition = e.horizontal ? w(e) : T(e), e.data.targetPosition = e.absolute ? t : t + e.data.startPosition, e.data.startPosition === e.data.targetPosition) {
96
- l.default.registered.end && l.default.registered.end(e.data.to, e.data.target, e.data.currentPosition);
97
- return;
98
- }
99
- e.data.delta = Math.round(e.data.targetPosition - e.data.startPosition), e.data.duration = W(e.duration)(e.data.delta), e.data.duration = isNaN(parseFloat(e.data.duration)) ? 1e3 : parseFloat(e.data.duration), e.data.to = n, e.data.target = r;
100
- var m = g(e), h = A.bind(null, m, e);
101
- if (e && e.delay > 0) {
102
- e.data.delayTimeout = window.setTimeout(function() {
103
- l.default.registered.begin && l.default.registered.begin(e.data.to, e.data.target), u.call(window, h);
104
- }, e.delay);
105
- return;
106
- }
107
- l.default.registered.begin && l.default.registered.begin(e.data.to, e.data.target), u.call(window, h);
108
- }, d = function(t) {
109
- return t = E({}, t), t.data = t.data || v(), t.absolute = !0, t;
110
- }, O = function(t) {
111
- o(0, d(t));
112
- }, x = function(t, e) {
113
- o(t, d(e));
114
- }, z = function(t) {
115
- t = d(t), f(t), o(t.horizontal ? M(t) : H(t), t);
116
- }, F = function(t, e) {
117
- e = d(e), f(e);
118
- var n = e.horizontal ? w(e) : T(e);
119
- o(t + n, e);
120
- };
121
- return c.default = {
122
- animateTopScroll: o,
123
- getAnimationType: g,
124
- scrollToTop: O,
125
- scrollToBottom: z,
126
- scrollTo: x,
127
- scrollMore: F
128
- }, c;
129
- }
130
- export {
131
- U as __require
132
- };
@@ -1,20 +0,0 @@
1
- import { __exports as e } from "../../../../_virtual/cancel-events.js";
2
- import { __require as i } from "./passive-event-listeners.js";
3
- var r;
4
- function c() {
5
- if (r) return e;
6
- r = 1, Object.defineProperty(e, "__esModule", {
7
- value: !0
8
- });
9
- var n = i(), t = ["mousedown", "mousewheel", "touchmove", "keydown"];
10
- return e.default = {
11
- subscribe: function(s) {
12
- return typeof document < "u" && t.forEach(function(u) {
13
- return (0, n.addPassiveEventListener)(document, u, s);
14
- });
15
- }
16
- }, e;
17
- }
18
- export {
19
- c as __require
20
- };
@@ -1,27 +0,0 @@
1
- import { __exports as e } from "../../../../_virtual/passive-event-listeners.js";
2
- var i;
3
- function d() {
4
- return i ? e : (i = 1, Object.defineProperty(e, "__esModule", {
5
- value: !0
6
- }), e.addPassiveEventListener = function(t, s, r) {
7
- var a = function() {
8
- var n = !1;
9
- try {
10
- var o = Object.defineProperty({}, "passive", {
11
- get: function() {
12
- n = !0;
13
- }
14
- });
15
- window.addEventListener("test", null, o);
16
- } catch {
17
- }
18
- return n;
19
- }();
20
- t.addEventListener(s, r, a ? { passive: !0 } : !1);
21
- }, e.removePassiveEventListener = function(t, s, r) {
22
- t.removeEventListener(s, r);
23
- }, e);
24
- }
25
- export {
26
- d as __require
27
- };
@@ -1,98 +0,0 @@
1
- import { __exports as a } from "../../../../_virtual/scroll-element.js";
2
- import w from "react";
3
- import E from "react-dom";
4
- import { __require as O } from "./scroller.js";
5
- import { __require as q } from "../../../prop-types/index.js";
6
- var p;
7
- function R() {
8
- if (p) return a;
9
- p = 1, Object.defineProperty(a, "__esModule", {
10
- value: !0
11
- });
12
- var m = Object.assign || function(t) {
13
- for (var e = 1; e < arguments.length; e++) {
14
- var o = arguments[e];
15
- for (var n in o)
16
- Object.prototype.hasOwnProperty.call(o, n) && (t[n] = o[n]);
17
- }
18
- return t;
19
- }, d = /* @__PURE__ */ function() {
20
- function t(e, o) {
21
- for (var n = 0; n < o.length; n++) {
22
- var r = o[n];
23
- r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r);
24
- }
25
- }
26
- return function(e, o, n) {
27
- return o && t(e.prototype, o), n && t(e, n), e;
28
- };
29
- }(), s = w, f = u(s), _ = E;
30
- u(_);
31
- var h = O(), l = u(h), y = /* @__PURE__ */ q(), c = u(y);
32
- function u(t) {
33
- return t && t.__esModule ? t : { default: t };
34
- }
35
- function v(t, e) {
36
- if (!(t instanceof e))
37
- throw new TypeError("Cannot call a class as a function");
38
- }
39
- function g(t, e) {
40
- if (!t)
41
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
42
- return e && (typeof e == "object" || typeof e == "function") ? e : t;
43
- }
44
- function b(t, e) {
45
- if (typeof e != "function" && e !== null)
46
- throw new TypeError("Super expression must either be null or a function, not " + typeof e);
47
- t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e);
48
- }
49
- return a.default = function(t) {
50
- var e = function(o) {
51
- b(n, o);
52
- function n(r) {
53
- v(this, n);
54
- var i = g(this, (n.__proto__ || Object.getPrototypeOf(n)).call(this, r));
55
- return i.childBindings = {
56
- domNode: null
57
- }, i;
58
- }
59
- return d(n, [{
60
- key: "componentDidMount",
61
- value: function() {
62
- if (typeof window > "u")
63
- return !1;
64
- this.registerElems(this.props.name);
65
- }
66
- }, {
67
- key: "componentDidUpdate",
68
- value: function(i) {
69
- this.props.name !== i.name && this.registerElems(this.props.name);
70
- }
71
- }, {
72
- key: "componentWillUnmount",
73
- value: function() {
74
- if (typeof window > "u")
75
- return !1;
76
- l.default.unregister(this.props.name);
77
- }
78
- }, {
79
- key: "registerElems",
80
- value: function(i) {
81
- l.default.register(i, this.childBindings.domNode);
82
- }
83
- }, {
84
- key: "render",
85
- value: function() {
86
- return f.default.createElement(t, m({}, this.props, { parentBindings: this.childBindings }));
87
- }
88
- }]), n;
89
- }(f.default.Component);
90
- return e.propTypes = {
91
- name: c.default.string,
92
- id: c.default.string
93
- }, e;
94
- }, a;
95
- }
96
- export {
97
- R as __require
98
- };
@@ -1,23 +0,0 @@
1
- import { __exports as e } from "../../../../_virtual/scroll-events.js";
2
- var s;
3
- function l() {
4
- if (s) return e;
5
- s = 1, Object.defineProperty(e, "__esModule", {
6
- value: !0
7
- });
8
- var r = {
9
- registered: {},
10
- scrollEvent: {
11
- register: function(t, o) {
12
- r.registered[t] = o;
13
- },
14
- remove: function(t) {
15
- r.registered[t] = null;
16
- }
17
- }
18
- };
19
- return e.default = r, e;
20
- }
21
- export {
22
- l as __require
23
- };
@@ -1,61 +0,0 @@
1
- import { __exports as n } from "../../../../_virtual/scroll-hash.js";
2
- import { __require as d } from "./passive-event-listeners.js";
3
- import { __require as f } from "./utils.js";
4
- var r;
5
- function v() {
6
- if (r) return n;
7
- r = 1, Object.defineProperty(n, "__esModule", {
8
- value: !0
9
- }), d();
10
- var h = f(), a = l(h);
11
- function l(e) {
12
- return e && e.__esModule ? e : { default: e };
13
- }
14
- var o = {
15
- mountFlag: !1,
16
- initialized: !1,
17
- scroller: null,
18
- containers: {},
19
- mount: function(t) {
20
- this.scroller = t, this.handleHashChange = this.handleHashChange.bind(this), window.addEventListener("hashchange", this.handleHashChange), this.initStateFromHash(), this.mountFlag = !0;
21
- },
22
- mapContainer: function(t, i) {
23
- this.containers[t] = i;
24
- },
25
- isMounted: function() {
26
- return this.mountFlag;
27
- },
28
- isInitialized: function() {
29
- return this.initialized;
30
- },
31
- initStateFromHash: function() {
32
- var t = this, i = this.getHash();
33
- i ? window.setTimeout(function() {
34
- t.scrollTo(i, !0), t.initialized = !0;
35
- }, 10) : this.initialized = !0;
36
- },
37
- scrollTo: function(t, i) {
38
- var s = this.scroller, u = s.get(t);
39
- if (u && (i || t !== s.getActiveLink())) {
40
- var c = this.containers[t] || document;
41
- s.scrollTo(t, { container: c });
42
- }
43
- },
44
- getHash: function() {
45
- return a.default.getHash();
46
- },
47
- changeHash: function(t, i) {
48
- this.isInitialized() && a.default.getHash() !== t && a.default.updateHash(t, i);
49
- },
50
- handleHashChange: function() {
51
- this.scrollTo(this.getHash());
52
- },
53
- unmount: function() {
54
- this.scroller = null, this.containers = null, window.removeEventListener("hashchange", this.handleHashChange);
55
- }
56
- };
57
- return n.default = o, n;
58
- }
59
- export {
60
- v as __require
61
- };