@aurodesignsystem-dev/auro-formkit 0.0.0-pr1451.13 → 0.0.0-pr1451.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/checkbox/demo/api.min.js +3 -3
- package/components/checkbox/demo/index.min.js +3 -3
- package/components/checkbox/dist/index.js +3 -3
- package/components/checkbox/dist/registered.js +3 -3
- 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.min.js +10 -9
- package/components/combobox/demo/customize.md +180 -30
- package/components/combobox/demo/customize.min.js +30 -28
- package/components/combobox/demo/design.html +2 -43
- package/components/combobox/demo/design.md +4 -4
- package/components/combobox/demo/getting-started.md +51 -39
- package/components/combobox/demo/getting-started.min.js +9 -9
- package/components/combobox/demo/index.md +3 -2
- package/components/combobox/demo/index.min.js +10 -9
- 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 +1 -1
- package/components/combobox/demo/voiceover.html +2 -20
- package/components/combobox/dist/index.js +7 -7
- package/components/combobox/dist/registered.js +7 -7
- package/components/counter/demo/api.min.js +6 -6
- package/components/counter/demo/index.min.js +6 -6
- package/components/counter/demo/keyboard-behavior.md +1 -1
- package/components/counter/dist/index.js +6 -6
- package/components/counter/dist/registered.js +6 -6
- package/components/datepicker/demo/api.min.js +11 -11
- package/components/datepicker/demo/index.min.js +11 -11
- package/components/datepicker/dist/index.js +11 -11
- package/components/datepicker/dist/registered.js +11 -11
- package/components/dropdown/demo/api.min.js +2 -2
- package/components/dropdown/demo/index.min.js +2 -2
- package/components/dropdown/demo/keyboard-behavior.md +1 -1
- package/components/dropdown/dist/index.js +2 -2
- package/components/dropdown/dist/registered.js +2 -2
- package/components/form/demo/api.min.js +40 -40
- package/components/form/demo/index.min.js +40 -40
- 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 +0 -1200
- package/components/input/demo/api.min.js +3 -95
- 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 +7430 -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 +7368 -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 +3 -15
- 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/index.js +3 -3
- package/components/input/dist/registered.js +3 -3
- package/components/menu/demo/api.min.js +2 -2
- package/components/menu/demo/index.min.js +2 -2
- package/components/menu/dist/index.js +2 -2
- package/components/menu/dist/registered.js +2 -2
- package/components/radio/demo/api.min.js +3 -3
- package/components/radio/demo/index.min.js +3 -3
- 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.md +1 -1
- package/components/select/demo/customize.js +1 -13
- package/components/select/demo/customize.md +158 -1
- package/components/select/demo/customize.min.js +9 -9
- package/components/select/demo/design.md +2 -2
- package/components/select/demo/getting-started.js +1 -3
- package/components/select/demo/getting-started.md +53 -18
- package/components/select/demo/getting-started.min.js +9 -9
- package/components/select/demo/index.html +2 -0
- 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.md +3 -3
- package/components/select/demo/readme.md +7 -4
- package/components/select/demo/styles.css +1 -1
- package/components/select/dist/index.js +5 -5
- package/components/select/dist/registered.js +5 -5
- package/package.json +2 -2
- package/components/combobox/demo/install.html +0 -94
- package/components/combobox/demo/install.js +0 -24
- package/components/combobox/demo/install.md +0 -98
- package/components/combobox/demo/install.min.js +0 -17992
- package/components/select/demo/install.md +0 -92
|
@@ -12,6 +12,15 @@
|
|
|
12
12
|
<auro-anchorlink fluid href="#react" class="level2 body-xs" onclick="openAccordion('react')">React</auro-anchorlink>
|
|
13
13
|
<auro-anchorlink fluid href="#svelte" class="level2 body-xs" onclick="openAccordion('svelte')">Svelte</auro-anchorlink>
|
|
14
14
|
<auro-anchorlink fluid href="#minimalConfig">Minimal Config</auro-anchorlink>
|
|
15
|
+
<auro-anchorlink fluid href="#slots">Slots</auro-anchorlink>
|
|
16
|
+
<auro-anchorlink fluid href="#slot-default" class="level2 body-xs">(default)</auro-anchorlink>
|
|
17
|
+
<auro-anchorlink fluid href="#slot-label" class="level2 body-xs">label</auro-anchorlink>
|
|
18
|
+
<auro-anchorlink fluid href="#slot-helpText" class="level2 body-xs">helpText</auro-anchorlink>
|
|
19
|
+
<auro-anchorlink fluid href="#slot-optionalLabel" class="level2 body-xs">optionalLabel</auro-anchorlink>
|
|
20
|
+
<auro-anchorlink fluid href="#slot-displayValue" class="level2 body-xs">displayValue</auro-anchorlink>
|
|
21
|
+
<auro-anchorlink fluid href="#slot-ariaLabel-input-clear" class="level2 body-xs">ariaLabel.input.clear</auro-anchorlink>
|
|
22
|
+
<auro-anchorlink fluid href="#slot-ariaLabel-bib-close" class="level2 body-xs">ariaLabel.bib.close</auro-anchorlink>
|
|
23
|
+
<auro-anchorlink fluid href="#slot-bib-fullscreen-headline" class="level2 body-xs">bib.fullscreen.headline</auro-anchorlink>
|
|
15
24
|
<auro-anchorlink fluid href="#stateManagement">State Management</auro-anchorlink>
|
|
16
25
|
<auro-anchorlink fluid href="#inputValue" class="level2 body-xs">inputValue</auro-anchorlink>
|
|
17
26
|
<auro-anchorlink fluid href="#optionSelected" class="level2 body-xs">optionSelected</auro-anchorlink>
|
|
@@ -43,16 +52,13 @@
|
|
|
43
52
|
<auro-header level="3">Implementation</auro-header>
|
|
44
53
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../docs/partials/customRegistration.md) -->
|
|
45
54
|
<!-- The below content is automatically added from ./../docs/partials/customRegistration.md -->
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
You can do this by importing only the component class and using the `register(name)` method with a unique name:
|
|
55
|
-
|
|
55
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../../../docs/partials/customRegistrationDescription.md) -->
|
|
56
|
+
<!-- The below content is automatically added from ./../../../docs/partials/customRegistrationDescription.md -->
|
|
57
|
+
<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>
|
|
58
|
+
<p>The default import (shown above) handles both steps automatically, registering the component under its standard tag name.</p>
|
|
59
|
+
<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>
|
|
60
|
+
<p>To do this, import the component class directly and call its <code>register(name)</code> method with a unique name:</p>
|
|
61
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
56
62
|
<pre class="language-js"><code class="language-js">// Import the class only
|
|
57
63
|
import { AuroCombobox } from '@aurodesignsystem/auro-formkit/auro-combobox/class';
|
|
58
64
|
|
|
@@ -61,22 +67,6 @@ AuroCombobox.register('custom-combobox');</code></pre>
|
|
|
61
67
|
|
|
62
68
|
This will create a new custom element `<custom-combobox>` that behaves exactly like `<auro-combobox>`, allowing both to coexist on the same page without interfering with each other.
|
|
63
69
|
|
|
64
|
-
<div class="exampleWrapper exampleWrapper--flex">
|
|
65
|
-
<custom-combobox>
|
|
66
|
-
<span slot="bib.fullscreen.headline">Bib Header</span>
|
|
67
|
-
<span slot="label">Name</span>
|
|
68
|
-
<auro-menu>
|
|
69
|
-
<auro-menuoption value="Apples" id="option-0">Apples</auro-menuoption>
|
|
70
|
-
<auro-menuoption value="Oranges" id="option-1">Oranges</auro-menuoption>
|
|
71
|
-
<auro-menuoption value="Peaches" id="option-2">Peaches</auro-menuoption>
|
|
72
|
-
<auro-menuoption value="Grapes" id="option-3">Grapes</auro-menuoption>
|
|
73
|
-
<auro-menuoption value="Cherries" id="option-4">Cherries</auro-menuoption>
|
|
74
|
-
<auro-menuoption static nomatch>No matching option</auro-menuoption>
|
|
75
|
-
</auro-menu>
|
|
76
|
-
</custom-combobox>
|
|
77
|
-
</div>
|
|
78
|
-
<auro-accordion alignRight>
|
|
79
|
-
<span slot="trigger">See code</span>
|
|
80
70
|
<pre class="language-html"><code class="language-html"><custom-combobox>
|
|
81
71
|
<span slot="bib.fullscreen.headline">Bib Header</span>
|
|
82
72
|
<span slot="label">Name</span>
|
|
@@ -89,7 +79,6 @@ This will create a new custom element `<custom-combobox>` that behaves exactly l
|
|
|
89
79
|
<auro-menuoption static nomatch>No matching option</auro-menuoption>
|
|
90
80
|
</auro-menu>
|
|
91
81
|
</custom-combobox></code></pre>
|
|
92
|
-
</auro-accordion>
|
|
93
82
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
94
83
|
</div>
|
|
95
84
|
</auro-accordion>
|
|
@@ -103,8 +92,8 @@ This will create a new custom element `<custom-combobox>` that behaves exactly l
|
|
|
103
92
|
<pre class="language-shell"><code class="language-shell">$ npm i @aurodesignsystem/auro-formkit</code></pre>
|
|
104
93
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
105
94
|
<auro-header level="3">Implementation</auro-header>
|
|
106
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../docs/
|
|
107
|
-
<!-- The below content is automatically added from ./../docs/
|
|
95
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../docs/partials/getting-started/defaultRegistration.md) -->
|
|
96
|
+
<!-- The below content is automatically added from ./../docs/partials/getting-started/defaultRegistration.md -->
|
|
108
97
|
<p>Once installed, the component can be used in your project by importing the component's registered module:</p>
|
|
109
98
|
<pre class="language-js"><code class="language-js">import '@aurodesignsystem/auro-formkit/auro-combobox';</code></pre>
|
|
110
99
|
<p>This import registers the <code><auro-combobox></code> custom element globally. You can then use it in your HTML:</p>
|
|
@@ -124,8 +113,8 @@ This will create a new custom element `<custom-combobox>` that behaves exactly l
|
|
|
124
113
|
<div class="accordion-content">
|
|
125
114
|
<p class="warning"><strong>Warning:</strong> CDN install & registration can cause conflicts if another package registers the same tag name using a different version of the component, leading to unexpected behavior. Use custom registration to avoid this risk.</p>
|
|
126
115
|
<auro-header level="3">Install & Implementation</auro-header>
|
|
127
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../docs/
|
|
128
|
-
<!-- The below content is automatically added from ./../docs/
|
|
116
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../docs/partials/getting-started/cdnRegistration.md) -->
|
|
117
|
+
<!-- The below content is automatically added from ./../docs/partials/getting-started/cdnRegistration.md -->
|
|
129
118
|
<p>Add the following script tag to your HTML to load the component directly from a CDN:</p>
|
|
130
119
|
<pre class="language-html"><code class="language-html"><script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@latest/auro-combobox/+esm"></script></code></pre>
|
|
131
120
|
<p>This script registers the <code><auro-combobox></code> custom element globally. You can then use it in your HTML:</p>
|
|
@@ -143,15 +132,15 @@ This will create a new custom element `<custom-combobox>` that behaves exactly l
|
|
|
143
132
|
</auro-accordion-group>
|
|
144
133
|
</section>
|
|
145
134
|
<section>
|
|
146
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../docs/
|
|
147
|
-
<!-- The below content is automatically added from ./../docs/
|
|
135
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../docs/partials/getting-started/frameworks.md) -->
|
|
136
|
+
<!-- The below content is automatically added from ./../docs/partials/getting-started/frameworks.md -->
|
|
148
137
|
<auro-header level="2" id="frameworks">Frameworks</auro-header>
|
|
149
138
|
<auro-accordion-group Emphasis>
|
|
150
139
|
<auro-accordion class="section" id="react">
|
|
151
140
|
<span slot="trigger">React</span>
|
|
152
141
|
<div class="accordion-content">
|
|
153
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../docs/
|
|
154
|
-
<!-- The below content is automatically added from ./../docs/
|
|
142
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../docs/partials/getting-started/react.md) -->
|
|
143
|
+
<!-- The below content is automatically added from ./../docs/partials/getting-started/react.md -->
|
|
155
144
|
React 19 includes <a href="https://react.dev/blog/2024/12/05/react-19#support-for-custom-elements">native support for custom elements</a>, so <code><auro-combobox></code> works directly in JSX without any wrapper library.
|
|
156
145
|
|
|
157
146
|
<auro-header level="3" id="reactImport">Import the Component</auro-header>
|
|
@@ -234,8 +223,8 @@ Ensure your `tsconfig.json` uses `"moduleResolution": "bundler"` so TypeScript c
|
|
|
234
223
|
<auro-accordion class="section" id="svelte">
|
|
235
224
|
<span slot="trigger">Svelte</span>
|
|
236
225
|
<div class="accordion-content">
|
|
237
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../docs/
|
|
238
|
-
<!-- The below content is automatically added from ./../docs/
|
|
226
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../docs/partials/getting-started/svelte.md) -->
|
|
227
|
+
<!-- The below content is automatically added from ./../docs/partials/getting-started/svelte.md -->
|
|
239
228
|
Svelte has <a href="https://svelte.dev/docs/svelte/custom-elements">native support for custom elements</a>, so <code><auro-combobox></code> works directly in Svelte templates without any wrapper or configuration.
|
|
240
229
|
|
|
241
230
|
<auro-header level="3" id="svelteImport">Import the Component</auro-header>
|
|
@@ -330,8 +319,8 @@ Ensure your `tsconfig.json` uses `"moduleResolution": "bundler"` so TypeScript c
|
|
|
330
319
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
331
320
|
</section>
|
|
332
321
|
<section>
|
|
333
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../docs/
|
|
334
|
-
<!-- The below content is automatically added from ./../docs/
|
|
322
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../docs/partials/getting-started/minimal-config.md) -->
|
|
323
|
+
<!-- The below content is automatically added from ./../docs/partials/getting-started/minimal-config.md -->
|
|
335
324
|
<auro-header level="3" id="minimalConfig">Minimal Configuration</auro-header>
|
|
336
325
|
Every <code><auro-combobox></code> implementation requires three things:
|
|
337
326
|
|
|
@@ -351,6 +340,29 @@ Every <code><auro-combobox></code> implementation requires three things:
|
|
|
351
340
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
352
341
|
</section>
|
|
353
342
|
<section>
|
|
343
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../docs/partials/getting-started/slots.md) -->
|
|
344
|
+
<!-- The below content is automatically added from ./../docs/partials/getting-started/slots.md -->
|
|
345
|
+
<auro-header level="2" id="slots">Slots</auro-header>
|
|
346
|
+
<p>The following slots are available on the <code><auro-combobox></code> element.</p>
|
|
347
|
+
<auro-header level="3" id="slot-default">(default)</auro-header>
|
|
348
|
+
<p>Default slot for the menu content. Place <code><auro-menuoption></code> elements here.</p>
|
|
349
|
+
<auro-header level="3" id="slot-label">label</auro-header>
|
|
350
|
+
<p>Defines the content of the label.</p>
|
|
351
|
+
<auro-header level="3" id="slot-helpText">helpText</auro-header>
|
|
352
|
+
<p>Defines the content of the help text displayed below the combobox.</p>
|
|
353
|
+
<auro-header level="3" id="slot-optionalLabel">optionalLabel</auro-header>
|
|
354
|
+
<p>Allows overriding the optional display text <code>"(optional)"</code>, which appears next to the label.</p>
|
|
355
|
+
<auro-header level="3" id="slot-displayValue">displayValue</auro-header>
|
|
356
|
+
<p>Allows custom HTML content to display the selected value when the combobox is not focused. Only works with <code>snowflake</code> and <code>emphasized</code> layouts.</p>
|
|
357
|
+
<auro-header level="3" id="slot-ariaLabel-input-clear">ariaLabel.input.clear</auro-header>
|
|
358
|
+
<p>Sets <code>aria-label</code> on the clear button.</p>
|
|
359
|
+
<auro-header level="3" id="slot-ariaLabel-bib-close">ariaLabel.bib.close</auro-header>
|
|
360
|
+
<p>Sets <code>aria-label</code> on the close button in the fullscreen bib.</p>
|
|
361
|
+
<auro-header level="3" id="slot-bib-fullscreen-headline">bib.fullscreen.headline</auro-header>
|
|
362
|
+
<p>Defines the headline to display above menu options in the fullscreen bib.</p>
|
|
363
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
364
|
+
</section>
|
|
365
|
+
<section>
|
|
354
366
|
<auro-header level="2" id="stateManagement">State Management</auro-header>
|
|
355
367
|
<p>The following read-only properties reflect the current state of the component and can be accessed via JavaScript.</p>
|
|
356
368
|
<auro-header level="3" id="inputValue">inputValue</auro-header>
|