@aurodesignsystem-dev/auro-formkit 0.0.0-pr624.7 → 0.0.0-pr624.70

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 (138) 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 +1262 -81
  5. package/components/bibtemplate/dist/registered.js +1262 -81
  6. package/components/checkbox/README.md +1 -1
  7. package/components/checkbox/demo/api.html +16 -10
  8. package/components/checkbox/demo/api.md +47 -14
  9. package/components/checkbox/demo/api.min.js +65 -42
  10. package/components/checkbox/demo/index.html +16 -10
  11. package/components/checkbox/demo/index.md +2 -2
  12. package/components/checkbox/demo/index.min.js +65 -42
  13. package/components/checkbox/demo/readme.html +16 -9
  14. package/components/checkbox/demo/readme.md +1 -1
  15. package/components/checkbox/dist/auro-checkbox-group.d.ts +1 -1
  16. package/components/checkbox/dist/auro-checkbox.d.ts +3 -3
  17. package/components/checkbox/dist/index.js +65 -42
  18. package/components/checkbox/dist/registered.js +65 -42
  19. package/components/combobox/demo/api.html +16 -10
  20. package/components/combobox/demo/api.md +113 -8
  21. package/components/combobox/demo/api.min.js +3096 -870
  22. package/components/combobox/demo/index.html +16 -10
  23. package/components/combobox/demo/index.md +6 -30
  24. package/components/combobox/demo/index.min.js +3096 -870
  25. package/components/combobox/demo/readme.html +16 -9
  26. package/components/combobox/dist/auro-combobox.d.ts +42 -8
  27. package/components/combobox/dist/index.js +2878 -748
  28. package/components/combobox/dist/registered.js +2878 -748
  29. package/components/counter/demo/api.html +17 -10
  30. package/components/counter/demo/api.md +156 -21
  31. package/components/counter/demo/api.min.js +3363 -652
  32. package/components/counter/demo/index.html +17 -10
  33. package/components/counter/demo/index.md +185 -34
  34. package/components/counter/demo/index.min.js +3363 -652
  35. package/components/counter/demo/readme.html +16 -9
  36. package/components/counter/dist/auro-counter-button.d.ts +2 -0
  37. package/components/counter/dist/auro-counter-group.d.ts +151 -11
  38. package/components/counter/dist/auro-counter.d.ts +16 -0
  39. package/components/counter/dist/helptextVersion.d.ts +2 -0
  40. package/components/counter/dist/iconVersion.d.ts +1 -1
  41. package/components/counter/dist/index.js +3364 -653
  42. package/components/counter/dist/registered.js +3364 -653
  43. package/components/datepicker/demo/api.html +16 -10
  44. package/components/datepicker/demo/api.md +25 -16
  45. package/components/datepicker/demo/api.min.js +11857 -8105
  46. package/components/datepicker/demo/index.html +16 -10
  47. package/components/datepicker/demo/index.md +71 -4
  48. package/components/datepicker/demo/index.min.js +11857 -8105
  49. package/components/datepicker/demo/readme.html +16 -9
  50. package/components/datepicker/dist/auro-datepicker.d.ts +89 -11
  51. package/components/datepicker/dist/buttonVersion.d.ts +1 -1
  52. package/components/datepicker/dist/iconVersion.d.ts +2 -0
  53. package/components/datepicker/dist/index.js +8691 -4939
  54. package/components/datepicker/dist/popoverVersion.d.ts +1 -1
  55. package/components/datepicker/dist/registered.js +8691 -4939
  56. package/components/dropdown/demo/api.html +16 -10
  57. package/components/dropdown/demo/api.md +81 -274
  58. package/components/dropdown/demo/api.min.js +429 -195
  59. package/components/dropdown/demo/index.html +16 -10
  60. package/components/dropdown/demo/index.md +92 -362
  61. package/components/dropdown/demo/index.min.js +429 -195
  62. package/components/dropdown/demo/readme.html +16 -9
  63. package/components/dropdown/dist/auro-dropdown.d.ts +41 -76
  64. package/components/dropdown/dist/auro-dropdownBib.d.ts +14 -0
  65. package/components/dropdown/dist/index.js +429 -195
  66. package/components/dropdown/dist/registered.js +429 -195
  67. package/components/form/demo/api.html +16 -9
  68. package/components/form/demo/api.min.js +1 -1
  69. package/components/form/demo/autocomplete.html +19 -3
  70. package/components/form/demo/index.html +16 -9
  71. package/components/form/demo/index.min.js +1 -1
  72. package/components/form/demo/readme.html +16 -9
  73. package/components/form/demo/working.html +19 -13
  74. package/components/form/dist/index.js +1 -1
  75. package/components/form/dist/registered.js +1 -1
  76. package/components/helptext/dist/index.js +2 -2
  77. package/components/helptext/dist/registered.js +2 -2
  78. package/components/input/README.md +5 -2
  79. package/components/input/demo/api.html +16 -10
  80. package/components/input/demo/api.md +228 -130
  81. package/components/input/demo/api.min.js +908 -246
  82. package/components/input/demo/index.html +16 -10
  83. package/components/input/demo/index.md +48 -32
  84. package/components/input/demo/index.min.js +908 -246
  85. package/components/input/demo/readme.html +16 -9
  86. package/components/input/demo/readme.md +5 -2
  87. package/components/input/dist/auro-input.d.ts +3 -3
  88. package/components/input/dist/base-input.d.ts +38 -10
  89. package/components/input/dist/buttonVersion.d.ts +1 -1
  90. package/components/input/dist/iconVersion.d.ts +1 -1
  91. package/components/input/dist/index.js +908 -246
  92. package/components/input/dist/registered.js +908 -246
  93. package/components/layoutElement/dist/index.js +13 -10
  94. package/components/menu/demo/api.html +32 -10
  95. package/components/menu/demo/api.md +69 -8
  96. package/components/menu/demo/api.min.js +238 -47
  97. package/components/menu/demo/index.html +16 -10
  98. package/components/menu/demo/index.min.js +238 -47
  99. package/components/menu/demo/readme.html +16 -9
  100. package/components/menu/dist/auro-menu.d.ts +41 -7
  101. package/components/menu/dist/auro-menuoption.d.ts +15 -3
  102. package/components/menu/dist/iconVersion.d.ts +1 -1
  103. package/components/menu/dist/index.js +238 -47
  104. package/components/menu/dist/registered.js +238 -47
  105. package/components/menu/dist/styles/default/style-menuoption-css.d.ts +2 -0
  106. package/components/menu/dist/styles/default/tokens-css.d.ts +2 -0
  107. package/components/radio/demo/api.html +16 -10
  108. package/components/radio/demo/api.md +7 -8
  109. package/components/radio/demo/api.min.js +88 -90
  110. package/components/radio/demo/index.html +16 -10
  111. package/components/radio/demo/index.min.js +88 -90
  112. package/components/radio/demo/readme.html +16 -9
  113. package/components/radio/dist/auro-radio-group.d.ts +1 -1
  114. package/components/radio/dist/auro-radio.d.ts +9 -12
  115. package/components/radio/dist/index.js +88 -90
  116. package/components/radio/dist/registered.js +88 -90
  117. package/components/select/demo/api.html +16 -10
  118. package/components/select/demo/api.js +0 -2
  119. package/components/select/demo/api.md +104 -57
  120. package/components/select/demo/api.min.js +2148 -635
  121. package/components/select/demo/index.html +17 -11
  122. package/components/select/demo/index.md +45 -158
  123. package/components/select/demo/index.min.js +2148 -623
  124. package/components/select/demo/readme.html +16 -9
  125. package/components/select/dist/auro-select.d.ts +49 -16
  126. package/components/select/dist/index.js +2078 -649
  127. package/components/select/dist/registered.js +2078 -649
  128. package/package.json +30 -27
  129. /package/components/{datepicker/dist/styles/emphasized/style-css.d.ts → counter/dist/styles/shapeSize-css.d.ts} +0 -0
  130. /package/components/{dropdown/dist/styles/default → datepicker/dist/styles/snowflake}/color-css.d.ts +0 -0
  131. /package/components/{dropdown/dist/styles/default → datepicker/dist/styles/snowflake}/style-css.d.ts +0 -0
  132. /package/components/dropdown/dist/styles/{default → classic}/bibColors-css.d.ts +0 -0
  133. /package/components/dropdown/dist/styles/{default → classic}/bibStyles-css.d.ts +0 -0
  134. /package/components/{menu/dist/styles/color-menu-css.d.ts → dropdown/dist/styles/classic/color-css.d.ts} +0 -0
  135. /package/components/{menu/dist/styles/color-menuoption-css.d.ts → dropdown/dist/styles/classic/style-css.d.ts} +0 -0
  136. /package/components/menu/dist/styles/{style-menu-css.d.ts → default/color-menu-css.d.ts} +0 -0
  137. /package/components/menu/dist/styles/{style-menuoption-css.d.ts → default/color-menuoption-css.d.ts} +0 -0
  138. /package/components/menu/dist/styles/{tokens-css.d.ts → default/style-menu-css.d.ts} +0 -0
@@ -90,17 +90,6 @@ function auroMenuLoadingExample() {
90
90
  });
91
91
  }
92
92
 
93
- function valueTextExample() {
94
- const onValueTextSelectInput = (e) => {
95
- const valueText = e.target.querySelector("[slot=valueText]");
96
-
97
- valueText.textContent = e.detail.optionSelected.dataset.display;
98
- };
99
-
100
- const select = document.querySelector("#valueTextExample");
101
- select.addEventListener('input', onValueTextSelectInput);
102
- }
103
-
104
93
  /**
105
94
  * @license
106
95
  * Copyright 2019 Google LLC
@@ -147,7 +136,7 @@ const t={ATTRIBUTE:1},e$1=t=>(...e)=>({_$litDirective$:t,values:e});let i$1 = cl
147
136
  */
148
137
  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);
149
138
 
150
- let AuroElement$3 = class AuroElement extends i$2 {
139
+ let AuroElement$4 = class AuroElement extends i$2 {
151
140
  static get properties() {
152
141
  return {
153
142
 
@@ -182,18 +171,21 @@ let AuroElement$3 = class AuroElement extends i$2 {
182
171
  }
183
172
 
184
173
  resetShapeClasses() {
185
- if (this.shape && this.size) {
186
- const wrapper = this.shadowRoot.querySelector('.wrapper');
174
+ const wrapper = this.shadowRoot.querySelector('.wrapper');
187
175
 
188
- if (wrapper) {
189
- wrapper.classList.forEach((className) => {
190
- if (className.startsWith('shape-')) {
191
- wrapper.classList.remove(className);
192
- }
193
- });
176
+ if (wrapper) {
177
+ wrapper.classList.forEach((className) => {
178
+ if (className.startsWith('shape-')) {
179
+ wrapper.classList.remove(className);
180
+ }
181
+ });
194
182
 
195
- wrapper.classList.add(`shape-${this.shape.toLowerCase()}-${this.size.toLowerCase()}`);
196
- }
183
+ }
184
+
185
+ if (this.shape && this.size) {
186
+ wrapper.classList.add(`shape-${this.shape.toLowerCase()}-${this.size.toLowerCase()}`);
187
+ } else {
188
+ wrapper.classList.add('shape-none');
197
189
  }
198
190
  }
199
191
 
@@ -239,9 +231,9 @@ let AuroElement$3 = class AuroElement extends i$2 {
239
231
  }
240
232
  };
241
233
 
242
- 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}`;
234
+ 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}`;
243
235
 
244
- 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}`;
236
+ 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-basic-color-status-error-subtle, #fbc6c6);--ds-auro-select-outline-color: transparent}`;
245
237
 
246
238
  class DateFormatter {
247
239
 
@@ -659,7 +651,7 @@ const {
659
651
 
660
652
  /* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
661
653
 
662
- let AuroLibraryRuntimeUtils$4 = class AuroLibraryRuntimeUtils {
654
+ let AuroLibraryRuntimeUtils$6 = class AuroLibraryRuntimeUtils {
663
655
 
664
656
  /* eslint-disable jsdoc/require-param */
665
657
 
@@ -729,7 +721,7 @@ let AuroLibraryRuntimeUtils$4 = class AuroLibraryRuntimeUtils {
729
721
  class AuroFormValidation {
730
722
 
731
723
  constructor() {
732
- this.runtimeUtils = new AuroLibraryRuntimeUtils$4();
724
+ this.runtimeUtils = new AuroLibraryRuntimeUtils$6();
733
725
  }
734
726
 
735
727
  /**
@@ -789,19 +781,19 @@ class AuroFormValidation {
789
781
  {
790
782
  check: (e) => e.value?.length > 0 && e.value?.length < e.minLength,
791
783
  validity: 'tooShort',
792
- message: e => e.setCustomValidityTooShort || e.setCustomValidity || ''
784
+ message: e => e.getAttribute('setCustomValidityTooShort') || e.setCustomValidity || ''
793
785
  },
794
786
  {
795
787
  check: (e) => e.value?.length > e.maxLength,
796
788
  validity: 'tooLong',
797
- message: e => e.setCustomValidityTooLong || e.setCustomValidity || ''
789
+ message: e => e.getAttribute('setCustomValidityTooLong') || e.setCustomValidity || ''
798
790
  }
799
791
  ],
800
792
  pattern: [
801
793
  {
802
794
  check: (e) => e.pattern && !new RegExp(`^${e.pattern}$`, 'u').test(e.value),
803
795
  validity: 'patternMismatch',
804
- message: e => e.setCustomValidityPatternMismatch || e.setCustomValidity || ''
796
+ message: e => e.getAttribute('setCustomValidityPatternMismatch') || e.setCustomValidity || ''
805
797
  }
806
798
  ]
807
799
  },
@@ -948,13 +940,24 @@ class AuroFormValidation {
948
940
  this.getInputElements(elem);
949
941
  this.getAuroInputs(elem);
950
942
 
951
- // Validate only if noValidate is not true and the input does not have focus
943
+ // Check if validation should run
952
944
  let validationShouldRun =
945
+
946
+ // If the validation was forced
953
947
  force ||
954
- (!elem.contains(document.activeElement) &&
955
- (elem.touched ||
956
- (!elem.touched && typeof elem.value !== "undefined"))) ||
957
- elem.validateOnInput;
948
+
949
+ // If the validation should run on input
950
+ elem.validateOnInput ||
951
+
952
+ // State-based checks
953
+ (
954
+ // Element is not currently focused
955
+ !elem.contains(document.activeElement) && // native input is not focused directly
956
+ !document.activeElement.shadowRoot?.contains(elem) && // native input is not focused in the shadow DOM of another component
957
+
958
+ // And element has been touched or is untouched but has a value
959
+ ( elem.touched || (!elem.touched && typeof elem.value !== "undefined") )
960
+ );
958
961
 
959
962
  if (elem.hasAttribute('error')) {
960
963
  elem.validity = 'customError';
@@ -996,10 +999,10 @@ class AuroFormValidation {
996
999
  if (!hasValue && elem.required && elem.touched) {
997
1000
  elem.validity = 'valueMissing';
998
1001
  elem.errorMessage = elem.setCustomValidityValueMissing || elem.setCustomValidity || '';
999
- } else if (this.runtimeUtils.elementMatch(elem, 'auro-input')) {
1002
+ } else if (hasValue && this.runtimeUtils.elementMatch(elem, 'auro-input')) {
1000
1003
  this.validateType(elem);
1001
1004
  this.validateElementAttributes(elem);
1002
- } else if (this.runtimeUtils.elementMatch(elem, 'auro-counter') || this.runtimeUtils.elementMatch(elem, 'auro-counter-group')) {
1005
+ } else if (hasValue && (this.runtimeUtils.elementMatch(elem, 'auro-counter') || this.runtimeUtils.elementMatch(elem, 'auro-counter-group'))) {
1003
1006
  this.validateElementAttributes(elem);
1004
1007
  }
1005
1008
  }
@@ -1008,7 +1011,9 @@ class AuroFormValidation {
1008
1011
  elem.validity = this.auroInputElements[0].validity;
1009
1012
  elem.errorMessage = this.auroInputElements[0].errorMessage;
1010
1013
 
1011
- if (elem.validity === 'valid' && this.auroInputElements.length > 1) {
1014
+ // combobox has 2 inputs but no need to check validity on the 2nd one which is in fullscreen bib.
1015
+ // combobox's 2nd input will have noValidate set true.
1016
+ if (elem.validity === 'valid' && this.auroInputElements.length > 1 && !this.auroInputElements[1].noValidate) {
1012
1017
  elem.validity = this.auroInputElements[1].validity;
1013
1018
  elem.errorMessage = this.auroInputElements[1].errorMessage;
1014
1019
  }
@@ -2820,7 +2825,7 @@ class AuroFloatingUI {
2820
2825
  */
2821
2826
  mirrorSize() {
2822
2827
  // mirror the boxsize from bibSizer
2823
- if (this.element.bibSizer) {
2828
+ if (this.element.bibSizer && this.element.matchWidth) {
2824
2829
  const sizerStyle = window.getComputedStyle(this.element.bibSizer);
2825
2830
  const bibContent = this.element.bib.shadowRoot.querySelector(".container");
2826
2831
  if (sizerStyle.width !== '0px') {
@@ -3032,13 +3037,13 @@ class AuroFloatingUI {
3032
3037
  if (this.element.contains(activeElement) || this.element.bib?.contains(activeElement)) {
3033
3038
  return;
3034
3039
  }
3035
-
3040
+
3036
3041
  // if fullscreen bib is in fullscreen mode, do not close
3037
3042
  if (this.element.bib.hasAttribute('isfullscreen')) {
3038
3043
  return;
3039
3044
  }
3040
3045
 
3041
- this.hideBib();
3046
+ this.hideBib("keydown");
3042
3047
  }
3043
3048
 
3044
3049
  setupHideHandlers() {
@@ -3063,7 +3068,7 @@ class AuroFloatingUI {
3063
3068
  document.expandedAuroFormkitDropdown = null;
3064
3069
  document.expandedAuroFloater = this;
3065
3070
  } else {
3066
- this.hideBib();
3071
+ this.hideBib("click");
3067
3072
  }
3068
3073
  }
3069
3074
  };
@@ -3076,7 +3081,7 @@ class AuroFloatingUI {
3076
3081
  // if something else is open, let it handle itself
3077
3082
  return;
3078
3083
  }
3079
- this.hideBib();
3084
+ this.hideBib("keydown");
3080
3085
  }
3081
3086
  };
3082
3087
 
@@ -3159,7 +3164,11 @@ class AuroFloatingUI {
3159
3164
  }
3160
3165
  }
3161
3166
 
3162
- hideBib() {
3167
+ /**
3168
+ * Hides the floating UI element.
3169
+ * @param {String} eventType - The event type that triggered the hiding action.
3170
+ */
3171
+ hideBib(eventType = "unknown") {
3163
3172
  if (!this.element.disabled && !this.element.noToggle) {
3164
3173
  this.lockScroll(false);
3165
3174
  this.element.triggerChevron?.removeAttribute('data-expanded');
@@ -3170,7 +3179,7 @@ class AuroFloatingUI {
3170
3179
  if (this.showing) {
3171
3180
  this.cleanupHideHandlers();
3172
3181
  this.showing = false;
3173
- this.dispatchEventDropdownToggle();
3182
+ this.dispatchEventDropdownToggle(eventType);
3174
3183
  }
3175
3184
  }
3176
3185
  document.expandedAuroFloater = null;
@@ -3179,11 +3188,13 @@ class AuroFloatingUI {
3179
3188
  /**
3180
3189
  * @private
3181
3190
  * @returns {void} Dispatches event with an object showing the state of the dropdown.
3191
+ * @param {String} eventType - The event type that triggered the toggle action.
3182
3192
  */
3183
- dispatchEventDropdownToggle() {
3193
+ dispatchEventDropdownToggle(eventType) {
3184
3194
  const event = new CustomEvent(this.eventPrefix ? `${this.eventPrefix}-toggled` : 'toggled', {
3185
3195
  detail: {
3186
3196
  expanded: this.showing,
3197
+ eventType: eventType || "unknown",
3187
3198
  },
3188
3199
  composed: true
3189
3200
  });
@@ -3193,7 +3204,7 @@ class AuroFloatingUI {
3193
3204
 
3194
3205
  handleClick() {
3195
3206
  if (this.element.isPopoverVisible) {
3196
- this.hideBib();
3207
+ this.hideBib("click");
3197
3208
  } else {
3198
3209
  this.showBib();
3199
3210
  }
@@ -3216,8 +3227,9 @@ class AuroFloatingUI {
3216
3227
  // Space is included as it's expected behavior for interactive elements
3217
3228
 
3218
3229
  const origin = event.composedPath()[0];
3219
- if (event.key === 'Enter' || ((!origin || origin.tagName !== "INPUT") && event.key === ' ')) {
3220
- event.preventDefault(); // Prevent page scroll on space
3230
+ if (event.key === 'Enter' || event.key === ' ' && (!origin || origin.tagName !== "INPUT")) {
3231
+
3232
+ event.preventDefault();
3221
3233
  this.handleClick();
3222
3234
  }
3223
3235
  break;
@@ -3228,7 +3240,7 @@ class AuroFloatingUI {
3228
3240
  break;
3229
3241
  case 'mouseleave':
3230
3242
  if (this.element.hoverToggle) {
3231
- this.hideBib();
3243
+ this.hideBib("mouseleave");
3232
3244
  }
3233
3245
  break;
3234
3246
  case 'focus':
@@ -3371,6 +3383,267 @@ class AuroFloatingUI {
3371
3383
  }
3372
3384
  }
3373
3385
 
3386
+ // Selectors for focusable elements
3387
+ const FOCUSABLE_SELECTORS = [
3388
+ 'a[href]',
3389
+ 'button:not([disabled])',
3390
+ 'textarea:not([disabled])',
3391
+ 'input:not([disabled])',
3392
+ 'select:not([disabled])',
3393
+ '[role="tab"]:not([disabled])',
3394
+ '[role="link"]:not([disabled])',
3395
+ '[role="button"]:not([disabled])',
3396
+ '[tabindex]:not([tabindex="-1"])',
3397
+ '[contenteditable]:not([contenteditable="false"])'
3398
+ ];
3399
+
3400
+ // List of custom components that are known to be focusable
3401
+ const FOCUSABLE_COMPONENTS = [
3402
+ 'auro-checkbox',
3403
+ 'auro-radio',
3404
+ 'auro-dropdown',
3405
+ 'auro-button',
3406
+ 'auro-combobox',
3407
+ 'auro-input',
3408
+ 'auro-counter',
3409
+ 'auro-menu',
3410
+ 'auro-select',
3411
+ 'auro-datepicker',
3412
+ 'auro-hyperlink',
3413
+ 'auro-accordion',
3414
+ ];
3415
+
3416
+ /**
3417
+ * Determines if a given element is a custom focusable component.
3418
+ * Returns true if the element matches a known focusable component and is not disabled.
3419
+ *
3420
+ * @param {HTMLElement} element The element to check for focusability.
3421
+ * @returns {boolean} True if the element is a focusable custom component, false otherwise.
3422
+ */
3423
+ function isFocusableComponent(element) {
3424
+ const componentName = element.tagName.toLowerCase();
3425
+
3426
+ // Guard Clause: Element is a focusable component
3427
+ if (!FOCUSABLE_COMPONENTS.some((name) => element.hasAttribute(name) || componentName === name)) return false;
3428
+
3429
+ // Guard Clause: Element is not disabled
3430
+ if (element.hasAttribute('disabled')) return false;
3431
+
3432
+ // Guard Clause: The element is a hyperlink and has no href attribute
3433
+ if (componentName.match("hyperlink") && !element.hasAttribute('href')) return false;
3434
+
3435
+ // If all guard clauses pass, the element is a focusable component
3436
+ return true;
3437
+ }
3438
+
3439
+ /**
3440
+ * Retrieves all focusable elements within the container in DOM order, including those in shadow DOM and slots.
3441
+ * Returns a unique, ordered array of elements that can receive focus.
3442
+ *
3443
+ * @param {HTMLElement} container The container to search within
3444
+ * @returns {Array<HTMLElement>} An array of focusable elements within the container.
3445
+ */
3446
+ function getFocusableElements(container) {
3447
+ // Get elements in DOM order by walking the tree
3448
+ const orderedFocusableElements = [];
3449
+
3450
+ // Define a recursive function to collect focusable elements in DOM order
3451
+ const collectFocusableElements = (root) => {
3452
+ // Check if current element is focusable
3453
+ if (root.nodeType === Node.ELEMENT_NODE) {
3454
+ // Check if this is a custom component that is focusable
3455
+ const isComponentFocusable = isFocusableComponent(root);
3456
+
3457
+ if (isComponentFocusable) {
3458
+ // Add the component itself as a focusable element and don't traverse its shadow DOM
3459
+ orderedFocusableElements.push(root);
3460
+ return; // Skip traversing inside this component
3461
+ }
3462
+
3463
+ // Check if the element itself matches any selector
3464
+ for (const selector of FOCUSABLE_SELECTORS) {
3465
+ if (root.matches?.(selector)) {
3466
+ orderedFocusableElements.push(root);
3467
+ break; // Once we know it's focusable, no need to check other selectors
3468
+ }
3469
+ }
3470
+
3471
+ // Process shadow DOM only for non-Auro components
3472
+ if (root.shadowRoot) {
3473
+ // Process shadow DOM children in order
3474
+ if (root.shadowRoot.children) {
3475
+ Array.from(root.shadowRoot.children).forEach(child => {
3476
+ collectFocusableElements(child);
3477
+ });
3478
+ }
3479
+ }
3480
+
3481
+ // Process slots and their assigned nodes in order
3482
+ if (root.tagName === 'SLOT') {
3483
+ const assignedNodes = root.assignedNodes({ flatten: true });
3484
+ for (const node of assignedNodes) {
3485
+ collectFocusableElements(node);
3486
+ }
3487
+ } else {
3488
+ // Process light DOM children in order
3489
+ if (root.children) {
3490
+ Array.from(root.children).forEach(child => {
3491
+ collectFocusableElements(child);
3492
+ });
3493
+ }
3494
+ }
3495
+ }
3496
+ };
3497
+
3498
+ // Start the traversal from the container
3499
+ collectFocusableElements(container);
3500
+
3501
+ // Remove duplicates that might have been collected through different paths
3502
+ // while preserving order
3503
+ const uniqueElements = [];
3504
+ const seen = new Set();
3505
+
3506
+ for (const element of orderedFocusableElements) {
3507
+ if (!seen.has(element)) {
3508
+ seen.add(element);
3509
+ uniqueElements.push(element);
3510
+ }
3511
+ }
3512
+
3513
+ return uniqueElements;
3514
+ }
3515
+
3516
+ /**
3517
+ * FocusTrap manages keyboard focus within a specified container element, ensuring that focus does not leave the container when tabbing.
3518
+ * It is commonly used for modal dialogs or overlays to improve accessibility by trapping focus within interactive UI components.
3519
+ */
3520
+ class FocusTrap {
3521
+ /**
3522
+ * Creates a new FocusTrap instance for the given container element.
3523
+ * Initializes event listeners and prepares the container for focus management.
3524
+ *
3525
+ * @param {HTMLElement} container The DOM element to trap focus within.
3526
+ * @throws {Error} If the provided container is not a valid HTMLElement.
3527
+ */
3528
+ constructor(container) {
3529
+ if (!container || !(container instanceof HTMLElement)) {
3530
+ throw new Error("FocusTrap requires a valid HTMLElement.");
3531
+ }
3532
+
3533
+ this.container = container;
3534
+ this.tabDirection = 'forward'; // or 'backward'
3535
+
3536
+ this._init();
3537
+ }
3538
+
3539
+ /**
3540
+ * Initializes the focus trap by setting up event listeners and attributes on the container.
3541
+ * Prepares the container for focus management, including support for shadow DOM and inert attributes.
3542
+ *
3543
+ * @private
3544
+ */
3545
+ _init() {
3546
+
3547
+ // Add inert attribute to prevent focusing programmatically as well (if supported)
3548
+ if ('inert' in HTMLElement.prototype) {
3549
+ this.container.inert = false; // Ensure the container isn't inert
3550
+ this.container.setAttribute('data-focus-trap-container', true); // Mark for identification
3551
+ }
3552
+
3553
+ // Track tab direction
3554
+ this.container.addEventListener('keydown', this._onKeydown);
3555
+ }
3556
+
3557
+ /**
3558
+ * Handles keydown events to manage tab navigation within the container.
3559
+ * Ensures that focus wraps around when reaching the first or last focusable element.
3560
+ *
3561
+ * @param {KeyboardEvent} e The keyboard event triggered by user interaction.
3562
+ * @private
3563
+ */
3564
+ _onKeydown = (e) => {
3565
+
3566
+ if (e.key === 'Tab') {
3567
+
3568
+ // Set the tab direction based on the key pressed
3569
+ this.tabDirection = e.shiftKey ? 'backward' : 'forward';
3570
+
3571
+ // Get the active element(s) in the document and shadow root
3572
+ // This will include the active element in the shadow DOM if it exists
3573
+ // Active element may be inside the shadow DOM depending on delegatesFocus, so we need to check both
3574
+ let activeElement = document.activeElement;
3575
+ const actives = [activeElement];
3576
+ while (activeElement?.shadowRoot?.activeElement) {
3577
+ actives.push(activeElement.shadowRoot.activeElement);
3578
+ activeElement = activeElement.shadowRoot.activeElement;
3579
+ }
3580
+
3581
+ // Update the focusable elements
3582
+ const focusables = this._getFocusableElements();
3583
+
3584
+ // If we're at either end of the focusable elements, wrap around to the other end
3585
+ const focusIndex =
3586
+ (actives.includes(focusables[0]) || actives.includes(this.container)) && this.tabDirection === 'backward'
3587
+ ? focusables.length - 1
3588
+ : actives.includes(focusables[focusables.length - 1]) && this.tabDirection === 'forward'
3589
+ ? 0
3590
+ : null;
3591
+
3592
+ if (focusIndex !== null) {
3593
+ focusables[focusIndex].focus();
3594
+ e.preventDefault(); // Prevent default tab behavior
3595
+ e.stopPropagation(); // Stop the event from bubbling up
3596
+ }
3597
+ }
3598
+ };
3599
+
3600
+ /**
3601
+ * Retrieves all focusable elements within the container in DOM order, including those in shadow DOM and slots.
3602
+ * Returns a unique, ordered array of elements that can receive focus.
3603
+ *
3604
+ * @returns {Array<HTMLElement>} An array of focusable elements within the container.
3605
+ * @private
3606
+ */
3607
+ _getFocusableElements() {
3608
+ // Use the imported utility function to get focusable elements
3609
+ const elements = getFocusableElements(this.container);
3610
+
3611
+ // Filter out any elements with the 'focus-bookend' class
3612
+ return elements;
3613
+ }
3614
+
3615
+ /**
3616
+ * Moves focus to the first focusable element within the container.
3617
+ * Useful for setting initial focus when activating the focus trap.
3618
+ */
3619
+ focusFirstElement() {
3620
+ const focusables = this._getFocusableElements();
3621
+ if (focusables.length) focusables[0].focus();
3622
+ }
3623
+
3624
+ /**
3625
+ * Moves focus to the last focusable element within the container.
3626
+ * Useful for setting focus when deactivating or cycling focus in reverse.
3627
+ */
3628
+ focusLastElement() {
3629
+ const focusables = this._getFocusableElements();
3630
+ if (focusables.length) focusables[focusables.length - 1].focus();
3631
+ }
3632
+
3633
+ /**
3634
+ * Removes event listeners and attributes added by the focus trap.
3635
+ * Call this method to clean up when the focus trap is no longer needed.
3636
+ */
3637
+ disconnect() {
3638
+
3639
+ if (this.container.hasAttribute('data-focus-trap-container')) {
3640
+ this.container.removeAttribute('data-focus-trap-container');
3641
+ }
3642
+
3643
+ this.container.removeEventListener('keydown', this._onKeydown);
3644
+ }
3645
+ }
3646
+
3374
3647
  // Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
3375
3648
  // See LICENSE in the project root for license information.
3376
3649
 
@@ -3561,9 +3834,9 @@ let BaseIcon$2 = class BaseIcon extends AuroElement$1$1 {
3561
3834
  }
3562
3835
  };
3563
3836
 
3564
- 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)}`;
3837
+ 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)}`;
3565
3838
 
3566
- 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)}`;
3839
+ 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)}`;
3567
3840
 
3568
3841
  // Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
3569
3842
  // See LICENSE in the project root for license information.
@@ -3721,9 +3994,9 @@ let AuroIcon$2 = class AuroIcon extends BaseIcon$2 {
3721
3994
  static get styles() {
3722
3995
  return [
3723
3996
  super.styles,
3724
- i$5`${tokensCss$2$1}`,
3997
+ i$5`${tokensCss$2$2}`,
3725
3998
  i$5`${styleCss$2$2}`,
3726
- i$5`${colorCss$3$1}`
3999
+ i$5`${colorCss$3$2}`
3727
4000
  ];
3728
4001
  }
3729
4002
 
@@ -3757,8 +4030,12 @@ let AuroIcon$2 = class AuroIcon extends BaseIcon$2 {
3757
4030
  async firstUpdated() {
3758
4031
  await super.firstUpdated();
3759
4032
 
3760
- // Removes the SVG description for screenreader if ariaHidden is set to true
3761
- if (!this.hasAttribute('ariaHidden') && this.svg) {
4033
+ /**
4034
+ * icons provide a description for screen readers. Icon only instances Auro-button
4035
+ * depend on this description to provide context for the user using a screen reader.
4036
+ * Removes the SVG description for screen reader if ariaHidden is set to true.
4037
+ */
4038
+ if (this.hasAttribute('ariaHidden') && this.svg) {
3762
4039
  const svgDesc = this.svg.querySelector('desc');
3763
4040
 
3764
4041
  if (svgDesc) {
@@ -3804,11 +4081,11 @@ let AuroIcon$2 = class AuroIcon extends BaseIcon$2 {
3804
4081
 
3805
4082
  var iconVersion$2 = '6.1.2';
3806
4083
 
3807
- 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}`;
4084
+ 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}`;
3808
4085
 
3809
- 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)}`;
4086
+ 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)}`;
3810
4087
 
3811
- 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)}`;
4088
+ 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-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-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)}`;
3812
4089
 
3813
4090
  // Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
3814
4091
  // See LICENSE in the project root for license information.
@@ -3829,7 +4106,7 @@ const DESIGN_TOKEN_BREAKPOINT_OPTIONS = [
3829
4106
  */
3830
4107
 
3831
4108
  class AuroDropdownBib extends i$2 {
3832
-
4109
+ // not extending AuroElement because Bib needs only `shape` prop
3833
4110
  constructor() {
3834
4111
  super();
3835
4112
 
@@ -3839,13 +4116,16 @@ class AuroDropdownBib extends i$2 {
3839
4116
  this._mobileBreakpointValue = undefined;
3840
4117
 
3841
4118
  AuroLibraryRuntimeUtils$2$1.prototype.handleComponentTagRename(this, 'auro-dropdownbib');
4119
+
4120
+ this.shape = "rounded";
4121
+ this.matchWidth = false;
3842
4122
  }
3843
4123
 
3844
4124
  static get styles() {
3845
4125
  return [
3846
4126
  styleCss$1$2,
3847
- colorCss$2$1,
3848
- tokensCss$1$1
4127
+ colorCss$2$2,
4128
+ tokensCss$1$2
3849
4129
  ];
3850
4130
  }
3851
4131
 
@@ -3876,6 +4156,15 @@ class AuroDropdownBib extends i$2 {
3876
4156
  reflect: true
3877
4157
  },
3878
4158
 
4159
+ /**
4160
+ * If declared, the bib width will match the trigger width.
4161
+ * @private
4162
+ */
4163
+ matchWidth: {
4164
+ type: Boolean,
4165
+ reflect: true
4166
+ },
4167
+
3879
4168
  /**
3880
4169
  * If declared, will apply border-radius to the bib.
3881
4170
  */
@@ -3889,6 +4178,11 @@ class AuroDropdownBib extends i$2 {
3889
4178
  */
3890
4179
  bibTemplate: {
3891
4180
  type: Object
4181
+ },
4182
+
4183
+ shape: {
4184
+ type: String,
4185
+ reflect: true
3892
4186
  }
3893
4187
  };
3894
4188
  }
@@ -3968,8 +4262,16 @@ class AuroDropdownBib extends i$2 {
3968
4262
 
3969
4263
  // function that renders the HTML and CSS into the scope of the component
3970
4264
  render() {
4265
+ const classes = {
4266
+ container: true
4267
+ };
4268
+
4269
+ // Since this class does not inherit from AuroElement, we apply the shape-related class within the `render` function,
4270
+ // mimicking the class naming convention used in AuroElement.resetShapeClasses.
4271
+ classes[`shape-${this.shape}`] = true;
4272
+
3971
4273
  return u`
3972
- <div class="container" part="bibContainer">
4274
+ <div class="${e(classes)}" part="bibContainer">
3973
4275
  <slot></slot>
3974
4276
  </div>
3975
4277
  `;
@@ -3978,21 +4280,21 @@ class AuroDropdownBib extends i$2 {
3978
4280
 
3979
4281
  var dropdownVersion$1 = '3.0.0';
3980
4282
 
3981
- 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}`;
4283
+ 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}`;
3982
4284
 
3983
- 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)}`;
4285
+ var colorCss$1$2 = i$5`:host(:not([layout*=classic])){--ds-auro-dropdown-trigger-border-color: transparent}:host(:not([ondark])) .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-within,:host(:not([ondark])) .wrapper: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(:not([onDark])[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);--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-border-subtle, #dddddd)}:host(:not([ondark])[error]){--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-status-error, #e31f26)}:host([onDark]) .label{color:var(--ds-auro-dropdown-label-text-color)}:host([onDark]) .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([onDark]) .wrapper:focus-within,:host([onDark]) .wrapper: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([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([ondark][error]){--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-status-error-subtle, #fbc6c6)}`;
3984
4286
 
3985
- 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))}`;
4287
+ var classicColorCss = i$5``;
3986
4288
 
3987
- 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)}`;
4289
+ 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]) .wrapper{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]) .wrapper: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([matchwidth]) #bibSizer{width:100%}`;
3988
4290
 
3989
- 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{flex:1;display:flex;align-items:center;justify-content:center;outline:none}.triggerContentWrapper{flex:1;display:flex;align-items:center;justify-content:center;width:100%}.triggerContent{overflow:hidden;flex:1;display:flex;align-items:center;justify-content:center;text-overflow:ellipsis;white-space:nowrap;width:100%}:host([layout*=emphasized][shape*=pill]:not([layout*=right])) .leftIndent{margin-left:var(--ds-size-300, 1.5rem);width:calc(100% - var(--ds-size-300, 1.5rem))}:host([layout*=emphasized][shape*=pill]:not([layout*=left])) .rightIndent{margin-right:var(--ds-size-300, 1.5rem);width:calc(100% - var(--ds-size-300, 1.5rem))}:host([layout*=emphasized][shape*=pill]:not([layout*=left]):not([layout*=right])) .rightIndent{margin-right:var(--ds-size-300, 1.5rem);width:calc(100% - var(--ds-size-600, 3rem))}`;
4291
+ 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:1;flex-direction:row;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)}`;
3990
4292
 
3991
- var styleSnowflakeCss = i$5`:host{display:block}.wrapper{display:flex;flex-direction:wrapper}.trigger{flex:1;display:flex;align-items:center;justify-content:center;outline:none}.triggerContentWrapper{flex:1;display:flex;align-items:center;justify-content:center;width:100%}.triggerContent{overflow:hidden;flex:1;display:flex;align-items:center;justify-content:center;text-overflow:ellipsis;white-space:nowrap;width:100%}:host([layout*=snowflake]) .leftIndent{margin-left:var(--ds-size-300, 1.5rem);width:calc(100% - var(--ds-size-600, 3rem))}:host([layout*=snowflake]) .rightIndent{margin-right:var(--ds-size-300, 1.5rem);width:calc(100% - var(--ds-size-600, 3rem))}.layout-snowflake .chevron,.layout-snowflake-left .chevron,.layout-snowflake-right .chevron{margin-right:var(--ds-size-300, 1.5rem)}`;
4293
+ var styleSnowflakeCss = i$5`:host{display:block}.wrapper{display:flex;flex:1;flex-direction:row;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)}`;
3992
4294
 
3993
- 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)}`;
4295
+ 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-basic-color-status-error-subtle, #fbc6c6)}.helptext-wrapper{color:var(--ds-auro-helptext-color)}`;
3994
4296
 
3995
- var styleCss$6 = i$5`.helptext-wrapper{display:none;font-size:var(--ds-basic-text-body-xs-font-size, 12px);font-weight:var(--ds-basic-text-body-xs-font-weight, 450);letter-spacing:var(--ds-basic-text-body-xs-letter-spacing, 0);line-height:var(--ds-basic-text-body-xs-line-height, 16px)}:host([large]) .helptext-wrapper{font-size:var(--ds-basic-text-body-default-font-size, 16px);font-weight:var(--ds-basic-text-body-default-font-weight, 450);letter-spacing:var(--ds-basic-text-body-default-letter-spacing, 0);line-height:var(--ds-basic-text-body-default-line-height, 24px)}.helptext-wrapper[visible]{display:block}::slotted(*:not(:empty)){margin-top:var(--ds-size-50, 0.25rem);margin-bottom:0}::slotted(p){margin-block:0}`;
4297
+ var styleCss$6 = i$5`:host{position:relative;display:block}.helptext-wrapper{display:none;font-size:12px;font-weight:450;letter-spacing:0;line-height:16px}:host([large]) .helptext-wrapper{font-size:16px;font-weight:450;letter-spacing:0;line-height:24px}.helptext-wrapper[visible]{display:block}::slotted(*:not(:empty)){margin-top:var(--ds-size-50, 0.25rem);margin-bottom:0}::slotted(p){margin-block:0}`;
3996
4298
 
3997
4299
  var tokensCss$4 = i$5`:host{--ds-auro-helptext-color: var(--ds-basic-color-texticon-muted, #676767)}`;
3998
4300
 
@@ -4003,7 +4305,7 @@ var tokensCss$4 = i$5`:host{--ds-auro-helptext-color: var(--ds-basic-color-texti
4003
4305
 
4004
4306
  /* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
4005
4307
 
4006
- let AuroLibraryRuntimeUtils$3 = class AuroLibraryRuntimeUtils {
4308
+ let AuroLibraryRuntimeUtils$5 = class AuroLibraryRuntimeUtils {
4007
4309
 
4008
4310
  /* eslint-disable jsdoc/require-param */
4009
4311
 
@@ -4084,7 +4386,7 @@ let AuroHelpText$1 = class AuroHelpText extends i$2 {
4084
4386
  this.onDark = false;
4085
4387
  this.hasTextContent = false;
4086
4388
 
4087
- AuroLibraryRuntimeUtils$3.prototype.handleComponentTagRename(this, 'auro-helptext');
4389
+ AuroLibraryRuntimeUtils$5.prototype.handleComponentTagRename(this, 'auro-helptext');
4088
4390
  }
4089
4391
 
4090
4392
  static get styles() {
@@ -4140,7 +4442,7 @@ let AuroHelpText$1 = class AuroHelpText extends i$2 {
4140
4442
  *
4141
4443
  */
4142
4444
  static register(name = "auro-helptext") {
4143
- AuroLibraryRuntimeUtils$3.prototype.registerComponent(name, AuroHelpText);
4445
+ AuroLibraryRuntimeUtils$5.prototype.registerComponent(name, AuroHelpText);
4144
4446
  }
4145
4447
 
4146
4448
  updated() {
@@ -4198,7 +4500,7 @@ let AuroHelpText$1 = class AuroHelpText extends i$2 {
4198
4500
 
4199
4501
  var helpTextVersion$1 = '1.0.0';
4200
4502
 
4201
- let AuroElement$2 = class AuroElement extends i$2 {
4503
+ let AuroElement$3 = class AuroElement extends i$2 {
4202
4504
  static get properties() {
4203
4505
  return {
4204
4506
 
@@ -4233,18 +4535,21 @@ let AuroElement$2 = class AuroElement extends i$2 {
4233
4535
  }
4234
4536
 
4235
4537
  resetShapeClasses() {
4236
- if (this.shape && this.size) {
4237
- const wrapper = this.shadowRoot.querySelector('.wrapper');
4538
+ const wrapper = this.shadowRoot.querySelector('.wrapper');
4238
4539
 
4239
- if (wrapper) {
4240
- wrapper.classList.forEach((className) => {
4241
- if (className.startsWith('shape-')) {
4242
- wrapper.classList.remove(className);
4243
- }
4244
- });
4540
+ if (wrapper) {
4541
+ wrapper.classList.forEach((className) => {
4542
+ if (className.startsWith('shape-')) {
4543
+ wrapper.classList.remove(className);
4544
+ }
4545
+ });
4245
4546
 
4246
- wrapper.classList.add(`shape-${this.shape.toLowerCase()}-${this.size.toLowerCase()}`);
4247
- }
4547
+ }
4548
+
4549
+ if (this.shape && this.size) {
4550
+ wrapper.classList.add(`shape-${this.shape.toLowerCase()}-${this.size.toLowerCase()}`);
4551
+ } else {
4552
+ wrapper.classList.add('shape-none');
4248
4553
  }
4249
4554
  }
4250
4555
 
@@ -4294,10 +4599,8 @@ let AuroElement$2 = class AuroElement extends i$2 {
4294
4599
  // See LICENSE in the project root for license information.
4295
4600
 
4296
4601
 
4297
- /**
4298
- * @attr { Boolean } disableEventShow - If declared, the dropdown will only show by calling the API .show() public method.
4602
+ /*
4299
4603
  * @slot - Default slot for the popover content.
4300
- * @slot label - Defines the content of the label.
4301
4604
  * @slot helpText - Defines the content of the helpText.
4302
4605
  * @slot trigger - Defines the content of the trigger.
4303
4606
  * @csspart trigger - The trigger content container.
@@ -4307,7 +4610,7 @@ let AuroElement$2 = class AuroElement extends i$2 {
4307
4610
  * @event auroDropdown-toggled - Notifies that the visibility of the dropdown bib has changed.
4308
4611
  * @event auroDropdown-idAdded - Notifies consumers that the unique ID for the dropdown bib has been generated.
4309
4612
  */
4310
- class AuroDropdown extends AuroElement$2 {
4613
+ class AuroDropdown extends AuroElement$3 {
4311
4614
  constructor() {
4312
4615
  super();
4313
4616
 
@@ -4316,23 +4619,25 @@ class AuroDropdown extends AuroElement$2 {
4316
4619
  this.matchWidth = false;
4317
4620
  this.noHideOnThisFocusLoss = false;
4318
4621
 
4319
- this.errorMessage = ''; // TODO!
4622
+ this.errorMessage = undefined; // TODO - check with Doug if there is still more to do here
4320
4623
 
4321
4624
  // Layout Config
4322
- this.layout = 'classic';
4323
- this.shape = 'rounded';
4324
- this.size = 'xl';
4625
+ this.layout = undefined;
4626
+ this.shape = undefined;
4627
+ this.size = undefined;
4628
+
4325
4629
  this.parentBorder = false;
4326
4630
 
4327
- this.privateDefaults();
4328
- }
4631
+ /** @private */
4632
+ this.handleDropdownToggle = this.handleDropdownToggle.bind(this);
4329
4633
 
4330
- get commonLabelClasses() {
4331
- return {
4332
- // 'withValue': this.value && this.value.length > 0
4333
- };
4634
+ this.privateDefaults();
4334
4635
  }
4335
4636
 
4637
+ /**
4638
+ * @private
4639
+ * @returns {object} Class definition for the wrapper element.
4640
+ */
4336
4641
  get commonWrapperClasses() {
4337
4642
  return {
4338
4643
  'trigger': true,
@@ -4350,13 +4655,10 @@ class AuroDropdown extends AuroElement$2 {
4350
4655
  privateDefaults() {
4351
4656
  this.chevron = false;
4352
4657
  this.disabled = false;
4658
+ this.disableFocusTrap = false;
4353
4659
  this.error = false;
4354
- this.inset = false;
4355
- this.rounded = false;
4356
4660
  this.tabIndex = 0;
4357
4661
  this.noToggle = false;
4358
- this.a11yAutocomplete = 'none';
4359
- this.labeled = true;
4360
4662
  this.a11yRole = 'button';
4361
4663
  this.onDark = false;
4362
4664
  this.showTriggerBorders = true;
@@ -4452,6 +4754,18 @@ class AuroDropdown extends AuroElement$2 {
4452
4754
  this.floater.showBib();
4453
4755
  }
4454
4756
 
4757
+ /**
4758
+ * When bib is open, focus on the first element inside of bib.
4759
+ * If not, trigger element will get focus.
4760
+ */
4761
+ focus() {
4762
+ if (this.isPopoverVisible && this.focusTrap) {
4763
+ this.focusTrap.focusFirstElement();
4764
+ } else {
4765
+ this.trigger.focus();
4766
+ }
4767
+ }
4768
+
4455
4769
  // function to define props used within the scope of this component
4456
4770
  static get properties() {
4457
4771
  return {
@@ -4465,6 +4779,15 @@ class AuroDropdown extends AuroElement$2 {
4465
4779
  reflect: true
4466
4780
  },
4467
4781
 
4782
+ /**
4783
+ * If declared, the dropdown will only show by calling the API .show() public method.
4784
+ * @default false
4785
+ */
4786
+ disableEventShow: {
4787
+ type: Boolean,
4788
+ reflect: true
4789
+ },
4790
+
4468
4791
  /**
4469
4792
  * If declared, applies a border around the trigger slot.
4470
4793
  */
@@ -4483,17 +4806,17 @@ class AuroDropdown extends AuroElement$2 {
4483
4806
  },
4484
4807
 
4485
4808
  /**
4486
- * If declared, the dropdown will be styled with the common theme.
4809
+ * If declared, the dropdown is not interactive.
4487
4810
  */
4488
- common: {
4811
+ disabled: {
4489
4812
  type: Boolean,
4490
4813
  reflect: true
4491
4814
  },
4492
4815
 
4493
4816
  /**
4494
- * If declared, the dropdown is not interactive.
4817
+ * If declared, the focus trap inside of bib will be turned off.
4495
4818
  */
4496
- disabled: {
4819
+ disableFocusTrap: {
4497
4820
  type: Boolean,
4498
4821
  reflect: true
4499
4822
  },
@@ -4538,22 +4861,6 @@ class AuroDropdown extends AuroElement$2 {
4538
4861
  reflect: true
4539
4862
  },
4540
4863
 
4541
- /**
4542
- * Makes the trigger to be full width of its parent container.
4543
- */
4544
- fluid: {
4545
- type: Boolean,
4546
- reflect: true
4547
- },
4548
-
4549
- /**
4550
- * If declared, will apply padding around trigger slot content.
4551
- */
4552
- inset: {
4553
- type: Boolean,
4554
- reflect: true
4555
- },
4556
-
4557
4864
  /**
4558
4865
  * If true, the dropdown bib is displayed.
4559
4866
  */
@@ -4597,15 +4904,6 @@ class AuroDropdown extends AuroElement$2 {
4597
4904
  reflect: true
4598
4905
  },
4599
4906
 
4600
- /**
4601
- * Defines if there is a label preset.
4602
- * @private
4603
- */
4604
- labeled: {
4605
- type: Boolean,
4606
- reflect: true
4607
- },
4608
-
4609
4907
  /**
4610
4908
  * Defines if the trigger should size based on the parent element providing the border UI.
4611
4909
  * @private
@@ -4666,6 +4964,9 @@ class AuroDropdown extends AuroElement$2 {
4666
4964
  reflect: true
4667
4965
  },
4668
4966
 
4967
+ /**
4968
+ * If declared, and a function is set, that function will execute when the slot content is updated.
4969
+ */
4669
4970
  onSlotChange: {
4670
4971
  type: Function,
4671
4972
  reflect: false
@@ -4680,14 +4981,6 @@ class AuroDropdown extends AuroElement$2 {
4680
4981
  reflect: true
4681
4982
  },
4682
4983
 
4683
- /**
4684
- * If declared, will apply border-radius to trigger and default slots.
4685
- */
4686
- rounded: {
4687
- type: Boolean,
4688
- reflect: true
4689
- },
4690
-
4691
4984
  /**
4692
4985
  * @private
4693
4986
  */
@@ -4702,22 +4995,14 @@ class AuroDropdown extends AuroElement$2 {
4702
4995
  type: String || undefined,
4703
4996
  attribute: false,
4704
4997
  reflect: false
4705
- },
4706
-
4707
- /**
4708
- * The value for the aria-autocomplete attribute of the trigger element.
4709
- */
4710
- a11yAutocomplete: {
4711
- type: String,
4712
- attribute: false,
4713
4998
  }
4714
4999
  };
4715
5000
  }
4716
5001
 
4717
5002
  static get styles() {
4718
5003
  return [
5004
+ tokensCss$1$2,
4719
5005
  colorCss$1$2,
4720
- tokensCss$1$1,
4721
5006
 
4722
5007
  // default layout
4723
5008
  classicColorCss,
@@ -4779,13 +5064,27 @@ class AuroDropdown extends AuroElement$2 {
4779
5064
  if (changedProperties.size === 0 || changedProperties.has('isPopoverVisible')) {
4780
5065
  this.handleTriggerContentSlotChange();
4781
5066
  }
5067
+ }
4782
5068
 
5069
+ /**
5070
+ * Handles the custom event `auroDropdown-toggled` to update the visibility of the dropdown bib.
5071
+ * @private
5072
+ * @param {CustomEvent} event - The custom event that contains the dropdown toggle information.
5073
+ */
5074
+ handleDropdownToggle(event) {
5075
+ this.updateFocusTrap();
5076
+ this.isPopoverVisible = event.detail.expanded;
5077
+ const eventType = event.detail.eventType || "unknown";
5078
+ if (!this.isPopoverVisible && this.hasFocus && eventType === "keydown") {
5079
+ this.trigger.focus();
5080
+ }
4783
5081
  }
4784
5082
 
4785
5083
  firstUpdated() {
4786
5084
 
4787
5085
  // Configure the floater to, this will generate the ID for the bib
4788
5086
  this.floater.configure(this, 'auroDropdown');
5087
+ this.addEventListener('auroDropdown-toggled', this.handleDropdownToggle);
4789
5088
 
4790
5089
  /**
4791
5090
  * @description Let subscribers know that the dropdown ID ha been generated and added.
@@ -4845,6 +5144,27 @@ class AuroDropdown extends AuroElement$2 {
4845
5144
  this.hasFocus = true;
4846
5145
  }
4847
5146
 
5147
+ /**
5148
+ * @private
5149
+ */
5150
+ updateFocusTrap() {
5151
+ // If the dropdown is open, create a focus trap and focus the first element
5152
+ if (this.isPopoverVisible && !this.disableFocusTrap) {
5153
+ this.focusTrap = new FocusTrap(this.bibContent);
5154
+ this.focusTrap.focusFirstElement();
5155
+ return;
5156
+ }
5157
+
5158
+ // Guard Clause: Ensure there is a focus trap currently active before continuing
5159
+ if (!this.focusTrap) {
5160
+ return;
5161
+ }
5162
+
5163
+ // If the dropdown is not open, disconnect the focus trap if it exists
5164
+ this.focusTrap.disconnect();
5165
+ this.focusTrap = undefined;
5166
+ }
5167
+
4848
5168
  /**
4849
5169
  * Function to support @focusout event.
4850
5170
  * @private
@@ -5005,14 +5325,13 @@ class AuroDropdown extends AuroElement$2 {
5005
5325
  * @returns {void}
5006
5326
  */
5007
5327
  handleTriggerContentSlotChange(event) {
5008
-
5009
5328
  this.floater.handleTriggerTabIndex();
5010
5329
 
5011
5330
  // Get the trigger
5012
5331
  const trigger = this.shadowRoot.querySelector('#trigger');
5013
5332
 
5014
5333
  // Get the trigger slot
5015
- const triggerSlot = this.shadowRoot.querySelector('.triggerContent slot');
5334
+ const triggerSlot = this.shadowRoot.querySelector('.triggerContentWrapper slot');
5016
5335
 
5017
5336
  // If there's a trigger slot
5018
5337
  if (triggerSlot) {
@@ -5075,7 +5394,6 @@ class AuroDropdown extends AuroElement$2 {
5075
5394
  *
5076
5395
  * @private
5077
5396
  * @method handleDefaultSlot
5078
- * @param {Event} event - The event object representing the slot change.
5079
5397
  * @fires Function#onSlotChange - Optional callback invoked when the slot content changes.
5080
5398
  */
5081
5399
  handleDefaultSlot() {
@@ -5086,33 +5404,10 @@ class AuroDropdown extends AuroElement$2 {
5086
5404
  }
5087
5405
 
5088
5406
  /**
5407
+ * Returns HTML for the common portion of the layouts.
5089
5408
  * @private
5090
- * @method handleLabelSlotChange
5091
- * @param {event} event - The event object representing the slot change.
5092
- * @description Handles the slot change event for the label slot.
5093
- */
5094
- handleLabelSlotChange (event) {
5095
-
5096
- // Get the nodes from the event
5097
- const nodes = event.target.assignedNodes();
5098
-
5099
- // Guard clause for no nodes
5100
- if (!nodes) {
5101
- return;
5102
- }
5103
-
5104
- // Convert the nodes to a measurable array so we can get the length
5105
- const nodesArr = Array.from(nodes);
5106
-
5107
- // If the nodes array has a length, the dropdown is labeled
5108
- this.labeled = nodesArr.length > 0;
5109
- }
5110
-
5111
- /**
5112
- * Returns HTML for the common portion of the layouts.
5113
- * @private
5114
- * @param {Object} helpTextClasses - Classes to apply to the help text container.
5115
- * @returns {html} - Returns HTML.
5409
+ * @param {Object} helpTextClasses - Classes to apply to the help text container.
5410
+ * @returns {html} - Returns HTML.
5116
5411
  */
5117
5412
  renderBasicHtml(helpTextClasses) {
5118
5413
  return u`
@@ -5122,22 +5417,17 @@ class AuroDropdown extends AuroElement$2 {
5122
5417
  class="${e(this.commonWrapperClasses)}" part="wrapper"
5123
5418
  tabindex="${this.tabIndex}"
5124
5419
  role="${o(this.triggerContentFocusable ? undefined : this.a11yRole)}"
5125
- aria-expanded="${o(this.triggerContentFocusable ? undefined : this.isPopoverVisible)}"
5126
- aria-controls="${o(this.triggerContentFocusable ? undefined : this.dropdownId)}"
5420
+ aria-expanded="${o(this.a11yRole === 'button' || this.triggerContentFocusable ? undefined : this.isPopoverVisible)}"
5421
+ aria-controls="${o(this.a11yRole === 'button' || this.triggerContentFocusable ? undefined : this.dropdownId)}"
5127
5422
  aria-labelledby="${o(this.triggerContentFocusable ? undefined : 'triggerLabel')}"
5128
5423
  @focusin="${this.handleFocusin}"
5129
5424
  @blur="${this.handleFocusOut}">
5130
- <div class="triggerContentWrapper">
5131
- <label class="label" id="triggerLabel" hasTrigger=${this.hasTriggerContent}>
5132
- <slot name="label" @slotchange="${this.handleLabelSlotChange}"></slot>
5133
- </label>
5134
- <div class="triggerContent">
5135
- <slot
5136
- name="trigger"
5137
- @slotchange="${this.handleTriggerContentSlotChange}"></slot>
5138
- </div>
5425
+ <div class="triggerContentWrapper" id="triggerLabel">
5426
+ <slot
5427
+ name="trigger"
5428
+ @slotchange="${this.handleTriggerContentSlotChange}"></slot>
5139
5429
  </div>
5140
- ${this.chevron || this.common ? u`
5430
+ ${this.chevron ? u`
5141
5431
  <div
5142
5432
  id="showStateIcon"
5143
5433
  class="chevron"
@@ -5158,11 +5448,9 @@ class AuroDropdown extends AuroElement$2 {
5158
5448
  <div id="bibSizer" part="size"></div>
5159
5449
  <${this.dropdownBibTag}
5160
5450
  id="bib"
5451
+ shape="${this.shape}"
5161
5452
  ?data-show="${this.isPopoverVisible}"
5162
- ?isfullscreen="${this.isBibFullscreen}"
5163
- ?common="${this.common}"
5164
- ?rounded="${this.common || this.rounded}"
5165
- ?inset="${this.common || this.inset}">
5453
+ ?isfullscreen="${this.isBibFullscreen}">
5166
5454
  <div class="slotContent">
5167
5455
  <slot @slotchange="${this.handleDefaultSlot}"></slot>
5168
5456
  </div>
@@ -5177,62 +5465,13 @@ class AuroDropdown extends AuroElement$2 {
5177
5465
  * @returns {html} - Returns HTML for the classic layout.
5178
5466
  */
5179
5467
  renderLayoutClassic() {
5468
+ // TODO: check with Doug why this was never used?
5469
+ const helpTextClasses = {
5470
+ 'helpText': true
5471
+ };
5180
5472
 
5181
5473
  return u`
5182
- <div>
5183
- <div
5184
- id="trigger"
5185
- class="trigger"
5186
- part="trigger"
5187
- tabindex="${this.tabIndex}"
5188
- ?showBorder="${this.showTriggerBorders}"
5189
- role="${o(this.triggerContentFocusable ? undefined : this.a11yRole)}"
5190
- aria-expanded="${o(this.triggerContentFocusable ? undefined : this.isPopoverVisible)}"
5191
- aria-controls="${o(this.triggerContentFocusable ? undefined : this.dropdownId)}"
5192
- aria-labelledby="${o(this.triggerContentFocusable ? undefined : 'triggerLabel')}"
5193
- >
5194
- <div class="triggerContentWrapper">
5195
- <label class="label" id="triggerLabel" hasTrigger=${this.hasTriggerContent}>
5196
- <slot name="label" @slotchange="${this.handleLabelSlotChange}"></slot>
5197
- </label>
5198
- <div class="triggerContent">
5199
- <slot
5200
- name="trigger"
5201
- @slotchange="${this.handleTriggerContentSlotChange}"></slot>
5202
- </div>
5203
- </div>
5204
- ${this.chevron || this.common ? u`
5205
- <div
5206
- id="showStateIcon"
5207
- part="chevron">
5208
- <${this.iconTag}
5209
- category="interface"
5210
- name="chevron-down"
5211
- ?onDark="${this.onDark}"
5212
- variant="${this.disabled ? 'disabled' : 'muted'}">
5213
- >
5214
- </${this.iconTag}>
5215
- </div>
5216
- ` : undefined }
5217
- </div>
5218
- <${this.helpTextTag} part="helpText" ?onDark=${this.onDark} ?error="${this.error}">
5219
- <slot name="helpText"></slot>
5220
- </${this.helpTextTag}>
5221
-
5222
- <div id="bibSizer" part="size"></div>
5223
- <${this.dropdownBibTag}
5224
- id="bib"
5225
- ?data-show="${this.isPopoverVisible}"
5226
- ?isfullscreen="${this.isBibFullscreen}"
5227
- ?common="${this.common}"
5228
- ?rounded="${this.common || this.rounded}"
5229
- ?inset="${this.common || this.inset}"
5230
- >
5231
- <div class="slotContent">
5232
- <slot @slotchange="${this.handleDefaultSlot}"></slot>
5233
- </div>
5234
- </${this.dropdownBibTag}>
5235
- </div>
5474
+ ${this.renderBasicHtml(helpTextClasses)}
5236
5475
  `;
5237
5476
  }
5238
5477
 
@@ -5300,9 +5539,9 @@ class AuroDropdown extends AuroElement$2 {
5300
5539
 
5301
5540
  var dropdownVersion = '3.0.0';
5302
5541
 
5303
- 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)}`;
5542
+ 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)}`;
5304
5543
 
5305
- 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)}`;
5544
+ 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)}`;
5306
5545
 
5307
5546
  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)}`;
5308
5547
 
@@ -5311,111 +5550,1205 @@ var tokenCss = i$5`:host{--ds-auro-dropdownbib-header-boxshadow-color: var(--ds-
5311
5550
 
5312
5551
  // ---------------------------------------------------------------------
5313
5552
 
5314
- /* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
5553
+ /* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
5554
+
5555
+ let AuroLibraryRuntimeUtils$3 = class AuroLibraryRuntimeUtils {
5556
+
5557
+ /* eslint-disable jsdoc/require-param */
5558
+
5559
+ /**
5560
+ * This will register a new custom element with the browser.
5561
+ * @param {String} name - The name of the custom element.
5562
+ * @param {Object} componentClass - The class to register as a custom element.
5563
+ * @returns {void}
5564
+ */
5565
+ registerComponent(name, componentClass) {
5566
+ if (!customElements.get(name)) {
5567
+ customElements.define(name, class extends componentClass {});
5568
+ }
5569
+ }
5570
+
5571
+ /**
5572
+ * Finds and returns the closest HTML Element based on a selector.
5573
+ * @returns {void}
5574
+ */
5575
+ closestElement(
5576
+ selector, // selector like in .closest()
5577
+ base = this, // extra functionality to skip a parent
5578
+ __Closest = (el, found = el && el.closest(selector)) =>
5579
+ !el || el === document || el === window
5580
+ ? null // standard .closest() returns null for non-found selectors also
5581
+ : found
5582
+ ? found // found a selector INside this element
5583
+ : __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
5584
+ ) {
5585
+ return __Closest(base);
5586
+ }
5587
+ /* eslint-enable jsdoc/require-param */
5588
+
5589
+ /**
5590
+ * 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.
5591
+ * @param {Object} elem - The element to check.
5592
+ * @param {String} tagName - The name of the Auro component to check for or add as an attribute.
5593
+ * @returns {void}
5594
+ */
5595
+ handleComponentTagRename(elem, tagName) {
5596
+ const tag = tagName.toLowerCase();
5597
+ const elemTag = elem.tagName.toLowerCase();
5598
+
5599
+ if (elemTag !== tag) {
5600
+ elem.setAttribute(tag, true);
5601
+ }
5602
+ }
5603
+
5604
+ /**
5605
+ * Validates if an element is a specific Auro component.
5606
+ * @param {Object} elem - The element to validate.
5607
+ * @param {String} tagName - The name of the Auro component to check against.
5608
+ * @returns {Boolean} - Returns true if the element is the specified Auro component.
5609
+ */
5610
+ elementMatch(elem, tagName) {
5611
+ const tag = tagName.toLowerCase();
5612
+ const elemTag = elem.tagName.toLowerCase();
5613
+
5614
+ return elemTag === tag || elem.hasAttribute(tag);
5615
+ }
5616
+ };
5617
+
5618
+ // Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
5619
+ // See LICENSE in the project root for license information.
5620
+
5621
+
5622
+ class AuroDependencyVersioning {
5623
+
5624
+ /**
5625
+ * Generates a unique string to be used for child auro element naming.
5626
+ * @private
5627
+ * @param {string} baseName - Defines the first part of the unique element name.
5628
+ * @param {string} version - Version of the component that will be appended to the baseName.
5629
+ * @returns {string} - Unique string to be used for naming.
5630
+ */
5631
+ generateElementName(baseName, version) {
5632
+ let result = baseName;
5633
+
5634
+ result += '-';
5635
+ result += version.replace(/[.]/g, '_');
5636
+
5637
+ return result;
5638
+ }
5639
+
5640
+ /**
5641
+ * Generates a unique string to be used for child auro element naming.
5642
+ * @param {string} baseName - Defines the first part of the unique element name.
5643
+ * @param {string} version - Version of the component that will be appended to the baseName.
5644
+ * @returns {string} - Unique string to be used for naming.
5645
+ */
5646
+ generateTag(baseName, version, tagClass) {
5647
+ const elementName = this.generateElementName(baseName, version);
5648
+ const tag = i`${s(elementName)}`;
5649
+
5650
+ if (!customElements.get(elementName)) {
5651
+ customElements.define(elementName, class extends tagClass {});
5652
+ }
5653
+
5654
+ return tag;
5655
+ }
5656
+ }
5657
+
5658
+ /**
5659
+ * Private module-level WeakMap to hold MutationObservers for each host element.
5660
+ */
5661
+ const _observers = new WeakMap();
5662
+
5663
+ /**
5664
+ * Private module-level WeakMap to hold attribute matchers and targets for each host element.
5665
+ * Structure: {
5666
+ * host: {
5667
+ * matchers: Set<Function>,
5668
+ * targets: Map<HTMLElement, Map<Function, {removeOriginal: boolean, currentAttributes: Map<string, string>}>>
5669
+ * }
5670
+ * }
5671
+ */
5672
+ const _transportConfig = new WeakMap();
5673
+
5674
+ /**
5675
+ * Transfers all matching attributes from a host element to a target element and observes for future changes.
5676
+ *
5677
+ * @param {Object} params - The parameters for the function.
5678
+ * @param {HTMLElement} params.host - The host element from which attributes will be transported.
5679
+ * @param {HTMLElement} params.target - The target element to which attributes will be transported.
5680
+ * @param {boolean} [params.removeOriginal=true] - Whether to remove the attributes from the host element.
5681
+ * @param {boolean} [params.observe=true] - Whether to attach a MutationObserver to the host element.
5682
+ * @returns {Function} A function to detach the observer when no longer needed.
5683
+ * @throws {TypeError} If the host or target parameters are not instances of HTMLElement.
5684
+ */
5685
+ const transportAttributes = ({ host, target, match, removeOriginal = true }) => {
5686
+ // Guard Clause: Ensure host is valid HTMLElement instance
5687
+ if (typeof host !== 'object' || !(host instanceof HTMLElement)) {
5688
+ throw new TypeError('a11yUtilities.js | transportAttributes | The "host" parameter must be an instance of HTMLElement.');
5689
+ }
5690
+
5691
+ // Guard Clause: Ensure target is valid HTMLElement instance
5692
+ if (typeof target !== 'object' || !(target instanceof HTMLElement)) {
5693
+ throw new TypeError('a11yUtilities.js | transportAttributes | The "target" parameter must be an instance of HTMLElement.');
5694
+ }
5695
+
5696
+ // Guard Clause: Ensure match is a function
5697
+ if (typeof match !== 'function') {
5698
+ throw new TypeError('a11yUtilities.js | transportAttributes | The "match" parameter must be a function.');
5699
+ }
5700
+
5701
+ // Guard Clause: Ensure removeOriginal is a boolean
5702
+ if (typeof removeOriginal !== 'boolean') {
5703
+ throw new TypeError('a11yUtilities.js | transportAttributes | The "removeOriginal" parameter must be a boolean.');
5704
+ }
5705
+
5706
+ // Register this transport and get cleanup function
5707
+ return _registerTransport({
5708
+ host,
5709
+ target,
5710
+ matcher: match,
5711
+ removeOriginal
5712
+ });
5713
+ };
5714
+
5715
+ /**
5716
+ * Registers a matcher and target for a host element and attaches an observer if needed.
5717
+ *
5718
+ * @param {Object} params - The parameters object.
5719
+ * @param {HTMLElement} params.host - The host element to observe.
5720
+ * @param {HTMLElement} params.target - The target element to receive attributes.
5721
+ * @param {Function} params.matcher - Function that determines which attributes to transport.
5722
+ * @param {boolean} [params.removeOriginal=true] - Whether to remove original attributes.
5723
+ * @param {boolean} [params.observe=true] - Whether to observe for attribute changes.
5724
+ * @returns {Function} Function to detach the specific matcher and target pairing.
5725
+ * @private
5726
+ */
5727
+ const _registerTransport = ({ host, target, matcher, removeOriginal = true }) => {
5728
+ // Initialize config for this host if it doesn't exist
5729
+ if (!_transportConfig.has(host)) {
5730
+ _transportConfig.set(host, {
5731
+ matchers: new Set(),
5732
+ targets: new Map()
5733
+ });
5734
+ }
5735
+
5736
+ const config = _transportConfig.get(host);
5737
+
5738
+ // Add the matcher to the set of matchers for this host
5739
+ config.matchers.add(matcher);
5740
+
5741
+ // Initialize target entry if it doesn't exist
5742
+ if (!config.targets.has(target)) {
5743
+ config.targets.set(target, new Map());
5744
+ }
5745
+
5746
+ // Store the matcher with its removeOriginal setting for this target
5747
+ config.targets.get(target).set(matcher, {
5748
+ removeOriginal,
5749
+ currentAttributes: new Map()
5750
+ });
5751
+
5752
+ // Perform initial attribute transport
5753
+ _transportAttributes({ host, target, matcher, removeOriginal });
5754
+
5755
+ // Attach observer
5756
+ _attachObserver(host);
5757
+
5758
+ // Return cleanup function and utility functions
5759
+ return {
5760
+ cleanup: () => _cleanupTransport(host, target, matcher),
5761
+ getObservedAttributes: () => _getObservedAttributes(host, target, matcher),
5762
+ getObservedAttribute: (attr) => _getObservedAttribute(host, target, matcher, attr),
5763
+ }
5764
+ };
5765
+
5766
+ /**
5767
+ * Cleans up resources associated with a specific matcher and target for a host element.
5768
+ *
5769
+ * @param {HTMLElement} host - The host element
5770
+ * @param {HTMLElement} target - The target element
5771
+ * @param {Function} matcher - The matcher function
5772
+ * @private
5773
+ */
5774
+ const _cleanupTransport = (host, target, matcher) => {
5775
+ const config = _transportConfig.get(host);
5776
+ if (!config) return;
5777
+
5778
+ // Remove this matcher from this target
5779
+ const targetMatchers = config.targets.get(target);
5780
+ if (targetMatchers) {
5781
+ targetMatchers.delete(matcher);
5782
+
5783
+ // If this target has no more matchers, remove it
5784
+ if (targetMatchers.size === 0) {
5785
+ config.targets.delete(target);
5786
+ }
5787
+ }
5788
+
5789
+ // Check if this matcher is still used by any target
5790
+ let matcherStillUsed = false;
5791
+ for (const matcherMap of config.targets.values()) {
5792
+ if (matcherMap.has(matcher)) {
5793
+ matcherStillUsed = true;
5794
+ break;
5795
+ }
5796
+ }
5797
+
5798
+ // If not used anymore, remove from matchers set
5799
+ if (!matcherStillUsed) {
5800
+ config.matchers.delete(matcher);
5801
+ }
5802
+
5803
+ // If no more targets or matchers, detach observer
5804
+ if (config.targets.size === 0 || config.matchers.size === 0) {
5805
+ _detachObserver(host);
5806
+ }
5807
+ };
5808
+
5809
+ /**
5810
+ * Generic function to transport attributes from a host element to a target element.
5811
+ *
5812
+ * @param {Object} params - The parameters object.
5813
+ * @param {HTMLElement} params.host - The host element from which to transport attributes.
5814
+ * @param {HTMLElement} params.target - The target element to which attributes will be transported.
5815
+ * @param {Function} params.matcher - Function that takes an attribute name and returns true if it should be transported.
5816
+ * @param {boolean} [params.removeOriginal=true] - Whether to remove original attributes from host.
5817
+ * @returns {void}
5818
+ * @private
5819
+ */
5820
+ const _transportAttributes = ({ host, target, matcher, removeOriginal = true }) => {
5821
+ // Get a list of all matching attributes on the host element and their values
5822
+ const matchingAttributes = host.getAttributeNames()
5823
+ .filter(attr => matcher(attr))
5824
+ .reduce((acc, attr) => {
5825
+ acc[attr] = host.getAttribute(attr);
5826
+ return acc;
5827
+ }, {});
5828
+
5829
+ // Move matching attributes to the target element, removing them from the host if removeOriginal is true
5830
+ Object.entries(matchingAttributes).forEach(([key, value]) => {
5831
+ _setObservedAttribute(host, target, matcher, key, value);
5832
+ target.setAttribute(key, value);
5833
+ if (removeOriginal) {
5834
+ host.removeAttribute(key);
5835
+ }
5836
+ });
5837
+ };
5838
+
5839
+ /**
5840
+ * Attaches a MutationObserver to the host element to monitor attribute changes.
5841
+ *
5842
+ * @param {HTMLElement} host - The element to observe for attribute changes.
5843
+ * @returns {MutationObserver} The observer instance.
5844
+ * @private
5845
+ */
5846
+ const _attachObserver = (host) => {
5847
+ // If an observer for this host already exists, return it
5848
+ if (_observers.has(host)) {
5849
+ return _observers.get(host);
5850
+ }
5851
+
5852
+ // Create a new MutationObserver
5853
+ const observer = new MutationObserver((mutations) => {
5854
+ const config = _transportConfig.get(host);
5855
+ if (!config) return;
5856
+
5857
+ // For each mutation affecting attributes
5858
+ mutations
5859
+ .filter(mutation => mutation.type === 'attributes')
5860
+ .forEach(mutation => {
5861
+ const attributeName = mutation.attributeName;
5862
+
5863
+ // Find matchers that care about this attribute
5864
+ for (const matcher of config.matchers) {
5865
+ if (matcher(attributeName)) {
5866
+ // For each target that uses this matcher
5867
+ for (const [target, matcherConfigs] of config.targets.entries()) {
5868
+ if (matcherConfigs.has(matcher)) {
5869
+ const { removeOriginal } = matcherConfigs.get(matcher);
5870
+ _transportAttributes({
5871
+ host,
5872
+ target,
5873
+ matcher,
5874
+ removeOriginal
5875
+ });
5876
+ }
5877
+ }
5878
+ }
5879
+ }
5880
+ });
5881
+ });
5882
+
5883
+ // Start observing attribute changes
5884
+ observer.observe(host, { attributes: true });
5885
+
5886
+ // Store the observer
5887
+ _observers.set(host, observer);
5888
+
5889
+ return observer;
5890
+ };
5891
+
5892
+ /**
5893
+ * Detaches and cleans up the MutationObserver for a given host element.
5894
+ *
5895
+ * @param {HTMLElement} host - The element whose observer should be detached.
5896
+ * @private
5897
+ */
5898
+ const _detachObserver = (host) => {
5899
+ if (_observers.has(host)) {
5900
+ const observer = _observers.get(host);
5901
+ observer.disconnect();
5902
+ _observers.delete(host);
5903
+ }
5904
+
5905
+ // Clean up the transport config as well
5906
+ if (_transportConfig.has(host)) {
5907
+ _transportConfig.delete(host);
5908
+ }
5909
+ };
5910
+
5911
+ /**
5912
+ * Gets the matcher configuration for a specific host, target, and matcher
5913
+ * @param {HTMLElement} host - The host element
5914
+ * @param {HTMLElement} target - The target element
5915
+ * @param {Function} matcher - The matcher function
5916
+ * @returns {Object|undefined} The matcher configuration if found
5917
+ * @private
5918
+ */
5919
+ const _getMatcherConfig = (host, target, matcher) => {
5920
+ const config = _transportConfig.get(host);
5921
+ if (!config) return undefined;
5922
+
5923
+ const targetMatchers = config.targets.get(target);
5924
+ if (!targetMatchers) return undefined;
5925
+
5926
+ return targetMatchers.get(matcher);
5927
+ };
5928
+
5929
+ /**
5930
+ * Sets an observed attribute value
5931
+ * @param {HTMLElement} host - The host element
5932
+ * @param {HTMLElement} target - The target element
5933
+ * @param {Function} matcher - The matcher function
5934
+ * @param {string} key - The attribute name
5935
+ * @param {string} value - The attribute value
5936
+ * @private
5937
+ */
5938
+ const _setObservedAttribute = (host, target, matcher, key, value) => {
5939
+ const matcherConfig = _getMatcherConfig(host, target, matcher);
5940
+ if (matcherConfig) {
5941
+ matcherConfig.currentAttributes.set(key, value);
5942
+ }
5943
+ };
5944
+
5945
+ const _getObservedAttribute = (host, target, matcher, attr) => {
5946
+ const matcherConfig = _getMatcherConfig(host, target, matcher);
5947
+ if (matcherConfig) return matcherConfig.currentAttributes.get(attr);
5948
+ return undefined;
5949
+ };
5950
+
5951
+ const _getObservedAttributes = (host, target, matcher) => {
5952
+ const matcherConfig = _getMatcherConfig(host, target, matcher);
5953
+ if (matcherConfig) return Array.from(matcherConfig.currentAttributes.entries());
5954
+ return [];
5955
+ };
5956
+
5957
+ const _matchers = {
5958
+ 'aria-': attr => attr.startsWith('aria-'),
5959
+ 'role': attr => attr.match(/^role$/)
5960
+ };
5961
+
5962
+ const transportAllA11yAttributes = ({ host, target, removeOriginal = true }) => {
5963
+ return transportAttributes({
5964
+ host,
5965
+ target,
5966
+ match: attr => {
5967
+ for (const key in _matchers) {
5968
+ if (_matchers[key](attr)) return true;
5969
+ }
5970
+ return false;
5971
+ },
5972
+ removeOriginal
5973
+ });
5974
+ };
5975
+
5976
+ let AuroElement$1 = class AuroElement extends i$2 {
5977
+
5978
+ /**
5979
+ * @type {Object} return object from transportAttributes via a11yUtilities
5980
+ * @property {Function} cleanup - Function to clean up the attribute watcher.
5981
+ * @property {Function} getCurrentAttributes - Function to get the current attributes being watched and their values.
5982
+ * @property {Function} getObservedAttribute - Function to get the value of a specific observed attribute by name.
5983
+ * @private
5984
+ */
5985
+ attributeWatcher;
5986
+
5987
+ static get properties() {
5988
+ return {
5989
+
5990
+ /**
5991
+ * Defines the layout of an element.
5992
+ * @default {'default'}
5993
+ */
5994
+ layout: {
5995
+ type: String,
5996
+ attribute: "layout",
5997
+ reflect: true
5998
+ },
5999
+
6000
+ /**
6001
+ * Defines the shape of an element.
6002
+ * @property {'default', 'rounded', 'pill', 'circle'}
6003
+ * @default {'default'}
6004
+ */
6005
+ shape: {
6006
+ type: String,
6007
+ attribute: "shape",
6008
+ reflect: true
6009
+ },
6010
+
6011
+ /**
6012
+ * Defines the size of an element.
6013
+ * @property {'xs', 'sm', 'md', 'lg', 'xl'}
6014
+ * @default {'md'}
6015
+ */
6016
+ size: {
6017
+ type: String,
6018
+ attribute: "size",
6019
+ reflect: true
6020
+ },
6021
+
6022
+ /**
6023
+ * This Boolean attribute lets you specify that the element should be rendered in dark mode.
6024
+ * @default {false}
6025
+ */
6026
+ onDark: {
6027
+ type: Boolean,
6028
+ attribute: "ondark",
6029
+ reflect: true
6030
+ },
6031
+
6032
+ /**
6033
+ * A reference to the wrapper element in the shadow DOM.
6034
+ * This is used to apply layout and shape classes dynamically.
6035
+ * @type {HTMLElement|null}
6036
+ * @default {null}
6037
+ * @private
6038
+ */
6039
+ wrapper: {
6040
+ attribute: false,
6041
+ reflect: false
6042
+ }
6043
+ };
6044
+ }
6045
+
6046
+
6047
+
6048
+ resetShapeClasses() {
6049
+ if (this.shape && this.size) {
6050
+
6051
+ if (this.wrapper) {
6052
+ this.wrapper.classList.forEach((className) => {
6053
+ if (className.startsWith('shape-')) {
6054
+ this.wrapper.classList.remove(className);
6055
+ }
6056
+ });
6057
+
6058
+ this.wrapper.classList.add(`shape-${this.shape.toLowerCase()}-${this.size.toLowerCase()}`);
6059
+ }
6060
+ }
6061
+ }
6062
+
6063
+ resetLayoutClasses() {
6064
+ if (this.layout) {
6065
+ if (this.wrapper) {
6066
+ this.wrapper.classList.forEach((className) => {
6067
+ if (className.startsWith('layout-')) {
6068
+ this.wrapper.classList.remove(className);
6069
+ }
6070
+ });
6071
+
6072
+ this.wrapper.classList.add(`layout-${this.layout.toLowerCase()}`);
6073
+ }
6074
+ }
6075
+ }
6076
+
6077
+ updateComponentArchitecture() {
6078
+ this.resetLayoutClasses();
6079
+ this.resetShapeClasses();
6080
+ }
6081
+
6082
+ updated(changedProperties) {
6083
+ if (changedProperties.has('layout') || changedProperties.has('shape') || changedProperties.has('size')) {
6084
+ this.updateComponentArchitecture();
6085
+ }
6086
+ }
6087
+
6088
+ firstUpdated() {
6089
+ super.firstUpdated();
6090
+
6091
+ // Set a reference to the wrapper element in the shadow DOM
6092
+ this.wrapper = this.shadowRoot.querySelector('.wrapper');
6093
+
6094
+ // Initialize the transportation of ARIA attributes to the target element and get the disconnect function for cleanup
6095
+ this.attributeWatcher = transportAllA11yAttributes({ host: this, target: this.shadowRoot.querySelector('.wrapper') });
6096
+ }
6097
+
6098
+ disconnectedCallback() {
6099
+ super.disconnectedCallback();
6100
+
6101
+ // Cleanup the ARIA observer if it exists
6102
+ if (this.attributeWatcher) {
6103
+ this.attributeWatcher.cleanup();
6104
+ this.attributeWatcher = null;
6105
+ }
6106
+ }
6107
+
6108
+ // Try to render the defined `this.layout` layout. If that fails, fall back to the default layout.
6109
+ // This will catch if an invalid layout value is passed in and render the default layout if so.
6110
+ render() {
6111
+ try {
6112
+ return this.renderLayout();
6113
+ } catch (error) {
6114
+ // failed to get the defined layout
6115
+ console.error('Failed to get the defined layout - using the default layout', error); // eslint-disable-line no-console
6116
+
6117
+ // fallback to the default layout
6118
+ return this.getLayout('default');
6119
+ }
6120
+ }
6121
+ };
6122
+
6123
+ 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}.body-default{font-size:var(--wcss-body-default-font-size, 1rem);line-height:var(--wcss-body-default-line-height, 1.5)}.body-default,.body-lg{font-family:var(--wcss-body-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-lg{font-size:var(--wcss-body-lg-font-size, 1.125rem);line-height:var(--wcss-body-lg-line-height, 1.63)}.body-sm{font-size:var(--wcss-body-sm-font-size, 0.875rem);line-height:var(--wcss-body-sm-line-height, 1.25)}.body-sm,.body-xs{font-family:var(--wcss-body-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-xs{font-size:var(--wcss-body-xs-font-size, 0.75rem);line-height:var(--wcss-body-xs-line-height, 1)}.body-2xs{font-family:var(--wcss-body-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-body-2xs-font-size, 0.625rem);font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0);line-height:var(--wcss-body-2xs-line-height, 0.88)}.display-2xl{font-family:var(--wcss-display-2xl-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-2xl-font-size, clamp(3.5rem, 6vw, 5.375rem));font-weight:var(--wcss-display-2xl-weight, 300);letter-spacing:var(--wcss-display-2xl-letter-spacing, 0);line-height:var(--wcss-display-2xl-line-height, 1.3)}.display-xl{font-family:var(--wcss-display-xl-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-xl-font-size, clamp(3rem, 5.3333333333vw, 4.5rem));font-weight:var(--wcss-display-xl-weight, 300);letter-spacing:var(--wcss-display-xl-letter-spacing, 0);line-height:var(--wcss-display-xl-line-height, 1.3)}.display-lg{font-family:var(--wcss-display-lg-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-lg-font-size, clamp(2.75rem, 4.6666666667vw, 4rem));font-weight:var(--wcss-display-lg-weight, 300);letter-spacing:var(--wcss-display-lg-letter-spacing, 0);line-height:var(--wcss-display-lg-line-height, 1.3)}.display-md{font-family:var(--wcss-display-md-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-md-font-size, clamp(2.5rem, 4vw, 3.5rem));font-weight:var(--wcss-display-md-weight, 300);letter-spacing:var(--wcss-display-md-letter-spacing, 0);line-height:var(--wcss-display-md-line-height, 1.3)}.display-sm{font-family:var(--wcss-display-sm-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-sm-font-size, clamp(2rem, 3.6666666667vw, 3rem));font-weight:var(--wcss-display-sm-weight, 300);letter-spacing:var(--wcss-display-sm-letter-spacing, 0);line-height:var(--wcss-display-sm-line-height, 1.3)}.display-xs{font-family:var(--wcss-display-xs-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-xs-font-size, clamp(1.75rem, 3vw, 2.375rem));font-weight:var(--wcss-display-xs-weight, 300);letter-spacing:var(--wcss-display-xs-letter-spacing, 0);line-height:var(--wcss-display-xs-line-height, 1.3)}.heading-xl{font-family:var(--wcss-heading-xl-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-xl-font-size, clamp(2rem, 3vw, 2.5rem));font-weight:var(--wcss-heading-xl-weight, 300);letter-spacing:var(--wcss-heading-xl-letter-spacing, 0);line-height:var(--wcss-heading-xl-line-height, 1.3)}.heading-lg{font-family:var(--wcss-heading-lg-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-lg-font-size, clamp(1.75rem, 2.6666666667vw, 2.25rem));font-weight:var(--wcss-heading-lg-weight, 300);letter-spacing:var(--wcss-heading-lg-letter-spacing, 0);line-height:var(--wcss-heading-lg-line-height, 1.3)}.heading-md{font-family:var(--wcss-heading-md-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-md-font-size, clamp(1.625rem, 2.3333333333vw, 1.75rem));font-weight:var(--wcss-heading-md-weight, 300);letter-spacing:var(--wcss-heading-md-letter-spacing, 0);line-height:var(--wcss-heading-md-line-height, 1.3)}.heading-sm{font-family:var(--wcss-heading-sm-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-sm-font-size, clamp(1.375rem, 2vw, 1.5rem));font-weight:var(--wcss-heading-sm-weight, 300);letter-spacing:var(--wcss-heading-sm-letter-spacing, 0);line-height:var(--wcss-heading-sm-line-height, 1.3)}.heading-xs{font-family:var(--wcss-heading-xs-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-xs-font-size, clamp(1.25rem, 1.6666666667vw, 1.25rem));font-weight:var(--wcss-heading-xs-weight, 450);letter-spacing:var(--wcss-heading-xs-letter-spacing, 0);line-height:var(--wcss-heading-xs-line-height, 1.3)}.heading-2xs{font-family:var(--wcss-heading-2xs-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-2xs-font-size, clamp(1.125rem, 1.5vw, 1.125rem));font-weight:var(--wcss-heading-2xs-weight, 450);letter-spacing:var(--wcss-heading-2xs-letter-spacing, 0);line-height:var(--wcss-heading-2xs-line-height, 1.3)}.accent-2xl{font-family:var(--wcss-accent-2xl-family, "Good OT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-2xl-font-size, clamp(2rem, 3.1666666667vw, 2.375rem));font-weight:var(--wcss-accent-2xl-weight, 450);letter-spacing:var(--wcss-accent-2xl-letter-spacing, 0.05em);line-height:var(--wcss-accent-2xl-line-height, 1)}.accent-xl{font-family:var(--wcss-accent-xl-family, "Good OT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-xl-font-size, clamp(1.625rem, 2.3333333333vw, 2rem));font-weight:var(--wcss-accent-xl-weight, 450);letter-spacing:var(--wcss-accent-xl-letter-spacing, 0.05em);line-height:var(--wcss-accent-xl-line-height, 1.3)}.accent-lg{font-family:var(--wcss-accent-lg-family, "Good OT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-lg-font-size, clamp(1.5rem, 2.1666666667vw, 1.75rem));font-weight:var(--wcss-accent-lg-weight, 450);letter-spacing:var(--wcss-accent-lg-letter-spacing, 0.05em);line-height:var(--wcss-accent-lg-line-height, 1.3)}.accent-md{font-family:var(--wcss-accent-md-family, "Good OT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-md-font-size, clamp(1.375rem, 1.8333333333vw, 1.5rem));font-weight:var(--wcss-accent-md-weight, 500);letter-spacing:var(--wcss-accent-md-letter-spacing, 0.05em);line-height:var(--wcss-accent-md-line-height, 1.3)}.accent-sm{font-family:var(--wcss-accent-sm-family, "Good OT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-sm-font-size, clamp(1.125rem, 1.5vw, 1.25rem));font-weight:var(--wcss-accent-sm-weight, 500);letter-spacing:var(--wcss-accent-sm-letter-spacing, 0.05em);line-height:var(--wcss-accent-sm-line-height, 1.3)}.accent-xs{font-family:var(--wcss-accent-xs-family, "Good OT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-xs-font-size, clamp(1rem, 1.3333333333vw, 1rem));font-weight:var(--wcss-accent-xs-weight, 500);letter-spacing:var(--wcss-accent-xs-letter-spacing, 0.1em);line-height:var(--wcss-accent-xs-line-height, 1.3)}.accent-2xs{font-family:var(--wcss-accent-2xs-family, "Good OT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-2xs-font-size, clamp(0.875rem, 1.1666666667vw, 0.875rem));font-weight:var(--wcss-accent-2xs-weight, 450);letter-spacing:var(--wcss-accent-2xs-letter-spacing, 0.1em);line-height:var(--wcss-accent-2xs-line-height, 1.3)}.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}:host([size=xs][shape=rounded]) ::slotted(auro-icon),:host([size=xs][shape=rounded]) ::slotted([auro-icon]){--ds-auro-icon-size: var(--ds-size-200, 1rem)}:host([size=xs][shape=rounded][variant=primary]) .auro-button:focus,:host([size=xs][shape=rounded][variant=primary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 5px var(--ds-auro-button-border-inset-color)}:host([size=xs][shape=rounded][variant=primary]) .auro-button:focus:after,:host([size=xs][shape=rounded][variant=primary]) .auro-button:focus-visible:after{content:"";position:absolute;border-radius:inherit;box-sizing:content-box;top:0;left:0;width:calc(100% - 2px);height:calc(100% - 2px);border:1px solid var(--ds-auro-button-border-color)}:host([size=xs][shape=rounded][variant=secondary]) .auro-button:focus,:host([size=xs][shape=rounded][variant=secondary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=xs][shape=rounded][variant=tertiary]) .auro-button:focus,:host([size=xs][shape=rounded][variant=tertiary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=xs][shape=rounded][variant=ghost]) .auro-button:focus,:host([size=xs][shape=rounded][variant=ghost]) .auro-button:focus-visible{box-shadow:inset 0 0 0 1px var(--ds-auro-button-border-inset-color)}:host([size=xs][shape=pill]) ::slotted(auro-icon),:host([size=xs][shape=pill]) ::slotted([auro-icon]){--ds-auro-icon-size: var(--ds-size-200, 1rem)}:host([size=xs][shape=pill][variant=primary]) .auro-button:focus,:host([size=xs][shape=pill][variant=primary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 5px var(--ds-auro-button-border-inset-color)}:host([size=xs][shape=pill][variant=primary]) .auro-button:focus:after,:host([size=xs][shape=pill][variant=primary]) .auro-button:focus-visible:after{content:"";position:absolute;border-radius:inherit;box-sizing:content-box;top:0;left:0;width:calc(100% - 2px);height:calc(100% - 2px);border:1px solid var(--ds-auro-button-border-color)}:host([size=xs][shape=pill][variant=secondary]) .auro-button:focus,:host([size=xs][shape=pill][variant=secondary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=xs][shape=pill][variant=tertiary]) .auro-button:focus,:host([size=xs][shape=pill][variant=tertiary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=xs][shape=pill][variant=ghost]) .auro-button:focus,:host([size=xs][shape=pill][variant=ghost]) .auro-button:focus-visible{box-shadow:inset 0 0 0 1px var(--ds-auro-button-border-inset-color)}:host([size=xs][shape=pill-left]) ::slotted(auro-icon),:host([size=xs][shape=pill-left]) ::slotted([auro-icon]){--ds-auro-icon-size: var(--ds-size-200, 1rem)}:host([size=xs][shape=pill-left][variant=primary]) .auro-button:focus,:host([size=xs][shape=pill-left][variant=primary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 5px var(--ds-auro-button-border-inset-color)}:host([size=xs][shape=pill-left][variant=primary]) .auro-button:focus:after,:host([size=xs][shape=pill-left][variant=primary]) .auro-button:focus-visible:after{content:"";position:absolute;border-radius:inherit;box-sizing:content-box;top:0;left:0;width:calc(100% - 2px);height:calc(100% - 2px);border:1px solid var(--ds-auro-button-border-color)}:host([size=xs][shape=pill-left][variant=secondary]) .auro-button:focus,:host([size=xs][shape=pill-left][variant=secondary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=xs][shape=pill-left][variant=tertiary]) .auro-button:focus,:host([size=xs][shape=pill-left][variant=tertiary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=xs][shape=pill-left][variant=ghost]) .auro-button:focus,:host([size=xs][shape=pill-left][variant=ghost]) .auro-button:focus-visible{box-shadow:inset 0 0 0 1px var(--ds-auro-button-border-inset-color)}:host([size=xs][shape=pill-right]) ::slotted(auro-icon),:host([size=xs][shape=pill-right]) ::slotted([auro-icon]){--ds-auro-icon-size: var(--ds-size-200, 1rem)}:host([size=xs][shape=pill-right][variant=primary]) .auro-button:focus,:host([size=xs][shape=pill-right][variant=primary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 5px var(--ds-auro-button-border-inset-color)}:host([size=xs][shape=pill-right][variant=primary]) .auro-button:focus:after,:host([size=xs][shape=pill-right][variant=primary]) .auro-button:focus-visible:after{content:"";position:absolute;border-radius:inherit;box-sizing:content-box;top:0;left:0;width:calc(100% - 2px);height:calc(100% - 2px);border:1px solid var(--ds-auro-button-border-color)}:host([size=xs][shape=pill-right][variant=secondary]) .auro-button:focus,:host([size=xs][shape=pill-right][variant=secondary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=xs][shape=pill-right][variant=tertiary]) .auro-button:focus,:host([size=xs][shape=pill-right][variant=tertiary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=xs][shape=pill-right][variant=ghost]) .auro-button:focus,:host([size=xs][shape=pill-right][variant=ghost]) .auro-button:focus-visible{box-shadow:inset 0 0 0 1px var(--ds-auro-button-border-inset-color)}:host([size=xs][shape=circle]) ::slotted(auro-icon),:host([size=xs][shape=circle]) ::slotted([auro-icon]){--ds-auro-icon-size: var(--ds-size-300, 1.5rem)}:host([size=xs][shape=circle][variant=primary]) .auro-button:focus,:host([size=xs][shape=circle][variant=primary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 2px var(--ds-auro-button-border-inset-color)}:host([size=xs][shape=circle][variant=primary]) .auro-button:focus:after,:host([size=xs][shape=circle][variant=primary]) .auro-button:focus-visible:after{content:"";position:absolute;border-radius:inherit;box-sizing:content-box;top:0;left:0;width:calc(100% - 2px);height:calc(100% - 2px);border:1px solid var(--ds-auro-button-border-color)}:host([size=xs][shape=circle][variant=secondary]) .auro-button:focus,:host([size=xs][shape=circle][variant=secondary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 1px var(--ds-auro-button-border-inset-color)}:host([size=xs][shape=circle][variant=tertiary]) .auro-button:focus,:host([size=xs][shape=circle][variant=tertiary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 2px var(--ds-auro-button-border-inset-color)}:host([size=xs][shape=circle][variant=flat]) .auro-button:focus,:host([size=xs][shape=circle][variant=flat]) .auro-button:focus-visible{box-shadow:inset 0 0 0 1px var(--ds-auro-button-border-inset-color)}:host([size=xs][shape=circle][variant=ghost]) .auro-button:focus,:host([size=xs][shape=circle][variant=ghost]) .auro-button:focus-visible{box-shadow:inset 0 0 0 1px var(--ds-auro-button-border-inset-color)}:host([size=xs][shape=square]) ::slotted(auro-icon),:host([size=xs][shape=square]) ::slotted([auro-icon]){--ds-auro-icon-size: var(--ds-size-300, 1.5rem)}:host([size=xs][shape=square][variant=primary]) .auro-button:focus,:host([size=xs][shape=square][variant=primary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 2px var(--ds-auro-button-border-inset-color)}:host([size=xs][shape=square][variant=primary]) .auro-button:focus:after,:host([size=xs][shape=square][variant=primary]) .auro-button:focus-visible:after{content:"";position:absolute;border-radius:inherit;box-sizing:content-box;top:0;left:0;width:calc(100% - 2px);height:calc(100% - 2px);border:1px solid var(--ds-auro-button-border-color)}:host([size=xs][shape=square][variant=secondary]) .auro-button:focus,:host([size=xs][shape=square][variant=secondary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 1px var(--ds-auro-button-border-inset-color)}:host([size=xs][shape=square][variant=tertiary]) .auro-button:focus,:host([size=xs][shape=square][variant=tertiary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 2px var(--ds-auro-button-border-inset-color)}:host([size=xs][shape=square][variant=flat]) .auro-button:focus,:host([size=xs][shape=square][variant=flat]) .auro-button:focus-visible{box-shadow:inset 0 0 0 1px var(--ds-auro-button-border-inset-color)}:host([size=xs][shape=square][variant=ghost]) .auro-button:focus,:host([size=xs][shape=square][variant=ghost]) .auro-button:focus-visible{box-shadow:inset 0 0 0 1px var(--ds-auro-button-border-inset-color)}:host([size=sm][shape=rounded]) ::slotted(auro-icon),:host([size=sm][shape=rounded]) ::slotted([auro-icon]){--ds-auro-icon-size: var(--ds-size-300, 1.5rem)}:host([size=sm][shape=rounded][variant=primary]) .auro-button:focus,:host([size=sm][shape=rounded][variant=primary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 5px var(--ds-auro-button-border-inset-color)}:host([size=sm][shape=rounded][variant=primary]) .auro-button:focus:after,:host([size=sm][shape=rounded][variant=primary]) .auro-button:focus-visible:after{content:"";position:absolute;border-radius:inherit;box-sizing:content-box;top:0;left:0;width:calc(100% - 2px);height:calc(100% - 2px);border:1px solid var(--ds-auro-button-border-color)}:host([size=sm][shape=rounded][variant=secondary]) .auro-button:focus,:host([size=sm][shape=rounded][variant=secondary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=sm][shape=rounded][variant=tertiary]) .auro-button:focus,:host([size=sm][shape=rounded][variant=tertiary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=sm][shape=rounded][variant=ghost]) .auro-button:focus,:host([size=sm][shape=rounded][variant=ghost]) .auro-button:focus-visible{box-shadow:inset 0 0 0 1px var(--ds-auro-button-border-inset-color)}:host([size=sm][shape=pill]) ::slotted(auro-icon),:host([size=sm][shape=pill]) ::slotted([auro-icon]){--ds-auro-icon-size: var(--ds-size-300, 1.5rem)}:host([size=sm][shape=pill][variant=primary]) .auro-button:focus,:host([size=sm][shape=pill][variant=primary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 5px var(--ds-auro-button-border-inset-color)}:host([size=sm][shape=pill][variant=primary]) .auro-button:focus:after,:host([size=sm][shape=pill][variant=primary]) .auro-button:focus-visible:after{content:"";position:absolute;border-radius:inherit;box-sizing:content-box;top:0;left:0;width:calc(100% - 2px);height:calc(100% - 2px);border:1px solid var(--ds-auro-button-border-color)}:host([size=sm][shape=pill][variant=secondary]) .auro-button:focus,:host([size=sm][shape=pill][variant=secondary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=sm][shape=pill][variant=tertiary]) .auro-button:focus,:host([size=sm][shape=pill][variant=tertiary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=sm][shape=pill][variant=ghost]) .auro-button:focus,:host([size=sm][shape=pill][variant=ghost]) .auro-button:focus-visible{box-shadow:inset 0 0 0 1px var(--ds-auro-button-border-inset-color)}:host([size=sm][shape=pill-left]) ::slotted(auro-icon),:host([size=sm][shape=pill-left]) ::slotted([auro-icon]){--ds-auro-icon-size: var(--ds-size-300, 1.5rem)}:host([size=sm][shape=pill-left][variant=primary]) .auro-button:focus,:host([size=sm][shape=pill-left][variant=primary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 5px var(--ds-auro-button-border-inset-color)}:host([size=sm][shape=pill-left][variant=primary]) .auro-button:focus:after,:host([size=sm][shape=pill-left][variant=primary]) .auro-button:focus-visible:after{content:"";position:absolute;border-radius:inherit;box-sizing:content-box;top:0;left:0;width:calc(100% - 2px);height:calc(100% - 2px);border:1px solid var(--ds-auro-button-border-color)}:host([size=sm][shape=pill-left][variant=secondary]) .auro-button:focus,:host([size=sm][shape=pill-left][variant=secondary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=sm][shape=pill-left][variant=tertiary]) .auro-button:focus,:host([size=sm][shape=pill-left][variant=tertiary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=sm][shape=pill-left][variant=ghost]) .auro-button:focus,:host([size=sm][shape=pill-left][variant=ghost]) .auro-button:focus-visible{box-shadow:inset 0 0 0 1px var(--ds-auro-button-border-inset-color)}:host([size=sm][shape=pill-right]) ::slotted(auro-icon),:host([size=sm][shape=pill-right]) ::slotted([auro-icon]){--ds-auro-icon-size: var(--ds-size-300, 1.5rem)}:host([size=sm][shape=pill-right][variant=primary]) .auro-button:focus,:host([size=sm][shape=pill-right][variant=primary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 5px var(--ds-auro-button-border-inset-color)}:host([size=sm][shape=pill-right][variant=primary]) .auro-button:focus:after,:host([size=sm][shape=pill-right][variant=primary]) .auro-button:focus-visible:after{content:"";position:absolute;border-radius:inherit;box-sizing:content-box;top:0;left:0;width:calc(100% - 2px);height:calc(100% - 2px);border:1px solid var(--ds-auro-button-border-color)}:host([size=sm][shape=pill-right][variant=secondary]) .auro-button:focus,:host([size=sm][shape=pill-right][variant=secondary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=sm][shape=pill-right][variant=tertiary]) .auro-button:focus,:host([size=sm][shape=pill-right][variant=tertiary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=sm][shape=pill-right][variant=ghost]) .auro-button:focus,:host([size=sm][shape=pill-right][variant=ghost]) .auro-button:focus-visible{box-shadow:inset 0 0 0 1px var(--ds-auro-button-border-inset-color)}:host([size=sm][shape=circle]) ::slotted(auro-icon),:host([size=sm][shape=circle]) ::slotted([auro-icon]){--ds-auro-icon-size: var(--ds-size-300, 1.5rem)}:host([size=sm][shape=circle][variant=primary]) .auro-button:focus,:host([size=sm][shape=circle][variant=primary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 3px var(--ds-auro-button-border-inset-color)}:host([size=sm][shape=circle][variant=primary]) .auro-button:focus:after,:host([size=sm][shape=circle][variant=primary]) .auro-button:focus-visible:after{content:"";position:absolute;border-radius:inherit;box-sizing:content-box;top:0;left:0;width:calc(100% - 2px);height:calc(100% - 2px);border:1px solid var(--ds-auro-button-border-color)}:host([size=sm][shape=circle][variant=secondary]) .auro-button:focus,:host([size=sm][shape=circle][variant=secondary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 3px var(--ds-auro-button-border-inset-color)}:host([size=sm][shape=circle][variant=tertiary]) .auro-button:focus,:host([size=sm][shape=circle][variant=tertiary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=sm][shape=circle][variant=flat]) .auro-button:focus,:host([size=sm][shape=circle][variant=flat]) .auro-button:focus-visible{box-shadow:inset 0 0 0 1px var(--ds-auro-button-border-inset-color)}:host([size=sm][shape=circle][variant=ghost]) .auro-button:focus,:host([size=sm][shape=circle][variant=ghost]) .auro-button:focus-visible{box-shadow:inset 0 0 0 1px var(--ds-auro-button-border-inset-color)}:host([size=sm][shape=square]) ::slotted(auro-icon),:host([size=sm][shape=square]) ::slotted([auro-icon]){--ds-auro-icon-size: var(--ds-size-300, 1.5rem)}:host([size=sm][shape=square][variant=primary]) .auro-button:focus,:host([size=sm][shape=square][variant=primary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 3px var(--ds-auro-button-border-inset-color)}:host([size=sm][shape=square][variant=primary]) .auro-button:focus:after,:host([size=sm][shape=square][variant=primary]) .auro-button:focus-visible:after{content:"";position:absolute;border-radius:inherit;box-sizing:content-box;top:0;left:0;width:calc(100% - 2px);height:calc(100% - 2px);border:1px solid var(--ds-auro-button-border-color)}:host([size=sm][shape=square][variant=secondary]) .auro-button:focus,:host([size=sm][shape=square][variant=secondary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 3px var(--ds-auro-button-border-inset-color)}:host([size=sm][shape=square][variant=tertiary]) .auro-button:focus,:host([size=sm][shape=square][variant=tertiary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=sm][shape=square][variant=flat]) .auro-button:focus,:host([size=sm][shape=square][variant=flat]) .auro-button:focus-visible{box-shadow:inset 0 0 0 1px var(--ds-auro-button-border-inset-color)}:host([size=sm][shape=square][variant=ghost]) .auro-button:focus,:host([size=sm][shape=square][variant=ghost]) .auro-button:focus-visible{box-shadow:inset 0 0 0 1px var(--ds-auro-button-border-inset-color)}:host([size=md][shape=rounded]) ::slotted(auro-icon),:host([size=md][shape=rounded]) ::slotted([auro-icon]){--ds-auro-icon-size: var(--ds-size-300, 1.5rem)}:host([size=md][shape=rounded][variant=primary]) .auro-button:focus,:host([size=md][shape=rounded][variant=primary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 5px var(--ds-auro-button-border-inset-color)}:host([size=md][shape=rounded][variant=primary]) .auro-button:focus:after,:host([size=md][shape=rounded][variant=primary]) .auro-button:focus-visible:after{content:"";position:absolute;border-radius:inherit;box-sizing:content-box;top:0;left:0;width:calc(100% - 2px);height:calc(100% - 2px);border:1px solid var(--ds-auro-button-border-color)}:host([size=md][shape=rounded][variant=secondary]) .auro-button:focus,:host([size=md][shape=rounded][variant=secondary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=md][shape=rounded][variant=tertiary]) .auro-button:focus,:host([size=md][shape=rounded][variant=tertiary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=md][shape=rounded][variant=ghost]) .auro-button:focus,:host([size=md][shape=rounded][variant=ghost]) .auro-button:focus-visible{box-shadow:inset 0 0 0 1px var(--ds-auro-button-border-inset-color)}:host([size=md][shape=pill]) ::slotted(auro-icon),:host([size=md][shape=pill]) ::slotted([auro-icon]){--ds-auro-icon-size: var(--ds-size-300, 1.5rem)}:host([size=md][shape=pill][variant=primary]) .auro-button:focus,:host([size=md][shape=pill][variant=primary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 5px var(--ds-auro-button-border-inset-color)}:host([size=md][shape=pill][variant=primary]) .auro-button:focus:after,:host([size=md][shape=pill][variant=primary]) .auro-button:focus-visible:after{content:"";position:absolute;border-radius:inherit;box-sizing:content-box;top:0;left:0;width:calc(100% - 2px);height:calc(100% - 2px);border:1px solid var(--ds-auro-button-border-color)}:host([size=md][shape=pill][variant=secondary]) .auro-button:focus,:host([size=md][shape=pill][variant=secondary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=md][shape=pill][variant=tertiary]) .auro-button:focus,:host([size=md][shape=pill][variant=tertiary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=md][shape=pill][variant=ghost]) .auro-button:focus,:host([size=md][shape=pill][variant=ghost]) .auro-button:focus-visible{box-shadow:inset 0 0 0 1px var(--ds-auro-button-border-inset-color)}:host([size=md][shape=pill-left]) ::slotted(auro-icon),:host([size=md][shape=pill-left]) ::slotted([auro-icon]){--ds-auro-icon-size: var(--ds-size-300, 1.5rem)}:host([size=md][shape=pill-left][variant=primary]) .auro-button:focus,:host([size=md][shape=pill-left][variant=primary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 5px var(--ds-auro-button-border-inset-color)}:host([size=md][shape=pill-left][variant=primary]) .auro-button:focus:after,:host([size=md][shape=pill-left][variant=primary]) .auro-button:focus-visible:after{content:"";position:absolute;border-radius:inherit;box-sizing:content-box;top:0;left:0;width:calc(100% - 2px);height:calc(100% - 2px);border:1px solid var(--ds-auro-button-border-color)}:host([size=md][shape=pill-left][variant=secondary]) .auro-button:focus,:host([size=md][shape=pill-left][variant=secondary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=md][shape=pill-left][variant=tertiary]) .auro-button:focus,:host([size=md][shape=pill-left][variant=tertiary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=md][shape=pill-left][variant=ghost]) .auro-button:focus,:host([size=md][shape=pill-left][variant=ghost]) .auro-button:focus-visible{box-shadow:inset 0 0 0 1px var(--ds-auro-button-border-inset-color)}:host([size=md][shape=pill-right]) ::slotted(auro-icon),:host([size=md][shape=pill-right]) ::slotted([auro-icon]){--ds-auro-icon-size: var(--ds-size-300, 1.5rem)}:host([size=md][shape=pill-right][variant=primary]) .auro-button:focus,:host([size=md][shape=pill-right][variant=primary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 5px var(--ds-auro-button-border-inset-color)}:host([size=md][shape=pill-right][variant=primary]) .auro-button:focus:after,:host([size=md][shape=pill-right][variant=primary]) .auro-button:focus-visible:after{content:"";position:absolute;border-radius:inherit;box-sizing:content-box;top:0;left:0;width:calc(100% - 2px);height:calc(100% - 2px);border:1px solid var(--ds-auro-button-border-color)}:host([size=md][shape=pill-right][variant=secondary]) .auro-button:focus,:host([size=md][shape=pill-right][variant=secondary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=md][shape=pill-right][variant=tertiary]) .auro-button:focus,:host([size=md][shape=pill-right][variant=tertiary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=md][shape=pill-right][variant=ghost]) .auro-button:focus,:host([size=md][shape=pill-right][variant=ghost]) .auro-button:focus-visible{box-shadow:inset 0 0 0 1px var(--ds-auro-button-border-inset-color)}:host([size=md][shape=circle]) ::slotted(auro-icon),:host([size=md][shape=circle]) ::slotted([auro-icon]){--ds-auro-icon-size: var(--ds-size-300, 1.5rem)}:host([size=md][shape=circle][variant=primary]) .auro-button:focus,:host([size=md][shape=circle][variant=primary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=md][shape=circle][variant=primary]) .auro-button:focus:after,:host([size=md][shape=circle][variant=primary]) .auro-button:focus-visible:after{content:"";position:absolute;border-radius:inherit;box-sizing:content-box;top:0;left:0;width:calc(100% - 2px);height:calc(100% - 2px);border:1px solid var(--ds-auro-button-border-color)}:host([size=md][shape=circle][variant=secondary]) .auro-button:focus,:host([size=md][shape=circle][variant=secondary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 3px var(--ds-auro-button-border-inset-color)}:host([size=md][shape=circle][variant=tertiary]) .auro-button:focus,:host([size=md][shape=circle][variant=tertiary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=md][shape=circle][variant=flat]) .auro-button:focus,:host([size=md][shape=circle][variant=flat]) .auro-button:focus-visible{box-shadow:inset 0 0 0 1px var(--ds-auro-button-border-inset-color)}:host([size=md][shape=circle][variant=ghost]) .auro-button:focus,:host([size=md][shape=circle][variant=ghost]) .auro-button:focus-visible{box-shadow:inset 0 0 0 1px var(--ds-auro-button-border-inset-color)}:host([size=md][shape=square]) ::slotted(auro-icon),:host([size=md][shape=square]) ::slotted([auro-icon]){--ds-auro-icon-size: var(--ds-size-300, 1.5rem)}:host([size=md][shape=square][variant=primary]) .auro-button:focus,:host([size=md][shape=square][variant=primary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=md][shape=square][variant=primary]) .auro-button:focus:after,:host([size=md][shape=square][variant=primary]) .auro-button:focus-visible:after{content:"";position:absolute;border-radius:inherit;box-sizing:content-box;top:0;left:0;width:calc(100% - 2px);height:calc(100% - 2px);border:1px solid var(--ds-auro-button-border-color)}:host([size=md][shape=square][variant=secondary]) .auro-button:focus,:host([size=md][shape=square][variant=secondary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 3px var(--ds-auro-button-border-inset-color)}:host([size=md][shape=square][variant=tertiary]) .auro-button:focus,:host([size=md][shape=square][variant=tertiary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=md][shape=square][variant=flat]) .auro-button:focus,:host([size=md][shape=square][variant=flat]) .auro-button:focus-visible{box-shadow:inset 0 0 0 1px var(--ds-auro-button-border-inset-color)}:host([size=md][shape=square][variant=ghost]) .auro-button:focus,:host([size=md][shape=square][variant=ghost]) .auro-button:focus-visible{box-shadow:inset 0 0 0 1px var(--ds-auro-button-border-inset-color)}:host([size=lg][shape=rounded]) ::slotted(auro-icon),:host([size=lg][shape=rounded]) ::slotted([auro-icon]){--ds-auro-icon-size: var(--ds-size-300, 1.5rem)}:host([size=lg][shape=rounded][variant=primary]) .auro-button:focus,:host([size=lg][shape=rounded][variant=primary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 5px var(--ds-auro-button-border-inset-color)}:host([size=lg][shape=rounded][variant=primary]) .auro-button:focus:after,:host([size=lg][shape=rounded][variant=primary]) .auro-button:focus-visible:after{content:"";position:absolute;border-radius:inherit;box-sizing:content-box;top:0;left:0;width:calc(100% - 2px);height:calc(100% - 2px);border:1px solid var(--ds-auro-button-border-color)}:host([size=lg][shape=rounded][variant=secondary]) .auro-button:focus,:host([size=lg][shape=rounded][variant=secondary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=lg][shape=rounded][variant=tertiary]) .auro-button:focus,:host([size=lg][shape=rounded][variant=tertiary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=lg][shape=rounded][variant=ghost]) .auro-button:focus,:host([size=lg][shape=rounded][variant=ghost]) .auro-button:focus-visible{box-shadow:inset 0 0 0 1px var(--ds-auro-button-border-inset-color)}:host([size=lg][shape=pill]) ::slotted(auro-icon),:host([size=lg][shape=pill]) ::slotted([auro-icon]){--ds-auro-icon-size: var(--ds-size-300, 1.5rem)}:host([size=lg][shape=pill][variant=primary]) .auro-button:focus,:host([size=lg][shape=pill][variant=primary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 5px var(--ds-auro-button-border-inset-color)}:host([size=lg][shape=pill][variant=primary]) .auro-button:focus:after,:host([size=lg][shape=pill][variant=primary]) .auro-button:focus-visible:after{content:"";position:absolute;border-radius:inherit;box-sizing:content-box;top:0;left:0;width:calc(100% - 2px);height:calc(100% - 2px);border:1px solid var(--ds-auro-button-border-color)}:host([size=lg][shape=pill][variant=secondary]) .auro-button:focus,:host([size=lg][shape=pill][variant=secondary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=lg][shape=pill][variant=tertiary]) .auro-button:focus,:host([size=lg][shape=pill][variant=tertiary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=lg][shape=pill][variant=ghost]) .auro-button:focus,:host([size=lg][shape=pill][variant=ghost]) .auro-button:focus-visible{box-shadow:inset 0 0 0 1px var(--ds-auro-button-border-inset-color)}:host([size=lg][shape=pill-left]) ::slotted(auro-icon),:host([size=lg][shape=pill-left]) ::slotted([auro-icon]){--ds-auro-icon-size: var(--ds-size-300, 1.5rem)}:host([size=lg][shape=pill-left][variant=primary]) .auro-button:focus,:host([size=lg][shape=pill-left][variant=primary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 5px var(--ds-auro-button-border-inset-color)}:host([size=lg][shape=pill-left][variant=primary]) .auro-button:focus:after,:host([size=lg][shape=pill-left][variant=primary]) .auro-button:focus-visible:after{content:"";position:absolute;border-radius:inherit;box-sizing:content-box;top:0;left:0;width:calc(100% - 2px);height:calc(100% - 2px);border:1px solid var(--ds-auro-button-border-color)}:host([size=lg][shape=pill-left][variant=secondary]) .auro-button:focus,:host([size=lg][shape=pill-left][variant=secondary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=lg][shape=pill-left][variant=tertiary]) .auro-button:focus,:host([size=lg][shape=pill-left][variant=tertiary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=lg][shape=pill-left][variant=ghost]) .auro-button:focus,:host([size=lg][shape=pill-left][variant=ghost]) .auro-button:focus-visible{box-shadow:inset 0 0 0 1px var(--ds-auro-button-border-inset-color)}:host([size=lg][shape=pill-right]) ::slotted(auro-icon),:host([size=lg][shape=pill-right]) ::slotted([auro-icon]){--ds-auro-icon-size: var(--ds-size-300, 1.5rem)}:host([size=lg][shape=pill-right][variant=primary]) .auro-button:focus,:host([size=lg][shape=pill-right][variant=primary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 5px var(--ds-auro-button-border-inset-color)}:host([size=lg][shape=pill-right][variant=primary]) .auro-button:focus:after,:host([size=lg][shape=pill-right][variant=primary]) .auro-button:focus-visible:after{content:"";position:absolute;border-radius:inherit;box-sizing:content-box;top:0;left:0;width:calc(100% - 2px);height:calc(100% - 2px);border:1px solid var(--ds-auro-button-border-color)}:host([size=lg][shape=pill-right][variant=secondary]) .auro-button:focus,:host([size=lg][shape=pill-right][variant=secondary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=lg][shape=pill-right][variant=tertiary]) .auro-button:focus,:host([size=lg][shape=pill-right][variant=tertiary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=lg][shape=pill-right][variant=ghost]) .auro-button:focus,:host([size=lg][shape=pill-right][variant=ghost]) .auro-button:focus-visible{box-shadow:inset 0 0 0 1px var(--ds-auro-button-border-inset-color)}:host([size=lg][shape=circle]) ::slotted(auro-icon),:host([size=lg][shape=circle]) ::slotted([auro-icon]){--ds-auro-icon-size: calc(var(--ds-size-300, 1.5rem) + var(--ds-size-50, 0.25rem))}:host([size=lg][shape=circle][variant=primary]) .auro-button:focus,:host([size=lg][shape=circle][variant=primary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4.33px var(--ds-auro-button-border-inset-color)}:host([size=lg][shape=circle][variant=primary]) .auro-button:focus:after,:host([size=lg][shape=circle][variant=primary]) .auro-button:focus-visible:after{content:"";position:absolute;border-radius:inherit;box-sizing:content-box;top:0;left:0;width:calc(100% - 2px);height:calc(100% - 2px);border:1px solid var(--ds-auro-button-border-color)}:host([size=lg][shape=circle][variant=secondary]) .auro-button:focus,:host([size=lg][shape=circle][variant=secondary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 3px var(--ds-auro-button-border-inset-color)}:host([size=lg][shape=circle][variant=tertiary]) .auro-button:focus,:host([size=lg][shape=circle][variant=tertiary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=lg][shape=circle][variant=flat]) .auro-button:focus,:host([size=lg][shape=circle][variant=flat]) .auro-button:focus-visible{box-shadow:inset 0 0 0 1px var(--ds-auro-button-border-inset-color)}:host([size=lg][shape=circle][variant=ghost]) .auro-button:focus,:host([size=lg][shape=circle][variant=ghost]) .auro-button:focus-visible{box-shadow:inset 0 0 0 1px var(--ds-auro-button-border-inset-color)}:host([size=lg][shape=square]) ::slotted(auro-icon),:host([size=lg][shape=square]) ::slotted([auro-icon]){--ds-auro-icon-size: calc(var(--ds-size-300, 1.5rem) + var(--ds-size-50, 0.25rem))}:host([size=lg][shape=square][variant=primary]) .auro-button:focus,:host([size=lg][shape=square][variant=primary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4.33px var(--ds-auro-button-border-inset-color)}:host([size=lg][shape=square][variant=primary]) .auro-button:focus:after,:host([size=lg][shape=square][variant=primary]) .auro-button:focus-visible:after{content:"";position:absolute;border-radius:inherit;box-sizing:content-box;top:0;left:0;width:calc(100% - 2px);height:calc(100% - 2px);border:1px solid var(--ds-auro-button-border-color)}:host([size=lg][shape=square][variant=secondary]) .auro-button:focus,:host([size=lg][shape=square][variant=secondary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 3px var(--ds-auro-button-border-inset-color)}:host([size=lg][shape=square][variant=tertiary]) .auro-button:focus,:host([size=lg][shape=square][variant=tertiary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=lg][shape=square][variant=flat]) .auro-button:focus,:host([size=lg][shape=square][variant=flat]) .auro-button:focus-visible{box-shadow:inset 0 0 0 1px var(--ds-auro-button-border-inset-color)}:host([size=lg][shape=square][variant=ghost]) .auro-button:focus,:host([size=lg][shape=square][variant=ghost]) .auro-button:focus-visible{box-shadow:inset 0 0 0 1px var(--ds-auro-button-border-inset-color)}:host([size=xl][shape=rounded]) ::slotted(auro-icon),:host([size=xl][shape=rounded]) ::slotted([auro-icon]){--ds-auro-icon-size: var(--ds-size-300, 1.5rem)}:host([size=xl][shape=rounded][variant=primary]) .auro-button:focus,:host([size=xl][shape=rounded][variant=primary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 5px var(--ds-auro-button-border-inset-color)}:host([size=xl][shape=rounded][variant=primary]) .auro-button:focus:after,:host([size=xl][shape=rounded][variant=primary]) .auro-button:focus-visible:after{content:"";position:absolute;border-radius:inherit;box-sizing:content-box;top:0;left:0;width:calc(100% - 2px);height:calc(100% - 2px);border:1px solid var(--ds-auro-button-border-color)}:host([size=xl][shape=rounded][variant=secondary]) .auro-button:focus,:host([size=xl][shape=rounded][variant=secondary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=xl][shape=rounded][variant=tertiary]) .auro-button:focus,:host([size=xl][shape=rounded][variant=tertiary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=xl][shape=rounded][variant=ghost]) .auro-button:focus,:host([size=xl][shape=rounded][variant=ghost]) .auro-button:focus-visible{box-shadow:inset 0 0 0 1px var(--ds-auro-button-border-inset-color)}:host([size=xl][shape=pill]) ::slotted(auro-icon),:host([size=xl][shape=pill]) ::slotted([auro-icon]){--ds-auro-icon-size: var(--ds-size-300, 1.5rem)}:host([size=xl][shape=pill][variant=primary]) .auro-button:focus,:host([size=xl][shape=pill][variant=primary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 5px var(--ds-auro-button-border-inset-color)}:host([size=xl][shape=pill][variant=primary]) .auro-button:focus:after,:host([size=xl][shape=pill][variant=primary]) .auro-button:focus-visible:after{content:"";position:absolute;border-radius:inherit;box-sizing:content-box;top:0;left:0;width:calc(100% - 2px);height:calc(100% - 2px);border:1px solid var(--ds-auro-button-border-color)}:host([size=xl][shape=pill][variant=secondary]) .auro-button:focus,:host([size=xl][shape=pill][variant=secondary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=xl][shape=pill][variant=tertiary]) .auro-button:focus,:host([size=xl][shape=pill][variant=tertiary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=xl][shape=pill][variant=ghost]) .auro-button:focus,:host([size=xl][shape=pill][variant=ghost]) .auro-button:focus-visible{box-shadow:inset 0 0 0 1px var(--ds-auro-button-border-inset-color)}:host([size=xl][shape=pill-left]) ::slotted(auro-icon),:host([size=xl][shape=pill-left]) ::slotted([auro-icon]){--ds-auro-icon-size: var(--ds-size-300, 1.5rem)}:host([size=xl][shape=pill-left][variant=primary]) .auro-button:focus,:host([size=xl][shape=pill-left][variant=primary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 5px var(--ds-auro-button-border-inset-color)}:host([size=xl][shape=pill-left][variant=primary]) .auro-button:focus:after,:host([size=xl][shape=pill-left][variant=primary]) .auro-button:focus-visible:after{content:"";position:absolute;border-radius:inherit;box-sizing:content-box;top:0;left:0;width:calc(100% - 2px);height:calc(100% - 2px);border:1px solid var(--ds-auro-button-border-color)}:host([size=xl][shape=pill-left][variant=secondary]) .auro-button:focus,:host([size=xl][shape=pill-left][variant=secondary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=xl][shape=pill-left][variant=tertiary]) .auro-button:focus,:host([size=xl][shape=pill-left][variant=tertiary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=xl][shape=pill-left][variant=ghost]) .auro-button:focus,:host([size=xl][shape=pill-left][variant=ghost]) .auro-button:focus-visible{box-shadow:inset 0 0 0 1px var(--ds-auro-button-border-inset-color)}:host([size=xl][shape=pill-right]) ::slotted(auro-icon),:host([size=xl][shape=pill-right]) ::slotted([auro-icon]){--ds-auro-icon-size: var(--ds-size-300, 1.5rem)}:host([size=xl][shape=pill-right][variant=primary]) .auro-button:focus,:host([size=xl][shape=pill-right][variant=primary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 5px var(--ds-auro-button-border-inset-color)}:host([size=xl][shape=pill-right][variant=primary]) .auro-button:focus:after,:host([size=xl][shape=pill-right][variant=primary]) .auro-button:focus-visible:after{content:"";position:absolute;border-radius:inherit;box-sizing:content-box;top:0;left:0;width:calc(100% - 2px);height:calc(100% - 2px);border:1px solid var(--ds-auro-button-border-color)}:host([size=xl][shape=pill-right][variant=secondary]) .auro-button:focus,:host([size=xl][shape=pill-right][variant=secondary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=xl][shape=pill-right][variant=tertiary]) .auro-button:focus,:host([size=xl][shape=pill-right][variant=tertiary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=xl][shape=pill-right][variant=ghost]) .auro-button:focus,:host([size=xl][shape=pill-right][variant=ghost]) .auro-button:focus-visible{box-shadow:inset 0 0 0 1px var(--ds-auro-button-border-inset-color)}:host([size=xl][shape=circle]) ::slotted(auro-icon),:host([size=xl][shape=circle]) ::slotted([auro-icon]){--ds-auro-icon-size: calc(var(--ds-size-400, 2rem) + var(--ds-size-50, 0.25rem))}:host([size=xl][shape=circle][variant=primary]) .auro-button:focus,:host([size=xl][shape=circle][variant=primary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 5px var(--ds-auro-button-border-inset-color)}:host([size=xl][shape=circle][variant=primary]) .auro-button:focus:after,:host([size=xl][shape=circle][variant=primary]) .auro-button:focus-visible:after{content:"";position:absolute;border-radius:inherit;box-sizing:content-box;top:0;left:0;width:calc(100% - 2px);height:calc(100% - 2px);border:1px solid var(--ds-auro-button-border-color)}:host([size=xl][shape=circle][variant=secondary]) .auro-button:focus,:host([size=xl][shape=circle][variant=secondary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 3px var(--ds-auro-button-border-inset-color)}:host([size=xl][shape=circle][variant=tertiary]) .auro-button:focus,:host([size=xl][shape=circle][variant=tertiary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=xl][shape=circle][variant=flat]) .auro-button:focus,:host([size=xl][shape=circle][variant=flat]) .auro-button:focus-visible{box-shadow:inset 0 0 0 1px var(--ds-auro-button-border-inset-color)}:host([size=xl][shape=circle][variant=ghost]) .auro-button:focus,:host([size=xl][shape=circle][variant=ghost]) .auro-button:focus-visible{box-shadow:inset 0 0 0 1px var(--ds-auro-button-border-inset-color)}:host([size=xl][shape=square]) ::slotted(auro-icon),:host([size=xl][shape=square]) ::slotted([auro-icon]){--ds-auro-icon-size: calc(var(--ds-size-400, 2rem) + var(--ds-size-50, 0.25rem))}:host([size=xl][shape=square][variant=primary]) .auro-button:focus,:host([size=xl][shape=square][variant=primary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 5px var(--ds-auro-button-border-inset-color)}:host([size=xl][shape=square][variant=primary]) .auro-button:focus:after,:host([size=xl][shape=square][variant=primary]) .auro-button:focus-visible:after{content:"";position:absolute;border-radius:inherit;box-sizing:content-box;top:0;left:0;width:calc(100% - 2px);height:calc(100% - 2px);border:1px solid var(--ds-auro-button-border-color)}:host([size=xl][shape=square][variant=secondary]) .auro-button:focus,:host([size=xl][shape=square][variant=secondary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 3px var(--ds-auro-button-border-inset-color)}:host([size=xl][shape=square][variant=tertiary]) .auro-button:focus,:host([size=xl][shape=square][variant=tertiary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=xl][shape=square][variant=flat]) .auro-button:focus,:host([size=xl][shape=square][variant=flat]) .auro-button:focus-visible{box-shadow:inset 0 0 0 1px var(--ds-auro-button-border-inset-color)}:host([size=xl][shape=square][variant=ghost]) .auro-button:focus,:host([size=xl][shape=square][variant=ghost]) .auro-button:focus-visible{box-shadow:inset 0 0 0 1px var(--ds-auro-button-border-inset-color)}:host([size=xs]) .inset{padding-inline:var(--ds-size-150, 0.75rem)}:host([fluid]){display:block}:host([fluid]) .auro-button{width:calc(100% - var(--ds-size-150, 0.75rem)*2)}:host([size=sm]) .inset{padding-inline:var(--ds-size-200, 1rem)}:host([fluid]){display:block}:host([fluid]) .auro-button{width:calc(100% - var(--ds-size-200, 1rem)*2)}:host([size=md]) .inset{padding-inline:var(--ds-size-300, 1.5rem)}:host([fluid]){display:block}:host([fluid]) .auro-button{width:calc(100% - var(--ds-size-300, 1.5rem)*2)}:host([size=lg]) .inset{padding-inline:var(--ds-size-400, 2rem)}:host([fluid]){display:block}:host([fluid]) .auro-button{width:calc(100% - var(--ds-size-400, 2rem)*2)}:host([size=xl]) .inset{padding-inline:var(--ds-size-500, 2.5rem)}:host([fluid]){display:block}:host([fluid]) .auro-button{width:calc(100% - var(--ds-size-500, 2.5rem)*2)}:host([shape=circle]) ::slotted(:not(auro-icon):not([auro-icon])){position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}:host([shape=square]) ::slotted(:not(auro-icon):not([auro-icon])){position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}:host([variant=flat]){display:inline-block}::slotted(svg){vertical-align:middle}slot{pointer-events:none}:host{display:inline-block;overflow:hidden}.auro-button{position:relative;cursor:pointer;padding:0 var(--ds-size-300, 1.5rem);padding-inline:unset;padding-block:unset;box-sizing:content-box;overflow:hidden;text-overflow:ellipsis;user-select:none;white-space:nowrap;outline:none;display: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:focus,.auro-button:focus-visible{outline:none}.auro-button:active{transform:scale(0.95)}.auro-button.loading{cursor:not-allowed}.auro-button.loading *:not([auro-loader]){visibility:hidden}@media screen and (min-width: 576px){.auro-button{width:auto}}.auro-button:disabled{cursor:not-allowed;transform:unset}`;
6124
+
6125
+ var colorCss$2$1 = i$5`[auro-loader]{color:var(--ds-auro-button-loader-color, #ffffff)}.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,.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,.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,.auro-button:not([ondark])[variant=ghost]:focus-visible{border-color:transparent;--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,.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,.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,.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,.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));--ds-auro-button-border-color: transparent}.auro-button[ondark][variant=ghost]:focus,.auro-button[ondark][variant=ghost]:focus-visible{border-color:transparent;--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,.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)}`;
6126
+
6127
+ 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}`;
6128
+
6129
+ var shapeSize = i$5`.shape-rounded-xl{min-height:68px;max-height:68px;border-style:solid;overflow:hidden;border-radius:6px}.shape-rounded-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset;box-shadow:none}.shape-rounded-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-rounded-xl.parentBorder{border:0;box-shadow:unset;min-height:68px;max-height:68px}.shape-pill-xl{min-height:68px;max-height:68px;border-style:solid;overflow:hidden;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;overflow:hidden;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;overflow:hidden;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-circle-xl{min-height:68px;max-height:68px;border-style:solid;overflow:hidden;border-radius:50%;min-width:72px;max-width:72px;padding:0}.shape-circle-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset;box-shadow:none}.shape-circle-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-circle-xl.parentBorder{border:0;box-shadow:unset;min-height:68px;max-height:68px}.shape-square-xl{min-height:68px;max-height:68px;border-style:solid;overflow:hidden;border-radius:6px;min-width:72px;max-width:72px;padding:0}.shape-square-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset;box-shadow:none}.shape-square-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-square-xl.parentBorder{border:0;box-shadow:unset;min-height:68px;max-height:68px}.shape-rounded-lg{min-height:52px;max-height:52px;border-style:solid;overflow:hidden;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-lg{min-height:52px;max-height:52px;border-style:solid;overflow:hidden;border-radius:28px}.shape-pill-lg.simple{border-width:0px;min-height:56px;max-height:56px;background-color:unset;box-shadow:none}.shape-pill-lg.thin{border-width:1px;min-height:54px;max-height:54px;background-color:unset}.shape-pill-lg.parentBorder{border:0;box-shadow:unset;min-height:52px;max-height:52px}.shape-pill-left-lg{min-height:52px;max-height:52px;border-style:solid;overflow:hidden;border-radius:28px 0 0 28px}.shape-pill-left-lg.simple{border-width:0px;min-height:56px;max-height:56px;background-color:unset;box-shadow:none}.shape-pill-left-lg.thin{border-width:1px;min-height:54px;max-height:54px;background-color:unset}.shape-pill-left-lg.parentBorder{border:0;box-shadow:unset;min-height:52px;max-height:52px}.shape-pill-right-lg{min-height:52px;max-height:52px;border-style:solid;overflow:hidden;border-radius:0 28px 28px 0}.shape-pill-right-lg.simple{border-width:0px;min-height:56px;max-height:56px;background-color:unset;box-shadow:none}.shape-pill-right-lg.thin{border-width:1px;min-height:54px;max-height:54px;background-color:unset}.shape-pill-right-lg.parentBorder{border:0;box-shadow:unset;min-height:52px;max-height:52px}.shape-circle-lg{min-height:52px;max-height:52px;border-style:solid;overflow:hidden;border-radius:50%;min-width:56px;max-width:56px;padding:0}.shape-circle-lg.simple{border-width:0px;min-height:56px;max-height:56px;background-color:unset;box-shadow:none}.shape-circle-lg.thin{border-width:1px;min-height:54px;max-height:54px;background-color:unset}.shape-circle-lg.parentBorder{border:0;box-shadow:unset;min-height:52px;max-height:52px}.shape-square-lg{min-height:52px;max-height:52px;border-style:solid;overflow:hidden;border-radius:6px;min-width:56px;max-width:56px;padding:0}.shape-square-lg.simple{border-width:0px;min-height:56px;max-height:56px;background-color:unset;box-shadow:none}.shape-square-lg.thin{border-width:1px;min-height:54px;max-height:54px;background-color:unset}.shape-square-lg.parentBorder{border:0;box-shadow:unset;min-height:52px;max-height:52px}.shape-rounded-md{min-height:44px;max-height:44px;border-style:solid;overflow:hidden;border-radius:6px}.shape-rounded-md.simple{border-width:0px;min-height:48px;max-height:48px;background-color:unset;box-shadow:none}.shape-rounded-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}.shape-rounded-md.parentBorder{border:0;box-shadow:unset;min-height:44px;max-height:44px}.shape-pill-md{min-height:44px;max-height:44px;border-style:solid;overflow:hidden;border-radius:24px}.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;overflow:hidden;border-radius:24px 0 0 24px}.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;overflow:hidden;border-radius:0 24px 24px 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}.shape-circle-md{min-height:44px;max-height:44px;border-style:solid;overflow:hidden;border-radius:50%;min-width:48px;max-width:48px;padding:0}.shape-circle-md.simple{border-width:0px;min-height:48px;max-height:48px;background-color:unset;box-shadow:none}.shape-circle-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}.shape-circle-md.parentBorder{border:0;box-shadow:unset;min-height:44px;max-height:44px}.shape-square-md{min-height:44px;max-height:44px;border-style:solid;overflow:hidden;border-radius:6px;min-width:48px;max-width:48px;padding:0}.shape-square-md.simple{border-width:0px;min-height:48px;max-height:48px;background-color:unset;box-shadow:none}.shape-square-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}.shape-square-md.parentBorder{border:0;box-shadow:unset;min-height:44px;max-height:44px}.shape-rounded-sm{min-height:32px;max-height:32px;border-style:solid;overflow:hidden;border-radius:6px}.shape-rounded-sm.simple{border-width:0px;min-height:36px;max-height:36px;background-color:unset;box-shadow:none}.shape-rounded-sm.thin{border-width:1px;min-height:34px;max-height:34px;background-color:unset}.shape-rounded-sm.parentBorder{border:0;box-shadow:unset;min-height:32px;max-height:32px}.shape-pill-sm{min-height:32px;max-height:32px;border-style:solid;overflow:hidden;border-radius:18px}.shape-pill-sm.simple{border-width:0px;min-height:36px;max-height:36px;background-color:unset;box-shadow:none}.shape-pill-sm.thin{border-width:1px;min-height:34px;max-height:34px;background-color:unset}.shape-pill-sm.parentBorder{border:0;box-shadow:unset;min-height:32px;max-height:32px}.shape-pill-left-sm{min-height:32px;max-height:32px;border-style:solid;overflow:hidden;border-radius:18px 0 0 18px}.shape-pill-left-sm.simple{border-width:0px;min-height:36px;max-height:36px;background-color:unset;box-shadow:none}.shape-pill-left-sm.thin{border-width:1px;min-height:34px;max-height:34px;background-color:unset}.shape-pill-left-sm.parentBorder{border:0;box-shadow:unset;min-height:32px;max-height:32px}.shape-pill-right-sm{min-height:32px;max-height:32px;border-style:solid;overflow:hidden;border-radius:0 18px 18px 0}.shape-pill-right-sm.simple{border-width:0px;min-height:36px;max-height:36px;background-color:unset;box-shadow:none}.shape-pill-right-sm.thin{border-width:1px;min-height:34px;max-height:34px;background-color:unset}.shape-pill-right-sm.parentBorder{border:0;box-shadow:unset;min-height:32px;max-height:32px}.shape-circle-sm{min-height:32px;max-height:32px;border-style:solid;overflow:hidden;border-radius:50%;min-width:36px;max-width:36px;padding:0}.shape-circle-sm.simple{border-width:0px;min-height:36px;max-height:36px;background-color:unset;box-shadow:none}.shape-circle-sm.thin{border-width:1px;min-height:34px;max-height:34px;background-color:unset}.shape-circle-sm.parentBorder{border:0;box-shadow:unset;min-height:32px;max-height:32px}.shape-square-sm{min-height:32px;max-height:32px;border-style:solid;overflow:hidden;border-radius:6px;min-width:36px;max-width:36px;padding:0}.shape-square-sm.simple{border-width:0px;min-height:36px;max-height:36px;background-color:unset;box-shadow:none}.shape-square-sm.thin{border-width:1px;min-height:34px;max-height:34px;background-color:unset}.shape-square-sm.parentBorder{border:0;box-shadow:unset;min-height:32px;max-height:32px}.shape-rounded-xs{min-height:20px;max-height:20px;border-style:solid;overflow:hidden;border-radius:4px}.shape-rounded-xs.simple{border-width:0px;min-height:24px;max-height:24px;background-color:unset;box-shadow:none}.shape-rounded-xs.thin{border-width:1px;min-height:22px;max-height:22px;background-color:unset}.shape-rounded-xs.parentBorder{border:0;box-shadow:unset;min-height:20px;max-height:20px}.shape-pill-xs{min-height:20px;max-height:20px;border-style:solid;overflow:hidden;border-radius:12px}.shape-pill-xs.simple{border-width:0px;min-height:24px;max-height:24px;background-color:unset;box-shadow:none}.shape-pill-xs.thin{border-width:1px;min-height:22px;max-height:22px;background-color:unset}.shape-pill-xs.parentBorder{border:0;box-shadow:unset;min-height:20px;max-height:20px}.shape-pill-left-xs{min-height:20px;max-height:20px;border-style:solid;overflow:hidden;border-radius:12px 0 0 12px}.shape-pill-left-xs.simple{border-width:0px;min-height:24px;max-height:24px;background-color:unset;box-shadow:none}.shape-pill-left-xs.thin{border-width:1px;min-height:22px;max-height:22px;background-color:unset}.shape-pill-left-xs.parentBorder{border:0;box-shadow:unset;min-height:20px;max-height:20px}.shape-pill-right-xs{min-height:20px;max-height:20px;border-style:solid;overflow:hidden;border-radius:0 12px 12px 0}.shape-pill-right-xs.simple{border-width:0px;min-height:24px;max-height:24px;background-color:unset;box-shadow:none}.shape-pill-right-xs.thin{border-width:1px;min-height:22px;max-height:22px;background-color:unset}.shape-pill-right-xs.parentBorder{border:0;box-shadow:unset;min-height:20px;max-height:20px}.shape-circle-xs{min-height:20px;max-height:20px;border-style:solid;overflow:hidden;border-radius:50%;min-width:24px;max-width:24px;padding:0}.shape-circle-xs.simple{border-width:0px;min-height:24px;max-height:24px;background-color:unset;box-shadow:none}.shape-circle-xs.thin{border-width:1px;min-height:22px;max-height:22px;background-color:unset}.shape-circle-xs.parentBorder{border:0;box-shadow:unset;min-height:20px;max-height:20px}.shape-square-xs{min-height:20px;max-height:20px;border-style:solid;overflow:hidden;border-radius:6px;min-width:24px;max-width:24px;padding:0}.shape-square-xs.simple{border-width:0px;min-height:24px;max-height:24px;background-color:unset;box-shadow:none}.shape-square-xs.thin{border-width:1px;min-height:22px;max-height:22px;background-color:unset}.shape-square-xs.parentBorder{border:0;box-shadow:unset;min-height:20px;max-height:20px}`;
6130
+
6131
+ // Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
6132
+ // See LICENSE in the project root for license information.
6133
+
6134
+ // ---------------------------------------------------------------------
6135
+
6136
+ /* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
6137
+
6138
+ let AuroLibraryRuntimeUtils$2 = class AuroLibraryRuntimeUtils {
6139
+
6140
+ /* eslint-disable jsdoc/require-param */
6141
+
6142
+ /**
6143
+ * This will register a new custom element with the browser.
6144
+ * @param {String} name - The name of the custom element.
6145
+ * @param {Object} componentClass - The class to register as a custom element.
6146
+ * @returns {void}
6147
+ */
6148
+ registerComponent(name, componentClass) {
6149
+ if (!customElements.get(name)) {
6150
+ customElements.define(name, class extends componentClass {});
6151
+ }
6152
+ }
6153
+
6154
+ /**
6155
+ * Finds and returns the closest HTML Element based on a selector.
6156
+ * @returns {void}
6157
+ */
6158
+ closestElement(
6159
+ selector, // selector like in .closest()
6160
+ base = this, // extra functionality to skip a parent
6161
+ __Closest = (el, found = el && el.closest(selector)) =>
6162
+ !el || el === document || el === window
6163
+ ? null // standard .closest() returns null for non-found selectors also
6164
+ : found
6165
+ ? found // found a selector INside this element
6166
+ : __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
6167
+ ) {
6168
+ return __Closest(base);
6169
+ }
6170
+ /* eslint-enable jsdoc/require-param */
6171
+
6172
+ /**
6173
+ * 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.
6174
+ * @param {Object} elem - The element to check.
6175
+ * @param {String} tagName - The name of the Auro component to check for or add as an attribute.
6176
+ * @returns {void}
6177
+ */
6178
+ handleComponentTagRename(elem, tagName) {
6179
+ const tag = tagName.toLowerCase();
6180
+ const elemTag = elem.tagName.toLowerCase();
6181
+
6182
+ if (elemTag !== tag) {
6183
+ elem.setAttribute(tag, true);
6184
+ }
6185
+ }
6186
+
6187
+ /**
6188
+ * Validates if an element is a specific Auro component.
6189
+ * @param {Object} elem - The element to validate.
6190
+ * @param {String} tagName - The name of the Auro component to check against.
6191
+ * @returns {Boolean} - Returns true if the element is the specified Auro component.
6192
+ */
6193
+ elementMatch(elem, tagName) {
6194
+ const tag = tagName.toLowerCase();
6195
+ const elemTag = elem.tagName.toLowerCase();
6196
+
6197
+ return elemTag === tag || elem.hasAttribute(tag);
6198
+ }
6199
+ };
6200
+
6201
+ var styleCss$2$1 = i$5`.body-default{font-size:var(--wcss-body-default-font-size, 1rem);line-height:var(--wcss-body-default-line-height, 1.5)}.body-default,.body-lg{font-family:var(--wcss-body-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-lg{font-size:var(--wcss-body-lg-font-size, 1.125rem);line-height:var(--wcss-body-lg-line-height, 1.63)}.body-sm{font-size:var(--wcss-body-sm-font-size, 0.875rem);line-height:var(--wcss-body-sm-line-height, 1.25)}.body-sm,.body-xs{font-family:var(--wcss-body-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-xs{font-size:var(--wcss-body-xs-font-size, 0.75rem);line-height:var(--wcss-body-xs-line-height, 1)}.body-2xs{font-family:var(--wcss-body-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-body-2xs-font-size, 0.625rem);font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0);line-height:var(--wcss-body-2xs-line-height, 0.88)}.display-2xl{font-family:var(--wcss-display-2xl-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-2xl-font-size, clamp(3.5rem, 6vw, 5.375rem));font-weight:var(--wcss-display-2xl-weight, 300);letter-spacing:var(--wcss-display-2xl-letter-spacing, 0);line-height:var(--wcss-display-2xl-line-height, 1.3)}.display-xl{font-family:var(--wcss-display-xl-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-xl-font-size, clamp(3rem, 5.3333333333vw, 4.5rem));font-weight:var(--wcss-display-xl-weight, 300);letter-spacing:var(--wcss-display-xl-letter-spacing, 0);line-height:var(--wcss-display-xl-line-height, 1.3)}.display-lg{font-family:var(--wcss-display-lg-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-lg-font-size, clamp(2.75rem, 4.6666666667vw, 4rem));font-weight:var(--wcss-display-lg-weight, 300);letter-spacing:var(--wcss-display-lg-letter-spacing, 0);line-height:var(--wcss-display-lg-line-height, 1.3)}.display-md{font-family:var(--wcss-display-md-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-md-font-size, clamp(2.5rem, 4vw, 3.5rem));font-weight:var(--wcss-display-md-weight, 300);letter-spacing:var(--wcss-display-md-letter-spacing, 0);line-height:var(--wcss-display-md-line-height, 1.3)}.display-sm{font-family:var(--wcss-display-sm-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-sm-font-size, clamp(2rem, 3.6666666667vw, 3rem));font-weight:var(--wcss-display-sm-weight, 300);letter-spacing:var(--wcss-display-sm-letter-spacing, 0);line-height:var(--wcss-display-sm-line-height, 1.3)}.display-xs{font-family:var(--wcss-display-xs-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-xs-font-size, clamp(1.75rem, 3vw, 2.375rem));font-weight:var(--wcss-display-xs-weight, 300);letter-spacing:var(--wcss-display-xs-letter-spacing, 0);line-height:var(--wcss-display-xs-line-height, 1.3)}.heading-xl{font-family:var(--wcss-heading-xl-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-xl-font-size, clamp(2rem, 3vw, 2.5rem));font-weight:var(--wcss-heading-xl-weight, 300);letter-spacing:var(--wcss-heading-xl-letter-spacing, 0);line-height:var(--wcss-heading-xl-line-height, 1.3)}.heading-lg{font-family:var(--wcss-heading-lg-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-lg-font-size, clamp(1.75rem, 2.6666666667vw, 2.25rem));font-weight:var(--wcss-heading-lg-weight, 300);letter-spacing:var(--wcss-heading-lg-letter-spacing, 0);line-height:var(--wcss-heading-lg-line-height, 1.3)}.heading-md{font-family:var(--wcss-heading-md-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-md-font-size, clamp(1.625rem, 2.3333333333vw, 1.75rem));font-weight:var(--wcss-heading-md-weight, 300);letter-spacing:var(--wcss-heading-md-letter-spacing, 0);line-height:var(--wcss-heading-md-line-height, 1.3)}.heading-sm{font-family:var(--wcss-heading-sm-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-sm-font-size, clamp(1.375rem, 2vw, 1.5rem));font-weight:var(--wcss-heading-sm-weight, 300);letter-spacing:var(--wcss-heading-sm-letter-spacing, 0);line-height:var(--wcss-heading-sm-line-height, 1.3)}.heading-xs{font-family:var(--wcss-heading-xs-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-xs-font-size, clamp(1.25rem, 1.6666666667vw, 1.25rem));font-weight:var(--wcss-heading-xs-weight, 450);letter-spacing:var(--wcss-heading-xs-letter-spacing, 0);line-height:var(--wcss-heading-xs-line-height, 1.3)}.heading-2xs{font-family:var(--wcss-heading-2xs-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-2xs-font-size, clamp(1.125rem, 1.5vw, 1.125rem));font-weight:var(--wcss-heading-2xs-weight, 450);letter-spacing:var(--wcss-heading-2xs-letter-spacing, 0);line-height:var(--wcss-heading-2xs-line-height, 1.3)}.accent-2xl{font-family:var(--wcss-accent-2xl-family, "Good OT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-2xl-font-size, clamp(2rem, 3.1666666667vw, 2.375rem));font-weight:var(--wcss-accent-2xl-weight, 450);letter-spacing:var(--wcss-accent-2xl-letter-spacing, 0.05em);line-height:var(--wcss-accent-2xl-line-height, 1)}.accent-xl{font-family:var(--wcss-accent-xl-family, "Good OT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-xl-font-size, clamp(1.625rem, 2.3333333333vw, 2rem));font-weight:var(--wcss-accent-xl-weight, 450);letter-spacing:var(--wcss-accent-xl-letter-spacing, 0.05em);line-height:var(--wcss-accent-xl-line-height, 1.3)}.accent-lg{font-family:var(--wcss-accent-lg-family, "Good OT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-lg-font-size, clamp(1.5rem, 2.1666666667vw, 1.75rem));font-weight:var(--wcss-accent-lg-weight, 450);letter-spacing:var(--wcss-accent-lg-letter-spacing, 0.05em);line-height:var(--wcss-accent-lg-line-height, 1.3)}.accent-md{font-family:var(--wcss-accent-md-family, "Good OT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-md-font-size, clamp(1.375rem, 1.8333333333vw, 1.5rem));font-weight:var(--wcss-accent-md-weight, 500);letter-spacing:var(--wcss-accent-md-letter-spacing, 0.05em);line-height:var(--wcss-accent-md-line-height, 1.3)}.accent-sm{font-family:var(--wcss-accent-sm-family, "Good OT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-sm-font-size, clamp(1.125rem, 1.5vw, 1.25rem));font-weight:var(--wcss-accent-sm-weight, 500);letter-spacing:var(--wcss-accent-sm-letter-spacing, 0.05em);line-height:var(--wcss-accent-sm-line-height, 1.3)}.accent-xs{font-family:var(--wcss-accent-xs-family, "Good OT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-xs-font-size, clamp(1rem, 1.3333333333vw, 1rem));font-weight:var(--wcss-accent-xs-weight, 500);letter-spacing:var(--wcss-accent-xs-letter-spacing, 0.1em);line-height:var(--wcss-accent-xs-line-height, 1.3)}.accent-2xs{font-family:var(--wcss-accent-2xs-family, "Good OT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-2xs-font-size, clamp(0.875rem, 1.1666666667vw, 0.875rem));font-weight:var(--wcss-accent-2xs-weight, 450);letter-spacing:var(--wcss-accent-2xs-letter-spacing, 0.1em);line-height:var(--wcss-accent-2xs-line-height, 1.3)}: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}:host>span{opacity:1}:host>.loader{display:none}:host>svg{display:none}:host>.no-animation{display:block}}`;
6202
+
6203
+ 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}`;
6204
+
6205
+ var tokensCss$1$1 = i$5`:host{--ds-auro-loader-background-color:currentcolor;--ds-auro-loader-border-color:currentcolor;--ds-auro-loader-color:currentcolor}`;
6206
+
6207
+ // Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
6208
+ // See LICENSE in the project root for license information.
6209
+
6210
+
6211
+ class AuroLoader extends i$2 {
6212
+ constructor() {
6213
+ super();
6214
+
6215
+ /**
6216
+ * @private
6217
+ */
6218
+ this.keys = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9];
6219
+
6220
+ /**
6221
+ * @private
6222
+ */
6223
+ this.mdCount = 3;
6224
+
6225
+ /**
6226
+ * @private
6227
+ */
6228
+ this.smCount = 2;
6229
+
6230
+ /**
6231
+ * @private
6232
+ */
6233
+ this.runtimeUtils = new AuroLibraryRuntimeUtils$2();
6234
+
6235
+ this.orbit = false;
6236
+ this.ringworm = false;
6237
+ this.laser = false;
6238
+ this.pulse = false;
6239
+ }
6240
+
6241
+ // function to define props used within the scope of this component
6242
+ static get properties() {
6243
+ return {
6244
+
6245
+ /**
6246
+ * Sets loader to laser type.
6247
+ */
6248
+ laser: {
6249
+ type: Boolean,
6250
+ reflect: true
6251
+ },
6252
+
6253
+ /**
6254
+ * Sets loader to orbit type.
6255
+ */
6256
+ orbit: {
6257
+ type: Boolean,
6258
+ reflect: true
6259
+ },
6260
+
6261
+ /**
6262
+ * Sets loader to pulse type.
6263
+ */
6264
+ pulse: {
6265
+ type: Boolean,
6266
+ reflect: true
6267
+ },
6268
+
6269
+ /**
6270
+ * Sets loader to ringworm type.
6271
+ */
6272
+ ringworm: {
6273
+ type: Boolean,
6274
+ reflect: true
6275
+ }
6276
+ };
6277
+ }
6278
+
6279
+ static get styles() {
6280
+ return [
6281
+ i$5`${styleCss$2$1}`,
6282
+ i$5`${colorCss$1$1}`,
6283
+ i$5`${tokensCss$1$1}`
6284
+ ];
6285
+ }
6286
+
6287
+ /**
6288
+ * This will register this element with the browser.
6289
+ * @param {string} [name="auro-loader"] - The name of element that you want to register to.
6290
+ *
6291
+ * @example
6292
+ * AuroLoader.register("custom-loader") // this will register this element to <custom-loader/>
6293
+ *
6294
+ */
6295
+ static register(name = "auro-loader") {
6296
+ AuroLibraryRuntimeUtils$2.prototype.registerComponent(name, AuroLoader);
6297
+ }
6298
+
6299
+ firstUpdated() {
6300
+ // Add the tag name as an attribute if it is different than the component name
6301
+ this.runtimeUtils.handleComponentTagRename(this, 'auro-loader');
6302
+ }
6303
+
6304
+ connectedCallback() {
6305
+ super.connectedCallback();
6306
+ }
6307
+
6308
+ /**
6309
+ * @private
6310
+ * @returns {Array} Numbered array for template map.
6311
+ */
6312
+ defineTemplate() {
6313
+ let nodes = Array.from(Array(this.mdCount).keys());
6314
+
6315
+ if (this.orbit || this.laser) {
6316
+ nodes = Array.from(Array(this.smCount).keys());
6317
+ } else if (this.ringworm) {
6318
+ nodes = Array.from(Array(0).keys());
6319
+ }
6320
+
6321
+ return nodes;
6322
+ }
6323
+
6324
+ // When using auroElement, use the following attribute and function when hiding content from screen readers.
6325
+ // aria-hidden="${this.hideAudible(this.hiddenAudible)}"
6326
+
6327
+ // function that renders the HTML and CSS into the scope of the component
6328
+ render() {
6329
+ return x`
6330
+ ${this.defineTemplate().map((idx) => x`
6331
+ <span part="element" class="loader node-${idx}"></span>
6332
+ `)}
6333
+
6334
+ <div class="no-animation body-default">Loading...</div>
6335
+
6336
+ ${this.ringworm ? x`
6337
+ <svg part="element" class="circular" viewBox="25 25 50 50">
6338
+ <circle class="path" cx="50" cy="50" r="20" fill="none"/>
6339
+ </svg>`
6340
+ : ``
6341
+ }
6342
+ `;
6343
+ }
6344
+ }
6345
+
6346
+ var loaderVersion = '5.1.0';
6347
+
6348
+ // Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
6349
+ // See LICENSE in the project root for license information.
6350
+
6351
+
6352
+ /**
6353
+ * @slot - Default slot for the text of the button.
6354
+ * @csspart button - Apply CSS to HTML5 button.
6355
+ * @csspart loader - Apply CSS to auro-loader.
6356
+ * @csspart text - Apply CSS to text slot.
6357
+ * @csspart icon - Apply CSS to icon slot.
6358
+ */
6359
+
6360
+ const ICON_ONLY_SHAPES = ['circle', 'square'];
6361
+
6362
+ /**
6363
+ * AuroButton is a custom element that provides a styled, accessible button with support for various states and form association.
6364
+ * It is designed to be flexible, supporting loading states, icon slots, and integration with HTML5 forms.
6365
+ * @property {'default', 'rounded', 'pill', 'circle', 'square'} shape - Defines the shape of the button.
6366
+ * @property {'xs', 'sm', 'md', 'lg', 'xl'} size - Defines the size of the button.
6367
+ * @property {'primary', 'secondary', 'tertiary', 'ghost', 'flat'} variant - Sets the button variant.
6368
+ * @property {'submit', 'reset', 'button'} type - The type of button. Matches HTML5 Button Spec.
6369
+ * @property {boolean} onDark - Indicates if the button is rendered in dark mode.
6370
+ */
6371
+ class AuroButton extends AuroElement$1 {
6372
+
6373
+ /**
6374
+ * Enables form association for this element.
6375
+ * @see https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/attachInternals
6376
+ * @returns {boolean} - Returns true to enable form association.
6377
+ */
6378
+ static get formAssociated() {
6379
+ return true;
6380
+ }
6381
+
6382
+ constructor() {
6383
+ super();
6384
+ this.autofocus = false;
6385
+ this.disabled = false;
6386
+ this.loading = false;
6387
+ this.size = "md";
6388
+ this.shape = "rounded";
6389
+ this.onDark = false;
6390
+ this.fluid = false;
6391
+ this.loadingText = this.loadingText || 'Loading...';
6392
+ this.variant = 'primary';
6393
+
6394
+ // Support for HTML5 forms
6395
+ if (typeof this.attachInternals === 'function') {
6396
+ this.internals = this.attachInternals();
6397
+ } else {
6398
+ this.internals = null;
6399
+
6400
+ // eslint-disable-next-line no-console
6401
+ 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.');
6402
+ }
6403
+
6404
+ /**
6405
+ * Generate unique names for dependency components.
6406
+ */
6407
+ const versioning = new AuroDependencyVersioning();
6408
+
6409
+ /**
6410
+ * @private
6411
+ */
6412
+ this.loaderTag = versioning.generateTag('auro-loader', loaderVersion, AuroLoader);
6413
+
6414
+ /**
6415
+ * @private
6416
+ */
6417
+ this.buttonHref = undefined;
6418
+
6419
+ /**
6420
+ * @private
6421
+ */
6422
+ this.buttonTarget = undefined;
6423
+
6424
+ /**
6425
+ * @private
6426
+ */
6427
+ this.buttonRel = undefined;
6428
+ }
6429
+
6430
+ static get styles() {
6431
+ return [
6432
+ tokensCss$2$1,
6433
+ styleCss$3$1,
6434
+ colorCss$2$1,
6435
+ shapeSize
6436
+ ];
6437
+ }
6438
+
6439
+ static get properties() {
6440
+ return {
6441
+
6442
+ ...super.properties,
6443
+
6444
+ /**
6445
+ * Override layout since it isn't used in this component.
6446
+ * @private
6447
+ */
6448
+ layout: {
6449
+ type: Boolean,
6450
+ attribute: false,
6451
+ reflect: false
6452
+ },
6453
+
6454
+ /**
6455
+ * This Boolean attribute lets you specify that the button should have input focus when the page loads, unless overridden by the user.
6456
+ */
6457
+ autofocus: {
6458
+ type: Boolean,
6459
+ reflect: true
6460
+ },
6461
+
6462
+ /**
6463
+ * If set to true, button will become disabled and not allow for interactions.
6464
+ */
6465
+ disabled: {
6466
+ type: Boolean,
6467
+ reflect: true
6468
+ },
6469
+
6470
+ /**
6471
+ * Alters the shape of the button to be full width of its parent container.
6472
+ */
6473
+ fluid: {
6474
+ type: Boolean,
6475
+ reflect: true
6476
+ },
6477
+
6478
+ /**
6479
+ * If set to true button text will be replaced with `auro-loader` and become disabled.
6480
+ */
6481
+ loading: {
6482
+ type: Boolean,
6483
+ reflect: true
6484
+ },
6485
+
6486
+ /**
6487
+ * 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.
6488
+ */
6489
+ loadingText: {
6490
+ type: String
6491
+ },
6492
+
6493
+ /**
6494
+ * Populates `tabindex` to define the focusable sequence in keyboard navigation.
6495
+ */
6496
+ tIndex: {
6497
+ type: String,
6498
+ reflect: true
6499
+ },
6500
+
6501
+ /**
6502
+ * Populates `tabindex` to define the focusable sequence in keyboard navigation.
6503
+ * Must be used with "." to ensure the host element does not retain a reference to the `tabindex` attribute.
6504
+ * Example: `<auro-button .tabindex="${this.disabled ? '-1' : '0'}"></auro-button>`.
6505
+ */
6506
+ tabindex: {
6507
+ type: String,
6508
+ reflect: false
6509
+ },
6510
+
6511
+ /**
6512
+ * Sets title attribute. The information is most often shown as a tooltip text when the mouse moves over the element.
6513
+ */
6514
+ title: {
6515
+ type: String,
6516
+ reflect: true
6517
+ },
6518
+
6519
+ /**
6520
+ * The type of the button. Possible values are: `submit`, `reset`, `button`.
6521
+ */
6522
+ type: {
6523
+ type: String,
6524
+ reflect: true
6525
+ },
6526
+
6527
+ /**
6528
+ * Defines the value associated with the button which is submitted with the form data.
6529
+ */
6530
+ value: {
6531
+ type: String,
6532
+ reflect: true
6533
+ },
6534
+
6535
+ /**
6536
+ * Sets button variant option.
6537
+ * @default primary
6538
+ */
6539
+ variant: {
6540
+ type: String,
6541
+ reflect: true
6542
+ },
6543
+
6544
+ /**
6545
+ * @private
6546
+ */
6547
+ buttonHref: {
6548
+ type: String,
6549
+ },
6550
+
6551
+ /**
6552
+ * @private
6553
+ */
6554
+ buttonTarget: {
6555
+ type: String,
6556
+ },
5315
6557
 
5316
- let AuroLibraryRuntimeUtils$1$1 = class AuroLibraryRuntimeUtils {
6558
+ /**
6559
+ * @private
6560
+ */
6561
+ buttonRel: {
6562
+ type: String,
6563
+ },
6564
+ };
6565
+ }
5317
6566
 
5318
- /* eslint-disable jsdoc/require-param */
6567
+ /**
6568
+ * This will register this element with the browser.
6569
+ * @param {string} [name="auro-button"] - The name of element that you want to register to.
6570
+ *
6571
+ * @example
6572
+ * AuroButton.register("custom-button") // this will register this element to <custom-button/>
6573
+ *
6574
+ */
6575
+ static register(name = "auro-button") {
6576
+ AuroLibraryRuntimeUtils$3.prototype.registerComponent(name, AuroButton);
6577
+ }
5319
6578
 
5320
6579
  /**
5321
- * This will register a new custom element with the browser.
5322
- * @param {String} name - The name of the custom element.
5323
- * @param {Object} componentClass - The class to register as a custom element.
6580
+ * Internal method to apply focus to the HTML5 button.
6581
+ * @private
5324
6582
  * @returns {void}
5325
6583
  */
5326
- registerComponent(name, componentClass) {
5327
- if (!customElements.get(name)) {
5328
- customElements.define(name, class extends componentClass {});
5329
- }
6584
+ focus() {
6585
+ this.renderRoot.querySelector('button').focus();
5330
6586
  }
5331
6587
 
5332
6588
  /**
5333
- * Finds and returns the closest HTML Element based on a selector.
6589
+ * Submits the form that this button is associated with.
6590
+ * @private
5334
6591
  * @returns {void}
5335
6592
  */
5336
- closestElement(
5337
- selector, // selector like in .closest()
5338
- base = this, // extra functionality to skip a parent
5339
- __Closest = (el, found = el && el.closest(selector)) =>
5340
- !el || el === document || el === window
5341
- ? null // standard .closest() returns null for non-found selectors also
5342
- : found
5343
- ? found // found a selector INside this element
5344
- : __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
5345
- ) {
5346
- return __Closest(base);
6593
+ surfaceSubmitEvent() {
6594
+ if (this.form) {
6595
+ this.form.requestSubmit();
6596
+ }
5347
6597
  }
5348
- /* eslint-enable jsdoc/require-param */
5349
6598
 
5350
6599
  /**
5351
- * 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.
5352
- * @param {Object} elem - The element to check.
5353
- * @param {String} tagName - The name of the Auro component to check for or add as an attribute.
5354
- * @returns {void}
6600
+ * Returns the form element that this button is associated with.
6601
+ * @private
6602
+ * @returns {HTMLFormElement | null}
5355
6603
  */
5356
- handleComponentTagRename(elem, tagName) {
5357
- const tag = tagName.toLowerCase();
5358
- const elemTag = elem.tagName.toLowerCase();
6604
+ get form() {
6605
+ return this.internals ? this.internals.form : null;
6606
+ }
5359
6607
 
5360
- if (elemTag !== tag) {
5361
- elem.setAttribute(tag, true);
5362
- }
6608
+ /**
6609
+ * @private
6610
+ * @returns {Boolean}
6611
+ */
6612
+ get showText() {
6613
+ return !ICON_ONLY_SHAPES.includes(this.shape);
5363
6614
  }
5364
6615
 
5365
6616
  /**
5366
- * Validates if an element is a specific Auro component.
5367
- * @param {Object} elem - The element to validate.
5368
- * @param {String} tagName - The name of the Auro component to check against.
5369
- * @returns {Boolean} - Returns true if the element is the specified Auro component.
6617
+ * Returns the current value of the projected `aria-label` attribute or undefined if not set.
6618
+ * @returns {string | undefined}
6619
+ * @private
5370
6620
  */
5371
- elementMatch(elem, tagName) {
5372
- const tag = tagName.toLowerCase();
5373
- const elemTag = elem.tagName.toLowerCase();
6621
+ get currentAriaLabel() {
6622
+ if (!this.attributeWatcher) return undefined;
5374
6623
 
5375
- return elemTag === tag || elem.hasAttribute(tag);
6624
+ const ariaLabel = this.attributeWatcher.getObservedAttribute("aria-label");
6625
+ return ariaLabel || undefined;
5376
6626
  }
5377
- };
5378
6627
 
5379
- // Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
5380
- // See LICENSE in the project root for license information.
6628
+ /**
6629
+ * Returns the current value of the projected `aria-labelledby` attribute or undefined if not set.
6630
+ * @returns {string | undefined}
6631
+ * @private
6632
+ */
6633
+ get currentAriaLabelledBy() {
6634
+ if (!this.attributeWatcher) return undefined;
5381
6635
 
6636
+ const ariaLabelledBy = this.attributeWatcher.getObservedAttribute("aria-labelledby");
6637
+ return ariaLabelledBy || undefined;
6638
+ }
5382
6639
 
5383
- class AuroDependencyVersioning {
6640
+ /**
6641
+ * Whether or not the button is set to an icon-only shape.
6642
+ * @returns {boolean} - True if the button is icon-only, false otherwise.
6643
+ * @private
6644
+ */
6645
+ get iconOnly() {
6646
+ return ICON_ONLY_SHAPES.includes(this.shape);
6647
+ }
5384
6648
 
5385
6649
  /**
5386
- * Generates a unique string to be used for child auro element naming.
6650
+ * Gets a class name for the font size based on the button's size and shape.
6651
+ * @returns {string} - The font size class name.
5387
6652
  * @private
5388
- * @param {string} baseName - Defines the first part of the unique element name.
5389
- * @param {string} version - Version of the component that will be appended to the baseName.
5390
- * @returns {string} - Unique string to be used for naming.
5391
6653
  */
5392
- generateElementName(baseName, version) {
5393
- let result = baseName;
6654
+ getFontSize() {
5394
6655
 
5395
- result += '-';
5396
- result += version.replace(/[.]/g, '_');
6656
+ // Size map for standard buttons
6657
+ const standardButtonSizeMap = {
6658
+ xs: 'body-xs',
6659
+ sm: 'body-sm',
6660
+ md: 'body-default',
6661
+ lg: 'body-lg',
6662
+ xl: 'body-lg'
6663
+ };
5397
6664
 
5398
- return result;
6665
+ // Size map for icon-only buttons
6666
+ const iconOnlyButtonSizeMap = {
6667
+ xs: 'heading-xs',
6668
+ sm: 'heading-sm',
6669
+ md: 'heading-sm',
6670
+ lg: 'heading-md',
6671
+ xl: 'heading-lg'
6672
+ };
6673
+
6674
+ // Determine which map to use based on the shape
6675
+ const sizeMap = this.iconOnly ? iconOnlyButtonSizeMap : standardButtonSizeMap;
6676
+
6677
+ // Return the font size based on the button size and shape
6678
+ return sizeMap[this.size] || 'body-default';
5399
6679
  }
5400
6680
 
5401
6681
  /**
5402
- * Generates a unique string to be used for child auro element naming.
5403
- * @param {string} baseName - Defines the first part of the unique element name.
5404
- * @param {string} version - Version of the component that will be appended to the baseName.
5405
- * @returns {string} - Unique string to be used for naming.
6682
+ * Renders the default layout for the button.
6683
+ * @returns {TemplateResult}
6684
+ * @private
5406
6685
  */
5407
- generateTag(baseName, version, tagClass) {
5408
- const elementName = this.generateElementName(baseName, version);
5409
- const tag = i`${s(elementName)}`;
6686
+ renderLayoutDefault() {
5410
6687
 
5411
- if (!customElements.get(elementName)) {
5412
- customElements.define(elementName, class extends tagClass {});
5413
- }
6688
+ const fontSize = this.getFontSize();
6689
+ const tag = this.buttonHref ? i`a` : i`button`;
6690
+ const part = this.buttonHref ? 'link' : 'button';
5414
6691
 
5415
- return tag;
6692
+ const classes = {
6693
+ "auro-button": true,
6694
+ "inset": this.showText,
6695
+ wrapper: true,
6696
+ loading: this.loading,
6697
+ [`${fontSize}`]: true,
6698
+
6699
+ // These remove the default borders so we can handle focus borders ourselves
6700
+ 'simple': !['secondary'].includes(this.variant),
6701
+ 'thin': ['secondary'].includes(this.variant),
6702
+ };
6703
+
6704
+ const contentClasses = {
6705
+ "contentWrapper": true,
6706
+ "util_displayHiddenVisually": this.loading
6707
+ };
6708
+
6709
+ return u`
6710
+ <${tag}
6711
+ part="${part}"
6712
+ aria-label="${o(this.loading ? this.loadingText : this.currentAriaLabel || undefined)}"
6713
+ aria-labelledby="${o(this.loading ? undefined : this.currentAriaLabelledBy || undefined)}"
6714
+ tabindex="${o(this.tIndex || this.tabindex)}"
6715
+ ?autofocus="${this.autofocus}"
6716
+ class=${e(classes)}
6717
+ ?disabled="${this.disabled || this.loading}"
6718
+ ?onDark="${this.onDark}"
6719
+ title="${o(this.title ? this.title : undefined)}"
6720
+ name="${o(this.name ? this.name : undefined)}"
6721
+ type="${o(this.type ? this.type : undefined)}"
6722
+ variant="${o(this.variant ? this.variant : undefined)}"
6723
+ .value="${o(this.value ? this.value : undefined)}"
6724
+ @click="${this.type === 'submit' ? this.surfaceSubmitEvent : undefined}"
6725
+ href="${o(this.buttonHref || undefined)}"
6726
+ target="${o(this.buttonTarget || undefined)}"
6727
+ rel="${o(this.buttonRel || undefined)}"
6728
+ >
6729
+ ${o(this.loading ? u`<${this.loaderTag} pulse part="loader"></${this.loaderTag}>` : undefined)}
6730
+
6731
+ <span class="${e(contentClasses)}">
6732
+ <span class="textSlot" part="text">
6733
+ <slot></slot>
6734
+ </span>
6735
+ </span>
6736
+ </${tag}>
6737
+ `;
6738
+ }
6739
+
6740
+ /**
6741
+ * Renders the layout of the button.
6742
+ * @returns {TemplateResult}
6743
+ * @private
6744
+ */
6745
+ renderLayout() {
6746
+ return this.renderLayoutDefault();
5416
6747
  }
5417
6748
  }
5418
6749
 
6750
+ var buttonVersion = '11.3.0';
6751
+
5419
6752
  // Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
5420
6753
  // See LICENSE in the project root for license information.
5421
6754
 
@@ -5426,7 +6759,7 @@ class AuroDependencyVersioning {
5426
6759
  * @attr {Boolean} hiddenAudible - If present, the component will be hidden from screen readers, but seen visually
5427
6760
  */
5428
6761
 
5429
- let AuroElement$1 = class AuroElement extends i$2 {
6762
+ let AuroElement$2 = class AuroElement extends i$2 {
5430
6763
 
5431
6764
  // function to define props used within the scope of this component
5432
6765
  static get properties() {
@@ -5494,7 +6827,7 @@ var styleCss$1$1 = i$5`:focus:not(:focus-visible){outline:3px solid transparent}
5494
6827
  */
5495
6828
 
5496
6829
  // build the component class
5497
- let BaseIcon$1 = class BaseIcon extends AuroElement$1 {
6830
+ let BaseIcon$1 = class BaseIcon extends AuroElement$2 {
5498
6831
  constructor() {
5499
6832
  super();
5500
6833
  this.onDark = false;
@@ -5577,7 +6910,7 @@ var colorCss$4 = i$5`:host{color:var(--ds-auro-icon-color)}:host([customColor]){
5577
6910
 
5578
6911
  /* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
5579
6912
 
5580
- let AuroLibraryRuntimeUtils$2 = class AuroLibraryRuntimeUtils {
6913
+ let AuroLibraryRuntimeUtils$1$1 = class AuroLibraryRuntimeUtils {
5581
6914
 
5582
6915
  /* eslint-disable jsdoc/require-param */
5583
6916
 
@@ -5659,7 +6992,7 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
5659
6992
  */
5660
6993
  privateDefaults() {
5661
6994
  this.uri = 'https://cdn.jsdelivr.net/npm/@alaskaairux/icons@latest/dist';
5662
- this.runtimeUtils = new AuroLibraryRuntimeUtils$2();
6995
+ this.runtimeUtils = new AuroLibraryRuntimeUtils$1$1();
5663
6996
  }
5664
6997
 
5665
6998
  // function to define props used within the scope of this component
@@ -5741,7 +7074,7 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
5741
7074
  *
5742
7075
  */
5743
7076
  static register(name = "auro-icon") {
5744
- AuroLibraryRuntimeUtils$2.prototype.registerComponent(name, AuroIcon);
7077
+ AuroLibraryRuntimeUtils$1$1.prototype.registerComponent(name, AuroIcon);
5745
7078
  }
5746
7079
 
5747
7080
  connectedCallback() {
@@ -5762,8 +7095,12 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
5762
7095
  async firstUpdated() {
5763
7096
  await super.firstUpdated();
5764
7097
 
5765
- // Removes the SVG description for screenreader if ariaHidden is set to true
5766
- if (!this.hasAttribute('ariaHidden') && this.svg) {
7098
+ /**
7099
+ * icons provide a description for screen readers. Icon only instances Auro-button
7100
+ * depend on this description to provide context for the user using a screen reader.
7101
+ * Removes the SVG description for screen reader if ariaHidden is set to true.
7102
+ */
7103
+ if (this.hasAttribute('ariaHidden') && this.svg) {
5767
7104
  const svgDesc = this.svg.querySelector('desc');
5768
7105
 
5769
7106
  if (svgDesc) {
@@ -5807,7 +7144,77 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
5807
7144
  }
5808
7145
  };
5809
7146
 
5810
- var iconVersion$1 = '8.0.3';
7147
+ var iconVersion$1 = '8.0.4';
7148
+
7149
+ // Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
7150
+ // See LICENSE in the project root for license information.
7151
+
7152
+ // ---------------------------------------------------------------------
7153
+
7154
+ /* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
7155
+
7156
+ let AuroLibraryRuntimeUtils$4 = class AuroLibraryRuntimeUtils {
7157
+
7158
+ /* eslint-disable jsdoc/require-param */
7159
+
7160
+ /**
7161
+ * This will register a new custom element with the browser.
7162
+ * @param {String} name - The name of the custom element.
7163
+ * @param {Object} componentClass - The class to register as a custom element.
7164
+ * @returns {void}
7165
+ */
7166
+ registerComponent(name, componentClass) {
7167
+ if (!customElements.get(name)) {
7168
+ customElements.define(name, class extends componentClass {});
7169
+ }
7170
+ }
7171
+
7172
+ /**
7173
+ * Finds and returns the closest HTML Element based on a selector.
7174
+ * @returns {void}
7175
+ */
7176
+ closestElement(
7177
+ selector, // selector like in .closest()
7178
+ base = this, // extra functionality to skip a parent
7179
+ __Closest = (el, found = el && el.closest(selector)) =>
7180
+ !el || el === document || el === window
7181
+ ? null // standard .closest() returns null for non-found selectors also
7182
+ : found
7183
+ ? found // found a selector INside this element
7184
+ : __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
7185
+ ) {
7186
+ return __Closest(base);
7187
+ }
7188
+ /* eslint-enable jsdoc/require-param */
7189
+
7190
+ /**
7191
+ * 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.
7192
+ * @param {Object} elem - The element to check.
7193
+ * @param {String} tagName - The name of the Auro component to check for or add as an attribute.
7194
+ * @returns {void}
7195
+ */
7196
+ handleComponentTagRename(elem, tagName) {
7197
+ const tag = tagName.toLowerCase();
7198
+ const elemTag = elem.tagName.toLowerCase();
7199
+
7200
+ if (elemTag !== tag) {
7201
+ elem.setAttribute(tag, true);
7202
+ }
7203
+ }
7204
+
7205
+ /**
7206
+ * Validates if an element is a specific Auro component.
7207
+ * @param {Object} elem - The element to validate.
7208
+ * @param {String} tagName - The name of the Auro component to check against.
7209
+ * @returns {Boolean} - Returns true if the element is the specified Auro component.
7210
+ */
7211
+ elementMatch(elem, tagName) {
7212
+ const tag = tagName.toLowerCase();
7213
+ const elemTag = elem.tagName.toLowerCase();
7214
+
7215
+ return elemTag === tag || elem.hasAttribute(tag);
7216
+ }
7217
+ };
5811
7218
 
5812
7219
  var styleCss$5 = i$5`.heading{margin:1.75rem 0;letter-spacing:var(--ds-text-heading-default-spacing, -0.2px);font-weight:var(--ds-text-heading-default-weight, 500)}.heading--display{margin-top:0;font-size:var(--ds-text-heading-display-size-breakpoint-sm, 2.75rem);font-weight:var(--ds-text-heading-display-weight, 100);line-height:var(--ds-text-heading-display-height-breakpoint-sm, 3.375rem)}@media screen and (min-width: 768px){.heading--display{font-size:var(--ds-text-heading-display-size-breakpoint-md, 3rem);line-height:var(--ds-text-heading-display-height-breakpoint-md, 3.75rem)}}@media screen and (min-width: 1024px){.heading--display{font-size:var(--ds-text-heading-display-size-breakpoint-lg, 3.5rem);line-height:var(--ds-text-heading-display-height-breakpoint-lg, 4.25rem)}}.heading--800{font-size:var(--ds-text-heading-800-size-breakpoint-sm, 2rem);font-weight:var(--ds-text-heading-800-weight, 500);line-height:var(--ds-text-heading-800-height-breakpoint-sm, 2.375rem)}@media screen and (min-width: 768px){.heading--800{font-size:var(--ds-text-heading-800-size-breakpoint-md, 2.25rem);line-height:var(--ds-text-heading-800-height-breakpoint-md, 2.625rem)}}@media screen and (min-width: 1024px){.heading--800{font-size:var(--ds-text-heading-800-size-breakpoint-lg, 2.5rem);line-height:var(--ds-text-heading-800-height-breakpoint-lg, 3rem)}}.heading--700{font-size:var(--ds-text-heading-700-size-breakpoint-sm, 1.75rem);font-weight:var(--ds-text-heading-700-weight, 500);line-height:var(--ds-text-heading-700-height-breakpoint-sm, 2.125rem)}@media screen and (min-width: 768px){.heading--700{font-size:var(--ds-text-heading-700-size-breakpoint-md, 2rem);line-height:var(--ds-text-heading-700-height-breakpoint-md, 2.375rem)}}@media screen and (min-width: 1024px){.heading--700{font-size:var(--ds-text-heading-700-size-breakpoint-lg, 2.25rem);line-height:var(--ds-text-heading-700-height-breakpoint-lg, 2.75rem)}}.heading--600{margin:1rem 0;font-size:var(--ds-text-heading-600-size-breakpoint-sm, 1.625rem);font-weight:var(--ds-text-heading-600-weight, 300);line-height:var(--ds-text-heading-600-height-breakpoint-sm, 1.875rem)}@media screen and (min-width: 768px){.heading--600{font-size:var(--ds-text-heading-600-size-breakpoint-md, 1.75rem);line-height:var(--ds-text-heading-600-height-breakpoint-md, 2.125rem)}}@media screen and (min-width: 1024px){.heading--600{font-size:var(--ds-text-heading-600-size-breakpoint-lg, 1.75rem);line-height:var(--ds-text-heading-600-height-breakpoint-lg, 2.25rem)}}.heading--500{margin:1rem 0;font-size:var(--ds-text-heading-500-size-breakpoint-sm, 1.375rem);font-weight:var(--ds-text-heading-500-weight, 300);line-height:var(--ds-text-heading-500-height-breakpoint-sm, 1.625rem)}@media screen and (min-width: 768px){.heading--500{font-size:var(--ds-text-heading-500-size-breakpoint-md, 1.5rem);line-height:var(--ds-text-heading-500-height-breakpoint-md, 1.875rem)}}@media screen and (min-width: 1024px){.heading--500{font-size:var(--ds-text-heading-500-size-breakpoint-lg, 1.5rem);line-height:var(--ds-text-heading-500-height-breakpoint-lg, 2rem)}}.heading--400{margin:.75rem 0;font-size:var(--ds-text-heading-400-size, 1.25rem);font-weight:var(--ds-text-heading-400-weight, 300);line-height:var(--ds-text-heading-400-height, 1.625rem)}.heading--300{margin:.75rem 0;font-size:var(--ds-text-heading-300-size, 1.125rem);font-weight:var(--ds-text-heading-300-weight, 300);line-height:var(--ds-text-heading-300-height, 1.625rem)}:host([no-margin-block]) .heading{margin-block:0}.util_stackMarginnone--bottom{margin-bottom:0}.util_stackMargin25--bottom{margin-bottom:var(--ds-size-25, 0.125rem)}.util_stackMargin50--bottom{margin-bottom:var(--ds-size-50, 0.25rem)}.util_stackMargin100--bottom{margin-bottom:var(--ds-size-100, 0.5rem)}.util_stackMargin150--bottom{margin-bottom:var(--ds-size-150, 0.75rem)}.util_stackMargin200--bottom{margin-bottom:var(--ds-size-200, 1rem)}.util_stackMargin300--bottom{margin-bottom:var(--ds-size-300, 1.5rem)}.util_stackMargin400--bottom{margin-bottom:var(--ds-size-400, 2rem)}.util_stackMargin600--bottom{margin-bottom:var(--ds-size-600, 3rem)}.util_stackMargin800--bottom{margin-bottom:var(--ds-size-800, 4rem)}.util_stackMarginnone--top{margin-top:0}.util_stackMargin25--top{margin-top:var(--ds-size-25, 0.125rem)}.util_stackMargin50--top{margin-top:var(--ds-size-50, 0.25rem)}.util_stackMargin100--top{margin-top:var(--ds-size-100, 0.5rem)}.util_stackMargin150--top{margin-top:var(--ds-size-150, 0.75rem)}.util_stackMargin200--top{margin-top:var(--ds-size-200, 1rem)}.util_stackMargin300--top{margin-top:var(--ds-size-300, 1.5rem)}.util_stackMargin400--top{margin-top:var(--ds-size-400, 2rem)}.util_stackMargin600--top{margin-top:var(--ds-size-600, 3rem)}.util_stackMargin800--top{margin-top:var(--ds-size-800, 4rem)}`;
5813
7220
 
@@ -5838,7 +7245,7 @@ class AuroHeader extends i$2 {
5838
7245
  /**
5839
7246
  * @private
5840
7247
  */
5841
- this.runtimeUtils = new AuroLibraryRuntimeUtils$1$1();
7248
+ this.runtimeUtils = new AuroLibraryRuntimeUtils$4();
5842
7249
  }
5843
7250
 
5844
7251
  // function to define props used within the scope of this component
@@ -5868,7 +7275,7 @@ class AuroHeader extends i$2 {
5868
7275
  *
5869
7276
  */
5870
7277
  static register(name = "auro-header") {
5871
- AuroLibraryRuntimeUtils$1$1.prototype.registerComponent(name, AuroHeader);
7278
+ AuroLibraryRuntimeUtils$4.prototype.registerComponent(name, AuroHeader);
5872
7279
  }
5873
7280
 
5874
7281
  firstUpdated() {
@@ -5964,17 +7371,30 @@ class AuroBibtemplate extends i$2 {
5964
7371
 
5965
7372
  this.large = false;
5966
7373
 
5967
- AuroLibraryRuntimeUtils$1$1.prototype.handleComponentTagRename(this, 'auro-bibtemplate');
7374
+ AuroLibraryRuntimeUtils$3.prototype.handleComponentTagRename(this, 'auro-bibtemplate');
5968
7375
 
5969
7376
  const versioning = new AuroDependencyVersioning();
7377
+
7378
+ /**
7379
+ * @private
7380
+ */
5970
7381
  this.iconTag = versioning.generateTag('auro-formkit-bibtemplate-icon', iconVersion$1, AuroIcon$1);
7382
+
7383
+ /**
7384
+ * @private
7385
+ */
5971
7386
  this.headerTag = versioning.generateTag('auro-formkit-bibtemplate-header', headerVersion, AuroHeader);
7387
+
7388
+ /**
7389
+ * @private
7390
+ */
7391
+ this.buttonTag = versioning.generateTag('auro-formkit-input-button', buttonVersion, AuroButton);
5972
7392
  }
5973
7393
 
5974
7394
  static get styles() {
5975
7395
  return [
5976
- colorCss$1$1,
5977
- styleCss$2$1,
7396
+ colorCss$3$1,
7397
+ styleCss$4$1,
5978
7398
  tokenCss
5979
7399
  ];
5980
7400
  }
@@ -6003,7 +7423,7 @@ class AuroBibtemplate extends i$2 {
6003
7423
  *
6004
7424
  */
6005
7425
  static register(name = "auro-bibtemplate") {
6006
- AuroLibraryRuntimeUtils$1$1.prototype.registerComponent(name, AuroBibtemplate);
7426
+ AuroLibraryRuntimeUtils$3.prototype.registerComponent(name, AuroBibtemplate);
6007
7427
  }
6008
7428
 
6009
7429
  /**
@@ -6061,9 +7481,9 @@ class AuroBibtemplate extends i$2 {
6061
7481
  <div id="bibTemplate" part="bibtemplate">
6062
7482
  ${this.isFullscreen ? u`
6063
7483
  <div id="headerContainer">
6064
- <button id="closeButton" @click="${this.onCloseButtonClick}">
7484
+ <${this.buttonTag} id="closeButton" aria-label="Close" variant="ghost" shape="circle" size="sm" @click="${this.onCloseButtonClick}">
6065
7485
  <${this.iconTag} category="interface" name="x-lg"></${this.iconTag}>
6066
- </button>
7486
+ </${this.buttonTag}>
6067
7487
  <${this.headerTag} display="${this.large ? 'display' : '600'}" level="3" size="none" id="header" no-margin-block>
6068
7488
  <slot name="header"></slot>
6069
7489
  </${this.headerTag}>
@@ -6087,9 +7507,9 @@ class AuroBibtemplate extends i$2 {
6087
7507
 
6088
7508
  var bibTemplateVersion = '1.0.0';
6089
7509
 
6090
- var colorCss$3 = 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)}`;
7510
+ var colorCss$3 = 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-basic-color-status-error-subtle, #fbc6c6)}.helptext-wrapper{color:var(--ds-auro-helptext-color)}`;
6091
7511
 
6092
- var styleCss$4 = i$5`.helptext-wrapper{display:none;font-size:var(--ds-basic-text-body-xs-font-size, 12px);font-weight:var(--ds-basic-text-body-xs-font-weight, 450);letter-spacing:var(--ds-basic-text-body-xs-letter-spacing, 0);line-height:var(--ds-basic-text-body-xs-line-height, 16px)}:host([large]) .helptext-wrapper{font-size:var(--ds-basic-text-body-default-font-size, 16px);font-weight:var(--ds-basic-text-body-default-font-weight, 450);letter-spacing:var(--ds-basic-text-body-default-letter-spacing, 0);line-height:var(--ds-basic-text-body-default-line-height, 24px)}.helptext-wrapper[visible]{display:block}::slotted(*:not(:empty)){margin-top:var(--ds-size-50, 0.25rem);margin-bottom:0}::slotted(p){margin-block:0}`;
7512
+ var styleCss$4 = i$5`:host{position:relative;display:block}.helptext-wrapper{display:none;font-size:12px;font-weight:450;letter-spacing:0;line-height:16px}:host([large]) .helptext-wrapper{font-size:16px;font-weight:450;letter-spacing:0;line-height:24px}.helptext-wrapper[visible]{display:block}::slotted(*:not(:empty)){margin-top:var(--ds-size-50, 0.25rem);margin-bottom:0}::slotted(p){margin-block:0}`;
6093
7513
 
6094
7514
  var tokensCss$2 = i$5`:host{--ds-auro-helptext-color: var(--ds-basic-color-texticon-muted, #676767)}`;
6095
7515
 
@@ -6295,68 +7715,7 @@ class AuroHelpText extends i$2 {
6295
7715
 
6296
7716
  var helpTextVersion = '1.0.0';
6297
7717
 
6298
- 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)}`;
6299
-
6300
- 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)}`;
6301
-
6302
- 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)}`;
6303
-
6304
- // Copyright (c) 2021 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
6305
- // See LICENSE in the project root for license information.
6306
-
6307
- // ---------------------------------------------------------------------
6308
-
6309
- /**
6310
- * Converts value to an array.
6311
- * If the value is a JSON string representing an array, it will be parsed.
6312
- * If the value is already an array, it is returned.
6313
- * If the value is undefined, it returns undefined.
6314
- * @private
6315
- * @param {any} value - The value to be converted. Can be a string, array, or undefined.
6316
- * @returns {Array|undefined} - The converted array or undefined.
6317
- * @throws {Error} - Throws an error if the value is not an array, undefined,
6318
- * or if the value cannot be parsed into an array from a JSON string.
6319
- */
6320
- function arrayConverter(value) {
6321
- // Allow undefined
6322
- if (value === undefined) {
6323
- return undefined;
6324
- }
6325
-
6326
- // Return the value if it is already an array
6327
- if (Array.isArray(value)) {
6328
- return value;
6329
- }
6330
-
6331
- try {
6332
- // If value is a JSON string, parse it
6333
- const parsed = typeof value === 'string' ? JSON.parse(value) : value;
6334
-
6335
- // Check if the parsed value is an array
6336
- if (Array.isArray(parsed)) {
6337
- return parsed;
6338
- }
6339
- } catch (error) {
6340
- // If JSON parsing fails, continue to throw an error below
6341
- /* eslint-disable no-console */
6342
- console.error('JSON parsing failed:', error);
6343
- }
6344
-
6345
- // Throw error if the input is not an array or undefined
6346
- throw new Error('Invalid value: Input must be an array or undefined');
6347
- }
6348
-
6349
- 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}`;
6350
-
6351
- 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)}`;
6352
-
6353
- 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}`;
6354
-
6355
- 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)}`;
6356
-
6357
- 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)}`;
6358
-
6359
- 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-direction:column;justify-content:center;align-items:center;flex:1}.valueContainer [slot=displayValue]{display:none}.accents{display:flex;flex-direction:row;justify-content:center;align-items: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;align-items:center;justify-content:center;width:100%;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}`;
7718
+ 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)}:host([layout*=emphasized]) [auro-dropdown],:host([layout*=snowflake]) [auro-dropdown]{--ds-auro-select-border-color: transparent}.mainContent{position:relative;display:flex;overflow:hidden;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:var(--ds-size-100, 0.5rem)}.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 var(--ds-size-100, 0.5rem) 0 var(--ds-size-300, 1.5rem)}:host([layout*=snowflake]) [auro-dropdown] label.withValue{font-size:var(--ds-text-body-size-xs);line-height:20px}:host([layout*=emphasized]) [auro-dropdown] label.withValue{font-size:var(--ds-text-body-size-xs);line-height:20px}:host([layout*=classic]) .triggerContent{padding:0 var(--ds-size-100, 0.5rem)}:host([layout*=classic]) .mainContent{align-items:start}:host([layout*=classic]) label{overflow:hidden;cursor:text;font-size:16px;font-weight:450;letter-spacing:0;line-height:24px;text-overflow:ellipsis;white-space:nowrap}: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-basic-color-status-error-subtle, #fbc6c6);--ds-auro-dropdown-helptext-text-color: var(--ds-basic-color-texticon-inverse, #ffffff)}#slotHolder{display:none}:host([disabled]){pointer-events:none;user-select:none}:host([disabled]:not([ondark])) [auro-dropdown]{--ds-auro-select-border-color: var(--ds-basic-color-border-subtle, #dddddd)}:host(:not([layout*=classic])[disabled][ondark]) [auro-dropdown]{--ds-auro-select-border-color: transparent}`;
6360
7719
 
6361
7720
  // Copyright (c) 2021 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
6362
7721
  // See LICENSE in the project root for license information.
@@ -6369,9 +7728,10 @@ var styleCss$3 = i$5`.util_displayInline{display:inline}.util_displayInlineBlock
6369
7728
  * @slot - Default slot for the menu content.
6370
7729
  * @slot bib.fullscreen.headline - Defines the headline to display above menu-options
6371
7730
  * @slot label - Defines the content of the label.
7731
+ * @slot {HTMLSlotElement} optionalLabel - Allows overriding the optional display text "(optional)", which appears next to the label.
6372
7732
  * @slot helpText - Defines the content of the helpText.
6373
- * @slot placeholder - Defines the content of the placeholder to be shown when there is no value
6374
7733
  * @slot valueText - Dropdown value text display.
7734
+ * @slot displayValue - Allows custom HTML content to display the selected value when select is not focused.
6375
7735
  * @event auroSelect-valueSet - Notifies that the component has a new value set.
6376
7736
  * @event input - Notifies every time the value prop of the element is changed. The updated `value` and `optionSelected` will be delivered in `detail` object.
6377
7737
  * @event auroFormElement-validated - Notifies that the `validity` and `errorMessage` values have changed.
@@ -6379,7 +7739,7 @@ var styleCss$3 = i$5`.util_displayInline{display:inline}.util_displayInlineBlock
6379
7739
  */
6380
7740
 
6381
7741
  // build the component class
6382
- class AuroSelect extends AuroElement$3 {
7742
+ class AuroSelect extends AuroElement$4 {
6383
7743
  constructor() {
6384
7744
  super();
6385
7745
 
@@ -6389,11 +7749,11 @@ class AuroSelect extends AuroElement$3 {
6389
7749
  const idSubstrEnd = 8;
6390
7750
  const idSubstrStart = 2;
6391
7751
 
6392
- this.matchWidth = true;
7752
+ this.matchWidth = false;
6393
7753
 
6394
7754
  // Layout Config
6395
- this.layout = 'classic';
6396
- this.shape = 'classic';
7755
+ this.layout = 'snowflake';
7756
+ this.shape = 'snowflake';
6397
7757
  this.size = 'xl';
6398
7758
 
6399
7759
  // floaterConfig
@@ -6404,6 +7764,10 @@ class AuroSelect extends AuroElement$3 {
6404
7764
 
6405
7765
  this.forceDisplayValue = false;
6406
7766
 
7767
+ this.layout = 'classic';
7768
+ this.shape = 'classic';
7769
+ this.size = 'xl';
7770
+
6407
7771
  /**
6408
7772
  * @private
6409
7773
  */
@@ -6419,7 +7783,7 @@ class AuroSelect extends AuroElement$3 {
6419
7783
  /**
6420
7784
  * @private
6421
7785
  */
6422
- this.runtimeUtils = new AuroLibraryRuntimeUtils$4();
7786
+ this.runtimeUtils = new AuroLibraryRuntimeUtils$6();
6423
7787
 
6424
7788
  /**
6425
7789
  * Generate unique names for dependency components.
@@ -6530,15 +7894,7 @@ class AuroSelect extends AuroElement$3 {
6530
7894
  * The name for the select element.
6531
7895
  */
6532
7896
  name: {
6533
- type: String,
6534
- reflect: true
6535
- },
6536
-
6537
- /**
6538
- * If set, makes dropdown width match the size of the content, rather than the width of the trigger.
6539
- */
6540
- flexMenuWidth: {
6541
- type: Boolean,
7897
+ type: String,
6542
7898
  reflect: true
6543
7899
  },
6544
7900
 
@@ -6635,7 +7991,7 @@ class AuroSelect extends AuroElement$3 {
6635
7991
  * "top" | "right" | "bottom" | "left" |
6636
7992
  * "bottom-start" | "top-start" | "top-end" |
6637
7993
  * "right-start" | "right-end" | "bottom-end" |
6638
- * "left-start" | "left-end"
7994
+ * "left-start" | "left-end".
6639
7995
  * @default bottom-start
6640
7996
  */
6641
7997
  placement: {
@@ -6643,6 +7999,14 @@ class AuroSelect extends AuroElement$3 {
6643
7999
  reflect: true
6644
8000
  },
6645
8001
 
8002
+ /**
8003
+ * Define custom placeholder text.
8004
+ */
8005
+ placeholder: {
8006
+ type: String,
8007
+ reflect: true
8008
+ },
8009
+
6646
8010
  /**
6647
8011
  * Populates the `required` attribute on the element. Used for client-side validation.
6648
8012
  */
@@ -6689,11 +8053,12 @@ class AuroSelect extends AuroElement$3 {
6689
8053
  },
6690
8054
 
6691
8055
  /**
6692
- * Value selected for the component. Default type is `String`, changing to `Array<String>` when `multiSelect` is true.
6693
- * @type {String|Array<String>}
8056
+ * Value selected for the component.
6694
8057
  */
6695
8058
  value: {
6696
- type: Object
8059
+ type: String,
8060
+ reflect: true,
8061
+ attribute: 'value'
6697
8062
  },
6698
8063
 
6699
8064
  /**
@@ -6745,10 +8110,42 @@ class AuroSelect extends AuroElement$3 {
6745
8110
  ];
6746
8111
  }
6747
8112
 
8113
+ /**
8114
+ * Formatted value based on `multiSelect` state.
8115
+ * Default type is `String`, changing to `Array<String>` when `multiSelect` is true.
8116
+ * @private
8117
+ * @returns {String|Array<String>}
8118
+ */
8119
+ get formattedValue() {
8120
+ if (this.multiSelect) {
8121
+ if (!this.value) {
8122
+ return undefined;
8123
+ }
8124
+ if (this.value.startsWith("[")) {
8125
+ return JSON.parse(this.value);
8126
+ }
8127
+ return [this.value];
8128
+ }
8129
+ return this.value;
8130
+ }
8131
+
8132
+ /**
8133
+ * Returns classmap configuration for html5 input labels in all layouts.
8134
+ * @private
8135
+ * @returns {void}
8136
+ */
8137
+ get commonLabelClasses() {
8138
+ return {
8139
+ 'is-disabled': this.disabled,
8140
+ 'withValue': this.placeholder || (this.value && this.value.length > 0), // eslint-disable-line no-extra-parens
8141
+ 'util_displayHiddenVisually': this.hasDisplayValueContent && !this.hasFocus && this.value && this.value.length > 0
8142
+ };
8143
+ }
8144
+
6748
8145
  /**
6749
8146
  * Returns classmap configuration for wrapper elements in each layout.
6750
8147
  * @private
6751
- * @return {object} - Returns classmap.
8148
+ * @returns {object} - Returns classmap.
6752
8149
  */
6753
8150
  get commonWrapperClasses() {
6754
8151
  return {
@@ -6766,10 +8163,25 @@ class AuroSelect extends AuroElement$3 {
6766
8163
 
6767
8164
  this.dropdown.addEventListener('auroDropdown-toggled', () => {
6768
8165
  this.isPopoverVisible = this.dropdown.isPopoverVisible;
8166
+
8167
+ if (this.dropdown.isPopoverVisible) {
8168
+ // wait til the bib gets fully rendered
8169
+ setTimeout(() => {
8170
+ if (this.dropdown.isBibFullscreen) {
8171
+ // trigger holds the focus since menu is not a focusable element.
8172
+ this.dropdown.trigger.focus();
8173
+
8174
+ // default focus indicator on the first menu option
8175
+ if (this.menu.index < 0) {
8176
+ this.menu.navigateOptions('down');
8177
+ }
8178
+ }
8179
+ });
8180
+ }
6769
8181
  });
6770
8182
 
6771
8183
  // setting up bibtemplate
6772
- this.bibtemplate = this.dropdown.querySelector(this.bibtemplateTag._$litStatic$); // eslint-disable-line no-underscore-dangle
8184
+ this.bibtemplate = this.dropdown.querySelector(this.bibtemplateTag._$litStatic$);
6773
8185
 
6774
8186
  if (this.customBibWidth) {
6775
8187
  this.dropdown.dropdownWidth = this.customBibWidth;
@@ -6788,7 +8200,7 @@ class AuroSelect extends AuroElement$3 {
6788
8200
  *
6789
8201
  */
6790
8202
  static register(name = "auro-select") {
6791
- AuroLibraryRuntimeUtils$4.prototype.registerComponent(name, AuroSelect);
8203
+ AuroLibraryRuntimeUtils$6.prototype.registerComponent(name, AuroSelect);
6792
8204
  }
6793
8205
 
6794
8206
  /**
@@ -6848,6 +8260,15 @@ class AuroSelect extends AuroElement$3 {
6848
8260
  return;
6849
8261
  }
6850
8262
 
8263
+ // set menu's default size if there it's not specified.
8264
+ if (!this.menu.getAttribute('size')) {
8265
+ this.menu.setAttribute('size', this.layout !== 'emphasized' ? 'md' : this.size);
8266
+ }
8267
+
8268
+ if (!this.getAttribute('shape')) {
8269
+ this.menu.setAttribute('shape', this.layout === 'classic' ? 'box' : this.shape);
8270
+ }
8271
+
6851
8272
  if (this.multiSelect) {
6852
8273
  this.menu.multiSelect = this.multiSelect;
6853
8274
  }
@@ -6907,46 +8328,58 @@ class AuroSelect extends AuroElement$3 {
6907
8328
  configureSelect() {
6908
8329
 
6909
8330
  this.addEventListener('keydown', (evt) => {
6910
- if (evt.key === 'ArrowUp') {
6911
- evt.preventDefault();
8331
+ // when the focus is on trigger not on close button
8332
+ if (this.dropdown.shadowRoot.activeElement === this.dropdown.trigger) {
8333
+ if (evt.key === 'ArrowUp') {
8334
+ evt.preventDefault();
6912
8335
 
6913
- this.dropdown.show();
8336
+ this.dropdown.show();
8337
+
8338
+ if (this.dropdown.isPopoverVisible) {
8339
+ this.menu.navigateOptions('up');
8340
+ }
6914
8341
 
6915
- if (this.dropdown.isPopoverVisible) {
6916
- this.menu.navigateOptions('up');
8342
+ return;
6917
8343
  }
6918
8344
 
6919
- return;
6920
- }
8345
+ if (evt.key === 'ArrowDown') {
8346
+ evt.preventDefault();
6921
8347
 
6922
- if (evt.key === 'ArrowDown') {
6923
- evt.preventDefault();
8348
+ this.dropdown.show();
6924
8349
 
6925
- this.dropdown.show();
8350
+ if (this.dropdown.isPopoverVisible) {
8351
+ this.menu.navigateOptions('down');
8352
+ }
6926
8353
 
6927
- if (this.dropdown.isPopoverVisible) {
6928
- this.menu.navigateOptions('down');
8354
+ return;
6929
8355
  }
6930
8356
 
6931
- return;
6932
- }
8357
+ if (evt.key === 'Enter') {
8358
+ if (!this.dropdown.isPopoverVisible) {
8359
+ evt.preventDefault();
8360
+ this.menu.makeSelection();
8361
+ }
6933
8362
 
6934
- if (evt.key === 'Enter') {
6935
- if (!this.dropdown.isPopoverVisible) {
6936
- evt.preventDefault();
6937
- this.menu.makeSelection();
8363
+ return;
6938
8364
  }
6939
-
6940
- return;
6941
8365
  }
6942
8366
 
6943
- if (evt.key === 'Tab') {
8367
+ if (evt.key === 'Tab' && this.dropdown.isPopoverVisible) {
6944
8368
  if (this.dropdown.isBibFullscreen) {
6945
8369
  evt.preventDefault();
8370
+
8371
+ // when the focus is on trigger not on close button
8372
+ if (this.dropdown.shadowRoot.activeElement === this.dropdown.trigger) {
8373
+ // `dropdown.focus` will move focus to the first focusable element in bib when it's open,
8374
+ // when bib it not open, it will focus onto trigger.
8375
+ this.dropdown.focus();
8376
+ } else {
8377
+ // when close button has the focus, move focus back to the trigger
8378
+ this.dropdown.trigger.focus();
8379
+ }
6946
8380
  } else {
6947
8381
  this.dropdown.hide();
6948
8382
  }
6949
-
6950
8383
  return;
6951
8384
  }
6952
8385
 
@@ -7111,34 +8544,39 @@ class AuroSelect extends AuroElement$3 {
7111
8544
  // Add the tag name as an attribute if it is different than the component name
7112
8545
  this.runtimeUtils.handleComponentTagRename(this, 'auro-select');
7113
8546
 
7114
- this.configureMenu();
7115
8547
  this.configureDropdown();
8548
+ this.configureMenu();
7116
8549
  this.configureSelect();
8550
+ }
7117
8551
 
7118
- // Set the initial value in auro-menu if defined
7119
- if (this.hasAttribute('value') && this.getAttribute('value').length > 0) {
7120
- this.value = this.multiSelect ? arrayConverter(this.getAttribute('value')) : this.getAttribute('value');
7121
- this.menu.value = this.value;
7122
- }
8552
+ /**
8553
+ * Update the menu value. With checks for menu existence. Awaits value update.
8554
+ * @param {string} value - The value to set in the menu.
8555
+ * @returns {void}
8556
+ * @private
8557
+ */
8558
+ async updateMenuValue(value) {
8559
+ if (!this.menu) return;
8560
+
8561
+ this.menu.setAttribute('value', value);
8562
+ this.menu.value = value;
8563
+ await this.menu.updateComplete;
7123
8564
  }
7124
8565
 
7125
8566
  async updated(changedProperties) {
7126
- if (changedProperties.has('multiSelect')) {
8567
+ if (changedProperties.has('multiSelect') && !changedProperties.has('value')) {
7127
8568
  this.clearSelection();
7128
8569
  }
7129
8570
 
7130
8571
  if (changedProperties.has('value')) {
7131
8572
  if (this.value) {
7132
- this.value = this.multiSelect ? arrayConverter(this.value) : this.value;
8573
+ await this.updateMenuValue(this.value);
7133
8574
 
7134
- this.menu.value = this.value;
7135
-
7136
- // Wait for menu to finish updating its value
7137
- await this.menu.updateComplete;
7138
-
7139
- this.optionSelected = this.menu.optionSelected;
8575
+ if (this.menu) {
8576
+ this.optionSelected = this.menu.optionSelected;
8577
+ }
7140
8578
  } else {
7141
- this.menu.value = undefined;
8579
+ await this.updateMenuValue(undefined);
7142
8580
  }
7143
8581
 
7144
8582
  this._updateNativeSelect();
@@ -7157,7 +8595,7 @@ class AuroSelect extends AuroElement$3 {
7157
8595
  composed: true,
7158
8596
  detail: {
7159
8597
  optionSelected: this.optionSelected,
7160
- value: this.value
8598
+ value: this.formattedValue
7161
8599
  }
7162
8600
  }));
7163
8601
  }
@@ -7169,6 +8607,14 @@ class AuroSelect extends AuroElement$3 {
7169
8607
  if (changedProperties.has('error')) {
7170
8608
  this.validate(true);
7171
8609
  }
8610
+
8611
+ if (changedProperties.has('shape') && this.menu) {
8612
+ this.menu.setAttribute('shape', this.layout === 'classic' ? 'box' : this.shape);
8613
+ }
8614
+
8615
+ if (changedProperties.has('size') && this.menu) {
8616
+ this.menu.setAttribute('size', this.layout !== 'emphasized' ? 'md' : this.size);
8617
+ }
7172
8618
  }
7173
8619
 
7174
8620
  /**
@@ -7208,13 +8654,13 @@ class AuroSelect extends AuroElement$3 {
7208
8654
  const selectedValue = selectedOption.value;
7209
8655
 
7210
8656
  if (this.multiSelect) {
7211
- const currentArray = Array.isArray(this.value) ? this.value : [];
8657
+ const currentArray = this.formattedValue;
7212
8658
 
7213
8659
  if (!currentArray.includes(selectedValue)) {
7214
- this.value = [
8660
+ this.value = JSON.stringify([
7215
8661
  ...currentArray,
7216
8662
  selectedValue
7217
- ];
8663
+ ]);
7218
8664
  }
7219
8665
  } else {
7220
8666
  const currentValue = this.value;
@@ -7237,12 +8683,17 @@ class AuroSelect extends AuroElement$3 {
7237
8683
  }
7238
8684
 
7239
8685
  if (this.multiSelect) {
7240
- nativeSelect.value = this.value ? this.value[0] : '';
8686
+ nativeSelect.value = this.multiSelect ? this.multiSelect[0] : '';
7241
8687
  } else {
7242
8688
  nativeSelect.value = this.value || '';
7243
8689
  }
7244
8690
  }
7245
8691
 
8692
+ /**
8693
+ * Returns HTML for the hidden a11y screen reader content.
8694
+ * @private
8695
+ * @returns {html} - Returns HTML for the hidden a11y screen reader content.
8696
+ */
7246
8697
  renderAriaHtml() {
7247
8698
  return u`
7248
8699
  <div aria-live="polite" class="util_displayHiddenVisually">
@@ -7263,9 +8714,14 @@ class AuroSelect extends AuroElement$3 {
7263
8714
  `;
7264
8715
  }
7265
8716
 
8717
+ /**
8718
+ * Returns HTML for the hidden HTML5 select.
8719
+ * @private
8720
+ * @returns {html} - Returns HTML for the hidden HTML5 select.
8721
+ */
7266
8722
  renderNativeSelect() {
7267
8723
  return u`
7268
- <div class="nativeSelectWrapper">
8724
+ <div class="nativeSelectWrapper util_displayHidden">
7269
8725
  <select
7270
8726
  tabindex="-1"
7271
8727
  id="${`native-select-${this.id || this.uniqueId}`}"
@@ -7302,14 +8758,14 @@ class AuroSelect extends AuroElement$3 {
7302
8758
  ? u`
7303
8759
  <${this.helpTextTag} ?onDark="${this.onDark}">
7304
8760
  <p id="${this.uniqueId}" part="helpText">
7305
- <slot name="helptext"></slot>
8761
+ <slot name="helpText"></slot>
7306
8762
  </p>
7307
8763
  </${this.helpTextTag}>
7308
8764
  `
7309
8765
  : u`
7310
8766
  <${this.helpTextTag} error ?onDark="${this.onDark}">
7311
8767
  <p id="${this.uniqueId}" role="alert" aria-live="assertive" part="helpText">
7312
- ERROR MESSAGE ${this.errorMessage}
8768
+ ${this.errorMessage}
7313
8769
  </p>
7314
8770
  </${this.helpTextTag}>
7315
8771
  `
@@ -7322,17 +8778,16 @@ class AuroSelect extends AuroElement$3 {
7322
8778
  * @private
7323
8779
  * @returns {import("lit").TemplateResult} - Returns HTML for the emphasized layout.
7324
8780
  */
7325
- // TODO update to use util class
7326
8781
  renderLayoutEmphasized() {
7327
8782
  const placeholderClass = {
7328
- hidden: this.value,
8783
+ 'util_displayHidden': this.value
7329
8784
  };
7330
8785
 
7331
8786
  const displayValueClasses = {
7332
8787
  'displayValue': true,
7333
8788
  'hasContent': this.hasDisplayValueContent,
7334
8789
  'hasFocus': this.isPopoverVisible,
7335
- 'withValue': this.value && this.value.length > 0,
8790
+ 'withValue': this.placeholder || (this.value && this.value.length > 0), // eslint-disable-line no-extra-parens
7336
8791
  'force': this.forceDisplayValue,
7337
8792
  };
7338
8793
 
@@ -7349,16 +8804,16 @@ class AuroSelect extends AuroElement$3 {
7349
8804
  <slot name="bib.fullscreen.headline" @slotchange="${this.handleSlotChange}"></slot>
7350
8805
  </div>
7351
8806
  <${this.dropdownTag}
8807
+ a11yRole="select"
7352
8808
  ?autoPlacement="${this.autoPlacement}"
7353
8809
  ?error="${this.validity !== undefined && this.validity !== 'valid'}"
7354
- ?matchWidth="${!this.flexMenuWidth}"
8810
+ ?matchWidth="${this.matchWidth}"
7355
8811
  ?noFlip="${this.noFlip}"
7356
8812
  ?onDark="${this.onDark}"
7357
8813
  .fullscreenBreakpoint="${this.fullscreenBreakpoint}"
7358
8814
  .offset="${this.offset}"
7359
8815
  .placement="${this.placement}"
7360
8816
  chevron
7361
- fluid
7362
8817
  for="selectMenu"
7363
8818
  layout="${this.layout}"
7364
8819
  part="dropdown"
@@ -7370,15 +8825,14 @@ class AuroSelect extends AuroElement$3 {
7370
8825
  </div>
7371
8826
  <div class="mainContent">
7372
8827
  <div class="${e(valueContainerClasses)}">
7373
- <label>
8828
+ <label class="${e(this.commonLabelClasses)}">
7374
8829
  <slot name="label"></slot>
8830
+ ${this.required ? undefined : u`<slot name="optionalLabel"> (optional)</slot>`}
7375
8831
  </label>
7376
8832
  <div class="value" id="value"></div>
7377
- ${this.value ? undefined : u`
7378
- <div id="placeholder" class="${e(placeholderClass)}">
7379
- <slot name="placeholder"></slot>
7380
- </div>
7381
- `}
8833
+ <div id="placeholder" class="${e(placeholderClass)}">
8834
+ ${this.placeholder}
8835
+ </div>
7382
8836
  </div>
7383
8837
  <div class="${e(displayValueClasses)}" aria-hidden="true" part="displayValue">
7384
8838
  <slot name="displayValue"></slot>
@@ -7405,14 +8859,14 @@ class AuroSelect extends AuroElement$3 {
7405
8859
  */
7406
8860
  renderLayoutSnowflake() {
7407
8861
  const placeholderClass = {
7408
- hidden: this.value,
8862
+ 'util_displayHidden': this.value
7409
8863
  };
7410
8864
 
7411
8865
  const displayValueClasses = {
7412
8866
  'displayValue': true,
7413
8867
  'hasContent': this.hasDisplayValueContent,
7414
8868
  'hasFocus': this.isPopoverVisible,
7415
- 'withValue': this.value && this.value.length > 0,
8869
+ 'withValue': this.placeholder || (this.value && this.value.length > 0), // eslint-disable-line no-extra-parens
7416
8870
  'force': this.forceDisplayValue,
7417
8871
  };
7418
8872
 
@@ -7431,14 +8885,13 @@ class AuroSelect extends AuroElement$3 {
7431
8885
  <${this.dropdownTag}
7432
8886
  ?autoPlacement="${this.autoPlacement}"
7433
8887
  ?error="${this.validity !== undefined && this.validity !== 'valid'}"
7434
- ?matchWidth="${!this.flexMenuWidth}"
8888
+ ?matchWidth="${this.matchWidth}"
7435
8889
  ?noFlip="${this.noFlip}"
7436
8890
  ?onDark="${this.onDark}"
7437
8891
  .fullscreenBreakpoint="${this.fullscreenBreakpoint}"
7438
8892
  .offset="${this.offset}"
7439
8893
  .placement="${this.placement}"
7440
8894
  chevron
7441
- fluid
7442
8895
  for="selectMenu"
7443
8896
  layout="${this.layout}"
7444
8897
  part="dropdown"
@@ -7450,15 +8903,14 @@ class AuroSelect extends AuroElement$3 {
7450
8903
  </div>
7451
8904
  <div class="mainContent">
7452
8905
  <div class="${e(valueContainerClasses)}">
7453
- <label>
8906
+ <label class="${e(this.commonLabelClasses)}">
7454
8907
  <slot name="label"></slot>
8908
+ ${this.required ? undefined : u`<slot name="optionalLabel"> (optional)</slot>`}
7455
8909
  </label>
7456
8910
  <div class="value" id="value"></div>
7457
- ${this.value ? undefined : u`
7458
- <div id="placeholder" class="${e(placeholderClass)}">
7459
- <slot name="placeholder"></slot>
7460
- </div>
7461
- `}
8911
+ <div id="placeholder" class="${e(placeholderClass)}">
8912
+ ${this.placeholder}
8913
+ </div>
7462
8914
  </div>
7463
8915
  <div class="${e(displayValueClasses)}" aria-hidden="true" part="displayValue">
7464
8916
  <slot name="displayValue"></slot>
@@ -7474,6 +8926,7 @@ class AuroSelect extends AuroElement$3 {
7474
8926
  ${this.renderHtmlHelpText()}
7475
8927
  </div>
7476
8928
  </${this.dropdownTag}>
8929
+ ${this.renderNativeSelect()}
7477
8930
  </div>
7478
8931
  `;
7479
8932
  }
@@ -7484,11 +8937,75 @@ class AuroSelect extends AuroElement$3 {
7484
8937
  * @returns {import("lit").TemplateResult} - Returns HTML for the classic layout.
7485
8938
  */
7486
8939
  renderLayoutClassic() {
8940
+ const placeholderClass = {
8941
+ 'util_displayHidden': this.value
8942
+ };
8943
+
8944
+ const displayValueClasses = {
8945
+ 'displayValue': true,
8946
+ 'hasContent': this.hasDisplayValueContent,
8947
+ 'hasFocus': this.isPopoverVisible,
8948
+ 'withValue': this.placeholder || (this.value && this.value.length > 0), // eslint-disable-line no-extra-parens
8949
+ 'force': this.forceDisplayValue,
8950
+ };
8951
+
8952
+ const valueContainerClasses = {
8953
+ 'valueContainer': true,
8954
+ 'util_displayHiddenVisually': (this.forceDisplayValue || !(this.dropdown && this.dropdown.isPopoverVisible)) && this.hasDisplayValueContent
8955
+ };
8956
+
7487
8957
  return u`
7488
8958
  <div
7489
- class="${e(this.commonWrapperClasses)} thin"
8959
+ class="${e(this.commonWrapperClasses)}"
7490
8960
  part="wrapper">
7491
- classic
8961
+ <div id="slotHolder" aria-hidden="true">
8962
+ <slot name="bib.fullscreen.headline" @slotchange="${this.handleSlotChange}"></slot>
8963
+ </div>
8964
+ <${this.dropdownTag}
8965
+ ?autoPlacement="${this.autoPlacement}"
8966
+ ?error="${this.validity !== undefined && this.validity !== 'valid'}"
8967
+ ?matchWidth="${!this.flexMenuWidth}"
8968
+ ?noFlip="${this.noFlip}"
8969
+ ?onDark="${this.onDark}"
8970
+ .fullscreenBreakpoint="${this.fullscreenBreakpoint}"
8971
+ .offset="${this.offset}"
8972
+ .placement="${this.placement}"
8973
+ chevron
8974
+ for="selectMenu"
8975
+ layout="${this.layout}"
8976
+ part="dropdown"
8977
+ shape="${this.shape}"
8978
+ size="${this.size}">
8979
+ <div slot="trigger" aria-haspopup="true" id="triggerFocus" class="triggerContent">
8980
+ <div class="accents left">
8981
+ <slot name="typeIcon"></slot>
8982
+ </div>
8983
+ <div class="mainContent">
8984
+ <div class="${e(valueContainerClasses)}">
8985
+ <label class="${e(this.commonLabelClasses)}">
8986
+ <slot name="label"></slot>
8987
+ ${this.required ? undefined : u`<slot name="optionalLabel"> (optional)</slot>`}
8988
+ </label>
8989
+ <div class="value" id="value"></div>
8990
+ <div id="placeholder" class="${e(placeholderClass)}">
8991
+ ${this.placeholder}
8992
+ </div>
8993
+ </div>
8994
+ <div class="${e(displayValueClasses)}" aria-hidden="true" part="displayValue">
8995
+ <slot name="displayValue"></slot>
8996
+ </div>
8997
+ </div>
8998
+ <div class="accents right"></div>
8999
+ </div>
9000
+ <div class="menuWrapper"></div>
9001
+ <${this.bibtemplateTag} ?large="${this.largeFullscreenHeadline}" @close-click="${this.hideBib}">
9002
+ <slot></slot>
9003
+ </${this.bibtemplateTag}>
9004
+ <div slot="helpText">
9005
+ ${this.renderHtmlHelpText()}
9006
+ </div>
9007
+ </${this.dropdownTag}>
9008
+ ${this.renderNativeSelect()}
7492
9009
  </div>
7493
9010
  `;
7494
9011
  }
@@ -7522,112 +9039,13 @@ class AuroSelect extends AuroElement$3 {
7522
9039
 
7523
9040
  // When using auroElement, use the following attribute and function when hiding content from screen readers.
7524
9041
  // aria-hidden="${this.hideAudible(this.hiddenAudible)}"
7525
-
7526
- // function that renders the HTML and CSS into the scope of the component
7527
- renderBACKUP() {
7528
- const placeholderClass = {
7529
- hidden: this.value,
7530
- };
7531
-
7532
- return u`
7533
- <div class="outerWrapper">
7534
- <div aria-live="polite" class="util_displayHiddenVisually">
7535
- ${this.optionActive && this.options.length > 0
7536
- ? u`
7537
- ${`${this.optionActive.innerText}, option ${this.options.indexOf(this.optionActive) + 1} of ${this.options.length}`}
7538
- `
7539
- : undefined
7540
- };
7541
-
7542
- ${this.optionSelected && this.options.length > 0
7543
- ? u`
7544
- ${`${this.optionSelected.innerText} selected`}
7545
- `
7546
- : undefined
7547
- };
7548
- </div>
7549
- <div id="slotHolder" aria-hidden="true">
7550
- <slot name="bib.fullscreen.headline" @slotchange="${this.handleSlotChange}"></slot>
7551
- </div>
7552
- <${this.dropdownTag}
7553
- ?autoPlacement="${this.autoPlacement}"
7554
- ?disabled="${this.disabled}"
7555
- ?error="${this.validity !== undefined && this.validity !== 'valid'}"
7556
- ?matchWidth="${!this.flexMenuWidth}"
7557
- ?noFlip="${this.noFlip}"
7558
- ?onDark="${this.onDark}"
7559
- .fullscreenBreakpoint="${this.fullscreenBreakpoint}"
7560
- .offset="${this.offset}"
7561
- .placement="${this.placement}"
7562
- chevron
7563
- fluid
7564
- for="selectMenu"
7565
- layout="${this.layout}"
7566
- part="dropdown"
7567
- shape="${this.shape}"
7568
- size="${this.size}">
7569
- <span slot="trigger" aria-haspopup="true" id="triggerFocus">
7570
- <span id="placeholder"
7571
- class="${e(placeholderClass)}"
7572
- ?aria-hidden="${this.optionSelected && this.optionSelected.length ? 'true' : false}"
7573
- >
7574
- <slot name="placeholder"></slot>
7575
- </span>
7576
- <slot name="valueText" id="valueText"></slot>
7577
- </span>
7578
-
7579
- <${this.bibtemplateTag} ?large="${this.largeFullscreenHeadline}" @close-click="${this.hideBib}">
7580
- <slot></slot>
7581
- </${this.bibtemplateTag}>
7582
- <slot name="label" slot="label"></slot>
7583
- <p slot="helpText">
7584
- ${!this.validity || this.validity === undefined || this.validity === 'valid'
7585
- ? u`
7586
- <span id="${this.uniqueId}" part="helpText">
7587
- <slot name="helpText"></slot>
7588
- </span>`
7589
- : u`
7590
- <span id="${this.uniqueId}" role="alert" aria-live="assertive" part="helpText">
7591
- ${this.errorMessage}
7592
- </span>`
7593
- }
7594
- </p>
7595
- </${this.dropdownTag}>
7596
- <div class="nativeSelectWrapper">
7597
- <select
7598
- tabindex="-1"
7599
- id="${`native-select-${this.id || this.uniqueId}`}"
7600
- name="${this.name || ''}"
7601
- ?disabled="${this.disabled}"
7602
- ?required="${this.required}"
7603
- aria-hidden="true"
7604
- autocomplete="${o(this.autocomplete)}"
7605
- @change="${this._handleNativeSelectChange}">
7606
- <option value="" ?selected="${!this.value}"></option>
7607
- ${this.options.map((option) => {
7608
- const optionValue = option.value || option.textContent;
7609
- return u`
7610
- <option
7611
- value="${optionValue}"
7612
- ?selected="${this.value === optionValue}">
7613
- ${option.textContent}
7614
- </option>
7615
- `;
7616
- })}
7617
- </select>
7618
- </div>
7619
- <!-- Help text and error message template -->
7620
- ${this.renderHtmlHelpText()}
7621
- </div>
7622
- `;
7623
- }
7624
9042
  }
7625
9043
 
7626
- 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)}`;
9044
+ 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)}`;
7627
9045
 
7628
9046
  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)}`;
7629
9047
 
7630
- 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)}`;
9048
+ 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)}`;
7631
9049
 
7632
9050
  // Copyright (c) 2021 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
7633
9051
  // See LICENSE in the project root for license information.
@@ -7680,7 +9098,6 @@ function dispatchMenuEvent(element, eventName, detail = null) {
7680
9098
  * @attr {boolean} nocheckmark - When true, selected option will not show the checkmark.
7681
9099
  * @attr {boolean} loading - When true, displays a loading state using the loadingIcon and loadingText slots if provided.
7682
9100
  * @attr {boolean} multiselect - When true, the selected option can be multiple options.
7683
- * @attr {String|Array<string>} value - Value selected for the menu, type `string` by default. In multi-select mode, `value` is an array of strings.
7684
9101
  * @prop {boolean} hasLoadingPlaceholder - Indicates whether the menu has a loadingIcon or loadingText to render when in a loading state.
7685
9102
  * @event {CustomEvent<Element>} auroMenu-activatedOption - Notifies that a menuoption has been made `active`.
7686
9103
  * @event {CustomEvent<any>} auroMenu-customEventFired - Notifies that a custom event has been fired.
@@ -7693,14 +9110,17 @@ function dispatchMenuEvent(element, eventName, detail = null) {
7693
9110
  * @slot - Slot for insertion of menu options.
7694
9111
  */
7695
9112
 
7696
- /* eslint-disable no-magic-numbers, max-lines, no-extra-parens */
9113
+ /* eslint-disable no-magic-numbers, max-lines, no-extra-parens, no-inline-comments, line-comment-position */
7697
9114
 
7698
- class AuroMenu extends i$2 {
9115
+ class AuroMenu extends AuroElement$4 {
7699
9116
  constructor() {
7700
9117
  super();
7701
9118
 
7702
9119
  // State properties (reactive)
7703
9120
 
9121
+ this.shape = ""; // box, rounded, pill
9122
+ this.size = ""; // md, lg, xl
9123
+
7704
9124
  // Value of the selected options
7705
9125
  this.value = undefined;
7706
9126
  // Currently selected option
@@ -7759,6 +9179,7 @@ class AuroMenu extends i$2 {
7759
9179
 
7760
9180
  static get properties() {
7761
9181
  return {
9182
+ ...super.properties,
7762
9183
  noCheckmark: {
7763
9184
  type: Boolean,
7764
9185
  reflect: true,
@@ -7789,9 +9210,24 @@ class AuroMenu extends i$2 {
7789
9210
  reflect: true,
7790
9211
  attribute: 'multiselect'
7791
9212
  },
9213
+
9214
+ /**
9215
+ * Value selected for the component.
9216
+ */
7792
9217
  value: {
7793
- // Allow string, string[] arrays and undefined
7794
- type: Object
9218
+ type: String,
9219
+ reflect: true,
9220
+ attribute: 'value'
9221
+ },
9222
+
9223
+ /**
9224
+ * Indent level for submenus.
9225
+ * @private
9226
+ */
9227
+ level: {
9228
+ type: Number,
9229
+ reflect: false,
9230
+ attribute: false
7795
9231
  }
7796
9232
  };
7797
9233
  }
@@ -7813,7 +9249,26 @@ class AuroMenu extends i$2 {
7813
9249
  *
7814
9250
  */
7815
9251
  static register(name = "auro-menu") {
7816
- AuroLibraryRuntimeUtils$4.prototype.registerComponent(name, AuroMenu);
9252
+ AuroLibraryRuntimeUtils$6.prototype.registerComponent(name, AuroMenu);
9253
+ }
9254
+
9255
+ /**
9256
+ * Formatted value based on `multiSelect` state.
9257
+ * Default type is `String`, changing to `Array<String>` when `multiSelect` is true.
9258
+ * @private
9259
+ * @returns {String|Array<String>}
9260
+ */
9261
+ get formattedValue() {
9262
+ if (this.multiSelect) {
9263
+ if (!this.value) {
9264
+ return undefined;
9265
+ }
9266
+ if (this.value.startsWith("[")) {
9267
+ return JSON.parse(this.value);
9268
+ }
9269
+ return [this.value];
9270
+ }
9271
+ return this.value;
7817
9272
  }
7818
9273
 
7819
9274
  // Lifecycle Methods
@@ -7825,6 +9280,7 @@ class AuroMenu extends i$2 {
7825
9280
  this.addEventListener('mousedown', this.handleMouseSelect);
7826
9281
  this.addEventListener('auroMenuOption-mouseover', this.handleOptionHover);
7827
9282
  this.addEventListener('slotchange', this.handleSlotChange);
9283
+ this.setTagAttribute("auro-menu");
7828
9284
  }
7829
9285
 
7830
9286
  disconnectedCallback() {
@@ -7837,19 +9293,33 @@ class AuroMenu extends i$2 {
7837
9293
  }
7838
9294
 
7839
9295
  firstUpdated() {
7840
- AuroLibraryRuntimeUtils$4.prototype.handleComponentTagRename(this, 'auro-menu');
9296
+ AuroLibraryRuntimeUtils$6.prototype.handleComponentTagRename(this, 'auro-menu');
7841
9297
 
7842
9298
  this.loadingSlots = this.querySelectorAll("[slot='loadingText'], [slot='loadingIcon']");
7843
9299
  this.initializeMenu();
7844
9300
  }
7845
9301
 
9302
+ /**
9303
+ * Sets an attribute that matches the default tag name if the tag name is not the default.
9304
+ * @param {string} tagName - The tag name to set as an attribute.
9305
+ * @private
9306
+ */
9307
+ setTagAttribute(tagName) {
9308
+ if (this.tagName.toLowerCase() !== tagName) {
9309
+ this.setAttribute(tagName, true);
9310
+ }
9311
+ }
9312
+
7846
9313
  updated(changedProperties) {
7847
- if (changedProperties.has('multiSelect')) {
9314
+ super.updated(changedProperties);
9315
+
9316
+ if (changedProperties.has('multiSelect') && !changedProperties.has("value")) {
7848
9317
  // Reset selection if multiSelect mode changes
7849
9318
  this.clearSelection();
7850
9319
  }
7851
9320
 
7852
- if (changedProperties.has('value')) {
9321
+
9322
+ if (changedProperties.has("value")) {
7853
9323
  // Handle null/undefined case
7854
9324
  if (this.value === undefined || this.value === null) {
7855
9325
  this.optionSelected = undefined;
@@ -7857,7 +9327,7 @@ class AuroMenu extends i$2 {
7857
9327
  } else {
7858
9328
  if (this.multiSelect) {
7859
9329
  // In multiselect mode, this.value should be an array of strings
7860
- const valueArray = Array.isArray(this.value) ? this.value : [this.value];
9330
+ const valueArray = this.formattedValue;
7861
9331
  const matchingOptions = this.items.filter((item) => valueArray.includes(item.value));
7862
9332
 
7863
9333
  this.optionSelected = matchingOptions.length > 0 ? matchingOptions : undefined;
@@ -7917,6 +9387,19 @@ class AuroMenu extends i$2 {
7917
9387
  this.querySelectorAll('auro-menu, [auro-menu], auro-menuoption, [auro-menuoption]').forEach((element) => element.setAttribute('noCheckmark', ''));
7918
9388
  }
7919
9389
 
9390
+ // Handle layout propagation to all menus and options
9391
+ const propagationTargets = this.querySelectorAll('auro-menu, [auro-menu], auro-menuoption, [auro-menuoption]');
9392
+ [
9393
+ 'size',
9394
+ 'shape'
9395
+ ].forEach((prop) => {
9396
+ if (changedProperties.has(prop)) {
9397
+ propagationTargets.forEach((el) => {
9398
+ el.setAttribute(prop, this[prop]);
9399
+ });
9400
+ }
9401
+ });
9402
+
7920
9403
  // Regex for matchWord if needed
7921
9404
  let regexWord = null;
7922
9405
 
@@ -8011,14 +9494,14 @@ class AuroMenu extends i$2 {
8011
9494
  */
8012
9495
  handleSelectState(option) {
8013
9496
  if (this.multiSelect) {
8014
- const currentValue = this.value || [];
9497
+ const currentValue = this.formattedValue || [];
8015
9498
  const currentSelected = this.optionSelected || [];
8016
9499
 
8017
9500
  if (!currentValue.includes(option.value)) {
8018
- this.value = [
9501
+ this.value = JSON.stringify([
8019
9502
  ...currentValue,
8020
9503
  option.value
8021
- ];
9504
+ ]);
8022
9505
  }
8023
9506
  if (!currentSelected.includes(option)) {
8024
9507
  this.optionSelected = [
@@ -8041,13 +9524,15 @@ class AuroMenu extends i$2 {
8041
9524
  * @param {HTMLElement} option - The menuoption to be deselected.
8042
9525
  */
8043
9526
  handleDeselectState(option) {
8044
- if (this.multiSelect && Array.isArray(this.value)) {
9527
+ if (this.multiSelect) {
8045
9528
  // Remove this option from array
8046
- this.value = this.value.filter((val) => val !== option.value);
9529
+ const newFormattedValue = (this.formattedValue || []).filter((val) => val !== option.value);
8047
9530
 
8048
9531
  // If array is empty after removal, set back to undefined
8049
- if (this.value.length === 0) {
9532
+ if (newFormattedValue && newFormattedValue.length === 0) {
8050
9533
  this.value = undefined;
9534
+ } else {
9535
+ this.value = JSON.stringify(newFormattedValue);
8051
9536
  }
8052
9537
 
8053
9538
  this.optionSelected = this.optionSelected.filter((val) => val !== option);
@@ -8113,21 +9598,20 @@ class AuroMenu extends i$2 {
8113
9598
  * @param {HTMLElement} menu - Root menu element.
8114
9599
  */
8115
9600
  handleNestedMenus(menu) {
8116
- const nestedMenus = menu.querySelectorAll('auro-menu, [auro-menu]');
9601
+ menu.level = menu.parentElement.level >= 0 ? menu.parentElement.level + 1 : 0;
8117
9602
 
8118
- nestedMenus.forEach((nestedMenu) => {
8119
- // role="listbox" only allows "role=group" for children.
8120
- nestedMenu.setAttribute('role', 'group');
8121
- if (!nestedMenu.hasAttribute('aria-label')) {
8122
- nestedMenu.setAttribute('aria-label', 'submenu');
9603
+ if (menu.level > 0) {
9604
+ menu.setAttribute('role', 'group');
9605
+ menu.removeAttribute("root");
9606
+ if (!menu.hasAttribute('aria-label')) {
9607
+ menu.setAttribute('aria-label', 'submenu');
8123
9608
  }
9609
+ }
8124
9610
 
8125
- const options = nestedMenu.querySelectorAll(':scope > auro-menuoption, :scope > [auro-menuoption]');
8126
- options.forEach((option) => {
8127
- option.innerHTML = this.nestingSpacer + option.innerHTML;
8128
- });
8129
-
8130
- this.handleNestedMenus(nestedMenu);
9611
+ const options = menu.querySelectorAll(':scope > auro-menuoption, :scope > [auro-menuoption]');
9612
+ options.forEach((option) => {
9613
+ const regex = new RegExp(this.nestingSpacer, "gu");
9614
+ option.innerHTML = this.nestingSpacer.repeat(menu.level) + option.innerHTML.replace(regex, '');
8131
9615
  });
8132
9616
  }
8133
9617
 
@@ -8369,28 +9853,39 @@ class AuroMenu extends i$2 {
8369
9853
  }
8370
9854
 
8371
9855
  /**
8372
- * Renders the component.
8373
- * @returns {boolean} - True if loading slots are present and non-empty.
9856
+ * Logic to determine the layout of the component.
9857
+ * @protected
9858
+ * @returns {void}
8374
9859
  */
8375
- render() {
9860
+ renderLayout() {
8376
9861
  if (this.loading) {
8377
9862
  return x`
8378
- <auro-menuoption disabled loadingplaceholder class="${this.hasLoadingPlaceholder ? '' : 'empty'}">
8379
- <div>
8380
- <slot name="loadingIcon"></slot>
8381
- <slot name="loadingText"></slot>
8382
- </div>
8383
- </auro-menuoption>
9863
+ <div class="wrapper">
9864
+ <auro-menuoption
9865
+ disabled
9866
+ loadingplaceholder
9867
+ class="${this.hasLoadingPlaceholder ? "" : "empty"}"
9868
+ >
9869
+ <div>
9870
+ <slot name="loadingIcon"></slot>
9871
+ <slot name="loadingText"></slot>
9872
+ </div>
9873
+ </auro-menuoption>
9874
+ </div>
8384
9875
  `;
8385
9876
  }
8386
9877
 
8387
- return x`<slot @slotchange=${this.handleSlotChange}></slot>`;
9878
+ return x`
9879
+ <div class="wrapper">
9880
+ <slot @slotchange=${this.handleSlotChange}></slot>
9881
+ </div>
9882
+ `;
8388
9883
  }
8389
9884
  }
8390
9885
 
8391
- 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}`;
9886
+ 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) + var(--ds-size-300, 1.5rem) + var(--ds-size-100, 0.5rem));padding-top:var(--ds-size-50, 0.25rem);padding-bottom:var(--ds-size-50, 0.25rem);-webkit-tap-highlight-color:transparent}:host .wrapper[class*=shape-box],:host .wrapper[class*=shape-snowflake]{border-radius:unset}:host .wrapper[class*=shape-pill]{border-radius:30px}:host .wrapper[class*=-lg]{font-size:var(--ds-text-body-size-lg, 1.125rem);line-height:var(--ds-text-body-height-lg, 1.625rem);padding-top:var(--ds-size-75, 0.375rem);padding-bottom:var(--ds-size-75, 0.375rem);padding-right:var(--ds-size-150, 0.75rem)}:host .wrapper[class*=-lg]:not(:last-child){margin-bottom:var(--ds-size-50, 0.25rem)}:host .wrapper[class*=-xl]{font-size:var(--ds-text-body-size-lg, 1.125rem);line-height:var(--ds-text-body-height-lg, 1.625rem);padding-top:var(--ds-size-100, 0.5rem);padding-bottom:var(--ds-size-100, 0.5rem);padding-right:var(--ds-size-200, 1rem)}:host .wrapper[class*=-xl]:not(:last-child){margin-bottom:var(--ds-size-100, 0.5rem)}:host slot{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}:host [auro-icon]{--ds-auro-icon-size: var(--ds-size-300, 1.5rem);margin-right:var(--ds-size-150, 0.75rem);margin-left:var(--ds-size-100, 0.5rem)}:host ::slotted(.nestingSpacer){display:inline-block;width:var(--ds-size-300, 1.5rem)}:host ::slotted(strong){font-weight:700}:host([loadingplaceholder]) .wrapper{padding-left:calc(var(--ds-size-150, 0.75rem) + var(--ds-size-300, 1.5rem) + 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}`;
8392
9887
 
8393
- 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)}`;
9888
+ 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)}`;
8394
9889
 
8395
9890
  // Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
8396
9891
  // See LICENSE in the project root for license information.
@@ -8738,8 +10233,12 @@ class AuroIcon extends BaseIcon {
8738
10233
  async firstUpdated() {
8739
10234
  await super.firstUpdated();
8740
10235
 
8741
- // Removes the SVG description for screenreader if ariaHidden is set to true
8742
- if (!this.hasAttribute('ariaHidden') && this.svg) {
10236
+ /**
10237
+ * icons provide a description for screen readers. Icon only instances Auro-button
10238
+ * depend on this description to provide context for the user using a screen reader.
10239
+ * Removes the SVG description for screen reader if ariaHidden is set to true.
10240
+ */
10241
+ if (this.hasAttribute('ariaHidden') && this.svg) {
8743
10242
  const svgDesc = this.svg.querySelector('desc');
8744
10243
 
8745
10244
  if (svgDesc) {
@@ -8783,7 +10282,7 @@ class AuroIcon extends BaseIcon {
8783
10282
  }
8784
10283
  }
8785
10284
 
8786
- var iconVersion = '8.0.3';
10285
+ var iconVersion = '8.0.4';
8787
10286
 
8788
10287
  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>"};
8789
10288
 
@@ -8801,10 +10300,13 @@ var checkmarkIcon = {"svg":"<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlin
8801
10300
  * @event auroMenuOption-mouseover - Notifies that this option has been hovered over.
8802
10301
  * @slot - Specifies text for an option, but is not the value.
8803
10302
  */
8804
- class AuroMenuOption extends i$2 {
10303
+ class AuroMenuOption extends AuroElement$4 {
8805
10304
  constructor() {
8806
10305
  super();
8807
10306
 
10307
+ this.size = ""; // md, lg, xl
10308
+ this.shape = ""; // box, rounded, pill
10309
+
8808
10310
  /**
8809
10311
  * Generate unique names for dependency components.
8810
10312
  */
@@ -8823,11 +10325,12 @@ class AuroMenuOption extends i$2 {
8823
10325
  /**
8824
10326
  * @private
8825
10327
  */
8826
- this.runtimeUtils = new AuroLibraryRuntimeUtils$4();
10328
+ this.runtimeUtils = new AuroLibraryRuntimeUtils$6();
8827
10329
  }
8828
10330
 
8829
10331
  static get properties() {
8830
10332
  return {
10333
+ ...super.properties,
8831
10334
  nocheckmark: {
8832
10335
  type: Boolean,
8833
10336
  reflect: true
@@ -8867,7 +10370,7 @@ class AuroMenuOption extends i$2 {
8867
10370
  *
8868
10371
  */
8869
10372
  static register(name = "auro-menuoption") {
8870
- AuroLibraryRuntimeUtils$4.prototype.registerComponent(name, AuroMenuOption);
10373
+ AuroLibraryRuntimeUtils$6.prototype.registerComponent(name, AuroMenuOption);
8871
10374
  }
8872
10375
 
8873
10376
  firstUpdated() {
@@ -8889,6 +10392,8 @@ class AuroMenuOption extends i$2 {
8889
10392
 
8890
10393
  // observer for selected property changes
8891
10394
  updated(changedProperties) {
10395
+ super.updated(changedProperties);
10396
+
8892
10397
  if (changedProperties.has('selected')) {
8893
10398
  this.setAttribute('aria-selected', this.selected.toString());
8894
10399
  }
@@ -8910,10 +10415,19 @@ class AuroMenuOption extends i$2 {
8910
10415
  return u`<${this.iconTag} customColor customSvg slot="icon">${svg}</${this.iconTag}>`;
8911
10416
  }
8912
10417
 
8913
- render() {
10418
+ /**
10419
+ * Logic to determine the layout of the component.
10420
+ * @protected
10421
+ * @returns {void}
10422
+ */
10423
+ renderLayout() {
8914
10424
  return u`
8915
- ${this.selected && !this.nocheckmark ? this.generateIconHtml(checkmarkIcon.svg) : undefined}
8916
- <slot></slot>
10425
+ <div class="wrapper">
10426
+ ${this.selected && !this.nocheckmark
10427
+ ? this.generateIconHtml(checkmarkIcon.svg)
10428
+ : undefined}
10429
+ <slot></slot>
10430
+ </div>
8917
10431
  `;
8918
10432
  }
8919
10433
  }
@@ -8935,7 +10449,6 @@ function initExamples(initCount) {
8935
10449
  inDialogExample();
8936
10450
  resetStateExample();
8937
10451
  auroMenuLoadingExample();
8938
- valueTextExample();
8939
10452
  } catch (err) {
8940
10453
  if (initCount <= 20) {
8941
10454
  // setTimeout handles issue where content is sometimes loaded after the functions get called