@kdcloudjs/kdesign 1.7.48-usePopper.1 → 1.7.48

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 (157) hide show
  1. package/dist/kdesign-complete.less +9 -106
  2. package/dist/kdesign.css +63 -359
  3. package/dist/kdesign.css.map +1 -1
  4. package/dist/kdesign.js +753 -4604
  5. package/dist/kdesign.js.map +1 -1
  6. package/dist/kdesign.min.css +1 -1
  7. package/dist/kdesign.min.js +10 -10
  8. package/dist/kdesign.min.js.map +1 -1
  9. package/es/_utils/formatUtil.js +3 -1
  10. package/es/_utils/hooks.js +1 -1
  11. package/es/alert/alert.js +3 -1
  12. package/es/anchor/anchor.js +9 -1
  13. package/es/badge/badge.js +3 -1
  14. package/es/breadcrumb/breadcrumb.js +3 -1
  15. package/es/button/button.js +3 -1
  16. package/es/card/card.js +3 -1
  17. package/es/cascader/cascader.js +3 -1
  18. package/es/cascader/util.js +3 -1
  19. package/es/checkbox/checkbox.js +3 -1
  20. package/es/checkbox/group.js +3 -1
  21. package/es/clipboard/clipboard.js +3 -1
  22. package/es/collapse/panel.js +3 -1
  23. package/es/date-picker/panel/year/year.js +2 -2
  24. package/es/divider/divider.js +3 -1
  25. package/es/dropdown/menu.js +3 -1
  26. package/es/empty/empty.js +3 -1
  27. package/es/form/Field.js +3 -1
  28. package/es/form/Form.js +3 -1
  29. package/es/grid/col.js +3 -1
  30. package/es/icon/icon.js +3 -1
  31. package/es/image-cropper/image-cropper.js +15 -11
  32. package/es/input/TextArea.js +3 -1
  33. package/es/input/input.js +3 -1
  34. package/es/input-number/inputNumber.js +32 -9
  35. package/es/layout/layout.js +3 -1
  36. package/es/layout/sider.js +3 -1
  37. package/es/link/link.js +3 -1
  38. package/es/locale/locale.js +1 -1
  39. package/es/menu/menu.js +3 -1
  40. package/es/menu/menuItem.js +3 -1
  41. package/es/menu/subMenu.js +3 -1
  42. package/es/modal/confirm.js +3 -1
  43. package/es/modal/modal.js +3 -1
  44. package/es/notification-base/index.js +3 -1
  45. package/es/progress/utils.js +3 -1
  46. package/es/radio/radio-button.js +3 -1
  47. package/es/radio/radio.js +3 -1
  48. package/es/search/quick-search.js +3 -1
  49. package/es/search/search.js +3 -1
  50. package/es/select/select.js +1 -1
  51. package/es/slider/slider.js +3 -1
  52. package/es/slider/sliderTooltip.js +3 -1
  53. package/es/spin/spin.js +3 -1
  54. package/es/steps/Step.js +3 -1
  55. package/es/steps/Steps.js +3 -1
  56. package/es/switch/switch.js +3 -1
  57. package/es/table/feature/rowSelection.js +3 -1
  58. package/es/tag/tag.js +3 -1
  59. package/es/timeline/Timeline.js +3 -1
  60. package/es/timeline/TimelineItem.js +3 -1
  61. package/es/tooltip/style/index.css +63 -2
  62. package/es/tooltip/style/index.less +9 -2
  63. package/es/tooltip/tooltip.d.ts +7 -3
  64. package/es/tooltip/tooltip.js +26 -10
  65. package/es/tree/tree.js +3 -1
  66. package/es/tree/treeNode.js +3 -1
  67. package/es/tree/utils/treeUtils.js +3 -1
  68. package/es/typography/base.js +3 -1
  69. package/es/typography/title.js +3 -1
  70. package/es/typography/typography.js +3 -1
  71. package/es/upload/dragger.js +3 -1
  72. package/es/upload/upload.js +26 -24
  73. package/es/virtual-list/utils/itemUtil.js +3 -1
  74. package/es/virtual-list/virtual-list.js +3 -1
  75. package/lib/_utils/formatUtil.js +3 -1
  76. package/lib/_utils/hooks.js +1 -1
  77. package/lib/alert/alert.js +3 -1
  78. package/lib/anchor/anchor.js +9 -1
  79. package/lib/badge/badge.js +3 -1
  80. package/lib/breadcrumb/breadcrumb.js +3 -1
  81. package/lib/button/button.js +3 -1
  82. package/lib/card/card.js +3 -1
  83. package/lib/cascader/cascader.js +3 -1
  84. package/lib/cascader/util.js +3 -1
  85. package/lib/checkbox/checkbox.js +3 -1
  86. package/lib/checkbox/group.js +3 -1
  87. package/lib/clipboard/clipboard.js +3 -1
  88. package/lib/collapse/panel.js +3 -1
  89. package/lib/date-picker/panel/year/year.js +2 -2
  90. package/lib/divider/divider.js +3 -1
  91. package/lib/dropdown/menu.js +3 -1
  92. package/lib/empty/empty.js +3 -1
  93. package/lib/form/Field.js +3 -1
  94. package/lib/form/Form.js +3 -1
  95. package/lib/grid/col.js +3 -1
  96. package/lib/icon/icon.js +3 -1
  97. package/lib/image-cropper/image-cropper.js +15 -11
  98. package/lib/input/TextArea.js +3 -1
  99. package/lib/input/input.js +3 -1
  100. package/lib/input-number/inputNumber.js +32 -9
  101. package/lib/layout/layout.js +3 -1
  102. package/lib/layout/sider.js +3 -1
  103. package/lib/link/link.js +3 -1
  104. package/lib/locale/locale.js +1 -1
  105. package/lib/menu/menu.js +3 -1
  106. package/lib/menu/menuItem.js +3 -1
  107. package/lib/menu/subMenu.js +3 -1
  108. package/lib/modal/confirm.js +3 -1
  109. package/lib/modal/modal.js +3 -1
  110. package/lib/notification-base/index.js +3 -1
  111. package/lib/progress/utils.js +3 -1
  112. package/lib/radio/radio-button.js +3 -1
  113. package/lib/radio/radio.js +3 -1
  114. package/lib/search/quick-search.js +3 -1
  115. package/lib/search/search.js +3 -1
  116. package/lib/select/select.js +1 -1
  117. package/lib/slider/slider.js +3 -1
  118. package/lib/slider/sliderTooltip.js +3 -1
  119. package/lib/spin/spin.js +3 -1
  120. package/lib/steps/Step.js +3 -1
  121. package/lib/steps/Steps.js +3 -1
  122. package/lib/style/components.less +0 -1
  123. package/lib/switch/switch.js +3 -1
  124. package/lib/table/feature/rowSelection.js +3 -1
  125. package/lib/tag/tag.js +3 -1
  126. package/lib/timeline/Timeline.js +3 -1
  127. package/lib/timeline/TimelineItem.js +3 -1
  128. package/lib/tooltip/style/index.css +63 -2
  129. package/lib/tooltip/style/index.less +9 -2
  130. package/lib/tooltip/tooltip.d.ts +7 -3
  131. package/lib/tooltip/tooltip.js +31 -10
  132. package/lib/tree/tree.js +3 -1
  133. package/lib/tree/treeNode.js +3 -1
  134. package/lib/tree/utils/treeUtils.js +3 -1
  135. package/lib/typography/base.js +3 -1
  136. package/lib/typography/title.js +3 -1
  137. package/lib/typography/typography.js +3 -1
  138. package/lib/upload/dragger.js +3 -1
  139. package/lib/upload/upload.js +26 -24
  140. package/lib/virtual-list/utils/itemUtil.js +3 -1
  141. package/lib/virtual-list/virtual-list.js +3 -1
  142. package/package.json +3 -4
  143. package/CHANGELOG.md +0 -1809
  144. package/es/popper/index.d.ts +0 -51
  145. package/es/popper/index.js +0 -418
  146. package/es/popper/style/css.js +0 -2
  147. package/es/popper/style/index.css +0 -356
  148. package/es/popper/style/index.d.ts +0 -2
  149. package/es/popper/style/index.js +0 -2
  150. package/es/popper/style/index.less +0 -103
  151. package/lib/popper/index.d.ts +0 -51
  152. package/lib/popper/index.js +0 -435
  153. package/lib/popper/style/css.js +0 -4
  154. package/lib/popper/style/index.css +0 -356
  155. package/lib/popper/style/index.d.ts +0 -2
  156. package/lib/popper/style/index.js +0 -4
  157. package/lib/popper/style/index.less +0 -103
@@ -1,356 +0,0 @@
1
- /* ----------- color ——————---- start */
2
- /* ----------- color ——————---- end */
3
- /* ----------- motion ——————---- start */
4
- /* ----------- motion ——————---- end */
5
- /* ----------- transition ——————---- start */
6
- /* ----------- transition ——————---- end */
7
- /* ----------- font ——————---- start */
8
- /* ----------- font ——————---- end */
9
- /* ----------- zIndex ——————---- start */
10
- /*
11
- 普通组件内部自身层级应设置在0-100间
12
- */
13
- /* ----------- zIndex ——————---- end */
14
- /* ----------- Button ——————---- start */
15
- /* ----------- Button ——————---- end */
16
- /* ----------- Collapse ——————---- start */
17
- /* ----------- Collapse ——————---- end */
18
- /* ----------- Card ——————---- start */
19
- /* ----------- Card ——————---- end */
20
- /* ----------- Carousel ——————---- start */
21
- /* ----------- Carousel ——————---- end */
22
- /* ----------- Cascader ——————---- start */
23
- /* ----------- Cascader ——————---- end */
24
- /* ----------- Switch ——————---- start */
25
- /* ----------- Switch ——————---- end */
26
- /* ----------- Input ——————---- start */
27
- /* ----------- Input ——————---- end */
28
- /* ----------- InputNumber ——————---- start */
29
- /* ----------- InputNumber ——————---- end */
30
- /* ----------- checkbox ——————---- start */
31
- /* ----------- checkbox ——————---- start */
32
- /* ----------- checkbox ——————---- end */
33
- /* ----------- Radio ——————---- start */
34
- /* ----------- Radio ——————---- end */
35
- /* ----------- icon ——————---- start */
36
- /* ----------- icon ——————---- end */
37
- /* ----------- Popconfirm ——————---- start */
38
- /* ----------- Popconfirm ——————---- end */
39
- /* ----------- Progress ——————---- start */
40
- /* ----------- Progress ——————---- end */
41
- /* ----------- Pagination ——————---- start */
42
- /* ----------- Pagination ——————---- end */
43
- /* ----------- Timeline ——————---- start */
44
- /* ----------- Timeline ——————---- end */
45
- /* ----------- Tabs ——————---- start */
46
- /* ----------- Tabs ——————---- end */
47
- /* ----------- Select ——————---- start */
48
- /* ----------- Select ——————---- end */
49
- /* ----------- Rate ——————---- start */
50
- /* ----------- Rate ——————---- end */
51
- /* ----------- Dropdown ——————---- start */
52
- /* ----------- Dropdown ——————---- end */
53
- /* ----------- Tooltip ——————---- start */
54
- /* ----------- Tooltip ——————---- end */
55
- /* ----------- Transfer ——————---- start */
56
- /* ----------- Transfer ——————---- end */
57
- /* ----------- DatePicker ——————---- start */
58
- /* ----------- DatePicker ——————---- end */
59
- /* ----------- ColorPicker ——————---- start */
60
- /* ----------- ColorPicker ——————---- end */
61
- /* ----------- Tree ——————---- start */
62
- /* ----------- Tree ——————---- end */
63
- /* ----------- Alert ——————---- start */
64
- /* ----------- Alert ——————---- end */
65
- /* ----------- Split-Panel ——————---- start */
66
- /* ----------- Split-Panel ——————---- end */
67
- /* ----------- Modal ——————---- start */
68
- /* ----------- Modal ——————---- end */
69
- /* ----------- Steps ——————---- start */
70
- /* ----------- Steps ——————---- end */
71
- /* ----------- Form ——————---- start */
72
- /* ----------- Form ——————---- end */
73
- /* ----------- Tag ——————---- start */
74
- /* ----------- Tag ——————---- end */
75
- /* ----------- Menu ——————---- start */
76
- /* ----------- Menu ——————---- end */
77
- /* ----------- notice ——————---- start */
78
- /* ----------- message ——————---- end */
79
- /* ----------- Spin ——————---- start */
80
- /* ----------- Spin ——————---- end */
81
- /* ----------- Spin ——————---- start */
82
- /* ----------- Spin ——————---- end */
83
- /* ----------- Layout ——————---- start */
84
- /* ----------- Layout ——————---- end */
85
- /* ----------- Typography ——————---- start */
86
- /* ----------- Typography ——————---- start */
87
- /* ----------- Search ——————---- start */
88
- /* ----------- Search ——————---- start */
89
- /* ----------- Badge ——————---- start */
90
- /* ----------- Badge ——————---- end */
91
- /* ----------- Anchor ——————---- start */
92
- /* ----------- Anchor ——————---- end */
93
- /* ----------- Avatar ——————---- start */
94
- /* ----------- Avatar ——————---- end */
95
- /* ----------- AdvancedSelector ——————---- start */
96
- /* ----------- AdvancedSelector ——————---- end */
97
- /* ----------- motion ——————---- start */
98
- /* ----------- motion ——————---- end */
99
- /* ----------- transition ——————---- start */
100
- /* ----------- transition ——————---- end */
101
- /* ----------- zIndex ——————---- start */
102
- /*
103
- 普通组件内部自身层级应设置在0-100间
104
- */
105
- /* ----------- zIndex ——————---- end */
106
- /* 多行显示省略号 */
107
- /* 单行显示省略号 */
108
- /** 浮层箭头样式 **/
109
- .kd-popper {
110
- opacity: 1;
111
- z-index: var(--kd-g-z-index-popper, 1050);
112
- visibility: visible;
113
- }
114
- .kd-popper.hidden {
115
- opacity: 0;
116
- visibility: hidden;
117
- -webkit-transition: all calc(0.3s - 0.1s);
118
- transition: all calc(0.3s - 0.1s);
119
- pointer-events: none;
120
- }
121
- .kd-popper-content .arrow {
122
- visibility: hidden;
123
- }
124
- .kd-popper-content .arrow::before {
125
- visibility: visible;
126
- position: absolute;
127
- border-style: solid;
128
- border-width: var(--arrowSize);
129
- content: '';
130
- -webkit-transform: rotate(45deg);
131
- transform: rotate(45deg);
132
- }
133
- .kd-popper[data-popper-placement^='top'] .arrow {
134
- bottom: var(--arrowSize);
135
- }
136
- .kd-popper[data-popper-placement^='top'] .arrow::before {
137
- left: calc(-1 * var(--arrowSize));
138
- border-top-color: transparent;
139
- border-left-color: transparent;
140
- }
141
- .kd-popper[data-popper-placement^='bottom'] .arrow {
142
- top: calc(-1 * var(--arrowSize));
143
- }
144
- .kd-popper[data-popper-placement^='bottom'] .arrow::before {
145
- left: calc(-1 * var(--arrowSize));
146
- border-bottom-color: transparent;
147
- border-right-color: transparent;
148
- }
149
- .kd-popper[data-popper-placement^='left'] .arrow {
150
- right: var(--arrowSize);
151
- }
152
- .kd-popper[data-popper-placement^='left'] .arrow::before {
153
- top: calc(-1 * var(--arrowSize));
154
- border-left-color: transparent;
155
- border-bottom-color: transparent;
156
- }
157
- .kd-popper[data-popper-placement^='right'] .arrow {
158
- left: calc(-1 * var(--arrowSize));
159
- }
160
- .kd-popper[data-popper-placement^='right'] .arrow::before {
161
- top: calc(-1 * var(--arrowSize));
162
- border-top-color: transparent;
163
- border-right-color: transparent;
164
- }
165
- .kd-popper-top {
166
- -webkit-animation-duration: calc(0.3s - 0.1s);
167
- animation-duration: calc(0.3s - 0.1s);
168
- }
169
- .kd-popper-top-in {
170
- -webkit-animation-name: kdZoomBottomIn;
171
- animation-name: kdZoomBottomIn;
172
- -webkit-animation-timing-function: cubic-bezier(0, 0.4, 0.4, 1);
173
- animation-timing-function: cubic-bezier(0, 0.4, 0.4, 1);
174
- }
175
- .kd-popper-top-out {
176
- -webkit-animation-name: kdZoomBottomOut;
177
- animation-name: kdZoomBottomOut;
178
- -webkit-animation-timing-function: cubic-bezier(0.4, 0, 1, 0.6);
179
- animation-timing-function: cubic-bezier(0.4, 0, 1, 0.6);
180
- }
181
- .kd-popper-left {
182
- -webkit-animation-duration: calc(0.3s - 0.1s);
183
- animation-duration: calc(0.3s - 0.1s);
184
- }
185
- .kd-popper-left-in {
186
- -webkit-animation-name: kdZoomRightIn;
187
- animation-name: kdZoomRightIn;
188
- -webkit-animation-timing-function: cubic-bezier(0, 0.4, 0.4, 1);
189
- animation-timing-function: cubic-bezier(0, 0.4, 0.4, 1);
190
- }
191
- .kd-popper-left-out {
192
- -webkit-animation-name: kdZoomRightOut;
193
- animation-name: kdZoomRightOut;
194
- -webkit-animation-timing-function: cubic-bezier(0.4, 0, 1, 0.6);
195
- animation-timing-function: cubic-bezier(0.4, 0, 1, 0.6);
196
- }
197
- .kd-popper-right {
198
- -webkit-animation-duration: calc(0.3s - 0.1s);
199
- animation-duration: calc(0.3s - 0.1s);
200
- }
201
- .kd-popper-right-in {
202
- -webkit-animation-name: kdZoomLeftIn;
203
- animation-name: kdZoomLeftIn;
204
- -webkit-animation-timing-function: cubic-bezier(0, 0.4, 0.4, 1);
205
- animation-timing-function: cubic-bezier(0, 0.4, 0.4, 1);
206
- }
207
- .kd-popper-right-out {
208
- -webkit-animation-name: kdZoomLeftOut;
209
- animation-name: kdZoomLeftOut;
210
- -webkit-animation-timing-function: cubic-bezier(0.4, 0, 1, 0.6);
211
- animation-timing-function: cubic-bezier(0.4, 0, 1, 0.6);
212
- }
213
- .kd-popper-bottom {
214
- -webkit-animation-duration: calc(0.3s - 0.1s);
215
- animation-duration: calc(0.3s - 0.1s);
216
- }
217
- .kd-popper-bottom-in {
218
- -webkit-animation-name: kdZoomTopIn;
219
- animation-name: kdZoomTopIn;
220
- -webkit-animation-timing-function: cubic-bezier(0, 0.4, 0.4, 1);
221
- animation-timing-function: cubic-bezier(0, 0.4, 0.4, 1);
222
- }
223
- .kd-popper-bottom-out {
224
- -webkit-animation-name: kdZoomTopOut;
225
- animation-name: kdZoomTopOut;
226
- -webkit-animation-timing-function: cubic-bezier(0.4, 0, 1, 0.6);
227
- animation-timing-function: cubic-bezier(0.4, 0, 1, 0.6);
228
- }
229
- .kd-popper-top-start {
230
- -webkit-animation-duration: calc(0.3s - 0.1s);
231
- animation-duration: calc(0.3s - 0.1s);
232
- }
233
- .kd-popper-top-start-in {
234
- -webkit-animation-name: kdZoomLeftBottomIn;
235
- animation-name: kdZoomLeftBottomIn;
236
- -webkit-animation-timing-function: cubic-bezier(0, 0.4, 0.4, 1);
237
- animation-timing-function: cubic-bezier(0, 0.4, 0.4, 1);
238
- }
239
- .kd-popper-top-start-out {
240
- -webkit-animation-name: kdZoomLeftBottomOut;
241
- animation-name: kdZoomLeftBottomOut;
242
- -webkit-animation-timing-function: cubic-bezier(0.4, 0, 1, 0.6);
243
- animation-timing-function: cubic-bezier(0.4, 0, 1, 0.6);
244
- }
245
- .kd-popper-rightBottom {
246
- -webkit-animation-duration: calc(0.3s - 0.1s);
247
- animation-duration: calc(0.3s - 0.1s);
248
- }
249
- .kd-popper-rightBottom-in {
250
- -webkit-animation-name: kdZoomLeftBottomIn;
251
- animation-name: kdZoomLeftBottomIn;
252
- -webkit-animation-timing-function: cubic-bezier(0, 0.4, 0.4, 1);
253
- animation-timing-function: cubic-bezier(0, 0.4, 0.4, 1);
254
- }
255
- .kd-popper-rightBottom-out {
256
- -webkit-animation-name: kdZoomLeftBottomOut;
257
- animation-name: kdZoomLeftBottomOut;
258
- -webkit-animation-timing-function: cubic-bezier(0.4, 0, 1, 0.6);
259
- animation-timing-function: cubic-bezier(0.4, 0, 1, 0.6);
260
- }
261
- .kd-popper-top-end {
262
- -webkit-animation-duration: calc(0.3s - 0.1s);
263
- animation-duration: calc(0.3s - 0.1s);
264
- }
265
- .kd-popper-top-end-in {
266
- -webkit-animation-name: kdZoomRightBottomIn;
267
- animation-name: kdZoomRightBottomIn;
268
- -webkit-animation-timing-function: cubic-bezier(0, 0.4, 0.4, 1);
269
- animation-timing-function: cubic-bezier(0, 0.4, 0.4, 1);
270
- }
271
- .kd-popper-top-end-out {
272
- -webkit-animation-name: kdZoomRightBottomOut;
273
- animation-name: kdZoomRightBottomOut;
274
- -webkit-animation-timing-function: cubic-bezier(0.4, 0, 1, 0.6);
275
- animation-timing-function: cubic-bezier(0.4, 0, 1, 0.6);
276
- }
277
- .kd-popper-left-end {
278
- -webkit-animation-duration: calc(0.3s - 0.1s);
279
- animation-duration: calc(0.3s - 0.1s);
280
- }
281
- .kd-popper-left-end-in {
282
- -webkit-animation-name: kdZoomRightBottomIn;
283
- animation-name: kdZoomRightBottomIn;
284
- -webkit-animation-timing-function: cubic-bezier(0, 0.4, 0.4, 1);
285
- animation-timing-function: cubic-bezier(0, 0.4, 0.4, 1);
286
- }
287
- .kd-popper-left-end-out {
288
- -webkit-animation-name: kdZoomRightBottomOut;
289
- animation-name: kdZoomRightBottomOut;
290
- -webkit-animation-timing-function: cubic-bezier(0.4, 0, 1, 0.6);
291
- animation-timing-function: cubic-bezier(0.4, 0, 1, 0.6);
292
- }
293
- .kd-popper-left-start {
294
- -webkit-animation-duration: calc(0.3s - 0.1s);
295
- animation-duration: calc(0.3s - 0.1s);
296
- }
297
- .kd-popper-left-start-in {
298
- -webkit-animation-name: kdZoomTopRightIn;
299
- animation-name: kdZoomTopRightIn;
300
- -webkit-animation-timing-function: cubic-bezier(0, 0.4, 0.4, 1);
301
- animation-timing-function: cubic-bezier(0, 0.4, 0.4, 1);
302
- }
303
- .kd-popper-left-start-out {
304
- -webkit-animation-name: kdZoomTopRightOut;
305
- animation-name: kdZoomTopRightOut;
306
- -webkit-animation-timing-function: cubic-bezier(0.4, 0, 1, 0.6);
307
- animation-timing-function: cubic-bezier(0.4, 0, 1, 0.6);
308
- }
309
- .kd-popper-bottom-end {
310
- -webkit-animation-duration: calc(0.3s - 0.1s);
311
- animation-duration: calc(0.3s - 0.1s);
312
- }
313
- .kd-popper-bottom-end-in {
314
- -webkit-animation-name: kdZoomTopRightIn;
315
- animation-name: kdZoomTopRightIn;
316
- -webkit-animation-timing-function: cubic-bezier(0, 0.4, 0.4, 1);
317
- animation-timing-function: cubic-bezier(0, 0.4, 0.4, 1);
318
- }
319
- .kd-popper-bottom-end-out {
320
- -webkit-animation-name: kdZoomTopRightOut;
321
- animation-name: kdZoomTopRightOut;
322
- -webkit-animation-timing-function: cubic-bezier(0.4, 0, 1, 0.6);
323
- animation-timing-function: cubic-bezier(0.4, 0, 1, 0.6);
324
- }
325
- .kd-popper-right-start {
326
- -webkit-animation-duration: calc(0.3s - 0.1s);
327
- animation-duration: calc(0.3s - 0.1s);
328
- }
329
- .kd-popper-right-start-in {
330
- -webkit-animation-name: kdZoomTopLeftIn;
331
- animation-name: kdZoomTopLeftIn;
332
- -webkit-animation-timing-function: cubic-bezier(0, 0.4, 0.4, 1);
333
- animation-timing-function: cubic-bezier(0, 0.4, 0.4, 1);
334
- }
335
- .kd-popper-right-start-out {
336
- -webkit-animation-name: kdZoomTopLeftOut;
337
- animation-name: kdZoomTopLeftOut;
338
- -webkit-animation-timing-function: cubic-bezier(0.4, 0, 1, 0.6);
339
- animation-timing-function: cubic-bezier(0.4, 0, 1, 0.6);
340
- }
341
- .kd-popper-bottom-start {
342
- -webkit-animation-duration: calc(0.3s - 0.1s);
343
- animation-duration: calc(0.3s - 0.1s);
344
- }
345
- .kd-popper-bottom-start-in {
346
- -webkit-animation-name: kdZoomTopLeftIn;
347
- animation-name: kdZoomTopLeftIn;
348
- -webkit-animation-timing-function: cubic-bezier(0, 0.4, 0.4, 1);
349
- animation-timing-function: cubic-bezier(0, 0.4, 0.4, 1);
350
- }
351
- .kd-popper-bottom-start-out {
352
- -webkit-animation-name: kdZoomTopLeftOut;
353
- animation-name: kdZoomTopLeftOut;
354
- -webkit-animation-timing-function: cubic-bezier(0.4, 0, 1, 0.6);
355
- animation-timing-function: cubic-bezier(0.4, 0, 1, 0.6);
356
- }
@@ -1,2 +0,0 @@
1
- import '../../style/index.less';
2
- import './index.less';
@@ -1,4 +0,0 @@
1
- "use strict";
2
-
3
- require("../../style/index.less");
4
- require("./index.less");
@@ -1,103 +0,0 @@
1
- @import '../../style/themes/index';
2
- @import '../../style/mixins/index';
3
- // @import './token.less';
4
-
5
- @popper-prefix-cls: ~'@{kd-prefix}-popper';
6
-
7
- .@{popper-prefix-cls} {
8
- opacity: 1;
9
- z-index: @z-index-popper;
10
- visibility: visible;
11
-
12
- &.hidden {
13
- opacity: 0;
14
- visibility: hidden;
15
- transition: all calc(@transition-duration - 0.1s);
16
- pointer-events: none;
17
- }
18
-
19
- &-content {
20
- .arrow {
21
- visibility: hidden;
22
-
23
- &::before {
24
- visibility: visible;
25
- position: absolute;
26
- border-style: solid;
27
- border-width: var(--arrowSize);
28
- content: '';
29
- transform: rotate(45deg);
30
- }
31
- }
32
- }
33
-
34
- &[data-popper-placement^='top'] .arrow {
35
- bottom: var(--arrowSize);
36
-
37
- &::before {
38
- left: calc(-1 * var(--arrowSize));
39
- border-top-color: transparent;
40
- border-left-color: transparent;
41
- }
42
- }
43
-
44
- &[data-popper-placement^='bottom'] .arrow {
45
- top: calc(-1 * var(--arrowSize));
46
-
47
- &::before {
48
- left: calc(-1 * var(--arrowSize));
49
- border-bottom-color: transparent;
50
- border-right-color: transparent;
51
- }
52
- }
53
-
54
- &[data-popper-placement^='left'] .arrow {
55
- right: var(--arrowSize);
56
-
57
- &::before {
58
- top: calc(-1 * var(--arrowSize));
59
- border-left-color: transparent;
60
- border-bottom-color: transparent;
61
- }
62
- }
63
-
64
- &[data-popper-placement^='right'] .arrow {
65
- left: calc(-1 * var(--arrowSize));
66
-
67
- &::before {
68
- top: calc(-1 * var(--arrowSize));
69
- border-top-color: transparent;
70
- border-right-color: transparent;
71
- }
72
- }
73
- }
74
-
75
- .popper-motion(@className, @keyframeName, @duration: calc(@transition-duration - 0.1s)) {
76
- .@{className} {
77
- animation-duration: @duration;
78
-
79
- &-in {
80
- animation-name: ~'@{keyframeName}In';
81
- animation-timing-function: @ease-out;
82
- }
83
-
84
- &-out {
85
- animation-name: ~'@{keyframeName}Out';
86
- animation-timing-function: @ease-in;
87
- }
88
- }
89
- }
90
-
91
- .popper-motion(~'@{popper-prefix-cls}-top', kdZoomBottom);
92
- .popper-motion(~'@{popper-prefix-cls}-left', kdZoomRight);
93
- .popper-motion(~'@{popper-prefix-cls}-right', kdZoomLeft);
94
- .popper-motion(~'@{popper-prefix-cls}-bottom', kdZoomTop);
95
- .popper-motion(~'@{popper-prefix-cls}-top-start', kdZoomLeftBottom);
96
- .popper-motion(~'@{popper-prefix-cls}-rightBottom', kdZoomLeftBottom);
97
- .popper-motion(~'@{popper-prefix-cls}-top-end', kdZoomRightBottom);
98
- .popper-motion(~'@{popper-prefix-cls}-left-end', kdZoomRightBottom);
99
- .popper-motion(~'@{popper-prefix-cls}-left-start', kdZoomTopRight);
100
- .popper-motion(~'@{popper-prefix-cls}-bottom-end', kdZoomTopRight);
101
- .popper-motion(~'@{popper-prefix-cls}-right-start', kdZoomTopLeft);
102
- .popper-motion(~'@{popper-prefix-cls}-bottom-start', kdZoomTopLeft);
103
-