linkmore-design 1.0.51 → 1.0.53

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 (105) hide show
  1. package/dist/Button/style/index.d.ts +1 -1
  2. package/dist/LmEditTable/style/index.d.ts +1 -1
  3. package/dist/index.umd.js +2260 -32
  4. package/dist/index.umd.min.js +6 -6
  5. package/dist/message/hooks/useMessage.d.ts +7 -0
  6. package/dist/message/index.d.ts +63 -4
  7. package/es/Button/style/{style.css → index.css} +0 -0
  8. package/es/Button/style/index.d.ts +1 -1
  9. package/es/Button/style/index.js +1 -1
  10. package/es/ButtonTags/style/{style.css → index.css} +0 -0
  11. package/es/ButtonTags/style/index.js +1 -1
  12. package/es/CardTable/style/{style.css → index.css} +0 -0
  13. package/es/CardTable/style/index.js +1 -1
  14. package/es/Checkbox/style/{style.css → index.css} +0 -0
  15. package/es/Checkbox/style/index.js +1 -1
  16. package/es/CkFilter/style/{style.css → index.css} +0 -0
  17. package/es/CkFilter/style/index.js +1 -1
  18. package/es/CustomerService/style/{style.css → index.css} +0 -0
  19. package/es/CustomerService/style/index.js +1 -1
  20. package/es/EditTable/style/{style.css → index.css} +0 -0
  21. package/es/EditTable/style/index.js +1 -1
  22. package/es/EnlargeImg/style/{style.css → index.css} +0 -0
  23. package/es/EnlargeImg/style/index.js +1 -1
  24. package/es/Filter/style/{style.css → index.css} +0 -0
  25. package/es/Filter/style/index.js +1 -1
  26. package/es/IconSelect/style/{style.css → index.css} +0 -0
  27. package/es/IconSelect/style/index.js +1 -1
  28. package/es/Input/style/{style.css → index.css} +0 -0
  29. package/es/Input/style/index.js +1 -1
  30. package/es/LeftTable/style/{style.css → index.css} +0 -0
  31. package/es/LeftTable/style/index.js +1 -1
  32. package/es/LmEditTable/style/{style.css → index.css} +0 -0
  33. package/es/LmEditTable/style/index.d.ts +1 -1
  34. package/es/LmEditTable/style/index.js +1 -1
  35. package/es/LmTable/style/{style.css → index.css} +0 -0
  36. package/es/LmTable/style/index.js +1 -1
  37. package/es/OldModal/style/{style.css → index.css} +0 -0
  38. package/es/OldModal/style/index.js +1 -1
  39. package/es/PopTable/style/{style.css → index.css} +0 -0
  40. package/es/PopTable/style/index.js +1 -1
  41. package/es/ProTable/style/{style.css → index.css} +0 -0
  42. package/es/ProTable/style/index.js +1 -1
  43. package/es/Radio/style/{style.css → index.css} +0 -0
  44. package/es/Radio/style/index.js +1 -1
  45. package/es/TableRender/style/{style.css → index.css} +0 -0
  46. package/es/TableRender/style/index.js +1 -1
  47. package/es/UploadOss/style/{style.css → index.css} +0 -0
  48. package/es/UploadOss/style/index.js +1 -1
  49. package/es/VirtualList/style/{style.css → index.css} +0 -0
  50. package/es/VirtualList/style/index.js +1 -1
  51. package/es/message/hooks/useMessage.d.ts +7 -0
  52. package/es/message/hooks/useMessage.js +83 -0
  53. package/es/message/index.d.ts +63 -4
  54. package/es/message/index.js +241 -12
  55. package/es/message/style/index.css +27 -1
  56. package/lib/Button/style/{style.css → index.css} +0 -0
  57. package/lib/Button/style/index.d.ts +1 -1
  58. package/lib/Button/style/index.js +1 -1
  59. package/lib/ButtonTags/style/{style.css → index.css} +0 -0
  60. package/lib/ButtonTags/style/index.js +1 -1
  61. package/lib/CardTable/style/{style.css → index.css} +0 -0
  62. package/lib/CardTable/style/index.js +1 -1
  63. package/lib/Checkbox/style/{style.css → index.css} +0 -0
  64. package/lib/Checkbox/style/index.js +1 -1
  65. package/lib/CkFilter/style/{style.css → index.css} +0 -0
  66. package/lib/CkFilter/style/index.js +1 -1
  67. package/lib/CustomerService/style/{style.css → index.css} +0 -0
  68. package/lib/CustomerService/style/index.js +1 -1
  69. package/lib/EditTable/style/{style.css → index.css} +0 -0
  70. package/lib/EditTable/style/index.js +1 -1
  71. package/lib/EnlargeImg/style/{style.css → index.css} +0 -0
  72. package/lib/EnlargeImg/style/index.js +1 -1
  73. package/lib/Filter/style/{style.css → index.css} +0 -0
  74. package/lib/Filter/style/index.js +1 -1
  75. package/lib/IconSelect/style/{style.css → index.css} +0 -0
  76. package/lib/IconSelect/style/index.js +1 -1
  77. package/lib/Input/style/{style.css → index.css} +0 -0
  78. package/lib/Input/style/index.js +1 -1
  79. package/lib/LeftTable/style/{style.css → index.css} +0 -0
  80. package/lib/LeftTable/style/index.js +1 -1
  81. package/lib/LmEditTable/style/{style.css → index.css} +0 -0
  82. package/lib/LmEditTable/style/index.d.ts +1 -1
  83. package/lib/LmEditTable/style/index.js +1 -1
  84. package/lib/LmTable/style/{style.css → index.css} +0 -0
  85. package/lib/LmTable/style/index.js +1 -1
  86. package/lib/OldModal/style/{style.css → index.css} +0 -0
  87. package/lib/OldModal/style/index.js +1 -1
  88. package/lib/PopTable/style/{style.css → index.css} +0 -0
  89. package/lib/PopTable/style/index.js +1 -1
  90. package/lib/ProTable/style/{style.css → index.css} +0 -0
  91. package/lib/ProTable/style/index.js +1 -1
  92. package/lib/Radio/style/{style.css → index.css} +0 -0
  93. package/lib/Radio/style/index.js +1 -1
  94. package/lib/TableRender/style/{style.css → index.css} +0 -0
  95. package/lib/TableRender/style/index.js +1 -1
  96. package/lib/UploadOss/style/{style.css → index.css} +0 -0
  97. package/lib/UploadOss/style/index.js +1 -1
  98. package/lib/VirtualList/style/{style.css → index.css} +0 -0
  99. package/lib/VirtualList/style/index.js +1 -1
  100. package/lib/message/hooks/useMessage.d.ts +7 -0
  101. package/lib/message/hooks/useMessage.js +101 -0
  102. package/lib/message/index.d.ts +63 -4
  103. package/lib/message/index.js +262 -16
  104. package/lib/message/style/index.css +27 -1
  105. package/package.json +1 -1
File without changes
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
 
3
- require("./style.css");
3
+ require("./index.css");
@@ -0,0 +1,7 @@
1
+ import type { NoticeContent as RCNoticeContent, NotificationInstance as RCNotificationInstance } from 'rc-notification/lib/Notification';
2
+ import * as React from 'react';
3
+ import type { ArgsProps, MessageInstance } from '..';
4
+ export default function createUseMessage(getRcNotificationInstance: (args: ArgsProps, callback: (info: {
5
+ prefixCls: string;
6
+ instance: RCNotificationInstance;
7
+ }) => void) => void, getRCNoticeProps: (args: ArgsProps, prefixCls: string) => RCNoticeContent): () => [MessageInstance, React.ReactElement];
@@ -0,0 +1,101 @@
1
+ "use strict";
2
+
3
+ var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
4
+
5
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
6
+
7
+ Object.defineProperty(exports, "__esModule", {
8
+ value: true
9
+ });
10
+ exports.default = createUseMessage;
11
+
12
+ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
13
+
14
+ var _useNotification = _interopRequireDefault(require("rc-notification/lib/useNotification"));
15
+
16
+ var React = _interopRequireWildcard(require("react"));
17
+
18
+ var _ = require("..");
19
+
20
+ var _configProvider = require("antd/es/config-provider");
21
+
22
+ function createUseMessage(getRcNotificationInstance, getRCNoticeProps) {
23
+ var useMessage = function useMessage() {
24
+ // We can only get content by render
25
+ var getPrefixCls;
26
+ var getPopupContainer; // We create a proxy to handle delay created instance
27
+
28
+ var innerInstance = null;
29
+ var proxy = {
30
+ add: function add(noticeProps, holderCallback) {
31
+ innerInstance === null || innerInstance === void 0 ? void 0 : innerInstance.component.add(noticeProps, holderCallback);
32
+ }
33
+ };
34
+
35
+ var _useRCNotification = (0, _useNotification.default)(proxy),
36
+ _useRCNotification2 = (0, _slicedToArray2.default)(_useRCNotification, 2),
37
+ hookNotify = _useRCNotification2[0],
38
+ holder = _useRCNotification2[1];
39
+
40
+ function notify(args) {
41
+ var customizePrefixCls = args.prefixCls;
42
+ var mergedPrefixCls = getPrefixCls('message', customizePrefixCls);
43
+ var rootPrefixCls = getPrefixCls();
44
+ var target = args.key || (0, _.getKeyThenIncreaseKey)();
45
+ var closePromise = new Promise(function (resolve) {
46
+ var callback = function callback() {
47
+ if (typeof args.onClose === 'function') {
48
+ args.onClose();
49
+ }
50
+
51
+ return resolve(true);
52
+ };
53
+
54
+ getRcNotificationInstance(Object.assign(Object.assign({}, args), {
55
+ prefixCls: mergedPrefixCls,
56
+ rootPrefixCls: rootPrefixCls,
57
+ getPopupContainer: getPopupContainer
58
+ }), function (_ref) {
59
+ var prefixCls = _ref.prefixCls,
60
+ instance = _ref.instance;
61
+ innerInstance = instance;
62
+ hookNotify(getRCNoticeProps(Object.assign(Object.assign({}, args), {
63
+ key: target,
64
+ onClose: callback
65
+ }), prefixCls));
66
+ });
67
+ });
68
+
69
+ var result = function result() {
70
+ if (innerInstance) {
71
+ innerInstance.removeNotice(target);
72
+ }
73
+ };
74
+
75
+ result.then = function (filled, rejected) {
76
+ return closePromise.then(filled, rejected);
77
+ };
78
+
79
+ result.promise = closePromise;
80
+ return result;
81
+ } // Fill functions
82
+
83
+
84
+ var hookApiRef = React.useRef({});
85
+ hookApiRef.current.open = notify;
86
+
87
+ _.typeList.forEach(function (type) {
88
+ return (0, _.attachTypeApi)(hookApiRef.current, type);
89
+ });
90
+
91
+ return [hookApiRef.current, /*#__PURE__*/React.createElement(_configProvider.ConfigConsumer, {
92
+ key: "holder"
93
+ }, function (context) {
94
+ getPrefixCls = context.getPrefixCls;
95
+ getPopupContainer = context.getPopupContainer;
96
+ return holder;
97
+ })];
98
+ };
99
+
100
+ return useMessage;
101
+ }
@@ -1,7 +1,66 @@
1
+ import type { NotificationInstance as RCNotificationInstance } from 'rc-notification/lib/Notification';
1
2
  import React from 'react';
2
- import { message } from 'antd';
3
- export interface IMessageProps {
4
- className?: string;
3
+ export declare function getKeyThenIncreaseKey(): number;
4
+ export interface ConfigOptions {
5
+ top?: number;
6
+ duration?: number;
7
+ prefixCls?: string;
8
+ getContainer?: () => HTMLElement;
9
+ transitionName?: string;
10
+ maxCount?: number;
11
+ rtl?: boolean;
12
+ }
13
+ export interface ThenableArgument {
14
+ (val: any): void;
15
+ }
16
+ export interface MessageType extends PromiseLike<any> {
17
+ (): void;
18
+ }
19
+ declare const typeToIcon: {
20
+ info: React.ForwardRefExoticComponent<Pick<import("@ant-design/icons/lib/components/AntdIcon").AntdIconProps, "children" | "className" | "size" | "type" | "default" | "onClick" | "download" | "href" | "hrefLang" | "media" | "rel" | "target" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "autoFocus" | "disabled" | "form" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "value" | "list" | "step" | "shape" | "cite" | "data" | "label" | "span" | "summary" | "pattern" | "maxLength" | "open" | "multiple" | "key" | "classID" | "height" | "width" | "checked" | "max" | "required" | "high" | "low" | "start" | "content" | "rotate" | "acceptCharset" | "action" | "method" | "noValidate" | "nonce" | "async" | "manifest" | "wrap" | "src" | "accept" | "allowFullScreen" | "allowTransparency" | "alt" | "as" | "autoComplete" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "cols" | "colSpan" | "controls" | "coords" | "crossOrigin" | "dateTime" | "defer" | "encType" | "frameBorder" | "headers" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "loop" | "marginHeight" | "marginWidth" | "mediaGroup" | "min" | "minLength" | "muted" | "optimum" | "playsInline" | "poster" | "preload" | "readOnly" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "sizes" | "srcDoc" | "srcLang" | "srcSet" | "useMap" | "wmode" | "spin" | "twoToneColor"> & React.RefAttributes<HTMLSpanElement>>;
21
+ success: React.ForwardRefExoticComponent<Pick<import("@ant-design/icons/lib/components/AntdIcon").AntdIconProps, "children" | "className" | "size" | "type" | "default" | "onClick" | "download" | "href" | "hrefLang" | "media" | "rel" | "target" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "autoFocus" | "disabled" | "form" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "value" | "list" | "step" | "shape" | "cite" | "data" | "label" | "span" | "summary" | "pattern" | "maxLength" | "open" | "multiple" | "key" | "classID" | "height" | "width" | "checked" | "max" | "required" | "high" | "low" | "start" | "content" | "rotate" | "acceptCharset" | "action" | "method" | "noValidate" | "nonce" | "async" | "manifest" | "wrap" | "src" | "accept" | "allowFullScreen" | "allowTransparency" | "alt" | "as" | "autoComplete" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "cols" | "colSpan" | "controls" | "coords" | "crossOrigin" | "dateTime" | "defer" | "encType" | "frameBorder" | "headers" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "loop" | "marginHeight" | "marginWidth" | "mediaGroup" | "min" | "minLength" | "muted" | "optimum" | "playsInline" | "poster" | "preload" | "readOnly" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "sizes" | "srcDoc" | "srcLang" | "srcSet" | "useMap" | "wmode" | "spin" | "twoToneColor"> & React.RefAttributes<HTMLSpanElement>>;
22
+ error: React.ForwardRefExoticComponent<Pick<import("@ant-design/icons/lib/components/AntdIcon").AntdIconProps, "children" | "className" | "size" | "type" | "default" | "onClick" | "download" | "href" | "hrefLang" | "media" | "rel" | "target" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "autoFocus" | "disabled" | "form" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "value" | "list" | "step" | "shape" | "cite" | "data" | "label" | "span" | "summary" | "pattern" | "maxLength" | "open" | "multiple" | "key" | "classID" | "height" | "width" | "checked" | "max" | "required" | "high" | "low" | "start" | "content" | "rotate" | "acceptCharset" | "action" | "method" | "noValidate" | "nonce" | "async" | "manifest" | "wrap" | "src" | "accept" | "allowFullScreen" | "allowTransparency" | "alt" | "as" | "autoComplete" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "cols" | "colSpan" | "controls" | "coords" | "crossOrigin" | "dateTime" | "defer" | "encType" | "frameBorder" | "headers" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "loop" | "marginHeight" | "marginWidth" | "mediaGroup" | "min" | "minLength" | "muted" | "optimum" | "playsInline" | "poster" | "preload" | "readOnly" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "sizes" | "srcDoc" | "srcLang" | "srcSet" | "useMap" | "wmode" | "spin" | "twoToneColor"> & React.RefAttributes<HTMLSpanElement>>;
23
+ warning: React.ForwardRefExoticComponent<Pick<import("@ant-design/icons/lib/components/AntdIcon").AntdIconProps, "children" | "className" | "size" | "type" | "default" | "onClick" | "download" | "href" | "hrefLang" | "media" | "rel" | "target" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "autoFocus" | "disabled" | "form" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "value" | "list" | "step" | "shape" | "cite" | "data" | "label" | "span" | "summary" | "pattern" | "maxLength" | "open" | "multiple" | "key" | "classID" | "height" | "width" | "checked" | "max" | "required" | "high" | "low" | "start" | "content" | "rotate" | "acceptCharset" | "action" | "method" | "noValidate" | "nonce" | "async" | "manifest" | "wrap" | "src" | "accept" | "allowFullScreen" | "allowTransparency" | "alt" | "as" | "autoComplete" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "cols" | "colSpan" | "controls" | "coords" | "crossOrigin" | "dateTime" | "defer" | "encType" | "frameBorder" | "headers" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "loop" | "marginHeight" | "marginWidth" | "mediaGroup" | "min" | "minLength" | "muted" | "optimum" | "playsInline" | "poster" | "preload" | "readOnly" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "sizes" | "srcDoc" | "srcLang" | "srcSet" | "useMap" | "wmode" | "spin" | "twoToneColor"> & React.RefAttributes<HTMLSpanElement>>;
24
+ loading: React.ForwardRefExoticComponent<Pick<import("@ant-design/icons/lib/components/AntdIcon").AntdIconProps, "children" | "className" | "size" | "type" | "default" | "onClick" | "download" | "href" | "hrefLang" | "media" | "rel" | "target" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "autoFocus" | "disabled" | "form" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "value" | "list" | "step" | "shape" | "cite" | "data" | "label" | "span" | "summary" | "pattern" | "maxLength" | "open" | "multiple" | "key" | "classID" | "height" | "width" | "checked" | "max" | "required" | "high" | "low" | "start" | "content" | "rotate" | "acceptCharset" | "action" | "method" | "noValidate" | "nonce" | "async" | "manifest" | "wrap" | "src" | "accept" | "allowFullScreen" | "allowTransparency" | "alt" | "as" | "autoComplete" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "cols" | "colSpan" | "controls" | "coords" | "crossOrigin" | "dateTime" | "defer" | "encType" | "frameBorder" | "headers" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "loop" | "marginHeight" | "marginWidth" | "mediaGroup" | "min" | "minLength" | "muted" | "optimum" | "playsInline" | "poster" | "preload" | "readOnly" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "sizes" | "srcDoc" | "srcLang" | "srcSet" | "useMap" | "wmode" | "spin" | "twoToneColor"> & React.RefAttributes<HTMLSpanElement>>;
25
+ };
26
+ export declare type NoticeType = keyof typeof typeToIcon;
27
+ export declare const typeList: ("loading" | "warning" | "error" | "info" | "success")[];
28
+ export interface ArgsProps {
29
+ content: any;
30
+ duration?: number;
31
+ type?: NoticeType;
32
+ prefixCls?: string;
33
+ rootPrefixCls?: string;
34
+ getPopupContainer?: (triggerNode: HTMLElement) => HTMLElement;
35
+ onClose?: () => void;
36
+ icon?: React.ReactNode;
37
+ key?: string | number;
5
38
  style?: React.CSSProperties;
39
+ className?: string;
40
+ onClick?: (e: React.MouseEvent<HTMLDivElement>) => void;
41
+ /** 是否要显示进度条 */
42
+ progress?: boolean;
43
+ }
44
+ declare type ConfigContent = React.ReactNode;
45
+ declare type ConfigDuration = number | (() => void);
46
+ declare type JointContent = ConfigContent | ArgsProps;
47
+ export declare type ConfigOnClose = () => void;
48
+ export declare function attachTypeApi(originalApi: MessageApi, type: NoticeType): void;
49
+ export interface MessageInstance {
50
+ info(content: JointContent, duration?: ConfigDuration, onClose?: ConfigOnClose): MessageType;
51
+ success(content: JointContent, duration?: ConfigDuration, onClose?: ConfigOnClose): MessageType;
52
+ error(content: JointContent, duration?: ConfigDuration, onClose?: ConfigOnClose): MessageType;
53
+ warning(content: JointContent, duration?: ConfigDuration, onClose?: ConfigOnClose): MessageType;
54
+ loading(content: JointContent, duration?: ConfigDuration, onClose?: ConfigOnClose): MessageType;
55
+ open(args: ArgsProps): MessageType;
56
+ }
57
+ export interface MessageApi extends MessageInstance {
58
+ warn(content: JointContent, duration?: ConfigDuration, onClose?: ConfigOnClose): MessageType;
59
+ config(options: ConfigOptions): void;
60
+ destroy(messageKey?: React.Key): void;
61
+ useMessage(): [MessageInstance, React.ReactElement];
6
62
  }
7
- export default message;
63
+ /** @private test Only function. Not work on production */
64
+ export declare const getInstance: () => RCNotificationInstance;
65
+ declare const _default: MessageApi;
66
+ export default _default;
@@ -1,24 +1,270 @@
1
1
  "use strict";
2
2
 
3
+ var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
4
+
3
5
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
6
 
5
7
  Object.defineProperty(exports, "__esModule", {
6
8
  value: true
7
9
  });
8
- exports.default = void 0;
9
-
10
- require("antd/es/message/style");
11
-
12
- var _message2 = _interopRequireDefault(require("antd/es/message"));
13
-
14
- // const prefixCls = 'lm_message'
15
- // const LMMessage: React.FC<IMessageProps> = (props) => {
16
- // const { children, className, ...others } = props
17
- // return (
18
- // <div className={classNames(className, prefixCls)} {...others}>
19
- // {children}
20
- // </div>
21
- // )
22
- // }
23
- var _default = _message2.default;
10
+ exports.attachTypeApi = attachTypeApi;
11
+ exports.getInstance = exports.default = void 0;
12
+ exports.getKeyThenIncreaseKey = getKeyThenIncreaseKey;
13
+ exports.typeList = void 0;
14
+
15
+ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
16
+
17
+ var _icons = require("@ant-design/icons");
18
+
19
+ var _classnames = _interopRequireDefault(require("classnames"));
20
+
21
+ var _rcNotification = _interopRequireDefault(require("rc-notification"));
22
+
23
+ var _react = _interopRequireDefault(require("react"));
24
+
25
+ var _configProvider = _interopRequireWildcard(require("antd/es/config-provider"));
26
+
27
+ var _useMessage = _interopRequireDefault(require("./hooks/useMessage"));
28
+
29
+ var messageInstance;
30
+ var defaultDuration = 3;
31
+ var defaultTop;
32
+ var key = 1;
33
+ var localPrefixCls = '';
34
+ var transitionName = 'move-up';
35
+ var hasTransitionName = false;
36
+ var getContainer;
37
+ var maxCount;
38
+ var rtl = false;
39
+
40
+ function getKeyThenIncreaseKey() {
41
+ return key++;
42
+ }
43
+
44
+ function setMessageConfig(options) {
45
+ if (options.top !== undefined) {
46
+ defaultTop = options.top;
47
+ messageInstance = null; // delete messageInstance for new defaultTop
48
+ }
49
+
50
+ if (options.duration !== undefined) {
51
+ defaultDuration = options.duration;
52
+ }
53
+
54
+ if (options.prefixCls !== undefined) {
55
+ localPrefixCls = options.prefixCls;
56
+ }
57
+
58
+ if (options.getContainer !== undefined) {
59
+ getContainer = options.getContainer;
60
+ messageInstance = null; // delete messageInstance for new getContainer
61
+ }
62
+
63
+ if (options.transitionName !== undefined) {
64
+ transitionName = options.transitionName;
65
+ messageInstance = null; // delete messageInstance for new transitionName
66
+
67
+ hasTransitionName = true;
68
+ }
69
+
70
+ if (options.maxCount !== undefined) {
71
+ maxCount = options.maxCount;
72
+ messageInstance = null;
73
+ }
74
+
75
+ if (options.rtl !== undefined) {
76
+ rtl = options.rtl;
77
+ }
78
+ }
79
+
80
+ function getRCNotificationInstance(args, callback) {
81
+ var customizePrefixCls = args.prefixCls,
82
+ getContextPopupContainer = args.getPopupContainer;
83
+
84
+ var _globalConfig = (0, _configProvider.globalConfig)(),
85
+ getPrefixCls = _globalConfig.getPrefixCls,
86
+ getRootPrefixCls = _globalConfig.getRootPrefixCls,
87
+ getIconPrefixCls = _globalConfig.getIconPrefixCls;
88
+
89
+ var prefixCls = getPrefixCls('message', customizePrefixCls || localPrefixCls);
90
+ var rootPrefixCls = getRootPrefixCls(args.rootPrefixCls, prefixCls);
91
+ var iconPrefixCls = getIconPrefixCls();
92
+
93
+ if (messageInstance) {
94
+ callback({
95
+ prefixCls: prefixCls,
96
+ rootPrefixCls: rootPrefixCls,
97
+ iconPrefixCls: iconPrefixCls,
98
+ instance: messageInstance
99
+ });
100
+ return;
101
+ }
102
+
103
+ var instanceConfig = {
104
+ prefixCls: prefixCls,
105
+ transitionName: hasTransitionName ? transitionName : "".concat(rootPrefixCls, "-").concat(transitionName),
106
+ style: {
107
+ top: defaultTop
108
+ },
109
+ getContainer: getContainer || getContextPopupContainer,
110
+ maxCount: maxCount
111
+ };
112
+
113
+ _rcNotification.default.newInstance(instanceConfig, function (instance) {
114
+ if (messageInstance) {
115
+ callback({
116
+ prefixCls: prefixCls,
117
+ rootPrefixCls: rootPrefixCls,
118
+ iconPrefixCls: iconPrefixCls,
119
+ instance: messageInstance
120
+ });
121
+ return;
122
+ }
123
+
124
+ messageInstance = instance;
125
+
126
+ if (process.env.NODE_ENV === 'test') {
127
+ messageInstance.config = instanceConfig;
128
+ }
129
+
130
+ callback({
131
+ prefixCls: prefixCls,
132
+ rootPrefixCls: rootPrefixCls,
133
+ iconPrefixCls: iconPrefixCls,
134
+ instance: instance
135
+ });
136
+ });
137
+ }
138
+
139
+ var typeToIcon = {
140
+ info: _icons.InfoCircleFilled,
141
+ success: _icons.CheckCircleFilled,
142
+ error: _icons.CloseCircleFilled,
143
+ warning: _icons.ExclamationCircleFilled,
144
+ loading: _icons.LoadingOutlined
145
+ };
146
+ var typeList = Object.keys(typeToIcon);
147
+ exports.typeList = typeList;
148
+
149
+ function getRCNoticeProps(args, prefixCls, iconPrefixCls) {
150
+ var _classNames;
151
+
152
+ var duration = args.duration !== undefined ? args.duration : defaultDuration;
153
+ var progress = args.progress === false ? false : true;
154
+ var IconComponent = typeToIcon[args.type];
155
+ var messageClass = (0, _classnames.default)("".concat(prefixCls, "-custom-content"), (_classNames = {}, (0, _defineProperty2.default)(_classNames, "".concat(prefixCls, "-").concat(args.type), args.type), (0, _defineProperty2.default)(_classNames, "".concat(prefixCls, "-rtl"), rtl === true), _classNames));
156
+ return {
157
+ key: args.key,
158
+ duration: duration,
159
+ style: args.style || {},
160
+ className: (0, _classnames.default)(args.className, 'lm_message'),
161
+ content: /*#__PURE__*/_react.default.createElement(_configProvider.default, {
162
+ iconPrefixCls: iconPrefixCls
163
+ }, /*#__PURE__*/_react.default.createElement("div", {
164
+ className: messageClass
165
+ }, args.icon || IconComponent && /*#__PURE__*/_react.default.createElement(IconComponent, null), /*#__PURE__*/_react.default.createElement("span", null, args.content), progress && duration > 0 && /*#__PURE__*/_react.default.createElement("div", {
166
+ className: 'message_progress',
167
+ style: {
168
+ animationDuration: "".concat(duration, "s")
169
+ }
170
+ }))),
171
+ onClose: args.onClose,
172
+ onClick: args.onClick
173
+ };
174
+ }
175
+
176
+ function notice(args) {
177
+ var target = args.key || getKeyThenIncreaseKey();
178
+ var closePromise = new Promise(function (resolve) {
179
+ var callback = function callback() {
180
+ if (typeof args.onClose === 'function') {
181
+ args.onClose();
182
+ }
183
+
184
+ return resolve(true);
185
+ };
186
+
187
+ getRCNotificationInstance(args, function (_ref) {
188
+ var prefixCls = _ref.prefixCls,
189
+ iconPrefixCls = _ref.iconPrefixCls,
190
+ instance = _ref.instance;
191
+ instance.notice(getRCNoticeProps(Object.assign(Object.assign({}, args), {
192
+ key: target,
193
+ onClose: callback
194
+ }), prefixCls, iconPrefixCls));
195
+ });
196
+ });
197
+
198
+ var result = function result() {
199
+ if (messageInstance) {
200
+ messageInstance.removeNotice(target);
201
+ }
202
+ };
203
+
204
+ result.then = function (filled, rejected) {
205
+ return closePromise.then(filled, rejected);
206
+ };
207
+
208
+ result.promise = closePromise;
209
+ return result;
210
+ }
211
+
212
+ function isArgsProps(content) {
213
+ return Object.prototype.toString.call(content) === '[object Object]' && !!content.content;
214
+ }
215
+
216
+ var api = {
217
+ open: notice,
218
+ config: setMessageConfig,
219
+ destroy: function destroy(messageKey) {
220
+ if (messageInstance) {
221
+ if (messageKey) {
222
+ var _messageInstance = messageInstance,
223
+ removeNotice = _messageInstance.removeNotice;
224
+ removeNotice(messageKey);
225
+ } else {
226
+ var _messageInstance2 = messageInstance,
227
+ destroy = _messageInstance2.destroy;
228
+ destroy();
229
+ messageInstance = null;
230
+ }
231
+ }
232
+ }
233
+ };
234
+
235
+ function attachTypeApi(originalApi, type) {
236
+ originalApi[type] = function (content, duration, onClose) {
237
+ if (isArgsProps(content)) {
238
+ return originalApi.open(Object.assign(Object.assign({}, content), {
239
+ type: type
240
+ }));
241
+ }
242
+
243
+ if (typeof duration === 'function') {
244
+ onClose = duration;
245
+ duration = undefined;
246
+ }
247
+
248
+ return originalApi.open({
249
+ content: content,
250
+ duration: duration,
251
+ type: type,
252
+ onClose: onClose
253
+ });
254
+ };
255
+ }
256
+
257
+ typeList.forEach(function (type) {
258
+ return attachTypeApi(api, type);
259
+ });
260
+ api.warn = api.warning;
261
+ api.useMessage = (0, _useMessage.default)(getRCNotificationInstance, getRCNoticeProps);
262
+ /** @private test Only function. Not work on production */
263
+
264
+ var getInstance = function getInstance() {
265
+ return process.env.NODE_ENV === 'test' ? messageInstance : null;
266
+ };
267
+
268
+ exports.getInstance = getInstance;
269
+ var _default = api;
24
270
  exports.default = _default;
@@ -503,7 +503,33 @@ html {
503
503
  .card_cell_content:hover .card_cell_body .card_cell_checkbox {
504
504
  opacity: 1;
505
505
  }
506
- .ant-message .ant-message-notice-content {
506
+ .lm_message .ant-message-notice-content {
507
+ position: relative;
507
508
  padding: 8px 16px;
508
509
  font-size: 12px;
509
510
  }
511
+ .lm_message .message_progress {
512
+ position: absolute;
513
+ width: 100%;
514
+ height: 2px;
515
+ background-color: #52C41A;
516
+ left: 0;
517
+ bottom: 0;
518
+ animation-name: Progress;
519
+ animation-iteration-count: 1;
520
+ animation-fill-mode: forwards;
521
+ transition: width 0.2s;
522
+ }
523
+ .lm_message:hover .message_progress {
524
+ width: 100%;
525
+ animation-name: none;
526
+ animation-play-state: paused;
527
+ }
528
+ @keyframes Progress {
529
+ from {
530
+ width: 100%;
531
+ }
532
+ to {
533
+ width: 0;
534
+ }
535
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "linkmore-design",
3
- "version": "1.0.51",
3
+ "version": "1.0.53",
4
4
  "author": {
5
5
  "name": "nowthen",
6
6
  "email": "rnlvwyx@gmail.com"