@coveord/plasma-mantine
Version:
A Plasma flavoured Mantine theme
44 lines (43 loc) • 1.66 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "RowLayout", {
enumerable: true,
get: function() {
return RowLayout;
}
});
var _interop_require_default = require("@swc/helpers/_/_interop_require_default");
var _jsxruntime = require("react/jsx-runtime");
var _core = require("@mantine/core");
var _utils = require("../../../../utils");
var _RowLayoutmodulecss = /*#__PURE__*/ _interop_require_default._(require("./RowLayout.module.css"));
var _RowLayoutBody = require("./RowLayoutBody");
var _RowLayoutContext = require("./RowLayoutContext");
var _RowLayoutHeader = require("./RowLayoutHeader");
var _RowLayoutIcon = require("./RowLayoutIcon");
var defaultProps = {};
var RowLayout = function(props) {
var _useProps = (0, _core.useProps)('PlasmaRowLayout', defaultProps, props), children = _useProps.children, styles = _useProps.styles, classNames = _useProps.classNames, unstyled = _useProps.unstyled;
var getStyles = (0, _core.useStyles)({
name: 'PlasmaRowLayout',
classes: _RowLayoutmodulecss.default,
props: props,
styles: styles,
classNames: classNames,
unstyled: unstyled
});
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_RowLayoutContext.RowLayoutProvider, {
value: {
getStyles: getStyles
},
children: children
});
};
RowLayout.Body = _RowLayoutBody.RowLayoutBody;
RowLayout.Header = _RowLayoutHeader.RowLayoutHeader;
RowLayout.Icon = _RowLayoutIcon.RowLayoutIcon;
RowLayout.displayName = 'Rows';
RowLayout.extend = _utils.identity;
//# sourceMappingURL=RowLayout.js.map