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
@@ -10,7 +10,7 @@ export declare type Action = {
10
10
  onClick?: () => void;
11
11
  };
12
12
  export declare type ActionSheetProps = {
13
- visible: boolean;
13
+ visible?: boolean;
14
14
  actions: Action[];
15
15
  extra?: React.ReactNode;
16
16
  cancelText?: React.ReactNode;
@@ -22,11 +22,11 @@ export declare type ActionSheetProps = {
22
22
  closeOnMaskClick?: boolean;
23
23
  getContainer?: GetContainer;
24
24
  safeArea?: boolean;
25
+ popupClassName?: string;
26
+ popupStyle?: React.CSSProperties;
25
27
  } & NativeProps;
26
28
  export declare const ActionSheet: FC<ActionSheetProps>;
27
- export declare type ActionSheetRef = {
28
- close: () => void;
29
- };
30
- export declare function showActionSheet(props: Omit<ActionSheetProps, 'visible'>): {
29
+ export declare type ActionSheetShowHandler = {
31
30
  close: () => void;
32
31
  };
32
+ export declare function showActionSheet(props: Omit<ActionSheetProps, 'visible'>): ActionSheetShowHandler;
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.ActionSheet = void 0;
7
7
  exports.showActionSheet = showActionSheet;
8
8
 
9
- var _react = _interopRequireWildcard(require("react"));
9
+ var _react = _interopRequireDefault(require("react"));
10
10
 
11
11
  var _nativeProps = require("../../utils/native-props");
12
12
 
@@ -18,15 +18,11 @@ var _popup = _interopRequireDefault(require("../popup"));
18
18
 
19
19
  var _button = _interopRequireDefault(require("../button"));
20
20
 
21
- var _renderToBody = require("../../utils/render-to-body");
22
-
23
21
  var _safeArea = _interopRequireDefault(require("../safe-area"));
24
22
 
25
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
26
-
27
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
23
+ var _renderImperatively = require("../../utils/render-imperatively");
28
24
 
29
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
25
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
30
26
 
31
27
  const classPrefix = `adm-action-sheet`;
32
28
  const defaultProps = {
@@ -52,7 +48,8 @@ const ActionSheet = p => {
52
48
  }
53
49
  },
54
50
  afterClose: props.afterClose,
55
- className: `${classPrefix}-popup`,
51
+ className: (0, _classnames.default)(`${classPrefix}-popup`, props.popupClassName),
52
+ style: props.popupStyle,
56
53
  getContainer: props.getContainer
57
54
  }, (0, _nativeProps.withNativeProps)(props, _react.default.createElement("div", {
58
55
  className: classPrefix
@@ -109,42 +106,5 @@ const ActionSheet = p => {
109
106
  exports.ActionSheet = ActionSheet;
110
107
 
111
108
  function showActionSheet(props) {
112
- const Wrapper = (0, _react.forwardRef)((_, ref) => {
113
- const [visible, setVisible] = (0, _react.useState)(false);
114
- (0, _react.useEffect)(() => {
115
- setVisible(true);
116
- }, []);
117
-
118
- function handleClose() {
119
- var _a;
120
-
121
- (_a = props.onClose) === null || _a === void 0 ? void 0 : _a.call(props);
122
- setVisible(false);
123
- }
124
-
125
- (0, _react.useImperativeHandle)(ref, () => ({
126
- close: handleClose
127
- }));
128
- return _react.default.createElement(ActionSheet, Object.assign({}, props, {
129
- visible: visible,
130
- onClose: handleClose,
131
- afterClose: () => {
132
- var _a;
133
-
134
- (_a = props.afterClose) === null || _a === void 0 ? void 0 : _a.call(props);
135
- unmount();
136
- }
137
- }));
138
- });
139
- const ref = (0, _react.createRef)();
140
- const unmount = (0, _renderToBody.renderToBody)(_react.default.createElement(Wrapper, {
141
- ref: ref
142
- }));
143
- return {
144
- close: () => {
145
- var _a;
146
-
147
- (_a = ref.current) === null || _a === void 0 ? void 0 : _a.close();
148
- }
149
- };
109
+ return (0, _renderImperatively.renderImperatively)(_react.default.createElement(ActionSheet, Object.assign({}, props)));
150
110
  }
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import './action-sheet.less';
3
3
  import { showActionSheet } from './action-sheet';
4
- export type { Action, ActionSheetProps, ActionSheetRef } from './action-sheet';
4
+ export type { Action, ActionSheetProps, ActionSheetShowHandler, } from './action-sheet';
5
5
  declare const _default: import("react").FC<import("./action-sheet").ActionSheetProps> & {
6
6
  show: typeof showActionSheet;
7
7
  };
@@ -25,7 +25,7 @@ const Badge = props => {
25
25
  } = props;
26
26
  const isDot = content === dot;
27
27
  const badgeCls = (0, _classnames.default)(classPrefix, !!children && `${classPrefix}-fixed`, isDot && `${classPrefix}-dot`, props.bordered && `${classPrefix}-bordered`);
28
- const element = content ? (0, _nativeProps.withNativeProps)(props, _react.default.createElement("div", {
28
+ const element = content || content === 0 ? (0, _nativeProps.withNativeProps)(props, _react.default.createElement("div", {
29
29
  className: badgeCls,
30
30
  style: {
31
31
  '--color': color
@@ -86,6 +86,13 @@ const CascaderView = p => {
86
86
  (0, _react.useEffect)(() => {
87
87
  setTabActiveKey(levels.length - 1);
88
88
  }, [value]);
89
+ (0, _react.useEffect)(() => {
90
+ const max = levels.length - 1;
91
+
92
+ if (tabActiveKey > max) {
93
+ setTabActiveKey(max);
94
+ }
95
+ }, [tabActiveKey, levels]);
89
96
 
90
97
  const onItemSelect = (selectValue, depth) => {
91
98
  const next = value.slice(0, depth);
@@ -25,6 +25,8 @@ var _indeterminateIcon = require("./indeterminate-icon");
25
25
 
26
26
  var _isDev = require("../../utils/is-dev");
27
27
 
28
+ var _nativeInput = require("./native-input");
29
+
28
30
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
29
31
 
30
32
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
@@ -90,35 +92,17 @@ const Checkbox = p => {
90
92
  }, props.indeterminate ? _react.default.createElement(_indeterminateIcon.IndeterminateIcon, null) : checked && _react.default.createElement(_checkIcon.CheckIcon, null));
91
93
  };
92
94
 
93
- const inputRef = (0, _react.useRef)(null);
94
- const labelRef = (0, _react.useRef)(null);
95
- (0, _react.useEffect)(() => {
96
- var _a;
97
-
98
- (_a = labelRef.current) === null || _a === void 0 ? void 0 : _a.addEventListener('click', e => {
99
- if (e.target !== inputRef.current) {
100
- e.stopPropagation();
101
- e.stopImmediatePropagation();
102
- }
103
- }, {
104
- capture: false
105
- });
106
- }, []);
107
95
  return (0, _nativeProps.withNativeProps)(props, _react.default.createElement("label", {
108
- ref: labelRef,
109
96
  className: (0, _classnames.default)(classPrefix, {
110
97
  [`${classPrefix}-checked`]: checked && !props.indeterminate,
111
98
  [`${classPrefix}-indeterminate`]: props.indeterminate,
112
99
  [`${classPrefix}-disabled`]: disabled,
113
100
  [`${classPrefix}-block`]: props.block
114
101
  })
115
- }, _react.default.createElement("input", {
116
- ref: inputRef,
102
+ }, _react.default.createElement(_nativeInput.NativeInput, {
117
103
  type: 'checkbox',
118
104
  checked: checked,
119
- onChange: e => {
120
- setChecked(e.target.checked);
121
- },
105
+ onChange: setChecked,
122
106
  disabled: disabled,
123
107
  id: props.id
124
108
  }), renderIcon(), props.children && _react.default.createElement("div", {
@@ -0,0 +1,10 @@
1
+ import { FC } from 'react';
2
+ interface Props {
3
+ type: 'checkbox' | 'radio';
4
+ checked: boolean;
5
+ onChange: (checked: boolean) => void;
6
+ disabled?: boolean;
7
+ id?: string;
8
+ }
9
+ export declare const NativeInput: FC<Props>;
10
+ export {};
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.NativeInput = void 0;
7
+
8
+ var _react = _interopRequireWildcard(require("react"));
9
+
10
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
11
+
12
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
13
+
14
+ const NativeInput = props => {
15
+ const inputRef = (0, _react.useRef)(null);
16
+ (0, _react.useEffect)(() => {
17
+ if (props.disabled) return;
18
+ if (!inputRef.current) return;
19
+ const input = inputRef.current;
20
+
21
+ function handleClick(e) {
22
+ e.stopPropagation();
23
+ e.stopImmediatePropagation();
24
+ props.onChange(input.checked);
25
+ }
26
+
27
+ input.addEventListener('click', handleClick);
28
+ return () => {
29
+ input.removeEventListener('click', handleClick);
30
+ };
31
+ }, [props.disabled, props.onChange]);
32
+ return _react.default.createElement("input", {
33
+ ref: inputRef,
34
+ type: 'checkbox',
35
+ checked: props.checked,
36
+ onChange: () => {},
37
+ disabled: props.disabled,
38
+ id: props.id
39
+ });
40
+ };
41
+
42
+ exports.NativeInput = NativeInput;
@@ -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;
@@ -6,64 +6,26 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.closeFnSet = void 0;
7
7
  exports.show = show;
8
8
 
9
- var _react = _interopRequireWildcard(require("react"));
10
-
11
- var _renderToBody = require("../../utils/render-to-body");
9
+ var _react = _interopRequireDefault(require("react"));
12
10
 
13
11
  var _dialog = require("./dialog");
14
12
 
15
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
13
+ var _renderImperatively = require("../../utils/render-imperatively");
16
14
 
17
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
15
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
18
16
 
19
17
  const closeFnSet = new Set();
20
18
  exports.closeFnSet = closeFnSet;
21
19
 
22
20
  function show(props) {
23
- const Wrapper = (0, _react.forwardRef)((_, ref) => {
24
- const [visible, setVisible] = (0, _react.useState)(false);
25
- (0, _react.useEffect)(() => {
26
- setVisible(true);
27
- }, []);
28
-
29
- function handleClose() {
30
- var _a;
31
-
32
- (_a = props.onClose) === null || _a === void 0 ? void 0 : _a.call(props);
33
- setVisible(false);
34
- }
35
-
36
- (0, _react.useImperativeHandle)(ref, () => ({
37
- close: handleClose
38
- }));
39
-
40
- function handleAfterClose() {
21
+ const handler = (0, _renderImperatively.renderImperatively)(_react.default.createElement(_dialog.Dialog, Object.assign({}, props, {
22
+ afterClose: () => {
41
23
  var _a;
42
24
 
25
+ closeFnSet.delete(handler.close);
43
26
  (_a = props.afterClose) === null || _a === void 0 ? void 0 : _a.call(props);
44
- unmount();
45
- closeFnSet.delete(close);
46
27
  }
47
-
48
- return _react.default.createElement(_dialog.Dialog, Object.assign({}, props, {
49
- visible: visible,
50
- onClose: handleClose,
51
- afterClose: handleAfterClose
52
- }));
53
- });
54
- const ref = (0, _react.createRef)();
55
- const unmount = (0, _renderToBody.renderToBody)(_react.default.createElement(Wrapper, {
56
- ref: ref
57
- }));
58
-
59
- const close = () => {
60
- var _a;
61
-
62
- (_a = ref.current) === null || _a === void 0 ? void 0 : _a.close();
63
- };
64
-
65
- closeFnSet.add(close);
66
- return {
67
- close
68
- };
28
+ })));
29
+ closeFnSet.add(handler.close);
30
+ return handler;
69
31
  }
@@ -70,8 +70,7 @@ const DotLoading = (0, _react.memo)(p => {
70
70
  begin: `${i * 0.2}s`,
71
71
  repeatCount: 'indefinite',
72
72
  values: '16; 6; 26; 16; 16',
73
- keyTimes: '0; 0.1; 0.3; 0.4; 1',
74
- id: 'circ-anim'
73
+ keyTimes: '0; 0.1; 0.3; 0.4; 1'
75
74
  }))))))))));
76
75
  });
77
76
  exports.DotLoading = DotLoading;
@@ -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,37 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.EmptyIcon = void 0;
7
+
8
+ var _react = _interopRequireDefault(require("react"));
9
+
10
+ var _nativeProps = require("../../utils/native-props");
11
+
12
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
+
14
+ const EmptyIcon = props => {
15
+ return (0, _nativeProps.withNativeProps)(props, _react.default.createElement("svg", {
16
+ viewBox: '0 0 64 41'
17
+ }, _react.default.createElement("g", {
18
+ transform: 'translate(0 1)',
19
+ fill: 'none',
20
+ fillRule: 'evenodd'
21
+ }, _react.default.createElement("ellipse", {
22
+ fill: '#f5f5f5',
23
+ cx: '32',
24
+ cy: '33',
25
+ rx: '32',
26
+ ry: '7'
27
+ }), _react.default.createElement("g", {
28
+ stroke: '#d9d9d9'
29
+ }, _react.default.createElement("path", {
30
+ 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'
31
+ }), _react.default.createElement("path", {
32
+ 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',
33
+ fill: '#fafafa'
34
+ })))));
35
+ };
36
+
37
+ exports.EmptyIcon = EmptyIcon;
@@ -9,32 +9,44 @@ var _react = _interopRequireDefault(require("react"));
9
9
 
10
10
  var _classnames = _interopRequireDefault(require("classnames"));
11
11
 
12
- var _withDefaultProps = require("../../utils/with-default-props");
13
-
14
12
  var _nativeProps = require("../../utils/native-props");
15
13
 
16
- var _emptyIcon = _interopRequireDefault(require("../../assets/empty-icon.svg"));
14
+ var _emptyIcon = require("./empty-icon");
17
15
 
18
16
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
19
17
 
20
18
  const classPrefix = `adm-empty`;
21
- const defaultProps = {
22
- image: _emptyIcon.default
23
- };
24
19
 
25
- const Empty = p => {
26
- const props = (0, _withDefaultProps.mergeProps)(defaultProps, p);
27
- const imageNode = typeof props.image === 'string' ? _react.default.createElement("img", {
28
- className: `${classPrefix}-image`,
29
- style: props.imageStyle,
30
- src: props.image,
31
- alt: 'empty'
32
- }) : props.image;
20
+ const Empty = props => {
21
+ function renderImageNode() {
22
+ const {
23
+ image
24
+ } = props;
25
+
26
+ if (image === undefined) {
27
+ return _react.default.createElement(_emptyIcon.EmptyIcon, {
28
+ className: `${classPrefix}-image`,
29
+ style: props.imageStyle
30
+ });
31
+ }
32
+
33
+ if (typeof image === 'string') {
34
+ return _react.default.createElement("img", {
35
+ className: `${classPrefix}-image`,
36
+ style: props.imageStyle,
37
+ src: image,
38
+ alt: 'empty'
39
+ });
40
+ }
41
+
42
+ return image;
43
+ }
44
+
33
45
  return (0, _nativeProps.withNativeProps)(props, _react.default.createElement("div", {
34
46
  className: classPrefix
35
47
  }, _react.default.createElement("div", {
36
48
  className: `${classPrefix}-image-container`
37
- }, imageNode), props.description && _react.default.createElement("div", {
49
+ }, renderImageNode()), props.description && _react.default.createElement("div", {
38
50
  className: (0, _classnames.default)(`${classPrefix}-description`)
39
51
  }, props.description)));
40
52
  };
@@ -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
  }
@@ -9,14 +9,14 @@ var _react = _interopRequireDefault(require("react"));
9
9
 
10
10
  var _classnames = _interopRequireDefault(require("classnames"));
11
11
 
12
- var _error = require("./error");
13
-
14
12
  var _withDefaultProps = require("../../utils/with-default-props");
15
13
 
16
14
  var _nativeProps = require("../../utils/native-props");
17
15
 
18
16
  var _configProvider = require("../config-provider");
19
17
 
18
+ var _images = require("./images");
19
+
20
20
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
21
21
 
22
22
  const classPrefix = `adm-error-block`;
@@ -26,22 +26,19 @@ const defaultProps = {
26
26
 
27
27
  const ErrorBlock = p => {
28
28
  const props = (0, _withDefaultProps.mergeProps)(defaultProps, p);
29
- const icon = _error.iconRecord[props.status];
30
29
  const {
31
30
  locale
32
31
  } = (0, _configProvider.useConfig)();
33
32
  const contentPack = locale.ErrorBlock[props.status];
34
33
  const des = 'description' in props ? props.description : contentPack.description;
35
34
  const title = 'title' in props ? props.title : contentPack.title;
36
-
37
- let imageNode = _react.default.createElement("img", {
38
- src: icon
39
- });
35
+ let imageNode = _images.imageRecord[props.status];
40
36
 
41
37
  if (props.image) {
42
38
  if (typeof props.image === 'string') {
43
39
  imageNode = _react.default.createElement("img", {
44
- src: props.image
40
+ src: props.image,
41
+ alt: 'error block image'
45
42
  });
46
43
  } else {
47
44
  imageNode = props.image;
@@ -0,0 +1 @@
1
+ export declare const busyImage: JSX.Element;
@@ -0,0 +1,102 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.busyImage = void 0;
7
+
8
+ var _react = _interopRequireDefault(require("react"));
9
+
10
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
+
12
+ const busyImage = _react.default.createElement("svg", {
13
+ viewBox: '0 0 400 400',
14
+ xmlns: 'http://www.w3.org/2000/svg',
15
+ xmlnsXlink: 'http://www.w3.org/1999/xlink'
16
+ }, _react.default.createElement("defs", null, _react.default.createElement("linearGradient", {
17
+ x1: '50%',
18
+ y1: '-116.862%',
19
+ x2: '50%',
20
+ y2: '90.764%',
21
+ id: 'error-block-image-busy-a'
22
+ }, _react.default.createElement("stop", {
23
+ stopColor: '#72A7FD',
24
+ stopOpacity: 0.207,
25
+ offset: '0%'
26
+ }), _react.default.createElement("stop", {
27
+ stopColor: '#72A7FD',
28
+ stopOpacity: 0.115,
29
+ offset: '80.072%'
30
+ }), _react.default.createElement("stop", {
31
+ stopColor: '#72A7FD',
32
+ stopOpacity: 0,
33
+ offset: '100%'
34
+ })), _react.default.createElement("circle", {
35
+ id: 'error-block-image-busy-b',
36
+ cx: 34.857,
37
+ cy: 34.857,
38
+ r: 34.857
39
+ })), _react.default.createElement("g", {
40
+ fill: 'none',
41
+ fillRule: 'evenodd'
42
+ }, _react.default.createElement("path", {
43
+ 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',
44
+ transform: 'translate(18.286 51.286)',
45
+ fill: 'url(#error-block-image-busy-a)'
46
+ }), _react.default.createElement("path", {
47
+ 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',
48
+ fill: '#377EFF'
49
+ }), _react.default.createElement("path", {
50
+ 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',
51
+ fill: '#003CFF',
52
+ fillRule: 'nonzero'
53
+ }), _react.default.createElement("path", {
54
+ 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',
55
+ fill: '#7EACFF'
56
+ }), _react.default.createElement("path", {
57
+ stroke: '#003CFF',
58
+ strokeWidth: 0.75,
59
+ strokeLinecap: 'round',
60
+ strokeLinejoin: 'round',
61
+ d: 'm196.824 197.298 52.216-.506M193.329 330.5h52.215'
62
+ }), _react.default.createElement("path", {
63
+ d: 'M167.367 228.041c-4.091-10.787-6.086-20.934-5.985-30.44',
64
+ stroke: '#FFF',
65
+ strokeWidth: 0.75,
66
+ strokeLinecap: 'round',
67
+ strokeLinejoin: 'round'
68
+ }), _react.default.createElement("circle", {
69
+ cx: 14.857,
70
+ cy: 14.857,
71
+ r: 14.857,
72
+ transform: 'translate(106.857 248.571)',
73
+ fill: '#FFCD6B',
74
+ fillRule: 'nonzero'
75
+ }), _react.default.createElement("g", {
76
+ transform: 'translate(236.571 284.571)'
77
+ }, _react.default.createElement("mask", {
78
+ id: 'error-block-image-busy-c',
79
+ fill: '#fff'
80
+ }, _react.default.createElement("use", {
81
+ xlinkHref: '#error-block-image-busy-b'
82
+ })), _react.default.createElement("use", {
83
+ fill: '#FBBE47',
84
+ fillRule: 'nonzero',
85
+ xlinkHref: '#error-block-image-busy-b'
86
+ }), _react.default.createElement("circle", {
87
+ fill: '#FFCD6B',
88
+ fillRule: 'nonzero',
89
+ mask: 'url(#error-block-image-busy-c)',
90
+ cx: 25.714,
91
+ cy: 28,
92
+ r: 34.857
93
+ }), _react.default.createElement("circle", {
94
+ fill: '#FFF',
95
+ fillRule: 'nonzero',
96
+ mask: 'url(#error-block-image-busy-c)',
97
+ cx: 22.286,
98
+ cy: 18.857,
99
+ r: 3.429
100
+ }))));
101
+
102
+ exports.busyImage = busyImage;
@@ -0,0 +1 @@
1
+ export declare const defaultImage: JSX.Element;