@react-cupertino-ui/dialog 2.0.3 → 2.0.5
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.ts +1 -0
- package/dist/index.js +2 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -37,3 +37,4 @@ interface AlertDialogCancelProps extends React.ComponentPropsWithoutRef<typeof A
|
|
|
37
37
|
declare const AlertDialogAction: React.ForwardRefExoticComponent<AlertDialogActionProps & React.RefAttributes<HTMLButtonElement>>;
|
|
38
38
|
declare const AlertDialogCancel: React.ForwardRefExoticComponent<AlertDialogCancelProps & React.RefAttributes<HTMLButtonElement>>;
|
|
39
39
|
export { AlertDialog, AlertDialogPortal, AlertDialogOverlay, AlertDialogTrigger, AlertDialogContent, AlertDialogHeader, AlertDialogFooter, AlertDialogTitle, AlertDialogDescription, AlertDialogAction, AlertDialogCancel, };
|
|
40
|
+
export { AlertDialog as Dialog, AlertDialogTrigger as DialogTrigger, AlertDialogPortal as DialogPortal, AlertDialogOverlay as DialogOverlay, AlertDialogContent as DialogContent, AlertDialogHeader as DialogHeader, AlertDialogFooter as DialogFooter, AlertDialogTitle as DialogTitle, AlertDialogDescription as DialogDescription, AlertDialogAction as DialogAction, AlertDialogCancel as DialogCancel, };
|
package/dist/index.js
CHANGED
|
@@ -47,3 +47,5 @@ AlertDialogAction.displayName = AlertDialogPrimitive.Action.displayName;
|
|
|
47
47
|
const AlertDialogCancel = React.forwardRef(({ className, children, size = "default", fullWidth = true, loading = false, icon, buttonVariant = "outline", buttonClassName, ...props }, ref) => (_jsx(AlertDialogPrimitive.Cancel, { ref: ref, asChild: true, ...props, children: _jsx(Button, { variant: buttonVariant, size: size, fullWidth: fullWidth, loading: loading, icon: icon, className: cn("react-cupertino-ui-dialog__button", buttonClassName, className), children: children }) })));
|
|
48
48
|
AlertDialogCancel.displayName = AlertDialogPrimitive.Cancel.displayName;
|
|
49
49
|
export { AlertDialog, AlertDialogPortal, AlertDialogOverlay, AlertDialogTrigger, AlertDialogContent, AlertDialogHeader, AlertDialogFooter, AlertDialogTitle, AlertDialogDescription, AlertDialogAction, AlertDialogCancel, };
|
|
50
|
+
// Alias exports for better DX - consumers can use either naming convention
|
|
51
|
+
export { AlertDialog as Dialog, AlertDialogTrigger as DialogTrigger, AlertDialogPortal as DialogPortal, AlertDialogOverlay as DialogOverlay, AlertDialogContent as DialogContent, AlertDialogHeader as DialogHeader, AlertDialogFooter as DialogFooter, AlertDialogTitle as DialogTitle, AlertDialogDescription as DialogDescription, AlertDialogAction as DialogAction, AlertDialogCancel as DialogCancel, };
|