randmarcomps 1.37.0 → 1.39.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.
@@ -1,11 +1,11 @@
1
1
  import { ButtonProps as ButtonProps_2 } from './button';
2
2
  import { ClassProp } from 'class-variance-authority/types';
3
+ import * as DialogPrimitive from '@radix-ui/react-dialog';
3
4
  import { JSX } from 'react/jsx-runtime';
4
5
  import { OTPInput } from 'input-otp';
5
6
  import * as React_2 from 'react';
6
7
  import * as SeparatorPrimitive from '@radix-ui/react-separator';
7
8
  import { SeparatorProps } from '@radix-ui/react-separator';
8
- import * as SheetPrimitive from '@radix-ui/react-dialog';
9
9
  import * as ToastPrimitives from '@radix-ui/react-toast';
10
10
  import * as TooltipPrimitive from '@radix-ui/react-tooltip';
11
11
  import { VariantProps } from 'class-variance-authority';
@@ -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,6 +30,37 @@ 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
+
41
+ export declare const Dialog: {
42
+ ({ modal, ...props }: DialogPrimitive.DialogProps): JSX.Element;
43
+ displayName: string | undefined;
44
+ };
45
+
46
+ export declare const DialogContent: React_2.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogContentProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
47
+
48
+ export declare const DialogDescription: React_2.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React_2.RefAttributes<HTMLParagraphElement>, "ref"> & React_2.RefAttributes<HTMLParagraphElement>>;
49
+
50
+ export declare const DialogFooter: {
51
+ ({ className, ...props }: React_2.HTMLAttributes<HTMLDivElement>): JSX.Element;
52
+ displayName: string;
53
+ };
54
+
55
+ export declare const DialogHeader: {
56
+ ({ className, ...props }: React_2.HTMLAttributes<HTMLDivElement>): JSX.Element;
57
+ displayName: string;
58
+ };
59
+
60
+ export declare const DialogTitle: React_2.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React_2.RefAttributes<HTMLHeadingElement>, "ref"> & React_2.RefAttributes<HTMLHeadingElement>>;
61
+
62
+ export declare const DialogTrigger: React_2.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React_2.RefAttributes<HTMLButtonElement>>;
63
+
32
64
  export declare const Input: React_2.ForwardRefExoticComponent<Omit<React_2.DetailedHTMLProps<React_2.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & React_2.RefAttributes<HTMLInputElement>>;
33
65
 
34
66
  export declare function InputOTP({ className, containerClassName, ...props }: React_2.ComponentProps<typeof OTPInput> & {
@@ -72,16 +104,16 @@ export declare interface NavRoute {
72
104
 
73
105
  export declare const Separator: React_2.ForwardRefExoticComponent<Omit<SeparatorPrimitive.SeparatorProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
74
106
 
75
- export declare const Sheet: React_2.FC<SheetPrimitive.DialogProps>;
107
+ export declare const Sheet: React_2.FC<DialogPrimitive.DialogProps>;
76
108
 
77
- export declare const SheetClose: React_2.ForwardRefExoticComponent<SheetPrimitive.DialogCloseProps & React_2.RefAttributes<HTMLButtonElement>>;
109
+ export declare const SheetClose: React_2.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React_2.RefAttributes<HTMLButtonElement>>;
78
110
 
79
111
  export declare const SheetContent: React_2.ForwardRefExoticComponent<SheetContentProps & React_2.RefAttributes<HTMLDivElement>>;
80
112
 
81
- declare interface SheetContentProps extends React_2.ComponentPropsWithoutRef<typeof SheetPrimitive.Content>, VariantProps<typeof sheetVariants> {
113
+ declare interface SheetContentProps extends React_2.ComponentPropsWithoutRef<typeof DialogPrimitive.Content>, VariantProps<typeof sheetVariants> {
82
114
  }
83
115
 
84
- export declare const SheetDescription: React_2.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogDescriptionProps & React_2.RefAttributes<HTMLParagraphElement>, "ref"> & React_2.RefAttributes<HTMLParagraphElement>>;
116
+ export declare const SheetDescription: React_2.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React_2.RefAttributes<HTMLParagraphElement>, "ref"> & React_2.RefAttributes<HTMLParagraphElement>>;
85
117
 
86
118
  export declare const SheetFooter: {
87
119
  ({ className, ...props }: React_2.HTMLAttributes<HTMLDivElement>): JSX.Element;
@@ -93,13 +125,13 @@ export declare const SheetHeader: {
93
125
  displayName: string;
94
126
  };
95
127
 
96
- export declare const SheetOverlay: React_2.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogOverlayProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
128
+ export declare const SheetOverlay: React_2.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
97
129
 
98
- export declare const SheetPortal: React_2.FC<SheetPrimitive.DialogPortalProps>;
130
+ export declare const SheetPortal: React_2.FC<DialogPrimitive.DialogPortalProps>;
99
131
 
100
- export declare const SheetTitle: React_2.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogTitleProps & React_2.RefAttributes<HTMLHeadingElement>, "ref"> & React_2.RefAttributes<HTMLHeadingElement>>;
132
+ export declare const SheetTitle: React_2.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React_2.RefAttributes<HTMLHeadingElement>, "ref"> & React_2.RefAttributes<HTMLHeadingElement>>;
101
133
 
102
- export declare const SheetTrigger: React_2.ForwardRefExoticComponent<SheetPrimitive.DialogTriggerProps & React_2.RefAttributes<HTMLButtonElement>>;
134
+ export declare const SheetTrigger: React_2.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React_2.RefAttributes<HTMLButtonElement>>;
103
135
 
104
136
  declare const sheetVariants: (props?: ({
105
137
  side?: "top" | "bottom" | "left" | "right" | null | undefined;