@aurodesignsystem-dev/auro-formkit 0.0.0-pr1457.0 → 0.0.0-pr1457.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (70) hide show
  1. package/components/checkbox/README.md +2 -2
  2. package/components/checkbox/demo/demo-support.js +1 -60
  3. package/components/checkbox/demo/getting-started.md +2 -2
  4. package/components/checkbox/demo/index.min.js +1 -1
  5. package/components/checkbox/demo/install.md +2 -2
  6. package/components/checkbox/demo/readme.md +2 -2
  7. package/components/checkbox/dist/index.js +1 -1
  8. package/components/checkbox/dist/registered.js +1 -1
  9. package/components/combobox/README.md +2 -2
  10. package/components/combobox/demo/demo-support.js +1 -60
  11. package/components/combobox/demo/getting-started.md +2 -2
  12. package/components/combobox/demo/install.md +2 -2
  13. package/components/combobox/demo/readme.md +2 -2
  14. package/components/combobox/demo/registered.min.js +3 -3
  15. package/components/combobox/dist/index.js +3 -3
  16. package/components/combobox/dist/registered.js +3 -3
  17. package/components/counter/demo/api.min.js +2 -2
  18. package/components/counter/demo/index.min.js +2 -2
  19. package/components/counter/dist/index.js +2 -2
  20. package/components/counter/dist/registered.js +2 -2
  21. package/components/datepicker/README.md +2 -2
  22. package/components/datepicker/demo/auro-datepicker.min.js +3 -3
  23. package/components/datepicker/demo/demo-support.js +1 -60
  24. package/components/datepicker/demo/getting-started.md +2 -2
  25. package/components/datepicker/demo/readme.md +2 -2
  26. package/components/datepicker/dist/index.js +3 -3
  27. package/components/datepicker/dist/registered.js +3 -3
  28. package/components/dropdown/demo/api.min.js +1 -1
  29. package/components/dropdown/demo/index.min.js +1 -1
  30. package/components/dropdown/dist/index.js +1 -1
  31. package/components/dropdown/dist/registered.js +1 -1
  32. package/components/form/demo/api.min.js +13 -13
  33. package/components/form/demo/index.min.js +13 -13
  34. package/components/input/README.md +2 -2
  35. package/components/input/demo/auro-input.min.js +1 -1
  36. package/components/input/demo/demo-support.js +1 -60
  37. package/components/input/demo/getting-started.md +2 -2
  38. package/components/input/demo/readme.md +2 -2
  39. package/components/input/dist/index.js +1 -1
  40. package/components/input/dist/registered.js +1 -1
  41. package/components/radio/demo/accessibility.html +1 -2
  42. package/components/radio/demo/api.html +1 -2
  43. package/components/radio/demo/api.md +44 -44
  44. package/components/radio/demo/api.min.js +2 -2168
  45. package/components/radio/demo/customize.html +1 -2
  46. package/components/radio/demo/demo-support.js +1 -60
  47. package/components/radio/demo/demo-support.min.js +55732 -0
  48. package/components/radio/demo/design.html +1 -2
  49. package/components/radio/demo/getting-started.html +1 -2
  50. package/components/radio/demo/index.html +1 -2
  51. package/components/radio/demo/index.min.js +16 -2
  52. package/components/radio/demo/keyboard-behavior.html +1 -2
  53. package/components/radio/demo/styles.min.css +1 -0
  54. package/components/radio/demo/styles.scss +1 -0
  55. package/components/radio/demo/voiceover.html +1 -2
  56. package/components/radio/dist/index.js +1 -1
  57. package/components/radio/dist/registered.js +1 -1
  58. package/components/select/README.md +2 -2
  59. package/components/select/demo/demo-support.js +1 -60
  60. package/components/select/demo/getting-started.md +2 -2
  61. package/components/select/demo/install.md +2 -2
  62. package/components/select/demo/readme.md +2 -2
  63. package/components/select/demo/registered.min.js +2 -2
  64. package/components/select/dist/index.js +2 -2
  65. package/components/select/dist/registered.js +2 -2
  66. package/custom-elements.json +244 -244
  67. package/package.json +2 -2
  68. package/components/radio/demo/keyboard-behavior.md +0 -72
  69. package/components/radio/demo/layout.md +0 -30
  70. package/components/radio/demo/styles.css +0 -974
@@ -1,60 +1 @@
1
- import {unified} from 'unified';
2
- import remarkParse from 'remark-parse';
3
- import remarkGfm from 'remark-gfm';
4
- import remarkRehype from 'remark-rehype';
5
- import rehypeRaw from 'rehype-raw';
6
- import rehypeHighlight from 'rehype-highlight';
7
- import rehypeStringify from '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;
1
+ export { renderPage, openAccordion } from '@aurodesignsystem/utils/demo-support';
@@ -43,7 +43,7 @@
43
43
  <auro-header level="3">Install</auro-header>
44
44
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../../../docs/templates/componentInstall.md) -->
45
45
  <!-- The below content is automatically added from ./../../../docs/templates/componentInstall.md -->
46
- <pre class="language-shell"><code class="language-shell">$ npm i @aurodesignsystem/</code></pre>
46
+ <pre class="language-shell"><code class="language-shell">$ npm i @aurodesignsystem/auro-formkit</code></pre>
47
47
  <!-- AURO-GENERATED-CONTENT:END -->
48
48
  <auro-header level="3">Implementation</auro-header>
49
49
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../docs/partials/customRegistration.md) -->
@@ -77,7 +77,7 @@ AuroInput.register('[custom]-input');</code></pre>
77
77
  <auro-header level="3">Install</auro-header>
78
78
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../../../docs/templates/componentInstall.md) -->
79
79
  <!-- The below content is automatically added from ./../../../docs/templates/componentInstall.md -->
80
- <pre class="language-shell"><code class="language-shell">$ npm i @aurodesignsystem/</code></pre>
80
+ <pre class="language-shell"><code class="language-shell">$ npm i @aurodesignsystem/auro-formkit</code></pre>
81
81
  <!-- AURO-GENERATED-CONTENT:END -->
82
82
  <auro-header level="3">Implementation</auro-header>
83
83
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../docs/partials/getting-started/defaultRegistration.md) -->
@@ -43,7 +43,7 @@ The following sections are editable by making changes to the following files:
43
43
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=../../docs/templates/componentInstall.md) -->
44
44
  <!-- The below content is automatically added from ../../docs/templates/componentInstall.md -->
45
45
 
46
- <pre class="language-shell"><code class="language-shell">$ npm i @aurodesignsystem/</code></pre>
46
+ <pre class="language-shell"><code class="language-shell">$ npm i @aurodesignsystem/auro-formkit</code></pre>
47
47
  <!-- AURO-GENERATED-CONTENT:END -->
48
48
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=../../docs/templates/gettingStarted.md) -->
49
49
  <!-- The below content is automatically added from ../../docs/templates/gettingStarted.md -->
@@ -67,7 +67,7 @@ This configuration enables proper module resolution for the component's TypeScri
67
67
  <!-- The below content is automatically added from ../../docs/templates/bundleInstallDescription.md -->
68
68
  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.
69
69
 
70
- <pre class="language-html"><code class="language-html">&lt;script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/@latest/auro-input/+esm"&gt;&lt;/script&gt;</code></pre>
70
+ <pre class="language-html"><code class="language-html">&lt;script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@latest/auro-input/+esm"&gt;&lt;/script&gt;</code></pre>
71
71
  <!-- AURO-GENERATED-CONTENT:END -->
72
72
 
73
73
  ## Formkit Development
@@ -6613,7 +6613,7 @@ class AuroHelpText extends LitElement {
6613
6613
  }
6614
6614
  }
6615
6615
 
6616
- var formkitVersion = '202605041857';
6616
+ var formkitVersion = '202605042114';
6617
6617
 
6618
6618
  // Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
6619
6619
  // See LICENSE in the project root for license information.
@@ -6613,7 +6613,7 @@ class AuroHelpText extends LitElement {
6613
6613
  }
6614
6614
  }
6615
6615
 
6616
- var formkitVersion = '202605041857';
6616
+ var formkitVersion = '202605042114';
6617
6617
 
6618
6618
  // Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
6619
6619
  // See LICENSE in the project root for license information.
@@ -31,8 +31,7 @@
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
- <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" />
34
+ <link rel="stylesheet" type="text/css" href="./styles.min.css" />
36
35
  </head>
37
36
  <body class="auro-markdown">
38
37
  <main></main>
@@ -30,8 +30,7 @@
30
30
  <link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@latest/dist/bundled/themes/alaska.global.min.css" />
31
31
 
32
32
  <!-- Demo Specific Styles -->
33
- <link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@latest/dist/demoWrapper.css" />
34
- <link rel="stylesheet" type="text/css" href="./styles.css" />
33
+ <link rel="stylesheet" type="text/css" href="./styles.min.css" />
35
34
  </head>
36
35
  <body class="auro-markdown">
37
36
  <main></main>
@@ -8,42 +8,42 @@ The `auro-radio-group` element is used to group a set `auro-radio` elements.
8
8
  ## Properties
9
9
 
10
10
  | Property | Attribute | Type | Default | Description |
11
- |---------------------------------|---------------------------------|--------------------------|-------------|--------------------------------------------------|
12
- | `appearance` | `appearance` | `'default' \| 'inverse'` | "'default'" | Defines whether the component will be on lighter or darker backgrounds. |
13
- | `disabled` | `disabled` | `boolean` | | If true, all radio buttons will be disabled. |
14
- | `error` | `error` | `string` | | If true, sets persistent validity to `customError` and sets `setCustomValidity` = attribute value. |
15
- | `horizontal` | `horizontal` | `boolean` | | If true, displays radio buttons horizontally. |
16
- | `noValidate` | `noValidate` | `boolean` | | If true, disables auto-validation on blur. |
17
- | `onDark` | `onDark` | `boolean` | | DEPRECATED - use `appearance="inverse"` instead. |
18
- | `optionSelected` | `optionSelected` | `object` | | Specifies the current selected radio button. |
19
- | `required` | `required` | `boolean` | | Populates the `required` attribute on the element. Used for client-side validation. |
20
- | `setCustomValidity` | `setCustomValidity` | `string` | | Sets a custom help text message to display for all validityStates. |
21
- | `setCustomValidityCustomError` | `setCustomValidityCustomError` | `string` | | Custom help text message to display when validity = `customError`. |
22
- | `setCustomValidityValueMissing` | `setCustomValidityValueMissing` | `string` | | Custom help text message to display when validity = `valueMissing`. |
23
- | `validity` | `validity` | `string` | | Specifies the `validityState` this element is in. |
24
- | `value` | `value` | `string` | | Specifies the current value of the selected radio button. |
11
+ |---------------------------------|---------------------------------|--------------------------|-------------|--------------------------------------------------|
12
+ | [appearance](#appearance) | `appearance` | `'default' \| 'inverse'` | "'default'" | Defines whether the component will be on lighter or darker backgrounds. |
13
+ | [disabled](#disabled) | `disabled` | `boolean` | | If true, all radio buttons will be disabled. |
14
+ | [error](#error) | `error` | `string` | | If true, sets persistent validity to `customError` and sets `setCustomValidity` = attribute value. |
15
+ | [horizontal](#horizontal) | `horizontal` | `boolean` | | If true, displays radio buttons horizontally. |
16
+ | [noValidate](#noValidate) | `noValidate` | `boolean` | | If true, disables auto-validation on blur. |
17
+ | [onDark](#onDark) | `onDark` | `boolean` | | DEPRECATED - use `appearance="inverse"` instead. |
18
+ | [optionSelected](#optionSelected) | `optionSelected` | `object` | | Specifies the current selected radio button. |
19
+ | [required](#required) | `required` | `boolean` | | Populates the `required` attribute on the element. Used for client-side validation. |
20
+ | [setCustomValidity](#setCustomValidity) | `setCustomValidity` | `string` | | Sets a custom help text message to display for all validityStates. |
21
+ | [setCustomValidityCustomError](#setCustomValidityCustomError) | `setCustomValidityCustomError` | `string` | | Custom help text message to display when validity = `customError`. |
22
+ | [setCustomValidityValueMissing](#setCustomValidityValueMissing) | `setCustomValidityValueMissing` | `string` | | Custom help text message to display when validity = `valueMissing`. |
23
+ | [validity](#validity) | `validity` | `string` | | Specifies the `validityState` this element is in. |
24
+ | [value](#value) | `value` | `string` | | Specifies the current value of the selected radio button. |
25
25
 
26
26
  ## Methods
27
27
 
28
28
  | Method | Type | Description |
29
- |------------|----------------------------------------|--------------------------------------------------|
30
- | `reset` | `(): void` | Resets component to initial state. |
31
- | `validate` | `(force?: boolean \| undefined): void` | Validates value.<br /><br />**force**: Whether to force validation. |
29
+ |------------|----------------------------------------|--------------------------------------------------|
30
+ | [reset](#reset) | `(): void` | Resets component to initial state. |
31
+ | [validate](#validate) | `(force?: boolean \| undefined): void` | Validates value.<br /><br />**force**: Whether to force validation. |
32
32
 
33
33
  ## Events
34
34
 
35
35
  | Event | Type | Description |
36
36
  |-----------------------------|--------------------|--------------------------------------------------|
37
- | `auroFormElement-validated` | | Notifies that the element has been validated. |
38
- | `input` | `CustomEvent<any>` | Notifies every time the value prop of the element is changed. |
37
+ | `auroFormElement-validated` | | Notifies that the element has been validated. |
38
+ | [input](#input) | `CustomEvent<any>` | Notifies every time the value prop of the element is changed. |
39
39
 
40
40
  ## Slots
41
41
 
42
42
  | Name | Description |
43
- |-----------------|--------------------------------------------------|
44
- | `helpText` | Allows for the helper text to be overridden. |
45
- | `legend` | Allows for the legend to be overridden. |
46
- | `optionalLabel` | Allows overriding the optional display text "(optional)", which appears next to the label. |
43
+ |-----------------|--------------------------------------------------|
44
+ | [helpText](#helpText) | Allows for the helper text to be overridden. |
45
+ | [legend](#legend) | Allows for the legend to be overridden. |
46
+ | [optionalLabel](#optionalLabel) | Allows overriding the optional display text "(optional)", which appears next to the label. |
47
47
 
48
48
  ## CSS Shadow Parts
49
49
 
@@ -58,41 +58,41 @@ The `auro-radio` element is used to a button that allows the user to select one
58
58
  ## Properties
59
59
 
60
60
  | Property | Attribute | Type | Default | Description |
61
- |--------------|--------------|--------------------------|-------------|--------------------------------------------------|
62
- | `appearance` | `appearance` | `'default' \| 'inverse'` | "'default'" | Defines whether the component will be on lighter or darker backgrounds. |
63
- | `checked` | `checked` | `boolean` | | If set to true, the radio button will be filled. |
64
- | `disabled` | `disabled` | `boolean` | | If set to true, the radio button will be non-clickable. |
65
- | `error` | `error` | `boolean` | | If set to true, sets an error state on the radio button. |
66
- | `id` | `id` | `string` | | The id global attribute defines an identifier (ID) which must be unique in the whole document. |
67
- | `label` | `label` | `string` | | Label for the radio button. |
68
- | `name` | `name` | `string` | | Name for the radio button group. |
69
- | `onDark` | `onDark` | `boolean` | | DEPRECATED - use `appearance="inverse"` instead. |
70
- | `required` | `required` | `boolean` | | Defines element as required. |
71
- | `value` | `value` | `string` | | The value of the radio button. |
61
+ |--------------|--------------|--------------------------|-------------|--------------------------------------------------|
62
+ | [appearance](#appearance) | `appearance` | `'default' \| 'inverse'` | "'default'" | Defines whether the component will be on lighter or darker backgrounds. |
63
+ | [checked](#checked) | `checked` | `boolean` | | If set to true, the radio button will be filled. |
64
+ | [disabled](#disabled) | `disabled` | `boolean` | | If set to true, the radio button will be non-clickable. |
65
+ | [error](#error) | `error` | `boolean` | | If set to true, sets an error state on the radio button. |
66
+ | [id](#id) | `id` | `string` | | The id global attribute defines an identifier (ID) which must be unique in the whole document. |
67
+ | [label](#label) | `label` | `string` | | Label for the radio button. |
68
+ | [name](#name) | `name` | `string` | | Name for the radio button group. |
69
+ | [onDark](#onDark) | `onDark` | `boolean` | | DEPRECATED - use `appearance="inverse"` instead. |
70
+ | [required](#required) | `required` | `boolean` | | Defines element as required. |
71
+ | [value](#value) | `value` | `string` | | The value of the radio button. |
72
72
 
73
73
  ## Methods
74
74
 
75
75
  | Method | Type | Description |
76
- |---------|------------|------------------------------------|
77
- | `reset` | `(): void` | Resets component to initial state. |
76
+ |---------|------------|------------------------------------|
77
+ | [reset](#reset) | `(): void` | Resets component to initial state. |
78
78
 
79
79
  ## Events
80
80
 
81
81
  | Event | Type | Description |
82
82
  |----------------------|--------------------|--------------------------------------------------|
83
83
  | `auroRadio-blur` | `CustomEvent<any>` | Notifies that the component has lost focus. |
84
- | `auroRadio-selected` | `CustomEvent<any>` | Notifies that the component has been marked as checked/selected. |
85
- | `change` | `CustomEvent<any>` | (Deprecated) Notifies when checked value is changed. |
86
- | `focusSelected` | `CustomEvent<any>` | Notifies that the component has gained focus. |
87
- | `input` | `InputEvent` | Notifies when when checked value is changed by user's interface. |
88
- | `resetRadio` | `CustomEvent<any>` | Notifies that the component has reset the checked/selected state. |
89
- | `toggleSelected` | `CustomEvent<any>` | Notifies that the component has toggled the checked/selected state. |
84
+ | `auroRadio-selected` | `CustomEvent<any>` | Notifies that the component has been marked as checked/selected. |
85
+ | [change](#change) | `CustomEvent<any>` | (Deprecated) Notifies when checked value is changed. |
86
+ | [focusSelected](#focusSelected) | `CustomEvent<any>` | Notifies that the component has gained focus. |
87
+ | [input](#input) | `InputEvent` | Notifies when when checked value is changed by user's interface. |
88
+ | [resetRadio](#resetRadio) | `CustomEvent<any>` | Notifies that the component has reset the checked/selected state. |
89
+ | [toggleSelected](#toggleSelected) | `CustomEvent<any>` | Notifies that the component has toggled the checked/selected state. |
90
90
 
91
91
  ## CSS Shadow Parts
92
92
 
93
93
  | Part | Description |
94
- |---------------|-------------------------------------------|
95
- | `radio` | apply css to a specific checkbox. |
94
+ |---------------|-------------------------------------------|
95
+ | [radio](#radio) | apply css to a specific checkbox. |
96
96
  | `radio-input` | apply css to a specific checkbox's input. |
97
97
  | `radio-label` | apply css to a specific checkbox's label. |
98
98
  <!-- AURO-GENERATED-CONTENT:END -->