2023-10-02 10:46:09 +00:00
|
|
|
import BaseStyle from 'primevue/base/style';
|
|
|
|
|
|
|
|
const inlineStyles = {
|
|
|
|
root: { position: 'relative' }
|
|
|
|
};
|
|
|
|
|
|
|
|
const classes = {
|
|
|
|
root: ({ instance, props }) => [
|
|
|
|
'p-inputswitch p-component',
|
|
|
|
{
|
2024-01-12 07:07:55 +00:00
|
|
|
'p-highlight': instance.checked,
|
2024-01-30 11:27:56 +00:00
|
|
|
'p-disabled': props.disabled,
|
|
|
|
'p-invalid': props.invalid
|
2023-10-02 10:46:09 +00:00
|
|
|
}
|
|
|
|
],
|
2024-01-12 07:07:55 +00:00
|
|
|
input: 'p-inputswitch-input',
|
2023-10-02 10:46:09 +00:00
|
|
|
slider: 'p-inputswitch-slider'
|
|
|
|
};
|
|
|
|
|
|
|
|
export default BaseStyle.extend({
|
|
|
|
name: 'inputswitch',
|
|
|
|
classes,
|
|
|
|
inlineStyles
|
|
|
|
});
|