@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,46 +1,46 @@
1
1
  import { jsx as W } from "react/jsx-runtime";
2
- import { useState as U, useRef as Q, Children as K, useCallback as i, cloneElement as Z, useEffect as p } from "react";
2
+ import { useState as K, useRef as Q, Children as S, useCallback as l, cloneElement as Z, useEffect as p } from "react";
3
3
  import A from "lodash/isEqual";
4
4
  import r from "lodash/isNil";
5
5
  import g from "lodash/isNull";
6
- import P from "./usePrevValue.js";
7
- import { withDeprecated as b } from "../Util/deprecate.js";
6
+ import P from "./usePrevValue";
7
+ import { withDeprecated as b } from "../Util/deprecate";
8
8
  const I = {
9
9
  TOUCHMOVE: "touchmove",
10
10
  KEYDOWN: "keydown"
11
11
  }, ee = 500, te = "ease-in-out", ne = "100vh", se = "100vw", k = 0, B = 0, D = 100, oe = 38, re = 40, y = "rps-scroll--disabled";
12
- let M = null, f = !1, a = !1, w = !0, Y = !1;
12
+ let M = null, d = !1, w = !1, R = !0, Y = !1;
13
13
  const T = [];
14
- function le({
15
- animationTimer: d = ee,
14
+ function ie({
15
+ animationTimer: f = ee,
16
16
  blockScrollDown: F = !1,
17
17
  blockScrollUp: H = !1,
18
- children: V,
18
+ children: V = void 0,
19
19
  height: G = ne,
20
20
  width: j = se,
21
- customPageNumber: s,
22
- onScrollUnavailable: E,
23
- onChange: R,
24
- renderAllPagesOnFirstRender: $ = !1,
21
+ customPageNumber: s = void 0,
22
+ onScrollUnavailable: E = void 0,
23
+ onChange: a = void 0,
24
+ renderAllPagesOnFirstRender: U = !1,
25
25
  transitionTimingFunction: q = te
26
26
  }) {
27
- const [n, C] = U(k), [c, L] = U(B), m = P(n), l = Q(null), o = K.toArray(V), O = i(
27
+ const [n, v] = K(k), [c, C] = K(B), m = P(n), i = Q(null), o = S.toArray(V), L = l(
28
28
  (e) => {
29
29
  let t = 0;
30
- r(e) || (t = e), t = Math.max(t, c), t <= n + 1 && (r(o[n + 1]) || t++), L(t);
30
+ r(e) || (t = e), t = Math.max(t, c), t <= n + 1 && (r(o[n + 1]) || t++), C(t);
31
31
  },
32
32
  [o, n, c]
33
- ), X = i(() => {
34
- $ ? L(K.count(o)) : r(o[k + 1]) || O(B + 1);
35
- }, [O, o, $]), _ = i(() => {
36
- w && (w = !1, window.scrollTo({
33
+ ), X = l(() => {
34
+ U ? C(S.count(o)) : r(o[k + 1]) || L(B + 1);
35
+ }, [L, o, U]), O = l(() => {
36
+ R && (R = !1, window.scrollTo({
37
37
  left: 0,
38
38
  top: 0,
39
39
  behavior: "smooth"
40
40
  }), document.body.classList.add(y), document.documentElement.classList.add(y));
41
- }, []), v = i(() => {
42
- w || (w = !0, document.body.classList.remove(y), document.documentElement.classList.remove(y));
43
- }, []), z = i(() => {
41
+ }, []), _ = l(() => {
42
+ R || (R = !0, document.body.classList.remove(y), document.documentElement.classList.remove(y));
43
+ }, []), z = l(() => {
44
44
  const e = [];
45
45
  let t = 0;
46
46
  for (; t < c && !r(o[t]); )
@@ -48,25 +48,25 @@ function le({
48
48
  /* @__PURE__ */ W("div", { style: { height: "100%", width: "100%" }, children: Z(o[t], { ...o[t].props }) }, t)
49
49
  ), t++;
50
50
  return e;
51
- }, [o, c]), h = i(() => {
52
- !f && !F && (r(T[n + 1]) ? (v(), E && E()) : (_(), f = !0, l.current.style.transform = `translate3d(0, ${(n + 1) * -100}%, 0)`, setTimeout(() => {
53
- a && C((e) => e + 1);
54
- }, d + D)));
55
- }, [d, F, n, _, v, E]), u = i(() => {
56
- !f && !H && (r(T[n - 1]) ? (v(), E && E()) : (_(), f = !0, l.current.style.transform = `translate3d(0, ${(n - 1) * -100}%, 0)`, setTimeout(() => {
57
- a && C((e) => e - 1);
58
- }, d + D)));
59
- }, [d, H, n, _, v, E]), N = i(
51
+ }, [o, c]), h = l(() => {
52
+ !d && !F && (r(T[n + 1]) ? (_(), E && E()) : (O(), d = !0, i.current.style.transform = `translate3d(0, ${(n + 1) * -100}%, 0)`, setTimeout(() => {
53
+ w && v((e) => e + 1);
54
+ }, f + D)));
55
+ }, [f, F, n, O, _, E]), u = l(() => {
56
+ !d && !H && (r(T[n - 1]) ? (_(), E && E()) : (O(), d = !0, i.current.style.transform = `translate3d(0, ${(n - 1) * -100}%, 0)`, setTimeout(() => {
57
+ w && v((e) => e - 1);
58
+ }, f + D)));
59
+ }, [f, H, n, O, _, E]), N = l(
60
60
  (e) => {
61
61
  g(M) ? M = e.touches[0].clientY : e.touches[0].clientY > M ? u() : h();
62
62
  },
63
63
  [h, u]
64
- ), J = i(
64
+ ), J = l(
65
65
  (e) => {
66
66
  e.deltaY < 0 ? u() : h();
67
67
  },
68
68
  [h, u]
69
- ), x = i(
69
+ ), x = l(
70
70
  (e) => {
71
71
  A(e.keyCode, oe) && u(), A(e.keyCode, re) && h();
72
72
  },
@@ -74,44 +74,44 @@ function le({
74
74
  );
75
75
  return p(() => {
76
76
  var e, t;
77
- return (e = l.current) == null || e.addEventListener(I.TOUCHMOVE, N), (t = l.current) == null || t.addEventListener(I.KEYDOWN, x), () => {
78
- var S;
79
- (S = l.current) != null && S.removeEventListener && (l.current.removeEventListener(I.TOUCHMOVE, N), l.current.removeEventListener(I.KEYDOWN, x));
77
+ return (e = i.current) == null || e.addEventListener(I.TOUCHMOVE, N), (t = i.current) == null || t.addEventListener(I.KEYDOWN, x), () => {
78
+ var $;
79
+ ($ = i.current) != null && $.removeEventListener && (i.current.removeEventListener(I.TOUCHMOVE, N), i.current.removeEventListener(I.KEYDOWN, x));
80
80
  };
81
- }, [N, x]), p(() => (a = !0, X(), () => {
82
- a = !1;
81
+ }, [N, x]), p(() => (w = !0, X(), () => {
82
+ w = !1;
83
83
  }), []), p(() => {
84
- f = !1, M = null, m !== void 0 && n > m && O();
85
- }, [O, n, m]), p(() => {
86
- R && R(n);
87
- }, [R, n]), p(() => {
84
+ d = !1, M = null, m !== void 0 && n > m && L();
85
+ }, [L, n, m]), p(() => {
86
+ a && a(n);
87
+ }, [a, n]), p(() => {
88
88
  if (!r(s) && !A(s, n)) {
89
89
  let e = c;
90
90
  if (!A(n, s)) {
91
- if (!r(T[s]) && !f)
92
- f = !0, l.current.style.transform = `translate3d(0, ${s * -100}%, 0)`, r(T[s]) && !r(o[s]) && e++, setTimeout(() => {
93
- C(s), L(e);
94
- }, d + D);
95
- else if (!f && !r(o[s])) {
91
+ if (!r(T[s]) && !d)
92
+ d = !0, i.current.style.transform = `translate3d(0, ${s * -100}%, 0)`, r(T[s]) && !r(o[s]) && e++, setTimeout(() => {
93
+ v(s), C(e);
94
+ }, f + D);
95
+ else if (!d && !r(o[s])) {
96
96
  for (let t = c; t <= s; t++)
97
97
  e++;
98
- r(o[s]) || e++, f = !0, Y = !0, L(e);
98
+ r(o[s]) || e++, d = !0, Y = !0, C(e);
99
99
  }
100
100
  }
101
101
  }
102
102
  }, [s]), p(() => {
103
- Y && (Y = !1, l.current.style.transform = `translate3d(0, ${s * -100}%, 0)`, setTimeout(() => {
104
- C(s);
105
- }, d + D));
106
- }, [d, c, s]), /* @__PURE__ */ W("div", { style: { height: G, width: j, overflow: "hidden" }, children: /* @__PURE__ */ W(
103
+ Y && (Y = !1, i.current.style.transform = `translate3d(0, ${s * -100}%, 0)`, setTimeout(() => {
104
+ v(s);
105
+ }, f + D));
106
+ }, [f, c, s]), /* @__PURE__ */ W("div", { style: { height: G, width: j, overflow: "hidden" }, children: /* @__PURE__ */ W(
107
107
  "div",
108
108
  {
109
- ref: l,
109
+ ref: i,
110
110
  onWheel: J,
111
111
  style: {
112
112
  height: "100%",
113
113
  width: "100%",
114
- transition: `transform ${d}ms ${q}`,
114
+ transition: `transform ${f}ms ${q}`,
115
115
  outline: "none"
116
116
  },
117
117
  tabIndex: 0,
@@ -119,7 +119,7 @@ function le({
119
119
  }
120
120
  ) });
121
121
  }
122
- const pe = b(le, { name: "PageScroller" });
122
+ const pe = b(ie, { name: "PageScroller" });
123
123
  export {
124
124
  pe as default
125
125
  };
@@ -1,39 +1,39 @@
1
- import { jsxs as i, jsx as r } from "react/jsx-runtime";
1
+ import { jsxs as n, jsx as o } from "react/jsx-runtime";
2
2
  import { useState as m } from "react";
3
- import s from "../../Button/index.js";
4
- import l from "../index.js";
5
- import p from "./FirstComponent.js";
6
- import c from "./SecondComponent.js";
7
- import u from "./ThirdComponent.js";
8
- import d from "./FourthComponent.js";
9
- import f from "./FifthComponent.js";
10
- /* empty css */
3
+ import s from "../../Button";
4
+ import l from "..";
5
+ import p from "./FirstComponent";
6
+ import c from "./SecondComponent";
7
+ import u from "./ThirdComponent";
8
+ import d from "./FourthComponent";
9
+ import f from "./FifthComponent";
10
+ import "./index.css";
11
11
  function y() {
12
- const [e, a] = m(0), n = [];
13
- for (let o = 0; o < 5; o++)
14
- n.push(
15
- /* @__PURE__ */ r(
12
+ const [e, a] = m(0), i = [];
13
+ for (let r = 0; r < 5; r++)
14
+ i.push(
15
+ /* @__PURE__ */ o(
16
16
  s,
17
17
  {
18
- variant: o === e ? "contained" : "outlined",
18
+ variant: r === e ? "contained" : "outlined",
19
19
  size: "small",
20
- onClick: () => a(o),
21
- color: o === e ? "primary" : "secondary",
22
- children: o + 1
20
+ onClick: () => a(r),
21
+ color: r === e ? "primary" : "secondary",
22
+ children: r + 1
23
23
  },
24
- o
24
+ r
25
25
  )
26
26
  );
27
27
  const t = e / 4 * 100;
28
- return /* @__PURE__ */ i("div", { className: "demo-page-full", children: [
29
- /* @__PURE__ */ i(l, { onChange: (o) => a(o), customPageNumber: e, children: [
30
- /* @__PURE__ */ r(p, {}),
31
- /* @__PURE__ */ r(c, {}),
32
- /* @__PURE__ */ r(u, {}),
33
- /* @__PURE__ */ r(d, {}),
34
- /* @__PURE__ */ r(f, {})
28
+ return /* @__PURE__ */ n("div", { className: "demo-page-full", children: [
29
+ /* @__PURE__ */ n(l, { onChange: (r) => a(r), customPageNumber: e, children: [
30
+ /* @__PURE__ */ o(p, {}),
31
+ /* @__PURE__ */ o(c, {}),
32
+ /* @__PURE__ */ o(u, {}),
33
+ /* @__PURE__ */ o(d, {}),
34
+ /* @__PURE__ */ o(f, {})
35
35
  ] }),
36
- /* @__PURE__ */ r(
36
+ /* @__PURE__ */ o(
37
37
  "div",
38
38
  {
39
39
  className: "progress",
@@ -45,7 +45,7 @@ function y() {
45
45
  style: { width: `${t}%` }
46
46
  }
47
47
  ),
48
- /* @__PURE__ */ r("div", { className: "pagination-additional-class", children: n })
48
+ /* @__PURE__ */ o("div", { className: "pagination-additional-class", children: i })
49
49
  ] });
50
50
  }
51
51
  export {
@@ -1,13 +1,13 @@
1
1
  import { jsxs as i, jsx as r } from "react/jsx-runtime";
2
2
  import { useState as s } from "react";
3
- import m from "../../Button/index.js";
4
- import l from "../index.js";
5
- import c from "./FirstComponent.js";
6
- import p from "./SecondComponent.js";
7
- import d from "./ThirdComponent.js";
8
- import h from "./FourthComponent.js";
9
- import u from "./FifthComponent.js";
10
- /* empty css */
3
+ import m from "../../Button";
4
+ import l from "..";
5
+ import c from "./FirstComponent";
6
+ import p from "./SecondComponent";
7
+ import d from "./ThirdComponent";
8
+ import h from "./FourthComponent";
9
+ import u from "./FifthComponent";
10
+ import "./index.css";
11
11
  function F() {
12
12
  const [e, a] = s(0), n = [];
13
13
  for (let o = 0; o < 5; o++)
@@ -1,4 +1,5 @@
1
- import r from "./passport.js";
1
+ import "./passport";
2
+ import { default as e } from "./passport";
2
3
  export {
3
- r as default
4
+ e as default
4
5
  };
@@ -2,8 +2,8 @@ import { jsxs as r, jsx as l } from "react/jsx-runtime";
2
2
  import f from "lodash/upperFirst";
3
3
  import { Box as i } from "@mui/material";
4
4
  import x from "@arcblock/icons/lib/RevokeIcon";
5
- import u from "../NFTDisplay/index.js";
6
- import { useLocaleContext as y } from "../Locale/context.js";
5
+ import u from "../NFTDisplay";
6
+ import { useLocaleContext as y } from "../Locale/context";
7
7
  function b({
8
8
  passport: e,
9
9
  user: m,
@@ -1,27 +1,27 @@
1
- import { jsxs as l, jsx as o } from "react/jsx-runtime";
1
+ import { jsxs as l, jsx as t } from "react/jsx-runtime";
2
2
  import { useState as O, useMemo as x } from "react";
3
3
  import { Box as C, Typography as a, Select as z, TextField as j, MenuItem as k } from "@mui/material";
4
4
  import { defaultCountries as u, parseCountry as c, FlagEmoji as y } from "react-international-phone";
5
5
  import P from "@arcblock/icons/lib/ArrowDown";
6
- import { mergeSx as F } from "../Util/style.js";
6
+ import { mergeSx as F } from "../Util/style";
7
7
  function L({
8
- ref: w,
8
+ ref: w = void 0,
9
9
  value: i,
10
- onChange: s,
10
+ onChange: s = void 0,
11
11
  sx: I = {},
12
- selectCountryProps: M,
12
+ selectCountryProps: M = void 0,
13
13
  preview: p = !1,
14
- valueField: S = "iso2",
14
+ valueField: v = "iso2",
15
15
  ...m
16
16
  }) {
17
- const { hideFlag: h = !0, hideDialCode: f = !1 } = M || {}, [n, b] = O(""), r = x(() => {
18
- const e = u.find((t) => t[1] === i);
17
+ const { hideFlag: h = !0, hideDialCode: f = !1 } = M || {}, [n, S] = O(""), r = x(() => {
18
+ const e = u.find((o) => o[1] === i);
19
19
  return i && e ? c(e) : { name: "", iso2: "", dialCode: "" };
20
- }, [i]), v = x(() => {
20
+ }, [i]), b = x(() => {
21
21
  if (!n) return u;
22
22
  const e = n.toLowerCase();
23
- return u.filter((t) => {
24
- const d = c(t);
23
+ return u.filter((o) => {
24
+ const d = c(o);
25
25
  return d.name.toLowerCase().includes(e) || d.iso2.toLowerCase().includes(e) || d.dialCode.includes(e);
26
26
  });
27
27
  }, [n]), g = /* @__PURE__ */ l(
@@ -35,8 +35,8 @@ function L({
35
35
  cursor: p ? "default" : "pointer"
36
36
  },
37
37
  children: [
38
- h ? null : /* @__PURE__ */ o(y, { iso2: i, style: { display: "flex", width: 24, color: "inherit" } }),
39
- /* @__PURE__ */ o(a, { component: "span", sx: { lineHeight: 1.5 }, children: f ? r == null ? void 0 : r.name : `+${r == null ? void 0 : r.dialCode}` })
38
+ h ? null : /* @__PURE__ */ t(y, { iso2: i, style: { display: "flex", width: 24, color: "inherit" } }),
39
+ /* @__PURE__ */ t(a, { component: "span", sx: { lineHeight: 1.5 }, children: f ? r == null ? void 0 : r.name : `+${r == null ? void 0 : r.dialCode}` })
40
40
  ]
41
41
  }
42
42
  );
@@ -71,40 +71,40 @@ function L({
71
71
  ),
72
72
  value: i,
73
73
  onChange: (e) => s == null ? void 0 : s(e.target.value),
74
- IconComponent: (e) => /* @__PURE__ */ o(P, { ...e, width: 20, height: 20 }),
74
+ IconComponent: (e) => /* @__PURE__ */ t(P, { ...e, width: 20, height: 20 }),
75
75
  renderValue: () => g,
76
76
  children: [
77
- /* @__PURE__ */ o(C, { sx: { p: 1, position: "sticky", top: 0, bgcolor: "background.paper", zIndex: 1 }, children: /* @__PURE__ */ o(
77
+ /* @__PURE__ */ t(C, { sx: { p: 1, position: "sticky", top: 0, bgcolor: "background.paper", zIndex: 1 }, children: /* @__PURE__ */ t(
78
78
  j,
79
79
  {
80
80
  size: "small",
81
81
  fullWidth: !0,
82
82
  placeholder: "Search country...",
83
83
  value: n,
84
- onChange: (e) => b(e.target.value),
84
+ onChange: (e) => S(e.target.value),
85
85
  onClick: (e) => e.stopPropagation(),
86
86
  onKeyDown: (e) => e.stopPropagation()
87
87
  }
88
88
  ) }),
89
- v.map((e) => {
90
- const t = c(e);
91
- return /* @__PURE__ */ l(k, { value: t[S], children: [
92
- h ? null : /* @__PURE__ */ o(y, { iso2: t.iso2, style: { marginRight: 8, width: 24 } }),
93
- /* @__PURE__ */ o(
89
+ b.map((e) => {
90
+ const o = c(e);
91
+ return /* @__PURE__ */ l(k, { value: o[v], children: [
92
+ h ? null : /* @__PURE__ */ t(y, { iso2: o.iso2, style: { marginRight: 8, width: 24 } }),
93
+ /* @__PURE__ */ t(
94
94
  a,
95
95
  {
96
96
  sx: {
97
97
  marginRight: 1
98
98
  },
99
- children: t.name
99
+ children: o.name
100
100
  }
101
101
  ),
102
102
  f ? null : /* @__PURE__ */ l(a, { color: "gray", children: [
103
103
  "(+",
104
- t.dialCode,
104
+ o.dialCode,
105
105
  ")"
106
106
  ] })
107
- ] }, t.iso2);
107
+ ] }, o.iso2);
108
108
  })
109
109
  ]
110
110
  }
@@ -1,17 +1,17 @@
1
1
  import { jsxs as $, jsx as m } from "react/jsx-runtime";
2
2
  import { useMemo as P, useState as F, useCallback as k } from "react";
3
3
  import { Box as I, Typography as A, TextField as L } from "@mui/material";
4
- import { parsePhoneNumber as w } from "awesome-phonenumber";
4
+ import { parsePhoneNumber as v } from "awesome-phonenumber";
5
5
  import { defaultCountries as f, parseCountry as p, usePhoneInput as R } from "react-international-phone";
6
- import V from "./country-select.js";
7
- import { mergeSx as q } from "../Util/style.js";
6
+ import V from "./country-select";
7
+ import { mergeSx as q } from "../Util/style";
8
8
  function W(e, t, n = "") {
9
9
  var c, h;
10
10
  if (!e) return !1;
11
- const r = e.replace(/[\s\-()]+/g, ""), u = n || v(t);
11
+ const r = e.replace(/[\s\-()]+/g, ""), u = n || B(t);
12
12
  if (g(u) === g(r))
13
13
  return !0;
14
- const a = w(e, { regionCode: t }), d = (c = a.number) == null ? void 0 : c.input.replace(/[\s\-()]+/g, "");
14
+ const a = v(e, { regionCode: t }), d = (c = a.number) == null ? void 0 : c.input.replace(/[\s\-()]+/g, "");
15
15
  return a.valid && (a.type === "mobile" || a.type === "fixed-line-or-mobile") && d === ((h = a.number) == null ? void 0 : h.e164);
16
16
  }
17
17
  function x(e, t) {
@@ -23,22 +23,22 @@ function b(e, t) {
23
23
  function g(e) {
24
24
  return e.replace(/^\+/, "");
25
25
  }
26
- function B(e, t) {
26
+ function w(e, t) {
27
27
  const n = f.find((r) => p(r).iso2 === e);
28
28
  if (n)
29
29
  return p(n)[t];
30
30
  }
31
- function v(e) {
32
- return B(e, "dialCode") || "";
31
+ function B(e) {
32
+ return w(e, "dialCode") || "";
33
33
  }
34
34
  function U(e) {
35
- return B(e, "name") || "";
35
+ return w(e, "name") || "";
36
36
  }
37
37
  function X(e) {
38
38
  try {
39
39
  if (!e) return;
40
40
  if (e.startsWith("+")) {
41
- const t = w(e);
41
+ const t = v(e);
42
42
  if (t.valid)
43
43
  return t.regionCode.toLowerCase();
44
44
  for (const n of f) {
@@ -59,7 +59,7 @@ function X(e) {
59
59
  }
60
60
  function Y({
61
61
  value: e = { country: "us", phone: "" },
62
- onChange: t,
62
+ onChange: t = void 0,
63
63
  placeholder: n = "Enter phone number",
64
64
  countryDisplayOptions: r = {},
65
65
  preview: u = !1,
@@ -105,7 +105,7 @@ function Y({
105
105
  u || T(o);
106
106
  };
107
107
  if (u) {
108
- const o = b(l, v(y)), i = l && W(o, y), s = a && i;
108
+ const o = b(l, B(y)), i = l && W(o, y), s = a && i;
109
109
  return /* @__PURE__ */ $(
110
110
  I,
111
111
  {
@@ -182,6 +182,6 @@ export {
182
182
  Y as default,
183
183
  X as detectCountryFromPhone,
184
184
  U as getCountryNameByCountry,
185
- v as getDialCodeByCountry,
185
+ B as getDialCodeByCountry,
186
186
  W as validatePhoneNumber
187
187
  };
@@ -1,16 +1,20 @@
1
1
  import { jsxs as c, jsx as r } from "react/jsx-runtime";
2
- import { Typography as n, Link as t } from "@mui/material";
3
- function a({ linkProps: e, showExtra: o, ...l }) {
2
+ import { Typography as n, Link as o } from "@mui/material";
3
+ function h({
4
+ linkProps: e = void 0,
5
+ showExtra: t = !1,
6
+ ...l
7
+ }) {
4
8
  return /* @__PURE__ */ c(n, { ...l, children: [
5
9
  "Powered by",
6
10
  " ",
7
- /* @__PURE__ */ r(t, { href: "https://www.arcblock.io", target: "_blank", ...e, children: "ArcBlock" }),
11
+ /* @__PURE__ */ r(o, { href: "https://www.arcblock.io", target: "_blank", ...e, children: "ArcBlock" }),
8
12
  "'s",
9
13
  " ",
10
- /* @__PURE__ */ r(t, { href: "https://www.blocklet.io", target: "_blank", ...e, children: "Blocklet Technology" }),
11
- o ? ", the decentralized web engine." : null
14
+ /* @__PURE__ */ r(o, { href: "https://www.blocklet.io", target: "_blank", ...e, children: "Blocklet Technology" }),
15
+ t ? ", the decentralized web engine." : null
12
16
  ] });
13
17
  }
14
18
  export {
15
- a as default
19
+ h as default
16
20
  };
@@ -1,6 +1,6 @@
1
1
  import { jsxs as t, jsx as n } from "react/jsx-runtime";
2
2
  import { Card as a, CardContent as o, Typography as r, Button as c } from "@mui/material";
3
- import { styled as l } from "../Theme/index.js";
3
+ import { styled as l } from "../Theme";
4
4
  function f({ plan: e }) {
5
5
  return /* @__PURE__ */ t(s, { $shadow: !0, children: [
6
6
  /* @__PURE__ */ n("div", { className: "card-header", children: /* @__PURE__ */ n("div", { className: "title", children: e.name }) }),
@@ -1,8 +1,8 @@
1
1
  import { jsx as e } from "react/jsx-runtime";
2
2
  import { Grid as n } from "@mui/material";
3
- import a from "./PricingPlan.js";
4
- import { styled as m } from "../Theme/index.js";
5
- import { withDeprecated as o } from "../Util/deprecate.js";
3
+ import a from "./PricingPlan";
4
+ import { styled as m } from "../Theme";
5
+ import { withDeprecated as o } from "../Util/deprecate";
6
6
  function d({ plans: i = [] }) {
7
7
  return i && i.length > 0 ? /* @__PURE__ */ e(f, { variant: "even", children: /* @__PURE__ */ e(
8
8
  n,
@@ -1,5 +1,5 @@
1
1
  import { jsx as d } from "react/jsx-runtime";
2
- import { useRef as f, useMemo as m, useState as c, useEffect as p } from "react";
2
+ import { useRef as f, useMemo as m, useState as c, useEffect as i } from "react";
3
3
  import a from "@solana/qr-code-styling";
4
4
  import { Box as l } from "@mui/material";
5
5
  const y = {
@@ -14,7 +14,7 @@ const y = {
14
14
  type: "dot"
15
15
  }
16
16
  };
17
- function C({ data: s, size: r, image: e, config: u = {}, ...i }) {
17
+ function C({ data: s, size: r, image: e = void 0, config: u = {}, ...p }) {
18
18
  const o = f(null), n = m(() => ({
19
19
  ...y,
20
20
  data: s,
@@ -29,11 +29,11 @@ function C({ data: s, size: r, image: e, config: u = {}, ...i }) {
29
29
  },
30
30
  ...u
31
31
  }), [s, r, e, u]), [t] = c(new a(n));
32
- return p(() => {
32
+ return i(() => {
33
33
  o.current && t.append(o.current);
34
- }, [t, o]), p(() => {
34
+ }, [t, o]), i(() => {
35
35
  t && t.update(n);
36
- }, [n, t]), /* @__PURE__ */ d(l, { ref: o, ...i });
36
+ }, [n, t]), /* @__PURE__ */ d(l, { ref: o, ...p });
37
37
  }
38
38
  export {
39
39
  C as default