UNPKG

@wulperstudio/cms

Version:
32 lines (31 loc) 907 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.WrapperComponent = exports.SnapCenter = void 0; var _material = require("@mui/material"); var WrapperComponent = exports.WrapperComponent = (0, _material.styled)('div', { shouldForwardProp: function shouldForwardProp(prop) { return prop !== 'type'; } })(function (_ref) { var type = _ref.type; return { display: 'flex', flexDirection: type === 'horizontal' ? 'row' : 'column', flexWrap: 'nowrap', gap: 10, width: '100%', maxWidth: '100%', overflowX: type === 'horizontal' ? 'auto' : undefined, height: 'auto', maxHeight: '100%', overflowY: type === 'vertical' ? 'auto' : undefined, padding: '15px 0px', scrollSnapType: 'x mandatory' }; }); var SnapCenter = exports.SnapCenter = (0, _material.styled)('div')({ scrollSnapAlign: 'center', flexShrink: 0 });