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:"c64f25a3c615d16de3594013a84642d4588552ad",class:{text:!0,"is-truncated":this.truncate,"text--is-rtl":isRtl()}},h("slot",{key:"add8a835c6242a76174d4d31e9ecedd60e02c965"}))}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"}}}}