@alaskaairux/auro-badge
Advanced tools
Comparing version 1.2.2 to 1.2.3
# Semantic Release Automated Changelog | ||
## [1.2.3](https://github.com/AlaskaAirlines/auro-badge/compare/v1.2.2...v1.2.3) (2021-05-27) | ||
### Bug Fixes | ||
* reflect attributes used for styling ([cb2188b](https://github.com/AlaskaAirlines/auro-badge/commit/cb2188bf9b34b32028f214395d65e241447393a5)) | ||
## [1.2.2](https://github.com/AlaskaAirlines/auro-badge/compare/v1.2.1...v1.2.2) (2021-03-02) | ||
@@ -4,0 +11,0 @@ |
@@ -158,2 +158,2 @@ var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function e(t){var e={exports:{}};return t(e,e.exports),e.exports}var r,o,n=function(t){return t&&t.Math==Math&&t},i=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof t&&t)||function(){return this}()||Function("return this")(),s={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},a=function(t){try{return!!t()}catch(t){return!0}},c={}.toString,l=function(t){return c.call(t).slice(8,-1)},u="".split,d=a((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==l(t)?u.call(t,""):Object(t)}:Object,h=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},p=function(t){return d(h(t))},f=!a((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),g=function(t){return"object"==typeof t?null!==t:"function"==typeof t},v=i.document,m=g(v)&&g(v.createElement),y=function(t){return m?v.createElement(t):{}},b=!f&&!a((function(){return 7!=Object.defineProperty(y("div"),"a",{get:function(){return 7}}).a})),_=function(t){if(!g(t))throw TypeError(String(t)+" is not an object");return t},w=function(t,e){if(!g(t))return t;var r,o;if(e&&"function"==typeof(r=t.toString)&&!g(o=r.call(t)))return o;if("function"==typeof(r=t.valueOf)&&!g(o=r.call(t)))return o;if(!e&&"function"==typeof(r=t.toString)&&!g(o=r.call(t)))return o;throw TypeError("Can't convert object to primitive value")},S=Object.defineProperty,x={f:f?S:function(t,e,r){if(_(t),e=w(e,!0),_(r),b)try{return S(t,e,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},k=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},P=f?function(t,e,r){return x.f(t,e,k(1,r))}:function(t,e,r){return t[e]=r,t},E=function(t,e){try{P(i,t,e)}catch(r){i[t]=e}return e},L=i["__core-js_shared__"]||E("__core-js_shared__",{}),T=e((function(t){(t.exports=function(t,e){return L[t]||(L[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.9.1",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),C={}.hasOwnProperty,O=function(t,e){return C.call(t,e)},N=0,A=Math.random(),V=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++N+A).toString(36)},j="process"==l(i.process),M=i,R=function(t){return"function"==typeof t?t:void 0},U=function(t,e){return arguments.length<2?R(M[t])||R(i[t]):M[t]&&M[t][e]||i[t]&&i[t][e]},I=U("navigator","userAgent")||"",z=i.process,F=z&&z.versions,H=F&&F.v8;H?o=(r=H.split("."))[0]+r[1]:I&&(!(r=I.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=I.match(/Chrome\/(\d+)/))&&(o=r[1]);var $,D=o&&+o,q=!!Object.getOwnPropertySymbols&&!a((function(){return!Symbol.sham&&(j?38===D:D>37&&D<41)})),B=q&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,G=T("wks"),W=i.Symbol,J=B?W:W&&W.withoutSetter||V,K=function(t){return O(G,t)&&(q||"string"==typeof G[t])||(q&&O(W,t)?G[t]=W[t]:G[t]=J("Symbol."+t)),G[t]},Y=Math.ceil,X=Math.floor,Z=function(t){return isNaN(t=+t)?0:(t>0?X:Y)(t)},Q=Math.min,tt=Math.max,et=Math.min,rt=function(t){return function(e,r,o){var n,i,s=p(e),a=(n=s.length)>0?Q(Z(n),9007199254740991):0,c=function(t,e){var r=Z(t);return r<0?tt(r+e,0):et(r,e)}(o,a);if(t&&r!=r){for(;a>c;)if((i=s[c++])!=i)return!0}else for(;a>c;c++)if((t||c in s)&&s[c]===r)return t||c||0;return!t&&-1}},ot={includes:rt(!0),indexOf:rt(!1)},nt={},it=ot.indexOf,st=function(t,e){var r,o=p(t),n=0,i=[];for(r in o)!O(nt,r)&&O(o,r)&&i.push(r);for(;e.length>n;)O(o,r=e[n++])&&(~it(i,r)||i.push(r));return i},at=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],ct=Object.keys||function(t){return st(t,at)},lt=f?Object.defineProperties:function(t,e){_(t);for(var r,o=ct(e),n=o.length,i=0;n>i;)x.f(t,r=o[i++],e[r]);return t},ut=U("document","documentElement"),dt=T("keys"),ht=function(t){return dt[t]||(dt[t]=V(t))},pt=ht("IE_PROTO"),ft=function(){},gt=function(t){return"<script>"+t+"<\/script>"},vt=function(){try{$=document.domain&&new ActiveXObject("htmlfile")}catch(t){}var t,e;vt=$?function(t){t.write(gt("")),t.close();var e=t.parentWindow.Object;return t=null,e}($):((e=y("iframe")).style.display="none",ut.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(gt("document.F=Object")),t.close(),t.F);for(var r=at.length;r--;)delete vt.prototype[at[r]];return vt()};nt[pt]=!0;var mt=Object.create||function(t,e){var r;return null!==t?(ft.prototype=_(t),r=new ft,ft.prototype=null,r[pt]=t):r=vt(),void 0===e?r:lt(r,e)},yt=K("unscopables"),bt=Array.prototype;null==bt[yt]&&x.f(bt,yt,{configurable:!0,value:mt(null)});var _t=function(t){bt[yt][t]=!0},wt=Function.toString;"function"!=typeof L.inspectSource&&(L.inspectSource=function(t){return wt.call(t)});var St,xt,kt,Pt=L.inspectSource,Et=i.WeakMap,Lt="function"==typeof Et&&/native code/.test(Pt(Et)),Tt=i.WeakMap;if(Lt){var Ct=L.state||(L.state=new Tt),Ot=Ct.get,Nt=Ct.has,At=Ct.set;St=function(t,e){return e.facade=t,At.call(Ct,t,e),e},xt=function(t){return Ot.call(Ct,t)||{}},kt=function(t){return Nt.call(Ct,t)}}else{var Vt=ht("state");nt[Vt]=!0,St=function(t,e){return e.facade=t,P(t,Vt,e),e},xt=function(t){return O(t,Vt)?t[Vt]:{}},kt=function(t){return O(t,Vt)}}var jt,Mt,Rt,Ut={set:St,get:xt,has:kt,enforce:function(t){return kt(t)?xt(t):St(t,{})},getterFor:function(t){return function(e){var r;if(!g(e)||(r=xt(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return r}}},It={}.propertyIsEnumerable,zt=Object.getOwnPropertyDescriptor,Ft={f:zt&&!It.call({1:2},1)?function(t){var e=zt(this,t);return!!e&&e.enumerable}:It},Ht=Object.getOwnPropertyDescriptor,$t={f:f?Ht:function(t,e){if(t=p(t),e=w(e,!0),b)try{return Ht(t,e)}catch(t){}if(O(t,e))return k(!Ft.f.call(t,e),t[e])}},Dt=e((function(t){var e=Ut.get,r=Ut.enforce,o=String(String).split("String");(t.exports=function(t,e,n,s){var a,c=!!s&&!!s.unsafe,l=!!s&&!!s.enumerable,u=!!s&&!!s.noTargetGet;"function"==typeof n&&("string"!=typeof e||O(n,"name")||P(n,"name",e),(a=r(n)).source||(a.source=o.join("string"==typeof e?e:""))),t!==i?(c?!u&&t[e]&&(l=!0):delete t[e],l?t[e]=n:P(t,e,n)):l?t[e]=n:E(e,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&e(this).source||Pt(this)}))})),qt=at.concat("length","prototype"),Bt={f:Object.getOwnPropertyNames||function(t){return st(t,qt)}},Gt={f:Object.getOwnPropertySymbols},Wt=U("Reflect","ownKeys")||function(t){var e=Bt.f(_(t)),r=Gt.f;return r?e.concat(r(t)):e},Jt=function(t,e){for(var r=Wt(e),o=x.f,n=$t.f,i=0;i<r.length;i++){var s=r[i];O(t,s)||o(t,s,n(e,s))}},Kt=/#|\.prototype\./,Yt=function(t,e){var r=Zt[Xt(t)];return r==te||r!=Qt&&("function"==typeof e?a(e):!!e)},Xt=Yt.normalize=function(t){return String(t).replace(Kt,".").toLowerCase()},Zt=Yt.data={},Qt=Yt.NATIVE="N",te=Yt.POLYFILL="P",ee=Yt,re=$t.f,oe=!a((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),ne=ht("IE_PROTO"),ie=Object.prototype,se=oe?Object.getPrototypeOf:function(t){return t=Object(h(t)),O(t,ne)?t[ne]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?ie:null},ae=K("iterator"),ce=!1;[].keys&&("next"in(Rt=[].keys())?(Mt=se(se(Rt)))!==Object.prototype&&(jt=Mt):ce=!0),(null==jt||a((function(){var t={};return jt[ae].call(t)!==t})))&&(jt={}),O(jt,ae)||P(jt,ae,(function(){return this}));var le={IteratorPrototype:jt,BUGGY_SAFARI_ITERATORS:ce},ue=x.f,de=K("toStringTag"),he=function(t,e,r){t&&!O(t=r?t:t.prototype,de)&&ue(t,de,{configurable:!0,value:e})},pe=le.IteratorPrototype,fe=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(r,[]),e=r instanceof Array}catch(t){}return function(r,o){return _(r),function(t){if(!g(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype")}(o),e?t.call(r,o):r.__proto__=o,r}}():void 0),ge=le.IteratorPrototype,ve=le.BUGGY_SAFARI_ITERATORS,me=K("iterator"),ye=function(){return this},be=Ut.set,_e=Ut.getterFor("Array Iterator"),we=function(t,e,r,o,n,s,a){!function(t,e,r){var o=e+" Iterator";t.prototype=mt(pe,{next:k(1,r)}),he(t,o,!1)}(r,e,o);var c,l,u,d=function(t){if(t===n&&v)return v;if(!ve&&t in f)return f[t];switch(t){case"keys":case"values":case"entries":return function(){return new r(this,t)}}return function(){return new r(this)}},h=e+" Iterator",p=!1,f=t.prototype,g=f[me]||f["@@iterator"]||n&&f[n],v=!ve&&g||d(n),m="Array"==e&&f.entries||g;if(m&&(c=se(m.call(new t)),ge!==Object.prototype&&c.next&&(se(c)!==ge&&(fe?fe(c,ge):"function"!=typeof c[me]&&P(c,me,ye)),he(c,h,!0))),"values"==n&&g&&"values"!==g.name&&(p=!0,v=function(){return g.call(this)}),f[me]!==v&&P(f,me,v),n)if(l={values:d("values"),keys:s?v:d("keys"),entries:d("entries")},a)for(u in l)(ve||p||!(u in f))&&Dt(f,u,l[u]);else!function(t,e){var r,o,n,s,a,c=t.target,l=t.global,u=t.stat;if(r=l?i:u?i[c]||E(c,{}):(i[c]||{}).prototype)for(o in e){if(s=e[o],n=t.noTargetGet?(a=re(r,o))&&a.value:r[o],!ee(l?o:c+(u?".":"#")+o,t.forced)&&void 0!==n){if(typeof s==typeof n)continue;Jt(s,n)}(t.sham||n&&n.sham)&&P(s,"sham",!0),Dt(r,o,s,t)}}({target:e,proto:!0,forced:ve||p},l);return l}(Array,"Array",(function(t,e){be(this,{type:"Array Iterator",target:p(t),index:0,kind:e})}),(function(){var t=_e(this),e=t.target,r=t.kind,o=t.index++;return!e||o>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==r?{value:o,done:!1}:"values"==r?{value:e[o],done:!1}:{value:[o,e[o]],done:!1}}),"values");_t("keys"),_t("values"),_t("entries");var Se=K("iterator"),xe=K("toStringTag"),ke=we.values;for(var Pe in s){var Ee=i[Pe],Le=Ee&&Ee.prototype;if(Le){if(Le[Se]!==ke)try{P(Le,Se,ke)}catch(t){Le[Se]=ke}if(Le[xe]||P(Le,xe,Pe),s[Pe])for(var Te in we)if(Le[Te]!==we[Te])try{P(Le,Te,we[Te])}catch(t){Le[Te]=we[Te]}}} | ||
*/ | ||
(window.litElementVersions||(window.litElementVersions=[])).push("2.4.0");const mr={};class yr extends dr{static getStyles(){return this.styles}static _getUniqueStyles(){if(this.hasOwnProperty(JSCompiler_renameProperty("_styles",this)))return;const t=this.getStyles();if(Array.isArray(t)){const e=(t,r)=>t.reduceRight(((t,r)=>Array.isArray(r)?e(r,t):(t.add(r),t)),r),r=e(t,new Set),o=[];r.forEach((t=>o.unshift(t))),this._styles=o}else this._styles=void 0===t?[]:[t];this._styles=this._styles.map((t=>{if(t instanceof CSSStyleSheet&&!pr){const e=Array.prototype.slice.call(t.cssRules).reduce(((t,e)=>t+e.cssText),"");return new gr(String(e),fr)}return t}))}initialize(){super.initialize(),this.constructor._getUniqueStyles(),this.renderRoot=this.createRenderRoot(),window.ShadowRoot&&this.renderRoot instanceof window.ShadowRoot&&this.adoptStyles()}createRenderRoot(){return this.attachShadow({mode:"open"})}adoptStyles(){const t=this.constructor._styles;0!==t.length&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow?pr?this.renderRoot.adoptedStyleSheets=t.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):this._needsShimAdoptedStyleSheets=!0:window.ShadyCSS.ScopingShim.prepareAdoptedCssText(t.map((t=>t.cssText)),this.localName))}connectedCallback(){super.connectedCallback(),this.hasUpdated&&void 0!==window.ShadyCSS&&window.ShadyCSS.styleElement(this)}update(t){const e=this.render();super.update(t),e!==mr&&this.constructor.render(e,this.renderRoot,{scopeName:this.localName,eventContext:this}),this._needsShimAdoptedStyleSheets&&(this._needsShimAdoptedStyleSheets=!1,this.constructor._styles.forEach((t=>{const e=document.createElement("style");e.textContent=t.cssText,this.renderRoot.appendChild(e)})))}render(){return mr}}yr.finalized=!0,yr.render=(t,e,r)=>{let o=ar.get(e);void 0===o&&(Ae(e,e.firstChild),ar.set(e,o=new Xe(Object.assign({templateFactory:ir},r))),o.appendInto(e)),o.setValue(t),o.commit()},e((function(t,e){!function(){function t(t){var e=!0,r=!1,o=null,n={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function i(t){return!!(t&&t!==document&&"HTML"!==t.nodeName&&"BODY"!==t.nodeName&&"classList"in t&&"contains"in t.classList)}function s(t){t.classList.contains("focus-visible")||(t.classList.add("focus-visible"),t.setAttribute("data-focus-visible-added",""))}function a(t){e=!1}function c(){document.addEventListener("mousemove",l),document.addEventListener("mousedown",l),document.addEventListener("mouseup",l),document.addEventListener("pointermove",l),document.addEventListener("pointerdown",l),document.addEventListener("pointerup",l),document.addEventListener("touchmove",l),document.addEventListener("touchstart",l),document.addEventListener("touchend",l)}function l(t){t.target.nodeName&&"html"===t.target.nodeName.toLowerCase()||(e=!1,document.removeEventListener("mousemove",l),document.removeEventListener("mousedown",l),document.removeEventListener("mouseup",l),document.removeEventListener("pointermove",l),document.removeEventListener("pointerdown",l),document.removeEventListener("pointerup",l),document.removeEventListener("touchmove",l),document.removeEventListener("touchstart",l),document.removeEventListener("touchend",l))}document.addEventListener("keydown",(function(r){r.metaKey||r.altKey||r.ctrlKey||(i(t.activeElement)&&s(t.activeElement),e=!0)}),!0),document.addEventListener("mousedown",a,!0),document.addEventListener("pointerdown",a,!0),document.addEventListener("touchstart",a,!0),document.addEventListener("visibilitychange",(function(t){"hidden"===document.visibilityState&&(r&&(e=!0),c())}),!0),c(),t.addEventListener("focus",(function(t){var r,o,a;i(t.target)&&(e||(o=(r=t.target).type,"INPUT"===(a=r.tagName)&&n[o]&&!r.readOnly||"TEXTAREA"===a&&!r.readOnly||r.isContentEditable))&&s(t.target)}),!0),t.addEventListener("blur",(function(t){var e;i(t.target)&&(t.target.classList.contains("focus-visible")||t.target.hasAttribute("data-focus-visible-added"))&&(r=!0,window.clearTimeout(o),o=window.setTimeout((function(){r=!1}),100),(e=t.target).hasAttribute("data-focus-visible-added")&&(e.classList.remove("focus-visible"),e.removeAttribute("data-focus-visible-added")))}),!0),t.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&t.host?t.host.setAttribute("data-js-focus-visible",""):t.nodeType===Node.DOCUMENT_NODE&&(document.documentElement.classList.add("js-focus-visible"),document.documentElement.setAttribute("data-js-focus-visible",""))}if("undefined"!=typeof window&&"undefined"!=typeof document){var e;window.applyFocusVisiblePolyfill=t;try{e=new CustomEvent("focus-visible-polyfill-ready")}catch(t){(e=document.createEvent("CustomEvent")).initCustomEvent("focus-visible-polyfill-ready",!1,!1,{})}window.dispatchEvent(e)}"undefined"!=typeof document&&t(document)}()}));var br=vr`*,:after,:before{box-sizing:border-box}@media (prefers-reduced-motion:reduce){*,:after,:before{animation:none!important;transition:none!important}}:focus{outline:3px solid transparent}.js-focus-visible :focus:not(.focus-visible){outline:3px solid transparent}.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock{display:block}.util_displayFlex{display:flex}.util_displayHidden{display:none}.util_displayHiddenVisually{border:0;clip:rect(1px,1px,1px,1px);height:1px;overflow:hidden;padding:0;position:absolute;width:1px}:host(.focus-visible) .target{box-shadow:inset 0 0 0 1px #fff,inset 0 0 0 3px #fff;box-shadow:inset 0 0 0 1px var(--auro-color-border-focus-on-dark),inset 0 0 0 3px var(--auro-color-background-lightest)}:host(.focus-visible) .target::-moz-focus-inner{border:none;width:100%}:host{height:2.75rem}:host([space]){margin-left:1.5rem;margin-left:var(--auro-size-lg)}.target,:host{display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;color:#fff;color:var(--auro-color-text-primary-on-dark);background-color:#0074cb;background-color:var(--auro-color-ui-default-on-light);border:1px solid #0074cb;border:1px solid var(--auro-color-ui-default-on-light);border-radius:1.375rem;padding:0 1rem;padding:0 var(--auro-size-md)}:host([advisory]){color:#222;color:var(--auro-color-text-primary-on-light)}:host([advisory]) .target{color:#222;color:var(--auro-color-text-primary-on-light)}:host([onDark]){background-color:#00cff0;background-color:var(--auro-color-ui-default-on-dark);border-color:#00cff0;border-color:var(--auro-color-ui-default-on-dark);color:#222;color:var(--auro-color-text-primary-on-light)}:host([target]){padding:0;border:0}:host([target]) .target{height:2.75rem}:host([target][ondark][disabled]) .target{color:#222;color:var(--auro-color-text-primary-on-light)}:host([target][ondark]:not([disabled])) .target{color:#222;color:var(--auro-color-text-primary-on-light)}@media (hover:hover){:host([target][ondark]:not([disabled])) .target:active,:host([target][ondark]:not([disabled])) .target:hover{cursor:pointer;background-color:#5de3f7;background-color:var(--auro-color-ui-hover-on-dark);border-color:#5de3f7;border-color:var(--auro-color-ui-hover-on-dark)}}@media (hover:hover){:host([target]:not([disabled])) .target:active,:host([target]:not([disabled])) .target:hover{cursor:pointer;background-color:#054687;background-color:var(--auro-color-ui-hover-on-light);border-color:#054687;border-color:var(--auro-color-ui-hover-on-light)}}.target{font:inherit;-webkit-tap-highlight-color:transparent;-webkit-touch-callout:none;-webkit-user-select:none}svg{margin-left:.5rem;margin-left:var(--auro-size-xs)}:host([label]){background-color:transparent;border-color:#626b79;border-color:var(--auro-color-brand-neutral-500);color:#626b79;color:var(--auro-color-text-secondary-on-light);font-size:.75rem;font-size:var(--auro-text-body-size-xs);padding:.125rem .25rem;padding:var(--auro-size-xxxs) var(--auro-size-xxs);-webkit-user-select:none;-ms-user-select:none;user-select:none;border-radius:9999px;line-height:1rem;line-height:var(--auro-size-md);height:auto}:host([label][ondark]){background-color:transparent;border-color:#626b79;border-color:var(--auro-color-brand-neutral-500);color:#fff;color:var(--auro-color-text-primary-on-dark)}:host([pill]){padding:.375rem .5625rem .1875rem .5625rem;-webkit-user-select:none;-ms-user-select:none;user-select:none;border-radius:9999px;line-height:1;height:auto}:host([disabled]){opacity:.4}:host([advisory]) .target,:host([error]) .target,:host([onDark]) .target,:host([success]) .target{background-color:transparent;border-color:transparent}:host([error]){background-color:#df0b37;background-color:var(--auro-color-alert-error-on-light);border-color:#df0b37;border-color:var(--auro-color-alert-error-on-light)}:host([error][ondark]){background-color:#ff999b;background-color:var(--auro-color-alert-error-on-dark);border-color:#ff999b;border-color:var(--auro-color-alert-error-on-dark)}@media (hover:hover){:host([error]:not([disabled])) .target:active,:host([error]:not([disabled])) .target:hover{cursor:pointer;background-color:#df0b37;background-color:var(--auro-color-alert-error-on-light);border-color:#df0b37;border-color:var(--auro-color-alert-error-on-light);filter:brightness(85%)}}@media (hover:hover){:host([error][ondark]:not([disabled])) .target:active,:host([error][ondark]:not([disabled])) .target:hover{cursor:pointer;background-color:#ff999b;background-color:var(--auro-color-alert-error-on-dark);border-color:#ff999b;border-color:var(--auro-color-alert-error-on-dark);filter:brightness(85%)}}:host([success]){background-color:#00805d;background-color:var(--auro-color-alert-success-on-light);border-color:#00805d;border-color:var(--auro-color-alert-success-on-light)}:host([success][ondark]){background-color:#69cf96;background-color:var(--auro-color-alert-success-on-dark);border-color:#69cf96;border-color:var(--auro-color-alert-success-on-dark)}@media (hover:hover){:host([success]:not([disabled])) .target:active,:host([success]:not([disabled])) .target:hover{cursor:pointer;background-color:#00805d;background-color:var(--auro-color-alert-success-on-light);border-color:#00805d;border-color:var(--auro-color-alert-success-on-light);filter:brightness(85%)}}@media (hover:hover){:host([success][ondark]:not([disabled])) .target:active,:host([success][ondark]:not([disabled])) .target:hover{cursor:pointer;background-color:#69cf96;background-color:var(--auro-color-alert-success-on-dark);border-color:#69cf96;border-color:var(--auro-color-alert-success-on-dark);filter:brightness(85%)}}:host([advisory]){background-color:#fff0cd;background-color:var(--auro-color-alert-advisory-on-light);border-color:#fff0cd;border-color:var(--auro-color-alert-advisory-on-light)}:host([advisory][ondark]){background-color:#fff0cd;background-color:var(--auro-color-alert-advisory-on-dark);border-color:#fff0cd;border-color:var(--auro-color-alert-advisory-on-dark)}@media (hover:hover){:host([advisory]:not([disabled])) .target:active,:host([advisory]:not([disabled])) .target:hover{cursor:pointer;background-color:#fff0cd;background-color:var(--auro-color-alert-advisory-on-light);border-color:#fff0cd;border-color:var(--auro-color-alert-advisory-on-light);filter:brightness(85%)}}@media (hover:hover){:host([advisory][ondark]:not([disabled])) .target:active,:host([advisory][ondark]:not([disabled])) .target:hover{cursor:pointer;background-color:#fff0cd;background-color:var(--auro-color-alert-advisory-on-dark);border-color:#fff0cd;border-color:var(--auro-color-alert-advisory-on-dark);filter:brightness(85%)}}`,_r=vr`:host([fixed]) :host{height:44px}:host([fixed]) :host([space]){margin-left:24px}:host([fixed]) .target,:host([fixed]) :host{border-radius:22px;padding:0 16px}:host([fixed]) :host([target]) .target{height:44px}:host([fixed]) svg{margin-left:8px}:host([fixed]) :host([label]){font-size:12px;padding:2px 4px;line-height:16px}:host([fixed]) :host([pill]){padding:6px 9px 3px 9px}`,wr='<svg viewBox="0 0 24 24" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg" role="img" aria-hidden="true" style="width: var(--auro-size-lg); height: var(--auro-size-lg); fill: currentColor" class="ico_squareLarge" >\n <title>X Sm</title>\n <desc></desc>\n <path d="M15.825,7.5 C16.1977922,7.5 16.5,7.80220779 16.5,8.175 C16.5,8.35233518 16.4316148,8.51369815 16.3197771,8.63415637 L16.32,8.63459415 L12.954,12 L16.2713474,15.3167532 C16.4109521,15.4410771 16.5,15.6226394 16.5,15.825 C16.5,16.1977922 16.1977922,16.5 15.825,16.5 C15.6226394,16.5 15.4410771,16.4109521 15.3173606,16.2699038 L15.3167532,16.2713474 L12,12.954 L8.68324676,16.2713474 C8.55892291,16.4109521 8.37736058,16.5 8.175,16.5 C7.80220779,16.5 7.5,16.1977922 7.5,15.825 C7.5,15.6226394 7.58904794,15.4410771 7.73009624,15.3173606 L7.72865261,15.3167532 L11.0451,12 L7.68,8.63459415 C7.56838515,8.51369815 7.5,8.35233518 7.5,8.175 C7.5,7.80220779 7.80220779,7.5 8.175,7.5 C8.35233518,7.5 8.51369815,7.56838515 8.63415637,7.68022291 L8.63459415,7.68 L12,11.0451 L15.3409649,7.70453685 C15.3454247,7.69994918 15.3499492,7.6954247 15.3545368,7.69096488 L15.3654058,7.68 C15.4863018,7.56838515 15.6476648,7.5 15.825,7.5 Z"/>\n</svg>\n';class Sr extends yr{constructor(){super(),this.dom=(new DOMParser).parseFromString(wr,"text/html"),this.svg=this.dom.body.firstChild}static get properties(){return{target:{type:Boolean},disabled:{type:Boolean,reflect:!0},value:{type:String}}}handleChange(t){if(this.target){const e=new CustomEvent(t.type,t);this.dispatchEvent(e),this.remove()}}firstUpdated(){if(this.target){const[t]=this.shadowRoot.querySelector("slot").assignedNodes();this.value=t.textContent}}static get styles(){return[br,_r]}render(){return hr`${this.target?hr`<button @click="${this.handleChange}" ?disabled="${this.disabled}" .value="${this.value}" class="target"><slot></slot>${this.svg} <span class="util_displayHiddenVisually">Dismiss</span></button>`:hr`<slot></slot>`}`}}customElements.get("auro-badge")||customElements.define("auro-badge",Sr); | ||
(window.litElementVersions||(window.litElementVersions=[])).push("2.4.0");const mr={};class yr extends dr{static getStyles(){return this.styles}static _getUniqueStyles(){if(this.hasOwnProperty(JSCompiler_renameProperty("_styles",this)))return;const t=this.getStyles();if(Array.isArray(t)){const e=(t,r)=>t.reduceRight(((t,r)=>Array.isArray(r)?e(r,t):(t.add(r),t)),r),r=e(t,new Set),o=[];r.forEach((t=>o.unshift(t))),this._styles=o}else this._styles=void 0===t?[]:[t];this._styles=this._styles.map((t=>{if(t instanceof CSSStyleSheet&&!pr){const e=Array.prototype.slice.call(t.cssRules).reduce(((t,e)=>t+e.cssText),"");return new gr(String(e),fr)}return t}))}initialize(){super.initialize(),this.constructor._getUniqueStyles(),this.renderRoot=this.createRenderRoot(),window.ShadowRoot&&this.renderRoot instanceof window.ShadowRoot&&this.adoptStyles()}createRenderRoot(){return this.attachShadow({mode:"open"})}adoptStyles(){const t=this.constructor._styles;0!==t.length&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow?pr?this.renderRoot.adoptedStyleSheets=t.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):this._needsShimAdoptedStyleSheets=!0:window.ShadyCSS.ScopingShim.prepareAdoptedCssText(t.map((t=>t.cssText)),this.localName))}connectedCallback(){super.connectedCallback(),this.hasUpdated&&void 0!==window.ShadyCSS&&window.ShadyCSS.styleElement(this)}update(t){const e=this.render();super.update(t),e!==mr&&this.constructor.render(e,this.renderRoot,{scopeName:this.localName,eventContext:this}),this._needsShimAdoptedStyleSheets&&(this._needsShimAdoptedStyleSheets=!1,this.constructor._styles.forEach((t=>{const e=document.createElement("style");e.textContent=t.cssText,this.renderRoot.appendChild(e)})))}render(){return mr}}yr.finalized=!0,yr.render=(t,e,r)=>{let o=ar.get(e);void 0===o&&(Ae(e,e.firstChild),ar.set(e,o=new Xe(Object.assign({templateFactory:ir},r))),o.appendInto(e)),o.setValue(t),o.commit()},e((function(t,e){!function(){function t(t){var e=!0,r=!1,o=null,n={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function i(t){return!!(t&&t!==document&&"HTML"!==t.nodeName&&"BODY"!==t.nodeName&&"classList"in t&&"contains"in t.classList)}function s(t){t.classList.contains("focus-visible")||(t.classList.add("focus-visible"),t.setAttribute("data-focus-visible-added",""))}function a(t){e=!1}function c(){document.addEventListener("mousemove",l),document.addEventListener("mousedown",l),document.addEventListener("mouseup",l),document.addEventListener("pointermove",l),document.addEventListener("pointerdown",l),document.addEventListener("pointerup",l),document.addEventListener("touchmove",l),document.addEventListener("touchstart",l),document.addEventListener("touchend",l)}function l(t){t.target.nodeName&&"html"===t.target.nodeName.toLowerCase()||(e=!1,document.removeEventListener("mousemove",l),document.removeEventListener("mousedown",l),document.removeEventListener("mouseup",l),document.removeEventListener("pointermove",l),document.removeEventListener("pointerdown",l),document.removeEventListener("pointerup",l),document.removeEventListener("touchmove",l),document.removeEventListener("touchstart",l),document.removeEventListener("touchend",l))}document.addEventListener("keydown",(function(r){r.metaKey||r.altKey||r.ctrlKey||(i(t.activeElement)&&s(t.activeElement),e=!0)}),!0),document.addEventListener("mousedown",a,!0),document.addEventListener("pointerdown",a,!0),document.addEventListener("touchstart",a,!0),document.addEventListener("visibilitychange",(function(t){"hidden"===document.visibilityState&&(r&&(e=!0),c())}),!0),c(),t.addEventListener("focus",(function(t){var r,o,a;i(t.target)&&(e||(o=(r=t.target).type,"INPUT"===(a=r.tagName)&&n[o]&&!r.readOnly||"TEXTAREA"===a&&!r.readOnly||r.isContentEditable))&&s(t.target)}),!0),t.addEventListener("blur",(function(t){var e;i(t.target)&&(t.target.classList.contains("focus-visible")||t.target.hasAttribute("data-focus-visible-added"))&&(r=!0,window.clearTimeout(o),o=window.setTimeout((function(){r=!1}),100),(e=t.target).hasAttribute("data-focus-visible-added")&&(e.classList.remove("focus-visible"),e.removeAttribute("data-focus-visible-added")))}),!0),t.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&t.host?t.host.setAttribute("data-js-focus-visible",""):t.nodeType===Node.DOCUMENT_NODE&&(document.documentElement.classList.add("js-focus-visible"),document.documentElement.setAttribute("data-js-focus-visible",""))}if("undefined"!=typeof window&&"undefined"!=typeof document){var e;window.applyFocusVisiblePolyfill=t;try{e=new CustomEvent("focus-visible-polyfill-ready")}catch(t){(e=document.createEvent("CustomEvent")).initCustomEvent("focus-visible-polyfill-ready",!1,!1,{})}window.dispatchEvent(e)}"undefined"!=typeof document&&t(document)}()}));var br=vr`*,:after,:before{box-sizing:border-box}@media (prefers-reduced-motion:reduce){*,:after,:before{animation:none!important;transition:none!important}}:focus{outline:3px solid transparent}.js-focus-visible :focus:not(.focus-visible){outline:3px solid transparent}.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock{display:block}.util_displayFlex{display:flex}.util_displayHidden{display:none}.util_displayHiddenVisually{border:0;clip:rect(1px,1px,1px,1px);height:1px;overflow:hidden;padding:0;position:absolute;width:1px}:host(.focus-visible) .target{box-shadow:inset 0 0 0 1px #fff,inset 0 0 0 3px #fff;box-shadow:inset 0 0 0 1px var(--auro-color-border-focus-on-dark),inset 0 0 0 3px var(--auro-color-background-lightest)}:host(.focus-visible) .target::-moz-focus-inner{border:none;width:100%}:host{height:2.75rem}:host([space]){margin-left:1.5rem;margin-left:var(--auro-size-lg)}.target,:host{display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;color:#fff;color:var(--auro-color-text-primary-on-dark);background-color:#0074cb;background-color:var(--auro-color-ui-default-on-light);border:1px solid #0074cb;border:1px solid var(--auro-color-ui-default-on-light);border-radius:1.375rem;padding:0 1rem;padding:0 var(--auro-size-md)}:host([advisory]){color:#222;color:var(--auro-color-text-primary-on-light)}:host([advisory]) .target{color:#222;color:var(--auro-color-text-primary-on-light)}:host([onDark]){background-color:#00cff0;background-color:var(--auro-color-ui-default-on-dark);border-color:#00cff0;border-color:var(--auro-color-ui-default-on-dark);color:#222;color:var(--auro-color-text-primary-on-light)}:host([target]){padding:0;border:0}:host([target]) .target{height:2.75rem}:host([target][ondark][disabled]) .target{color:#222;color:var(--auro-color-text-primary-on-light)}:host([target][ondark]:not([disabled])) .target{color:#222;color:var(--auro-color-text-primary-on-light)}@media (hover:hover){:host([target][ondark]:not([disabled])) .target:active,:host([target][ondark]:not([disabled])) .target:hover{cursor:pointer;background-color:#5de3f7;background-color:var(--auro-color-ui-hover-on-dark);border-color:#5de3f7;border-color:var(--auro-color-ui-hover-on-dark)}}@media (hover:hover){:host([target]:not([disabled])) .target:active,:host([target]:not([disabled])) .target:hover{cursor:pointer;background-color:#054687;background-color:var(--auro-color-ui-hover-on-light);border-color:#054687;border-color:var(--auro-color-ui-hover-on-light)}}.target{font:inherit;-webkit-tap-highlight-color:transparent;-webkit-touch-callout:none;-webkit-user-select:none}svg{margin-left:.5rem;margin-left:var(--auro-size-xs)}:host([label]){background-color:transparent;border-color:#626b79;border-color:var(--auro-color-brand-neutral-500);color:#626b79;color:var(--auro-color-text-secondary-on-light);font-size:.75rem;font-size:var(--auro-text-body-size-xs);padding:.125rem .25rem;padding:var(--auro-size-xxxs) var(--auro-size-xxs);-webkit-user-select:none;-ms-user-select:none;user-select:none;border-radius:9999px;line-height:1rem;line-height:var(--auro-size-md);height:auto}:host([label][ondark]){background-color:transparent;border-color:#626b79;border-color:var(--auro-color-brand-neutral-500);color:#fff;color:var(--auro-color-text-primary-on-dark)}:host([pill]){padding:.375rem .5625rem .1875rem .5625rem;-webkit-user-select:none;-ms-user-select:none;user-select:none;border-radius:9999px;line-height:1;height:auto}:host([disabled]){opacity:.4}:host([advisory]) .target,:host([error]) .target,:host([onDark]) .target,:host([success]) .target{background-color:transparent;border-color:transparent}:host([error]){background-color:#df0b37;background-color:var(--auro-color-alert-error-on-light);border-color:#df0b37;border-color:var(--auro-color-alert-error-on-light)}:host([error][ondark]){background-color:#ff999b;background-color:var(--auro-color-alert-error-on-dark);border-color:#ff999b;border-color:var(--auro-color-alert-error-on-dark)}@media (hover:hover){:host([error]:not([disabled])) .target:active,:host([error]:not([disabled])) .target:hover{cursor:pointer;background-color:#df0b37;background-color:var(--auro-color-alert-error-on-light);border-color:#df0b37;border-color:var(--auro-color-alert-error-on-light);filter:brightness(85%)}}@media (hover:hover){:host([error][ondark]:not([disabled])) .target:active,:host([error][ondark]:not([disabled])) .target:hover{cursor:pointer;background-color:#ff999b;background-color:var(--auro-color-alert-error-on-dark);border-color:#ff999b;border-color:var(--auro-color-alert-error-on-dark);filter:brightness(85%)}}:host([success]){background-color:#00805d;background-color:var(--auro-color-alert-success-on-light);border-color:#00805d;border-color:var(--auro-color-alert-success-on-light)}:host([success][ondark]){background-color:#69cf96;background-color:var(--auro-color-alert-success-on-dark);border-color:#69cf96;border-color:var(--auro-color-alert-success-on-dark)}@media (hover:hover){:host([success]:not([disabled])) .target:active,:host([success]:not([disabled])) .target:hover{cursor:pointer;background-color:#00805d;background-color:var(--auro-color-alert-success-on-light);border-color:#00805d;border-color:var(--auro-color-alert-success-on-light);filter:brightness(85%)}}@media (hover:hover){:host([success][ondark]:not([disabled])) .target:active,:host([success][ondark]:not([disabled])) .target:hover{cursor:pointer;background-color:#69cf96;background-color:var(--auro-color-alert-success-on-dark);border-color:#69cf96;border-color:var(--auro-color-alert-success-on-dark);filter:brightness(85%)}}:host([advisory]){background-color:#fff0cd;background-color:var(--auro-color-alert-advisory-on-light);border-color:#fff0cd;border-color:var(--auro-color-alert-advisory-on-light)}:host([advisory][ondark]){background-color:#fff0cd;background-color:var(--auro-color-alert-advisory-on-dark);border-color:#fff0cd;border-color:var(--auro-color-alert-advisory-on-dark)}@media (hover:hover){:host([advisory]:not([disabled])) .target:active,:host([advisory]:not([disabled])) .target:hover{cursor:pointer;background-color:#fff0cd;background-color:var(--auro-color-alert-advisory-on-light);border-color:#fff0cd;border-color:var(--auro-color-alert-advisory-on-light);filter:brightness(85%)}}@media (hover:hover){:host([advisory][ondark]:not([disabled])) .target:active,:host([advisory][ondark]:not([disabled])) .target:hover{cursor:pointer;background-color:#fff0cd;background-color:var(--auro-color-alert-advisory-on-dark);border-color:#fff0cd;border-color:var(--auro-color-alert-advisory-on-dark);filter:brightness(85%)}}`,_r=vr`:host([fixed]) :host{height:44px}:host([fixed]) :host([space]){margin-left:24px}:host([fixed]) .target,:host([fixed]) :host{border-radius:22px;padding:0 16px}:host([fixed]) :host([target]) .target{height:44px}:host([fixed]) svg{margin-left:8px}:host([fixed]) :host([label]){font-size:12px;padding:2px 4px;line-height:16px}:host([fixed]) :host([pill]){padding:6px 9px 3px 9px}`,wr='<svg viewBox="0 0 24 24" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg" role="img" aria-hidden="true" style="width: var(--auro-size-lg); height: var(--auro-size-lg); fill: currentColor" class="ico_squareLarge" >\n <title>X Sm</title>\n <desc></desc>\n <path d="M15.825,7.5 C16.1977922,7.5 16.5,7.80220779 16.5,8.175 C16.5,8.35233518 16.4316148,8.51369815 16.3197771,8.63415637 L16.32,8.63459415 L12.954,12 L16.2713474,15.3167532 C16.4109521,15.4410771 16.5,15.6226394 16.5,15.825 C16.5,16.1977922 16.1977922,16.5 15.825,16.5 C15.6226394,16.5 15.4410771,16.4109521 15.3173606,16.2699038 L15.3167532,16.2713474 L12,12.954 L8.68324676,16.2713474 C8.55892291,16.4109521 8.37736058,16.5 8.175,16.5 C7.80220779,16.5 7.5,16.1977922 7.5,15.825 C7.5,15.6226394 7.58904794,15.4410771 7.73009624,15.3173606 L7.72865261,15.3167532 L11.0451,12 L7.68,8.63459415 C7.56838515,8.51369815 7.5,8.35233518 7.5,8.175 C7.5,7.80220779 7.80220779,7.5 8.175,7.5 C8.35233518,7.5 8.51369815,7.56838515 8.63415637,7.68022291 L8.63459415,7.68 L12,11.0451 L15.3409649,7.70453685 C15.3454247,7.69994918 15.3499492,7.6954247 15.3545368,7.69096488 L15.3654058,7.68 C15.4863018,7.56838515 15.6476648,7.5 15.825,7.5 Z"/>\n</svg>\n';class Sr extends yr{constructor(){super(),this.dom=(new DOMParser).parseFromString(wr,"text/html"),this.svg=this.dom.body.firstChild,this.target=!1,this.disabled=!1}static get properties(){return{target:{type:Boolean,reflect:!0},disabled:{type:Boolean,reflect:!0},value:{type:String}}}handleChange(t){if(this.target){const e=new CustomEvent(t.type,t);this.dispatchEvent(e),this.remove()}}firstUpdated(){if(this.target){const[t]=this.shadowRoot.querySelector("slot").assignedNodes();this.value=t.textContent}}static get styles(){return[br,_r]}render(){return hr`${this.target?hr`<button @click="${this.handleChange}" ?disabled="${this.disabled}" .value="${this.value}" class="target"><slot></slot>${this.svg} <span class="util_displayHiddenVisually">Dismiss</span></button>`:hr`<slot></slot>`}`}}customElements.get("auro-badge")||customElements.define("auro-badge",Sr); |
@@ -9,7 +9,2 @@ // Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license | ||
// If using auroElement base class | ||
// See instructions for importing auroElement base class https://git.io/JULq4 | ||
// import { html, css } from "lit-element"; | ||
// import AuroElement from '@alaskaairux/webcorestylesheets/dist/auroElement/auroElement'; | ||
// Import touch detection lib | ||
@@ -50,2 +45,5 @@ import "focus-visible/dist/focus-visible.min.js"; | ||
this.svg = this.dom.body.firstChild; | ||
this.target = false; | ||
this.disabled = false; | ||
} | ||
@@ -56,5 +54,5 @@ | ||
return { | ||
// ...super.properties, | ||
target: { | ||
type: Boolean | ||
type: Boolean, | ||
reflect: true | ||
}, | ||
@@ -105,8 +103,4 @@ disabled: { | ||
// When using auroElement, use the following attribute and function when hiding content from screen readers. | ||
// aria-hidden="${this.hideAudible(this.hiddenAudible)}" | ||
// function that renders the HTML and CSS into the scope of the component | ||
render() { | ||
return html` | ||
@@ -113,0 +107,0 @@ ${this.target |
@@ -19,5 +19,5 @@ # auro-badge | ||
| Property | Attribute | Type | Description | | ||
|------------|------------|-----------|--------------------------------------------------| | ||
| `disabled` | `disabled` | `Boolean` | If set to true button will become disabled and not allow for interactions | | ||
| `target` | `target` | `Boolean` | Enables the close functionality | | ||
| Property | Attribute | Type | Default | Description | | ||
|------------|------------|-----------|---------|--------------------------------------------------| | ||
| `disabled` | `disabled` | `Boolean` | false | If set to true button will become disabled and not allow for interactions | | ||
| `target` | `target` | `Boolean` | false | Enables the close functionality | |
@@ -11,3 +11,3 @@ { | ||
"name": "@alaskaairux/auro-badge", | ||
"version": "1.2.2", | ||
"version": "1.2.3", | ||
"description": "Auro custom auro-badge element", | ||
@@ -14,0 +14,0 @@ "author": "Product design and research", |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
355225
1762