primevue-mirror/components/lib/dock/style/DockStyle.js

29 lines
680 B
JavaScript
Raw Normal View History

import BaseStyle from 'primevue/base/style';
const classes = {
root: ({ instance, props }) => [
'p-dock p-component',
`p-dock-${props.position}`,
{
'p-dock-mobile': instance.queryMatches
}
],
container: 'p-dock-list-container',
menu: 'p-dock-list',
2024-03-18 12:17:22 +00:00
menuitem: ({ instance, processedItem, id }) => [
'p-dock-item',
{
'p-focus': instance.isItemActive(id),
2024-03-18 12:17:22 +00:00
'p-disabled': instance.disabled(processedItem)
}
],
content: 'p-menuitem-content',
2023-11-08 12:48:23 +00:00
action: 'p-dock-link',
icon: 'p-dock-icon'
};
export default BaseStyle.extend({
name: 'dock',
classes
});