@aurodesignsystem-dev/auro-formkit 0.0.0-pr624.8 → 0.0.0-pr624.80

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 (143) hide show
  1. package/components/bibtemplate/dist/auro-bibtemplate.d.ts +12 -2
  2. package/components/bibtemplate/dist/buttonVersion.d.ts +2 -0
  3. package/components/bibtemplate/dist/iconVersion.d.ts +1 -1
  4. package/components/bibtemplate/dist/index.js +1262 -81
  5. package/components/bibtemplate/dist/registered.js +1262 -81
  6. package/components/checkbox/README.md +1 -1
  7. package/components/checkbox/demo/api.html +16 -10
  8. package/components/checkbox/demo/api.md +49 -15
  9. package/components/checkbox/demo/api.min.js +73 -43
  10. package/components/checkbox/demo/index.html +16 -10
  11. package/components/checkbox/demo/index.md +2 -2
  12. package/components/checkbox/demo/index.min.js +73 -43
  13. package/components/checkbox/demo/readme.html +16 -9
  14. package/components/checkbox/demo/readme.md +1 -1
  15. package/components/checkbox/dist/auro-checkbox-group.d.ts +1 -1
  16. package/components/checkbox/dist/auro-checkbox.d.ts +3 -3
  17. package/components/checkbox/dist/index.js +72 -42
  18. package/components/checkbox/dist/registered.js +72 -42
  19. package/components/combobox/demo/api.html +16 -10
  20. package/components/combobox/demo/api.md +115 -8
  21. package/components/combobox/demo/api.min.js +3102 -921
  22. package/components/combobox/demo/index.html +16 -10
  23. package/components/combobox/demo/index.md +6 -30
  24. package/components/combobox/demo/index.min.js +3102 -921
  25. package/components/combobox/demo/readme.html +16 -9
  26. package/components/combobox/dist/auro-combobox.d.ts +44 -12
  27. package/components/combobox/dist/index.js +3080 -995
  28. package/components/combobox/dist/registered.js +3080 -995
  29. package/components/counter/demo/api.html +17 -10
  30. package/components/counter/demo/api.md +158 -21
  31. package/components/counter/demo/api.min.js +3416 -728
  32. package/components/counter/demo/index.html +17 -10
  33. package/components/counter/demo/index.md +185 -34
  34. package/components/counter/demo/index.min.js +3416 -728
  35. package/components/counter/demo/readme.html +16 -9
  36. package/components/counter/dist/auro-counter-button.d.ts +2 -0
  37. package/components/counter/dist/auro-counter-group.d.ts +161 -11
  38. package/components/counter/dist/auro-counter.d.ts +16 -0
  39. package/components/counter/dist/helptextVersion.d.ts +2 -0
  40. package/components/counter/dist/iconVersion.d.ts +1 -1
  41. package/components/counter/dist/index.js +3416 -728
  42. package/components/counter/dist/registered.js +3416 -728
  43. package/components/datepicker/README.md +1 -1
  44. package/components/datepicker/demo/api.html +16 -10
  45. package/components/datepicker/demo/api.md +59 -28
  46. package/components/datepicker/demo/api.min.js +8486 -4644
  47. package/components/datepicker/demo/index.html +16 -10
  48. package/components/datepicker/demo/index.md +75 -8
  49. package/components/datepicker/demo/index.min.js +8486 -4644
  50. package/components/datepicker/demo/readme.html +16 -9
  51. package/components/datepicker/demo/readme.md +1 -1
  52. package/components/datepicker/dist/auro-datepicker.d.ts +151 -12
  53. package/components/datepicker/dist/buttonVersion.d.ts +1 -1
  54. package/components/datepicker/dist/iconVersion.d.ts +2 -0
  55. package/components/datepicker/dist/index.js +7033 -3191
  56. package/components/datepicker/dist/popoverVersion.d.ts +1 -1
  57. package/components/datepicker/dist/registered.js +7033 -3191
  58. package/components/dropdown/demo/api.html +16 -10
  59. package/components/dropdown/demo/api.md +82 -275
  60. package/components/dropdown/demo/api.min.js +451 -260
  61. package/components/dropdown/demo/index.html +16 -10
  62. package/components/dropdown/demo/index.md +92 -362
  63. package/components/dropdown/demo/index.min.js +451 -260
  64. package/components/dropdown/demo/readme.html +16 -9
  65. package/components/dropdown/dist/auro-dropdown.d.ts +43 -83
  66. package/components/dropdown/dist/auro-dropdownBib.d.ts +14 -0
  67. package/components/dropdown/dist/index.js +450 -259
  68. package/components/dropdown/dist/registered.js +450 -259
  69. package/components/form/demo/api.html +16 -9
  70. package/components/form/demo/api.min.js +2 -2
  71. package/components/form/demo/autocomplete.html +19 -3
  72. package/components/form/demo/index.html +16 -9
  73. package/components/form/demo/index.min.js +2 -2
  74. package/components/form/demo/readme.html +16 -9
  75. package/components/form/demo/working.html +19 -13
  76. package/components/form/dist/index.js +1 -1
  77. package/components/form/dist/registered.js +1 -1
  78. package/components/helptext/dist/index.js +2 -2
  79. package/components/helptext/dist/registered.js +2 -2
  80. package/components/input/README.md +5 -2
  81. package/components/input/demo/api.html +16 -10
  82. package/components/input/demo/api.md +228 -130
  83. package/components/input/demo/api.min.js +909 -247
  84. package/components/input/demo/index.html +16 -10
  85. package/components/input/demo/index.md +48 -32
  86. package/components/input/demo/index.min.js +909 -247
  87. package/components/input/demo/readme.html +16 -9
  88. package/components/input/demo/readme.md +5 -2
  89. package/components/input/dist/auro-input.d.ts +3 -3
  90. package/components/input/dist/base-input.d.ts +38 -10
  91. package/components/input/dist/buttonVersion.d.ts +1 -1
  92. package/components/input/dist/iconVersion.d.ts +1 -1
  93. package/components/input/dist/index.js +908 -246
  94. package/components/input/dist/registered.js +908 -246
  95. package/components/layoutElement/dist/index.js +13 -10
  96. package/components/menu/demo/api.html +32 -10
  97. package/components/menu/demo/api.md +69 -8
  98. package/components/menu/demo/api.min.js +239 -48
  99. package/components/menu/demo/index.html +16 -10
  100. package/components/menu/demo/index.min.js +239 -48
  101. package/components/menu/demo/readme.html +16 -9
  102. package/components/menu/dist/auro-menu.d.ts +41 -7
  103. package/components/menu/dist/auro-menuoption.d.ts +15 -3
  104. package/components/menu/dist/iconVersion.d.ts +1 -1
  105. package/components/menu/dist/index.js +238 -47
  106. package/components/menu/dist/registered.js +238 -47
  107. package/components/menu/dist/styles/default/color-menuoption-css.d.ts +2 -0
  108. package/components/menu/dist/styles/default/style-menu-css.d.ts +2 -0
  109. package/components/menu/dist/styles/default/style-menuoption-css.d.ts +2 -0
  110. package/components/menu/dist/styles/default/tokens-css.d.ts +2 -0
  111. package/components/radio/demo/api.html +16 -10
  112. package/components/radio/demo/api.md +39 -9
  113. package/components/radio/demo/api.min.js +91 -93
  114. package/components/radio/demo/index.html +16 -10
  115. package/components/radio/demo/index.min.js +91 -93
  116. package/components/radio/demo/readme.html +16 -9
  117. package/components/radio/dist/auro-radio-group.d.ts +1 -1
  118. package/components/radio/dist/auro-radio.d.ts +9 -12
  119. package/components/radio/dist/index.js +90 -92
  120. package/components/radio/dist/registered.js +90 -92
  121. package/components/select/demo/api.html +16 -10
  122. package/components/select/demo/api.js +0 -2
  123. package/components/select/demo/api.md +150 -121
  124. package/components/select/demo/api.min.js +2184 -704
  125. package/components/select/demo/index.html +17 -11
  126. package/components/select/demo/index.md +1066 -259
  127. package/components/select/demo/index.min.js +2186 -694
  128. package/components/select/demo/readme.html +16 -9
  129. package/components/select/dist/auro-select.d.ts +59 -21
  130. package/components/select/dist/index.js +2107 -711
  131. package/components/select/dist/registered.js +2107 -711
  132. package/package.json +31 -28
  133. /package/components/{datepicker/dist/styles/default/color-css.d.ts → counter/dist/styles/shapeSize-css.d.ts} +0 -0
  134. /package/components/{dropdown/dist/styles/default → datepicker/dist/styles/classic}/color-css.d.ts +0 -0
  135. /package/components/datepicker/dist/styles/{emphasized → classic}/style-css.d.ts +0 -0
  136. /package/components/{dropdown/dist/styles/default/bibColors-css.d.ts → datepicker/dist/styles/snowflake/color-css.d.ts} +0 -0
  137. /package/components/{dropdown/dist/styles/default → datepicker/dist/styles/snowflake}/style-css.d.ts +0 -0
  138. /package/components/dropdown/dist/styles/{default/bibStyles-css.d.ts → classic/bibColors-css.d.ts} +0 -0
  139. /package/components/{menu/dist/styles/color-menu-css.d.ts → dropdown/dist/styles/classic/bibStyles-css.d.ts} +0 -0
  140. /package/components/{menu/dist/styles/color-menuoption-css.d.ts → dropdown/dist/styles/classic/color-css.d.ts} +0 -0
  141. /package/components/{menu/dist/styles/style-menu-css.d.ts → dropdown/dist/styles/classic/style-css.d.ts} +0 -0
  142. /package/components/{menu/dist/styles/style-menuoption-css.d.ts → dropdown/dist/styles/style-css.d.ts} +0 -0
  143. /package/components/menu/dist/styles/{tokens-css.d.ts → default/color-menu-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,18 +79,21 @@ 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
 
92
- wrapper.classList.add(`shape-${this.shape.toLowerCase()}-${this.size.toLowerCase()}`);
93
- }
91
+ }
92
+
93
+ if (this.shape && this.size) {
94
+ wrapper.classList.add(`shape-${this.shape.toLowerCase()}-${this.size.toLowerCase()}`);
95
+ } else {
96
+ wrapper.classList.add('shape-none');
94
97
  }
95
98
  }
96
99
 
@@ -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:58px;max-height:58px;border-style:solid;border-width:1px;border-radius:var(--ds-border-radius, 0.375rem)}.shape-classic-xl.simple,.shape-classic-lg.simple,.shape-classic-md.simple,.shape-classic-sm.simple,.shape-classic-xs.simple{border-width:0px;min-height:60px;max-height:60px;background-color:unset;box-shadow:none}.shape-classic-xl.thin,.shape-classic-lg.thin,.shape-classic-md.thin,.shape-classic-sm.thin,.shape-classic-xs.thin{border-width:1px;min-height:58px;max-height:58px;background-color:unset}.shape-classic-xl.parentBorder,.shape-classic-lg.parentBorder,.shape-classic-md.parentBorder,.shape-classic-sm.parentBorder,.shape-classic-xs.parentBorder{border:0;box-shadow:unset;min-height:56px;max-height:56px}.shape-snowflake-xl,.shape-snowflake-lg,.shape-snowflake-md,.shape-snowflake-sm,.shape-snowflake-xs{min-height:56px;max-height:56px;border-style:solid;border-width:2px;border-color:transparent;border-radius:30px}.shape-snowflake-xl.simple,.shape-snowflake-lg.simple,.shape-snowflake-md.simple,.shape-snowflake-sm.simple,.shape-snowflake-xs.simple{border-width:0px;min-height:60px;max-height:60px;background-color:unset;box-shadow:none}.shape-snowflake-xl.thin,.shape-snowflake-lg.thin,.shape-snowflake-md.thin,.shape-snowflake-sm.thin,.shape-snowflake-xs.thin{border-width:1px;min-height:58px;max-height:58px;background-color:unset}.shape-snowflake-xl.parentBorder,.shape-snowflake-lg.parentBorder,.shape-snowflake-md.parentBorder,.shape-snowflake-sm.parentBorder,.shape-snowflake-xs.parentBorder{border:0;box-shadow:unset;min-height:56px;max-height:56px}.shape-box-xl{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent}.shape-box-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset;box-shadow:none}.shape-box-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-box-xl.parentBorder{border:0;box-shadow:unset;min-height:68px;max-height:68px}.shape-rounded-lg{min-height:56px;max-height:56px;border-style:solid;border-width:2px;border-color:transparent;border-radius:6px}.shape-rounded-lg.simple{border-width:0px;min-height:56px;max-height:56px;background-color:unset;box-shadow:none}.shape-rounded-lg.thin{border-width:1px;min-height:54px;max-height:54px;background-color:unset}.shape-rounded-lg.parentBorder{border:0;box-shadow:unset;min-height:52px;max-height:52px}.shape-pill-xl{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px}.shape-pill-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset;box-shadow:none}.shape-pill-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-pill-xl.parentBorder{border:0;box-shadow:unset;min-height:68px;max-height:68px}.shape-pill-left-xl{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px 0 0 36px}.shape-pill-left-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset;box-shadow:none}.shape-pill-left-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-pill-left-xl.parentBorder{border:0;box-shadow:unset;min-height:68px;max-height:68px}.shape-pill-right-xl{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent;border-radius:0 36px 36px 0}.shape-pill-right-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset;box-shadow:none}.shape-pill-right-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-pill-right-xl.parentBorder{border:0;box-shadow:unset;min-height:68px;max-height:68px}.shape-pill-md{min-height:44px;max-height:44px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px}.shape-pill-md.simple{border-width:0px;min-height:48px;max-height:48px;background-color:unset;box-shadow:none}.shape-pill-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}.shape-pill-md.parentBorder{border:0;box-shadow:unset;min-height:44px;max-height:44px}.shape-pill-left-md{min-height:44px;max-height:44px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px 0 0 36px}.shape-pill-left-md.simple{border-width:0px;min-height:48px;max-height:48px;background-color:unset;box-shadow:none}.shape-pill-left-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}.shape-pill-left-md.parentBorder{border:0;box-shadow:unset;min-height:44px;max-height:44px}.shape-pill-right-md{min-height:44px;max-height:44px;border-style:solid;border-width:2px;border-color:transparent;border-radius:0 36px 36px 0}.shape-pill-right-md.simple{border-width:0px;min-height:48px;max-height:48px;background-color:unset;box-shadow:none}.shape-pill-right-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}.shape-pill-right-md.parentBorder{border:0;box-shadow:unset;min-height:44px;max-height:44px}`;
140
143
 
141
- var tokensCss$5 = i$5`:host(:not([ondark])){--ds-auro-select-border-color: var(--ds-basic-color-border-bold, #585e67);--ds-auro-select-background-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-select-label-text-color: var(--ds-basic-color-texticon-muted, #676767);--ds-auro-select-placeholder-text-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-select-text-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-select-error-icon-color: var(--ds-basic-color-status-error, #e31f26);--ds-auro-select-outline-color: transparent}:host([ondark]){--ds-auro-select-border-color: var(--ds-basic-color-border-inverse, #ffffff);--ds-auro-select-background-color: var(--ds-advanced-color-shared-background-inverse, rgba(255, 255, 255, 0.15));--ds-auro-select-label-text-color: var(--ds-basic-color-texticon-inverse, #ffffff);--ds-auro-select-placeholder-text-color: var(--ds-basic-color-texticon-inverse, #ffffff);--ds-auro-select-text-color: var(--ds-basic-color-texticon-inverse, #ffffff);--ds-auro-select-error-icon-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8);--ds-auro-select-outline-color: transparent}`;
144
+ var tokensCss$5 = i$5`:host(:not([ondark])){--ds-auro-select-border-color: var(--ds-basic-color-border-bold, #585e67);--ds-auro-select-background-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-select-label-text-color: var(--ds-basic-color-texticon-muted, #676767);--ds-auro-select-placeholder-text-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-select-text-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-select-error-icon-color: var(--ds-basic-color-status-error, #e31f26);--ds-auro-select-outline-color: transparent}:host([ondark]){--ds-auro-select-border-color: var(--ds-basic-color-border-inverse, #ffffff);--ds-auro-select-background-color: var(--ds-advanced-color-shared-background-inverse, rgba(255, 255, 255, 0.15));--ds-auro-select-label-text-color: var(--ds-basic-color-texticon-inverse, #ffffff);--ds-auro-select-placeholder-text-color: var(--ds-basic-color-texticon-inverse, #ffffff);--ds-auro-select-text-color: var(--ds-basic-color-texticon-inverse, #ffffff);--ds-auro-select-error-icon-color: var(--ds-basic-color-status-error-subtle, #fbc6c6);--ds-auro-select-outline-color: transparent}`;
142
145
 
143
146
  class DateFormatter {
144
147
 
@@ -556,7 +559,7 @@ const {
556
559
 
557
560
  /* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
558
561
 
559
- let AuroLibraryRuntimeUtils$4 = class AuroLibraryRuntimeUtils {
562
+ let AuroLibraryRuntimeUtils$6 = 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$6();
630
633
  }
631
634
 
632
635
  /**
@@ -686,19 +689,19 @@ class AuroFormValidation {
686
689
  {
687
690
  check: (e) => e.value?.length > 0 && e.value?.length < e.minLength,
688
691
  validity: 'tooShort',
689
- message: e => e.setCustomValidityTooShort || e.setCustomValidity || ''
692
+ message: e => e.getAttribute('setCustomValidityTooShort') || e.setCustomValidity || ''
690
693
  },
691
694
  {
692
695
  check: (e) => e.value?.length > e.maxLength,
693
696
  validity: 'tooLong',
694
- message: e => e.setCustomValidityTooLong || e.setCustomValidity || ''
697
+ message: e => e.getAttribute('setCustomValidityTooLong') || e.setCustomValidity || ''
695
698
  }
696
699
  ],
697
700
  pattern: [
698
701
  {
699
702
  check: (e) => e.pattern && !new RegExp(`^${e.pattern}$`, 'u').test(e.value),
700
703
  validity: 'patternMismatch',
701
- message: e => e.setCustomValidityPatternMismatch || e.setCustomValidity || ''
704
+ message: e => e.getAttribute('setCustomValidityPatternMismatch') || e.setCustomValidity || ''
702
705
  }
703
706
  ]
704
707
  },
@@ -845,13 +848,24 @@ class AuroFormValidation {
845
848
  this.getInputElements(elem);
846
849
  this.getAuroInputs(elem);
847
850
 
848
- // Validate only if noValidate is not true and the input does not have focus
851
+ // Check if validation should run
849
852
  let validationShouldRun =
853
+
854
+ // If the validation was forced
850
855
  force ||
851
- (!elem.contains(document.activeElement) &&
852
- (elem.touched ||
853
- (!elem.touched && typeof elem.value !== "undefined"))) ||
854
- elem.validateOnInput;
856
+
857
+ // If the validation should run on input
858
+ elem.validateOnInput ||
859
+
860
+ // State-based checks
861
+ (
862
+ // Element is not currently focused
863
+ !elem.contains(document.activeElement) && // native input is not focused directly
864
+ !document.activeElement.shadowRoot?.contains(elem) && // native input is not focused in the shadow DOM of another component
865
+
866
+ // And element has been touched or is untouched but has a value
867
+ ( elem.touched || (!elem.touched && typeof elem.value !== "undefined") )
868
+ );
855
869
 
856
870
  if (elem.hasAttribute('error')) {
857
871
  elem.validity = 'customError';
@@ -893,10 +907,10 @@ class AuroFormValidation {
893
907
  if (!hasValue && elem.required && elem.touched) {
894
908
  elem.validity = 'valueMissing';
895
909
  elem.errorMessage = elem.setCustomValidityValueMissing || elem.setCustomValidity || '';
896
- } else if (this.runtimeUtils.elementMatch(elem, 'auro-input')) {
910
+ } else if (hasValue && this.runtimeUtils.elementMatch(elem, 'auro-input')) {
897
911
  this.validateType(elem);
898
912
  this.validateElementAttributes(elem);
899
- } else if (this.runtimeUtils.elementMatch(elem, 'auro-counter') || this.runtimeUtils.elementMatch(elem, 'auro-counter-group')) {
913
+ } else if (hasValue && (this.runtimeUtils.elementMatch(elem, 'auro-counter') || this.runtimeUtils.elementMatch(elem, 'auro-counter-group'))) {
900
914
  this.validateElementAttributes(elem);
901
915
  }
902
916
  }
@@ -905,7 +919,9 @@ class AuroFormValidation {
905
919
  elem.validity = this.auroInputElements[0].validity;
906
920
  elem.errorMessage = this.auroInputElements[0].errorMessage;
907
921
 
908
- if (elem.validity === 'valid' && this.auroInputElements.length > 1) {
922
+ // combobox has 2 inputs but no need to check validity on the 2nd one which is in fullscreen bib.
923
+ // combobox's 2nd input will have noValidate set true.
924
+ if (elem.validity === 'valid' && this.auroInputElements.length > 1 && !this.auroInputElements[1].noValidate) {
909
925
  elem.validity = this.auroInputElements[1].validity;
910
926
  elem.errorMessage = this.auroInputElements[1].errorMessage;
911
927
  }
@@ -2717,7 +2733,7 @@ class AuroFloatingUI {
2717
2733
  */
2718
2734
  mirrorSize() {
2719
2735
  // mirror the boxsize from bibSizer
2720
- if (this.element.bibSizer) {
2736
+ if (this.element.bibSizer && this.element.matchWidth) {
2721
2737
  const sizerStyle = window.getComputedStyle(this.element.bibSizer);
2722
2738
  const bibContent = this.element.bib.shadowRoot.querySelector(".container");
2723
2739
  if (sizerStyle.width !== '0px') {
@@ -2853,6 +2869,7 @@ class AuroFloatingUI {
2853
2869
  this.element.bib.style.left = "0px";
2854
2870
  this.element.bib.style.width = '';
2855
2871
  this.element.bib.style.height = '';
2872
+ this.element.style.contain = '';
2856
2873
 
2857
2874
  // reset the size that was mirroring `size` css-part
2858
2875
  const bibContent = this.element.bib.shadowRoot.querySelector(".container");
@@ -2877,6 +2894,7 @@ class AuroFloatingUI {
2877
2894
  this.element.bib.style.position = '';
2878
2895
  this.element.bib.removeAttribute('isfullscreen');
2879
2896
  this.element.isBibFullscreen = false;
2897
+ this.element.style.contain = 'layout';
2880
2898
  }
2881
2899
 
2882
2900
  const isChanged = this.strategy && this.strategy !== value;
@@ -2929,13 +2947,13 @@ class AuroFloatingUI {
2929
2947
  if (this.element.contains(activeElement) || this.element.bib?.contains(activeElement)) {
2930
2948
  return;
2931
2949
  }
2932
-
2950
+
2933
2951
  // if fullscreen bib is in fullscreen mode, do not close
2934
2952
  if (this.element.bib.hasAttribute('isfullscreen')) {
2935
2953
  return;
2936
2954
  }
2937
2955
 
2938
- this.hideBib();
2956
+ this.hideBib("keydown");
2939
2957
  }
2940
2958
 
2941
2959
  setupHideHandlers() {
@@ -2960,7 +2978,7 @@ class AuroFloatingUI {
2960
2978
  document.expandedAuroFormkitDropdown = null;
2961
2979
  document.expandedAuroFloater = this;
2962
2980
  } else {
2963
- this.hideBib();
2981
+ this.hideBib("click");
2964
2982
  }
2965
2983
  }
2966
2984
  };
@@ -2973,7 +2991,7 @@ class AuroFloatingUI {
2973
2991
  // if something else is open, let it handle itself
2974
2992
  return;
2975
2993
  }
2976
- this.hideBib();
2994
+ this.hideBib("keydown");
2977
2995
  }
2978
2996
  };
2979
2997
 
@@ -3056,7 +3074,11 @@ class AuroFloatingUI {
3056
3074
  }
3057
3075
  }
3058
3076
 
3059
- hideBib() {
3077
+ /**
3078
+ * Hides the floating UI element.
3079
+ * @param {String} eventType - The event type that triggered the hiding action.
3080
+ */
3081
+ hideBib(eventType = "unknown") {
3060
3082
  if (!this.element.disabled && !this.element.noToggle) {
3061
3083
  this.lockScroll(false);
3062
3084
  this.element.triggerChevron?.removeAttribute('data-expanded');
@@ -3067,7 +3089,7 @@ class AuroFloatingUI {
3067
3089
  if (this.showing) {
3068
3090
  this.cleanupHideHandlers();
3069
3091
  this.showing = false;
3070
- this.dispatchEventDropdownToggle();
3092
+ this.dispatchEventDropdownToggle(eventType);
3071
3093
  }
3072
3094
  }
3073
3095
  document.expandedAuroFloater = null;
@@ -3076,11 +3098,13 @@ class AuroFloatingUI {
3076
3098
  /**
3077
3099
  * @private
3078
3100
  * @returns {void} Dispatches event with an object showing the state of the dropdown.
3101
+ * @param {String} eventType - The event type that triggered the toggle action.
3079
3102
  */
3080
- dispatchEventDropdownToggle() {
3103
+ dispatchEventDropdownToggle(eventType) {
3081
3104
  const event = new CustomEvent(this.eventPrefix ? `${this.eventPrefix}-toggled` : 'toggled', {
3082
3105
  detail: {
3083
3106
  expanded: this.showing,
3107
+ eventType: eventType || "unknown",
3084
3108
  },
3085
3109
  composed: true
3086
3110
  });
@@ -3090,7 +3114,7 @@ class AuroFloatingUI {
3090
3114
 
3091
3115
  handleClick() {
3092
3116
  if (this.element.isPopoverVisible) {
3093
- this.hideBib();
3117
+ this.hideBib("click");
3094
3118
  } else {
3095
3119
  this.showBib();
3096
3120
  }
@@ -3113,8 +3137,9 @@ class AuroFloatingUI {
3113
3137
  // Space is included as it's expected behavior for interactive elements
3114
3138
 
3115
3139
  const origin = event.composedPath()[0];
3116
- if (event.key === 'Enter' || ((!origin || origin.tagName !== "INPUT") && event.key === ' ')) {
3117
- event.preventDefault(); // Prevent page scroll on space
3140
+ if (event.key === 'Enter' || event.key === ' ' && (!origin || origin.tagName !== "INPUT")) {
3141
+
3142
+ event.preventDefault();
3118
3143
  this.handleClick();
3119
3144
  }
3120
3145
  break;
@@ -3125,7 +3150,7 @@ class AuroFloatingUI {
3125
3150
  break;
3126
3151
  case 'mouseleave':
3127
3152
  if (this.element.hoverToggle) {
3128
- this.hideBib();
3153
+ this.hideBib("mouseleave");
3129
3154
  }
3130
3155
  break;
3131
3156
  case 'focus':
@@ -3268,6 +3293,267 @@ class AuroFloatingUI {
3268
3293
  }
3269
3294
  }
3270
3295
 
3296
+ // Selectors for focusable elements
3297
+ const FOCUSABLE_SELECTORS = [
3298
+ 'a[href]',
3299
+ 'button:not([disabled])',
3300
+ 'textarea:not([disabled])',
3301
+ 'input:not([disabled])',
3302
+ 'select:not([disabled])',
3303
+ '[role="tab"]:not([disabled])',
3304
+ '[role="link"]:not([disabled])',
3305
+ '[role="button"]:not([disabled])',
3306
+ '[tabindex]:not([tabindex="-1"])',
3307
+ '[contenteditable]:not([contenteditable="false"])'
3308
+ ];
3309
+
3310
+ // List of custom components that are known to be focusable
3311
+ const FOCUSABLE_COMPONENTS = [
3312
+ 'auro-checkbox',
3313
+ 'auro-radio',
3314
+ 'auro-dropdown',
3315
+ 'auro-button',
3316
+ 'auro-combobox',
3317
+ 'auro-input',
3318
+ 'auro-counter',
3319
+ 'auro-menu',
3320
+ 'auro-select',
3321
+ 'auro-datepicker',
3322
+ 'auro-hyperlink',
3323
+ 'auro-accordion',
3324
+ ];
3325
+
3326
+ /**
3327
+ * Determines if a given element is a custom focusable component.
3328
+ * Returns true if the element matches a known focusable component and is not disabled.
3329
+ *
3330
+ * @param {HTMLElement} element The element to check for focusability.
3331
+ * @returns {boolean} True if the element is a focusable custom component, false otherwise.
3332
+ */
3333
+ function isFocusableComponent(element) {
3334
+ const componentName = element.tagName.toLowerCase();
3335
+
3336
+ // Guard Clause: Element is a focusable component
3337
+ if (!FOCUSABLE_COMPONENTS.some((name) => element.hasAttribute(name) || componentName === name)) return false;
3338
+
3339
+ // Guard Clause: Element is not disabled
3340
+ if (element.hasAttribute('disabled')) return false;
3341
+
3342
+ // Guard Clause: The element is a hyperlink and has no href attribute
3343
+ if (componentName.match("hyperlink") && !element.hasAttribute('href')) return false;
3344
+
3345
+ // If all guard clauses pass, the element is a focusable component
3346
+ return true;
3347
+ }
3348
+
3349
+ /**
3350
+ * Retrieves all focusable elements within the container in DOM order, including those in shadow DOM and slots.
3351
+ * Returns a unique, ordered array of elements that can receive focus.
3352
+ *
3353
+ * @param {HTMLElement} container The container to search within
3354
+ * @returns {Array<HTMLElement>} An array of focusable elements within the container.
3355
+ */
3356
+ function getFocusableElements(container) {
3357
+ // Get elements in DOM order by walking the tree
3358
+ const orderedFocusableElements = [];
3359
+
3360
+ // Define a recursive function to collect focusable elements in DOM order
3361
+ const collectFocusableElements = (root) => {
3362
+ // Check if current element is focusable
3363
+ if (root.nodeType === Node.ELEMENT_NODE) {
3364
+ // Check if this is a custom component that is focusable
3365
+ const isComponentFocusable = isFocusableComponent(root);
3366
+
3367
+ if (isComponentFocusable) {
3368
+ // Add the component itself as a focusable element and don't traverse its shadow DOM
3369
+ orderedFocusableElements.push(root);
3370
+ return; // Skip traversing inside this component
3371
+ }
3372
+
3373
+ // Check if the element itself matches any selector
3374
+ for (const selector of FOCUSABLE_SELECTORS) {
3375
+ if (root.matches?.(selector)) {
3376
+ orderedFocusableElements.push(root);
3377
+ break; // Once we know it's focusable, no need to check other selectors
3378
+ }
3379
+ }
3380
+
3381
+ // Process shadow DOM only for non-Auro components
3382
+ if (root.shadowRoot) {
3383
+ // Process shadow DOM children in order
3384
+ if (root.shadowRoot.children) {
3385
+ Array.from(root.shadowRoot.children).forEach(child => {
3386
+ collectFocusableElements(child);
3387
+ });
3388
+ }
3389
+ }
3390
+
3391
+ // Process slots and their assigned nodes in order
3392
+ if (root.tagName === 'SLOT') {
3393
+ const assignedNodes = root.assignedNodes({ flatten: true });
3394
+ for (const node of assignedNodes) {
3395
+ collectFocusableElements(node);
3396
+ }
3397
+ } else {
3398
+ // Process light DOM children in order
3399
+ if (root.children) {
3400
+ Array.from(root.children).forEach(child => {
3401
+ collectFocusableElements(child);
3402
+ });
3403
+ }
3404
+ }
3405
+ }
3406
+ };
3407
+
3408
+ // Start the traversal from the container
3409
+ collectFocusableElements(container);
3410
+
3411
+ // Remove duplicates that might have been collected through different paths
3412
+ // while preserving order
3413
+ const uniqueElements = [];
3414
+ const seen = new Set();
3415
+
3416
+ for (const element of orderedFocusableElements) {
3417
+ if (!seen.has(element)) {
3418
+ seen.add(element);
3419
+ uniqueElements.push(element);
3420
+ }
3421
+ }
3422
+
3423
+ return uniqueElements;
3424
+ }
3425
+
3426
+ /**
3427
+ * FocusTrap manages keyboard focus within a specified container element, ensuring that focus does not leave the container when tabbing.
3428
+ * It is commonly used for modal dialogs or overlays to improve accessibility by trapping focus within interactive UI components.
3429
+ */
3430
+ class FocusTrap {
3431
+ /**
3432
+ * Creates a new FocusTrap instance for the given container element.
3433
+ * Initializes event listeners and prepares the container for focus management.
3434
+ *
3435
+ * @param {HTMLElement} container The DOM element to trap focus within.
3436
+ * @throws {Error} If the provided container is not a valid HTMLElement.
3437
+ */
3438
+ constructor(container) {
3439
+ if (!container || !(container instanceof HTMLElement)) {
3440
+ throw new Error("FocusTrap requires a valid HTMLElement.");
3441
+ }
3442
+
3443
+ this.container = container;
3444
+ this.tabDirection = 'forward'; // or 'backward'
3445
+
3446
+ this._init();
3447
+ }
3448
+
3449
+ /**
3450
+ * Initializes the focus trap by setting up event listeners and attributes on the container.
3451
+ * Prepares the container for focus management, including support for shadow DOM and inert attributes.
3452
+ *
3453
+ * @private
3454
+ */
3455
+ _init() {
3456
+
3457
+ // Add inert attribute to prevent focusing programmatically as well (if supported)
3458
+ if ('inert' in HTMLElement.prototype) {
3459
+ this.container.inert = false; // Ensure the container isn't inert
3460
+ this.container.setAttribute('data-focus-trap-container', true); // Mark for identification
3461
+ }
3462
+
3463
+ // Track tab direction
3464
+ this.container.addEventListener('keydown', this._onKeydown);
3465
+ }
3466
+
3467
+ /**
3468
+ * Handles keydown events to manage tab navigation within the container.
3469
+ * Ensures that focus wraps around when reaching the first or last focusable element.
3470
+ *
3471
+ * @param {KeyboardEvent} e The keyboard event triggered by user interaction.
3472
+ * @private
3473
+ */
3474
+ _onKeydown = (e) => {
3475
+
3476
+ if (e.key === 'Tab') {
3477
+
3478
+ // Set the tab direction based on the key pressed
3479
+ this.tabDirection = e.shiftKey ? 'backward' : 'forward';
3480
+
3481
+ // Get the active element(s) in the document and shadow root
3482
+ // This will include the active element in the shadow DOM if it exists
3483
+ // Active element may be inside the shadow DOM depending on delegatesFocus, so we need to check both
3484
+ let activeElement = document.activeElement;
3485
+ const actives = [activeElement];
3486
+ while (activeElement?.shadowRoot?.activeElement) {
3487
+ actives.push(activeElement.shadowRoot.activeElement);
3488
+ activeElement = activeElement.shadowRoot.activeElement;
3489
+ }
3490
+
3491
+ // Update the focusable elements
3492
+ const focusables = this._getFocusableElements();
3493
+
3494
+ // If we're at either end of the focusable elements, wrap around to the other end
3495
+ const focusIndex =
3496
+ (actives.includes(focusables[0]) || actives.includes(this.container)) && this.tabDirection === 'backward'
3497
+ ? focusables.length - 1
3498
+ : actives.includes(focusables[focusables.length - 1]) && this.tabDirection === 'forward'
3499
+ ? 0
3500
+ : null;
3501
+
3502
+ if (focusIndex !== null) {
3503
+ focusables[focusIndex].focus();
3504
+ e.preventDefault(); // Prevent default tab behavior
3505
+ e.stopPropagation(); // Stop the event from bubbling up
3506
+ }
3507
+ }
3508
+ };
3509
+
3510
+ /**
3511
+ * Retrieves all focusable elements within the container in DOM order, including those in shadow DOM and slots.
3512
+ * Returns a unique, ordered array of elements that can receive focus.
3513
+ *
3514
+ * @returns {Array<HTMLElement>} An array of focusable elements within the container.
3515
+ * @private
3516
+ */
3517
+ _getFocusableElements() {
3518
+ // Use the imported utility function to get focusable elements
3519
+ const elements = getFocusableElements(this.container);
3520
+
3521
+ // Filter out any elements with the 'focus-bookend' class
3522
+ return elements;
3523
+ }
3524
+
3525
+ /**
3526
+ * Moves focus to the first focusable element within the container.
3527
+ * Useful for setting initial focus when activating the focus trap.
3528
+ */
3529
+ focusFirstElement() {
3530
+ const focusables = this._getFocusableElements();
3531
+ if (focusables.length) focusables[0].focus();
3532
+ }
3533
+
3534
+ /**
3535
+ * Moves focus to the last focusable element within the container.
3536
+ * Useful for setting focus when deactivating or cycling focus in reverse.
3537
+ */
3538
+ focusLastElement() {
3539
+ const focusables = this._getFocusableElements();
3540
+ if (focusables.length) focusables[focusables.length - 1].focus();
3541
+ }
3542
+
3543
+ /**
3544
+ * Removes event listeners and attributes added by the focus trap.
3545
+ * Call this method to clean up when the focus trap is no longer needed.
3546
+ */
3547
+ disconnect() {
3548
+
3549
+ if (this.container.hasAttribute('data-focus-trap-container')) {
3550
+ this.container.removeAttribute('data-focus-trap-container');
3551
+ }
3552
+
3553
+ this.container.removeEventListener('keydown', this._onKeydown);
3554
+ }
3555
+ }
3556
+
3271
3557
  // Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
3272
3558
  // See LICENSE in the project root for license information.
3273
3559
 
@@ -3374,7 +3660,7 @@ const cacheFetch$2 = (uri, options = {}) => {
3374
3660
  return _fetchMap$2.get(uri);
3375
3661
  };
3376
3662
 
3377
- var styleCss$2$2 = i$5`:focus:not(:focus-visible){outline:3px solid transparent}.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock,:host{display:block}.util_displayFlex{display:flex}.util_displayHidden,:host([hidden]:not(:focus):not(:active)){display:none}.util_displayHiddenVisually,:host([hiddenVisually]:not(:focus):not(:active)){position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}.ico_squareLarge{fill:currentColor;height:var(--auro-size-lg, var(--ds-size-300, 1.5rem))}.ico_squareSmall{fill:currentColor;height:.6rem}.ico_squareMed{fill:currentColor;height:var(--auro-size-md, var(--ds-size-200, 1rem))}.ico_squareSml{fill:currentColor;height:var(--auro-size-sm, var(--ds-size-150, 0.75rem))}:host{color:currentColor;vertical-align:middle;line-height:1;display:inline-block}svg{min-width:var(--ds-auro-icon-size, 1.5rem) !important;width:var(--ds-auro-icon-size, 1.5rem) !important;height:var(--ds-auro-icon-size, 1.5rem) !important}.componentWrapper{display:flex}.svgWrapper{height:var(--ds-auro-icon-size);width:var(--ds-auro-icon-size)}.labelWrapper{margin-left:var(--ds-size-50, 0.25rem);line-height:1.8}`;
3663
+ var styleCss$3$2 = i$5`:focus:not(:focus-visible){outline:3px solid transparent}.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock,:host{display:block}.util_displayFlex{display:flex}.util_displayHidden,:host([hidden]:not(:focus):not(:active)){display:none}.util_displayHiddenVisually,:host([hiddenVisually]:not(:focus):not(:active)){position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}.ico_squareLarge{fill:currentColor;height:var(--auro-size-lg, var(--ds-size-300, 1.5rem))}.ico_squareSmall{fill:currentColor;height:.6rem}.ico_squareMed{fill:currentColor;height:var(--auro-size-md, var(--ds-size-200, 1rem))}.ico_squareSml{fill:currentColor;height:var(--auro-size-sm, var(--ds-size-150, 0.75rem))}:host{color:currentColor;vertical-align:middle;line-height:1;display:inline-block}svg{min-width:var(--ds-auro-icon-size, 1.5rem) !important;width:var(--ds-auro-icon-size, 1.5rem) !important;height:var(--ds-auro-icon-size, 1.5rem) !important}.componentWrapper{display:flex}.svgWrapper{height:var(--ds-auro-icon-size);width:var(--ds-auro-icon-size)}.labelWrapper{margin-left:var(--ds-size-50, 0.25rem);line-height:1.8}`;
3378
3664
 
3379
3665
  // Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
3380
3666
  // See LICENSE in the project root for license information.
@@ -3417,7 +3703,7 @@ let BaseIcon$2 = class BaseIcon extends AuroElement$1$1 {
3417
3703
 
3418
3704
  static get styles() {
3419
3705
  return i$5`
3420
- ${styleCss$2$2}
3706
+ ${styleCss$3$2}
3421
3707
  `;
3422
3708
  }
3423
3709
 
@@ -3458,9 +3744,9 @@ let BaseIcon$2 = class BaseIcon extends AuroElement$1$1 {
3458
3744
  }
3459
3745
  };
3460
3746
 
3461
- var tokensCss$2$1 = i$5`:host{--ds-auro-icon-color:var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-alaska-color:#02426D;--ds-auro-icon-size:var(--ds-size-300, 1.5rem)}`;
3747
+ var tokensCss$2$2 = i$5`:host{--ds-auro-icon-color:var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-alaska-color:#02426D;--ds-auro-icon-size:var(--ds-size-300, 1.5rem)}`;
3462
3748
 
3463
- var colorCss$3$1 = i$5`:host{color:var(--ds-auro-icon-color)}:host([customColor]){color:inherit}:host(:not([onDark])[variant=accent1]){--ds-auro-icon-color:var(--ds-basic-color-texticon-accent1, #265688)}:host(:not([onDark])[variant=disabled]){--ds-auro-icon-color:var(--ds-basic-color-texticon-disabled, #d0d0d0)}:host(:not([onDark])[variant=muted]){--ds-auro-icon-color:var(--ds-basic-color-texticon-muted, #676767)}:host(:not([onDark])[variant=statusDefault]){--ds-auro-icon-color:var(--ds-basic-color-status-default, #afb9c6)}:host(:not([onDark])[variant=statusInfo]){--ds-auro-icon-color:var(--ds-basic-color-status-info, #01426a)}:host(:not([onDark])[variant=statusSuccess]){--ds-auro-icon-color:var(--ds-basic-color-status-success, #447a1f)}:host(:not([onDark])[variant=statusWarning]){--ds-auro-icon-color:var(--ds-basic-color-status-warning, #fac200)}:host(:not([onDark])[variant=statusError]){--ds-auro-icon-color:var(--ds-basic-color-status-error, #e31f26)}:host(:not([onDark])[variant=statusInfoSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-info-subtle, #ebf3f9)}:host(:not([onDark])[variant=statusSuccessSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-success-subtle, #d6eac7)}:host(:not([onDark])[variant=statusWarningSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-warning-subtle, #fff0b2)}:host(:not([onDark])[variant=statusErrorSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-error-subtle, #fbc6c6)}:host(:not([onDark])[variant=fareBasicEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-basiceconomy, #97eaf8)}:host(:not([onDark])[variant=fareBusiness]){--ds-auro-icon-color:var(--ds-basic-color-fare-business, #01426a)}:host(:not([onDark])[variant=fareEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-economy, #0074ca)}:host(:not([onDark])[variant=fareFirst]){--ds-auro-icon-color:var(--ds-basic-color-fare-first, #00274a)}:host(:not([onDark])[variant=farePremiumEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-premiumeconomy, #005154)}:host(:not([onDark])[variant=tierOneWorldEmerald]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-emerald, #139142)}:host(:not([onDark])[variant=tierOneWorldSapphire]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-sapphire, #015daa)}:host(:not([onDark])[variant=tierOneWorldRuby]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-ruby, #a41d4a)}:host([onDark]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse, #ffffff)}:host([onDark][variant=disabled]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}:host([onDark][variant=muted]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}:host([onDark][variant=statusError]){--ds-auro-icon-color:var(--ds-advanced-color-state-error-inverse, #f9a4a8)}`;
3749
+ var colorCss$3$2 = i$5`:host{color:var(--ds-auro-icon-color)}:host([customColor]){color:inherit}:host(:not([onDark])[variant=accent1]){--ds-auro-icon-color:var(--ds-basic-color-texticon-accent1, #265688)}:host(:not([onDark])[variant=disabled]){--ds-auro-icon-color:var(--ds-basic-color-texticon-disabled, #d0d0d0)}:host(:not([onDark])[variant=muted]){--ds-auro-icon-color:var(--ds-basic-color-texticon-muted, #676767)}:host(:not([onDark])[variant=statusDefault]){--ds-auro-icon-color:var(--ds-basic-color-status-default, #afb9c6)}:host(:not([onDark])[variant=statusInfo]){--ds-auro-icon-color:var(--ds-basic-color-status-info, #01426a)}:host(:not([onDark])[variant=statusSuccess]){--ds-auro-icon-color:var(--ds-basic-color-status-success, #447a1f)}:host(:not([onDark])[variant=statusWarning]){--ds-auro-icon-color:var(--ds-basic-color-status-warning, #fac200)}:host(:not([onDark])[variant=statusError]){--ds-auro-icon-color:var(--ds-basic-color-status-error, #e31f26)}:host(:not([onDark])[variant=statusInfoSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-info-subtle, #ebf3f9)}:host(:not([onDark])[variant=statusSuccessSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-success-subtle, #d6eac7)}:host(:not([onDark])[variant=statusWarningSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-warning-subtle, #fff0b2)}:host(:not([onDark])[variant=statusErrorSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-error-subtle, #fbc6c6)}:host(:not([onDark])[variant=fareBasicEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-basiceconomy, #97eaf8)}:host(:not([onDark])[variant=fareBusiness]){--ds-auro-icon-color:var(--ds-basic-color-fare-business, #01426a)}:host(:not([onDark])[variant=fareEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-economy, #0074ca)}:host(:not([onDark])[variant=fareFirst]){--ds-auro-icon-color:var(--ds-basic-color-fare-first, #00274a)}:host(:not([onDark])[variant=farePremiumEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-premiumeconomy, #005154)}:host(:not([onDark])[variant=tierOneWorldEmerald]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-emerald, #139142)}:host(:not([onDark])[variant=tierOneWorldSapphire]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-sapphire, #015daa)}:host(:not([onDark])[variant=tierOneWorldRuby]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-ruby, #a41d4a)}:host([onDark]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse, #ffffff)}:host([onDark][variant=disabled]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}:host([onDark][variant=muted]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}:host([onDark][variant=statusError]){--ds-auro-icon-color:var(--ds-advanced-color-state-error-inverse, #f9a4a8)}`;
3464
3750
 
3465
3751
  // Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
3466
3752
  // See LICENSE in the project root for license information.
@@ -3618,9 +3904,9 @@ let AuroIcon$2 = class AuroIcon extends BaseIcon$2 {
3618
3904
  static get styles() {
3619
3905
  return [
3620
3906
  super.styles,
3621
- i$5`${tokensCss$2$1}`,
3622
- i$5`${styleCss$2$2}`,
3623
- i$5`${colorCss$3$1}`
3907
+ i$5`${tokensCss$2$2}`,
3908
+ i$5`${styleCss$3$2}`,
3909
+ i$5`${colorCss$3$2}`
3624
3910
  ];
3625
3911
  }
3626
3912
 
@@ -3654,8 +3940,12 @@ let AuroIcon$2 = class AuroIcon extends BaseIcon$2 {
3654
3940
  async firstUpdated() {
3655
3941
  await super.firstUpdated();
3656
3942
 
3657
- // Removes the SVG description for screenreader if ariaHidden is set to true
3658
- if (!this.hasAttribute('ariaHidden') && this.svg) {
3943
+ /**
3944
+ * icons provide a description for screen readers. Icon only instances Auro-button
3945
+ * depend on this description to provide context for the user using a screen reader.
3946
+ * Removes the SVG description for screen reader if ariaHidden is set to true.
3947
+ */
3948
+ if (this.hasAttribute('ariaHidden') && this.svg) {
3659
3949
  const svgDesc = this.svg.querySelector('desc');
3660
3950
 
3661
3951
  if (svgDesc) {
@@ -3701,11 +3991,11 @@ let AuroIcon$2 = class AuroIcon extends BaseIcon$2 {
3701
3991
 
3702
3992
  var iconVersion$2 = '6.1.2';
3703
3993
 
3704
- var styleCss$1$2 = i$5`:host{position:fixed;z-index:var(--depth-tooltip, 400);display:none;isolation:isolate}.container{display:inline-block;overflow:auto;box-sizing:border-box;margin:var(--ds-size-50, 0.25rem) 0}:host([isfullscreen]){position:fixed;top:0;left:0}:host([isfullscreen]) .container{width:100dvw;max-width:none;height:100dvh;max-height:none;border-radius:unset;margin-top:0;box-shadow:unset;overscroll-behavior:contain}:host([data-show]){display:flex}:host([common]:not([isfullscreen])) .container,:host([rounded]:not([isfullscreen])) .container{border-radius:var(--ds-border-radius, 0.375rem)}:host([common][isfullscreen]) .container,:host([rounded][isfullscreen]) .container{border-radius:unset;box-shadow:unset}`;
3994
+ var styleCss$2$2 = i$5`:host{position:fixed;z-index:var(--depth-tooltip, 400);display:none;isolation:isolate}:host(:not([matchWidth])) .container{min-width:fit-content}:host([isfullscreen]){position:fixed;top:0;left:0}:host([isfullscreen]) .container{width:100dvw;max-width:none;height:100dvh;max-height:none;border-radius:unset;margin-top:0;box-shadow:unset;overscroll-behavior:contain}:host([data-show]){display:flex}:host([common]:not([isfullscreen])) .container,:host([rounded]:not([isfullscreen])) .container{border-radius:var(--ds-border-radius, 0.375rem)}:host([common][isfullscreen]) .container,:host([rounded][isfullscreen]) .container{border-radius:unset;box-shadow:unset}:host(:not([isfullscreen])) .container.shape-box{border-radius:unset}:host(:not([isfullscreen])) .container[class*=shape-pill],:host(:not([isfullscreen])) .container[class*=shape-snowflake]{border-radius:30px}.container{display:inline-block;overflow:auto;box-sizing:border-box;border-radius:var(--ds-border-radius, 0.375rem);margin:var(--ds-size-50, 0.25rem) 0}`;
3705
3995
 
3706
- var colorCss$2$1 = i$5`.container{background-color:var(--ds-auro-dropdownbib-container-color);box-shadow:var(--ds-auro-dropdownbib-boxshadow-color);color:var(--ds-auro-dropdownbib-text-color)}`;
3996
+ var colorCss$2$2 = i$5`.container{background-color:var(--ds-auro-dropdownbib-container-color);box-shadow:var(--ds-auro-dropdownbib-boxshadow-color);color:var(--ds-auro-dropdownbib-text-color)}`;
3707
3997
 
3708
- var tokensCss$1$1 = i$5`:host(:not([ondark])){--ds-auro-dropdown-label-text-color: var(--ds-basic-color-texticon-muted, #676767);--ds-auro-dropdown-trigger-background-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-dropdown-trigger-container-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-dropdown-trigger-border-color: transparent;--ds-auro-dropdown-trigger-outline-color: transparent;--ds-auro-dropdown-trigger-text-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-dropdown-helptext-text-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-dropdownbib-boxshadow-color: var(--ds-elevation-200, 0px 0px 10px rgba(0, 0, 0, 0.15));--ds-auro-dropdownbib-background-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-dropdownbib-container-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-dropdownbib-text-color: var(--ds-basic-color-texticon-default, #2a2a2a)}:host([ondark]){--ds-auro-dropdown-label-text-color: var(--ds-basic-color-texticon-inverse-muted, #ccd2db);--ds-auro-dropdown-trigger-background-color: var(--ds-advanced-color-shared-background-inverse, rgba(255, 255, 255, 0.15));--ds-auro-dropdown-trigger-container-color: var(--ds-advanced-color-shared-background-inverse, rgba(255, 255, 255, 0.15));--ds-auro-dropdown-trigger-border-color: transparent;--ds-auro-dropdown-trigger-outline-color: transparent;--ds-auro-dropdown-trigger-text-color: var(--ds-basic-color-texticon-inverse, #ffffff);--ds-auro-dropdown-helptext-text-color: var(--ds-basic-color-texticon-inverse, #ffffff);--ds-auro-dropdownbib-boxshadow-color: var(--ds-elevation-200, 0px 0px 10px rgba(0, 0, 0, 0.15));--ds-auro-dropdownbib-background-color: var(--ds-advanced-color-shared-background-inverse, rgba(255, 255, 255, 0.15));--ds-auro-dropdownbib-container-color: var(--ds-advanced-color-shared-background-inverse, rgba(255, 255, 255, 0.15));--ds-auro-dropdownbib-text-color: var(--ds-basic-color-texticon-inverse, #ffffff)}`;
3998
+ var tokensCss$1$2 = i$5`:host(:not([ondark])){--ds-auro-dropdown-label-text-color: var(--ds-basic-color-texticon-muted, #676767);--ds-auro-dropdown-trigger-background-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-dropdown-trigger-container-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-border-bold, #585e67);--ds-auro-dropdown-trigger-outline-color: transparent;--ds-auro-dropdown-trigger-text-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-dropdownbib-boxshadow-color: var(--ds-elevation-200, 0px 0px 10px rgba(0, 0, 0, 0.15));--ds-auro-dropdownbib-background-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-dropdownbib-container-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-dropdownbib-text-color: var(--ds-basic-color-texticon-default, #2a2a2a)}:host([ondark]){--ds-auro-dropdown-label-text-color: var(--ds-basic-color-texticon-inverse-muted, #ccd2db);--ds-auro-dropdown-trigger-background-color: var(--ds-advanced-color-shared-background-inverse, rgba(255, 255, 255, 0.15));--ds-auro-dropdown-trigger-container-color: var(--ds-advanced-color-shared-background-inverse, rgba(255, 255, 255, 0.15));--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-border-inverse, #ffffff);--ds-auro-dropdown-trigger-outline-color: transparent;--ds-auro-dropdown-trigger-text-color: var(--ds-basic-color-texticon-inverse, #ffffff);--ds-auro-dropdownbib-boxshadow-color: var(--ds-elevation-200, 0px 0px 10px rgba(0, 0, 0, 0.15));--ds-auro-dropdownbib-background-color: var(--ds-advanced-color-shared-background-inverse, rgba(255, 255, 255, 0.15));--ds-auro-dropdownbib-container-color: var(--ds-advanced-color-shared-background-inverse, rgba(255, 255, 255, 0.15));--ds-auro-dropdownbib-text-color: var(--ds-basic-color-texticon-inverse, #ffffff)}`;
3709
3999
 
3710
4000
  // Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
3711
4001
  // See LICENSE in the project root for license information.
@@ -3726,7 +4016,7 @@ const DESIGN_TOKEN_BREAKPOINT_OPTIONS = [
3726
4016
  */
3727
4017
 
3728
4018
  class AuroDropdownBib extends i$2 {
3729
-
4019
+ // not extending AuroElement because Bib needs only `shape` prop
3730
4020
  constructor() {
3731
4021
  super();
3732
4022
 
@@ -3736,13 +4026,16 @@ class AuroDropdownBib extends i$2 {
3736
4026
  this._mobileBreakpointValue = undefined;
3737
4027
 
3738
4028
  AuroLibraryRuntimeUtils$2$1.prototype.handleComponentTagRename(this, 'auro-dropdownbib');
4029
+
4030
+ this.shape = "rounded";
4031
+ this.matchWidth = false;
3739
4032
  }
3740
4033
 
3741
4034
  static get styles() {
3742
4035
  return [
3743
- styleCss$1$2,
3744
- colorCss$2$1,
3745
- tokensCss$1$1
4036
+ styleCss$2$2,
4037
+ colorCss$2$2,
4038
+ tokensCss$1$2
3746
4039
  ];
3747
4040
  }
3748
4041
 
@@ -3773,6 +4066,15 @@ class AuroDropdownBib extends i$2 {
3773
4066
  reflect: true
3774
4067
  },
3775
4068
 
4069
+ /**
4070
+ * If declared, the bib width will match the trigger width.
4071
+ * @private
4072
+ */
4073
+ matchWidth: {
4074
+ type: Boolean,
4075
+ reflect: true
4076
+ },
4077
+
3776
4078
  /**
3777
4079
  * If declared, will apply border-radius to the bib.
3778
4080
  */
@@ -3786,6 +4088,11 @@ class AuroDropdownBib extends i$2 {
3786
4088
  */
3787
4089
  bibTemplate: {
3788
4090
  type: Object
4091
+ },
4092
+
4093
+ shape: {
4094
+ type: String,
4095
+ reflect: true
3789
4096
  }
3790
4097
  };
3791
4098
  }
@@ -3865,8 +4172,16 @@ class AuroDropdownBib extends i$2 {
3865
4172
 
3866
4173
  // function that renders the HTML and CSS into the scope of the component
3867
4174
  render() {
4175
+ const classes = {
4176
+ container: true
4177
+ };
4178
+
4179
+ // Since this class does not inherit from AuroElement, we apply the shape-related class within the `render` function,
4180
+ // mimicking the class naming convention used in AuroElement.resetShapeClasses.
4181
+ classes[`shape-${this.shape}`] = true;
4182
+
3868
4183
  return u`
3869
- <div class="container" part="bibContainer">
4184
+ <div class="${e(classes)}" part="bibContainer">
3870
4185
  <slot></slot>
3871
4186
  </div>
3872
4187
  `;
@@ -3875,21 +4190,23 @@ class AuroDropdownBib extends i$2 {
3875
4190
 
3876
4191
  var dropdownVersion$1 = '3.0.0';
3877
4192
 
3878
- var shapeSizeCss = i$5`.wrapper{overflow:hidden}.shape-classic-xl,.shape-classic-lg,.shape-classic-md,.shape-classic-sm,.shape-classic-xs{min-height:58px;max-height:58px;border-style:solid;border-width:1px;border-radius:var(--ds-border-radius, 0.375rem)}.shape-classic-xl.simple,.shape-classic-lg.simple,.shape-classic-md.simple,.shape-classic-sm.simple,.shape-classic-xs.simple{border-width:0px;min-height:60px;max-height:60px;background-color:unset}.shape-classic-xl.thin,.shape-classic-lg.thin,.shape-classic-md.thin,.shape-classic-sm.thin,.shape-classic-xs.thin{border-width:1px;min-height:58px;max-height:58px;background-color:unset}.shape-classic-xl.parentBorder,.shape-classic-lg.parentBorder,.shape-classic-md.parentBorder,.shape-classic-sm.parentBorder,.shape-classic-xs.parentBorder{border:0;min-height:56px;max-height:56px}.shape-snowflake-xl,.shape-snowflake-lg,.shape-snowflake-md,.shape-snowflake-sm,.shape-snowflake-xs{min-height:56px;max-height:56px;border-style:solid;border-width:2px;border-color:transparent;border-radius:30px}.shape-snowflake-xl.simple,.shape-snowflake-lg.simple,.shape-snowflake-md.simple,.shape-snowflake-sm.simple,.shape-snowflake-xs.simple{border-width:0px;min-height:60px;max-height:60px;background-color:unset}.shape-snowflake-xl.thin,.shape-snowflake-lg.thin,.shape-snowflake-md.thin,.shape-snowflake-sm.thin,.shape-snowflake-xs.thin{border-width:1px;min-height:58px;max-height:58px;background-color:unset}.shape-snowflake-xl.parentBorder,.shape-snowflake-lg.parentBorder,.shape-snowflake-md.parentBorder,.shape-snowflake-sm.parentBorder,.shape-snowflake-xs.parentBorder{border:0;min-height:56px;max-height:56px}.shape-box-xl{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent}.shape-box-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset}.shape-box-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-box-xl.parentBorder{border:0;min-height:68px;max-height:68px}.shape-rounded-lg{min-height:56px;max-height:56px;border-style:solid;border-width:2px;border-color:transparent;border-radius:6px}.shape-rounded-lg.simple{border-width:0px;min-height:56px;max-height:56px;background-color:unset}.shape-rounded-lg.thin{border-width:1px;min-height:54px;max-height:54px;background-color:unset}.shape-rounded-lg.parentBorder{border:0;min-height:52px;max-height:52px}.shape-pill-xl{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px}.shape-pill-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset}.shape-pill-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-pill-xl.parentBorder{border:0;min-height:68px;max-height:68px}.shape-pill-left-xl{min-height:72px;max-height:72px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px 0 0 36px}.shape-pill-left-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset}.shape-pill-left-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-pill-left-xl.parentBorder{border:0;min-height:68px;max-height:68px}.shape-pill-right-xl{min-height:72px;max-height:72px;border-style:solid;border-width:2px;border-color:transparent;border-radius:0 36px 36px 0}.shape-pill-right-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset}.shape-pill-right-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-pill-right-xl.parentBorder{border:0;min-height:68px;max-height:68px}.shape-pill-md{min-height:72px;max-height:72px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px}.shape-pill-md.simple{border-width:0px;min-height:48px;max-height:48px;background-color:unset}.shape-pill-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}.shape-pill-md.parentBorder{border:0;min-height:44px;max-height:44px}.shape-pill-left-md{min-height:72px;max-height:72px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px 0 0 36px}.shape-pill-left-md.simple{border-width:0px;min-height:48px;max-height:48px;background-color:unset}.shape-pill-left-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}.shape-pill-left-md.parentBorder{border:0;min-height:44px;max-height:44px}.shape-pill-right-md{min-height:72px;max-height:72px;border-style:solid;border-width:2px;border-color:transparent;border-radius:0 36px 36px 0}.shape-pill-right-md.simple{border-width:0px;min-height:48px;max-height:48px;background-color:unset}.shape-pill-right-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}.shape-pill-right-md.parentBorder{border:0;min-height:44px;max-height:44px}`;
4193
+ var shapeSizeCss = i$5`.wrapper{overflow:hidden}.shape-classic-xl,.shape-classic-lg,.shape-classic-md,.shape-classic-sm,.shape-classic-xs{min-height:58px;max-height:58px;border-style:solid;border-width:1px;border-radius:var(--ds-border-radius, 0.375rem)}.shape-classic-xl.simple,.shape-classic-lg.simple,.shape-classic-md.simple,.shape-classic-sm.simple,.shape-classic-xs.simple{border-width:0px;min-height:60px;max-height:60px;background-color:unset;box-shadow:none}.shape-classic-xl.thin,.shape-classic-lg.thin,.shape-classic-md.thin,.shape-classic-sm.thin,.shape-classic-xs.thin{border-width:1px;min-height:58px;max-height:58px;background-color:unset}.shape-classic-xl.parentBorder,.shape-classic-lg.parentBorder,.shape-classic-md.parentBorder,.shape-classic-sm.parentBorder,.shape-classic-xs.parentBorder{border:0;box-shadow:unset;min-height:56px;max-height:56px}.shape-snowflake-xl,.shape-snowflake-lg,.shape-snowflake-md,.shape-snowflake-sm,.shape-snowflake-xs{min-height:56px;max-height:56px;border-style:solid;border-width:2px;border-color:transparent;border-radius:30px}.shape-snowflake-xl.simple,.shape-snowflake-lg.simple,.shape-snowflake-md.simple,.shape-snowflake-sm.simple,.shape-snowflake-xs.simple{border-width:0px;min-height:60px;max-height:60px;background-color:unset;box-shadow:none}.shape-snowflake-xl.thin,.shape-snowflake-lg.thin,.shape-snowflake-md.thin,.shape-snowflake-sm.thin,.shape-snowflake-xs.thin{border-width:1px;min-height:58px;max-height:58px;background-color:unset}.shape-snowflake-xl.parentBorder,.shape-snowflake-lg.parentBorder,.shape-snowflake-md.parentBorder,.shape-snowflake-sm.parentBorder,.shape-snowflake-xs.parentBorder{border:0;box-shadow:unset;min-height:56px;max-height:56px}.shape-box-xl{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent}.shape-box-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset;box-shadow:none}.shape-box-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-box-xl.parentBorder{border:0;box-shadow:unset;min-height:68px;max-height:68px}.shape-rounded-lg{min-height:56px;max-height:56px;border-style:solid;border-width:2px;border-color:transparent;border-radius:6px}.shape-rounded-lg.simple{border-width:0px;min-height:56px;max-height:56px;background-color:unset;box-shadow:none}.shape-rounded-lg.thin{border-width:1px;min-height:54px;max-height:54px;background-color:unset}.shape-rounded-lg.parentBorder{border:0;box-shadow:unset;min-height:52px;max-height:52px}.shape-pill-xl{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px}.shape-pill-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset;box-shadow:none}.shape-pill-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-pill-xl.parentBorder{border:0;box-shadow:unset;min-height:68px;max-height:68px}.shape-pill-left-xl{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px 0 0 36px}.shape-pill-left-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset;box-shadow:none}.shape-pill-left-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-pill-left-xl.parentBorder{border:0;box-shadow:unset;min-height:68px;max-height:68px}.shape-pill-right-xl{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent;border-radius:0 36px 36px 0}.shape-pill-right-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset;box-shadow:none}.shape-pill-right-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-pill-right-xl.parentBorder{border:0;box-shadow:unset;min-height:68px;max-height:68px}.shape-pill-md{min-height:44px;max-height:44px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px}.shape-pill-md.simple{border-width:0px;min-height:48px;max-height:48px;background-color:unset;box-shadow:none}.shape-pill-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}.shape-pill-md.parentBorder{border:0;box-shadow:unset;min-height:44px;max-height:44px}.shape-pill-left-md{min-height:44px;max-height:44px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px 0 0 36px}.shape-pill-left-md.simple{border-width:0px;min-height:48px;max-height:48px;background-color:unset;box-shadow:none}.shape-pill-left-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}.shape-pill-left-md.parentBorder{border:0;box-shadow:unset;min-height:44px;max-height:44px}.shape-pill-right-md{min-height:44px;max-height:44px;border-style:solid;border-width:2px;border-color:transparent;border-radius:0 36px 36px 0}.shape-pill-right-md.simple{border-width:0px;min-height:48px;max-height:48px;background-color:unset;box-shadow:none}.shape-pill-right-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}.shape-pill-right-md.parentBorder{border:0;box-shadow:unset;min-height:44px;max-height:44px}`;
3879
4194
 
3880
- var colorCss$1$2 = i$5`:host .wrapper{border-color:var(--ds-auro-dropdown-trigger-border-color);background-color:var(--ds-auro-dropdown-trigger-background-color);color:var(--ds-auro-dropdown-trigger-text-color)}:host(:not([ondark])) .wrapper:focus,:host(:not([ondark])) .wrapper:focus-within{--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-border-brand, #00274a)}:host([ondark]) .wrapper:focus,:host([ondark]) .wrapper:focus-within{--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-border-inverse, #ffffff)}:host([error]:not([ondark])){--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-status-error, #e31f26)}:host([error][ondark]){--ds-auro-dropdown-trigger-border-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8)}.helpText{color:var(--ds-auro-dropdown-helptext-text-color)}`;
4195
+ var colorCss$1$2 = i$5`:host(:not([layout*=classic])){--ds-auro-dropdown-trigger-border-color: transparent}:host(:not([ondark])) .wrapper{border-color:var(--ds-auro-dropdown-trigger-border-color);background-color:var(--ds-auro-dropdown-trigger-background-color);color:var(--ds-auro-dropdown-trigger-text-color)}:host(:not([ondark])) .wrapper:focus-within,:host(:not([ondark])) .wrapper:active{--ds-auro-dropdown-trigger-border-color: var(--ds-advanced-color-state-focused, #01426a);--ds-auro-dropdown-trigger-outline-color: var(--ds-advanced-color-state-focused, #01426a)}:host(:not([onDark])[disabled]){--ds-auro-dropdown-trigger-text-color: var(--ds-basic-color-texticon-disabled, #d0d0d0);--ds-auro-dropdown-label-text-color: var(--ds-basic-color-texticon-disabled, #d0d0d0);--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-border-subtle, #dddddd)}:host(:not([ondark])[error]){--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-status-error, #e31f26)}:host([onDark]) .label{color:var(--ds-auro-dropdown-label-text-color)}:host([onDark]) .wrapper{border-color:var(--ds-auro-dropdown-trigger-border-color);background-color:var(--ds-auro-dropdown-trigger-background-color);color:var(--ds-auro-dropdown-trigger-text-color)}:host([onDark]) .wrapper:focus-within,:host([onDark]) .wrapper:active{--ds-auro-dropdown-trigger-border-color: var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-dropdown-trigger-outline-color: var(--ds-advanced-color-state-focused-inverse, #ffffff)}:host([onDark][disabled]){--ds-auro-dropdown-trigger-text-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894);--ds-auro-dropdown-label-text-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894);--ds-auro-dropdown-trigger-container-color: var(--ds-advanced-color-shared-background-inverse-disabled, rgba(255, 255, 255, 0.1))}:host([ondark][error]){--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-status-error-subtle, #fbc6c6)}`;
3881
4196
 
3882
- var classicColorCss = i$5`:host([layout*=classic]) .label{color:var(--ds-auro-dropdown-label-text-color)}:host([layout*=classic]) .trigger{border-color:var(--ds-auro-dropdown-trigger-border-color);background-color:var(--ds-auro-dropdown-trigger-container-color);color:var(--ds-auro-dropdown-trigger-text-color);outline-color:var(--ds-auro-dropdown-trigger-outline-color)}:host([layout*=classic]) .trigger:focus-within,:host([layout*=classic]) .trigger:active{--ds-auro-dropdown-trigger-border-color: var(--ds-advanced-color-state-focused, #01426a);--ds-auro-dropdown-trigger-outline-color: var(--ds-advanced-color-state-focused, #01426a)}:host([layout*=classic])[disabled]{--ds-auro-dropdown-trigger-text-color: var(--ds-basic-color-texticon-disabled, #d0d0d0);--ds-auro-dropdown-label-text-color: var(--ds-basic-color-texticon-disabled, #d0d0d0)}:host([layout*=classic])[common],:host([layout*=classic])[bordered]{--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-border-bold, #585e67)}:host([layout*=classic])[common] .trigger:active,:host([layout*=classic])[common] .trigger:focus-within,:host([layout*=classic])[bordered] .trigger:active,:host([layout*=classic])[bordered] .trigger:focus-within{--ds-auro-dropdown-trigger-border-color: var(--ds-advanced-color-state-focused, #01426a)}:host([layout*=classic])[error]{--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-status-error, #e31f26)}:host([layout*=classic])[error] .trigger{outline:solid 1px var(--ds-auro-dropdown-trigger-border-color)}:host([layout*=classic])[error] .trigger:focus-within,:host([layout*=classic])[error] .trigger:active{--ds-auro-dropdown-trigger-border-color: var(--ds-advanced-color-state-focused, #01426a);--ds-auro-dropdown-trigger-outline-color: var(--ds-advanced-color-state-focused, #01426a)}:host([layout*=classic])[disabled][common],:host([layout*=classic])[disabled][bordered]{--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-border-subtle, #dddddd)}:host([layout*=classic])[onDark]{--ds-auro-dropdown-label-text-color: var(--ds-basic-color-texticon-inverse-muted, #ccd2db);--ds-auro-dropdown-trigger-container-color: var(--ds-advanced-color-shared-background-inverse, rgba(255, 255, 255, 0.15));--ds-auro-dropdown-trigger-text-color: var(--ds-basic-color-texticon-inverse, #ffffff)}:host([layout*=classic])[onDark]:focus-within,:host([layout*=classic])[onDark]:active{--ds-auro-dropdown-trigger-border-color: var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-dropdown-trigger-outline-color: var(--ds-advanced-color-state-focused-inverse, #ffffff)}:host([layout*=classic])[onDark][disabled]{--ds-auro-dropdown-trigger-text-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894);--ds-auro-dropdown-label-text-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}:host([layout*=classic])[onDark][common],:host([layout*=classic])[onDark][bordered]{--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-border-inverse, #ffffff)}:host([layout*=classic])[onDark][common] .trigger:focus-within,:host([layout*=classic])[onDark][common] .trigger:active,:host([layout*=classic])[onDark][bordered] .trigger:focus-within,:host([layout*=classic])[onDark][bordered] .trigger:active{--ds-auro-dropdown-trigger-border-color: var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-dropdown-trigger-outline-color: var(--ds-advanced-color-state-focused-inverse, #ffffff)}:host([layout*=classic])[onDark][error]{--ds-auro-dropdown-trigger-border-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8)}:host([layout*=classic])[onDark][error] .trigger{outline:solid 1px var(--ds-auro-dropdown-trigger-border-color)}:host([layout*=classic])[onDark][error] .trigger:focus-within,:host([layout*=classic])[onDark][error] .trigger:active{--ds-auro-dropdown-trigger-border-color: var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-dropdown-trigger-outline-color: var(--ds-advanced-color-state-focused-inverse, #ffffff)}:host([layout*=classic])[onDark][disabled][common],:host([layout*=classic])[onDark][disabled][bordered]{--ds-auro-dropdown-trigger-container-color: var(--ds-advanced-color-shared-background-inverse-disabled, rgba(255, 255, 255, 0.1))}`;
4197
+ var styleCss$1$2 = i$5`:host{display:block;position:relative}:host([open]){z-index:var(--depth-tooltip, 400)}.wrapper{display:flex;flex:1;flex-direction:row;align-items:center;justify-content:center;outline:none}.triggerContentWrapper{display:flex;overflow:hidden;width:100%;flex:1;align-items:center;justify-content:center;text-overflow:ellipsis;white-space:nowrap}:host([matchwidth]) #bibSizer{width:100%}`;
3883
4198
 
3884
- var classicLayoutCss = i$5`:host([layout*=classic]){position:relative;max-width:100%}:host([layout*=classic]) #bibSizer{position:absolute;z-index:-1;opacity:0;pointer-events:none}:host([layout*=classic]) .label{font-size:var(--ds-text-body-size-xs, 0.75rem);line-height:var(--ds-text-body-size-default, 1rem);transition:font-size .3s cubic-bezier(0.215, 0.61, 0.355, 1);white-space:normal}:host([layout*=classic]) .label[hasTrigger=false]{font-size:var(--ds-text-body-size-default, 1rem)}:host([layout*=classic]) .trigger{display:flex;flex-direction:row}@media(hover: hover){:host([layout*=classic]) .trigger:hover{cursor:pointer}}:host([layout*=classic]) .triggerContentWrapper{overflow:hidden;flex:1;text-overflow:ellipsis;white-space:nowrap}:host([layout*=classic]) #showStateIcon{display:flex;overflow:hidden;height:100%;align-items:center;margin-left:var(--ds-size-100, 0.5rem)}:host([layout*=classic]) #showStateIcon [auro-icon]{height:var(--ds-size-300, 1.5rem);line-height:var(--ds-size-300, 1.5rem)}:host([layout*=classic]) #showStateIcon[data-expanded=true] [auro-icon]{transform:rotate(-180deg)}:host([layout*=classic][fluid]){display:block}:host([layout*=classic][matchwidth]) #bibSizer{width:100%}:host([layout*=classic][disabled]){pointer-events:none}:host([layout*=classic][inset]) .trigger{padding:var(--ds-size-150, 0.75rem) var(--ds-size-200, 1rem)}:host([layout*=classic][common]) .trigger,:host([layout*=classic][inset][bordered]) .trigger{padding:var(--ds-size-200, 1rem) var(--ds-size-150, 0.75rem)}:host([layout*=classic][inset][bordered][labeled]) .trigger{padding:var(--ds-size-100, 0.5rem) var(--ds-size-150, 0.75rem)}:host([layout*=classic][common]) .trigger,:host([layout*=classic][rounded]) .trigger{border-radius:var(--ds-border-radius, 0.375rem)}`;
4199
+ var classicColorCss = i$5``;
3885
4200
 
3886
- var styleEmphasizedCss = i$5`:host{display:block}.layout-emphasized .chevron,.layout-emphasized-left .chevron,.layout-emphasized-right .chevron{margin-right:var(--ds-size-300, 1.5rem)}.wrapper{display:flex;flex-direction:row}.trigger{flex:1;display:flex;align-items:center;justify-content:center;outline:none}.triggerContentWrapper{flex:1;display:flex;align-items:center;justify-content:center;width:100%}.triggerContent{overflow:hidden;flex:1;display:flex;align-items:center;justify-content:center;text-overflow:ellipsis;white-space:nowrap;width:100%}:host([layout*=emphasized][shape*=pill]:not([layout*=right])) .leftIndent{margin-left:var(--ds-size-300, 1.5rem);width:calc(100% - var(--ds-size-300, 1.5rem))}:host([layout*=emphasized][shape*=pill]:not([layout*=left])) .rightIndent{margin-right:var(--ds-size-300, 1.5rem);width:calc(100% - var(--ds-size-300, 1.5rem))}:host([layout*=emphasized][shape*=pill]:not([layout*=left]):not([layout*=right])) .rightIndent{margin-right:var(--ds-size-300, 1.5rem);width:calc(100% - var(--ds-size-600, 3rem))}`;
4201
+ var classicLayoutCss = i$5`:host([layout*=classic]){position:relative;max-width:100%}:host([layout*=classic]) #bibSizer{position:absolute;z-index:-1;opacity:0;pointer-events:none}:host([layout*=classic]) .label{font-size:var(--ds-text-body-size-xs, 0.75rem);line-height:var(--ds-text-body-size-default, 1rem);transition:font-size .3s cubic-bezier(0.215, 0.61, 0.355, 1);white-space:normal}:host([layout*=classic]) .label[hasTrigger=false]{font-size:var(--ds-text-body-size-default, 1rem)}:host([layout*=classic]) .wrapper{display:flex;flex-direction:row;box-shadow:inset 0 0 0 1px var(--ds-auro-dropdown-trigger-outline-color)}@media(hover: hover){:host([layout*=classic]) .wrapper:hover{cursor:pointer}}:host([layout*=classic]) .triggerContentWrapper{overflow:hidden;flex:1;justify-content:start;text-overflow:ellipsis;white-space:nowrap}:host([layout*=classic]) #showStateIcon{display:flex;overflow:hidden;height:100%;align-items:center;padding-right:var(--ds-size-150, 0.75rem)}:host([layout*=classic]) #showStateIcon [auro-icon]{height:var(--ds-size-300, 1.5rem);line-height:var(--ds-size-300, 1.5rem)}:host([layout*=classic]) #showStateIcon[data-expanded=true] [auro-icon]{transform:rotate(-180deg)}`;
3887
4202
 
3888
- var styleSnowflakeCss = i$5`:host{display:block}.wrapper{display:flex;flex-direction:wrapper}.trigger{flex:1;display:flex;align-items:center;justify-content:center;outline:none}.triggerContentWrapper{flex:1;display:flex;align-items:center;justify-content:center;width:100%}.triggerContent{overflow:hidden;flex:1;display:flex;align-items:center;justify-content:center;text-overflow:ellipsis;white-space:nowrap;width:100%}:host([layout*=snowflake]) .leftIndent{margin-left:var(--ds-size-300, 1.5rem);width:calc(100% - var(--ds-size-600, 3rem))}:host([layout*=snowflake]) .rightIndent{margin-right:var(--ds-size-300, 1.5rem);width:calc(100% - var(--ds-size-600, 3rem))}.layout-snowflake .chevron,.layout-snowflake-left .chevron,.layout-snowflake-right .chevron{margin-right:var(--ds-size-300, 1.5rem)}`;
4203
+ var styleEmphasizedCss = i$5`.layout-emphasized .chevron,.layout-emphasized-left .chevron,.layout-emphasized-right .chevron{margin-right:var(--ds-size-300, 1.5rem)}:host([layout*=emphasized][shape*=pill]:not([layout*=right])) .leftIndent{width:calc(100% - var(--ds-size-300, 1.5rem));margin-left:var(--ds-size-300, 1.5rem)}:host([layout*=emphasized][shape*=pill]:not([layout*=left])) .rightIndent{width:calc(100% - var(--ds-size-300, 1.5rem));margin-right:var(--ds-size-300, 1.5rem)}:host([layout*=emphasized][shape*=pill]:not([layout*=left]):not([layout*=right])) .rightIndent{width:calc(100% - var(--ds-size-600, 3rem));margin-right:var(--ds-size-300, 1.5rem)}`;
3889
4204
 
3890
- var colorCss$5 = i$5`:host([error]){--ds-auro-helptext-color: var(--ds-basic-color-status-error, #e31f26)}:host([onDark]){--ds-auro-helptext-color: var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}:host([onDark][error]){--ds-auro-helptext-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8)}.helptext-wrapper{color:var(--ds-auro-helptext-color)}`;
4205
+ var styleSnowflakeCss = i$5`:host([layout*=snowflake]) .leftIndent{width:calc(100% - var(--ds-size-600, 3rem));margin-left:var(--ds-size-300, 1.5rem)}:host([layout*=snowflake]) .rightIndent{width:calc(100% - var(--ds-size-600, 3rem));margin-right:var(--ds-size-300, 1.5rem)}.layout-snowflake .chevron,.layout-snowflake-left .chevron,.layout-snowflake-right .chevron{margin-right:var(--ds-size-300, 1.5rem)}`;
3891
4206
 
3892
- var styleCss$6 = i$5`.helptext-wrapper{display:none;font-size:var(--ds-basic-text-body-xs-font-size, 12px);font-weight:var(--ds-basic-text-body-xs-font-weight, 450);letter-spacing:var(--ds-basic-text-body-xs-letter-spacing, 0);line-height:var(--ds-basic-text-body-xs-line-height, 16px)}:host([large]) .helptext-wrapper{font-size:var(--ds-basic-text-body-default-font-size, 16px);font-weight:var(--ds-basic-text-body-default-font-weight, 450);letter-spacing:var(--ds-basic-text-body-default-letter-spacing, 0);line-height:var(--ds-basic-text-body-default-line-height, 24px)}.helptext-wrapper[visible]{display:block}::slotted(*:not(:empty)){margin-top:var(--ds-size-50, 0.25rem);margin-bottom:0}::slotted(p){margin-block:0}`;
4207
+ var colorCss$5 = i$5`:host([error]){--ds-auro-helptext-color: var(--ds-basic-color-status-error, #e31f26)}:host([onDark]){--ds-auro-helptext-color: var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}:host([onDark][error]){--ds-auro-helptext-color: var(--ds-basic-color-status-error-subtle, #fbc6c6)}.helptext-wrapper{color:var(--ds-auro-helptext-color)}`;
4208
+
4209
+ var styleCss$6 = i$5`:host{position:relative;display:block}.helptext-wrapper{display:none;font-size:12px;font-weight:450;letter-spacing:0;line-height:16px}:host([large]) .helptext-wrapper{font-size:16px;font-weight:450;letter-spacing:0;line-height:24px}.helptext-wrapper[visible]{display:block}::slotted(*:not(:empty)){margin-top:var(--ds-size-50, 0.25rem);margin-bottom:0}::slotted(p){margin-block:0}`;
3893
4210
 
3894
4211
  var tokensCss$4 = i$5`:host{--ds-auro-helptext-color: var(--ds-basic-color-texticon-muted, #676767)}`;
3895
4212
 
@@ -3900,7 +4217,7 @@ var tokensCss$4 = i$5`:host{--ds-auro-helptext-color: var(--ds-basic-color-texti
3900
4217
 
3901
4218
  /* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
3902
4219
 
3903
- let AuroLibraryRuntimeUtils$3 = class AuroLibraryRuntimeUtils {
4220
+ let AuroLibraryRuntimeUtils$5 = class AuroLibraryRuntimeUtils {
3904
4221
 
3905
4222
  /* eslint-disable jsdoc/require-param */
3906
4223
 
@@ -3981,7 +4298,7 @@ let AuroHelpText$1 = class AuroHelpText extends i$2 {
3981
4298
  this.onDark = false;
3982
4299
  this.hasTextContent = false;
3983
4300
 
3984
- AuroLibraryRuntimeUtils$3.prototype.handleComponentTagRename(this, 'auro-helptext');
4301
+ AuroLibraryRuntimeUtils$5.prototype.handleComponentTagRename(this, 'auro-helptext');
3985
4302
  }
3986
4303
 
3987
4304
  static get styles() {
@@ -4037,7 +4354,7 @@ let AuroHelpText$1 = class AuroHelpText extends i$2 {
4037
4354
  *
4038
4355
  */
4039
4356
  static register(name = "auro-helptext") {
4040
- AuroLibraryRuntimeUtils$3.prototype.registerComponent(name, AuroHelpText);
4357
+ AuroLibraryRuntimeUtils$5.prototype.registerComponent(name, AuroHelpText);
4041
4358
  }
4042
4359
 
4043
4360
  updated() {
@@ -4095,7 +4412,7 @@ let AuroHelpText$1 = class AuroHelpText extends i$2 {
4095
4412
 
4096
4413
  var helpTextVersion$1 = '1.0.0';
4097
4414
 
4098
- let AuroElement$2 = class AuroElement extends i$2 {
4415
+ let AuroElement$3 = class AuroElement extends i$2 {
4099
4416
  static get properties() {
4100
4417
  return {
4101
4418
 
@@ -4130,18 +4447,21 @@ let AuroElement$2 = class AuroElement extends i$2 {
4130
4447
  }
4131
4448
 
4132
4449
  resetShapeClasses() {
4133
- if (this.shape && this.size) {
4134
- const wrapper = this.shadowRoot.querySelector('.wrapper');
4450
+ const wrapper = this.shadowRoot.querySelector('.wrapper');
4135
4451
 
4136
- if (wrapper) {
4137
- wrapper.classList.forEach((className) => {
4138
- if (className.startsWith('shape-')) {
4139
- wrapper.classList.remove(className);
4140
- }
4141
- });
4452
+ if (wrapper) {
4453
+ wrapper.classList.forEach((className) => {
4454
+ if (className.startsWith('shape-')) {
4455
+ wrapper.classList.remove(className);
4456
+ }
4457
+ });
4142
4458
 
4143
- wrapper.classList.add(`shape-${this.shape.toLowerCase()}-${this.size.toLowerCase()}`);
4144
- }
4459
+ }
4460
+
4461
+ if (this.shape && this.size) {
4462
+ wrapper.classList.add(`shape-${this.shape.toLowerCase()}-${this.size.toLowerCase()}`);
4463
+ } else {
4464
+ wrapper.classList.add('shape-none');
4145
4465
  }
4146
4466
  }
4147
4467
 
@@ -4191,10 +4511,9 @@ let AuroElement$2 = class AuroElement extends i$2 {
4191
4511
  // See LICENSE in the project root for license information.
4192
4512
 
4193
4513
 
4194
- /**
4195
- * @attr { Boolean } disableEventShow - If declared, the dropdown will only show by calling the API .show() public method.
4514
+
4515
+ /*
4196
4516
  * @slot - Default slot for the popover content.
4197
- * @slot label - Defines the content of the label.
4198
4517
  * @slot helpText - Defines the content of the helpText.
4199
4518
  * @slot trigger - Defines the content of the trigger.
4200
4519
  * @csspart trigger - The trigger content container.
@@ -4204,7 +4523,7 @@ let AuroElement$2 = class AuroElement extends i$2 {
4204
4523
  * @event auroDropdown-toggled - Notifies that the visibility of the dropdown bib has changed.
4205
4524
  * @event auroDropdown-idAdded - Notifies consumers that the unique ID for the dropdown bib has been generated.
4206
4525
  */
4207
- class AuroDropdown extends AuroElement$2 {
4526
+ class AuroDropdown extends AuroElement$3 {
4208
4527
  constructor() {
4209
4528
  super();
4210
4529
 
@@ -4213,23 +4532,25 @@ class AuroDropdown extends AuroElement$2 {
4213
4532
  this.matchWidth = false;
4214
4533
  this.noHideOnThisFocusLoss = false;
4215
4534
 
4216
- this.errorMessage = ''; // TODO!
4535
+ this.errorMessage = undefined; // TODO - check with Doug if there is still more to do here
4217
4536
 
4218
4537
  // Layout Config
4219
- this.layout = 'classic';
4220
- this.shape = 'rounded';
4221
- this.size = 'xl';
4538
+ this.layout = undefined;
4539
+ this.shape = undefined;
4540
+ this.size = undefined;
4541
+
4222
4542
  this.parentBorder = false;
4223
4543
 
4224
- this.privateDefaults();
4225
- }
4544
+ /** @private */
4545
+ this.handleDropdownToggle = this.handleDropdownToggle.bind(this);
4226
4546
 
4227
- get commonLabelClasses() {
4228
- return {
4229
- // 'withValue': this.value && this.value.length > 0
4230
- };
4547
+ this.privateDefaults();
4231
4548
  }
4232
4549
 
4550
+ /**
4551
+ * @private
4552
+ * @returns {object} Class definition for the wrapper element.
4553
+ */
4233
4554
  get commonWrapperClasses() {
4234
4555
  return {
4235
4556
  'trigger': true,
@@ -4247,13 +4568,10 @@ class AuroDropdown extends AuroElement$2 {
4247
4568
  privateDefaults() {
4248
4569
  this.chevron = false;
4249
4570
  this.disabled = false;
4571
+ this.disableFocusTrap = false;
4250
4572
  this.error = false;
4251
- this.inset = false;
4252
- this.rounded = false;
4253
4573
  this.tabIndex = 0;
4254
4574
  this.noToggle = false;
4255
- this.a11yAutocomplete = 'none';
4256
- this.labeled = true;
4257
4575
  this.a11yRole = 'button';
4258
4576
  this.onDark = false;
4259
4577
  this.showTriggerBorders = true;
@@ -4349,6 +4667,18 @@ class AuroDropdown extends AuroElement$2 {
4349
4667
  this.floater.showBib();
4350
4668
  }
4351
4669
 
4670
+ /**
4671
+ * When bib is open, focus on the first element inside of bib.
4672
+ * If not, trigger element will get focus.
4673
+ */
4674
+ focus() {
4675
+ if (this.isPopoverVisible && this.focusTrap) {
4676
+ this.focusTrap.focusFirstElement();
4677
+ } else {
4678
+ this.trigger.focus();
4679
+ }
4680
+ }
4681
+
4352
4682
  // function to define props used within the scope of this component
4353
4683
  static get properties() {
4354
4684
  return {
@@ -4362,6 +4692,15 @@ class AuroDropdown extends AuroElement$2 {
4362
4692
  reflect: true
4363
4693
  },
4364
4694
 
4695
+ /**
4696
+ * If declared, the dropdown will only show by calling the API .show() public method.
4697
+ * @default false
4698
+ */
4699
+ disableEventShow: {
4700
+ type: Boolean,
4701
+ reflect: true
4702
+ },
4703
+
4365
4704
  /**
4366
4705
  * If declared, applies a border around the trigger slot.
4367
4706
  */
@@ -4380,17 +4719,17 @@ class AuroDropdown extends AuroElement$2 {
4380
4719
  },
4381
4720
 
4382
4721
  /**
4383
- * If declared, the dropdown will be styled with the common theme.
4722
+ * If declared, the dropdown is not interactive.
4384
4723
  */
4385
- common: {
4724
+ disabled: {
4386
4725
  type: Boolean,
4387
4726
  reflect: true
4388
4727
  },
4389
4728
 
4390
4729
  /**
4391
- * If declared, the dropdown is not interactive.
4730
+ * If declared, the focus trap inside of bib will be turned off.
4392
4731
  */
4393
- disabled: {
4732
+ disableFocusTrap: {
4394
4733
  type: Boolean,
4395
4734
  reflect: true
4396
4735
  },
@@ -4435,27 +4774,13 @@ class AuroDropdown extends AuroElement$2 {
4435
4774
  reflect: true
4436
4775
  },
4437
4776
 
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
4777
  /**
4455
4778
  * If true, the dropdown bib is displayed.
4456
4779
  */
4457
4780
  isPopoverVisible: {
4458
- type: Boolean
4781
+ type: Boolean,
4782
+ reflect: true,
4783
+ attribute: 'open'
4459
4784
  },
4460
4785
 
4461
4786
  /**
@@ -4494,15 +4819,6 @@ class AuroDropdown extends AuroElement$2 {
4494
4819
  reflect: true
4495
4820
  },
4496
4821
 
4497
- /**
4498
- * Defines if there is a label preset.
4499
- * @private
4500
- */
4501
- labeled: {
4502
- type: Boolean,
4503
- reflect: true
4504
- },
4505
-
4506
4822
  /**
4507
4823
  * Defines if the trigger should size based on the parent element providing the border UI.
4508
4824
  * @private
@@ -4563,6 +4879,9 @@ class AuroDropdown extends AuroElement$2 {
4563
4879
  reflect: true
4564
4880
  },
4565
4881
 
4882
+ /**
4883
+ * If declared, and a function is set, that function will execute when the slot content is updated.
4884
+ */
4566
4885
  onSlotChange: {
4567
4886
  type: Function,
4568
4887
  reflect: false
@@ -4577,14 +4896,6 @@ class AuroDropdown extends AuroElement$2 {
4577
4896
  reflect: true
4578
4897
  },
4579
4898
 
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
4899
  /**
4589
4900
  * @private
4590
4901
  */
@@ -4599,22 +4910,15 @@ class AuroDropdown extends AuroElement$2 {
4599
4910
  type: String || undefined,
4600
4911
  attribute: false,
4601
4912
  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
4913
  }
4611
4914
  };
4612
4915
  }
4613
4916
 
4614
4917
  static get styles() {
4615
4918
  return [
4919
+ styleCss$1$2,
4920
+ tokensCss$1$2,
4616
4921
  colorCss$1$2,
4617
- tokensCss$1$1,
4618
4922
 
4619
4923
  // default layout
4620
4924
  classicColorCss,
@@ -4676,13 +4980,27 @@ class AuroDropdown extends AuroElement$2 {
4676
4980
  if (changedProperties.size === 0 || changedProperties.has('isPopoverVisible')) {
4677
4981
  this.handleTriggerContentSlotChange();
4678
4982
  }
4983
+ }
4679
4984
 
4985
+ /**
4986
+ * Handles the custom event `auroDropdown-toggled` to update the visibility of the dropdown bib.
4987
+ * @private
4988
+ * @param {CustomEvent} event - The custom event that contains the dropdown toggle information.
4989
+ */
4990
+ handleDropdownToggle(event) {
4991
+ this.updateFocusTrap();
4992
+ this.isPopoverVisible = event.detail.expanded;
4993
+ const eventType = event.detail.eventType || "unknown";
4994
+ if (!this.isPopoverVisible && this.hasFocus && eventType === "keydown") {
4995
+ this.trigger.focus();
4996
+ }
4680
4997
  }
4681
4998
 
4682
4999
  firstUpdated() {
4683
5000
 
4684
5001
  // Configure the floater to, this will generate the ID for the bib
4685
5002
  this.floater.configure(this, 'auroDropdown');
5003
+ this.addEventListener('auroDropdown-toggled', this.handleDropdownToggle);
4686
5004
 
4687
5005
  /**
4688
5006
  * @description Let subscribers know that the dropdown ID ha been generated and added.
@@ -4700,6 +5018,13 @@ class AuroDropdown extends AuroElement$2 {
4700
5018
 
4701
5019
  // Add the tag name as an attribute if it is different than the component name
4702
5020
  this.runtimeUtils.handleComponentTagRename(this, 'auro-dropdown');
5021
+
5022
+ this.trigger.addEventListener('click', () => {
5023
+ this.dispatchEvent(new CustomEvent('auroDropdown-triggerClick', {
5024
+ bubbles: true,
5025
+ composed: true
5026
+ }));
5027
+ });
4703
5028
  }
4704
5029
 
4705
5030
  /**
@@ -4743,70 +5068,33 @@ class AuroDropdown extends AuroElement$2 {
4743
5068
  }
4744
5069
 
4745
5070
  /**
4746
- * Function to support @focusout event.
4747
5071
  * @private
4748
- * @return {void}
4749
5072
  */
4750
- handleFocusout() {
4751
- this.hasFocus = false;
4752
- }
5073
+ updateFocusTrap() {
5074
+ // If the dropdown is open, create a focus trap and focus the first element
5075
+ if (this.isPopoverVisible && !this.disableFocusTrap) {
5076
+ this.focusTrap = new FocusTrap(this.bibContent);
5077
+ this.focusTrap.focusFirstElement();
5078
+ return;
5079
+ }
4753
5080
 
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
- });
5081
+ // Guard Clause: Ensure there is a focus trap currently active before continuing
5082
+ if (!this.focusTrap) {
5083
+ return;
4807
5084
  }
4808
5085
 
4809
- return result;
5086
+ // If the dropdown is not open, disconnect the focus trap if it exists
5087
+ this.focusTrap.disconnect();
5088
+ this.focusTrap = undefined;
5089
+ }
5090
+
5091
+ /**
5092
+ * Function to support @focusout event.
5093
+ * @private
5094
+ * @return {void}
5095
+ */
5096
+ handleFocusout() {
5097
+ this.hasFocus = false;
4810
5098
  }
4811
5099
 
4812
5100
  /**
@@ -4902,14 +5190,13 @@ class AuroDropdown extends AuroElement$2 {
4902
5190
  * @returns {void}
4903
5191
  */
4904
5192
  handleTriggerContentSlotChange(event) {
4905
-
4906
5193
  this.floater.handleTriggerTabIndex();
4907
5194
 
4908
5195
  // Get the trigger
4909
5196
  const trigger = this.shadowRoot.querySelector('#trigger');
4910
5197
 
4911
5198
  // Get the trigger slot
4912
- const triggerSlot = this.shadowRoot.querySelector('.triggerContent slot');
5199
+ const triggerSlot = this.shadowRoot.querySelector('.triggerContentWrapper slot');
4913
5200
 
4914
5201
  // If there's a trigger slot
4915
5202
  if (triggerSlot) {
@@ -4921,7 +5208,7 @@ class AuroDropdown extends AuroElement$2 {
4921
5208
  if (triggerContentNodes) {
4922
5209
 
4923
5210
  // See if any of them are focusable elements
4924
- this.triggerContentFocusable = triggerContentNodes.some((node) => this.containsFocusableElement(node));
5211
+ this.triggerContentFocusable = triggerContentNodes.some((node) => getFocusableElements(node).length > 0);
4925
5212
 
4926
5213
  // If any of them are focusable elements
4927
5214
  if (this.triggerContentFocusable) {
@@ -4972,7 +5259,6 @@ class AuroDropdown extends AuroElement$2 {
4972
5259
  *
4973
5260
  * @private
4974
5261
  * @method handleDefaultSlot
4975
- * @param {Event} event - The event object representing the slot change.
4976
5262
  * @fires Function#onSlotChange - Optional callback invoked when the slot content changes.
4977
5263
  */
4978
5264
  handleDefaultSlot() {
@@ -4982,29 +5268,6 @@ class AuroDropdown extends AuroElement$2 {
4982
5268
  }
4983
5269
  }
4984
5270
 
4985
- /**
4986
- * @private
4987
- * @method handleLabelSlotChange
4988
- * @param {event} event - The event object representing the slot change.
4989
- * @description Handles the slot change event for the label slot.
4990
- */
4991
- handleLabelSlotChange (event) {
4992
-
4993
- // Get the nodes from the event
4994
- const nodes = event.target.assignedNodes();
4995
-
4996
- // Guard clause for no nodes
4997
- if (!nodes) {
4998
- return;
4999
- }
5000
-
5001
- // Convert the nodes to a measurable array so we can get the length
5002
- const nodesArr = Array.from(nodes);
5003
-
5004
- // If the nodes array has a length, the dropdown is labeled
5005
- this.labeled = nodesArr.length > 0;
5006
- }
5007
-
5008
5271
  /**
5009
5272
  * Returns HTML for the common portion of the layouts.
5010
5273
  * @private
@@ -5017,24 +5280,19 @@ class AuroDropdown extends AuroElement$2 {
5017
5280
  <div
5018
5281
  id="trigger"
5019
5282
  class="${e(this.commonWrapperClasses)}" part="wrapper"
5020
- tabindex="${this.tabIndex}"
5283
+ tabindex="${o(this.triggerContentFocusable ? undefined : this.tabIndex)}"
5021
5284
  role="${o(this.triggerContentFocusable ? undefined : this.a11yRole)}"
5022
- aria-expanded="${o(this.triggerContentFocusable ? undefined : this.isPopoverVisible)}"
5023
- aria-controls="${o(this.triggerContentFocusable ? undefined : this.dropdownId)}"
5285
+ aria-expanded="${o(this.a11yRole === 'button' || this.triggerContentFocusable ? undefined : this.isPopoverVisible)}"
5286
+ aria-controls="${o(this.a11yRole === 'button' || this.triggerContentFocusable ? undefined : this.dropdownId)}"
5024
5287
  aria-labelledby="${o(this.triggerContentFocusable ? undefined : 'triggerLabel')}"
5025
5288
  @focusin="${this.handleFocusin}"
5026
5289
  @blur="${this.handleFocusOut}">
5027
- <div class="triggerContentWrapper">
5028
- <label class="label" id="triggerLabel" hasTrigger=${this.hasTriggerContent}>
5029
- <slot name="label" @slotchange="${this.handleLabelSlotChange}"></slot>
5030
- </label>
5031
- <div class="triggerContent">
5032
- <slot
5033
- name="trigger"
5034
- @slotchange="${this.handleTriggerContentSlotChange}"></slot>
5035
- </div>
5290
+ <div class="triggerContentWrapper" id="triggerLabel">
5291
+ <slot
5292
+ name="trigger"
5293
+ @slotchange="${this.handleTriggerContentSlotChange}"></slot>
5036
5294
  </div>
5037
- ${this.chevron || this.common ? u`
5295
+ ${this.chevron ? u`
5038
5296
  <div
5039
5297
  id="showStateIcon"
5040
5298
  class="chevron"
@@ -5055,11 +5313,9 @@ class AuroDropdown extends AuroElement$2 {
5055
5313
  <div id="bibSizer" part="size"></div>
5056
5314
  <${this.dropdownBibTag}
5057
5315
  id="bib"
5316
+ shape="${this.shape}"
5058
5317
  ?data-show="${this.isPopoverVisible}"
5059
- ?isfullscreen="${this.isBibFullscreen}"
5060
- ?common="${this.common}"
5061
- ?rounded="${this.common || this.rounded}"
5062
- ?inset="${this.common || this.inset}">
5318
+ ?isfullscreen="${this.isBibFullscreen}">
5063
5319
  <div class="slotContent">
5064
5320
  <slot @slotchange="${this.handleDefaultSlot}"></slot>
5065
5321
  </div>
@@ -5074,62 +5330,13 @@ class AuroDropdown extends AuroElement$2 {
5074
5330
  * @returns {html} - Returns HTML for the classic layout.
5075
5331
  */
5076
5332
  renderLayoutClassic() {
5333
+ // TODO: check with Doug why this was never used?
5334
+ const helpTextClasses = {
5335
+ 'helpText': true
5336
+ };
5077
5337
 
5078
5338
  return u`
5079
- <div>
5080
- <div
5081
- id="trigger"
5082
- class="trigger"
5083
- part="trigger"
5084
- tabindex="${this.tabIndex}"
5085
- ?showBorder="${this.showTriggerBorders}"
5086
- role="${o(this.triggerContentFocusable ? undefined : this.a11yRole)}"
5087
- aria-expanded="${o(this.triggerContentFocusable ? undefined : this.isPopoverVisible)}"
5088
- aria-controls="${o(this.triggerContentFocusable ? undefined : this.dropdownId)}"
5089
- aria-labelledby="${o(this.triggerContentFocusable ? undefined : 'triggerLabel')}"
5090
- >
5091
- <div class="triggerContentWrapper">
5092
- <label class="label" id="triggerLabel" hasTrigger=${this.hasTriggerContent}>
5093
- <slot name="label" @slotchange="${this.handleLabelSlotChange}"></slot>
5094
- </label>
5095
- <div class="triggerContent">
5096
- <slot
5097
- name="trigger"
5098
- @slotchange="${this.handleTriggerContentSlotChange}"></slot>
5099
- </div>
5100
- </div>
5101
- ${this.chevron || this.common ? u`
5102
- <div
5103
- id="showStateIcon"
5104
- part="chevron">
5105
- <${this.iconTag}
5106
- category="interface"
5107
- name="chevron-down"
5108
- ?onDark="${this.onDark}"
5109
- variant="${this.disabled ? 'disabled' : 'muted'}">
5110
- >
5111
- </${this.iconTag}>
5112
- </div>
5113
- ` : undefined }
5114
- </div>
5115
- <${this.helpTextTag} part="helpText" ?onDark=${this.onDark} ?error="${this.error}">
5116
- <slot name="helpText"></slot>
5117
- </${this.helpTextTag}>
5118
-
5119
- <div id="bibSizer" part="size"></div>
5120
- <${this.dropdownBibTag}
5121
- id="bib"
5122
- ?data-show="${this.isPopoverVisible}"
5123
- ?isfullscreen="${this.isBibFullscreen}"
5124
- ?common="${this.common}"
5125
- ?rounded="${this.common || this.rounded}"
5126
- ?inset="${this.common || this.inset}"
5127
- >
5128
- <div class="slotContent">
5129
- <slot @slotchange="${this.handleDefaultSlot}"></slot>
5130
- </div>
5131
- </${this.dropdownBibTag}>
5132
- </div>
5339
+ ${this.renderBasicHtml(helpTextClasses)}
5133
5340
  `;
5134
5341
  }
5135
5342
 
@@ -5197,9 +5404,9 @@ class AuroDropdown extends AuroElement$2 {
5197
5404
 
5198
5405
  var dropdownVersion = '3.0.0';
5199
5406
 
5200
- var colorCss$1$1 = i$5`#headerContainer{box-shadow:var(--ds-auro-dropdownbib-header-boxshadow-color)}#footerContainer{background-color:var(--ds-auro-dropdownbib-footer-container-color)}`;
5407
+ var colorCss$3$1 = i$5`#headerContainer{box-shadow:var(--ds-auro-dropdownbib-header-boxshadow-color)}#footerContainer{background-color:var(--ds-auro-dropdownbib-footer-container-color)}`;
5201
5408
 
5202
- var styleCss$2$1 = i$5`#bibTemplate{display:flex;overflow:hidden;height:100%;max-height:100%;flex-direction:column}#headerContainer{display:flex;flex-direction:column}#header{display:flex;width:100%;min-height:var(--ds-size-1000, 5rem);box-sizing:border-box;align-items:end;padding-top:var(--ds-size-400, 2rem);padding-right:var(--ds-size-700, 3.5rem);padding-left:var(--ds-size-200, 1rem);pointer-events:none}#subheader{width:100%}#subheader ::slotted([auro-input]){padding:0 var(--ds-size-200, 1rem)}#closeButton{position:absolute;top:var(--ds-size-400, 2rem);right:var(--ds-size-200, 1rem);border:none;background-color:transparent;cursor:pointer}#closeButton [auro-icon]{--ds-auro-icon-size: var(--ds-size-500, 2.5rem)}#bodyContainer{position:relative;overflow:auto;flex:1 1 100%}:host([isfullscreen]) #bibTemplate{max-height:100dvh}:host([isfullscreen]) #bodyContainer{margin-top:var(--ds-size-100, 0.5rem)}#footerContainer{position:absolute;right:0;bottom:0;left:0;padding:var(--ds-size-200, 1rem)}`;
5409
+ var styleCss$4$1 = i$5`#bibTemplate{display:flex;overflow:hidden;height:100%;max-height:100%;flex-direction:column}#headerContainer{display:flex;flex-direction:column}#header{display:flex;width:100%;min-height:var(--ds-size-1000, 5rem);box-sizing:border-box;align-items:end;padding-top:var(--ds-size-400, 2rem);padding-right:var(--ds-size-700, 3.5rem);padding-left:var(--ds-size-200, 1rem);pointer-events:none}#subheader{width:100%}#subheader ::slotted([auro-input]){box-sizing:border-box;padding:0 var(--ds-size-200, 1rem)}#closeButton{position:absolute;top:var(--ds-size-400, 2rem);right:var(--ds-size-200, 1rem);border:none;background-color:transparent;cursor:pointer}#bodyContainer{position:relative;overflow:auto;flex:1 1 100%}:host([isfullscreen]) #bibTemplate{max-height:100dvh}:host([isfullscreen]) #bodyContainer{margin-top:var(--ds-size-100, 0.5rem)}#footerContainer{position:absolute;right:0;bottom:0;left:0;padding:var(--ds-size-200, 1rem)}`;
5203
5410
 
5204
5411
  var tokenCss = i$5`:host{--ds-auro-dropdownbib-header-boxshadow-color: var(--ds-elevation-200, 0px 0px 10px rgba(0, 0, 0, 0.15));--ds-auro-dropdownbib-footer-container-color: var(--ds-basic-color-surface-default, #ffffff)}`;
5205
5412
 
@@ -5210,109 +5417,1203 @@ var tokenCss = i$5`:host{--ds-auro-dropdownbib-header-boxshadow-color: var(--ds-
5210
5417
 
5211
5418
  /* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
5212
5419
 
5213
- let AuroLibraryRuntimeUtils$1$1 = class AuroLibraryRuntimeUtils {
5420
+ let AuroLibraryRuntimeUtils$3 = class AuroLibraryRuntimeUtils {
5214
5421
 
5215
5422
  /* eslint-disable jsdoc/require-param */
5216
5423
 
5217
5424
  /**
5218
- * This will register a new custom element with the browser.
5219
- * @param {String} name - The name of the custom element.
5220
- * @param {Object} componentClass - The class to register as a custom element.
5425
+ * This will register a new custom element with the browser.
5426
+ * @param {String} name - The name of the custom element.
5427
+ * @param {Object} componentClass - The class to register as a custom element.
5428
+ * @returns {void}
5429
+ */
5430
+ registerComponent(name, componentClass) {
5431
+ if (!customElements.get(name)) {
5432
+ customElements.define(name, class extends componentClass {});
5433
+ }
5434
+ }
5435
+
5436
+ /**
5437
+ * Finds and returns the closest HTML Element based on a selector.
5438
+ * @returns {void}
5439
+ */
5440
+ closestElement(
5441
+ selector, // selector like in .closest()
5442
+ base = this, // extra functionality to skip a parent
5443
+ __Closest = (el, found = el && el.closest(selector)) =>
5444
+ !el || el === document || el === window
5445
+ ? null // standard .closest() returns null for non-found selectors also
5446
+ : found
5447
+ ? found // found a selector INside this element
5448
+ : __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
5449
+ ) {
5450
+ return __Closest(base);
5451
+ }
5452
+ /* eslint-enable jsdoc/require-param */
5453
+
5454
+ /**
5455
+ * 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.
5456
+ * @param {Object} elem - The element to check.
5457
+ * @param {String} tagName - The name of the Auro component to check for or add as an attribute.
5458
+ * @returns {void}
5459
+ */
5460
+ handleComponentTagRename(elem, tagName) {
5461
+ const tag = tagName.toLowerCase();
5462
+ const elemTag = elem.tagName.toLowerCase();
5463
+
5464
+ if (elemTag !== tag) {
5465
+ elem.setAttribute(tag, true);
5466
+ }
5467
+ }
5468
+
5469
+ /**
5470
+ * Validates if an element is a specific Auro component.
5471
+ * @param {Object} elem - The element to validate.
5472
+ * @param {String} tagName - The name of the Auro component to check against.
5473
+ * @returns {Boolean} - Returns true if the element is the specified Auro component.
5474
+ */
5475
+ elementMatch(elem, tagName) {
5476
+ const tag = tagName.toLowerCase();
5477
+ const elemTag = elem.tagName.toLowerCase();
5478
+
5479
+ return elemTag === tag || elem.hasAttribute(tag);
5480
+ }
5481
+ };
5482
+
5483
+ // Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
5484
+ // See LICENSE in the project root for license information.
5485
+
5486
+
5487
+ class AuroDependencyVersioning {
5488
+
5489
+ /**
5490
+ * Generates a unique string to be used for child auro element naming.
5491
+ * @private
5492
+ * @param {string} baseName - Defines the first part of the unique element name.
5493
+ * @param {string} version - Version of the component that will be appended to the baseName.
5494
+ * @returns {string} - Unique string to be used for naming.
5495
+ */
5496
+ generateElementName(baseName, version) {
5497
+ let result = baseName;
5498
+
5499
+ result += '-';
5500
+ result += version.replace(/[.]/g, '_');
5501
+
5502
+ return result;
5503
+ }
5504
+
5505
+ /**
5506
+ * Generates a unique string to be used for child auro element naming.
5507
+ * @param {string} baseName - Defines the first part of the unique element name.
5508
+ * @param {string} version - Version of the component that will be appended to the baseName.
5509
+ * @returns {string} - Unique string to be used for naming.
5510
+ */
5511
+ generateTag(baseName, version, tagClass) {
5512
+ const elementName = this.generateElementName(baseName, version);
5513
+ const tag = i`${s(elementName)}`;
5514
+
5515
+ if (!customElements.get(elementName)) {
5516
+ customElements.define(elementName, class extends tagClass {});
5517
+ }
5518
+
5519
+ return tag;
5520
+ }
5521
+ }
5522
+
5523
+ /**
5524
+ * Private module-level WeakMap to hold MutationObservers for each host element.
5525
+ */
5526
+ const _observers = new WeakMap();
5527
+
5528
+ /**
5529
+ * Private module-level WeakMap to hold attribute matchers and targets for each host element.
5530
+ * Structure: {
5531
+ * host: {
5532
+ * matchers: Set<Function>,
5533
+ * targets: Map<HTMLElement, Map<Function, {removeOriginal: boolean, currentAttributes: Map<string, string>}>>
5534
+ * }
5535
+ * }
5536
+ */
5537
+ const _transportConfig = new WeakMap();
5538
+
5539
+ /**
5540
+ * Transfers all matching attributes from a host element to a target element and observes for future changes.
5541
+ *
5542
+ * @param {Object} params - The parameters for the function.
5543
+ * @param {HTMLElement} params.host - The host element from which attributes will be transported.
5544
+ * @param {HTMLElement} params.target - The target element to which attributes will be transported.
5545
+ * @param {boolean} [params.removeOriginal=true] - Whether to remove the attributes from the host element.
5546
+ * @param {boolean} [params.observe=true] - Whether to attach a MutationObserver to the host element.
5547
+ * @returns {Function} A function to detach the observer when no longer needed.
5548
+ * @throws {TypeError} If the host or target parameters are not instances of HTMLElement.
5549
+ */
5550
+ const transportAttributes = ({ host, target, match, removeOriginal = true }) => {
5551
+ // Guard Clause: Ensure host is valid HTMLElement instance
5552
+ if (typeof host !== 'object' || !(host instanceof HTMLElement)) {
5553
+ throw new TypeError('a11yUtilities.js | transportAttributes | The "host" parameter must be an instance of HTMLElement.');
5554
+ }
5555
+
5556
+ // Guard Clause: Ensure target is valid HTMLElement instance
5557
+ if (typeof target !== 'object' || !(target instanceof HTMLElement)) {
5558
+ throw new TypeError('a11yUtilities.js | transportAttributes | The "target" parameter must be an instance of HTMLElement.');
5559
+ }
5560
+
5561
+ // Guard Clause: Ensure match is a function
5562
+ if (typeof match !== 'function') {
5563
+ throw new TypeError('a11yUtilities.js | transportAttributes | The "match" parameter must be a function.');
5564
+ }
5565
+
5566
+ // Guard Clause: Ensure removeOriginal is a boolean
5567
+ if (typeof removeOriginal !== 'boolean') {
5568
+ throw new TypeError('a11yUtilities.js | transportAttributes | The "removeOriginal" parameter must be a boolean.');
5569
+ }
5570
+
5571
+ // Register this transport and get cleanup function
5572
+ return _registerTransport({
5573
+ host,
5574
+ target,
5575
+ matcher: match,
5576
+ removeOriginal
5577
+ });
5578
+ };
5579
+
5580
+ /**
5581
+ * Registers a matcher and target for a host element and attaches an observer if needed.
5582
+ *
5583
+ * @param {Object} params - The parameters object.
5584
+ * @param {HTMLElement} params.host - The host element to observe.
5585
+ * @param {HTMLElement} params.target - The target element to receive attributes.
5586
+ * @param {Function} params.matcher - Function that determines which attributes to transport.
5587
+ * @param {boolean} [params.removeOriginal=true] - Whether to remove original attributes.
5588
+ * @param {boolean} [params.observe=true] - Whether to observe for attribute changes.
5589
+ * @returns {Function} Function to detach the specific matcher and target pairing.
5590
+ * @private
5591
+ */
5592
+ const _registerTransport = ({ host, target, matcher, removeOriginal = true }) => {
5593
+ // Initialize config for this host if it doesn't exist
5594
+ if (!_transportConfig.has(host)) {
5595
+ _transportConfig.set(host, {
5596
+ matchers: new Set(),
5597
+ targets: new Map()
5598
+ });
5599
+ }
5600
+
5601
+ const config = _transportConfig.get(host);
5602
+
5603
+ // Add the matcher to the set of matchers for this host
5604
+ config.matchers.add(matcher);
5605
+
5606
+ // Initialize target entry if it doesn't exist
5607
+ if (!config.targets.has(target)) {
5608
+ config.targets.set(target, new Map());
5609
+ }
5610
+
5611
+ // Store the matcher with its removeOriginal setting for this target
5612
+ config.targets.get(target).set(matcher, {
5613
+ removeOriginal,
5614
+ currentAttributes: new Map()
5615
+ });
5616
+
5617
+ // Perform initial attribute transport
5618
+ _transportAttributes({ host, target, matcher, removeOriginal });
5619
+
5620
+ // Attach observer
5621
+ _attachObserver(host);
5622
+
5623
+ // Return cleanup function and utility functions
5624
+ return {
5625
+ cleanup: () => _cleanupTransport(host, target, matcher),
5626
+ getObservedAttributes: () => _getObservedAttributes(host, target, matcher),
5627
+ getObservedAttribute: (attr) => _getObservedAttribute(host, target, matcher, attr),
5628
+ }
5629
+ };
5630
+
5631
+ /**
5632
+ * Cleans up resources associated with a specific matcher and target for a host element.
5633
+ *
5634
+ * @param {HTMLElement} host - The host element
5635
+ * @param {HTMLElement} target - The target element
5636
+ * @param {Function} matcher - The matcher function
5637
+ * @private
5638
+ */
5639
+ const _cleanupTransport = (host, target, matcher) => {
5640
+ const config = _transportConfig.get(host);
5641
+ if (!config) return;
5642
+
5643
+ // Remove this matcher from this target
5644
+ const targetMatchers = config.targets.get(target);
5645
+ if (targetMatchers) {
5646
+ targetMatchers.delete(matcher);
5647
+
5648
+ // If this target has no more matchers, remove it
5649
+ if (targetMatchers.size === 0) {
5650
+ config.targets.delete(target);
5651
+ }
5652
+ }
5653
+
5654
+ // Check if this matcher is still used by any target
5655
+ let matcherStillUsed = false;
5656
+ for (const matcherMap of config.targets.values()) {
5657
+ if (matcherMap.has(matcher)) {
5658
+ matcherStillUsed = true;
5659
+ break;
5660
+ }
5661
+ }
5662
+
5663
+ // If not used anymore, remove from matchers set
5664
+ if (!matcherStillUsed) {
5665
+ config.matchers.delete(matcher);
5666
+ }
5667
+
5668
+ // If no more targets or matchers, detach observer
5669
+ if (config.targets.size === 0 || config.matchers.size === 0) {
5670
+ _detachObserver(host);
5671
+ }
5672
+ };
5673
+
5674
+ /**
5675
+ * Generic function to transport attributes from a host element to a target element.
5676
+ *
5677
+ * @param {Object} params - The parameters object.
5678
+ * @param {HTMLElement} params.host - The host element from which to transport attributes.
5679
+ * @param {HTMLElement} params.target - The target element to which attributes will be transported.
5680
+ * @param {Function} params.matcher - Function that takes an attribute name and returns true if it should be transported.
5681
+ * @param {boolean} [params.removeOriginal=true] - Whether to remove original attributes from host.
5682
+ * @returns {void}
5683
+ * @private
5684
+ */
5685
+ const _transportAttributes = ({ host, target, matcher, removeOriginal = true }) => {
5686
+ // Get a list of all matching attributes on the host element and their values
5687
+ const matchingAttributes = host.getAttributeNames()
5688
+ .filter(attr => matcher(attr))
5689
+ .reduce((acc, attr) => {
5690
+ acc[attr] = host.getAttribute(attr);
5691
+ return acc;
5692
+ }, {});
5693
+
5694
+ // Move matching attributes to the target element, removing them from the host if removeOriginal is true
5695
+ Object.entries(matchingAttributes).forEach(([key, value]) => {
5696
+ _setObservedAttribute(host, target, matcher, key, value);
5697
+ target.setAttribute(key, value);
5698
+ if (removeOriginal) {
5699
+ host.removeAttribute(key);
5700
+ }
5701
+ });
5702
+ };
5703
+
5704
+ /**
5705
+ * Attaches a MutationObserver to the host element to monitor attribute changes.
5706
+ *
5707
+ * @param {HTMLElement} host - The element to observe for attribute changes.
5708
+ * @returns {MutationObserver} The observer instance.
5709
+ * @private
5710
+ */
5711
+ const _attachObserver = (host) => {
5712
+ // If an observer for this host already exists, return it
5713
+ if (_observers.has(host)) {
5714
+ return _observers.get(host);
5715
+ }
5716
+
5717
+ // Create a new MutationObserver
5718
+ const observer = new MutationObserver((mutations) => {
5719
+ const config = _transportConfig.get(host);
5720
+ if (!config) return;
5721
+
5722
+ // For each mutation affecting attributes
5723
+ mutations
5724
+ .filter(mutation => mutation.type === 'attributes')
5725
+ .forEach(mutation => {
5726
+ const attributeName = mutation.attributeName;
5727
+
5728
+ // Find matchers that care about this attribute
5729
+ for (const matcher of config.matchers) {
5730
+ if (matcher(attributeName)) {
5731
+ // For each target that uses this matcher
5732
+ for (const [target, matcherConfigs] of config.targets.entries()) {
5733
+ if (matcherConfigs.has(matcher)) {
5734
+ const { removeOriginal } = matcherConfigs.get(matcher);
5735
+ _transportAttributes({
5736
+ host,
5737
+ target,
5738
+ matcher,
5739
+ removeOriginal
5740
+ });
5741
+ }
5742
+ }
5743
+ }
5744
+ }
5745
+ });
5746
+ });
5747
+
5748
+ // Start observing attribute changes
5749
+ observer.observe(host, { attributes: true });
5750
+
5751
+ // Store the observer
5752
+ _observers.set(host, observer);
5753
+
5754
+ return observer;
5755
+ };
5756
+
5757
+ /**
5758
+ * Detaches and cleans up the MutationObserver for a given host element.
5759
+ *
5760
+ * @param {HTMLElement} host - The element whose observer should be detached.
5761
+ * @private
5762
+ */
5763
+ const _detachObserver = (host) => {
5764
+ if (_observers.has(host)) {
5765
+ const observer = _observers.get(host);
5766
+ observer.disconnect();
5767
+ _observers.delete(host);
5768
+ }
5769
+
5770
+ // Clean up the transport config as well
5771
+ if (_transportConfig.has(host)) {
5772
+ _transportConfig.delete(host);
5773
+ }
5774
+ };
5775
+
5776
+ /**
5777
+ * Gets the matcher configuration for a specific host, target, and matcher
5778
+ * @param {HTMLElement} host - The host element
5779
+ * @param {HTMLElement} target - The target element
5780
+ * @param {Function} matcher - The matcher function
5781
+ * @returns {Object|undefined} The matcher configuration if found
5782
+ * @private
5783
+ */
5784
+ const _getMatcherConfig = (host, target, matcher) => {
5785
+ const config = _transportConfig.get(host);
5786
+ if (!config) return undefined;
5787
+
5788
+ const targetMatchers = config.targets.get(target);
5789
+ if (!targetMatchers) return undefined;
5790
+
5791
+ return targetMatchers.get(matcher);
5792
+ };
5793
+
5794
+ /**
5795
+ * Sets an observed attribute value
5796
+ * @param {HTMLElement} host - The host element
5797
+ * @param {HTMLElement} target - The target element
5798
+ * @param {Function} matcher - The matcher function
5799
+ * @param {string} key - The attribute name
5800
+ * @param {string} value - The attribute value
5801
+ * @private
5802
+ */
5803
+ const _setObservedAttribute = (host, target, matcher, key, value) => {
5804
+ const matcherConfig = _getMatcherConfig(host, target, matcher);
5805
+ if (matcherConfig) {
5806
+ matcherConfig.currentAttributes.set(key, value);
5807
+ }
5808
+ };
5809
+
5810
+ const _getObservedAttribute = (host, target, matcher, attr) => {
5811
+ const matcherConfig = _getMatcherConfig(host, target, matcher);
5812
+ if (matcherConfig) return matcherConfig.currentAttributes.get(attr);
5813
+ return undefined;
5814
+ };
5815
+
5816
+ const _getObservedAttributes = (host, target, matcher) => {
5817
+ const matcherConfig = _getMatcherConfig(host, target, matcher);
5818
+ if (matcherConfig) return Array.from(matcherConfig.currentAttributes.entries());
5819
+ return [];
5820
+ };
5821
+
5822
+ const _matchers = {
5823
+ 'aria-': attr => attr.startsWith('aria-'),
5824
+ 'role': attr => attr.match(/^role$/)
5825
+ };
5826
+
5827
+ const transportAllA11yAttributes = ({ host, target, removeOriginal = true }) => {
5828
+ return transportAttributes({
5829
+ host,
5830
+ target,
5831
+ match: attr => {
5832
+ for (const key in _matchers) {
5833
+ if (_matchers[key](attr)) return true;
5834
+ }
5835
+ return false;
5836
+ },
5837
+ removeOriginal
5838
+ });
5839
+ };
5840
+
5841
+ let AuroElement$1 = class AuroElement extends i$2 {
5842
+
5843
+ /**
5844
+ * @type {Object} return object from transportAttributes via a11yUtilities
5845
+ * @property {Function} cleanup - Function to clean up the attribute watcher.
5846
+ * @property {Function} getCurrentAttributes - Function to get the current attributes being watched and their values.
5847
+ * @property {Function} getObservedAttribute - Function to get the value of a specific observed attribute by name.
5848
+ * @private
5849
+ */
5850
+ attributeWatcher;
5851
+
5852
+ static get properties() {
5853
+ return {
5854
+
5855
+ /**
5856
+ * Defines the layout of an element.
5857
+ * @default {'default'}
5858
+ */
5859
+ layout: {
5860
+ type: String,
5861
+ attribute: "layout",
5862
+ reflect: true
5863
+ },
5864
+
5865
+ /**
5866
+ * Defines the shape of an element.
5867
+ * @property {'default', 'rounded', 'pill', 'circle'}
5868
+ * @default {'default'}
5869
+ */
5870
+ shape: {
5871
+ type: String,
5872
+ attribute: "shape",
5873
+ reflect: true
5874
+ },
5875
+
5876
+ /**
5877
+ * Defines the size of an element.
5878
+ * @property {'xs', 'sm', 'md', 'lg', 'xl'}
5879
+ * @default {'md'}
5880
+ */
5881
+ size: {
5882
+ type: String,
5883
+ attribute: "size",
5884
+ reflect: true
5885
+ },
5886
+
5887
+ /**
5888
+ * This Boolean attribute lets you specify that the element should be rendered in dark mode.
5889
+ * @default {false}
5890
+ */
5891
+ onDark: {
5892
+ type: Boolean,
5893
+ attribute: "ondark",
5894
+ reflect: true
5895
+ },
5896
+
5897
+ /**
5898
+ * A reference to the wrapper element in the shadow DOM.
5899
+ * This is used to apply layout and shape classes dynamically.
5900
+ * @type {HTMLElement|null}
5901
+ * @default {null}
5902
+ * @private
5903
+ */
5904
+ wrapper: {
5905
+ attribute: false,
5906
+ reflect: false
5907
+ }
5908
+ };
5909
+ }
5910
+
5911
+
5912
+
5913
+ resetShapeClasses() {
5914
+ if (this.shape && this.size) {
5915
+
5916
+ if (this.wrapper) {
5917
+ this.wrapper.classList.forEach((className) => {
5918
+ if (className.startsWith('shape-')) {
5919
+ this.wrapper.classList.remove(className);
5920
+ }
5921
+ });
5922
+
5923
+ this.wrapper.classList.add(`shape-${this.shape.toLowerCase()}-${this.size.toLowerCase()}`);
5924
+ }
5925
+ }
5926
+ }
5927
+
5928
+ resetLayoutClasses() {
5929
+ if (this.layout) {
5930
+ if (this.wrapper) {
5931
+ this.wrapper.classList.forEach((className) => {
5932
+ if (className.startsWith('layout-')) {
5933
+ this.wrapper.classList.remove(className);
5934
+ }
5935
+ });
5936
+
5937
+ this.wrapper.classList.add(`layout-${this.layout.toLowerCase()}`);
5938
+ }
5939
+ }
5940
+ }
5941
+
5942
+ updateComponentArchitecture() {
5943
+ this.resetLayoutClasses();
5944
+ this.resetShapeClasses();
5945
+ }
5946
+
5947
+ updated(changedProperties) {
5948
+ if (changedProperties.has('layout') || changedProperties.has('shape') || changedProperties.has('size')) {
5949
+ this.updateComponentArchitecture();
5950
+ }
5951
+ }
5952
+
5953
+ firstUpdated() {
5954
+ super.firstUpdated();
5955
+
5956
+ // Set a reference to the wrapper element in the shadow DOM
5957
+ this.wrapper = this.shadowRoot.querySelector('.wrapper');
5958
+
5959
+ // Initialize the transportation of ARIA attributes to the target element and get the disconnect function for cleanup
5960
+ this.attributeWatcher = transportAllA11yAttributes({ host: this, target: this.shadowRoot.querySelector('.wrapper') });
5961
+ }
5962
+
5963
+ disconnectedCallback() {
5964
+ super.disconnectedCallback();
5965
+
5966
+ // Cleanup the ARIA observer if it exists
5967
+ if (this.attributeWatcher) {
5968
+ this.attributeWatcher.cleanup();
5969
+ this.attributeWatcher = null;
5970
+ }
5971
+ }
5972
+
5973
+ // Try to render the defined `this.layout` layout. If that fails, fall back to the default layout.
5974
+ // This will catch if an invalid layout value is passed in and render the default layout if so.
5975
+ render() {
5976
+ try {
5977
+ return this.renderLayout();
5978
+ } catch (error) {
5979
+ // failed to get the defined layout
5980
+ console.error('Failed to get the defined layout - using the default layout', error); // eslint-disable-line no-console
5981
+
5982
+ // fallback to the default layout
5983
+ return this.getLayout('default');
5984
+ }
5985
+ }
5986
+ };
5987
+
5988
+ 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}`;
5989
+
5990
+ 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)}`;
5991
+
5992
+ 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}`;
5993
+
5994
+ 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}`;
5995
+
5996
+ // Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
5997
+ // See LICENSE in the project root for license information.
5998
+
5999
+ // ---------------------------------------------------------------------
6000
+
6001
+ /* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
6002
+
6003
+ let AuroLibraryRuntimeUtils$2 = class AuroLibraryRuntimeUtils {
6004
+
6005
+ /* eslint-disable jsdoc/require-param */
6006
+
6007
+ /**
6008
+ * This will register a new custom element with the browser.
6009
+ * @param {String} name - The name of the custom element.
6010
+ * @param {Object} componentClass - The class to register as a custom element.
6011
+ * @returns {void}
6012
+ */
6013
+ registerComponent(name, componentClass) {
6014
+ if (!customElements.get(name)) {
6015
+ customElements.define(name, class extends componentClass {});
6016
+ }
6017
+ }
6018
+
6019
+ /**
6020
+ * Finds and returns the closest HTML Element based on a selector.
6021
+ * @returns {void}
6022
+ */
6023
+ closestElement(
6024
+ selector, // selector like in .closest()
6025
+ base = this, // extra functionality to skip a parent
6026
+ __Closest = (el, found = el && el.closest(selector)) =>
6027
+ !el || el === document || el === window
6028
+ ? null // standard .closest() returns null for non-found selectors also
6029
+ : found
6030
+ ? found // found a selector INside this element
6031
+ : __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
6032
+ ) {
6033
+ return __Closest(base);
6034
+ }
6035
+ /* eslint-enable jsdoc/require-param */
6036
+
6037
+ /**
6038
+ * 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.
6039
+ * @param {Object} elem - The element to check.
6040
+ * @param {String} tagName - The name of the Auro component to check for or add as an attribute.
6041
+ * @returns {void}
6042
+ */
6043
+ handleComponentTagRename(elem, tagName) {
6044
+ const tag = tagName.toLowerCase();
6045
+ const elemTag = elem.tagName.toLowerCase();
6046
+
6047
+ if (elemTag !== tag) {
6048
+ elem.setAttribute(tag, true);
6049
+ }
6050
+ }
6051
+
6052
+ /**
6053
+ * Validates if an element is a specific Auro component.
6054
+ * @param {Object} elem - The element to validate.
6055
+ * @param {String} tagName - The name of the Auro component to check against.
6056
+ * @returns {Boolean} - Returns true if the element is the specified Auro component.
6057
+ */
6058
+ elementMatch(elem, tagName) {
6059
+ const tag = tagName.toLowerCase();
6060
+ const elemTag = elem.tagName.toLowerCase();
6061
+
6062
+ return elemTag === tag || elem.hasAttribute(tag);
6063
+ }
6064
+ };
6065
+
6066
+ 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}}`;
6067
+
6068
+ 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}`;
6069
+
6070
+ var tokensCss$1$1 = i$5`:host{--ds-auro-loader-background-color:currentcolor;--ds-auro-loader-border-color:currentcolor;--ds-auro-loader-color:currentcolor}`;
6071
+
6072
+ // Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
6073
+ // See LICENSE in the project root for license information.
6074
+
6075
+
6076
+ class AuroLoader extends i$2 {
6077
+ constructor() {
6078
+ super();
6079
+
6080
+ /**
6081
+ * @private
6082
+ */
6083
+ this.keys = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9];
6084
+
6085
+ /**
6086
+ * @private
6087
+ */
6088
+ this.mdCount = 3;
6089
+
6090
+ /**
6091
+ * @private
6092
+ */
6093
+ this.smCount = 2;
6094
+
6095
+ /**
6096
+ * @private
6097
+ */
6098
+ this.runtimeUtils = new AuroLibraryRuntimeUtils$2();
6099
+
6100
+ this.orbit = false;
6101
+ this.ringworm = false;
6102
+ this.laser = false;
6103
+ this.pulse = false;
6104
+ }
6105
+
6106
+ // function to define props used within the scope of this component
6107
+ static get properties() {
6108
+ return {
6109
+
6110
+ /**
6111
+ * Sets loader to laser type.
6112
+ */
6113
+ laser: {
6114
+ type: Boolean,
6115
+ reflect: true
6116
+ },
6117
+
6118
+ /**
6119
+ * Sets loader to orbit type.
6120
+ */
6121
+ orbit: {
6122
+ type: Boolean,
6123
+ reflect: true
6124
+ },
6125
+
6126
+ /**
6127
+ * Sets loader to pulse type.
6128
+ */
6129
+ pulse: {
6130
+ type: Boolean,
6131
+ reflect: true
6132
+ },
6133
+
6134
+ /**
6135
+ * Sets loader to ringworm type.
6136
+ */
6137
+ ringworm: {
6138
+ type: Boolean,
6139
+ reflect: true
6140
+ }
6141
+ };
6142
+ }
6143
+
6144
+ static get styles() {
6145
+ return [
6146
+ i$5`${styleCss$2$1}`,
6147
+ i$5`${colorCss$1$1}`,
6148
+ i$5`${tokensCss$1$1}`
6149
+ ];
6150
+ }
6151
+
6152
+ /**
6153
+ * This will register this element with the browser.
6154
+ * @param {string} [name="auro-loader"] - The name of element that you want to register to.
6155
+ *
6156
+ * @example
6157
+ * AuroLoader.register("custom-loader") // this will register this element to <custom-loader/>
6158
+ *
6159
+ */
6160
+ static register(name = "auro-loader") {
6161
+ AuroLibraryRuntimeUtils$2.prototype.registerComponent(name, AuroLoader);
6162
+ }
6163
+
6164
+ firstUpdated() {
6165
+ // Add the tag name as an attribute if it is different than the component name
6166
+ this.runtimeUtils.handleComponentTagRename(this, 'auro-loader');
6167
+ }
6168
+
6169
+ connectedCallback() {
6170
+ super.connectedCallback();
6171
+ }
6172
+
6173
+ /**
6174
+ * @private
6175
+ * @returns {Array} Numbered array for template map.
6176
+ */
6177
+ defineTemplate() {
6178
+ let nodes = Array.from(Array(this.mdCount).keys());
6179
+
6180
+ if (this.orbit || this.laser) {
6181
+ nodes = Array.from(Array(this.smCount).keys());
6182
+ } else if (this.ringworm) {
6183
+ nodes = Array.from(Array(0).keys());
6184
+ }
6185
+
6186
+ return nodes;
6187
+ }
6188
+
6189
+ // When using auroElement, use the following attribute and function when hiding content from screen readers.
6190
+ // aria-hidden="${this.hideAudible(this.hiddenAudible)}"
6191
+
6192
+ // function that renders the HTML and CSS into the scope of the component
6193
+ render() {
6194
+ return x`
6195
+ ${this.defineTemplate().map((idx) => x`
6196
+ <span part="element" class="loader node-${idx}"></span>
6197
+ `)}
6198
+
6199
+ <div class="no-animation body-default">Loading...</div>
6200
+
6201
+ ${this.ringworm ? x`
6202
+ <svg part="element" class="circular" viewBox="25 25 50 50">
6203
+ <circle class="path" cx="50" cy="50" r="20" fill="none"/>
6204
+ </svg>`
6205
+ : ``
6206
+ }
6207
+ `;
6208
+ }
6209
+ }
6210
+
6211
+ var loaderVersion = '5.1.0';
6212
+
6213
+ // Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
6214
+ // See LICENSE in the project root for license information.
6215
+
6216
+
6217
+ /**
6218
+ * @slot - Default slot for the text of the button.
6219
+ * @csspart button - Apply CSS to HTML5 button.
6220
+ * @csspart loader - Apply CSS to auro-loader.
6221
+ * @csspart text - Apply CSS to text slot.
6222
+ * @csspart icon - Apply CSS to icon slot.
6223
+ */
6224
+
6225
+ const ICON_ONLY_SHAPES = ['circle', 'square'];
6226
+
6227
+ /**
6228
+ * AuroButton is a custom element that provides a styled, accessible button with support for various states and form association.
6229
+ * It is designed to be flexible, supporting loading states, icon slots, and integration with HTML5 forms.
6230
+ * @property {'default', 'rounded', 'pill', 'circle', 'square'} shape - Defines the shape of the button.
6231
+ * @property {'xs', 'sm', 'md', 'lg', 'xl'} size - Defines the size of the button.
6232
+ * @property {'primary', 'secondary', 'tertiary', 'ghost', 'flat'} variant - Sets the button variant.
6233
+ * @property {'submit', 'reset', 'button'} type - The type of button. Matches HTML5 Button Spec.
6234
+ * @property {boolean} onDark - Indicates if the button is rendered in dark mode.
6235
+ */
6236
+ class AuroButton extends AuroElement$1 {
6237
+
6238
+ /**
6239
+ * Enables form association for this element.
6240
+ * @see https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/attachInternals
6241
+ * @returns {boolean} - Returns true to enable form association.
6242
+ */
6243
+ static get formAssociated() {
6244
+ return true;
6245
+ }
6246
+
6247
+ constructor() {
6248
+ super();
6249
+ this.autofocus = false;
6250
+ this.disabled = false;
6251
+ this.loading = false;
6252
+ this.size = "md";
6253
+ this.shape = "rounded";
6254
+ this.onDark = false;
6255
+ this.fluid = false;
6256
+ this.loadingText = this.loadingText || 'Loading...';
6257
+ this.variant = 'primary';
6258
+
6259
+ // Support for HTML5 forms
6260
+ if (typeof this.attachInternals === 'function') {
6261
+ this.internals = this.attachInternals();
6262
+ } else {
6263
+ this.internals = null;
6264
+
6265
+ // eslint-disable-next-line no-console
6266
+ 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.');
6267
+ }
6268
+
6269
+ /**
6270
+ * Generate unique names for dependency components.
6271
+ */
6272
+ const versioning = new AuroDependencyVersioning();
6273
+
6274
+ /**
6275
+ * @private
6276
+ */
6277
+ this.loaderTag = versioning.generateTag('auro-loader', loaderVersion, AuroLoader);
6278
+
6279
+ /**
6280
+ * @private
6281
+ */
6282
+ this.buttonHref = undefined;
6283
+
6284
+ /**
6285
+ * @private
6286
+ */
6287
+ this.buttonTarget = undefined;
6288
+
6289
+ /**
6290
+ * @private
6291
+ */
6292
+ this.buttonRel = undefined;
6293
+ }
6294
+
6295
+ static get styles() {
6296
+ return [
6297
+ tokensCss$2$1,
6298
+ styleCss$3$1,
6299
+ colorCss$2$1,
6300
+ shapeSize
6301
+ ];
6302
+ }
6303
+
6304
+ static get properties() {
6305
+ return {
6306
+
6307
+ ...super.properties,
6308
+
6309
+ /**
6310
+ * Override layout since it isn't used in this component.
6311
+ * @private
6312
+ */
6313
+ layout: {
6314
+ type: Boolean,
6315
+ attribute: false,
6316
+ reflect: false
6317
+ },
6318
+
6319
+ /**
6320
+ * This Boolean attribute lets you specify that the button should have input focus when the page loads, unless overridden by the user.
6321
+ */
6322
+ autofocus: {
6323
+ type: Boolean,
6324
+ reflect: true
6325
+ },
6326
+
6327
+ /**
6328
+ * If set to true, button will become disabled and not allow for interactions.
6329
+ */
6330
+ disabled: {
6331
+ type: Boolean,
6332
+ reflect: true
6333
+ },
6334
+
6335
+ /**
6336
+ * Alters the shape of the button to be full width of its parent container.
6337
+ */
6338
+ fluid: {
6339
+ type: Boolean,
6340
+ reflect: true
6341
+ },
6342
+
6343
+ /**
6344
+ * If set to true button text will be replaced with `auro-loader` and become disabled.
6345
+ */
6346
+ loading: {
6347
+ type: Boolean,
6348
+ reflect: true
6349
+ },
6350
+
6351
+ /**
6352
+ * 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.
6353
+ */
6354
+ loadingText: {
6355
+ type: String
6356
+ },
6357
+
6358
+ /**
6359
+ * Populates `tabindex` to define the focusable sequence in keyboard navigation.
6360
+ */
6361
+ tIndex: {
6362
+ type: String,
6363
+ reflect: true
6364
+ },
6365
+
6366
+ /**
6367
+ * Populates `tabindex` to define the focusable sequence in keyboard navigation.
6368
+ * Must be used with "." to ensure the host element does not retain a reference to the `tabindex` attribute.
6369
+ * Example: `<auro-button .tabindex="${this.disabled ? '-1' : '0'}"></auro-button>`.
6370
+ */
6371
+ tabindex: {
6372
+ type: String,
6373
+ reflect: false
6374
+ },
6375
+
6376
+ /**
6377
+ * Sets title attribute. The information is most often shown as a tooltip text when the mouse moves over the element.
6378
+ */
6379
+ title: {
6380
+ type: String,
6381
+ reflect: true
6382
+ },
6383
+
6384
+ /**
6385
+ * The type of the button. Possible values are: `submit`, `reset`, `button`.
6386
+ */
6387
+ type: {
6388
+ type: String,
6389
+ reflect: true
6390
+ },
6391
+
6392
+ /**
6393
+ * Defines the value associated with the button which is submitted with the form data.
6394
+ */
6395
+ value: {
6396
+ type: String,
6397
+ reflect: true
6398
+ },
6399
+
6400
+ /**
6401
+ * Sets button variant option.
6402
+ * @default primary
6403
+ */
6404
+ variant: {
6405
+ type: String,
6406
+ reflect: true
6407
+ },
6408
+
6409
+ /**
6410
+ * @private
6411
+ */
6412
+ buttonHref: {
6413
+ type: String,
6414
+ },
6415
+
6416
+ /**
6417
+ * @private
6418
+ */
6419
+ buttonTarget: {
6420
+ type: String,
6421
+ },
6422
+
6423
+ /**
6424
+ * @private
6425
+ */
6426
+ buttonRel: {
6427
+ type: String,
6428
+ },
6429
+ };
6430
+ }
6431
+
6432
+ /**
6433
+ * This will register this element with the browser.
6434
+ * @param {string} [name="auro-button"] - The name of element that you want to register to.
6435
+ *
6436
+ * @example
6437
+ * AuroButton.register("custom-button") // this will register this element to <custom-button/>
6438
+ *
6439
+ */
6440
+ static register(name = "auro-button") {
6441
+ AuroLibraryRuntimeUtils$3.prototype.registerComponent(name, AuroButton);
6442
+ }
6443
+
6444
+ /**
6445
+ * Internal method to apply focus to the HTML5 button.
6446
+ * @private
5221
6447
  * @returns {void}
5222
6448
  */
5223
- registerComponent(name, componentClass) {
5224
- if (!customElements.get(name)) {
5225
- customElements.define(name, class extends componentClass {});
5226
- }
6449
+ focus() {
6450
+ this.renderRoot.querySelector('button').focus();
5227
6451
  }
5228
6452
 
5229
6453
  /**
5230
- * Finds and returns the closest HTML Element based on a selector.
6454
+ * Submits the form that this button is associated with.
6455
+ * @private
5231
6456
  * @returns {void}
5232
6457
  */
5233
- closestElement(
5234
- selector, // selector like in .closest()
5235
- base = this, // extra functionality to skip a parent
5236
- __Closest = (el, found = el && el.closest(selector)) =>
5237
- !el || el === document || el === window
5238
- ? null // standard .closest() returns null for non-found selectors also
5239
- : found
5240
- ? found // found a selector INside this element
5241
- : __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
5242
- ) {
5243
- return __Closest(base);
6458
+ surfaceSubmitEvent() {
6459
+ if (this.form) {
6460
+ this.form.requestSubmit();
6461
+ }
5244
6462
  }
5245
- /* eslint-enable jsdoc/require-param */
5246
6463
 
5247
6464
  /**
5248
- * If the element passed is registered with a different tag name than what is passed in, the tag name is added as an attribute to the element.
5249
- * @param {Object} elem - The element to check.
5250
- * @param {String} tagName - The name of the Auro component to check for or add as an attribute.
5251
- * @returns {void}
6465
+ * Returns the form element that this button is associated with.
6466
+ * @private
6467
+ * @returns {HTMLFormElement | null}
5252
6468
  */
5253
- handleComponentTagRename(elem, tagName) {
5254
- const tag = tagName.toLowerCase();
5255
- const elemTag = elem.tagName.toLowerCase();
6469
+ get form() {
6470
+ return this.internals ? this.internals.form : null;
6471
+ }
5256
6472
 
5257
- if (elemTag !== tag) {
5258
- elem.setAttribute(tag, true);
5259
- }
6473
+ /**
6474
+ * @private
6475
+ * @returns {Boolean}
6476
+ */
6477
+ get showText() {
6478
+ return !ICON_ONLY_SHAPES.includes(this.shape);
5260
6479
  }
5261
6480
 
5262
6481
  /**
5263
- * Validates if an element is a specific Auro component.
5264
- * @param {Object} elem - The element to validate.
5265
- * @param {String} tagName - The name of the Auro component to check against.
5266
- * @returns {Boolean} - Returns true if the element is the specified Auro component.
6482
+ * Returns the current value of the projected `aria-label` attribute or undefined if not set.
6483
+ * @returns {string | undefined}
6484
+ * @private
5267
6485
  */
5268
- elementMatch(elem, tagName) {
5269
- const tag = tagName.toLowerCase();
5270
- const elemTag = elem.tagName.toLowerCase();
6486
+ get currentAriaLabel() {
6487
+ if (!this.attributeWatcher) return undefined;
5271
6488
 
5272
- return elemTag === tag || elem.hasAttribute(tag);
6489
+ const ariaLabel = this.attributeWatcher.getObservedAttribute("aria-label");
6490
+ return ariaLabel || undefined;
5273
6491
  }
5274
- };
5275
6492
 
5276
- // Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
5277
- // See LICENSE in the project root for license information.
6493
+ /**
6494
+ * Returns the current value of the projected `aria-labelledby` attribute or undefined if not set.
6495
+ * @returns {string | undefined}
6496
+ * @private
6497
+ */
6498
+ get currentAriaLabelledBy() {
6499
+ if (!this.attributeWatcher) return undefined;
5278
6500
 
6501
+ const ariaLabelledBy = this.attributeWatcher.getObservedAttribute("aria-labelledby");
6502
+ return ariaLabelledBy || undefined;
6503
+ }
5279
6504
 
5280
- class AuroDependencyVersioning {
6505
+ /**
6506
+ * Whether or not the button is set to an icon-only shape.
6507
+ * @returns {boolean} - True if the button is icon-only, false otherwise.
6508
+ * @private
6509
+ */
6510
+ get iconOnly() {
6511
+ return ICON_ONLY_SHAPES.includes(this.shape);
6512
+ }
5281
6513
 
5282
6514
  /**
5283
- * Generates a unique string to be used for child auro element naming.
6515
+ * Gets a class name for the font size based on the button's size and shape.
6516
+ * @returns {string} - The font size class name.
5284
6517
  * @private
5285
- * @param {string} baseName - Defines the first part of the unique element name.
5286
- * @param {string} version - Version of the component that will be appended to the baseName.
5287
- * @returns {string} - Unique string to be used for naming.
5288
6518
  */
5289
- generateElementName(baseName, version) {
5290
- let result = baseName;
6519
+ getFontSize() {
5291
6520
 
5292
- result += '-';
5293
- result += version.replace(/[.]/g, '_');
6521
+ // Size map for standard buttons
6522
+ const standardButtonSizeMap = {
6523
+ xs: 'body-xs',
6524
+ sm: 'body-sm',
6525
+ md: 'body-default',
6526
+ lg: 'body-lg',
6527
+ xl: 'body-lg'
6528
+ };
5294
6529
 
5295
- return result;
6530
+ // Size map for icon-only buttons
6531
+ const iconOnlyButtonSizeMap = {
6532
+ xs: 'heading-xs',
6533
+ sm: 'heading-sm',
6534
+ md: 'heading-sm',
6535
+ lg: 'heading-md',
6536
+ xl: 'heading-lg'
6537
+ };
6538
+
6539
+ // Determine which map to use based on the shape
6540
+ const sizeMap = this.iconOnly ? iconOnlyButtonSizeMap : standardButtonSizeMap;
6541
+
6542
+ // Return the font size based on the button size and shape
6543
+ return sizeMap[this.size] || 'body-default';
5296
6544
  }
5297
6545
 
5298
6546
  /**
5299
- * Generates a unique string to be used for child auro element naming.
5300
- * @param {string} baseName - Defines the first part of the unique element name.
5301
- * @param {string} version - Version of the component that will be appended to the baseName.
5302
- * @returns {string} - Unique string to be used for naming.
6547
+ * Renders the default layout for the button.
6548
+ * @returns {TemplateResult}
6549
+ * @private
5303
6550
  */
5304
- generateTag(baseName, version, tagClass) {
5305
- const elementName = this.generateElementName(baseName, version);
5306
- const tag = i`${s(elementName)}`;
6551
+ renderLayoutDefault() {
5307
6552
 
5308
- if (!customElements.get(elementName)) {
5309
- customElements.define(elementName, class extends tagClass {});
5310
- }
6553
+ const fontSize = this.getFontSize();
6554
+ const tag = this.buttonHref ? i`a` : i`button`;
6555
+ const part = this.buttonHref ? 'link' : 'button';
5311
6556
 
5312
- return tag;
6557
+ const classes = {
6558
+ "auro-button": true,
6559
+ "inset": this.showText,
6560
+ wrapper: true,
6561
+ loading: this.loading,
6562
+ [`${fontSize}`]: true,
6563
+
6564
+ // These remove the default borders so we can handle focus borders ourselves
6565
+ 'simple': !['secondary'].includes(this.variant),
6566
+ 'thin': ['secondary'].includes(this.variant),
6567
+ };
6568
+
6569
+ const contentClasses = {
6570
+ "contentWrapper": true,
6571
+ "util_displayHiddenVisually": this.loading
6572
+ };
6573
+
6574
+ return u`
6575
+ <${tag}
6576
+ part="${part}"
6577
+ aria-label="${o(this.loading ? this.loadingText : this.currentAriaLabel || undefined)}"
6578
+ aria-labelledby="${o(this.loading ? undefined : this.currentAriaLabelledBy || undefined)}"
6579
+ tabindex="${o(this.tIndex || this.tabindex)}"
6580
+ ?autofocus="${this.autofocus}"
6581
+ class=${e(classes)}
6582
+ ?disabled="${this.disabled || this.loading}"
6583
+ ?onDark="${this.onDark}"
6584
+ title="${o(this.title ? this.title : undefined)}"
6585
+ name="${o(this.name ? this.name : undefined)}"
6586
+ type="${o(this.type ? this.type : undefined)}"
6587
+ variant="${o(this.variant ? this.variant : undefined)}"
6588
+ .value="${o(this.value ? this.value : undefined)}"
6589
+ @click="${this.type === 'submit' ? this.surfaceSubmitEvent : undefined}"
6590
+ href="${o(this.buttonHref || undefined)}"
6591
+ target="${o(this.buttonTarget || undefined)}"
6592
+ rel="${o(this.buttonRel || undefined)}"
6593
+ >
6594
+ ${o(this.loading ? u`<${this.loaderTag} pulse part="loader"></${this.loaderTag}>` : undefined)}
6595
+
6596
+ <span class="${e(contentClasses)}">
6597
+ <span class="textSlot" part="text">
6598
+ <slot></slot>
6599
+ </span>
6600
+ </span>
6601
+ </${tag}>
6602
+ `;
6603
+ }
6604
+
6605
+ /**
6606
+ * Renders the layout of the button.
6607
+ * @returns {TemplateResult}
6608
+ * @private
6609
+ */
6610
+ renderLayout() {
6611
+ return this.renderLayoutDefault();
5313
6612
  }
5314
6613
  }
5315
6614
 
6615
+ var buttonVersion = '11.3.0';
6616
+
5316
6617
  // Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
5317
6618
  // See LICENSE in the project root for license information.
5318
6619
 
@@ -5323,7 +6624,7 @@ class AuroDependencyVersioning {
5323
6624
  * @attr {Boolean} hiddenAudible - If present, the component will be hidden from screen readers, but seen visually
5324
6625
  */
5325
6626
 
5326
- let AuroElement$1 = class AuroElement extends i$2 {
6627
+ let AuroElement$2 = class AuroElement extends i$2 {
5327
6628
 
5328
6629
  // function to define props used within the scope of this component
5329
6630
  static get properties() {
@@ -5391,7 +6692,7 @@ var styleCss$1$1 = i$5`:focus:not(:focus-visible){outline:3px solid transparent}
5391
6692
  */
5392
6693
 
5393
6694
  // build the component class
5394
- let BaseIcon$1 = class BaseIcon extends AuroElement$1 {
6695
+ let BaseIcon$1 = class BaseIcon extends AuroElement$2 {
5395
6696
  constructor() {
5396
6697
  super();
5397
6698
  this.onDark = false;
@@ -5474,7 +6775,7 @@ var colorCss$4 = i$5`:host{color:var(--ds-auro-icon-color)}:host([customColor]){
5474
6775
 
5475
6776
  /* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
5476
6777
 
5477
- let AuroLibraryRuntimeUtils$2 = class AuroLibraryRuntimeUtils {
6778
+ let AuroLibraryRuntimeUtils$1$1 = class AuroLibraryRuntimeUtils {
5478
6779
 
5479
6780
  /* eslint-disable jsdoc/require-param */
5480
6781
 
@@ -5556,7 +6857,7 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
5556
6857
  */
5557
6858
  privateDefaults() {
5558
6859
  this.uri = 'https://cdn.jsdelivr.net/npm/@alaskaairux/icons@latest/dist';
5559
- this.runtimeUtils = new AuroLibraryRuntimeUtils$2();
6860
+ this.runtimeUtils = new AuroLibraryRuntimeUtils$1$1();
5560
6861
  }
5561
6862
 
5562
6863
  // function to define props used within the scope of this component
@@ -5638,7 +6939,7 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
5638
6939
  *
5639
6940
  */
5640
6941
  static register(name = "auro-icon") {
5641
- AuroLibraryRuntimeUtils$2.prototype.registerComponent(name, AuroIcon);
6942
+ AuroLibraryRuntimeUtils$1$1.prototype.registerComponent(name, AuroIcon);
5642
6943
  }
5643
6944
 
5644
6945
  connectedCallback() {
@@ -5659,8 +6960,12 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
5659
6960
  async firstUpdated() {
5660
6961
  await super.firstUpdated();
5661
6962
 
5662
- // Removes the SVG description for screenreader if ariaHidden is set to true
5663
- if (!this.hasAttribute('ariaHidden') && this.svg) {
6963
+ /**
6964
+ * icons provide a description for screen readers. Icon only instances Auro-button
6965
+ * depend on this description to provide context for the user using a screen reader.
6966
+ * Removes the SVG description for screen reader if ariaHidden is set to true.
6967
+ */
6968
+ if (this.hasAttribute('ariaHidden') && this.svg) {
5664
6969
  const svgDesc = this.svg.querySelector('desc');
5665
6970
 
5666
6971
  if (svgDesc) {
@@ -5704,7 +7009,77 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
5704
7009
  }
5705
7010
  };
5706
7011
 
5707
- var iconVersion$1 = '8.0.3';
7012
+ var iconVersion$1 = '8.0.4';
7013
+
7014
+ // Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
7015
+ // See LICENSE in the project root for license information.
7016
+
7017
+ // ---------------------------------------------------------------------
7018
+
7019
+ /* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
7020
+
7021
+ let AuroLibraryRuntimeUtils$4 = class AuroLibraryRuntimeUtils {
7022
+
7023
+ /* eslint-disable jsdoc/require-param */
7024
+
7025
+ /**
7026
+ * This will register a new custom element with the browser.
7027
+ * @param {String} name - The name of the custom element.
7028
+ * @param {Object} componentClass - The class to register as a custom element.
7029
+ * @returns {void}
7030
+ */
7031
+ registerComponent(name, componentClass) {
7032
+ if (!customElements.get(name)) {
7033
+ customElements.define(name, class extends componentClass {});
7034
+ }
7035
+ }
7036
+
7037
+ /**
7038
+ * Finds and returns the closest HTML Element based on a selector.
7039
+ * @returns {void}
7040
+ */
7041
+ closestElement(
7042
+ selector, // selector like in .closest()
7043
+ base = this, // extra functionality to skip a parent
7044
+ __Closest = (el, found = el && el.closest(selector)) =>
7045
+ !el || el === document || el === window
7046
+ ? null // standard .closest() returns null for non-found selectors also
7047
+ : found
7048
+ ? found // found a selector INside this element
7049
+ : __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
7050
+ ) {
7051
+ return __Closest(base);
7052
+ }
7053
+ /* eslint-enable jsdoc/require-param */
7054
+
7055
+ /**
7056
+ * 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.
7057
+ * @param {Object} elem - The element to check.
7058
+ * @param {String} tagName - The name of the Auro component to check for or add as an attribute.
7059
+ * @returns {void}
7060
+ */
7061
+ handleComponentTagRename(elem, tagName) {
7062
+ const tag = tagName.toLowerCase();
7063
+ const elemTag = elem.tagName.toLowerCase();
7064
+
7065
+ if (elemTag !== tag) {
7066
+ elem.setAttribute(tag, true);
7067
+ }
7068
+ }
7069
+
7070
+ /**
7071
+ * Validates if an element is a specific Auro component.
7072
+ * @param {Object} elem - The element to validate.
7073
+ * @param {String} tagName - The name of the Auro component to check against.
7074
+ * @returns {Boolean} - Returns true if the element is the specified Auro component.
7075
+ */
7076
+ elementMatch(elem, tagName) {
7077
+ const tag = tagName.toLowerCase();
7078
+ const elemTag = elem.tagName.toLowerCase();
7079
+
7080
+ return elemTag === tag || elem.hasAttribute(tag);
7081
+ }
7082
+ };
5708
7083
 
5709
7084
  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)}`;
5710
7085
 
@@ -5735,7 +7110,7 @@ class AuroHeader extends i$2 {
5735
7110
  /**
5736
7111
  * @private
5737
7112
  */
5738
- this.runtimeUtils = new AuroLibraryRuntimeUtils$1$1();
7113
+ this.runtimeUtils = new AuroLibraryRuntimeUtils$4();
5739
7114
  }
5740
7115
 
5741
7116
  // function to define props used within the scope of this component
@@ -5765,7 +7140,7 @@ class AuroHeader extends i$2 {
5765
7140
  *
5766
7141
  */
5767
7142
  static register(name = "auro-header") {
5768
- AuroLibraryRuntimeUtils$1$1.prototype.registerComponent(name, AuroHeader);
7143
+ AuroLibraryRuntimeUtils$4.prototype.registerComponent(name, AuroHeader);
5769
7144
  }
5770
7145
 
5771
7146
  firstUpdated() {
@@ -5861,17 +7236,30 @@ class AuroBibtemplate extends i$2 {
5861
7236
 
5862
7237
  this.large = false;
5863
7238
 
5864
- AuroLibraryRuntimeUtils$1$1.prototype.handleComponentTagRename(this, 'auro-bibtemplate');
7239
+ AuroLibraryRuntimeUtils$3.prototype.handleComponentTagRename(this, 'auro-bibtemplate');
5865
7240
 
5866
7241
  const versioning = new AuroDependencyVersioning();
7242
+
7243
+ /**
7244
+ * @private
7245
+ */
5867
7246
  this.iconTag = versioning.generateTag('auro-formkit-bibtemplate-icon', iconVersion$1, AuroIcon$1);
7247
+
7248
+ /**
7249
+ * @private
7250
+ */
5868
7251
  this.headerTag = versioning.generateTag('auro-formkit-bibtemplate-header', headerVersion, AuroHeader);
7252
+
7253
+ /**
7254
+ * @private
7255
+ */
7256
+ this.buttonTag = versioning.generateTag('auro-formkit-bibtemplate-button', buttonVersion, AuroButton);
5869
7257
  }
5870
7258
 
5871
7259
  static get styles() {
5872
7260
  return [
5873
- colorCss$1$1,
5874
- styleCss$2$1,
7261
+ colorCss$3$1,
7262
+ styleCss$4$1,
5875
7263
  tokenCss
5876
7264
  ];
5877
7265
  }
@@ -5900,7 +7288,7 @@ class AuroBibtemplate extends i$2 {
5900
7288
  *
5901
7289
  */
5902
7290
  static register(name = "auro-bibtemplate") {
5903
- AuroLibraryRuntimeUtils$1$1.prototype.registerComponent(name, AuroBibtemplate);
7291
+ AuroLibraryRuntimeUtils$3.prototype.registerComponent(name, AuroBibtemplate);
5904
7292
  }
5905
7293
 
5906
7294
  /**
@@ -5958,9 +7346,9 @@ class AuroBibtemplate extends i$2 {
5958
7346
  <div id="bibTemplate" part="bibtemplate">
5959
7347
  ${this.isFullscreen ? u`
5960
7348
  <div id="headerContainer">
5961
- <button id="closeButton" @click="${this.onCloseButtonClick}">
7349
+ <${this.buttonTag} id="closeButton" aria-label="Close" variant="ghost" shape="circle" size="sm" @click="${this.onCloseButtonClick}">
5962
7350
  <${this.iconTag} category="interface" name="x-lg"></${this.iconTag}>
5963
- </button>
7351
+ </${this.buttonTag}>
5964
7352
  <${this.headerTag} display="${this.large ? 'display' : '600'}" level="3" size="none" id="header" no-margin-block>
5965
7353
  <slot name="header"></slot>
5966
7354
  </${this.headerTag}>
@@ -5984,9 +7372,9 @@ class AuroBibtemplate extends i$2 {
5984
7372
 
5985
7373
  var bibTemplateVersion = '1.0.0';
5986
7374
 
5987
- var colorCss$3 = i$5`:host([error]){--ds-auro-helptext-color: var(--ds-basic-color-status-error, #e31f26)}:host([onDark]){--ds-auro-helptext-color: var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}:host([onDark][error]){--ds-auro-helptext-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8)}.helptext-wrapper{color:var(--ds-auro-helptext-color)}`;
7375
+ var colorCss$3 = i$5`:host([error]){--ds-auro-helptext-color: var(--ds-basic-color-status-error, #e31f26)}:host([onDark]){--ds-auro-helptext-color: var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}:host([onDark][error]){--ds-auro-helptext-color: var(--ds-basic-color-status-error-subtle, #fbc6c6)}.helptext-wrapper{color:var(--ds-auro-helptext-color)}`;
5988
7376
 
5989
- var styleCss$4 = i$5`.helptext-wrapper{display:none;font-size:var(--ds-basic-text-body-xs-font-size, 12px);font-weight:var(--ds-basic-text-body-xs-font-weight, 450);letter-spacing:var(--ds-basic-text-body-xs-letter-spacing, 0);line-height:var(--ds-basic-text-body-xs-line-height, 16px)}:host([large]) .helptext-wrapper{font-size:var(--ds-basic-text-body-default-font-size, 16px);font-weight:var(--ds-basic-text-body-default-font-weight, 450);letter-spacing:var(--ds-basic-text-body-default-letter-spacing, 0);line-height:var(--ds-basic-text-body-default-line-height, 24px)}.helptext-wrapper[visible]{display:block}::slotted(*:not(:empty)){margin-top:var(--ds-size-50, 0.25rem);margin-bottom:0}::slotted(p){margin-block:0}`;
7377
+ var styleCss$4 = i$5`:host{position:relative;display:block}.helptext-wrapper{display:none;font-size:12px;font-weight:450;letter-spacing:0;line-height:16px}:host([large]) .helptext-wrapper{font-size:16px;font-weight:450;letter-spacing:0;line-height:24px}.helptext-wrapper[visible]{display:block}::slotted(*:not(:empty)){margin-top:var(--ds-size-50, 0.25rem);margin-bottom:0}::slotted(p){margin-block:0}`;
5990
7378
 
5991
7379
  var tokensCss$2 = i$5`:host{--ds-auro-helptext-color: var(--ds-basic-color-texticon-muted, #676767)}`;
5992
7380
 
@@ -6192,68 +7580,7 @@ class AuroHelpText extends i$2 {
6192
7580
 
6193
7581
  var helpTextVersion = '1.0.0';
6194
7582
 
6195
- i$5`:focus:not(:focus-visible){outline:3px solid transparent}:host{display:inline-block;width:100%;margin:0;padding:0;vertical-align:middle}:host ::slotted(auro-menuoption),:host ::slotted([auro-menuoption]),:host auro-menuoption[loadingplaceholder]{padding-left:calc(var(--ds-size-150, 0.75rem) + 24px + var(--ds-size-100, 0.5rem))}:host ::slotted([selected]){padding-left:0}:host ::slotted(hr){box-sizing:content-box !important;height:0 !important;overflow:visible !important;margin:var(--ds-size-100, 0.5rem) 0 !important;border-width:0 !important;border-top-width:1px !important;border-top-style:solid !important}:host([nocheckmark]) ::slotted(auro-menuoption),:host([nocheckmark]) auro-menuoption[loadingplaceholder]{padding-left:var(--ds-size-200, 1rem)}:host([root]){overflow-y:auto}[loadingplaceholder].empty{opacity:0;position:absolute}[loadingplaceholder] slot[name=loadingIcon]{vertical-align:middle;line-height:1;display:inline-block}[loadingplaceholder] slot[name=loadingIcon]::slotted(*){margin-right:var(--ds-size-150, 0.75rem)}`;
6196
-
6197
- i$5`:host ::slotted(hr){border-top-color:var(--ds-auro-menu-divider-color)}[loadingplaceholder] slot[name=loadingIcon]{color:var(--ds-auro-menu-loader-color)}[loadingplaceholder] slot[name=loadingText]{color:var(--ds-auro-menu-loader-text-color)}`;
6198
-
6199
- i$5`:host{--ds-auro-menu-divider-color: var(--ds-basic-color-border-divider, rgba(0, 0, 0, 0.15));--ds-auro-menu-loader-color: var(--ds-basic-color-brand-primary, #01426a);--ds-auro-menu-loader-text-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-menuoption-container-color: transparent;--ds-auro-menuoption-icon-color: transparent;--ds-auro-menuoption-text-color: var(--ds-basic-color-texticon-default, #2a2a2a)}`;
6200
-
6201
- // Copyright (c) 2021 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
6202
- // See LICENSE in the project root for license information.
6203
-
6204
- // ---------------------------------------------------------------------
6205
-
6206
- /**
6207
- * Converts value to an array.
6208
- * If the value is a JSON string representing an array, it will be parsed.
6209
- * If the value is already an array, it is returned.
6210
- * If the value is undefined, it returns undefined.
6211
- * @private
6212
- * @param {any} value - The value to be converted. Can be a string, array, or undefined.
6213
- * @returns {Array|undefined} - The converted array or undefined.
6214
- * @throws {Error} - Throws an error if the value is not an array, undefined,
6215
- * or if the value cannot be parsed into an array from a JSON string.
6216
- */
6217
- function arrayConverter(value) {
6218
- // Allow undefined
6219
- if (value === undefined) {
6220
- return undefined;
6221
- }
6222
-
6223
- // Return the value if it is already an array
6224
- if (Array.isArray(value)) {
6225
- return value;
6226
- }
6227
-
6228
- try {
6229
- // If value is a JSON string, parse it
6230
- const parsed = typeof value === 'string' ? JSON.parse(value) : value;
6231
-
6232
- // Check if the parsed value is an array
6233
- if (Array.isArray(parsed)) {
6234
- return parsed;
6235
- }
6236
- } catch (error) {
6237
- // If JSON parsing fails, continue to throw an error below
6238
- /* eslint-disable no-console */
6239
- console.error('JSON parsing failed:', error);
6240
- }
6241
-
6242
- // Throw error if the input is not an array or undefined
6243
- throw new Error('Invalid value: Input must be an array or undefined');
6244
- }
6245
-
6246
- i$5`:host{display:flex;align-items:center;padding:var(--ds-size-50, 0.25rem) var(--ds-size-200, 1rem) var(--ds-size-50, 0.25rem) 0;cursor:pointer;user-select:none;-webkit-tap-highlight-color:transparent}:host slot{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}:host [auro-icon]{--ds-auro-icon-size: var(--ds-size-300, 1.5rem);margin-right:var(--ds-size-150, 0.75rem);margin-left:var(--ds-size-100, 0.5rem)}:host ::slotted(.nestingSpacer){display:inline-block;width:var(--ds-size-300, 1.5rem)}:host ::slotted(strong){font-weight:700}:host([hidden]){display:none}:host([static]){pointer-events:none}:host([disabled]:hover){cursor:auto}:host([disabled]){user-select:none;pointer-events:none}`;
6247
-
6248
- i$5`:host{background-color:var(--ds-auro-menuoption-container-color);color:var(--ds-auro-menuoption-text-color)}:host svg{fill:var(--ds-auro-menuoption-icon-color)}:host([disabled]){--ds-auro-menuoption-text-color: var(--ds-basic-color-texticon-disabled, #d0d0d0)}:host(:hover),:host(.active){--ds-auro-menuoption-container-color: var(--ds-basic-color-surface-neutral-subtle, #f7f7f7)}:host([selected]){--ds-auro-menuoption-container-color: var(--ds-advanced-color-state-selected, #01426a);--ds-auro-menuoption-text-color: var(--ds-basic-color-texticon-inverse, #ffffff);--ds-auro-menuoption-icon-color: var(--ds-basic-color-texticon-inverse, #ffffff)}:host([selected]):host(:hover),:host([selected]):host(.active){--ds-auro-menuoption-container-color: var(--ds-advanced-color-state-selected-hover, #00274a)}`;
6249
-
6250
- i$5`:focus:not(:focus-visible){outline:3px solid transparent}.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock,:host{display:block}.util_displayFlex{display:flex}.util_displayHidden,:host([hidden]:not(:focus):not(:active)){display:none}.util_displayHiddenVisually,:host([hiddenVisually]:not(:focus):not(:active)){position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}.ico_squareLarge{fill:currentColor;height:var(--auro-size-lg, var(--ds-size-300, 1.5rem))}.ico_squareSmall{fill:currentColor;height:.6rem}.ico_squareMed{fill:currentColor;height:var(--auro-size-md, var(--ds-size-200, 1rem))}.ico_squareSml{fill:currentColor;height:var(--auro-size-sm, var(--ds-size-150, 0.75rem))}:host{color:currentColor;vertical-align:middle;line-height:1;display:inline-block}svg{min-width:var(--ds-auro-icon-size, 1.5rem) !important;width:var(--ds-auro-icon-size, 1.5rem) !important;height:var(--ds-auro-icon-size, 1.5rem) !important}.componentWrapper{display:flex}.svgWrapper{height:var(--ds-auro-icon-size);width:var(--ds-auro-icon-size)}.labelWrapper{margin-left:var(--ds-size-50, 0.25rem);line-height:1.8}`;
6251
-
6252
- i$5`:host{--ds-auro-icon-color:var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-alaska-color:#02426D;--ds-auro-icon-size:var(--ds-size-300, 1.5rem)}`;
6253
-
6254
- i$5`:host{color:var(--ds-auro-icon-color)}:host([customColor]){color:inherit}:host(:not([onDark])[variant=accent1]){--ds-auro-icon-color:var(--ds-basic-color-texticon-accent1, #265688)}:host(:not([onDark])[variant=disabled]){--ds-auro-icon-color:var(--ds-basic-color-texticon-disabled, #d0d0d0)}:host(:not([onDark])[variant=muted]){--ds-auro-icon-color:var(--ds-basic-color-texticon-muted, #676767)}:host(:not([onDark])[variant=statusDefault]){--ds-auro-icon-color:var(--ds-basic-color-status-default, #afb9c6)}:host(:not([onDark])[variant=statusInfo]){--ds-auro-icon-color:var(--ds-basic-color-status-info, #01426a)}:host(:not([onDark])[variant=statusSuccess]){--ds-auro-icon-color:var(--ds-basic-color-status-success, #447a1f)}:host(:not([onDark])[variant=statusWarning]){--ds-auro-icon-color:var(--ds-basic-color-status-warning, #fac200)}:host(:not([onDark])[variant=statusError]){--ds-auro-icon-color:var(--ds-basic-color-status-error, #e31f26)}:host(:not([onDark])[variant=statusInfoSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-info-subtle, #ebf3f9)}:host(:not([onDark])[variant=statusSuccessSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-success-subtle, #d6eac7)}:host(:not([onDark])[variant=statusWarningSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-warning-subtle, #fff0b2)}:host(:not([onDark])[variant=statusErrorSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-error-subtle, #fbc6c6)}:host(:not([onDark])[variant=fareBasicEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-basiceconomy, #97eaf8)}:host(:not([onDark])[variant=fareBusiness]){--ds-auro-icon-color:var(--ds-basic-color-fare-business, #01426a)}:host(:not([onDark])[variant=fareEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-economy, #0074ca)}:host(:not([onDark])[variant=fareFirst]){--ds-auro-icon-color:var(--ds-basic-color-fare-first, #00274a)}:host(:not([onDark])[variant=farePremiumEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-premiumeconomy, #005154)}:host(:not([onDark])[variant=tierOneWorldEmerald]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-emerald, #139142)}:host(:not([onDark])[variant=tierOneWorldSapphire]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-sapphire, #015daa)}:host(:not([onDark])[variant=tierOneWorldRuby]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-ruby, #a41d4a)}:host([onDark]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse, #ffffff)}:host([onDark][variant=disabled]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}:host([onDark][variant=muted]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}:host([onDark][variant=statusError]){--ds-auro-icon-color:var(--ds-advanced-color-state-error-inverse, #f9a4a8)}`;
6255
-
6256
- var styleCss$3 = i$5`.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock{display:block}.util_displayFlex{display:flex}.util_displayHidden{display:none}.util_displayHiddenVisually{position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}[auro-dropdown]{--ds-auro-dropdown-trigger-border-color: var(--ds-auro-select-border-color);--ds-auro-dropdown-trigger-background-color: var(--ds-auro-select-background-color);--ds-auro-dropdown-trigger-container-color: var(--ds-auro-select-background-color)}.mainContent{position:relative;display:flex;flex-direction:column;justify-content:center;align-items:center;flex:1}.valueContainer [slot=displayValue]{display:none}.accents{display:flex;flex-direction:row;justify-content:center;align-items:center}::slotted([slot=typeIcon]){margin-right:8px}.displayValue{display:block}.displayValue:not(.force){display:none}.displayValue:not(.force).hasContent:is(.withValue):not(.hasFocus){display:block}.triggerContent{display:flex;align-items:center;justify-content:center;width:100%;padding:0 8px 0 24px}.layout-emphasized .triggerContent,.layout-snowflake .triggerContent{display:flex;align-items:center;justify-content:center;width:100%;padding:0 8px 0 24px}.layout-classic .triggerContent{display:flex;align-items:center;justify-content:center;width:100%;padding:0 8px 0 24px}:host(:is([validity]:not([validity=valid]))) [auro-dropdown]{--ds-auro-select-border-color: var(--ds-basic-color-status-error, #e31f26);--ds-auro-dropdown-helptext-text-color: var(--ds-basic-color-texticon-default, #2a2a2a)}:host([ondark]:is([validity]:not([validity=valid]))) [auro-dropdown]{--ds-auro-select-border-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8);--ds-auro-dropdown-helptext-text-color: var(--ds-basic-color-texticon-inverse, #ffffff)}#slotHolder{display:none}:host([disabled]) *{user-select:none}`;
7583
+ var styleCss$3 = i$5`.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock{display:block}.util_displayFlex{display:flex}.util_displayHidden{display:none}.util_displayHiddenVisually{position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}[auro-dropdown]{--ds-auro-dropdown-trigger-border-color: var(--ds-auro-select-border-color);--ds-auro-dropdown-trigger-background-color: var(--ds-auro-select-background-color);--ds-auro-dropdown-trigger-container-color: var(--ds-auro-select-background-color)}:host{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*=snowflake]) [auro-dropdown] label.withValue{font-size:var(--ds-text-body-size-xs);line-height:20px}:host([layout*=emphasized]) [auro-dropdown] label.withValue{font-size:var(--ds-text-body-size-xs);line-height:20px}:host([layout*=classic]) .triggerContent{padding:0 var(--ds-size-100, 0.5rem)}:host([layout*=classic]) .mainContent{align-items:start}:host([layout*=classic]) label{overflow:hidden;cursor:text;font-size:16px;font-weight:450;letter-spacing:0;line-height:24px;text-overflow:ellipsis;white-space:nowrap}:host([layout*=classic]) label.withValue{font-size:12px;font-weight:450;letter-spacing:0;line-height:16px}:host([layout*=classic]) .value{height:auto;font-size:16px;font-weight:450;letter-spacing:0;line-height:24px}:host(:is([validity]:not([validity=valid]))) [auro-dropdown]{--ds-auro-select-border-color: var(--ds-basic-color-status-error, #e31f26);--ds-auro-dropdown-helptext-text-color: var(--ds-basic-color-texticon-default, #2a2a2a)}:host([ondark]:is([validity]:not([validity=valid]))) [auro-dropdown]{--ds-auro-select-border-color: var(--ds-basic-color-status-error-subtle, #fbc6c6);--ds-auro-dropdown-helptext-text-color: var(--ds-basic-color-texticon-inverse, #ffffff)}#slotHolder{display:none}:host([disabled]){pointer-events:none;user-select:none}:host([disabled]:not([ondark])) [auro-dropdown]{--ds-auro-select-border-color: var(--ds-basic-color-border-subtle, #dddddd)}:host(:not([layout*=classic])[disabled][ondark]) [auro-dropdown]{--ds-auro-select-border-color: transparent}`;
6257
7584
 
6258
7585
  // Copyright (c) 2021 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
6259
7586
  // See LICENSE in the project root for license information.
@@ -6266,9 +7593,10 @@ var styleCss$3 = i$5`.util_displayInline{display:inline}.util_displayInlineBlock
6266
7593
  * @slot - Default slot for the menu content.
6267
7594
  * @slot bib.fullscreen.headline - Defines the headline to display above menu-options
6268
7595
  * @slot label - Defines the content of the label.
7596
+ * @slot {HTMLSlotElement} optionalLabel - Allows overriding the optional display text "(optional)", which appears next to the label.
6269
7597
  * @slot helpText - Defines the content of the helpText.
6270
- * @slot placeholder - Defines the content of the placeholder to be shown when there is no value
6271
7598
  * @slot valueText - Dropdown value text display.
7599
+ * @slot displayValue - Allows custom HTML content to display the selected value when select is not focused.
6272
7600
  * @event auroSelect-valueSet - Notifies that the component has a new value set.
6273
7601
  * @event input - Notifies every time the value prop of the element is changed. The updated `value` and `optionSelected` will be delivered in `detail` object.
6274
7602
  * @event auroFormElement-validated - Notifies that the `validity` and `errorMessage` values have changed.
@@ -6276,7 +7604,7 @@ var styleCss$3 = i$5`.util_displayInline{display:inline}.util_displayInlineBlock
6276
7604
  */
6277
7605
 
6278
7606
  // build the component class
6279
- class AuroSelect extends AuroElement$3 {
7607
+ class AuroSelect extends AuroElement$4 {
6280
7608
  constructor() {
6281
7609
  super();
6282
7610
 
@@ -6286,11 +7614,11 @@ class AuroSelect extends AuroElement$3 {
6286
7614
  const idSubstrEnd = 8;
6287
7615
  const idSubstrStart = 2;
6288
7616
 
6289
- this.matchWidth = true;
7617
+ this.matchWidth = false;
6290
7618
 
6291
7619
  // Layout Config
6292
- this.layout = 'classic';
6293
- this.shape = 'classic';
7620
+ this.layout = 'snowflake';
7621
+ this.shape = 'snowflake';
6294
7622
  this.size = 'xl';
6295
7623
 
6296
7624
  // floaterConfig
@@ -6301,6 +7629,10 @@ class AuroSelect extends AuroElement$3 {
6301
7629
 
6302
7630
  this.forceDisplayValue = false;
6303
7631
 
7632
+ this.layout = 'classic';
7633
+ this.shape = 'classic';
7634
+ this.size = 'xl';
7635
+
6304
7636
  /**
6305
7637
  * @private
6306
7638
  */
@@ -6316,7 +7648,7 @@ class AuroSelect extends AuroElement$3 {
6316
7648
  /**
6317
7649
  * @private
6318
7650
  */
6319
- this.runtimeUtils = new AuroLibraryRuntimeUtils$4();
7651
+ this.runtimeUtils = new AuroLibraryRuntimeUtils$6();
6320
7652
 
6321
7653
  /**
6322
7654
  * Generate unique names for dependency components.
@@ -6431,14 +7763,6 @@ class AuroSelect extends AuroElement$3 {
6431
7763
  reflect: true
6432
7764
  },
6433
7765
 
6434
- /**
6435
- * If set, makes dropdown width match the size of the content, rather than the width of the trigger.
6436
- */
6437
- flexMenuWidth: {
6438
- type: Boolean,
6439
- reflect: true
6440
- },
6441
-
6442
7766
  /**
6443
7767
  * Defines the screen size breakpoint (`xs`, `sm`, `md`, `lg`, `xl`, `disabled`)
6444
7768
  * at which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.
@@ -6532,7 +7856,7 @@ class AuroSelect extends AuroElement$3 {
6532
7856
  * "top" | "right" | "bottom" | "left" |
6533
7857
  * "bottom-start" | "top-start" | "top-end" |
6534
7858
  * "right-start" | "right-end" | "bottom-end" |
6535
- * "left-start" | "left-end"
7859
+ * "left-start" | "left-end".
6536
7860
  * @default bottom-start
6537
7861
  */
6538
7862
  placement: {
@@ -6540,6 +7864,14 @@ class AuroSelect extends AuroElement$3 {
6540
7864
  reflect: true
6541
7865
  },
6542
7866
 
7867
+ /**
7868
+ * Define custom placeholder text.
7869
+ */
7870
+ placeholder: {
7871
+ type: String,
7872
+ reflect: true
7873
+ },
7874
+
6543
7875
  /**
6544
7876
  * Populates the `required` attribute on the element. Used for client-side validation.
6545
7877
  */
@@ -6586,11 +7918,12 @@ class AuroSelect extends AuroElement$3 {
6586
7918
  },
6587
7919
 
6588
7920
  /**
6589
- * Value selected for the component. Default type is `String`, changing to `Array<String>` when `multiSelect` is true.
6590
- * @type {String|Array<String>}
7921
+ * Value selected for the component.
6591
7922
  */
6592
7923
  value: {
6593
- type: Object
7924
+ type: String,
7925
+ reflect: true,
7926
+ attribute: 'value'
6594
7927
  },
6595
7928
 
6596
7929
  /**
@@ -6642,10 +7975,42 @@ class AuroSelect extends AuroElement$3 {
6642
7975
  ];
6643
7976
  }
6644
7977
 
7978
+ /**
7979
+ * Formatted value based on `multiSelect` state.
7980
+ * Default type is `String`, changing to `Array<String>` when `multiSelect` is true.
7981
+ * @private
7982
+ * @returns {String|Array<String>}
7983
+ */
7984
+ get formattedValue() {
7985
+ if (this.multiSelect) {
7986
+ if (!this.value) {
7987
+ return undefined;
7988
+ }
7989
+ if (this.value.startsWith("[")) {
7990
+ return JSON.parse(this.value);
7991
+ }
7992
+ return [this.value];
7993
+ }
7994
+ return this.value;
7995
+ }
7996
+
7997
+ /**
7998
+ * Returns classmap configuration for html5 input labels in all layouts.
7999
+ * @private
8000
+ * @returns {void}
8001
+ */
8002
+ get commonLabelClasses() {
8003
+ return {
8004
+ 'is-disabled': this.disabled,
8005
+ 'withValue': this.placeholder || (this.value && this.value.length > 0), // eslint-disable-line no-extra-parens
8006
+ 'util_displayHiddenVisually': this.hasDisplayValueContent && !this.hasFocus && this.value && this.value.length > 0
8007
+ };
8008
+ }
8009
+
6645
8010
  /**
6646
8011
  * Returns classmap configuration for wrapper elements in each layout.
6647
8012
  * @private
6648
- * @return {object} - Returns classmap.
8013
+ * @returns {object} - Returns classmap.
6649
8014
  */
6650
8015
  get commonWrapperClasses() {
6651
8016
  return {
@@ -6663,10 +8028,25 @@ class AuroSelect extends AuroElement$3 {
6663
8028
 
6664
8029
  this.dropdown.addEventListener('auroDropdown-toggled', () => {
6665
8030
  this.isPopoverVisible = this.dropdown.isPopoverVisible;
8031
+
8032
+ if (this.dropdown.isPopoverVisible) {
8033
+ // wait til the bib gets fully rendered
8034
+ setTimeout(() => {
8035
+ if (this.dropdown.isBibFullscreen) {
8036
+ // trigger holds the focus since menu is not a focusable element.
8037
+ this.dropdown.trigger.focus();
8038
+
8039
+ // default focus indicator on the first menu option
8040
+ if (this.menu.index < 0) {
8041
+ this.menu.navigateOptions('down');
8042
+ }
8043
+ }
8044
+ });
8045
+ }
6666
8046
  });
6667
8047
 
6668
8048
  // setting up bibtemplate
6669
- this.bibtemplate = this.dropdown.querySelector(this.bibtemplateTag._$litStatic$); // eslint-disable-line no-underscore-dangle
8049
+ this.bibtemplate = this.dropdown.querySelector(this.bibtemplateTag._$litStatic$);
6670
8050
 
6671
8051
  if (this.customBibWidth) {
6672
8052
  this.dropdown.dropdownWidth = this.customBibWidth;
@@ -6685,7 +8065,7 @@ class AuroSelect extends AuroElement$3 {
6685
8065
  *
6686
8066
  */
6687
8067
  static register(name = "auro-select") {
6688
- AuroLibraryRuntimeUtils$4.prototype.registerComponent(name, AuroSelect);
8068
+ AuroLibraryRuntimeUtils$6.prototype.registerComponent(name, AuroSelect);
6689
8069
  }
6690
8070
 
6691
8071
  /**
@@ -6745,6 +8125,15 @@ class AuroSelect extends AuroElement$3 {
6745
8125
  return;
6746
8126
  }
6747
8127
 
8128
+ // set menu's default size if there it's not specified.
8129
+ if (!this.menu.getAttribute('size')) {
8130
+ this.menu.setAttribute('size', this.layout !== 'emphasized' ? 'md' : this.size);
8131
+ }
8132
+
8133
+ if (!this.getAttribute('shape')) {
8134
+ this.menu.setAttribute('shape', this.layout === 'classic' ? 'box' : this.shape);
8135
+ }
8136
+
6748
8137
  if (this.multiSelect) {
6749
8138
  this.menu.multiSelect = this.multiSelect;
6750
8139
  }
@@ -6804,46 +8193,58 @@ class AuroSelect extends AuroElement$3 {
6804
8193
  configureSelect() {
6805
8194
 
6806
8195
  this.addEventListener('keydown', (evt) => {
6807
- if (evt.key === 'ArrowUp') {
6808
- evt.preventDefault();
8196
+ // when the focus is on trigger not on close button
8197
+ if (this.dropdown.shadowRoot.activeElement === this.dropdown.trigger) {
8198
+ if (evt.key === 'ArrowUp') {
8199
+ evt.preventDefault();
6809
8200
 
6810
- this.dropdown.show();
8201
+ this.dropdown.show();
8202
+
8203
+ if (this.dropdown.isPopoverVisible) {
8204
+ this.menu.navigateOptions('up');
8205
+ }
6811
8206
 
6812
- if (this.dropdown.isPopoverVisible) {
6813
- this.menu.navigateOptions('up');
8207
+ return;
6814
8208
  }
6815
8209
 
6816
- return;
6817
- }
8210
+ if (evt.key === 'ArrowDown') {
8211
+ evt.preventDefault();
6818
8212
 
6819
- if (evt.key === 'ArrowDown') {
6820
- evt.preventDefault();
8213
+ this.dropdown.show();
6821
8214
 
6822
- this.dropdown.show();
8215
+ if (this.dropdown.isPopoverVisible) {
8216
+ this.menu.navigateOptions('down');
8217
+ }
6823
8218
 
6824
- if (this.dropdown.isPopoverVisible) {
6825
- this.menu.navigateOptions('down');
8219
+ return;
6826
8220
  }
6827
8221
 
6828
- return;
6829
- }
8222
+ if (evt.key === 'Enter') {
8223
+ if (!this.dropdown.isPopoverVisible) {
8224
+ evt.preventDefault();
8225
+ this.menu.makeSelection();
8226
+ }
6830
8227
 
6831
- if (evt.key === 'Enter') {
6832
- if (!this.dropdown.isPopoverVisible) {
6833
- evt.preventDefault();
6834
- this.menu.makeSelection();
8228
+ return;
6835
8229
  }
6836
-
6837
- return;
6838
8230
  }
6839
8231
 
6840
- if (evt.key === 'Tab') {
8232
+ if (evt.key === 'Tab' && this.dropdown.isPopoverVisible) {
6841
8233
  if (this.dropdown.isBibFullscreen) {
6842
8234
  evt.preventDefault();
8235
+
8236
+ // when the focus is on trigger not on close button
8237
+ if (this.dropdown.shadowRoot.activeElement === this.dropdown.trigger) {
8238
+ // `dropdown.focus` will move focus to the first focusable element in bib when it's open,
8239
+ // when bib it not open, it will focus onto trigger.
8240
+ this.dropdown.focus();
8241
+ } else {
8242
+ // when close button has the focus, move focus back to the trigger
8243
+ this.dropdown.trigger.focus();
8244
+ }
6843
8245
  } else {
6844
8246
  this.dropdown.hide();
6845
8247
  }
6846
-
6847
8248
  return;
6848
8249
  }
6849
8250
 
@@ -6924,6 +8325,26 @@ class AuroSelect extends AuroElement$3 {
6924
8325
  }
6925
8326
  }
6926
8327
 
8328
+ /**
8329
+ * Hides the dropdown bib if its open.
8330
+ * @returns {void}
8331
+ */
8332
+ hideBib() {
8333
+ if (this.dropdown && this.dropdown.isPopoverVisible) {
8334
+ this.dropdown.hide();
8335
+ }
8336
+ }
8337
+
8338
+ /**
8339
+ * Shows the dropdown bib if there are options to show.
8340
+ * @returns {void}
8341
+ */
8342
+ showBib() {
8343
+ if (this.dropdown && !this.dropdown.isPopoverVisible) {
8344
+ this.dropdown.show();
8345
+ }
8346
+ }
8347
+
6927
8348
  /**
6928
8349
  * Function to support @focusin event.
6929
8350
  * @private
@@ -7008,34 +8429,39 @@ class AuroSelect extends AuroElement$3 {
7008
8429
  // Add the tag name as an attribute if it is different than the component name
7009
8430
  this.runtimeUtils.handleComponentTagRename(this, 'auro-select');
7010
8431
 
7011
- this.configureMenu();
7012
8432
  this.configureDropdown();
8433
+ this.configureMenu();
7013
8434
  this.configureSelect();
8435
+ }
7014
8436
 
7015
- // Set the initial value in auro-menu if defined
7016
- if (this.hasAttribute('value') && this.getAttribute('value').length > 0) {
7017
- this.value = this.multiSelect ? arrayConverter(this.getAttribute('value')) : this.getAttribute('value');
7018
- this.menu.value = this.value;
7019
- }
8437
+ /**
8438
+ * Update the menu value. With checks for menu existence. Awaits value update.
8439
+ * @param {string} value - The value to set in the menu.
8440
+ * @returns {void}
8441
+ * @private
8442
+ */
8443
+ async updateMenuValue(value) {
8444
+ if (!this.menu) return;
8445
+
8446
+ this.menu.setAttribute('value', value);
8447
+ this.menu.value = value;
8448
+ await this.menu.updateComplete;
7020
8449
  }
7021
8450
 
7022
8451
  async updated(changedProperties) {
7023
- if (changedProperties.has('multiSelect')) {
8452
+ if (changedProperties.has('multiSelect') && !changedProperties.has('value')) {
7024
8453
  this.clearSelection();
7025
8454
  }
7026
8455
 
7027
8456
  if (changedProperties.has('value')) {
7028
8457
  if (this.value) {
7029
- this.value = this.multiSelect ? arrayConverter(this.value) : this.value;
8458
+ await this.updateMenuValue(this.value);
7030
8459
 
7031
- this.menu.value = this.value;
7032
-
7033
- // Wait for menu to finish updating its value
7034
- await this.menu.updateComplete;
7035
-
7036
- this.optionSelected = this.menu.optionSelected;
8460
+ if (this.menu) {
8461
+ this.optionSelected = this.menu.optionSelected;
8462
+ }
7037
8463
  } else {
7038
- this.menu.value = undefined;
8464
+ await this.updateMenuValue(undefined);
7039
8465
  }
7040
8466
 
7041
8467
  this._updateNativeSelect();
@@ -7054,7 +8480,7 @@ class AuroSelect extends AuroElement$3 {
7054
8480
  composed: true,
7055
8481
  detail: {
7056
8482
  optionSelected: this.optionSelected,
7057
- value: this.value
8483
+ value: this.formattedValue
7058
8484
  }
7059
8485
  }));
7060
8486
  }
@@ -7066,6 +8492,14 @@ class AuroSelect extends AuroElement$3 {
7066
8492
  if (changedProperties.has('error')) {
7067
8493
  this.validate(true);
7068
8494
  }
8495
+
8496
+ if (changedProperties.has('shape') && this.menu) {
8497
+ this.menu.setAttribute('shape', this.layout === 'classic' ? 'box' : this.shape);
8498
+ }
8499
+
8500
+ if (changedProperties.has('size') && this.menu) {
8501
+ this.menu.setAttribute('size', this.layout !== 'emphasized' ? 'md' : this.size);
8502
+ }
7069
8503
  }
7070
8504
 
7071
8505
  /**
@@ -7076,16 +8510,6 @@ class AuroSelect extends AuroElement$3 {
7076
8510
  this.validation.reset(this);
7077
8511
  }
7078
8512
 
7079
- /**
7080
- * Hide dropdownbib.
7081
- * @private
7082
- */
7083
- hideBib() {
7084
- if (this.dropdown) {
7085
- this.dropdown.hide();
7086
- }
7087
- }
7088
-
7089
8513
  /**
7090
8514
  * Validates value.
7091
8515
  * @param {boolean} [force=false] - Whether to force validation.
@@ -7105,13 +8529,13 @@ class AuroSelect extends AuroElement$3 {
7105
8529
  const selectedValue = selectedOption.value;
7106
8530
 
7107
8531
  if (this.multiSelect) {
7108
- const currentArray = Array.isArray(this.value) ? this.value : [];
8532
+ const currentArray = this.formattedValue;
7109
8533
 
7110
8534
  if (!currentArray.includes(selectedValue)) {
7111
- this.value = [
8535
+ this.value = JSON.stringify([
7112
8536
  ...currentArray,
7113
8537
  selectedValue
7114
- ];
8538
+ ]);
7115
8539
  }
7116
8540
  } else {
7117
8541
  const currentValue = this.value;
@@ -7134,12 +8558,17 @@ class AuroSelect extends AuroElement$3 {
7134
8558
  }
7135
8559
 
7136
8560
  if (this.multiSelect) {
7137
- nativeSelect.value = this.value ? this.value[0] : '';
8561
+ nativeSelect.value = this.multiSelect ? this.multiSelect[0] : '';
7138
8562
  } else {
7139
8563
  nativeSelect.value = this.value || '';
7140
8564
  }
7141
8565
  }
7142
8566
 
8567
+ /**
8568
+ * Returns HTML for the hidden a11y screen reader content.
8569
+ * @private
8570
+ * @returns {html} - Returns HTML for the hidden a11y screen reader content.
8571
+ */
7143
8572
  renderAriaHtml() {
7144
8573
  return u`
7145
8574
  <div aria-live="polite" class="util_displayHiddenVisually">
@@ -7160,9 +8589,14 @@ class AuroSelect extends AuroElement$3 {
7160
8589
  `;
7161
8590
  }
7162
8591
 
8592
+ /**
8593
+ * Returns HTML for the hidden HTML5 select.
8594
+ * @private
8595
+ * @returns {html} - Returns HTML for the hidden HTML5 select.
8596
+ */
7163
8597
  renderNativeSelect() {
7164
8598
  return u`
7165
- <div class="nativeSelectWrapper">
8599
+ <div class="nativeSelectWrapper util_displayHidden">
7166
8600
  <select
7167
8601
  tabindex="-1"
7168
8602
  id="${`native-select-${this.id || this.uniqueId}`}"
@@ -7199,14 +8633,14 @@ class AuroSelect extends AuroElement$3 {
7199
8633
  ? u`
7200
8634
  <${this.helpTextTag} ?onDark="${this.onDark}">
7201
8635
  <p id="${this.uniqueId}" part="helpText">
7202
- <slot name="helptext"></slot>
8636
+ <slot name="helpText"></slot>
7203
8637
  </p>
7204
8638
  </${this.helpTextTag}>
7205
8639
  `
7206
8640
  : u`
7207
8641
  <${this.helpTextTag} error ?onDark="${this.onDark}">
7208
8642
  <p id="${this.uniqueId}" role="alert" aria-live="assertive" part="helpText">
7209
- ERROR MESSAGE ${this.errorMessage}
8643
+ ${this.errorMessage}
7210
8644
  </p>
7211
8645
  </${this.helpTextTag}>
7212
8646
  `
@@ -7219,17 +8653,16 @@ class AuroSelect extends AuroElement$3 {
7219
8653
  * @private
7220
8654
  * @returns {import("lit").TemplateResult} - Returns HTML for the emphasized layout.
7221
8655
  */
7222
- // TODO update to use util class
7223
8656
  renderLayoutEmphasized() {
7224
8657
  const placeholderClass = {
7225
- hidden: this.value,
8658
+ 'util_displayHidden': this.value
7226
8659
  };
7227
8660
 
7228
8661
  const displayValueClasses = {
7229
8662
  'displayValue': true,
7230
8663
  'hasContent': this.hasDisplayValueContent,
7231
8664
  'hasFocus': this.isPopoverVisible,
7232
- 'withValue': this.value && this.value.length > 0,
8665
+ 'withValue': this.placeholder || (this.value && this.value.length > 0), // eslint-disable-line no-extra-parens
7233
8666
  'force': this.forceDisplayValue,
7234
8667
  };
7235
8668
 
@@ -7246,16 +8679,16 @@ class AuroSelect extends AuroElement$3 {
7246
8679
  <slot name="bib.fullscreen.headline" @slotchange="${this.handleSlotChange}"></slot>
7247
8680
  </div>
7248
8681
  <${this.dropdownTag}
8682
+ a11yRole="select"
7249
8683
  ?autoPlacement="${this.autoPlacement}"
7250
8684
  ?error="${this.validity !== undefined && this.validity !== 'valid'}"
7251
- ?matchWidth="${!this.flexMenuWidth}"
8685
+ ?matchWidth="${this.matchWidth}"
7252
8686
  ?noFlip="${this.noFlip}"
7253
8687
  ?onDark="${this.onDark}"
7254
8688
  .fullscreenBreakpoint="${this.fullscreenBreakpoint}"
7255
8689
  .offset="${this.offset}"
7256
8690
  .placement="${this.placement}"
7257
8691
  chevron
7258
- fluid
7259
8692
  for="selectMenu"
7260
8693
  layout="${this.layout}"
7261
8694
  part="dropdown"
@@ -7267,15 +8700,14 @@ class AuroSelect extends AuroElement$3 {
7267
8700
  </div>
7268
8701
  <div class="mainContent">
7269
8702
  <div class="${e(valueContainerClasses)}">
7270
- <label>
8703
+ <label class="${e(this.commonLabelClasses)}">
7271
8704
  <slot name="label"></slot>
8705
+ ${this.required ? undefined : u`<slot name="optionalLabel"> (optional)</slot>`}
7272
8706
  </label>
7273
8707
  <div class="value" id="value"></div>
7274
- ${this.value ? undefined : u`
7275
- <div id="placeholder" class="${e(placeholderClass)}">
7276
- <slot name="placeholder"></slot>
7277
- </div>
7278
- `}
8708
+ <div id="placeholder" class="${e(placeholderClass)}">
8709
+ ${this.placeholder}
8710
+ </div>
7279
8711
  </div>
7280
8712
  <div class="${e(displayValueClasses)}" aria-hidden="true" part="displayValue">
7281
8713
  <slot name="displayValue"></slot>
@@ -7302,14 +8734,14 @@ class AuroSelect extends AuroElement$3 {
7302
8734
  */
7303
8735
  renderLayoutSnowflake() {
7304
8736
  const placeholderClass = {
7305
- hidden: this.value,
8737
+ 'util_displayHidden': this.value
7306
8738
  };
7307
8739
 
7308
8740
  const displayValueClasses = {
7309
8741
  'displayValue': true,
7310
8742
  'hasContent': this.hasDisplayValueContent,
7311
8743
  'hasFocus': this.isPopoverVisible,
7312
- 'withValue': this.value && this.value.length > 0,
8744
+ 'withValue': this.placeholder || (this.value && this.value.length > 0), // eslint-disable-line no-extra-parens
7313
8745
  'force': this.forceDisplayValue,
7314
8746
  };
7315
8747
 
@@ -7328,14 +8760,13 @@ class AuroSelect extends AuroElement$3 {
7328
8760
  <${this.dropdownTag}
7329
8761
  ?autoPlacement="${this.autoPlacement}"
7330
8762
  ?error="${this.validity !== undefined && this.validity !== 'valid'}"
7331
- ?matchWidth="${!this.flexMenuWidth}"
8763
+ ?matchWidth="${this.matchWidth}"
7332
8764
  ?noFlip="${this.noFlip}"
7333
8765
  ?onDark="${this.onDark}"
7334
8766
  .fullscreenBreakpoint="${this.fullscreenBreakpoint}"
7335
8767
  .offset="${this.offset}"
7336
8768
  .placement="${this.placement}"
7337
8769
  chevron
7338
- fluid
7339
8770
  for="selectMenu"
7340
8771
  layout="${this.layout}"
7341
8772
  part="dropdown"
@@ -7347,15 +8778,14 @@ class AuroSelect extends AuroElement$3 {
7347
8778
  </div>
7348
8779
  <div class="mainContent">
7349
8780
  <div class="${e(valueContainerClasses)}">
7350
- <label>
8781
+ <label class="${e(this.commonLabelClasses)}">
7351
8782
  <slot name="label"></slot>
8783
+ ${this.required ? undefined : u`<slot name="optionalLabel"> (optional)</slot>`}
7352
8784
  </label>
7353
8785
  <div class="value" id="value"></div>
7354
- ${this.value ? undefined : u`
7355
- <div id="placeholder" class="${e(placeholderClass)}">
7356
- <slot name="placeholder"></slot>
7357
- </div>
7358
- `}
8786
+ <div id="placeholder" class="${e(placeholderClass)}">
8787
+ ${this.placeholder}
8788
+ </div>
7359
8789
  </div>
7360
8790
  <div class="${e(displayValueClasses)}" aria-hidden="true" part="displayValue">
7361
8791
  <slot name="displayValue"></slot>
@@ -7371,6 +8801,7 @@ class AuroSelect extends AuroElement$3 {
7371
8801
  ${this.renderHtmlHelpText()}
7372
8802
  </div>
7373
8803
  </${this.dropdownTag}>
8804
+ ${this.renderNativeSelect()}
7374
8805
  </div>
7375
8806
  `;
7376
8807
  }
@@ -7381,11 +8812,75 @@ class AuroSelect extends AuroElement$3 {
7381
8812
  * @returns {import("lit").TemplateResult} - Returns HTML for the classic layout.
7382
8813
  */
7383
8814
  renderLayoutClassic() {
8815
+ const placeholderClass = {
8816
+ 'util_displayHidden': this.value
8817
+ };
8818
+
8819
+ const displayValueClasses = {
8820
+ 'displayValue': true,
8821
+ 'hasContent': this.hasDisplayValueContent,
8822
+ 'hasFocus': this.isPopoverVisible,
8823
+ 'withValue': this.placeholder || (this.value && this.value.length > 0), // eslint-disable-line no-extra-parens
8824
+ 'force': this.forceDisplayValue,
8825
+ };
8826
+
8827
+ const valueContainerClasses = {
8828
+ 'valueContainer': true,
8829
+ 'util_displayHiddenVisually': (this.forceDisplayValue || !(this.dropdown && this.dropdown.isPopoverVisible)) && this.hasDisplayValueContent
8830
+ };
8831
+
7384
8832
  return u`
7385
8833
  <div
7386
- class="${e(this.commonWrapperClasses)} thin"
8834
+ class="${e(this.commonWrapperClasses)}"
7387
8835
  part="wrapper">
7388
- classic
8836
+ <div id="slotHolder" aria-hidden="true">
8837
+ <slot name="bib.fullscreen.headline" @slotchange="${this.handleSlotChange}"></slot>
8838
+ </div>
8839
+ <${this.dropdownTag}
8840
+ ?autoPlacement="${this.autoPlacement}"
8841
+ ?error="${this.validity !== undefined && this.validity !== 'valid'}"
8842
+ ?matchWidth="${!this.flexMenuWidth}"
8843
+ ?noFlip="${this.noFlip}"
8844
+ ?onDark="${this.onDark}"
8845
+ .fullscreenBreakpoint="${this.fullscreenBreakpoint}"
8846
+ .offset="${this.offset}"
8847
+ .placement="${this.placement}"
8848
+ chevron
8849
+ for="selectMenu"
8850
+ layout="${this.layout}"
8851
+ part="dropdown"
8852
+ shape="${this.shape}"
8853
+ size="${this.size}">
8854
+ <div slot="trigger" aria-haspopup="true" id="triggerFocus" class="triggerContent">
8855
+ <div class="accents left">
8856
+ <slot name="typeIcon"></slot>
8857
+ </div>
8858
+ <div class="mainContent">
8859
+ <div class="${e(valueContainerClasses)}">
8860
+ <label class="${e(this.commonLabelClasses)}">
8861
+ <slot name="label"></slot>
8862
+ ${this.required ? undefined : u`<slot name="optionalLabel"> (optional)</slot>`}
8863
+ </label>
8864
+ <div class="value" id="value"></div>
8865
+ <div id="placeholder" class="${e(placeholderClass)}">
8866
+ ${this.placeholder}
8867
+ </div>
8868
+ </div>
8869
+ <div class="${e(displayValueClasses)}" aria-hidden="true" part="displayValue">
8870
+ <slot name="displayValue"></slot>
8871
+ </div>
8872
+ </div>
8873
+ <div class="accents right"></div>
8874
+ </div>
8875
+ <div class="menuWrapper"></div>
8876
+ <${this.bibtemplateTag} ?large="${this.largeFullscreenHeadline}" @close-click="${this.hideBib}">
8877
+ <slot></slot>
8878
+ </${this.bibtemplateTag}>
8879
+ <div slot="helpText">
8880
+ ${this.renderHtmlHelpText()}
8881
+ </div>
8882
+ </${this.dropdownTag}>
8883
+ ${this.renderNativeSelect()}
7389
8884
  </div>
7390
8885
  `;
7391
8886
  }
@@ -7419,112 +8914,13 @@ class AuroSelect extends AuroElement$3 {
7419
8914
 
7420
8915
  // When using auroElement, use the following attribute and function when hiding content from screen readers.
7421
8916
  // aria-hidden="${this.hideAudible(this.hiddenAudible)}"
7422
-
7423
- // function that renders the HTML and CSS into the scope of the component
7424
- renderBACKUP() {
7425
- const placeholderClass = {
7426
- hidden: this.value,
7427
- };
7428
-
7429
- return u`
7430
- <div class="outerWrapper">
7431
- <div aria-live="polite" class="util_displayHiddenVisually">
7432
- ${this.optionActive && this.options.length > 0
7433
- ? u`
7434
- ${`${this.optionActive.innerText}, option ${this.options.indexOf(this.optionActive) + 1} of ${this.options.length}`}
7435
- `
7436
- : undefined
7437
- };
7438
-
7439
- ${this.optionSelected && this.options.length > 0
7440
- ? u`
7441
- ${`${this.optionSelected.innerText} selected`}
7442
- `
7443
- : undefined
7444
- };
7445
- </div>
7446
- <div id="slotHolder" aria-hidden="true">
7447
- <slot name="bib.fullscreen.headline" @slotchange="${this.handleSlotChange}"></slot>
7448
- </div>
7449
- <${this.dropdownTag}
7450
- ?autoPlacement="${this.autoPlacement}"
7451
- ?disabled="${this.disabled}"
7452
- ?error="${this.validity !== undefined && this.validity !== 'valid'}"
7453
- ?matchWidth="${!this.flexMenuWidth}"
7454
- ?noFlip="${this.noFlip}"
7455
- ?onDark="${this.onDark}"
7456
- .fullscreenBreakpoint="${this.fullscreenBreakpoint}"
7457
- .offset="${this.offset}"
7458
- .placement="${this.placement}"
7459
- chevron
7460
- fluid
7461
- for="selectMenu"
7462
- layout="${this.layout}"
7463
- part="dropdown"
7464
- shape="${this.shape}"
7465
- size="${this.size}">
7466
- <span slot="trigger" aria-haspopup="true" id="triggerFocus">
7467
- <span id="placeholder"
7468
- class="${e(placeholderClass)}"
7469
- ?aria-hidden="${this.optionSelected && this.optionSelected.length ? 'true' : false}"
7470
- >
7471
- <slot name="placeholder"></slot>
7472
- </span>
7473
- <slot name="valueText" id="valueText"></slot>
7474
- </span>
7475
-
7476
- <${this.bibtemplateTag} ?large="${this.largeFullscreenHeadline}" @close-click="${this.hideBib}">
7477
- <slot></slot>
7478
- </${this.bibtemplateTag}>
7479
- <slot name="label" slot="label"></slot>
7480
- <p slot="helpText">
7481
- ${!this.validity || this.validity === undefined || this.validity === 'valid'
7482
- ? u`
7483
- <span id="${this.uniqueId}" part="helpText">
7484
- <slot name="helpText"></slot>
7485
- </span>`
7486
- : u`
7487
- <span id="${this.uniqueId}" role="alert" aria-live="assertive" part="helpText">
7488
- ${this.errorMessage}
7489
- </span>`
7490
- }
7491
- </p>
7492
- </${this.dropdownTag}>
7493
- <div class="nativeSelectWrapper">
7494
- <select
7495
- tabindex="-1"
7496
- id="${`native-select-${this.id || this.uniqueId}`}"
7497
- name="${this.name || ''}"
7498
- ?disabled="${this.disabled}"
7499
- ?required="${this.required}"
7500
- aria-hidden="true"
7501
- autocomplete="${o(this.autocomplete)}"
7502
- @change="${this._handleNativeSelectChange}">
7503
- <option value="" ?selected="${!this.value}"></option>
7504
- ${this.options.map((option) => {
7505
- const optionValue = option.value || option.textContent;
7506
- return u`
7507
- <option
7508
- value="${optionValue}"
7509
- ?selected="${this.value === optionValue}">
7510
- ${option.textContent}
7511
- </option>
7512
- `;
7513
- })}
7514
- </select>
7515
- </div>
7516
- <!-- Help text and error message template -->
7517
- ${this.renderHtmlHelpText()}
7518
- </div>
7519
- `;
7520
- }
7521
8917
  }
7522
8918
 
7523
- var styleCss$2 = i$5`:focus:not(:focus-visible){outline:3px solid transparent}:host{display:inline-block;width:100%;margin:0;padding:0;vertical-align:middle}:host ::slotted(auro-menuoption),:host ::slotted([auro-menuoption]),:host auro-menuoption[loadingplaceholder]{padding-left:calc(var(--ds-size-150, 0.75rem) + 24px + var(--ds-size-100, 0.5rem))}:host ::slotted([selected]){padding-left:0}:host ::slotted(hr){box-sizing:content-box !important;height:0 !important;overflow:visible !important;margin:var(--ds-size-100, 0.5rem) 0 !important;border-width:0 !important;border-top-width:1px !important;border-top-style:solid !important}:host([nocheckmark]) ::slotted(auro-menuoption),:host([nocheckmark]) auro-menuoption[loadingplaceholder]{padding-left:var(--ds-size-200, 1rem)}:host([root]){overflow-y:auto}[loadingplaceholder].empty{opacity:0;position:absolute}[loadingplaceholder] slot[name=loadingIcon]{vertical-align:middle;line-height:1;display:inline-block}[loadingplaceholder] slot[name=loadingIcon]::slotted(*){margin-right:var(--ds-size-150, 0.75rem)}`;
8919
+ var styleCss$2 = i$5`:focus:not(:focus-visible){outline:3px solid transparent}:host{display:block;vertical-align:middle}:host .wrapper{box-sizing:border-box;display:inline-block;width:100%;margin:0;padding:0}:host ::slotted(hr){box-sizing:content-box !important;height:0 !important;overflow:visible !important;margin:var(--ds-size-100, 0.5rem) 0 !important;border-width:0 !important;border-top-width:1px !important;border-top-style:solid !important}:host [loadingplaceholder].empty{opacity:0;position:absolute}:host [loadingplaceholder] slot[name=loadingIcon]{vertical-align:middle;line-height:1;display:inline-block}:host [loadingplaceholder] slot[name=loadingIcon]::slotted(*){margin-right:var(--ds-size-150, 0.75rem)}:host([root]){overflow-y:auto}:host([root]) .wrapper[class*=-lg]{padding:var(--ds-size-150, 0.75rem)}:host([root]) .wrapper[class*=-xl]{padding:var(--ds-size-200, 1rem)}`;
7524
8920
 
7525
8921
  var colorCss$2 = i$5`:host ::slotted(hr){border-top-color:var(--ds-auro-menu-divider-color)}[loadingplaceholder] slot[name=loadingIcon]{color:var(--ds-auro-menu-loader-color)}[loadingplaceholder] slot[name=loadingText]{color:var(--ds-auro-menu-loader-text-color)}`;
7526
8922
 
7527
- var tokensCss$1 = i$5`:host{--ds-auro-menu-divider-color: var(--ds-basic-color-border-divider, rgba(0, 0, 0, 0.15));--ds-auro-menu-loader-color: var(--ds-basic-color-brand-primary, #01426a);--ds-auro-menu-loader-text-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-menuoption-container-color: transparent;--ds-auro-menuoption-icon-color: transparent;--ds-auro-menuoption-text-color: var(--ds-basic-color-texticon-default, #2a2a2a)}`;
8923
+ var tokensCss$1 = i$5`:host{--ds-auro-menu-divider-color: var(--ds-basic-color-border-divider, rgba(0, 0, 0, 0.15));--ds-auro-menu-loader-color: var(--ds-basic-color-brand-primary, #01426a);--ds-auro-menu-loader-text-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-menuoption-container-color: transparent;--ds-auro-menuoption-container-border-color: var(--ds-auro-menuoption-container-color);--ds-auro-menuoption-icon-color: transparent;--ds-auro-menuoption-text-color: var(--ds-basic-color-texticon-default, #2a2a2a)}`;
7528
8924
 
7529
8925
  // Copyright (c) 2021 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
7530
8926
  // See LICENSE in the project root for license information.
@@ -7577,7 +8973,6 @@ function dispatchMenuEvent(element, eventName, detail = null) {
7577
8973
  * @attr {boolean} nocheckmark - When true, selected option will not show the checkmark.
7578
8974
  * @attr {boolean} loading - When true, displays a loading state using the loadingIcon and loadingText slots if provided.
7579
8975
  * @attr {boolean} multiselect - When true, the selected option can be multiple options.
7580
- * @attr {String|Array<string>} value - Value selected for the menu, type `string` by default. In multi-select mode, `value` is an array of strings.
7581
8976
  * @prop {boolean} hasLoadingPlaceholder - Indicates whether the menu has a loadingIcon or loadingText to render when in a loading state.
7582
8977
  * @event {CustomEvent<Element>} auroMenu-activatedOption - Notifies that a menuoption has been made `active`.
7583
8978
  * @event {CustomEvent<any>} auroMenu-customEventFired - Notifies that a custom event has been fired.
@@ -7590,14 +8985,17 @@ function dispatchMenuEvent(element, eventName, detail = null) {
7590
8985
  * @slot - Slot for insertion of menu options.
7591
8986
  */
7592
8987
 
7593
- /* eslint-disable no-magic-numbers, max-lines, no-extra-parens */
8988
+ /* eslint-disable no-magic-numbers, max-lines, no-extra-parens, no-inline-comments, line-comment-position */
7594
8989
 
7595
- class AuroMenu extends i$2 {
8990
+ class AuroMenu extends AuroElement$4 {
7596
8991
  constructor() {
7597
8992
  super();
7598
8993
 
7599
8994
  // State properties (reactive)
7600
8995
 
8996
+ this.shape = ""; // box, rounded, pill
8997
+ this.size = ""; // md, lg, xl
8998
+
7601
8999
  // Value of the selected options
7602
9000
  this.value = undefined;
7603
9001
  // Currently selected option
@@ -7656,6 +9054,7 @@ class AuroMenu extends i$2 {
7656
9054
 
7657
9055
  static get properties() {
7658
9056
  return {
9057
+ ...super.properties,
7659
9058
  noCheckmark: {
7660
9059
  type: Boolean,
7661
9060
  reflect: true,
@@ -7686,9 +9085,24 @@ class AuroMenu extends i$2 {
7686
9085
  reflect: true,
7687
9086
  attribute: 'multiselect'
7688
9087
  },
9088
+
9089
+ /**
9090
+ * Value selected for the component.
9091
+ */
7689
9092
  value: {
7690
- // Allow string, string[] arrays and undefined
7691
- type: Object
9093
+ type: String,
9094
+ reflect: true,
9095
+ attribute: 'value'
9096
+ },
9097
+
9098
+ /**
9099
+ * Indent level for submenus.
9100
+ * @private
9101
+ */
9102
+ level: {
9103
+ type: Number,
9104
+ reflect: false,
9105
+ attribute: false
7692
9106
  }
7693
9107
  };
7694
9108
  }
@@ -7710,7 +9124,26 @@ class AuroMenu extends i$2 {
7710
9124
  *
7711
9125
  */
7712
9126
  static register(name = "auro-menu") {
7713
- AuroLibraryRuntimeUtils$4.prototype.registerComponent(name, AuroMenu);
9127
+ AuroLibraryRuntimeUtils$6.prototype.registerComponent(name, AuroMenu);
9128
+ }
9129
+
9130
+ /**
9131
+ * Formatted value based on `multiSelect` state.
9132
+ * Default type is `String`, changing to `Array<String>` when `multiSelect` is true.
9133
+ * @private
9134
+ * @returns {String|Array<String>}
9135
+ */
9136
+ get formattedValue() {
9137
+ if (this.multiSelect) {
9138
+ if (!this.value) {
9139
+ return undefined;
9140
+ }
9141
+ if (this.value.startsWith("[")) {
9142
+ return JSON.parse(this.value);
9143
+ }
9144
+ return [this.value];
9145
+ }
9146
+ return this.value;
7714
9147
  }
7715
9148
 
7716
9149
  // Lifecycle Methods
@@ -7722,6 +9155,7 @@ class AuroMenu extends i$2 {
7722
9155
  this.addEventListener('mousedown', this.handleMouseSelect);
7723
9156
  this.addEventListener('auroMenuOption-mouseover', this.handleOptionHover);
7724
9157
  this.addEventListener('slotchange', this.handleSlotChange);
9158
+ this.setTagAttribute("auro-menu");
7725
9159
  }
7726
9160
 
7727
9161
  disconnectedCallback() {
@@ -7734,19 +9168,33 @@ class AuroMenu extends i$2 {
7734
9168
  }
7735
9169
 
7736
9170
  firstUpdated() {
7737
- AuroLibraryRuntimeUtils$4.prototype.handleComponentTagRename(this, 'auro-menu');
9171
+ AuroLibraryRuntimeUtils$6.prototype.handleComponentTagRename(this, 'auro-menu');
7738
9172
 
7739
9173
  this.loadingSlots = this.querySelectorAll("[slot='loadingText'], [slot='loadingIcon']");
7740
9174
  this.initializeMenu();
7741
9175
  }
7742
9176
 
9177
+ /**
9178
+ * Sets an attribute that matches the default tag name if the tag name is not the default.
9179
+ * @param {string} tagName - The tag name to set as an attribute.
9180
+ * @private
9181
+ */
9182
+ setTagAttribute(tagName) {
9183
+ if (this.tagName.toLowerCase() !== tagName) {
9184
+ this.setAttribute(tagName, true);
9185
+ }
9186
+ }
9187
+
7743
9188
  updated(changedProperties) {
7744
- if (changedProperties.has('multiSelect')) {
9189
+ super.updated(changedProperties);
9190
+
9191
+ if (changedProperties.has('multiSelect') && !changedProperties.has("value")) {
7745
9192
  // Reset selection if multiSelect mode changes
7746
9193
  this.clearSelection();
7747
9194
  }
7748
9195
 
7749
- if (changedProperties.has('value')) {
9196
+
9197
+ if (changedProperties.has("value")) {
7750
9198
  // Handle null/undefined case
7751
9199
  if (this.value === undefined || this.value === null) {
7752
9200
  this.optionSelected = undefined;
@@ -7754,7 +9202,7 @@ class AuroMenu extends i$2 {
7754
9202
  } else {
7755
9203
  if (this.multiSelect) {
7756
9204
  // In multiselect mode, this.value should be an array of strings
7757
- const valueArray = Array.isArray(this.value) ? this.value : [this.value];
9205
+ const valueArray = this.formattedValue;
7758
9206
  const matchingOptions = this.items.filter((item) => valueArray.includes(item.value));
7759
9207
 
7760
9208
  this.optionSelected = matchingOptions.length > 0 ? matchingOptions : undefined;
@@ -7814,6 +9262,19 @@ class AuroMenu extends i$2 {
7814
9262
  this.querySelectorAll('auro-menu, [auro-menu], auro-menuoption, [auro-menuoption]').forEach((element) => element.setAttribute('noCheckmark', ''));
7815
9263
  }
7816
9264
 
9265
+ // Handle layout propagation to all menus and options
9266
+ const propagationTargets = this.querySelectorAll('auro-menu, [auro-menu], auro-menuoption, [auro-menuoption]');
9267
+ [
9268
+ 'size',
9269
+ 'shape'
9270
+ ].forEach((prop) => {
9271
+ if (changedProperties.has(prop)) {
9272
+ propagationTargets.forEach((el) => {
9273
+ el.setAttribute(prop, this[prop]);
9274
+ });
9275
+ }
9276
+ });
9277
+
7817
9278
  // Regex for matchWord if needed
7818
9279
  let regexWord = null;
7819
9280
 
@@ -7908,14 +9369,14 @@ class AuroMenu extends i$2 {
7908
9369
  */
7909
9370
  handleSelectState(option) {
7910
9371
  if (this.multiSelect) {
7911
- const currentValue = this.value || [];
9372
+ const currentValue = this.formattedValue || [];
7912
9373
  const currentSelected = this.optionSelected || [];
7913
9374
 
7914
9375
  if (!currentValue.includes(option.value)) {
7915
- this.value = [
9376
+ this.value = JSON.stringify([
7916
9377
  ...currentValue,
7917
9378
  option.value
7918
- ];
9379
+ ]);
7919
9380
  }
7920
9381
  if (!currentSelected.includes(option)) {
7921
9382
  this.optionSelected = [
@@ -7938,13 +9399,15 @@ class AuroMenu extends i$2 {
7938
9399
  * @param {HTMLElement} option - The menuoption to be deselected.
7939
9400
  */
7940
9401
  handleDeselectState(option) {
7941
- if (this.multiSelect && Array.isArray(this.value)) {
9402
+ if (this.multiSelect) {
7942
9403
  // Remove this option from array
7943
- this.value = this.value.filter((val) => val !== option.value);
9404
+ const newFormattedValue = (this.formattedValue || []).filter((val) => val !== option.value);
7944
9405
 
7945
9406
  // If array is empty after removal, set back to undefined
7946
- if (this.value.length === 0) {
9407
+ if (newFormattedValue && newFormattedValue.length === 0) {
7947
9408
  this.value = undefined;
9409
+ } else {
9410
+ this.value = JSON.stringify(newFormattedValue);
7948
9411
  }
7949
9412
 
7950
9413
  this.optionSelected = this.optionSelected.filter((val) => val !== option);
@@ -8010,21 +9473,20 @@ class AuroMenu extends i$2 {
8010
9473
  * @param {HTMLElement} menu - Root menu element.
8011
9474
  */
8012
9475
  handleNestedMenus(menu) {
8013
- const nestedMenus = menu.querySelectorAll('auro-menu, [auro-menu]');
9476
+ menu.level = menu.parentElement.level >= 0 ? menu.parentElement.level + 1 : 0;
8014
9477
 
8015
- nestedMenus.forEach((nestedMenu) => {
8016
- // role="listbox" only allows "role=group" for children.
8017
- nestedMenu.setAttribute('role', 'group');
8018
- if (!nestedMenu.hasAttribute('aria-label')) {
8019
- nestedMenu.setAttribute('aria-label', 'submenu');
9478
+ if (menu.level > 0) {
9479
+ menu.setAttribute('role', 'group');
9480
+ menu.removeAttribute("root");
9481
+ if (!menu.hasAttribute('aria-label')) {
9482
+ menu.setAttribute('aria-label', 'submenu');
8020
9483
  }
9484
+ }
8021
9485
 
8022
- const options = nestedMenu.querySelectorAll(':scope > auro-menuoption, :scope > [auro-menuoption]');
8023
- options.forEach((option) => {
8024
- option.innerHTML = this.nestingSpacer + option.innerHTML;
8025
- });
8026
-
8027
- this.handleNestedMenus(nestedMenu);
9486
+ const options = menu.querySelectorAll(':scope > auro-menuoption, :scope > [auro-menuoption]');
9487
+ options.forEach((option) => {
9488
+ const regex = new RegExp(this.nestingSpacer, "gu");
9489
+ option.innerHTML = this.nestingSpacer.repeat(menu.level) + option.innerHTML.replace(regex, '');
8028
9490
  });
8029
9491
  }
8030
9492
 
@@ -8266,28 +9728,39 @@ class AuroMenu extends i$2 {
8266
9728
  }
8267
9729
 
8268
9730
  /**
8269
- * Renders the component.
8270
- * @returns {boolean} - True if loading slots are present and non-empty.
9731
+ * Logic to determine the layout of the component.
9732
+ * @protected
9733
+ * @returns {void}
8271
9734
  */
8272
- render() {
9735
+ renderLayout() {
8273
9736
  if (this.loading) {
8274
9737
  return x`
8275
- <auro-menuoption disabled loadingplaceholder class="${this.hasLoadingPlaceholder ? '' : 'empty'}">
8276
- <div>
8277
- <slot name="loadingIcon"></slot>
8278
- <slot name="loadingText"></slot>
8279
- </div>
8280
- </auro-menuoption>
9738
+ <div class="wrapper">
9739
+ <auro-menuoption
9740
+ disabled
9741
+ loadingplaceholder
9742
+ class="${this.hasLoadingPlaceholder ? "" : "empty"}"
9743
+ >
9744
+ <div>
9745
+ <slot name="loadingIcon"></slot>
9746
+ <slot name="loadingText"></slot>
9747
+ </div>
9748
+ </auro-menuoption>
9749
+ </div>
8281
9750
  `;
8282
9751
  }
8283
9752
 
8284
- return x`<slot @slotchange=${this.handleSlotChange}></slot>`;
9753
+ return x`
9754
+ <div class="wrapper">
9755
+ <slot @slotchange=${this.handleSlotChange}></slot>
9756
+ </div>
9757
+ `;
8285
9758
  }
8286
9759
  }
8287
9760
 
8288
- var styleCss$1 = i$5`:host{display:flex;align-items:center;padding:var(--ds-size-50, 0.25rem) var(--ds-size-200, 1rem) var(--ds-size-50, 0.25rem) 0;cursor:pointer;user-select:none;-webkit-tap-highlight-color:transparent}:host slot{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}:host [auro-icon]{--ds-auro-icon-size: var(--ds-size-300, 1.5rem);margin-right:var(--ds-size-150, 0.75rem);margin-left:var(--ds-size-100, 0.5rem)}:host ::slotted(.nestingSpacer){display:inline-block;width:var(--ds-size-300, 1.5rem)}:host ::slotted(strong){font-weight:700}:host([hidden]){display:none}:host([static]){pointer-events:none}:host([disabled]:hover){cursor:auto}:host([disabled]){user-select:none;pointer-events:none}`;
9761
+ var styleCss$1 = i$5`:host{cursor:pointer;user-select:none}:host .wrapper{display:flex;align-items:center;padding-right:var(--ds-size-200, 1rem);padding-left:calc(var(--ds-size-150, 0.75rem) + var(--ds-size-300, 1.5rem) + var(--ds-size-100, 0.5rem));padding-top:var(--ds-size-50, 0.25rem);padding-bottom:var(--ds-size-50, 0.25rem);-webkit-tap-highlight-color:transparent}:host .wrapper[class*=shape-box],:host .wrapper[class*=shape-snowflake]{border-radius:unset}:host .wrapper[class*=shape-pill]{border-radius:30px}:host .wrapper[class*=-lg]{font-size:var(--ds-text-body-size-lg, 1.125rem);line-height:var(--ds-text-body-height-lg, 1.625rem);padding-top:var(--ds-size-75, 0.375rem);padding-bottom:var(--ds-size-75, 0.375rem);padding-right:var(--ds-size-150, 0.75rem)}:host .wrapper[class*=-lg]:not(:last-child){margin-bottom:var(--ds-size-50, 0.25rem)}:host .wrapper[class*=-xl]{font-size:var(--ds-text-body-size-lg, 1.125rem);line-height:var(--ds-text-body-height-lg, 1.625rem);padding-top:var(--ds-size-100, 0.5rem);padding-bottom:var(--ds-size-100, 0.5rem);padding-right:var(--ds-size-200, 1rem)}:host .wrapper[class*=-xl]:not(:last-child){margin-bottom:var(--ds-size-100, 0.5rem)}:host slot{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}:host [auro-icon]{--ds-auro-icon-size: var(--ds-size-300, 1.5rem);margin-right:var(--ds-size-150, 0.75rem);margin-left:var(--ds-size-100, 0.5rem)}:host ::slotted(.nestingSpacer){display:inline-block;width:var(--ds-size-300, 1.5rem)}:host ::slotted(strong){font-weight:700}:host([loadingplaceholder]) .wrapper{padding-left:calc(var(--ds-size-150, 0.75rem) + var(--ds-size-300, 1.5rem) + var(--ds-size-100, 0.5rem))}:host([selected]) .wrapper{padding-left:0}:host([nocheckmark]) .wrapper{padding-left:var(--ds-size-150, 0.75rem)}:host([nocheckmark]) .wrapper[class*=-lg]{padding-left:var(--ds-size-150, 0.75rem)}:host([nocheckmark]) .wrapper[class*=-xl]{padding-left:var(--ds-size-200, 1rem)}:host([hidden]){display:none}:host([static]){pointer-events:none}:host([disabled]:hover){cursor:auto}:host([disabled]){user-select:none;pointer-events:none}`;
8289
9762
 
8290
- var colorCss$1 = i$5`:host{background-color:var(--ds-auro-menuoption-container-color);color:var(--ds-auro-menuoption-text-color)}:host svg{fill:var(--ds-auro-menuoption-icon-color)}:host([disabled]){--ds-auro-menuoption-text-color: var(--ds-basic-color-texticon-disabled, #d0d0d0)}:host(:hover),:host(.active){--ds-auro-menuoption-container-color: var(--ds-basic-color-surface-neutral-subtle, #f7f7f7)}:host([selected]){--ds-auro-menuoption-container-color: var(--ds-advanced-color-state-selected, #01426a);--ds-auro-menuoption-text-color: var(--ds-basic-color-texticon-inverse, #ffffff);--ds-auro-menuoption-icon-color: var(--ds-basic-color-texticon-inverse, #ffffff)}:host([selected]):host(:hover),:host([selected]):host(.active){--ds-auro-menuoption-container-color: var(--ds-advanced-color-state-selected-hover, #00274a)}`;
9763
+ var colorCss$1 = i$5`:host .wrapper{border:1px solid var(--ds-auro-menuoption-container-border-color);background-color:var(--ds-auro-menuoption-container-color);color:var(--ds-auro-menuoption-text-color)}:host svg{fill:var(--ds-auro-menuoption-icon-color)}:host([disabled]){--ds-auro-menuoption-text-color: var(--ds-basic-color-texticon-disabled, #d0d0d0)}:host(:hover),:host(.active){--ds-auro-menuoption-container-color: var(--ds-basic-color-surface-neutral-subtle, #f7f7f7)}:host([selected]){--ds-auro-menuoption-container-color: var(--ds-advanced-color-state-selected, #01426a);--ds-auro-menuoption-text-color: var(--ds-basic-color-texticon-inverse, #ffffff);--ds-auro-menuoption-icon-color: var(--ds-basic-color-texticon-inverse, #ffffff)}:host([selected]):host(:hover),:host([selected]):host(.active){--ds-auro-menuoption-container-color: var(--ds-advanced-color-state-selected-hover, #00274a)}`;
8291
9764
 
8292
9765
  // Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
8293
9766
  // See LICENSE in the project root for license information.
@@ -8635,8 +10108,12 @@ class AuroIcon extends BaseIcon {
8635
10108
  async firstUpdated() {
8636
10109
  await super.firstUpdated();
8637
10110
 
8638
- // Removes the SVG description for screenreader if ariaHidden is set to true
8639
- if (!this.hasAttribute('ariaHidden') && this.svg) {
10111
+ /**
10112
+ * icons provide a description for screen readers. Icon only instances Auro-button
10113
+ * depend on this description to provide context for the user using a screen reader.
10114
+ * Removes the SVG description for screen reader if ariaHidden is set to true.
10115
+ */
10116
+ if (this.hasAttribute('ariaHidden') && this.svg) {
8640
10117
  const svgDesc = this.svg.querySelector('desc');
8641
10118
 
8642
10119
  if (svgDesc) {
@@ -8680,7 +10157,7 @@ class AuroIcon extends BaseIcon {
8680
10157
  }
8681
10158
  }
8682
10159
 
8683
- var iconVersion = '8.0.3';
10160
+ var iconVersion = '8.0.4';
8684
10161
 
8685
10162
  var checkmarkIcon = {"svg":"<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" aria-labelledby=\"checkmark-sm__desc\" class=\"ico_squareLarge\" role=\"img\" style=\"min-width:var(--auro-size-lg, var(--ds-size-300, 1.5rem));height:var(--auro-size-lg, var(--ds-size-300, 1.5rem));fill:currentColor\" viewBox=\"0 0 24 24\" part=\"svg\"><title/><desc id=\"checkmark-sm__desc\">a small check mark.</desc><path d=\"M8.461 11.84a.625.625 0 1 0-.922.844l2.504 2.738c.247.27.674.27.922 0l5.496-6a.625.625 0 1 0-.922-.844l-5.035 5.496z\"/></svg>"};
8686
10163
 
@@ -8698,10 +10175,13 @@ var checkmarkIcon = {"svg":"<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlin
8698
10175
  * @event auroMenuOption-mouseover - Notifies that this option has been hovered over.
8699
10176
  * @slot - Specifies text for an option, but is not the value.
8700
10177
  */
8701
- class AuroMenuOption extends i$2 {
10178
+ class AuroMenuOption extends AuroElement$4 {
8702
10179
  constructor() {
8703
10180
  super();
8704
10181
 
10182
+ this.size = ""; // md, lg, xl
10183
+ this.shape = ""; // box, rounded, pill
10184
+
8705
10185
  /**
8706
10186
  * Generate unique names for dependency components.
8707
10187
  */
@@ -8720,11 +10200,12 @@ class AuroMenuOption extends i$2 {
8720
10200
  /**
8721
10201
  * @private
8722
10202
  */
8723
- this.runtimeUtils = new AuroLibraryRuntimeUtils$4();
10203
+ this.runtimeUtils = new AuroLibraryRuntimeUtils$6();
8724
10204
  }
8725
10205
 
8726
10206
  static get properties() {
8727
10207
  return {
10208
+ ...super.properties,
8728
10209
  nocheckmark: {
8729
10210
  type: Boolean,
8730
10211
  reflect: true
@@ -8764,7 +10245,7 @@ class AuroMenuOption extends i$2 {
8764
10245
  *
8765
10246
  */
8766
10247
  static register(name = "auro-menuoption") {
8767
- AuroLibraryRuntimeUtils$4.prototype.registerComponent(name, AuroMenuOption);
10248
+ AuroLibraryRuntimeUtils$6.prototype.registerComponent(name, AuroMenuOption);
8768
10249
  }
8769
10250
 
8770
10251
  firstUpdated() {
@@ -8786,6 +10267,8 @@ class AuroMenuOption extends i$2 {
8786
10267
 
8787
10268
  // observer for selected property changes
8788
10269
  updated(changedProperties) {
10270
+ super.updated(changedProperties);
10271
+
8789
10272
  if (changedProperties.has('selected')) {
8790
10273
  this.setAttribute('aria-selected', this.selected.toString());
8791
10274
  }
@@ -8807,10 +10290,19 @@ class AuroMenuOption extends i$2 {
8807
10290
  return u`<${this.iconTag} customColor customSvg slot="icon">${svg}</${this.iconTag}>`;
8808
10291
  }
8809
10292
 
8810
- render() {
10293
+ /**
10294
+ * Logic to determine the layout of the component.
10295
+ * @protected
10296
+ * @returns {void}
10297
+ */
10298
+ renderLayout() {
8811
10299
  return u`
8812
- ${this.selected && !this.nocheckmark ? this.generateIconHtml(checkmarkIcon.svg) : undefined}
8813
- <slot></slot>
10300
+ <div class="wrapper">
10301
+ ${this.selected && !this.nocheckmark
10302
+ ? this.generateIconHtml(checkmarkIcon.svg)
10303
+ : undefined}
10304
+ <slot></slot>
10305
+ </div>
8814
10306
  `;
8815
10307
  }
8816
10308
  }