'use strict';

var BaseStyle = require('primevue/base/style');

function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }

var BaseStyle__default = /*#__PURE__*/_interopDefaultLegacy(BaseStyle);

var theme = function theme(_ref) {
  var dt = _ref.dt;
  return "\n.p-iconfield {\n    position: relative;\n}\n\n.p-inputicon {\n    position: absolute;\n    top: 50%;\n    margin-top: -.5rem;\n    color: ".concat(dt('iconfield.color'), ";\n}\n\n.p-iconfield .p-inputicon:first-child {\n    left: 0.75rem;\n}\n\n.p-iconfield .p-inputicon:last-child {\n    right: 0.75rem;\n}\n\n.p-iconfield .p-inputtext:last-child {\n    padding-left: 2.5rem;\n}\n\n.p-iconfield .p-inputtext:first-child {\n    padding-right: 2.5rem;\n}\n");
};
var classes = {
  root: 'p-iconfield'
};
var IconFieldStyle = BaseStyle__default["default"].extend({
  name: 'iconfield',
  theme: theme,
  classes: classes
});

module.exports = IconFieldStyle;
