@coveord/plasma-mantine
Version:
A Plasma flavoured Mantine theme
33 lines (32 loc) • 1.1 kB
JavaScript
import { jsx as _jsx } from "react/jsx-runtime";
import { IconList } from '@coveord/plasma-react-icons';
import { useProps, useStyles } from '@mantine/core';
import { identity } from '../../../../utils/createFactoryComponent.js';
import classes from './RowLayout.module.css';
import { RowLayoutBody } from './RowLayoutBody.js';
import { RowLayoutProvider } from './RowLayoutContext.js';
import { RowLayoutHeader } from './RowLayoutHeader.js';
const defaultProps = {};
export const RowLayout = (props)=>{
const { children, styles, classNames, unstyled } = useProps('PlasmaRowLayout', defaultProps, props);
const getStyles = useStyles({
name: 'PlasmaRowLayout',
classes,
props,
styles,
classNames,
unstyled
});
return /*#__PURE__*/ _jsx(RowLayoutProvider, {
value: {
getStyles
},
children: children
});
};
RowLayout.Body = RowLayoutBody;
RowLayout.Header = RowLayoutHeader;
RowLayout.Icon = IconList;
RowLayout.displayName = 'Rows';
RowLayout.extend = identity;
//# sourceMappingURL=RowLayout.js.map