UNPKG

@coveord/plasma-mantine

Version:

A Plasma flavoured Mantine theme

44 lines (43 loc) 1.75 kB
"use strict"; 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 _plasmareacticons = require("@coveord/plasma-react-icons"); var _core = require("@mantine/core"); var _createFactoryComponent = require("../../../../utils/createFactoryComponent.js"); var _RowLayoutmodulecss = /*#__PURE__*/ _interop_require_default._(require("./RowLayout.module.css")); var _RowLayoutBody = require("./RowLayoutBody.js"); var _RowLayoutContext = require("./RowLayoutContext.js"); var _RowLayoutHeader = require("./RowLayoutHeader.js"); var defaultProps = {}; var RowLayout = function RowLayout(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 = _plasmareacticons.IconList; RowLayout.displayName = 'Rows'; RowLayout.extend = _createFactoryComponent.identity; //# sourceMappingURL=RowLayout.js.map