@aplus-frontend/ui
Version:
2 lines (1 loc) • 1.04 kB
JavaScript
;Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=r=>({boxSizing:"border-box",margin:0,padding:0,color:r.textColor1,fontSize:r.fontSize,fontFamily:"inherit",lineHeight:r.lineHeight,listStyle:"none"}),l=r=>({"::-webkit-scrollbar":{width:"10px",height:"10px"},"::-webkit-scrollbar-thumb":{backgroundColor:r.scrollbarThumbColorBase,backgroundClip:"content-box",border:"1px solid transparent",borderRadius:"4px"},"::-webkit-scrollbar-track, ::-webkit-scrollbar-corner":{backgroundColor:r.scrollbarTrackColorHover},"::-webkit-scrollbar-thumb:hover, ::-webkit-scrollbar-thumb:active":{backgroundColor:r.scrollbarThumbColorHover}}),o=r=>({...e(r),display:"-webkit-inline-box","-webkit-line-clamp":`${r.lineClamp||2}`,"-webkit-box-orient":"vertical",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"normal",maxWidth:"100%",verticalAlign:"middle",wordBreak:"break-all",flex:1}),t=r=>({...o({...r,lineClamp:1})});exports.multiRows=o;exports.resetComponent=e;exports.resetScrollbar=l;exports.singleRow=t;