import{jsx as r}from"react/jsx-runtime";import{text as v}from"../../recipes/text.js";import{css as n,cx as z}from"@styled/css";import{forwardRef as c}from"react";const i="text.primary",m=c(({children:e,styles:l={},scale:s,fontColor:o=i,...a},t)=>r("h1",{ref:t,className:n({textStyle:s?"h1-scaled":"h1",color:o,...a}),style:l,children:e})),y=c(({children:e,styles:l={},scale:s,fontColor:o=i,...a},t)=>r("h2",{ref:t,className:n({textStyle:s?"h2-scaled":"h2",color:o,...a}),style:l,children:e})),f=c(({children:e,styles:l={},scale:s,fontColor:o=i,...a},t)=>r("h3",{ref:t,className:n({textStyle:s?"h3-scaled":"h3",color:o,...a}),style:l,children:e})),x=c(({children:e,styles:l={},scale:s,fontColor:o=i,...a},t)=>r("h4",{ref:t,className:n({textStyle:s?"h4-scaled":"h4",color:o,...a}),style:l,children:e})),p=c(({children:e,styles:l={},scale:s,fontColor:o=i,...a},t)=>r("h5",{ref:t,className:n({textStyle:s?"h5-scaled":"h5",color:o,...a}),style:l,children:e})),N=c(({children:e,styles:l={},scale:s,fontColor:o="text.secondary",...a},t)=>r("h6",{ref:t,className:n({textStyle:s?"h6-scaled":"h6",color:o,...a}),style:l,children:e})),h=c(({children:e,styles:l={},scale:s,inline:o=!1,mono:a=!1,variant:t="text",size:T="md",truncate:C=!1,fontWeight:S,fontColor:u,...g},b)=>{const j=v({mono:a,variant:t,size:T,scale:s}),d={ref:b,className:z(j,n({truncate:C,fontWeight:S??(t!=="text"?"medium":"normal"),color:u,...g})),style:l};return o?r("span",{...d,children:e}):r("p",{...d,children:e})}),H=c((e,l)=>r(h,{ref:l,mono:!0,...e})),M=Object.assign(h,{H1:m,H2:y,H3:f,H4:x,H5:p,H6:N,Mono:H});h.displayName="Text",m.displayName="Text.H1",y.displayName="Text.H2",f.displayName="Text.H3",x.displayName="Text.H4",p.displayName="Text.H5",N.displayName="Text.H6",H.displayName="Text.Mono";export{M as default};
//# sourceMappingURL=text.js.map
