@gusarov-studio/rubik-ui 10.0.1 → 10.0.2
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.
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { type DialogProps as RadixDialogProps } from "@radix-ui/react-dialog";
|
|
3
|
+
interface DialogProps extends RadixDialogProps {
|
|
4
|
+
zIndex?: number | `${number}`;
|
|
5
|
+
}
|
|
6
|
+
declare const Dialog: React.FC<DialogProps>;
|
|
7
|
+
export { Dialog, type DialogProps };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface DialogContextState {
|
|
3
|
+
zIndex: number | `${number}`;
|
|
4
|
+
}
|
|
5
|
+
declare const DialogContext: React.Context<DialogContextState | null>;
|
|
6
|
+
declare const useDialogContext: () => DialogContextState;
|
|
7
|
+
export { DialogContext, useDialogContext };
|
package/dist/Dialog/index.d.ts
CHANGED
|
@@ -1,9 +1,22 @@
|
|
|
1
|
+
import { type DialogTriggerProps } from "@radix-ui/react-dialog";
|
|
2
|
+
import { type DialogContentProps } from "./DialogContent";
|
|
3
|
+
import { type DialogDescriptionProps } from "./DialogDescription";
|
|
4
|
+
import { type DialogTitleProps } from "./DialogTitle";
|
|
5
|
+
import { type DialogDecorationProps } from "./DialogDecoration";
|
|
6
|
+
import { type DialogFooterProps } from "./DialogFooter";
|
|
7
|
+
import { type DialogCloseProps } from "./DialogClose";
|
|
8
|
+
import { type DialogHeaderProps } from "./DialogHeader";
|
|
9
|
+
import { type DialogProps } from "./Dialog";
|
|
1
10
|
import "./Dialog.scss";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
11
|
+
declare const Dialog: {
|
|
12
|
+
Root: import("react").FC<DialogProps>;
|
|
13
|
+
Trigger: import("react").ForwardRefExoticComponent<DialogTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
14
|
+
Content: import("react").ForwardRefExoticComponent<DialogContentProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
15
|
+
Description: import("react").ForwardRefExoticComponent<Omit<import("@radix-ui/react-dialog").DialogDescriptionProps & import("react").RefAttributes<HTMLParagraphElement>, "ref"> & import("react").RefAttributes<HTMLParagraphElement>>;
|
|
16
|
+
Title: import("react").ForwardRefExoticComponent<Omit<import("@radix-ui/react-dialog").DialogTitleProps & import("react").RefAttributes<HTMLHeadingElement>, "ref"> & import("react").RefAttributes<HTMLHeadingElement>>;
|
|
17
|
+
Decoration: import("react").ForwardRefExoticComponent<DialogDecorationProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
18
|
+
Footer: import("react").ForwardRefExoticComponent<DialogFooterProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
19
|
+
Close: import("react").ForwardRefExoticComponent<Omit<import("@radix-ui/react-dialog").DialogCloseProps & import("react").RefAttributes<HTMLButtonElement>, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
20
|
+
Header: import("react").ForwardRefExoticComponent<DialogHeaderProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
21
|
+
};
|
|
22
|
+
export { Dialog, type DialogTriggerProps, type DialogProps, type DialogContentProps, type DialogDescriptionProps, type DialogTitleProps, type DialogDecorationProps, type DialogFooterProps, type DialogCloseProps, type DialogHeaderProps, };
|