"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var a=require("react/jsx-runtime"),q=require("../../recipes/text.js"),o=require("../../lib/cn.js"),n=require("react");const x={"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"},f=n.forwardRef(({children:e,styles:t={},scale:r,fontColor:s="text.primary"},l)=>a.jsx("h1",{ref:l,className:o.cn(r?"text-style-h1-scaled":"text-style-h1",x[s]),style:t,children:e})),m=n.forwardRef(({children:e,styles:t={},scale:r,fontColor:s="text.primary"},l)=>a.jsx("h2",{ref:l,className:o.cn(r?"text-style-h2-scaled":"text-style-h2",x[s]),style:t,children:e})),h=n.forwardRef(({children:e,styles:t={},scale:r,fontColor:s="text.primary"},l)=>a.jsx("h3",{ref:l,className:o.cn(r?"text-style-h3-scaled":"text-style-h3",x[s]),style:t,children:e})),p=n.forwardRef(({children:e,styles:t={},scale:r,fontColor:s="text.primary"},l)=>a.jsx("h4",{ref:l,className:o.cn(r?"text-style-h4-scaled":"text-style-h4",x[s]),style:t,children:e})),u=n.forwardRef(({children:e,styles:t={},scale:r,fontColor:s="text.primary"},l)=>a.jsx("h5",{ref:l,className:o.cn(r?"text-style-h5-scaled":"text-style-h5",x[s]),style:t,children:e})),N=n.forwardRef(({children:e,styles:t={},scale:r,fontColor:s="text.secondary"},l)=>a.jsx("h6",{ref:l,className:o.cn(r?"text-style-h6-scaled":"text-style-h6",x[s]),style:t,children:e})),c=n.forwardRef(({children:e,styles:t={},scale:r,inline:s=!1,mono:l=!1,variant:i="text",size:H="md",truncate:R=!1,fontWeight:T,fontColor:d},b)=>{const w=q.text({mono:l,variant:i,size:H,scale:r}),y={ref:b,className:o.cn(w,v[T??(i!=="text"?"medium":"normal")],d&&x[d],R&&"truncate"),style:t};return s?a.jsx("span",{...y,children:e}):a.jsx("p",{...y,children:e})}),j=n.forwardRef((e,t)=>a.jsx(c,{ref:t,mono:!0,...e})),C=Object.assign(c,{H1:f,H2:m,H3:h,H4:p,H5:u,H6:N,Mono:j});c.displayName="Text",f.displayName="Text.H1",m.displayName="Text.H2",h.displayName="Text.H3",p.displayName="Text.H4",u.displayName="Text.H5",N.displayName="Text.H6",j.displayName="Text.Mono",exports.default=C;
//# sourceMappingURL=text.js.map
