"use strict";var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;exports.__esModule = true;exports.withIconSizeMixin = exports.menuItemSizeMixin = exports.iconSizeMixin = void 0;var _taggedTemplateLiteralLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteralLoose"));var _Emotion = require("../../lib/theming/Emotion");

var _MenuItem = require("./MenuItem.styles");var _templateObject, _templateObject2, _templateObject3;

var menuItemSizeMixin = exports.menuItemSizeMixin = function menuItemSizeMixin(
menuItemPaddingX,
menuItemPaddingY,
menuItemLineHeight,
menuItemFontSize)
{
  var _getMenuItemPaddings = (0, _MenuItem.getMenuItemPaddings)({
      menuItemPaddingX: menuItemPaddingX,
      menuItemPaddingY: menuItemPaddingY
    }),paddingX = _getMenuItemPaddings.paddingX,paddingY = _getMenuItemPaddings.paddingY;

  return (0, _Emotion.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteralLoose2.default)(["\n    line-height: ", ";\n    font-size: ", ";\n    padding: ", " ", " ", " ", ";\n  "])),
  menuItemLineHeight,
  menuItemFontSize,
  menuItemPaddingY, paddingX, paddingY, menuItemPaddingX);

};

var iconSizeMixin = exports.iconSizeMixin = function iconSizeMixin(menuItemIconWidth, menuItemPaddingX) {
  return (0, _Emotion.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteralLoose2.default)(["\n    width: ", ";\n    left: ", "px;\n  "])),
  menuItemIconWidth,
  parseInt(menuItemPaddingX));

};

var withIconSizeMixin = exports.withIconSizeMixin = function withIconSizeMixin(menuItemPaddingForIcon) {
  return (0, _Emotion.css)(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteralLoose2.default)(["\n    padding-left: ", ";\n  "])),
  menuItemPaddingForIcon);

};