'use strict';

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

var genControlHeight = require('../shared/genControlHeight.js');
var index = require('../default/index.js');
var genFontMapToken = require('../shared/genFontMapToken.js');
var genCompactSizeMapToken = require('./genCompactSizeMapToken.js');

const derivative = (token, mapToken) => {
  const mergedMapToken = mapToken != null ? mapToken : index.default(token);
  const fontSize = mergedMapToken.fontSizeSM;
  const controlHeight = mergedMapToken.controlHeight - 4;
  return {
    ...mergedMapToken,
    ...genCompactSizeMapToken.default(mapToken != null ? mapToken : token),
    // font
    ...genFontMapToken.default(fontSize),
    // controlHeight
    controlHeight,
    ...genControlHeight.default({ ...mergedMapToken, controlHeight })
  };
};

exports.default = derivative;
//# sourceMappingURL=index.js.map
