UNPKG

primevue

Version:

PrimeVue is an open source UI library for Vue featuring a rich set of 80+ components, a theme designer, various theme alternatives such as Material, Bootstrap, Tailwind, premium templates and professional support. In addition, it integrates with PrimeBloc

39 lines (33 loc) 1.19 kB
this.primevue = this.primevue || {}; this.primevue.checkbox = this.primevue.checkbox || {}; this.primevue.checkbox.style = (function (BaseStyle) { 'use strict'; function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } var BaseStyle__default = /*#__PURE__*/_interopDefaultLegacy(BaseStyle); var classes = { root: function root(_ref) { var instance = _ref.instance, props = _ref.props; return ['p-checkbox p-component', { 'p-checkbox-checked': instance.checked, 'p-checkbox-disabled': props.disabled, 'p-checkbox-focused': instance.focused }]; }, input: function input(_ref2) { var instance = _ref2.instance, props = _ref2.props; return ['p-checkbox-box', { 'p-highlight': instance.checked, 'p-disabled': props.disabled, 'p-focus': instance.focused }]; }, icon: 'p-checkbox-icon' }; var CheckboxStyle = BaseStyle__default["default"].extend({ name: 'checkbox', classes: classes }); return CheckboxStyle; })(primevue.base.style);