@arcblock/ux 3.0.5 → 3.0.7

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 (370) hide show
  1. package/lib/ActionButton/index.d.ts +1 -1
  2. package/lib/ActionButton/index.js +9 -9
  3. package/lib/ActivityIndicator/index.js +6 -7
  4. package/lib/Address/compact-text.d.ts +1 -1
  5. package/lib/Address/compact-text.js +6 -7
  6. package/lib/Address/did-address.js +4 -4
  7. package/lib/Address/index.js +6 -6
  8. package/lib/Address/responsive-did-address.js +17 -17
  9. package/lib/Alert/index.d.ts +1 -1
  10. package/lib/Alert/index.js +8 -8
  11. package/lib/AnimationWaiter/index.js +10 -10
  12. package/lib/Async/index.js +4 -4
  13. package/lib/Avatar/etherscan-blockies.js +15 -15
  14. package/lib/Avatar/index.d.ts +1 -1
  15. package/lib/Avatar/index.js +6 -6
  16. package/lib/Badge/index.js +5 -5
  17. package/lib/Blocklet/blocklet.js +10 -10
  18. package/lib/Blocklet/index.js +6 -5
  19. package/lib/Blocklet/utils.js +1 -1
  20. package/lib/BlockletContext/index.d.ts +1 -1
  21. package/lib/BlockletContext/index.js +1 -1
  22. package/lib/BlockletNFT/index.js +19 -19
  23. package/lib/BlockletV2/blocklet.d.ts +1 -1
  24. package/lib/BlockletV2/blocklet.js +36 -37
  25. package/lib/BlockletV2/components/icon-text.d.ts +1 -1
  26. package/lib/BlockletV2/components/icon-text.js +13 -13
  27. package/lib/BlockletV2/components/tooltip-icon.js +22 -20
  28. package/lib/BlockletV2/index.js +8 -7
  29. package/lib/BlockletV2/utils.js +1 -1
  30. package/lib/Button/index.js +1 -1
  31. package/lib/Button/wrap.js +3 -3
  32. package/lib/ButtonGroup/index.js +1 -1
  33. package/lib/Center/index.js +4 -4
  34. package/lib/ClickToCopy/copy-button.js +3 -3
  35. package/lib/ClickToCopy/index.js +5 -5
  36. package/lib/CloseButton/index.js +2 -2
  37. package/lib/CodeBlock/index.js +3 -3
  38. package/lib/Colors/index.js +3 -3
  39. package/lib/Config/config-provider.js +15 -16
  40. package/lib/Config/index.js +3 -5
  41. package/lib/Config/theme-mode-toggle.js +1 -1
  42. package/lib/ContactForm/index.js +26 -25
  43. package/lib/CookieConsent/index.js +1 -1
  44. package/lib/CountDown/index.js +2 -2
  45. package/lib/DID/index.js +79 -78
  46. package/lib/DIDConnect/app-icon.js +10 -10
  47. package/lib/DIDConnect/app-info-item.js +5 -5
  48. package/lib/DIDConnect/auth-apps/auth-apps-info.js +1 -1
  49. package/lib/DIDConnect/auth-apps/index.js +56 -56
  50. package/lib/DIDConnect/did-connect-container.js +35 -36
  51. package/lib/DIDConnect/did-connect-footer.js +7 -7
  52. package/lib/DIDConnect/index.js +10 -10
  53. package/lib/DIDConnect/landing-page.js +45 -46
  54. package/lib/DIDConnect/powered-by.js +2 -2
  55. package/lib/DIDConnect/request-storage-access-api-dialog.js +44 -45
  56. package/lib/DIDConnect/with-container.js +25 -26
  57. package/lib/DIDConnect/with-ux-theme.js +6 -7
  58. package/lib/Datatable/CustomToolbar.d.ts +3 -1
  59. package/lib/Datatable/CustomToolbar.js +13 -13
  60. package/lib/Datatable/TableSearch.js +2 -2
  61. package/lib/Datatable/index.js +6 -6
  62. package/lib/Dialog/confirm.d.ts +1 -1
  63. package/lib/Dialog/confirm.js +20 -20
  64. package/lib/Dialog/dialog.js +7 -7
  65. package/lib/Dialog/index.js +3 -3
  66. package/lib/Dialog/types.d.ts +20 -0
  67. package/lib/Dialog/use-confirm.js +1 -1
  68. package/lib/DriftBot/index.js +1 -1
  69. package/lib/Earth/index.js +10 -10
  70. package/lib/Empty/index.js +1 -1
  71. package/lib/ErrorBoundary/fallback.js +15 -15
  72. package/lib/ErrorBoundary/index.js +1 -6
  73. package/lib/Footer/index.d.ts +1 -1
  74. package/lib/Footer/index.js +7 -7
  75. package/lib/Header/addon-button.d.ts +1 -1
  76. package/lib/Header/addon-button.js +11 -6
  77. package/lib/Header/auto-hidden.js +1 -1
  78. package/lib/Header/header.js +4 -4
  79. package/lib/Header/index.js +3 -3
  80. package/lib/Header/responsive-header.d.ts +1 -1
  81. package/lib/Header/responsive-header.js +33 -34
  82. package/lib/Icon/image.js +2 -2
  83. package/lib/Icon/index.js +12 -12
  84. package/lib/Img/index.js +1 -1
  85. package/lib/InfoRow/index.d.ts +1 -1
  86. package/lib/InfoRow/index.js +1 -2
  87. package/lib/Layout/dashboard/external-link.d.ts +1 -1
  88. package/lib/Layout/dashboard/external-link.js +1 -1
  89. package/lib/Layout/dashboard/full-page.js +8 -8
  90. package/lib/Layout/dashboard/index.js +30 -32
  91. package/lib/Layout/dashboard/sidebar.js +3 -3
  92. package/lib/Layout/dashboard-legacy/header.js +12 -12
  93. package/lib/Layout/dashboard-legacy/index.js +20 -20
  94. package/lib/Layout/dashboard-legacy/sidebar.d.ts +1 -1
  95. package/lib/Layout/dashboard-legacy/sidebar.js +20 -13
  96. package/lib/Layout/index.js +7 -7
  97. package/lib/LoadingMask/index.d.ts +1 -1
  98. package/lib/LoadingMask/index.js +4 -4
  99. package/lib/Locale/context.js +27 -27
  100. package/lib/Locale/selector.d.ts +1 -1
  101. package/lib/Locale/selector.js +4 -4
  102. package/lib/Logo/index.js +19 -19
  103. package/lib/Metric/index.js +2 -2
  104. package/lib/NFTDisplay/aspect-ratio-container.d.ts +1 -1
  105. package/lib/NFTDisplay/aspect-ratio-container.js +1 -1
  106. package/lib/NFTDisplay/broken.js +2 -2
  107. package/lib/NFTDisplay/index.js +38 -35
  108. package/lib/NFTDisplay/loading.js +1 -1
  109. package/lib/NFTDisplay/render-svg.js +4 -4
  110. package/lib/NFTDisplay/svg-embedder/img.js +3 -3
  111. package/lib/NFTDisplay/svg-embedder/inline-svg.js +1 -1
  112. package/lib/NavMenu/index.js +2 -2
  113. package/lib/NavMenu/nav-menu.js +46 -44
  114. package/lib/NavMenu/products.js +33 -33
  115. package/lib/NavMenu/style.js +1 -1
  116. package/lib/NavMenu/sub-item-group.js +1 -1
  117. package/lib/PageScroller/index.js +53 -53
  118. package/lib/PageScroller/story/FullPage.js +27 -27
  119. package/lib/PageScroller/story/PageContain.js +8 -8
  120. package/lib/Passport/index.js +3 -2
  121. package/lib/Passport/passport.js +2 -2
  122. package/lib/PhoneInput/country-select.js +24 -24
  123. package/lib/PhoneInput/index.js +13 -13
  124. package/lib/PoweredByArcBlock/index.js +10 -6
  125. package/lib/PricingTable/PricingPlan.js +1 -1
  126. package/lib/PricingTable/index.js +3 -3
  127. package/lib/QRCode/index.js +5 -5
  128. package/lib/RelativeTime/index.js +17 -17
  129. package/lib/Result/common.js +4 -6
  130. package/lib/Result/index.js +2 -2
  131. package/lib/Result/result.js +5 -5
  132. package/lib/Screenshot/BaseScreenshot/index.js +3 -3
  133. package/lib/Screenshot/index.d.ts +1 -1
  134. package/lib/Screenshot/index.js +10 -10
  135. package/lib/SessionBlocklet/index.js +8 -8
  136. package/lib/SessionManager/index.js +3 -2
  137. package/lib/SessionUser/components/did-space.d.ts +1 -1
  138. package/lib/SessionUser/components/did-space.js +14 -14
  139. package/lib/SessionUser/components/logged-in.js +33 -33
  140. package/lib/SessionUser/components/quick-login-item.js +29 -29
  141. package/lib/SessionUser/components/session-user-item.js +27 -27
  142. package/lib/SessionUser/components/session-user-switch.js +4 -4
  143. package/lib/SessionUser/components/un-login.js +7 -7
  144. package/lib/SessionUser/components/user-info.js +16 -16
  145. package/lib/SessionUser/index.js +2 -2
  146. package/lib/SharedBridge/index.js +23 -23
  147. package/lib/Spinner/index.js +2 -2
  148. package/lib/SplitButton/index.d.ts +1 -1
  149. package/lib/SplitButton/index.js +2 -2
  150. package/lib/Success/index.js +1 -1
  151. package/lib/Switch/index.js +1 -1
  152. package/lib/Tabs/index.js +16 -9
  153. package/lib/Tag/index.d.ts +1 -1
  154. package/lib/Tag/index.js +7 -7
  155. package/lib/TextCollapse/index.js +3 -3
  156. package/lib/Theme/index.js +11 -22
  157. package/lib/Theme/theme-provider.js +60 -55
  158. package/lib/Theme/theme.js +5 -4
  159. package/lib/Toast/index.js +11 -11
  160. package/lib/Typography/index.js +13 -13
  161. package/lib/UserCard/Cards/avatar-only.js +2 -2
  162. package/lib/UserCard/Cards/basic-info.d.ts +1 -1
  163. package/lib/UserCard/Cards/basic-info.js +4 -4
  164. package/lib/UserCard/Cards/index.d.ts +1 -1
  165. package/lib/UserCard/Cards/index.js +4 -4
  166. package/lib/UserCard/Cards/name-only.js +1 -1
  167. package/lib/UserCard/Container/card.js +8 -8
  168. package/lib/UserCard/Container/dialog.js +2 -2
  169. package/lib/UserCard/Content/basic.js +3 -3
  170. package/lib/UserCard/Content/clock.js +3 -3
  171. package/lib/UserCard/Content/minimal.d.ts +1 -1
  172. package/lib/UserCard/Content/minimal.js +8 -8
  173. package/lib/UserCard/Content/tooltip-avatar.js +18 -18
  174. package/lib/UserCard/components.js +23 -23
  175. package/lib/UserCard/index.js +12 -12
  176. package/lib/Util/index.js +2 -2
  177. package/lib/VerificationCode/index.js +2 -2
  178. package/lib/Video/index.js +2 -2
  179. package/lib/Wallet/Action.js +4 -4
  180. package/lib/Wallet/Download.js +6 -6
  181. package/lib/Wallet/Open.js +1 -1
  182. package/lib/WalletOSIcon/index.d.ts +2 -2
  183. package/lib/WalletOSIcon/index.js +8 -3
  184. package/lib/WebWalletSWKeeper/index.d.ts +3 -1
  185. package/lib/WebWalletSWKeeper/index.js +6 -3
  186. package/lib/WechatPrompt/index.js +1 -1
  187. package/lib/global.d.ts +28 -0
  188. package/lib/hooks/use-blocklet-logo.js +13 -15
  189. package/lib/hooks/use-clock.js +1 -1
  190. package/lib/index.js +74 -79
  191. package/lib/type.d.ts +44 -0
  192. package/lib/withTheme/index.d.ts +3 -2
  193. package/lib/withTheme/index.js +13 -14
  194. package/lib/withTracker/error_boundary.js +1 -1
  195. package/package.json +7 -7
  196. package/src/ActionButton/index.jsx +1 -1
  197. package/src/Address/compact-text.jsx +1 -1
  198. package/src/Address/did-address.tsx +1 -1
  199. package/src/Address/index.tsx +1 -1
  200. package/src/Address/responsive-did-address.tsx +3 -3
  201. package/src/Alert/index.jsx +1 -1
  202. package/src/Avatar/index.jsx +1 -1
  203. package/src/Badge/index.jsx +1 -1
  204. package/src/BlockletContext/index.tsx +1 -1
  205. package/src/BlockletNFT/index.jsx +1 -1
  206. package/src/BlockletV2/blocklet.tsx +1 -1
  207. package/src/BlockletV2/components/icon-text.tsx +4 -4
  208. package/src/BlockletV2/components/tooltip-icon.tsx +5 -3
  209. package/src/Button/wrap.jsx +1 -1
  210. package/src/Center/index.tsx +1 -1
  211. package/src/ClickToCopy/copy-button.tsx +1 -1
  212. package/src/CloseButton/index.tsx +1 -1
  213. package/src/ContactForm/index.tsx +9 -2
  214. package/src/DID/index.tsx +5 -4
  215. package/src/DIDConnect/app-info-item.tsx +1 -1
  216. package/src/DIDConnect/auth-apps/index.tsx +8 -8
  217. package/src/DIDConnect/did-connect-container.tsx +2 -2
  218. package/src/DIDConnect/did-connect-footer.tsx +1 -1
  219. package/src/DIDConnect/landing-page.tsx +6 -6
  220. package/src/DIDConnect/request-storage-access-api-dialog.tsx +1 -2
  221. package/src/Datatable/CustomToolbar.jsx +1 -1
  222. package/src/Datatable/index.jsx +2 -2
  223. package/src/Dialog/confirm.jsx +1 -1
  224. package/src/Earth/index.tsx +1 -1
  225. package/src/Footer/index.tsx +5 -2
  226. package/src/Header/addon-button.tsx +7 -2
  227. package/src/Header/header.tsx +1 -1
  228. package/src/Header/responsive-header.tsx +1 -2
  229. package/src/Icon/index.tsx +1 -1
  230. package/src/InfoRow/index.tsx +1 -2
  231. package/src/Layout/dashboard/external-link.tsx +1 -1
  232. package/src/Layout/dashboard/full-page.tsx +1 -1
  233. package/src/Layout/dashboard/index.tsx +1 -1
  234. package/src/Layout/dashboard/sidebar.tsx +5 -2
  235. package/src/Layout/dashboard-legacy/header.tsx +5 -5
  236. package/src/Layout/dashboard-legacy/index.tsx +3 -3
  237. package/src/Layout/dashboard-legacy/sidebar.tsx +10 -2
  238. package/src/Layout/index.tsx +2 -2
  239. package/src/LoadingMask/index.tsx +5 -5
  240. package/src/Locale/context.tsx +3 -3
  241. package/src/Locale/selector.tsx +1 -1
  242. package/src/Logo/index.tsx +1 -1
  243. package/src/NFTDisplay/aspect-ratio-container.tsx +1 -1
  244. package/src/NFTDisplay/index.tsx +2 -1
  245. package/src/NFTDisplay/render-svg.tsx +1 -1
  246. package/src/NavMenu/nav-menu.tsx +8 -5
  247. package/src/NavMenu/products.tsx +3 -1
  248. package/src/PageScroller/index.tsx +4 -4
  249. package/src/PhoneInput/country-select.tsx +3 -3
  250. package/src/PhoneInput/index.tsx +1 -1
  251. package/src/PoweredByArcBlock/index.tsx +5 -1
  252. package/src/QRCode/index.tsx +1 -1
  253. package/src/RelativeTime/index.tsx +3 -3
  254. package/src/Result/result.tsx +1 -1
  255. package/src/Screenshot/index.tsx +2 -2
  256. package/src/SessionUser/components/did-space.tsx +1 -1
  257. package/src/SessionUser/components/session-user-item.tsx +1 -1
  258. package/src/SharedBridge/index.tsx +2 -2
  259. package/src/Spinner/index.tsx +1 -1
  260. package/src/SplitButton/index.tsx +1 -1
  261. package/src/Success/index.tsx +1 -1
  262. package/src/Tabs/index.tsx +10 -3
  263. package/src/Tag/index.jsx +1 -1
  264. package/src/TextCollapse/index.tsx +1 -1
  265. package/src/Theme/theme-provider.tsx +11 -6
  266. package/src/Theme/theme.ts +5 -0
  267. package/src/Typography/index.tsx +1 -1
  268. package/src/UserCard/Cards/basic-info.tsx +1 -1
  269. package/src/UserCard/Cards/index.tsx +1 -1
  270. package/src/UserCard/Container/card.tsx +2 -2
  271. package/src/UserCard/Container/dialog.tsx +1 -1
  272. package/src/UserCard/Content/basic.tsx +2 -2
  273. package/src/UserCard/Content/minimal.tsx +1 -1
  274. package/src/UserCard/Content/tooltip-avatar.tsx +4 -4
  275. package/src/VerificationCode/index.tsx +1 -1
  276. package/src/WalletOSIcon/index.tsx +7 -2
  277. package/src/WebWalletSWKeeper/index.tsx +6 -1
  278. package/src/withTheme/index.tsx +7 -3
  279. package/vite.config.mjs +5 -2
  280. package/lib/ActionButton/ActionButton.stories.d.ts +0 -18
  281. package/lib/ActivityIndicator/ActivityIndicator.stories.d.ts +0 -8
  282. package/lib/Address/Address.stories.d.ts +0 -16
  283. package/lib/Alert/Alert.stories.d.ts +0 -28
  284. package/lib/AnimationWaiter/AnimationWaiter.stories.d.ts +0 -21
  285. package/lib/AnimationWaiter/dark-animation.json.js +0 -27
  286. package/lib/AnimationWaiter/default-animation.json.js +0 -29
  287. package/lib/Avatar/Avatar.stories.d.ts +0 -11
  288. package/lib/Badge/Badge.stories.d.ts +0 -13
  289. package/lib/Blocklet/Blocklet.stories.d.ts +0 -17
  290. package/lib/BlockletNFT/BlockletNFT.stories.d.ts +0 -17
  291. package/lib/BlockletV2/Blocklet.stories.d.ts +0 -18
  292. package/lib/Button/Button.stories.d.ts +0 -19
  293. package/lib/Center/Center.stories.d.ts +0 -18
  294. package/lib/ClickToCopy/ClickToCopy.stories.d.ts +0 -16
  295. package/lib/CodeBlock/CodeBlock.stories.d.ts +0 -20
  296. package/lib/Colors/Colors.stories.d.ts +0 -34
  297. package/lib/Config/Config.stories.d.ts +0 -14
  298. package/lib/ContactForm/ContactForm.stories.d.ts +0 -23
  299. package/lib/CookieConsent/CookieConsent.stories.d.ts +0 -18
  300. package/lib/CountDown/CountDown.stories.d.ts +0 -14
  301. package/lib/DID/DID.stories.d.ts +0 -15
  302. package/lib/Datatable/Datatable.stories.d.ts +0 -32
  303. package/lib/Dialog/Dialog.stories.d.ts +0 -20
  304. package/lib/DidLogo/Logo.stories.d.ts +0 -8
  305. package/lib/Earth/Earth.stories.d.ts +0 -18
  306. package/lib/Earth/countries.json.js +0 -13
  307. package/lib/Empty/Empty.stories.d.ts +0 -17
  308. package/lib/ErrorBoundary/ErrorBoundary.stories.d.ts +0 -12
  309. package/lib/Footer/Footer.stories.d.ts +0 -12
  310. package/lib/Header/Header.stories.d.ts +0 -21
  311. package/lib/Icon/Icon.stories.d.ts +0 -23
  312. package/lib/Img/Img.stories.d.ts +0 -13
  313. package/lib/InfoRow/InfoRow.stories.d.ts +0 -14
  314. package/lib/Layout/Layout.stories.d.ts +0 -23
  315. package/lib/Locale/LocaleSelector.stories.d.ts +0 -22
  316. package/lib/Logo/Logo.stories.d.ts +0 -22
  317. package/lib/Logo/images/logo-dark-text.svg.js +0 -5
  318. package/lib/Logo/images/logo-dark-top.svg.js +0 -5
  319. package/lib/Logo/images/logo-light-text.svg.js +0 -5
  320. package/lib/Logo/images/logo-light-top.svg.js +0 -5
  321. package/lib/Metric/Metric.stories.d.ts +0 -14
  322. package/lib/NFTDisplay/NFTBroken.svg.js +0 -108
  323. package/lib/NFTDisplay/NFTDisplay.stories.d.ts +0 -15
  324. package/lib/NavMenu/NavMenu.stories.d.ts +0 -17
  325. package/lib/NavMenu/images/OCAP.svg.js +0 -5
  326. package/lib/NavMenu/images/abt-network.svg.js +0 -7
  327. package/lib/NavMenu/images/ai-kit.svg.js +0 -7
  328. package/lib/NavMenu/images/aigne.svg.js +0 -7
  329. package/lib/NavMenu/images/aistro.svg.js +0 -5
  330. package/lib/NavMenu/images/arcsphere.svg.js +0 -10
  331. package/lib/NavMenu/images/blocklet-framework.svg.js +0 -7
  332. package/lib/NavMenu/images/blocklet-launcher.svg.js +0 -5
  333. package/lib/NavMenu/images/blocklet-server.svg.js +0 -7
  334. package/lib/NavMenu/images/blocklet-store.svg.js +0 -5
  335. package/lib/NavMenu/images/creator-studio.svg.js +0 -7
  336. package/lib/NavMenu/images/did-connect.svg.js +0 -5
  337. package/lib/NavMenu/images/did-name-service.svg.js +0 -5
  338. package/lib/NavMenu/images/did-wallet.svg.js +0 -7
  339. package/lib/NavMenu/images/did.svg.js +0 -5
  340. package/lib/NavMenu/images/nft-studio.svg.js +0 -5
  341. package/lib/NavMenu/images/vc.svg.js +0 -5
  342. package/lib/NavMenu/images/web3-kit.svg.js +0 -7
  343. package/lib/PageScroller/story/PageScroller.stories.d.ts +0 -13
  344. package/lib/PhoneInput/PhoneInput.stories.d.ts +0 -12
  345. package/lib/PricingTable/PricingTable.stories.d.ts +0 -8
  346. package/lib/QRCode/QRCode.stories.d.ts +0 -13
  347. package/lib/RelativeTime/RelativeTime.stories.d.ts +0 -20
  348. package/lib/Result/Result.stories.d.ts +0 -21
  349. package/lib/Screenshot/Screenshot.stories.d.ts +0 -13
  350. package/lib/SessionManager/SessionManager.stories.d.ts +0 -9
  351. package/lib/SessionUser/images/did-spaces.svg.js +0 -5
  352. package/lib/Sparkline/Sparkline.stories.d.ts +0 -12
  353. package/lib/Spinner/Spinner.stories.d.ts +0 -18
  354. package/lib/SplitButton/SplitButton.stories.d.ts +0 -15
  355. package/lib/Switch/Switch.stories.d.ts +0 -13
  356. package/lib/Tabs/Tabs.stories.d.ts +0 -14
  357. package/lib/Tag/Tag.stories.d.ts +0 -13
  358. package/lib/TextCollapse/TextCollapse.stories.d.ts +0 -28
  359. package/lib/Theme/Theme.stories.d.ts +0 -10
  360. package/lib/Toast/Toast.stories.d.ts +0 -15
  361. package/lib/UserCard/UserCard.stories.d.ts +0 -18
  362. package/lib/Util/WebWalletOpener.stories.d.ts +0 -5
  363. package/lib/Video/Video.stories.d.ts +0 -6
  364. package/lib/Wallet/Action.stories.d.ts +0 -8
  365. package/lib/Wallet/Download.stories.d.ts +0 -9
  366. package/lib/Wallet/OpenInWallet.stories.d.ts +0 -5
  367. package/lib/Wallet/images/android_download.svg.js +0 -5
  368. package/lib/Wallet/images/app-store.svg.js +0 -5
  369. package/lib/Wallet/images/google-play.svg.js +0 -5
  370. package/lib/ux.css +0 -1
@@ -1,13 +1,13 @@
1
1
  import { jsxs as a, jsx as t, Fragment as F } from "react/jsx-runtime";
2
2
  import { useRef as I } from "react";
3
3
  import o from "prop-types";
4
- import { useTheme as q, useMediaQuery as m, Typography as f, Portal as A, CircularProgress as O } from "@mui/material";
5
- import W from "../Avatar/index.js";
6
- import Z from "../Icon/index.js";
7
- import E from "../Button/index.js";
8
- import H from "../Img/index.js";
9
- import { styled as Q } from "../Theme/index.js";
10
- function U(e, s = 1) {
4
+ import { useMediaQuery as m, Typography as f, Portal as q, CircularProgress as A } from "@mui/material";
5
+ import O from "../Avatar";
6
+ import Z from "../Icon";
7
+ import H from "../Button";
8
+ import Q from "../Img";
9
+ import { styled as U, useTheme as W } from "../Theme";
10
+ function E(e, s = 1) {
11
11
  let c = e;
12
12
  const r = ["", "k", "m", "b"];
13
13
  let i = 0;
@@ -15,7 +15,7 @@ function U(e, s = 1) {
15
15
  c = (c / 1e3).toFixed(s), i += 1;
16
16
  return e && `${c}${r[i]}`;
17
17
  }
18
- const G = Q("div")`
18
+ const G = U("div")`
19
19
  &.arcblock-blocklet {
20
20
  padding: 0 16px;
21
21
  background: ${(e) => e.theme.palette.common.white};
@@ -189,7 +189,7 @@ v.propTypes = {
189
189
  };
190
190
  function J({
191
191
  title: e,
192
- did: s,
192
+ did: s = void 0,
193
193
  description: c = null,
194
194
  cover: r = null,
195
195
  size: i = "auto",
@@ -201,33 +201,33 @@ function J({
201
201
  isStickyButton: z = !1,
202
202
  onButtonClick: _ = null,
203
203
  onMainClick: N = null,
204
- className: C = null,
205
- scaleClickZone: $ = 1.5,
204
+ className: $ = null,
205
+ scaleClickZone: C = 1.5,
206
206
  ...M
207
207
  }) {
208
208
  const x = (l, k = () => !1) => (d, ...j) => {
209
209
  k() ? (d.preventDefault(), d.stopPropagation()) : l instanceof Function && (d.preventDefault(), d.stopPropagation(), l(...j));
210
- }, S = x(_, () => !!(h || u || b)), T = x(N), p = q(), B = m(p.breakpoints.down("md")), P = m(p.breakpoints.down("lg")), D = m(p.breakpoints.up("lg")), n = i === "auto" ? B ? "xs" : P ? "sm" : "md" : i, R = i === "auto" ? D ? 80 : 40 : i === "md" ? 80 : 40, g = I(null);
210
+ }, S = x(_, () => !!(h || u || b)), T = x(N), p = W(), P = m(p.breakpoints.down("md")), B = m(p.breakpoints.down("lg")), D = m(p.breakpoints.up("lg")), n = i === "auto" ? P ? "xs" : B ? "sm" : "md" : i, R = i === "auto" ? D ? 80 : 40 : i === "md" ? 80 : 40, g = I(null);
211
211
  return /* @__PURE__ */ a(
212
212
  G,
213
213
  {
214
214
  ...M,
215
- scaleClickZone: $,
216
- className: `${C} arcblock-blocklet arcblock-blocklet--size-${n}`,
215
+ scaleClickZone: C,
216
+ className: `${$} arcblock-blocklet arcblock-blocklet--size-${n}`,
217
217
  children: [
218
218
  /* @__PURE__ */ t("div", { className: "arcblock-blocklet__content", children: /* @__PURE__ */ t("div", { className: "arcblock-blocklet__content--main", onClick: T, ref: g, children: /* @__PURE__ */ a("div", { className: "arcblock-blocklet__content--body", children: [
219
- r ? /* @__PURE__ */ t("div", { className: "arcblock-blocklet__cover", children: /* @__PURE__ */ t(H, { src: r }) }) : s && /* @__PURE__ */ t("div", { className: "arcblock-blocklet__cover", children: /* @__PURE__ */ t(W, { did: s, size: R }) }),
219
+ r ? /* @__PURE__ */ t("div", { className: "arcblock-blocklet__cover", children: /* @__PURE__ */ t(Q, { src: r }) }) : s && /* @__PURE__ */ t("div", { className: "arcblock-blocklet__cover", children: /* @__PURE__ */ t(O, { did: s, size: R }) }),
220
220
  /* @__PURE__ */ a("div", { className: "arcblock-blocklet__info", children: [
221
221
  /* @__PURE__ */ t(f, { component: "h3", variant: "h3", className: "arcblock-blocklet__title", title: e, children: e }),
222
222
  c && /* @__PURE__ */ t(f, { component: "div", variant: "body2", className: "arcblock-blocklet__describe", title: c, children: c }),
223
- ["md", "sm", "xs"].includes(n) && /* @__PURE__ */ t(A, { container: g.current, disablePortal: n === "md", children: /* @__PURE__ */ t(
223
+ ["md", "sm", "xs"].includes(n) && /* @__PURE__ */ t(q, { container: g.current, disablePortal: n === "md", children: /* @__PURE__ */ t(
224
224
  "div",
225
225
  {
226
226
  className: "arcblock-blocklet__button",
227
227
  onClick: S,
228
228
  style: { display: z ? "block" : "" },
229
229
  children: h || _ && /* @__PURE__ */ a(
230
- E,
230
+ H,
231
231
  {
232
232
  className: "arcblock-blocklet__button--hover",
233
233
  variant: "outlined",
@@ -237,7 +237,7 @@ function J({
237
237
  style: n === "md" ? { padding: "3px 20px", fontSize: "14px" } : { padding: "3px 15px", minWidth: "54px", fontSize: "13px" },
238
238
  children: [
239
239
  b && /* @__PURE__ */ t(
240
- O,
240
+ A,
241
241
  {
242
242
  size: n === "md" ? 15 : 13,
243
243
  style: { marginRight: 3, color: "inherit" }
@@ -260,7 +260,7 @@ function J({
260
260
  title: l.title,
261
261
  children: l.empty ? null : /* @__PURE__ */ a(F, { children: [
262
262
  /* @__PURE__ */ t(v, { name: l.icon }),
263
- l.pretty ? U(l.value) : l.value
263
+ l.pretty ? E(l.value) : l.value
264
264
  ] })
265
265
  },
266
266
  k
@@ -36,4 +36,4 @@ export interface IBlockletStore extends CardProps {
36
36
  color?: string;
37
37
  }[];
38
38
  }
39
- export default function BlockletStore(props: IBlockletStore): import("react/jsx-runtime").JSX.Element;
39
+ export default function BlockletStore({ ...props }: IBlockletStore): import("react/jsx-runtime").JSX.Element;
@@ -1,17 +1,16 @@
1
1
  import { jsxs as r, jsx as t } from "react/jsx-runtime";
2
- import { isValidElement as S } from "react";
3
- import E from "@iconify-icons/tabler/cloud-download";
2
+ import { isValidElement as W } from "react";
3
+ import F from "@iconify-icons/tabler/cloud-download";
4
4
  import { Icon as s } from "@iconify/react";
5
- import { Verified as F } from "@mui/icons-material";
6
- import { useTheme as O, Card as V, Stack as x, Typography as I, Box as z, CircularProgress as q } from "@mui/material";
7
- import B from "../Avatar/index.js";
8
- import G from "../Button/index.js";
9
- import "../Theme/theme.js";
10
- import "../Theme/theme-provider.js";
11
- import d from "./components/icon-text.js";
12
- import T from "./components/tooltip-icon.js";
13
- import { strippedString as M, formatDownloadCount as J } from "./utils.js";
14
- function co(A) {
5
+ import { Verified as O } from "@mui/icons-material";
6
+ import { Card as V, Stack as h, Typography as I, Box as z, CircularProgress as E } from "@mui/material";
7
+ import T from "../Avatar";
8
+ import q from "../Button";
9
+ import { useTheme as G } from "../Theme";
10
+ import d from "./components/icon-text";
11
+ import B from "./components/tooltip-icon";
12
+ import { strippedString as M, formatDownloadCount as J } from "./utils";
13
+ function co({ ...A }) {
15
14
  const {
16
15
  title: e,
17
16
  description: n = "",
@@ -22,9 +21,9 @@ function co(A) {
22
21
  did: u,
23
22
  official: l,
24
23
  buttonText: R = "Install",
25
- buttonDisabled: y,
24
+ buttonDisabled: g,
26
25
  buttonLoading: p,
27
- button: g,
26
+ button: y,
28
27
  onButtonClick: k = () => {
29
28
  },
30
29
  onMainClick: b,
@@ -33,10 +32,10 @@ function co(A) {
33
32
  icons: f,
34
33
  status: i,
35
34
  ...v
36
- } = A, h = O(), w = (o, H = () => !1) => (C, ...N) => {
37
- const W = o instanceof Function;
38
- (H() || W) && (C.preventDefault(), C.stopPropagation(), W && o(...N));
39
- }, _ = b && w(b), j = w(k, () => !!(g || y || p)), a = S(e) ? { children: e } : { title: M(e), dangerouslySetInnerHTML: { __html: e } }, c = S(n) ? { children: n } : { title: M(n), dangerouslySetInnerHTML: { __html: n } };
35
+ } = A, x = G(), w = (o, H = () => !1) => (C, ...N) => {
36
+ const S = o instanceof Function;
37
+ (H() || S) && (C.preventDefault(), C.stopPropagation(), S && o(...N));
38
+ }, _ = b && w(b), j = w(k, () => !!(y || g || p)), c = W(e) ? { children: e } : { title: M(e), dangerouslySetInnerHTML: { __html: e } }, a = W(n) ? { children: n } : { title: M(n), dangerouslySetInnerHTML: { __html: n } };
40
39
  return /* @__PURE__ */ r(
41
40
  V,
42
41
  {
@@ -46,7 +45,7 @@ function co(A) {
46
45
  sx: { p: { xs: 2, md: 3 }, borderRadius: 1, ...v.sx },
47
46
  children: [
48
47
  /* @__PURE__ */ r(
49
- x,
48
+ h,
50
49
  {
51
50
  direction: "row",
52
51
  sx: {
@@ -57,12 +56,12 @@ function co(A) {
57
56
  "& > *": { flexShrink: 0 }
58
57
  },
59
58
  children: [
60
- /* @__PURE__ */ t(B, { src: D, did: u, size: 48, variant: "rounded", style: { borderRadius: "8px", overflow: "hidden" } }),
59
+ /* @__PURE__ */ t(T, { src: D, did: u, size: 48, variant: "rounded", style: { borderRadius: "8px", overflow: "hidden" } }),
61
60
  /* @__PURE__ */ t(
62
61
  I,
63
62
  {
64
63
  className: "blocklet-title",
65
- ...a,
64
+ ...c,
66
65
  sx: [
67
66
  {
68
67
  fontWeight: "fontWeightMedium",
@@ -74,7 +73,7 @@ function co(A) {
74
73
  pl: 0.5,
75
74
  "&&": { flexShrink: 1 }
76
75
  },
77
- ...Array.isArray(a.sx) ? a.sx : [a.sx]
76
+ ...Array.isArray(c.sx) ? c.sx : [c.sx]
78
77
  ]
79
78
  }
80
79
  ),
@@ -89,37 +88,37 @@ function co(A) {
89
88
  gap: 1
90
89
  },
91
90
  children: [
92
- l && /* @__PURE__ */ t(T, { title: l.tooltip, children: /* @__PURE__ */ t(F, { sx: { color: l.color || "#D97706", fontSize: l.size || 18 } }) }),
93
- f == null ? void 0 : f.map((o) => /* @__PURE__ */ t(T, { title: o.title, children: typeof o.icon == "string" ? /* @__PURE__ */ t(s, { icon: o.icon, style: { color: o.color } }) : o.icon }, o.key))
91
+ l && /* @__PURE__ */ t(B, { title: l.tooltip, children: /* @__PURE__ */ t(O, { sx: { color: l.color || "#D97706", fontSize: l.size || 18 } }) }),
92
+ f == null ? void 0 : f.map((o) => /* @__PURE__ */ t(B, { title: o.title, children: typeof o.icon == "string" ? /* @__PURE__ */ t(s, { icon: o.icon, style: { color: o.color } }) : o.icon }, o.key))
94
93
  ]
95
94
  }
96
95
  ),
97
96
  k && /* @__PURE__ */ r(
98
- G,
97
+ q,
99
98
  {
100
99
  variant: "outlined",
101
100
  size: "small",
102
- disabled: y || p,
101
+ disabled: g || p,
103
102
  style: {
104
- color: h.palette.text.primary,
105
- borderColor: h.palette.grey[300],
103
+ color: x.palette.text.primary,
104
+ borderColor: x.palette.grey[300],
106
105
  borderRadius: 8,
107
106
  fontSize: 13,
108
- fontWeight: h.typography.fontWeightMedium
107
+ fontWeight: x.typography.fontWeightMedium
109
108
  },
110
109
  onClick: j,
111
110
  children: [
112
- p && /* @__PURE__ */ t(q, { size: 15, style: { marginRight: 3, color: "inherit" } }),
111
+ p && /* @__PURE__ */ t(E, { size: 15, style: { marginRight: 3, color: "inherit" } }),
113
112
  R
114
113
  ]
115
114
  }
116
115
  ),
117
- g
116
+ y
118
117
  ]
119
118
  }
120
119
  ),
121
120
  /* @__PURE__ */ t(
122
- x,
121
+ h,
123
122
  {
124
123
  sx: {
125
124
  py: 2
@@ -129,7 +128,7 @@ function co(A) {
129
128
  {
130
129
  className: "blocklet-description",
131
130
  variant: "body2",
132
- ...c,
131
+ ...a,
133
132
  sx: [
134
133
  {
135
134
  color: "text.secondary",
@@ -141,14 +140,14 @@ function co(A) {
141
140
  cursor: "default",
142
141
  height: 40
143
142
  },
144
- ...Array.isArray(c.sx) ? c.sx : [c.sx]
143
+ ...Array.isArray(a.sx) ? a.sx : [a.sx]
145
144
  ]
146
145
  }
147
146
  )
148
147
  }
149
148
  ),
150
149
  /* @__PURE__ */ r(
151
- x,
150
+ h,
152
151
  {
153
152
  direction: "row",
154
153
  sx: {
@@ -157,8 +156,8 @@ function co(A) {
157
156
  color: "text.secondary"
158
157
  },
159
158
  children: [
160
- /* @__PURE__ */ t(d, { icon: /* @__PURE__ */ t(B, { src: L, did: u, size: 20, variant: "circle" }), maxWidth: 200, children: P }),
161
- /* @__PURE__ */ t(d, { icon: /* @__PURE__ */ t(s, { icon: E }), title: m, children: J(m) }),
159
+ /* @__PURE__ */ t(d, { icon: /* @__PURE__ */ t(T, { src: L, did: u, size: 20, variant: "circle" }), maxWidth: 200, children: P }),
160
+ /* @__PURE__ */ t(d, { icon: /* @__PURE__ */ t(s, { icon: F }), title: m, children: J(m) }),
162
161
  i == null ? void 0 : i.filter((o) => o.align !== "right").map((o) => /* @__PURE__ */ t(
163
162
  d,
164
163
  {
@@ -6,4 +6,4 @@ export default function IconText({ icon, children, maxWidth, title, sx, }: {
6
6
  maxWidth?: number;
7
7
  title?: React.ReactNode;
8
8
  sx?: StackProps['sx'];
9
- }): false | "" | 0 | 0n | import("react/jsx-runtime").JSX.Element | null | undefined;
9
+ }): false | "" | 0 | 0n | import("react/jsx-runtime").JSX.Element | null;
@@ -1,15 +1,15 @@
1
- import { jsxs as p, jsx as t } from "react/jsx-runtime";
2
- import { Stack as f, Typography as n } from "@mui/material";
3
- import s from "./tooltip-icon.js";
4
- function d({
5
- icon: e,
6
- children: o,
1
+ import { jsxs as l, jsx as t } from "react/jsx-runtime";
2
+ import { Stack as n, Typography as p } from "@mui/material";
3
+ import f from "./tooltip-icon";
4
+ function u({
5
+ icon: e = null,
6
+ children: o = null,
7
7
  maxWidth: i = 100,
8
- title: a,
9
- sx: r
8
+ title: a = void 0,
9
+ sx: r = {}
10
10
  }) {
11
- return (o === 0 || o) && /* @__PURE__ */ p(
12
- f,
11
+ return (o === 0 || o) && /* @__PURE__ */ l(
12
+ n,
13
13
  {
14
14
  direction: "row",
15
15
  sx: [
@@ -22,8 +22,8 @@ function d({
22
22
  ],
23
23
  children: [
24
24
  e,
25
- /* @__PURE__ */ t(s, { title: a || (typeof o == "string" ? o : ""), children: /* @__PURE__ */ t(
26
- n,
25
+ /* @__PURE__ */ t(f, { title: a || (typeof o == "string" ? o : ""), children: /* @__PURE__ */ t(
26
+ p,
27
27
  {
28
28
  variant: "body2",
29
29
  sx: {
@@ -41,5 +41,5 @@ function d({
41
41
  );
42
42
  }
43
43
  export {
44
- d as default
44
+ u as default
45
45
  };
@@ -1,30 +1,31 @@
1
- import { jsx as f } from "react/jsx-runtime";
2
- import { Tooltip as u, tooltipClasses as c } from "@mui/material";
3
- function g({
4
- title: a,
5
- sx: d,
1
+ import { jsx as x } from "react/jsx-runtime";
2
+ import { Tooltip as n, tooltipClasses as f } from "@mui/material";
3
+ import { mergeSx as u } from "../../Util/style";
4
+ function I({
5
+ title: t,
6
+ sx: c,
6
7
  children: p,
7
8
  slotProps: e,
8
- fontSize: m = 12,
9
- fontWeight: n = 500,
9
+ fontSize: a = 12,
10
+ fontWeight: m = 500,
10
11
  color: r = "text.contrast",
11
- ...t
12
+ ...i
12
13
  }) {
13
- var x, i;
14
- return a ? /* @__PURE__ */ f(
15
- u,
14
+ var o;
15
+ return t ? /* @__PURE__ */ x(
16
+ n,
16
17
  {
17
- title: a,
18
+ title: t,
18
19
  placement: "top",
19
- ...t,
20
+ ...i,
20
21
  slotProps: {
21
22
  popper: {
22
23
  ...e == null ? void 0 : e.popper,
23
- sx: [
24
+ sx: u(
24
25
  {
25
- [`& .${c.tooltip}`]: {
26
- fontSize: m,
27
- fontWeight: n,
26
+ [`& .${f.tooltip}`]: {
27
+ fontSize: a,
28
+ fontWeight: m,
28
29
  boxShadow: 2,
29
30
  marginBottom: "6px !important",
30
31
  borderRadius: "8px",
@@ -34,8 +35,9 @@ function g({
34
35
  alignItems: "center"
35
36
  }
36
37
  },
37
- ...Array.isArray((x = e == null ? void 0 : e.popper) == null ? void 0 : x.sx) ? e.popper.sx : [(i = e == null ? void 0 : e.popper) == null ? void 0 : i.sx]
38
- ]
38
+ // @ts-expect-error
39
+ (o = e == null ? void 0 : e.popper) == null ? void 0 : o.sx
40
+ )
39
41
  }
40
42
  },
41
43
  children: p
@@ -43,5 +45,5 @@ function g({
43
45
  ) : p;
44
46
  }
45
47
  export {
46
- g as default
48
+ I as default
47
49
  };
@@ -1,9 +1,10 @@
1
- import { default as p, strippedString as a } from "./utils.js";
2
- import o from "./blocklet.js";
3
- import { default as l } from "./components/tooltip-icon.js";
1
+ import { default as f, strippedString as p } from "./utils";
2
+ import "./blocklet";
3
+ import { default as a } from "./blocklet";
4
+ import { default as m } from "./components/tooltip-icon";
4
5
  export {
5
- p as ActionButton,
6
- l as TooltipIcon,
7
- o as default,
8
- a as strippedString
6
+ f as ActionButton,
7
+ m as TooltipIcon,
8
+ a as default,
9
+ p as strippedString
9
10
  };
@@ -1,4 +1,4 @@
1
- import { styled as r } from "../Theme/index.js";
1
+ import { styled as r } from "../Theme";
2
2
  const i = r("div")`
3
3
  background-color: transparent !important;
4
4
  & > :not(.Mui-disabled) {
@@ -1,5 +1,5 @@
1
1
  import { Button as o } from "@mui/material";
2
- import t from "./wrap.js";
2
+ import t from "./wrap";
3
3
  const n = t(o);
4
4
  export {
5
5
  n as default
@@ -2,8 +2,8 @@ import { jsx as u, jsxs as x } from "react/jsx-runtime";
2
2
  import r from "prop-types";
3
3
  import i from "lodash/isUndefined";
4
4
  import { CircularProgress as j } from "@mui/material";
5
- import o from "../Colors/themes/default.js";
6
- import { mergeProps as k } from "../Util/index.js";
5
+ import o from "../Colors";
6
+ import { mergeProps as k } from "../Util";
7
7
  const y = {
8
8
  did: {
9
9
  contained: { backgroundColor: o.did.primary, color: o.common.white },
@@ -15,7 +15,7 @@ const y = {
15
15
  }
16
16
  };
17
17
  function q(g) {
18
- function d(c) {
18
+ function d({ ...c }) {
19
19
  const e = Object.assign({}, c);
20
20
  i(e.rounded) && (e.rounded = !1), i(e.size) && (e.size = "medium"), i(e.forwardedRef) && (e.forwardedRef = null), i(e.style) && (e.style = {});
21
21
  const s = k(e, d, ["style"]), { children: b, rounded: w, loading: f, disabled: h, style: R, forwardedRef: C, color: n, ...t } = s, z = h || f;
@@ -1,5 +1,5 @@
1
1
  import { ButtonGroup as o } from "@mui/material";
2
- import t from "../Button/wrap.js";
2
+ import t from "../Button/wrap";
3
3
  const m = t(o);
4
4
  export {
5
5
  m as default
@@ -1,16 +1,16 @@
1
1
  import { jsx as n } from "react/jsx-runtime";
2
- import { styled as r } from "../Theme/index.js";
2
+ import { styled as r } from "../Theme";
3
3
  function o({
4
- children: e,
4
+ children: e = null,
5
5
  relative: i = "screen"
6
6
  }) {
7
7
  let t = {};
8
8
  return i === "parent" && (t = {
9
9
  width: "100%",
10
10
  height: "100%"
11
- }), /* @__PURE__ */ n(s, { style: t, children: e });
11
+ }), /* @__PURE__ */ n(l, { style: t, children: e });
12
12
  }
13
- const s = r("div")`
13
+ const l = r("div")`
14
14
  flex: 1;
15
15
  width: 100vw;
16
16
  height: 100vh;
@@ -2,15 +2,15 @@ import { jsx as o } from "react/jsx-runtime";
2
2
  import { Tooltip as u } from "@mui/material";
3
3
  import { green as y } from "@mui/material/colors";
4
4
  import { Check as a, ContentCopy as C } from "@mui/icons-material";
5
- import h from "./hook.js";
5
+ import d from "./hook";
6
6
  function S({
7
7
  content: c = "",
8
8
  locale: m = "en",
9
- render: e,
9
+ render: e = void 0,
10
10
  showTooltip: l = !0,
11
11
  ...r
12
12
  }) {
13
- const { containerRef: s, copied: t, copy: f, texts: n } = h({ content: c, locale: m }), i = {
13
+ const { containerRef: s, copied: t, copy: f, texts: n } = d({ content: c, locale: m }), i = {
14
14
  fontSize: "1em"
15
15
  }, p = /* @__PURE__ */ o("span", { title: t ? "" : n.copy, ...r, style: { height: "1em", ...r.style }, children: t ? /* @__PURE__ */ o(u, { title: n.copied, placement: "bottom", arrow: !0, open: t && l, children: /* @__PURE__ */ o(a, { sx: { ...i, color: y[500] } }) }) : /* @__PURE__ */ o(C, { onClick: f, sx: { ...i, cursor: "pointer" } }) });
16
16
  return e ? e({ copyButton: p, containerRef: s }) : p;
@@ -3,11 +3,11 @@ import { useSize as F } from "ahooks";
3
3
  import { Tooltip as S } from "@mui/material";
4
4
  import t from "lodash/isUndefined";
5
5
  import { useSnackbar as U } from "notistack";
6
- import _ from "./hook.js";
7
- import B, { ToastProvider as L } from "../Toast/index.js";
8
- import { mergeProps as O } from "../Util/index.js";
9
- import { styled as s } from "../Theme/index.js";
10
- import { default as X } from "./copy-button.js";
6
+ import _ from "./hook";
7
+ import B, { ToastProvider as L } from "../Toast";
8
+ import { mergeProps as O } from "../Util";
9
+ import { styled as s } from "../Theme";
10
+ import { default as X } from "./copy-button";
11
11
  const R = s("span")`
12
12
  display: inline;
13
13
  white-space: pre-wrap;
@@ -3,10 +3,10 @@ import { Box as e } from "@mui/material";
3
3
  import { Icon as i } from "@iconify/react";
4
4
  import m from "@iconify-icons/material-symbols/close-rounded";
5
5
  import s from "lodash/noop";
6
- import { mergeSx as f } from "../Util/style.js";
6
+ import { mergeSx as f } from "../Util/style";
7
7
  function x({
8
8
  onClose: r = s,
9
- sx: t,
9
+ sx: t = {},
10
10
  size: n = 20
11
11
  }) {
12
12
  return /* @__PURE__ */ o(
@@ -19,9 +19,9 @@ import b from "highlight.js/lib/languages/plaintext";
19
19
  import B from "highlight.js/lib/languages/markdown";
20
20
  import "highlight.js/styles/atom-one-dark.css";
21
21
  import { FileCopy as S, Check as T } from "@mui/icons-material";
22
- import o from "../Colors/themes/default.js";
23
- import { styled as A } from "../Theme/index.js";
24
- import E from "./LightBox.js";
22
+ import o from "../Colors";
23
+ import { styled as A } from "../Theme";
24
+ import E from "./LightBox";
25
25
  e.registerLanguage("javascript", n);
26
26
  e.registerLanguage("js", n);
27
27
  e.registerLanguage("jsx", n);
@@ -1,6 +1,6 @@
1
- import { default as t } from "./themes/default.js";
2
- import { default as f } from "./themes/temp.js";
3
- import { default as d } from "./themes/did-connect.js";
1
+ import { default as t } from "./themes/default";
2
+ import { default as f } from "./themes/temp";
3
+ import { default as d } from "./themes/did-connect";
4
4
  export {
5
5
  t as default,
6
6
  d as didConnectColors,
@@ -1,17 +1,16 @@
1
1
  import { jsx as t } from "react/jsx-runtime";
2
- import { LocaleProvider as p, useLocaleContext as C } from "../Locale/context.js";
3
- import x, { useColorScheme as a } from "../Theme/theme-provider.js";
4
- import { useTheme as d } from "@mui/material";
5
- import "../Theme/theme.js";
6
- function T({
2
+ import { LocaleProvider as C, useLocaleContext as p } from "../Locale/context";
3
+ import x, { useColorScheme as a } from "../Theme/theme-provider";
4
+ import { useTheme as d } from "../Theme";
5
+ function S({
7
6
  children: o,
8
7
  // theme provider
9
8
  theme: e,
10
9
  injectFirst: r,
11
10
  darkSchemeClass: m,
12
- prefer: i,
13
- disableBlockletTheme: n = !1,
14
- enableColorScheme: c,
11
+ prefer: n,
12
+ disableBlockletTheme: c = !1,
13
+ enableColorScheme: i,
15
14
  // locale provider
16
15
  locale: f,
17
16
  fallbackLocale: s,
@@ -25,11 +24,11 @@ function T({
25
24
  theme: e,
26
25
  injectFirst: r,
27
26
  darkSchemeClass: m,
28
- prefer: i,
29
- disableBlockletTheme: n,
30
- enableColorScheme: c,
27
+ prefer: n,
28
+ disableBlockletTheme: c,
29
+ enableColorScheme: i,
31
30
  children: /* @__PURE__ */ t(
32
- p,
31
+ C,
33
32
  {
34
33
  locale: f,
35
34
  fallbackLocale: s,
@@ -42,8 +41,8 @@ function T({
42
41
  }
43
42
  );
44
43
  }
45
- function j() {
46
- const o = d(), e = C(), r = a();
44
+ function T() {
45
+ const o = d(), e = p(), r = a();
47
46
  return {
48
47
  theme: o,
49
48
  ...e,
@@ -51,6 +50,6 @@ function j() {
51
50
  };
52
51
  }
53
52
  export {
54
- T as ConfigProvider,
55
- j as useConfig
53
+ S as ConfigProvider,
54
+ T as useConfig
56
55
  };
@@ -1,7 +1,5 @@
1
- import { ConfigProvider as r, useConfig as f } from "./config-provider.js";
2
- import { default as d } from "./theme-mode-toggle.js";
1
+ export * from "./config-provider";
2
+ import { default as f } from "./theme-mode-toggle";
3
3
  export {
4
- r as ConfigProvider,
5
- d as ThemeModeToggle,
6
- f as useConfig
4
+ f as ThemeModeToggle
7
5
  };
@@ -1,7 +1,7 @@
1
1
  import { jsx as e } from "react/jsx-runtime";
2
2
  import { IconButton as l } from "@mui/material";
3
3
  import { Brightness2Outlined as s, LightModeOutlined as m } from "@mui/icons-material";
4
- import { useColorScheme as u } from "../Theme/theme-provider.js";
4
+ import { useColorScheme as u } from "../Theme/theme-provider";
5
5
  function h() {
6
6
  var r, t;
7
7
  const { mode: n, toggleMode: o, prefer: i } = u();