{"version":3,"file":"genCommonMapToken.cjs","sources":["../../../../../../../packages/theme/token/themes/shared/genCommonMapToken.ts"],"sourcesContent":["import type { CommonMapToken, SeedToken } from '../../interface';\nimport genRadius from './genRadius';\n\nexport default function genCommonMapToken(token: SeedToken): CommonMapToken {\n  const { motionUnit, motionBase, borderRadius, lineWidth } = token;\n\n  return {\n    // motion\n    motionDurationFast: `${(motionBase + motionUnit).toFixed(1)}s`,\n    motionDurationMid: `${(motionBase + motionUnit * 2).toFixed(1)}s`,\n    motionDurationSlow: `${(motionBase + motionUnit * 3).toFixed(1)}s`,\n\n    // line\n    lineWidthBold: lineWidth + 1,\n\n    // radius\n    ...genRadius(borderRadius),\n  };\n}\n"],"names":["genRadius"],"mappings":";;;;;;AAGA,SAAwB,kBAAkB,KAAkC,EAAA;AAC1E,EAAA,MAAM,EAAE,UAAA,EAAY,UAAY,EAAA,YAAA,EAAc,WAAc,GAAA,KAAA,CAAA;AAE5D,EAAO,OAAA;AAAA;AAAA,IAEL,oBAAoB,CAAI,EAAA,CAAA,UAAA,GAAa,UAAY,EAAA,OAAA,CAAQ,CAAC,CAAC,CAAA,CAAA,CAAA;AAAA,IAC3D,mBAAmB,CAAI,EAAA,CAAA,UAAA,GAAa,aAAa,CAAG,EAAA,OAAA,CAAQ,CAAC,CAAC,CAAA,CAAA,CAAA;AAAA,IAC9D,oBAAoB,CAAI,EAAA,CAAA,UAAA,GAAa,aAAa,CAAG,EAAA,OAAA,CAAQ,CAAC,CAAC,CAAA,CAAA,CAAA;AAAA;AAAA,IAG/D,eAAe,SAAY,GAAA,CAAA;AAAA;AAAA,IAG3B,GAAGA,kBAAU,YAAY,CAAA;AAAA,GAC3B,CAAA;AACF;;;;"}