@skodaflow/web-library 2.1.5 → 2.1.8

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.
@@ -5,10 +5,11 @@ import React from 'react';
5
5
  export interface ContentDivProps extends React.HTMLAttributes<HTMLDivElement> {
6
6
  setIsOverFlowing: React.Dispatch<React.SetStateAction<boolean>>;
7
7
  className?: string;
8
+ modalLoadedCallback?: (isLoaded: boolean) => void;
8
9
  }
9
10
  /**
10
11
  * @description SkodaFlow ContentDiv component
11
12
  * @param props ContentDivProps
12
13
  * @returns React Functional Component
13
14
  */
14
- export declare const ContentDiv: ({ children, setIsOverFlowing, className }: ContentDivProps) => JSX.Element;
15
+ export declare const ContentDiv: ({ children, setIsOverFlowing, className, modalLoadedCallback }: ContentDivProps) => JSX.Element;
@@ -31,11 +31,11 @@ export interface ModalProps extends React.HTMLAttributes<HTMLDivElement> {
31
31
  /**
32
32
  * Top button text.
33
33
  */
34
- firstButton: string;
34
+ firstButton?: string;
35
35
  /**
36
36
  * Bottom button text.
37
37
  */
38
- secondButton: string;
38
+ secondButton?: string;
39
39
  /**
40
40
  * Variant of button defines different look and style.
41
41
  */
@@ -58,6 +58,10 @@ export interface ModalProps extends React.HTMLAttributes<HTMLDivElement> {
58
58
  size?: 'small' | 'large' | 'full-width';
59
59
  defaultButtonSection?: boolean;
60
60
  maxWidth?: string;
61
+ /**
62
+ * A callback used to track if the modal is fully loaded. When the modal is closed isLoaded is set to false.
63
+ */
64
+ modalLoadedCallback?: (isLoaded: boolean) => void;
61
65
  }
62
66
  /**
63
67
  * @description Styled SkodaFlow Modal component