@stenajs-webui/modal 21.23.1 → 21.24.1

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.
@@ -21,6 +21,18 @@ export interface DialogOptions {
21
21
  ref?: RefObject<HTMLDialogElement>;
22
22
  onResolve?: () => void;
23
23
  onReject?: () => void;
24
+ /**
25
+ * Sets aria-label on modal or dialog element.
26
+ */
27
+ label?: string;
28
+ /**
29
+ * Sets aria-labelledby on modal or dialog element.
30
+ */
31
+ labelledby?: string;
32
+ /**
33
+ * Sets aria-describedby on modal or dialog element.
34
+ */
35
+ describedby?: string;
24
36
  }
25
- export declare function useDialog<TProps, TPromiseResolve = void>(component: React.FC<TProps>, { ref, modal, contentWrapperClassName, closingClassName, contentWrapperStyle, dialogStyle, divInsteadOfDialog, disableCloseOnClickOutside, onResolve, onReject, className, background, }: DialogOptions): UseDialogResult<TProps, TPromiseResolve>;
37
+ export declare function useDialog<TProps, TPromiseResolve = void>(component: React.FC<TProps>, { ref, modal, contentWrapperClassName, closingClassName, contentWrapperStyle, dialogStyle, divInsteadOfDialog, disableCloseOnClickOutside, onResolve, onReject, className, background, label, labelledby, describedby, }: DialogOptions): UseDialogResult<TProps, TPromiseResolve>;
26
38
  export {};