@orangesk/orange-design-system 2.0.0-beta.26 → 2.0.0-beta.27

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.
@@ -663,8 +663,8 @@ interface ModalProps extends React$1.HTMLAttributes<HTMLDivElement> {
663
663
  id: string;
664
664
  /** isActive controls if modal is opened or closed */
665
665
  isActive?: boolean;
666
- /** Disable plugin initialization. */
667
- noInit?: boolean;
666
+ /** Callback fired when modal is closed */
667
+ onHide?: () => void;
668
668
  /** Custom header renderer. Receives id as function param. Returned element(s) must contain a header with close button. */
669
669
  renderHeader?: (id: string) => React$1.ReactNode;
670
670
  /** Custom body renderer. Receives title as function param. Returned element(s) must contain a title. */
@@ -12,8 +12,8 @@ interface ModalProps extends React.HTMLAttributes<HTMLDivElement> {
12
12
  id: string;
13
13
  /** isActive controls if modal is opened or closed */
14
14
  isActive?: boolean;
15
- /** Disable plugin initialization. */
16
- noInit?: boolean;
15
+ /** Callback fired when modal is closed */
16
+ onHide?: () => void;
17
17
  /** Custom header renderer. Receives id as function param. Returned element(s) must contain a header with close button. */
18
18
  renderHeader?: (id: string) => React.ReactNode;
19
19
  /** Custom body renderer. Receives title as function param. Returned element(s) must contain a title. */
@@ -8,8 +8,6 @@ interface ModalConfig {
8
8
  root: string;
9
9
  /** Move modal into this element selector (must be unique in DOM) */
10
10
  modalsRoot: string;
11
- /** Disable moving modal into #root-modals */
12
- disablePortal?: boolean;
13
11
  }
14
12
  interface HTMLElementWithModal extends HTMLElement {
15
13
  ODS_Modal?: Modal;
@@ -29,6 +27,7 @@ export default class Modal {
29
27
  destroy(): void;
30
28
  update(): void;
31
29
  static moveToModalRoot(el: HTMLElement, container: Element | null): void;
30
+ private static isLocked;
32
31
  static lockBody(className?: string, root?: string): void;
33
32
  static unlockBody(className?: string, root?: string): void;
34
33
  }