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 • 4.77 kB
Source Map (JSON)
{"version":3,"file":"index.mjs","sources":["../../../src/toast/style/ToastStyle.js"],"sourcesContent":["import { style } from '@primeuix/styles/toast';\nimport BaseStyle from '@primevue/core/base/style';\n\n// Position\nconst inlineStyles = {\n root: ({ position }) => ({\n position: 'fixed',\n top: position === 'top-right' || position === 'top-left' || position === 'top-center' ? '20px' : position === 'center' ? '50%' : null,\n right: (position === 'top-right' || position === 'bottom-right') && '20px',\n bottom: (position === 'bottom-left' || position === 'bottom-right' || position === 'bottom-center') && '20px',\n left: position === 'top-left' || position === 'bottom-left' ? '20px' : position === 'center' || position === 'top-center' || position === 'bottom-center' ? '50%' : null\n })\n};\n\nconst classes = {\n root: ({ props }) => ['p-toast p-component p-toast-' + props.position],\n message: ({ props }) => [\n 'p-toast-message',\n {\n 'p-toast-message-info': props.message.severity === 'info' || props.message.severity === undefined,\n 'p-toast-message-warn': props.message.severity === 'warn',\n 'p-toast-message-error': props.message.severity === 'error',\n 'p-toast-message-success': props.message.severity === 'success',\n 'p-toast-message-secondary': props.message.severity === 'secondary',\n 'p-toast-message-contrast': props.message.severity === 'contrast'\n }\n ],\n messageContent: 'p-toast-message-content',\n messageIcon: ({ props }) => [\n 'p-toast-message-icon',\n {\n [props.infoIcon]: props.message.severity === 'info',\n [props.warnIcon]: props.message.severity === 'warn',\n [props.errorIcon]: props.message.severity === 'error',\n [props.successIcon]: props.message.severity === 'success'\n }\n ],\n messageText: 'p-toast-message-text',\n summary: 'p-toast-summary',\n detail: 'p-toast-detail',\n closeButton: 'p-toast-close-button',\n closeIcon: 'p-toast-close-icon'\n};\n\nexport default BaseStyle.extend({\n name: 'toast',\n style,\n classes,\n inlineStyles\n});\n"],"names":["inlineStyles","root","_ref","position","top","right","bottom","left","classes","_ref2","props","message","_ref3","severity","undefined","messageContent","messageIcon","_ref4","_defineProperty","infoIcon","warnIcon","errorIcon","successIcon","messageText","summary","detail","closeButton","closeIcon","BaseStyle","extend","name","style"],"mappings":";;;;;;;;AAGA;AACA,IAAMA,YAAY,GAAG;AACjBC,EAAAA,IAAI,EAAE,SAANA,IAAIA,CAAAC,IAAA,EAAA;AAAA,IAAA,IAAKC,QAAQ,GAAAD,IAAA,CAARC,QAAQ;IAAA,OAAQ;AACrBA,MAAAA,QAAQ,EAAE,OAAO;MACjBC,GAAG,EAAED,QAAQ,KAAK,WAAW,IAAIA,QAAQ,KAAK,UAAU,IAAIA,QAAQ,KAAK,YAAY,GAAG,MAAM,GAAGA,QAAQ,KAAK,QAAQ,GAAG,KAAK,GAAG,IAAI;MACrIE,KAAK,EAAE,CAACF,QAAQ,KAAK,WAAW,IAAIA,QAAQ,KAAK,cAAc,KAAK,MAAM;AAC1EG,MAAAA,MAAM,EAAE,CAACH,QAAQ,KAAK,aAAa,IAAIA,QAAQ,KAAK,cAAc,IAAIA,QAAQ,KAAK,eAAe,KAAK,MAAM;MAC7GI,IAAI,EAAEJ,QAAQ,KAAK,UAAU,IAAIA,QAAQ,KAAK,aAAa,GAAG,MAAM,GAAGA,QAAQ,KAAK,QAAQ,IAAIA,QAAQ,KAAK,YAAY,IAAIA,QAAQ,KAAK,eAAe,GAAG,KAAK,GAAG;KACvK;AAAA;AACL,CAAC;AAED,IAAMK,OAAO,GAAG;AACZP,EAAAA,IAAI,EAAE,SAANA,IAAIA,CAAAQ,KAAA,EAAA;AAAA,IAAA,IAAKC,KAAK,GAAAD,KAAA,CAALC,KAAK;AAAA,IAAA,OAAO,CAAC,8BAA8B,GAAGA,KAAK,CAACP,QAAQ,CAAC;AAAA,GAAA;AACtEQ,EAAAA,OAAO,EAAE,SAATA,OAAOA,CAAAC,KAAA,EAAA;AAAA,IAAA,IAAKF,KAAK,GAAAE,KAAA,CAALF,KAAK;IAAA,OAAO,CACpB,iBAAiB,EACjB;AACI,MAAA,sB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