48 lines
981 B
JavaScript
48 lines
981 B
JavaScript
import BaseStyle from 'primevue/base/style';
|
|
|
|
const css = `
|
|
@layer primevue {
|
|
.p-panel-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
|
|
.p-panel-title {
|
|
line-height: 1;
|
|
}
|
|
|
|
.p-panel-header-icon {
|
|
display: inline-flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
cursor: pointer;
|
|
text-decoration: none;
|
|
overflow: hidden;
|
|
position: relative;
|
|
}
|
|
}
|
|
`;
|
|
|
|
const classes = {
|
|
root: ({ props }) => [
|
|
'p-panel p-component',
|
|
{
|
|
'p-panel-toggleable': props.toggleable
|
|
}
|
|
],
|
|
header: 'p-panel-header',
|
|
title: 'p-panel-title',
|
|
icons: 'p-panel-icons',
|
|
toggler: 'p-panel-header-icon p-panel-toggler p-link',
|
|
toggleablecontent: 'p-toggleable-content',
|
|
content: 'p-panel-content',
|
|
footer: 'p-panel-footer'
|
|
};
|
|
|
|
export default BaseStyle.extend({
|
|
name: 'panel',
|
|
css,
|
|
classes
|
|
});
|