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
30 lines (24 loc) • 1.08 kB
JavaScript
;
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 css = "\n@layer primevue {\n .p-checkbox {\n position: relative;\n display: inline-flex;\n user-select: none;\n vertical-align: bottom;\n }\n\n .p-checkbox-input {\n cursor: pointer;\n }\n\n .p-checkbox-box {\n display: flex;\n justify-content: center;\n align-items: center;\n }\n}\n";
var classes = {
root: function root(_ref) {
var instance = _ref.instance,
props = _ref.props;
return ['p-checkbox p-component', {
'p-highlight': instance.checked,
'p-disabled': props.disabled
}];
},
box: 'p-checkbox-box',
input: 'p-checkbox-input',
icon: 'p-checkbox-icon'
};
var CheckboxStyle = BaseStyle__default["default"].extend({
name: 'checkbox',
css: css,
classes: classes
});
module.exports = CheckboxStyle;