@blockscout/ui-toolkit 0.0.1-alpha.0 → 0.0.1-alpha.2

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 (367) hide show
  1. package/README.md +8 -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/index.d.ts +2 -0
  6. package/dist/index.js +9284 -0
  7. package/dist/package/src/index.d.ts +7 -11
  8. package/dist/theme/foundations/semanticTokens.ts +1 -5
  9. package/dist/theme/recipes/alert.recipe.d.ts +6 -46
  10. package/dist/theme/recipes/alert.recipe.ts +45 -48
  11. package/dist/theme/recipes/badge.recipe.d.ts +11 -44
  12. package/dist/theme/recipes/badge.recipe.ts +11 -45
  13. package/dist/theme/recipes/button.recipe.d.ts +17 -20
  14. package/dist/theme/recipes/button.recipe.ts +42 -27
  15. package/dist/theme/recipes/close-button.recipe.d.ts +0 -3
  16. package/dist/theme/recipes/close-button.recipe.ts +0 -3
  17. package/dist/theme/recipes/dialog.recipe.d.ts +1 -1
  18. package/dist/theme/recipes/drawer.recipe.d.ts +1 -1
  19. package/dist/theme/recipes/index.d.ts +47 -147
  20. package/dist/theme/recipes/link.recipe.d.ts +1 -9
  21. package/dist/theme/recipes/link.recipe.ts +1 -9
  22. package/dist/theme/recipes/list.recipe.d.ts +1 -1
  23. package/dist/theme/recipes/menu.recipe.d.ts +1 -1
  24. package/dist/theme/recipes/popover.recipe.ts +4 -3
  25. package/dist/theme/recipes/select.recipe.d.ts +1 -1
  26. package/dist/theme/recipes/skeleton.recipe.d.ts +5 -6
  27. package/dist/theme/recipes/skeleton.recipe.ts +10 -9
  28. package/dist/theme/recipes/table.recipe.d.ts +1 -1
  29. package/dist/theme/recipes/tag.recipe.d.ts +0 -12
  30. package/dist/theme/recipes/tag.recipe.ts +0 -13
  31. package/dist/theme/recipes/toast.recipe.d.ts +1 -1
  32. package/package.json +14 -26
  33. package/dist/_virtual/Button.js +0 -4
  34. package/dist/_virtual/Element.js +0 -4
  35. package/dist/_virtual/Link2.js +0 -4
  36. package/dist/_virtual/_commonjsHelpers.js +0 -8
  37. package/dist/_virtual/_interop_require_default.js +0 -4
  38. package/dist/_virtual/_interop_require_wildcard.js +0 -4
  39. package/dist/_virtual/add-base-path.js +0 -4
  40. package/dist/_virtual/add-locale.js +0 -4
  41. package/dist/_virtual/add-locale2.js +0 -4
  42. package/dist/_virtual/add-path-prefix.js +0 -4
  43. package/dist/_virtual/animate-scroll.js +0 -4
  44. package/dist/_virtual/app-paths.js +0 -4
  45. package/dist/_virtual/cancel-events.js +0 -4
  46. package/dist/_virtual/constants.js +0 -4
  47. package/dist/_virtual/detect-domain-locale.js +0 -4
  48. package/dist/_virtual/detect-domain-locale2.js +0 -4
  49. package/dist/_virtual/ensure-leading-slash.js +0 -4
  50. package/dist/_virtual/escape-regexp.js +0 -4
  51. package/dist/_virtual/format-url.js +0 -4
  52. package/dist/_virtual/get-domain-locale.js +0 -4
  53. package/dist/_virtual/has-base-path.js +0 -4
  54. package/dist/_virtual/index.js +0 -5
  55. package/dist/_virtual/index2.js +0 -4
  56. package/dist/_virtual/index3.js +0 -4
  57. package/dist/_virtual/index4.js +0 -4
  58. package/dist/_virtual/index5.js +0 -4
  59. package/dist/_virtual/interception-routes.js +0 -4
  60. package/dist/_virtual/interpolate-as.js +0 -4
  61. package/dist/_virtual/is-dynamic.js +0 -4
  62. package/dist/_virtual/is-local-url.js +0 -4
  63. package/dist/_virtual/jsx-runtime.js +0 -5
  64. package/dist/_virtual/jsx-runtime2.js +0 -4
  65. package/dist/_virtual/link.js +0 -7
  66. package/dist/_virtual/link3.js +0 -4
  67. package/dist/_virtual/normalize-locale-path.js +0 -4
  68. package/dist/_virtual/normalize-locale-path2.js +0 -4
  69. package/dist/_virtual/normalize-trailing-slash.js +0 -4
  70. package/dist/_virtual/omit.js +0 -4
  71. package/dist/_virtual/parse-path.js +0 -4
  72. package/dist/_virtual/passive-event-listeners.js +0 -4
  73. package/dist/_virtual/path-has-prefix.js +0 -4
  74. package/dist/_virtual/querystring.js +0 -4
  75. package/dist/_virtual/react-is.development.js +0 -4
  76. package/dist/_virtual/react-is.production.min.js +0 -4
  77. package/dist/_virtual/react-jsx-runtime.development.js +0 -4
  78. package/dist/_virtual/react-jsx-runtime.production.min.js +0 -4
  79. package/dist/_virtual/remove-trailing-slash.js +0 -4
  80. package/dist/_virtual/request-idle-callback.js +0 -4
  81. package/dist/_virtual/resolve-href.js +0 -4
  82. package/dist/_virtual/route-matcher.js +0 -4
  83. package/dist/_virtual/route-regex.js +0 -4
  84. package/dist/_virtual/router-context.shared-runtime.js +0 -4
  85. package/dist/_virtual/scroll-element.js +0 -4
  86. package/dist/_virtual/scroll-events.js +0 -4
  87. package/dist/_virtual/scroll-hash.js +0 -4
  88. package/dist/_virtual/scroll-link.js +0 -4
  89. package/dist/_virtual/scroll-spy.js +0 -4
  90. package/dist/_virtual/scroller.js +0 -4
  91. package/dist/_virtual/segment.js +0 -4
  92. package/dist/_virtual/smooth.js +0 -4
  93. package/dist/_virtual/sorted-routes.js +0 -4
  94. package/dist/_virtual/use-intersection.js +0 -4
  95. package/dist/_virtual/use-merged-ref.js +0 -4
  96. package/dist/_virtual/utils.js +0 -4
  97. package/dist/_virtual/utils2.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.js +0 -22
  136. package/dist/components/Filter/FilterInput.js +0 -48
  137. package/dist/components/TruncatedTextTooltip.js +0 -49
  138. package/dist/components.d.ts +0 -2
  139. package/dist/components.js +0 -1
  140. package/dist/configs/app/api.js +0 -23
  141. package/dist/configs/app/app.js +0 -19
  142. package/dist/configs/app/chain.js +0 -30
  143. package/dist/configs/app/features/account.js +0 -13
  144. package/dist/configs/app/features/addressMetadata.js +0 -15
  145. package/dist/configs/app/features/addressProfileAPI.js +0 -25
  146. package/dist/configs/app/features/addressVerification.js +0 -17
  147. package/dist/configs/app/features/adsBanner.js +0 -50
  148. package/dist/configs/app/features/adsText.js +0 -16
  149. package/dist/configs/app/features/advancedFilter.js +0 -11
  150. package/dist/configs/app/features/beaconChain.js +0 -15
  151. package/dist/configs/app/features/blockchainInteraction.js +0 -15
  152. package/dist/configs/app/features/bridgedTokens.js +0 -16
  153. package/dist/configs/app/features/celo.js +0 -13
  154. package/dist/configs/app/features/csvExport.js +0 -14
  155. package/dist/configs/app/features/dataAvailability.js +0 -11
  156. package/dist/configs/app/features/deFiDropdown.js +0 -12
  157. package/dist/configs/app/features/easterEggBadge.js +0 -12
  158. package/dist/configs/app/features/externalTxs.js +0 -14
  159. package/dist/configs/app/features/faultProofSystem.js +0 -12
  160. package/dist/configs/app/features/gasTracker.js +0 -17
  161. package/dist/configs/app/features/getGasButton.js +0 -17
  162. package/dist/configs/app/features/googleAnalytics.js +0 -12
  163. package/dist/configs/app/features/graphqlApiDocs.js +0 -12
  164. package/dist/configs/app/features/growthBook.js +0 -12
  165. package/dist/configs/app/features/index.js +0 -92
  166. package/dist/configs/app/features/marketplace.js +0 -46
  167. package/dist/configs/app/features/metasuites.js +0 -11
  168. package/dist/configs/app/features/mixpanel.js +0 -12
  169. package/dist/configs/app/features/mudFramework.js +0 -12
  170. package/dist/configs/app/features/multichainButton.js +0 -18
  171. package/dist/configs/app/features/nameService.js +0 -15
  172. package/dist/configs/app/features/pools.js +0 -15
  173. package/dist/configs/app/features/publicTagsSubmission.js +0 -17
  174. package/dist/configs/app/features/restApiDocs.js +0 -12
  175. package/dist/configs/app/features/rewards.js +0 -17
  176. package/dist/configs/app/features/rollbar.js +0 -20
  177. package/dist/configs/app/features/rollup.js +0 -37
  178. package/dist/configs/app/features/safe.js +0 -23
  179. package/dist/configs/app/features/saveOnGas.js +0 -13
  180. package/dist/configs/app/features/sol2uml.js +0 -16
  181. package/dist/configs/app/features/stats.js +0 -16
  182. package/dist/configs/app/features/suave.js +0 -11
  183. package/dist/configs/app/features/txInterpretation.js +0 -16
  184. package/dist/configs/app/features/userOps.js +0 -11
  185. package/dist/configs/app/features/validators.js +0 -16
  186. package/dist/configs/app/features/verifiedTokens.js +0 -15
  187. package/dist/configs/app/features/web3Wallet.js +0 -24
  188. package/dist/configs/app/features/xStarScore.js +0 -12
  189. package/dist/configs/app/index.js +0 -19
  190. package/dist/configs/app/meta.js +0 -16
  191. package/dist/configs/app/services.js +0 -9
  192. package/dist/configs/app/ui/views/address.js +0 -36
  193. package/dist/configs/app/ui/views/block.js +0 -11
  194. package/dist/configs/app/ui/views/index.js +0 -12
  195. package/dist/configs/app/ui/views/nft.js +0 -10
  196. package/dist/configs/app/ui/views/token.js +0 -7
  197. package/dist/configs/app/ui/views/tx.js +0 -15
  198. package/dist/configs/app/ui.js +0 -128
  199. package/dist/configs/app/utils.js +0 -45
  200. package/dist/hooks/useClipboard.js +0 -27
  201. package/dist/hooks/useDisclosure.js +0 -17
  202. package/dist/hooks/useViewportSize.js +0 -17
  203. package/dist/hooks.d.ts +0 -1
  204. package/dist/hooks.js +0 -8
  205. package/dist/icons/arrows/east-mini.svg.js +0 -4
  206. package/dist/icons/arrows/east.svg.js +0 -4
  207. package/dist/icons/check.svg.js +0 -4
  208. package/dist/icons/close.svg.js +0 -4
  209. package/dist/icons/info_filled.svg.js +0 -4
  210. package/dist/icons/link_external.svg.js +0 -4
  211. package/dist/icons/star_filled.svg.js +0 -4
  212. package/dist/icons/star_outline.svg.js +0 -4
  213. package/dist/lib/consts.js +0 -10
  214. package/dist/lib/hooks/useFirstMountState.js +0 -8
  215. package/dist/lib/hooks/useIsMobile.js +0 -7
  216. package/dist/lib/hooks/useUpdateEffect.js +0 -12
  217. package/dist/lib/html-entities.js +0 -5
  218. package/dist/lib/isBrowser.js +0 -6
  219. package/dist/lib/regexp.js +0 -4
  220. package/dist/lib/settings/colorTheme.js +0 -33
  221. package/dist/lib/stripTrailingSlash.js +0 -4
  222. package/dist/node_modules/@swc/helpers/cjs/_interop_require_default.js +0 -13
  223. package/dist/node_modules/@swc/helpers/cjs/_interop_require_wildcard.js +0 -30
  224. package/dist/node_modules/@uidotdev/usehooks/index.js +0 -51
  225. package/dist/node_modules/bignumber.js/bignumber.js +0 -627
  226. package/dist/node_modules/es-toolkit/dist/function/debounce.js +0 -30
  227. package/dist/node_modules/es-toolkit/dist/function/throttle.js +0 -11
  228. package/dist/node_modules/lodash.throttle/index.js +0 -95
  229. package/dist/node_modules/next/dist/client/add-base-path.js +0 -24
  230. package/dist/node_modules/next/dist/client/add-locale.js +0 -25
  231. package/dist/node_modules/next/dist/client/detect-domain-locale.js +0 -25
  232. package/dist/node_modules/next/dist/client/get-domain-locale.js +0 -33
  233. package/dist/node_modules/next/dist/client/has-base-path.js +0 -23
  234. package/dist/node_modules/next/dist/client/link.js +0 -249
  235. package/dist/node_modules/next/dist/client/normalize-locale-path.js +0 -23
  236. package/dist/node_modules/next/dist/client/normalize-trailing-slash.js +0 -26
  237. package/dist/node_modules/next/dist/client/request-idle-callback.js +0 -40
  238. package/dist/node_modules/next/dist/client/resolve-href.js +0 -67
  239. package/dist/node_modules/next/dist/client/use-intersection.js +0 -85
  240. package/dist/node_modules/next/dist/client/use-merged-ref.js +0 -44
  241. package/dist/node_modules/next/dist/lib/constants.js +0 -285
  242. package/dist/node_modules/next/dist/shared/lib/escape-regexp.js +0 -21
  243. package/dist/node_modules/next/dist/shared/lib/i18n/detect-domain-locale.js +0 -28
  244. package/dist/node_modules/next/dist/shared/lib/i18n/normalize-locale-path.js +0 -37
  245. package/dist/node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js +0 -20
  246. package/dist/node_modules/next/dist/shared/lib/router/utils/add-locale.js +0 -25
  247. package/dist/node_modules/next/dist/shared/lib/router/utils/add-path-prefix.js +0 -25
  248. package/dist/node_modules/next/dist/shared/lib/router/utils/app-paths.js +0 -39
  249. package/dist/node_modules/next/dist/shared/lib/router/utils/format-url.js +0 -57
  250. package/dist/node_modules/next/dist/shared/lib/router/utils/index.js +0 -32
  251. package/dist/node_modules/next/dist/shared/lib/router/utils/interception-routes.js +0 -90
  252. package/dist/node_modules/next/dist/shared/lib/router/utils/interpolate-as.js +0 -49
  253. package/dist/node_modules/next/dist/shared/lib/router/utils/is-dynamic.js +0 -22
  254. package/dist/node_modules/next/dist/shared/lib/router/utils/is-local-url.js +0 -29
  255. package/dist/node_modules/next/dist/shared/lib/router/utils/omit.js +0 -23
  256. package/dist/node_modules/next/dist/shared/lib/router/utils/parse-path.js +0 -29
  257. package/dist/node_modules/next/dist/shared/lib/router/utils/path-has-prefix.js +0 -25
  258. package/dist/node_modules/next/dist/shared/lib/router/utils/querystring.js +0 -64
  259. package/dist/node_modules/next/dist/shared/lib/router/utils/remove-trailing-slash.js +0 -20
  260. package/dist/node_modules/next/dist/shared/lib/router/utils/route-matcher.js +0 -42
  261. package/dist/node_modules/next/dist/shared/lib/router/utils/route-regex.js +0 -167
  262. package/dist/node_modules/next/dist/shared/lib/router/utils/sorted-routes.js +0 -154
  263. package/dist/node_modules/next/dist/shared/lib/router-context.shared-runtime.js +0 -21
  264. package/dist/node_modules/next/dist/shared/lib/segment.js +0 -49
  265. package/dist/node_modules/next/dist/shared/lib/utils.js +0 -166
  266. package/dist/node_modules/next/link.js +0 -8
  267. package/dist/node_modules/next-themes/dist/index.js +0 -85
  268. package/dist/node_modules/object-assign/index.js +0 -54
  269. package/dist/node_modules/prop-types/checkPropTypes.js +0 -54
  270. package/dist/node_modules/prop-types/factoryWithThrowingShims.js +0 -52
  271. package/dist/node_modules/prop-types/factoryWithTypeCheckers.js +0 -329
  272. package/dist/node_modules/prop-types/index.js +0 -17
  273. package/dist/node_modules/prop-types/lib/ReactPropTypesSecret.js +0 -10
  274. package/dist/node_modules/prop-types/lib/has.js +0 -7
  275. package/dist/node_modules/react-icons/lib/iconBase.js +0 -108
  276. package/dist/node_modules/react-icons/lib/iconContext.js +0 -12
  277. package/dist/node_modules/react-icons/lu/index.js +0 -12
  278. package/dist/node_modules/react-is/cjs/react-is.development.js +0 -95
  279. package/dist/node_modules/react-is/cjs/react-is.production.min.js +0 -78
  280. package/dist/node_modules/react-is/index.js +0 -10
  281. package/dist/node_modules/react-scroll/modules/components/Button.js +0 -58
  282. package/dist/node_modules/react-scroll/modules/components/Element.js +0 -72
  283. package/dist/node_modules/react-scroll/modules/components/Link.js +0 -49
  284. package/dist/node_modules/react-scroll/modules/index.js +0 -26
  285. package/dist/node_modules/react-scroll/modules/mixins/Helpers.js +0 -192
  286. package/dist/node_modules/react-scroll/modules/mixins/animate-scroll.js +0 -132
  287. package/dist/node_modules/react-scroll/modules/mixins/cancel-events.js +0 -20
  288. package/dist/node_modules/react-scroll/modules/mixins/passive-event-listeners.js +0 -27
  289. package/dist/node_modules/react-scroll/modules/mixins/scroll-element.js +0 -98
  290. package/dist/node_modules/react-scroll/modules/mixins/scroll-events.js +0 -23
  291. package/dist/node_modules/react-scroll/modules/mixins/scroll-hash.js +0 -61
  292. package/dist/node_modules/react-scroll/modules/mixins/scroll-link.js +0 -171
  293. package/dist/node_modules/react-scroll/modules/mixins/scroll-spy.js +0 -79
  294. package/dist/node_modules/react-scroll/modules/mixins/scroller.js +0 -62
  295. package/dist/node_modules/react-scroll/modules/mixins/smooth.js +0 -72
  296. package/dist/node_modules/react-scroll/modules/mixins/utils.js +0 -55
  297. package/dist/package/node_modules/react/cjs/react-jsx-runtime.development.js +0 -604
  298. package/dist/package/node_modules/react/cjs/react-jsx-runtime.production.min.js +0 -28
  299. package/dist/package/node_modules/react/jsx-runtime.js +0 -10
  300. package/dist/theme/foundations/animations.js +0 -15
  301. package/dist/theme/foundations/borders.js +0 -12
  302. package/dist/theme/foundations/breakpoints.js +0 -11
  303. package/dist/theme/foundations/colors.js +0 -163
  304. package/dist/theme/foundations/durations.js +0 -12
  305. package/dist/theme/foundations/semanticTokens.js +0 -474
  306. package/dist/theme/foundations/shadows.js +0 -16
  307. package/dist/theme/foundations/typography.js +0 -92
  308. package/dist/theme/foundations/zIndex.js +0 -24
  309. package/dist/theme/globalCss.js +0 -51
  310. package/dist/theme/globals/address-entity.js +0 -34
  311. package/dist/theme/globals/recaptcha.js +0 -21
  312. package/dist/theme/globals/scrollbar.js +0 -33
  313. package/dist/theme/index.d.ts +0 -1
  314. package/dist/theme/index.ts +0 -1
  315. package/dist/theme/recipes/accordion.recipe.js +0 -143
  316. package/dist/theme/recipes/alert.recipe.js +0 -134
  317. package/dist/theme/recipes/badge.recipe.js +0 -119
  318. package/dist/theme/recipes/button.recipe.js +0 -272
  319. package/dist/theme/recipes/checkbox.recipe.js +0 -53
  320. package/dist/theme/recipes/checkmark.recipe.js +0 -73
  321. package/dist/theme/recipes/close-button.recipe.js +0 -39
  322. package/dist/theme/recipes/dialog.recipe.js +0 -210
  323. package/dist/theme/recipes/drawer.recipe.js +0 -168
  324. package/dist/theme/recipes/field.recipe.js +0 -174
  325. package/dist/theme/recipes/index.js +0 -69
  326. package/dist/theme/recipes/input.recipe.js +0 -116
  327. package/dist/theme/recipes/link.recipe.js +0 -88
  328. package/dist/theme/recipes/list.recipe.js +0 -65
  329. package/dist/theme/recipes/menu.recipe.js +0 -104
  330. package/dist/theme/recipes/pin-input.recipe.js +0 -34
  331. package/dist/theme/recipes/popover.recipe.js +0 -72
  332. package/dist/theme/recipes/progress-circle.recipe.js +0 -74
  333. package/dist/theme/recipes/radio-group.recipe.js +0 -69
  334. package/dist/theme/recipes/radiomark.recipe.js +0 -87
  335. package/dist/theme/recipes/rating-group.recipe.js +0 -84
  336. package/dist/theme/recipes/select.recipe.js +0 -275
  337. package/dist/theme/recipes/skeleton.recipe.js +0 -54
  338. package/dist/theme/recipes/spinner.recipe.js +0 -33
  339. package/dist/theme/recipes/stat.recipe.js +0 -101
  340. package/dist/theme/recipes/switch.recipe.js +0 -125
  341. package/dist/theme/recipes/table.recipe.js +0 -83
  342. package/dist/theme/recipes/tabs.recipe.js +0 -216
  343. package/dist/theme/recipes/tag.recipe.js +0 -157
  344. package/dist/theme/recipes/textarea.recipe.js +0 -86
  345. package/dist/theme/recipes/toast.recipe.js +0 -98
  346. package/dist/theme/recipes/tooltip.recipe.js +0 -87
  347. package/dist/theme/theme.js +0 -40
  348. package/dist/theme/utils/entries.js +0 -11
  349. package/dist/theme.d.ts +0 -2
  350. package/dist/theme.js +0 -4
  351. package/dist/types/client/adProviders.js +0 -12
  352. package/dist/types/client/contract.js +0 -13
  353. package/dist/types/client/gasTracker.js +0 -7
  354. package/dist/types/client/navigation.js +0 -4
  355. package/dist/types/client/rollup.js +0 -11
  356. package/dist/types/client/txInterpretation.js +0 -8
  357. package/dist/types/client/validators.js +0 -8
  358. package/dist/types/client/wallets.js +0 -8
  359. package/dist/types/homepage.js +0 -15
  360. package/dist/types/views/address.js +0 -14
  361. package/dist/types/views/block.js +0 -12
  362. package/dist/types/views/tx.js +0 -16
  363. package/dist/ui/shared/forms/validators/url.js +0 -12
  364. package/dist/utils/getComponentDisplayName.js +0 -7
  365. package/dist/utils/index.d.ts +0 -1
  366. package/dist/utils.d.ts +0 -2
  367. package/dist/utils.js +0 -4
@@ -1,32 +0,0 @@
1
- import { __exports as e } from "../../../../../../../_virtual/index5.js";
2
- import { __require as f } from "./sorted-routes.js";
3
- import { __require as _ } from "./is-dynamic.js";
4
- var i;
5
- function R() {
6
- return i ? e : (i = 1, function(r) {
7
- Object.defineProperty(r, "__esModule", {
8
- value: !0
9
- });
10
- function n(c, o) {
11
- for (var u in o) Object.defineProperty(c, u, {
12
- enumerable: !0,
13
- get: o[u]
14
- });
15
- }
16
- n(r, {
17
- getSortedRouteObjects: function() {
18
- return t.getSortedRouteObjects;
19
- },
20
- getSortedRoutes: function() {
21
- return t.getSortedRoutes;
22
- },
23
- isDynamicRoute: function() {
24
- return s.isDynamicRoute;
25
- }
26
- });
27
- const t = f(), s = _();
28
- }(e), e);
29
- }
30
- export {
31
- R as __require
32
- };
@@ -1,90 +0,0 @@
1
- import { __exports as u } from "../../../../../../../_virtual/interception-routes.js";
2
- import { __require as _ } from "./app-paths.js";
3
- var c;
4
- function d() {
5
- return c ? u : (c = 1, function(a) {
6
- Object.defineProperty(a, "__esModule", {
7
- value: !0
8
- });
9
- function s(n, e) {
10
- for (var r in e) Object.defineProperty(n, r, {
11
- enumerable: !0,
12
- get: e[r]
13
- });
14
- }
15
- s(a, {
16
- INTERCEPTION_ROUTE_MARKERS: function() {
17
- return i;
18
- },
19
- extractInterceptionRouteInformation: function() {
20
- return l;
21
- },
22
- isInterceptionRouteAppPath: function() {
23
- return p;
24
- }
25
- });
26
- const f = _(), i = [
27
- "(..)(..)",
28
- "(.)",
29
- "(..)",
30
- "(...)"
31
- ];
32
- function p(n) {
33
- return n.split("/").find((e) => i.find((r) => e.startsWith(r))) !== void 0;
34
- }
35
- function l(n) {
36
- let e, r, t;
37
- for (const o of n.split("/"))
38
- if (r = i.find((R) => o.startsWith(R)), r) {
39
- [e, t] = n.split(r, 2);
40
- break;
41
- }
42
- if (!e || !r || !t)
43
- throw Object.defineProperty(new Error("Invalid interception route: " + n + ". Must be in the format /<intercepting route>/(..|...|..)(..)/<intercepted route>"), "__NEXT_ERROR_CODE", {
44
- value: "E269",
45
- enumerable: !1,
46
- configurable: !0
47
- });
48
- switch (e = (0, f.normalizeAppPath)(e), r) {
49
- case "(.)":
50
- e === "/" ? t = "/" + t : t = e + "/" + t;
51
- break;
52
- case "(..)":
53
- if (e === "/")
54
- throw Object.defineProperty(new Error("Invalid interception route: " + n + ". Cannot use (..) marker at the root level, use (.) instead."), "__NEXT_ERROR_CODE", {
55
- value: "E207",
56
- enumerable: !1,
57
- configurable: !0
58
- });
59
- t = e.split("/").slice(0, -1).concat(t).join("/");
60
- break;
61
- case "(...)":
62
- t = "/" + t;
63
- break;
64
- case "(..)(..)":
65
- const o = e.split("/");
66
- if (o.length <= 2)
67
- throw Object.defineProperty(new Error("Invalid interception route: " + n + ". Cannot use (..)(..) marker at the root level or one level up."), "__NEXT_ERROR_CODE", {
68
- value: "E486",
69
- enumerable: !1,
70
- configurable: !0
71
- });
72
- t = o.slice(0, -2).concat(t).join("/");
73
- break;
74
- default:
75
- throw Object.defineProperty(new Error("Invariant: unexpected marker"), "__NEXT_ERROR_CODE", {
76
- value: "E112",
77
- enumerable: !1,
78
- configurable: !0
79
- });
80
- }
81
- return {
82
- interceptingRoute: e,
83
- interceptedRoute: t
84
- };
85
- }
86
- }(u), u);
87
- }
88
- export {
89
- d as __require
90
- };
@@ -1,49 +0,0 @@
1
- import { __exports as u } from "../../../../../../../_virtual/interpolate-as.js";
2
- import { __require as A } from "./route-matcher.js";
3
- import { __require as x } from "./route-regex.js";
4
- var d;
5
- function v() {
6
- return d ? u : (d = 1, function(c) {
7
- Object.defineProperty(c, "__esModule", {
8
- value: !0
9
- }), Object.defineProperty(c, "interpolateAs", {
10
- enumerable: !0,
11
- get: function() {
12
- return y;
13
- }
14
- });
15
- const m = A(), R = x();
16
- function y(o, s, g) {
17
- let t = "";
18
- const a = (0, R.getRouteRegex)(o), p = a.groups, l = (
19
- // Try to match the dynamic route against the asPath
20
- (s !== o ? (0, m.getRouteMatcher)(a)(s) : "") || // Fall back to reading the values from the href
21
- // TODO: should this take priority; also need to change in the router.
22
- g
23
- );
24
- t = o;
25
- const f = Object.keys(p);
26
- return f.every((r) => {
27
- let e = l[r] || "";
28
- const { repeat: n, optional: _ } = p[r];
29
- let i = "[" + (n ? "..." : "") + r + "]";
30
- return _ && (i = (e ? "" : "/") + "[" + i + "]"), n && !Array.isArray(e) && (e = [
31
- e
32
- ]), (_ || r in l) && // Interpolate group into data URL if present
33
- (t = t.replace(i, n ? e.map(
34
- // these values should be fully encoded instead of just
35
- // path delimiter escaped since they are being inserted
36
- // into the URL and we expect URL encoded segments
37
- // when parsing dynamic route params
38
- (q) => encodeURIComponent(q)
39
- ).join("/") : encodeURIComponent(e)) || "/");
40
- }) || (t = ""), {
41
- params: f,
42
- result: t
43
- };
44
- }
45
- }(u), u);
46
- }
47
- export {
48
- v as __require
49
- };
@@ -1,22 +0,0 @@
1
- import { __exports as n } from "../../../../../../../_virtual/is-dynamic.js";
2
- import { __require as a } from "./interception-routes.js";
3
- var o;
4
- function _() {
5
- return o ? n : (o = 1, function(r) {
6
- Object.defineProperty(r, "__esModule", {
7
- value: !0
8
- }), Object.defineProperty(r, "isDynamicRoute", {
9
- enumerable: !0,
10
- get: function() {
11
- return s;
12
- }
13
- });
14
- const i = a(), u = /\/[^/]*\[[^/]+\][^/]*(?=\/|$)/, c = /\/\[[^/]+\](?=\/|$)/;
15
- function s(e, t) {
16
- return t === void 0 && (t = !0), (0, i.isInterceptionRouteAppPath)(e) && (e = (0, i.extractInterceptionRouteInformation)(e).interceptedRoute), t ? c.test(e) : u.test(e);
17
- }
18
- }(n), n);
19
- }
20
- export {
21
- _ as __require
22
- };
@@ -1,29 +0,0 @@
1
- import { __exports as r } from "../../../../../../../_virtual/is-local-url.js";
2
- import { __require as c } from "../../utils.js";
3
- import { __require as l } from "../../../../client/has-base-path.js";
4
- var n;
5
- function h() {
6
- return n ? r : (n = 1, function(t) {
7
- Object.defineProperty(t, "__esModule", {
8
- value: !0
9
- }), Object.defineProperty(t, "isLocalURL", {
10
- enumerable: !0,
11
- get: function() {
12
- return u;
13
- }
14
- });
15
- const i = c(), s = l();
16
- function u(o) {
17
- if (!(0, i.isAbsoluteUrl)(o)) return !0;
18
- try {
19
- const e = (0, i.getLocationOrigin)(), a = new URL(o, e);
20
- return a.origin === e && (0, s.hasBasePath)(a.pathname);
21
- } catch {
22
- return !1;
23
- }
24
- }
25
- }(r), r);
26
- }
27
- export {
28
- h as __require
29
- };
@@ -1,23 +0,0 @@
1
- import { __exports as r } from "../../../../../../../_virtual/omit.js";
2
- var u;
3
- function m() {
4
- return u ? r : (u = 1, function(t) {
5
- Object.defineProperty(t, "__esModule", {
6
- value: !0
7
- }), Object.defineProperty(t, "omit", {
8
- enumerable: !0,
9
- get: function() {
10
- return o;
11
- }
12
- });
13
- function o(i, f) {
14
- const n = {};
15
- return Object.keys(i).forEach((e) => {
16
- f.includes(e) || (n[e] = i[e]);
17
- }), n;
18
- }
19
- }(r), r);
20
- }
21
- export {
22
- m as __require
23
- };
@@ -1,29 +0,0 @@
1
- import { __exports as u } from "../../../../../../../_virtual/parse-path.js";
2
- var a;
3
- function f() {
4
- return a ? u : (a = 1, function(s) {
5
- Object.defineProperty(s, "__esModule", {
6
- value: !0
7
- }), Object.defineProperty(s, "parsePath", {
8
- enumerable: !0,
9
- get: function() {
10
- return i;
11
- }
12
- });
13
- function i(r) {
14
- const e = r.indexOf("#"), n = r.indexOf("?"), t = n > -1 && (e < 0 || n < e);
15
- return t || e > -1 ? {
16
- pathname: r.substring(0, t ? n : e),
17
- query: t ? r.substring(n, e > -1 ? e : void 0) : "",
18
- hash: e > -1 ? r.slice(e) : ""
19
- } : {
20
- pathname: r,
21
- query: "",
22
- hash: ""
23
- };
24
- }
25
- }(u), u);
26
- }
27
- export {
28
- f as __require
29
- };
@@ -1,25 +0,0 @@
1
- import { __exports as e } from "../../../../../../../_virtual/path-has-prefix.js";
2
- import { __require as f } from "./parse-path.js";
3
- var n;
4
- function p() {
5
- return n ? e : (n = 1, function(r) {
6
- Object.defineProperty(r, "__esModule", {
7
- value: !0
8
- }), Object.defineProperty(r, "pathHasPrefix", {
9
- enumerable: !0,
10
- get: function() {
11
- return u;
12
- }
13
- });
14
- const s = f();
15
- function u(t, a) {
16
- if (typeof t != "string")
17
- return !1;
18
- const { pathname: i } = (0, s.parsePath)(t);
19
- return i === a || i.startsWith(a + "/");
20
- }
21
- }(e), e);
22
- }
23
- export {
24
- p as __require
25
- };
@@ -1,64 +0,0 @@
1
- import { __exports as s } from "../../../../../../../_virtual/querystring.js";
2
- var a;
3
- function p() {
4
- return a ? s : (a = 1, function(i) {
5
- Object.defineProperty(i, "__esModule", {
6
- value: !0
7
- });
8
- function c(r, e) {
9
- for (var n in e) Object.defineProperty(r, n, {
10
- enumerable: !0,
11
- get: e[n]
12
- });
13
- }
14
- c(i, {
15
- assign: function() {
16
- return g;
17
- },
18
- searchParamsToUrlQuery: function() {
19
- return y;
20
- },
21
- urlQueryToSearchParams: function() {
22
- return l;
23
- }
24
- });
25
- function y(r) {
26
- const e = {};
27
- for (const [n, t] of r.entries()) {
28
- const o = e[n];
29
- typeof o > "u" ? e[n] = t : Array.isArray(o) ? o.push(t) : e[n] = [
30
- o,
31
- t
32
- ];
33
- }
34
- return e;
35
- }
36
- function f(r) {
37
- return typeof r == "string" ? r : typeof r == "number" && !isNaN(r) || typeof r == "boolean" ? String(r) : "";
38
- }
39
- function l(r) {
40
- const e = new URLSearchParams();
41
- for (const [n, t] of Object.entries(r))
42
- if (Array.isArray(t))
43
- for (const o of t)
44
- e.append(n, f(o));
45
- else
46
- e.set(n, f(t));
47
- return e;
48
- }
49
- function g(r) {
50
- for (var e = arguments.length, n = new Array(e > 1 ? e - 1 : 0), t = 1; t < e; t++)
51
- n[t - 1] = arguments[t];
52
- for (const o of n) {
53
- for (const u of o.keys())
54
- r.delete(u);
55
- for (const [u, d] of o.entries())
56
- r.append(u, d);
57
- }
58
- return r;
59
- }
60
- }(s), s);
61
- }
62
- export {
63
- p as __require
64
- };
@@ -1,20 +0,0 @@
1
- import { __exports as e } from "../../../../../../../_virtual/remove-trailing-slash.js";
2
- var i;
3
- function u() {
4
- return i ? e : (i = 1, function(r) {
5
- Object.defineProperty(r, "__esModule", {
6
- value: !0
7
- }), Object.defineProperty(r, "removeTrailingSlash", {
8
- enumerable: !0,
9
- get: function() {
10
- return n;
11
- }
12
- });
13
- function n(a) {
14
- return a.replace(/\/$/, "") || "/";
15
- }
16
- }(e), e);
17
- }
18
- export {
19
- u as __require
20
- };
@@ -1,42 +0,0 @@
1
- import { __exports as u } from "../../../../../../../_virtual/route-matcher.js";
2
- import { __require as h } from "../../utils.js";
3
- var i;
4
- function M() {
5
- return i ? u : (i = 1, function(n) {
6
- Object.defineProperty(n, "__esModule", {
7
- value: !0
8
- }), Object.defineProperty(n, "getRouteMatcher", {
9
- enumerable: !0,
10
- get: function() {
11
- return f;
12
- }
13
- });
14
- const s = h();
15
- function f(d) {
16
- let { re: p, groups: l } = d;
17
- return (_) => {
18
- const c = p.exec(_);
19
- if (!c) return !1;
20
- const a = (e) => {
21
- try {
22
- return decodeURIComponent(e);
23
- } catch {
24
- throw Object.defineProperty(new s.DecodeError("failed to decode param"), "__NEXT_ERROR_CODE", {
25
- value: "E528",
26
- enumerable: !1,
27
- configurable: !0
28
- });
29
- }
30
- }, r = {};
31
- for (const [e, t] of Object.entries(l)) {
32
- const o = c[t.pos];
33
- o !== void 0 && (t.repeat ? r[e] = o.split("/").map((m) => a(m)) : r[e] = a(o));
34
- }
35
- return r;
36
- };
37
- }
38
- }(u), u);
39
- }
40
- export {
41
- M as __require
42
- };
@@ -1,167 +0,0 @@
1
- import { __exports as h } from "../../../../../../../_virtual/route-regex.js";
2
- import { __require as O } from "../../../../lib/constants.js";
3
- import { __require as b } from "./interception-routes.js";
4
- import { __require as z } from "../../escape-regexp.js";
5
- import { __require as C } from "./remove-trailing-slash.js";
6
- var N;
7
- function F() {
8
- return N ? h : (N = 1, function(x) {
9
- Object.defineProperty(x, "__esModule", {
10
- value: !0
11
- });
12
- function k(r, e) {
13
- for (var n in e) Object.defineProperty(r, n, {
14
- enumerable: !0,
15
- get: e[n]
16
- });
17
- }
18
- k(x, {
19
- getNamedMiddlewareRegex: function() {
20
- return v;
21
- },
22
- getNamedRouteRegex: function() {
23
- return q;
24
- },
25
- getRouteRegex: function() {
26
- return E;
27
- },
28
- parseParameter: function() {
29
- return A;
30
- }
31
- });
32
- const _ = O(), S = b(), g = z(), y = C(), m = /^([^[]*)\[((?:\[[^\]]*\])|[^\]]+)\](.*)$/;
33
- function A(r) {
34
- const e = r.match(m);
35
- return p(e ? e[2] : r);
36
- }
37
- function p(r) {
38
- const e = r.startsWith("[") && r.endsWith("]");
39
- e && (r = r.slice(1, -1));
40
- const n = r.startsWith("...");
41
- return n && (r = r.slice(3)), {
42
- key: r,
43
- repeat: n,
44
- optional: e
45
- };
46
- }
47
- function P(r, e, n) {
48
- const o = {};
49
- let a = 1;
50
- const i = [];
51
- for (const c of (0, y.removeTrailingSlash)(r).slice(1).split("/")) {
52
- const u = S.INTERCEPTION_ROUTE_MARKERS.find((f) => c.startsWith(f)), s = c.match(m);
53
- if (u && s && s[2]) {
54
- const { key: f, optional: t, repeat: l } = p(s[2]);
55
- o[f] = {
56
- pos: a++,
57
- repeat: l,
58
- optional: t
59
- }, i.push("/" + (0, g.escapeStringRegexp)(u) + "([^/]+?)");
60
- } else if (s && s[2]) {
61
- const { key: f, repeat: t, optional: l } = p(s[2]);
62
- o[f] = {
63
- pos: a++,
64
- repeat: t,
65
- optional: l
66
- }, n && s[1] && i.push("/" + (0, g.escapeStringRegexp)(s[1]));
67
- let R = t ? l ? "(?:/(.+?))?" : "/(.+?)" : "/([^/]+?)";
68
- n && s[1] && (R = R.substring(1)), i.push(R);
69
- } else
70
- i.push("/" + (0, g.escapeStringRegexp)(c));
71
- e && s && s[3] && i.push((0, g.escapeStringRegexp)(s[3]));
72
- }
73
- return {
74
- parameterizedRoute: i.join(""),
75
- groups: o
76
- };
77
- }
78
- function E(r, e) {
79
- let { includeSuffix: n = !1, includePrefix: o = !1, excludeOptionalTrailingSlash: a = !1 } = e === void 0 ? {} : e;
80
- const { parameterizedRoute: i, groups: c } = P(r, n, o);
81
- let u = i;
82
- return a || (u += "(?:/)?"), {
83
- re: new RegExp("^" + u + "$"),
84
- groups: c
85
- };
86
- }
87
- function I() {
88
- let r = 0;
89
- return () => {
90
- let e = "", n = ++r;
91
- for (; n > 0; )
92
- e += String.fromCharCode(97 + (n - 1) % 26), n = Math.floor((n - 1) / 26);
93
- return e;
94
- };
95
- }
96
- function T(r) {
97
- let { interceptionMarker: e, getSafeRouteKey: n, segment: o, routeKeys: a, keyPrefix: i, backreferenceDuplicateKeys: c } = r;
98
- const { key: u, optional: s, repeat: f } = p(o);
99
- let t = u.replace(/\W/g, "");
100
- i && (t = "" + i + t);
101
- let l = !1;
102
- (t.length === 0 || t.length > 30) && (l = !0), isNaN(parseInt(t.slice(0, 1))) || (l = !0), l && (t = n());
103
- const R = t in a;
104
- i ? a[t] = "" + i + u : a[t] = u;
105
- const M = e ? (0, g.escapeStringRegexp)(e) : "";
106
- let d;
107
- return R && c ? d = "\\k<" + t + ">" : f ? d = "(?<" + t + ">.+?)" : d = "(?<" + t + ">[^/]+?)", s ? "(?:/" + M + d + ")?" : "/" + M + d;
108
- }
109
- function K(r, e, n, o, a) {
110
- const i = I(), c = {}, u = [];
111
- for (const s of (0, y.removeTrailingSlash)(r).slice(1).split("/")) {
112
- const f = S.INTERCEPTION_ROUTE_MARKERS.some((l) => s.startsWith(l)), t = s.match(m);
113
- if (f && t && t[2])
114
- u.push(T({
115
- getSafeRouteKey: i,
116
- interceptionMarker: t[1],
117
- segment: t[2],
118
- routeKeys: c,
119
- keyPrefix: e ? _.NEXT_INTERCEPTION_MARKER_PREFIX : void 0,
120
- backreferenceDuplicateKeys: a
121
- }));
122
- else if (t && t[2]) {
123
- o && t[1] && u.push("/" + (0, g.escapeStringRegexp)(t[1]));
124
- let l = T({
125
- getSafeRouteKey: i,
126
- segment: t[2],
127
- routeKeys: c,
128
- keyPrefix: e ? _.NEXT_QUERY_PARAM_PREFIX : void 0,
129
- backreferenceDuplicateKeys: a
130
- });
131
- o && t[1] && (l = l.substring(1)), u.push(l);
132
- } else
133
- u.push("/" + (0, g.escapeStringRegexp)(s));
134
- n && t && t[3] && u.push((0, g.escapeStringRegexp)(t[3]));
135
- }
136
- return {
137
- namedParameterizedRoute: u.join(""),
138
- routeKeys: c
139
- };
140
- }
141
- function q(r, e) {
142
- var n, o, a;
143
- const i = K(r, e.prefixRouteKeys, (n = e.includeSuffix) != null ? n : !1, (o = e.includePrefix) != null ? o : !1, (a = e.backreferenceDuplicateKeys) != null ? a : !1);
144
- let c = i.namedParameterizedRoute;
145
- return e.excludeOptionalTrailingSlash || (c += "(?:/)?"), {
146
- ...E(r, e),
147
- namedRegex: "^" + c + "$",
148
- routeKeys: i.routeKeys
149
- };
150
- }
151
- function v(r, e) {
152
- const { parameterizedRoute: n } = P(r, !1, !1), { catchAll: o = !0 } = e;
153
- if (n === "/")
154
- return {
155
- namedRegex: "^/" + (o ? ".*" : "") + "$"
156
- };
157
- const { namedParameterizedRoute: a } = K(r, !1, !1, !1, !1);
158
- let i = o ? "(?:(/.*)?)" : "";
159
- return {
160
- namedRegex: "^" + a + i + "$"
161
- };
162
- }
163
- }(h), h);
164
- }
165
- export {
166
- F as __require
167
- };