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

42 lines (39 loc) 1.61 kB
import { style } from '@primeuix/styles/divider'; import BaseStyle from '@primevue/core/base/style'; /* Position */ var inlineStyles = { root: function root(_ref) { var props = _ref.props; return { justifyContent: props.layout === 'horizontal' ? props.align === 'center' || props.align === null ? 'center' : props.align === 'left' ? 'flex-start' : props.align === 'right' ? 'flex-end' : null : null, alignItems: props.layout === 'vertical' ? props.align === 'center' || props.align === null ? 'center' : props.align === 'top' ? 'flex-start' : props.align === 'bottom' ? 'flex-end' : null : null }; } }; var classes = { root: function root(_ref2) { var props = _ref2.props; return ['p-divider p-component', 'p-divider-' + props.layout, 'p-divider-' + props.type, { 'p-divider-left': props.layout === 'horizontal' && (!props.align || props.align === 'left') }, { 'p-divider-center': props.layout === 'horizontal' && props.align === 'center' }, { 'p-divider-right': props.layout === 'horizontal' && props.align === 'right' }, { 'p-divider-top': props.layout === 'vertical' && props.align === 'top' }, { 'p-divider-center': props.layout === 'vertical' && (!props.align || props.align === 'center') }, { 'p-divider-bottom': props.layout === 'vertical' && props.align === 'bottom' }]; }, content: 'p-divider-content' }; var DividerStyle = BaseStyle.extend({ name: 'divider', style: style, classes: classes, inlineStyles: inlineStyles }); export { DividerStyle as default }; //# sourceMappingURL=index.mjs.map