import{r as c}from"./index-NdkWRN8K.js";import{j as m}from"./jsx-runtime-CnH95YSl.js";import{T as B}from"./Typography-ClQ35Rr-.js";const x={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",body:"body1",legend:"legend",overline:"overline",subordinate:"subtitle1",support:"subtitle2"},Q=["primary","textPrimary","secondary","textSecondary","error"],p=({ariaCurrent:a,ariaDescribedBy:r,ariaLabel:i,ariaLabelledBy:n,children:o,color:t,component:e,id:d,isPresentational:s,testId:l,translate:b,typographyRef:g,variant:y="body"})=>{const L=c.useMemo(()=>e||(y==="body"||y==="subordinate"||y==="support"||y==="overline"?"p":y),[e,y]),h=c.useRef(null);return c.useImperativeHandle(g,()=>({focus:()=>{var u;(u=h.current)==null||u.focus()}}),[]),m.jsx(B,{"aria-current":a,"aria-describedby":r,"aria-label":i,"aria-labelledby":n,children:o,color:t,component:L,"data-se":l,id:d,ref:h,role:s?"presentation":void 0,tabIndex:-1,translate:b,variant:x[y]})},H=c.memo(p);H.displayName="Typography";const j=({ariaCurrent:a,ariaDescribedBy:r,ariaLabel:i,ariaLabelledBy:n,children:o,color:t,component:e,id:d,isPresentational:s,testId:l,translate:b})=>m.jsx(p,{ariaCurrent:a,ariaDescribedBy:r,ariaLabel:i,ariaLabelledBy:n,children:o,color:t,component:e,id:d,isPresentational:s,testId:l,translate:b,variant:"h1"}),M=c.memo(j);M.displayName="Heading1";const v=({ariaCurrent:a,ariaDescribedBy:r,ariaLabel:i,ariaLabelledBy:n,children:o,color:t,component:e,id:d,testId:s,translate:l})=>m.jsx(p,{ariaCurrent:a,ariaDescribedBy:r,ariaLabel:i,ariaLabelledBy:n,children:o,color:t,component:e,id:d,testId:s,translate:l,variant:"h2"}),I=c.memo(v);I.displayName="Heading2";const f=({ariaCurrent:a,ariaDescribedBy:r,ariaLabel:i,ariaLabelledBy:n,children:o,color:t,component:e,id:d,testId:s,translate:l})=>m.jsx(p,{ariaCurrent:a,ariaDescribedBy:r,ariaLabel:i,ariaLabelledBy:n,children:o,color:t,component:e,id:d,testId:s,translate:l,variant:"h3"}),z=c.memo(f);z.displayName="Heading3";const N=({ariaCurrent:a,ariaDescribedBy:r,ariaLabel:i,ariaLabelledBy:n,children:o,color:t,component:e,id:d,testId:s,translate:l})=>m.jsx(p,{ariaCurrent:a,ariaDescribedBy:r,ariaLabel:i,ariaLabelledBy:n,children:o,color:t,component:e,id:d,testId:s,translate:l,variant:"h4"}),D=c.memo(N);D.displayName="Heading4";const C=({ariaCurrent:a,ariaDescribedBy:r,ariaLabel:i,ariaLabelledBy:n,children:o,color:t,component:e,id:d,testId:s,translate:l})=>m.jsx(p,{ariaCurrent:a,ariaDescribedBy:r,ariaLabel:i,ariaLabelledBy:n,children:o,color:t,component:e,id:d,testId:s,translate:l,variant:"h5"}),S=c.memo(C);S.displayName="Heading5";const T=({ariaCurrent:a,ariaDescribedBy:r,ariaLabel:i,ariaLabelledBy:n,children:o,color:t,component:e,id:d,testId:s,translate:l})=>m.jsx(p,{ariaCurrent:a,ariaDescribedBy:r,ariaLabel:i,ariaLabelledBy:n,children:o,color:t,component:e,id:d,testId:s,translate:l,variant:"h6"}),O=c.memo(T);O.displayName="Heading6";const P=({ariaCurrent:a,ariaDescribedBy:r,ariaLabel:i,ariaLabelledBy:n,children:o,color:t,component:e,id:d,testId:s,translate:l})=>m.jsx(p,{ariaCurrent:a,ariaDescribedBy:r,ariaLabel:i,ariaLabelledBy:n,children:o,color:t,component:e,id:d,testId:s,translate:l,variant:"body"}),R=c.memo(P);R.displayName="Paragraph";const E=({ariaCurrent:a,ariaDescribedBy:r,ariaLabel:i,ariaLabelledBy:n,children:o,color:t,component:e,id:d,testId:s,translate:l})=>m.jsx(p,{ariaCurrent:a,ariaDescribedBy:r,ariaLabel:i,ariaLabelledBy:n,children:o,color:t,component:e,id:d,testId:s,translate:l,variant:"subordinate"}),V=c.memo(E);V.displayName="Subordinate";const k=({ariaCurrent:a,ariaDescribedBy:r,ariaLabel:i,ariaLabelledBy:n,children:o,color:t,component:e,id:d,testId:s,translate:l})=>m.jsx(p,{ariaCurrent:a,ariaDescribedBy:r,ariaLabel:i,ariaLabelledBy:n,children:o,color:t,component:e,id:d,testId:s,translate:l,variant:"support"}),$=c.memo(k);$.displayName="Support";const q=({ariaDescribedBy:a,ariaLabel:r,ariaLabelledBy:i,children:n,color:o,component:t,id:e,testId:d,translate:s})=>m.jsx(p,{ariaDescribedBy:a,ariaLabel:r,ariaLabelledBy:i,children:n,color:o,component:t,id:e,testId:d,translate:s,variant:"legend"}),w=c.memo(q);w.displayName="Legend";const A=({ariaDescribedBy:a,ariaLabel:r,ariaLabelledBy:i,children:n,color:o,component:t,id:e,testId:d,translate:s})=>m.jsx(p,{ariaDescribedBy:a,ariaLabel:r,ariaLabelledBy:i,children:n,color:o,component:t,id:e,testId:d,translate:s,variant:"overline"}),F=c.memo(A);F.displayName="Overline";export{H as M,R as a,D as b,V as c,$ as d,w as e,S as f,z as g,x as h,F as i,O as j,I as k,M as l,Q as t};
