UNPKG

primevue

Version:

PrimeVue is an open source UI library for Vue featuring a rich set of 80+ components, a theme designer, various theme alternatives such as Material, Bootstrap, Tailwind, premium templates and professional support. In addition, it integrates with PrimeBloc

1 lines 3.09 kB
{"version":3,"file":"index.mjs","sources":["../../../src/menubar/style/MenubarStyle.js"],"sourcesContent":["import { style } from '@primeuix/styles/menubar';\nimport BaseStyle from '@primevue/core/base/style';\n\nconst inlineStyles = {\n submenu: ({ instance, processedItem }) => ({ display: instance.isItemActive(processedItem) ? 'flex' : 'none' })\n};\n\nconst classes = {\n root: ({ instance }) => [\n 'p-menubar p-component',\n {\n 'p-menubar-mobile': instance.queryMatches,\n 'p-menubar-mobile-active': instance.mobileActive\n }\n ],\n start: 'p-menubar-start',\n button: 'p-menubar-button',\n rootList: 'p-menubar-root-list',\n item: ({ instance, processedItem }) => [\n 'p-menubar-item',\n {\n 'p-menubar-item-active': instance.isItemActive(processedItem),\n 'p-focus': instance.isItemFocused(processedItem),\n 'p-disabled': instance.isItemDisabled(processedItem)\n }\n ],\n itemContent: 'p-menubar-item-content',\n itemLink: 'p-menubar-item-link',\n itemIcon: 'p-menubar-item-icon',\n itemLabel: 'p-menubar-item-label',\n submenuIcon: 'p-menubar-submenu-icon',\n submenu: 'p-menubar-submenu',\n separator: 'p-menubar-separator',\n end: 'p-menubar-end'\n};\n\nexport default BaseStyle.extend({\n name: 'menubar',\n style,\n classes,\n inlineStyles\n});\n"],"names":["inlineStyles","submenu","_ref","instance","processedItem","display","isItemActive","classes","root","_ref2","queryMatches","mobileActive","start","button","rootList","item","_ref3","isItemFocused","isItemDisabled","itemContent","itemLink","itemIcon","itemLabel","submenuIcon","separator","end","BaseStyle","extend","name","style"],"mappings":";;;AAGA,IAAMA,YAAY,GAAG;AACjBC,EAAAA,OAAO,EAAE,SAATA,OAAOA,CAAAC,IAAA,EAAA;AAAA,IAAA,IAAKC,QAAQ,GAAAD,IAAA,CAARC,QAAQ;MAAEC,aAAa,GAAAF,IAAA,CAAbE,a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