@aurodesignsystem-dev/auro-formkit 0.0.0-pr624.10 → 0.0.0-pr624.100

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 (148) 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/headerVersion.d.ts +1 -1
  4. package/components/bibtemplate/dist/iconVersion.d.ts +1 -1
  5. package/components/bibtemplate/dist/index.js +1242 -94
  6. package/components/bibtemplate/dist/registered.js +1242 -94
  7. package/components/checkbox/README.md +1 -1
  8. package/components/checkbox/demo/api.html +16 -10
  9. package/components/checkbox/demo/api.md +54 -19
  10. package/components/checkbox/demo/api.min.js +71 -46
  11. package/components/checkbox/demo/index.html +16 -10
  12. package/components/checkbox/demo/index.md +2 -2
  13. package/components/checkbox/demo/index.min.js +71 -46
  14. package/components/checkbox/demo/readme.html +16 -9
  15. package/components/checkbox/demo/readme.md +1 -1
  16. package/components/checkbox/dist/auro-checkbox-group.d.ts +1 -1
  17. package/components/checkbox/dist/auro-checkbox.d.ts +6 -3
  18. package/components/checkbox/dist/index.js +70 -45
  19. package/components/checkbox/dist/registered.js +70 -45
  20. package/components/combobox/README.md +2 -0
  21. package/components/combobox/demo/api.html +16 -10
  22. package/components/combobox/demo/api.md +121 -8
  23. package/components/combobox/demo/api.min.js +3314 -1013
  24. package/components/combobox/demo/index.html +16 -10
  25. package/components/combobox/demo/index.md +20 -34
  26. package/components/combobox/demo/index.min.js +3314 -1013
  27. package/components/combobox/demo/readme.html +16 -9
  28. package/components/combobox/demo/readme.md +2 -0
  29. package/components/combobox/dist/auro-combobox.d.ts +59 -14
  30. package/components/combobox/dist/index.js +3008 -850
  31. package/components/combobox/dist/registered.js +3008 -850
  32. package/components/counter/demo/api.html +17 -10
  33. package/components/counter/demo/api.md +167 -21
  34. package/components/counter/demo/api.min.js +3419 -773
  35. package/components/counter/demo/index.html +17 -10
  36. package/components/counter/demo/index.md +191 -34
  37. package/components/counter/demo/index.min.js +3419 -773
  38. package/components/counter/demo/readme.html +16 -9
  39. package/components/counter/dist/auro-counter-button.d.ts +2 -0
  40. package/components/counter/dist/auro-counter-group.d.ts +162 -11
  41. package/components/counter/dist/auro-counter.d.ts +16 -0
  42. package/components/counter/dist/helptextVersion.d.ts +2 -0
  43. package/components/counter/dist/iconVersion.d.ts +1 -1
  44. package/components/counter/dist/index.js +3419 -773
  45. package/components/counter/dist/registered.js +3419 -773
  46. package/components/datepicker/README.md +2 -1
  47. package/components/datepicker/demo/api.html +16 -10
  48. package/components/datepicker/demo/api.md +70 -28
  49. package/components/datepicker/demo/api.min.js +11970 -8081
  50. package/components/datepicker/demo/index.html +16 -10
  51. package/components/datepicker/demo/index.md +87 -8
  52. package/components/datepicker/demo/index.min.js +11970 -8081
  53. package/components/datepicker/demo/readme.html +16 -9
  54. package/components/datepicker/demo/readme.md +2 -1
  55. package/components/datepicker/dist/auro-datepicker.d.ts +152 -12
  56. package/components/datepicker/dist/buttonVersion.d.ts +1 -1
  57. package/components/datepicker/dist/iconVersion.d.ts +2 -0
  58. package/components/datepicker/dist/index.js +14577 -10688
  59. package/components/datepicker/dist/popoverVersion.d.ts +1 -1
  60. package/components/datepicker/dist/registered.js +14577 -10688
  61. package/components/dropdown/demo/api.html +16 -10
  62. package/components/dropdown/demo/api.md +89 -281
  63. package/components/dropdown/demo/api.min.js +451 -271
  64. package/components/dropdown/demo/index.html +16 -10
  65. package/components/dropdown/demo/index.md +92 -362
  66. package/components/dropdown/demo/index.min.js +451 -271
  67. package/components/dropdown/demo/readme.html +16 -9
  68. package/components/dropdown/dist/auro-dropdown.d.ts +43 -82
  69. package/components/dropdown/dist/auro-dropdownBib.d.ts +14 -0
  70. package/components/dropdown/dist/index.js +450 -270
  71. package/components/dropdown/dist/registered.js +450 -270
  72. package/components/form/demo/api.html +16 -9
  73. package/components/form/demo/api.md +1 -1
  74. package/components/form/demo/api.min.js +3 -3
  75. package/components/form/demo/autocomplete.html +19 -3
  76. package/components/form/demo/index.html +16 -9
  77. package/components/form/demo/index.min.js +3 -3
  78. package/components/form/demo/readme.html +16 -9
  79. package/components/form/demo/working.html +19 -13
  80. package/components/form/dist/auro-form.d.ts +1 -1
  81. package/components/form/dist/index.js +2 -2
  82. package/components/form/dist/registered.js +2 -2
  83. package/components/helptext/dist/auro-helptext.d.ts +0 -2
  84. package/components/helptext/dist/index.js +3 -5
  85. package/components/helptext/dist/registered.js +3 -5
  86. package/components/input/README.md +6 -2
  87. package/components/input/demo/api.html +16 -10
  88. package/components/input/demo/api.md +235 -135
  89. package/components/input/demo/api.min.js +1046 -301
  90. package/components/input/demo/index.html +16 -10
  91. package/components/input/demo/index.md +55 -32
  92. package/components/input/demo/index.min.js +1062 -317
  93. package/components/input/demo/readme.html +16 -9
  94. package/components/input/demo/readme.md +6 -2
  95. package/components/input/dist/auro-input.d.ts +26 -2
  96. package/components/input/dist/base-input.d.ts +47 -11
  97. package/components/input/dist/buttonVersion.d.ts +1 -1
  98. package/components/input/dist/iconVersion.d.ts +1 -1
  99. package/components/input/dist/index.js +1061 -316
  100. package/components/input/dist/registered.js +1061 -316
  101. package/components/layoutElement/dist/index.js +11 -8
  102. package/components/layoutElement/dist/registered.js +97 -0
  103. package/components/menu/demo/api.html +17 -10
  104. package/components/menu/demo/api.md +65 -8
  105. package/components/menu/demo/api.min.js +301 -63
  106. package/components/menu/demo/index.html +16 -10
  107. package/components/menu/demo/index.min.js +301 -63
  108. package/components/menu/demo/readme.html +16 -9
  109. package/components/menu/dist/auro-menu.d.ts +53 -7
  110. package/components/menu/dist/auro-menuoption.d.ts +21 -3
  111. package/components/menu/dist/iconVersion.d.ts +1 -1
  112. package/components/menu/dist/index.js +286 -48
  113. package/components/menu/dist/registered.js +286 -48
  114. package/components/menu/dist/styles/default/tokens-css.d.ts +2 -0
  115. package/components/radio/demo/api.html +16 -10
  116. package/components/radio/demo/api.md +41 -9
  117. package/components/radio/demo/api.min.js +95 -97
  118. package/components/radio/demo/index.html +16 -10
  119. package/components/radio/demo/index.min.js +95 -97
  120. package/components/radio/demo/readme.html +16 -9
  121. package/components/radio/dist/auro-radio-group.d.ts +1 -1
  122. package/components/radio/dist/auro-radio.d.ts +11 -12
  123. package/components/radio/dist/index.js +94 -96
  124. package/components/radio/dist/registered.js +94 -96
  125. package/components/select/README.md +1 -0
  126. package/components/select/demo/api.html +16 -10
  127. package/components/select/demo/api.js +0 -2
  128. package/components/select/demo/api.md +159 -125
  129. package/components/select/demo/api.min.js +2281 -730
  130. package/components/select/demo/index.html +17 -11
  131. package/components/select/demo/index.md +1074 -259
  132. package/components/select/demo/index.min.js +2283 -720
  133. package/components/select/demo/readme.html +16 -9
  134. package/components/select/demo/readme.md +1 -0
  135. package/components/select/dist/auro-select.d.ts +86 -25
  136. package/components/select/dist/index.js +2175 -755
  137. package/components/select/dist/registered.js +2175 -755
  138. package/package.json +31 -28
  139. /package/components/{datepicker/dist/styles/default/color-css.d.ts → counter/dist/styles/shapeSize-css.d.ts} +0 -0
  140. /package/components/datepicker/dist/styles/{emphasized/style-css.d.ts → classic/color-css.d.ts} +0 -0
  141. /package/components/{input/dist/styles/default/input-css.d.ts → datepicker/dist/styles/classic/style-css.d.ts} +0 -0
  142. /package/components/{input/dist/styles/default/label-css.d.ts → datepicker/dist/styles/snowflake/color-css.d.ts} +0 -0
  143. /package/components/{input/dist/styles/input-css.d.ts → datepicker/dist/styles/snowflake/style-css.d.ts} +0 -0
  144. /package/components/{menu/dist/styles/color-menu-css.d.ts → dropdown/dist/styles/style-css.d.ts} +0 -0
  145. /package/components/menu/dist/styles/{color-menuoption-css.d.ts → default/color-menu-css.d.ts} +0 -0
  146. /package/components/menu/dist/styles/{style-menu-css.d.ts → default/color-menuoption-css.d.ts} +0 -0
  147. /package/components/menu/dist/styles/{style-menuoption-css.d.ts → default/style-menu-css.d.ts} +0 -0
  148. /package/components/menu/dist/styles/{tokens-css.d.ts → default/style-menuoption-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
@@ -112,7 +101,7 @@ const t$2=globalThis,e$4=t$2.ShadowRoot&&(void 0===t$2.ShadyCSS||t$2.ShadyCSS.na
112
101
  * @license
113
102
  * Copyright 2017 Google LLC
114
103
  * SPDX-License-Identifier: BSD-3-Clause
115
- */const{is:i$4,defineProperty:e$3,getOwnPropertyDescriptor:h$1,getOwnPropertyNames:r$1,getOwnPropertySymbols:o$4,getPrototypeOf:n$2}=Object,a$2=globalThis,c$1=a$2.trustedTypes,l$2=c$1?c$1.emptyScript:"",p$1=a$2.reactiveElementPolyfillSupport,d$1=(t,s)=>t,u$2={toAttribute(t,s){switch(s){case Boolean:t=t?l$2:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t);}return t},fromAttribute(t,s){let i=t;switch(s){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t);}catch(t){i=null;}}return i}},f$1=(t,s)=>!i$4(t,s),b={attribute:true,type:String,converter:u$2,reflect:false,useDefault:false,hasChanged:f$1};Symbol.metadata??=Symbol("metadata"),a$2.litPropertyMetadata??=new WeakMap;let y$1 = class y extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t);}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,s=b){if(s.state&&(s.attribute=false),this._$Ei(),this.prototype.hasOwnProperty(t)&&((s=Object.create(s)).wrapped=true),this.elementProperties.set(t,s),!s.noAccessor){const i=Symbol(),h=this.getPropertyDescriptor(t,i,s);void 0!==h&&e$3(this.prototype,t,h);}}static getPropertyDescriptor(t,s,i){const{get:e,set:r}=h$1(this.prototype,t)??{get(){return this[s]},set(t){this[s]=t;}};return {get:e,set(s){const h=e?.call(this);r?.call(this,s),this.requestUpdate(t,h,i);},configurable:true,enumerable:true}}static getPropertyOptions(t){return this.elementProperties.get(t)??b}static _$Ei(){if(this.hasOwnProperty(d$1("elementProperties")))return;const t=n$2(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties);}static finalize(){if(this.hasOwnProperty(d$1("finalized")))return;if(this.finalized=true,this._$Ei(),this.hasOwnProperty(d$1("properties"))){const t=this.properties,s=[...r$1(t),...o$4(t)];for(const i of s)this.createProperty(i,t[i]);}const t=this[Symbol.metadata];if(null!==t){const s=litPropertyMetadata.get(t);if(void 0!==s)for(const[t,i]of s)this.elementProperties.set(t,i);}this._$Eh=new Map;for(const[t,s]of this.elementProperties){const i=this._$Eu(t,s);void 0!==i&&this._$Eh.set(i,t);}this.elementStyles=this.finalizeStyles(this.styles);}static finalizeStyles(s){const i=[];if(Array.isArray(s)){const e=new Set(s.flat(1/0).reverse());for(const s of e)i.unshift(c$2(s));}else void 0!==s&&i.push(c$2(s));return i}static _$Eu(t,s){const i=s.attribute;return false===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=false,this.hasUpdated=false,this._$Em=null,this._$Ev();}_$Ev(){this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)));}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.();}removeController(t){this._$EO?.delete(t);}_$E_(){const t=new Map,s=this.constructor.elementProperties;for(const i of s.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t);}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return S$1(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(true),this._$EO?.forEach((t=>t.hostConnected?.()));}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()));}attributeChangedCallback(t,s,i){this._$AK(t,i);}_$ET(t,s){const i=this.constructor.elementProperties.get(t),e=this.constructor._$Eu(t,i);if(void 0!==e&&true===i.reflect){const h=(void 0!==i.converter?.toAttribute?i.converter:u$2).toAttribute(s,i.type);this._$Em=t,null==h?this.removeAttribute(e):this.setAttribute(e,h),this._$Em=null;}}_$AK(t,s){const i=this.constructor,e=i._$Eh.get(t);if(void 0!==e&&this._$Em!==e){const t=i.getPropertyOptions(e),h="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:u$2;this._$Em=e,this[e]=h.fromAttribute(s,t.type)??this._$Ej?.get(e)??null,this._$Em=null;}}requestUpdate(t,s,i){if(void 0!==t){const e=this.constructor,h=this[t];if(i??=e.getPropertyOptions(t),!((i.hasChanged??f$1)(h,s)||i.useDefault&&i.reflect&&h===this._$Ej?.get(t)&&!this.hasAttribute(e._$Eu(t,i))))return;this.C(t,s,i);} false===this.isUpdatePending&&(this._$ES=this._$EP());}C(t,s,{useDefault:i,reflect:e,wrapped:h},r){i&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,r??s??this[t]),true!==h||void 0!==r)||(this._$AL.has(t)||(this.hasUpdated||i||(s=void 0),this._$AL.set(t,s)),true===e&&this._$Em!==t&&(this._$Eq??=new Set).add(t));}async _$EP(){this.isUpdatePending=true;try{await this._$ES;}catch(t){Promise.reject(t);}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,s]of this._$Ep)this[t]=s;this._$Ep=void 0;}const t=this.constructor.elementProperties;if(t.size>0)for(const[s,i]of t){const{wrapped:t}=i,e=this[s];true!==t||this._$AL.has(s)||void 0===e||this.C(s,void 0,i,e);}}let t=false;const s=this._$AL;try{t=this.shouldUpdate(s),t?(this.willUpdate(s),this._$EO?.forEach((t=>t.hostUpdate?.())),this.update(s)):this._$EM();}catch(s){throw t=false,this._$EM(),s}t&&this._$AE(s);}willUpdate(t){}_$AE(t){this._$EO?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=true,this.firstUpdated(t)),this.updated(t);}_$EM(){this._$AL=new Map,this.isUpdatePending=false;}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return true}update(t){this._$Eq&&=this._$Eq.forEach((t=>this._$ET(t,this[t]))),this._$EM();}updated(t){}firstUpdated(t){}};y$1.elementStyles=[],y$1.shadowRootOptions={mode:"open"},y$1[d$1("elementProperties")]=new Map,y$1[d$1("finalized")]=new Map,p$1?.({ReactiveElement:y$1}),(a$2.reactiveElementVersions??=[]).push("2.1.0");
104
+ */const{is:i$4,defineProperty:e$3,getOwnPropertyDescriptor:h$1,getOwnPropertyNames:r$1,getOwnPropertySymbols:o$4,getPrototypeOf:n$2}=Object,a$2=globalThis,c$1=a$2.trustedTypes,l$2=c$1?c$1.emptyScript:"",p$1=a$2.reactiveElementPolyfillSupport,d$1=(t,s)=>t,u$2={toAttribute(t,s){switch(s){case Boolean:t=t?l$2:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t);}return t},fromAttribute(t,s){let i=t;switch(s){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t);}catch(t){i=null;}}return i}},f$1=(t,s)=>!i$4(t,s),b={attribute:true,type:String,converter:u$2,reflect:false,useDefault:false,hasChanged:f$1};Symbol.metadata??=Symbol("metadata"),a$2.litPropertyMetadata??=new WeakMap;let y$1 = class y extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t);}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,s=b){if(s.state&&(s.attribute=false),this._$Ei(),this.prototype.hasOwnProperty(t)&&((s=Object.create(s)).wrapped=true),this.elementProperties.set(t,s),!s.noAccessor){const i=Symbol(),h=this.getPropertyDescriptor(t,i,s);void 0!==h&&e$3(this.prototype,t,h);}}static getPropertyDescriptor(t,s,i){const{get:e,set:r}=h$1(this.prototype,t)??{get(){return this[s]},set(t){this[s]=t;}};return {get:e,set(s){const h=e?.call(this);r?.call(this,s),this.requestUpdate(t,h,i);},configurable:true,enumerable:true}}static getPropertyOptions(t){return this.elementProperties.get(t)??b}static _$Ei(){if(this.hasOwnProperty(d$1("elementProperties")))return;const t=n$2(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties);}static finalize(){if(this.hasOwnProperty(d$1("finalized")))return;if(this.finalized=true,this._$Ei(),this.hasOwnProperty(d$1("properties"))){const t=this.properties,s=[...r$1(t),...o$4(t)];for(const i of s)this.createProperty(i,t[i]);}const t=this[Symbol.metadata];if(null!==t){const s=litPropertyMetadata.get(t);if(void 0!==s)for(const[t,i]of s)this.elementProperties.set(t,i);}this._$Eh=new Map;for(const[t,s]of this.elementProperties){const i=this._$Eu(t,s);void 0!==i&&this._$Eh.set(i,t);}this.elementStyles=this.finalizeStyles(this.styles);}static finalizeStyles(s){const i=[];if(Array.isArray(s)){const e=new Set(s.flat(1/0).reverse());for(const s of e)i.unshift(c$2(s));}else void 0!==s&&i.push(c$2(s));return i}static _$Eu(t,s){const i=s.attribute;return false===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=false,this.hasUpdated=false,this._$Em=null,this._$Ev();}_$Ev(){this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)));}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.();}removeController(t){this._$EO?.delete(t);}_$E_(){const t=new Map,s=this.constructor.elementProperties;for(const i of s.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t);}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return S$1(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(true),this._$EO?.forEach((t=>t.hostConnected?.()));}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()));}attributeChangedCallback(t,s,i){this._$AK(t,i);}_$ET(t,s){const i=this.constructor.elementProperties.get(t),e=this.constructor._$Eu(t,i);if(void 0!==e&&true===i.reflect){const h=(void 0!==i.converter?.toAttribute?i.converter:u$2).toAttribute(s,i.type);this._$Em=t,null==h?this.removeAttribute(e):this.setAttribute(e,h),this._$Em=null;}}_$AK(t,s){const i=this.constructor,e=i._$Eh.get(t);if(void 0!==e&&this._$Em!==e){const t=i.getPropertyOptions(e),h="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:u$2;this._$Em=e;const r=h.fromAttribute(s,t.type);this[e]=r??this._$Ej?.get(e)??r,this._$Em=null;}}requestUpdate(t,s,i){if(void 0!==t){const e=this.constructor,h=this[t];if(i??=e.getPropertyOptions(t),!((i.hasChanged??f$1)(h,s)||i.useDefault&&i.reflect&&h===this._$Ej?.get(t)&&!this.hasAttribute(e._$Eu(t,i))))return;this.C(t,s,i);} false===this.isUpdatePending&&(this._$ES=this._$EP());}C(t,s,{useDefault:i,reflect:e,wrapped:h},r){i&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,r??s??this[t]),true!==h||void 0!==r)||(this._$AL.has(t)||(this.hasUpdated||i||(s=void 0),this._$AL.set(t,s)),true===e&&this._$Em!==t&&(this._$Eq??=new Set).add(t));}async _$EP(){this.isUpdatePending=true;try{await this._$ES;}catch(t){Promise.reject(t);}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,s]of this._$Ep)this[t]=s;this._$Ep=void 0;}const t=this.constructor.elementProperties;if(t.size>0)for(const[s,i]of t){const{wrapped:t}=i,e=this[s];true!==t||this._$AL.has(s)||void 0===e||this.C(s,void 0,i,e);}}let t=false;const s=this._$AL;try{t=this.shouldUpdate(s),t?(this.willUpdate(s),this._$EO?.forEach((t=>t.hostUpdate?.())),this.update(s)):this._$EM();}catch(s){throw t=false,this._$EM(),s}t&&this._$AE(s);}willUpdate(t){}_$AE(t){this._$EO?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=true,this.firstUpdated(t)),this.updated(t);}_$EM(){this._$AL=new Map,this.isUpdatePending=false;}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return true}update(t){this._$Eq&&=this._$Eq.forEach((t=>this._$ET(t,this[t]))),this._$EM();}updated(t){}firstUpdated(t){}};y$1.elementStyles=[],y$1.shadowRootOptions={mode:"open"},y$1[d$1("elementProperties")]=new Map,y$1[d$1("finalized")]=new Map,p$1?.({ReactiveElement:y$1}),(a$2.reactiveElementVersions??=[]).push("2.1.1");
116
105
 
117
106
  /**
118
107
  * @license
@@ -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,19 +171,22 @@ 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
 
183
+ if (this.shape && this.size) {
195
184
  wrapper.classList.add(`shape-${this.shape.toLowerCase()}-${this.size.toLowerCase()}`);
185
+ } else {
186
+ wrapper.classList.add('shape-none');
196
187
  }
197
188
  }
189
+
198
190
  }
199
191
 
200
192
  resetLayoutClasses() {
@@ -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:56px;max-height:56px;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:58px;max-height:58px;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:56px;max-height:56px;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:54px;max-height:54px}.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-box-lg{min-height:52px;max-height:52px;border-style:solid;border-width:2px;border-color:transparent}.shape-box-lg.simple{border-width:0px;min-height:56px;max-height:56px;background-color:unset;box-shadow:none}.shape-box-lg.thin{border-width:1px;min-height:54px;max-height:54px;background-color:unset}.shape-box-lg.parentBorder{border:0;box-shadow:unset;min-height:52px;max-height:52px}.shape-box-md{min-height:44px;max-height:44px;border-style:solid;border-width:2px;border-color:transparent}.shape-box-md.simple{border-width:0px;min-height:48px;max-height:48px;background-color:unset;box-shadow:none}.shape-box-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}.shape-box-md.parentBorder{border:0;box-shadow:unset;min-height:44px;max-height:44px}.shape-box-sm{min-height:32px;max-height:32px;border-style:solid;border-width:2px;border-color:transparent}.shape-box-sm.simple{border-width:0px;min-height:36px;max-height:36px;background-color:unset;box-shadow:none}.shape-box-sm.thin{border-width:1px;min-height:34px;max-height:34px;background-color:unset}.shape-box-sm.parentBorder{border:0;box-shadow:unset;min-height:32px;max-height:32px}.shape-box-xs{min-height:20px;max-height:20px;border-style:solid;border-width:2px;border-color:transparent}.shape-box-xs.simple{border-width:0px;min-height:24px;max-height:24px;background-color:unset;box-shadow:none}.shape-box-xs.thin{border-width:1px;min-height:22px;max-height:22px;background-color:unset}.shape-box-xs.parentBorder{border:0;box-shadow:unset;min-height:20px;max-height:20px}.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-muted, #ccd2db);--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$5 = 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$5();
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') {
@@ -2956,6 +2961,7 @@ class AuroFloatingUI {
2956
2961
  this.element.bib.style.left = "0px";
2957
2962
  this.element.bib.style.width = '';
2958
2963
  this.element.bib.style.height = '';
2964
+ this.element.style.contain = '';
2959
2965
 
2960
2966
  // reset the size that was mirroring `size` css-part
2961
2967
  const bibContent = this.element.bib.shadowRoot.querySelector(".container");
@@ -2980,6 +2986,7 @@ class AuroFloatingUI {
2980
2986
  this.element.bib.style.position = '';
2981
2987
  this.element.bib.removeAttribute('isfullscreen');
2982
2988
  this.element.isBibFullscreen = false;
2989
+ this.element.style.contain = 'layout';
2983
2990
  }
2984
2991
 
2985
2992
  const isChanged = this.strategy && this.strategy !== value;
@@ -3032,22 +3039,16 @@ class AuroFloatingUI {
3032
3039
  if (this.element.contains(activeElement) || this.element.bib?.contains(activeElement)) {
3033
3040
  return;
3034
3041
  }
3035
-
3042
+
3036
3043
  // if fullscreen bib is in fullscreen mode, do not close
3037
3044
  if (this.element.bib.hasAttribute('isfullscreen')) {
3038
3045
  return;
3039
3046
  }
3040
3047
 
3041
- this.hideBib();
3048
+ this.hideBib("keydown");
3042
3049
  }
3043
3050
 
3044
3051
  setupHideHandlers() {
3045
- this.preventFocusLoseOnBibClick = (event) => {
3046
- event.preventDefault();
3047
- event.stopPropagation();
3048
- };
3049
- this.element.bib.addEventListener('mousedown', this.preventFocusLoseOnBibClick);
3050
-
3051
3052
  // Define handlers & store references
3052
3053
  this.focusHandler = () => this.handleFocusLoss();
3053
3054
 
@@ -3063,7 +3064,7 @@ class AuroFloatingUI {
3063
3064
  document.expandedAuroFormkitDropdown = null;
3064
3065
  document.expandedAuroFloater = this;
3065
3066
  } else {
3066
- this.hideBib();
3067
+ this.hideBib("click");
3067
3068
  }
3068
3069
  }
3069
3070
  };
@@ -3076,7 +3077,7 @@ class AuroFloatingUI {
3076
3077
  // if something else is open, let it handle itself
3077
3078
  return;
3078
3079
  }
3079
- this.hideBib();
3080
+ this.hideBib("keydown");
3080
3081
  }
3081
3082
  };
3082
3083
 
@@ -3097,11 +3098,6 @@ class AuroFloatingUI {
3097
3098
  cleanupHideHandlers() {
3098
3099
  // Remove event listeners if they exist
3099
3100
 
3100
- if (this.preventFocusLoseOnBibClick) {
3101
- this.element.bib.removeEventListener('mousedown', this.preventFocusLoseOnBibClick);
3102
- delete this.preventFocusLoseOnBibClick;
3103
- }
3104
-
3105
3101
  if (this.focusHandler) {
3106
3102
  document.removeEventListener('focusin', this.focusHandler);
3107
3103
  this.focusHandler = null;
@@ -3159,7 +3155,11 @@ class AuroFloatingUI {
3159
3155
  }
3160
3156
  }
3161
3157
 
3162
- hideBib() {
3158
+ /**
3159
+ * Hides the floating UI element.
3160
+ * @param {String} eventType - The event type that triggered the hiding action.
3161
+ */
3162
+ hideBib(eventType = "unknown") {
3163
3163
  if (!this.element.disabled && !this.element.noToggle) {
3164
3164
  this.lockScroll(false);
3165
3165
  this.element.triggerChevron?.removeAttribute('data-expanded');
@@ -3170,7 +3170,7 @@ class AuroFloatingUI {
3170
3170
  if (this.showing) {
3171
3171
  this.cleanupHideHandlers();
3172
3172
  this.showing = false;
3173
- this.dispatchEventDropdownToggle();
3173
+ this.dispatchEventDropdownToggle(eventType);
3174
3174
  }
3175
3175
  }
3176
3176
  document.expandedAuroFloater = null;
@@ -3179,11 +3179,13 @@ class AuroFloatingUI {
3179
3179
  /**
3180
3180
  * @private
3181
3181
  * @returns {void} Dispatches event with an object showing the state of the dropdown.
3182
+ * @param {String} eventType - The event type that triggered the toggle action.
3182
3183
  */
3183
- dispatchEventDropdownToggle() {
3184
+ dispatchEventDropdownToggle(eventType) {
3184
3185
  const event = new CustomEvent(this.eventPrefix ? `${this.eventPrefix}-toggled` : 'toggled', {
3185
3186
  detail: {
3186
3187
  expanded: this.showing,
3188
+ eventType: eventType || "unknown",
3187
3189
  },
3188
3190
  composed: true
3189
3191
  });
@@ -3193,7 +3195,7 @@ class AuroFloatingUI {
3193
3195
 
3194
3196
  handleClick() {
3195
3197
  if (this.element.isPopoverVisible) {
3196
- this.hideBib();
3198
+ this.hideBib("click");
3197
3199
  } else {
3198
3200
  this.showBib();
3199
3201
  }
@@ -3216,8 +3218,9 @@ class AuroFloatingUI {
3216
3218
  // Space is included as it's expected behavior for interactive elements
3217
3219
 
3218
3220
  const origin = event.composedPath()[0];
3219
- if (event.key === 'Enter' || ((!origin || origin.tagName !== "INPUT") && event.key === ' ')) {
3220
- event.preventDefault(); // Prevent page scroll on space
3221
+ if (event.key === 'Enter' || event.key === ' ' && (!origin || origin.tagName !== "INPUT")) {
3222
+
3223
+ event.preventDefault();
3221
3224
  this.handleClick();
3222
3225
  }
3223
3226
  break;
@@ -3228,7 +3231,7 @@ class AuroFloatingUI {
3228
3231
  break;
3229
3232
  case 'mouseleave':
3230
3233
  if (this.element.hoverToggle) {
3231
- this.hideBib();
3234
+ this.hideBib("mouseleave");
3232
3235
  }
3233
3236
  break;
3234
3237
  case 'focus':
@@ -3371,6 +3374,267 @@ class AuroFloatingUI {
3371
3374
  }
3372
3375
  }
3373
3376
 
3377
+ // Selectors for focusable elements
3378
+ const FOCUSABLE_SELECTORS = [
3379
+ 'a[href]',
3380
+ 'button:not([disabled])',
3381
+ 'textarea:not([disabled])',
3382
+ 'input:not([disabled])',
3383
+ 'select:not([disabled])',
3384
+ '[role="tab"]:not([disabled])',
3385
+ '[role="link"]:not([disabled])',
3386
+ '[role="button"]:not([disabled])',
3387
+ '[tabindex]:not([tabindex="-1"])',
3388
+ '[contenteditable]:not([contenteditable="false"])'
3389
+ ];
3390
+
3391
+ // List of custom components that are known to be focusable
3392
+ const FOCUSABLE_COMPONENTS = [
3393
+ 'auro-checkbox',
3394
+ 'auro-radio',
3395
+ 'auro-dropdown',
3396
+ 'auro-button',
3397
+ 'auro-combobox',
3398
+ 'auro-input',
3399
+ 'auro-counter',
3400
+ 'auro-menu',
3401
+ 'auro-select',
3402
+ 'auro-datepicker',
3403
+ 'auro-hyperlink',
3404
+ 'auro-accordion',
3405
+ ];
3406
+
3407
+ /**
3408
+ * Determines if a given element is a custom focusable component.
3409
+ * Returns true if the element matches a known focusable component and is not disabled.
3410
+ *
3411
+ * @param {HTMLElement} element The element to check for focusability.
3412
+ * @returns {boolean} True if the element is a focusable custom component, false otherwise.
3413
+ */
3414
+ function isFocusableComponent(element) {
3415
+ const componentName = element.tagName.toLowerCase();
3416
+
3417
+ // Guard Clause: Element is a focusable component
3418
+ if (!FOCUSABLE_COMPONENTS.some((name) => element.hasAttribute(name) || componentName === name)) return false;
3419
+
3420
+ // Guard Clause: Element is not disabled
3421
+ if (element.hasAttribute('disabled')) return false;
3422
+
3423
+ // Guard Clause: The element is a hyperlink and has no href attribute
3424
+ if (componentName.match("hyperlink") && !element.hasAttribute('href')) return false;
3425
+
3426
+ // If all guard clauses pass, the element is a focusable component
3427
+ return true;
3428
+ }
3429
+
3430
+ /**
3431
+ * Retrieves all focusable elements within the container in DOM order, including those in shadow DOM and slots.
3432
+ * Returns a unique, ordered array of elements that can receive focus.
3433
+ *
3434
+ * @param {HTMLElement} container The container to search within
3435
+ * @returns {Array<HTMLElement>} An array of focusable elements within the container.
3436
+ */
3437
+ function getFocusableElements(container) {
3438
+ // Get elements in DOM order by walking the tree
3439
+ const orderedFocusableElements = [];
3440
+
3441
+ // Define a recursive function to collect focusable elements in DOM order
3442
+ const collectFocusableElements = (root) => {
3443
+ // Check if current element is focusable
3444
+ if (root.nodeType === Node.ELEMENT_NODE) {
3445
+ // Check if this is a custom component that is focusable
3446
+ const isComponentFocusable = isFocusableComponent(root);
3447
+
3448
+ if (isComponentFocusable) {
3449
+ // Add the component itself as a focusable element and don't traverse its shadow DOM
3450
+ orderedFocusableElements.push(root);
3451
+ return; // Skip traversing inside this component
3452
+ }
3453
+
3454
+ // Check if the element itself matches any selector
3455
+ for (const selector of FOCUSABLE_SELECTORS) {
3456
+ if (root.matches?.(selector)) {
3457
+ orderedFocusableElements.push(root);
3458
+ break; // Once we know it's focusable, no need to check other selectors
3459
+ }
3460
+ }
3461
+
3462
+ // Process shadow DOM only for non-Auro components
3463
+ if (root.shadowRoot) {
3464
+ // Process shadow DOM children in order
3465
+ if (root.shadowRoot.children) {
3466
+ Array.from(root.shadowRoot.children).forEach(child => {
3467
+ collectFocusableElements(child);
3468
+ });
3469
+ }
3470
+ }
3471
+
3472
+ // Process slots and their assigned nodes in order
3473
+ if (root.tagName === 'SLOT') {
3474
+ const assignedNodes = root.assignedNodes({ flatten: true });
3475
+ for (const node of assignedNodes) {
3476
+ collectFocusableElements(node);
3477
+ }
3478
+ } else {
3479
+ // Process light DOM children in order
3480
+ if (root.children) {
3481
+ Array.from(root.children).forEach(child => {
3482
+ collectFocusableElements(child);
3483
+ });
3484
+ }
3485
+ }
3486
+ }
3487
+ };
3488
+
3489
+ // Start the traversal from the container
3490
+ collectFocusableElements(container);
3491
+
3492
+ // Remove duplicates that might have been collected through different paths
3493
+ // while preserving order
3494
+ const uniqueElements = [];
3495
+ const seen = new Set();
3496
+
3497
+ for (const element of orderedFocusableElements) {
3498
+ if (!seen.has(element)) {
3499
+ seen.add(element);
3500
+ uniqueElements.push(element);
3501
+ }
3502
+ }
3503
+
3504
+ return uniqueElements;
3505
+ }
3506
+
3507
+ /**
3508
+ * FocusTrap manages keyboard focus within a specified container element, ensuring that focus does not leave the container when tabbing.
3509
+ * It is commonly used for modal dialogs or overlays to improve accessibility by trapping focus within interactive UI components.
3510
+ */
3511
+ class FocusTrap {
3512
+ /**
3513
+ * Creates a new FocusTrap instance for the given container element.
3514
+ * Initializes event listeners and prepares the container for focus management.
3515
+ *
3516
+ * @param {HTMLElement} container The DOM element to trap focus within.
3517
+ * @throws {Error} If the provided container is not a valid HTMLElement.
3518
+ */
3519
+ constructor(container) {
3520
+ if (!container || !(container instanceof HTMLElement)) {
3521
+ throw new Error("FocusTrap requires a valid HTMLElement.");
3522
+ }
3523
+
3524
+ this.container = container;
3525
+ this.tabDirection = 'forward'; // or 'backward'
3526
+
3527
+ this._init();
3528
+ }
3529
+
3530
+ /**
3531
+ * Initializes the focus trap by setting up event listeners and attributes on the container.
3532
+ * Prepares the container for focus management, including support for shadow DOM and inert attributes.
3533
+ *
3534
+ * @private
3535
+ */
3536
+ _init() {
3537
+
3538
+ // Add inert attribute to prevent focusing programmatically as well (if supported)
3539
+ if ('inert' in HTMLElement.prototype) {
3540
+ this.container.inert = false; // Ensure the container isn't inert
3541
+ this.container.setAttribute('data-focus-trap-container', true); // Mark for identification
3542
+ }
3543
+
3544
+ // Track tab direction
3545
+ this.container.addEventListener('keydown', this._onKeydown);
3546
+ }
3547
+
3548
+ /**
3549
+ * Handles keydown events to manage tab navigation within the container.
3550
+ * Ensures that focus wraps around when reaching the first or last focusable element.
3551
+ *
3552
+ * @param {KeyboardEvent} e The keyboard event triggered by user interaction.
3553
+ * @private
3554
+ */
3555
+ _onKeydown = (e) => {
3556
+
3557
+ if (e.key === 'Tab') {
3558
+
3559
+ // Set the tab direction based on the key pressed
3560
+ this.tabDirection = e.shiftKey ? 'backward' : 'forward';
3561
+
3562
+ // Get the active element(s) in the document and shadow root
3563
+ // This will include the active element in the shadow DOM if it exists
3564
+ // Active element may be inside the shadow DOM depending on delegatesFocus, so we need to check both
3565
+ let activeElement = document.activeElement;
3566
+ const actives = [activeElement];
3567
+ while (activeElement?.shadowRoot?.activeElement) {
3568
+ actives.push(activeElement.shadowRoot.activeElement);
3569
+ activeElement = activeElement.shadowRoot.activeElement;
3570
+ }
3571
+
3572
+ // Update the focusable elements
3573
+ const focusables = this._getFocusableElements();
3574
+
3575
+ // If we're at either end of the focusable elements, wrap around to the other end
3576
+ const focusIndex =
3577
+ (actives.includes(focusables[0]) || actives.includes(this.container)) && this.tabDirection === 'backward'
3578
+ ? focusables.length - 1
3579
+ : actives.includes(focusables[focusables.length - 1]) && this.tabDirection === 'forward'
3580
+ ? 0
3581
+ : null;
3582
+
3583
+ if (focusIndex !== null) {
3584
+ focusables[focusIndex].focus();
3585
+ e.preventDefault(); // Prevent default tab behavior
3586
+ e.stopPropagation(); // Stop the event from bubbling up
3587
+ }
3588
+ }
3589
+ };
3590
+
3591
+ /**
3592
+ * Retrieves all focusable elements within the container in DOM order, including those in shadow DOM and slots.
3593
+ * Returns a unique, ordered array of elements that can receive focus.
3594
+ *
3595
+ * @returns {Array<HTMLElement>} An array of focusable elements within the container.
3596
+ * @private
3597
+ */
3598
+ _getFocusableElements() {
3599
+ // Use the imported utility function to get focusable elements
3600
+ const elements = getFocusableElements(this.container);
3601
+
3602
+ // Filter out any elements with the 'focus-bookend' class
3603
+ return elements;
3604
+ }
3605
+
3606
+ /**
3607
+ * Moves focus to the first focusable element within the container.
3608
+ * Useful for setting initial focus when activating the focus trap.
3609
+ */
3610
+ focusFirstElement() {
3611
+ const focusables = this._getFocusableElements();
3612
+ if (focusables.length) focusables[0].focus();
3613
+ }
3614
+
3615
+ /**
3616
+ * Moves focus to the last focusable element within the container.
3617
+ * Useful for setting focus when deactivating or cycling focus in reverse.
3618
+ */
3619
+ focusLastElement() {
3620
+ const focusables = this._getFocusableElements();
3621
+ if (focusables.length) focusables[focusables.length - 1].focus();
3622
+ }
3623
+
3624
+ /**
3625
+ * Removes event listeners and attributes added by the focus trap.
3626
+ * Call this method to clean up when the focus trap is no longer needed.
3627
+ */
3628
+ disconnect() {
3629
+
3630
+ if (this.container.hasAttribute('data-focus-trap-container')) {
3631
+ this.container.removeAttribute('data-focus-trap-container');
3632
+ }
3633
+
3634
+ this.container.removeEventListener('keydown', this._onKeydown);
3635
+ }
3636
+ }
3637
+
3374
3638
  // Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
3375
3639
  // See LICENSE in the project root for license information.
3376
3640
 
@@ -3477,7 +3741,7 @@ const cacheFetch$2 = (uri, options = {}) => {
3477
3741
  return _fetchMap$2.get(uri);
3478
3742
  };
3479
3743
 
3480
- var styleCss$2$2 = 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}`;
3744
+ var styleCss$3$2 = 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}`;
3481
3745
 
3482
3746
  // Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
3483
3747
  // See LICENSE in the project root for license information.
@@ -3520,7 +3784,7 @@ let BaseIcon$2 = class BaseIcon extends AuroElement$1$1 {
3520
3784
 
3521
3785
  static get styles() {
3522
3786
  return i$5`
3523
- ${styleCss$2$2}
3787
+ ${styleCss$3$2}
3524
3788
  `;
3525
3789
  }
3526
3790
 
@@ -3561,9 +3825,9 @@ let BaseIcon$2 = class BaseIcon extends AuroElement$1$1 {
3561
3825
  }
3562
3826
  };
3563
3827
 
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)}`;
3828
+ 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
3829
 
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)}`;
3830
+ 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
3831
 
3568
3832
  // Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
3569
3833
  // See LICENSE in the project root for license information.
@@ -3721,9 +3985,9 @@ let AuroIcon$2 = class AuroIcon extends BaseIcon$2 {
3721
3985
  static get styles() {
3722
3986
  return [
3723
3987
  super.styles,
3724
- i$5`${tokensCss$2$1}`,
3725
- i$5`${styleCss$2$2}`,
3726
- i$5`${colorCss$3$1}`
3988
+ i$5`${tokensCss$2$2}`,
3989
+ i$5`${styleCss$3$2}`,
3990
+ i$5`${colorCss$3$2}`
3727
3991
  ];
3728
3992
  }
3729
3993
 
@@ -3757,8 +4021,12 @@ let AuroIcon$2 = class AuroIcon extends BaseIcon$2 {
3757
4021
  async firstUpdated() {
3758
4022
  await super.firstUpdated();
3759
4023
 
3760
- // Removes the SVG description for screenreader if ariaHidden is set to true
3761
- if (!this.hasAttribute('ariaHidden') && this.svg) {
4024
+ /**
4025
+ * icons provide a description for screen readers. Icon only instances Auro-button
4026
+ * depend on this description to provide context for the user using a screen reader.
4027
+ * Removes the SVG description for screen reader if ariaHidden is set to true.
4028
+ */
4029
+ if (this.hasAttribute('ariaHidden') && this.svg) {
3762
4030
  const svgDesc = this.svg.querySelector('desc');
3763
4031
 
3764
4032
  if (svgDesc) {
@@ -3804,11 +4072,11 @@ let AuroIcon$2 = class AuroIcon extends BaseIcon$2 {
3804
4072
 
3805
4073
  var iconVersion$2 = '6.1.2';
3806
4074
 
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}`;
4075
+ var styleCss$2$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
4076
 
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)}`;
4077
+ 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
4078
 
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)}`;
4079
+ 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
4080
 
3813
4081
  // Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
3814
4082
  // See LICENSE in the project root for license information.
@@ -3829,7 +4097,7 @@ const DESIGN_TOKEN_BREAKPOINT_OPTIONS = [
3829
4097
  */
3830
4098
 
3831
4099
  class AuroDropdownBib extends i$2 {
3832
-
4100
+ // not extending AuroElement because Bib needs only `shape` prop
3833
4101
  constructor() {
3834
4102
  super();
3835
4103
 
@@ -3839,13 +4107,16 @@ class AuroDropdownBib extends i$2 {
3839
4107
  this._mobileBreakpointValue = undefined;
3840
4108
 
3841
4109
  AuroLibraryRuntimeUtils$2$1.prototype.handleComponentTagRename(this, 'auro-dropdownbib');
4110
+
4111
+ this.shape = "rounded";
4112
+ this.matchWidth = false;
3842
4113
  }
3843
4114
 
3844
4115
  static get styles() {
3845
4116
  return [
3846
- styleCss$1$2,
3847
- colorCss$2$1,
3848
- tokensCss$1$1
4117
+ styleCss$2$2,
4118
+ colorCss$2$2,
4119
+ tokensCss$1$2
3849
4120
  ];
3850
4121
  }
3851
4122
 
@@ -3876,6 +4147,15 @@ class AuroDropdownBib extends i$2 {
3876
4147
  reflect: true
3877
4148
  },
3878
4149
 
4150
+ /**
4151
+ * If declared, the bib width will match the trigger width.
4152
+ * @private
4153
+ */
4154
+ matchWidth: {
4155
+ type: Boolean,
4156
+ reflect: true
4157
+ },
4158
+
3879
4159
  /**
3880
4160
  * If declared, will apply border-radius to the bib.
3881
4161
  */
@@ -3889,6 +4169,11 @@ class AuroDropdownBib extends i$2 {
3889
4169
  */
3890
4170
  bibTemplate: {
3891
4171
  type: Object
4172
+ },
4173
+
4174
+ shape: {
4175
+ type: String,
4176
+ reflect: true
3892
4177
  }
3893
4178
  };
3894
4179
  }
@@ -3968,8 +4253,16 @@ class AuroDropdownBib extends i$2 {
3968
4253
 
3969
4254
  // function that renders the HTML and CSS into the scope of the component
3970
4255
  render() {
4256
+ const classes = {
4257
+ container: true
4258
+ };
4259
+
4260
+ // Since this class does not inherit from AuroElement, we apply the shape-related class within the `render` function,
4261
+ // mimicking the class naming convention used in AuroElement.resetShapeClasses.
4262
+ classes[`shape-${this.shape}`] = true;
4263
+
3971
4264
  return u`
3972
- <div class="container" part="bibContainer">
4265
+ <div class="${e(classes)}" part="bibContainer">
3973
4266
  <slot></slot>
3974
4267
  </div>
3975
4268
  `;
@@ -3978,21 +4271,23 @@ class AuroDropdownBib extends i$2 {
3978
4271
 
3979
4272
  var dropdownVersion$1 = '3.0.0';
3980
4273
 
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}`;
4274
+ var shapeSizeCss = i$5`.wrapper{overflow:hidden}.shape-classic-xl,.shape-classic-lg,.shape-classic-md,.shape-classic-sm,.shape-classic-xs{min-height:56px;max-height:56px;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:58px;max-height:58px;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:56px;max-height:56px;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:54px;max-height:54px}.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-box-lg{min-height:52px;max-height:52px;border-style:solid;border-width:2px;border-color:transparent}.shape-box-lg.simple{border-width:0px;min-height:56px;max-height:56px;background-color:unset;box-shadow:none}.shape-box-lg.thin{border-width:1px;min-height:54px;max-height:54px;background-color:unset}.shape-box-lg.parentBorder{border:0;box-shadow:unset;min-height:52px;max-height:52px}.shape-box-md{min-height:44px;max-height:44px;border-style:solid;border-width:2px;border-color:transparent}.shape-box-md.simple{border-width:0px;min-height:48px;max-height:48px;background-color:unset;box-shadow:none}.shape-box-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}.shape-box-md.parentBorder{border:0;box-shadow:unset;min-height:44px;max-height:44px}.shape-box-sm{min-height:32px;max-height:32px;border-style:solid;border-width:2px;border-color:transparent}.shape-box-sm.simple{border-width:0px;min-height:36px;max-height:36px;background-color:unset;box-shadow:none}.shape-box-sm.thin{border-width:1px;min-height:34px;max-height:34px;background-color:unset}.shape-box-sm.parentBorder{border:0;box-shadow:unset;min-height:32px;max-height:32px}.shape-box-xs{min-height:20px;max-height:20px;border-style:solid;border-width:2px;border-color:transparent}.shape-box-xs.simple{border-width:0px;min-height:24px;max-height:24px;background-color:unset;box-shadow:none}.shape-box-xs.thin{border-width:1px;min-height:22px;max-height:22px;background-color:unset}.shape-box-xs.parentBorder{border:0;box-shadow:unset;min-height:20px;max-height:20px}.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
4275
 
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)}`;
4276
+ 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
4277
 
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))}`;
4278
+ var styleCss$1$2 = i$5`:host{position:relative;display:block}:host([open]){z-index:var(--depth-tooltip, 400)}.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([matchwidth]) #bibSizer{width:100%}`;
3986
4279
 
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)}`;
4280
+ var classicColorCss = i$5``;
3988
4281
 
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{display:flex;flex:1;align-items:center;justify-content:center;outline:none}.triggerContentWrapper{display:flex;width:100%;flex:1;align-items:center;justify-content:center}.triggerContent{display:flex;overflow:hidden;width:100%;flex:1;align-items:center;justify-content:center;text-overflow:ellipsis;white-space:nowrap}:host([layout*=emphasized][shape*=pill]:not([layout*=right])) .leftIndent{width:calc(100% - var(--ds-size-300, 1.5rem));margin-left:var(--ds-size-300, 1.5rem)}:host([layout*=emphasized][shape*=pill]:not([layout*=left])) .rightIndent{width:calc(100% - var(--ds-size-300, 1.5rem));margin-right:var(--ds-size-300, 1.5rem)}:host([layout*=emphasized][shape*=pill]:not([layout*=left]):not([layout*=right])) .rightIndent{width:calc(100% - var(--ds-size-600, 3rem));margin-right:var(--ds-size-300, 1.5rem)}`;
4282
+ 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{transition:font-size .3s cubic-bezier(0.215, 0.61, 0.355, 1);white-space:normal}: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)}:host([layout*=classic]) #showStateIcon[data-expanded=true] [auro-icon]{transform:rotate(-180deg)}`;
3990
4283
 
3991
- var styleSnowflakeCss = i$5`:host{display:block}.wrapper{display:flex;flex-direction:row}.trigger{display:flex;flex:1;align-items:center;justify-content:center;outline:none}.triggerContentWrapper{display:flex;width:100%;flex:1;align-items:center;justify-content:center}.triggerContent{display:flex;overflow:hidden;width:100%;flex:1;align-items:center;justify-content:center;text-overflow:ellipsis;white-space:nowrap}:host([layout*=snowflake]) .leftIndent{width:calc(100% - var(--ds-size-600, 3rem));margin-left:var(--ds-size-300, 1.5rem)}:host([layout*=snowflake]) .rightIndent{width:calc(100% - var(--ds-size-600, 3rem));margin-right:var(--ds-size-300, 1.5rem)}.layout-snowflake .chevron,.layout-snowflake-left .chevron,.layout-snowflake-right .chevron{margin-right:var(--ds-size-300, 1.5rem)}`;
4284
+ var styleEmphasizedCss = i$5`.layout-emphasized .chevron,.layout-emphasized-left .chevron,.layout-emphasized-right .chevron{margin-right:var(--ds-size-300, 1.5rem)}: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)}`;
3992
4285
 
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)}`;
4286
+ var styleSnowflakeCss = i$5`: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)}`;
3994
4287
 
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}`;
4288
+ 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)}`;
4289
+
4290
+ var styleCss$6 = 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-2xl,.accent-xl{text-transform:uppercase}.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-lg,.accent-md{text-transform:uppercase}.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-sm,.accent-xs{text-transform:uppercase}.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);text-transform:uppercase}:host{position:relative;display:block}.helptext-wrapper{display:none}.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
4291
 
3997
4292
  var tokensCss$4 = i$5`:host{--ds-auro-helptext-color: var(--ds-basic-color-texticon-muted, #676767)}`;
3998
4293
 
@@ -4003,7 +4298,7 @@ var tokensCss$4 = i$5`:host{--ds-auro-helptext-color: var(--ds-basic-color-texti
4003
4298
 
4004
4299
  /* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
4005
4300
 
4006
- let AuroLibraryRuntimeUtils$3 = class AuroLibraryRuntimeUtils {
4301
+ let AuroLibraryRuntimeUtils$4 = class AuroLibraryRuntimeUtils {
4007
4302
 
4008
4303
  /* eslint-disable jsdoc/require-param */
4009
4304
 
@@ -4072,8 +4367,6 @@ let AuroLibraryRuntimeUtils$3 = class AuroLibraryRuntimeUtils {
4072
4367
 
4073
4368
  /**
4074
4369
  * Displays help text or error messages within form elements - Internal Use Only.
4075
- *
4076
- * @attr { Boolean } large - If declared, make font-size to 1rem(16px).
4077
4370
  */
4078
4371
  let AuroHelpText$1 = class AuroHelpText extends i$2 {
4079
4372
 
@@ -4084,7 +4377,7 @@ let AuroHelpText$1 = class AuroHelpText extends i$2 {
4084
4377
  this.onDark = false;
4085
4378
  this.hasTextContent = false;
4086
4379
 
4087
- AuroLibraryRuntimeUtils$3.prototype.handleComponentTagRename(this, 'auro-helptext');
4380
+ AuroLibraryRuntimeUtils$4.prototype.handleComponentTagRename(this, 'auro-helptext');
4088
4381
  }
4089
4382
 
4090
4383
  static get styles() {
@@ -4140,7 +4433,7 @@ let AuroHelpText$1 = class AuroHelpText extends i$2 {
4140
4433
  *
4141
4434
  */
4142
4435
  static register(name = "auro-helptext") {
4143
- AuroLibraryRuntimeUtils$3.prototype.registerComponent(name, AuroHelpText);
4436
+ AuroLibraryRuntimeUtils$4.prototype.registerComponent(name, AuroHelpText);
4144
4437
  }
4145
4438
 
4146
4439
  updated() {
@@ -4189,7 +4482,7 @@ let AuroHelpText$1 = class AuroHelpText extends i$2 {
4189
4482
  // function that renders the HTML and CSS into the scope of the component
4190
4483
  render() {
4191
4484
  return x`
4192
- <div class="helptext-wrapper" ?visible="${this.hasTextContent}">
4485
+ <div class="helptext-wrapper body-xs" ?visible="${this.hasTextContent}">
4193
4486
  <slot @slotchange=${this.handleSlotChange}></slot>
4194
4487
  </div>
4195
4488
  `;
@@ -4198,7 +4491,7 @@ let AuroHelpText$1 = class AuroHelpText extends i$2 {
4198
4491
 
4199
4492
  var helpTextVersion$1 = '1.0.0';
4200
4493
 
4201
- let AuroElement$2 = class AuroElement extends i$2 {
4494
+ let AuroElement$3 = class AuroElement extends i$2 {
4202
4495
  static get properties() {
4203
4496
  return {
4204
4497
 
@@ -4233,19 +4526,22 @@ let AuroElement$2 = class AuroElement extends i$2 {
4233
4526
  }
4234
4527
 
4235
4528
  resetShapeClasses() {
4236
- if (this.shape && this.size) {
4237
- const wrapper = this.shadowRoot.querySelector('.wrapper');
4529
+ const wrapper = this.shadowRoot.querySelector('.wrapper');
4238
4530
 
4239
- if (wrapper) {
4240
- wrapper.classList.forEach((className) => {
4241
- if (className.startsWith('shape-')) {
4242
- wrapper.classList.remove(className);
4243
- }
4244
- });
4531
+ if (wrapper) {
4532
+ wrapper.classList.forEach((className) => {
4533
+ if (className.startsWith('shape-')) {
4534
+ wrapper.classList.remove(className);
4535
+ }
4536
+ });
4245
4537
 
4538
+ if (this.shape && this.size) {
4246
4539
  wrapper.classList.add(`shape-${this.shape.toLowerCase()}-${this.size.toLowerCase()}`);
4540
+ } else {
4541
+ wrapper.classList.add('shape-none');
4247
4542
  }
4248
4543
  }
4544
+
4249
4545
  }
4250
4546
 
4251
4547
  resetLayoutClasses() {
@@ -4294,20 +4590,20 @@ let AuroElement$2 = class AuroElement extends i$2 {
4294
4590
  // See LICENSE in the project root for license information.
4295
4591
 
4296
4592
 
4297
- /**
4298
- * @attr { Boolean } disableEventShow - If declared, the dropdown will only show by calling the API .show() public method.
4593
+
4594
+ /*
4299
4595
  * @slot - Default slot for the popover content.
4300
- * @slot label - Defines the content of the label.
4301
4596
  * @slot helpText - Defines the content of the helpText.
4302
4597
  * @slot trigger - Defines the content of the trigger.
4303
4598
  * @csspart trigger - The trigger content container.
4304
4599
  * @csspart chevron - The collapsed/expanded state icon container.
4600
+ * @csspart size - The size of the dropdown bib. (height, width, maxHeight, maxWidth only)
4305
4601
  * @csspart helpText - The helpText content container.
4306
4602
  * @event auroDropdown-triggerClick - Notifies that the trigger has been clicked.
4307
4603
  * @event auroDropdown-toggled - Notifies that the visibility of the dropdown bib has changed.
4308
4604
  * @event auroDropdown-idAdded - Notifies consumers that the unique ID for the dropdown bib has been generated.
4309
4605
  */
4310
- class AuroDropdown extends AuroElement$2 {
4606
+ class AuroDropdown extends AuroElement$3 {
4311
4607
  constructor() {
4312
4608
  super();
4313
4609
 
@@ -4316,23 +4612,25 @@ class AuroDropdown extends AuroElement$2 {
4316
4612
  this.matchWidth = false;
4317
4613
  this.noHideOnThisFocusLoss = false;
4318
4614
 
4319
- this.errorMessage = ''; // TODO - check with Doug if there is still more to do here
4615
+ this.errorMessage = undefined; // TODO - check with Doug if there is still more to do here
4320
4616
 
4321
4617
  // Layout Config
4322
- this.layout = 'classic';
4323
- this.shape = 'rounded';
4324
- this.size = 'xl';
4618
+ this.layout = undefined;
4619
+ this.shape = undefined;
4620
+ this.size = undefined;
4621
+
4325
4622
  this.parentBorder = false;
4326
4623
 
4327
- this.privateDefaults();
4328
- }
4624
+ /** @private */
4625
+ this.handleDropdownToggle = this.handleDropdownToggle.bind(this);
4329
4626
 
4330
- get commonLabelClasses() {
4331
- return {
4332
- // 'withValue': this.value && this.value.length > 0
4333
- };
4627
+ this.privateDefaults();
4334
4628
  }
4335
4629
 
4630
+ /**
4631
+ * @private
4632
+ * @returns {object} Class definition for the wrapper element.
4633
+ */
4336
4634
  get commonWrapperClasses() {
4337
4635
  return {
4338
4636
  'trigger': true,
@@ -4350,13 +4648,10 @@ class AuroDropdown extends AuroElement$2 {
4350
4648
  privateDefaults() {
4351
4649
  this.chevron = false;
4352
4650
  this.disabled = false;
4651
+ this.disableFocusTrap = false;
4353
4652
  this.error = false;
4354
- this.inset = false;
4355
- this.rounded = false;
4356
4653
  this.tabIndex = 0;
4357
4654
  this.noToggle = false;
4358
- this.a11yAutocomplete = 'none';
4359
- this.labeled = true;
4360
4655
  this.a11yRole = 'button';
4361
4656
  this.onDark = false;
4362
4657
  this.showTriggerBorders = true;
@@ -4452,6 +4747,18 @@ class AuroDropdown extends AuroElement$2 {
4452
4747
  this.floater.showBib();
4453
4748
  }
4454
4749
 
4750
+ /**
4751
+ * When bib is open, focus on the first element inside of bib.
4752
+ * If not, trigger element will get focus.
4753
+ */
4754
+ focus() {
4755
+ if (this.isPopoverVisible && this.focusTrap) {
4756
+ this.focusTrap.focusFirstElement();
4757
+ } else {
4758
+ this.trigger.focus();
4759
+ }
4760
+ }
4761
+
4455
4762
  // function to define props used within the scope of this component
4456
4763
  static get properties() {
4457
4764
  return {
@@ -4465,6 +4772,15 @@ class AuroDropdown extends AuroElement$2 {
4465
4772
  reflect: true
4466
4773
  },
4467
4774
 
4775
+ /**
4776
+ * If declared, the dropdown will only show by calling the API .show() public method.
4777
+ * @default false
4778
+ */
4779
+ disableEventShow: {
4780
+ type: Boolean,
4781
+ reflect: true
4782
+ },
4783
+
4468
4784
  /**
4469
4785
  * If declared, applies a border around the trigger slot.
4470
4786
  */
@@ -4483,17 +4799,17 @@ class AuroDropdown extends AuroElement$2 {
4483
4799
  },
4484
4800
 
4485
4801
  /**
4486
- * If declared, the dropdown will be styled with the common theme.
4802
+ * If declared, the dropdown is not interactive.
4487
4803
  */
4488
- common: {
4804
+ disabled: {
4489
4805
  type: Boolean,
4490
4806
  reflect: true
4491
4807
  },
4492
4808
 
4493
4809
  /**
4494
- * If declared, the dropdown is not interactive.
4810
+ * If declared, the focus trap inside of bib will be turned off.
4495
4811
  */
4496
- disabled: {
4812
+ disableFocusTrap: {
4497
4813
  type: Boolean,
4498
4814
  reflect: true
4499
4815
  },
@@ -4538,27 +4854,13 @@ class AuroDropdown extends AuroElement$2 {
4538
4854
  reflect: true
4539
4855
  },
4540
4856
 
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
4857
  /**
4558
4858
  * If true, the dropdown bib is displayed.
4559
4859
  */
4560
4860
  isPopoverVisible: {
4561
- type: Boolean
4861
+ type: Boolean,
4862
+ reflect: true,
4863
+ attribute: 'open'
4562
4864
  },
4563
4865
 
4564
4866
  /**
@@ -4597,15 +4899,6 @@ class AuroDropdown extends AuroElement$2 {
4597
4899
  reflect: true
4598
4900
  },
4599
4901
 
4600
- /**
4601
- * Defines if there is a label preset.
4602
- * @private
4603
- */
4604
- labeled: {
4605
- type: Boolean,
4606
- reflect: true
4607
- },
4608
-
4609
4902
  /**
4610
4903
  * Defines if the trigger should size based on the parent element providing the border UI.
4611
4904
  * @private
@@ -4666,6 +4959,9 @@ class AuroDropdown extends AuroElement$2 {
4666
4959
  reflect: true
4667
4960
  },
4668
4961
 
4962
+ /**
4963
+ * If declared, and a function is set, that function will execute when the slot content is updated.
4964
+ */
4669
4965
  onSlotChange: {
4670
4966
  type: Function,
4671
4967
  reflect: false
@@ -4680,14 +4976,6 @@ class AuroDropdown extends AuroElement$2 {
4680
4976
  reflect: true
4681
4977
  },
4682
4978
 
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
4979
  /**
4692
4980
  * @private
4693
4981
  */
@@ -4702,22 +4990,15 @@ class AuroDropdown extends AuroElement$2 {
4702
4990
  type: String || undefined,
4703
4991
  attribute: false,
4704
4992
  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
4993
  }
4714
4994
  };
4715
4995
  }
4716
4996
 
4717
4997
  static get styles() {
4718
4998
  return [
4999
+ styleCss$1$2,
5000
+ tokensCss$1$2,
4719
5001
  colorCss$1$2,
4720
- tokensCss$1$1,
4721
5002
 
4722
5003
  // default layout
4723
5004
  classicColorCss,
@@ -4779,13 +5060,27 @@ class AuroDropdown extends AuroElement$2 {
4779
5060
  if (changedProperties.size === 0 || changedProperties.has('isPopoverVisible')) {
4780
5061
  this.handleTriggerContentSlotChange();
4781
5062
  }
5063
+ }
4782
5064
 
5065
+ /**
5066
+ * Handles the custom event `auroDropdown-toggled` to update the visibility of the dropdown bib.
5067
+ * @private
5068
+ * @param {CustomEvent} event - The custom event that contains the dropdown toggle information.
5069
+ */
5070
+ handleDropdownToggle(event) {
5071
+ this.updateFocusTrap();
5072
+ this.isPopoverVisible = event.detail.expanded;
5073
+ const eventType = event.detail.eventType || "unknown";
5074
+ if (!this.isPopoverVisible && this.hasFocus && eventType === "keydown") {
5075
+ this.trigger.focus();
5076
+ }
4783
5077
  }
4784
5078
 
4785
5079
  firstUpdated() {
4786
5080
 
4787
5081
  // Configure the floater to, this will generate the ID for the bib
4788
5082
  this.floater.configure(this, 'auroDropdown');
5083
+ this.addEventListener('auroDropdown-toggled', this.handleDropdownToggle);
4789
5084
 
4790
5085
  /**
4791
5086
  * @description Let subscribers know that the dropdown ID ha been generated and added.
@@ -4803,6 +5098,13 @@ class AuroDropdown extends AuroElement$2 {
4803
5098
 
4804
5099
  // Add the tag name as an attribute if it is different than the component name
4805
5100
  this.runtimeUtils.handleComponentTagRename(this, 'auro-dropdown');
5101
+
5102
+ this.trigger.addEventListener('click', () => {
5103
+ this.dispatchEvent(new CustomEvent('auroDropdown-triggerClick', {
5104
+ bubbles: true,
5105
+ composed: true
5106
+ }));
5107
+ });
4806
5108
  }
4807
5109
 
4808
5110
  /**
@@ -4846,70 +5148,33 @@ class AuroDropdown extends AuroElement$2 {
4846
5148
  }
4847
5149
 
4848
5150
  /**
4849
- * Function to support @focusout event.
4850
5151
  * @private
4851
- * @return {void}
4852
5152
  */
4853
- handleFocusout() {
4854
- this.hasFocus = false;
5153
+ updateFocusTrap() {
5154
+ // If the dropdown is open, create a focus trap and focus the first element
5155
+ if (this.isPopoverVisible && !this.disableFocusTrap) {
5156
+ this.focusTrap = new FocusTrap(this.bibContent);
5157
+ this.focusTrap.focusFirstElement();
5158
+ return;
5159
+ }
5160
+
5161
+ // Guard Clause: Ensure there is a focus trap currently active before continuing
5162
+ if (!this.focusTrap) {
5163
+ return;
5164
+ }
5165
+
5166
+ // If the dropdown is not open, disconnect the focus trap if it exists
5167
+ this.focusTrap.disconnect();
5168
+ this.focusTrap = undefined;
4855
5169
  }
4856
5170
 
4857
5171
  /**
4858
- * Determines if the element or any children are focusable.
5172
+ * Function to support @focusout event.
4859
5173
  * @private
4860
- * @param {HTMLElement} element - Element to check.
4861
- * @returns {Boolean} - True if the element or any children are focusable.
5174
+ * @return {void}
4862
5175
  */
4863
- containsFocusableElement(element) {
4864
- this.showTriggerBorders = true;
4865
-
4866
- const nodes = [
4867
- element,
4868
- ...element.children
4869
- ];
4870
-
4871
- const focusableElements = [
4872
- 'a',
4873
- 'auro-hyperlink',
4874
- 'button',
4875
- 'auro-button',
4876
- 'input',
4877
- 'auro-input',
4878
- ];
4879
-
4880
- const focusableElementsThatNeedBorders = ['auro-input'];
4881
-
4882
- const result = nodes.some((node) => {
4883
- const tagName = node.tagName.toLowerCase();
4884
-
4885
- if (node.tabIndex > -1) {
4886
- return true;
4887
- }
4888
-
4889
- if (focusableElements.includes(tagName)) {
4890
- if ((tagName === 'a' || tagName === 'auro-hyperlink' || node.hasAttribute('auro-hyperlink')) && node.hasAttribute('href')) {
4891
- return true;
4892
- }
4893
- if (!node.hasAttribute('disabled')) {
4894
- return true;
4895
- }
4896
- }
4897
-
4898
- if (focusableElements.some((focusableElement) => focusableElement.startsWith('auro-') && (focusableElement === tagName || node.hasAttribute(focusableElement)))) {
4899
- return true;
4900
- }
4901
-
4902
- return false;
4903
- });
4904
-
4905
- if (result) {
4906
- this.showTriggerBorders = !nodes.some((node) => {
4907
- const tagName = node.tagName.toLowerCase();
4908
- return focusableElements.includes(tagName) && !focusableElementsThatNeedBorders.includes(tagName);
4909
- });
4910
- }
4911
-
4912
- return result;
5176
+ handleFocusout() {
5177
+ this.hasFocus = false;
4913
5178
  }
4914
5179
 
4915
5180
  /**
@@ -5005,14 +5270,13 @@ class AuroDropdown extends AuroElement$2 {
5005
5270
  * @returns {void}
5006
5271
  */
5007
5272
  handleTriggerContentSlotChange(event) {
5008
-
5009
5273
  this.floater.handleTriggerTabIndex();
5010
5274
 
5011
5275
  // Get the trigger
5012
5276
  const trigger = this.shadowRoot.querySelector('#trigger');
5013
5277
 
5014
5278
  // Get the trigger slot
5015
- const triggerSlot = this.shadowRoot.querySelector('.triggerContent slot');
5279
+ const triggerSlot = this.shadowRoot.querySelector('.triggerContentWrapper slot');
5016
5280
 
5017
5281
  // If there's a trigger slot
5018
5282
  if (triggerSlot) {
@@ -5024,7 +5288,7 @@ class AuroDropdown extends AuroElement$2 {
5024
5288
  if (triggerContentNodes) {
5025
5289
 
5026
5290
  // See if any of them are focusable elements
5027
- this.triggerContentFocusable = triggerContentNodes.some((node) => this.containsFocusableElement(node));
5291
+ this.triggerContentFocusable = triggerContentNodes.some((node) => getFocusableElements(node).length > 0);
5028
5292
 
5029
5293
  // If any of them are focusable elements
5030
5294
  if (this.triggerContentFocusable) {
@@ -5084,29 +5348,6 @@ class AuroDropdown extends AuroElement$2 {
5084
5348
  }
5085
5349
  }
5086
5350
 
5087
- /**
5088
- * @private
5089
- * @method handleLabelSlotChange
5090
- * @param {event} event - The event object representing the slot change.
5091
- * @description Handles the slot change event for the label slot.
5092
- */
5093
- handleLabelSlotChange (event) {
5094
-
5095
- // Get the nodes from the event
5096
- const nodes = event.target.assignedNodes();
5097
-
5098
- // Guard clause for no nodes
5099
- if (!nodes) {
5100
- return;
5101
- }
5102
-
5103
- // Convert the nodes to a measurable array so we can get the length
5104
- const nodesArr = Array.from(nodes);
5105
-
5106
- // If the nodes array has a length, the dropdown is labeled
5107
- this.labeled = nodesArr.length > 0;
5108
- }
5109
-
5110
5351
  /**
5111
5352
  * Returns HTML for the common portion of the layouts.
5112
5353
  * @private
@@ -5119,24 +5360,19 @@ class AuroDropdown extends AuroElement$2 {
5119
5360
  <div
5120
5361
  id="trigger"
5121
5362
  class="${e(this.commonWrapperClasses)}" part="wrapper"
5122
- tabindex="${this.tabIndex}"
5363
+ tabindex="${o(this.triggerContentFocusable ? undefined : this.tabIndex)}"
5123
5364
  role="${o(this.triggerContentFocusable ? undefined : this.a11yRole)}"
5124
- aria-expanded="${o(this.triggerContentFocusable ? undefined : this.isPopoverVisible)}"
5125
- aria-controls="${o(this.triggerContentFocusable ? undefined : this.dropdownId)}"
5365
+ aria-expanded="${o(this.a11yRole === 'button' || this.triggerContentFocusable ? undefined : this.isPopoverVisible)}"
5366
+ aria-controls="${o(this.a11yRole === 'button' || this.triggerContentFocusable ? undefined : this.dropdownId)}"
5126
5367
  aria-labelledby="${o(this.triggerContentFocusable ? undefined : 'triggerLabel')}"
5127
5368
  @focusin="${this.handleFocusin}"
5128
5369
  @blur="${this.handleFocusOut}">
5129
- <div class="triggerContentWrapper">
5130
- <label class="label" id="triggerLabel" hasTrigger=${this.hasTriggerContent}>
5131
- <slot name="label" @slotchange="${this.handleLabelSlotChange}"></slot>
5132
- </label>
5133
- <div class="triggerContent">
5134
- <slot
5135
- name="trigger"
5136
- @slotchange="${this.handleTriggerContentSlotChange}"></slot>
5137
- </div>
5370
+ <div class="triggerContentWrapper" id="triggerLabel">
5371
+ <slot
5372
+ name="trigger"
5373
+ @slotchange="${this.handleTriggerContentSlotChange}"></slot>
5138
5374
  </div>
5139
- ${this.chevron || this.common ? u`
5375
+ ${this.chevron ? u`
5140
5376
  <div
5141
5377
  id="showStateIcon"
5142
5378
  class="chevron"
@@ -5157,11 +5393,9 @@ class AuroDropdown extends AuroElement$2 {
5157
5393
  <div id="bibSizer" part="size"></div>
5158
5394
  <${this.dropdownBibTag}
5159
5395
  id="bib"
5396
+ shape="${this.shape}"
5160
5397
  ?data-show="${this.isPopoverVisible}"
5161
- ?isfullscreen="${this.isBibFullscreen}"
5162
- ?common="${this.common}"
5163
- ?rounded="${this.common || this.rounded}"
5164
- ?inset="${this.common || this.inset}">
5398
+ ?isfullscreen="${this.isBibFullscreen}">
5165
5399
  <div class="slotContent">
5166
5400
  <slot @slotchange="${this.handleDefaultSlot}"></slot>
5167
5401
  </div>
@@ -5176,62 +5410,13 @@ class AuroDropdown extends AuroElement$2 {
5176
5410
  * @returns {html} - Returns HTML for the classic layout.
5177
5411
  */
5178
5412
  renderLayoutClassic() {
5413
+ // TODO: check with Doug why this was never used?
5414
+ const helpTextClasses = {
5415
+ 'helpText': true
5416
+ };
5179
5417
 
5180
5418
  return u`
5181
- <div>
5182
- <div
5183
- id="trigger"
5184
- class="trigger"
5185
- part="trigger"
5186
- tabindex="${this.tabIndex}"
5187
- ?showBorder="${this.showTriggerBorders}"
5188
- role="${o(this.triggerContentFocusable ? undefined : this.a11yRole)}"
5189
- aria-expanded="${o(this.triggerContentFocusable ? undefined : this.isPopoverVisible)}"
5190
- aria-controls="${o(this.triggerContentFocusable ? undefined : this.dropdownId)}"
5191
- aria-labelledby="${o(this.triggerContentFocusable ? undefined : 'triggerLabel')}"
5192
- >
5193
- <div class="triggerContentWrapper">
5194
- <label class="label" id="triggerLabel" hasTrigger=${this.hasTriggerContent}>
5195
- <slot name="label" @slotchange="${this.handleLabelSlotChange}"></slot>
5196
- </label>
5197
- <div class="triggerContent">
5198
- <slot
5199
- name="trigger"
5200
- @slotchange="${this.handleTriggerContentSlotChange}"></slot>
5201
- </div>
5202
- </div>
5203
- ${this.chevron || this.common ? u`
5204
- <div
5205
- id="showStateIcon"
5206
- part="chevron">
5207
- <${this.iconTag}
5208
- category="interface"
5209
- name="chevron-down"
5210
- ?onDark="${this.onDark}"
5211
- variant="${this.disabled ? 'disabled' : 'muted'}">
5212
- >
5213
- </${this.iconTag}>
5214
- </div>
5215
- ` : undefined }
5216
- </div>
5217
- <${this.helpTextTag} part="helpText" ?onDark=${this.onDark} ?error="${this.error}">
5218
- <slot name="helpText"></slot>
5219
- </${this.helpTextTag}>
5220
-
5221
- <div id="bibSizer" part="size"></div>
5222
- <${this.dropdownBibTag}
5223
- id="bib"
5224
- ?data-show="${this.isPopoverVisible}"
5225
- ?isfullscreen="${this.isBibFullscreen}"
5226
- ?common="${this.common}"
5227
- ?rounded="${this.common || this.rounded}"
5228
- ?inset="${this.common || this.inset}"
5229
- >
5230
- <div class="slotContent">
5231
- <slot @slotchange="${this.handleDefaultSlot}"></slot>
5232
- </div>
5233
- </${this.dropdownBibTag}>
5234
- </div>
5419
+ ${this.renderBasicHtml(helpTextClasses)}
5235
5420
  `;
5236
5421
  }
5237
5422
 
@@ -5299,9 +5484,9 @@ class AuroDropdown extends AuroElement$2 {
5299
5484
 
5300
5485
  var dropdownVersion = '3.0.0';
5301
5486
 
5302
- 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)}`;
5487
+ 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)}`;
5303
5488
 
5304
- 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)}`;
5489
+ 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;padding:var(--ds-size-200, 1rem);padding-top:var(--ds-size-400, 2rem);padding-bottom:0}#headerContainer .titleRow{display:flex;flex-direction:row;justify-content:space-between;gap:var(--ds-size-100, 0.5rem)}#headerContainer .header{max-width:calc(100vw - var(--ds-size-900, 4.5rem));padding-top:var(--ds-size-200, 1rem)}#headerContainer .subheader{width:100%}#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)}`;
5305
5490
 
5306
5491
  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)}`;
5307
5492
 
@@ -5312,7 +5497,7 @@ var tokenCss = i$5`:host{--ds-auro-dropdownbib-header-boxshadow-color: var(--ds-
5312
5497
 
5313
5498
  /* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
5314
5499
 
5315
- let AuroLibraryRuntimeUtils$1$1 = class AuroLibraryRuntimeUtils {
5500
+ let AuroLibraryRuntimeUtils$2 = class AuroLibraryRuntimeUtils {
5316
5501
 
5317
5502
  /* eslint-disable jsdoc/require-param */
5318
5503
 
@@ -5344,77 +5529,1171 @@ let AuroLibraryRuntimeUtils$1$1 = class AuroLibraryRuntimeUtils {
5344
5529
  ) {
5345
5530
  return __Closest(base);
5346
5531
  }
5347
- /* eslint-enable jsdoc/require-param */
5532
+ /* eslint-enable jsdoc/require-param */
5533
+
5534
+ /**
5535
+ * 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.
5536
+ * @param {Object} elem - The element to check.
5537
+ * @param {String} tagName - The name of the Auro component to check for or add as an attribute.
5538
+ * @returns {void}
5539
+ */
5540
+ handleComponentTagRename(elem, tagName) {
5541
+ const tag = tagName.toLowerCase();
5542
+ const elemTag = elem.tagName.toLowerCase();
5543
+
5544
+ if (elemTag !== tag) {
5545
+ elem.setAttribute(tag, true);
5546
+ }
5547
+ }
5548
+
5549
+ /**
5550
+ * Validates if an element is a specific Auro component.
5551
+ * @param {Object} elem - The element to validate.
5552
+ * @param {String} tagName - The name of the Auro component to check against.
5553
+ * @returns {Boolean} - Returns true if the element is the specified Auro component.
5554
+ */
5555
+ elementMatch(elem, tagName) {
5556
+ const tag = tagName.toLowerCase();
5557
+ const elemTag = elem.tagName.toLowerCase();
5558
+
5559
+ return elemTag === tag || elem.hasAttribute(tag);
5560
+ }
5561
+ };
5562
+
5563
+ // Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
5564
+ // See LICENSE in the project root for license information.
5565
+
5566
+
5567
+ class AuroDependencyVersioning {
5568
+
5569
+ /**
5570
+ * Generates a unique string to be used for child auro element naming.
5571
+ * @private
5572
+ * @param {string} baseName - Defines the first part of the unique element name.
5573
+ * @param {string} version - Version of the component that will be appended to the baseName.
5574
+ * @returns {string} - Unique string to be used for naming.
5575
+ */
5576
+ generateElementName(baseName, version) {
5577
+ let result = baseName;
5578
+
5579
+ result += '-';
5580
+ result += version.replace(/[.]/g, '_');
5581
+
5582
+ return result;
5583
+ }
5584
+
5585
+ /**
5586
+ * Generates a unique string to be used for child auro element naming.
5587
+ * @param {string} baseName - Defines the first part of the unique element name.
5588
+ * @param {string} version - Version of the component that will be appended to the baseName.
5589
+ * @returns {string} - Unique string to be used for naming.
5590
+ */
5591
+ generateTag(baseName, version, tagClass) {
5592
+ const elementName = this.generateElementName(baseName, version);
5593
+ const tag = i`${s(elementName)}`;
5594
+
5595
+ if (!customElements.get(elementName)) {
5596
+ customElements.define(elementName, class extends tagClass {});
5597
+ }
5598
+
5599
+ return tag;
5600
+ }
5601
+ }
5602
+
5603
+ /**
5604
+ * Private module-level WeakMap to hold MutationObservers for each host element.
5605
+ */
5606
+ const _observers = new WeakMap();
5607
+
5608
+ /**
5609
+ * Private module-level WeakMap to hold attribute matchers and targets for each host element.
5610
+ * Structure: {
5611
+ * host: {
5612
+ * matchers: Set<Function>,
5613
+ * targets: Map<HTMLElement, Map<Function, {removeOriginal: boolean, currentAttributes: Map<string, string>}>>
5614
+ * }
5615
+ * }
5616
+ */
5617
+ const _transportConfig = new WeakMap();
5618
+
5619
+ /**
5620
+ * Transfers all matching attributes from a host element to a target element and observes for future changes.
5621
+ *
5622
+ * @param {Object} params - The parameters for the function.
5623
+ * @param {HTMLElement} params.host - The host element from which attributes will be transported.
5624
+ * @param {HTMLElement} params.target - The target element to which attributes will be transported.
5625
+ * @param {boolean} [params.removeOriginal=true] - Whether to remove the attributes from the host element.
5626
+ * @param {boolean} [params.observe=true] - Whether to attach a MutationObserver to the host element.
5627
+ * @returns {Function} A function to detach the observer when no longer needed.
5628
+ * @throws {TypeError} If the host or target parameters are not instances of HTMLElement.
5629
+ */
5630
+ const transportAttributes = ({ host, target, match, removeOriginal = true }) => {
5631
+ // Guard Clause: Ensure host is valid HTMLElement instance
5632
+ if (typeof host !== 'object' || !(host instanceof HTMLElement)) {
5633
+ throw new TypeError('a11yUtilities.js | transportAttributes | The "host" parameter must be an instance of HTMLElement.');
5634
+ }
5635
+
5636
+ // Guard Clause: Ensure target is valid HTMLElement instance
5637
+ if (typeof target !== 'object' || !(target instanceof HTMLElement)) {
5638
+ throw new TypeError('a11yUtilities.js | transportAttributes | The "target" parameter must be an instance of HTMLElement.');
5639
+ }
5640
+
5641
+ // Guard Clause: Ensure match is a function
5642
+ if (typeof match !== 'function') {
5643
+ throw new TypeError('a11yUtilities.js | transportAttributes | The "match" parameter must be a function.');
5644
+ }
5645
+
5646
+ // Guard Clause: Ensure removeOriginal is a boolean
5647
+ if (typeof removeOriginal !== 'boolean') {
5648
+ throw new TypeError('a11yUtilities.js | transportAttributes | The "removeOriginal" parameter must be a boolean.');
5649
+ }
5650
+
5651
+ // Register this transport and get cleanup function
5652
+ return _registerTransport({
5653
+ host,
5654
+ target,
5655
+ matcher: match,
5656
+ removeOriginal
5657
+ });
5658
+ };
5659
+
5660
+ /**
5661
+ * Registers a matcher and target for a host element and attaches an observer if needed.
5662
+ *
5663
+ * @param {Object} params - The parameters object.
5664
+ * @param {HTMLElement} params.host - The host element to observe.
5665
+ * @param {HTMLElement} params.target - The target element to receive attributes.
5666
+ * @param {Function} params.matcher - Function that determines which attributes to transport.
5667
+ * @param {boolean} [params.removeOriginal=true] - Whether to remove original attributes.
5668
+ * @param {boolean} [params.observe=true] - Whether to observe for attribute changes.
5669
+ * @returns {Function} Function to detach the specific matcher and target pairing.
5670
+ * @private
5671
+ */
5672
+ const _registerTransport = ({ host, target, matcher, removeOriginal = true }) => {
5673
+ // Initialize config for this host if it doesn't exist
5674
+ if (!_transportConfig.has(host)) {
5675
+ _transportConfig.set(host, {
5676
+ matchers: new Set(),
5677
+ targets: new Map()
5678
+ });
5679
+ }
5680
+
5681
+ const config = _transportConfig.get(host);
5682
+
5683
+ // Add the matcher to the set of matchers for this host
5684
+ config.matchers.add(matcher);
5685
+
5686
+ // Initialize target entry if it doesn't exist
5687
+ if (!config.targets.has(target)) {
5688
+ config.targets.set(target, new Map());
5689
+ }
5690
+
5691
+ // Store the matcher with its removeOriginal setting for this target
5692
+ config.targets.get(target).set(matcher, {
5693
+ removeOriginal,
5694
+ currentAttributes: new Map()
5695
+ });
5696
+
5697
+ // Perform initial attribute transport
5698
+ _transportAttributes({ host, target, matcher, removeOriginal });
5699
+
5700
+ // Attach observer
5701
+ _attachObserver(host);
5702
+
5703
+ // Return cleanup function and utility functions
5704
+ return {
5705
+ cleanup: () => _cleanupTransport(host, target, matcher),
5706
+ getObservedAttributes: () => _getObservedAttributes(host, target, matcher),
5707
+ getObservedAttribute: (attr) => _getObservedAttribute(host, target, matcher, attr),
5708
+ }
5709
+ };
5710
+
5711
+ /**
5712
+ * Cleans up resources associated with a specific matcher and target for a host element.
5713
+ *
5714
+ * @param {HTMLElement} host - The host element
5715
+ * @param {HTMLElement} target - The target element
5716
+ * @param {Function} matcher - The matcher function
5717
+ * @private
5718
+ */
5719
+ const _cleanupTransport = (host, target, matcher) => {
5720
+ const config = _transportConfig.get(host);
5721
+ if (!config) return;
5722
+
5723
+ // Remove this matcher from this target
5724
+ const targetMatchers = config.targets.get(target);
5725
+ if (targetMatchers) {
5726
+ targetMatchers.delete(matcher);
5727
+
5728
+ // If this target has no more matchers, remove it
5729
+ if (targetMatchers.size === 0) {
5730
+ config.targets.delete(target);
5731
+ }
5732
+ }
5733
+
5734
+ // Check if this matcher is still used by any target
5735
+ let matcherStillUsed = false;
5736
+ for (const matcherMap of config.targets.values()) {
5737
+ if (matcherMap.has(matcher)) {
5738
+ matcherStillUsed = true;
5739
+ break;
5740
+ }
5741
+ }
5742
+
5743
+ // If not used anymore, remove from matchers set
5744
+ if (!matcherStillUsed) {
5745
+ config.matchers.delete(matcher);
5746
+ }
5747
+
5748
+ // If no more targets or matchers, detach observer
5749
+ if (config.targets.size === 0 || config.matchers.size === 0) {
5750
+ _detachObserver(host);
5751
+ }
5752
+ };
5753
+
5754
+ /**
5755
+ * Generic function to transport attributes from a host element to a target element.
5756
+ *
5757
+ * @param {Object} params - The parameters object.
5758
+ * @param {HTMLElement} params.host - The host element from which to transport attributes.
5759
+ * @param {HTMLElement} params.target - The target element to which attributes will be transported.
5760
+ * @param {Function} params.matcher - Function that takes an attribute name and returns true if it should be transported.
5761
+ * @param {boolean} [params.removeOriginal=true] - Whether to remove original attributes from host.
5762
+ * @returns {void}
5763
+ * @private
5764
+ */
5765
+ const _transportAttributes = ({ host, target, matcher, removeOriginal = true }) => {
5766
+ // Get a list of all matching attributes on the host element and their values
5767
+ const matchingAttributes = host.getAttributeNames()
5768
+ .filter(attr => matcher(attr))
5769
+ .reduce((acc, attr) => {
5770
+ acc[attr] = host.getAttribute(attr);
5771
+ return acc;
5772
+ }, {});
5773
+
5774
+ // Move matching attributes to the target element, removing them from the host if removeOriginal is true
5775
+ Object.entries(matchingAttributes).forEach(([key, value]) => {
5776
+ _setObservedAttribute(host, target, matcher, key, value);
5777
+ target.setAttribute(key, value);
5778
+ if (removeOriginal) {
5779
+ host.removeAttribute(key);
5780
+ }
5781
+ });
5782
+ };
5783
+
5784
+ /**
5785
+ * Attaches a MutationObserver to the host element to monitor attribute changes.
5786
+ *
5787
+ * @param {HTMLElement} host - The element to observe for attribute changes.
5788
+ * @returns {MutationObserver} The observer instance.
5789
+ * @private
5790
+ */
5791
+ const _attachObserver = (host) => {
5792
+ // If an observer for this host already exists, return it
5793
+ if (_observers.has(host)) {
5794
+ return _observers.get(host);
5795
+ }
5796
+
5797
+ // Create a new MutationObserver
5798
+ const observer = new MutationObserver((mutations) => {
5799
+ const config = _transportConfig.get(host);
5800
+ if (!config) return;
5801
+
5802
+ // For each mutation affecting attributes
5803
+ mutations
5804
+ .filter(mutation => mutation.type === 'attributes')
5805
+ .forEach(mutation => {
5806
+ const attributeName = mutation.attributeName;
5807
+
5808
+ // Find matchers that care about this attribute
5809
+ for (const matcher of config.matchers) {
5810
+ if (matcher(attributeName)) {
5811
+ // For each target that uses this matcher
5812
+ for (const [target, matcherConfigs] of config.targets.entries()) {
5813
+ if (matcherConfigs.has(matcher)) {
5814
+ const { removeOriginal } = matcherConfigs.get(matcher);
5815
+ _transportAttributes({
5816
+ host,
5817
+ target,
5818
+ matcher,
5819
+ removeOriginal
5820
+ });
5821
+ }
5822
+ }
5823
+ }
5824
+ }
5825
+ });
5826
+ });
5827
+
5828
+ // Start observing attribute changes
5829
+ observer.observe(host, { attributes: true });
5830
+
5831
+ // Store the observer
5832
+ _observers.set(host, observer);
5833
+
5834
+ return observer;
5835
+ };
5836
+
5837
+ /**
5838
+ * Detaches and cleans up the MutationObserver for a given host element.
5839
+ *
5840
+ * @param {HTMLElement} host - The element whose observer should be detached.
5841
+ * @private
5842
+ */
5843
+ const _detachObserver = (host) => {
5844
+ if (_observers.has(host)) {
5845
+ const observer = _observers.get(host);
5846
+ observer.disconnect();
5847
+ _observers.delete(host);
5848
+ }
5849
+
5850
+ // Clean up the transport config as well
5851
+ if (_transportConfig.has(host)) {
5852
+ _transportConfig.delete(host);
5853
+ }
5854
+ };
5855
+
5856
+ /**
5857
+ * Gets the matcher configuration for a specific host, target, and matcher
5858
+ * @param {HTMLElement} host - The host element
5859
+ * @param {HTMLElement} target - The target element
5860
+ * @param {Function} matcher - The matcher function
5861
+ * @returns {Object|undefined} The matcher configuration if found
5862
+ * @private
5863
+ */
5864
+ const _getMatcherConfig = (host, target, matcher) => {
5865
+ const config = _transportConfig.get(host);
5866
+ if (!config) return undefined;
5867
+
5868
+ const targetMatchers = config.targets.get(target);
5869
+ if (!targetMatchers) return undefined;
5870
+
5871
+ return targetMatchers.get(matcher);
5872
+ };
5873
+
5874
+ /**
5875
+ * Sets an observed attribute value
5876
+ * @param {HTMLElement} host - The host element
5877
+ * @param {HTMLElement} target - The target element
5878
+ * @param {Function} matcher - The matcher function
5879
+ * @param {string} key - The attribute name
5880
+ * @param {string} value - The attribute value
5881
+ * @private
5882
+ */
5883
+ const _setObservedAttribute = (host, target, matcher, key, value) => {
5884
+ const matcherConfig = _getMatcherConfig(host, target, matcher);
5885
+ if (matcherConfig) {
5886
+ matcherConfig.currentAttributes.set(key, value);
5887
+ }
5888
+ };
5889
+
5890
+ const _getObservedAttribute = (host, target, matcher, attr) => {
5891
+ const matcherConfig = _getMatcherConfig(host, target, matcher);
5892
+ if (matcherConfig) return matcherConfig.currentAttributes.get(attr);
5893
+ return undefined;
5894
+ };
5895
+
5896
+ const _getObservedAttributes = (host, target, matcher) => {
5897
+ const matcherConfig = _getMatcherConfig(host, target, matcher);
5898
+ if (matcherConfig) return Array.from(matcherConfig.currentAttributes.entries());
5899
+ return [];
5900
+ };
5901
+
5902
+ const _matchers = {
5903
+ 'aria-': attr => attr.startsWith('aria-'),
5904
+ 'role': attr => attr.match(/^role$/)
5905
+ };
5906
+
5907
+ const transportAllA11yAttributes = ({ host, target, removeOriginal = true }) => {
5908
+ return transportAttributes({
5909
+ host,
5910
+ target,
5911
+ match: attr => {
5912
+ for (const key in _matchers) {
5913
+ if (_matchers[key](attr)) return true;
5914
+ }
5915
+ return false;
5916
+ },
5917
+ removeOriginal
5918
+ });
5919
+ };
5920
+
5921
+ let AuroElement$1 = class AuroElement extends i$2 {
5922
+
5923
+ /**
5924
+ * @type {Object} return object from transportAttributes via a11yUtilities
5925
+ * @property {Function} cleanup - Function to clean up the attribute watcher.
5926
+ * @property {Function} getCurrentAttributes - Function to get the current attributes being watched and their values.
5927
+ * @property {Function} getObservedAttribute - Function to get the value of a specific observed attribute by name.
5928
+ * @private
5929
+ */
5930
+ attributeWatcher;
5931
+
5932
+ static get properties() {
5933
+ return {
5934
+
5935
+ /**
5936
+ * Defines the layout of an element.
5937
+ * @default {'default'}
5938
+ */
5939
+ layout: {
5940
+ type: String,
5941
+ attribute: "layout",
5942
+ reflect: true
5943
+ },
5944
+
5945
+ /**
5946
+ * Defines the shape of an element.
5947
+ * @property {'default', 'rounded', 'pill', 'circle'}
5948
+ * @default {'default'}
5949
+ */
5950
+ shape: {
5951
+ type: String,
5952
+ attribute: "shape",
5953
+ reflect: true
5954
+ },
5955
+
5956
+ /**
5957
+ * Defines the size of an element.
5958
+ * @property {'xs', 'sm', 'md', 'lg', 'xl'}
5959
+ * @default {'md'}
5960
+ */
5961
+ size: {
5962
+ type: String,
5963
+ attribute: "size",
5964
+ reflect: true
5965
+ },
5966
+
5967
+ /**
5968
+ * This Boolean attribute lets you specify that the element should be rendered in dark mode.
5969
+ * @default {false}
5970
+ */
5971
+ onDark: {
5972
+ type: Boolean,
5973
+ attribute: "ondark",
5974
+ reflect: true
5975
+ },
5976
+
5977
+ /**
5978
+ * A reference to the wrapper element in the shadow DOM.
5979
+ * This is used to apply layout and shape classes dynamically.
5980
+ * @type {HTMLElement|null}
5981
+ * @default {null}
5982
+ * @private
5983
+ */
5984
+ wrapper: {
5985
+ attribute: false,
5986
+ reflect: false
5987
+ }
5988
+ };
5989
+ }
5990
+
5991
+
5992
+
5993
+ resetShapeClasses() {
5994
+ if (this.shape && this.size) {
5995
+
5996
+ if (this.wrapper) {
5997
+ this.wrapper.classList.forEach((className) => {
5998
+ if (className.startsWith('shape-')) {
5999
+ this.wrapper.classList.remove(className);
6000
+ }
6001
+ });
6002
+
6003
+ this.wrapper.classList.add(`shape-${this.shape.toLowerCase()}-${this.size.toLowerCase()}`);
6004
+ }
6005
+ }
6006
+ }
6007
+
6008
+ resetLayoutClasses() {
6009
+ if (this.layout) {
6010
+ if (this.wrapper) {
6011
+ this.wrapper.classList.forEach((className) => {
6012
+ if (className.startsWith('layout-')) {
6013
+ this.wrapper.classList.remove(className);
6014
+ }
6015
+ });
6016
+
6017
+ this.wrapper.classList.add(`layout-${this.layout.toLowerCase()}`);
6018
+ }
6019
+ }
6020
+ }
6021
+
6022
+ updateComponentArchitecture() {
6023
+ this.resetLayoutClasses();
6024
+ this.resetShapeClasses();
6025
+ }
6026
+
6027
+ updated(changedProperties) {
6028
+ if (changedProperties.has('layout') || changedProperties.has('shape') || changedProperties.has('size')) {
6029
+ this.updateComponentArchitecture();
6030
+ }
6031
+ }
6032
+
6033
+ firstUpdated() {
6034
+ super.firstUpdated();
6035
+
6036
+ // Set a reference to the wrapper element in the shadow DOM
6037
+ this.wrapper = this.shadowRoot.querySelector('.wrapper');
6038
+
6039
+ // Initialize the transportation of ARIA attributes to the target element and get the disconnect function for cleanup
6040
+ this.attributeWatcher = transportAllA11yAttributes({ host: this, target: this.shadowRoot.querySelector('.wrapper') });
6041
+ }
6042
+
6043
+ disconnectedCallback() {
6044
+ super.disconnectedCallback();
6045
+
6046
+ // Cleanup the ARIA observer if it exists
6047
+ if (this.attributeWatcher) {
6048
+ this.attributeWatcher.cleanup();
6049
+ this.attributeWatcher = null;
6050
+ }
6051
+ }
6052
+
6053
+ // Try to render the defined `this.layout` layout. If that fails, fall back to the default layout.
6054
+ // This will catch if an invalid layout value is passed in and render the default layout if so.
6055
+ render() {
6056
+ try {
6057
+ return this.renderLayout();
6058
+ } catch (error) {
6059
+ // failed to get the defined layout
6060
+ console.error('Failed to get the defined layout - using the default layout', error); // eslint-disable-line no-console
6061
+
6062
+ // fallback to the default layout
6063
+ return this.getLayout('default');
6064
+ }
6065
+ }
6066
+ };
6067
+
6068
+ 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}`;
6069
+
6070
+ 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)}`;
6071
+
6072
+ 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}`;
6073
+
6074
+ 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}`;
6075
+
6076
+ // Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
6077
+ // See LICENSE in the project root for license information.
6078
+
6079
+ // ---------------------------------------------------------------------
6080
+
6081
+ /* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
6082
+
6083
+ let AuroLibraryRuntimeUtils$1$1 = class AuroLibraryRuntimeUtils {
6084
+
6085
+ /* eslint-disable jsdoc/require-param */
6086
+
6087
+ /**
6088
+ * This will register a new custom element with the browser.
6089
+ * @param {String} name - The name of the custom element.
6090
+ * @param {Object} componentClass - The class to register as a custom element.
6091
+ * @returns {void}
6092
+ */
6093
+ registerComponent(name, componentClass) {
6094
+ if (!customElements.get(name)) {
6095
+ customElements.define(name, class extends componentClass {});
6096
+ }
6097
+ }
6098
+
6099
+ /**
6100
+ * Finds and returns the closest HTML Element based on a selector.
6101
+ * @returns {void}
6102
+ */
6103
+ closestElement(
6104
+ selector, // selector like in .closest()
6105
+ base = this, // extra functionality to skip a parent
6106
+ __Closest = (el, found = el && el.closest(selector)) =>
6107
+ !el || el === document || el === window
6108
+ ? null // standard .closest() returns null for non-found selectors also
6109
+ : found
6110
+ ? found // found a selector INside this element
6111
+ : __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
6112
+ ) {
6113
+ return __Closest(base);
6114
+ }
6115
+ /* eslint-enable jsdoc/require-param */
6116
+
6117
+ /**
6118
+ * 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.
6119
+ * @param {Object} elem - The element to check.
6120
+ * @param {String} tagName - The name of the Auro component to check for or add as an attribute.
6121
+ * @returns {void}
6122
+ */
6123
+ handleComponentTagRename(elem, tagName) {
6124
+ const tag = tagName.toLowerCase();
6125
+ const elemTag = elem.tagName.toLowerCase();
6126
+
6127
+ if (elemTag !== tag) {
6128
+ elem.setAttribute(tag, true);
6129
+ }
6130
+ }
6131
+
6132
+ /**
6133
+ * Validates if an element is a specific Auro component.
6134
+ * @param {Object} elem - The element to validate.
6135
+ * @param {String} tagName - The name of the Auro component to check against.
6136
+ * @returns {Boolean} - Returns true if the element is the specified Auro component.
6137
+ */
6138
+ elementMatch(elem, tagName) {
6139
+ const tag = tagName.toLowerCase();
6140
+ const elemTag = elem.tagName.toLowerCase();
6141
+
6142
+ return elemTag === tag || elem.hasAttribute(tag);
6143
+ }
6144
+ };
6145
+
6146
+ 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}}`;
6147
+
6148
+ 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}`;
6149
+
6150
+ var tokensCss$1$1 = i$5`:host{--ds-auro-loader-background-color:currentcolor;--ds-auro-loader-border-color:currentcolor;--ds-auro-loader-color:currentcolor}`;
6151
+
6152
+ // Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
6153
+ // See LICENSE in the project root for license information.
6154
+
6155
+
6156
+ class AuroLoader extends i$2 {
6157
+ constructor() {
6158
+ super();
6159
+
6160
+ /**
6161
+ * @private
6162
+ */
6163
+ this.keys = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9];
6164
+
6165
+ /**
6166
+ * @private
6167
+ */
6168
+ this.mdCount = 3;
6169
+
6170
+ /**
6171
+ * @private
6172
+ */
6173
+ this.smCount = 2;
6174
+
6175
+ /**
6176
+ * @private
6177
+ */
6178
+ this.runtimeUtils = new AuroLibraryRuntimeUtils$1$1();
6179
+
6180
+ this.orbit = false;
6181
+ this.ringworm = false;
6182
+ this.laser = false;
6183
+ this.pulse = false;
6184
+ }
6185
+
6186
+ // function to define props used within the scope of this component
6187
+ static get properties() {
6188
+ return {
6189
+
6190
+ /**
6191
+ * Sets loader to laser type.
6192
+ */
6193
+ laser: {
6194
+ type: Boolean,
6195
+ reflect: true
6196
+ },
6197
+
6198
+ /**
6199
+ * Sets loader to orbit type.
6200
+ */
6201
+ orbit: {
6202
+ type: Boolean,
6203
+ reflect: true
6204
+ },
6205
+
6206
+ /**
6207
+ * Sets loader to pulse type.
6208
+ */
6209
+ pulse: {
6210
+ type: Boolean,
6211
+ reflect: true
6212
+ },
6213
+
6214
+ /**
6215
+ * Sets loader to ringworm type.
6216
+ */
6217
+ ringworm: {
6218
+ type: Boolean,
6219
+ reflect: true
6220
+ }
6221
+ };
6222
+ }
6223
+
6224
+ static get styles() {
6225
+ return [
6226
+ i$5`${styleCss$2$1}`,
6227
+ i$5`${colorCss$1$1}`,
6228
+ i$5`${tokensCss$1$1}`
6229
+ ];
6230
+ }
6231
+
6232
+ /**
6233
+ * This will register this element with the browser.
6234
+ * @param {string} [name="auro-loader"] - The name of element that you want to register to.
6235
+ *
6236
+ * @example
6237
+ * AuroLoader.register("custom-loader") // this will register this element to <custom-loader/>
6238
+ *
6239
+ */
6240
+ static register(name = "auro-loader") {
6241
+ AuroLibraryRuntimeUtils$1$1.prototype.registerComponent(name, AuroLoader);
6242
+ }
6243
+
6244
+ firstUpdated() {
6245
+ // Add the tag name as an attribute if it is different than the component name
6246
+ this.runtimeUtils.handleComponentTagRename(this, 'auro-loader');
6247
+ }
6248
+
6249
+ connectedCallback() {
6250
+ super.connectedCallback();
6251
+ }
6252
+
6253
+ /**
6254
+ * @private
6255
+ * @returns {Array} Numbered array for template map.
6256
+ */
6257
+ defineTemplate() {
6258
+ let nodes = Array.from(Array(this.mdCount).keys());
6259
+
6260
+ if (this.orbit || this.laser) {
6261
+ nodes = Array.from(Array(this.smCount).keys());
6262
+ } else if (this.ringworm) {
6263
+ nodes = Array.from(Array(0).keys());
6264
+ }
6265
+
6266
+ return nodes;
6267
+ }
6268
+
6269
+ // When using auroElement, use the following attribute and function when hiding content from screen readers.
6270
+ // aria-hidden="${this.hideAudible(this.hiddenAudible)}"
6271
+
6272
+ // function that renders the HTML and CSS into the scope of the component
6273
+ render() {
6274
+ return x`
6275
+ ${this.defineTemplate().map((idx) => x`
6276
+ <span part="element" class="loader node-${idx}"></span>
6277
+ `)}
6278
+
6279
+ <div class="no-animation body-default">Loading...</div>
6280
+
6281
+ ${this.ringworm ? x`
6282
+ <svg part="element" class="circular" viewBox="25 25 50 50">
6283
+ <circle class="path" cx="50" cy="50" r="20" fill="none"/>
6284
+ </svg>`
6285
+ : ``
6286
+ }
6287
+ `;
6288
+ }
6289
+ }
6290
+
6291
+ var loaderVersion = '5.1.0';
6292
+
6293
+ // Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
6294
+ // See LICENSE in the project root for license information.
6295
+
6296
+
6297
+ /**
6298
+ * @slot - Default slot for the text of the button.
6299
+ * @csspart button - Apply CSS to HTML5 button.
6300
+ * @csspart loader - Apply CSS to auro-loader.
6301
+ * @csspart text - Apply CSS to text slot.
6302
+ * @csspart icon - Apply CSS to icon slot.
6303
+ */
6304
+
6305
+ const ICON_ONLY_SHAPES = ['circle', 'square'];
6306
+
6307
+ /**
6308
+ * AuroButton is a custom element that provides a styled, accessible button with support for various states and form association.
6309
+ * It is designed to be flexible, supporting loading states, icon slots, and integration with HTML5 forms.
6310
+ * @property {'default', 'rounded', 'pill', 'circle', 'square'} shape - Defines the shape of the button.
6311
+ * @property {'xs', 'sm', 'md', 'lg', 'xl'} size - Defines the size of the button.
6312
+ * @property {'primary', 'secondary', 'tertiary', 'ghost', 'flat'} variant - Sets the button variant.
6313
+ * @property {'submit', 'reset', 'button'} type - The type of button. Matches HTML5 Button Spec.
6314
+ * @property {boolean} onDark - Indicates if the button is rendered in dark mode.
6315
+ */
6316
+ class AuroButton extends AuroElement$1 {
6317
+
6318
+ /**
6319
+ * Enables form association for this element.
6320
+ * @see https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/attachInternals
6321
+ * @returns {boolean} - Returns true to enable form association.
6322
+ */
6323
+ static get formAssociated() {
6324
+ return true;
6325
+ }
6326
+
6327
+ constructor() {
6328
+ super();
6329
+ this.autofocus = false;
6330
+ this.disabled = false;
6331
+ this.loading = false;
6332
+ this.size = "md";
6333
+ this.shape = "rounded";
6334
+ this.onDark = false;
6335
+ this.fluid = false;
6336
+ this.loadingText = this.loadingText || 'Loading...';
6337
+ this.variant = 'primary';
6338
+
6339
+ // Support for HTML5 forms
6340
+ if (typeof this.attachInternals === 'function') {
6341
+ this.internals = this.attachInternals();
6342
+ } else {
6343
+ this.internals = null;
6344
+
6345
+ // eslint-disable-next-line no-console
6346
+ 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.');
6347
+ }
6348
+
6349
+ /**
6350
+ * Generate unique names for dependency components.
6351
+ */
6352
+ const versioning = new AuroDependencyVersioning();
6353
+
6354
+ /**
6355
+ * @private
6356
+ */
6357
+ this.loaderTag = versioning.generateTag('auro-loader', loaderVersion, AuroLoader);
6358
+
6359
+ /**
6360
+ * @private
6361
+ */
6362
+ this.buttonHref = undefined;
6363
+
6364
+ /**
6365
+ * @private
6366
+ */
6367
+ this.buttonTarget = undefined;
6368
+
6369
+ /**
6370
+ * @private
6371
+ */
6372
+ this.buttonRel = undefined;
6373
+ }
6374
+
6375
+ static get styles() {
6376
+ return [
6377
+ tokensCss$2$1,
6378
+ styleCss$3$1,
6379
+ colorCss$2$1,
6380
+ shapeSize
6381
+ ];
6382
+ }
6383
+
6384
+ static get properties() {
6385
+ return {
6386
+
6387
+ ...super.properties,
6388
+
6389
+ /**
6390
+ * Override layout since it isn't used in this component.
6391
+ * @private
6392
+ */
6393
+ layout: {
6394
+ type: Boolean,
6395
+ attribute: false,
6396
+ reflect: false
6397
+ },
6398
+
6399
+ /**
6400
+ * This Boolean attribute lets you specify that the button should have input focus when the page loads, unless overridden by the user.
6401
+ */
6402
+ autofocus: {
6403
+ type: Boolean,
6404
+ reflect: true
6405
+ },
6406
+
6407
+ /**
6408
+ * If set to true, button will become disabled and not allow for interactions.
6409
+ */
6410
+ disabled: {
6411
+ type: Boolean,
6412
+ reflect: true
6413
+ },
6414
+
6415
+ /**
6416
+ * Alters the shape of the button to be full width of its parent container.
6417
+ */
6418
+ fluid: {
6419
+ type: Boolean,
6420
+ reflect: true
6421
+ },
6422
+
6423
+ /**
6424
+ * If set to true button text will be replaced with `auro-loader` and become disabled.
6425
+ */
6426
+ loading: {
6427
+ type: Boolean,
6428
+ reflect: true
6429
+ },
6430
+
6431
+ /**
6432
+ * 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.
6433
+ */
6434
+ loadingText: {
6435
+ type: String
6436
+ },
6437
+
6438
+ /**
6439
+ * Populates `tabindex` to define the focusable sequence in keyboard navigation.
6440
+ */
6441
+ tIndex: {
6442
+ type: String,
6443
+ reflect: true
6444
+ },
6445
+
6446
+ /**
6447
+ * Populates `tabindex` to define the focusable sequence in keyboard navigation.
6448
+ * Must be used with "." to ensure the host element does not retain a reference to the `tabindex` attribute.
6449
+ * Example: `<auro-button .tabindex="${this.disabled ? '-1' : '0'}"></auro-button>`.
6450
+ */
6451
+ tabindex: {
6452
+ type: String,
6453
+ reflect: false
6454
+ },
6455
+
6456
+ /**
6457
+ * Sets title attribute. The information is most often shown as a tooltip text when the mouse moves over the element.
6458
+ */
6459
+ title: {
6460
+ type: String,
6461
+ reflect: true
6462
+ },
6463
+
6464
+ /**
6465
+ * The type of the button. Possible values are: `submit`, `reset`, `button`.
6466
+ */
6467
+ type: {
6468
+ type: String,
6469
+ reflect: true
6470
+ },
6471
+
6472
+ /**
6473
+ * Defines the value associated with the button which is submitted with the form data.
6474
+ */
6475
+ value: {
6476
+ type: String,
6477
+ reflect: true
6478
+ },
6479
+
6480
+ /**
6481
+ * Sets button variant option.
6482
+ * @default primary
6483
+ */
6484
+ variant: {
6485
+ type: String,
6486
+ reflect: true
6487
+ },
6488
+
6489
+ /**
6490
+ * @private
6491
+ */
6492
+ buttonHref: {
6493
+ type: String,
6494
+ },
6495
+
6496
+ /**
6497
+ * @private
6498
+ */
6499
+ buttonTarget: {
6500
+ type: String,
6501
+ },
6502
+
6503
+ /**
6504
+ * @private
6505
+ */
6506
+ buttonRel: {
6507
+ type: String,
6508
+ },
6509
+ };
6510
+ }
6511
+
6512
+ /**
6513
+ * This will register this element with the browser.
6514
+ * @param {string} [name="auro-button"] - The name of element that you want to register to.
6515
+ *
6516
+ * @example
6517
+ * AuroButton.register("custom-button") // this will register this element to <custom-button/>
6518
+ *
6519
+ */
6520
+ static register(name = "auro-button") {
6521
+ AuroLibraryRuntimeUtils$2.prototype.registerComponent(name, AuroButton);
6522
+ }
6523
+
6524
+ /**
6525
+ * Internal method to apply focus to the HTML5 button.
6526
+ * @private
6527
+ * @returns {void}
6528
+ */
6529
+ focus() {
6530
+ this.renderRoot.querySelector('button').focus();
6531
+ }
5348
6532
 
5349
6533
  /**
5350
- * 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.
5351
- * @param {Object} elem - The element to check.
5352
- * @param {String} tagName - The name of the Auro component to check for or add as an attribute.
6534
+ * Submits the form that this button is associated with.
6535
+ * @private
5353
6536
  * @returns {void}
5354
6537
  */
5355
- handleComponentTagRename(elem, tagName) {
5356
- const tag = tagName.toLowerCase();
5357
- const elemTag = elem.tagName.toLowerCase();
5358
-
5359
- if (elemTag !== tag) {
5360
- elem.setAttribute(tag, true);
6538
+ surfaceSubmitEvent() {
6539
+ if (this.form) {
6540
+ this.form.requestSubmit();
5361
6541
  }
5362
6542
  }
5363
6543
 
5364
6544
  /**
5365
- * Validates if an element is a specific Auro component.
5366
- * @param {Object} elem - The element to validate.
5367
- * @param {String} tagName - The name of the Auro component to check against.
5368
- * @returns {Boolean} - Returns true if the element is the specified Auro component.
6545
+ * Returns the form element that this button is associated with.
6546
+ * @private
6547
+ * @returns {HTMLFormElement | null}
5369
6548
  */
5370
- elementMatch(elem, tagName) {
5371
- const tag = tagName.toLowerCase();
5372
- const elemTag = elem.tagName.toLowerCase();
6549
+ get form() {
6550
+ return this.internals ? this.internals.form : null;
6551
+ }
5373
6552
 
5374
- return elemTag === tag || elem.hasAttribute(tag);
6553
+ /**
6554
+ * @private
6555
+ * @returns {Boolean}
6556
+ */
6557
+ get showText() {
6558
+ return !ICON_ONLY_SHAPES.includes(this.shape);
5375
6559
  }
5376
- };
5377
6560
 
5378
- // Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
5379
- // See LICENSE in the project root for license information.
6561
+ /**
6562
+ * Returns the current value of the projected `aria-label` attribute or undefined if not set.
6563
+ * @returns {string | undefined}
6564
+ * @private
6565
+ */
6566
+ get currentAriaLabel() {
6567
+ if (!this.attributeWatcher) return undefined;
5380
6568
 
6569
+ const ariaLabel = this.attributeWatcher.getObservedAttribute("aria-label");
6570
+ return ariaLabel || undefined;
6571
+ }
5381
6572
 
5382
- class AuroDependencyVersioning {
6573
+ /**
6574
+ * Returns the current value of the projected `aria-labelledby` attribute or undefined if not set.
6575
+ * @returns {string | undefined}
6576
+ * @private
6577
+ */
6578
+ get currentAriaLabelledBy() {
6579
+ if (!this.attributeWatcher) return undefined;
6580
+
6581
+ const ariaLabelledBy = this.attributeWatcher.getObservedAttribute("aria-labelledby");
6582
+ return ariaLabelledBy || undefined;
6583
+ }
5383
6584
 
5384
6585
  /**
5385
- * Generates a unique string to be used for child auro element naming.
6586
+ * Whether or not the button is set to an icon-only shape.
6587
+ * @returns {boolean} - True if the button is icon-only, false otherwise.
5386
6588
  * @private
5387
- * @param {string} baseName - Defines the first part of the unique element name.
5388
- * @param {string} version - Version of the component that will be appended to the baseName.
5389
- * @returns {string} - Unique string to be used for naming.
5390
6589
  */
5391
- generateElementName(baseName, version) {
5392
- let result = baseName;
6590
+ get iconOnly() {
6591
+ return ICON_ONLY_SHAPES.includes(this.shape);
6592
+ }
5393
6593
 
5394
- result += '-';
5395
- result += version.replace(/[.]/g, '_');
6594
+ /**
6595
+ * Gets a class name for the font size based on the button's size and shape.
6596
+ * @returns {string} - The font size class name.
6597
+ * @private
6598
+ */
6599
+ getFontSize() {
5396
6600
 
5397
- return result;
6601
+ // Size map for standard buttons
6602
+ const standardButtonSizeMap = {
6603
+ xs: 'body-xs',
6604
+ sm: 'body-sm',
6605
+ md: 'body-default',
6606
+ lg: 'body-lg',
6607
+ xl: 'body-lg'
6608
+ };
6609
+
6610
+ // Size map for icon-only buttons
6611
+ const iconOnlyButtonSizeMap = {
6612
+ xs: 'heading-xs',
6613
+ sm: 'heading-sm',
6614
+ md: 'heading-sm',
6615
+ lg: 'heading-md',
6616
+ xl: 'heading-lg'
6617
+ };
6618
+
6619
+ // Determine which map to use based on the shape
6620
+ const sizeMap = this.iconOnly ? iconOnlyButtonSizeMap : standardButtonSizeMap;
6621
+
6622
+ // Return the font size based on the button size and shape
6623
+ return sizeMap[this.size] || 'body-default';
5398
6624
  }
5399
6625
 
5400
6626
  /**
5401
- * Generates a unique string to be used for child auro element naming.
5402
- * @param {string} baseName - Defines the first part of the unique element name.
5403
- * @param {string} version - Version of the component that will be appended to the baseName.
5404
- * @returns {string} - Unique string to be used for naming.
6627
+ * Renders the default layout for the button.
6628
+ * @returns {TemplateResult}
6629
+ * @private
5405
6630
  */
5406
- generateTag(baseName, version, tagClass) {
5407
- const elementName = this.generateElementName(baseName, version);
5408
- const tag = i`${s(elementName)}`;
6631
+ renderLayoutDefault() {
5409
6632
 
5410
- if (!customElements.get(elementName)) {
5411
- customElements.define(elementName, class extends tagClass {});
5412
- }
6633
+ const fontSize = this.getFontSize();
6634
+ const tag = this.buttonHref ? i`a` : i`button`;
6635
+ const part = this.buttonHref ? 'link' : 'button';
5413
6636
 
5414
- return tag;
6637
+ const classes = {
6638
+ "auro-button": true,
6639
+ "inset": this.showText,
6640
+ wrapper: true,
6641
+ loading: this.loading,
6642
+ [`${fontSize}`]: true,
6643
+
6644
+ // These remove the default borders so we can handle focus borders ourselves
6645
+ 'simple': !['secondary'].includes(this.variant),
6646
+ 'thin': ['secondary'].includes(this.variant),
6647
+ };
6648
+
6649
+ const contentClasses = {
6650
+ "contentWrapper": true,
6651
+ "util_displayHiddenVisually": this.loading
6652
+ };
6653
+
6654
+ return u`
6655
+ <${tag}
6656
+ part="${part}"
6657
+ aria-label="${o(this.loading ? this.loadingText : this.currentAriaLabel || undefined)}"
6658
+ aria-labelledby="${o(this.loading ? undefined : this.currentAriaLabelledBy || undefined)}"
6659
+ tabindex="${o(this.tIndex || this.tabindex)}"
6660
+ ?autofocus="${this.autofocus}"
6661
+ class=${e(classes)}
6662
+ ?disabled="${this.disabled || this.loading}"
6663
+ ?onDark="${this.onDark}"
6664
+ title="${o(this.title ? this.title : undefined)}"
6665
+ name="${o(this.name ? this.name : undefined)}"
6666
+ type="${o(this.type ? this.type : undefined)}"
6667
+ variant="${o(this.variant ? this.variant : undefined)}"
6668
+ .value="${o(this.value ? this.value : undefined)}"
6669
+ @click="${this.type === 'submit' ? this.surfaceSubmitEvent : undefined}"
6670
+ href="${o(this.buttonHref || undefined)}"
6671
+ target="${o(this.buttonTarget || undefined)}"
6672
+ rel="${o(this.buttonRel || undefined)}"
6673
+ >
6674
+ ${o(this.loading ? u`<${this.loaderTag} pulse part="loader"></${this.loaderTag}>` : undefined)}
6675
+
6676
+ <span class="${e(contentClasses)}">
6677
+ <span class="textSlot" part="text">
6678
+ <slot></slot>
6679
+ </span>
6680
+ </span>
6681
+ </${tag}>
6682
+ `;
6683
+ }
6684
+
6685
+ /**
6686
+ * Renders the layout of the button.
6687
+ * @returns {TemplateResult}
6688
+ * @private
6689
+ */
6690
+ renderLayout() {
6691
+ return this.renderLayoutDefault();
5415
6692
  }
5416
6693
  }
5417
6694
 
6695
+ var buttonVersion = '11.3.0';
6696
+
5418
6697
  // Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
5419
6698
  // See LICENSE in the project root for license information.
5420
6699
 
@@ -5425,7 +6704,7 @@ class AuroDependencyVersioning {
5425
6704
  * @attr {Boolean} hiddenAudible - If present, the component will be hidden from screen readers, but seen visually
5426
6705
  */
5427
6706
 
5428
- let AuroElement$1 = class AuroElement extends i$2 {
6707
+ let AuroElement$2 = class AuroElement extends i$2 {
5429
6708
 
5430
6709
  // function to define props used within the scope of this component
5431
6710
  static get properties() {
@@ -5493,7 +6772,7 @@ var styleCss$1$1 = i$5`:focus:not(:focus-visible){outline:3px solid transparent}
5493
6772
  */
5494
6773
 
5495
6774
  // build the component class
5496
- let BaseIcon$1 = class BaseIcon extends AuroElement$1 {
6775
+ let BaseIcon$1 = class BaseIcon extends AuroElement$2 {
5497
6776
  constructor() {
5498
6777
  super();
5499
6778
  this.onDark = false;
@@ -5576,7 +6855,7 @@ var colorCss$4 = i$5`:host{color:var(--ds-auro-icon-color)}:host([customColor]){
5576
6855
 
5577
6856
  /* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
5578
6857
 
5579
- let AuroLibraryRuntimeUtils$2 = class AuroLibraryRuntimeUtils {
6858
+ let AuroLibraryRuntimeUtils$3 = class AuroLibraryRuntimeUtils {
5580
6859
 
5581
6860
  /* eslint-disable jsdoc/require-param */
5582
6861
 
@@ -5658,7 +6937,7 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
5658
6937
  */
5659
6938
  privateDefaults() {
5660
6939
  this.uri = 'https://cdn.jsdelivr.net/npm/@alaskaairux/icons@latest/dist';
5661
- this.runtimeUtils = new AuroLibraryRuntimeUtils$2();
6940
+ this.runtimeUtils = new AuroLibraryRuntimeUtils$3();
5662
6941
  }
5663
6942
 
5664
6943
  // function to define props used within the scope of this component
@@ -5740,7 +7019,7 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
5740
7019
  *
5741
7020
  */
5742
7021
  static register(name = "auro-icon") {
5743
- AuroLibraryRuntimeUtils$2.prototype.registerComponent(name, AuroIcon);
7022
+ AuroLibraryRuntimeUtils$3.prototype.registerComponent(name, AuroIcon);
5744
7023
  }
5745
7024
 
5746
7025
  connectedCallback() {
@@ -5761,8 +7040,12 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
5761
7040
  async firstUpdated() {
5762
7041
  await super.firstUpdated();
5763
7042
 
5764
- // Removes the SVG description for screenreader if ariaHidden is set to true
5765
- if (!this.hasAttribute('ariaHidden') && this.svg) {
7043
+ /**
7044
+ * icons provide a description for screen readers. Icon only instances Auro-button
7045
+ * depend on this description to provide context for the user using a screen reader.
7046
+ * Removes the SVG description for screen reader if ariaHidden is set to true.
7047
+ */
7048
+ if (this.hasAttribute('ariaHidden') && this.svg) {
5766
7049
  const svgDesc = this.svg.querySelector('desc');
5767
7050
 
5768
7051
  if (svgDesc) {
@@ -5806,9 +7089,9 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
5806
7089
  }
5807
7090
  };
5808
7091
 
5809
- var iconVersion$1 = '8.0.3';
7092
+ var iconVersion$1 = '8.1.0';
5810
7093
 
5811
- 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)}`;
7094
+ var styleCss$5 = 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)}: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)}`;
5812
7095
 
5813
7096
  // Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
5814
7097
  // See LICENSE in the project root for license information.
@@ -5818,13 +7101,12 @@ var styleCss$5 = i$5`.heading{margin:1.75rem 0;letter-spacing:var(--ds-text-head
5818
7101
  * The auro-header component is a custom element to make using headers with the Auro Design System seamless and easy.
5819
7102
  *
5820
7103
  * @attr {Boolean} no-margin-block - if declared, margin-block will be set to `0`
5821
- * @attr {String} level - Determines heading level for HTML element. Options are `1` - `6`
5822
- * @attr {String} display - Determines presentation of header. Options are `display`, `800`, `700`, `600`, `500`, `400`, `300`.
5823
7104
  * @attr {String} color - Allows user to pass in CSS custom property or direct hex value to change the color of the header
7105
+ * @attr {String} display - Determines the visual appearance of the header. Options are `display`, `800`, `700`, `600`, `500`, `400`, `300`.
7106
+ * @attr {String} level - Determines the semantic heading level of the HTML element. Options are `1` - `6`
5824
7107
  * @attr {String} margin - Specify the margin(s) to be altered. Options are `top`, `bottom`, or `both`.
5825
7108
  * @attr {String} size - Specify size of margin adjustment, either `none`, `25`, `50`, `100`, `150`, `200`, `300`, `400`, `600` or `800`.
5826
7109
  */
5827
-
5828
7110
  /* eslint complexity: ["error", 21] */
5829
7111
 
5830
7112
  // build the component class
@@ -5837,7 +7119,7 @@ class AuroHeader extends i$2 {
5837
7119
  /**
5838
7120
  * @private
5839
7121
  */
5840
- this.runtimeUtils = new AuroLibraryRuntimeUtils$1$1();
7122
+ this.runtimeUtils = new AuroLibraryRuntimeUtils$2();
5841
7123
  }
5842
7124
 
5843
7125
  // function to define props used within the scope of this component
@@ -5858,6 +7140,22 @@ class AuroHeader extends i$2 {
5858
7140
  return [styleCss$5];
5859
7141
  }
5860
7142
 
7143
+ /**
7144
+ * Mapping of display values to their corresponding CSS classes
7145
+ * @private
7146
+ */
7147
+ static get displayClassMap() {
7148
+ return {
7149
+ 'display': 'heading-xl',
7150
+ '800': 'heading-xl',
7151
+ '700': 'heading-lg',
7152
+ '600': 'heading-md',
7153
+ '500': 'heading-sm',
7154
+ '400': 'heading-xs',
7155
+ '300': 'heading-2xs'
7156
+ };
7157
+ }
7158
+
5861
7159
  /**
5862
7160
  * This will register this element with the browser.
5863
7161
  * @param {string} [name="auro-header"] - The name of element that you want to register to.
@@ -5867,7 +7165,7 @@ class AuroHeader extends i$2 {
5867
7165
  *
5868
7166
  */
5869
7167
  static register(name = "auro-header") {
5870
- AuroLibraryRuntimeUtils$1$1.prototype.registerComponent(name, AuroHeader);
7168
+ AuroLibraryRuntimeUtils$2.prototype.registerComponent(name, AuroHeader);
5871
7169
  }
5872
7170
 
5873
7171
  firstUpdated() {
@@ -5934,23 +7232,42 @@ class AuroHeader extends i$2 {
5934
7232
  this.display = 'display';
5935
7233
  }
5936
7234
 
5937
- switch (level) {
5938
- case '2': return x`<h2 class="heading heading--${this.display} ${this.spacingDecision(this.size)}" style="color: ${o(this.color ? this.color : undefined)}"><slot></slot></h2>`;
5939
- case '3': return x`<h3 class="heading heading--${this.display} ${this.spacingDecision(this.size)}" style="color: ${o(this.color ? this.color : undefined)}"><slot></slot></h3>`;
5940
- case '4': return x`<h4 class="heading heading--${this.display} ${this.spacingDecision(this.size)}" style="color: ${o(this.color ? this.color : undefined)}"><slot></slot></h4>`;
5941
- case '5': return x`<h5 class="heading heading--${this.display} ${this.spacingDecision(this.size)}" style="color: ${o(this.color ? this.color : undefined)}"><slot></slot></h5>`;
5942
- case '6': return x`<h6 class="heading heading--${this.display} ${this.spacingDecision(this.size)}" style="color: ${o(this.color ? this.color : undefined)}"><slot></slot></h6>`;
5943
- default: return x`<h1 class="heading heading--${this.display} ${this.spacingDecision(this.size)}" style="color: ${o(this.color ? this.color : undefined)}"><slot></slot></h1>`;
7235
+ const headingLevel = level || '1';
7236
+ const spacingClasses = this.spacingDecision(this.size);
7237
+
7238
+ // Get the CSS class based on the display prop
7239
+ const headingClass = AuroHeader.displayClassMap[this.display];
7240
+
7241
+ const classObject = {
7242
+ 'heading': true,
7243
+ [`heading--${this.display}`]: true,
7244
+ [headingClass]: true
7245
+ };
7246
+
7247
+ // Add spacing classes to the class object if they exist
7248
+ if (spacingClasses) {
7249
+ const spacingClassArray = spacingClasses.split(' ');
7250
+ spacingClassArray.forEach(cls => {
7251
+ if (cls.trim()) {
7252
+ classObject[cls.trim()] = true;
7253
+ }
7254
+ });
5944
7255
  }
7256
+
7257
+ const headerClasses = e(classObject);
7258
+
7259
+ // unsafeStatic dynamically creates tag names at runtime
7260
+ const tag = s(`h${headingLevel}`);
7261
+ return u`<${tag} class="${headerClasses}" style="color: ${o(this.color ? this.color : undefined)}"><slot></slot></${tag}>`;
5945
7262
  }
7263
+
5946
7264
  // function that renders the HTML and CSS into the scope of the component
5947
-
5948
7265
  render() {
5949
7266
  return this.template(this.level);
5950
7267
  }
5951
7268
  }
5952
7269
 
5953
- var headerVersion = '4.0.1';
7270
+ var headerVersion = '4.0.2';
5954
7271
 
5955
7272
  // Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
5956
7273
  // See LICENSE in the project root for license information.
@@ -5963,17 +7280,30 @@ class AuroBibtemplate extends i$2 {
5963
7280
 
5964
7281
  this.large = false;
5965
7282
 
5966
- AuroLibraryRuntimeUtils$1$1.prototype.handleComponentTagRename(this, 'auro-bibtemplate');
7283
+ AuroLibraryRuntimeUtils$2.prototype.handleComponentTagRename(this, 'auro-bibtemplate');
5967
7284
 
5968
7285
  const versioning = new AuroDependencyVersioning();
7286
+
7287
+ /**
7288
+ * @private
7289
+ */
5969
7290
  this.iconTag = versioning.generateTag('auro-formkit-bibtemplate-icon', iconVersion$1, AuroIcon$1);
7291
+
7292
+ /**
7293
+ * @private
7294
+ */
5970
7295
  this.headerTag = versioning.generateTag('auro-formkit-bibtemplate-header', headerVersion, AuroHeader);
7296
+
7297
+ /**
7298
+ * @private
7299
+ */
7300
+ this.buttonTag = versioning.generateTag('auro-formkit-bibtemplate-button', buttonVersion, AuroButton);
5971
7301
  }
5972
7302
 
5973
7303
  static get styles() {
5974
7304
  return [
5975
- colorCss$1$1,
5976
- styleCss$2$1,
7305
+ colorCss$3$1,
7306
+ styleCss$4$1,
5977
7307
  tokenCss
5978
7308
  ];
5979
7309
  }
@@ -6002,7 +7332,7 @@ class AuroBibtemplate extends i$2 {
6002
7332
  *
6003
7333
  */
6004
7334
  static register(name = "auro-bibtemplate") {
6005
- AuroLibraryRuntimeUtils$1$1.prototype.registerComponent(name, AuroBibtemplate);
7335
+ AuroLibraryRuntimeUtils$2.prototype.registerComponent(name, AuroBibtemplate);
6006
7336
  }
6007
7337
 
6008
7338
  /**
@@ -6060,13 +7390,16 @@ class AuroBibtemplate extends i$2 {
6060
7390
  <div id="bibTemplate" part="bibtemplate">
6061
7391
  ${this.isFullscreen ? u`
6062
7392
  <div id="headerContainer">
6063
- <button id="closeButton" @click="${this.onCloseButtonClick}">
6064
- <${this.iconTag} category="interface" name="x-lg"></${this.iconTag}>
6065
- </button>
6066
- <${this.headerTag} display="${this.large ? 'display' : '600'}" level="3" size="none" id="header" no-margin-block>
6067
- <slot name="header"></slot>
6068
- </${this.headerTag}>
6069
- <span id="subheader">
7393
+ <div class="titleRow">
7394
+ <${this.headerTag} class="header" display="${this.large ? 'display' : '600'}" level="3" size="none" id="header" no-margin-block>
7395
+ <slot name="header"></slot>
7396
+ </${this.headerTag}>
7397
+ <${this.buttonTag} id="closeButton" variant="ghost" shape="circle" size="sm" @click="${this.onCloseButtonClick}">
7398
+ <span><slot name="ariaLabel.close">Close</slot></span>
7399
+ <${this.iconTag} aria-hidden="true" category="interface" name="x-lg"></${this.iconTag}>
7400
+ </${this.buttonTag}>
7401
+ </div>
7402
+ <span class="subheader">
6070
7403
  <slot name="subheader"></slot>
6071
7404
  </span>
6072
7405
  </div>` : null}
@@ -6086,9 +7419,9 @@ class AuroBibtemplate extends i$2 {
6086
7419
 
6087
7420
  var bibTemplateVersion = '1.0.0';
6088
7421
 
6089
- 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)}`;
7422
+ 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)}`;
6090
7423
 
6091
- 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}`;
7424
+ var styleCss$4 = 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-2xl,.accent-xl{text-transform:uppercase}.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-lg,.accent-md{text-transform:uppercase}.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-sm,.accent-xs{text-transform:uppercase}.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);text-transform:uppercase}:host{position:relative;display:block}.helptext-wrapper{display:none}.helptext-wrapper[visible]{display:block}::slotted(*:not(:empty)){margin-top:var(--ds-size-50, 0.25rem);margin-bottom:0}::slotted(p){margin-block:0}`;
6092
7425
 
6093
7426
  var tokensCss$2 = i$5`:host{--ds-auro-helptext-color: var(--ds-basic-color-texticon-muted, #676767)}`;
6094
7427
 
@@ -6168,8 +7501,6 @@ let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
6168
7501
 
6169
7502
  /**
6170
7503
  * Displays help text or error messages within form elements - Internal Use Only.
6171
- *
6172
- * @attr { Boolean } large - If declared, make font-size to 1rem(16px).
6173
7504
  */
6174
7505
  class AuroHelpText extends i$2 {
6175
7506
 
@@ -6285,7 +7616,7 @@ class AuroHelpText extends i$2 {
6285
7616
  // function that renders the HTML and CSS into the scope of the component
6286
7617
  render() {
6287
7618
  return x`
6288
- <div class="helptext-wrapper" ?visible="${this.hasTextContent}">
7619
+ <div class="helptext-wrapper body-xs" ?visible="${this.hasTextContent}">
6289
7620
  <slot @slotchange=${this.handleSlotChange}></slot>
6290
7621
  </div>
6291
7622
  `;
@@ -6294,68 +7625,7 @@ class AuroHelpText extends i$2 {
6294
7625
 
6295
7626
  var helpTextVersion = '1.0.0';
6296
7627
 
6297
- 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)}`;
6298
-
6299
- 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)}`;
6300
-
6301
- 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)}`;
6302
-
6303
- // Copyright (c) 2021 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
6304
- // See LICENSE in the project root for license information.
6305
-
6306
- // ---------------------------------------------------------------------
6307
-
6308
- /**
6309
- * Converts value to an array.
6310
- * If the value is a JSON string representing an array, it will be parsed.
6311
- * If the value is already an array, it is returned.
6312
- * If the value is undefined, it returns undefined.
6313
- * @private
6314
- * @param {any} value - The value to be converted. Can be a string, array, or undefined.
6315
- * @returns {Array|undefined} - The converted array or undefined.
6316
- * @throws {Error} - Throws an error if the value is not an array, undefined,
6317
- * or if the value cannot be parsed into an array from a JSON string.
6318
- */
6319
- function arrayConverter(value) {
6320
- // Allow undefined
6321
- if (value === undefined) {
6322
- return undefined;
6323
- }
6324
-
6325
- // Return the value if it is already an array
6326
- if (Array.isArray(value)) {
6327
- return value;
6328
- }
6329
-
6330
- try {
6331
- // If value is a JSON string, parse it
6332
- const parsed = typeof value === 'string' ? JSON.parse(value) : value;
6333
-
6334
- // Check if the parsed value is an array
6335
- if (Array.isArray(parsed)) {
6336
- return parsed;
6337
- }
6338
- } catch (error) {
6339
- // If JSON parsing fails, continue to throw an error below
6340
- /* eslint-disable no-console */
6341
- console.error('JSON parsing failed:', error);
6342
- }
6343
-
6344
- // Throw error if the input is not an array or undefined
6345
- throw new Error('Invalid value: Input must be an array or undefined');
6346
- }
6347
-
6348
- 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}`;
6349
-
6350
- 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)}`;
6351
-
6352
- 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}`;
6353
-
6354
- 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)}`;
6355
-
6356
- 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)}`;
6357
-
6358
- 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}.layout-emphasized .triggerContent,.layout-snowflake .triggerContent{display:flex;align-items:center;justify-content:center;width:100%;padding:0 8px 0 24px}.layout-classic .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}`;
7628
+ 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}.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-2xl,.accent-xl{text-transform:uppercase}.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-lg,.accent-md{text-transform:uppercase}.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-sm,.accent-xs{text-transform:uppercase}.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);text-transform:uppercase}[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{display:inline-block}:host([layout*=emphasized]) [auro-dropdown],:host([layout*=snowflake]) [auro-dropdown]{--ds-auro-select-border-color: transparent}:host([layout*=emphasized]) .mainContent,:host([layout*=snowflake]) .mainContent{text-align:center}.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*=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;text-overflow:ellipsis;white-space:nowrap}:host([layout*=classic]) .value{height:auto}label{color:var(--ds-auro-select-label-text-color)}: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([fluid]){width:100%}: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}`;
6359
7629
 
6360
7630
  // Copyright (c) 2021 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
6361
7631
  // See LICENSE in the project root for license information.
@@ -6366,19 +7636,25 @@ var styleCss$3 = i$5`.util_displayInline{display:inline}.util_displayInlineBlock
6366
7636
  * The auro-select element is a wrapper for auro-dropdown and auro-menu to create a dropdown menu control.
6367
7637
  *
6368
7638
  * @slot - Default slot for the menu content.
7639
+ * @slot ariaLabel.bib.close - Sets aria-label on close button in fullscreen bib
6369
7640
  * @slot bib.fullscreen.headline - Defines the headline to display above menu-options
6370
7641
  * @slot label - Defines the content of the label.
7642
+ * @slot {HTMLSlotElement} optionalLabel - Allows overriding the optional display text "(optional)", which appears next to the label.
6371
7643
  * @slot helpText - Defines the content of the helpText.
6372
- * @slot placeholder - Defines the content of the placeholder to be shown when there is no value
6373
7644
  * @slot valueText - Dropdown value text display.
7645
+ * @slot displayValue - Allows custom HTML content to display the selected value when select is not focused.
6374
7646
  * @event auroSelect-valueSet - Notifies that the component has a new value set.
6375
7647
  * @event input - Notifies every time the value prop of the element is changed. The updated `value` and `optionSelected` will be delivered in `detail` object.
6376
7648
  * @event auroFormElement-validated - Notifies that the `validity` and `errorMessage` values have changed.
7649
+ *
7650
+ * @csspart dropdownTrigger - Apply CSS to the trigger content container.
7651
+ * @csspart dropdownChevron - Apply CSS to the collapsed/expanded state icon container.
7652
+ * @csspart dropdownSize - Apply size styles to the dropdown bib. (height, width, maxHeight, maxWidth only)
6377
7653
  * @csspart helpText - Apply CSS to the help text.
6378
7654
  */
6379
7655
 
6380
7656
  // build the component class
6381
- class AuroSelect extends AuroElement$3 {
7657
+ class AuroSelect extends AuroElement$4 {
6382
7658
  constructor() {
6383
7659
  super();
6384
7660
 
@@ -6388,12 +7664,7 @@ class AuroSelect extends AuroElement$3 {
6388
7664
  const idSubstrEnd = 8;
6389
7665
  const idSubstrStart = 2;
6390
7666
 
6391
- this.matchWidth = true;
6392
-
6393
- // Layout Config
6394
- this.layout = 'classic';
6395
- this.shape = 'classic';
6396
- this.size = 'xl';
7667
+ this.matchWidth = false;
6397
7668
 
6398
7669
  // floaterConfig
6399
7670
  this.placement = 'bottom-start';
@@ -6418,7 +7689,7 @@ class AuroSelect extends AuroElement$3 {
6418
7689
  /**
6419
7690
  * @private
6420
7691
  */
6421
- this.runtimeUtils = new AuroLibraryRuntimeUtils$4();
7692
+ this.runtimeUtils = new AuroLibraryRuntimeUtils$5();
6422
7693
 
6423
7694
  /**
6424
7695
  * Generate unique names for dependency components.
@@ -6468,6 +7739,11 @@ class AuroSelect extends AuroElement$3 {
6468
7739
  this.fullscreenBreakpoint = 'sm';
6469
7740
  this.onDark = false;
6470
7741
  this.isPopoverVisible = false;
7742
+
7743
+ // Layout Config
7744
+ this.layout = 'classic';
7745
+ this.shape = 'classic';
7746
+ this.size = 'lg';
6471
7747
  }
6472
7748
 
6473
7749
  // This function is to define props used within the scope of this component
@@ -6509,6 +7785,14 @@ class AuroSelect extends AuroElement$3 {
6509
7785
  reflect: true
6510
7786
  },
6511
7787
 
7788
+ /**
7789
+ * When attribute is present, element will be 100% width of container element.
7790
+ */
7791
+ fluid: {
7792
+ type: Boolean,
7793
+ reflect: true
7794
+ },
7795
+
6512
7796
  /**
6513
7797
  * @private
6514
7798
  */
@@ -6533,14 +7817,6 @@ class AuroSelect extends AuroElement$3 {
6533
7817
  reflect: true
6534
7818
  },
6535
7819
 
6536
- /**
6537
- * If set, makes dropdown width match the size of the content, rather than the width of the trigger.
6538
- */
6539
- flexMenuWidth: {
6540
- type: Boolean,
6541
- reflect: true
6542
- },
6543
-
6544
7820
  /**
6545
7821
  * Defines the screen size breakpoint (`xs`, `sm`, `md`, `lg`, `xl`, `disabled`)
6546
7822
  * at which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.
@@ -6634,7 +7910,7 @@ class AuroSelect extends AuroElement$3 {
6634
7910
  * "top" | "right" | "bottom" | "left" |
6635
7911
  * "bottom-start" | "top-start" | "top-end" |
6636
7912
  * "right-start" | "right-end" | "bottom-end" |
6637
- * "left-start" | "left-end"
7913
+ * "left-start" | "left-end".
6638
7914
  * @default bottom-start
6639
7915
  */
6640
7916
  placement: {
@@ -6642,6 +7918,14 @@ class AuroSelect extends AuroElement$3 {
6642
7918
  reflect: true
6643
7919
  },
6644
7920
 
7921
+ /**
7922
+ * Define custom placeholder text.
7923
+ */
7924
+ placeholder: {
7925
+ type: String,
7926
+ reflect: true
7927
+ },
7928
+
6645
7929
  /**
6646
7930
  * Populates the `required` attribute on the element. Used for client-side validation.
6647
7931
  */
@@ -6688,11 +7972,12 @@ class AuroSelect extends AuroElement$3 {
6688
7972
  },
6689
7973
 
6690
7974
  /**
6691
- * Value selected for the component. Default type is `String`, changing to `Array<String>` when `multiSelect` is true.
6692
- * @type {String|Array<String>}
7975
+ * Value selected for the component.
6693
7976
  */
6694
7977
  value: {
6695
- type: Object
7978
+ type: String,
7979
+ reflect: true,
7980
+ attribute: 'value'
6696
7981
  },
6697
7982
 
6698
7983
  /**
@@ -6745,14 +8030,76 @@ class AuroSelect extends AuroElement$3 {
6745
8030
  }
6746
8031
 
6747
8032
  /**
6748
- * Returns classmap configuration for wrapper elements in each layout.
8033
+ * Formatted value based on `multiSelect` state.
8034
+ * Default type is `String`, changing to `Array<String>` when `multiSelect` is true.
6749
8035
  * @private
6750
- * @return {object} - Returns classmap.
8036
+ * @returns {String|Array<String>}
6751
8037
  */
6752
- get commonWrapperClasses() {
6753
- return {
6754
- 'wrapper': true
8038
+ get formattedValue() {
8039
+ if (this.multiSelect) {
8040
+ if (!this.value) {
8041
+ return undefined;
8042
+ }
8043
+ if (this.value.startsWith("[")) {
8044
+ return JSON.parse(this.value);
8045
+ }
8046
+ return [this.value];
8047
+ }
8048
+ return this.value;
8049
+ }
8050
+
8051
+ /**
8052
+ * Returns classmap configuration for html5 input labels in all layouts.
8053
+ * @private
8054
+ * @returns {Record<string, boolean>}
8055
+ */
8056
+ get commonLabelClasses() {
8057
+ const obj = {
8058
+ 'is-disabled': this.disabled,
8059
+ 'withValue': false,
8060
+ 'util_displayHiddenVisually': this.hasDisplayValueContent && !this.hasFocus && this.value && this.value.length > 0,
8061
+ [this.labelFontClass]: true
6755
8062
  };
8063
+
8064
+ if (this.placeholder) {
8065
+ obj.withValue = true;
8066
+ } else if (this.optionSelected) {
8067
+ if (Array.isArray(this.optionSelected)) {
8068
+ obj.withValue = this.optionSelected.length > 0;
8069
+ } else {
8070
+ obj.withValue = true;
8071
+ }
8072
+ }
8073
+ return obj;
8074
+ }
8075
+
8076
+ /**
8077
+ * Returns the label font class based on layout and selection state.
8078
+ * @private
8079
+ * @returns {string} - The font class for the label.
8080
+ */
8081
+ get labelFontClass() {
8082
+ const isSelected = this.hasValue;
8083
+
8084
+ if (this.layout.startsWith('emphasized')) {
8085
+ return isSelected ? 'body-sm' : 'accent-xl';
8086
+ }
8087
+
8088
+ if (this.layout === 'snowflake') {
8089
+ return isSelected ? 'body-xs' : 'body-lg';
8090
+ }
8091
+
8092
+ // classic layout (default)
8093
+ return isSelected ? 'body-xs' : 'body-default';
8094
+ }
8095
+
8096
+ /**
8097
+ * Whether or not the component has a value.
8098
+ * @returns {boolean} - Returns true if the component has a value or placeholder.
8099
+ * @private
8100
+ */
8101
+ get hasValue() {
8102
+ return this.placeholder || (this.value && this.value.length > 0); // eslint-disable-line no-extra-parens
6756
8103
  }
6757
8104
 
6758
8105
  /**
@@ -6765,10 +8112,30 @@ class AuroSelect extends AuroElement$3 {
6765
8112
 
6766
8113
  this.dropdown.addEventListener('auroDropdown-toggled', () => {
6767
8114
  this.isPopoverVisible = this.dropdown.isPopoverVisible;
8115
+
8116
+ if (this.dropdown.isPopoverVisible) {
8117
+ this.updateMenuShapeSize();
8118
+ // wait til the bib gets fully rendered
8119
+ setTimeout(() => {
8120
+ if (this.dropdown.isBibFullscreen) {
8121
+ // trigger holds the focus since menu is not a focusable element.
8122
+ this.dropdown.trigger.focus();
8123
+
8124
+ // default focus indicator on the first menu option
8125
+ if (this.menu.index < 0) {
8126
+ this.menu.navigateOptions('down');
8127
+ }
8128
+ }
8129
+ });
8130
+ }
8131
+ });
8132
+
8133
+ this.dropdown.addEventListener('auroDropdown-strategy-change', () => {
8134
+ this.updateMenuShapeSize();
6768
8135
  });
6769
8136
 
6770
8137
  // setting up bibtemplate
6771
- this.bibtemplate = this.dropdown.querySelector(this.bibtemplateTag._$litStatic$); // eslint-disable-line no-underscore-dangle
8138
+ this.bibtemplate = this.dropdown.querySelector(this.bibtemplateTag._$litStatic$);
6772
8139
 
6773
8140
  if (this.customBibWidth) {
6774
8141
  this.dropdown.dropdownWidth = this.customBibWidth;
@@ -6787,7 +8154,7 @@ class AuroSelect extends AuroElement$3 {
6787
8154
  *
6788
8155
  */
6789
8156
  static register(name = "auro-select") {
6790
- AuroLibraryRuntimeUtils$4.prototype.registerComponent(name, AuroSelect);
8157
+ AuroLibraryRuntimeUtils$5.prototype.registerComponent(name, AuroSelect);
6791
8158
  }
6792
8159
 
6793
8160
  /**
@@ -6831,6 +8198,30 @@ class AuroSelect extends AuroElement$3 {
6831
8198
  this.dropdown.requestUpdate();
6832
8199
  }
6833
8200
 
8201
+ /**
8202
+ * Update menu to default for fullscreen bib, otherwise to this.size and this.shape.
8203
+ * @private
8204
+ */
8205
+ updateMenuShapeSize() {
8206
+ if (!this.menu) {
8207
+ return;
8208
+ }
8209
+
8210
+ if (this.dropdown && this.dropdown.isBibFullscreen) {
8211
+ this.menu.setAttribute('size', 'md');
8212
+ this.menu.setAttribute('shape', 'box');
8213
+ } else {
8214
+ // set menu's default size if there it's not specified.
8215
+ if (!this.menu.getAttribute('size')) {
8216
+ this.menu.setAttribute('size', this.layout !== 'emphasized' ? 'md' : this.size);
8217
+ }
8218
+
8219
+ if (!this.getAttribute('shape')) {
8220
+ this.menu.setAttribute('shape', this.layout === 'classic' ? 'box' : this.shape);
8221
+ }
8222
+ }
8223
+ }
8224
+
6834
8225
  /**
6835
8226
  * Binds all behavior needed to the menu after rendering.
6836
8227
  * @private
@@ -6847,6 +8238,8 @@ class AuroSelect extends AuroElement$3 {
6847
8238
  return;
6848
8239
  }
6849
8240
 
8241
+ this.updateMenuShapeSize();
8242
+
6850
8243
  if (this.multiSelect) {
6851
8244
  this.menu.multiSelect = this.multiSelect;
6852
8245
  }
@@ -6884,7 +8277,7 @@ class AuroSelect extends AuroElement$3 {
6884
8277
 
6885
8278
  this.menu.addEventListener('auroMenu-selectValueReset', () => {
6886
8279
  this.optionSelected = this.menu.optionSelected;
6887
- this.validation.validate(this);
8280
+ this.validate(this);
6888
8281
  });
6889
8282
 
6890
8283
  this.menu.addEventListener('auroMenu-activatedOption', (evt) => {
@@ -6906,46 +8299,58 @@ class AuroSelect extends AuroElement$3 {
6906
8299
  configureSelect() {
6907
8300
 
6908
8301
  this.addEventListener('keydown', (evt) => {
6909
- if (evt.key === 'ArrowUp') {
6910
- evt.preventDefault();
6911
-
6912
- this.dropdown.show();
8302
+ // when the focus is on trigger not on close button
8303
+ if (this.dropdown.shadowRoot.activeElement === this.dropdown.trigger) {
8304
+ if (evt.key === 'ArrowUp') {
8305
+ evt.preventDefault();
6913
8306
 
6914
- if (this.dropdown.isPopoverVisible) {
6915
- this.menu.navigateOptions('up');
6916
- }
8307
+ this.dropdown.show();
6917
8308
 
6918
- return;
6919
- }
8309
+ if (this.dropdown.isPopoverVisible) {
8310
+ this.menu.navigateOptions('up');
8311
+ }
6920
8312
 
6921
- if (evt.key === 'ArrowDown') {
6922
- evt.preventDefault();
8313
+ return;
8314
+ }
6923
8315
 
6924
- this.dropdown.show();
8316
+ if (evt.key === 'ArrowDown') {
8317
+ evt.preventDefault();
6925
8318
 
6926
- if (this.dropdown.isPopoverVisible) {
6927
- this.menu.navigateOptions('down');
6928
- }
8319
+ this.dropdown.show();
6929
8320
 
6930
- return;
6931
- }
8321
+ if (this.dropdown.isPopoverVisible) {
8322
+ this.menu.navigateOptions('down');
8323
+ }
6932
8324
 
6933
- if (evt.key === 'Enter') {
6934
- if (!this.dropdown.isPopoverVisible) {
6935
- evt.preventDefault();
6936
- this.menu.makeSelection();
8325
+ return;
6937
8326
  }
6938
8327
 
6939
- return;
8328
+ if (evt.key === 'Enter') {
8329
+ if (!this.dropdown.isPopoverVisible) {
8330
+ evt.preventDefault();
8331
+ this.menu.makeSelection();
8332
+ }
8333
+
8334
+ return;
8335
+ }
6940
8336
  }
6941
8337
 
6942
- if (evt.key === 'Tab') {
8338
+ if (evt.key === 'Tab' && this.dropdown.isPopoverVisible) {
6943
8339
  if (this.dropdown.isBibFullscreen) {
6944
8340
  evt.preventDefault();
8341
+
8342
+ // when the focus is on trigger not on close button
8343
+ if (this.dropdown.shadowRoot.activeElement === this.dropdown.trigger) {
8344
+ // `dropdown.focus` will move focus to the first focusable element in bib when it's open,
8345
+ // when bib it not open, it will focus onto trigger.
8346
+ this.dropdown.focus();
8347
+ } else {
8348
+ // when close button has the focus, move focus back to the trigger
8349
+ this.dropdown.trigger.focus();
8350
+ }
6945
8351
  } else {
6946
8352
  this.dropdown.hide();
6947
8353
  }
6948
-
6949
8354
  return;
6950
8355
  }
6951
8356
 
@@ -6956,7 +8361,7 @@ class AuroSelect extends AuroElement$3 {
6956
8361
  this.addEventListener('focusin', this.handleFocusin);
6957
8362
 
6958
8363
  this.addEventListener('blur', () => {
6959
- this.validation.validate(this);
8364
+ this.validate();
6960
8365
  this.hasFocus = false;
6961
8366
  });
6962
8367
  }
@@ -7026,6 +8431,26 @@ class AuroSelect extends AuroElement$3 {
7026
8431
  }
7027
8432
  }
7028
8433
 
8434
+ /**
8435
+ * Hides the dropdown bib if its open.
8436
+ * @returns {void}
8437
+ */
8438
+ hideBib() {
8439
+ if (this.dropdown && this.dropdown.isPopoverVisible) {
8440
+ this.dropdown.hide();
8441
+ }
8442
+ }
8443
+
8444
+ /**
8445
+ * Shows the dropdown bib if there are options to show.
8446
+ * @returns {void}
8447
+ */
8448
+ showBib() {
8449
+ if (this.dropdown && !this.dropdown.isPopoverVisible) {
8450
+ this.dropdown.show();
8451
+ }
8452
+ }
8453
+
7029
8454
  /**
7030
8455
  * Function to support @focusin event.
7031
8456
  * @private
@@ -7110,38 +8535,47 @@ class AuroSelect extends AuroElement$3 {
7110
8535
  // Add the tag name as an attribute if it is different than the component name
7111
8536
  this.runtimeUtils.handleComponentTagRename(this, 'auro-select');
7112
8537
 
7113
- this.configureMenu();
7114
8538
  this.configureDropdown();
8539
+ this.configureMenu();
7115
8540
  this.configureSelect();
8541
+ }
8542
+
8543
+ /**
8544
+ * Update the menu value. With checks for menu existence. Awaits value update.
8545
+ * @param {string} value - The value to set in the menu.
8546
+ * @returns {void}
8547
+ * @private
8548
+ */
8549
+ async updateMenuValue(value) {
8550
+ if (!this.menu) return;
7116
8551
 
7117
- // Set the initial value in auro-menu if defined
7118
- if (this.hasAttribute('value') && this.getAttribute('value').length > 0) {
7119
- this.value = this.multiSelect ? arrayConverter(this.getAttribute('value')) : this.getAttribute('value');
7120
- this.menu.value = this.value;
8552
+ this.menu.setAttribute('value', value);
8553
+ if (value) {
8554
+ this.menu.value = value;
8555
+ } else {
8556
+ this.menu.reset();
7121
8557
  }
8558
+ await this.menu.updateComplete;
7122
8559
  }
7123
8560
 
7124
8561
  async updated(changedProperties) {
7125
- if (changedProperties.has('multiSelect')) {
8562
+ if (changedProperties.has('multiSelect') && !changedProperties.has('value')) {
7126
8563
  this.clearSelection();
7127
8564
  }
7128
8565
 
7129
8566
  if (changedProperties.has('value')) {
7130
8567
  if (this.value) {
7131
- this.value = this.multiSelect ? arrayConverter(this.value) : this.value;
8568
+ await this.updateMenuValue(this.value);
7132
8569
 
7133
- this.menu.value = this.value;
7134
-
7135
- // Wait for menu to finish updating its value
7136
- await this.menu.updateComplete;
7137
-
7138
- this.optionSelected = this.menu.optionSelected;
8570
+ if (this.menu) {
8571
+ this.optionSelected = this.menu.optionSelected;
8572
+ }
7139
8573
  } else {
7140
- this.menu.value = undefined;
8574
+ await this.updateMenuValue(undefined);
7141
8575
  }
7142
8576
 
7143
8577
  this._updateNativeSelect();
7144
- this.validation.validate(this);
8578
+ this.validate();
7145
8579
 
7146
8580
  // LEGACY EVENT
7147
8581
  this.dispatchEvent(new CustomEvent('auroSelect-valueSet', {
@@ -7156,7 +8590,7 @@ class AuroSelect extends AuroElement$3 {
7156
8590
  composed: true,
7157
8591
  detail: {
7158
8592
  optionSelected: this.optionSelected,
7159
- value: this.value
8593
+ value: this.formattedValue
7160
8594
  }
7161
8595
  }));
7162
8596
  }
@@ -7168,6 +8602,14 @@ class AuroSelect extends AuroElement$3 {
7168
8602
  if (changedProperties.has('error')) {
7169
8603
  this.validate(true);
7170
8604
  }
8605
+
8606
+ if (changedProperties.has('shape') && this.menu) {
8607
+ this.menu.setAttribute('shape', this.layout === 'classic' ? 'box' : this.shape);
8608
+ }
8609
+
8610
+ if (changedProperties.has('size') && this.menu) {
8611
+ this.menu.setAttribute('size', this.layout !== 'emphasized' ? 'md' : this.size);
8612
+ }
7171
8613
  }
7172
8614
 
7173
8615
  /**
@@ -7178,16 +8620,6 @@ class AuroSelect extends AuroElement$3 {
7178
8620
  this.validation.reset(this);
7179
8621
  }
7180
8622
 
7181
- /**
7182
- * Hide dropdownbib.
7183
- * @private
7184
- */
7185
- hideBib() {
7186
- if (this.dropdown) {
7187
- this.dropdown.hide();
7188
- }
7189
- }
7190
-
7191
8623
  /**
7192
8624
  * Validates value.
7193
8625
  * @param {boolean} [force=false] - Whether to force validation.
@@ -7207,13 +8639,13 @@ class AuroSelect extends AuroElement$3 {
7207
8639
  const selectedValue = selectedOption.value;
7208
8640
 
7209
8641
  if (this.multiSelect) {
7210
- const currentArray = Array.isArray(this.value) ? this.value : [];
8642
+ const currentArray = this.formattedValue;
7211
8643
 
7212
8644
  if (!currentArray.includes(selectedValue)) {
7213
- this.value = [
8645
+ this.value = JSON.stringify([
7214
8646
  ...currentArray,
7215
8647
  selectedValue
7216
- ];
8648
+ ]);
7217
8649
  }
7218
8650
  } else {
7219
8651
  const currentValue = this.value;
@@ -7236,12 +8668,17 @@ class AuroSelect extends AuroElement$3 {
7236
8668
  }
7237
8669
 
7238
8670
  if (this.multiSelect) {
7239
- nativeSelect.value = this.value ? this.value[0] : '';
8671
+ nativeSelect.value = this.multiSelect ? this.multiSelect[0] : '';
7240
8672
  } else {
7241
8673
  nativeSelect.value = this.value || '';
7242
8674
  }
7243
8675
  }
7244
8676
 
8677
+ /**
8678
+ * Returns HTML for the hidden a11y screen reader content.
8679
+ * @private
8680
+ * @returns {html} - Returns HTML for the hidden a11y screen reader content.
8681
+ */
7245
8682
  renderAriaHtml() {
7246
8683
  return u`
7247
8684
  <div aria-live="polite" class="util_displayHiddenVisually">
@@ -7262,10 +8699,15 @@ class AuroSelect extends AuroElement$3 {
7262
8699
  `;
7263
8700
  }
7264
8701
 
8702
+ /**
8703
+ * Returns HTML for the hidden HTML5 select.
8704
+ * @private
8705
+ * @returns {html} - Returns HTML for the hidden HTML5 select.
8706
+ */
7265
8707
  renderNativeSelect() {
7266
8708
  return u`
7267
- <div class="nativeSelectWrapper">
7268
- <select
8709
+ <div class="nativeSelectWrapper util_displayHidden">
8710
+ <select
7269
8711
  tabindex="-1"
7270
8712
  id="${`native-select-${this.id || this.uniqueId}`}"
7271
8713
  name="${this.name || ''}"
@@ -7278,8 +8720,8 @@ class AuroSelect extends AuroElement$3 {
7278
8720
  ${this.options.map((option) => {
7279
8721
  const optionValue = option.value || option.textContent;
7280
8722
  return u`
7281
- <option
7282
- value="${optionValue}"
8723
+ <option
8724
+ value="${optionValue}"
7283
8725
  ?selected="${this.value === optionValue}">
7284
8726
  ${option.textContent}
7285
8727
  </option>
@@ -7301,14 +8743,14 @@ class AuroSelect extends AuroElement$3 {
7301
8743
  ? u`
7302
8744
  <${this.helpTextTag} ?onDark="${this.onDark}">
7303
8745
  <p id="${this.uniqueId}" part="helpText">
7304
- <slot name="helptext"></slot>
8746
+ <slot name="helpText"></slot>
7305
8747
  </p>
7306
8748
  </${this.helpTextTag}>
7307
8749
  `
7308
8750
  : u`
7309
8751
  <${this.helpTextTag} error ?onDark="${this.onDark}">
7310
8752
  <p id="${this.uniqueId}" role="alert" aria-live="assertive" part="helpText">
7311
- ERROR MESSAGE ${this.errorMessage}
8753
+ ${this.errorMessage}
7312
8754
  </p>
7313
8755
  </${this.helpTextTag}>
7314
8756
  `
@@ -7321,17 +8763,16 @@ class AuroSelect extends AuroElement$3 {
7321
8763
  * @private
7322
8764
  * @returns {import("lit").TemplateResult} - Returns HTML for the emphasized layout.
7323
8765
  */
7324
- // TODO update to use util class
7325
8766
  renderLayoutEmphasized() {
7326
8767
  const placeholderClass = {
7327
- hidden: this.value,
8768
+ 'util_displayHidden': this.value
7328
8769
  };
7329
8770
 
7330
8771
  const displayValueClasses = {
7331
8772
  'displayValue': true,
7332
8773
  'hasContent': this.hasDisplayValueContent,
7333
8774
  'hasFocus': this.isPopoverVisible,
7334
- 'withValue': this.value && this.value.length > 0,
8775
+ 'withValue': this.commonLabelClasses.withValue,
7335
8776
  'force': this.forceDisplayValue,
7336
8777
  };
7337
8778
 
@@ -7342,22 +8783,21 @@ class AuroSelect extends AuroElement$3 {
7342
8783
 
7343
8784
  return u`
7344
8785
  <div
7345
- class="${e(this.commonWrapperClasses)}"
7346
8786
  part="wrapper">
7347
8787
  <div id="slotHolder" aria-hidden="true">
7348
8788
  <slot name="bib.fullscreen.headline" @slotchange="${this.handleSlotChange}"></slot>
7349
8789
  </div>
7350
8790
  <${this.dropdownTag}
8791
+ a11yRole="select"
7351
8792
  ?autoPlacement="${this.autoPlacement}"
7352
8793
  ?error="${this.validity !== undefined && this.validity !== 'valid'}"
7353
- ?matchWidth="${!this.flexMenuWidth}"
8794
+ ?matchWidth="${this.matchWidth}"
7354
8795
  ?noFlip="${this.noFlip}"
7355
8796
  ?onDark="${this.onDark}"
7356
8797
  .fullscreenBreakpoint="${this.fullscreenBreakpoint}"
7357
8798
  .offset="${this.offset}"
7358
8799
  .placement="${this.placement}"
7359
8800
  chevron
7360
- fluid
7361
8801
  for="selectMenu"
7362
8802
  layout="${this.layout}"
7363
8803
  part="dropdown"
@@ -7369,15 +8809,14 @@ class AuroSelect extends AuroElement$3 {
7369
8809
  </div>
7370
8810
  <div class="mainContent">
7371
8811
  <div class="${e(valueContainerClasses)}">
7372
- <label>
8812
+ <label class="${e(this.commonLabelClasses)}">
7373
8813
  <slot name="label"></slot>
8814
+ ${this.required ? undefined : u`<slot name="optionalLabel"> (optional)</slot>`}
7374
8815
  </label>
7375
8816
  <div class="value" id="value"></div>
7376
- ${this.value ? undefined : u`
7377
- <div id="placeholder" class="${e(placeholderClass)}">
7378
- <slot name="placeholder"></slot>
7379
- </div>
7380
- `}
8817
+ <div id="placeholder" class="${e(placeholderClass)}">
8818
+ ${this.placeholder}
8819
+ </div>
7381
8820
  </div>
7382
8821
  <div class="${e(displayValueClasses)}" aria-hidden="true" part="displayValue">
7383
8822
  <slot name="displayValue"></slot>
@@ -7387,6 +8826,7 @@ class AuroSelect extends AuroElement$3 {
7387
8826
  </div>
7388
8827
  <div class="menuWrapper"></div>
7389
8828
  <${this.bibtemplateTag} ?large="${this.largeFullscreenHeadline}" @close-click="${this.hideBib}">
8829
+ <slot name="ariaLabel.bib.close" slot="ariaLabel.close">Close</slot>
7390
8830
  <slot></slot>
7391
8831
  </${this.bibtemplateTag}>
7392
8832
  <div slot="helpText">
@@ -7404,14 +8844,14 @@ class AuroSelect extends AuroElement$3 {
7404
8844
  */
7405
8845
  renderLayoutSnowflake() {
7406
8846
  const placeholderClass = {
7407
- hidden: this.value,
8847
+ 'util_displayHidden': this.value
7408
8848
  };
7409
8849
 
7410
8850
  const displayValueClasses = {
7411
8851
  'displayValue': true,
7412
8852
  'hasContent': this.hasDisplayValueContent,
7413
8853
  'hasFocus': this.isPopoverVisible,
7414
- 'withValue': this.value && this.value.length > 0,
8854
+ 'withValue': this.commonLabelClasses.withValue,
7415
8855
  'force': this.forceDisplayValue,
7416
8856
  };
7417
8857
 
@@ -7422,7 +8862,6 @@ class AuroSelect extends AuroElement$3 {
7422
8862
 
7423
8863
  return u`
7424
8864
  <div
7425
- class="${e(this.commonWrapperClasses)}"
7426
8865
  part="wrapper">
7427
8866
  <div id="slotHolder" aria-hidden="true">
7428
8867
  <slot name="bib.fullscreen.headline" @slotchange="${this.handleSlotChange}"></slot>
@@ -7430,14 +8869,13 @@ class AuroSelect extends AuroElement$3 {
7430
8869
  <${this.dropdownTag}
7431
8870
  ?autoPlacement="${this.autoPlacement}"
7432
8871
  ?error="${this.validity !== undefined && this.validity !== 'valid'}"
7433
- ?matchWidth="${!this.flexMenuWidth}"
8872
+ ?matchWidth="${this.matchWidth}"
7434
8873
  ?noFlip="${this.noFlip}"
7435
8874
  ?onDark="${this.onDark}"
7436
8875
  .fullscreenBreakpoint="${this.fullscreenBreakpoint}"
7437
8876
  .offset="${this.offset}"
7438
8877
  .placement="${this.placement}"
7439
8878
  chevron
7440
- fluid
7441
8879
  for="selectMenu"
7442
8880
  layout="${this.layout}"
7443
8881
  part="dropdown"
@@ -7449,15 +8887,14 @@ class AuroSelect extends AuroElement$3 {
7449
8887
  </div>
7450
8888
  <div class="mainContent">
7451
8889
  <div class="${e(valueContainerClasses)}">
7452
- <label>
8890
+ <label class="${e(this.commonLabelClasses)}">
7453
8891
  <slot name="label"></slot>
8892
+ ${this.required ? undefined : u`<slot name="optionalLabel"> (optional)</slot>`}
7454
8893
  </label>
7455
8894
  <div class="value" id="value"></div>
7456
- ${this.value ? undefined : u`
7457
- <div id="placeholder" class="${e(placeholderClass)}">
7458
- <slot name="placeholder"></slot>
7459
- </div>
7460
- `}
8895
+ <div id="placeholder" class="${e(placeholderClass)}">
8896
+ ${this.placeholder}
8897
+ </div>
7461
8898
  </div>
7462
8899
  <div class="${e(displayValueClasses)}" aria-hidden="true" part="displayValue">
7463
8900
  <slot name="displayValue"></slot>
@@ -7467,12 +8904,14 @@ class AuroSelect extends AuroElement$3 {
7467
8904
  </div>
7468
8905
  <div class="menuWrapper"></div>
7469
8906
  <${this.bibtemplateTag} ?large="${this.largeFullscreenHeadline}" @close-click="${this.hideBib}">
8907
+ <slot name="ariaLabel.bib.close" slot="ariaLabel.close">Close</slot>
7470
8908
  <slot></slot>
7471
8909
  </${this.bibtemplateTag}>
7472
8910
  <div slot="helpText">
7473
8911
  ${this.renderHtmlHelpText()}
7474
8912
  </div>
7475
8913
  </${this.dropdownTag}>
8914
+ ${this.renderNativeSelect()}
7476
8915
  </div>
7477
8916
  `;
7478
8917
  }
@@ -7483,11 +8922,80 @@ class AuroSelect extends AuroElement$3 {
7483
8922
  * @returns {import("lit").TemplateResult} - Returns HTML for the classic layout.
7484
8923
  */
7485
8924
  renderLayoutClassic() {
8925
+ const placeholderClass = {
8926
+ 'util_displayHidden': this.value
8927
+ };
8928
+
8929
+ const displayValueClasses = {
8930
+ 'displayValue': true,
8931
+ 'hasContent': this.hasDisplayValueContent,
8932
+ 'hasFocus': this.isPopoverVisible,
8933
+ 'withValue': this.commonLabelClasses.withValue,
8934
+ 'force': this.forceDisplayValue,
8935
+ };
8936
+
8937
+ const valueContainerClasses = {
8938
+ 'valueContainer': true,
8939
+ 'util_displayHiddenVisually': (this.forceDisplayValue || !(this.dropdown && this.dropdown.isPopoverVisible)) && this.hasDisplayValueContent
8940
+ };
8941
+
8942
+ const valueClasses = {
8943
+ 'value': true,
8944
+ 'body-default': true
8945
+ };
8946
+
7486
8947
  return u`
7487
8948
  <div
7488
- class="${e(this.commonWrapperClasses)} thin"
7489
8949
  part="wrapper">
7490
- classic
8950
+ <div id="slotHolder" aria-hidden="true">
8951
+ <slot name="bib.fullscreen.headline" @slotchange="${this.handleSlotChange}"></slot>
8952
+ </div>
8953
+ <${this.dropdownTag}
8954
+ ?autoPlacement="${this.autoPlacement}"
8955
+ ?error="${this.validity !== undefined && this.validity !== 'valid'}"
8956
+ ?matchWidth="${!this.flexMenuWidth}"
8957
+ ?noFlip="${this.noFlip}"
8958
+ ?onDark="${this.onDark}"
8959
+ .fullscreenBreakpoint="${this.fullscreenBreakpoint}"
8960
+ .offset="${this.offset}"
8961
+ .placement="${this.placement}"
8962
+ chevron
8963
+ for="selectMenu"
8964
+ layout="${this.layout}"
8965
+ part="dropdown"
8966
+ shape="${this.shape}"
8967
+ size="${this.size}">
8968
+ <div slot="trigger" aria-haspopup="true" id="triggerFocus" class="triggerContent">
8969
+ <div class="accents left">
8970
+ <slot name="typeIcon"></slot>
8971
+ </div>
8972
+ <div class="mainContent">
8973
+ <div class="${e(valueContainerClasses)}">
8974
+ <label class="${e(this.commonLabelClasses)}">
8975
+ <slot name="label"></slot>
8976
+ ${this.required ? undefined : u`<slot name="optionalLabel"> (optional)</slot>`}
8977
+ </label>
8978
+ <div class="${e(valueClasses)}" id="value"></div>
8979
+ <div id="placeholder" class="${e(placeholderClass)}">
8980
+ ${this.placeholder}
8981
+ </div>
8982
+ </div>
8983
+ <div class="${e(displayValueClasses)}" aria-hidden="true" part="displayValue">
8984
+ <slot name="displayValue"></slot>
8985
+ </div>
8986
+ </div>
8987
+ <div class="accents right"></div>
8988
+ </div>
8989
+ <div class="menuWrapper"></div>
8990
+ <${this.bibtemplateTag} ?large="${this.largeFullscreenHeadline}" @close-click="${this.hideBib}">
8991
+ <slot name="ariaLabel.bib.close" slot="ariaLabel.close">Close</slot>
8992
+ <slot></slot>
8993
+ </${this.bibtemplateTag}>
8994
+ <div slot="helpText">
8995
+ ${this.renderHtmlHelpText()}
8996
+ </div>
8997
+ </${this.dropdownTag}>
8998
+ ${this.renderNativeSelect()}
7491
8999
  </div>
7492
9000
  `;
7493
9001
  }
@@ -7521,112 +9029,13 @@ class AuroSelect extends AuroElement$3 {
7521
9029
 
7522
9030
  // When using auroElement, use the following attribute and function when hiding content from screen readers.
7523
9031
  // aria-hidden="${this.hideAudible(this.hiddenAudible)}"
7524
-
7525
- // function that renders the HTML and CSS into the scope of the component
7526
- renderBACKUP() {
7527
- const placeholderClass = {
7528
- hidden: this.value,
7529
- };
7530
-
7531
- return u`
7532
- <div class="outerWrapper">
7533
- <div aria-live="polite" class="util_displayHiddenVisually">
7534
- ${this.optionActive && this.options.length > 0
7535
- ? u`
7536
- ${`${this.optionActive.innerText}, option ${this.options.indexOf(this.optionActive) + 1} of ${this.options.length}`}
7537
- `
7538
- : undefined
7539
- };
7540
-
7541
- ${this.optionSelected && this.options.length > 0
7542
- ? u`
7543
- ${`${this.optionSelected.innerText} selected`}
7544
- `
7545
- : undefined
7546
- };
7547
- </div>
7548
- <div id="slotHolder" aria-hidden="true">
7549
- <slot name="bib.fullscreen.headline" @slotchange="${this.handleSlotChange}"></slot>
7550
- </div>
7551
- <${this.dropdownTag}
7552
- ?autoPlacement="${this.autoPlacement}"
7553
- ?disabled="${this.disabled}"
7554
- ?error="${this.validity !== undefined && this.validity !== 'valid'}"
7555
- ?matchWidth="${!this.flexMenuWidth}"
7556
- ?noFlip="${this.noFlip}"
7557
- ?onDark="${this.onDark}"
7558
- .fullscreenBreakpoint="${this.fullscreenBreakpoint}"
7559
- .offset="${this.offset}"
7560
- .placement="${this.placement}"
7561
- chevron
7562
- fluid
7563
- for="selectMenu"
7564
- layout="${this.layout}"
7565
- part="dropdown"
7566
- shape="${this.shape}"
7567
- size="${this.size}">
7568
- <span slot="trigger" aria-haspopup="true" id="triggerFocus">
7569
- <span id="placeholder"
7570
- class="${e(placeholderClass)}"
7571
- ?aria-hidden="${this.optionSelected && this.optionSelected.length ? 'true' : false}"
7572
- >
7573
- <slot name="placeholder"></slot>
7574
- </span>
7575
- <slot name="valueText" id="valueText"></slot>
7576
- </span>
7577
-
7578
- <${this.bibtemplateTag} ?large="${this.largeFullscreenHeadline}" @close-click="${this.hideBib}">
7579
- <slot></slot>
7580
- </${this.bibtemplateTag}>
7581
- <slot name="label" slot="label"></slot>
7582
- <p slot="helpText">
7583
- ${!this.validity || this.validity === undefined || this.validity === 'valid'
7584
- ? u`
7585
- <span id="${this.uniqueId}" part="helpText">
7586
- <slot name="helpText"></slot>
7587
- </span>`
7588
- : u`
7589
- <span id="${this.uniqueId}" role="alert" aria-live="assertive" part="helpText">
7590
- ${this.errorMessage}
7591
- </span>`
7592
- }
7593
- </p>
7594
- </${this.dropdownTag}>
7595
- <div class="nativeSelectWrapper">
7596
- <select
7597
- tabindex="-1"
7598
- id="${`native-select-${this.id || this.uniqueId}`}"
7599
- name="${this.name || ''}"
7600
- ?disabled="${this.disabled}"
7601
- ?required="${this.required}"
7602
- aria-hidden="true"
7603
- autocomplete="${o(this.autocomplete)}"
7604
- @change="${this._handleNativeSelectChange}">
7605
- <option value="" ?selected="${!this.value}"></option>
7606
- ${this.options.map((option) => {
7607
- const optionValue = option.value || option.textContent;
7608
- return u`
7609
- <option
7610
- value="${optionValue}"
7611
- ?selected="${this.value === optionValue}">
7612
- ${option.textContent}
7613
- </option>
7614
- `;
7615
- })}
7616
- </select>
7617
- </div>
7618
- <!-- Help text and error message template -->
7619
- ${this.renderHtmlHelpText()}
7620
- </div>
7621
- `;
7622
- }
7623
9032
  }
7624
9033
 
7625
- 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)}`;
9034
+ var styleCss$2 = i$5`:focus:not(:focus-visible){outline:3px solid transparent}.body-default{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);font-size:var(--wcss-body-default-font-size, 1rem);line-height:var(--wcss-body-default-line-height, 1.5)}.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);font-size:var(--wcss-body-lg-font-size, 1.125rem);line-height:var(--wcss-body-lg-line-height, 1.63)}.body-sm{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);font-size:var(--wcss-body-sm-font-size, 0.875rem);line-height:var(--wcss-body-sm-line-height, 1.25)}.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);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-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0);font-size:var(--wcss-body-2xs-font-size, 0.625rem);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);letter-spacing:var(--wcss-display-2xl-letter-spacing, 0);font-weight:var(--wcss-display-2xl-weight, 300);line-height:var(--wcss-display-2xl-line-height, 1.3);font-size:var(--wcss-display-2xl-font-size, clamp(3.5rem, 6vw, 5.375rem))}.display-xl{font-family:var(--wcss-display-xl-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);letter-spacing:var(--wcss-display-xl-letter-spacing, 0);font-weight:var(--wcss-display-xl-weight, 300);line-height:var(--wcss-display-xl-line-height, 1.3);font-size:var(--wcss-display-xl-font-size, clamp(3rem, 5.3333333333vw, 4.5rem))}.display-lg{font-family:var(--wcss-display-lg-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);letter-spacing:var(--wcss-display-lg-letter-spacing, 0);font-weight:var(--wcss-display-lg-weight, 300);line-height:var(--wcss-display-lg-line-height, 1.3);font-size:var(--wcss-display-lg-font-size, clamp(2.75rem, 4.6666666667vw, 4rem))}.display-md{font-family:var(--wcss-display-md-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);letter-spacing:var(--wcss-display-md-letter-spacing, 0);font-weight:var(--wcss-display-md-weight, 300);line-height:var(--wcss-display-md-line-height, 1.3);font-size:var(--wcss-display-md-font-size, clamp(2.5rem, 4vw, 3.5rem))}.display-sm{font-family:var(--wcss-display-sm-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);letter-spacing:var(--wcss-display-sm-letter-spacing, 0);font-weight:var(--wcss-display-sm-weight, 300);line-height:var(--wcss-display-sm-line-height, 1.3);font-size:var(--wcss-display-sm-font-size, clamp(2rem, 3.6666666667vw, 3rem))}.display-xs{font-family:var(--wcss-display-xs-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);letter-spacing:var(--wcss-display-xs-letter-spacing, 0);font-weight:var(--wcss-display-xs-weight, 300);line-height:var(--wcss-display-xs-line-height, 1.3);font-size:var(--wcss-display-xs-font-size, clamp(1.75rem, 3vw, 2.375rem))}.heading-xl{font-family:var(--wcss-heading-xl-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);letter-spacing:var(--wcss-heading-xl-letter-spacing, 0);font-weight:var(--wcss-heading-xl-weight, 300);line-height:var(--wcss-heading-xl-line-height, 1.3);font-size:var(--wcss-heading-xl-font-size, clamp(2rem, 3vw, 2.5rem))}.heading-lg{font-family:var(--wcss-heading-lg-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);letter-spacing:var(--wcss-heading-lg-letter-spacing, 0);font-weight:var(--wcss-heading-lg-weight, 300);line-height:var(--wcss-heading-lg-line-height, 1.3);font-size:var(--wcss-heading-lg-font-size, clamp(1.75rem, 2.6666666667vw, 2.25rem))}.heading-md{font-family:var(--wcss-heading-md-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);letter-spacing:var(--wcss-heading-md-letter-spacing, 0);font-weight:var(--wcss-heading-md-weight, 300);line-height:var(--wcss-heading-md-line-height, 1.3);font-size:var(--wcss-heading-md-font-size, clamp(1.625rem, 2.3333333333vw, 1.75rem))}.heading-sm{font-family:var(--wcss-heading-sm-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);letter-spacing:var(--wcss-heading-sm-letter-spacing, 0);font-weight:var(--wcss-heading-sm-weight, 300);line-height:var(--wcss-heading-sm-line-height, 1.3);font-size:var(--wcss-heading-sm-font-size, clamp(1.375rem, 2vw, 1.5rem))}.heading-xs{font-family:var(--wcss-heading-xs-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);letter-spacing:var(--wcss-heading-xs-letter-spacing, 0);font-weight:var(--wcss-heading-xs-weight, 450);line-height:var(--wcss-heading-xs-line-height, 1.3);font-size:var(--wcss-heading-xs-font-size, clamp(1.25rem, 1.6666666667vw, 1.25rem))}.heading-2xs{font-family:var(--wcss-heading-2xs-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);letter-spacing:var(--wcss-heading-2xs-letter-spacing, 0);font-weight:var(--wcss-heading-2xs-weight, 450);line-height:var(--wcss-heading-2xs-line-height, 1.3);font-size:var(--wcss-heading-2xs-font-size, clamp(1.125rem, 1.5vw, 1.125rem))}.accent-2xl{font-family:var(--wcss-accent-2xl-family, "Good OT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);letter-spacing:var(--wcss-accent-2xl-letter-spacing, 0.05em);font-weight:var(--wcss-accent-2xl-weight, 450);line-height:var(--wcss-accent-2xl-line-height, 1);font-size:var(--wcss-accent-2xl-font-size, clamp(2rem, 3.1666666667vw, 2.375rem));text-transform:uppercase}.accent-xl{font-family:var(--wcss-accent-xl-family, "Good OT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);letter-spacing:var(--wcss-accent-xl-letter-spacing, 0.05em);font-weight:var(--wcss-accent-xl-weight, 450);line-height:var(--wcss-accent-xl-line-height, 1.3);font-size:var(--wcss-accent-xl-font-size, clamp(1.625rem, 2.3333333333vw, 2rem));text-transform:uppercase}.accent-lg{font-family:var(--wcss-accent-lg-family, "Good OT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);letter-spacing:var(--wcss-accent-lg-letter-spacing, 0.05em);font-weight:var(--wcss-accent-lg-weight, 450);line-height:var(--wcss-accent-lg-line-height, 1.3);font-size:var(--wcss-accent-lg-font-size, clamp(1.5rem, 2.1666666667vw, 1.75rem));text-transform:uppercase}.accent-md{font-family:var(--wcss-accent-md-family, "Good OT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);letter-spacing:var(--wcss-accent-md-letter-spacing, 0.05em);font-weight:var(--wcss-accent-md-weight, 500);line-height:var(--wcss-accent-md-line-height, 1.3);font-size:var(--wcss-accent-md-font-size, clamp(1.375rem, 1.8333333333vw, 1.5rem));text-transform:uppercase}.accent-sm{font-family:var(--wcss-accent-sm-family, "Good OT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);letter-spacing:var(--wcss-accent-sm-letter-spacing, 0.05em);font-weight:var(--wcss-accent-sm-weight, 500);line-height:var(--wcss-accent-sm-line-height, 1.3);font-size:var(--wcss-accent-sm-font-size, clamp(1.125rem, 1.5vw, 1.25rem));text-transform:uppercase}.accent-xs{font-family:var(--wcss-accent-xs-family, "Good OT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);letter-spacing:var(--wcss-accent-xs-letter-spacing, 0.1em);font-weight:var(--wcss-accent-xs-weight, 500);line-height:var(--wcss-accent-xs-line-height, 1.3);font-size:var(--wcss-accent-xs-font-size, clamp(1rem, 1.3333333333vw, 1rem));text-transform:uppercase}.accent-2xs{font-family:var(--wcss-accent-2xs-family, "Good OT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);letter-spacing:var(--wcss-accent-2xs-letter-spacing, 0.1em);font-weight:var(--wcss-accent-2xs-weight, 450);line-height:var(--wcss-accent-2xs-line-height, 1.3);font-size:var(--wcss-accent-2xs-font-size, clamp(0.875rem, 1.1666666667vw, 0.875rem));text-transform:uppercase}:host{display:block;vertical-align:middle;line-height:0}:host .menuWrapper{box-sizing:border-box;display:flex;flex-direction:column;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;display:inline-block}:host [loadingplaceholder] slot[name=loadingIcon]::slotted(*){margin-right:var(--ds-size-150, 0.75rem)}:host([root]){overflow-y:auto}:host([root]) .menuWrapper.lg{padding:var(--ds-size-150, 0.75rem);gap:var(--ds-size-50, 0.25rem)}:host([root]) .menuWrapper.xl{padding:var(--ds-size-200, 1rem);gap:var(--ds-size-100, 0.5rem)}`;
7626
9035
 
7627
9036
  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)}`;
7628
9037
 
7629
- 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)}`;
9038
+ 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)}`;
7630
9039
 
7631
9040
  // Copyright (c) 2021 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
7632
9041
  // See LICENSE in the project root for license information.
@@ -7679,7 +9088,6 @@ function dispatchMenuEvent(element, eventName, detail = null) {
7679
9088
  * @attr {boolean} nocheckmark - When true, selected option will not show the checkmark.
7680
9089
  * @attr {boolean} loading - When true, displays a loading state using the loadingIcon and loadingText slots if provided.
7681
9090
  * @attr {boolean} multiselect - When true, the selected option can be multiple options.
7682
- * @attr {String|Array<string>} value - Value selected for the menu, type `string` by default. In multi-select mode, `value` is an array of strings.
7683
9091
  * @prop {boolean} hasLoadingPlaceholder - Indicates whether the menu has a loadingIcon or loadingText to render when in a loading state.
7684
9092
  * @event {CustomEvent<Element>} auroMenu-activatedOption - Notifies that a menuoption has been made `active`.
7685
9093
  * @event {CustomEvent<any>} auroMenu-customEventFired - Notifies that a custom event has been fired.
@@ -7694,12 +9102,22 @@ function dispatchMenuEvent(element, eventName, detail = null) {
7694
9102
 
7695
9103
  /* eslint-disable no-magic-numbers, max-lines, no-extra-parens */
7696
9104
 
7697
- class AuroMenu extends i$2 {
9105
+ class AuroMenu extends AuroElement$4 {
7698
9106
  constructor() {
7699
9107
  super();
7700
9108
 
7701
9109
  // State properties (reactive)
7702
9110
 
9111
+ /**
9112
+ * @private
9113
+ */
9114
+ this.shape = "box";
9115
+
9116
+ /**
9117
+ * @private
9118
+ */
9119
+ this.size = "sm";
9120
+
7703
9121
  // Value of the selected options
7704
9122
  this.value = undefined;
7705
9123
  // Currently selected option
@@ -7758,6 +9176,7 @@ class AuroMenu extends i$2 {
7758
9176
 
7759
9177
  static get properties() {
7760
9178
  return {
9179
+ ...super.properties,
7761
9180
  noCheckmark: {
7762
9181
  type: Boolean,
7763
9182
  reflect: true,
@@ -7788,9 +9207,24 @@ class AuroMenu extends i$2 {
7788
9207
  reflect: true,
7789
9208
  attribute: 'multiselect'
7790
9209
  },
9210
+
9211
+ /**
9212
+ * Value selected for the component.
9213
+ */
7791
9214
  value: {
7792
- // Allow string, string[] arrays and undefined
7793
- type: Object
9215
+ type: String,
9216
+ reflect: true,
9217
+ attribute: 'value'
9218
+ },
9219
+
9220
+ /**
9221
+ * Indent level for submenus.
9222
+ * @private
9223
+ */
9224
+ level: {
9225
+ type: Number,
9226
+ reflect: false,
9227
+ attribute: false
7794
9228
  }
7795
9229
  };
7796
9230
  }
@@ -7812,7 +9246,26 @@ class AuroMenu extends i$2 {
7812
9246
  *
7813
9247
  */
7814
9248
  static register(name = "auro-menu") {
7815
- AuroLibraryRuntimeUtils$4.prototype.registerComponent(name, AuroMenu);
9249
+ AuroLibraryRuntimeUtils$5.prototype.registerComponent(name, AuroMenu);
9250
+ }
9251
+
9252
+ /**
9253
+ * Formatted value based on `multiSelect` state.
9254
+ * Default type is `String`, changing to `Array<String>` when `multiSelect` is true.
9255
+ * @private
9256
+ * @returns {String|Array<String>}
9257
+ */
9258
+ get formattedValue() {
9259
+ if (this.multiSelect) {
9260
+ if (!this.value) {
9261
+ return undefined;
9262
+ }
9263
+ if (this.value.startsWith("[")) {
9264
+ return JSON.parse(this.value);
9265
+ }
9266
+ return [this.value];
9267
+ }
9268
+ return this.value;
7816
9269
  }
7817
9270
 
7818
9271
  // Lifecycle Methods
@@ -7824,6 +9277,7 @@ class AuroMenu extends i$2 {
7824
9277
  this.addEventListener('mousedown', this.handleMouseSelect);
7825
9278
  this.addEventListener('auroMenuOption-mouseover', this.handleOptionHover);
7826
9279
  this.addEventListener('slotchange', this.handleSlotChange);
9280
+ this.setTagAttribute("auro-menu");
7827
9281
  }
7828
9282
 
7829
9283
  disconnectedCallback() {
@@ -7836,19 +9290,33 @@ class AuroMenu extends i$2 {
7836
9290
  }
7837
9291
 
7838
9292
  firstUpdated() {
7839
- AuroLibraryRuntimeUtils$4.prototype.handleComponentTagRename(this, 'auro-menu');
9293
+ AuroLibraryRuntimeUtils$5.prototype.handleComponentTagRename(this, 'auro-menu');
7840
9294
 
7841
9295
  this.loadingSlots = this.querySelectorAll("[slot='loadingText'], [slot='loadingIcon']");
7842
9296
  this.initializeMenu();
7843
9297
  }
7844
9298
 
9299
+ /**
9300
+ * Sets an attribute that matches the default tag name if the tag name is not the default.
9301
+ * @param {string} tagName - The tag name to set as an attribute.
9302
+ * @private
9303
+ */
9304
+ setTagAttribute(tagName) {
9305
+ if (this.tagName.toLowerCase() !== tagName) {
9306
+ this.setAttribute(tagName, true);
9307
+ }
9308
+ }
9309
+
7845
9310
  updated(changedProperties) {
7846
- if (changedProperties.has('multiSelect')) {
9311
+ super.updated(changedProperties);
9312
+
9313
+ if (changedProperties.has('multiSelect') && !changedProperties.has("value")) {
7847
9314
  // Reset selection if multiSelect mode changes
7848
9315
  this.clearSelection();
7849
9316
  }
7850
9317
 
7851
- if (changedProperties.has('value')) {
9318
+
9319
+ if (changedProperties.has("value")) {
7852
9320
  // Handle null/undefined case
7853
9321
  if (this.value === undefined || this.value === null) {
7854
9322
  this.optionSelected = undefined;
@@ -7856,7 +9324,7 @@ class AuroMenu extends i$2 {
7856
9324
  } else {
7857
9325
  if (this.multiSelect) {
7858
9326
  // In multiselect mode, this.value should be an array of strings
7859
- const valueArray = Array.isArray(this.value) ? this.value : [this.value];
9327
+ const valueArray = this.formattedValue;
7860
9328
  const matchingOptions = this.items.filter((item) => valueArray.includes(item.value));
7861
9329
 
7862
9330
  this.optionSelected = matchingOptions.length > 0 ? matchingOptions : undefined;
@@ -7916,6 +9384,19 @@ class AuroMenu extends i$2 {
7916
9384
  this.querySelectorAll('auro-menu, [auro-menu], auro-menuoption, [auro-menuoption]').forEach((element) => element.setAttribute('noCheckmark', ''));
7917
9385
  }
7918
9386
 
9387
+ // Handle layout propagation to all menus and options
9388
+ const propagationTargets = this.querySelectorAll('auro-menu, [auro-menu], auro-menuoption, [auro-menuoption]');
9389
+ [
9390
+ 'size',
9391
+ 'shape'
9392
+ ].forEach((prop) => {
9393
+ if (changedProperties.has(prop)) {
9394
+ propagationTargets.forEach((el) => {
9395
+ el.setAttribute(prop, this[prop]);
9396
+ });
9397
+ }
9398
+ });
9399
+
7919
9400
  // Regex for matchWord if needed
7920
9401
  let regexWord = null;
7921
9402
 
@@ -8010,14 +9491,14 @@ class AuroMenu extends i$2 {
8010
9491
  */
8011
9492
  handleSelectState(option) {
8012
9493
  if (this.multiSelect) {
8013
- const currentValue = this.value || [];
9494
+ const currentValue = this.formattedValue || [];
8014
9495
  const currentSelected = this.optionSelected || [];
8015
9496
 
8016
9497
  if (!currentValue.includes(option.value)) {
8017
- this.value = [
9498
+ this.value = JSON.stringify([
8018
9499
  ...currentValue,
8019
9500
  option.value
8020
- ];
9501
+ ]);
8021
9502
  }
8022
9503
  if (!currentSelected.includes(option)) {
8023
9504
  this.optionSelected = [
@@ -8040,13 +9521,15 @@ class AuroMenu extends i$2 {
8040
9521
  * @param {HTMLElement} option - The menuoption to be deselected.
8041
9522
  */
8042
9523
  handleDeselectState(option) {
8043
- if (this.multiSelect && Array.isArray(this.value)) {
9524
+ if (this.multiSelect) {
8044
9525
  // Remove this option from array
8045
- this.value = this.value.filter((val) => val !== option.value);
9526
+ const newFormattedValue = (this.formattedValue || []).filter((val) => val !== option.value);
8046
9527
 
8047
9528
  // If array is empty after removal, set back to undefined
8048
- if (this.value.length === 0) {
9529
+ if (newFormattedValue && newFormattedValue.length === 0) {
8049
9530
  this.value = undefined;
9531
+ } else {
9532
+ this.value = JSON.stringify(newFormattedValue);
8050
9533
  }
8051
9534
 
8052
9535
  this.optionSelected = this.optionSelected.filter((val) => val !== option);
@@ -8112,21 +9595,20 @@ class AuroMenu extends i$2 {
8112
9595
  * @param {HTMLElement} menu - Root menu element.
8113
9596
  */
8114
9597
  handleNestedMenus(menu) {
8115
- const nestedMenus = menu.querySelectorAll('auro-menu, [auro-menu]');
9598
+ menu.level = menu.parentElement.level >= 0 ? menu.parentElement.level + 1 : 0;
8116
9599
 
8117
- nestedMenus.forEach((nestedMenu) => {
8118
- // role="listbox" only allows "role=group" for children.
8119
- nestedMenu.setAttribute('role', 'group');
8120
- if (!nestedMenu.hasAttribute('aria-label')) {
8121
- nestedMenu.setAttribute('aria-label', 'submenu');
9600
+ if (menu.level > 0) {
9601
+ menu.setAttribute('role', 'group');
9602
+ menu.removeAttribute("root");
9603
+ if (!menu.hasAttribute('aria-label')) {
9604
+ menu.setAttribute('aria-label', 'submenu');
8122
9605
  }
9606
+ }
8123
9607
 
8124
- const options = nestedMenu.querySelectorAll(':scope > auro-menuoption, :scope > [auro-menuoption]');
8125
- options.forEach((option) => {
8126
- option.innerHTML = this.nestingSpacer + option.innerHTML;
8127
- });
8128
-
8129
- this.handleNestedMenus(nestedMenu);
9608
+ const options = menu.querySelectorAll(':scope > auro-menuoption, :scope > [auro-menuoption]');
9609
+ options.forEach((option) => {
9610
+ const regex = new RegExp(this.nestingSpacer, "gu");
9611
+ option.innerHTML = this.nestingSpacer.repeat(menu.level) + option.innerHTML.replace(regex, '');
8130
9612
  });
8131
9613
  }
8132
9614
 
@@ -8368,28 +9850,51 @@ class AuroMenu extends i$2 {
8368
9850
  }
8369
9851
 
8370
9852
  /**
8371
- * Renders the component.
8372
- * @returns {boolean} - True if loading slots are present and non-empty.
9853
+ * Getter for wrapper classes based on size.
9854
+ * @returns {Object} - Class map for the wrapper element.
9855
+ * @private
8373
9856
  */
8374
- render() {
9857
+ get wrapperClasses() {
9858
+ return e({
9859
+ 'menuWrapper': true,
9860
+ [this.size]: true,
9861
+ });
9862
+ }
9863
+
9864
+ /**
9865
+ * Logic to determine the layout of the component.
9866
+ * @protected
9867
+ * @returns {void}
9868
+ */
9869
+ renderLayout() {
8375
9870
  if (this.loading) {
8376
9871
  return x`
8377
- <auro-menuoption disabled loadingplaceholder class="${this.hasLoadingPlaceholder ? '' : 'empty'}">
8378
- <div>
8379
- <slot name="loadingIcon"></slot>
8380
- <slot name="loadingText"></slot>
8381
- </div>
8382
- </auro-menuoption>
9872
+ <div class="${this.wrapperClasses}">
9873
+ <auro-menuoption
9874
+ disabled
9875
+ loadingplaceholder
9876
+ class="${this.hasLoadingPlaceholder ? "" : "empty"}"
9877
+ >
9878
+ <div>
9879
+ <slot name="loadingIcon" class="body-lg"></slot>
9880
+ <slot name="loadingText"></slot>
9881
+ </div>
9882
+ </auro-menuoption>
9883
+ </div>
8383
9884
  `;
8384
9885
  }
8385
9886
 
8386
- return x`<slot @slotchange=${this.handleSlotChange}></slot>`;
9887
+ return x`
9888
+ <div class="${this.wrapperClasses}">
9889
+ <slot @slotchange=${this.handleSlotChange}></slot>
9890
+ </div>
9891
+ `;
8387
9892
  }
8388
9893
  }
8389
9894
 
8390
- 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}`;
9895
+ var styleCss$1 = i$5`.body-default{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);font-size:var(--wcss-body-default-font-size, 1rem);line-height:var(--wcss-body-default-line-height, 1.5)}.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);font-size:var(--wcss-body-lg-font-size, 1.125rem);line-height:var(--wcss-body-lg-line-height, 1.63)}.body-sm{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);font-size:var(--wcss-body-sm-font-size, 0.875rem);line-height:var(--wcss-body-sm-line-height, 1.25)}.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);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-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0);font-size:var(--wcss-body-2xs-font-size, 0.625rem);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);letter-spacing:var(--wcss-display-2xl-letter-spacing, 0);font-weight:var(--wcss-display-2xl-weight, 300);line-height:var(--wcss-display-2xl-line-height, 1.3);font-size:var(--wcss-display-2xl-font-size, clamp(3.5rem, 6vw, 5.375rem))}.display-xl{font-family:var(--wcss-display-xl-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);letter-spacing:var(--wcss-display-xl-letter-spacing, 0);font-weight:var(--wcss-display-xl-weight, 300);line-height:var(--wcss-display-xl-line-height, 1.3);font-size:var(--wcss-display-xl-font-size, clamp(3rem, 5.3333333333vw, 4.5rem))}.display-lg{font-family:var(--wcss-display-lg-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);letter-spacing:var(--wcss-display-lg-letter-spacing, 0);font-weight:var(--wcss-display-lg-weight, 300);line-height:var(--wcss-display-lg-line-height, 1.3);font-size:var(--wcss-display-lg-font-size, clamp(2.75rem, 4.6666666667vw, 4rem))}.display-md{font-family:var(--wcss-display-md-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);letter-spacing:var(--wcss-display-md-letter-spacing, 0);font-weight:var(--wcss-display-md-weight, 300);line-height:var(--wcss-display-md-line-height, 1.3);font-size:var(--wcss-display-md-font-size, clamp(2.5rem, 4vw, 3.5rem))}.display-sm{font-family:var(--wcss-display-sm-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);letter-spacing:var(--wcss-display-sm-letter-spacing, 0);font-weight:var(--wcss-display-sm-weight, 300);line-height:var(--wcss-display-sm-line-height, 1.3);font-size:var(--wcss-display-sm-font-size, clamp(2rem, 3.6666666667vw, 3rem))}.display-xs{font-family:var(--wcss-display-xs-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);letter-spacing:var(--wcss-display-xs-letter-spacing, 0);font-weight:var(--wcss-display-xs-weight, 300);line-height:var(--wcss-display-xs-line-height, 1.3);font-size:var(--wcss-display-xs-font-size, clamp(1.75rem, 3vw, 2.375rem))}.heading-xl{font-family:var(--wcss-heading-xl-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);letter-spacing:var(--wcss-heading-xl-letter-spacing, 0);font-weight:var(--wcss-heading-xl-weight, 300);line-height:var(--wcss-heading-xl-line-height, 1.3);font-size:var(--wcss-heading-xl-font-size, clamp(2rem, 3vw, 2.5rem))}.heading-lg{font-family:var(--wcss-heading-lg-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);letter-spacing:var(--wcss-heading-lg-letter-spacing, 0);font-weight:var(--wcss-heading-lg-weight, 300);line-height:var(--wcss-heading-lg-line-height, 1.3);font-size:var(--wcss-heading-lg-font-size, clamp(1.75rem, 2.6666666667vw, 2.25rem))}.heading-md{font-family:var(--wcss-heading-md-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);letter-spacing:var(--wcss-heading-md-letter-spacing, 0);font-weight:var(--wcss-heading-md-weight, 300);line-height:var(--wcss-heading-md-line-height, 1.3);font-size:var(--wcss-heading-md-font-size, clamp(1.625rem, 2.3333333333vw, 1.75rem))}.heading-sm{font-family:var(--wcss-heading-sm-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);letter-spacing:var(--wcss-heading-sm-letter-spacing, 0);font-weight:var(--wcss-heading-sm-weight, 300);line-height:var(--wcss-heading-sm-line-height, 1.3);font-size:var(--wcss-heading-sm-font-size, clamp(1.375rem, 2vw, 1.5rem))}.heading-xs{font-family:var(--wcss-heading-xs-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);letter-spacing:var(--wcss-heading-xs-letter-spacing, 0);font-weight:var(--wcss-heading-xs-weight, 450);line-height:var(--wcss-heading-xs-line-height, 1.3);font-size:var(--wcss-heading-xs-font-size, clamp(1.25rem, 1.6666666667vw, 1.25rem))}.heading-2xs{font-family:var(--wcss-heading-2xs-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);letter-spacing:var(--wcss-heading-2xs-letter-spacing, 0);font-weight:var(--wcss-heading-2xs-weight, 450);line-height:var(--wcss-heading-2xs-line-height, 1.3);font-size:var(--wcss-heading-2xs-font-size, clamp(1.125rem, 1.5vw, 1.125rem))}.accent-2xl{font-family:var(--wcss-accent-2xl-family, "Good OT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);letter-spacing:var(--wcss-accent-2xl-letter-spacing, 0.05em);font-weight:var(--wcss-accent-2xl-weight, 450);line-height:var(--wcss-accent-2xl-line-height, 1);font-size:var(--wcss-accent-2xl-font-size, clamp(2rem, 3.1666666667vw, 2.375rem));text-transform:uppercase}.accent-xl{font-family:var(--wcss-accent-xl-family, "Good OT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);letter-spacing:var(--wcss-accent-xl-letter-spacing, 0.05em);font-weight:var(--wcss-accent-xl-weight, 450);line-height:var(--wcss-accent-xl-line-height, 1.3);font-size:var(--wcss-accent-xl-font-size, clamp(1.625rem, 2.3333333333vw, 2rem));text-transform:uppercase}.accent-lg{font-family:var(--wcss-accent-lg-family, "Good OT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);letter-spacing:var(--wcss-accent-lg-letter-spacing, 0.05em);font-weight:var(--wcss-accent-lg-weight, 450);line-height:var(--wcss-accent-lg-line-height, 1.3);font-size:var(--wcss-accent-lg-font-size, clamp(1.5rem, 2.1666666667vw, 1.75rem));text-transform:uppercase}.accent-md{font-family:var(--wcss-accent-md-family, "Good OT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);letter-spacing:var(--wcss-accent-md-letter-spacing, 0.05em);font-weight:var(--wcss-accent-md-weight, 500);line-height:var(--wcss-accent-md-line-height, 1.3);font-size:var(--wcss-accent-md-font-size, clamp(1.375rem, 1.8333333333vw, 1.5rem));text-transform:uppercase}.accent-sm{font-family:var(--wcss-accent-sm-family, "Good OT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);letter-spacing:var(--wcss-accent-sm-letter-spacing, 0.05em);font-weight:var(--wcss-accent-sm-weight, 500);line-height:var(--wcss-accent-sm-line-height, 1.3);font-size:var(--wcss-accent-sm-font-size, clamp(1.125rem, 1.5vw, 1.25rem));text-transform:uppercase}.accent-xs{font-family:var(--wcss-accent-xs-family, "Good OT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);letter-spacing:var(--wcss-accent-xs-letter-spacing, 0.1em);font-weight:var(--wcss-accent-xs-weight, 500);line-height:var(--wcss-accent-xs-line-height, 1.3);font-size:var(--wcss-accent-xs-font-size, clamp(1rem, 1.3333333333vw, 1rem));text-transform:uppercase}.accent-2xs{font-family:var(--wcss-accent-2xs-family, "Good OT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);letter-spacing:var(--wcss-accent-2xs-letter-spacing, 0.1em);font-weight:var(--wcss-accent-2xs-weight, 450);line-height:var(--wcss-accent-2xs-line-height, 1.3);font-size:var(--wcss-accent-2xs-font-size, clamp(0.875rem, 1.1666666667vw, 0.875rem));text-transform:uppercase}: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);border-radius:var(--ds-size-100, 0.5rem);-webkit-tap-highlight-color:transparent}:host .wrapper[class*=shape-box]{border-radius:unset}:host .wrapper[class*=shape-snowflake]{border-radius:unset;line-height:24px}:host .wrapper[class*=shape-pill]{border-radius:30px}:host .wrapper[class*=-lg]{padding-top:var(--ds-size-75, 0.375rem);padding-bottom:var(--ds-size-75, 0.375rem);padding-right:var(--ds-size-150, 0.75rem);line-height:26px}:host .wrapper[class*=-xl]{padding-top:var(--ds-size-100, 0.5rem);padding-bottom:var(--ds-size-100, 0.5rem);padding-right:var(--ds-size-200, 1rem);line-height:26px}: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([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}`;
8391
9896
 
8392
- 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)}`;
9897
+ var colorCss$1 = i$5`:host .wrapper{background-color:var(--ds-auro-menuoption-container-color);box-shadow:inset 0 0 0 1px var(--ds-auro-menuoption-container-border-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)}`;
8393
9898
 
8394
9899
  // Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
8395
9900
  // See LICENSE in the project root for license information.
@@ -8737,8 +10242,12 @@ class AuroIcon extends BaseIcon {
8737
10242
  async firstUpdated() {
8738
10243
  await super.firstUpdated();
8739
10244
 
8740
- // Removes the SVG description for screenreader if ariaHidden is set to true
8741
- if (!this.hasAttribute('ariaHidden') && this.svg) {
10245
+ /**
10246
+ * icons provide a description for screen readers. Icon only instances Auro-button
10247
+ * depend on this description to provide context for the user using a screen reader.
10248
+ * Removes the SVG description for screen reader if ariaHidden is set to true.
10249
+ */
10250
+ if (this.hasAttribute('ariaHidden') && this.svg) {
8742
10251
  const svgDesc = this.svg.querySelector('desc');
8743
10252
 
8744
10253
  if (svgDesc) {
@@ -8782,7 +10291,7 @@ class AuroIcon extends BaseIcon {
8782
10291
  }
8783
10292
  }
8784
10293
 
8785
- var iconVersion = '8.0.3';
10294
+ var iconVersion = '8.1.0';
8786
10295
 
8787
10296
  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>"};
8788
10297
 
@@ -8800,10 +10309,20 @@ var checkmarkIcon = {"svg":"<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlin
8800
10309
  * @event auroMenuOption-mouseover - Notifies that this option has been hovered over.
8801
10310
  * @slot - Specifies text for an option, but is not the value.
8802
10311
  */
8803
- class AuroMenuOption extends i$2 {
10312
+ class AuroMenuOption extends AuroElement$4 {
8804
10313
  constructor() {
8805
10314
  super();
8806
10315
 
10316
+ /**
10317
+ * @private
10318
+ */
10319
+ this.shape = undefined;
10320
+
10321
+ /**
10322
+ * @private
10323
+ */
10324
+ this.size = undefined;
10325
+
8807
10326
  /**
8808
10327
  * Generate unique names for dependency components.
8809
10328
  */
@@ -8822,11 +10341,12 @@ class AuroMenuOption extends i$2 {
8822
10341
  /**
8823
10342
  * @private
8824
10343
  */
8825
- this.runtimeUtils = new AuroLibraryRuntimeUtils$4();
10344
+ this.runtimeUtils = new AuroLibraryRuntimeUtils$5();
8826
10345
  }
8827
10346
 
8828
10347
  static get properties() {
8829
10348
  return {
10349
+ ...super.properties,
8830
10350
  nocheckmark: {
8831
10351
  type: Boolean,
8832
10352
  reflect: true
@@ -8866,13 +10386,20 @@ class AuroMenuOption extends i$2 {
8866
10386
  *
8867
10387
  */
8868
10388
  static register(name = "auro-menuoption") {
8869
- AuroLibraryRuntimeUtils$4.prototype.registerComponent(name, AuroMenuOption);
10389
+ AuroLibraryRuntimeUtils$5.prototype.registerComponent(name, AuroMenuOption);
8870
10390
  }
8871
10391
 
8872
10392
  firstUpdated() {
8873
10393
  // Add the tag name as an attribute if it is different than the component name
8874
10394
  this.runtimeUtils.handleComponentTagRename(this, 'auro-menuoption');
8875
10395
 
10396
+ if (!this.hasAttribute('size')) {
10397
+ this.size = this.parentElement.getAttribute('size') || 'sm';
10398
+ }
10399
+ if (!this.hasAttribute('shape')) {
10400
+ this.shape = this.parentElement.getAttribute('shape') || 'box';
10401
+ }
10402
+
8876
10403
  this.setAttribute('role', 'option');
8877
10404
  this.setAttribute('aria-selected', 'false');
8878
10405
 
@@ -8888,6 +10415,8 @@ class AuroMenuOption extends i$2 {
8888
10415
 
8889
10416
  // observer for selected property changes
8890
10417
  updated(changedProperties) {
10418
+ super.updated(changedProperties);
10419
+
8891
10420
  if (changedProperties.has('selected')) {
8892
10421
  this.setAttribute('aria-selected', this.selected.toString());
8893
10422
  }
@@ -8906,13 +10435,36 @@ class AuroMenuOption extends i$2 {
8906
10435
 
8907
10436
  svg.setAttribute('slot', 'svg');
8908
10437
 
8909
- return u`<${this.iconTag} customColor customSvg slot="icon">${svg}</${this.iconTag}>`;
10438
+ return u`<${this.iconTag} customColor customSvg>${svg}</${this.iconTag}>`;
8910
10439
  }
8911
10440
 
8912
- render() {
10441
+ /**
10442
+ * Logic to determine the layout of the component.
10443
+ * @protected
10444
+ * @returns {void}
10445
+ */
10446
+ renderLayout() {
10447
+
10448
+ const fontClassMap = {
10449
+ xs: 'body-sm',
10450
+ sm: 'body-default',
10451
+ md: 'body-default',
10452
+ lg: 'body-lg',
10453
+ xl: 'body-lg'
10454
+ };
10455
+
10456
+ const classes = e({
10457
+ 'wrapper': true,
10458
+ [this.size ? fontClassMap[this.size] : 'body-sm']: true,
10459
+ });
10460
+
8913
10461
  return u`
8914
- ${this.selected && !this.nocheckmark ? this.generateIconHtml(checkmarkIcon.svg) : undefined}
8915
- <slot></slot>
10462
+ <div class="${classes}">
10463
+ ${this.selected && !this.nocheckmark
10464
+ ? this.generateIconHtml(checkmarkIcon.svg)
10465
+ : undefined}
10466
+ <slot></slot>
10467
+ </div>
8916
10468
  `;
8917
10469
  }
8918
10470
  }
@@ -8934,7 +10486,6 @@ function initExamples(initCount) {
8934
10486
  inDialogExample();
8935
10487
  resetStateExample();
8936
10488
  auroMenuLoadingExample();
8937
- valueTextExample();
8938
10489
  } catch (err) {
8939
10490
  if (initCount <= 20) {
8940
10491
  // setTimeout handles issue where content is sometimes loaded after the functions get called