import{operationUnit as e}from"./operationUnit.mjs";import{roundedArrow as t}from"./roundedArrow.mjs";import{genPresetColor as n}from"./presetColor.mjs";var r={overflow:`hidden`,whiteSpace:`nowrap`,textOverflow:`ellipsis`},i=e=>({boxSizing:`border-box`,margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:`none`,fontFamily:e.fontFamily}),a=()=>({display:`inline-flex`,alignItems:`center`,color:`inherit`,fontStyle:`normal`,lineHeight:0,textAlign:`center`,textTransform:`none`,verticalAlign:`-0.125em`,textRendering:`optimizeLegibility`,"-webkit-font-smoothing":`antialiased`,"-moz-osx-font-smoothing":`grayscale`,"> *":{lineHeight:1},svg:{display:`inline-block`}}),o=()=>({"&::before":{display:`table`,content:`""`},"&::after":{display:`table`,clear:`both`,content:`""`}}),s=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:`transparent`,outline:`none`,cursor:`pointer`,transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":`objects`,"&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active,\n  &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:`not-allowed`}}}),c=(e,t)=>{let{fontFamily:n,fontSize:r}=e,i=`[class^="${t}"], [class*=" ${t}"]`;return{[i]:{fontFamily:n,fontSize:r,boxSizing:`border-box`,"&::before, &::after":{boxSizing:`border-box`},[i]:{boxSizing:`border-box`,"&::before, &::after":{boxSizing:`border-box`}}}}},l=e=>({outline:`${e.lineWidthBold}px solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:`outline-offset 0s, outline 0s`}),u=e=>({"&:focus-visible":{...l(e)}});export{o as clearFix,c as genCommonStyle,l as genFocusOutline,u as genFocusStyle,s as genLinkStyle,n as genPresetColor,e as operationUnit,i as resetComponent,a as resetIcon,t as roundedArrow,r as textEllipsis};