@aurodesignsystem-dev/auro-formkit 0.0.0-pr1451.1 → 0.0.0-pr1451.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (86) hide show
  1. package/components/checkbox/README.md +23 -37
  2. package/components/checkbox/demo/api.min.js +1 -1
  3. package/components/checkbox/demo/index.min.js +1 -1
  4. package/components/checkbox/demo/readme.md +0 -2
  5. package/components/checkbox/dist/index.js +1 -1
  6. package/components/checkbox/dist/registered.js +1 -1
  7. package/components/combobox/README.md +43 -57
  8. package/components/combobox/demo/accessibility.html +22 -11
  9. package/components/combobox/demo/api.html +27 -16
  10. package/components/combobox/demo/api.min.js +4 -4
  11. package/components/combobox/demo/design.html +27 -16
  12. package/components/combobox/demo/index.html +28 -22
  13. package/components/combobox/demo/index.min.js +4 -4
  14. package/components/combobox/demo/install.html +26 -16
  15. package/components/combobox/demo/install.md +0 -2
  16. package/components/combobox/demo/install.min.js +4 -4
  17. package/components/combobox/demo/keyboard-behavior.html +22 -11
  18. package/components/combobox/demo/readme.html +27 -16
  19. package/components/combobox/demo/readme.md +0 -2
  20. package/components/combobox/demo/styles.css +911 -71
  21. package/components/combobox/demo/voiceover.html +22 -11
  22. package/components/combobox/dist/index.js +4 -4
  23. package/components/combobox/dist/registered.js +4 -4
  24. package/components/counter/README.md +39 -53
  25. package/components/counter/demo/api.min.js +2 -2
  26. package/components/counter/demo/index.min.js +2 -2
  27. package/components/counter/demo/readme.md +0 -2
  28. package/components/counter/dist/index.js +2 -2
  29. package/components/counter/dist/registered.js +2 -2
  30. package/components/datepicker/README.md +19 -33
  31. package/components/datepicker/demo/api.min.js +4 -4
  32. package/components/datepicker/demo/index.min.js +4 -4
  33. package/components/datepicker/demo/readme.md +0 -2
  34. package/components/datepicker/dist/index.js +4 -4
  35. package/components/datepicker/dist/registered.js +4 -4
  36. package/components/dropdown/README.md +39 -53
  37. package/components/dropdown/demo/api.min.js +1 -1
  38. package/components/dropdown/demo/index.min.js +1 -1
  39. package/components/dropdown/demo/readme.md +0 -2
  40. package/components/dropdown/dist/index.js +1 -1
  41. package/components/dropdown/dist/registered.js +1 -1
  42. package/components/form/README.md +14 -30
  43. package/components/form/demo/api.min.js +16 -16
  44. package/components/form/demo/index.min.js +16 -16
  45. package/components/form/demo/readme.md +0 -2
  46. package/components/input/README.md +17 -31
  47. package/components/input/demo/api.min.js +2 -2
  48. package/components/input/demo/index.min.js +2 -2
  49. package/components/input/demo/readme.md +0 -2
  50. package/components/input/dist/index.js +2 -2
  51. package/components/input/dist/registered.js +2 -2
  52. package/components/menu/README.md +23 -37
  53. package/components/menu/demo/readme.md +0 -2
  54. package/components/radio/README.md +21 -35
  55. package/components/radio/demo/api.min.js +1 -1
  56. package/components/radio/demo/index.min.js +1 -1
  57. package/components/radio/demo/readme.md +0 -2
  58. package/components/radio/dist/index.js +1 -1
  59. package/components/radio/dist/registered.js +1 -1
  60. package/components/select/README.md +41 -73
  61. package/components/select/demo/accessibility.html +23 -20
  62. package/components/select/demo/api.html +45 -10
  63. package/components/select/demo/api.min.js +2 -2
  64. package/components/select/demo/design.html +94 -0
  65. package/components/select/demo/design.md +391 -0
  66. package/components/select/demo/getting-started.html +125 -0
  67. package/components/select/demo/getting-started.js +9 -0
  68. package/components/select/demo/getting-started.md +1020 -0
  69. package/components/select/demo/getting-started.min.js +10490 -0
  70. package/components/select/demo/index.html +55 -241
  71. package/components/select/demo/index.md +38 -98
  72. package/components/select/demo/index.min.js +2 -2
  73. package/components/select/demo/install.md +92 -0
  74. package/components/select/demo/keyboard-behavior.html +23 -11
  75. package/components/select/demo/keyboard-behavior.md +247 -36
  76. package/components/select/demo/keyboardBehavior.html +22 -11
  77. package/components/select/demo/layout.html +45 -10
  78. package/components/select/demo/layout.md +71 -260
  79. package/components/select/demo/readme.html +46 -11
  80. package/components/select/demo/readme.md +25 -45
  81. package/components/select/demo/styles.css +1026 -0
  82. package/components/select/demo/voiceover.html +23 -11
  83. package/components/select/dist/index.js +2 -2
  84. package/components/select/dist/registered.js +2 -2
  85. package/custom-elements.json +1667 -1667
  86. package/package.json +1 -1
@@ -25,13 +25,13 @@ The following sections are editable by making changes to the following files:
25
25
  <p>The component is used to create a drop-down list for user input within a form. It acts as a container for options.</p>
26
26
  <p>Key features:</p>
27
27
  <ul>
28
- <li>Preset values</li>
29
- <li>Mark as required when in a form</li>
30
- <li>Disable individual options or the entire component</li>
31
- <li>Enable multi-select</li>
32
- <li>Separate options into groups with dividers</li>
33
- <li>Group options into nested levels</li>
34
- <li>Autocomplete</li>
28
+ <li>Preset values</li>
29
+ <li>Mark as required when in a form</li>
30
+ <li>Disable individual options or the entire component</li>
31
+ <li>Enable multi-select</li>
32
+ <li>Separate options into groups with dividers</li>
33
+ <li>Group options into nested levels</li>
34
+ <li>Autocomplete</li>
35
35
  </ul>
36
36
  <!-- AURO-GENERATED-CONTENT:END -->
37
37
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=./docs/partials/readmeAddlInfo.md) -->
@@ -51,11 +51,7 @@ See description.
51
51
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=../../docs/templates/componentInstall.md) -->
52
52
  <!-- The below content is automatically added from ../../docs/templates/componentInstall.md -->
53
53
 
54
- #### NPM Installation
55
-
56
- ```shell
57
- $ npm i @aurodesignsystem/auro-formkit
58
- ```
54
+ <pre class="language-shell"><code class="language-shell">$ npm i @aurodesignsystem/auro-formkit</code></pre>
59
55
  <!-- AURO-GENERATED-CONTENT:END -->
60
56
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=../../docs/templates/gettingStarted.md) -->
61
57
  <!-- The below content is automatically added from ../../docs/templates/gettingStarted.md -->
@@ -64,13 +60,11 @@ $ npm i @aurodesignsystem/auro-formkit
64
60
 
65
61
  When using TypeScript set `moduleResolution` to `bundler`, add the following to your `tsconfig.json`:
66
62
 
67
- ```json
68
- {
63
+ <pre class="language-json"><code class="language-json">{
69
64
  "compilerOptions": {
70
65
  "moduleResolution": "bundler"
71
66
  }
72
- }
73
- ```
67
+ }</code></pre>
74
68
 
75
69
  This configuration enables proper module resolution for the component's TypeScript files.
76
70
  <!-- AURO-GENERATED-CONTENT:END -->
@@ -81,9 +75,7 @@ This configuration enables proper module resolution for the component's TypeScri
81
75
  <!-- The below content is automatically added from ../../docs/templates/bundleInstallDescription.md -->
82
76
  In cases where the project is not able to process JS assets, there are pre-processed assets available for use. Legacy browsers such as IE11 are no longer supported.
83
77
 
84
- ```html
85
- <script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@latest/auro-select/+esm"></script>
86
- ```
78
+ <pre class="language-html"><code class="language-html">&lt;script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@latest/auro-select/+esm"&gt;&lt;/script&gt;</code></pre>
87
79
  <!-- AURO-GENERATED-CONTENT:END -->
88
80
 
89
81
  ## Formkit Development
@@ -97,63 +89,39 @@ Running the `dev` command will open a `localhost` development server for all com
97
89
 
98
90
  To only develop a single component, use the `--filter` flag:
99
91
 
100
- ```shell
101
- npx turbo dev --filter=@aurodesignsystem/auro-input
102
- ```
92
+ <pre class="language-shell"><code class="language-shell">npx turbo dev --filter=@aurodesignsystem/auro-input</code></pre>
103
93
  <!-- AURO-GENERATED-CONTENT:END -->
104
94
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=./docs/partials/customRegistration.md) -->
105
- <!-- The below content is automatically added from ./docs/partials/customRegistration.md -->
95
+ <!-- The below content is automatically added from ./docs/partials/customRegistration.md -->
96
+ <p>Every Auro component consists of a JavaScript <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes">class</a> and a <a href="https://developer.mozilla.org/en-US/docs/Web/API/CustomElementRegistry/define">custom element registration</a>. The class defines the component's behavior, and the registration maps it to an HTML tag name so it can be used in markup.</p>
97
+ <p>The default import (shown above) handles both steps automatically, registering the component under its standard tag name.</p>
98
+ <p>If you need multiple versions of the same component on a single page — for example, when two projects depend on different versions — you can register the class under a custom tag name to avoid conflicts.</p>
99
+ <p>To do this, import the component class directly and call its `register(name)` method with a unique name:</p>
106
100
 
107
- ## Custom Component Registration for Version Management
108
-
109
- 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.
110
-
111
- When you install the component as described on the `Install` page, the class is imported automatically, and the component is registered globally for you.
112
-
113
- However, if you need to load multiple versions of the same component on a single page (for example, when two projects depend on different versions), you can manually register the class under a custom element name to avoid conflicts.
114
-
115
- You can do this by importing only the component class and using the `register(name)` method with a unique name:
116
-
117
- ```js
118
- // Import the class only
101
+ <pre class="language-js"><code class="language-js">// Import the classes
119
102
  import { AuroSelect } from '@aurodesignsystem/auro-formkit/auro-select/class';
120
-
121
- // Register with a custom name if desired
103
+ import { AuroMenu } from '@aurodesignsystem/auro-formkit/auro-menu/class';
104
+ import { AuroMenuOption } from '@aurodesignsystem/auro-formkit/auro-menuoption/class';
105
+
106
+ // Register each component with a custom name
122
107
  AuroSelect.register('custom-select');
123
- ```
124
-
125
- This will create a new custom element `<custom-select>` that behaves exactly like `<auro-select>`, allowing both to coexist on the same page without interfering with each other.
126
-
127
- <div class="exampleWrapper exampleWrapper--flex">
128
- <custom-select placeholder="Placeholder Text">
129
- <span slot="bib.fullscreen.headline">Bib Headline</span>
130
- <span slot="label">Label</span>
131
- <auro-menu>
132
- <auro-menuoption value="stops">Stops</auro-menuoption>
133
- <auro-menuoption value="price">Price</auro-menuoption>
134
- <auro-menuoption value="duration">Duration</auro-menuoption>
135
- <auro-menuoption value="departure">Departure</auro-menuoption>
136
- <auro-menuoption value="arrival">Arrival</auro-menuoption>
137
- <auro-menuoption value="prefer alaska">Prefer Alaska</auro-menuoption>
138
- </auro-menu>
139
- </custom-select>
140
- </div>
141
- <auro-accordion alignRight>
142
- <span slot="trigger">See code</span>
143
-
144
- ```html
145
- <custom-select placeholder="Placeholder Text">
146
- <span slot="bib.fullscreen.headline">Bib Headline</span>
147
- <span slot="label">Label</span>
148
- <auro-menu>
149
- <auro-menuoption value="stops">Stops</auro-menuoption>
150
- <auro-menuoption value="price">Price</auro-menuoption>
151
- <auro-menuoption value="duration">Duration</auro-menuoption>
152
- <auro-menuoption value="departure">Departure</auro-menuoption>
153
- <auro-menuoption value="arrival">Arrival</auro-menuoption>
154
- <auro-menuoption value="prefer alaska">Prefer Alaska</auro-menuoption>
155
- </auro-menu>
156
- </custom-select>
157
- ```
158
- </auro-accordion>
108
+ AuroMenu.register('custom-menu');
109
+ AuroMenuOption.register('custom-menuoption');</code></pre>
110
+
111
+ The `<auro-menu>` and `<auro-menuoption>` components must also be custom registered when using a custom `<auro-select>` registration. All three components work together and need to be registered under the same custom naming convention.
112
+
113
+ This will create new custom elements that behave exactly like their standard counterparts, allowing both to coexist on the same page without interfering with each other.
114
+
115
+ <pre class="language-html"><code class="language-html">&lt;custom-select placeholder="Placeholder Text" id="custom-select"&gt;
116
+ &lt;span slot="bib.fullscreen.headline"&gt;Bib Headline&lt;/span&gt;
117
+ &lt;span slot="label"&gt;Label&lt;/span&gt;
118
+ &lt;custom-menu&gt;
119
+ &lt;custom-menuoption value="stops"&gt;Stops&lt;/custom-menuoption&gt;
120
+ &lt;custom-menuoption value="price"&gt;Price&lt;/custom-menuoption&gt;
121
+ &lt;custom-menuoption value="duration"&gt;Duration&lt;/custom-menuoption&gt;
122
+ &lt;custom-menuoption value="departure"&gt;Departure&lt;/custom-menuoption&gt;
123
+ &lt;custom-menuoption value="arrival"&gt;Arrival&lt;/custom-menuoption&gt;
124
+ &lt;custom-menuoption value="prefer alaska"&gt;Prefer Alaska&lt;/custom-menuoption&gt;
125
+ &lt;/custom-menu&gt;
126
+ &lt;/custom-select&gt;</code></pre>
159
127
  <!-- AURO-GENERATED-CONTENT:END -->
@@ -18,8 +18,8 @@
18
18
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
19
19
  <title>Auro Web Component Demo | auro-select | Accessibility</title>
20
20
 
21
- <!-- Prism.js Stylesheet -->
22
- <link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/prismjs@1.24.1/themes/prism.css"/>
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-select'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"/>
@@ -33,29 +33,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
35
  <link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@latest/dist/elementDemoStyles.css" />
36
- <style>
37
- table {
38
- --ds-color-container-secondary-default: transparent;
39
- }
40
-
41
- tr:not(:last-of-type) {
42
- border-bottom: 1px solid var(--ds-color-border-tertiary-default);
43
- }
44
- </style>
36
+ <link rel="stylesheet" type="text/css" href="./styles.css" />
45
37
  </head>
46
38
  <body class="auro-markdown">
47
39
  <main></main>
48
40
 
49
41
  <script type="module">
50
- import 'https://cdn.jsdelivr.net/npm/marked@latest/marked.min.js';
51
- import 'https://cdn.jsdelivr.net/npm/prismjs@latest/prism.js';
52
- fetch('./accessibility.md')
53
- .then((response) => response.text())
54
- .then((text) => {
55
- const rawHtml = marked.parse(text);
56
- document.querySelector('main').innerHTML = rawHtml;
57
- Prism.highlightAll();
58
- });
42
+ import {unified} from 'https://esm.sh/unified';
43
+ import remarkParse from 'https://esm.sh/remark-parse';
44
+ import remarkGfm from 'https://esm.sh/remark-gfm';
45
+ import remarkRehype from 'https://esm.sh/remark-rehype';
46
+ import rehypeRaw from 'https://esm.sh/rehype-raw';
47
+ import rehypeHighlight from 'https://esm.sh/rehype-highlight';
48
+ import rehypeStringify from 'https://esm.sh/rehype-stringify';
49
+
50
+ const response = await fetch('./accessibility.md');
51
+ const text = await response.text();
52
+ const result = await unified()
53
+ .use(remarkParse)
54
+ .use(remarkGfm)
55
+ .use(remarkRehype, { allowDangerousHtml: true })
56
+ .use(rehypeRaw)
57
+ .use(rehypeHighlight)
58
+ .use(rehypeStringify)
59
+ .process(text);
60
+
61
+ document.querySelector('main').innerHTML = String(result);
59
62
  </script>
60
63
 
61
64
  <!-- If additional elements are needed for the demo, add them here. -->
@@ -18,8 +18,8 @@
18
18
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
19
19
  <title>Auro Web Component Demo | auro-select</title>
20
20
 
21
- <!-- Prism.js Stylesheet -->
22
- <link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/prismjs@1.24.1/themes/prism.css"/>
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-select'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"/>
@@ -33,20 +33,55 @@
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
35
  <link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@latest/dist/elementDemoStyles.css" />
36
+ <link rel="stylesheet" type="text/css" href="./styles.css" />
36
37
  </head>
37
38
  <body class="auro-markdown">
38
39
  <main></main>
39
40
 
40
41
  <script type="module">
41
- import 'https://cdn.jsdelivr.net/npm/marked@latest/marked.min.js';
42
- import 'https://cdn.jsdelivr.net/npm/prismjs@latest/prism.js';
43
- fetch('./api.md')
44
- .then((response) => response.text())
45
- .then((text) => {
46
- const rawHtml = marked.parse(text);
47
- document.querySelector('main').innerHTML = rawHtml;
48
- Prism.highlightAll();
42
+ import {unified} from 'https://esm.sh/unified';
43
+ import remarkParse from 'https://esm.sh/remark-parse';
44
+ import remarkGfm from 'https://esm.sh/remark-gfm';
45
+ import remarkRehype from 'https://esm.sh/remark-rehype';
46
+ import rehypeRaw from 'https://esm.sh/rehype-raw';
47
+ import rehypeHighlight from 'https://esm.sh/rehype-highlight';
48
+ import rehypeStringify from 'https://esm.sh/rehype-stringify';
49
+
50
+ const response = await fetch('./api.md');
51
+ const text = await response.text();
52
+ const result = await unified()
53
+ .use(remarkParse)
54
+ .use(remarkGfm)
55
+ .use(remarkRehype, { allowDangerousHtml: true })
56
+ .use(rehypeRaw)
57
+ .use(rehypeHighlight)
58
+ .use(rehypeStringify)
59
+ .process(text);
60
+
61
+ document.querySelector('main').innerHTML = String(result);
62
+ addCopyButtons();
63
+
64
+ function addCopyButtons() {
65
+ document.querySelectorAll('pre code[class*="language-"], pre code[class*="hljs"]').forEach((code) => {
66
+ const pre = code.parentElement;
67
+ const wrapper = document.createElement('div');
68
+ wrapper.className = 'pre-wrapper';
69
+ pre.parentNode.insertBefore(wrapper, pre);
70
+ wrapper.appendChild(pre);
71
+ const btn = document.createElement('button');
72
+ btn.className = 'copy-btn';
73
+ btn.textContent = 'Copy';
74
+ btn.addEventListener('click', () => {
75
+ const raw = code.textContent;
76
+ const text = raw.replace(/\u200B/g, '').replace(/^\n+/, '').replace(/\n+$/, '\n').replace(/^\$ /, '');
77
+ navigator.clipboard.writeText(text).then(() => {
78
+ btn.textContent = 'Copied!';
79
+ setTimeout(() => { btn.textContent = 'Copy'; }, 1500);
80
+ });
81
+ });
82
+ wrapper.appendChild(btn);
49
83
  });
84
+ }
50
85
  </script>
51
86
  <script type="module">
52
87
  import { initExamples } from "./api.min.js"
@@ -5279,7 +5279,7 @@ let AuroHelpText$1 = class AuroHelpText extends i$3 {
5279
5279
  }
5280
5280
  };
5281
5281
 
5282
- var formkitVersion$1 = '202604232250';
5282
+ var formkitVersion$1 = '202604281911';
5283
5283
 
5284
5284
  class AuroElement extends i$3 {
5285
5285
  static get properties() {
@@ -7032,7 +7032,7 @@ class AuroHelpText extends i$3 {
7032
7032
  }
7033
7033
  }
7034
7034
 
7035
- var formkitVersion = '202604232250';
7035
+ var formkitVersion = '202604281911';
7036
7036
 
7037
7037
  var styleCss$2 = i$6`.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}.body-default{font-size:var(--wcss-body-default-font-size, 1rem);line-height:var(--wcss-body-default-line-height, 1.5rem)}.body-default,.body-lg{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-lg{font-size:var(--wcss-body-lg-font-size, 1.125rem);line-height:var(--wcss-body-lg-line-height, 1.625rem)}.body-sm{font-size:var(--wcss-body-sm-font-size, 0.875rem);line-height:var(--wcss-body-sm-line-height, 1.25rem)}.body-sm,.body-xs{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-xs{font-size:var(--wcss-body-xs-font-size, 0.75rem);line-height:var(--wcss-body-xs-line-height, 1rem)}.body-2xs{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-size:var(--wcss-body-2xs-font-size, 0.625rem);font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0);line-height:var(--wcss-body-2xs-line-height, 0.875rem)}.display-2xl{font-family:var(--wcss-display-2xl-family, "AS Circular"),var(--wcss-display-2xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-2xl-font-size, clamp(3.5rem, 6vw, 5.375rem));font-weight:var(--wcss-display-2xl-weight, 300);letter-spacing:var(--wcss-display-2xl-letter-spacing, 0);line-height:var(--wcss-display-2xl-line-height, 1.3)}.display-xl{font-family:var(--wcss-display-xl-family, "AS Circular"),var(--wcss-display-xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-xl-font-size, clamp(3rem, 5.3333333333vw, 4.5rem));font-weight:var(--wcss-display-xl-weight, 300);letter-spacing:var(--wcss-display-xl-letter-spacing, 0);line-height:var(--wcss-display-xl-line-height, 1.3)}.display-lg{font-family:var(--wcss-display-lg-family, "AS Circular"),var(--wcss-display-lg-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-lg-font-size, clamp(2.75rem, 4.6666666667vw, 4rem));font-weight:var(--wcss-display-lg-weight, 300);letter-spacing:var(--wcss-display-lg-letter-spacing, 0);line-height:var(--wcss-display-lg-line-height, 1.3)}.display-md{font-family:var(--wcss-display-md-family, "AS Circular"),var(--wcss-display-md-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-md-font-size, clamp(2.5rem, 4vw, 3.5rem));font-weight:var(--wcss-display-md-weight, 300);letter-spacing:var(--wcss-display-md-letter-spacing, 0);line-height:var(--wcss-display-md-line-height, 1.3)}.display-sm{font-family:var(--wcss-display-sm-family, "AS Circular"),var(--wcss-display-sm-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-sm-font-size, clamp(2rem, 3.6666666667vw, 3rem));font-weight:var(--wcss-display-sm-weight, 300);letter-spacing:var(--wcss-display-sm-letter-spacing, 0);line-height:var(--wcss-display-sm-line-height, 1.3)}.display-xs{font-family:var(--wcss-display-xs-family, "AS Circular"),var(--wcss-display-xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-xs-font-size, clamp(1.75rem, 3vw, 2.375rem));font-weight:var(--wcss-display-xs-weight, 300);letter-spacing:var(--wcss-display-xs-letter-spacing, 0);line-height:var(--wcss-display-xs-line-height, 1.3)}.heading-xl{font-family:var(--wcss-heading-xl-family, "AS Circular"),var(--wcss-heading-xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-xl-font-size, clamp(2rem, 3vw, 2.5rem));font-weight:var(--wcss-heading-xl-weight, 300);letter-spacing:var(--wcss-heading-xl-letter-spacing, 0);line-height:var(--wcss-heading-xl-line-height, 1.3)}.heading-lg{font-family:var(--wcss-heading-lg-family, "AS Circular"),var(--wcss-heading-lg-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-lg-font-size, clamp(1.75rem, 2.6666666667vw, 2.25rem));font-weight:var(--wcss-heading-lg-weight, 300);letter-spacing:var(--wcss-heading-lg-letter-spacing, 0);line-height:var(--wcss-heading-lg-line-height, 1.3)}.heading-md{font-family:var(--wcss-heading-md-family, "AS Circular"),var(--wcss-heading-md-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-md-font-size, clamp(1.625rem, 2.3333333333vw, 1.75rem));font-weight:var(--wcss-heading-md-weight, 300);letter-spacing:var(--wcss-heading-md-letter-spacing, 0);line-height:var(--wcss-heading-md-line-height, 1.3)}.heading-sm{font-family:var(--wcss-heading-sm-family, "AS Circular"),var(--wcss-heading-sm-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-sm-font-size, clamp(1.375rem, 2vw, 1.5rem));font-weight:var(--wcss-heading-sm-weight, 300);letter-spacing:var(--wcss-heading-sm-letter-spacing, 0);line-height:var(--wcss-heading-sm-line-height, 1.3)}.heading-xs{font-family:var(--wcss-heading-xs-family, "AS Circular"),var(--wcss-heading-xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-xs-font-size, clamp(1.25rem, 1.6666666667vw, 1.25rem));font-weight:var(--wcss-heading-xs-weight, 450);letter-spacing:var(--wcss-heading-xs-letter-spacing, 0);line-height:var(--wcss-heading-xs-line-height, 1.3)}.heading-2xs{font-family:var(--wcss-heading-2xs-family, "AS Circular"),var(--wcss-heading-2xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-2xs-font-size, clamp(1.125rem, 1.5vw, 1.125rem));font-weight:var(--wcss-heading-2xs-weight, 450);letter-spacing:var(--wcss-heading-2xs-letter-spacing, 0);line-height:var(--wcss-heading-2xs-line-height, 1.3)}.accent-2xl{font-family:var(--wcss-accent-2xl-family, "Good OT"),var(--wcss-accent-2xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-2xl-font-size, clamp(2rem, 3.1666666667vw, 2.375rem));font-weight:var(--wcss-accent-2xl-weight, 450);letter-spacing:var(--wcss-accent-2xl-letter-spacing, 0.05em);line-height:var(--wcss-accent-2xl-line-height, 1)}.accent-2xl,.accent-xl{text-transform:uppercase}.accent-xl{font-family:var(--wcss-accent-xl-family, "Good OT"),var(--wcss-accent-xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-xl-font-size, clamp(1.625rem, 2.3333333333vw, 2rem));font-weight:var(--wcss-accent-xl-weight, 450);letter-spacing:var(--wcss-accent-xl-letter-spacing, 0.05em);line-height:var(--wcss-accent-xl-line-height, 1.3)}.accent-lg{font-family:var(--wcss-accent-lg-family, "Good OT"),var(--wcss-accent-lg-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-lg-font-size, clamp(1.5rem, 2.1666666667vw, 1.75rem));font-weight:var(--wcss-accent-lg-weight, 450);letter-spacing:var(--wcss-accent-lg-letter-spacing, 0.05em);line-height:var(--wcss-accent-lg-line-height, 1.3)}.accent-lg,.accent-md{text-transform:uppercase}.accent-md{font-family:var(--wcss-accent-md-family, "Good OT"),var(--wcss-accent-md-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-md-font-size, clamp(1.375rem, 1.8333333333vw, 1.5rem));font-weight:var(--wcss-accent-md-weight, 500);letter-spacing:var(--wcss-accent-md-letter-spacing, 0.05em);line-height:var(--wcss-accent-md-line-height, 1.3)}.accent-sm{font-family:var(--wcss-accent-sm-family, "Good OT"),var(--wcss-accent-sm-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-sm-font-size, clamp(1.125rem, 1.5vw, 1.25rem));font-weight:var(--wcss-accent-sm-weight, 500);letter-spacing:var(--wcss-accent-sm-letter-spacing, 0.05em);line-height:var(--wcss-accent-sm-line-height, 1.3)}.accent-sm,.accent-xs{text-transform:uppercase}.accent-xs{font-family:var(--wcss-accent-xs-family, "Good OT"),var(--wcss-accent-xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-xs-font-size, clamp(1rem, 1.3333333333vw, 1rem));font-weight:var(--wcss-accent-xs-weight, 500);letter-spacing:var(--wcss-accent-xs-letter-spacing, 0.1em);line-height:var(--wcss-accent-xs-line-height, 1.3)}.accent-2xs{font-family:var(--wcss-accent-2xs-family, "Good OT"),var(--wcss-accent-2xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-2xs-font-size, clamp(0.875rem, 1.1666666667vw, 0.875rem));font-weight:var(--wcss-accent-2xs-weight, 450);letter-spacing:var(--wcss-accent-2xs-letter-spacing, 0.1em);line-height:var(--wcss-accent-2xs-line-height, 1.3);text-transform:uppercase}[auro-dropdown]{--ds-auro-dropdown-trigger-border-color: var(--ds-auro-select-border-color);--ds-auro-dropdown-trigger-background-color: var(--ds-auro-select-background-color);--ds-auro-dropdown-trigger-container-color: var(--ds-auro-select-background-color);--ds-auro-dropdown-trigger-outline-color: var(--ds-auro-select-outline-color)}:host{display:inline-block;text-align:left;vertical-align:top}:host([layout*=emphasized]) [auro-dropdown],:host([layout*=snowflake]) [auro-dropdown]{--ds-auro-select-border-color: transparent}:host([layout*=emphasized]) .mainContent,:host([layout*=snowflake]) .mainContent{text-align:center}.mainContent{position:relative;display:flex;overflow:hidden;flex:1;flex-direction:column;align-items:center;justify-content:center}.valueContainer [slot=displayValue]{display:none}.accents{display:flex;flex-direction:row;align-items:center;justify-content:center}::slotted([slot=typeIcon]){margin-right:var(--ds-size-100, 0.5rem)}.displayValue{display:block}.displayValue:not(.force){display:none}.displayValue:not(.force).hasContent:is(.withValue):not(.hasFocus){display:block}.triggerContent{display:flex;width:100%;align-items:center;justify-content:center}:host([layout*=emphasized]) .triggerContent{padding:0 var(--ds-size-100, 0.5rem) 0 var(--ds-size-300, 1.5rem)}:host([layout*=snowflake]) .triggerContent{padding:0 var(--ds-size-100, 0.5rem) 0 var(--ds-size-200, 1rem)}:host([layout*=snowflake]) label{padding-block:var(--ds-size-25, 0.125rem)}:host([layout*=classic]) .triggerContent{padding:0 var(--ds-size-100, 0.5rem)}:host([layout*=classic]) .mainContent{align-items:start}:host([layout*=classic]) label{overflow:hidden;cursor:text;text-overflow:ellipsis;white-space:nowrap}:host([layout*=classic]) .value{height:auto}label{color:var(--ds-auro-select-label-text-color)}:host(:is([validity]:not([validity=valid]))) [auro-dropdown]{--ds-auro-select-border-color: var(--ds-basic-color-status-error, #e31f26);--ds-auro-select-outline-color: var(--ds-basic-color-status-error, #e31f26);--ds-auro-dropdown-helptext-text-color: var(--ds-basic-color-texticon-default, #2a2a2a)}:host([ondark]:is([validity]:not([validity=valid]))) [auro-dropdown],:host([appearance=inverse]:is([validity]:not([validity=valid]))) [auro-dropdown]{--ds-auro-select-border-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8);--ds-auro-select-outline-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8);--ds-auro-dropdown-helptext-text-color: var(--ds-basic-color-texticon-inverse, #ffffff)}#slotHolder{display:none}:host([fluid]){width:100%}:host([disabled]){pointer-events:none;user-select:none}:host([disabled]:not([ondark])) [auro-dropdown],:host([disabled]:not([appearance=inverse])) [auro-dropdown]{--ds-auro-select-border-color: var(--ds-basic-color-border-subtle, #dddddd)}:host(:not([layout*=classic])[disabled][ondark]) [auro-dropdown],:host(:not([layout*=classic])[disabled][appearance=inverse]) [auro-dropdown]{--ds-auro-select-border-color: transparent}`;
7038
7038
 
@@ -0,0 +1,94 @@
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/layout.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-select | Layout</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-select'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="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@latest/dist/elementDemoStyles.css" />
36
+ <link rel="stylesheet" type="text/css" href="./styles.css" />
37
+ </head>
38
+ <body class="auro-markdown">
39
+ <main></main>
40
+
41
+ <script type="module">
42
+ import {unified} from 'https://esm.sh/unified';
43
+ import remarkParse from 'https://esm.sh/remark-parse';
44
+ import remarkGfm from 'https://esm.sh/remark-gfm';
45
+ import remarkRehype from 'https://esm.sh/remark-rehype';
46
+ import rehypeRaw from 'https://esm.sh/rehype-raw';
47
+ import rehypeHighlight from 'https://esm.sh/rehype-highlight';
48
+ import rehypeStringify from 'https://esm.sh/rehype-stringify';
49
+
50
+ const response = await fetch('./design.md');
51
+ const text = await response.text();
52
+ const result = await unified()
53
+ .use(remarkParse)
54
+ .use(remarkGfm)
55
+ .use(remarkRehype, { allowDangerousHtml: true })
56
+ .use(rehypeRaw)
57
+ .use(rehypeHighlight)
58
+ .use(rehypeStringify)
59
+ .process(text);
60
+
61
+ document.querySelector('main').innerHTML = String(result);
62
+ addCopyButtons();
63
+
64
+ function addCopyButtons() {
65
+ document.querySelectorAll('pre code[class*="language-"], pre code[class*="hljs"]').forEach((code) => {
66
+ const pre = code.parentElement;
67
+ const wrapper = document.createElement('div');
68
+ wrapper.className = 'pre-wrapper';
69
+ pre.parentNode.insertBefore(wrapper, pre);
70
+ wrapper.appendChild(pre);
71
+ const btn = document.createElement('button');
72
+ btn.className = 'copy-btn';
73
+ btn.textContent = 'Copy';
74
+ btn.addEventListener('click', () => {
75
+ const raw = code.textContent;
76
+ const text = raw.replace(/\u200B/g, '').replace(/^\n+/, '').replace(/\n+$/, '\n').replace(/^\$ /, '');
77
+ navigator.clipboard.writeText(text).then(() => {
78
+ btn.textContent = 'Copied!';
79
+ setTimeout(() => { btn.textContent = 'Copy'; }, 1500);
80
+ });
81
+ });
82
+ wrapper.appendChild(btn);
83
+ });
84
+ }
85
+ </script>
86
+
87
+ <!-- If additional elements are needed for the demo, add them here. -->
88
+ <script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-accordion@latest/+esm" type="module"></script>
89
+ <script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-icon@latest/+esm" type="module"></script>
90
+ <script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-header@latest/+esm" type="module"></script>
91
+
92
+ <script src="./index.min.js" data-demo-script="true" type="module"></script>
93
+ </body>
94
+ </html>