@rovula/ui 0.1.16 → 0.1.20

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.
@@ -4,6 +4,7 @@ export type ConfirmDialogProps = {
4
4
  onOpenChange?: (open: boolean) => void;
5
5
  title: string;
6
6
  description?: string;
7
+ children?: React.ReactNode;
7
8
  confirmLabel?: string;
8
9
  cancelLabel?: string;
9
10
  onConfirm?: () => void;
@@ -21,5 +22,7 @@ export type ConfirmDialogProps = {
21
22
  */
22
23
  hideCancelButton?: boolean;
23
24
  testId?: string;
25
+ cancelClassName?: string;
26
+ confirmClassName?: string;
24
27
  };
25
28
  export declare const ConfirmDialog: React.FC<ConfirmDialogProps>;
@@ -13,6 +13,7 @@ declare const meta: {
13
13
  onOpenChange?: ((open: boolean) => void) | undefined;
14
14
  title: string;
15
15
  description?: string | undefined;
16
+ children?: React.ReactNode;
16
17
  confirmLabel?: string | undefined;
17
18
  cancelLabel?: string | undefined;
18
19
  onConfirm?: (() => void) | undefined;
@@ -22,6 +23,8 @@ declare const meta: {
22
23
  typeToConfirm?: string | undefined;
23
24
  hideCancelButton?: boolean | undefined;
24
25
  testId?: string | undefined;
26
+ cancelClassName?: string | undefined;
27
+ confirmClassName?: string | undefined;
25
28
  }>) => import("react/jsx-runtime").JSX.Element)[];
26
29
  argTypes: {
27
30
  open: {
@@ -8,6 +8,7 @@ export type FormDialogAction = {
8
8
  disabled?: boolean;
9
9
  isLoading?: boolean;
10
10
  type?: "button" | "submit" | "reset";
11
+ className?: string;
11
12
  };
12
13
  export type FormDialogProps = {
13
14
  open?: boolean;
@@ -51,12 +51,12 @@ AlertDialogDescription.displayName =
51
51
  AlertDialogPrimitive.Description.displayName;
52
52
  const AlertDialogAction = React.forwardRef((_a, ref) => {
53
53
  var { className } = _a, props = __rest(_a, ["className"]);
54
- return (_jsx(AlertDialogPrimitive.Action, Object.assign({ ref: ref, className: cn(buttonVariants({ fullwidth: false }), "w-[100px] justify-center", className) }, props)));
54
+ return (_jsx(AlertDialogPrimitive.Action, Object.assign({ ref: ref, className: cn(buttonVariants({ fullwidth: false }), "min-w-[100px] justify-center", className) }, props)));
55
55
  });
56
56
  AlertDialogAction.displayName = AlertDialogPrimitive.Action.displayName;
57
57
  const AlertDialogCancel = React.forwardRef((_a, ref) => {
58
58
  var { className } = _a, props = __rest(_a, ["className"]);
59
- return (_jsx(AlertDialogPrimitive.Cancel, Object.assign({ ref: ref, className: cn(buttonVariants({ fullwidth: false, variant: "outline" }), "w-[100px] justify-center", className) }, props)));
59
+ return (_jsx(AlertDialogPrimitive.Cancel, Object.assign({ ref: ref, className: cn(buttonVariants({ fullwidth: false, variant: "outline" }), "min-w-[100px] justify-center whitespace-pre-line", className) }, props)));
60
60
  });
61
61
  AlertDialogCancel.displayName = AlertDialogPrimitive.Cancel.displayName;
62
62
  export { AlertDialog, AlertDialogPortal, AlertDialogOverlay, AlertDialogTrigger, AlertDialogContent, AlertDialogHeader, AlertDialogFooter, AlertDialogTitle, AlertDialogDescription, AlertDialogAction, AlertDialogCancel, };
@@ -1063,6 +1063,9 @@ input[type=number] {
1063
1063
  .min-w-72{
1064
1064
  min-width: 18rem;
1065
1065
  }
1066
+ .min-w-\[100px\]{
1067
+ min-width: 100px;
1068
+ }
1066
1069
  .min-w-\[154px\]{
1067
1070
  min-width: 154px;
1068
1071
  }
@@ -1357,6 +1360,9 @@ input[type=number] {
1357
1360
  .whitespace-nowrap{
1358
1361
  white-space: nowrap;
1359
1362
  }
1363
+ .whitespace-pre-line{
1364
+ white-space: pre-line;
1365
+ }
1360
1366
  .break-all{
1361
1367
  word-break: break-all;
1362
1368
  }