import{operationUnit as i}from"../../style/operationUnit.mjs";import"../../theme/internal.mjs";import{getEllipsisStyles as l,getCopiableStyles as t,getEditableStyles as a,getLinkStyles as c,getResetStyles as s,getTitleStyles as g}from"./mixins.mjs";import n from"../../theme/util/genComponentStyleHook.mjs";const p=r=>{const{componentCls:o,sizeMarginHeadingVerticalStart:e}=r;return{[o]:{color:r.colorText,wordBreak:"break-word",lineHeight:r.lineHeight,[`&${o}-secondary`]:{color:r.colorTextDescription},[`&${o}-success`]:{color:r.colorSuccess},[`&${o}-warning`]:{color:r.colorWarning},[`&${o}-danger`]:{color:r.colorError,"a&:active, a&:focus":{color:r.colorErrorActive},"a&:hover":{color:r.colorErrorHover}},[`&${o}-disabled`]:{color:r.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},"\n        div&,\n        p\n      ":{marginBottom:"1em"},...g(r),[`
      & + h1${o},
      & + h2${o},
      & + h3${o},
      & + h4${o},
      & + h5${o}
      `]:{marginTop:e},"\n      div,\n      ul,\n      li,\n      p,\n      h1,\n      h2,\n      h3,\n      h4,\n      h5":{"\n        + h1,\n        + h2,\n        + h3,\n        + h4,\n        + h5\n        ":{marginTop:e}},...s(),...c(r),[`
        ${o}-expand,
        ${o}-edit,
        ${o}-copy
      `]:{...i(r),marginInlineStart:r.marginXXS},...a(r),...t(r),...l(),"&-rtl":{direction:"rtl"}}}},S=n("Typography",r=>[p(r)],{sizeMarginHeadingVerticalStart:"1.2em",sizeMarginHeadingVerticalEnd:"0.5em"});export{S as default};
