@arcblock/ux 2.10.67 → 2.10.68

Sign up to get free protection for your applications and to get access to all the features.
Files changed (294) hide show
  1. package/lib/Address/did-address.d.ts +6 -5
  2. package/lib/Address/index.d.ts +1 -1
  3. package/lib/Avatar/index.d.ts +10 -8
  4. package/lib/Avatar/index.js +6 -4
  5. package/lib/Blocklet/blocklet.d.ts +4 -4
  6. package/lib/Blocklet/blocklet.js +2 -2
  7. package/lib/BlockletContext/index.d.ts +3 -3
  8. package/lib/BlockletNFT/index.d.ts +6 -6
  9. package/lib/BlockletNFT/index.js +3 -3
  10. package/lib/BlockletV2/blocklet.d.ts +2 -2
  11. package/lib/Button/wrap.d.ts +4 -4
  12. package/lib/Button/wrap.js +2 -2
  13. package/lib/CardSelector/index.js +0 -1
  14. package/lib/Center/index.d.ts +1 -1
  15. package/lib/ClickToCopy/copy-button.d.ts +5 -4
  16. package/lib/ClickToCopy/copy-button.js +0 -1
  17. package/lib/ClickToCopy/hook.d.ts +3 -8
  18. package/lib/ClickToCopy/index.d.ts +6 -4
  19. package/lib/CodeBlock/index.d.ts +3 -1
  20. package/lib/CookieConsent/index.d.ts +8 -29
  21. package/lib/CookieConsent/index.js +3 -17
  22. package/lib/CountDown/index.d.ts +21 -25
  23. package/lib/CountDown/index.js +12 -11
  24. package/lib/DID/index.d.ts +9 -8
  25. package/lib/Datatable/index.d.ts +5 -5
  26. package/lib/Datatable/index.js +5 -5
  27. package/lib/Dialog/confirm.d.ts +6 -6
  28. package/lib/Dialog/confirm.js +3 -3
  29. package/lib/Dialog/types.d.ts +1 -1
  30. package/lib/DidLogo/index.d.ts +5 -25
  31. package/lib/DidLogo/index.js +4 -15
  32. package/lib/DriftBot/index.d.ts +13 -19
  33. package/lib/DriftBot/index.js +5 -6
  34. package/lib/Earth/index.d.ts +28 -10
  35. package/lib/Earth/index.js +12 -52
  36. package/lib/Earth/util.d.ts +10 -5
  37. package/lib/Earth/util.js +1 -0
  38. package/lib/ErrorBoundary/fallback.d.ts +12 -19
  39. package/lib/ErrorBoundary/fallback.js +2 -19
  40. package/lib/ErrorBoundary/index.d.ts +1 -1
  41. package/lib/Footer/index.d.ts +17 -24
  42. package/lib/Footer/index.js +2 -11
  43. package/lib/Header/header.d.ts +2 -2
  44. package/lib/Icon/image.d.ts +3 -2
  45. package/lib/Icon/index.d.ts +6 -4
  46. package/lib/Img/index.d.ts +1 -1
  47. package/lib/Img/index.js +1 -1
  48. package/lib/InfoRow/index.d.ts +9 -32
  49. package/lib/InfoRow/index.js +10 -23
  50. package/lib/Layout/dashboard/external-link.d.ts +13 -14
  51. package/lib/Layout/dashboard/external-link.js +5 -22
  52. package/lib/Layout/dashboard/full-page.d.ts +19 -11
  53. package/lib/Layout/dashboard/full-page.js +2 -6
  54. package/lib/Layout/dashboard/index.d.ts +20 -39
  55. package/lib/Layout/dashboard/index.js +10 -38
  56. package/lib/Layout/dashboard/sidebar.d.ts +17 -20
  57. package/lib/Layout/dashboard/sidebar.js +3 -16
  58. package/lib/Layout/dashboard-legacy/header.d.ts +10 -36
  59. package/lib/Layout/dashboard-legacy/header.js +5 -24
  60. package/lib/Layout/dashboard-legacy/index.d.ts +17 -56
  61. package/lib/Layout/dashboard-legacy/index.js +12 -41
  62. package/lib/Layout/dashboard-legacy/sidebar.d.ts +15 -26
  63. package/lib/Layout/dashboard-legacy/sidebar.js +5 -15
  64. package/lib/Layout/index.d.ts +17 -56
  65. package/lib/Layout/index.js +24 -50
  66. package/lib/LoadingMask/index.d.ts +8 -31
  67. package/lib/LoadingMask/index.js +2 -18
  68. package/lib/Locale/browser-lang.d.ts +4 -1
  69. package/lib/Locale/browser-lang.js +8 -3
  70. package/lib/Locale/context.d.ts +18 -8
  71. package/lib/Locale/context.js +1 -1
  72. package/lib/Locale/languages.d.ts +9 -55
  73. package/lib/Locale/selector.d.ts +10 -26
  74. package/lib/Locale/selector.js +8 -25
  75. package/lib/Locale/util.d.ts +4 -3
  76. package/lib/Locale/util.js +0 -1
  77. package/lib/Logo/index.d.ts +9 -40
  78. package/lib/Logo/index.js +88 -46
  79. package/lib/Metric/index.d.ts +9 -31
  80. package/lib/Metric/index.js +5 -20
  81. package/lib/NFTDisplay/aspect-ratio-container.d.ts +5 -12
  82. package/lib/NFTDisplay/aspect-ratio-container.js +0 -5
  83. package/lib/NFTDisplay/broken.d.ts +3 -13
  84. package/lib/NFTDisplay/broken.js +80 -10
  85. package/lib/NFTDisplay/displayApi.d.ts +1 -1
  86. package/lib/NFTDisplay/index.d.ts +28 -6
  87. package/lib/NFTDisplay/index.js +17 -51
  88. package/lib/NFTDisplay/svg-embedder/img.d.ts +8 -23
  89. package/lib/NFTDisplay/svg-embedder/img.js +3 -17
  90. package/lib/NFTDisplay/svg-embedder/inline-svg.d.ts +7 -13
  91. package/lib/NFTDisplay/svg-embedder/inline-svg.js +1 -8
  92. package/lib/NavMenu/nav-menu.d.ts +2 -0
  93. package/lib/NavMenu/nav-menu.js +0 -1
  94. package/lib/PageScroller/index.d.ts +14 -13
  95. package/lib/PageScroller/index.js +12 -37
  96. package/lib/PageScroller/usePrevValue.d.ts +1 -1
  97. package/lib/PageScroller/usePrevValue.js +1 -2
  98. package/lib/Passport/index.d.ts +1 -1
  99. package/lib/Passport/passport.d.ts +10 -30
  100. package/lib/Passport/passport.js +5 -19
  101. package/lib/PoweredByArcBlock/index.d.ts +4 -14
  102. package/lib/PoweredByArcBlock/index.js +1 -8
  103. package/lib/PricingTable/PricingPlan.d.ts +11 -9
  104. package/lib/PricingTable/PricingPlan.js +0 -4
  105. package/lib/PricingTable/index.d.ts +5 -3
  106. package/lib/PricingTable/index.js +1 -5
  107. package/lib/QRCode/index.d.ts +11 -22
  108. package/lib/QRCode/index.js +1 -15
  109. package/lib/RelativeTime/index.d.ts +12 -40
  110. package/lib/RelativeTime/index.js +7 -27
  111. package/lib/Result/common.d.ts +26 -45
  112. package/lib/Result/common.js +2 -4
  113. package/lib/Result/index.d.ts +5 -18
  114. package/lib/Result/index.js +1 -9
  115. package/lib/Result/result.d.ts +7 -29
  116. package/lib/Result/result.js +2 -17
  117. package/lib/Result/translations.d.ts +2 -54
  118. package/lib/Screenshot/BaseScreenshot/index.d.ts +7 -24
  119. package/lib/Screenshot/BaseScreenshot/index.js +2 -15
  120. package/lib/Screenshot/BaseScreenshot/shells/Macbook.d.ts +25 -19
  121. package/lib/Screenshot/BaseScreenshot/shells/Phone.d.ts +25 -19
  122. package/lib/Screenshot/index.d.ts +84 -28
  123. package/lib/Screenshot/index.js +14 -43
  124. package/lib/SessionBlocklet/index.d.ts +6 -19
  125. package/lib/SessionBlocklet/index.js +3 -14
  126. package/lib/SessionManager/index.d.ts +1 -1
  127. package/lib/SessionPermission/index.d.ts +9 -17
  128. package/lib/SessionPermission/index.js +3 -11
  129. package/lib/SessionUser/components/logged-in.d.ts +9 -31
  130. package/lib/SessionUser/components/logged-in.js +13 -29
  131. package/lib/SessionUser/components/session-user-item.d.ts +8 -1
  132. package/lib/SessionUser/components/session-user-item.js +2 -12
  133. package/lib/SessionUser/components/session-user-switch.d.ts +9 -21
  134. package/lib/SessionUser/components/session-user-switch.js +3 -15
  135. package/lib/SessionUser/components/un-login.d.ts +7 -23
  136. package/lib/SessionUser/components/un-login.js +4 -16
  137. package/lib/SessionUser/components/user-info.d.ts +12 -29
  138. package/lib/SessionUser/components/user-info.js +4 -19
  139. package/lib/SessionUser/index.d.ts +7 -30
  140. package/lib/SessionUser/index.js +5 -26
  141. package/lib/SessionUser/libs/translation.d.ts +2 -31
  142. package/lib/SessionUser/libs/translation.js +1 -0
  143. package/lib/SessionUser/libs/utils.d.ts +10 -9
  144. package/lib/Sparkline/index.d.ts +22 -1
  145. package/lib/Sparkline/index.js +25 -17
  146. package/lib/Spinner/index.d.ts +6 -1
  147. package/lib/Spinner/index.js +4 -11
  148. package/lib/Success/index.d.ts +5 -21
  149. package/lib/Success/index.js +4 -16
  150. package/lib/Tabs/index.d.ts +12 -26
  151. package/lib/Tabs/index.js +7 -37
  152. package/lib/TextCollapse/index.d.ts +10 -10
  153. package/lib/TextCollapse/index.js +4 -21
  154. package/lib/Theme/index.js +0 -2
  155. package/lib/Theme/theme-provider.d.ts +1 -1
  156. package/lib/Theme/theme.d.ts +4 -1
  157. package/lib/Theme/theme.js +1 -2
  158. package/lib/Typography/index.d.ts +5 -24
  159. package/lib/Typography/index.js +5 -17
  160. package/lib/Util/index.d.ts +11 -6
  161. package/lib/Util/index.js +6 -0
  162. package/lib/Video/index.d.ts +12 -16
  163. package/lib/Video/index.js +0 -14
  164. package/lib/Wallet/Action.d.ts +13 -18
  165. package/lib/Wallet/Action.js +0 -7
  166. package/lib/Wallet/Download.d.ts +24 -30
  167. package/lib/Wallet/Download.js +201 -18
  168. package/lib/Wallet/Open.d.ts +5 -15
  169. package/lib/Wallet/Open.js +5 -11
  170. package/lib/WalletOSIcon/index.d.ts +6 -25
  171. package/lib/WalletOSIcon/index.js +3 -16
  172. package/lib/WebWalletSWKeeper/index.d.ts +8 -20
  173. package/lib/WebWalletSWKeeper/index.js +14 -19
  174. package/lib/WechatPrompt/index.js +2 -0
  175. package/lib/global.d.ts +15 -0
  176. package/lib/type.d.ts +12 -3
  177. package/lib/withTheme/index.d.ts +8 -6
  178. package/lib/withTracker/index.d.ts +1 -1
  179. package/lib/withTracker/index.js +3 -0
  180. package/package.json +9 -5
  181. package/src/Address/did-address.tsx +7 -6
  182. package/src/Address/index.tsx +1 -1
  183. package/src/Avatar/index.jsx +6 -4
  184. package/src/Blocklet/blocklet.jsx +2 -2
  185. package/src/BlockletContext/index.tsx +3 -3
  186. package/src/BlockletNFT/index.jsx +3 -3
  187. package/src/BlockletV2/blocklet.tsx +2 -2
  188. package/src/Button/wrap.jsx +2 -2
  189. package/src/CardSelector/index.tsx +0 -1
  190. package/src/Center/index.tsx +1 -1
  191. package/src/ClickToCopy/copy-button.tsx +4 -4
  192. package/src/ClickToCopy/hook.ts +3 -2
  193. package/src/ClickToCopy/index.tsx +6 -5
  194. package/src/CodeBlock/index.tsx +3 -1
  195. package/src/CookieConsent/{index.jsx → index.tsx} +16 -19
  196. package/src/CountDown/{index.jsx → index.tsx} +30 -16
  197. package/src/DID/index.tsx +9 -8
  198. package/src/Datatable/index.jsx +5 -5
  199. package/src/Dialog/confirm.jsx +3 -3
  200. package/src/Dialog/types.d.ts +1 -1
  201. package/src/DidLogo/{index.jsx → index.tsx} +7 -14
  202. package/src/DriftBot/{index.jsx → index.tsx} +13 -11
  203. package/src/Earth/{index.jsx → index.tsx} +94 -66
  204. package/src/Earth/{util.js → util.ts} +20 -17
  205. package/src/ErrorBoundary/{fallback.jsx → fallback.tsx} +20 -21
  206. package/src/Footer/{index.jsx → index.tsx} +17 -14
  207. package/src/Header/header.tsx +2 -3
  208. package/src/Header/responsive-header.tsx +0 -1
  209. package/src/Icon/image.tsx +3 -3
  210. package/src/Icon/index.tsx +7 -4
  211. package/src/Img/index.jsx +1 -1
  212. package/src/InfoRow/{index.jsx → index.tsx} +32 -25
  213. package/src/Layout/dashboard/external-link.tsx +46 -0
  214. package/src/Layout/dashboard/{full-page.jsx → full-page.tsx} +20 -9
  215. package/src/Layout/dashboard/{index.jsx → index.tsx} +42 -44
  216. package/src/Layout/dashboard/{sidebar.jsx → sidebar.tsx} +23 -20
  217. package/src/Layout/dashboard-legacy/{header.jsx → header.tsx} +16 -26
  218. package/src/Layout/dashboard-legacy/{index.jsx → index.tsx} +32 -46
  219. package/src/Layout/dashboard-legacy/{sidebar.jsx → sidebar.tsx} +27 -19
  220. package/src/Layout/{index.jsx → index.tsx} +41 -47
  221. package/src/LoadingMask/{index.jsx → index.tsx} +17 -19
  222. package/src/Locale/{browser-lang.js → browser-lang.ts} +9 -7
  223. package/src/Locale/context.tsx +18 -11
  224. package/src/Locale/{languages.js → languages.ts} +1 -1
  225. package/src/Locale/{selector.jsx → selector.tsx} +32 -29
  226. package/src/Locale/{util.js → util.ts} +9 -2
  227. package/src/Logo/index.tsx +58 -0
  228. package/src/Metric/{index.jsx → index.tsx} +23 -18
  229. package/src/NFTDisplay/{aspect-ratio-container.jsx → aspect-ratio-container.tsx} +9 -7
  230. package/src/NFTDisplay/{broken.jsx → broken.tsx} +7 -12
  231. package/src/NFTDisplay/{displayApi.js → displayApi.ts} +4 -4
  232. package/src/NFTDisplay/{index.jsx → index.tsx} +59 -64
  233. package/src/NFTDisplay/svg-embedder/{img.jsx → img.tsx} +10 -18
  234. package/src/NFTDisplay/svg-embedder/{inline-svg.jsx → inline-svg.tsx} +8 -9
  235. package/src/NavMenu/nav-menu.tsx +2 -3
  236. package/src/PageScroller/{index.jsx → index.tsx} +40 -53
  237. package/src/PageScroller/{usePrevValue.js → usePrevValue.ts} +2 -3
  238. package/src/Passport/{passport.jsx → passport.tsx} +22 -19
  239. package/src/PoweredByArcBlock/{index.jsx → index.tsx} +6 -11
  240. package/src/PricingTable/{PricingPlan.jsx → PricingPlan.tsx} +15 -5
  241. package/src/PricingTable/{index.jsx → index.tsx} +9 -6
  242. package/src/QRCode/{index.jsx → index.tsx} +13 -17
  243. package/src/RelativeTime/{index.jsx → index.tsx} +24 -24
  244. package/src/Result/{common.jsx → common.tsx} +17 -13
  245. package/src/Result/index.tsx +30 -0
  246. package/src/Result/{result.jsx → result.tsx} +8 -17
  247. package/src/Result/{translations.js → translations.ts} +3 -1
  248. package/src/Screenshot/BaseScreenshot/{index.jsx → index.tsx} +9 -15
  249. package/src/Screenshot/BaseScreenshot/shells/{Macbook.jsx → Macbook.tsx} +3 -1
  250. package/src/Screenshot/BaseScreenshot/shells/{Phone.jsx → Phone.tsx} +3 -1
  251. package/src/Screenshot/{index.jsx → index.tsx} +60 -54
  252. package/src/SessionBlocklet/{index.jsx → index.tsx} +8 -14
  253. package/src/SessionPermission/index.tsx +25 -0
  254. package/src/SessionUser/components/{logged-in.jsx → logged-in.tsx} +49 -31
  255. package/src/SessionUser/components/session-user-item.tsx +97 -0
  256. package/src/SessionUser/components/{session-user-switch.jsx → session-user-switch.tsx} +16 -21
  257. package/src/SessionUser/components/{un-login.jsx → un-login.tsx} +10 -15
  258. package/src/SessionUser/components/{user-info.jsx → user-info.tsx} +16 -22
  259. package/src/SessionUser/index.tsx +26 -0
  260. package/src/SessionUser/libs/{translation.js → translation.ts} +3 -1
  261. package/src/SessionUser/libs/utils.ts +39 -0
  262. package/src/Sparkline/{index.jsx → index.tsx} +38 -22
  263. package/src/Spinner/index.tsx +20 -0
  264. package/src/Success/{index.jsx → index.tsx} +7 -13
  265. package/src/Tabs/{index.jsx → index.tsx} +26 -40
  266. package/src/TextCollapse/{index.jsx → index.tsx} +26 -21
  267. package/src/Theme/index.ts +0 -1
  268. package/src/Theme/theme-provider.tsx +1 -1
  269. package/src/Theme/theme.ts +6 -3
  270. package/src/Typography/{index.jsx → index.tsx} +19 -22
  271. package/src/Util/index.ts +14 -8
  272. package/src/Video/{index.jsx → index.tsx} +7 -10
  273. package/src/Wallet/{Action.jsx → Action.tsx} +16 -12
  274. package/src/Wallet/{Download.jsx → Download.tsx} +25 -21
  275. package/src/Wallet/{Open.jsx → Open.tsx} +8 -11
  276. package/src/WalletOSIcon/{index.jsx → index.tsx} +8 -16
  277. package/src/WebWalletSWKeeper/{index.jsx → index.tsx} +21 -24
  278. package/src/WechatPrompt/{index.jsx → index.tsx} +1 -0
  279. package/src/global.d.ts +15 -0
  280. package/src/type.d.ts +12 -3
  281. package/src/withTheme/{index.jsx → index.tsx} +12 -2
  282. package/src/withTracker/{index.jsx → index.tsx} +6 -4
  283. package/src/Layout/dashboard/external-link.jsx +0 -47
  284. package/src/Logo/index.jsx +0 -66
  285. package/src/Result/index.jsx +0 -33
  286. package/src/SessionPermission/index.jsx +0 -28
  287. package/src/SessionUser/components/session-user-item.jsx +0 -93
  288. package/src/SessionUser/index.jsx +0 -38
  289. package/src/SessionUser/libs/utils.js +0 -37
  290. package/src/Spinner/index.jsx +0 -21
  291. /package/src/ErrorBoundary/{index.jsx → index.ts} +0 -0
  292. /package/src/NFTDisplay/{loading.jsx → loading.tsx} +0 -0
  293. /package/src/Passport/{index.jsx → index.ts} +0 -0
  294. /package/src/SessionManager/{index.jsx → index.tsx} +0 -0
@@ -1,21 +1,20 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import PropTyps from 'prop-types';
3
2
  import { Box, Typography as MuiTypography, Skeleton } from '@mui/material';
4
3
  import { useCreation, useReactive, useSize } from 'ahooks';
5
4
  import { useEffect, useRef } from 'react';
6
5
  export default function Typography({
7
- minFontSize,
6
+ children = null,
7
+ minFontSize = 12,
8
8
  fontSize,
9
- children,
10
9
  sx,
11
10
  ...rest
12
11
  }) {
13
12
  const refMock = useRef(null);
14
13
  const refContainer = useRef(null);
15
14
  const state = useReactive({
15
+ // @ts-expect-error
16
16
  fontSize,
17
- loading: true,
18
- initialSize: undefined
17
+ loading: true
19
18
  });
20
19
  const mockSize = useSize(refMock.current);
21
20
  const containerSize = useSize(refContainer.current);
@@ -80,15 +79,4 @@ export default function Typography({
80
79
  },
81
80
  children: children
82
81
  });
83
- }
84
- Typography.propTypes = {
85
- fontSize: PropTyps.oneOfType([PropTyps.string, PropTyps.number]),
86
- children: PropTyps.any.isRequired,
87
- minFontSize: PropTyps.number,
88
- sx: PropTyps.object
89
- };
90
- Typography.defaultProps = {
91
- fontSize: undefined,
92
- minFontSize: 12,
93
- sx: {}
94
- };
82
+ }
@@ -1,4 +1,4 @@
1
- import type { $TSFixMe } from '../type';
1
+ import type { $TSFixMe, Locale } from '../type';
2
2
  declare let dateTool: $TSFixMe | null;
3
3
  export declare function parseQuery(str: string): Record<string, string | boolean>;
4
4
  export declare function stringifyQuery(params?: {}): string;
@@ -12,6 +12,11 @@ export declare function getCookieOptions(expireInDays?: number | {
12
12
  }): import("js-cookie").CookieAttributes;
13
13
  export declare const getColor: (props: $TSFixMe) => any;
14
14
  export declare const getBackground: (props: $TSFixMe) => any;
15
+ /**
16
+ * 1. 将 props 中以 ::prop:: 开头的字符串替换为 component.defaultProps 中的值
17
+ * 2. 将 props 中由 jsonAttrs 指定的 json 字符串转换为对象
18
+ * 3. 最后将 props 中的 ::prop:: 字符串替换为 ''
19
+ */
15
20
  export declare function mergeProps<P extends object>(props: Record<string, any>, component: React.ComponentType<P>, jsonAttrs?: string[]): Record<string, any>;
16
21
  export declare function getCopyright(startYear?: number): string;
17
22
  export declare const getTimezone: () => string;
@@ -29,7 +34,7 @@ export declare function getDateTool(): any;
29
34
  * @returns formatted date string
30
35
  */
31
36
  export declare function formatToDate(date: string, { locale, tz }?: {
32
- locale?: string;
37
+ locale?: Locale;
33
38
  tz?: string;
34
39
  }): any;
35
40
  /**
@@ -38,14 +43,14 @@ export declare function formatToDate(date: string, { locale, tz }?: {
38
43
  * @returns formatted date string
39
44
  */
40
45
  export declare function formatToDatetime(date: string, { locale, tz }?: {
41
- locale?: string;
46
+ locale?: Locale;
42
47
  tz?: string;
43
48
  }): any;
44
49
  export declare function detectWalletExtension(): any;
45
50
  export declare function openWebWallet({ webWalletUrl, action, locale, url, windowFeatures, }: {
46
51
  webWalletUrl: string;
47
52
  action?: string;
48
- locale?: string;
53
+ locale?: Locale;
49
54
  url: string;
50
55
  windowFeatures: $TSFixMe;
51
56
  }): void;
@@ -73,8 +78,8 @@ type TranslationsObject = {
73
78
  * Retrieves the appropriate translation based on the locale, with fallback options.
74
79
  * @return {string} The translated string based on the locale, with fallback options if necessary.
75
80
  */
76
- export declare const getTranslation: (translations: string | TranslationsObject, locale: string, options?: {
77
- fallbackLocale?: string;
81
+ export declare const getTranslation: (translations: TranslationsObject, locale: Locale, options?: {
82
+ fallbackLocale?: Locale;
78
83
  defaultValue?: string;
79
84
  }) => string;
80
85
  export {};
package/lib/Util/index.js CHANGED
@@ -61,6 +61,12 @@ export const getBackground = props => {
61
61
  }
62
62
  return props.theme.palette.common.white;
63
63
  };
64
+
65
+ /**
66
+ * 1. 将 props 中以 ::prop:: 开头的字符串替换为 component.defaultProps 中的值
67
+ * 2. 将 props 中由 jsonAttrs 指定的 json 字符串转换为对象
68
+ * 3. 最后将 props 中的 ::prop:: 字符串替换为 ''
69
+ */
64
70
  export function mergeProps(props, component, jsonAttrs = []) {
65
71
  const newProps = Object.assign({}, props);
66
72
  Object.keys(component.defaultProps || {}).forEach(x => {
@@ -1,19 +1,15 @@
1
- declare function Video(props: any): import("react/jsx-runtime").JSX.Element;
1
+ export interface VideoProps {
2
+ url: string;
3
+ width?: string | number;
4
+ height?: string | number;
5
+ style?: React.CSSProperties;
6
+ }
7
+ declare function Video(props: VideoProps): import("react/jsx-runtime").JSX.Element;
2
8
  declare namespace Video {
3
- namespace propTypes {
4
- let url: PropTypes.Validator<NonNullable<NonNullable<string | object | null | undefined>>>;
5
- let width: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
6
- let height: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
7
- let style: PropTypes.Requireable<NonNullable<string | object | null | undefined>>;
8
- }
9
- namespace defaultProps {
10
- let width_1: number;
11
- export { width_1 as width };
12
- let height_1: number;
13
- export { height_1 as height };
14
- let style_1: {};
15
- export { style_1 as style };
16
- }
9
+ var defaultProps: {
10
+ width: number;
11
+ height: number;
12
+ style: {};
13
+ };
17
14
  }
18
15
  export default Video;
19
- import PropTypes from 'prop-types';
@@ -1,17 +1,9 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { useState } from 'react';
3
- import PropTypes from 'prop-types';
4
3
  import Player from 'react-player';
5
4
  import CircularProgress from '@mui/material/CircularProgress';
6
5
  import { mergeProps } from '../Util';
7
6
  import { styled } from '../Theme';
8
- const {
9
- string,
10
- number,
11
- array,
12
- oneOfType,
13
- object
14
- } = PropTypes;
15
7
  export default function Video(props) {
16
8
  const newProps = mergeProps(props, Video, ['style']);
17
9
  const {
@@ -61,12 +53,6 @@ export default function Video(props) {
61
53
  })]
62
54
  });
63
55
  }
64
- Video.propTypes = {
65
- url: oneOfType([string, array, object]).isRequired,
66
- width: oneOfType([string, number]),
67
- height: oneOfType([string, number]),
68
- style: oneOfType([string, object])
69
- };
70
56
  Video.defaultProps = {
71
57
  width: 640,
72
58
  height: 400,
@@ -1,21 +1,16 @@
1
- declare function WalletAction(props: any): import("react/jsx-runtime").JSX.Element;
1
+ export interface WalletActionProps {
2
+ action?: string;
3
+ size?: 'xlarge' | 'large' | 'medium' | 'small';
4
+ textLayout?: 'vertical' | 'horizontal';
5
+ style?: React.CSSProperties;
6
+ }
7
+ declare function WalletAction(props: WalletActionProps): import("react/jsx-runtime").JSX.Element;
2
8
  declare namespace WalletAction {
3
- namespace propTypes {
4
- let action: PropTypes.Requireable<string>;
5
- let size: PropTypes.Requireable<string>;
6
- let textLayout: PropTypes.Requireable<string>;
7
- let style: PropTypes.Requireable<NonNullable<string | object | null | undefined>>;
8
- }
9
- namespace defaultProps {
10
- let action_1: string;
11
- export { action_1 as action };
12
- let textLayout_1: string;
13
- export { textLayout_1 as textLayout };
14
- let size_1: string;
15
- export { size_1 as size };
16
- let style_1: {};
17
- export { style_1 as style };
18
- }
9
+ var defaultProps: {
10
+ action: string;
11
+ textLayout: "vertical";
12
+ size: "medium";
13
+ style: {};
14
+ };
19
15
  }
20
16
  export default WalletAction;
21
- import PropTypes from 'prop-types';
@@ -1,5 +1,4 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import PropTypes from 'prop-types';
3
2
  import Typography from '@mui/material/Typography';
4
3
  import logo from './images/abtwallet.png';
5
4
  import { mergeProps } from '../Util';
@@ -50,12 +49,6 @@ export default function WalletAction(props) {
50
49
  })
51
50
  });
52
51
  }
53
- WalletAction.propTypes = {
54
- action: PropTypes.string,
55
- size: PropTypes.oneOf(['xlarge', 'large', 'medium', 'small']),
56
- textLayout: PropTypes.oneOf(['vertical', 'horizontal']),
57
- style: PropTypes.oneOfType([PropTypes.object, PropTypes.string])
58
- };
59
52
  WalletAction.defaultProps = {
60
53
  action: 'Login',
61
54
  textLayout: 'vertical',
@@ -1,33 +1,27 @@
1
- declare function WalletDownload(props: any): import("react/jsx-runtime").JSX.Element;
1
+ import { type SxProps } from '@mui/material';
2
+ import type { Locale } from '../type';
3
+ export interface WalletDownloadProps extends React.HTMLAttributes<HTMLDivElement> {
4
+ title?: string;
5
+ layout?: 'vertical' | 'horizontal';
6
+ storeLayout?: 'vertical' | 'horizontal';
7
+ style?: React.CSSProperties;
8
+ iosLink?: string;
9
+ androidLink?: string;
10
+ androidDownLoadUrl?: string;
11
+ locale?: Locale;
12
+ sx?: SxProps;
13
+ }
14
+ declare function WalletDownload(props: WalletDownloadProps): import("react/jsx-runtime").JSX.Element;
2
15
  declare namespace WalletDownload {
3
- namespace propTypes {
4
- let title: PropTypes.Requireable<string>;
5
- let layout: PropTypes.Requireable<string>;
6
- let storeLayout: PropTypes.Requireable<string>;
7
- let style: PropTypes.Requireable<NonNullable<string | object | null | undefined>>;
8
- let iosLink: PropTypes.Requireable<string>;
9
- let androidLink: PropTypes.Requireable<string>;
10
- let androidDownLoadUrl: PropTypes.Requireable<string>;
11
- let locale: PropTypes.Requireable<string>;
12
- }
13
- namespace defaultProps {
14
- let title_1: string;
15
- export { title_1 as title };
16
- let layout_1: string;
17
- export { layout_1 as layout };
18
- let storeLayout_1: string;
19
- export { storeLayout_1 as storeLayout };
20
- let iosLink_1: string;
21
- export { iosLink_1 as iosLink };
22
- let androidLink_1: string;
23
- export { androidLink_1 as androidLink };
24
- let androidDownLoadUrl_1: string;
25
- export { androidDownLoadUrl_1 as androidDownLoadUrl };
26
- let style_1: {};
27
- export { style_1 as style };
28
- let locale_1: string;
29
- export { locale_1 as locale };
30
- }
16
+ var defaultProps: {
17
+ readonly title: "Download DID Wallet";
18
+ readonly layout: "vertical";
19
+ readonly storeLayout: "horizontal";
20
+ readonly iosLink: "https://itunes.apple.com/app/id1460083542";
21
+ readonly androidLink: "https://play.google.com/store/apps/details?id=com.arcblock.wallet.app.product";
22
+ readonly androidDownLoadUrl: "https://releases.arcblockio.cn/arcwallet_android/latest/abtwallet.apk";
23
+ readonly style: {};
24
+ readonly locale: "zh";
25
+ };
31
26
  }
32
27
  export default WalletDownload;
33
- import PropTypes from 'prop-types';
@@ -1,14 +1,207 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import PropTypes from 'prop-types';
2
+ import React from "react";
3
3
  import Typography from '@mui/material/Typography';
4
4
  import useBrowser from '@arcblock/react-hooks/lib/useBrowser';
5
-
6
- // eslint-disable-next-line import/no-unresolved
7
- import AppStoreIcon from './images/app-store.svg?react';
8
- // eslint-disable-next-line import/no-unresolved
9
- import GooglePlayIcon from './images/google-play.svg?react';
10
- // eslint-disable-next-line import/no-unresolved
11
- import AndroidDownloadIcon from './images/android_download.svg?react';
5
+ var AppStoreIcon = function AppStoreIcon(props) {
6
+ return /*#__PURE__*/_jsxs("svg", {
7
+ ...props,
8
+ children: [/*#__PURE__*/_jsx("title", {
9
+ children: "Appstore"
10
+ }), /*#__PURE__*/_jsxs("g", {
11
+ fill: "none",
12
+ fillRule: "evenodd",
13
+ children: [/*#__PURE__*/_jsx("path", {
14
+ d: "M.198 3.792v42.064a3.594 3.594 0 0 0 3.595 3.594h164.414a3.594 3.594 0 0 0 3.595-3.594V3.792a3.594 3.594 0 0 0-3.595-3.594H3.793A3.594 3.594 0 0 0 .198 3.792z",
15
+ fill: "#000",
16
+ fillRule: "nonzero"
17
+ }), /*#__PURE__*/_jsx("path", {
18
+ d: "M65.788 38.665h2.924l-6.402-17.73H59.35l-6.402 17.73h2.826l1.634-4.706h6.759l1.622 4.706zm-5.1-14.512h.21l2.567 7.496h-5.357l2.58-7.496zm15.778.91c-1.818 0-3.391.91-4.202 2.433h-.197v-2.212h-2.543v17.719h2.642v-6.365h.209c.7 1.413 2.211 2.248 4.116 2.248 3.38 0 5.53-2.666 5.53-6.918 0-4.251-2.15-6.905-5.555-6.905zm-.75 11.452c-2.21 0-3.6-1.745-3.6-4.534 0-2.802 1.39-4.547 3.613-4.547 2.237 0 3.576 1.708 3.576 4.534 0 2.839-1.34 4.547-3.588 4.547zm14.452-11.452c-1.819 0-3.391.91-4.202 2.433h-.197v-2.212h-2.544v17.719h2.642v-6.365h.21c.7 1.413 2.211 2.248 4.116 2.248 3.379 0 5.529-2.666 5.529-6.918 0-4.251-2.15-6.905-5.554-6.905zm-.75 11.452c-2.211 0-3.6-1.745-3.6-4.534 0-2.802 1.389-4.547 3.613-4.547 2.236 0 3.575 1.708 3.575 4.534 0 2.839-1.339 4.547-3.588 4.547zm11.896-2.617c.197 3.17 2.839 5.197 6.771 5.197 4.202 0 6.832-2.125 6.832-5.517 0-2.666-1.5-4.14-5.136-4.989l-1.954-.479c-2.31-.54-3.244-1.266-3.244-2.531 0-1.598 1.45-2.642 3.625-2.642 2.064 0 3.49 1.02 3.748 2.654h2.678c-.16-2.986-2.789-5.087-6.39-5.087-3.87 0-6.45 2.101-6.45 5.26 0 2.604 1.462 4.152 4.669 4.902l2.286.553c2.346.553 3.379 1.364 3.379 2.716 0 1.572-1.622 2.715-3.834 2.715-2.372 0-4.018-1.069-4.252-2.752h-2.728zm15.877-11.858v3.305h-2.2v2.224h2.2v7.557c0 2.58 1.167 3.613 4.104 3.613.516 0 .995-.061 1.413-.135v-2.2c-.368.037-.577.062-.983.062-1.315 0-1.892-.615-1.892-2.015v-6.882h2.998v-2.224h-2.998V22.04h-2.642zm12.19 14.536c-2.298 0-3.588-1.683-3.588-4.608 0-2.9 1.29-4.595 3.588-4.595 2.286 0 3.588 1.696 3.588 4.595 0 2.913-1.302 4.608-3.588 4.608zm0 2.347c3.908 0 6.304-2.617 6.304-6.955 0-4.313-2.409-6.942-6.304-6.942-3.907 0-6.316 2.63-6.316 6.942 0 4.338 2.396 6.955 6.316 6.955zm7.509-.258h2.642v-7.9c0-1.88 1.413-3.146 3.403-3.146.443 0 1.254.086 1.463.16v-2.606c-.283-.073-.787-.11-1.168-.11-1.745 0-3.22.958-3.6 2.273h-.197v-2.052h-2.543v13.381zm13.456-11.39c1.953 0 3.231 1.363 3.293 3.465h-6.759c.148-2.09 1.512-3.465 3.466-3.465zm3.28 7.778c-.491 1.044-1.585 1.622-3.182 1.622-2.114 0-3.478-1.487-3.564-3.834v-.148h9.45v-.921c0-4.203-2.249-6.746-5.972-6.746-3.773 0-6.169 2.715-6.169 6.992 0 4.276 2.347 6.905 6.181 6.905 3.06 0 5.198-1.474 5.8-3.87h-2.544zM55.423 7.094v8.443h3.048c2.516 0 3.973-1.55 3.973-4.248 0-2.656-1.468-4.195-3.973-4.195h-3.048zm1.31 1.193h1.592c1.75 0 2.785 1.112 2.785 3.02 0 1.936-1.018 3.037-2.785 3.037h-1.592V8.287zm10.323 6.255c-1.094 0-1.708-.801-1.708-2.194 0-1.38.614-2.188 1.708-2.188 1.089 0 1.709.807 1.709 2.188 0 1.387-.62 2.194-1.709 2.194zm0 1.118c1.861 0 3.002-1.246 3.002-3.312 0-2.054-1.147-3.306-3.002-3.306-1.86 0-3.007 1.252-3.007 3.306 0 2.066 1.14 3.312 3.007 3.312zM79.92 9.165H78.66l-1.136 4.863h-.099l-1.31-4.863H74.91l-1.31 4.863h-.094l-1.141-4.863h-1.276l1.755 6.372h1.294l1.31-4.693h.1l1.316 4.693h1.305l1.75-6.372zm1.598 6.372h1.258V11.81c0-.995.62-1.615 1.633-1.615.936 0 1.392.509 1.392 1.533v3.81h1.258v-4.126c0-1.515-.801-2.37-2.223-2.37-.96 0-1.703.427-2.013 1.135h-.094V9.165h-1.21v6.372zm7.667 0h1.258V6.678h-1.258v8.86zm6.133-.995c-1.094 0-1.709-.801-1.709-2.194 0-1.38.615-2.188 1.709-2.188 1.088 0 1.708.807 1.708 2.188 0 1.387-.62 2.194-1.708 2.194zm0 1.118c1.86 0 3.002-1.246 3.002-3.312 0-2.054-1.147-3.306-3.002-3.306-1.86 0-3.008 1.252-3.008 3.306 0 2.066 1.141 3.312 3.008 3.312zm6.894-1.077c-.685 0-1.182-.333-1.182-.907 0-.561.398-.86 1.276-.918l1.556-.1v.533c0 .79-.702 1.392-1.65 1.392zm-.322 1.06c.837 0 1.533-.363 1.913-1.001h.1v.895h1.211v-4.353c0-1.346-.9-2.142-2.498-2.142-1.446 0-2.475.702-2.604 1.797h1.217c.14-.451.626-.708 1.328-.708.86 0 1.305.38 1.305 1.053v.55l-1.726.1c-1.516.093-2.37.754-2.37 1.901 0 1.164.895 1.908 2.124 1.908zm7.643 0c.878 0 1.62-.416 2.001-1.112h.1v1.006h1.205V6.678h-1.258v3.5h-.094c-.345-.703-1.082-1.118-1.954-1.118-1.609 0-2.645 1.275-2.645 3.288 0 2.019 1.024 3.295 2.645 3.295zm.357-5.454c1.053 0 1.714.837 1.714 2.165 0 1.334-.655 2.16-1.714 2.16-1.065 0-1.703-.814-1.703-2.166 0-1.34.644-2.159 1.703-2.159zm11.4 4.353c-1.094 0-1.708-.801-1.708-2.194 0-1.38.614-2.188 1.709-2.188 1.088 0 1.708.807 1.708 2.188 0 1.387-.62 2.194-1.708 2.194zm0 1.118c1.861 0 3.002-1.246 3.002-3.312 0-2.054-1.146-3.306-3.001-3.306-1.861 0-3.008 1.252-3.008 3.306 0 2.066 1.141 3.312 3.008 3.312zm4.812-.123h1.258V11.81c0-.995.62-1.615 1.632-1.615.936 0 1.393.509 1.393 1.533v3.81h1.258v-4.126c0-1.515-.802-2.37-2.224-2.37-.96 0-1.702.427-2.013 1.135h-.093V9.165H126.1v6.372zM137.73 7.62v1.574h-1.048v1.06h1.048v3.598c0 1.229.555 1.72 1.954 1.72.246 0 .474-.029.673-.064V14.46c-.176.017-.275.029-.468.029-.626 0-.901-.293-.901-.96v-3.277h1.427V9.194h-1.427V7.62h-1.258zm4.477 7.917h1.258v-3.721c0-.966.638-1.615 1.668-1.615.947 0 1.421.515 1.421 1.533v3.803h1.258v-4.113c0-1.516-.819-2.376-2.252-2.376-.96 0-1.697.427-2.007 1.141h-.1V6.68h-1.246v8.858zm10.294-5.424c.93 0 1.538.65 1.568 1.65h-3.219c.07-.995.72-1.65 1.65-1.65zm1.562 3.704c-.234.497-.755.772-1.516.772-1.006 0-1.656-.708-1.697-1.825v-.07h4.5v-.44c0-2-1.07-3.212-2.844-3.212-1.796 0-2.937 1.293-2.937 3.33 0 2.036 1.118 3.288 2.943 3.288 1.457 0 2.475-.702 2.762-1.843h-1.211z",
19
+ fill: "#FFF"
20
+ }), /*#__PURE__*/_jsx("g", {
21
+ fill: "#FFF",
22
+ children: /*#__PURE__*/_jsx("path", {
23
+ d: "M37.747 25.07c-.038-4.285 3.51-6.37 3.672-6.468-2.01-2.93-5.124-3.33-6.218-3.361-2.616-.276-5.153 1.565-6.486 1.565-1.359 0-3.41-1.539-5.622-1.493-2.846.043-5.508 1.691-6.968 4.25-3.013 5.216-.766 12.883 2.121 17.1 1.444 2.066 3.132 4.37 5.34 4.29 2.161-.088 2.969-1.378 5.576-1.378 2.584 0 3.342 1.377 5.595 1.324 2.319-.034 3.779-2.073 5.173-4.158 1.669-2.365 2.339-4.698 2.365-4.818-.053-.017-4.502-1.715-4.548-6.852M33.492 12.467c1.162-1.454 1.958-3.431 1.737-5.438-1.682.075-3.786 1.164-4.998 2.585-1.071 1.253-2.029 3.306-1.781 5.237 1.89.141 3.83-.953 5.042-2.384"
24
+ })
25
+ })]
26
+ })]
27
+ });
28
+ };
29
+ AppStoreIcon.defaultProps = {
30
+ width: "172",
31
+ height: "50",
32
+ viewBox: "0 0 172 50",
33
+ xmlns: "http://www.w3.org/2000/svg"
34
+ };
35
+ var GooglePlayIcon = function GooglePlayIcon(props) {
36
+ return /*#__PURE__*/_jsxs("svg", {
37
+ ...props,
38
+ children: [/*#__PURE__*/_jsx("title", {
39
+ children: "Playstore"
40
+ }), /*#__PURE__*/_jsxs("defs", {
41
+ children: [/*#__PURE__*/_jsxs("linearGradient", {
42
+ x1: "50%",
43
+ y1: "0%",
44
+ x2: "50%",
45
+ y2: "38.913%",
46
+ id: "b",
47
+ children: [/*#__PURE__*/_jsx("stop", {
48
+ stopColor: "#FBDA09",
49
+ offset: "0%"
50
+ }), /*#__PURE__*/_jsx("stop", {
51
+ stopColor: "#FFBC00",
52
+ offset: "100%"
53
+ })]
54
+ }), /*#__PURE__*/_jsx("path", {
55
+ d: "M28.354 14.689c1.77 1.006 1.77 2.638 0 3.645L3.228 32.625C1.458 33.632.023 32.8.023 30.763V2.26C.023.225 1.458-.609 3.228.398l25.126 14.29z",
56
+ id: "a"
57
+ }), /*#__PURE__*/_jsxs("linearGradient", {
58
+ x1: "0%",
59
+ y1: "58.476%",
60
+ x2: "69.306%",
61
+ y2: "39.083%",
62
+ id: "c",
63
+ children: [/*#__PURE__*/_jsx("stop", {
64
+ stopColor: "#01E2FF",
65
+ offset: "0%"
66
+ }), /*#__PURE__*/_jsx("stop", {
67
+ stopColor: "#01C4FF",
68
+ offset: "100%"
69
+ })]
70
+ }), /*#__PURE__*/_jsxs("linearGradient", {
71
+ x1: "20.281%",
72
+ y1: "20.102%",
73
+ x2: "83.82%",
74
+ y2: "83.621%",
75
+ id: "e",
76
+ children: [/*#__PURE__*/_jsx("stop", {
77
+ stopColor: "#28D781",
78
+ offset: "0%"
79
+ }), /*#__PURE__*/_jsx("stop", {
80
+ stopColor: "#02F076",
81
+ offset: "100%"
82
+ })]
83
+ }), /*#__PURE__*/_jsxs("linearGradient", {
84
+ x1: "74.488%",
85
+ y1: "17.43%",
86
+ x2: "10.108%",
87
+ y2: "91.184%",
88
+ id: "f",
89
+ children: [/*#__PURE__*/_jsx("stop", {
90
+ stopColor: "#F2414E",
91
+ offset: "0%"
92
+ }), /*#__PURE__*/_jsx("stop", {
93
+ stopColor: "#E02554",
94
+ offset: "100%"
95
+ })]
96
+ })]
97
+ }), /*#__PURE__*/_jsxs("g", {
98
+ fill: "none",
99
+ fillRule: "evenodd",
100
+ children: [/*#__PURE__*/_jsx("path", {
101
+ d: "M.17 4.852V44.54a4.681 4.681 0 0 0 4.682 4.681h162.296a4.682 4.682 0 0 0 4.682-4.681V4.85a4.681 4.681 0 0 0-4.682-4.68H4.852A4.682 4.682 0 0 0 .17 4.85z",
102
+ fill: "#000",
103
+ fillRule: "nonzero"
104
+ }), /*#__PURE__*/_jsx("g", {
105
+ fill: "#FFF",
106
+ children: /*#__PURE__*/_jsx("path", {
107
+ d: "M91.207 16.084a4.213 4.213 0 1 1 0-8.425 4.213 4.213 0 0 1 0 8.425zm0-1.287a2.925 2.925 0 1 0 0-5.85 2.925 2.925 0 0 0 0 5.85zM62.656 12.34v2.574h3.393v.936h-4.68V8.01h4.68v.936h-3.393v2.457h3.042v.937h-3.042zM70.613 8.946v6.904h-1.288V8.946h-1.989V8.01h5.266v.936h-1.99zM82.08 8.946v6.904h-1.287V8.946h-1.99V8.01h5.266v.936H82.08zM76.346 8.01h1.287v7.84h-1.287zM97.233 8.01h-.76v7.84h1.287V9.731l3.744 6.119h1.288V8.01h-1.288v5.737l-3.51-5.737h-.76zM59.376 8.916c-.686-.723-1.69-1.14-2.883-1.14a4.133 4.133 0 0 0-4.135 4.13 4.135 4.135 0 0 0 4.135 4.13c2.322.022 4.258-1.614 3.871-4.454v-.042h-1.03c.009.119.012.241.01.366.002 2.029-1.168 2.98-2.816 2.98a2.982 2.982 0 0 1-2.983-2.98 2.982 2.982 0 0 1 2.983-2.98c.824 0 1.539.282 2.042.796l.806-.806z"
108
+ })
109
+ }), /*#__PURE__*/_jsxs("g", {
110
+ fill: "#FFF",
111
+ children: [/*#__PURE__*/_jsx("path", {
112
+ d: "M125.375 22.052h6.634s3.82.65 3.82 5.035-3.82 5.035-3.82 5.035h-6.634v-10.07zm1.287 2.436v5.404h4.504s2.05 0 2.05-2.702-2.05-2.702-2.05-2.702h-4.504z"
113
+ }), /*#__PURE__*/_jsx("path", {
114
+ d: "M124.79 22.052h2.34v16.382h-2.34zM137.193 22.052h2.34v16.382h-2.34zM148.208 37.262c-.645.532-1.675 1.033-3.303 1.135-3.729.232-3.73-3.17-3.73-3.4 0-.23-.185-3.004 2.782-3.445 2.1-.313 3.571.208 4.251.538v-.481c-.167-.637-.684-1.809-2.235-1.809-2.131 0-2.602 1.152-2.602 1.152l-1.949-1.152s1.09-2.249 4.364-2.249c4.07 0 4.763 2.808 4.763 3.753V38.428h-2.341v-1.166zm-.167-3.508s-4.509-1.216-4.666 1.317c-.156 2.533 4.326 1.317 4.726-.479 0-.57-.06-.838-.06-.838zM154.94 37.812l-2.183 5.185h2.34l6.331-15.038h-2.34l-2.978 7.074-3.002-7.13h-2.34l4.172 9.91zM119.55 31.732l-7.4 3.059s.477 1.692 2.703 1.703c1.742.009 2.726-1.545 2.726-1.545l1.878 1.272s-1.516 2.451-4.62 2.451c-3.813 0-5.493-3.335-5.493-5.5 0-2.087 1.334-5.62 5.257-5.62 3.924 0 4.95 4.18 4.95 4.18zm-2.815-.867s-.931-1.417-2.36-1.155c-3.02.552-2.64 3.196-2.64 3.196l5-2.04zM105.834 22.052h2.476V38.4h-2.476zM101.872 27.907l2.288.02V38.24c0 2.636-1.569 5.418-5.262 5.418-3.694 0-4.887-3.273-4.887-3.273l2.102-.884s.64 2.017 2.894 2.017c2.566 0 2.865-2.334 2.865-3.133v-1.12s-.888 1.39-3.093 1.39c-2.39 0-5.232-2.049-5.232-5.54 0-3.493 2.676-5.49 5.26-5.563 2.07-.058 3.065 1.374 3.065 1.374v-1.02zm-2.897 8.653c1.669 0 3.022-1.53 3.022-3.415 0-1.886-1.353-3.415-3.022-3.415-1.67 0-3.022 1.529-3.022 3.415 0 1.886 1.353 3.415 3.022 3.415zM86.949 38.668a5.564 5.564 0 0 1-5.571-5.558 5.564 5.564 0 0 1 5.57-5.559 5.564 5.564 0 0 1 5.571 5.559 5.564 5.564 0 0 1-5.57 5.558zm-.037-2.18c1.73 0 3.132-1.512 3.132-3.378s-1.402-3.379-3.132-3.379c-1.73 0-3.131 1.513-3.131 3.379s1.402 3.378 3.131 3.378zM74.896 38.668a5.564 5.564 0 0 1-5.57-5.558 5.564 5.564 0 0 1 5.57-5.559 5.564 5.564 0 0 1 5.57 5.559 5.564 5.564 0 0 1-5.57 5.558zm-.036-2.18c1.73 0 3.131-1.512 3.131-3.378S76.59 29.73 74.86 29.73c-1.73 0-3.131 1.513-3.131 3.379s1.401 3.378 3.13 3.378z"
115
+ }), /*#__PURE__*/_jsxs("g", {
116
+ children: [/*#__PURE__*/_jsx("path", {
117
+ d: "M60.512 29.314h7.355l-.073 2.325h-7.282z"
118
+ }), /*#__PURE__*/_jsx("path", {
119
+ d: "M66.42 23.843c-1.432-1.508-3.526-2.376-6.017-2.376-4.766 0-8.63 3.854-8.63 8.61 0 4.754 3.864 8.602 8.63 8.61 4.845.043 8.886-3.366 8.078-9.287v-.086h-2.149c.018.247.024.501.018.762.005 4.23-2.436 6.212-5.875 6.212-3.438 0-6.226-2.78-6.226-6.212 0-3.43 2.788-6.212 6.226-6.212 1.72 0 3.212.587 4.261 1.658l1.683-1.679z"
120
+ })]
121
+ })]
122
+ }), /*#__PURE__*/_jsxs("g", {
123
+ transform: "translate(11.755 8.127)",
124
+ children: [/*#__PURE__*/_jsx("mask", {
125
+ id: "d",
126
+ fill: "#fff",
127
+ children: /*#__PURE__*/_jsx("use", {
128
+ xlinkHref: "#a"
129
+ })
130
+ }), /*#__PURE__*/_jsx("use", {
131
+ fill: "url(#b)",
132
+ xlinkHref: "#a"
133
+ }), /*#__PURE__*/_jsx("path", {
134
+ fill: "url(#c)",
135
+ mask: "url(#d)",
136
+ d: "M0-.012l16.357 16.258-16.568 16.9z"
137
+ }), /*#__PURE__*/_jsx("path", {
138
+ fill: "url(#e)",
139
+ mask: "url(#d)",
140
+ d: "M-3.364-3.358l19.72 19.609 5.862-5.593z"
141
+ }), /*#__PURE__*/_jsx("path", {
142
+ fill: "url(#f)",
143
+ mask: "url(#d)",
144
+ d: "M16.358 16.247l8.975 9.046L-1.48 34.34z"
145
+ })]
146
+ })]
147
+ })]
148
+ });
149
+ };
150
+ GooglePlayIcon.defaultProps = {
151
+ width: "172",
152
+ height: "50",
153
+ viewBox: "0 0 172 50",
154
+ xmlns: "http://www.w3.org/2000/svg",
155
+ xmlnsXlink: "http://www.w3.org/1999/xlink"
156
+ };
157
+ var AndroidDownloadIcon = function AndroidDownloadIcon(props) {
158
+ return /*#__PURE__*/_jsxs("svg", {
159
+ ...props,
160
+ children: [/*#__PURE__*/_jsx("title", {
161
+ children: "android"
162
+ }), /*#__PURE__*/_jsxs("g", {
163
+ fill: "none",
164
+ fillRule: "evenodd",
165
+ children: [/*#__PURE__*/_jsx("path", {
166
+ d: "M172 44.328c0 3.133-2.794 5.672-6.24 5.672H6.24c-1.654 0-3.242-.598-4.412-1.661C.658 47.275 0 45.832 0 44.329V5.671C0 2.539 2.794 0 6.24 0h159.52c3.446 0 6.24 2.54 6.24 5.672v38.656",
167
+ fill: "#100F0D",
168
+ fillRule: "nonzero"
169
+ }), /*#__PURE__*/_jsx("text", {
170
+ fill: "#FFF",
171
+ fontFamily: "Arial-BoldMT, Arial",
172
+ fontSize: "23.441",
173
+ fontWeight: "bold",
174
+ children: /*#__PURE__*/_jsx("tspan", {
175
+ x: "63.624",
176
+ y: "42.135",
177
+ children: "Android"
178
+ })
179
+ }), /*#__PURE__*/_jsx("text", {
180
+ fill: "#FFF",
181
+ fillRule: "nonzero",
182
+ fontFamily: "ArialMT, Arial",
183
+ fontSize: "11.721",
184
+ children: /*#__PURE__*/_jsx("tspan", {
185
+ x: "64",
186
+ y: "19",
187
+ children: "Download for"
188
+ })
189
+ }), /*#__PURE__*/_jsx("g", {
190
+ fill: "#9FC732",
191
+ fillRule: "nonzero",
192
+ children: /*#__PURE__*/_jsx("path", {
193
+ d: "M40.48 18.031H20.153a.818.818 0 0 0-.818.817v17.01c0 .45.366.816.818.816h3.625v5.732c0 1.33 1.08 2.409 2.413 2.409a2.411 2.411 0 0 0 2.414-2.409v-5.732h3.376v5.732c0 1.33 1.08 2.409 2.413 2.409a2.41 2.41 0 0 0 2.414-2.409v-5.732h3.674a.82.82 0 0 0 .819-.817V18.848a.818.818 0 0 0-.82-.817m-24.588-.004a2.411 2.411 0 0 0-2.413 2.408v9.782a2.41 2.41 0 0 0 2.413 2.408 2.41 2.41 0 0 0 2.414-2.408v-9.782a2.41 2.41 0 0 0-2.414-2.408M44.877 17.66c-1.33 0-2.41 1.091-2.41 2.436v9.895c0 1.345 1.08 2.436 2.41 2.436s2.41-1.09 2.41-2.436v-9.895c0-1.345-1.08-2.436-2.41-2.436m-19.441-6.768a.924.924 0 0 1 .813.464.945.945 0 0 1 0 .945.924.924 0 0 1-.813.464.932.932 0 0 1-.913-.936c0-.512.406-.93.913-.937zm10.96.937a.939.939 0 0 1-.454.836.918.918 0 0 1-.944 0 .939.939 0 0 1-.454-.836.931.931 0 0 1 .926-.906c.5 0 .91.4.926.906zm-15.902 4.628h19.918c.52 0 .907-.483.8-.998a11.12 11.12 0 0 0-5.37-7.395l1.702-3.106a.44.44 0 0 0-.168-.592.426.426 0 0 0-.585.17l-1.716 3.129a10.856 10.856 0 0 0-4.622-1.027 10.854 10.854 0 0 0-4.622 1.027l-1.716-3.13a.428.428 0 0 0-.58-.16.438.438 0 0 0-.173.582l1.702 3.107a11.123 11.123 0 0 0-5.37 7.395.825.825 0 0 0 .8.998"
194
+ })
195
+ })]
196
+ })]
197
+ });
198
+ };
199
+ AndroidDownloadIcon.defaultProps = {
200
+ width: "172",
201
+ height: "50",
202
+ viewBox: "0 0 172 50",
203
+ xmlns: "http://www.w3.org/2000/svg"
204
+ };
12
205
  import Button from '../Button';
13
206
  import { mergeProps } from '../Util';
14
207
  import { styled } from '../Theme';
@@ -84,16 +277,6 @@ export default function WalletDownload(props) {
84
277
  })]
85
278
  });
86
279
  }
87
- WalletDownload.propTypes = {
88
- title: PropTypes.string,
89
- layout: PropTypes.oneOf(['vertical', 'horizontal']),
90
- storeLayout: PropTypes.oneOf(['vertical', 'horizontal']),
91
- style: PropTypes.oneOfType([PropTypes.string, PropTypes.object]),
92
- iosLink: PropTypes.string,
93
- androidLink: PropTypes.string,
94
- androidDownLoadUrl: PropTypes.string,
95
- locale: PropTypes.oneOf(['en', 'zh'])
96
- };
97
280
  WalletDownload.defaultProps = {
98
281
  title: 'Download DID Wallet',
99
282
  layout: 'vertical',
@@ -1,16 +1,6 @@
1
- declare function OpenInWallet({ locale, link }: {
2
- locale: any;
3
- link: any;
4
- }): import("react/jsx-runtime").JSX.Element | null;
5
- declare namespace OpenInWallet {
6
- namespace propTypes {
7
- let locale: PropTypes.Requireable<string>;
8
- let link: PropTypes.Validator<string>;
9
- }
10
- namespace defaultProps {
11
- let locale_1: string;
12
- export { locale_1 as locale };
13
- }
1
+ import type { Locale } from '../type';
2
+ export interface OpenInWalletProps {
3
+ link: string;
4
+ locale?: Locale;
14
5
  }
15
- export default OpenInWallet;
16
- import PropTypes from 'prop-types';
6
+ export default function OpenInWallet({ link, locale }: OpenInWalletProps): import("react/jsx-runtime").JSX.Element | null;
@@ -1,11 +1,10 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- import PropTypes from 'prop-types';
3
2
  import useBrowser from '@arcblock/react-hooks/lib/useBrowser';
4
3
  import Fab from '@mui/material/Fab';
5
4
  import { styled } from '../Theme';
6
5
  export default function OpenInWallet({
7
- locale,
8
- link
6
+ link,
7
+ locale = 'zh'
9
8
  }) {
10
9
  const buttonText = locale === 'zh' ? '在 DID 钱包打开' : 'Open in DID Wallet';
11
10
  const browser = useBrowser();
@@ -15,7 +14,9 @@ export default function OpenInWallet({
15
14
  size: "small",
16
15
  href: deepLink,
17
16
  variant: "extended",
18
- color: "primary",
17
+ color: "primary"
18
+ // @ts-expect-error
19
+ ,
19
20
  rounded: true,
20
21
  target: "_blank",
21
22
  className: "open-in-wallet-button",
@@ -24,13 +25,6 @@ export default function OpenInWallet({
24
25
  }
25
26
  return null;
26
27
  }
27
- OpenInWallet.propTypes = {
28
- locale: PropTypes.oneOf(['en', 'zh']),
29
- link: PropTypes.string.isRequired
30
- };
31
- OpenInWallet.defaultProps = {
32
- locale: 'zh'
33
- };
34
28
  const Button = styled(Fab)`
35
29
  && {
36
30
  font-size: 12px;
@@ -1,26 +1,7 @@
1
- declare function WalletOSIcon({ loading, walletOS, provider, color }: {
2
- loading: any;
3
- walletOS: any;
4
- provider: any;
5
- color: any;
6
- }): import("react/jsx-runtime").JSX.Element | null;
7
- declare namespace WalletOSIcon {
8
- namespace propTypes {
9
- let loading: PropTypes.Requireable<boolean>;
10
- let walletOS: PropTypes.Requireable<string>;
11
- let provider: PropTypes.Requireable<string>;
12
- let color: PropTypes.Requireable<string>;
13
- }
14
- namespace defaultProps {
15
- let loading_1: boolean;
16
- export { loading_1 as loading };
17
- let walletOS_1: null;
18
- export { walletOS_1 as walletOS };
19
- let provider_1: null;
20
- export { provider_1 as provider };
21
- let color_1: string;
22
- export { color_1 as color };
23
- }
1
+ export interface WalletOSIconProps {
2
+ loading?: false | true;
3
+ walletOS?: string;
4
+ provider?: string;
5
+ color?: string;
24
6
  }
25
- export default WalletOSIcon;
26
- import PropTypes from 'prop-types';
7
+ export default function WalletOSIcon({ loading, walletOS, provider, color }: WalletOSIconProps): import("react/jsx-runtime").JSX.Element | null;
@@ -1,5 +1,4 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- import PropTypes from 'prop-types';
3
2
  import { Icon } from '@iconify/react';
4
3
  import ApiIcon from '@iconify-icons/mdi/api';
5
4
  import IOSRoundedIcon from '@iconify-icons/material-symbols/ios-rounded';
@@ -10,10 +9,10 @@ import QuestionMarkRoundedIcon from '@iconify-icons/material-symbols/question-ma
10
9
  import MailOutlineRoundedIcon from '@iconify-icons/material-symbols/mail-outline-rounded';
11
10
  import { LOGIN_PROVIDER } from '../Util/constant';
12
11
  export default function WalletOSIcon({
13
- loading,
12
+ loading = false,
14
13
  walletOS,
15
14
  provider,
16
- color
15
+ color = 'black'
17
16
  }) {
18
17
  if (loading) {
19
18
  return /*#__PURE__*/_jsx(Icon, {
@@ -67,16 +66,4 @@ export default function WalletOSIcon({
67
66
  });
68
67
  }
69
68
  return null;
70
- }
71
- WalletOSIcon.propTypes = {
72
- loading: PropTypes.bool,
73
- walletOS: PropTypes.string,
74
- provider: PropTypes.string,
75
- color: PropTypes.string
76
- };
77
- WalletOSIcon.defaultProps = {
78
- loading: false,
79
- walletOS: null,
80
- provider: null,
81
- color: 'black'
82
- };
69
+ }