@aurodesignsystem-dev/auro-formkit 0.0.0-pr624.11 → 0.0.0-pr624.111

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (148) hide show
  1. package/components/bibtemplate/dist/auro-bibtemplate.d.ts +12 -2
  2. package/components/bibtemplate/dist/buttonVersion.d.ts +2 -0
  3. package/components/bibtemplate/dist/headerVersion.d.ts +1 -1
  4. package/components/bibtemplate/dist/iconVersion.d.ts +1 -1
  5. package/components/bibtemplate/dist/index.js +1244 -95
  6. package/components/bibtemplate/dist/registered.js +1244 -95
  7. package/components/checkbox/README.md +1 -1
  8. package/components/checkbox/demo/api.html +16 -10
  9. package/components/checkbox/demo/api.md +54 -19
  10. package/components/checkbox/demo/api.min.js +70 -45
  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 +70 -45
  14. package/components/checkbox/demo/readme.html +16 -9
  15. package/components/checkbox/demo/readme.md +1 -1
  16. package/components/checkbox/dist/auro-checkbox-group.d.ts +1 -1
  17. package/components/checkbox/dist/auro-checkbox.d.ts +6 -3
  18. package/components/checkbox/dist/index.js +69 -44
  19. package/components/checkbox/dist/registered.js +69 -44
  20. package/components/combobox/README.md +2 -0
  21. package/components/combobox/demo/api.html +16 -10
  22. package/components/combobox/demo/api.md +121 -8
  23. package/components/combobox/demo/api.min.js +3283 -963
  24. package/components/combobox/demo/index.html +16 -10
  25. package/components/combobox/demo/index.md +20 -34
  26. package/components/combobox/demo/index.min.js +3283 -963
  27. package/components/combobox/demo/readme.html +16 -9
  28. package/components/combobox/demo/readme.md +2 -0
  29. package/components/combobox/dist/auro-combobox.d.ts +59 -14
  30. package/components/combobox/dist/index.js +3024 -848
  31. package/components/combobox/dist/registered.js +3024 -848
  32. package/components/counter/demo/api.html +17 -10
  33. package/components/counter/demo/api.md +167 -21
  34. package/components/counter/demo/api.min.js +3428 -777
  35. package/components/counter/demo/index.html +17 -10
  36. package/components/counter/demo/index.md +191 -34
  37. package/components/counter/demo/index.min.js +3428 -777
  38. package/components/counter/demo/readme.html +16 -9
  39. package/components/counter/dist/auro-counter-button.d.ts +2 -0
  40. package/components/counter/dist/auro-counter-group.d.ts +162 -11
  41. package/components/counter/dist/auro-counter.d.ts +16 -0
  42. package/components/counter/dist/helptextVersion.d.ts +2 -0
  43. package/components/counter/dist/iconVersion.d.ts +1 -1
  44. package/components/counter/dist/index.js +3427 -776
  45. package/components/counter/dist/registered.js +3427 -776
  46. package/components/datepicker/README.md +2 -1
  47. package/components/datepicker/demo/api.html +16 -10
  48. package/components/datepicker/demo/api.md +70 -28
  49. package/components/datepicker/demo/api.min.js +7082 -3165
  50. package/components/datepicker/demo/index.html +16 -10
  51. package/components/datepicker/demo/index.md +87 -8
  52. package/components/datepicker/demo/index.min.js +7082 -3165
  53. package/components/datepicker/demo/readme.html +16 -9
  54. package/components/datepicker/demo/readme.md +2 -1
  55. package/components/datepicker/dist/auro-datepicker.d.ts +152 -12
  56. package/components/datepicker/dist/buttonVersion.d.ts +1 -1
  57. package/components/datepicker/dist/iconVersion.d.ts +2 -0
  58. package/components/datepicker/dist/index.js +14635 -10718
  59. package/components/datepicker/dist/popoverVersion.d.ts +1 -1
  60. package/components/datepicker/dist/registered.js +14635 -10718
  61. package/components/dropdown/demo/api.html +16 -10
  62. package/components/dropdown/demo/api.md +89 -281
  63. package/components/dropdown/demo/api.min.js +452 -271
  64. package/components/dropdown/demo/index.html +16 -10
  65. package/components/dropdown/demo/index.md +92 -362
  66. package/components/dropdown/demo/index.min.js +452 -271
  67. package/components/dropdown/demo/readme.html +16 -9
  68. package/components/dropdown/dist/auro-dropdown.d.ts +43 -82
  69. package/components/dropdown/dist/auro-dropdownBib.d.ts +14 -0
  70. package/components/dropdown/dist/index.js +451 -270
  71. package/components/dropdown/dist/registered.js +451 -270
  72. package/components/form/demo/api.html +16 -9
  73. package/components/form/demo/api.md +1 -1
  74. package/components/form/demo/api.min.js +3 -3
  75. package/components/form/demo/autocomplete.html +19 -3
  76. package/components/form/demo/index.html +16 -9
  77. package/components/form/demo/index.min.js +3 -3
  78. package/components/form/demo/readme.html +16 -9
  79. package/components/form/demo/working.html +19 -13
  80. package/components/form/dist/auro-form.d.ts +1 -1
  81. package/components/form/dist/index.js +2 -2
  82. package/components/form/dist/registered.js +2 -2
  83. package/components/helptext/dist/auro-helptext.d.ts +0 -2
  84. package/components/helptext/dist/index.js +2 -4
  85. package/components/helptext/dist/registered.js +2 -4
  86. package/components/input/README.md +6 -2
  87. package/components/input/demo/api.html +16 -10
  88. package/components/input/demo/api.md +234 -136
  89. package/components/input/demo/api.min.js +1057 -299
  90. package/components/input/demo/index.html +16 -10
  91. package/components/input/demo/index.md +55 -32
  92. package/components/input/demo/index.min.js +1071 -313
  93. package/components/input/demo/readme.html +16 -9
  94. package/components/input/demo/readme.md +6 -2
  95. package/components/input/dist/auro-input.d.ts +36 -2
  96. package/components/input/dist/base-input.d.ts +47 -11
  97. package/components/input/dist/buttonVersion.d.ts +1 -1
  98. package/components/input/dist/iconVersion.d.ts +1 -1
  99. package/components/input/dist/index.js +1070 -312
  100. package/components/input/dist/registered.js +1070 -312
  101. package/components/layoutElement/dist/index.js +11 -8
  102. package/components/layoutElement/dist/registered.js +97 -0
  103. package/components/menu/demo/api.html +17 -10
  104. package/components/menu/demo/api.md +65 -8
  105. package/components/menu/demo/api.min.js +303 -64
  106. package/components/menu/demo/index.html +16 -10
  107. package/components/menu/demo/index.min.js +303 -64
  108. package/components/menu/demo/readme.html +16 -9
  109. package/components/menu/dist/auro-menu.d.ts +53 -7
  110. package/components/menu/dist/auro-menuoption.d.ts +21 -3
  111. package/components/menu/dist/iconVersion.d.ts +1 -1
  112. package/components/menu/dist/index.js +288 -49
  113. package/components/menu/dist/registered.js +288 -49
  114. package/components/menu/dist/styles/default/tokens-css.d.ts +2 -0
  115. package/components/radio/demo/api.html +16 -10
  116. package/components/radio/demo/api.md +41 -9
  117. package/components/radio/demo/api.min.js +93 -95
  118. package/components/radio/demo/index.html +16 -10
  119. package/components/radio/demo/index.min.js +93 -95
  120. package/components/radio/demo/readme.html +16 -9
  121. package/components/radio/dist/auro-radio-group.d.ts +1 -1
  122. package/components/radio/dist/auro-radio.d.ts +11 -12
  123. package/components/radio/dist/index.js +92 -94
  124. package/components/radio/dist/registered.js +92 -94
  125. package/components/select/README.md +1 -0
  126. package/components/select/demo/api.html +16 -10
  127. package/components/select/demo/api.js +0 -2
  128. package/components/select/demo/api.md +159 -125
  129. package/components/select/demo/api.min.js +2284 -729
  130. package/components/select/demo/index.html +17 -11
  131. package/components/select/demo/index.md +1074 -259
  132. package/components/select/demo/index.min.js +2286 -719
  133. package/components/select/demo/readme.html +16 -9
  134. package/components/select/demo/readme.md +1 -0
  135. package/components/select/dist/auro-select.d.ts +86 -25
  136. package/components/select/dist/index.js +2178 -755
  137. package/components/select/dist/registered.js +2178 -755
  138. package/package.json +31 -28
  139. /package/components/{datepicker/dist/styles/default/color-css.d.ts → counter/dist/styles/shapeSize-css.d.ts} +0 -0
  140. /package/components/datepicker/dist/styles/{emphasized/style-css.d.ts → classic/color-css.d.ts} +0 -0
  141. /package/components/{input/dist/styles/default/input-css.d.ts → datepicker/dist/styles/classic/style-css.d.ts} +0 -0
  142. /package/components/{input/dist/styles/default/label-css.d.ts → datepicker/dist/styles/snowflake/color-css.d.ts} +0 -0
  143. /package/components/{input/dist/styles/input-css.d.ts → datepicker/dist/styles/snowflake/style-css.d.ts} +0 -0
  144. /package/components/{menu/dist/styles/color-menu-css.d.ts → dropdown/dist/styles/style-css.d.ts} +0 -0
  145. /package/components/menu/dist/styles/{color-menuoption-css.d.ts → default/color-menu-css.d.ts} +0 -0
  146. /package/components/menu/dist/styles/{style-menu-css.d.ts → default/color-menuoption-css.d.ts} +0 -0
  147. /package/components/menu/dist/styles/{style-menuoption-css.d.ts → default/style-menu-css.d.ts} +0 -0
  148. /package/components/menu/dist/styles/{tokens-css.d.ts → default/style-menuoption-css.d.ts} +0 -0
@@ -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$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}`;
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-muted, #ccd2db);--ds-auro-select-placeholder-text-color: var(--ds-basic-color-texticon-inverse, #ffffff);--ds-auro-select-text-color: var(--ds-basic-color-texticon-inverse, #ffffff);--ds-auro-select-error-icon-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8);--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
+ // multiple input in one components (datepicker)
923
+ // combobox has 2 inputs but no need to check validity on the 2nd one which is in fullscreen bib.
924
+ if (elem.validity === 'valid' && this.auroInputElements.length > 1 && !this.runtimeUtils.elementMatch(elem, 'auro-combobox')) {
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,22 +2947,16 @@ 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() {
2942
- this.preventFocusLoseOnBibClick = (event) => {
2943
- event.preventDefault();
2944
- event.stopPropagation();
2945
- };
2946
- this.element.bib.addEventListener('mousedown', this.preventFocusLoseOnBibClick);
2947
-
2948
2960
  // Define handlers & store references
2949
2961
  this.focusHandler = () => this.handleFocusLoss();
2950
2962
 
@@ -2960,7 +2972,7 @@ class AuroFloatingUI {
2960
2972
  document.expandedAuroFormkitDropdown = null;
2961
2973
  document.expandedAuroFloater = this;
2962
2974
  } else {
2963
- this.hideBib();
2975
+ this.hideBib("click");
2964
2976
  }
2965
2977
  }
2966
2978
  };
@@ -2973,7 +2985,7 @@ class AuroFloatingUI {
2973
2985
  // if something else is open, let it handle itself
2974
2986
  return;
2975
2987
  }
2976
- this.hideBib();
2988
+ this.hideBib("keydown");
2977
2989
  }
2978
2990
  };
2979
2991
 
@@ -2994,11 +3006,6 @@ class AuroFloatingUI {
2994
3006
  cleanupHideHandlers() {
2995
3007
  // Remove event listeners if they exist
2996
3008
 
2997
- if (this.preventFocusLoseOnBibClick) {
2998
- this.element.bib.removeEventListener('mousedown', this.preventFocusLoseOnBibClick);
2999
- delete this.preventFocusLoseOnBibClick;
3000
- }
3001
-
3002
3009
  if (this.focusHandler) {
3003
3010
  document.removeEventListener('focusin', this.focusHandler);
3004
3011
  this.focusHandler = null;
@@ -3056,7 +3063,11 @@ class AuroFloatingUI {
3056
3063
  }
3057
3064
  }
3058
3065
 
3059
- hideBib() {
3066
+ /**
3067
+ * Hides the floating UI element.
3068
+ * @param {String} eventType - The event type that triggered the hiding action.
3069
+ */
3070
+ hideBib(eventType = "unknown") {
3060
3071
  if (!this.element.disabled && !this.element.noToggle) {
3061
3072
  this.lockScroll(false);
3062
3073
  this.element.triggerChevron?.removeAttribute('data-expanded');
@@ -3067,7 +3078,7 @@ class AuroFloatingUI {
3067
3078
  if (this.showing) {
3068
3079
  this.cleanupHideHandlers();
3069
3080
  this.showing = false;
3070
- this.dispatchEventDropdownToggle();
3081
+ this.dispatchEventDropdownToggle(eventType);
3071
3082
  }
3072
3083
  }
3073
3084
  document.expandedAuroFloater = null;
@@ -3076,11 +3087,13 @@ class AuroFloatingUI {
3076
3087
  /**
3077
3088
  * @private
3078
3089
  * @returns {void} Dispatches event with an object showing the state of the dropdown.
3090
+ * @param {String} eventType - The event type that triggered the toggle action.
3079
3091
  */
3080
- dispatchEventDropdownToggle() {
3092
+ dispatchEventDropdownToggle(eventType) {
3081
3093
  const event = new CustomEvent(this.eventPrefix ? `${this.eventPrefix}-toggled` : 'toggled', {
3082
3094
  detail: {
3083
3095
  expanded: this.showing,
3096
+ eventType: eventType || "unknown",
3084
3097
  },
3085
3098
  composed: true
3086
3099
  });
@@ -3090,7 +3103,7 @@ class AuroFloatingUI {
3090
3103
 
3091
3104
  handleClick() {
3092
3105
  if (this.element.isPopoverVisible) {
3093
- this.hideBib();
3106
+ this.hideBib("click");
3094
3107
  } else {
3095
3108
  this.showBib();
3096
3109
  }
@@ -3113,8 +3126,9 @@ class AuroFloatingUI {
3113
3126
  // Space is included as it's expected behavior for interactive elements
3114
3127
 
3115
3128
  const origin = event.composedPath()[0];
3116
- if (event.key === 'Enter' || ((!origin || origin.tagName !== "INPUT") && event.key === ' ')) {
3117
- event.preventDefault(); // Prevent page scroll on space
3129
+ if (event.key === 'Enter' || event.key === ' ' && (!origin || origin.tagName !== "INPUT")) {
3130
+
3131
+ event.preventDefault();
3118
3132
  this.handleClick();
3119
3133
  }
3120
3134
  break;
@@ -3125,7 +3139,7 @@ class AuroFloatingUI {
3125
3139
  break;
3126
3140
  case 'mouseleave':
3127
3141
  if (this.element.hoverToggle) {
3128
- this.hideBib();
3142
+ this.hideBib("mouseleave");
3129
3143
  }
3130
3144
  break;
3131
3145
  case 'focus':
@@ -3268,6 +3282,267 @@ class AuroFloatingUI {
3268
3282
  }
3269
3283
  }
3270
3284
 
3285
+ // Selectors for focusable elements
3286
+ const FOCUSABLE_SELECTORS = [
3287
+ 'a[href]',
3288
+ 'button:not([disabled])',
3289
+ 'textarea:not([disabled])',
3290
+ 'input:not([disabled])',
3291
+ 'select:not([disabled])',
3292
+ '[role="tab"]:not([disabled])',
3293
+ '[role="link"]:not([disabled])',
3294
+ '[role="button"]:not([disabled])',
3295
+ '[tabindex]:not([tabindex="-1"])',
3296
+ '[contenteditable]:not([contenteditable="false"])'
3297
+ ];
3298
+
3299
+ // List of custom components that are known to be focusable
3300
+ const FOCUSABLE_COMPONENTS = [
3301
+ 'auro-checkbox',
3302
+ 'auro-radio',
3303
+ 'auro-dropdown',
3304
+ 'auro-button',
3305
+ 'auro-combobox',
3306
+ 'auro-input',
3307
+ 'auro-counter',
3308
+ 'auro-menu',
3309
+ 'auro-select',
3310
+ 'auro-datepicker',
3311
+ 'auro-hyperlink',
3312
+ 'auro-accordion',
3313
+ ];
3314
+
3315
+ /**
3316
+ * Determines if a given element is a custom focusable component.
3317
+ * Returns true if the element matches a known focusable component and is not disabled.
3318
+ *
3319
+ * @param {HTMLElement} element The element to check for focusability.
3320
+ * @returns {boolean} True if the element is a focusable custom component, false otherwise.
3321
+ */
3322
+ function isFocusableComponent(element) {
3323
+ const componentName = element.tagName.toLowerCase();
3324
+
3325
+ // Guard Clause: Element is a focusable component
3326
+ if (!FOCUSABLE_COMPONENTS.some((name) => element.hasAttribute(name) || componentName === name)) return false;
3327
+
3328
+ // Guard Clause: Element is not disabled
3329
+ if (element.hasAttribute('disabled')) return false;
3330
+
3331
+ // Guard Clause: The element is a hyperlink and has no href attribute
3332
+ if (componentName.match("hyperlink") && !element.hasAttribute('href')) return false;
3333
+
3334
+ // If all guard clauses pass, the element is a focusable component
3335
+ return true;
3336
+ }
3337
+
3338
+ /**
3339
+ * Retrieves all focusable elements within the container in DOM order, including those in shadow DOM and slots.
3340
+ * Returns a unique, ordered array of elements that can receive focus.
3341
+ *
3342
+ * @param {HTMLElement} container The container to search within
3343
+ * @returns {Array<HTMLElement>} An array of focusable elements within the container.
3344
+ */
3345
+ function getFocusableElements(container) {
3346
+ // Get elements in DOM order by walking the tree
3347
+ const orderedFocusableElements = [];
3348
+
3349
+ // Define a recursive function to collect focusable elements in DOM order
3350
+ const collectFocusableElements = (root) => {
3351
+ // Check if current element is focusable
3352
+ if (root.nodeType === Node.ELEMENT_NODE) {
3353
+ // Check if this is a custom component that is focusable
3354
+ const isComponentFocusable = isFocusableComponent(root);
3355
+
3356
+ if (isComponentFocusable) {
3357
+ // Add the component itself as a focusable element and don't traverse its shadow DOM
3358
+ orderedFocusableElements.push(root);
3359
+ return; // Skip traversing inside this component
3360
+ }
3361
+
3362
+ // Check if the element itself matches any selector
3363
+ for (const selector of FOCUSABLE_SELECTORS) {
3364
+ if (root.matches?.(selector)) {
3365
+ orderedFocusableElements.push(root);
3366
+ break; // Once we know it's focusable, no need to check other selectors
3367
+ }
3368
+ }
3369
+
3370
+ // Process shadow DOM only for non-Auro components
3371
+ if (root.shadowRoot) {
3372
+ // Process shadow DOM children in order
3373
+ if (root.shadowRoot.children) {
3374
+ Array.from(root.shadowRoot.children).forEach(child => {
3375
+ collectFocusableElements(child);
3376
+ });
3377
+ }
3378
+ }
3379
+
3380
+ // Process slots and their assigned nodes in order
3381
+ if (root.tagName === 'SLOT') {
3382
+ const assignedNodes = root.assignedNodes({ flatten: true });
3383
+ for (const node of assignedNodes) {
3384
+ collectFocusableElements(node);
3385
+ }
3386
+ } else {
3387
+ // Process light DOM children in order
3388
+ if (root.children) {
3389
+ Array.from(root.children).forEach(child => {
3390
+ collectFocusableElements(child);
3391
+ });
3392
+ }
3393
+ }
3394
+ }
3395
+ };
3396
+
3397
+ // Start the traversal from the container
3398
+ collectFocusableElements(container);
3399
+
3400
+ // Remove duplicates that might have been collected through different paths
3401
+ // while preserving order
3402
+ const uniqueElements = [];
3403
+ const seen = new Set();
3404
+
3405
+ for (const element of orderedFocusableElements) {
3406
+ if (!seen.has(element)) {
3407
+ seen.add(element);
3408
+ uniqueElements.push(element);
3409
+ }
3410
+ }
3411
+
3412
+ return uniqueElements;
3413
+ }
3414
+
3415
+ /**
3416
+ * FocusTrap manages keyboard focus within a specified container element, ensuring that focus does not leave the container when tabbing.
3417
+ * It is commonly used for modal dialogs or overlays to improve accessibility by trapping focus within interactive UI components.
3418
+ */
3419
+ class FocusTrap {
3420
+ /**
3421
+ * Creates a new FocusTrap instance for the given container element.
3422
+ * Initializes event listeners and prepares the container for focus management.
3423
+ *
3424
+ * @param {HTMLElement} container The DOM element to trap focus within.
3425
+ * @throws {Error} If the provided container is not a valid HTMLElement.
3426
+ */
3427
+ constructor(container) {
3428
+ if (!container || !(container instanceof HTMLElement)) {
3429
+ throw new Error("FocusTrap requires a valid HTMLElement.");
3430
+ }
3431
+
3432
+ this.container = container;
3433
+ this.tabDirection = 'forward'; // or 'backward'
3434
+
3435
+ this._init();
3436
+ }
3437
+
3438
+ /**
3439
+ * Initializes the focus trap by setting up event listeners and attributes on the container.
3440
+ * Prepares the container for focus management, including support for shadow DOM and inert attributes.
3441
+ *
3442
+ * @private
3443
+ */
3444
+ _init() {
3445
+
3446
+ // Add inert attribute to prevent focusing programmatically as well (if supported)
3447
+ if ('inert' in HTMLElement.prototype) {
3448
+ this.container.inert = false; // Ensure the container isn't inert
3449
+ this.container.setAttribute('data-focus-trap-container', true); // Mark for identification
3450
+ }
3451
+
3452
+ // Track tab direction
3453
+ this.container.addEventListener('keydown', this._onKeydown);
3454
+ }
3455
+
3456
+ /**
3457
+ * Handles keydown events to manage tab navigation within the container.
3458
+ * Ensures that focus wraps around when reaching the first or last focusable element.
3459
+ *
3460
+ * @param {KeyboardEvent} e The keyboard event triggered by user interaction.
3461
+ * @private
3462
+ */
3463
+ _onKeydown = (e) => {
3464
+
3465
+ if (e.key === 'Tab') {
3466
+
3467
+ // Set the tab direction based on the key pressed
3468
+ this.tabDirection = e.shiftKey ? 'backward' : 'forward';
3469
+
3470
+ // Get the active element(s) in the document and shadow root
3471
+ // This will include the active element in the shadow DOM if it exists
3472
+ // Active element may be inside the shadow DOM depending on delegatesFocus, so we need to check both
3473
+ let activeElement = document.activeElement;
3474
+ const actives = [activeElement];
3475
+ while (activeElement?.shadowRoot?.activeElement) {
3476
+ actives.push(activeElement.shadowRoot.activeElement);
3477
+ activeElement = activeElement.shadowRoot.activeElement;
3478
+ }
3479
+
3480
+ // Update the focusable elements
3481
+ const focusables = this._getFocusableElements();
3482
+
3483
+ // If we're at either end of the focusable elements, wrap around to the other end
3484
+ const focusIndex =
3485
+ (actives.includes(focusables[0]) || actives.includes(this.container)) && this.tabDirection === 'backward'
3486
+ ? focusables.length - 1
3487
+ : actives.includes(focusables[focusables.length - 1]) && this.tabDirection === 'forward'
3488
+ ? 0
3489
+ : null;
3490
+
3491
+ if (focusIndex !== null) {
3492
+ focusables[focusIndex].focus();
3493
+ e.preventDefault(); // Prevent default tab behavior
3494
+ e.stopPropagation(); // Stop the event from bubbling up
3495
+ }
3496
+ }
3497
+ };
3498
+
3499
+ /**
3500
+ * Retrieves all focusable elements within the container in DOM order, including those in shadow DOM and slots.
3501
+ * Returns a unique, ordered array of elements that can receive focus.
3502
+ *
3503
+ * @returns {Array<HTMLElement>} An array of focusable elements within the container.
3504
+ * @private
3505
+ */
3506
+ _getFocusableElements() {
3507
+ // Use the imported utility function to get focusable elements
3508
+ const elements = getFocusableElements(this.container);
3509
+
3510
+ // Filter out any elements with the 'focus-bookend' class
3511
+ return elements;
3512
+ }
3513
+
3514
+ /**
3515
+ * Moves focus to the first focusable element within the container.
3516
+ * Useful for setting initial focus when activating the focus trap.
3517
+ */
3518
+ focusFirstElement() {
3519
+ const focusables = this._getFocusableElements();
3520
+ if (focusables.length) focusables[0].focus();
3521
+ }
3522
+
3523
+ /**
3524
+ * Moves focus to the last focusable element within the container.
3525
+ * Useful for setting focus when deactivating or cycling focus in reverse.
3526
+ */
3527
+ focusLastElement() {
3528
+ const focusables = this._getFocusableElements();
3529
+ if (focusables.length) focusables[focusables.length - 1].focus();
3530
+ }
3531
+
3532
+ /**
3533
+ * Removes event listeners and attributes added by the focus trap.
3534
+ * Call this method to clean up when the focus trap is no longer needed.
3535
+ */
3536
+ disconnect() {
3537
+
3538
+ if (this.container.hasAttribute('data-focus-trap-container')) {
3539
+ this.container.removeAttribute('data-focus-trap-container');
3540
+ }
3541
+
3542
+ this.container.removeEventListener('keydown', this._onKeydown);
3543
+ }
3544
+ }
3545
+
3271
3546
  // Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
3272
3547
  // See LICENSE in the project root for license information.
3273
3548
 
@@ -3374,7 +3649,7 @@ const cacheFetch$2 = (uri, options = {}) => {
3374
3649
  return _fetchMap$2.get(uri);
3375
3650
  };
3376
3651
 
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}`;
3652
+ 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
3653
 
3379
3654
  // Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
3380
3655
  // See LICENSE in the project root for license information.
@@ -3417,7 +3692,7 @@ let BaseIcon$2 = class BaseIcon extends AuroElement$1$1 {
3417
3692
 
3418
3693
  static get styles() {
3419
3694
  return i$5`
3420
- ${styleCss$2$2}
3695
+ ${styleCss$3$2}
3421
3696
  `;
3422
3697
  }
3423
3698
 
@@ -3458,9 +3733,9 @@ let BaseIcon$2 = class BaseIcon extends AuroElement$1$1 {
3458
3733
  }
3459
3734
  };
3460
3735
 
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)}`;
3736
+ 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
3737
 
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)}`;
3738
+ 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
3739
 
3465
3740
  // Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
3466
3741
  // See LICENSE in the project root for license information.
@@ -3579,7 +3854,8 @@ let AuroIcon$2 = class AuroIcon extends BaseIcon$2 {
3579
3854
  * Allows custom color to be set.
3580
3855
  */
3581
3856
  customColor: {
3582
- type: Boolean
3857
+ type: Boolean,
3858
+ reflect: true
3583
3859
  },
3584
3860
 
3585
3861
  /**
@@ -3618,9 +3894,9 @@ let AuroIcon$2 = class AuroIcon extends BaseIcon$2 {
3618
3894
  static get styles() {
3619
3895
  return [
3620
3896
  super.styles,
3621
- i$5`${tokensCss$2$1}`,
3622
- i$5`${styleCss$2$2}`,
3623
- i$5`${colorCss$3$1}`
3897
+ i$5`${tokensCss$2$2}`,
3898
+ i$5`${styleCss$3$2}`,
3899
+ i$5`${colorCss$3$2}`
3624
3900
  ];
3625
3901
  }
3626
3902
 
@@ -3654,8 +3930,12 @@ let AuroIcon$2 = class AuroIcon extends BaseIcon$2 {
3654
3930
  async firstUpdated() {
3655
3931
  await super.firstUpdated();
3656
3932
 
3657
- // Removes the SVG description for screenreader if ariaHidden is set to true
3658
- if (!this.hasAttribute('ariaHidden') && this.svg) {
3933
+ /**
3934
+ * icons provide a description for screen readers. Icon only instances Auro-button
3935
+ * depend on this description to provide context for the user using a screen reader.
3936
+ * Removes the SVG description for screen reader if ariaHidden is set to true.
3937
+ */
3938
+ if (this.hasAttribute('ariaHidden') && this.svg) {
3659
3939
  const svgDesc = this.svg.querySelector('desc');
3660
3940
 
3661
3941
  if (svgDesc) {
@@ -3701,11 +3981,11 @@ let AuroIcon$2 = class AuroIcon extends BaseIcon$2 {
3701
3981
 
3702
3982
  var iconVersion$2 = '6.1.2';
3703
3983
 
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}`;
3984
+ 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
3985
 
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)}`;
3986
+ 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
3987
 
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)}`;
3988
+ 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
3989
 
3710
3990
  // Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
3711
3991
  // See LICENSE in the project root for license information.
@@ -3726,7 +4006,7 @@ const DESIGN_TOKEN_BREAKPOINT_OPTIONS = [
3726
4006
  */
3727
4007
 
3728
4008
  class AuroDropdownBib extends i$2 {
3729
-
4009
+ // not extending AuroElement because Bib needs only `shape` prop
3730
4010
  constructor() {
3731
4011
  super();
3732
4012
 
@@ -3736,13 +4016,16 @@ class AuroDropdownBib extends i$2 {
3736
4016
  this._mobileBreakpointValue = undefined;
3737
4017
 
3738
4018
  AuroLibraryRuntimeUtils$2$1.prototype.handleComponentTagRename(this, 'auro-dropdownbib');
4019
+
4020
+ this.shape = "rounded";
4021
+ this.matchWidth = false;
3739
4022
  }
3740
4023
 
3741
4024
  static get styles() {
3742
4025
  return [
3743
- styleCss$1$2,
3744
- colorCss$2$1,
3745
- tokensCss$1$1
4026
+ styleCss$2$2,
4027
+ colorCss$2$2,
4028
+ tokensCss$1$2
3746
4029
  ];
3747
4030
  }
3748
4031
 
@@ -3773,6 +4056,15 @@ class AuroDropdownBib extends i$2 {
3773
4056
  reflect: true
3774
4057
  },
3775
4058
 
4059
+ /**
4060
+ * If declared, the bib width will match the trigger width.
4061
+ * @private
4062
+ */
4063
+ matchWidth: {
4064
+ type: Boolean,
4065
+ reflect: true
4066
+ },
4067
+
3776
4068
  /**
3777
4069
  * If declared, will apply border-radius to the bib.
3778
4070
  */
@@ -3786,6 +4078,11 @@ class AuroDropdownBib extends i$2 {
3786
4078
  */
3787
4079
  bibTemplate: {
3788
4080
  type: Object
4081
+ },
4082
+
4083
+ shape: {
4084
+ type: String,
4085
+ reflect: true
3789
4086
  }
3790
4087
  };
3791
4088
  }
@@ -3865,8 +4162,16 @@ class AuroDropdownBib extends i$2 {
3865
4162
 
3866
4163
  // function that renders the HTML and CSS into the scope of the component
3867
4164
  render() {
4165
+ const classes = {
4166
+ container: true
4167
+ };
4168
+
4169
+ // Since this class does not inherit from AuroElement, we apply the shape-related class within the `render` function,
4170
+ // mimicking the class naming convention used in AuroElement.resetShapeClasses.
4171
+ classes[`shape-${this.shape}`] = true;
4172
+
3868
4173
  return u`
3869
- <div class="container" part="bibContainer">
4174
+ <div class="${e(classes)}" part="bibContainer">
3870
4175
  <slot></slot>
3871
4176
  </div>
3872
4177
  `;
@@ -3875,21 +4180,23 @@ class AuroDropdownBib extends i$2 {
3875
4180
 
3876
4181
  var dropdownVersion$1 = '3.0.0';
3877
4182
 
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}`;
4183
+ 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}`;
3879
4184
 
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)}`;
4185
+ 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,:host([onDark]) .helpText{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-advanced-color-state-error-inverse, #f9a4a8)}`;
3881
4186
 
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))}`;
4187
+ 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
4188
 
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)}`;
4189
+ var classicColorCss = i$5``;
3885
4190
 
3886
- var styleEmphasizedCss = i$5`:host{display:block}.layout-emphasized .chevron,.layout-emphasized-left .chevron,.layout-emphasized-right .chevron{margin-right:var(--ds-size-300, 1.5rem)}.wrapper{display:flex;flex-direction:row}.trigger{display:flex;flex:1;align-items:center;justify-content:center;outline:none}.triggerContentWrapper{display:flex;width:100%;flex:1;align-items:center;justify-content:center}.triggerContent{display:flex;overflow:hidden;width:100%;flex:1;align-items:center;justify-content:center;text-overflow:ellipsis;white-space:nowrap}:host([layout*=emphasized][shape*=pill]:not([layout*=right])) .leftIndent{width:calc(100% - var(--ds-size-300, 1.5rem));margin-left:var(--ds-size-300, 1.5rem)}:host([layout*=emphasized][shape*=pill]:not([layout*=left])) .rightIndent{width:calc(100% - var(--ds-size-300, 1.5rem));margin-right:var(--ds-size-300, 1.5rem)}:host([layout*=emphasized][shape*=pill]:not([layout*=left]):not([layout*=right])) .rightIndent{width:calc(100% - var(--ds-size-600, 3rem));margin-right:var(--ds-size-300, 1.5rem)}`;
4191
+ 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
4192
 
3888
- var styleSnowflakeCss = i$5`:host{display:block}.wrapper{display:flex;flex-direction:row}.trigger{display:flex;flex:1;align-items:center;justify-content:center;outline:none}.triggerContentWrapper{display:flex;width:100%;flex:1;align-items:center;justify-content:center}.triggerContent{display:flex;overflow:hidden;width:100%;flex:1;align-items:center;justify-content:center;text-overflow:ellipsis;white-space:nowrap}:host([layout*=snowflake]) .leftIndent{width:calc(100% - var(--ds-size-600, 3rem));margin-left:var(--ds-size-300, 1.5rem)}:host([layout*=snowflake]) .rightIndent{width:calc(100% - var(--ds-size-600, 3rem));margin-right:var(--ds-size-300, 1.5rem)}.layout-snowflake .chevron,.layout-snowflake-left .chevron,.layout-snowflake-right .chevron{margin-right:var(--ds-size-300, 1.5rem)}`;
4193
+ 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)}`;
4194
+
4195
+ 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)}:host([layout*=snowflake]) .trigger,:host([layout*=snowflake]) .helpText{text-align:center}.layout-snowflake .chevron,.layout-snowflake-left .chevron,.layout-snowflake-right .chevron{margin-right:var(--ds-size-300, 1.5rem)}`;
3889
4196
 
3890
4197
  var colorCss$5 = i$5`:host([error]){--ds-auro-helptext-color: var(--ds-basic-color-status-error, #e31f26)}:host([onDark]){--ds-auro-helptext-color: var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}:host([onDark][error]){--ds-auro-helptext-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8)}.helptext-wrapper{color:var(--ds-auro-helptext-color)}`;
3891
4198
 
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}`;
4199
+ 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
4200
 
3894
4201
  var tokensCss$4 = i$5`:host{--ds-auro-helptext-color: var(--ds-basic-color-texticon-muted, #676767)}`;
3895
4202
 
@@ -3900,7 +4207,7 @@ var tokensCss$4 = i$5`:host{--ds-auro-helptext-color: var(--ds-basic-color-texti
3900
4207
 
3901
4208
  /* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
3902
4209
 
3903
- let AuroLibraryRuntimeUtils$3 = class AuroLibraryRuntimeUtils {
4210
+ let AuroLibraryRuntimeUtils$4 = class AuroLibraryRuntimeUtils {
3904
4211
 
3905
4212
  /* eslint-disable jsdoc/require-param */
3906
4213
 
@@ -3969,8 +4276,6 @@ let AuroLibraryRuntimeUtils$3 = class AuroLibraryRuntimeUtils {
3969
4276
 
3970
4277
  /**
3971
4278
  * 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
4279
  */
3975
4280
  let AuroHelpText$1 = class AuroHelpText extends i$2 {
3976
4281
 
@@ -3981,7 +4286,7 @@ let AuroHelpText$1 = class AuroHelpText extends i$2 {
3981
4286
  this.onDark = false;
3982
4287
  this.hasTextContent = false;
3983
4288
 
3984
- AuroLibraryRuntimeUtils$3.prototype.handleComponentTagRename(this, 'auro-helptext');
4289
+ AuroLibraryRuntimeUtils$4.prototype.handleComponentTagRename(this, 'auro-helptext');
3985
4290
  }
3986
4291
 
3987
4292
  static get styles() {
@@ -4037,7 +4342,7 @@ let AuroHelpText$1 = class AuroHelpText extends i$2 {
4037
4342
  *
4038
4343
  */
4039
4344
  static register(name = "auro-helptext") {
4040
- AuroLibraryRuntimeUtils$3.prototype.registerComponent(name, AuroHelpText);
4345
+ AuroLibraryRuntimeUtils$4.prototype.registerComponent(name, AuroHelpText);
4041
4346
  }
4042
4347
 
4043
4348
  updated() {
@@ -4086,7 +4391,7 @@ let AuroHelpText$1 = class AuroHelpText extends i$2 {
4086
4391
  // function that renders the HTML and CSS into the scope of the component
4087
4392
  render() {
4088
4393
  return x`
4089
- <div class="helptext-wrapper" ?visible="${this.hasTextContent}">
4394
+ <div class="helptext-wrapper body-xs" ?visible="${this.hasTextContent}">
4090
4395
  <slot @slotchange=${this.handleSlotChange}></slot>
4091
4396
  </div>
4092
4397
  `;
@@ -4095,7 +4400,7 @@ let AuroHelpText$1 = class AuroHelpText extends i$2 {
4095
4400
 
4096
4401
  var helpTextVersion$1 = '1.0.0';
4097
4402
 
4098
- let AuroElement$2 = class AuroElement extends i$2 {
4403
+ let AuroElement$3 = class AuroElement extends i$2 {
4099
4404
  static get properties() {
4100
4405
  return {
4101
4406
 
@@ -4130,19 +4435,22 @@ let AuroElement$2 = class AuroElement extends i$2 {
4130
4435
  }
4131
4436
 
4132
4437
  resetShapeClasses() {
4133
- if (this.shape && this.size) {
4134
- const wrapper = this.shadowRoot.querySelector('.wrapper');
4438
+ const wrapper = this.shadowRoot.querySelector('.wrapper');
4135
4439
 
4136
- if (wrapper) {
4137
- wrapper.classList.forEach((className) => {
4138
- if (className.startsWith('shape-')) {
4139
- wrapper.classList.remove(className);
4140
- }
4141
- });
4440
+ if (wrapper) {
4441
+ wrapper.classList.forEach((className) => {
4442
+ if (className.startsWith('shape-')) {
4443
+ wrapper.classList.remove(className);
4444
+ }
4445
+ });
4142
4446
 
4447
+ if (this.shape && this.size) {
4143
4448
  wrapper.classList.add(`shape-${this.shape.toLowerCase()}-${this.size.toLowerCase()}`);
4449
+ } else {
4450
+ wrapper.classList.add('shape-none');
4144
4451
  }
4145
4452
  }
4453
+
4146
4454
  }
4147
4455
 
4148
4456
  resetLayoutClasses() {
@@ -4191,20 +4499,20 @@ let AuroElement$2 = class AuroElement extends i$2 {
4191
4499
  // See LICENSE in the project root for license information.
4192
4500
 
4193
4501
 
4194
- /**
4195
- * @attr { Boolean } disableEventShow - If declared, the dropdown will only show by calling the API .show() public method.
4502
+
4503
+ /*
4196
4504
  * @slot - Default slot for the popover content.
4197
- * @slot label - Defines the content of the label.
4198
4505
  * @slot helpText - Defines the content of the helpText.
4199
4506
  * @slot trigger - Defines the content of the trigger.
4200
4507
  * @csspart trigger - The trigger content container.
4201
4508
  * @csspart chevron - The collapsed/expanded state icon container.
4509
+ * @csspart size - The size of the dropdown bib. (height, width, maxHeight, maxWidth only)
4202
4510
  * @csspart helpText - The helpText content container.
4203
4511
  * @event auroDropdown-triggerClick - Notifies that the trigger has been clicked.
4204
4512
  * @event auroDropdown-toggled - Notifies that the visibility of the dropdown bib has changed.
4205
4513
  * @event auroDropdown-idAdded - Notifies consumers that the unique ID for the dropdown bib has been generated.
4206
4514
  */
4207
- class AuroDropdown extends AuroElement$2 {
4515
+ class AuroDropdown extends AuroElement$3 {
4208
4516
  constructor() {
4209
4517
  super();
4210
4518
 
@@ -4213,23 +4521,25 @@ class AuroDropdown extends AuroElement$2 {
4213
4521
  this.matchWidth = false;
4214
4522
  this.noHideOnThisFocusLoss = false;
4215
4523
 
4216
- this.errorMessage = ''; // TODO - check with Doug if there is still more to do here
4524
+ this.errorMessage = undefined; // TODO - check with Doug if there is still more to do here
4217
4525
 
4218
4526
  // Layout Config
4219
- this.layout = 'classic';
4220
- this.shape = 'rounded';
4221
- this.size = 'xl';
4527
+ this.layout = undefined;
4528
+ this.shape = undefined;
4529
+ this.size = undefined;
4530
+
4222
4531
  this.parentBorder = false;
4223
4532
 
4224
- this.privateDefaults();
4225
- }
4533
+ /** @private */
4534
+ this.handleDropdownToggle = this.handleDropdownToggle.bind(this);
4226
4535
 
4227
- get commonLabelClasses() {
4228
- return {
4229
- // 'withValue': this.value && this.value.length > 0
4230
- };
4536
+ this.privateDefaults();
4231
4537
  }
4232
4538
 
4539
+ /**
4540
+ * @private
4541
+ * @returns {object} Class definition for the wrapper element.
4542
+ */
4233
4543
  get commonWrapperClasses() {
4234
4544
  return {
4235
4545
  'trigger': true,
@@ -4247,13 +4557,10 @@ class AuroDropdown extends AuroElement$2 {
4247
4557
  privateDefaults() {
4248
4558
  this.chevron = false;
4249
4559
  this.disabled = false;
4560
+ this.disableFocusTrap = false;
4250
4561
  this.error = false;
4251
- this.inset = false;
4252
- this.rounded = false;
4253
4562
  this.tabIndex = 0;
4254
4563
  this.noToggle = false;
4255
- this.a11yAutocomplete = 'none';
4256
- this.labeled = true;
4257
4564
  this.a11yRole = 'button';
4258
4565
  this.onDark = false;
4259
4566
  this.showTriggerBorders = true;
@@ -4349,6 +4656,18 @@ class AuroDropdown extends AuroElement$2 {
4349
4656
  this.floater.showBib();
4350
4657
  }
4351
4658
 
4659
+ /**
4660
+ * When bib is open, focus on the first element inside of bib.
4661
+ * If not, trigger element will get focus.
4662
+ */
4663
+ focus() {
4664
+ if (this.isPopoverVisible && this.focusTrap) {
4665
+ this.focusTrap.focusFirstElement();
4666
+ } else {
4667
+ this.trigger.focus();
4668
+ }
4669
+ }
4670
+
4352
4671
  // function to define props used within the scope of this component
4353
4672
  static get properties() {
4354
4673
  return {
@@ -4362,6 +4681,15 @@ class AuroDropdown extends AuroElement$2 {
4362
4681
  reflect: true
4363
4682
  },
4364
4683
 
4684
+ /**
4685
+ * If declared, the dropdown will only show by calling the API .show() public method.
4686
+ * @default false
4687
+ */
4688
+ disableEventShow: {
4689
+ type: Boolean,
4690
+ reflect: true
4691
+ },
4692
+
4365
4693
  /**
4366
4694
  * If declared, applies a border around the trigger slot.
4367
4695
  */
@@ -4380,17 +4708,17 @@ class AuroDropdown extends AuroElement$2 {
4380
4708
  },
4381
4709
 
4382
4710
  /**
4383
- * If declared, the dropdown will be styled with the common theme.
4711
+ * If declared, the dropdown is not interactive.
4384
4712
  */
4385
- common: {
4713
+ disabled: {
4386
4714
  type: Boolean,
4387
4715
  reflect: true
4388
4716
  },
4389
4717
 
4390
4718
  /**
4391
- * If declared, the dropdown is not interactive.
4719
+ * If declared, the focus trap inside of bib will be turned off.
4392
4720
  */
4393
- disabled: {
4721
+ disableFocusTrap: {
4394
4722
  type: Boolean,
4395
4723
  reflect: true
4396
4724
  },
@@ -4435,27 +4763,13 @@ class AuroDropdown extends AuroElement$2 {
4435
4763
  reflect: true
4436
4764
  },
4437
4765
 
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
4766
  /**
4455
4767
  * If true, the dropdown bib is displayed.
4456
4768
  */
4457
4769
  isPopoverVisible: {
4458
- type: Boolean
4770
+ type: Boolean,
4771
+ reflect: true,
4772
+ attribute: 'open'
4459
4773
  },
4460
4774
 
4461
4775
  /**
@@ -4494,15 +4808,6 @@ class AuroDropdown extends AuroElement$2 {
4494
4808
  reflect: true
4495
4809
  },
4496
4810
 
4497
- /**
4498
- * Defines if there is a label preset.
4499
- * @private
4500
- */
4501
- labeled: {
4502
- type: Boolean,
4503
- reflect: true
4504
- },
4505
-
4506
4811
  /**
4507
4812
  * Defines if the trigger should size based on the parent element providing the border UI.
4508
4813
  * @private
@@ -4563,6 +4868,9 @@ class AuroDropdown extends AuroElement$2 {
4563
4868
  reflect: true
4564
4869
  },
4565
4870
 
4871
+ /**
4872
+ * If declared, and a function is set, that function will execute when the slot content is updated.
4873
+ */
4566
4874
  onSlotChange: {
4567
4875
  type: Function,
4568
4876
  reflect: false
@@ -4577,14 +4885,6 @@ class AuroDropdown extends AuroElement$2 {
4577
4885
  reflect: true
4578
4886
  },
4579
4887
 
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
4888
  /**
4589
4889
  * @private
4590
4890
  */
@@ -4599,22 +4899,15 @@ class AuroDropdown extends AuroElement$2 {
4599
4899
  type: String || undefined,
4600
4900
  attribute: false,
4601
4901
  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
4902
  }
4611
4903
  };
4612
4904
  }
4613
4905
 
4614
4906
  static get styles() {
4615
4907
  return [
4908
+ styleCss$1$2,
4909
+ tokensCss$1$2,
4616
4910
  colorCss$1$2,
4617
- tokensCss$1$1,
4618
4911
 
4619
4912
  // default layout
4620
4913
  classicColorCss,
@@ -4676,13 +4969,27 @@ class AuroDropdown extends AuroElement$2 {
4676
4969
  if (changedProperties.size === 0 || changedProperties.has('isPopoverVisible')) {
4677
4970
  this.handleTriggerContentSlotChange();
4678
4971
  }
4972
+ }
4679
4973
 
4974
+ /**
4975
+ * Handles the custom event `auroDropdown-toggled` to update the visibility of the dropdown bib.
4976
+ * @private
4977
+ * @param {CustomEvent} event - The custom event that contains the dropdown toggle information.
4978
+ */
4979
+ handleDropdownToggle(event) {
4980
+ this.updateFocusTrap();
4981
+ this.isPopoverVisible = event.detail.expanded;
4982
+ const eventType = event.detail.eventType || "unknown";
4983
+ if (!this.isPopoverVisible && this.hasFocus && eventType === "keydown") {
4984
+ this.trigger.focus();
4985
+ }
4680
4986
  }
4681
4987
 
4682
4988
  firstUpdated() {
4683
4989
 
4684
4990
  // Configure the floater to, this will generate the ID for the bib
4685
4991
  this.floater.configure(this, 'auroDropdown');
4992
+ this.addEventListener('auroDropdown-toggled', this.handleDropdownToggle);
4686
4993
 
4687
4994
  /**
4688
4995
  * @description Let subscribers know that the dropdown ID ha been generated and added.
@@ -4700,6 +5007,13 @@ class AuroDropdown extends AuroElement$2 {
4700
5007
 
4701
5008
  // Add the tag name as an attribute if it is different than the component name
4702
5009
  this.runtimeUtils.handleComponentTagRename(this, 'auro-dropdown');
5010
+
5011
+ this.trigger.addEventListener('click', () => {
5012
+ this.dispatchEvent(new CustomEvent('auroDropdown-triggerClick', {
5013
+ bubbles: true,
5014
+ composed: true
5015
+ }));
5016
+ });
4703
5017
  }
4704
5018
 
4705
5019
  /**
@@ -4743,70 +5057,33 @@ class AuroDropdown extends AuroElement$2 {
4743
5057
  }
4744
5058
 
4745
5059
  /**
4746
- * Function to support @focusout event.
4747
5060
  * @private
4748
- * @return {void}
4749
5061
  */
4750
- handleFocusout() {
4751
- this.hasFocus = false;
4752
- }
4753
-
4754
- /**
4755
- * Determines if the element or any children are focusable.
4756
- * @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
- });
5062
+ updateFocusTrap() {
5063
+ // If the dropdown is open, create a focus trap and focus the first element
5064
+ if (this.isPopoverVisible && !this.disableFocusTrap) {
5065
+ this.focusTrap = new FocusTrap(this.bibContent);
5066
+ this.focusTrap.focusFirstElement();
5067
+ return;
5068
+ }
4801
5069
 
4802
- if (result) {
4803
- this.showTriggerBorders = !nodes.some((node) => {
4804
- const tagName = node.tagName.toLowerCase();
4805
- return focusableElements.includes(tagName) && !focusableElementsThatNeedBorders.includes(tagName);
4806
- });
5070
+ // Guard Clause: Ensure there is a focus trap currently active before continuing
5071
+ if (!this.focusTrap) {
5072
+ return;
4807
5073
  }
4808
5074
 
4809
- return result;
5075
+ // If the dropdown is not open, disconnect the focus trap if it exists
5076
+ this.focusTrap.disconnect();
5077
+ this.focusTrap = undefined;
5078
+ }
5079
+
5080
+ /**
5081
+ * Function to support @focusout event.
5082
+ * @private
5083
+ * @return {void}
5084
+ */
5085
+ handleFocusout() {
5086
+ this.hasFocus = false;
4810
5087
  }
4811
5088
 
4812
5089
  /**
@@ -4902,14 +5179,13 @@ class AuroDropdown extends AuroElement$2 {
4902
5179
  * @returns {void}
4903
5180
  */
4904
5181
  handleTriggerContentSlotChange(event) {
4905
-
4906
5182
  this.floater.handleTriggerTabIndex();
4907
5183
 
4908
5184
  // Get the trigger
4909
5185
  const trigger = this.shadowRoot.querySelector('#trigger');
4910
5186
 
4911
5187
  // Get the trigger slot
4912
- const triggerSlot = this.shadowRoot.querySelector('.triggerContent slot');
5188
+ const triggerSlot = this.shadowRoot.querySelector('.triggerContentWrapper slot');
4913
5189
 
4914
5190
  // If there's a trigger slot
4915
5191
  if (triggerSlot) {
@@ -4921,7 +5197,7 @@ class AuroDropdown extends AuroElement$2 {
4921
5197
  if (triggerContentNodes) {
4922
5198
 
4923
5199
  // See if any of them are focusable elements
4924
- this.triggerContentFocusable = triggerContentNodes.some((node) => this.containsFocusableElement(node));
5200
+ this.triggerContentFocusable = triggerContentNodes.some((node) => getFocusableElements(node).length > 0);
4925
5201
 
4926
5202
  // If any of them are focusable elements
4927
5203
  if (this.triggerContentFocusable) {
@@ -4981,29 +5257,6 @@ class AuroDropdown extends AuroElement$2 {
4981
5257
  }
4982
5258
  }
4983
5259
 
4984
- /**
4985
- * @private
4986
- * @method handleLabelSlotChange
4987
- * @param {event} event - The event object representing the slot change.
4988
- * @description Handles the slot change event for the label slot.
4989
- */
4990
- handleLabelSlotChange (event) {
4991
-
4992
- // Get the nodes from the event
4993
- const nodes = event.target.assignedNodes();
4994
-
4995
- // Guard clause for no nodes
4996
- if (!nodes) {
4997
- return;
4998
- }
4999
-
5000
- // Convert the nodes to a measurable array so we can get the length
5001
- const nodesArr = Array.from(nodes);
5002
-
5003
- // If the nodes array has a length, the dropdown is labeled
5004
- this.labeled = nodesArr.length > 0;
5005
- }
5006
-
5007
5260
  /**
5008
5261
  * Returns HTML for the common portion of the layouts.
5009
5262
  * @private
@@ -5016,24 +5269,19 @@ class AuroDropdown extends AuroElement$2 {
5016
5269
  <div
5017
5270
  id="trigger"
5018
5271
  class="${e(this.commonWrapperClasses)}" part="wrapper"
5019
- tabindex="${this.tabIndex}"
5272
+ tabindex="${o(this.triggerContentFocusable ? undefined : this.tabIndex)}"
5020
5273
  role="${o(this.triggerContentFocusable ? undefined : this.a11yRole)}"
5021
- aria-expanded="${o(this.triggerContentFocusable ? undefined : this.isPopoverVisible)}"
5022
- aria-controls="${o(this.triggerContentFocusable ? undefined : this.dropdownId)}"
5274
+ aria-expanded="${o(this.a11yRole === 'button' || this.triggerContentFocusable ? undefined : this.isPopoverVisible)}"
5275
+ aria-controls="${o(this.a11yRole === 'button' || this.triggerContentFocusable ? undefined : this.dropdownId)}"
5023
5276
  aria-labelledby="${o(this.triggerContentFocusable ? undefined : 'triggerLabel')}"
5024
5277
  @focusin="${this.handleFocusin}"
5025
5278
  @blur="${this.handleFocusOut}">
5026
- <div class="triggerContentWrapper">
5027
- <label class="label" id="triggerLabel" hasTrigger=${this.hasTriggerContent}>
5028
- <slot name="label" @slotchange="${this.handleLabelSlotChange}"></slot>
5029
- </label>
5030
- <div class="triggerContent">
5031
- <slot
5032
- name="trigger"
5033
- @slotchange="${this.handleTriggerContentSlotChange}"></slot>
5034
- </div>
5279
+ <div class="triggerContentWrapper" id="triggerLabel">
5280
+ <slot
5281
+ name="trigger"
5282
+ @slotchange="${this.handleTriggerContentSlotChange}"></slot>
5035
5283
  </div>
5036
- ${this.chevron || this.common ? u`
5284
+ ${this.chevron ? u`
5037
5285
  <div
5038
5286
  id="showStateIcon"
5039
5287
  class="chevron"
@@ -5054,11 +5302,9 @@ class AuroDropdown extends AuroElement$2 {
5054
5302
  <div id="bibSizer" part="size"></div>
5055
5303
  <${this.dropdownBibTag}
5056
5304
  id="bib"
5305
+ shape="${this.shape}"
5057
5306
  ?data-show="${this.isPopoverVisible}"
5058
- ?isfullscreen="${this.isBibFullscreen}"
5059
- ?common="${this.common}"
5060
- ?rounded="${this.common || this.rounded}"
5061
- ?inset="${this.common || this.inset}">
5307
+ ?isfullscreen="${this.isBibFullscreen}">
5062
5308
  <div class="slotContent">
5063
5309
  <slot @slotchange="${this.handleDefaultSlot}"></slot>
5064
5310
  </div>
@@ -5073,62 +5319,13 @@ class AuroDropdown extends AuroElement$2 {
5073
5319
  * @returns {html} - Returns HTML for the classic layout.
5074
5320
  */
5075
5321
  renderLayoutClassic() {
5322
+ // TODO: check with Doug why this was never used?
5323
+ const helpTextClasses = {
5324
+ 'helpText': true
5325
+ };
5076
5326
 
5077
5327
  return u`
5078
- <div>
5079
- <div
5080
- id="trigger"
5081
- class="trigger"
5082
- part="trigger"
5083
- tabindex="${this.tabIndex}"
5084
- ?showBorder="${this.showTriggerBorders}"
5085
- role="${o(this.triggerContentFocusable ? undefined : this.a11yRole)}"
5086
- aria-expanded="${o(this.triggerContentFocusable ? undefined : this.isPopoverVisible)}"
5087
- aria-controls="${o(this.triggerContentFocusable ? undefined : this.dropdownId)}"
5088
- aria-labelledby="${o(this.triggerContentFocusable ? undefined : 'triggerLabel')}"
5089
- >
5090
- <div class="triggerContentWrapper">
5091
- <label class="label" id="triggerLabel" hasTrigger=${this.hasTriggerContent}>
5092
- <slot name="label" @slotchange="${this.handleLabelSlotChange}"></slot>
5093
- </label>
5094
- <div class="triggerContent">
5095
- <slot
5096
- name="trigger"
5097
- @slotchange="${this.handleTriggerContentSlotChange}"></slot>
5098
- </div>
5099
- </div>
5100
- ${this.chevron || this.common ? u`
5101
- <div
5102
- id="showStateIcon"
5103
- part="chevron">
5104
- <${this.iconTag}
5105
- category="interface"
5106
- name="chevron-down"
5107
- ?onDark="${this.onDark}"
5108
- variant="${this.disabled ? 'disabled' : 'muted'}">
5109
- >
5110
- </${this.iconTag}>
5111
- </div>
5112
- ` : undefined }
5113
- </div>
5114
- <${this.helpTextTag} part="helpText" ?onDark=${this.onDark} ?error="${this.error}">
5115
- <slot name="helpText"></slot>
5116
- </${this.helpTextTag}>
5117
-
5118
- <div id="bibSizer" part="size"></div>
5119
- <${this.dropdownBibTag}
5120
- id="bib"
5121
- ?data-show="${this.isPopoverVisible}"
5122
- ?isfullscreen="${this.isBibFullscreen}"
5123
- ?common="${this.common}"
5124
- ?rounded="${this.common || this.rounded}"
5125
- ?inset="${this.common || this.inset}"
5126
- >
5127
- <div class="slotContent">
5128
- <slot @slotchange="${this.handleDefaultSlot}"></slot>
5129
- </div>
5130
- </${this.dropdownBibTag}>
5131
- </div>
5328
+ ${this.renderBasicHtml(helpTextClasses)}
5132
5329
  `;
5133
5330
  }
5134
5331
 
@@ -5196,9 +5393,9 @@ class AuroDropdown extends AuroElement$2 {
5196
5393
 
5197
5394
  var dropdownVersion = '3.0.0';
5198
5395
 
5199
- var colorCss$1$1 = i$5`#headerContainer{box-shadow:var(--ds-auro-dropdownbib-header-boxshadow-color)}#footerContainer{background-color:var(--ds-auro-dropdownbib-footer-container-color)}`;
5396
+ var colorCss$3$1 = i$5`#headerContainer{box-shadow:var(--ds-auro-dropdownbib-header-boxshadow-color)}#footerContainer{background-color:var(--ds-auro-dropdownbib-footer-container-color)}`;
5200
5397
 
5201
- var styleCss$2$1 = i$5`#bibTemplate{display:flex;overflow:hidden;height:100%;max-height:100%;flex-direction:column}#headerContainer{display:flex;flex-direction:column}#header{display:flex;width:100%;min-height:var(--ds-size-1000, 5rem);box-sizing:border-box;align-items:end;padding-top:var(--ds-size-400, 2rem);padding-right:var(--ds-size-700, 3.5rem);padding-left:var(--ds-size-200, 1rem);pointer-events:none}#subheader{width:100%}#subheader ::slotted([auro-input]){padding:0 var(--ds-size-200, 1rem)}#closeButton{position:absolute;top:var(--ds-size-400, 2rem);right:var(--ds-size-200, 1rem);border:none;background-color:transparent;cursor:pointer}#closeButton [auro-icon]{--ds-auro-icon-size: var(--ds-size-500, 2.5rem)}#bodyContainer{position:relative;overflow:auto;flex:1 1 100%}:host([isfullscreen]) #bibTemplate{max-height:100dvh}:host([isfullscreen]) #bodyContainer{margin-top:var(--ds-size-100, 0.5rem)}#footerContainer{position:absolute;right:0;bottom:0;left:0;padding:var(--ds-size-200, 1rem)}`;
5398
+ 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)}`;
5202
5399
 
5203
5400
  var tokenCss = i$5`:host{--ds-auro-dropdownbib-header-boxshadow-color: var(--ds-elevation-200, 0px 0px 10px rgba(0, 0, 0, 0.15));--ds-auro-dropdownbib-footer-container-color: var(--ds-basic-color-surface-default, #ffffff)}`;
5204
5401
 
@@ -5209,7 +5406,7 @@ var tokenCss = i$5`:host{--ds-auro-dropdownbib-header-boxshadow-color: var(--ds-
5209
5406
 
5210
5407
  /* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
5211
5408
 
5212
- let AuroLibraryRuntimeUtils$1$1 = class AuroLibraryRuntimeUtils {
5409
+ let AuroLibraryRuntimeUtils$2 = class AuroLibraryRuntimeUtils {
5213
5410
 
5214
5411
  /* eslint-disable jsdoc/require-param */
5215
5412
 
@@ -5241,77 +5438,1171 @@ let AuroLibraryRuntimeUtils$1$1 = class AuroLibraryRuntimeUtils {
5241
5438
  ) {
5242
5439
  return __Closest(base);
5243
5440
  }
5244
- /* eslint-enable jsdoc/require-param */
5441
+ /* eslint-enable jsdoc/require-param */
5442
+
5443
+ /**
5444
+ * 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.
5445
+ * @param {Object} elem - The element to check.
5446
+ * @param {String} tagName - The name of the Auro component to check for or add as an attribute.
5447
+ * @returns {void}
5448
+ */
5449
+ handleComponentTagRename(elem, tagName) {
5450
+ const tag = tagName.toLowerCase();
5451
+ const elemTag = elem.tagName.toLowerCase();
5452
+
5453
+ if (elemTag !== tag) {
5454
+ elem.setAttribute(tag, true);
5455
+ }
5456
+ }
5457
+
5458
+ /**
5459
+ * Validates if an element is a specific Auro component.
5460
+ * @param {Object} elem - The element to validate.
5461
+ * @param {String} tagName - The name of the Auro component to check against.
5462
+ * @returns {Boolean} - Returns true if the element is the specified Auro component.
5463
+ */
5464
+ elementMatch(elem, tagName) {
5465
+ const tag = tagName.toLowerCase();
5466
+ const elemTag = elem.tagName.toLowerCase();
5467
+
5468
+ return elemTag === tag || elem.hasAttribute(tag);
5469
+ }
5470
+ };
5471
+
5472
+ // Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
5473
+ // See LICENSE in the project root for license information.
5474
+
5475
+
5476
+ class AuroDependencyVersioning {
5477
+
5478
+ /**
5479
+ * Generates a unique string to be used for child auro element naming.
5480
+ * @private
5481
+ * @param {string} baseName - Defines the first part of the unique element name.
5482
+ * @param {string} version - Version of the component that will be appended to the baseName.
5483
+ * @returns {string} - Unique string to be used for naming.
5484
+ */
5485
+ generateElementName(baseName, version) {
5486
+ let result = baseName;
5487
+
5488
+ result += '-';
5489
+ result += version.replace(/[.]/g, '_');
5490
+
5491
+ return result;
5492
+ }
5493
+
5494
+ /**
5495
+ * Generates a unique string to be used for child auro element naming.
5496
+ * @param {string} baseName - Defines the first part of the unique element name.
5497
+ * @param {string} version - Version of the component that will be appended to the baseName.
5498
+ * @returns {string} - Unique string to be used for naming.
5499
+ */
5500
+ generateTag(baseName, version, tagClass) {
5501
+ const elementName = this.generateElementName(baseName, version);
5502
+ const tag = i`${s(elementName)}`;
5503
+
5504
+ if (!customElements.get(elementName)) {
5505
+ customElements.define(elementName, class extends tagClass {});
5506
+ }
5507
+
5508
+ return tag;
5509
+ }
5510
+ }
5511
+
5512
+ /**
5513
+ * Private module-level WeakMap to hold MutationObservers for each host element.
5514
+ */
5515
+ const _observers = new WeakMap();
5516
+
5517
+ /**
5518
+ * Private module-level WeakMap to hold attribute matchers and targets for each host element.
5519
+ * Structure: {
5520
+ * host: {
5521
+ * matchers: Set<Function>,
5522
+ * targets: Map<HTMLElement, Map<Function, {removeOriginal: boolean, currentAttributes: Map<string, string>}>>
5523
+ * }
5524
+ * }
5525
+ */
5526
+ const _transportConfig = new WeakMap();
5527
+
5528
+ /**
5529
+ * Transfers all matching attributes from a host element to a target element and observes for future changes.
5530
+ *
5531
+ * @param {Object} params - The parameters for the function.
5532
+ * @param {HTMLElement} params.host - The host element from which attributes will be transported.
5533
+ * @param {HTMLElement} params.target - The target element to which attributes will be transported.
5534
+ * @param {boolean} [params.removeOriginal=true] - Whether to remove the attributes from the host element.
5535
+ * @param {boolean} [params.observe=true] - Whether to attach a MutationObserver to the host element.
5536
+ * @returns {Function} A function to detach the observer when no longer needed.
5537
+ * @throws {TypeError} If the host or target parameters are not instances of HTMLElement.
5538
+ */
5539
+ const transportAttributes = ({ host, target, match, removeOriginal = true }) => {
5540
+ // Guard Clause: Ensure host is valid HTMLElement instance
5541
+ if (typeof host !== 'object' || !(host instanceof HTMLElement)) {
5542
+ throw new TypeError('a11yUtilities.js | transportAttributes | The "host" parameter must be an instance of HTMLElement.');
5543
+ }
5544
+
5545
+ // Guard Clause: Ensure target is valid HTMLElement instance
5546
+ if (typeof target !== 'object' || !(target instanceof HTMLElement)) {
5547
+ throw new TypeError('a11yUtilities.js | transportAttributes | The "target" parameter must be an instance of HTMLElement.');
5548
+ }
5549
+
5550
+ // Guard Clause: Ensure match is a function
5551
+ if (typeof match !== 'function') {
5552
+ throw new TypeError('a11yUtilities.js | transportAttributes | The "match" parameter must be a function.');
5553
+ }
5554
+
5555
+ // Guard Clause: Ensure removeOriginal is a boolean
5556
+ if (typeof removeOriginal !== 'boolean') {
5557
+ throw new TypeError('a11yUtilities.js | transportAttributes | The "removeOriginal" parameter must be a boolean.');
5558
+ }
5559
+
5560
+ // Register this transport and get cleanup function
5561
+ return _registerTransport({
5562
+ host,
5563
+ target,
5564
+ matcher: match,
5565
+ removeOriginal
5566
+ });
5567
+ };
5568
+
5569
+ /**
5570
+ * Registers a matcher and target for a host element and attaches an observer if needed.
5571
+ *
5572
+ * @param {Object} params - The parameters object.
5573
+ * @param {HTMLElement} params.host - The host element to observe.
5574
+ * @param {HTMLElement} params.target - The target element to receive attributes.
5575
+ * @param {Function} params.matcher - Function that determines which attributes to transport.
5576
+ * @param {boolean} [params.removeOriginal=true] - Whether to remove original attributes.
5577
+ * @param {boolean} [params.observe=true] - Whether to observe for attribute changes.
5578
+ * @returns {Function} Function to detach the specific matcher and target pairing.
5579
+ * @private
5580
+ */
5581
+ const _registerTransport = ({ host, target, matcher, removeOriginal = true }) => {
5582
+ // Initialize config for this host if it doesn't exist
5583
+ if (!_transportConfig.has(host)) {
5584
+ _transportConfig.set(host, {
5585
+ matchers: new Set(),
5586
+ targets: new Map()
5587
+ });
5588
+ }
5589
+
5590
+ const config = _transportConfig.get(host);
5591
+
5592
+ // Add the matcher to the set of matchers for this host
5593
+ config.matchers.add(matcher);
5594
+
5595
+ // Initialize target entry if it doesn't exist
5596
+ if (!config.targets.has(target)) {
5597
+ config.targets.set(target, new Map());
5598
+ }
5599
+
5600
+ // Store the matcher with its removeOriginal setting for this target
5601
+ config.targets.get(target).set(matcher, {
5602
+ removeOriginal,
5603
+ currentAttributes: new Map()
5604
+ });
5605
+
5606
+ // Perform initial attribute transport
5607
+ _transportAttributes({ host, target, matcher, removeOriginal });
5608
+
5609
+ // Attach observer
5610
+ _attachObserver(host);
5611
+
5612
+ // Return cleanup function and utility functions
5613
+ return {
5614
+ cleanup: () => _cleanupTransport(host, target, matcher),
5615
+ getObservedAttributes: () => _getObservedAttributes(host, target, matcher),
5616
+ getObservedAttribute: (attr) => _getObservedAttribute(host, target, matcher, attr),
5617
+ }
5618
+ };
5619
+
5620
+ /**
5621
+ * Cleans up resources associated with a specific matcher and target for a host element.
5622
+ *
5623
+ * @param {HTMLElement} host - The host element
5624
+ * @param {HTMLElement} target - The target element
5625
+ * @param {Function} matcher - The matcher function
5626
+ * @private
5627
+ */
5628
+ const _cleanupTransport = (host, target, matcher) => {
5629
+ const config = _transportConfig.get(host);
5630
+ if (!config) return;
5631
+
5632
+ // Remove this matcher from this target
5633
+ const targetMatchers = config.targets.get(target);
5634
+ if (targetMatchers) {
5635
+ targetMatchers.delete(matcher);
5636
+
5637
+ // If this target has no more matchers, remove it
5638
+ if (targetMatchers.size === 0) {
5639
+ config.targets.delete(target);
5640
+ }
5641
+ }
5642
+
5643
+ // Check if this matcher is still used by any target
5644
+ let matcherStillUsed = false;
5645
+ for (const matcherMap of config.targets.values()) {
5646
+ if (matcherMap.has(matcher)) {
5647
+ matcherStillUsed = true;
5648
+ break;
5649
+ }
5650
+ }
5651
+
5652
+ // If not used anymore, remove from matchers set
5653
+ if (!matcherStillUsed) {
5654
+ config.matchers.delete(matcher);
5655
+ }
5656
+
5657
+ // If no more targets or matchers, detach observer
5658
+ if (config.targets.size === 0 || config.matchers.size === 0) {
5659
+ _detachObserver(host);
5660
+ }
5661
+ };
5662
+
5663
+ /**
5664
+ * Generic function to transport attributes from a host element to a target element.
5665
+ *
5666
+ * @param {Object} params - The parameters object.
5667
+ * @param {HTMLElement} params.host - The host element from which to transport attributes.
5668
+ * @param {HTMLElement} params.target - The target element to which attributes will be transported.
5669
+ * @param {Function} params.matcher - Function that takes an attribute name and returns true if it should be transported.
5670
+ * @param {boolean} [params.removeOriginal=true] - Whether to remove original attributes from host.
5671
+ * @returns {void}
5672
+ * @private
5673
+ */
5674
+ const _transportAttributes = ({ host, target, matcher, removeOriginal = true }) => {
5675
+ // Get a list of all matching attributes on the host element and their values
5676
+ const matchingAttributes = host.getAttributeNames()
5677
+ .filter(attr => matcher(attr))
5678
+ .reduce((acc, attr) => {
5679
+ acc[attr] = host.getAttribute(attr);
5680
+ return acc;
5681
+ }, {});
5682
+
5683
+ // Move matching attributes to the target element, removing them from the host if removeOriginal is true
5684
+ Object.entries(matchingAttributes).forEach(([key, value]) => {
5685
+ _setObservedAttribute(host, target, matcher, key, value);
5686
+ target.setAttribute(key, value);
5687
+ if (removeOriginal) {
5688
+ host.removeAttribute(key);
5689
+ }
5690
+ });
5691
+ };
5692
+
5693
+ /**
5694
+ * Attaches a MutationObserver to the host element to monitor attribute changes.
5695
+ *
5696
+ * @param {HTMLElement} host - The element to observe for attribute changes.
5697
+ * @returns {MutationObserver} The observer instance.
5698
+ * @private
5699
+ */
5700
+ const _attachObserver = (host) => {
5701
+ // If an observer for this host already exists, return it
5702
+ if (_observers.has(host)) {
5703
+ return _observers.get(host);
5704
+ }
5705
+
5706
+ // Create a new MutationObserver
5707
+ const observer = new MutationObserver((mutations) => {
5708
+ const config = _transportConfig.get(host);
5709
+ if (!config) return;
5710
+
5711
+ // For each mutation affecting attributes
5712
+ mutations
5713
+ .filter(mutation => mutation.type === 'attributes')
5714
+ .forEach(mutation => {
5715
+ const attributeName = mutation.attributeName;
5716
+
5717
+ // Find matchers that care about this attribute
5718
+ for (const matcher of config.matchers) {
5719
+ if (matcher(attributeName)) {
5720
+ // For each target that uses this matcher
5721
+ for (const [target, matcherConfigs] of config.targets.entries()) {
5722
+ if (matcherConfigs.has(matcher)) {
5723
+ const { removeOriginal } = matcherConfigs.get(matcher);
5724
+ _transportAttributes({
5725
+ host,
5726
+ target,
5727
+ matcher,
5728
+ removeOriginal
5729
+ });
5730
+ }
5731
+ }
5732
+ }
5733
+ }
5734
+ });
5735
+ });
5736
+
5737
+ // Start observing attribute changes
5738
+ observer.observe(host, { attributes: true });
5739
+
5740
+ // Store the observer
5741
+ _observers.set(host, observer);
5742
+
5743
+ return observer;
5744
+ };
5745
+
5746
+ /**
5747
+ * Detaches and cleans up the MutationObserver for a given host element.
5748
+ *
5749
+ * @param {HTMLElement} host - The element whose observer should be detached.
5750
+ * @private
5751
+ */
5752
+ const _detachObserver = (host) => {
5753
+ if (_observers.has(host)) {
5754
+ const observer = _observers.get(host);
5755
+ observer.disconnect();
5756
+ _observers.delete(host);
5757
+ }
5758
+
5759
+ // Clean up the transport config as well
5760
+ if (_transportConfig.has(host)) {
5761
+ _transportConfig.delete(host);
5762
+ }
5763
+ };
5764
+
5765
+ /**
5766
+ * Gets the matcher configuration for a specific host, target, and matcher
5767
+ * @param {HTMLElement} host - The host element
5768
+ * @param {HTMLElement} target - The target element
5769
+ * @param {Function} matcher - The matcher function
5770
+ * @returns {Object|undefined} The matcher configuration if found
5771
+ * @private
5772
+ */
5773
+ const _getMatcherConfig = (host, target, matcher) => {
5774
+ const config = _transportConfig.get(host);
5775
+ if (!config) return undefined;
5776
+
5777
+ const targetMatchers = config.targets.get(target);
5778
+ if (!targetMatchers) return undefined;
5779
+
5780
+ return targetMatchers.get(matcher);
5781
+ };
5782
+
5783
+ /**
5784
+ * Sets an observed attribute value
5785
+ * @param {HTMLElement} host - The host element
5786
+ * @param {HTMLElement} target - The target element
5787
+ * @param {Function} matcher - The matcher function
5788
+ * @param {string} key - The attribute name
5789
+ * @param {string} value - The attribute value
5790
+ * @private
5791
+ */
5792
+ const _setObservedAttribute = (host, target, matcher, key, value) => {
5793
+ const matcherConfig = _getMatcherConfig(host, target, matcher);
5794
+ if (matcherConfig) {
5795
+ matcherConfig.currentAttributes.set(key, value);
5796
+ }
5797
+ };
5798
+
5799
+ const _getObservedAttribute = (host, target, matcher, attr) => {
5800
+ const matcherConfig = _getMatcherConfig(host, target, matcher);
5801
+ if (matcherConfig) return matcherConfig.currentAttributes.get(attr);
5802
+ return undefined;
5803
+ };
5804
+
5805
+ const _getObservedAttributes = (host, target, matcher) => {
5806
+ const matcherConfig = _getMatcherConfig(host, target, matcher);
5807
+ if (matcherConfig) return Array.from(matcherConfig.currentAttributes.entries());
5808
+ return [];
5809
+ };
5810
+
5811
+ const _matchers = {
5812
+ 'aria-': attr => attr.startsWith('aria-'),
5813
+ 'role': attr => attr.match(/^role$/)
5814
+ };
5815
+
5816
+ const transportAllA11yAttributes = ({ host, target, removeOriginal = true }) => {
5817
+ return transportAttributes({
5818
+ host,
5819
+ target,
5820
+ match: attr => {
5821
+ for (const key in _matchers) {
5822
+ if (_matchers[key](attr)) return true;
5823
+ }
5824
+ return false;
5825
+ },
5826
+ removeOriginal
5827
+ });
5828
+ };
5829
+
5830
+ let AuroElement$1 = class AuroElement extends i$2 {
5831
+
5832
+ /**
5833
+ * @type {Object} return object from transportAttributes via a11yUtilities
5834
+ * @property {Function} cleanup - Function to clean up the attribute watcher.
5835
+ * @property {Function} getCurrentAttributes - Function to get the current attributes being watched and their values.
5836
+ * @property {Function} getObservedAttribute - Function to get the value of a specific observed attribute by name.
5837
+ * @private
5838
+ */
5839
+ attributeWatcher;
5840
+
5841
+ static get properties() {
5842
+ return {
5843
+
5844
+ /**
5845
+ * Defines the layout of an element.
5846
+ * @default {'default'}
5847
+ */
5848
+ layout: {
5849
+ type: String,
5850
+ attribute: "layout",
5851
+ reflect: true
5852
+ },
5853
+
5854
+ /**
5855
+ * Defines the shape of an element.
5856
+ * @property {'default', 'rounded', 'pill', 'circle'}
5857
+ * @default {'default'}
5858
+ */
5859
+ shape: {
5860
+ type: String,
5861
+ attribute: "shape",
5862
+ reflect: true
5863
+ },
5864
+
5865
+ /**
5866
+ * Defines the size of an element.
5867
+ * @property {'xs', 'sm', 'md', 'lg', 'xl'}
5868
+ * @default {'md'}
5869
+ */
5870
+ size: {
5871
+ type: String,
5872
+ attribute: "size",
5873
+ reflect: true
5874
+ },
5875
+
5876
+ /**
5877
+ * This Boolean attribute lets you specify that the element should be rendered in dark mode.
5878
+ * @default {false}
5879
+ */
5880
+ onDark: {
5881
+ type: Boolean,
5882
+ attribute: "ondark",
5883
+ reflect: true
5884
+ },
5885
+
5886
+ /**
5887
+ * A reference to the wrapper element in the shadow DOM.
5888
+ * This is used to apply layout and shape classes dynamically.
5889
+ * @type {HTMLElement|null}
5890
+ * @default {null}
5891
+ * @private
5892
+ */
5893
+ wrapper: {
5894
+ attribute: false,
5895
+ reflect: false
5896
+ }
5897
+ };
5898
+ }
5899
+
5900
+
5901
+
5902
+ resetShapeClasses() {
5903
+ if (this.shape && this.size) {
5904
+
5905
+ if (this.wrapper) {
5906
+ this.wrapper.classList.forEach((className) => {
5907
+ if (className.startsWith('shape-')) {
5908
+ this.wrapper.classList.remove(className);
5909
+ }
5910
+ });
5911
+
5912
+ this.wrapper.classList.add(`shape-${this.shape.toLowerCase()}-${this.size.toLowerCase()}`);
5913
+ }
5914
+ }
5915
+ }
5916
+
5917
+ resetLayoutClasses() {
5918
+ if (this.layout) {
5919
+ if (this.wrapper) {
5920
+ this.wrapper.classList.forEach((className) => {
5921
+ if (className.startsWith('layout-')) {
5922
+ this.wrapper.classList.remove(className);
5923
+ }
5924
+ });
5925
+
5926
+ this.wrapper.classList.add(`layout-${this.layout.toLowerCase()}`);
5927
+ }
5928
+ }
5929
+ }
5930
+
5931
+ updateComponentArchitecture() {
5932
+ this.resetLayoutClasses();
5933
+ this.resetShapeClasses();
5934
+ }
5935
+
5936
+ updated(changedProperties) {
5937
+ if (changedProperties.has('layout') || changedProperties.has('shape') || changedProperties.has('size')) {
5938
+ this.updateComponentArchitecture();
5939
+ }
5940
+ }
5941
+
5942
+ firstUpdated() {
5943
+ super.firstUpdated();
5944
+
5945
+ // Set a reference to the wrapper element in the shadow DOM
5946
+ this.wrapper = this.shadowRoot.querySelector('.wrapper');
5947
+
5948
+ // Initialize the transportation of ARIA attributes to the target element and get the disconnect function for cleanup
5949
+ this.attributeWatcher = transportAllA11yAttributes({ host: this, target: this.shadowRoot.querySelector('.wrapper') });
5950
+ }
5951
+
5952
+ disconnectedCallback() {
5953
+ super.disconnectedCallback();
5954
+
5955
+ // Cleanup the ARIA observer if it exists
5956
+ if (this.attributeWatcher) {
5957
+ this.attributeWatcher.cleanup();
5958
+ this.attributeWatcher = null;
5959
+ }
5960
+ }
5961
+
5962
+ // Try to render the defined `this.layout` layout. If that fails, fall back to the default layout.
5963
+ // This will catch if an invalid layout value is passed in and render the default layout if so.
5964
+ render() {
5965
+ try {
5966
+ return this.renderLayout();
5967
+ } catch (error) {
5968
+ // failed to get the defined layout
5969
+ console.error('Failed to get the defined layout - using the default layout', error); // eslint-disable-line no-console
5970
+
5971
+ // fallback to the default layout
5972
+ return this.getLayout('default');
5973
+ }
5974
+ }
5975
+ };
5976
+
5977
+ 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}`;
5978
+
5979
+ 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)}`;
5980
+
5981
+ 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}`;
5982
+
5983
+ 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}`;
5984
+
5985
+ // Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
5986
+ // See LICENSE in the project root for license information.
5987
+
5988
+ // ---------------------------------------------------------------------
5989
+
5990
+ /* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
5991
+
5992
+ let AuroLibraryRuntimeUtils$1$1 = class AuroLibraryRuntimeUtils {
5993
+
5994
+ /* eslint-disable jsdoc/require-param */
5995
+
5996
+ /**
5997
+ * This will register a new custom element with the browser.
5998
+ * @param {String} name - The name of the custom element.
5999
+ * @param {Object} componentClass - The class to register as a custom element.
6000
+ * @returns {void}
6001
+ */
6002
+ registerComponent(name, componentClass) {
6003
+ if (!customElements.get(name)) {
6004
+ customElements.define(name, class extends componentClass {});
6005
+ }
6006
+ }
6007
+
6008
+ /**
6009
+ * Finds and returns the closest HTML Element based on a selector.
6010
+ * @returns {void}
6011
+ */
6012
+ closestElement(
6013
+ selector, // selector like in .closest()
6014
+ base = this, // extra functionality to skip a parent
6015
+ __Closest = (el, found = el && el.closest(selector)) =>
6016
+ !el || el === document || el === window
6017
+ ? null // standard .closest() returns null for non-found selectors also
6018
+ : found
6019
+ ? found // found a selector INside this element
6020
+ : __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
6021
+ ) {
6022
+ return __Closest(base);
6023
+ }
6024
+ /* eslint-enable jsdoc/require-param */
6025
+
6026
+ /**
6027
+ * 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.
6028
+ * @param {Object} elem - The element to check.
6029
+ * @param {String} tagName - The name of the Auro component to check for or add as an attribute.
6030
+ * @returns {void}
6031
+ */
6032
+ handleComponentTagRename(elem, tagName) {
6033
+ const tag = tagName.toLowerCase();
6034
+ const elemTag = elem.tagName.toLowerCase();
6035
+
6036
+ if (elemTag !== tag) {
6037
+ elem.setAttribute(tag, true);
6038
+ }
6039
+ }
6040
+
6041
+ /**
6042
+ * Validates if an element is a specific Auro component.
6043
+ * @param {Object} elem - The element to validate.
6044
+ * @param {String} tagName - The name of the Auro component to check against.
6045
+ * @returns {Boolean} - Returns true if the element is the specified Auro component.
6046
+ */
6047
+ elementMatch(elem, tagName) {
6048
+ const tag = tagName.toLowerCase();
6049
+ const elemTag = elem.tagName.toLowerCase();
6050
+
6051
+ return elemTag === tag || elem.hasAttribute(tag);
6052
+ }
6053
+ };
6054
+
6055
+ 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}}`;
6056
+
6057
+ 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}`;
6058
+
6059
+ var tokensCss$1$1 = i$5`:host{--ds-auro-loader-background-color:currentcolor;--ds-auro-loader-border-color:currentcolor;--ds-auro-loader-color:currentcolor}`;
6060
+
6061
+ // Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
6062
+ // See LICENSE in the project root for license information.
6063
+
6064
+
6065
+ class AuroLoader extends i$2 {
6066
+ constructor() {
6067
+ super();
6068
+
6069
+ /**
6070
+ * @private
6071
+ */
6072
+ this.keys = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9];
6073
+
6074
+ /**
6075
+ * @private
6076
+ */
6077
+ this.mdCount = 3;
6078
+
6079
+ /**
6080
+ * @private
6081
+ */
6082
+ this.smCount = 2;
6083
+
6084
+ /**
6085
+ * @private
6086
+ */
6087
+ this.runtimeUtils = new AuroLibraryRuntimeUtils$1$1();
6088
+
6089
+ this.orbit = false;
6090
+ this.ringworm = false;
6091
+ this.laser = false;
6092
+ this.pulse = false;
6093
+ }
6094
+
6095
+ // function to define props used within the scope of this component
6096
+ static get properties() {
6097
+ return {
6098
+
6099
+ /**
6100
+ * Sets loader to laser type.
6101
+ */
6102
+ laser: {
6103
+ type: Boolean,
6104
+ reflect: true
6105
+ },
6106
+
6107
+ /**
6108
+ * Sets loader to orbit type.
6109
+ */
6110
+ orbit: {
6111
+ type: Boolean,
6112
+ reflect: true
6113
+ },
6114
+
6115
+ /**
6116
+ * Sets loader to pulse type.
6117
+ */
6118
+ pulse: {
6119
+ type: Boolean,
6120
+ reflect: true
6121
+ },
6122
+
6123
+ /**
6124
+ * Sets loader to ringworm type.
6125
+ */
6126
+ ringworm: {
6127
+ type: Boolean,
6128
+ reflect: true
6129
+ }
6130
+ };
6131
+ }
6132
+
6133
+ static get styles() {
6134
+ return [
6135
+ i$5`${styleCss$2$1}`,
6136
+ i$5`${colorCss$1$1}`,
6137
+ i$5`${tokensCss$1$1}`
6138
+ ];
6139
+ }
6140
+
6141
+ /**
6142
+ * This will register this element with the browser.
6143
+ * @param {string} [name="auro-loader"] - The name of element that you want to register to.
6144
+ *
6145
+ * @example
6146
+ * AuroLoader.register("custom-loader") // this will register this element to <custom-loader/>
6147
+ *
6148
+ */
6149
+ static register(name = "auro-loader") {
6150
+ AuroLibraryRuntimeUtils$1$1.prototype.registerComponent(name, AuroLoader);
6151
+ }
6152
+
6153
+ firstUpdated() {
6154
+ // Add the tag name as an attribute if it is different than the component name
6155
+ this.runtimeUtils.handleComponentTagRename(this, 'auro-loader');
6156
+ }
6157
+
6158
+ connectedCallback() {
6159
+ super.connectedCallback();
6160
+ }
6161
+
6162
+ /**
6163
+ * @private
6164
+ * @returns {Array} Numbered array for template map.
6165
+ */
6166
+ defineTemplate() {
6167
+ let nodes = Array.from(Array(this.mdCount).keys());
6168
+
6169
+ if (this.orbit || this.laser) {
6170
+ nodes = Array.from(Array(this.smCount).keys());
6171
+ } else if (this.ringworm) {
6172
+ nodes = Array.from(Array(0).keys());
6173
+ }
6174
+
6175
+ return nodes;
6176
+ }
6177
+
6178
+ // When using auroElement, use the following attribute and function when hiding content from screen readers.
6179
+ // aria-hidden="${this.hideAudible(this.hiddenAudible)}"
6180
+
6181
+ // function that renders the HTML and CSS into the scope of the component
6182
+ render() {
6183
+ return x`
6184
+ ${this.defineTemplate().map((idx) => x`
6185
+ <span part="element" class="loader node-${idx}"></span>
6186
+ `)}
6187
+
6188
+ <div class="no-animation body-default">Loading...</div>
6189
+
6190
+ ${this.ringworm ? x`
6191
+ <svg part="element" class="circular" viewBox="25 25 50 50">
6192
+ <circle class="path" cx="50" cy="50" r="20" fill="none"/>
6193
+ </svg>`
6194
+ : ``
6195
+ }
6196
+ `;
6197
+ }
6198
+ }
6199
+
6200
+ var loaderVersion = '5.1.0';
6201
+
6202
+ // Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
6203
+ // See LICENSE in the project root for license information.
6204
+
6205
+
6206
+ /**
6207
+ * @slot - Default slot for the text of the button.
6208
+ * @csspart button - Apply CSS to HTML5 button.
6209
+ * @csspart loader - Apply CSS to auro-loader.
6210
+ * @csspart text - Apply CSS to text slot.
6211
+ * @csspart icon - Apply CSS to icon slot.
6212
+ */
6213
+
6214
+ const ICON_ONLY_SHAPES = ['circle', 'square'];
6215
+
6216
+ /**
6217
+ * AuroButton is a custom element that provides a styled, accessible button with support for various states and form association.
6218
+ * It is designed to be flexible, supporting loading states, icon slots, and integration with HTML5 forms.
6219
+ * @property {'default', 'rounded', 'pill', 'circle', 'square'} shape - Defines the shape of the button.
6220
+ * @property {'xs', 'sm', 'md', 'lg', 'xl'} size - Defines the size of the button.
6221
+ * @property {'primary', 'secondary', 'tertiary', 'ghost', 'flat'} variant - Sets the button variant.
6222
+ * @property {'submit', 'reset', 'button'} type - The type of button. Matches HTML5 Button Spec.
6223
+ * @property {boolean} onDark - Indicates if the button is rendered in dark mode.
6224
+ */
6225
+ class AuroButton extends AuroElement$1 {
6226
+
6227
+ /**
6228
+ * Enables form association for this element.
6229
+ * @see https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/attachInternals
6230
+ * @returns {boolean} - Returns true to enable form association.
6231
+ */
6232
+ static get formAssociated() {
6233
+ return true;
6234
+ }
6235
+
6236
+ constructor() {
6237
+ super();
6238
+ this.autofocus = false;
6239
+ this.disabled = false;
6240
+ this.loading = false;
6241
+ this.size = "md";
6242
+ this.shape = "rounded";
6243
+ this.onDark = false;
6244
+ this.fluid = false;
6245
+ this.loadingText = this.loadingText || 'Loading...';
6246
+ this.variant = 'primary';
6247
+
6248
+ // Support for HTML5 forms
6249
+ if (typeof this.attachInternals === 'function') {
6250
+ this.internals = this.attachInternals();
6251
+ } else {
6252
+ this.internals = null;
6253
+
6254
+ // eslint-disable-next-line no-console
6255
+ 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.');
6256
+ }
6257
+
6258
+ /**
6259
+ * Generate unique names for dependency components.
6260
+ */
6261
+ const versioning = new AuroDependencyVersioning();
6262
+
6263
+ /**
6264
+ * @private
6265
+ */
6266
+ this.loaderTag = versioning.generateTag('auro-loader', loaderVersion, AuroLoader);
6267
+
6268
+ /**
6269
+ * @private
6270
+ */
6271
+ this.buttonHref = undefined;
6272
+
6273
+ /**
6274
+ * @private
6275
+ */
6276
+ this.buttonTarget = undefined;
6277
+
6278
+ /**
6279
+ * @private
6280
+ */
6281
+ this.buttonRel = undefined;
6282
+ }
6283
+
6284
+ static get styles() {
6285
+ return [
6286
+ tokensCss$2$1,
6287
+ styleCss$3$1,
6288
+ colorCss$2$1,
6289
+ shapeSize
6290
+ ];
6291
+ }
6292
+
6293
+ static get properties() {
6294
+ return {
6295
+
6296
+ ...super.properties,
6297
+
6298
+ /**
6299
+ * Override layout since it isn't used in this component.
6300
+ * @private
6301
+ */
6302
+ layout: {
6303
+ type: Boolean,
6304
+ attribute: false,
6305
+ reflect: false
6306
+ },
6307
+
6308
+ /**
6309
+ * This Boolean attribute lets you specify that the button should have input focus when the page loads, unless overridden by the user.
6310
+ */
6311
+ autofocus: {
6312
+ type: Boolean,
6313
+ reflect: true
6314
+ },
6315
+
6316
+ /**
6317
+ * If set to true, button will become disabled and not allow for interactions.
6318
+ */
6319
+ disabled: {
6320
+ type: Boolean,
6321
+ reflect: true
6322
+ },
6323
+
6324
+ /**
6325
+ * Alters the shape of the button to be full width of its parent container.
6326
+ */
6327
+ fluid: {
6328
+ type: Boolean,
6329
+ reflect: true
6330
+ },
6331
+
6332
+ /**
6333
+ * If set to true button text will be replaced with `auro-loader` and become disabled.
6334
+ */
6335
+ loading: {
6336
+ type: Boolean,
6337
+ reflect: true
6338
+ },
6339
+
6340
+ /**
6341
+ * 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.
6342
+ */
6343
+ loadingText: {
6344
+ type: String
6345
+ },
6346
+
6347
+ /**
6348
+ * Populates `tabindex` to define the focusable sequence in keyboard navigation.
6349
+ */
6350
+ tIndex: {
6351
+ type: String,
6352
+ reflect: true
6353
+ },
6354
+
6355
+ /**
6356
+ * Populates `tabindex` to define the focusable sequence in keyboard navigation.
6357
+ * Must be used with "." to ensure the host element does not retain a reference to the `tabindex` attribute.
6358
+ * Example: `<auro-button .tabindex="${this.disabled ? '-1' : '0'}"></auro-button>`.
6359
+ */
6360
+ tabindex: {
6361
+ type: String,
6362
+ reflect: false
6363
+ },
6364
+
6365
+ /**
6366
+ * Sets title attribute. The information is most often shown as a tooltip text when the mouse moves over the element.
6367
+ */
6368
+ title: {
6369
+ type: String,
6370
+ reflect: true
6371
+ },
6372
+
6373
+ /**
6374
+ * The type of the button. Possible values are: `submit`, `reset`, `button`.
6375
+ */
6376
+ type: {
6377
+ type: String,
6378
+ reflect: true
6379
+ },
6380
+
6381
+ /**
6382
+ * Defines the value associated with the button which is submitted with the form data.
6383
+ */
6384
+ value: {
6385
+ type: String,
6386
+ reflect: true
6387
+ },
6388
+
6389
+ /**
6390
+ * Sets button variant option.
6391
+ * @default primary
6392
+ */
6393
+ variant: {
6394
+ type: String,
6395
+ reflect: true
6396
+ },
6397
+
6398
+ /**
6399
+ * @private
6400
+ */
6401
+ buttonHref: {
6402
+ type: String,
6403
+ },
6404
+
6405
+ /**
6406
+ * @private
6407
+ */
6408
+ buttonTarget: {
6409
+ type: String,
6410
+ },
6411
+
6412
+ /**
6413
+ * @private
6414
+ */
6415
+ buttonRel: {
6416
+ type: String,
6417
+ },
6418
+ };
6419
+ }
6420
+
6421
+ /**
6422
+ * This will register this element with the browser.
6423
+ * @param {string} [name="auro-button"] - The name of element that you want to register to.
6424
+ *
6425
+ * @example
6426
+ * AuroButton.register("custom-button") // this will register this element to <custom-button/>
6427
+ *
6428
+ */
6429
+ static register(name = "auro-button") {
6430
+ AuroLibraryRuntimeUtils$2.prototype.registerComponent(name, AuroButton);
6431
+ }
6432
+
6433
+ /**
6434
+ * Internal method to apply focus to the HTML5 button.
6435
+ * @private
6436
+ * @returns {void}
6437
+ */
6438
+ focus() {
6439
+ this.renderRoot.querySelector('button').focus();
6440
+ }
6441
+
6442
+ /**
6443
+ * Submits the form that this button is associated with.
6444
+ * @private
6445
+ * @returns {void}
6446
+ */
6447
+ surfaceSubmitEvent() {
6448
+ if (this.form) {
6449
+ this.form.requestSubmit();
6450
+ }
6451
+ }
5245
6452
 
5246
6453
  /**
5247
- * 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.
5248
- * @param {Object} elem - The element to check.
5249
- * @param {String} tagName - The name of the Auro component to check for or add as an attribute.
5250
- * @returns {void}
6454
+ * Returns the form element that this button is associated with.
6455
+ * @private
6456
+ * @returns {HTMLFormElement | null}
5251
6457
  */
5252
- handleComponentTagRename(elem, tagName) {
5253
- const tag = tagName.toLowerCase();
5254
- const elemTag = elem.tagName.toLowerCase();
6458
+ get form() {
6459
+ return this.internals ? this.internals.form : null;
6460
+ }
5255
6461
 
5256
- if (elemTag !== tag) {
5257
- elem.setAttribute(tag, true);
5258
- }
6462
+ /**
6463
+ * @private
6464
+ * @returns {Boolean}
6465
+ */
6466
+ get showText() {
6467
+ return !ICON_ONLY_SHAPES.includes(this.shape);
5259
6468
  }
5260
6469
 
5261
6470
  /**
5262
- * Validates if an element is a specific Auro component.
5263
- * @param {Object} elem - The element to validate.
5264
- * @param {String} tagName - The name of the Auro component to check against.
5265
- * @returns {Boolean} - Returns true if the element is the specified Auro component.
6471
+ * Returns the current value of the projected `aria-label` attribute or undefined if not set.
6472
+ * @returns {string | undefined}
6473
+ * @private
5266
6474
  */
5267
- elementMatch(elem, tagName) {
5268
- const tag = tagName.toLowerCase();
5269
- const elemTag = elem.tagName.toLowerCase();
6475
+ get currentAriaLabel() {
6476
+ if (!this.attributeWatcher) return undefined;
5270
6477
 
5271
- return elemTag === tag || elem.hasAttribute(tag);
6478
+ const ariaLabel = this.attributeWatcher.getObservedAttribute("aria-label");
6479
+ return ariaLabel || undefined;
5272
6480
  }
5273
- };
5274
6481
 
5275
- // Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
5276
- // See LICENSE in the project root for license information.
6482
+ /**
6483
+ * Returns the current value of the projected `aria-labelledby` attribute or undefined if not set.
6484
+ * @returns {string | undefined}
6485
+ * @private
6486
+ */
6487
+ get currentAriaLabelledBy() {
6488
+ if (!this.attributeWatcher) return undefined;
5277
6489
 
6490
+ const ariaLabelledBy = this.attributeWatcher.getObservedAttribute("aria-labelledby");
6491
+ return ariaLabelledBy || undefined;
6492
+ }
5278
6493
 
5279
- class AuroDependencyVersioning {
6494
+ /**
6495
+ * Whether or not the button is set to an icon-only shape.
6496
+ * @returns {boolean} - True if the button is icon-only, false otherwise.
6497
+ * @private
6498
+ */
6499
+ get iconOnly() {
6500
+ return ICON_ONLY_SHAPES.includes(this.shape);
6501
+ }
5280
6502
 
5281
6503
  /**
5282
- * Generates a unique string to be used for child auro element naming.
6504
+ * Gets a class name for the font size based on the button's size and shape.
6505
+ * @returns {string} - The font size class name.
5283
6506
  * @private
5284
- * @param {string} baseName - Defines the first part of the unique element name.
5285
- * @param {string} version - Version of the component that will be appended to the baseName.
5286
- * @returns {string} - Unique string to be used for naming.
5287
6507
  */
5288
- generateElementName(baseName, version) {
5289
- let result = baseName;
6508
+ getFontSize() {
5290
6509
 
5291
- result += '-';
5292
- result += version.replace(/[.]/g, '_');
6510
+ // Size map for standard buttons
6511
+ const standardButtonSizeMap = {
6512
+ xs: 'body-xs',
6513
+ sm: 'body-sm',
6514
+ md: 'body-default',
6515
+ lg: 'body-lg',
6516
+ xl: 'body-lg'
6517
+ };
5293
6518
 
5294
- return result;
6519
+ // Size map for icon-only buttons
6520
+ const iconOnlyButtonSizeMap = {
6521
+ xs: 'heading-xs',
6522
+ sm: 'heading-sm',
6523
+ md: 'heading-sm',
6524
+ lg: 'heading-md',
6525
+ xl: 'heading-lg'
6526
+ };
6527
+
6528
+ // Determine which map to use based on the shape
6529
+ const sizeMap = this.iconOnly ? iconOnlyButtonSizeMap : standardButtonSizeMap;
6530
+
6531
+ // Return the font size based on the button size and shape
6532
+ return sizeMap[this.size] || 'body-default';
5295
6533
  }
5296
6534
 
5297
6535
  /**
5298
- * Generates a unique string to be used for child auro element naming.
5299
- * @param {string} baseName - Defines the first part of the unique element name.
5300
- * @param {string} version - Version of the component that will be appended to the baseName.
5301
- * @returns {string} - Unique string to be used for naming.
6536
+ * Renders the default layout for the button.
6537
+ * @returns {TemplateResult}
6538
+ * @private
5302
6539
  */
5303
- generateTag(baseName, version, tagClass) {
5304
- const elementName = this.generateElementName(baseName, version);
5305
- const tag = i`${s(elementName)}`;
6540
+ renderLayoutDefault() {
5306
6541
 
5307
- if (!customElements.get(elementName)) {
5308
- customElements.define(elementName, class extends tagClass {});
5309
- }
6542
+ const fontSize = this.getFontSize();
6543
+ const tag = this.buttonHref ? i`a` : i`button`;
6544
+ const part = this.buttonHref ? 'link' : 'button';
5310
6545
 
5311
- return tag;
6546
+ const classes = {
6547
+ "auro-button": true,
6548
+ "inset": this.showText,
6549
+ wrapper: true,
6550
+ loading: this.loading,
6551
+ [`${fontSize}`]: true,
6552
+
6553
+ // These remove the default borders so we can handle focus borders ourselves
6554
+ 'simple': !['secondary'].includes(this.variant),
6555
+ 'thin': ['secondary'].includes(this.variant),
6556
+ };
6557
+
6558
+ const contentClasses = {
6559
+ "contentWrapper": true,
6560
+ "util_displayHiddenVisually": this.loading
6561
+ };
6562
+
6563
+ return u`
6564
+ <${tag}
6565
+ part="${part}"
6566
+ aria-label="${o(this.loading ? this.loadingText : this.currentAriaLabel || undefined)}"
6567
+ aria-labelledby="${o(this.loading ? undefined : this.currentAriaLabelledBy || undefined)}"
6568
+ tabindex="${o(this.tIndex || this.tabindex)}"
6569
+ ?autofocus="${this.autofocus}"
6570
+ class=${e(classes)}
6571
+ ?disabled="${this.disabled || this.loading}"
6572
+ ?onDark="${this.onDark}"
6573
+ title="${o(this.title ? this.title : undefined)}"
6574
+ name="${o(this.name ? this.name : undefined)}"
6575
+ type="${o(this.type ? this.type : undefined)}"
6576
+ variant="${o(this.variant ? this.variant : undefined)}"
6577
+ .value="${o(this.value ? this.value : undefined)}"
6578
+ @click="${this.type === 'submit' ? this.surfaceSubmitEvent : undefined}"
6579
+ href="${o(this.buttonHref || undefined)}"
6580
+ target="${o(this.buttonTarget || undefined)}"
6581
+ rel="${o(this.buttonRel || undefined)}"
6582
+ >
6583
+ ${o(this.loading ? u`<${this.loaderTag} pulse part="loader"></${this.loaderTag}>` : undefined)}
6584
+
6585
+ <span class="${e(contentClasses)}">
6586
+ <span class="textSlot" part="text">
6587
+ <slot></slot>
6588
+ </span>
6589
+ </span>
6590
+ </${tag}>
6591
+ `;
6592
+ }
6593
+
6594
+ /**
6595
+ * Renders the layout of the button.
6596
+ * @returns {TemplateResult}
6597
+ * @private
6598
+ */
6599
+ renderLayout() {
6600
+ return this.renderLayoutDefault();
5312
6601
  }
5313
6602
  }
5314
6603
 
6604
+ var buttonVersion = '11.3.0';
6605
+
5315
6606
  // Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
5316
6607
  // See LICENSE in the project root for license information.
5317
6608
 
@@ -5322,7 +6613,7 @@ class AuroDependencyVersioning {
5322
6613
  * @attr {Boolean} hiddenAudible - If present, the component will be hidden from screen readers, but seen visually
5323
6614
  */
5324
6615
 
5325
- let AuroElement$1 = class AuroElement extends i$2 {
6616
+ let AuroElement$2 = class AuroElement extends i$2 {
5326
6617
 
5327
6618
  // function to define props used within the scope of this component
5328
6619
  static get properties() {
@@ -5390,7 +6681,7 @@ var styleCss$1$1 = i$5`:focus:not(:focus-visible){outline:3px solid transparent}
5390
6681
  */
5391
6682
 
5392
6683
  // build the component class
5393
- let BaseIcon$1 = class BaseIcon extends AuroElement$1 {
6684
+ let BaseIcon$1 = class BaseIcon extends AuroElement$2 {
5394
6685
  constructor() {
5395
6686
  super();
5396
6687
  this.onDark = false;
@@ -5473,7 +6764,7 @@ var colorCss$4 = i$5`:host{color:var(--ds-auro-icon-color)}:host([customColor]){
5473
6764
 
5474
6765
  /* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
5475
6766
 
5476
- let AuroLibraryRuntimeUtils$2 = class AuroLibraryRuntimeUtils {
6767
+ let AuroLibraryRuntimeUtils$3 = class AuroLibraryRuntimeUtils {
5477
6768
 
5478
6769
  /* eslint-disable jsdoc/require-param */
5479
6770
 
@@ -5555,7 +6846,7 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
5555
6846
  */
5556
6847
  privateDefaults() {
5557
6848
  this.uri = 'https://cdn.jsdelivr.net/npm/@alaskaairux/icons@latest/dist';
5558
- this.runtimeUtils = new AuroLibraryRuntimeUtils$2();
6849
+ this.runtimeUtils = new AuroLibraryRuntimeUtils$3();
5559
6850
  }
5560
6851
 
5561
6852
  // function to define props used within the scope of this component
@@ -5583,7 +6874,8 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
5583
6874
  * Allows custom color to be set.
5584
6875
  */
5585
6876
  customColor: {
5586
- type: Boolean
6877
+ type: Boolean,
6878
+ reflect: true
5587
6879
  },
5588
6880
 
5589
6881
  /**
@@ -5637,7 +6929,7 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
5637
6929
  *
5638
6930
  */
5639
6931
  static register(name = "auro-icon") {
5640
- AuroLibraryRuntimeUtils$2.prototype.registerComponent(name, AuroIcon);
6932
+ AuroLibraryRuntimeUtils$3.prototype.registerComponent(name, AuroIcon);
5641
6933
  }
5642
6934
 
5643
6935
  connectedCallback() {
@@ -5658,8 +6950,12 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
5658
6950
  async firstUpdated() {
5659
6951
  await super.firstUpdated();
5660
6952
 
5661
- // Removes the SVG description for screenreader if ariaHidden is set to true
5662
- if (!this.hasAttribute('ariaHidden') && this.svg) {
6953
+ /**
6954
+ * icons provide a description for screen readers. Icon only instances Auro-button
6955
+ * depend on this description to provide context for the user using a screen reader.
6956
+ * Removes the SVG description for screen reader if ariaHidden is set to true.
6957
+ */
6958
+ if (this.hasAttribute('ariaHidden') && this.svg) {
5663
6959
  const svgDesc = this.svg.querySelector('desc');
5664
6960
 
5665
6961
  if (svgDesc) {
@@ -5703,9 +6999,9 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
5703
6999
  }
5704
7000
  };
5705
7001
 
5706
- var iconVersion$1 = '8.0.3';
7002
+ var iconVersion$1 = '8.1.1';
5707
7003
 
5708
- 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)}`;
7004
+ 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)}`;
5709
7005
 
5710
7006
  // Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
5711
7007
  // See LICENSE in the project root for license information.
@@ -5715,13 +7011,12 @@ var styleCss$5 = i$5`.heading{margin:1.75rem 0;letter-spacing:var(--ds-text-head
5715
7011
  * The auro-header component is a custom element to make using headers with the Auro Design System seamless and easy.
5716
7012
  *
5717
7013
  * @attr {Boolean} no-margin-block - if declared, margin-block will be set to `0`
5718
- * @attr {String} level - Determines heading level for HTML element. Options are `1` - `6`
5719
- * @attr {String} display - Determines presentation of header. Options are `display`, `800`, `700`, `600`, `500`, `400`, `300`.
5720
7014
  * @attr {String} color - Allows user to pass in CSS custom property or direct hex value to change the color of the header
7015
+ * @attr {String} display - Determines the visual appearance of the header. Options are `display`, `800`, `700`, `600`, `500`, `400`, `300`.
7016
+ * @attr {String} level - Determines the semantic heading level of the HTML element. Options are `1` - `6`
5721
7017
  * @attr {String} margin - Specify the margin(s) to be altered. Options are `top`, `bottom`, or `both`.
5722
7018
  * @attr {String} size - Specify size of margin adjustment, either `none`, `25`, `50`, `100`, `150`, `200`, `300`, `400`, `600` or `800`.
5723
7019
  */
5724
-
5725
7020
  /* eslint complexity: ["error", 21] */
5726
7021
 
5727
7022
  // build the component class
@@ -5734,7 +7029,7 @@ class AuroHeader extends i$2 {
5734
7029
  /**
5735
7030
  * @private
5736
7031
  */
5737
- this.runtimeUtils = new AuroLibraryRuntimeUtils$1$1();
7032
+ this.runtimeUtils = new AuroLibraryRuntimeUtils$2();
5738
7033
  }
5739
7034
 
5740
7035
  // function to define props used within the scope of this component
@@ -5755,6 +7050,22 @@ class AuroHeader extends i$2 {
5755
7050
  return [styleCss$5];
5756
7051
  }
5757
7052
 
7053
+ /**
7054
+ * Mapping of display values to their corresponding CSS classes
7055
+ * @private
7056
+ */
7057
+ static get displayClassMap() {
7058
+ return {
7059
+ 'display': 'heading-xl',
7060
+ '800': 'heading-xl',
7061
+ '700': 'heading-lg',
7062
+ '600': 'heading-md',
7063
+ '500': 'heading-sm',
7064
+ '400': 'heading-xs',
7065
+ '300': 'heading-2xs'
7066
+ };
7067
+ }
7068
+
5758
7069
  /**
5759
7070
  * This will register this element with the browser.
5760
7071
  * @param {string} [name="auro-header"] - The name of element that you want to register to.
@@ -5764,7 +7075,7 @@ class AuroHeader extends i$2 {
5764
7075
  *
5765
7076
  */
5766
7077
  static register(name = "auro-header") {
5767
- AuroLibraryRuntimeUtils$1$1.prototype.registerComponent(name, AuroHeader);
7078
+ AuroLibraryRuntimeUtils$2.prototype.registerComponent(name, AuroHeader);
5768
7079
  }
5769
7080
 
5770
7081
  firstUpdated() {
@@ -5831,23 +7142,42 @@ class AuroHeader extends i$2 {
5831
7142
  this.display = 'display';
5832
7143
  }
5833
7144
 
5834
- switch (level) {
5835
- 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>`;
5836
- 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>`;
5837
- 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>`;
5838
- 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>`;
5839
- 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>`;
5840
- default: return x`<h1 class="heading heading--${this.display} ${this.spacingDecision(this.size)}" style="color: ${o(this.color ? this.color : undefined)}"><slot></slot></h1>`;
7145
+ const headingLevel = level || '1';
7146
+ const spacingClasses = this.spacingDecision(this.size);
7147
+
7148
+ // Get the CSS class based on the display prop
7149
+ const headingClass = AuroHeader.displayClassMap[this.display];
7150
+
7151
+ const classObject = {
7152
+ 'heading': true,
7153
+ [`heading--${this.display}`]: true,
7154
+ [headingClass]: true
7155
+ };
7156
+
7157
+ // Add spacing classes to the class object if they exist
7158
+ if (spacingClasses) {
7159
+ const spacingClassArray = spacingClasses.split(' ');
7160
+ spacingClassArray.forEach(cls => {
7161
+ if (cls.trim()) {
7162
+ classObject[cls.trim()] = true;
7163
+ }
7164
+ });
5841
7165
  }
7166
+
7167
+ const headerClasses = e(classObject);
7168
+
7169
+ // unsafeStatic dynamically creates tag names at runtime
7170
+ const tag = s(`h${headingLevel}`);
7171
+ return u`<${tag} class="${headerClasses}" style="color: ${o(this.color ? this.color : undefined)}"><slot></slot></${tag}>`;
5842
7172
  }
7173
+
5843
7174
  // function that renders the HTML and CSS into the scope of the component
5844
-
5845
7175
  render() {
5846
7176
  return this.template(this.level);
5847
7177
  }
5848
7178
  }
5849
7179
 
5850
- var headerVersion = '4.0.1';
7180
+ var headerVersion = '4.0.2';
5851
7181
 
5852
7182
  // Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
5853
7183
  // See LICENSE in the project root for license information.
@@ -5860,17 +7190,30 @@ class AuroBibtemplate extends i$2 {
5860
7190
 
5861
7191
  this.large = false;
5862
7192
 
5863
- AuroLibraryRuntimeUtils$1$1.prototype.handleComponentTagRename(this, 'auro-bibtemplate');
7193
+ AuroLibraryRuntimeUtils$2.prototype.handleComponentTagRename(this, 'auro-bibtemplate');
5864
7194
 
5865
7195
  const versioning = new AuroDependencyVersioning();
7196
+
7197
+ /**
7198
+ * @private
7199
+ */
5866
7200
  this.iconTag = versioning.generateTag('auro-formkit-bibtemplate-icon', iconVersion$1, AuroIcon$1);
7201
+
7202
+ /**
7203
+ * @private
7204
+ */
5867
7205
  this.headerTag = versioning.generateTag('auro-formkit-bibtemplate-header', headerVersion, AuroHeader);
7206
+
7207
+ /**
7208
+ * @private
7209
+ */
7210
+ this.buttonTag = versioning.generateTag('auro-formkit-bibtemplate-button', buttonVersion, AuroButton);
5868
7211
  }
5869
7212
 
5870
7213
  static get styles() {
5871
7214
  return [
5872
- colorCss$1$1,
5873
- styleCss$2$1,
7215
+ colorCss$3$1,
7216
+ styleCss$4$1,
5874
7217
  tokenCss
5875
7218
  ];
5876
7219
  }
@@ -5899,7 +7242,7 @@ class AuroBibtemplate extends i$2 {
5899
7242
  *
5900
7243
  */
5901
7244
  static register(name = "auro-bibtemplate") {
5902
- AuroLibraryRuntimeUtils$1$1.prototype.registerComponent(name, AuroBibtemplate);
7245
+ AuroLibraryRuntimeUtils$2.prototype.registerComponent(name, AuroBibtemplate);
5903
7246
  }
5904
7247
 
5905
7248
  /**
@@ -5957,13 +7300,16 @@ class AuroBibtemplate extends i$2 {
5957
7300
  <div id="bibTemplate" part="bibtemplate">
5958
7301
  ${this.isFullscreen ? u`
5959
7302
  <div id="headerContainer">
5960
- <button id="closeButton" @click="${this.onCloseButtonClick}">
5961
- <${this.iconTag} category="interface" name="x-lg"></${this.iconTag}>
5962
- </button>
5963
- <${this.headerTag} display="${this.large ? 'display' : '600'}" level="3" size="none" id="header" no-margin-block>
5964
- <slot name="header"></slot>
5965
- </${this.headerTag}>
5966
- <span id="subheader">
7303
+ <div class="titleRow">
7304
+ <${this.headerTag} class="header" display="${this.large ? 'display' : '600'}" level="3" size="none" id="header" no-margin-block>
7305
+ <slot name="header"></slot>
7306
+ </${this.headerTag}>
7307
+ <${this.buttonTag} id="closeButton" variant="ghost" shape="circle" size="sm" @click="${this.onCloseButtonClick}">
7308
+ <span><slot name="ariaLabel.close">Close</slot></span>
7309
+ <${this.iconTag} aria-hidden="true" category="interface" name="x-lg"></${this.iconTag}>
7310
+ </${this.buttonTag}>
7311
+ </div>
7312
+ <span class="subheader">
5967
7313
  <slot name="subheader"></slot>
5968
7314
  </span>
5969
7315
  </div>` : null}
@@ -5985,7 +7331,7 @@ var bibTemplateVersion = '1.0.0';
5985
7331
 
5986
7332
  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)}`;
5987
7333
 
5988
- 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}`;
7334
+ 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}`;
5989
7335
 
5990
7336
  var tokensCss$2 = i$5`:host{--ds-auro-helptext-color: var(--ds-basic-color-texticon-muted, #676767)}`;
5991
7337
 
@@ -6065,8 +7411,6 @@ let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
6065
7411
 
6066
7412
  /**
6067
7413
  * Displays help text or error messages within form elements - Internal Use Only.
6068
- *
6069
- * @attr { Boolean } large - If declared, make font-size to 1rem(16px).
6070
7414
  */
6071
7415
  class AuroHelpText extends i$2 {
6072
7416
 
@@ -6182,7 +7526,7 @@ class AuroHelpText extends i$2 {
6182
7526
  // function that renders the HTML and CSS into the scope of the component
6183
7527
  render() {
6184
7528
  return x`
6185
- <div class="helptext-wrapper" ?visible="${this.hasTextContent}">
7529
+ <div class="helptext-wrapper body-xs" ?visible="${this.hasTextContent}">
6186
7530
  <slot @slotchange=${this.handleSlotChange}></slot>
6187
7531
  </div>
6188
7532
  `;
@@ -6191,68 +7535,7 @@ class AuroHelpText extends i$2 {
6191
7535
 
6192
7536
  var helpTextVersion = '1.0.0';
6193
7537
 
6194
- 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)}`;
6195
-
6196
- 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)}`;
6197
-
6198
- 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)}`;
6199
-
6200
- // Copyright (c) 2021 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
6201
- // See LICENSE in the project root for license information.
6202
-
6203
- // ---------------------------------------------------------------------
6204
-
6205
- /**
6206
- * Converts value to an array.
6207
- * If the value is a JSON string representing an array, it will be parsed.
6208
- * If the value is already an array, it is returned.
6209
- * If the value is undefined, it returns undefined.
6210
- * @private
6211
- * @param {any} value - The value to be converted. Can be a string, array, or undefined.
6212
- * @returns {Array|undefined} - The converted array or undefined.
6213
- * @throws {Error} - Throws an error if the value is not an array, undefined,
6214
- * or if the value cannot be parsed into an array from a JSON string.
6215
- */
6216
- function arrayConverter(value) {
6217
- // Allow undefined
6218
- if (value === undefined) {
6219
- return undefined;
6220
- }
6221
-
6222
- // Return the value if it is already an array
6223
- if (Array.isArray(value)) {
6224
- return value;
6225
- }
6226
-
6227
- try {
6228
- // If value is a JSON string, parse it
6229
- const parsed = typeof value === 'string' ? JSON.parse(value) : value;
6230
-
6231
- // Check if the parsed value is an array
6232
- if (Array.isArray(parsed)) {
6233
- return parsed;
6234
- }
6235
- } catch (error) {
6236
- // If JSON parsing fails, continue to throw an error below
6237
- /* eslint-disable no-console */
6238
- console.error('JSON parsing failed:', error);
6239
- }
6240
-
6241
- // Throw error if the input is not an array or undefined
6242
- throw new Error('Invalid value: Input must be an array or undefined');
6243
- }
6244
-
6245
- 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}`;
6246
-
6247
- 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)}`;
6248
-
6249
- 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}`;
6250
-
6251
- 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)}`;
6252
-
6253
- 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)}`;
6254
-
6255
- var styleCss$3 = i$5`.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock{display:block}.util_displayFlex{display:flex}.util_displayHidden{display:none}.util_displayHiddenVisually{position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}[auro-dropdown]{--ds-auro-dropdown-trigger-border-color: var(--ds-auro-select-border-color);--ds-auro-dropdown-trigger-background-color: var(--ds-auro-select-background-color);--ds-auro-dropdown-trigger-container-color: var(--ds-auro-select-background-color)}.mainContent{position:relative;display:flex;flex:1;flex-direction:column;align-items:center;justify-content:center}.valueContainer [slot=displayValue]{display:none}.accents{display:flex;flex-direction:row;align-items:center;justify-content:center}::slotted([slot=typeIcon]){margin-right:8px}.displayValue{display:block}.displayValue:not(.force){display:none}.displayValue:not(.force).hasContent:is(.withValue):not(.hasFocus){display:block}.triggerContent{display:flex;width:100%;align-items:center;justify-content:center;padding:0 8px 0 24px}.layout-emphasized .triggerContent,.layout-snowflake .triggerContent{display:flex;width:100%;align-items:center;justify-content:center;padding:0 8px 0 24px}.layout-classic .triggerContent{display:flex;width:100%;align-items:center;justify-content:center;padding:0 8px 0 24px}:host(:is([validity]:not([validity=valid]))) [auro-dropdown]{--ds-auro-select-border-color: var(--ds-basic-color-status-error, #e31f26);--ds-auro-dropdown-helptext-text-color: var(--ds-basic-color-texticon-default, #2a2a2a)}:host([ondark]:is([validity]:not([validity=valid]))) [auro-dropdown]{--ds-auro-select-border-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8);--ds-auro-dropdown-helptext-text-color: var(--ds-basic-color-texticon-inverse, #ffffff)}#slotHolder{display:none}:host([disabled]) *{user-select:none}`;
7538
+ var styleCss$3 = i$5`.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock{display:block}.util_displayFlex{display:flex}.util_displayHidden{display:none}.util_displayHiddenVisually{position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}.body-default{font-size:var(--wcss-body-default-font-size, 1rem);line-height:var(--wcss-body-default-line-height, 1.5)}.body-default,.body-lg{font-family:var(--wcss-body-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-lg{font-size:var(--wcss-body-lg-font-size, 1.125rem);line-height:var(--wcss-body-lg-line-height, 1.63)}.body-sm{font-size:var(--wcss-body-sm-font-size, 0.875rem);line-height:var(--wcss-body-sm-line-height, 1.25)}.body-sm,.body-xs{font-family:var(--wcss-body-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-xs{font-size:var(--wcss-body-xs-font-size, 0.75rem);line-height:var(--wcss-body-xs-line-height, 1)}.body-2xs{font-family:var(--wcss-body-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-body-2xs-font-size, 0.625rem);font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0);line-height:var(--wcss-body-2xs-line-height, 0.88)}.display-2xl{font-family:var(--wcss-display-2xl-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-2xl-font-size, clamp(3.5rem, 6vw, 5.375rem));font-weight:var(--wcss-display-2xl-weight, 300);letter-spacing:var(--wcss-display-2xl-letter-spacing, 0);line-height:var(--wcss-display-2xl-line-height, 1.3)}.display-xl{font-family:var(--wcss-display-xl-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-xl-font-size, clamp(3rem, 5.3333333333vw, 4.5rem));font-weight:var(--wcss-display-xl-weight, 300);letter-spacing:var(--wcss-display-xl-letter-spacing, 0);line-height:var(--wcss-display-xl-line-height, 1.3)}.display-lg{font-family:var(--wcss-display-lg-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-lg-font-size, clamp(2.75rem, 4.6666666667vw, 4rem));font-weight:var(--wcss-display-lg-weight, 300);letter-spacing:var(--wcss-display-lg-letter-spacing, 0);line-height:var(--wcss-display-lg-line-height, 1.3)}.display-md{font-family:var(--wcss-display-md-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-md-font-size, clamp(2.5rem, 4vw, 3.5rem));font-weight:var(--wcss-display-md-weight, 300);letter-spacing:var(--wcss-display-md-letter-spacing, 0);line-height:var(--wcss-display-md-line-height, 1.3)}.display-sm{font-family:var(--wcss-display-sm-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-sm-font-size, clamp(2rem, 3.6666666667vw, 3rem));font-weight:var(--wcss-display-sm-weight, 300);letter-spacing:var(--wcss-display-sm-letter-spacing, 0);line-height:var(--wcss-display-sm-line-height, 1.3)}.display-xs{font-family:var(--wcss-display-xs-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-xs-font-size, clamp(1.75rem, 3vw, 2.375rem));font-weight:var(--wcss-display-xs-weight, 300);letter-spacing:var(--wcss-display-xs-letter-spacing, 0);line-height:var(--wcss-display-xs-line-height, 1.3)}.heading-xl{font-family:var(--wcss-heading-xl-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-xl-font-size, clamp(2rem, 3vw, 2.5rem));font-weight:var(--wcss-heading-xl-weight, 300);letter-spacing:var(--wcss-heading-xl-letter-spacing, 0);line-height:var(--wcss-heading-xl-line-height, 1.3)}.heading-lg{font-family:var(--wcss-heading-lg-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-lg-font-size, clamp(1.75rem, 2.6666666667vw, 2.25rem));font-weight:var(--wcss-heading-lg-weight, 300);letter-spacing:var(--wcss-heading-lg-letter-spacing, 0);line-height:var(--wcss-heading-lg-line-height, 1.3)}.heading-md{font-family:var(--wcss-heading-md-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-md-font-size, clamp(1.625rem, 2.3333333333vw, 1.75rem));font-weight:var(--wcss-heading-md-weight, 300);letter-spacing:var(--wcss-heading-md-letter-spacing, 0);line-height:var(--wcss-heading-md-line-height, 1.3)}.heading-sm{font-family:var(--wcss-heading-sm-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-sm-font-size, clamp(1.375rem, 2vw, 1.5rem));font-weight:var(--wcss-heading-sm-weight, 300);letter-spacing:var(--wcss-heading-sm-letter-spacing, 0);line-height:var(--wcss-heading-sm-line-height, 1.3)}.heading-xs{font-family:var(--wcss-heading-xs-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-xs-font-size, clamp(1.25rem, 1.6666666667vw, 1.25rem));font-weight:var(--wcss-heading-xs-weight, 450);letter-spacing:var(--wcss-heading-xs-letter-spacing, 0);line-height:var(--wcss-heading-xs-line-height, 1.3)}.heading-2xs{font-family:var(--wcss-heading-2xs-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-2xs-font-size, clamp(1.125rem, 1.5vw, 1.125rem));font-weight:var(--wcss-heading-2xs-weight, 450);letter-spacing:var(--wcss-heading-2xs-letter-spacing, 0);line-height:var(--wcss-heading-2xs-line-height, 1.3)}.accent-2xl{font-family:var(--wcss-accent-2xl-family, "Good OT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-2xl-font-size, clamp(2rem, 3.1666666667vw, 2.375rem));font-weight:var(--wcss-accent-2xl-weight, 450);letter-spacing:var(--wcss-accent-2xl-letter-spacing, 0.05em);line-height:var(--wcss-accent-2xl-line-height, 1)}.accent-2xl,.accent-xl{text-transform:uppercase}.accent-xl{font-family:var(--wcss-accent-xl-family, "Good OT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-xl-font-size, clamp(1.625rem, 2.3333333333vw, 2rem));font-weight:var(--wcss-accent-xl-weight, 450);letter-spacing:var(--wcss-accent-xl-letter-spacing, 0.05em);line-height:var(--wcss-accent-xl-line-height, 1.3)}.accent-lg{font-family:var(--wcss-accent-lg-family, "Good OT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-lg-font-size, clamp(1.5rem, 2.1666666667vw, 1.75rem));font-weight:var(--wcss-accent-lg-weight, 450);letter-spacing:var(--wcss-accent-lg-letter-spacing, 0.05em);line-height:var(--wcss-accent-lg-line-height, 1.3)}.accent-lg,.accent-md{text-transform:uppercase}.accent-md{font-family:var(--wcss-accent-md-family, "Good OT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-md-font-size, clamp(1.375rem, 1.8333333333vw, 1.5rem));font-weight:var(--wcss-accent-md-weight, 500);letter-spacing:var(--wcss-accent-md-letter-spacing, 0.05em);line-height:var(--wcss-accent-md-line-height, 1.3)}.accent-sm{font-family:var(--wcss-accent-sm-family, "Good OT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-sm-font-size, clamp(1.125rem, 1.5vw, 1.25rem));font-weight:var(--wcss-accent-sm-weight, 500);letter-spacing:var(--wcss-accent-sm-letter-spacing, 0.05em);line-height:var(--wcss-accent-sm-line-height, 1.3)}.accent-sm,.accent-xs{text-transform:uppercase}.accent-xs{font-family:var(--wcss-accent-xs-family, "Good OT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-xs-font-size, clamp(1rem, 1.3333333333vw, 1rem));font-weight:var(--wcss-accent-xs-weight, 500);letter-spacing:var(--wcss-accent-xs-letter-spacing, 0.1em);line-height:var(--wcss-accent-xs-line-height, 1.3)}.accent-2xs{font-family:var(--wcss-accent-2xs-family, "Good OT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-2xs-font-size, clamp(0.875rem, 1.1666666667vw, 0.875rem));font-weight:var(--wcss-accent-2xs-weight, 450);letter-spacing:var(--wcss-accent-2xs-letter-spacing, 0.1em);line-height:var(--wcss-accent-2xs-line-height, 1.3);text-transform:uppercase}[auro-dropdown]{--ds-auro-dropdown-trigger-border-color: var(--ds-auro-select-border-color);--ds-auro-dropdown-trigger-background-color: var(--ds-auro-select-background-color);--ds-auro-dropdown-trigger-container-color: var(--ds-auro-select-background-color)}:host{display:inline-block}:host([layout*=emphasized]) [auro-dropdown],:host([layout*=snowflake]) [auro-dropdown]{--ds-auro-select-border-color: transparent}:host([layout*=emphasized]) .mainContent,:host([layout*=snowflake]) .mainContent{text-align:center}.mainContent{position:relative;display:flex;overflow:hidden;flex:1;flex-direction:column;align-items:center;justify-content:center}.valueContainer [slot=displayValue]{display:none}.accents{display:flex;flex-direction:row;align-items:center;justify-content:center}::slotted([slot=typeIcon]){margin-right:var(--ds-size-100, 0.5rem)}.displayValue{display:block}.displayValue:not(.force){display:none}.displayValue:not(.force).hasContent:is(.withValue):not(.hasFocus){display:block}.triggerContent{display:flex;width:100%;align-items:center;justify-content:center}:host([layout*=emphasized]) .triggerContent,:host([layout*=snowflake]) .triggerContent{padding:0 var(--ds-size-100, 0.5rem) 0 var(--ds-size-300, 1.5rem)}:host([layout*=classic]) .triggerContent{padding:0 var(--ds-size-100, 0.5rem)}:host([layout*=classic]) .mainContent{align-items:start}:host([layout*=classic]) label{overflow:hidden;cursor:text;text-overflow:ellipsis;white-space:nowrap}:host([layout*=classic]) .value{height:auto}label{color:var(--ds-auro-select-label-text-color)}:host(:is([validity]:not([validity=valid]))) [auro-dropdown]{--ds-auro-select-border-color: var(--ds-basic-color-status-error, #e31f26);--ds-auro-dropdown-helptext-text-color: var(--ds-basic-color-texticon-default, #2a2a2a)}:host([ondark]:is([validity]:not([validity=valid]))) [auro-dropdown]{--ds-auro-select-border-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8);--ds-auro-dropdown-helptext-text-color: var(--ds-basic-color-texticon-inverse, #ffffff)}#slotHolder{display:none}:host([fluid]){width:100%}:host([disabled]){pointer-events:none;user-select:none}:host([disabled]:not([ondark])) [auro-dropdown]{--ds-auro-select-border-color: var(--ds-basic-color-border-subtle, #dddddd)}:host(:not([layout*=classic])[disabled][ondark]) [auro-dropdown]{--ds-auro-select-border-color: transparent}`;
6256
7539
 
6257
7540
  // Copyright (c) 2021 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
6258
7541
  // See LICENSE in the project root for license information.
@@ -6263,19 +7546,25 @@ var styleCss$3 = i$5`.util_displayInline{display:inline}.util_displayInlineBlock
6263
7546
  * The auro-select element is a wrapper for auro-dropdown and auro-menu to create a dropdown menu control.
6264
7547
  *
6265
7548
  * @slot - Default slot for the menu content.
7549
+ * @slot ariaLabel.bib.close - Sets aria-label on close button in fullscreen bib
6266
7550
  * @slot bib.fullscreen.headline - Defines the headline to display above menu-options
6267
7551
  * @slot label - Defines the content of the label.
7552
+ * @slot {HTMLSlotElement} optionalLabel - Allows overriding the optional display text "(optional)", which appears next to the label.
6268
7553
  * @slot helpText - Defines the content of the helpText.
6269
- * @slot placeholder - Defines the content of the placeholder to be shown when there is no value
6270
7554
  * @slot valueText - Dropdown value text display.
7555
+ * @slot displayValue - Allows custom HTML content to display the selected value when select is not focused.
6271
7556
  * @event auroSelect-valueSet - Notifies that the component has a new value set.
6272
7557
  * @event input - Notifies every time the value prop of the element is changed. The updated `value` and `optionSelected` will be delivered in `detail` object.
6273
7558
  * @event auroFormElement-validated - Notifies that the `validity` and `errorMessage` values have changed.
7559
+ *
7560
+ * @csspart dropdownTrigger - Apply CSS to the trigger content container.
7561
+ * @csspart dropdownChevron - Apply CSS to the collapsed/expanded state icon container.
7562
+ * @csspart dropdownSize - Apply size styles to the dropdown bib. (height, width, maxHeight, maxWidth only)
6274
7563
  * @csspart helpText - Apply CSS to the help text.
6275
7564
  */
6276
7565
 
6277
7566
  // build the component class
6278
- class AuroSelect extends AuroElement$3 {
7567
+ class AuroSelect extends AuroElement$4 {
6279
7568
  constructor() {
6280
7569
  super();
6281
7570
 
@@ -6285,12 +7574,7 @@ class AuroSelect extends AuroElement$3 {
6285
7574
  const idSubstrEnd = 8;
6286
7575
  const idSubstrStart = 2;
6287
7576
 
6288
- this.matchWidth = true;
6289
-
6290
- // Layout Config
6291
- this.layout = 'classic';
6292
- this.shape = 'classic';
6293
- this.size = 'xl';
7577
+ this.matchWidth = false;
6294
7578
 
6295
7579
  // floaterConfig
6296
7580
  this.placement = 'bottom-start';
@@ -6315,7 +7599,7 @@ class AuroSelect extends AuroElement$3 {
6315
7599
  /**
6316
7600
  * @private
6317
7601
  */
6318
- this.runtimeUtils = new AuroLibraryRuntimeUtils$4();
7602
+ this.runtimeUtils = new AuroLibraryRuntimeUtils$5();
6319
7603
 
6320
7604
  /**
6321
7605
  * Generate unique names for dependency components.
@@ -6365,6 +7649,11 @@ class AuroSelect extends AuroElement$3 {
6365
7649
  this.fullscreenBreakpoint = 'sm';
6366
7650
  this.onDark = false;
6367
7651
  this.isPopoverVisible = false;
7652
+
7653
+ // Layout Config
7654
+ this.layout = 'classic';
7655
+ this.shape = 'classic';
7656
+ this.size = 'lg';
6368
7657
  }
6369
7658
 
6370
7659
  // This function is to define props used within the scope of this component
@@ -6406,6 +7695,14 @@ class AuroSelect extends AuroElement$3 {
6406
7695
  reflect: true
6407
7696
  },
6408
7697
 
7698
+ /**
7699
+ * When attribute is present, element will be 100% width of container element.
7700
+ */
7701
+ fluid: {
7702
+ type: Boolean,
7703
+ reflect: true
7704
+ },
7705
+
6409
7706
  /**
6410
7707
  * @private
6411
7708
  */
@@ -6430,14 +7727,6 @@ class AuroSelect extends AuroElement$3 {
6430
7727
  reflect: true
6431
7728
  },
6432
7729
 
6433
- /**
6434
- * If set, makes dropdown width match the size of the content, rather than the width of the trigger.
6435
- */
6436
- flexMenuWidth: {
6437
- type: Boolean,
6438
- reflect: true
6439
- },
6440
-
6441
7730
  /**
6442
7731
  * Defines the screen size breakpoint (`xs`, `sm`, `md`, `lg`, `xl`, `disabled`)
6443
7732
  * at which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.
@@ -6531,7 +7820,7 @@ class AuroSelect extends AuroElement$3 {
6531
7820
  * "top" | "right" | "bottom" | "left" |
6532
7821
  * "bottom-start" | "top-start" | "top-end" |
6533
7822
  * "right-start" | "right-end" | "bottom-end" |
6534
- * "left-start" | "left-end"
7823
+ * "left-start" | "left-end".
6535
7824
  * @default bottom-start
6536
7825
  */
6537
7826
  placement: {
@@ -6539,6 +7828,14 @@ class AuroSelect extends AuroElement$3 {
6539
7828
  reflect: true
6540
7829
  },
6541
7830
 
7831
+ /**
7832
+ * Define custom placeholder text.
7833
+ */
7834
+ placeholder: {
7835
+ type: String,
7836
+ reflect: true
7837
+ },
7838
+
6542
7839
  /**
6543
7840
  * Populates the `required` attribute on the element. Used for client-side validation.
6544
7841
  */
@@ -6585,11 +7882,12 @@ class AuroSelect extends AuroElement$3 {
6585
7882
  },
6586
7883
 
6587
7884
  /**
6588
- * Value selected for the component. Default type is `String`, changing to `Array<String>` when `multiSelect` is true.
6589
- * @type {String|Array<String>}
7885
+ * Value selected for the component.
6590
7886
  */
6591
7887
  value: {
6592
- type: Object
7888
+ type: String,
7889
+ reflect: true,
7890
+ attribute: 'value'
6593
7891
  },
6594
7892
 
6595
7893
  /**
@@ -6642,14 +7940,76 @@ class AuroSelect extends AuroElement$3 {
6642
7940
  }
6643
7941
 
6644
7942
  /**
6645
- * Returns classmap configuration for wrapper elements in each layout.
7943
+ * Formatted value based on `multiSelect` state.
7944
+ * Default type is `String`, changing to `Array<String>` when `multiSelect` is true.
6646
7945
  * @private
6647
- * @returns {object} - Returns classmap.
7946
+ * @returns {String|Array<String>}
6648
7947
  */
6649
- get commonWrapperClasses() {
6650
- return {
6651
- 'wrapper': true
7948
+ get formattedValue() {
7949
+ if (this.multiSelect) {
7950
+ if (!this.value) {
7951
+ return undefined;
7952
+ }
7953
+ if (this.value.startsWith("[")) {
7954
+ return JSON.parse(this.value);
7955
+ }
7956
+ return [this.value];
7957
+ }
7958
+ return this.value;
7959
+ }
7960
+
7961
+ /**
7962
+ * Returns classmap configuration for html5 input labels in all layouts.
7963
+ * @private
7964
+ * @returns {Record<string, boolean>}
7965
+ */
7966
+ get commonLabelClasses() {
7967
+ const obj = {
7968
+ 'is-disabled': this.disabled,
7969
+ 'withValue': false,
7970
+ 'util_displayHiddenVisually': this.hasDisplayValueContent && !this.hasFocus && this.value && this.value.length > 0,
7971
+ [this.labelFontClass]: true
6652
7972
  };
7973
+
7974
+ if (this.placeholder) {
7975
+ obj.withValue = true;
7976
+ } else if (this.optionSelected) {
7977
+ if (Array.isArray(this.optionSelected)) {
7978
+ obj.withValue = this.optionSelected.length > 0;
7979
+ } else {
7980
+ obj.withValue = true;
7981
+ }
7982
+ }
7983
+ return obj;
7984
+ }
7985
+
7986
+ /**
7987
+ * Returns the label font class based on layout and selection state.
7988
+ * @private
7989
+ * @returns {string} - The font class for the label.
7990
+ */
7991
+ get labelFontClass() {
7992
+ const isSelected = this.hasValue;
7993
+
7994
+ if (this.layout.startsWith('emphasized')) {
7995
+ return isSelected ? 'body-sm' : 'accent-xl';
7996
+ }
7997
+
7998
+ if (this.layout === 'snowflake') {
7999
+ return isSelected ? 'body-xs' : 'body-lg';
8000
+ }
8001
+
8002
+ // classic layout (default)
8003
+ return isSelected ? 'body-xs' : 'body-default';
8004
+ }
8005
+
8006
+ /**
8007
+ * Whether or not the component has a value.
8008
+ * @returns {boolean} - Returns true if the component has a value or placeholder.
8009
+ * @private
8010
+ */
8011
+ get hasValue() {
8012
+ return this.placeholder || (this.value && this.value.length > 0); // eslint-disable-line no-extra-parens
6653
8013
  }
6654
8014
 
6655
8015
  /**
@@ -6662,6 +8022,26 @@ class AuroSelect extends AuroElement$3 {
6662
8022
 
6663
8023
  this.dropdown.addEventListener('auroDropdown-toggled', () => {
6664
8024
  this.isPopoverVisible = this.dropdown.isPopoverVisible;
8025
+
8026
+ if (this.dropdown.isPopoverVisible) {
8027
+ this.updateMenuShapeSize();
8028
+ // wait til the bib gets fully rendered
8029
+ setTimeout(() => {
8030
+ if (this.dropdown.isBibFullscreen) {
8031
+ // trigger holds the focus since menu is not a focusable element.
8032
+ this.dropdown.trigger.focus();
8033
+
8034
+ // default focus indicator on the first menu option
8035
+ if (this.menu.index < 0) {
8036
+ this.menu.navigateOptions('down');
8037
+ }
8038
+ }
8039
+ });
8040
+ }
8041
+ });
8042
+
8043
+ this.dropdown.addEventListener('auroDropdown-strategy-change', () => {
8044
+ this.updateMenuShapeSize();
6665
8045
  });
6666
8046
 
6667
8047
  // setting up bibtemplate
@@ -6684,7 +8064,7 @@ class AuroSelect extends AuroElement$3 {
6684
8064
  *
6685
8065
  */
6686
8066
  static register(name = "auro-select") {
6687
- AuroLibraryRuntimeUtils$4.prototype.registerComponent(name, AuroSelect);
8067
+ AuroLibraryRuntimeUtils$5.prototype.registerComponent(name, AuroSelect);
6688
8068
  }
6689
8069
 
6690
8070
  /**
@@ -6728,6 +8108,30 @@ class AuroSelect extends AuroElement$3 {
6728
8108
  this.dropdown.requestUpdate();
6729
8109
  }
6730
8110
 
8111
+ /**
8112
+ * Update menu to default for fullscreen bib, otherwise to this.size and this.shape.
8113
+ * @private
8114
+ */
8115
+ updateMenuShapeSize() {
8116
+ if (!this.menu) {
8117
+ return;
8118
+ }
8119
+
8120
+ if (this.dropdown && this.dropdown.isBibFullscreen) {
8121
+ this.menu.setAttribute('size', 'md');
8122
+ this.menu.setAttribute('shape', 'box');
8123
+ } else {
8124
+ // set menu's default size if there it's not specified.
8125
+ if (!this.menu.getAttribute('size')) {
8126
+ this.menu.setAttribute('size', this.layout !== 'emphasized' ? 'md' : this.size);
8127
+ }
8128
+
8129
+ if (!this.getAttribute('shape')) {
8130
+ this.menu.setAttribute('shape', this.layout === 'classic' ? 'box' : this.shape);
8131
+ }
8132
+ }
8133
+ }
8134
+
6731
8135
  /**
6732
8136
  * Binds all behavior needed to the menu after rendering.
6733
8137
  * @private
@@ -6744,6 +8148,8 @@ class AuroSelect extends AuroElement$3 {
6744
8148
  return;
6745
8149
  }
6746
8150
 
8151
+ this.updateMenuShapeSize();
8152
+
6747
8153
  if (this.multiSelect) {
6748
8154
  this.menu.multiSelect = this.multiSelect;
6749
8155
  }
@@ -6781,7 +8187,7 @@ class AuroSelect extends AuroElement$3 {
6781
8187
 
6782
8188
  this.menu.addEventListener('auroMenu-selectValueReset', () => {
6783
8189
  this.optionSelected = this.menu.optionSelected;
6784
- this.validation.validate(this);
8190
+ this.validate(this);
6785
8191
  });
6786
8192
 
6787
8193
  this.menu.addEventListener('auroMenu-activatedOption', (evt) => {
@@ -6803,46 +8209,58 @@ class AuroSelect extends AuroElement$3 {
6803
8209
  configureSelect() {
6804
8210
 
6805
8211
  this.addEventListener('keydown', (evt) => {
6806
- if (evt.key === 'ArrowUp') {
6807
- evt.preventDefault();
8212
+ // when the focus is on trigger not on close button
8213
+ if (this.dropdown.shadowRoot.activeElement === this.dropdown.trigger) {
8214
+ if (evt.key === 'ArrowUp') {
8215
+ evt.preventDefault();
6808
8216
 
6809
- this.dropdown.show();
8217
+ this.dropdown.show();
8218
+
8219
+ if (this.dropdown.isPopoverVisible) {
8220
+ this.menu.navigateOptions('up');
8221
+ }
6810
8222
 
6811
- if (this.dropdown.isPopoverVisible) {
6812
- this.menu.navigateOptions('up');
8223
+ return;
6813
8224
  }
6814
8225
 
6815
- return;
6816
- }
8226
+ if (evt.key === 'ArrowDown') {
8227
+ evt.preventDefault();
6817
8228
 
6818
- if (evt.key === 'ArrowDown') {
6819
- evt.preventDefault();
8229
+ this.dropdown.show();
6820
8230
 
6821
- this.dropdown.show();
8231
+ if (this.dropdown.isPopoverVisible) {
8232
+ this.menu.navigateOptions('down');
8233
+ }
6822
8234
 
6823
- if (this.dropdown.isPopoverVisible) {
6824
- this.menu.navigateOptions('down');
8235
+ return;
6825
8236
  }
6826
8237
 
6827
- return;
6828
- }
6829
-
6830
- if (evt.key === 'Enter') {
6831
- if (!this.dropdown.isPopoverVisible) {
6832
- evt.preventDefault();
6833
- this.menu.makeSelection();
6834
- }
8238
+ if (evt.key === 'Enter') {
8239
+ if (!this.dropdown.isPopoverVisible) {
8240
+ evt.preventDefault();
8241
+ this.menu.makeSelection();
8242
+ }
6835
8243
 
6836
- return;
8244
+ return;
8245
+ }
6837
8246
  }
6838
8247
 
6839
- if (evt.key === 'Tab') {
8248
+ if (evt.key === 'Tab' && this.dropdown.isPopoverVisible) {
6840
8249
  if (this.dropdown.isBibFullscreen) {
6841
8250
  evt.preventDefault();
8251
+
8252
+ // when the focus is on trigger not on close button
8253
+ if (this.dropdown.shadowRoot.activeElement === this.dropdown.trigger) {
8254
+ // `dropdown.focus` will move focus to the first focusable element in bib when it's open,
8255
+ // when bib it not open, it will focus onto trigger.
8256
+ this.dropdown.focus();
8257
+ } else {
8258
+ // when close button has the focus, move focus back to the trigger
8259
+ this.dropdown.trigger.focus();
8260
+ }
6842
8261
  } else {
6843
8262
  this.dropdown.hide();
6844
8263
  }
6845
-
6846
8264
  return;
6847
8265
  }
6848
8266
 
@@ -6853,7 +8271,7 @@ class AuroSelect extends AuroElement$3 {
6853
8271
  this.addEventListener('focusin', this.handleFocusin);
6854
8272
 
6855
8273
  this.addEventListener('blur', () => {
6856
- this.validation.validate(this);
8274
+ this.validate();
6857
8275
  this.hasFocus = false;
6858
8276
  });
6859
8277
  }
@@ -6923,6 +8341,26 @@ class AuroSelect extends AuroElement$3 {
6923
8341
  }
6924
8342
  }
6925
8343
 
8344
+ /**
8345
+ * Hides the dropdown bib if its open.
8346
+ * @returns {void}
8347
+ */
8348
+ hideBib() {
8349
+ if (this.dropdown && this.dropdown.isPopoverVisible) {
8350
+ this.dropdown.hide();
8351
+ }
8352
+ }
8353
+
8354
+ /**
8355
+ * Shows the dropdown bib if there are options to show.
8356
+ * @returns {void}
8357
+ */
8358
+ showBib() {
8359
+ if (this.dropdown && !this.dropdown.isPopoverVisible) {
8360
+ this.dropdown.show();
8361
+ }
8362
+ }
8363
+
6926
8364
  /**
6927
8365
  * Function to support @focusin event.
6928
8366
  * @private
@@ -7007,38 +8445,47 @@ class AuroSelect extends AuroElement$3 {
7007
8445
  // Add the tag name as an attribute if it is different than the component name
7008
8446
  this.runtimeUtils.handleComponentTagRename(this, 'auro-select');
7009
8447
 
7010
- this.configureMenu();
7011
8448
  this.configureDropdown();
8449
+ this.configureMenu();
7012
8450
  this.configureSelect();
8451
+ }
8452
+
8453
+ /**
8454
+ * Update the menu value. With checks for menu existence. Awaits value update.
8455
+ * @param {string} value - The value to set in the menu.
8456
+ * @returns {void}
8457
+ * @private
8458
+ */
8459
+ async updateMenuValue(value) {
8460
+ if (!this.menu) return;
7013
8461
 
7014
- // Set the initial value in auro-menu if defined
7015
- if (this.hasAttribute('value') && this.getAttribute('value').length > 0) {
7016
- this.value = this.multiSelect ? arrayConverter(this.getAttribute('value')) : this.getAttribute('value');
7017
- this.menu.value = this.value;
8462
+ this.menu.setAttribute('value', value);
8463
+ if (value) {
8464
+ this.menu.value = value;
8465
+ } else {
8466
+ this.menu.reset();
7018
8467
  }
8468
+ await this.menu.updateComplete;
7019
8469
  }
7020
8470
 
7021
8471
  async updated(changedProperties) {
7022
- if (changedProperties.has('multiSelect')) {
8472
+ if (changedProperties.has('multiSelect') && !changedProperties.has('value')) {
7023
8473
  this.clearSelection();
7024
8474
  }
7025
8475
 
7026
8476
  if (changedProperties.has('value')) {
7027
8477
  if (this.value) {
7028
- this.value = this.multiSelect ? arrayConverter(this.value) : this.value;
7029
-
7030
- this.menu.value = this.value;
8478
+ await this.updateMenuValue(this.value);
7031
8479
 
7032
- // Wait for menu to finish updating its value
7033
- await this.menu.updateComplete;
7034
-
7035
- this.optionSelected = this.menu.optionSelected;
8480
+ if (this.menu) {
8481
+ this.optionSelected = this.menu.optionSelected;
8482
+ }
7036
8483
  } else {
7037
- this.menu.value = undefined;
8484
+ await this.updateMenuValue(undefined);
7038
8485
  }
7039
8486
 
7040
8487
  this._updateNativeSelect();
7041
- this.validation.validate(this);
8488
+ this.validate();
7042
8489
 
7043
8490
  // LEGACY EVENT
7044
8491
  this.dispatchEvent(new CustomEvent('auroSelect-valueSet', {
@@ -7053,7 +8500,7 @@ class AuroSelect extends AuroElement$3 {
7053
8500
  composed: true,
7054
8501
  detail: {
7055
8502
  optionSelected: this.optionSelected,
7056
- value: this.value
8503
+ value: this.formattedValue
7057
8504
  }
7058
8505
  }));
7059
8506
  }
@@ -7065,6 +8512,14 @@ class AuroSelect extends AuroElement$3 {
7065
8512
  if (changedProperties.has('error')) {
7066
8513
  this.validate(true);
7067
8514
  }
8515
+
8516
+ if (changedProperties.has('shape') && this.menu) {
8517
+ this.menu.setAttribute('shape', this.layout === 'classic' ? 'box' : this.shape);
8518
+ }
8519
+
8520
+ if (changedProperties.has('size') && this.menu) {
8521
+ this.menu.setAttribute('size', this.layout !== 'emphasized' ? 'md' : this.size);
8522
+ }
7068
8523
  }
7069
8524
 
7070
8525
  /**
@@ -7075,16 +8530,6 @@ class AuroSelect extends AuroElement$3 {
7075
8530
  this.validation.reset(this);
7076
8531
  }
7077
8532
 
7078
- /**
7079
- * Hide dropdownbib.
7080
- * @private
7081
- */
7082
- hideBib() {
7083
- if (this.dropdown) {
7084
- this.dropdown.hide();
7085
- }
7086
- }
7087
-
7088
8533
  /**
7089
8534
  * Validates value.
7090
8535
  * @param {boolean} [force=false] - Whether to force validation.
@@ -7104,13 +8549,13 @@ class AuroSelect extends AuroElement$3 {
7104
8549
  const selectedValue = selectedOption.value;
7105
8550
 
7106
8551
  if (this.multiSelect) {
7107
- const currentArray = Array.isArray(this.value) ? this.value : [];
8552
+ const currentArray = this.formattedValue;
7108
8553
 
7109
8554
  if (!currentArray.includes(selectedValue)) {
7110
- this.value = [
8555
+ this.value = JSON.stringify([
7111
8556
  ...currentArray,
7112
8557
  selectedValue
7113
- ];
8558
+ ]);
7114
8559
  }
7115
8560
  } else {
7116
8561
  const currentValue = this.value;
@@ -7133,12 +8578,17 @@ class AuroSelect extends AuroElement$3 {
7133
8578
  }
7134
8579
 
7135
8580
  if (this.multiSelect) {
7136
- nativeSelect.value = this.value ? this.value[0] : '';
8581
+ nativeSelect.value = this.multiSelect ? this.multiSelect[0] : '';
7137
8582
  } else {
7138
8583
  nativeSelect.value = this.value || '';
7139
8584
  }
7140
8585
  }
7141
8586
 
8587
+ /**
8588
+ * Returns HTML for the hidden a11y screen reader content.
8589
+ * @private
8590
+ * @returns {html} - Returns HTML for the hidden a11y screen reader content.
8591
+ */
7142
8592
  renderAriaHtml() {
7143
8593
  return u`
7144
8594
  <div aria-live="polite" class="util_displayHiddenVisually">
@@ -7159,10 +8609,15 @@ class AuroSelect extends AuroElement$3 {
7159
8609
  `;
7160
8610
  }
7161
8611
 
8612
+ /**
8613
+ * Returns HTML for the hidden HTML5 select.
8614
+ * @private
8615
+ * @returns {html} - Returns HTML for the hidden HTML5 select.
8616
+ */
7162
8617
  renderNativeSelect() {
7163
8618
  return u`
7164
- <div class="nativeSelectWrapper">
7165
- <select
8619
+ <div class="nativeSelectWrapper util_displayHiddenVisually">
8620
+ <select
7166
8621
  tabindex="-1"
7167
8622
  id="${`native-select-${this.id || this.uniqueId}`}"
7168
8623
  name="${this.name || ''}"
@@ -7175,8 +8630,8 @@ class AuroSelect extends AuroElement$3 {
7175
8630
  ${this.options.map((option) => {
7176
8631
  const optionValue = option.value || option.textContent;
7177
8632
  return u`
7178
- <option
7179
- value="${optionValue}"
8633
+ <option
8634
+ value="${optionValue}"
7180
8635
  ?selected="${this.value === optionValue}">
7181
8636
  ${option.textContent}
7182
8637
  </option>
@@ -7198,14 +8653,14 @@ class AuroSelect extends AuroElement$3 {
7198
8653
  ? u`
7199
8654
  <${this.helpTextTag} ?onDark="${this.onDark}">
7200
8655
  <p id="${this.uniqueId}" part="helpText">
7201
- <slot name="helptext"></slot>
8656
+ <slot name="helpText"></slot>
7202
8657
  </p>
7203
8658
  </${this.helpTextTag}>
7204
8659
  `
7205
8660
  : u`
7206
8661
  <${this.helpTextTag} error ?onDark="${this.onDark}">
7207
8662
  <p id="${this.uniqueId}" role="alert" aria-live="assertive" part="helpText">
7208
- ERROR MESSAGE ${this.errorMessage}
8663
+ ${this.errorMessage}
7209
8664
  </p>
7210
8665
  </${this.helpTextTag}>
7211
8666
  `
@@ -7220,14 +8675,14 @@ class AuroSelect extends AuroElement$3 {
7220
8675
  */
7221
8676
  renderLayoutEmphasized() {
7222
8677
  const placeholderClass = {
7223
- hidden: this.value,
8678
+ 'util_displayHidden': this.value
7224
8679
  };
7225
8680
 
7226
8681
  const displayValueClasses = {
7227
8682
  'displayValue': true,
7228
8683
  'hasContent': this.hasDisplayValueContent,
7229
8684
  'hasFocus': this.isPopoverVisible,
7230
- 'withValue': this.value && this.value.length > 0,
8685
+ 'withValue': this.commonLabelClasses.withValue,
7231
8686
  'force': this.forceDisplayValue,
7232
8687
  };
7233
8688
 
@@ -7238,22 +8693,21 @@ class AuroSelect extends AuroElement$3 {
7238
8693
 
7239
8694
  return u`
7240
8695
  <div
7241
- class="${e(this.commonWrapperClasses)}"
7242
8696
  part="wrapper">
7243
8697
  <div id="slotHolder" aria-hidden="true">
7244
8698
  <slot name="bib.fullscreen.headline" @slotchange="${this.handleSlotChange}"></slot>
7245
8699
  </div>
7246
8700
  <${this.dropdownTag}
8701
+ a11yRole="select"
7247
8702
  ?autoPlacement="${this.autoPlacement}"
7248
8703
  ?error="${this.validity !== undefined && this.validity !== 'valid'}"
7249
- ?matchWidth="${!this.flexMenuWidth}"
8704
+ ?matchWidth="${this.matchWidth}"
7250
8705
  ?noFlip="${this.noFlip}"
7251
8706
  ?onDark="${this.onDark}"
7252
8707
  .fullscreenBreakpoint="${this.fullscreenBreakpoint}"
7253
8708
  .offset="${this.offset}"
7254
8709
  .placement="${this.placement}"
7255
8710
  chevron
7256
- fluid
7257
8711
  for="selectMenu"
7258
8712
  layout="${this.layout}"
7259
8713
  part="dropdown"
@@ -7265,15 +8719,14 @@ class AuroSelect extends AuroElement$3 {
7265
8719
  </div>
7266
8720
  <div class="mainContent">
7267
8721
  <div class="${e(valueContainerClasses)}">
7268
- <label>
8722
+ <label class="${e(this.commonLabelClasses)}">
7269
8723
  <slot name="label"></slot>
8724
+ ${this.required ? undefined : u`<slot name="optionalLabel"> (optional)</slot>`}
7270
8725
  </label>
7271
8726
  <div class="value" id="value"></div>
7272
- ${this.value ? undefined : u`
7273
- <div id="placeholder" class="${e(placeholderClass)}">
7274
- <slot name="placeholder"></slot>
7275
- </div>
7276
- `}
8727
+ <div id="placeholder" class="${e(placeholderClass)}">
8728
+ ${this.placeholder}
8729
+ </div>
7277
8730
  </div>
7278
8731
  <div class="${e(displayValueClasses)}" aria-hidden="true" part="displayValue">
7279
8732
  <slot name="displayValue"></slot>
@@ -7283,6 +8736,7 @@ class AuroSelect extends AuroElement$3 {
7283
8736
  </div>
7284
8737
  <div class="menuWrapper"></div>
7285
8738
  <${this.bibtemplateTag} ?large="${this.largeFullscreenHeadline}" @close-click="${this.hideBib}">
8739
+ <slot name="ariaLabel.bib.close" slot="ariaLabel.close">Close</slot>
7286
8740
  <slot></slot>
7287
8741
  </${this.bibtemplateTag}>
7288
8742
  <div slot="helpText">
@@ -7300,14 +8754,14 @@ class AuroSelect extends AuroElement$3 {
7300
8754
  */
7301
8755
  renderLayoutSnowflake() {
7302
8756
  const placeholderClass = {
7303
- hidden: this.value,
8757
+ 'util_displayHidden': this.value
7304
8758
  };
7305
8759
 
7306
8760
  const displayValueClasses = {
7307
8761
  'displayValue': true,
7308
8762
  'hasContent': this.hasDisplayValueContent,
7309
8763
  'hasFocus': this.isPopoverVisible,
7310
- 'withValue': this.value && this.value.length > 0,
8764
+ 'withValue': this.commonLabelClasses.withValue,
7311
8765
  'force': this.forceDisplayValue,
7312
8766
  };
7313
8767
 
@@ -7318,7 +8772,6 @@ class AuroSelect extends AuroElement$3 {
7318
8772
 
7319
8773
  return u`
7320
8774
  <div
7321
- class="${e(this.commonWrapperClasses)}"
7322
8775
  part="wrapper">
7323
8776
  <div id="slotHolder" aria-hidden="true">
7324
8777
  <slot name="bib.fullscreen.headline" @slotchange="${this.handleSlotChange}"></slot>
@@ -7326,14 +8779,13 @@ class AuroSelect extends AuroElement$3 {
7326
8779
  <${this.dropdownTag}
7327
8780
  ?autoPlacement="${this.autoPlacement}"
7328
8781
  ?error="${this.validity !== undefined && this.validity !== 'valid'}"
7329
- ?matchWidth="${!this.flexMenuWidth}"
8782
+ ?matchWidth="${this.matchWidth}"
7330
8783
  ?noFlip="${this.noFlip}"
7331
8784
  ?onDark="${this.onDark}"
7332
8785
  .fullscreenBreakpoint="${this.fullscreenBreakpoint}"
7333
8786
  .offset="${this.offset}"
7334
8787
  .placement="${this.placement}"
7335
8788
  chevron
7336
- fluid
7337
8789
  for="selectMenu"
7338
8790
  layout="${this.layout}"
7339
8791
  part="dropdown"
@@ -7345,15 +8797,14 @@ class AuroSelect extends AuroElement$3 {
7345
8797
  </div>
7346
8798
  <div class="mainContent">
7347
8799
  <div class="${e(valueContainerClasses)}">
7348
- <label>
8800
+ <label class="${e(this.commonLabelClasses)}">
7349
8801
  <slot name="label"></slot>
8802
+ ${this.required ? undefined : u`<slot name="optionalLabel"> (optional)</slot>`}
7350
8803
  </label>
7351
8804
  <div class="value" id="value"></div>
7352
- ${this.value ? undefined : u`
7353
- <div id="placeholder" class="${e(placeholderClass)}">
7354
- <slot name="placeholder"></slot>
7355
- </div>
7356
- `}
8805
+ <div id="placeholder" class="${e(placeholderClass)}">
8806
+ ${this.placeholder}
8807
+ </div>
7357
8808
  </div>
7358
8809
  <div class="${e(displayValueClasses)}" aria-hidden="true" part="displayValue">
7359
8810
  <slot name="displayValue"></slot>
@@ -7363,12 +8814,14 @@ class AuroSelect extends AuroElement$3 {
7363
8814
  </div>
7364
8815
  <div class="menuWrapper"></div>
7365
8816
  <${this.bibtemplateTag} ?large="${this.largeFullscreenHeadline}" @close-click="${this.hideBib}">
8817
+ <slot name="ariaLabel.bib.close" slot="ariaLabel.close">Close</slot>
7366
8818
  <slot></slot>
7367
8819
  </${this.bibtemplateTag}>
7368
8820
  <div slot="helpText">
7369
8821
  ${this.renderHtmlHelpText()}
7370
8822
  </div>
7371
8823
  </${this.dropdownTag}>
8824
+ ${this.renderNativeSelect()}
7372
8825
  </div>
7373
8826
  `;
7374
8827
  }
@@ -7379,11 +8832,80 @@ class AuroSelect extends AuroElement$3 {
7379
8832
  * @returns {import("lit").TemplateResult} - Returns HTML for the classic layout.
7380
8833
  */
7381
8834
  renderLayoutClassic() {
8835
+ const placeholderClass = {
8836
+ 'util_displayHidden': this.value
8837
+ };
8838
+
8839
+ const displayValueClasses = {
8840
+ 'displayValue': true,
8841
+ 'hasContent': this.hasDisplayValueContent,
8842
+ 'hasFocus': this.isPopoverVisible,
8843
+ 'withValue': this.commonLabelClasses.withValue,
8844
+ 'force': this.forceDisplayValue,
8845
+ };
8846
+
8847
+ const valueContainerClasses = {
8848
+ 'valueContainer': true,
8849
+ 'util_displayHiddenVisually': (this.forceDisplayValue || !(this.dropdown && this.dropdown.isPopoverVisible)) && this.hasDisplayValueContent
8850
+ };
8851
+
8852
+ const valueClasses = {
8853
+ 'value': true,
8854
+ 'body-default': true
8855
+ };
8856
+
7382
8857
  return u`
7383
8858
  <div
7384
- class="${e(this.commonWrapperClasses)} thin"
7385
8859
  part="wrapper">
7386
- classic
8860
+ <div id="slotHolder" aria-hidden="true">
8861
+ <slot name="bib.fullscreen.headline" @slotchange="${this.handleSlotChange}"></slot>
8862
+ </div>
8863
+ <${this.dropdownTag}
8864
+ ?autoPlacement="${this.autoPlacement}"
8865
+ ?error="${this.validity !== undefined && this.validity !== 'valid'}"
8866
+ ?matchWidth="${!this.flexMenuWidth}"
8867
+ ?noFlip="${this.noFlip}"
8868
+ ?onDark="${this.onDark}"
8869
+ .fullscreenBreakpoint="${this.fullscreenBreakpoint}"
8870
+ .offset="${this.offset}"
8871
+ .placement="${this.placement}"
8872
+ chevron
8873
+ for="selectMenu"
8874
+ layout="${this.layout}"
8875
+ part="dropdown"
8876
+ shape="${this.shape}"
8877
+ size="${this.size}">
8878
+ <div slot="trigger" aria-haspopup="true" id="triggerFocus" class="triggerContent">
8879
+ <div class="accents left">
8880
+ <slot name="typeIcon"></slot>
8881
+ </div>
8882
+ <div class="mainContent">
8883
+ <div class="${e(valueContainerClasses)}">
8884
+ <label class="${e(this.commonLabelClasses)}">
8885
+ <slot name="label"></slot>
8886
+ ${this.required ? undefined : u`<slot name="optionalLabel"> (optional)</slot>`}
8887
+ </label>
8888
+ <div class="${e(valueClasses)}" id="value"></div>
8889
+ <div id="placeholder" class="${e(placeholderClass)}">
8890
+ ${this.placeholder}
8891
+ </div>
8892
+ </div>
8893
+ <div class="${e(displayValueClasses)}" aria-hidden="true" part="displayValue">
8894
+ <slot name="displayValue"></slot>
8895
+ </div>
8896
+ </div>
8897
+ <div class="accents right"></div>
8898
+ </div>
8899
+ <div class="menuWrapper"></div>
8900
+ <${this.bibtemplateTag} ?large="${this.largeFullscreenHeadline}" @close-click="${this.hideBib}">
8901
+ <slot name="ariaLabel.bib.close" slot="ariaLabel.close">Close</slot>
8902
+ <slot></slot>
8903
+ </${this.bibtemplateTag}>
8904
+ <div slot="helpText">
8905
+ ${this.renderHtmlHelpText()}
8906
+ </div>
8907
+ </${this.dropdownTag}>
8908
+ ${this.renderNativeSelect()}
7387
8909
  </div>
7388
8910
  `;
7389
8911
  }
@@ -7417,112 +8939,13 @@ class AuroSelect extends AuroElement$3 {
7417
8939
 
7418
8940
  // When using auroElement, use the following attribute and function when hiding content from screen readers.
7419
8941
  // aria-hidden="${this.hideAudible(this.hiddenAudible)}"
7420
-
7421
- // function that renders the HTML and CSS into the scope of the component
7422
- renderBACKUP() {
7423
- const placeholderClass = {
7424
- hidden: this.value,
7425
- };
7426
-
7427
- return u`
7428
- <div class="outerWrapper">
7429
- <div aria-live="polite" class="util_displayHiddenVisually">
7430
- ${this.optionActive && this.options.length > 0
7431
- ? u`
7432
- ${`${this.optionActive.innerText}, option ${this.options.indexOf(this.optionActive) + 1} of ${this.options.length}`}
7433
- `
7434
- : undefined
7435
- };
7436
-
7437
- ${this.optionSelected && this.options.length > 0
7438
- ? u`
7439
- ${`${this.optionSelected.innerText} selected`}
7440
- `
7441
- : undefined
7442
- };
7443
- </div>
7444
- <div id="slotHolder" aria-hidden="true">
7445
- <slot name="bib.fullscreen.headline" @slotchange="${this.handleSlotChange}"></slot>
7446
- </div>
7447
- <${this.dropdownTag}
7448
- ?autoPlacement="${this.autoPlacement}"
7449
- ?disabled="${this.disabled}"
7450
- ?error="${this.validity !== undefined && this.validity !== 'valid'}"
7451
- ?matchWidth="${!this.flexMenuWidth}"
7452
- ?noFlip="${this.noFlip}"
7453
- ?onDark="${this.onDark}"
7454
- .fullscreenBreakpoint="${this.fullscreenBreakpoint}"
7455
- .offset="${this.offset}"
7456
- .placement="${this.placement}"
7457
- chevron
7458
- fluid
7459
- for="selectMenu"
7460
- layout="${this.layout}"
7461
- part="dropdown"
7462
- shape="${this.shape}"
7463
- size="${this.size}">
7464
- <span slot="trigger" aria-haspopup="true" id="triggerFocus">
7465
- <span id="placeholder"
7466
- class="${e(placeholderClass)}"
7467
- ?aria-hidden="${this.optionSelected && this.optionSelected.length ? 'true' : false}"
7468
- >
7469
- <slot name="placeholder"></slot>
7470
- </span>
7471
- <slot name="valueText" id="valueText"></slot>
7472
- </span>
7473
-
7474
- <${this.bibtemplateTag} ?large="${this.largeFullscreenHeadline}" @close-click="${this.hideBib}">
7475
- <slot></slot>
7476
- </${this.bibtemplateTag}>
7477
- <slot name="label" slot="label"></slot>
7478
- <p slot="helpText">
7479
- ${!this.validity || this.validity === undefined || this.validity === 'valid'
7480
- ? u`
7481
- <span id="${this.uniqueId}" part="helpText">
7482
- <slot name="helpText"></slot>
7483
- </span>`
7484
- : u`
7485
- <span id="${this.uniqueId}" role="alert" aria-live="assertive" part="helpText">
7486
- ${this.errorMessage}
7487
- </span>`
7488
- }
7489
- </p>
7490
- </${this.dropdownTag}>
7491
- <div class="nativeSelectWrapper">
7492
- <select
7493
- tabindex="-1"
7494
- id="${`native-select-${this.id || this.uniqueId}`}"
7495
- name="${this.name || ''}"
7496
- ?disabled="${this.disabled}"
7497
- ?required="${this.required}"
7498
- aria-hidden="true"
7499
- autocomplete="${o(this.autocomplete)}"
7500
- @change="${this._handleNativeSelectChange}">
7501
- <option value="" ?selected="${!this.value}"></option>
7502
- ${this.options.map((option) => {
7503
- const optionValue = option.value || option.textContent;
7504
- return u`
7505
- <option
7506
- value="${optionValue}"
7507
- ?selected="${this.value === optionValue}">
7508
- ${option.textContent}
7509
- </option>
7510
- `;
7511
- })}
7512
- </select>
7513
- </div>
7514
- <!-- Help text and error message template -->
7515
- ${this.renderHtmlHelpText()}
7516
- </div>
7517
- `;
7518
- }
7519
8942
  }
7520
8943
 
7521
- 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)}`;
8944
+ var styleCss$2 = i$5`:focus:not(:focus-visible){outline:3px solid transparent}.body-default{font-family:var(--wcss-body-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0);font-size:var(--wcss-body-default-font-size, 1rem);line-height:var(--wcss-body-default-line-height, 1.5)}.body-lg{font-family:var(--wcss-body-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0);font-size:var(--wcss-body-lg-font-size, 1.125rem);line-height:var(--wcss-body-lg-line-height, 1.63)}.body-sm{font-family:var(--wcss-body-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0);font-size:var(--wcss-body-sm-font-size, 0.875rem);line-height:var(--wcss-body-sm-line-height, 1.25)}.body-xs{font-family:var(--wcss-body-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0);font-size:var(--wcss-body-xs-font-size, 0.75rem);line-height:var(--wcss-body-xs-line-height, 1)}.body-2xs{font-family:var(--wcss-body-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0);font-size:var(--wcss-body-2xs-font-size, 0.625rem);line-height:var(--wcss-body-2xs-line-height, 0.88)}.display-2xl{font-family:var(--wcss-display-2xl-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);letter-spacing:var(--wcss-display-2xl-letter-spacing, 0);font-weight:var(--wcss-display-2xl-weight, 300);line-height:var(--wcss-display-2xl-line-height, 1.3);font-size:var(--wcss-display-2xl-font-size, clamp(3.5rem, 6vw, 5.375rem))}.display-xl{font-family:var(--wcss-display-xl-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);letter-spacing:var(--wcss-display-xl-letter-spacing, 0);font-weight:var(--wcss-display-xl-weight, 300);line-height:var(--wcss-display-xl-line-height, 1.3);font-size:var(--wcss-display-xl-font-size, clamp(3rem, 5.3333333333vw, 4.5rem))}.display-lg{font-family:var(--wcss-display-lg-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);letter-spacing:var(--wcss-display-lg-letter-spacing, 0);font-weight:var(--wcss-display-lg-weight, 300);line-height:var(--wcss-display-lg-line-height, 1.3);font-size:var(--wcss-display-lg-font-size, clamp(2.75rem, 4.6666666667vw, 4rem))}.display-md{font-family:var(--wcss-display-md-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);letter-spacing:var(--wcss-display-md-letter-spacing, 0);font-weight:var(--wcss-display-md-weight, 300);line-height:var(--wcss-display-md-line-height, 1.3);font-size:var(--wcss-display-md-font-size, clamp(2.5rem, 4vw, 3.5rem))}.display-sm{font-family:var(--wcss-display-sm-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);letter-spacing:var(--wcss-display-sm-letter-spacing, 0);font-weight:var(--wcss-display-sm-weight, 300);line-height:var(--wcss-display-sm-line-height, 1.3);font-size:var(--wcss-display-sm-font-size, clamp(2rem, 3.6666666667vw, 3rem))}.display-xs{font-family:var(--wcss-display-xs-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);letter-spacing:var(--wcss-display-xs-letter-spacing, 0);font-weight:var(--wcss-display-xs-weight, 300);line-height:var(--wcss-display-xs-line-height, 1.3);font-size:var(--wcss-display-xs-font-size, clamp(1.75rem, 3vw, 2.375rem))}.heading-xl{font-family:var(--wcss-heading-xl-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);letter-spacing:var(--wcss-heading-xl-letter-spacing, 0);font-weight:var(--wcss-heading-xl-weight, 300);line-height:var(--wcss-heading-xl-line-height, 1.3);font-size:var(--wcss-heading-xl-font-size, clamp(2rem, 3vw, 2.5rem))}.heading-lg{font-family:var(--wcss-heading-lg-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);letter-spacing:var(--wcss-heading-lg-letter-spacing, 0);font-weight:var(--wcss-heading-lg-weight, 300);line-height:var(--wcss-heading-lg-line-height, 1.3);font-size:var(--wcss-heading-lg-font-size, clamp(1.75rem, 2.6666666667vw, 2.25rem))}.heading-md{font-family:var(--wcss-heading-md-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);letter-spacing:var(--wcss-heading-md-letter-spacing, 0);font-weight:var(--wcss-heading-md-weight, 300);line-height:var(--wcss-heading-md-line-height, 1.3);font-size:var(--wcss-heading-md-font-size, clamp(1.625rem, 2.3333333333vw, 1.75rem))}.heading-sm{font-family:var(--wcss-heading-sm-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);letter-spacing:var(--wcss-heading-sm-letter-spacing, 0);font-weight:var(--wcss-heading-sm-weight, 300);line-height:var(--wcss-heading-sm-line-height, 1.3);font-size:var(--wcss-heading-sm-font-size, clamp(1.375rem, 2vw, 1.5rem))}.heading-xs{font-family:var(--wcss-heading-xs-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);letter-spacing:var(--wcss-heading-xs-letter-spacing, 0);font-weight:var(--wcss-heading-xs-weight, 450);line-height:var(--wcss-heading-xs-line-height, 1.3);font-size:var(--wcss-heading-xs-font-size, clamp(1.25rem, 1.6666666667vw, 1.25rem))}.heading-2xs{font-family:var(--wcss-heading-2xs-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);letter-spacing:var(--wcss-heading-2xs-letter-spacing, 0);font-weight:var(--wcss-heading-2xs-weight, 450);line-height:var(--wcss-heading-2xs-line-height, 1.3);font-size:var(--wcss-heading-2xs-font-size, clamp(1.125rem, 1.5vw, 1.125rem))}.accent-2xl{font-family:var(--wcss-accent-2xl-family, "Good OT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);letter-spacing:var(--wcss-accent-2xl-letter-spacing, 0.05em);font-weight:var(--wcss-accent-2xl-weight, 450);line-height:var(--wcss-accent-2xl-line-height, 1);font-size:var(--wcss-accent-2xl-font-size, clamp(2rem, 3.1666666667vw, 2.375rem));text-transform:uppercase}.accent-xl{font-family:var(--wcss-accent-xl-family, "Good OT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);letter-spacing:var(--wcss-accent-xl-letter-spacing, 0.05em);font-weight:var(--wcss-accent-xl-weight, 450);line-height:var(--wcss-accent-xl-line-height, 1.3);font-size:var(--wcss-accent-xl-font-size, clamp(1.625rem, 2.3333333333vw, 2rem));text-transform:uppercase}.accent-lg{font-family:var(--wcss-accent-lg-family, "Good OT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);letter-spacing:var(--wcss-accent-lg-letter-spacing, 0.05em);font-weight:var(--wcss-accent-lg-weight, 450);line-height:var(--wcss-accent-lg-line-height, 1.3);font-size:var(--wcss-accent-lg-font-size, clamp(1.5rem, 2.1666666667vw, 1.75rem));text-transform:uppercase}.accent-md{font-family:var(--wcss-accent-md-family, "Good OT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);letter-spacing:var(--wcss-accent-md-letter-spacing, 0.05em);font-weight:var(--wcss-accent-md-weight, 500);line-height:var(--wcss-accent-md-line-height, 1.3);font-size:var(--wcss-accent-md-font-size, clamp(1.375rem, 1.8333333333vw, 1.5rem));text-transform:uppercase}.accent-sm{font-family:var(--wcss-accent-sm-family, "Good OT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);letter-spacing:var(--wcss-accent-sm-letter-spacing, 0.05em);font-weight:var(--wcss-accent-sm-weight, 500);line-height:var(--wcss-accent-sm-line-height, 1.3);font-size:var(--wcss-accent-sm-font-size, clamp(1.125rem, 1.5vw, 1.25rem));text-transform:uppercase}.accent-xs{font-family:var(--wcss-accent-xs-family, "Good OT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);letter-spacing:var(--wcss-accent-xs-letter-spacing, 0.1em);font-weight:var(--wcss-accent-xs-weight, 500);line-height:var(--wcss-accent-xs-line-height, 1.3);font-size:var(--wcss-accent-xs-font-size, clamp(1rem, 1.3333333333vw, 1rem));text-transform:uppercase}.accent-2xs{font-family:var(--wcss-accent-2xs-family, "Good OT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);letter-spacing:var(--wcss-accent-2xs-letter-spacing, 0.1em);font-weight:var(--wcss-accent-2xs-weight, 450);line-height:var(--wcss-accent-2xs-line-height, 1.3);font-size:var(--wcss-accent-2xs-font-size, clamp(0.875rem, 1.1666666667vw, 0.875rem));text-transform:uppercase}:host{display:block;vertical-align:middle;line-height:0}:host .menuWrapper{box-sizing:border-box;display:flex;flex-direction:column;width:100%;margin:0;padding:0}:host ::slotted(hr){box-sizing:content-box !important;height:0 !important;overflow:visible !important;margin:var(--ds-size-100, 0.5rem) 0 !important;border-width:0 !important;border-top-width:1px !important;border-top-style:solid !important}:host [loadingplaceholder].empty{opacity:0;position:absolute}:host [loadingplaceholder] slot[name=loadingIcon]{vertical-align:middle;display:inline-block}:host [loadingplaceholder] slot[name=loadingIcon]::slotted(*){margin-right:var(--ds-size-150, 0.75rem)}:host([root]){overflow-y:auto}:host([root]) .menuWrapper.lg{padding:var(--ds-size-150, 0.75rem);gap:var(--ds-size-50, 0.25rem)}:host([root]) .menuWrapper.xl{padding:var(--ds-size-200, 1rem);gap:var(--ds-size-100, 0.5rem)}`;
7522
8945
 
7523
8946
  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)}`;
7524
8947
 
7525
- 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)}`;
8948
+ 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)}`;
7526
8949
 
7527
8950
  // Copyright (c) 2021 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
7528
8951
  // See LICENSE in the project root for license information.
@@ -7575,7 +8998,6 @@ function dispatchMenuEvent(element, eventName, detail = null) {
7575
8998
  * @attr {boolean} nocheckmark - When true, selected option will not show the checkmark.
7576
8999
  * @attr {boolean} loading - When true, displays a loading state using the loadingIcon and loadingText slots if provided.
7577
9000
  * @attr {boolean} multiselect - When true, the selected option can be multiple options.
7578
- * @attr {String|Array<string>} value - Value selected for the menu, type `string` by default. In multi-select mode, `value` is an array of strings.
7579
9001
  * @prop {boolean} hasLoadingPlaceholder - Indicates whether the menu has a loadingIcon or loadingText to render when in a loading state.
7580
9002
  * @event {CustomEvent<Element>} auroMenu-activatedOption - Notifies that a menuoption has been made `active`.
7581
9003
  * @event {CustomEvent<any>} auroMenu-customEventFired - Notifies that a custom event has been fired.
@@ -7590,12 +9012,22 @@ function dispatchMenuEvent(element, eventName, detail = null) {
7590
9012
 
7591
9013
  /* eslint-disable no-magic-numbers, max-lines, no-extra-parens */
7592
9014
 
7593
- class AuroMenu extends i$2 {
9015
+ class AuroMenu extends AuroElement$4 {
7594
9016
  constructor() {
7595
9017
  super();
7596
9018
 
7597
9019
  // State properties (reactive)
7598
9020
 
9021
+ /**
9022
+ * @private
9023
+ */
9024
+ this.shape = "box";
9025
+
9026
+ /**
9027
+ * @private
9028
+ */
9029
+ this.size = "sm";
9030
+
7599
9031
  // Value of the selected options
7600
9032
  this.value = undefined;
7601
9033
  // Currently selected option
@@ -7654,6 +9086,7 @@ class AuroMenu extends i$2 {
7654
9086
 
7655
9087
  static get properties() {
7656
9088
  return {
9089
+ ...super.properties,
7657
9090
  noCheckmark: {
7658
9091
  type: Boolean,
7659
9092
  reflect: true,
@@ -7684,9 +9117,24 @@ class AuroMenu extends i$2 {
7684
9117
  reflect: true,
7685
9118
  attribute: 'multiselect'
7686
9119
  },
9120
+
9121
+ /**
9122
+ * Value selected for the component.
9123
+ */
7687
9124
  value: {
7688
- // Allow string, string[] arrays and undefined
7689
- type: Object
9125
+ type: String,
9126
+ reflect: true,
9127
+ attribute: 'value'
9128
+ },
9129
+
9130
+ /**
9131
+ * Indent level for submenus.
9132
+ * @private
9133
+ */
9134
+ level: {
9135
+ type: Number,
9136
+ reflect: false,
9137
+ attribute: false
7690
9138
  }
7691
9139
  };
7692
9140
  }
@@ -7708,7 +9156,26 @@ class AuroMenu extends i$2 {
7708
9156
  *
7709
9157
  */
7710
9158
  static register(name = "auro-menu") {
7711
- AuroLibraryRuntimeUtils$4.prototype.registerComponent(name, AuroMenu);
9159
+ AuroLibraryRuntimeUtils$5.prototype.registerComponent(name, AuroMenu);
9160
+ }
9161
+
9162
+ /**
9163
+ * Formatted value based on `multiSelect` state.
9164
+ * Default type is `String`, changing to `Array<String>` when `multiSelect` is true.
9165
+ * @private
9166
+ * @returns {String|Array<String>}
9167
+ */
9168
+ get formattedValue() {
9169
+ if (this.multiSelect) {
9170
+ if (!this.value) {
9171
+ return undefined;
9172
+ }
9173
+ if (this.value.startsWith("[")) {
9174
+ return JSON.parse(this.value);
9175
+ }
9176
+ return [this.value];
9177
+ }
9178
+ return this.value;
7712
9179
  }
7713
9180
 
7714
9181
  // Lifecycle Methods
@@ -7720,6 +9187,7 @@ class AuroMenu extends i$2 {
7720
9187
  this.addEventListener('mousedown', this.handleMouseSelect);
7721
9188
  this.addEventListener('auroMenuOption-mouseover', this.handleOptionHover);
7722
9189
  this.addEventListener('slotchange', this.handleSlotChange);
9190
+ this.setTagAttribute("auro-menu");
7723
9191
  }
7724
9192
 
7725
9193
  disconnectedCallback() {
@@ -7732,19 +9200,33 @@ class AuroMenu extends i$2 {
7732
9200
  }
7733
9201
 
7734
9202
  firstUpdated() {
7735
- AuroLibraryRuntimeUtils$4.prototype.handleComponentTagRename(this, 'auro-menu');
9203
+ AuroLibraryRuntimeUtils$5.prototype.handleComponentTagRename(this, 'auro-menu');
7736
9204
 
7737
9205
  this.loadingSlots = this.querySelectorAll("[slot='loadingText'], [slot='loadingIcon']");
7738
9206
  this.initializeMenu();
7739
9207
  }
7740
9208
 
9209
+ /**
9210
+ * Sets an attribute that matches the default tag name if the tag name is not the default.
9211
+ * @param {string} tagName - The tag name to set as an attribute.
9212
+ * @private
9213
+ */
9214
+ setTagAttribute(tagName) {
9215
+ if (this.tagName.toLowerCase() !== tagName) {
9216
+ this.setAttribute(tagName, true);
9217
+ }
9218
+ }
9219
+
7741
9220
  updated(changedProperties) {
7742
- if (changedProperties.has('multiSelect')) {
9221
+ super.updated(changedProperties);
9222
+
9223
+ if (changedProperties.has('multiSelect') && !changedProperties.has("value")) {
7743
9224
  // Reset selection if multiSelect mode changes
7744
9225
  this.clearSelection();
7745
9226
  }
7746
9227
 
7747
- if (changedProperties.has('value')) {
9228
+
9229
+ if (changedProperties.has("value")) {
7748
9230
  // Handle null/undefined case
7749
9231
  if (this.value === undefined || this.value === null) {
7750
9232
  this.optionSelected = undefined;
@@ -7752,7 +9234,7 @@ class AuroMenu extends i$2 {
7752
9234
  } else {
7753
9235
  if (this.multiSelect) {
7754
9236
  // In multiselect mode, this.value should be an array of strings
7755
- const valueArray = Array.isArray(this.value) ? this.value : [this.value];
9237
+ const valueArray = this.formattedValue;
7756
9238
  const matchingOptions = this.items.filter((item) => valueArray.includes(item.value));
7757
9239
 
7758
9240
  this.optionSelected = matchingOptions.length > 0 ? matchingOptions : undefined;
@@ -7812,6 +9294,19 @@ class AuroMenu extends i$2 {
7812
9294
  this.querySelectorAll('auro-menu, [auro-menu], auro-menuoption, [auro-menuoption]').forEach((element) => element.setAttribute('noCheckmark', ''));
7813
9295
  }
7814
9296
 
9297
+ // Handle layout propagation to all menus and options
9298
+ const propagationTargets = this.querySelectorAll('auro-menu, [auro-menu], auro-menuoption, [auro-menuoption]');
9299
+ [
9300
+ 'size',
9301
+ 'shape'
9302
+ ].forEach((prop) => {
9303
+ if (changedProperties.has(prop)) {
9304
+ propagationTargets.forEach((el) => {
9305
+ el.setAttribute(prop, this[prop]);
9306
+ });
9307
+ }
9308
+ });
9309
+
7815
9310
  // Regex for matchWord if needed
7816
9311
  let regexWord = null;
7817
9312
 
@@ -7906,14 +9401,14 @@ class AuroMenu extends i$2 {
7906
9401
  */
7907
9402
  handleSelectState(option) {
7908
9403
  if (this.multiSelect) {
7909
- const currentValue = this.value || [];
9404
+ const currentValue = this.formattedValue || [];
7910
9405
  const currentSelected = this.optionSelected || [];
7911
9406
 
7912
9407
  if (!currentValue.includes(option.value)) {
7913
- this.value = [
9408
+ this.value = JSON.stringify([
7914
9409
  ...currentValue,
7915
9410
  option.value
7916
- ];
9411
+ ]);
7917
9412
  }
7918
9413
  if (!currentSelected.includes(option)) {
7919
9414
  this.optionSelected = [
@@ -7936,13 +9431,15 @@ class AuroMenu extends i$2 {
7936
9431
  * @param {HTMLElement} option - The menuoption to be deselected.
7937
9432
  */
7938
9433
  handleDeselectState(option) {
7939
- if (this.multiSelect && Array.isArray(this.value)) {
9434
+ if (this.multiSelect) {
7940
9435
  // Remove this option from array
7941
- this.value = this.value.filter((val) => val !== option.value);
9436
+ const newFormattedValue = (this.formattedValue || []).filter((val) => val !== option.value);
7942
9437
 
7943
9438
  // If array is empty after removal, set back to undefined
7944
- if (this.value.length === 0) {
9439
+ if (newFormattedValue && newFormattedValue.length === 0) {
7945
9440
  this.value = undefined;
9441
+ } else {
9442
+ this.value = JSON.stringify(newFormattedValue);
7946
9443
  }
7947
9444
 
7948
9445
  this.optionSelected = this.optionSelected.filter((val) => val !== option);
@@ -8008,21 +9505,20 @@ class AuroMenu extends i$2 {
8008
9505
  * @param {HTMLElement} menu - Root menu element.
8009
9506
  */
8010
9507
  handleNestedMenus(menu) {
8011
- const nestedMenus = menu.querySelectorAll('auro-menu, [auro-menu]');
9508
+ menu.level = menu.parentElement.level >= 0 ? menu.parentElement.level + 1 : 0;
8012
9509
 
8013
- nestedMenus.forEach((nestedMenu) => {
8014
- // role="listbox" only allows "role=group" for children.
8015
- nestedMenu.setAttribute('role', 'group');
8016
- if (!nestedMenu.hasAttribute('aria-label')) {
8017
- nestedMenu.setAttribute('aria-label', 'submenu');
9510
+ if (menu.level > 0) {
9511
+ menu.setAttribute('role', 'group');
9512
+ menu.removeAttribute("root");
9513
+ if (!menu.hasAttribute('aria-label')) {
9514
+ menu.setAttribute('aria-label', 'submenu');
8018
9515
  }
9516
+ }
8019
9517
 
8020
- const options = nestedMenu.querySelectorAll(':scope > auro-menuoption, :scope > [auro-menuoption]');
8021
- options.forEach((option) => {
8022
- option.innerHTML = this.nestingSpacer + option.innerHTML;
8023
- });
8024
-
8025
- this.handleNestedMenus(nestedMenu);
9518
+ const options = menu.querySelectorAll(':scope > auro-menuoption, :scope > [auro-menuoption]');
9519
+ options.forEach((option) => {
9520
+ const regex = new RegExp(this.nestingSpacer, "gu");
9521
+ option.innerHTML = this.nestingSpacer.repeat(menu.level) + option.innerHTML.replace(regex, '');
8026
9522
  });
8027
9523
  }
8028
9524
 
@@ -8264,28 +9760,51 @@ class AuroMenu extends i$2 {
8264
9760
  }
8265
9761
 
8266
9762
  /**
8267
- * Renders the component.
8268
- * @returns {boolean} - True if loading slots are present and non-empty.
9763
+ * Getter for wrapper classes based on size.
9764
+ * @returns {Object} - Class map for the wrapper element.
9765
+ * @private
8269
9766
  */
8270
- render() {
9767
+ get wrapperClasses() {
9768
+ return e({
9769
+ 'menuWrapper': true,
9770
+ [this.size]: true,
9771
+ });
9772
+ }
9773
+
9774
+ /**
9775
+ * Logic to determine the layout of the component.
9776
+ * @protected
9777
+ * @returns {void}
9778
+ */
9779
+ renderLayout() {
8271
9780
  if (this.loading) {
8272
9781
  return x`
8273
- <auro-menuoption disabled loadingplaceholder class="${this.hasLoadingPlaceholder ? '' : 'empty'}">
8274
- <div>
8275
- <slot name="loadingIcon"></slot>
8276
- <slot name="loadingText"></slot>
8277
- </div>
8278
- </auro-menuoption>
9782
+ <div class="${this.wrapperClasses}">
9783
+ <auro-menuoption
9784
+ disabled
9785
+ loadingplaceholder
9786
+ class="${this.hasLoadingPlaceholder ? "" : "empty"}"
9787
+ >
9788
+ <div>
9789
+ <slot name="loadingIcon" class="body-lg"></slot>
9790
+ <slot name="loadingText"></slot>
9791
+ </div>
9792
+ </auro-menuoption>
9793
+ </div>
8279
9794
  `;
8280
9795
  }
8281
9796
 
8282
- return x`<slot @slotchange=${this.handleSlotChange}></slot>`;
9797
+ return x`
9798
+ <div class="${this.wrapperClasses}">
9799
+ <slot @slotchange=${this.handleSlotChange}></slot>
9800
+ </div>
9801
+ `;
8283
9802
  }
8284
9803
  }
8285
9804
 
8286
- 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}`;
9805
+ var styleCss$1 = i$5`.body-default{font-family:var(--wcss-body-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0);font-size:var(--wcss-body-default-font-size, 1rem);line-height:var(--wcss-body-default-line-height, 1.5)}.body-lg{font-family:var(--wcss-body-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0);font-size:var(--wcss-body-lg-font-size, 1.125rem);line-height:var(--wcss-body-lg-line-height, 1.63)}.body-sm{font-family:var(--wcss-body-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0);font-size:var(--wcss-body-sm-font-size, 0.875rem);line-height:var(--wcss-body-sm-line-height, 1.25)}.body-xs{font-family:var(--wcss-body-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0);font-size:var(--wcss-body-xs-font-size, 0.75rem);line-height:var(--wcss-body-xs-line-height, 1)}.body-2xs{font-family:var(--wcss-body-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0);font-size:var(--wcss-body-2xs-font-size, 0.625rem);line-height:var(--wcss-body-2xs-line-height, 0.88)}.display-2xl{font-family:var(--wcss-display-2xl-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);letter-spacing:var(--wcss-display-2xl-letter-spacing, 0);font-weight:var(--wcss-display-2xl-weight, 300);line-height:var(--wcss-display-2xl-line-height, 1.3);font-size:var(--wcss-display-2xl-font-size, clamp(3.5rem, 6vw, 5.375rem))}.display-xl{font-family:var(--wcss-display-xl-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);letter-spacing:var(--wcss-display-xl-letter-spacing, 0);font-weight:var(--wcss-display-xl-weight, 300);line-height:var(--wcss-display-xl-line-height, 1.3);font-size:var(--wcss-display-xl-font-size, clamp(3rem, 5.3333333333vw, 4.5rem))}.display-lg{font-family:var(--wcss-display-lg-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);letter-spacing:var(--wcss-display-lg-letter-spacing, 0);font-weight:var(--wcss-display-lg-weight, 300);line-height:var(--wcss-display-lg-line-height, 1.3);font-size:var(--wcss-display-lg-font-size, clamp(2.75rem, 4.6666666667vw, 4rem))}.display-md{font-family:var(--wcss-display-md-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);letter-spacing:var(--wcss-display-md-letter-spacing, 0);font-weight:var(--wcss-display-md-weight, 300);line-height:var(--wcss-display-md-line-height, 1.3);font-size:var(--wcss-display-md-font-size, clamp(2.5rem, 4vw, 3.5rem))}.display-sm{font-family:var(--wcss-display-sm-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);letter-spacing:var(--wcss-display-sm-letter-spacing, 0);font-weight:var(--wcss-display-sm-weight, 300);line-height:var(--wcss-display-sm-line-height, 1.3);font-size:var(--wcss-display-sm-font-size, clamp(2rem, 3.6666666667vw, 3rem))}.display-xs{font-family:var(--wcss-display-xs-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);letter-spacing:var(--wcss-display-xs-letter-spacing, 0);font-weight:var(--wcss-display-xs-weight, 300);line-height:var(--wcss-display-xs-line-height, 1.3);font-size:var(--wcss-display-xs-font-size, clamp(1.75rem, 3vw, 2.375rem))}.heading-xl{font-family:var(--wcss-heading-xl-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);letter-spacing:var(--wcss-heading-xl-letter-spacing, 0);font-weight:var(--wcss-heading-xl-weight, 300);line-height:var(--wcss-heading-xl-line-height, 1.3);font-size:var(--wcss-heading-xl-font-size, clamp(2rem, 3vw, 2.5rem))}.heading-lg{font-family:var(--wcss-heading-lg-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);letter-spacing:var(--wcss-heading-lg-letter-spacing, 0);font-weight:var(--wcss-heading-lg-weight, 300);line-height:var(--wcss-heading-lg-line-height, 1.3);font-size:var(--wcss-heading-lg-font-size, clamp(1.75rem, 2.6666666667vw, 2.25rem))}.heading-md{font-family:var(--wcss-heading-md-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);letter-spacing:var(--wcss-heading-md-letter-spacing, 0);font-weight:var(--wcss-heading-md-weight, 300);line-height:var(--wcss-heading-md-line-height, 1.3);font-size:var(--wcss-heading-md-font-size, clamp(1.625rem, 2.3333333333vw, 1.75rem))}.heading-sm{font-family:var(--wcss-heading-sm-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);letter-spacing:var(--wcss-heading-sm-letter-spacing, 0);font-weight:var(--wcss-heading-sm-weight, 300);line-height:var(--wcss-heading-sm-line-height, 1.3);font-size:var(--wcss-heading-sm-font-size, clamp(1.375rem, 2vw, 1.5rem))}.heading-xs{font-family:var(--wcss-heading-xs-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);letter-spacing:var(--wcss-heading-xs-letter-spacing, 0);font-weight:var(--wcss-heading-xs-weight, 450);line-height:var(--wcss-heading-xs-line-height, 1.3);font-size:var(--wcss-heading-xs-font-size, clamp(1.25rem, 1.6666666667vw, 1.25rem))}.heading-2xs{font-family:var(--wcss-heading-2xs-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);letter-spacing:var(--wcss-heading-2xs-letter-spacing, 0);font-weight:var(--wcss-heading-2xs-weight, 450);line-height:var(--wcss-heading-2xs-line-height, 1.3);font-size:var(--wcss-heading-2xs-font-size, clamp(1.125rem, 1.5vw, 1.125rem))}.accent-2xl{font-family:var(--wcss-accent-2xl-family, "Good OT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);letter-spacing:var(--wcss-accent-2xl-letter-spacing, 0.05em);font-weight:var(--wcss-accent-2xl-weight, 450);line-height:var(--wcss-accent-2xl-line-height, 1);font-size:var(--wcss-accent-2xl-font-size, clamp(2rem, 3.1666666667vw, 2.375rem));text-transform:uppercase}.accent-xl{font-family:var(--wcss-accent-xl-family, "Good OT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);letter-spacing:var(--wcss-accent-xl-letter-spacing, 0.05em);font-weight:var(--wcss-accent-xl-weight, 450);line-height:var(--wcss-accent-xl-line-height, 1.3);font-size:var(--wcss-accent-xl-font-size, clamp(1.625rem, 2.3333333333vw, 2rem));text-transform:uppercase}.accent-lg{font-family:var(--wcss-accent-lg-family, "Good OT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);letter-spacing:var(--wcss-accent-lg-letter-spacing, 0.05em);font-weight:var(--wcss-accent-lg-weight, 450);line-height:var(--wcss-accent-lg-line-height, 1.3);font-size:var(--wcss-accent-lg-font-size, clamp(1.5rem, 2.1666666667vw, 1.75rem));text-transform:uppercase}.accent-md{font-family:var(--wcss-accent-md-family, "Good OT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);letter-spacing:var(--wcss-accent-md-letter-spacing, 0.05em);font-weight:var(--wcss-accent-md-weight, 500);line-height:var(--wcss-accent-md-line-height, 1.3);font-size:var(--wcss-accent-md-font-size, clamp(1.375rem, 1.8333333333vw, 1.5rem));text-transform:uppercase}.accent-sm{font-family:var(--wcss-accent-sm-family, "Good OT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);letter-spacing:var(--wcss-accent-sm-letter-spacing, 0.05em);font-weight:var(--wcss-accent-sm-weight, 500);line-height:var(--wcss-accent-sm-line-height, 1.3);font-size:var(--wcss-accent-sm-font-size, clamp(1.125rem, 1.5vw, 1.25rem));text-transform:uppercase}.accent-xs{font-family:var(--wcss-accent-xs-family, "Good OT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);letter-spacing:var(--wcss-accent-xs-letter-spacing, 0.1em);font-weight:var(--wcss-accent-xs-weight, 500);line-height:var(--wcss-accent-xs-line-height, 1.3);font-size:var(--wcss-accent-xs-font-size, clamp(1rem, 1.3333333333vw, 1rem));text-transform:uppercase}.accent-2xs{font-family:var(--wcss-accent-2xs-family, "Good OT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);letter-spacing:var(--wcss-accent-2xs-letter-spacing, 0.1em);font-weight:var(--wcss-accent-2xs-weight, 450);line-height:var(--wcss-accent-2xs-line-height, 1.3);font-size:var(--wcss-accent-2xs-font-size, clamp(0.875rem, 1.1666666667vw, 0.875rem));text-transform:uppercase}:host{cursor:pointer;user-select:none}:host .wrapper{display:flex;align-items:center;padding-right:var(--ds-size-200, 1rem);padding-left:calc(var(--ds-size-150, 0.75rem) + var(--ds-size-300, 1.5rem) + var(--ds-size-100, 0.5rem));padding-top:var(--ds-size-50, 0.25rem);padding-bottom:var(--ds-size-50, 0.25rem);border-radius:var(--ds-size-100, 0.5rem);-webkit-tap-highlight-color:transparent}:host .wrapper[class*=shape-box]{border-radius:unset}:host .wrapper[class*=shape-snowflake]{border-radius:unset;line-height:24px}:host .wrapper[class*=shape-pill]{border-radius:30px}:host .wrapper[class*=-lg]{padding-top:var(--ds-size-75, 0.375rem);padding-bottom:var(--ds-size-75, 0.375rem);padding-right:var(--ds-size-150, 0.75rem);line-height:26px}:host .wrapper[class*=-xl]{padding-top:var(--ds-size-100, 0.5rem);padding-bottom:var(--ds-size-100, 0.5rem);padding-right:var(--ds-size-200, 1rem);line-height:26px}:host slot{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}:host [auro-icon]{--ds-auro-icon-size: var(--ds-size-300, 1.5rem);margin-right:var(--ds-size-150, 0.75rem);margin-left:var(--ds-size-100, 0.5rem)}:host ::slotted(.nestingSpacer){display:inline-block;width:var(--ds-size-300, 1.5rem)}:host([loadingplaceholder]) .wrapper{padding-left:calc(var(--ds-size-150, 0.75rem) + var(--ds-size-300, 1.5rem) + var(--ds-size-100, 0.5rem))}:host([selected]) .wrapper{padding-left:0}:host([nocheckmark]) .wrapper{padding-left:var(--ds-size-150, 0.75rem)}:host([nocheckmark]) .wrapper[class*=-lg]{padding-left:var(--ds-size-150, 0.75rem)}:host([nocheckmark]) .wrapper[class*=-xl]{padding-left:var(--ds-size-200, 1rem)}:host([hidden]){display:none}:host([static]){pointer-events:none}:host([disabled]:hover){cursor:auto}:host([disabled]){user-select:none;pointer-events:none}`;
8287
9806
 
8288
- 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)}`;
9807
+ var colorCss$1 = i$5`:host .wrapper{background-color:var(--ds-auro-menuoption-container-color, transparent);box-shadow:inset 0 0 0 1px var(--ds-auro-menuoption-container-border-color, transparent);color:var(--ds-auro-menuoption-text-color)}:host svg{fill:var(--ds-auro-menuoption-icon-color)}:host([disabled]){--ds-auro-menuoption-container-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-menuoption-text-color: var(--ds-basic-color-texticon-disabled, #d0d0d0);--ds-auro-menuoption-icon-color: var(--ds-basic-color-texticon-disabled, #d0d0d0)}:host(:hover),:host(.active){--ds-auro-menuoption-container-color: var(--ds-basic-color-surface-accent1-muted, #ebfafd)}:host(:focus){--ds-auro-menuoption-container-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-menuoption-container-border-color: var(--ds-basic-color-border-brand, #00274a)}:host([selected]){--ds-auro-menuoption-container-color: var(--ds-basic-color-surface-accent1-subtle, #b4eff9);--ds-auro-menuoption-text-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-menuoption-icon-color: var(--ds-basic-color-texticon-default, #2a2a2a)}:host([selected]:hover),:host([selected].active){--ds-auro-menuoption-container-color: var(--ds-basic-color-surface-accent1-muted, #ebfafd)}:host([selected]:focus){--ds-auro-menuoption-container-color: var(--ds-basic-color-surface-accent1-subtle, #b4eff9);--ds-auro-menuoption-container-border-color: var(--ds-basic-color-border-brand, #00274a)}:host(:focus:hover),:host(:focus.active){--ds-auro-menuoption-container-color: var(--ds-basic-color-surface-accent1-muted, #ebfafd);--ds-auro-menuoption-container-border-color: var(--ds-basic-color-border-brand, #00274a)}:host([selected]:focus:hover),:host([selected]:focus.active){--ds-auro-menuoption-container-color: var(--ds-basic-color-surface-accent1-muted, #ebfafd);--ds-auro-menuoption-container-border-color: var(--ds-basic-color-border-brand, #00274a)}`;
8289
9808
 
8290
9809
  // Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
8291
9810
  // See LICENSE in the project root for license information.
@@ -8558,7 +10077,8 @@ class AuroIcon extends BaseIcon {
8558
10077
  * Allows custom color to be set.
8559
10078
  */
8560
10079
  customColor: {
8561
- type: Boolean
10080
+ type: Boolean,
10081
+ reflect: true
8562
10082
  },
8563
10083
 
8564
10084
  /**
@@ -8633,8 +10153,12 @@ class AuroIcon extends BaseIcon {
8633
10153
  async firstUpdated() {
8634
10154
  await super.firstUpdated();
8635
10155
 
8636
- // Removes the SVG description for screenreader if ariaHidden is set to true
8637
- if (!this.hasAttribute('ariaHidden') && this.svg) {
10156
+ /**
10157
+ * icons provide a description for screen readers. Icon only instances Auro-button
10158
+ * depend on this description to provide context for the user using a screen reader.
10159
+ * Removes the SVG description for screen reader if ariaHidden is set to true.
10160
+ */
10161
+ if (this.hasAttribute('ariaHidden') && this.svg) {
8638
10162
  const svgDesc = this.svg.querySelector('desc');
8639
10163
 
8640
10164
  if (svgDesc) {
@@ -8678,7 +10202,7 @@ class AuroIcon extends BaseIcon {
8678
10202
  }
8679
10203
  }
8680
10204
 
8681
- var iconVersion = '8.0.3';
10205
+ var iconVersion = '8.1.1';
8682
10206
 
8683
10207
  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>"};
8684
10208
 
@@ -8696,10 +10220,20 @@ var checkmarkIcon = {"svg":"<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlin
8696
10220
  * @event auroMenuOption-mouseover - Notifies that this option has been hovered over.
8697
10221
  * @slot - Specifies text for an option, but is not the value.
8698
10222
  */
8699
- class AuroMenuOption extends i$2 {
10223
+ class AuroMenuOption extends AuroElement$4 {
8700
10224
  constructor() {
8701
10225
  super();
8702
10226
 
10227
+ /**
10228
+ * @private
10229
+ */
10230
+ this.shape = undefined;
10231
+
10232
+ /**
10233
+ * @private
10234
+ */
10235
+ this.size = undefined;
10236
+
8703
10237
  /**
8704
10238
  * Generate unique names for dependency components.
8705
10239
  */
@@ -8718,11 +10252,12 @@ class AuroMenuOption extends i$2 {
8718
10252
  /**
8719
10253
  * @private
8720
10254
  */
8721
- this.runtimeUtils = new AuroLibraryRuntimeUtils$4();
10255
+ this.runtimeUtils = new AuroLibraryRuntimeUtils$5();
8722
10256
  }
8723
10257
 
8724
10258
  static get properties() {
8725
10259
  return {
10260
+ ...super.properties,
8726
10261
  nocheckmark: {
8727
10262
  type: Boolean,
8728
10263
  reflect: true
@@ -8762,13 +10297,20 @@ class AuroMenuOption extends i$2 {
8762
10297
  *
8763
10298
  */
8764
10299
  static register(name = "auro-menuoption") {
8765
- AuroLibraryRuntimeUtils$4.prototype.registerComponent(name, AuroMenuOption);
10300
+ AuroLibraryRuntimeUtils$5.prototype.registerComponent(name, AuroMenuOption);
8766
10301
  }
8767
10302
 
8768
10303
  firstUpdated() {
8769
10304
  // Add the tag name as an attribute if it is different than the component name
8770
10305
  this.runtimeUtils.handleComponentTagRename(this, 'auro-menuoption');
8771
10306
 
10307
+ if (!this.hasAttribute('size')) {
10308
+ this.size = this.parentElement.getAttribute('size') || 'sm';
10309
+ }
10310
+ if (!this.hasAttribute('shape')) {
10311
+ this.shape = this.parentElement.getAttribute('shape') || 'box';
10312
+ }
10313
+
8772
10314
  this.setAttribute('role', 'option');
8773
10315
  this.setAttribute('aria-selected', 'false');
8774
10316
 
@@ -8784,6 +10326,8 @@ class AuroMenuOption extends i$2 {
8784
10326
 
8785
10327
  // observer for selected property changes
8786
10328
  updated(changedProperties) {
10329
+ super.updated(changedProperties);
10330
+
8787
10331
  if (changedProperties.has('selected')) {
8788
10332
  this.setAttribute('aria-selected', this.selected.toString());
8789
10333
  }
@@ -8802,13 +10346,36 @@ class AuroMenuOption extends i$2 {
8802
10346
 
8803
10347
  svg.setAttribute('slot', 'svg');
8804
10348
 
8805
- return u`<${this.iconTag} customColor customSvg slot="icon">${svg}</${this.iconTag}>`;
10349
+ return u`<${this.iconTag} customColor customSvg>${svg}</${this.iconTag}>`;
8806
10350
  }
8807
10351
 
8808
- render() {
10352
+ /**
10353
+ * Logic to determine the layout of the component.
10354
+ * @protected
10355
+ * @returns {void}
10356
+ */
10357
+ renderLayout() {
10358
+
10359
+ const fontClassMap = {
10360
+ xs: 'body-sm',
10361
+ sm: 'body-default',
10362
+ md: 'body-default',
10363
+ lg: 'body-lg',
10364
+ xl: 'body-lg'
10365
+ };
10366
+
10367
+ const classes = e({
10368
+ 'wrapper': true,
10369
+ [this.size ? fontClassMap[this.size] : 'body-sm']: true,
10370
+ });
10371
+
8809
10372
  return u`
8810
- ${this.selected && !this.nocheckmark ? this.generateIconHtml(checkmarkIcon.svg) : undefined}
8811
- <slot></slot>
10373
+ <div class="${classes}">
10374
+ ${this.selected && !this.nocheckmark
10375
+ ? this.generateIconHtml(checkmarkIcon.svg)
10376
+ : undefined}
10377
+ <slot></slot>
10378
+ </div>
8812
10379
  `;
8813
10380
  }
8814
10381
  }