UNPKG

@rocketspark/domain-checker

Version:
13 lines 2.14 kB
/*! * * @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([[598],{3598:function(e,r,a){a.r(r),a.d(r,{rs_alert:function(){return o}});var t=a(6919);const o=class{constructor(e){(0,t.r)(this,e),this.type="error",this.alertClassNames=()=>{let e="alert";return"error"===this.type&&(e+=" alert--error"),"info"===this.type&&(e+=" alert--info"),e}}render(){return(0,t.h)(t.H,{key:"7c3da2024389431307fc602b98f6da77ea45dba8"},(0,t.h)("div",{key:"960d1ec16df12c3395accf4e3ce51e90506ab528",class:this.alertClassNames()},(0,t.h)("div",{key:"7aac59dbd3c76f9b40b0cc535ba0e2b8228adbcc",class:"alert__message",style:{flexGrow:"1"}},"error"===this.type?(0,t.h)("rs-icon",{name:"warning",color:"negative",size:18}):"",(0,t.h)("rs-content",{key:"bd9ffb2ae8d93e834a453588324ee05c7d4b81df",color:"heading",body:2,style:{flexGrow:"1"}},(0,t.h)("slot",{key:"33d65ea2746829cb39903be3cc418171712760d2"}))),void 0!==this.actionLink&&""!==this.actionLink?(0,t.h)("div",{class:"alert__action"},(0,t.h)("a",{href:this.actionLink,class:"action__link"},(0,t.h)("slot",{name:"action"}),(0,t.h)("rs-icon",{name:"arrow-right",size:18}))):""))}};o.style=":host{display:block}.alert{padding:13px 16px;border:1px solid;border-radius:6px;width:100%;display:flex;align-items:center;justify-content:space-between;gap:16px;box-sizing:border-box}.alert--error{border-color:var(--rs-color-negative);background-color:rgb(241 101 100 / 0.1)}.alert--info{border-color:var(--rs-color-primary-300);background-color:rgb(124 161 255 / 0.1)}.alert__message{display:flex;align-items:center;gap:16px}.alert__action{font-size:14px;font-weight:600}.action__link{text-decoration:none;display:flex;align-items:center;gap:8px;color:var(--rs-color-secondary);font-family:soleil, sans-serif;white-space:nowrap}"}}]); //# sourceMappingURL=598.index.js.map