@ynput/ayon-react-components 0.5.13 → 0.5.14

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,11 +1,21 @@
1
- export interface DialogProps extends React.HTMLAttributes<HTMLDivElement> {
2
- onHide?: () => void;
1
+ import { ButtonProps } from '../../Button';
2
+ type DialogProps = {
3
3
  header?: React.ReactNode;
4
- footer?: React.ReactNode;
5
4
  children?: React.ReactNode;
6
- headerStyle?: React.CSSProperties;
7
- bodyStyle?: React.CSSProperties;
8
- footerStyle?: React.CSSProperties;
9
- visible?: boolean;
10
- }
11
- export declare const Dialog: import("react").ForwardRefExoticComponent<DialogProps & import("react").RefAttributes<HTMLDivElement>>;
5
+ footer?: React.ReactNode;
6
+ closeProps?: ButtonProps;
7
+ hideCancelButton?: boolean;
8
+ isOpen: boolean;
9
+ onClose?: () => void;
10
+ classNames?: ClassNames;
11
+ size?: "sm" | "md" | "lg" | "full";
12
+ };
13
+ type ClassNames = {
14
+ header?: string;
15
+ body?: string;
16
+ footer?: string;
17
+ cancelButton?: string;
18
+ closeButton?: string;
19
+ };
20
+ export declare const Dialog: import("react").ForwardRefExoticComponent<DialogProps & import("react").RefAttributes<HTMLDialogElement>>;
21
+ export {};
@@ -1,11 +1,8 @@
1
- export declare const fadeInAnimation: import("styled-components").Keyframes;
2
- export declare const Shade: import("styled-components").StyledComponent<"div", any, {}, never>;
3
- export declare const openAnimation: import("styled-components").Keyframes;
4
- export declare const Window: import("styled-components").StyledComponent<"div", any, {
5
- $noHeader: boolean;
1
+ export declare const Dialog: import("styled-components").StyledComponent<"dialog", any, {
2
+ $size?: string | undefined;
6
3
  }, never>;
4
+ export declare const Close: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("../../Button").ButtonProps & import("react").RefAttributes<HTMLButtonElement>>, any, {}, never>;
7
5
  export declare const BaseDialogEdge: import("styled-components").StyledComponent<"div", any, {}, never>;
8
6
  export declare const Header: import("styled-components").StyledComponent<"div", any, {}, never>;
9
7
  export declare const Footer: import("styled-components").StyledComponent<"div", any, {}, never>;
10
8
  export declare const Body: import("styled-components").StyledComponent<"div", any, {}, never>;
11
- export declare const Close: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("../../Button").ButtonProps & import("react").RefAttributes<HTMLButtonElement>>, any, {}, never>;