@aurodesignsystem/auro-dialog 4.2.2 → 4.2.3

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
@@ -78,71 +78,65 @@ type BaseProps<T extends HTMLElement> = {
78
78
  type BaseEvents = {};
79
79
 
80
80
  export type AuroDialogProps = {
81
- /** Defines whether the close button should be light colored for use on dark backgrounds. */
81
+ /** Sets the close button's color. Use `inverse` for a light button over dark content, such as a dark image in an unformatted dialog. Has no effect when `modal` is set. */
82
82
  "close-button-appearance"?: AuroDialog["closeButtonAppearance"];
83
- /** Defines whether the close button should be light colored for use on dark backgrounds. */
83
+ /** Sets the close button's color. Use `inverse` for a light button over dark content, such as a dark image in an unformatted dialog. Has no effect when `modal` is set. */
84
84
  closeButtonAppearance?: AuroDialog["closeButtonAppearance"];
85
- /** If true, the dialog bib is in fullscreen mode. */
86
- isbibfullscreen?: AuroDialog["isBibFullscreen"];
87
- /** If true, the dialog bib is in fullscreen mode. */
88
- isBibFullscreen?: AuroDialog["isBibFullscreen"];
89
- /** Sets dialog box to large style. Adding both lg and sm/md will set the dialog to lg for mobile and sm/md for desktop.
90
- Must be used in conjunction with sm or md to have an effect. */
85
+ /** Sets the large size, which is the default. Add `lg` with `sm` or `md` to use the large size on mobile and the smaller size on desktop. Has no effect on its own. */
91
86
  lg?: AuroDialog["lg"];
92
- /** Sets dialog box to medium style. Adding both md and lg will set the dialog to md for desktop and lg for mobile. */
87
+ /** Sets the medium size. Add `lg` with `md` to use the large size on mobile and the medium size on desktop. */
93
88
  md?: AuroDialog["md"];
94
- /** Modal dialog restricts the user to take an action (no default close actions). */
89
+ /** Requires people to take an explicit action to close the dialog. The close button is hidden, and `Esc` and clicks outside the dialog don't close it, so add a button in the `footer` slot that closes it. Use it only when people must decide or acknowledge something before continuing. */
95
90
  modal?: AuroDialog["modal"];
96
- /** Sets state of dialog to open. */
91
+ /** Shows the dialog. Remove the `open` attribute or set the property to `false` to hide it. */
97
92
  open?: AuroDialog["isPopoverVisible"];
98
- /** Sets state of dialog to open. */
93
+ /** Shows the dialog. Remove the `open` attribute or set the property to `false` to hide it. */
99
94
  isPopoverVisible?: AuroDialog["isPopoverVisible"];
100
- /** Sets dialog box to small style. Adding both sm and lg will set the dialog to sm for desktop and lg for mobile. */
95
+ /** Sets the small size, the narrowest on desktop and the shortest on mobile. Add `lg` with `sm` to use the large size on mobile and the small size on desktop. */
101
96
  sm?: AuroDialog["sm"];
102
- /** Unformatted dialog window, edge-to-edge fill for content. */
97
+ /** Removes the built-in header, content, and footer layout so the `content` slot fills the dialog edge to edge. The close button is still shown unless `modal` is set. */
103
98
  unformatted?: AuroDialog["unformatted"];
104
- /** @deprecated Use `close-button-appearance="inverse"` instead. - DEPRECATED - use `close-button-appearance="inverse" instead. */
99
+ /** @deprecated Use `close-button-appearance="inverse"` instead. - Deprecated: Use `close-button-appearance="inverse"` instead.
100
+ Sets the close button to a light color for use on dark backgrounds. */
105
101
  ondark?: AuroDialog["onDark"];
106
- /** @deprecated Use `close-button-appearance="inverse"` instead. - DEPRECATED - use `close-button-appearance="inverse" instead. */
102
+ /** @deprecated Use `close-button-appearance="inverse"` instead. - Deprecated: Use `close-button-appearance="inverse"` instead.
103
+ Sets the close button to a light color for use on dark backgrounds. */
107
104
  onDark?: AuroDialog["onDark"];
108
- /** The element to focus when the dialog is closed. If not set, defaults to the value of document.activeElement when the dialog is opened. */
105
+ /** Sets a fallback element to focus when the dialog closes. Focus returns to the element that was active when the dialog opened, and uses `triggerElement` only when no element was active. */
109
106
  triggerElement?: AuroDialog["triggerElement"];
110
107
 
111
- /** Event fires when the element is closed */
108
+ /** Fires when the dialog closes. */
112
109
  ontoggle?: (e: Event) => void;
113
110
  };
114
111
 
115
112
  export type AuroDialogSolidJsProps = {
116
- /** Defines whether the close button should be light colored for use on dark backgrounds. */
113
+ /** Sets the close button's color. Use `inverse` for a light button over dark content, such as a dark image in an unformatted dialog. Has no effect when `modal` is set. */
117
114
  "attr:close-button-appearance"?: AuroDialog["closeButtonAppearance"];
118
- /** Defines whether the close button should be light colored for use on dark backgrounds. */
115
+ /** Sets the close button's color. Use `inverse` for a light button over dark content, such as a dark image in an unformatted dialog. Has no effect when `modal` is set. */
119
116
  "prop:closeButtonAppearance"?: AuroDialog["closeButtonAppearance"];
120
- /** If true, the dialog bib is in fullscreen mode. */
121
- "bool:isbibfullscreen"?: AuroDialog["isBibFullscreen"];
122
- /** If true, the dialog bib is in fullscreen mode. */
123
- "prop:isBibFullscreen"?: AuroDialog["isBibFullscreen"];
124
- /** Sets dialog box to large style. Adding both lg and sm/md will set the dialog to lg for mobile and sm/md for desktop.
125
- Must be used in conjunction with sm or md to have an effect. */
117
+ /** Sets the large size, which is the default. Add `lg` with `sm` or `md` to use the large size on mobile and the smaller size on desktop. Has no effect on its own. */
126
118
  "prop:lg"?: AuroDialog["lg"];
127
- /** Sets dialog box to medium style. Adding both md and lg will set the dialog to md for desktop and lg for mobile. */
119
+ /** Sets the medium size. Add `lg` with `md` to use the large size on mobile and the medium size on desktop. */
128
120
  "prop:md"?: AuroDialog["md"];
129
- /** Modal dialog restricts the user to take an action (no default close actions). */
121
+ /** Requires people to take an explicit action to close the dialog. The close button is hidden, and `Esc` and clicks outside the dialog don't close it, so add a button in the `footer` slot that closes it. Use it only when people must decide or acknowledge something before continuing. */
130
122
  "prop:modal"?: AuroDialog["modal"];
131
- /** Sets state of dialog to open. */
123
+ /** Shows the dialog. Remove the `open` attribute or set the property to `false` to hide it. */
132
124
  "bool:open"?: AuroDialog["isPopoverVisible"];
133
- /** Sets state of dialog to open. */
125
+ /** Shows the dialog. Remove the `open` attribute or set the property to `false` to hide it. */
134
126
  "prop:isPopoverVisible"?: AuroDialog["isPopoverVisible"];
135
- /** Sets dialog box to small style. Adding both sm and lg will set the dialog to sm for desktop and lg for mobile. */
127
+ /** Sets the small size, the narrowest on desktop and the shortest on mobile. Add `lg` with `sm` to use the large size on mobile and the small size on desktop. */
136
128
  "prop:sm"?: AuroDialog["sm"];
137
- /** Unformatted dialog window, edge-to-edge fill for content. */
129
+ /** Removes the built-in header, content, and footer layout so the `content` slot fills the dialog edge to edge. The close button is still shown unless `modal` is set. */
138
130
  "prop:unformatted"?: AuroDialog["unformatted"];
139
- /** @deprecated Use `close-button-appearance="inverse"` instead. - DEPRECATED - use `close-button-appearance="inverse" instead. */
131
+ /** @deprecated Use `close-button-appearance="inverse"` instead. - Deprecated: Use `close-button-appearance="inverse"` instead.
132
+ Sets the close button to a light color for use on dark backgrounds. */
140
133
  "bool:ondark"?: AuroDialog["onDark"];
141
- /** @deprecated Use `close-button-appearance="inverse"` instead. - DEPRECATED - use `close-button-appearance="inverse" instead. */
134
+ /** @deprecated Use `close-button-appearance="inverse"` instead. - Deprecated: Use `close-button-appearance="inverse"` instead.
135
+ Sets the close button to a light color for use on dark backgrounds. */
142
136
  "prop:onDark"?: AuroDialog["onDark"];
143
- /** The element to focus when the dialog is closed. If not set, defaults to the value of document.activeElement when the dialog is opened. */
137
+ /** Sets a fallback element to focus when the dialog closes. Focus returns to the element that was active when the dialog opened, and uses `triggerElement` only when no element was active. */
144
138
  "prop:triggerElement"?: AuroDialog["triggerElement"];
145
- /** Event fires when the element is closed */
139
+ /** Fires when the dialog closes. */
146
140
  "on:toggle"?: (e: Event) => void;
147
141
 
148
142
  /** Set the innerHTML of the element */
@@ -153,40 +147,54 @@ Must be used in conjunction with sm or md to have an effect. */
153
147
 
154
148
  export type CustomElements = {
155
149
  /**
156
- * The `auro-dialog` appears on top of the page and presents information that requires the users immediate attention.
150
+ * Presents information that needs people's immediate attention in a window on top of the page.
151
+ *
152
+ * **Key capabilities**
153
+ * - **Blocking mode**: Set `modal` to require an explicit action before people can continue.
154
+ * - **Sizes**: Set `sm` or `md` to change the dialog's size, and add `lg` to use the large size on mobile.
155
+ * - **Edge-to-edge content**: Set `unformatted` to fill the dialog with your own content.
156
+ * - **Focus handling**: Focus is always trapped while the dialog is open and returns to where it was when the dialog closes.
157
+ *
158
+ * **Example**
159
+ * ```html
160
+ * <auro-dialog id="example">
161
+ * <span slot="header">Dialog header</span>
162
+ * <div slot="content">Dialog content</div>
163
+ * <div slot="footer"><auro-button>Close</auro-button></div>
164
+ * </auro-dialog>
165
+ * ```
157
166
  *
158
167
  * ## Attributes & Properties
159
168
  *
160
169
  * Component attributes and properties that can be applied to the element or by using JavaScript.
161
170
  *
162
- * - `close-button-appearance`/`closeButtonAppearance`: Defines whether the close button should be light colored for use on dark backgrounds.
163
- * - `isbibfullscreen`/`isBibFullscreen`: If true, the dialog bib is in fullscreen mode.
164
- * - `lg`: Sets dialog box to large style. Adding both lg and sm/md will set the dialog to lg for mobile and sm/md for desktop.
165
- * Must be used in conjunction with sm or md to have an effect.
166
- * - `md`: Sets dialog box to medium style. Adding both md and lg will set the dialog to md for desktop and lg for mobile.
167
- * - `modal`: Modal dialog restricts the user to take an action (no default close actions).
168
- * - `open`/`isPopoverVisible`: Sets state of dialog to open.
169
- * - `sm`: Sets dialog box to small style. Adding both sm and lg will set the dialog to sm for desktop and lg for mobile.
170
- * - `unformatted`: Unformatted dialog window, edge-to-edge fill for content.
171
- * - `ondark`/`onDark`: DEPRECATED - use `close-button-appearance="inverse" instead.
171
+ * - `close-button-appearance`/`closeButtonAppearance`: Sets the close button's color. Use `inverse` for a light button over dark content, such as a dark image in an unformatted dialog. Has no effect when `modal` is set.
172
+ * - `lg`: Sets the large size, which is the default. Add `lg` with `sm` or `md` to use the large size on mobile and the smaller size on desktop. Has no effect on its own.
173
+ * - `md`: Sets the medium size. Add `lg` with `md` to use the large size on mobile and the medium size on desktop.
174
+ * - `modal`: Requires people to take an explicit action to close the dialog. The close button is hidden, and `Esc` and clicks outside the dialog don't close it, so add a button in the `footer` slot that closes it. Use it only when people must decide or acknowledge something before continuing.
175
+ * - `open`/`isPopoverVisible`: Shows the dialog. Remove the `open` attribute or set the property to `false` to hide it.
176
+ * - `sm`: Sets the small size, the narrowest on desktop and the shortest on mobile. Add `lg` with `sm` to use the large size on mobile and the small size on desktop.
177
+ * - `unformatted`: Removes the built-in header, content, and footer layout so the `content` slot fills the dialog edge to edge. The close button is still shown unless `modal` is set.
178
+ * - `ondark`/`onDark`: Deprecated: Use `close-button-appearance="inverse"` instead.
179
+ * Sets the close button to a light color for use on dark backgrounds.
172
180
  * - `behavior`: undefined (property only) (readonly)
173
- * - `open`: undefined (property only)
174
- * - `triggerElement`: The element to focus when the dialog is closed. If not set, defaults to the value of document.activeElement when the dialog is opened. (property only)
181
+ * - `open`: Shows the dialog when set to `true` and hides it when set to `false`. Reads as `true` while the dialog is open. (property only)
182
+ * - `triggerElement`: Sets a fallback element to focus when the dialog closes. Focus returns to the element that was active when the dialog opened, and uses `triggerElement` only when no element was active. (property only)
175
183
  *
176
184
  * ## Events
177
185
  *
178
186
  * Events that will be emitted by the component.
179
187
  *
180
- * - `toggle`: Event fires when the element is closed
188
+ * - `toggle`: Fires when the dialog closes.
181
189
  *
182
190
  * ## Slots
183
191
  *
184
192
  * Areas where markup can be added to the component.
185
193
  *
186
- * - `ariaLabel.dialog.close`: Text to describe the "x" icon close button for screen readers. Default: "Close".
187
- * - `content`: Injects content into the body of the modal
188
- * - `footer`: Used for action options, e.g. buttons
189
- * - `header`: Text to display as the header of the modal
194
+ * - `ariaLabel.dialog.close`: Text screen readers read for the close button, for example "Close dialog". Defaults to "Close". Has no effect when `modal` is set, because a modal dialog has no close button.
195
+ * - `content`: Content for the body of the dialog.
196
+ * - `footer`: Action buttons for the dialog, such as Close. A `modal` dialog needs a button here, because it has no close button. Isn't shown when `unformatted` is set.
197
+ * - `header`: Text for the dialog's heading, which also names the dialog for screen readers. Isn't shown when `unformatted` is set.
190
198
  *
191
199
  * ## Methods
192
200
  *
@@ -194,59 +202,83 @@ export type CustomElements = {
194
202
  *
195
203
  * - `_initializeDefaults() => void`: undefined
196
204
  * - `hide() => void`: Closes the dialog.
197
- * - `register(name?: string = "auro-dialog") => void`: This will register this element with the browser.
205
+ * - `register(name?: string = "auro-dialog") => void`: Registers the element with the browser under a tag name.
198
206
  * - `show() => void`: Opens the dialog.
199
207
  *
208
+ * ## CSS Custom Properties
209
+ *
210
+ * CSS variables available for styling the component.
211
+ *
212
+ * - `--ds-auro-dialog-container-color`: Background color of the dialog window. (default: `undefined`)
213
+ * - `--ds-auro-dialog-text-color`: Color of the text in the dialog. (default: `undefined`)
214
+ * - `--ds-auro-dialog-boxshadow-color`: Shadow around the dialog window on desktop. (default: `undefined`)
215
+ * - `--ds-auro-dialog-overlay-open-background-color`: Color of the backdrop behind a non-modal dialog. (default: `undefined`)
216
+ * - `--ds-auro-dialog-overlay-modal-background-color`: Color of the backdrop behind a modal dialog. (default: `undefined`)
217
+ *
200
218
  * ## CSS Parts
201
219
  *
202
220
  * Custom selectors for styling elements within the component.
203
221
  *
204
- * - `close-button`: adjust position of the close X icon in the dialog window
205
- * - `dialog`: apply CSS to the entire dialog
206
- * - `dialog-content`: apply CSS to the content of the dialog
207
- * - `dialog-footer`: apply CSS to the footer of the dialog
208
- * - `dialog-header`: apply CSS to the header of the dialog
209
- * - `dialog-overlay`: DEPRECATED. Use `--ds-auro-dialog-overlay-modal-background-color` or `--ds-auro-dialog-overlay-open-background-color` for backdrop styling instead.
222
+ * - `close-button`: The close button in the dialog header. Isn't rendered when `modal` is set.
223
+ * - `dialog`: The dialog window.
224
+ * - `dialog-content`: The body region that holds the `content` slot. Isn't rendered when `unformatted` is set.
225
+ * - `dialog-footer`: The footer region that holds the `footer` slot. Isn't rendered when `unformatted` is set.
226
+ * - `dialog-header`: The header region, which holds the `header` slot and the close button. Isn't rendered when `unformatted` is set.
227
+ * - `dialog-overlay`: Deprecated: Use `--ds-auro-dialog-overlay-modal-background-color` or `--ds-auro-dialog-overlay-open-background-color` instead.
210
228
  */
211
229
  "auro-dialog": Partial<AuroDialogProps & BaseProps<AuroDialog> & BaseEvents>;
212
230
  };
213
231
 
214
232
  export type CustomElementsSolidJs = {
215
233
  /**
216
- * The `auro-dialog` appears on top of the page and presents information that requires the users immediate attention.
234
+ * Presents information that needs people's immediate attention in a window on top of the page.
235
+ *
236
+ * **Key capabilities**
237
+ * - **Blocking mode**: Set `modal` to require an explicit action before people can continue.
238
+ * - **Sizes**: Set `sm` or `md` to change the dialog's size, and add `lg` to use the large size on mobile.
239
+ * - **Edge-to-edge content**: Set `unformatted` to fill the dialog with your own content.
240
+ * - **Focus handling**: Focus is always trapped while the dialog is open and returns to where it was when the dialog closes.
241
+ *
242
+ * **Example**
243
+ * ```html
244
+ * <auro-dialog id="example">
245
+ * <span slot="header">Dialog header</span>
246
+ * <div slot="content">Dialog content</div>
247
+ * <div slot="footer"><auro-button>Close</auro-button></div>
248
+ * </auro-dialog>
249
+ * ```
217
250
  *
218
251
  * ## Attributes & Properties
219
252
  *
220
253
  * Component attributes and properties that can be applied to the element or by using JavaScript.
221
254
  *
222
- * - `close-button-appearance`/`closeButtonAppearance`: Defines whether the close button should be light colored for use on dark backgrounds.
223
- * - `isbibfullscreen`/`isBibFullscreen`: If true, the dialog bib is in fullscreen mode.
224
- * - `lg`: Sets dialog box to large style. Adding both lg and sm/md will set the dialog to lg for mobile and sm/md for desktop.
225
- * Must be used in conjunction with sm or md to have an effect.
226
- * - `md`: Sets dialog box to medium style. Adding both md and lg will set the dialog to md for desktop and lg for mobile.
227
- * - `modal`: Modal dialog restricts the user to take an action (no default close actions).
228
- * - `open`/`isPopoverVisible`: Sets state of dialog to open.
229
- * - `sm`: Sets dialog box to small style. Adding both sm and lg will set the dialog to sm for desktop and lg for mobile.
230
- * - `unformatted`: Unformatted dialog window, edge-to-edge fill for content.
231
- * - `ondark`/`onDark`: DEPRECATED - use `close-button-appearance="inverse" instead.
255
+ * - `close-button-appearance`/`closeButtonAppearance`: Sets the close button's color. Use `inverse` for a light button over dark content, such as a dark image in an unformatted dialog. Has no effect when `modal` is set.
256
+ * - `lg`: Sets the large size, which is the default. Add `lg` with `sm` or `md` to use the large size on mobile and the smaller size on desktop. Has no effect on its own.
257
+ * - `md`: Sets the medium size. Add `lg` with `md` to use the large size on mobile and the medium size on desktop.
258
+ * - `modal`: Requires people to take an explicit action to close the dialog. The close button is hidden, and `Esc` and clicks outside the dialog don't close it, so add a button in the `footer` slot that closes it. Use it only when people must decide or acknowledge something before continuing.
259
+ * - `open`/`isPopoverVisible`: Shows the dialog. Remove the `open` attribute or set the property to `false` to hide it.
260
+ * - `sm`: Sets the small size, the narrowest on desktop and the shortest on mobile. Add `lg` with `sm` to use the large size on mobile and the small size on desktop.
261
+ * - `unformatted`: Removes the built-in header, content, and footer layout so the `content` slot fills the dialog edge to edge. The close button is still shown unless `modal` is set.
262
+ * - `ondark`/`onDark`: Deprecated: Use `close-button-appearance="inverse"` instead.
263
+ * Sets the close button to a light color for use on dark backgrounds.
232
264
  * - `behavior`: undefined (property only) (readonly)
233
- * - `open`: undefined (property only)
234
- * - `triggerElement`: The element to focus when the dialog is closed. If not set, defaults to the value of document.activeElement when the dialog is opened. (property only)
265
+ * - `open`: Shows the dialog when set to `true` and hides it when set to `false`. Reads as `true` while the dialog is open. (property only)
266
+ * - `triggerElement`: Sets a fallback element to focus when the dialog closes. Focus returns to the element that was active when the dialog opened, and uses `triggerElement` only when no element was active. (property only)
235
267
  *
236
268
  * ## Events
237
269
  *
238
270
  * Events that will be emitted by the component.
239
271
  *
240
- * - `toggle`: Event fires when the element is closed
272
+ * - `toggle`: Fires when the dialog closes.
241
273
  *
242
274
  * ## Slots
243
275
  *
244
276
  * Areas where markup can be added to the component.
245
277
  *
246
- * - `ariaLabel.dialog.close`: Text to describe the "x" icon close button for screen readers. Default: "Close".
247
- * - `content`: Injects content into the body of the modal
248
- * - `footer`: Used for action options, e.g. buttons
249
- * - `header`: Text to display as the header of the modal
278
+ * - `ariaLabel.dialog.close`: Text screen readers read for the close button, for example "Close dialog". Defaults to "Close". Has no effect when `modal` is set, because a modal dialog has no close button.
279
+ * - `content`: Content for the body of the dialog.
280
+ * - `footer`: Action buttons for the dialog, such as Close. A `modal` dialog needs a button here, because it has no close button. Isn't shown when `unformatted` is set.
281
+ * - `header`: Text for the dialog's heading, which also names the dialog for screen readers. Isn't shown when `unformatted` is set.
250
282
  *
251
283
  * ## Methods
252
284
  *
@@ -254,19 +286,29 @@ export type CustomElementsSolidJs = {
254
286
  *
255
287
  * - `_initializeDefaults() => void`: undefined
256
288
  * - `hide() => void`: Closes the dialog.
257
- * - `register(name?: string = "auro-dialog") => void`: This will register this element with the browser.
289
+ * - `register(name?: string = "auro-dialog") => void`: Registers the element with the browser under a tag name.
258
290
  * - `show() => void`: Opens the dialog.
259
291
  *
292
+ * ## CSS Custom Properties
293
+ *
294
+ * CSS variables available for styling the component.
295
+ *
296
+ * - `--ds-auro-dialog-container-color`: Background color of the dialog window. (default: `undefined`)
297
+ * - `--ds-auro-dialog-text-color`: Color of the text in the dialog. (default: `undefined`)
298
+ * - `--ds-auro-dialog-boxshadow-color`: Shadow around the dialog window on desktop. (default: `undefined`)
299
+ * - `--ds-auro-dialog-overlay-open-background-color`: Color of the backdrop behind a non-modal dialog. (default: `undefined`)
300
+ * - `--ds-auro-dialog-overlay-modal-background-color`: Color of the backdrop behind a modal dialog. (default: `undefined`)
301
+ *
260
302
  * ## CSS Parts
261
303
  *
262
304
  * Custom selectors for styling elements within the component.
263
305
  *
264
- * - `close-button`: adjust position of the close X icon in the dialog window
265
- * - `dialog`: apply CSS to the entire dialog
266
- * - `dialog-content`: apply CSS to the content of the dialog
267
- * - `dialog-footer`: apply CSS to the footer of the dialog
268
- * - `dialog-header`: apply CSS to the header of the dialog
269
- * - `dialog-overlay`: DEPRECATED. Use `--ds-auro-dialog-overlay-modal-background-color` or `--ds-auro-dialog-overlay-open-background-color` for backdrop styling instead.
306
+ * - `close-button`: The close button in the dialog header. Isn't rendered when `modal` is set.
307
+ * - `dialog`: The dialog window.
308
+ * - `dialog-content`: The body region that holds the `content` slot. Isn't rendered when `unformatted` is set.
309
+ * - `dialog-footer`: The footer region that holds the `footer` slot. Isn't rendered when `unformatted` is set.
310
+ * - `dialog-header`: The header region, which holds the `header` slot and the close button. Isn't rendered when `unformatted` is set.
311
+ * - `dialog-overlay`: Deprecated: Use `--ds-auro-dialog-overlay-modal-background-color` or `--ds-auro-dialog-overlay-open-background-color` instead.
270
312
  */
271
313
  "auro-dialog": Partial<
272
314
  AuroDialogProps &
@@ -276,7 +318,18 @@ export type CustomElementsSolidJs = {
276
318
  >;
277
319
  };
278
320
 
279
- export type CustomCssProperties = {};
321
+ export type CustomCssProperties = {
322
+ /** Background color of the dialog window. */
323
+ "--ds-auro-dialog-container-color"?: string;
324
+ /** Color of the text in the dialog. */
325
+ "--ds-auro-dialog-text-color"?: string;
326
+ /** Shadow around the dialog window on desktop. */
327
+ "--ds-auro-dialog-boxshadow-color"?: string;
328
+ /** Color of the backdrop behind a non-modal dialog. */
329
+ "--ds-auro-dialog-overlay-open-background-color"?: string;
330
+ /** Color of the backdrop behind a modal dialog. */
331
+ "--ds-auro-dialog-overlay-modal-background-color"?: string;
332
+ };
280
333
 
281
334
  declare module "react" {
282
335
  namespace JSX {
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- export{A as AuroDialog}from"./auro-dialog-FFeXiEB1.js";import"lit";import"lit/directives/class-map.js";import"lit/directives/if-defined.js";import"lit/static-html.js";
1
+ export{A as AuroDialog}from"./auro-dialog-DwEbkZ4d.js";import"lit";import"lit/directives/class-map.js";import"lit/directives/if-defined.js";import"lit/static-html.js";
@@ -1 +1 @@
1
- import{A as i}from"./auro-dialog-FFeXiEB1.js";import"lit";import"lit/directives/class-map.js";import"lit/directives/if-defined.js";import"lit/static-html.js";i.register();
1
+ import{A as i}from"./auro-dialog-DwEbkZ4d.js";import"lit";import"lit/directives/class-map.js";import"lit/directives/if-defined.js";import"lit/static-html.js";i.register();
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "================================================================================"
8
8
  ],
9
9
  "name": "@aurodesignsystem/auro-dialog",
10
- "version": "4.2.2",
10
+ "version": "4.2.3",
11
11
  "description": "auro-dialog HTML custom element",
12
12
  "repository": {
13
13
  "type": "git",
@@ -24,13 +24,13 @@
24
24
  "lit": "^3.3.3"
25
25
  },
26
26
  "devDependencies": {
27
- "@aurodesignsystem/auro-button": "^12.3.2",
28
- "@aurodesignsystem/auro-cli": "^3.7.1",
29
- "@aurodesignsystem/auro-config": "^1.3.1",
30
- "@aurodesignsystem/auro-icon": "^9.2.0",
31
- "@aurodesignsystem/auro-library": "^5.14.3",
32
- "@aurodesignsystem/design-tokens": "^9.3.2",
33
- "@aurodesignsystem/webcorestylesheets": "^11.1.3",
27
+ "@aurodesignsystem/auro-button": "^13.0.3",
28
+ "@aurodesignsystem/auro-cli": "^5.7.0",
29
+ "@aurodesignsystem/auro-config": "^1.3.2",
30
+ "@aurodesignsystem/auro-icon": "^9.2.1",
31
+ "@aurodesignsystem/auro-library": "^5.14.4",
32
+ "@aurodesignsystem/design-tokens": "^9.4.3",
33
+ "@aurodesignsystem/webcorestylesheets": "^12.0.1",
34
34
  "husky": "^9.1.7"
35
35
  },
36
36
  "browserslist": [