iobroker.lovelace
Version:
With this adapter you can build visualization for ioBroker with Home Assistant Lovelace UI
2 lines • 1.25 kB
JavaScript
;(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([["80175"],{79505:function(o,t,e){e.r(t),e.d(t,{HaIconButtonToggle:()=>l});var n=e(61701),r=(e(71695),e(47021),e(57243)),i=e(50778),s=e(23334);let a,c=o=>o,l=(0,n.Z)([(0,i.Mo)("ha-icon-button-toggle")],(function(o,t){return{F:class extends t{constructor(...t){super(...t),o(this)}},d:[{kind:"field",decorators:[(0,i.Cb)({type:Boolean,reflect:!0})],key:"selected",value(){return!1}},{kind:"field",static:!0,key:"styles",value(){return(0,r.iv)(a||(a=c`:host{position:relative}mwc-icon-button{position:relative;transition:color 180ms ease-in-out}mwc-icon-button::before{opacity:0;transition:opacity 180ms ease-in-out;background-color:var(--primary-text-color);border-radius:20px;height:40px;width:40px;content:"";position:absolute;top:-10px;left:-10px;bottom:-10px;right:-10px;margin:auto;box-sizing:border-box}:host([border-only]) mwc-icon-button::before{background-color:transparent;border:2px solid var(--primary-text-color)}:host([selected]) mwc-icon-button{color:var(--primary-background-color)}:host([selected]:not([disabled])) mwc-icon-button::before{opacity:1}`))}}]}}),s.HaIconButton)}}]);
//# sourceMappingURL=80175.4a38653a06637da7.js.map