@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
@@ -1,3 +1,11 @@
1
+ function resetStateExample() {
2
+ const elem = document.querySelector('#resetStateExample');
3
+
4
+ document.querySelector('#resetStateBtn').addEventListener('click', () => {
5
+ elem.reset();
6
+ });
7
+ }
8
+
1
9
  function dynamicExample() {
2
10
  const values = ['Yes', 'No', 'Maybe'];
3
11
  const radioGroup = document.getElementById('dynamicExample');
@@ -15,14 +23,6 @@ function dynamicExample() {
15
23
  }
16
24
  }
17
25
 
18
- function resetStateExample() {
19
- const elem = document.querySelector('#resetStateExample');
20
-
21
- document.querySelector('#resetStateBtn').addEventListener('click', () => {
22
- elem.reset();
23
- });
24
- }
25
-
26
26
  /**
27
27
  * @license
28
28
  * Copyright 2019 Google LLC
@@ -159,22 +159,16 @@ let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
159
159
  }
160
160
  };
161
161
 
162
- /* eslint-disable max-lines */
163
- // Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
162
+ /* eslint-disable max-lines, no-underscore-dangle */
163
+ // Copyright (c) 2026 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
164
164
  // See LICENSE in the project root for license information.
165
165
 
166
166
 
167
167
  /**
168
- * @attr {Boolean} checked - If set to true, the radio button will be filled.
169
- * @attr {Boolean} disabled - If set to true, the radio button will be non-clickable.
170
- * @attr {Boolean} required - Defines element as required.
171
- * @attr {Boolean} error - If set to true, sets an error state on the radio button.
172
- * @attr {Boolean} onDark - DEPRECATED - use `appearance` instead.
173
- * @event toggleSelected - Notifies that the component has toggled the checked/selected state.
174
- *
175
- * @prop {string} id - The id global attribute defines an identifier (ID) which must be unique in the whole document.
176
- * @attr id
168
+ * The `auro-radio` element is used to a button that allows the user to select one option from a set.
169
+ * @customElement auro-radio
177
170
  *
171
+ * @event toggleSelected - Notifies that the component has toggled the checked/selected state.
178
172
  * @event {CustomEvent<any>} change - (Deprecated) Notifies when checked value is changed.
179
173
  * @event {InputEvent} input - Notifies when when checked value is changed by user's interface.
180
174
  * @event focusSelected - Notifies that the component has gained focus.
@@ -186,12 +180,14 @@ let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
186
180
  * @csspart radio-input - apply css to a specific checkbox's input.
187
181
  * @csspart radio-label - apply css to a specific checkbox's label.
188
182
  */
189
-
190
- // build the component class
191
183
  class AuroRadio extends i$2 {
192
184
  constructor() {
193
185
  super();
194
186
 
187
+ this._initializeDefaults();
188
+ }
189
+
190
+ _initializeDefaults() {
195
191
  this.appearance = "default";
196
192
  this.checked = false;
197
193
  this.disabled = false;
@@ -221,45 +217,44 @@ class AuroRadio extends i$2 {
221
217
 
222
218
  /**
223
219
  * Defines whether the component will be on lighter or darker backgrounds.
224
- * @property {'default', 'inverse'}
220
+ * @type {'default' | 'inverse'}
225
221
  * @default 'default'
226
222
  */
227
223
  appearance: {
228
224
  type: String,
229
225
  reflect: true
230
226
  },
227
+
228
+ /**
229
+ * If set to true, the radio button will be filled.
230
+ */
231
231
  checked: {
232
232
  type: Boolean,
233
233
  reflect: true
234
234
  },
235
+
236
+ /**
237
+ * If set to true, the radio button will be non-clickable.
238
+ */
235
239
  disabled: {
236
240
  type: Boolean,
237
241
  reflect: true
238
242
  },
239
- required: {
240
- type: Boolean,
241
- reflect: true
242
- },
243
+
244
+ /**
245
+ * If set to true, sets an error state on the radio button.
246
+ */
243
247
  error: {
244
248
  type: Boolean,
245
249
  reflect: true
246
250
  },
247
- onDark: {
248
- type: Boolean,
249
- reflect: true
250
- },
251
- label: { type: String },
252
- name: { type: String },
253
- value: { type: String },
254
251
 
255
252
  /**
256
- * Whether or not the radio button has been touched by the user.
257
- * @private
253
+ * The id global attribute defines an identifier (ID) which must be unique in the whole document.
258
254
  */
259
- touched: {
260
- type: Boolean,
261
- reflect: true,
262
- attribute: false
255
+ id: {
256
+ type: String,
257
+ reflect: true
263
258
  },
264
259
 
265
260
  /**
@@ -272,6 +267,32 @@ class AuroRadio extends i$2 {
272
267
  attribute: false
273
268
  },
274
269
 
270
+ /**
271
+ * Label for the radio button.
272
+ */
273
+ label: { type: String },
274
+
275
+ /**
276
+ * Name for the radio button group.
277
+ */
278
+ name: { type: String },
279
+
280
+ /**
281
+ * DEPRECATED - use `appearance="inverse"` instead.
282
+ */
283
+ onDark: {
284
+ type: Boolean,
285
+ reflect: true
286
+ },
287
+
288
+ /**
289
+ * Defines element as required.
290
+ */
291
+ required: {
292
+ type: Boolean,
293
+ reflect: true
294
+ },
295
+
275
296
  /**
276
297
  * Don't add to api.md since changing of this can easily break a11y.
277
298
  * @private
@@ -279,13 +300,28 @@ class AuroRadio extends i$2 {
279
300
  role: {
280
301
  type: String,
281
302
  reflect: true
282
- }
303
+ },
304
+
305
+ /**
306
+ * Whether or not the radio button has been touched by the user.
307
+ * @private
308
+ */
309
+ touched: {
310
+ type: Boolean,
311
+ reflect: true,
312
+ attribute: false
313
+ },
314
+
315
+ /**
316
+ * The value of the radio button.
317
+ */
318
+ value: { type: String }
283
319
  };
284
320
  }
285
321
 
286
322
  /**
287
323
  * This will register this element with the browser.
288
- * @param {string} [name="auro-radio"] - The name of element that you want to register to.
324
+ * @param {string} [name="auro-radio"] - The name of the element that you want to register.
289
325
  *
290
326
  * @example
291
327
  * AuroRadio.register("custom-radio") // This will resgiter this element to <custom-radio/>
@@ -1609,7 +1645,7 @@ class AuroHelpText extends i$2 {
1609
1645
  }
1610
1646
  }
1611
1647
 
1612
- var formkitVersion = '202511191711';
1648
+ var formkitVersion = '202601271813';
1613
1649
 
1614
1650
  // Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
1615
1651
  // See LICENSE in the project root for license information.
@@ -1617,18 +1653,12 @@ var formkitVersion = '202511191711';
1617
1653
 
1618
1654
 
1619
1655
  /* eslint no-magic-numbers: ["error", { "ignore": [0, 1, -1] }] */
1620
- /* eslint-disable max-lines, lit/binding-positions, lit/no-invalid-html */
1656
+ /* eslint-disable max-lines, lit/binding-positions, lit/no-invalid-html, no-underscore-dangle */
1621
1657
 
1622
1658
  /**
1623
- * @attr {String} validity - Specifies the `validityState` this element is in.
1624
- * @attr {String} setCustomValidity - Sets a custom help text message to display for all validityStates.
1625
- * @attr {String} setCustomValidityCustomError - Custom help text message to display when validity = `customError`.
1626
- * @attr {String} setCustomValidityValueMissing - Custom help text message to display when validity = `valueMissing`.
1627
- * @attr {String} error - When defined, sets persistent validity to `customError` and sets `setCustomValidity` = attribute value.
1628
- * @attr {Boolean} noValidate - If set, disables auto-validation on blur.
1629
- * @attr {Boolean} onDark - DEPRECATED - use `appearance` instead.
1630
- * @attr {Boolean} required - Populates the `required` attribute on the element. Used for client-side validation.
1631
- * @attr {Object} optionSelected - Specifies the current selected radio button.
1659
+ * The `auro-radio-group` element is used to group a set `auro-radio` elements.
1660
+ * @customElement auro-radio-group
1661
+ *
1632
1662
  * @csspart radio-group - Apply css to the fieldset element in the shadow DOM
1633
1663
  * @slot {HTMLSlotElement} legend - Allows for the legend to be overridden.
1634
1664
  * @slot {HTMLSlotElement} optionalLabel - Allows overriding the optional display text "(optional)", which appears next to the label.
@@ -1641,6 +1671,10 @@ class AuroRadioGroup extends i$2 {
1641
1671
  constructor() {
1642
1672
  super();
1643
1673
 
1674
+ this._initializeDefaults();
1675
+ }
1676
+
1677
+ _initializeDefaults() {
1644
1678
  this.appearance = "default";
1645
1679
  this.disabled = false;
1646
1680
  this.horizontal = false;
@@ -1696,7 +1730,7 @@ class AuroRadioGroup extends i$2 {
1696
1730
 
1697
1731
  /**
1698
1732
  * Defines whether the component will be on lighter or darker backgrounds.
1699
- * @property {'default', 'inverse'}
1733
+ * @type {'default' | 'inverse'}
1700
1734
  * @default 'default'
1701
1735
  */
1702
1736
  appearance: {
@@ -1704,51 +1738,91 @@ class AuroRadioGroup extends i$2 {
1704
1738
  reflect: true
1705
1739
  },
1706
1740
 
1707
- disabled: {
1741
+ /**
1742
+ * If true, all radio buttons will be disabled.
1743
+ */
1744
+ disabled: {
1708
1745
  type: Boolean,
1709
1746
  reflect: true
1710
1747
  },
1711
- horizontal: { type: Boolean },
1712
- error: {
1748
+
1749
+ /**
1750
+ * If true, sets persistent validity to `customError` and sets `setCustomValidity` = attribute value.
1751
+ */
1752
+ error: {
1713
1753
  type: String,
1714
1754
  reflect: true
1715
1755
  },
1716
- value: {
1717
- type: String
1756
+
1757
+ /**
1758
+ * Indicates whether the legend slot is set or not.
1759
+ * @private
1760
+ */
1761
+ hasLegend: {
1762
+ type: Boolean,
1763
+ reflect: false,
1764
+ attribute: false
1718
1765
  },
1766
+
1767
+ /**
1768
+ * If true, displays radio buttons horizontally.
1769
+ */
1770
+ horizontal: { type: Boolean },
1771
+
1772
+ /**
1773
+ * If true, disables auto-validation on blur.
1774
+ */
1719
1775
  noValidate: {
1720
1776
  type: Boolean,
1721
1777
  reflect: true
1722
1778
  },
1779
+
1780
+ /**
1781
+ * DEPRECATED - use `appearance="inverse"` instead.
1782
+ */
1723
1783
  onDark: {
1724
1784
  type: Boolean,
1725
1785
  reflect: true
1726
1786
  },
1787
+
1788
+ /**
1789
+ * Specifies the current selected radio button.
1790
+ */
1791
+ optionSelected: {
1792
+ type: Object
1793
+ },
1794
+
1795
+ /**
1796
+ * Populates the `required` attribute on the element. Used for client-side validation.
1797
+ */
1727
1798
  required: {
1728
1799
  type: Boolean,
1729
1800
  reflect: true
1730
1801
  },
1802
+
1803
+ /**
1804
+ * Sets a custom help text message to display for all validityStates.
1805
+ */
1731
1806
  setCustomValidity: {
1732
1807
  type: String
1733
1808
  },
1809
+
1810
+ /**
1811
+ * Custom help text message to display when validity = `customError`.
1812
+ */
1734
1813
  setCustomValidityCustomError: {
1735
1814
  type: String
1736
1815
  },
1816
+
1817
+ /**
1818
+ * Custom help text message to display when validity = `valueMissing`.
1819
+ */
1737
1820
  setCustomValidityValueMissing: {
1738
1821
  type: String
1739
1822
  },
1740
- validity: {
1741
- type: String,
1742
- reflect: true
1743
- },
1744
- optionSelected: {
1745
- type: Object
1746
- },
1747
1823
 
1748
1824
  /**
1749
1825
  * Indicates whether the radio group is in a dirty state (has been interacted with).
1750
- * @type {boolean}
1751
- * @default false
1752
1826
  * @private
1753
1827
  */
1754
1828
  touched: {
@@ -1758,22 +1832,25 @@ class AuroRadioGroup extends i$2 {
1758
1832
  },
1759
1833
 
1760
1834
  /**
1761
- * Indicates whether the legend slot is set or not.
1762
- * @type {boolean}
1763
- * @default false
1764
- * @private
1835
+ * Specifies the `validityState` this element is in.
1765
1836
  */
1766
- hasLegend: {
1767
- type: Boolean,
1768
- reflect: false,
1769
- attribute: false
1837
+ validity: {
1838
+ type: String,
1839
+ reflect: true
1840
+ },
1841
+
1842
+ /**
1843
+ * Specifies the current value of the selected radio button.
1844
+ */
1845
+ value: {
1846
+ type: String
1770
1847
  }
1771
1848
  };
1772
1849
  }
1773
1850
 
1774
1851
  /**
1775
1852
  * This will register this element with the browser.
1776
- * @param {string} [name="auro-radio-group"] - The name of element that you want to register to.
1853
+ * @param {string} [name="auro-radio-group"] - The name of the element that you want to register.
1777
1854
  *
1778
1855
  * @example
1779
1856
  * AuroRadioGroup.register("custom-radio-group") // This will register this element to <custom-radio-group/>
@@ -2118,8 +2195,8 @@ function initExamples(initCount) {
2118
2195
  initCount = initCount || 0;
2119
2196
 
2120
2197
  try {
2121
- dynamicExample();
2122
2198
  resetStateExample();
2199
+ dynamicExample();
2123
2200
  } catch (error) {
2124
2201
  if (initCount <= 20) {
2125
2202
  // setTimeout handles issue where content is sometimes loaded after the functions get called
@@ -1,18 +1,18 @@
1
1
  <!--
2
- The index.md file is a compiled document. No edits should be made directly to this file.
3
- README.md is created by running `npm run build:docs`.
4
- This file is generated based on a template fetched from `./docs/partials/index.md`
2
+ THIS PAGE'S CONTENT SHOULD BE KEPT MINIMAL.
3
+ ONLY ADD EXAMPLES THAT ARE TRULY NECESSARY FOR THE INDEX PAGE — THE BASIC EXAMPLE IS USUALLY ENOUGH.
4
+ ALL OTHER EXAMPLES SHOULD GO IN THE API DOCUMENTATION.
5
5
  -->
6
6
 
7
- # Radio
8
-
7
+ # Radio
8
+
9
9
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../docs/partials/description.md) -->
10
10
  <!-- The below content is automatically added from ./../docs/partials/description.md -->
11
11
  `<auro-radio>` is a [HTML custom element](https://developer.mozilla.org/en-US/docs/Web/Web_Components/Using_custom_elements) that is rendered as a small circle, which is filled or highlighted when selected. Only one `<auro-radio>` component in a given `<auro-radio-group>` can be selected at the same time.
12
12
  <!-- AURO-GENERATED-CONTENT:END -->
13
13
 
14
- ## auro-radio use cases
15
-
14
+ ## Use Cases
15
+
16
16
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../docs/partials/useCases.md) -->
17
17
  <!-- The below content is automatically added from ./../docs/partials/useCases.md -->
18
18
  The `<auro-radio>` element is designed to be a single component for the use of creating an input `type="radio"` with an associated `<label>` that meets all use case and accessibility standards.
@@ -24,126 +24,49 @@ The following examples illustrate fully functional `<auro-radio>` elements wrapp
24
24
 
25
25
  ## Example(s)
26
26
 
27
- ### Default
28
-
29
- This is a default configuration of `<auro-radio>`.
30
-
27
+ ### Basic Radio
28
+
31
29
  <div class="exampleWrapper">
32
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/basic.html) -->
33
- <!-- The below content is automatically added from ./../apiExamples/basic.html -->
30
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/basic-standalone.html) -->
31
+ <!-- The below content is automatically added from ./../apiExamples/basic-standalone.html -->
34
32
  <auro-radio id="basicRadio1" label="Yes" name="radioDemo" value="yes"></auro-radio>
35
33
  <!-- AURO-GENERATED-CONTENT:END -->
36
34
  </div>
37
- <div class="exampleWrapper--ondark" aria-hidden>
38
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/inverseAppearance.html) -->
39
- <!-- The below content is automatically added from ./../apiExamples/inverseAppearance.html -->
40
- <auro-radio id="basicRadio1" label="Yes" name="radioDemo" value="yes" appearance="inverse"></auro-radio>
41
- <!-- AURO-GENERATED-CONTENT:END -->
42
- </div>
43
35
  <auro-accordion alignRight>
44
36
  <span slot="trigger">See code</span>
45
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/basic.html) -->
46
- <!-- The below code snippet is automatically added from ./../apiExamples/basic.html -->
37
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/basic-standalone.html) -->
38
+ <!-- The below code snippet is automatically added from ./../apiExamples/basic-standalone.html -->
47
39
 
48
40
  ```html
49
41
  <auro-radio id="basicRadio1" label="Yes" name="radioDemo" value="yes"></auro-radio>
50
42
  ```
51
43
  <!-- AURO-GENERATED-CONTENT:END -->
52
- <div class="exampleWrapper--ondark" aria-hidden>
53
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/inverseAppearance.html) -->
54
- <!-- The below content is automatically added from ./../apiExamples/inverseAppearance.html -->
55
- <auro-radio id="basicRadio1" label="Yes" name="radioDemo" value="yes" appearance="inverse"></auro-radio>
56
- <!-- AURO-GENERATED-CONTENT:END -->
57
- </div>
58
44
  </auro-accordion>
59
45
 
60
- ### Default Group
61
-
62
- This is a default configuration using the `<auro-radio-group>` and `<auro-radio>` elements. Notice the use of the `slot` attribute to set the group title of the `<auro-radio-group>`.
46
+ ### Basic Radio Group
63
47
 
64
48
  <div class="exampleWrapper">
65
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/basicGroup.html) -->
66
- <!-- The below content is automatically added from ./../apiExamples/basicGroup.html -->
67
- <auro-radio-group>
68
- <span slot="legend">Form label goes here</span>
69
- <auro-radio id="basicGroupRadio1" label="Yes" name="radioDemo" value="yes"></auro-radio>
70
- <auro-radio id="basicGroupRadio2" label="No" name="radioDemo" value="no"></auro-radio>
71
- <auro-radio id="basicGroupRadio3" label="Maybe" name="radioDemo" value="maybe"></auro-radio>
72
- </auro-radio-group>
73
- <!-- AURO-GENERATED-CONTENT:END -->
74
- </div>
75
- <div class="exampleWrapper--ondark" aria-hidden>
76
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/inverseAppearanceGroup.html) -->
77
- <!-- The below content is automatically added from ./../apiExamples/inverseAppearanceGroup.html -->
78
- <auro-radio-group appearance="inverse">
79
- <span slot="legend">Form label goes here</span>
80
- <auro-radio id="basicGroupRadio1" label="Yes" name="radioDemo" value="yes"></auro-radio>
81
- <auro-radio id="basicGroupRadio2" label="No" name="radioDemo" value="no"></auro-radio>
82
- <auro-radio id="basicGroupRadio3" label="Maybe" name="radioDemo" value="maybe"></auro-radio>
83
- </auro-radio-group>
84
- <!-- AURO-GENERATED-CONTENT:END -->
85
- </div>
86
- <auro-accordion alignRight>
87
- <span slot="trigger">See code</span>
88
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/basicGroup.html) -->
89
- <!-- The below code snippet is automatically added from ./../apiExamples/basicGroup.html -->
90
- ```html
49
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/basic.html) -->
50
+ <!-- The below content is automatically added from ./../apiExamples/basic.html -->
91
51
  <auro-radio-group>
92
52
  <span slot="legend">Form label goes here</span>
93
53
  <auro-radio id="basicGroupRadio1" label="Yes" name="radioDemo" value="yes"></auro-radio>
94
54
  <auro-radio id="basicGroupRadio2" label="No" name="radioDemo" value="no"></auro-radio>
95
55
  <auro-radio id="basicGroupRadio3" label="Maybe" name="radioDemo" value="maybe"></auro-radio>
96
56
  </auro-radio-group>
97
- ```
98
- <!-- AURO-GENERATED-CONTENT:END -->
99
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/inverseAppearanceGroup.html) -->
100
- <!-- The below content is automatically added from ./../apiExamples/inverseAppearanceGroup.html -->
101
- <auro-radio-group appearance="inverse">
102
- <span slot="legend">Form label goes here</span>
103
- <auro-radio id="basicGroupRadio1" label="Yes" name="radioDemo" value="yes"></auro-radio>
104
- <auro-radio id="basicGroupRadio2" label="No" name="radioDemo" value="no"></auro-radio>
105
- <auro-radio id="basicGroupRadio3" label="Maybe" name="radioDemo" value="maybe"></auro-radio>
106
- </auro-radio-group>
107
- <!-- AURO-GENERATED-CONTENT:END -->
108
- </auro-accordion>
109
-
110
- ### Accordion Nested Group
111
-
112
- This example shows how to use `<auro-accordion>` with the `<auro-radio-group>` and `<auro-radio>` elements for
113
- nested/optional groups (such as a "More Options" section in a payment processor).
114
-
115
- <div class="exampleWrapper">
116
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/accordionExample.html) -->
117
- <!-- The below content is automatically added from ./../apiExamples/accordionExample.html -->
118
- <auro-radio-group>
119
- <span slot="legend">Accordion Test</span>
120
- <auro-radio id="basicGroupRadio1" label="Credit or debit card" name="creditordebit" value="credit"></auro-radio>
121
- <auro-radio id="basicGroupRadio2" label="Apple Pay" name="applePay" value="applePay"></auro-radio>
122
- <auro-radio id="basicGroupRadio3" label="Alaska Airlines Commercial Account" name="alaskaCommercial" value="alaskaCommercial"></auro-radio>
123
- <auro-accordion>
124
- <span slot="trigger">More payment options</span>
125
- <auro-radio id="basicGroupRadio4" label="Click to pay" name="manualCredit" value="manualCredit"></auro-radio>
126
- <auro-radio id="basicGroupRadio5" label="Google Pay" name="googlePay" value="googlePay"></auro-radio>
127
- </auro-accordion>
128
- </auro-radio-group>
129
57
  <!-- AURO-GENERATED-CONTENT:END -->
130
58
  </div>
131
59
  <auro-accordion alignRight>
132
60
  <span slot="trigger">See code</span>
133
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/accordionExample.html) -->
134
- <!-- The below code snippet is automatically added from ./../apiExamples/accordionExample.html -->
61
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/basic.html) -->
62
+ <!-- The below code snippet is automatically added from ./../apiExamples/basic.html -->
135
63
 
136
64
  ```html
137
65
  <auro-radio-group>
138
- <span slot="legend">Accordion Test</span>
139
- <auro-radio id="basicGroupRadio1" label="Credit or debit card" name="creditordebit" value="credit"></auro-radio>
140
- <auro-radio id="basicGroupRadio2" label="Apple Pay" name="applePay" value="applePay"></auro-radio>
141
- <auro-radio id="basicGroupRadio3" label="Alaska Airlines Commercial Account" name="alaskaCommercial" value="alaskaCommercial"></auro-radio>
142
- <auro-accordion>
143
- <span slot="trigger">More payment options</span>
144
- <auro-radio id="basicGroupRadio4" label="Click to pay" name="manualCredit" value="manualCredit"></auro-radio>
145
- <auro-radio id="basicGroupRadio5" label="Google Pay" name="googlePay" value="googlePay"></auro-radio>
146
- </auro-accordion>
66
+ <span slot="legend">Form label goes here</span>
67
+ <auro-radio id="basicGroupRadio1" label="Yes" name="radioDemo" value="yes"></auro-radio>
68
+ <auro-radio id="basicGroupRadio2" label="No" name="radioDemo" value="no"></auro-radio>
69
+ <auro-radio id="basicGroupRadio3" label="Maybe" name="radioDemo" value="maybe"></auro-radio>
147
70
  </auro-radio-group>
148
71
  ```
149
72
  <!-- AURO-GENERATED-CONTENT:END -->