@rovula/ui 0.1.15 → 0.1.18
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/cjs/bundle.css +6 -0
- package/dist/cjs/bundle.js +1545 -1545
- package/dist/cjs/bundle.js.map +1 -1
- package/dist/cjs/types/index.d.ts +2 -0
- package/dist/cjs/types/patterns/confirm-dialog/ConfirmDialog.d.ts +3 -0
- package/dist/cjs/types/patterns/confirm-dialog/ConfirmDialog.stories.d.ts +3 -0
- package/dist/cjs/types/patterns/form-dialog/FormDialog.d.ts +2 -0
- package/dist/cjs/types/patterns/form-dialog/FormDialog.stories.d.ts +1 -0
- package/dist/components/AlertDialog/AlertDialog.js +2 -2
- package/dist/esm/bundle.css +6 -0
- package/dist/esm/bundle.js +1545 -1545
- package/dist/esm/bundle.js.map +1 -1
- package/dist/esm/types/index.d.ts +2 -0
- package/dist/esm/types/patterns/confirm-dialog/ConfirmDialog.d.ts +3 -0
- package/dist/esm/types/patterns/confirm-dialog/ConfirmDialog.stories.d.ts +3 -0
- package/dist/esm/types/patterns/form-dialog/FormDialog.d.ts +2 -0
- package/dist/esm/types/patterns/form-dialog/FormDialog.stories.d.ts +1 -0
- package/dist/index.d.ts +69 -1
- package/dist/index.js +3 -0
- package/dist/patterns/confirm-dialog/ConfirmDialog.js +4 -3
- package/dist/patterns/form-dialog/FormDialog.js +2 -2
- package/dist/src/theme/global.css +8 -0
- package/package.json +1 -1
- package/src/components/AlertDialog/AlertDialog.tsx +2 -2
- package/src/index.ts +4 -0
- package/src/patterns/confirm-dialog/ConfirmDialog.tsx +21 -4
- package/src/patterns/form-dialog/FormDialog.tsx +15 -4
|
@@ -44,6 +44,8 @@ export * from "./components/Tree";
|
|
|
44
44
|
export * from "./components/FocusedScrollView/FocusedScrollView";
|
|
45
45
|
export * from "./components/RadioGroup/RadioGroup";
|
|
46
46
|
export * from "./components/Form";
|
|
47
|
+
export * from "./patterns/confirm-dialog/ConfirmDialog";
|
|
48
|
+
export * from "./patterns/form-dialog/FormDialog";
|
|
47
49
|
export type { ButtonProps } from "./components/Button/Button";
|
|
48
50
|
export type { InputProps } from "./components/TextInput/TextInput";
|
|
49
51
|
export type { PasswordInputProps } from "./components/PasswordInput/PasswordInput";
|
|
@@ -20,5 +20,8 @@ export type ConfirmDialogProps = {
|
|
|
20
20
|
* When true, hides the cancel button — useful for info/error alerts that only need one action.
|
|
21
21
|
*/
|
|
22
22
|
hideCancelButton?: boolean;
|
|
23
|
+
testId?: string;
|
|
24
|
+
cancelClassName?: string;
|
|
25
|
+
confirmClassName?: string;
|
|
23
26
|
};
|
|
24
27
|
export declare const ConfirmDialog: React.FC<ConfirmDialogProps>;
|
|
@@ -21,6 +21,9 @@ declare const meta: {
|
|
|
21
21
|
trigger?: React.ReactNode;
|
|
22
22
|
typeToConfirm?: string | undefined;
|
|
23
23
|
hideCancelButton?: boolean | undefined;
|
|
24
|
+
testId?: string | undefined;
|
|
25
|
+
cancelClassName?: string | undefined;
|
|
26
|
+
confirmClassName?: string | undefined;
|
|
24
27
|
}>) => import("react/jsx-runtime").JSX.Element)[];
|
|
25
28
|
argTypes: {
|
|
26
29
|
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;
|
|
@@ -35,5 +36,6 @@ export type FormDialogProps = {
|
|
|
35
36
|
* Use together with a <Form id={formId} .../> inside children.
|
|
36
37
|
*/
|
|
37
38
|
formId?: string;
|
|
39
|
+
testId?: string;
|
|
38
40
|
};
|
|
39
41
|
export declare const FormDialog: React.FC<FormDialogProps>;
|
|
@@ -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, };
|
package/dist/esm/bundle.css
CHANGED
|
@@ -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
|
}
|