@aurodesignsystem-dev/auro-formkit 0.0.0-pr624.4 → 0.0.0-pr624.40

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 (114) hide show
  1. package/components/bibtemplate/dist/auro-bibtemplate.d.ts +13 -2
  2. package/components/bibtemplate/dist/buttonVersion.d.ts +2 -0
  3. package/components/bibtemplate/dist/iconVersion.d.ts +1 -1
  4. package/components/bibtemplate/dist/index.js +1292 -79
  5. package/components/bibtemplate/dist/registered.js +1292 -79
  6. package/components/checkbox/README.md +1 -1
  7. package/components/checkbox/demo/api.md +47 -14
  8. package/components/checkbox/demo/api.min.js +44 -31
  9. package/components/checkbox/demo/index.md +2 -2
  10. package/components/checkbox/demo/index.min.js +44 -31
  11. package/components/checkbox/demo/readme.md +1 -1
  12. package/components/checkbox/dist/auro-checkbox-group.d.ts +1 -1
  13. package/components/checkbox/dist/auro-checkbox.d.ts +3 -3
  14. package/components/checkbox/dist/index.js +44 -31
  15. package/components/checkbox/dist/registered.js +44 -31
  16. package/components/combobox/demo/api.md +100 -2
  17. package/components/combobox/demo/api.min.js +3202 -759
  18. package/components/combobox/demo/index.md +6 -30
  19. package/components/combobox/demo/index.min.js +3202 -759
  20. package/components/combobox/dist/auro-combobox.d.ts +37 -16
  21. package/components/combobox/dist/index.js +3091 -789
  22. package/components/combobox/dist/registered.js +3091 -789
  23. package/components/counter/demo/api.html +1 -0
  24. package/components/counter/demo/api.md +21 -19
  25. package/components/counter/demo/api.min.js +3324 -614
  26. package/components/counter/demo/index.html +1 -0
  27. package/components/counter/demo/index.md +103 -34
  28. package/components/counter/demo/index.min.js +3324 -614
  29. package/components/counter/dist/auro-counter-button.d.ts +2 -0
  30. package/components/counter/dist/auro-counter-group.d.ts +89 -6
  31. package/components/counter/dist/auro-counter.d.ts +6 -0
  32. package/components/counter/dist/helptextVersion.d.ts +2 -0
  33. package/components/counter/dist/iconVersion.d.ts +1 -1
  34. package/components/counter/dist/index.js +3324 -614
  35. package/components/counter/dist/registered.js +3324 -614
  36. package/components/datepicker/demo/api.md +36 -19
  37. package/components/datepicker/demo/api.min.js +11976 -8000
  38. package/components/datepicker/demo/index.md +80 -0
  39. package/components/datepicker/demo/index.min.js +11976 -8000
  40. package/components/datepicker/dist/auro-datepicker.d.ts +71 -3
  41. package/components/datepicker/dist/buttonVersion.d.ts +1 -1
  42. package/components/datepicker/dist/iconVersion.d.ts +2 -0
  43. package/components/datepicker/dist/index.js +12238 -8262
  44. package/components/datepicker/dist/popoverVersion.d.ts +1 -1
  45. package/components/datepicker/dist/registered.js +12238 -8262
  46. package/components/dropdown/demo/api.md +8 -9
  47. package/components/dropdown/demo/api.min.js +551 -147
  48. package/components/dropdown/demo/index.md +57 -9
  49. package/components/dropdown/demo/index.min.js +551 -147
  50. package/components/dropdown/dist/auro-dropdown.d.ts +28 -9
  51. package/components/dropdown/dist/auro-dropdownBib.d.ts +22 -0
  52. package/components/dropdown/dist/index.js +551 -147
  53. package/components/dropdown/dist/registered.js +551 -147
  54. package/components/form/demo/api.min.js +1 -1
  55. package/components/form/demo/index.min.js +1 -1
  56. package/components/form/dist/index.js +1 -1
  57. package/components/form/dist/registered.js +1 -1
  58. package/components/helptext/dist/index.js +2 -2
  59. package/components/helptext/dist/registered.js +2 -2
  60. package/components/input/README.md +5 -2
  61. package/components/input/demo/api.md +271 -176
  62. package/components/input/demo/api.min.js +956 -270
  63. package/components/input/demo/index.md +48 -32
  64. package/components/input/demo/index.min.js +955 -269
  65. package/components/input/demo/readme.md +5 -2
  66. package/components/input/dist/auro-input.d.ts +23 -15
  67. package/components/input/dist/base-input.d.ts +32 -8
  68. package/components/input/dist/buttonVersion.d.ts +1 -1
  69. package/components/input/dist/iconVersion.d.ts +1 -1
  70. package/components/input/dist/index.js +955 -269
  71. package/components/input/dist/registered.js +955 -269
  72. package/components/layoutElement/dist/index.js +13 -10
  73. package/components/menu/demo/api.html +38 -0
  74. package/components/menu/demo/api.md +68 -7
  75. package/components/menu/demo/api.min.js +278 -42
  76. package/components/menu/demo/index.min.js +278 -42
  77. package/components/menu/dist/auro-menu.d.ts +28 -5
  78. package/components/menu/dist/auro-menuoption.d.ts +15 -3
  79. package/components/menu/dist/iconVersion.d.ts +1 -1
  80. package/components/menu/dist/index.js +278 -42
  81. package/components/menu/dist/registered.js +278 -42
  82. package/components/menu/dist/styles/default/color-menuoption-css.d.ts +2 -0
  83. package/components/menu/dist/styles/default/style-menu-css.d.ts +2 -0
  84. package/components/menu/dist/styles/default/style-menuoption-css.d.ts +2 -0
  85. package/components/menu/dist/styles/default/tokens-css.d.ts +2 -0
  86. package/components/radio/demo/api.md +7 -8
  87. package/components/radio/demo/api.min.js +68 -80
  88. package/components/radio/demo/index.min.js +68 -80
  89. package/components/radio/dist/auro-radio-group.d.ts +1 -1
  90. package/components/radio/dist/auro-radio.d.ts +9 -12
  91. package/components/radio/dist/index.js +68 -80
  92. package/components/radio/dist/registered.js +68 -80
  93. package/components/select/demo/api.md +123 -13
  94. package/components/select/demo/api.min.js +3045 -456
  95. package/components/select/demo/index.html +1 -0
  96. package/components/select/demo/index.md +323 -763
  97. package/components/select/demo/index.min.js +3045 -456
  98. package/components/select/dist/auro-select.d.ts +112 -11
  99. package/components/select/dist/helptextVersion.d.ts +2 -0
  100. package/components/select/dist/index.js +2925 -477
  101. package/components/select/dist/registered.js +2925 -477
  102. package/components/select/dist/styles/shapeSize-css.d.ts +2 -0
  103. package/components/select/dist/styles/tokens-css.d.ts +2 -0
  104. package/package.json +6 -4
  105. /package/components/{dropdown/dist/styles/default/bibColors-css.d.ts → counter/dist/styles/shapeSize-css.d.ts} +0 -0
  106. /package/components/{dropdown → datepicker}/dist/styles/default/color-css.d.ts +0 -0
  107. /package/components/{dropdown/dist/styles/default/bibStyles-css.d.ts → datepicker/dist/styles/shapeSize-css.d.ts} +0 -0
  108. /package/components/{dropdown/dist/styles/default/style-css.d.ts → datepicker/dist/styles/snowflake/color-css.d.ts} +0 -0
  109. /package/components/{dropdown/dist/styles → datepicker/dist/styles/snowflake}/style-css.d.ts +0 -0
  110. /package/components/{menu/dist/styles/color-menu-css.d.ts → dropdown/dist/styles/classic/bibColors-css.d.ts} +0 -0
  111. /package/components/{menu/dist/styles/color-menuoption-css.d.ts → dropdown/dist/styles/classic/bibStyles-css.d.ts} +0 -0
  112. /package/components/{menu/dist/styles/style-menu-css.d.ts → dropdown/dist/styles/classic/color-css.d.ts} +0 -0
  113. /package/components/{menu/dist/styles/style-menuoption-css.d.ts → dropdown/dist/styles/classic/style-css.d.ts} +0 -0
  114. /package/components/menu/dist/styles/{tokens-css.d.ts → default/color-menu-css.d.ts} +0 -0
@@ -3,11 +3,106 @@ import { unsafeStatic, literal, html as html$1 } from 'lit/static-html.js';
3
3
  import { classMap } from 'lit/directives/class-map.js';
4
4
  import { ifDefined } from 'lit/directives/if-defined.js';
5
5
 
6
- var styleCss$2 = css`:focus:not(:focus-visible){outline:3px solid transparent}:host{display:inline-block;width:100%;margin:0;padding:0;vertical-align:middle}:host ::slotted(auro-menuoption),:host ::slotted([auro-menuoption]),:host auro-menuoption[loadingplaceholder]{padding-left:calc(var(--ds-size-150, 0.75rem) + 24px + var(--ds-size-100, 0.5rem))}:host ::slotted([selected]){padding-left:0}:host ::slotted(hr){box-sizing:content-box !important;height:0 !important;overflow:visible !important;margin:var(--ds-size-100, 0.5rem) 0 !important;border-width:0 !important;border-top-width:1px !important;border-top-style:solid !important}:host([nocheckmark]) ::slotted(auro-menuoption),:host([nocheckmark]) auro-menuoption[loadingplaceholder]{padding-left:var(--ds-size-200, 1rem)}:host([root]){overflow-y:auto}[loadingplaceholder].empty{opacity:0;position:absolute}[loadingplaceholder] slot[name=loadingIcon]{vertical-align:middle;line-height:1;display:inline-block}[loadingplaceholder] slot[name=loadingIcon]::slotted(*){margin-right:var(--ds-size-150, 0.75rem)}`;
6
+ var styleCss$2 = css`:focus:not(:focus-visible){outline:3px solid transparent}:host{display:block;vertical-align:middle}:host .wrapper{box-sizing:border-box;display:inline-block;width:100%;margin:0;padding:0}:host ::slotted(hr){box-sizing:content-box !important;height:0 !important;overflow:visible !important;margin:var(--ds-size-100, 0.5rem) 0 !important;border-width:0 !important;border-top-width:1px !important;border-top-style:solid !important}:host [loadingplaceholder].empty{opacity:0;position:absolute}:host [loadingplaceholder] slot[name=loadingIcon]{vertical-align:middle;line-height:1;display:inline-block}:host [loadingplaceholder] slot[name=loadingIcon]::slotted(*){margin-right:var(--ds-size-150, 0.75rem)}:host([root]){overflow-y:auto}:host([root]) .wrapper[class*=-lg]{padding:var(--ds-size-150, 0.75rem)}:host([root]) .wrapper[class*=-xl]{padding:var(--ds-size-200, 1rem)}`;
7
7
 
8
8
  var colorCss$2 = css`:host ::slotted(hr){border-top-color:var(--ds-auro-menu-divider-color)}[loadingplaceholder] slot[name=loadingIcon]{color:var(--ds-auro-menu-loader-color)}[loadingplaceholder] slot[name=loadingText]{color:var(--ds-auro-menu-loader-text-color)}`;
9
9
 
10
- var tokensCss$1 = css`:host{--ds-auro-menu-divider-color: var(--ds-basic-color-border-divider, rgba(0, 0, 0, 0.15));--ds-auro-menu-loader-color: var(--ds-basic-color-brand-primary, #01426a);--ds-auro-menu-loader-text-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-menuoption-container-color: transparent;--ds-auro-menuoption-icon-color: transparent;--ds-auro-menuoption-text-color: var(--ds-basic-color-texticon-default, #2a2a2a)}`;
10
+ var tokensCss$1 = css`:host{--ds-auro-menu-divider-color: var(--ds-basic-color-border-divider, rgba(0, 0, 0, 0.15));--ds-auro-menu-loader-color: var(--ds-basic-color-brand-primary, #01426a);--ds-auro-menu-loader-text-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-menuoption-container-color: transparent;--ds-auro-menuoption-container-border-color: var(--ds-auro-menuoption-container-color);--ds-auro-menuoption-icon-color: transparent;--ds-auro-menuoption-text-color: var(--ds-basic-color-texticon-default, #2a2a2a)}`;
11
+
12
+ let AuroElement$1 = class AuroElement extends LitElement {
13
+ static get properties() {
14
+ return {
15
+
16
+ /**
17
+ * Defines the language of an element.
18
+ * @default {'default'}
19
+ */
20
+ layout: {
21
+ type: String,
22
+ attribute: "layout",
23
+ reflect: true
24
+ },
25
+
26
+ shape: {
27
+ type: String,
28
+ attribute: "shape",
29
+ reflect: true
30
+ },
31
+
32
+ size: {
33
+ type: String,
34
+ attribute: "size",
35
+ reflect: true
36
+ },
37
+
38
+ onDark: {
39
+ type: Boolean,
40
+ attribute: "ondark",
41
+ reflect: true
42
+ }
43
+ };
44
+ }
45
+
46
+ resetShapeClasses() {
47
+ const wrapper = this.shadowRoot.querySelector('.wrapper');
48
+
49
+ if (wrapper) {
50
+ wrapper.classList.forEach((className) => {
51
+ if (className.startsWith('shape-')) {
52
+ wrapper.classList.remove(className);
53
+ }
54
+ });
55
+
56
+ }
57
+
58
+ if (this.shape && this.size) {
59
+ wrapper.classList.add(`shape-${this.shape.toLowerCase()}-${this.size.toLowerCase()}`);
60
+ } else {
61
+ wrapper.classList.add('shape-none');
62
+ }
63
+ }
64
+
65
+ resetLayoutClasses() {
66
+ if (this.layout) {
67
+ const wrapper = this.shadowRoot.querySelector('.wrapper');
68
+
69
+ if (wrapper) {
70
+ wrapper.classList.forEach((className) => {
71
+ if (className.startsWith('layout-')) {
72
+ wrapper.classList.remove(className);
73
+ }
74
+ });
75
+
76
+ wrapper.classList.add(`layout-${this.layout.toLowerCase()}`);
77
+ }
78
+ }
79
+ }
80
+
81
+ updateComponentArchitecture() {
82
+ this.resetLayoutClasses();
83
+ this.resetShapeClasses();
84
+ }
85
+
86
+ updated(changedProperties) {
87
+ if (changedProperties.has('layout') || changedProperties.has('shape') || changedProperties.has('size')) {
88
+ this.updateComponentArchitecture();
89
+ }
90
+ }
91
+
92
+ // Try to render the defined `this.layout` layout. If that fails, fall back to the default layout.
93
+ // This will catch if an invalid layout value is passed in and render the default layout if so.
94
+ render() {
95
+ try {
96
+ return this.renderLayout();
97
+ } catch (error) {
98
+ // failed to get the defined layout
99
+ console.error('Failed to get the defined layout - using the default layout', error); // eslint-disable-line no-console
100
+
101
+ // fallback to the default layout
102
+ return this.getLayout('default');
103
+ }
104
+ }
105
+ };
11
106
 
12
107
  // Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
13
108
  // See LICENSE in the project root for license information.
@@ -16,7 +111,7 @@ var tokensCss$1 = css`:host{--ds-auro-menu-divider-color: var(--ds-basic-color-b
16
111
 
17
112
  /* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
18
113
 
19
- class AuroLibraryRuntimeUtils {
114
+ let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
20
115
 
21
116
  /* eslint-disable jsdoc/require-param */
22
117
 
@@ -77,7 +172,7 @@ class AuroLibraryRuntimeUtils {
77
172
 
78
173
  return elemTag === tag || elem.hasAttribute(tag);
79
174
  }
80
- }
175
+ };
81
176
 
82
177
  // Copyright (c) 2021 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
83
178
  // See LICENSE in the project root for license information.
@@ -143,14 +238,17 @@ function dispatchMenuEvent(element, eventName, detail = null) {
143
238
  * @slot - Slot for insertion of menu options.
144
239
  */
145
240
 
146
- /* eslint-disable no-magic-numbers, max-lines, no-extra-parens */
241
+ /* eslint-disable no-magic-numbers, max-lines, no-extra-parens, no-inline-comments, line-comment-position */
147
242
 
148
- class AuroMenu extends LitElement {
243
+ class AuroMenu extends AuroElement$1 {
149
244
  constructor() {
150
245
  super();
151
246
 
152
247
  // State properties (reactive)
153
248
 
249
+ this.shape = ""; // box, rounded, pill
250
+ this.size = ""; // md, lg, xl
251
+
154
252
  // Value of the selected options
155
253
  this.value = undefined;
156
254
  // Currently selected option
@@ -209,6 +307,7 @@ class AuroMenu extends LitElement {
209
307
 
210
308
  static get properties() {
211
309
  return {
310
+ ...super.properties,
212
311
  noCheckmark: {
213
312
  type: Boolean,
214
313
  reflect: true,
@@ -242,6 +341,16 @@ class AuroMenu extends LitElement {
242
341
  value: {
243
342
  // Allow string, string[] arrays and undefined
244
343
  type: Object
344
+ },
345
+
346
+ /**
347
+ * Indent level for submenus.
348
+ * @private
349
+ */
350
+ level: {
351
+ type: Number,
352
+ reflect: false,
353
+ attribute: false
245
354
  }
246
355
  };
247
356
  }
@@ -263,7 +372,7 @@ class AuroMenu extends LitElement {
263
372
  *
264
373
  */
265
374
  static register(name = "auro-menu") {
266
- AuroLibraryRuntimeUtils.prototype.registerComponent(name, AuroMenu);
375
+ AuroLibraryRuntimeUtils$1.prototype.registerComponent(name, AuroMenu);
267
376
  }
268
377
 
269
378
  // Lifecycle Methods
@@ -275,6 +384,7 @@ class AuroMenu extends LitElement {
275
384
  this.addEventListener('mousedown', this.handleMouseSelect);
276
385
  this.addEventListener('auroMenuOption-mouseover', this.handleOptionHover);
277
386
  this.addEventListener('slotchange', this.handleSlotChange);
387
+ this.setTagAttribute("auro-menu");
278
388
  }
279
389
 
280
390
  disconnectedCallback() {
@@ -287,19 +397,33 @@ class AuroMenu extends LitElement {
287
397
  }
288
398
 
289
399
  firstUpdated() {
290
- AuroLibraryRuntimeUtils.prototype.handleComponentTagRename(this, 'auro-menu');
400
+ AuroLibraryRuntimeUtils$1.prototype.handleComponentTagRename(this, 'auro-menu');
291
401
 
292
402
  this.loadingSlots = this.querySelectorAll("[slot='loadingText'], [slot='loadingIcon']");
293
403
  this.initializeMenu();
294
404
  }
295
405
 
406
+ /**
407
+ * Sets an attribute that matches the default tag name if the tag name is not the default.
408
+ * @param {string} tagName - The tag name to set as an attribute.
409
+ * @private
410
+ */
411
+ setTagAttribute(tagName) {
412
+ if (this.tagName.toLowerCase() !== tagName) {
413
+ this.setAttribute(tagName, true);
414
+ }
415
+ }
416
+
296
417
  updated(changedProperties) {
418
+ super.updated(changedProperties);
419
+
297
420
  if (changedProperties.has('multiSelect')) {
298
421
  // Reset selection if multiSelect mode changes
299
422
  this.clearSelection();
300
423
  }
301
424
 
302
- if (changedProperties.has('value')) {
425
+
426
+ if (changedProperties.has("value")) {
303
427
  // Handle null/undefined case
304
428
  if (this.value === undefined || this.value === null) {
305
429
  this.optionSelected = undefined;
@@ -367,6 +491,19 @@ class AuroMenu extends LitElement {
367
491
  this.querySelectorAll('auro-menu, [auro-menu], auro-menuoption, [auro-menuoption]').forEach((element) => element.setAttribute('noCheckmark', ''));
368
492
  }
369
493
 
494
+ // Handle layout propagation to all menus and options
495
+ const propagationTargets = this.querySelectorAll('auro-menu, [auro-menu], auro-menuoption, [auro-menuoption]');
496
+ [
497
+ 'size',
498
+ 'shape'
499
+ ].forEach((prop) => {
500
+ if (changedProperties.has(prop)) {
501
+ propagationTargets.forEach((el) => {
502
+ el.setAttribute(prop, this[prop]);
503
+ });
504
+ }
505
+ });
506
+
370
507
  // Regex for matchWord if needed
371
508
  let regexWord = null;
372
509
 
@@ -563,21 +700,20 @@ class AuroMenu extends LitElement {
563
700
  * @param {HTMLElement} menu - Root menu element.
564
701
  */
565
702
  handleNestedMenus(menu) {
566
- const nestedMenus = menu.querySelectorAll('auro-menu, [auro-menu]');
703
+ menu.level = menu.parentElement.level >= 0 ? menu.parentElement.level + 1 : 0;
567
704
 
568
- nestedMenus.forEach((nestedMenu) => {
569
- // role="listbox" only allows "role=group" for children.
570
- nestedMenu.setAttribute('role', 'group');
571
- if (!nestedMenu.hasAttribute('aria-label')) {
572
- nestedMenu.setAttribute('aria-label', 'submenu');
705
+ if (menu.level > 0) {
706
+ menu.setAttribute('role', 'group');
707
+ menu.removeAttribute("root");
708
+ if (!menu.hasAttribute('aria-label')) {
709
+ menu.setAttribute('aria-label', 'submenu');
573
710
  }
711
+ }
574
712
 
575
- const options = nestedMenu.querySelectorAll(':scope > auro-menuoption, :scope > [auro-menuoption]');
576
- options.forEach((option) => {
577
- option.innerHTML = this.nestingSpacer + option.innerHTML;
578
- });
579
-
580
- this.handleNestedMenus(nestedMenu);
713
+ const options = menu.querySelectorAll(':scope > auro-menuoption, :scope > [auro-menuoption]');
714
+ options.forEach((option) => {
715
+ const regex = new RegExp(this.nestingSpacer, "gu");
716
+ option.innerHTML = this.nestingSpacer.repeat(menu.level) + option.innerHTML.replace(regex, '');
581
717
  });
582
718
  }
583
719
 
@@ -819,28 +955,39 @@ class AuroMenu extends LitElement {
819
955
  }
820
956
 
821
957
  /**
822
- * Renders the component.
823
- * @returns {boolean} - True if loading slots are present and non-empty.
958
+ * Logic to determine the layout of the component.
959
+ * @protected
960
+ * @returns {void}
824
961
  */
825
- render() {
962
+ renderLayout() {
826
963
  if (this.loading) {
827
964
  return html`
828
- <auro-menuoption disabled loadingplaceholder class="${this.hasLoadingPlaceholder ? '' : 'empty'}">
829
- <div>
830
- <slot name="loadingIcon"></slot>
831
- <slot name="loadingText"></slot>
832
- </div>
833
- </auro-menuoption>
965
+ <div class="wrapper">
966
+ <auro-menuoption
967
+ disabled
968
+ loadingplaceholder
969
+ class="${this.hasLoadingPlaceholder ? "" : "empty"}"
970
+ >
971
+ <div>
972
+ <slot name="loadingIcon"></slot>
973
+ <slot name="loadingText"></slot>
974
+ </div>
975
+ </auro-menuoption>
976
+ </div>
834
977
  `;
835
978
  }
836
979
 
837
- return html`<slot @slotchange=${this.handleSlotChange}></slot>`;
980
+ return html`
981
+ <div class="wrapper">
982
+ <slot @slotchange=${this.handleSlotChange}></slot>
983
+ </div>
984
+ `;
838
985
  }
839
986
  }
840
987
 
841
- var styleCss$1 = css`:host{display:flex;align-items:center;padding:var(--ds-size-50, 0.25rem) var(--ds-size-200, 1rem) var(--ds-size-50, 0.25rem) 0;cursor:pointer;user-select:none;-webkit-tap-highlight-color:transparent}:host slot{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}:host [auro-icon]{--ds-auro-icon-size: var(--ds-size-300, 1.5rem);margin-right:var(--ds-size-150, 0.75rem);margin-left:var(--ds-size-100, 0.5rem)}:host ::slotted(.nestingSpacer){display:inline-block;width:var(--ds-size-300, 1.5rem)}:host ::slotted(strong){font-weight:700}:host([hidden]){display:none}:host([static]){pointer-events:none}:host([disabled]:hover){cursor:auto}:host([disabled]){user-select:none;pointer-events:none}`;
988
+ var styleCss$1 = css`:host{cursor:pointer;user-select:none}:host .wrapper{display:flex;align-items:center;padding-right:var(--ds-size-200, 1rem);padding-left:calc(var(--ds-size-150, 0.75rem) + 24px + var(--ds-size-100, 0.5rem));padding-top:var(--ds-size-50, 0.25rem);padding-bottom:var(--ds-size-50, 0.25rem);-webkit-tap-highlight-color:transparent}:host .wrapper[class*=shape-box],:host .wrapper[class*=shape-snowflake]{border-radius:unset}:host .wrapper[class*=shape-pill]{border-radius:30px}:host .wrapper[class*=-lg]{font-size:var(--ds-text-body-size-lg, 1.125rem);line-height:var(--ds-text-body-height-lg, 1.625rem);padding-top:var(--ds-size-75, 0.375rem);padding-bottom:var(--ds-size-75, 0.375rem);padding-right:var(--ds-size-150, 0.75rem)}:host .wrapper[class*=-lg]:not(:last-child){margin-bottom:var(--ds-size-50, 0.25rem)}:host .wrapper[class*=-xl]{font-size:var(--ds-text-body-size-lg, 1.125rem);line-height:var(--ds-text-body-height-lg, 1.625rem);padding-top:var(--ds-size-100, 0.5rem);padding-bottom:var(--ds-size-100, 0.5rem);padding-right:var(--ds-size-200, 1rem)}:host .wrapper[class*=-xl]:not(:last-child){margin-bottom:var(--ds-size-100, 0.5rem)}:host slot{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}:host [auro-icon]{--ds-auro-icon-size: var(--ds-size-300, 1.5rem);margin-right:var(--ds-size-150, 0.75rem);margin-left:var(--ds-size-100, 0.5rem)}:host ::slotted(.nestingSpacer){display:inline-block;width:var(--ds-size-300, 1.5rem)}:host ::slotted(strong){font-weight:700}:host([loadingplaceholder]) .wrapper{padding-left:calc(var(--ds-size-150, 0.75rem) + 24px + var(--ds-size-100, 0.5rem))}:host([selected]) .wrapper{padding-left:0}:host([nocheckmark]) .wrapper{padding-left:var(--ds-size-150, 0.75rem)}:host([nocheckmark]) .wrapper[class*=-lg]{padding-left:var(--ds-size-150, 0.75rem)}:host([nocheckmark]) .wrapper[class*=-xl]{padding-left:var(--ds-size-200, 1rem)}:host([hidden]){display:none}:host([static]){pointer-events:none}:host([disabled]:hover){cursor:auto}:host([disabled]){user-select:none;pointer-events:none}`;
842
989
 
843
- var colorCss$1 = css`:host{background-color:var(--ds-auro-menuoption-container-color);color:var(--ds-auro-menuoption-text-color)}:host svg{fill:var(--ds-auro-menuoption-icon-color)}:host([disabled]){--ds-auro-menuoption-text-color: var(--ds-basic-color-texticon-disabled, #d0d0d0)}:host(:hover),:host(.active){--ds-auro-menuoption-container-color: var(--ds-basic-color-surface-neutral-subtle, #f7f7f7)}:host([selected]){--ds-auro-menuoption-container-color: var(--ds-advanced-color-state-selected, #01426a);--ds-auro-menuoption-text-color: var(--ds-basic-color-texticon-inverse, #ffffff);--ds-auro-menuoption-icon-color: var(--ds-basic-color-texticon-inverse, #ffffff)}:host([selected]):host(:hover),:host([selected]):host(.active){--ds-auro-menuoption-container-color: var(--ds-advanced-color-state-selected-hover, #00274a)}`;
990
+ var colorCss$1 = css`:host .wrapper{border:1px solid var(--ds-auro-menuoption-container-border-color);background-color:var(--ds-auro-menuoption-container-color);color:var(--ds-auro-menuoption-text-color)}:host svg{fill:var(--ds-auro-menuoption-icon-color)}:host([disabled]){--ds-auro-menuoption-text-color: var(--ds-basic-color-texticon-disabled, #d0d0d0)}:host(:hover),:host(.active){--ds-auro-menuoption-container-color: var(--ds-basic-color-surface-neutral-subtle, #f7f7f7)}:host([selected]){--ds-auro-menuoption-container-color: var(--ds-advanced-color-state-selected, #01426a);--ds-auro-menuoption-text-color: var(--ds-basic-color-texticon-inverse, #ffffff);--ds-auro-menuoption-icon-color: var(--ds-basic-color-texticon-inverse, #ffffff)}:host([selected]):host(:hover),:host([selected]):host(.active){--ds-auro-menuoption-container-color: var(--ds-advanced-color-state-selected-hover, #00274a)}`;
844
991
 
845
992
  // Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
846
993
  // See LICENSE in the project root for license information.
@@ -1036,6 +1183,76 @@ var tokensCss = css`:host{--ds-auro-icon-color:var(--ds-basic-color-texticon-def
1036
1183
 
1037
1184
  var colorCss = css`:host{color:var(--ds-auro-icon-color)}:host([customColor]){color:inherit}:host(:not([onDark])[variant=accent1]){--ds-auro-icon-color:var(--ds-basic-color-texticon-accent1, #265688)}:host(:not([onDark])[variant=disabled]){--ds-auro-icon-color:var(--ds-basic-color-texticon-disabled, #d0d0d0)}:host(:not([onDark])[variant=muted]){--ds-auro-icon-color:var(--ds-basic-color-texticon-muted, #676767)}:host(:not([onDark])[variant=statusDefault]){--ds-auro-icon-color:var(--ds-basic-color-status-default, #afb9c6)}:host(:not([onDark])[variant=statusInfo]){--ds-auro-icon-color:var(--ds-basic-color-status-info, #01426a)}:host(:not([onDark])[variant=statusSuccess]){--ds-auro-icon-color:var(--ds-basic-color-status-success, #447a1f)}:host(:not([onDark])[variant=statusWarning]){--ds-auro-icon-color:var(--ds-basic-color-status-warning, #fac200)}:host(:not([onDark])[variant=statusError]){--ds-auro-icon-color:var(--ds-basic-color-status-error, #e31f26)}:host(:not([onDark])[variant=statusInfoSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-info-subtle, #ebf3f9)}:host(:not([onDark])[variant=statusSuccessSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-success-subtle, #d6eac7)}:host(:not([onDark])[variant=statusWarningSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-warning-subtle, #fff0b2)}:host(:not([onDark])[variant=statusErrorSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-error-subtle, #fbc6c6)}:host(:not([onDark])[variant=fareBasicEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-basiceconomy, #97eaf8)}:host(:not([onDark])[variant=fareBusiness]){--ds-auro-icon-color:var(--ds-basic-color-fare-business, #01426a)}:host(:not([onDark])[variant=fareEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-economy, #0074ca)}:host(:not([onDark])[variant=fareFirst]){--ds-auro-icon-color:var(--ds-basic-color-fare-first, #00274a)}:host(:not([onDark])[variant=farePremiumEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-premiumeconomy, #005154)}:host(:not([onDark])[variant=tierOneWorldEmerald]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-emerald, #139142)}:host(:not([onDark])[variant=tierOneWorldSapphire]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-sapphire, #015daa)}:host(:not([onDark])[variant=tierOneWorldRuby]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-ruby, #a41d4a)}:host([onDark]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse, #ffffff)}:host([onDark][variant=disabled]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}:host([onDark][variant=muted]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}:host([onDark][variant=statusError]){--ds-auro-icon-color:var(--ds-advanced-color-state-error-inverse, #f9a4a8)}`;
1038
1185
 
1186
+ // Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
1187
+ // See LICENSE in the project root for license information.
1188
+
1189
+ // ---------------------------------------------------------------------
1190
+
1191
+ /* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
1192
+
1193
+ class AuroLibraryRuntimeUtils {
1194
+
1195
+ /* eslint-disable jsdoc/require-param */
1196
+
1197
+ /**
1198
+ * This will register a new custom element with the browser.
1199
+ * @param {String} name - The name of the custom element.
1200
+ * @param {Object} componentClass - The class to register as a custom element.
1201
+ * @returns {void}
1202
+ */
1203
+ registerComponent(name, componentClass) {
1204
+ if (!customElements.get(name)) {
1205
+ customElements.define(name, class extends componentClass {});
1206
+ }
1207
+ }
1208
+
1209
+ /**
1210
+ * Finds and returns the closest HTML Element based on a selector.
1211
+ * @returns {void}
1212
+ */
1213
+ closestElement(
1214
+ selector, // selector like in .closest()
1215
+ base = this, // extra functionality to skip a parent
1216
+ __Closest = (el, found = el && el.closest(selector)) =>
1217
+ !el || el === document || el === window
1218
+ ? null // standard .closest() returns null for non-found selectors also
1219
+ : found
1220
+ ? found // found a selector INside this element
1221
+ : __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
1222
+ ) {
1223
+ return __Closest(base);
1224
+ }
1225
+ /* eslint-enable jsdoc/require-param */
1226
+
1227
+ /**
1228
+ * If the element passed is registered with a different tag name than what is passed in, the tag name is added as an attribute to the element.
1229
+ * @param {Object} elem - The element to check.
1230
+ * @param {String} tagName - The name of the Auro component to check for or add as an attribute.
1231
+ * @returns {void}
1232
+ */
1233
+ handleComponentTagRename(elem, tagName) {
1234
+ const tag = tagName.toLowerCase();
1235
+ const elemTag = elem.tagName.toLowerCase();
1236
+
1237
+ if (elemTag !== tag) {
1238
+ elem.setAttribute(tag, true);
1239
+ }
1240
+ }
1241
+
1242
+ /**
1243
+ * Validates if an element is a specific Auro component.
1244
+ * @param {Object} elem - The element to validate.
1245
+ * @param {String} tagName - The name of the Auro component to check against.
1246
+ * @returns {Boolean} - Returns true if the element is the specified Auro component.
1247
+ */
1248
+ elementMatch(elem, tagName) {
1249
+ const tag = tagName.toLowerCase();
1250
+ const elemTag = elem.tagName.toLowerCase();
1251
+
1252
+ return elemTag === tag || elem.hasAttribute(tag);
1253
+ }
1254
+ }
1255
+
1039
1256
  // Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
1040
1257
  // See LICENSE in the project root for license information.
1041
1258
 
@@ -1158,8 +1375,12 @@ class AuroIcon extends BaseIcon {
1158
1375
  async firstUpdated() {
1159
1376
  await super.firstUpdated();
1160
1377
 
1161
- // Removes the SVG description for screenreader if ariaHidden is set to true
1162
- if (!this.hasAttribute('ariaHidden') && this.svg) {
1378
+ /**
1379
+ * icons provide a description for screen readers. Icon only instances Auro-button
1380
+ * depend on this description to provide context for the user using a screen reader.
1381
+ * Removes the SVG description for screen reader if ariaHidden is set to true.
1382
+ */
1383
+ if (this.hasAttribute('ariaHidden') && this.svg) {
1163
1384
  const svgDesc = this.svg.querySelector('desc');
1164
1385
 
1165
1386
  if (svgDesc) {
@@ -1203,7 +1424,7 @@ class AuroIcon extends BaseIcon {
1203
1424
  }
1204
1425
  }
1205
1426
 
1206
- var iconVersion = '8.0.3';
1427
+ var iconVersion = '8.0.4';
1207
1428
 
1208
1429
  var checkmarkIcon = {"svg":"<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" aria-labelledby=\"checkmark-sm__desc\" class=\"ico_squareLarge\" role=\"img\" style=\"min-width:var(--auro-size-lg, var(--ds-size-300, 1.5rem));height:var(--auro-size-lg, var(--ds-size-300, 1.5rem));fill:currentColor\" viewBox=\"0 0 24 24\" part=\"svg\"><title/><desc id=\"checkmark-sm__desc\">a small check mark.</desc><path d=\"M8.461 11.84a.625.625 0 1 0-.922.844l2.504 2.738c.247.27.674.27.922 0l5.496-6a.625.625 0 1 0-.922-.844l-5.035 5.496z\"/></svg>"};
1209
1430
 
@@ -1221,10 +1442,13 @@ var checkmarkIcon = {"svg":"<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlin
1221
1442
  * @event auroMenuOption-mouseover - Notifies that this option has been hovered over.
1222
1443
  * @slot - Specifies text for an option, but is not the value.
1223
1444
  */
1224
- class AuroMenuOption extends LitElement {
1445
+ class AuroMenuOption extends AuroElement$1 {
1225
1446
  constructor() {
1226
1447
  super();
1227
1448
 
1449
+ this.size = ""; // md, lg, xl
1450
+ this.shape = ""; // box, rounded, pill
1451
+
1228
1452
  /**
1229
1453
  * Generate unique names for dependency components.
1230
1454
  */
@@ -1243,11 +1467,12 @@ class AuroMenuOption extends LitElement {
1243
1467
  /**
1244
1468
  * @private
1245
1469
  */
1246
- this.runtimeUtils = new AuroLibraryRuntimeUtils();
1470
+ this.runtimeUtils = new AuroLibraryRuntimeUtils$1();
1247
1471
  }
1248
1472
 
1249
1473
  static get properties() {
1250
1474
  return {
1475
+ ...super.properties,
1251
1476
  nocheckmark: {
1252
1477
  type: Boolean,
1253
1478
  reflect: true
@@ -1287,7 +1512,7 @@ class AuroMenuOption extends LitElement {
1287
1512
  *
1288
1513
  */
1289
1514
  static register(name = "auro-menuoption") {
1290
- AuroLibraryRuntimeUtils.prototype.registerComponent(name, AuroMenuOption);
1515
+ AuroLibraryRuntimeUtils$1.prototype.registerComponent(name, AuroMenuOption);
1291
1516
  }
1292
1517
 
1293
1518
  firstUpdated() {
@@ -1309,6 +1534,8 @@ class AuroMenuOption extends LitElement {
1309
1534
 
1310
1535
  // observer for selected property changes
1311
1536
  updated(changedProperties) {
1537
+ super.updated(changedProperties);
1538
+
1312
1539
  if (changedProperties.has('selected')) {
1313
1540
  this.setAttribute('aria-selected', this.selected.toString());
1314
1541
  }
@@ -1330,10 +1557,19 @@ class AuroMenuOption extends LitElement {
1330
1557
  return html$1`<${this.iconTag} customColor customSvg slot="icon">${svg}</${this.iconTag}>`;
1331
1558
  }
1332
1559
 
1333
- render() {
1560
+ /**
1561
+ * Logic to determine the layout of the component.
1562
+ * @protected
1563
+ * @returns {void}
1564
+ */
1565
+ renderLayout() {
1334
1566
  return html$1`
1335
- ${this.selected && !this.nocheckmark ? this.generateIconHtml(checkmarkIcon.svg) : undefined}
1336
- <slot></slot>
1567
+ <div class="wrapper">
1568
+ ${this.selected && !this.nocheckmark
1569
+ ? this.generateIconHtml(checkmarkIcon.svg)
1570
+ : undefined}
1571
+ <slot></slot>
1572
+ </div>
1337
1573
  `;
1338
1574
  }
1339
1575
  }
@@ -0,0 +1,2 @@
1
+ declare const _default: import("lit").CSSResult;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import("lit").CSSResult;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import("lit").CSSResult;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import("lit").CSSResult;
2
+ export default _default;
@@ -36,11 +36,11 @@
36
36
 
37
37
  ## Slots
38
38
 
39
- | Name | Description |
40
- |-----------------|-------------------------------------------------|
41
- | [helpText](#helpText) | Allows for the helper text to be overridden. |
42
- | [legend](#legend) | Allows for the legend to be overridden. |
43
- | [optionalLabel](#optionalLabel) | Allows for the optional label to be overridden. |
39
+ | Name | Description |
40
+ |-----------------|--------------------------------------------------|
41
+ | [helpText](#helpText) | Allows for the helper text to be overridden. |
42
+ | [legend](#legend) | Allows for the legend to be overridden. |
43
+ | [optionalLabel](#optionalLabel) | Allows overriding the optional display text "(optional)", which appears next to the label. |
44
44
 
45
45
  ## CSS Shadow Parts
46
46
 
@@ -62,7 +62,6 @@
62
62
  | [name](#name) | `name` | `string` | | |
63
63
  | [onDark](#onDark) | `onDark` | `Boolean` | false | If set to true, the component will render with a dark theme. |
64
64
  | [required](#required) | `required` | `Boolean` | false | Defines element as required. |
65
- | [tabIndex](#tabIndex) | `tabIndex` | `number` | -1 | |
66
65
  | [value](#value) | `value` | `string` | | |
67
66
 
68
67
  ## Methods
@@ -553,14 +552,14 @@ The component may be restyled using the following code sample and changing the v
553
552
  <!-- The below code snippet is automatically added from ./../src/styles/tokens.scss -->
554
553
 
555
554
  ```scss
556
- @import "@aurodesignsystem/design-tokens/dist/alaska/SCSSVariables--alaska";
555
+ @use "@aurodesignsystem/design-tokens/dist/themes/alaska/SCSSVariables--alaska" as v;
557
556
 
558
557
  :host {
559
558
  // auro-radio-group colors
560
559
  --ds-auro-radio-group-label-color: inherit;
561
560
 
562
561
  // auro-radio colors
563
- --ds-auro-radio-btn-border-color: var(--ds-basic-color-border-bold, #{$ds-basic-color-border-bold});
562
+ --ds-auro-radio-btn-border-color: var(--ds-basic-color-border-bold, #{v.$ds-basic-color-border-bold});
564
563
  --ds-auro-radio-btn-fill-color: transparent;
565
564
  --ds-auro-radio-btn-inset-color: transparent;
566
565
  --ds-auro-radio-label-color: inherit;