@aurodesignsystem/auro-dialog 1.0.7 → 1.0.9
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/.vscode/settings.json +2 -0
- package/CHANGELOG.md +20 -0
- package/README.md +5 -5
- package/apiExamples/accessibility.js +12 -0
- package/apiExamples/basic.js +14 -0
- package/apiExamples/custom.js +14 -0
- package/apiExamples/decoupled.js +27 -0
- package/apiExamples/editCloseButton.js +12 -0
- package/apiExamples/modal.js +40 -0
- package/apiExamples/popoverAndDropdown.js +14 -0
- package/apiExamples/sizeOptions.js +40 -0
- package/demo/api.js +17 -5
- package/demo/api.md +52 -52
- package/demo/api.min.js +174 -11
- package/demo/index.js +7 -5
- package/demo/index.md +8 -8
- package/demo/index.min.js +33 -11
- package/dist/accessibility.js +12 -0
- package/dist/auro-dialog__bundled.js +11 -9
- package/dist/basic.js +14 -0
- package/dist/componentBase.d.ts.map +1 -1
- package/dist/componentBase.js +9 -7
- package/dist/custom.js +14 -0
- package/dist/decoupled.js +27 -0
- package/dist/editCloseButton.js +12 -0
- package/dist/modal.js +40 -0
- package/dist/popoverAndDropdown.js +14 -0
- package/dist/sizeOptions.js +40 -0
- package/package.json +23 -24
- package/src/componentBase.js +9 -7
- package/src/style-css.js +1 -1
- package/apiExamples/toggleDialog.js +0 -9
- package/dist/toggleDialog.js +0 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# Semantic Release Automated Changelog
|
|
2
2
|
|
|
3
|
+
## [1.0.9](https://github.com/AlaskaAirlines/auro-dialog/compare/v1.0.8...v1.0.9) (2024-04-05)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* **scroll:** make dialog content scroll [#15](https://github.com/AlaskaAirlines/auro-dialog/issues/15) ([4f69654](https://github.com/AlaskaAirlines/auro-dialog/commit/4f696542e23d345fe5f1f26215b18e519609e6b8))
|
|
9
|
+
|
|
10
|
+
## [1.0.8](https://github.com/AlaskaAirlines/auro-dialog/compare/v1.0.7...v1.0.8) (2024-02-23)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* **unformatted:** fix error from unformatted dialog opening ([7371148](https://github.com/AlaskaAirlines/auro-dialog/commit/73711488f5ca69b78dadc89552af89bac88573c2))
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Performance Improvements
|
|
19
|
+
|
|
20
|
+
* **deps:** update deps ([791254c](https://github.com/AlaskaAirlines/auro-dialog/commit/791254c25a0061b8669976754115819f3edb9e49))
|
|
21
|
+
* **min:** update min file system for docsite ([f86089a](https://github.com/AlaskaAirlines/auro-dialog/commit/f86089a8b02bbb1c1aa416e315f6b9fb9a831369))
|
|
22
|
+
|
|
3
23
|
## [1.0.7](https://github.com/AlaskaAirlines/auro-dialog/compare/v1.0.6...v1.0.7) (2024-02-21)
|
|
4
24
|
|
|
5
25
|
|
package/README.md
CHANGED
|
@@ -90,7 +90,7 @@ import "@aurodesignsystem/auro-dialog";
|
|
|
90
90
|
|
|
91
91
|
```html
|
|
92
92
|
<div>
|
|
93
|
-
<auro-button
|
|
93
|
+
<auro-button id="openBasic">Open default dialog</auro-button>
|
|
94
94
|
</div>
|
|
95
95
|
<auro-dialog id="defaultDialog">
|
|
96
96
|
<span slot="header">Default Dialog</span>
|
|
@@ -106,7 +106,7 @@ import "@aurodesignsystem/auro-dialog";
|
|
|
106
106
|
</ul>
|
|
107
107
|
</div>
|
|
108
108
|
<div slot="footer">
|
|
109
|
-
<auro-button secondary
|
|
109
|
+
<auro-button secondary id="closeBasic">Close</auro-button>
|
|
110
110
|
</div>
|
|
111
111
|
</auro-dialog>
|
|
112
112
|
```
|
|
@@ -128,7 +128,7 @@ In cases where the project is not able to process JS assets, there are pre-proce
|
|
|
128
128
|
```html
|
|
129
129
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@4.3.0/dist/tokens/CSSCustomProperties.css" />
|
|
130
130
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@5.0.8/dist/bundled/essentials.css" />
|
|
131
|
-
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-dialog@1.0.
|
|
131
|
+
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-dialog@1.0.9/dist/auro-dialog__bundled.js" type="module"></script>
|
|
132
132
|
```
|
|
133
133
|
|
|
134
134
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
@@ -152,7 +152,7 @@ The `<auro-dialog>` component should be used in situations where users may:
|
|
|
152
152
|
|
|
153
153
|
```html
|
|
154
154
|
<div>
|
|
155
|
-
<auro-button
|
|
155
|
+
<auro-button id="openBasic">Open default dialog</auro-button>
|
|
156
156
|
</div>
|
|
157
157
|
<auro-dialog id="defaultDialog">
|
|
158
158
|
<span slot="header">Default Dialog</span>
|
|
@@ -168,7 +168,7 @@ The `<auro-dialog>` component should be used in situations where users may:
|
|
|
168
168
|
</ul>
|
|
169
169
|
</div>
|
|
170
170
|
<div slot="footer">
|
|
171
|
-
<auro-button secondary
|
|
171
|
+
<auro-button secondary id="closeBasic">Close</auro-button>
|
|
172
172
|
</div>
|
|
173
173
|
</auro-dialog>
|
|
174
174
|
```
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export function initAccessibilityExample() {
|
|
2
|
+
const button = document.querySelector('#openAccessibility');
|
|
3
|
+
const dialog = document.querySelector('#unformattedMdDialog');
|
|
4
|
+
|
|
5
|
+
button.addEventListener('click', () => {
|
|
6
|
+
if (dialog.hasAttribute('open')) {
|
|
7
|
+
dialog.removeAttribute('open');
|
|
8
|
+
} else {
|
|
9
|
+
dialog.setAttribute('open', true);
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export function initBasicExample() {
|
|
2
|
+
const buttons = [document.querySelector('#openBasic'), document.querySelector('#closeBasic')];
|
|
3
|
+
const dialog = document.querySelector('#defaultDialog');
|
|
4
|
+
|
|
5
|
+
buttons.forEach((button) => {
|
|
6
|
+
button.addEventListener('click', () => {
|
|
7
|
+
if (dialog.hasAttribute('open')) {
|
|
8
|
+
dialog.removeAttribute('open');
|
|
9
|
+
} else {
|
|
10
|
+
dialog.setAttribute('open', true);
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
});
|
|
14
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export function initCustomExample() {
|
|
2
|
+
const buttons = [document.querySelector('#openCustom'), document.querySelector('#closeCustom')];
|
|
3
|
+
const dialog = document.querySelector('#defaultDialog');
|
|
4
|
+
|
|
5
|
+
buttons.forEach((button) => {
|
|
6
|
+
button.addEventListener('click', () => {
|
|
7
|
+
if (dialog.hasAttribute('open')) {
|
|
8
|
+
dialog.removeAttribute('open');
|
|
9
|
+
} else {
|
|
10
|
+
dialog.setAttribute('open', true);
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
});
|
|
14
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export function initDecoupledExample() {
|
|
2
|
+
const smLgButtons = [document.querySelector('#openSmLg'), document.querySelector('#closeSmLg')];
|
|
3
|
+
const smLgDialog = document.querySelector('#smLgDialog');
|
|
4
|
+
|
|
5
|
+
const mdLgButtons = [document.querySelector('#openMdLg'), document.querySelector('#closeMdLg')];
|
|
6
|
+
const mdLgDialog = document.querySelector('#mdLgDialog');
|
|
7
|
+
|
|
8
|
+
smLgButtons.forEach((button) => {
|
|
9
|
+
button.addEventListener('click', () => {
|
|
10
|
+
if (smLgDialog.hasAttribute('open')) {
|
|
11
|
+
smLgDialog.removeAttribute('open');
|
|
12
|
+
} else {
|
|
13
|
+
smLgDialog.setAttribute('open', true);
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
mdLgButtons.forEach((button) => {
|
|
19
|
+
button.addEventListener('click', () => {
|
|
20
|
+
if (mdLgDialog.hasAttribute('open')) {
|
|
21
|
+
mdLgDialog.removeAttribute('open');
|
|
22
|
+
} else {
|
|
23
|
+
mdLgDialog.setAttribute('open', true);
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
});
|
|
27
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export function initEditCloseButtonExample() {
|
|
2
|
+
const button = document.querySelector('#openEditDialog');
|
|
3
|
+
const dialog = document.querySelector('#unformattedCustomMdDialog');
|
|
4
|
+
|
|
5
|
+
button.addEventListener('click', () => {
|
|
6
|
+
if (dialog.hasAttribute('open')) {
|
|
7
|
+
dialog.removeAttribute('open');
|
|
8
|
+
} else {
|
|
9
|
+
dialog.setAttribute('open', true);
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
export function initModalExample() {
|
|
2
|
+
const defaultButtons = [document.querySelector('#openDefaultModal'), document.querySelector('#closeDefaultModal')];
|
|
3
|
+
const defaultDialog = document.querySelector('#defaultModalDialog');
|
|
4
|
+
|
|
5
|
+
const mediumButtons = [document.querySelector('#openMediumModal'), document.querySelector('#closeMediumModal')];
|
|
6
|
+
const mediumDialog = document.querySelector('#mediumModalDialog');
|
|
7
|
+
|
|
8
|
+
const smallButtons = [document.querySelector('#openSmallModal'), document.querySelector('#closeSmallModal')];
|
|
9
|
+
const smallDialog = document.querySelector('#smallModalDialog');
|
|
10
|
+
|
|
11
|
+
defaultButtons.forEach((button) => {
|
|
12
|
+
button.addEventListener('click', () => {
|
|
13
|
+
if (defaultDialog.hasAttribute('open')) {
|
|
14
|
+
defaultDialog.removeAttribute('open');
|
|
15
|
+
} else {
|
|
16
|
+
defaultDialog.setAttribute('open', true);
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
mediumButtons.forEach((button) => {
|
|
22
|
+
button.addEventListener('click', () => {
|
|
23
|
+
if (mediumDialog.hasAttribute('open')) {
|
|
24
|
+
mediumDialog.removeAttribute('open');
|
|
25
|
+
} else {
|
|
26
|
+
mediumDialog.setAttribute('open', true);
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
smallButtons.forEach((button) => {
|
|
32
|
+
button.addEventListener('click', () => {
|
|
33
|
+
if (smallDialog.hasAttribute('open')) {
|
|
34
|
+
smallDialog.removeAttribute('open');
|
|
35
|
+
} else {
|
|
36
|
+
smallDialog.setAttribute('open', true);
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
});
|
|
40
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export function initPopoverAndDropdownExample() {
|
|
2
|
+
const buttons = [document.querySelector('#openPopAndDrop'), document.querySelector('#closePopAndDrop')];
|
|
3
|
+
const dialog = document.querySelector('#popover-dialog');
|
|
4
|
+
|
|
5
|
+
buttons.forEach((button) => {
|
|
6
|
+
button.addEventListener('click', () => {
|
|
7
|
+
if (dialog.hasAttribute('open')) {
|
|
8
|
+
dialog.removeAttribute('open');
|
|
9
|
+
} else {
|
|
10
|
+
dialog.setAttribute('open', true);
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
});
|
|
14
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
export function initSizeOptionsExample() {
|
|
2
|
+
const defaultButtons = [document.querySelector('#openDefaultSize'), document.querySelector('#closeDefaultSize')];
|
|
3
|
+
const defaultDialog = document.querySelector('#defaultSizeDialog');
|
|
4
|
+
|
|
5
|
+
const mediumButtons = [document.querySelector('#openMediumSize'), document.querySelector('#closeMediumSize')];
|
|
6
|
+
const mediumDialog = document.querySelector('#mediumSizeDialog');
|
|
7
|
+
|
|
8
|
+
const smallButtons = [document.querySelector('#openSmallSize'), document.querySelector('#closeSmallSize')];
|
|
9
|
+
const smallDialog = document.querySelector('#smallSizeDialog');
|
|
10
|
+
|
|
11
|
+
defaultButtons.forEach((button) => {
|
|
12
|
+
button.addEventListener('click', () => {
|
|
13
|
+
if (defaultDialog.hasAttribute('open')) {
|
|
14
|
+
defaultDialog.removeAttribute('open');
|
|
15
|
+
} else {
|
|
16
|
+
defaultDialog.setAttribute('open', true);
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
mediumButtons.forEach((button) => {
|
|
22
|
+
button.addEventListener('click', () => {
|
|
23
|
+
if (mediumDialog.hasAttribute('open')) {
|
|
24
|
+
mediumDialog.removeAttribute('open');
|
|
25
|
+
} else {
|
|
26
|
+
mediumDialog.setAttribute('open', true);
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
smallButtons.forEach((button) => {
|
|
32
|
+
button.addEventListener('click', () => {
|
|
33
|
+
if (smallDialog.hasAttribute('open')) {
|
|
34
|
+
smallDialog.removeAttribute('open');
|
|
35
|
+
} else {
|
|
36
|
+
smallDialog.setAttribute('open', true);
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
});
|
|
40
|
+
}
|
package/demo/api.js
CHANGED
|
@@ -1,15 +1,27 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { initBasicExample } from "../apiExamples/basic";
|
|
2
|
+
import { initAccessibilityExample } from "../apiExamples/accessibility";
|
|
3
|
+
import { initDecoupledExample } from "../apiExamples/decoupled";
|
|
4
|
+
import { initEditCloseButtonExample } from "../apiExamples/editCloseButton";
|
|
5
|
+
import { initModalExample } from "../apiExamples/modal";
|
|
6
|
+
import { initPopoverAndDropdownExample } from "../apiExamples/popoverAndDropdown";
|
|
7
|
+
import { initSizeOptionsExample } from "../apiExamples/sizeOptions";
|
|
2
8
|
|
|
3
|
-
export function
|
|
9
|
+
export function initExamples(initCount) {
|
|
4
10
|
initCount = initCount || 0;
|
|
5
11
|
|
|
6
12
|
try {
|
|
7
|
-
|
|
8
|
-
|
|
13
|
+
initBasicExample();
|
|
14
|
+
initAccessibilityExample();
|
|
15
|
+
initDecoupledExample();
|
|
16
|
+
initEditCloseButtonExample();
|
|
17
|
+
initModalExample();
|
|
18
|
+
initPopoverAndDropdownExample();
|
|
19
|
+
initSizeOptionsExample();
|
|
20
|
+
} catch (err) {
|
|
9
21
|
if (initCount <= 20) {
|
|
10
22
|
// setTimeout handles issue where content is sometimes loaded after the functions get called
|
|
11
23
|
setTimeout(() => {
|
|
12
|
-
|
|
24
|
+
initExamples(initCount + 1);
|
|
13
25
|
}, 100);
|
|
14
26
|
}
|
|
15
27
|
}
|
package/demo/api.md
CHANGED
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../../apiExamples/basic.html) -->
|
|
55
55
|
<!-- The below content is automatically added from ./../../apiExamples/basic.html -->
|
|
56
56
|
<div>
|
|
57
|
-
<auro-button
|
|
57
|
+
<auro-button id="openBasic">Open default dialog</auro-button>
|
|
58
58
|
</div>
|
|
59
59
|
<auro-dialog id="defaultDialog">
|
|
60
60
|
<span slot="header">Default Dialog</span>
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
</ul>
|
|
71
71
|
</div>
|
|
72
72
|
<div slot="footer">
|
|
73
|
-
<auro-button secondary
|
|
73
|
+
<auro-button secondary id="closeBasic">Close</auro-button>
|
|
74
74
|
</div>
|
|
75
75
|
</auro-dialog>
|
|
76
76
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
|
|
83
83
|
```html
|
|
84
84
|
<div>
|
|
85
|
-
<auro-button
|
|
85
|
+
<auro-button id="openBasic">Open default dialog</auro-button>
|
|
86
86
|
</div>
|
|
87
87
|
<auro-dialog id="defaultDialog">
|
|
88
88
|
<span slot="header">Default Dialog</span>
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
</ul>
|
|
99
99
|
</div>
|
|
100
100
|
<div slot="footer">
|
|
101
|
-
<auro-button secondary
|
|
101
|
+
<auro-button secondary id="closeBasic">Close</auro-button>
|
|
102
102
|
</div>
|
|
103
103
|
</auro-dialog>
|
|
104
104
|
```
|
|
@@ -115,11 +115,11 @@ The size attribute effects the `width` of the desktop dialog. Its `height` is di
|
|
|
115
115
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../../apiExamples/sizeOptions.html) -->
|
|
116
116
|
<!-- The below content is automatically added from ./../../apiExamples/sizeOptions.html -->
|
|
117
117
|
<div>
|
|
118
|
-
<auro-button
|
|
119
|
-
<auro-button
|
|
120
|
-
<auro-button
|
|
118
|
+
<auro-button id="openDefaultSize">Open default dialog</auro-button>
|
|
119
|
+
<auro-button id="openMediumSize">Open medium dialog</auro-button>
|
|
120
|
+
<auro-button id="openSmallSize">Open small dialog</auro-button>
|
|
121
121
|
</div>
|
|
122
|
-
<auro-dialog id="
|
|
122
|
+
<auro-dialog id="defaultSizeDialog">
|
|
123
123
|
<span slot="header">Default Dialog</span>
|
|
124
124
|
<div slot="content">
|
|
125
125
|
<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>
|
|
@@ -133,10 +133,10 @@ The size attribute effects the `width` of the desktop dialog. Its `height` is di
|
|
|
133
133
|
</ul>
|
|
134
134
|
</div>
|
|
135
135
|
<div slot="footer">
|
|
136
|
-
<auro-button secondary
|
|
136
|
+
<auro-button secondary id="closeDefaultSize">Close</auro-button>
|
|
137
137
|
</div>
|
|
138
138
|
</auro-dialog>
|
|
139
|
-
<auro-dialog id="
|
|
139
|
+
<auro-dialog id="mediumSizeDialog" md>
|
|
140
140
|
<span slot="header">Medium Dialog</span>
|
|
141
141
|
<div slot="content">
|
|
142
142
|
<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>
|
|
@@ -150,10 +150,10 @@ The size attribute effects the `width` of the desktop dialog. Its `height` is di
|
|
|
150
150
|
</ul>
|
|
151
151
|
</div>
|
|
152
152
|
<div slot="footer">
|
|
153
|
-
<auro-button secondary
|
|
153
|
+
<auro-button secondary id="closeMediumSize">Close</auro-button>
|
|
154
154
|
</div>
|
|
155
155
|
</auro-dialog>
|
|
156
|
-
<auro-dialog id="
|
|
156
|
+
<auro-dialog id="smallSizeDialog" sm>
|
|
157
157
|
<span slot="header">Small Dialog</span>
|
|
158
158
|
<div slot="content">
|
|
159
159
|
<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>
|
|
@@ -167,7 +167,7 @@ The size attribute effects the `width` of the desktop dialog. Its `height` is di
|
|
|
167
167
|
</ul>
|
|
168
168
|
</div>
|
|
169
169
|
<div slot="footer">
|
|
170
|
-
<auro-button secondary
|
|
170
|
+
<auro-button secondary id="closeSmallSize">Close</auro-button>
|
|
171
171
|
</div>
|
|
172
172
|
</auro-dialog>
|
|
173
173
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
@@ -179,11 +179,11 @@ The size attribute effects the `width` of the desktop dialog. Its `height` is di
|
|
|
179
179
|
|
|
180
180
|
```html
|
|
181
181
|
<div>
|
|
182
|
-
<auro-button
|
|
183
|
-
<auro-button
|
|
184
|
-
<auro-button
|
|
182
|
+
<auro-button id="openDefaultSize">Open default dialog</auro-button>
|
|
183
|
+
<auro-button id="openMediumSize">Open medium dialog</auro-button>
|
|
184
|
+
<auro-button id="openSmallSize">Open small dialog</auro-button>
|
|
185
185
|
</div>
|
|
186
|
-
<auro-dialog id="
|
|
186
|
+
<auro-dialog id="defaultSizeDialog">
|
|
187
187
|
<span slot="header">Default Dialog</span>
|
|
188
188
|
<div slot="content">
|
|
189
189
|
<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>
|
|
@@ -197,10 +197,10 @@ The size attribute effects the `width` of the desktop dialog. Its `height` is di
|
|
|
197
197
|
</ul>
|
|
198
198
|
</div>
|
|
199
199
|
<div slot="footer">
|
|
200
|
-
<auro-button secondary
|
|
200
|
+
<auro-button secondary id="closeDefaultSize">Close</auro-button>
|
|
201
201
|
</div>
|
|
202
202
|
</auro-dialog>
|
|
203
|
-
<auro-dialog id="
|
|
203
|
+
<auro-dialog id="mediumSizeDialog" md>
|
|
204
204
|
<span slot="header">Medium Dialog</span>
|
|
205
205
|
<div slot="content">
|
|
206
206
|
<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>
|
|
@@ -214,10 +214,10 @@ The size attribute effects the `width` of the desktop dialog. Its `height` is di
|
|
|
214
214
|
</ul>
|
|
215
215
|
</div>
|
|
216
216
|
<div slot="footer">
|
|
217
|
-
<auro-button secondary
|
|
217
|
+
<auro-button secondary id="closeMediumSize">Close</auro-button>
|
|
218
218
|
</div>
|
|
219
219
|
</auro-dialog>
|
|
220
|
-
<auro-dialog id="
|
|
220
|
+
<auro-dialog id="smallSizeDialog" sm>
|
|
221
221
|
<span slot="header">Small Dialog</span>
|
|
222
222
|
<div slot="content">
|
|
223
223
|
<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>
|
|
@@ -231,7 +231,7 @@ The size attribute effects the `width` of the desktop dialog. Its `height` is di
|
|
|
231
231
|
</ul>
|
|
232
232
|
</div>
|
|
233
233
|
<div slot="footer">
|
|
234
|
-
<auro-button secondary
|
|
234
|
+
<auro-button secondary id="closeSmallSize">Close</auro-button>
|
|
235
235
|
</div>
|
|
236
236
|
</auro-dialog>
|
|
237
237
|
```
|
|
@@ -248,9 +248,9 @@ When using this state, the modal dialog must include a button action to dismiss
|
|
|
248
248
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../../apiExamples/modal.html) -->
|
|
249
249
|
<!-- The below content is automatically added from ./../../apiExamples/modal.html -->
|
|
250
250
|
<div>
|
|
251
|
-
<auro-button
|
|
252
|
-
<auro-button
|
|
253
|
-
<auro-button
|
|
251
|
+
<auro-button id="openDefaultModal">Open default modal</auro-button>
|
|
252
|
+
<auro-button id="openMediumModal">Open medium modal</auro-button>
|
|
253
|
+
<auro-button id="openSmallModal">Open small modal</auro-button>
|
|
254
254
|
</div>
|
|
255
255
|
<auro-dialog id="defaultModalDialog" modal>
|
|
256
256
|
<span slot="header">Default Modal Dialog</span>
|
|
@@ -266,7 +266,7 @@ When using this state, the modal dialog must include a button action to dismiss
|
|
|
266
266
|
</ul>
|
|
267
267
|
</div>
|
|
268
268
|
<div slot="footer">
|
|
269
|
-
<auro-button
|
|
269
|
+
<auro-button id="closeDefaultModal">I understand
|
|
270
270
|
<auro-icon category="interface" name="chevron-right" emphasis onDark></auro-icon>
|
|
271
271
|
</auro-button>
|
|
272
272
|
</div>
|
|
@@ -285,7 +285,7 @@ When using this state, the modal dialog must include a button action to dismiss
|
|
|
285
285
|
</ul>
|
|
286
286
|
</div>
|
|
287
287
|
<div slot="footer">
|
|
288
|
-
<auro-button
|
|
288
|
+
<auro-button id="closeMediumModal">I understand
|
|
289
289
|
<auro-icon category="interface" name="chevron-right" emphasis onDark></auro-icon>
|
|
290
290
|
</auro-button>
|
|
291
291
|
</div>
|
|
@@ -304,7 +304,7 @@ When using this state, the modal dialog must include a button action to dismiss
|
|
|
304
304
|
</ul>
|
|
305
305
|
</div>
|
|
306
306
|
<div slot="footer">
|
|
307
|
-
<auro-button
|
|
307
|
+
<auro-button id="closeSmallModal">I understand
|
|
308
308
|
<auro-icon category="interface" name="chevron-right" emphasis onDark></auro-icon>
|
|
309
309
|
</auro-button>
|
|
310
310
|
</div>
|
|
@@ -318,9 +318,9 @@ When using this state, the modal dialog must include a button action to dismiss
|
|
|
318
318
|
|
|
319
319
|
```html
|
|
320
320
|
<div>
|
|
321
|
-
<auro-button
|
|
322
|
-
<auro-button
|
|
323
|
-
<auro-button
|
|
321
|
+
<auro-button id="openDefaultModal">Open default modal</auro-button>
|
|
322
|
+
<auro-button id="openMediumModal">Open medium modal</auro-button>
|
|
323
|
+
<auro-button id="openSmallModal">Open small modal</auro-button>
|
|
324
324
|
</div>
|
|
325
325
|
<auro-dialog id="defaultModalDialog" modal>
|
|
326
326
|
<span slot="header">Default Modal Dialog</span>
|
|
@@ -336,7 +336,7 @@ When using this state, the modal dialog must include a button action to dismiss
|
|
|
336
336
|
</ul>
|
|
337
337
|
</div>
|
|
338
338
|
<div slot="footer">
|
|
339
|
-
<auro-button
|
|
339
|
+
<auro-button id="closeDefaultModal">I understand
|
|
340
340
|
<auro-icon category="interface" name="chevron-right" emphasis onDark></auro-icon>
|
|
341
341
|
</auro-button>
|
|
342
342
|
</div>
|
|
@@ -355,7 +355,7 @@ When using this state, the modal dialog must include a button action to dismiss
|
|
|
355
355
|
</ul>
|
|
356
356
|
</div>
|
|
357
357
|
<div slot="footer">
|
|
358
|
-
<auro-button
|
|
358
|
+
<auro-button id="closeMediumModal">I understand
|
|
359
359
|
<auro-icon category="interface" name="chevron-right" emphasis onDark></auro-icon>
|
|
360
360
|
</auro-button>
|
|
361
361
|
</div>
|
|
@@ -374,7 +374,7 @@ When using this state, the modal dialog must include a button action to dismiss
|
|
|
374
374
|
</ul>
|
|
375
375
|
</div>
|
|
376
376
|
<div slot="footer">
|
|
377
|
-
<auro-button
|
|
377
|
+
<auro-button id="closeSmallModal">I understand
|
|
378
378
|
<auro-icon category="interface" name="chevron-right" emphasis onDark></auro-icon>
|
|
379
379
|
</auro-button>
|
|
380
380
|
</div>
|
|
@@ -393,8 +393,8 @@ The use of these combinations will set the first value to the dialog for a deskt
|
|
|
393
393
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../../apiExamples/decoupled.html) -->
|
|
394
394
|
<!-- The below content is automatically added from ./../../apiExamples/decoupled.html -->
|
|
395
395
|
<div>
|
|
396
|
-
<auro-button
|
|
397
|
-
<auro-button
|
|
396
|
+
<auro-button id="openSmLg">Open [sm lg] dialog</auro-button>
|
|
397
|
+
<auro-button id="openMdLg">Open [md lg] dialog</auro-button>
|
|
398
398
|
</div>
|
|
399
399
|
<auro-dialog id="smLgDialog" sm lg>
|
|
400
400
|
<span slot="header">Small Modal Dialog</span>
|
|
@@ -410,13 +410,13 @@ The use of these combinations will set the first value to the dialog for a deskt
|
|
|
410
410
|
</ul>
|
|
411
411
|
</div>
|
|
412
412
|
<div slot="footer">
|
|
413
|
-
<auro-button
|
|
413
|
+
<auro-button id="closeSmLg">
|
|
414
414
|
I understand
|
|
415
415
|
<auro-icon category="interface" name="check-lg" emphasis onDark></auro-icon>
|
|
416
416
|
</auro-button>
|
|
417
417
|
</div>
|
|
418
418
|
</auro-dialog>
|
|
419
|
-
<auro-dialog id="
|
|
419
|
+
<auro-dialog id="mdLgDialog" md lg>
|
|
420
420
|
<span slot="header">Medium Modal Dialog</span>
|
|
421
421
|
<div slot="content">
|
|
422
422
|
<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>
|
|
@@ -430,7 +430,7 @@ The use of these combinations will set the first value to the dialog for a deskt
|
|
|
430
430
|
</ul>
|
|
431
431
|
</div>
|
|
432
432
|
<div slot="footer">
|
|
433
|
-
<auro-button
|
|
433
|
+
<auro-button id="closeMdLg">
|
|
434
434
|
I understand
|
|
435
435
|
<auro-icon category="interface" name="check-lg" emphasis onDark></auro-icon>
|
|
436
436
|
</auro-button>
|
|
@@ -445,8 +445,8 @@ The use of these combinations will set the first value to the dialog for a deskt
|
|
|
445
445
|
|
|
446
446
|
```html
|
|
447
447
|
<div>
|
|
448
|
-
<auro-button
|
|
449
|
-
<auro-button
|
|
448
|
+
<auro-button id="openSmLg">Open [sm lg] dialog</auro-button>
|
|
449
|
+
<auro-button id="openMdLg">Open [md lg] dialog</auro-button>
|
|
450
450
|
</div>
|
|
451
451
|
<auro-dialog id="smLgDialog" sm lg>
|
|
452
452
|
<span slot="header">Small Modal Dialog</span>
|
|
@@ -462,13 +462,13 @@ The use of these combinations will set the first value to the dialog for a deskt
|
|
|
462
462
|
</ul>
|
|
463
463
|
</div>
|
|
464
464
|
<div slot="footer">
|
|
465
|
-
<auro-button
|
|
465
|
+
<auro-button id="closeSmLg">
|
|
466
466
|
I understand
|
|
467
467
|
<auro-icon category="interface" name="check-lg" emphasis onDark></auro-icon>
|
|
468
468
|
</auro-button>
|
|
469
469
|
</div>
|
|
470
470
|
</auro-dialog>
|
|
471
|
-
<auro-dialog id="
|
|
471
|
+
<auro-dialog id="mdLgDialog" md lg>
|
|
472
472
|
<span slot="header">Medium Modal Dialog</span>
|
|
473
473
|
<div slot="content">
|
|
474
474
|
<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>
|
|
@@ -482,7 +482,7 @@ The use of these combinations will set the first value to the dialog for a deskt
|
|
|
482
482
|
</ul>
|
|
483
483
|
</div>
|
|
484
484
|
<div slot="footer">
|
|
485
|
-
<auro-button
|
|
485
|
+
<auro-button id="closeMdLg">
|
|
486
486
|
I understand
|
|
487
487
|
<auro-icon category="interface" name="check-lg" emphasis onDark></auro-icon>
|
|
488
488
|
</auro-button>
|
|
@@ -500,7 +500,7 @@ This is a use case where there is a popover and combobox component inside the di
|
|
|
500
500
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../../apiExamples/popoverAndDropdown.html) -->
|
|
501
501
|
<!-- The below content is automatically added from ./../../apiExamples/popoverAndDropdown.html -->
|
|
502
502
|
<div>
|
|
503
|
-
<auro-button
|
|
503
|
+
<auro-button id="openPopAndDrop">Open dialog with popover</auro-button>
|
|
504
504
|
</div>
|
|
505
505
|
<auro-dialog id="popover-dialog" sm lg>
|
|
506
506
|
<span slot="header">Small Modal Dialog</span>
|
|
@@ -538,7 +538,7 @@ This is a use case where there is a popover and combobox component inside the di
|
|
|
538
538
|
</auro-combobox>
|
|
539
539
|
</div>
|
|
540
540
|
<div slot="footer">
|
|
541
|
-
<auro-button
|
|
541
|
+
<auro-button id="closePopAndDrop">
|
|
542
542
|
I understand
|
|
543
543
|
<auro-icon category="interface" name="check-lg" emphasis onDark></auro-icon>
|
|
544
544
|
</auro-button>
|
|
@@ -553,7 +553,7 @@ This is a use case where there is a popover and combobox component inside the di
|
|
|
553
553
|
|
|
554
554
|
```html
|
|
555
555
|
<div>
|
|
556
|
-
<auro-button
|
|
556
|
+
<auro-button id="openPopAndDrop">Open dialog with popover</auro-button>
|
|
557
557
|
</div>
|
|
558
558
|
<auro-dialog id="popover-dialog" sm lg>
|
|
559
559
|
<span slot="header">Small Modal Dialog</span>
|
|
@@ -591,7 +591,7 @@ This is a use case where there is a popover and combobox component inside the di
|
|
|
591
591
|
</auro-combobox>
|
|
592
592
|
</div>
|
|
593
593
|
<div slot="footer">
|
|
594
|
-
<auro-button
|
|
594
|
+
<auro-button id="closePopAndDrop">
|
|
595
595
|
I understand
|
|
596
596
|
<auro-icon category="interface" name="check-lg" emphasis onDark></auro-icon>
|
|
597
597
|
</auro-button>
|
|
@@ -627,7 +627,7 @@ Within the scope of the auro-dialog there is `aria-labelledby="dialog-header"`.
|
|
|
627
627
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../../apiExamples/accessibility.html) -->
|
|
628
628
|
<!-- The below content is automatically added from ./../../apiExamples/accessibility.html -->
|
|
629
629
|
<div>
|
|
630
|
-
<auro-button
|
|
630
|
+
<auro-button id="openAccessibility">Unformatted Medium Dialog</auro-button>
|
|
631
631
|
</div>
|
|
632
632
|
<auro-dialog id="unformattedMdDialog" unformatted md lg ondark>
|
|
633
633
|
<span slot="content">
|
|
@@ -647,7 +647,7 @@ Within the scope of the auro-dialog there is `aria-labelledby="dialog-header"`.
|
|
|
647
647
|
|
|
648
648
|
```html
|
|
649
649
|
<div>
|
|
650
|
-
<auro-button
|
|
650
|
+
<auro-button id="openAccessibility">Unformatted Medium Dialog</auro-button>
|
|
651
651
|
</div>
|
|
652
652
|
<auro-dialog id="unformattedMdDialog" unformatted md lg ondark>
|
|
653
653
|
<span slot="content">
|
|
@@ -670,7 +670,7 @@ When using the dialog with the `unformatted` attribute, some may want to adjust
|
|
|
670
670
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../../apiExamples/editCloseButton.html) -->
|
|
671
671
|
<!-- The below content is automatically added from ./../../apiExamples/editCloseButton.html -->
|
|
672
672
|
<div>
|
|
673
|
-
<auro-button
|
|
673
|
+
<auro-button id="openEditDialog">Unformatted w/custom close button</auro-button>
|
|
674
674
|
</div>
|
|
675
675
|
<style>
|
|
676
676
|
.example::part(close-button) {
|
|
@@ -697,7 +697,7 @@ When using the dialog with the `unformatted` attribute, some may want to adjust
|
|
|
697
697
|
|
|
698
698
|
```html
|
|
699
699
|
<div>
|
|
700
|
-
<auro-button
|
|
700
|
+
<auro-button id="openEditDialog">Unformatted w/custom close button</auro-button>
|
|
701
701
|
</div>
|
|
702
702
|
<style>
|
|
703
703
|
.example::part(close-button) {
|