@aurodesignsystem-dev/auro-formkit 0.0.0-pr624.9 → 0.0.0-pr624.91

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 (149) 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 +1241 -94
  6. package/components/bibtemplate/dist/registered.js +1241 -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 +49 -15
  10. package/components/checkbox/demo/api.min.js +74 -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 +74 -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 +3 -3
  18. package/components/checkbox/dist/index.js +73 -45
  19. package/components/checkbox/dist/registered.js +73 -45
  20. package/components/combobox/demo/api.html +16 -10
  21. package/components/combobox/demo/api.md +115 -8
  22. package/components/combobox/demo/api.min.js +3305 -1002
  23. package/components/combobox/demo/index.html +16 -10
  24. package/components/combobox/demo/index.md +8 -34
  25. package/components/combobox/demo/index.min.js +3305 -1002
  26. package/components/combobox/demo/readme.html +16 -9
  27. package/components/combobox/dist/auro-combobox.d.ts +57 -14
  28. package/components/combobox/dist/index.js +2992 -836
  29. package/components/combobox/dist/registered.js +2992 -836
  30. package/components/counter/demo/api.html +17 -10
  31. package/components/counter/demo/api.md +158 -21
  32. package/components/counter/demo/api.min.js +3417 -765
  33. package/components/counter/demo/index.html +17 -10
  34. package/components/counter/demo/index.md +185 -34
  35. package/components/counter/demo/index.min.js +3417 -765
  36. package/components/counter/demo/readme.html +16 -9
  37. package/components/counter/dist/auro-counter-button.d.ts +2 -0
  38. package/components/counter/dist/auro-counter-group.d.ts +161 -11
  39. package/components/counter/dist/auro-counter.d.ts +16 -0
  40. package/components/counter/dist/helptextVersion.d.ts +2 -0
  41. package/components/counter/dist/iconVersion.d.ts +1 -1
  42. package/components/counter/dist/index.js +3420 -768
  43. package/components/counter/dist/registered.js +3420 -768
  44. package/components/datepicker/README.md +1 -1
  45. package/components/datepicker/demo/api.html +16 -10
  46. package/components/datepicker/demo/api.md +62 -28
  47. package/components/datepicker/demo/api.min.js +11956 -8070
  48. package/components/datepicker/demo/index.html +16 -10
  49. package/components/datepicker/demo/index.md +75 -8
  50. package/components/datepicker/demo/index.min.js +11956 -8070
  51. package/components/datepicker/demo/readme.html +16 -9
  52. package/components/datepicker/demo/readme.md +1 -1
  53. package/components/datepicker/dist/auro-datepicker.d.ts +151 -12
  54. package/components/datepicker/dist/buttonVersion.d.ts +1 -1
  55. package/components/datepicker/dist/iconVersion.d.ts +2 -0
  56. package/components/datepicker/dist/index.js +13802 -9916
  57. package/components/datepicker/dist/popoverVersion.d.ts +1 -1
  58. package/components/datepicker/dist/registered.js +13802 -9916
  59. package/components/dropdown/demo/api.html +16 -10
  60. package/components/dropdown/demo/api.md +82 -275
  61. package/components/dropdown/demo/api.min.js +450 -261
  62. package/components/dropdown/demo/index.html +16 -10
  63. package/components/dropdown/demo/index.md +92 -362
  64. package/components/dropdown/demo/index.min.js +450 -261
  65. package/components/dropdown/demo/readme.html +16 -9
  66. package/components/dropdown/dist/auro-dropdown.d.ts +43 -83
  67. package/components/dropdown/dist/auro-dropdownBib.d.ts +14 -0
  68. package/components/dropdown/dist/index.js +449 -260
  69. package/components/dropdown/dist/registered.js +449 -260
  70. package/components/form/demo/api.html +16 -9
  71. package/components/form/demo/api.md +1 -1
  72. package/components/form/demo/api.min.js +3 -3
  73. package/components/form/demo/autocomplete.html +19 -3
  74. package/components/form/demo/index.html +16 -9
  75. package/components/form/demo/index.min.js +3 -3
  76. package/components/form/demo/readme.html +16 -9
  77. package/components/form/demo/working.html +19 -13
  78. package/components/form/dist/auro-form.d.ts +1 -1
  79. package/components/form/dist/index.js +2 -2
  80. package/components/form/dist/registered.js +2 -2
  81. package/components/helptext/dist/auro-helptext.d.ts +0 -2
  82. package/components/helptext/dist/index.js +3 -5
  83. package/components/helptext/dist/registered.js +3 -5
  84. package/components/input/README.md +5 -2
  85. package/components/input/demo/api.html +16 -10
  86. package/components/input/demo/api.md +226 -132
  87. package/components/input/demo/api.min.js +1034 -297
  88. package/components/input/demo/index.html +16 -10
  89. package/components/input/demo/index.md +48 -32
  90. package/components/input/demo/index.min.js +1048 -311
  91. package/components/input/demo/readme.html +16 -9
  92. package/components/input/demo/readme.md +5 -2
  93. package/components/input/dist/auro-input.d.ts +24 -0
  94. package/components/input/dist/base-input.d.ts +45 -11
  95. package/components/input/dist/buttonVersion.d.ts +1 -1
  96. package/components/input/dist/iconVersion.d.ts +1 -1
  97. package/components/input/dist/index.js +1047 -310
  98. package/components/input/dist/registered.js +1047 -310
  99. package/components/layoutElement/dist/index.js +11 -8
  100. package/components/layoutElement/dist/registered.js +97 -0
  101. package/components/menu/demo/api.html +17 -10
  102. package/components/menu/demo/api.md +65 -8
  103. package/components/menu/demo/api.min.js +305 -63
  104. package/components/menu/demo/index.html +16 -10
  105. package/components/menu/demo/index.min.js +305 -63
  106. package/components/menu/demo/readme.html +16 -9
  107. package/components/menu/dist/auro-menu.d.ts +53 -7
  108. package/components/menu/dist/auro-menuoption.d.ts +21 -3
  109. package/components/menu/dist/iconVersion.d.ts +1 -1
  110. package/components/menu/dist/index.js +290 -48
  111. package/components/menu/dist/registered.js +290 -48
  112. package/components/menu/dist/styles/default/tokens-css.d.ts +2 -0
  113. package/components/menu/dist/styles/shapeSize-css.d.ts +2 -0
  114. package/components/radio/demo/api.html +16 -10
  115. package/components/radio/demo/api.md +39 -9
  116. package/components/radio/demo/api.min.js +92 -96
  117. package/components/radio/demo/index.html +16 -10
  118. package/components/radio/demo/index.min.js +92 -96
  119. package/components/radio/demo/readme.html +16 -9
  120. package/components/radio/dist/auro-radio-group.d.ts +1 -1
  121. package/components/radio/dist/auro-radio.d.ts +9 -12
  122. package/components/radio/dist/index.js +91 -95
  123. package/components/radio/dist/registered.js +91 -95
  124. package/components/select/demo/api.html +16 -10
  125. package/components/select/demo/api.js +0 -2
  126. package/components/select/demo/api.md +149 -122
  127. package/components/select/demo/api.min.js +2283 -736
  128. package/components/select/demo/index.html +17 -11
  129. package/components/select/demo/index.md +1066 -259
  130. package/components/select/demo/index.min.js +2284 -725
  131. package/components/select/demo/readme.html +16 -9
  132. package/components/select/dist/auro-select.d.ts +74 -25
  133. package/components/select/dist/index.js +2165 -753
  134. package/components/select/dist/registered.js +2165 -753
  135. package/package.json +31 -28
  136. /package/components/{datepicker/dist/styles/default/color-css.d.ts → counter/dist/styles/shapeSize-css.d.ts} +0 -0
  137. /package/components/{dropdown/dist/styles/default → datepicker/dist/styles/classic}/color-css.d.ts +0 -0
  138. /package/components/datepicker/dist/styles/{emphasized → classic}/style-css.d.ts +0 -0
  139. /package/components/{dropdown/dist/styles/default/bibColors-css.d.ts → datepicker/dist/styles/snowflake/color-css.d.ts} +0 -0
  140. /package/components/{dropdown/dist/styles/default → datepicker/dist/styles/snowflake}/style-css.d.ts +0 -0
  141. /package/components/dropdown/dist/styles/{default/bibStyles-css.d.ts → classic/bibColors-css.d.ts} +0 -0
  142. /package/components/{input/dist/styles/default/input-css.d.ts → dropdown/dist/styles/classic/bibStyles-css.d.ts} +0 -0
  143. /package/components/{input/dist/styles/default/label-css.d.ts → dropdown/dist/styles/classic/color-css.d.ts} +0 -0
  144. /package/components/{input/dist/styles/input-css.d.ts → dropdown/dist/styles/classic/style-css.d.ts} +0 -0
  145. /package/components/{menu/dist/styles/color-menu-css.d.ts → dropdown/dist/styles/style-css.d.ts} +0 -0
  146. /package/components/menu/dist/styles/{color-menuoption-css.d.ts → default/color-menu-css.d.ts} +0 -0
  147. /package/components/menu/dist/styles/{style-menu-css.d.ts → default/color-menuoption-css.d.ts} +0 -0
  148. /package/components/menu/dist/styles/{style-menuoption-css.d.ts → default/style-menu-css.d.ts} +0 -0
  149. /package/components/menu/dist/styles/{tokens-css.d.ts → default/style-menuoption-css.d.ts} +0 -0
@@ -9,7 +9,7 @@ const t$2=globalThis,e$4=t$2.ShadowRoot&&(void 0===t$2.ShadyCSS||t$2.ShadyCSS.na
9
9
  * @license
10
10
  * Copyright 2017 Google LLC
11
11
  * SPDX-License-Identifier: BSD-3-Clause
12
- */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");
12
+ */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");
13
13
 
14
14
  /**
15
15
  * @license
@@ -44,7 +44,7 @@ const t={ATTRIBUTE:1},e$1=t=>(...e)=>({_$litDirective$:t,values:e});let i$1 = cl
44
44
  */
45
45
  const a=Symbol.for(""),o$1=t=>{if(t?.r===a)return t?._$litStatic$},s=t=>({_$litStatic$:t,r:a}),i=(t,...r)=>({_$litStatic$:r.reduce(((r,e,a)=>r+(t=>{if(void 0!==t._$litStatic$)return t._$litStatic$;throw Error(`Value passed to 'literal' function must be a 'literal' result: ${t}. Use 'unsafeStatic' to pass non-literal values, but\n take care to ensure page security.`)})(e)+t[a+1]),t[0]),r:a}),l=new Map,n=t=>(r,...e)=>{const a=e.length;let s,i;const n=[],u=[];let c,$=0,f=false;for(;$<a;){for(c=r[$];$<a&&void 0!==(i=e[$],s=o$1(i));)c+=s+r[++$],f=true;$!==a&&u.push(i),n.push(c),$++;}if($===a&&n.push(r[a]),f){const t=n.join("$$lit$$");void 0===(r=l.get(t))&&(n.raw=n,l.set(t,r=n)),e=u;}return t(r,...e)},u=n(x);
46
46
 
47
- let AuroElement$3 = class AuroElement extends i$2 {
47
+ let AuroElement$4 = class AuroElement extends i$2 {
48
48
  static get properties() {
49
49
  return {
50
50
 
@@ -79,19 +79,22 @@ let AuroElement$3 = class AuroElement extends i$2 {
79
79
  }
80
80
 
81
81
  resetShapeClasses() {
82
- if (this.shape && this.size) {
83
- const wrapper = this.shadowRoot.querySelector('.wrapper');
82
+ const wrapper = this.shadowRoot.querySelector('.wrapper');
84
83
 
85
- if (wrapper) {
86
- wrapper.classList.forEach((className) => {
87
- if (className.startsWith('shape-')) {
88
- wrapper.classList.remove(className);
89
- }
90
- });
84
+ if (wrapper) {
85
+ wrapper.classList.forEach((className) => {
86
+ if (className.startsWith('shape-')) {
87
+ wrapper.classList.remove(className);
88
+ }
89
+ });
91
90
 
91
+ if (this.shape && this.size) {
92
92
  wrapper.classList.add(`shape-${this.shape.toLowerCase()}-${this.size.toLowerCase()}`);
93
+ } else {
94
+ wrapper.classList.add('shape-none');
93
95
  }
94
96
  }
97
+
95
98
  }
96
99
 
97
100
  resetLayoutClasses() {
@@ -136,9 +139,9 @@ let AuroElement$3 = class AuroElement extends i$2 {
136
139
  }
137
140
  };
138
141
 
139
- var shapeSizeCss$1 = i$5`.wrapper{overflow:hidden}.shape-classic-xl,.shape-classic-lg,.shape-classic-md,.shape-classic-sm,.shape-classic-xs{min-height:58px;max-height:58px;border-style:solid;border-width:1px;border-radius:var(--ds-border-radius, 0.375rem)}.shape-classic-xl.simple,.shape-classic-lg.simple,.shape-classic-md.simple,.shape-classic-sm.simple,.shape-classic-xs.simple{border-width:0px;min-height:60px;max-height:60px;background-color:unset}.shape-classic-xl.thin,.shape-classic-lg.thin,.shape-classic-md.thin,.shape-classic-sm.thin,.shape-classic-xs.thin{border-width:1px;min-height:58px;max-height:58px;background-color:unset}.shape-classic-xl.parentBorder,.shape-classic-lg.parentBorder,.shape-classic-md.parentBorder,.shape-classic-sm.parentBorder,.shape-classic-xs.parentBorder{border:0;min-height:56px;max-height:56px}.shape-snowflake-xl,.shape-snowflake-lg,.shape-snowflake-md,.shape-snowflake-sm,.shape-snowflake-xs{min-height:56px;max-height:56px;border-style:solid;border-width:2px;border-color:transparent;border-radius:30px}.shape-snowflake-xl.simple,.shape-snowflake-lg.simple,.shape-snowflake-md.simple,.shape-snowflake-sm.simple,.shape-snowflake-xs.simple{border-width:0px;min-height:60px;max-height:60px;background-color:unset}.shape-snowflake-xl.thin,.shape-snowflake-lg.thin,.shape-snowflake-md.thin,.shape-snowflake-sm.thin,.shape-snowflake-xs.thin{border-width:1px;min-height:58px;max-height:58px;background-color:unset}.shape-snowflake-xl.parentBorder,.shape-snowflake-lg.parentBorder,.shape-snowflake-md.parentBorder,.shape-snowflake-sm.parentBorder,.shape-snowflake-xs.parentBorder{border:0;min-height:56px;max-height:56px}.shape-box-xl{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent}.shape-box-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset}.shape-box-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-box-xl.parentBorder{border:0;min-height:68px;max-height:68px}.shape-rounded-lg{min-height:56px;max-height:56px;border-style:solid;border-width:2px;border-color:transparent;border-radius:6px}.shape-rounded-lg.simple{border-width:0px;min-height:56px;max-height:56px;background-color:unset}.shape-rounded-lg.thin{border-width:1px;min-height:54px;max-height:54px;background-color:unset}.shape-rounded-lg.parentBorder{border:0;min-height:52px;max-height:52px}.shape-pill-xl{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px}.shape-pill-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset}.shape-pill-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-pill-xl.parentBorder{border:0;min-height:68px;max-height:68px}.shape-pill-left-xl{min-height:72px;max-height:72px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px 0 0 36px}.shape-pill-left-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset}.shape-pill-left-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-pill-left-xl.parentBorder{border:0;min-height:68px;max-height:68px}.shape-pill-right-xl{min-height:72px;max-height:72px;border-style:solid;border-width:2px;border-color:transparent;border-radius:0 36px 36px 0}.shape-pill-right-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset}.shape-pill-right-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-pill-right-xl.parentBorder{border:0;min-height:68px;max-height:68px}.shape-pill-md{min-height:72px;max-height:72px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px}.shape-pill-md.simple{border-width:0px;min-height:48px;max-height:48px;background-color:unset}.shape-pill-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}.shape-pill-md.parentBorder{border:0;min-height:44px;max-height:44px}.shape-pill-left-md{min-height:72px;max-height:72px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px 0 0 36px}.shape-pill-left-md.simple{border-width:0px;min-height:48px;max-height:48px;background-color:unset}.shape-pill-left-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}.shape-pill-left-md.parentBorder{border:0;min-height:44px;max-height:44px}.shape-pill-right-md{min-height:72px;max-height:72px;border-style:solid;border-width:2px;border-color:transparent;border-radius:0 36px 36px 0}.shape-pill-right-md.simple{border-width:0px;min-height:48px;max-height:48px;background-color:unset}.shape-pill-right-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}.shape-pill-right-md.parentBorder{border:0;min-height:44px;max-height:44px}`;
142
+ var shapeSizeCss$2 = 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}`;
140
143
 
141
- 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}`;
144
+ var tokensCss$5 = i$5`:host(:not([ondark])){--ds-auro-select-border-color: var(--ds-basic-color-border-bold, #585e67);--ds-auro-select-background-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-select-label-text-color: var(--ds-basic-color-texticon-muted, #676767);--ds-auro-select-placeholder-text-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-select-text-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-select-error-icon-color: var(--ds-basic-color-status-error, #e31f26);--ds-auro-select-outline-color: transparent}:host([ondark]){--ds-auro-select-border-color: var(--ds-basic-color-border-inverse, #ffffff);--ds-auro-select-background-color: var(--ds-advanced-color-shared-background-inverse, rgba(255, 255, 255, 0.15));--ds-auro-select-label-text-color: var(--ds-basic-color-texticon-inverse, #ffffff);--ds-auro-select-placeholder-text-color: var(--ds-basic-color-texticon-inverse, #ffffff);--ds-auro-select-text-color: var(--ds-basic-color-texticon-inverse, #ffffff);--ds-auro-select-error-icon-color: var(--ds-basic-color-status-error-subtle, #fbc6c6);--ds-auro-select-outline-color: transparent}`;
142
145
 
143
146
  class DateFormatter {
144
147
 
@@ -556,7 +559,7 @@ const {
556
559
 
557
560
  /* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
558
561
 
559
- let AuroLibraryRuntimeUtils$4 = class AuroLibraryRuntimeUtils {
562
+ let AuroLibraryRuntimeUtils$5 = class AuroLibraryRuntimeUtils {
560
563
 
561
564
  /* eslint-disable jsdoc/require-param */
562
565
 
@@ -626,7 +629,7 @@ let AuroLibraryRuntimeUtils$4 = class AuroLibraryRuntimeUtils {
626
629
  class AuroFormValidation {
627
630
 
628
631
  constructor() {
629
- this.runtimeUtils = new AuroLibraryRuntimeUtils$4();
632
+ this.runtimeUtils = new AuroLibraryRuntimeUtils$5();
630
633
  }
631
634
 
632
635
  /**
@@ -686,19 +689,19 @@ class AuroFormValidation {
686
689
  {
687
690
  check: (e) => e.value?.length > 0 && e.value?.length < e.minLength,
688
691
  validity: 'tooShort',
689
- message: e => e.setCustomValidityTooShort || e.setCustomValidity || ''
692
+ message: e => e.getAttribute('setCustomValidityTooShort') || e.setCustomValidity || ''
690
693
  },
691
694
  {
692
695
  check: (e) => e.value?.length > e.maxLength,
693
696
  validity: 'tooLong',
694
- message: e => e.setCustomValidityTooLong || e.setCustomValidity || ''
697
+ message: e => e.getAttribute('setCustomValidityTooLong') || e.setCustomValidity || ''
695
698
  }
696
699
  ],
697
700
  pattern: [
698
701
  {
699
702
  check: (e) => e.pattern && !new RegExp(`^${e.pattern}$`, 'u').test(e.value),
700
703
  validity: 'patternMismatch',
701
- message: e => e.setCustomValidityPatternMismatch || e.setCustomValidity || ''
704
+ message: e => e.getAttribute('setCustomValidityPatternMismatch') || e.setCustomValidity || ''
702
705
  }
703
706
  ]
704
707
  },
@@ -845,13 +848,24 @@ class AuroFormValidation {
845
848
  this.getInputElements(elem);
846
849
  this.getAuroInputs(elem);
847
850
 
848
- // Validate only if noValidate is not true and the input does not have focus
851
+ // Check if validation should run
849
852
  let validationShouldRun =
853
+
854
+ // If the validation was forced
850
855
  force ||
851
- (!elem.contains(document.activeElement) &&
852
- (elem.touched ||
853
- (!elem.touched && typeof elem.value !== "undefined"))) ||
854
- elem.validateOnInput;
856
+
857
+ // If the validation should run on input
858
+ elem.validateOnInput ||
859
+
860
+ // State-based checks
861
+ (
862
+ // Element is not currently focused
863
+ !elem.contains(document.activeElement) && // native input is not focused directly
864
+ !document.activeElement.shadowRoot?.contains(elem) && // native input is not focused in the shadow DOM of another component
865
+
866
+ // And element has been touched or is untouched but has a value
867
+ ( elem.touched || (!elem.touched && typeof elem.value !== "undefined") )
868
+ );
855
869
 
856
870
  if (elem.hasAttribute('error')) {
857
871
  elem.validity = 'customError';
@@ -893,10 +907,10 @@ class AuroFormValidation {
893
907
  if (!hasValue && elem.required && elem.touched) {
894
908
  elem.validity = 'valueMissing';
895
909
  elem.errorMessage = elem.setCustomValidityValueMissing || elem.setCustomValidity || '';
896
- } else if (this.runtimeUtils.elementMatch(elem, 'auro-input')) {
910
+ } else if (hasValue && this.runtimeUtils.elementMatch(elem, 'auro-input')) {
897
911
  this.validateType(elem);
898
912
  this.validateElementAttributes(elem);
899
- } else if (this.runtimeUtils.elementMatch(elem, 'auro-counter') || this.runtimeUtils.elementMatch(elem, 'auro-counter-group')) {
913
+ } else if (hasValue && (this.runtimeUtils.elementMatch(elem, 'auro-counter') || this.runtimeUtils.elementMatch(elem, 'auro-counter-group'))) {
900
914
  this.validateElementAttributes(elem);
901
915
  }
902
916
  }
@@ -905,7 +919,9 @@ class AuroFormValidation {
905
919
  elem.validity = this.auroInputElements[0].validity;
906
920
  elem.errorMessage = this.auroInputElements[0].errorMessage;
907
921
 
908
- if (elem.validity === 'valid' && this.auroInputElements.length > 1) {
922
+ // combobox has 2 inputs but no need to check validity on the 2nd one which is in fullscreen bib.
923
+ // combobox's 2nd input will have noValidate set true.
924
+ if (elem.validity === 'valid' && this.auroInputElements.length > 1 && !this.auroInputElements[1].noValidate) {
909
925
  elem.validity = this.auroInputElements[1].validity;
910
926
  elem.errorMessage = this.auroInputElements[1].errorMessage;
911
927
  }
@@ -2717,7 +2733,7 @@ class AuroFloatingUI {
2717
2733
  */
2718
2734
  mirrorSize() {
2719
2735
  // mirror the boxsize from bibSizer
2720
- if (this.element.bibSizer) {
2736
+ if (this.element.bibSizer && this.element.matchWidth) {
2721
2737
  const sizerStyle = window.getComputedStyle(this.element.bibSizer);
2722
2738
  const bibContent = this.element.bib.shadowRoot.querySelector(".container");
2723
2739
  if (sizerStyle.width !== '0px') {
@@ -2853,6 +2869,7 @@ class AuroFloatingUI {
2853
2869
  this.element.bib.style.left = "0px";
2854
2870
  this.element.bib.style.width = '';
2855
2871
  this.element.bib.style.height = '';
2872
+ this.element.style.contain = '';
2856
2873
 
2857
2874
  // reset the size that was mirroring `size` css-part
2858
2875
  const bibContent = this.element.bib.shadowRoot.querySelector(".container");
@@ -2877,6 +2894,7 @@ class AuroFloatingUI {
2877
2894
  this.element.bib.style.position = '';
2878
2895
  this.element.bib.removeAttribute('isfullscreen');
2879
2896
  this.element.isBibFullscreen = false;
2897
+ this.element.style.contain = 'layout';
2880
2898
  }
2881
2899
 
2882
2900
  const isChanged = this.strategy && this.strategy !== value;
@@ -2929,13 +2947,13 @@ class AuroFloatingUI {
2929
2947
  if (this.element.contains(activeElement) || this.element.bib?.contains(activeElement)) {
2930
2948
  return;
2931
2949
  }
2932
-
2950
+
2933
2951
  // if fullscreen bib is in fullscreen mode, do not close
2934
2952
  if (this.element.bib.hasAttribute('isfullscreen')) {
2935
2953
  return;
2936
2954
  }
2937
2955
 
2938
- this.hideBib();
2956
+ this.hideBib("keydown");
2939
2957
  }
2940
2958
 
2941
2959
  setupHideHandlers() {
@@ -2960,7 +2978,7 @@ class AuroFloatingUI {
2960
2978
  document.expandedAuroFormkitDropdown = null;
2961
2979
  document.expandedAuroFloater = this;
2962
2980
  } else {
2963
- this.hideBib();
2981
+ this.hideBib("click");
2964
2982
  }
2965
2983
  }
2966
2984
  };
@@ -2973,7 +2991,7 @@ class AuroFloatingUI {
2973
2991
  // if something else is open, let it handle itself
2974
2992
  return;
2975
2993
  }
2976
- this.hideBib();
2994
+ this.hideBib("keydown");
2977
2995
  }
2978
2996
  };
2979
2997
 
@@ -3056,7 +3074,11 @@ class AuroFloatingUI {
3056
3074
  }
3057
3075
  }
3058
3076
 
3059
- hideBib() {
3077
+ /**
3078
+ * Hides the floating UI element.
3079
+ * @param {String} eventType - The event type that triggered the hiding action.
3080
+ */
3081
+ hideBib(eventType = "unknown") {
3060
3082
  if (!this.element.disabled && !this.element.noToggle) {
3061
3083
  this.lockScroll(false);
3062
3084
  this.element.triggerChevron?.removeAttribute('data-expanded');
@@ -3067,7 +3089,7 @@ class AuroFloatingUI {
3067
3089
  if (this.showing) {
3068
3090
  this.cleanupHideHandlers();
3069
3091
  this.showing = false;
3070
- this.dispatchEventDropdownToggle();
3092
+ this.dispatchEventDropdownToggle(eventType);
3071
3093
  }
3072
3094
  }
3073
3095
  document.expandedAuroFloater = null;
@@ -3076,11 +3098,13 @@ class AuroFloatingUI {
3076
3098
  /**
3077
3099
  * @private
3078
3100
  * @returns {void} Dispatches event with an object showing the state of the dropdown.
3101
+ * @param {String} eventType - The event type that triggered the toggle action.
3079
3102
  */
3080
- dispatchEventDropdownToggle() {
3103
+ dispatchEventDropdownToggle(eventType) {
3081
3104
  const event = new CustomEvent(this.eventPrefix ? `${this.eventPrefix}-toggled` : 'toggled', {
3082
3105
  detail: {
3083
3106
  expanded: this.showing,
3107
+ eventType: eventType || "unknown",
3084
3108
  },
3085
3109
  composed: true
3086
3110
  });
@@ -3090,7 +3114,7 @@ class AuroFloatingUI {
3090
3114
 
3091
3115
  handleClick() {
3092
3116
  if (this.element.isPopoverVisible) {
3093
- this.hideBib();
3117
+ this.hideBib("click");
3094
3118
  } else {
3095
3119
  this.showBib();
3096
3120
  }
@@ -3113,8 +3137,9 @@ class AuroFloatingUI {
3113
3137
  // Space is included as it's expected behavior for interactive elements
3114
3138
 
3115
3139
  const origin = event.composedPath()[0];
3116
- if (event.key === 'Enter' || ((!origin || origin.tagName !== "INPUT") && event.key === ' ')) {
3117
- event.preventDefault(); // Prevent page scroll on space
3140
+ if (event.key === 'Enter' || event.key === ' ' && (!origin || origin.tagName !== "INPUT")) {
3141
+
3142
+ event.preventDefault();
3118
3143
  this.handleClick();
3119
3144
  }
3120
3145
  break;
@@ -3125,7 +3150,7 @@ class AuroFloatingUI {
3125
3150
  break;
3126
3151
  case 'mouseleave':
3127
3152
  if (this.element.hoverToggle) {
3128
- this.hideBib();
3153
+ this.hideBib("mouseleave");
3129
3154
  }
3130
3155
  break;
3131
3156
  case 'focus':
@@ -3268,6 +3293,267 @@ class AuroFloatingUI {
3268
3293
  }
3269
3294
  }
3270
3295
 
3296
+ // Selectors for focusable elements
3297
+ const FOCUSABLE_SELECTORS = [
3298
+ 'a[href]',
3299
+ 'button:not([disabled])',
3300
+ 'textarea:not([disabled])',
3301
+ 'input:not([disabled])',
3302
+ 'select:not([disabled])',
3303
+ '[role="tab"]:not([disabled])',
3304
+ '[role="link"]:not([disabled])',
3305
+ '[role="button"]:not([disabled])',
3306
+ '[tabindex]:not([tabindex="-1"])',
3307
+ '[contenteditable]:not([contenteditable="false"])'
3308
+ ];
3309
+
3310
+ // List of custom components that are known to be focusable
3311
+ const FOCUSABLE_COMPONENTS = [
3312
+ 'auro-checkbox',
3313
+ 'auro-radio',
3314
+ 'auro-dropdown',
3315
+ 'auro-button',
3316
+ 'auro-combobox',
3317
+ 'auro-input',
3318
+ 'auro-counter',
3319
+ 'auro-menu',
3320
+ 'auro-select',
3321
+ 'auro-datepicker',
3322
+ 'auro-hyperlink',
3323
+ 'auro-accordion',
3324
+ ];
3325
+
3326
+ /**
3327
+ * Determines if a given element is a custom focusable component.
3328
+ * Returns true if the element matches a known focusable component and is not disabled.
3329
+ *
3330
+ * @param {HTMLElement} element The element to check for focusability.
3331
+ * @returns {boolean} True if the element is a focusable custom component, false otherwise.
3332
+ */
3333
+ function isFocusableComponent(element) {
3334
+ const componentName = element.tagName.toLowerCase();
3335
+
3336
+ // Guard Clause: Element is a focusable component
3337
+ if (!FOCUSABLE_COMPONENTS.some((name) => element.hasAttribute(name) || componentName === name)) return false;
3338
+
3339
+ // Guard Clause: Element is not disabled
3340
+ if (element.hasAttribute('disabled')) return false;
3341
+
3342
+ // Guard Clause: The element is a hyperlink and has no href attribute
3343
+ if (componentName.match("hyperlink") && !element.hasAttribute('href')) return false;
3344
+
3345
+ // If all guard clauses pass, the element is a focusable component
3346
+ return true;
3347
+ }
3348
+
3349
+ /**
3350
+ * Retrieves all focusable elements within the container in DOM order, including those in shadow DOM and slots.
3351
+ * Returns a unique, ordered array of elements that can receive focus.
3352
+ *
3353
+ * @param {HTMLElement} container The container to search within
3354
+ * @returns {Array<HTMLElement>} An array of focusable elements within the container.
3355
+ */
3356
+ function getFocusableElements(container) {
3357
+ // Get elements in DOM order by walking the tree
3358
+ const orderedFocusableElements = [];
3359
+
3360
+ // Define a recursive function to collect focusable elements in DOM order
3361
+ const collectFocusableElements = (root) => {
3362
+ // Check if current element is focusable
3363
+ if (root.nodeType === Node.ELEMENT_NODE) {
3364
+ // Check if this is a custom component that is focusable
3365
+ const isComponentFocusable = isFocusableComponent(root);
3366
+
3367
+ if (isComponentFocusable) {
3368
+ // Add the component itself as a focusable element and don't traverse its shadow DOM
3369
+ orderedFocusableElements.push(root);
3370
+ return; // Skip traversing inside this component
3371
+ }
3372
+
3373
+ // Check if the element itself matches any selector
3374
+ for (const selector of FOCUSABLE_SELECTORS) {
3375
+ if (root.matches?.(selector)) {
3376
+ orderedFocusableElements.push(root);
3377
+ break; // Once we know it's focusable, no need to check other selectors
3378
+ }
3379
+ }
3380
+
3381
+ // Process shadow DOM only for non-Auro components
3382
+ if (root.shadowRoot) {
3383
+ // Process shadow DOM children in order
3384
+ if (root.shadowRoot.children) {
3385
+ Array.from(root.shadowRoot.children).forEach(child => {
3386
+ collectFocusableElements(child);
3387
+ });
3388
+ }
3389
+ }
3390
+
3391
+ // Process slots and their assigned nodes in order
3392
+ if (root.tagName === 'SLOT') {
3393
+ const assignedNodes = root.assignedNodes({ flatten: true });
3394
+ for (const node of assignedNodes) {
3395
+ collectFocusableElements(node);
3396
+ }
3397
+ } else {
3398
+ // Process light DOM children in order
3399
+ if (root.children) {
3400
+ Array.from(root.children).forEach(child => {
3401
+ collectFocusableElements(child);
3402
+ });
3403
+ }
3404
+ }
3405
+ }
3406
+ };
3407
+
3408
+ // Start the traversal from the container
3409
+ collectFocusableElements(container);
3410
+
3411
+ // Remove duplicates that might have been collected through different paths
3412
+ // while preserving order
3413
+ const uniqueElements = [];
3414
+ const seen = new Set();
3415
+
3416
+ for (const element of orderedFocusableElements) {
3417
+ if (!seen.has(element)) {
3418
+ seen.add(element);
3419
+ uniqueElements.push(element);
3420
+ }
3421
+ }
3422
+
3423
+ return uniqueElements;
3424
+ }
3425
+
3426
+ /**
3427
+ * FocusTrap manages keyboard focus within a specified container element, ensuring that focus does not leave the container when tabbing.
3428
+ * It is commonly used for modal dialogs or overlays to improve accessibility by trapping focus within interactive UI components.
3429
+ */
3430
+ class FocusTrap {
3431
+ /**
3432
+ * Creates a new FocusTrap instance for the given container element.
3433
+ * Initializes event listeners and prepares the container for focus management.
3434
+ *
3435
+ * @param {HTMLElement} container The DOM element to trap focus within.
3436
+ * @throws {Error} If the provided container is not a valid HTMLElement.
3437
+ */
3438
+ constructor(container) {
3439
+ if (!container || !(container instanceof HTMLElement)) {
3440
+ throw new Error("FocusTrap requires a valid HTMLElement.");
3441
+ }
3442
+
3443
+ this.container = container;
3444
+ this.tabDirection = 'forward'; // or 'backward'
3445
+
3446
+ this._init();
3447
+ }
3448
+
3449
+ /**
3450
+ * Initializes the focus trap by setting up event listeners and attributes on the container.
3451
+ * Prepares the container for focus management, including support for shadow DOM and inert attributes.
3452
+ *
3453
+ * @private
3454
+ */
3455
+ _init() {
3456
+
3457
+ // Add inert attribute to prevent focusing programmatically as well (if supported)
3458
+ if ('inert' in HTMLElement.prototype) {
3459
+ this.container.inert = false; // Ensure the container isn't inert
3460
+ this.container.setAttribute('data-focus-trap-container', true); // Mark for identification
3461
+ }
3462
+
3463
+ // Track tab direction
3464
+ this.container.addEventListener('keydown', this._onKeydown);
3465
+ }
3466
+
3467
+ /**
3468
+ * Handles keydown events to manage tab navigation within the container.
3469
+ * Ensures that focus wraps around when reaching the first or last focusable element.
3470
+ *
3471
+ * @param {KeyboardEvent} e The keyboard event triggered by user interaction.
3472
+ * @private
3473
+ */
3474
+ _onKeydown = (e) => {
3475
+
3476
+ if (e.key === 'Tab') {
3477
+
3478
+ // Set the tab direction based on the key pressed
3479
+ this.tabDirection = e.shiftKey ? 'backward' : 'forward';
3480
+
3481
+ // Get the active element(s) in the document and shadow root
3482
+ // This will include the active element in the shadow DOM if it exists
3483
+ // Active element may be inside the shadow DOM depending on delegatesFocus, so we need to check both
3484
+ let activeElement = document.activeElement;
3485
+ const actives = [activeElement];
3486
+ while (activeElement?.shadowRoot?.activeElement) {
3487
+ actives.push(activeElement.shadowRoot.activeElement);
3488
+ activeElement = activeElement.shadowRoot.activeElement;
3489
+ }
3490
+
3491
+ // Update the focusable elements
3492
+ const focusables = this._getFocusableElements();
3493
+
3494
+ // If we're at either end of the focusable elements, wrap around to the other end
3495
+ const focusIndex =
3496
+ (actives.includes(focusables[0]) || actives.includes(this.container)) && this.tabDirection === 'backward'
3497
+ ? focusables.length - 1
3498
+ : actives.includes(focusables[focusables.length - 1]) && this.tabDirection === 'forward'
3499
+ ? 0
3500
+ : null;
3501
+
3502
+ if (focusIndex !== null) {
3503
+ focusables[focusIndex].focus();
3504
+ e.preventDefault(); // Prevent default tab behavior
3505
+ e.stopPropagation(); // Stop the event from bubbling up
3506
+ }
3507
+ }
3508
+ };
3509
+
3510
+ /**
3511
+ * Retrieves all focusable elements within the container in DOM order, including those in shadow DOM and slots.
3512
+ * Returns a unique, ordered array of elements that can receive focus.
3513
+ *
3514
+ * @returns {Array<HTMLElement>} An array of focusable elements within the container.
3515
+ * @private
3516
+ */
3517
+ _getFocusableElements() {
3518
+ // Use the imported utility function to get focusable elements
3519
+ const elements = getFocusableElements(this.container);
3520
+
3521
+ // Filter out any elements with the 'focus-bookend' class
3522
+ return elements;
3523
+ }
3524
+
3525
+ /**
3526
+ * Moves focus to the first focusable element within the container.
3527
+ * Useful for setting initial focus when activating the focus trap.
3528
+ */
3529
+ focusFirstElement() {
3530
+ const focusables = this._getFocusableElements();
3531
+ if (focusables.length) focusables[0].focus();
3532
+ }
3533
+
3534
+ /**
3535
+ * Moves focus to the last focusable element within the container.
3536
+ * Useful for setting focus when deactivating or cycling focus in reverse.
3537
+ */
3538
+ focusLastElement() {
3539
+ const focusables = this._getFocusableElements();
3540
+ if (focusables.length) focusables[focusables.length - 1].focus();
3541
+ }
3542
+
3543
+ /**
3544
+ * Removes event listeners and attributes added by the focus trap.
3545
+ * Call this method to clean up when the focus trap is no longer needed.
3546
+ */
3547
+ disconnect() {
3548
+
3549
+ if (this.container.hasAttribute('data-focus-trap-container')) {
3550
+ this.container.removeAttribute('data-focus-trap-container');
3551
+ }
3552
+
3553
+ this.container.removeEventListener('keydown', this._onKeydown);
3554
+ }
3555
+ }
3556
+
3271
3557
  // Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
3272
3558
  // See LICENSE in the project root for license information.
3273
3559
 
@@ -3374,7 +3660,7 @@ const cacheFetch$2 = (uri, options = {}) => {
3374
3660
  return _fetchMap$2.get(uri);
3375
3661
  };
3376
3662
 
3377
- 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}`;
3663
+ 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}`;
3378
3664
 
3379
3665
  // Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
3380
3666
  // See LICENSE in the project root for license information.
@@ -3417,7 +3703,7 @@ let BaseIcon$2 = class BaseIcon extends AuroElement$1$1 {
3417
3703
 
3418
3704
  static get styles() {
3419
3705
  return i$5`
3420
- ${styleCss$2$2}
3706
+ ${styleCss$3$2}
3421
3707
  `;
3422
3708
  }
3423
3709
 
@@ -3458,9 +3744,9 @@ let BaseIcon$2 = class BaseIcon extends AuroElement$1$1 {
3458
3744
  }
3459
3745
  };
3460
3746
 
3461
- var tokensCss$2$1 = i$5`:host{--ds-auro-icon-color:var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-alaska-color:#02426D;--ds-auro-icon-size:var(--ds-size-300, 1.5rem)}`;
3747
+ var tokensCss$2$2 = i$5`:host{--ds-auro-icon-color:var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-alaska-color:#02426D;--ds-auro-icon-size:var(--ds-size-300, 1.5rem)}`;
3462
3748
 
3463
- var colorCss$3$1 = i$5`:host{color:var(--ds-auro-icon-color)}:host([customColor]){color:inherit}:host(:not([onDark])[variant=accent1]){--ds-auro-icon-color:var(--ds-basic-color-texticon-accent1, #265688)}:host(:not([onDark])[variant=disabled]){--ds-auro-icon-color:var(--ds-basic-color-texticon-disabled, #d0d0d0)}:host(:not([onDark])[variant=muted]){--ds-auro-icon-color:var(--ds-basic-color-texticon-muted, #676767)}:host(:not([onDark])[variant=statusDefault]){--ds-auro-icon-color:var(--ds-basic-color-status-default, #afb9c6)}:host(:not([onDark])[variant=statusInfo]){--ds-auro-icon-color:var(--ds-basic-color-status-info, #01426a)}:host(:not([onDark])[variant=statusSuccess]){--ds-auro-icon-color:var(--ds-basic-color-status-success, #447a1f)}:host(:not([onDark])[variant=statusWarning]){--ds-auro-icon-color:var(--ds-basic-color-status-warning, #fac200)}:host(:not([onDark])[variant=statusError]){--ds-auro-icon-color:var(--ds-basic-color-status-error, #e31f26)}:host(:not([onDark])[variant=statusInfoSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-info-subtle, #ebf3f9)}:host(:not([onDark])[variant=statusSuccessSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-success-subtle, #d6eac7)}:host(:not([onDark])[variant=statusWarningSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-warning-subtle, #fff0b2)}:host(:not([onDark])[variant=statusErrorSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-error-subtle, #fbc6c6)}:host(:not([onDark])[variant=fareBasicEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-basiceconomy, #97eaf8)}:host(:not([onDark])[variant=fareBusiness]){--ds-auro-icon-color:var(--ds-basic-color-fare-business, #01426a)}:host(:not([onDark])[variant=fareEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-economy, #0074ca)}:host(:not([onDark])[variant=fareFirst]){--ds-auro-icon-color:var(--ds-basic-color-fare-first, #00274a)}:host(:not([onDark])[variant=farePremiumEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-premiumeconomy, #005154)}:host(:not([onDark])[variant=tierOneWorldEmerald]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-emerald, #139142)}:host(:not([onDark])[variant=tierOneWorldSapphire]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-sapphire, #015daa)}:host(:not([onDark])[variant=tierOneWorldRuby]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-ruby, #a41d4a)}:host([onDark]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse, #ffffff)}:host([onDark][variant=disabled]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}:host([onDark][variant=muted]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}:host([onDark][variant=statusError]){--ds-auro-icon-color:var(--ds-advanced-color-state-error-inverse, #f9a4a8)}`;
3749
+ var colorCss$3$2 = i$5`:host{color:var(--ds-auro-icon-color)}:host([customColor]){color:inherit}:host(:not([onDark])[variant=accent1]){--ds-auro-icon-color:var(--ds-basic-color-texticon-accent1, #265688)}:host(:not([onDark])[variant=disabled]){--ds-auro-icon-color:var(--ds-basic-color-texticon-disabled, #d0d0d0)}:host(:not([onDark])[variant=muted]){--ds-auro-icon-color:var(--ds-basic-color-texticon-muted, #676767)}:host(:not([onDark])[variant=statusDefault]){--ds-auro-icon-color:var(--ds-basic-color-status-default, #afb9c6)}:host(:not([onDark])[variant=statusInfo]){--ds-auro-icon-color:var(--ds-basic-color-status-info, #01426a)}:host(:not([onDark])[variant=statusSuccess]){--ds-auro-icon-color:var(--ds-basic-color-status-success, #447a1f)}:host(:not([onDark])[variant=statusWarning]){--ds-auro-icon-color:var(--ds-basic-color-status-warning, #fac200)}:host(:not([onDark])[variant=statusError]){--ds-auro-icon-color:var(--ds-basic-color-status-error, #e31f26)}:host(:not([onDark])[variant=statusInfoSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-info-subtle, #ebf3f9)}:host(:not([onDark])[variant=statusSuccessSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-success-subtle, #d6eac7)}:host(:not([onDark])[variant=statusWarningSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-warning-subtle, #fff0b2)}:host(:not([onDark])[variant=statusErrorSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-error-subtle, #fbc6c6)}:host(:not([onDark])[variant=fareBasicEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-basiceconomy, #97eaf8)}:host(:not([onDark])[variant=fareBusiness]){--ds-auro-icon-color:var(--ds-basic-color-fare-business, #01426a)}:host(:not([onDark])[variant=fareEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-economy, #0074ca)}:host(:not([onDark])[variant=fareFirst]){--ds-auro-icon-color:var(--ds-basic-color-fare-first, #00274a)}:host(:not([onDark])[variant=farePremiumEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-premiumeconomy, #005154)}:host(:not([onDark])[variant=tierOneWorldEmerald]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-emerald, #139142)}:host(:not([onDark])[variant=tierOneWorldSapphire]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-sapphire, #015daa)}:host(:not([onDark])[variant=tierOneWorldRuby]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-ruby, #a41d4a)}:host([onDark]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse, #ffffff)}:host([onDark][variant=disabled]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}:host([onDark][variant=muted]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}:host([onDark][variant=statusError]){--ds-auro-icon-color:var(--ds-advanced-color-state-error-inverse, #f9a4a8)}`;
3464
3750
 
3465
3751
  // Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
3466
3752
  // See LICENSE in the project root for license information.
@@ -3618,9 +3904,9 @@ let AuroIcon$2 = class AuroIcon extends BaseIcon$2 {
3618
3904
  static get styles() {
3619
3905
  return [
3620
3906
  super.styles,
3621
- i$5`${tokensCss$2$1}`,
3622
- i$5`${styleCss$2$2}`,
3623
- i$5`${colorCss$3$1}`
3907
+ i$5`${tokensCss$2$2}`,
3908
+ i$5`${styleCss$3$2}`,
3909
+ i$5`${colorCss$3$2}`
3624
3910
  ];
3625
3911
  }
3626
3912
 
@@ -3654,8 +3940,12 @@ let AuroIcon$2 = class AuroIcon extends BaseIcon$2 {
3654
3940
  async firstUpdated() {
3655
3941
  await super.firstUpdated();
3656
3942
 
3657
- // Removes the SVG description for screenreader if ariaHidden is set to true
3658
- if (!this.hasAttribute('ariaHidden') && this.svg) {
3943
+ /**
3944
+ * icons provide a description for screen readers. Icon only instances Auro-button
3945
+ * depend on this description to provide context for the user using a screen reader.
3946
+ * Removes the SVG description for screen reader if ariaHidden is set to true.
3947
+ */
3948
+ if (this.hasAttribute('ariaHidden') && this.svg) {
3659
3949
  const svgDesc = this.svg.querySelector('desc');
3660
3950
 
3661
3951
  if (svgDesc) {
@@ -3701,11 +3991,11 @@ let AuroIcon$2 = class AuroIcon extends BaseIcon$2 {
3701
3991
 
3702
3992
  var iconVersion$2 = '6.1.2';
3703
3993
 
3704
- var styleCss$1$2 = i$5`:host{position:fixed;z-index:var(--depth-tooltip, 400);display:none;isolation:isolate}.container{display:inline-block;overflow:auto;box-sizing:border-box;margin:var(--ds-size-50, 0.25rem) 0}:host([isfullscreen]){position:fixed;top:0;left:0}:host([isfullscreen]) .container{width:100dvw;max-width:none;height:100dvh;max-height:none;border-radius:unset;margin-top:0;box-shadow:unset;overscroll-behavior:contain}:host([data-show]){display:flex}:host([common]:not([isfullscreen])) .container,:host([rounded]:not([isfullscreen])) .container{border-radius:var(--ds-border-radius, 0.375rem)}:host([common][isfullscreen]) .container,:host([rounded][isfullscreen]) .container{border-radius:unset;box-shadow:unset}`;
3994
+ 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}`;
3705
3995
 
3706
- var colorCss$2$1 = i$5`.container{background-color:var(--ds-auro-dropdownbib-container-color);box-shadow:var(--ds-auro-dropdownbib-boxshadow-color);color:var(--ds-auro-dropdownbib-text-color)}`;
3996
+ var colorCss$2$2 = i$5`.container{background-color:var(--ds-auro-dropdownbib-container-color);box-shadow:var(--ds-auro-dropdownbib-boxshadow-color);color:var(--ds-auro-dropdownbib-text-color)}`;
3707
3997
 
3708
- var tokensCss$1$1 = i$5`:host(:not([ondark])){--ds-auro-dropdown-label-text-color: var(--ds-basic-color-texticon-muted, #676767);--ds-auro-dropdown-trigger-background-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-dropdown-trigger-container-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-dropdown-trigger-border-color: transparent;--ds-auro-dropdown-trigger-outline-color: transparent;--ds-auro-dropdown-trigger-text-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-dropdown-helptext-text-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-dropdownbib-boxshadow-color: var(--ds-elevation-200, 0px 0px 10px rgba(0, 0, 0, 0.15));--ds-auro-dropdownbib-background-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-dropdownbib-container-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-dropdownbib-text-color: var(--ds-basic-color-texticon-default, #2a2a2a)}:host([ondark]){--ds-auro-dropdown-label-text-color: var(--ds-basic-color-texticon-inverse-muted, #ccd2db);--ds-auro-dropdown-trigger-background-color: var(--ds-advanced-color-shared-background-inverse, rgba(255, 255, 255, 0.15));--ds-auro-dropdown-trigger-container-color: var(--ds-advanced-color-shared-background-inverse, rgba(255, 255, 255, 0.15));--ds-auro-dropdown-trigger-border-color: transparent;--ds-auro-dropdown-trigger-outline-color: transparent;--ds-auro-dropdown-trigger-text-color: var(--ds-basic-color-texticon-inverse, #ffffff);--ds-auro-dropdown-helptext-text-color: var(--ds-basic-color-texticon-inverse, #ffffff);--ds-auro-dropdownbib-boxshadow-color: var(--ds-elevation-200, 0px 0px 10px rgba(0, 0, 0, 0.15));--ds-auro-dropdownbib-background-color: var(--ds-advanced-color-shared-background-inverse, rgba(255, 255, 255, 0.15));--ds-auro-dropdownbib-container-color: var(--ds-advanced-color-shared-background-inverse, rgba(255, 255, 255, 0.15));--ds-auro-dropdownbib-text-color: var(--ds-basic-color-texticon-inverse, #ffffff)}`;
3998
+ 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)}`;
3709
3999
 
3710
4000
  // Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
3711
4001
  // See LICENSE in the project root for license information.
@@ -3726,7 +4016,7 @@ const DESIGN_TOKEN_BREAKPOINT_OPTIONS = [
3726
4016
  */
3727
4017
 
3728
4018
  class AuroDropdownBib extends i$2 {
3729
-
4019
+ // not extending AuroElement because Bib needs only `shape` prop
3730
4020
  constructor() {
3731
4021
  super();
3732
4022
 
@@ -3736,13 +4026,16 @@ class AuroDropdownBib extends i$2 {
3736
4026
  this._mobileBreakpointValue = undefined;
3737
4027
 
3738
4028
  AuroLibraryRuntimeUtils$2$1.prototype.handleComponentTagRename(this, 'auro-dropdownbib');
4029
+
4030
+ this.shape = "rounded";
4031
+ this.matchWidth = false;
3739
4032
  }
3740
4033
 
3741
4034
  static get styles() {
3742
4035
  return [
3743
- styleCss$1$2,
3744
- colorCss$2$1,
3745
- tokensCss$1$1
4036
+ styleCss$2$2,
4037
+ colorCss$2$2,
4038
+ tokensCss$1$2
3746
4039
  ];
3747
4040
  }
3748
4041
 
@@ -3773,6 +4066,15 @@ class AuroDropdownBib extends i$2 {
3773
4066
  reflect: true
3774
4067
  },
3775
4068
 
4069
+ /**
4070
+ * If declared, the bib width will match the trigger width.
4071
+ * @private
4072
+ */
4073
+ matchWidth: {
4074
+ type: Boolean,
4075
+ reflect: true
4076
+ },
4077
+
3776
4078
  /**
3777
4079
  * If declared, will apply border-radius to the bib.
3778
4080
  */
@@ -3786,6 +4088,11 @@ class AuroDropdownBib extends i$2 {
3786
4088
  */
3787
4089
  bibTemplate: {
3788
4090
  type: Object
4091
+ },
4092
+
4093
+ shape: {
4094
+ type: String,
4095
+ reflect: true
3789
4096
  }
3790
4097
  };
3791
4098
  }
@@ -3865,8 +4172,16 @@ class AuroDropdownBib extends i$2 {
3865
4172
 
3866
4173
  // function that renders the HTML and CSS into the scope of the component
3867
4174
  render() {
4175
+ const classes = {
4176
+ container: true
4177
+ };
4178
+
4179
+ // Since this class does not inherit from AuroElement, we apply the shape-related class within the `render` function,
4180
+ // mimicking the class naming convention used in AuroElement.resetShapeClasses.
4181
+ classes[`shape-${this.shape}`] = true;
4182
+
3868
4183
  return u`
3869
- <div class="container" part="bibContainer">
4184
+ <div class="${e(classes)}" part="bibContainer">
3870
4185
  <slot></slot>
3871
4186
  </div>
3872
4187
  `;
@@ -3875,21 +4190,23 @@ class AuroDropdownBib extends i$2 {
3875
4190
 
3876
4191
  var dropdownVersion$1 = '3.0.0';
3877
4192
 
3878
- var shapeSizeCss = i$5`.wrapper{overflow:hidden}.shape-classic-xl,.shape-classic-lg,.shape-classic-md,.shape-classic-sm,.shape-classic-xs{min-height:58px;max-height:58px;border-style:solid;border-width:1px;border-radius:var(--ds-border-radius, 0.375rem)}.shape-classic-xl.simple,.shape-classic-lg.simple,.shape-classic-md.simple,.shape-classic-sm.simple,.shape-classic-xs.simple{border-width:0px;min-height:60px;max-height:60px;background-color:unset}.shape-classic-xl.thin,.shape-classic-lg.thin,.shape-classic-md.thin,.shape-classic-sm.thin,.shape-classic-xs.thin{border-width:1px;min-height:58px;max-height:58px;background-color:unset}.shape-classic-xl.parentBorder,.shape-classic-lg.parentBorder,.shape-classic-md.parentBorder,.shape-classic-sm.parentBorder,.shape-classic-xs.parentBorder{border:0;min-height:56px;max-height:56px}.shape-snowflake-xl,.shape-snowflake-lg,.shape-snowflake-md,.shape-snowflake-sm,.shape-snowflake-xs{min-height:56px;max-height:56px;border-style:solid;border-width:2px;border-color:transparent;border-radius:30px}.shape-snowflake-xl.simple,.shape-snowflake-lg.simple,.shape-snowflake-md.simple,.shape-snowflake-sm.simple,.shape-snowflake-xs.simple{border-width:0px;min-height:60px;max-height:60px;background-color:unset}.shape-snowflake-xl.thin,.shape-snowflake-lg.thin,.shape-snowflake-md.thin,.shape-snowflake-sm.thin,.shape-snowflake-xs.thin{border-width:1px;min-height:58px;max-height:58px;background-color:unset}.shape-snowflake-xl.parentBorder,.shape-snowflake-lg.parentBorder,.shape-snowflake-md.parentBorder,.shape-snowflake-sm.parentBorder,.shape-snowflake-xs.parentBorder{border:0;min-height:56px;max-height:56px}.shape-box-xl{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent}.shape-box-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset}.shape-box-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-box-xl.parentBorder{border:0;min-height:68px;max-height:68px}.shape-rounded-lg{min-height:56px;max-height:56px;border-style:solid;border-width:2px;border-color:transparent;border-radius:6px}.shape-rounded-lg.simple{border-width:0px;min-height:56px;max-height:56px;background-color:unset}.shape-rounded-lg.thin{border-width:1px;min-height:54px;max-height:54px;background-color:unset}.shape-rounded-lg.parentBorder{border:0;min-height:52px;max-height:52px}.shape-pill-xl{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px}.shape-pill-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset}.shape-pill-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-pill-xl.parentBorder{border:0;min-height:68px;max-height:68px}.shape-pill-left-xl{min-height:72px;max-height:72px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px 0 0 36px}.shape-pill-left-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset}.shape-pill-left-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-pill-left-xl.parentBorder{border:0;min-height:68px;max-height:68px}.shape-pill-right-xl{min-height:72px;max-height:72px;border-style:solid;border-width:2px;border-color:transparent;border-radius:0 36px 36px 0}.shape-pill-right-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset}.shape-pill-right-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-pill-right-xl.parentBorder{border:0;min-height:68px;max-height:68px}.shape-pill-md{min-height:72px;max-height:72px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px}.shape-pill-md.simple{border-width:0px;min-height:48px;max-height:48px;background-color:unset}.shape-pill-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}.shape-pill-md.parentBorder{border:0;min-height:44px;max-height:44px}.shape-pill-left-md{min-height:72px;max-height:72px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px 0 0 36px}.shape-pill-left-md.simple{border-width:0px;min-height:48px;max-height:48px;background-color:unset}.shape-pill-left-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}.shape-pill-left-md.parentBorder{border:0;min-height:44px;max-height:44px}.shape-pill-right-md{min-height:72px;max-height:72px;border-style:solid;border-width:2px;border-color:transparent;border-radius:0 36px 36px 0}.shape-pill-right-md.simple{border-width:0px;min-height:48px;max-height:48px;background-color:unset}.shape-pill-right-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}.shape-pill-right-md.parentBorder{border:0;min-height:44px;max-height:44px}`;
4193
+ 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}`;
3879
4194
 
3880
- 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)}`;
4195
+ 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)}`;
3881
4196
 
3882
- var classicColorCss = i$5`:host([layout*=classic]) .label{color:var(--ds-auro-dropdown-label-text-color)}:host([layout*=classic]) .trigger{border-color:var(--ds-auro-dropdown-trigger-border-color);background-color:var(--ds-auro-dropdown-trigger-container-color);color:var(--ds-auro-dropdown-trigger-text-color);outline-color:var(--ds-auro-dropdown-trigger-outline-color)}:host([layout*=classic]) .trigger:focus-within,:host([layout*=classic]) .trigger:active{--ds-auro-dropdown-trigger-border-color: var(--ds-advanced-color-state-focused, #01426a);--ds-auro-dropdown-trigger-outline-color: var(--ds-advanced-color-state-focused, #01426a)}:host([layout*=classic])[disabled]{--ds-auro-dropdown-trigger-text-color: var(--ds-basic-color-texticon-disabled, #d0d0d0);--ds-auro-dropdown-label-text-color: var(--ds-basic-color-texticon-disabled, #d0d0d0)}:host([layout*=classic])[common],:host([layout*=classic])[bordered]{--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-border-bold, #585e67)}:host([layout*=classic])[common] .trigger:active,:host([layout*=classic])[common] .trigger:focus-within,:host([layout*=classic])[bordered] .trigger:active,:host([layout*=classic])[bordered] .trigger:focus-within{--ds-auro-dropdown-trigger-border-color: var(--ds-advanced-color-state-focused, #01426a)}:host([layout*=classic])[error]{--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-status-error, #e31f26)}:host([layout*=classic])[error] .trigger{outline:solid 1px var(--ds-auro-dropdown-trigger-border-color)}:host([layout*=classic])[error] .trigger:focus-within,:host([layout*=classic])[error] .trigger:active{--ds-auro-dropdown-trigger-border-color: var(--ds-advanced-color-state-focused, #01426a);--ds-auro-dropdown-trigger-outline-color: var(--ds-advanced-color-state-focused, #01426a)}:host([layout*=classic])[disabled][common],:host([layout*=classic])[disabled][bordered]{--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-border-subtle, #dddddd)}:host([layout*=classic])[onDark]{--ds-auro-dropdown-label-text-color: var(--ds-basic-color-texticon-inverse-muted, #ccd2db);--ds-auro-dropdown-trigger-container-color: var(--ds-advanced-color-shared-background-inverse, rgba(255, 255, 255, 0.15));--ds-auro-dropdown-trigger-text-color: var(--ds-basic-color-texticon-inverse, #ffffff)}:host([layout*=classic])[onDark]:focus-within,:host([layout*=classic])[onDark]:active{--ds-auro-dropdown-trigger-border-color: var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-dropdown-trigger-outline-color: var(--ds-advanced-color-state-focused-inverse, #ffffff)}:host([layout*=classic])[onDark][disabled]{--ds-auro-dropdown-trigger-text-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894);--ds-auro-dropdown-label-text-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}:host([layout*=classic])[onDark][common],:host([layout*=classic])[onDark][bordered]{--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-border-inverse, #ffffff)}:host([layout*=classic])[onDark][common] .trigger:focus-within,:host([layout*=classic])[onDark][common] .trigger:active,:host([layout*=classic])[onDark][bordered] .trigger:focus-within,:host([layout*=classic])[onDark][bordered] .trigger:active{--ds-auro-dropdown-trigger-border-color: var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-dropdown-trigger-outline-color: var(--ds-advanced-color-state-focused-inverse, #ffffff)}:host([layout*=classic])[onDark][error]{--ds-auro-dropdown-trigger-border-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8)}:host([layout*=classic])[onDark][error] .trigger{outline:solid 1px var(--ds-auro-dropdown-trigger-border-color)}:host([layout*=classic])[onDark][error] .trigger:focus-within,:host([layout*=classic])[onDark][error] .trigger:active{--ds-auro-dropdown-trigger-border-color: var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-dropdown-trigger-outline-color: var(--ds-advanced-color-state-focused-inverse, #ffffff)}:host([layout*=classic])[onDark][disabled][common],:host([layout*=classic])[onDark][disabled][bordered]{--ds-auro-dropdown-trigger-container-color: var(--ds-advanced-color-shared-background-inverse-disabled, rgba(255, 255, 255, 0.1))}`;
4197
+ 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%}`;
3883
4198
 
3884
- var classicLayoutCss = i$5`:host([layout*=classic]){position:relative;max-width:100%}:host([layout*=classic]) #bibSizer{position:absolute;z-index:-1;opacity:0;pointer-events:none}:host([layout*=classic]) .label{font-size:var(--ds-text-body-size-xs, 0.75rem);line-height:var(--ds-text-body-size-default, 1rem);transition:font-size .3s cubic-bezier(0.215, 0.61, 0.355, 1);white-space:normal}:host([layout*=classic]) .label[hasTrigger=false]{font-size:var(--ds-text-body-size-default, 1rem)}:host([layout*=classic]) .trigger{display:flex;flex-direction:row}@media(hover: hover){:host([layout*=classic]) .trigger:hover{cursor:pointer}}:host([layout*=classic]) .triggerContentWrapper{overflow:hidden;flex:1;text-overflow:ellipsis;white-space:nowrap}:host([layout*=classic]) #showStateIcon{display:flex;overflow:hidden;height:100%;align-items:center;margin-left:var(--ds-size-100, 0.5rem)}:host([layout*=classic]) #showStateIcon [auro-icon]{height:var(--ds-size-300, 1.5rem);line-height:var(--ds-size-300, 1.5rem)}:host([layout*=classic]) #showStateIcon[data-expanded=true] [auro-icon]{transform:rotate(-180deg)}:host([layout*=classic][fluid]){display:block}:host([layout*=classic][matchwidth]) #bibSizer{width:100%}:host([layout*=classic][disabled]){pointer-events:none}:host([layout*=classic][inset]) .trigger{padding:var(--ds-size-150, 0.75rem) var(--ds-size-200, 1rem)}:host([layout*=classic][common]) .trigger,:host([layout*=classic][inset][bordered]) .trigger{padding:var(--ds-size-200, 1rem) var(--ds-size-150, 0.75rem)}:host([layout*=classic][inset][bordered][labeled]) .trigger{padding:var(--ds-size-100, 0.5rem) var(--ds-size-150, 0.75rem)}:host([layout*=classic][common]) .trigger,:host([layout*=classic][rounded]) .trigger{border-radius:var(--ds-border-radius, 0.375rem)}`;
4199
+ var classicColorCss = i$5``;
3885
4200
 
3886
- var styleEmphasizedCss = i$5`:host{display:block}.layout-emphasized .chevron,.layout-emphasized-left .chevron,.layout-emphasized-right .chevron{margin-right:var(--ds-size-300, 1.5rem)}.wrapper{display:flex;flex-direction:row}.trigger{flex:1;display:flex;align-items:center;justify-content:center;outline:none}.triggerContentWrapper{flex:1;display:flex;align-items:center;justify-content:center;width:100%}.triggerContent{overflow:hidden;flex:1;display:flex;align-items:center;justify-content:center;text-overflow:ellipsis;white-space:nowrap;width:100%}:host([layout*=emphasized][shape*=pill]:not([layout*=right])) .leftIndent{margin-left:var(--ds-size-300, 1.5rem);width:calc(100% - var(--ds-size-300, 1.5rem))}:host([layout*=emphasized][shape*=pill]:not([layout*=left])) .rightIndent{margin-right:var(--ds-size-300, 1.5rem);width:calc(100% - var(--ds-size-300, 1.5rem))}:host([layout*=emphasized][shape*=pill]:not([layout*=left]):not([layout*=right])) .rightIndent{margin-right:var(--ds-size-300, 1.5rem);width:calc(100% - var(--ds-size-600, 3rem))}`;
4201
+ 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)}`;
3887
4202
 
3888
- var styleSnowflakeCss = i$5`:host{display:block}.wrapper{display:flex;flex-direction:wrapper}.trigger{flex:1;display:flex;align-items:center;justify-content:center;outline:none}.triggerContentWrapper{flex:1;display:flex;align-items:center;justify-content:center;width:100%}.triggerContent{overflow:hidden;flex:1;display:flex;align-items:center;justify-content:center;text-overflow:ellipsis;white-space:nowrap;width:100%}:host([layout*=snowflake]) .leftIndent{margin-left:var(--ds-size-300, 1.5rem);width:calc(100% - var(--ds-size-600, 3rem))}:host([layout*=snowflake]) .rightIndent{margin-right:var(--ds-size-300, 1.5rem);width:calc(100% - var(--ds-size-600, 3rem))}.layout-snowflake .chevron,.layout-snowflake-left .chevron,.layout-snowflake-right .chevron{margin-right:var(--ds-size-300, 1.5rem)}`;
4203
+ 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)}`;
3889
4204
 
3890
- 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)}`;
4205
+ 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)}`;
3891
4206
 
3892
- 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}`;
4207
+ 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)}`;
4208
+
4209
+ 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}`;
3893
4210
 
3894
4211
  var tokensCss$4 = i$5`:host{--ds-auro-helptext-color: var(--ds-basic-color-texticon-muted, #676767)}`;
3895
4212
 
@@ -3900,7 +4217,7 @@ var tokensCss$4 = i$5`:host{--ds-auro-helptext-color: var(--ds-basic-color-texti
3900
4217
 
3901
4218
  /* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
3902
4219
 
3903
- let AuroLibraryRuntimeUtils$3 = class AuroLibraryRuntimeUtils {
4220
+ let AuroLibraryRuntimeUtils$4 = class AuroLibraryRuntimeUtils {
3904
4221
 
3905
4222
  /* eslint-disable jsdoc/require-param */
3906
4223
 
@@ -3969,8 +4286,6 @@ let AuroLibraryRuntimeUtils$3 = class AuroLibraryRuntimeUtils {
3969
4286
 
3970
4287
  /**
3971
4288
  * Displays help text or error messages within form elements - Internal Use Only.
3972
- *
3973
- * @attr { Boolean } large - If declared, make font-size to 1rem(16px).
3974
4289
  */
3975
4290
  let AuroHelpText$1 = class AuroHelpText extends i$2 {
3976
4291
 
@@ -3981,7 +4296,7 @@ let AuroHelpText$1 = class AuroHelpText extends i$2 {
3981
4296
  this.onDark = false;
3982
4297
  this.hasTextContent = false;
3983
4298
 
3984
- AuroLibraryRuntimeUtils$3.prototype.handleComponentTagRename(this, 'auro-helptext');
4299
+ AuroLibraryRuntimeUtils$4.prototype.handleComponentTagRename(this, 'auro-helptext');
3985
4300
  }
3986
4301
 
3987
4302
  static get styles() {
@@ -4037,7 +4352,7 @@ let AuroHelpText$1 = class AuroHelpText extends i$2 {
4037
4352
  *
4038
4353
  */
4039
4354
  static register(name = "auro-helptext") {
4040
- AuroLibraryRuntimeUtils$3.prototype.registerComponent(name, AuroHelpText);
4355
+ AuroLibraryRuntimeUtils$4.prototype.registerComponent(name, AuroHelpText);
4041
4356
  }
4042
4357
 
4043
4358
  updated() {
@@ -4086,7 +4401,7 @@ let AuroHelpText$1 = class AuroHelpText extends i$2 {
4086
4401
  // function that renders the HTML and CSS into the scope of the component
4087
4402
  render() {
4088
4403
  return x`
4089
- <div class="helptext-wrapper" ?visible="${this.hasTextContent}">
4404
+ <div class="helptext-wrapper body-xs" ?visible="${this.hasTextContent}">
4090
4405
  <slot @slotchange=${this.handleSlotChange}></slot>
4091
4406
  </div>
4092
4407
  `;
@@ -4095,7 +4410,7 @@ let AuroHelpText$1 = class AuroHelpText extends i$2 {
4095
4410
 
4096
4411
  var helpTextVersion$1 = '1.0.0';
4097
4412
 
4098
- let AuroElement$2 = class AuroElement extends i$2 {
4413
+ let AuroElement$3 = class AuroElement extends i$2 {
4099
4414
  static get properties() {
4100
4415
  return {
4101
4416
 
@@ -4130,19 +4445,22 @@ let AuroElement$2 = class AuroElement extends i$2 {
4130
4445
  }
4131
4446
 
4132
4447
  resetShapeClasses() {
4133
- if (this.shape && this.size) {
4134
- const wrapper = this.shadowRoot.querySelector('.wrapper');
4448
+ const wrapper = this.shadowRoot.querySelector('.wrapper');
4135
4449
 
4136
- if (wrapper) {
4137
- wrapper.classList.forEach((className) => {
4138
- if (className.startsWith('shape-')) {
4139
- wrapper.classList.remove(className);
4140
- }
4141
- });
4450
+ if (wrapper) {
4451
+ wrapper.classList.forEach((className) => {
4452
+ if (className.startsWith('shape-')) {
4453
+ wrapper.classList.remove(className);
4454
+ }
4455
+ });
4142
4456
 
4457
+ if (this.shape && this.size) {
4143
4458
  wrapper.classList.add(`shape-${this.shape.toLowerCase()}-${this.size.toLowerCase()}`);
4459
+ } else {
4460
+ wrapper.classList.add('shape-none');
4144
4461
  }
4145
4462
  }
4463
+
4146
4464
  }
4147
4465
 
4148
4466
  resetLayoutClasses() {
@@ -4191,10 +4509,9 @@ let AuroElement$2 = class AuroElement extends i$2 {
4191
4509
  // See LICENSE in the project root for license information.
4192
4510
 
4193
4511
 
4194
- /**
4195
- * @attr { Boolean } disableEventShow - If declared, the dropdown will only show by calling the API .show() public method.
4512
+
4513
+ /*
4196
4514
  * @slot - Default slot for the popover content.
4197
- * @slot label - Defines the content of the label.
4198
4515
  * @slot helpText - Defines the content of the helpText.
4199
4516
  * @slot trigger - Defines the content of the trigger.
4200
4517
  * @csspart trigger - The trigger content container.
@@ -4204,7 +4521,7 @@ let AuroElement$2 = class AuroElement extends i$2 {
4204
4521
  * @event auroDropdown-toggled - Notifies that the visibility of the dropdown bib has changed.
4205
4522
  * @event auroDropdown-idAdded - Notifies consumers that the unique ID for the dropdown bib has been generated.
4206
4523
  */
4207
- class AuroDropdown extends AuroElement$2 {
4524
+ class AuroDropdown extends AuroElement$3 {
4208
4525
  constructor() {
4209
4526
  super();
4210
4527
 
@@ -4213,23 +4530,25 @@ class AuroDropdown extends AuroElement$2 {
4213
4530
  this.matchWidth = false;
4214
4531
  this.noHideOnThisFocusLoss = false;
4215
4532
 
4216
- this.errorMessage = ''; // TODO!
4533
+ this.errorMessage = undefined; // TODO - check with Doug if there is still more to do here
4217
4534
 
4218
4535
  // Layout Config
4219
- this.layout = 'classic';
4220
- this.shape = 'rounded';
4221
- this.size = 'xl';
4536
+ this.layout = undefined;
4537
+ this.shape = undefined;
4538
+ this.size = undefined;
4539
+
4222
4540
  this.parentBorder = false;
4223
4541
 
4224
- this.privateDefaults();
4225
- }
4542
+ /** @private */
4543
+ this.handleDropdownToggle = this.handleDropdownToggle.bind(this);
4226
4544
 
4227
- get commonLabelClasses() {
4228
- return {
4229
- // 'withValue': this.value && this.value.length > 0
4230
- };
4545
+ this.privateDefaults();
4231
4546
  }
4232
4547
 
4548
+ /**
4549
+ * @private
4550
+ * @returns {object} Class definition for the wrapper element.
4551
+ */
4233
4552
  get commonWrapperClasses() {
4234
4553
  return {
4235
4554
  'trigger': true,
@@ -4247,13 +4566,10 @@ class AuroDropdown extends AuroElement$2 {
4247
4566
  privateDefaults() {
4248
4567
  this.chevron = false;
4249
4568
  this.disabled = false;
4569
+ this.disableFocusTrap = false;
4250
4570
  this.error = false;
4251
- this.inset = false;
4252
- this.rounded = false;
4253
4571
  this.tabIndex = 0;
4254
4572
  this.noToggle = false;
4255
- this.a11yAutocomplete = 'none';
4256
- this.labeled = true;
4257
4573
  this.a11yRole = 'button';
4258
4574
  this.onDark = false;
4259
4575
  this.showTriggerBorders = true;
@@ -4349,6 +4665,18 @@ class AuroDropdown extends AuroElement$2 {
4349
4665
  this.floater.showBib();
4350
4666
  }
4351
4667
 
4668
+ /**
4669
+ * When bib is open, focus on the first element inside of bib.
4670
+ * If not, trigger element will get focus.
4671
+ */
4672
+ focus() {
4673
+ if (this.isPopoverVisible && this.focusTrap) {
4674
+ this.focusTrap.focusFirstElement();
4675
+ } else {
4676
+ this.trigger.focus();
4677
+ }
4678
+ }
4679
+
4352
4680
  // function to define props used within the scope of this component
4353
4681
  static get properties() {
4354
4682
  return {
@@ -4362,6 +4690,15 @@ class AuroDropdown extends AuroElement$2 {
4362
4690
  reflect: true
4363
4691
  },
4364
4692
 
4693
+ /**
4694
+ * If declared, the dropdown will only show by calling the API .show() public method.
4695
+ * @default false
4696
+ */
4697
+ disableEventShow: {
4698
+ type: Boolean,
4699
+ reflect: true
4700
+ },
4701
+
4365
4702
  /**
4366
4703
  * If declared, applies a border around the trigger slot.
4367
4704
  */
@@ -4380,17 +4717,17 @@ class AuroDropdown extends AuroElement$2 {
4380
4717
  },
4381
4718
 
4382
4719
  /**
4383
- * If declared, the dropdown will be styled with the common theme.
4720
+ * If declared, the dropdown is not interactive.
4384
4721
  */
4385
- common: {
4722
+ disabled: {
4386
4723
  type: Boolean,
4387
4724
  reflect: true
4388
4725
  },
4389
4726
 
4390
4727
  /**
4391
- * If declared, the dropdown is not interactive.
4728
+ * If declared, the focus trap inside of bib will be turned off.
4392
4729
  */
4393
- disabled: {
4730
+ disableFocusTrap: {
4394
4731
  type: Boolean,
4395
4732
  reflect: true
4396
4733
  },
@@ -4435,27 +4772,13 @@ class AuroDropdown extends AuroElement$2 {
4435
4772
  reflect: true
4436
4773
  },
4437
4774
 
4438
- /**
4439
- * Makes the trigger to be full width of its parent container.
4440
- */
4441
- fluid: {
4442
- type: Boolean,
4443
- reflect: true
4444
- },
4445
-
4446
- /**
4447
- * If declared, will apply padding around trigger slot content.
4448
- */
4449
- inset: {
4450
- type: Boolean,
4451
- reflect: true
4452
- },
4453
-
4454
4775
  /**
4455
4776
  * If true, the dropdown bib is displayed.
4456
4777
  */
4457
4778
  isPopoverVisible: {
4458
- type: Boolean
4779
+ type: Boolean,
4780
+ reflect: true,
4781
+ attribute: 'open'
4459
4782
  },
4460
4783
 
4461
4784
  /**
@@ -4494,15 +4817,6 @@ class AuroDropdown extends AuroElement$2 {
4494
4817
  reflect: true
4495
4818
  },
4496
4819
 
4497
- /**
4498
- * Defines if there is a label preset.
4499
- * @private
4500
- */
4501
- labeled: {
4502
- type: Boolean,
4503
- reflect: true
4504
- },
4505
-
4506
4820
  /**
4507
4821
  * Defines if the trigger should size based on the parent element providing the border UI.
4508
4822
  * @private
@@ -4563,6 +4877,9 @@ class AuroDropdown extends AuroElement$2 {
4563
4877
  reflect: true
4564
4878
  },
4565
4879
 
4880
+ /**
4881
+ * If declared, and a function is set, that function will execute when the slot content is updated.
4882
+ */
4566
4883
  onSlotChange: {
4567
4884
  type: Function,
4568
4885
  reflect: false
@@ -4577,14 +4894,6 @@ class AuroDropdown extends AuroElement$2 {
4577
4894
  reflect: true
4578
4895
  },
4579
4896
 
4580
- /**
4581
- * If declared, will apply border-radius to trigger and default slots.
4582
- */
4583
- rounded: {
4584
- type: Boolean,
4585
- reflect: true
4586
- },
4587
-
4588
4897
  /**
4589
4898
  * @private
4590
4899
  */
@@ -4599,22 +4908,15 @@ class AuroDropdown extends AuroElement$2 {
4599
4908
  type: String || undefined,
4600
4909
  attribute: false,
4601
4910
  reflect: false
4602
- },
4603
-
4604
- /**
4605
- * The value for the aria-autocomplete attribute of the trigger element.
4606
- */
4607
- a11yAutocomplete: {
4608
- type: String,
4609
- attribute: false,
4610
4911
  }
4611
4912
  };
4612
4913
  }
4613
4914
 
4614
4915
  static get styles() {
4615
4916
  return [
4917
+ styleCss$1$2,
4918
+ tokensCss$1$2,
4616
4919
  colorCss$1$2,
4617
- tokensCss$1$1,
4618
4920
 
4619
4921
  // default layout
4620
4922
  classicColorCss,
@@ -4626,7 +4928,7 @@ class AuroDropdown extends AuroElement$2 {
4626
4928
  // snowflake layout
4627
4929
  styleSnowflakeCss,
4628
4930
 
4629
- shapeSizeCss
4931
+ shapeSizeCss$1
4630
4932
  ];
4631
4933
  }
4632
4934
 
@@ -4676,13 +4978,27 @@ class AuroDropdown extends AuroElement$2 {
4676
4978
  if (changedProperties.size === 0 || changedProperties.has('isPopoverVisible')) {
4677
4979
  this.handleTriggerContentSlotChange();
4678
4980
  }
4981
+ }
4679
4982
 
4983
+ /**
4984
+ * Handles the custom event `auroDropdown-toggled` to update the visibility of the dropdown bib.
4985
+ * @private
4986
+ * @param {CustomEvent} event - The custom event that contains the dropdown toggle information.
4987
+ */
4988
+ handleDropdownToggle(event) {
4989
+ this.updateFocusTrap();
4990
+ this.isPopoverVisible = event.detail.expanded;
4991
+ const eventType = event.detail.eventType || "unknown";
4992
+ if (!this.isPopoverVisible && this.hasFocus && eventType === "keydown") {
4993
+ this.trigger.focus();
4994
+ }
4680
4995
  }
4681
4996
 
4682
4997
  firstUpdated() {
4683
4998
 
4684
4999
  // Configure the floater to, this will generate the ID for the bib
4685
5000
  this.floater.configure(this, 'auroDropdown');
5001
+ this.addEventListener('auroDropdown-toggled', this.handleDropdownToggle);
4686
5002
 
4687
5003
  /**
4688
5004
  * @description Let subscribers know that the dropdown ID ha been generated and added.
@@ -4700,6 +5016,13 @@ class AuroDropdown extends AuroElement$2 {
4700
5016
 
4701
5017
  // Add the tag name as an attribute if it is different than the component name
4702
5018
  this.runtimeUtils.handleComponentTagRename(this, 'auro-dropdown');
5019
+
5020
+ this.trigger.addEventListener('click', () => {
5021
+ this.dispatchEvent(new CustomEvent('auroDropdown-triggerClick', {
5022
+ bubbles: true,
5023
+ composed: true
5024
+ }));
5025
+ });
4703
5026
  }
4704
5027
 
4705
5028
  /**
@@ -4742,6 +5065,27 @@ class AuroDropdown extends AuroElement$2 {
4742
5065
  this.hasFocus = true;
4743
5066
  }
4744
5067
 
5068
+ /**
5069
+ * @private
5070
+ */
5071
+ updateFocusTrap() {
5072
+ // If the dropdown is open, create a focus trap and focus the first element
5073
+ if (this.isPopoverVisible && !this.disableFocusTrap) {
5074
+ this.focusTrap = new FocusTrap(this.bibContent);
5075
+ this.focusTrap.focusFirstElement();
5076
+ return;
5077
+ }
5078
+
5079
+ // Guard Clause: Ensure there is a focus trap currently active before continuing
5080
+ if (!this.focusTrap) {
5081
+ return;
5082
+ }
5083
+
5084
+ // If the dropdown is not open, disconnect the focus trap if it exists
5085
+ this.focusTrap.disconnect();
5086
+ this.focusTrap = undefined;
5087
+ }
5088
+
4745
5089
  /**
4746
5090
  * Function to support @focusout event.
4747
5091
  * @private
@@ -4752,67 +5096,9 @@ class AuroDropdown extends AuroElement$2 {
4752
5096
  }
4753
5097
 
4754
5098
  /**
4755
- * Determines if the element or any children are focusable.
5099
+ * Creates and dispatches a duplicate focus event on the trigger element.
4756
5100
  * @private
4757
- * @param {HTMLElement} element - Element to check.
4758
- * @returns {Boolean} - True if the element or any children are focusable.
4759
- */
4760
- containsFocusableElement(element) {
4761
- this.showTriggerBorders = true;
4762
-
4763
- const nodes = [
4764
- element,
4765
- ...element.children
4766
- ];
4767
-
4768
- const focusableElements = [
4769
- 'a',
4770
- 'auro-hyperlink',
4771
- 'button',
4772
- 'auro-button',
4773
- 'input',
4774
- 'auro-input',
4775
- ];
4776
-
4777
- const focusableElementsThatNeedBorders = ['auro-input'];
4778
-
4779
- const result = nodes.some((node) => {
4780
- const tagName = node.tagName.toLowerCase();
4781
-
4782
- if (node.tabIndex > -1) {
4783
- return true;
4784
- }
4785
-
4786
- if (focusableElements.includes(tagName)) {
4787
- if ((tagName === 'a' || tagName === 'auro-hyperlink' || node.hasAttribute('auro-hyperlink')) && node.hasAttribute('href')) {
4788
- return true;
4789
- }
4790
- if (!node.hasAttribute('disabled')) {
4791
- return true;
4792
- }
4793
- }
4794
-
4795
- if (focusableElements.some((focusableElement) => focusableElement.startsWith('auro-') && (focusableElement === tagName || node.hasAttribute(focusableElement)))) {
4796
- return true;
4797
- }
4798
-
4799
- return false;
4800
- });
4801
-
4802
- if (result) {
4803
- this.showTriggerBorders = !nodes.some((node) => {
4804
- const tagName = node.tagName.toLowerCase();
4805
- return focusableElements.includes(tagName) && !focusableElementsThatNeedBorders.includes(tagName);
4806
- });
4807
- }
4808
-
4809
- return result;
4810
- }
4811
-
4812
- /**
4813
- * Creates and dispatches a duplicate focus event on the trigger element.
4814
- * @private
4815
- * @param {Event} event - The original focus event.
5101
+ * @param {Event} event - The original focus event.
4816
5102
  */
4817
5103
  bindFocusEventToTrigger(event) {
4818
5104
  const dupEvent = new FocusEvent(event.type, {
@@ -4902,14 +5188,13 @@ class AuroDropdown extends AuroElement$2 {
4902
5188
  * @returns {void}
4903
5189
  */
4904
5190
  handleTriggerContentSlotChange(event) {
4905
-
4906
5191
  this.floater.handleTriggerTabIndex();
4907
5192
 
4908
5193
  // Get the trigger
4909
5194
  const trigger = this.shadowRoot.querySelector('#trigger');
4910
5195
 
4911
5196
  // Get the trigger slot
4912
- const triggerSlot = this.shadowRoot.querySelector('.triggerContent slot');
5197
+ const triggerSlot = this.shadowRoot.querySelector('.triggerContentWrapper slot');
4913
5198
 
4914
5199
  // If there's a trigger slot
4915
5200
  if (triggerSlot) {
@@ -4921,7 +5206,7 @@ class AuroDropdown extends AuroElement$2 {
4921
5206
  if (triggerContentNodes) {
4922
5207
 
4923
5208
  // See if any of them are focusable elements
4924
- this.triggerContentFocusable = triggerContentNodes.some((node) => this.containsFocusableElement(node));
5209
+ this.triggerContentFocusable = triggerContentNodes.some((node) => getFocusableElements(node).length > 0);
4925
5210
 
4926
5211
  // If any of them are focusable elements
4927
5212
  if (this.triggerContentFocusable) {
@@ -4972,7 +5257,6 @@ class AuroDropdown extends AuroElement$2 {
4972
5257
  *
4973
5258
  * @private
4974
5259
  * @method handleDefaultSlot
4975
- * @param {Event} event - The event object representing the slot change.
4976
5260
  * @fires Function#onSlotChange - Optional callback invoked when the slot content changes.
4977
5261
  */
4978
5262
  handleDefaultSlot() {
@@ -4982,29 +5266,6 @@ class AuroDropdown extends AuroElement$2 {
4982
5266
  }
4983
5267
  }
4984
5268
 
4985
- /**
4986
- * @private
4987
- * @method handleLabelSlotChange
4988
- * @param {event} event - The event object representing the slot change.
4989
- * @description Handles the slot change event for the label slot.
4990
- */
4991
- handleLabelSlotChange (event) {
4992
-
4993
- // Get the nodes from the event
4994
- const nodes = event.target.assignedNodes();
4995
-
4996
- // Guard clause for no nodes
4997
- if (!nodes) {
4998
- return;
4999
- }
5000
-
5001
- // Convert the nodes to a measurable array so we can get the length
5002
- const nodesArr = Array.from(nodes);
5003
-
5004
- // If the nodes array has a length, the dropdown is labeled
5005
- this.labeled = nodesArr.length > 0;
5006
- }
5007
-
5008
5269
  /**
5009
5270
  * Returns HTML for the common portion of the layouts.
5010
5271
  * @private
@@ -5017,24 +5278,19 @@ class AuroDropdown extends AuroElement$2 {
5017
5278
  <div
5018
5279
  id="trigger"
5019
5280
  class="${e(this.commonWrapperClasses)}" part="wrapper"
5020
- tabindex="${this.tabIndex}"
5281
+ tabindex="${o(this.triggerContentFocusable ? undefined : this.tabIndex)}"
5021
5282
  role="${o(this.triggerContentFocusable ? undefined : this.a11yRole)}"
5022
- aria-expanded="${o(this.triggerContentFocusable ? undefined : this.isPopoverVisible)}"
5023
- aria-controls="${o(this.triggerContentFocusable ? undefined : this.dropdownId)}"
5283
+ aria-expanded="${o(this.a11yRole === 'button' || this.triggerContentFocusable ? undefined : this.isPopoverVisible)}"
5284
+ aria-controls="${o(this.a11yRole === 'button' || this.triggerContentFocusable ? undefined : this.dropdownId)}"
5024
5285
  aria-labelledby="${o(this.triggerContentFocusable ? undefined : 'triggerLabel')}"
5025
5286
  @focusin="${this.handleFocusin}"
5026
5287
  @blur="${this.handleFocusOut}">
5027
- <div class="triggerContentWrapper">
5028
- <label class="label" id="triggerLabel" hasTrigger=${this.hasTriggerContent}>
5029
- <slot name="label" @slotchange="${this.handleLabelSlotChange}"></slot>
5030
- </label>
5031
- <div class="triggerContent">
5032
- <slot
5033
- name="trigger"
5034
- @slotchange="${this.handleTriggerContentSlotChange}"></slot>
5035
- </div>
5288
+ <div class="triggerContentWrapper" id="triggerLabel">
5289
+ <slot
5290
+ name="trigger"
5291
+ @slotchange="${this.handleTriggerContentSlotChange}"></slot>
5036
5292
  </div>
5037
- ${this.chevron || this.common ? u`
5293
+ ${this.chevron ? u`
5038
5294
  <div
5039
5295
  id="showStateIcon"
5040
5296
  class="chevron"
@@ -5055,11 +5311,9 @@ class AuroDropdown extends AuroElement$2 {
5055
5311
  <div id="bibSizer" part="size"></div>
5056
5312
  <${this.dropdownBibTag}
5057
5313
  id="bib"
5314
+ shape="${this.shape}"
5058
5315
  ?data-show="${this.isPopoverVisible}"
5059
- ?isfullscreen="${this.isBibFullscreen}"
5060
- ?common="${this.common}"
5061
- ?rounded="${this.common || this.rounded}"
5062
- ?inset="${this.common || this.inset}">
5316
+ ?isfullscreen="${this.isBibFullscreen}">
5063
5317
  <div class="slotContent">
5064
5318
  <slot @slotchange="${this.handleDefaultSlot}"></slot>
5065
5319
  </div>
@@ -5074,62 +5328,13 @@ class AuroDropdown extends AuroElement$2 {
5074
5328
  * @returns {html} - Returns HTML for the classic layout.
5075
5329
  */
5076
5330
  renderLayoutClassic() {
5331
+ // TODO: check with Doug why this was never used?
5332
+ const helpTextClasses = {
5333
+ 'helpText': true
5334
+ };
5077
5335
 
5078
5336
  return u`
5079
- <div>
5080
- <div
5081
- id="trigger"
5082
- class="trigger"
5083
- part="trigger"
5084
- tabindex="${this.tabIndex}"
5085
- ?showBorder="${this.showTriggerBorders}"
5086
- role="${o(this.triggerContentFocusable ? undefined : this.a11yRole)}"
5087
- aria-expanded="${o(this.triggerContentFocusable ? undefined : this.isPopoverVisible)}"
5088
- aria-controls="${o(this.triggerContentFocusable ? undefined : this.dropdownId)}"
5089
- aria-labelledby="${o(this.triggerContentFocusable ? undefined : 'triggerLabel')}"
5090
- >
5091
- <div class="triggerContentWrapper">
5092
- <label class="label" id="triggerLabel" hasTrigger=${this.hasTriggerContent}>
5093
- <slot name="label" @slotchange="${this.handleLabelSlotChange}"></slot>
5094
- </label>
5095
- <div class="triggerContent">
5096
- <slot
5097
- name="trigger"
5098
- @slotchange="${this.handleTriggerContentSlotChange}"></slot>
5099
- </div>
5100
- </div>
5101
- ${this.chevron || this.common ? u`
5102
- <div
5103
- id="showStateIcon"
5104
- part="chevron">
5105
- <${this.iconTag}
5106
- category="interface"
5107
- name="chevron-down"
5108
- ?onDark="${this.onDark}"
5109
- variant="${this.disabled ? 'disabled' : 'muted'}">
5110
- >
5111
- </${this.iconTag}>
5112
- </div>
5113
- ` : undefined }
5114
- </div>
5115
- <${this.helpTextTag} part="helpText" ?onDark=${this.onDark} ?error="${this.error}">
5116
- <slot name="helpText"></slot>
5117
- </${this.helpTextTag}>
5118
-
5119
- <div id="bibSizer" part="size"></div>
5120
- <${this.dropdownBibTag}
5121
- id="bib"
5122
- ?data-show="${this.isPopoverVisible}"
5123
- ?isfullscreen="${this.isBibFullscreen}"
5124
- ?common="${this.common}"
5125
- ?rounded="${this.common || this.rounded}"
5126
- ?inset="${this.common || this.inset}"
5127
- >
5128
- <div class="slotContent">
5129
- <slot @slotchange="${this.handleDefaultSlot}"></slot>
5130
- </div>
5131
- </${this.dropdownBibTag}>
5132
- </div>
5337
+ ${this.renderBasicHtml(helpTextClasses)}
5133
5338
  `;
5134
5339
  }
5135
5340
 
@@ -5197,9 +5402,9 @@ class AuroDropdown extends AuroElement$2 {
5197
5402
 
5198
5403
  var dropdownVersion = '3.0.0';
5199
5404
 
5200
- 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)}`;
5405
+ 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)}`;
5201
5406
 
5202
- 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)}`;
5407
+ 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)}`;
5203
5408
 
5204
5409
  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)}`;
5205
5410
 
@@ -5210,7 +5415,7 @@ var tokenCss = i$5`:host{--ds-auro-dropdownbib-header-boxshadow-color: var(--ds-
5210
5415
 
5211
5416
  /* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
5212
5417
 
5213
- let AuroLibraryRuntimeUtils$1$1 = class AuroLibraryRuntimeUtils {
5418
+ let AuroLibraryRuntimeUtils$2 = class AuroLibraryRuntimeUtils {
5214
5419
 
5215
5420
  /* eslint-disable jsdoc/require-param */
5216
5421
 
@@ -5227,92 +5432,1186 @@ let AuroLibraryRuntimeUtils$1$1 = class AuroLibraryRuntimeUtils {
5227
5432
  }
5228
5433
 
5229
5434
  /**
5230
- * Finds and returns the closest HTML Element based on a selector.
5231
- * @returns {void}
5435
+ * Finds and returns the closest HTML Element based on a selector.
5436
+ * @returns {void}
5437
+ */
5438
+ closestElement(
5439
+ selector, // selector like in .closest()
5440
+ base = this, // extra functionality to skip a parent
5441
+ __Closest = (el, found = el && el.closest(selector)) =>
5442
+ !el || el === document || el === window
5443
+ ? null // standard .closest() returns null for non-found selectors also
5444
+ : found
5445
+ ? found // found a selector INside this element
5446
+ : __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
5447
+ ) {
5448
+ return __Closest(base);
5449
+ }
5450
+ /* eslint-enable jsdoc/require-param */
5451
+
5452
+ /**
5453
+ * 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.
5454
+ * @param {Object} elem - The element to check.
5455
+ * @param {String} tagName - The name of the Auro component to check for or add as an attribute.
5456
+ * @returns {void}
5457
+ */
5458
+ handleComponentTagRename(elem, tagName) {
5459
+ const tag = tagName.toLowerCase();
5460
+ const elemTag = elem.tagName.toLowerCase();
5461
+
5462
+ if (elemTag !== tag) {
5463
+ elem.setAttribute(tag, true);
5464
+ }
5465
+ }
5466
+
5467
+ /**
5468
+ * Validates if an element is a specific Auro component.
5469
+ * @param {Object} elem - The element to validate.
5470
+ * @param {String} tagName - The name of the Auro component to check against.
5471
+ * @returns {Boolean} - Returns true if the element is the specified Auro component.
5472
+ */
5473
+ elementMatch(elem, tagName) {
5474
+ const tag = tagName.toLowerCase();
5475
+ const elemTag = elem.tagName.toLowerCase();
5476
+
5477
+ return elemTag === tag || elem.hasAttribute(tag);
5478
+ }
5479
+ };
5480
+
5481
+ // Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
5482
+ // See LICENSE in the project root for license information.
5483
+
5484
+
5485
+ class AuroDependencyVersioning {
5486
+
5487
+ /**
5488
+ * Generates a unique string to be used for child auro element naming.
5489
+ * @private
5490
+ * @param {string} baseName - Defines the first part of the unique element name.
5491
+ * @param {string} version - Version of the component that will be appended to the baseName.
5492
+ * @returns {string} - Unique string to be used for naming.
5493
+ */
5494
+ generateElementName(baseName, version) {
5495
+ let result = baseName;
5496
+
5497
+ result += '-';
5498
+ result += version.replace(/[.]/g, '_');
5499
+
5500
+ return result;
5501
+ }
5502
+
5503
+ /**
5504
+ * Generates a unique string to be used for child auro element naming.
5505
+ * @param {string} baseName - Defines the first part of the unique element name.
5506
+ * @param {string} version - Version of the component that will be appended to the baseName.
5507
+ * @returns {string} - Unique string to be used for naming.
5508
+ */
5509
+ generateTag(baseName, version, tagClass) {
5510
+ const elementName = this.generateElementName(baseName, version);
5511
+ const tag = i`${s(elementName)}`;
5512
+
5513
+ if (!customElements.get(elementName)) {
5514
+ customElements.define(elementName, class extends tagClass {});
5515
+ }
5516
+
5517
+ return tag;
5518
+ }
5519
+ }
5520
+
5521
+ /**
5522
+ * Private module-level WeakMap to hold MutationObservers for each host element.
5523
+ */
5524
+ const _observers = new WeakMap();
5525
+
5526
+ /**
5527
+ * Private module-level WeakMap to hold attribute matchers and targets for each host element.
5528
+ * Structure: {
5529
+ * host: {
5530
+ * matchers: Set<Function>,
5531
+ * targets: Map<HTMLElement, Map<Function, {removeOriginal: boolean, currentAttributes: Map<string, string>}>>
5532
+ * }
5533
+ * }
5534
+ */
5535
+ const _transportConfig = new WeakMap();
5536
+
5537
+ /**
5538
+ * Transfers all matching attributes from a host element to a target element and observes for future changes.
5539
+ *
5540
+ * @param {Object} params - The parameters for the function.
5541
+ * @param {HTMLElement} params.host - The host element from which attributes will be transported.
5542
+ * @param {HTMLElement} params.target - The target element to which attributes will be transported.
5543
+ * @param {boolean} [params.removeOriginal=true] - Whether to remove the attributes from the host element.
5544
+ * @param {boolean} [params.observe=true] - Whether to attach a MutationObserver to the host element.
5545
+ * @returns {Function} A function to detach the observer when no longer needed.
5546
+ * @throws {TypeError} If the host or target parameters are not instances of HTMLElement.
5547
+ */
5548
+ const transportAttributes = ({ host, target, match, removeOriginal = true }) => {
5549
+ // Guard Clause: Ensure host is valid HTMLElement instance
5550
+ if (typeof host !== 'object' || !(host instanceof HTMLElement)) {
5551
+ throw new TypeError('a11yUtilities.js | transportAttributes | The "host" parameter must be an instance of HTMLElement.');
5552
+ }
5553
+
5554
+ // Guard Clause: Ensure target is valid HTMLElement instance
5555
+ if (typeof target !== 'object' || !(target instanceof HTMLElement)) {
5556
+ throw new TypeError('a11yUtilities.js | transportAttributes | The "target" parameter must be an instance of HTMLElement.');
5557
+ }
5558
+
5559
+ // Guard Clause: Ensure match is a function
5560
+ if (typeof match !== 'function') {
5561
+ throw new TypeError('a11yUtilities.js | transportAttributes | The "match" parameter must be a function.');
5562
+ }
5563
+
5564
+ // Guard Clause: Ensure removeOriginal is a boolean
5565
+ if (typeof removeOriginal !== 'boolean') {
5566
+ throw new TypeError('a11yUtilities.js | transportAttributes | The "removeOriginal" parameter must be a boolean.');
5567
+ }
5568
+
5569
+ // Register this transport and get cleanup function
5570
+ return _registerTransport({
5571
+ host,
5572
+ target,
5573
+ matcher: match,
5574
+ removeOriginal
5575
+ });
5576
+ };
5577
+
5578
+ /**
5579
+ * Registers a matcher and target for a host element and attaches an observer if needed.
5580
+ *
5581
+ * @param {Object} params - The parameters object.
5582
+ * @param {HTMLElement} params.host - The host element to observe.
5583
+ * @param {HTMLElement} params.target - The target element to receive attributes.
5584
+ * @param {Function} params.matcher - Function that determines which attributes to transport.
5585
+ * @param {boolean} [params.removeOriginal=true] - Whether to remove original attributes.
5586
+ * @param {boolean} [params.observe=true] - Whether to observe for attribute changes.
5587
+ * @returns {Function} Function to detach the specific matcher and target pairing.
5588
+ * @private
5589
+ */
5590
+ const _registerTransport = ({ host, target, matcher, removeOriginal = true }) => {
5591
+ // Initialize config for this host if it doesn't exist
5592
+ if (!_transportConfig.has(host)) {
5593
+ _transportConfig.set(host, {
5594
+ matchers: new Set(),
5595
+ targets: new Map()
5596
+ });
5597
+ }
5598
+
5599
+ const config = _transportConfig.get(host);
5600
+
5601
+ // Add the matcher to the set of matchers for this host
5602
+ config.matchers.add(matcher);
5603
+
5604
+ // Initialize target entry if it doesn't exist
5605
+ if (!config.targets.has(target)) {
5606
+ config.targets.set(target, new Map());
5607
+ }
5608
+
5609
+ // Store the matcher with its removeOriginal setting for this target
5610
+ config.targets.get(target).set(matcher, {
5611
+ removeOriginal,
5612
+ currentAttributes: new Map()
5613
+ });
5614
+
5615
+ // Perform initial attribute transport
5616
+ _transportAttributes({ host, target, matcher, removeOriginal });
5617
+
5618
+ // Attach observer
5619
+ _attachObserver(host);
5620
+
5621
+ // Return cleanup function and utility functions
5622
+ return {
5623
+ cleanup: () => _cleanupTransport(host, target, matcher),
5624
+ getObservedAttributes: () => _getObservedAttributes(host, target, matcher),
5625
+ getObservedAttribute: (attr) => _getObservedAttribute(host, target, matcher, attr),
5626
+ }
5627
+ };
5628
+
5629
+ /**
5630
+ * Cleans up resources associated with a specific matcher and target for a host element.
5631
+ *
5632
+ * @param {HTMLElement} host - The host element
5633
+ * @param {HTMLElement} target - The target element
5634
+ * @param {Function} matcher - The matcher function
5635
+ * @private
5636
+ */
5637
+ const _cleanupTransport = (host, target, matcher) => {
5638
+ const config = _transportConfig.get(host);
5639
+ if (!config) return;
5640
+
5641
+ // Remove this matcher from this target
5642
+ const targetMatchers = config.targets.get(target);
5643
+ if (targetMatchers) {
5644
+ targetMatchers.delete(matcher);
5645
+
5646
+ // If this target has no more matchers, remove it
5647
+ if (targetMatchers.size === 0) {
5648
+ config.targets.delete(target);
5649
+ }
5650
+ }
5651
+
5652
+ // Check if this matcher is still used by any target
5653
+ let matcherStillUsed = false;
5654
+ for (const matcherMap of config.targets.values()) {
5655
+ if (matcherMap.has(matcher)) {
5656
+ matcherStillUsed = true;
5657
+ break;
5658
+ }
5659
+ }
5660
+
5661
+ // If not used anymore, remove from matchers set
5662
+ if (!matcherStillUsed) {
5663
+ config.matchers.delete(matcher);
5664
+ }
5665
+
5666
+ // If no more targets or matchers, detach observer
5667
+ if (config.targets.size === 0 || config.matchers.size === 0) {
5668
+ _detachObserver(host);
5669
+ }
5670
+ };
5671
+
5672
+ /**
5673
+ * Generic function to transport attributes from a host element to a target element.
5674
+ *
5675
+ * @param {Object} params - The parameters object.
5676
+ * @param {HTMLElement} params.host - The host element from which to transport attributes.
5677
+ * @param {HTMLElement} params.target - The target element to which attributes will be transported.
5678
+ * @param {Function} params.matcher - Function that takes an attribute name and returns true if it should be transported.
5679
+ * @param {boolean} [params.removeOriginal=true] - Whether to remove original attributes from host.
5680
+ * @returns {void}
5681
+ * @private
5682
+ */
5683
+ const _transportAttributes = ({ host, target, matcher, removeOriginal = true }) => {
5684
+ // Get a list of all matching attributes on the host element and their values
5685
+ const matchingAttributes = host.getAttributeNames()
5686
+ .filter(attr => matcher(attr))
5687
+ .reduce((acc, attr) => {
5688
+ acc[attr] = host.getAttribute(attr);
5689
+ return acc;
5690
+ }, {});
5691
+
5692
+ // Move matching attributes to the target element, removing them from the host if removeOriginal is true
5693
+ Object.entries(matchingAttributes).forEach(([key, value]) => {
5694
+ _setObservedAttribute(host, target, matcher, key, value);
5695
+ target.setAttribute(key, value);
5696
+ if (removeOriginal) {
5697
+ host.removeAttribute(key);
5698
+ }
5699
+ });
5700
+ };
5701
+
5702
+ /**
5703
+ * Attaches a MutationObserver to the host element to monitor attribute changes.
5704
+ *
5705
+ * @param {HTMLElement} host - The element to observe for attribute changes.
5706
+ * @returns {MutationObserver} The observer instance.
5707
+ * @private
5708
+ */
5709
+ const _attachObserver = (host) => {
5710
+ // If an observer for this host already exists, return it
5711
+ if (_observers.has(host)) {
5712
+ return _observers.get(host);
5713
+ }
5714
+
5715
+ // Create a new MutationObserver
5716
+ const observer = new MutationObserver((mutations) => {
5717
+ const config = _transportConfig.get(host);
5718
+ if (!config) return;
5719
+
5720
+ // For each mutation affecting attributes
5721
+ mutations
5722
+ .filter(mutation => mutation.type === 'attributes')
5723
+ .forEach(mutation => {
5724
+ const attributeName = mutation.attributeName;
5725
+
5726
+ // Find matchers that care about this attribute
5727
+ for (const matcher of config.matchers) {
5728
+ if (matcher(attributeName)) {
5729
+ // For each target that uses this matcher
5730
+ for (const [target, matcherConfigs] of config.targets.entries()) {
5731
+ if (matcherConfigs.has(matcher)) {
5732
+ const { removeOriginal } = matcherConfigs.get(matcher);
5733
+ _transportAttributes({
5734
+ host,
5735
+ target,
5736
+ matcher,
5737
+ removeOriginal
5738
+ });
5739
+ }
5740
+ }
5741
+ }
5742
+ }
5743
+ });
5744
+ });
5745
+
5746
+ // Start observing attribute changes
5747
+ observer.observe(host, { attributes: true });
5748
+
5749
+ // Store the observer
5750
+ _observers.set(host, observer);
5751
+
5752
+ return observer;
5753
+ };
5754
+
5755
+ /**
5756
+ * Detaches and cleans up the MutationObserver for a given host element.
5757
+ *
5758
+ * @param {HTMLElement} host - The element whose observer should be detached.
5759
+ * @private
5760
+ */
5761
+ const _detachObserver = (host) => {
5762
+ if (_observers.has(host)) {
5763
+ const observer = _observers.get(host);
5764
+ observer.disconnect();
5765
+ _observers.delete(host);
5766
+ }
5767
+
5768
+ // Clean up the transport config as well
5769
+ if (_transportConfig.has(host)) {
5770
+ _transportConfig.delete(host);
5771
+ }
5772
+ };
5773
+
5774
+ /**
5775
+ * Gets the matcher configuration for a specific host, target, and matcher
5776
+ * @param {HTMLElement} host - The host element
5777
+ * @param {HTMLElement} target - The target element
5778
+ * @param {Function} matcher - The matcher function
5779
+ * @returns {Object|undefined} The matcher configuration if found
5780
+ * @private
5781
+ */
5782
+ const _getMatcherConfig = (host, target, matcher) => {
5783
+ const config = _transportConfig.get(host);
5784
+ if (!config) return undefined;
5785
+
5786
+ const targetMatchers = config.targets.get(target);
5787
+ if (!targetMatchers) return undefined;
5788
+
5789
+ return targetMatchers.get(matcher);
5790
+ };
5791
+
5792
+ /**
5793
+ * Sets an observed attribute value
5794
+ * @param {HTMLElement} host - The host element
5795
+ * @param {HTMLElement} target - The target element
5796
+ * @param {Function} matcher - The matcher function
5797
+ * @param {string} key - The attribute name
5798
+ * @param {string} value - The attribute value
5799
+ * @private
5800
+ */
5801
+ const _setObservedAttribute = (host, target, matcher, key, value) => {
5802
+ const matcherConfig = _getMatcherConfig(host, target, matcher);
5803
+ if (matcherConfig) {
5804
+ matcherConfig.currentAttributes.set(key, value);
5805
+ }
5806
+ };
5807
+
5808
+ const _getObservedAttribute = (host, target, matcher, attr) => {
5809
+ const matcherConfig = _getMatcherConfig(host, target, matcher);
5810
+ if (matcherConfig) return matcherConfig.currentAttributes.get(attr);
5811
+ return undefined;
5812
+ };
5813
+
5814
+ const _getObservedAttributes = (host, target, matcher) => {
5815
+ const matcherConfig = _getMatcherConfig(host, target, matcher);
5816
+ if (matcherConfig) return Array.from(matcherConfig.currentAttributes.entries());
5817
+ return [];
5818
+ };
5819
+
5820
+ const _matchers = {
5821
+ 'aria-': attr => attr.startsWith('aria-'),
5822
+ 'role': attr => attr.match(/^role$/)
5823
+ };
5824
+
5825
+ const transportAllA11yAttributes = ({ host, target, removeOriginal = true }) => {
5826
+ return transportAttributes({
5827
+ host,
5828
+ target,
5829
+ match: attr => {
5830
+ for (const key in _matchers) {
5831
+ if (_matchers[key](attr)) return true;
5832
+ }
5833
+ return false;
5834
+ },
5835
+ removeOriginal
5836
+ });
5837
+ };
5838
+
5839
+ let AuroElement$1 = class AuroElement extends i$2 {
5840
+
5841
+ /**
5842
+ * @type {Object} return object from transportAttributes via a11yUtilities
5843
+ * @property {Function} cleanup - Function to clean up the attribute watcher.
5844
+ * @property {Function} getCurrentAttributes - Function to get the current attributes being watched and their values.
5845
+ * @property {Function} getObservedAttribute - Function to get the value of a specific observed attribute by name.
5846
+ * @private
5847
+ */
5848
+ attributeWatcher;
5849
+
5850
+ static get properties() {
5851
+ return {
5852
+
5853
+ /**
5854
+ * Defines the layout of an element.
5855
+ * @default {'default'}
5856
+ */
5857
+ layout: {
5858
+ type: String,
5859
+ attribute: "layout",
5860
+ reflect: true
5861
+ },
5862
+
5863
+ /**
5864
+ * Defines the shape of an element.
5865
+ * @property {'default', 'rounded', 'pill', 'circle'}
5866
+ * @default {'default'}
5867
+ */
5868
+ shape: {
5869
+ type: String,
5870
+ attribute: "shape",
5871
+ reflect: true
5872
+ },
5873
+
5874
+ /**
5875
+ * Defines the size of an element.
5876
+ * @property {'xs', 'sm', 'md', 'lg', 'xl'}
5877
+ * @default {'md'}
5878
+ */
5879
+ size: {
5880
+ type: String,
5881
+ attribute: "size",
5882
+ reflect: true
5883
+ },
5884
+
5885
+ /**
5886
+ * This Boolean attribute lets you specify that the element should be rendered in dark mode.
5887
+ * @default {false}
5888
+ */
5889
+ onDark: {
5890
+ type: Boolean,
5891
+ attribute: "ondark",
5892
+ reflect: true
5893
+ },
5894
+
5895
+ /**
5896
+ * A reference to the wrapper element in the shadow DOM.
5897
+ * This is used to apply layout and shape classes dynamically.
5898
+ * @type {HTMLElement|null}
5899
+ * @default {null}
5900
+ * @private
5901
+ */
5902
+ wrapper: {
5903
+ attribute: false,
5904
+ reflect: false
5905
+ }
5906
+ };
5907
+ }
5908
+
5909
+
5910
+
5911
+ resetShapeClasses() {
5912
+ if (this.shape && this.size) {
5913
+
5914
+ if (this.wrapper) {
5915
+ this.wrapper.classList.forEach((className) => {
5916
+ if (className.startsWith('shape-')) {
5917
+ this.wrapper.classList.remove(className);
5918
+ }
5919
+ });
5920
+
5921
+ this.wrapper.classList.add(`shape-${this.shape.toLowerCase()}-${this.size.toLowerCase()}`);
5922
+ }
5923
+ }
5924
+ }
5925
+
5926
+ resetLayoutClasses() {
5927
+ if (this.layout) {
5928
+ if (this.wrapper) {
5929
+ this.wrapper.classList.forEach((className) => {
5930
+ if (className.startsWith('layout-')) {
5931
+ this.wrapper.classList.remove(className);
5932
+ }
5933
+ });
5934
+
5935
+ this.wrapper.classList.add(`layout-${this.layout.toLowerCase()}`);
5936
+ }
5937
+ }
5938
+ }
5939
+
5940
+ updateComponentArchitecture() {
5941
+ this.resetLayoutClasses();
5942
+ this.resetShapeClasses();
5943
+ }
5944
+
5945
+ updated(changedProperties) {
5946
+ if (changedProperties.has('layout') || changedProperties.has('shape') || changedProperties.has('size')) {
5947
+ this.updateComponentArchitecture();
5948
+ }
5949
+ }
5950
+
5951
+ firstUpdated() {
5952
+ super.firstUpdated();
5953
+
5954
+ // Set a reference to the wrapper element in the shadow DOM
5955
+ this.wrapper = this.shadowRoot.querySelector('.wrapper');
5956
+
5957
+ // Initialize the transportation of ARIA attributes to the target element and get the disconnect function for cleanup
5958
+ this.attributeWatcher = transportAllA11yAttributes({ host: this, target: this.shadowRoot.querySelector('.wrapper') });
5959
+ }
5960
+
5961
+ disconnectedCallback() {
5962
+ super.disconnectedCallback();
5963
+
5964
+ // Cleanup the ARIA observer if it exists
5965
+ if (this.attributeWatcher) {
5966
+ this.attributeWatcher.cleanup();
5967
+ this.attributeWatcher = null;
5968
+ }
5969
+ }
5970
+
5971
+ // Try to render the defined `this.layout` layout. If that fails, fall back to the default layout.
5972
+ // This will catch if an invalid layout value is passed in and render the default layout if so.
5973
+ render() {
5974
+ try {
5975
+ return this.renderLayout();
5976
+ } catch (error) {
5977
+ // failed to get the defined layout
5978
+ console.error('Failed to get the defined layout - using the default layout', error); // eslint-disable-line no-console
5979
+
5980
+ // fallback to the default layout
5981
+ return this.getLayout('default');
5982
+ }
5983
+ }
5984
+ };
5985
+
5986
+ 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}`;
5987
+
5988
+ 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)}`;
5989
+
5990
+ 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}`;
5991
+
5992
+ 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}`;
5993
+
5994
+ // Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
5995
+ // See LICENSE in the project root for license information.
5996
+
5997
+ // ---------------------------------------------------------------------
5998
+
5999
+ /* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
6000
+
6001
+ let AuroLibraryRuntimeUtils$1$1 = class AuroLibraryRuntimeUtils {
6002
+
6003
+ /* eslint-disable jsdoc/require-param */
6004
+
6005
+ /**
6006
+ * This will register a new custom element with the browser.
6007
+ * @param {String} name - The name of the custom element.
6008
+ * @param {Object} componentClass - The class to register as a custom element.
6009
+ * @returns {void}
6010
+ */
6011
+ registerComponent(name, componentClass) {
6012
+ if (!customElements.get(name)) {
6013
+ customElements.define(name, class extends componentClass {});
6014
+ }
6015
+ }
6016
+
6017
+ /**
6018
+ * Finds and returns the closest HTML Element based on a selector.
6019
+ * @returns {void}
6020
+ */
6021
+ closestElement(
6022
+ selector, // selector like in .closest()
6023
+ base = this, // extra functionality to skip a parent
6024
+ __Closest = (el, found = el && el.closest(selector)) =>
6025
+ !el || el === document || el === window
6026
+ ? null // standard .closest() returns null for non-found selectors also
6027
+ : found
6028
+ ? found // found a selector INside this element
6029
+ : __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
6030
+ ) {
6031
+ return __Closest(base);
6032
+ }
6033
+ /* eslint-enable jsdoc/require-param */
6034
+
6035
+ /**
6036
+ * 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.
6037
+ * @param {Object} elem - The element to check.
6038
+ * @param {String} tagName - The name of the Auro component to check for or add as an attribute.
6039
+ * @returns {void}
6040
+ */
6041
+ handleComponentTagRename(elem, tagName) {
6042
+ const tag = tagName.toLowerCase();
6043
+ const elemTag = elem.tagName.toLowerCase();
6044
+
6045
+ if (elemTag !== tag) {
6046
+ elem.setAttribute(tag, true);
6047
+ }
6048
+ }
6049
+
6050
+ /**
6051
+ * Validates if an element is a specific Auro component.
6052
+ * @param {Object} elem - The element to validate.
6053
+ * @param {String} tagName - The name of the Auro component to check against.
6054
+ * @returns {Boolean} - Returns true if the element is the specified Auro component.
6055
+ */
6056
+ elementMatch(elem, tagName) {
6057
+ const tag = tagName.toLowerCase();
6058
+ const elemTag = elem.tagName.toLowerCase();
6059
+
6060
+ return elemTag === tag || elem.hasAttribute(tag);
6061
+ }
6062
+ };
6063
+
6064
+ 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}}`;
6065
+
6066
+ 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}`;
6067
+
6068
+ var tokensCss$1$1 = i$5`:host{--ds-auro-loader-background-color:currentcolor;--ds-auro-loader-border-color:currentcolor;--ds-auro-loader-color:currentcolor}`;
6069
+
6070
+ // Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
6071
+ // See LICENSE in the project root for license information.
6072
+
6073
+
6074
+ class AuroLoader extends i$2 {
6075
+ constructor() {
6076
+ super();
6077
+
6078
+ /**
6079
+ * @private
6080
+ */
6081
+ this.keys = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9];
6082
+
6083
+ /**
6084
+ * @private
6085
+ */
6086
+ this.mdCount = 3;
6087
+
6088
+ /**
6089
+ * @private
6090
+ */
6091
+ this.smCount = 2;
6092
+
6093
+ /**
6094
+ * @private
6095
+ */
6096
+ this.runtimeUtils = new AuroLibraryRuntimeUtils$1$1();
6097
+
6098
+ this.orbit = false;
6099
+ this.ringworm = false;
6100
+ this.laser = false;
6101
+ this.pulse = false;
6102
+ }
6103
+
6104
+ // function to define props used within the scope of this component
6105
+ static get properties() {
6106
+ return {
6107
+
6108
+ /**
6109
+ * Sets loader to laser type.
6110
+ */
6111
+ laser: {
6112
+ type: Boolean,
6113
+ reflect: true
6114
+ },
6115
+
6116
+ /**
6117
+ * Sets loader to orbit type.
6118
+ */
6119
+ orbit: {
6120
+ type: Boolean,
6121
+ reflect: true
6122
+ },
6123
+
6124
+ /**
6125
+ * Sets loader to pulse type.
6126
+ */
6127
+ pulse: {
6128
+ type: Boolean,
6129
+ reflect: true
6130
+ },
6131
+
6132
+ /**
6133
+ * Sets loader to ringworm type.
6134
+ */
6135
+ ringworm: {
6136
+ type: Boolean,
6137
+ reflect: true
6138
+ }
6139
+ };
6140
+ }
6141
+
6142
+ static get styles() {
6143
+ return [
6144
+ i$5`${styleCss$2$1}`,
6145
+ i$5`${colorCss$1$1}`,
6146
+ i$5`${tokensCss$1$1}`
6147
+ ];
6148
+ }
6149
+
6150
+ /**
6151
+ * This will register this element with the browser.
6152
+ * @param {string} [name="auro-loader"] - The name of element that you want to register to.
6153
+ *
6154
+ * @example
6155
+ * AuroLoader.register("custom-loader") // this will register this element to <custom-loader/>
6156
+ *
6157
+ */
6158
+ static register(name = "auro-loader") {
6159
+ AuroLibraryRuntimeUtils$1$1.prototype.registerComponent(name, AuroLoader);
6160
+ }
6161
+
6162
+ firstUpdated() {
6163
+ // Add the tag name as an attribute if it is different than the component name
6164
+ this.runtimeUtils.handleComponentTagRename(this, 'auro-loader');
6165
+ }
6166
+
6167
+ connectedCallback() {
6168
+ super.connectedCallback();
6169
+ }
6170
+
6171
+ /**
6172
+ * @private
6173
+ * @returns {Array} Numbered array for template map.
6174
+ */
6175
+ defineTemplate() {
6176
+ let nodes = Array.from(Array(this.mdCount).keys());
6177
+
6178
+ if (this.orbit || this.laser) {
6179
+ nodes = Array.from(Array(this.smCount).keys());
6180
+ } else if (this.ringworm) {
6181
+ nodes = Array.from(Array(0).keys());
6182
+ }
6183
+
6184
+ return nodes;
6185
+ }
6186
+
6187
+ // When using auroElement, use the following attribute and function when hiding content from screen readers.
6188
+ // aria-hidden="${this.hideAudible(this.hiddenAudible)}"
6189
+
6190
+ // function that renders the HTML and CSS into the scope of the component
6191
+ render() {
6192
+ return x`
6193
+ ${this.defineTemplate().map((idx) => x`
6194
+ <span part="element" class="loader node-${idx}"></span>
6195
+ `)}
6196
+
6197
+ <div class="no-animation body-default">Loading...</div>
6198
+
6199
+ ${this.ringworm ? x`
6200
+ <svg part="element" class="circular" viewBox="25 25 50 50">
6201
+ <circle class="path" cx="50" cy="50" r="20" fill="none"/>
6202
+ </svg>`
6203
+ : ``
6204
+ }
6205
+ `;
6206
+ }
6207
+ }
6208
+
6209
+ var loaderVersion = '5.1.0';
6210
+
6211
+ // Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
6212
+ // See LICENSE in the project root for license information.
6213
+
6214
+
6215
+ /**
6216
+ * @slot - Default slot for the text of the button.
6217
+ * @csspart button - Apply CSS to HTML5 button.
6218
+ * @csspart loader - Apply CSS to auro-loader.
6219
+ * @csspart text - Apply CSS to text slot.
6220
+ * @csspart icon - Apply CSS to icon slot.
6221
+ */
6222
+
6223
+ const ICON_ONLY_SHAPES = ['circle', 'square'];
6224
+
6225
+ /**
6226
+ * AuroButton is a custom element that provides a styled, accessible button with support for various states and form association.
6227
+ * It is designed to be flexible, supporting loading states, icon slots, and integration with HTML5 forms.
6228
+ * @property {'default', 'rounded', 'pill', 'circle', 'square'} shape - Defines the shape of the button.
6229
+ * @property {'xs', 'sm', 'md', 'lg', 'xl'} size - Defines the size of the button.
6230
+ * @property {'primary', 'secondary', 'tertiary', 'ghost', 'flat'} variant - Sets the button variant.
6231
+ * @property {'submit', 'reset', 'button'} type - The type of button. Matches HTML5 Button Spec.
6232
+ * @property {boolean} onDark - Indicates if the button is rendered in dark mode.
6233
+ */
6234
+ class AuroButton extends AuroElement$1 {
6235
+
6236
+ /**
6237
+ * Enables form association for this element.
6238
+ * @see https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/attachInternals
6239
+ * @returns {boolean} - Returns true to enable form association.
6240
+ */
6241
+ static get formAssociated() {
6242
+ return true;
6243
+ }
6244
+
6245
+ constructor() {
6246
+ super();
6247
+ this.autofocus = false;
6248
+ this.disabled = false;
6249
+ this.loading = false;
6250
+ this.size = "md";
6251
+ this.shape = "rounded";
6252
+ this.onDark = false;
6253
+ this.fluid = false;
6254
+ this.loadingText = this.loadingText || 'Loading...';
6255
+ this.variant = 'primary';
6256
+
6257
+ // Support for HTML5 forms
6258
+ if (typeof this.attachInternals === 'function') {
6259
+ this.internals = this.attachInternals();
6260
+ } else {
6261
+ this.internals = null;
6262
+
6263
+ // eslint-disable-next-line no-console
6264
+ 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.');
6265
+ }
6266
+
6267
+ /**
6268
+ * Generate unique names for dependency components.
6269
+ */
6270
+ const versioning = new AuroDependencyVersioning();
6271
+
6272
+ /**
6273
+ * @private
6274
+ */
6275
+ this.loaderTag = versioning.generateTag('auro-loader', loaderVersion, AuroLoader);
6276
+
6277
+ /**
6278
+ * @private
6279
+ */
6280
+ this.buttonHref = undefined;
6281
+
6282
+ /**
6283
+ * @private
6284
+ */
6285
+ this.buttonTarget = undefined;
6286
+
6287
+ /**
6288
+ * @private
6289
+ */
6290
+ this.buttonRel = undefined;
6291
+ }
6292
+
6293
+ static get styles() {
6294
+ return [
6295
+ tokensCss$2$1,
6296
+ styleCss$3$1,
6297
+ colorCss$2$1,
6298
+ shapeSize
6299
+ ];
6300
+ }
6301
+
6302
+ static get properties() {
6303
+ return {
6304
+
6305
+ ...super.properties,
6306
+
6307
+ /**
6308
+ * Override layout since it isn't used in this component.
6309
+ * @private
6310
+ */
6311
+ layout: {
6312
+ type: Boolean,
6313
+ attribute: false,
6314
+ reflect: false
6315
+ },
6316
+
6317
+ /**
6318
+ * This Boolean attribute lets you specify that the button should have input focus when the page loads, unless overridden by the user.
6319
+ */
6320
+ autofocus: {
6321
+ type: Boolean,
6322
+ reflect: true
6323
+ },
6324
+
6325
+ /**
6326
+ * If set to true, button will become disabled and not allow for interactions.
6327
+ */
6328
+ disabled: {
6329
+ type: Boolean,
6330
+ reflect: true
6331
+ },
6332
+
6333
+ /**
6334
+ * Alters the shape of the button to be full width of its parent container.
6335
+ */
6336
+ fluid: {
6337
+ type: Boolean,
6338
+ reflect: true
6339
+ },
6340
+
6341
+ /**
6342
+ * If set to true button text will be replaced with `auro-loader` and become disabled.
6343
+ */
6344
+ loading: {
6345
+ type: Boolean,
6346
+ reflect: true
6347
+ },
6348
+
6349
+ /**
6350
+ * 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.
6351
+ */
6352
+ loadingText: {
6353
+ type: String
6354
+ },
6355
+
6356
+ /**
6357
+ * Populates `tabindex` to define the focusable sequence in keyboard navigation.
6358
+ */
6359
+ tIndex: {
6360
+ type: String,
6361
+ reflect: true
6362
+ },
6363
+
6364
+ /**
6365
+ * Populates `tabindex` to define the focusable sequence in keyboard navigation.
6366
+ * Must be used with "." to ensure the host element does not retain a reference to the `tabindex` attribute.
6367
+ * Example: `<auro-button .tabindex="${this.disabled ? '-1' : '0'}"></auro-button>`.
6368
+ */
6369
+ tabindex: {
6370
+ type: String,
6371
+ reflect: false
6372
+ },
6373
+
6374
+ /**
6375
+ * Sets title attribute. The information is most often shown as a tooltip text when the mouse moves over the element.
6376
+ */
6377
+ title: {
6378
+ type: String,
6379
+ reflect: true
6380
+ },
6381
+
6382
+ /**
6383
+ * The type of the button. Possible values are: `submit`, `reset`, `button`.
6384
+ */
6385
+ type: {
6386
+ type: String,
6387
+ reflect: true
6388
+ },
6389
+
6390
+ /**
6391
+ * Defines the value associated with the button which is submitted with the form data.
6392
+ */
6393
+ value: {
6394
+ type: String,
6395
+ reflect: true
6396
+ },
6397
+
6398
+ /**
6399
+ * Sets button variant option.
6400
+ * @default primary
6401
+ */
6402
+ variant: {
6403
+ type: String,
6404
+ reflect: true
6405
+ },
6406
+
6407
+ /**
6408
+ * @private
6409
+ */
6410
+ buttonHref: {
6411
+ type: String,
6412
+ },
6413
+
6414
+ /**
6415
+ * @private
6416
+ */
6417
+ buttonTarget: {
6418
+ type: String,
6419
+ },
6420
+
6421
+ /**
6422
+ * @private
6423
+ */
6424
+ buttonRel: {
6425
+ type: String,
6426
+ },
6427
+ };
6428
+ }
6429
+
6430
+ /**
6431
+ * This will register this element with the browser.
6432
+ * @param {string} [name="auro-button"] - The name of element that you want to register to.
6433
+ *
6434
+ * @example
6435
+ * AuroButton.register("custom-button") // this will register this element to <custom-button/>
6436
+ *
6437
+ */
6438
+ static register(name = "auro-button") {
6439
+ AuroLibraryRuntimeUtils$2.prototype.registerComponent(name, AuroButton);
6440
+ }
6441
+
6442
+ /**
6443
+ * Internal method to apply focus to the HTML5 button.
6444
+ * @private
6445
+ * @returns {void}
6446
+ */
6447
+ focus() {
6448
+ this.renderRoot.querySelector('button').focus();
6449
+ }
6450
+
6451
+ /**
6452
+ * Submits the form that this button is associated with.
6453
+ * @private
6454
+ * @returns {void}
6455
+ */
6456
+ surfaceSubmitEvent() {
6457
+ if (this.form) {
6458
+ this.form.requestSubmit();
6459
+ }
6460
+ }
6461
+
6462
+ /**
6463
+ * Returns the form element that this button is associated with.
6464
+ * @private
6465
+ * @returns {HTMLFormElement | null}
5232
6466
  */
5233
- closestElement(
5234
- selector, // selector like in .closest()
5235
- base = this, // extra functionality to skip a parent
5236
- __Closest = (el, found = el && el.closest(selector)) =>
5237
- !el || el === document || el === window
5238
- ? null // standard .closest() returns null for non-found selectors also
5239
- : found
5240
- ? found // found a selector INside this element
5241
- : __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
5242
- ) {
5243
- return __Closest(base);
6467
+ get form() {
6468
+ return this.internals ? this.internals.form : null;
5244
6469
  }
5245
- /* eslint-enable jsdoc/require-param */
5246
6470
 
5247
6471
  /**
5248
- * 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.
5249
- * @param {Object} elem - The element to check.
5250
- * @param {String} tagName - The name of the Auro component to check for or add as an attribute.
5251
- * @returns {void}
6472
+ * @private
6473
+ * @returns {Boolean}
5252
6474
  */
5253
- handleComponentTagRename(elem, tagName) {
5254
- const tag = tagName.toLowerCase();
5255
- const elemTag = elem.tagName.toLowerCase();
5256
-
5257
- if (elemTag !== tag) {
5258
- elem.setAttribute(tag, true);
5259
- }
6475
+ get showText() {
6476
+ return !ICON_ONLY_SHAPES.includes(this.shape);
5260
6477
  }
5261
6478
 
5262
6479
  /**
5263
- * Validates if an element is a specific Auro component.
5264
- * @param {Object} elem - The element to validate.
5265
- * @param {String} tagName - The name of the Auro component to check against.
5266
- * @returns {Boolean} - Returns true if the element is the specified Auro component.
6480
+ * Returns the current value of the projected `aria-label` attribute or undefined if not set.
6481
+ * @returns {string | undefined}
6482
+ * @private
5267
6483
  */
5268
- elementMatch(elem, tagName) {
5269
- const tag = tagName.toLowerCase();
5270
- const elemTag = elem.tagName.toLowerCase();
6484
+ get currentAriaLabel() {
6485
+ if (!this.attributeWatcher) return undefined;
5271
6486
 
5272
- return elemTag === tag || elem.hasAttribute(tag);
6487
+ const ariaLabel = this.attributeWatcher.getObservedAttribute("aria-label");
6488
+ return ariaLabel || undefined;
5273
6489
  }
5274
- };
5275
6490
 
5276
- // Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
5277
- // See LICENSE in the project root for license information.
6491
+ /**
6492
+ * Returns the current value of the projected `aria-labelledby` attribute or undefined if not set.
6493
+ * @returns {string | undefined}
6494
+ * @private
6495
+ */
6496
+ get currentAriaLabelledBy() {
6497
+ if (!this.attributeWatcher) return undefined;
5278
6498
 
6499
+ const ariaLabelledBy = this.attributeWatcher.getObservedAttribute("aria-labelledby");
6500
+ return ariaLabelledBy || undefined;
6501
+ }
5279
6502
 
5280
- class AuroDependencyVersioning {
6503
+ /**
6504
+ * Whether or not the button is set to an icon-only shape.
6505
+ * @returns {boolean} - True if the button is icon-only, false otherwise.
6506
+ * @private
6507
+ */
6508
+ get iconOnly() {
6509
+ return ICON_ONLY_SHAPES.includes(this.shape);
6510
+ }
5281
6511
 
5282
6512
  /**
5283
- * Generates a unique string to be used for child auro element naming.
6513
+ * Gets a class name for the font size based on the button's size and shape.
6514
+ * @returns {string} - The font size class name.
5284
6515
  * @private
5285
- * @param {string} baseName - Defines the first part of the unique element name.
5286
- * @param {string} version - Version of the component that will be appended to the baseName.
5287
- * @returns {string} - Unique string to be used for naming.
5288
6516
  */
5289
- generateElementName(baseName, version) {
5290
- let result = baseName;
6517
+ getFontSize() {
5291
6518
 
5292
- result += '-';
5293
- result += version.replace(/[.]/g, '_');
6519
+ // Size map for standard buttons
6520
+ const standardButtonSizeMap = {
6521
+ xs: 'body-xs',
6522
+ sm: 'body-sm',
6523
+ md: 'body-default',
6524
+ lg: 'body-lg',
6525
+ xl: 'body-lg'
6526
+ };
5294
6527
 
5295
- return result;
6528
+ // Size map for icon-only buttons
6529
+ const iconOnlyButtonSizeMap = {
6530
+ xs: 'heading-xs',
6531
+ sm: 'heading-sm',
6532
+ md: 'heading-sm',
6533
+ lg: 'heading-md',
6534
+ xl: 'heading-lg'
6535
+ };
6536
+
6537
+ // Determine which map to use based on the shape
6538
+ const sizeMap = this.iconOnly ? iconOnlyButtonSizeMap : standardButtonSizeMap;
6539
+
6540
+ // Return the font size based on the button size and shape
6541
+ return sizeMap[this.size] || 'body-default';
5296
6542
  }
5297
6543
 
5298
6544
  /**
5299
- * Generates a unique string to be used for child auro element naming.
5300
- * @param {string} baseName - Defines the first part of the unique element name.
5301
- * @param {string} version - Version of the component that will be appended to the baseName.
5302
- * @returns {string} - Unique string to be used for naming.
6545
+ * Renders the default layout for the button.
6546
+ * @returns {TemplateResult}
6547
+ * @private
5303
6548
  */
5304
- generateTag(baseName, version, tagClass) {
5305
- const elementName = this.generateElementName(baseName, version);
5306
- const tag = i`${s(elementName)}`;
6549
+ renderLayoutDefault() {
5307
6550
 
5308
- if (!customElements.get(elementName)) {
5309
- customElements.define(elementName, class extends tagClass {});
5310
- }
6551
+ const fontSize = this.getFontSize();
6552
+ const tag = this.buttonHref ? i`a` : i`button`;
6553
+ const part = this.buttonHref ? 'link' : 'button';
5311
6554
 
5312
- return tag;
6555
+ const classes = {
6556
+ "auro-button": true,
6557
+ "inset": this.showText,
6558
+ wrapper: true,
6559
+ loading: this.loading,
6560
+ [`${fontSize}`]: true,
6561
+
6562
+ // These remove the default borders so we can handle focus borders ourselves
6563
+ 'simple': !['secondary'].includes(this.variant),
6564
+ 'thin': ['secondary'].includes(this.variant),
6565
+ };
6566
+
6567
+ const contentClasses = {
6568
+ "contentWrapper": true,
6569
+ "util_displayHiddenVisually": this.loading
6570
+ };
6571
+
6572
+ return u`
6573
+ <${tag}
6574
+ part="${part}"
6575
+ aria-label="${o(this.loading ? this.loadingText : this.currentAriaLabel || undefined)}"
6576
+ aria-labelledby="${o(this.loading ? undefined : this.currentAriaLabelledBy || undefined)}"
6577
+ tabindex="${o(this.tIndex || this.tabindex)}"
6578
+ ?autofocus="${this.autofocus}"
6579
+ class=${e(classes)}
6580
+ ?disabled="${this.disabled || this.loading}"
6581
+ ?onDark="${this.onDark}"
6582
+ title="${o(this.title ? this.title : undefined)}"
6583
+ name="${o(this.name ? this.name : undefined)}"
6584
+ type="${o(this.type ? this.type : undefined)}"
6585
+ variant="${o(this.variant ? this.variant : undefined)}"
6586
+ .value="${o(this.value ? this.value : undefined)}"
6587
+ @click="${this.type === 'submit' ? this.surfaceSubmitEvent : undefined}"
6588
+ href="${o(this.buttonHref || undefined)}"
6589
+ target="${o(this.buttonTarget || undefined)}"
6590
+ rel="${o(this.buttonRel || undefined)}"
6591
+ >
6592
+ ${o(this.loading ? u`<${this.loaderTag} pulse part="loader"></${this.loaderTag}>` : undefined)}
6593
+
6594
+ <span class="${e(contentClasses)}">
6595
+ <span class="textSlot" part="text">
6596
+ <slot></slot>
6597
+ </span>
6598
+ </span>
6599
+ </${tag}>
6600
+ `;
6601
+ }
6602
+
6603
+ /**
6604
+ * Renders the layout of the button.
6605
+ * @returns {TemplateResult}
6606
+ * @private
6607
+ */
6608
+ renderLayout() {
6609
+ return this.renderLayoutDefault();
5313
6610
  }
5314
6611
  }
5315
6612
 
6613
+ var buttonVersion = '11.3.0';
6614
+
5316
6615
  // Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
5317
6616
  // See LICENSE in the project root for license information.
5318
6617
 
@@ -5323,7 +6622,7 @@ class AuroDependencyVersioning {
5323
6622
  * @attr {Boolean} hiddenAudible - If present, the component will be hidden from screen readers, but seen visually
5324
6623
  */
5325
6624
 
5326
- let AuroElement$1 = class AuroElement extends i$2 {
6625
+ let AuroElement$2 = class AuroElement extends i$2 {
5327
6626
 
5328
6627
  // function to define props used within the scope of this component
5329
6628
  static get properties() {
@@ -5391,7 +6690,7 @@ var styleCss$1$1 = i$5`:focus:not(:focus-visible){outline:3px solid transparent}
5391
6690
  */
5392
6691
 
5393
6692
  // build the component class
5394
- let BaseIcon$1 = class BaseIcon extends AuroElement$1 {
6693
+ let BaseIcon$1 = class BaseIcon extends AuroElement$2 {
5395
6694
  constructor() {
5396
6695
  super();
5397
6696
  this.onDark = false;
@@ -5474,7 +6773,7 @@ var colorCss$4 = i$5`:host{color:var(--ds-auro-icon-color)}:host([customColor]){
5474
6773
 
5475
6774
  /* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
5476
6775
 
5477
- let AuroLibraryRuntimeUtils$2 = class AuroLibraryRuntimeUtils {
6776
+ let AuroLibraryRuntimeUtils$3 = class AuroLibraryRuntimeUtils {
5478
6777
 
5479
6778
  /* eslint-disable jsdoc/require-param */
5480
6779
 
@@ -5556,7 +6855,7 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
5556
6855
  */
5557
6856
  privateDefaults() {
5558
6857
  this.uri = 'https://cdn.jsdelivr.net/npm/@alaskaairux/icons@latest/dist';
5559
- this.runtimeUtils = new AuroLibraryRuntimeUtils$2();
6858
+ this.runtimeUtils = new AuroLibraryRuntimeUtils$3();
5560
6859
  }
5561
6860
 
5562
6861
  // function to define props used within the scope of this component
@@ -5638,7 +6937,7 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
5638
6937
  *
5639
6938
  */
5640
6939
  static register(name = "auro-icon") {
5641
- AuroLibraryRuntimeUtils$2.prototype.registerComponent(name, AuroIcon);
6940
+ AuroLibraryRuntimeUtils$3.prototype.registerComponent(name, AuroIcon);
5642
6941
  }
5643
6942
 
5644
6943
  connectedCallback() {
@@ -5659,8 +6958,12 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
5659
6958
  async firstUpdated() {
5660
6959
  await super.firstUpdated();
5661
6960
 
5662
- // Removes the SVG description for screenreader if ariaHidden is set to true
5663
- if (!this.hasAttribute('ariaHidden') && this.svg) {
6961
+ /**
6962
+ * icons provide a description for screen readers. Icon only instances Auro-button
6963
+ * depend on this description to provide context for the user using a screen reader.
6964
+ * Removes the SVG description for screen reader if ariaHidden is set to true.
6965
+ */
6966
+ if (this.hasAttribute('ariaHidden') && this.svg) {
5664
6967
  const svgDesc = this.svg.querySelector('desc');
5665
6968
 
5666
6969
  if (svgDesc) {
@@ -5704,9 +7007,9 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
5704
7007
  }
5705
7008
  };
5706
7009
 
5707
- var iconVersion$1 = '8.0.3';
7010
+ var iconVersion$1 = '8.1.0';
5708
7011
 
5709
- 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)}`;
7012
+ 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)}`;
5710
7013
 
5711
7014
  // Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
5712
7015
  // See LICENSE in the project root for license information.
@@ -5716,13 +7019,12 @@ var styleCss$5 = i$5`.heading{margin:1.75rem 0;letter-spacing:var(--ds-text-head
5716
7019
  * The auro-header component is a custom element to make using headers with the Auro Design System seamless and easy.
5717
7020
  *
5718
7021
  * @attr {Boolean} no-margin-block - if declared, margin-block will be set to `0`
5719
- * @attr {String} level - Determines heading level for HTML element. Options are `1` - `6`
5720
- * @attr {String} display - Determines presentation of header. Options are `display`, `800`, `700`, `600`, `500`, `400`, `300`.
5721
7022
  * @attr {String} color - Allows user to pass in CSS custom property or direct hex value to change the color of the header
7023
+ * @attr {String} display - Determines the visual appearance of the header. Options are `display`, `800`, `700`, `600`, `500`, `400`, `300`.
7024
+ * @attr {String} level - Determines the semantic heading level of the HTML element. Options are `1` - `6`
5722
7025
  * @attr {String} margin - Specify the margin(s) to be altered. Options are `top`, `bottom`, or `both`.
5723
7026
  * @attr {String} size - Specify size of margin adjustment, either `none`, `25`, `50`, `100`, `150`, `200`, `300`, `400`, `600` or `800`.
5724
7027
  */
5725
-
5726
7028
  /* eslint complexity: ["error", 21] */
5727
7029
 
5728
7030
  // build the component class
@@ -5735,7 +7037,7 @@ class AuroHeader extends i$2 {
5735
7037
  /**
5736
7038
  * @private
5737
7039
  */
5738
- this.runtimeUtils = new AuroLibraryRuntimeUtils$1$1();
7040
+ this.runtimeUtils = new AuroLibraryRuntimeUtils$2();
5739
7041
  }
5740
7042
 
5741
7043
  // function to define props used within the scope of this component
@@ -5756,6 +7058,22 @@ class AuroHeader extends i$2 {
5756
7058
  return [styleCss$5];
5757
7059
  }
5758
7060
 
7061
+ /**
7062
+ * Mapping of display values to their corresponding CSS classes
7063
+ * @private
7064
+ */
7065
+ static get displayClassMap() {
7066
+ return {
7067
+ 'display': 'heading-xl',
7068
+ '800': 'heading-xl',
7069
+ '700': 'heading-lg',
7070
+ '600': 'heading-md',
7071
+ '500': 'heading-sm',
7072
+ '400': 'heading-xs',
7073
+ '300': 'heading-2xs'
7074
+ };
7075
+ }
7076
+
5759
7077
  /**
5760
7078
  * This will register this element with the browser.
5761
7079
  * @param {string} [name="auro-header"] - The name of element that you want to register to.
@@ -5765,7 +7083,7 @@ class AuroHeader extends i$2 {
5765
7083
  *
5766
7084
  */
5767
7085
  static register(name = "auro-header") {
5768
- AuroLibraryRuntimeUtils$1$1.prototype.registerComponent(name, AuroHeader);
7086
+ AuroLibraryRuntimeUtils$2.prototype.registerComponent(name, AuroHeader);
5769
7087
  }
5770
7088
 
5771
7089
  firstUpdated() {
@@ -5832,23 +7150,42 @@ class AuroHeader extends i$2 {
5832
7150
  this.display = 'display';
5833
7151
  }
5834
7152
 
5835
- switch (level) {
5836
- 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>`;
5837
- 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>`;
5838
- 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>`;
5839
- 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>`;
5840
- 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>`;
5841
- default: return x`<h1 class="heading heading--${this.display} ${this.spacingDecision(this.size)}" style="color: ${o(this.color ? this.color : undefined)}"><slot></slot></h1>`;
7153
+ const headingLevel = level || '1';
7154
+ const spacingClasses = this.spacingDecision(this.size);
7155
+
7156
+ // Get the CSS class based on the display prop
7157
+ const headingClass = AuroHeader.displayClassMap[this.display];
7158
+
7159
+ const classObject = {
7160
+ 'heading': true,
7161
+ [`heading--${this.display}`]: true,
7162
+ [headingClass]: true
7163
+ };
7164
+
7165
+ // Add spacing classes to the class object if they exist
7166
+ if (spacingClasses) {
7167
+ const spacingClassArray = spacingClasses.split(' ');
7168
+ spacingClassArray.forEach(cls => {
7169
+ if (cls.trim()) {
7170
+ classObject[cls.trim()] = true;
7171
+ }
7172
+ });
5842
7173
  }
7174
+
7175
+ const headerClasses = e(classObject);
7176
+
7177
+ // unsafeStatic dynamically creates tag names at runtime
7178
+ const tag = s(`h${headingLevel}`);
7179
+ return u`<${tag} class="${headerClasses}" style="color: ${o(this.color ? this.color : undefined)}"><slot></slot></${tag}>`;
5843
7180
  }
7181
+
5844
7182
  // function that renders the HTML and CSS into the scope of the component
5845
-
5846
7183
  render() {
5847
7184
  return this.template(this.level);
5848
7185
  }
5849
7186
  }
5850
7187
 
5851
- var headerVersion = '4.0.1';
7188
+ var headerVersion = '4.0.2';
5852
7189
 
5853
7190
  // Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
5854
7191
  // See LICENSE in the project root for license information.
@@ -5861,17 +7198,30 @@ class AuroBibtemplate extends i$2 {
5861
7198
 
5862
7199
  this.large = false;
5863
7200
 
5864
- AuroLibraryRuntimeUtils$1$1.prototype.handleComponentTagRename(this, 'auro-bibtemplate');
7201
+ AuroLibraryRuntimeUtils$2.prototype.handleComponentTagRename(this, 'auro-bibtemplate');
5865
7202
 
5866
7203
  const versioning = new AuroDependencyVersioning();
7204
+
7205
+ /**
7206
+ * @private
7207
+ */
5867
7208
  this.iconTag = versioning.generateTag('auro-formkit-bibtemplate-icon', iconVersion$1, AuroIcon$1);
7209
+
7210
+ /**
7211
+ * @private
7212
+ */
5868
7213
  this.headerTag = versioning.generateTag('auro-formkit-bibtemplate-header', headerVersion, AuroHeader);
7214
+
7215
+ /**
7216
+ * @private
7217
+ */
7218
+ this.buttonTag = versioning.generateTag('auro-formkit-bibtemplate-button', buttonVersion, AuroButton);
5869
7219
  }
5870
7220
 
5871
7221
  static get styles() {
5872
7222
  return [
5873
- colorCss$1$1,
5874
- styleCss$2$1,
7223
+ colorCss$3$1,
7224
+ styleCss$4$1,
5875
7225
  tokenCss
5876
7226
  ];
5877
7227
  }
@@ -5900,7 +7250,7 @@ class AuroBibtemplate extends i$2 {
5900
7250
  *
5901
7251
  */
5902
7252
  static register(name = "auro-bibtemplate") {
5903
- AuroLibraryRuntimeUtils$1$1.prototype.registerComponent(name, AuroBibtemplate);
7253
+ AuroLibraryRuntimeUtils$2.prototype.registerComponent(name, AuroBibtemplate);
5904
7254
  }
5905
7255
 
5906
7256
  /**
@@ -5958,13 +7308,15 @@ class AuroBibtemplate extends i$2 {
5958
7308
  <div id="bibTemplate" part="bibtemplate">
5959
7309
  ${this.isFullscreen ? u`
5960
7310
  <div id="headerContainer">
5961
- <button id="closeButton" @click="${this.onCloseButtonClick}">
5962
- <${this.iconTag} category="interface" name="x-lg"></${this.iconTag}>
5963
- </button>
5964
- <${this.headerTag} display="${this.large ? 'display' : '600'}" level="3" size="none" id="header" no-margin-block>
5965
- <slot name="header"></slot>
5966
- </${this.headerTag}>
5967
- <span id="subheader">
7311
+ <div class="titleRow">
7312
+ <${this.headerTag} class="header" display="${this.large ? 'display' : '600'}" level="3" size="none" id="header" no-margin-block>
7313
+ <slot name="header"></slot>
7314
+ </${this.headerTag}>
7315
+ <${this.buttonTag} id="closeButton" aria-label="Close" variant="ghost" shape="circle" size="sm" @click="${this.onCloseButtonClick}">
7316
+ <${this.iconTag} category="interface" name="x-lg"></${this.iconTag}>
7317
+ </${this.buttonTag}>
7318
+ </div>
7319
+ <span class="subheader">
5968
7320
  <slot name="subheader"></slot>
5969
7321
  </span>
5970
7322
  </div>` : null}
@@ -5984,9 +7336,9 @@ class AuroBibtemplate extends i$2 {
5984
7336
 
5985
7337
  var bibTemplateVersion = '1.0.0';
5986
7338
 
5987
- 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)}`;
7339
+ 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)}`;
5988
7340
 
5989
- 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}`;
7341
+ 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}`;
5990
7342
 
5991
7343
  var tokensCss$2 = i$5`:host{--ds-auro-helptext-color: var(--ds-basic-color-texticon-muted, #676767)}`;
5992
7344
 
@@ -6066,8 +7418,6 @@ let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
6066
7418
 
6067
7419
  /**
6068
7420
  * Displays help text or error messages within form elements - Internal Use Only.
6069
- *
6070
- * @attr { Boolean } large - If declared, make font-size to 1rem(16px).
6071
7421
  */
6072
7422
  class AuroHelpText extends i$2 {
6073
7423
 
@@ -6183,7 +7533,7 @@ class AuroHelpText extends i$2 {
6183
7533
  // function that renders the HTML and CSS into the scope of the component
6184
7534
  render() {
6185
7535
  return x`
6186
- <div class="helptext-wrapper" ?visible="${this.hasTextContent}">
7536
+ <div class="helptext-wrapper body-xs" ?visible="${this.hasTextContent}">
6187
7537
  <slot @slotchange=${this.handleSlotChange}></slot>
6188
7538
  </div>
6189
7539
  `;
@@ -6192,68 +7542,7 @@ class AuroHelpText extends i$2 {
6192
7542
 
6193
7543
  var helpTextVersion = '1.0.0';
6194
7544
 
6195
- 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)}`;
6196
-
6197
- 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)}`;
6198
-
6199
- 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)}`;
6200
-
6201
- // Copyright (c) 2021 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
6202
- // See LICENSE in the project root for license information.
6203
-
6204
- // ---------------------------------------------------------------------
6205
-
6206
- /**
6207
- * Converts value to an array.
6208
- * If the value is a JSON string representing an array, it will be parsed.
6209
- * If the value is already an array, it is returned.
6210
- * If the value is undefined, it returns undefined.
6211
- * @private
6212
- * @param {any} value - The value to be converted. Can be a string, array, or undefined.
6213
- * @returns {Array|undefined} - The converted array or undefined.
6214
- * @throws {Error} - Throws an error if the value is not an array, undefined,
6215
- * or if the value cannot be parsed into an array from a JSON string.
6216
- */
6217
- function arrayConverter(value) {
6218
- // Allow undefined
6219
- if (value === undefined) {
6220
- return undefined;
6221
- }
6222
-
6223
- // Return the value if it is already an array
6224
- if (Array.isArray(value)) {
6225
- return value;
6226
- }
6227
-
6228
- try {
6229
- // If value is a JSON string, parse it
6230
- const parsed = typeof value === 'string' ? JSON.parse(value) : value;
6231
-
6232
- // Check if the parsed value is an array
6233
- if (Array.isArray(parsed)) {
6234
- return parsed;
6235
- }
6236
- } catch (error) {
6237
- // If JSON parsing fails, continue to throw an error below
6238
- /* eslint-disable no-console */
6239
- console.error('JSON parsing failed:', error);
6240
- }
6241
-
6242
- // Throw error if the input is not an array or undefined
6243
- throw new Error('Invalid value: Input must be an array or undefined');
6244
- }
6245
-
6246
- 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}`;
6247
-
6248
- 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)}`;
6249
-
6250
- 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}`;
6251
-
6252
- 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)}`;
6253
-
6254
- 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)}`;
6255
-
6256
- 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}`;
7545
+ 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}:host(:is([validity]:not([validity=valid]))) [auro-dropdown]{--ds-auro-select-border-color: var(--ds-basic-color-status-error, #e31f26);--ds-auro-dropdown-helptext-text-color: var(--ds-basic-color-texticon-default, #2a2a2a)}:host([ondark]:is([validity]:not([validity=valid]))) [auro-dropdown]{--ds-auro-select-border-color: var(--ds-basic-color-status-error-subtle, #fbc6c6);--ds-auro-dropdown-helptext-text-color: var(--ds-basic-color-texticon-inverse, #ffffff)}#slotHolder{display:none}:host([disabled]){pointer-events:none;user-select:none}:host([disabled]:not([ondark])) [auro-dropdown]{--ds-auro-select-border-color: var(--ds-basic-color-border-subtle, #dddddd)}:host(:not([layout*=classic])[disabled][ondark]) [auro-dropdown]{--ds-auro-select-border-color: transparent}`;
6257
7546
 
6258
7547
  // Copyright (c) 2021 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
6259
7548
  // See LICENSE in the project root for license information.
@@ -6266,9 +7555,10 @@ var styleCss$3 = i$5`.util_displayInline{display:inline}.util_displayInlineBlock
6266
7555
  * @slot - Default slot for the menu content.
6267
7556
  * @slot bib.fullscreen.headline - Defines the headline to display above menu-options
6268
7557
  * @slot label - Defines the content of the label.
7558
+ * @slot {HTMLSlotElement} optionalLabel - Allows overriding the optional display text "(optional)", which appears next to the label.
6269
7559
  * @slot helpText - Defines the content of the helpText.
6270
- * @slot placeholder - Defines the content of the placeholder to be shown when there is no value
6271
7560
  * @slot valueText - Dropdown value text display.
7561
+ * @slot displayValue - Allows custom HTML content to display the selected value when select is not focused.
6272
7562
  * @event auroSelect-valueSet - Notifies that the component has a new value set.
6273
7563
  * @event input - Notifies every time the value prop of the element is changed. The updated `value` and `optionSelected` will be delivered in `detail` object.
6274
7564
  * @event auroFormElement-validated - Notifies that the `validity` and `errorMessage` values have changed.
@@ -6276,7 +7566,7 @@ var styleCss$3 = i$5`.util_displayInline{display:inline}.util_displayInlineBlock
6276
7566
  */
6277
7567
 
6278
7568
  // build the component class
6279
- class AuroSelect extends AuroElement$3 {
7569
+ class AuroSelect extends AuroElement$4 {
6280
7570
  constructor() {
6281
7571
  super();
6282
7572
 
@@ -6286,12 +7576,7 @@ class AuroSelect extends AuroElement$3 {
6286
7576
  const idSubstrEnd = 8;
6287
7577
  const idSubstrStart = 2;
6288
7578
 
6289
- this.matchWidth = true;
6290
-
6291
- // Layout Config
6292
- this.layout = 'classic';
6293
- this.shape = 'classic';
6294
- this.size = 'xl';
7579
+ this.matchWidth = false;
6295
7580
 
6296
7581
  // floaterConfig
6297
7582
  this.placement = 'bottom-start';
@@ -6316,7 +7601,7 @@ class AuroSelect extends AuroElement$3 {
6316
7601
  /**
6317
7602
  * @private
6318
7603
  */
6319
- this.runtimeUtils = new AuroLibraryRuntimeUtils$4();
7604
+ this.runtimeUtils = new AuroLibraryRuntimeUtils$5();
6320
7605
 
6321
7606
  /**
6322
7607
  * Generate unique names for dependency components.
@@ -6366,6 +7651,11 @@ class AuroSelect extends AuroElement$3 {
6366
7651
  this.fullscreenBreakpoint = 'sm';
6367
7652
  this.onDark = false;
6368
7653
  this.isPopoverVisible = false;
7654
+
7655
+ // Layout Config
7656
+ this.layout = 'classic';
7657
+ this.shape = 'classic';
7658
+ this.size = 'lg';
6369
7659
  }
6370
7660
 
6371
7661
  // This function is to define props used within the scope of this component
@@ -6431,14 +7721,6 @@ class AuroSelect extends AuroElement$3 {
6431
7721
  reflect: true
6432
7722
  },
6433
7723
 
6434
- /**
6435
- * If set, makes dropdown width match the size of the content, rather than the width of the trigger.
6436
- */
6437
- flexMenuWidth: {
6438
- type: Boolean,
6439
- reflect: true
6440
- },
6441
-
6442
7724
  /**
6443
7725
  * Defines the screen size breakpoint (`xs`, `sm`, `md`, `lg`, `xl`, `disabled`)
6444
7726
  * at which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.
@@ -6532,7 +7814,7 @@ class AuroSelect extends AuroElement$3 {
6532
7814
  * "top" | "right" | "bottom" | "left" |
6533
7815
  * "bottom-start" | "top-start" | "top-end" |
6534
7816
  * "right-start" | "right-end" | "bottom-end" |
6535
- * "left-start" | "left-end"
7817
+ * "left-start" | "left-end".
6536
7818
  * @default bottom-start
6537
7819
  */
6538
7820
  placement: {
@@ -6540,6 +7822,14 @@ class AuroSelect extends AuroElement$3 {
6540
7822
  reflect: true
6541
7823
  },
6542
7824
 
7825
+ /**
7826
+ * Define custom placeholder text.
7827
+ */
7828
+ placeholder: {
7829
+ type: String,
7830
+ reflect: true
7831
+ },
7832
+
6543
7833
  /**
6544
7834
  * Populates the `required` attribute on the element. Used for client-side validation.
6545
7835
  */
@@ -6586,11 +7876,12 @@ class AuroSelect extends AuroElement$3 {
6586
7876
  },
6587
7877
 
6588
7878
  /**
6589
- * Value selected for the component. Default type is `String`, changing to `Array<String>` when `multiSelect` is true.
6590
- * @type {String|Array<String>}
7879
+ * Value selected for the component.
6591
7880
  */
6592
7881
  value: {
6593
- type: Object
7882
+ type: String,
7883
+ reflect: true,
7884
+ attribute: 'value'
6594
7885
  },
6595
7886
 
6596
7887
  /**
@@ -6636,21 +7927,83 @@ class AuroSelect extends AuroElement$3 {
6636
7927
 
6637
7928
  static get styles() {
6638
7929
  return [
6639
- i$5`${shapeSizeCss$1}`,
7930
+ i$5`${shapeSizeCss$2}`,
6640
7931
  i$5`${tokensCss$5}`,
6641
7932
  i$5`${styleCss$3}`,
6642
7933
  ];
6643
7934
  }
6644
7935
 
6645
7936
  /**
6646
- * Returns classmap configuration for wrapper elements in each layout.
7937
+ * Formatted value based on `multiSelect` state.
7938
+ * Default type is `String`, changing to `Array<String>` when `multiSelect` is true.
6647
7939
  * @private
6648
- * @return {object} - Returns classmap.
7940
+ * @returns {String|Array<String>}
6649
7941
  */
6650
- get commonWrapperClasses() {
6651
- return {
6652
- 'wrapper': true
7942
+ get formattedValue() {
7943
+ if (this.multiSelect) {
7944
+ if (!this.value) {
7945
+ return undefined;
7946
+ }
7947
+ if (this.value.startsWith("[")) {
7948
+ return JSON.parse(this.value);
7949
+ }
7950
+ return [this.value];
7951
+ }
7952
+ return this.value;
7953
+ }
7954
+
7955
+ /**
7956
+ * Returns classmap configuration for html5 input labels in all layouts.
7957
+ * @private
7958
+ * @returns {void}
7959
+ */
7960
+ get commonLabelClasses() {
7961
+ const obj = {
7962
+ 'is-disabled': this.disabled,
7963
+ 'withValue': false,
7964
+ 'util_displayHiddenVisually': this.hasDisplayValueContent && !this.hasFocus && this.value && this.value.length > 0,
7965
+ [this.labelFontClass]: true
6653
7966
  };
7967
+
7968
+ if (this.placeholder) {
7969
+ obj.withValue = true;
7970
+ } else if (this.optionSelected) {
7971
+ if (Array.isArray(this.optionSelected)) {
7972
+ obj.withValue = this.optionSelected.length > 0;
7973
+ } else {
7974
+ obj.withValue = true;
7975
+ }
7976
+ }
7977
+ return obj;
7978
+ }
7979
+
7980
+ /**
7981
+ * Returns the label font class based on layout and selection state.
7982
+ * @private
7983
+ * @returns {string} - The font class for the label.
7984
+ */
7985
+ get labelFontClass() {
7986
+ const isSelected = this.hasValue;
7987
+
7988
+ if (this.layout.startsWith('emphasized')) {
7989
+ return isSelected ? 'body-sm' : 'accent-xl';
7990
+ }
7991
+
7992
+ if (this.layout === 'snowflake') {
7993
+ return isSelected ? 'body-xs' : 'body-lg';
7994
+ }
7995
+
7996
+ // classic layout (default)
7997
+ return isSelected ? 'body-xs' : 'body-default';
7998
+ }
7999
+
8000
+ /**
8001
+ * Whether or not the component has a value.
8002
+ * @returns {boolean} - Returns true if the component has a value or placeholder.
8003
+ * @private
8004
+ */
8005
+ get hasValue() {
8006
+ return this.placeholder || (this.value && this.value.length > 0); // eslint-disable-line no-extra-parens
6654
8007
  }
6655
8008
 
6656
8009
  /**
@@ -6663,10 +8016,30 @@ class AuroSelect extends AuroElement$3 {
6663
8016
 
6664
8017
  this.dropdown.addEventListener('auroDropdown-toggled', () => {
6665
8018
  this.isPopoverVisible = this.dropdown.isPopoverVisible;
8019
+
8020
+ if (this.dropdown.isPopoverVisible) {
8021
+ this.updateMenuShapeSize();
8022
+ // wait til the bib gets fully rendered
8023
+ setTimeout(() => {
8024
+ if (this.dropdown.isBibFullscreen) {
8025
+ // trigger holds the focus since menu is not a focusable element.
8026
+ this.dropdown.trigger.focus();
8027
+
8028
+ // default focus indicator on the first menu option
8029
+ if (this.menu.index < 0) {
8030
+ this.menu.navigateOptions('down');
8031
+ }
8032
+ }
8033
+ });
8034
+ }
8035
+ });
8036
+
8037
+ this.dropdown.addEventListener('auroDropdown-strategy-change', () => {
8038
+ this.updateMenuShapeSize();
6666
8039
  });
6667
8040
 
6668
8041
  // setting up bibtemplate
6669
- this.bibtemplate = this.dropdown.querySelector(this.bibtemplateTag._$litStatic$); // eslint-disable-line no-underscore-dangle
8042
+ this.bibtemplate = this.dropdown.querySelector(this.bibtemplateTag._$litStatic$);
6670
8043
 
6671
8044
  if (this.customBibWidth) {
6672
8045
  this.dropdown.dropdownWidth = this.customBibWidth;
@@ -6685,7 +8058,7 @@ class AuroSelect extends AuroElement$3 {
6685
8058
  *
6686
8059
  */
6687
8060
  static register(name = "auro-select") {
6688
- AuroLibraryRuntimeUtils$4.prototype.registerComponent(name, AuroSelect);
8061
+ AuroLibraryRuntimeUtils$5.prototype.registerComponent(name, AuroSelect);
6689
8062
  }
6690
8063
 
6691
8064
  /**
@@ -6729,6 +8102,30 @@ class AuroSelect extends AuroElement$3 {
6729
8102
  this.dropdown.requestUpdate();
6730
8103
  }
6731
8104
 
8105
+ /**
8106
+ * Update menu to default for fullscreen bib, otherwise to this.size and this.shape.
8107
+ * @private
8108
+ */
8109
+ updateMenuShapeSize() {
8110
+ if (!this.menu) {
8111
+ return;
8112
+ }
8113
+
8114
+ if (this.dropdown && this.dropdown.isBibFullscreen) {
8115
+ this.menu.setAttribute('size', 'md');
8116
+ this.menu.setAttribute('shape', 'box');
8117
+ } else {
8118
+ // set menu's default size if there it's not specified.
8119
+ if (!this.menu.getAttribute('size')) {
8120
+ this.menu.setAttribute('size', this.layout !== 'emphasized' ? 'md' : this.size);
8121
+ }
8122
+
8123
+ if (!this.getAttribute('shape')) {
8124
+ this.menu.setAttribute('shape', this.layout === 'classic' ? 'box' : this.shape);
8125
+ }
8126
+ }
8127
+ }
8128
+
6732
8129
  /**
6733
8130
  * Binds all behavior needed to the menu after rendering.
6734
8131
  * @private
@@ -6745,6 +8142,8 @@ class AuroSelect extends AuroElement$3 {
6745
8142
  return;
6746
8143
  }
6747
8144
 
8145
+ this.updateMenuShapeSize();
8146
+
6748
8147
  if (this.multiSelect) {
6749
8148
  this.menu.multiSelect = this.multiSelect;
6750
8149
  }
@@ -6782,7 +8181,7 @@ class AuroSelect extends AuroElement$3 {
6782
8181
 
6783
8182
  this.menu.addEventListener('auroMenu-selectValueReset', () => {
6784
8183
  this.optionSelected = this.menu.optionSelected;
6785
- this.validation.validate(this);
8184
+ this.validate(this);
6786
8185
  });
6787
8186
 
6788
8187
  this.menu.addEventListener('auroMenu-activatedOption', (evt) => {
@@ -6804,46 +8203,58 @@ class AuroSelect extends AuroElement$3 {
6804
8203
  configureSelect() {
6805
8204
 
6806
8205
  this.addEventListener('keydown', (evt) => {
6807
- if (evt.key === 'ArrowUp') {
6808
- evt.preventDefault();
6809
-
6810
- this.dropdown.show();
8206
+ // when the focus is on trigger not on close button
8207
+ if (this.dropdown.shadowRoot.activeElement === this.dropdown.trigger) {
8208
+ if (evt.key === 'ArrowUp') {
8209
+ evt.preventDefault();
6811
8210
 
6812
- if (this.dropdown.isPopoverVisible) {
6813
- this.menu.navigateOptions('up');
6814
- }
8211
+ this.dropdown.show();
6815
8212
 
6816
- return;
6817
- }
8213
+ if (this.dropdown.isPopoverVisible) {
8214
+ this.menu.navigateOptions('up');
8215
+ }
6818
8216
 
6819
- if (evt.key === 'ArrowDown') {
6820
- evt.preventDefault();
8217
+ return;
8218
+ }
6821
8219
 
6822
- this.dropdown.show();
8220
+ if (evt.key === 'ArrowDown') {
8221
+ evt.preventDefault();
6823
8222
 
6824
- if (this.dropdown.isPopoverVisible) {
6825
- this.menu.navigateOptions('down');
6826
- }
8223
+ this.dropdown.show();
6827
8224
 
6828
- return;
6829
- }
8225
+ if (this.dropdown.isPopoverVisible) {
8226
+ this.menu.navigateOptions('down');
8227
+ }
6830
8228
 
6831
- if (evt.key === 'Enter') {
6832
- if (!this.dropdown.isPopoverVisible) {
6833
- evt.preventDefault();
6834
- this.menu.makeSelection();
8229
+ return;
6835
8230
  }
6836
8231
 
6837
- return;
8232
+ if (evt.key === 'Enter') {
8233
+ if (!this.dropdown.isPopoverVisible) {
8234
+ evt.preventDefault();
8235
+ this.menu.makeSelection();
8236
+ }
8237
+
8238
+ return;
8239
+ }
6838
8240
  }
6839
8241
 
6840
- if (evt.key === 'Tab') {
8242
+ if (evt.key === 'Tab' && this.dropdown.isPopoverVisible) {
6841
8243
  if (this.dropdown.isBibFullscreen) {
6842
8244
  evt.preventDefault();
8245
+
8246
+ // when the focus is on trigger not on close button
8247
+ if (this.dropdown.shadowRoot.activeElement === this.dropdown.trigger) {
8248
+ // `dropdown.focus` will move focus to the first focusable element in bib when it's open,
8249
+ // when bib it not open, it will focus onto trigger.
8250
+ this.dropdown.focus();
8251
+ } else {
8252
+ // when close button has the focus, move focus back to the trigger
8253
+ this.dropdown.trigger.focus();
8254
+ }
6843
8255
  } else {
6844
8256
  this.dropdown.hide();
6845
8257
  }
6846
-
6847
8258
  return;
6848
8259
  }
6849
8260
 
@@ -6854,7 +8265,7 @@ class AuroSelect extends AuroElement$3 {
6854
8265
  this.addEventListener('focusin', this.handleFocusin);
6855
8266
 
6856
8267
  this.addEventListener('blur', () => {
6857
- this.validation.validate(this);
8268
+ this.validate();
6858
8269
  this.hasFocus = false;
6859
8270
  });
6860
8271
  }
@@ -6924,6 +8335,26 @@ class AuroSelect extends AuroElement$3 {
6924
8335
  }
6925
8336
  }
6926
8337
 
8338
+ /**
8339
+ * Hides the dropdown bib if its open.
8340
+ * @returns {void}
8341
+ */
8342
+ hideBib() {
8343
+ if (this.dropdown && this.dropdown.isPopoverVisible) {
8344
+ this.dropdown.hide();
8345
+ }
8346
+ }
8347
+
8348
+ /**
8349
+ * Shows the dropdown bib if there are options to show.
8350
+ * @returns {void}
8351
+ */
8352
+ showBib() {
8353
+ if (this.dropdown && !this.dropdown.isPopoverVisible) {
8354
+ this.dropdown.show();
8355
+ }
8356
+ }
8357
+
6927
8358
  /**
6928
8359
  * Function to support @focusin event.
6929
8360
  * @private
@@ -7008,38 +8439,47 @@ class AuroSelect extends AuroElement$3 {
7008
8439
  // Add the tag name as an attribute if it is different than the component name
7009
8440
  this.runtimeUtils.handleComponentTagRename(this, 'auro-select');
7010
8441
 
7011
- this.configureMenu();
7012
8442
  this.configureDropdown();
8443
+ this.configureMenu();
7013
8444
  this.configureSelect();
8445
+ }
8446
+
8447
+ /**
8448
+ * Update the menu value. With checks for menu existence. Awaits value update.
8449
+ * @param {string} value - The value to set in the menu.
8450
+ * @returns {void}
8451
+ * @private
8452
+ */
8453
+ async updateMenuValue(value) {
8454
+ if (!this.menu) return;
7014
8455
 
7015
- // Set the initial value in auro-menu if defined
7016
- if (this.hasAttribute('value') && this.getAttribute('value').length > 0) {
7017
- this.value = this.multiSelect ? arrayConverter(this.getAttribute('value')) : this.getAttribute('value');
7018
- this.menu.value = this.value;
8456
+ this.menu.setAttribute('value', value);
8457
+ if (value) {
8458
+ this.menu.value = value;
8459
+ } else {
8460
+ this.menu.reset();
7019
8461
  }
8462
+ await this.menu.updateComplete;
7020
8463
  }
7021
8464
 
7022
8465
  async updated(changedProperties) {
7023
- if (changedProperties.has('multiSelect')) {
8466
+ if (changedProperties.has('multiSelect') && !changedProperties.has('value')) {
7024
8467
  this.clearSelection();
7025
8468
  }
7026
8469
 
7027
8470
  if (changedProperties.has('value')) {
7028
8471
  if (this.value) {
7029
- this.value = this.multiSelect ? arrayConverter(this.value) : this.value;
7030
-
7031
- this.menu.value = this.value;
8472
+ await this.updateMenuValue(this.value);
7032
8473
 
7033
- // Wait for menu to finish updating its value
7034
- await this.menu.updateComplete;
7035
-
7036
- this.optionSelected = this.menu.optionSelected;
8474
+ if (this.menu) {
8475
+ this.optionSelected = this.menu.optionSelected;
8476
+ }
7037
8477
  } else {
7038
- this.menu.value = undefined;
8478
+ await this.updateMenuValue(undefined);
7039
8479
  }
7040
8480
 
7041
8481
  this._updateNativeSelect();
7042
- this.validation.validate(this);
8482
+ this.validate();
7043
8483
 
7044
8484
  // LEGACY EVENT
7045
8485
  this.dispatchEvent(new CustomEvent('auroSelect-valueSet', {
@@ -7054,7 +8494,7 @@ class AuroSelect extends AuroElement$3 {
7054
8494
  composed: true,
7055
8495
  detail: {
7056
8496
  optionSelected: this.optionSelected,
7057
- value: this.value
8497
+ value: this.formattedValue
7058
8498
  }
7059
8499
  }));
7060
8500
  }
@@ -7066,6 +8506,14 @@ class AuroSelect extends AuroElement$3 {
7066
8506
  if (changedProperties.has('error')) {
7067
8507
  this.validate(true);
7068
8508
  }
8509
+
8510
+ if (changedProperties.has('shape') && this.menu) {
8511
+ this.menu.setAttribute('shape', this.layout === 'classic' ? 'box' : this.shape);
8512
+ }
8513
+
8514
+ if (changedProperties.has('size') && this.menu) {
8515
+ this.menu.setAttribute('size', this.layout !== 'emphasized' ? 'md' : this.size);
8516
+ }
7069
8517
  }
7070
8518
 
7071
8519
  /**
@@ -7076,16 +8524,6 @@ class AuroSelect extends AuroElement$3 {
7076
8524
  this.validation.reset(this);
7077
8525
  }
7078
8526
 
7079
- /**
7080
- * Hide dropdownbib.
7081
- * @private
7082
- */
7083
- hideBib() {
7084
- if (this.dropdown) {
7085
- this.dropdown.hide();
7086
- }
7087
- }
7088
-
7089
8527
  /**
7090
8528
  * Validates value.
7091
8529
  * @param {boolean} [force=false] - Whether to force validation.
@@ -7105,13 +8543,13 @@ class AuroSelect extends AuroElement$3 {
7105
8543
  const selectedValue = selectedOption.value;
7106
8544
 
7107
8545
  if (this.multiSelect) {
7108
- const currentArray = Array.isArray(this.value) ? this.value : [];
8546
+ const currentArray = this.formattedValue;
7109
8547
 
7110
8548
  if (!currentArray.includes(selectedValue)) {
7111
- this.value = [
8549
+ this.value = JSON.stringify([
7112
8550
  ...currentArray,
7113
8551
  selectedValue
7114
- ];
8552
+ ]);
7115
8553
  }
7116
8554
  } else {
7117
8555
  const currentValue = this.value;
@@ -7134,12 +8572,17 @@ class AuroSelect extends AuroElement$3 {
7134
8572
  }
7135
8573
 
7136
8574
  if (this.multiSelect) {
7137
- nativeSelect.value = this.value ? this.value[0] : '';
8575
+ nativeSelect.value = this.multiSelect ? this.multiSelect[0] : '';
7138
8576
  } else {
7139
8577
  nativeSelect.value = this.value || '';
7140
8578
  }
7141
8579
  }
7142
8580
 
8581
+ /**
8582
+ * Returns HTML for the hidden a11y screen reader content.
8583
+ * @private
8584
+ * @returns {html} - Returns HTML for the hidden a11y screen reader content.
8585
+ */
7143
8586
  renderAriaHtml() {
7144
8587
  return u`
7145
8588
  <div aria-live="polite" class="util_displayHiddenVisually">
@@ -7160,9 +8603,14 @@ class AuroSelect extends AuroElement$3 {
7160
8603
  `;
7161
8604
  }
7162
8605
 
8606
+ /**
8607
+ * Returns HTML for the hidden HTML5 select.
8608
+ * @private
8609
+ * @returns {html} - Returns HTML for the hidden HTML5 select.
8610
+ */
7163
8611
  renderNativeSelect() {
7164
8612
  return u`
7165
- <div class="nativeSelectWrapper">
8613
+ <div class="nativeSelectWrapper util_displayHidden">
7166
8614
  <select
7167
8615
  tabindex="-1"
7168
8616
  id="${`native-select-${this.id || this.uniqueId}`}"
@@ -7199,14 +8647,14 @@ class AuroSelect extends AuroElement$3 {
7199
8647
  ? u`
7200
8648
  <${this.helpTextTag} ?onDark="${this.onDark}">
7201
8649
  <p id="${this.uniqueId}" part="helpText">
7202
- <slot name="helptext"></slot>
8650
+ <slot name="helpText"></slot>
7203
8651
  </p>
7204
8652
  </${this.helpTextTag}>
7205
8653
  `
7206
8654
  : u`
7207
8655
  <${this.helpTextTag} error ?onDark="${this.onDark}">
7208
8656
  <p id="${this.uniqueId}" role="alert" aria-live="assertive" part="helpText">
7209
- ERROR MESSAGE ${this.errorMessage}
8657
+ ${this.errorMessage}
7210
8658
  </p>
7211
8659
  </${this.helpTextTag}>
7212
8660
  `
@@ -7219,17 +8667,16 @@ class AuroSelect extends AuroElement$3 {
7219
8667
  * @private
7220
8668
  * @returns {import("lit").TemplateResult} - Returns HTML for the emphasized layout.
7221
8669
  */
7222
- // TODO update to use util class
7223
8670
  renderLayoutEmphasized() {
7224
8671
  const placeholderClass = {
7225
- hidden: this.value,
8672
+ 'util_displayHidden': this.value
7226
8673
  };
7227
8674
 
7228
8675
  const displayValueClasses = {
7229
8676
  'displayValue': true,
7230
8677
  'hasContent': this.hasDisplayValueContent,
7231
8678
  'hasFocus': this.isPopoverVisible,
7232
- 'withValue': this.value && this.value.length > 0,
8679
+ 'withValue': this.commonLabelClasses.widthValue,
7233
8680
  'force': this.forceDisplayValue,
7234
8681
  };
7235
8682
 
@@ -7240,22 +8687,21 @@ class AuroSelect extends AuroElement$3 {
7240
8687
 
7241
8688
  return u`
7242
8689
  <div
7243
- class="${e(this.commonWrapperClasses)}"
7244
8690
  part="wrapper">
7245
8691
  <div id="slotHolder" aria-hidden="true">
7246
8692
  <slot name="bib.fullscreen.headline" @slotchange="${this.handleSlotChange}"></slot>
7247
8693
  </div>
7248
8694
  <${this.dropdownTag}
8695
+ a11yRole="select"
7249
8696
  ?autoPlacement="${this.autoPlacement}"
7250
8697
  ?error="${this.validity !== undefined && this.validity !== 'valid'}"
7251
- ?matchWidth="${!this.flexMenuWidth}"
8698
+ ?matchWidth="${this.matchWidth}"
7252
8699
  ?noFlip="${this.noFlip}"
7253
8700
  ?onDark="${this.onDark}"
7254
8701
  .fullscreenBreakpoint="${this.fullscreenBreakpoint}"
7255
8702
  .offset="${this.offset}"
7256
8703
  .placement="${this.placement}"
7257
8704
  chevron
7258
- fluid
7259
8705
  for="selectMenu"
7260
8706
  layout="${this.layout}"
7261
8707
  part="dropdown"
@@ -7267,15 +8713,14 @@ class AuroSelect extends AuroElement$3 {
7267
8713
  </div>
7268
8714
  <div class="mainContent">
7269
8715
  <div class="${e(valueContainerClasses)}">
7270
- <label>
8716
+ <label class="${e(this.commonLabelClasses)}">
7271
8717
  <slot name="label"></slot>
8718
+ ${this.required ? undefined : u`<slot name="optionalLabel"> (optional)</slot>`}
7272
8719
  </label>
7273
8720
  <div class="value" id="value"></div>
7274
- ${this.value ? undefined : u`
7275
- <div id="placeholder" class="${e(placeholderClass)}">
7276
- <slot name="placeholder"></slot>
7277
- </div>
7278
- `}
8721
+ <div id="placeholder" class="${e(placeholderClass)}">
8722
+ ${this.placeholder}
8723
+ </div>
7279
8724
  </div>
7280
8725
  <div class="${e(displayValueClasses)}" aria-hidden="true" part="displayValue">
7281
8726
  <slot name="displayValue"></slot>
@@ -7302,14 +8747,14 @@ class AuroSelect extends AuroElement$3 {
7302
8747
  */
7303
8748
  renderLayoutSnowflake() {
7304
8749
  const placeholderClass = {
7305
- hidden: this.value,
8750
+ 'util_displayHidden': this.value
7306
8751
  };
7307
8752
 
7308
8753
  const displayValueClasses = {
7309
8754
  'displayValue': true,
7310
8755
  'hasContent': this.hasDisplayValueContent,
7311
8756
  'hasFocus': this.isPopoverVisible,
7312
- 'withValue': this.value && this.value.length > 0,
8757
+ 'withValue': this.commonLabelClasses.widthValue,
7313
8758
  'force': this.forceDisplayValue,
7314
8759
  };
7315
8760
 
@@ -7320,7 +8765,6 @@ class AuroSelect extends AuroElement$3 {
7320
8765
 
7321
8766
  return u`
7322
8767
  <div
7323
- class="${e(this.commonWrapperClasses)}"
7324
8768
  part="wrapper">
7325
8769
  <div id="slotHolder" aria-hidden="true">
7326
8770
  <slot name="bib.fullscreen.headline" @slotchange="${this.handleSlotChange}"></slot>
@@ -7328,14 +8772,13 @@ class AuroSelect extends AuroElement$3 {
7328
8772
  <${this.dropdownTag}
7329
8773
  ?autoPlacement="${this.autoPlacement}"
7330
8774
  ?error="${this.validity !== undefined && this.validity !== 'valid'}"
7331
- ?matchWidth="${!this.flexMenuWidth}"
8775
+ ?matchWidth="${this.matchWidth}"
7332
8776
  ?noFlip="${this.noFlip}"
7333
8777
  ?onDark="${this.onDark}"
7334
8778
  .fullscreenBreakpoint="${this.fullscreenBreakpoint}"
7335
8779
  .offset="${this.offset}"
7336
8780
  .placement="${this.placement}"
7337
8781
  chevron
7338
- fluid
7339
8782
  for="selectMenu"
7340
8783
  layout="${this.layout}"
7341
8784
  part="dropdown"
@@ -7347,15 +8790,14 @@ class AuroSelect extends AuroElement$3 {
7347
8790
  </div>
7348
8791
  <div class="mainContent">
7349
8792
  <div class="${e(valueContainerClasses)}">
7350
- <label>
8793
+ <label class="${e(this.commonLabelClasses)}">
7351
8794
  <slot name="label"></slot>
8795
+ ${this.required ? undefined : u`<slot name="optionalLabel"> (optional)</slot>`}
7352
8796
  </label>
7353
8797
  <div class="value" id="value"></div>
7354
- ${this.value ? undefined : u`
7355
- <div id="placeholder" class="${e(placeholderClass)}">
7356
- <slot name="placeholder"></slot>
7357
- </div>
7358
- `}
8798
+ <div id="placeholder" class="${e(placeholderClass)}">
8799
+ ${this.placeholder}
8800
+ </div>
7359
8801
  </div>
7360
8802
  <div class="${e(displayValueClasses)}" aria-hidden="true" part="displayValue">
7361
8803
  <slot name="displayValue"></slot>
@@ -7371,6 +8813,7 @@ class AuroSelect extends AuroElement$3 {
7371
8813
  ${this.renderHtmlHelpText()}
7372
8814
  </div>
7373
8815
  </${this.dropdownTag}>
8816
+ ${this.renderNativeSelect()}
7374
8817
  </div>
7375
8818
  `;
7376
8819
  }
@@ -7381,11 +8824,79 @@ class AuroSelect extends AuroElement$3 {
7381
8824
  * @returns {import("lit").TemplateResult} - Returns HTML for the classic layout.
7382
8825
  */
7383
8826
  renderLayoutClassic() {
8827
+ const placeholderClass = {
8828
+ 'util_displayHidden': this.value
8829
+ };
8830
+
8831
+ const displayValueClasses = {
8832
+ 'displayValue': true,
8833
+ 'hasContent': this.hasDisplayValueContent,
8834
+ 'hasFocus': this.isPopoverVisible,
8835
+ 'withValue': this.commonLabelClasses.widthValue,
8836
+ 'force': this.forceDisplayValue,
8837
+ };
8838
+
8839
+ const valueContainerClasses = {
8840
+ 'valueContainer': true,
8841
+ 'util_displayHiddenVisually': (this.forceDisplayValue || !(this.dropdown && this.dropdown.isPopoverVisible)) && this.hasDisplayValueContent
8842
+ };
8843
+
8844
+ const valueClasses = {
8845
+ 'value': true,
8846
+ 'body-default': true
8847
+ };
8848
+
7384
8849
  return u`
7385
8850
  <div
7386
- class="${e(this.commonWrapperClasses)} thin"
7387
8851
  part="wrapper">
7388
- classic
8852
+ <div id="slotHolder" aria-hidden="true">
8853
+ <slot name="bib.fullscreen.headline" @slotchange="${this.handleSlotChange}"></slot>
8854
+ </div>
8855
+ <${this.dropdownTag}
8856
+ ?autoPlacement="${this.autoPlacement}"
8857
+ ?error="${this.validity !== undefined && this.validity !== 'valid'}"
8858
+ ?matchWidth="${!this.flexMenuWidth}"
8859
+ ?noFlip="${this.noFlip}"
8860
+ ?onDark="${this.onDark}"
8861
+ .fullscreenBreakpoint="${this.fullscreenBreakpoint}"
8862
+ .offset="${this.offset}"
8863
+ .placement="${this.placement}"
8864
+ chevron
8865
+ for="selectMenu"
8866
+ layout="${this.layout}"
8867
+ part="dropdown"
8868
+ shape="${this.shape}"
8869
+ size="${this.size}">
8870
+ <div slot="trigger" aria-haspopup="true" id="triggerFocus" class="triggerContent">
8871
+ <div class="accents left">
8872
+ <slot name="typeIcon"></slot>
8873
+ </div>
8874
+ <div class="mainContent">
8875
+ <div class="${e(valueContainerClasses)}">
8876
+ <label class="${e(this.commonLabelClasses)}">
8877
+ <slot name="label"></slot>
8878
+ ${this.required ? undefined : u`<slot name="optionalLabel"> (optional)</slot>`}
8879
+ </label>
8880
+ <div class="${e(valueClasses)}" id="value"></div>
8881
+ <div id="placeholder" class="${e(placeholderClass)}">
8882
+ ${this.placeholder}
8883
+ </div>
8884
+ </div>
8885
+ <div class="${e(displayValueClasses)}" aria-hidden="true" part="displayValue">
8886
+ <slot name="displayValue"></slot>
8887
+ </div>
8888
+ </div>
8889
+ <div class="accents right"></div>
8890
+ </div>
8891
+ <div class="menuWrapper"></div>
8892
+ <${this.bibtemplateTag} ?large="${this.largeFullscreenHeadline}" @close-click="${this.hideBib}">
8893
+ <slot></slot>
8894
+ </${this.bibtemplateTag}>
8895
+ <div slot="helpText">
8896
+ ${this.renderHtmlHelpText()}
8897
+ </div>
8898
+ </${this.dropdownTag}>
8899
+ ${this.renderNativeSelect()}
7389
8900
  </div>
7390
8901
  `;
7391
8902
  }
@@ -7419,112 +8930,15 @@ class AuroSelect extends AuroElement$3 {
7419
8930
 
7420
8931
  // When using auroElement, use the following attribute and function when hiding content from screen readers.
7421
8932
  // aria-hidden="${this.hideAudible(this.hiddenAudible)}"
7422
-
7423
- // function that renders the HTML and CSS into the scope of the component
7424
- renderBACKUP() {
7425
- const placeholderClass = {
7426
- hidden: this.value,
7427
- };
7428
-
7429
- return u`
7430
- <div class="outerWrapper">
7431
- <div aria-live="polite" class="util_displayHiddenVisually">
7432
- ${this.optionActive && this.options.length > 0
7433
- ? u`
7434
- ${`${this.optionActive.innerText}, option ${this.options.indexOf(this.optionActive) + 1} of ${this.options.length}`}
7435
- `
7436
- : undefined
7437
- };
7438
-
7439
- ${this.optionSelected && this.options.length > 0
7440
- ? u`
7441
- ${`${this.optionSelected.innerText} selected`}
7442
- `
7443
- : undefined
7444
- };
7445
- </div>
7446
- <div id="slotHolder" aria-hidden="true">
7447
- <slot name="bib.fullscreen.headline" @slotchange="${this.handleSlotChange}"></slot>
7448
- </div>
7449
- <${this.dropdownTag}
7450
- ?autoPlacement="${this.autoPlacement}"
7451
- ?disabled="${this.disabled}"
7452
- ?error="${this.validity !== undefined && this.validity !== 'valid'}"
7453
- ?matchWidth="${!this.flexMenuWidth}"
7454
- ?noFlip="${this.noFlip}"
7455
- ?onDark="${this.onDark}"
7456
- .fullscreenBreakpoint="${this.fullscreenBreakpoint}"
7457
- .offset="${this.offset}"
7458
- .placement="${this.placement}"
7459
- chevron
7460
- fluid
7461
- for="selectMenu"
7462
- layout="${this.layout}"
7463
- part="dropdown"
7464
- shape="${this.shape}"
7465
- size="${this.size}">
7466
- <span slot="trigger" aria-haspopup="true" id="triggerFocus">
7467
- <span id="placeholder"
7468
- class="${e(placeholderClass)}"
7469
- ?aria-hidden="${this.optionSelected && this.optionSelected.length ? 'true' : false}"
7470
- >
7471
- <slot name="placeholder"></slot>
7472
- </span>
7473
- <slot name="valueText" id="valueText"></slot>
7474
- </span>
7475
-
7476
- <${this.bibtemplateTag} ?large="${this.largeFullscreenHeadline}" @close-click="${this.hideBib}">
7477
- <slot></slot>
7478
- </${this.bibtemplateTag}>
7479
- <slot name="label" slot="label"></slot>
7480
- <p slot="helpText">
7481
- ${!this.validity || this.validity === undefined || this.validity === 'valid'
7482
- ? u`
7483
- <span id="${this.uniqueId}" part="helpText">
7484
- <slot name="helpText"></slot>
7485
- </span>`
7486
- : u`
7487
- <span id="${this.uniqueId}" role="alert" aria-live="assertive" part="helpText">
7488
- ${this.errorMessage}
7489
- </span>`
7490
- }
7491
- </p>
7492
- </${this.dropdownTag}>
7493
- <div class="nativeSelectWrapper">
7494
- <select
7495
- tabindex="-1"
7496
- id="${`native-select-${this.id || this.uniqueId}`}"
7497
- name="${this.name || ''}"
7498
- ?disabled="${this.disabled}"
7499
- ?required="${this.required}"
7500
- aria-hidden="true"
7501
- autocomplete="${o(this.autocomplete)}"
7502
- @change="${this._handleNativeSelectChange}">
7503
- <option value="" ?selected="${!this.value}"></option>
7504
- ${this.options.map((option) => {
7505
- const optionValue = option.value || option.textContent;
7506
- return u`
7507
- <option
7508
- value="${optionValue}"
7509
- ?selected="${this.value === optionValue}">
7510
- ${option.textContent}
7511
- </option>
7512
- `;
7513
- })}
7514
- </select>
7515
- </div>
7516
- <!-- Help text and error message template -->
7517
- ${this.renderHtmlHelpText()}
7518
- </div>
7519
- `;
7520
- }
7521
8933
  }
7522
8934
 
7523
- 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)}`;
8935
+ 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}`;
8936
+
8937
+ 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:inline-block;width:100%;margin:0;padding:0}:host ::slotted(hr){box-sizing:content-box !important;height:0 !important;overflow:visible !important;margin:var(--ds-size-100, 0.5rem) 0 !important;border-width:0 !important;border-top-width:1px !important;border-top-style:solid !important}:host [loadingplaceholder].empty{opacity:0;position:absolute}:host [loadingplaceholder] slot[name=loadingIcon]{vertical-align:middle;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)}:host([root]) .menuWrapper.xl{padding:var(--ds-size-200, 1rem)}`;
7524
8938
 
7525
8939
  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)}`;
7526
8940
 
7527
- 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)}`;
8941
+ 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)}`;
7528
8942
 
7529
8943
  // Copyright (c) 2021 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
7530
8944
  // See LICENSE in the project root for license information.
@@ -7577,7 +8991,6 @@ function dispatchMenuEvent(element, eventName, detail = null) {
7577
8991
  * @attr {boolean} nocheckmark - When true, selected option will not show the checkmark.
7578
8992
  * @attr {boolean} loading - When true, displays a loading state using the loadingIcon and loadingText slots if provided.
7579
8993
  * @attr {boolean} multiselect - When true, the selected option can be multiple options.
7580
- * @attr {String|Array<string>} value - Value selected for the menu, type `string` by default. In multi-select mode, `value` is an array of strings.
7581
8994
  * @prop {boolean} hasLoadingPlaceholder - Indicates whether the menu has a loadingIcon or loadingText to render when in a loading state.
7582
8995
  * @event {CustomEvent<Element>} auroMenu-activatedOption - Notifies that a menuoption has been made `active`.
7583
8996
  * @event {CustomEvent<any>} auroMenu-customEventFired - Notifies that a custom event has been fired.
@@ -7592,12 +9005,22 @@ function dispatchMenuEvent(element, eventName, detail = null) {
7592
9005
 
7593
9006
  /* eslint-disable no-magic-numbers, max-lines, no-extra-parens */
7594
9007
 
7595
- class AuroMenu extends i$2 {
9008
+ class AuroMenu extends AuroElement$4 {
7596
9009
  constructor() {
7597
9010
  super();
7598
9011
 
7599
9012
  // State properties (reactive)
7600
9013
 
9014
+ /**
9015
+ * @private
9016
+ */
9017
+ this.shape = "box";
9018
+
9019
+ /**
9020
+ * @private
9021
+ */
9022
+ this.size = "sm";
9023
+
7601
9024
  // Value of the selected options
7602
9025
  this.value = undefined;
7603
9026
  // Currently selected option
@@ -7656,6 +9079,7 @@ class AuroMenu extends i$2 {
7656
9079
 
7657
9080
  static get properties() {
7658
9081
  return {
9082
+ ...super.properties,
7659
9083
  noCheckmark: {
7660
9084
  type: Boolean,
7661
9085
  reflect: true,
@@ -7686,15 +9110,31 @@ class AuroMenu extends i$2 {
7686
9110
  reflect: true,
7687
9111
  attribute: 'multiselect'
7688
9112
  },
9113
+
9114
+ /**
9115
+ * Value selected for the component.
9116
+ */
7689
9117
  value: {
7690
- // Allow string, string[] arrays and undefined
7691
- type: Object
9118
+ type: String,
9119
+ reflect: true,
9120
+ attribute: 'value'
9121
+ },
9122
+
9123
+ /**
9124
+ * Indent level for submenus.
9125
+ * @private
9126
+ */
9127
+ level: {
9128
+ type: Number,
9129
+ reflect: false,
9130
+ attribute: false
7692
9131
  }
7693
9132
  };
7694
9133
  }
7695
9134
 
7696
9135
  static get styles() {
7697
9136
  return [
9137
+ shapeSizeCss,
7698
9138
  styleCss$2,
7699
9139
  colorCss$2,
7700
9140
  tokensCss$1
@@ -7710,7 +9150,26 @@ class AuroMenu extends i$2 {
7710
9150
  *
7711
9151
  */
7712
9152
  static register(name = "auro-menu") {
7713
- AuroLibraryRuntimeUtils$4.prototype.registerComponent(name, AuroMenu);
9153
+ AuroLibraryRuntimeUtils$5.prototype.registerComponent(name, AuroMenu);
9154
+ }
9155
+
9156
+ /**
9157
+ * Formatted value based on `multiSelect` state.
9158
+ * Default type is `String`, changing to `Array<String>` when `multiSelect` is true.
9159
+ * @private
9160
+ * @returns {String|Array<String>}
9161
+ */
9162
+ get formattedValue() {
9163
+ if (this.multiSelect) {
9164
+ if (!this.value) {
9165
+ return undefined;
9166
+ }
9167
+ if (this.value.startsWith("[")) {
9168
+ return JSON.parse(this.value);
9169
+ }
9170
+ return [this.value];
9171
+ }
9172
+ return this.value;
7714
9173
  }
7715
9174
 
7716
9175
  // Lifecycle Methods
@@ -7722,6 +9181,7 @@ class AuroMenu extends i$2 {
7722
9181
  this.addEventListener('mousedown', this.handleMouseSelect);
7723
9182
  this.addEventListener('auroMenuOption-mouseover', this.handleOptionHover);
7724
9183
  this.addEventListener('slotchange', this.handleSlotChange);
9184
+ this.setTagAttribute("auro-menu");
7725
9185
  }
7726
9186
 
7727
9187
  disconnectedCallback() {
@@ -7734,19 +9194,33 @@ class AuroMenu extends i$2 {
7734
9194
  }
7735
9195
 
7736
9196
  firstUpdated() {
7737
- AuroLibraryRuntimeUtils$4.prototype.handleComponentTagRename(this, 'auro-menu');
9197
+ AuroLibraryRuntimeUtils$5.prototype.handleComponentTagRename(this, 'auro-menu');
7738
9198
 
7739
9199
  this.loadingSlots = this.querySelectorAll("[slot='loadingText'], [slot='loadingIcon']");
7740
9200
  this.initializeMenu();
7741
9201
  }
7742
9202
 
9203
+ /**
9204
+ * Sets an attribute that matches the default tag name if the tag name is not the default.
9205
+ * @param {string} tagName - The tag name to set as an attribute.
9206
+ * @private
9207
+ */
9208
+ setTagAttribute(tagName) {
9209
+ if (this.tagName.toLowerCase() !== tagName) {
9210
+ this.setAttribute(tagName, true);
9211
+ }
9212
+ }
9213
+
7743
9214
  updated(changedProperties) {
7744
- if (changedProperties.has('multiSelect')) {
9215
+ super.updated(changedProperties);
9216
+
9217
+ if (changedProperties.has('multiSelect') && !changedProperties.has("value")) {
7745
9218
  // Reset selection if multiSelect mode changes
7746
9219
  this.clearSelection();
7747
9220
  }
7748
9221
 
7749
- if (changedProperties.has('value')) {
9222
+
9223
+ if (changedProperties.has("value")) {
7750
9224
  // Handle null/undefined case
7751
9225
  if (this.value === undefined || this.value === null) {
7752
9226
  this.optionSelected = undefined;
@@ -7754,7 +9228,7 @@ class AuroMenu extends i$2 {
7754
9228
  } else {
7755
9229
  if (this.multiSelect) {
7756
9230
  // In multiselect mode, this.value should be an array of strings
7757
- const valueArray = Array.isArray(this.value) ? this.value : [this.value];
9231
+ const valueArray = this.formattedValue;
7758
9232
  const matchingOptions = this.items.filter((item) => valueArray.includes(item.value));
7759
9233
 
7760
9234
  this.optionSelected = matchingOptions.length > 0 ? matchingOptions : undefined;
@@ -7814,6 +9288,19 @@ class AuroMenu extends i$2 {
7814
9288
  this.querySelectorAll('auro-menu, [auro-menu], auro-menuoption, [auro-menuoption]').forEach((element) => element.setAttribute('noCheckmark', ''));
7815
9289
  }
7816
9290
 
9291
+ // Handle layout propagation to all menus and options
9292
+ const propagationTargets = this.querySelectorAll('auro-menu, [auro-menu], auro-menuoption, [auro-menuoption]');
9293
+ [
9294
+ 'size',
9295
+ 'shape'
9296
+ ].forEach((prop) => {
9297
+ if (changedProperties.has(prop)) {
9298
+ propagationTargets.forEach((el) => {
9299
+ el.setAttribute(prop, this[prop]);
9300
+ });
9301
+ }
9302
+ });
9303
+
7817
9304
  // Regex for matchWord if needed
7818
9305
  let regexWord = null;
7819
9306
 
@@ -7908,14 +9395,14 @@ class AuroMenu extends i$2 {
7908
9395
  */
7909
9396
  handleSelectState(option) {
7910
9397
  if (this.multiSelect) {
7911
- const currentValue = this.value || [];
9398
+ const currentValue = this.formattedValue || [];
7912
9399
  const currentSelected = this.optionSelected || [];
7913
9400
 
7914
9401
  if (!currentValue.includes(option.value)) {
7915
- this.value = [
9402
+ this.value = JSON.stringify([
7916
9403
  ...currentValue,
7917
9404
  option.value
7918
- ];
9405
+ ]);
7919
9406
  }
7920
9407
  if (!currentSelected.includes(option)) {
7921
9408
  this.optionSelected = [
@@ -7938,13 +9425,15 @@ class AuroMenu extends i$2 {
7938
9425
  * @param {HTMLElement} option - The menuoption to be deselected.
7939
9426
  */
7940
9427
  handleDeselectState(option) {
7941
- if (this.multiSelect && Array.isArray(this.value)) {
9428
+ if (this.multiSelect) {
7942
9429
  // Remove this option from array
7943
- this.value = this.value.filter((val) => val !== option.value);
9430
+ const newFormattedValue = (this.formattedValue || []).filter((val) => val !== option.value);
7944
9431
 
7945
9432
  // If array is empty after removal, set back to undefined
7946
- if (this.value.length === 0) {
9433
+ if (newFormattedValue && newFormattedValue.length === 0) {
7947
9434
  this.value = undefined;
9435
+ } else {
9436
+ this.value = JSON.stringify(newFormattedValue);
7948
9437
  }
7949
9438
 
7950
9439
  this.optionSelected = this.optionSelected.filter((val) => val !== option);
@@ -8010,21 +9499,20 @@ class AuroMenu extends i$2 {
8010
9499
  * @param {HTMLElement} menu - Root menu element.
8011
9500
  */
8012
9501
  handleNestedMenus(menu) {
8013
- const nestedMenus = menu.querySelectorAll('auro-menu, [auro-menu]');
9502
+ menu.level = menu.parentElement.level >= 0 ? menu.parentElement.level + 1 : 0;
8014
9503
 
8015
- nestedMenus.forEach((nestedMenu) => {
8016
- // role="listbox" only allows "role=group" for children.
8017
- nestedMenu.setAttribute('role', 'group');
8018
- if (!nestedMenu.hasAttribute('aria-label')) {
8019
- nestedMenu.setAttribute('aria-label', 'submenu');
9504
+ if (menu.level > 0) {
9505
+ menu.setAttribute('role', 'group');
9506
+ menu.removeAttribute("root");
9507
+ if (!menu.hasAttribute('aria-label')) {
9508
+ menu.setAttribute('aria-label', 'submenu');
8020
9509
  }
9510
+ }
8021
9511
 
8022
- const options = nestedMenu.querySelectorAll(':scope > auro-menuoption, :scope > [auro-menuoption]');
8023
- options.forEach((option) => {
8024
- option.innerHTML = this.nestingSpacer + option.innerHTML;
8025
- });
8026
-
8027
- this.handleNestedMenus(nestedMenu);
9512
+ const options = menu.querySelectorAll(':scope > auro-menuoption, :scope > [auro-menuoption]');
9513
+ options.forEach((option) => {
9514
+ const regex = new RegExp(this.nestingSpacer, "gu");
9515
+ option.innerHTML = this.nestingSpacer.repeat(menu.level) + option.innerHTML.replace(regex, '');
8028
9516
  });
8029
9517
  }
8030
9518
 
@@ -8266,28 +9754,51 @@ class AuroMenu extends i$2 {
8266
9754
  }
8267
9755
 
8268
9756
  /**
8269
- * Renders the component.
8270
- * @returns {boolean} - True if loading slots are present and non-empty.
9757
+ * Getter for wrapper classes based on size.
9758
+ * @returns {Object} - Class map for the wrapper element.
9759
+ * @private
8271
9760
  */
8272
- render() {
9761
+ get wrapperClasses() {
9762
+ return e({
9763
+ 'menuWrapper': true,
9764
+ [this.size]: true,
9765
+ });
9766
+ }
9767
+
9768
+ /**
9769
+ * Logic to determine the layout of the component.
9770
+ * @protected
9771
+ * @returns {void}
9772
+ */
9773
+ renderLayout() {
8273
9774
  if (this.loading) {
8274
9775
  return x`
8275
- <auro-menuoption disabled loadingplaceholder class="${this.hasLoadingPlaceholder ? '' : 'empty'}">
8276
- <div>
8277
- <slot name="loadingIcon"></slot>
8278
- <slot name="loadingText"></slot>
8279
- </div>
8280
- </auro-menuoption>
9776
+ <div class="${this.wrapperClasses}">
9777
+ <auro-menuoption
9778
+ disabled
9779
+ loadingplaceholder
9780
+ class="${this.hasLoadingPlaceholder ? "" : "empty"}"
9781
+ >
9782
+ <div>
9783
+ <slot name="loadingIcon" class="body-lg"></slot>
9784
+ <slot name="loadingText"></slot>
9785
+ </div>
9786
+ </auro-menuoption>
9787
+ </div>
8281
9788
  `;
8282
9789
  }
8283
9790
 
8284
- return x`<slot @slotchange=${this.handleSlotChange}></slot>`;
9791
+ return x`
9792
+ <div class="${this.wrapperClasses}">
9793
+ <slot @slotchange=${this.handleSlotChange}></slot>
9794
+ </div>
9795
+ `;
8285
9796
  }
8286
9797
  }
8287
9798
 
8288
- 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}`;
9799
+ 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{box-sizing:border-box;display:flex;align-items:center;padding-right:var(--ds-size-150, 0.75rem);padding-left:calc(var(--ds-size-100, 0.5rem) + var(--ds-size-300, 1.5rem) + var(--ds-size-100, 0.5rem));padding-top:var(--ds-size-50, 0.25rem);padding-bottom:var(--ds-size-50, 0.25rem);-webkit-tap-highlight-color:transparent}:host 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-100, 0.5rem);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-100, 0.5rem) + 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}`;
8289
9800
 
8290
- 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)}`;
9801
+ var colorCss$1 = i$5`:host .wrapper{border:1px solid var(--ds-auro-menuoption-container-border-color);background-color:var(--ds-auro-menuoption-container-color);color:var(--ds-auro-menuoption-text-color)}:host svg{fill:var(--ds-auro-menuoption-icon-color)}:host([disabled]){--ds-auro-menuoption-text-color: var(--ds-basic-color-texticon-disabled, #d0d0d0)}:host(:hover),:host(.active){--ds-auro-menuoption-container-color: var(--ds-basic-color-surface-neutral-subtle, #f7f7f7)}:host([selected]){--ds-auro-menuoption-container-color: var(--ds-advanced-color-state-selected, #01426a);--ds-auro-menuoption-text-color: var(--ds-basic-color-texticon-inverse, #ffffff);--ds-auro-menuoption-icon-color: var(--ds-basic-color-texticon-inverse, #ffffff)}:host([selected]):host(:hover),:host([selected]):host(.active){--ds-auro-menuoption-container-color: var(--ds-advanced-color-state-selected-hover, #00274a)}`;
8291
9802
 
8292
9803
  // Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
8293
9804
  // See LICENSE in the project root for license information.
@@ -8635,8 +10146,12 @@ class AuroIcon extends BaseIcon {
8635
10146
  async firstUpdated() {
8636
10147
  await super.firstUpdated();
8637
10148
 
8638
- // Removes the SVG description for screenreader if ariaHidden is set to true
8639
- if (!this.hasAttribute('ariaHidden') && this.svg) {
10149
+ /**
10150
+ * icons provide a description for screen readers. Icon only instances Auro-button
10151
+ * depend on this description to provide context for the user using a screen reader.
10152
+ * Removes the SVG description for screen reader if ariaHidden is set to true.
10153
+ */
10154
+ if (this.hasAttribute('ariaHidden') && this.svg) {
8640
10155
  const svgDesc = this.svg.querySelector('desc');
8641
10156
 
8642
10157
  if (svgDesc) {
@@ -8680,7 +10195,7 @@ class AuroIcon extends BaseIcon {
8680
10195
  }
8681
10196
  }
8682
10197
 
8683
- var iconVersion = '8.0.3';
10198
+ var iconVersion = '8.1.0';
8684
10199
 
8685
10200
  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>"};
8686
10201
 
@@ -8698,10 +10213,20 @@ var checkmarkIcon = {"svg":"<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlin
8698
10213
  * @event auroMenuOption-mouseover - Notifies that this option has been hovered over.
8699
10214
  * @slot - Specifies text for an option, but is not the value.
8700
10215
  */
8701
- class AuroMenuOption extends i$2 {
10216
+ class AuroMenuOption extends AuroElement$4 {
8702
10217
  constructor() {
8703
10218
  super();
8704
10219
 
10220
+ /**
10221
+ * @private
10222
+ */
10223
+ this.shape = undefined;
10224
+
10225
+ /**
10226
+ * @private
10227
+ */
10228
+ this.size = undefined;
10229
+
8705
10230
  /**
8706
10231
  * Generate unique names for dependency components.
8707
10232
  */
@@ -8720,11 +10245,12 @@ class AuroMenuOption extends i$2 {
8720
10245
  /**
8721
10246
  * @private
8722
10247
  */
8723
- this.runtimeUtils = new AuroLibraryRuntimeUtils$4();
10248
+ this.runtimeUtils = new AuroLibraryRuntimeUtils$5();
8724
10249
  }
8725
10250
 
8726
10251
  static get properties() {
8727
10252
  return {
10253
+ ...super.properties,
8728
10254
  nocheckmark: {
8729
10255
  type: Boolean,
8730
10256
  reflect: true
@@ -8749,6 +10275,7 @@ class AuroMenuOption extends i$2 {
8749
10275
 
8750
10276
  static get styles() {
8751
10277
  return [
10278
+ shapeSizeCss,
8752
10279
  styleCss$1,
8753
10280
  colorCss$1,
8754
10281
  tokensCss$1
@@ -8764,13 +10291,20 @@ class AuroMenuOption extends i$2 {
8764
10291
  *
8765
10292
  */
8766
10293
  static register(name = "auro-menuoption") {
8767
- AuroLibraryRuntimeUtils$4.prototype.registerComponent(name, AuroMenuOption);
10294
+ AuroLibraryRuntimeUtils$5.prototype.registerComponent(name, AuroMenuOption);
8768
10295
  }
8769
10296
 
8770
10297
  firstUpdated() {
8771
10298
  // Add the tag name as an attribute if it is different than the component name
8772
10299
  this.runtimeUtils.handleComponentTagRename(this, 'auro-menuoption');
8773
10300
 
10301
+ if (!this.hasAttribute('size')) {
10302
+ this.size = this.parentElement.getAttribute('size') || 'sm';
10303
+ }
10304
+ if (!this.hasAttribute('shape')) {
10305
+ this.shape = this.parentElement.getAttribute('shape') || 'box';
10306
+ }
10307
+
8774
10308
  this.setAttribute('role', 'option');
8775
10309
  this.setAttribute('aria-selected', 'false');
8776
10310
 
@@ -8786,6 +10320,8 @@ class AuroMenuOption extends i$2 {
8786
10320
 
8787
10321
  // observer for selected property changes
8788
10322
  updated(changedProperties) {
10323
+ super.updated(changedProperties);
10324
+
8789
10325
  if (changedProperties.has('selected')) {
8790
10326
  this.setAttribute('aria-selected', this.selected.toString());
8791
10327
  }
@@ -8804,13 +10340,36 @@ class AuroMenuOption extends i$2 {
8804
10340
 
8805
10341
  svg.setAttribute('slot', 'svg');
8806
10342
 
8807
- return u`<${this.iconTag} customColor customSvg slot="icon">${svg}</${this.iconTag}>`;
10343
+ return u`<${this.iconTag} customColor customSvg>${svg}</${this.iconTag}>`;
8808
10344
  }
8809
10345
 
8810
- render() {
10346
+ /**
10347
+ * Logic to determine the layout of the component.
10348
+ * @protected
10349
+ * @returns {void}
10350
+ */
10351
+ renderLayout() {
10352
+
10353
+ const fontClassMap = {
10354
+ xs: 'body-sm',
10355
+ sm: 'body-default',
10356
+ md: 'body-default',
10357
+ lg: 'body-lg',
10358
+ xl: 'body-lg'
10359
+ };
10360
+
10361
+ const classes = e({
10362
+ 'wrapper': true,
10363
+ [this.size ? fontClassMap[this.size] : 'body-sm']: true,
10364
+ });
10365
+
8811
10366
  return u`
8812
- ${this.selected && !this.nocheckmark ? this.generateIconHtml(checkmarkIcon.svg) : undefined}
8813
- <slot></slot>
10367
+ <div class="${classes}">
10368
+ ${this.selected && !this.nocheckmark
10369
+ ? this.generateIconHtml(checkmarkIcon.svg)
10370
+ : undefined}
10371
+ <slot></slot>
10372
+ </div>
8814
10373
  `;
8815
10374
  }
8816
10375
  }