@amboss/design-system 2.3.5 → 2.3.6

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.
@@ -1,4 +1,5 @@
1
1
  import React from "react";
2
+ import type { Theme } from "@emotion/react";
2
3
  import type { StackProps } from "../../Stack/Stack";
3
4
  import type { ButtonGroupButtonProps } from "../ButtonGroup/ButtonGroup";
4
5
  type BaseProps = {
@@ -24,7 +25,7 @@ type BaseProps = {
24
25
  isDismissible: boolean;
25
26
  isFullScreen?: boolean;
26
27
  isMaxWidthLimit?: boolean;
27
- size?: "s" | "m" | "l";
28
+ size?: "m" | "l";
28
29
  };
29
30
  type ConditionalProps = {
30
31
  /** Aspect ratio 16:9 */
@@ -36,12 +37,16 @@ type ConditionalProps = {
36
37
  ImageComponent?: React.ElementType<any>;
37
38
  };
38
39
  export type ModalProps = BaseProps & ConditionalProps;
40
+ export declare const StyledBackdrop: import("@emotion/styled").StyledComponent<{
41
+ theme?: Theme;
42
+ as?: React.ElementType<any>;
43
+ } & Partial<BaseProps>, React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
39
44
  export declare function Modal({ header, subHeader, labelHeader, children, imageUrl, ImageComponent, secondaryButton, cancelButtonLabel, isDismissible, isFullScreen, isMaxWidthLimit, actionButton, role, onAction, size, privateProps: { skipPortal }, "data-e2e-test-id": dataE2eTestId, }: ModalProps): React.ReactElement;
40
45
  export declare namespace Modal {
41
46
  var defaultProps: Partial<ModalProps>;
42
47
  var Stack: ({ children, ...rest }: Omit<StackProps, "space">) => JSX.Element;
43
48
  var Text: ({ children, ...rest }: Omit<{
44
- theme?: import("@emotion/react").Theme;
49
+ theme?: Theme;
45
50
  as?: React.ElementType<any>;
46
51
  } & import("../../Typography/Text/Text").BaseTextProps & Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, keyof React.HTMLAttributes<HTMLParagraphElement>> & {
47
52
  children?: React.ReactNode;