Socket
Socket
Sign inDemoInstall

@axa-ch/icon

Package Overview
Dependencies
8
Maintainers
36
Versions
102
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 8.0.4 to 8.0.5

2

dist/index.js

@@ -37,2 +37,2 @@ var window=function(){"use strict";

${r(":host(:not([size=original])) svg {\n width: 24px;\n height: 24px;\n}\n\n:host([size=small]) svg {\n width: 20px;\n height: 20px;\n}\n\n:host([size=large]) svg {\n width: 32px;\n height: 32px;\n}")}
`}static get iconsMapping(){return{"arrow-left":'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M19.078 12.5a1 1 0 01-1 1h-10.5a1 1 0 110-2h10.5a1 1 0 011 1z" fill="currentColor"/><path fill-rule="evenodd" clip-rule="evenodd" d="M10.202 8.219a1 1 0 01.157 1.405L8.06 12.5l2.3 2.876a1 1 0 01-1.563 1.248L5.5 12.5l3.297-4.124a1 1 0 011.405-.157z" fill="currentColor"/></svg>',"arrow-right":'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M4.922 11.5a1 1 0 011-1h10.5a1 1 0 110 2h-10.5a1 1 0 01-1-1z" fill="currentColor"/><path fill-rule="evenodd" clip-rule="evenodd" d="M13.798 15.781a1 1 0 01-.157-1.405L15.94 11.5l-2.3-2.876a1 1 0 011.563-1.248L18.5 11.5l-3.297 4.124a1 1 0 01-1.405.157z" fill="currentColor"/></svg>',collapse:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M12 8l-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"/></svg>',document:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M6 2c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6H6zm7 7V3.5L18.5 9H13z"/></svg>',download:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z"/></svg>',email:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z"/></svg>',expand:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"/></svg>',mobile:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M15.5 1h-8C6.12 1 5 2.12 5 3.5v17C5 21.88 6.12 23 7.5 23h8c1.38 0 2.5-1.12 2.5-2.5v-17C18 2.12 16.88 1 15.5 1zm-4 21c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5zm4.5-4H7V4h9v14z"/></svg>',phone:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z"/></svg>',add:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"/></svg>',search:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"/></svg>',upload:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M9 16h6v-6h4l-7-7-7 7h4zm-4 2h14v2H5z"/></svg>',"cloud-upload":'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM14 13v4h-4v-4H7l5-5 5 5h-3z"/></svg>',"axa-logo":'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 283.467 283.467"><path fill="#00008f" d="M.003.003h283.464v283.464H.003z"/><path fill="#ff1721" d="M175.659 139.99L283.467 0h-15.923L159.38 139.99h16.279z"/><path fill="#fff" d="M216.597 202.461c4.941 13.823 15.122 49.795 19.17 52.661h-26.729a44.571 44.571 0 00-1.254-9.434c-1.153-4.111-10.821-35.214-10.821-35.214h-42.456l-6.675 9.463s8.018 25.097 8.515 26.327c.865 2.217 4.693 8.858 4.693 8.858h-25.615s-.664-3.833-.913-5.43c-.2-1.289-2.427-8.349-2.427-8.349s-5.806 6.362-7.388 9.312c-1.596 2.943-2.304 4.467-2.304 4.467h-20.04s-.668-3.833-.917-5.43c-.196-1.289-2.647-8.916-2.647-8.916s-5.61 6.812-7.207 9.756c-1.587 2.95-2.27 4.59-2.27 4.59h-19.82s5.601-5.332 7.559-7.622c3.3-3.882 15.6-19.956 15.6-19.956l-4.931-17.07H45.586s-24.023 31.567-24.97 32.543c-.957.962-7.96 11.011-8.116 12.105H0v-7.949a5.987 5.987 0 01.493-.479c.386-.283 18.213-22.412 34.59-44.233 14.717-19.029 28.526-37.535 29.737-39.297 2.934-4.263 7.163-13.467 7.163-13.467h21.781s.675 8.467 1.31 10.522c.565 1.817 13.837 45.362 14.15 45.831l7.338-9.385-12.543-38.614s-2.94-7.265-3.897-8.354h25.445a22.166 22.166 0 00.83 6.919c1.034 3.184 6.489 22.866 6.489 22.866s17.354-21.753 18.369-23.315a14.1 14.1 0 002.143-6.47H174.6s-3.881 2.837-10.683 11.44c-2.285 2.896-24.673 31.348-24.673 31.348s1.953 6.66 2.905 9.976c.26.952.44 1.597.44 1.665 0 .03.493-.576 1.343-1.665 5.776-7.32 32.05-41.772 33.643-44.722 1.284-2.382 3.173-5.092 4.282-8.041h20.683s.478 6.176 1.109 7.885zm-31.475-32.612c-3.037 6.533-20.913 28.296-20.913 28.296h28.31s-5.488-16.9-6.445-20.709a30.233 30.233 0 01-.557-7.402c0-.346-.063-.908-.395-.185zm-108.775 0c-3.036 6.533-20.912 28.296-20.912 28.296h28.31s-5.483-16.9-6.44-20.709a30.233 30.233 0 01-.557-7.402c0-.346-.068-.908-.4-.185zm42.623 65.986l7.793-10.703c-.718-.772-5.107-14.082-5.107-14.082l-7.535 9.775z"/></svg>',"axa-logo-open":'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 80 80"><path fill="#FF1721" d="M49.026 39.457L77.948 1.9h-4.272L44.658 39.457z"/><path d="M0 0v79.85h79.85V0H0zm77.948 77.948H1.901v-7.604h3.353c.042-.293 1.92-2.99 2.177-3.247.254-.262 6.7-8.731 6.7-8.731h11.303l1.323 4.58s-3.3 4.312-4.186 5.353c-.525.615-2.027 2.045-2.027 2.045h5.317s.183-.44.609-1.231c.428-.79 1.933-2.618 1.933-2.618s.658 2.047.71 2.392c.067.429.247 1.457.247 1.457h5.376s.19-.409.618-1.199c.424-.79 1.982-2.498 1.982-2.498s.597 1.895.65 2.24c.068.429.246 1.457.246 1.457h6.872s-1.027-1.781-1.26-2.376c-.133-.33-2.284-7.063-2.284-7.063l1.791-2.54h11.39s2.594 8.345 2.903 9.448c.202.83.315 1.678.336 2.531h7.171c-1.086-.769-3.817-10.42-5.143-14.128l-3.474-12.04c-.169-.458-.297-2.115-.297-2.115h-5.549c-.297.791-.804 1.518-1.149 2.157-.427.792-7.476 10.035-9.025 11.998-.228.292-.36.455-.36.447 0-.018-.049-.191-.118-.447-.256-.89-.78-2.676-.78-2.676s6.006-7.633 6.62-8.41c1.824-2.308 2.865-3.069 2.865-3.069h-5.687a3.783 3.783 0 01-.575 1.736c-.273.419-4.928 6.255-4.928 6.255s-1.464-5.28-1.741-6.135a5.947 5.947 0 01-.223-1.856h-6.826c.257.292 1.045 2.241 1.045 2.241l3.365 10.36-1.968 2.517c-.084-.126-3.645-11.808-3.797-12.295-.17-.551-.35-2.823-.35-2.823h-5.844s-1.135 2.47-1.922 3.613c-.325.473-4.03 5.437-7.978 10.542-4.393 5.854-9.176 11.791-9.28 11.867a1.6 1.6 0 00-.13.128V1.9h76.046v76.047zM22.64 49.503c.256 1.022 1.727 5.555 1.727 5.555h-7.595s4.796-5.838 5.61-7.59c.09-.195.108-.044.108.049a8.11 8.11 0 00.15 1.986zm9.876 11.64l2.022-2.622s1.177 3.57 1.37 3.777l-2.09 2.872-1.302-4.027zm19.304-11.64c.257 1.022 1.729 5.555 1.729 5.555h-7.595s4.796-5.838 5.61-7.59c.09-.195.106-.044.106.049a8.111 8.111 0 00.15 1.986z" fill="#00008F"/></svg>',"check-circle":'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"/></svg>',check:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"/></svg>',"info-outline":'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M11 17h2v-6h-2v6zm1-15C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zM11 9h2V7h-2v2z"/></svg>',"warning-amber":'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M1 21.5L12 2.5L23 21.5H1ZM19.53 19.5L12 6.49L4.47 19.5H19.53ZM11 16.5V18.5H13V16.5H11ZM11 10.5H13V14.5H11V10.5Z" fill="currentColor"/></svg>',cloudy:'<svg width="25" height="24" viewBox="0 0 25 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M5.34278 4.04C6.59226 1.64 9.11121 0 12 0C15.6385 0 18.6672 2.59 19.3569 6.04C21.9459 6.22 23.995 8.36 23.995 11C23.995 13.76 21.7559 16 18.9971 16H6.00251C2.69388 16 0.00500488 13.31 0.00500488 10C0.00500488 6.91 2.34403 4.36 5.34278 4.04ZM17.3978 6.43C16.888 3.86 14.6089 2 12 2C9.94086 2 8.07164 3.14 7.13204 4.97L6.63224 5.92L5.56269 6.03C3.53353 6.24 2.00417 7.95 2.00417 10C2.00417 12.21 3.79343 14 6.00251 14H18.9971C20.6464 14 21.9958 12.65 21.9958 11C21.9958 9.45 20.7764 8.15 19.217 8.04L17.6976 7.93L17.3978 6.43Z" fill="currentColor"/><path fill-rule="evenodd" clip-rule="evenodd" d="M7.70521 22.7053L3.99997 19L5.41418 17.5858L9.11942 21.2911L7.70521 22.7053Z" fill="currentColor"/><path fill-rule="evenodd" clip-rule="evenodd" d="M17.7052 22.7053L14 19L15.4142 17.5858L19.1194 21.2911L17.7052 22.7053Z" fill="currentColor"/><path fill-rule="evenodd" clip-rule="evenodd" d="M12.7052 22.7053L8.99997 19L10.4142 17.5858L14.1194 21.2911L12.7052 22.7053Z" fill="currentColor"/><path fill-rule="evenodd" clip-rule="evenodd" d="M22.7052 22.7053L19 19L20.4142 17.5858L24.1194 21.2911L22.7052 22.7053Z" fill="currentColor"/></svg>',close:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"/></svg>'}}static get properties(){return{icon:{type:String},size:{type:String,reflect:!0,defaultValue:"medium"},_loadedSvg:{type:String}}}constructor(){super(),nt(this)}updated(){const{icon:t}=this;var e;/\.svg/.test(t)?(e=t,new Promise(((t,s)=>{const i=new XMLHttpRequest;i.open("GET",e),i.onload=()=>t(i.responseText),i.onerror=()=>s(i.statusText),i.send()}))).then((t=>{this._loadedSvg=t})):/<svg/.test(t)?this._loadedSvg=t:this._loadedSvg=ot.iconsMapping[t]||""}render(){return this._loadedSvg&&tt((t=>{const e=document.createElement("div");e.innerHTML=t;const s=e.firstElementChild;if(!s||"svg"!==s.tagName.toLowerCase())return"";if(s.getElementsByTagName("script").length)return"";for(let t=0,e=s.attributes,i=e.length;t<i;t++)if(e[t].name.startsWith("on"))return"";return t})(this._loadedSvg))}}return((t,e,s)=>{const i="string"==typeof e&&e;let r="";t.forEach((t=>{const n=t instanceof HTMLElement?t.constructor:t,{tagName:o}=n,l=!i&&e[o];if(l){if(!window.customElements.get(o)&&n.versions)throw Error(`'versions' is a reserved class property, but was found in ${o}'s class`);n.versions=l,et(o,n)}let{versions:h}=n;!h&&s&&(h=e[s.constructor.tagName],h[o]=Object.values(h)[0]);const a=i||h[o];r=((t,e)=>{return`${t}-${s=e,`${s}`.replace(/\./g,"-").replace(/[^A-Za-z0-9-]/g,"")}`;var s})(o,a),et(r,class extends n{})}))})([ot],{"axa-icon":{"axa-icon":"8.0.3"}}),ot}();
`}static get iconsMapping(){return{"arrow-left":'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M19.078 12.5a1 1 0 01-1 1h-10.5a1 1 0 110-2h10.5a1 1 0 011 1z" fill="currentColor"/><path fill-rule="evenodd" clip-rule="evenodd" d="M10.202 8.219a1 1 0 01.157 1.405L8.06 12.5l2.3 2.876a1 1 0 01-1.563 1.248L5.5 12.5l3.297-4.124a1 1 0 011.405-.157z" fill="currentColor"/></svg>',"arrow-right":'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M4.922 11.5a1 1 0 011-1h10.5a1 1 0 110 2h-10.5a1 1 0 01-1-1z" fill="currentColor"/><path fill-rule="evenodd" clip-rule="evenodd" d="M13.798 15.781a1 1 0 01-.157-1.405L15.94 11.5l-2.3-2.876a1 1 0 011.563-1.248L18.5 11.5l-3.297 4.124a1 1 0 01-1.405.157z" fill="currentColor"/></svg>',collapse:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M12 8l-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"/></svg>',document:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M6 2c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6H6zm7 7V3.5L18.5 9H13z"/></svg>',download:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z"/></svg>',email:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z"/></svg>',expand:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"/></svg>',mobile:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M15.5 1h-8C6.12 1 5 2.12 5 3.5v17C5 21.88 6.12 23 7.5 23h8c1.38 0 2.5-1.12 2.5-2.5v-17C18 2.12 16.88 1 15.5 1zm-4 21c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5zm4.5-4H7V4h9v14z"/></svg>',phone:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z"/></svg>',add:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"/></svg>',search:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"/></svg>',upload:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M9 16h6v-6h4l-7-7-7 7h4zm-4 2h14v2H5z"/></svg>',"cloud-upload":'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM14 13v4h-4v-4H7l5-5 5 5h-3z"/></svg>',"axa-logo":'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 283.467 283.467"><path fill="#00008f" d="M.003.003h283.464v283.464H.003z"/><path fill="#ff1721" d="M175.659 139.99L283.467 0h-15.923L159.38 139.99h16.279z"/><path fill="#fff" d="M216.597 202.461c4.941 13.823 15.122 49.795 19.17 52.661h-26.729a44.571 44.571 0 00-1.254-9.434c-1.153-4.111-10.821-35.214-10.821-35.214h-42.456l-6.675 9.463s8.018 25.097 8.515 26.327c.865 2.217 4.693 8.858 4.693 8.858h-25.615s-.664-3.833-.913-5.43c-.2-1.289-2.427-8.349-2.427-8.349s-5.806 6.362-7.388 9.312c-1.596 2.943-2.304 4.467-2.304 4.467h-20.04s-.668-3.833-.917-5.43c-.196-1.289-2.647-8.916-2.647-8.916s-5.61 6.812-7.207 9.756c-1.587 2.95-2.27 4.59-2.27 4.59h-19.82s5.601-5.332 7.559-7.622c3.3-3.882 15.6-19.956 15.6-19.956l-4.931-17.07H45.586s-24.023 31.567-24.97 32.543c-.957.962-7.96 11.011-8.116 12.105H0v-7.949a5.987 5.987 0 01.493-.479c.386-.283 18.213-22.412 34.59-44.233 14.717-19.029 28.526-37.535 29.737-39.297 2.934-4.263 7.163-13.467 7.163-13.467h21.781s.675 8.467 1.31 10.522c.565 1.817 13.837 45.362 14.15 45.831l7.338-9.385-12.543-38.614s-2.94-7.265-3.897-8.354h25.445a22.166 22.166 0 00.83 6.919c1.034 3.184 6.489 22.866 6.489 22.866s17.354-21.753 18.369-23.315a14.1 14.1 0 002.143-6.47H174.6s-3.881 2.837-10.683 11.44c-2.285 2.896-24.673 31.348-24.673 31.348s1.953 6.66 2.905 9.976c.26.952.44 1.597.44 1.665 0 .03.493-.576 1.343-1.665 5.776-7.32 32.05-41.772 33.643-44.722 1.284-2.382 3.173-5.092 4.282-8.041h20.683s.478 6.176 1.109 7.885zm-31.475-32.612c-3.037 6.533-20.913 28.296-20.913 28.296h28.31s-5.488-16.9-6.445-20.709a30.233 30.233 0 01-.557-7.402c0-.346-.063-.908-.395-.185zm-108.775 0c-3.036 6.533-20.912 28.296-20.912 28.296h28.31s-5.483-16.9-6.44-20.709a30.233 30.233 0 01-.557-7.402c0-.346-.068-.908-.4-.185zm42.623 65.986l7.793-10.703c-.718-.772-5.107-14.082-5.107-14.082l-7.535 9.775z"/></svg>',"axa-logo-open":'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 80 80"><path fill="#FF1721" d="M49.026 39.457L77.948 1.9h-4.272L44.658 39.457z"/><path d="M0 0v79.85h79.85V0H0zm77.948 77.948H1.901v-7.604h3.353c.042-.293 1.92-2.99 2.177-3.247.254-.262 6.7-8.731 6.7-8.731h11.303l1.323 4.58s-3.3 4.312-4.186 5.353c-.525.615-2.027 2.045-2.027 2.045h5.317s.183-.44.609-1.231c.428-.79 1.933-2.618 1.933-2.618s.658 2.047.71 2.392c.067.429.247 1.457.247 1.457h5.376s.19-.409.618-1.199c.424-.79 1.982-2.498 1.982-2.498s.597 1.895.65 2.24c.068.429.246 1.457.246 1.457h6.872s-1.027-1.781-1.26-2.376c-.133-.33-2.284-7.063-2.284-7.063l1.791-2.54h11.39s2.594 8.345 2.903 9.448c.202.83.315 1.678.336 2.531h7.171c-1.086-.769-3.817-10.42-5.143-14.128l-3.474-12.04c-.169-.458-.297-2.115-.297-2.115h-5.549c-.297.791-.804 1.518-1.149 2.157-.427.792-7.476 10.035-9.025 11.998-.228.292-.36.455-.36.447 0-.018-.049-.191-.118-.447-.256-.89-.78-2.676-.78-2.676s6.006-7.633 6.62-8.41c1.824-2.308 2.865-3.069 2.865-3.069h-5.687a3.783 3.783 0 01-.575 1.736c-.273.419-4.928 6.255-4.928 6.255s-1.464-5.28-1.741-6.135a5.947 5.947 0 01-.223-1.856h-6.826c.257.292 1.045 2.241 1.045 2.241l3.365 10.36-1.968 2.517c-.084-.126-3.645-11.808-3.797-12.295-.17-.551-.35-2.823-.35-2.823h-5.844s-1.135 2.47-1.922 3.613c-.325.473-4.03 5.437-7.978 10.542-4.393 5.854-9.176 11.791-9.28 11.867a1.6 1.6 0 00-.13.128V1.9h76.046v76.047zM22.64 49.503c.256 1.022 1.727 5.555 1.727 5.555h-7.595s4.796-5.838 5.61-7.59c.09-.195.108-.044.108.049a8.11 8.11 0 00.15 1.986zm9.876 11.64l2.022-2.622s1.177 3.57 1.37 3.777l-2.09 2.872-1.302-4.027zm19.304-11.64c.257 1.022 1.729 5.555 1.729 5.555h-7.595s4.796-5.838 5.61-7.59c.09-.195.106-.044.106.049a8.111 8.111 0 00.15 1.986z" fill="#00008F"/></svg>',"check-circle":'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"/></svg>',check:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"/></svg>',"info-outline":'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M11 17h2v-6h-2v6zm1-15C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zM11 9h2V7h-2v2z"/></svg>',"warning-amber":'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M1 21.5L12 2.5L23 21.5H1ZM19.53 19.5L12 6.49L4.47 19.5H19.53ZM11 16.5V18.5H13V16.5H11ZM11 10.5H13V14.5H11V10.5Z" fill="currentColor"/></svg>',cloudy:'<svg width="25" height="24" viewBox="0 0 25 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M5.34278 4.04C6.59226 1.64 9.11121 0 12 0C15.6385 0 18.6672 2.59 19.3569 6.04C21.9459 6.22 23.995 8.36 23.995 11C23.995 13.76 21.7559 16 18.9971 16H6.00251C2.69388 16 0.00500488 13.31 0.00500488 10C0.00500488 6.91 2.34403 4.36 5.34278 4.04ZM17.3978 6.43C16.888 3.86 14.6089 2 12 2C9.94086 2 8.07164 3.14 7.13204 4.97L6.63224 5.92L5.56269 6.03C3.53353 6.24 2.00417 7.95 2.00417 10C2.00417 12.21 3.79343 14 6.00251 14H18.9971C20.6464 14 21.9958 12.65 21.9958 11C21.9958 9.45 20.7764 8.15 19.217 8.04L17.6976 7.93L17.3978 6.43Z" fill="currentColor"/><path fill-rule="evenodd" clip-rule="evenodd" d="M7.70521 22.7053L3.99997 19L5.41418 17.5858L9.11942 21.2911L7.70521 22.7053Z" fill="currentColor"/><path fill-rule="evenodd" clip-rule="evenodd" d="M17.7052 22.7053L14 19L15.4142 17.5858L19.1194 21.2911L17.7052 22.7053Z" fill="currentColor"/><path fill-rule="evenodd" clip-rule="evenodd" d="M12.7052 22.7053L8.99997 19L10.4142 17.5858L14.1194 21.2911L12.7052 22.7053Z" fill="currentColor"/><path fill-rule="evenodd" clip-rule="evenodd" d="M22.7052 22.7053L19 19L20.4142 17.5858L24.1194 21.2911L22.7052 22.7053Z" fill="currentColor"/></svg>',close:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"/></svg>'}}static get properties(){return{icon:{type:String},size:{type:String,reflect:!0,defaultValue:"medium"},_loadedSvg:{type:String}}}constructor(){super(),nt(this)}updated(){const{icon:t}=this;var e;/\.svg/.test(t)?(e=t,new Promise(((t,s)=>{const i=new XMLHttpRequest;i.open("GET",e),i.onload=()=>t(i.responseText),i.onerror=()=>s(i.statusText),i.send()}))).then((t=>{this._loadedSvg=t})):/<svg/.test(t)?this._loadedSvg=t:this._loadedSvg=ot.iconsMapping[t]||""}render(){return this._loadedSvg&&tt((t=>{const e=document.createElement("div");e.innerHTML=t;const s=e.firstElementChild;if(!s||"svg"!==s.tagName.toLowerCase())return"";if(s.getElementsByTagName("script").length)return"";for(let t=0,e=s.attributes,i=e.length;t<i;t++)if(e[t].name.startsWith("on"))return"";return t})(this._loadedSvg))}}return((t,e,s)=>{const i="string"==typeof e&&e;let r="";t.forEach((t=>{const n=t instanceof HTMLElement?t.constructor:t,{tagName:o}=n,l=!i&&e[o];if(l){if(!window.customElements.get(o)&&n.versions)throw Error(`'versions' is a reserved class property, but was found in ${o}'s class`);n.versions=l,et(o,n)}let{versions:h}=n;!h&&s&&(h=e[s.constructor.tagName],h[o]=Object.values(h)[0]);const a=i||h[o];r=((t,e)=>{return`${t}-${s=e,`${s}`.replace(/\./g,"-").replace(/[^A-Za-z0-9-]/g,"")}`;var s})(o,a),et(r,class extends n{})}))})([ot],{"axa-icon":{"axa-icon":"8.0.4"}}),ot}();
import{LitElement as e,css as t,unsafeCSS as r}from"lit";import{unsafeHTML as n}from"lit/directives/unsafe-html.js";import{Expand_lessSvg as o,Insert_drive_fileSvg as s,File_downloadSvg as a,EmailSvg as i,Expand_moreSvg as c,Phone_iphoneSvg as l,Local_phoneSvg as u,AddSvg as d,SearchSvg as g,File_uploadSvg as p,Cloud_uploadSvg as m,Check_circleSvg as h,CheckSvg as f,Info_outlineSvg as v,Warning_amberSvg as w,CloudySvg as x,CloseSvg as y}from"@axa-ch/materials/icons/material-design";import{ArrowLeftSvg as E,ArrowRightSvg as b}from"@axa-ch/materials/icons";import{AxaLogoSvg as S,AxaLogoOpenSvg as N}from"@axa-ch/materials/images";var $=(e,t)=>{const r=e.toLowerCase();return window.customElements.get(r)||window.customElements.define(r,t),r};const M=e=>!(null==e),T=new Map;[[String,""],[Boolean,!1],[Object,{}],[Array,[]],[Number,0],[Function,()=>{}]].forEach((([e,t])=>{T.set(e,t)}));const _=()=>{},j=e=>{const{constructor:{properties:t}}=e;Object.keys(t).forEach((r=>{const n=t[r],{type:o,converter:s,defaultValue:a}=n;if(!o){if(!s)throw new Error(`<${e.nodeName}> property "${r}" is missing a type!`);return}let i=e[r];M(i)||(i=o===Boolean?e.hasAttribute(r):e.getAttribute(r),M(i)?e[r]=((e,t)=>t===Number?parseFloat(e):t===Function?_:t===Array||t===Object?JSON.parse(e):e)(i,o):void 0===a&&"defaultValue"in n||(e[r]="defaultValue"in n?a:T.get(o)))}))};class z extends e{static get tagName(){return"axa-icon"}static get styles(){return t`
${r(":host(:not([size=original])) svg {\n width: 24px;\n height: 24px;\n}\n\n:host([size=small]) svg {\n width: 20px;\n height: 20px;\n}\n\n:host([size=large]) svg {\n width: 32px;\n height: 32px;\n}")}
`}static get iconsMapping(){return{"arrow-left":E,"arrow-right":b,collapse:o,document:s,download:a,email:i,expand:c,mobile:l,phone:u,add:d,search:g,upload:p,"cloud-upload":m,"axa-logo":S,"axa-logo-open":N,"check-circle":h,check:f,"info-outline":v,"warning-amber":w,cloudy:x,close:y}}static get properties(){return{icon:{type:String},size:{type:String,reflect:!0,defaultValue:"medium"},_loadedSvg:{type:String}}}constructor(){super(),j(this)}updated(){const{icon:e}=this;var t;/\.svg/.test(e)?(t=e,new Promise(((e,r)=>{const n=new XMLHttpRequest;n.open("GET",t),n.onload=()=>e(n.responseText),n.onerror=()=>r(n.statusText),n.send()}))).then((e=>{this._loadedSvg=e})):/<svg/.test(e)?this._loadedSvg=e:this._loadedSvg=z.iconsMapping[e]||""}render(){return this._loadedSvg&&n((e=>{const t=document.createElement("div");t.innerHTML=e;const r=t.firstElementChild;if(!r||"svg"!==r.tagName.toLowerCase())return"";if(r.getElementsByTagName("script").length)return"";for(let e=0,t=r.attributes,n=t.length;e<n;e++)if(t[e].name.startsWith("on"))return"";return e})(this._loadedSvg))}}((e,t,r)=>{const n="string"==typeof t&&t;let o="";e.forEach((e=>{const s=e instanceof HTMLElement?e.constructor:e,{tagName:a}=s,i=!n&&t[a];if(i){if(!window.customElements.get(a)&&s.versions)throw Error(`'versions' is a reserved class property, but was found in ${a}'s class`);s.versions=i,$(a,s)}let{versions:c}=s;!c&&r&&(c=t[r.constructor.tagName],c[a]=Object.values(c)[0]);const l=n||c[a];o=((e,t)=>{return`${e}-${r=t,`${r}`.replace(/\./g,"-").replace(/[^A-Za-z0-9-]/g,"")}`;var r})(a,l),$(o,class extends s{})}))})([z],{"axa-icon":{"axa-icon":"8.0.3"}});export{z as default};
`}static get iconsMapping(){return{"arrow-left":E,"arrow-right":b,collapse:o,document:s,download:a,email:i,expand:c,mobile:l,phone:u,add:d,search:g,upload:p,"cloud-upload":m,"axa-logo":S,"axa-logo-open":N,"check-circle":h,check:f,"info-outline":v,"warning-amber":w,cloudy:x,close:y}}static get properties(){return{icon:{type:String},size:{type:String,reflect:!0,defaultValue:"medium"},_loadedSvg:{type:String}}}constructor(){super(),j(this)}updated(){const{icon:e}=this;var t;/\.svg/.test(e)?(t=e,new Promise(((e,r)=>{const n=new XMLHttpRequest;n.open("GET",t),n.onload=()=>e(n.responseText),n.onerror=()=>r(n.statusText),n.send()}))).then((e=>{this._loadedSvg=e})):/<svg/.test(e)?this._loadedSvg=e:this._loadedSvg=z.iconsMapping[e]||""}render(){return this._loadedSvg&&n((e=>{const t=document.createElement("div");t.innerHTML=e;const r=t.firstElementChild;if(!r||"svg"!==r.tagName.toLowerCase())return"";if(r.getElementsByTagName("script").length)return"";for(let e=0,t=r.attributes,n=t.length;e<n;e++)if(t[e].name.startsWith("on"))return"";return e})(this._loadedSvg))}}((e,t,r)=>{const n="string"==typeof t&&t;let o="";e.forEach((e=>{const s=e instanceof HTMLElement?e.constructor:e,{tagName:a}=s,i=!n&&t[a];if(i){if(!window.customElements.get(a)&&s.versions)throw Error(`'versions' is a reserved class property, but was found in ${a}'s class`);s.versions=i,$(a,s)}let{versions:c}=s;!c&&r&&(c=t[r.constructor.tagName],c[a]=Object.values(c)[0]);const l=n||c[a];o=((e,t)=>{return`${e}-${r=t,`${r}`.replace(/\./g,"-").replace(/[^A-Za-z0-9-]/g,"")}`;var r})(a,l),$(o,class extends s{})}))})([z],{"axa-icon":{"axa-icon":"8.0.4"}});export{z as default};
import e from"@skatejs/val";import{LitElement as t,css as r,unsafeCSS as s}from"lit";import{unsafeHTML as a}from"lit/directives/unsafe-html.js";import{Expand_lessSvg as o,Insert_drive_fileSvg as n,File_downloadSvg as i,EmailSvg as c,Expand_moreSvg as l,Phone_iphoneSvg as p,Local_phoneSvg as u,AddSvg as d,SearchSvg as m,File_uploadSvg as g,Cloud_uploadSvg as h,Check_circleSvg as f,CheckSvg as v,Info_outlineSvg as w,Warning_amberSvg as x,CloudySvg as y,CloseSvg as b}from"@axa-ch/materials/icons/material-design";import{ArrowLeftSvg as E,ArrowRightSvg as N}from"@axa-ch/materials/icons";import{AxaLogoSvg as j,AxaLogoOpenSvg as S}from"@axa-ch/materials/images";var A=(e,t)=>{const r=e.toLowerCase();return window.customElements.get(r)||window.customElements.define(r,t),r};const O=(e,t,r)=>{const s="string"==typeof t&&t;let a="";return e.forEach((e=>{const o=e instanceof HTMLElement?e.constructor:e,{tagName:n}=o,i=!s&&t[n];if(i){if(!window.customElements.get(n)&&o.versions)throw Error(`'versions' is a reserved class property, but was found in ${n}'s class`);o.versions=i,A(n,o)}let{versions:c}=o;!c&&r&&(c=t[r.constructor.tagName],c[n]=Object.values(c)[0]);const l=s||c[n];a=((e,t)=>{return`${e}-${r=t,`${r}`.replace(/\./g,"-").replace(/[^A-Za-z0-9-]/g,"")}`;var r})(n,l),A(a,class extends o{})})),a},$=(e,t)=>{const r={},s={};let a;return Object.keys(e).forEach((o=>{const n=e[o];let i;const c=t.properties[o]||{},{type:l}=c;switch(i=0===o.indexOf("on")&&o.charAt(2)===o.charAt(2).toUpperCase()?Function:"className"===o?"className":l,i){case"className":case Array:case Object:case Function:case Boolean:a=s;break;default:a=l?s:r}void 0!==n&&(a[o]="style"===o?(e=>Object.keys(e).reduce(((t,r)=>{let s=t;return`${s+=r.split(/(?=[A-Z])/).join("-").toLowerCase()}:${e[r]};`}),""))(n):n)})),{attrs:r,props:s}};const k=e=>!(null==e),C=new Map;[[String,""],[Boolean,!1],[Object,{}],[Array,[]],[Number,0],[Function,()=>{}]].forEach((([e,t])=>{C.set(e,t)}));const L=()=>{},M=e=>{const{constructor:{properties:t}}=e;Object.keys(t).forEach((r=>{const s=t[r],{type:a,converter:o,defaultValue:n}=s;if(!a){if(!o)throw new Error(`<${e.nodeName}> property "${r}" is missing a type!`);return}let i=e[r];k(i)||(i=a===Boolean?e.hasAttribute(r):e.getAttribute(r),k(i)?e[r]=((e,t)=>t===Number?parseFloat(e):t===Function?L:t===Array||t===Object?JSON.parse(e):e)(i,a):void 0===n&&"defaultValue"in s||(e[r]="defaultValue"in s?n:C.get(a)))}))};class T extends t{static get tagName(){return"axa-icon"}static get styles(){return r`
${s(":host(:not([size=original])) svg {\n width: 24px;\n height: 24px;\n}\n\n:host([size=small]) svg {\n width: 20px;\n height: 20px;\n}\n\n:host([size=large]) svg {\n width: 32px;\n height: 32px;\n}")}
`}static get iconsMapping(){return{"arrow-left":E,"arrow-right":N,collapse:o,document:n,download:i,email:c,expand:l,mobile:p,phone:u,add:d,search:m,upload:g,"cloud-upload":h,"axa-logo":j,"axa-logo-open":S,"check-circle":f,check:v,"info-outline":w,"warning-amber":x,cloudy:y,close:b}}static get properties(){return{icon:{type:String},size:{type:String,reflect:!0,defaultValue:"medium"},_loadedSvg:{type:String}}}constructor(){super(),M(this)}updated(){const{icon:e}=this;var t;/\.svg/.test(e)?(t=e,new Promise(((e,r)=>{const s=new XMLHttpRequest;s.open("GET",t),s.onload=()=>e(s.responseText),s.onerror=()=>r(s.statusText),s.send()}))).then((e=>{this._loadedSvg=e})):/<svg/.test(e)?this._loadedSvg=e:this._loadedSvg=T.iconsMapping[e]||""}render(){return this._loadedSvg&&a((e=>{const t=document.createElement("div");t.innerHTML=e;const r=t.firstElementChild;if(!r||"svg"!==r.tagName.toLowerCase())return"";if(r.getElementsByTagName("script").length)return"";for(let e=0,t=r.attributes,s=t.length;e<s;e++)if(t[e].name.startsWith("on"))return"";return e})(this._loadedSvg))}}O([T],{"axa-icon":{"axa-icon":"8.0.3"}});var _=(t,r)=>((t,r,s)=>{const{tagName:a}=r,o=s?O([r],s):a,n=o.split("-").map((e=>e.charAt(0).toUpperCase()+e.slice(1))).join(""),i=({children:s,...a})=>{const{attrs:n,props:i}=$(a,r);return e(t)(o,{isReact:!0,attrs:n,...i},s)};return i.displayName=n,i})(t,T,r);export{_ as default};
`}static get iconsMapping(){return{"arrow-left":E,"arrow-right":N,collapse:o,document:n,download:i,email:c,expand:l,mobile:p,phone:u,add:d,search:m,upload:g,"cloud-upload":h,"axa-logo":j,"axa-logo-open":S,"check-circle":f,check:v,"info-outline":w,"warning-amber":x,cloudy:y,close:b}}static get properties(){return{icon:{type:String},size:{type:String,reflect:!0,defaultValue:"medium"},_loadedSvg:{type:String}}}constructor(){super(),M(this)}updated(){const{icon:e}=this;var t;/\.svg/.test(e)?(t=e,new Promise(((e,r)=>{const s=new XMLHttpRequest;s.open("GET",t),s.onload=()=>e(s.responseText),s.onerror=()=>r(s.statusText),s.send()}))).then((e=>{this._loadedSvg=e})):/<svg/.test(e)?this._loadedSvg=e:this._loadedSvg=T.iconsMapping[e]||""}render(){return this._loadedSvg&&a((e=>{const t=document.createElement("div");t.innerHTML=e;const r=t.firstElementChild;if(!r||"svg"!==r.tagName.toLowerCase())return"";if(r.getElementsByTagName("script").length)return"";for(let e=0,t=r.attributes,s=t.length;e<s;e++)if(t[e].name.startsWith("on"))return"";return e})(this._loadedSvg))}}O([T],{"axa-icon":{"axa-icon":"8.0.4"}});var _=(t,r)=>((t,r,s)=>{const{tagName:a}=r,o=s?O([r],s):a,n=o.split("-").map((e=>e.charAt(0).toUpperCase()+e.slice(1))).join(""),i=({children:s,...a})=>{const{attrs:n,props:i}=$(a,r);return e(t)(o,{isReact:!0,attrs:n,...i},s)};return i.displayName=n,i})(t,T,r);export{_ as default};
{
"name": "@axa-ch/icon",
"version": "8.0.4",
"version": "8.0.5",
"description": "The icon component for the AXA Pattern Library",

@@ -34,8 +34,8 @@ "author": "Pattern Warriors",

"dependencies": {
"@axa-ch/materials": "16.0.4",
"@axa-ch/materials": "16.0.5",
"@skatejs/val": "^0.4.0",
"lit": "^2.2.1"
},
"gitHead": "9c725ff27a597cae7da2dddacf4f4c8bbaaf0b3f",
"gitHead": "59adf7473b8204e2da1df5d6fe6b5c9ab4f9a984",
"main": "lib/index.js"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc