@selfdecode/sd-component-library 3.0.24 → 3.0.25

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.
@@ -74,4 +74,6 @@ export interface ModalProps {
74
74
  * Additional props for the modal inner container.
75
75
  */
76
76
  innerSx?: SxProps["sx"];
77
+ mountOnEnter?: boolean;
78
+ unmountOnExit?: boolean;
77
79
  }
@@ -1,4 +1,4 @@
1
- import { ModalProps } from "../modal/interfaces";
1
+ import { ModalProps } from "../modal";
2
2
  export interface PrimaryModalProps extends ModalProps {
3
3
  /**
4
4
  * heading of the modal
@@ -81,4 +81,4 @@ export declare function useBoundingClientRect<T extends Element = HTMLElement>(s
81
81
  ref: RefObject<T>;
82
82
  rect: DOMRect | undefined;
83
83
  };
84
- export declare const useBodyScrollLock: (target: HTMLElement | null, shouldEnable?: boolean) => void;
84
+ export declare const useBodyScrollLock: <T extends HTMLElement = HTMLElement>(target: T | null, shouldEnable?: boolean) => void;
@@ -0,0 +1,7 @@
1
+ export declare const isIOS: () => boolean;
2
+ export declare const isTouchScreen: () => boolean;
3
+ export declare const getResponsiveClick: (callback: () => void) => {
4
+ shouldUseTouch: boolean;
5
+ onClick: (() => void) | undefined;
6
+ onTouchStart: (() => void) | undefined;
7
+ };