@aurodesignsystem/auro-accordion 4.1.0 → 4.2.1

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.
package/demo/index.min.js CHANGED
@@ -1,22 +1,526 @@
1
- import { css, LitElement, nothing, html as html$1 } from 'lit';
2
- import { html } from 'lit/static-html.js';
3
- import { classMap } from 'lit/directives/class-map.js';
4
- import * as AuroLibraryRuntimeUtils from '@aurodesignsystem/auro-library/scripts/utils/runtimeUtils.mjs';
5
- import AuroLibraryRuntimeUtils__default from '@aurodesignsystem/auro-library/scripts/utils/runtimeUtils.mjs';
6
- import { AuroDependencyVersioning } from '@aurodesignsystem/auro-library/scripts/runtime/dependencyTagVersioning.mjs';
7
- import { AuroIcon } from '@aurodesignsystem/auro-icon/src/auro-icon.js';
8
- import chevronUp from '@alaskaairux/icons/dist/icons/interface/chevron-up.mjs';
9
- import chevronDown from '@alaskaairux/icons/dist/icons/interface/chevron-down.mjs';
10
- import styleCssAuroButton from '@aurodesignsystem/auro-button/src/style-css.js';
11
- import { AuroButton } from '@aurodesignsystem/auro-button/src/auro-button.js';
1
+ /**
2
+ * @license
3
+ * Copyright 2019 Google LLC
4
+ * SPDX-License-Identifier: BSD-3-Clause
5
+ */
6
+ const t$2=globalThis,e$4=t$2.ShadowRoot&&(void 0===t$2.ShadyCSS||t$2.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,s$2=Symbol(),o$4=new WeakMap;let n$3 = class n{constructor(t,e,o){if(this._$cssResult$=!0,o!==s$2)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e;}get styleSheet(){let t=this.o;const s=this.t;if(e$4&&void 0===t){const e=void 0!==s&&1===s.length;e&&(t=o$4.get(s)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&o$4.set(s,t));}return t}toString(){return this.cssText}};const r$3=t=>new n$3("string"==typeof t?t:t+"",void 0,s$2),i$5=(t,...e)=>{const o=1===t.length?t[0]:e.reduce(((e,s,o)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+t[o+1]),t[0]);return new n$3(o,t,s$2)},S$1=(s,o)=>{if(e$4)s.adoptedStyleSheets=o.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const e of o){const o=document.createElement("style"),n=t$2.litNonce;void 0!==n&&o.setAttribute("nonce",n),o.textContent=e.cssText,s.appendChild(o);}},c$2=e$4?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return r$3(e)})(t):t;
7
+
8
+ /**
9
+ * @license
10
+ * Copyright 2017 Google LLC
11
+ * SPDX-License-Identifier: BSD-3-Clause
12
+ */const{is:i$4,defineProperty:e$3,getOwnPropertyDescriptor:r$2,getOwnPropertyNames:h$1,getOwnPropertySymbols:o$3,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),y$1={attribute:!0,type:String,converter:u$2,reflect:!1,hasChanged:f$1};Symbol.metadata??=Symbol("metadata"),a$2.litPropertyMetadata??=new WeakMap;class b 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=y$1){if(s.state&&(s.attribute=!1),this._$Ei(),this.elementProperties.set(t,s),!s.noAccessor){const i=Symbol(),r=this.getPropertyDescriptor(t,i,s);void 0!==r&&e$3(this.prototype,t,r);}}static getPropertyDescriptor(t,s,i){const{get:e,set:h}=r$2(this.prototype,t)??{get(){return this[s]},set(t){this[s]=t;}};return {get(){return e?.call(this)},set(s){const r=e?.call(this);h.call(this,s),this.requestUpdate(t,r,i);},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??y$1}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=!0,this._$Ei(),this.hasOwnProperty(d$1("properties"))){const t=this.properties,s=[...h$1(t),...o$3(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 !1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,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(!0),this._$EO?.forEach((t=>t.hostConnected?.()));}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()));}attributeChangedCallback(t,s,i){this._$AK(t,i);}_$EC(t,s){const i=this.constructor.elementProperties.get(t),e=this.constructor._$Eu(t,i);if(void 0!==e&&!0===i.reflect){const r=(void 0!==i.converter?.toAttribute?i.converter:u$2).toAttribute(s,i.type);this._$Em=t,null==r?this.removeAttribute(e):this.setAttribute(e,r),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),r="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:u$2;this._$Em=e,this[e]=r.fromAttribute(s,t.type),this._$Em=null;}}requestUpdate(t,s,i){if(void 0!==t){if(i??=this.constructor.getPropertyOptions(t),!(i.hasChanged??f$1)(this[t],s))return;this.P(t,s,i);}!1===this.isUpdatePending&&(this._$ES=this._$ET());}P(t,s,i){this._$AL.has(t)||this._$AL.set(t,s),!0===i.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t);}async _$ET(){this.isUpdatePending=!0;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)!0!==i.wrapped||this._$AL.has(s)||void 0===this[s]||this.P(s,this[s],i);}let t=!1;const s=this._$AL;try{t=this.shouldUpdate(s),t?(this.willUpdate(s),this._$EO?.forEach((t=>t.hostUpdate?.())),this.update(s)):this._$EU();}catch(s){throw t=!1,this._$EU(),s}t&&this._$AE(s);}willUpdate(t){}_$AE(t){this._$EO?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t);}_$EU(){this._$AL=new Map,this.isUpdatePending=!1;}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return !0}update(t){this._$Ej&&=this._$Ej.forEach((t=>this._$EC(t,this[t]))),this._$EU();}updated(t){}firstUpdated(t){}}b.elementStyles=[],b.shadowRootOptions={mode:"open"},b[d$1("elementProperties")]=new Map,b[d$1("finalized")]=new Map,p$1?.({ReactiveElement:b}),(a$2.reactiveElementVersions??=[]).push("2.0.4");
13
+
14
+ /**
15
+ * @license
16
+ * Copyright 2017 Google LLC
17
+ * SPDX-License-Identifier: BSD-3-Clause
18
+ */
19
+ const t$1=globalThis,i$3=t$1.trustedTypes,s$1=i$3?i$3.createPolicy("lit-html",{createHTML:t=>t}):void 0,e$2="$lit$",h=`lit$${Math.random().toFixed(9).slice(2)}$`,o$2="?"+h,n$1=`<${o$2}>`,r$1=document,l$1=()=>r$1.createComment(""),c=t=>null===t||"object"!=typeof t&&"function"!=typeof t,a$1=Array.isArray,u$1=t=>a$1(t)||"function"==typeof t?.[Symbol.iterator],d="[ \t\n\f\r]",f=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,v=/-->/g,_=/>/g,m=RegExp(`>|${d}(?:([^\\s"'>=/]+)(${d}*=${d}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),p=/'/g,g=/"/g,$=/^(?:script|style|textarea|title)$/i,y=t=>(i,...s)=>({_$litType$:t,strings:i,values:s}),x=y(1),T=Symbol.for("lit-noChange"),E=Symbol.for("lit-nothing"),A=new WeakMap,C=r$1.createTreeWalker(r$1,129);function P(t,i){if(!a$1(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==s$1?s$1.createHTML(i):i}const V=(t,i)=>{const s=t.length-1,o=[];let r,l=2===i?"<svg>":3===i?"<math>":"",c=f;for(let i=0;i<s;i++){const s=t[i];let a,u,d=-1,y=0;for(;y<s.length&&(c.lastIndex=y,u=c.exec(s),null!==u);)y=c.lastIndex,c===f?"!--"===u[1]?c=v:void 0!==u[1]?c=_:void 0!==u[2]?($.test(u[2])&&(r=RegExp("</"+u[2],"g")),c=m):void 0!==u[3]&&(c=m):c===m?">"===u[0]?(c=r??f,d=-1):void 0===u[1]?d=-2:(d=c.lastIndex-u[2].length,a=u[1],c=void 0===u[3]?m:'"'===u[3]?g:p):c===g||c===p?c=m:c===v||c===_?c=f:(c=m,r=void 0);const x=c===m&&t[i+1].startsWith("/>")?" ":"";l+=c===f?s+n$1:d>=0?(o.push(a),s.slice(0,d)+e$2+s.slice(d)+h+x):s+h+(-2===d?i:x);}return [P(t,l+(t[s]||"<?>")+(2===i?"</svg>":3===i?"</math>":"")),o]};class N{constructor({strings:t,_$litType$:s},n){let r;this.parts=[];let c=0,a=0;const u=t.length-1,d=this.parts,[f,v]=V(t,s);if(this.el=N.createElement(f,n),C.currentNode=this.el.content,2===s||3===s){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes);}for(;null!==(r=C.nextNode())&&d.length<u;){if(1===r.nodeType){if(r.hasAttributes())for(const t of r.getAttributeNames())if(t.endsWith(e$2)){const i=v[a++],s=r.getAttribute(t).split(h),e=/([.?@])?(.*)/.exec(i);d.push({type:1,index:c,name:e[2],strings:s,ctor:"."===e[1]?H:"?"===e[1]?I:"@"===e[1]?L:k}),r.removeAttribute(t);}else t.startsWith(h)&&(d.push({type:6,index:c}),r.removeAttribute(t));if($.test(r.tagName)){const t=r.textContent.split(h),s=t.length-1;if(s>0){r.textContent=i$3?i$3.emptyScript:"";for(let i=0;i<s;i++)r.append(t[i],l$1()),C.nextNode(),d.push({type:2,index:++c});r.append(t[s],l$1());}}}else if(8===r.nodeType)if(r.data===o$2)d.push({type:2,index:c});else {let t=-1;for(;-1!==(t=r.data.indexOf(h,t+1));)d.push({type:7,index:c}),t+=h.length-1;}c++;}}static createElement(t,i){const s=r$1.createElement("template");return s.innerHTML=t,s}}function S(t,i,s=t,e){if(i===T)return i;let h=void 0!==e?s._$Co?.[e]:s._$Cl;const o=c(i)?void 0:i._$litDirective$;return h?.constructor!==o&&(h?._$AO?.(!1),void 0===o?h=void 0:(h=new o(t),h._$AT(t,s,e)),void 0!==e?(s._$Co??=[])[e]=h:s._$Cl=h),void 0!==h&&(i=S(t,h._$AS(t,i.values),h,e)),i}class M{constructor(t,i){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=i;}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:i},parts:s}=this._$AD,e=(t?.creationScope??r$1).importNode(i,!0);C.currentNode=e;let h=C.nextNode(),o=0,n=0,l=s[0];for(;void 0!==l;){if(o===l.index){let i;2===l.type?i=new R(h,h.nextSibling,this,t):1===l.type?i=new l.ctor(h,l.name,l.strings,this,t):6===l.type&&(i=new z(h,this,t)),this._$AV.push(i),l=s[++n];}o!==l?.index&&(h=C.nextNode(),o++);}return C.currentNode=r$1,e}p(t){let i=0;for(const s of this._$AV)void 0!==s&&(void 0!==s.strings?(s._$AI(t,s,i),i+=s.strings.length-2):s._$AI(t[i])),i++;}}class R{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,i,s,e){this.type=2,this._$AH=E,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=s,this.options=e,this._$Cv=e?.isConnected??!0;}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===t?.nodeType&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=S(this,t,i),c(t)?t===E||null==t||""===t?(this._$AH!==E&&this._$AR(),this._$AH=E):t!==this._$AH&&t!==T&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):u$1(t)?this.k(t):this._(t);}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t));}_(t){this._$AH!==E&&c(this._$AH)?this._$AA.nextSibling.data=t:this.T(r$1.createTextNode(t)),this._$AH=t;}$(t){const{values:i,_$litType$:s}=t,e="number"==typeof s?this._$AC(t):(void 0===s.el&&(s.el=N.createElement(P(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===e)this._$AH.p(i);else {const t=new M(e,this),s=t.u(this.options);t.p(i),this.T(s),this._$AH=t;}}_$AC(t){let i=A.get(t.strings);return void 0===i&&A.set(t.strings,i=new N(t)),i}k(t){a$1(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let s,e=0;for(const h of t)e===i.length?i.push(s=new R(this.O(l$1()),this.O(l$1()),this,this.options)):s=i[e],s._$AI(h),e++;e<i.length&&(this._$AR(s&&s._$AB.nextSibling,e),i.length=e);}_$AR(t=this._$AA.nextSibling,i){for(this._$AP?.(!1,!0,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i;}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t));}}class k{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,i,s,e,h){this.type=1,this._$AH=E,this._$AN=void 0,this.element=t,this.name=i,this._$AM=e,this.options=h,s.length>2||""!==s[0]||""!==s[1]?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=E;}_$AI(t,i=this,s,e){const h=this.strings;let o=!1;if(void 0===h)t=S(this,t,i,0),o=!c(t)||t!==this._$AH&&t!==T,o&&(this._$AH=t);else {const e=t;let n,r;for(t=h[0],n=0;n<h.length-1;n++)r=S(this,e[s+n],i,n),r===T&&(r=this._$AH[n]),o||=!c(r)||r!==this._$AH[n],r===E?t=E:t!==E&&(t+=(r??"")+h[n+1]),this._$AH[n]=r;}o&&!e&&this.j(t);}j(t){t===E?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"");}}class H extends k{constructor(){super(...arguments),this.type=3;}j(t){this.element[this.name]=t===E?void 0:t;}}class I extends k{constructor(){super(...arguments),this.type=4;}j(t){this.element.toggleAttribute(this.name,!!t&&t!==E);}}class L extends k{constructor(t,i,s,e,h){super(t,i,s,e,h),this.type=5;}_$AI(t,i=this){if((t=S(this,t,i,0)??E)===T)return;const s=this._$AH,e=t===E&&s!==E||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,h=t!==E&&(s===E||e);e&&this.element.removeEventListener(this.name,this,s),h&&this.element.addEventListener(this.name,this,t),this._$AH=t;}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t);}}class z{constructor(t,i,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=s;}get _$AU(){return this._$AM._$AU}_$AI(t){S(this,t);}}const j=t$1.litHtmlPolyfillSupport;j?.(N,R),(t$1.litHtmlVersions??=[]).push("3.2.1");const B=(t,i,s)=>{const e=s?.renderBefore??i;let h=e._$litPart$;if(void 0===h){const t=s?.renderBefore??null;e._$litPart$=h=new R(i.insertBefore(l$1(),t),t,void 0,s??{});}return h._$AI(t),h};
20
+
21
+ /**
22
+ * @license
23
+ * Copyright 2017 Google LLC
24
+ * SPDX-License-Identifier: BSD-3-Clause
25
+ */class r extends b{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0;}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const s=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=B(s,this.renderRoot,this.renderOptions);}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0);}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1);}render(){return T}}r._$litElement$=!0,r["finalized"]=!0,globalThis.litElementHydrateSupport?.({LitElement:r});const i$2=globalThis.litElementPolyfillSupport;i$2?.({LitElement:r});(globalThis.litElementVersions??=[]).push("4.1.1");
26
+
27
+ /**
28
+ * @license
29
+ * Copyright 2020 Google LLC
30
+ * SPDX-License-Identifier: BSD-3-Clause
31
+ */
32
+ const a=Symbol.for(""),o$1=t=>{if(t?.r===a)return t?._$litStatic$},s=t=>({_$litStatic$:t,r:a}),i$1=(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=!1;for(;$<a;){for(c=r[$];$<a&&void 0!==(i=e[$],s=o$1(i));)c+=s+r[++$],f=!0;$!==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);
33
+
34
+ /**
35
+ * @license
36
+ * Copyright 2017 Google LLC
37
+ * SPDX-License-Identifier: BSD-3-Clause
38
+ */
39
+ const t={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},e$1=t=>(...e)=>({_$litDirective$:t,values:e});class i{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i;}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}
40
+
41
+ /**
42
+ * @license
43
+ * Copyright 2018 Google LLC
44
+ * SPDX-License-Identifier: BSD-3-Clause
45
+ */const e=e$1(class extends i{constructor(t$1){if(super(t$1),t$1.type!==t.ATTRIBUTE||"class"!==t$1.name||t$1.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return " "+Object.keys(t).filter((s=>t[s])).join(" ")+" "}update(s,[i]){if(void 0===this.st){this.st=new Set,void 0!==s.strings&&(this.nt=new Set(s.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in i)i[t]&&!this.nt?.has(t)&&this.st.add(t);return this.render(i)}const r=s.element.classList;for(const t of this.st)t in i||(r.remove(t),this.st.delete(t));for(const t in i){const s=!!i[t];s===this.st.has(t)||this.nt?.has(t)||(s?(r.add(t),this.st.add(t)):(r.remove(t),this.st.delete(t)));}return T}});
46
+
47
+ // Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
48
+ // See LICENSE in the project root for license information.
49
+
50
+ // ---------------------------------------------------------------------
51
+
52
+ /* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
53
+
54
+ class AuroLibraryRuntimeUtils {
55
+
56
+ /* eslint-disable jsdoc/require-param */
57
+
58
+ /**
59
+ * This will register a new custom element with the browser.
60
+ * @param {String} name - The name of the custom element.
61
+ * @param {Object} componentClass - The class to register as a custom element.
62
+ * @returns {void}
63
+ */
64
+ registerComponent(name, componentClass) {
65
+ if (!customElements.get(name)) {
66
+ customElements.define(name, class extends componentClass {});
67
+ }
68
+ }
69
+
70
+ /**
71
+ * Finds and returns the closest HTML Element based on a selector.
72
+ * @returns {void}
73
+ */
74
+ closestElement(
75
+ selector, // selector like in .closest()
76
+ base = this, // extra functionality to skip a parent
77
+ __Closest = (el, found = el && el.closest(selector)) =>
78
+ !el || el === document || el === window
79
+ ? null // standard .closest() returns null for non-found selectors also
80
+ : found
81
+ ? found // found a selector INside this element
82
+ : __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
83
+ ) {
84
+ return __Closest(base);
85
+ }
86
+ /* eslint-enable jsdoc/require-param */
87
+
88
+ /**
89
+ * 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.
90
+ * @param {Object} elem - The element to check.
91
+ * @param {String} tagName - The name of the Auro component to check for or add as an attribute.
92
+ * @returns {void}
93
+ */
94
+ handleComponentTagRename(elem, tagName) {
95
+ const tag = tagName.toLowerCase();
96
+ const elemTag = elem.tagName.toLowerCase();
12
97
 
13
- var iconVersion = '5.0.2';
98
+ if (elemTag !== tag) {
99
+ elem.setAttribute(tag, true);
100
+ }
101
+ }
14
102
 
15
- var styleCss = css`:host{interpolate-size:allow-keywords}:host .trigger{position:relative;cursor:pointer;display:flex;flex-direction:row;border-width:1px;border-style:solid;border-radius:var(--ds-border-radius, 0.375rem)}:host .trigger:hover{text-decoration:underline}:host ::slotted([slot=trigger]){padding-left:var(--ds-size-100, 0.5rem);padding-right:var(--ds-size-200, 1rem);font-size:var(--ds-text-heading-300-size, 1.125rem)}:host .iconWrapper{height:var(--ds-size-300, 1.5rem);margin-top:-2px}:host [auro-icon]{height:var(--ds-size-300, 1.5rem);width:var(--ds-size-300, 1.5rem)}:host [auro-icon][hidden]{display:none}:host .content{width:100%;transition:all .5s ease-in-out;transition-property:height;font-size:var(--ds-text-body-size-default, 1rem)}:host .componentWrapper{height:100%;overflow:hidden}:host .contentWrapper{padding-left:var(--ds-size-400, 2rem);padding-bottom:var(--ds-size-300, 1.5rem);padding-right:var(--ds-size-200, 1rem)}:host(:focus) .trigger{border-width:1px;border-style:solid}:host([chevron=right]) ::slotted([slot=trigger]){padding-left:0;padding-right:var(--ds-size-50, 0.25rem)}:host([alignRight]) .componentWrapper{display:flex;flex-direction:column;align-items:flex-end}:host([fluid]) .trigger{width:100%}:host([grouped]) .componentWrapper{border-width:1px;border-style:solid}:host(:not([expanded])) .content,:host([expanded=false]) .content{height:0 !important}:host([expanded]) .content{height:auto}:host([emphasis]) .trigger{border-style:solid;border-width:1px;border-left-width:2px;padding-left:var(--ds-size-200, 1rem)}:host([emphasis]) .trigger:before{display:block;position:absolute;top:-1px;left:-2px;width:1px;height:calc(100% + 2px);content:"";border-left-style:solid;border-left-width:2px}:host([emphasis]) .trigger:focus{border-left-width:1px;margin-left:1px}:host([emphasis]) .content{border-left-width:2px;border-left-style:solid;padding:unset}:host([emphasis]) .contentWrapper{padding-left:var(--ds-size-200, 1rem)}:host([emphasis]) .iconWrapper{padding-right:var(--ds-size-200, 1rem)}:host([emphasis]:not([expanded]):hover) .trigger{text-decoration:unset}:host([variant=sm]) ::slotted([slot=trigger]){font-size:var(--ds-text-body-size-default, 1rem)}:host([variant=lg]) ::slotted([slot=trigger]){font-size:var(--ds-text-heading-400-size, 1.25rem)}:host([chevron=none]) ::slotted([slot=trigger]),:host([chevron=none]) .contentWrapper{padding-left:unset}`;
103
+ /**
104
+ * Validates if an element is a specific Auro component.
105
+ * @param {Object} elem - The element to validate.
106
+ * @param {String} tagName - The name of the Auro component to check against.
107
+ * @returns {Boolean} - Returns true if the element is the specified Auro component.
108
+ */
109
+ elementMatch(elem, tagName) {
110
+ const tag = tagName.toLowerCase();
111
+ const elemTag = elem.tagName.toLowerCase();
112
+
113
+ return elemTag === tag || elem.hasAttribute(tag);
114
+ }
115
+ }
116
+
117
+ // Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
118
+ // See LICENSE in the project root for license information.
16
119
 
17
- var colorCss = css`:host .trigger{color:var(--ds-auro-accordion-trigger-color);border-color:var(--ds-auro-accordion-trigger-border-color)}:host [auro-icon]{color:var(--ds-auro-accordion-trigger-icon-color)}:host(:focus){--ds-auro-accordion-trigger-border-color: var(--ds-color-border-active-default, #0074c8);--ds-auro-accordion-trigger-icon-color: var(--ds-color-icon-ui-secondary-focus-default, #7e7e7e)}:host(:hover){--ds-auro-accordion-trigger-icon-color: var(--ds-color-icon-ui-secondary-hover-default, #525252)}:host([grouped]) .componentWrapper{border-color:var(--ds-auro-accordion-group-border-color)}:host([emphasis]) .trigger:before{border-color:var(--ds-auro-accordion-trigger-border-color)}:host([emphasis]) .trigger:focus:before,:host([emphasis]) .trigger:hover:before{--ds-auro-accordion-trigger-border-color: var(--ds-color-border-active-default, #0074c8)}:host([emphasis]) .trigger:focus{--ds-auro-accordion-trigger-border-color: var(--ds-color-border-active-default, #0074c8)}:host([emphasis]) .content{border-left-color:var(--ds-auro-accordion-content-border-color)}:host([emphasis][expanded]) .trigger:before{--ds-auro-accordion-trigger-border-color: var(--ds-color-border-active-default, #0074c8)}:host([emphasis][expanded]) .content{--ds-auro-accordion-content-border-color: var(--ds-color-border-subtle-default, #f0f7fd)}`;
18
120
 
19
- var tokensCss = css`:host{--ds-auro-accordion-content-border-color: transparent;--ds-auro-accordion-group-border-color: var(--ds-color-border-divider-default, rgba(0, 0, 0, 0.12));--ds-auro-accordion-trigger-border-color: transparent;--ds-auro-accordion-trigger-color: var(--ds-color-text-primary-default, #2a2a2a);--ds-auro-accordion-trigger-icon-color: var(--ds-color-icon-ui-secondary-default-default, #7e7e7e)}`;
121
+ class AuroDependencyVersioning {
122
+
123
+ /**
124
+ * Generates a unique string to be used for child auro element naming.
125
+ * @private
126
+ * @param {string} baseName - Defines the first part of the unique element name.
127
+ * @param {string} version - Version of the component that will be appended to the baseName.
128
+ * @returns {string} - Unique string to be used for naming.
129
+ */
130
+ generateElementName(baseName, version) {
131
+ let result = baseName;
132
+
133
+ result += '-';
134
+ result += version.replace(/[.]/g, '_');
135
+
136
+ return result;
137
+ }
138
+
139
+ /**
140
+ * Generates a unique string to be used for child auro element naming.
141
+ * @param {string} baseName - Defines the first part of the unique element name.
142
+ * @param {string} version - Version of the component that will be appended to the baseName.
143
+ * @returns {string} - Unique string to be used for naming.
144
+ */
145
+ generateTag(baseName, version, tagClass) {
146
+ const elementName = this.generateElementName(baseName, version);
147
+ const tag = i$1`${s(elementName)}`;
148
+
149
+ if (!customElements.get(elementName)) {
150
+ customElements.define(elementName, class extends tagClass {});
151
+ }
152
+
153
+ return tag;
154
+ }
155
+ }
156
+
157
+ /**
158
+ * @license
159
+ * Copyright 2018 Google LLC
160
+ * SPDX-License-Identifier: BSD-3-Clause
161
+ */const o=o=>o??E;
162
+
163
+ // Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
164
+ // See LICENSE in the project root for license information.
165
+
166
+
167
+ /**
168
+ * @attr {Boolean} hidden - If present, the component will be hidden both visually and from screen readers
169
+ * @attr {Boolean} hiddenVisually - If present, the component will be hidden visually, but still read by screen readers
170
+ * @attr {Boolean} hiddenAudible - If present, the component will be hidden from screen readers, but seen visually
171
+ */
172
+
173
+ class AuroElement extends r {
174
+
175
+ // function to define props used within the scope of this component
176
+ static get properties() {
177
+ return {
178
+ hidden: { type: Boolean,
179
+ reflect: true },
180
+ hiddenVisually: { type: Boolean,
181
+ reflect: true },
182
+ hiddenAudible: { type: Boolean,
183
+ reflect: true },
184
+ };
185
+ }
186
+
187
+ /**
188
+ * @private Function that determines state of aria-hidden
189
+ */
190
+ hideAudible(value) {
191
+ if (value) {
192
+ return 'true'
193
+ }
194
+
195
+ return 'false'
196
+ }
197
+ }
198
+
199
+ var error = {"role":"img","color":"currentColor","title":"","desc":"Error alert indicator.","width":"var(--auro-size-lg, var(--ds-size-300, 1.5rem))","height":"var(--auro-size-lg, var(--ds-size-300, 1.5rem))","xmlns":"http://www.w3.org/2000/svg","xmlns_xlink":"http://www.w3.org/1999/xlink","viewBox":"0 0 24 24","path":"/icons","style":"ico_squareLarge","type":"icon","name":"error","category":"alert","deprecated":true,"svg":"<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" aria-labelledby=\"error__desc\" class=\"ico_squareLarge\" data-deprecated=\"true\" 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=\"error__desc\">Error alert indicator.</desc><path d=\"m13.047 5.599 6.786 11.586A1.207 1.207 0 0 1 18.786 19H5.214a1.207 1.207 0 0 1-1.047-1.815l6.786-11.586a1.214 1.214 0 0 1 2.094 0m-1.165.87a.23.23 0 0 0-.085.085L5.419 17.442a.232.232 0 0 0 .203.35h12.756a.234.234 0 0 0 .203-.35L12.203 6.554a.236.236 0 0 0-.321-.084M12 15.5a.75.75 0 1 1 0 1.5.75.75 0 0 1 0-1.5m-.024-6.22c.325 0 .589.261.589.583v4.434a.586.586 0 0 1-.589.583.586.586 0 0 1-.588-.583V9.863c0-.322.264-.583.588-.583\"/></svg>"};
200
+
201
+ /* eslint-disable no-underscore-dangle, jsdoc/no-undefined-types, jsdoc/require-param-description */
202
+
203
+ const _fetchMap = new Map();
204
+
205
+ /**
206
+ * A callback to parse Response body.
207
+ *
208
+ * @callback ResponseParser
209
+ * @param {Fetch.Response} response
210
+ * @returns {Promise}
211
+ */
212
+
213
+ /**
214
+ * A minimal in-memory map to de-duplicate Fetch API media requests.
215
+ *
216
+ * @param {String} uri
217
+ * @param {Object} [options={}]
218
+ * @param {ResponseParser} [options.responseParser=(response) => response.text()]
219
+ * @returns {Promise}
220
+ */
221
+ const cacheFetch = (uri, options = {}) => {
222
+ const responseParser = options.responseParser || ((response) => response.text());
223
+ if (!_fetchMap.has(uri)) {
224
+ _fetchMap.set(uri, fetch(uri).then(responseParser));
225
+ }
226
+ return _fetchMap.get(uri);
227
+ };
228
+
229
+ var styleCss$2 = i$5`*,*:before,*:after{box-sizing:border-box}@media(prefers-reduced-motion: reduce){*,*:before,*:after{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important}}*:focus-visible{outline:0}*:focus-visible{outline:0}: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}:host .logo{color:var(--ds-color-brand-midnight-400, #01426a)}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}.label{display:flex;align-items:flex-start}.label svg{margin:0 var(--ds-size-50, 0.25rem)}.labelContainer{line-height:1.8}`;
230
+
231
+ // Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
232
+ // See LICENSE in the project root for license information.
233
+
234
+
235
+ // See https://git.io/JJ6SJ for "How to document your components using JSDoc"
236
+ /**
237
+ * @attr {Boolean} onDark - Set value for on-dark version of auro-icon
238
+ * @slot - Hidden from visibility, used for a11y if icon description is needed
239
+ */
240
+
241
+ // build the component class
242
+ class BaseIcon extends AuroElement {
243
+ constructor() {
244
+ super();
245
+ this.onDark = false;
246
+ }
247
+
248
+ // function to define props used within the scope of this component
249
+ static get properties() {
250
+ return {
251
+ ...super.properties,
252
+ onDark: {
253
+ type: Boolean,
254
+ reflect: true
255
+ },
256
+
257
+ /**
258
+ * @private
259
+ */
260
+ svg: {
261
+ attribute: false,
262
+ reflect: true
263
+ }
264
+ };
265
+ }
266
+
267
+ static get styles() {
268
+ return i$5`
269
+ ${styleCss$2}
270
+ `;
271
+ }
272
+
273
+ /**
274
+ * Async function to fetch requested icon from npm CDN.
275
+ * @private
276
+ * @param {string} category - Icon category.
277
+ * @param {string} name - Icon name.
278
+ * @returns {SVGElement} DOM - Ready HTML to be appended.
279
+ */
280
+ async fetchIcon(category, name) {
281
+ let iconHTML = '';
282
+
283
+ if (category === 'logos') {
284
+ iconHTML = await cacheFetch(`${this.uri}/${category}/${name}.svg`);
285
+ } else {
286
+ iconHTML = await cacheFetch(`${this.uri}/icons/${category}/${name}.svg`);
287
+ }
288
+
289
+ const dom = new DOMParser().parseFromString(iconHTML, 'text/html');
290
+
291
+ return dom.body.querySelector('svg');
292
+ }
293
+
294
+ // lifecycle function
295
+ async firstUpdated() {
296
+ if (!this.customSvg) {
297
+ const svg = await this.fetchIcon(this.category, this.name);
298
+
299
+ if (svg) {
300
+ this.svg = svg;
301
+ } else if (!svg) {
302
+ const penDOM = new DOMParser().parseFromString(error.svg, 'text/html');
303
+
304
+ this.svg = penDOM.body.firstChild;
305
+ }
306
+ }
307
+ }
308
+ }
309
+
310
+ var tokensCss$3 = i$5`:host{--ds-auro-icon-color: var(--ds-color-icon-primary-default, $ds-color-icon-primary-default);--ds-auro-icon-size: var(--ds-size-300, $ds-size-300)}`;
311
+
312
+ var colorCss$3 = i$5`:host{color:var(--ds-auro-icon-color)}:host([customColor]){color:inherit}:host(:not([onDark])[accent]){--ds-auro-icon-color: var(--ds-color-icon-accent-default, #a2c270)}:host(:not([onDark])[disabled]){--ds-auro-icon-color: var(--ds-color-icon-ui-primary-disabled-default, #adadad)}:host(:not([onDark])[emphasis]){--ds-auro-icon-color: var(--ds-color-icon-emphasis-default, #2a2a2a)}:host(:not([onDark])[error]){--ds-auro-icon-color: var(--ds-color-icon-error-default, #cc1816)}:host(:not([onDark])[info]){--ds-auro-icon-color: var(--ds-color-icon-info-default, #326aa5)}:host(:not([onDark])[secondary]){--ds-auro-icon-color: var(--ds-color-icon-secondary-default, #7e8894)}:host(:not([onDark])[subtle]){--ds-auro-icon-color: var(--ds-color-icon-subtle-default, #a0c9f1)}:host(:not([onDark])[success]){--ds-auro-icon-color: var(--ds-color-icon-success-default, #40a080)}:host(:not([onDark])[tertiary]){--ds-auro-icon-color: var(--ds-color-icon-tertiary-default, #afb9c6)}:host(:not([onDark])[warning]){--ds-auro-icon-color: var(--ds-color-icon-warning-default, #c49432)}:host([onDark]){--ds-auro-icon-color: var(--ds-color-icon-primary-inverse, #f7f7f7)}:host([onDark][accent]){--ds-auro-icon-color: var(--ds-color-icon-accent-inverse, #badd81)}:host([onDark][disabled]){--ds-auro-icon-color: var(--ds-color-icon-ui-primary-disabled-inverse, #7e7e7e)}:host([onDark][emphasis]){--ds-auro-icon-color: var(--ds-color-icon-emphasis-inverse, #ffffff)}:host([onDark][error]){--ds-auro-icon-color: var(--ds-color-icon-error-inverse, #f9aca6)}:host([onDark][info]){--ds-auro-icon-color: var(--ds-color-icon-info-inverse, #89b2d4)}:host([onDark][secondary]){--ds-auro-icon-color: var(--ds-color-icon-secondary-inverse, #ccd2db)}:host([onDark][subtle]){--ds-auro-icon-color: var(--ds-color-icon-subtle-inverse, #326aa5)}:host([onDark][success]){--ds-auro-icon-color: var(--ds-color-icon-success-inverse, #8eceb9)}:host([onDark][tertiary]){--ds-auro-icon-color: var(--ds-color-icon-tertiary-inverse, #939fad)}:host([onDark][warning]){--ds-auro-icon-color: var(--ds-color-icon-warning-inverse, #f2c153)}`;
313
+
314
+ // Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
315
+ // See LICENSE in the project root for license information.
316
+
317
+
318
+ // See https://git.io/JJ6SJ for "How to document your components using JSDoc"
319
+ /**
320
+ * auro-icon provides users a way to use the Auro Icons by simply passing in the category and name.
321
+ *
322
+ * @attr {String} category - The category of the icon you are looking for. See https://auro.alaskaair.com/icons/usage.
323
+ * @attr {String} name - The name of the icon you are looking for without the file extension. See https://auro.alaskaair.com/icons/usage
324
+ * @attr {Boolean} customColor - Removes primary selector.
325
+ * @attr {Boolean} customSvg - When true, auro-icon will render a custom SVG inside the default slot.
326
+ * @attr {Boolean} label - Exposes content in slot as icon label.
327
+ * @attr {Boolean} primary - DEPRECATED: Sets the icon to use the baseline primary icon style.
328
+ * @attr {Boolean} accent - Sets the icon to use the accent style.
329
+ * @attr {Boolean} emphasis - Sets the icon to use the emphasis style.
330
+ * @attr {Boolean} disabled - Sets the icon to use the disabled style.
331
+ * @attr {Boolean} error - Sets the icon to use the error style.
332
+ * @attr {Boolean} info - Sets the icon to use the info style.
333
+ * @attr {Boolean} secondary - Sets the icon to use the secondary style.
334
+ * @attr {Boolean} tertiary - Sets the icon to use the tertiary style.
335
+ * @attr {Boolean} subtle - Sets the icon to use the subtle style.
336
+ * @attr {Boolean} success - Sets the icon to use the success style.
337
+ * @attr {Boolean} warning - Sets the icon to use the warning style.
338
+ * @attr {String} ariaHidden - Set aria-hidden value. Default is `true`. Option is `false`.
339
+ * @attr {String} uri - Set the uri for CDN used when fetching icons
340
+ * @slot - Hidden from visibility, used for a11y if icon description is needed.
341
+ * @slot svg - Used for custom SVG content.
342
+ */
343
+
344
+ // build the component class
345
+ class AuroIcon extends BaseIcon {
346
+ constructor() {
347
+ super();
348
+
349
+ this.uri = 'https://cdn.jsdelivr.net/npm/@alaskaairux/icons@latest/dist';
350
+
351
+ this.privateDefaults();
352
+ }
353
+
354
+ /**
355
+ * Internal Defaults.
356
+ * @private
357
+ * @returns {void}
358
+ */
359
+ privateDefaults() {
360
+ this.accent = false;
361
+ this.customColor = false;
362
+ this.customSvg = false;
363
+ this.disabled = false;
364
+ this.emphasis = false;
365
+ this.error = false;
366
+ this.info = false;
367
+ this.label = false;
368
+ this.primary = false;
369
+ this.secondary = false;
370
+ this.subtle = false;
371
+ this.success = false;
372
+ this.tertiary = false;
373
+ this.warning = false;
374
+ this.runtimeUtils = new AuroLibraryRuntimeUtils();
375
+ }
376
+
377
+ // function to define props used within the scope of this component
378
+ static get properties() {
379
+ return {
380
+ ...super.properties,
381
+ accent: {
382
+ type: Boolean,
383
+ reflect: true
384
+ },
385
+ ariaHidden: {
386
+ type: String,
387
+ reflect: true
388
+ },
389
+ category: {
390
+ type: String,
391
+ reflect: true
392
+ },
393
+ customColor: {
394
+ type: Boolean
395
+ },
396
+ customSvg: {
397
+ type: Boolean
398
+ },
399
+ disabled: {
400
+ type: Boolean,
401
+ reflect: true
402
+ },
403
+ emphasis: {
404
+ type: Boolean,
405
+ reflect: true
406
+ },
407
+ error: {
408
+ type: Boolean,
409
+ reflect: true
410
+ },
411
+ info: {
412
+ type: Boolean,
413
+ reflect: true
414
+ },
415
+ label: {
416
+ type: Boolean,
417
+ reflect: true
418
+ },
419
+ name: {
420
+ type: String,
421
+ reflect: true
422
+ },
423
+ primary: {
424
+ type: Boolean,
425
+ reflect: true
426
+ },
427
+ secondary: {
428
+ type: Boolean,
429
+ reflect: true
430
+ },
431
+ subtle: {
432
+ type: Boolean,
433
+ reflect: true
434
+ },
435
+ success: {
436
+ type: Boolean,
437
+ reflect: true
438
+ },
439
+ tertiary: {
440
+ type: Boolean,
441
+ reflect: true
442
+ },
443
+ uri: {
444
+ type: String
445
+ },
446
+ warning: {
447
+ type: Boolean,
448
+ reflect: true
449
+ }
450
+ };
451
+ }
452
+
453
+ static get styles() {
454
+ return [
455
+ super.styles,
456
+ i$5`${tokensCss$3}`,
457
+ i$5`${styleCss$2}`,
458
+ i$5`${colorCss$3}`
459
+ ];
460
+ }
461
+
462
+ /**
463
+ * This will register this element with the browser.
464
+ * @param {string} [name="auro-icon"] - The name of element that you want to register to.
465
+ *
466
+ * @example
467
+ * AuroIcon.register("custom-icon") // this will register this element to <custom-icon/>
468
+ *
469
+ */
470
+ static register(name = "auro-icon") {
471
+ AuroLibraryRuntimeUtils.prototype.registerComponent(name, AuroIcon);
472
+ }
473
+
474
+ connectedCallback() {
475
+ super.connectedCallback();
476
+
477
+ // Add the tag name as an attribute if it is different than the component name
478
+ this.runtimeUtils.handleComponentTagRename(this, 'auro-icon');
479
+ }
480
+
481
+ // function that renders the HTML and CSS into the scope of the component
482
+ render() {
483
+ const a11y = {
484
+ 'labelContainer': true,
485
+ 'util_displayHiddenVisually': !this.label
486
+ };
487
+
488
+ const classes = {
489
+ 'label': this.label
490
+ };
491
+
492
+ return x`
493
+ <div
494
+ class="${e(classes)}"
495
+ title="${o(this.title || undefined)}">
496
+ <span aria-hidden="${o(this.ariaHidden ? this.ariaHidden : true)}" part="svg">
497
+ ${this.customSvg ? x`
498
+ <slot name="svg"></slot>
499
+ ` : x`
500
+ ${this.svg}
501
+ `
502
+ }
503
+ </span>
504
+
505
+ <div class="${e(a11y)}">
506
+ <slot></slot>
507
+ </div>
508
+ </div>
509
+ `;
510
+ }
511
+ }
512
+
513
+ var iconVersion = '6.0.2';
514
+
515
+ var chevronUp = {"role":"img","color":"currentColor","title":"","desc":"Directional indicator; up.","width":"var(--auro-size-lg, var(--ds-size-300, 1.5rem))","height":"var(--auro-size-lg, var(--ds-size-300, 1.5rem))","xmlns":"http://www.w3.org/2000/svg","xmlns_xlink":"http://www.w3.org/1999/xlink","viewBox":"0 0 24 24","path":"/icons","style":"ico_squareLarge","type":"icon","name":"chevron-up","category":"interface","svg":"<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" aria-labelledby=\"chevron-up__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=\"chevron-up__desc\">Directional indicator; up.</desc><path d=\"m17.603 14.343-.073.084a.75.75 0 0 1-.976.073l-.084-.073L12 9.957l-4.47 4.47a.75.75 0 0 1-.976.073l-.084-.073a.75.75 0 0 1-.073-.976l.073-.085 4.823-4.823a1 1 0 0 1 1.414 0l4.823 4.823a.75.75 0 0 1 .073.977\"/></svg>"};
516
+
517
+ var chevronDown = {"role":"img","color":"currentColor","title":"","desc":"Directional indicator; down.","width":"var(--auro-size-lg, var(--ds-size-300, 1.5rem))","height":"var(--auro-size-lg, var(--ds-size-300, 1.5rem))","xmlns":"http://www.w3.org/2000/svg","xmlns_xlink":"http://www.w3.org/1999/xlink","viewBox":"0 0 24 24","path":"/icons","style":"ico_squareLarge","type":"icon","name":"chevron-down","category":"interface","svg":"<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" aria-labelledby=\"chevron-down__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=\"chevron-down__desc\">Directional indicator; down.</desc><path d=\"m6.397 9.554.073-.084a.75.75 0 0 1 .976-.073l.084.073L12 13.939l4.47-4.47a.75.75 0 0 1 .976-.072l.084.073a.75.75 0 0 1 .073.976l-.073.084L13.061 15l-.354.354a1 1 0 0 1-1.414 0L10.939 15l-4.47-4.47a.75.75 0 0 1-.072-.976l.073-.084z\"/></svg>"};
518
+
519
+ var styleCss$1 = i$5`:host{interpolate-size:allow-keywords}:host .trigger{position:relative;cursor:pointer;display:flex;flex-direction:row;border-width:1px;border-style:solid;border-radius:var(--ds-border-radius, 0.375rem)}:host .trigger:hover{text-decoration:underline}:host ::slotted([slot=trigger]){padding-left:var(--ds-size-100, 0.5rem);padding-right:var(--ds-size-200, 1rem);font-size:var(--ds-text-heading-300-size, 1.125rem)}:host .iconWrapper{height:var(--ds-size-300, 1.5rem);margin-top:-2px}:host [auro-icon]{--ds-auro-icon-size: var(--ds-size-300,$ds-size-300)}:host [auro-icon][hidden]{display:none}:host .content{width:100%;transition:all .5s ease-in-out;transition-property:height;font-size:var(--ds-text-body-size-default, 1rem)}:host .componentWrapper{height:100%;overflow:hidden}:host .contentWrapper{padding-left:var(--ds-size-400, 2rem);padding-bottom:var(--ds-size-300, 1.5rem);padding-right:var(--ds-size-200, 1rem)}:host(:focus) .trigger{border-width:1px;border-style:solid}:host([chevron=right]) ::slotted([slot=trigger]){padding-left:0;padding-right:var(--ds-size-50, 0.25rem)}:host([alignRight]) .componentWrapper{display:flex;flex-direction:column;align-items:flex-end}:host([fluid]) .trigger{width:100%}:host([grouped]) .componentWrapper{border-bottom-width:1px;border-bottom-style:solid}:host(:not([expanded])) .content,:host([expanded=false]) .content{height:0 !important}:host([expanded]) .content{height:auto}:host([emphasis]) .trigger{border-style:solid;border-width:1px;border-left-width:2px;padding-left:var(--ds-size-200, 1rem)}:host([emphasis]) .trigger:before{display:block;position:absolute;top:-1px;left:-2px;width:1px;height:calc(100% + 2px);content:"";border-left-style:solid;border-left-width:2px}:host([emphasis]) .trigger:focus{border-left-width:1px;margin-left:1px}:host([emphasis]) .content{border-left-width:2px;border-left-style:solid;padding:unset}:host([emphasis]) .contentWrapper{padding-left:var(--ds-size-200, 1rem)}:host([emphasis]) .iconWrapper{padding-right:var(--ds-size-200, 1rem)}:host([emphasis]:not([expanded]):hover) .trigger{text-decoration:unset}:host([variant=sm]) ::slotted([slot=trigger]){font-size:var(--ds-text-body-size-default, 1rem)}:host([variant=lg]) ::slotted([slot=trigger]){font-size:var(--ds-text-heading-400-size, 1.25rem)}:host([chevron=none]) ::slotted([slot=trigger]),:host([chevron=none]) .contentWrapper{padding-left:unset}`;
520
+
521
+ var colorCss$2 = i$5`:host .trigger{color:var(--ds-auro-accordion-trigger-color);border-color:var(--ds-auro-accordion-trigger-border-color)}:host [auro-icon]{color:var(--ds-auro-accordion-trigger-icon-color)}:host(:focus){--ds-auro-accordion-trigger-border-color: var(--ds-color-border-active-default, #0074c8);--ds-auro-accordion-trigger-icon-color: var(--ds-color-icon-ui-secondary-focus-default, #7e7e7e)}:host(:hover){--ds-auro-accordion-trigger-icon-color: var(--ds-color-icon-ui-secondary-hover-default, #525252)}:host([grouped]) .componentWrapper{border-bottom-color:var(--ds-auro-accordion-group-border-color)}:host([emphasis]) .trigger:before{border-color:var(--ds-auro-accordion-trigger-border-color)}:host([emphasis]) .trigger:focus:before,:host([emphasis]) .trigger:hover:before{--ds-auro-accordion-trigger-border-color: var(--ds-color-border-active-default, #0074c8)}:host([emphasis]) .trigger:focus{--ds-auro-accordion-trigger-border-color: var(--ds-color-border-active-default, #0074c8)}:host([emphasis]) .content{border-left-color:var(--ds-auro-accordion-content-border-color)}:host([emphasis][expanded]) .trigger:before{--ds-auro-accordion-trigger-border-color: var(--ds-color-border-active-default, #0074c8)}:host([emphasis][expanded]) .content{--ds-auro-accordion-content-border-color: var(--ds-color-border-subtle-default, #f0f7fd)}`;
522
+
523
+ var tokensCss$2 = i$5`:host{--ds-auro-accordion-content-border-color: transparent;--ds-auro-accordion-group-border-color: var(--ds-color-border-divider-default, rgba(0, 0, 0, 0.12));--ds-auro-accordion-trigger-border-color: transparent;--ds-auro-accordion-trigger-color: var(--ds-color-text-primary-default, #2a2a2a);--ds-auro-accordion-trigger-icon-color: var(--ds-color-icon-ui-secondary-default-default, #7e7e7e)}`;
20
524
 
21
525
  // Copyright (c) 2023 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
22
526
  // See LICENSE in the project root for license information.
@@ -43,7 +547,7 @@ var tokensCss = css`:host{--ds-auro-accordion-content-border-color: transparent;
43
547
  */
44
548
 
45
549
  // build the component class
46
- class AuroAccordion extends LitElement {
550
+ class AuroAccordion extends r {
47
551
  constructor() {
48
552
  super();
49
553
 
@@ -57,7 +561,7 @@ class AuroAccordion extends LitElement {
57
561
  /**
58
562
  * @private
59
563
  */
60
- this.runtimeUtils = new AuroLibraryRuntimeUtils__default();
564
+ this.runtimeUtils = new AuroLibraryRuntimeUtils();
61
565
 
62
566
  this.expanded = false;
63
567
  }
@@ -98,9 +602,9 @@ class AuroAccordion extends LitElement {
98
602
 
99
603
  static get styles() {
100
604
  return [
101
- colorCss,
102
- styleCss,
103
- tokensCss
605
+ colorCss$2,
606
+ styleCss$1,
607
+ tokensCss$2
104
608
  ];
105
609
  }
106
610
 
@@ -113,7 +617,7 @@ class AuroAccordion extends LitElement {
113
617
  *
114
618
  */
115
619
  static register(name = "auro-accordion") {
116
- AuroLibraryRuntimeUtils__default.prototype.registerComponent(name, AuroAccordion);
620
+ AuroLibraryRuntimeUtils.prototype.registerComponent(name, AuroAccordion);
117
621
  }
118
622
 
119
623
  firstUpdated() {
@@ -133,7 +637,7 @@ class AuroAccordion extends LitElement {
133
637
 
134
638
  svg.setAttribute('slot', 'svg');
135
639
 
136
- return html`${svg}`;
640
+ return u`${svg}`;
137
641
  }
138
642
 
139
643
  /**
@@ -160,25 +664,25 @@ class AuroAccordion extends LitElement {
160
664
  "lg": this.getAttribute('variant') === 'lg',
161
665
  };
162
666
 
163
- return html`
667
+ return u`
164
668
  <div class="componentWrapper" part="accordion">
165
669
  <auro-accordion-button
166
670
  ?fluid="${this.emphasis}"
167
- class="${classMap(buttonClasses)}"
671
+ class="${e(buttonClasses)}"
168
672
  id="accordionTrigger"
169
673
  aria-controls="accordionContent"
170
674
  aria-expanded="${this.expanded}"
171
675
  @click="${this.toggle}"
172
676
  part="trigger">
173
- <${this.iconTag} slot="icon" customSvg customSize customColor ?hidden="${!this.expanded}">
677
+ <${this.iconTag} slot="icon" customSvg customColor ?hidden="${!this.expanded}">
174
678
  ${this.generateIconHtml(chevronUp.svg)}
175
679
  </${this.iconTag}>
176
- <${this.iconTag} slot="icon" customSvg customSize customColor ?hidden="${this.expanded}">
680
+ <${this.iconTag} slot="icon" customSvg customColor ?hidden="${this.expanded}">
177
681
  ${this.generateIconHtml(chevronDown.svg)}
178
682
  </${this.iconTag}>
179
683
  <slot name="trigger" part="triggerSlot"></slot>
180
684
  </auro-accordion-button>
181
- <div class="content" id="accordionContent" aria-labelledby="accordionTrigger" inert="${!this.expanded || nothing}" part="content">
685
+ <div class="content" id="accordionContent" aria-labelledby="accordionTrigger" inert="${!this.expanded || E}" part="content">
182
686
  <div class="contentWrapper" part="contentWrapper">
183
687
  <slot></slot>
184
688
  </div>
@@ -203,14 +707,14 @@ class AuroAccordion extends LitElement {
203
707
  */
204
708
 
205
709
  // build the component class
206
- class AuroAccordionGroup extends LitElement {
710
+ class AuroAccordionGroup extends r {
207
711
  constructor() {
208
712
  super();
209
713
 
210
714
  /**
211
715
  * @private
212
716
  */
213
- this.runtimeUtils = new AuroLibraryRuntimeUtils__default();
717
+ this.runtimeUtils = new AuroLibraryRuntimeUtils();
214
718
  }
215
719
 
216
720
  // This function is to define props used within the scope of this component
@@ -240,7 +744,7 @@ class AuroAccordionGroup extends LitElement {
240
744
  *
241
745
  */
242
746
  static register(name = "auro-accordion-group") {
243
- AuroLibraryRuntimeUtils__default.prototype.registerComponent(name, AuroAccordionGroup);
747
+ AuroLibraryRuntimeUtils.prototype.registerComponent(name, AuroAccordionGroup);
244
748
  }
245
749
 
246
750
  firstUpdated() {
@@ -304,7 +808,7 @@ class AuroAccordionGroup extends LitElement {
304
808
 
305
809
  // function that renders the HTML and CSS into the scope of the component
306
810
  render() {
307
- return html$1`
811
+ return x`
308
812
  <div>
309
813
  <slot @slotchange="${this.handleSlotContentChange}"></slot>
310
814
  </div>
@@ -312,7 +816,396 @@ class AuroAccordionGroup extends LitElement {
312
816
  }
313
817
  }
314
818
 
315
- var styleButtonCss = css`*,*:before,*:after{box-sizing:border-box}@media(prefers-reduced-motion: reduce){*,*:before,*:after{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important}}*:focus-visible{outline:0}*:focus-visible{outline:0}:focus:not(:focus-visible){outline:3px solid transparent}:host{border:unset}:host .auro-button{all:unset;width:100%;padding:var(--ds-size-200, 1rem) 0;cursor:pointer;pointer-events:none}:host .auro-button:after{border-color:transparent}:host .contentWrapper{display:flex;flex-direction:row-reverse}:host .textSlot{display:flex;flex:1}:host(.sm) .auro-button{padding:var(--ds-size-100, 0.5rem) 0}:host(.lg) .auro-button{padding:calc(var(--ds-size-200, 1rem) + var(--ds-size-50, 0.25rem)) 0}:host([fluid]) .contentWrapper{width:100%}:host(.iconRight) .contentWrapper{display:flex;flex-direction:row}`;
819
+ var styleButtonCss = i$5`*,*:before,*:after{box-sizing:border-box}@media(prefers-reduced-motion: reduce){*,*:before,*:after{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important}}*:focus-visible{outline:0}*:focus-visible{outline:0}:focus:not(:focus-visible){outline:3px solid transparent}:host{border:unset}:host .auro-button{all:unset;width:100%;padding:var(--ds-size-200, 1rem) 0;cursor:pointer;pointer-events:none}:host .auro-button:after{border-color:transparent}:host .contentWrapper{display:flex;flex-direction:row-reverse}:host .textSlot{display:flex;flex:1}:host(.sm) .auro-button{padding:var(--ds-size-100, 0.5rem) 0}:host(.lg) .auro-button{padding:calc(var(--ds-size-200, 1rem) + var(--ds-size-50, 0.25rem)) 0}:host([fluid]) .contentWrapper{width:100%}:host(.iconRight) .contentWrapper{display:flex;flex-direction:row}`;
820
+
821
+ var styleCssAuroButton = i$5`*,*:before,*:after{box-sizing:border-box}@media(prefers-reduced-motion: reduce){*,*:before,*:after{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important}}*:focus-visible{outline:0}*:focus-visible{outline:0}: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}:host([fluid]) .auro-button,:host([fluid=true]) .auro-button{min-width:auto;width:100%}:host([variant=flat]){display:inline-block;height:var(--ds-size-300, 1.5rem);width:var(--ds-size-300, 1.5rem)}:host([variant=flat]) .auro-button{height:100%;width:100%}::slotted(svg){vertical-align:middle}slot{pointer-events:none}.auro-button{position:relative;padding:0 var(--ds-size-300, 1.5rem);cursor:pointer;border-width:1px;border-style:solid;border-radius:var(--ds-border-radius, 0.375rem);font-family:var(--ds-font-family-default, "AS Circular", Helvetica Neue, Arial, sans-serif);font-size:var(--ds-text-body-size-default, 1rem);font-weight:var(--ds-text-body-default-weight, 500);overflow:hidden;text-overflow:ellipsis;user-select:none;white-space:nowrap;min-height:var(--ds-size-600, 3rem);max-height:var(--ds-size-600, 3rem);display:inline-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}.auro-button:active{transform:scale(0.95)}.auro-button:focus-visible:not([variant=secondary]):not([variant=tertiary]):not([variant=flat]):after{display:block;content:"";height:calc(100% - 2px);width:calc(100% - 2px);position:absolute;top:1px;left:1px;border-radius:4px;border-style:solid;border-width:2px}.auro-button:focus-visible[variant=secondary]:after,.auro-button:focus-visible[variant=tertiary]:after{display:block;content:"";height:100%;width:100%;position:absolute;top:0;left:0;border-radius:var(--ds-border-radius, 0.375rem);border-style:solid;border-width:2px}.auro-button.loading{cursor:not-allowed}.auro-button.loading *:not([auro-loader]){visibility:hidden}@media screen and (min-width: 576px){.auro-button{min-width:8.75rem;width:auto}}.auro-button:disabled{cursor:not-allowed;transform:unset}.auro-button[variant=secondary]:disabled{cursor:not-allowed;transform:unset}.auro-button[variant=tertiary]:disabled{cursor:not-allowed;transform:unset}.auro-button[variant=flat]{height:unset;width:unset;min-height:unset;max-height:unset;min-width:unset;max-width:unset;border:0;border-radius:unset;gap:unset;padding:unset}.auro-button[onDark]:disabled{cursor:not-allowed;transform:unset}.auro-button[onDark][variant=secondary]:disabled{cursor:not-allowed;transform:unset}@media(hover: hover){.auro-button[onDark][variant=tertiary]:active,.auro-button[onDark][variant=tertiary]:hover{box-shadow:none}}.auro-button[onDark][variant=tertiary]:active{box-shadow:none}.auro-button[onDark][variant=tertiary]:disabled{cursor:not-allowed;transform:unset}.auro-button--slim{padding:var(--ds-size-100, 0.5rem) var(--ds-size-200, 1rem);font-size:var(--ds-text-body-size-sm, 0.875rem);min-width:unset;min-height:calc(var(--ds-size-500, 2.5rem) - var(--ds-size-50, 0.25rem));max-height:calc(var(--ds-size-500, 2.5rem) - var(--ds-size-50, 0.25rem))}.auro-button--iconOnly{padding:0 var(--ds-size-100, 0.5rem);border-radius:100px;min-width:unset;height:var(--ds-size-600, 3rem);width:var(--ds-size-500, 2.5rem)}.auro-button--iconOnly ::slotted(auro-icon){width:var(--ds-size-300, 1.5rem);height:var(--ds-size-300, 1.5rem)}.auro-button--iconOnlySlim{padding:0 var(--ds-size-50, 0.25rem);height:calc(var(--ds-size-400, 2rem) + var(--ds-size-50, 0.25rem));width:calc(var(--ds-size-300, 1.5rem) + var(--ds-size-50, 0.25rem))}.auro-button--iconOnlySlim ::slotted(auro-icon){width:calc(var(--ds-size-200, 1rem) + var(--ds-size-50, 0.25rem));height:calc(var(--ds-size-200, 1rem) + var(--ds-size-50, 0.25rem))}.auro-button--rounded{border-radius:100px;box-shadow:var(--ds-elevation-300, 0px 0px 15px rgba(0, 0, 0, 0.2));height:var(--ds-size-500, 2.5rem);min-width:unset;transition:all 300ms ease-out}.auro-button--rounded ::slotted(auro-icon){width:var(--ds-size-300, 1.5rem);height:var(--ds-size-300, 1.5rem)}:host([rounded]) .textSlot{transition:opacity 300ms ease-in;opacity:1}:host([rounded][iconOnly]) .textSlot{opacity:0}:host([rounded][iconOnly]) .textWrapper{display:none}:host([rounded][iconOnly]) .auro-button{min-width:unset;padding:unset;width:var(--ds-size-600, 3rem)}[auro-loader]{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);pointer-events:none}`;
822
+
823
+ var colorCss$1 = i$5`[auro-loader]{color:var(--ds-auro-button-loader-color)}.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:after{border-color:var(--ds-auro-button-border-inset-color)}.auro-button:not([ondark]):active{--ds-auro-button-container-color: var(--ds-color-container-ui-primary-active-default, #225296);--ds-auro-button-container-image: var(--ds-color-container-ui-primary-active-default, #225296);--ds-auro-button-border-color: var(--ds-color-container-ui-primary-active-default, #225296)}.auro-button:not([ondark])[disabled]{--ds-auro-button-container-color: var(--ds-color-container-ui-primary-disabled-default, #a0c9f1);--ds-auro-button-container-image: var(--ds-color-container-ui-primary-disabled-default, #a0c9f1);--ds-auro-button-border-color: var(--ds-color-container-ui-primary-disabled-default, #a0c9f1)}@media(hover: hover){.auro-button:not([ondark]):active:not(:disabled),.auro-button:not([ondark]):hover:not(:disabled){--ds-auro-button-container-color: var(--ds-color-container-ui-primary-hover-default, #193d73);--ds-auro-button-container-image: var(--ds-color-container-ui-primary-hover-default, #193d73);--ds-auro-button-border-color: var(--ds-color-container-ui-primary-hover-default, #193d73)}}.auro-button:not([ondark])[variant=secondary]{--ds-auro-button-container-color: var(--ds-color-container-ui-secondary-default-default, #ffffff);--ds-auro-button-container-image: var(--ds-color-container-ui-secondary-default-default, #ffffff);--ds-auro-button-border-color: var(--ds-color-border-ui-default-default, #2c67b5);--ds-auro-button-text-color: var(--ds-color-text-ui-default-default, #2c67b5)}@media(hover: hover){.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-color-container-ui-secondary-hover-default, rgba(0, 0, 0, 0.03));--ds-auro-button-container-image: var(--ds-color-container-ui-secondary-hover-default, rgba(0, 0, 0, 0.03));--ds-auro-button-border-color: var(--ds-color-border-ui-hover-default, #193d73);--ds-auro-button-text-color: var(--ds-color-text-ui-hover-default, #193d73)}}.auro-button:not([ondark])[variant=secondary]:focus-visible{--ds-auro-button-border-inset-color: var(--ds-color-border-ui-focus-default, #2c67b5)}.auro-button:not([ondark])[variant=secondary]:active{--ds-auro-button-container-color: var(--ds-color-container-ui-secondary-active-default, #f0f7fd);--ds-auro-button-container-image: var(--ds-color-container-ui-secondary-active-default, #f0f7fd);--ds-auro-button-border-color: var(--ds-color-border-ui-active-default, #225296);--ds-auro-button-text-color: var(--ds-color-text-ui-active-default, #225296)}.auro-button:not([ondark])[variant=secondary]:disabled{--ds-auro-button-container-color: var(--ds-color-container-ui-secondary-disabled-default, #f7f7f7);--ds-auro-button-container-image: var(--ds-color-container-ui-secondary-disabled-default, #f7f7f7);--ds-auro-button-border-color: var(--ds-color-border-ui-disabled-default, #adadad);--ds-auro-button-text-color: var(--ds-color-text-ui-disabled-default, #adadad)}.auro-button:not([ondark])[variant=tertiary]{--ds-auro-button-container-color: var(--ds-color-container-ui-tertiary-default-default, rgba(0, 0, 0, 0.03));--ds-auro-button-container-image: var(--ds-color-container-ui-tertiary-default-default, rgba(0, 0, 0, 0.03));--ds-auro-button-border-color: transparent;--ds-auro-button-text-color: var(--ds-color-text-ui-default-default, #2c67b5)}@media(hover: hover){.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-color-container-ui-tertiary-hover-default, rgba(0, 0, 0, 0.12));--ds-auro-button-container-image: var(--ds-color-container-ui-tertiary-hover-default, rgba(0, 0, 0, 0.12));--ds-auro-button-border-color: transparent;--ds-auro-button-text-color: var(--ds-color-text-ui-hover-default, #193d73)}}.auro-button:not([ondark])[variant=tertiary]:focus-visible{--ds-auro-button-border-color: var(--ds-color-border-ui-default-default, #2c67b5);--ds-auro-button-border-inset-color: var(--ds-color-border-ui-default-default, #2c67b5)}.auro-button:not([ondark])[variant=tertiary]:active{--ds-auro-button-container-color: var(--ds-color-container-ui-tertiary-active-default, rgba(0, 0, 0, 0.06));--ds-auro-button-container-image: var(--ds-color-container-ui-tertiary-active-default, rgba(0, 0, 0, 0.06));--ds-auro-button-border-color: transparent;--ds-auro-button-text-color: var(--ds-color-text-ui-active-default, #225296)}.auro-button:not([ondark])[variant=tertiary]:disabled{--ds-auro-button-container-color: var(--ds-color-container-ui-tertiary-disabled-default, rgba(0, 0, 0, 0.03));--ds-auro-button-container-image: var(--ds-color-container-ui-tertiary-disabled-default, rgba(0, 0, 0, 0.03));--ds-auro-button-border-color: transparent;--ds-auro-button-text-color: var(--ds-color-text-ui-disabled-default, #adadad)}.auro-button:not([ondark])[variant=flat]{color:var(--ds-color-icon-ui-secondary-default-default);background-color:transparent;background-image:none;border-color:transparent}@media(hover: hover){.auro-button:not([ondark])[variant=flat]:active:not(:disabled),.auro-button:not([ondark])[variant=flat]:hover:not(:disabled){color:var(--ds-color-icon-ui-secondary-hover-default);background-color:transparent;background-image:none;border-color:transparent}}.auro-button:not([ondark])[variant=flat]:disabled{color:var(--ds-color-icon-ui-secondary-disabled-default);background-color:transparent;background-image:none;border-color:transparent}.auro-button[ondark]{--ds-auro-button-container-color: var(--ds-color-container-ui-primary-default-inverse, #56bbde);--ds-auro-button-container-image: var(--ds-color-container-ui-primary-default-inverse, #56bbde);--ds-auro-button-text-color: var(--ds-color-text-primary-default, #2a2a2a);--ds-auro-button-loader-color: var(--ds-color-text-primary-inverse, #ffffff);--ds-auro-button-border-color: var(--ds-color-container-ui-primary-default-inverse, #56bbde)}@media(hover: hover){.auro-button[ondark]:active:not(:disabled),.auro-button[ondark]:hover:not(:disabled){--ds-auro-button-container-color: var(--ds-color-container-ui-primary-hover-inverse, #a8e9f7);--ds-auro-button-container-image: var(--ds-color-container-ui-primary-hover-inverse, #a8e9f7);--ds-auro-button-border-color: var(--ds-color-container-ui-primary-hover-inverse, #a8e9f7)}}.auro-button[ondark]:active{--ds-auro-button-container-color: var(--ds-color-container-ui-primary-active-inverse, #6ad5ef);--ds-auro-button-container-image: var(--ds-color-container-ui-primary-active-inverse, #6ad5ef);--ds-auro-button-border-color: var(--ds-color-container-ui-primary-active-inverse, #6ad5ef)}.auro-button[ondark][disabled]{--ds-auro-button-container-color: var(--ds-color-container-ui-primary-disabled-inverse, #275b72);--ds-auro-button-container-image: var(--ds-color-container-ui-primary-disabled-inverse, #275b72);--ds-auro-button-text-color: var(--ds-color-text-ui-disabled-inverse, #7e7e7e);--ds-auro-button-border-color: var(--ds-color-container-ui-primary-disabled-inverse, #275b72)}.auro-button[ondark][variant=secondary]{--ds-auro-button-container-color: var(--ds-color-container-ui-secondary-default-inverse, rgba(255, 255, 255, 0.03));--ds-auro-button-container-image: var(--ds-color-container-ui-secondary-default-inverse, rgba(255, 255, 255, 0.03));--ds-auro-button-border-color: var(--ds-color-border-ui-default-inverse, #56bbde);--ds-auro-button-text-color: var(--ds-color-text-ui-default-inverse, #56bbde)}@media(hover: hover){.auro-button[ondark][variant=secondary]:hover{--ds-auro-button-container-color: var(--ds-color-container-ui-secondary-hover-inverse, rgba(255, 255, 255, 0.12));--ds-auro-button-container-image: var(--ds-color-container-ui-secondary-hover-inverse, rgba(255, 255, 255, 0.12));--ds-auro-button-border-color: var(--ds-color-border-ui-hover-inverse, #a8e9f7);--ds-auro-button-text-color: var(--ds-color-text-ui-hover-inverse, #a8e9f7)}}.auro-button[ondark][variant=secondary]:focus-visible{--ds-auro-button-border-inset-color: var(--ds-color-border-ui-focus-inverse, #56bbde)}.auro-button[ondark][variant=secondary]:active{--ds-auro-button-container-color: var(--ds-color-container-ui-secondary-active-inverse, rgba(255, 255, 255, 0.06));--ds-auro-button-container-image: var(--ds-color-container-ui-secondary-active-inverse, rgba(255, 255, 255, 0.06));--ds-auro-button-border-color: var(--ds-color-border-ui-active-inverse, #6ad5ef);--ds-auro-button-text-color: var(--ds-color-text-ui-active-inverse, #6ad5ef)}.auro-button[ondark][variant=secondary]:disabled{--ds-auro-button-container-color: var(--ds-color-container-ui-secondary-disabled-inverse, rgba(255, 255, 255, 0.12));--ds-auro-button-container-image: var(--ds-color-container-ui-secondary-disabled-inverse, rgba(255, 255, 255, 0.12));--ds-auro-button-border-color: var(--ds-color-border-ui-disabled-inverse, #7e7e7e);--ds-auro-button-text-color: var(--ds-color-text-ui-disabled-inverse, #7e7e7e)}.auro-button[ondark][variant=tertiary]{--ds-auro-button-container-color: var(--ds-color-container-ui-tertiary-default-inverse, rgba(255, 255, 255, 0.12));--ds-auro-button-container-image: var(--ds-color-container-ui-tertiary-default-inverse, rgba(255, 255, 255, 0.12));--ds-auro-button-border-color: transparent;--ds-auro-button-text-color: var(--ds-color-text-ui-default-inverse, #56bbde)}@media(hover: hover){.auro-button[ondark][variant=tertiary]:active:not(:disabled),.auro-button[ondark][variant=tertiary]:hover:not(:disabled){--ds-auro-button-container-color: var(--ds-color-container-ui-tertiary-hover-inverse, rgba(255, 255, 255, 0.25));--ds-auro-button-container-image: var(--ds-color-container-ui-tertiary-hover-inverse, rgba(255, 255, 255, 0.25));--ds-auro-button-border-color: transparent;--ds-auro-button-text-color: var(--ds-color-text-ui-hover-inverse, #a8e9f7)}}.auro-button[ondark][variant=tertiary]:focus-visible{--ds-auro-button-border-color: var(--ds-color-border-ui-default-inverse, #56bbde);--ds-auro-button-border-inset-color: var(--ds-color-border-ui-default-inverse, #56bbde)}.auro-button[ondark][variant=tertiary]:active{--ds-auro-button-container-color: var(--ds-color-container-ui-tertiary-active-inverse, rgba(255, 255, 255, 0.06));--ds-auro-button-container-image: var(--ds-color-container-ui-tertiary-active-inverse, rgba(255, 255, 255, 0.06));--ds-auro-button-border-color: transparent;--ds-auro-button-text-color: var(--ds-color-text-ui-active-inverse, #6ad5ef)}.auro-button[ondark][variant=tertiary]:disabled{--ds-auro-button-container-color: var(--ds-color-container-ui-tertiary-disabled-inverse, rgba(255, 255, 255, 0.25));--ds-auro-button-container-image: var(--ds-color-container-ui-tertiary-disabled-inverse, rgba(255, 255, 255, 0.25));--ds-auro-button-border-color: transparent;--ds-auro-button-text-color: var(--ds-color-text-ui-disabled-inverse, #7e7e7e)}.auro-button[ondark][variant=flat]{color:var(--ds-color-icon-ui-secondary-default-inverse);background-color:transparent;background-image:none;border-color:transparent}@media(hover: hover){.auro-button[ondark][variant=flat]:active:not(:disabled),.auro-button[ondark][variant=flat]:hover:not(:disabled){color:var(--ds-color-icon-ui-secondary-hover-inverse);background-color:transparent;background-image:none;border-color:transparent}}.auro-button[ondark][variant=flat]:disabled{color:var(--ds-color-icon-ui-disabled-default);background-color:transparent;background-image:none;border-color:transparent}`;
824
+
825
+ var tokensCss$1 = i$5`:host{--ds-auro-button-border-color: var(--ds-color-container-ui-primary-default-default, #2c67b5);--ds-auro-button-border-inset-color: var(--ds-color-border-emphasis-inverse, #f2f7fb);--ds-auro-button-container-color: var(--ds-color-container-ui-primary-default-default, #2c67b5);--ds-auro-button-container-image: var(--ds-color-container-ui-primary-default-default, #2c67b5);--ds-auro-button-loader-color: var(--ds-color-utility-navy-default, #265688);--ds-auro-button-text-color: var(--ds-color-text-primary-inverse, #ffffff);--ds-auro-button-tap-color: transparent}`;
826
+
827
+ var styleCss = i$5`*,*:before,*:after{box-sizing:border-box}@media(prefers-reduced-motion: reduce){*,*:before,*:after{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important}}*:focus-visible{outline:0}*:focus-visible{outline:0}: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;font-size:1rem}:host>span{opacity:1}:host>.loader{display:none}:host>.no-animation{display:block}}`;
828
+
829
+ var colorCss = 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-color-utility-navy-default, #265688)}:host([ondark]){--ds-auro-loader-color: var(--ds-color-utility-cyan-inverse, #a8e9f7)}:host([white]){--ds-auro-loader-color: var(--ds-color-utility-neutral-inverse, #ccd2db)}: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}`;
830
+
831
+ var tokensCss = i$5`:host{--ds-auro-loader-background-color: currentcolor;--ds-auro-loader-border-color: currentcolor;--ds-auro-loader-color: currentcolor}`;
832
+
833
+ // Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
834
+ // See LICENSE in the project root for license information.
835
+
836
+
837
+ // See https://git.io/JJ6SJ for "How to document your components using JSDoc"
838
+ /**
839
+ * The auro-loader element is an easy to use animated loader component.
840
+ *
841
+ * @attr {Boolean} pulse - sets loader type
842
+ * @attr {Boolean} ringworm - sets loader type
843
+ * @attr {Boolean} laser - sets loader type
844
+ * @attr {Boolean} orbit - sets loader type
845
+ * @attr {Boolean} white - sets color of loader to white
846
+ * @attr {Boolean} ondark - sets color of loader to auro-color-ui-default-on-dark
847
+ * @attr {Boolean} onlight - sets color of loader to auro-color-ui-default-on-light
848
+ * @attr {Boolean} xs - sets size to extra small
849
+ * @attr {Boolean} sm - sets size to small
850
+ * @attr {Boolean} md - sets size to medium
851
+ * @attr {Boolean} lg - sets size to large
852
+ * @csspart element - apply style to adjust speed of animation
853
+ */
854
+
855
+ // build the component class
856
+ class AuroLoader extends r {
857
+ constructor() {
858
+ super();
859
+
860
+ /**
861
+ * @private
862
+ */
863
+ this.keys = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9];
864
+
865
+ /**
866
+ * @private
867
+ */
868
+ this.mdCount = 3;
869
+
870
+ /**
871
+ * @private
872
+ */
873
+ this.smCount = 2;
874
+
875
+ /**
876
+ * @private
877
+ */
878
+ this.runtimeUtils = new AuroLibraryRuntimeUtils();
879
+
880
+ this.orbit = false;
881
+ this.ringworm = false;
882
+ this.laser = false;
883
+ this.pulse = false;
884
+ }
885
+
886
+ // function to define props used within the scope of this component
887
+ static get properties() {
888
+ return {
889
+ pulse: {
890
+ type: Boolean,
891
+ reflect: true
892
+ },
893
+ orbit: {
894
+ type: Boolean,
895
+ reflect: true
896
+ },
897
+ ringworm: {
898
+ type: Boolean,
899
+ reflect: true
900
+ },
901
+ laser: {
902
+ type: Boolean,
903
+ reflect: true
904
+ }
905
+ };
906
+ }
907
+
908
+ static get styles() {
909
+ return [
910
+ i$5`${styleCss}`,
911
+ i$5`${colorCss}`,
912
+ i$5`${tokensCss}`
913
+ ];
914
+ }
915
+
916
+ /**
917
+ * This will register this element with the browser.
918
+ * @param {string} [name="auro-loader"] - The name of element that you want to register to.
919
+ *
920
+ * @example
921
+ * AuroLoader.register("custom-loader") // this will register this element to <custom-loader/>
922
+ *
923
+ */
924
+ static register(name = "auro-loader") {
925
+ AuroLibraryRuntimeUtils.prototype.registerComponent(name, AuroLoader);
926
+ }
927
+
928
+ firstUpdated() {
929
+ // Add the tag name as an attribute if it is different than the component name
930
+ this.runtimeUtils.handleComponentTagRename(this, 'auro-loader');
931
+ }
932
+
933
+ connectedCallback() {
934
+ super.connectedCallback();
935
+ }
936
+
937
+ /**
938
+ * @private
939
+ * @returns {Array} Numbered array for template map.
940
+ */
941
+ defineTemplate() {
942
+ let nodes = Array.from(Array(this.mdCount).keys());
943
+
944
+ if (this.orbit || this.laser) {
945
+ nodes = Array.from(Array(this.smCount).keys());
946
+ } else if (this.ringworm) {
947
+ nodes = Array.from(Array(0).keys());
948
+ }
949
+
950
+ return nodes;
951
+ }
952
+
953
+ // When using auroElement, use the following attribute and function when hiding content from screen readers.
954
+ // aria-hidden="${this.hideAudible(this.hiddenAudible)}"
955
+
956
+ // function that renders the HTML and CSS into the scope of the component
957
+ render() {
958
+ return x`
959
+ ${this.defineTemplate().map((idx) => x`
960
+ <span part="element" class="loader node-${idx}"></span>
961
+ `)}
962
+
963
+ <div class="no-animation">Loading...</div>
964
+
965
+ ${this.ringworm ? x`
966
+ <svg part="element" class="circular" viewBox="25 25 50 50">
967
+ <circle class="path" cx="50" cy="50" r="20" fill="none"/>
968
+ </svg>`
969
+ : ``
970
+ }
971
+ `;
972
+ }
973
+ }
974
+
975
+ var loaderVersion = '3.1.1';
976
+
977
+ // Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
978
+ // See LICENSE in the project root for license information.
979
+
980
+
981
+ /**
982
+ * @attr {Boolean} autofocus - This Boolean attribute lets you specify that the button should have input focus when the page loads, unless overridden by the user
983
+ * @attr {Boolean} disabled - If set to true button will become disabled and not allow for interactions
984
+ * @attr {Boolean} iconOnly - If set to true, the button will contain an icon with no additional content
985
+ * @attr {Boolean} loading - If set to true button text will be replaced with `auro-loader` and become disabled
986
+ * @attr {Boolean} onDark - Set value for on-dark version of auro-button
987
+ * @attr {Boolean} rounded - If set to true, the button will have a rounded shape
988
+ * @attr {Boolean} slim - Set value for slim version of auro-button
989
+ * @attr {Boolean} fluid - Alters the shape of the button to be full width of its parent container
990
+ * @attr {String} arialabel - Populates the `aria-label` attribute that is used to define a string that labels the current element. Use it in cases where a text label is not visible on the screen. If there is visible text labeling the element, use `aria-labelledby` instead.
991
+ * @attr {String} arialabelledby - Populates the `aria-labelledby` attribute that establishes relationships between objects and their label(s), and its value should be one or more element IDs, which refer to elements that have the text needed for labeling. List multiple element IDs in a space delimited fashion.
992
+ * @attr {String} id - Set the unique ID of an element.
993
+ * @attr {String} title - Sets title attribute. The information is most often shown as a tooltip text when the mouse moves over the element.
994
+ * @attr {String} type - The type of the button. Possible values are: `submit`, `reset`, `button`
995
+ * @attr {String} value - Defines the value associated with the button which is submitted with the form data.
996
+ * @attr {String} variant - Sets button variant option. Possible values are: `secondary`, `tertiary`
997
+ * @attr {Boolean} secondary - DEPRECATED
998
+ * @attr {Boolean} tertiary - DEPRECATED
999
+ * @prop {Boolean} ready - When false the component API should not be called.
1000
+ * @event auroButton-ready - Notifies that the component has finished initializing.
1001
+ * @slot - Default slot for the text of the button.
1002
+ * @slot icon - Slot to provide auro-icon for the button.
1003
+ * @csspart button - Apply CSS to HTML5 button.
1004
+ * @csspart loader - Apply CSS to auro-loader.
1005
+ * @csspart text - Apply CSS to text slot.
1006
+ * @csspart icon - Apply CSS to icon slot.
1007
+ */
1008
+
1009
+ /* eslint-disable lit/no-invalid-html, lit/binding-positions */
1010
+
1011
+ class AuroButton extends r {
1012
+
1013
+ constructor() {
1014
+ super();
1015
+ this.autofocus = false;
1016
+ this.disabled = false;
1017
+ this.iconOnly = false;
1018
+ this.loading = false;
1019
+ this.onDark = false;
1020
+ this.ready = false;
1021
+ this.secondary = false;
1022
+ this.tertiary = false;
1023
+ this.rounded = false;
1024
+ this.slim = false;
1025
+ this.fluid = false;
1026
+
1027
+ /**
1028
+ * Generate unique names for dependency components.
1029
+ */
1030
+ const versioning = new AuroDependencyVersioning();
1031
+
1032
+ /**
1033
+ * @private
1034
+ */
1035
+ this.loaderTag = versioning.generateTag('auro-loader', loaderVersion, AuroLoader);
1036
+ }
1037
+
1038
+ static get styles() {
1039
+ return [
1040
+ tokensCss$1,
1041
+ styleCssAuroButton,
1042
+ colorCss$1
1043
+ ];
1044
+ }
1045
+
1046
+ static get properties() {
1047
+ return {
1048
+ autofocus: {
1049
+ type: Boolean,
1050
+ reflect: true
1051
+ },
1052
+ disabled: {
1053
+ type: Boolean,
1054
+ reflect: true
1055
+ },
1056
+ secondary: {
1057
+ type: Boolean,
1058
+ reflect: true
1059
+ },
1060
+ tertiary: {
1061
+ type: Boolean,
1062
+ reflect: true
1063
+ },
1064
+ fluid: {
1065
+ type: Boolean,
1066
+ reflect: true
1067
+ },
1068
+ iconOnly: {
1069
+ type: Boolean,
1070
+ reflect: true
1071
+ },
1072
+ loading: {
1073
+ type: Boolean,
1074
+ reflect: true
1075
+ },
1076
+ onDark: {
1077
+ type: Boolean,
1078
+ reflect: true
1079
+ },
1080
+ rounded: {
1081
+ type: Boolean,
1082
+ reflect: true
1083
+ },
1084
+ slim: {
1085
+ type: Boolean,
1086
+ reflect: true
1087
+ },
1088
+ arialabel: {
1089
+ type: String,
1090
+ reflect: true
1091
+ },
1092
+ arialabelledby: {
1093
+ type: String,
1094
+ reflect: true
1095
+ },
1096
+ title: {
1097
+ type: String,
1098
+ reflect: true
1099
+ },
1100
+ type: {
1101
+ type: String,
1102
+ reflect: true
1103
+ },
1104
+ value: {
1105
+ type: String,
1106
+ reflect: true
1107
+ },
1108
+ variant: {
1109
+ type: String,
1110
+ reflect: true
1111
+ },
1112
+ ready: { type: Boolean },
1113
+ };
1114
+ }
1115
+
1116
+ /**
1117
+ * This will register this element with the browser.
1118
+ * @param {string} [name="auro-button"] - The name of element that you want to register to.
1119
+ *
1120
+ * @example
1121
+ * AuroButton.register("custom-button") // this will register this element to <custom-button/>
1122
+ *
1123
+ */
1124
+ static register(name = "auro-button") {
1125
+ AuroLibraryRuntimeUtils.prototype.registerComponent(name, AuroButton);
1126
+ }
1127
+
1128
+ /**
1129
+ * Internal method to apply focus to the HTML5 button.
1130
+ * @private
1131
+ * @returns {void}
1132
+ */
1133
+ focus() {
1134
+ this.renderRoot.querySelector('button').focus();
1135
+ }
1136
+
1137
+ /**
1138
+ * Marks the component as ready and sends event.
1139
+ * @private
1140
+ * @returns {void}
1141
+ */
1142
+ notifyReady() {
1143
+ this.ready = true;
1144
+
1145
+ this.dispatchEvent(new CustomEvent('auroButton-ready', {
1146
+ bubbles: true,
1147
+ cancelable: false,
1148
+ composed: true,
1149
+ }));
1150
+ }
1151
+
1152
+ updated() {
1153
+ // support the old `secondary` and `tertiary` attributes` that are deprecated
1154
+ if (this.secondary) {
1155
+ this.setAttribute('variant', 'secondary');
1156
+ }
1157
+
1158
+ if (this.tertiary) {
1159
+ this.setAttribute('variant', 'tertiary');
1160
+ }
1161
+ }
1162
+
1163
+ firstUpdated() {
1164
+ this.notifyReady();
1165
+ }
1166
+
1167
+ render() {
1168
+ const classes = {
1169
+ 'util_insetLg--squish': true,
1170
+ 'auro-button': true,
1171
+ 'auro-button--rounded': this.rounded,
1172
+ 'auro-button--slim': this.slim,
1173
+ 'auro-button--iconOnly': this.iconOnly,
1174
+ 'auro-button--iconOnlySlim': this.iconOnly && this.slim,
1175
+ 'loading': this.loading
1176
+ };
1177
+
1178
+ return u`
1179
+ <button
1180
+ part="button"
1181
+ aria-label="${o(this.arialabel ? this.arialabel : undefined)}"
1182
+ aria-labelledby="${o(this.arialabelledby ? this.arialabelledby : undefined)}"
1183
+ ?autofocus="${this.autofocus}"
1184
+ class="${e(classes)}"
1185
+ ?disabled="${this.disabled || this.loading}"
1186
+ ?onDark="${this.onDark}"
1187
+ title="${o(this.title ? this.title : undefined)}"
1188
+ name="${o(this.name ? this.name : undefined)}"
1189
+ type="${o(this.type ? this.type : undefined)}"
1190
+ variant="${o(this.variant ? this.variant : undefined)}"
1191
+ .value="${o(this.value ? this.value : undefined)}"
1192
+ @click="${() => {}}"
1193
+ >
1194
+ ${o(this.loading ? u`<${this.loaderTag} pulse part="loader"></${this.loaderTag}>` : undefined)}
1195
+
1196
+ <span class="contentWrapper">
1197
+ <span class="textSlot" part="text">
1198
+ ${this.iconOnly ? undefined : u`<slot></slot>`}
1199
+ </span>
1200
+
1201
+ <span part="icon">
1202
+ <slot name="icon"></slot>
1203
+ </span>
1204
+ </span>
1205
+ </button>
1206
+ `;
1207
+ }
1208
+ }
316
1209
 
317
1210
  // Copyright (c) 2022 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
318
1211
  // See LICENSE in the project root for license information.
@@ -336,7 +1229,7 @@ class AuroAccordionButton extends AuroButton {
336
1229
  *
337
1230
  */
338
1231
  static register(name = "auro-accordion-button") {
339
- AuroLibraryRuntimeUtils.default.prototype.registerComponent(name, AuroAccordionButton);
1232
+ AuroLibraryRuntimeUtils.prototype.registerComponent(name, AuroAccordionButton);
340
1233
  }
341
1234
  }
342
1235