baked-recipe-admin
Version:
Baked is an opinionated framework for .NET in backend and Nuxt in frontend. This is a recipe package that brings together all the components one needs for an Admin UI.
32 lines (29 loc) • 774 B
JavaScript
import { style } from '@primeuix/styles/toggleswitch';
import BaseStyle from '@primevue/core/base/style';
var inlineStyles = {
root: {
position: 'relative'
}
};
var classes = {
root: function root(_ref) {
var instance = _ref.instance,
props = _ref.props;
return ['p-toggleswitch p-component', {
'p-toggleswitch-checked': instance.checked,
'p-disabled': props.disabled,
'p-invalid': instance.$invalid
}];
},
input: 'p-toggleswitch-input',
slider: 'p-toggleswitch-slider',
handle: 'p-toggleswitch-handle'
};
var ToggleSwitchStyle = BaseStyle.extend({
name: 'toggleswitch',
style: style,
classes: classes,
inlineStyles: inlineStyles
});
export { ToggleSwitchStyle as default };
//# sourceMappingURL=index.mjs.map