antd-mobile 5.5.0 → 5.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (233) hide show
  1. package/2x/cjs/components/action-sheet/action-sheet.d.ts +5 -5
  2. package/2x/cjs/components/action-sheet/action-sheet.js +6 -46
  3. package/2x/cjs/components/action-sheet/index.d.ts +1 -1
  4. package/2x/cjs/components/badge/badge.js +1 -1
  5. package/2x/cjs/components/cascader-view/cascader-view.js +7 -0
  6. package/2x/cjs/components/checkbox/checkbox.js +4 -20
  7. package/2x/cjs/components/checkbox/native-input.d.ts +10 -0
  8. package/2x/cjs/components/checkbox/native-input.js +42 -0
  9. package/2x/cjs/components/dialog/index.d.ts +1 -1
  10. package/2x/cjs/components/dialog/show.d.ts +2 -4
  11. package/2x/cjs/components/dialog/show.js +9 -47
  12. package/2x/cjs/components/dot-loading/dot-loading.js +1 -2
  13. package/2x/cjs/components/empty/empty-icon.d.ts +3 -0
  14. package/2x/cjs/components/empty/empty-icon.js +37 -0
  15. package/2x/cjs/components/empty/empty.js +27 -15
  16. package/2x/cjs/components/error-block/error-block.css +1 -0
  17. package/2x/cjs/components/error-block/error-block.js +5 -8
  18. package/2x/cjs/components/error-block/images/busy.d.ts +1 -0
  19. package/2x/cjs/components/error-block/images/busy.js +102 -0
  20. package/2x/cjs/components/error-block/images/default.d.ts +1 -0
  21. package/2x/cjs/components/error-block/images/default.js +178 -0
  22. package/2x/cjs/components/error-block/images/disconnected.d.ts +1 -0
  23. package/2x/cjs/components/error-block/images/disconnected.js +135 -0
  24. package/2x/cjs/components/error-block/images/empty.d.ts +1 -0
  25. package/2x/cjs/components/error-block/images/empty.js +131 -0
  26. package/2x/cjs/components/error-block/images/index.d.ts +2 -0
  27. package/2x/cjs/components/error-block/images/index.js +22 -0
  28. package/2x/cjs/components/floating-bubble/floating-bubble.css +2 -1
  29. package/2x/cjs/components/floating-bubble/floating-bubble.d.ts +1 -1
  30. package/2x/cjs/components/form/form-item.d.ts +1 -1
  31. package/2x/cjs/components/form/form-item.js +4 -1
  32. package/2x/cjs/components/image-viewer/index.d.ts +1 -1
  33. package/2x/cjs/components/image-viewer/methods.d.ts +3 -7
  34. package/2x/cjs/components/image-viewer/methods.js +13 -79
  35. package/2x/cjs/components/modal/index.d.ts +1 -1
  36. package/2x/cjs/components/modal/show.d.ts +2 -4
  37. package/2x/cjs/components/modal/show.js +9 -47
  38. package/2x/cjs/components/popover/popover.css +1 -0
  39. package/2x/cjs/components/popover/popover.js +7 -6
  40. package/2x/cjs/components/popover/temp-floating-ui.min.d.ts +1 -0
  41. package/2x/cjs/components/popover/temp-floating-ui.min.js +1 -0
  42. package/2x/cjs/components/radio/radio.js +4 -20
  43. package/2x/cjs/components/search-bar/search-bar.d.ts +1 -1
  44. package/2x/cjs/components/tab-bar/tab-bar.d.ts +1 -1
  45. package/2x/cjs/components/tab-bar/tab-bar.js +1 -1
  46. package/2x/cjs/components/tree-select/tree-select.js +2 -2
  47. package/2x/cjs/utils/render-imperatively.d.ts +10 -0
  48. package/2x/cjs/utils/render-imperatively.js +68 -0
  49. package/2x/es/components/action-sheet/action-sheet.d.ts +5 -5
  50. package/2x/es/components/action-sheet/action-sheet.js +5 -41
  51. package/2x/es/components/action-sheet/index.d.ts +1 -1
  52. package/2x/es/components/badge/badge.js +1 -1
  53. package/2x/es/components/cascader-view/cascader-view.js +7 -0
  54. package/2x/es/components/checkbox/checkbox.js +4 -21
  55. package/2x/es/components/checkbox/native-input.d.ts +10 -0
  56. package/2x/es/components/checkbox/native-input.js +28 -0
  57. package/2x/es/components/dialog/index.d.ts +1 -1
  58. package/2x/es/components/dialog/show.d.ts +2 -4
  59. package/2x/es/components/dialog/show.js +8 -44
  60. package/2x/es/components/dot-loading/dot-loading.js +1 -2
  61. package/2x/es/components/empty/empty-icon.d.ts +3 -0
  62. package/2x/es/components/empty/empty-icon.js +24 -0
  63. package/2x/es/components/empty/empty.js +27 -14
  64. package/2x/es/components/error-block/error-block.css +1 -0
  65. package/2x/es/components/error-block/error-block.js +4 -6
  66. package/2x/es/components/error-block/images/busy.d.ts +1 -0
  67. package/2x/es/components/error-block/images/busy.js +90 -0
  68. package/2x/es/components/error-block/images/default.d.ts +1 -0
  69. package/2x/es/components/error-block/images/default.js +166 -0
  70. package/2x/es/components/error-block/images/disconnected.d.ts +1 -0
  71. package/2x/es/components/error-block/images/disconnected.js +123 -0
  72. package/2x/es/components/error-block/images/empty.d.ts +1 -0
  73. package/2x/es/components/error-block/images/empty.js +119 -0
  74. package/2x/es/components/error-block/images/index.d.ts +2 -0
  75. package/2x/es/components/error-block/images/index.js +10 -0
  76. package/2x/es/components/floating-bubble/floating-bubble.css +2 -1
  77. package/2x/es/components/floating-bubble/floating-bubble.d.ts +1 -1
  78. package/2x/es/components/form/form-item.d.ts +1 -1
  79. package/2x/es/components/form/form-item.js +4 -1
  80. package/2x/es/components/image-viewer/index.d.ts +1 -1
  81. package/2x/es/components/image-viewer/methods.d.ts +3 -7
  82. package/2x/es/components/image-viewer/methods.js +12 -75
  83. package/2x/es/components/modal/index.d.ts +1 -1
  84. package/2x/es/components/modal/show.d.ts +2 -4
  85. package/2x/es/components/modal/show.js +8 -44
  86. package/2x/es/components/popover/popover.css +1 -0
  87. package/2x/es/components/popover/popover.js +2 -1
  88. package/2x/es/components/popover/temp-floating-ui.min.d.ts +1 -0
  89. package/2x/es/components/popover/temp-floating-ui.min.js +1 -0
  90. package/2x/es/components/radio/radio.js +4 -21
  91. package/2x/es/components/search-bar/search-bar.d.ts +1 -1
  92. package/2x/es/components/tab-bar/tab-bar.d.ts +1 -1
  93. package/2x/es/components/tab-bar/tab-bar.js +1 -1
  94. package/2x/es/components/tree-select/tree-select.js +2 -2
  95. package/2x/es/utils/render-imperatively.d.ts +10 -0
  96. package/2x/es/utils/render-imperatively.js +53 -0
  97. package/2x/package.json +2 -3
  98. package/cjs/components/action-sheet/action-sheet.d.ts +5 -5
  99. package/cjs/components/action-sheet/action-sheet.js +6 -46
  100. package/cjs/components/action-sheet/index.d.ts +1 -1
  101. package/cjs/components/badge/badge.js +1 -1
  102. package/cjs/components/cascader-view/cascader-view.js +7 -0
  103. package/cjs/components/checkbox/checkbox.js +4 -20
  104. package/cjs/components/checkbox/native-input.d.ts +10 -0
  105. package/cjs/components/checkbox/native-input.js +42 -0
  106. package/cjs/components/dialog/index.d.ts +1 -1
  107. package/cjs/components/dialog/show.d.ts +2 -4
  108. package/cjs/components/dialog/show.js +9 -47
  109. package/cjs/components/dot-loading/dot-loading.js +1 -2
  110. package/cjs/components/empty/empty-icon.d.ts +3 -0
  111. package/cjs/components/empty/empty-icon.js +37 -0
  112. package/cjs/components/empty/empty.js +27 -15
  113. package/cjs/components/error-block/error-block.css +1 -0
  114. package/cjs/components/error-block/error-block.js +5 -8
  115. package/cjs/components/error-block/images/busy.d.ts +1 -0
  116. package/cjs/components/error-block/images/busy.js +102 -0
  117. package/cjs/components/error-block/images/default.d.ts +1 -0
  118. package/cjs/components/error-block/images/default.js +178 -0
  119. package/cjs/components/error-block/images/disconnected.d.ts +1 -0
  120. package/cjs/components/error-block/images/disconnected.js +135 -0
  121. package/cjs/components/error-block/images/empty.d.ts +1 -0
  122. package/cjs/components/error-block/images/empty.js +131 -0
  123. package/cjs/components/error-block/images/index.d.ts +2 -0
  124. package/cjs/components/error-block/images/index.js +22 -0
  125. package/cjs/components/floating-bubble/floating-bubble.css +2 -1
  126. package/cjs/components/floating-bubble/floating-bubble.d.ts +1 -1
  127. package/cjs/components/form/form-item.d.ts +1 -1
  128. package/cjs/components/form/form-item.js +4 -1
  129. package/cjs/components/image-viewer/index.d.ts +1 -1
  130. package/cjs/components/image-viewer/methods.d.ts +3 -7
  131. package/cjs/components/image-viewer/methods.js +13 -79
  132. package/cjs/components/modal/index.d.ts +1 -1
  133. package/cjs/components/modal/show.d.ts +2 -4
  134. package/cjs/components/modal/show.js +9 -47
  135. package/cjs/components/popover/popover.css +1 -0
  136. package/cjs/components/popover/popover.js +7 -6
  137. package/cjs/components/popover/temp-floating-ui.min.d.ts +1 -0
  138. package/cjs/components/popover/temp-floating-ui.min.js +1 -0
  139. package/cjs/components/radio/radio.js +4 -20
  140. package/cjs/components/search-bar/search-bar.d.ts +1 -1
  141. package/cjs/components/tab-bar/tab-bar.d.ts +1 -1
  142. package/cjs/components/tab-bar/tab-bar.js +1 -1
  143. package/cjs/components/tree-select/tree-select.js +2 -2
  144. package/cjs/utils/render-imperatively.d.ts +10 -0
  145. package/cjs/utils/render-imperatively.js +68 -0
  146. package/es/components/action-sheet/action-sheet.d.ts +5 -5
  147. package/es/components/action-sheet/action-sheet.js +5 -41
  148. package/es/components/action-sheet/index.d.ts +1 -1
  149. package/es/components/badge/badge.js +1 -1
  150. package/es/components/cascader-view/cascader-view.js +7 -0
  151. package/es/components/checkbox/checkbox.js +4 -21
  152. package/es/components/checkbox/native-input.d.ts +10 -0
  153. package/es/components/checkbox/native-input.js +28 -0
  154. package/es/components/dialog/index.d.ts +1 -1
  155. package/es/components/dialog/show.d.ts +2 -4
  156. package/es/components/dialog/show.js +8 -44
  157. package/es/components/dot-loading/dot-loading.js +1 -2
  158. package/es/components/empty/empty-icon.d.ts +3 -0
  159. package/es/components/empty/empty-icon.js +24 -0
  160. package/es/components/empty/empty.js +27 -14
  161. package/es/components/error-block/error-block.css +1 -0
  162. package/es/components/error-block/error-block.js +4 -6
  163. package/es/components/error-block/images/busy.d.ts +1 -0
  164. package/es/components/error-block/images/busy.js +90 -0
  165. package/es/components/error-block/images/default.d.ts +1 -0
  166. package/es/components/error-block/images/default.js +166 -0
  167. package/es/components/error-block/images/disconnected.d.ts +1 -0
  168. package/es/components/error-block/images/disconnected.js +123 -0
  169. package/es/components/error-block/images/empty.d.ts +1 -0
  170. package/es/components/error-block/images/empty.js +119 -0
  171. package/es/components/error-block/images/index.d.ts +2 -0
  172. package/es/components/error-block/images/index.js +10 -0
  173. package/es/components/floating-bubble/floating-bubble.css +2 -1
  174. package/es/components/floating-bubble/floating-bubble.d.ts +1 -1
  175. package/es/components/form/form-item.d.ts +1 -1
  176. package/es/components/form/form-item.js +4 -1
  177. package/es/components/image-viewer/index.d.ts +1 -1
  178. package/es/components/image-viewer/methods.d.ts +3 -7
  179. package/es/components/image-viewer/methods.js +12 -75
  180. package/es/components/modal/index.d.ts +1 -1
  181. package/es/components/modal/show.d.ts +2 -4
  182. package/es/components/modal/show.js +8 -44
  183. package/es/components/popover/popover.css +1 -0
  184. package/es/components/popover/popover.js +2 -1
  185. package/es/components/popover/temp-floating-ui.min.d.ts +1 -0
  186. package/es/components/popover/temp-floating-ui.min.js +1 -0
  187. package/es/components/radio/radio.js +4 -21
  188. package/es/components/search-bar/search-bar.d.ts +1 -1
  189. package/es/components/tab-bar/tab-bar.d.ts +1 -1
  190. package/es/components/tab-bar/tab-bar.js +1 -1
  191. package/es/components/tree-select/tree-select.js +2 -2
  192. package/es/utils/render-imperatively.d.ts +10 -0
  193. package/es/utils/render-imperatively.js +53 -0
  194. package/package.json +2 -3
  195. package/umd/antd-mobile.js +1 -1
  196. package/2x/assets/busy.svg +0 -42
  197. package/2x/assets/default.svg +0 -53
  198. package/2x/assets/disconnected.svg +0 -60
  199. package/2x/assets/empty-icon.svg +0 -18
  200. package/2x/assets/empty.svg +0 -52
  201. package/2x/cjs/assets/busy.svg +0 -42
  202. package/2x/cjs/assets/default.svg +0 -53
  203. package/2x/cjs/assets/disconnected.svg +0 -60
  204. package/2x/cjs/assets/empty-icon.svg +0 -18
  205. package/2x/cjs/assets/empty.svg +0 -52
  206. package/2x/cjs/components/error-block/error.d.ts +0 -1
  207. package/2x/cjs/components/error-block/error.js +0 -24
  208. package/2x/es/assets/busy.svg +0 -42
  209. package/2x/es/assets/default.svg +0 -53
  210. package/2x/es/assets/disconnected.svg +0 -60
  211. package/2x/es/assets/empty-icon.svg +0 -18
  212. package/2x/es/assets/empty.svg +0 -52
  213. package/2x/es/components/error-block/error.d.ts +0 -1
  214. package/2x/es/components/error-block/error.js +0 -10
  215. package/assets/busy.svg +0 -42
  216. package/assets/default.svg +0 -53
  217. package/assets/disconnected.svg +0 -60
  218. package/assets/empty-icon.svg +0 -18
  219. package/assets/empty.svg +0 -52
  220. package/cjs/assets/busy.svg +0 -42
  221. package/cjs/assets/default.svg +0 -53
  222. package/cjs/assets/disconnected.svg +0 -60
  223. package/cjs/assets/empty-icon.svg +0 -18
  224. package/cjs/assets/empty.svg +0 -52
  225. package/cjs/components/error-block/error.d.ts +0 -1
  226. package/cjs/components/error-block/error.js +0 -24
  227. package/es/assets/busy.svg +0 -42
  228. package/es/assets/default.svg +0 -53
  229. package/es/assets/disconnected.svg +0 -60
  230. package/es/assets/empty-icon.svg +0 -18
  231. package/es/assets/empty.svg +0 -52
  232. package/es/components/error-block/error.d.ts +0 -1
  233. package/es/components/error-block/error.js +0 -10
@@ -0,0 +1,28 @@
1
+ import React, { useEffect, useRef } from 'react';
2
+ export const NativeInput = props => {
3
+ const inputRef = useRef(null);
4
+ useEffect(() => {
5
+ if (props.disabled) return;
6
+ if (!inputRef.current) return;
7
+ const input = inputRef.current;
8
+
9
+ function handleClick(e) {
10
+ e.stopPropagation();
11
+ e.stopImmediatePropagation();
12
+ props.onChange(input.checked);
13
+ }
14
+
15
+ input.addEventListener('click', handleClick);
16
+ return () => {
17
+ input.removeEventListener('click', handleClick);
18
+ };
19
+ }, [props.disabled, props.onChange]);
20
+ return React.createElement("input", {
21
+ ref: inputRef,
22
+ type: 'checkbox',
23
+ checked: props.checked,
24
+ onChange: () => {},
25
+ disabled: props.disabled,
26
+ id: props.id
27
+ });
28
+ };
@@ -6,7 +6,7 @@ import { confirm } from './confirm';
6
6
  import { clear } from './clear';
7
7
  export type { DialogProps } from './dialog';
8
8
  export type { Action } from './dialog-action-button';
9
- export type { DialogShowProps, DialogShowRef } from './show';
9
+ export type { DialogShowProps, DialogShowHandler } from './show';
10
10
  export type { DialogAlertProps } from './alert';
11
11
  export type { DialogConfirmProps } from './confirm';
12
12
  declare const _default: import("react").FC<import("./dialog").DialogProps> & {
@@ -1,9 +1,7 @@
1
1
  import { DialogProps } from './dialog';
2
2
  export declare type DialogShowProps = Omit<DialogProps, 'visible'>;
3
- export declare type DialogShowRef = {
3
+ export declare type DialogShowHandler = {
4
4
  close: () => void;
5
5
  };
6
6
  export declare const closeFnSet: Set<() => void>;
7
- export declare function show(props: DialogShowProps): {
8
- close: () => void;
9
- };
7
+ export declare function show(props: DialogShowProps): DialogShowHandler;
@@ -1,52 +1,16 @@
1
- import React, { createRef, forwardRef, useEffect, useImperativeHandle, useState } from 'react';
2
- import { renderToBody } from '../../utils/render-to-body';
1
+ import React from 'react';
3
2
  import { Dialog } from './dialog';
3
+ import { renderImperatively } from '../../utils/render-imperatively';
4
4
  export const closeFnSet = new Set();
5
5
  export function show(props) {
6
- const Wrapper = forwardRef((_, ref) => {
7
- const [visible, setVisible] = useState(false);
8
- useEffect(() => {
9
- setVisible(true);
10
- }, []);
11
-
12
- function handleClose() {
13
- var _a;
14
-
15
- (_a = props.onClose) === null || _a === void 0 ? void 0 : _a.call(props);
16
- setVisible(false);
17
- }
18
-
19
- useImperativeHandle(ref, () => ({
20
- close: handleClose
21
- }));
22
-
23
- function handleAfterClose() {
6
+ const handler = renderImperatively(React.createElement(Dialog, Object.assign({}, props, {
7
+ afterClose: () => {
24
8
  var _a;
25
9
 
10
+ closeFnSet.delete(handler.close);
26
11
  (_a = props.afterClose) === null || _a === void 0 ? void 0 : _a.call(props);
27
- unmount();
28
- closeFnSet.delete(close);
29
12
  }
30
-
31
- return React.createElement(Dialog, Object.assign({}, props, {
32
- visible: visible,
33
- onClose: handleClose,
34
- afterClose: handleAfterClose
35
- }));
36
- });
37
- const ref = createRef();
38
- const unmount = renderToBody(React.createElement(Wrapper, {
39
- ref: ref
40
- }));
41
-
42
- const close = () => {
43
- var _a;
44
-
45
- (_a = ref.current) === null || _a === void 0 ? void 0 : _a.close();
46
- };
47
-
48
- closeFnSet.add(close);
49
- return {
50
- close
51
- };
13
+ })));
14
+ closeFnSet.add(handler.close);
15
+ return handler;
52
16
  }
@@ -53,7 +53,6 @@ export const DotLoading = memo(p => {
53
53
  begin: `${i * 0.2}s`,
54
54
  repeatCount: 'indefinite',
55
55
  values: '16; 6; 26; 16; 16',
56
- keyTimes: '0; 0.1; 0.3; 0.4; 1',
57
- id: 'circ-anim'
56
+ keyTimes: '0; 0.1; 0.3; 0.4; 1'
58
57
  }))))))))));
59
58
  });
@@ -0,0 +1,3 @@
1
+ import { FC } from 'react';
2
+ import { NativeProps } from '../../utils/native-props';
3
+ export declare const EmptyIcon: FC<NativeProps>;
@@ -0,0 +1,24 @@
1
+ import React from 'react';
2
+ import { withNativeProps } from '../../utils/native-props';
3
+ export const EmptyIcon = props => {
4
+ return withNativeProps(props, React.createElement("svg", {
5
+ viewBox: '0 0 64 41'
6
+ }, React.createElement("g", {
7
+ transform: 'translate(0 1)',
8
+ fill: 'none',
9
+ fillRule: 'evenodd'
10
+ }, React.createElement("ellipse", {
11
+ fill: '#f5f5f5',
12
+ cx: '32',
13
+ cy: '33',
14
+ rx: '32',
15
+ ry: '7'
16
+ }), React.createElement("g", {
17
+ stroke: '#d9d9d9'
18
+ }, React.createElement("path", {
19
+ d: 'M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z'
20
+ }), React.createElement("path", {
21
+ d: 'M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z',
22
+ fill: '#fafafa'
23
+ })))));
24
+ };
@@ -1,25 +1,38 @@
1
1
  import React from 'react';
2
2
  import classNames from 'classnames';
3
- import { mergeProps } from '../../utils/with-default-props';
4
3
  import { withNativeProps } from '../../utils/native-props';
5
- import EmptyIcon from '../../assets/empty-icon.svg';
4
+ import { EmptyIcon } from './empty-icon';
6
5
  const classPrefix = `adm-empty`;
7
- const defaultProps = {
8
- image: EmptyIcon
9
- };
10
- export const Empty = p => {
11
- const props = mergeProps(defaultProps, p);
12
- const imageNode = typeof props.image === 'string' ? React.createElement("img", {
13
- className: `${classPrefix}-image`,
14
- style: props.imageStyle,
15
- src: props.image,
16
- alt: 'empty'
17
- }) : props.image;
6
+ export const Empty = props => {
7
+ function renderImageNode() {
8
+ const {
9
+ image
10
+ } = props;
11
+
12
+ if (image === undefined) {
13
+ return React.createElement(EmptyIcon, {
14
+ className: `${classPrefix}-image`,
15
+ style: props.imageStyle
16
+ });
17
+ }
18
+
19
+ if (typeof image === 'string') {
20
+ return React.createElement("img", {
21
+ className: `${classPrefix}-image`,
22
+ style: props.imageStyle,
23
+ src: image,
24
+ alt: 'empty'
25
+ });
26
+ }
27
+
28
+ return image;
29
+ }
30
+
18
31
  return withNativeProps(props, React.createElement("div", {
19
32
  className: classPrefix
20
33
  }, React.createElement("div", {
21
34
  className: `${classPrefix}-image-container`
22
- }, imageNode), props.description && React.createElement("div", {
35
+ }, renderImageNode()), props.description && React.createElement("div", {
23
36
  className: classNames(`${classPrefix}-description`)
24
37
  }, props.description)));
25
38
  };
@@ -14,6 +14,7 @@
14
14
  max-width: 100%;
15
15
  }
16
16
 
17
+ .adm-error-block-image svg,
17
18
  .adm-error-block-image img {
18
19
  height: 100%;
19
20
  }
@@ -1,30 +1,28 @@
1
1
  import React from 'react';
2
2
  import classNames from 'classnames';
3
- import { iconRecord } from './error';
4
3
  import { mergeProps } from '../../utils/with-default-props';
5
4
  import { withNativeProps } from '../../utils/native-props';
6
5
  import { useConfig } from '../config-provider';
6
+ import { imageRecord } from './images';
7
7
  const classPrefix = `adm-error-block`;
8
8
  const defaultProps = {
9
9
  status: 'default'
10
10
  };
11
11
  export const ErrorBlock = p => {
12
12
  const props = mergeProps(defaultProps, p);
13
- const icon = iconRecord[props.status];
14
13
  const {
15
14
  locale
16
15
  } = useConfig();
17
16
  const contentPack = locale.ErrorBlock[props.status];
18
17
  const des = 'description' in props ? props.description : contentPack.description;
19
18
  const title = 'title' in props ? props.title : contentPack.title;
20
- let imageNode = React.createElement("img", {
21
- src: icon
22
- });
19
+ let imageNode = imageRecord[props.status];
23
20
 
24
21
  if (props.image) {
25
22
  if (typeof props.image === 'string') {
26
23
  imageNode = React.createElement("img", {
27
- src: props.image
24
+ src: props.image,
25
+ alt: 'error block image'
28
26
  });
29
27
  } else {
30
28
  imageNode = props.image;
@@ -0,0 +1 @@
1
+ export declare const busyImage: JSX.Element;
@@ -0,0 +1,90 @@
1
+ import React from 'react';
2
+ export const busyImage = React.createElement("svg", {
3
+ viewBox: '0 0 400 400',
4
+ xmlns: 'http://www.w3.org/2000/svg',
5
+ xmlnsXlink: 'http://www.w3.org/1999/xlink'
6
+ }, React.createElement("defs", null, React.createElement("linearGradient", {
7
+ x1: '50%',
8
+ y1: '-116.862%',
9
+ x2: '50%',
10
+ y2: '90.764%',
11
+ id: 'error-block-image-busy-a'
12
+ }, React.createElement("stop", {
13
+ stopColor: '#72A7FD',
14
+ stopOpacity: 0.207,
15
+ offset: '0%'
16
+ }), React.createElement("stop", {
17
+ stopColor: '#72A7FD',
18
+ stopOpacity: 0.115,
19
+ offset: '80.072%'
20
+ }), React.createElement("stop", {
21
+ stopColor: '#72A7FD',
22
+ stopOpacity: 0,
23
+ offset: '100%'
24
+ })), React.createElement("circle", {
25
+ id: 'error-block-image-busy-b',
26
+ cx: 34.857,
27
+ cy: 34.857,
28
+ r: 34.857
29
+ })), React.createElement("g", {
30
+ fill: 'none',
31
+ fillRule: 'evenodd'
32
+ }, React.createElement("path", {
33
+ d: 'M157.964 243.667H0L3.806 99.134a4.572 4.572 0 0 1 4.353-4.446l.217-.005h45.588V67.205a4.572 4.572 0 0 1 4.356-4.566l.216-.005 65.498-.001 2.554-58.688a4.571 4.571 0 0 1 4.779-4.368l.214.015 87.79 8.222a4.572 4.572 0 0 1 4.126 4.133l.015.213 3.146 69.652 74.976-17.906a4.571 4.571 0 0 1 5.628 4.23l.005.216v43.955h56.162v130.265l-56.163-.001v.002h-82.383v-.004h-66.919v1.098Zm-68.461-84.631h-9.968v8.435h9.968v-8.435Zm0-14.508h-9.968v8.436h9.968v-8.436Zm197.985-5.149h-9.967v8.432h9.967v-8.432Zm-197.985-8.806h-9.968v8.436h9.968v-8.436Zm197.985-5.153h-9.967v8.432h9.967v-8.432Zm0-14.503h-9.967v8.432h9.967v-8.432Zm-84.643-.777h-30.8v8.436h30.8v-8.436Zm84.643-13.186h-9.967v8.435h9.967v-8.435Zm-84.643-3.29h-30.8v8.435h30.8v-8.435Zm0-15.912h-30.8v8.436h30.8v-8.436Z',
34
+ transform: 'translate(18.286 51.286)',
35
+ fill: 'url(#error-block-image-busy-a)'
36
+ }), React.createElement("path", {
37
+ d: 'm250.934 176.555-101.963 1.038c-5.276.054-9.51 4.374-9.455 9.65.054 5.274 4.374 9.507 9.649 9.454l.958-.01c-.376 7.363 3.679 59.93 34.894 62.659 4.203.367 7.432.39 7.475 4.609.042 4.218-3.176 4.307-7.37 4.76-34.593 3.737-34.136 56.004-33.61 63.357l-.957.01c-5.276.053-9.51 4.373-9.455 9.649.053 5.275 4.374 9.508 9.649 9.454l101.963-1.039c5.275-.054 9.508-4.374 9.455-9.648-.055-5.276-4.374-9.51-9.65-9.455l-.958.01c.377-7.363-.729-59.672-34.894-62.66-4.202-.367-7.432-.39-7.474-4.608-.043-4.219 3.175-4.308 7.369-4.76 31.276-3.377 34.136-56.004 33.61-63.357l.958-.01c5.276-.053 9.508-4.373 9.455-9.649-.055-5.276-4.374-9.509-9.65-9.454Z',
38
+ fill: '#377EFF'
39
+ }), React.createElement("path", {
40
+ d: 'M233.524 314.422c.108.684.772 1.148 1.483 1.035.711-.112 1.2-.758 1.091-1.443-.108-.684-.772-1.147-1.483-1.035-.711.113-1.2.759-1.091 1.443Zm-.894-5.644c.108.684.772 1.148 1.483 1.035.711-.112 1.2-.758 1.091-1.443-.108-.684-.772-1.147-1.483-1.035-.711.113-1.2.759-1.091 1.443Zm-.149 17.865c.108.684.773 1.147 1.483 1.035.711-.113 1.2-.759 1.091-1.443-.108-.684-.772-1.148-1.483-1.035-.71.112-1.2.758-1.09 1.443Zm-2.144-8.182c.109.684.773 1.148 1.484 1.035.71-.113 1.199-.759 1.09-1.443-.108-.684-.772-1.148-1.483-1.035-.71.113-1.2.759-1.09 1.443Zm-1.586-4.694c.108.684.772 1.148 1.483 1.035.711-.113 1.2-.759 1.091-1.443-.108-.684-.772-1.147-1.483-1.035-.711.113-1.2.759-1.091 1.443Zm-1.013-5.88c.109.685.773 1.148 1.484 1.036.71-.113 1.2-.759 1.09-1.443-.107-.684-.772-1.148-1.483-1.035-.71.113-1.199.759-1.09 1.443Zm.236 15.575c.108.685.772 1.148 1.483 1.035.71-.112 1.2-.758 1.09-1.442-.107-.685-.772-1.148-1.483-1.035-.71.112-1.199.758-1.09 1.442Zm-.4 4.494c.108.684.772 1.147 1.483 1.035.71-.113 1.2-.759 1.091-1.443-.108-.684-.773-1.148-1.483-1.035-.711.113-1.2.759-1.091 1.443Zm-3.88-8.601c.108.684.772 1.147 1.483 1.035.71-.113 1.199-.759 1.09-1.443-.108-.684-.772-1.148-1.483-1.035-.71.113-1.2.759-1.09 1.443Zm-.524-7.186c.065.41.463.688.89.62.426-.067.72-.454.654-.865-.065-.41-.463-.688-.89-.62-.426.067-.72.454-.654.865Zm-2.265-4.102c.109.684.773 1.148 1.484 1.035.71-.113 1.2-.759 1.09-1.443-.108-.684-.772-1.147-1.483-1.035-.71.113-1.199.759-1.09 1.443Zm-.545-6.518c.065.41.464.689.89.621.427-.067.72-.455.655-.865-.065-.41-.464-.689-.89-.621-.427.067-.72.455-.655.865Zm2.098 23.629c.109.684.773 1.147 1.484 1.035.71-.113 1.2-.759 1.09-1.443-.108-.684-.772-1.148-1.483-1.035-.71.112-1.199.758-1.09 1.443Zm-.756-9.65c.043.274.309.46.593.414a.512.512 0 0 0 .437-.577.512.512 0 0 0-.594-.414.512.512 0 0 0-.436.577Zm-.808 20.96c.109.684.773 1.147 1.484 1.034.71-.112 1.2-.758 1.09-1.442-.108-.685-.772-1.148-1.483-1.036-.71.113-1.199.759-1.09 1.443Zm-4.691-31.966c.065.41.463.689.89.621.426-.068.72-.455.654-.866-.065-.41-.463-.688-.89-.62-.426.067-.72.454-.654.865Zm2.098 23.628c.108.684.772 1.148 1.483 1.035.711-.112 1.2-.758 1.091-1.443-.108-.684-.772-1.147-1.483-1.035-.711.113-1.2.759-1.091 1.443Zm-1.967-12.416c.109.684.773 1.147 1.484 1.035.71-.113 1.199-.759 1.09-1.443-.108-.684-.772-1.148-1.483-1.035-.71.112-1.2.758-1.09 1.443Zm1.073 6.772c.108.685.772 1.148 1.483 1.035.711-.112 1.2-.758 1.091-1.442-.108-.685-.772-1.148-1.483-1.036-.711.113-1.2.759-1.091 1.443Zm-.009-3.131c.065.41.464.689.89.621.427-.068.72-.455.655-.866-.065-.41-.464-.688-.89-.62-.427.067-.72.454-.655.865Zm-1.43-9.03c.065.41.463.688.89.62.426-.067.72-.454.655-.865-.065-.41-.464-.689-.89-.62-.427.067-.72.454-.655.865ZM214.5 333.38c.108.685.772 1.148 1.483 1.036.711-.113 1.2-.759 1.091-1.443-.108-.684-.772-1.148-1.483-1.035-.711.112-1.2.758-1.091 1.442Zm-.156-7.178c.065.41.464.689.89.621.427-.067.72-.455.655-.865-.065-.41-.464-.689-.89-.621-.427.067-.72.455-.655.865Zm-1.871-4.72c.108.684.773 1.147 1.483 1.034.711-.112 1.2-.758 1.091-1.442-.108-.685-.772-1.148-1.483-1.035-.71.112-1.2.758-1.091 1.442Zm-1.614-6.857c.065.41.464.689.89.621.427-.068.72-.455.655-.866-.065-.41-.464-.688-.89-.62-.427.067-.72.454-.655.865Zm-.894-5.644c.065.41.464.689.89.621.427-.067.72-.455.655-.866-.065-.41-.463-.688-.89-.62-.427.067-.72.455-.655.865Zm-1.43-9.03c.065.41.464.688.89.62.427-.067.72-.454.655-.865-.065-.41-.464-.688-.89-.62-.427.067-.72.454-.655.865Zm-1.958 14.225c.065.41.463.689.89.62.426-.067.72-.454.654-.865-.065-.41-.463-.688-.89-.62-.426.067-.72.454-.654.865Zm-.703 12.81c.065.41.464.688.89.62.427-.067.72-.455.655-.865-.065-.41-.463-.689-.89-.621-.427.067-.72.455-.655.866Zm-4.543-22.536c.065.41.463.689.89.621.426-.067.72-.455.654-.865-.065-.41-.463-.689-.89-.621-.426.067-.72.455-.654.865Zm2.806 30.138c.065.41.463.689.89.621.426-.067.72-.455.654-.865-.065-.41-.463-.689-.89-.621-.426.067-.72.455-.654.865Zm-5.694-17.996c.065.41.463.688.89.62.426-.067.72-.455.654-.865-.065-.41-.463-.689-.89-.621-.426.067-.72.455-.654.866Zm-2.935-13.343c.066.41.464.688.89.62.427-.067.72-.454.655-.865-.065-.41-.463-.689-.89-.621-.426.068-.72.455-.655.866Z',
41
+ fill: '#003CFF',
42
+ fillRule: 'nonzero'
43
+ }), React.createElement("path", {
44
+ d: 'm250.934 176.555-101.963 1.038c-5.276.054-9.51 4.374-9.455 9.65.054 5.274 4.374 9.507 9.649 9.454l101.963-1.04c5.276-.052 9.508-4.372 9.455-9.648-.055-5.276-4.374-9.509-9.65-9.454ZM252.64 331.241l-101.964 1.038c-5.275.054-9.508 4.374-9.454 9.65.054 5.275 4.374 9.508 9.649 9.454l101.963-1.039c5.275-.053 9.507-4.373 9.454-9.649-.054-5.275-4.374-9.508-9.649-9.454Z',
45
+ fill: '#7EACFF'
46
+ }), React.createElement("path", {
47
+ stroke: '#003CFF',
48
+ strokeWidth: 0.75,
49
+ strokeLinecap: 'round',
50
+ strokeLinejoin: 'round',
51
+ d: 'm196.824 197.298 52.216-.506M193.329 330.5h52.215'
52
+ }), React.createElement("path", {
53
+ d: 'M167.367 228.041c-4.091-10.787-6.086-20.934-5.985-30.44',
54
+ stroke: '#FFF',
55
+ strokeWidth: 0.75,
56
+ strokeLinecap: 'round',
57
+ strokeLinejoin: 'round'
58
+ }), React.createElement("circle", {
59
+ cx: 14.857,
60
+ cy: 14.857,
61
+ r: 14.857,
62
+ transform: 'translate(106.857 248.571)',
63
+ fill: '#FFCD6B',
64
+ fillRule: 'nonzero'
65
+ }), React.createElement("g", {
66
+ transform: 'translate(236.571 284.571)'
67
+ }, React.createElement("mask", {
68
+ id: 'error-block-image-busy-c',
69
+ fill: '#fff'
70
+ }, React.createElement("use", {
71
+ xlinkHref: '#error-block-image-busy-b'
72
+ })), React.createElement("use", {
73
+ fill: '#FBBE47',
74
+ fillRule: 'nonzero',
75
+ xlinkHref: '#error-block-image-busy-b'
76
+ }), React.createElement("circle", {
77
+ fill: '#FFCD6B',
78
+ fillRule: 'nonzero',
79
+ mask: 'url(#error-block-image-busy-c)',
80
+ cx: 25.714,
81
+ cy: 28,
82
+ r: 34.857
83
+ }), React.createElement("circle", {
84
+ fill: '#FFF',
85
+ fillRule: 'nonzero',
86
+ mask: 'url(#error-block-image-busy-c)',
87
+ cx: 22.286,
88
+ cy: 18.857,
89
+ r: 3.429
90
+ }))));
@@ -0,0 +1 @@
1
+ export declare const defaultImage: JSX.Element;
@@ -0,0 +1,166 @@
1
+ import React from 'react';
2
+ export const defaultImage = React.createElement("svg", {
3
+ viewBox: '0 0 200 200',
4
+ xmlns: 'http://www.w3.org/2000/svg',
5
+ xmlnsXlink: 'http://www.w3.org/1999/xlink'
6
+ }, React.createElement("defs", null, React.createElement("linearGradient", {
7
+ x1: '50%',
8
+ y1: '-116.862%',
9
+ x2: '50%',
10
+ y2: '90.764%',
11
+ id: 'error-block-image-default-a'
12
+ }, React.createElement("stop", {
13
+ stopColor: '#72A7FD',
14
+ stopOpacity: 0.207,
15
+ offset: '0%'
16
+ }), React.createElement("stop", {
17
+ stopColor: '#72A7FD',
18
+ stopOpacity: 0.115,
19
+ offset: '80.072%'
20
+ }), React.createElement("stop", {
21
+ stopColor: '#72A7FD',
22
+ stopOpacity: 0,
23
+ offset: '100%'
24
+ })), React.createElement("circle", {
25
+ id: 'error-block-image-default-d',
26
+ cx: 18.823,
27
+ cy: 18.823,
28
+ r: 18.823
29
+ }), React.createElement("rect", {
30
+ id: 'error-block-image-default-b',
31
+ x: 3.5,
32
+ y: 9,
33
+ width: 51.429,
34
+ height: 88,
35
+ rx: 4.571
36
+ })), React.createElement("g", {
37
+ fill: 'none',
38
+ fillRule: 'evenodd'
39
+ }, React.createElement("path", {
40
+ d: 'M73.557.004c19.435-.311 38.696 17.016 51.523 35.287 8.708-10.822 17.127-16.233 25.255-16.233 13.333 0 28.35 14.274 45.053 42.822 1.769 3.024-3.582 7.435-16.054 13.231l-41.322 1.37c-7.343 5.872-31.225.626-69.152 1.234-27.79.445-45.759-1.234-53.908-5.037C3.2 71.143-1.625 68.686.48 65.308 27.371 22.12 51.73.353 73.557.003Zm93.098 49.53a1.125 1.125 0 0 0-.401.072l-.058.023-.07.03-.028.014-.02.01c-.03.015-.059.032-.088.049a2.543 2.543 0 0 0-.568.477l-.067.074c-1.686 1.931-2.904 7.062-2.904 8.985 0 2.283 1.719 4.153 3.898 4.314l.026.001v3.805c0 .39.25.705.56.705.31 0 .56-.316.56-.705l.001-3.88c1.92-.402 3.363-2.148 3.363-4.24 0-2.39-1.882-9.734-4.204-9.734Zm-100-5a1.125 1.125 0 0 0-.331.05l-.035.01-.035.012-.058.023-.07.03-.028.014-.02.01c-.03.015-.059.032-.088.049a2.543 2.543 0 0 0-.568.477l-.067.074c-1.686 1.931-2.904 7.062-2.904 8.985 0 2.212 1.613 4.036 3.695 4.294l.203.02.026.001v3.805c0 .39.25.705.56.705.282 0 .515-.26.555-.6l.006-.105v-3.88c1.92-.402 3.363-2.148 3.363-4.24 0-2.39-1.882-9.734-4.204-9.734ZM52.64 38.348l-.15.008-.149.023-.032.007-.032.008-.078.022-.045.015-.045.016-.06.023-.038.017-.038.017-.058.028-.022.011a2.201 2.201 0 0 0-.323.204l-.05.038-.05.04-.025.02-.025.021a3.742 3.742 0 0 0-.31.294l-.036.04c-.035.037-.07.076-.105.116-.01.012-.02.025-.031.036a3.275 3.275 0 0 0-.081.098l-.063.078c-2.031 2.583-3.48 8.692-3.48 11.027 0 2.636 1.846 4.832 4.292 5.323l.224.04-.064-.012.105.018.103.014v4.618c0 .47.299.85.667.85.337 0 .615-.32.659-.735l.006-.115v-4.618c.18-.023.355-.054.527-.094l.256-.067.196-.06c2.136-.706 3.68-2.75 3.68-5.162 0-2.996-2.383-12.207-5.325-12.207Z',
41
+ transform: 'translate(2.286 22.286)',
42
+ fill: 'url(#error-block-image-default-a)'
43
+ }), React.createElement("g", {
44
+ transform: 'rotate(-90 102.429 55.357)'
45
+ }, React.createElement("path", {
46
+ d: 'M6.857 0H52a6.857 6.857 0 0 1 6.857 6.857v92A6.857 6.857 0 0 1 52 105.714H6.857A6.857 6.857 0 0 1 0 98.857v-92A6.857 6.857 0 0 1 6.857 0Z',
47
+ fill: '#7EACFF'
48
+ }), React.createElement("mask", {
49
+ id: 'error-block-image-default-c',
50
+ fill: '#fff'
51
+ }, React.createElement("use", {
52
+ xlinkHref: '#error-block-image-default-b'
53
+ })), React.createElement("use", {
54
+ fill: '#377EFF',
55
+ xlinkHref: '#error-block-image-default-b'
56
+ }), React.createElement("path", {
57
+ d: 'M11.838 91.8a.64.64 0 0 1 .627.652.64.64 0 0 1-.627.652.64.64 0 0 1-.628-.652c0-.36.281-.651.628-.651Zm-2.858 0a.64.64 0 0 1 .628.652.64.64 0 0 1-.628.652.64.64 0 0 1-.627-.652c0-.36.281-.651.627-.651Zm2.16-2.305a.64.64 0 0 1 .628.652.64.64 0 0 1-.627.651.64.64 0 0 1-.627-.651c0-.36.28-.652.627-.652Zm-2.982-.04a.64.64 0 0 1 .627.651.64.64 0 0 1-.627.652.64.64 0 0 1-.627-.652c0-.36.28-.651.627-.651Zm5.268-.531a.64.64 0 0 1 .628.651.64.64 0 0 1-.628.652.64.64 0 0 1-.627-.652c0-.36.281-.651.627-.651Zm2.858-1.143a.64.64 0 0 1 .627.651.64.64 0 0 1-.627.652.64.64 0 0 1-.628-.652c0-.36.281-.651.628-.651Zm-6.37-.917c.209 0 .377.175.377.39a.384.384 0 0 1-.376.392.384.384 0 0 1-.376-.391c0-.216.168-.391.376-.391Zm3.512-.798.093.007a.644.644 0 0 1 .535.645.64.64 0 0 1-.628.652.64.64 0 0 1-.627-.652c0-.36.281-.652.627-.652Zm5.715 0a.64.64 0 0 1 .627.652.64.64 0 0 1-.627.652.64.64 0 0 1-.627-.652c0-.36.28-.652.627-.652Zm-11.429 0a.64.64 0 0 1 .627.652.64.64 0 0 1-.627.652.64.64 0 0 1-.627-.652c0-.36.28-.652.627-.652Zm-3.261.241c.208 0 .376.175.376.39a.384.384 0 0 1-.376.392.384.384 0 0 1-.377-.391c0-.216.169-.391.377-.391Zm11.833-.812a.64.64 0 0 1 .627.652.64.64 0 0 1-.627.651.64.64 0 0 1-.628-.651c0-.36.281-.652.628-.652Zm-4.851.399c.208 0 .376.175.376.39a.384.384 0 0 1-.376.392.384.384 0 0 1-.377-.391c0-.216.169-.391.377-.391Zm10.313-2.056a.64.64 0 0 1 .628.652.64.64 0 0 1-.628.651.64.64 0 0 1-.627-.651c0-.36.281-.652.627-.652Zm-2.354-.128a.64.64 0 0 1 .627.652.64.64 0 0 1-.627.652.64.64 0 0 1-.628-.652c0-.36.281-.652.628-.652Zm-13.798.311c.207 0 .376.175.376.391a.384.384 0 0 1-.376.391.384.384 0 0 1-.377-.39c0-.217.169-.392.377-.392Zm11.832-.812a.64.64 0 0 1 .628.652.64.64 0 0 1-.628.651.64.64 0 0 1-.627-.651c0-.36.281-.652.627-.652Zm-6.285 0a.64.64 0 0 1 .627.652.64.64 0 0 1-.627.651.64.64 0 0 1-.627-.651c0-.36.28-.652.627-.652Zm3.428 0a.64.64 0 0 1 .627.652.64.64 0 0 1-.627.651.64.64 0 0 1-.627-.651c0-.36.28-.652.627-.652Zm-6.118.24c.208 0 .376.176.376.392a.384.384 0 0 1-.376.39.384.384 0 0 1-.377-.39c0-.216.169-.391.377-.391Zm11.261-2.525a.64.64 0 0 1 .627.651.64.64 0 0 1-.627.652.64.64 0 0 1-.627-.652c0-.36.28-.651.627-.651Zm-3.557.484c.208 0 .376.175.376.391a.384.384 0 0 1-.376.391.384.384 0 0 1-.376-.391c0-.216.168-.391.376-.391Zm-2.478-.555a.64.64 0 0 1 .627.652.64.64 0 0 1-.627.652.64.64 0 0 1-.627-.652c0-.36.28-.652.627-.652Zm-3.512-.26c.208 0 .376.175.376.39a.384.384 0 0 1-.376.392.384.384 0 0 1-.376-.391c0-.216.168-.391.376-.391Zm-2.857 0c.208 0 .376.175.376.39a.384.384 0 0 1-.376.392.384.384 0 0 1-.376-.391c0-.216.168-.391.376-.391Zm-4.571 0c.207 0 .376.175.376.39a.384.384 0 0 1-.376.392.384.384 0 0 1-.377-.391c0-.216.169-.391.377-.391Zm14.898-1.835a.64.64 0 0 1 .628.652.64.64 0 0 1-.628.651.64.64 0 0 1-.627-.651c0-.36.281-.652.627-.652Zm-8.027-.245c.208 0 .377.175.377.39a.384.384 0 0 1-.377.392.384.384 0 0 1-.376-.391c0-.216.169-.391.376-.391Zm6.271-1.349c.208 0 .377.175.377.391a.384.384 0 0 1-.377.391.384.384 0 0 1-.376-.39c0-.217.169-.392.376-.392Zm-11.484-.481c.208 0 .376.175.376.39a.384.384 0 0 1-.376.392.384.384 0 0 1-.376-.391c0-.216.168-.391.376-.391Zm15.103-.972c.208 0 .376.175.376.391a.384.384 0 0 1-.376.391.384.384 0 0 1-.376-.39c0-.217.168-.392.376-.392Zm-9.333-1.404c.208 0 .376.175.376.39a.384.384 0 0 1-.376.392.384.384 0 0 1-.376-.391c0-.216.168-.391.376-.391Zm-6.819-.405c.208 0 .377.175.377.39a.384.384 0 0 1-.377.392.384.384 0 0 1-.376-.391c0-.216.168-.391.376-.391Z',
58
+ fill: '#003CFF',
59
+ fillRule: 'nonzero',
60
+ mask: 'url(#error-block-image-default-c)',
61
+ transform: 'rotate(116 12.367 83.503)'
62
+ }), React.createElement("path", {
63
+ stroke: '#FFF',
64
+ strokeWidth: 0.75,
65
+ strokeLinecap: 'round',
66
+ strokeLinejoin: 'round',
67
+ d: 'M36.774 5.474H21.523'
68
+ }), React.createElement("path", {
69
+ d: 'm67.818 94.025-4.996 3.913m4.996 11.91-4.996-3.912m-1.142 9.145-1.143-6.288m10.71-6.768h-7.262',
70
+ stroke: '#4486FE',
71
+ strokeWidth: 0.75,
72
+ strokeLinecap: 'round',
73
+ strokeLinejoin: 'round'
74
+ })), React.createElement("circle", {
75
+ cx: 8.571,
76
+ cy: 8.571,
77
+ r: 8.571,
78
+ transform: 'translate(22.857 142)',
79
+ fill: '#FFCD6B',
80
+ fillRule: 'nonzero'
81
+ }), React.createElement("g", {
82
+ transform: 'translate(132.857 124)'
83
+ }, React.createElement("mask", {
84
+ id: 'error-block-image-default-e',
85
+ fill: '#fff'
86
+ }, React.createElement("use", {
87
+ xlinkHref: '#error-block-image-default-d'
88
+ })), React.createElement("use", {
89
+ fill: '#FBBE47',
90
+ fillRule: 'nonzero',
91
+ xlinkHref: '#error-block-image-default-d'
92
+ }), React.createElement("circle", {
93
+ fill: '#FFCD6B',
94
+ fillRule: 'nonzero',
95
+ mask: 'url(#error-block-image-default-e)',
96
+ cx: 13.886,
97
+ cy: 15.12,
98
+ r: 18.823
99
+ }), React.createElement("circle", {
100
+ fill: '#FFB400',
101
+ fillRule: 'nonzero',
102
+ mask: 'url(#error-block-image-default-e)',
103
+ cx: 23.4,
104
+ cy: 29.057,
105
+ r: 1
106
+ }), React.createElement("circle", {
107
+ fill: '#FFB400',
108
+ fillRule: 'nonzero',
109
+ mask: 'url(#error-block-image-default-e)',
110
+ cx: 30.343,
111
+ cy: 29.829,
112
+ r: 1
113
+ }), React.createElement("circle", {
114
+ fill: '#FFB400',
115
+ fillRule: 'nonzero',
116
+ mask: 'url(#error-block-image-default-e)',
117
+ cx: 18.771,
118
+ cy: 32.657,
119
+ r: 1.286
120
+ }), React.createElement("circle", {
121
+ fill: '#FFB400',
122
+ fillRule: 'nonzero',
123
+ mask: 'url(#error-block-image-default-e)',
124
+ cx: 29.571,
125
+ cy: 25.971,
126
+ r: 1.286
127
+ }), React.createElement("circle", {
128
+ fill: '#FFB400',
129
+ fillRule: 'nonzero',
130
+ mask: 'url(#error-block-image-default-e)',
131
+ cx: 19.286,
132
+ cy: 7.971,
133
+ r: 1.286
134
+ }), React.createElement("circle", {
135
+ fill: '#FFB400',
136
+ fillRule: 'nonzero',
137
+ mask: 'url(#error-block-image-default-e)',
138
+ cx: 26.486,
139
+ cy: 5.914,
140
+ r: 1.286
141
+ }), React.createElement("circle", {
142
+ fill: '#FFB400',
143
+ fillRule: 'nonzero',
144
+ mask: 'url(#error-block-image-default-e)',
145
+ cx: 11.057,
146
+ cy: 6.943,
147
+ r: 1
148
+ }), React.createElement("circle", {
149
+ fill: '#FFB400',
150
+ fillRule: 'nonzero',
151
+ mask: 'url(#error-block-image-default-e)',
152
+ cx: 30.086,
153
+ cy: 15.686,
154
+ r: 1.286
155
+ }), React.createElement("circle", {
156
+ fill: '#FFB400',
157
+ fillRule: 'nonzero',
158
+ mask: 'url(#error-block-image-default-e)',
159
+ cx: 22.886,
160
+ cy: 14.657,
161
+ r: 1
162
+ })), React.createElement("path", {
163
+ d: 'm87.429 135.123 6.591-9.378v-.08h-5.99v-2.559h10.038v1.787l-6.44 9.254v.082h6.56v2.557h-10.76v-1.663Zm12.185-5.889 4.948-7.047v-.056h-4.498v-1.917h7.536v1.34l-4.849 6.942v.059h4.923v1.92h-8.06v-1.24Zm10.345.702 3.708-5.274v-.045h-3.372v-1.437h5.648v1.003l-3.628 5.206v.045H116v1.438h-6.041v-.936Z',
164
+ fill: '#FFF',
165
+ fillRule: 'nonzero'
166
+ })));
@@ -0,0 +1 @@
1
+ export declare const disconnectedImage: JSX.Element;
@@ -0,0 +1,123 @@
1
+ import React from 'react';
2
+ export const disconnectedImage = React.createElement("svg", {
3
+ viewBox: '0 0 400 400',
4
+ xmlns: 'http://www.w3.org/2000/svg',
5
+ xmlnsXlink: 'http://www.w3.org/1999/xlink'
6
+ }, React.createElement("title", null, '@\u53CD\u9988/\u5F02\u5E38/\u7F51\u7EDC\u670D\u52A1\u5F02\u5E38'), React.createElement("defs", null, React.createElement("linearGradient", {
7
+ x1: '50%',
8
+ y1: '-116.862%',
9
+ x2: '50%',
10
+ y2: '90.764%',
11
+ id: 'error-block-image-disconnected-c'
12
+ }, React.createElement("stop", {
13
+ stopColor: '#72A7FD',
14
+ stopOpacity: 0.207,
15
+ offset: '0%'
16
+ }), React.createElement("stop", {
17
+ stopColor: '#72A7FD',
18
+ stopOpacity: 0.115,
19
+ offset: '80.072%'
20
+ }), React.createElement("stop", {
21
+ stopColor: '#72A7FD',
22
+ stopOpacity: 0,
23
+ offset: '100%'
24
+ })), React.createElement("circle", {
25
+ id: 'error-block-image-disconnected-d',
26
+ cx: 22.309,
27
+ cy: 22.309,
28
+ r: 22.309
29
+ }), React.createElement("path", {
30
+ id: 'error-block-image-disconnected-a',
31
+ d: 'M0 0h400v400H0z'
32
+ })), React.createElement("g", {
33
+ fill: 'none',
34
+ fillRule: 'evenodd'
35
+ }, React.createElement("mask", {
36
+ id: 'error-block-image-disconnected-b',
37
+ fill: '#fff'
38
+ }, React.createElement("use", {
39
+ xlinkHref: '#error-block-image-disconnected-a'
40
+ })), React.createElement("g", {
41
+ mask: 'url(#error-block-image-disconnected-b)',
42
+ fill: 'url(#error-block-image-disconnected-c)'
43
+ }, React.createElement("path", {
44
+ d: 'M151.686 45.58c38.869-.623 77.391 34.03 103.046 70.573 17.416-21.644 34.253-32.465 50.51-32.465 26.666 0 56.701 28.548 90.105 85.643 3.539 6.05-7.164 14.87-32.107 26.462l-82.643 2.741c-14.686 11.745-62.45 1.252-138.305 2.467-55.58.89-91.518-2.468-107.816-10.074-23.505-3.07-33.154-7.983-28.946-14.74C59.313 89.813 108.03 46.278 151.686 45.58Zm186.195 99.06-.127.003-.126.01a2.32 2.32 0 0 0-.465.103l-.032.01-.031.01a2.364 2.364 0 0 0-.181.071 2.52 2.52 0 0 0-.116.054l-.133.067-.042.024-.036.02a2.946 2.946 0 0 0-.133.08l-.048.03a3.052 3.052 0 0 0-.126.087l-.047.033a3.274 3.274 0 0 0-.128.097c-.01.008-.02.017-.031.024a4.906 4.906 0 0 0-.31.27l-.036.032a6.654 6.654 0 0 0-.46.484l-.045.05c-3.344 3.91-5.755 14.083-5.755 17.908 0 4.547 3.409 8.275 7.74 8.625l.108.008v7.608c0 .779.502 1.41 1.121 1.41.62 0 1.121-.632 1.121-1.41v-7.762c3.838-.802 6.727-4.293 6.727-8.48 0-4.778-3.765-19.467-8.409-19.467Zm-200-10-.127.003-.126.01a2.32 2.32 0 0 0-.368.073l-.049.014-.048.016-.032.01-.031.01a2.364 2.364 0 0 0-.181.071l-.058.026-.058.028-.133.067-.042.024-.036.02-.066.039-.067.041-.048.03a3.052 3.052 0 0 0-.126.087l-.047.033a3.274 3.274 0 0 0-.128.097c-.01.008-.02.017-.031.024l-.156.13-.154.14-.036.032a6.654 6.654 0 0 0-.46.484l-.045.05c-3.344 3.91-5.755 14.083-5.755 17.908 0 4.547 3.409 8.275 7.74 8.625l.054.004.054.004v7.608c0 .779.502 1.41 1.121 1.41.58 0 1.058-.556 1.115-1.266l.006-.144v-7.762c3.838-.802 6.727-4.293 6.727-8.48 0-4.778-3.765-19.467-8.409-19.467Zm-28.029-12.373-.107.002-.106.006a2.978 2.978 0 0 0-.551.095 3.444 3.444 0 0 0-.323.104 3.962 3.962 0 0 0-.61.297c-.076.045-.15.092-.226.141-4.964 3.312-8.728 18.445-8.728 23.77 0 5.434 3.922 9.935 9.04 10.726l.28.04v9.236c0 .886.532 1.614 1.21 1.692l.121.007.122-.007c.638-.074 1.147-.723 1.204-1.538l.006-.155v-9.235c5.254-.668 9.32-5.234 9.32-10.767 0-5.993-4.77-24.414-10.652-24.414Z'
45
+ })), React.createElement("g", {
46
+ mask: 'url(#error-block-image-disconnected-b)'
47
+ }, React.createElement("g", {
48
+ transform: 'translate(85.858 150.644)'
49
+ }, React.createElement("path", {
50
+ d: 'M116.26 28.467c1.352 0 2.703.018 4.054.054 3.923.385 10.188 4.248 9.267 11.061-.878 6.496-5.836 9.089-8.962 9.529a130.762 130.762 0 0 0-4.36-.072c-28.567 0-60.654 10.149-96.22 30.676l-2.227 1.297c-.744.437-1.49.878-2.236 1.323-4.878 2.911-11.193 1.316-14.103-3.562C-1.438 73.894.157 67.58 5.035 64.67 45.34 40.62 82.4 28.467 116.26 28.467Zm22 11.63c1.03-5.942 6.376-8.618 11.084-8.08C172.14 36.91 194.83 46.86 217.37 61.794c4.735 3.138 6.03 9.52 2.893 14.255-3.138 4.736-9.52 6.031-14.256 2.893-20.111-13.325-40.075-22.165-59.935-26.584a9.974 9.974 0 0 0-.325-.088c-3.987-1.015-8.602-5.738-7.487-12.175ZM116.26 77.418c22.777 0 45.4 7.057 67.73 20.988 4.82 3.007 6.289 9.351 3.282 14.17-3.007 4.82-9.351 6.29-14.17 3.283-19.194-11.974-38.095-17.87-56.842-17.87s-37.648 5.896-56.842 17.87c-4.82 3.007-11.164 1.537-14.17-3.282-3.007-4.82-1.538-11.164 3.282-14.171 22.33-13.931 44.953-20.988 67.73-20.988ZM117.974 124.67c9.85 0 17.303 1.69 25.687 5.082l.82.337 2.9 1.231 3.008 1.252.77.305.107.04c5.326 1.976 8.042 7.895 6.066 13.221-1.976 5.326-7.895 8.042-13.221 6.067l-.713-.27-.726-.285-.763-.31-1.263-.527-2.944-1.26-1.125-.473c-6.393-2.648-11.433-3.838-18.603-3.838-8.223 0-16.532 2.126-25.028 6.475-5.056 2.588-11.254.587-13.842-4.47-2.589-5.056-.588-11.253 4.47-13.842 11.313-5.791 22.814-8.735 34.4-8.735ZM118.235 197.047c7.15 0 13.77-.897 19.841-2.721 5.44-1.635 8.526-7.37 6.892-12.81-1.635-5.44-7.37-8.526-12.81-6.892-4.072 1.224-8.707 1.851-13.923 1.851-4.36 0-8.79-1.045-13.373-3.21l-.626-.301c-5.095-2.512-11.262-.418-13.773 4.678-2.512 5.095-.418 11.261 4.678 13.773 7.559 3.727 15.288 5.632 23.094 5.632Z',
51
+ fill: '#377EFF',
52
+ fillRule: 'nonzero'
53
+ }), React.createElement("path", {
54
+ d: 'M198.35 62.413c2.755-4.967 9.016-6.76 13.984-4.004 13.068 7.25 19.124 18.535 17.615 30.952-1.157 9.515-6.83 18.757-14.096 24.352-13.364 10.29-34.915 9.401-49.363-1.91-4.472-3.502-5.26-9.967-1.758-14.44 3.436-4.388 9.724-5.229 14.185-1.952l.255.194c7.283 5.702 18.475 6.164 24.13 1.809 3.072-2.366 5.766-6.754 6.226-10.536.467-3.844-1.21-7.07-6.796-10.267l-.378-.213c-4.967-2.756-6.76-9.017-4.004-13.985ZM61.35 103.092c-2.84-4.92-9.13-6.607-14.05-3.768-20.662 11.922-21.772 35.751-6.018 51.69 13.752 13.914 33.192 13.447 50.507 1.158 4.633-3.288 5.723-9.708 2.436-14.34-3.288-4.633-9.709-5.724-14.341-2.436-9.763 6.928-18.07 7.128-23.97 1.158-6.761-6.84-6.498-14.501 1.35-19.225l.317-.187c4.92-2.84 6.608-9.13 3.769-14.05ZM129.103 135.702c1.688-5.424 7.454-8.453 12.878-6.764 14.776 4.599 23.437 13.727 25.259 25.58 1.316 8.561-1.228 17.533-5.58 24.052-3.132 4.688-7.388 8.287-12.504 11.112-3.03 1.673-5.75 2.811-9.37 4.066l-1.4.477c-5.387 1.806-11.217-1.097-13.022-6.484-1.805-5.386 1.098-11.216 6.484-13.02l1.09-.374c6.032-2.112 9.602-4.19 11.613-7.201 1.693-2.535 2.818-6.502 2.356-9.503-.564-3.673-3.432-6.696-11.04-9.063-5.424-1.689-8.452-7.454-6.764-12.878Z',
55
+ fill: '#377EFF',
56
+ fillRule: 'nonzero'
57
+ }), React.createElement("path", {
58
+ d: 'M148.072 181.58c3.718-7.98 4.172-14.9 1.36-20.76-2.81-5.86-6.236-9.096-10.275-9.707',
59
+ stroke: '#FFF',
60
+ strokeWidth: 0.571,
61
+ strokeLinecap: 'round'
62
+ }), React.createElement("ellipse", {
63
+ fill: '#7EACFF',
64
+ transform: 'rotate(10 147 41.933)',
65
+ cx: 147,
66
+ cy: 41.933,
67
+ rx: 9.143,
68
+ ry: 10.286
69
+ }), React.createElement("path", {
70
+ d: 'M210.422 107.472c3.718-7.98 4.172-14.9 1.36-20.76-2.81-5.86-6.668-9.883-11.572-12.067M51.604 131.769c-3.15-6.8-3.537-12.694-1.161-17.685 2.376-4.99 5.57-8.136 9.583-9.438',
71
+ stroke: '#003CFF',
72
+ strokeWidth: 0.75,
73
+ strokeLinecap: 'round',
74
+ strokeLinejoin: 'round'
75
+ }), React.createElement("path", {
76
+ d: 'M21.53 64.408c4.946-3.389 9.817-6.026 14.612-7.912',
77
+ stroke: '#FFF',
78
+ strokeWidth: 0.75,
79
+ strokeLinecap: 'round',
80
+ strokeLinejoin: 'round'
81
+ }), React.createElement("path", {
82
+ d: 'm113.243 15.444 9.588 8.314M144.31 9.405l-5.775 11.3m18.389-1.246-11.907 4.643M127.64 5.66l2.77 14.255',
83
+ stroke: '#4486FE',
84
+ strokeWidth: 0.75,
85
+ strokeLinecap: 'round',
86
+ strokeLinejoin: 'round'
87
+ }))), React.createElement("g", {
88
+ mask: 'url(#error-block-image-disconnected-b)'
89
+ }, React.createElement("g", {
90
+ transform: 'translate(275.143 302.571)'
91
+ }, React.createElement("mask", {
92
+ id: 'error-block-image-disconnected-e',
93
+ fill: '#fff'
94
+ }, React.createElement("use", {
95
+ xlinkHref: '#error-block-image-disconnected-d'
96
+ })), React.createElement("use", {
97
+ fill: '#FBBE47',
98
+ fillRule: 'nonzero',
99
+ xlinkHref: '#error-block-image-disconnected-d'
100
+ }), React.createElement("circle", {
101
+ fill: '#FFCD6B',
102
+ fillRule: 'nonzero',
103
+ mask: 'url(#error-block-image-disconnected-e)',
104
+ cx: 16.457,
105
+ cy: 17.92,
106
+ r: 22.309
107
+ }), React.createElement("circle", {
108
+ fill: '#FFF',
109
+ fillRule: 'nonzero',
110
+ mask: 'url(#error-block-image-disconnected-e)',
111
+ cx: 14.263,
112
+ cy: 12.069,
113
+ r: 2.194
114
+ }))), React.createElement("g", {
115
+ mask: 'url(#error-block-image-disconnected-b)',
116
+ fill: '#FBBE47',
117
+ fillRule: 'nonzero'
118
+ }, React.createElement("circle", {
119
+ cx: 12,
120
+ cy: 12,
121
+ r: 12,
122
+ transform: 'translate(84 297.714)'
123
+ }))));