import { style } from '@openuxkit/styles/password';
import BaseStyle from '@openvue/core/base/style';

var buttonReset = {
  border: 'none',
  background: 'transparent',
  padding: 0,
  cursor: 'pointer',
  font: 'inherit'
};
var inlineStyles = {
  root: function root(_ref) {
    var props = _ref.props;
    return {
      position: props.appendTo === 'self' ? 'relative' : undefined
    };
  },
  maskIcon: buttonReset,
  unmaskIcon: buttonReset,
  clearIcon: buttonReset
};
var iconButtonStyle = "\n    .p-password-toggle-mask-icon:focus-visible,\n    .p-password-clear-icon:focus-visible {\n        outline: var(--p-focus-ring-width) var(--p-focus-ring-style) var(--p-focus-ring-color);\n        outline-offset: var(--p-focus-ring-offset);\n    }\n\n    .p-password-toggle-mask-icon,\n    .p-password-clear-icon {\n        border-radius: max(2px, dt('form.field.border.radius') - dt('form.field.padding.x'));\n    }\n";
var classes = {
  root: function root(_ref2) {
    var instance = _ref2.instance;
    return ['p-password p-component p-inputwrapper', {
      'p-inputwrapper-filled': instance.$filled,
      'p-inputwrapper-focus': instance.focused,
      'p-password-fluid': instance.$fluid
    }];
  },
  pcInputText: 'p-password-input',
  maskIcon: 'p-password-toggle-mask-icon p-password-mask-icon',
  unmaskIcon: 'p-password-toggle-mask-icon p-password-unmask-icon',
  clearIcon: 'p-password-clear-icon',
  overlay: 'p-password-overlay p-component',
  content: 'p-password-content',
  meter: 'p-password-meter',
  meterLabel: function meterLabel(_ref3) {
    var instance = _ref3.instance;
    return "p-password-meter-label ".concat(instance.meter ? 'p-password-meter-' + instance.meter.strength : '');
  },
  meterText: 'p-password-meter-text'
};
var PasswordStyle = BaseStyle.extend({
  name: 'password',
  style: style + iconButtonStyle,
  classes: classes,
  inlineStyles: inlineStyles
});

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