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