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