@aurodesignsystem-dev/auro-formkit 0.0.0-pr624.14 → 0.0.0-pr624.16

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 (85) hide show
  1. package/components/bibtemplate/dist/auro-bibtemplate.d.ts +12 -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 +1022 -12
  5. package/components/bibtemplate/dist/registered.js +1022 -12
  6. package/components/checkbox/README.md +1 -1
  7. package/components/checkbox/demo/api.md +2 -2
  8. package/components/checkbox/demo/api.min.js +24 -19
  9. package/components/checkbox/demo/index.md +2 -2
  10. package/components/checkbox/demo/index.min.js +24 -19
  11. package/components/checkbox/demo/readme.md +1 -1
  12. package/components/checkbox/dist/auro-checkbox.d.ts +3 -3
  13. package/components/checkbox/dist/index.js +24 -19
  14. package/components/checkbox/dist/registered.js +24 -19
  15. package/components/combobox/demo/api.md +52 -0
  16. package/components/combobox/demo/api.min.js +2059 -651
  17. package/components/combobox/demo/index.md +6 -0
  18. package/components/combobox/demo/index.min.js +2059 -651
  19. package/components/combobox/dist/auro-combobox.d.ts +4 -4
  20. package/components/combobox/dist/index.js +1978 -629
  21. package/components/combobox/dist/registered.js +1978 -629
  22. package/components/counter/demo/api.md +21 -19
  23. package/components/counter/demo/api.min.js +2326 -539
  24. package/components/counter/demo/index.md +99 -34
  25. package/components/counter/demo/index.min.js +2326 -539
  26. package/components/counter/dist/auro-counter-button.d.ts +2 -0
  27. package/components/counter/dist/auro-counter-group.d.ts +92 -1
  28. package/components/counter/dist/helptextVersion.d.ts +2 -0
  29. package/components/counter/dist/iconVersion.d.ts +1 -1
  30. package/components/counter/dist/index.js +2326 -539
  31. package/components/counter/dist/registered.js +2326 -539
  32. package/components/datepicker/demo/api.md +3 -1
  33. package/components/datepicker/demo/api.min.js +5402 -3158
  34. package/components/datepicker/demo/index.md +6 -1
  35. package/components/datepicker/demo/index.min.js +5402 -3158
  36. package/components/datepicker/dist/auro-datepicker.d.ts +17 -7
  37. package/components/datepicker/dist/iconVersion.d.ts +2 -0
  38. package/components/datepicker/dist/index.js +5402 -3158
  39. package/components/datepicker/dist/registered.js +5402 -3158
  40. package/components/dropdown/demo/api.md +3 -4
  41. package/components/dropdown/demo/api.min.js +69 -119
  42. package/components/dropdown/demo/index.md +57 -9
  43. package/components/dropdown/demo/index.min.js +69 -119
  44. package/components/dropdown/dist/auro-dropdown.d.ts +0 -8
  45. package/components/dropdown/dist/auro-dropdownBib.d.ts +14 -0
  46. package/components/dropdown/dist/index.js +69 -119
  47. package/components/dropdown/dist/registered.js +69 -119
  48. package/components/input/demo/api.md +12 -5
  49. package/components/input/demo/api.min.js +665 -285
  50. package/components/input/demo/index.min.js +665 -285
  51. package/components/input/dist/auro-input.d.ts +6 -0
  52. package/components/input/dist/base-input.d.ts +29 -6
  53. package/components/input/dist/buttonVersion.d.ts +1 -1
  54. package/components/input/dist/iconVersion.d.ts +1 -1
  55. package/components/input/dist/index.js +665 -285
  56. package/components/input/dist/registered.js +665 -285
  57. package/components/layoutElement/dist/index.js +13 -10
  58. package/components/menu/demo/api.html +38 -0
  59. package/components/menu/demo/api.md +63 -2
  60. package/components/menu/demo/api.min.js +190 -36
  61. package/components/menu/demo/index.min.js +190 -36
  62. package/components/menu/dist/auro-menu.d.ts +22 -5
  63. package/components/menu/dist/auro-menuoption.d.ts +15 -3
  64. package/components/menu/dist/iconVersion.d.ts +1 -1
  65. package/components/menu/dist/index.js +190 -36
  66. package/components/menu/dist/registered.js +190 -36
  67. package/components/menu/dist/styles/default/tokens-css.d.ts +2 -0
  68. package/components/radio/demo/api.min.js +4 -2
  69. package/components/radio/demo/index.min.js +4 -2
  70. package/components/radio/dist/auro-radio.d.ts +1 -1
  71. package/components/radio/dist/index.js +4 -2
  72. package/components/radio/dist/registered.js +4 -2
  73. package/components/select/demo/api.md +5 -5
  74. package/components/select/demo/api.min.js +1412 -293
  75. package/components/select/demo/index.md +42 -1
  76. package/components/select/demo/index.min.js +1412 -293
  77. package/components/select/dist/auro-select.d.ts +8 -8
  78. package/components/select/dist/index.js +1321 -261
  79. package/components/select/dist/registered.js +1321 -261
  80. package/package.json +2 -2
  81. /package/components/{menu/dist/styles/color-menu-css.d.ts → counter/dist/styles/shapeSize-css.d.ts} +0 -0
  82. /package/components/menu/dist/styles/{color-menuoption-css.d.ts → default/color-menu-css.d.ts} +0 -0
  83. /package/components/menu/dist/styles/{style-menu-css.d.ts → default/color-menuoption-css.d.ts} +0 -0
  84. /package/components/menu/dist/styles/{style-menuoption-css.d.ts → default/style-menu-css.d.ts} +0 -0
  85. /package/components/menu/dist/styles/{tokens-css.d.ts → default/style-menuoption-css.d.ts} +0 -0
@@ -44,7 +44,7 @@ const t={ATTRIBUTE:1},e$1=t=>(...e)=>({_$litDirective$:t,values:e});let i$1 = cl
44
44
  */
45
45
  const a=Symbol.for(""),o$1=t=>{if(t?.r===a)return t?._$litStatic$},s=t=>({_$litStatic$:t,r:a}),i=(t,...r)=>({_$litStatic$:r.reduce(((r,e,a)=>r+(t=>{if(void 0!==t._$litStatic$)return t._$litStatic$;throw Error(`Value passed to 'literal' function must be a 'literal' result: ${t}. Use 'unsafeStatic' to pass non-literal values, but\n take care to ensure page security.`)})(e)+t[a+1]),t[0]),r:a}),l=new Map,n=t=>(r,...e)=>{const a=e.length;let s,i;const n=[],u=[];let c,$=0,f=false;for(;$<a;){for(c=r[$];$<a&&void 0!==(i=e[$],s=o$1(i));)c+=s+r[++$],f=true;$!==a&&u.push(i),n.push(c),$++;}if($===a&&n.push(r[a]),f){const t=n.join("$$lit$$");void 0===(r=l.get(t))&&(n.raw=n,l.set(t,r=n)),e=u;}return t(r,...e)},u=n(x);
46
46
 
47
- let AuroElement$3 = class AuroElement extends i$2 {
47
+ let AuroElement$4 = class AuroElement extends i$2 {
48
48
  static get properties() {
49
49
  return {
50
50
 
@@ -79,18 +79,21 @@ let AuroElement$3 = class AuroElement extends i$2 {
79
79
  }
80
80
 
81
81
  resetShapeClasses() {
82
- if (this.shape && this.size) {
83
- const wrapper = this.shadowRoot.querySelector('.wrapper');
82
+ const wrapper = this.shadowRoot.querySelector('.wrapper');
84
83
 
85
- if (wrapper) {
86
- wrapper.classList.forEach((className) => {
87
- if (className.startsWith('shape-')) {
88
- wrapper.classList.remove(className);
89
- }
90
- });
84
+ if (wrapper) {
85
+ wrapper.classList.forEach((className) => {
86
+ if (className.startsWith('shape-')) {
87
+ wrapper.classList.remove(className);
88
+ }
89
+ });
91
90
 
92
- wrapper.classList.add(`shape-${this.shape.toLowerCase()}-${this.size.toLowerCase()}`);
93
- }
91
+ }
92
+
93
+ if (this.shape && this.size) {
94
+ wrapper.classList.add(`shape-${this.shape.toLowerCase()}-${this.size.toLowerCase()}`);
95
+ } else {
96
+ wrapper.classList.add('shape-none');
94
97
  }
95
98
  }
96
99
 
@@ -136,7 +139,7 @@ let AuroElement$3 = class AuroElement extends i$2 {
136
139
  }
137
140
  };
138
141
 
139
- var shapeSizeCss$1 = i$5`.wrapper{overflow:hidden}.shape-classic-xl,.shape-classic-lg,.shape-classic-md,.shape-classic-sm,.shape-classic-xs{min-height:58px;max-height:58px;border-style:solid;border-width:1px;border-radius:var(--ds-border-radius, 0.375rem)}.shape-classic-xl.simple,.shape-classic-lg.simple,.shape-classic-md.simple,.shape-classic-sm.simple,.shape-classic-xs.simple{border-width:0px;min-height:60px;max-height:60px;background-color:unset}.shape-classic-xl.thin,.shape-classic-lg.thin,.shape-classic-md.thin,.shape-classic-sm.thin,.shape-classic-xs.thin{border-width:1px;min-height:58px;max-height:58px;background-color:unset}.shape-classic-xl.parentBorder,.shape-classic-lg.parentBorder,.shape-classic-md.parentBorder,.shape-classic-sm.parentBorder,.shape-classic-xs.parentBorder{border:0;min-height:56px;max-height:56px}.shape-snowflake-xl,.shape-snowflake-lg,.shape-snowflake-md,.shape-snowflake-sm,.shape-snowflake-xs{min-height:56px;max-height:56px;border-style:solid;border-width:2px;border-color:transparent;border-radius:30px}.shape-snowflake-xl.simple,.shape-snowflake-lg.simple,.shape-snowflake-md.simple,.shape-snowflake-sm.simple,.shape-snowflake-xs.simple{border-width:0px;min-height:60px;max-height:60px;background-color:unset}.shape-snowflake-xl.thin,.shape-snowflake-lg.thin,.shape-snowflake-md.thin,.shape-snowflake-sm.thin,.shape-snowflake-xs.thin{border-width:1px;min-height:58px;max-height:58px;background-color:unset}.shape-snowflake-xl.parentBorder,.shape-snowflake-lg.parentBorder,.shape-snowflake-md.parentBorder,.shape-snowflake-sm.parentBorder,.shape-snowflake-xs.parentBorder{border:0;min-height:56px;max-height:56px}.shape-box-xl{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent}.shape-box-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset}.shape-box-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-box-xl.parentBorder{border:0;min-height:68px;max-height:68px}.shape-rounded-lg{min-height:56px;max-height:56px;border-style:solid;border-width:2px;border-color:transparent;border-radius:6px}.shape-rounded-lg.simple{border-width:0px;min-height:56px;max-height:56px;background-color:unset}.shape-rounded-lg.thin{border-width:1px;min-height:54px;max-height:54px;background-color:unset}.shape-rounded-lg.parentBorder{border:0;min-height:52px;max-height:52px}.shape-pill-xl{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px}.shape-pill-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset}.shape-pill-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-pill-xl.parentBorder{border:0;min-height:68px;max-height:68px}.shape-pill-left-xl{min-height:72px;max-height:72px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px 0 0 36px}.shape-pill-left-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset}.shape-pill-left-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-pill-left-xl.parentBorder{border:0;min-height:68px;max-height:68px}.shape-pill-right-xl{min-height:72px;max-height:72px;border-style:solid;border-width:2px;border-color:transparent;border-radius:0 36px 36px 0}.shape-pill-right-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset}.shape-pill-right-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-pill-right-xl.parentBorder{border:0;min-height:68px;max-height:68px}.shape-pill-md{min-height:72px;max-height:72px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px}.shape-pill-md.simple{border-width:0px;min-height:48px;max-height:48px;background-color:unset}.shape-pill-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}.shape-pill-md.parentBorder{border:0;min-height:44px;max-height:44px}.shape-pill-left-md{min-height:72px;max-height:72px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px 0 0 36px}.shape-pill-left-md.simple{border-width:0px;min-height:48px;max-height:48px;background-color:unset}.shape-pill-left-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}.shape-pill-left-md.parentBorder{border:0;min-height:44px;max-height:44px}.shape-pill-right-md{min-height:72px;max-height:72px;border-style:solid;border-width:2px;border-color:transparent;border-radius:0 36px 36px 0}.shape-pill-right-md.simple{border-width:0px;min-height:48px;max-height:48px;background-color:unset}.shape-pill-right-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}.shape-pill-right-md.parentBorder{border:0;min-height:44px;max-height:44px}`;
142
+ var shapeSizeCss$1 = i$5`.wrapper{overflow:hidden}.shape-classic-xl,.shape-classic-lg,.shape-classic-md,.shape-classic-sm,.shape-classic-xs{min-height:58px;max-height:58px;border-style:solid;border-width:1px;border-radius:var(--ds-border-radius, 0.375rem)}.shape-classic-xl.simple,.shape-classic-lg.simple,.shape-classic-md.simple,.shape-classic-sm.simple,.shape-classic-xs.simple{border-width:0px;min-height:60px;max-height:60px;background-color:unset;box-shadow:none}.shape-classic-xl.thin,.shape-classic-lg.thin,.shape-classic-md.thin,.shape-classic-sm.thin,.shape-classic-xs.thin{border-width:1px;min-height:58px;max-height:58px;background-color:unset}.shape-classic-xl.parentBorder,.shape-classic-lg.parentBorder,.shape-classic-md.parentBorder,.shape-classic-sm.parentBorder,.shape-classic-xs.parentBorder{border:0;box-shadow:unset;min-height:56px;max-height:56px}.shape-snowflake-xl,.shape-snowflake-lg,.shape-snowflake-md,.shape-snowflake-sm,.shape-snowflake-xs{min-height:56px;max-height:56px;border-style:solid;border-width:2px;border-color:transparent;border-radius:30px}.shape-snowflake-xl.simple,.shape-snowflake-lg.simple,.shape-snowflake-md.simple,.shape-snowflake-sm.simple,.shape-snowflake-xs.simple{border-width:0px;min-height:60px;max-height:60px;background-color:unset;box-shadow:none}.shape-snowflake-xl.thin,.shape-snowflake-lg.thin,.shape-snowflake-md.thin,.shape-snowflake-sm.thin,.shape-snowflake-xs.thin{border-width:1px;min-height:58px;max-height:58px;background-color:unset}.shape-snowflake-xl.parentBorder,.shape-snowflake-lg.parentBorder,.shape-snowflake-md.parentBorder,.shape-snowflake-sm.parentBorder,.shape-snowflake-xs.parentBorder{border:0;box-shadow:unset;min-height:56px;max-height:56px}.shape-box-xl{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent}.shape-box-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset;box-shadow:none}.shape-box-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-box-xl.parentBorder{border:0;box-shadow:unset;min-height:68px;max-height:68px}.shape-rounded-lg{min-height:56px;max-height:56px;border-style:solid;border-width:2px;border-color:transparent;border-radius:6px}.shape-rounded-lg.simple{border-width:0px;min-height:56px;max-height:56px;background-color:unset;box-shadow:none}.shape-rounded-lg.thin{border-width:1px;min-height:54px;max-height:54px;background-color:unset}.shape-rounded-lg.parentBorder{border:0;box-shadow:unset;min-height:52px;max-height:52px}.shape-pill-xl{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px}.shape-pill-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset;box-shadow:none}.shape-pill-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-pill-xl.parentBorder{border:0;box-shadow:unset;min-height:68px;max-height:68px}.shape-pill-left-xl{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px 0 0 36px}.shape-pill-left-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset;box-shadow:none}.shape-pill-left-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-pill-left-xl.parentBorder{border:0;box-shadow:unset;min-height:68px;max-height:68px}.shape-pill-right-xl{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent;border-radius:0 36px 36px 0}.shape-pill-right-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset;box-shadow:none}.shape-pill-right-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-pill-right-xl.parentBorder{border:0;box-shadow:unset;min-height:68px;max-height:68px}.shape-pill-md{min-height:44px;max-height:44px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px}.shape-pill-md.simple{border-width:0px;min-height:48px;max-height:48px;background-color:unset;box-shadow:none}.shape-pill-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}.shape-pill-md.parentBorder{border:0;box-shadow:unset;min-height:44px;max-height:44px}.shape-pill-left-md{min-height:44px;max-height:44px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px 0 0 36px}.shape-pill-left-md.simple{border-width:0px;min-height:48px;max-height:48px;background-color:unset;box-shadow:none}.shape-pill-left-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}.shape-pill-left-md.parentBorder{border:0;box-shadow:unset;min-height:44px;max-height:44px}.shape-pill-right-md{min-height:44px;max-height:44px;border-style:solid;border-width:2px;border-color:transparent;border-radius:0 36px 36px 0}.shape-pill-right-md.simple{border-width:0px;min-height:48px;max-height:48px;background-color:unset;box-shadow:none}.shape-pill-right-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}.shape-pill-right-md.parentBorder{border:0;box-shadow:unset;min-height:44px;max-height:44px}`;
140
143
 
141
144
  var tokensCss$5 = i$5`:host(:not([ondark])){--ds-auro-select-border-color: var(--ds-basic-color-border-bold, #585e67);--ds-auro-select-background-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-select-label-text-color: var(--ds-basic-color-texticon-muted, #676767);--ds-auro-select-placeholder-text-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-select-text-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-select-error-icon-color: var(--ds-basic-color-status-error, #e31f26);--ds-auro-select-outline-color: transparent}:host([ondark]){--ds-auro-select-border-color: var(--ds-basic-color-border-inverse, #ffffff);--ds-auro-select-background-color: var(--ds-advanced-color-shared-background-inverse, rgba(255, 255, 255, 0.15));--ds-auro-select-label-text-color: var(--ds-basic-color-texticon-inverse, #ffffff);--ds-auro-select-placeholder-text-color: var(--ds-basic-color-texticon-inverse, #ffffff);--ds-auro-select-text-color: var(--ds-basic-color-texticon-inverse, #ffffff);--ds-auro-select-error-icon-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8);--ds-auro-select-outline-color: transparent}`;
142
145
 
@@ -556,7 +559,7 @@ const {
556
559
 
557
560
  /* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
558
561
 
559
- let AuroLibraryRuntimeUtils$5 = class AuroLibraryRuntimeUtils {
562
+ let AuroLibraryRuntimeUtils$6 = class AuroLibraryRuntimeUtils {
560
563
 
561
564
  /* eslint-disable jsdoc/require-param */
562
565
 
@@ -626,7 +629,7 @@ let AuroLibraryRuntimeUtils$5 = class AuroLibraryRuntimeUtils {
626
629
  class AuroFormValidation {
627
630
 
628
631
  constructor() {
629
- this.runtimeUtils = new AuroLibraryRuntimeUtils$5();
632
+ this.runtimeUtils = new AuroLibraryRuntimeUtils$6();
630
633
  }
631
634
 
632
635
  /**
@@ -905,7 +908,9 @@ class AuroFormValidation {
905
908
  elem.validity = this.auroInputElements[0].validity;
906
909
  elem.errorMessage = this.auroInputElements[0].errorMessage;
907
910
 
908
- if (elem.validity === 'valid' && this.auroInputElements.length > 1) {
911
+ // combobox has 2 inputs but no need to check validity on the 2nd one which is in fullscreen bib.
912
+ // combobox's 2nd input will have noValidate set true.
913
+ if (elem.validity === 'valid' && this.auroInputElements.length > 1 && !this.auroInputElements[1].noValidate) {
909
914
  elem.validity = this.auroInputElements[1].validity;
910
915
  elem.errorMessage = this.auroInputElements[1].errorMessage;
911
916
  }
@@ -3458,9 +3463,9 @@ let BaseIcon$2 = class BaseIcon extends AuroElement$1$1 {
3458
3463
  }
3459
3464
  };
3460
3465
 
3461
- var tokensCss$2$1 = i$5`:host{--ds-auro-icon-color:var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-alaska-color:#02426D;--ds-auro-icon-size:var(--ds-size-300, 1.5rem)}`;
3466
+ var tokensCss$2$2 = i$5`:host{--ds-auro-icon-color:var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-alaska-color:#02426D;--ds-auro-icon-size:var(--ds-size-300, 1.5rem)}`;
3462
3467
 
3463
- var colorCss$3$1 = i$5`: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)}`;
3468
+ var colorCss$3$2 = i$5`: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)}`;
3464
3469
 
3465
3470
  // Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
3466
3471
  // See LICENSE in the project root for license information.
@@ -3618,9 +3623,9 @@ let AuroIcon$2 = class AuroIcon extends BaseIcon$2 {
3618
3623
  static get styles() {
3619
3624
  return [
3620
3625
  super.styles,
3621
- i$5`${tokensCss$2$1}`,
3626
+ i$5`${tokensCss$2$2}`,
3622
3627
  i$5`${styleCss$2$2}`,
3623
- i$5`${colorCss$3$1}`
3628
+ i$5`${colorCss$3$2}`
3624
3629
  ];
3625
3630
  }
3626
3631
 
@@ -3654,8 +3659,12 @@ let AuroIcon$2 = class AuroIcon extends BaseIcon$2 {
3654
3659
  async firstUpdated() {
3655
3660
  await super.firstUpdated();
3656
3661
 
3657
- // Removes the SVG description for screenreader if ariaHidden is set to true
3658
- if (!this.hasAttribute('ariaHidden') && this.svg) {
3662
+ /**
3663
+ * icons provide a description for screen readers. Icon only instances Auro-button
3664
+ * depend on this description to provide context for the user using a screen reader.
3665
+ * Removes the SVG description for screen reader if ariaHidden is set to true.
3666
+ */
3667
+ if (this.hasAttribute('ariaHidden') && this.svg) {
3659
3668
  const svgDesc = this.svg.querySelector('desc');
3660
3669
 
3661
3670
  if (svgDesc) {
@@ -3701,11 +3710,11 @@ let AuroIcon$2 = class AuroIcon extends BaseIcon$2 {
3701
3710
 
3702
3711
  var iconVersion$2 = '6.1.2';
3703
3712
 
3704
- var styleCss$1$2 = i$5`:host{position:fixed;z-index:var(--depth-tooltip, 400);display:none;isolation:isolate}.container{display:inline-block;overflow:auto;box-sizing:border-box;margin:var(--ds-size-50, 0.25rem) 0}:host([isfullscreen]){position:fixed;top:0;left:0}:host([isfullscreen]) .container{width:100dvw;max-width:none;height:100dvh;max-height:none;border-radius:unset;margin-top:0;box-shadow:unset;overscroll-behavior:contain}:host([data-show]){display:flex}:host([common]:not([isfullscreen])) .container,:host([rounded]:not([isfullscreen])) .container{border-radius:var(--ds-border-radius, 0.375rem)}:host([common][isfullscreen]) .container,:host([rounded][isfullscreen]) .container{border-radius:unset;box-shadow:unset}`;
3713
+ var styleCss$1$2 = i$5`:host{position:fixed;z-index:var(--depth-tooltip, 400);display:none;isolation:isolate}:host(:not([matchWidth])) .container{min-width:fit-content}:host([isfullscreen]){position:fixed;top:0;left:0}:host([isfullscreen]) .container{width:100dvw;max-width:none;height:100dvh;max-height:none;border-radius:unset;margin-top:0;box-shadow:unset;overscroll-behavior:contain}:host([data-show]){display:flex}:host([common]:not([isfullscreen])) .container,:host([rounded]:not([isfullscreen])) .container{border-radius:var(--ds-border-radius, 0.375rem)}:host([common][isfullscreen]) .container,:host([rounded][isfullscreen]) .container{border-radius:unset;box-shadow:unset}:host(:not([isfullscreen])) .container.shape-box{border-radius:unset}:host(:not([isfullscreen])) .container[class*=shape-pill],:host(:not([isfullscreen])) .container[class*=shape-snowflake]{border-radius:30px}.container{display:inline-block;overflow:auto;box-sizing:border-box;border-radius:var(--ds-border-radius, 0.375rem);margin:var(--ds-size-50, 0.25rem) 0}`;
3705
3714
 
3706
- var colorCss$2$1 = i$5`.container{background-color:var(--ds-auro-dropdownbib-container-color);box-shadow:var(--ds-auro-dropdownbib-boxshadow-color);color:var(--ds-auro-dropdownbib-text-color)}`;
3715
+ var colorCss$2$2 = i$5`.container{background-color:var(--ds-auro-dropdownbib-container-color);box-shadow:var(--ds-auro-dropdownbib-boxshadow-color);color:var(--ds-auro-dropdownbib-text-color)}`;
3707
3716
 
3708
- var tokensCss$1$1 = i$5`:host(:not([ondark])){--ds-auro-dropdown-label-text-color: var(--ds-basic-color-texticon-muted, #676767);--ds-auro-dropdown-trigger-background-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-dropdown-trigger-container-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-dropdown-trigger-border-color: transparent;--ds-auro-dropdown-trigger-outline-color: transparent;--ds-auro-dropdown-trigger-text-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-dropdown-helptext-text-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-dropdownbib-boxshadow-color: var(--ds-elevation-200, 0px 0px 10px rgba(0, 0, 0, 0.15));--ds-auro-dropdownbib-background-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-dropdownbib-container-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-dropdownbib-text-color: var(--ds-basic-color-texticon-default, #2a2a2a)}:host([ondark]){--ds-auro-dropdown-label-text-color: var(--ds-basic-color-texticon-inverse-muted, #ccd2db);--ds-auro-dropdown-trigger-background-color: var(--ds-advanced-color-shared-background-inverse, rgba(255, 255, 255, 0.15));--ds-auro-dropdown-trigger-container-color: var(--ds-advanced-color-shared-background-inverse, rgba(255, 255, 255, 0.15));--ds-auro-dropdown-trigger-border-color: transparent;--ds-auro-dropdown-trigger-outline-color: transparent;--ds-auro-dropdown-trigger-text-color: var(--ds-basic-color-texticon-inverse, #ffffff);--ds-auro-dropdown-helptext-text-color: var(--ds-basic-color-texticon-inverse, #ffffff);--ds-auro-dropdownbib-boxshadow-color: var(--ds-elevation-200, 0px 0px 10px rgba(0, 0, 0, 0.15));--ds-auro-dropdownbib-background-color: var(--ds-advanced-color-shared-background-inverse, rgba(255, 255, 255, 0.15));--ds-auro-dropdownbib-container-color: var(--ds-advanced-color-shared-background-inverse, rgba(255, 255, 255, 0.15));--ds-auro-dropdownbib-text-color: var(--ds-basic-color-texticon-inverse, #ffffff)}`;
3717
+ var tokensCss$1$2 = i$5`:host(:not([ondark])){--ds-auro-dropdown-label-text-color: var(--ds-basic-color-texticon-muted, #676767);--ds-auro-dropdown-trigger-background-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-dropdown-trigger-container-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-border-bold, #585e67);--ds-auro-dropdown-trigger-outline-color: transparent;--ds-auro-dropdown-trigger-text-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-dropdown-helptext-text-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-dropdownbib-boxshadow-color: var(--ds-elevation-200, 0px 0px 10px rgba(0, 0, 0, 0.15));--ds-auro-dropdownbib-background-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-dropdownbib-container-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-dropdownbib-text-color: var(--ds-basic-color-texticon-default, #2a2a2a)}:host([ondark]){--ds-auro-dropdown-label-text-color: var(--ds-basic-color-texticon-inverse-muted, #ccd2db);--ds-auro-dropdown-trigger-background-color: var(--ds-advanced-color-shared-background-inverse, rgba(255, 255, 255, 0.15));--ds-auro-dropdown-trigger-container-color: var(--ds-advanced-color-shared-background-inverse, rgba(255, 255, 255, 0.15));--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-border-inverse, #ffffff);--ds-auro-dropdown-trigger-outline-color: transparent;--ds-auro-dropdown-trigger-text-color: var(--ds-basic-color-texticon-inverse, #ffffff);--ds-auro-dropdown-helptext-text-color: var(--ds-basic-color-texticon-inverse, #ffffff);--ds-auro-dropdownbib-boxshadow-color: var(--ds-elevation-200, 0px 0px 10px rgba(0, 0, 0, 0.15));--ds-auro-dropdownbib-background-color: var(--ds-advanced-color-shared-background-inverse, rgba(255, 255, 255, 0.15));--ds-auro-dropdownbib-container-color: var(--ds-advanced-color-shared-background-inverse, rgba(255, 255, 255, 0.15));--ds-auro-dropdownbib-text-color: var(--ds-basic-color-texticon-inverse, #ffffff)}`;
3709
3718
 
3710
3719
  // Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
3711
3720
  // See LICENSE in the project root for license information.
@@ -3726,7 +3735,7 @@ const DESIGN_TOKEN_BREAKPOINT_OPTIONS = [
3726
3735
  */
3727
3736
 
3728
3737
  class AuroDropdownBib extends i$2 {
3729
-
3738
+ // not extending AuroElement because Bib needs only `shape` prop
3730
3739
  constructor() {
3731
3740
  super();
3732
3741
 
@@ -3736,13 +3745,16 @@ class AuroDropdownBib extends i$2 {
3736
3745
  this._mobileBreakpointValue = undefined;
3737
3746
 
3738
3747
  AuroLibraryRuntimeUtils$2$1.prototype.handleComponentTagRename(this, 'auro-dropdownbib');
3748
+
3749
+ this.shape = "rounded";
3750
+ this.matchWidth = false;
3739
3751
  }
3740
3752
 
3741
3753
  static get styles() {
3742
3754
  return [
3743
3755
  styleCss$1$2,
3744
- colorCss$2$1,
3745
- tokensCss$1$1
3756
+ colorCss$2$2,
3757
+ tokensCss$1$2
3746
3758
  ];
3747
3759
  }
3748
3760
 
@@ -3773,6 +3785,15 @@ class AuroDropdownBib extends i$2 {
3773
3785
  reflect: true
3774
3786
  },
3775
3787
 
3788
+ /**
3789
+ * If declared, the bib width will match the trigger width.
3790
+ * @private
3791
+ */
3792
+ matchWidth: {
3793
+ type: Boolean,
3794
+ reflect: true
3795
+ },
3796
+
3776
3797
  /**
3777
3798
  * If declared, will apply border-radius to the bib.
3778
3799
  */
@@ -3786,6 +3807,11 @@ class AuroDropdownBib extends i$2 {
3786
3807
  */
3787
3808
  bibTemplate: {
3788
3809
  type: Object
3810
+ },
3811
+
3812
+ shape: {
3813
+ type: String,
3814
+ reflect: true
3789
3815
  }
3790
3816
  };
3791
3817
  }
@@ -3865,8 +3891,16 @@ class AuroDropdownBib extends i$2 {
3865
3891
 
3866
3892
  // function that renders the HTML and CSS into the scope of the component
3867
3893
  render() {
3894
+ const classes = {
3895
+ container: true
3896
+ };
3897
+
3898
+ // Since this class does not inherit from AuroElement, we apply the shape-related class within the `render` function,
3899
+ // mimicking the class naming convention used in AuroElement.resetShapeClasses.
3900
+ classes[`shape-${this.shape}`] = true;
3901
+
3868
3902
  return u`
3869
- <div class="container" part="bibContainer">
3903
+ <div class="${e(classes)}" part="bibContainer">
3870
3904
  <slot></slot>
3871
3905
  </div>
3872
3906
  `;
@@ -3875,17 +3909,17 @@ class AuroDropdownBib extends i$2 {
3875
3909
 
3876
3910
  var dropdownVersion$1 = '3.0.0';
3877
3911
 
3878
- var shapeSizeCss = i$5`.wrapper{overflow:hidden}.shape-classic-xl,.shape-classic-lg,.shape-classic-md,.shape-classic-sm,.shape-classic-xs{min-height:58px;max-height:58px;border-style:solid;border-width:1px;border-radius:var(--ds-border-radius, 0.375rem)}.shape-classic-xl.simple,.shape-classic-lg.simple,.shape-classic-md.simple,.shape-classic-sm.simple,.shape-classic-xs.simple{border-width:0px;min-height:60px;max-height:60px;background-color:unset}.shape-classic-xl.thin,.shape-classic-lg.thin,.shape-classic-md.thin,.shape-classic-sm.thin,.shape-classic-xs.thin{border-width:1px;min-height:58px;max-height:58px;background-color:unset}.shape-classic-xl.parentBorder,.shape-classic-lg.parentBorder,.shape-classic-md.parentBorder,.shape-classic-sm.parentBorder,.shape-classic-xs.parentBorder{border:0;min-height:56px;max-height:56px}.shape-snowflake-xl,.shape-snowflake-lg,.shape-snowflake-md,.shape-snowflake-sm,.shape-snowflake-xs{min-height:56px;max-height:56px;border-style:solid;border-width:2px;border-color:transparent;border-radius:30px}.shape-snowflake-xl.simple,.shape-snowflake-lg.simple,.shape-snowflake-md.simple,.shape-snowflake-sm.simple,.shape-snowflake-xs.simple{border-width:0px;min-height:60px;max-height:60px;background-color:unset}.shape-snowflake-xl.thin,.shape-snowflake-lg.thin,.shape-snowflake-md.thin,.shape-snowflake-sm.thin,.shape-snowflake-xs.thin{border-width:1px;min-height:58px;max-height:58px;background-color:unset}.shape-snowflake-xl.parentBorder,.shape-snowflake-lg.parentBorder,.shape-snowflake-md.parentBorder,.shape-snowflake-sm.parentBorder,.shape-snowflake-xs.parentBorder{border:0;min-height:56px;max-height:56px}.shape-box-xl{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent}.shape-box-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset}.shape-box-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-box-xl.parentBorder{border:0;min-height:68px;max-height:68px}.shape-rounded-lg{min-height:56px;max-height:56px;border-style:solid;border-width:2px;border-color:transparent;border-radius:6px}.shape-rounded-lg.simple{border-width:0px;min-height:56px;max-height:56px;background-color:unset}.shape-rounded-lg.thin{border-width:1px;min-height:54px;max-height:54px;background-color:unset}.shape-rounded-lg.parentBorder{border:0;min-height:52px;max-height:52px}.shape-pill-xl{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px}.shape-pill-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset}.shape-pill-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-pill-xl.parentBorder{border:0;min-height:68px;max-height:68px}.shape-pill-left-xl{min-height:72px;max-height:72px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px 0 0 36px}.shape-pill-left-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset}.shape-pill-left-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-pill-left-xl.parentBorder{border:0;min-height:68px;max-height:68px}.shape-pill-right-xl{min-height:72px;max-height:72px;border-style:solid;border-width:2px;border-color:transparent;border-radius:0 36px 36px 0}.shape-pill-right-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset}.shape-pill-right-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-pill-right-xl.parentBorder{border:0;min-height:68px;max-height:68px}.shape-pill-md{min-height:72px;max-height:72px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px}.shape-pill-md.simple{border-width:0px;min-height:48px;max-height:48px;background-color:unset}.shape-pill-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}.shape-pill-md.parentBorder{border:0;min-height:44px;max-height:44px}.shape-pill-left-md{min-height:72px;max-height:72px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px 0 0 36px}.shape-pill-left-md.simple{border-width:0px;min-height:48px;max-height:48px;background-color:unset}.shape-pill-left-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}.shape-pill-left-md.parentBorder{border:0;min-height:44px;max-height:44px}.shape-pill-right-md{min-height:72px;max-height:72px;border-style:solid;border-width:2px;border-color:transparent;border-radius:0 36px 36px 0}.shape-pill-right-md.simple{border-width:0px;min-height:48px;max-height:48px;background-color:unset}.shape-pill-right-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}.shape-pill-right-md.parentBorder{border:0;min-height:44px;max-height:44px}`;
3912
+ var shapeSizeCss = i$5`.wrapper{overflow:hidden}.shape-classic-xl,.shape-classic-lg,.shape-classic-md,.shape-classic-sm,.shape-classic-xs{min-height:58px;max-height:58px;border-style:solid;border-width:1px;border-radius:var(--ds-border-radius, 0.375rem)}.shape-classic-xl.simple,.shape-classic-lg.simple,.shape-classic-md.simple,.shape-classic-sm.simple,.shape-classic-xs.simple{border-width:0px;min-height:60px;max-height:60px;background-color:unset;box-shadow:none}.shape-classic-xl.thin,.shape-classic-lg.thin,.shape-classic-md.thin,.shape-classic-sm.thin,.shape-classic-xs.thin{border-width:1px;min-height:58px;max-height:58px;background-color:unset}.shape-classic-xl.parentBorder,.shape-classic-lg.parentBorder,.shape-classic-md.parentBorder,.shape-classic-sm.parentBorder,.shape-classic-xs.parentBorder{border:0;box-shadow:unset;min-height:56px;max-height:56px}.shape-snowflake-xl,.shape-snowflake-lg,.shape-snowflake-md,.shape-snowflake-sm,.shape-snowflake-xs{min-height:56px;max-height:56px;border-style:solid;border-width:2px;border-color:transparent;border-radius:30px}.shape-snowflake-xl.simple,.shape-snowflake-lg.simple,.shape-snowflake-md.simple,.shape-snowflake-sm.simple,.shape-snowflake-xs.simple{border-width:0px;min-height:60px;max-height:60px;background-color:unset;box-shadow:none}.shape-snowflake-xl.thin,.shape-snowflake-lg.thin,.shape-snowflake-md.thin,.shape-snowflake-sm.thin,.shape-snowflake-xs.thin{border-width:1px;min-height:58px;max-height:58px;background-color:unset}.shape-snowflake-xl.parentBorder,.shape-snowflake-lg.parentBorder,.shape-snowflake-md.parentBorder,.shape-snowflake-sm.parentBorder,.shape-snowflake-xs.parentBorder{border:0;box-shadow:unset;min-height:56px;max-height:56px}.shape-box-xl{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent}.shape-box-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset;box-shadow:none}.shape-box-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-box-xl.parentBorder{border:0;box-shadow:unset;min-height:68px;max-height:68px}.shape-rounded-lg{min-height:56px;max-height:56px;border-style:solid;border-width:2px;border-color:transparent;border-radius:6px}.shape-rounded-lg.simple{border-width:0px;min-height:56px;max-height:56px;background-color:unset;box-shadow:none}.shape-rounded-lg.thin{border-width:1px;min-height:54px;max-height:54px;background-color:unset}.shape-rounded-lg.parentBorder{border:0;box-shadow:unset;min-height:52px;max-height:52px}.shape-pill-xl{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px}.shape-pill-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset;box-shadow:none}.shape-pill-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-pill-xl.parentBorder{border:0;box-shadow:unset;min-height:68px;max-height:68px}.shape-pill-left-xl{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px 0 0 36px}.shape-pill-left-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset;box-shadow:none}.shape-pill-left-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-pill-left-xl.parentBorder{border:0;box-shadow:unset;min-height:68px;max-height:68px}.shape-pill-right-xl{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent;border-radius:0 36px 36px 0}.shape-pill-right-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset;box-shadow:none}.shape-pill-right-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-pill-right-xl.parentBorder{border:0;box-shadow:unset;min-height:68px;max-height:68px}.shape-pill-md{min-height:44px;max-height:44px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px}.shape-pill-md.simple{border-width:0px;min-height:48px;max-height:48px;background-color:unset;box-shadow:none}.shape-pill-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}.shape-pill-md.parentBorder{border:0;box-shadow:unset;min-height:44px;max-height:44px}.shape-pill-left-md{min-height:44px;max-height:44px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px 0 0 36px}.shape-pill-left-md.simple{border-width:0px;min-height:48px;max-height:48px;background-color:unset;box-shadow:none}.shape-pill-left-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}.shape-pill-left-md.parentBorder{border:0;box-shadow:unset;min-height:44px;max-height:44px}.shape-pill-right-md{min-height:44px;max-height:44px;border-style:solid;border-width:2px;border-color:transparent;border-radius:0 36px 36px 0}.shape-pill-right-md.simple{border-width:0px;min-height:48px;max-height:48px;background-color:unset;box-shadow:none}.shape-pill-right-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}.shape-pill-right-md.parentBorder{border:0;box-shadow:unset;min-height:44px;max-height:44px}`;
3879
3913
 
3880
3914
  var colorCss$1$2 = i$5`:host .wrapper{border-color:var(--ds-auro-dropdown-trigger-border-color);background-color:var(--ds-auro-dropdown-trigger-background-color);color:var(--ds-auro-dropdown-trigger-text-color)}:host(:not([ondark])) .wrapper:focus,:host(:not([ondark])) .wrapper:focus-within{--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-border-brand, #00274a)}:host([ondark]) .wrapper:focus,:host([ondark]) .wrapper:focus-within{--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-border-inverse, #ffffff)}:host([error]:not([ondark])){--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-status-error, #e31f26)}:host([error][ondark]){--ds-auro-dropdown-trigger-border-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8)}.helpText{color:var(--ds-auro-dropdown-helptext-text-color)}`;
3881
3915
 
3882
- var classicColorCss = i$5`:host([layout*=classic]) .label{color:var(--ds-auro-dropdown-label-text-color)}:host([layout*=classic]) .trigger{border-color:var(--ds-auro-dropdown-trigger-border-color);background-color:var(--ds-auro-dropdown-trigger-container-color);color:var(--ds-auro-dropdown-trigger-text-color);outline-color:var(--ds-auro-dropdown-trigger-outline-color)}:host([layout*=classic]) .trigger:focus-within,:host([layout*=classic]) .trigger:active{--ds-auro-dropdown-trigger-border-color: var(--ds-advanced-color-state-focused, #01426a);--ds-auro-dropdown-trigger-outline-color: var(--ds-advanced-color-state-focused, #01426a)}:host([layout*=classic])[disabled]{--ds-auro-dropdown-trigger-text-color: var(--ds-basic-color-texticon-disabled, #d0d0d0);--ds-auro-dropdown-label-text-color: var(--ds-basic-color-texticon-disabled, #d0d0d0)}:host([layout*=classic])[common],:host([layout*=classic])[bordered]{--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-border-bold, #585e67)}:host([layout*=classic])[common] .trigger:active,:host([layout*=classic])[common] .trigger:focus-within,:host([layout*=classic])[bordered] .trigger:active,:host([layout*=classic])[bordered] .trigger:focus-within{--ds-auro-dropdown-trigger-border-color: var(--ds-advanced-color-state-focused, #01426a)}:host([layout*=classic])[error]{--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-status-error, #e31f26)}:host([layout*=classic])[error] .trigger{outline:solid 1px var(--ds-auro-dropdown-trigger-border-color)}:host([layout*=classic])[error] .trigger:focus-within,:host([layout*=classic])[error] .trigger:active{--ds-auro-dropdown-trigger-border-color: var(--ds-advanced-color-state-focused, #01426a);--ds-auro-dropdown-trigger-outline-color: var(--ds-advanced-color-state-focused, #01426a)}:host([layout*=classic])[disabled][common],:host([layout*=classic])[disabled][bordered]{--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-border-subtle, #dddddd)}:host([layout*=classic])[onDark]{--ds-auro-dropdown-label-text-color: var(--ds-basic-color-texticon-inverse-muted, #ccd2db);--ds-auro-dropdown-trigger-container-color: var(--ds-advanced-color-shared-background-inverse, rgba(255, 255, 255, 0.15));--ds-auro-dropdown-trigger-text-color: var(--ds-basic-color-texticon-inverse, #ffffff)}:host([layout*=classic])[onDark]:focus-within,:host([layout*=classic])[onDark]:active{--ds-auro-dropdown-trigger-border-color: var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-dropdown-trigger-outline-color: var(--ds-advanced-color-state-focused-inverse, #ffffff)}:host([layout*=classic])[onDark][disabled]{--ds-auro-dropdown-trigger-text-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894);--ds-auro-dropdown-label-text-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}:host([layout*=classic])[onDark][common],:host([layout*=classic])[onDark][bordered]{--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-border-inverse, #ffffff)}:host([layout*=classic])[onDark][common] .trigger:focus-within,:host([layout*=classic])[onDark][common] .trigger:active,:host([layout*=classic])[onDark][bordered] .trigger:focus-within,:host([layout*=classic])[onDark][bordered] .trigger:active{--ds-auro-dropdown-trigger-border-color: var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-dropdown-trigger-outline-color: var(--ds-advanced-color-state-focused-inverse, #ffffff)}:host([layout*=classic])[onDark][error]{--ds-auro-dropdown-trigger-border-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8)}:host([layout*=classic])[onDark][error] .trigger{outline:solid 1px var(--ds-auro-dropdown-trigger-border-color)}:host([layout*=classic])[onDark][error] .trigger:focus-within,:host([layout*=classic])[onDark][error] .trigger:active{--ds-auro-dropdown-trigger-border-color: var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-dropdown-trigger-outline-color: var(--ds-advanced-color-state-focused-inverse, #ffffff)}:host([layout*=classic])[onDark][disabled][common],:host([layout*=classic])[onDark][disabled][bordered]{--ds-auro-dropdown-trigger-container-color: var(--ds-advanced-color-shared-background-inverse-disabled, rgba(255, 255, 255, 0.1))}`;
3916
+ var classicColorCss = i$5`:host([layout*=classic]:not([onDark])) .label{color:var(--ds-auro-dropdown-label-text-color)}:host([layout*=classic]:not([onDark])) .trigger{border-color:var(--ds-auro-dropdown-trigger-border-color);background-color:var(--ds-auro-dropdown-trigger-container-color);color:var(--ds-auro-dropdown-trigger-text-color)}:host([layout*=classic]:not([onDark])) .trigger:focus-within,:host([layout*=classic]:not([onDark])) .trigger:active{--ds-auro-dropdown-trigger-border-color: var(--ds-advanced-color-state-focused, #01426a);--ds-auro-dropdown-trigger-outline-color: var(--ds-advanced-color-state-focused, #01426a)}:host([layout*=classic][disabled]:not([onDark])){--ds-auro-dropdown-trigger-text-color: var(--ds-basic-color-texticon-disabled, #d0d0d0);--ds-auro-dropdown-label-text-color: var(--ds-basic-color-texticon-disabled, #d0d0d0);--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-border-subtle, #dddddd)}:host([layout*=classic][error]:not([onDark])){--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-status-error, #e31f26)}:host([layout*=classic][error]:not([onDark])) .trigger:focus-within,:host([layout*=classic][error]:not([onDark])) .trigger:active{--ds-auro-dropdown-trigger-border-color: var(--ds-advanced-color-state-focused, #01426a);--ds-auro-dropdown-trigger-outline-color: var(--ds-advanced-color-state-focused, #01426a)}:host([layout*=classic][onDark]) .label{color:var(--ds-auro-dropdown-label-text-color)}:host([layout*=classic][onDark]) .trigger{border-color:var(--ds-auro-dropdown-trigger-border-color);background-color:var(--ds-auro-dropdown-trigger-container-color);color:var(--ds-auro-dropdown-trigger-text-color)}:host([layout*=classic][onDark]) .trigger:focus-within,:host([layout*=classic][onDark]) .trigger:active{--ds-auro-dropdown-trigger-border-color: var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-dropdown-trigger-outline-color: var(--ds-advanced-color-state-focused-inverse, #ffffff)}:host([layout*=classic][onDark][disabled]){--ds-auro-dropdown-trigger-text-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894);--ds-auro-dropdown-label-text-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894);--ds-auro-dropdown-trigger-container-color: var(--ds-advanced-color-shared-background-inverse-disabled, rgba(255, 255, 255, 0.1))}:host([layout*=classic][onDark][error]){--ds-auro-dropdown-trigger-border-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8)}:host([layout*=classic][onDark][error]) .trigger:focus-within,:host([layout*=classic][onDark][error]) .trigger:active{--ds-auro-dropdown-trigger-border-color: var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-dropdown-trigger-outline-color: var(--ds-advanced-color-state-focused-inverse, #ffffff)}`;
3883
3917
 
3884
- var classicLayoutCss = i$5`:host([layout*=classic]){position:relative;max-width:100%}:host([layout*=classic]) #bibSizer{position:absolute;z-index:-1;opacity:0;pointer-events:none}:host([layout*=classic]) .label{font-size:var(--ds-text-body-size-xs, 0.75rem);line-height:var(--ds-text-body-size-default, 1rem);transition:font-size .3s cubic-bezier(0.215, 0.61, 0.355, 1);white-space:normal}:host([layout*=classic]) .label[hasTrigger=false]{font-size:var(--ds-text-body-size-default, 1rem)}:host([layout*=classic]) .trigger{display:flex;flex-direction:row}@media(hover: hover){:host([layout*=classic]) .trigger:hover{cursor:pointer}}:host([layout*=classic]) .triggerContentWrapper{overflow:hidden;flex:1;text-overflow:ellipsis;white-space:nowrap}:host([layout*=classic]) #showStateIcon{display:flex;overflow:hidden;height:100%;align-items:center;margin-left:var(--ds-size-100, 0.5rem)}:host([layout*=classic]) #showStateIcon [auro-icon]{height:var(--ds-size-300, 1.5rem);line-height:var(--ds-size-300, 1.5rem)}:host([layout*=classic]) #showStateIcon[data-expanded=true] [auro-icon]{transform:rotate(-180deg)}:host([layout*=classic][fluid]){display:block}:host([layout*=classic][matchwidth]) #bibSizer{width:100%}:host([layout*=classic][disabled]){pointer-events:none}:host([layout*=classic][inset]) .trigger{padding:var(--ds-size-150, 0.75rem) var(--ds-size-200, 1rem)}:host([layout*=classic][common]) .trigger,:host([layout*=classic][inset][bordered]) .trigger{padding:var(--ds-size-200, 1rem) var(--ds-size-150, 0.75rem)}:host([layout*=classic][inset][bordered][labeled]) .trigger{padding:var(--ds-size-100, 0.5rem) var(--ds-size-150, 0.75rem)}:host([layout*=classic][common]) .trigger,:host([layout*=classic][rounded]) .trigger{border-radius:var(--ds-border-radius, 0.375rem)}`;
3918
+ var classicLayoutCss = i$5`:host([layout*=classic]){position:relative;max-width:100%}:host([layout*=classic]) #bibSizer{position:absolute;z-index:-1;opacity:0;pointer-events:none}:host([layout*=classic]) .label{font-size:var(--ds-text-body-size-xs, 0.75rem);line-height:var(--ds-text-body-size-default, 1rem);transition:font-size .3s cubic-bezier(0.215, 0.61, 0.355, 1);white-space:normal}:host([layout*=classic]) .label[hasTrigger=false]{font-size:var(--ds-text-body-size-default, 1rem)}:host([layout*=classic]) .trigger{display:flex;flex-direction:row;box-shadow:inset 0 0 0 1px var(--ds-auro-dropdown-trigger-outline-color)}@media(hover: hover){:host([layout*=classic]) .trigger:hover{cursor:pointer}}:host([layout*=classic]) .triggerContentWrapper{overflow:hidden;flex:1;justify-content:start;text-overflow:ellipsis;white-space:nowrap}:host([layout*=classic]) #showStateIcon{display:flex;overflow:hidden;height:100%;align-items:center;padding-right:var(--ds-size-150, 0.75rem)}:host([layout*=classic]) #showStateIcon [auro-icon]{height:var(--ds-size-300, 1.5rem);line-height:var(--ds-size-300, 1.5rem)}:host([layout*=classic]) #showStateIcon[data-expanded=true] [auro-icon]{transform:rotate(-180deg)}:host([layout*=classic]:not([simple])) .triggerContentWrapper{padding-left:var(--ds-size-150, 0.75rem)}:host([layout*=classic][matchwidth]) #bibSizer{width:100%}:host([layout*=classic][disabled]){pointer-events:none}`;
3885
3919
 
3886
- var styleEmphasizedCss = i$5`:host{display:block}.layout-emphasized .chevron,.layout-emphasized-left .chevron,.layout-emphasized-right .chevron{margin-right:var(--ds-size-300, 1.5rem)}.wrapper{display:flex;flex-direction:row}.trigger{display:flex;flex:1;align-items:center;justify-content:center;outline:none}.triggerContentWrapper{display:flex;width:100%;flex:1;align-items:center;justify-content:center}.triggerContent{display:flex;overflow:hidden;width:100%;flex:1;align-items:center;justify-content:center;text-overflow:ellipsis;white-space:nowrap}:host([layout*=emphasized][shape*=pill]:not([layout*=right])) .leftIndent{width:calc(100% - var(--ds-size-300, 1.5rem));margin-left:var(--ds-size-300, 1.5rem)}:host([layout*=emphasized][shape*=pill]:not([layout*=left])) .rightIndent{width:calc(100% - var(--ds-size-300, 1.5rem));margin-right:var(--ds-size-300, 1.5rem)}:host([layout*=emphasized][shape*=pill]:not([layout*=left]):not([layout*=right])) .rightIndent{width:calc(100% - var(--ds-size-600, 3rem));margin-right:var(--ds-size-300, 1.5rem)}`;
3920
+ var styleEmphasizedCss = i$5`:host{display:block}.layout-emphasized .chevron,.layout-emphasized-left .chevron,.layout-emphasized-right .chevron{margin-right:var(--ds-size-300, 1.5rem)}.wrapper{display:flex;flex-direction:row}.trigger{display:flex;flex:1;align-items:center;justify-content:center;outline:none}.triggerContentWrapper{display:flex;overflow:hidden;width:100%;flex:1;align-items:center;justify-content:center;text-overflow:ellipsis;white-space:nowrap}:host([layout*=emphasized][shape*=pill]:not([layout*=right])) .leftIndent{width:calc(100% - var(--ds-size-300, 1.5rem));margin-left:var(--ds-size-300, 1.5rem)}:host([layout*=emphasized][shape*=pill]:not([layout*=left])) .rightIndent{width:calc(100% - var(--ds-size-300, 1.5rem));margin-right:var(--ds-size-300, 1.5rem)}:host([layout*=emphasized][shape*=pill]:not([layout*=left]):not([layout*=right])) .rightIndent{width:calc(100% - var(--ds-size-600, 3rem));margin-right:var(--ds-size-300, 1.5rem)}`;
3887
3921
 
3888
- var styleSnowflakeCss = i$5`:host{display:block}.wrapper{display:flex;flex-direction:row}.trigger{display:flex;flex:1;align-items:center;justify-content:center;outline:none}.triggerContentWrapper{display:flex;width:100%;flex:1;align-items:center;justify-content:center}.triggerContent{display:flex;overflow:hidden;width:100%;flex:1;align-items:center;justify-content:center;text-overflow:ellipsis;white-space:nowrap}:host([layout*=snowflake]) .leftIndent{width:calc(100% - var(--ds-size-600, 3rem));margin-left:var(--ds-size-300, 1.5rem)}:host([layout*=snowflake]) .rightIndent{width:calc(100% - var(--ds-size-600, 3rem));margin-right:var(--ds-size-300, 1.5rem)}.layout-snowflake .chevron,.layout-snowflake-left .chevron,.layout-snowflake-right .chevron{margin-right:var(--ds-size-300, 1.5rem)}`;
3922
+ var styleSnowflakeCss = i$5`:host{display:block}.wrapper{display:flex;flex-direction:row}.trigger{display:flex;flex:1;align-items:center;justify-content:center;outline:none}.triggerContentWrapper{display:flex;overflow:hidden;width:100%;flex:1;align-items:center;justify-content:center;text-overflow:ellipsis;white-space:nowrap}:host([layout*=snowflake]) .leftIndent{width:calc(100% - var(--ds-size-600, 3rem));margin-left:var(--ds-size-300, 1.5rem)}:host([layout*=snowflake]) .rightIndent{width:calc(100% - var(--ds-size-600, 3rem));margin-right:var(--ds-size-300, 1.5rem)}.layout-snowflake .chevron,.layout-snowflake-left .chevron,.layout-snowflake-right .chevron{margin-right:var(--ds-size-300, 1.5rem)}`;
3889
3923
 
3890
3924
  var colorCss$5 = i$5`:host([error]){--ds-auro-helptext-color: var(--ds-basic-color-status-error, #e31f26)}:host([onDark]){--ds-auro-helptext-color: var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}:host([onDark][error]){--ds-auro-helptext-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8)}.helptext-wrapper{color:var(--ds-auro-helptext-color)}`;
3891
3925
 
@@ -3900,7 +3934,7 @@ var tokensCss$4 = i$5`:host{--ds-auro-helptext-color: var(--ds-basic-color-texti
3900
3934
 
3901
3935
  /* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
3902
3936
 
3903
- let AuroLibraryRuntimeUtils$4 = class AuroLibraryRuntimeUtils {
3937
+ let AuroLibraryRuntimeUtils$5 = class AuroLibraryRuntimeUtils {
3904
3938
 
3905
3939
  /* eslint-disable jsdoc/require-param */
3906
3940
 
@@ -3981,7 +4015,7 @@ let AuroHelpText$1 = class AuroHelpText extends i$2 {
3981
4015
  this.onDark = false;
3982
4016
  this.hasTextContent = false;
3983
4017
 
3984
- AuroLibraryRuntimeUtils$4.prototype.handleComponentTagRename(this, 'auro-helptext');
4018
+ AuroLibraryRuntimeUtils$5.prototype.handleComponentTagRename(this, 'auro-helptext');
3985
4019
  }
3986
4020
 
3987
4021
  static get styles() {
@@ -4037,7 +4071,7 @@ let AuroHelpText$1 = class AuroHelpText extends i$2 {
4037
4071
  *
4038
4072
  */
4039
4073
  static register(name = "auro-helptext") {
4040
- AuroLibraryRuntimeUtils$4.prototype.registerComponent(name, AuroHelpText);
4074
+ AuroLibraryRuntimeUtils$5.prototype.registerComponent(name, AuroHelpText);
4041
4075
  }
4042
4076
 
4043
4077
  updated() {
@@ -4095,7 +4129,7 @@ let AuroHelpText$1 = class AuroHelpText extends i$2 {
4095
4129
 
4096
4130
  var helpTextVersion$1 = '1.0.0';
4097
4131
 
4098
- let AuroElement$2 = class AuroElement extends i$2 {
4132
+ let AuroElement$3 = class AuroElement extends i$2 {
4099
4133
  static get properties() {
4100
4134
  return {
4101
4135
 
@@ -4130,18 +4164,21 @@ let AuroElement$2 = class AuroElement extends i$2 {
4130
4164
  }
4131
4165
 
4132
4166
  resetShapeClasses() {
4133
- if (this.shape && this.size) {
4134
- const wrapper = this.shadowRoot.querySelector('.wrapper');
4167
+ const wrapper = this.shadowRoot.querySelector('.wrapper');
4135
4168
 
4136
- if (wrapper) {
4137
- wrapper.classList.forEach((className) => {
4138
- if (className.startsWith('shape-')) {
4139
- wrapper.classList.remove(className);
4140
- }
4141
- });
4169
+ if (wrapper) {
4170
+ wrapper.classList.forEach((className) => {
4171
+ if (className.startsWith('shape-')) {
4172
+ wrapper.classList.remove(className);
4173
+ }
4174
+ });
4142
4175
 
4143
- wrapper.classList.add(`shape-${this.shape.toLowerCase()}-${this.size.toLowerCase()}`);
4144
- }
4176
+ }
4177
+
4178
+ if (this.shape && this.size) {
4179
+ wrapper.classList.add(`shape-${this.shape.toLowerCase()}-${this.size.toLowerCase()}`);
4180
+ } else {
4181
+ wrapper.classList.add('shape-none');
4145
4182
  }
4146
4183
  }
4147
4184
 
@@ -4204,7 +4241,7 @@ let AuroElement$2 = class AuroElement extends i$2 {
4204
4241
  * @event auroDropdown-toggled - Notifies that the visibility of the dropdown bib has changed.
4205
4242
  * @event auroDropdown-idAdded - Notifies consumers that the unique ID for the dropdown bib has been generated.
4206
4243
  */
4207
- class AuroDropdown extends AuroElement$2 {
4244
+ class AuroDropdown extends AuroElement$3 {
4208
4245
  constructor() {
4209
4246
  super();
4210
4247
 
@@ -4217,19 +4254,14 @@ class AuroDropdown extends AuroElement$2 {
4217
4254
 
4218
4255
  // Layout Config
4219
4256
  this.layout = 'classic';
4220
- this.shape = 'rounded';
4257
+ this.shape = 'classic';
4221
4258
  this.size = 'xl';
4259
+
4222
4260
  this.parentBorder = false;
4223
4261
 
4224
4262
  this.privateDefaults();
4225
4263
  }
4226
4264
 
4227
- get commonLabelClasses() {
4228
- return {
4229
- // 'withValue': this.value && this.value.length > 0
4230
- };
4231
- }
4232
-
4233
4265
  get commonWrapperClasses() {
4234
4266
  return {
4235
4267
  'trigger': true,
@@ -4614,7 +4646,7 @@ class AuroDropdown extends AuroElement$2 {
4614
4646
  static get styles() {
4615
4647
  return [
4616
4648
  colorCss$1$2,
4617
- tokensCss$1$1,
4649
+ tokensCss$1$2,
4618
4650
 
4619
4651
  // default layout
4620
4652
  classicColorCss,
@@ -4902,14 +4934,13 @@ class AuroDropdown extends AuroElement$2 {
4902
4934
  * @returns {void}
4903
4935
  */
4904
4936
  handleTriggerContentSlotChange(event) {
4905
-
4906
4937
  this.floater.handleTriggerTabIndex();
4907
4938
 
4908
4939
  // Get the trigger
4909
4940
  const trigger = this.shadowRoot.querySelector('#trigger');
4910
4941
 
4911
4942
  // Get the trigger slot
4912
- const triggerSlot = this.shadowRoot.querySelector('.triggerContent slot');
4943
+ const triggerSlot = this.shadowRoot.querySelector('.triggerContentWrapper slot');
4913
4944
 
4914
4945
  // If there's a trigger slot
4915
4946
  if (triggerSlot) {
@@ -4981,29 +5012,6 @@ class AuroDropdown extends AuroElement$2 {
4981
5012
  }
4982
5013
  }
4983
5014
 
4984
- /**
4985
- * @private
4986
- * @method handleLabelSlotChange
4987
- * @param {event} event - The event object representing the slot change.
4988
- * @description Handles the slot change event for the label slot.
4989
- */
4990
- handleLabelSlotChange (event) {
4991
-
4992
- // Get the nodes from the event
4993
- const nodes = event.target.assignedNodes();
4994
-
4995
- // Guard clause for no nodes
4996
- if (!nodes) {
4997
- return;
4998
- }
4999
-
5000
- // Convert the nodes to a measurable array so we can get the length
5001
- const nodesArr = Array.from(nodes);
5002
-
5003
- // If the nodes array has a length, the dropdown is labeled
5004
- this.labeled = nodesArr.length > 0;
5005
- }
5006
-
5007
5015
  /**
5008
5016
  * Returns HTML for the common portion of the layouts.
5009
5017
  * @private
@@ -5018,22 +5026,17 @@ class AuroDropdown extends AuroElement$2 {
5018
5026
  class="${e(this.commonWrapperClasses)}" part="wrapper"
5019
5027
  tabindex="${this.tabIndex}"
5020
5028
  role="${o(this.triggerContentFocusable ? undefined : this.a11yRole)}"
5021
- aria-expanded="${o(this.triggerContentFocusable ? undefined : this.isPopoverVisible)}"
5022
- aria-controls="${o(this.triggerContentFocusable ? undefined : this.dropdownId)}"
5029
+ aria-expanded="${o(this.a11yRole === 'button' || this.triggerContentFocusable ? undefined : this.isPopoverVisible)}"
5030
+ aria-controls="${o(this.a11yRole === 'button' || this.triggerContentFocusable ? undefined : this.dropdownId)}"
5023
5031
  aria-labelledby="${o(this.triggerContentFocusable ? undefined : 'triggerLabel')}"
5024
5032
  @focusin="${this.handleFocusin}"
5025
5033
  @blur="${this.handleFocusOut}">
5026
- <div class="triggerContentWrapper">
5027
- <label class="label" id="triggerLabel" hasTrigger=${this.hasTriggerContent}>
5028
- <slot name="label" @slotchange="${this.handleLabelSlotChange}"></slot>
5029
- </label>
5030
- <div class="triggerContent">
5031
- <slot
5032
- name="trigger"
5033
- @slotchange="${this.handleTriggerContentSlotChange}"></slot>
5034
- </div>
5034
+ <div class="triggerContentWrapper" id="triggerLabel">
5035
+ <slot
5036
+ name="trigger"
5037
+ @slotchange="${this.handleTriggerContentSlotChange}"></slot>
5035
5038
  </div>
5036
- ${this.chevron || this.common ? u`
5039
+ ${this.chevron ? u`
5037
5040
  <div
5038
5041
  id="showStateIcon"
5039
5042
  class="chevron"
@@ -5054,6 +5057,7 @@ class AuroDropdown extends AuroElement$2 {
5054
5057
  <div id="bibSizer" part="size"></div>
5055
5058
  <${this.dropdownBibTag}
5056
5059
  id="bib"
5060
+ shape="${this.shape}"
5057
5061
  ?data-show="${this.isPopoverVisible}"
5058
5062
  ?isfullscreen="${this.isBibFullscreen}"
5059
5063
  ?common="${this.common}"
@@ -5073,62 +5077,13 @@ class AuroDropdown extends AuroElement$2 {
5073
5077
  * @returns {html} - Returns HTML for the classic layout.
5074
5078
  */
5075
5079
  renderLayoutClassic() {
5080
+ // TODO: check with Doug why this was never used?
5081
+ const helpTextClasses = {
5082
+ 'helpText': true
5083
+ };
5076
5084
 
5077
5085
  return u`
5078
- <div>
5079
- <div
5080
- id="trigger"
5081
- class="trigger"
5082
- part="trigger"
5083
- tabindex="${this.tabIndex}"
5084
- ?showBorder="${this.showTriggerBorders}"
5085
- role="${o(this.triggerContentFocusable ? undefined : this.a11yRole)}"
5086
- aria-expanded="${o(this.triggerContentFocusable ? undefined : this.isPopoverVisible)}"
5087
- aria-controls="${o(this.triggerContentFocusable ? undefined : this.dropdownId)}"
5088
- aria-labelledby="${o(this.triggerContentFocusable ? undefined : 'triggerLabel')}"
5089
- >
5090
- <div class="triggerContentWrapper">
5091
- <label class="label" id="triggerLabel" hasTrigger=${this.hasTriggerContent}>
5092
- <slot name="label" @slotchange="${this.handleLabelSlotChange}"></slot>
5093
- </label>
5094
- <div class="triggerContent">
5095
- <slot
5096
- name="trigger"
5097
- @slotchange="${this.handleTriggerContentSlotChange}"></slot>
5098
- </div>
5099
- </div>
5100
- ${this.chevron || this.common ? u`
5101
- <div
5102
- id="showStateIcon"
5103
- part="chevron">
5104
- <${this.iconTag}
5105
- category="interface"
5106
- name="chevron-down"
5107
- ?onDark="${this.onDark}"
5108
- variant="${this.disabled ? 'disabled' : 'muted'}">
5109
- >
5110
- </${this.iconTag}>
5111
- </div>
5112
- ` : undefined }
5113
- </div>
5114
- <${this.helpTextTag} part="helpText" ?onDark=${this.onDark} ?error="${this.error}">
5115
- <slot name="helpText"></slot>
5116
- </${this.helpTextTag}>
5117
-
5118
- <div id="bibSizer" part="size"></div>
5119
- <${this.dropdownBibTag}
5120
- id="bib"
5121
- ?data-show="${this.isPopoverVisible}"
5122
- ?isfullscreen="${this.isBibFullscreen}"
5123
- ?common="${this.common}"
5124
- ?rounded="${this.common || this.rounded}"
5125
- ?inset="${this.common || this.inset}"
5126
- >
5127
- <div class="slotContent">
5128
- <slot @slotchange="${this.handleDefaultSlot}"></slot>
5129
- </div>
5130
- </${this.dropdownBibTag}>
5131
- </div>
5086
+ ${this.renderBasicHtml(helpTextClasses)}
5132
5087
  `;
5133
5088
  }
5134
5089
 
@@ -5196,9 +5151,9 @@ class AuroDropdown extends AuroElement$2 {
5196
5151
 
5197
5152
  var dropdownVersion = '3.0.0';
5198
5153
 
5199
- var colorCss$1$1 = i$5`#headerContainer{box-shadow:var(--ds-auro-dropdownbib-header-boxshadow-color)}#footerContainer{background-color:var(--ds-auro-dropdownbib-footer-container-color)}`;
5154
+ var colorCss$3$1 = i$5`#headerContainer{box-shadow:var(--ds-auro-dropdownbib-header-boxshadow-color)}#footerContainer{background-color:var(--ds-auro-dropdownbib-footer-container-color)}`;
5200
5155
 
5201
- var styleCss$2$1 = i$5`#bibTemplate{display:flex;overflow:hidden;height:100%;max-height:100%;flex-direction:column}#headerContainer{display:flex;flex-direction:column}#header{display:flex;width:100%;min-height:var(--ds-size-1000, 5rem);box-sizing:border-box;align-items:end;padding-top:var(--ds-size-400, 2rem);padding-right:var(--ds-size-700, 3.5rem);padding-left:var(--ds-size-200, 1rem);pointer-events:none}#subheader{width:100%}#subheader ::slotted([auro-input]){padding:0 var(--ds-size-200, 1rem)}#closeButton{position:absolute;top:var(--ds-size-400, 2rem);right:var(--ds-size-200, 1rem);border:none;background-color:transparent;cursor:pointer}#closeButton [auro-icon]{--ds-auro-icon-size: var(--ds-size-500, 2.5rem)}#bodyContainer{position:relative;overflow:auto;flex:1 1 100%}:host([isfullscreen]) #bibTemplate{max-height:100dvh}:host([isfullscreen]) #bodyContainer{margin-top:var(--ds-size-100, 0.5rem)}#footerContainer{position:absolute;right:0;bottom:0;left:0;padding:var(--ds-size-200, 1rem)}`;
5156
+ var styleCss$4$1 = i$5`#bibTemplate{display:flex;overflow:hidden;height:100%;max-height:100%;flex-direction:column}#headerContainer{display:flex;flex-direction:column}#header{display:flex;width:100%;min-height:var(--ds-size-1000, 5rem);box-sizing:border-box;align-items:end;padding-top:var(--ds-size-400, 2rem);padding-right:var(--ds-size-700, 3.5rem);padding-left:var(--ds-size-200, 1rem);pointer-events:none}#subheader{width:100%}#subheader ::slotted([auro-input]){box-sizing:border-box;padding:0 var(--ds-size-200, 1rem)}#closeButton{position:absolute;top:var(--ds-size-400, 2rem);right:var(--ds-size-200, 1rem);border:none;background-color:transparent;cursor:pointer}#bodyContainer{position:relative;overflow:auto;flex:1 1 100%}:host([isfullscreen]) #bibTemplate{max-height:100dvh}:host([isfullscreen]) #bodyContainer{margin-top:var(--ds-size-100, 0.5rem)}#footerContainer{position:absolute;right:0;bottom:0;left:0;padding:var(--ds-size-200, 1rem)}`;
5202
5157
 
5203
5158
  var tokenCss = i$5`:host{--ds-auro-dropdownbib-header-boxshadow-color: var(--ds-elevation-200, 0px 0px 10px rgba(0, 0, 0, 0.15));--ds-auro-dropdownbib-footer-container-color: var(--ds-basic-color-surface-default, #ffffff)}`;
5204
5159
 
@@ -5209,7 +5164,7 @@ var tokenCss = i$5`:host{--ds-auro-dropdownbib-header-boxshadow-color: var(--ds-
5209
5164
 
5210
5165
  /* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
5211
5166
 
5212
- let AuroLibraryRuntimeUtils$2 = class AuroLibraryRuntimeUtils {
5167
+ let AuroLibraryRuntimeUtils$3 = class AuroLibraryRuntimeUtils {
5213
5168
 
5214
5169
  /* eslint-disable jsdoc/require-param */
5215
5170
 
@@ -5312,105 +5267,1098 @@ class AuroDependencyVersioning {
5312
5267
  }
5313
5268
  }
5314
5269
 
5315
- // Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
5316
- // See LICENSE in the project root for license information.
5317
-
5270
+ /**
5271
+ * Private module-level WeakMap to hold MutationObservers for each host element.
5272
+ */
5273
+ const _observers = new WeakMap();
5318
5274
 
5319
5275
  /**
5320
- * @attr {Boolean} hidden - If present, the component will be hidden both visually and from screen readers
5321
- * @attr {Boolean} hiddenVisually - If present, the component will be hidden visually, but still read by screen readers
5322
- * @attr {Boolean} hiddenAudible - If present, the component will be hidden from screen readers, but seen visually
5276
+ * Private module-level WeakMap to hold attribute matchers and targets for each host element.
5277
+ * Structure: {
5278
+ * host: {
5279
+ * matchers: Set<Function>,
5280
+ * targets: Map<HTMLElement, Map<Function, {removeOriginal: boolean, currentAttributes: Map<string, string>}>>
5281
+ * }
5282
+ * }
5323
5283
  */
5284
+ const _transportConfig = new WeakMap();
5324
5285
 
5325
- let AuroElement$1 = class AuroElement extends i$2 {
5286
+ /**
5287
+ * Transfers all matching attributes from a host element to a target element and observes for future changes.
5288
+ *
5289
+ * @param {Object} params - The parameters for the function.
5290
+ * @param {HTMLElement} params.host - The host element from which attributes will be transported.
5291
+ * @param {HTMLElement} params.target - The target element to which attributes will be transported.
5292
+ * @param {boolean} [params.removeOriginal=true] - Whether to remove the attributes from the host element.
5293
+ * @param {boolean} [params.observe=true] - Whether to attach a MutationObserver to the host element.
5294
+ * @returns {Function} A function to detach the observer when no longer needed.
5295
+ * @throws {TypeError} If the host or target parameters are not instances of HTMLElement.
5296
+ */
5297
+ const transportAttributes = ({ host, target, match, removeOriginal = true }) => {
5298
+ // Guard Clause: Ensure host is valid HTMLElement instance
5299
+ if (typeof host !== 'object' || !(host instanceof HTMLElement)) {
5300
+ throw new TypeError('a11yUtilities.js | transportAttributes | The "host" parameter must be an instance of HTMLElement.');
5301
+ }
5326
5302
 
5327
- // function to define props used within the scope of this component
5328
- static get properties() {
5329
- return {
5330
- hidden: { type: Boolean,
5331
- reflect: true },
5332
- hiddenVisually: { type: Boolean,
5333
- reflect: true },
5334
- hiddenAudible: { type: Boolean,
5335
- reflect: true },
5336
- };
5303
+ // Guard Clause: Ensure target is valid HTMLElement instance
5304
+ if (typeof target !== 'object' || !(target instanceof HTMLElement)) {
5305
+ throw new TypeError('a11yUtilities.js | transportAttributes | The "target" parameter must be an instance of HTMLElement.');
5337
5306
  }
5338
5307
 
5339
- /**
5340
- * @private Function that determines state of aria-hidden
5341
- */
5342
- hideAudible(value) {
5343
- if (value) {
5344
- return 'true'
5345
- }
5308
+ // Guard Clause: Ensure match is a function
5309
+ if (typeof match !== 'function') {
5310
+ throw new TypeError('a11yUtilities.js | transportAttributes | The "match" parameter must be a function.');
5311
+ }
5346
5312
 
5347
- return 'false'
5313
+ // Guard Clause: Ensure removeOriginal is a boolean
5314
+ if (typeof removeOriginal !== 'boolean') {
5315
+ throw new TypeError('a11yUtilities.js | transportAttributes | The "removeOriginal" parameter must be a boolean.');
5348
5316
  }
5317
+
5318
+ // Register this transport and get cleanup function
5319
+ return _registerTransport({
5320
+ host,
5321
+ target,
5322
+ matcher: match,
5323
+ removeOriginal
5324
+ });
5349
5325
  };
5350
5326
 
5351
- var error$1 = {"svg":"<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" aria-labelledby=\"error__desc\" class=\"ico_squareLarge\" data-deprecated=\"true\" 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=\"error__desc\">Error alert indicator.</desc><path d=\"m13.047 5.599 6.786 11.586A1.207 1.207 0 0 1 18.786 19H5.214a1.207 1.207 0 0 1-1.047-1.815l6.786-11.586a1.214 1.214 0 0 1 2.094 0m-1.165.87a.23.23 0 0 0-.085.085L5.419 17.442a.232.232 0 0 0 .203.35h12.756a.234.234 0 0 0 .203-.35L12.203 6.554a.236.236 0 0 0-.321-.084M12 15.5a.75.75 0 1 1 0 1.5.75.75 0 0 1 0-1.5m-.024-6.22c.325 0 .589.261.589.583v4.434a.586.586 0 0 1-.589.583.586.586 0 0 1-.588-.583V9.863c0-.322.264-.583.588-.583\"/></svg>"};
5327
+ /**
5328
+ * Registers a matcher and target for a host element and attaches an observer if needed.
5329
+ *
5330
+ * @param {Object} params - The parameters object.
5331
+ * @param {HTMLElement} params.host - The host element to observe.
5332
+ * @param {HTMLElement} params.target - The target element to receive attributes.
5333
+ * @param {Function} params.matcher - Function that determines which attributes to transport.
5334
+ * @param {boolean} [params.removeOriginal=true] - Whether to remove original attributes.
5335
+ * @param {boolean} [params.observe=true] - Whether to observe for attribute changes.
5336
+ * @returns {Function} Function to detach the specific matcher and target pairing.
5337
+ * @private
5338
+ */
5339
+ const _registerTransport = ({ host, target, matcher, removeOriginal = true }) => {
5340
+ // Initialize config for this host if it doesn't exist
5341
+ if (!_transportConfig.has(host)) {
5342
+ _transportConfig.set(host, {
5343
+ matchers: new Set(),
5344
+ targets: new Map()
5345
+ });
5346
+ }
5352
5347
 
5353
- /* eslint-disable no-underscore-dangle, jsdoc/no-undefined-types, jsdoc/require-param-description */
5348
+ const config = _transportConfig.get(host);
5349
+
5350
+ // Add the matcher to the set of matchers for this host
5351
+ config.matchers.add(matcher);
5352
+
5353
+ // Initialize target entry if it doesn't exist
5354
+ if (!config.targets.has(target)) {
5355
+ config.targets.set(target, new Map());
5356
+ }
5357
+
5358
+ // Store the matcher with its removeOriginal setting for this target
5359
+ config.targets.get(target).set(matcher, {
5360
+ removeOriginal,
5361
+ currentAttributes: new Map()
5362
+ });
5363
+
5364
+ // Perform initial attribute transport
5365
+ _transportAttributes({ host, target, matcher, removeOriginal });
5366
+
5367
+ // Attach observer
5368
+ _attachObserver(host);
5369
+
5370
+ // Return cleanup function and utility functions
5371
+ return {
5372
+ cleanup: () => _cleanupTransport(host, target, matcher),
5373
+ getObservedAttributes: () => _getObservedAttributes(host, target, matcher),
5374
+ getObservedAttribute: (attr) => _getObservedAttribute(host, target, matcher, attr),
5375
+ }
5376
+ };
5354
5377
 
5355
- const _fetchMap$1 = new Map();
5378
+ /**
5379
+ * Cleans up resources associated with a specific matcher and target for a host element.
5380
+ *
5381
+ * @param {HTMLElement} host - The host element
5382
+ * @param {HTMLElement} target - The target element
5383
+ * @param {Function} matcher - The matcher function
5384
+ * @private
5385
+ */
5386
+ const _cleanupTransport = (host, target, matcher) => {
5387
+ const config = _transportConfig.get(host);
5388
+ if (!config) return;
5389
+
5390
+ // Remove this matcher from this target
5391
+ const targetMatchers = config.targets.get(target);
5392
+ if (targetMatchers) {
5393
+ targetMatchers.delete(matcher);
5394
+
5395
+ // If this target has no more matchers, remove it
5396
+ if (targetMatchers.size === 0) {
5397
+ config.targets.delete(target);
5398
+ }
5399
+ }
5400
+
5401
+ // Check if this matcher is still used by any target
5402
+ let matcherStillUsed = false;
5403
+ for (const matcherMap of config.targets.values()) {
5404
+ if (matcherMap.has(matcher)) {
5405
+ matcherStillUsed = true;
5406
+ break;
5407
+ }
5408
+ }
5409
+
5410
+ // If not used anymore, remove from matchers set
5411
+ if (!matcherStillUsed) {
5412
+ config.matchers.delete(matcher);
5413
+ }
5414
+
5415
+ // If no more targets or matchers, detach observer
5416
+ if (config.targets.size === 0 || config.matchers.size === 0) {
5417
+ _detachObserver(host);
5418
+ }
5419
+ };
5356
5420
 
5357
5421
  /**
5358
- * A callback to parse Response body.
5359
- *
5360
- * @callback ResponseParser
5361
- * @param {Fetch.Response} response
5362
- * @returns {Promise}
5422
+ * Generic function to transport attributes from a host element to a target element.
5423
+ *
5424
+ * @param {Object} params - The parameters object.
5425
+ * @param {HTMLElement} params.host - The host element from which to transport attributes.
5426
+ * @param {HTMLElement} params.target - The target element to which attributes will be transported.
5427
+ * @param {Function} params.matcher - Function that takes an attribute name and returns true if it should be transported.
5428
+ * @param {boolean} [params.removeOriginal=true] - Whether to remove original attributes from host.
5429
+ * @returns {void}
5430
+ * @private
5363
5431
  */
5432
+ const _transportAttributes = ({ host, target, matcher, removeOriginal = true }) => {
5433
+ // Get a list of all matching attributes on the host element and their values
5434
+ const matchingAttributes = host.getAttributeNames()
5435
+ .filter(attr => matcher(attr))
5436
+ .reduce((acc, attr) => {
5437
+ acc[attr] = host.getAttribute(attr);
5438
+ return acc;
5439
+ }, {});
5440
+
5441
+ // Move matching attributes to the target element, removing them from the host if removeOriginal is true
5442
+ Object.entries(matchingAttributes).forEach(([key, value]) => {
5443
+ _setObservedAttribute(host, target, matcher, key, value);
5444
+ target.setAttribute(key, value);
5445
+ if (removeOriginal) {
5446
+ host.removeAttribute(key);
5447
+ }
5448
+ });
5449
+ };
5364
5450
 
5365
5451
  /**
5366
- * A minimal in-memory map to de-duplicate Fetch API media requests.
5367
- *
5368
- * @param {String} uri
5369
- * @param {Object} [options={}]
5370
- * @param {ResponseParser} [options.responseParser=(response) => response.text()]
5371
- * @returns {Promise}
5452
+ * Attaches a MutationObserver to the host element to monitor attribute changes.
5453
+ *
5454
+ * @param {HTMLElement} host - The element to observe for attribute changes.
5455
+ * @returns {MutationObserver} The observer instance.
5456
+ * @private
5372
5457
  */
5373
- const cacheFetch$1 = (uri, options = {}) => {
5374
- const responseParser = options.responseParser || ((response) => response.text());
5375
- if (!_fetchMap$1.has(uri)) {
5376
- _fetchMap$1.set(uri, fetch(uri).then(responseParser));
5458
+ const _attachObserver = (host) => {
5459
+ // If an observer for this host already exists, return it
5460
+ if (_observers.has(host)) {
5461
+ return _observers.get(host);
5377
5462
  }
5378
- return _fetchMap$1.get(uri);
5379
- };
5380
5463
 
5381
- var styleCss$1$1 = i$5`:focus:not(:focus-visible){outline:3px solid transparent}.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock,:host{display:block}.util_displayFlex{display:flex}.util_displayHidden,:host([hidden]:not(:focus):not(:active)){display:none}.util_displayHiddenVisually,:host([hiddenVisually]:not(:focus):not(:active)){position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}.ico_squareLarge{fill:currentColor;height:var(--auro-size-lg, var(--ds-size-300, 1.5rem))}.ico_squareSmall{fill:currentColor;height:.6rem}.ico_squareMed{fill:currentColor;height:var(--auro-size-md, var(--ds-size-200, 1rem))}.ico_squareSml{fill:currentColor;height:var(--auro-size-sm, var(--ds-size-150, 0.75rem))}:host{color:currentColor;vertical-align:middle;line-height:1;display:inline-block}svg{min-width:var(--ds-auro-icon-size, 1.5rem) !important;width:var(--ds-auro-icon-size, 1.5rem) !important;height:var(--ds-auro-icon-size, 1.5rem) !important}.componentWrapper{display:flex}.svgWrapper{height:var(--ds-auro-icon-size);width:var(--ds-auro-icon-size)}.labelWrapper{margin-left:var(--ds-size-50, 0.25rem);line-height:1.8}`;
5464
+ // Create a new MutationObserver
5465
+ const observer = new MutationObserver((mutations) => {
5466
+ const config = _transportConfig.get(host);
5467
+ if (!config) return;
5468
+
5469
+ // For each mutation affecting attributes
5470
+ mutations
5471
+ .filter(mutation => mutation.type === 'attributes')
5472
+ .forEach(mutation => {
5473
+ const attributeName = mutation.attributeName;
5474
+
5475
+ // Find matchers that care about this attribute
5476
+ for (const matcher of config.matchers) {
5477
+ if (matcher(attributeName)) {
5478
+ // For each target that uses this matcher
5479
+ for (const [target, matcherConfigs] of config.targets.entries()) {
5480
+ if (matcherConfigs.has(matcher)) {
5481
+ const { removeOriginal } = matcherConfigs.get(matcher);
5482
+ _transportAttributes({
5483
+ host,
5484
+ target,
5485
+ matcher,
5486
+ removeOriginal
5487
+ });
5488
+ }
5489
+ }
5490
+ }
5491
+ }
5492
+ });
5493
+ });
5382
5494
 
5383
- // Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
5384
- // See LICENSE in the project root for license information.
5495
+ // Start observing attribute changes
5496
+ observer.observe(host, { attributes: true });
5497
+
5498
+ // Store the observer
5499
+ _observers.set(host, observer);
5500
+
5501
+ return observer;
5502
+ };
5385
5503
 
5504
+ /**
5505
+ * Detaches and cleans up the MutationObserver for a given host element.
5506
+ *
5507
+ * @param {HTMLElement} host - The element whose observer should be detached.
5508
+ * @private
5509
+ */
5510
+ const _detachObserver = (host) => {
5511
+ if (_observers.has(host)) {
5512
+ const observer = _observers.get(host);
5513
+ observer.disconnect();
5514
+ _observers.delete(host);
5515
+ }
5516
+
5517
+ // Clean up the transport config as well
5518
+ if (_transportConfig.has(host)) {
5519
+ _transportConfig.delete(host);
5520
+ }
5521
+ };
5386
5522
 
5387
- // See https://git.io/JJ6SJ for "How to document your components using JSDoc"
5388
5523
  /**
5389
- * @slot - Hidden from visibility, used for a11y if icon description is needed
5524
+ * Gets the matcher configuration for a specific host, target, and matcher
5525
+ * @param {HTMLElement} host - The host element
5526
+ * @param {HTMLElement} target - The target element
5527
+ * @param {Function} matcher - The matcher function
5528
+ * @returns {Object|undefined} The matcher configuration if found
5529
+ * @private
5390
5530
  */
5531
+ const _getMatcherConfig = (host, target, matcher) => {
5532
+ const config = _transportConfig.get(host);
5533
+ if (!config) return undefined;
5534
+
5535
+ const targetMatchers = config.targets.get(target);
5536
+ if (!targetMatchers) return undefined;
5537
+
5538
+ return targetMatchers.get(matcher);
5539
+ };
5391
5540
 
5392
- // build the component class
5393
- let BaseIcon$1 = class BaseIcon extends AuroElement$1 {
5394
- constructor() {
5395
- super();
5396
- this.onDark = false;
5541
+ /**
5542
+ * Sets an observed attribute value
5543
+ * @param {HTMLElement} host - The host element
5544
+ * @param {HTMLElement} target - The target element
5545
+ * @param {Function} matcher - The matcher function
5546
+ * @param {string} key - The attribute name
5547
+ * @param {string} value - The attribute value
5548
+ * @private
5549
+ */
5550
+ const _setObservedAttribute = (host, target, matcher, key, value) => {
5551
+ const matcherConfig = _getMatcherConfig(host, target, matcher);
5552
+ if (matcherConfig) {
5553
+ matcherConfig.currentAttributes.set(key, value);
5397
5554
  }
5555
+ };
5556
+
5557
+ const _getObservedAttribute = (host, target, matcher, attr) => {
5558
+ const matcherConfig = _getMatcherConfig(host, target, matcher);
5559
+ if (matcherConfig) return matcherConfig.currentAttributes.get(attr);
5560
+ return undefined;
5561
+ };
5562
+
5563
+ const _getObservedAttributes = (host, target, matcher) => {
5564
+ const matcherConfig = _getMatcherConfig(host, target, matcher);
5565
+ if (matcherConfig) return Array.from(matcherConfig.currentAttributes.entries());
5566
+ return [];
5567
+ };
5568
+
5569
+ const _matchers = {
5570
+ 'aria-': attr => attr.startsWith('aria-'),
5571
+ 'role': attr => attr.match(/^role$/)
5572
+ };
5573
+
5574
+ const transportAllA11yAttributes = ({ host, target, removeOriginal = true }) => {
5575
+ return transportAttributes({
5576
+ host,
5577
+ target,
5578
+ match: attr => {
5579
+ for (const key in _matchers) {
5580
+ if (_matchers[key](attr)) return true;
5581
+ }
5582
+ return false;
5583
+ },
5584
+ removeOriginal
5585
+ });
5586
+ };
5587
+
5588
+ let AuroElement$1 = class AuroElement extends i$2 {
5589
+
5590
+ /**
5591
+ * @type {Object} return object from transportAttributes via a11yUtilities
5592
+ * @property {Function} cleanup - Function to clean up the attribute watcher.
5593
+ * @property {Function} getCurrentAttributes - Function to get the current attributes being watched and their values.
5594
+ * @property {Function} getObservedAttribute - Function to get the value of a specific observed attribute by name.
5595
+ * @private
5596
+ */
5597
+ attributeWatcher;
5398
5598
 
5399
- // function to define props used within the scope of this component
5400
5599
  static get properties() {
5401
5600
  return {
5402
- ...super.properties,
5403
5601
 
5404
5602
  /**
5405
- * Set value for on-dark version of auro-icon.
5603
+ * Defines the layout of an element.
5604
+ * @default {'default'}
5406
5605
  */
5407
- onDark: {
5408
- type: Boolean,
5606
+ layout: {
5607
+ type: String,
5608
+ attribute: "layout",
5409
5609
  reflect: true
5410
5610
  },
5411
-
5611
+
5412
5612
  /**
5413
- * @private
5613
+ * Defines the shape of an element.
5614
+ * @property {'default', 'rounded', 'pill', 'circle'}
5615
+ * @default {'default'}
5616
+ */
5617
+ shape: {
5618
+ type: String,
5619
+ attribute: "shape",
5620
+ reflect: true
5621
+ },
5622
+
5623
+ /**
5624
+ * Defines the size of an element.
5625
+ * @property {'xs', 'sm', 'md', 'lg', 'xl'}
5626
+ * @default {'md'}
5627
+ */
5628
+ size: {
5629
+ type: String,
5630
+ attribute: "size",
5631
+ reflect: true
5632
+ },
5633
+
5634
+ /**
5635
+ * This Boolean attribute lets you specify that the element should be rendered in dark mode.
5636
+ * @default {false}
5637
+ */
5638
+ onDark: {
5639
+ type: Boolean,
5640
+ attribute: "ondark",
5641
+ reflect: true
5642
+ },
5643
+
5644
+ /**
5645
+ * A reference to the wrapper element in the shadow DOM.
5646
+ * This is used to apply layout and shape classes dynamically.
5647
+ * @type {HTMLElement|null}
5648
+ * @default {null}
5649
+ * @private
5650
+ */
5651
+ wrapper: {
5652
+ type: HTMLElement,
5653
+ attribute: false,
5654
+ reflect: false
5655
+ }
5656
+ };
5657
+ }
5658
+
5659
+
5660
+
5661
+ resetShapeClasses() {
5662
+ if (this.shape && this.size) {
5663
+
5664
+ if (this.wrapper) {
5665
+ this.wrapper.classList.forEach((className) => {
5666
+ if (className.startsWith('shape-')) {
5667
+ this.wrapper.classList.remove(className);
5668
+ }
5669
+ });
5670
+
5671
+ this.wrapper.classList.add(`shape-${this.shape.toLowerCase()}-${this.size.toLowerCase()}`);
5672
+ }
5673
+ }
5674
+ }
5675
+
5676
+ resetLayoutClasses() {
5677
+ if (this.layout) {
5678
+ if (this.wrapper) {
5679
+ this.wrapper.classList.forEach((className) => {
5680
+ if (className.startsWith('layout-')) {
5681
+ this.wrapper.classList.remove(className);
5682
+ }
5683
+ });
5684
+
5685
+ this.wrapper.classList.add(`layout-${this.layout.toLowerCase()}`);
5686
+ }
5687
+ }
5688
+ }
5689
+
5690
+ updateComponentArchitecture() {
5691
+ this.resetLayoutClasses();
5692
+ this.resetShapeClasses();
5693
+ }
5694
+
5695
+ updated(changedProperties) {
5696
+ if (changedProperties.has('layout') || changedProperties.has('shape') || changedProperties.has('size')) {
5697
+ this.updateComponentArchitecture();
5698
+ }
5699
+ }
5700
+
5701
+ firstUpdated() {
5702
+ super.firstUpdated();
5703
+
5704
+ // Set a reference to the wrapper element in the shadow DOM
5705
+ this.wrapper = this.shadowRoot.querySelector('.wrapper');
5706
+
5707
+ // Initialize the transportation of ARIA attributes to the target element and get the disconnect function for cleanup
5708
+ this.attributeWatcher = transportAllA11yAttributes({ host: this, target: this.shadowRoot.querySelector('.wrapper') });
5709
+ }
5710
+
5711
+ disconnectedCallback() {
5712
+ super.disconnectedCallback();
5713
+
5714
+ // Cleanup the ARIA observer if it exists
5715
+ if (this.attributeWatcher) {
5716
+ this.attributeWatcher.cleanup();
5717
+ this.attributeWatcher = null;
5718
+ }
5719
+ }
5720
+
5721
+ // Try to render the defined `this.layout` layout. If that fails, fall back to the default layout.
5722
+ // This will catch if an invalid layout value is passed in and render the default layout if so.
5723
+ render() {
5724
+ try {
5725
+ return this.renderLayout();
5726
+ } catch (error) {
5727
+ // failed to get the defined layout
5728
+ console.error('Failed to get the defined layout - using the default layout', error); // eslint-disable-line no-console
5729
+
5730
+ // fallback to the default layout
5731
+ return this.getLayout('default');
5732
+ }
5733
+ }
5734
+ };
5735
+
5736
+ var styleCss$3$1 = i$5`:focus:not(:focus-visible){outline:3px solid transparent}.util_insetNone{padding:0}.util_insetXxxs{padding:.125rem}.util_insetXxxs--stretch{padding:.25rem .125rem}.util_insetXxxs--squish{padding:0 .125rem}.util_insetXxs{padding:.25rem}.util_insetXxs--stretch{padding:.375rem .25rem}.util_insetXxs--squish{padding:.125rem .25rem}.util_insetXs{padding:.5rem}.util_insetXs--stretch{padding:.75rem .5rem}.util_insetXs--squish{padding:.25rem .5rem}.util_insetSm{padding:.75rem}.util_insetSm--stretch{padding:1.125rem .75rem}.util_insetSm--squish{padding:.375rem .75rem}.util_insetMd{padding:1rem}.util_insetMd--stretch{padding:1.5rem 1rem}.util_insetMd--squish{padding:.5rem 1rem}.util_insetLg{padding:1.5rem}.util_insetLg--stretch{padding:2.25rem 1.5rem}.util_insetLg--squish{padding:.75rem 1.5rem}.util_insetXl{padding:2rem}.util_insetXl--stretch{padding:3rem 2rem}.util_insetXl--squish{padding:1rem 2rem}.util_insetXxl{padding:3rem}.util_insetXxl--stretch{padding:4.5rem 3rem}.util_insetXxl--squish{padding:1.5rem 3rem}.util_insetXxxl{padding:4rem}.util_insetXxxl--stretch{padding:6rem 4rem}.util_insetXxxl--squish{padding:2rem 4rem}:host([fluid]) .auro-button,:host([fluid=true]) .auro-button{min-width:auto;width:100%}:host([variant=flat]){display:inline-block}::slotted(svg){vertical-align:middle}slot{pointer-events:none}.auro-button{position:relative;padding:0 var(--ds-size-300, 1.5rem);cursor:pointer;border-width:1px;border-style:solid;border-radius:var(--ds-border-radius, 0.375rem);overflow:hidden;text-overflow:ellipsis;user-select:none;white-space:nowrap;min-height:var(--ds-size-600, 3rem);max-height:var(--ds-size-600, 3rem);display:inline-flex;flex-direction:row;align-items:center;justify-content:center;gap:var(--ds-size-100, 0.5rem);margin:0;-webkit-touch-callout:none;-webkit-user-select:none;transition:padding 300ms ease-out}.auro-button:active{transform:scale(0.95)}.auro-button:focus-visible,.auro-button:focus{outline:none;outline-style:solid;outline-width:var(--ds-size-50, 0.25rem);outline-offset:calc(var(--ds-size-50, 0.25rem)*-1)}.auro-button:focus-visible:not([variant=secondary]):not([variant=tertiary]),.auro-button:focus:not([variant=secondary]):not([variant=tertiary]){outline-width:calc(var(--ds-size-50, 0.25rem) - 1px)}.auro-button.loading{cursor:not-allowed}.auro-button.loading *:not([auro-loader]){visibility:hidden}@media screen and (min-width: 576px){.auro-button{min-width:8.75rem;width:auto}}.auro-button:disabled{cursor:not-allowed;transform:unset}.auro-button[variant=secondary]:disabled{cursor:not-allowed;transform:unset}.auro-button[variant=tertiary]:disabled{cursor:not-allowed;transform:unset}.auro-button[variant=ghost]:disabled{cursor:not-allowed;transform:unset}.auro-button[onDark]:disabled{cursor:not-allowed;transform:unset}.auro-button[onDark][variant=secondary]:disabled{cursor:not-allowed;transform:unset}@media(hover: hover){.auro-button[onDark][variant=tertiary]:active,.auro-button[onDark][variant=tertiary]:hover{box-shadow:none}}.auro-button[onDark][variant=tertiary]:active{box-shadow:none}.auro-button[onDark][variant=tertiary]:disabled{cursor:not-allowed;transform:unset}.auro-button.icon-only ::slotted(:not(auro-icon):not([auro-icon])){display:none}.auro-button--slim{min-width:unset;min-height:calc(var(--ds-size-500, 2.5rem) - var(--ds-size-50, 0.25rem));max-height:calc(var(--ds-size-500, 2.5rem) - var(--ds-size-50, 0.25rem))}.auro-button--iconOnly{padding:0 var(--ds-size-100, 0.5rem);border-radius:100px;min-width:unset;height:var(--ds-size-600, 3rem);width:var(--ds-size-500, 2.5rem)}.auro-button--iconOnly ::slotted(auro-icon),.auro-button--iconOnly ::slotted([auro-icon]){--ds-auro-icon-size:var(--ds-size-300, 1.5rem)}.auro-button--iconOnly:not(.auro-button--rounded):focus-visible:not([variant=secondary]):not([variant=tertiary]):not([variant=flat]),.auro-button--iconOnly:not(.auro-button--rounded):focus:not([variant=secondary]):not([variant=tertiary]):not([variant=flat]){outline-width:1px;outline-offset:-2px}.auro-button--iconOnlySlim{padding:0 var(--ds-size-50, 0.25rem);height:calc(var(--ds-size-400, 2rem) + var(--ds-size-50, 0.25rem));width:calc(var(--ds-size-300, 1.5rem) + var(--ds-size-50, 0.25rem))}.auro-button--iconOnlySlim ::slotted(auro-icon),.auro-button--iconOnlySlim ::slotted([auro-icon]){--ds-auro-icon-size:calc(var(--ds-size-200, 1rem) + var(--ds-size-50, 0.25rem))}.auro-button--rounded{border-radius:100px;box-shadow:var(--ds-elevation-300, 0px 0px 15px rgba(0, 0, 0, 0.2));height:var(--ds-size-500, 2.5rem);min-width:unset;transition:padding 300ms ease-out,outline 0ms,outline-offset 0ms}.auro-button--rounded ::slotted(auro-icon),.auro-button--rounded ::slotted([auro-icon]){--ds-auro-icon-size:var(--ds-size-300, 1.5rem)}.auro-button--rounded:focus-visible:not([variant=flat]):after,.auro-button--rounded:focus:not([variant=flat]):after{border-radius:100px}:host([size=xs]) .wrapper:focus-visible,:host([size=xs]) .wrapper:focus{outline-width:1px;outline-offset:-2px}:host([rounded]) .textSlot{transition:opacity 300ms ease-in;opacity:1}:host([rounded][iconOnly]) .textSlot{opacity:0}:host([rounded][iconOnly]) .textWrapper{display:none}:host([rounded][iconOnly]) .auro-button{min-width:unset;padding:unset;width:var(--ds-size-600, 3rem)}[auro-loader]{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);pointer-events:none}`;
5737
+
5738
+ var colorCss$2$1 = i$5`[auro-loader]{color:var(--ds-auro-button-loader-color)}.auro-button{-webkit-tap-highlight-color:var(--ds-auro-button-tap-color);color:var(--ds-auro-button-text-color);background-color:var(--ds-auro-button-container-color);background-image:linear-gradient(var(--ds-auro-button-container-image), var(--ds-auro-button-container-image));border-color:var(--ds-auro-button-border-color)}.auro-button:not([variant=secondary]):not([variant=tertiary]):focus-visible{outline-color:var(--ds-auro-button-border-inset-color)}.auro-button:not([ondark]):active:not(:disabled),.auro-button:not([ondark]):hover:not(:disabled){--ds-auro-button-container-color:var(--ds-advanced-color-button-primary-background-hover, #00274a);--ds-auro-button-container-image:var(--ds-advanced-color-button-primary-background-hover, #00274a);--ds-auro-button-border-color:var(--ds-advanced-color-button-primary-border-hover, #00274a)}.auro-button:not([ondark]):disabled{--ds-auro-button-container-color:var(--ds-advanced-color-button-primary-background-disabled, #acc9e2);--ds-auro-button-container-image:var(--ds-advanced-color-button-primary-background-disabled, #acc9e2);--ds-auro-button-border-color:var(--ds-advanced-color-button-primary-border-disabled, #acc9e2)}.auro-button:not([ondark])[variant=secondary]{--ds-auro-button-container-color:var(--ds-advanced-color-button-secondary-background, #ffffff);--ds-auro-button-container-image:var(--ds-advanced-color-button-secondary-background, #ffffff);--ds-auro-button-border-color:var(--ds-advanced-color-button-secondary-border, #01426a);--ds-auro-button-text-color:var(--ds-advanced-color-button-secondary-text, #01426a);--ds-auro-button-loader-color:var(--ds-advanced-color-button-secondary-text, #01426a)}.auro-button:not([ondark])[variant=secondary]:active:not(:disabled),.auro-button:not([ondark])[variant=secondary]:hover:not(:disabled){--ds-auro-button-container-color:var(--ds-advanced-color-button-secondary-background-hover, #f2f2f2);--ds-auro-button-container-image:var(--ds-advanced-color-button-secondary-background-hover, #f2f2f2);--ds-auro-button-border-color:var(--ds-advanced-color-button-secondary-border-hover, #00274a);--ds-auro-button-text-color:var(--ds-advanced-color-button-secondary-text-hover, #00274a)}.auro-button:not([ondark])[variant=secondary]:focus-visible{--ds-auro-button-border-inset-color:var(--ds-advanced-color-state-focused, #01426a)}.auro-button:not([ondark])[variant=secondary]:disabled{--ds-auro-button-container-color:var(--ds-advanced-color-button-secondary-background-disabled, #f7f7f7);--ds-auro-button-container-image:var(--ds-advanced-color-button-secondary-background-disabled, #f7f7f7);--ds-auro-button-border-color:var(--ds-advanced-color-button-secondary-border-disabled, #cfe0ef);--ds-auro-button-text-color:var(--ds-basic-color-texticon-disabled, #d0d0d0)}.auro-button:not([ondark])[variant=tertiary]{--ds-auro-button-container-color:var(--ds-advanced-color-button-tertiary-background, rgba(0, 0, 0, 0.05));--ds-auro-button-container-image:var(--ds-advanced-color-button-tertiary-background, rgba(0, 0, 0, 0.05));--ds-auro-button-border-color:transparent;--ds-auro-button-text-color:var(--ds-advanced-color-button-tertiary-text, #01426a);--ds-auro-button-loader-color:var(--ds-advanced-color-button-tertiary-text, #01426a)}.auro-button:not([ondark])[variant=tertiary]:active:not(:disabled),.auro-button:not([ondark])[variant=tertiary]:hover:not(:disabled){--ds-auro-button-container-color:var(--ds-advanced-color-button-tertiary-background-hover, rgba(0, 0, 0, 0.1));--ds-auro-button-container-image:var(--ds-advanced-color-button-tertiary-background-hover, rgba(0, 0, 0, 0.1));--ds-auro-button-border-color:transparent}.auro-button:not([ondark])[variant=tertiary]:focus-visible{--ds-auro-button-border-color:var(--ds-advanced-color-state-focused, #01426a);--ds-auro-button-border-inset-color:var(--ds-advanced-color-state-focused, #01426a)}.auro-button:not([ondark])[variant=tertiary]:disabled{--ds-auro-button-border-color:transparent;--ds-auro-button-text-color:var(--ds-basic-color-texticon-disabled, #d0d0d0)}.auro-button:not([ondark])[variant=ghost]{--ds-auro-button-container-color:transparent;--ds-auro-button-container-image:transparent;--ds-auro-button-border-color:transparent;--ds-auro-button-text-color:var(--ds-advanced-color-button-ghost-text, #01426a);--ds-auro-button-loader-color:var(--ds-advanced-color-button-ghost-text, #01426a)}.auro-button:not([ondark])[variant=ghost]:active:not(:disabled),.auro-button:not([ondark])[variant=ghost]:hover:not(:disabled){--ds-auro-button-container-color:var(--ds-advanced-color-button-ghost-background-hover, rgba(0, 0, 0, 0.05));--ds-auro-button-container-image:var(--ds-advanced-color-button-ghost-background-hover, rgba(0, 0, 0, 0.05));--ds-auro-button-border-color:transparent}.auro-button:not([ondark])[variant=ghost]:focus-visible{--ds-auro-button-border-color:var(--ds-advanced-color-state-focused, #01426a);--ds-auro-button-border-inset-color:var(--ds-advanced-color-state-focused, #01426a)}.auro-button:not([ondark])[variant=ghost]:disabled{--ds-auro-button-border-color:transparent;--ds-auro-button-text-color:var(--ds-basic-color-texticon-disabled, #d0d0d0)}.auro-button:not([ondark])[variant=flat]{color:var(--ds-advanced-color-button-flat-text, #676767);background-color:transparent;background-image:none;border-color:transparent}.auro-button:not([ondark])[variant=flat]:active:not(:disabled),.auro-button:not([ondark])[variant=flat]:hover:not(:disabled){color:var(--ds-advanced-color-button-flat-text-hover, #525252);background-color:transparent;background-image:none;border-color:transparent}.auro-button:not([ondark])[variant=flat]:disabled{color:var(--ds-advanced-color-button-flat-text-disabled, #d0d0d0);background-color:transparent;background-image:none;border-color:transparent}.auro-button:not([ondark])[variant=flat]:focus-visible{--ds-auro-button-border-color:var(--ds-advanced-color-state-focused, #01426a);--ds-auro-button-border-inset-color:var(--ds-advanced-color-state-focused, #01426a)}.auro-button[ondark]{--ds-auro-button-border-color:var(--ds-advanced-color-button-primary-border-inverse, #ffffff);--ds-auro-button-container-color:var(--ds-advanced-color-button-primary-background-inverse, #ffffff);--ds-auro-button-container-image:var(--ds-advanced-color-button-primary-background-inverse, #ffffff);--ds-auro-button-text-color:var(--ds-advanced-color-button-primary-text-inverse, #01426a);--ds-auro-button-loader-color:var(--ds-advanced-color-button-primary-text-inverse, #01426a)}.auro-button[ondark]:active:not(:disabled),.auro-button[ondark]:hover:not(:disabled){--ds-auro-button-border-color:var(--ds-advanced-color-button-primary-border-inverse-hover, #ebf3f9);--ds-auro-button-container-color:var(--ds-advanced-color-button-primary-background-inverse-hover, #ebf3f9);--ds-auro-button-container-image:var(--ds-advanced-color-button-primary-background-inverse-hover, #ebf3f9)}.auro-button[ondark]:focus-visible{--ds-auro-button-border-inset-color:var(--ds-advanced-color-state-focused, #01426a)}.auro-button[ondark]:disabled{--ds-auro-button-border-color:var(--ds-advanced-color-button-primary-border-inverse-disabled, rgba(255, 255, 255, 0.75));--ds-auro-button-container-color:var(--ds-advanced-color-button-primary-background-inverse-disabled, rgba(255, 255, 255, 0.75));--ds-auro-button-container-image:var(--ds-advanced-color-button-primary-background-inverse-disabled, rgba(255, 255, 255, 0.75));--ds-auro-button-text-color:var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}.auro-button[ondark][variant=secondary]{--ds-auro-button-container-color:transparent;--ds-auro-button-container-image:transparent;--ds-auro-button-border-color:var(--ds-advanced-color-button-secondary-border-inverse, #ffffff);--ds-auro-button-text-color:var(--ds-advanced-color-button-secondary-text-inverse, #ffffff);--ds-auro-button-loader-color:var(--ds-advanced-color-button-secondary-text-inverse, #ffffff)}.auro-button[ondark][variant=secondary]:active:not(:disabled),.auro-button[ondark][variant=secondary]:hover:not(:disabled){--ds-auro-button-container-color:var(--ds-advanced-color-button-secondary-background-inverse-hover, rgba(255, 255, 255, 0.1));--ds-auro-button-container-image:var(--ds-advanced-color-button-secondary-background-inverse-hover, rgba(255, 255, 255, 0.1))}.auro-button[ondark][variant=secondary]:focus-visible{--ds-auro-button-border-inset-color:var(--ds-advanced-color-state-focused-inverse, #ffffff)}.auro-button[ondark][variant=secondary]:disabled{--ds-auro-button-text-color:var(--ds-basic-color-texticon-inverse-disabled, #7e8894);--ds-auro-button-border-color:var(--ds-advanced-color-button-secondary-border-inverse-disabled, #dddddd)}.auro-button[ondark][variant=tertiary]{--ds-auro-button-container-color:var(--ds-advanced-color-button-tertiary-background-inverse, rgba(255, 255, 255, 0.05));--ds-auro-button-container-image:var(--ds-advanced-color-button-tertiary-background-inverse, rgba(255, 255, 255, 0.05));--ds-auro-button-border-color:transparent;--ds-auro-button-text-color:var(--ds-advanced-color-button-tertiary-text-inverse, #ffffff);--ds-auro-button-loader-color:var(--ds-advanced-color-button-tertiary-text-inverse, #ffffff)}.auro-button[ondark][variant=tertiary]:active:not(:disabled),.auro-button[ondark][variant=tertiary]:hover:not(:disabled){--ds-auro-button-container-color:var(--ds-advanced-color-button-tertiary-background-inverse-hover, rgba(255, 255, 255, 0.1));--ds-auro-button-container-image:var(--ds-advanced-color-button-tertiary-background-inverse-hover, rgba(255, 255, 255, 0.1))}.auro-button[ondark][variant=tertiary]:focus-visible{--ds-auro-button-border-color:var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-button-border-inset-color:var(--ds-advanced-color-state-focused-inverse, #ffffff)}.auro-button[ondark][variant=tertiary]:disabled{--ds-auro-button-text-color:var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}.auro-button[ondark][variant=ghost]{--ds-auro-button-container-color:transparent;--ds-auro-button-container-image:transparent;--ds-auro-button-border-color:transparent;--ds-auro-button-text-color:var(--ds-advanced-color-button-ghost-text-inverse, #ffffff);--ds-auro-button-loader-color:var(--ds-advanced-color-button-ghost-text-inverse, #ffffff)}.auro-button[ondark][variant=ghost]:active:not(:disabled),.auro-button[ondark][variant=ghost]:hover:not(:disabled){--ds-auro-button-container-color:var(--ds-advanced-color-button-ghost-background-inverse-hover, rgba(255, 255, 255, 0.05));--ds-auro-button-container-image:var(--ds-advanced-color-button-ghost-background-inverse-hover, rgba(255, 255, 255, 0.05))}.auro-button[ondark][variant=ghost]:focus-visible{--ds-auro-button-border-color:var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-button-border-inset-color:var(--ds-advanced-color-state-focused-inverse, #ffffff)}.auro-button[ondark][variant=ghost]:disabled{--ds-auro-button-text-color:var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}.auro-button[ondark][variant=flat]{color:var(--ds-advanced-color-button-flat-text-inverse, #ffffff);background-color:transparent;background-image:none;border-color:transparent}.auro-button[ondark][variant=flat]:active:not(:disabled),.auro-button[ondark][variant=flat]:hover:not(:disabled){color:var(--ds-advanced-color-button-flat-text-inverse-hover, #adadad);background-color:transparent;background-image:none;border-color:transparent}.auro-button[ondark][variant=flat]:disabled{color:var(--ds-advanced-color-button-flat-text-inverse-disabled, #7e8894);background-color:transparent;background-image:none;border-color:transparent}.auro-button[ondark][variant=flat]:focus-visible{--ds-auro-button-border-color:var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-button-border-inset-color:var(--ds-advanced-color-state-focused-inverse, #ffffff)}`;
5739
+
5740
+ var tokensCss$2$1 = i$5`:host(:not([onDark])){--ds-auro-button-border-color:var(--ds-advanced-color-button-primary-border, #01426a);--ds-auro-button-border-inset-color:var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-button-container-color:var(--ds-advanced-color-button-primary-background, #01426a);--ds-auro-button-container-image:var(--ds-advanced-color-button-primary-background, #01426a);--ds-auro-button-loader-color:var(--ds-advanced-color-button-primary-text, #ffffff);--ds-auro-button-text-color:var(--ds-advanced-color-button-primary-text, #ffffff);--ds-auro-button-tap-color:transparent}:host([onDark]){--ds-auro-button-border-color:var(--ds-advanced-color-button-primary-border-inverse, #ffffff);--ds-auro-button-border-inset-color:var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-button-container-color:var(--ds-advanced-color-button-primary-background-inverse, #ffffff);--ds-auro-button-container-image:var(--ds-advanced-color-button-primary-background-inverse, #ffffff);--ds-auro-button-loader-color:var(--ds-advanced-color-button-primary-text-inverse, #01426a);--ds-auro-button-text-color:var(--ds-advanced-color-button-primary-text-inverse, #01426a);--ds-auro-button-tap-color:transparent}`;
5741
+
5742
+ var shapeSize = i$5`.shape-rounded-xl{min-height:68px;max-height:68px;border-style:solid;border-radius:6px;overflow:hidden;font-size:18px}.shape-rounded-lg{min-height:52px;max-height:52px;border-style:solid;border-radius:6px;overflow:hidden;font-size:18px}.shape-rounded-md{min-height:44px;max-height:44px;border-style:solid;border-radius:6px;overflow:hidden;font-size:16px}.shape-rounded-sm{min-height:32px;max-height:32px;border-style:solid;border-radius:6px;overflow:hidden;font-size:14px}.shape-rounded-xs{min-height:20px;max-height:20px;border-style:solid;border-radius:4px;overflow:hidden;font-size:12px;outline-offset:-2px;outline-width:1px}.shape-pill-xl{min-height:68px;max-height:68px;border-style:solid;border-radius:34px;overflow:hidden;font-size:18px}.shape-pill-left-xl{min-height:68px;max-height:68px;border-style:solid;border-radius:34px 0 0 34px;overflow:hidden}.shape-pill-right-xl{min-height:68px;max-height:68px;border-style:solid;border-radius:0 34px 34px 0;overflow:hidden}.shape-pill-lg{min-height:52px;max-height:52px;border-style:solid;border-radius:26px;overflow:hidden;font-size:18px}.shape-pill-left-lg{min-height:52px;max-height:52px;border-style:solid;border-radius:26px 0 0 26px;overflow:hidden}.shape-pill-right-lg{min-height:52px;max-height:52px;border-style:solid;border-radius:0 26px 26px 0;overflow:hidden}.shape-pill-md{min-height:44px;max-height:44px;border-style:solid;border-radius:22px;overflow:hidden}.shape-pill-left-md{min-height:44px;max-height:44px;border-style:solid;border-radius:22px 0 0 22px;overflow:hidden}.shape-pill-right-md{min-height:44px;max-height:44px;border-style:solid;border-radius:0 22px 22px 0;overflow:hidden;font-size:16px}.shape-pill-sm{min-height:32px;max-height:32px;border-style:solid;border-radius:16px;overflow:hidden;font-size:14px}.shape-pill-left-sm{min-height:32px;max-height:32px;border-style:solid;border-radius:16px 0 0 16px;overflow:hidden}.shape-pill-right-sm{min-height:32px;max-height:32px;border-style:solid;border-radius:0 16px 16px 0;overflow:hidden}.shape-pill-xs{min-height:20px;max-height:20px;border-style:solid;border-radius:10px;overflow:hidden;font-size:12px;outline-offset:-2px;outline-width:1px}.shape-pill-left-xs{min-height:20px;max-height:20px;border-style:solid;border-radius:10px 0 0 10px;overflow:hidden;outline-offset:-2px;outline-width:1px}.shape-pill-right-xs{min-height:20px;max-height:20px;border-style:solid;border-radius:0 10px 10px 0;overflow:hidden;outline-offset:-2px;outline-width:1px}.shape-circle-xl{min-height:68px;max-height:68px;min-width:68px;max-width:68px;border-style:solid;border-radius:34px;overflow:hidden;padding:0}.shape-circle-lg{min-height:52px;max-height:52px;min-width:52px;max-width:52px;border-style:solid;border-radius:26px;overflow:hidden;padding:0}.shape-circle-md{min-height:44px;max-height:44px;min-width:44px;max-width:44px;border-style:solid;border-radius:22px;overflow:hidden;padding:0}.shape-circle-sm{min-height:32px;max-height:32px;min-width:32px;max-width:32px;border-style:solid;border-radius:16px;overflow:hidden;padding:0}.shape-circle-xs{min-height:20px;max-height:20px;min-width:20px;max-width:20px;border-style:solid;border-radius:10px;overflow:hidden;padding:0;outline-offset:-2px;outline-width:1px}`;
5743
+
5744
+ // Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
5745
+ // See LICENSE in the project root for license information.
5746
+
5747
+ // ---------------------------------------------------------------------
5748
+
5749
+ /* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
5750
+
5751
+ let AuroLibraryRuntimeUtils$2 = class AuroLibraryRuntimeUtils {
5752
+
5753
+ /* eslint-disable jsdoc/require-param */
5754
+
5755
+ /**
5756
+ * This will register a new custom element with the browser.
5757
+ * @param {String} name - The name of the custom element.
5758
+ * @param {Object} componentClass - The class to register as a custom element.
5759
+ * @returns {void}
5760
+ */
5761
+ registerComponent(name, componentClass) {
5762
+ if (!customElements.get(name)) {
5763
+ customElements.define(name, class extends componentClass {});
5764
+ }
5765
+ }
5766
+
5767
+ /**
5768
+ * Finds and returns the closest HTML Element based on a selector.
5769
+ * @returns {void}
5770
+ */
5771
+ closestElement(
5772
+ selector, // selector like in .closest()
5773
+ base = this, // extra functionality to skip a parent
5774
+ __Closest = (el, found = el && el.closest(selector)) =>
5775
+ !el || el === document || el === window
5776
+ ? null // standard .closest() returns null for non-found selectors also
5777
+ : found
5778
+ ? found // found a selector INside this element
5779
+ : __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
5780
+ ) {
5781
+ return __Closest(base);
5782
+ }
5783
+ /* eslint-enable jsdoc/require-param */
5784
+
5785
+ /**
5786
+ * 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.
5787
+ * @param {Object} elem - The element to check.
5788
+ * @param {String} tagName - The name of the Auro component to check for or add as an attribute.
5789
+ * @returns {void}
5790
+ */
5791
+ handleComponentTagRename(elem, tagName) {
5792
+ const tag = tagName.toLowerCase();
5793
+ const elemTag = elem.tagName.toLowerCase();
5794
+
5795
+ if (elemTag !== tag) {
5796
+ elem.setAttribute(tag, true);
5797
+ }
5798
+ }
5799
+
5800
+ /**
5801
+ * Validates if an element is a specific Auro component.
5802
+ * @param {Object} elem - The element to validate.
5803
+ * @param {String} tagName - The name of the Auro component to check against.
5804
+ * @returns {Boolean} - Returns true if the element is the specified Auro component.
5805
+ */
5806
+ elementMatch(elem, tagName) {
5807
+ const tag = tagName.toLowerCase();
5808
+ const elemTag = elem.tagName.toLowerCase();
5809
+
5810
+ return elemTag === tag || elem.hasAttribute(tag);
5811
+ }
5812
+ };
5813
+
5814
+ var styleCss$2$1 = i$5`:focus:not(:focus-visible){outline:3px solid transparent}:host,:host>span{position:relative}:host{width:2rem;height:2rem;display:inline-block;font-size:0}:host>span{position:absolute;display:inline-block;float:none;top:0;left:0;width:2rem;height:2rem;border-radius:100%;border-style:solid;border-width:0}:host([xs]),:host([xs])>span{width:1.2rem;height:1.2rem}:host([sm]),:host([sm])>span{width:3rem;height:3rem}:host([md]),:host([md])>span{width:5rem;height:5rem}:host([lg]),:host([lg])>span{width:8rem;height:8rem}:host{--margin:0.375rem;--margin-xs:0.2rem;--margin-sm:0.5rem;--margin-md:0.75rem;--margin-lg:1rem}:host([pulse]),:host([pulse])>span{position:relative}:host([pulse]){width:calc(3rem + var(--margin)*6);height:1.5rem}:host([pulse])>span{width:1rem;height:1rem;margin:var(--margin);animation:pulse 1.5s ease infinite}:host([pulse][xs]){width:calc(2.55rem + var(--margin-xs)*6);height:1.55rem}:host([pulse][xs])>span{margin:var(--margin-xs);width:.65rem;height:.65rem}:host([pulse][sm]){width:calc(6rem + var(--margin-sm)*6);height:2.5rem}:host([pulse][sm])>span{margin:var(--margin-sm);width:2rem;height:2rem}:host([pulse][md]){width:calc(9rem + var(--margin-md)*6);height:3.5rem}:host([pulse][md])>span{margin:var(--margin-md);width:3rem;height:3rem}:host([pulse][lg]){width:calc(15rem + var(--margin-lg)*6);height:5.5rem}:host([pulse][lg])>span{margin:var(--margin-lg);width:5rem;height:5rem}:host([pulse])>span:nth-child(1){animation-delay:-400ms}:host([pulse])>span:nth-child(2){animation-delay:-200ms}:host([pulse])>span:nth-child(3){animation-delay:0ms}@keyframes pulse{0%,100%{opacity:.1;transform:scale(0.9)}50%{opacity:1;transform:scale(1.1)}}:host([orbit]),:host([orbit])>span{opacity:1}:host([orbit])>span{border-width:5px}:host([orbit])>span:nth-child(2){animation:orbit 2s linear infinite}:host([orbit][sm])>span{border-width:8px}:host([orbit][md])>span{border-width:13px}:host([orbit][lg])>span{border-width:21px}@keyframes orbit{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}:host([ringworm])>svg{animation:rotate 2s linear infinite;height:100%;width:100%;stroke:currentcolor;stroke-width:8}:host([ringworm]) .path{stroke-dashoffset:0;animation:ringworm 1.5s ease-in-out infinite;stroke-linecap:round}@keyframes rotate{100%{transform:rotate(360deg)}}@keyframes ringworm{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:89,200;stroke-dashoffset:-35px}100%{stroke-dasharray:89,200;stroke-dashoffset:-124px}}:host([laser]){position:static;width:100%;display:block;height:0;overflow:hidden;font-size:unset}:host([laser])>span{position:fixed;width:100%;height:.25rem;border-radius:0;z-index:100}:host([laser])>span:nth-child(1){border-color:currentcolor;opacity:.25}:host([laser])>span:nth-child(2){border-color:currentcolor;animation:laser 2s linear infinite;opacity:1;width:50%}:host([laser][sm])>span:nth-child(2){width:20%}:host([laser][md])>span:nth-child(2){width:30%}:host([laser][lg])>span:nth-child(2){width:50%;animation-duration:1.5s}:host([laser][xl])>span:nth-child(2){width:80%;animation-duration:1.5s}@keyframes laser{0%{left:-100%}100%{left:110%}}:host>.no-animation{display:none}@media(prefers-reduced-motion: reduce){:host{display:flex;align-items:center;justify-content:center;font-size:1rem}:host>span{opacity:1}:host>.loader{display:none}:host>.no-animation{display:block}}`;
5815
+
5816
+ var colorCss$1$1 = i$5`:host{color:var(--ds-auro-loader-color)}:host>span{background-color:var(--ds-auro-loader-background-color);border-color:var(--ds-auro-loader-border-color)}:host([onlight]){--ds-auro-loader-color:var(--ds-basic-color-brand-primary, #01426a)}:host([ondark]){--ds-auro-loader-color:var(--ds-basic-color-texticon-inverse, #ffffff)}:host([orbit])>span{--ds-auro-loader-background-color:transparent}:host([orbit])>span:nth-child(1){--ds-auro-loader-border-color:currentcolor;opacity:.25}:host([orbit])>span:nth-child(2){--ds-auro-loader-border-color:currentcolor;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent}`;
5817
+
5818
+ var tokensCss$1$1 = i$5`:host{--ds-auro-loader-background-color:currentcolor;--ds-auro-loader-border-color:currentcolor;--ds-auro-loader-color:currentcolor}`;
5819
+
5820
+ // Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
5821
+ // See LICENSE in the project root for license information.
5822
+
5823
+
5824
+ class AuroLoader extends i$2 {
5825
+ constructor() {
5826
+ super();
5827
+
5828
+ /**
5829
+ * @private
5830
+ */
5831
+ this.keys = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9];
5832
+
5833
+ /**
5834
+ * @private
5835
+ */
5836
+ this.mdCount = 3;
5837
+
5838
+ /**
5839
+ * @private
5840
+ */
5841
+ this.smCount = 2;
5842
+
5843
+ /**
5844
+ * @private
5845
+ */
5846
+ this.runtimeUtils = new AuroLibraryRuntimeUtils$2();
5847
+
5848
+ this.orbit = false;
5849
+ this.ringworm = false;
5850
+ this.laser = false;
5851
+ this.pulse = false;
5852
+ }
5853
+
5854
+ // function to define props used within the scope of this component
5855
+ static get properties() {
5856
+ return {
5857
+
5858
+ /**
5859
+ * Sets loader to laser type.
5860
+ */
5861
+ laser: {
5862
+ type: Boolean,
5863
+ reflect: true
5864
+ },
5865
+
5866
+ /**
5867
+ * Sets loader to orbit type.
5868
+ */
5869
+ orbit: {
5870
+ type: Boolean,
5871
+ reflect: true
5872
+ },
5873
+
5874
+ /**
5875
+ * Sets loader to pulse type.
5876
+ */
5877
+ pulse: {
5878
+ type: Boolean,
5879
+ reflect: true
5880
+ },
5881
+
5882
+ /**
5883
+ * Sets loader to ringworm type.
5884
+ */
5885
+ ringworm: {
5886
+ type: Boolean,
5887
+ reflect: true
5888
+ }
5889
+ };
5890
+ }
5891
+
5892
+ static get styles() {
5893
+ return [
5894
+ i$5`${styleCss$2$1}`,
5895
+ i$5`${colorCss$1$1}`,
5896
+ i$5`${tokensCss$1$1}`
5897
+ ];
5898
+ }
5899
+
5900
+ /**
5901
+ * This will register this element with the browser.
5902
+ * @param {string} [name="auro-loader"] - The name of element that you want to register to.
5903
+ *
5904
+ * @example
5905
+ * AuroLoader.register("custom-loader") // this will register this element to <custom-loader/>
5906
+ *
5907
+ */
5908
+ static register(name = "auro-loader") {
5909
+ AuroLibraryRuntimeUtils$2.prototype.registerComponent(name, AuroLoader);
5910
+ }
5911
+
5912
+ firstUpdated() {
5913
+ // Add the tag name as an attribute if it is different than the component name
5914
+ this.runtimeUtils.handleComponentTagRename(this, 'auro-loader');
5915
+ }
5916
+
5917
+ connectedCallback() {
5918
+ super.connectedCallback();
5919
+ }
5920
+
5921
+ /**
5922
+ * @private
5923
+ * @returns {Array} Numbered array for template map.
5924
+ */
5925
+ defineTemplate() {
5926
+ let nodes = Array.from(Array(this.mdCount).keys());
5927
+
5928
+ if (this.orbit || this.laser) {
5929
+ nodes = Array.from(Array(this.smCount).keys());
5930
+ } else if (this.ringworm) {
5931
+ nodes = Array.from(Array(0).keys());
5932
+ }
5933
+
5934
+ return nodes;
5935
+ }
5936
+
5937
+ // When using auroElement, use the following attribute and function when hiding content from screen readers.
5938
+ // aria-hidden="${this.hideAudible(this.hiddenAudible)}"
5939
+
5940
+ // function that renders the HTML and CSS into the scope of the component
5941
+ render() {
5942
+ return x`
5943
+ ${this.defineTemplate().map((idx) => x`
5944
+ <span part="element" class="loader node-${idx}"></span>
5945
+ `)}
5946
+
5947
+ <div class="no-animation">Loading...</div>
5948
+
5949
+ ${this.ringworm ? x`
5950
+ <svg part="element" class="circular" viewBox="25 25 50 50">
5951
+ <circle class="path" cx="50" cy="50" r="20" fill="none"/>
5952
+ </svg>`
5953
+ : ``
5954
+ }
5955
+ `;
5956
+ }
5957
+ }
5958
+
5959
+ var loaderVersion = '5.0.0';
5960
+
5961
+ /* eslint-disable max-lines, curly */
5962
+ // Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
5963
+ // See LICENSE in the project root for license information.
5964
+
5965
+
5966
+ /**
5967
+ * @slot - Default slot for the text of the button.
5968
+ * @csspart button - Apply CSS to HTML5 button.
5969
+ * @csspart loader - Apply CSS to auro-loader.
5970
+ * @csspart text - Apply CSS to text slot.
5971
+ * @csspart icon - Apply CSS to icon slot.
5972
+ */
5973
+
5974
+ /* eslint-disable lit/no-invalid-html, lit/binding-positions */
5975
+
5976
+ const ICON_ONLY_SHAPES = ['circle'];
5977
+
5978
+ /**
5979
+ * AuroButton is a custom element that provides a styled, accessible button with support for various states and form association.
5980
+ * It is designed to be flexible, supporting loading states, icon slots, and integration with HTML5 forms.
5981
+ * @property {'default', 'rounded', 'pill', 'circle'} shape - Defines the shape of the button.
5982
+ * @property {'xs', 'sm', 'md', 'lg', 'xl'} size - Defines the size of the button.
5983
+ * @property {'primary', 'secondary', 'tertiary', 'ghost', 'flat'} variant - Sets the button variant.
5984
+ * @property {'submit', 'reset', 'button'} type - The type of button. Matches HTML5 Button Spec.
5985
+ * @property {boolean} onDark - Indicates if the button is rendered in dark mode.
5986
+ */
5987
+ class AuroButton extends AuroElement$1 {
5988
+
5989
+ /**
5990
+ * Enables form association for this element.
5991
+ * @see https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/attachInternals
5992
+ * @returns {boolean} - Returns true to enable form association.
5993
+ */
5994
+ static get formAssociated() {
5995
+ return true;
5996
+ }
5997
+
5998
+ constructor() {
5999
+ super();
6000
+ this.autofocus = false;
6001
+ this.disabled = false;
6002
+ this.loading = false;
6003
+ this.size = "md";
6004
+ this.shape = "rounded";
6005
+ this.onDark = false;
6006
+ this.fluid = false;
6007
+ this.loadingText = this.loadingText || 'Loading...';
6008
+
6009
+ // Support for HTML5 forms
6010
+ if (typeof this.attachInternals === 'function') {
6011
+ this.internals = this.attachInternals();
6012
+ } else {
6013
+ this.internals = null;
6014
+
6015
+ // eslint-disable-next-line no-console
6016
+ console.warn('This browser does not support form association features. Some form-related functionality may not work as expected. Consider using a polyfill or handling click events manually.');
6017
+ }
6018
+
6019
+ /**
6020
+ * Generate unique names for dependency components.
6021
+ */
6022
+ const versioning = new AuroDependencyVersioning();
6023
+
6024
+ /**
6025
+ * @private
6026
+ */
6027
+ this.loaderTag = versioning.generateTag('auro-loader', loaderVersion, AuroLoader);
6028
+ }
6029
+
6030
+ static get styles() {
6031
+ return [
6032
+ tokensCss$2$1,
6033
+ styleCss$3$1,
6034
+ colorCss$2$1,
6035
+ shapeSize
6036
+ ];
6037
+ }
6038
+
6039
+ static get properties() {
6040
+ return {
6041
+
6042
+ ...super.properties,
6043
+
6044
+ /**
6045
+ * Override layout since it isn't used in this component.
6046
+ * @private
6047
+ */
6048
+ layout: {
6049
+ type: Boolean,
6050
+ attribute: false,
6051
+ reflect: false
6052
+ },
6053
+
6054
+ /**
6055
+ * This Boolean attribute lets you specify that the button should have input focus when the page loads, unless overridden by the user.
6056
+ */
6057
+ autofocus: {
6058
+ type: Boolean,
6059
+ reflect: true
6060
+ },
6061
+
6062
+ /**
6063
+ * If set to true, button will become disabled and not allow for interactions.
6064
+ */
6065
+ disabled: {
6066
+ type: Boolean,
6067
+ reflect: true
6068
+ },
6069
+
6070
+ /**
6071
+ * Alters the shape of the button to be full width of its parent container.
6072
+ */
6073
+ fluid: {
6074
+ type: Boolean,
6075
+ reflect: true
6076
+ },
6077
+
6078
+ /**
6079
+ * If set to true button text will be replaced with `auro-loader` and become disabled.
6080
+ */
6081
+ loading: {
6082
+ type: Boolean,
6083
+ reflect: true
6084
+ },
6085
+
6086
+ /**
6087
+ * Sets custom loading text for the `aria-label` on a button in loading state. If not set, the default value of "Loading..." will be used.
6088
+ */
6089
+ loadingText: {
6090
+ type: String
6091
+ },
6092
+
6093
+ /**
6094
+ * Populates `tabIndex` to define the focusable sequence in keyboard navigation.
6095
+ */
6096
+ tIndex: {
6097
+ type: String,
6098
+ reflect: true
6099
+ },
6100
+
6101
+ /**
6102
+ * Sets title attribute. The information is most often shown as a tooltip text when the mouse moves over the element.
6103
+ */
6104
+ title: {
6105
+ type: String,
6106
+ reflect: true
6107
+ },
6108
+
6109
+ /**
6110
+ * The type of the button. Possible values are: `submit`, `reset`, `button`.
6111
+ */
6112
+ type: {
6113
+ type: String,
6114
+ reflect: true
6115
+ },
6116
+
6117
+ /**
6118
+ * Defines the value associated with the button which is submitted with the form data.
6119
+ */
6120
+ value: {
6121
+ type: String,
6122
+ reflect: true
6123
+ },
6124
+
6125
+ /**
6126
+ * Sets button variant option.
6127
+ * @default primary
6128
+ */
6129
+ variant: {
6130
+ type: String,
6131
+ reflect: true
6132
+ },
6133
+ };
6134
+ }
6135
+
6136
+ /**
6137
+ * This will register this element with the browser.
6138
+ * @param {string} [name="auro-button"] - The name of element that you want to register to.
6139
+ *
6140
+ * @example
6141
+ * AuroButton.register("custom-button") // this will register this element to <custom-button/>
6142
+ *
6143
+ */
6144
+ static register(name = "auro-button") {
6145
+ AuroLibraryRuntimeUtils$3.prototype.registerComponent(name, AuroButton);
6146
+ }
6147
+
6148
+ /**
6149
+ * Internal method to apply focus to the HTML5 button.
6150
+ * @private
6151
+ * @returns {void}
6152
+ */
6153
+ focus() {
6154
+ this.renderRoot.querySelector('button').focus();
6155
+ }
6156
+
6157
+ /**
6158
+ * Submits the form that this button is associated with.
6159
+ * @private
6160
+ * @returns {void}
6161
+ */
6162
+ surfaceSubmitEvent() {
6163
+ if (this.form) {
6164
+ this.form.requestSubmit();
6165
+ }
6166
+ }
6167
+
6168
+ /**
6169
+ * Returns the form element that this button is associated with.
6170
+ * @private
6171
+ * @returns {HTMLFormElement | null}
6172
+ */
6173
+ get form() {
6174
+ return this.internals ? this.internals.form : null;
6175
+ }
6176
+
6177
+ /**
6178
+ * @private
6179
+ * @returns {Boolean}
6180
+ */
6181
+ get hideText() {
6182
+ return ICON_ONLY_SHAPES.includes(this.shape);
6183
+ }
6184
+
6185
+ /**
6186
+ * Returns the current value of the projected `aria-label` attribute or undefined if not set.
6187
+ * @returns {string | undefined}
6188
+ * @private
6189
+ */
6190
+ get currentAriaLabel() {
6191
+ if (!this.attributeWatcher) return undefined;
6192
+
6193
+ const ariaLabel = this.attributeWatcher.getObservedAttribute("aria-label");
6194
+ return ariaLabel || undefined;
6195
+ }
6196
+
6197
+ /**
6198
+ * Returns the current value of the projected `aria-labelledby` attribute or undefined if not set.
6199
+ * @returns {string | undefined}
6200
+ * @private
6201
+ */
6202
+ get currentAriaLabelledBy() {
6203
+ if (!this.attributeWatcher) return undefined;
6204
+
6205
+ const ariaLabelledBy = this.attributeWatcher.getObservedAttribute("aria-labelledby");
6206
+ return ariaLabelledBy || undefined;
6207
+ }
6208
+
6209
+ /**
6210
+ * Renders the default layout for the button.
6211
+ * @returns {TemplateResult}
6212
+ * @private
6213
+ */
6214
+ renderLayoutDefault() {
6215
+ const classes = {
6216
+ "util_insetLg--squish": true,
6217
+ "auro-button": true,
6218
+ "icon-only": this.hideText,
6219
+ wrapper: true,
6220
+ loading: this.loading,
6221
+ };
6222
+
6223
+ return u`
6224
+ <button
6225
+ part="button"
6226
+ aria-label="${o(this.loading ? this.loadingText : this.currentAriaLabel || undefined)}"
6227
+ aria-labelledby="${o(this.loading ? undefined : this.currentAriaLabelledBy || undefined)}"
6228
+ tabIndex="${o(this.tIndex)}"
6229
+ ?autofocus="${this.autofocus}"
6230
+ class="${e(classes)}"
6231
+ ?disabled="${this.disabled || this.loading}"
6232
+ ?onDark="${this.onDark}"
6233
+ title="${o(this.title ? this.title : undefined)}"
6234
+ name="${o(this.name ? this.name : undefined)}"
6235
+ type="${o(this.type ? this.type : undefined)}"
6236
+ variant="${o(this.variant ? this.variant : undefined)}"
6237
+ .value="${o(this.value ? this.value : undefined)}"
6238
+ @click="${this.type === 'submit' ? this.surfaceSubmitEvent : undefined}"
6239
+ >
6240
+ ${o(this.loading ? u`<${this.loaderTag} pulse part="loader"></${this.loaderTag}>` : undefined)}
6241
+
6242
+ <span class="contentWrapper">
6243
+ <span class="textSlot" part="text">
6244
+ <slot></slot>
6245
+ </span>
6246
+ </span>
6247
+ </button>
6248
+ `;
6249
+ }
6250
+
6251
+ /**
6252
+ * Renders the layout of the button
6253
+ * @returns {TemplateResult}
6254
+ * @private
6255
+ */
6256
+ renderLayout() {
6257
+ return this.renderLayoutDefault();
6258
+ }
6259
+ }
6260
+
6261
+ var buttonVersion = '11.0.0';
6262
+
6263
+ // Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
6264
+ // See LICENSE in the project root for license information.
6265
+
6266
+
6267
+ /**
6268
+ * @attr {Boolean} hidden - If present, the component will be hidden both visually and from screen readers
6269
+ * @attr {Boolean} hiddenVisually - If present, the component will be hidden visually, but still read by screen readers
6270
+ * @attr {Boolean} hiddenAudible - If present, the component will be hidden from screen readers, but seen visually
6271
+ */
6272
+
6273
+ let AuroElement$2 = class AuroElement extends i$2 {
6274
+
6275
+ // function to define props used within the scope of this component
6276
+ static get properties() {
6277
+ return {
6278
+ hidden: { type: Boolean,
6279
+ reflect: true },
6280
+ hiddenVisually: { type: Boolean,
6281
+ reflect: true },
6282
+ hiddenAudible: { type: Boolean,
6283
+ reflect: true },
6284
+ };
6285
+ }
6286
+
6287
+ /**
6288
+ * @private Function that determines state of aria-hidden
6289
+ */
6290
+ hideAudible(value) {
6291
+ if (value) {
6292
+ return 'true'
6293
+ }
6294
+
6295
+ return 'false'
6296
+ }
6297
+ };
6298
+
6299
+ var error$1 = {"svg":"<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" aria-labelledby=\"error__desc\" class=\"ico_squareLarge\" data-deprecated=\"true\" 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=\"error__desc\">Error alert indicator.</desc><path d=\"m13.047 5.599 6.786 11.586A1.207 1.207 0 0 1 18.786 19H5.214a1.207 1.207 0 0 1-1.047-1.815l6.786-11.586a1.214 1.214 0 0 1 2.094 0m-1.165.87a.23.23 0 0 0-.085.085L5.419 17.442a.232.232 0 0 0 .203.35h12.756a.234.234 0 0 0 .203-.35L12.203 6.554a.236.236 0 0 0-.321-.084M12 15.5a.75.75 0 1 1 0 1.5.75.75 0 0 1 0-1.5m-.024-6.22c.325 0 .589.261.589.583v4.434a.586.586 0 0 1-.589.583.586.586 0 0 1-.588-.583V9.863c0-.322.264-.583.588-.583\"/></svg>"};
6300
+
6301
+ /* eslint-disable no-underscore-dangle, jsdoc/no-undefined-types, jsdoc/require-param-description */
6302
+
6303
+ const _fetchMap$1 = new Map();
6304
+
6305
+ /**
6306
+ * A callback to parse Response body.
6307
+ *
6308
+ * @callback ResponseParser
6309
+ * @param {Fetch.Response} response
6310
+ * @returns {Promise}
6311
+ */
6312
+
6313
+ /**
6314
+ * A minimal in-memory map to de-duplicate Fetch API media requests.
6315
+ *
6316
+ * @param {String} uri
6317
+ * @param {Object} [options={}]
6318
+ * @param {ResponseParser} [options.responseParser=(response) => response.text()]
6319
+ * @returns {Promise}
6320
+ */
6321
+ const cacheFetch$1 = (uri, options = {}) => {
6322
+ const responseParser = options.responseParser || ((response) => response.text());
6323
+ if (!_fetchMap$1.has(uri)) {
6324
+ _fetchMap$1.set(uri, fetch(uri).then(responseParser));
6325
+ }
6326
+ return _fetchMap$1.get(uri);
6327
+ };
6328
+
6329
+ var styleCss$1$1 = i$5`:focus:not(:focus-visible){outline:3px solid transparent}.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock,:host{display:block}.util_displayFlex{display:flex}.util_displayHidden,:host([hidden]:not(:focus):not(:active)){display:none}.util_displayHiddenVisually,:host([hiddenVisually]:not(:focus):not(:active)){position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}.ico_squareLarge{fill:currentColor;height:var(--auro-size-lg, var(--ds-size-300, 1.5rem))}.ico_squareSmall{fill:currentColor;height:.6rem}.ico_squareMed{fill:currentColor;height:var(--auro-size-md, var(--ds-size-200, 1rem))}.ico_squareSml{fill:currentColor;height:var(--auro-size-sm, var(--ds-size-150, 0.75rem))}:host{color:currentColor;vertical-align:middle;line-height:1;display:inline-block}svg{min-width:var(--ds-auro-icon-size, 1.5rem) !important;width:var(--ds-auro-icon-size, 1.5rem) !important;height:var(--ds-auro-icon-size, 1.5rem) !important}.componentWrapper{display:flex}.svgWrapper{height:var(--ds-auro-icon-size);width:var(--ds-auro-icon-size)}.labelWrapper{margin-left:var(--ds-size-50, 0.25rem);line-height:1.8}`;
6330
+
6331
+ // Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
6332
+ // See LICENSE in the project root for license information.
6333
+
6334
+
6335
+ // See https://git.io/JJ6SJ for "How to document your components using JSDoc"
6336
+ /**
6337
+ * @slot - Hidden from visibility, used for a11y if icon description is needed
6338
+ */
6339
+
6340
+ // build the component class
6341
+ let BaseIcon$1 = class BaseIcon extends AuroElement$2 {
6342
+ constructor() {
6343
+ super();
6344
+ this.onDark = false;
6345
+ }
6346
+
6347
+ // function to define props used within the scope of this component
6348
+ static get properties() {
6349
+ return {
6350
+ ...super.properties,
6351
+
6352
+ /**
6353
+ * Set value for on-dark version of auro-icon.
6354
+ */
6355
+ onDark: {
6356
+ type: Boolean,
6357
+ reflect: true
6358
+ },
6359
+
6360
+ /**
6361
+ * @private
5414
6362
  */
5415
6363
  svg: {
5416
6364
  attribute: false,
@@ -5658,8 +6606,12 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
5658
6606
  async firstUpdated() {
5659
6607
  await super.firstUpdated();
5660
6608
 
5661
- // Removes the SVG description for screenreader if ariaHidden is set to true
5662
- if (!this.hasAttribute('ariaHidden') && this.svg) {
6609
+ /**
6610
+ * icons provide a description for screen readers. Icon only instances Auro-button
6611
+ * depend on this description to provide context for the user using a screen reader.
6612
+ * Removes the SVG description for screen reader if ariaHidden is set to true.
6613
+ */
6614
+ if (this.hasAttribute('ariaHidden') && this.svg) {
5663
6615
  const svgDesc = this.svg.querySelector('desc');
5664
6616
 
5665
6617
  if (svgDesc) {
@@ -5703,7 +6655,7 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
5703
6655
  }
5704
6656
  };
5705
6657
 
5706
- var iconVersion$1 = '8.0.3';
6658
+ var iconVersion$1 = '8.0.4';
5707
6659
 
5708
6660
  // Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
5709
6661
  // See LICENSE in the project root for license information.
@@ -5712,7 +6664,7 @@ var iconVersion$1 = '8.0.3';
5712
6664
 
5713
6665
  /* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
5714
6666
 
5715
- let AuroLibraryRuntimeUtils$3 = class AuroLibraryRuntimeUtils {
6667
+ let AuroLibraryRuntimeUtils$4 = class AuroLibraryRuntimeUtils {
5716
6668
 
5717
6669
  /* eslint-disable jsdoc/require-param */
5718
6670
 
@@ -5804,7 +6756,7 @@ class AuroHeader extends i$2 {
5804
6756
  /**
5805
6757
  * @private
5806
6758
  */
5807
- this.runtimeUtils = new AuroLibraryRuntimeUtils$3();
6759
+ this.runtimeUtils = new AuroLibraryRuntimeUtils$4();
5808
6760
  }
5809
6761
 
5810
6762
  // function to define props used within the scope of this component
@@ -5834,7 +6786,7 @@ class AuroHeader extends i$2 {
5834
6786
  *
5835
6787
  */
5836
6788
  static register(name = "auro-header") {
5837
- AuroLibraryRuntimeUtils$3.prototype.registerComponent(name, AuroHeader);
6789
+ AuroLibraryRuntimeUtils$4.prototype.registerComponent(name, AuroHeader);
5838
6790
  }
5839
6791
 
5840
6792
  firstUpdated() {
@@ -5930,17 +6882,30 @@ class AuroBibtemplate extends i$2 {
5930
6882
 
5931
6883
  this.large = false;
5932
6884
 
5933
- AuroLibraryRuntimeUtils$2.prototype.handleComponentTagRename(this, 'auro-bibtemplate');
6885
+ AuroLibraryRuntimeUtils$3.prototype.handleComponentTagRename(this, 'auro-bibtemplate');
5934
6886
 
5935
6887
  const versioning = new AuroDependencyVersioning();
6888
+
6889
+ /**
6890
+ * @private
6891
+ */
5936
6892
  this.iconTag = versioning.generateTag('auro-formkit-bibtemplate-icon', iconVersion$1, AuroIcon$1);
6893
+
6894
+ /**
6895
+ * @private
6896
+ */
5937
6897
  this.headerTag = versioning.generateTag('auro-formkit-bibtemplate-header', headerVersion, AuroHeader);
6898
+
6899
+ /**
6900
+ * @private
6901
+ */
6902
+ this.buttonTag = versioning.generateTag('auro-formkit-input-button', buttonVersion, AuroButton);
5938
6903
  }
5939
6904
 
5940
6905
  static get styles() {
5941
6906
  return [
5942
- colorCss$1$1,
5943
- styleCss$2$1,
6907
+ colorCss$3$1,
6908
+ styleCss$4$1,
5944
6909
  tokenCss
5945
6910
  ];
5946
6911
  }
@@ -5969,7 +6934,7 @@ class AuroBibtemplate extends i$2 {
5969
6934
  *
5970
6935
  */
5971
6936
  static register(name = "auro-bibtemplate") {
5972
- AuroLibraryRuntimeUtils$2.prototype.registerComponent(name, AuroBibtemplate);
6937
+ AuroLibraryRuntimeUtils$3.prototype.registerComponent(name, AuroBibtemplate);
5973
6938
  }
5974
6939
 
5975
6940
  /**
@@ -6027,9 +6992,9 @@ class AuroBibtemplate extends i$2 {
6027
6992
  <div id="bibTemplate" part="bibtemplate">
6028
6993
  ${this.isFullscreen ? u`
6029
6994
  <div id="headerContainer">
6030
- <button id="closeButton" @click="${this.onCloseButtonClick}">
6995
+ <${this.buttonTag} id="closeButton" variant="ghost" shape="circle" size="sm" @click="${this.onCloseButtonClick}">
6031
6996
  <${this.iconTag} category="interface" name="x-lg"></${this.iconTag}>
6032
- </button>
6997
+ </${this.buttonTag}>
6033
6998
  <${this.headerTag} display="${this.large ? 'display' : '600'}" level="3" size="none" id="header" no-margin-block>
6034
6999
  <slot name="header"></slot>
6035
7000
  </${this.headerTag}>
@@ -6261,11 +7226,11 @@ class AuroHelpText extends i$2 {
6261
7226
 
6262
7227
  var helpTextVersion = '1.0.0';
6263
7228
 
6264
- i$5`: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)}`;
7229
+ i$5`: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)}`;
6265
7230
 
6266
7231
  i$5`: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)}`;
6267
7232
 
6268
- i$5`: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)}`;
7233
+ i$5`: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)}`;
6269
7234
 
6270
7235
  // Copyright (c) 2021 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
6271
7236
  // See LICENSE in the project root for license information.
@@ -6312,9 +7277,9 @@ function arrayConverter(value) {
6312
7277
  throw new Error('Invalid value: Input must be an array or undefined');
6313
7278
  }
6314
7279
 
6315
- i$5`: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}`;
7280
+ i$5`: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);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);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}`;
6316
7281
 
6317
- i$5`: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)}`;
7282
+ i$5`: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)}`;
6318
7283
 
6319
7284
  i$5`:focus:not(:focus-visible){outline:3px solid transparent}.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock,:host{display:block}.util_displayFlex{display:flex}.util_displayHidden,:host([hidden]:not(:focus):not(:active)){display:none}.util_displayHiddenVisually,:host([hiddenVisually]:not(:focus):not(:active)){position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}.ico_squareLarge{fill:currentColor;height:var(--auro-size-lg, var(--ds-size-300, 1.5rem))}.ico_squareSmall{fill:currentColor;height:.6rem}.ico_squareMed{fill:currentColor;height:var(--auro-size-md, var(--ds-size-200, 1rem))}.ico_squareSml{fill:currentColor;height:var(--auro-size-sm, var(--ds-size-150, 0.75rem))}:host{color:currentColor;vertical-align:middle;line-height:1;display:inline-block}svg{min-width:var(--ds-auro-icon-size, 1.5rem) !important;width:var(--ds-auro-icon-size, 1.5rem) !important;height:var(--ds-auro-icon-size, 1.5rem) !important}.componentWrapper{display:flex}.svgWrapper{height:var(--ds-auro-icon-size);width:var(--ds-auro-icon-size)}.labelWrapper{margin-left:var(--ds-size-50, 0.25rem);line-height:1.8}`;
6320
7285
 
@@ -6322,7 +7287,7 @@ i$5`:host{--ds-auro-icon-color:var(--ds-basic-color-texticon-default, #2a2a2a);-
6322
7287
 
6323
7288
  i$5`: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)}`;
6324
7289
 
6325
- var styleCss$3 = i$5`.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock{display:block}.util_displayFlex{display:flex}.util_displayHidden{display:none}.util_displayHiddenVisually{position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}[auro-dropdown]{--ds-auro-dropdown-trigger-border-color: var(--ds-auro-select-border-color);--ds-auro-dropdown-trigger-background-color: var(--ds-auro-select-background-color);--ds-auro-dropdown-trigger-container-color: var(--ds-auro-select-background-color)}.mainContent{position:relative;display:flex;flex:1;flex-direction:column;align-items:center;justify-content:center}.valueContainer [slot=displayValue]{display:none}.accents{display:flex;flex-direction:row;align-items:center;justify-content:center}::slotted([slot=typeIcon]){margin-right:8px}.displayValue{display:block}.displayValue:not(.force){display:none}.displayValue:not(.force).hasContent:is(.withValue):not(.hasFocus){display:block}.triggerContent{display:flex;width:100%;align-items:center;justify-content:center;padding:0 8px 0 24px}.layout-emphasized .triggerContent,.layout-snowflake .triggerContent{display:flex;width:100%;align-items:center;justify-content:center;padding:0 8px 0 24px}.layout-classic .triggerContent{display:flex;width:100%;align-items:center;justify-content:center;padding:0 8px 0 24px}:host(:is([validity]:not([validity=valid]))) [auro-dropdown]{--ds-auro-select-border-color: var(--ds-basic-color-status-error, #e31f26);--ds-auro-dropdown-helptext-text-color: var(--ds-basic-color-texticon-default, #2a2a2a)}:host([ondark]:is([validity]:not([validity=valid]))) [auro-dropdown]{--ds-auro-select-border-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8);--ds-auro-dropdown-helptext-text-color: var(--ds-basic-color-texticon-inverse, #ffffff)}#slotHolder{display:none}:host([disabled]) *{user-select:none}`;
7290
+ var styleCss$3 = i$5`.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock{display:block}.util_displayFlex{display:flex}.util_displayHidden{display:none}.util_displayHiddenVisually{position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}[auro-dropdown]{--ds-auro-dropdown-trigger-border-color: var(--ds-auro-select-border-color);--ds-auro-dropdown-trigger-background-color: var(--ds-auro-select-background-color);--ds-auro-dropdown-trigger-container-color: var(--ds-auro-select-background-color)}.mainContent{position:relative;display:flex;flex:1;flex-direction:column;align-items:center;justify-content:center}.valueContainer [slot=displayValue]{display:none}.accents{display:flex;flex-direction:row;align-items:center;justify-content:center}::slotted([slot=typeIcon]){margin-right:8px}.displayValue{display:block}.displayValue:not(.force){display:none}.displayValue:not(.force).hasContent:is(.withValue):not(.hasFocus){display:block}.triggerContent{display:flex;width:100%;align-items:center;justify-content:center}:host([layout*=emphasized]) .triggerContent,:host([layout*=snowflake]) .triggerContent{padding:0 8px 0 24px}:host([layout*=classic]) .triggerContent{padding:0 8px}:host([layout*=classic]) .mainContent{align-items:start}:host([layout*=classic]) label{cursor:text;font-size:16px;font-weight:450;letter-spacing:0;line-height:24px}:host([layout*=classic]) label.withValue{font-size:12px;font-weight:450;letter-spacing:0;line-height:16px}:host([layout*=classic]) .value{height:auto;font-size:16px;font-weight:450;letter-spacing:0;line-height:24px}:host(:is([validity]:not([validity=valid]))) [auro-dropdown]{--ds-auro-select-border-color: var(--ds-basic-color-status-error, #e31f26);--ds-auro-dropdown-helptext-text-color: var(--ds-basic-color-texticon-default, #2a2a2a)}:host([ondark]:is([validity]:not([validity=valid]))) [auro-dropdown]{--ds-auro-select-border-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8);--ds-auro-dropdown-helptext-text-color: var(--ds-basic-color-texticon-inverse, #ffffff)}#slotHolder{display:none}:host([disabled]) *{user-select:none}`;
6326
7291
 
6327
7292
  // Copyright (c) 2021 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
6328
7293
  // See LICENSE in the project root for license information.
@@ -6338,6 +7303,7 @@ var styleCss$3 = i$5`.util_displayInline{display:inline}.util_displayInlineBlock
6338
7303
  * @slot helpText - Defines the content of the helpText.
6339
7304
  * @slot placeholder - Defines the content of the placeholder to be shown when there is no value
6340
7305
  * @slot valueText - Dropdown value text display.
7306
+ * @slot displayValue - Allows custom HTML content to display the selected value when select is not focused.
6341
7307
  * @event auroSelect-valueSet - Notifies that the component has a new value set.
6342
7308
  * @event input - Notifies every time the value prop of the element is changed. The updated `value` and `optionSelected` will be delivered in `detail` object.
6343
7309
  * @event auroFormElement-validated - Notifies that the `validity` and `errorMessage` values have changed.
@@ -6345,7 +7311,7 @@ var styleCss$3 = i$5`.util_displayInline{display:inline}.util_displayInlineBlock
6345
7311
  */
6346
7312
 
6347
7313
  // build the component class
6348
- class AuroSelect extends AuroElement$3 {
7314
+ class AuroSelect extends AuroElement$4 {
6349
7315
  constructor() {
6350
7316
  super();
6351
7317
 
@@ -6355,11 +7321,11 @@ class AuroSelect extends AuroElement$3 {
6355
7321
  const idSubstrEnd = 8;
6356
7322
  const idSubstrStart = 2;
6357
7323
 
6358
- this.matchWidth = true;
7324
+ this.matchWidth = false;
6359
7325
 
6360
7326
  // Layout Config
6361
- this.layout = 'classic';
6362
- this.shape = 'classic';
7327
+ this.layout = 'snowflake';
7328
+ this.shape = 'snowflake';
6363
7329
  this.size = 'xl';
6364
7330
 
6365
7331
  // floaterConfig
@@ -6370,6 +7336,10 @@ class AuroSelect extends AuroElement$3 {
6370
7336
 
6371
7337
  this.forceDisplayValue = false;
6372
7338
 
7339
+ this.layout = 'classic';
7340
+ this.shape = 'classic';
7341
+ this.size = 'xl';
7342
+
6373
7343
  /**
6374
7344
  * @private
6375
7345
  */
@@ -6385,7 +7355,7 @@ class AuroSelect extends AuroElement$3 {
6385
7355
  /**
6386
7356
  * @private
6387
7357
  */
6388
- this.runtimeUtils = new AuroLibraryRuntimeUtils$5();
7358
+ this.runtimeUtils = new AuroLibraryRuntimeUtils$6();
6389
7359
 
6390
7360
  /**
6391
7361
  * Generate unique names for dependency components.
@@ -6500,14 +7470,6 @@ class AuroSelect extends AuroElement$3 {
6500
7470
  reflect: true
6501
7471
  },
6502
7472
 
6503
- /**
6504
- * If set, makes dropdown width match the size of the content, rather than the width of the trigger.
6505
- */
6506
- flexMenuWidth: {
6507
- type: Boolean,
6508
- reflect: true
6509
- },
6510
-
6511
7473
  /**
6512
7474
  * Defines the screen size breakpoint (`xs`, `sm`, `md`, `lg`, `xl`, `disabled`)
6513
7475
  * at which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.
@@ -6601,7 +7563,7 @@ class AuroSelect extends AuroElement$3 {
6601
7563
  * "top" | "right" | "bottom" | "left" |
6602
7564
  * "bottom-start" | "top-start" | "top-end" |
6603
7565
  * "right-start" | "right-end" | "bottom-end" |
6604
- * "left-start" | "left-end"
7566
+ * "left-start" | "left-end".
6605
7567
  * @default bottom-start
6606
7568
  */
6607
7569
  placement: {
@@ -6711,6 +7673,19 @@ class AuroSelect extends AuroElement$3 {
6711
7673
  ];
6712
7674
  }
6713
7675
 
7676
+ /**
7677
+ * Returns classmap configuration for html5 input labels in all layouts.
7678
+ * @private
7679
+ * @returns {void}
7680
+ */
7681
+ get commonLabelClasses() {
7682
+ return {
7683
+ 'is-disabled': this.disabled,
7684
+ 'withValue': this.value && this.value.length > 0,
7685
+ 'util_displayHiddenVisually': this.hasDisplayValueContent && !this.hasFocus && this.value && this.value.length > 0
7686
+ };
7687
+ }
7688
+
6714
7689
  /**
6715
7690
  * Returns classmap configuration for wrapper elements in each layout.
6716
7691
  * @private
@@ -6754,7 +7729,7 @@ class AuroSelect extends AuroElement$3 {
6754
7729
  *
6755
7730
  */
6756
7731
  static register(name = "auro-select") {
6757
- AuroLibraryRuntimeUtils$5.prototype.registerComponent(name, AuroSelect);
7732
+ AuroLibraryRuntimeUtils$6.prototype.registerComponent(name, AuroSelect);
6758
7733
  }
6759
7734
 
6760
7735
  /**
@@ -6814,6 +7789,15 @@ class AuroSelect extends AuroElement$3 {
6814
7789
  return;
6815
7790
  }
6816
7791
 
7792
+ // set menu's default size if there it's not specified.
7793
+ if (!this.menu.getAttribute('size')) {
7794
+ this.menu.setAttribute('size', this.layout !== 'emphasized' ? 'md' : this.size);
7795
+ }
7796
+
7797
+ if (!this.getAttribute('shape')) {
7798
+ this.menu.setAttribute('shape', this.layout === 'classic' ? 'box' : this.shape);
7799
+ }
7800
+
6817
7801
  if (this.multiSelect) {
6818
7802
  this.menu.multiSelect = this.multiSelect;
6819
7803
  }
@@ -7077,8 +8061,8 @@ class AuroSelect extends AuroElement$3 {
7077
8061
  // Add the tag name as an attribute if it is different than the component name
7078
8062
  this.runtimeUtils.handleComponentTagRename(this, 'auro-select');
7079
8063
 
7080
- this.configureMenu();
7081
8064
  this.configureDropdown();
8065
+ this.configureMenu();
7082
8066
  this.configureSelect();
7083
8067
 
7084
8068
  // Set the initial value in auro-menu if defined
@@ -7135,6 +8119,14 @@ class AuroSelect extends AuroElement$3 {
7135
8119
  if (changedProperties.has('error')) {
7136
8120
  this.validate(true);
7137
8121
  }
8122
+
8123
+ if (changedProperties.has('shape') && this.menu) {
8124
+ this.menu.setAttribute('shape', this.layout === 'classic' ? 'box' : this.shape);
8125
+ }
8126
+
8127
+ if (changedProperties.has('size') && this.menu) {
8128
+ this.menu.setAttribute('size', this.layout !== 'emphasized' ? 'md' : this.size);
8129
+ }
7138
8130
  }
7139
8131
 
7140
8132
  /**
@@ -7231,7 +8223,7 @@ class AuroSelect extends AuroElement$3 {
7231
8223
 
7232
8224
  renderNativeSelect() {
7233
8225
  return u`
7234
- <div class="nativeSelectWrapper">
8226
+ <div class="nativeSelectWrapper util_displayHidden">
7235
8227
  <select
7236
8228
  tabindex="-1"
7237
8229
  id="${`native-select-${this.id || this.uniqueId}`}"
@@ -7314,9 +8306,10 @@ class AuroSelect extends AuroElement$3 {
7314
8306
  <slot name="bib.fullscreen.headline" @slotchange="${this.handleSlotChange}"></slot>
7315
8307
  </div>
7316
8308
  <${this.dropdownTag}
8309
+ a11yRole="select"
7317
8310
  ?autoPlacement="${this.autoPlacement}"
7318
8311
  ?error="${this.validity !== undefined && this.validity !== 'valid'}"
7319
- ?matchWidth="${!this.flexMenuWidth}"
8312
+ ?matchWidth="${this.matchWidth}"
7320
8313
  ?noFlip="${this.noFlip}"
7321
8314
  ?onDark="${this.onDark}"
7322
8315
  .fullscreenBreakpoint="${this.fullscreenBreakpoint}"
@@ -7335,7 +8328,7 @@ class AuroSelect extends AuroElement$3 {
7335
8328
  </div>
7336
8329
  <div class="mainContent">
7337
8330
  <div class="${e(valueContainerClasses)}">
7338
- <label>
8331
+ <label class="${e(this.commonLabelClasses)}">
7339
8332
  <slot name="label"></slot>
7340
8333
  </label>
7341
8334
  <div class="value" id="value"></div>
@@ -7396,7 +8389,7 @@ class AuroSelect extends AuroElement$3 {
7396
8389
  <${this.dropdownTag}
7397
8390
  ?autoPlacement="${this.autoPlacement}"
7398
8391
  ?error="${this.validity !== undefined && this.validity !== 'valid'}"
7399
- ?matchWidth="${!this.flexMenuWidth}"
8392
+ ?matchWidth="${this.matchWidth}"
7400
8393
  ?noFlip="${this.noFlip}"
7401
8394
  ?onDark="${this.onDark}"
7402
8395
  .fullscreenBreakpoint="${this.fullscreenBreakpoint}"
@@ -7415,7 +8408,7 @@ class AuroSelect extends AuroElement$3 {
7415
8408
  </div>
7416
8409
  <div class="mainContent">
7417
8410
  <div class="${e(valueContainerClasses)}">
7418
- <label>
8411
+ <label class="${e(this.commonLabelClasses)}">
7419
8412
  <slot name="label"></slot>
7420
8413
  </label>
7421
8414
  <div class="value" id="value"></div>
@@ -7439,6 +8432,7 @@ class AuroSelect extends AuroElement$3 {
7439
8432
  ${this.renderHtmlHelpText()}
7440
8433
  </div>
7441
8434
  </${this.dropdownTag}>
8435
+ ${this.renderNativeSelect()}
7442
8436
  </div>
7443
8437
  `;
7444
8438
  }
@@ -7449,11 +8443,77 @@ class AuroSelect extends AuroElement$3 {
7449
8443
  * @returns {import("lit").TemplateResult} - Returns HTML for the classic layout.
7450
8444
  */
7451
8445
  renderLayoutClassic() {
8446
+ const placeholderClass = {
8447
+ hidden: this.value,
8448
+ };
8449
+
8450
+ const displayValueClasses = {
8451
+ 'displayValue': true,
8452
+ 'hasContent': this.hasDisplayValueContent,
8453
+ 'hasFocus': this.isPopoverVisible,
8454
+ 'withValue': this.value && this.value.length > 0,
8455
+ 'force': this.forceDisplayValue,
8456
+ };
8457
+
8458
+ const valueContainerClasses = {
8459
+ 'valueContainer': true,
8460
+ 'util_displayHiddenVisually': (this.forceDisplayValue || !(this.dropdown && this.dropdown.isPopoverVisible)) && this.hasDisplayValueContent
8461
+ };
8462
+
7452
8463
  return u`
7453
8464
  <div
7454
- class="${e(this.commonWrapperClasses)} thin"
8465
+ class="${e(this.commonWrapperClasses)}"
7455
8466
  part="wrapper">
7456
- classic
8467
+ <div id="slotHolder" aria-hidden="true">
8468
+ <slot name="bib.fullscreen.headline" @slotchange="${this.handleSlotChange}"></slot>
8469
+ </div>
8470
+ <${this.dropdownTag}
8471
+ ?autoPlacement="${this.autoPlacement}"
8472
+ ?error="${this.validity !== undefined && this.validity !== 'valid'}"
8473
+ ?matchWidth="${!this.flexMenuWidth}"
8474
+ ?noFlip="${this.noFlip}"
8475
+ ?onDark="${this.onDark}"
8476
+ .fullscreenBreakpoint="${this.fullscreenBreakpoint}"
8477
+ .offset="${this.offset}"
8478
+ .placement="${this.placement}"
8479
+ chevron
8480
+ fluid
8481
+ for="selectMenu"
8482
+ layout="${this.layout}"
8483
+ part="dropdown"
8484
+ shape="${this.shape}"
8485
+ size="${this.size}">
8486
+ <div slot="trigger" aria-haspopup="true" id="triggerFocus" class="triggerContent">
8487
+ <div class="accents left">
8488
+ <slot name="typeIcon"></slot>
8489
+ </div>
8490
+ <div class="mainContent">
8491
+ <div class="${e(valueContainerClasses)}">
8492
+ <label class="${e(this.commonLabelClasses)}">
8493
+ <slot name="label"></slot>
8494
+ </label>
8495
+ <div class="value" id="value"></div>
8496
+ ${this.value ? undefined : u`
8497
+ <div id="placeholder" class="${e(placeholderClass)}">
8498
+ <slot name="placeholder"></slot>
8499
+ </div>
8500
+ `}
8501
+ </div>
8502
+ <div class="${e(displayValueClasses)}" aria-hidden="true" part="displayValue">
8503
+ <slot name="displayValue"></slot>
8504
+ </div>
8505
+ </div>
8506
+ <div class="accents right"></div>
8507
+ </div>
8508
+ <div class="menuWrapper"></div>
8509
+ <${this.bibtemplateTag} ?large="${this.largeFullscreenHeadline}" @close-click="${this.hideBib}">
8510
+ <slot></slot>
8511
+ </${this.bibtemplateTag}>
8512
+ <div slot="helpText">
8513
+ ${this.renderHtmlHelpText()}
8514
+ </div>
8515
+ </${this.dropdownTag}>
8516
+ ${this.renderNativeSelect()}
7457
8517
  </div>
7458
8518
  `;
7459
8519
  }
@@ -7518,7 +8578,7 @@ class AuroSelect extends AuroElement$3 {
7518
8578
  ?autoPlacement="${this.autoPlacement}"
7519
8579
  ?disabled="${this.disabled}"
7520
8580
  ?error="${this.validity !== undefined && this.validity !== 'valid'}"
7521
- ?matchWidth="${!this.flexMenuWidth}"
8581
+ ?matchWidth="${this.matchWidth}"
7522
8582
  ?noFlip="${this.noFlip}"
7523
8583
  ?onDark="${this.onDark}"
7524
8584
  .fullscreenBreakpoint="${this.fullscreenBreakpoint}"
@@ -7588,11 +8648,11 @@ class AuroSelect extends AuroElement$3 {
7588
8648
  }
7589
8649
  }
7590
8650
 
7591
- var styleCss$2 = i$5`: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)}`;
8651
+ var styleCss$2 = i$5`: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)}`;
7592
8652
 
7593
8653
  var colorCss$2 = i$5`: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)}`;
7594
8654
 
7595
- var tokensCss$1 = i$5`: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)}`;
8655
+ var tokensCss$1 = i$5`: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)}`;
7596
8656
 
7597
8657
  // Copyright (c) 2021 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
7598
8658
  // See LICENSE in the project root for license information.
@@ -7658,14 +8718,17 @@ function dispatchMenuEvent(element, eventName, detail = null) {
7658
8718
  * @slot - Slot for insertion of menu options.
7659
8719
  */
7660
8720
 
7661
- /* eslint-disable no-magic-numbers, max-lines, no-extra-parens */
8721
+ /* eslint-disable no-magic-numbers, max-lines, no-extra-parens, no-inline-comments, line-comment-position */
7662
8722
 
7663
- class AuroMenu extends i$2 {
8723
+ class AuroMenu extends AuroElement$4 {
7664
8724
  constructor() {
7665
8725
  super();
7666
8726
 
7667
8727
  // State properties (reactive)
7668
8728
 
8729
+ this.shape = ""; // box, rounded, pill
8730
+ this.size = ""; // md, lg, xl
8731
+
7669
8732
  // Value of the selected options
7670
8733
  this.value = undefined;
7671
8734
  // Currently selected option
@@ -7724,6 +8787,7 @@ class AuroMenu extends i$2 {
7724
8787
 
7725
8788
  static get properties() {
7726
8789
  return {
8790
+ ...super.properties,
7727
8791
  noCheckmark: {
7728
8792
  type: Boolean,
7729
8793
  reflect: true,
@@ -7757,6 +8821,16 @@ class AuroMenu extends i$2 {
7757
8821
  value: {
7758
8822
  // Allow string, string[] arrays and undefined
7759
8823
  type: Object
8824
+ },
8825
+
8826
+ /**
8827
+ * Indent level for submenus.
8828
+ * @private
8829
+ */
8830
+ level: {
8831
+ type: Number,
8832
+ reflect: false,
8833
+ attribute: false
7760
8834
  }
7761
8835
  };
7762
8836
  }
@@ -7778,7 +8852,7 @@ class AuroMenu extends i$2 {
7778
8852
  *
7779
8853
  */
7780
8854
  static register(name = "auro-menu") {
7781
- AuroLibraryRuntimeUtils$5.prototype.registerComponent(name, AuroMenu);
8855
+ AuroLibraryRuntimeUtils$6.prototype.registerComponent(name, AuroMenu);
7782
8856
  }
7783
8857
 
7784
8858
  // Lifecycle Methods
@@ -7802,19 +8876,22 @@ class AuroMenu extends i$2 {
7802
8876
  }
7803
8877
 
7804
8878
  firstUpdated() {
7805
- AuroLibraryRuntimeUtils$5.prototype.handleComponentTagRename(this, 'auro-menu');
8879
+ AuroLibraryRuntimeUtils$6.prototype.handleComponentTagRename(this, 'auro-menu');
7806
8880
 
7807
8881
  this.loadingSlots = this.querySelectorAll("[slot='loadingText'], [slot='loadingIcon']");
7808
8882
  this.initializeMenu();
7809
8883
  }
7810
8884
 
7811
8885
  updated(changedProperties) {
8886
+ super.updated(changedProperties);
8887
+
7812
8888
  if (changedProperties.has('multiSelect')) {
7813
8889
  // Reset selection if multiSelect mode changes
7814
8890
  this.clearSelection();
7815
8891
  }
7816
8892
 
7817
- if (changedProperties.has('value')) {
8893
+
8894
+ if (changedProperties.has("value")) {
7818
8895
  // Handle null/undefined case
7819
8896
  if (this.value === undefined || this.value === null) {
7820
8897
  this.optionSelected = undefined;
@@ -7882,6 +8959,19 @@ class AuroMenu extends i$2 {
7882
8959
  this.querySelectorAll('auro-menu, [auro-menu], auro-menuoption, [auro-menuoption]').forEach((element) => element.setAttribute('noCheckmark', ''));
7883
8960
  }
7884
8961
 
8962
+ // Handle layout propagation to all menus and options
8963
+ const propagationTargets = this.querySelectorAll('auro-menu, [auro-menu], auro-menuoption, [auro-menuoption]');
8964
+ [
8965
+ 'size',
8966
+ 'shape'
8967
+ ].forEach((prop) => {
8968
+ if (changedProperties.has(prop)) {
8969
+ propagationTargets.forEach((el) => {
8970
+ el.setAttribute(prop, this[prop]);
8971
+ });
8972
+ }
8973
+ });
8974
+
7885
8975
  // Regex for matchWord if needed
7886
8976
  let regexWord = null;
7887
8977
 
@@ -8078,21 +9168,20 @@ class AuroMenu extends i$2 {
8078
9168
  * @param {HTMLElement} menu - Root menu element.
8079
9169
  */
8080
9170
  handleNestedMenus(menu) {
8081
- const nestedMenus = menu.querySelectorAll('auro-menu, [auro-menu]');
9171
+ menu.level = menu.parentElement.level >= 0 ? menu.parentElement.level + 1 : 0;
8082
9172
 
8083
- nestedMenus.forEach((nestedMenu) => {
8084
- // role="listbox" only allows "role=group" for children.
8085
- nestedMenu.setAttribute('role', 'group');
8086
- if (!nestedMenu.hasAttribute('aria-label')) {
8087
- nestedMenu.setAttribute('aria-label', 'submenu');
9173
+ if (menu.level > 0) {
9174
+ menu.setAttribute('role', 'group');
9175
+ menu.removeAttribute("root");
9176
+ if (!menu.hasAttribute('aria-label')) {
9177
+ menu.setAttribute('aria-label', 'submenu');
8088
9178
  }
9179
+ }
8089
9180
 
8090
- const options = nestedMenu.querySelectorAll(':scope > auro-menuoption, :scope > [auro-menuoption]');
8091
- options.forEach((option) => {
8092
- option.innerHTML = this.nestingSpacer + option.innerHTML;
8093
- });
8094
-
8095
- this.handleNestedMenus(nestedMenu);
9181
+ const options = menu.querySelectorAll(':scope > auro-menuoption, :scope > [auro-menuoption]');
9182
+ options.forEach((option) => {
9183
+ const regex = new RegExp(this.nestingSpacer, "gu");
9184
+ option.innerHTML = this.nestingSpacer.repeat(menu.level) + option.innerHTML.replace(regex, '');
8096
9185
  });
8097
9186
  }
8098
9187
 
@@ -8334,28 +9423,39 @@ class AuroMenu extends i$2 {
8334
9423
  }
8335
9424
 
8336
9425
  /**
8337
- * Renders the component.
8338
- * @returns {boolean} - True if loading slots are present and non-empty.
9426
+ * Logic to determine the layout of the component.
9427
+ * @protected
9428
+ * @returns {void}
8339
9429
  */
8340
- render() {
9430
+ renderLayout() {
8341
9431
  if (this.loading) {
8342
9432
  return x`
8343
- <auro-menuoption disabled loadingplaceholder class="${this.hasLoadingPlaceholder ? '' : 'empty'}">
8344
- <div>
8345
- <slot name="loadingIcon"></slot>
8346
- <slot name="loadingText"></slot>
8347
- </div>
8348
- </auro-menuoption>
9433
+ <div class="wrapper">
9434
+ <auro-menuoption
9435
+ disabled
9436
+ loadingplaceholder
9437
+ class="${this.hasLoadingPlaceholder ? "" : "empty"}"
9438
+ >
9439
+ <div>
9440
+ <slot name="loadingIcon"></slot>
9441
+ <slot name="loadingText"></slot>
9442
+ </div>
9443
+ </auro-menuoption>
9444
+ </div>
8349
9445
  `;
8350
9446
  }
8351
9447
 
8352
- return x`<slot @slotchange=${this.handleSlotChange}></slot>`;
9448
+ return x`
9449
+ <div class="wrapper">
9450
+ <slot @slotchange=${this.handleSlotChange}></slot>
9451
+ </div>
9452
+ `;
8353
9453
  }
8354
9454
  }
8355
9455
 
8356
- var styleCss$1 = i$5`: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}`;
9456
+ var styleCss$1 = i$5`: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);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);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}`;
8357
9457
 
8358
- var colorCss$1 = i$5`: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)}`;
9458
+ var colorCss$1 = i$5`: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)}`;
8359
9459
 
8360
9460
  // Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
8361
9461
  // See LICENSE in the project root for license information.
@@ -8703,8 +9803,12 @@ class AuroIcon extends BaseIcon {
8703
9803
  async firstUpdated() {
8704
9804
  await super.firstUpdated();
8705
9805
 
8706
- // Removes the SVG description for screenreader if ariaHidden is set to true
8707
- if (!this.hasAttribute('ariaHidden') && this.svg) {
9806
+ /**
9807
+ * icons provide a description for screen readers. Icon only instances Auro-button
9808
+ * depend on this description to provide context for the user using a screen reader.
9809
+ * Removes the SVG description for screen reader if ariaHidden is set to true.
9810
+ */
9811
+ if (this.hasAttribute('ariaHidden') && this.svg) {
8708
9812
  const svgDesc = this.svg.querySelector('desc');
8709
9813
 
8710
9814
  if (svgDesc) {
@@ -8748,7 +9852,7 @@ class AuroIcon extends BaseIcon {
8748
9852
  }
8749
9853
  }
8750
9854
 
8751
- var iconVersion = '8.0.3';
9855
+ var iconVersion = '8.0.4';
8752
9856
 
8753
9857
  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>"};
8754
9858
 
@@ -8766,10 +9870,13 @@ var checkmarkIcon = {"svg":"<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlin
8766
9870
  * @event auroMenuOption-mouseover - Notifies that this option has been hovered over.
8767
9871
  * @slot - Specifies text for an option, but is not the value.
8768
9872
  */
8769
- class AuroMenuOption extends i$2 {
9873
+ class AuroMenuOption extends AuroElement$4 {
8770
9874
  constructor() {
8771
9875
  super();
8772
9876
 
9877
+ this.size = ""; // md, lg, xl
9878
+ this.shape = ""; // box, rounded, pill
9879
+
8773
9880
  /**
8774
9881
  * Generate unique names for dependency components.
8775
9882
  */
@@ -8788,11 +9895,12 @@ class AuroMenuOption extends i$2 {
8788
9895
  /**
8789
9896
  * @private
8790
9897
  */
8791
- this.runtimeUtils = new AuroLibraryRuntimeUtils$5();
9898
+ this.runtimeUtils = new AuroLibraryRuntimeUtils$6();
8792
9899
  }
8793
9900
 
8794
9901
  static get properties() {
8795
9902
  return {
9903
+ ...super.properties,
8796
9904
  nocheckmark: {
8797
9905
  type: Boolean,
8798
9906
  reflect: true
@@ -8832,7 +9940,7 @@ class AuroMenuOption extends i$2 {
8832
9940
  *
8833
9941
  */
8834
9942
  static register(name = "auro-menuoption") {
8835
- AuroLibraryRuntimeUtils$5.prototype.registerComponent(name, AuroMenuOption);
9943
+ AuroLibraryRuntimeUtils$6.prototype.registerComponent(name, AuroMenuOption);
8836
9944
  }
8837
9945
 
8838
9946
  firstUpdated() {
@@ -8854,6 +9962,8 @@ class AuroMenuOption extends i$2 {
8854
9962
 
8855
9963
  // observer for selected property changes
8856
9964
  updated(changedProperties) {
9965
+ super.updated(changedProperties);
9966
+
8857
9967
  if (changedProperties.has('selected')) {
8858
9968
  this.setAttribute('aria-selected', this.selected.toString());
8859
9969
  }
@@ -8875,10 +9985,19 @@ class AuroMenuOption extends i$2 {
8875
9985
  return u`<${this.iconTag} customColor customSvg slot="icon">${svg}</${this.iconTag}>`;
8876
9986
  }
8877
9987
 
8878
- render() {
9988
+ /**
9989
+ * Logic to determine the layout of the component.
9990
+ * @protected
9991
+ * @returns {void}
9992
+ */
9993
+ renderLayout() {
8879
9994
  return u`
8880
- ${this.selected && !this.nocheckmark ? this.generateIconHtml(checkmarkIcon.svg) : undefined}
8881
- <slot></slot>
9995
+ <div class="wrapper">
9996
+ ${this.selected && !this.nocheckmark
9997
+ ? this.generateIconHtml(checkmarkIcon.svg)
9998
+ : undefined}
9999
+ <slot></slot>
10000
+ </div>
8882
10001
  `;
8883
10002
  }
8884
10003
  }