@douyinfe/semi-ui 2.7.0-beta.0 → 2.8.0-beta.0

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 (70) hide show
  1. package/_base/_story/index.stories.js +2 -6
  2. package/_portal/_story/portal.stories.js +1 -5
  3. package/_utils/hooks/usePrevFocus.ts +1 -0
  4. package/_utils/index.ts +29 -1
  5. package/datePicker/_story/v2/FixDefaultPickerValue.jsx +31 -0
  6. package/datePicker/_story/v2/InsetInput.jsx +1 -1
  7. package/datePicker/_story/v2/index.js +1 -0
  8. package/datePicker/monthsGrid.tsx +3 -13
  9. package/dist/css/semi.css +30 -21
  10. package/dist/css/semi.min.css +1 -1
  11. package/dist/umd/semi-ui.js +627 -287
  12. package/dist/umd/semi-ui.js.map +1 -1
  13. package/dist/umd/semi-ui.min.js +1 -1
  14. package/dist/umd/semi-ui.min.js.map +1 -1
  15. package/form/hooks/useFormApi.tsx +3 -2
  16. package/input/_story/input.stories.js +10 -1
  17. package/inputNumber/_story/inputNumber.stories.js +4 -0
  18. package/lib/cjs/_utils/hooks/usePrevFocus.js +1 -0
  19. package/lib/cjs/_utils/index.d.ts +3 -1
  20. package/lib/cjs/_utils/index.js +25 -1
  21. package/lib/cjs/datePicker/monthsGrid.js +11 -19
  22. package/lib/cjs/form/hooks/useFormApi.d.ts +2 -1
  23. package/lib/cjs/modal/useModal/HookModal.js +2 -0
  24. package/lib/cjs/notification/useNotification/index.js +1 -1
  25. package/lib/cjs/popover/index.d.ts +18 -3
  26. package/lib/cjs/popover/index.js +53 -23
  27. package/lib/cjs/radio/radioGroup.js +6 -0
  28. package/lib/cjs/select/index.js +5 -2
  29. package/lib/cjs/tag/group.d.ts +2 -0
  30. package/lib/cjs/tag/group.js +4 -2
  31. package/lib/cjs/tooltip/index.d.ts +22 -4
  32. package/lib/cjs/tooltip/index.js +65 -27
  33. package/lib/cjs/tree/nodeList.js +1 -0
  34. package/lib/cjs/treeSelect/index.js +4 -0
  35. package/lib/es/_utils/hooks/usePrevFocus.js +2 -0
  36. package/lib/es/_utils/index.d.ts +3 -1
  37. package/lib/es/_utils/index.js +18 -0
  38. package/lib/es/datePicker/monthsGrid.js +11 -19
  39. package/lib/es/form/hooks/useFormApi.d.ts +2 -1
  40. package/lib/es/modal/useModal/HookModal.js +2 -0
  41. package/lib/es/notification/useNotification/index.js +2 -1
  42. package/lib/es/popover/index.d.ts +18 -3
  43. package/lib/es/popover/index.js +52 -23
  44. package/lib/es/radio/radioGroup.js +6 -0
  45. package/lib/es/select/index.js +5 -2
  46. package/lib/es/tag/group.d.ts +2 -0
  47. package/lib/es/tag/group.js +4 -2
  48. package/lib/es/tooltip/index.d.ts +22 -4
  49. package/lib/es/tooltip/index.js +65 -27
  50. package/lib/es/tree/nodeList.js +1 -0
  51. package/lib/es/treeSelect/index.js +4 -0
  52. package/modal/_story/modal.stories.js +93 -1
  53. package/modal/useModal/HookModal.tsx +1 -0
  54. package/notification/_story/useNotification/index.jsx +21 -7
  55. package/notification/useNotification/index.tsx +1 -1
  56. package/package.json +9 -9
  57. package/popover/_story/popover.stories.js +75 -1
  58. package/popover/index.tsx +24 -8
  59. package/radio/__test__/radioGroup.test.jsx +9 -1
  60. package/radio/_story/radio.stories.js +22 -1
  61. package/radio/radioGroup.tsx +9 -0
  62. package/select/_story/select.stories.js +73 -2
  63. package/select/index.tsx +5 -3
  64. package/table/_story/v2/FixedMemoryLeak/index.jsx +33 -0
  65. package/table/_story/v2/index.js +2 -1
  66. package/tag/group.tsx +5 -3
  67. package/toast/_story/toast.stories.js +41 -0
  68. package/tooltip/index.tsx +72 -22
  69. package/tree/nodeList.tsx +1 -0
  70. package/treeSelect/index.tsx +3 -0
@@ -331,6 +331,9 @@ class TreeSelect extends BaseComponent<TreeSelectProps, TreeSelectState> {
331
331
  this.clickOutsideHandler = null;
332
332
  this.foundation = new TreeSelectFoundation(this.adapter);
333
333
  this.treeSelectID = Math.random().toString(36).slice(2);
334
+ this.onMotionEnd = () => {
335
+ this.adapter.rePositionDropdown();
336
+ };
334
337
  }
335
338
 
336
339
  // eslint-disable-next-line max-lines-per-function