@aurodesignsystem-dev/auro-drawer 0.0.0-pr131.2 → 0.0.0-pr131.21

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/index.d.ts CHANGED
@@ -151,14 +151,29 @@ When expanded, the drawer will automatically display in fullscreen mode if the s
151
151
  * Methods that can be called to access component functionality.
152
152
  *
153
153
  * - `_initializeDefaults() => void`: undefined
154
+ * - `hide(eventType = undefined) => void`: Closes the native dialog.
154
155
  * - `register(name?: string = "auro-drawer") => void`: This will register this element with the browser.
156
+ * - `show() => void`: Opens the native dialog inside the bib.
157
+ *
158
+ * - `modal && !nested`: `showModal()` for native focus containment and top-layer rendering.
159
+ * - `nested` or `!modal`: `showPopover()` to keep positional CSS intact
160
+ * and allow free keyboard flow to background content (WCAG 2.1.2).
161
+ *
162
+ * ## CSS Custom Properties
163
+ *
164
+ * CSS variables available for styling the component.
165
+ *
166
+ * - `--auro-drawer-backdrop-background`: Background of the `::backdrop` pseudo-element. In modal/backdrop mode the component sets this to the design-system scrim token; consumers can override it. (default: `transparent`)
167
+ * - `--auro-drawer-backdrop-filter`: `backdrop-filter` applied to the `::backdrop` pseudo-element (e.g. `blur(4px)`). (default: `none`)
168
+ * - `--auro-drawer-backdrop-opacity`: Opacity of the `::backdrop` pseudo-element. (default: `1`)
169
+ * - `--auro-drawer-backdrop-transition`: Transition applied to the `::backdrop` pseudo-element (e.g. `opacity 0.3s ease`). (default: `opacity 0.3s ease`)
155
170
  *
156
171
  * ## CSS Parts
157
172
  *
158
173
  * Custom selectors for styling elements within the component.
159
174
  *
160
175
  * - `close-button`: to style the close button.
161
- * - `drawer-backdrop`: to style the backdrop behind the the content wrapper.
176
+ * - `drawer-backdrop`: DEPRECATED - To migrate to the token approach, set `display: none` on this part and use the `--auro-drawer-backdrop-*` CSS custom properties instead.
162
177
  * - `drawer-content`: to style the container of the drawer content.
163
178
  * - `drawer-footer`: to style the footer.
164
179
  * - `drawer-header`: to style the header.
@@ -168,7 +183,14 @@ When expanded, the drawer will automatically display in fullscreen mode if the s
168
183
  }
169
184
 
170
185
  export type CustomCssProperties = {
171
-
186
+ /** Background of the `::backdrop` pseudo-element. In modal/backdrop mode the component sets this to the design-system scrim token; consumers can override it. */
187
+ "--auro-drawer-backdrop-background"?: string;
188
+ /** `backdrop-filter` applied to the `::backdrop` pseudo-element (e.g. `blur(4px)`). */
189
+ "--auro-drawer-backdrop-filter"?: string;
190
+ /** Opacity of the `::backdrop` pseudo-element. */
191
+ "--auro-drawer-backdrop-opacity"?: string;
192
+ /** Transition applied to the `::backdrop` pseudo-element (e.g. `opacity 0.3s ease`). */
193
+ "--auro-drawer-backdrop-transition"?: string;
172
194
  }
173
195
 
174
196
 
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- export{A as AuroDrawer}from"./auro-drawer-Cu_nT0cn.js";import"lit";import"lit/static-html.js";import"lit/directives/class-map.js";import"lit/directives/if-defined.js";
1
+ export{A as AuroDrawer}from"./auro-drawer-aC6v4jkI.js";import"lit/static-html.js";import"lit";import"lit/directives/class-map.js";import"lit/directives/if-defined.js";
@@ -1 +1 @@
1
- import{A as i}from"./auro-drawer-Cu_nT0cn.js";import"lit";import"lit/static-html.js";import"lit/directives/class-map.js";import"lit/directives/if-defined.js";i.register();
1
+ import{A as i}from"./auro-drawer-aC6v4jkI.js";import"lit/static-html.js";import"lit";import"lit/directives/class-map.js";import"lit/directives/if-defined.js";i.register();
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "================================================================================"
8
8
  ],
9
9
  "name": "@aurodesignsystem-dev/auro-drawer",
10
- "version": "0.0.0-pr131.2",
10
+ "version": "0.0.0-pr131.21",
11
11
  "description": "auro-drawer HTML custom element",
12
12
  "repository": {
13
13
  "type": "git",
@@ -24,13 +24,13 @@
24
24
  "lit": "^3.3.2"
25
25
  },
26
26
  "devDependencies": {
27
- "@aurodesignsystem/auro-button": "^12.3.0",
28
- "@aurodesignsystem/auro-cli": "^3.5.0",
27
+ "@aurodesignsystem/auro-button": "^12.3.2",
28
+ "@aurodesignsystem/auro-cli": "^3.7.1",
29
29
  "@aurodesignsystem/auro-config": "^1.3.1",
30
- "@aurodesignsystem/auro-icon": "^9.1.1",
31
- "@aurodesignsystem/auro-library": "^5.5.4",
32
- "@aurodesignsystem/design-tokens": "^8.7.0",
33
- "@aurodesignsystem/webcorestylesheets": "^10.1.4",
30
+ "@aurodesignsystem/auro-icon": "^9.2.0",
31
+ "@aurodesignsystem/auro-library": "^5.13.1",
32
+ "@aurodesignsystem/design-tokens": "^9.0.0",
33
+ "@aurodesignsystem/webcorestylesheets": "^11.1.3",
34
34
  "@web/test-runner-commands": "^0.9.0",
35
35
  "baseline-browser-mapping": "^2.10.0",
36
36
  "husky": "^9.1.7"