@adaptabletools/adaptable
Version:
Powerful AG Grid extension which provides advanced, cutting-edge functionality to meet all DataGrid requirements
12 lines (11 loc) • 783 B
JavaScript
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
import { PanelWithRow } from '../Panels/PanelWithRow';
import { cn } from '../../../lib/utils';
import { Box } from '../../../components/Flex';
import { twMerge } from '../../../twMerge';
export const AdaptableObjectCollection = (props) => {
return (_jsxs(Box, { style: props.style, className: twMerge('ab-ObjectCollection twa:flex twa:flex-col', props.className), children: [_jsx(PanelWithRow, { border: "none", colItems: props.colItems }), _jsx("div", { className: cn('ab-ObjectCollection__items twa:shadow-none twa:flex-1', {
'twa:overflow-y-visible': props.allowOverflow,
'twa:overflow-y-auto': !props.allowOverflow,
}), children: props.items })] }));
};