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
41 lines (35 loc) • 3.01 kB
JavaScript
'use strict';
var BaseStyle = require('primevue/base/style');
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
var BaseStyle__default = /*#__PURE__*/_interopDefaultLegacy(BaseStyle);
var css = "\n@layer primevue {\n .p-confirm-popup {\n position: absolute;\n margin-top: 10px;\n top: 0;\n left: 0;\n }\n\n .p-confirm-popup-flipped {\n margin-top: 0;\n margin-bottom: 10px;\n }\n\n /* Animation */\n .p-confirm-popup-enter-from {\n opacity: 0;\n transform: scaleY(0.8);\n }\n\n .p-confirm-popup-leave-to {\n opacity: 0;\n }\n\n .p-confirm-popup-enter-active {\n transition: transform 0.12s cubic-bezier(0, 0, 0.2, 1), opacity 0.12s cubic-bezier(0, 0, 0.2, 1);\n }\n\n .p-confirm-popup-leave-active {\n transition: opacity 0.1s linear;\n }\n\n .p-confirm-popup:after,\n .p-confirm-popup:before {\n bottom: 100%;\n left: calc(var(--overlayArrowLeft, 0) + 1.25rem);\n content: ' ';\n height: 0;\n width: 0;\n position: absolute;\n pointer-events: none;\n }\n\n .p-confirm-popup:after {\n border-width: 8px;\n margin-left: -8px;\n }\n\n .p-confirm-popup:before {\n border-width: 10px;\n margin-left: -10px;\n }\n\n .p-confirm-popup-flipped:after,\n .p-confirm-popup-flipped:before {\n bottom: auto;\n top: 100%;\n }\n\n .p-confirm-popup.p-confirm-popup-flipped:after {\n border-bottom-color: transparent;\n }\n\n .p-confirm-popup.p-confirm-popup-flipped:before {\n border-bottom-color: transparent;\n }\n\n .p-confirm-popup .p-confirm-popup-content {\n display: flex;\n align-items: center;\n }\n}\n";
var classes = {
root: function root(_ref) {
var instance = _ref.instance;
return ['p-confirm-popup p-component', {
'p-input-filled': instance.$primevue.config.inputStyle === 'filled',
'p-ripple-disabled': instance.$primevue.config.ripple === false
}];
},
content: 'p-confirm-popup-content',
icon: function icon(_ref2) {
var instance = _ref2.instance;
return ['p-confirm-popup-icon', instance.confirmation ? instance.confirmation.icon : null];
},
message: 'p-confirm-popup-message',
footer: 'p-confirm-popup-footer',
rejectButton: function rejectButton(_ref3) {
var instance = _ref3.instance;
return ['p-confirm-popup-reject', instance.confirmation && !instance.confirmation.rejectClass ? 'p-button-sm p-button-text' : null];
},
acceptButton: function acceptButton(_ref4) {
var instance = _ref4.instance;
return ['p-confirm-popup-accept', instance.confirmation && !instance.confirmation.acceptClass ? 'p-button-sm' : null];
}
};
var ConfirmPopupStyle = BaseStyle__default["default"].extend({
name: 'confirmpopup',
css: css,
classes: classes
});
module.exports = ConfirmPopupStyle;