primevue-mirror/components/lib/panelmenu/style/PanelMenuStyle.js

40 lines
1.2 KiB
JavaScript
Raw Normal View History

import BaseStyle from 'primevue/base/style';
const classes = {
root: 'p-panelmenu p-component',
panel: 'p-panelmenu-panel',
header: ({ instance, item }) => [
'p-panelmenu-header',
{
2024-04-09 14:27:13 +00:00
'p-panelmenu-header-active': instance.isItemActive(item) && !!item.items,
'p-disabled': instance.isItemDisabled(item)
}
],
headerContent: 'p-panelmenu-header-content',
headerLink: 'p-panelmenu-header-link',
2024-04-09 14:27:13 +00:00
headerIcon: 'p-panelmenu-header-icon',
headerLabel: 'p-panelmenu-header-label',
contentContainer: 'p-panelmenu-content-container',
content: 'p-panelmenu-content',
rootList: 'p-panelmenu-root-list',
item: ({ instance, processedItem }) => [
2024-04-09 14:27:13 +00:00
'p-panelmenu-item',
{
'p-focus': instance.isItemFocused(processedItem),
'p-disabled': instance.isItemDisabled(processedItem)
}
],
itemContent: 'p-panelmenu-item-content',
itemLink: 'p-panelmenu-item-link',
itemIcon: 'p-panelmenu-item-icon',
2024-04-09 14:27:13 +00:00
label: 'p-panelmenu-item-label',
submenuIcon: 'p-panelmenu-submenu-icon',
submenu: 'p-panelmenu-submenu',
separator: 'p-menuitem-separator'
};
export default BaseStyle.extend({
name: 'panelmenu',
classes
});