@radix-ui/react-alert-dialog 1.0.6-rc.5 → 1.1.0-rc.1

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.
package/dist/index.d.mts CHANGED
@@ -1,50 +1,62 @@
1
- import * as React from "react";
2
- import * as DialogPrimitive from "@radix-ui/react-dialog";
3
- import * as Radix from "@radix-ui/react-primitive";
4
- export const createAlertDialogScope: import("@radix-ui/react-context").CreateScope;
5
- type DialogProps = Radix.ComponentPropsWithoutRef<typeof DialogPrimitive.Root>;
6
- export interface AlertDialogProps extends Omit<DialogProps, 'modal'> {
7
- }
8
- export const AlertDialog: React.FC<AlertDialogProps>;
9
- type DialogTriggerProps = Radix.ComponentPropsWithoutRef<typeof DialogPrimitive.Trigger>;
10
- export interface AlertDialogTriggerProps extends DialogTriggerProps {
11
- }
12
- export const AlertDialogTrigger: React.ForwardRefExoticComponent<AlertDialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
13
- type DialogPortalProps = Radix.ComponentPropsWithoutRef<typeof DialogPrimitive.Portal>;
14
- export interface AlertDialogPortalProps extends DialogPortalProps {
15
- }
16
- export const AlertDialogPortal: React.FC<AlertDialogPortalProps>;
17
- type DialogOverlayProps = Radix.ComponentPropsWithoutRef<typeof DialogPrimitive.Overlay>;
18
- export interface AlertDialogOverlayProps extends DialogOverlayProps {
19
- }
20
- export const AlertDialogOverlay: React.ForwardRefExoticComponent<AlertDialogOverlayProps & React.RefAttributes<HTMLDivElement>>;
21
- type DialogContentProps = Radix.ComponentPropsWithoutRef<typeof DialogPrimitive.Content>;
22
- export interface AlertDialogContentProps extends Omit<DialogContentProps, 'onPointerDownOutside' | 'onInteractOutside'> {
23
- }
24
- export const AlertDialogContent: React.ForwardRefExoticComponent<AlertDialogContentProps & React.RefAttributes<HTMLDivElement>>;
25
- type DialogTitleProps = Radix.ComponentPropsWithoutRef<typeof DialogPrimitive.Title>;
26
- export interface AlertDialogTitleProps extends DialogTitleProps {
27
- }
28
- export const AlertDialogTitle: React.ForwardRefExoticComponent<AlertDialogTitleProps & React.RefAttributes<HTMLHeadingElement>>;
29
- type DialogDescriptionProps = Radix.ComponentPropsWithoutRef<typeof DialogPrimitive.Description>;
30
- export interface AlertDialogDescriptionProps extends DialogDescriptionProps {
31
- }
32
- export const AlertDialogDescription: React.ForwardRefExoticComponent<AlertDialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>>;
33
- type DialogCloseProps = Radix.ComponentPropsWithoutRef<typeof DialogPrimitive.Close>;
34
- export interface AlertDialogActionProps extends DialogCloseProps {
35
- }
36
- export const AlertDialogAction: React.ForwardRefExoticComponent<AlertDialogActionProps & React.RefAttributes<HTMLButtonElement>>;
37
- export interface AlertDialogCancelProps extends DialogCloseProps {
38
- }
39
- export const AlertDialogCancel: React.ForwardRefExoticComponent<AlertDialogCancelProps & React.RefAttributes<HTMLButtonElement>>;
40
- export const Root: React.FC<AlertDialogProps>;
41
- export const Trigger: React.ForwardRefExoticComponent<AlertDialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
42
- export const Portal: React.FC<AlertDialogPortalProps>;
43
- export const Overlay: React.ForwardRefExoticComponent<AlertDialogOverlayProps & React.RefAttributes<HTMLDivElement>>;
44
- export const Content: React.ForwardRefExoticComponent<AlertDialogContentProps & React.RefAttributes<HTMLDivElement>>;
45
- export const Action: React.ForwardRefExoticComponent<AlertDialogActionProps & React.RefAttributes<HTMLButtonElement>>;
46
- export const Cancel: React.ForwardRefExoticComponent<AlertDialogCancelProps & React.RefAttributes<HTMLButtonElement>>;
47
- export const Title: React.ForwardRefExoticComponent<AlertDialogTitleProps & React.RefAttributes<HTMLHeadingElement>>;
48
- export const Description: React.ForwardRefExoticComponent<AlertDialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>>;
1
+ import * as React from 'react';
2
+ import * as DialogPrimitive from '@radix-ui/react-dialog';
3
+ import * as Radix from '@radix-ui/react-primitive';
49
4
 
50
- //# sourceMappingURL=index.d.ts.map
5
+ declare type Scope<C = any> = {
6
+ [scopeName: string]: React.Context<C>[];
7
+ } | undefined;
8
+ declare type ScopeHook = (scope: Scope) => {
9
+ [__scopeProp: string]: Scope;
10
+ };
11
+ interface CreateScope {
12
+ scopeName: string;
13
+ (): ScopeHook;
14
+ }
15
+
16
+ declare const createAlertDialogScope: CreateScope;
17
+ declare type DialogProps = Radix.ComponentPropsWithoutRef<typeof DialogPrimitive.Root>;
18
+ interface AlertDialogProps extends Omit<DialogProps, 'modal'> {
19
+ }
20
+ declare const AlertDialog: React.FC<AlertDialogProps>;
21
+ declare type DialogTriggerProps = Radix.ComponentPropsWithoutRef<typeof DialogPrimitive.Trigger>;
22
+ interface AlertDialogTriggerProps extends DialogTriggerProps {
23
+ }
24
+ declare const AlertDialogTrigger: React.ForwardRefExoticComponent<AlertDialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
25
+ declare type DialogPortalProps = Radix.ComponentPropsWithoutRef<typeof DialogPrimitive.Portal>;
26
+ interface AlertDialogPortalProps extends DialogPortalProps {
27
+ }
28
+ declare const AlertDialogPortal: React.FC<AlertDialogPortalProps>;
29
+ declare type DialogOverlayProps = Radix.ComponentPropsWithoutRef<typeof DialogPrimitive.Overlay>;
30
+ interface AlertDialogOverlayProps extends DialogOverlayProps {
31
+ }
32
+ declare const AlertDialogOverlay: React.ForwardRefExoticComponent<AlertDialogOverlayProps & React.RefAttributes<HTMLDivElement>>;
33
+ declare type DialogContentProps = Radix.ComponentPropsWithoutRef<typeof DialogPrimitive.Content>;
34
+ interface AlertDialogContentProps extends Omit<DialogContentProps, 'onPointerDownOutside' | 'onInteractOutside'> {
35
+ }
36
+ declare const AlertDialogContent: React.ForwardRefExoticComponent<AlertDialogContentProps & React.RefAttributes<HTMLDivElement>>;
37
+ declare type DialogTitleProps = Radix.ComponentPropsWithoutRef<typeof DialogPrimitive.Title>;
38
+ interface AlertDialogTitleProps extends DialogTitleProps {
39
+ }
40
+ declare const AlertDialogTitle: React.ForwardRefExoticComponent<AlertDialogTitleProps & React.RefAttributes<HTMLHeadingElement>>;
41
+ declare type DialogDescriptionProps = Radix.ComponentPropsWithoutRef<typeof DialogPrimitive.Description>;
42
+ interface AlertDialogDescriptionProps extends DialogDescriptionProps {
43
+ }
44
+ declare const AlertDialogDescription: React.ForwardRefExoticComponent<AlertDialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>>;
45
+ declare type DialogCloseProps = Radix.ComponentPropsWithoutRef<typeof DialogPrimitive.Close>;
46
+ interface AlertDialogActionProps extends DialogCloseProps {
47
+ }
48
+ declare const AlertDialogAction: React.ForwardRefExoticComponent<AlertDialogActionProps & React.RefAttributes<HTMLButtonElement>>;
49
+ interface AlertDialogCancelProps extends DialogCloseProps {
50
+ }
51
+ declare const AlertDialogCancel: React.ForwardRefExoticComponent<AlertDialogCancelProps & React.RefAttributes<HTMLButtonElement>>;
52
+ declare const Root: React.FC<AlertDialogProps>;
53
+ declare const Trigger: React.ForwardRefExoticComponent<AlertDialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
54
+ declare const Portal: React.FC<AlertDialogPortalProps>;
55
+ declare const Overlay: React.ForwardRefExoticComponent<AlertDialogOverlayProps & React.RefAttributes<HTMLDivElement>>;
56
+ declare const Content: React.ForwardRefExoticComponent<AlertDialogContentProps & React.RefAttributes<HTMLDivElement>>;
57
+ declare const Action: React.ForwardRefExoticComponent<AlertDialogActionProps & React.RefAttributes<HTMLButtonElement>>;
58
+ declare const Cancel: React.ForwardRefExoticComponent<AlertDialogCancelProps & React.RefAttributes<HTMLButtonElement>>;
59
+ declare const Title: React.ForwardRefExoticComponent<AlertDialogTitleProps & React.RefAttributes<HTMLHeadingElement>>;
60
+ declare const Description: React.ForwardRefExoticComponent<AlertDialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>>;
61
+
62
+ export { Action, AlertDialog, AlertDialogAction, type AlertDialogActionProps, AlertDialogCancel, type AlertDialogCancelProps, AlertDialogContent, type AlertDialogContentProps, AlertDialogDescription, type AlertDialogDescriptionProps, AlertDialogOverlay, type AlertDialogOverlayProps, AlertDialogPortal, type AlertDialogPortalProps, type AlertDialogProps, AlertDialogTitle, type AlertDialogTitleProps, AlertDialogTrigger, type AlertDialogTriggerProps, Cancel, Content, Description, Overlay, Portal, Root, Title, Trigger, createAlertDialogScope };
package/dist/index.d.ts CHANGED
@@ -1,50 +1,62 @@
1
- import * as React from "react";
2
- import * as DialogPrimitive from "@radix-ui/react-dialog";
3
- import * as Radix from "@radix-ui/react-primitive";
4
- export const createAlertDialogScope: import("@radix-ui/react-context").CreateScope;
5
- type DialogProps = Radix.ComponentPropsWithoutRef<typeof DialogPrimitive.Root>;
6
- export interface AlertDialogProps extends Omit<DialogProps, 'modal'> {
7
- }
8
- export const AlertDialog: React.FC<AlertDialogProps>;
9
- type DialogTriggerProps = Radix.ComponentPropsWithoutRef<typeof DialogPrimitive.Trigger>;
10
- export interface AlertDialogTriggerProps extends DialogTriggerProps {
11
- }
12
- export const AlertDialogTrigger: React.ForwardRefExoticComponent<AlertDialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
13
- type DialogPortalProps = Radix.ComponentPropsWithoutRef<typeof DialogPrimitive.Portal>;
14
- export interface AlertDialogPortalProps extends DialogPortalProps {
15
- }
16
- export const AlertDialogPortal: React.FC<AlertDialogPortalProps>;
17
- type DialogOverlayProps = Radix.ComponentPropsWithoutRef<typeof DialogPrimitive.Overlay>;
18
- export interface AlertDialogOverlayProps extends DialogOverlayProps {
19
- }
20
- export const AlertDialogOverlay: React.ForwardRefExoticComponent<AlertDialogOverlayProps & React.RefAttributes<HTMLDivElement>>;
21
- type DialogContentProps = Radix.ComponentPropsWithoutRef<typeof DialogPrimitive.Content>;
22
- export interface AlertDialogContentProps extends Omit<DialogContentProps, 'onPointerDownOutside' | 'onInteractOutside'> {
23
- }
24
- export const AlertDialogContent: React.ForwardRefExoticComponent<AlertDialogContentProps & React.RefAttributes<HTMLDivElement>>;
25
- type DialogTitleProps = Radix.ComponentPropsWithoutRef<typeof DialogPrimitive.Title>;
26
- export interface AlertDialogTitleProps extends DialogTitleProps {
27
- }
28
- export const AlertDialogTitle: React.ForwardRefExoticComponent<AlertDialogTitleProps & React.RefAttributes<HTMLHeadingElement>>;
29
- type DialogDescriptionProps = Radix.ComponentPropsWithoutRef<typeof DialogPrimitive.Description>;
30
- export interface AlertDialogDescriptionProps extends DialogDescriptionProps {
31
- }
32
- export const AlertDialogDescription: React.ForwardRefExoticComponent<AlertDialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>>;
33
- type DialogCloseProps = Radix.ComponentPropsWithoutRef<typeof DialogPrimitive.Close>;
34
- export interface AlertDialogActionProps extends DialogCloseProps {
35
- }
36
- export const AlertDialogAction: React.ForwardRefExoticComponent<AlertDialogActionProps & React.RefAttributes<HTMLButtonElement>>;
37
- export interface AlertDialogCancelProps extends DialogCloseProps {
38
- }
39
- export const AlertDialogCancel: React.ForwardRefExoticComponent<AlertDialogCancelProps & React.RefAttributes<HTMLButtonElement>>;
40
- export const Root: React.FC<AlertDialogProps>;
41
- export const Trigger: React.ForwardRefExoticComponent<AlertDialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
42
- export const Portal: React.FC<AlertDialogPortalProps>;
43
- export const Overlay: React.ForwardRefExoticComponent<AlertDialogOverlayProps & React.RefAttributes<HTMLDivElement>>;
44
- export const Content: React.ForwardRefExoticComponent<AlertDialogContentProps & React.RefAttributes<HTMLDivElement>>;
45
- export const Action: React.ForwardRefExoticComponent<AlertDialogActionProps & React.RefAttributes<HTMLButtonElement>>;
46
- export const Cancel: React.ForwardRefExoticComponent<AlertDialogCancelProps & React.RefAttributes<HTMLButtonElement>>;
47
- export const Title: React.ForwardRefExoticComponent<AlertDialogTitleProps & React.RefAttributes<HTMLHeadingElement>>;
48
- export const Description: React.ForwardRefExoticComponent<AlertDialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>>;
1
+ import * as React from 'react';
2
+ import * as DialogPrimitive from '@radix-ui/react-dialog';
3
+ import * as Radix from '@radix-ui/react-primitive';
49
4
 
50
- //# sourceMappingURL=index.d.ts.map
5
+ declare type Scope<C = any> = {
6
+ [scopeName: string]: React.Context<C>[];
7
+ } | undefined;
8
+ declare type ScopeHook = (scope: Scope) => {
9
+ [__scopeProp: string]: Scope;
10
+ };
11
+ interface CreateScope {
12
+ scopeName: string;
13
+ (): ScopeHook;
14
+ }
15
+
16
+ declare const createAlertDialogScope: CreateScope;
17
+ declare type DialogProps = Radix.ComponentPropsWithoutRef<typeof DialogPrimitive.Root>;
18
+ interface AlertDialogProps extends Omit<DialogProps, 'modal'> {
19
+ }
20
+ declare const AlertDialog: React.FC<AlertDialogProps>;
21
+ declare type DialogTriggerProps = Radix.ComponentPropsWithoutRef<typeof DialogPrimitive.Trigger>;
22
+ interface AlertDialogTriggerProps extends DialogTriggerProps {
23
+ }
24
+ declare const AlertDialogTrigger: React.ForwardRefExoticComponent<AlertDialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
25
+ declare type DialogPortalProps = Radix.ComponentPropsWithoutRef<typeof DialogPrimitive.Portal>;
26
+ interface AlertDialogPortalProps extends DialogPortalProps {
27
+ }
28
+ declare const AlertDialogPortal: React.FC<AlertDialogPortalProps>;
29
+ declare type DialogOverlayProps = Radix.ComponentPropsWithoutRef<typeof DialogPrimitive.Overlay>;
30
+ interface AlertDialogOverlayProps extends DialogOverlayProps {
31
+ }
32
+ declare const AlertDialogOverlay: React.ForwardRefExoticComponent<AlertDialogOverlayProps & React.RefAttributes<HTMLDivElement>>;
33
+ declare type DialogContentProps = Radix.ComponentPropsWithoutRef<typeof DialogPrimitive.Content>;
34
+ interface AlertDialogContentProps extends Omit<DialogContentProps, 'onPointerDownOutside' | 'onInteractOutside'> {
35
+ }
36
+ declare const AlertDialogContent: React.ForwardRefExoticComponent<AlertDialogContentProps & React.RefAttributes<HTMLDivElement>>;
37
+ declare type DialogTitleProps = Radix.ComponentPropsWithoutRef<typeof DialogPrimitive.Title>;
38
+ interface AlertDialogTitleProps extends DialogTitleProps {
39
+ }
40
+ declare const AlertDialogTitle: React.ForwardRefExoticComponent<AlertDialogTitleProps & React.RefAttributes<HTMLHeadingElement>>;
41
+ declare type DialogDescriptionProps = Radix.ComponentPropsWithoutRef<typeof DialogPrimitive.Description>;
42
+ interface AlertDialogDescriptionProps extends DialogDescriptionProps {
43
+ }
44
+ declare const AlertDialogDescription: React.ForwardRefExoticComponent<AlertDialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>>;
45
+ declare type DialogCloseProps = Radix.ComponentPropsWithoutRef<typeof DialogPrimitive.Close>;
46
+ interface AlertDialogActionProps extends DialogCloseProps {
47
+ }
48
+ declare const AlertDialogAction: React.ForwardRefExoticComponent<AlertDialogActionProps & React.RefAttributes<HTMLButtonElement>>;
49
+ interface AlertDialogCancelProps extends DialogCloseProps {
50
+ }
51
+ declare const AlertDialogCancel: React.ForwardRefExoticComponent<AlertDialogCancelProps & React.RefAttributes<HTMLButtonElement>>;
52
+ declare const Root: React.FC<AlertDialogProps>;
53
+ declare const Trigger: React.ForwardRefExoticComponent<AlertDialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
54
+ declare const Portal: React.FC<AlertDialogPortalProps>;
55
+ declare const Overlay: React.ForwardRefExoticComponent<AlertDialogOverlayProps & React.RefAttributes<HTMLDivElement>>;
56
+ declare const Content: React.ForwardRefExoticComponent<AlertDialogContentProps & React.RefAttributes<HTMLDivElement>>;
57
+ declare const Action: React.ForwardRefExoticComponent<AlertDialogActionProps & React.RefAttributes<HTMLButtonElement>>;
58
+ declare const Cancel: React.ForwardRefExoticComponent<AlertDialogCancelProps & React.RefAttributes<HTMLButtonElement>>;
59
+ declare const Title: React.ForwardRefExoticComponent<AlertDialogTitleProps & React.RefAttributes<HTMLHeadingElement>>;
60
+ declare const Description: React.ForwardRefExoticComponent<AlertDialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>>;
61
+
62
+ export { Action, AlertDialog, AlertDialogAction, type AlertDialogActionProps, AlertDialogCancel, type AlertDialogCancelProps, AlertDialogContent, type AlertDialogContentProps, AlertDialogDescription, type AlertDialogDescriptionProps, AlertDialogOverlay, type AlertDialogOverlayProps, AlertDialogPortal, type AlertDialogPortalProps, type AlertDialogProps, AlertDialogTitle, type AlertDialogTitleProps, AlertDialogTrigger, type AlertDialogTriggerProps, Cancel, Content, Description, Overlay, Portal, Root, Title, Trigger, createAlertDialogScope };