@aurodesignsystem/auro-formkit 5.9.0 → 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 (136) hide show
  1. package/CHANGELOG.md +13 -4
  2. package/README.md +4 -4
  3. package/components/bibtemplate/dist/iconVersion.d.ts +1 -1
  4. package/components/bibtemplate/dist/index.js +2 -2
  5. package/components/bibtemplate/dist/registered.js +2 -2
  6. package/components/checkbox/README.md +62 -62
  7. package/components/checkbox/demo/api.js +1 -1
  8. package/components/checkbox/demo/api.md +127 -84
  9. package/components/checkbox/demo/api.min.js +125 -42
  10. package/components/checkbox/demo/index.md +9 -281
  11. package/components/checkbox/demo/index.min.js +125 -42
  12. package/components/checkbox/demo/readme.html +3 -4
  13. package/components/checkbox/demo/readme.md +62 -62
  14. package/components/checkbox/dist/auro-checkbox-group.d.ts +7 -8
  15. package/components/checkbox/dist/auro-checkbox.d.ts +74 -20
  16. package/components/checkbox/dist/index.js +125 -42
  17. package/components/checkbox/dist/registered.js +125 -42
  18. package/components/combobox/README.md +76 -74
  19. package/components/combobox/demo/api.html +1 -0
  20. package/components/combobox/demo/api.js +11 -12
  21. package/components/combobox/demo/api.md +1302 -875
  22. package/components/combobox/demo/api.min.js +416 -492
  23. package/components/combobox/demo/index.html +1 -7
  24. package/components/combobox/demo/index.js +0 -19
  25. package/components/combobox/demo/index.md +43 -723
  26. package/components/combobox/demo/index.min.js +369 -302
  27. package/components/combobox/demo/readme.html +3 -4
  28. package/components/combobox/demo/readme.md +76 -74
  29. package/components/combobox/dist/auro-combobox.d.ts +42 -42
  30. package/components/combobox/dist/index.js +204 -210
  31. package/components/combobox/dist/registered.js +204 -210
  32. package/components/counter/README.md +81 -66
  33. package/components/counter/demo/api.html +1 -2
  34. package/components/counter/demo/api.js +2 -2
  35. package/components/counter/demo/api.md +777 -259
  36. package/components/counter/demo/api.min.js +119 -171
  37. package/components/counter/demo/index.html +0 -2
  38. package/components/counter/demo/index.md +20 -329
  39. package/components/counter/demo/index.min.js +117 -152
  40. package/components/counter/demo/readme.html +3 -4
  41. package/components/counter/demo/readme.md +81 -66
  42. package/components/counter/dist/auro-counter-group.d.ts +21 -36
  43. package/components/counter/dist/auro-counter-wrapper.d.ts +1 -6
  44. package/components/counter/dist/auro-counter.d.ts +5 -8
  45. package/components/counter/dist/index.js +117 -152
  46. package/components/counter/dist/registered.js +117 -152
  47. package/components/datepicker/README.md +57 -61
  48. package/components/datepicker/demo/api.js +8 -8
  49. package/components/datepicker/demo/api.md +720 -561
  50. package/components/datepicker/demo/api.min.js +678 -2769
  51. package/components/datepicker/demo/index.md +65 -117
  52. package/components/datepicker/demo/index.min.js +678 -2769
  53. package/components/datepicker/demo/readme.html +3 -4
  54. package/components/datepicker/demo/readme.md +57 -61
  55. package/components/datepicker/dist/auro-calendar.d.ts +60 -34
  56. package/components/datepicker/dist/auro-datepicker.d.ts +32 -32
  57. package/components/datepicker/dist/iconVersion.d.ts +1 -1
  58. package/components/datepicker/dist/index.js +505 -2596
  59. package/components/datepicker/dist/popoverVersion.d.ts +1 -1
  60. package/components/datepicker/dist/registered.js +505 -2596
  61. package/components/dropdown/README.md +78 -62
  62. package/components/dropdown/demo/api.js +4 -4
  63. package/components/dropdown/demo/api.md +520 -478
  64. package/components/dropdown/demo/api.min.js +80 -95
  65. package/components/dropdown/demo/index.md +65 -119
  66. package/components/dropdown/demo/index.min.js +70 -85
  67. package/components/dropdown/demo/readme.html +3 -4
  68. package/components/dropdown/demo/readme.md +78 -62
  69. package/components/dropdown/dist/auro-dropdown.d.ts +42 -33
  70. package/components/dropdown/dist/iconVersion.d.ts +1 -1
  71. package/components/dropdown/dist/index.js +70 -85
  72. package/components/dropdown/dist/registered.js +70 -85
  73. package/components/form/README.md +16 -58
  74. package/components/form/demo/api.md +16 -21
  75. package/components/form/demo/api.min.js +13 -8
  76. package/components/form/demo/index.md +38 -39
  77. package/components/form/demo/index.min.js +13 -8
  78. package/components/form/demo/readme.md +16 -58
  79. package/components/form/demo/working.html +1 -1
  80. package/components/form/dist/auro-form.d.ts +15 -3
  81. package/components/form/dist/index.js +13 -8
  82. package/components/form/dist/registered.js +13 -8
  83. package/components/input/README.md +55 -60
  84. package/components/input/demo/api.js +3 -5
  85. package/components/input/demo/api.md +558 -537
  86. package/components/input/demo/api.min.js +102 -115
  87. package/components/input/demo/index.js +0 -1
  88. package/components/input/demo/index.md +90 -203
  89. package/components/input/demo/index.min.js +87 -99
  90. package/components/input/demo/readme.html +3 -4
  91. package/components/input/demo/readme.md +55 -60
  92. package/components/input/dist/auro-input.d.ts +6 -5
  93. package/components/input/dist/base-input.d.ts +68 -69
  94. package/components/input/dist/iconVersion.d.ts +1 -1
  95. package/components/input/dist/index.js +87 -82
  96. package/components/input/dist/registered.js +87 -82
  97. package/components/menu/README.md +61 -61
  98. package/components/menu/demo/api.js +6 -8
  99. package/components/menu/demo/api.md +520 -577
  100. package/components/menu/demo/api.min.js +199 -97
  101. package/components/menu/demo/index.js +0 -5
  102. package/components/menu/demo/index.md +36 -119
  103. package/components/menu/demo/index.min.js +164 -101
  104. package/components/menu/demo/readme.html +3 -4
  105. package/components/menu/demo/readme.md +61 -61
  106. package/components/menu/dist/auro-menu.context.d.ts +5 -0
  107. package/components/menu/dist/auro-menu.d.ts +75 -37
  108. package/components/menu/dist/auro-menuoption.d.ts +38 -13
  109. package/components/menu/dist/index.js +164 -50
  110. package/components/menu/dist/registered.js +164 -50
  111. package/components/radio/README.md +61 -57
  112. package/components/radio/demo/api.js +2 -2
  113. package/components/radio/demo/api.md +241 -170
  114. package/components/radio/demo/api.min.js +154 -77
  115. package/components/radio/demo/index.md +22 -99
  116. package/components/radio/demo/index.min.js +145 -68
  117. package/components/radio/demo/readme.html +3 -4
  118. package/components/radio/demo/readme.md +61 -57
  119. package/components/radio/dist/auro-radio-group.d.ts +67 -35
  120. package/components/radio/dist/auro-radio.d.ts +56 -33
  121. package/components/radio/dist/index.js +145 -68
  122. package/components/radio/dist/registered.js +145 -68
  123. package/components/select/README.md +68 -65
  124. package/components/select/demo/api.html +1 -0
  125. package/components/select/demo/api.js +7 -7
  126. package/components/select/demo/api.md +1305 -625
  127. package/components/select/demo/api.min.js +357 -262
  128. package/components/select/demo/index.html +0 -2
  129. package/components/select/demo/index.md +25 -833
  130. package/components/select/demo/index.min.js +356 -230
  131. package/components/select/demo/readme.html +3 -4
  132. package/components/select/demo/readme.md +68 -65
  133. package/components/select/dist/auro-select.d.ts +99 -90
  134. package/components/select/dist/index.js +192 -180
  135. package/components/select/dist/registered.js +192 -180
  136. package/package.json +9 -4
@@ -94,22 +94,16 @@ let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
94
94
  }
95
95
  };
96
96
 
97
- /* eslint-disable max-lines */
98
- // Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
97
+ /* eslint-disable max-lines, no-underscore-dangle */
98
+ // Copyright (c) 2026 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
99
99
  // See LICENSE in the project root for license information.
100
100
 
101
101
 
102
102
  /**
103
- * @attr {Boolean} checked - If set to true, the radio button will be filled.
104
- * @attr {Boolean} disabled - If set to true, the radio button will be non-clickable.
105
- * @attr {Boolean} required - Defines element as required.
106
- * @attr {Boolean} error - If set to true, sets an error state on the radio button.
107
- * @attr {Boolean} onDark - DEPRECATED - use `appearance` instead.
108
- * @event toggleSelected - Notifies that the component has toggled the checked/selected state.
109
- *
110
- * @prop {string} id - The id global attribute defines an identifier (ID) which must be unique in the whole document.
111
- * @attr id
103
+ * The `auro-radio` element is used to a button that allows the user to select one option from a set.
104
+ * @customElement auro-radio
112
105
  *
106
+ * @event toggleSelected - Notifies that the component has toggled the checked/selected state.
113
107
  * @event {CustomEvent<any>} change - (Deprecated) Notifies when checked value is changed.
114
108
  * @event {InputEvent} input - Notifies when when checked value is changed by user's interface.
115
109
  * @event focusSelected - Notifies that the component has gained focus.
@@ -121,12 +115,14 @@ let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
121
115
  * @csspart radio-input - apply css to a specific checkbox's input.
122
116
  * @csspart radio-label - apply css to a specific checkbox's label.
123
117
  */
124
-
125
- // build the component class
126
118
  class AuroRadio extends LitElement {
127
119
  constructor() {
128
120
  super();
129
121
 
122
+ this._initializeDefaults();
123
+ }
124
+
125
+ _initializeDefaults() {
130
126
  this.appearance = "default";
131
127
  this.checked = false;
132
128
  this.disabled = false;
@@ -156,45 +152,44 @@ class AuroRadio extends LitElement {
156
152
 
157
153
  /**
158
154
  * Defines whether the component will be on lighter or darker backgrounds.
159
- * @property {'default', 'inverse'}
155
+ * @type {'default' | 'inverse'}
160
156
  * @default 'default'
161
157
  */
162
158
  appearance: {
163
159
  type: String,
164
160
  reflect: true
165
161
  },
162
+
163
+ /**
164
+ * If set to true, the radio button will be filled.
165
+ */
166
166
  checked: {
167
167
  type: Boolean,
168
168
  reflect: true
169
169
  },
170
+
171
+ /**
172
+ * If set to true, the radio button will be non-clickable.
173
+ */
170
174
  disabled: {
171
175
  type: Boolean,
172
176
  reflect: true
173
177
  },
174
- required: {
175
- type: Boolean,
176
- reflect: true
177
- },
178
+
179
+ /**
180
+ * If set to true, sets an error state on the radio button.
181
+ */
178
182
  error: {
179
183
  type: Boolean,
180
184
  reflect: true
181
185
  },
182
- onDark: {
183
- type: Boolean,
184
- reflect: true
185
- },
186
- label: { type: String },
187
- name: { type: String },
188
- value: { type: String },
189
186
 
190
187
  /**
191
- * Whether or not the radio button has been touched by the user.
192
- * @private
188
+ * The id global attribute defines an identifier (ID) which must be unique in the whole document.
193
189
  */
194
- touched: {
195
- type: Boolean,
196
- reflect: true,
197
- attribute: false
190
+ id: {
191
+ type: String,
192
+ reflect: true
198
193
  },
199
194
 
200
195
  /**
@@ -207,6 +202,32 @@ class AuroRadio extends LitElement {
207
202
  attribute: false
208
203
  },
209
204
 
205
+ /**
206
+ * Label for the radio button.
207
+ */
208
+ label: { type: String },
209
+
210
+ /**
211
+ * Name for the radio button group.
212
+ */
213
+ name: { type: String },
214
+
215
+ /**
216
+ * DEPRECATED - use `appearance="inverse"` instead.
217
+ */
218
+ onDark: {
219
+ type: Boolean,
220
+ reflect: true
221
+ },
222
+
223
+ /**
224
+ * Defines element as required.
225
+ */
226
+ required: {
227
+ type: Boolean,
228
+ reflect: true
229
+ },
230
+
210
231
  /**
211
232
  * Don't add to api.md since changing of this can easily break a11y.
212
233
  * @private
@@ -214,13 +235,28 @@ class AuroRadio extends LitElement {
214
235
  role: {
215
236
  type: String,
216
237
  reflect: true
217
- }
238
+ },
239
+
240
+ /**
241
+ * Whether or not the radio button has been touched by the user.
242
+ * @private
243
+ */
244
+ touched: {
245
+ type: Boolean,
246
+ reflect: true,
247
+ attribute: false
248
+ },
249
+
250
+ /**
251
+ * The value of the radio button.
252
+ */
253
+ value: { type: String }
218
254
  };
219
255
  }
220
256
 
221
257
  /**
222
258
  * This will register this element with the browser.
223
- * @param {string} [name="auro-radio"] - The name of element that you want to register to.
259
+ * @param {string} [name="auro-radio"] - The name of the element that you want to register.
224
260
  *
225
261
  * @example
226
262
  * AuroRadio.register("custom-radio") // This will resgiter this element to <custom-radio/>
@@ -1537,7 +1573,7 @@ class AuroHelpText extends LitElement {
1537
1573
  }
1538
1574
  }
1539
1575
 
1540
- var formkitVersion = '202511191711';
1576
+ var formkitVersion = '202601271813';
1541
1577
 
1542
1578
  // Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
1543
1579
  // See LICENSE in the project root for license information.
@@ -1545,18 +1581,12 @@ var formkitVersion = '202511191711';
1545
1581
 
1546
1582
 
1547
1583
  /* eslint no-magic-numbers: ["error", { "ignore": [0, 1, -1] }] */
1548
- /* eslint-disable max-lines, lit/binding-positions, lit/no-invalid-html */
1584
+ /* eslint-disable max-lines, lit/binding-positions, lit/no-invalid-html, no-underscore-dangle */
1549
1585
 
1550
1586
  /**
1551
- * @attr {String} validity - Specifies the `validityState` this element is in.
1552
- * @attr {String} setCustomValidity - Sets a custom help text message to display for all validityStates.
1553
- * @attr {String} setCustomValidityCustomError - Custom help text message to display when validity = `customError`.
1554
- * @attr {String} setCustomValidityValueMissing - Custom help text message to display when validity = `valueMissing`.
1555
- * @attr {String} error - When defined, sets persistent validity to `customError` and sets `setCustomValidity` = attribute value.
1556
- * @attr {Boolean} noValidate - If set, disables auto-validation on blur.
1557
- * @attr {Boolean} onDark - DEPRECATED - use `appearance` instead.
1558
- * @attr {Boolean} required - Populates the `required` attribute on the element. Used for client-side validation.
1559
- * @attr {Object} optionSelected - Specifies the current selected radio button.
1587
+ * The `auro-radio-group` element is used to group a set `auro-radio` elements.
1588
+ * @customElement auro-radio-group
1589
+ *
1560
1590
  * @csspart radio-group - Apply css to the fieldset element in the shadow DOM
1561
1591
  * @slot {HTMLSlotElement} legend - Allows for the legend to be overridden.
1562
1592
  * @slot {HTMLSlotElement} optionalLabel - Allows overriding the optional display text "(optional)", which appears next to the label.
@@ -1569,6 +1599,10 @@ class AuroRadioGroup extends LitElement {
1569
1599
  constructor() {
1570
1600
  super();
1571
1601
 
1602
+ this._initializeDefaults();
1603
+ }
1604
+
1605
+ _initializeDefaults() {
1572
1606
  this.appearance = "default";
1573
1607
  this.disabled = false;
1574
1608
  this.horizontal = false;
@@ -1624,7 +1658,7 @@ class AuroRadioGroup extends LitElement {
1624
1658
 
1625
1659
  /**
1626
1660
  * Defines whether the component will be on lighter or darker backgrounds.
1627
- * @property {'default', 'inverse'}
1661
+ * @type {'default' | 'inverse'}
1628
1662
  * @default 'default'
1629
1663
  */
1630
1664
  appearance: {
@@ -1632,51 +1666,91 @@ class AuroRadioGroup extends LitElement {
1632
1666
  reflect: true
1633
1667
  },
1634
1668
 
1635
- disabled: {
1669
+ /**
1670
+ * If true, all radio buttons will be disabled.
1671
+ */
1672
+ disabled: {
1636
1673
  type: Boolean,
1637
1674
  reflect: true
1638
1675
  },
1639
- horizontal: { type: Boolean },
1640
- error: {
1676
+
1677
+ /**
1678
+ * If true, sets persistent validity to `customError` and sets `setCustomValidity` = attribute value.
1679
+ */
1680
+ error: {
1641
1681
  type: String,
1642
1682
  reflect: true
1643
1683
  },
1644
- value: {
1645
- type: String
1684
+
1685
+ /**
1686
+ * Indicates whether the legend slot is set or not.
1687
+ * @private
1688
+ */
1689
+ hasLegend: {
1690
+ type: Boolean,
1691
+ reflect: false,
1692
+ attribute: false
1646
1693
  },
1694
+
1695
+ /**
1696
+ * If true, displays radio buttons horizontally.
1697
+ */
1698
+ horizontal: { type: Boolean },
1699
+
1700
+ /**
1701
+ * If true, disables auto-validation on blur.
1702
+ */
1647
1703
  noValidate: {
1648
1704
  type: Boolean,
1649
1705
  reflect: true
1650
1706
  },
1707
+
1708
+ /**
1709
+ * DEPRECATED - use `appearance="inverse"` instead.
1710
+ */
1651
1711
  onDark: {
1652
1712
  type: Boolean,
1653
1713
  reflect: true
1654
1714
  },
1715
+
1716
+ /**
1717
+ * Specifies the current selected radio button.
1718
+ */
1719
+ optionSelected: {
1720
+ type: Object
1721
+ },
1722
+
1723
+ /**
1724
+ * Populates the `required` attribute on the element. Used for client-side validation.
1725
+ */
1655
1726
  required: {
1656
1727
  type: Boolean,
1657
1728
  reflect: true
1658
1729
  },
1730
+
1731
+ /**
1732
+ * Sets a custom help text message to display for all validityStates.
1733
+ */
1659
1734
  setCustomValidity: {
1660
1735
  type: String
1661
1736
  },
1737
+
1738
+ /**
1739
+ * Custom help text message to display when validity = `customError`.
1740
+ */
1662
1741
  setCustomValidityCustomError: {
1663
1742
  type: String
1664
1743
  },
1744
+
1745
+ /**
1746
+ * Custom help text message to display when validity = `valueMissing`.
1747
+ */
1665
1748
  setCustomValidityValueMissing: {
1666
1749
  type: String
1667
1750
  },
1668
- validity: {
1669
- type: String,
1670
- reflect: true
1671
- },
1672
- optionSelected: {
1673
- type: Object
1674
- },
1675
1751
 
1676
1752
  /**
1677
1753
  * Indicates whether the radio group is in a dirty state (has been interacted with).
1678
- * @type {boolean}
1679
- * @default false
1680
1754
  * @private
1681
1755
  */
1682
1756
  touched: {
@@ -1686,22 +1760,25 @@ class AuroRadioGroup extends LitElement {
1686
1760
  },
1687
1761
 
1688
1762
  /**
1689
- * Indicates whether the legend slot is set or not.
1690
- * @type {boolean}
1691
- * @default false
1692
- * @private
1763
+ * Specifies the `validityState` this element is in.
1693
1764
  */
1694
- hasLegend: {
1695
- type: Boolean,
1696
- reflect: false,
1697
- attribute: false
1765
+ validity: {
1766
+ type: String,
1767
+ reflect: true
1768
+ },
1769
+
1770
+ /**
1771
+ * Specifies the current value of the selected radio button.
1772
+ */
1773
+ value: {
1774
+ type: String
1698
1775
  }
1699
1776
  };
1700
1777
  }
1701
1778
 
1702
1779
  /**
1703
1780
  * This will register this element with the browser.
1704
- * @param {string} [name="auro-radio-group"] - The name of element that you want to register to.
1781
+ * @param {string} [name="auro-radio-group"] - The name of the element that you want to register.
1705
1782
  *
1706
1783
  * @example
1707
1784
  * AuroRadioGroup.register("custom-radio-group") // This will register this element to <custom-radio-group/>
@@ -18,6 +18,7 @@ The following sections are editable by making changes to the following files:
18
18
  -->
19
19
 
20
20
  # Select
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-select>` is a combination <auro-hyperlink href="https://developer.mozilla.org/en-US/docs/Web/Web_Components/Using_custom_elements">HTML custom element</auro-hyperlink> that consists of a pre-defined trigger element, `<auro-menu>` for the panel content. The `<auro-select>` element presents a menu of options. The options within the menu are represented by `<auro-menu>` and `<auro-menuoption>` elements. You can pre-select options for the user with the `selected` attribute as part of the `<auro-menuoption>` API.
@@ -27,7 +28,15 @@ The following sections are editable by making changes to the following files:
27
28
  <!-- 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. -->
28
29
  <!-- AURO-GENERATED-CONTENT:END -->
29
30
 
31
+ ## Select Use Cases
32
+
33
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./docs/partials/useCases.md) -->
34
+ <!-- The below content is automatically added from ./docs/partials/useCases.md -->
35
+ See description.
36
+ <!-- AURO-GENERATED-CONTENT:END -->
37
+
30
38
  ## Getting Started
39
+
31
40
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=../../docs/templates/componentInstall.md) -->
32
41
  <!-- The below content is automatically added from ../../docs/templates/componentInstall.md -->
33
42
 
@@ -40,30 +49,7 @@ $ npm i @aurodesignsystem/auro-formkit
40
49
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=../../docs/templates/gettingStarted.md) -->
41
50
  <!-- The below content is automatically added from ../../docs/templates/gettingStarted.md -->
42
51
 
43
- ### Import Options
44
-
45
- #### Automatic Registration
46
-
47
- For automatic registration, simply import the component:
48
-
49
- ```javascript
50
- // Registers <auro-select> automatically
51
- import '@aurodesignsystem/auro-formkit/auro-select';
52
- ```
53
-
54
- #### Custom Registration
55
-
56
- To protect from versioning conflicts with other instances of the component being loaded, it is recommended to use our static `AuroSelect.register('custom-select')` method on the component class and pass in a unique name.
57
-
58
- ```javascript
59
- // Import the class only
60
- import { AuroSelect } from '@aurodesignsystem/auro-formkit/auro-select/class';
61
-
62
- // Register with a custom name if desired
63
- AuroSelect.register('custom-select');
64
- ```
65
-
66
- #### TypeScript Module Resolution
52
+ ### TypeScript Module Resolution
67
53
 
68
54
  When using TypeScript set `moduleResolution` to `bundler`, add the following to your `tsconfig.json`:
69
55
 
@@ -76,37 +62,10 @@ When using TypeScript set `moduleResolution` to `bundler`, add the following to
76
62
  ```
77
63
 
78
64
  This configuration enables proper module resolution for the component's TypeScript files.
79
- <!-- AURO-GENERATED-CONTENT:END -->
80
- **Reference component in HTML**
81
-
82
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=./apiExamples/basic.html) -->
83
- <!-- The below code snippet is automatically added from ./apiExamples/basic.html -->
84
-
85
- ```html
86
- <auro-select>
87
- <span slot="ariaLabel.bib.close">Close Popup</span>
88
- <span slot="bib.fullscreen.headline">Bib Headline</span>
89
- <span slot="label">Select Example</span>
90
- <auro-menu>
91
- <auro-menuoption value="stops">Stops</auro-menuoption>
92
- <auro-menuoption value="price">Price</auro-menuoption>
93
- <auro-menuoption value="duration">Duration</auro-menuoption>
94
- <auro-menuoption value="departure">Departure</auro-menuoption>
95
- <auro-menuoption value="arrival">Arrival</auro-menuoption>
96
- <auro-menuoption value="prefer alaska">Prefer Alaska</auro-menuoption>
97
- </auro-menu>
98
- </auro-select>
99
- ```
100
- <!-- AURO-GENERATED-CONTENT:END -->
101
-
102
- ### Design Token CSS Custom Property dependency
103
-
104
- <!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/WC-Generator/master/componentDocs/partials/development/designTokens.md) -->
105
- The use of any Auro custom element has a dependency on the [Auro Design Tokens](https://auro.alaskaair.com/getting-started/developers/design-tokens).
106
-
107
65
  <!-- AURO-GENERATED-CONTENT:END -->
108
66
 
109
67
  ## Install from CDN
68
+
110
69
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=../../docs/templates/bundleInstallDescription.md) -->
111
70
  <!-- The below content is automatically added from ../../docs/templates/bundleInstallDescription.md -->
112
71
  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.
@@ -116,19 +75,7 @@ In cases where the project is not able to process JS assets, there are pre-proce
116
75
  ```
117
76
  <!-- AURO-GENERATED-CONTENT:END -->
118
77
 
119
- ## UI development browser support
120
- <!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/WC-Generator/master/componentDocs/partials/browserSupport.md) -->
121
- For the most up to date information on [UI development browser support](https://auro.alaskaair.com/support/browsersSupport)
122
-
123
- <!-- AURO-GENERATED-CONTENT:END -->
124
-
125
- ## auro-select use cases
126
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./docs/partials/useCases.md) -->
127
- <!-- The below content is automatically added from ./docs/partials/useCases.md -->
128
- See description.
129
- <!-- AURO-GENERATED-CONTENT:END -->
130
-
131
- ## Formkit development
78
+ ## Formkit Development
132
79
 
133
80
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=../../docs/partials/developmentDescription.md) -->
134
81
  <!-- The below content is automatically added from ../../docs/partials/developmentDescription.md -->
@@ -142,4 +89,60 @@ To only develop a single component, use the `--filter` flag:
142
89
  ```shell
143
90
  npx turbo dev --filter=@aurodesignsystem/auro-input
144
91
  ```
92
+ <!-- AURO-GENERATED-CONTENT:END -->
93
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./docs/partials/customRegistration.md) -->
94
+ <!-- The below content is automatically added from ./docs/partials/customRegistration.md -->
95
+
96
+ ## Custom Component Registration for Version Management
97
+
98
+ 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.
99
+
100
+ When you install the component as described on the `Install` page, the class is imported automatically, and the component is registered globally for you.
101
+
102
+ 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.
103
+
104
+ You can do this by importing only the component class and using the `register(name)` method with a unique name:
105
+
106
+ ```js
107
+ // Import the class only
108
+ import { AuroSelect } from '@aurodesignsystem/auro-formkit/auro-select/class';
109
+
110
+ // Register with a custom name if desired
111
+ AuroSelect.register('custom-select');
112
+ ```
113
+
114
+ 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.
115
+
116
+ <div class="exampleWrapper exampleWrapper--flex">
117
+ <custom-select placeholder="Placeholder Text">
118
+ <span slot="bib.fullscreen.headline">Bib Headline</span>
119
+ <span slot="label">Label</span>
120
+ <auro-menu>
121
+ <auro-menuoption value="stops">Stops</auro-menuoption>
122
+ <auro-menuoption value="price">Price</auro-menuoption>
123
+ <auro-menuoption value="duration">Duration</auro-menuoption>
124
+ <auro-menuoption value="departure">Departure</auro-menuoption>
125
+ <auro-menuoption value="arrival">Arrival</auro-menuoption>
126
+ <auro-menuoption value="prefer alaska">Prefer Alaska</auro-menuoption>
127
+ </auro-menu>
128
+ </custom-select>
129
+ </div>
130
+ <auro-accordion alignRight>
131
+ <span slot="trigger">See code</span>
132
+
133
+ ```html
134
+ <custom-select placeholder="Placeholder Text">
135
+ <span slot="bib.fullscreen.headline">Bib Headline</span>
136
+ <span slot="label">Label</span>
137
+ <auro-menu>
138
+ <auro-menuoption value="stops">Stops</auro-menuoption>
139
+ <auro-menuoption value="price">Price</auro-menuoption>
140
+ <auro-menuoption value="duration">Duration</auro-menuoption>
141
+ <auro-menuoption value="departure">Departure</auro-menuoption>
142
+ <auro-menuoption value="arrival">Arrival</auro-menuoption>
143
+ <auro-menuoption value="prefer alaska">Prefer Alaska</auro-menuoption>
144
+ </auro-menu>
145
+ </custom-select>
146
+ ```
147
+ </auro-accordion>
145
148
  <!-- AURO-GENERATED-CONTENT:END -->
@@ -58,6 +58,7 @@
58
58
  <script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-button@latest/+esm" type="module"></script>
59
59
  <script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-dialog@latest/+esm" type="module"></script>
60
60
  <script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-loader@latest/+esm" type="module"></script>
61
+ <script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-icon@latest/+esm" type="module"></script>
61
62
  <script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@3.2.4/auro-input/+esm"></script>
62
63
 
63
64
  <style>
@@ -1,10 +1,10 @@
1
- import { customErrorValidityExample } from "../apiExamples/customErrorValidity";
1
+ import { customErrorValidityExample } from "../apiExamples/custom-error-validity";
2
2
  import { valueExample } from "../apiExamples/value";
3
- import { valueExtractionExample } from "../apiExamples/valueExtraction";
4
- import { valueAlertExample } from "../apiExamples/valueAlert.js";
5
- import { inDialogExample } from '../apiExamples/inDialog';
6
- import { resetStateExample } from "../apiExamples/resetState";
7
- import { auroMenuLoadingExample } from "../apiExamples/loading";
3
+ import { valueExtractionExample } from "../apiExamples/value-extraction";
4
+ import { valueAlertExample } from "../apiExamples/value-alert";
5
+ import { inDialogExample } from '../apiExamples/in-dialog';
6
+ import { resetStateExample } from "../apiExamples/reset-state";
7
+ // import { auroMenuLoadingExample } from "../apiExamples/loading";
8
8
 
9
9
  /* eslint-disable jsdoc/require-jsdoc, no-magic-numbers, no-param-reassign */
10
10
  import { AuroSelect } from '../src/auro-select.js';
@@ -23,7 +23,7 @@ export function initExamples(initCount) {
23
23
  valueAlertExample();
24
24
  inDialogExample();
25
25
  resetStateExample();
26
- auroMenuLoadingExample();
26
+ // auroMenuLoadingExample();
27
27
  } catch (err) {
28
28
  if (initCount <= 20) {
29
29
  // setTimeout handles issue where content is sometimes loaded after the functions get called