@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,475 +0,0 @@
1
- import type { ThemingConfig } from '@chakra-ui/react';
2
-
3
- import config from 'configs/app';
4
-
5
- const heroBannerButton = config.UI.homepage.heroBanner?.button;
6
-
7
- const semanticTokens: ThemingConfig['semanticTokens'] = {
8
- colors: {
9
- button: {
10
- outline: {
11
- fg: {
12
- DEFAULT: { value: { _light: '{colors.blue.600}', _dark: '{colors.blue.600}' } },
13
- },
14
- },
15
- subtle: {
16
- fg: {
17
- DEFAULT: { value: { _light: '{colors.blackAlpha.800}', _dark: '{colors.whiteAlpha.800}' } },
18
- },
19
- bg: {
20
- DEFAULT: { value: { _light: '{colors.blackAlpha.200}', _dark: '{colors.whiteAlpha.200}' } },
21
- },
22
- },
23
- dropdown: {
24
- fg: {
25
- DEFAULT: { value: { _light: '{colors.blackAlpha.800}', _dark: '{colors.whiteAlpha.800}' } },
26
- selected: { value: { _light: '{colors.blue.700}', _dark: '{colors.whiteAlpha.800}' } },
27
- },
28
- bg: {
29
- selected: { value: { _light: '{colors.blue.50}', _dark: '{colors.whiteAlpha.100}' } },
30
- },
31
- border: {
32
- DEFAULT: { value: { _light: '{colors.gray.200}', _dark: '{colors.gray.600}' } },
33
- },
34
- },
35
- header: {
36
- fg: {
37
- DEFAULT: { value: { _light: '{colors.blackAlpha.800}', _dark: '{colors.gray.400}' } },
38
- selected: { value: { _light: '{colors.blackAlpha.800}', _dark: '{colors.whiteAlpha.800}' } },
39
- highlighted: { value: { _light: '{colors.blackAlpha.800}', _dark: '{colors.whiteAlpha.800}' } },
40
- },
41
- bg: {
42
- selected: { value: { _light: '{colors.blackAlpha.50}', _dark: '{colors.whiteAlpha.100}' } },
43
- highlighted: { value: { _light: '{colors.orange.100}', _dark: '{colors.orange.900}' } },
44
- },
45
- border: {
46
- DEFAULT: { value: { _light: '{colors.gray.300}', _dark: '{colors.gray.600}' } },
47
- },
48
- },
49
- segmented: {
50
- fg: {
51
- DEFAULT: { value: { _light: '{colors.blue.600}', _dark: '{colors.blue.300}' } },
52
- selected: { value: { _light: '{colors.blue.700}', _dark: '{colors.gray.50}' } },
53
- },
54
- border: {
55
- DEFAULT: { value: { _light: '{colors.blue.50}', _dark: '{colors.gray.800}' } },
56
- },
57
- },
58
- icon_secondary: {
59
- fg: {
60
- DEFAULT: { value: { _light: '{colors.gray.400}', _dark: '{colors.gray.500}' } },
61
- selected: { value: { _light: '{colors.blue.700}', _dark: '{colors.whiteAlpha.800}' } },
62
- },
63
- bg: {
64
- selected: { value: { _light: '{colors.blue.50}', _dark: '{colors.whiteAlpha.100}' } },
65
- },
66
- },
67
- hero: {
68
- bg: {
69
- DEFAULT: {
70
- value: {
71
- _light: heroBannerButton?._default?.background?.[0] || '{colors.blue.600}',
72
- _dark: heroBannerButton?._default?.background?.[1] || heroBannerButton?._default?.background?.[0] || '{colors.blue.600}',
73
- },
74
- },
75
- hover: {
76
- value: {
77
- _light: heroBannerButton?._hover?.background?.[0] || '{colors.blue.400}',
78
- _dark: heroBannerButton?._hover?.background?.[1] || heroBannerButton?._hover?.background?.[0] || '{colors.blue.400}',
79
- },
80
- },
81
- selected: {
82
- value: {
83
- _light: heroBannerButton?._selected?.background?.[0] || '{colors.blue.50}',
84
- _dark: heroBannerButton?._selected?.background?.[1] || heroBannerButton?._selected?.background?.[0] || '{colors.blue.50}',
85
- },
86
- },
87
- },
88
- fg: {
89
- DEFAULT: {
90
- value: {
91
- _light: heroBannerButton?._default?.text_color?.[0] || '{colors.white}',
92
- _dark: heroBannerButton?._default?.text_color?.[1] || heroBannerButton?._default?.text_color?.[0] || '{colors.white}',
93
- },
94
- },
95
- hover: {
96
- value: {
97
- _light: heroBannerButton?._hover?.text_color?.[0] || '{colors.white}',
98
- _dark: heroBannerButton?._hover?.text_color?.[1] || heroBannerButton?._hover?.text_color?.[0] || '{colors.white}',
99
- },
100
- },
101
- selected: {
102
- value: {
103
- _light: heroBannerButton?._selected?.text_color?.[0] || '{colors.blackAlpha.800}',
104
- _dark: heroBannerButton?._selected?.text_color?.[1] || heroBannerButton?._selected?.text_color?.[0] || '{colors.blackAlpha.800}',
105
- },
106
- },
107
- },
108
- },
109
- },
110
- closeButton: {
111
- fg: {
112
- DEFAULT: { value: { _light: '{colors.blackAlpha.500}', _dark: '{colors.whiteAlpha.500}' } },
113
- },
114
- },
115
- link: {
116
- primary: {
117
- DEFAULT: { value: { _light: '{colors.blue.600}', _dark: '{colors.blue.300}' } },
118
- hover: { value: { _light: '{colors.blue.400}' } },
119
- },
120
- secondary: {
121
- DEFAULT: { value: { _light: '{colors.gray.500}', _dark: '{colors.gray.400}' } },
122
- },
123
- underlaid: {
124
- bg: { value: { _light: '{colors.gray.100}', _dark: '{colors.gray.800}' } },
125
- },
126
- subtle: {
127
- DEFAULT: { value: { _light: '{colors.blackAlpha.800}', _dark: '{colors.gray.400}' } },
128
- hover: { value: { _light: '{colors.blackAlpha.800}', _dark: '{colors.gray.400}' } },
129
- },
130
- navigation: {
131
- fg: {
132
- DEFAULT: { value: { _light: '{colors.gray.600}', _dark: '{colors.gray.400}' } },
133
- selected: { value: { _light: '{colors.blue.700}', _dark: '{colors.gray.50}' } },
134
- hover: { value: { _light: '{colors.link.primary.hover}' } },
135
- active: { value: { _light: '{colors.link.primary.hover}' } },
136
- },
137
- bg: {
138
- DEFAULT: { value: { _light: '{colors.white}', _dark: '{colors.black}' } },
139
- selected: { value: { _light: '{colors.blue.50}', _dark: '{colors.gray.800}' } },
140
- },
141
- border: {
142
- DEFAULT: { value: '{colors.border.divider}' },
143
- selected: { value: { _light: '{colors.blue.50}', _dark: '{colors.gray.800}' } },
144
- },
145
- },
146
- menu: {
147
- DEFAULT: { value: { _light: '{colors.blackAlpha.800}', _dark: '{colors.whiteAlpha.800}' } },
148
- },
149
- },
150
- tooltip: {
151
- DEFAULT: {
152
- bg: { value: '{colors.gray.900}' },
153
- fg: { value: '{colors.white}' },
154
- },
155
- navigation: {
156
- bg: { value: { _light: '{colors.blue.50}', _dark: '{colors.gray.800}' } },
157
- fg: {
158
- DEFAULT: { value: '{colors.blue.400}' },
159
- selected: { value: { _light: '{colors.blue.700}', _dark: '{colors.gray.50}' } },
160
- },
161
- },
162
- },
163
- popover: {
164
- DEFAULT: {
165
- bg: { value: { _light: '{colors.white}', _dark: '{colors.gray.900}' } },
166
- shadow: { value: { _light: '{colors.blackAlpha.200}', _dark: '{colors.whiteAlpha.300}' } },
167
- },
168
- },
169
- progressCircle: {
170
- trackColor: {
171
- DEFAULT: { value: { _light: '{colors.gray.100}', _dark: '{colors.whiteAlpha.100}' } },
172
- },
173
- },
174
- skeleton: {
175
- bg: {
176
- start: { value: { _light: '{colors.blackAlpha.50}', _dark: '{colors.whiteAlpha.50}' } },
177
- end: { value: { _light: '{colors.blackAlpha.100}', _dark: '{colors.whiteAlpha.100}' } },
178
- },
179
- },
180
- tabs: {
181
- solid: {
182
- fg: {
183
- DEFAULT: { value: { _light: '{colors.blue.700}', _dark: '{colors.blue.100}' } },
184
- selected: { value: { _light: '{colors.blue.700}', _dark: '{colors.gray.50}' } },
185
- },
186
- bg: {
187
- selected: { value: { _light: '{colors.blue.50}', _dark: '{colors.whiteAlpha.100}' } },
188
- },
189
- },
190
- secondary: {
191
- fg: {
192
- DEFAULT: { value: { _light: '{colors.blackAlpha.800}', _dark: '{colors.whiteAlpha.800}' } },
193
- },
194
- bg: {
195
- selected: { value: { _light: '{colors.blue.50}', _dark: '{colors.whiteAlpha.100}' } },
196
- },
197
- border: {
198
- DEFAULT: { value: { _light: '{colors.gray.300}', _dark: '{colors.gray.600}' } },
199
- },
200
- },
201
- segmented: {
202
- fg: {
203
- DEFAULT: { value: { _light: '{colors.blue.600}', _dark: '{colors.blue.300}' } },
204
- selected: { value: { _light: '{colors.blue.700}', _dark: '{colors.gray.50}' } },
205
- },
206
- border: {
207
- DEFAULT: { value: { _light: '{colors.blue.50}', _dark: '{colors.gray.800}' } },
208
- },
209
- },
210
- },
211
- 'switch': {
212
- primary: {
213
- bg: {
214
- DEFAULT: { value: { _light: '{colors.gray.300}', _dark: '{colors.whiteAlpha.400}' } },
215
- checked: { value: { _light: '{colors.blue.500}', _dark: '{colors.blue.300}' } },
216
- hover: { value: { _light: '{colors.blue.600}', _dark: '{colors.blue.400}' } },
217
- },
218
- },
219
- },
220
- alert: {
221
- fg: {
222
- DEFAULT: { value: { _light: '{colors.blackAlpha.800}', _dark: '{colors.whiteAlpha.800}' } },
223
- },
224
- bg: {
225
- info: { value: { _light: '{colors.blackAlpha.50}', _dark: '{colors.whiteAlpha.100}' } },
226
- warning: { value: { _light: '{colors.orange.100}', _dark: '{colors.orange.800/60}' } },
227
- warning_table: { value: { _light: '{colors.orange.50}', _dark: '{colors.orange.800/60}' } },
228
- success: { value: { _light: '{colors.green.100}', _dark: '{colors.green.900}' } },
229
- error: { value: { _light: '{colors.red.100}', _dark: '{colors.red.900}' } },
230
- },
231
- },
232
- toast: {
233
- fg: {
234
- DEFAULT: { value: '{colors.alert.fg}' },
235
- },
236
- bg: {
237
- DEFAULT: { value: '{colors.alert.bg.info}' },
238
- info: { value: { _light: '{colors.blue.100}', _dark: '{colors.blue.900}' } },
239
- warning: { value: '{colors.alert.bg.warning}' },
240
- success: { value: '{colors.alert.bg.success}' },
241
- error: { value: '{colors.alert.bg.error}' },
242
- loading: { value: { _light: '{colors.blue.100}', _dark: '{colors.blue.900}' } },
243
- },
244
- },
245
- input: {
246
- fg: {
247
- DEFAULT: { value: { _light: '{colors.gray.800}', _dark: '{colors.gray.50}' } },
248
- error: { value: '{colors.text.error}' },
249
- },
250
- bg: {
251
- DEFAULT: { value: { _light: '{colors.white}', _dark: '{colors.black}' } },
252
- readOnly: { value: { _light: '{colors.gray.200}', _dark: '{colors.gray.800}' } },
253
- },
254
- border: {
255
- DEFAULT: { value: { _light: '{colors.gray.100}', _dark: '{colors.gray.700}' } },
256
- hover: { value: { _light: '{colors.gray.200}', _dark: '{colors.gray.500}' } },
257
- focus: { value: '{colors.blue.400}' },
258
- filled: { value: { _light: '{colors.gray.300}', _dark: '{colors.gray.600}' } },
259
- readOnly: { value: { _light: '{colors.gray.200}', _dark: '{colors.gray.800}' } },
260
- error: { value: '{colors.red.500}' },
261
- },
262
- placeholder: {
263
- DEFAULT: { value: '{colors.gray.500}' },
264
- error: { value: '{colors.red.500}' },
265
- },
266
- },
267
- field: {
268
- placeholder: {
269
- DEFAULT: { value: '{colors.gray.500}' },
270
- disabled: { value: '{colors.gray.500/20}' },
271
- error: { value: '{colors.red.500}' },
272
- },
273
- },
274
- dialog: {
275
- bg: {
276
- DEFAULT: { value: { _light: '{colors.white}', _dark: '{colors.gray.900}' } },
277
- },
278
- fg: {
279
- DEFAULT: { value: { _light: '{colors.blackAlpha.800}', _dark: '{colors.whiteAlpha.800}' } },
280
- },
281
- },
282
- drawer: {
283
- bg: {
284
- DEFAULT: { value: { _light: '{colors.white}', _dark: '{colors.gray.900}' } },
285
- },
286
- },
287
- select: {
288
- trigger: {
289
- outline: {
290
- fg: { value: { _light: '{colors.blackAlpha.800}', _dark: '{colors.whiteAlpha.800}' } },
291
- },
292
- },
293
- item: {
294
- bg: {
295
- highlighted: { value: { _light: '{colors.blue.50}', _dark: '{colors.whiteAlpha.100}' } },
296
- },
297
- },
298
- indicator: {
299
- fg: {
300
- DEFAULT: { value: '{colors.gray.500}' },
301
- },
302
- },
303
- placeholder: {
304
- fg: {
305
- DEFAULT: { value: '{colors.gray.500}' },
306
- error: { value: '{colors.red.500}' },
307
- },
308
- },
309
- },
310
- menu: {
311
- item: {
312
- bg: {
313
- highlighted: { value: { _light: '{colors.blue.50}', _dark: '{colors.whiteAlpha.100}' } },
314
- },
315
- },
316
- },
317
- spinner: {
318
- track: {
319
- DEFAULT: { value: { _light: '{colors.blackAlpha.200}', _dark: '{colors.whiteAlpha.200}' } },
320
- },
321
- },
322
- badge: {
323
- gray: {
324
- bg: { value: { _light: '{colors.blackAlpha.50}', _dark: '{colors.whiteAlpha.100}' } },
325
- fg: { value: { _light: '{colors.blackAlpha.800}', _dark: '{colors.whiteAlpha.800}' } },
326
- },
327
- green: {
328
- bg: { value: { _light: '{colors.green.50}', _dark: '{colors.green.800}' } },
329
- fg: { value: { _light: '{colors.green.500}', _dark: '{colors.green.200}' } },
330
- },
331
- red: {
332
- bg: { value: { _light: '{colors.red.50}', _dark: '{colors.red.800}' } },
333
- fg: { value: { _light: '{colors.red.500}', _dark: '{colors.red.200}' } },
334
- },
335
- purple: {
336
- bg: { value: { _light: '{colors.purple.50}', _dark: '{colors.purple.800}' } },
337
- fg: { value: { _light: '{colors.purple.500}', _dark: '{colors.purple.100}' } },
338
- },
339
- purple_alt: {
340
- bg: { value: { _light: '{colors.purple.100}', _dark: '{colors.purple.800}' } },
341
- fg: { value: { _light: '{colors.blackAlpha.800}', _dark: '{colors.whiteAlpha.800}' } },
342
- },
343
- orange: {
344
- bg: { value: { _light: '{colors.orange.50}', _dark: '{colors.orange.800}' } },
345
- fg: { value: { _light: '{colors.orange.500}', _dark: '{colors.orange.100}' } },
346
- },
347
- blue: {
348
- bg: { value: { _light: '{colors.blue.50}', _dark: '{colors.blue.800}' } },
349
- fg: { value: { _light: '{colors.blue.500}', _dark: '{colors.blue.100}' } },
350
- },
351
- blue_alt: {
352
- bg: { value: { _light: '{colors.blue.50}', _dark: '{colors.blue.800}' } },
353
- fg: { value: { _light: '{colors.blackAlpha.800}', _dark: '{colors.whiteAlpha.800}' } },
354
- },
355
- yellow: {
356
- bg: { value: { _light: '{colors.yellow.50}', _dark: '{colors.yellow.800}' } },
357
- fg: { value: { _light: '{colors.yellow.500}', _dark: '{colors.yellow.100}' } },
358
- },
359
- teal: {
360
- bg: { value: { _light: '{colors.teal.50}', _dark: '{colors.teal.800}' } },
361
- fg: { value: { _light: '{colors.teal.500}', _dark: '{colors.teal.100}' } },
362
- },
363
- cyan: {
364
- bg: { value: { _light: '{colors.cyan.50}', _dark: '{colors.cyan.800}' } },
365
- fg: { value: { _light: '{colors.cyan.500}', _dark: '{colors.cyan.100}' } },
366
- },
367
- },
368
- tag: {
369
- root: {
370
- subtle: {
371
- bg: { value: { _light: '{colors.blackAlpha.50}', _dark: '{colors.whiteAlpha.100}' } },
372
- fg: { value: { _light: '{colors.blackAlpha.800}', _dark: '{colors.whiteAlpha.800}' } },
373
- },
374
- clickable: {
375
- bg: { value: { _light: '{colors.gray.100}', _dark: '{colors.gray.800}' } },
376
- fg: { value: { _light: '{colors.blackAlpha.800}', _dark: '{colors.whiteAlpha.800}' } },
377
- },
378
- filter: {
379
- bg: { value: { _light: '{colors.blue.50}', _dark: '{colors.blue.800}' } },
380
- },
381
- select: {
382
- bg: {
383
- DEFAULT: { value: { _light: '{colors.gray.100}', _dark: '{colors.gray.800}' } },
384
- selected: { value: { _light: '{colors.blue.500}', _dark: '{colors.blue.900}' } },
385
- },
386
- fg: { value: { _light: '{colors.gray.500}', _dark: '{colors.whiteAlpha.800}' } },
387
- },
388
- },
389
- },
390
- table: {
391
- header: {
392
- bg: { value: { _light: '{colors.blackAlpha.100}', _dark: '{colors.whiteAlpha.200}' } },
393
- fg: { value: { _light: '{colors.blackAlpha.700}', _dark: '{colors.whiteAlpha.700}' } },
394
- },
395
- },
396
- checkbox: {
397
- control: {
398
- border: {
399
- DEFAULT: { value: { _light: '{colors.gray.100}', _dark: '{colors.gray.700}' } },
400
- hover: { value: { _light: '{colors.gray.200}', _dark: '{colors.gray.500}' } },
401
- readOnly: { value: { _light: '{colors.gray.200}', _dark: '{colors.gray.800}' } },
402
- },
403
- },
404
- },
405
- radio: {
406
- control: {
407
- border: {
408
- DEFAULT: { value: { _light: '{colors.gray.100}', _dark: '{colors.gray.700}' } },
409
- hover: { value: { _light: '{colors.gray.200}', _dark: '{colors.gray.500}' } },
410
- readOnly: { value: { _light: '{colors.gray.200}', _dark: '{colors.gray.800}' } },
411
- },
412
- },
413
- },
414
- stat: {
415
- indicator: {
416
- up: { value: { _light: '{colors.green.500}', _dark: '{colors.green.400}' } },
417
- down: { value: { _light: '{colors.red.600}', _dark: '{colors.red.400}' } },
418
- },
419
- },
420
- rating: {
421
- DEFAULT: { value: { _light: '{colors.gray.200}', _dark: '{colors.gray.700}' } },
422
- highlighted: { value: '{colors.yellow.400}' },
423
- },
424
- heading: {
425
- DEFAULT: { value: { _light: '{colors.blackAlpha.800}', _dark: '{colors.whiteAlpha.800}' } },
426
- },
427
- text: {
428
- primary: { value: { _light: '{colors.blackAlpha.800}', _dark: '{colors.whiteAlpha.800}' } },
429
- secondary: { value: { _light: '{colors.gray.500}', _dark: '{colors.gray.400}' } },
430
- error: { value: '{colors.red.500}' },
431
- },
432
- border: {
433
- divider: { value: { _light: '{colors.blackAlpha.100}', _dark: '{colors.whiteAlpha.100}' } },
434
- error: { value: '{colors.red.500}' },
435
- },
436
- icon: {
437
- backTo: { value: '{colors.gray.400}' },
438
- externalLink: { value: { _light: '{colors.gray.400}', _dark: '{colors.gray.500}' } },
439
- info: { value: { _light: '{colors.gray.400}', _dark: '{colors.gray.500}' } },
440
- },
441
- address: {
442
- highlighted: {
443
- bg: { value: { _light: '{colors.blue.50}', _dark: '{colors.blue.900}' } },
444
- border: { value: { _light: '{colors.blue.200}', _dark: '{colors.blue.600}' } },
445
- },
446
- },
447
- global: {
448
- body: {
449
- bg: { value: { _light: '{colors.white}', _dark: '{colors.black}' } },
450
- fg: { value: '{colors.text.primary}' },
451
- },
452
- mark: {
453
- bg: { value: { _light: '{colors.green.100}', _dark: '{colors.green.800}' } },
454
- },
455
- scrollbar: {
456
- thumb: { value: { _light: '{colors.blackAlpha.300}', _dark: '{colors.whiteAlpha.300}' } },
457
- },
458
- },
459
- },
460
- shadows: {
461
- popover: {
462
- DEFAULT: { value: { _light: '{shadows.size.2xl}', _dark: '{shadows.dark-lg}' } },
463
- },
464
- drawer: {
465
- DEFAULT: { value: { _light: '{shadows.size.lg}', _dark: '{shadows.dark-lg}' } },
466
- },
467
- },
468
- opacity: {
469
- control: {
470
- disabled: { value: '0.2' },
471
- },
472
- },
473
- };
474
-
475
- export default semanticTokens;
@@ -1,16 +0,0 @@
1
- const x = {
2
- action_bar: { value: "0 4px 4px -4px rgb(0 0 0 / 10%), 0 2px 4px -4px rgb(0 0 0 / 6%)" },
3
- size: {
4
- xs: { value: "0px 0px 0px 1px rgba(0, 0, 0, 0.05)" },
5
- sm: { value: "0px 1px 2px 0px rgba(0, 0, 0, 0.05)" },
6
- base: { value: "0px 1px 2px 0px rgba(0, 0, 0, 0.06), 0px 1px 3px 0px rgba(0, 0, 0, 0.1)" },
7
- md: { value: "0px 2px 4px -1px rgba(0, 0, 0, 0.06), 0px 4px 6px -1px rgba(0, 0, 0, 0.1)" },
8
- lg: { value: "0px 4px 6px -2px rgba(0, 0, 0, 0.05), 0px 10px 15px -3px rgba(0, 0, 0, 0.1)" },
9
- xl: { value: "0px 10px 10px -5px rgba(0, 0, 0, 0.04), 0px 20px 25px -5px rgba(0, 0, 0, 0.1)" },
10
- "2xl": { value: "0px 15px 50px -12px rgba(0, 0, 0, 0.25)" }
11
- },
12
- "dark-lg": { value: "0px 15px 40px 0px rgba(0, 0, 0, 0.4), 0px 5px 10px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 1px rgba(0, 0, 0, 0.1)" }
13
- };
14
- export {
15
- x as default
16
- };
@@ -1,19 +0,0 @@
1
- import type { ThemingConfig } from '@chakra-ui/react';
2
-
3
- import type { ExcludeUndefined } from 'types/utils';
4
-
5
- const shadows: ExcludeUndefined<ThemingConfig['tokens']>['shadows'] = {
6
- action_bar: { value: '0 4px 4px -4px rgb(0 0 0 / 10%), 0 2px 4px -4px rgb(0 0 0 / 6%)' },
7
- size: {
8
- xs: { value: '0px 0px 0px 1px rgba(0, 0, 0, 0.05)' },
9
- sm: { value: '0px 1px 2px 0px rgba(0, 0, 0, 0.05)' },
10
- base: { value: '0px 1px 2px 0px rgba(0, 0, 0, 0.06), 0px 1px 3px 0px rgba(0, 0, 0, 0.1)' },
11
- md: { value: '0px 2px 4px -1px rgba(0, 0, 0, 0.06), 0px 4px 6px -1px rgba(0, 0, 0, 0.1)' },
12
- lg: { value: '0px 4px 6px -2px rgba(0, 0, 0, 0.05), 0px 10px 15px -3px rgba(0, 0, 0, 0.1)' },
13
- xl: { value: '0px 10px 10px -5px rgba(0, 0, 0, 0.04), 0px 20px 25px -5px rgba(0, 0, 0, 0.1)' },
14
- '2xl': { value: '0px 15px 50px -12px rgba(0, 0, 0, 0.25)' },
15
- },
16
- 'dark-lg': { value: '0px 15px 40px 0px rgba(0, 0, 0, 0.4), 0px 5px 10px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 1px rgba(0, 0, 0, 0.1)' },
17
- };
18
-
19
- export default shadows;
@@ -1,92 +0,0 @@
1
- import i from "../../configs/app/index.js";
2
- var e;
3
- const n = ((e = i.UI.fonts.body) == null ? void 0 : e.name) ?? "Inter";
4
- var t;
5
- const o = ((t = i.UI.fonts.heading) == null ? void 0 : t.name) ?? "Poppins", l = {
6
- heading: { value: `${o}, sans-serif` },
7
- body: { value: `${n}, sans-serif` }
8
- }, a = {
9
- heading: {
10
- xl: {
11
- value: {
12
- fontSize: "32px",
13
- lineHeight: "40px",
14
- fontWeight: "500",
15
- letterSpacing: "-0.5px",
16
- fontFamily: "heading"
17
- }
18
- },
19
- lg: {
20
- value: {
21
- fontSize: "24px",
22
- lineHeight: "32px",
23
- fontWeight: "500",
24
- fontFamily: "heading"
25
- }
26
- },
27
- md: {
28
- value: {
29
- fontSize: "18px",
30
- lineHeight: "24px",
31
- fontWeight: "500",
32
- fontFamily: "heading"
33
- }
34
- },
35
- sm: {
36
- value: {
37
- fontSize: "16px",
38
- lineHeight: "24px",
39
- fontWeight: "500",
40
- fontFamily: "heading"
41
- }
42
- },
43
- xs: {
44
- value: {
45
- fontSize: "14px",
46
- lineHeight: "20px",
47
- fontWeight: "600",
48
- fontFamily: "heading"
49
- }
50
- }
51
- },
52
- text: {
53
- xl: {
54
- value: {
55
- fontSize: "20px",
56
- lineHeight: "28px",
57
- fontWeight: "400",
58
- fontFamily: "body"
59
- }
60
- },
61
- md: {
62
- value: {
63
- fontSize: "16px",
64
- lineHeight: "24px",
65
- fontWeight: "400",
66
- fontFamily: "body"
67
- }
68
- },
69
- sm: {
70
- value: {
71
- fontSize: "14px",
72
- lineHeight: "20px",
73
- fontWeight: "400",
74
- fontFamily: "body"
75
- }
76
- },
77
- xs: {
78
- value: {
79
- fontSize: "12px",
80
- lineHeight: "16px",
81
- fontWeight: "400",
82
- fontFamily: "body"
83
- }
84
- }
85
- }
86
- };
87
- export {
88
- n as BODY_TYPEFACE,
89
- o as HEADING_TYPEFACE,
90
- l as fonts,
91
- a as textStyles
92
- };
@@ -1,93 +0,0 @@
1
- import type { ThemingConfig } from '@chakra-ui/react';
2
-
3
- import type { ExcludeUndefined } from 'types/utils';
4
-
5
- import config from 'configs/app';
6
-
7
- export const BODY_TYPEFACE = config.UI.fonts.body?.name ?? 'Inter';
8
- export const HEADING_TYPEFACE = config.UI.fonts.heading?.name ?? 'Poppins';
9
-
10
- export const fonts: ExcludeUndefined<ThemingConfig['tokens']>['fonts'] = {
11
- heading: { value: `${ HEADING_TYPEFACE }, sans-serif` },
12
- body: { value: `${ BODY_TYPEFACE }, sans-serif` },
13
- };
14
-
15
- export const textStyles: ThemingConfig['textStyles'] = {
16
- heading: {
17
- xl: {
18
- value: {
19
- fontSize: '32px',
20
- lineHeight: '40px',
21
- fontWeight: '500',
22
- letterSpacing: '-0.5px',
23
- fontFamily: 'heading',
24
- },
25
- },
26
- lg: {
27
- value: {
28
- fontSize: '24px',
29
- lineHeight: '32px',
30
- fontWeight: '500',
31
- fontFamily: 'heading',
32
- },
33
- },
34
- md: {
35
- value: {
36
- fontSize: '18px',
37
- lineHeight: '24px',
38
- fontWeight: '500',
39
- fontFamily: 'heading',
40
- },
41
- },
42
- sm: {
43
- value: {
44
- fontSize: '16px',
45
- lineHeight: '24px',
46
- fontWeight: '500',
47
- fontFamily: 'heading',
48
- },
49
- },
50
- xs: {
51
- value: {
52
- fontSize: '14px',
53
- lineHeight: '20px',
54
- fontWeight: '600',
55
- fontFamily: 'heading',
56
- },
57
- },
58
- },
59
- text: {
60
- xl: {
61
- value: {
62
- fontSize: '20px',
63
- lineHeight: '28px',
64
- fontWeight: '400',
65
- fontFamily: 'body',
66
- },
67
- },
68
- md: {
69
- value: {
70
- fontSize: '16px',
71
- lineHeight: '24px',
72
- fontWeight: '400',
73
- fontFamily: 'body',
74
- },
75
- },
76
- sm: {
77
- value: {
78
- fontSize: '14px',
79
- lineHeight: '20px',
80
- fontWeight: '400',
81
- fontFamily: 'body',
82
- },
83
- },
84
- xs: {
85
- value: {
86
- fontSize: '12px',
87
- lineHeight: '16px',
88
- fontWeight: '400',
89
- fontFamily: 'body',
90
- },
91
- },
92
- },
93
- };