'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

var genRadius = require('./genRadius.cjs');

function genCommonMapToken(token) {
  const { motionUnit, motionBase, borderRadius, lineWidth } = token;
  return {
    // motion
    motionDurationFast: `${(motionBase + motionUnit).toFixed(1)}s`,
    motionDurationMid: `${(motionBase + motionUnit * 2).toFixed(1)}s`,
    motionDurationSlow: `${(motionBase + motionUnit * 3).toFixed(1)}s`,
    // line
    lineWidthBold: lineWidth + 1,
    // radius
    ...genRadius.default(borderRadius)
  };
}

exports.default = genCommonMapToken;
//# sourceMappingURL=genCommonMapToken.cjs.map
