@douyinfe/semi-ui 2.7.0 → 2.7.1
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/_base/_story/index.stories.js +2 -6
- package/_portal/_story/portal.stories.js +1 -5
- package/_utils/hooks/usePrevFocus.ts +1 -0
- package/dist/css/semi.css +5 -5
- package/dist/css/semi.min.css +1 -1
- package/dist/umd/semi-ui.js +3 -1
- package/dist/umd/semi-ui.js.map +1 -1
- package/dist/umd/semi-ui.min.js +1 -1
- package/dist/umd/semi-ui.min.js.map +1 -1
- package/input/_story/input.stories.js +10 -1
- package/lib/cjs/_utils/hooks/usePrevFocus.js +1 -0
- package/lib/cjs/modal/useModal/HookModal.js +2 -0
- package/lib/cjs/tooltip/index.js +1 -1
- package/lib/es/_utils/hooks/usePrevFocus.js +2 -0
- package/lib/es/modal/useModal/HookModal.js +2 -0
- package/lib/es/tooltip/index.js +1 -1
- package/modal/_story/modal.stories.js +93 -1
- package/modal/useModal/HookModal.tsx +1 -0
- package/notification/_story/useNotification/index.jsx +21 -7
- package/package.json +9 -9
- package/table/_story/v2/FixedMemoryLeak/index.jsx +33 -0
- package/table/_story/v2/index.js +2 -1
- package/toast/_story/toast.stories.js +41 -0
- package/tooltip/index.tsx +1 -1
package/dist/umd/semi-ui.js
CHANGED
|
@@ -27133,7 +27133,7 @@ class tooltip_Tooltip extends baseComponent_BaseComponent {
|
|
|
27133
27133
|
willUpdateStates.visible = visible;
|
|
27134
27134
|
}
|
|
27135
27135
|
|
|
27136
|
-
this.setState(willUpdateStates, () => {
|
|
27136
|
+
this.mounted && this.setState(willUpdateStates, () => {
|
|
27137
27137
|
cb();
|
|
27138
27138
|
});
|
|
27139
27139
|
},
|
|
@@ -62169,6 +62169,8 @@ const HookModal = (_a, ref) => {
|
|
|
62169
62169
|
const {
|
|
62170
62170
|
motion
|
|
62171
62171
|
} = props;
|
|
62172
|
+
/* istanbul ignore next */
|
|
62173
|
+
|
|
62172
62174
|
const mergedMotion = typeof motion === 'undefined' || motion ? assign_default()(assign_default()({}, motion), {
|
|
62173
62175
|
didLeave: function () {
|
|
62174
62176
|
const didLeave = get_default()(props.motion, 'didLeave');
|