import BaseStyle from 'primevue/base/style';

var classes = {
  root: function root(_ref) {
    var instance = _ref.instance,
      props = _ref.props;
    return [props.align ? 'text-' + props.align : null, {
      'p-cell-editor': props.tableCellEditor
    }, 'p-inputtext p-component', {
      'p-filled': instance.filled,
      'p-inputtext-sm': props.size === 'small',
      'p-inputtext-lg': props.size === 'large',
      'p-invalid': props.invalid,
      'p-variant-filled': props.variant ? props.variant === 'filled' : instance.$primevue.config.inputStyle === 'filled'
    }];
  }
};
var InputTextStyle = BaseStyle.extend({
  name: 'inputtext',
  classes: classes
});

export { InputTextStyle as default };
