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.7 kB
Source Map (JSON)
{"version":3,"file":"index.mjs","sources":["../../../src/drawer/style/DrawerStyle.js"],"sourcesContent":["import { style } from '@primeuix/styles/drawer';\nimport BaseStyle from '@primevue/core/base/style';\n\nconst inlineStyles = {\n mask: ({ position, modal }) => ({\n position: 'fixed',\n height: '100%',\n width: '100%',\n left: 0,\n top: 0,\n display: 'flex',\n justifyContent: position === 'left' ? 'flex-start' : position === 'right' ? 'flex-end' : 'center',\n alignItems: position === 'top' ? 'flex-start' : position === 'bottom' ? 'flex-end' : 'center',\n pointerEvents: modal ? 'auto' : 'none'\n }),\n root: {\n pointerEvents: 'auto'\n }\n};\n\nconst classes = {\n mask: ({ instance, props }) => {\n const positions = ['left', 'right', 'top', 'bottom'];\n const pos = positions.find((item) => item === props.position);\n\n return [\n 'p-drawer-mask',\n {\n 'p-overlay-mask p-overlay-mask-enter': props.modal,\n 'p-drawer-open': instance.containerVisible,\n 'p-drawer-full': instance.fullScreen\n },\n pos ? `p-drawer-${pos}` : ''\n ];\n },\n root: ({ instance }) => [\n 'p-drawer p-component',\n {\n 'p-drawer-full': instance.fullScreen\n }\n ],\n header: 'p-drawer-header',\n title: 'p-drawer-title',\n pcCloseButton: 'p-drawer-close-button',\n content: 'p-drawer-content',\n footer: 'p-drawer-footer'\n};\n\nexport default BaseStyle.extend({\n name: 'drawer',\n style,\n classes,\n inlineStyles\n});\n"],"names":["inlineStyles","mask","_ref","position","modal","height","width","left","top","display","justifyContent","alignItems","pointerEvents","root","classes","_ref2","instance","props","positions","pos","find","item","containerVisible","fullScreen","concat","_ref3","header","title","pcCloseButton","content","footer","BaseStyle","extend","name","style"],"mappings":";;;AAGA,IAAMA,YAAY,GAAG;AACjBC,EAAAA,IAAI,EAAE,SAANA,IAAIA,CAAAC,IAAA,EAAA;A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