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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (148) hide show
  1. package/components/bibtemplate/dist/auro-bibtemplate.d.ts +12 -2
  2. package/components/bibtemplate/dist/buttonVersion.d.ts +2 -0
  3. package/components/bibtemplate/dist/headerVersion.d.ts +1 -1
  4. package/components/bibtemplate/dist/iconVersion.d.ts +1 -1
  5. package/components/bibtemplate/dist/index.js +1242 -94
  6. package/components/bibtemplate/dist/registered.js +1242 -94
  7. package/components/checkbox/README.md +1 -1
  8. package/components/checkbox/demo/api.html +16 -10
  9. package/components/checkbox/demo/api.md +54 -19
  10. package/components/checkbox/demo/api.min.js +71 -46
  11. package/components/checkbox/demo/index.html +16 -10
  12. package/components/checkbox/demo/index.md +2 -2
  13. package/components/checkbox/demo/index.min.js +71 -46
  14. package/components/checkbox/demo/readme.html +16 -9
  15. package/components/checkbox/demo/readme.md +1 -1
  16. package/components/checkbox/dist/auro-checkbox-group.d.ts +1 -1
  17. package/components/checkbox/dist/auro-checkbox.d.ts +6 -3
  18. package/components/checkbox/dist/index.js +70 -45
  19. package/components/checkbox/dist/registered.js +70 -45
  20. package/components/combobox/README.md +2 -0
  21. package/components/combobox/demo/api.html +16 -10
  22. package/components/combobox/demo/api.md +121 -8
  23. package/components/combobox/demo/api.min.js +3314 -1013
  24. package/components/combobox/demo/index.html +16 -10
  25. package/components/combobox/demo/index.md +20 -34
  26. package/components/combobox/demo/index.min.js +3314 -1013
  27. package/components/combobox/demo/readme.html +16 -9
  28. package/components/combobox/demo/readme.md +2 -0
  29. package/components/combobox/dist/auro-combobox.d.ts +59 -14
  30. package/components/combobox/dist/index.js +3008 -850
  31. package/components/combobox/dist/registered.js +3008 -850
  32. package/components/counter/demo/api.html +17 -10
  33. package/components/counter/demo/api.md +167 -21
  34. package/components/counter/demo/api.min.js +3419 -773
  35. package/components/counter/demo/index.html +17 -10
  36. package/components/counter/demo/index.md +191 -34
  37. package/components/counter/demo/index.min.js +3419 -773
  38. package/components/counter/demo/readme.html +16 -9
  39. package/components/counter/dist/auro-counter-button.d.ts +2 -0
  40. package/components/counter/dist/auro-counter-group.d.ts +162 -11
  41. package/components/counter/dist/auro-counter.d.ts +16 -0
  42. package/components/counter/dist/helptextVersion.d.ts +2 -0
  43. package/components/counter/dist/iconVersion.d.ts +1 -1
  44. package/components/counter/dist/index.js +3419 -773
  45. package/components/counter/dist/registered.js +3419 -773
  46. package/components/datepicker/README.md +2 -1
  47. package/components/datepicker/demo/api.html +16 -10
  48. package/components/datepicker/demo/api.md +70 -28
  49. package/components/datepicker/demo/api.min.js +11970 -8081
  50. package/components/datepicker/demo/index.html +16 -10
  51. package/components/datepicker/demo/index.md +87 -8
  52. package/components/datepicker/demo/index.min.js +11970 -8081
  53. package/components/datepicker/demo/readme.html +16 -9
  54. package/components/datepicker/demo/readme.md +2 -1
  55. package/components/datepicker/dist/auro-datepicker.d.ts +152 -12
  56. package/components/datepicker/dist/buttonVersion.d.ts +1 -1
  57. package/components/datepicker/dist/iconVersion.d.ts +2 -0
  58. package/components/datepicker/dist/index.js +14577 -10688
  59. package/components/datepicker/dist/popoverVersion.d.ts +1 -1
  60. package/components/datepicker/dist/registered.js +14577 -10688
  61. package/components/dropdown/demo/api.html +16 -10
  62. package/components/dropdown/demo/api.md +89 -281
  63. package/components/dropdown/demo/api.min.js +451 -271
  64. package/components/dropdown/demo/index.html +16 -10
  65. package/components/dropdown/demo/index.md +92 -362
  66. package/components/dropdown/demo/index.min.js +451 -271
  67. package/components/dropdown/demo/readme.html +16 -9
  68. package/components/dropdown/dist/auro-dropdown.d.ts +43 -82
  69. package/components/dropdown/dist/auro-dropdownBib.d.ts +14 -0
  70. package/components/dropdown/dist/index.js +450 -270
  71. package/components/dropdown/dist/registered.js +450 -270
  72. package/components/form/demo/api.html +16 -9
  73. package/components/form/demo/api.md +1 -1
  74. package/components/form/demo/api.min.js +3 -3
  75. package/components/form/demo/autocomplete.html +19 -3
  76. package/components/form/demo/index.html +16 -9
  77. package/components/form/demo/index.min.js +3 -3
  78. package/components/form/demo/readme.html +16 -9
  79. package/components/form/demo/working.html +19 -13
  80. package/components/form/dist/auro-form.d.ts +1 -1
  81. package/components/form/dist/index.js +2 -2
  82. package/components/form/dist/registered.js +2 -2
  83. package/components/helptext/dist/auro-helptext.d.ts +0 -2
  84. package/components/helptext/dist/index.js +3 -5
  85. package/components/helptext/dist/registered.js +3 -5
  86. package/components/input/README.md +6 -2
  87. package/components/input/demo/api.html +16 -10
  88. package/components/input/demo/api.md +235 -135
  89. package/components/input/demo/api.min.js +1046 -301
  90. package/components/input/demo/index.html +16 -10
  91. package/components/input/demo/index.md +55 -32
  92. package/components/input/demo/index.min.js +1062 -317
  93. package/components/input/demo/readme.html +16 -9
  94. package/components/input/demo/readme.md +6 -2
  95. package/components/input/dist/auro-input.d.ts +26 -2
  96. package/components/input/dist/base-input.d.ts +47 -11
  97. package/components/input/dist/buttonVersion.d.ts +1 -1
  98. package/components/input/dist/iconVersion.d.ts +1 -1
  99. package/components/input/dist/index.js +1061 -316
  100. package/components/input/dist/registered.js +1061 -316
  101. package/components/layoutElement/dist/index.js +11 -8
  102. package/components/layoutElement/dist/registered.js +97 -0
  103. package/components/menu/demo/api.html +17 -10
  104. package/components/menu/demo/api.md +65 -8
  105. package/components/menu/demo/api.min.js +301 -63
  106. package/components/menu/demo/index.html +16 -10
  107. package/components/menu/demo/index.min.js +301 -63
  108. package/components/menu/demo/readme.html +16 -9
  109. package/components/menu/dist/auro-menu.d.ts +53 -7
  110. package/components/menu/dist/auro-menuoption.d.ts +21 -3
  111. package/components/menu/dist/iconVersion.d.ts +1 -1
  112. package/components/menu/dist/index.js +286 -48
  113. package/components/menu/dist/registered.js +286 -48
  114. package/components/menu/dist/styles/default/tokens-css.d.ts +2 -0
  115. package/components/radio/demo/api.html +16 -10
  116. package/components/radio/demo/api.md +41 -9
  117. package/components/radio/demo/api.min.js +95 -97
  118. package/components/radio/demo/index.html +16 -10
  119. package/components/radio/demo/index.min.js +95 -97
  120. package/components/radio/demo/readme.html +16 -9
  121. package/components/radio/dist/auro-radio-group.d.ts +1 -1
  122. package/components/radio/dist/auro-radio.d.ts +11 -12
  123. package/components/radio/dist/index.js +94 -96
  124. package/components/radio/dist/registered.js +94 -96
  125. package/components/select/README.md +1 -0
  126. package/components/select/demo/api.html +16 -10
  127. package/components/select/demo/api.js +0 -2
  128. package/components/select/demo/api.md +159 -125
  129. package/components/select/demo/api.min.js +2281 -730
  130. package/components/select/demo/index.html +17 -11
  131. package/components/select/demo/index.md +1074 -259
  132. package/components/select/demo/index.min.js +2283 -720
  133. package/components/select/demo/readme.html +16 -9
  134. package/components/select/demo/readme.md +1 -0
  135. package/components/select/dist/auro-select.d.ts +86 -25
  136. package/components/select/dist/index.js +2175 -755
  137. package/components/select/dist/registered.js +2175 -755
  138. package/package.json +31 -28
  139. /package/components/{datepicker/dist/styles/default/color-css.d.ts → counter/dist/styles/shapeSize-css.d.ts} +0 -0
  140. /package/components/datepicker/dist/styles/{emphasized/style-css.d.ts → classic/color-css.d.ts} +0 -0
  141. /package/components/{input/dist/styles/default/input-css.d.ts → datepicker/dist/styles/classic/style-css.d.ts} +0 -0
  142. /package/components/{input/dist/styles/default/label-css.d.ts → datepicker/dist/styles/snowflake/color-css.d.ts} +0 -0
  143. /package/components/{input/dist/styles/input-css.d.ts → datepicker/dist/styles/snowflake/style-css.d.ts} +0 -0
  144. /package/components/{menu/dist/styles/color-menu-css.d.ts → dropdown/dist/styles/style-css.d.ts} +0 -0
  145. /package/components/menu/dist/styles/{color-menuoption-css.d.ts → default/color-menu-css.d.ts} +0 -0
  146. /package/components/menu/dist/styles/{style-menu-css.d.ts → default/color-menuoption-css.d.ts} +0 -0
  147. /package/components/menu/dist/styles/{style-menuoption-css.d.ts → default/style-menu-css.d.ts} +0 -0
  148. /package/components/menu/dist/styles/{tokens-css.d.ts → default/style-menuoption-css.d.ts} +0 -0
@@ -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-basic-color-status-error-subtle, #fbc6c6);--ds-auro-select-outline-color: transparent}`;
142
145
 
143
146
  class DateFormatter {
144
147
 
@@ -556,7 +559,7 @@ const {
556
559
 
557
560
  /* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
558
561
 
559
- let AuroLibraryRuntimeUtils$4 = class AuroLibraryRuntimeUtils {
562
+ let AuroLibraryRuntimeUtils$5 = class AuroLibraryRuntimeUtils {
560
563
 
561
564
  /* eslint-disable jsdoc/require-param */
562
565
 
@@ -626,7 +629,7 @@ let AuroLibraryRuntimeUtils$4 = class AuroLibraryRuntimeUtils {
626
629
  class AuroFormValidation {
627
630
 
628
631
  constructor() {
629
- this.runtimeUtils = new AuroLibraryRuntimeUtils$4();
632
+ this.runtimeUtils = new AuroLibraryRuntimeUtils$5();
630
633
  }
631
634
 
632
635
  /**
@@ -686,19 +689,19 @@ class AuroFormValidation {
686
689
  {
687
690
  check: (e) => e.value?.length > 0 && e.value?.length < e.minLength,
688
691
  validity: 'tooShort',
689
- message: e => e.setCustomValidityTooShort || e.setCustomValidity || ''
692
+ message: e => e.getAttribute('setCustomValidityTooShort') || e.setCustomValidity || ''
690
693
  },
691
694
  {
692
695
  check: (e) => e.value?.length > e.maxLength,
693
696
  validity: 'tooLong',
694
- message: e => e.setCustomValidityTooLong || e.setCustomValidity || ''
697
+ message: e => e.getAttribute('setCustomValidityTooLong') || e.setCustomValidity || ''
695
698
  }
696
699
  ],
697
700
  pattern: [
698
701
  {
699
702
  check: (e) => e.pattern && !new RegExp(`^${e.pattern}$`, 'u').test(e.value),
700
703
  validity: 'patternMismatch',
701
- message: e => e.setCustomValidityPatternMismatch || e.setCustomValidity || ''
704
+ message: e => e.getAttribute('setCustomValidityPatternMismatch') || e.setCustomValidity || ''
702
705
  }
703
706
  ]
704
707
  },
@@ -845,13 +848,24 @@ class AuroFormValidation {
845
848
  this.getInputElements(elem);
846
849
  this.getAuroInputs(elem);
847
850
 
848
- // Validate only if noValidate is not true and the input does not have focus
851
+ // Check if validation should run
849
852
  let validationShouldRun =
853
+
854
+ // If the validation was forced
850
855
  force ||
851
- (!elem.contains(document.activeElement) &&
852
- (elem.touched ||
853
- (!elem.touched && typeof elem.value !== "undefined"))) ||
854
- elem.validateOnInput;
856
+
857
+ // If the validation should run on input
858
+ elem.validateOnInput ||
859
+
860
+ // State-based checks
861
+ (
862
+ // Element is not currently focused
863
+ !elem.contains(document.activeElement) && // native input is not focused directly
864
+ !document.activeElement.shadowRoot?.contains(elem) && // native input is not focused in the shadow DOM of another component
865
+
866
+ // And element has been touched or is untouched but has a value
867
+ ( elem.touched || (!elem.touched && typeof elem.value !== "undefined") )
868
+ );
855
869
 
856
870
  if (elem.hasAttribute('error')) {
857
871
  elem.validity = 'customError';
@@ -893,10 +907,10 @@ class AuroFormValidation {
893
907
  if (!hasValue && elem.required && elem.touched) {
894
908
  elem.validity = 'valueMissing';
895
909
  elem.errorMessage = elem.setCustomValidityValueMissing || elem.setCustomValidity || '';
896
- } else if (this.runtimeUtils.elementMatch(elem, 'auro-input')) {
910
+ } else if (hasValue && this.runtimeUtils.elementMatch(elem, 'auro-input')) {
897
911
  this.validateType(elem);
898
912
  this.validateElementAttributes(elem);
899
- } else if (this.runtimeUtils.elementMatch(elem, 'auro-counter') || this.runtimeUtils.elementMatch(elem, 'auro-counter-group')) {
913
+ } else if (hasValue && (this.runtimeUtils.elementMatch(elem, 'auro-counter') || this.runtimeUtils.elementMatch(elem, 'auro-counter-group'))) {
900
914
  this.validateElementAttributes(elem);
901
915
  }
902
916
  }
@@ -905,7 +919,9 @@ class AuroFormValidation {
905
919
  elem.validity = this.auroInputElements[0].validity;
906
920
  elem.errorMessage = this.auroInputElements[0].errorMessage;
907
921
 
908
- if (elem.validity === 'valid' && this.auroInputElements.length > 1) {
922
+ // combobox has 2 inputs but no need to check validity on the 2nd one which is in fullscreen bib.
923
+ // combobox's 2nd input will have noValidate set true.
924
+ if (elem.validity === 'valid' && this.auroInputElements.length > 1 && !this.auroInputElements[1].noValidate) {
909
925
  elem.validity = this.auroInputElements[1].validity;
910
926
  elem.errorMessage = this.auroInputElements[1].errorMessage;
911
927
  }
@@ -2717,7 +2733,7 @@ class AuroFloatingUI {
2717
2733
  */
2718
2734
  mirrorSize() {
2719
2735
  // mirror the boxsize from bibSizer
2720
- if (this.element.bibSizer) {
2736
+ if (this.element.bibSizer && this.element.matchWidth) {
2721
2737
  const sizerStyle = window.getComputedStyle(this.element.bibSizer);
2722
2738
  const bibContent = this.element.bib.shadowRoot.querySelector(".container");
2723
2739
  if (sizerStyle.width !== '0px') {
@@ -2853,6 +2869,7 @@ class AuroFloatingUI {
2853
2869
  this.element.bib.style.left = "0px";
2854
2870
  this.element.bib.style.width = '';
2855
2871
  this.element.bib.style.height = '';
2872
+ this.element.style.contain = '';
2856
2873
 
2857
2874
  // reset the size that was mirroring `size` css-part
2858
2875
  const bibContent = this.element.bib.shadowRoot.querySelector(".container");
@@ -2877,6 +2894,7 @@ class AuroFloatingUI {
2877
2894
  this.element.bib.style.position = '';
2878
2895
  this.element.bib.removeAttribute('isfullscreen');
2879
2896
  this.element.isBibFullscreen = false;
2897
+ this.element.style.contain = 'layout';
2880
2898
  }
2881
2899
 
2882
2900
  const isChanged = this.strategy && this.strategy !== value;
@@ -2929,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.
@@ -3618,9 +3893,9 @@ let AuroIcon$2 = class AuroIcon extends BaseIcon$2 {
3618
3893
  static get styles() {
3619
3894
  return [
3620
3895
  super.styles,
3621
- i$5`${tokensCss$2$1}`,
3622
- i$5`${styleCss$2$2}`,
3623
- i$5`${colorCss$3$1}`
3896
+ i$5`${tokensCss$2$2}`,
3897
+ i$5`${styleCss$3$2}`,
3898
+ i$5`${colorCss$3$2}`
3624
3899
  ];
3625
3900
  }
3626
3901
 
@@ -3654,8 +3929,12 @@ let AuroIcon$2 = class AuroIcon extends BaseIcon$2 {
3654
3929
  async firstUpdated() {
3655
3930
  await super.firstUpdated();
3656
3931
 
3657
- // Removes the SVG description for screenreader if ariaHidden is set to true
3658
- if (!this.hasAttribute('ariaHidden') && this.svg) {
3932
+ /**
3933
+ * icons provide a description for screen readers. Icon only instances Auro-button
3934
+ * depend on this description to provide context for the user using a screen reader.
3935
+ * Removes the SVG description for screen reader if ariaHidden is set to true.
3936
+ */
3937
+ if (this.hasAttribute('ariaHidden') && this.svg) {
3659
3938
  const svgDesc = this.svg.querySelector('desc');
3660
3939
 
3661
3940
  if (svgDesc) {
@@ -3701,11 +3980,11 @@ let AuroIcon$2 = class AuroIcon extends BaseIcon$2 {
3701
3980
 
3702
3981
  var iconVersion$2 = '6.1.2';
3703
3982
 
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}`;
3983
+ 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
3984
 
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)}`;
3985
+ 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
3986
 
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)}`;
3987
+ 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
3988
 
3710
3989
  // Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
3711
3990
  // See LICENSE in the project root for license information.
@@ -3726,7 +4005,7 @@ const DESIGN_TOKEN_BREAKPOINT_OPTIONS = [
3726
4005
  */
3727
4006
 
3728
4007
  class AuroDropdownBib extends i$2 {
3729
-
4008
+ // not extending AuroElement because Bib needs only `shape` prop
3730
4009
  constructor() {
3731
4010
  super();
3732
4011
 
@@ -3736,13 +4015,16 @@ class AuroDropdownBib extends i$2 {
3736
4015
  this._mobileBreakpointValue = undefined;
3737
4016
 
3738
4017
  AuroLibraryRuntimeUtils$2$1.prototype.handleComponentTagRename(this, 'auro-dropdownbib');
4018
+
4019
+ this.shape = "rounded";
4020
+ this.matchWidth = false;
3739
4021
  }
3740
4022
 
3741
4023
  static get styles() {
3742
4024
  return [
3743
- styleCss$1$2,
3744
- colorCss$2$1,
3745
- tokensCss$1$1
4025
+ styleCss$2$2,
4026
+ colorCss$2$2,
4027
+ tokensCss$1$2
3746
4028
  ];
3747
4029
  }
3748
4030
 
@@ -3773,6 +4055,15 @@ class AuroDropdownBib extends i$2 {
3773
4055
  reflect: true
3774
4056
  },
3775
4057
 
4058
+ /**
4059
+ * If declared, the bib width will match the trigger width.
4060
+ * @private
4061
+ */
4062
+ matchWidth: {
4063
+ type: Boolean,
4064
+ reflect: true
4065
+ },
4066
+
3776
4067
  /**
3777
4068
  * If declared, will apply border-radius to the bib.
3778
4069
  */
@@ -3786,6 +4077,11 @@ class AuroDropdownBib extends i$2 {
3786
4077
  */
3787
4078
  bibTemplate: {
3788
4079
  type: Object
4080
+ },
4081
+
4082
+ shape: {
4083
+ type: String,
4084
+ reflect: true
3789
4085
  }
3790
4086
  };
3791
4087
  }
@@ -3865,8 +4161,16 @@ class AuroDropdownBib extends i$2 {
3865
4161
 
3866
4162
  // function that renders the HTML and CSS into the scope of the component
3867
4163
  render() {
4164
+ const classes = {
4165
+ container: true
4166
+ };
4167
+
4168
+ // Since this class does not inherit from AuroElement, we apply the shape-related class within the `render` function,
4169
+ // mimicking the class naming convention used in AuroElement.resetShapeClasses.
4170
+ classes[`shape-${this.shape}`] = true;
4171
+
3868
4172
  return u`
3869
- <div class="container" part="bibContainer">
4173
+ <div class="${e(classes)}" part="bibContainer">
3870
4174
  <slot></slot>
3871
4175
  </div>
3872
4176
  `;
@@ -3875,21 +4179,23 @@ class AuroDropdownBib extends i$2 {
3875
4179
 
3876
4180
  var dropdownVersion$1 = '3.0.0';
3877
4181
 
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}`;
4182
+ 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}`;
4183
+
4184
+ var colorCss$1$2 = i$5`:host(:not([layout*=classic])){--ds-auro-dropdown-trigger-border-color: transparent}:host(:not([ondark])) .wrapper{border-color:var(--ds-auro-dropdown-trigger-border-color);background-color:var(--ds-auro-dropdown-trigger-background-color);color:var(--ds-auro-dropdown-trigger-text-color)}:host(:not([ondark])) .wrapper:focus-within,:host(:not([ondark])) .wrapper:active{--ds-auro-dropdown-trigger-border-color: var(--ds-advanced-color-state-focused, #01426a);--ds-auro-dropdown-trigger-outline-color: var(--ds-advanced-color-state-focused, #01426a)}:host(:not([onDark])[disabled]){--ds-auro-dropdown-trigger-text-color: var(--ds-basic-color-texticon-disabled, #d0d0d0);--ds-auro-dropdown-label-text-color: var(--ds-basic-color-texticon-disabled, #d0d0d0);--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-border-subtle, #dddddd)}:host(:not([ondark])[error]){--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-status-error, #e31f26)}:host([onDark]) .label{color:var(--ds-auro-dropdown-label-text-color)}:host([onDark]) .wrapper{border-color:var(--ds-auro-dropdown-trigger-border-color);background-color:var(--ds-auro-dropdown-trigger-background-color);color:var(--ds-auro-dropdown-trigger-text-color)}:host([onDark]) .wrapper:focus-within,:host([onDark]) .wrapper:active{--ds-auro-dropdown-trigger-border-color: var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-dropdown-trigger-outline-color: var(--ds-advanced-color-state-focused-inverse, #ffffff)}:host([onDark][disabled]){--ds-auro-dropdown-trigger-text-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894);--ds-auro-dropdown-label-text-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894);--ds-auro-dropdown-trigger-container-color: var(--ds-advanced-color-shared-background-inverse-disabled, rgba(255, 255, 255, 0.1))}:host([ondark][error]){--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-status-error-subtle, #fbc6c6)}`;
3879
4185
 
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)}`;
4186
+ 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%}`;
3881
4187
 
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))}`;
4188
+ var classicColorCss = i$5``;
3883
4189
 
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)}`;
4190
+ 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)}`;
3885
4191
 
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)}`;
4192
+ 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)}`;
3887
4193
 
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)}`;
4194
+ var styleSnowflakeCss = i$5`:host([layout*=snowflake]) .leftIndent{width:calc(100% - var(--ds-size-600, 3rem));margin-left:var(--ds-size-300, 1.5rem)}:host([layout*=snowflake]) .rightIndent{width:calc(100% - var(--ds-size-600, 3rem));margin-right:var(--ds-size-300, 1.5rem)}.layout-snowflake .chevron,.layout-snowflake-left .chevron,.layout-snowflake-right .chevron{margin-right:var(--ds-size-300, 1.5rem)}`;
3889
4195
 
3890
- var colorCss$5 = i$5`:host([error]){--ds-auro-helptext-color: var(--ds-basic-color-status-error, #e31f26)}:host([onDark]){--ds-auro-helptext-color: var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}:host([onDark][error]){--ds-auro-helptext-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8)}.helptext-wrapper{color:var(--ds-auro-helptext-color)}`;
4196
+ var colorCss$5 = i$5`:host([error]){--ds-auro-helptext-color: var(--ds-basic-color-status-error, #e31f26)}:host([onDark]){--ds-auro-helptext-color: var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}:host([onDark][error]){--ds-auro-helptext-color: var(--ds-basic-color-status-error-subtle, #fbc6c6)}.helptext-wrapper{color:var(--ds-auro-helptext-color)}`;
3891
4197
 
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}`;
4198
+ 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
4199
 
3894
4200
  var tokensCss$4 = i$5`:host{--ds-auro-helptext-color: var(--ds-basic-color-texticon-muted, #676767)}`;
3895
4201
 
@@ -3900,7 +4206,7 @@ var tokensCss$4 = i$5`:host{--ds-auro-helptext-color: var(--ds-basic-color-texti
3900
4206
 
3901
4207
  /* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
3902
4208
 
3903
- let AuroLibraryRuntimeUtils$3 = class AuroLibraryRuntimeUtils {
4209
+ let AuroLibraryRuntimeUtils$4 = class AuroLibraryRuntimeUtils {
3904
4210
 
3905
4211
  /* eslint-disable jsdoc/require-param */
3906
4212
 
@@ -3969,8 +4275,6 @@ let AuroLibraryRuntimeUtils$3 = class AuroLibraryRuntimeUtils {
3969
4275
 
3970
4276
  /**
3971
4277
  * 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
4278
  */
3975
4279
  let AuroHelpText$1 = class AuroHelpText extends i$2 {
3976
4280
 
@@ -3981,7 +4285,7 @@ let AuroHelpText$1 = class AuroHelpText extends i$2 {
3981
4285
  this.onDark = false;
3982
4286
  this.hasTextContent = false;
3983
4287
 
3984
- AuroLibraryRuntimeUtils$3.prototype.handleComponentTagRename(this, 'auro-helptext');
4288
+ AuroLibraryRuntimeUtils$4.prototype.handleComponentTagRename(this, 'auro-helptext');
3985
4289
  }
3986
4290
 
3987
4291
  static get styles() {
@@ -4037,7 +4341,7 @@ let AuroHelpText$1 = class AuroHelpText extends i$2 {
4037
4341
  *
4038
4342
  */
4039
4343
  static register(name = "auro-helptext") {
4040
- AuroLibraryRuntimeUtils$3.prototype.registerComponent(name, AuroHelpText);
4344
+ AuroLibraryRuntimeUtils$4.prototype.registerComponent(name, AuroHelpText);
4041
4345
  }
4042
4346
 
4043
4347
  updated() {
@@ -4086,7 +4390,7 @@ let AuroHelpText$1 = class AuroHelpText extends i$2 {
4086
4390
  // function that renders the HTML and CSS into the scope of the component
4087
4391
  render() {
4088
4392
  return x`
4089
- <div class="helptext-wrapper" ?visible="${this.hasTextContent}">
4393
+ <div class="helptext-wrapper body-xs" ?visible="${this.hasTextContent}">
4090
4394
  <slot @slotchange=${this.handleSlotChange}></slot>
4091
4395
  </div>
4092
4396
  `;
@@ -4095,7 +4399,7 @@ let AuroHelpText$1 = class AuroHelpText extends i$2 {
4095
4399
 
4096
4400
  var helpTextVersion$1 = '1.0.0';
4097
4401
 
4098
- let AuroElement$2 = class AuroElement extends i$2 {
4402
+ let AuroElement$3 = class AuroElement extends i$2 {
4099
4403
  static get properties() {
4100
4404
  return {
4101
4405
 
@@ -4130,19 +4434,22 @@ let AuroElement$2 = class AuroElement extends i$2 {
4130
4434
  }
4131
4435
 
4132
4436
  resetShapeClasses() {
4133
- if (this.shape && this.size) {
4134
- const wrapper = this.shadowRoot.querySelector('.wrapper');
4437
+ const wrapper = this.shadowRoot.querySelector('.wrapper');
4135
4438
 
4136
- if (wrapper) {
4137
- wrapper.classList.forEach((className) => {
4138
- if (className.startsWith('shape-')) {
4139
- wrapper.classList.remove(className);
4140
- }
4141
- });
4439
+ if (wrapper) {
4440
+ wrapper.classList.forEach((className) => {
4441
+ if (className.startsWith('shape-')) {
4442
+ wrapper.classList.remove(className);
4443
+ }
4444
+ });
4142
4445
 
4446
+ if (this.shape && this.size) {
4143
4447
  wrapper.classList.add(`shape-${this.shape.toLowerCase()}-${this.size.toLowerCase()}`);
4448
+ } else {
4449
+ wrapper.classList.add('shape-none');
4144
4450
  }
4145
4451
  }
4452
+
4146
4453
  }
4147
4454
 
4148
4455
  resetLayoutClasses() {
@@ -4191,20 +4498,20 @@ let AuroElement$2 = class AuroElement extends i$2 {
4191
4498
  // See LICENSE in the project root for license information.
4192
4499
 
4193
4500
 
4194
- /**
4195
- * @attr { Boolean } disableEventShow - If declared, the dropdown will only show by calling the API .show() public method.
4501
+
4502
+ /*
4196
4503
  * @slot - Default slot for the popover content.
4197
- * @slot label - Defines the content of the label.
4198
4504
  * @slot helpText - Defines the content of the helpText.
4199
4505
  * @slot trigger - Defines the content of the trigger.
4200
4506
  * @csspart trigger - The trigger content container.
4201
4507
  * @csspart chevron - The collapsed/expanded state icon container.
4508
+ * @csspart size - The size of the dropdown bib. (height, width, maxHeight, maxWidth only)
4202
4509
  * @csspart helpText - The helpText content container.
4203
4510
  * @event auroDropdown-triggerClick - Notifies that the trigger has been clicked.
4204
4511
  * @event auroDropdown-toggled - Notifies that the visibility of the dropdown bib has changed.
4205
4512
  * @event auroDropdown-idAdded - Notifies consumers that the unique ID for the dropdown bib has been generated.
4206
4513
  */
4207
- class AuroDropdown extends AuroElement$2 {
4514
+ class AuroDropdown extends AuroElement$3 {
4208
4515
  constructor() {
4209
4516
  super();
4210
4517
 
@@ -4213,23 +4520,25 @@ class AuroDropdown extends AuroElement$2 {
4213
4520
  this.matchWidth = false;
4214
4521
  this.noHideOnThisFocusLoss = false;
4215
4522
 
4216
- this.errorMessage = ''; // TODO - check with Doug if there is still more to do here
4523
+ this.errorMessage = undefined; // TODO - check with Doug if there is still more to do here
4217
4524
 
4218
4525
  // Layout Config
4219
- this.layout = 'classic';
4220
- this.shape = 'rounded';
4221
- this.size = 'xl';
4526
+ this.layout = undefined;
4527
+ this.shape = undefined;
4528
+ this.size = undefined;
4529
+
4222
4530
  this.parentBorder = false;
4223
4531
 
4224
- this.privateDefaults();
4225
- }
4532
+ /** @private */
4533
+ this.handleDropdownToggle = this.handleDropdownToggle.bind(this);
4226
4534
 
4227
- get commonLabelClasses() {
4228
- return {
4229
- // 'withValue': this.value && this.value.length > 0
4230
- };
4535
+ this.privateDefaults();
4231
4536
  }
4232
4537
 
4538
+ /**
4539
+ * @private
4540
+ * @returns {object} Class definition for the wrapper element.
4541
+ */
4233
4542
  get commonWrapperClasses() {
4234
4543
  return {
4235
4544
  'trigger': true,
@@ -4247,13 +4556,10 @@ class AuroDropdown extends AuroElement$2 {
4247
4556
  privateDefaults() {
4248
4557
  this.chevron = false;
4249
4558
  this.disabled = false;
4559
+ this.disableFocusTrap = false;
4250
4560
  this.error = false;
4251
- this.inset = false;
4252
- this.rounded = false;
4253
4561
  this.tabIndex = 0;
4254
4562
  this.noToggle = false;
4255
- this.a11yAutocomplete = 'none';
4256
- this.labeled = true;
4257
4563
  this.a11yRole = 'button';
4258
4564
  this.onDark = false;
4259
4565
  this.showTriggerBorders = true;
@@ -4349,6 +4655,18 @@ class AuroDropdown extends AuroElement$2 {
4349
4655
  this.floater.showBib();
4350
4656
  }
4351
4657
 
4658
+ /**
4659
+ * When bib is open, focus on the first element inside of bib.
4660
+ * If not, trigger element will get focus.
4661
+ */
4662
+ focus() {
4663
+ if (this.isPopoverVisible && this.focusTrap) {
4664
+ this.focusTrap.focusFirstElement();
4665
+ } else {
4666
+ this.trigger.focus();
4667
+ }
4668
+ }
4669
+
4352
4670
  // function to define props used within the scope of this component
4353
4671
  static get properties() {
4354
4672
  return {
@@ -4362,6 +4680,15 @@ class AuroDropdown extends AuroElement$2 {
4362
4680
  reflect: true
4363
4681
  },
4364
4682
 
4683
+ /**
4684
+ * If declared, the dropdown will only show by calling the API .show() public method.
4685
+ * @default false
4686
+ */
4687
+ disableEventShow: {
4688
+ type: Boolean,
4689
+ reflect: true
4690
+ },
4691
+
4365
4692
  /**
4366
4693
  * If declared, applies a border around the trigger slot.
4367
4694
  */
@@ -4380,17 +4707,17 @@ class AuroDropdown extends AuroElement$2 {
4380
4707
  },
4381
4708
 
4382
4709
  /**
4383
- * If declared, the dropdown will be styled with the common theme.
4710
+ * If declared, the dropdown is not interactive.
4384
4711
  */
4385
- common: {
4712
+ disabled: {
4386
4713
  type: Boolean,
4387
4714
  reflect: true
4388
4715
  },
4389
4716
 
4390
4717
  /**
4391
- * If declared, the dropdown is not interactive.
4718
+ * If declared, the focus trap inside of bib will be turned off.
4392
4719
  */
4393
- disabled: {
4720
+ disableFocusTrap: {
4394
4721
  type: Boolean,
4395
4722
  reflect: true
4396
4723
  },
@@ -4435,27 +4762,13 @@ class AuroDropdown extends AuroElement$2 {
4435
4762
  reflect: true
4436
4763
  },
4437
4764
 
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
4765
  /**
4455
4766
  * If true, the dropdown bib is displayed.
4456
4767
  */
4457
4768
  isPopoverVisible: {
4458
- type: Boolean
4769
+ type: Boolean,
4770
+ reflect: true,
4771
+ attribute: 'open'
4459
4772
  },
4460
4773
 
4461
4774
  /**
@@ -4494,15 +4807,6 @@ class AuroDropdown extends AuroElement$2 {
4494
4807
  reflect: true
4495
4808
  },
4496
4809
 
4497
- /**
4498
- * Defines if there is a label preset.
4499
- * @private
4500
- */
4501
- labeled: {
4502
- type: Boolean,
4503
- reflect: true
4504
- },
4505
-
4506
4810
  /**
4507
4811
  * Defines if the trigger should size based on the parent element providing the border UI.
4508
4812
  * @private
@@ -4563,6 +4867,9 @@ class AuroDropdown extends AuroElement$2 {
4563
4867
  reflect: true
4564
4868
  },
4565
4869
 
4870
+ /**
4871
+ * If declared, and a function is set, that function will execute when the slot content is updated.
4872
+ */
4566
4873
  onSlotChange: {
4567
4874
  type: Function,
4568
4875
  reflect: false
@@ -4577,14 +4884,6 @@ class AuroDropdown extends AuroElement$2 {
4577
4884
  reflect: true
4578
4885
  },
4579
4886
 
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
4887
  /**
4589
4888
  * @private
4590
4889
  */
@@ -4599,22 +4898,15 @@ class AuroDropdown extends AuroElement$2 {
4599
4898
  type: String || undefined,
4600
4899
  attribute: false,
4601
4900
  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
4901
  }
4611
4902
  };
4612
4903
  }
4613
4904
 
4614
4905
  static get styles() {
4615
4906
  return [
4907
+ styleCss$1$2,
4908
+ tokensCss$1$2,
4616
4909
  colorCss$1$2,
4617
- tokensCss$1$1,
4618
4910
 
4619
4911
  // default layout
4620
4912
  classicColorCss,
@@ -4676,13 +4968,27 @@ class AuroDropdown extends AuroElement$2 {
4676
4968
  if (changedProperties.size === 0 || changedProperties.has('isPopoverVisible')) {
4677
4969
  this.handleTriggerContentSlotChange();
4678
4970
  }
4971
+ }
4679
4972
 
4973
+ /**
4974
+ * Handles the custom event `auroDropdown-toggled` to update the visibility of the dropdown bib.
4975
+ * @private
4976
+ * @param {CustomEvent} event - The custom event that contains the dropdown toggle information.
4977
+ */
4978
+ handleDropdownToggle(event) {
4979
+ this.updateFocusTrap();
4980
+ this.isPopoverVisible = event.detail.expanded;
4981
+ const eventType = event.detail.eventType || "unknown";
4982
+ if (!this.isPopoverVisible && this.hasFocus && eventType === "keydown") {
4983
+ this.trigger.focus();
4984
+ }
4680
4985
  }
4681
4986
 
4682
4987
  firstUpdated() {
4683
4988
 
4684
4989
  // Configure the floater to, this will generate the ID for the bib
4685
4990
  this.floater.configure(this, 'auroDropdown');
4991
+ this.addEventListener('auroDropdown-toggled', this.handleDropdownToggle);
4686
4992
 
4687
4993
  /**
4688
4994
  * @description Let subscribers know that the dropdown ID ha been generated and added.
@@ -4700,6 +5006,13 @@ class AuroDropdown extends AuroElement$2 {
4700
5006
 
4701
5007
  // Add the tag name as an attribute if it is different than the component name
4702
5008
  this.runtimeUtils.handleComponentTagRename(this, 'auro-dropdown');
5009
+
5010
+ this.trigger.addEventListener('click', () => {
5011
+ this.dispatchEvent(new CustomEvent('auroDropdown-triggerClick', {
5012
+ bubbles: true,
5013
+ composed: true
5014
+ }));
5015
+ });
4703
5016
  }
4704
5017
 
4705
5018
  /**
@@ -4743,70 +5056,33 @@ class AuroDropdown extends AuroElement$2 {
4743
5056
  }
4744
5057
 
4745
5058
  /**
4746
- * Function to support @focusout event.
4747
5059
  * @private
4748
- * @return {void}
4749
5060
  */
4750
- handleFocusout() {
4751
- this.hasFocus = false;
4752
- }
5061
+ updateFocusTrap() {
5062
+ // If the dropdown is open, create a focus trap and focus the first element
5063
+ if (this.isPopoverVisible && !this.disableFocusTrap) {
5064
+ this.focusTrap = new FocusTrap(this.bibContent);
5065
+ this.focusTrap.focusFirstElement();
5066
+ return;
5067
+ }
4753
5068
 
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
- });
4801
-
4802
- if (result) {
4803
- this.showTriggerBorders = !nodes.some((node) => {
4804
- const tagName = node.tagName.toLowerCase();
4805
- return focusableElements.includes(tagName) && !focusableElementsThatNeedBorders.includes(tagName);
4806
- });
5069
+ // Guard Clause: Ensure there is a focus trap currently active before continuing
5070
+ if (!this.focusTrap) {
5071
+ return;
4807
5072
  }
4808
5073
 
4809
- return result;
5074
+ // If the dropdown is not open, disconnect the focus trap if it exists
5075
+ this.focusTrap.disconnect();
5076
+ this.focusTrap = undefined;
5077
+ }
5078
+
5079
+ /**
5080
+ * Function to support @focusout event.
5081
+ * @private
5082
+ * @return {void}
5083
+ */
5084
+ handleFocusout() {
5085
+ this.hasFocus = false;
4810
5086
  }
4811
5087
 
4812
5088
  /**
@@ -4902,14 +5178,13 @@ class AuroDropdown extends AuroElement$2 {
4902
5178
  * @returns {void}
4903
5179
  */
4904
5180
  handleTriggerContentSlotChange(event) {
4905
-
4906
5181
  this.floater.handleTriggerTabIndex();
4907
5182
 
4908
5183
  // Get the trigger
4909
5184
  const trigger = this.shadowRoot.querySelector('#trigger');
4910
5185
 
4911
5186
  // Get the trigger slot
4912
- const triggerSlot = this.shadowRoot.querySelector('.triggerContent slot');
5187
+ const triggerSlot = this.shadowRoot.querySelector('.triggerContentWrapper slot');
4913
5188
 
4914
5189
  // If there's a trigger slot
4915
5190
  if (triggerSlot) {
@@ -4921,7 +5196,7 @@ class AuroDropdown extends AuroElement$2 {
4921
5196
  if (triggerContentNodes) {
4922
5197
 
4923
5198
  // See if any of them are focusable elements
4924
- this.triggerContentFocusable = triggerContentNodes.some((node) => this.containsFocusableElement(node));
5199
+ this.triggerContentFocusable = triggerContentNodes.some((node) => getFocusableElements(node).length > 0);
4925
5200
 
4926
5201
  // If any of them are focusable elements
4927
5202
  if (this.triggerContentFocusable) {
@@ -4981,29 +5256,6 @@ class AuroDropdown extends AuroElement$2 {
4981
5256
  }
4982
5257
  }
4983
5258
 
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
5259
  /**
5008
5260
  * Returns HTML for the common portion of the layouts.
5009
5261
  * @private
@@ -5016,24 +5268,19 @@ class AuroDropdown extends AuroElement$2 {
5016
5268
  <div
5017
5269
  id="trigger"
5018
5270
  class="${e(this.commonWrapperClasses)}" part="wrapper"
5019
- tabindex="${this.tabIndex}"
5271
+ tabindex="${o(this.triggerContentFocusable ? undefined : this.tabIndex)}"
5020
5272
  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)}"
5273
+ aria-expanded="${o(this.a11yRole === 'button' || this.triggerContentFocusable ? undefined : this.isPopoverVisible)}"
5274
+ aria-controls="${o(this.a11yRole === 'button' || this.triggerContentFocusable ? undefined : this.dropdownId)}"
5023
5275
  aria-labelledby="${o(this.triggerContentFocusable ? undefined : 'triggerLabel')}"
5024
5276
  @focusin="${this.handleFocusin}"
5025
5277
  @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>
5278
+ <div class="triggerContentWrapper" id="triggerLabel">
5279
+ <slot
5280
+ name="trigger"
5281
+ @slotchange="${this.handleTriggerContentSlotChange}"></slot>
5035
5282
  </div>
5036
- ${this.chevron || this.common ? u`
5283
+ ${this.chevron ? u`
5037
5284
  <div
5038
5285
  id="showStateIcon"
5039
5286
  class="chevron"
@@ -5054,11 +5301,9 @@ class AuroDropdown extends AuroElement$2 {
5054
5301
  <div id="bibSizer" part="size"></div>
5055
5302
  <${this.dropdownBibTag}
5056
5303
  id="bib"
5304
+ shape="${this.shape}"
5057
5305
  ?data-show="${this.isPopoverVisible}"
5058
- ?isfullscreen="${this.isBibFullscreen}"
5059
- ?common="${this.common}"
5060
- ?rounded="${this.common || this.rounded}"
5061
- ?inset="${this.common || this.inset}">
5306
+ ?isfullscreen="${this.isBibFullscreen}">
5062
5307
  <div class="slotContent">
5063
5308
  <slot @slotchange="${this.handleDefaultSlot}"></slot>
5064
5309
  </div>
@@ -5073,62 +5318,13 @@ class AuroDropdown extends AuroElement$2 {
5073
5318
  * @returns {html} - Returns HTML for the classic layout.
5074
5319
  */
5075
5320
  renderLayoutClassic() {
5321
+ // TODO: check with Doug why this was never used?
5322
+ const helpTextClasses = {
5323
+ 'helpText': true
5324
+ };
5076
5325
 
5077
5326
  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>
5327
+ ${this.renderBasicHtml(helpTextClasses)}
5132
5328
  `;
5133
5329
  }
5134
5330
 
@@ -5196,9 +5392,9 @@ class AuroDropdown extends AuroElement$2 {
5196
5392
 
5197
5393
  var dropdownVersion = '3.0.0';
5198
5394
 
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)}`;
5395
+ 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
5396
 
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)}`;
5397
+ 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
5398
 
5203
5399
  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
5400
 
@@ -5209,7 +5405,7 @@ var tokenCss = i$5`:host{--ds-auro-dropdownbib-header-boxshadow-color: var(--ds-
5209
5405
 
5210
5406
  /* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
5211
5407
 
5212
- let AuroLibraryRuntimeUtils$1$1 = class AuroLibraryRuntimeUtils {
5408
+ let AuroLibraryRuntimeUtils$2 = class AuroLibraryRuntimeUtils {
5213
5409
 
5214
5410
  /* eslint-disable jsdoc/require-param */
5215
5411
 
@@ -5241,77 +5437,1171 @@ let AuroLibraryRuntimeUtils$1$1 = class AuroLibraryRuntimeUtils {
5241
5437
  ) {
5242
5438
  return __Closest(base);
5243
5439
  }
5244
- /* eslint-enable jsdoc/require-param */
5440
+ /* eslint-enable jsdoc/require-param */
5441
+
5442
+ /**
5443
+ * 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.
5444
+ * @param {Object} elem - The element to check.
5445
+ * @param {String} tagName - The name of the Auro component to check for or add as an attribute.
5446
+ * @returns {void}
5447
+ */
5448
+ handleComponentTagRename(elem, tagName) {
5449
+ const tag = tagName.toLowerCase();
5450
+ const elemTag = elem.tagName.toLowerCase();
5451
+
5452
+ if (elemTag !== tag) {
5453
+ elem.setAttribute(tag, true);
5454
+ }
5455
+ }
5456
+
5457
+ /**
5458
+ * Validates if an element is a specific Auro component.
5459
+ * @param {Object} elem - The element to validate.
5460
+ * @param {String} tagName - The name of the Auro component to check against.
5461
+ * @returns {Boolean} - Returns true if the element is the specified Auro component.
5462
+ */
5463
+ elementMatch(elem, tagName) {
5464
+ const tag = tagName.toLowerCase();
5465
+ const elemTag = elem.tagName.toLowerCase();
5466
+
5467
+ return elemTag === tag || elem.hasAttribute(tag);
5468
+ }
5469
+ };
5470
+
5471
+ // Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
5472
+ // See LICENSE in the project root for license information.
5473
+
5474
+
5475
+ class AuroDependencyVersioning {
5476
+
5477
+ /**
5478
+ * Generates a unique string to be used for child auro element naming.
5479
+ * @private
5480
+ * @param {string} baseName - Defines the first part of the unique element name.
5481
+ * @param {string} version - Version of the component that will be appended to the baseName.
5482
+ * @returns {string} - Unique string to be used for naming.
5483
+ */
5484
+ generateElementName(baseName, version) {
5485
+ let result = baseName;
5486
+
5487
+ result += '-';
5488
+ result += version.replace(/[.]/g, '_');
5489
+
5490
+ return result;
5491
+ }
5492
+
5493
+ /**
5494
+ * Generates a unique string to be used for child auro element naming.
5495
+ * @param {string} baseName - Defines the first part of the unique element name.
5496
+ * @param {string} version - Version of the component that will be appended to the baseName.
5497
+ * @returns {string} - Unique string to be used for naming.
5498
+ */
5499
+ generateTag(baseName, version, tagClass) {
5500
+ const elementName = this.generateElementName(baseName, version);
5501
+ const tag = i`${s(elementName)}`;
5502
+
5503
+ if (!customElements.get(elementName)) {
5504
+ customElements.define(elementName, class extends tagClass {});
5505
+ }
5506
+
5507
+ return tag;
5508
+ }
5509
+ }
5510
+
5511
+ /**
5512
+ * Private module-level WeakMap to hold MutationObservers for each host element.
5513
+ */
5514
+ const _observers = new WeakMap();
5515
+
5516
+ /**
5517
+ * Private module-level WeakMap to hold attribute matchers and targets for each host element.
5518
+ * Structure: {
5519
+ * host: {
5520
+ * matchers: Set<Function>,
5521
+ * targets: Map<HTMLElement, Map<Function, {removeOriginal: boolean, currentAttributes: Map<string, string>}>>
5522
+ * }
5523
+ * }
5524
+ */
5525
+ const _transportConfig = new WeakMap();
5526
+
5527
+ /**
5528
+ * Transfers all matching attributes from a host element to a target element and observes for future changes.
5529
+ *
5530
+ * @param {Object} params - The parameters for the function.
5531
+ * @param {HTMLElement} params.host - The host element from which attributes will be transported.
5532
+ * @param {HTMLElement} params.target - The target element to which attributes will be transported.
5533
+ * @param {boolean} [params.removeOriginal=true] - Whether to remove the attributes from the host element.
5534
+ * @param {boolean} [params.observe=true] - Whether to attach a MutationObserver to the host element.
5535
+ * @returns {Function} A function to detach the observer when no longer needed.
5536
+ * @throws {TypeError} If the host or target parameters are not instances of HTMLElement.
5537
+ */
5538
+ const transportAttributes = ({ host, target, match, removeOriginal = true }) => {
5539
+ // Guard Clause: Ensure host is valid HTMLElement instance
5540
+ if (typeof host !== 'object' || !(host instanceof HTMLElement)) {
5541
+ throw new TypeError('a11yUtilities.js | transportAttributes | The "host" parameter must be an instance of HTMLElement.');
5542
+ }
5543
+
5544
+ // Guard Clause: Ensure target is valid HTMLElement instance
5545
+ if (typeof target !== 'object' || !(target instanceof HTMLElement)) {
5546
+ throw new TypeError('a11yUtilities.js | transportAttributes | The "target" parameter must be an instance of HTMLElement.');
5547
+ }
5548
+
5549
+ // Guard Clause: Ensure match is a function
5550
+ if (typeof match !== 'function') {
5551
+ throw new TypeError('a11yUtilities.js | transportAttributes | The "match" parameter must be a function.');
5552
+ }
5553
+
5554
+ // Guard Clause: Ensure removeOriginal is a boolean
5555
+ if (typeof removeOriginal !== 'boolean') {
5556
+ throw new TypeError('a11yUtilities.js | transportAttributes | The "removeOriginal" parameter must be a boolean.');
5557
+ }
5558
+
5559
+ // Register this transport and get cleanup function
5560
+ return _registerTransport({
5561
+ host,
5562
+ target,
5563
+ matcher: match,
5564
+ removeOriginal
5565
+ });
5566
+ };
5567
+
5568
+ /**
5569
+ * Registers a matcher and target for a host element and attaches an observer if needed.
5570
+ *
5571
+ * @param {Object} params - The parameters object.
5572
+ * @param {HTMLElement} params.host - The host element to observe.
5573
+ * @param {HTMLElement} params.target - The target element to receive attributes.
5574
+ * @param {Function} params.matcher - Function that determines which attributes to transport.
5575
+ * @param {boolean} [params.removeOriginal=true] - Whether to remove original attributes.
5576
+ * @param {boolean} [params.observe=true] - Whether to observe for attribute changes.
5577
+ * @returns {Function} Function to detach the specific matcher and target pairing.
5578
+ * @private
5579
+ */
5580
+ const _registerTransport = ({ host, target, matcher, removeOriginal = true }) => {
5581
+ // Initialize config for this host if it doesn't exist
5582
+ if (!_transportConfig.has(host)) {
5583
+ _transportConfig.set(host, {
5584
+ matchers: new Set(),
5585
+ targets: new Map()
5586
+ });
5587
+ }
5588
+
5589
+ const config = _transportConfig.get(host);
5590
+
5591
+ // Add the matcher to the set of matchers for this host
5592
+ config.matchers.add(matcher);
5593
+
5594
+ // Initialize target entry if it doesn't exist
5595
+ if (!config.targets.has(target)) {
5596
+ config.targets.set(target, new Map());
5597
+ }
5598
+
5599
+ // Store the matcher with its removeOriginal setting for this target
5600
+ config.targets.get(target).set(matcher, {
5601
+ removeOriginal,
5602
+ currentAttributes: new Map()
5603
+ });
5604
+
5605
+ // Perform initial attribute transport
5606
+ _transportAttributes({ host, target, matcher, removeOriginal });
5607
+
5608
+ // Attach observer
5609
+ _attachObserver(host);
5610
+
5611
+ // Return cleanup function and utility functions
5612
+ return {
5613
+ cleanup: () => _cleanupTransport(host, target, matcher),
5614
+ getObservedAttributes: () => _getObservedAttributes(host, target, matcher),
5615
+ getObservedAttribute: (attr) => _getObservedAttribute(host, target, matcher, attr),
5616
+ }
5617
+ };
5618
+
5619
+ /**
5620
+ * Cleans up resources associated with a specific matcher and target for a host element.
5621
+ *
5622
+ * @param {HTMLElement} host - The host element
5623
+ * @param {HTMLElement} target - The target element
5624
+ * @param {Function} matcher - The matcher function
5625
+ * @private
5626
+ */
5627
+ const _cleanupTransport = (host, target, matcher) => {
5628
+ const config = _transportConfig.get(host);
5629
+ if (!config) return;
5630
+
5631
+ // Remove this matcher from this target
5632
+ const targetMatchers = config.targets.get(target);
5633
+ if (targetMatchers) {
5634
+ targetMatchers.delete(matcher);
5635
+
5636
+ // If this target has no more matchers, remove it
5637
+ if (targetMatchers.size === 0) {
5638
+ config.targets.delete(target);
5639
+ }
5640
+ }
5641
+
5642
+ // Check if this matcher is still used by any target
5643
+ let matcherStillUsed = false;
5644
+ for (const matcherMap of config.targets.values()) {
5645
+ if (matcherMap.has(matcher)) {
5646
+ matcherStillUsed = true;
5647
+ break;
5648
+ }
5649
+ }
5650
+
5651
+ // If not used anymore, remove from matchers set
5652
+ if (!matcherStillUsed) {
5653
+ config.matchers.delete(matcher);
5654
+ }
5655
+
5656
+ // If no more targets or matchers, detach observer
5657
+ if (config.targets.size === 0 || config.matchers.size === 0) {
5658
+ _detachObserver(host);
5659
+ }
5660
+ };
5661
+
5662
+ /**
5663
+ * Generic function to transport attributes from a host element to a target element.
5664
+ *
5665
+ * @param {Object} params - The parameters object.
5666
+ * @param {HTMLElement} params.host - The host element from which to transport attributes.
5667
+ * @param {HTMLElement} params.target - The target element to which attributes will be transported.
5668
+ * @param {Function} params.matcher - Function that takes an attribute name and returns true if it should be transported.
5669
+ * @param {boolean} [params.removeOriginal=true] - Whether to remove original attributes from host.
5670
+ * @returns {void}
5671
+ * @private
5672
+ */
5673
+ const _transportAttributes = ({ host, target, matcher, removeOriginal = true }) => {
5674
+ // Get a list of all matching attributes on the host element and their values
5675
+ const matchingAttributes = host.getAttributeNames()
5676
+ .filter(attr => matcher(attr))
5677
+ .reduce((acc, attr) => {
5678
+ acc[attr] = host.getAttribute(attr);
5679
+ return acc;
5680
+ }, {});
5681
+
5682
+ // Move matching attributes to the target element, removing them from the host if removeOriginal is true
5683
+ Object.entries(matchingAttributes).forEach(([key, value]) => {
5684
+ _setObservedAttribute(host, target, matcher, key, value);
5685
+ target.setAttribute(key, value);
5686
+ if (removeOriginal) {
5687
+ host.removeAttribute(key);
5688
+ }
5689
+ });
5690
+ };
5691
+
5692
+ /**
5693
+ * Attaches a MutationObserver to the host element to monitor attribute changes.
5694
+ *
5695
+ * @param {HTMLElement} host - The element to observe for attribute changes.
5696
+ * @returns {MutationObserver} The observer instance.
5697
+ * @private
5698
+ */
5699
+ const _attachObserver = (host) => {
5700
+ // If an observer for this host already exists, return it
5701
+ if (_observers.has(host)) {
5702
+ return _observers.get(host);
5703
+ }
5704
+
5705
+ // Create a new MutationObserver
5706
+ const observer = new MutationObserver((mutations) => {
5707
+ const config = _transportConfig.get(host);
5708
+ if (!config) return;
5709
+
5710
+ // For each mutation affecting attributes
5711
+ mutations
5712
+ .filter(mutation => mutation.type === 'attributes')
5713
+ .forEach(mutation => {
5714
+ const attributeName = mutation.attributeName;
5715
+
5716
+ // Find matchers that care about this attribute
5717
+ for (const matcher of config.matchers) {
5718
+ if (matcher(attributeName)) {
5719
+ // For each target that uses this matcher
5720
+ for (const [target, matcherConfigs] of config.targets.entries()) {
5721
+ if (matcherConfigs.has(matcher)) {
5722
+ const { removeOriginal } = matcherConfigs.get(matcher);
5723
+ _transportAttributes({
5724
+ host,
5725
+ target,
5726
+ matcher,
5727
+ removeOriginal
5728
+ });
5729
+ }
5730
+ }
5731
+ }
5732
+ }
5733
+ });
5734
+ });
5735
+
5736
+ // Start observing attribute changes
5737
+ observer.observe(host, { attributes: true });
5738
+
5739
+ // Store the observer
5740
+ _observers.set(host, observer);
5741
+
5742
+ return observer;
5743
+ };
5744
+
5745
+ /**
5746
+ * Detaches and cleans up the MutationObserver for a given host element.
5747
+ *
5748
+ * @param {HTMLElement} host - The element whose observer should be detached.
5749
+ * @private
5750
+ */
5751
+ const _detachObserver = (host) => {
5752
+ if (_observers.has(host)) {
5753
+ const observer = _observers.get(host);
5754
+ observer.disconnect();
5755
+ _observers.delete(host);
5756
+ }
5757
+
5758
+ // Clean up the transport config as well
5759
+ if (_transportConfig.has(host)) {
5760
+ _transportConfig.delete(host);
5761
+ }
5762
+ };
5763
+
5764
+ /**
5765
+ * Gets the matcher configuration for a specific host, target, and matcher
5766
+ * @param {HTMLElement} host - The host element
5767
+ * @param {HTMLElement} target - The target element
5768
+ * @param {Function} matcher - The matcher function
5769
+ * @returns {Object|undefined} The matcher configuration if found
5770
+ * @private
5771
+ */
5772
+ const _getMatcherConfig = (host, target, matcher) => {
5773
+ const config = _transportConfig.get(host);
5774
+ if (!config) return undefined;
5775
+
5776
+ const targetMatchers = config.targets.get(target);
5777
+ if (!targetMatchers) return undefined;
5778
+
5779
+ return targetMatchers.get(matcher);
5780
+ };
5781
+
5782
+ /**
5783
+ * Sets an observed attribute value
5784
+ * @param {HTMLElement} host - The host element
5785
+ * @param {HTMLElement} target - The target element
5786
+ * @param {Function} matcher - The matcher function
5787
+ * @param {string} key - The attribute name
5788
+ * @param {string} value - The attribute value
5789
+ * @private
5790
+ */
5791
+ const _setObservedAttribute = (host, target, matcher, key, value) => {
5792
+ const matcherConfig = _getMatcherConfig(host, target, matcher);
5793
+ if (matcherConfig) {
5794
+ matcherConfig.currentAttributes.set(key, value);
5795
+ }
5796
+ };
5797
+
5798
+ const _getObservedAttribute = (host, target, matcher, attr) => {
5799
+ const matcherConfig = _getMatcherConfig(host, target, matcher);
5800
+ if (matcherConfig) return matcherConfig.currentAttributes.get(attr);
5801
+ return undefined;
5802
+ };
5803
+
5804
+ const _getObservedAttributes = (host, target, matcher) => {
5805
+ const matcherConfig = _getMatcherConfig(host, target, matcher);
5806
+ if (matcherConfig) return Array.from(matcherConfig.currentAttributes.entries());
5807
+ return [];
5808
+ };
5809
+
5810
+ const _matchers = {
5811
+ 'aria-': attr => attr.startsWith('aria-'),
5812
+ 'role': attr => attr.match(/^role$/)
5813
+ };
5814
+
5815
+ const transportAllA11yAttributes = ({ host, target, removeOriginal = true }) => {
5816
+ return transportAttributes({
5817
+ host,
5818
+ target,
5819
+ match: attr => {
5820
+ for (const key in _matchers) {
5821
+ if (_matchers[key](attr)) return true;
5822
+ }
5823
+ return false;
5824
+ },
5825
+ removeOriginal
5826
+ });
5827
+ };
5828
+
5829
+ let AuroElement$1 = class AuroElement extends i$2 {
5830
+
5831
+ /**
5832
+ * @type {Object} return object from transportAttributes via a11yUtilities
5833
+ * @property {Function} cleanup - Function to clean up the attribute watcher.
5834
+ * @property {Function} getCurrentAttributes - Function to get the current attributes being watched and their values.
5835
+ * @property {Function} getObservedAttribute - Function to get the value of a specific observed attribute by name.
5836
+ * @private
5837
+ */
5838
+ attributeWatcher;
5839
+
5840
+ static get properties() {
5841
+ return {
5842
+
5843
+ /**
5844
+ * Defines the layout of an element.
5845
+ * @default {'default'}
5846
+ */
5847
+ layout: {
5848
+ type: String,
5849
+ attribute: "layout",
5850
+ reflect: true
5851
+ },
5852
+
5853
+ /**
5854
+ * Defines the shape of an element.
5855
+ * @property {'default', 'rounded', 'pill', 'circle'}
5856
+ * @default {'default'}
5857
+ */
5858
+ shape: {
5859
+ type: String,
5860
+ attribute: "shape",
5861
+ reflect: true
5862
+ },
5863
+
5864
+ /**
5865
+ * Defines the size of an element.
5866
+ * @property {'xs', 'sm', 'md', 'lg', 'xl'}
5867
+ * @default {'md'}
5868
+ */
5869
+ size: {
5870
+ type: String,
5871
+ attribute: "size",
5872
+ reflect: true
5873
+ },
5874
+
5875
+ /**
5876
+ * This Boolean attribute lets you specify that the element should be rendered in dark mode.
5877
+ * @default {false}
5878
+ */
5879
+ onDark: {
5880
+ type: Boolean,
5881
+ attribute: "ondark",
5882
+ reflect: true
5883
+ },
5884
+
5885
+ /**
5886
+ * A reference to the wrapper element in the shadow DOM.
5887
+ * This is used to apply layout and shape classes dynamically.
5888
+ * @type {HTMLElement|null}
5889
+ * @default {null}
5890
+ * @private
5891
+ */
5892
+ wrapper: {
5893
+ attribute: false,
5894
+ reflect: false
5895
+ }
5896
+ };
5897
+ }
5898
+
5899
+
5900
+
5901
+ resetShapeClasses() {
5902
+ if (this.shape && this.size) {
5903
+
5904
+ if (this.wrapper) {
5905
+ this.wrapper.classList.forEach((className) => {
5906
+ if (className.startsWith('shape-')) {
5907
+ this.wrapper.classList.remove(className);
5908
+ }
5909
+ });
5910
+
5911
+ this.wrapper.classList.add(`shape-${this.shape.toLowerCase()}-${this.size.toLowerCase()}`);
5912
+ }
5913
+ }
5914
+ }
5915
+
5916
+ resetLayoutClasses() {
5917
+ if (this.layout) {
5918
+ if (this.wrapper) {
5919
+ this.wrapper.classList.forEach((className) => {
5920
+ if (className.startsWith('layout-')) {
5921
+ this.wrapper.classList.remove(className);
5922
+ }
5923
+ });
5924
+
5925
+ this.wrapper.classList.add(`layout-${this.layout.toLowerCase()}`);
5926
+ }
5927
+ }
5928
+ }
5929
+
5930
+ updateComponentArchitecture() {
5931
+ this.resetLayoutClasses();
5932
+ this.resetShapeClasses();
5933
+ }
5934
+
5935
+ updated(changedProperties) {
5936
+ if (changedProperties.has('layout') || changedProperties.has('shape') || changedProperties.has('size')) {
5937
+ this.updateComponentArchitecture();
5938
+ }
5939
+ }
5940
+
5941
+ firstUpdated() {
5942
+ super.firstUpdated();
5943
+
5944
+ // Set a reference to the wrapper element in the shadow DOM
5945
+ this.wrapper = this.shadowRoot.querySelector('.wrapper');
5946
+
5947
+ // Initialize the transportation of ARIA attributes to the target element and get the disconnect function for cleanup
5948
+ this.attributeWatcher = transportAllA11yAttributes({ host: this, target: this.shadowRoot.querySelector('.wrapper') });
5949
+ }
5950
+
5951
+ disconnectedCallback() {
5952
+ super.disconnectedCallback();
5953
+
5954
+ // Cleanup the ARIA observer if it exists
5955
+ if (this.attributeWatcher) {
5956
+ this.attributeWatcher.cleanup();
5957
+ this.attributeWatcher = null;
5958
+ }
5959
+ }
5960
+
5961
+ // Try to render the defined `this.layout` layout. If that fails, fall back to the default layout.
5962
+ // This will catch if an invalid layout value is passed in and render the default layout if so.
5963
+ render() {
5964
+ try {
5965
+ return this.renderLayout();
5966
+ } catch (error) {
5967
+ // failed to get the defined layout
5968
+ console.error('Failed to get the defined layout - using the default layout', error); // eslint-disable-line no-console
5969
+
5970
+ // fallback to the default layout
5971
+ return this.getLayout('default');
5972
+ }
5973
+ }
5974
+ };
5975
+
5976
+ 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}`;
5977
+
5978
+ 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)}`;
5979
+
5980
+ 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}`;
5981
+
5982
+ 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}`;
5983
+
5984
+ // Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
5985
+ // See LICENSE in the project root for license information.
5986
+
5987
+ // ---------------------------------------------------------------------
5988
+
5989
+ /* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
5990
+
5991
+ let AuroLibraryRuntimeUtils$1$1 = class AuroLibraryRuntimeUtils {
5992
+
5993
+ /* eslint-disable jsdoc/require-param */
5994
+
5995
+ /**
5996
+ * This will register a new custom element with the browser.
5997
+ * @param {String} name - The name of the custom element.
5998
+ * @param {Object} componentClass - The class to register as a custom element.
5999
+ * @returns {void}
6000
+ */
6001
+ registerComponent(name, componentClass) {
6002
+ if (!customElements.get(name)) {
6003
+ customElements.define(name, class extends componentClass {});
6004
+ }
6005
+ }
6006
+
6007
+ /**
6008
+ * Finds and returns the closest HTML Element based on a selector.
6009
+ * @returns {void}
6010
+ */
6011
+ closestElement(
6012
+ selector, // selector like in .closest()
6013
+ base = this, // extra functionality to skip a parent
6014
+ __Closest = (el, found = el && el.closest(selector)) =>
6015
+ !el || el === document || el === window
6016
+ ? null // standard .closest() returns null for non-found selectors also
6017
+ : found
6018
+ ? found // found a selector INside this element
6019
+ : __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
6020
+ ) {
6021
+ return __Closest(base);
6022
+ }
6023
+ /* eslint-enable jsdoc/require-param */
6024
+
6025
+ /**
6026
+ * 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.
6027
+ * @param {Object} elem - The element to check.
6028
+ * @param {String} tagName - The name of the Auro component to check for or add as an attribute.
6029
+ * @returns {void}
6030
+ */
6031
+ handleComponentTagRename(elem, tagName) {
6032
+ const tag = tagName.toLowerCase();
6033
+ const elemTag = elem.tagName.toLowerCase();
6034
+
6035
+ if (elemTag !== tag) {
6036
+ elem.setAttribute(tag, true);
6037
+ }
6038
+ }
6039
+
6040
+ /**
6041
+ * Validates if an element is a specific Auro component.
6042
+ * @param {Object} elem - The element to validate.
6043
+ * @param {String} tagName - The name of the Auro component to check against.
6044
+ * @returns {Boolean} - Returns true if the element is the specified Auro component.
6045
+ */
6046
+ elementMatch(elem, tagName) {
6047
+ const tag = tagName.toLowerCase();
6048
+ const elemTag = elem.tagName.toLowerCase();
6049
+
6050
+ return elemTag === tag || elem.hasAttribute(tag);
6051
+ }
6052
+ };
6053
+
6054
+ 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}}`;
6055
+
6056
+ 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}`;
6057
+
6058
+ var tokensCss$1$1 = i$5`:host{--ds-auro-loader-background-color:currentcolor;--ds-auro-loader-border-color:currentcolor;--ds-auro-loader-color:currentcolor}`;
6059
+
6060
+ // Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
6061
+ // See LICENSE in the project root for license information.
6062
+
6063
+
6064
+ class AuroLoader extends i$2 {
6065
+ constructor() {
6066
+ super();
6067
+
6068
+ /**
6069
+ * @private
6070
+ */
6071
+ this.keys = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9];
6072
+
6073
+ /**
6074
+ * @private
6075
+ */
6076
+ this.mdCount = 3;
6077
+
6078
+ /**
6079
+ * @private
6080
+ */
6081
+ this.smCount = 2;
6082
+
6083
+ /**
6084
+ * @private
6085
+ */
6086
+ this.runtimeUtils = new AuroLibraryRuntimeUtils$1$1();
6087
+
6088
+ this.orbit = false;
6089
+ this.ringworm = false;
6090
+ this.laser = false;
6091
+ this.pulse = false;
6092
+ }
6093
+
6094
+ // function to define props used within the scope of this component
6095
+ static get properties() {
6096
+ return {
6097
+
6098
+ /**
6099
+ * Sets loader to laser type.
6100
+ */
6101
+ laser: {
6102
+ type: Boolean,
6103
+ reflect: true
6104
+ },
6105
+
6106
+ /**
6107
+ * Sets loader to orbit type.
6108
+ */
6109
+ orbit: {
6110
+ type: Boolean,
6111
+ reflect: true
6112
+ },
6113
+
6114
+ /**
6115
+ * Sets loader to pulse type.
6116
+ */
6117
+ pulse: {
6118
+ type: Boolean,
6119
+ reflect: true
6120
+ },
6121
+
6122
+ /**
6123
+ * Sets loader to ringworm type.
6124
+ */
6125
+ ringworm: {
6126
+ type: Boolean,
6127
+ reflect: true
6128
+ }
6129
+ };
6130
+ }
6131
+
6132
+ static get styles() {
6133
+ return [
6134
+ i$5`${styleCss$2$1}`,
6135
+ i$5`${colorCss$1$1}`,
6136
+ i$5`${tokensCss$1$1}`
6137
+ ];
6138
+ }
6139
+
6140
+ /**
6141
+ * This will register this element with the browser.
6142
+ * @param {string} [name="auro-loader"] - The name of element that you want to register to.
6143
+ *
6144
+ * @example
6145
+ * AuroLoader.register("custom-loader") // this will register this element to <custom-loader/>
6146
+ *
6147
+ */
6148
+ static register(name = "auro-loader") {
6149
+ AuroLibraryRuntimeUtils$1$1.prototype.registerComponent(name, AuroLoader);
6150
+ }
6151
+
6152
+ firstUpdated() {
6153
+ // Add the tag name as an attribute if it is different than the component name
6154
+ this.runtimeUtils.handleComponentTagRename(this, 'auro-loader');
6155
+ }
6156
+
6157
+ connectedCallback() {
6158
+ super.connectedCallback();
6159
+ }
6160
+
6161
+ /**
6162
+ * @private
6163
+ * @returns {Array} Numbered array for template map.
6164
+ */
6165
+ defineTemplate() {
6166
+ let nodes = Array.from(Array(this.mdCount).keys());
6167
+
6168
+ if (this.orbit || this.laser) {
6169
+ nodes = Array.from(Array(this.smCount).keys());
6170
+ } else if (this.ringworm) {
6171
+ nodes = Array.from(Array(0).keys());
6172
+ }
6173
+
6174
+ return nodes;
6175
+ }
6176
+
6177
+ // When using auroElement, use the following attribute and function when hiding content from screen readers.
6178
+ // aria-hidden="${this.hideAudible(this.hiddenAudible)}"
6179
+
6180
+ // function that renders the HTML and CSS into the scope of the component
6181
+ render() {
6182
+ return x`
6183
+ ${this.defineTemplate().map((idx) => x`
6184
+ <span part="element" class="loader node-${idx}"></span>
6185
+ `)}
6186
+
6187
+ <div class="no-animation body-default">Loading...</div>
6188
+
6189
+ ${this.ringworm ? x`
6190
+ <svg part="element" class="circular" viewBox="25 25 50 50">
6191
+ <circle class="path" cx="50" cy="50" r="20" fill="none"/>
6192
+ </svg>`
6193
+ : ``
6194
+ }
6195
+ `;
6196
+ }
6197
+ }
6198
+
6199
+ var loaderVersion = '5.1.0';
6200
+
6201
+ // Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
6202
+ // See LICENSE in the project root for license information.
6203
+
6204
+
6205
+ /**
6206
+ * @slot - Default slot for the text of the button.
6207
+ * @csspart button - Apply CSS to HTML5 button.
6208
+ * @csspart loader - Apply CSS to auro-loader.
6209
+ * @csspart text - Apply CSS to text slot.
6210
+ * @csspart icon - Apply CSS to icon slot.
6211
+ */
6212
+
6213
+ const ICON_ONLY_SHAPES = ['circle', 'square'];
6214
+
6215
+ /**
6216
+ * AuroButton is a custom element that provides a styled, accessible button with support for various states and form association.
6217
+ * It is designed to be flexible, supporting loading states, icon slots, and integration with HTML5 forms.
6218
+ * @property {'default', 'rounded', 'pill', 'circle', 'square'} shape - Defines the shape of the button.
6219
+ * @property {'xs', 'sm', 'md', 'lg', 'xl'} size - Defines the size of the button.
6220
+ * @property {'primary', 'secondary', 'tertiary', 'ghost', 'flat'} variant - Sets the button variant.
6221
+ * @property {'submit', 'reset', 'button'} type - The type of button. Matches HTML5 Button Spec.
6222
+ * @property {boolean} onDark - Indicates if the button is rendered in dark mode.
6223
+ */
6224
+ class AuroButton extends AuroElement$1 {
6225
+
6226
+ /**
6227
+ * Enables form association for this element.
6228
+ * @see https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/attachInternals
6229
+ * @returns {boolean} - Returns true to enable form association.
6230
+ */
6231
+ static get formAssociated() {
6232
+ return true;
6233
+ }
6234
+
6235
+ constructor() {
6236
+ super();
6237
+ this.autofocus = false;
6238
+ this.disabled = false;
6239
+ this.loading = false;
6240
+ this.size = "md";
6241
+ this.shape = "rounded";
6242
+ this.onDark = false;
6243
+ this.fluid = false;
6244
+ this.loadingText = this.loadingText || 'Loading...';
6245
+ this.variant = 'primary';
6246
+
6247
+ // Support for HTML5 forms
6248
+ if (typeof this.attachInternals === 'function') {
6249
+ this.internals = this.attachInternals();
6250
+ } else {
6251
+ this.internals = null;
6252
+
6253
+ // eslint-disable-next-line no-console
6254
+ 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.');
6255
+ }
6256
+
6257
+ /**
6258
+ * Generate unique names for dependency components.
6259
+ */
6260
+ const versioning = new AuroDependencyVersioning();
6261
+
6262
+ /**
6263
+ * @private
6264
+ */
6265
+ this.loaderTag = versioning.generateTag('auro-loader', loaderVersion, AuroLoader);
6266
+
6267
+ /**
6268
+ * @private
6269
+ */
6270
+ this.buttonHref = undefined;
6271
+
6272
+ /**
6273
+ * @private
6274
+ */
6275
+ this.buttonTarget = undefined;
6276
+
6277
+ /**
6278
+ * @private
6279
+ */
6280
+ this.buttonRel = undefined;
6281
+ }
6282
+
6283
+ static get styles() {
6284
+ return [
6285
+ tokensCss$2$1,
6286
+ styleCss$3$1,
6287
+ colorCss$2$1,
6288
+ shapeSize
6289
+ ];
6290
+ }
6291
+
6292
+ static get properties() {
6293
+ return {
6294
+
6295
+ ...super.properties,
6296
+
6297
+ /**
6298
+ * Override layout since it isn't used in this component.
6299
+ * @private
6300
+ */
6301
+ layout: {
6302
+ type: Boolean,
6303
+ attribute: false,
6304
+ reflect: false
6305
+ },
6306
+
6307
+ /**
6308
+ * This Boolean attribute lets you specify that the button should have input focus when the page loads, unless overridden by the user.
6309
+ */
6310
+ autofocus: {
6311
+ type: Boolean,
6312
+ reflect: true
6313
+ },
6314
+
6315
+ /**
6316
+ * If set to true, button will become disabled and not allow for interactions.
6317
+ */
6318
+ disabled: {
6319
+ type: Boolean,
6320
+ reflect: true
6321
+ },
6322
+
6323
+ /**
6324
+ * Alters the shape of the button to be full width of its parent container.
6325
+ */
6326
+ fluid: {
6327
+ type: Boolean,
6328
+ reflect: true
6329
+ },
6330
+
6331
+ /**
6332
+ * If set to true button text will be replaced with `auro-loader` and become disabled.
6333
+ */
6334
+ loading: {
6335
+ type: Boolean,
6336
+ reflect: true
6337
+ },
6338
+
6339
+ /**
6340
+ * 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.
6341
+ */
6342
+ loadingText: {
6343
+ type: String
6344
+ },
6345
+
6346
+ /**
6347
+ * Populates `tabindex` to define the focusable sequence in keyboard navigation.
6348
+ */
6349
+ tIndex: {
6350
+ type: String,
6351
+ reflect: true
6352
+ },
6353
+
6354
+ /**
6355
+ * Populates `tabindex` to define the focusable sequence in keyboard navigation.
6356
+ * Must be used with "." to ensure the host element does not retain a reference to the `tabindex` attribute.
6357
+ * Example: `<auro-button .tabindex="${this.disabled ? '-1' : '0'}"></auro-button>`.
6358
+ */
6359
+ tabindex: {
6360
+ type: String,
6361
+ reflect: false
6362
+ },
6363
+
6364
+ /**
6365
+ * Sets title attribute. The information is most often shown as a tooltip text when the mouse moves over the element.
6366
+ */
6367
+ title: {
6368
+ type: String,
6369
+ reflect: true
6370
+ },
6371
+
6372
+ /**
6373
+ * The type of the button. Possible values are: `submit`, `reset`, `button`.
6374
+ */
6375
+ type: {
6376
+ type: String,
6377
+ reflect: true
6378
+ },
6379
+
6380
+ /**
6381
+ * Defines the value associated with the button which is submitted with the form data.
6382
+ */
6383
+ value: {
6384
+ type: String,
6385
+ reflect: true
6386
+ },
6387
+
6388
+ /**
6389
+ * Sets button variant option.
6390
+ * @default primary
6391
+ */
6392
+ variant: {
6393
+ type: String,
6394
+ reflect: true
6395
+ },
6396
+
6397
+ /**
6398
+ * @private
6399
+ */
6400
+ buttonHref: {
6401
+ type: String,
6402
+ },
6403
+
6404
+ /**
6405
+ * @private
6406
+ */
6407
+ buttonTarget: {
6408
+ type: String,
6409
+ },
6410
+
6411
+ /**
6412
+ * @private
6413
+ */
6414
+ buttonRel: {
6415
+ type: String,
6416
+ },
6417
+ };
6418
+ }
6419
+
6420
+ /**
6421
+ * This will register this element with the browser.
6422
+ * @param {string} [name="auro-button"] - The name of element that you want to register to.
6423
+ *
6424
+ * @example
6425
+ * AuroButton.register("custom-button") // this will register this element to <custom-button/>
6426
+ *
6427
+ */
6428
+ static register(name = "auro-button") {
6429
+ AuroLibraryRuntimeUtils$2.prototype.registerComponent(name, AuroButton);
6430
+ }
6431
+
6432
+ /**
6433
+ * Internal method to apply focus to the HTML5 button.
6434
+ * @private
6435
+ * @returns {void}
6436
+ */
6437
+ focus() {
6438
+ this.renderRoot.querySelector('button').focus();
6439
+ }
5245
6440
 
5246
6441
  /**
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.
6442
+ * Submits the form that this button is associated with.
6443
+ * @private
5250
6444
  * @returns {void}
5251
6445
  */
5252
- handleComponentTagRename(elem, tagName) {
5253
- const tag = tagName.toLowerCase();
5254
- const elemTag = elem.tagName.toLowerCase();
5255
-
5256
- if (elemTag !== tag) {
5257
- elem.setAttribute(tag, true);
6446
+ surfaceSubmitEvent() {
6447
+ if (this.form) {
6448
+ this.form.requestSubmit();
5258
6449
  }
5259
6450
  }
5260
6451
 
5261
6452
  /**
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.
6453
+ * Returns the form element that this button is associated with.
6454
+ * @private
6455
+ * @returns {HTMLFormElement | null}
5266
6456
  */
5267
- elementMatch(elem, tagName) {
5268
- const tag = tagName.toLowerCase();
5269
- const elemTag = elem.tagName.toLowerCase();
6457
+ get form() {
6458
+ return this.internals ? this.internals.form : null;
6459
+ }
5270
6460
 
5271
- return elemTag === tag || elem.hasAttribute(tag);
6461
+ /**
6462
+ * @private
6463
+ * @returns {Boolean}
6464
+ */
6465
+ get showText() {
6466
+ return !ICON_ONLY_SHAPES.includes(this.shape);
5272
6467
  }
5273
- };
5274
6468
 
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.
6469
+ /**
6470
+ * Returns the current value of the projected `aria-label` attribute or undefined if not set.
6471
+ * @returns {string | undefined}
6472
+ * @private
6473
+ */
6474
+ get currentAriaLabel() {
6475
+ if (!this.attributeWatcher) return undefined;
5277
6476
 
6477
+ const ariaLabel = this.attributeWatcher.getObservedAttribute("aria-label");
6478
+ return ariaLabel || undefined;
6479
+ }
5278
6480
 
5279
- class AuroDependencyVersioning {
6481
+ /**
6482
+ * Returns the current value of the projected `aria-labelledby` attribute or undefined if not set.
6483
+ * @returns {string | undefined}
6484
+ * @private
6485
+ */
6486
+ get currentAriaLabelledBy() {
6487
+ if (!this.attributeWatcher) return undefined;
6488
+
6489
+ const ariaLabelledBy = this.attributeWatcher.getObservedAttribute("aria-labelledby");
6490
+ return ariaLabelledBy || undefined;
6491
+ }
5280
6492
 
5281
6493
  /**
5282
- * Generates a unique string to be used for child auro element naming.
6494
+ * Whether or not the button is set to an icon-only shape.
6495
+ * @returns {boolean} - True if the button is icon-only, false otherwise.
5283
6496
  * @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
6497
  */
5288
- generateElementName(baseName, version) {
5289
- let result = baseName;
6498
+ get iconOnly() {
6499
+ return ICON_ONLY_SHAPES.includes(this.shape);
6500
+ }
5290
6501
 
5291
- result += '-';
5292
- result += version.replace(/[.]/g, '_');
6502
+ /**
6503
+ * Gets a class name for the font size based on the button's size and shape.
6504
+ * @returns {string} - The font size class name.
6505
+ * @private
6506
+ */
6507
+ getFontSize() {
5293
6508
 
5294
- return result;
6509
+ // Size map for standard buttons
6510
+ const standardButtonSizeMap = {
6511
+ xs: 'body-xs',
6512
+ sm: 'body-sm',
6513
+ md: 'body-default',
6514
+ lg: 'body-lg',
6515
+ xl: 'body-lg'
6516
+ };
6517
+
6518
+ // Size map for icon-only buttons
6519
+ const iconOnlyButtonSizeMap = {
6520
+ xs: 'heading-xs',
6521
+ sm: 'heading-sm',
6522
+ md: 'heading-sm',
6523
+ lg: 'heading-md',
6524
+ xl: 'heading-lg'
6525
+ };
6526
+
6527
+ // Determine which map to use based on the shape
6528
+ const sizeMap = this.iconOnly ? iconOnlyButtonSizeMap : standardButtonSizeMap;
6529
+
6530
+ // Return the font size based on the button size and shape
6531
+ return sizeMap[this.size] || 'body-default';
5295
6532
  }
5296
6533
 
5297
6534
  /**
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.
6535
+ * Renders the default layout for the button.
6536
+ * @returns {TemplateResult}
6537
+ * @private
5302
6538
  */
5303
- generateTag(baseName, version, tagClass) {
5304
- const elementName = this.generateElementName(baseName, version);
5305
- const tag = i`${s(elementName)}`;
6539
+ renderLayoutDefault() {
5306
6540
 
5307
- if (!customElements.get(elementName)) {
5308
- customElements.define(elementName, class extends tagClass {});
5309
- }
6541
+ const fontSize = this.getFontSize();
6542
+ const tag = this.buttonHref ? i`a` : i`button`;
6543
+ const part = this.buttonHref ? 'link' : 'button';
5310
6544
 
5311
- return tag;
6545
+ const classes = {
6546
+ "auro-button": true,
6547
+ "inset": this.showText,
6548
+ wrapper: true,
6549
+ loading: this.loading,
6550
+ [`${fontSize}`]: true,
6551
+
6552
+ // These remove the default borders so we can handle focus borders ourselves
6553
+ 'simple': !['secondary'].includes(this.variant),
6554
+ 'thin': ['secondary'].includes(this.variant),
6555
+ };
6556
+
6557
+ const contentClasses = {
6558
+ "contentWrapper": true,
6559
+ "util_displayHiddenVisually": this.loading
6560
+ };
6561
+
6562
+ return u`
6563
+ <${tag}
6564
+ part="${part}"
6565
+ aria-label="${o(this.loading ? this.loadingText : this.currentAriaLabel || undefined)}"
6566
+ aria-labelledby="${o(this.loading ? undefined : this.currentAriaLabelledBy || undefined)}"
6567
+ tabindex="${o(this.tIndex || this.tabindex)}"
6568
+ ?autofocus="${this.autofocus}"
6569
+ class=${e(classes)}
6570
+ ?disabled="${this.disabled || this.loading}"
6571
+ ?onDark="${this.onDark}"
6572
+ title="${o(this.title ? this.title : undefined)}"
6573
+ name="${o(this.name ? this.name : undefined)}"
6574
+ type="${o(this.type ? this.type : undefined)}"
6575
+ variant="${o(this.variant ? this.variant : undefined)}"
6576
+ .value="${o(this.value ? this.value : undefined)}"
6577
+ @click="${this.type === 'submit' ? this.surfaceSubmitEvent : undefined}"
6578
+ href="${o(this.buttonHref || undefined)}"
6579
+ target="${o(this.buttonTarget || undefined)}"
6580
+ rel="${o(this.buttonRel || undefined)}"
6581
+ >
6582
+ ${o(this.loading ? u`<${this.loaderTag} pulse part="loader"></${this.loaderTag}>` : undefined)}
6583
+
6584
+ <span class="${e(contentClasses)}">
6585
+ <span class="textSlot" part="text">
6586
+ <slot></slot>
6587
+ </span>
6588
+ </span>
6589
+ </${tag}>
6590
+ `;
6591
+ }
6592
+
6593
+ /**
6594
+ * Renders the layout of the button.
6595
+ * @returns {TemplateResult}
6596
+ * @private
6597
+ */
6598
+ renderLayout() {
6599
+ return this.renderLayoutDefault();
5312
6600
  }
5313
6601
  }
5314
6602
 
6603
+ var buttonVersion = '11.3.0';
6604
+
5315
6605
  // Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
5316
6606
  // See LICENSE in the project root for license information.
5317
6607
 
@@ -5322,7 +6612,7 @@ class AuroDependencyVersioning {
5322
6612
  * @attr {Boolean} hiddenAudible - If present, the component will be hidden from screen readers, but seen visually
5323
6613
  */
5324
6614
 
5325
- let AuroElement$1 = class AuroElement extends i$2 {
6615
+ let AuroElement$2 = class AuroElement extends i$2 {
5326
6616
 
5327
6617
  // function to define props used within the scope of this component
5328
6618
  static get properties() {
@@ -5390,7 +6680,7 @@ var styleCss$1$1 = i$5`:focus:not(:focus-visible){outline:3px solid transparent}
5390
6680
  */
5391
6681
 
5392
6682
  // build the component class
5393
- let BaseIcon$1 = class BaseIcon extends AuroElement$1 {
6683
+ let BaseIcon$1 = class BaseIcon extends AuroElement$2 {
5394
6684
  constructor() {
5395
6685
  super();
5396
6686
  this.onDark = false;
@@ -5473,7 +6763,7 @@ var colorCss$4 = i$5`:host{color:var(--ds-auro-icon-color)}:host([customColor]){
5473
6763
 
5474
6764
  /* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
5475
6765
 
5476
- let AuroLibraryRuntimeUtils$2 = class AuroLibraryRuntimeUtils {
6766
+ let AuroLibraryRuntimeUtils$3 = class AuroLibraryRuntimeUtils {
5477
6767
 
5478
6768
  /* eslint-disable jsdoc/require-param */
5479
6769
 
@@ -5555,7 +6845,7 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
5555
6845
  */
5556
6846
  privateDefaults() {
5557
6847
  this.uri = 'https://cdn.jsdelivr.net/npm/@alaskaairux/icons@latest/dist';
5558
- this.runtimeUtils = new AuroLibraryRuntimeUtils$2();
6848
+ this.runtimeUtils = new AuroLibraryRuntimeUtils$3();
5559
6849
  }
5560
6850
 
5561
6851
  // function to define props used within the scope of this component
@@ -5637,7 +6927,7 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
5637
6927
  *
5638
6928
  */
5639
6929
  static register(name = "auro-icon") {
5640
- AuroLibraryRuntimeUtils$2.prototype.registerComponent(name, AuroIcon);
6930
+ AuroLibraryRuntimeUtils$3.prototype.registerComponent(name, AuroIcon);
5641
6931
  }
5642
6932
 
5643
6933
  connectedCallback() {
@@ -5658,8 +6948,12 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
5658
6948
  async firstUpdated() {
5659
6949
  await super.firstUpdated();
5660
6950
 
5661
- // Removes the SVG description for screenreader if ariaHidden is set to true
5662
- if (!this.hasAttribute('ariaHidden') && this.svg) {
6951
+ /**
6952
+ * icons provide a description for screen readers. Icon only instances Auro-button
6953
+ * depend on this description to provide context for the user using a screen reader.
6954
+ * Removes the SVG description for screen reader if ariaHidden is set to true.
6955
+ */
6956
+ if (this.hasAttribute('ariaHidden') && this.svg) {
5663
6957
  const svgDesc = this.svg.querySelector('desc');
5664
6958
 
5665
6959
  if (svgDesc) {
@@ -5703,9 +6997,9 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
5703
6997
  }
5704
6998
  };
5705
6999
 
5706
- var iconVersion$1 = '8.0.3';
7000
+ var iconVersion$1 = '8.1.0';
5707
7001
 
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)}`;
7002
+ 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
7003
 
5710
7004
  // Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
5711
7005
  // See LICENSE in the project root for license information.
@@ -5715,13 +7009,12 @@ var styleCss$5 = i$5`.heading{margin:1.75rem 0;letter-spacing:var(--ds-text-head
5715
7009
  * The auro-header component is a custom element to make using headers with the Auro Design System seamless and easy.
5716
7010
  *
5717
7011
  * @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
7012
  * @attr {String} color - Allows user to pass in CSS custom property or direct hex value to change the color of the header
7013
+ * @attr {String} display - Determines the visual appearance of the header. Options are `display`, `800`, `700`, `600`, `500`, `400`, `300`.
7014
+ * @attr {String} level - Determines the semantic heading level of the HTML element. Options are `1` - `6`
5721
7015
  * @attr {String} margin - Specify the margin(s) to be altered. Options are `top`, `bottom`, or `both`.
5722
7016
  * @attr {String} size - Specify size of margin adjustment, either `none`, `25`, `50`, `100`, `150`, `200`, `300`, `400`, `600` or `800`.
5723
7017
  */
5724
-
5725
7018
  /* eslint complexity: ["error", 21] */
5726
7019
 
5727
7020
  // build the component class
@@ -5734,7 +7027,7 @@ class AuroHeader extends i$2 {
5734
7027
  /**
5735
7028
  * @private
5736
7029
  */
5737
- this.runtimeUtils = new AuroLibraryRuntimeUtils$1$1();
7030
+ this.runtimeUtils = new AuroLibraryRuntimeUtils$2();
5738
7031
  }
5739
7032
 
5740
7033
  // function to define props used within the scope of this component
@@ -5755,6 +7048,22 @@ class AuroHeader extends i$2 {
5755
7048
  return [styleCss$5];
5756
7049
  }
5757
7050
 
7051
+ /**
7052
+ * Mapping of display values to their corresponding CSS classes
7053
+ * @private
7054
+ */
7055
+ static get displayClassMap() {
7056
+ return {
7057
+ 'display': 'heading-xl',
7058
+ '800': 'heading-xl',
7059
+ '700': 'heading-lg',
7060
+ '600': 'heading-md',
7061
+ '500': 'heading-sm',
7062
+ '400': 'heading-xs',
7063
+ '300': 'heading-2xs'
7064
+ };
7065
+ }
7066
+
5758
7067
  /**
5759
7068
  * This will register this element with the browser.
5760
7069
  * @param {string} [name="auro-header"] - The name of element that you want to register to.
@@ -5764,7 +7073,7 @@ class AuroHeader extends i$2 {
5764
7073
  *
5765
7074
  */
5766
7075
  static register(name = "auro-header") {
5767
- AuroLibraryRuntimeUtils$1$1.prototype.registerComponent(name, AuroHeader);
7076
+ AuroLibraryRuntimeUtils$2.prototype.registerComponent(name, AuroHeader);
5768
7077
  }
5769
7078
 
5770
7079
  firstUpdated() {
@@ -5831,23 +7140,42 @@ class AuroHeader extends i$2 {
5831
7140
  this.display = 'display';
5832
7141
  }
5833
7142
 
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>`;
7143
+ const headingLevel = level || '1';
7144
+ const spacingClasses = this.spacingDecision(this.size);
7145
+
7146
+ // Get the CSS class based on the display prop
7147
+ const headingClass = AuroHeader.displayClassMap[this.display];
7148
+
7149
+ const classObject = {
7150
+ 'heading': true,
7151
+ [`heading--${this.display}`]: true,
7152
+ [headingClass]: true
7153
+ };
7154
+
7155
+ // Add spacing classes to the class object if they exist
7156
+ if (spacingClasses) {
7157
+ const spacingClassArray = spacingClasses.split(' ');
7158
+ spacingClassArray.forEach(cls => {
7159
+ if (cls.trim()) {
7160
+ classObject[cls.trim()] = true;
7161
+ }
7162
+ });
5841
7163
  }
7164
+
7165
+ const headerClasses = e(classObject);
7166
+
7167
+ // unsafeStatic dynamically creates tag names at runtime
7168
+ const tag = s(`h${headingLevel}`);
7169
+ return u`<${tag} class="${headerClasses}" style="color: ${o(this.color ? this.color : undefined)}"><slot></slot></${tag}>`;
5842
7170
  }
7171
+
5843
7172
  // function that renders the HTML and CSS into the scope of the component
5844
-
5845
7173
  render() {
5846
7174
  return this.template(this.level);
5847
7175
  }
5848
7176
  }
5849
7177
 
5850
- var headerVersion = '4.0.1';
7178
+ var headerVersion = '4.0.2';
5851
7179
 
5852
7180
  // Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
5853
7181
  // See LICENSE in the project root for license information.
@@ -5860,17 +7188,30 @@ class AuroBibtemplate extends i$2 {
5860
7188
 
5861
7189
  this.large = false;
5862
7190
 
5863
- AuroLibraryRuntimeUtils$1$1.prototype.handleComponentTagRename(this, 'auro-bibtemplate');
7191
+ AuroLibraryRuntimeUtils$2.prototype.handleComponentTagRename(this, 'auro-bibtemplate');
5864
7192
 
5865
7193
  const versioning = new AuroDependencyVersioning();
7194
+
7195
+ /**
7196
+ * @private
7197
+ */
5866
7198
  this.iconTag = versioning.generateTag('auro-formkit-bibtemplate-icon', iconVersion$1, AuroIcon$1);
7199
+
7200
+ /**
7201
+ * @private
7202
+ */
5867
7203
  this.headerTag = versioning.generateTag('auro-formkit-bibtemplate-header', headerVersion, AuroHeader);
7204
+
7205
+ /**
7206
+ * @private
7207
+ */
7208
+ this.buttonTag = versioning.generateTag('auro-formkit-bibtemplate-button', buttonVersion, AuroButton);
5868
7209
  }
5869
7210
 
5870
7211
  static get styles() {
5871
7212
  return [
5872
- colorCss$1$1,
5873
- styleCss$2$1,
7213
+ colorCss$3$1,
7214
+ styleCss$4$1,
5874
7215
  tokenCss
5875
7216
  ];
5876
7217
  }
@@ -5899,7 +7240,7 @@ class AuroBibtemplate extends i$2 {
5899
7240
  *
5900
7241
  */
5901
7242
  static register(name = "auro-bibtemplate") {
5902
- AuroLibraryRuntimeUtils$1$1.prototype.registerComponent(name, AuroBibtemplate);
7243
+ AuroLibraryRuntimeUtils$2.prototype.registerComponent(name, AuroBibtemplate);
5903
7244
  }
5904
7245
 
5905
7246
  /**
@@ -5957,13 +7298,16 @@ class AuroBibtemplate extends i$2 {
5957
7298
  <div id="bibTemplate" part="bibtemplate">
5958
7299
  ${this.isFullscreen ? u`
5959
7300
  <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">
7301
+ <div class="titleRow">
7302
+ <${this.headerTag} class="header" display="${this.large ? 'display' : '600'}" level="3" size="none" id="header" no-margin-block>
7303
+ <slot name="header"></slot>
7304
+ </${this.headerTag}>
7305
+ <${this.buttonTag} id="closeButton" variant="ghost" shape="circle" size="sm" @click="${this.onCloseButtonClick}">
7306
+ <span><slot name="ariaLabel.close">Close</slot></span>
7307
+ <${this.iconTag} aria-hidden="true" category="interface" name="x-lg"></${this.iconTag}>
7308
+ </${this.buttonTag}>
7309
+ </div>
7310
+ <span class="subheader">
5967
7311
  <slot name="subheader"></slot>
5968
7312
  </span>
5969
7313
  </div>` : null}
@@ -5983,9 +7327,9 @@ class AuroBibtemplate extends i$2 {
5983
7327
 
5984
7328
  var bibTemplateVersion = '1.0.0';
5985
7329
 
5986
- 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)}`;
7330
+ var colorCss$3 = i$5`:host([error]){--ds-auro-helptext-color: var(--ds-basic-color-status-error, #e31f26)}:host([onDark]){--ds-auro-helptext-color: var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}:host([onDark][error]){--ds-auro-helptext-color: var(--ds-basic-color-status-error-subtle, #fbc6c6)}.helptext-wrapper{color:var(--ds-auro-helptext-color)}`;
5987
7331
 
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}`;
7332
+ 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
7333
 
5990
7334
  var tokensCss$2 = i$5`:host{--ds-auro-helptext-color: var(--ds-basic-color-texticon-muted, #676767)}`;
5991
7335
 
@@ -6065,8 +7409,6 @@ let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
6065
7409
 
6066
7410
  /**
6067
7411
  * 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
7412
  */
6071
7413
  class AuroHelpText extends i$2 {
6072
7414
 
@@ -6182,7 +7524,7 @@ class AuroHelpText extends i$2 {
6182
7524
  // function that renders the HTML and CSS into the scope of the component
6183
7525
  render() {
6184
7526
  return x`
6185
- <div class="helptext-wrapper" ?visible="${this.hasTextContent}">
7527
+ <div class="helptext-wrapper body-xs" ?visible="${this.hasTextContent}">
6186
7528
  <slot @slotchange=${this.handleSlotChange}></slot>
6187
7529
  </div>
6188
7530
  `;
@@ -6191,68 +7533,7 @@ class AuroHelpText extends i$2 {
6191
7533
 
6192
7534
  var helpTextVersion = '1.0.0';
6193
7535
 
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-direction:column;justify-content:center;align-items:center;flex:1}.valueContainer [slot=displayValue]{display:none}.accents{display:flex;flex-direction:row;justify-content:center;align-items:center}::slotted([slot=typeIcon]){margin-right:8px}.displayValue{display:block}.displayValue:not(.force){display:none}.displayValue:not(.force).hasContent:is(.withValue):not(.hasFocus){display:block}.triggerContent{display:flex;align-items:center;justify-content:center;width:100%;padding:0 8px 0 24px}.layout-emphasized .triggerContent,.layout-snowflake .triggerContent{display:flex;align-items:center;justify-content:center;width:100%;padding:0 8px 0 24px}.layout-classic .triggerContent{display:flex;align-items:center;justify-content:center;width:100%;padding:0 8px 0 24px}:host(:is([validity]:not([validity=valid]))) [auro-dropdown]{--ds-auro-select-border-color: var(--ds-basic-color-status-error, #e31f26);--ds-auro-dropdown-helptext-text-color: var(--ds-basic-color-texticon-default, #2a2a2a)}:host([ondark]:is([validity]:not([validity=valid]))) [auro-dropdown]{--ds-auro-select-border-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8);--ds-auro-dropdown-helptext-text-color: var(--ds-basic-color-texticon-inverse, #ffffff)}#slotHolder{display:none}:host([disabled]) *{user-select:none}`;
7536
+ var styleCss$3 = i$5`.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock{display:block}.util_displayFlex{display:flex}.util_displayHidden{display:none}.util_displayHiddenVisually{position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}.body-default{font-size:var(--wcss-body-default-font-size, 1rem);line-height:var(--wcss-body-default-line-height, 1.5)}.body-default,.body-lg{font-family:var(--wcss-body-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-lg{font-size:var(--wcss-body-lg-font-size, 1.125rem);line-height:var(--wcss-body-lg-line-height, 1.63)}.body-sm{font-size:var(--wcss-body-sm-font-size, 0.875rem);line-height:var(--wcss-body-sm-line-height, 1.25)}.body-sm,.body-xs{font-family:var(--wcss-body-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-xs{font-size:var(--wcss-body-xs-font-size, 0.75rem);line-height:var(--wcss-body-xs-line-height, 1)}.body-2xs{font-family:var(--wcss-body-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-body-2xs-font-size, 0.625rem);font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0);line-height:var(--wcss-body-2xs-line-height, 0.88)}.display-2xl{font-family:var(--wcss-display-2xl-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-2xl-font-size, clamp(3.5rem, 6vw, 5.375rem));font-weight:var(--wcss-display-2xl-weight, 300);letter-spacing:var(--wcss-display-2xl-letter-spacing, 0);line-height:var(--wcss-display-2xl-line-height, 1.3)}.display-xl{font-family:var(--wcss-display-xl-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-xl-font-size, clamp(3rem, 5.3333333333vw, 4.5rem));font-weight:var(--wcss-display-xl-weight, 300);letter-spacing:var(--wcss-display-xl-letter-spacing, 0);line-height:var(--wcss-display-xl-line-height, 1.3)}.display-lg{font-family:var(--wcss-display-lg-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-lg-font-size, clamp(2.75rem, 4.6666666667vw, 4rem));font-weight:var(--wcss-display-lg-weight, 300);letter-spacing:var(--wcss-display-lg-letter-spacing, 0);line-height:var(--wcss-display-lg-line-height, 1.3)}.display-md{font-family:var(--wcss-display-md-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-md-font-size, clamp(2.5rem, 4vw, 3.5rem));font-weight:var(--wcss-display-md-weight, 300);letter-spacing:var(--wcss-display-md-letter-spacing, 0);line-height:var(--wcss-display-md-line-height, 1.3)}.display-sm{font-family:var(--wcss-display-sm-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-sm-font-size, clamp(2rem, 3.6666666667vw, 3rem));font-weight:var(--wcss-display-sm-weight, 300);letter-spacing:var(--wcss-display-sm-letter-spacing, 0);line-height:var(--wcss-display-sm-line-height, 1.3)}.display-xs{font-family:var(--wcss-display-xs-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-xs-font-size, clamp(1.75rem, 3vw, 2.375rem));font-weight:var(--wcss-display-xs-weight, 300);letter-spacing:var(--wcss-display-xs-letter-spacing, 0);line-height:var(--wcss-display-xs-line-height, 1.3)}.heading-xl{font-family:var(--wcss-heading-xl-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-xl-font-size, clamp(2rem, 3vw, 2.5rem));font-weight:var(--wcss-heading-xl-weight, 300);letter-spacing:var(--wcss-heading-xl-letter-spacing, 0);line-height:var(--wcss-heading-xl-line-height, 1.3)}.heading-lg{font-family:var(--wcss-heading-lg-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-lg-font-size, clamp(1.75rem, 2.6666666667vw, 2.25rem));font-weight:var(--wcss-heading-lg-weight, 300);letter-spacing:var(--wcss-heading-lg-letter-spacing, 0);line-height:var(--wcss-heading-lg-line-height, 1.3)}.heading-md{font-family:var(--wcss-heading-md-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-md-font-size, clamp(1.625rem, 2.3333333333vw, 1.75rem));font-weight:var(--wcss-heading-md-weight, 300);letter-spacing:var(--wcss-heading-md-letter-spacing, 0);line-height:var(--wcss-heading-md-line-height, 1.3)}.heading-sm{font-family:var(--wcss-heading-sm-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-sm-font-size, clamp(1.375rem, 2vw, 1.5rem));font-weight:var(--wcss-heading-sm-weight, 300);letter-spacing:var(--wcss-heading-sm-letter-spacing, 0);line-height:var(--wcss-heading-sm-line-height, 1.3)}.heading-xs{font-family:var(--wcss-heading-xs-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-xs-font-size, clamp(1.25rem, 1.6666666667vw, 1.25rem));font-weight:var(--wcss-heading-xs-weight, 450);letter-spacing:var(--wcss-heading-xs-letter-spacing, 0);line-height:var(--wcss-heading-xs-line-height, 1.3)}.heading-2xs{font-family:var(--wcss-heading-2xs-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-2xs-font-size, clamp(1.125rem, 1.5vw, 1.125rem));font-weight:var(--wcss-heading-2xs-weight, 450);letter-spacing:var(--wcss-heading-2xs-letter-spacing, 0);line-height:var(--wcss-heading-2xs-line-height, 1.3)}.accent-2xl{font-family:var(--wcss-accent-2xl-family, "Good OT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-2xl-font-size, clamp(2rem, 3.1666666667vw, 2.375rem));font-weight:var(--wcss-accent-2xl-weight, 450);letter-spacing:var(--wcss-accent-2xl-letter-spacing, 0.05em);line-height:var(--wcss-accent-2xl-line-height, 1)}.accent-2xl,.accent-xl{text-transform:uppercase}.accent-xl{font-family:var(--wcss-accent-xl-family, "Good OT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-xl-font-size, clamp(1.625rem, 2.3333333333vw, 2rem));font-weight:var(--wcss-accent-xl-weight, 450);letter-spacing:var(--wcss-accent-xl-letter-spacing, 0.05em);line-height:var(--wcss-accent-xl-line-height, 1.3)}.accent-lg{font-family:var(--wcss-accent-lg-family, "Good OT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-lg-font-size, clamp(1.5rem, 2.1666666667vw, 1.75rem));font-weight:var(--wcss-accent-lg-weight, 450);letter-spacing:var(--wcss-accent-lg-letter-spacing, 0.05em);line-height:var(--wcss-accent-lg-line-height, 1.3)}.accent-lg,.accent-md{text-transform:uppercase}.accent-md{font-family:var(--wcss-accent-md-family, "Good OT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-md-font-size, clamp(1.375rem, 1.8333333333vw, 1.5rem));font-weight:var(--wcss-accent-md-weight, 500);letter-spacing:var(--wcss-accent-md-letter-spacing, 0.05em);line-height:var(--wcss-accent-md-line-height, 1.3)}.accent-sm{font-family:var(--wcss-accent-sm-family, "Good OT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-sm-font-size, clamp(1.125rem, 1.5vw, 1.25rem));font-weight:var(--wcss-accent-sm-weight, 500);letter-spacing:var(--wcss-accent-sm-letter-spacing, 0.05em);line-height:var(--wcss-accent-sm-line-height, 1.3)}.accent-sm,.accent-xs{text-transform:uppercase}.accent-xs{font-family:var(--wcss-accent-xs-family, "Good OT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-xs-font-size, clamp(1rem, 1.3333333333vw, 1rem));font-weight:var(--wcss-accent-xs-weight, 500);letter-spacing:var(--wcss-accent-xs-letter-spacing, 0.1em);line-height:var(--wcss-accent-xs-line-height, 1.3)}.accent-2xs{font-family:var(--wcss-accent-2xs-family, "Good OT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-2xs-font-size, clamp(0.875rem, 1.1666666667vw, 0.875rem));font-weight:var(--wcss-accent-2xs-weight, 450);letter-spacing:var(--wcss-accent-2xs-letter-spacing, 0.1em);line-height:var(--wcss-accent-2xs-line-height, 1.3);text-transform:uppercase}[auro-dropdown]{--ds-auro-dropdown-trigger-border-color: var(--ds-auro-select-border-color);--ds-auro-dropdown-trigger-background-color: var(--ds-auro-select-background-color);--ds-auro-dropdown-trigger-container-color: var(--ds-auro-select-background-color)}:host{display:inline-block}:host([layout*=emphasized]) [auro-dropdown],:host([layout*=snowflake]) [auro-dropdown]{--ds-auro-select-border-color: transparent}:host([layout*=emphasized]) .mainContent,:host([layout*=snowflake]) .mainContent{text-align:center}.mainContent{position:relative;display:flex;overflow:hidden;flex:1;flex-direction:column;align-items:center;justify-content:center}.valueContainer [slot=displayValue]{display:none}.accents{display:flex;flex-direction:row;align-items:center;justify-content:center}::slotted([slot=typeIcon]){margin-right:var(--ds-size-100, 0.5rem)}.displayValue{display:block}.displayValue:not(.force){display:none}.displayValue:not(.force).hasContent:is(.withValue):not(.hasFocus){display:block}.triggerContent{display:flex;width:100%;align-items:center;justify-content:center}:host([layout*=emphasized]) .triggerContent,:host([layout*=snowflake]) .triggerContent{padding:0 var(--ds-size-100, 0.5rem) 0 var(--ds-size-300, 1.5rem)}:host([layout*=classic]) .triggerContent{padding:0 var(--ds-size-100, 0.5rem)}:host([layout*=classic]) .mainContent{align-items:start}:host([layout*=classic]) label{overflow:hidden;cursor:text;text-overflow:ellipsis;white-space:nowrap}:host([layout*=classic]) .value{height:auto}label{color:var(--ds-auro-select-label-text-color)}:host(:is([validity]:not([validity=valid]))) [auro-dropdown]{--ds-auro-select-border-color: var(--ds-basic-color-status-error, #e31f26);--ds-auro-dropdown-helptext-text-color: var(--ds-basic-color-texticon-default, #2a2a2a)}:host([ondark]:is([validity]:not([validity=valid]))) [auro-dropdown]{--ds-auro-select-border-color: var(--ds-basic-color-status-error-subtle, #fbc6c6);--ds-auro-dropdown-helptext-text-color: var(--ds-basic-color-texticon-inverse, #ffffff)}#slotHolder{display:none}:host([fluid]){width:100%}:host([disabled]){pointer-events:none;user-select:none}:host([disabled]:not([ondark])) [auro-dropdown]{--ds-auro-select-border-color: var(--ds-basic-color-border-subtle, #dddddd)}:host(:not([layout*=classic])[disabled][ondark]) [auro-dropdown]{--ds-auro-select-border-color: transparent}`;
6256
7537
 
6257
7538
  // Copyright (c) 2021 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
6258
7539
  // See LICENSE in the project root for license information.
@@ -6263,19 +7544,25 @@ var styleCss$3 = i$5`.util_displayInline{display:inline}.util_displayInlineBlock
6263
7544
  * The auro-select element is a wrapper for auro-dropdown and auro-menu to create a dropdown menu control.
6264
7545
  *
6265
7546
  * @slot - Default slot for the menu content.
7547
+ * @slot ariaLabel.bib.close - Sets aria-label on close button in fullscreen bib
6266
7548
  * @slot bib.fullscreen.headline - Defines the headline to display above menu-options
6267
7549
  * @slot label - Defines the content of the label.
7550
+ * @slot {HTMLSlotElement} optionalLabel - Allows overriding the optional display text "(optional)", which appears next to the label.
6268
7551
  * @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
7552
  * @slot valueText - Dropdown value text display.
7553
+ * @slot displayValue - Allows custom HTML content to display the selected value when select is not focused.
6271
7554
  * @event auroSelect-valueSet - Notifies that the component has a new value set.
6272
7555
  * @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
7556
  * @event auroFormElement-validated - Notifies that the `validity` and `errorMessage` values have changed.
7557
+ *
7558
+ * @csspart dropdownTrigger - Apply CSS to the trigger content container.
7559
+ * @csspart dropdownChevron - Apply CSS to the collapsed/expanded state icon container.
7560
+ * @csspart dropdownSize - Apply size styles to the dropdown bib. (height, width, maxHeight, maxWidth only)
6274
7561
  * @csspart helpText - Apply CSS to the help text.
6275
7562
  */
6276
7563
 
6277
7564
  // build the component class
6278
- class AuroSelect extends AuroElement$3 {
7565
+ class AuroSelect extends AuroElement$4 {
6279
7566
  constructor() {
6280
7567
  super();
6281
7568
 
@@ -6285,12 +7572,7 @@ class AuroSelect extends AuroElement$3 {
6285
7572
  const idSubstrEnd = 8;
6286
7573
  const idSubstrStart = 2;
6287
7574
 
6288
- this.matchWidth = true;
6289
-
6290
- // Layout Config
6291
- this.layout = 'classic';
6292
- this.shape = 'classic';
6293
- this.size = 'xl';
7575
+ this.matchWidth = false;
6294
7576
 
6295
7577
  // floaterConfig
6296
7578
  this.placement = 'bottom-start';
@@ -6315,7 +7597,7 @@ class AuroSelect extends AuroElement$3 {
6315
7597
  /**
6316
7598
  * @private
6317
7599
  */
6318
- this.runtimeUtils = new AuroLibraryRuntimeUtils$4();
7600
+ this.runtimeUtils = new AuroLibraryRuntimeUtils$5();
6319
7601
 
6320
7602
  /**
6321
7603
  * Generate unique names for dependency components.
@@ -6365,6 +7647,11 @@ class AuroSelect extends AuroElement$3 {
6365
7647
  this.fullscreenBreakpoint = 'sm';
6366
7648
  this.onDark = false;
6367
7649
  this.isPopoverVisible = false;
7650
+
7651
+ // Layout Config
7652
+ this.layout = 'classic';
7653
+ this.shape = 'classic';
7654
+ this.size = 'lg';
6368
7655
  }
6369
7656
 
6370
7657
  // This function is to define props used within the scope of this component
@@ -6406,6 +7693,14 @@ class AuroSelect extends AuroElement$3 {
6406
7693
  reflect: true
6407
7694
  },
6408
7695
 
7696
+ /**
7697
+ * When attribute is present, element will be 100% width of container element.
7698
+ */
7699
+ fluid: {
7700
+ type: Boolean,
7701
+ reflect: true
7702
+ },
7703
+
6409
7704
  /**
6410
7705
  * @private
6411
7706
  */
@@ -6430,14 +7725,6 @@ class AuroSelect extends AuroElement$3 {
6430
7725
  reflect: true
6431
7726
  },
6432
7727
 
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
7728
  /**
6442
7729
  * Defines the screen size breakpoint (`xs`, `sm`, `md`, `lg`, `xl`, `disabled`)
6443
7730
  * at which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.
@@ -6531,7 +7818,7 @@ class AuroSelect extends AuroElement$3 {
6531
7818
  * "top" | "right" | "bottom" | "left" |
6532
7819
  * "bottom-start" | "top-start" | "top-end" |
6533
7820
  * "right-start" | "right-end" | "bottom-end" |
6534
- * "left-start" | "left-end"
7821
+ * "left-start" | "left-end".
6535
7822
  * @default bottom-start
6536
7823
  */
6537
7824
  placement: {
@@ -6539,6 +7826,14 @@ class AuroSelect extends AuroElement$3 {
6539
7826
  reflect: true
6540
7827
  },
6541
7828
 
7829
+ /**
7830
+ * Define custom placeholder text.
7831
+ */
7832
+ placeholder: {
7833
+ type: String,
7834
+ reflect: true
7835
+ },
7836
+
6542
7837
  /**
6543
7838
  * Populates the `required` attribute on the element. Used for client-side validation.
6544
7839
  */
@@ -6585,11 +7880,12 @@ class AuroSelect extends AuroElement$3 {
6585
7880
  },
6586
7881
 
6587
7882
  /**
6588
- * Value selected for the component. Default type is `String`, changing to `Array<String>` when `multiSelect` is true.
6589
- * @type {String|Array<String>}
7883
+ * Value selected for the component.
6590
7884
  */
6591
7885
  value: {
6592
- type: Object
7886
+ type: String,
7887
+ reflect: true,
7888
+ attribute: 'value'
6593
7889
  },
6594
7890
 
6595
7891
  /**
@@ -6642,14 +7938,76 @@ class AuroSelect extends AuroElement$3 {
6642
7938
  }
6643
7939
 
6644
7940
  /**
6645
- * Returns classmap configuration for wrapper elements in each layout.
7941
+ * Formatted value based on `multiSelect` state.
7942
+ * Default type is `String`, changing to `Array<String>` when `multiSelect` is true.
6646
7943
  * @private
6647
- * @return {object} - Returns classmap.
7944
+ * @returns {String|Array<String>}
6648
7945
  */
6649
- get commonWrapperClasses() {
6650
- return {
6651
- 'wrapper': true
7946
+ get formattedValue() {
7947
+ if (this.multiSelect) {
7948
+ if (!this.value) {
7949
+ return undefined;
7950
+ }
7951
+ if (this.value.startsWith("[")) {
7952
+ return JSON.parse(this.value);
7953
+ }
7954
+ return [this.value];
7955
+ }
7956
+ return this.value;
7957
+ }
7958
+
7959
+ /**
7960
+ * Returns classmap configuration for html5 input labels in all layouts.
7961
+ * @private
7962
+ * @returns {Record<string, boolean>}
7963
+ */
7964
+ get commonLabelClasses() {
7965
+ const obj = {
7966
+ 'is-disabled': this.disabled,
7967
+ 'withValue': false,
7968
+ 'util_displayHiddenVisually': this.hasDisplayValueContent && !this.hasFocus && this.value && this.value.length > 0,
7969
+ [this.labelFontClass]: true
6652
7970
  };
7971
+
7972
+ if (this.placeholder) {
7973
+ obj.withValue = true;
7974
+ } else if (this.optionSelected) {
7975
+ if (Array.isArray(this.optionSelected)) {
7976
+ obj.withValue = this.optionSelected.length > 0;
7977
+ } else {
7978
+ obj.withValue = true;
7979
+ }
7980
+ }
7981
+ return obj;
7982
+ }
7983
+
7984
+ /**
7985
+ * Returns the label font class based on layout and selection state.
7986
+ * @private
7987
+ * @returns {string} - The font class for the label.
7988
+ */
7989
+ get labelFontClass() {
7990
+ const isSelected = this.hasValue;
7991
+
7992
+ if (this.layout.startsWith('emphasized')) {
7993
+ return isSelected ? 'body-sm' : 'accent-xl';
7994
+ }
7995
+
7996
+ if (this.layout === 'snowflake') {
7997
+ return isSelected ? 'body-xs' : 'body-lg';
7998
+ }
7999
+
8000
+ // classic layout (default)
8001
+ return isSelected ? 'body-xs' : 'body-default';
8002
+ }
8003
+
8004
+ /**
8005
+ * Whether or not the component has a value.
8006
+ * @returns {boolean} - Returns true if the component has a value or placeholder.
8007
+ * @private
8008
+ */
8009
+ get hasValue() {
8010
+ return this.placeholder || (this.value && this.value.length > 0); // eslint-disable-line no-extra-parens
6653
8011
  }
6654
8012
 
6655
8013
  /**
@@ -6662,10 +8020,30 @@ class AuroSelect extends AuroElement$3 {
6662
8020
 
6663
8021
  this.dropdown.addEventListener('auroDropdown-toggled', () => {
6664
8022
  this.isPopoverVisible = this.dropdown.isPopoverVisible;
8023
+
8024
+ if (this.dropdown.isPopoverVisible) {
8025
+ this.updateMenuShapeSize();
8026
+ // wait til the bib gets fully rendered
8027
+ setTimeout(() => {
8028
+ if (this.dropdown.isBibFullscreen) {
8029
+ // trigger holds the focus since menu is not a focusable element.
8030
+ this.dropdown.trigger.focus();
8031
+
8032
+ // default focus indicator on the first menu option
8033
+ if (this.menu.index < 0) {
8034
+ this.menu.navigateOptions('down');
8035
+ }
8036
+ }
8037
+ });
8038
+ }
8039
+ });
8040
+
8041
+ this.dropdown.addEventListener('auroDropdown-strategy-change', () => {
8042
+ this.updateMenuShapeSize();
6665
8043
  });
6666
8044
 
6667
8045
  // setting up bibtemplate
6668
- this.bibtemplate = this.dropdown.querySelector(this.bibtemplateTag._$litStatic$); // eslint-disable-line no-underscore-dangle
8046
+ this.bibtemplate = this.dropdown.querySelector(this.bibtemplateTag._$litStatic$);
6669
8047
 
6670
8048
  if (this.customBibWidth) {
6671
8049
  this.dropdown.dropdownWidth = this.customBibWidth;
@@ -6684,7 +8062,7 @@ class AuroSelect extends AuroElement$3 {
6684
8062
  *
6685
8063
  */
6686
8064
  static register(name = "auro-select") {
6687
- AuroLibraryRuntimeUtils$4.prototype.registerComponent(name, AuroSelect);
8065
+ AuroLibraryRuntimeUtils$5.prototype.registerComponent(name, AuroSelect);
6688
8066
  }
6689
8067
 
6690
8068
  /**
@@ -6728,6 +8106,30 @@ class AuroSelect extends AuroElement$3 {
6728
8106
  this.dropdown.requestUpdate();
6729
8107
  }
6730
8108
 
8109
+ /**
8110
+ * Update menu to default for fullscreen bib, otherwise to this.size and this.shape.
8111
+ * @private
8112
+ */
8113
+ updateMenuShapeSize() {
8114
+ if (!this.menu) {
8115
+ return;
8116
+ }
8117
+
8118
+ if (this.dropdown && this.dropdown.isBibFullscreen) {
8119
+ this.menu.setAttribute('size', 'md');
8120
+ this.menu.setAttribute('shape', 'box');
8121
+ } else {
8122
+ // set menu's default size if there it's not specified.
8123
+ if (!this.menu.getAttribute('size')) {
8124
+ this.menu.setAttribute('size', this.layout !== 'emphasized' ? 'md' : this.size);
8125
+ }
8126
+
8127
+ if (!this.getAttribute('shape')) {
8128
+ this.menu.setAttribute('shape', this.layout === 'classic' ? 'box' : this.shape);
8129
+ }
8130
+ }
8131
+ }
8132
+
6731
8133
  /**
6732
8134
  * Binds all behavior needed to the menu after rendering.
6733
8135
  * @private
@@ -6744,6 +8146,8 @@ class AuroSelect extends AuroElement$3 {
6744
8146
  return;
6745
8147
  }
6746
8148
 
8149
+ this.updateMenuShapeSize();
8150
+
6747
8151
  if (this.multiSelect) {
6748
8152
  this.menu.multiSelect = this.multiSelect;
6749
8153
  }
@@ -6781,7 +8185,7 @@ class AuroSelect extends AuroElement$3 {
6781
8185
 
6782
8186
  this.menu.addEventListener('auroMenu-selectValueReset', () => {
6783
8187
  this.optionSelected = this.menu.optionSelected;
6784
- this.validation.validate(this);
8188
+ this.validate(this);
6785
8189
  });
6786
8190
 
6787
8191
  this.menu.addEventListener('auroMenu-activatedOption', (evt) => {
@@ -6803,46 +8207,58 @@ class AuroSelect extends AuroElement$3 {
6803
8207
  configureSelect() {
6804
8208
 
6805
8209
  this.addEventListener('keydown', (evt) => {
6806
- if (evt.key === 'ArrowUp') {
6807
- evt.preventDefault();
6808
-
6809
- this.dropdown.show();
8210
+ // when the focus is on trigger not on close button
8211
+ if (this.dropdown.shadowRoot.activeElement === this.dropdown.trigger) {
8212
+ if (evt.key === 'ArrowUp') {
8213
+ evt.preventDefault();
6810
8214
 
6811
- if (this.dropdown.isPopoverVisible) {
6812
- this.menu.navigateOptions('up');
6813
- }
8215
+ this.dropdown.show();
6814
8216
 
6815
- return;
6816
- }
8217
+ if (this.dropdown.isPopoverVisible) {
8218
+ this.menu.navigateOptions('up');
8219
+ }
6817
8220
 
6818
- if (evt.key === 'ArrowDown') {
6819
- evt.preventDefault();
8221
+ return;
8222
+ }
6820
8223
 
6821
- this.dropdown.show();
8224
+ if (evt.key === 'ArrowDown') {
8225
+ evt.preventDefault();
6822
8226
 
6823
- if (this.dropdown.isPopoverVisible) {
6824
- this.menu.navigateOptions('down');
6825
- }
8227
+ this.dropdown.show();
6826
8228
 
6827
- return;
6828
- }
8229
+ if (this.dropdown.isPopoverVisible) {
8230
+ this.menu.navigateOptions('down');
8231
+ }
6829
8232
 
6830
- if (evt.key === 'Enter') {
6831
- if (!this.dropdown.isPopoverVisible) {
6832
- evt.preventDefault();
6833
- this.menu.makeSelection();
8233
+ return;
6834
8234
  }
6835
8235
 
6836
- return;
8236
+ if (evt.key === 'Enter') {
8237
+ if (!this.dropdown.isPopoverVisible) {
8238
+ evt.preventDefault();
8239
+ this.menu.makeSelection();
8240
+ }
8241
+
8242
+ return;
8243
+ }
6837
8244
  }
6838
8245
 
6839
- if (evt.key === 'Tab') {
8246
+ if (evt.key === 'Tab' && this.dropdown.isPopoverVisible) {
6840
8247
  if (this.dropdown.isBibFullscreen) {
6841
8248
  evt.preventDefault();
8249
+
8250
+ // when the focus is on trigger not on close button
8251
+ if (this.dropdown.shadowRoot.activeElement === this.dropdown.trigger) {
8252
+ // `dropdown.focus` will move focus to the first focusable element in bib when it's open,
8253
+ // when bib it not open, it will focus onto trigger.
8254
+ this.dropdown.focus();
8255
+ } else {
8256
+ // when close button has the focus, move focus back to the trigger
8257
+ this.dropdown.trigger.focus();
8258
+ }
6842
8259
  } else {
6843
8260
  this.dropdown.hide();
6844
8261
  }
6845
-
6846
8262
  return;
6847
8263
  }
6848
8264
 
@@ -6853,7 +8269,7 @@ class AuroSelect extends AuroElement$3 {
6853
8269
  this.addEventListener('focusin', this.handleFocusin);
6854
8270
 
6855
8271
  this.addEventListener('blur', () => {
6856
- this.validation.validate(this);
8272
+ this.validate();
6857
8273
  this.hasFocus = false;
6858
8274
  });
6859
8275
  }
@@ -6923,6 +8339,26 @@ class AuroSelect extends AuroElement$3 {
6923
8339
  }
6924
8340
  }
6925
8341
 
8342
+ /**
8343
+ * Hides the dropdown bib if its open.
8344
+ * @returns {void}
8345
+ */
8346
+ hideBib() {
8347
+ if (this.dropdown && this.dropdown.isPopoverVisible) {
8348
+ this.dropdown.hide();
8349
+ }
8350
+ }
8351
+
8352
+ /**
8353
+ * Shows the dropdown bib if there are options to show.
8354
+ * @returns {void}
8355
+ */
8356
+ showBib() {
8357
+ if (this.dropdown && !this.dropdown.isPopoverVisible) {
8358
+ this.dropdown.show();
8359
+ }
8360
+ }
8361
+
6926
8362
  /**
6927
8363
  * Function to support @focusin event.
6928
8364
  * @private
@@ -7007,38 +8443,47 @@ class AuroSelect extends AuroElement$3 {
7007
8443
  // Add the tag name as an attribute if it is different than the component name
7008
8444
  this.runtimeUtils.handleComponentTagRename(this, 'auro-select');
7009
8445
 
7010
- this.configureMenu();
7011
8446
  this.configureDropdown();
8447
+ this.configureMenu();
7012
8448
  this.configureSelect();
8449
+ }
8450
+
8451
+ /**
8452
+ * Update the menu value. With checks for menu existence. Awaits value update.
8453
+ * @param {string} value - The value to set in the menu.
8454
+ * @returns {void}
8455
+ * @private
8456
+ */
8457
+ async updateMenuValue(value) {
8458
+ if (!this.menu) return;
7013
8459
 
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;
8460
+ this.menu.setAttribute('value', value);
8461
+ if (value) {
8462
+ this.menu.value = value;
8463
+ } else {
8464
+ this.menu.reset();
7018
8465
  }
8466
+ await this.menu.updateComplete;
7019
8467
  }
7020
8468
 
7021
8469
  async updated(changedProperties) {
7022
- if (changedProperties.has('multiSelect')) {
8470
+ if (changedProperties.has('multiSelect') && !changedProperties.has('value')) {
7023
8471
  this.clearSelection();
7024
8472
  }
7025
8473
 
7026
8474
  if (changedProperties.has('value')) {
7027
8475
  if (this.value) {
7028
- this.value = this.multiSelect ? arrayConverter(this.value) : this.value;
8476
+ await this.updateMenuValue(this.value);
7029
8477
 
7030
- this.menu.value = this.value;
7031
-
7032
- // Wait for menu to finish updating its value
7033
- await this.menu.updateComplete;
7034
-
7035
- this.optionSelected = this.menu.optionSelected;
8478
+ if (this.menu) {
8479
+ this.optionSelected = this.menu.optionSelected;
8480
+ }
7036
8481
  } else {
7037
- this.menu.value = undefined;
8482
+ await this.updateMenuValue(undefined);
7038
8483
  }
7039
8484
 
7040
8485
  this._updateNativeSelect();
7041
- this.validation.validate(this);
8486
+ this.validate();
7042
8487
 
7043
8488
  // LEGACY EVENT
7044
8489
  this.dispatchEvent(new CustomEvent('auroSelect-valueSet', {
@@ -7053,7 +8498,7 @@ class AuroSelect extends AuroElement$3 {
7053
8498
  composed: true,
7054
8499
  detail: {
7055
8500
  optionSelected: this.optionSelected,
7056
- value: this.value
8501
+ value: this.formattedValue
7057
8502
  }
7058
8503
  }));
7059
8504
  }
@@ -7065,6 +8510,14 @@ class AuroSelect extends AuroElement$3 {
7065
8510
  if (changedProperties.has('error')) {
7066
8511
  this.validate(true);
7067
8512
  }
8513
+
8514
+ if (changedProperties.has('shape') && this.menu) {
8515
+ this.menu.setAttribute('shape', this.layout === 'classic' ? 'box' : this.shape);
8516
+ }
8517
+
8518
+ if (changedProperties.has('size') && this.menu) {
8519
+ this.menu.setAttribute('size', this.layout !== 'emphasized' ? 'md' : this.size);
8520
+ }
7068
8521
  }
7069
8522
 
7070
8523
  /**
@@ -7075,16 +8528,6 @@ class AuroSelect extends AuroElement$3 {
7075
8528
  this.validation.reset(this);
7076
8529
  }
7077
8530
 
7078
- /**
7079
- * Hide dropdownbib.
7080
- * @private
7081
- */
7082
- hideBib() {
7083
- if (this.dropdown) {
7084
- this.dropdown.hide();
7085
- }
7086
- }
7087
-
7088
8531
  /**
7089
8532
  * Validates value.
7090
8533
  * @param {boolean} [force=false] - Whether to force validation.
@@ -7104,13 +8547,13 @@ class AuroSelect extends AuroElement$3 {
7104
8547
  const selectedValue = selectedOption.value;
7105
8548
 
7106
8549
  if (this.multiSelect) {
7107
- const currentArray = Array.isArray(this.value) ? this.value : [];
8550
+ const currentArray = this.formattedValue;
7108
8551
 
7109
8552
  if (!currentArray.includes(selectedValue)) {
7110
- this.value = [
8553
+ this.value = JSON.stringify([
7111
8554
  ...currentArray,
7112
8555
  selectedValue
7113
- ];
8556
+ ]);
7114
8557
  }
7115
8558
  } else {
7116
8559
  const currentValue = this.value;
@@ -7133,12 +8576,17 @@ class AuroSelect extends AuroElement$3 {
7133
8576
  }
7134
8577
 
7135
8578
  if (this.multiSelect) {
7136
- nativeSelect.value = this.value ? this.value[0] : '';
8579
+ nativeSelect.value = this.multiSelect ? this.multiSelect[0] : '';
7137
8580
  } else {
7138
8581
  nativeSelect.value = this.value || '';
7139
8582
  }
7140
8583
  }
7141
8584
 
8585
+ /**
8586
+ * Returns HTML for the hidden a11y screen reader content.
8587
+ * @private
8588
+ * @returns {html} - Returns HTML for the hidden a11y screen reader content.
8589
+ */
7142
8590
  renderAriaHtml() {
7143
8591
  return u`
7144
8592
  <div aria-live="polite" class="util_displayHiddenVisually">
@@ -7159,10 +8607,15 @@ class AuroSelect extends AuroElement$3 {
7159
8607
  `;
7160
8608
  }
7161
8609
 
8610
+ /**
8611
+ * Returns HTML for the hidden HTML5 select.
8612
+ * @private
8613
+ * @returns {html} - Returns HTML for the hidden HTML5 select.
8614
+ */
7162
8615
  renderNativeSelect() {
7163
8616
  return u`
7164
- <div class="nativeSelectWrapper">
7165
- <select
8617
+ <div class="nativeSelectWrapper util_displayHidden">
8618
+ <select
7166
8619
  tabindex="-1"
7167
8620
  id="${`native-select-${this.id || this.uniqueId}`}"
7168
8621
  name="${this.name || ''}"
@@ -7175,8 +8628,8 @@ class AuroSelect extends AuroElement$3 {
7175
8628
  ${this.options.map((option) => {
7176
8629
  const optionValue = option.value || option.textContent;
7177
8630
  return u`
7178
- <option
7179
- value="${optionValue}"
8631
+ <option
8632
+ value="${optionValue}"
7180
8633
  ?selected="${this.value === optionValue}">
7181
8634
  ${option.textContent}
7182
8635
  </option>
@@ -7198,14 +8651,14 @@ class AuroSelect extends AuroElement$3 {
7198
8651
  ? u`
7199
8652
  <${this.helpTextTag} ?onDark="${this.onDark}">
7200
8653
  <p id="${this.uniqueId}" part="helpText">
7201
- <slot name="helptext"></slot>
8654
+ <slot name="helpText"></slot>
7202
8655
  </p>
7203
8656
  </${this.helpTextTag}>
7204
8657
  `
7205
8658
  : u`
7206
8659
  <${this.helpTextTag} error ?onDark="${this.onDark}">
7207
8660
  <p id="${this.uniqueId}" role="alert" aria-live="assertive" part="helpText">
7208
- ERROR MESSAGE ${this.errorMessage}
8661
+ ${this.errorMessage}
7209
8662
  </p>
7210
8663
  </${this.helpTextTag}>
7211
8664
  `
@@ -7218,17 +8671,16 @@ class AuroSelect extends AuroElement$3 {
7218
8671
  * @private
7219
8672
  * @returns {import("lit").TemplateResult} - Returns HTML for the emphasized layout.
7220
8673
  */
7221
- // TODO update to use util class
7222
8674
  renderLayoutEmphasized() {
7223
8675
  const placeholderClass = {
7224
- hidden: this.value,
8676
+ 'util_displayHidden': this.value
7225
8677
  };
7226
8678
 
7227
8679
  const displayValueClasses = {
7228
8680
  'displayValue': true,
7229
8681
  'hasContent': this.hasDisplayValueContent,
7230
8682
  'hasFocus': this.isPopoverVisible,
7231
- 'withValue': this.value && this.value.length > 0,
8683
+ 'withValue': this.commonLabelClasses.withValue,
7232
8684
  'force': this.forceDisplayValue,
7233
8685
  };
7234
8686
 
@@ -7239,22 +8691,21 @@ class AuroSelect extends AuroElement$3 {
7239
8691
 
7240
8692
  return u`
7241
8693
  <div
7242
- class="${e(this.commonWrapperClasses)}"
7243
8694
  part="wrapper">
7244
8695
  <div id="slotHolder" aria-hidden="true">
7245
8696
  <slot name="bib.fullscreen.headline" @slotchange="${this.handleSlotChange}"></slot>
7246
8697
  </div>
7247
8698
  <${this.dropdownTag}
8699
+ a11yRole="select"
7248
8700
  ?autoPlacement="${this.autoPlacement}"
7249
8701
  ?error="${this.validity !== undefined && this.validity !== 'valid'}"
7250
- ?matchWidth="${!this.flexMenuWidth}"
8702
+ ?matchWidth="${this.matchWidth}"
7251
8703
  ?noFlip="${this.noFlip}"
7252
8704
  ?onDark="${this.onDark}"
7253
8705
  .fullscreenBreakpoint="${this.fullscreenBreakpoint}"
7254
8706
  .offset="${this.offset}"
7255
8707
  .placement="${this.placement}"
7256
8708
  chevron
7257
- fluid
7258
8709
  for="selectMenu"
7259
8710
  layout="${this.layout}"
7260
8711
  part="dropdown"
@@ -7266,15 +8717,14 @@ class AuroSelect extends AuroElement$3 {
7266
8717
  </div>
7267
8718
  <div class="mainContent">
7268
8719
  <div class="${e(valueContainerClasses)}">
7269
- <label>
8720
+ <label class="${e(this.commonLabelClasses)}">
7270
8721
  <slot name="label"></slot>
8722
+ ${this.required ? undefined : u`<slot name="optionalLabel"> (optional)</slot>`}
7271
8723
  </label>
7272
8724
  <div class="value" id="value"></div>
7273
- ${this.value ? undefined : u`
7274
- <div id="placeholder" class="${e(placeholderClass)}">
7275
- <slot name="placeholder"></slot>
7276
- </div>
7277
- `}
8725
+ <div id="placeholder" class="${e(placeholderClass)}">
8726
+ ${this.placeholder}
8727
+ </div>
7278
8728
  </div>
7279
8729
  <div class="${e(displayValueClasses)}" aria-hidden="true" part="displayValue">
7280
8730
  <slot name="displayValue"></slot>
@@ -7284,6 +8734,7 @@ class AuroSelect extends AuroElement$3 {
7284
8734
  </div>
7285
8735
  <div class="menuWrapper"></div>
7286
8736
  <${this.bibtemplateTag} ?large="${this.largeFullscreenHeadline}" @close-click="${this.hideBib}">
8737
+ <slot name="ariaLabel.bib.close" slot="ariaLabel.close">Close</slot>
7287
8738
  <slot></slot>
7288
8739
  </${this.bibtemplateTag}>
7289
8740
  <div slot="helpText">
@@ -7301,14 +8752,14 @@ class AuroSelect extends AuroElement$3 {
7301
8752
  */
7302
8753
  renderLayoutSnowflake() {
7303
8754
  const placeholderClass = {
7304
- hidden: this.value,
8755
+ 'util_displayHidden': this.value
7305
8756
  };
7306
8757
 
7307
8758
  const displayValueClasses = {
7308
8759
  'displayValue': true,
7309
8760
  'hasContent': this.hasDisplayValueContent,
7310
8761
  'hasFocus': this.isPopoverVisible,
7311
- 'withValue': this.value && this.value.length > 0,
8762
+ 'withValue': this.commonLabelClasses.withValue,
7312
8763
  'force': this.forceDisplayValue,
7313
8764
  };
7314
8765
 
@@ -7319,7 +8770,6 @@ class AuroSelect extends AuroElement$3 {
7319
8770
 
7320
8771
  return u`
7321
8772
  <div
7322
- class="${e(this.commonWrapperClasses)}"
7323
8773
  part="wrapper">
7324
8774
  <div id="slotHolder" aria-hidden="true">
7325
8775
  <slot name="bib.fullscreen.headline" @slotchange="${this.handleSlotChange}"></slot>
@@ -7327,14 +8777,13 @@ class AuroSelect extends AuroElement$3 {
7327
8777
  <${this.dropdownTag}
7328
8778
  ?autoPlacement="${this.autoPlacement}"
7329
8779
  ?error="${this.validity !== undefined && this.validity !== 'valid'}"
7330
- ?matchWidth="${!this.flexMenuWidth}"
8780
+ ?matchWidth="${this.matchWidth}"
7331
8781
  ?noFlip="${this.noFlip}"
7332
8782
  ?onDark="${this.onDark}"
7333
8783
  .fullscreenBreakpoint="${this.fullscreenBreakpoint}"
7334
8784
  .offset="${this.offset}"
7335
8785
  .placement="${this.placement}"
7336
8786
  chevron
7337
- fluid
7338
8787
  for="selectMenu"
7339
8788
  layout="${this.layout}"
7340
8789
  part="dropdown"
@@ -7346,15 +8795,14 @@ class AuroSelect extends AuroElement$3 {
7346
8795
  </div>
7347
8796
  <div class="mainContent">
7348
8797
  <div class="${e(valueContainerClasses)}">
7349
- <label>
8798
+ <label class="${e(this.commonLabelClasses)}">
7350
8799
  <slot name="label"></slot>
8800
+ ${this.required ? undefined : u`<slot name="optionalLabel"> (optional)</slot>`}
7351
8801
  </label>
7352
8802
  <div class="value" id="value"></div>
7353
- ${this.value ? undefined : u`
7354
- <div id="placeholder" class="${e(placeholderClass)}">
7355
- <slot name="placeholder"></slot>
7356
- </div>
7357
- `}
8803
+ <div id="placeholder" class="${e(placeholderClass)}">
8804
+ ${this.placeholder}
8805
+ </div>
7358
8806
  </div>
7359
8807
  <div class="${e(displayValueClasses)}" aria-hidden="true" part="displayValue">
7360
8808
  <slot name="displayValue"></slot>
@@ -7364,12 +8812,14 @@ class AuroSelect extends AuroElement$3 {
7364
8812
  </div>
7365
8813
  <div class="menuWrapper"></div>
7366
8814
  <${this.bibtemplateTag} ?large="${this.largeFullscreenHeadline}" @close-click="${this.hideBib}">
8815
+ <slot name="ariaLabel.bib.close" slot="ariaLabel.close">Close</slot>
7367
8816
  <slot></slot>
7368
8817
  </${this.bibtemplateTag}>
7369
8818
  <div slot="helpText">
7370
8819
  ${this.renderHtmlHelpText()}
7371
8820
  </div>
7372
8821
  </${this.dropdownTag}>
8822
+ ${this.renderNativeSelect()}
7373
8823
  </div>
7374
8824
  `;
7375
8825
  }
@@ -7380,11 +8830,80 @@ class AuroSelect extends AuroElement$3 {
7380
8830
  * @returns {import("lit").TemplateResult} - Returns HTML for the classic layout.
7381
8831
  */
7382
8832
  renderLayoutClassic() {
8833
+ const placeholderClass = {
8834
+ 'util_displayHidden': this.value
8835
+ };
8836
+
8837
+ const displayValueClasses = {
8838
+ 'displayValue': true,
8839
+ 'hasContent': this.hasDisplayValueContent,
8840
+ 'hasFocus': this.isPopoverVisible,
8841
+ 'withValue': this.commonLabelClasses.withValue,
8842
+ 'force': this.forceDisplayValue,
8843
+ };
8844
+
8845
+ const valueContainerClasses = {
8846
+ 'valueContainer': true,
8847
+ 'util_displayHiddenVisually': (this.forceDisplayValue || !(this.dropdown && this.dropdown.isPopoverVisible)) && this.hasDisplayValueContent
8848
+ };
8849
+
8850
+ const valueClasses = {
8851
+ 'value': true,
8852
+ 'body-default': true
8853
+ };
8854
+
7383
8855
  return u`
7384
8856
  <div
7385
- class="${e(this.commonWrapperClasses)} thin"
7386
8857
  part="wrapper">
7387
- classic
8858
+ <div id="slotHolder" aria-hidden="true">
8859
+ <slot name="bib.fullscreen.headline" @slotchange="${this.handleSlotChange}"></slot>
8860
+ </div>
8861
+ <${this.dropdownTag}
8862
+ ?autoPlacement="${this.autoPlacement}"
8863
+ ?error="${this.validity !== undefined && this.validity !== 'valid'}"
8864
+ ?matchWidth="${!this.flexMenuWidth}"
8865
+ ?noFlip="${this.noFlip}"
8866
+ ?onDark="${this.onDark}"
8867
+ .fullscreenBreakpoint="${this.fullscreenBreakpoint}"
8868
+ .offset="${this.offset}"
8869
+ .placement="${this.placement}"
8870
+ chevron
8871
+ for="selectMenu"
8872
+ layout="${this.layout}"
8873
+ part="dropdown"
8874
+ shape="${this.shape}"
8875
+ size="${this.size}">
8876
+ <div slot="trigger" aria-haspopup="true" id="triggerFocus" class="triggerContent">
8877
+ <div class="accents left">
8878
+ <slot name="typeIcon"></slot>
8879
+ </div>
8880
+ <div class="mainContent">
8881
+ <div class="${e(valueContainerClasses)}">
8882
+ <label class="${e(this.commonLabelClasses)}">
8883
+ <slot name="label"></slot>
8884
+ ${this.required ? undefined : u`<slot name="optionalLabel"> (optional)</slot>`}
8885
+ </label>
8886
+ <div class="${e(valueClasses)}" id="value"></div>
8887
+ <div id="placeholder" class="${e(placeholderClass)}">
8888
+ ${this.placeholder}
8889
+ </div>
8890
+ </div>
8891
+ <div class="${e(displayValueClasses)}" aria-hidden="true" part="displayValue">
8892
+ <slot name="displayValue"></slot>
8893
+ </div>
8894
+ </div>
8895
+ <div class="accents right"></div>
8896
+ </div>
8897
+ <div class="menuWrapper"></div>
8898
+ <${this.bibtemplateTag} ?large="${this.largeFullscreenHeadline}" @close-click="${this.hideBib}">
8899
+ <slot name="ariaLabel.bib.close" slot="ariaLabel.close">Close</slot>
8900
+ <slot></slot>
8901
+ </${this.bibtemplateTag}>
8902
+ <div slot="helpText">
8903
+ ${this.renderHtmlHelpText()}
8904
+ </div>
8905
+ </${this.dropdownTag}>
8906
+ ${this.renderNativeSelect()}
7388
8907
  </div>
7389
8908
  `;
7390
8909
  }
@@ -7418,112 +8937,13 @@ class AuroSelect extends AuroElement$3 {
7418
8937
 
7419
8938
  // When using auroElement, use the following attribute and function when hiding content from screen readers.
7420
8939
  // aria-hidden="${this.hideAudible(this.hiddenAudible)}"
7421
-
7422
- // function that renders the HTML and CSS into the scope of the component
7423
- renderBACKUP() {
7424
- const placeholderClass = {
7425
- hidden: this.value,
7426
- };
7427
-
7428
- return u`
7429
- <div class="outerWrapper">
7430
- <div aria-live="polite" class="util_displayHiddenVisually">
7431
- ${this.optionActive && this.options.length > 0
7432
- ? u`
7433
- ${`${this.optionActive.innerText}, option ${this.options.indexOf(this.optionActive) + 1} of ${this.options.length}`}
7434
- `
7435
- : undefined
7436
- };
7437
-
7438
- ${this.optionSelected && this.options.length > 0
7439
- ? u`
7440
- ${`${this.optionSelected.innerText} selected`}
7441
- `
7442
- : undefined
7443
- };
7444
- </div>
7445
- <div id="slotHolder" aria-hidden="true">
7446
- <slot name="bib.fullscreen.headline" @slotchange="${this.handleSlotChange}"></slot>
7447
- </div>
7448
- <${this.dropdownTag}
7449
- ?autoPlacement="${this.autoPlacement}"
7450
- ?disabled="${this.disabled}"
7451
- ?error="${this.validity !== undefined && this.validity !== 'valid'}"
7452
- ?matchWidth="${!this.flexMenuWidth}"
7453
- ?noFlip="${this.noFlip}"
7454
- ?onDark="${this.onDark}"
7455
- .fullscreenBreakpoint="${this.fullscreenBreakpoint}"
7456
- .offset="${this.offset}"
7457
- .placement="${this.placement}"
7458
- chevron
7459
- fluid
7460
- for="selectMenu"
7461
- layout="${this.layout}"
7462
- part="dropdown"
7463
- shape="${this.shape}"
7464
- size="${this.size}">
7465
- <span slot="trigger" aria-haspopup="true" id="triggerFocus">
7466
- <span id="placeholder"
7467
- class="${e(placeholderClass)}"
7468
- ?aria-hidden="${this.optionSelected && this.optionSelected.length ? 'true' : false}"
7469
- >
7470
- <slot name="placeholder"></slot>
7471
- </span>
7472
- <slot name="valueText" id="valueText"></slot>
7473
- </span>
7474
-
7475
- <${this.bibtemplateTag} ?large="${this.largeFullscreenHeadline}" @close-click="${this.hideBib}">
7476
- <slot></slot>
7477
- </${this.bibtemplateTag}>
7478
- <slot name="label" slot="label"></slot>
7479
- <p slot="helpText">
7480
- ${!this.validity || this.validity === undefined || this.validity === 'valid'
7481
- ? u`
7482
- <span id="${this.uniqueId}" part="helpText">
7483
- <slot name="helpText"></slot>
7484
- </span>`
7485
- : u`
7486
- <span id="${this.uniqueId}" role="alert" aria-live="assertive" part="helpText">
7487
- ${this.errorMessage}
7488
- </span>`
7489
- }
7490
- </p>
7491
- </${this.dropdownTag}>
7492
- <div class="nativeSelectWrapper">
7493
- <select
7494
- tabindex="-1"
7495
- id="${`native-select-${this.id || this.uniqueId}`}"
7496
- name="${this.name || ''}"
7497
- ?disabled="${this.disabled}"
7498
- ?required="${this.required}"
7499
- aria-hidden="true"
7500
- autocomplete="${o(this.autocomplete)}"
7501
- @change="${this._handleNativeSelectChange}">
7502
- <option value="" ?selected="${!this.value}"></option>
7503
- ${this.options.map((option) => {
7504
- const optionValue = option.value || option.textContent;
7505
- return u`
7506
- <option
7507
- value="${optionValue}"
7508
- ?selected="${this.value === optionValue}">
7509
- ${option.textContent}
7510
- </option>
7511
- `;
7512
- })}
7513
- </select>
7514
- </div>
7515
- <!-- Help text and error message template -->
7516
- ${this.renderHtmlHelpText()}
7517
- </div>
7518
- `;
7519
- }
7520
8940
  }
7521
8941
 
7522
- 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)}`;
8942
+ 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)}`;
7523
8943
 
7524
8944
  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)}`;
7525
8945
 
7526
- 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)}`;
8946
+ 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)}`;
7527
8947
 
7528
8948
  // Copyright (c) 2021 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
7529
8949
  // See LICENSE in the project root for license information.
@@ -7576,7 +8996,6 @@ function dispatchMenuEvent(element, eventName, detail = null) {
7576
8996
  * @attr {boolean} nocheckmark - When true, selected option will not show the checkmark.
7577
8997
  * @attr {boolean} loading - When true, displays a loading state using the loadingIcon and loadingText slots if provided.
7578
8998
  * @attr {boolean} multiselect - When true, the selected option can be multiple options.
7579
- * @attr {String|Array<string>} value - Value selected for the menu, type `string` by default. In multi-select mode, `value` is an array of strings.
7580
8999
  * @prop {boolean} hasLoadingPlaceholder - Indicates whether the menu has a loadingIcon or loadingText to render when in a loading state.
7581
9000
  * @event {CustomEvent<Element>} auroMenu-activatedOption - Notifies that a menuoption has been made `active`.
7582
9001
  * @event {CustomEvent<any>} auroMenu-customEventFired - Notifies that a custom event has been fired.
@@ -7591,12 +9010,22 @@ function dispatchMenuEvent(element, eventName, detail = null) {
7591
9010
 
7592
9011
  /* eslint-disable no-magic-numbers, max-lines, no-extra-parens */
7593
9012
 
7594
- class AuroMenu extends i$2 {
9013
+ class AuroMenu extends AuroElement$4 {
7595
9014
  constructor() {
7596
9015
  super();
7597
9016
 
7598
9017
  // State properties (reactive)
7599
9018
 
9019
+ /**
9020
+ * @private
9021
+ */
9022
+ this.shape = "box";
9023
+
9024
+ /**
9025
+ * @private
9026
+ */
9027
+ this.size = "sm";
9028
+
7600
9029
  // Value of the selected options
7601
9030
  this.value = undefined;
7602
9031
  // Currently selected option
@@ -7655,6 +9084,7 @@ class AuroMenu extends i$2 {
7655
9084
 
7656
9085
  static get properties() {
7657
9086
  return {
9087
+ ...super.properties,
7658
9088
  noCheckmark: {
7659
9089
  type: Boolean,
7660
9090
  reflect: true,
@@ -7685,9 +9115,24 @@ class AuroMenu extends i$2 {
7685
9115
  reflect: true,
7686
9116
  attribute: 'multiselect'
7687
9117
  },
9118
+
9119
+ /**
9120
+ * Value selected for the component.
9121
+ */
7688
9122
  value: {
7689
- // Allow string, string[] arrays and undefined
7690
- type: Object
9123
+ type: String,
9124
+ reflect: true,
9125
+ attribute: 'value'
9126
+ },
9127
+
9128
+ /**
9129
+ * Indent level for submenus.
9130
+ * @private
9131
+ */
9132
+ level: {
9133
+ type: Number,
9134
+ reflect: false,
9135
+ attribute: false
7691
9136
  }
7692
9137
  };
7693
9138
  }
@@ -7709,7 +9154,26 @@ class AuroMenu extends i$2 {
7709
9154
  *
7710
9155
  */
7711
9156
  static register(name = "auro-menu") {
7712
- AuroLibraryRuntimeUtils$4.prototype.registerComponent(name, AuroMenu);
9157
+ AuroLibraryRuntimeUtils$5.prototype.registerComponent(name, AuroMenu);
9158
+ }
9159
+
9160
+ /**
9161
+ * Formatted value based on `multiSelect` state.
9162
+ * Default type is `String`, changing to `Array<String>` when `multiSelect` is true.
9163
+ * @private
9164
+ * @returns {String|Array<String>}
9165
+ */
9166
+ get formattedValue() {
9167
+ if (this.multiSelect) {
9168
+ if (!this.value) {
9169
+ return undefined;
9170
+ }
9171
+ if (this.value.startsWith("[")) {
9172
+ return JSON.parse(this.value);
9173
+ }
9174
+ return [this.value];
9175
+ }
9176
+ return this.value;
7713
9177
  }
7714
9178
 
7715
9179
  // Lifecycle Methods
@@ -7721,6 +9185,7 @@ class AuroMenu extends i$2 {
7721
9185
  this.addEventListener('mousedown', this.handleMouseSelect);
7722
9186
  this.addEventListener('auroMenuOption-mouseover', this.handleOptionHover);
7723
9187
  this.addEventListener('slotchange', this.handleSlotChange);
9188
+ this.setTagAttribute("auro-menu");
7724
9189
  }
7725
9190
 
7726
9191
  disconnectedCallback() {
@@ -7733,19 +9198,33 @@ class AuroMenu extends i$2 {
7733
9198
  }
7734
9199
 
7735
9200
  firstUpdated() {
7736
- AuroLibraryRuntimeUtils$4.prototype.handleComponentTagRename(this, 'auro-menu');
9201
+ AuroLibraryRuntimeUtils$5.prototype.handleComponentTagRename(this, 'auro-menu');
7737
9202
 
7738
9203
  this.loadingSlots = this.querySelectorAll("[slot='loadingText'], [slot='loadingIcon']");
7739
9204
  this.initializeMenu();
7740
9205
  }
7741
9206
 
9207
+ /**
9208
+ * Sets an attribute that matches the default tag name if the tag name is not the default.
9209
+ * @param {string} tagName - The tag name to set as an attribute.
9210
+ * @private
9211
+ */
9212
+ setTagAttribute(tagName) {
9213
+ if (this.tagName.toLowerCase() !== tagName) {
9214
+ this.setAttribute(tagName, true);
9215
+ }
9216
+ }
9217
+
7742
9218
  updated(changedProperties) {
7743
- if (changedProperties.has('multiSelect')) {
9219
+ super.updated(changedProperties);
9220
+
9221
+ if (changedProperties.has('multiSelect') && !changedProperties.has("value")) {
7744
9222
  // Reset selection if multiSelect mode changes
7745
9223
  this.clearSelection();
7746
9224
  }
7747
9225
 
7748
- if (changedProperties.has('value')) {
9226
+
9227
+ if (changedProperties.has("value")) {
7749
9228
  // Handle null/undefined case
7750
9229
  if (this.value === undefined || this.value === null) {
7751
9230
  this.optionSelected = undefined;
@@ -7753,7 +9232,7 @@ class AuroMenu extends i$2 {
7753
9232
  } else {
7754
9233
  if (this.multiSelect) {
7755
9234
  // In multiselect mode, this.value should be an array of strings
7756
- const valueArray = Array.isArray(this.value) ? this.value : [this.value];
9235
+ const valueArray = this.formattedValue;
7757
9236
  const matchingOptions = this.items.filter((item) => valueArray.includes(item.value));
7758
9237
 
7759
9238
  this.optionSelected = matchingOptions.length > 0 ? matchingOptions : undefined;
@@ -7813,6 +9292,19 @@ class AuroMenu extends i$2 {
7813
9292
  this.querySelectorAll('auro-menu, [auro-menu], auro-menuoption, [auro-menuoption]').forEach((element) => element.setAttribute('noCheckmark', ''));
7814
9293
  }
7815
9294
 
9295
+ // Handle layout propagation to all menus and options
9296
+ const propagationTargets = this.querySelectorAll('auro-menu, [auro-menu], auro-menuoption, [auro-menuoption]');
9297
+ [
9298
+ 'size',
9299
+ 'shape'
9300
+ ].forEach((prop) => {
9301
+ if (changedProperties.has(prop)) {
9302
+ propagationTargets.forEach((el) => {
9303
+ el.setAttribute(prop, this[prop]);
9304
+ });
9305
+ }
9306
+ });
9307
+
7816
9308
  // Regex for matchWord if needed
7817
9309
  let regexWord = null;
7818
9310
 
@@ -7907,14 +9399,14 @@ class AuroMenu extends i$2 {
7907
9399
  */
7908
9400
  handleSelectState(option) {
7909
9401
  if (this.multiSelect) {
7910
- const currentValue = this.value || [];
9402
+ const currentValue = this.formattedValue || [];
7911
9403
  const currentSelected = this.optionSelected || [];
7912
9404
 
7913
9405
  if (!currentValue.includes(option.value)) {
7914
- this.value = [
9406
+ this.value = JSON.stringify([
7915
9407
  ...currentValue,
7916
9408
  option.value
7917
- ];
9409
+ ]);
7918
9410
  }
7919
9411
  if (!currentSelected.includes(option)) {
7920
9412
  this.optionSelected = [
@@ -7937,13 +9429,15 @@ class AuroMenu extends i$2 {
7937
9429
  * @param {HTMLElement} option - The menuoption to be deselected.
7938
9430
  */
7939
9431
  handleDeselectState(option) {
7940
- if (this.multiSelect && Array.isArray(this.value)) {
9432
+ if (this.multiSelect) {
7941
9433
  // Remove this option from array
7942
- this.value = this.value.filter((val) => val !== option.value);
9434
+ const newFormattedValue = (this.formattedValue || []).filter((val) => val !== option.value);
7943
9435
 
7944
9436
  // If array is empty after removal, set back to undefined
7945
- if (this.value.length === 0) {
9437
+ if (newFormattedValue && newFormattedValue.length === 0) {
7946
9438
  this.value = undefined;
9439
+ } else {
9440
+ this.value = JSON.stringify(newFormattedValue);
7947
9441
  }
7948
9442
 
7949
9443
  this.optionSelected = this.optionSelected.filter((val) => val !== option);
@@ -8009,21 +9503,20 @@ class AuroMenu extends i$2 {
8009
9503
  * @param {HTMLElement} menu - Root menu element.
8010
9504
  */
8011
9505
  handleNestedMenus(menu) {
8012
- const nestedMenus = menu.querySelectorAll('auro-menu, [auro-menu]');
9506
+ menu.level = menu.parentElement.level >= 0 ? menu.parentElement.level + 1 : 0;
8013
9507
 
8014
- nestedMenus.forEach((nestedMenu) => {
8015
- // role="listbox" only allows "role=group" for children.
8016
- nestedMenu.setAttribute('role', 'group');
8017
- if (!nestedMenu.hasAttribute('aria-label')) {
8018
- nestedMenu.setAttribute('aria-label', 'submenu');
9508
+ if (menu.level > 0) {
9509
+ menu.setAttribute('role', 'group');
9510
+ menu.removeAttribute("root");
9511
+ if (!menu.hasAttribute('aria-label')) {
9512
+ menu.setAttribute('aria-label', 'submenu');
8019
9513
  }
9514
+ }
8020
9515
 
8021
- const options = nestedMenu.querySelectorAll(':scope > auro-menuoption, :scope > [auro-menuoption]');
8022
- options.forEach((option) => {
8023
- option.innerHTML = this.nestingSpacer + option.innerHTML;
8024
- });
8025
-
8026
- this.handleNestedMenus(nestedMenu);
9516
+ const options = menu.querySelectorAll(':scope > auro-menuoption, :scope > [auro-menuoption]');
9517
+ options.forEach((option) => {
9518
+ const regex = new RegExp(this.nestingSpacer, "gu");
9519
+ option.innerHTML = this.nestingSpacer.repeat(menu.level) + option.innerHTML.replace(regex, '');
8027
9520
  });
8028
9521
  }
8029
9522
 
@@ -8265,28 +9758,51 @@ class AuroMenu extends i$2 {
8265
9758
  }
8266
9759
 
8267
9760
  /**
8268
- * Renders the component.
8269
- * @returns {boolean} - True if loading slots are present and non-empty.
9761
+ * Getter for wrapper classes based on size.
9762
+ * @returns {Object} - Class map for the wrapper element.
9763
+ * @private
8270
9764
  */
8271
- render() {
9765
+ get wrapperClasses() {
9766
+ return e({
9767
+ 'menuWrapper': true,
9768
+ [this.size]: true,
9769
+ });
9770
+ }
9771
+
9772
+ /**
9773
+ * Logic to determine the layout of the component.
9774
+ * @protected
9775
+ * @returns {void}
9776
+ */
9777
+ renderLayout() {
8272
9778
  if (this.loading) {
8273
9779
  return x`
8274
- <auro-menuoption disabled loadingplaceholder class="${this.hasLoadingPlaceholder ? '' : 'empty'}">
8275
- <div>
8276
- <slot name="loadingIcon"></slot>
8277
- <slot name="loadingText"></slot>
8278
- </div>
8279
- </auro-menuoption>
9780
+ <div class="${this.wrapperClasses}">
9781
+ <auro-menuoption
9782
+ disabled
9783
+ loadingplaceholder
9784
+ class="${this.hasLoadingPlaceholder ? "" : "empty"}"
9785
+ >
9786
+ <div>
9787
+ <slot name="loadingIcon" class="body-lg"></slot>
9788
+ <slot name="loadingText"></slot>
9789
+ </div>
9790
+ </auro-menuoption>
9791
+ </div>
8280
9792
  `;
8281
9793
  }
8282
9794
 
8283
- return x`<slot @slotchange=${this.handleSlotChange}></slot>`;
9795
+ return x`
9796
+ <div class="${this.wrapperClasses}">
9797
+ <slot @slotchange=${this.handleSlotChange}></slot>
9798
+ </div>
9799
+ `;
8284
9800
  }
8285
9801
  }
8286
9802
 
8287
- 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}`;
9803
+ 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}`;
8288
9804
 
8289
- 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)}`;
9805
+ var colorCss$1 = i$5`:host .wrapper{background-color:var(--ds-auro-menuoption-container-color);box-shadow:inset 0 0 0 1px var(--ds-auro-menuoption-container-border-color);color:var(--ds-auro-menuoption-text-color)}:host svg{fill:var(--ds-auro-menuoption-icon-color)}:host([disabled]){--ds-auro-menuoption-text-color: var(--ds-basic-color-texticon-disabled, #d0d0d0)}:host(:hover),:host(.active){--ds-auro-menuoption-container-color: var(--ds-basic-color-surface-neutral-subtle, #f7f7f7)}:host([selected]){--ds-auro-menuoption-container-color: var(--ds-advanced-color-state-selected, #01426a);--ds-auro-menuoption-text-color: var(--ds-basic-color-texticon-inverse, #ffffff);--ds-auro-menuoption-icon-color: var(--ds-basic-color-texticon-inverse, #ffffff)}:host([selected]):host(:hover),:host([selected]):host(.active){--ds-auro-menuoption-container-color: var(--ds-advanced-color-state-selected-hover, #00274a)}`;
8290
9806
 
8291
9807
  // Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
8292
9808
  // See LICENSE in the project root for license information.
@@ -8634,8 +10150,12 @@ class AuroIcon extends BaseIcon {
8634
10150
  async firstUpdated() {
8635
10151
  await super.firstUpdated();
8636
10152
 
8637
- // Removes the SVG description for screenreader if ariaHidden is set to true
8638
- if (!this.hasAttribute('ariaHidden') && this.svg) {
10153
+ /**
10154
+ * icons provide a description for screen readers. Icon only instances Auro-button
10155
+ * depend on this description to provide context for the user using a screen reader.
10156
+ * Removes the SVG description for screen reader if ariaHidden is set to true.
10157
+ */
10158
+ if (this.hasAttribute('ariaHidden') && this.svg) {
8639
10159
  const svgDesc = this.svg.querySelector('desc');
8640
10160
 
8641
10161
  if (svgDesc) {
@@ -8679,7 +10199,7 @@ class AuroIcon extends BaseIcon {
8679
10199
  }
8680
10200
  }
8681
10201
 
8682
- var iconVersion = '8.0.3';
10202
+ var iconVersion = '8.1.0';
8683
10203
 
8684
10204
  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>"};
8685
10205
 
@@ -8697,10 +10217,20 @@ var checkmarkIcon = {"svg":"<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlin
8697
10217
  * @event auroMenuOption-mouseover - Notifies that this option has been hovered over.
8698
10218
  * @slot - Specifies text for an option, but is not the value.
8699
10219
  */
8700
- class AuroMenuOption extends i$2 {
10220
+ class AuroMenuOption extends AuroElement$4 {
8701
10221
  constructor() {
8702
10222
  super();
8703
10223
 
10224
+ /**
10225
+ * @private
10226
+ */
10227
+ this.shape = undefined;
10228
+
10229
+ /**
10230
+ * @private
10231
+ */
10232
+ this.size = undefined;
10233
+
8704
10234
  /**
8705
10235
  * Generate unique names for dependency components.
8706
10236
  */
@@ -8719,11 +10249,12 @@ class AuroMenuOption extends i$2 {
8719
10249
  /**
8720
10250
  * @private
8721
10251
  */
8722
- this.runtimeUtils = new AuroLibraryRuntimeUtils$4();
10252
+ this.runtimeUtils = new AuroLibraryRuntimeUtils$5();
8723
10253
  }
8724
10254
 
8725
10255
  static get properties() {
8726
10256
  return {
10257
+ ...super.properties,
8727
10258
  nocheckmark: {
8728
10259
  type: Boolean,
8729
10260
  reflect: true
@@ -8763,13 +10294,20 @@ class AuroMenuOption extends i$2 {
8763
10294
  *
8764
10295
  */
8765
10296
  static register(name = "auro-menuoption") {
8766
- AuroLibraryRuntimeUtils$4.prototype.registerComponent(name, AuroMenuOption);
10297
+ AuroLibraryRuntimeUtils$5.prototype.registerComponent(name, AuroMenuOption);
8767
10298
  }
8768
10299
 
8769
10300
  firstUpdated() {
8770
10301
  // Add the tag name as an attribute if it is different than the component name
8771
10302
  this.runtimeUtils.handleComponentTagRename(this, 'auro-menuoption');
8772
10303
 
10304
+ if (!this.hasAttribute('size')) {
10305
+ this.size = this.parentElement.getAttribute('size') || 'sm';
10306
+ }
10307
+ if (!this.hasAttribute('shape')) {
10308
+ this.shape = this.parentElement.getAttribute('shape') || 'box';
10309
+ }
10310
+
8773
10311
  this.setAttribute('role', 'option');
8774
10312
  this.setAttribute('aria-selected', 'false');
8775
10313
 
@@ -8785,6 +10323,8 @@ class AuroMenuOption extends i$2 {
8785
10323
 
8786
10324
  // observer for selected property changes
8787
10325
  updated(changedProperties) {
10326
+ super.updated(changedProperties);
10327
+
8788
10328
  if (changedProperties.has('selected')) {
8789
10329
  this.setAttribute('aria-selected', this.selected.toString());
8790
10330
  }
@@ -8803,13 +10343,36 @@ class AuroMenuOption extends i$2 {
8803
10343
 
8804
10344
  svg.setAttribute('slot', 'svg');
8805
10345
 
8806
- return u`<${this.iconTag} customColor customSvg slot="icon">${svg}</${this.iconTag}>`;
10346
+ return u`<${this.iconTag} customColor customSvg>${svg}</${this.iconTag}>`;
8807
10347
  }
8808
10348
 
8809
- render() {
10349
+ /**
10350
+ * Logic to determine the layout of the component.
10351
+ * @protected
10352
+ * @returns {void}
10353
+ */
10354
+ renderLayout() {
10355
+
10356
+ const fontClassMap = {
10357
+ xs: 'body-sm',
10358
+ sm: 'body-default',
10359
+ md: 'body-default',
10360
+ lg: 'body-lg',
10361
+ xl: 'body-lg'
10362
+ };
10363
+
10364
+ const classes = e({
10365
+ 'wrapper': true,
10366
+ [this.size ? fontClassMap[this.size] : 'body-sm']: true,
10367
+ });
10368
+
8810
10369
  return u`
8811
- ${this.selected && !this.nocheckmark ? this.generateIconHtml(checkmarkIcon.svg) : undefined}
8812
- <slot></slot>
10370
+ <div class="${classes}">
10371
+ ${this.selected && !this.nocheckmark
10372
+ ? this.generateIconHtml(checkmarkIcon.svg)
10373
+ : undefined}
10374
+ <slot></slot>
10375
+ </div>
8813
10376
  `;
8814
10377
  }
8815
10378
  }