import{textEllipsis as $,clearFix as p}from"../../style/index.mjs";const h=o=>{const{componentCls:t,antCls:c,iconCls:r,fontSize:l,lineHeight:a}=o,i=`${t}-list-item`,e=`${i}-actions`,n=`${i}-action`,s=Math.round(l*a);return{[`${t}-wrapper`]:{[`${t}-list`]:{...p(),lineHeight:o.lineHeight,[i]:{position:"relative",height:o.lineHeight*l,marginTop:o.marginXS,fontSize:l,display:"flex",alignItems:"center",transition:`background-color ${o.motionDurationSlow}`,"&:hover":{backgroundColor:o.controlItemBgHover},[`${i}-name`]:{...$,padding:`0 ${o.paddingXS}px`,lineHeight:a,flex:"auto",transition:`all ${o.motionDurationSlow}`},[e]:{[n]:{opacity:0},[`${n}${c}-btn-sm`]:{height:s,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[`
              ${n}:focus,
              &.picture ${n}
            `]:{opacity:1},[r]:{color:o.colorTextDescription,transition:`all ${o.motionDurationSlow}`},[`&:hover ${r}`]:{color:o.colorText}},[`${t}-icon ${r}`]:{color:o.colorTextDescription,fontSize:l},[`${i}-progress`]:{position:"absolute",bottom:-o.uploadProgressOffset,width:"100%",paddingInlineStart:l+o.paddingXS,fontSize:l,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${i}:hover ${n}`]:{opacity:1,color:o.colorText},[`${i}-error`]:{color:o.colorError,[`${i}-name, ${t}-icon ${r}`]:{color:o.colorError},[e]:{[`${r}, ${r}:hover`]:{color:o.colorError},[n]:{opacity:1}}},[`${t}-list-item-container`]:{transition:`opacity ${o.motionDurationSlow}, height ${o.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}}}}};export{h as default};
