@aurodesignsystem-dev/auro-drawer 0.0.0-pr131.5 → 0.0.0-pr131.7
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/demo/api.md +5 -3
- package/demo/auro-drawer.min.js +268 -209
- package/dist/{auro-drawer-DTS2mk2U.js → auro-drawer-CozmUPFj.js} +35 -35
- package/dist/index.d.ts +7 -0
- package/dist/index.js +1 -1
- package/dist/registered.js +1 -1
- package/package.json +1 -1
package/demo/api.md
CHANGED
|
@@ -20,9 +20,11 @@ The `auro-drawer` element provides users a way to implement an expandable drawer
|
|
|
20
20
|
|
|
21
21
|
### Methods
|
|
22
22
|
|
|
23
|
-
| Name | Parameters | Return | Description
|
|
24
|
-
| -------- | -------------------------------------------------------------------- | ------ |
|
|
25
|
-
|
|
|
23
|
+
| Name | Parameters | Return | Description |
|
|
24
|
+
| -------- | -------------------------------------------------------------------- | ------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
25
|
+
| hide | `eventType` (any) | | Closes the native dialog and releases all scroll locks. |
|
|
26
|
+
| register | `name` (string) - The name of the element that you want to register. | | This will register this element with the browser. |
|
|
27
|
+
| show | None | | Opens the native dialog inside the bib.<br><br>- `modal && !nested`: `showModal()` for native focus containment and top-layer<br> rendering. Page scroll and touch scroll are locked on mobile for the duration.<br>- `nested` or `!modal`: `setAttribute('open','')` to keep positional CSS intact<br> and allow free keyboard flow to background content (WCAG 2.1.2). |
|
|
26
28
|
|
|
27
29
|
### Events
|
|
28
30
|
|