2023-10-02 10:46:09 +00:00
|
|
|
import BaseStyle from 'primevue/base/style';
|
|
|
|
|
|
|
|
const classes = {
|
|
|
|
root: ({ instance, props }) => [
|
|
|
|
'p-inputtext p-component',
|
|
|
|
{
|
|
|
|
'p-filled': instance.filled,
|
|
|
|
'p-inputtext-sm': props.size === 'small',
|
2024-01-30 11:27:56 +00:00
|
|
|
'p-inputtext-lg': props.size === 'large',
|
2024-01-31 08:02:53 +00:00
|
|
|
'p-invalid': props.invalid,
|
2024-02-01 12:39:56 +00:00
|
|
|
'p-variant-filled': props.variant === 'filled'
|
2023-10-02 10:46:09 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
};
|
|
|
|
|
|
|
|
export default BaseStyle.extend({
|
|
|
|
name: 'inputtext',
|
2023-10-04 09:20:15 +00:00
|
|
|
classes
|
2023-10-02 10:46:09 +00:00
|
|
|
});
|