UNPKG

@rocketspark/domain-checker

Version:
13 lines 2.45 kB
/*! * * @rocketspark/domain-checker v0.0.34 * https://github.com/rocketspark/domain-checker.git * * Copyright (c) Lee Reichardt and project contributors. * * This source code is licensed under the no license license found in the * LICENSE file in the root directory of this source tree. * */ "use strict";(self.webpackChunkDomainChecker=self.webpackChunkDomainChecker||[]).push([[551],{5551:function(e,t,n){n.r(t),n.d(t,{rs_checkbox:function(){return o}});var i=n(7915);const o=class{constructor(e){(0,i.r)(this,e),this.rsChange=(0,i.c)(this,"rsChange",7),this.onChange=e=>{const t=e.target;void 0!==t&&(this.checked=t.checked,this.rsChange.emit({value:this.checked}))},this.disabled=!1,this.checked=!1}render(){return(0,i.h)(i.H,null,(0,i.h)("input",{onChange:this.onChange,type:"checkbox",id:"checkbox",disabled:this.disabled,checked:this.checked}),(0,i.h)("label",{htmlFor:"checkbox"},(0,i.h)("rs-content",{body:2,color:"grey",display:"inline-block"},(0,i.h)("slot",null))))}};o.style=':host{display:block}input{display:none;cursor:pointer;width:20px;height:20px}input+label{position:relative;cursor:pointer;display:inline-block;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;user-select:none;font-size:0}label rs-content{line-height:1.5em}input+label rs-content{margin-left:26px}input+label::before,input+label::after{width:20px;height:20px;content:" ";display:inline-block;border-radius:3px;cursor:pointer;transition:background 0.15s ease-out, opacity 0.15s ease-out, border 0.15s ease-out;position:absolute;left:0;text-align:center;top:1px}input+label::before{background:var(--rs-color-white);box-shadow:inset 0 0 0 1px var(--rs-color-grey)}input+label::after{opacity:0;font-size:14px;display:flex;align-items:center;justify-content:center}input:checked+label::before{background:var(--rs-color-primary);box-shadow:inset 0 0 0 1px var(--rs-color-primary)}input:checked+label::after{content:"\\e901";color:#fff;opacity:1;font-family:rs-icons !important;font-style:normal;font-weight:normal;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}input[disabled],input[disabled]+label,input[disabled]+label::before,input[disabled]+label::after,input[disabled]:checked+label,input[disabled]:checked+label::before,input[disabled]:checked+label::after{filter:grayscale(1);cursor:not-allowed}'}}]); //# sourceMappingURL=551.index.js.map