@aurodesignsystem-dev/auro-formkit 0.0.0-pr1451.17 → 0.0.0-pr1451.19
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/components/checkbox/demo/api.min.js +1 -1
- package/components/checkbox/demo/index.min.js +1 -1
- package/components/checkbox/dist/index.js +1 -1
- package/components/checkbox/dist/registered.js +1 -1
- package/components/combobox/demo/api.min.js +3 -3
- package/components/combobox/demo/customize.min.js +3 -3
- package/components/combobox/demo/getting-started.min.js +3 -3
- package/components/combobox/demo/index.min.js +3 -3
- package/components/combobox/dist/index.js +3 -3
- package/components/combobox/dist/registered.js +3 -3
- package/components/counter/README.md +21 -47
- package/components/counter/demo/accessibility.html +49 -0
- package/components/counter/demo/accessibility.md +34 -0
- package/components/counter/demo/api.html +12 -20
- package/components/counter/demo/api.md +0 -1250
- package/components/counter/demo/api.min.js +2 -2
- package/components/counter/demo/customize.html +53 -0
- package/components/counter/demo/customize.md +650 -0
- package/components/counter/demo/demo-support.js +60 -0
- package/components/counter/demo/design.html +52 -0
- package/components/counter/demo/design.md +192 -0
- package/components/counter/demo/getting-started.html +54 -0
- package/components/counter/demo/getting-started.md +332 -0
- package/components/counter/demo/index.html +14 -19
- package/components/counter/demo/index.md +113 -47
- package/components/counter/demo/index.min.js +2 -2
- package/components/counter/demo/keyboard-behavior.html +49 -0
- package/components/counter/demo/keyboardBehavior.html +7 -39
- package/components/counter/demo/layout.md +10 -0
- package/components/counter/demo/readme.html +11 -15
- package/components/counter/demo/readme.md +21 -47
- package/components/counter/demo/styles.css +974 -0
- package/components/counter/demo/voiceover.html +51 -0
- package/components/counter/demo/voiceover.md +80 -0
- package/components/counter/dist/index.js +2 -2
- package/components/counter/dist/registered.js +2 -2
- package/components/datepicker/demo/api.min.js +3 -3
- package/components/datepicker/demo/index.min.js +3 -3
- package/components/datepicker/dist/index.js +3 -3
- package/components/datepicker/dist/registered.js +3 -3
- package/components/dropdown/demo/api.min.js +1 -1
- package/components/dropdown/demo/index.min.js +1 -1
- package/components/dropdown/dist/index.js +1 -1
- package/components/dropdown/dist/registered.js +1 -1
- package/components/form/demo/api.min.js +13 -13
- package/components/form/demo/index.min.js +13 -13
- package/components/input/demo/api.min.js +1 -1
- package/components/input/demo/customize.min.js +1 -1
- package/components/input/demo/getting-started.min.js +1 -1
- package/components/input/demo/index.min.js +1 -1
- package/components/input/dist/index.js +1 -1
- package/components/input/dist/registered.js +1 -1
- package/components/radio/demo/api.min.js +1 -1
- package/components/radio/demo/index.min.js +1 -1
- package/components/radio/dist/index.js +1 -1
- package/components/radio/dist/registered.js +1 -1
- package/components/select/demo/customize.min.js +2 -2
- package/components/select/demo/getting-started.min.js +2 -2
- package/components/select/demo/index.min.js +2 -2
- package/components/select/dist/index.js +2 -2
- package/components/select/dist/registered.js +2 -2
- package/package.json +1 -1
|
@@ -1690,7 +1690,7 @@ class AuroHelpText extends i$2 {
|
|
|
1690
1690
|
}
|
|
1691
1691
|
}
|
|
1692
1692
|
|
|
1693
|
-
var formkitVersion = '
|
|
1693
|
+
var formkitVersion = '202605042219';
|
|
1694
1694
|
|
|
1695
1695
|
// Copyright (c) 2026 Alaska Airlines. All rights reserved. Licensed under the Apache-2.0 license
|
|
1696
1696
|
// See LICENSE in the project root for license information.
|
|
@@ -1682,7 +1682,7 @@ class AuroHelpText extends i$2 {
|
|
|
1682
1682
|
}
|
|
1683
1683
|
}
|
|
1684
1684
|
|
|
1685
|
-
var formkitVersion = '
|
|
1685
|
+
var formkitVersion = '202605042219';
|
|
1686
1686
|
|
|
1687
1687
|
// Copyright (c) 2026 Alaska Airlines. All rights reserved. Licensed under the Apache-2.0 license
|
|
1688
1688
|
// See LICENSE in the project root for license information.
|
|
@@ -1635,7 +1635,7 @@ class AuroHelpText extends LitElement {
|
|
|
1635
1635
|
}
|
|
1636
1636
|
}
|
|
1637
1637
|
|
|
1638
|
-
var formkitVersion = '
|
|
1638
|
+
var formkitVersion = '202605042219';
|
|
1639
1639
|
|
|
1640
1640
|
// Copyright (c) 2026 Alaska Airlines. All rights reserved. Licensed under the Apache-2.0 license
|
|
1641
1641
|
// See LICENSE in the project root for license information.
|
|
@@ -1635,7 +1635,7 @@ class AuroHelpText extends LitElement {
|
|
|
1635
1635
|
}
|
|
1636
1636
|
}
|
|
1637
1637
|
|
|
1638
|
-
var formkitVersion = '
|
|
1638
|
+
var formkitVersion = '202605042219';
|
|
1639
1639
|
|
|
1640
1640
|
// Copyright (c) 2026 Alaska Airlines. All rights reserved. Licensed under the Apache-2.0 license
|
|
1641
1641
|
// See LICENSE in the project root for license information.
|
|
@@ -5229,7 +5229,7 @@ let AuroHelpText$2 = class AuroHelpText extends i$4 {
|
|
|
5229
5229
|
}
|
|
5230
5230
|
};
|
|
5231
5231
|
|
|
5232
|
-
var formkitVersion$2 = '
|
|
5232
|
+
var formkitVersion$2 = '202605042219';
|
|
5233
5233
|
|
|
5234
5234
|
let AuroElement$2 = class AuroElement extends i$4 {
|
|
5235
5235
|
static get properties() {
|
|
@@ -12981,7 +12981,7 @@ let AuroHelpText$1 = class AuroHelpText extends i$4 {
|
|
|
12981
12981
|
}
|
|
12982
12982
|
};
|
|
12983
12983
|
|
|
12984
|
-
var formkitVersion$1 = '
|
|
12984
|
+
var formkitVersion$1 = '202605042219';
|
|
12985
12985
|
|
|
12986
12986
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
12987
12987
|
// See LICENSE in the project root for license information.
|
|
@@ -14046,7 +14046,7 @@ class AuroBibtemplate extends i$4 {
|
|
|
14046
14046
|
}
|
|
14047
14047
|
}
|
|
14048
14048
|
|
|
14049
|
-
var formkitVersion = '
|
|
14049
|
+
var formkitVersion = '202605042219';
|
|
14050
14050
|
|
|
14051
14051
|
var styleCss$3 = i$7`.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock{display:block}.util_displayFlex{display:flex}.util_displayHidden{display:none}.util_displayHiddenVisually{position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}:host{display:block;text-align:left}:host [auro-dropdown]{--ds-auro-dropdown-trigger-background-color: transparent}:host #inputInBib::part(wrapper){box-shadow:none}:host #inputInBib::part(accent-left){display:none}:host([layout*=classic]) [auro-input]{width:100%}:host([layout*=classic]) [auro-input]::part(helpText){display:none}:host([layout*=classic]) #slotHolder{display:none}`;
|
|
14052
14052
|
|
|
@@ -5140,7 +5140,7 @@ let AuroHelpText$2 = class AuroHelpText extends i$4 {
|
|
|
5140
5140
|
}
|
|
5141
5141
|
};
|
|
5142
5142
|
|
|
5143
|
-
var formkitVersion$2 = '
|
|
5143
|
+
var formkitVersion$2 = '202605042219';
|
|
5144
5144
|
|
|
5145
5145
|
let AuroElement$2 = class AuroElement extends i$4 {
|
|
5146
5146
|
static get properties() {
|
|
@@ -12892,7 +12892,7 @@ let AuroHelpText$1 = class AuroHelpText extends i$4 {
|
|
|
12892
12892
|
}
|
|
12893
12893
|
};
|
|
12894
12894
|
|
|
12895
|
-
var formkitVersion$1 = '
|
|
12895
|
+
var formkitVersion$1 = '202605042219';
|
|
12896
12896
|
|
|
12897
12897
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
12898
12898
|
// See LICENSE in the project root for license information.
|
|
@@ -13957,7 +13957,7 @@ class AuroBibtemplate extends i$4 {
|
|
|
13957
13957
|
}
|
|
13958
13958
|
}
|
|
13959
13959
|
|
|
13960
|
-
var formkitVersion = '
|
|
13960
|
+
var formkitVersion = '202605042219';
|
|
13961
13961
|
|
|
13962
13962
|
var styleCss$3 = i$7`.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock{display:block}.util_displayFlex{display:flex}.util_displayHidden{display:none}.util_displayHiddenVisually{position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}:host{display:block;text-align:left}:host [auro-dropdown]{--ds-auro-dropdown-trigger-background-color: transparent}:host #inputInBib::part(wrapper){box-shadow:none}:host #inputInBib::part(accent-left){display:none}:host([layout*=classic]) [auro-input]{width:100%}:host([layout*=classic]) [auro-input]::part(helpText){display:none}:host([layout*=classic]) #slotHolder{display:none}`;
|
|
13963
13963
|
|
|
@@ -5140,7 +5140,7 @@ let AuroHelpText$2 = class AuroHelpText extends i$4 {
|
|
|
5140
5140
|
}
|
|
5141
5141
|
};
|
|
5142
5142
|
|
|
5143
|
-
var formkitVersion$2 = '
|
|
5143
|
+
var formkitVersion$2 = '202605042219';
|
|
5144
5144
|
|
|
5145
5145
|
let AuroElement$2 = class AuroElement extends i$4 {
|
|
5146
5146
|
static get properties() {
|
|
@@ -12892,7 +12892,7 @@ let AuroHelpText$1 = class AuroHelpText extends i$4 {
|
|
|
12892
12892
|
}
|
|
12893
12893
|
};
|
|
12894
12894
|
|
|
12895
|
-
var formkitVersion$1 = '
|
|
12895
|
+
var formkitVersion$1 = '202605042219';
|
|
12896
12896
|
|
|
12897
12897
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
12898
12898
|
// See LICENSE in the project root for license information.
|
|
@@ -13957,7 +13957,7 @@ class AuroBibtemplate extends i$4 {
|
|
|
13957
13957
|
}
|
|
13958
13958
|
}
|
|
13959
13959
|
|
|
13960
|
-
var formkitVersion = '
|
|
13960
|
+
var formkitVersion = '202605042219';
|
|
13961
13961
|
|
|
13962
13962
|
var styleCss$3 = i$7`.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock{display:block}.util_displayFlex{display:flex}.util_displayHidden{display:none}.util_displayHiddenVisually{position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}:host{display:block;text-align:left}:host [auro-dropdown]{--ds-auro-dropdown-trigger-background-color: transparent}:host #inputInBib::part(wrapper){box-shadow:none}:host #inputInBib::part(accent-left){display:none}:host([layout*=classic]) [auro-input]{width:100%}:host([layout*=classic]) [auro-input]::part(helpText){display:none}:host([layout*=classic]) #slotHolder{display:none}`;
|
|
13963
13963
|
|
|
@@ -5155,7 +5155,7 @@ let AuroHelpText$2 = class AuroHelpText extends i$4 {
|
|
|
5155
5155
|
}
|
|
5156
5156
|
};
|
|
5157
5157
|
|
|
5158
|
-
var formkitVersion$2 = '
|
|
5158
|
+
var formkitVersion$2 = '202605042219';
|
|
5159
5159
|
|
|
5160
5160
|
let AuroElement$2 = class AuroElement extends i$4 {
|
|
5161
5161
|
static get properties() {
|
|
@@ -12907,7 +12907,7 @@ let AuroHelpText$1 = class AuroHelpText extends i$4 {
|
|
|
12907
12907
|
}
|
|
12908
12908
|
};
|
|
12909
12909
|
|
|
12910
|
-
var formkitVersion$1 = '
|
|
12910
|
+
var formkitVersion$1 = '202605042219';
|
|
12911
12911
|
|
|
12912
12912
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
12913
12913
|
// See LICENSE in the project root for license information.
|
|
@@ -13972,7 +13972,7 @@ class AuroBibtemplate extends i$4 {
|
|
|
13972
13972
|
}
|
|
13973
13973
|
}
|
|
13974
13974
|
|
|
13975
|
-
var formkitVersion = '
|
|
13975
|
+
var formkitVersion = '202605042219';
|
|
13976
13976
|
|
|
13977
13977
|
var styleCss$3 = i$7`.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock{display:block}.util_displayFlex{display:flex}.util_displayHidden{display:none}.util_displayHiddenVisually{position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}:host{display:block;text-align:left}:host [auro-dropdown]{--ds-auro-dropdown-trigger-background-color: transparent}:host #inputInBib::part(wrapper){box-shadow:none}:host #inputInBib::part(accent-left){display:none}:host([layout*=classic]) [auro-input]{width:100%}:host([layout*=classic]) [auro-input]::part(helpText){display:none}:host([layout*=classic]) #slotHolder{display:none}`;
|
|
13978
13978
|
|
|
@@ -5073,7 +5073,7 @@ let AuroHelpText$2 = class AuroHelpText extends LitElement {
|
|
|
5073
5073
|
}
|
|
5074
5074
|
};
|
|
5075
5075
|
|
|
5076
|
-
var formkitVersion$2 = '
|
|
5076
|
+
var formkitVersion$2 = '202605042219';
|
|
5077
5077
|
|
|
5078
5078
|
let AuroElement$2 = class AuroElement extends LitElement {
|
|
5079
5079
|
static get properties() {
|
|
@@ -12818,7 +12818,7 @@ let AuroHelpText$1 = class AuroHelpText extends LitElement {
|
|
|
12818
12818
|
}
|
|
12819
12819
|
};
|
|
12820
12820
|
|
|
12821
|
-
var formkitVersion$1 = '
|
|
12821
|
+
var formkitVersion$1 = '202605042219';
|
|
12822
12822
|
|
|
12823
12823
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
12824
12824
|
// See LICENSE in the project root for license information.
|
|
@@ -13883,7 +13883,7 @@ class AuroBibtemplate extends LitElement {
|
|
|
13883
13883
|
}
|
|
13884
13884
|
}
|
|
13885
13885
|
|
|
13886
|
-
var formkitVersion = '
|
|
13886
|
+
var formkitVersion = '202605042219';
|
|
13887
13887
|
|
|
13888
13888
|
var styleCss$1 = css`.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock{display:block}.util_displayFlex{display:flex}.util_displayHidden{display:none}.util_displayHiddenVisually{position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}:host{display:block;text-align:left}:host [auro-dropdown]{--ds-auro-dropdown-trigger-background-color: transparent}:host #inputInBib::part(wrapper){box-shadow:none}:host #inputInBib::part(accent-left){display:none}:host([layout*=classic]) [auro-input]{width:100%}:host([layout*=classic]) [auro-input]::part(helpText){display:none}:host([layout*=classic]) #slotHolder{display:none}`;
|
|
13889
13889
|
|
|
@@ -5073,7 +5073,7 @@ let AuroHelpText$2 = class AuroHelpText extends LitElement {
|
|
|
5073
5073
|
}
|
|
5074
5074
|
};
|
|
5075
5075
|
|
|
5076
|
-
var formkitVersion$2 = '
|
|
5076
|
+
var formkitVersion$2 = '202605042219';
|
|
5077
5077
|
|
|
5078
5078
|
let AuroElement$2 = class AuroElement extends LitElement {
|
|
5079
5079
|
static get properties() {
|
|
@@ -12818,7 +12818,7 @@ let AuroHelpText$1 = class AuroHelpText extends LitElement {
|
|
|
12818
12818
|
}
|
|
12819
12819
|
};
|
|
12820
12820
|
|
|
12821
|
-
var formkitVersion$1 = '
|
|
12821
|
+
var formkitVersion$1 = '202605042219';
|
|
12822
12822
|
|
|
12823
12823
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
12824
12824
|
// See LICENSE in the project root for license information.
|
|
@@ -13883,7 +13883,7 @@ class AuroBibtemplate extends LitElement {
|
|
|
13883
13883
|
}
|
|
13884
13884
|
}
|
|
13885
13885
|
|
|
13886
|
-
var formkitVersion = '
|
|
13886
|
+
var formkitVersion = '202605042219';
|
|
13887
13887
|
|
|
13888
13888
|
var styleCss$1 = css`.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock{display:block}.util_displayFlex{display:flex}.util_displayHidden{display:none}.util_displayHiddenVisually{position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}:host{display:block;text-align:left}:host [auro-dropdown]{--ds-auro-dropdown-trigger-background-color: transparent}:host #inputInBib::part(wrapper){box-shadow:none}:host #inputInBib::part(accent-left){display:none}:host([layout*=classic]) [auro-input]{width:100%}:host([layout*=classic]) [auro-input]::part(helpText){display:none}:host([layout*=classic]) #slotHolder{display:none}`;
|
|
13889
13889
|
|
|
@@ -21,7 +21,7 @@ The following sections are editable by making changes to the following files:
|
|
|
21
21
|
|
|
22
22
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./docs/partials/description.md) -->
|
|
23
23
|
<!-- The below content is automatically added from ./docs/partials/description.md -->
|
|
24
|
-
The
|
|
24
|
+
The <code>auro-counter</code> component is a ui element that enables a way to increment or decrement a single digit value. Common use case is inside the <code>auro-counter-group</code> to facilitate a collection of counters to add passenger types to a flight.
|
|
25
25
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
26
26
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./docs/partials/readmeAddlInfo.md) -->
|
|
27
27
|
<!-- The below content is automatically added from ./docs/partials/readmeAddlInfo.md -->
|
|
@@ -84,11 +84,9 @@ To only develop a single component, use the `--filter` flag:
|
|
|
84
84
|
<pre class="language-shell"><code class="language-shell">npx turbo dev --filter=@aurodesignsystem/auro-input</code></pre>
|
|
85
85
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
86
86
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./docs/partials/customRegistration.md) -->
|
|
87
|
-
<!-- The below content is automatically added from ./docs/partials/customRegistration.md -->
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
There are two key parts to every Auro component: the <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes">class</a> and the custom element definition. The class defines the component’s behavior, while the custom element registers it under a specific name so it can be used in HTML.
|
|
87
|
+
<!-- The below content is automatically added from ./docs/partials/customRegistration.md -->
|
|
88
|
+
<auro-header level="4">Custom Component Registration for Version Management</auro-header>
|
|
89
|
+
There are two key parts to every Auro component: the <auro-hyperlink href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes">class</auro-hyperlink> and the custom element definition. The class defines the component's behavior, while the custom element registers it under a specific name so it can be used in HTML.
|
|
92
90
|
|
|
93
91
|
You can do this by importing only the component class and using the `register(name)` method with a unique name:
|
|
94
92
|
|
|
@@ -99,45 +97,21 @@ import { AuroCounter, AuroCounterGroup } from '@aurodesignsystem/auro-formkit/au
|
|
|
99
97
|
AuroCounter.register('custom-counter');
|
|
100
98
|
AuroCounterGroup.register('custom-counter-group');</code></pre>
|
|
101
99
|
|
|
102
|
-
This will create a new custom element
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
<
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
<span slot="trigger">See code</span>
|
|
120
|
-
|
|
121
|
-
<pre class="language-html"><code class="language-html"> <custom-counter-group>
|
|
122
|
-
<div slot="bib.fullscreen.headline">Passengers</div>
|
|
123
|
-
<div slot="label">Passengers</div>
|
|
124
|
-
<custom-counter>
|
|
125
|
-
Adults
|
|
126
|
-
<span slot="description">18 years or older</span>
|
|
127
|
-
</custom-counter>
|
|
128
|
-
<custom-counter>
|
|
129
|
-
Children
|
|
130
|
-
<span slot="description">2-17 years</span>
|
|
131
|
-
</custom-counter>
|
|
132
|
-
</custom-counter-group>
|
|
133
|
-
|
|
134
|
-
```html
|
|
135
|
-
<custom-checkbox-group>
|
|
136
|
-
<span slot="legend">Form label goes here</span>
|
|
137
|
-
<custom-checkbox value="value1" name="custom" id="checkbox-custom1">Custom checkbox option</custom-checkbox>
|
|
138
|
-
<custom-checkbox value="value2" name="custom" id="checkbox-custom2" checked>Custom checkbox option</custom-checkbox>
|
|
139
|
-
<custom-checkbox value="value3" name="custom" id="checkbox-custom3">Custom checkbox option</custom-checkbox>
|
|
140
|
-
<custom-checkbox value="value4" name="custom" id="checkbox-custom4">Custom checkbox option</custom-checkbox>
|
|
141
|
-
</custom-checkbox-group></code></pre>
|
|
142
|
-
</auro-accordion>
|
|
100
|
+
This will create a new custom element <code><custom-counter></code> and <code><custom-counter-group></code> that behaves exactly like <code><auro-counter></code> and <code><auro-counter-group></code>, allowing both to coexist on the same page without interfering with each other.
|
|
101
|
+
|
|
102
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/custom.html) -->
|
|
103
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/custom.html -->
|
|
104
|
+
<pre class="language-html"><code class="language-html"><custom-counter-group>
|
|
105
|
+
<div slot="bib.fullscreen.headline">Passengers</div>
|
|
106
|
+
<div slot="label">Passengers</div>
|
|
107
|
+
<custom-counter>
|
|
108
|
+
Adults
|
|
109
|
+
<span slot="description">18 years or older</span>
|
|
110
|
+
</custom-counter>
|
|
111
|
+
<custom-counter>
|
|
112
|
+
Children
|
|
113
|
+
<span slot="description">2-17 years</span>
|
|
114
|
+
</custom-counter>
|
|
115
|
+
</custom-counter-group></code></pre>
|
|
116
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
143
117
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
3
|
+
See LICENSE in the project root for license information.
|
|
4
|
+
|
|
5
|
+
HTML in this document is standardized and NOT to be edited.
|
|
6
|
+
All demo code should be added/edited in ./demo/accessibility.md
|
|
7
|
+
|
|
8
|
+
With the exception of adding custom elements if needed for the demo.
|
|
9
|
+
|
|
10
|
+
----------------------- DO NOT EDIT -----------------------------
|
|
11
|
+
|
|
12
|
+
-->
|
|
13
|
+
|
|
14
|
+
<!DOCTYPE html>
|
|
15
|
+
<html lang="en">
|
|
16
|
+
<head>
|
|
17
|
+
<meta charset="UTF-8" />
|
|
18
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
19
|
+
<title>Auro Web Component Demo | auro-counter | Accessibility</title>
|
|
20
|
+
|
|
21
|
+
<!-- highlight.js Stylesheet -->
|
|
22
|
+
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.9.0/build/styles/github.min.css"/>
|
|
23
|
+
|
|
24
|
+
<!-- Legacy reference is still needed to support auro-counter's use of legacy token values at this time -->
|
|
25
|
+
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@latest/dist/legacy/auro-classic/CSSCustomProperties.css"/>
|
|
26
|
+
|
|
27
|
+
<!-- Design Token Alaska Theme -->
|
|
28
|
+
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@latest/dist/themes/alaska/CSSCustomProperties--alaska.min.css"/>
|
|
29
|
+
|
|
30
|
+
<!-- Webcore Stylesheet Alaska Theme -->
|
|
31
|
+
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@latest/dist/bundled/themes/alaska.global.min.css" />
|
|
32
|
+
|
|
33
|
+
<!-- Demo Specific Styles -->
|
|
34
|
+
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@latest/dist/demoWrapper.css" />
|
|
35
|
+
<link rel="stylesheet" type="text/css" href="./styles.css" />
|
|
36
|
+
</head>
|
|
37
|
+
<body class="auro-markdown">
|
|
38
|
+
<main></main>
|
|
39
|
+
|
|
40
|
+
<script type="module">
|
|
41
|
+
import { renderPage } from './demo-support.js';
|
|
42
|
+
await renderPage('./accessibility.md');
|
|
43
|
+
</script>
|
|
44
|
+
|
|
45
|
+
<!-- If additional elements are needed for the demo, add them here. -->
|
|
46
|
+
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-header@latest/+esm" type="module"></script>
|
|
47
|
+
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-icon@latest/+esm" type="module"></script>
|
|
48
|
+
</body>
|
|
49
|
+
</html>
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
<auro-header level="1" id="overview">Counter - Accessibility</auro-header>
|
|
2
|
+
<div class="contentWrapper">
|
|
3
|
+
<div class="mainContent">
|
|
4
|
+
<div class="scrollWrapper">
|
|
5
|
+
<section>
|
|
6
|
+
<auro-header level="2" id="ariaRoles">ARIA Roles and Attributes</auro-header>
|
|
7
|
+
<p>The <code>auro-counter</code> component uses the <code>spinbutton</code> role to convey its purpose to assistive technologies. Key ARIA attributes include:</p>
|
|
8
|
+
<ul>
|
|
9
|
+
<li><code>role="spinbutton"</code> — Identifies the element as a numeric spinner control.</li>
|
|
10
|
+
<li><code>aria-valuenow</code> — Reflects the current counter value.</li>
|
|
11
|
+
<li><code>aria-valuemin</code> — Reflects the minimum allowed value.</li>
|
|
12
|
+
<li><code>aria-valuemax</code> — Reflects the maximum allowed value.</li>
|
|
13
|
+
<li><code>aria-label</code> — Derived from the default slot content (counter label).</li>
|
|
14
|
+
</ul>
|
|
15
|
+
</section>
|
|
16
|
+
<section>
|
|
17
|
+
<auro-header level="2" id="accessibleLabels">Accessible Labels</auro-header>
|
|
18
|
+
<p>The increment and decrement buttons include accessible labels. Custom labels can be provided using the <code>ariaLabel.minus</code> and <code>ariaLabel.plus</code> slots to override the default button descriptions.</p>
|
|
19
|
+
</section>
|
|
20
|
+
<section>
|
|
21
|
+
<auro-header level="2" id="screenReader">Screen Reader Announcements</auro-header>
|
|
22
|
+
<p>When a user interacts with the counter, the updated value is announced via the <code>aria-valuenow</code> attribute. Screen readers will announce the counter label and current value when the element receives focus.</p>
|
|
23
|
+
</section>
|
|
24
|
+
<section>
|
|
25
|
+
<auro-header level="2" id="disabledState">Disabled State</auro-header>
|
|
26
|
+
<p>When a counter is disabled, the <code>aria-disabled</code> attribute is set, and the increment/decrement buttons become inoperable. Screen readers will announce the disabled state to the user.</p>
|
|
27
|
+
</section>
|
|
28
|
+
<section>
|
|
29
|
+
<auro-header level="2" id="dropdownA11y">Dropdown Accessibility</auro-header>
|
|
30
|
+
<p>When used as a dropdown (<code>isDropdown</code>), the counter group inherits dropdown accessibility patterns. The <code>ariaLabel.bib.close</code> slot provides an accessible label for the close button in fullscreen mode.</p>
|
|
31
|
+
</section>
|
|
32
|
+
</div>
|
|
33
|
+
</div>
|
|
34
|
+
</div>
|
|
@@ -18,45 +18,37 @@
|
|
|
18
18
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
19
19
|
<title>Auro Web Component Demo | auro-counter</title>
|
|
20
20
|
|
|
21
|
-
<!--
|
|
22
|
-
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/
|
|
21
|
+
<!-- highlight.js Stylesheet -->
|
|
22
|
+
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.9.0/build/styles/github.min.css"/>
|
|
23
23
|
|
|
24
24
|
<!-- Legacy reference is still needed to support auro-counter's use of legacy token values at this time -->
|
|
25
25
|
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@latest/dist/legacy/auro-classic/CSSCustomProperties.css"/>
|
|
26
26
|
|
|
27
27
|
<!-- Design Token Alaska Theme -->
|
|
28
28
|
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@latest/dist/themes/alaska/CSSCustomProperties--alaska.min.css"/>
|
|
29
|
-
|
|
29
|
+
|
|
30
30
|
<!-- Webcore Stylesheet Alaska Theme -->
|
|
31
31
|
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@latest/dist/bundled/themes/alaska.global.min.css" />
|
|
32
|
-
|
|
32
|
+
|
|
33
33
|
<!-- Demo Specific Styles -->
|
|
34
34
|
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@latest/dist/demoWrapper.css" />
|
|
35
|
-
<link rel="stylesheet" type="text/css" href="
|
|
36
|
-
</head>
|
|
35
|
+
<link rel="stylesheet" type="text/css" href="./styles.css" />
|
|
36
|
+
</head>
|
|
37
37
|
<body class="auro-markdown">
|
|
38
38
|
<main></main>
|
|
39
39
|
|
|
40
40
|
<script type="module">
|
|
41
|
-
import '
|
|
42
|
-
import '
|
|
43
|
-
|
|
44
|
-
.then((response) => response.text())
|
|
45
|
-
.then((text) => {
|
|
46
|
-
const rawHtml = marked.parse(text);
|
|
47
|
-
document.querySelector('main').innerHTML = rawHtml;
|
|
48
|
-
Prism.highlightAll();
|
|
49
|
-
})
|
|
50
|
-
</script>
|
|
51
|
-
<script type="module">
|
|
52
|
-
import { initExamples } from "./api.min.js";
|
|
53
|
-
|
|
41
|
+
import { renderPage } from './demo-support.js';
|
|
42
|
+
import { initExamples } from './api.min.js';
|
|
43
|
+
await renderPage('./api.md');
|
|
54
44
|
initExamples();
|
|
55
45
|
</script>
|
|
56
|
-
|
|
46
|
+
|
|
57
47
|
<!-- If additional elements are needed for the demo, add them here. -->
|
|
58
48
|
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-accordion@latest/+esm" type="module"></script>
|
|
49
|
+
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-header@latest/+esm" type="module"></script>
|
|
59
50
|
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-button@latest/+esm" type="module"></script>
|
|
51
|
+
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-icon@latest/+esm" type="module"></script>
|
|
60
52
|
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-dialog@latest/+esm" type="module"></script>
|
|
61
53
|
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-drawer@latest/+esm" type="module"></script>
|
|
62
54
|
</body>
|