@qsxy/element-plus-react 1.0.0-next.5 → 1.0.0-next.7

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 (109) hide show
  1. package/dist/Cascader/Cascader.js +147 -182
  2. package/dist/Cascader/CascaderContext.d.ts +4 -10
  3. package/dist/Cascader/CascaderContext.js +2 -6
  4. package/dist/Cascader/CascaderDropdown.js +1 -1
  5. package/dist/Cascader/CascaderMenu.d.ts +0 -7
  6. package/dist/Cascader/CascaderMenu.js +4 -77
  7. package/dist/Cascader/Utils.d.ts +0 -2
  8. package/dist/Cascader/Utils.js +0 -44
  9. package/dist/Cascader/index.d.ts +1 -1
  10. package/dist/Cascader/typings.d.ts +2 -18
  11. package/dist/Cascader/useCascader.d.ts +1 -15
  12. package/dist/Cascader/useCascader.js +14 -41
  13. package/dist/DatePicker/DatePicker.js +5 -5
  14. package/dist/Empty/ImgEmpty.js +1 -1
  15. package/dist/Tree/DirectoryTree.d.ts +6 -13
  16. package/dist/Tree/DirectoryTree.js +32 -81
  17. package/dist/Tree/DropIndicator.d.ts +4 -2
  18. package/dist/Tree/DropIndicator.js +7 -2
  19. package/dist/Tree/Indent.d.ts +2 -2
  20. package/dist/Tree/Indent.js +4 -4
  21. package/dist/Tree/MotionTreeNode.d.ts +4 -5
  22. package/dist/Tree/MotionTreeNode.js +69 -52
  23. package/dist/Tree/NodeList.d.ts +15 -11
  24. package/dist/Tree/NodeList.js +38 -29
  25. package/dist/Tree/RCTree.d.ts +77 -75
  26. package/dist/Tree/RCTree.js +199 -188
  27. package/dist/Tree/Tree.d.ts +3 -3
  28. package/dist/Tree/Tree.js +27 -27
  29. package/dist/Tree/TreeNode.d.ts +5 -90
  30. package/dist/Tree/TreeNode.js +320 -422
  31. package/dist/Tree/contextTypes.d.ts +36 -30
  32. package/dist/Tree/contextTypes.js +17 -4
  33. package/dist/Tree/index.d.ts +2 -2
  34. package/dist/Tree/typings.d.ts +60 -19
  35. package/dist/Tree/typings.js +1 -13
  36. package/dist/Tree/typings.tsx--bak +245 -0
  37. package/dist/Tree/useUnmount.d.ts +5 -0
  38. package/dist/{VirtualList/index.js → Tree/useUnmount.js} +25 -10
  39. package/dist/Tree/util.d.ts +17 -21
  40. package/dist/Tree/util.js +21 -52
  41. package/dist/Tree/utils/conductUtil.d.ts +2 -2
  42. package/dist/Tree/utils/conductUtil.js +14 -3
  43. package/dist/Tree/utils/dictUtil.d.ts +7 -3
  44. package/dist/Tree/utils/dictUtil.js +49 -32
  45. package/dist/Tree/utils/diffUtil.d.ts +4 -3
  46. package/dist/Tree/utils/keyUtil.d.ts +2 -0
  47. package/dist/{VirtualList/utils/isFirefox.js → Tree/utils/keyUtil.js} +8 -7
  48. package/dist/Tree/utils/motion.js +6 -5
  49. package/dist/Tree/utils/treeUtil.d.ts +16 -18
  50. package/dist/Tree/utils/treeUtil.js +35 -14
  51. package/dist/TreeSelect/Utils.d.ts +1 -1
  52. package/dist/Util/base.d.ts +1 -1
  53. package/dist/Util/base.js +14 -2
  54. package/dist/index.css +6 -4
  55. package/dist/index.d.ts +3 -5
  56. package/dist/index.js +0 -5
  57. package/dist/theme-chalk/calendar/month-table.scss +1 -1
  58. package/dist/theme-chalk/input/input.scss +5 -3
  59. package/package.json +2 -1
  60. package/dist/Tree/utils/KeyCode.d.ts +0 -436
  61. package/dist/Tree/utils/KeyCode.js +0 -550
  62. package/dist/VirtualList/Filler.d.ts +0 -16
  63. package/dist/VirtualList/Filler.js +0 -78
  64. package/dist/VirtualList/Item.d.ts +0 -7
  65. package/dist/VirtualList/Item.js +0 -37
  66. package/dist/VirtualList/ScrollBar.d.ts +0 -43
  67. package/dist/VirtualList/ScrollBar.js +0 -216
  68. package/dist/VirtualList/VirtualList.d.ts +0 -36
  69. package/dist/VirtualList/VirtualList.js +0 -280
  70. package/dist/VirtualList/hooks/useChildren.d.ts +0 -3
  71. package/dist/VirtualList/hooks/useChildren.js +0 -46
  72. package/dist/VirtualList/hooks/useDiffItem.d.ts +0 -2
  73. package/dist/VirtualList/hooks/useDiffItem.js +0 -39
  74. package/dist/VirtualList/hooks/useFrameWheel.d.ts +0 -6
  75. package/dist/VirtualList/hooks/useFrameWheel.js +0 -72
  76. package/dist/VirtualList/hooks/useHeights.d.ts +0 -3
  77. package/dist/VirtualList/hooks/useHeights.js +0 -83
  78. package/dist/VirtualList/hooks/useLayoutEffect.d.ts +0 -6
  79. package/dist/VirtualList/hooks/useLayoutEffect.js +0 -30
  80. package/dist/VirtualList/hooks/useMobileTouchMove.d.ts +0 -2
  81. package/dist/VirtualList/hooks/useMobileTouchMove.js +0 -92
  82. package/dist/VirtualList/hooks/useOriginScroll.d.ts +0 -2
  83. package/dist/VirtualList/hooks/useOriginScroll.js +0 -56
  84. package/dist/VirtualList/hooks/useScrollTo.d.ts +0 -5
  85. package/dist/VirtualList/hooks/useScrollTo.js +0 -111
  86. package/dist/VirtualList/index.d.ts +0 -2
  87. package/dist/VirtualList/interface.d.ts +0 -8
  88. package/dist/VirtualList/interface.js +0 -17
  89. package/dist/VirtualList/mock.d.ts +0 -6
  90. package/dist/VirtualList/mock.js +0 -29
  91. package/dist/VirtualList/utils/CacheMap.d.ts +0 -7
  92. package/dist/VirtualList/utils/CacheMap.js +0 -36
  93. package/dist/VirtualList/utils/algorithmUtil.d.ts +0 -23
  94. package/dist/VirtualList/utils/algorithmUtil.js +0 -81
  95. package/dist/VirtualList/utils/findDOMNode.d.ts +0 -5
  96. package/dist/VirtualList/utils/findDOMNode.js +0 -30
  97. package/dist/VirtualList/utils/isFirefox.d.ts +0 -2
  98. package/dist/VirtualList/utils/raf.d.ts +0 -5
  99. package/dist/VirtualList/utils/raf.js +0 -57
  100. package/dist/theme-chalk/bak/common/popup.scss +0 -47
  101. package/dist/theme-chalk/bak/common/transition.scss +0 -118
  102. package/dist/theme-chalk/bak/common/var.scss +0 -1476
  103. package/dist/theme-chalk/bak/mixins/_button.scss +0 -224
  104. package/dist/theme-chalk/bak/mixins/_col.scss +0 -38
  105. package/dist/theme-chalk/bak/mixins/_var.scss +0 -55
  106. package/dist/theme-chalk/bak/mixins/config.scss +0 -5
  107. package/dist/theme-chalk/bak/mixins/function.scss +0 -85
  108. package/dist/theme-chalk/bak/mixins/mixins.scss +0 -215
  109. package/dist/theme-chalk/bak/mixins/utils.scss +0 -39
@@ -1,550 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __export = (target, all) => {
6
- for (var name in all)
7
- __defProp(target, name, { get: all[name], enumerable: true });
8
- };
9
- var __copyProps = (to, from, except, desc) => {
10
- if (from && typeof from === "object" || typeof from === "function") {
11
- for (let key of __getOwnPropNames(from))
12
- if (!__hasOwnProp.call(to, key) && key !== except)
13
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
- }
15
- return to;
16
- };
17
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
-
19
- // src/Tree/utils/KeyCode.ts
20
- var KeyCode_exports = {};
21
- __export(KeyCode_exports, {
22
- default: () => KeyCode_default
23
- });
24
- module.exports = __toCommonJS(KeyCode_exports);
25
- var KeyCode = {
26
- /**
27
- * MAC_ENTER
28
- */
29
- MAC_ENTER: 3,
30
- /**
31
- * BACKSPACE
32
- */
33
- BACKSPACE: 8,
34
- /**
35
- * TAB
36
- */
37
- TAB: 9,
38
- /**
39
- * NUMLOCK on FF/Safari Mac
40
- */
41
- NUM_CENTER: 12,
42
- // NUMLOCK on FF/Safari Mac
43
- /**
44
- * ENTER
45
- */
46
- ENTER: 13,
47
- /**
48
- * SHIFT
49
- */
50
- SHIFT: 16,
51
- /**
52
- * CTRL
53
- */
54
- CTRL: 17,
55
- /**
56
- * ALT
57
- */
58
- ALT: 18,
59
- /**
60
- * PAUSE
61
- */
62
- PAUSE: 19,
63
- /**
64
- * CAPS_LOCK
65
- */
66
- CAPS_LOCK: 20,
67
- /**
68
- * ESC
69
- */
70
- ESC: 27,
71
- /**
72
- * SPACE
73
- */
74
- SPACE: 32,
75
- /**
76
- * PAGE_UP
77
- */
78
- PAGE_UP: 33,
79
- // also NUM_NORTH_EAST
80
- /**
81
- * PAGE_DOWN
82
- */
83
- PAGE_DOWN: 34,
84
- // also NUM_SOUTH_EAST
85
- /**
86
- * END
87
- */
88
- END: 35,
89
- // also NUM_SOUTH_WEST
90
- /**
91
- * HOME
92
- */
93
- HOME: 36,
94
- // also NUM_NORTH_WEST
95
- /**
96
- * LEFT
97
- */
98
- LEFT: 37,
99
- // also NUM_WEST
100
- /**
101
- * UP
102
- */
103
- UP: 38,
104
- // also NUM_NORTH
105
- /**
106
- * RIGHT
107
- */
108
- RIGHT: 39,
109
- // also NUM_EAST
110
- /**
111
- * DOWN
112
- */
113
- DOWN: 40,
114
- // also NUM_SOUTH
115
- /**
116
- * PRINT_SCREEN
117
- */
118
- PRINT_SCREEN: 44,
119
- /**
120
- * INSERT
121
- */
122
- INSERT: 45,
123
- // also NUM_INSERT
124
- /**
125
- * DELETE
126
- */
127
- DELETE: 46,
128
- // also NUM_DELETE
129
- /**
130
- * ZERO
131
- */
132
- ZERO: 48,
133
- /**
134
- * ONE
135
- */
136
- ONE: 49,
137
- /**
138
- * TWO
139
- */
140
- TWO: 50,
141
- /**
142
- * THREE
143
- */
144
- THREE: 51,
145
- /**
146
- * FOUR
147
- */
148
- FOUR: 52,
149
- /**
150
- * FIVE
151
- */
152
- FIVE: 53,
153
- /**
154
- * SIX
155
- */
156
- SIX: 54,
157
- /**
158
- * SEVEN
159
- */
160
- SEVEN: 55,
161
- /**
162
- * EIGHT
163
- */
164
- EIGHT: 56,
165
- /**
166
- * NINE
167
- */
168
- NINE: 57,
169
- /**
170
- * QUESTION_MARK
171
- */
172
- QUESTION_MARK: 63,
173
- // needs localization
174
- /**
175
- * A
176
- */
177
- A: 65,
178
- /**
179
- * B
180
- */
181
- B: 66,
182
- /**
183
- * C
184
- */
185
- C: 67,
186
- /**
187
- * D
188
- */
189
- D: 68,
190
- /**
191
- * E
192
- */
193
- E: 69,
194
- /**
195
- * F
196
- */
197
- F: 70,
198
- /**
199
- * G
200
- */
201
- G: 71,
202
- /**
203
- * H
204
- */
205
- H: 72,
206
- /**
207
- * I
208
- */
209
- I: 73,
210
- /**
211
- * J
212
- */
213
- J: 74,
214
- /**
215
- * K
216
- */
217
- K: 75,
218
- /**
219
- * L
220
- */
221
- L: 76,
222
- /**
223
- * M
224
- */
225
- M: 77,
226
- /**
227
- * N
228
- */
229
- N: 78,
230
- /**
231
- * O
232
- */
233
- O: 79,
234
- /**
235
- * P
236
- */
237
- P: 80,
238
- /**
239
- * Q
240
- */
241
- Q: 81,
242
- /**
243
- * R
244
- */
245
- R: 82,
246
- /**
247
- * S
248
- */
249
- S: 83,
250
- /**
251
- * T
252
- */
253
- T: 84,
254
- /**
255
- * U
256
- */
257
- U: 85,
258
- /**
259
- * V
260
- */
261
- V: 86,
262
- /**
263
- * W
264
- */
265
- W: 87,
266
- /**
267
- * X
268
- */
269
- X: 88,
270
- /**
271
- * Y
272
- */
273
- Y: 89,
274
- /**
275
- * Z
276
- */
277
- Z: 90,
278
- /**
279
- * META
280
- */
281
- META: 91,
282
- // WIN_KEY_LEFT
283
- /**
284
- * WIN_KEY_RIGHT
285
- */
286
- WIN_KEY_RIGHT: 92,
287
- /**
288
- * CONTEXT_MENU
289
- */
290
- CONTEXT_MENU: 93,
291
- /**
292
- * NUM_ZERO
293
- */
294
- NUM_ZERO: 96,
295
- /**
296
- * NUM_ONE
297
- */
298
- NUM_ONE: 97,
299
- /**
300
- * NUM_TWO
301
- */
302
- NUM_TWO: 98,
303
- /**
304
- * NUM_THREE
305
- */
306
- NUM_THREE: 99,
307
- /**
308
- * NUM_FOUR
309
- */
310
- NUM_FOUR: 100,
311
- /**
312
- * NUM_FIVE
313
- */
314
- NUM_FIVE: 101,
315
- /**
316
- * NUM_SIX
317
- */
318
- NUM_SIX: 102,
319
- /**
320
- * NUM_SEVEN
321
- */
322
- NUM_SEVEN: 103,
323
- /**
324
- * NUM_EIGHT
325
- */
326
- NUM_EIGHT: 104,
327
- /**
328
- * NUM_NINE
329
- */
330
- NUM_NINE: 105,
331
- /**
332
- * NUM_MULTIPLY
333
- */
334
- NUM_MULTIPLY: 106,
335
- /**
336
- * NUM_PLUS
337
- */
338
- NUM_PLUS: 107,
339
- /**
340
- * NUM_MINUS
341
- */
342
- NUM_MINUS: 109,
343
- /**
344
- * NUM_PERIOD
345
- */
346
- NUM_PERIOD: 110,
347
- /**
348
- * NUM_DIVISION
349
- */
350
- NUM_DIVISION: 111,
351
- /**
352
- * F1
353
- */
354
- F1: 112,
355
- /**
356
- * F2
357
- */
358
- F2: 113,
359
- /**
360
- * F3
361
- */
362
- F3: 114,
363
- /**
364
- * F4
365
- */
366
- F4: 115,
367
- /**
368
- * F5
369
- */
370
- F5: 116,
371
- /**
372
- * F6
373
- */
374
- F6: 117,
375
- /**
376
- * F7
377
- */
378
- F7: 118,
379
- /**
380
- * F8
381
- */
382
- F8: 119,
383
- /**
384
- * F9
385
- */
386
- F9: 120,
387
- /**
388
- * F10
389
- */
390
- F10: 121,
391
- /**
392
- * F11
393
- */
394
- F11: 122,
395
- /**
396
- * F12
397
- */
398
- F12: 123,
399
- /**
400
- * NUMLOCK
401
- */
402
- NUMLOCK: 144,
403
- /**
404
- * SEMICOLON
405
- */
406
- SEMICOLON: 186,
407
- // needs localization
408
- /**
409
- * DASH
410
- */
411
- DASH: 189,
412
- // needs localization
413
- /**
414
- * EQUALS
415
- */
416
- EQUALS: 187,
417
- // needs localization
418
- /**
419
- * COMMA
420
- */
421
- COMMA: 188,
422
- // needs localization
423
- /**
424
- * PERIOD
425
- */
426
- PERIOD: 190,
427
- // needs localization
428
- /**
429
- * SLASH
430
- */
431
- SLASH: 191,
432
- // needs localization
433
- /**
434
- * APOSTROPHE
435
- */
436
- APOSTROPHE: 192,
437
- // needs localization
438
- /**
439
- * SINGLE_QUOTE
440
- */
441
- SINGLE_QUOTE: 222,
442
- // needs localization
443
- /**
444
- * OPEN_SQUARE_BRACKET
445
- */
446
- OPEN_SQUARE_BRACKET: 219,
447
- // needs localization
448
- /**
449
- * BACKSLASH
450
- */
451
- BACKSLASH: 220,
452
- // needs localization
453
- /**
454
- * CLOSE_SQUARE_BRACKET
455
- */
456
- CLOSE_SQUARE_BRACKET: 221,
457
- // needs localization
458
- /**
459
- * WIN_KEY
460
- */
461
- WIN_KEY: 224,
462
- /**
463
- * MAC_FF_META
464
- */
465
- MAC_FF_META: 224,
466
- // Firefox (Gecko) fires this for the meta key instead of 91
467
- /**
468
- * WIN_IME
469
- */
470
- WIN_IME: 229,
471
- // ======================== Function ========================
472
- /**
473
- * whether text and modified key is entered at the same time.
474
- */
475
- isTextModifyingKeyEvent: function isTextModifyingKeyEvent(e) {
476
- const { keyCode } = e;
477
- if (e.altKey && !e.ctrlKey || e.metaKey || // Function keys don't generate text
478
- keyCode >= KeyCode.F1 && keyCode <= KeyCode.F12) {
479
- return false;
480
- }
481
- switch (keyCode) {
482
- case KeyCode.ALT:
483
- case KeyCode.CAPS_LOCK:
484
- case KeyCode.CONTEXT_MENU:
485
- case KeyCode.CTRL:
486
- case KeyCode.DOWN:
487
- case KeyCode.END:
488
- case KeyCode.ESC:
489
- case KeyCode.HOME:
490
- case KeyCode.INSERT:
491
- case KeyCode.LEFT:
492
- case KeyCode.MAC_FF_META:
493
- case KeyCode.META:
494
- case KeyCode.NUMLOCK:
495
- case KeyCode.NUM_CENTER:
496
- case KeyCode.PAGE_DOWN:
497
- case KeyCode.PAGE_UP:
498
- case KeyCode.PAUSE:
499
- case KeyCode.PRINT_SCREEN:
500
- case KeyCode.RIGHT:
501
- case KeyCode.SHIFT:
502
- case KeyCode.UP:
503
- case KeyCode.WIN_KEY:
504
- case KeyCode.WIN_KEY_RIGHT:
505
- return false;
506
- default:
507
- return true;
508
- }
509
- },
510
- /**
511
- * whether character is entered.
512
- */
513
- isCharacterKey: function isCharacterKey(keyCode) {
514
- if (keyCode >= KeyCode.ZERO && keyCode <= KeyCode.NINE) {
515
- return true;
516
- }
517
- if (keyCode >= KeyCode.NUM_ZERO && keyCode <= KeyCode.NUM_MULTIPLY) {
518
- return true;
519
- }
520
- if (keyCode >= KeyCode.A && keyCode <= KeyCode.Z) {
521
- return true;
522
- }
523
- if (window.navigator.userAgent.indexOf("WebKit") !== -1 && keyCode === 0) {
524
- return true;
525
- }
526
- switch (keyCode) {
527
- case KeyCode.SPACE:
528
- case KeyCode.QUESTION_MARK:
529
- case KeyCode.NUM_PLUS:
530
- case KeyCode.NUM_MINUS:
531
- case KeyCode.NUM_PERIOD:
532
- case KeyCode.NUM_DIVISION:
533
- case KeyCode.SEMICOLON:
534
- case KeyCode.DASH:
535
- case KeyCode.EQUALS:
536
- case KeyCode.COMMA:
537
- case KeyCode.PERIOD:
538
- case KeyCode.SLASH:
539
- case KeyCode.APOSTROPHE:
540
- case KeyCode.SINGLE_QUOTE:
541
- case KeyCode.OPEN_SQUARE_BRACKET:
542
- case KeyCode.BACKSLASH:
543
- case KeyCode.CLOSE_SQUARE_BRACKET:
544
- return true;
545
- default:
546
- return false;
547
- }
548
- }
549
- };
550
- var KeyCode_default = KeyCode;
@@ -1,16 +0,0 @@
1
- import React from 'react';
2
- import { ComponentChildren } from '../types/common';
3
- interface FillerProps {
4
- prefixCls?: string;
5
- /** Virtual filler height. Should be `count * itemMinHeight` */
6
- height: number;
7
- /** Set offset of visible items. Should be the top of start item position */
8
- offset?: number;
9
- children: ComponentChildren;
10
- onInnerResize?: () => void;
11
- }
12
- /**
13
- * Fill component to provided the scroll content real height.
14
- */
15
- declare const Filler: React.ForwardRefExoticComponent<FillerProps & React.RefAttributes<HTMLDivElement>>;
16
- export default Filler;
@@ -1,78 +0,0 @@
1
- var __create = Object.create;
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getProtoOf = Object.getPrototypeOf;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __export = (target, all) => {
8
- for (var name in all)
9
- __defProp(target, name, { get: all[name], enumerable: true });
10
- };
11
- var __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from === "object" || typeof from === "function") {
13
- for (let key of __getOwnPropNames(from))
14
- if (!__hasOwnProp.call(to, key) && key !== except)
15
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
- }
17
- return to;
18
- };
19
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
- // If the importer is in node compatibility mode or this is not an ESM
21
- // file that has been converted to a CommonJS file using a Babel-
22
- // compatible transform (i.e. "__esModule" has not been set), then set
23
- // "default" to the CommonJS "module.exports" for node compatibility.
24
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
- mod
26
- ));
27
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
-
29
- // src/VirtualList/Filler.tsx
30
- var Filler_exports = {};
31
- __export(Filler_exports, {
32
- default: () => Filler_default
33
- });
34
- module.exports = __toCommonJS(Filler_exports);
35
- var import_rc_resize_observer = __toESM(require("rc-resize-observer"));
36
- var import_react = __toESM(require("react"));
37
- var import_classnames = __toESM(require("classnames"));
38
- var Filler = (0, import_react.forwardRef)(({ height, offset, children, prefixCls, onInnerResize }, ref) => {
39
- let outerStyle = {};
40
- let innerStyle = {
41
- display: "flex",
42
- flexDirection: "column"
43
- };
44
- if (offset !== void 0) {
45
- outerStyle = { height, position: "relative", overflow: "hidden" };
46
- innerStyle = {
47
- ...innerStyle,
48
- transform: `translateY(${offset}px)`,
49
- position: "absolute",
50
- left: 0,
51
- right: 0,
52
- top: 0
53
- };
54
- }
55
- return /* @__PURE__ */ import_react.default.createElement("div", { style: outerStyle }, /* @__PURE__ */ import_react.default.createElement(
56
- import_rc_resize_observer.default,
57
- {
58
- onResize: ({ offsetHeight }) => {
59
- if (offsetHeight && onInnerResize) {
60
- onInnerResize();
61
- }
62
- }
63
- },
64
- /* @__PURE__ */ import_react.default.createElement(
65
- "div",
66
- {
67
- style: innerStyle,
68
- className: (0, import_classnames.default)({
69
- [`${prefixCls}-holder-inner`]: prefixCls
70
- }),
71
- ref
72
- },
73
- children
74
- )
75
- ));
76
- });
77
- Filler.displayName = "Filler";
78
- var Filler_default = Filler;
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- import { ComponentChildren } from '../types/common';
3
- export interface ItemProps {
4
- children: ComponentChildren;
5
- setRef: (element: HTMLElement) => void;
6
- }
7
- export declare function Item({ children, setRef }: ItemProps): React.ReactElement;
@@ -1,37 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __export = (target, all) => {
6
- for (var name in all)
7
- __defProp(target, name, { get: all[name], enumerable: true });
8
- };
9
- var __copyProps = (to, from, except, desc) => {
10
- if (from && typeof from === "object" || typeof from === "function") {
11
- for (let key of __getOwnPropNames(from))
12
- if (!__hasOwnProp.call(to, key) && key !== except)
13
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
- }
15
- return to;
16
- };
17
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
-
19
- // src/VirtualList/Item.tsx
20
- var Item_exports = {};
21
- __export(Item_exports, {
22
- Item: () => Item
23
- });
24
- module.exports = __toCommonJS(Item_exports);
25
- var import_react = require("react");
26
- function Item({ children, setRef }) {
27
- const refFunc = (0, import_react.useCallback)((node) => {
28
- setRef(node);
29
- }, []);
30
- return (0, import_react.cloneElement)(import_react.Children.only(children), {
31
- ref: refFunc
32
- });
33
- }
34
- // Annotate the CommonJS export names for ESM import in node:
35
- 0 && (module.exports = {
36
- Item
37
- });
@@ -1,43 +0,0 @@
1
- /// <reference types="node" />
2
- import React, { Component } from 'react';
3
- export interface ScrollBarProps {
4
- prefixCls: string;
5
- scrollTop: number;
6
- scrollHeight: number;
7
- height: number;
8
- count: number;
9
- onScroll: (scrollTop: number) => void;
10
- onStartMove: () => void;
11
- onStopMove: () => void;
12
- }
13
- interface ScrollBarState {
14
- dragging: boolean;
15
- pageY: number;
16
- startTop: number;
17
- visible: boolean;
18
- }
19
- export default class ScrollBar extends Component<ScrollBarProps, ScrollBarState> {
20
- moveRaf: number;
21
- scrollbarRef: React.RefObject<HTMLDivElement>;
22
- thumbRef: React.RefObject<HTMLDivElement>;
23
- visibleTimeout: NodeJS.Timeout;
24
- state: ScrollBarState;
25
- componentDidMount(): void;
26
- componentDidUpdate(prevProps: ScrollBarProps): void;
27
- componentWillUnmount(): void;
28
- delayHidden: () => void;
29
- onScrollbarTouchStart: (e: TouchEvent) => void;
30
- onContainerMouseDown: React.MouseEventHandler<any>;
31
- patchEvents: () => void;
32
- removeEvents: () => void;
33
- onMouseDown: (e: any) => void;
34
- onMouseMove: (e: MouseEvent | TouchEvent) => void;
35
- onMouseUp: () => void;
36
- getSpinHeight: () => number;
37
- getEnableScrollRange: () => number;
38
- getEnableHeightRange: () => number;
39
- getTop: () => number;
40
- showScroll: () => boolean;
41
- render(): React.JSX.Element;
42
- }
43
- export {};