import{proxyCustomElement,HTMLElement,h}from"@stencil/core/internal/client";import{i as isRtl}from"./page-align.js";const scTextCss=":host{display:block;--font-size:var(--font-size, var(--sc-font-size-medium));--font-weight:var(--font-size, var(--sc-font-weight-normal));--line-height:var(--font-size, var(--sc-line-height-medium));--text-align:left;--color:var(--color, inherit)}.text{margin:0;font-size:var(--font-size);font-weight:var(--font-weight);line-height:var(--line-height);text-align:var(--text-align);color:var(--sc-stacked-list-row-text-color, var(--color))}.text.is-truncated{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.text--is-rtl .text{text-align:right}",ScTextStyle0=scTextCss,ScText=proxyCustomElement(class extends HTMLElement{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.tag="p",this.truncate=!1}render(){const t=this.tag;return h(t,{key:"05bb865628eae7eaeea9d8dd5a11b175fe9d791b",class:{text:!0,"is-truncated":this.truncate,"text--is-rtl":isRtl()}},h("slot",{key:"95e04c488af2bcd847d8ba9570d710eb5c1fddcf"}))}static get style(){return ScTextStyle0}},[1,"sc-text",{tag:[1],truncate:[4]}]);function defineCustomElement(){"undefined"!=typeof customElements&&["sc-text"].forEach((t=>{"sc-text"===t&&(customElements.get(t)||customElements.define(t,ScText))}))}export{ScText as S,defineCustomElement as d};