@chayns-components/core
Version:
A set of beautiful React components for developing your own applications with chayns.
41 lines (40 loc) • 1.78 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.StyledScrollView = void 0;
var _styledComponents = _interopRequireWildcard(require("styled-components"));
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
const StyledScrollView = exports.StyledScrollView = _styledComponents.default.div`
${({
$maxHeight
}) => $maxHeight && (0, _styledComponents.css)`
max-height: ${typeof $maxHeight === 'number' ? `${$maxHeight}px` : $maxHeight};
`}
${({
$height
}) => $height && (0, _styledComponents.css)`
height: ${typeof $height === 'number' ? `${$height}px` : $height};
`}
${({
$maxWidth
}) => $maxWidth && (0, _styledComponents.css)`
max-width: ${typeof $maxWidth === 'number' ? `${$maxWidth}px` : $maxWidth};
`}
${({
$width
}) => $width && (0, _styledComponents.css)`
width: ${typeof $width === 'number' ? `${$width}px` : $width};
`}
${({
$overflowX
}) => (0, _styledComponents.css)`
overflow-x: ${$overflowX};
`}
${({
$overflowY
}) => (0, _styledComponents.css)`
overflow-y: ${$overflowY};
`}
`;
//# sourceMappingURL=ScrollView.styles.js.map