randmarcomps 1.38.0 → 1.40.0

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.
@@ -22,6 +22,7 @@ export declare const Button: React_2.ForwardRefExoticComponent<ButtonProps & Rea
22
22
 
23
23
  export declare interface ButtonProps extends React_2.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
24
24
  asChild?: boolean;
25
+ confirmationDialog?: ConfirmationDialogProps;
25
26
  }
26
27
 
27
28
  export declare const buttonVariants: (props?: ({
@@ -29,11 +30,21 @@ export declare const buttonVariants: (props?: ({
29
30
  size?: "default" | "sm" | "lg" | "icon" | null | undefined;
30
31
  } & ClassProp) | undefined) => string;
31
32
 
33
+ export declare interface ConfirmationDialogProps {
34
+ title: string;
35
+ content: React_2.ReactNode;
36
+ onConfirm: () => void;
37
+ confirmText?: string;
38
+ cancelText?: string;
39
+ }
40
+
32
41
  export declare const Dialog: {
33
42
  ({ modal, ...props }: DialogPrimitive.DialogProps): JSX.Element;
34
43
  displayName: string | undefined;
35
44
  };
36
45
 
46
+ export declare const DialogClose: React_2.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React_2.RefAttributes<HTMLButtonElement>>;
47
+
37
48
  export declare const DialogContent: React_2.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogContentProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
38
49
 
39
50
  export declare const DialogDescription: React_2.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React_2.RefAttributes<HTMLParagraphElement>, "ref"> & React_2.RefAttributes<HTMLParagraphElement>>;