@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,5 +1,5 @@
1
1
  import { jsx as o } from "react/jsx-runtime";
2
- import { styled as e } from "../Theme/index.js";
2
+ import { styled as e } from "../Theme";
3
3
  function p({ aspect: t, children: i, ...n }) {
4
4
  return /* @__PURE__ */ o(a, { aspect: t, ...n, children: /* @__PURE__ */ o("span", { className: "aspect-ratio-container__inner", children: i }) });
5
5
  }
@@ -1,7 +1,7 @@
1
1
  import { jsxs as n, jsx as e } from "react/jsx-runtime";
2
2
  import { Box as o } from "@mui/material";
3
- import { styled as i } from "../Theme/index.js";
4
- import r from "./NFTBroken.svg.js";
3
+ import { styled as i } from "../Theme";
4
+ import r from "./NFTBroken.svg";
5
5
  function c({ children: t = "Non-publicly accessible NFT" } = {}) {
6
6
  return /* @__PURE__ */ n(s, { children: [
7
7
  /* @__PURE__ */ e(r, { className: "nft-display-broken-background" }),
@@ -1,6 +1,6 @@
1
1
  import { jsx as n, jsxs as H, Fragment as J } from "react/jsx-runtime";
2
- import { useRef as M, useState as P, useEffect as A } from "react";
3
- import S from "clsx";
2
+ import { useRef as M, useState as A, useEffect as P } from "react";
3
+ import $ from "clsx";
4
4
  import { Buffer as O } from "buffer";
5
5
  import K from "lodash/get";
6
6
  import Q from "pako";
@@ -8,15 +8,15 @@ import X from "base64-url";
8
8
  import B from "is-svg";
9
9
  import Y from "lodash/noop";
10
10
  import { Box as Z } from "@mui/material";
11
- import rr from "./aspect-ratio-container.js";
12
- import er from "./svg-embedder/img.js";
13
- import tr from "./svg-embedder/inline-svg.js";
14
- import or from "./loading.js";
15
- import C from "./broken.js";
16
- import { styled as nr } from "../Theme/index.js";
17
- import ir from "./displayApi.js";
18
- import sr from "./render-svg.js";
19
- function Nr(e) {
11
+ import rr from "./aspect-ratio-container";
12
+ import er from "./svg-embedder/img";
13
+ import tr from "./svg-embedder/inline-svg";
14
+ import or from "./loading";
15
+ import C from "./broken";
16
+ import { styled as nr } from "../Theme";
17
+ import ir from "./displayApi";
18
+ import sr from "./render-svg";
19
+ function Dr(e) {
20
20
  var s;
21
21
  return (e == null ? void 0 : e.display) || ((s = e == null ? void 0 : e.data) == null ? void 0 : s.value);
22
22
  }
@@ -34,9 +34,9 @@ function lr({
34
34
  address: s,
35
35
  inset: m,
36
36
  aspect: g,
37
- component: T = "span",
37
+ component: b = "span",
38
38
  className: z = "",
39
- renderError: b,
39
+ renderError: T,
40
40
  renderLoading: j,
41
41
  preferredSvgEmbedder: E = "img",
42
42
  checkSvg: x = !1,
@@ -45,21 +45,24 @@ function lr({
45
45
  imageFilter: I = null,
46
46
  ...k
47
47
  }) {
48
- var R;
49
- const F = (l) => /* @__PURE__ */ n(cr, { component: T, ...k, className: S(z, { "nft-display--inset": m }), children: l }), a = M({});
48
+ var F;
49
+ const R = (l) => (
50
+ // @ts-expect-error
51
+ /* @__PURE__ */ n(cr, { component: b, ...k, className: $(z, { "nft-display--inset": m }), children: l })
52
+ ), a = M({});
50
53
  try {
51
54
  typeof e == "string" ? a.current = JSON.parse(e) : a.current = e;
52
- const { vcId: l } = a.current, U = a.current.credentialSubject ? K(a.current, "credentialSubject.display") : a.current, { content: f, type: y } = U, G = y === "url", [t, c] = P({
55
+ const { vcId: l } = a.current, U = a.current.credentialSubject ? K(a.current, "credentialSubject.display") : a.current, { content: f, type: y } = U, G = y === "url", [t, c] = A({
53
56
  loading: G,
54
57
  error: !1,
55
58
  loadingUrlType: !0,
56
59
  urlType: null
57
- }), [w, V] = P(h <= 0), d = ({ useImageFilter: o = !1, t: i } = {}) => {
60
+ }), [w, S] = A(h <= 0), d = ({ useImageFilter: o = !1, t: i } = {}) => {
58
61
  const r = new URL(f);
59
62
  return window.location.protocol === "https:" && r.protocol === "http:" && (r.protocol = "https:"), r.searchParams.has("assetId") || r.searchParams.append("assetId", s), !r.searchParams.has("vcId") && l && r.searchParams.append("vcId", l), o && I && Object.entries(I).forEach(([p, u]) => {
60
63
  r.searchParams.append(p, u);
61
64
  }), i && r.searchParams.append("t", i), r.href;
62
- }, _ = async () => {
65
+ }, V = async () => {
63
66
  var o, i;
64
67
  try {
65
68
  const r = await ir({
@@ -75,21 +78,21 @@ function lr({
75
78
  c({ ...t, loadingUrlType: !1, urlType: null });
76
79
  }
77
80
  };
78
- if (A(() => {
81
+ if (P(() => {
79
82
  let o;
80
- return h > 0 && (o = setTimeout(() => V(!0), h)), y === "url" && _(), () => clearTimeout(o);
81
- }, []), A(() => {
83
+ return h > 0 && (o = setTimeout(() => S(!0), h)), y === "url" && V(), () => clearTimeout(o);
84
+ }, []), P(() => {
82
85
  (!t.loading && w || t.error) && W();
83
86
  }, [t, w]), t.error)
84
87
  throw new Error("Failed to render NFT Display.");
85
88
  const v = () => {
86
89
  t.loading && c({ ...t, loading: !1 });
87
- }, N = () => {
88
- c({ ...t, error: !0, loading: !1 });
89
90
  }, D = () => {
91
+ c({ ...t, error: !0, loading: !1 });
92
+ }, N = () => {
90
93
  const o = d({ useImageFilter: !0 });
91
- return /* @__PURE__ */ n("img", { src: o, onError: N, onLoad: v, alt: "NFT Display", style: { width: "auto", height: "auto" } });
92
- }, $ = () => {
94
+ return /* @__PURE__ */ n("img", { src: o, onError: D, onLoad: v, alt: "NFT Display", style: { width: "auto", height: "auto" } });
95
+ }, _ = () => {
93
96
  const o = t.urlType || "image/svg+xml", i = d(), r = new URL(i).pathname.toLowerCase();
94
97
  return [
95
98
  ".jpg",
@@ -106,14 +109,14 @@ function lr({
106
109
  ".pjpeg",
107
110
  ".pjp",
108
111
  ".avif"
109
- ].some((u) => r.endsWith(u)) ? D() : o.includes("text/html;") ? /* @__PURE__ */ n(C, {}) : (
112
+ ].some((u) => r.endsWith(u)) ? N() : o.includes("text/html;") ? /* @__PURE__ */ n(C, {}) : (
110
113
  // eslint-disable-next-line jsx-a11y/alt-text
111
114
  /* @__PURE__ */ n(
112
115
  "object",
113
116
  {
114
117
  type: o,
115
118
  data: i,
116
- onErrorCapture: N,
119
+ onErrorCapture: D,
117
120
  onLoad: v,
118
121
  style: { width: "100%", height: "100%", pointerEvents: "none" }
119
122
  },
@@ -125,7 +128,7 @@ function lr({
125
128
  if (f)
126
129
  switch (y) {
127
130
  case "url":
128
- return t.loadingUrlType ? null : (o = t.urlType) != null && o.startsWith("image/svg+xml") ? /* @__PURE__ */ n(sr, { src: d(), onLoad: v }) : (i = t.urlType) != null && i.startsWith("image") ? D() : $();
131
+ return t.loadingUrlType ? null : (o = t.urlType) != null && o.startsWith("image/svg+xml") ? /* @__PURE__ */ n(sr, { src: d(), onLoad: v }) : (i = t.urlType) != null && i.startsWith("image") ? N() : _();
129
132
  case "uri":
130
133
  return /* @__PURE__ */ n(
131
134
  "img",
@@ -156,7 +159,7 @@ function lr({
156
159
  }
157
160
  throw new Error(`unsupported display protocol: ${U.type}`);
158
161
  };
159
- return F(
162
+ return R(
160
163
  /* @__PURE__ */ H(J, { children: [
161
164
  (t.loading || !w) && (j ? j() : /* @__PURE__ */ n(or, {})),
162
165
  q()
@@ -165,8 +168,8 @@ function lr({
165
168
  } catch (l) {
166
169
  return console.error(l == null ? void 0 : l.message, {
167
170
  nftId: s,
168
- vcId: (R = a == null ? void 0 : a.current) == null ? void 0 : R.vcId
169
- }), F(b ? b() : /* @__PURE__ */ n(C, {}));
171
+ vcId: (F = a == null ? void 0 : a.current) == null ? void 0 : F.vcId
172
+ }), R(T ? T() : /* @__PURE__ */ n(C, {}));
170
173
  }
171
174
  }
172
175
  const cr = nr(Z)`
@@ -198,12 +201,12 @@ const cr = nr(Z)`
198
201
  }
199
202
  `;
200
203
  function pr(e) {
201
- return function({ aspect: s, inset: m, ...g }) {
204
+ return function({ aspect: s = void 0, inset: m = !1, ...g }) {
202
205
  return s && s > 0 && !m ? /* @__PURE__ */ n(rr, { aspect: s, children: /* @__PURE__ */ n(e, { inset: !0, ...g }) }) : /* @__PURE__ */ n(e, { inset: m, ...g });
203
206
  };
204
207
  }
205
- const Dr = pr(lr);
208
+ const Nr = pr(lr);
206
209
  export {
207
- Dr as default,
208
- Nr as getNFTData
210
+ Nr as default,
211
+ Dr as getNFTData
209
212
  };
@@ -1,5 +1,5 @@
1
1
  import { jsx as o } from "react/jsx-runtime";
2
- import { styled as t } from "../Theme/index.js";
2
+ import { styled as t } from "../Theme";
3
3
  function a() {
4
4
  return /* @__PURE__ */ o(e, { className: "nft-display__loading", children: "Loading..." });
5
5
  }
@@ -3,12 +3,12 @@ import m from "dompurify";
3
3
  import { useAsyncEffect as f } from "ahooks";
4
4
  import c from "axios";
5
5
  import { useState as p } from "react";
6
- import a from "./svg-embedder/inline-svg.js";
7
- function y({ src: e, onLoad: t }) {
6
+ import a from "./svg-embedder/inline-svg";
7
+ function y({ src: e, onLoad: t = void 0 }) {
8
8
  const [r, s] = p("");
9
9
  return f(async () => {
10
- const n = await c.get(e), i = m.sanitize(n.data);
11
- s(i), t == null || t();
10
+ const i = await c.get(e), n = m.sanitize(i.data);
11
+ s(n), t == null || t();
12
12
  }, []), /* @__PURE__ */ o(a, { svg: r });
13
13
  }
14
14
  export {
@@ -1,15 +1,15 @@
1
1
  import { jsx as o } from "react/jsx-runtime";
2
- import c from "./inline-svg.js";
2
+ import c from "./inline-svg";
3
3
  const i = (e) => {
4
4
  const r = new Blob([e], { type: "image/svg+xml" });
5
5
  return URL.createObjectURL(r);
6
6
  };
7
- function l({ svg: e, alt: r = "", fallback: n = !0, ...m }) {
7
+ function f({ svg: e, alt: r = "", fallback: n = !0, ...m }) {
8
8
  if (n && e.indexOf("</foreignObject>") > -1)
9
9
  return /* @__PURE__ */ o(c, { svg: e });
10
10
  const t = i(e);
11
11
  return /* @__PURE__ */ o("img", { src: t, onLoad: () => URL.revokeObjectURL(t), alt: r, ...m });
12
12
  }
13
13
  export {
14
- l as default
14
+ f as default
15
15
  };
@@ -1,6 +1,6 @@
1
1
  import { jsx as t } from "react/jsx-runtime";
2
2
  import r from "react-shadow/emotion";
3
- import { styled as o } from "../../Theme/index.js";
3
+ import { styled as o } from "../../Theme";
4
4
  function l({ svg: i, ...n }) {
5
5
  return /* @__PURE__ */ t(e, { ...n, children: /* @__PURE__ */ t(d, { dangerouslySetInnerHTML: { __html: i } }) });
6
6
  }
@@ -1,5 +1,5 @@
1
- import { default as t } from "./nav-menu.js";
2
- import { default as f } from "./products.js";
1
+ import { default as t } from "./nav-menu";
2
+ import { default as f } from "./products";
3
3
  export {
4
4
  f as Products,
5
5
  t as default
@@ -1,15 +1,14 @@
1
- import { jsx as o, jsxs as M } from "react/jsx-runtime";
2
- import { useRef as T, useLayoutEffect as ne, useEffect as j, Children as V, isValidElement as te, cloneElement as re } from "react";
3
- import { useTheme as oe, ClickAwayListener as ae } from "@mui/material";
1
+ import { jsxs as M, jsx as o } from "react/jsx-runtime";
2
+ import { useEffect as j, useRef as T, useLayoutEffect as ne, Children as V, isValidElement as te, cloneElement as re } from "react";
3
+ import { ClickAwayListener as oe } from "@mui/material";
4
4
  import F from "clsx";
5
- import { Menu as le, MoreHoriz as ie, ArrowForward as se, ExpandMore as ue } from "@mui/icons-material";
6
- import { useCreation as L, useReactive as ce, useMemoizedFn as A, useSize as de, useThrottleFn as me } from "ahooks";
7
- import fe from "lodash/noop";
8
- import { NavMenuProvider as ve, useNavMenuContext as B } from "./nav-menu-context.js";
9
- import { NavMenuStyled as pe, NavMenuRoot as he, NavMenuItem as Ce, NavMenuSub as Ne, NavMenuSubList as _e } from "./style.js";
10
- import { SubContainer as be } from "./sub-container.js";
11
- import "../Theme/theme.js";
12
- import "../Theme/theme-provider.js";
5
+ import { ArrowForward as ae, ExpandMore as ie, Menu as le, MoreHoriz as se } from "@mui/icons-material";
6
+ import { useCreation as L, useReactive as ue, useMemoizedFn as A, useSize as ce, useThrottleFn as de } from "ahooks";
7
+ import me from "lodash/noop";
8
+ import { useNavMenuContext as B, NavMenuProvider as fe } from "./nav-menu-context";
9
+ import { NavMenuItem as ve, NavMenuSub as pe, NavMenuSubList as he, NavMenuStyled as Ce, NavMenuRoot as Ne } from "./style";
10
+ import { SubContainer as _e } from "./sub-container";
11
+ import { useTheme as be } from "../Theme";
13
12
  function D(n) {
14
13
  return n ? V.toArray(n).filter((a) => te(a) ? a.type === k || a.type === E : !1) : null;
15
14
  }
@@ -21,17 +20,20 @@ function J({
21
20
  mode: a = "horizontal",
22
21
  children: C = null,
23
22
  activeId: m = null,
23
+ // eslint-disable-next-line react/require-default-props
24
24
  textColor: y,
25
+ // eslint-disable-next-line react/require-default-props
25
26
  activeTextColor: g,
27
+ // eslint-disable-next-line react/require-default-props
26
28
  bgColor: I,
27
- onSelected: s,
29
+ onSelected: s = void 0,
28
30
  ...f
29
31
  }) {
30
32
  var O;
31
- const r = oe(), u = L(() => r.palette.text.secondary, [r]), v = L(() => r.palette.text.primary, [r]), l = L(() => r.palette.background.default, [r]), c = D(C);
33
+ const r = be(), u = L(() => r.palette.text.secondary, [r]), v = L(() => r.palette.text.primary, [r]), i = L(() => r.palette.background.default, [r]), c = D(C);
32
34
  if (!(n != null && n.length) && !(c != null && c.length))
33
35
  throw new Error("One of 'items' or 'children' is required by NavMenu component.");
34
- const t = ce({
36
+ const t = ue({
35
37
  activeId: m,
36
38
  openedIds: [],
37
39
  hiddenItemCount: 0
@@ -40,13 +42,13 @@ function J({
40
42
  }), _ = A((e) => {
41
43
  t.openedIds.push(e);
42
44
  }), W = A((e) => {
43
- t.openedIds = t.openedIds.filter((i) => i !== e);
45
+ t.openedIds = t.openedIds.filter((l) => l !== e);
44
46
  }), z = L(() => ({
45
47
  ...t,
46
48
  mode: a,
47
49
  textColor: u,
48
50
  activeTextColor: v,
49
- bgColor: l,
51
+ bgColor: i,
50
52
  activate: N,
51
53
  open: _,
52
54
  close: W
@@ -57,25 +59,25 @@ function J({
57
59
  a,
58
60
  u,
59
61
  v,
60
- l,
62
+ i,
61
63
  N,
62
64
  _,
63
65
  W
64
- ]), $ = T(null), p = T([]), w = T(null), q = T(0), S = t.hiddenItemCount === ((O = p.current) == null ? void 0 : O.length), K = S ? { marginLeft: "0px" } : void 0, Q = L(() => S ? /* @__PURE__ */ o(le, {}) : /* @__PURE__ */ o(ie, {}), [S]), X = (e) => V.map(e, (i, h) => re(i, {
66
+ ]), $ = T(null), p = T([]), w = T(null), q = T(0), S = t.hiddenItemCount === ((O = p.current) == null ? void 0 : O.length), K = S ? { marginLeft: "0px" } : void 0, Q = L(() => S ? /* @__PURE__ */ o(le, {}) : /* @__PURE__ */ o(se, {}), [S]), X = (e) => V.map(e, (l, h) => re(l, {
65
67
  ref: (b) => {
66
68
  p.current[h] = b;
67
69
  }
68
- })), x = de($.current), { run: R } = me(
70
+ })), x = ce($.current), { run: R } = de(
69
71
  A(() => {
70
- let e = 0, i = 0, h = !1;
72
+ let e = 0, l = 0, h = !1;
71
73
  const b = w.current ? w.current.offsetWidth + parseFloat(window.getComputedStyle(w.current).marginLeft) : 0;
72
74
  p.current.forEach((d, P) => {
73
75
  if (d) {
74
76
  d.style.display = "flex";
75
77
  const ee = P > 0 ? parseFloat(window.getComputedStyle(d).marginLeft) : 0, U = d.offsetWidth + ee;
76
- q.current - b >= e + U && !h ? e += U : (d.style.display = "none", h = !0, i++);
78
+ q.current - b >= e + U && !h ? e += U : (d.style.display = "none", h = !0, l++);
77
79
  }
78
- }), i !== t.hiddenItemCount && (t.hiddenItemCount = i);
80
+ }), l !== t.hiddenItemCount && (t.hiddenItemCount = l);
79
81
  }),
80
82
  { wait: 100 }
81
83
  );
@@ -90,7 +92,7 @@ function J({
90
92
  }, [a, n]), j(() => {
91
93
  m != null && (t.activeId = m);
92
94
  }, [m]);
93
- const Y = F("navmenu", `navmenu--${a}`, f.className), H = (e, i, h = 0) => {
95
+ const Y = F("navmenu", `navmenu--${a}`, f.className), H = (e, l, h = 0) => {
94
96
  const b = h === 0;
95
97
  return e != null && e.children ? h > 0 ? null : /* @__PURE__ */ o(
96
98
  E,
@@ -100,7 +102,7 @@ function J({
100
102
  label: e.label,
101
103
  variant: b ? "default" : "panel",
102
104
  ref: b ? (d) => {
103
- p.current[i] = d;
105
+ p.current[l] = d;
104
106
  } : void 0,
105
107
  children: typeof e.children == "function" ? e.children : e.children.map(
106
108
  (d, P) => H({ ...d, variant: "panel" }, P, h + 1)
@@ -117,29 +119,29 @@ function J({
117
119
  active: e.active,
118
120
  variant: e.variant,
119
121
  ref: b ? (d) => {
120
- p.current[i] = d;
122
+ p.current[l] = d;
121
123
  } : void 0
122
124
  },
123
125
  e.id
124
126
  );
125
- }, Z = n ? n == null ? void 0 : n.slice(-t.hiddenItemCount).map((e, i) => H(e, i, 1)) : c == null ? void 0 : c.slice(-t.hiddenItemCount);
126
- return /* @__PURE__ */ o(ve, { value: z, children: /* @__PURE__ */ o(pe, { ...f, className: Y, $textColor: u, $bgColor: l, children: /* @__PURE__ */ M(he, { className: F("navmenu-root", `navmenu-root--${a}`), ref: $, children: [
127
- n ? n.map((e, i) => H(e, i)) : X(c || []),
127
+ }, Z = n ? n == null ? void 0 : n.slice(-t.hiddenItemCount).map((e, l) => H(e, l, 1)) : c == null ? void 0 : c.slice(-t.hiddenItemCount);
128
+ return /* @__PURE__ */ o(fe, { value: z, children: /* @__PURE__ */ o(Ce, { ...f, className: Y, $textColor: u, $bgColor: i, children: /* @__PURE__ */ M(Ne, { className: F("navmenu-root", `navmenu-root--${a}`), ref: $, children: [
129
+ n ? n.map((e, l) => H(e, l)) : X(c || []),
128
130
  t.hiddenItemCount > 0 && /* @__PURE__ */ o(E, { expandIcon: !1, icon: Q, label: "", ref: w, style: K, children: Z })
129
131
  ] }) }) });
130
132
  }
131
133
  function k({
132
- ref: n,
134
+ ref: n = void 0,
133
135
  id: a = "",
134
136
  icon: C = null,
135
137
  label: m = "",
136
- description: y,
138
+ description: y = void 0,
137
139
  active: g = !1,
138
140
  variant: I = "default",
139
- onClick: s = fe,
141
+ onClick: s = me,
140
142
  ...f
141
143
  }) {
142
- const r = G(a), { mode: u, activeId: v, activate: l, activeTextColor: c } = B(), t = F(
144
+ const r = G(a), { mode: u, activeId: v, activate: i, activeTextColor: c } = B(), t = F(
143
145
  "navmenu-item",
144
146
  { "navmenu-item--active": v === r },
145
147
  `navmenu-item--${u}`,
@@ -147,17 +149,17 @@ function k({
147
149
  f.className
148
150
  );
149
151
  return j(() => {
150
- g && (l == null || l(r));
152
+ g && (i == null || i(r));
151
153
  }, [g]), // eslint-disable-next-line jsx-a11y/no-noninteractive-element-interactions
152
154
  /* @__PURE__ */ M(
153
- Ce,
155
+ ve,
154
156
  {
155
157
  ...f,
156
158
  className: t,
157
159
  ref: n,
158
160
  $activeTextColor: c,
159
161
  onClick: () => {
160
- s == null || s(), l == null || l(r);
162
+ s == null || s(), i == null || i(r);
161
163
  },
162
164
  children: [
163
165
  C && /* @__PURE__ */ o("span", { className: "navmenu-item__icon", children: C }),
@@ -165,7 +167,7 @@ function k({
165
167
  /* @__PURE__ */ M("span", { className: "navmenu-item__label", children: [
166
168
  m,
167
169
  " ",
168
- /* @__PURE__ */ o(se, { className: "navmenu-item__label-arrow" })
170
+ /* @__PURE__ */ o(ae, { className: "navmenu-item__label-arrow" })
169
171
  ] }),
170
172
  y && /* @__PURE__ */ o("span", { className: "navmenu-item__desc", children: y })
171
173
  ] })
@@ -175,15 +177,15 @@ function k({
175
177
  }
176
178
  k.displayName = "NavMenu.Item";
177
179
  function E({
178
- ref: n,
180
+ ref: n = void 0,
179
181
  id: a = "",
180
182
  icon: C = null,
181
183
  label: m = null,
182
184
  description: y,
183
185
  variant: g = "default",
184
- children: I,
186
+ children: I = void 0,
185
187
  expandIcon: s = ({ isOpen: r }) => /* @__PURE__ */ o(
186
- ue,
188
+ ie,
187
189
  {
188
190
  style: {
189
191
  transform: `rotate(${r ? 180 : 0}deg)`
@@ -192,7 +194,7 @@ function E({
192
194
  ),
193
195
  ...f
194
196
  }) {
195
- const r = G(a), { openedIds: u, open: v, close: l, mode: c, activeTextColor: t } = B(), N = (u == null ? void 0 : u.includes(r)) ?? !1, _ = c === "inline", W = F(
197
+ const r = G(a), { openedIds: u, open: v, close: i, mode: c, activeTextColor: t } = B(), N = (u == null ? void 0 : u.includes(r)) ?? !1, _ = c === "inline", W = F(
196
198
  "navmenu-sub",
197
199
  "navmenu-item",
198
200
  { "navmenu-item--panel": g === "panel" },
@@ -200,10 +202,10 @@ function E({
200
202
  f.className
201
203
  ), z = {
202
204
  onClick: () => {
203
- u != null && u.includes(r) ? l == null || l(r) : v == null || v(r);
205
+ u != null && u.includes(r) ? i == null || i(r) : v == null || v(r);
204
206
  }
205
207
  }, $ = _ ? { onClick: (w) => w.stopPropagation() } : {}, p = /* @__PURE__ */ M(
206
- Ne,
208
+ pe,
207
209
  {
208
210
  ...f,
209
211
  className: W,
@@ -217,11 +219,11 @@ function E({
217
219
  y && /* @__PURE__ */ o("span", { className: "navmenu-item__desc", children: y })
218
220
  ] }),
219
221
  s && /* @__PURE__ */ o("span", { className: "navmenu-sub__expand-icon", children: typeof s == "function" ? s({ isOpen: N }) : s }),
220
- /* @__PURE__ */ o(be, { inline: _, ...$, children: typeof I == "function" ? I({ isOpen: N }) : /* @__PURE__ */ o(_e, { className: "navmenu-sub__list", children: D(I) }) })
222
+ /* @__PURE__ */ o(_e, { inline: _, ...$, children: typeof I == "function" ? I({ isOpen: N }) : /* @__PURE__ */ o(he, { className: "navmenu-sub__list", children: D(I) }) })
221
223
  ]
222
224
  }
223
225
  );
224
- return _ ? p : /* @__PURE__ */ o(ae, { onClickAway: () => l == null ? void 0 : l(r), children: p });
226
+ return _ ? p : /* @__PURE__ */ o(oe, { onClickAway: () => i == null ? void 0 : i(r), children: p });
225
227
  }
226
228
  E.displayName = "NavMenu.Sub";
227
229
  J.Item = k;
@@ -3,30 +3,30 @@ import { useRef as u } from "react";
3
3
  import { Link as t } from "react-router-dom";
4
4
  import { useMemoizedFn as w, useCreation as k } from "ahooks";
5
5
  import { Box as g, useTheme as h, Grid as l } from "@mui/material";
6
- import f from "./sub-item-group.js";
7
- import { Item as S } from "./nav-menu.js";
8
- import { styled as v } from "../Theme/index.js";
9
- import { useNavMenuContext as y } from "./nav-menu-context.js";
10
- import { translate as $ } from "../Locale/util.js";
11
- import { useLocaleContext as _ } from "../Locale/context.js";
12
- import A from "./images/ai-kit.svg.js";
13
- import I from "./images/nft-studio.svg.js";
14
- import N from "./images/creator-studio.svg.js";
15
- import x from "./images/aigne.svg.js";
16
- import C from "./images/arcsphere.svg.js";
17
- import D from "./images/aistro.svg.js";
18
- import K from "./images/blocklet-launcher.svg.js";
19
- import B from "./images/blocklet-store.svg.js";
20
- import W from "./images/web3-kit.svg.js";
21
- import F from "./images/blocklet-framework.svg.js";
22
- import G from "./images/abt-network.svg.js";
23
- import L from "./images/blocklet-server.svg.js";
24
- import M from "./images/OCAP.svg.js";
25
- import d from "./images/did.svg.js";
26
- import P from "./images/did-wallet.svg.js";
27
- import T from "./images/did-name-service.svg.js";
28
- import z from "./images/vc.svg.js";
29
- import O from "./images/did-connect.svg.js";
6
+ import f from "./sub-item-group";
7
+ import { Item as S } from "./nav-menu";
8
+ import { styled as v } from "../Theme";
9
+ import { useNavMenuContext as y } from "./nav-menu-context";
10
+ import { translate as $ } from "../Locale/util";
11
+ import { useLocaleContext as A } from "../Locale/context";
12
+ import _ from "./images/ai-kit.svg";
13
+ import I from "./images/nft-studio.svg";
14
+ import C from "./images/creator-studio.svg";
15
+ import N from "./images/aigne.svg";
16
+ import x from "./images/arcsphere.svg";
17
+ import D from "./images/aistro.svg";
18
+ import K from "./images/blocklet-launcher.svg";
19
+ import B from "./images/blocklet-store.svg";
20
+ import W from "./images/web3-kit.svg";
21
+ import F from "./images/blocklet-framework.svg";
22
+ import G from "./images/abt-network.svg";
23
+ import P from "./images/blocklet-server.svg";
24
+ import L from "./images/OCAP.svg";
25
+ import d from "./images/did.svg";
26
+ import M from "./images/did-wallet.svg";
27
+ import T from "./images/did-name-service.svg";
28
+ import z from "./images/vc.svg";
29
+ import O from "./images/did-connect.svg";
30
30
  import V from "./images/payment-kit.png";
31
31
  const E = {
32
32
  en: {
@@ -193,8 +193,8 @@ const E = {
193
193
  margin-top: 0px;
194
194
  }
195
195
  `;
196
- function ye({ className: c, isOpen: j, ...s }) {
197
- const { mode: a } = y(), { palette: p } = h(), m = u(null), { locale: o = "en" } = _() || {}, r = w((i, n = {}) => $(E, i, o, "en", n)), b = k(() => [
196
+ function ye({ className: c, isOpen: j = void 0, ...s }) {
197
+ const { mode: a } = y(), { palette: p } = h(), m = u(null), { locale: o = "en" } = A() || {}, r = w((i, n = {}) => $(E, i, o, "en", n)), b = k(() => [
198
198
  {
199
199
  type: "Group",
200
200
  label: r("groups.applications"),
@@ -215,7 +215,7 @@ function ye({ className: c, isOpen: j, ...s }) {
215
215
  }
216
216
  ),
217
217
  description: r("products.creatorStudio.description"),
218
- icon: /* @__PURE__ */ e(N, {})
218
+ icon: /* @__PURE__ */ e(C, {})
219
219
  },
220
220
  {
221
221
  label: /* @__PURE__ */ e(t, { to: `https://www.aistro.io/${o}`, target: "_blank", rel: "noreferrer noopener", children: "Aistro" }),
@@ -225,12 +225,12 @@ function ye({ className: c, isOpen: j, ...s }) {
225
225
  {
226
226
  label: /* @__PURE__ */ e(t, { to: "https://www.aigne.io/", target: "_blank", rel: "noreferrer noopener", children: "AIGNE" }),
227
227
  description: r("products.aigne.description"),
228
- icon: /* @__PURE__ */ e(x, { style: { filter: p.mode === "dark" ? "invert(1)" : "none" } })
228
+ icon: /* @__PURE__ */ e(N, { style: { filter: p.mode === "dark" ? "invert(1)" : "none" } })
229
229
  },
230
230
  {
231
231
  label: /* @__PURE__ */ e(t, { to: `https://www.arcsphere.io/${o}`, target: "_blank", rel: "noreferrer noopener", children: "ArcSphere" }),
232
232
  description: r("products.arcsphere.description"),
233
- icon: /* @__PURE__ */ e(C, {})
233
+ icon: /* @__PURE__ */ e(x, {})
234
234
  }
235
235
  ]
236
236
  },
@@ -246,7 +246,7 @@ function ye({ className: c, isOpen: j, ...s }) {
246
246
  {
247
247
  label: /* @__PURE__ */ e(t, { to: `https://www.aikit.rocks/${o}`, target: "_blank", rel: "noreferrer noopener", children: "AI Kit" }),
248
248
  description: r("products.aiKit.description"),
249
- icon: /* @__PURE__ */ e(A, {})
249
+ icon: /* @__PURE__ */ e(_, {})
250
250
  },
251
251
  {
252
252
  label: /* @__PURE__ */ e(t, { to: `https://www.blocklet.io/${o}/payment-kit`, target: "_blank", rel: "noreferrer noopener", children: "Payment Kit" }),
@@ -295,7 +295,7 @@ function ye({ className: c, isOpen: j, ...s }) {
295
295
  {
296
296
  label: /* @__PURE__ */ e(t, { to: `https://www.blocklet.io/${o}/blocklet-server`, target: "_blank", rel: "noreferrer noopener", children: "Blocklet Server" }),
297
297
  description: r("products.blockletServer.description"),
298
- icon: /* @__PURE__ */ e(L, {})
298
+ icon: /* @__PURE__ */ e(P, {})
299
299
  },
300
300
  {
301
301
  label: /* @__PURE__ */ e(
@@ -308,7 +308,7 @@ function ye({ className: c, isOpen: j, ...s }) {
308
308
  }
309
309
  ),
310
310
  description: r("products.ocap.description"),
311
- icon: /* @__PURE__ */ e(M, {})
311
+ icon: /* @__PURE__ */ e(L, {})
312
312
  }
313
313
  ]
314
314
  },
@@ -332,7 +332,7 @@ function ye({ className: c, isOpen: j, ...s }) {
332
332
  {
333
333
  label: /* @__PURE__ */ e(t, { to: `https://www.didwallet.io/${o}`, target: "_blank", rel: "noreferrer noopener", children: "DID Wallet" }),
334
334
  description: r("products.didWallet.description"),
335
- icon: /* @__PURE__ */ e(P, {})
335
+ icon: /* @__PURE__ */ e(M, {})
336
336
  },
337
337
  {
338
338
  label: /* @__PURE__ */ e(t, { to: `https://www.didnames.io/${o}`, target: "_blank", rel: "noreferrer noopener", children: "DID Names" }),
@@ -1,4 +1,4 @@
1
- import { styled as i } from "../Theme/index.js";
1
+ import { styled as i } from "../Theme";
2
2
  const o = i("nav", {
3
3
  shouldForwardProp: (n) => n !== "$bgColor" && n !== "$textColor"
4
4
  })(({ $textColor: n, theme: t }) => ({
@@ -1,6 +1,6 @@
1
1
  import { jsxs as s, jsx as e } from "react/jsx-runtime";
2
2
  import { Box as r } from "@mui/material";
3
- import { styled as l } from "../Theme/index.js";
3
+ import { styled as l } from "../Theme";
4
4
  const u = l(r)`
5
5
  padding: 16px 24px;
6
6
  border-radius: 8px;