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