@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/CHANGELOG.md +3 -4
- package/README.md +35 -35
- package/demo/accessibility.js +3 -19
- package/demo/accessibility.md +22 -107
- package/demo/accessibility.min.js +122 -113
- package/demo/api.md +63 -40
- package/demo/customize.js +0 -2
- package/demo/customize.md +32 -82
- package/demo/customize.min.js +119 -85
- package/demo/design.js +0 -2
- package/demo/design.md +51 -94
- package/demo/design.min.js +119 -85
- package/demo/getting-started.md +61 -71
- package/demo/index.md +42 -42
- package/demo/index.min.js +119 -71
- package/demo/keyboard-behavior.md +15 -15
- package/demo/readme.md +34 -35
- package/demo/readme.min.js +119 -71
- package/demo/voiceover.md +9 -9
- package/demo/why-dialog.md +6 -6
- package/dist/auro-dialog-DwEbkZ4d.js +157 -0
- package/dist/index.d.ts +140 -87
- package/dist/index.js +1 -1
- package/dist/registered.js +1 -1
- package/package.json +8 -8
- package/dist/auro-dialog-FFeXiEB1.js +0 -134
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
|
-
/**
|
|
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
|
-
/**
|
|
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
|
-
/**
|
|
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
|
|
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
|
-
/**
|
|
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
|
-
/**
|
|
91
|
+
/** Shows the dialog. Remove the `open` attribute or set the property to `false` to hide it. */
|
|
97
92
|
open?: AuroDialog["isPopoverVisible"];
|
|
98
|
-
/**
|
|
93
|
+
/** Shows the dialog. Remove the `open` attribute or set the property to `false` to hide it. */
|
|
99
94
|
isPopoverVisible?: AuroDialog["isPopoverVisible"];
|
|
100
|
-
/** Sets
|
|
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
|
-
/**
|
|
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. -
|
|
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. -
|
|
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
|
-
/**
|
|
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
|
-
/**
|
|
108
|
+
/** Fires when the dialog closes. */
|
|
112
109
|
ontoggle?: (e: Event) => void;
|
|
113
110
|
};
|
|
114
111
|
|
|
115
112
|
export type AuroDialogSolidJsProps = {
|
|
116
|
-
/**
|
|
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
|
-
/**
|
|
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
|
-
/**
|
|
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
|
|
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
|
-
/**
|
|
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
|
-
/**
|
|
123
|
+
/** Shows the dialog. Remove the `open` attribute or set the property to `false` to hide it. */
|
|
132
124
|
"bool:open"?: AuroDialog["isPopoverVisible"];
|
|
133
|
-
/**
|
|
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
|
|
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
|
-
/**
|
|
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. -
|
|
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. -
|
|
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
|
-
/**
|
|
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
|
-
/**
|
|
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
|
-
*
|
|
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`:
|
|
163
|
-
* - `
|
|
164
|
-
* - `
|
|
165
|
-
*
|
|
166
|
-
* - `
|
|
167
|
-
* - `
|
|
168
|
-
* - `
|
|
169
|
-
* - `
|
|
170
|
-
*
|
|
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`:
|
|
174
|
-
* - `triggerElement`:
|
|
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`:
|
|
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
|
|
187
|
-
* - `content`:
|
|
188
|
-
* - `footer`:
|
|
189
|
-
* - `header`: Text
|
|
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`:
|
|
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`:
|
|
205
|
-
* - `dialog`:
|
|
206
|
-
* - `dialog-content`:
|
|
207
|
-
* - `dialog-footer`:
|
|
208
|
-
* - `dialog-header`:
|
|
209
|
-
* - `dialog-overlay`:
|
|
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
|
-
*
|
|
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`:
|
|
223
|
-
* - `
|
|
224
|
-
* - `
|
|
225
|
-
*
|
|
226
|
-
* - `
|
|
227
|
-
* - `
|
|
228
|
-
* - `
|
|
229
|
-
* - `
|
|
230
|
-
*
|
|
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`:
|
|
234
|
-
* - `triggerElement`:
|
|
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`:
|
|
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
|
|
247
|
-
* - `content`:
|
|
248
|
-
* - `footer`:
|
|
249
|
-
* - `header`: Text
|
|
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`:
|
|
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`:
|
|
265
|
-
* - `dialog`:
|
|
266
|
-
* - `dialog-content`:
|
|
267
|
-
* - `dialog-footer`:
|
|
268
|
-
* - `dialog-header`:
|
|
269
|
-
* - `dialog-overlay`:
|
|
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-
|
|
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";
|
package/dist/registered.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{A as i}from"./auro-dialog-
|
|
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.
|
|
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": "^
|
|
28
|
-
"@aurodesignsystem/auro-cli": "^
|
|
29
|
-
"@aurodesignsystem/auro-config": "^1.3.
|
|
30
|
-
"@aurodesignsystem/auro-icon": "^9.2.
|
|
31
|
-
"@aurodesignsystem/auro-library": "^5.14.
|
|
32
|
-
"@aurodesignsystem/design-tokens": "^9.3
|
|
33
|
-
"@aurodesignsystem/webcorestylesheets": "^
|
|
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": [
|