import genControlHeight from '../shared/genControlHeight.mjs';
import derivative$1 from '../default/index.mjs';
import genFontMapToken from '../shared/genFontMapToken.mjs';
import genSizeMapToken from './genCompactSizeMapToken.mjs';

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

export { derivative as default };
//# sourceMappingURL=index.mjs.map
