@aurodesignsystem-dev/auro-formkit 0.0.0-pr1451.2 → 0.0.0-pr1451.21
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/README.md +11 -27
- package/components/checkbox/demo/accessibility.html +49 -0
- package/components/checkbox/demo/accessibility.md +44 -0
- package/components/checkbox/demo/api.html +17 -25
- package/components/checkbox/demo/api.md +40 -416
- package/components/checkbox/demo/api.min.js +5 -4
- package/components/checkbox/demo/customize.html +52 -0
- package/components/checkbox/demo/customize.md +361 -0
- package/components/checkbox/demo/demo-support.js +60 -0
- package/components/checkbox/demo/design.html +52 -0
- package/components/checkbox/demo/design.md +149 -0
- package/components/checkbox/demo/getting-started.html +52 -0
- package/components/checkbox/demo/getting-started.md +261 -0
- package/components/checkbox/demo/index.html +17 -20
- package/components/checkbox/demo/index.md +144 -29
- package/components/checkbox/demo/index.min.js +5 -4
- package/components/checkbox/demo/keyboard-behavior.html +49 -0
- package/components/checkbox/demo/keyboard-behavior.md +0 -3
- package/components/checkbox/demo/layout.md +30 -0
- package/components/checkbox/demo/readme.html +10 -17
- package/components/checkbox/demo/readme.md +11 -27
- package/components/checkbox/demo/styles.css +974 -0
- package/components/checkbox/demo/voiceover.html +49 -0
- package/components/checkbox/demo/voiceover.md +37 -0
- package/components/checkbox/dist/auro-checkbox.d.ts +1 -0
- package/components/checkbox/dist/index.js +5 -4
- package/components/checkbox/dist/registered.js +5 -4
- package/components/combobox/README.md +8 -29
- package/components/combobox/demo/accessibility.html +2 -20
- package/components/combobox/demo/accessibility.md +1 -1
- package/components/combobox/demo/api.html +5 -52
- package/components/combobox/demo/api.md +53 -2261
- package/components/combobox/demo/api.min.js +15 -12
- package/components/combobox/demo/customize.html +53 -0
- package/components/combobox/demo/customize.js +24 -0
- package/components/combobox/demo/customize.md +1249 -0
- package/components/combobox/demo/customize.min.js +18132 -0
- package/components/combobox/demo/demo-support.js +60 -0
- package/components/combobox/demo/design.html +2 -43
- package/components/combobox/demo/design.md +4 -4
- package/components/combobox/demo/getting-started.html +53 -0
- package/components/combobox/demo/{install.js → getting-started.js} +2 -5
- package/components/combobox/demo/getting-started.md +397 -0
- package/components/combobox/demo/{install.min.js → getting-started.min.js} +14 -38
- package/components/combobox/demo/index.html +4 -47
- package/components/combobox/demo/index.md +3 -569
- package/components/combobox/demo/index.min.js +15 -12
- package/components/combobox/demo/keyboard-behavior.html +2 -20
- package/components/combobox/demo/keyboard-behavior.md +2 -2
- package/components/combobox/demo/layout.md +2 -2
- package/components/combobox/demo/readme.html +2 -43
- package/components/combobox/demo/readme.md +8 -29
- package/components/combobox/demo/styles.css +98 -105
- package/components/combobox/demo/voiceover.html +2 -20
- package/components/combobox/demo/voiceover.md +1 -1
- package/components/combobox/dist/index.js +12 -10
- package/components/combobox/dist/registered.js +12 -10
- package/components/counter/README.md +21 -51
- 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 +49 -1299
- package/components/counter/demo/api.min.js +6 -6
- 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 +6 -6
- package/components/counter/demo/keyboard-behavior.html +49 -0
- package/components/counter/demo/keyboard-behavior.md +1 -1
- 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 -51
- 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 +6 -6
- package/components/counter/dist/registered.js +6 -6
- package/components/datepicker/README.md +10 -24
- package/components/datepicker/demo/accessibility.html +50 -0
- package/components/datepicker/demo/accessibility.md +64 -0
- package/components/datepicker/demo/api.md +69 -1739
- package/components/datepicker/demo/api.min.js +14 -14
- package/components/datepicker/demo/customize.html +53 -0
- package/components/datepicker/demo/customize.md +723 -0
- package/components/datepicker/demo/demo-support.js +60 -0
- package/components/{select/demo/layout.html → datepicker/demo/design.html} +7 -47
- package/components/datepicker/demo/design.md +158 -0
- package/components/datepicker/demo/getting-started.html +53 -0
- package/components/datepicker/demo/getting-started.md +237 -0
- package/components/datepicker/demo/index.html +14 -34
- package/components/datepicker/demo/index.md +160 -103
- package/components/datepicker/demo/index.min.js +14 -14
- package/components/datepicker/demo/keyboard-behavior.html +12 -33
- package/components/datepicker/demo/layout.md +92 -0
- package/components/datepicker/demo/readme.md +10 -24
- package/components/datepicker/demo/styles.css +974 -0
- package/components/{dropdown/demo/keyboardBehavior.html → datepicker/demo/voiceover.html} +14 -36
- package/components/datepicker/demo/voiceover.md +98 -0
- package/components/datepicker/dist/index.js +14 -14
- package/components/datepicker/dist/registered.js +14 -14
- package/components/dropdown/README.md +0 -25
- package/components/dropdown/demo/accessibility.html +49 -0
- package/components/dropdown/demo/accessibility.md +45 -0
- package/components/dropdown/demo/api.html +10 -19
- package/components/dropdown/demo/api.md +40 -1364
- package/components/dropdown/demo/api.min.js +2 -2
- package/components/dropdown/demo/customize.html +54 -0
- package/components/dropdown/demo/customize.md +780 -0
- package/components/dropdown/demo/demo-support.js +60 -0
- package/components/dropdown/demo/design.html +52 -0
- package/components/dropdown/demo/design.md +186 -0
- package/components/dropdown/demo/getting-started.html +54 -0
- package/components/dropdown/demo/getting-started.md +317 -0
- package/components/dropdown/demo/index.html +12 -20
- package/components/dropdown/demo/index.md +70 -225
- package/components/dropdown/demo/index.min.js +2 -2
- package/components/dropdown/demo/keyboard-behavior.html +49 -0
- package/components/dropdown/demo/keyboard-behavior.md +4 -8
- package/components/dropdown/demo/layout.md +21 -0
- package/components/dropdown/demo/readme.html +7 -20
- package/components/dropdown/demo/readme.md +0 -25
- package/components/dropdown/demo/styles.css +974 -0
- package/components/dropdown/demo/voiceover.html +51 -0
- package/components/dropdown/demo/voiceover.md +63 -0
- package/components/dropdown/dist/index.js +2 -2
- package/components/dropdown/dist/registered.js +2 -2
- package/components/form/README.md +9 -13
- package/components/form/demo/accessibility.html +51 -0
- package/components/form/demo/accessibility.md +23 -0
- package/components/form/demo/api.html +11 -14
- package/components/form/demo/api.md +14 -290
- package/components/form/demo/api.min.js +53 -50
- package/components/form/demo/customize.html +54 -0
- package/components/form/demo/customize.md +246 -0
- package/components/form/demo/demo-support.js +60 -0
- package/components/form/demo/getting-started.html +54 -0
- package/components/form/demo/getting-started.md +291 -0
- package/components/form/demo/index.html +12 -14
- package/components/form/demo/index.md +66 -96
- package/components/form/demo/index.min.js +53 -50
- package/components/form/demo/keyboard-behavior.html +51 -0
- package/components/form/demo/readme.html +12 -17
- package/components/form/demo/readme.md +9 -13
- package/components/form/demo/styles.css +974 -0
- package/components/form/demo/voiceover.html +51 -0
- package/components/form/demo/voiceover.md +36 -0
- package/components/helptext/dist/index.js +1 -1
- package/components/helptext/dist/registered.js +1 -1
- package/components/input/README.md +17 -28
- package/components/input/demo/accessibility.html +38 -0
- package/components/input/demo/accessibility.md +69 -0
- package/components/input/demo/api.html +17 -22
- package/components/input/demo/api.js +4 -23
- package/components/input/demo/api.md +67 -1267
- package/components/input/demo/api.min.js +6 -98
- package/components/input/demo/customize.html +54 -0
- package/components/input/demo/customize.js +25 -0
- package/components/input/demo/customize.md +1372 -0
- package/components/input/demo/customize.min.js +7431 -0
- package/components/input/demo/demo-support.js +60 -0
- package/components/input/demo/design.html +39 -0
- package/components/input/demo/design.md +224 -0
- package/components/input/demo/getting-started.html +53 -0
- package/components/input/demo/getting-started.js +8 -0
- package/components/input/demo/getting-started.md +312 -0
- package/components/input/demo/getting-started.min.js +7369 -0
- package/components/input/demo/index.html +16 -22
- package/components/input/demo/index.js +0 -11
- package/components/input/demo/index.md +171 -139
- package/components/input/demo/index.min.js +6 -18
- package/components/input/demo/keyboard-behavior.html +38 -0
- package/components/input/demo/layout.md +77 -0
- package/components/input/demo/readme.md +17 -28
- package/components/input/demo/styles.css +974 -0
- package/components/input/demo/voiceover.html +38 -0
- package/components/input/demo/voiceover.md +70 -0
- package/components/input/dist/base-input.d.ts +1 -0
- package/components/input/dist/index.js +6 -6
- package/components/input/dist/registered.js +6 -6
- package/components/menu/README.md +1 -5
- package/components/menu/demo/api.md +43 -43
- package/components/menu/demo/api.min.js +2 -2
- package/components/menu/demo/index.md +1 -1
- package/components/menu/demo/index.min.js +2 -2
- package/components/menu/demo/readme.md +1 -5
- package/components/menu/dist/index.js +2 -2
- package/components/menu/dist/registered.js +2 -2
- package/components/radio/README.md +9 -22
- package/components/radio/demo/accessibility.html +51 -0
- package/components/radio/demo/accessibility.md +44 -0
- package/components/radio/demo/api.html +13 -20
- package/components/radio/demo/api.md +44 -589
- package/components/radio/demo/api.min.js +3 -3
- package/components/radio/demo/customize.html +53 -0
- package/components/radio/demo/customize.md +368 -0
- package/components/radio/demo/demo-support.js +60 -0
- package/components/radio/demo/design.html +52 -0
- package/components/radio/demo/design.md +143 -0
- package/components/radio/demo/getting-started.html +54 -0
- package/components/radio/demo/getting-started.md +296 -0
- package/components/radio/demo/index.html +16 -19
- package/components/radio/demo/index.md +110 -45
- package/components/radio/demo/index.min.js +3 -3
- package/components/radio/demo/keyboard-behavior.html +51 -0
- package/components/radio/demo/layout.md +30 -0
- package/components/radio/demo/readme.html +11 -17
- package/components/radio/demo/readme.md +9 -22
- package/components/radio/demo/styles.css +974 -0
- package/components/radio/demo/voiceover.html +51 -0
- package/components/radio/demo/voiceover.md +43 -0
- package/components/radio/dist/index.js +3 -3
- package/components/radio/dist/registered.js +3 -3
- package/components/select/README.md +7 -4
- package/components/select/demo/accessibility.html +5 -21
- package/components/select/demo/accessibility.md +1 -1
- package/components/select/demo/api.html +3 -48
- package/components/select/demo/api.md +52 -2342
- package/components/select/demo/customize.html +54 -0
- package/components/select/demo/customize.js +11 -0
- package/components/select/demo/customize.md +1049 -0
- package/components/select/demo/{api.min.js → customize.min.js} +12 -113
- package/components/select/demo/demo-support.js +60 -0
- package/components/select/demo/design.html +3 -44
- package/components/select/demo/design.md +2 -2
- package/components/select/demo/getting-started.html +5 -76
- package/components/select/demo/getting-started.js +20 -3
- package/components/select/demo/getting-started.md +97 -705
- package/components/select/demo/getting-started.min.js +58 -9
- package/components/select/demo/index.html +4 -43
- package/components/select/demo/index.js +5 -3
- package/components/select/demo/index.md +2 -2
- package/components/select/demo/index.min.js +14 -9
- package/components/select/demo/keyboard-behavior.html +6 -47
- package/components/select/demo/keyboard-behavior.md +5 -6
- package/components/select/demo/keyboardBehavior.html +4 -46
- package/components/select/demo/readme.html +3 -44
- package/components/select/demo/readme.md +7 -4
- package/components/select/demo/styles.css +57 -109
- package/components/select/demo/voiceover.html +3 -30
- package/components/select/dist/index.js +5 -5
- package/components/select/dist/registered.js +5 -5
- package/custom-elements.json +249 -246
- package/package.json +3 -3
- package/components/combobox/demo/install.html +0 -94
- package/components/combobox/demo/install.md +0 -98
- package/components/select/demo/api.js +0 -39
- package/components/select/demo/install.md +0 -92
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import {unified} from 'https://esm.sh/unified';
|
|
2
|
+
import remarkParse from 'https://esm.sh/remark-parse';
|
|
3
|
+
import remarkGfm from 'https://esm.sh/remark-gfm';
|
|
4
|
+
import remarkRehype from 'https://esm.sh/remark-rehype';
|
|
5
|
+
import rehypeRaw from 'https://esm.sh/rehype-raw';
|
|
6
|
+
import rehypeHighlight from 'https://esm.sh/rehype-highlight';
|
|
7
|
+
import rehypeStringify from 'https://esm.sh/rehype-stringify';
|
|
8
|
+
|
|
9
|
+
export async function renderPage(mdPath) {
|
|
10
|
+
const response = await fetch(mdPath);
|
|
11
|
+
const text = await response.text();
|
|
12
|
+
const result = await unified()
|
|
13
|
+
.use(remarkParse)
|
|
14
|
+
.use(remarkGfm)
|
|
15
|
+
.use(remarkRehype, { allowDangerousHtml: true })
|
|
16
|
+
.use(rehypeRaw)
|
|
17
|
+
.use(rehypeHighlight)
|
|
18
|
+
.use(rehypeStringify)
|
|
19
|
+
.process(text);
|
|
20
|
+
|
|
21
|
+
document.querySelector('main').innerHTML = String(result);
|
|
22
|
+
addCopyButtons();
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
function addCopyButtons() {
|
|
26
|
+
document.querySelectorAll('pre code[class*="language-"], pre code[class*="hljs"]').forEach((code) => {
|
|
27
|
+
const pre = code.parentElement;
|
|
28
|
+
const wrapper = document.createElement('div');
|
|
29
|
+
wrapper.className = 'pre-wrapper';
|
|
30
|
+
pre.parentNode.insertBefore(wrapper, pre);
|
|
31
|
+
wrapper.appendChild(pre);
|
|
32
|
+
const btn = document.createElement('button');
|
|
33
|
+
btn.className = 'copy-btn';
|
|
34
|
+
btn.textContent = 'Copy';
|
|
35
|
+
btn.addEventListener('click', () => {
|
|
36
|
+
const raw = code.textContent;
|
|
37
|
+
const text = raw.replace(/\u200B/g, '').replace(/^\n+/, '').replace(/\n+$/, '\n').replace(/^\$ /, '');
|
|
38
|
+
navigator.clipboard.writeText(text).then(() => {
|
|
39
|
+
btn.textContent = 'Copied!';
|
|
40
|
+
setTimeout(() => { btn.textContent = 'Copy'; }, 1500);
|
|
41
|
+
});
|
|
42
|
+
});
|
|
43
|
+
wrapper.appendChild(btn);
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function openAccordion(id) {
|
|
48
|
+
document.querySelectorAll('auro-accordion').forEach((accordion) => {
|
|
49
|
+
accordion.removeAttribute('expanded');
|
|
50
|
+
});
|
|
51
|
+
const target = document.getElementById(id);
|
|
52
|
+
if (target) {
|
|
53
|
+
target.setAttribute('expanded', '');
|
|
54
|
+
setTimeout(() => {
|
|
55
|
+
target.scrollIntoView({ behavior: 'smooth', block: 'start' });
|
|
56
|
+
}, 550);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
window.openAccordion = openAccordion;
|
|
@@ -0,0 +1,52 @@
|
|
|
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/design.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 | Design</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('./design.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-accordion@latest/+esm" type="module"></script>
|
|
47
|
+
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-header@latest/+esm" type="module"></script>
|
|
48
|
+
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-icon@latest/+esm" type="module"></script>
|
|
49
|
+
|
|
50
|
+
<script src="./index.min.js" data-demo-script="true" type="module"></script>
|
|
51
|
+
</body>
|
|
52
|
+
</html>
|
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
<auro-header level="1" id="overview">Counter - Design</auro-header>
|
|
2
|
+
<div class="contentWrapper">
|
|
3
|
+
<div class="mainContent">
|
|
4
|
+
<div class="scrollWrapper">
|
|
5
|
+
<section>
|
|
6
|
+
<auro-header level="2" id="anatomy">Anatomy</auro-header>
|
|
7
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../docs/partials/layout/layout.md) -->
|
|
8
|
+
<!-- The below content is automatically added from ./../docs/partials/layout/layout.md -->
|
|
9
|
+
The counter component consists of the following key elements:
|
|
10
|
+
|
|
11
|
+
- **Counter Label** — The main label text (default slot) identifying what is being counted
|
|
12
|
+
- **Description** — Optional supplementary text below the label (description slot)
|
|
13
|
+
- **Increment Button** — Increases the counter value by 1
|
|
14
|
+
- **Decrement Button** — Decreases the counter value by 1
|
|
15
|
+
- **Value Display** — Shows the current numeric value
|
|
16
|
+
- **Help Text** — Optional guidance text below the counter (helpText slot)
|
|
17
|
+
|
|
18
|
+
In a **counter group**, multiple counters are rendered together. When used with the `isDropdown` attribute, the group appears as a collapsible dropdown with a trigger element showing a label and summary of values.
|
|
19
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
20
|
+
</section>
|
|
21
|
+
<section>
|
|
22
|
+
<auro-header level="2" id="defaultLayout">Standalone Counter</auro-header>
|
|
23
|
+
<div class="exampleWrapper">
|
|
24
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/basic-standalone.html) -->
|
|
25
|
+
<!-- The below content is automatically added from ./../apiExamples/basic-standalone.html -->
|
|
26
|
+
<auro-counter>
|
|
27
|
+
Adults
|
|
28
|
+
</auro-counter>
|
|
29
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
30
|
+
</div>
|
|
31
|
+
</section>
|
|
32
|
+
<section>
|
|
33
|
+
<auro-header level="2" id="groupLayout">Counter Group</auro-header>
|
|
34
|
+
<div class="exampleWrapper">
|
|
35
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/basic.html) -->
|
|
36
|
+
<!-- The below content is automatically added from ./../apiExamples/basic.html -->
|
|
37
|
+
<auro-counter-group>
|
|
38
|
+
<auro-counter>
|
|
39
|
+
Short label
|
|
40
|
+
</auro-counter>
|
|
41
|
+
<auro-counter>
|
|
42
|
+
Another short label
|
|
43
|
+
</auro-counter>
|
|
44
|
+
<auro-counter>
|
|
45
|
+
This is an example of the wrapping behavior for a long label
|
|
46
|
+
</auro-counter>
|
|
47
|
+
</auro-counter-group>
|
|
48
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
49
|
+
</div>
|
|
50
|
+
</section>
|
|
51
|
+
<section>
|
|
52
|
+
<auro-header level="2" id="dropdownLayout">Dropdown Counter</auro-header>
|
|
53
|
+
<div class="exampleWrapper">
|
|
54
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/dropdown.html) -->
|
|
55
|
+
<!-- The below content is automatically added from ./../apiExamples/dropdown.html -->
|
|
56
|
+
<auro-counter-group isDropdown>
|
|
57
|
+
<span slot="ariaLabel.bib.close">Close Popup</span>
|
|
58
|
+
<span slot="bib.fullscreen.headline">Passengers</span>
|
|
59
|
+
<div slot="label">Passengers</div>
|
|
60
|
+
<auro-counter>
|
|
61
|
+
Adults
|
|
62
|
+
<span slot="description">18 years or older</span>
|
|
63
|
+
</auro-counter>
|
|
64
|
+
<auro-counter>
|
|
65
|
+
Children
|
|
66
|
+
<span slot="description">Under 17 years old. Restrictions apply if traveling without an adult.</span>
|
|
67
|
+
</auro-counter>
|
|
68
|
+
<auro-counter>
|
|
69
|
+
Lap Infants
|
|
70
|
+
<span slot="description">Under 2 years</span>
|
|
71
|
+
</auro-counter>
|
|
72
|
+
</auro-counter-group>
|
|
73
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
74
|
+
</div>
|
|
75
|
+
</section>
|
|
76
|
+
<section>
|
|
77
|
+
<auro-header level="2" id="colors">Colors</auro-header>
|
|
78
|
+
<auro-header level="3" id="defaultColor">Default Color</auro-header>
|
|
79
|
+
<div class="exampleWrapper">
|
|
80
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/basic-standalone.html) -->
|
|
81
|
+
<!-- The below content is automatically added from ./../apiExamples/basic-standalone.html -->
|
|
82
|
+
<auro-counter>
|
|
83
|
+
Adults
|
|
84
|
+
</auro-counter>
|
|
85
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
86
|
+
</div>
|
|
87
|
+
<auro-header level="3" id="inverseColor">Inverse Color</auro-header>
|
|
88
|
+
<div class="exampleWrapper--ondark" aria-hidden>
|
|
89
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/appearance-inverse.html) -->
|
|
90
|
+
<!-- The below content is automatically added from ./../apiExamples/appearance-inverse.html -->
|
|
91
|
+
<auro-counter appearance="inverse">
|
|
92
|
+
Adults
|
|
93
|
+
</auro-counter>
|
|
94
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
95
|
+
</div>
|
|
96
|
+
</section>
|
|
97
|
+
<section>
|
|
98
|
+
<auro-header level="2" id="shapeSizeLayout">Shape | Size | Layout Support</auro-header>
|
|
99
|
+
<p>The <code>auro-counter-group</code> component supports the <code>shape</code>, <code>size</code> and <code>layout</code> feature set. The component defaults to <code>layout="classic"</code>, <code>shape="classic"</code> and <code>size="lg"</code>.</p>
|
|
100
|
+
<auro-header level="3" id="classicLayout">Classic Layout</auro-header>
|
|
101
|
+
<p>The <code>classic</code> layout is default for <code>auro-counter-group</code>. No customization is needed to achieve this look.</p>
|
|
102
|
+
<div class="exampleWrapper">
|
|
103
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/dropdown.html) -->
|
|
104
|
+
<!-- The below content is automatically added from ./../apiExamples/dropdown.html -->
|
|
105
|
+
<auro-counter-group isDropdown>
|
|
106
|
+
<span slot="ariaLabel.bib.close">Close Popup</span>
|
|
107
|
+
<span slot="bib.fullscreen.headline">Passengers</span>
|
|
108
|
+
<div slot="label">Passengers</div>
|
|
109
|
+
<auro-counter>
|
|
110
|
+
Adults
|
|
111
|
+
<span slot="description">18 years or older</span>
|
|
112
|
+
</auro-counter>
|
|
113
|
+
<auro-counter>
|
|
114
|
+
Children
|
|
115
|
+
<span slot="description">Under 17 years old. Restrictions apply if traveling without an adult.</span>
|
|
116
|
+
</auro-counter>
|
|
117
|
+
<auro-counter>
|
|
118
|
+
Lap Infants
|
|
119
|
+
<span slot="description">Under 2 years</span>
|
|
120
|
+
</auro-counter>
|
|
121
|
+
</auro-counter-group>
|
|
122
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
123
|
+
</div>
|
|
124
|
+
<auro-accordion alignRight>
|
|
125
|
+
<span slot="trigger">See code</span>
|
|
126
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/dropdown.html) -->
|
|
127
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/dropdown.html -->
|
|
128
|
+
<pre class="language-html"><code class="language-html"><auro-counter-group isDropdown>
|
|
129
|
+
<span slot="ariaLabel.bib.close">Close Popup</span>
|
|
130
|
+
<span slot="bib.fullscreen.headline">Passengers</span>
|
|
131
|
+
<div slot="label">Passengers</div>
|
|
132
|
+
<auro-counter>
|
|
133
|
+
Adults
|
|
134
|
+
<span slot="description">18 years or older</span>
|
|
135
|
+
</auro-counter>
|
|
136
|
+
<auro-counter>
|
|
137
|
+
Children
|
|
138
|
+
<span slot="description">Under 17 years old. Restrictions apply if traveling without an adult.</span>
|
|
139
|
+
</auro-counter>
|
|
140
|
+
<auro-counter>
|
|
141
|
+
Lap Infants
|
|
142
|
+
<span slot="description">Under 2 years</span>
|
|
143
|
+
</auro-counter>
|
|
144
|
+
</auro-counter-group></code></pre>
|
|
145
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
146
|
+
</auro-accordion>
|
|
147
|
+
<auro-header level="3" id="snowflakeLayout">Snowflake Layout</auro-header>
|
|
148
|
+
<p>The <code>snowflake</code> layout is a unique, one off layout that does not follow the normal pattern. There is only one way to use snowflake as shown in the following example.</p>
|
|
149
|
+
<p>The <code>snowflake</code> layout is only expected to be used on dark backgrounds, in conjunction with <code>appearance="inverse"</code>.</p>
|
|
150
|
+
<div class="exampleWrapper--ondark">
|
|
151
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/dropdown-snowflake.html) -->
|
|
152
|
+
<!-- The below content is automatically added from ./../apiExamples/dropdown-snowflake.html -->
|
|
153
|
+
<!-- Example of counter-group properties -->
|
|
154
|
+
<auro-counter-group max="10" min="2" isDropdown layout="snowflake" shape="snowflake" appearance="inverse">
|
|
155
|
+
<span slot="ariaLabel.bib.close">Close Popup</span>
|
|
156
|
+
<div slot="bib.fullscreen.headline">Group fullscreen label</div>
|
|
157
|
+
<auro-icon slot="typeIcon" category="interface" name="account-stroke" customColor></auro-icon>
|
|
158
|
+
<div slot="label">Snowflake Dropdown Group</div>
|
|
159
|
+
<div slot="helpText">Total must be between 2-10</div>
|
|
160
|
+
<auro-counter>
|
|
161
|
+
Counter 1
|
|
162
|
+
</auro-counter>
|
|
163
|
+
<auro-counter>
|
|
164
|
+
Counter 2
|
|
165
|
+
</auro-counter>
|
|
166
|
+
</auro-counter-group>
|
|
167
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
168
|
+
</div>
|
|
169
|
+
<auro-accordion alignRight>
|
|
170
|
+
<span slot="trigger">See code</span>
|
|
171
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/dropdown-snowflake.html) -->
|
|
172
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/dropdown-snowflake.html -->
|
|
173
|
+
<pre class="language-html"><code class="language-html"><!-- Example of counter-group properties -->
|
|
174
|
+
<auro-counter-group max="10" min="2" isDropdown layout="snowflake" shape="snowflake" appearance="inverse">
|
|
175
|
+
<span slot="ariaLabel.bib.close">Close Popup</span>
|
|
176
|
+
<div slot="bib.fullscreen.headline">Group fullscreen label</div>
|
|
177
|
+
<auro-icon slot="typeIcon" category="interface" name="account-stroke" customColor></auro-icon>
|
|
178
|
+
<div slot="label">Snowflake Dropdown Group</div>
|
|
179
|
+
<div slot="helpText">Total must be between 2-10</div>
|
|
180
|
+
<auro-counter>
|
|
181
|
+
Counter 1
|
|
182
|
+
</auro-counter>
|
|
183
|
+
<auro-counter>
|
|
184
|
+
Counter 2
|
|
185
|
+
</auro-counter>
|
|
186
|
+
</auro-counter-group></code></pre>
|
|
187
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
188
|
+
</auro-accordion>
|
|
189
|
+
</section>
|
|
190
|
+
</div>
|
|
191
|
+
</div>
|
|
192
|
+
</div>
|
|
@@ -0,0 +1,54 @@
|
|
|
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/getting-started.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 | Getting Started</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('./getting-started.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-accordion@latest/+esm" type="module"></script>
|
|
47
|
+
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-nav@latest/+esm" type="module"></script>
|
|
48
|
+
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-header@latest/+esm" type="module"></script>
|
|
49
|
+
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-button@latest/+esm" type="module"></script>
|
|
50
|
+
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-icon@latest/+esm" type="module"></script>
|
|
51
|
+
|
|
52
|
+
<script src="./api.min.js" data-demo-script="true" type="module"></script>
|
|
53
|
+
</body>
|
|
54
|
+
</html>
|