@aurodesignsystem/auro-formkit 5.9.1 → 5.9.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 (127) hide show
  1. package/CHANGELOG.md +16 -4
  2. package/components/checkbox/README.md +62 -62
  3. package/components/checkbox/demo/api.js +1 -1
  4. package/components/checkbox/demo/api.md +127 -84
  5. package/components/checkbox/demo/api.min.js +125 -42
  6. package/components/checkbox/demo/index.md +9 -281
  7. package/components/checkbox/demo/index.min.js +125 -42
  8. package/components/checkbox/demo/readme.html +3 -4
  9. package/components/checkbox/demo/readme.md +62 -62
  10. package/components/checkbox/dist/auro-checkbox-group.d.ts +7 -8
  11. package/components/checkbox/dist/auro-checkbox.d.ts +74 -20
  12. package/components/checkbox/dist/index.js +125 -42
  13. package/components/checkbox/dist/registered.js +125 -42
  14. package/components/combobox/README.md +76 -74
  15. package/components/combobox/demo/api.html +1 -0
  16. package/components/combobox/demo/api.js +11 -12
  17. package/components/combobox/demo/api.md +1302 -875
  18. package/components/combobox/demo/api.min.js +348 -420
  19. package/components/combobox/demo/index.html +1 -7
  20. package/components/combobox/demo/index.js +0 -19
  21. package/components/combobox/demo/index.md +43 -723
  22. package/components/combobox/demo/index.min.js +301 -230
  23. package/components/combobox/demo/readme.html +3 -4
  24. package/components/combobox/demo/readme.md +76 -74
  25. package/components/combobox/dist/auro-combobox.d.ts +39 -40
  26. package/components/combobox/dist/index.js +159 -143
  27. package/components/combobox/dist/registered.js +159 -143
  28. package/components/counter/README.md +81 -66
  29. package/components/counter/demo/api.html +1 -2
  30. package/components/counter/demo/api.js +2 -2
  31. package/components/counter/demo/api.md +777 -259
  32. package/components/counter/demo/api.min.js +84 -112
  33. package/components/counter/demo/index.html +0 -2
  34. package/components/counter/demo/index.md +20 -329
  35. package/components/counter/demo/index.min.js +82 -93
  36. package/components/counter/demo/readme.html +3 -4
  37. package/components/counter/demo/readme.md +81 -66
  38. package/components/counter/dist/auro-counter-group.d.ts +21 -36
  39. package/components/counter/dist/auro-counter-wrapper.d.ts +1 -6
  40. package/components/counter/dist/auro-counter.d.ts +5 -8
  41. package/components/counter/dist/index.js +82 -93
  42. package/components/counter/dist/registered.js +82 -93
  43. package/components/datepicker/README.md +57 -61
  44. package/components/datepicker/demo/api.js +8 -8
  45. package/components/datepicker/demo/api.md +720 -561
  46. package/components/datepicker/demo/api.min.js +427 -2424
  47. package/components/datepicker/demo/index.md +65 -117
  48. package/components/datepicker/demo/index.min.js +427 -2424
  49. package/components/datepicker/demo/readme.html +3 -4
  50. package/components/datepicker/demo/readme.md +57 -61
  51. package/components/datepicker/dist/auro-calendar.d.ts +60 -34
  52. package/components/datepicker/dist/auro-datepicker.d.ts +31 -31
  53. package/components/datepicker/dist/index.js +256 -2253
  54. package/components/datepicker/dist/popoverVersion.d.ts +1 -1
  55. package/components/datepicker/dist/registered.js +256 -2253
  56. package/components/dropdown/README.md +78 -62
  57. package/components/dropdown/demo/api.js +4 -4
  58. package/components/dropdown/demo/api.md +520 -478
  59. package/components/dropdown/demo/api.min.js +48 -39
  60. package/components/dropdown/demo/index.md +65 -119
  61. package/components/dropdown/demo/index.min.js +38 -29
  62. package/components/dropdown/demo/readme.html +3 -4
  63. package/components/dropdown/demo/readme.md +78 -62
  64. package/components/dropdown/dist/auro-dropdown.d.ts +42 -33
  65. package/components/dropdown/dist/index.js +38 -29
  66. package/components/dropdown/dist/registered.js +38 -29
  67. package/components/form/README.md +16 -58
  68. package/components/form/demo/api.md +16 -21
  69. package/components/form/demo/api.min.js +13 -8
  70. package/components/form/demo/index.md +38 -39
  71. package/components/form/demo/index.min.js +13 -8
  72. package/components/form/demo/readme.md +16 -58
  73. package/components/form/dist/auro-form.d.ts +15 -3
  74. package/components/form/dist/index.js +13 -8
  75. package/components/form/dist/registered.js +13 -8
  76. package/components/input/README.md +55 -60
  77. package/components/input/demo/api.js +3 -5
  78. package/components/input/demo/api.md +558 -537
  79. package/components/input/demo/api.min.js +100 -113
  80. package/components/input/demo/index.js +0 -1
  81. package/components/input/demo/index.md +90 -203
  82. package/components/input/demo/index.min.js +85 -97
  83. package/components/input/demo/readme.html +3 -4
  84. package/components/input/demo/readme.md +55 -60
  85. package/components/input/dist/auro-input.d.ts +6 -5
  86. package/components/input/dist/base-input.d.ts +67 -68
  87. package/components/input/dist/index.js +85 -80
  88. package/components/input/dist/registered.js +85 -80
  89. package/components/menu/README.md +61 -61
  90. package/components/menu/demo/api.js +6 -8
  91. package/components/menu/demo/api.md +520 -572
  92. package/components/menu/demo/api.min.js +176 -92
  93. package/components/menu/demo/index.js +0 -5
  94. package/components/menu/demo/index.md +36 -119
  95. package/components/menu/demo/index.min.js +141 -96
  96. package/components/menu/demo/readme.html +3 -4
  97. package/components/menu/demo/readme.md +61 -61
  98. package/components/menu/dist/auro-menu.d.ts +70 -37
  99. package/components/menu/dist/auro-menuoption.d.ts +36 -11
  100. package/components/menu/dist/index.js +141 -45
  101. package/components/menu/dist/registered.js +141 -45
  102. package/components/radio/README.md +61 -57
  103. package/components/radio/demo/api.js +2 -2
  104. package/components/radio/demo/api.md +241 -170
  105. package/components/radio/demo/api.min.js +154 -77
  106. package/components/radio/demo/index.md +22 -99
  107. package/components/radio/demo/index.min.js +145 -68
  108. package/components/radio/demo/readme.html +3 -4
  109. package/components/radio/demo/readme.md +61 -57
  110. package/components/radio/dist/auro-radio-group.d.ts +67 -35
  111. package/components/radio/dist/auro-radio.d.ts +56 -33
  112. package/components/radio/dist/index.js +145 -68
  113. package/components/radio/dist/registered.js +145 -68
  114. package/components/select/README.md +68 -65
  115. package/components/select/demo/api.html +1 -0
  116. package/components/select/demo/api.js +7 -7
  117. package/components/select/demo/api.md +1305 -625
  118. package/components/select/demo/api.min.js +300 -199
  119. package/components/select/demo/index.html +0 -2
  120. package/components/select/demo/index.md +25 -833
  121. package/components/select/demo/index.min.js +299 -167
  122. package/components/select/demo/readme.html +3 -4
  123. package/components/select/demo/readme.md +68 -65
  124. package/components/select/dist/auro-select.d.ts +99 -90
  125. package/components/select/dist/index.js +158 -122
  126. package/components/select/dist/registered.js +158 -122
  127. package/package.json +3 -3
@@ -18,6 +18,7 @@ The following sections are editable by making changes to the following files:
18
18
  -->
19
19
 
20
20
  # Form
21
+
21
22
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=./docs/partials/description.md) -->
22
23
  <!-- The below content is automatically added from ./docs/partials/description.md -->
23
24
  `<auro-form>` is a [HTML custom element](https://developer.mozilla.org/en-US/docs/Web/Web_Components/Using_custom_elements) designed to
@@ -31,7 +32,15 @@ them (along with events) to the parent form element as a JSON object.
31
32
  <!-- AURO-GENERATED-CONTENT This file is to be used for any additional content that should be included in the README.md which is specific to this component. -->
32
33
  <!-- AURO-GENERATED-CONTENT:END -->
33
34
 
35
+ ## Form Use Cases
36
+
37
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./docs/partials/useCases.md) -->
38
+ <!-- The below content is automatically added from ./docs/partials/useCases.md -->
39
+ The `<auro-form>` element should be used in situations where users want to build HTML forms.
40
+ <!-- AURO-GENERATED-CONTENT:END -->
41
+
34
42
  ## Getting Started
43
+
35
44
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=../../docs/templates/componentInstall.md) -->
36
45
  <!-- The below content is automatically added from ../../docs/templates/componentInstall.md -->
37
46
 
@@ -44,30 +53,7 @@ $ npm i @aurodesignsystem/auro-formkit
44
53
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=../../docs/templates/gettingStarted.md) -->
45
54
  <!-- The below content is automatically added from ../../docs/templates/gettingStarted.md -->
46
55
 
47
- ### Import Options
48
-
49
- #### Automatic Registration
50
-
51
- For automatic registration, simply import the component:
52
-
53
- ```javascript
54
- // Registers <auro-form> automatically
55
- import '@aurodesignsystem/auro-formkit/auro-form';
56
- ```
57
-
58
- #### Custom Registration
59
-
60
- To protect from versioning conflicts with other instances of the component being loaded, it is recommended to use our static `AuroForm.register('custom-form')` method on the component class and pass in a unique name.
61
-
62
- ```javascript
63
- // Import the class only
64
- import { AuroForm } from '@aurodesignsystem/auro-formkit/auro-form/class';
65
-
66
- // Register with a custom name if desired
67
- AuroForm.register('custom-form');
68
- ```
69
-
70
- #### TypeScript Module Resolution
56
+ ### TypeScript Module Resolution
71
57
 
72
58
  When using TypeScript set `moduleResolution` to `bundler`, add the following to your `tsconfig.json`:
73
59
 
@@ -80,30 +66,10 @@ When using TypeScript set `moduleResolution` to `bundler`, add the following to
80
66
  ```
81
67
 
82
68
  This configuration enables proper module resolution for the component's TypeScript files.
83
- <!-- AURO-GENERATED-CONTENT:END -->
84
- **Reference component in HTML**
85
-
86
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=./apiExamples/basic.html) -->
87
- <!-- The below code snippet is automatically added from ./apiExamples/basic.html -->
88
-
89
- ```html
90
- <auro-form>
91
- <auro-input id="search-box" name="searchBox" required>
92
- <span slot="label">Search flights</span>
93
- </auro-input>
94
- <auro-button type="submit">Submit</auro-button>
95
- </auro-form>
96
- ```
97
- <!-- AURO-GENERATED-CONTENT:END -->
98
-
99
- ### Design Token CSS Custom Property dependency
100
-
101
- <!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/WC-Generator/master/componentDocs/partials/development/designTokens.md) -->
102
- The use of any Auro custom element has a dependency on the [Auro Design Tokens](https://auro.alaskaair.com/getting-started/developers/design-tokens).
103
-
104
69
  <!-- AURO-GENERATED-CONTENT:END -->
105
70
 
106
71
  ## Install from CDN
72
+
107
73
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=../../docs/templates/bundleInstallDescription.md) -->
108
74
  <!-- The below content is automatically added from ../../docs/templates/bundleInstallDescription.md -->
109
75
  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.
@@ -113,19 +79,7 @@ In cases where the project is not able to process JS assets, there are pre-proce
113
79
  ```
114
80
  <!-- AURO-GENERATED-CONTENT:END -->
115
81
 
116
- ## UI development browser support
117
- <!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/WC-Generator/master/componentDocs/partials/browserSupport.md) -->
118
- For the most up to date information on [UI development browser support](https://auro.alaskaair.com/support/browsersSupport)
119
-
120
- <!-- AURO-GENERATED-CONTENT:END -->
121
-
122
- ## auro-form use cases
123
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./docs/partials/useCases.md) -->
124
- <!-- The below content is automatically added from ./docs/partials/useCases.md -->
125
- The `<auro-form>` element should be used in situations where users want to build HTML forms.
126
- <!-- AURO-GENERATED-CONTENT:END -->
127
-
128
- ## Formkit development
82
+ ## Formkit Development
129
83
 
130
84
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=../../docs/partials/developmentDescription.md) -->
131
85
  <!-- The below content is automatically added from ../../docs/partials/developmentDescription.md -->
@@ -139,4 +93,8 @@ To only develop a single component, use the `--filter` flag:
139
93
  ```shell
140
94
  npx turbo dev --filter=@aurodesignsystem/auro-input
141
95
  ```
96
+ <!-- AURO-GENERATED-CONTENT:END -->
97
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./docs/partials/customRegistration.md) -->
98
+ <!-- The below content is automatically added from ./docs/partials/customRegistration.md -->
99
+ The `auro-form` component does not support custom registration at this time.
142
100
  <!-- AURO-GENERATED-CONTENT:END -->
@@ -9,14 +9,26 @@
9
9
  * @typedef {Object.<string, FormStateMember>} FormState - The form state.
10
10
  */
11
11
  /**
12
- * The auro-form element provides users a way to ... (it would be great if you fill this out).
12
+ * The `auro-form` element provides users a way to create and manage forms in a consistent manner.
13
+ * @customElement auro-form
13
14
  *
14
- * @attr {Boolean} fixed - Uses fixed pixel values for element shape
15
- * @attr {String} cssClass - Applies designated CSS class to demo element - you want to delete me!
16
15
  * @event {Event} change - Fires when form state changes.
17
16
  */
18
17
  export class AuroForm extends LitElement {
19
18
  static get properties(): {
19
+ /**
20
+ * Applies designated CSS class to demo element - you want to delete me!
21
+ */
22
+ cssClass: {
23
+ type: BooleanConstructor;
24
+ };
25
+ /**
26
+ * If declared, use fixed pixel values for element shape.
27
+ */
28
+ fixed: {
29
+ type: BooleanConstructor;
30
+ reflect: boolean;
31
+ };
20
32
  formState: {
21
33
  attribute: boolean;
22
34
  };
@@ -85,7 +85,7 @@ class AuroLibraryRuntimeUtils {
85
85
  }
86
86
  }
87
87
 
88
- /* eslint-disable no-underscore-dangle,max-lines */
88
+ /* eslint-disable no-underscore-dangle, max-lines, object-property-newline */
89
89
 
90
90
 
91
91
  /**
@@ -100,20 +100,25 @@ class AuroLibraryRuntimeUtils {
100
100
  * @typedef {Object.<string, FormStateMember>} FormState - The form state.
101
101
  */
102
102
 
103
-
104
- // See https://git.io/JJ6SJ for "How to document your components using JSDoc"
105
103
  /**
106
- * The auro-form element provides users a way to ... (it would be great if you fill this out).
104
+ * The `auro-form` element provides users a way to create and manage forms in a consistent manner.
105
+ * @customElement auro-form
107
106
  *
108
- * @attr {Boolean} fixed - Uses fixed pixel values for element shape
109
- * @attr {String} cssClass - Applies designated CSS class to demo element - you want to delete me!
110
107
  * @event {Event} change - Fires when form state changes.
111
108
  */
112
-
113
- // build the component class
114
109
  class AuroForm extends LitElement {
115
110
  static get properties() {
116
111
  return {
112
+
113
+ /**
114
+ * Applies designated CSS class to demo element - you want to delete me!
115
+ */
116
+ cssClass: { type: Boolean },
117
+
118
+ /**
119
+ * If declared, use fixed pixel values for element shape.
120
+ */
121
+ fixed: { type: Boolean, reflect: true },
117
122
  formState: { attribute: false },
118
123
  _validity: { attribute: false },
119
124
  _isInitialState: { attribute: false },
@@ -85,7 +85,7 @@ class AuroLibraryRuntimeUtils {
85
85
  }
86
86
  }
87
87
 
88
- /* eslint-disable no-underscore-dangle,max-lines */
88
+ /* eslint-disable no-underscore-dangle, max-lines, object-property-newline */
89
89
 
90
90
 
91
91
  /**
@@ -100,20 +100,25 @@ class AuroLibraryRuntimeUtils {
100
100
  * @typedef {Object.<string, FormStateMember>} FormState - The form state.
101
101
  */
102
102
 
103
-
104
- // See https://git.io/JJ6SJ for "How to document your components using JSDoc"
105
103
  /**
106
- * The auro-form element provides users a way to ... (it would be great if you fill this out).
104
+ * The `auro-form` element provides users a way to create and manage forms in a consistent manner.
105
+ * @customElement auro-form
107
106
  *
108
- * @attr {Boolean} fixed - Uses fixed pixel values for element shape
109
- * @attr {String} cssClass - Applies designated CSS class to demo element - you want to delete me!
110
107
  * @event {Event} change - Fires when form state changes.
111
108
  */
112
-
113
- // build the component class
114
109
  class AuroForm extends LitElement {
115
110
  static get properties() {
116
111
  return {
112
+
113
+ /**
114
+ * Applies designated CSS class to demo element - you want to delete me!
115
+ */
116
+ cssClass: { type: Boolean },
117
+
118
+ /**
119
+ * If declared, use fixed pixel values for element shape.
120
+ */
121
+ fixed: { type: Boolean, reflect: true },
117
122
  formState: { attribute: false },
118
123
  _validity: { attribute: false },
119
124
  _isInitialState: { attribute: false },
@@ -18,6 +18,7 @@ The following sections are editable by making changes to the following files:
18
18
  -->
19
19
 
20
20
  # Input
21
+
21
22
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=./docs/partials/description.md) -->
22
23
  <!-- The below content is automatically added from ./docs/partials/description.md -->
23
24
  Use the `<auro-input>` custom element to create basic single-line text fields. Supports type `text`, `password`, and `email` with validation, required input, error states and a secondary `bordered` theme. Use the slots `label` and `helpText` for additional content support.
@@ -26,7 +27,18 @@ Use the `<auro-input>` custom element to create basic single-line text fields. S
26
27
  <!-- The below content is automatically added from ./docs/partials/readmeAddlInfo.md -->
27
28
  <!-- AURO-GENERATED-CONTENT:END -->
28
29
 
30
+ ## Input Use Cases
31
+
32
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./docs/partials/useCases.md) -->
33
+ <!-- The below content is automatically added from ./docs/partials/useCases.md -->
34
+ The `<auro-input>` element should be used in situations where users may:
35
+
36
+ * needs to enter information
37
+ * be filling out a form
38
+ <!-- AURO-GENERATED-CONTENT:END -->
39
+
29
40
  ## Getting Started
41
+
30
42
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=../../docs/templates/componentInstall.md) -->
31
43
  <!-- The below content is automatically added from ../../docs/templates/componentInstall.md -->
32
44
 
@@ -39,30 +51,7 @@ $ npm i @aurodesignsystem/auro-formkit
39
51
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=../../docs/templates/gettingStarted.md) -->
40
52
  <!-- The below content is automatically added from ../../docs/templates/gettingStarted.md -->
41
53
 
42
- ### Import Options
43
-
44
- #### Automatic Registration
45
-
46
- For automatic registration, simply import the component:
47
-
48
- ```javascript
49
- // Registers <auro-input> automatically
50
- import '@aurodesignsystem/auro-formkit/auro-input';
51
- ```
52
-
53
- #### Custom Registration
54
-
55
- To protect from versioning conflicts with other instances of the component being loaded, it is recommended to use our static `AuroInput.register('custom-input')` method on the component class and pass in a unique name.
56
-
57
- ```javascript
58
- // Import the class only
59
- import { AuroInput } from '@aurodesignsystem/auro-formkit/auro-input/class';
60
-
61
- // Register with a custom name if desired
62
- AuroInput.register('custom-input');
63
- ```
64
-
65
- #### TypeScript Module Resolution
54
+ ### TypeScript Module Resolution
66
55
 
67
56
  When using TypeScript set `moduleResolution` to `bundler`, add the following to your `tsconfig.json`:
68
57
 
@@ -75,29 +64,10 @@ When using TypeScript set `moduleResolution` to `bundler`, add the following to
75
64
  ```
76
65
 
77
66
  This configuration enables proper module resolution for the component's TypeScript files.
78
- <!-- AURO-GENERATED-CONTENT:END -->
79
- **Reference component in HTML**
80
-
81
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=./apiExamples/basic.html) -->
82
- <!-- The below code snippet is automatically added from ./apiExamples/basic.html -->
83
-
84
- ```html
85
- <auro-input>
86
- <span slot="ariaLabel.clear">Clear All</span>
87
- <span slot="label">Label</span>
88
- <span slot="helpText">Help Text</span>
89
- </auro-input>
90
- ```
91
- <!-- AURO-GENERATED-CONTENT:END -->
92
-
93
- ### Design Token CSS Custom Property dependency
94
-
95
- <!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/WC-Generator/master/componentDocs/partials/development/designTokens.md) -->
96
- The use of any Auro custom element has a dependency on the [Auro Design Tokens](https://auro.alaskaair.com/getting-started/developers/design-tokens).
97
-
98
67
  <!-- AURO-GENERATED-CONTENT:END -->
99
68
 
100
69
  ## Install from CDN
70
+
101
71
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=../../docs/templates/bundleInstallDescription.md) -->
102
72
  <!-- The below content is automatically added from ../../docs/templates/bundleInstallDescription.md -->
103
73
  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.
@@ -107,22 +77,7 @@ In cases where the project is not able to process JS assets, there are pre-proce
107
77
  ```
108
78
  <!-- AURO-GENERATED-CONTENT:END -->
109
79
 
110
- ## UI development browser support
111
- <!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/WC-Generator/master/componentDocs/partials/browserSupport.md) -->
112
- For the most up to date information on [UI development browser support](https://auro.alaskaair.com/support/browsersSupport)
113
-
114
- <!-- AURO-GENERATED-CONTENT:END -->
115
-
116
- ## auro-input use cases
117
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./docs/partials/useCases.md) -->
118
- <!-- The below content is automatically added from ./docs/partials/useCases.md -->
119
- The `<auro-input>` element should be used in situations where users may:
120
-
121
- * needs to enter information
122
- * be filling out a form
123
- <!-- AURO-GENERATED-CONTENT:END -->
124
-
125
- ## Formkit development
80
+ ## Formkit Development
126
81
 
127
82
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=../../docs/partials/developmentDescription.md) -->
128
83
  <!-- The below content is automatically added from ../../docs/partials/developmentDescription.md -->
@@ -136,4 +91,44 @@ To only develop a single component, use the `--filter` flag:
136
91
  ```shell
137
92
  npx turbo dev --filter=@aurodesignsystem/auro-input
138
93
  ```
94
+ <!-- AURO-GENERATED-CONTENT:END -->
95
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./docs/partials/customRegistration.md) -->
96
+ <!-- The below content is automatically added from ./docs/partials/customRegistration.md -->
97
+
98
+ ## Custom Component Registration for Version Management
99
+
100
+ 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.
101
+
102
+ When you install the component as described on the `Install` page, the class is imported automatically, and the component is registered globally for you.
103
+
104
+ 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.
105
+
106
+ You can do this by importing only the component class and using the `register(name)` method with a unique name:
107
+
108
+ ```js
109
+ // Import the class only
110
+ import { AuroInput } from '@aurodesignsystem/auro-formkit/auro-input/class';
111
+
112
+ // Register with a custom name if desired
113
+ AuroInput.register('custom-input');
114
+ ```
115
+
116
+ This will create a new custom element `<custom-input>` that behaves exactly like `<auro-input>`, allowing both to coexist on the same page without interfering with each other.
117
+
118
+ <div class="exampleWrapper exampleWrapper--flex">
119
+ <custom-input>
120
+ <span slot="label">Label</span>
121
+ <span slot="helpText">Help Text</span>
122
+ </custom-input>
123
+ </div>
124
+ <auro-accordion alignRight>
125
+ <span slot="trigger">See code</span>
126
+
127
+ ```html
128
+ <custom-input>
129
+ <span slot="label">Label</span>
130
+ <span slot="helpText">Help Text</span>
131
+ </custom-input>
132
+ ```
133
+ </auro-accordion>
139
134
  <!-- AURO-GENERATED-CONTENT:END -->
@@ -1,17 +1,15 @@
1
- import { changeLang } from "../apiExamples/changeLang";
2
1
  import { customError } from "../apiExamples/error";
3
- import { customErrorOnDark } from "../apiExamples/inverseAppearanceError";
2
+ import { customErrorOnDark } from "../apiExamples/appearance-inverse-error";
4
3
  import { setReadonlyValue } from "../apiExamples/readonly";
5
- import { swapInputValues } from "../apiExamples/swapValue";
6
4
  import { programmaticallySetValue } from "../apiExamples/value";
7
- import { resetStateExample } from "../apiExamples/resetState";
5
+ import { resetStateExample } from "../apiExamples/reset-state";
6
+ import { swapInputValues } from "../apiExamples/swap-value";
8
7
  import './index.js';
9
8
 
10
9
  export function initExamples(initCount) {
11
10
  initCount = initCount || 0;
12
11
 
13
12
  try {
14
- changeLang();
15
13
  customError();
16
14
  customErrorOnDark();
17
15
  setReadonlyValue();