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
40 lines (37 loc) • 1.21 kB
JavaScript
import { style } from '@primeuix/styles/image';
import BaseStyle from '@primevue/core/base/style';
var classes = {
root: function root(_ref) {
var props = _ref.props;
return ['p-image p-component', {
'p-image-preview': props.preview
}];
},
previewMask: 'p-image-preview-mask',
previewIcon: 'p-image-preview-icon',
mask: 'p-image-mask p-overlay-mask p-overlay-mask-enter',
toolbar: 'p-image-toolbar',
rotateRightButton: 'p-image-action p-image-rotate-right-button',
rotateLeftButton: 'p-image-action p-image-rotate-left-button',
zoomOutButton: function zoomOutButton(_ref2) {
var instance = _ref2.instance;
return ['p-image-action p-image-zoom-out-button', {
'p-disabled': instance.isZoomOutDisabled
}];
},
zoomInButton: function zoomInButton(_ref3) {
var instance = _ref3.instance;
return ['p-image-action p-image-zoom-in-button', {
'p-disabled': instance.isZoomInDisabled
}];
},
closeButton: 'p-image-action p-image-close-button',
original: 'p-image-original'
};
var ImageStyle = BaseStyle.extend({
name: 'image',
style: style,
classes: classes
});
export { ImageStyle as default };
//# sourceMappingURL=index.mjs.map