@opensumi/ide-components 2.12.1-next-079c1930
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.
- package/README.md +65 -0
- package/dist/index.css +1 -0
- package/dist/index.js +26330 -0
- package/lib/badge/index.d.ts +4 -0
- package/lib/badge/index.d.ts.map +1 -0
- package/lib/badge/index.js +13 -0
- package/lib/badge/index.js.map +1 -0
- package/lib/badge/styles.less +17 -0
- package/lib/button/index.d.ts +54 -0
- package/lib/button/index.d.ts.map +1 -0
- package/lib/button/index.js +68 -0
- package/lib/button/index.js.map +1 -0
- package/lib/button/style.less +251 -0
- package/lib/checkbox/index.d.ts +9 -0
- package/lib/checkbox/index.d.ts.map +1 -0
- package/lib/checkbox/index.js +27 -0
- package/lib/checkbox/index.js.map +1 -0
- package/lib/checkbox/style.less +80 -0
- package/lib/common.d.ts +7 -0
- package/lib/common.d.ts.map +1 -0
- package/lib/common.js +11 -0
- package/lib/common.js.map +1 -0
- package/lib/dialog/index.d.ts +26 -0
- package/lib/dialog/index.d.ts.map +1 -0
- package/lib/dialog/index.js +28 -0
- package/lib/dialog/index.js.map +1 -0
- package/lib/dialog/styles.less +85 -0
- package/lib/dropdown/dropdown.d.ts +48 -0
- package/lib/dropdown/dropdown.d.ts.map +1 -0
- package/lib/dropdown/dropdown.js +80 -0
- package/lib/dropdown/dropdown.js.map +1 -0
- package/lib/dropdown/index.d.ts +5 -0
- package/lib/dropdown/index.d.ts.map +1 -0
- package/lib/dropdown/index.js +8 -0
- package/lib/dropdown/index.js.map +1 -0
- package/lib/dropdown/style.less +254 -0
- package/lib/icon/icon.d.ts +33 -0
- package/lib/icon/icon.d.ts.map +1 -0
- package/lib/icon/icon.js +71 -0
- package/lib/icon/icon.js.map +1 -0
- package/lib/icon/iconfont/iconManager.d.ts +187 -0
- package/lib/icon/iconfont/iconManager.d.ts.map +1 -0
- package/lib/icon/iconfont/iconManager.js +67 -0
- package/lib/icon/iconfont/iconManager.js.map +1 -0
- package/lib/icon/iconfont/iconMap.d.ts +160 -0
- package/lib/icon/iconfont/iconMap.d.ts.map +1 -0
- package/lib/icon/iconfont/iconMap.js +165 -0
- package/lib/icon/iconfont/iconMap.js.map +1 -0
- package/lib/icon/iconfont/iconfont.css +646 -0
- package/lib/icon/iconfont/iconfont.eot +0 -0
- package/lib/icon/iconfont/iconfont.html +1522 -0
- package/lib/icon/iconfont/iconfont.svg +333 -0
- package/lib/icon/iconfont/iconfont.ttf +0 -0
- package/lib/icon/iconfont/iconfont.woff +0 -0
- package/lib/icon/iconfont/iconfont.woff2 +0 -0
- package/lib/icon/iconfont-cn.d.ts +15 -0
- package/lib/icon/iconfont-cn.d.ts.map +1 -0
- package/lib/icon/iconfont-cn.js +78 -0
- package/lib/icon/iconfont-cn.js.map +1 -0
- package/lib/icon/index.d.ts +4 -0
- package/lib/icon/index.d.ts.map +1 -0
- package/lib/icon/index.js +9 -0
- package/lib/icon/index.js.map +1 -0
- package/lib/icon/styles.less +105 -0
- package/lib/icon/util.d.ts +29 -0
- package/lib/icon/util.d.ts.map +1 -0
- package/lib/icon/util.js +53 -0
- package/lib/icon/util.js.map +1 -0
- package/lib/index.d.ts +20 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +23 -0
- package/lib/index.js.map +1 -0
- package/lib/input/HistoryInputBox.d.ts +38 -0
- package/lib/input/HistoryInputBox.d.ts.map +1 -0
- package/lib/input/HistoryInputBox.js +114 -0
- package/lib/input/HistoryInputBox.js.map +1 -0
- package/lib/input/Input.d.ts +43 -0
- package/lib/input/Input.d.ts.map +1 -0
- package/lib/input/Input.js +124 -0
- package/lib/input/Input.js.map +1 -0
- package/lib/input/ProxiedInput.d.ts +8 -0
- package/lib/input/ProxiedInput.d.ts.map +1 -0
- package/lib/input/ProxiedInput.js +67 -0
- package/lib/input/ProxiedInput.js.map +1 -0
- package/lib/input/TextArea.d.ts +6 -0
- package/lib/input/TextArea.d.ts.map +1 -0
- package/lib/input/TextArea.js +11 -0
- package/lib/input/TextArea.js.map +1 -0
- package/lib/input/ValidateInput.d.ts +20 -0
- package/lib/input/ValidateInput.d.ts.map +1 -0
- package/lib/input/ValidateInput.js +59 -0
- package/lib/input/ValidateInput.js.map +1 -0
- package/lib/input/index.d.ts +5 -0
- package/lib/input/index.d.ts.map +1 -0
- package/lib/input/index.js +8 -0
- package/lib/input/index.js.map +1 -0
- package/lib/input/input.less +83 -0
- package/lib/input/validate-input.less +88 -0
- package/lib/locale-context-provider.d.ts +16 -0
- package/lib/locale-context-provider.d.ts.map +1 -0
- package/lib/locale-context-provider.js +26 -0
- package/lib/locale-context-provider.js.map +1 -0
- package/lib/menu/MenuContext.d.ts +8 -0
- package/lib/menu/MenuContext.d.ts.map +1 -0
- package/lib/menu/MenuContext.js +8 -0
- package/lib/menu/MenuContext.js.map +1 -0
- package/lib/menu/MenuItem.d.ts +29 -0
- package/lib/menu/MenuItem.d.ts.map +1 -0
- package/lib/menu/MenuItem.js +32 -0
- package/lib/menu/MenuItem.js.map +1 -0
- package/lib/menu/SubMenu.d.ts +30 -0
- package/lib/menu/SubMenu.d.ts.map +1 -0
- package/lib/menu/SubMenu.js +28 -0
- package/lib/menu/SubMenu.js.map +1 -0
- package/lib/menu/index.d.ts +64 -0
- package/lib/menu/index.d.ts.map +1 -0
- package/lib/menu/index.js +203 -0
- package/lib/menu/index.js.map +1 -0
- package/lib/menu/style.less +513 -0
- package/lib/message/index.d.ts +10 -0
- package/lib/message/index.d.ts.map +1 -0
- package/lib/message/index.js +21 -0
- package/lib/message/index.js.map +1 -0
- package/lib/message/message.d.ts +42 -0
- package/lib/message/message.d.ts.map +1 -0
- package/lib/message/message.js +128 -0
- package/lib/message/message.js.map +1 -0
- package/lib/message/style.less +76 -0
- package/lib/modal/Modal.d.ts +127 -0
- package/lib/modal/Modal.d.ts.map +1 -0
- package/lib/modal/Modal.js +87 -0
- package/lib/modal/Modal.js.map +1 -0
- package/lib/modal/index.d.ts +5 -0
- package/lib/modal/index.d.ts.map +1 -0
- package/lib/modal/index.js +8 -0
- package/lib/modal/index.js.map +1 -0
- package/lib/modal/locale.d.ts +8 -0
- package/lib/modal/locale.d.ts.map +1 -0
- package/lib/modal/locale.js +23 -0
- package/lib/modal/locale.js.map +1 -0
- package/lib/modal/style.less +168 -0
- package/lib/notification/index.d.ts +8 -0
- package/lib/notification/index.d.ts.map +1 -0
- package/lib/notification/index.js +80 -0
- package/lib/notification/index.js.map +1 -0
- package/lib/notification/notification.d.ts +44 -0
- package/lib/notification/notification.d.ts.map +1 -0
- package/lib/notification/notification.js +156 -0
- package/lib/notification/notification.js.map +1 -0
- package/lib/notification/notification.less +231 -0
- package/lib/overlay/index.d.ts +19 -0
- package/lib/overlay/index.d.ts.map +1 -0
- package/lib/overlay/index.js +13 -0
- package/lib/overlay/index.js.map +1 -0
- package/lib/overlay/styles.less +44 -0
- package/lib/popover/index.d.ts +28 -0
- package/lib/popover/index.d.ts.map +1 -0
- package/lib/popover/index.js +127 -0
- package/lib/popover/index.js.map +1 -0
- package/lib/popover/styles.less +135 -0
- package/lib/recycle-list/RecycleList.d.ts +105 -0
- package/lib/recycle-list/RecycleList.d.ts.map +1 -0
- package/lib/recycle-list/RecycleList.js +253 -0
- package/lib/recycle-list/RecycleList.js.map +1 -0
- package/lib/recycle-list/index.d.ts +2 -0
- package/lib/recycle-list/index.d.ts.map +1 -0
- package/lib/recycle-list/index.js +5 -0
- package/lib/recycle-list/index.js.map +1 -0
- package/lib/recycle-tree/RecycleTree.d.ts +254 -0
- package/lib/recycle-tree/RecycleTree.d.ts.map +1 -0
- package/lib/recycle-tree/RecycleTree.js +635 -0
- package/lib/recycle-tree/RecycleTree.js.map +1 -0
- package/lib/recycle-tree/TreeNodeRendererWrap.d.ts +37 -0
- package/lib/recycle-tree/TreeNodeRendererWrap.d.ts.map +1 -0
- package/lib/recycle-tree/TreeNodeRendererWrap.js +18 -0
- package/lib/recycle-tree/TreeNodeRendererWrap.js.map +1 -0
- package/lib/recycle-tree/decorators/Adaptive/index.d.ts +10 -0
- package/lib/recycle-tree/decorators/Adaptive/index.d.ts.map +1 -0
- package/lib/recycle-tree/decorators/Adaptive/index.js +97 -0
- package/lib/recycle-tree/decorators/Adaptive/index.js.map +1 -0
- package/lib/recycle-tree/decorators/Filter/filter.less +11 -0
- package/lib/recycle-tree/decorators/Filter/index.d.ts +26 -0
- package/lib/recycle-tree/decorators/Filter/index.d.ts.map +1 -0
- package/lib/recycle-tree/decorators/Filter/index.js +53 -0
- package/lib/recycle-tree/decorators/Filter/index.js.map +1 -0
- package/lib/recycle-tree/decorators/index.d.ts +3 -0
- package/lib/recycle-tree/decorators/index.d.ts.map +1 -0
- package/lib/recycle-tree/decorators/index.js +6 -0
- package/lib/recycle-tree/decorators/index.js.map +1 -0
- package/lib/recycle-tree/index.d.ts +7 -0
- package/lib/recycle-tree/index.d.ts.map +1 -0
- package/lib/recycle-tree/index.js +10 -0
- package/lib/recycle-tree/index.js.map +1 -0
- package/lib/recycle-tree/prompt/NewPromptHandle.d.ts +12 -0
- package/lib/recycle-tree/prompt/NewPromptHandle.d.ts.map +1 -0
- package/lib/recycle-tree/prompt/NewPromptHandle.js +21 -0
- package/lib/recycle-tree/prompt/NewPromptHandle.js.map +1 -0
- package/lib/recycle-tree/prompt/PromptHandle.d.ts +59 -0
- package/lib/recycle-tree/prompt/PromptHandle.d.ts.map +1 -0
- package/lib/recycle-tree/prompt/PromptHandle.js +200 -0
- package/lib/recycle-tree/prompt/PromptHandle.js.map +1 -0
- package/lib/recycle-tree/prompt/RenamePromptHandle.d.ts +10 -0
- package/lib/recycle-tree/prompt/RenamePromptHandle.d.ts.map +1 -0
- package/lib/recycle-tree/prompt/RenamePromptHandle.js +21 -0
- package/lib/recycle-tree/prompt/RenamePromptHandle.js.map +1 -0
- package/lib/recycle-tree/prompt/index.d.ts +4 -0
- package/lib/recycle-tree/prompt/index.d.ts.map +1 -0
- package/lib/recycle-tree/prompt/index.js +7 -0
- package/lib/recycle-tree/prompt/index.js.map +1 -0
- package/lib/recycle-tree/tree/Tree.d.ts +20 -0
- package/lib/recycle-tree/tree/Tree.d.ts.map +1 -0
- package/lib/recycle-tree/tree/Tree.js +43 -0
- package/lib/recycle-tree/tree/Tree.js.map +1 -0
- package/lib/recycle-tree/tree/TreeNode.d.ts +222 -0
- package/lib/recycle-tree/tree/TreeNode.d.ts.map +1 -0
- package/lib/recycle-tree/tree/TreeNode.js +1099 -0
- package/lib/recycle-tree/tree/TreeNode.js.map +1 -0
- package/lib/recycle-tree/tree/decoration/CompositeDecoration.d.ts +60 -0
- package/lib/recycle-tree/tree/decoration/CompositeDecoration.d.ts.map +1 -0
- package/lib/recycle-tree/tree/decoration/CompositeDecoration.js +328 -0
- package/lib/recycle-tree/tree/decoration/CompositeDecoration.js.map +1 -0
- package/lib/recycle-tree/tree/decoration/Decoration.d.ts +79 -0
- package/lib/recycle-tree/tree/decoration/Decoration.d.ts.map +1 -0
- package/lib/recycle-tree/tree/decoration/Decoration.js +183 -0
- package/lib/recycle-tree/tree/decoration/Decoration.js.map +1 -0
- package/lib/recycle-tree/tree/decoration/DecorationManager.d.ts +34 -0
- package/lib/recycle-tree/tree/decoration/DecorationManager.d.ts.map +1 -0
- package/lib/recycle-tree/tree/decoration/DecorationManager.js +166 -0
- package/lib/recycle-tree/tree/decoration/DecorationManager.js.map +1 -0
- package/lib/recycle-tree/tree/decoration/index.d.ts +4 -0
- package/lib/recycle-tree/tree/decoration/index.d.ts.map +1 -0
- package/lib/recycle-tree/tree/decoration/index.js +7 -0
- package/lib/recycle-tree/tree/decoration/index.js.map +1 -0
- package/lib/recycle-tree/tree/index.d.ts +5 -0
- package/lib/recycle-tree/tree/index.d.ts.map +1 -0
- package/lib/recycle-tree/tree/index.js +8 -0
- package/lib/recycle-tree/tree/index.js.map +1 -0
- package/lib/recycle-tree/tree/model/TreeModel.d.ts +50 -0
- package/lib/recycle-tree/tree/model/TreeModel.d.ts.map +1 -0
- package/lib/recycle-tree/tree/model/TreeModel.js +81 -0
- package/lib/recycle-tree/tree/model/TreeModel.js.map +1 -0
- package/lib/recycle-tree/tree/model/index.d.ts +2 -0
- package/lib/recycle-tree/tree/model/index.d.ts.map +1 -0
- package/lib/recycle-tree/tree/model/index.js +5 -0
- package/lib/recycle-tree/tree/model/index.js.map +1 -0
- package/lib/recycle-tree/tree/model/treeState/TreeStateManager.d.ts +65 -0
- package/lib/recycle-tree/tree/model/treeState/TreeStateManager.d.ts.map +1 -0
- package/lib/recycle-tree/tree/model/treeState/TreeStateManager.js +191 -0
- package/lib/recycle-tree/tree/model/treeState/TreeStateManager.js.map +1 -0
- package/lib/recycle-tree/tree/model/treeState/TreeStateWatcher.d.ts +15 -0
- package/lib/recycle-tree/tree/model/treeState/TreeStateWatcher.d.ts.map +1 -0
- package/lib/recycle-tree/tree/model/treeState/TreeStateWatcher.js +104 -0
- package/lib/recycle-tree/tree/model/treeState/TreeStateWatcher.js.map +1 -0
- package/lib/recycle-tree/tree/model/treeState/index.d.ts +4 -0
- package/lib/recycle-tree/tree/model/treeState/index.d.ts.map +1 -0
- package/lib/recycle-tree/tree/model/treeState/index.js +8 -0
- package/lib/recycle-tree/tree/model/treeState/index.js.map +1 -0
- package/lib/recycle-tree/tree/model/treeState/types.d.ts +21 -0
- package/lib/recycle-tree/tree/model/treeState/types.d.ts.map +1 -0
- package/lib/recycle-tree/tree/model/treeState/types.js +18 -0
- package/lib/recycle-tree/tree/model/treeState/types.js.map +1 -0
- package/lib/recycle-tree/types/index.d.ts +4 -0
- package/lib/recycle-tree/types/index.d.ts.map +1 -0
- package/lib/recycle-tree/types/index.js +7 -0
- package/lib/recycle-tree/types/index.js.map +1 -0
- package/lib/recycle-tree/types/tree-node.d.ts +70 -0
- package/lib/recycle-tree/types/tree-node.d.ts.map +1 -0
- package/lib/recycle-tree/types/tree-node.js +11 -0
- package/lib/recycle-tree/types/tree-node.js.map +1 -0
- package/lib/recycle-tree/types/tree.d.ts +8 -0
- package/lib/recycle-tree/types/tree.d.ts.map +1 -0
- package/lib/recycle-tree/types/tree.js +3 -0
- package/lib/recycle-tree/types/tree.js.map +1 -0
- package/lib/recycle-tree/types/watcher.d.ts +114 -0
- package/lib/recycle-tree/types/watcher.d.ts.map +1 -0
- package/lib/recycle-tree/types/watcher.js +46 -0
- package/lib/recycle-tree/types/watcher.js.map +1 -0
- package/lib/scrollbars/index.d.ts +14 -0
- package/lib/scrollbars/index.d.ts.map +1 -0
- package/lib/scrollbars/index.js +52 -0
- package/lib/scrollbars/index.js.map +1 -0
- package/lib/scrollbars/styles.less +46 -0
- package/lib/select/index.d.ts +119 -0
- package/lib/select/index.d.ts.map +1 -0
- package/lib/select/index.js +327 -0
- package/lib/select/index.js.map +1 -0
- package/lib/select/style.less +224 -0
- package/lib/style/base.less +542 -0
- package/lib/style/index.less +14 -0
- package/lib/style/mixins.less +135 -0
- package/lib/style/motion/fade.less +31 -0
- package/lib/style/motion/move.less +120 -0
- package/lib/style/motion/other.less +45 -0
- package/lib/style/motion/slide.less +120 -0
- package/lib/style/motion/swing.less +34 -0
- package/lib/style/motion/zoom.less +162 -0
- package/lib/style/variable.less +204 -0
- package/lib/tabs/index.d.ts +12 -0
- package/lib/tabs/index.d.ts.map +1 -0
- package/lib/tabs/index.js +24 -0
- package/lib/tabs/index.js.map +1 -0
- package/lib/tabs/style.less +34 -0
- package/lib/tooltip/index.d.ts +7 -0
- package/lib/tooltip/index.d.ts.map +1 -0
- package/lib/tooltip/index.js +58 -0
- package/lib/tooltip/index.js.map +1 -0
- package/lib/tooltip/style.less +41 -0
- package/lib/utils/deprecated.d.ts +3 -0
- package/lib/utils/deprecated.d.ts.map +1 -0
- package/lib/utils/deprecated.js +18 -0
- package/lib/utils/deprecated.js.map +1 -0
- package/lib/utils/disposable.d.ts +37 -0
- package/lib/utils/disposable.d.ts.map +1 -0
- package/lib/utils/disposable.js +140 -0
- package/lib/utils/disposable.js.map +1 -0
- package/lib/utils/event.d.ts +189 -0
- package/lib/utils/event.d.ts.map +1 -0
- package/lib/utils/event.js +569 -0
- package/lib/utils/event.js.map +1 -0
- package/lib/utils/index.d.ts +10 -0
- package/lib/utils/index.d.ts.map +1 -0
- package/lib/utils/index.js +13 -0
- package/lib/utils/index.js.map +1 -0
- package/lib/utils/iterator.d.ts +14 -0
- package/lib/utils/iterator.d.ts.map +1 -0
- package/lib/utils/iterator.js +9 -0
- package/lib/utils/iterator.js.map +1 -0
- package/lib/utils/linkedList.d.ts +18 -0
- package/lib/utils/linkedList.d.ts.map +1 -0
- package/lib/utils/linkedList.js +139 -0
- package/lib/utils/linkedList.js.map +1 -0
- package/lib/utils/motion.d.ts +24 -0
- package/lib/utils/motion.d.ts.map +1 -0
- package/lib/utils/motion.js +17 -0
- package/lib/utils/motion.js.map +1 -0
- package/lib/utils/os.d.ts +4 -0
- package/lib/utils/os.d.ts.map +1 -0
- package/lib/utils/os.js +22 -0
- package/lib/utils/os.js.map +1 -0
- package/lib/utils/path.d.ts +92 -0
- package/lib/utils/path.d.ts.map +1 -0
- package/lib/utils/path.js +1712 -0
- package/lib/utils/path.js.map +1 -0
- package/lib/utils/process.d.ts +6 -0
- package/lib/utils/process.d.ts.map +1 -0
- package/lib/utils/process.js +17 -0
- package/lib/utils/process.js.map +1 -0
- package/lib/utils/raf.d.ts +10 -0
- package/lib/utils/raf.d.ts.map +1 -0
- package/lib/utils/raf.js +33 -0
- package/lib/utils/raf.js.map +1 -0
- package/lib/utils/type.d.ts +4 -0
- package/lib/utils/type.d.ts.map +1 -0
- package/lib/utils/type.js +9 -0
- package/lib/utils/type.js.map +1 -0
- package/lib/utils/warning.d.ts +8 -0
- package/lib/utils/warning.d.ts.map +1 -0
- package/lib/utils/warning.js +40 -0
- package/lib/utils/warning.js.map +1 -0
- package/package.json +36 -0
|
@@ -0,0 +1,513 @@
|
|
|
1
|
+
@import '../style/variable.less';
|
|
2
|
+
@import '../style/mixins.less';
|
|
3
|
+
|
|
4
|
+
@menu-prefix-cls: ~'@{kt-prefix}-inner-menu';
|
|
5
|
+
|
|
6
|
+
// default theme
|
|
7
|
+
.@{menu-prefix-cls} {
|
|
8
|
+
.reset-component;
|
|
9
|
+
|
|
10
|
+
margin-bottom: 0;
|
|
11
|
+
padding-left: 0; // Override default ul/ol
|
|
12
|
+
color: @menu-item-color;
|
|
13
|
+
line-height: 0; // Fix display inline-block gap
|
|
14
|
+
list-style: none;
|
|
15
|
+
background: @menu-bg;
|
|
16
|
+
outline: none;
|
|
17
|
+
box-shadow: @box-shadow-base;
|
|
18
|
+
transition: background 0.3s, width 0.2s;
|
|
19
|
+
.clearfix;
|
|
20
|
+
|
|
21
|
+
ul,
|
|
22
|
+
ol {
|
|
23
|
+
margin: 0;
|
|
24
|
+
padding: 0;
|
|
25
|
+
list-style: none;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&-hidden {
|
|
29
|
+
display: none;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&-item-group-title {
|
|
33
|
+
padding: 8px 16px;
|
|
34
|
+
color: @menu-item-group-title-color;
|
|
35
|
+
font-size: @font-size-base;
|
|
36
|
+
line-height: @line-height-base;
|
|
37
|
+
transition: all 0.3s;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
&-submenu,
|
|
41
|
+
&-submenu-inline {
|
|
42
|
+
transition: border-color 0.3s @ease-in-out, background 0.3s @ease-in-out,
|
|
43
|
+
padding 0.15s @ease-in-out;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
&-submenu-selected {
|
|
47
|
+
color: @menu-highlight-color;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
&-item:active,
|
|
51
|
+
&-submenu-title:active {
|
|
52
|
+
background: @menu-item-active-bg;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
&-submenu &-sub {
|
|
56
|
+
cursor: initial;
|
|
57
|
+
transition: background 0.3s @ease-in-out, padding 0.3s @ease-in-out;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
&-item > a {
|
|
61
|
+
display: block;
|
|
62
|
+
color: @menu-item-color;
|
|
63
|
+
&:hover {
|
|
64
|
+
color: @menu-highlight-color;
|
|
65
|
+
}
|
|
66
|
+
&::before {
|
|
67
|
+
position: absolute;
|
|
68
|
+
top: 0;
|
|
69
|
+
right: 0;
|
|
70
|
+
bottom: 0;
|
|
71
|
+
left: 0;
|
|
72
|
+
background-color: transparent;
|
|
73
|
+
content: '';
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
// https://github.com/ant-design/ant-design/issues/19809
|
|
78
|
+
&-item > .@{kt-prefix}-badge > a {
|
|
79
|
+
color: @menu-item-color;
|
|
80
|
+
&:hover {
|
|
81
|
+
color: @menu-highlight-color;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
&-item-divider {
|
|
86
|
+
height: 1px;
|
|
87
|
+
overflow: hidden;
|
|
88
|
+
line-height: 0;
|
|
89
|
+
background-color: @border-color-split;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
&-item:hover,
|
|
93
|
+
&-item-active,
|
|
94
|
+
&:not(&-inline) &-submenu-open,
|
|
95
|
+
&-submenu-active,
|
|
96
|
+
&-submenu-title:hover {
|
|
97
|
+
color: @menu-highlight-color;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
&-horizontal &-item,
|
|
101
|
+
&-horizontal &-submenu {
|
|
102
|
+
margin-top: -1px;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
&-horizontal > &-item:hover,
|
|
106
|
+
&-horizontal > &-item-active,
|
|
107
|
+
&-horizontal > &-submenu &-submenu-title:hover {
|
|
108
|
+
background-color: transparent;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
&-item-selected {
|
|
112
|
+
color: @menu-highlight-color;
|
|
113
|
+
> a,
|
|
114
|
+
> a:hover {
|
|
115
|
+
color: @menu-highlight-color;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
&:not(&-horizontal) &-item-selected {
|
|
120
|
+
background-color: @menu-item-active-bg;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
&-inline,
|
|
124
|
+
&-vertical,
|
|
125
|
+
&-vertical-left {
|
|
126
|
+
border-right: @border-width-base @border-style-base @border-color-split;
|
|
127
|
+
}
|
|
128
|
+
&-vertical-right {
|
|
129
|
+
border-left: @border-width-base @border-style-base @border-color-split;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
&-vertical&-sub,
|
|
133
|
+
&-vertical-left&-sub,
|
|
134
|
+
&-vertical-right&-sub {
|
|
135
|
+
min-width: 160px;
|
|
136
|
+
padding: 0;
|
|
137
|
+
border-right: 0;
|
|
138
|
+
transform-origin: 0 0;
|
|
139
|
+
|
|
140
|
+
.@{menu-prefix-cls}-item {
|
|
141
|
+
left: 0;
|
|
142
|
+
margin-left: 0;
|
|
143
|
+
border-right: 0;
|
|
144
|
+
&::after {
|
|
145
|
+
border-right: 0;
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
> .@{menu-prefix-cls}-item,
|
|
149
|
+
> .@{menu-prefix-cls}-submenu {
|
|
150
|
+
transform-origin: 0 0;
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
&-horizontal&-sub {
|
|
155
|
+
min-width: 114px; // in case of submenu width is too big: https://codesandbox.io/s/qvpwm6mk66
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
&-item,
|
|
159
|
+
&-submenu-title {
|
|
160
|
+
position: relative;
|
|
161
|
+
display: block;
|
|
162
|
+
margin: 0;
|
|
163
|
+
padding: 0 20px;
|
|
164
|
+
white-space: nowrap;
|
|
165
|
+
cursor: pointer;
|
|
166
|
+
transition: color 0.3s @ease-in-out, border-color 0.3s @ease-in-out,
|
|
167
|
+
background 0.3s @ease-in-out, padding 0.15s @ease-in-out;
|
|
168
|
+
.@{iconfont-css-prefix} {
|
|
169
|
+
min-width: 14px;
|
|
170
|
+
margin-right: 10px;
|
|
171
|
+
font-size: @menu-icon-size;
|
|
172
|
+
transition: font-size 0.15s @ease-out, margin 0.3s @ease-in-out;
|
|
173
|
+
+ span {
|
|
174
|
+
opacity: 1;
|
|
175
|
+
transition: opacity 0.3s @ease-in-out, width 0.3s @ease-in-out;
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
& > &-item-divider {
|
|
181
|
+
height: 1px;
|
|
182
|
+
margin: 1px 0;
|
|
183
|
+
padding: 0;
|
|
184
|
+
overflow: hidden;
|
|
185
|
+
line-height: 0;
|
|
186
|
+
background-color: @border-color-split;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
&-submenu {
|
|
190
|
+
&-popup {
|
|
191
|
+
position: absolute;
|
|
192
|
+
z-index: @zindex-dropdown;
|
|
193
|
+
background: @menu-popup-bg;
|
|
194
|
+
border-radius: @border-radius-base;
|
|
195
|
+
|
|
196
|
+
.submenu-title-wrapper {
|
|
197
|
+
padding-right: 20px;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
&::before {
|
|
201
|
+
position: absolute;
|
|
202
|
+
top: -7px;
|
|
203
|
+
right: 0;
|
|
204
|
+
bottom: 0;
|
|
205
|
+
left: 0;
|
|
206
|
+
opacity: 0.0001;
|
|
207
|
+
content: ' ';
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
> .@{menu-prefix-cls} {
|
|
212
|
+
background-color: @menu-bg;
|
|
213
|
+
border-radius: @border-radius-base;
|
|
214
|
+
&-submenu-title::after {
|
|
215
|
+
transition: transform 0.3s @ease-in-out;
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
&-vertical,
|
|
220
|
+
&-vertical-left,
|
|
221
|
+
&-vertical-right,
|
|
222
|
+
&-inline {
|
|
223
|
+
> .@{menu-prefix-cls}-submenu-title .@{menu-prefix-cls}-submenu-arrow {
|
|
224
|
+
position: absolute;
|
|
225
|
+
top: 50%;
|
|
226
|
+
right: 16px;
|
|
227
|
+
width: 10px;
|
|
228
|
+
transition: transform 0.3s @ease-in-out;
|
|
229
|
+
&::before,
|
|
230
|
+
&::after {
|
|
231
|
+
position: absolute;
|
|
232
|
+
width: 6px;
|
|
233
|
+
height: 1.5px;
|
|
234
|
+
// background + background-image to makes before & after cross have same color.
|
|
235
|
+
// Since `linear-gradient` not work on IE9, we should hack it.
|
|
236
|
+
// ref: https://github.com/ant-design/ant-design/issues/15910
|
|
237
|
+
background: @menu-bg;
|
|
238
|
+
background: ~'@{menu-item-color} \9';
|
|
239
|
+
background-image: linear-gradient(to right, @menu-item-color, @menu-item-color);
|
|
240
|
+
background-image: ~'none \9';
|
|
241
|
+
border-radius: 2px;
|
|
242
|
+
transition: background 0.3s @ease-in-out, transform 0.3s @ease-in-out,
|
|
243
|
+
top 0.3s @ease-in-out;
|
|
244
|
+
content: '';
|
|
245
|
+
}
|
|
246
|
+
&::before {
|
|
247
|
+
transform: rotate(45deg) translateY(-2px);
|
|
248
|
+
}
|
|
249
|
+
&::after {
|
|
250
|
+
transform: rotate(-45deg) translateY(2px);
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
> .@{menu-prefix-cls}-submenu-title:hover .@{menu-prefix-cls}-submenu-arrow {
|
|
254
|
+
&::after,
|
|
255
|
+
&::before {
|
|
256
|
+
background: linear-gradient(to right, @menu-highlight-color, @menu-highlight-color);
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
&-inline > .@{menu-prefix-cls}-submenu-title .@{menu-prefix-cls}-submenu-arrow {
|
|
262
|
+
&::before {
|
|
263
|
+
transform: rotate(-45deg) translateX(2px);
|
|
264
|
+
}
|
|
265
|
+
&::after {
|
|
266
|
+
transform: rotate(45deg) translateX(-2px);
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
&-open {
|
|
271
|
+
&.@{menu-prefix-cls}-submenu-inline
|
|
272
|
+
> .@{menu-prefix-cls}-submenu-title
|
|
273
|
+
.@{menu-prefix-cls}-submenu-arrow {
|
|
274
|
+
transform: translateY(-2px);
|
|
275
|
+
&::after {
|
|
276
|
+
transform: rotate(-45deg) translateX(-2px);
|
|
277
|
+
}
|
|
278
|
+
&::before {
|
|
279
|
+
transform: rotate(45deg) translateX(2px);
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
&-vertical &-submenu-selected,
|
|
286
|
+
&-vertical-left &-submenu-selected,
|
|
287
|
+
&-vertical-right &-submenu-selected {
|
|
288
|
+
color: @menu-highlight-color;
|
|
289
|
+
> a {
|
|
290
|
+
color: @menu-highlight-color;
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
&-horizontal {
|
|
295
|
+
line-height: 46px;
|
|
296
|
+
white-space: nowrap;
|
|
297
|
+
border: 0;
|
|
298
|
+
border-bottom: @border-width-base @border-style-base @border-color-split;
|
|
299
|
+
box-shadow: none;
|
|
300
|
+
|
|
301
|
+
> .@{menu-prefix-cls}-item,
|
|
302
|
+
> .@{menu-prefix-cls}-submenu {
|
|
303
|
+
position: relative;
|
|
304
|
+
top: 1px;
|
|
305
|
+
display: inline-block;
|
|
306
|
+
vertical-align: bottom;
|
|
307
|
+
border-bottom: 2px solid transparent;
|
|
308
|
+
|
|
309
|
+
&:hover,
|
|
310
|
+
&-active,
|
|
311
|
+
&-open,
|
|
312
|
+
&-selected {
|
|
313
|
+
color: @menu-highlight-color;
|
|
314
|
+
border-bottom: 2px solid @menu-highlight-color;
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
> .@{menu-prefix-cls}-item {
|
|
319
|
+
> a {
|
|
320
|
+
display: block;
|
|
321
|
+
color: @menu-item-color;
|
|
322
|
+
&:hover {
|
|
323
|
+
color: @menu-highlight-color;
|
|
324
|
+
}
|
|
325
|
+
&::before {
|
|
326
|
+
bottom: -2px;
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
&-selected > a {
|
|
330
|
+
color: @menu-highlight-color;
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
&::after {
|
|
335
|
+
display: block;
|
|
336
|
+
clear: both;
|
|
337
|
+
height: 0;
|
|
338
|
+
content: '\20';
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
&-vertical,
|
|
343
|
+
&-vertical-left,
|
|
344
|
+
&-vertical-right,
|
|
345
|
+
&-inline {
|
|
346
|
+
.@{menu-prefix-cls}-item {
|
|
347
|
+
position: relative;
|
|
348
|
+
&::after {
|
|
349
|
+
position: absolute;
|
|
350
|
+
top: 0;
|
|
351
|
+
right: 0;
|
|
352
|
+
bottom: 0;
|
|
353
|
+
border-right: @menu-item-active-border-width solid @menu-highlight-color;
|
|
354
|
+
transform: scaleY(0.0001);
|
|
355
|
+
opacity: 0;
|
|
356
|
+
transition: transform 0.15s @ease-out, opacity 0.15s @ease-out;
|
|
357
|
+
content: '';
|
|
358
|
+
}
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
.@{menu-prefix-cls}-item,
|
|
362
|
+
.@{menu-prefix-cls}-submenu-title {
|
|
363
|
+
height: @menu-item-height;
|
|
364
|
+
margin-top: @menu-item-vertical-margin;
|
|
365
|
+
margin-bottom: @menu-item-vertical-margin;
|
|
366
|
+
padding: 0 16px;
|
|
367
|
+
overflow: hidden;
|
|
368
|
+
font-size: @menu-item-font-size;
|
|
369
|
+
line-height: @menu-item-height;
|
|
370
|
+
text-overflow: ellipsis;
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
// disable margin collapsed
|
|
374
|
+
.@{menu-prefix-cls}-submenu {
|
|
375
|
+
padding-bottom: 0.02px;
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
.@{menu-prefix-cls}-item:not(:last-child) {
|
|
379
|
+
margin-bottom: @menu-item-boundary-margin;
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
> .@{menu-prefix-cls}-item,
|
|
383
|
+
> .@{menu-prefix-cls}-submenu > .@{menu-prefix-cls}-submenu-title {
|
|
384
|
+
height: @menu-inline-toplevel-item-height;
|
|
385
|
+
line-height: @menu-inline-toplevel-item-height;
|
|
386
|
+
}
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
&-inline {
|
|
390
|
+
width: 100%;
|
|
391
|
+
.@{menu-prefix-cls}-selected,
|
|
392
|
+
.@{menu-prefix-cls}-item-selected {
|
|
393
|
+
&::after {
|
|
394
|
+
transform: scaleY(1);
|
|
395
|
+
opacity: 1;
|
|
396
|
+
transition: transform 0.15s @ease-in-out, opacity 0.15s @ease-in-out;
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
.@{menu-prefix-cls}-item,
|
|
401
|
+
.@{menu-prefix-cls}-submenu-title {
|
|
402
|
+
width: ~'calc(100% + 1px)';
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
.@{menu-prefix-cls}-submenu-title {
|
|
406
|
+
padding-right: 34px;
|
|
407
|
+
}
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
&-inline-collapsed {
|
|
411
|
+
width: @menu-collapsed-width;
|
|
412
|
+
> .@{menu-prefix-cls}-item,
|
|
413
|
+
> .@{menu-prefix-cls}-item-group
|
|
414
|
+
> .@{menu-prefix-cls}-item-group-list
|
|
415
|
+
> .@{menu-prefix-cls}-item,
|
|
416
|
+
> .@{menu-prefix-cls}-item-group
|
|
417
|
+
> .@{menu-prefix-cls}-item-group-list
|
|
418
|
+
> .@{menu-prefix-cls}-submenu
|
|
419
|
+
> .@{menu-prefix-cls}-submenu-title,
|
|
420
|
+
> .@{menu-prefix-cls}-submenu > .@{menu-prefix-cls}-submenu-title {
|
|
421
|
+
left: 0;
|
|
422
|
+
padding: 0 (@menu-collapsed-width - @menu-icon-size-lg) / 2 !important;
|
|
423
|
+
text-overflow: clip;
|
|
424
|
+
.@{menu-prefix-cls}-submenu-arrow {
|
|
425
|
+
display: none;
|
|
426
|
+
}
|
|
427
|
+
.@{iconfont-css-prefix} {
|
|
428
|
+
margin: 0;
|
|
429
|
+
font-size: @menu-icon-size-lg;
|
|
430
|
+
line-height: @menu-item-height;
|
|
431
|
+
+ span {
|
|
432
|
+
display: inline-block;
|
|
433
|
+
max-width: 0;
|
|
434
|
+
opacity: 0;
|
|
435
|
+
}
|
|
436
|
+
}
|
|
437
|
+
}
|
|
438
|
+
&-tooltip {
|
|
439
|
+
pointer-events: none;
|
|
440
|
+
.@{iconfont-css-prefix} {
|
|
441
|
+
display: none;
|
|
442
|
+
}
|
|
443
|
+
a {
|
|
444
|
+
color: @text-color-dark;
|
|
445
|
+
}
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
.@{menu-prefix-cls}-item-group-title {
|
|
449
|
+
padding-right: 4px;
|
|
450
|
+
padding-left: 4px;
|
|
451
|
+
overflow: hidden;
|
|
452
|
+
white-space: nowrap;
|
|
453
|
+
text-overflow: ellipsis;
|
|
454
|
+
}
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
&-item-group-list {
|
|
458
|
+
margin: 0;
|
|
459
|
+
padding: 0;
|
|
460
|
+
.@{menu-prefix-cls}-item,
|
|
461
|
+
.@{menu-prefix-cls}-submenu-title {
|
|
462
|
+
padding: 0 16px 0 28px;
|
|
463
|
+
}
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
&-root&-vertical,
|
|
467
|
+
&-root&-vertical-left,
|
|
468
|
+
&-root&-vertical-right,
|
|
469
|
+
&-root&-inline {
|
|
470
|
+
box-shadow: none;
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
&-sub&-inline {
|
|
474
|
+
padding: 0;
|
|
475
|
+
border: 0;
|
|
476
|
+
border-radius: 0;
|
|
477
|
+
box-shadow: none;
|
|
478
|
+
& > .@{menu-prefix-cls}-item,
|
|
479
|
+
& > .@{menu-prefix-cls}-submenu > .@{menu-prefix-cls}-submenu-title {
|
|
480
|
+
height: @menu-item-height;
|
|
481
|
+
line-height: @menu-item-height;
|
|
482
|
+
list-style-position: inside;
|
|
483
|
+
list-style-type: disc;
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
& .@{menu-prefix-cls}-item-group-title {
|
|
487
|
+
padding-left: 32px;
|
|
488
|
+
}
|
|
489
|
+
}
|
|
490
|
+
|
|
491
|
+
// Disabled state sets text to gray and nukes hover/tab effects
|
|
492
|
+
&-item-disabled,
|
|
493
|
+
&-submenu-disabled {
|
|
494
|
+
color: @disabled-color !important;
|
|
495
|
+
background: none;
|
|
496
|
+
border-color: transparent !important;
|
|
497
|
+
cursor: not-allowed;
|
|
498
|
+
> a {
|
|
499
|
+
color: @disabled-color !important;
|
|
500
|
+
pointer-events: none;
|
|
501
|
+
}
|
|
502
|
+
> .@{menu-prefix-cls}-submenu-title {
|
|
503
|
+
color: @disabled-color !important;
|
|
504
|
+
cursor: not-allowed;
|
|
505
|
+
> .@{menu-prefix-cls}-submenu-arrow {
|
|
506
|
+
&::before,
|
|
507
|
+
&::after {
|
|
508
|
+
background: @disabled-color !important;
|
|
509
|
+
}
|
|
510
|
+
}
|
|
511
|
+
}
|
|
512
|
+
}
|
|
513
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './style.less';
|
|
3
|
+
export declare const message: {
|
|
4
|
+
success: (content: string | React.ReactNode, duration?: number | undefined) => Promise<void>;
|
|
5
|
+
error: (content: string | React.ReactNode, duration?: number | undefined) => Promise<void>;
|
|
6
|
+
info: (content: string | React.ReactNode, duration?: number | undefined) => Promise<void>;
|
|
7
|
+
warning: (content: string | React.ReactNode, duration?: number | undefined) => Promise<void>;
|
|
8
|
+
loading: (content: string | React.ReactNode, duration?: number | undefined) => Promise<void>;
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/message/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,cAAc,CAAC;AAUtB,eAAO,MAAM,OAAO;uBAPD,MAAM,GAAG,MAAM,SAAS,oCAAsB,QAAQ,IAAI,CAAC;qBAA3D,MAAM,GAAG,MAAM,SAAS,oCAAsB,QAAQ,IAAI,CAAC;oBAA3D,MAAM,GAAG,MAAM,SAAS,oCAAsB,QAAQ,IAAI,CAAC;uBAA3D,MAAM,GAAG,MAAM,SAAS,oCAAsB,QAAQ,IAAI,CAAC;uBAA3D,MAAM,GAAG,MAAM,SAAS,oCAAsB,QAAQ,IAAI,CAAC;CAa7E,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.message = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const message_1 = (0, tslib_1.__importDefault)(require("./message"));
|
|
6
|
+
require("./style.less");
|
|
7
|
+
function generateSnackbar(funName) {
|
|
8
|
+
return (content, duration) => {
|
|
9
|
+
return new Promise((resolve) => {
|
|
10
|
+
message_1.default[funName](content, duration, resolve);
|
|
11
|
+
});
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
exports.message = {
|
|
15
|
+
success: generateSnackbar('success'),
|
|
16
|
+
error: generateSnackbar('error'),
|
|
17
|
+
info: generateSnackbar('info'),
|
|
18
|
+
warning: generateSnackbar('warning'),
|
|
19
|
+
loading: generateSnackbar('loading'),
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/message/index.ts"],"names":[],"mappings":";;;;AACA,qEAAoC;AACpC,wBAAsB;AAEtB,SAAS,gBAAgB,CAAC,OAAe;IACvC,OAAO,CAAC,OAAiC,EAAE,QAAiB,EAAiB,EAAE;QAC7E,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;YAC7B,iBAAW,CAAC,OAAO,CAAC,CAAC,OAAO,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC;QACnD,CAAC,CAAC,CAAC;IACL,CAAC,CAAC;AACJ,CAAC;AAEY,QAAA,OAAO,GAAG;IACrB,OAAO,EAAE,gBAAgB,CAAC,SAAS,CAAC;IACpC,KAAK,EAAE,gBAAgB,CAAC,OAAO,CAAC;IAChC,IAAI,EAAE,gBAAgB,CAAC,MAAM,CAAC;IAC9B,OAAO,EAAE,gBAAgB,CAAC,SAAS,CAAC;IACpC,OAAO,EAAE,gBAAgB,CAAC,SAAS,CAAC;CACrC,CAAC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare type NoticeType = 'info' | 'success' | 'error' | 'warning' | 'loading';
|
|
3
|
+
export declare type ThenableArgument = (val: any) => void;
|
|
4
|
+
export interface MessageType {
|
|
5
|
+
(): void;
|
|
6
|
+
then: (fill: ThenableArgument, reject: ThenableArgument) => Promise<void>;
|
|
7
|
+
promise: Promise<void>;
|
|
8
|
+
}
|
|
9
|
+
export interface ArgsProps {
|
|
10
|
+
content: React.ReactNode;
|
|
11
|
+
duration: number | null;
|
|
12
|
+
type: NoticeType;
|
|
13
|
+
onClose?: () => void;
|
|
14
|
+
icon?: React.ReactNode;
|
|
15
|
+
key?: string | number;
|
|
16
|
+
}
|
|
17
|
+
declare type ConfigContent = React.ReactNode | string;
|
|
18
|
+
declare type ConfigDuration = number | (() => void);
|
|
19
|
+
declare type JointContent = ConfigContent | ArgsProps;
|
|
20
|
+
export declare type ConfigOnClose = () => void;
|
|
21
|
+
export interface ConfigOptions {
|
|
22
|
+
top?: number;
|
|
23
|
+
duration?: number;
|
|
24
|
+
prefixCls?: string;
|
|
25
|
+
getContainer?: () => HTMLElement;
|
|
26
|
+
transitionName?: string;
|
|
27
|
+
maxCount?: number;
|
|
28
|
+
}
|
|
29
|
+
export interface MessageApi {
|
|
30
|
+
info(content: JointContent, duration?: ConfigDuration, onClose?: ConfigOnClose): MessageType;
|
|
31
|
+
success(content: JointContent, duration?: ConfigDuration, onClose?: ConfigOnClose): MessageType;
|
|
32
|
+
error(content: JointContent, duration?: ConfigDuration, onClose?: ConfigOnClose): MessageType;
|
|
33
|
+
warn(content: JointContent, duration?: ConfigDuration, onClose?: ConfigOnClose): MessageType;
|
|
34
|
+
warning(content: JointContent, duration?: ConfigDuration, onClose?: ConfigOnClose): MessageType;
|
|
35
|
+
loading(content: JointContent, duration?: ConfigDuration, onClose?: ConfigOnClose): MessageType;
|
|
36
|
+
open(args: ArgsProps): MessageType;
|
|
37
|
+
config(options: ConfigOptions): void;
|
|
38
|
+
destroy(): void;
|
|
39
|
+
}
|
|
40
|
+
declare const _default: MessageApi;
|
|
41
|
+
export default _default;
|
|
42
|
+
//# sourceMappingURL=message.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"message.d.ts","sourceRoot":"","sources":["../../src/message/message.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAyC1B,aAAK,UAAU,GAAG,MAAM,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,GAAG,SAAS,CAAC;AAEvE,oBAAY,gBAAgB,GAAG,CAAC,GAAG,EAAE,GAAG,KAAK,IAAI,CAAC;AAElD,MAAM,WAAW,WAAW;IAC1B,IAAI,IAAI,CAAC;IACT,IAAI,EAAE,CAAC,IAAI,EAAE,gBAAgB,EAAE,MAAM,EAAE,gBAAgB,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC1E,OAAO,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC;CACxB;AAED,MAAM,WAAW,SAAS;IACxB,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,IAAI,EAAE,UAAU,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CACvB;AAmDD,aAAK,aAAa,GAAG,KAAK,CAAC,SAAS,GAAG,MAAM,CAAC;AAC9C,aAAK,cAAc,GAAG,MAAM,GAAG,CAAC,MAAM,IAAI,CAAC,CAAC;AAC5C,aAAK,YAAY,GAAG,aAAa,GAAG,SAAS,CAAC;AAC9C,oBAAY,aAAa,GAAG,MAAM,IAAI,CAAC;AASvC,MAAM,WAAW,aAAa;IAC5B,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,WAAW,CAAC;IACjC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAoDD,MAAM,WAAW,UAAU;IACzB,IAAI,CAAC,OAAO,EAAE,YAAY,EAAE,QAAQ,CAAC,EAAE,cAAc,EAAE,OAAO,CAAC,EAAE,aAAa,GAAG,WAAW,CAAC;IAC7F,OAAO,CAAC,OAAO,EAAE,YAAY,EAAE,QAAQ,CAAC,EAAE,cAAc,EAAE,OAAO,CAAC,EAAE,aAAa,GAAG,WAAW,CAAC;IAChG,KAAK,CAAC,OAAO,EAAE,YAAY,EAAE,QAAQ,CAAC,EAAE,cAAc,EAAE,OAAO,CAAC,EAAE,aAAa,GAAG,WAAW,CAAC;IAC9F,IAAI,CAAC,OAAO,EAAE,YAAY,EAAE,QAAQ,CAAC,EAAE,cAAc,EAAE,OAAO,CAAC,EAAE,aAAa,GAAG,WAAW,CAAC;IAC7F,OAAO,CAAC,OAAO,EAAE,YAAY,EAAE,QAAQ,CAAC,EAAE,cAAc,EAAE,OAAO,CAAC,EAAE,aAAa,GAAG,WAAW,CAAC;IAChG,OAAO,CAAC,OAAO,EAAE,YAAY,EAAE,QAAQ,CAAC,EAAE,cAAc,EAAE,OAAO,CAAC,EAAE,aAAa,GAAG,WAAW,CAAC;IAChG,IAAI,CAAC,IAAI,EAAE,SAAS,GAAG,WAAW,CAAC;IACnC,MAAM,CAAC,OAAO,EAAE,aAAa,GAAG,IAAI,CAAC;IACrC,OAAO,IAAI,IAAI,CAAC;CACjB;;AAED,wBAAiC"}
|