lupine.components 1.1.48 → 1.1.49

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lupine.components",
3
- "version": "1.1.48",
3
+ "version": "1.1.49",
4
4
  "license": "MIT",
5
5
  "author": "uuware.com",
6
6
  "homepage": "https://github.com/uuware/lupine.js",
@@ -40,4 +40,4 @@
40
40
  "dependencies": {
41
41
  "lupine.web": "^1.0.0"
42
42
  }
43
- }
43
+ }
@@ -1,4 +1,4 @@
1
- import { CssProps, RefProps, VNode, mountInnerComponent } from 'lupine.web';
1
+ import { CssProps, RefProps, VNode, callUnload, mountInnerComponent } from 'lupine.web';
2
2
  import { backActionHelper } from '../lib';
3
3
  import { NotificationColor, NotificationMessage } from './notice-message';
4
4
 
@@ -55,7 +55,8 @@ export class ActionSheet {
55
55
  const handleClose = (reason?: ActionSheetCloseReasonProps) => {
56
56
  closeEvent?.(reason);
57
57
  ref.current.classList.remove('animation-open');
58
- setTimeout(() => {
58
+ setTimeout(async () => {
59
+ await callUnload(base);
59
60
  base.remove();
60
61
  }, 300);
61
62
  };
@@ -1,4 +1,4 @@
1
- import { CssProps, RefProps, VNode, mountInnerComponent } from 'lupine.web';
1
+ import { CssProps, RefProps, VNode, callUnload, mountInnerComponent } from 'lupine.web';
2
2
  import { stopPropagation, backActionHelper } from '../lib';
3
3
 
4
4
  export type FloatWindowCloseProps = () => void;
@@ -57,7 +57,8 @@ export class FloatWindow {
57
57
  closeEvent?.();
58
58
  ref.current.classList.add('transition');
59
59
  ref.current.classList.remove('animation');
60
- setTimeout(() => {
60
+ setTimeout(async () => {
61
+ await callUnload(base);
61
62
  base.remove();
62
63
  }, 300);
63
64
  };
@@ -1,5 +1,5 @@
1
1
  import { RefProps, Spinner02, SpinnerSize } from 'lupine.components';
2
- import { CssProps, mountInnerComponent } from 'lupine.components';
2
+ import { CssProps, callUnload, mountInnerComponent } from 'lupine.components';
3
3
 
4
4
  export type LoadingSpinHookProps = {
5
5
  show?: () => void;
@@ -46,7 +46,8 @@ export const LoadingSpinComponent = (props: LoadingSpinProps) => {
46
46
 
47
47
  export class LoadingSpin {
48
48
  static async show(): Promise<() => void> {
49
- const handleClose = () => {
49
+ const handleClose = async () => {
50
+ await callUnload(base);
50
51
  base.remove();
51
52
  };
52
53
 
@@ -1,4 +1,4 @@
1
- import { CssProps, RefProps, VNode, mountInnerComponent } from 'lupine.web';
1
+ import { CssProps, RefProps, VNode, callUnload, mountInnerComponent } from 'lupine.web';
2
2
  import { backActionHelper, stopPropagation } from '../lib';
3
3
  import { MediaQueryMaxWidth, MediaQueryRange } from '../styles';
4
4
 
@@ -41,7 +41,8 @@ export class SliderHelper {
41
41
  closeEvent?.();
42
42
  ref.current?.classList.remove('show');
43
43
  ref.current?.classList.add(closeClassName);
44
- setTimeout(() => {
44
+ setTimeout(async () => {
45
+ await callUnload(base);
45
46
  base.remove();
46
47
  }, 400);
47
48
  };