@arcblock/ux 2.9.90 → 2.10.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (337) hide show
  1. package/lib/ActionButton/index.js +36 -48
  2. package/lib/ActivityIndicator/index.js +122 -75
  3. package/lib/Address/compact-text.js +48 -66
  4. package/lib/Address/did-address.js +114 -87
  5. package/lib/Address/index.js +15 -27
  6. package/lib/Address/responsive-did-address.js +48 -50
  7. package/lib/Alert/index.js +58 -52
  8. package/lib/AnimationWaiter/index.js +123 -69
  9. package/lib/Async/index.js +8 -22
  10. package/lib/Avatar/did-motif.js +38 -52
  11. package/lib/Avatar/etherscan-blockies.js +4 -10
  12. package/lib/Avatar/index.js +71 -77
  13. package/lib/Badge/index.js +49 -56
  14. package/lib/Blocklet/blocklet.js +181 -97
  15. package/lib/Blocklet/index.js +4 -24
  16. package/lib/Blocklet/utils.js +50 -13
  17. package/lib/BlockletContext/index.js +21 -31
  18. package/lib/BlockletNFT/index.js +255 -115
  19. package/lib/Button/index.js +5 -11
  20. package/lib/Button/wrap.js +45 -56
  21. package/lib/ButtonGroup/index.js +3 -9
  22. package/lib/CardSelector/index.js +67 -43
  23. package/lib/Center/index.js +19 -20
  24. package/lib/ClickToCopy/copy-button.js +37 -50
  25. package/lib/ClickToCopy/hook.js +10 -18
  26. package/lib/ClickToCopy/index.js +54 -66
  27. package/lib/CodeBlock/LightBox.js +84 -11
  28. package/lib/CodeBlock/index.js +175 -101
  29. package/lib/Colors/index.js +3 -20
  30. package/lib/Colors/themes/default.js +1 -7
  31. package/lib/Colors/themes/temp.js +1 -7
  32. package/lib/ContactForm/index.js +95 -60
  33. package/lib/CookieConsent/index.js +58 -52
  34. package/lib/CountDown/index.js +90 -59
  35. package/lib/DID/index.js +80 -96
  36. package/lib/Datatable/CustomToolbar.js +188 -137
  37. package/lib/Datatable/DatatableContext.js +14 -21
  38. package/lib/Datatable/TableSearch.js +99 -58
  39. package/lib/Datatable/index.js +312 -139
  40. package/lib/Datatable/utils.js +9 -17
  41. package/lib/Dialog/confirm.js +46 -58
  42. package/lib/Dialog/dialog.js +110 -66
  43. package/lib/Dialog/index.js +4 -27
  44. package/lib/Dialog/use-confirm.js +40 -65
  45. package/lib/DidLogo/index.js +14 -22
  46. package/lib/DriftBot/index.js +34 -19
  47. package/lib/Earth/index.js +214 -110
  48. package/lib/Earth/util.js +6 -19
  49. package/lib/Empty/index.js +33 -38
  50. package/lib/ErrorBoundary/fallback.js +45 -43
  51. package/lib/ErrorBoundary/index.js +1 -16
  52. package/lib/Footer/index.js +96 -48
  53. package/lib/Header/auto-hidden.js +28 -31
  54. package/lib/Header/header.js +151 -69
  55. package/lib/Header/index.js +2 -20
  56. package/lib/Header/responsive-header.js +67 -60
  57. package/lib/Icon/image.js +41 -45
  58. package/lib/Icon/index.js +51 -53
  59. package/lib/Img/index.js +77 -88
  60. package/lib/InfoRow/index.js +66 -48
  61. package/lib/Layout/dashboard/external-link.js +38 -53
  62. package/lib/Layout/dashboard/full-page.js +27 -41
  63. package/lib/Layout/dashboard/index.js +177 -132
  64. package/lib/Layout/dashboard/sidebar.js +164 -61
  65. package/lib/Layout/dashboard-legacy/header.js +119 -66
  66. package/lib/Layout/dashboard-legacy/index.js +90 -79
  67. package/lib/Layout/dashboard-legacy/sidebar.js +95 -62
  68. package/lib/Layout/index.js +200 -106
  69. package/lib/LoadingMask/index.js +31 -38
  70. package/lib/Locale/browser-lang.js +2 -8
  71. package/lib/Locale/context.js +46 -69
  72. package/lib/Locale/languages.js +6 -15
  73. package/lib/Locale/selector.js +116 -92
  74. package/lib/Locale/util.js +7 -16
  75. package/lib/Logo/index.js +54 -57
  76. package/lib/Metric/index.js +103 -40
  77. package/lib/NFTDisplay/aspect-ratio-container.js +33 -40
  78. package/lib/NFTDisplay/broken.js +68 -52
  79. package/lib/NFTDisplay/index.js +140 -129
  80. package/lib/NFTDisplay/loading.js +14 -13
  81. package/lib/NFTDisplay/svg-embedder/img.js +18 -33
  82. package/lib/NFTDisplay/svg-embedder/inline-svg.js +28 -32
  83. package/lib/NavMenu/index.js +2 -13
  84. package/lib/NavMenu/nav-menu.js +133 -148
  85. package/lib/NavMenu/style.js +179 -12
  86. package/lib/PageScroller/index.js +82 -93
  87. package/lib/PageScroller/story/FifthComponent.js +4 -10
  88. package/lib/PageScroller/story/FirstComponent.js +4 -10
  89. package/lib/PageScroller/story/FourthComponent.js +4 -10
  90. package/lib/PageScroller/story/FullPage.js +21 -28
  91. package/lib/PageScroller/story/PageContain.js +23 -30
  92. package/lib/PageScroller/story/SecondComponent.js +4 -10
  93. package/lib/PageScroller/story/ThirdComponent.js +4 -10
  94. package/lib/PageScroller/usePrevValue.js +4 -11
  95. package/lib/Passport/index.js +2 -9
  96. package/lib/Passport/passport.js +38 -51
  97. package/lib/PoweredByArcBlock/index.js +19 -33
  98. package/lib/PricingTable/PricingPlan.js +90 -34
  99. package/lib/PricingTable/index.js +28 -26
  100. package/lib/QRCode/index.js +38 -50
  101. package/lib/RelativeTime/index.js +44 -59
  102. package/lib/Result/common.js +85 -107
  103. package/lib/Result/index.js +22 -34
  104. package/lib/Result/result.js +35 -41
  105. package/lib/Result/translations.js +1 -7
  106. package/lib/Screenshot/BaseScreenshot/index.js +65 -43
  107. package/lib/Screenshot/BaseScreenshot/shells/Macbook.js +17 -27
  108. package/lib/Screenshot/BaseScreenshot/shells/Phone.js +14 -25
  109. package/lib/Screenshot/index.js +103 -92
  110. package/lib/SessionBlocklet/index.js +125 -143
  111. package/lib/SessionManager/index.js +2 -9
  112. package/lib/SessionPermission/index.js +13 -23
  113. package/lib/SessionUser/components/logged-in.js +139 -158
  114. package/lib/SessionUser/components/session-user-item.js +44 -58
  115. package/lib/SessionUser/components/session-user-switch.js +133 -152
  116. package/lib/SessionUser/components/un-login.js +27 -35
  117. package/lib/SessionUser/components/user-info.js +62 -74
  118. package/lib/SessionUser/index.js +26 -34
  119. package/lib/SessionUser/libs/translation.js +1 -7
  120. package/lib/SessionUser/libs/utils.js +13 -34
  121. package/lib/Sparkline/index.js +4 -10
  122. package/lib/Spinner/index.js +11 -17
  123. package/lib/SplitButton/index.js +72 -68
  124. package/lib/Success/index.js +28 -34
  125. package/lib/Switch/index.js +64 -75
  126. package/lib/Tabs/index.js +84 -103
  127. package/lib/Tag/index.js +52 -56
  128. package/lib/TextCollapse/index.js +57 -50
  129. package/lib/Theme/index.js +8 -47
  130. package/lib/Theme/theme-provider.js +19 -26
  131. package/lib/Theme/theme.js +49 -62
  132. package/lib/Toast/index.js +41 -73
  133. package/lib/Typography/index.js +44 -55
  134. package/lib/Util/constant.js +16 -22
  135. package/lib/Util/deprecate.js +14 -26
  136. package/lib/Util/federated.js +16 -38
  137. package/lib/Util/index.js +63 -113
  138. package/lib/Util/passport.js +23 -33
  139. package/lib/Util/wallet.js +5 -14
  140. package/lib/Video/index.js +34 -34
  141. package/lib/Wallet/Action.js +72 -49
  142. package/lib/Wallet/Download.js +132 -115
  143. package/lib/Wallet/Open.js +26 -25
  144. package/lib/WalletOSIcon/index.js +33 -42
  145. package/lib/WebWalletSWKeeper/index.js +42 -55
  146. package/lib/WechatPrompt/index.js +53 -33
  147. package/lib/index.js +38 -265
  148. package/lib/withTheme/index.js +53 -33
  149. package/lib/withTracker/error_boundary.js +7 -18
  150. package/lib/withTracker/index.js +25 -34
  151. package/package.json +9 -316
  152. package/src/WalletOSIcon/index.jsx +1 -1
  153. package/es/ActionButton/index.js +0 -99
  154. package/es/ActivityIndicator/index.js +0 -180
  155. package/es/Address/compact-text.js +0 -105
  156. package/es/Address/did-address.js +0 -222
  157. package/es/Address/index.js +0 -23
  158. package/es/Address/responsive-did-address.js +0 -87
  159. package/es/Alert/index.js +0 -134
  160. package/es/AnimationWaiter/default-animation.json +0 -1
  161. package/es/AnimationWaiter/index.js +0 -240
  162. package/es/Async/index.js +0 -38
  163. package/es/Avatar/did-motif.js +0 -68
  164. package/es/Avatar/etherscan-blockies.js +0 -83
  165. package/es/Avatar/index.js +0 -179
  166. package/es/Badge/index.js +0 -98
  167. package/es/Blocklet/blocklet.js +0 -298
  168. package/es/Blocklet/index.js +0 -4
  169. package/es/Blocklet/utils.js +0 -52
  170. package/es/BlockletContext/index.js +0 -65
  171. package/es/BlockletNFT/index.js +0 -412
  172. package/es/Button/index.js +0 -8
  173. package/es/Button/wrap.js +0 -140
  174. package/es/ButtonGroup/index.js +0 -6
  175. package/es/CardSelector/index.js +0 -149
  176. package/es/Center/index.js +0 -41
  177. package/es/ClickToCopy/copy-button.js +0 -72
  178. package/es/ClickToCopy/hook.js +0 -39
  179. package/es/ClickToCopy/index.js +0 -92
  180. package/es/CodeBlock/LightBox.js +0 -85
  181. package/es/CodeBlock/index.js +0 -222
  182. package/es/Colors/index.js +0 -3
  183. package/es/Colors/themes/default.js +0 -77
  184. package/es/Colors/themes/temp.js +0 -41
  185. package/es/ContactForm/index.js +0 -230
  186. package/es/CookieConsent/index.js +0 -113
  187. package/es/CountDown/index.js +0 -178
  188. package/es/DID/index.js +0 -249
  189. package/es/Datatable/CustomToolbar.js +0 -396
  190. package/es/Datatable/DatatableContext.js +0 -34
  191. package/es/Datatable/TableSearch.js +0 -166
  192. package/es/Datatable/index.js +0 -629
  193. package/es/Datatable/utils.js +0 -132
  194. package/es/Dialog/confirm.js +0 -123
  195. package/es/Dialog/dialog.js +0 -201
  196. package/es/Dialog/index.js +0 -4
  197. package/es/Dialog/types.d.ts +0 -17
  198. package/es/Dialog/use-confirm.js +0 -133
  199. package/es/DidLogo/index.js +0 -31
  200. package/es/DriftBot/index.js +0 -70
  201. package/es/Earth/countries.json +0 -8057
  202. package/es/Earth/index.js +0 -521
  203. package/es/Earth/util.js +0 -51
  204. package/es/Empty/index.js +0 -65
  205. package/es/ErrorBoundary/fallback.js +0 -73
  206. package/es/ErrorBoundary/index.js +0 -1
  207. package/es/Footer/index.js +0 -172
  208. package/es/Header/auto-hidden.js +0 -35
  209. package/es/Header/header.js +0 -223
  210. package/es/Header/index.js +0 -2
  211. package/es/Header/responsive-header.js +0 -146
  212. package/es/Icon/image.js +0 -65
  213. package/es/Icon/index.js +0 -84
  214. package/es/Img/index.js +0 -218
  215. package/es/InfoRow/index.js +0 -87
  216. package/es/Layout/dashboard/external-link.js +0 -58
  217. package/es/Layout/dashboard/full-page.js +0 -53
  218. package/es/Layout/dashboard/index.js +0 -282
  219. package/es/Layout/dashboard/sidebar.js +0 -209
  220. package/es/Layout/dashboard-legacy/header.js +0 -174
  221. package/es/Layout/dashboard-legacy/index.js +0 -148
  222. package/es/Layout/dashboard-legacy/sidebar.js +0 -129
  223. package/es/Layout/index.js +0 -335
  224. package/es/LoadingMask/index.js +0 -102
  225. package/es/Locale/browser-lang.js +0 -52
  226. package/es/Locale/context.js +0 -139
  227. package/es/Locale/languages.js +0 -60
  228. package/es/Locale/selector.js +0 -186
  229. package/es/Locale/util.js +0 -21
  230. package/es/Logo/images/logo-dark-text.svg +0 -3
  231. package/es/Logo/images/logo-dark-top.svg +0 -6
  232. package/es/Logo/images/logo-light-text.svg +0 -3
  233. package/es/Logo/images/logo-light-top.svg +0 -6
  234. package/es/Logo/index.js +0 -136
  235. package/es/Metric/index.js +0 -132
  236. package/es/NFTDisplay/NFTBroken.svg +0 -34
  237. package/es/NFTDisplay/README.md +0 -59
  238. package/es/NFTDisplay/aspect-ratio-container.js +0 -39
  239. package/es/NFTDisplay/broken.js +0 -132
  240. package/es/NFTDisplay/demo/data/asset-state-display-url.json +0 -7
  241. package/es/NFTDisplay/demo/data/asset-state-gzipped-svg-1-1.json +0 -10
  242. package/es/NFTDisplay/demo/data/asset-state-gzipped-svg-374-130.json +0 -10
  243. package/es/NFTDisplay/demo/data/asset-state-gzipped-svg-with-foreign-object.json +0 -20
  244. package/es/NFTDisplay/demo/data/asset-state-svg.json +0 -29
  245. package/es/NFTDisplay/demo/data/asset-state-url.json +0 -10
  246. package/es/NFTDisplay/index.js +0 -328
  247. package/es/NFTDisplay/loading.js +0 -18
  248. package/es/NFTDisplay/svg-embedder/img.js +0 -45
  249. package/es/NFTDisplay/svg-embedder/inline-svg.js +0 -39
  250. package/es/NavMenu/index.js +0 -2
  251. package/es/NavMenu/nav-menu.js +0 -358
  252. package/es/NavMenu/style.js +0 -181
  253. package/es/PageScroller/index.js +0 -286
  254. package/es/PageScroller/story/FifthComponent.js +0 -9
  255. package/es/PageScroller/story/FirstComponent.js +0 -9
  256. package/es/PageScroller/story/FourthComponent.js +0 -12
  257. package/es/PageScroller/story/FullPage.js +0 -47
  258. package/es/PageScroller/story/PageContain.js +0 -59
  259. package/es/PageScroller/story/SecondComponent.js +0 -9
  260. package/es/PageScroller/story/ThirdComponent.js +0 -9
  261. package/es/PageScroller/story/index.css +0 -115
  262. package/es/PageScroller/usePrevValue.js +0 -9
  263. package/es/Passport/index.js +0 -2
  264. package/es/Passport/passport.js +0 -103
  265. package/es/PoweredByArcBlock/index.js +0 -31
  266. package/es/PricingTable/PricingPlan.js +0 -124
  267. package/es/PricingTable/index.js +0 -53
  268. package/es/QRCode/index.js +0 -73
  269. package/es/RelativeTime/index.js +0 -107
  270. package/es/Result/common.js +0 -140
  271. package/es/Result/demo/fixtures/result-image-404.svg +0 -1
  272. package/es/Result/index.js +0 -33
  273. package/es/Result/result.js +0 -59
  274. package/es/Result/translations.js +0 -54
  275. package/es/Screenshot/BaseScreenshot/index.js +0 -91
  276. package/es/Screenshot/BaseScreenshot/shells/Macbook.js +0 -51
  277. package/es/Screenshot/BaseScreenshot/shells/Phone.js +0 -36
  278. package/es/Screenshot/demo/images/bg-00.jpg +0 -0
  279. package/es/Screenshot/demo/images/bg-01.jpg +0 -0
  280. package/es/Screenshot/demo/images/bg-02.jpg +0 -0
  281. package/es/Screenshot/demo/images/bg-03.jpg +0 -0
  282. package/es/Screenshot/demo/images/bg-04.jpg +0 -0
  283. package/es/Screenshot/demo/images/bg-05.jpg +0 -0
  284. package/es/Screenshot/demo/images/bg-06.jpg +0 -0
  285. package/es/Screenshot/demo/images/bg-07.jpg +0 -0
  286. package/es/Screenshot/demo/images/bg-08.jpg +0 -0
  287. package/es/Screenshot/demo/images/bg-09.jpg +0 -0
  288. package/es/Screenshot/devices.css +0 -1366
  289. package/es/Screenshot/index.js +0 -299
  290. package/es/SessionBlocklet/index.js +0 -173
  291. package/es/SessionManager/index.js +0 -2
  292. package/es/SessionPermission/index.js +0 -28
  293. package/es/SessionUser/components/logged-in.js +0 -229
  294. package/es/SessionUser/components/session-user-item.js +0 -102
  295. package/es/SessionUser/components/session-user-switch.js +0 -223
  296. package/es/SessionUser/components/un-login.js +0 -64
  297. package/es/SessionUser/components/user-info.js +0 -167
  298. package/es/SessionUser/index.js +0 -49
  299. package/es/SessionUser/libs/translation.js +0 -19
  300. package/es/SessionUser/libs/utils.js +0 -29
  301. package/es/Sparkline/index.js +0 -193
  302. package/es/Spinner/index.js +0 -28
  303. package/es/SplitButton/index.js +0 -145
  304. package/es/Success/index.js +0 -175
  305. package/es/Switch/index.js +0 -96
  306. package/es/Tabs/index.js +0 -214
  307. package/es/Tag/index.js +0 -108
  308. package/es/TextCollapse/index.js +0 -92
  309. package/es/Theme/index.js +0 -16
  310. package/es/Theme/theme-provider.js +0 -39
  311. package/es/Theme/theme.js +0 -145
  312. package/es/Toast/index.js +0 -97
  313. package/es/Typography/index.js +0 -95
  314. package/es/Util/constant.js +0 -42
  315. package/es/Util/deprecate.js +0 -28
  316. package/es/Util/federated.js +0 -91
  317. package/es/Util/index.js +0 -363
  318. package/es/Util/passport.js +0 -62
  319. package/es/Util/wallet.js +0 -32
  320. package/es/Video/index.js +0 -89
  321. package/es/Wallet/Action.js +0 -119
  322. package/es/Wallet/Download.js +0 -331
  323. package/es/Wallet/Open.js +0 -45
  324. package/es/Wallet/images/abtwallet.png +0 -0
  325. package/es/Wallet/images/android_download.svg +0 -23
  326. package/es/Wallet/images/app-store.svg +0 -20
  327. package/es/Wallet/images/google-play.svg +0 -70
  328. package/es/WalletOSIcon/index.js +0 -82
  329. package/es/WebWalletSWKeeper/index.js +0 -117
  330. package/es/WechatPrompt/images/android.png +0 -0
  331. package/es/WechatPrompt/images/ios.png +0 -0
  332. package/es/WechatPrompt/index.js +0 -88
  333. package/es/index.js +0 -38
  334. package/es/withTheme/index.js +0 -69
  335. package/es/withTracker/README.md +0 -34
  336. package/es/withTracker/error_boundary.js +0 -34
  337. package/es/withTracker/index.js +0 -55
@@ -1,31 +0,0 @@
1
- import PropTypes from 'prop-types';
2
- import { Link, Typography } from '@mui/material';
3
- import { jsx as _jsx } from "react/jsx-runtime";
4
- import { jsxs as _jsxs } from "react/jsx-runtime";
5
- export default function PoweredByArcBlock({
6
- linkProps,
7
- ...props
8
- }) {
9
- return /*#__PURE__*/_jsxs(Typography, {
10
- ...props,
11
- children: ["Powered by", ' ', /*#__PURE__*/_jsx(Link, {
12
- href: "https://www.arcblock.io",
13
- target: "_blank",
14
- underline: "hover",
15
- ...linkProps,
16
- children: "ArcBlock"
17
- }), "'s", ' ', /*#__PURE__*/_jsx(Link, {
18
- href: "https://www.blocklet.io",
19
- target: "_blank",
20
- underline: "hover",
21
- ...linkProps,
22
- children: "Blocklet Technology"
23
- }), ", the decentralized web engine."]
24
- });
25
- }
26
- PoweredByArcBlock.propTypes = {
27
- linkProps: PropTypes.object
28
- };
29
- PoweredByArcBlock.defaultProps = {
30
- linkProps: {}
31
- };
@@ -1,124 +0,0 @@
1
- import PropTypes from 'prop-types';
2
- import Card from '@mui/material/Card';
3
- import Button from '@mui/material/Button';
4
- import CardContent from '@mui/material/CardContent';
5
- import Typography from '@mui/material/Typography';
6
- import { styled } from '../Theme';
7
- import { jsx as _jsx } from "react/jsx-runtime";
8
- import { jsxs as _jsxs } from "react/jsx-runtime";
9
- function PricingPlan({
10
- plan
11
- }) {
12
- return /*#__PURE__*/_jsxs(PlanCard, {
13
- $shadow: true,
14
- children: [/*#__PURE__*/_jsx("div", {
15
- className: "card-header",
16
- children: /*#__PURE__*/_jsx("div", {
17
- className: "title",
18
- children: plan.name
19
- })
20
- }), /*#__PURE__*/_jsxs(CardContent, {
21
- className: "card-content",
22
- children: [/*#__PURE__*/_jsxs("div", {
23
- className: "plan-content",
24
- children: [/*#__PURE__*/_jsx("div", {
25
- className: "plan-pricing",
26
- children: /*#__PURE__*/_jsx(Typography, {
27
- component: "h2",
28
- variant: "h5",
29
- className: "price-number",
30
- children: plan.price
31
- })
32
- }), /*#__PURE__*/_jsx("div", {
33
- className: "plan-services",
34
- children: plan.featureList.map(line => /*#__PURE__*/_jsx(Typography, {
35
- component: "p",
36
- variant: "body1",
37
- align: "center",
38
- children: line
39
- }, line))
40
- })]
41
- }), /*#__PURE__*/_jsx("div", {
42
- className: "plan-actions",
43
- children: plan.showButton && /*#__PURE__*/_jsx(Button, {
44
- fullWidth: true,
45
- variant: "outlined",
46
- color: "primary",
47
- component: "a",
48
- href: plan.buttonLink,
49
- children: plan.buttonText
50
- })
51
- })]
52
- })]
53
- });
54
- }
55
- export default PricingPlan;
56
- PricingPlan.propTypes = {
57
- plan: PropTypes.object.isRequired
58
- };
59
- const PlanCard = styled(Card)`
60
- height: 500px;
61
- display: flex;
62
- flex-direction: column;
63
- @media (max-width: 320px) {
64
- margin-top: 20px;
65
- }
66
-
67
- && {
68
- ${props => props.$shadow ? '' : 'box-shadow: 0px 0px 1px 0px rgba(0, 0, 0, 0.1)'}
69
- }
70
-
71
- .card-header {
72
- height: 80px;
73
- background-color: #f1fbfb;
74
- display: flex;
75
- flex-flow: column;
76
- align-items: center;
77
- justify-content: center;
78
- .title {
79
- font-size: 18px;
80
- font-weight: 600;
81
- text-align: center;
82
- color: #404040;
83
- margin: 0;
84
- }
85
- }
86
-
87
- .card-content {
88
- display: flex;
89
- flex-direction: column;
90
- justify-content: space-between;
91
- align-items: center;
92
- flex-grow: 1;
93
- }
94
-
95
- .plan-content {
96
- display: flex;
97
- flex-direction: column;
98
- flex-grow: 1;
99
-
100
- .plan-pricing {
101
- display: flex;
102
- justify-content: center;
103
- align-items: baseline;
104
- margin-bottom: 12px;
105
- color: #4e6af6;
106
- text-align: center;
107
- }
108
-
109
- .price-number {
110
- font-size: 30px;
111
- font-weight: 600;
112
- color: #4e6af6;
113
- }
114
-
115
- .plan-services strong {
116
- color: #4e6af6;
117
- font-weight: 500;
118
- }
119
- }
120
-
121
- .plan-actions {
122
- width: 100%;
123
- }
124
- `;
@@ -1,53 +0,0 @@
1
- import PropTypes from 'prop-types';
2
- import Grid from '@mui/material/Grid';
3
- import PricingPlan from './PricingPlan';
4
- import { styled } from '../Theme';
5
- import { withDeprecated } from '../Util/deprecate';
6
- import { jsx as _jsx } from "react/jsx-runtime";
7
- function PricingTable({
8
- plans
9
- }) {
10
- if (plans && plans.length > 0) {
11
- return /*#__PURE__*/_jsx(Div, {
12
- variant: "even",
13
- children: /*#__PURE__*/_jsx(Grid, {
14
- container: true,
15
- spacing: 2,
16
- justifyContent: "center",
17
- children: plans.map((x, index) =>
18
- /*#__PURE__*/
19
- // eslint-disable-next-line react/no-array-index-key
20
- _jsx(Grid, {
21
- item: true,
22
- className: "plan-item",
23
- xs: 12,
24
- sm: 6,
25
- md: 3,
26
- children: /*#__PURE__*/_jsx(PricingPlan, {
27
- plan: x
28
- })
29
- }, index))
30
- })
31
- });
32
- }
33
- return null;
34
- }
35
- export default withDeprecated(PricingTable, {
36
- name: 'PricingTable'
37
- });
38
- PricingTable.propTypes = {
39
- plans: PropTypes.array.isRequired
40
- };
41
- const Div = styled('div')`
42
- padding: 100px 0;
43
- text-align: center;
44
- background-color: ${props => props.variant === 'even' ? '#fbfbfb' : '#ffffff'};
45
- @media (max-width: 320px) {
46
- padding: 50px 0;
47
- }
48
- .plan-item {
49
- @media (max-width: 320px) {
50
- margin-bottom: 30px;
51
- }
52
- }
53
- `;
@@ -1,73 +0,0 @@
1
- import { useRef, useEffect, useMemo, useState } from 'react';
2
- import PropTypes from 'prop-types';
3
- import QRCodeStyling from '@solana/qr-code-styling';
4
- import { Box } from '@mui/material';
5
- import { jsx as _jsx } from "react/jsx-runtime";
6
- const defaults = {
7
- margin: 0,
8
- dotsOptions: {
9
- type: 'dots'
10
- },
11
- cornersSquareOptions: {
12
- type: 'extra-rounded'
13
- },
14
- cornersDotOptions: {
15
- type: 'dot'
16
- }
17
- };
18
-
19
- // 该组件用于生成与 android wallet 样式风格相似的 qrcode
20
- // 注意: 依赖的 @solana/qr-code-styling 是一份 fork 版本, 原版本的 margin 配置存在 bug
21
- function QRCode({
22
- data,
23
- size,
24
- image,
25
- config,
26
- ...rest
27
- }) {
28
- const ref = useRef(null);
29
- const options = useMemo(() => {
30
- return {
31
- ...defaults,
32
- data,
33
- width: size,
34
- height: size,
35
- ...(image && {
36
- image,
37
- imageOptions: {
38
- crossOrigin: 'anonymous',
39
- margin: 0
40
- }
41
- }),
42
- ...config
43
- };
44
- }, [data, size, image, config]);
45
- const [qrCode] = useState(new QRCodeStyling(options));
46
- useEffect(() => {
47
- if (ref.current) {
48
- qrCode.append(ref.current);
49
- }
50
- }, [qrCode, ref]);
51
- useEffect(() => {
52
- if (!qrCode) return;
53
- qrCode.update(options);
54
- // eslint-disable-next-line react-hooks/exhaustive-deps
55
- }, [data, size, image, config]);
56
- return /*#__PURE__*/_jsx(Box, {
57
- ref: ref,
58
- ...rest
59
- });
60
- }
61
- QRCode.propTypes = {
62
- // 一般情况下仅使用 data/size/image 即可
63
- data: PropTypes.string.isRequired,
64
- size: PropTypes.number.isRequired,
65
- image: PropTypes.string,
66
- // 覆盖 qr-code-styling 配置
67
- config: PropTypes.object
68
- };
69
- QRCode.defaultProps = {
70
- image: null,
71
- config: {}
72
- };
73
- export default QRCode;
@@ -1,107 +0,0 @@
1
- import PropTypes from 'prop-types';
2
- import relativeTime from 'dayjs/plugin/relativeTime';
3
- import dayjs from 'dayjs';
4
- import 'dayjs/locale/zh-cn';
5
- import { Tooltip } from '@mui/material';
6
- import localizedFormat from 'dayjs/plugin/localizedFormat';
7
- import utc from 'dayjs/plugin/utc';
8
- import timezone from 'dayjs/plugin/timezone';
9
- import updateLocale from 'dayjs/plugin/updateLocale';
10
- import { formatToDatetime, setDateTool } from '../Util';
11
- import { jsx as _jsx } from "react/jsx-runtime";
12
- dayjs.extend(localizedFormat);
13
- dayjs.extend(utc);
14
- dayjs.extend(timezone);
15
- dayjs.extend(updateLocale);
16
- dayjs.extend(relativeTime);
17
- dayjs.updateLocale('zh-cn', {
18
- // copy with https://github.com/iamkun/dayjs/blob/dev/src/locale/zh-cn.js
19
- relativeTime: {
20
- future: '%s后',
21
- past: '%s前',
22
- s: '几秒',
23
- m: '1 分钟',
24
- mm: '%d 分钟',
25
- h: '1 小时',
26
- hh: '%d 小时',
27
- d: '1 天',
28
- dd: '%d 天',
29
- M: '1 个月',
30
- MM: '%d 个月',
31
- y: '1 年',
32
- yy: '%d 年'
33
- }
34
- });
35
- setDateTool(dayjs);
36
- export default function RelativeTime({
37
- value,
38
- locale,
39
- withoutSuffix,
40
- from,
41
- to,
42
- type,
43
- tz,
44
- relativeRange,
45
- ...rest
46
- }) {
47
- if (!value) {
48
- return '-';
49
- }
50
- const localeOption = locale === 'zh' ? 'zh-cn' : 'en-us';
51
- const datetime = dayjs(value).locale(localeOption);
52
- if (tz) {
53
- datetime.tz(tz);
54
- }
55
- const absoluteString = formatToDatetime(value, {
56
- locale: localeOption,
57
- tz
58
- });
59
- let relativeString;
60
- if (from) {
61
- relativeString = datetime.from(from, withoutSuffix);
62
- } else if (to) {
63
- relativeString = datetime.to(to, withoutSuffix);
64
- } else if (relativeRange) {
65
- const diffTime = datetime.diff(dayjs());
66
- if (Math.abs(diffTime) > relativeRange) {
67
- relativeString = absoluteString;
68
- }
69
- }
70
- if (!relativeString) {
71
- relativeString = datetime.fromNow(withoutSuffix);
72
- }
73
- let innerContent = relativeString;
74
- let popContent = absoluteString;
75
- if (type === 'absolute') {
76
- innerContent = absoluteString;
77
- popContent = relativeString;
78
- }
79
- return /*#__PURE__*/_jsx(Tooltip, {
80
- title: popContent,
81
- placement: "top-end",
82
- enterTouchDelay: 0,
83
- children: /*#__PURE__*/_jsx("span", {
84
- ...rest,
85
- children: innerContent
86
- })
87
- });
88
- }
89
- RelativeTime.propTypes = {
90
- value: PropTypes.oneOfType([PropTypes.string, PropTypes.number]).isRequired,
91
- locale: PropTypes.string,
92
- withoutSuffix: PropTypes.bool,
93
- from: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
94
- to: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
95
- type: PropTypes.oneOf(['relative', 'absolute']),
96
- tz: PropTypes.string,
97
- relativeRange: PropTypes.number
98
- };
99
- RelativeTime.defaultProps = {
100
- locale: 'en',
101
- withoutSuffix: false,
102
- from: '',
103
- to: '',
104
- type: 'relative',
105
- tz: undefined,
106
- relativeRange: undefined
107
- };
@@ -1,140 +0,0 @@
1
- /* eslint-disable react/prop-types */
2
- /* eslint-disable no-param-reassign */
3
- import InfoIcon from '@mui/icons-material/Info';
4
- import CancelRoundedIcon from '@mui/icons-material/CancelRounded';
5
- import Result from './result';
6
- import translations from './translations';
7
- import { useLocaleContext } from '../Locale/context';
8
- import { useTheme } from '../Theme';
9
-
10
- // 优先使用显式指定的 locale, 再尝试使用 context 中的 locale, 最后使用默认 'en'
11
- import { jsx as _jsx } from "react/jsx-runtime";
12
- const useLocale = locale => {
13
- locale = ['zh', 'en'].includes(locale) ? locale : '';
14
- const {
15
- locale: localeFromContext
16
- } = useLocaleContext() || {
17
- locale: 'en'
18
- };
19
- const result = locale || localeFromContext;
20
- return translations[result] ? result : 'en';
21
- };
22
-
23
- // 404
24
- export function PageNotFound({
25
- locale,
26
- ...rest
27
- }) {
28
- locale = useLocale(locale);
29
- return /*#__PURE__*/_jsx(Result, {
30
- icon: /*#__PURE__*/_jsx(StyledErrorIcon, {}),
31
- title: translations[locale][404].title,
32
- description: translations[locale][404].description,
33
- ...rest
34
- });
35
- }
36
- PageNotFound.status = '404';
37
-
38
- // 403
39
- export function Forbidden({
40
- locale,
41
- ...rest
42
- }) {
43
- locale = useLocale(locale);
44
- return /*#__PURE__*/_jsx(Result, {
45
- icon: /*#__PURE__*/_jsx(StyledErrorIcon, {}),
46
- title: translations[locale][403].title,
47
- description: translations[locale][403].description,
48
- ...rest
49
- });
50
- }
51
- Forbidden.status = '403';
52
-
53
- // 500
54
- export function InternalServerError({
55
- locale,
56
- ...rest
57
- }) {
58
- locale = useLocale(locale);
59
- return /*#__PURE__*/_jsx(Result, {
60
- icon: /*#__PURE__*/_jsx(StyledErrorIcon, {}),
61
- title: translations[locale][500].title,
62
- description: translations[locale][500].description,
63
- ...rest
64
- });
65
- }
66
- InternalServerError.status = '500';
67
-
68
- // 通用错误
69
- export function Error({
70
- locale,
71
- ...rest
72
- }) {
73
- locale = useLocale(locale);
74
- return /*#__PURE__*/_jsx(Result, {
75
- icon: /*#__PURE__*/_jsx(StyledErrorIcon, {}),
76
- title: translations[locale].error.title,
77
- description: translations[locale].error.description,
78
- ...rest
79
- });
80
- }
81
- Error.status = 'error';
82
-
83
- // under maintenance
84
- export function Maintenance({
85
- locale,
86
- ...rest
87
- }) {
88
- locale = useLocale(locale);
89
- return /*#__PURE__*/_jsx(Result, {
90
- icon: /*#__PURE__*/_jsx(StyledInfoIcon, {}),
91
- title: translations[locale].maintenance.title,
92
- description: translations[locale].maintenance.description,
93
- ...rest
94
- });
95
- }
96
- Maintenance.status = 'maintenance';
97
-
98
- // coming soon
99
- export function ComingSoon({
100
- locale,
101
- ...rest
102
- }) {
103
- locale = useLocale(locale);
104
- return /*#__PURE__*/_jsx(Result, {
105
- icon: /*#__PURE__*/_jsx(StyledInfoIcon, {}),
106
- title: translations[locale].comingSoon.title,
107
- description: translations[locale].comingSoon.description,
108
- ...rest
109
- });
110
- }
111
- ComingSoon.status = 'comingSoon';
112
-
113
- // info, 与其它 status 不同, title/description 需要使用方自己传入
114
- export function Info(props) {
115
- return /*#__PURE__*/_jsx(Result, {
116
- icon: /*#__PURE__*/_jsx(StyledInfoIcon, {}),
117
- ...props
118
- });
119
- }
120
- Info.status = 'info';
121
- function StyledErrorIcon(props) {
122
- const theme = useTheme();
123
- return /*#__PURE__*/_jsx(CancelRoundedIcon, {
124
- style: {
125
- color: theme.palette.error.main,
126
- fontSize: 72
127
- },
128
- ...props
129
- });
130
- }
131
- function StyledInfoIcon(props) {
132
- const theme = useTheme();
133
- return /*#__PURE__*/_jsx(InfoIcon, {
134
- style: {
135
- color: theme.palette.info.main,
136
- fontSize: 72
137
- },
138
- ...props
139
- });
140
- }
@@ -1 +0,0 @@
1
- <svg width="252" height="294"><defs><path d="M0 .387h251.772v251.772H0z"></path></defs><g fill="none" fill-rule="evenodd"><g transform="translate(0 .012)"><mask fill="#fff"></mask><path d="M0 127.32v-2.095C0 56.279 55.892.387 124.838.387h2.096c68.946 0 124.838 55.892 124.838 124.838v2.096c0 68.946-55.892 124.838-124.838 124.838h-2.096C55.892 252.16 0 196.267 0 127.321" fill="#E4EBF7" mask="url(#b)"></path></g><path d="M39.755 130.84a8.276 8.276 0 1 1-16.468-1.66 8.276 8.276 0 0 1 16.468 1.66" fill="#FFF"></path><path d="M36.975 134.297l10.482 5.943M48.373 146.508l-12.648 10.788" stroke="#FFF" stroke-width="2"></path><path d="M39.875 159.352a5.667 5.667 0 1 1-11.277-1.136 5.667 5.667 0 0 1 11.277 1.136M57.588 143.247a5.708 5.708 0 1 1-11.358-1.145 5.708 5.708 0 0 1 11.358 1.145M99.018 26.875l29.82-.014a4.587 4.587 0 1 0-.003-9.175l-29.82.013a4.587 4.587 0 1 0 .003 9.176M110.424 45.211l29.82-.013a4.588 4.588 0 0 0-.004-9.175l-29.82.013a4.587 4.587 0 1 0 .004 9.175" fill="#FFF"></path><path d="M112.798 26.861v-.002l15.784-.006a4.588 4.588 0 1 0 .003 9.175l-15.783.007v-.002a4.586 4.586 0 0 0-.004-9.172M184.523 135.668c-.553 5.485-5.447 9.483-10.931 8.93-5.485-.553-9.483-5.448-8.93-10.932.552-5.485 5.447-9.483 10.932-8.93 5.485.553 9.483 5.447 8.93 10.932" fill="#FFF"></path><path d="M179.26 141.75l12.64 7.167M193.006 156.477l-15.255 13.011" stroke="#FFF" stroke-width="2"></path><path d="M184.668 170.057a6.835 6.835 0 1 1-13.6-1.372 6.835 6.835 0 0 1 13.6 1.372M203.34 153.325a6.885 6.885 0 1 1-13.7-1.382 6.885 6.885 0 0 1 13.7 1.382" fill="#FFF"></path><path d="M151.931 192.324a2.222 2.222 0 1 1-4.444 0 2.222 2.222 0 0 1 4.444 0zM225.27 116.056a2.222 2.222 0 1 1-4.445 0 2.222 2.222 0 0 1 4.444 0zM216.38 151.08a2.223 2.223 0 1 1-4.446-.001 2.223 2.223 0 0 1 4.446 0zM176.917 107.636a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM195.291 92.165a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM202.058 180.711a2.223 2.223 0 1 1-4.446 0 2.223 2.223 0 0 1 4.446 0z" stroke="#FFF" stroke-width="2"></path><path stroke="#FFF" stroke-width="2" d="M214.404 153.302l-1.912 20.184-10.928 5.99M173.661 174.792l-6.356 9.814h-11.36l-4.508 6.484M174.941 125.168v-15.804M220.824 117.25l-12.84 7.901-15.31-7.902V94.39"></path><path d="M166.588 65.936h-3.951a4.756 4.756 0 0 1-4.743-4.742 4.756 4.756 0 0 1 4.743-4.743h3.951a4.756 4.756 0 0 1 4.743 4.743 4.756 4.756 0 0 1-4.743 4.742" fill="#FFF"></path><path d="M174.823 30.03c0-16.281 13.198-29.48 29.48-29.48 16.28 0 29.48 13.199 29.48 29.48 0 16.28-13.2 29.48-29.48 29.48-16.282 0-29.48-13.2-29.48-29.48" fill="#1890FF"></path><path d="M205.952 38.387c.5.5.785 1.142.785 1.928s-.286 1.465-.785 1.964c-.572.5-1.214.75-2 .75-.785 0-1.429-.285-1.929-.785-.572-.5-.82-1.143-.82-1.929s.248-1.428.82-1.928c.5-.5 1.144-.75 1.93-.75.785 0 1.462.25 1.999.75m4.285-19.463c1.428 1.249 2.143 2.963 2.143 5.142 0 1.712-.427 3.13-1.219 4.25-.067.096-.137.18-.218.265-.416.429-1.41 1.346-2.956 2.699a5.07 5.07 0 0 0-1.428 1.75 5.207 5.207 0 0 0-.536 2.357v.5h-4.107v-.5c0-1.357.215-2.536.714-3.5.464-.964 1.857-2.464 4.178-4.536l.43-.5c.643-.785.964-1.643.964-2.535 0-1.18-.358-2.108-1-2.785-.678-.68-1.643-1.001-2.858-1.001-1.536 0-2.642.464-3.357 1.43-.37.5-.621 1.135-.76 1.904a1.999 1.999 0 0 1-1.971 1.63h-.004c-1.277 0-2.257-1.183-1.98-2.43.337-1.518 1.02-2.78 2.073-3.784 1.536-1.5 3.607-2.25 6.25-2.25 2.32 0 4.214.607 5.642 1.894" fill="#FFF"></path><path d="M52.04 76.131s21.81 5.36 27.307 15.945c5.575 10.74-6.352 9.26-15.73 4.935-10.86-5.008-24.7-11.822-11.577-20.88" fill="#FFB594"></path><path d="M90.483 67.504l-.449 2.893c-.753.49-4.748-2.663-4.748-2.663l-1.645.748-1.346-5.684s6.815-4.589 8.917-5.018c2.452-.501 9.884.94 10.7 2.278 0 0 1.32.486-2.227.69-3.548.203-5.043.447-6.79 3.132-1.747 2.686-2.412 3.624-2.412 3.624" fill="#FFC6A0"></path><path d="M128.055 111.367c-2.627-7.724-6.15-13.18-8.917-15.478-3.5-2.906-9.34-2.225-11.366-4.187-1.27-1.231-3.215-1.197-3.215-1.197s-14.98-3.158-16.828-3.479c-2.37-.41-2.124-.714-6.054-1.405-1.57-1.907-2.917-1.122-2.917-1.122l-7.11-1.383c-.853-1.472-2.423-1.023-2.423-1.023l-2.468-.897c-1.645 9.976-7.74 13.796-7.74 13.796 1.795 1.122 15.703 8.3 15.703 8.3l5.107 37.11s-3.321 5.694 1.346 9.109c0 0 19.883-3.743 34.921-.329 0 0 3.047-2.546.972-8.806.523-3.01 1.394-8.263 1.736-11.622.385.772 2.019 1.918 3.14 3.477 0 0 9.407-7.365 11.052-14.012-.832-.723-1.598-1.585-2.267-2.453-.567-.736-.358-2.056-.765-2.717-.669-1.084-1.804-1.378-1.907-1.682" fill="#FFF"></path><path d="M101.09 289.998s4.295 2.041 7.354 1.021c2.821-.94 4.53.668 7.08 1.178 2.55.51 6.874 1.1 11.686-1.26-.103-5.51-6.889-3.98-11.96-6.713-2.563-1.38-3.784-4.722-3.598-8.799h-9.402s-1.392 10.52-1.16 14.573" fill="#CBD1D1"></path><path d="M101.067 289.826s2.428 1.271 6.759.653c3.058-.437 3.712.481 7.423 1.031 3.712.55 10.724-.069 11.823-.894.413 1.1-.343 2.063-.343 2.063s-1.512.603-4.812.824c-2.03.136-5.8.291-7.607-.503-1.787-1.375-5.247-1.903-5.728-.241-3.918.95-7.355-.286-7.355-.286l-.16-2.647z" fill="#2B0849"></path><path d="M108.341 276.044h3.094s-.103 6.702 4.536 8.558c-4.64.618-8.558-2.303-7.63-8.558" fill="#A4AABA"></path><path d="M57.542 272.401s-2.107 7.416-4.485 12.306c-1.798 3.695-4.225 7.492 5.465 7.492 6.648 0 8.953-.48 7.423-6.599-1.53-6.12.266-13.199.266-13.199h-8.669z" fill="#CBD1D1"></path><path d="M51.476 289.793s2.097 1.169 6.633 1.169c6.083 0 8.249-1.65 8.249-1.65s.602 1.114-.619 2.165c-.993.855-3.597 1.591-7.39 1.546-4.145-.048-5.832-.566-6.736-1.168-.825-.55-.687-1.58-.137-2.062" fill="#2B0849"></path><path d="M58.419 274.304s.033 1.519-.314 2.93c-.349 1.42-1.078 3.104-1.13 4.139-.058 1.151 4.537 1.58 5.155.034.62-1.547 1.294-6.427 1.913-7.252.619-.825-4.903-2.119-5.624.15" fill="#A4AABA"></path><path d="M99.66 278.514l13.378.092s1.298-54.52 1.853-64.403c.554-9.882 3.776-43.364 1.002-63.128l-12.547-.644-22.849.78s-.434 3.966-1.195 9.976c-.063.496-.682.843-.749 1.365-.075.585.423 1.354.32 1.966-2.364 14.08-6.377 33.104-8.744 46.677-.116.666-1.234 1.009-1.458 2.691-.04.302.211 1.525.112 1.795-6.873 18.744-10.949 47.842-14.277 61.885l14.607-.014s2.197-8.57 4.03-16.97c2.811-12.886 23.111-85.01 23.111-85.01l3.016-.521 1.043 46.35s-.224 1.234.337 2.02c.56.785-.56 1.123-.392 2.244l.392 1.794s-.449 7.178-.898 11.89c-.448 4.71-.092 39.165-.092 39.165" fill="#7BB2F9"></path><path d="M76.085 221.626c1.153.094 4.038-2.019 6.955-4.935M106.36 225.142s2.774-1.11 6.103-3.883" stroke="#648BD8" stroke-width="1.051" stroke-linecap="round" stroke-linejoin="round"></path><path d="M107.275 222.1s2.773-1.11 6.102-3.884" stroke="#648BD8" stroke-linecap="round" stroke-linejoin="round"></path><path d="M74.74 224.767s2.622-.591 6.505-3.365M86.03 151.634c-.27 3.106.3 8.525-4.336 9.123M103.625 149.88s.11 14.012-1.293 15.065c-2.219 1.664-2.99 1.944-2.99 1.944M99.79 150.438s.035 12.88-1.196 24.377M93.673 175.911s7.212-1.664 9.431-1.664M74.31 205.861a212.013 212.013 0 0 1-.979 4.56s-1.458 1.832-1.009 3.776c.449 1.944-.947 2.045-4.985 15.355-1.696 5.59-4.49 18.591-6.348 27.597l-.231 1.12M75.689 197.807a320.934 320.934 0 0 1-.882 4.754M82.591 152.233L81.395 162.7s-1.097.15-.5 2.244c.113 1.346-2.674 15.775-5.18 30.43M56.12 274.418h13.31" stroke="#648BD8" stroke-width="1.051" stroke-linecap="round" stroke-linejoin="round"></path><path d="M116.241 148.22s-17.047-3.104-35.893.2c.158 2.514-.003 4.15-.003 4.15s14.687-2.818 35.67-.312c.252-2.355.226-4.038.226-4.038" fill="#192064"></path><path d="M106.322 151.165l.003-4.911a.81.81 0 0 0-.778-.815c-2.44-.091-5.066-.108-7.836-.014a.818.818 0 0 0-.789.815l-.003 4.906a.81.81 0 0 0 .831.813c2.385-.06 4.973-.064 7.73.017a.815.815 0 0 0 .842-.81" fill="#FFF"></path><path d="M105.207 150.233l.002-3.076a.642.642 0 0 0-.619-.646 94.321 94.321 0 0 0-5.866-.01.65.65 0 0 0-.63.647v3.072a.64.64 0 0 0 .654.644 121.12 121.12 0 0 1 5.794.011c.362.01.665-.28.665-.642" fill="#192064"></path><path d="M100.263 275.415h12.338M101.436 270.53c.006 3.387.042 5.79.111 6.506M101.451 264.548a915.75 915.75 0 0 0-.015 4.337M100.986 174.965l.898 44.642s.673 1.57-.225 2.692c-.897 1.122 2.468.673.898 2.243-1.57 1.57.897 1.122 0 3.365-.596 1.489-.994 21.1-1.096 35.146" stroke="#648BD8" stroke-width="1.051" stroke-linecap="round" stroke-linejoin="round"></path><path d="M46.876 83.427s-.516 6.045 7.223 5.552c11.2-.712 9.218-9.345 31.54-21.655-.786-2.708-2.447-4.744-2.447-4.744s-11.068 3.11-22.584 8.046c-6.766 2.9-13.395 6.352-13.732 12.801M104.46 91.057l.941-5.372-8.884-11.43-5.037 5.372-1.74 7.834a.321.321 0 0 0 .108.32c.965.8 6.5 5.013 14.347 3.544a.332.332 0 0 0 .264-.268" fill="#FFC6A0"></path><path d="M93.942 79.387s-4.533-2.853-2.432-6.855c1.623-3.09 4.513 1.133 4.513 1.133s.52-3.642 3.121-3.642c.52-1.04 1.561-4.162 1.561-4.162s11.445 2.601 13.526 3.121c0 5.203-2.304 19.424-7.84 19.861-8.892.703-12.449-9.456-12.449-9.456" fill="#FFC6A0"></path><path d="M113.874 73.446c2.601-2.081 3.47-9.722 3.47-9.722s-2.479-.49-6.64-2.05c-4.683-2.081-12.798-4.747-17.48.976-9.668 3.223-2.05 19.823-2.05 19.823l2.713-3.021s-3.935-3.287-2.08-6.243c2.17-3.462 3.92 1.073 3.92 1.073s.637-2.387 3.581-3.342c.355-.71 1.036-2.674 1.432-3.85a1.073 1.073 0 0 1 1.263-.704c2.4.558 8.677 2.019 11.356 2.662.522.125.871.615.82 1.15l-.305 3.248z" fill="#520038"></path><path d="M104.977 76.064c-.103.61-.582 1.038-1.07.956-.489-.083-.801-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.644.698 1.254M112.132 77.694c-.103.61-.582 1.038-1.07.956-.488-.083-.8-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.643.698 1.254" fill="#552950"></path><path stroke="#DB836E" stroke-width="1.118" stroke-linecap="round" stroke-linejoin="round" d="M110.13 74.84l-.896 1.61-.298 4.357h-2.228"></path><path d="M110.846 74.481s1.79-.716 2.506.537" stroke="#5C2552" stroke-width="1.118" stroke-linecap="round" stroke-linejoin="round"></path><path d="M92.386 74.282s.477-1.114 1.113-.716c.637.398 1.274 1.433.558 1.99-.717.556.159 1.67.159 1.67" stroke="#DB836E" stroke-width="1.118" stroke-linecap="round" stroke-linejoin="round"></path><path d="M103.287 72.93s1.83 1.113 4.137.954" stroke="#5C2552" stroke-width="1.118" stroke-linecap="round" stroke-linejoin="round"></path><path d="M103.685 81.762s2.227 1.193 4.376 1.193M104.64 84.308s.954.398 1.511.318M94.693 81.205s2.308 7.4 10.424 7.639" stroke="#DB836E" stroke-width="1.118" stroke-linecap="round" stroke-linejoin="round"></path><path d="M81.45 89.384s.45 5.647-4.935 12.787M69 82.654s-.726 9.282-8.204 14.206" stroke="#E4EBF7" stroke-width="1.101" stroke-linecap="round" stroke-linejoin="round"></path><path d="M129.405 122.865s-5.272 7.403-9.422 10.768" stroke="#E4EBF7" stroke-width="1.051" stroke-linecap="round" stroke-linejoin="round"></path><path d="M119.306 107.329s.452 4.366-2.127 32.062" stroke="#E4EBF7" stroke-width="1.101" stroke-linecap="round" stroke-linejoin="round"></path><path d="M150.028 151.232h-49.837a1.01 1.01 0 0 1-1.01-1.01v-31.688c0-.557.452-1.01 1.01-1.01h49.837c.558 0 1.01.453 1.01 1.01v31.688a1.01 1.01 0 0 1-1.01 1.01" fill="#F2D7AD"></path><path d="M150.29 151.232h-19.863v-33.707h20.784v32.786a.92.92 0 0 1-.92.92" fill="#F4D19D"></path><path d="M123.554 127.896H92.917a.518.518 0 0 1-.425-.816l6.38-9.113c.193-.277.51-.442.85-.442h31.092l-7.26 10.371z" fill="#F2D7AD"></path><path fill="#CC9B6E" d="M123.689 128.447H99.25v-.519h24.169l7.183-10.26.424.298z"></path><path d="M158.298 127.896h-18.669a2.073 2.073 0 0 1-1.659-.83l-7.156-9.541h19.965c.49 0 .95.23 1.244.622l6.69 8.92a.519.519 0 0 1-.415.83" fill="#F4D19D"></path><path fill="#CC9B6E" d="M157.847 128.479h-19.384l-7.857-10.475.415-.31 7.7 10.266h19.126zM130.554 150.685l-.032-8.177.519-.002.032 8.177z"></path><path fill="#CC9B6E" d="M130.511 139.783l-.08-21.414.519-.002.08 21.414zM111.876 140.932l-.498-.143 1.479-5.167.498.143zM108.437 141.06l-2.679-2.935 2.665-3.434.41.318-2.397 3.089 2.384 2.612zM116.607 141.06l-.383-.35 2.383-2.612-2.397-3.089.41-.318 2.665 3.434z"></path><path d="M154.316 131.892l-3.114-1.96.038 3.514-1.043.092c-1.682.115-3.634.23-4.789.23-1.902 0-2.693 2.258 2.23 2.648l-2.645-.596s-2.168 1.317.504 2.3c0 0-1.58 1.217.561 2.58-.584 3.504 5.247 4.058 7.122 3.59 1.876-.47 4.233-2.359 4.487-5.16.28-3.085-.89-5.432-3.35-7.238" fill="#FFC6A0"></path><path d="M153.686 133.577s-6.522.47-8.36.372c-1.836-.098-1.904 2.19 2.359 2.264 3.739.15 5.451-.044 5.451-.044" stroke="#DB836E" stroke-width="1.051" stroke-linecap="round" stroke-linejoin="round"></path><path d="M145.16 135.877c-1.85 1.346.561 2.355.561 2.355s3.478.898 6.73.617" stroke="#DB836E" stroke-width="1.051" stroke-linecap="round" stroke-linejoin="round"></path><path d="M151.89 141.71s-6.28.111-6.73-2.132c-.223-1.346.45-1.402.45-1.402M146.114 140.868s-1.103 3.16 5.44 3.533M151.202 129.932v3.477M52.838 89.286c3.533-.337 8.423-1.248 13.582-7.754" stroke="#DB836E" stroke-width="1.051" stroke-linecap="round" stroke-linejoin="round"></path><path d="M168.567 248.318a6.647 6.647 0 0 1-6.647-6.647v-66.466a6.647 6.647 0 1 1 13.294 0v66.466a6.647 6.647 0 0 1-6.647 6.647" fill="#5BA02E"></path><path d="M176.543 247.653a6.647 6.647 0 0 1-6.646-6.647v-33.232a6.647 6.647 0 1 1 13.293 0v33.232a6.647 6.647 0 0 1-6.647 6.647" fill="#92C110"></path><path d="M186.443 293.613H158.92a3.187 3.187 0 0 1-3.187-3.187v-46.134a3.187 3.187 0 0 1 3.187-3.187h27.524a3.187 3.187 0 0 1 3.187 3.187v46.134a3.187 3.187 0 0 1-3.187 3.187" fill="#F2D7AD"></path><path d="M88.979 89.48s7.776 5.384 16.6 2.842" stroke="#E4EBF7" stroke-width="1.101" stroke-linecap="round" stroke-linejoin="round"></path></g></svg>
@@ -1,33 +0,0 @@
1
- import PropTypes from 'prop-types';
2
- import Result from './result';
3
- import * as common from './common';
4
- import { jsx as _jsx } from "react/jsx-runtime";
5
- const componentsKeyByStatus = Object.keys(common).reduce((acc, cur) => ({
6
- ...acc,
7
- [common[cur].status || cur]: common[cur]
8
- }), {});
9
- function ResultWrapper({
10
- status,
11
- ...rest
12
- }) {
13
- if (status) {
14
- if (componentsKeyByStatus[status]) {
15
- const Component = componentsKeyByStatus[status];
16
- return /*#__PURE__*/_jsx(Component, {
17
- ...rest
18
- });
19
- }
20
- throw new Error(`Please provide a valid status for Result.status. Valid values are: ${Object.keys(componentsKeyByStatus).join(', ')}`);
21
- }
22
- return /*#__PURE__*/_jsx(Result, {
23
- ...rest
24
- });
25
- }
26
- ResultWrapper.propTypes = {
27
- status: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
28
- ...Result.propTypes
29
- };
30
- ResultWrapper.defaultProps = {
31
- status: ''
32
- };
33
- export default ResultWrapper;
@@ -1,59 +0,0 @@
1
- import PropTypes from 'prop-types';
2
- import Box from '@mui/material/Box';
3
- import { styled } from '../Theme';
4
- import { jsx as _jsx } from "react/jsx-runtime";
5
- import { jsxs as _jsxs } from "react/jsx-runtime";
6
- function Result({
7
- icon,
8
- title,
9
- description,
10
- extra,
11
- ...rest
12
- }) {
13
- return /*#__PURE__*/_jsxs(Root, {
14
- ...rest,
15
- children: [icon, typeof title === 'string' ? /*#__PURE__*/_jsx(Box, {
16
- mt: 3,
17
- fontSize: 22,
18
- fontWeight: 400,
19
- color: "#47494E",
20
- textAlign: "center",
21
- children: title
22
- }) : title, typeof description === 'string' ? /*#__PURE__*/_jsx(Box, {
23
- mt: 1,
24
- fontSize: 14,
25
- color: "#7F828B",
26
- textAlign: "center",
27
- children: description
28
- }) : description, /*#__PURE__*/_jsx(Box, {
29
- mt: 3,
30
- children: extra
31
- })]
32
- });
33
- }
34
- Result.propTypes = {
35
- icon: PropTypes.element,
36
- title: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
37
- description: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
38
- actions: PropTypes.any,
39
- extra: PropTypes.element
40
- };
41
- Result.defaultProps = {
42
- icon: undefined,
43
- title: '',
44
- description: '',
45
- actions: null,
46
- extra: undefined
47
- };
48
- const Root = styled('div')`
49
- box-sizing: border-box;
50
- display: flex;
51
- flex-direction: column;
52
- justify-content: center;
53
- align-items: center;
54
- height: 100%;
55
- padding: 16px;
56
-
57
- background-color: #f7f8fb;
58
- `;
59
- export default Result;