@mxenabled/mxui 2.9.0 → 2.9.2
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/components/dialog/Header.d.ts +9 -0
- package/dist/index.es.js +248 -233
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
|
@@ -5,6 +5,15 @@ export type CopyObject = {
|
|
|
5
5
|
};
|
|
6
6
|
type DialogHeaderProps = {
|
|
7
7
|
copy: CopyObject;
|
|
8
|
+
/**
|
|
9
|
+
* Sets `aria-hidden` on the (still visible) heading. Only takes effect when
|
|
10
|
+
* `id` is also set, so the heading's text remains reachable as the dialog's
|
|
11
|
+
* accessible name via `aria-labelledby`: the dialog is announced once on open
|
|
12
|
+
* and the heading is no longer re-read as content.
|
|
13
|
+
*/
|
|
14
|
+
ariaHidden?: boolean;
|
|
15
|
+
/** Forwarded to the heading so a dialog can set aria-labelledby to it. */
|
|
16
|
+
id?: string;
|
|
8
17
|
onClose: () => void;
|
|
9
18
|
truncate?: boolean;
|
|
10
19
|
};
|