Fixed #4530 - Export styles of all components

This commit is contained in:
mertsincan 2023-10-02 11:46:09 +01:00
parent 7b6d458067
commit dc2913e887
463 changed files with 10696 additions and 9670 deletions

View file

@ -1,46 +1,6 @@
<script>
import BaseComponent from 'primevue/basecomponent';
import { useStyle } from 'primevue/usestyle';
const styles = `
@layer primevue {
.p-fieldset-legend > a,
.p-fieldset-legend > span {
display: flex;
align-items: center;
justify-content: center;
}
.p-fieldset-toggleable .p-fieldset-legend a {
cursor: pointer;
user-select: none;
overflow: hidden;
position: relative;
text-decoration: none;
}
.p-fieldset-legend-text {
line-height: 1;
}
}
`;
const classes = {
root: ({ props }) => [
'p-fieldset p-component',
{
'p-fieldset-toggleable': props.toggleable
}
],
legend: 'p-fieldset-legend',
legendtitle: 'p-fieldset-legend-text',
togglericon: 'p-fieldset-toggler',
legendtitle: 'p-fieldset-legend-text',
toggleablecontent: 'p-toggleable-content',
content: 'p-fieldset-content'
};
const { load: loadStyle } = useStyle(styles, { name: 'fieldset', manual: true });
import FieldsetStyle from 'primevue/fieldset/style';
export default {
name: 'BaseFieldset',
@ -54,10 +14,7 @@ export default {
default: null
}
},
css: {
classes,
loadStyle
},
style: FieldsetStyle,
provide() {
return {
$parentInstance: this