@rocketspark/domain-checker
Version:
Embeddable Domain Checker for Rocketspark
13 lines • 2.75 kB
JavaScript
/*!
*
* @rocketspark/domain-checker v1.0.12
* git+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,a){a.r(t),a.d(t,{rs_checkbox:function(){return o}});var i=a(6919);const o=class{constructor(e){(0,i.r)(this,e),this.rsChange=(0,i.c)(this,"rsChange",7),this.disabled=!1,this.checked=!1,this.onChange=e=>{const t=e.target;void 0!==t&&(this.checked=t.checked,this.rsChange.emit({value:this.checked}))}}render(){return(0,i.h)(i.H,{key:"a590098af5a4e23b314cd96b5f6d489d9ce57227"},(0,i.h)("input",{key:"7af45ff913cdf8c747a393ede499d7b1be5b34c9",onChange:this.onChange,type:"checkbox",id:"checkbox",disabled:this.disabled,checked:this.checked}),(0,i.h)("label",{key:"4c0c90a5eb5061a7d556bc9c28b757e06388250c",htmlFor:"checkbox"},(0,i.h)("div",{key:"497239a8ade54e9377bee8b55850b11360ae66ab",style:{width:"20px",height:"20px",flexShrink:"0"}}),(0,i.h)("rs-content",{key:"397d93ae2b544ec2bf34cc9151dcaa22c3b8ee78",body:2,color:"grey",display:"inline-block"},(0,i.h)("slot",{key:"ecf27e8991748434fc06422edd87ba3e4b2b0824"}))))}};o.style=':host{display:block}input{display:none;cursor:pointer;width:20px;height:20px}input+label{position:relative;cursor:pointer;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;user-select:none;font-size:0;display:flex;gap:8px}label rs-content{line-height:1.5em}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