antd-mobile 5.6.0 → 5.7.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 (197) hide show
  1. package/2x/cjs/components/calendar/calendar.d.ts +4 -3
  2. package/2x/cjs/components/calendar/calendar.js +67 -56
  3. package/2x/cjs/components/calendar/convert.d.ts +2 -0
  4. package/2x/cjs/components/calendar/convert.js +22 -0
  5. package/2x/cjs/components/collapse/collapse.js +7 -0
  6. package/2x/cjs/components/empty/empty-icon.d.ts +3 -0
  7. package/2x/cjs/components/empty/empty-icon.js +37 -0
  8. package/2x/cjs/components/empty/empty.js +27 -15
  9. package/2x/cjs/components/error-block/error-block.css +1 -0
  10. package/2x/cjs/components/error-block/error-block.js +3 -8
  11. package/2x/cjs/components/error-block/images/busy.d.ts +1 -0
  12. package/2x/cjs/components/error-block/images/busy.js +102 -0
  13. package/2x/cjs/components/error-block/images/default.d.ts +1 -0
  14. package/2x/cjs/components/error-block/images/default.js +178 -0
  15. package/2x/cjs/components/error-block/images/disconnected.d.ts +1 -0
  16. package/2x/cjs/components/error-block/images/disconnected.js +135 -0
  17. package/2x/cjs/components/error-block/images/empty.d.ts +1 -0
  18. package/2x/cjs/components/error-block/images/empty.js +131 -0
  19. package/2x/cjs/components/error-block/images/index.d.ts +2 -0
  20. package/2x/cjs/components/error-block/images/index.js +22 -0
  21. package/2x/cjs/components/form/form-item.d.ts +1 -1
  22. package/2x/cjs/components/form/form-item.js +4 -1
  23. package/2x/cjs/components/image-viewer/methods.d.ts +1 -4
  24. package/2x/cjs/components/image-viewer/methods.js +7 -58
  25. package/2x/cjs/components/picker/picker.js +6 -9
  26. package/2x/cjs/components/picker-view/columns-extend.d.ts +3 -0
  27. package/2x/cjs/components/picker-view/columns-extend.js +45 -0
  28. package/2x/cjs/components/picker-view/picker-view.d.ts +1 -0
  29. package/2x/cjs/components/picker-view/picker-view.js +14 -16
  30. package/2x/cjs/components/popover/popover.css +1 -0
  31. package/2x/cjs/components/result/result.d.ts +2 -2
  32. package/2x/cjs/components/virtual-input/virtual-input.js +25 -14
  33. package/2x/cjs/utils/render-imperatively.js +17 -7
  34. package/2x/cjs/utils/with-cache.d.ts +1 -0
  35. package/2x/cjs/utils/with-cache.js +17 -0
  36. package/2x/es/components/calendar/calendar.d.ts +4 -3
  37. package/2x/es/components/calendar/calendar.js +67 -58
  38. package/2x/es/components/calendar/convert.d.ts +2 -0
  39. package/2x/es/components/calendar/convert.js +15 -0
  40. package/2x/es/components/collapse/collapse.js +7 -0
  41. package/2x/es/components/empty/empty-icon.d.ts +3 -0
  42. package/2x/es/components/empty/empty-icon.js +24 -0
  43. package/2x/es/components/empty/empty.js +27 -14
  44. package/2x/es/components/error-block/error-block.css +1 -0
  45. package/2x/es/components/error-block/error-block.js +2 -6
  46. package/2x/es/components/error-block/images/busy.d.ts +1 -0
  47. package/2x/es/components/error-block/images/busy.js +90 -0
  48. package/2x/es/components/error-block/images/default.d.ts +1 -0
  49. package/2x/es/components/error-block/images/default.js +166 -0
  50. package/2x/es/components/error-block/images/disconnected.d.ts +1 -0
  51. package/2x/es/components/error-block/images/disconnected.js +123 -0
  52. package/2x/es/components/error-block/images/empty.d.ts +1 -0
  53. package/2x/es/components/error-block/images/empty.js +119 -0
  54. package/2x/es/components/error-block/images/index.d.ts +2 -0
  55. package/2x/es/components/error-block/images/index.js +10 -0
  56. package/2x/es/components/form/form-item.d.ts +1 -1
  57. package/2x/es/components/form/form-item.js +4 -1
  58. package/2x/es/components/image-viewer/methods.d.ts +1 -4
  59. package/2x/es/components/image-viewer/methods.js +6 -50
  60. package/2x/es/components/picker/picker.js +6 -8
  61. package/2x/es/components/picker-view/columns-extend.d.ts +3 -0
  62. package/2x/es/components/picker-view/columns-extend.js +34 -0
  63. package/2x/es/components/picker-view/picker-view.d.ts +1 -0
  64. package/2x/es/components/picker-view/picker-view.js +14 -15
  65. package/2x/es/components/popover/popover.css +1 -0
  66. package/2x/es/components/result/result.d.ts +2 -2
  67. package/2x/es/components/virtual-input/virtual-input.js +23 -14
  68. package/2x/es/utils/render-imperatively.js +16 -8
  69. package/2x/es/utils/with-cache.d.ts +1 -0
  70. package/2x/es/utils/with-cache.js +10 -0
  71. package/2x/package.json +1 -1
  72. package/cjs/components/calendar/calendar.d.ts +4 -3
  73. package/cjs/components/calendar/calendar.js +67 -56
  74. package/cjs/components/calendar/convert.d.ts +2 -0
  75. package/cjs/components/calendar/convert.js +22 -0
  76. package/cjs/components/collapse/collapse.js +7 -0
  77. package/cjs/components/empty/empty-icon.d.ts +3 -0
  78. package/cjs/components/empty/empty-icon.js +37 -0
  79. package/cjs/components/empty/empty.js +27 -15
  80. package/cjs/components/error-block/error-block.css +1 -0
  81. package/cjs/components/error-block/error-block.js +3 -8
  82. package/cjs/components/error-block/images/busy.d.ts +1 -0
  83. package/cjs/components/error-block/images/busy.js +102 -0
  84. package/cjs/components/error-block/images/default.d.ts +1 -0
  85. package/cjs/components/error-block/images/default.js +178 -0
  86. package/cjs/components/error-block/images/disconnected.d.ts +1 -0
  87. package/cjs/components/error-block/images/disconnected.js +135 -0
  88. package/cjs/components/error-block/images/empty.d.ts +1 -0
  89. package/cjs/components/error-block/images/empty.js +131 -0
  90. package/cjs/components/error-block/images/index.d.ts +2 -0
  91. package/cjs/components/error-block/images/index.js +22 -0
  92. package/cjs/components/form/form-item.d.ts +1 -1
  93. package/cjs/components/form/form-item.js +4 -1
  94. package/cjs/components/image-viewer/methods.d.ts +1 -4
  95. package/cjs/components/image-viewer/methods.js +7 -58
  96. package/cjs/components/picker/picker.js +6 -9
  97. package/cjs/components/picker-view/columns-extend.d.ts +3 -0
  98. package/cjs/components/picker-view/columns-extend.js +45 -0
  99. package/cjs/components/picker-view/picker-view.d.ts +1 -0
  100. package/cjs/components/picker-view/picker-view.js +14 -16
  101. package/cjs/components/popover/popover.css +1 -0
  102. package/cjs/components/result/result.d.ts +2 -2
  103. package/cjs/components/virtual-input/virtual-input.js +25 -14
  104. package/cjs/utils/render-imperatively.js +17 -7
  105. package/cjs/utils/with-cache.d.ts +1 -0
  106. package/cjs/utils/with-cache.js +17 -0
  107. package/es/components/calendar/calendar.d.ts +4 -3
  108. package/es/components/calendar/calendar.js +67 -58
  109. package/es/components/calendar/convert.d.ts +2 -0
  110. package/es/components/calendar/convert.js +15 -0
  111. package/es/components/collapse/collapse.js +7 -0
  112. package/es/components/empty/empty-icon.d.ts +3 -0
  113. package/es/components/empty/empty-icon.js +24 -0
  114. package/es/components/empty/empty.js +27 -14
  115. package/es/components/error-block/error-block.css +1 -0
  116. package/es/components/error-block/error-block.js +2 -6
  117. package/es/components/error-block/images/busy.d.ts +1 -0
  118. package/es/components/error-block/images/busy.js +90 -0
  119. package/es/components/error-block/images/default.d.ts +1 -0
  120. package/es/components/error-block/images/default.js +166 -0
  121. package/es/components/error-block/images/disconnected.d.ts +1 -0
  122. package/es/components/error-block/images/disconnected.js +123 -0
  123. package/es/components/error-block/images/empty.d.ts +1 -0
  124. package/es/components/error-block/images/empty.js +119 -0
  125. package/es/components/error-block/images/index.d.ts +2 -0
  126. package/es/components/error-block/images/index.js +10 -0
  127. package/es/components/form/form-item.d.ts +1 -1
  128. package/es/components/form/form-item.js +4 -1
  129. package/es/components/image-viewer/methods.d.ts +1 -4
  130. package/es/components/image-viewer/methods.js +6 -50
  131. package/es/components/picker/picker.js +6 -8
  132. package/es/components/picker-view/columns-extend.d.ts +3 -0
  133. package/es/components/picker-view/columns-extend.js +34 -0
  134. package/es/components/picker-view/picker-view.d.ts +1 -0
  135. package/es/components/picker-view/picker-view.js +14 -15
  136. package/es/components/popover/popover.css +1 -0
  137. package/es/components/result/result.d.ts +2 -2
  138. package/es/components/virtual-input/virtual-input.js +23 -14
  139. package/es/utils/render-imperatively.js +16 -8
  140. package/es/utils/with-cache.d.ts +1 -0
  141. package/es/utils/with-cache.js +10 -0
  142. package/package.json +1 -1
  143. package/umd/antd-mobile.js +1 -1
  144. package/2x/assets/busy.svg +0 -42
  145. package/2x/assets/default.svg +0 -53
  146. package/2x/assets/disconnected.svg +0 -60
  147. package/2x/assets/empty-icon.svg +0 -18
  148. package/2x/assets/empty.svg +0 -52
  149. package/2x/cjs/assets/busy.svg +0 -42
  150. package/2x/cjs/assets/default.svg +0 -53
  151. package/2x/cjs/assets/disconnected.svg +0 -60
  152. package/2x/cjs/assets/empty-icon.svg +0 -18
  153. package/2x/cjs/assets/empty.svg +0 -52
  154. package/2x/cjs/components/error-block/error.d.ts +0 -1
  155. package/2x/cjs/components/error-block/error.js +0 -24
  156. package/2x/cjs/components/picker-view/use-columns.d.ts +0 -2
  157. package/2x/cjs/components/picker-view/use-columns.js +0 -18
  158. package/2x/cjs/components/picker-view/use-picker-value-extend.d.ts +0 -2
  159. package/2x/cjs/components/picker-view/use-picker-value-extend.js +0 -37
  160. package/2x/es/assets/busy.svg +0 -42
  161. package/2x/es/assets/default.svg +0 -53
  162. package/2x/es/assets/disconnected.svg +0 -60
  163. package/2x/es/assets/empty-icon.svg +0 -18
  164. package/2x/es/assets/empty.svg +0 -52
  165. package/2x/es/components/error-block/error.d.ts +0 -1
  166. package/2x/es/components/error-block/error.js +0 -10
  167. package/2x/es/components/picker-view/use-columns.d.ts +0 -2
  168. package/2x/es/components/picker-view/use-columns.js +0 -10
  169. package/2x/es/components/picker-view/use-picker-value-extend.d.ts +0 -2
  170. package/2x/es/components/picker-view/use-picker-value-extend.js +0 -26
  171. package/assets/busy.svg +0 -42
  172. package/assets/default.svg +0 -53
  173. package/assets/disconnected.svg +0 -60
  174. package/assets/empty-icon.svg +0 -18
  175. package/assets/empty.svg +0 -52
  176. package/cjs/assets/busy.svg +0 -42
  177. package/cjs/assets/default.svg +0 -53
  178. package/cjs/assets/disconnected.svg +0 -60
  179. package/cjs/assets/empty-icon.svg +0 -18
  180. package/cjs/assets/empty.svg +0 -52
  181. package/cjs/components/error-block/error.d.ts +0 -1
  182. package/cjs/components/error-block/error.js +0 -24
  183. package/cjs/components/picker-view/use-columns.d.ts +0 -2
  184. package/cjs/components/picker-view/use-columns.js +0 -18
  185. package/cjs/components/picker-view/use-picker-value-extend.d.ts +0 -2
  186. package/cjs/components/picker-view/use-picker-value-extend.js +0 -37
  187. package/es/assets/busy.svg +0 -42
  188. package/es/assets/default.svg +0 -53
  189. package/es/assets/disconnected.svg +0 -60
  190. package/es/assets/empty-icon.svg +0 -18
  191. package/es/assets/empty.svg +0 -52
  192. package/es/components/error-block/error.d.ts +0 -1
  193. package/es/components/error-block/error.js +0 -10
  194. package/es/components/picker-view/use-columns.d.ts +0 -2
  195. package/es/components/picker-view/use-columns.js +0 -10
  196. package/es/components/picker-view/use-picker-value-extend.d.ts +0 -2
  197. package/es/components/picker-view/use-picker-value-extend.js +0 -26
@@ -1,4 +1,4 @@
1
- import React, { forwardRef, useMemo, useState, useImperativeHandle } from 'react';
1
+ import React, { forwardRef, useState, useImperativeHandle } from 'react';
2
2
  import { withNativeProps } from '../../utils/native-props';
3
3
  import dayjs from 'dayjs';
4
4
  import classNames from 'classnames';
@@ -7,11 +7,15 @@ import { ArrowLeft } from './arrow-left';
7
7
  import { ArrowLeftDouble } from './arrow-left-double';
8
8
  import { useConfig } from '../config-provider';
9
9
  import isoWeek from 'dayjs/plugin/isoWeek';
10
- import { useIsomorphicLayoutEffect, useUpdateEffect } from 'ahooks';
10
+ import { useUpdateEffect } from 'ahooks';
11
+ import { usePropsValue } from '../../utils/use-props-value';
12
+ import { convertValueToRange } from './convert';
11
13
  dayjs.extend(isoWeek);
12
14
  const classPrefix = 'adm-calendar';
13
15
  const defaultProps = {
14
- weekStartsOn: 'Sunday'
16
+ weekStartsOn: 'Sunday',
17
+ defaultValue: null,
18
+ allowClear: true
15
19
  };
16
20
  export const Calendar = forwardRef((p, ref) => {
17
21
  const today = dayjs();
@@ -26,29 +30,21 @@ export const Calendar = forwardRef((p, ref) => {
26
30
  if (item) markItems.unshift(item);
27
31
  }
28
32
 
29
- const dateRange = useMemo(() => {
30
- var _a, _b, _c, _d;
33
+ const [dateRange, setDateRange] = usePropsValue({
34
+ value: props.value === undefined ? undefined : convertValueToRange(props.selectionMode, props.value),
35
+ defaultValue: convertValueToRange(props.selectionMode, props.defaultValue),
36
+ onChange: v => {
37
+ var _a, _b;
31
38
 
32
- if (props.selectionMode === 'single') {
33
- const value = (_b = (_a = props.value) !== null && _a !== void 0 ? _a : props.defaultValue) !== null && _b !== void 0 ? _b : null;
34
- return [value, value];
35
- } else if (props.selectionMode === 'range') {
36
- return (_d = (_c = props.value) !== null && _c !== void 0 ? _c : props.defaultValue) !== null && _d !== void 0 ? _d : [null, null];
37
- } else {
38
- return [null, null];
39
+ if (props.selectionMode === 'single') {
40
+ (_a = props.onChange) === null || _a === void 0 ? void 0 : _a.call(props, v ? v[0] : null);
41
+ } else if (props.selectionMode === 'range') {
42
+ (_b = props.onChange) === null || _b === void 0 ? void 0 : _b.call(props, v);
43
+ }
39
44
  }
40
- }, [props.selectionMode, props.value, props.defaultValue]);
41
- const [begin, setBegin] = useState(null);
42
- const [end, setEnd] = useState(null);
43
- useIsomorphicLayoutEffect(() => {
44
- setBegin(dateRange[0] ? dayjs(dateRange[0]) : null);
45
- setEnd(dateRange[1] ? dayjs(dateRange[1]) : null);
46
- }, [dateRange[0], dateRange[1]]);
47
- const [current, setCurrent] = useState(() => {
48
- var _a;
49
-
50
- return dayjs((_a = dateRange[0]) !== null && _a !== void 0 ? _a : today).date(1);
51
45
  });
46
+ const [intermediate, setIntermediate] = useState(false);
47
+ const [current, setCurrent] = useState(() => dayjs(dateRange ? dateRange[0] : today).date(1));
52
48
  useUpdateEffect(() => {
53
49
  var _a;
54
50
 
@@ -111,14 +107,16 @@ export const Calendar = forwardRef((p, ref) => {
111
107
 
112
108
  while (cells.length < 6 * 7) {
113
109
  const d = iterator;
114
-
115
- const isSelect = (() => {
116
- if (!begin) return false;
117
- if (d.isSame(begin, 'day')) return true;
118
- if (!end) return false;
119
- if (d.isSame(end, 'day')) return true;
120
- return d.isAfter(begin, 'day') && d.isBefore(end, 'day');
121
- })();
110
+ let isSelect = false;
111
+ let isBegin = false;
112
+ let isEnd = false;
113
+
114
+ if (dateRange) {
115
+ const [begin, end] = dateRange;
116
+ isBegin = d.isSame(begin, 'day');
117
+ isEnd = d.isSame(end, 'day');
118
+ isSelect = isBegin || isEnd || d.isAfter(begin, 'day') && d.isBefore(end, 'day');
119
+ }
122
120
 
123
121
  const inThisMonth = d.month() === current.month();
124
122
  cells.push(React.createElement("div", {
@@ -126,41 +124,52 @@ export const Calendar = forwardRef((p, ref) => {
126
124
  className: classNames(`${classPrefix}-cell`, inThisMonth ? `${classPrefix}-cell-in` : `${classPrefix}-cell-out`, inThisMonth && {
127
125
  [`${classPrefix}-cell-today`]: d.isSame(today, 'day'),
128
126
  [`${classPrefix}-cell-selected`]: isSelect,
129
- [`${classPrefix}-cell-selected-begin`]: isSelect && d.isSame(begin, 'day'),
130
- [`${classPrefix}-cell-selected-end`]: isSelect && (!end || d.isSame(end, 'day'))
127
+ [`${classPrefix}-cell-selected-begin`]: isBegin,
128
+ [`${classPrefix}-cell-selected-end`]: isEnd
131
129
  }),
132
130
  onClick: () => {
133
- var _a, _b, _c;
134
-
135
131
  if (!props.selectionMode) return;
132
+ const date = d.toDate();
133
+
134
+ if (!inThisMonth) {
135
+ setCurrent(d.clone().date(1));
136
+ }
137
+
138
+ function shouldClear() {
139
+ if (!props.allowClear) return false;
140
+ if (!dateRange) return false;
141
+ const [begin, end] = dateRange;
142
+ return d.isSame(begin, 'date') && d.isSame(end, 'day');
143
+ }
136
144
 
137
145
  if (props.selectionMode === 'single') {
138
- setBegin(d);
139
- setEnd(d);
140
- (_a = props.onChange) === null || _a === void 0 ? void 0 : _a.call(props, d.toDate());
146
+ if (props.allowClear && shouldClear()) {
147
+ setDateRange(null);
148
+ return;
149
+ }
150
+
151
+ setDateRange([date, date]);
141
152
  } else if (props.selectionMode === 'range') {
142
- if (begin !== null && end === null) {
143
- if (begin.isSame(d.toDate())) {
144
- setBegin(null);
145
- setEnd(null);
146
- } else {
147
- if (d.isBefore(begin)) {
148
- setEnd(begin);
149
- setBegin(d);
150
- (_b = props.onChange) === null || _b === void 0 ? void 0 : _b.call(props, [d.toDate(), begin.toDate()]);
151
- } else {
152
- setEnd(d);
153
- (_c = props.onChange) === null || _c === void 0 ? void 0 : _c.call(props, [begin.toDate(), d.toDate()]);
154
- }
155
- }
156
- } else {
157
- setBegin(d);
158
- setEnd(null);
153
+ if (!dateRange) {
154
+ setDateRange([date, date]);
155
+ setIntermediate(true);
156
+ return;
159
157
  }
160
- }
161
158
 
162
- if (!inThisMonth) {
163
- setCurrent(d.clone().date(1));
159
+ if (shouldClear()) {
160
+ setDateRange(null);
161
+ setIntermediate(false);
162
+ return;
163
+ }
164
+
165
+ if (intermediate) {
166
+ const another = dateRange[0];
167
+ setDateRange(another > date ? [date, another] : [another, date]);
168
+ setIntermediate(false);
169
+ } else {
170
+ setDateRange([date, date]);
171
+ setIntermediate(true);
172
+ }
164
173
  }
165
174
  }
166
175
  }, React.createElement("div", {
@@ -0,0 +1,2 @@
1
+ export declare type DateRange = [Date, Date] | null;
2
+ export declare function convertValueToRange(selectionMode: 'single' | 'range' | undefined, value: Date | [Date, Date] | null): DateRange;
@@ -0,0 +1,15 @@
1
+ export function convertValueToRange(selectionMode, value) {
2
+ if (selectionMode === undefined) {
3
+ return null;
4
+ }
5
+
6
+ if (value === null) {
7
+ return null;
8
+ }
9
+
10
+ if (Array.isArray(value)) {
11
+ return value;
12
+ }
13
+
14
+ return [value, value];
15
+ }
@@ -24,6 +24,13 @@ const CollapsePanelContent = props => {
24
24
  }, api] = useSpring(() => ({
25
25
  from: {
26
26
  height: 0
27
+ },
28
+ config: {
29
+ precision: 0.01,
30
+ mass: 1,
31
+ tension: 200,
32
+ friction: 25,
33
+ clamp: true
27
34
  }
28
35
  }));
29
36
  useMount(() => {
@@ -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
  };
@@ -12,6 +12,7 @@
12
12
  width: var(--image-width);
13
13
  max-width: 100%;
14
14
  }
15
+ .adm-error-block-image svg,
15
16
  .adm-error-block-image img {
16
17
  height: 100%;
17
18
  }
@@ -1,26 +1,22 @@
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
- alt: 'error block image'
23
- });
19
+ let imageNode = imageRecord[props.status];
24
20
 
25
21
  if (props.image) {
26
22
  if (typeof props.image === 'string') {
@@ -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;