@overmap-ai/blocks 1.0.2 → 1.0.5-add-draggability.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.
- package/dist/Dialogs/Dialog/typings.d.ts +9 -1
- package/dist/blocks.js +689 -686
- package/dist/blocks.umd.cjs +4 -4
- package/package.json +5 -4
|
@@ -5,6 +5,12 @@ export interface CloseDialogOptions {
|
|
|
5
5
|
/** Bypass the `onCloseInterrupt` and force the dialog to close */
|
|
6
6
|
force?: boolean;
|
|
7
7
|
}
|
|
8
|
+
export interface DialogDragHandlePositions {
|
|
9
|
+
/** all === true means the entire dialog can be used as a handle */
|
|
10
|
+
all?: boolean;
|
|
11
|
+
title?: boolean;
|
|
12
|
+
description?: boolean;
|
|
13
|
+
}
|
|
8
14
|
export type CloseDialogWithOptions = (options?: CloseDialogOptions) => void;
|
|
9
15
|
type RadixDialogContentProps = React.ComponentProps<typeof DialogContent>;
|
|
10
16
|
export interface DialogProps extends Omit<RadixDialogContentProps, "content" | "children"> {
|
|
@@ -16,6 +22,8 @@ export interface DialogProps extends Omit<RadixDialogContentProps, "content" | "
|
|
|
16
22
|
title: string;
|
|
17
23
|
/** The description of the Dialog should explain what is happening and possible ramifications. */
|
|
18
24
|
description?: string;
|
|
25
|
+
/** Where to put the dialog drag handle*/
|
|
26
|
+
dragHandle?: DialogDragHandlePositions;
|
|
19
27
|
/** The button triggering the dialog to open. */
|
|
20
28
|
children?: ReactNode;
|
|
21
29
|
/** Should the dialog be opened by default when the page is first rendered.
|
|
@@ -39,7 +47,7 @@ export interface DialogProps extends Omit<RadixDialogContentProps, "content" | "
|
|
|
39
47
|
*/
|
|
40
48
|
onOpenChange?: (open: boolean) => void;
|
|
41
49
|
}
|
|
42
|
-
export interface DialogContentProps extends Pick<DialogProps, "title" | "description" | "content"> {
|
|
50
|
+
export interface DialogContentProps extends Pick<DialogProps, "title" | "description" | "content" | "dragHandle"> {
|
|
43
51
|
closeDialog: CloseDialogWithOptions;
|
|
44
52
|
}
|
|
45
53
|
export {};
|