docthub-core-components 2.67.0 → 2.68.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.
@@ -6,6 +6,14 @@ interface DialogProps {
6
6
  modal?: boolean;
7
7
  children?: React.ReactNode;
8
8
  }
9
+ /**
10
+ * Modal dialog built on Base UI. Supports stacked dialogs.
11
+ *
12
+ * **Stacked dialogs with overlay:** If you need an overlay on a child dialog (e.g., dimming
13
+ * the parent when the child is open), render both dialogs in parallel as siblings—do not
14
+ * nest the child dialog inside the parent's content. Use controlled state (open/onOpenChange)
15
+ * and trigger the child via a button callback. See the Stacked Dialogs story for the pattern.
16
+ */
9
17
  declare const Dialog: React.FC<DialogProps>;
10
18
  interface DialogTriggerProps extends React.ComponentPropsWithoutRef<"button"> {
11
19
  asChild?: boolean;
@@ -32,6 +40,8 @@ type DialogContentProps = React.ComponentPropsWithoutRef<"div"> & {
32
40
  size?: keyof typeof sizeClasses;
33
41
  showCloseButton?: boolean;
34
42
  closeOnEscape?: boolean;
43
+ /** When true, prevents the default auto-focus when the dialog opens. */
44
+ preventOpenAutoFocus?: boolean;
35
45
  };
36
46
  declare const DialogContent: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
37
47
  closeOnOutsideClick?: boolean;
@@ -39,6 +49,8 @@ declare const DialogContent: React.ForwardRefExoticComponent<Omit<React.Detailed
39
49
  size?: keyof typeof sizeClasses;
40
50
  showCloseButton?: boolean;
41
51
  closeOnEscape?: boolean;
52
+ /** When true, prevents the default auto-focus when the dialog opens. */
53
+ preventOpenAutoFocus?: boolean;
42
54
  } & React.RefAttributes<HTMLDivElement>>;
43
55
  declare const DialogHeader: {
44
56
  ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;