@aurodesignsystem/auro-dialog 4.2.0 → 4.2.1

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.
Files changed (41) hide show
  1. package/CHANGELOG.md +3 -19
  2. package/README.md +8 -9
  3. package/demo/accessibility.html +42 -0
  4. package/demo/accessibility.js +21 -0
  5. package/demo/accessibility.md +129 -0
  6. package/demo/accessibility.min.js +3969 -0
  7. package/demo/api.html +16 -40
  8. package/demo/api.md +0 -750
  9. package/demo/customize.html +45 -0
  10. package/demo/{api.js → customize.js} +2 -14
  11. package/demo/customize.md +226 -0
  12. package/demo/customize.min.js +3974 -0
  13. package/demo/demo-nav.css +32 -0
  14. package/demo/design.html +42 -0
  15. package/demo/design.js +23 -0
  16. package/demo/design.md +306 -0
  17. package/demo/design.min.js +4041 -0
  18. package/demo/getting-started.html +38 -0
  19. package/demo/getting-started.md +295 -0
  20. package/demo/index.html +17 -36
  21. package/demo/index.js +2 -3
  22. package/demo/index.md +220 -144
  23. package/demo/index.min.js +3984 -7
  24. package/demo/keyboard-behavior.html +38 -0
  25. package/demo/keyboard-behavior.md +51 -0
  26. package/demo/pages.json +1 -0
  27. package/demo/readme.html +42 -0
  28. package/demo/readme.js +24 -0
  29. package/demo/readme.md +176 -0
  30. package/demo/{auro-dialog.min.js → readme.min.js} +434 -281
  31. package/demo/support/demo-support.js +140 -0
  32. package/demo/voiceover.html +38 -0
  33. package/demo/voiceover.md +19 -0
  34. package/demo/why-dialog.html +38 -0
  35. package/demo/why-dialog.md +36 -0
  36. package/dist/{auro-dialog-CWkXz5VA.js → auro-dialog-T9I85UZL.js} +20 -20
  37. package/dist/index.d.ts +198 -98
  38. package/dist/index.js +1 -1
  39. package/dist/registered.js +1 -1
  40. package/package.json +6 -6
  41. package/demo/api.min.js +0 -219
package/demo/api.md CHANGED
@@ -53,754 +53,4 @@ The `auro-dialog` appears on top of the page and presents information that requi
53
53
  | dialog-footer | apply CSS to the footer of the dialog |
54
54
  | dialog-header | apply CSS to the header of the dialog |
55
55
  | dialog-overlay | DEPRECATED. Use `--ds-auro-dialog-overlay-modal-background-color` or `--ds-auro-dialog-overlay-open-background-color` for backdrop styling instead. |
56
- <!-- AURO-GENERATED-CONTENT:END -->
57
-
58
- ## Basic
59
-
60
- <div class="exampleWrapper">
61
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/basic.html) -->
62
- <!-- The below content is automatically added from ./../apiExamples/basic.html -->
63
- <div>
64
- <auro-button id="openBasic">Open default dialog</auro-button>
65
- </div>
66
- <auro-dialog id="defaultDialog">
67
- <span slot="header">Default Dialog</span>
68
- <div slot="content">
69
- <p>When traveling on Alaska Airlines flights, Alaska Airlines checked baggage fees may apply. See <auro-hyperlink href="https://www.alaskaair.com/bagrules" target="_blank">alaskaair.com/bagrules</auro-hyperlink> for our rules. For itineraries that include other airlines, their checked baggage fees may apply, as displayed on their websites.</p>
70
- <p>Baggage rules and fees will be based on the specific itinerary chosen. The applicable first and second bag fees will be displayed after you have added flights to the cart.</p>
71
- <auro-header level="3" display="500">Before checking your bags, remember to:</auro-header>
72
- <ul>
73
- <li>Caerphilly croque monsieur fondue</li>
74
- <li>Taleggio goat mascarpone cow manchego cheese and wine emmental cheese strings</li>
75
- <li>Cheddar cheese and biscuits chalk and cheese</li>
76
- <li>Camembert de normandie stinking bishop bavarian bergkase</li>
77
- </ul>
78
- </div>
79
- <div slot="footer">
80
- <auro-button secondary id="closeBasic">Close</auro-button>
81
- </div>
82
- </auro-dialog>
83
- <!-- AURO-GENERATED-CONTENT:END -->
84
- </div>
85
- <auro-accordion alignRight>
86
- <span slot="trigger">See code</span>
87
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/basic.html) -->
88
- <!-- The below code snippet is automatically added from ./../apiExamples/basic.html -->
89
-
90
- ```html
91
- <div>
92
- <auro-button id="openBasic">Open default dialog</auro-button>
93
- </div>
94
- <auro-dialog id="defaultDialog">
95
- <span slot="header">Default Dialog</span>
96
- <div slot="content">
97
- <p>When traveling on Alaska Airlines flights, Alaska Airlines checked baggage fees may apply. See <auro-hyperlink href="https://www.alaskaair.com/bagrules" target="_blank">alaskaair.com/bagrules</auro-hyperlink> for our rules. For itineraries that include other airlines, their checked baggage fees may apply, as displayed on their websites.</p>
98
- <p>Baggage rules and fees will be based on the specific itinerary chosen. The applicable first and second bag fees will be displayed after you have added flights to the cart.</p>
99
- <auro-header level="3" display="500">Before checking your bags, remember to:</auro-header>
100
- <ul>
101
- <li>Caerphilly croque monsieur fondue</li>
102
- <li>Taleggio goat mascarpone cow manchego cheese and wine emmental cheese strings</li>
103
- <li>Cheddar cheese and biscuits chalk and cheese</li>
104
- <li>Camembert de normandie stinking bishop bavarian bergkase</li>
105
- </ul>
106
- </div>
107
- <div slot="footer">
108
- <auro-button secondary id="closeBasic">Close</auro-button>
109
- </div>
110
- </auro-dialog>
111
- ```
112
- <!-- AURO-GENERATED-CONTENT:END -->
113
- </auro-accordion>
114
-
115
- ## Property & Attribute Examples
116
-
117
- ### Size Options
118
-
119
- The auro-dialog supports three different sizes via attribute, `sm`, `md`, and `lg`. The default size is `lg`.
120
-
121
- #### Size Effects
122
-
123
- ##### Desktop
124
- At desktop resolutions, size affects the width of the dialog, and its height is dictated by its contents with a max height of 80%.
125
-
126
- ##### Mobile
127
- At mobile resolutions the size affects the maximum height the dialog will use of the browser viewport with a fixed width of 100%.
128
-
129
- > *Note: `lg` may be added in addition to `sm` or `md` to force the `lg` size on mobile while using the other size for desktop.*
130
-
131
- #### Single Size Examples:
132
-
133
- <div class="exampleWrapper">
134
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/size-options.html) -->
135
- <!-- The below content is automatically added from ./../apiExamples/size-options.html -->
136
- <div>
137
- <auro-button id="openDefaultSize">Open default dialog</auro-button>
138
- <auro-button id="openMediumSize">Open medium dialog</auro-button>
139
- <auro-button id="openSmallSize">Open small dialog</auro-button>
140
- </div>
141
- <auro-dialog id="defaultSizeDialog">
142
- <span slot="header">Default Dialog</span>
143
- <div slot="content">
144
- <p>When traveling on Alaska Airlines flights, Alaska Airlines checked baggage fees may apply. See <auro-hyperlink href="https://www.alaskaair.com/bagrules" target="_blank">alaskaair.com/bagrules</auro-hyperlink> for our rules. For itineraries that include other airlines, their checked baggage fees may apply, as displayed on their websites.</p>
145
- <p>Baggage rules and fees will be based on the specific itinerary chosen. The applicable first and second bag fees will be displayed after you have added flights to the cart.</p>
146
- <auro-header level="3" display="500">Before checking your bags, remember to:</auro-header>
147
- <ul>
148
- <li>Caerphilly croque monsieur fondue</li>
149
- <li>Taleggio goat mascarpone cow manchego cheese and wine emmental cheese strings</li>
150
- <li>Cheddar cheese and biscuits chalk and cheese</li>
151
- <li>Camembert de normandie stinking bishop bavarian bergkase</li>
152
- </ul>
153
- </div>
154
- <div slot="footer">
155
- <auro-button secondary id="closeDefaultSize">Close</auro-button>
156
- </div>
157
- </auro-dialog>
158
- <auro-dialog id="mediumSizeDialog" md>
159
- <span slot="header">Medium Dialog</span>
160
- <div slot="content">
161
- <p>When traveling on Alaska Airlines flights, Alaska Airlines checked baggage fees may apply. See <auro-hyperlink href="https://www.alaskaair.com/bagrules" target="_blank">alaskaair.com/bagrules</auro-hyperlink> for our rules. For itineraries that include other airlines, their checked baggage fees may apply, as displayed on their websites.</p>
162
- <p>Baggage rules and fees will be based on the specific itinerary chosen. The applicable first and second bag fees will be displayed after you have added flights to the cart.</p>
163
- <auro-header level="3" display="500">Before checking your bags, remember to:</auro-header>
164
- <ul>
165
- <li>Caerphilly croque monsieur fondue</li>
166
- <li>Taleggio goat mascarpone cow manchego cheese and wine emmental cheese strings</li>
167
- <li>Cheddar cheese and biscuits chalk and cheese</li>
168
- <li>Camembert de normandie stinking bishop bavarian bergkase</li>
169
- </ul>
170
- </div>
171
- <div slot="footer">
172
- <auro-button secondary id="closeMediumSize">Close</auro-button>
173
- </div>
174
- </auro-dialog>
175
- <auro-dialog id="smallSizeDialog" sm>
176
- <span slot="header">Small Dialog</span>
177
- <div slot="content">
178
- <p>When traveling on Alaska Airlines flights, Alaska Airlines checked baggage fees may apply. See <auro-hyperlink href="https://www.alaskaair.com/bagrules" target="_blank">alaskaair.com/bagrules</auro-hyperlink> for our rules. For itineraries that include other airlines, their checked baggage fees may apply, as displayed on their websites.</p>
179
- <p>Baggage rules and fees will be based on the specific itinerary chosen. The applicable first and second bag fees will be displayed after you have added flights to the cart.</p>
180
- <auro-header level="3" display="500">Before checking your bags, remember to:</auro-header>
181
- <ul>
182
- <li>Caerphilly croque monsieur fondue</li>
183
- <li>Taleggio goat mascarpone cow manchego cheese and wine emmental cheese strings</li>
184
- <li>Cheddar cheese and biscuits chalk and cheese</li>
185
- <li>Camembert de normandie stinking bishop bavarian bergkase</li>
186
- </ul>
187
- </div>
188
- <div slot="footer">
189
- <auro-button secondary id="closeSmallSize">Close</auro-button>
190
- </div>
191
- </auro-dialog>
192
- <!-- AURO-GENERATED-CONTENT:END -->
193
- </div>
194
- <auro-accordion alignRight>
195
- <span slot="trigger">See code</span>
196
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/size-options.html) -->
197
- <!-- The below code snippet is automatically added from ./../apiExamples/size-options.html -->
198
-
199
- ```html
200
- <div>
201
- <auro-button id="openDefaultSize">Open default dialog</auro-button>
202
- <auro-button id="openMediumSize">Open medium dialog</auro-button>
203
- <auro-button id="openSmallSize">Open small dialog</auro-button>
204
- </div>
205
- <auro-dialog id="defaultSizeDialog">
206
- <span slot="header">Default Dialog</span>
207
- <div slot="content">
208
- <p>When traveling on Alaska Airlines flights, Alaska Airlines checked baggage fees may apply. See <auro-hyperlink href="https://www.alaskaair.com/bagrules" target="_blank">alaskaair.com/bagrules</auro-hyperlink> for our rules. For itineraries that include other airlines, their checked baggage fees may apply, as displayed on their websites.</p>
209
- <p>Baggage rules and fees will be based on the specific itinerary chosen. The applicable first and second bag fees will be displayed after you have added flights to the cart.</p>
210
- <auro-header level="3" display="500">Before checking your bags, remember to:</auro-header>
211
- <ul>
212
- <li>Caerphilly croque monsieur fondue</li>
213
- <li>Taleggio goat mascarpone cow manchego cheese and wine emmental cheese strings</li>
214
- <li>Cheddar cheese and biscuits chalk and cheese</li>
215
- <li>Camembert de normandie stinking bishop bavarian bergkase</li>
216
- </ul>
217
- </div>
218
- <div slot="footer">
219
- <auro-button secondary id="closeDefaultSize">Close</auro-button>
220
- </div>
221
- </auro-dialog>
222
- <auro-dialog id="mediumSizeDialog" md>
223
- <span slot="header">Medium Dialog</span>
224
- <div slot="content">
225
- <p>When traveling on Alaska Airlines flights, Alaska Airlines checked baggage fees may apply. See <auro-hyperlink href="https://www.alaskaair.com/bagrules" target="_blank">alaskaair.com/bagrules</auro-hyperlink> for our rules. For itineraries that include other airlines, their checked baggage fees may apply, as displayed on their websites.</p>
226
- <p>Baggage rules and fees will be based on the specific itinerary chosen. The applicable first and second bag fees will be displayed after you have added flights to the cart.</p>
227
- <auro-header level="3" display="500">Before checking your bags, remember to:</auro-header>
228
- <ul>
229
- <li>Caerphilly croque monsieur fondue</li>
230
- <li>Taleggio goat mascarpone cow manchego cheese and wine emmental cheese strings</li>
231
- <li>Cheddar cheese and biscuits chalk and cheese</li>
232
- <li>Camembert de normandie stinking bishop bavarian bergkase</li>
233
- </ul>
234
- </div>
235
- <div slot="footer">
236
- <auro-button secondary id="closeMediumSize">Close</auro-button>
237
- </div>
238
- </auro-dialog>
239
- <auro-dialog id="smallSizeDialog" sm>
240
- <span slot="header">Small Dialog</span>
241
- <div slot="content">
242
- <p>When traveling on Alaska Airlines flights, Alaska Airlines checked baggage fees may apply. See <auro-hyperlink href="https://www.alaskaair.com/bagrules" target="_blank">alaskaair.com/bagrules</auro-hyperlink> for our rules. For itineraries that include other airlines, their checked baggage fees may apply, as displayed on their websites.</p>
243
- <p>Baggage rules and fees will be based on the specific itinerary chosen. The applicable first and second bag fees will be displayed after you have added flights to the cart.</p>
244
- <auro-header level="3" display="500">Before checking your bags, remember to:</auro-header>
245
- <ul>
246
- <li>Caerphilly croque monsieur fondue</li>
247
- <li>Taleggio goat mascarpone cow manchego cheese and wine emmental cheese strings</li>
248
- <li>Cheddar cheese and biscuits chalk and cheese</li>
249
- <li>Camembert de normandie stinking bishop bavarian bergkase</li>
250
- </ul>
251
- </div>
252
- <div slot="footer">
253
- <auro-button secondary id="closeSmallSize">Close</auro-button>
254
- </div>
255
- </auro-dialog>
256
- ```
257
- <!-- AURO-GENERATED-CONTENT:END -->
258
- </auro-accordion>
259
-
260
- #### Mixed Size Examples:
261
-
262
- <div class="exampleWrapper">
263
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/decoupled.html) -->
264
- <!-- The below content is automatically added from ./../apiExamples/decoupled.html -->
265
- <div>
266
- <auro-button id="openSmLg">Open [sm lg] dialog</auro-button>
267
- <auro-button id="openMdLg">Open [md lg] dialog</auro-button>
268
- </div>
269
- <auro-dialog id="smLgDialog" sm lg>
270
- <span slot="header">Small Modal Dialog</span>
271
- <div slot="content">
272
- <p>When traveling on Alaska Airlines flights, Alaska Airlines checked baggage fees may apply. See <auro-hyperlink href="https://www.alaskaair.com/bagrules" target="_blank">alaskaair.com/bagrules</auro-hyperlink> for our rules. For itineraries that include other airlines, their checked baggage fees may apply, as displayed on their websites.</p>
273
- <p>Baggage rules and fees will be based on the specific itinerary chosen. The applicable first and second bag fees will be displayed after you have added flights to the cart.</p>
274
- <auro-header level="3" display="500">Before checking your bags, remember to:</auro-header>
275
- <ul>
276
- <li>Caerphilly croque monsieur fondue</li>
277
- <li>Taleggio goat mascarpone cow manchego cheese and wine emmental cheese strings</li>
278
- <li>Cheddar cheese and biscuits chalk and cheese</li>
279
- <li>Camembert de normandie stinking bishop bavarian bergkase</li>
280
- </ul>
281
- </div>
282
- <div slot="footer">
283
- <auro-button id="closeSmLg">
284
- I understand
285
- <auro-icon category="interface" name="check-lg" emphasis appearance="inverse"></auro-icon>
286
- </auro-button>
287
- </div>
288
- </auro-dialog>
289
- <auro-dialog id="mdLgDialog" md lg>
290
- <span slot="header">Medium Modal Dialog</span>
291
- <div slot="content">
292
- <p>When traveling on Alaska Airlines flights, Alaska Airlines checked baggage fees may apply. See <auro-hyperlink href="https://www.alaskaair.com/bagrules" target="_blank">alaskaair.com/bagrules</auro-hyperlink> for our rules. For itineraries that include other airlines, their checked baggage fees may apply, as displayed on their websites.</p>
293
- <p>Baggage rules and fees will be based on the specific itinerary chosen. The applicable first and second bag fees will be displayed after you have added flights to the cart.</p>
294
- <auro-header level="3" display="500">Before checking your bags, remember to:</auro-header>
295
- <ul>
296
- <li>Caerphilly croque monsieur fondue</li>
297
- <li>Taleggio goat mascarpone cow manchego cheese and wine emmental cheese strings</li>
298
- <li>Cheddar cheese and biscuits chalk and cheese</li>
299
- <li>Camembert de normandie stinking bishop bavarian bergkase</li>
300
- </ul>
301
- </div>
302
- <div slot="footer">
303
- <auro-button id="closeMdLg">
304
- I understand
305
- <auro-icon category="interface" name="check-lg" emphasis appearance="inverse"></auro-icon>
306
- </auro-button>
307
- </div>
308
- </auro-dialog>
309
- <!-- AURO-GENERATED-CONTENT:END -->
310
- </div>
311
- <auro-accordion alignRight>
312
- <span slot="trigger">See code</span>
313
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/decoupled.html) -->
314
- <!-- The below code snippet is automatically added from ./../apiExamples/decoupled.html -->
315
-
316
- ```html
317
- <div>
318
- <auro-button id="openSmLg">Open [sm lg] dialog</auro-button>
319
- <auro-button id="openMdLg">Open [md lg] dialog</auro-button>
320
- </div>
321
- <auro-dialog id="smLgDialog" sm lg>
322
- <span slot="header">Small Modal Dialog</span>
323
- <div slot="content">
324
- <p>When traveling on Alaska Airlines flights, Alaska Airlines checked baggage fees may apply. See <auro-hyperlink href="https://www.alaskaair.com/bagrules" target="_blank">alaskaair.com/bagrules</auro-hyperlink> for our rules. For itineraries that include other airlines, their checked baggage fees may apply, as displayed on their websites.</p>
325
- <p>Baggage rules and fees will be based on the specific itinerary chosen. The applicable first and second bag fees will be displayed after you have added flights to the cart.</p>
326
- <auro-header level="3" display="500">Before checking your bags, remember to:</auro-header>
327
- <ul>
328
- <li>Caerphilly croque monsieur fondue</li>
329
- <li>Taleggio goat mascarpone cow manchego cheese and wine emmental cheese strings</li>
330
- <li>Cheddar cheese and biscuits chalk and cheese</li>
331
- <li>Camembert de normandie stinking bishop bavarian bergkase</li>
332
- </ul>
333
- </div>
334
- <div slot="footer">
335
- <auro-button id="closeSmLg">
336
- I understand
337
- <auro-icon category="interface" name="check-lg" emphasis appearance="inverse"></auro-icon>
338
- </auro-button>
339
- </div>
340
- </auro-dialog>
341
- <auro-dialog id="mdLgDialog" md lg>
342
- <span slot="header">Medium Modal Dialog</span>
343
- <div slot="content">
344
- <p>When traveling on Alaska Airlines flights, Alaska Airlines checked baggage fees may apply. See <auro-hyperlink href="https://www.alaskaair.com/bagrules" target="_blank">alaskaair.com/bagrules</auro-hyperlink> for our rules. For itineraries that include other airlines, their checked baggage fees may apply, as displayed on their websites.</p>
345
- <p>Baggage rules and fees will be based on the specific itinerary chosen. The applicable first and second bag fees will be displayed after you have added flights to the cart.</p>
346
- <auro-header level="3" display="500">Before checking your bags, remember to:</auro-header>
347
- <ul>
348
- <li>Caerphilly croque monsieur fondue</li>
349
- <li>Taleggio goat mascarpone cow manchego cheese and wine emmental cheese strings</li>
350
- <li>Cheddar cheese and biscuits chalk and cheese</li>
351
- <li>Camembert de normandie stinking bishop bavarian bergkase</li>
352
- </ul>
353
- </div>
354
- <div slot="footer">
355
- <auro-button id="closeMdLg">
356
- I understand
357
- <auro-icon category="interface" name="check-lg" emphasis appearance="inverse"></auro-icon>
358
- </auro-button>
359
- </div>
360
- </auro-dialog>
361
- ```
362
- <!-- AURO-GENERATED-CONTENT:END -->
363
- </auro-accordion>
364
-
365
- ### Modal
366
-
367
- The auro-dialog supports a modal dialog state that will lock a user into interacting with the modal dialog via the `modal` attribute.
368
-
369
- When using this state, the modal dialog must include a button action to dismiss the modal dialog as the closing icon will not be available and the user will not be able to click outside the `modal` dialog to dismiss.
370
-
371
- <div class="exampleWrapper">
372
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/modal.html) -->
373
- <!-- The below content is automatically added from ./../apiExamples/modal.html -->
374
- <div>
375
- <auro-button id="openDefaultModal">Open default modal</auro-button>
376
- <auro-button id="openMediumModal">Open medium modal</auro-button>
377
- <auro-button id="openSmallModal">Open small modal</auro-button>
378
- </div>
379
- <auro-dialog id="defaultModalDialog" modal>
380
- <span slot="header">Default Modal Dialog</span>
381
- <div slot="content">
382
- <p>When traveling on Alaska Airlines flights, Alaska Airlines checked baggage fees may apply. See <auro-hyperlink href="https://www.alaskaair.com/bagrules" target="_blank">alaskaair.com/bagrules</auro-hyperlink> for our rules. For itineraries that include other airlines, their checked baggage fees may apply, as displayed on their websites.</p>
383
- <p>Baggage rules and fees will be based on the specific itinerary chosen. The applicable first and second bag fees will be displayed after you have added flights to the cart.</p>
384
- <auro-header level="3" display="500">Before checking your bags, remember to:</auro-header>
385
- <ul>
386
- <li>Caerphilly croque monsieur fondue</li>
387
- <li>Taleggio goat mascarpone cow manchego cheese and wine emmental cheese strings</li>
388
- <li>Cheddar cheese and biscuits chalk and cheese</li>
389
- <li>Camembert de normandie stinking bishop bavarian bergkase</li>
390
- </ul>
391
- </div>
392
- <div slot="footer">
393
- <auro-button id="closeDefaultModal">I understand
394
- <auro-icon category="interface" name="chevron-right" emphasis appearance="inverse"></auro-icon>
395
- </auro-button>
396
- </div>
397
- </auro-dialog>
398
- <auro-dialog id="mediumModalDialog" md modal>
399
- <span slot="header">Medium Dialog</span>
400
- <div slot="content">
401
- <p>When traveling on Alaska Airlines flights, Alaska Airlines checked baggage fees may apply. See <auro-hyperlink href="https://www.alaskaair.com/bagrules" target="_blank">alaskaair.com/bagrules</auro-hyperlink> for our rules. For itineraries that include other airlines, their checked baggage fees may apply, as displayed on their websites.</p>
402
- <p>Baggage rules and fees will be based on the specific itinerary chosen. The applicable first and second bag fees will be displayed after you have added flights to the cart.</p>
403
- <auro-header level="3" display="500">Before checking your bags, remember to:</auro-header>
404
- <ul>
405
- <li>Caerphilly croque monsieur fondue</li>
406
- <li>Taleggio goat mascarpone cow manchego cheese and wine emmental cheese strings</li>
407
- <li>Cheddar cheese and biscuits chalk and cheese</li>
408
- <li>Camembert de normandie stinking bishop bavarian bergkase</li>
409
- </ul>
410
- </div>
411
- <div slot="footer">
412
- <auro-button id="closeMediumModal">I understand
413
- <auro-icon category="interface" name="chevron-right" emphasis appearance="inverse"></auro-icon>
414
- </auro-button>
415
- </div>
416
- </auro-dialog>
417
- <auro-dialog id="smallModalDialog" sm modal>
418
- <span slot="header">Small Dialog</span>
419
- <div slot="content">
420
- <p>When traveling on Alaska Airlines flights, Alaska Airlines checked baggage fees may apply. See <auro-hyperlink href="https://www.alaskaair.com/bagrules" target="_blank">alaskaair.com/bagrules</auro-hyperlink> for our rules. For itineraries that include other airlines, their checked baggage fees may apply, as displayed on their websites.</p>
421
- <p>Baggage rules and fees will be based on the specific itinerary chosen. The applicable first and second bag fees will be displayed after you have added flights to the cart.</p>
422
- <auro-header level="3" display="500">Before checking your bags, remember to:</auro-header>
423
- <ul>
424
- <li>Caerphilly croque monsieur fondue</li>
425
- <li>Taleggio goat mascarpone cow manchego cheese and wine emmental cheese strings</li>
426
- <li>Cheddar cheese and biscuits chalk and cheese</li>
427
- <li>Camembert de normandie stinking bishop bavarian bergkase</li>
428
- </ul>
429
- </div>
430
- <div slot="footer">
431
- <auro-button id="closeSmallModal">I understand
432
- <auro-icon category="interface" name="chevron-right" emphasis appearance="inverse"></auro-icon>
433
- </auro-button>
434
- </div>
435
- </auro-dialog>
436
- <!-- AURO-GENERATED-CONTENT:END -->
437
- </div>
438
- <auro-accordion alignRight>
439
- <span slot="trigger">See code</span>
440
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/modal.html) -->
441
- <!-- The below code snippet is automatically added from ./../apiExamples/modal.html -->
442
-
443
- ```html
444
- <div>
445
- <auro-button id="openDefaultModal">Open default modal</auro-button>
446
- <auro-button id="openMediumModal">Open medium modal</auro-button>
447
- <auro-button id="openSmallModal">Open small modal</auro-button>
448
- </div>
449
- <auro-dialog id="defaultModalDialog" modal>
450
- <span slot="header">Default Modal Dialog</span>
451
- <div slot="content">
452
- <p>When traveling on Alaska Airlines flights, Alaska Airlines checked baggage fees may apply. See <auro-hyperlink href="https://www.alaskaair.com/bagrules" target="_blank">alaskaair.com/bagrules</auro-hyperlink> for our rules. For itineraries that include other airlines, their checked baggage fees may apply, as displayed on their websites.</p>
453
- <p>Baggage rules and fees will be based on the specific itinerary chosen. The applicable first and second bag fees will be displayed after you have added flights to the cart.</p>
454
- <auro-header level="3" display="500">Before checking your bags, remember to:</auro-header>
455
- <ul>
456
- <li>Caerphilly croque monsieur fondue</li>
457
- <li>Taleggio goat mascarpone cow manchego cheese and wine emmental cheese strings</li>
458
- <li>Cheddar cheese and biscuits chalk and cheese</li>
459
- <li>Camembert de normandie stinking bishop bavarian bergkase</li>
460
- </ul>
461
- </div>
462
- <div slot="footer">
463
- <auro-button id="closeDefaultModal">I understand
464
- <auro-icon category="interface" name="chevron-right" emphasis appearance="inverse"></auro-icon>
465
- </auro-button>
466
- </div>
467
- </auro-dialog>
468
- <auro-dialog id="mediumModalDialog" md modal>
469
- <span slot="header">Medium Dialog</span>
470
- <div slot="content">
471
- <p>When traveling on Alaska Airlines flights, Alaska Airlines checked baggage fees may apply. See <auro-hyperlink href="https://www.alaskaair.com/bagrules" target="_blank">alaskaair.com/bagrules</auro-hyperlink> for our rules. For itineraries that include other airlines, their checked baggage fees may apply, as displayed on their websites.</p>
472
- <p>Baggage rules and fees will be based on the specific itinerary chosen. The applicable first and second bag fees will be displayed after you have added flights to the cart.</p>
473
- <auro-header level="3" display="500">Before checking your bags, remember to:</auro-header>
474
- <ul>
475
- <li>Caerphilly croque monsieur fondue</li>
476
- <li>Taleggio goat mascarpone cow manchego cheese and wine emmental cheese strings</li>
477
- <li>Cheddar cheese and biscuits chalk and cheese</li>
478
- <li>Camembert de normandie stinking bishop bavarian bergkase</li>
479
- </ul>
480
- </div>
481
- <div slot="footer">
482
- <auro-button id="closeMediumModal">I understand
483
- <auro-icon category="interface" name="chevron-right" emphasis appearance="inverse"></auro-icon>
484
- </auro-button>
485
- </div>
486
- </auro-dialog>
487
- <auro-dialog id="smallModalDialog" sm modal>
488
- <span slot="header">Small Dialog</span>
489
- <div slot="content">
490
- <p>When traveling on Alaska Airlines flights, Alaska Airlines checked baggage fees may apply. See <auro-hyperlink href="https://www.alaskaair.com/bagrules" target="_blank">alaskaair.com/bagrules</auro-hyperlink> for our rules. For itineraries that include other airlines, their checked baggage fees may apply, as displayed on their websites.</p>
491
- <p>Baggage rules and fees will be based on the specific itinerary chosen. The applicable first and second bag fees will be displayed after you have added flights to the cart.</p>
492
- <auro-header level="3" display="500">Before checking your bags, remember to:</auro-header>
493
- <ul>
494
- <li>Caerphilly croque monsieur fondue</li>
495
- <li>Taleggio goat mascarpone cow manchego cheese and wine emmental cheese strings</li>
496
- <li>Cheddar cheese and biscuits chalk and cheese</li>
497
- <li>Camembert de normandie stinking bishop bavarian bergkase</li>
498
- </ul>
499
- </div>
500
- <div slot="footer">
501
- <auro-button id="closeSmallModal">I understand
502
- <auro-icon category="interface" name="chevron-right" emphasis appearance="inverse"></auro-icon>
503
- </auro-button>
504
- </div>
505
- </auro-dialog>
506
- ```
507
- <!-- AURO-GENERATED-CONTENT:END -->
508
- </auro-accordion>
509
-
510
- ### Unformatted dialog
511
-
512
- For use case where the use of a dialog is to be more freeform, but the experience and base tooling for the dialog are still requested, there is the `unformatted` property.
513
-
514
- This property can be used in combination with any other use case of the dialog, but it will render an unformatted dialog window, allowing for full customization of content within the scope of the window.
515
-
516
- ## Slot Examples
517
-
518
- ### Close button aria-label slot
519
-
520
- To customize the aria-label text for the close button, use the `ariaLabel.dialog.close` slot to provide custom text. If no text is provided, the default text `"Close"` will be used.
521
-
522
- <div class="exampleWrapper">
523
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/aria-label.html) -->
524
- <!-- The below content is automatically added from ./../apiExamples/aria-label.html -->
525
- <div>
526
- <auro-button id="openAriaLabelSlot">Unformatted Dialog w/ custom close button aria-label</auro-button>
527
- </div>
528
- <auro-dialog id="ariaLabelMdDialog" unformatted md lg ondark>
529
- <span slot="ariaLabel.dialog.close">This will be the new aria label for the close button</span>
530
- <span slot="content">
531
- <img style="display: block; width: 100%" src="https://blog.alaskaair.com/wp-content/uploads/2020/11/111-psp-blog-img-guide.jpg" alt="alaska airlines pride lights" />
532
- <div class="unformattedWrapper">
533
- <h1 id="dialog-header" class="heading-lg">This is a header</h1>
534
- These are words that are slotted into the scope of the custom element.
535
- </div>
536
- </span>
537
- </auro-dialog>
538
- <!-- AURO-GENERATED-CONTENT:END -->
539
- </div>
540
- <auro-accordion alignRight>
541
- <span slot="trigger">See code</span>
542
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/aria-label.html) -->
543
- <!-- The below code snippet is automatically added from ./../apiExamples/aria-label.html -->
544
-
545
- ```html
546
- <div>
547
- <auro-button id="openAriaLabelSlot">Unformatted Dialog w/ custom close button aria-label</auro-button>
548
- </div>
549
- <auro-dialog id="ariaLabelMdDialog" unformatted md lg ondark>
550
- <span slot="ariaLabel.dialog.close">This will be the new aria label for the close button</span>
551
- <span slot="content">
552
- <img style="display: block; width: 100%" src="https://blog.alaskaair.com/wp-content/uploads/2020/11/111-psp-blog-img-guide.jpg" alt="alaska airlines pride lights" />
553
- <div class="unformattedWrapper">
554
- <h1 id="dialog-header" class="heading-lg">This is a header</h1>
555
- These are words that are slotted into the scope of the custom element.
556
- </div>
557
- </span>
558
- </auro-dialog>
559
- ```
560
- <!-- AURO-GENERATED-CONTENT:END -->
561
- </auro-accordion>
562
-
563
- ## CSS Shadow Part Examples
564
-
565
- ### Close Button
566
-
567
- The close button can be targetted via the `close-button` CSS part, e.g. `auro-dialog::part(close-button)`.
568
-
569
- <div class="exampleWrapper">
570
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/close-button.html) -->
571
- <!-- The below content is automatically added from ./../apiExamples/close-button.html -->
572
- <div>
573
- <auro-button id="openEditDialog">Unformatted w/custom close button</auro-button>
574
- </div>
575
- <style>
576
- .example::part(close-button) {
577
- top: var(--ds-size-400);
578
- right: var(--ds-size-400);
579
- }
580
- </style>
581
- <auro-dialog id="unformattedCustomMdDialog" unformatted md lg class="example">
582
- <span slot="content">
583
- <img style="display: block; width: 100%" src="https://worldairlinenews.files.wordpress.com/2022/05/alaska-737-800-sswl-n538as-22-star-warstko-sfo-mdblr-5.4.22.jpg" alt="alaska airlines pride lights" />
584
- <div class="unformattedWrapper">
585
- <h1 id="dialog-header" class="heading-lg">Unformatted w/custom close button</h1>
586
- Notice the custom location of the close button as well as the custom color.
587
- </div>
588
- </span>
589
- </auro-dialog>
590
- <!-- AURO-GENERATED-CONTENT:END -->
591
- </div>
592
- <auro-accordion alignRight>
593
- <span slot="trigger">See code</span>
594
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/close-button.html) -->
595
- <!-- The below code snippet is automatically added from ./../apiExamples/close-button.html -->
596
-
597
- ```html
598
- <div>
599
- <auro-button id="openEditDialog">Unformatted w/custom close button</auro-button>
600
- </div>
601
- <style>
602
- .example::part(close-button) {
603
- top: var(--ds-size-400);
604
- right: var(--ds-size-400);
605
- }
606
- </style>
607
- <auro-dialog id="unformattedCustomMdDialog" unformatted md lg class="example">
608
- <span slot="content">
609
- <img style="display: block; width: 100%" src="https://worldairlinenews.files.wordpress.com/2022/05/alaska-737-800-sswl-n538as-22-star-warstko-sfo-mdblr-5.4.22.jpg" alt="alaska airlines pride lights" />
610
- <div class="unformattedWrapper">
611
- <h1 id="dialog-header" class="heading-lg">Unformatted w/custom close button</h1>
612
- Notice the custom location of the close button as well as the custom color.
613
- </div>
614
- </span>
615
- </auro-dialog>
616
- ```
617
- <!-- AURO-GENERATED-CONTENT:END -->
618
- </auro-accordion>
619
-
620
- ## Common Usage Patterns & Functional Examples
621
-
622
- ### Dialog with Popover and Dropdown Components
623
-
624
- This is a use case where there is a popover and combobox component inside the dialog component, creating a stack of layered components.
625
-
626
- <div class="exampleWrapper">
627
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/popover-and-dropdown.html) -->
628
- <!-- The below content is automatically added from ./../apiExamples/popover-and-dropdown.html -->
629
- <div>
630
- <auro-button id="openPopAndDrop">Open dialog with popover</auro-button>
631
- </div>
632
- <auro-dialog id="popover-dialog" sm lg>
633
- <span slot="header">Small Modal Dialog</span>
634
- <div slot="content">
635
- <p>
636
- When traveling on Alaska Airlines flights, Alaska Airlines checked baggage fees may apply. See <auro-hyperlink href="https://www.alaskaair.com/bagrules" target="_blank">alaskaair.com/bagrules</auro-hyperlink> for our rules. For itineraries that include other airlines, their checked baggage fees may apply, as displayed on their websites.
637
- </p>
638
- <p>
639
- Baggage rules and fees will be based on the specific itinerary chosen. The applicable first and second bag fees will be displayed after you have added flights to the cart.
640
- </p>
641
- <auro-header level="3" display="500">
642
- Before checking your bags, remember to:
643
- </auro-header>
644
- <auro-popover>
645
- <div class="content">
646
- <ul>
647
- <li>Caerphilly croque monsieur fondue</li>
648
- <li>Taleggio goat mascarpone cow manchego cheese and wine emmental cheese strings</li>
649
- <li>Cheddar cheese and biscuits chalk and cheese</li>
650
- <li>Camembert de normandie stinking bishop bavarian bergkase</li>
651
- </ul>
652
- </div>
653
- <auro-hyperlink slot="trigger" href="#">Hover on me</auro-hyperlink>
654
- </auro-popover>
655
- <auro-combobox>
656
- <span slot="label">Name</span>
657
- <auro-menu>
658
- <auro-menuoption value="Apples" id="option-0">Apples</auro-menuoption>
659
- <auro-menuoption value="Oranges" id="option-1">Oranges</auro-menuoption>
660
- <auro-menuoption value="Peaches" id="option-2">Peaches</auro-menuoption>
661
- <auro-menuoption value="Grapes" id="option-3">Grapes</auro-menuoption>
662
- <auro-menuoption value="Cherries" id="option-4">Cherries</auro-menuoption>
663
- <auro-menuoption static nomatch>No matching option</auro-menuoption>
664
- </auro-menu>
665
- </auro-combobox>
666
- </div>
667
- <div slot="footer">
668
- <auro-button id="closePopAndDrop">
669
- I understand
670
- <auro-icon category="interface" name="check-lg" emphasis appearance="inverse"></auro-icon>
671
- </auro-button>
672
- </div>
673
- </auro-dialog>
674
- <!-- AURO-GENERATED-CONTENT:END -->
675
- </div>
676
- <auro-accordion alignRight>
677
- <span slot="trigger">See code</span>
678
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/popover-and-dropdown.html) -->
679
- <!-- The below code snippet is automatically added from ./../apiExamples/popover-and-dropdown.html -->
680
-
681
- ```html
682
- <div>
683
- <auro-button id="openPopAndDrop">Open dialog with popover</auro-button>
684
- </div>
685
- <auro-dialog id="popover-dialog" sm lg>
686
- <span slot="header">Small Modal Dialog</span>
687
- <div slot="content">
688
- <p>
689
- When traveling on Alaska Airlines flights, Alaska Airlines checked baggage fees may apply. See <auro-hyperlink href="https://www.alaskaair.com/bagrules" target="_blank">alaskaair.com/bagrules</auro-hyperlink> for our rules. For itineraries that include other airlines, their checked baggage fees may apply, as displayed on their websites.
690
- </p>
691
- <p>
692
- Baggage rules and fees will be based on the specific itinerary chosen. The applicable first and second bag fees will be displayed after you have added flights to the cart.
693
- </p>
694
- <auro-header level="3" display="500">
695
- Before checking your bags, remember to:
696
- </auro-header>
697
- <auro-popover>
698
- <div class="content">
699
- <ul>
700
- <li>Caerphilly croque monsieur fondue</li>
701
- <li>Taleggio goat mascarpone cow manchego cheese and wine emmental cheese strings</li>
702
- <li>Cheddar cheese and biscuits chalk and cheese</li>
703
- <li>Camembert de normandie stinking bishop bavarian bergkase</li>
704
- </ul>
705
- </div>
706
- <auro-hyperlink slot="trigger" href="#">Hover on me</auro-hyperlink>
707
- </auro-popover>
708
- <auro-combobox>
709
- <span slot="label">Name</span>
710
- <auro-menu>
711
- <auro-menuoption value="Apples" id="option-0">Apples</auro-menuoption>
712
- <auro-menuoption value="Oranges" id="option-1">Oranges</auro-menuoption>
713
- <auro-menuoption value="Peaches" id="option-2">Peaches</auro-menuoption>
714
- <auro-menuoption value="Grapes" id="option-3">Grapes</auro-menuoption>
715
- <auro-menuoption value="Cherries" id="option-4">Cherries</auro-menuoption>
716
- <auro-menuoption static nomatch>No matching option</auro-menuoption>
717
- </auro-menu>
718
- </auro-combobox>
719
- </div>
720
- <div slot="footer">
721
- <auro-button id="closePopAndDrop">
722
- I understand
723
- <auro-icon category="interface" name="check-lg" emphasis appearance="inverse"></auro-icon>
724
- </auro-button>
725
- </div>
726
- </auro-dialog>
727
- ```
728
- <!-- AURO-GENERATED-CONTENT:END -->
729
- </auro-accordion>
730
-
731
- ### Accessibility
732
-
733
- Within the scope of the auro-dialog there is `aria-labelledby="dialog-header"`. To make proper use of this, in an unformatted dialog, the developer is required to add `id="dialog-header"` to the content header within the dialog content.
734
-
735
- <div class="exampleWrapper">
736
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/accessibility.html) -->
737
- <!-- The below content is automatically added from ./../apiExamples/accessibility.html -->
738
- <div>
739
- <auro-button id="openAccessibility">Unformatted Medium Dialog</auro-button>
740
- </div>
741
- <auro-dialog id="unformattedMdDialog" unformatted md lg close-button-appearance="inverse">
742
- <span slot="content">
743
- <img style="display: block; width: 100%" src="https://blog.alaskaair.com/wp-content/uploads/2020/11/111-psp-blog-img-guide.jpg" alt="alaska airlines pride lights" />
744
- <div class="unformattedWrapper">
745
- <h1 id="dialog-header" class="heading-lg">This is a header</h1>
746
- These are words that are slotted into the scope of the custom element.
747
- </div>
748
- </span>
749
- </auro-dialog>
750
- <!-- AURO-GENERATED-CONTENT:END -->
751
- </div>
752
- <auro-accordion alignRight>
753
- <span slot="trigger">See code</span>
754
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/accessibility.html) -->
755
- <!-- The below code snippet is automatically added from ./../apiExamples/accessibility.html -->
756
-
757
- ```html
758
- <div>
759
- <auro-button id="openAccessibility">Unformatted Medium Dialog</auro-button>
760
- </div>
761
- <auro-dialog id="unformattedMdDialog" unformatted md lg close-button-appearance="inverse">
762
- <span slot="content">
763
- <img style="display: block; width: 100%" src="https://blog.alaskaair.com/wp-content/uploads/2020/11/111-psp-blog-img-guide.jpg" alt="alaska airlines pride lights" />
764
- <div class="unformattedWrapper">
765
- <h1 id="dialog-header" class="heading-lg">This is a header</h1>
766
- These are words that are slotted into the scope of the custom element.
767
- </div>
768
- </span>
769
- </auro-dialog>
770
- ```
771
- <!-- AURO-GENERATED-CONTENT:END -->
772
- </auro-accordion>
773
-
774
- ### Responsive padding
775
-
776
- Part of the dialog design spec is its responsive padding. To take advantage of this for your content within the scope of the dialog, be sure to use the selector `unformattedWrapper` that can be imported from the package here:
777
-
778
- ```css
779
- import '@aurodesignsystem/auro-dialog/dist/style-unformatted.scss'
780
-
781
- or
782
-
783
- import '@aurodesignsystem/auro-dialog/dist/style-unformatted.css'
784
- ```
785
-
786
- ## Restyle Component with CSS Variables
787
-
788
- The component may be restyled by changing the values of the following token(s).
789
-
790
- <!-- Remove section if component does not have any component specific tokens -->
791
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../src/styles/tokens.scss) -->
792
- <!-- The below code snippet is automatically added from ./../src/styles/tokens.scss -->
793
-
794
- ```scss
795
- @use "@aurodesignsystem/design-tokens/dist/legacy/auro-classic/SCSSVariables" as vac;
796
- @use "@aurodesignsystem/design-tokens/dist/themes/alaska/SCSSVariables--alaska" as v;
797
-
798
- :host {
799
- --ds-auro-dialog-container-color: var(--ds-basic-color-surface-default, #{v.$ds-basic-color-surface-default});
800
- --ds-auro-dialog-boxshadow-color: var(--ds-elevation-300, #{vac.$ds-elevation-300});
801
- --ds-auro-dialog-overlay-modal-background-color: var(--ds-advanced-color-shared-scrim, #{v.$ds-advanced-color-shared-scrim});
802
- --ds-auro-dialog-overlay-open-background-color: var(--ds-advanced-color-shared-scrim, #{v.$ds-advanced-color-shared-scrim});
803
- --ds-auro-dialog-text-color: var(--ds-basic-color-texticon-default, #{v.$ds-basic-color-texticon-default});
804
- }
805
- ```
806
56
  <!-- AURO-GENERATED-CONTENT:END -->