import{h}from"@stencil/core";export class ScTag{constructor(){this.type="default",this.size="medium",this.pill=!1,this.clearable=!1,this.ariaLabel=void 0}handleClearClick(){this.scClear.emit(this)}render(){const e=this.clearable?"button":"span";return h(e,{key:"a6eb94989221f559af44ff743ac449f1a5db12a6",part:"base",onClick:()=>this.handleClearClick(),class:{tag:!0,"tag--primary":"primary"===this.type,"tag--success":"success"===this.type,"tag--info":"info"===this.type,"tag--warning":"warning"===this.type,"tag--danger":"danger"===this.type,"tag--default":"default"===this.type,"tag--small":"small"===this.size,"tag--medium":"medium"===this.size,"tag--large":"large"===this.size,"tag--pill":this.pill,"tag--clearable":this.clearable},"aria-label":this.ariaLabel},h("span",{key:"a4d66d42f37ad1e2a41535bed71a430db1136d5f",class:"tag__prefix",part:"prefix"},h("slot",{key:"30a006729b60c283f1598dc6eff1dba39593300d",name:"prefix"})),h("span",{key:"aa761332b74e99eb645677c2e693c602cea025b8",part:"content",class:"tag__content"},h("slot",{key:"0db356e7587bb257add9427ea5434fc5a3d1d123"})),!!this.clearable&&h("svg",{key:"a89ff35442e1dd80e3b569b56be2fa2ad8afa93d",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",class:"bi bi-x",viewBox:"0 0 16 16"},h("path",{key:"e3e18ae0d8157445aaaacb8e1724881151c271fd",d:"M4.646 4.646a.5.5 0 0 1 .708 0L8 7.293l2.646-2.647a.5.5 0 0 1 .708.708L8.707 8l2.647 2.646a.5.5 0 0 1-.708.708L8 8.707l-2.646 2.647a.5.5 0 0 1-.708-.708L7.293 8 4.646 5.354a.5.5 0 0 1 0-.708z"})),h("span",{key:"9bf9d178e1ad087c5935326df629eddf4b0c65a5",class:"tag__suffix",part:"suffix"},h("slot",{key:"145cec1d8beedd5348611cfd6a4f562805824db3",name:"suffix"})))}static get is(){return"sc-tag"}static get encapsulation(){return"shadow"}static get originalStyleUrls(){return{$:["sc-tag.scss"]}}static get styleUrls(){return{$:["sc-tag.css"]}}static get properties(){return{type:{type:"string",mutable:!1,complexType:{original:"'primary' | 'success' | 'info' | 'warning' | 'danger' | 'default'",resolved:'"danger" | "default" | "info" | "primary" | "success" | "warning"',references:{}},required:!1,optional:!1,docs:{tags:[],text:"The tag's type."},attribute:"type",reflect:!0,defaultValue:"'default'"},size:{type:"string",mutable:!1,complexType:{original:"'small' | 'medium' | 'large'",resolved:'"large" | "medium" | "small"',references:{}},required:!1,optional:!1,docs:{tags:[],text:"The tag's size."},attribute:"size",reflect:!0,defaultValue:"'medium'"},pill:{type:"boolean",mutable:!1,complexType:{original:"boolean",resolved:"boolean",references:{}},required:!1,optional:!1,docs:{tags:[],text:"Draws a pill-style tag with rounded edges."},attribute:"pill",reflect:!0,defaultValue:"false"},clearable:{type:"boolean",mutable:!1,complexType:{original:"boolean",resolved:"boolean",references:{}},required:!1,optional:!1,docs:{tags:[],text:"Makes the tag clearable."},attribute:"clearable",reflect:!1,defaultValue:"false"},ariaLabel:{type:"string",mutable:!1,complexType:{original:"string",resolved:"string",references:{}},required:!1,optional:!1,docs:{tags:[],text:"Aria label"},attribute:"aria-label",reflect:!1}}}static get events(){return[{method:"scClear",name:"scClear",bubbles:!0,cancelable:!0,composed:!0,docs:{tags:[],text:""},complexType:{original:"ScTag",resolved:"ScTag",references:{ScTag:{location:"global",id:"global::ScTag"}}}}]}}