import BaseStyle from 'primevue/base/style';

var theme = function theme(_ref) {
  var dt = _ref.dt;
  return "\n.p-inline-message {\n    display: inline-flex;\n    align-items: center;\n    justify-content: center;\n    padding: 0.5rem 0.75rem;\n    margin: 0;\n    border-radius: ".concat(dt('rounded.base'), ";\n}\n\n.p-inline-message-text {\n    font-weight: 500;\n}\n\n.p-inline-message-icon {\n    flex-shrink: 0;\n    margin-right: 0.5rem;\n}\n\n.p-inline-message-icon-only .p-inline-message-text {\n    visibility: hidden;\n    width: 0;\n}\n\n.p-fluid .p-inline-message {\n    display: flex;\n}\n\n.p-inline-message-info {\n    background: ").concat(dt('inlinemessage.info.background'), ";\n    border: 1px solid ").concat(dt('inlinemessage.info.border.color'), ";\n    color: ").concat(dt('inlinemessage.info.color'), ";\n    box-shadow: ").concat(dt('inlinemessage.info.box.shadow'), ";\n}\n\n.p-inline-message-info .p-inline-message-icon {\n    color: ").concat(dt('inlinemessage.info.color'), ";\n}\n\n.p-inline-message-success {\n    background: ").concat(dt('inlinemessage.success.background'), ";\n    border: 1px solid ").concat(dt('inlinemessage.success.border.color'), ";\n    color: ").concat(dt('inlinemessage.success.color'), ";\n    box-shadow: ").concat(dt('inlinemessage.success.box.shadow'), ";\n}\n.p-inline-message-success .p-inline-message-icon {\n    color: ").concat(dt('inlinemessage.success.color'), ";\n}\n\n.p-inline-message-warn {\n    background: ").concat(dt('inlinemessage.warn.background'), ";\n    border: 1px solid ").concat(dt('inlinemessage.warn.border.color'), ";\n    color: ").concat(dt('inlinemessage.warn.color'), ";\n    box-shadow: ").concat(dt('inlinemessage.warn.box.shadow'), ";\n}\n.p-inline-message-warn .p-inline-message-icon {\n    color: ").concat(dt('inlinemessage.warn.color'), ";\n}\n\n.p-inline-message-error {\n    background: ").concat(dt('inlinemessage.error.background'), ";\n    border: 1px solid ").concat(dt('inlinemessage.error.border.color'), ";\n    color: ").concat(dt('inlinemessage.error.color'), ";\n    box-shadow: ").concat(dt('inlinemessage.error.box.shadow'), ";\n}\n.p-inline-message-error .p-inline-message-icon {\n    color: ").concat(dt('inlinemessage.error.color'), ";\n}\n\n.p-inline-message-secondary {\n    background: ").concat(dt('inlinemessage.secondary.background'), ";\n    border: 1px solid ").concat(dt('inlinemessage.secondary.border.color'), ";\n    color: ").concat(dt('inlinemessage.secondary.color'), ";\n    box-shadow: ").concat(dt('inlinemessage.secondary.box.shadow'), ";\n}\n.p-inline-message-secondary .p-inline-message-icon {\n    color: ").concat(dt('inlinemessage.secondary.color'), ";\n}\n\n.p-inline-message-contrast {\n    background: ").concat(dt('inlinemessage.contrast.background'), ";\n    border: 1px solid ").concat(dt('inlinemessage.contrast.border.color'), ";\n    color: ").concat(dt('inlinemessage.contrast.color'), ";\n    box-shadow: ").concat(dt('inlinemessage.contrast.box.shadow'), ";\n}\n.p-inline-message-contrast .p-inline-message-icon {\n    color: ").concat(dt('inlinemessage.contrast.color'), ";\n}\n\n.p-inline-message-icon-only .p-inline-message-icon {\n    margin-right: 0;\n}\n");
};
var classes = {
  root: function root(_ref2) {
    var props = _ref2.props,
      instance = _ref2.instance;
    return ['p-inline-message p-component p-inline-message-' + props.severity, {
      'p-inline-message-icon-only': !instance.$slots["default"]
    }];
  },
  icon: function icon(_ref3) {
    var props = _ref3.props;
    return ['p-inline-message-icon', props.icon];
  },
  text: 'p-inline-message-text'
};
var InlineMessageStyle = BaseStyle.extend({
  name: 'inlinemessage',
  theme: theme,
  classes: classes
});

export { InlineMessageStyle as default };
