import{h}from"@stencil/core";import{isRtl}from"../../../functions/page-align";export class ScText{constructor(){this.tag="p",this.truncate=!1}render(){const t=this.tag;return h(t,{key:"cc3a0015dddb8eb54f6c724b5824e8a56b964f24",class:{text:!0,"is-truncated":this.truncate,"text--is-rtl":isRtl()}},h("slot",{key:"19e4eb8e6f4fab3460539039013ffaa1f2e3da20"}))}static get is(){return"sc-text"}static get encapsulation(){return"shadow"}static get originalStyleUrls(){return{$:["sc-text.scss"]}}static get styleUrls(){return{$:["sc-text.css"]}}static get properties(){return{tag:{type:"string",mutable:!1,complexType:{original:"'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'p'",resolved:'"h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "p"',references:{}},required:!1,optional:!1,docs:{tags:[],text:""},attribute:"tag",reflect:!1,defaultValue:"'p'"},truncate:{type:"boolean",mutable:!1,complexType:{original:"boolean",resolved:"boolean",references:{}},required:!1,optional:!1,docs:{tags:[],text:""},attribute:"truncate",reflect:!1,defaultValue:"false"}}}}