mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 00:42:36 +00:00
Fixed #4530 - Export styles of all components
This commit is contained in:
parent
7b6d458067
commit
dc2913e887
463 changed files with 10696 additions and 9670 deletions
27
components/lib/togglebutton/style/ToggleButtonStyle.js
Normal file
27
components/lib/togglebutton/style/ToggleButtonStyle.js
Normal file
|
@ -0,0 +1,27 @@
|
|||
import BaseStyle from 'primevue/base/style';
|
||||
|
||||
const classes = {
|
||||
root: ({ instance, props }) => [
|
||||
'p-button p-togglebutton p-component',
|
||||
{
|
||||
'p-focus': instance.focused,
|
||||
'p-button-icon-only': instance.hasIcon && !instance.hasLabel,
|
||||
'p-disabled': props.disabled,
|
||||
'p-highlight': props.modelValue === true
|
||||
}
|
||||
],
|
||||
icon: ({ instance, props }) => [
|
||||
'p-button-icon',
|
||||
{
|
||||
'p-button-icon-left': props.iconPos === 'left' && instance.label,
|
||||
'p-button-icon-right': props.iconPos === 'right' && instance.label
|
||||
}
|
||||
],
|
||||
label: 'p-button-label'
|
||||
};
|
||||
|
||||
export default BaseStyle.extend({
|
||||
name: 'accordion',
|
||||
classes,
|
||||
loadStyle: () => {}
|
||||
});
|
5
components/lib/togglebutton/style/package.json
Normal file
5
components/lib/togglebutton/style/package.json
Normal file
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"main": "./togglebuttonstyle.cjs.js",
|
||||
"module": "./togglebuttonstyle.esm.js",
|
||||
"unpkg": "./togglebuttonstyle.min.js"
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue