'use strict';

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

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

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.cjs.map
