robust-react-ui
Version:
A React component library, built with a focus on accessibility, extensibility and reusability.
29 lines (24 loc) • 1.11 kB
JavaScript
;
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
var React = require('react');
var React__default = _interopDefault(React);
var index = require('../../../utils/getClassNames/index.js');
var index$1 = require('../GridItem/index.js');
// Generated with util/create-component.js
var Grid = function (_a) {
var _b;
var children = _a.children, _c = _a.gap, gap = _c === void 0 ? 's' : _c, _d = _a.type, type = _d === void 0 ? 'fixed' : _d;
return (React__default.createElement("div", { "data-testid": "Grid", className: index((_b = {
'rrui-grid': true
},
_b["rrui-grid--" + type] = true,
_b['rrui-grid--gap-xxs'] = gap === 'xxs',
_b['rrui-grid--gap-xs'] = gap === 'xs',
_b['rrui-grid--gap-s'] = gap === 's',
_b['rrui-grid--gap-m'] = gap === 'm',
_b['rrui-grid--gap-l'] = gap === 'l',
_b)) }, children));
};
Grid.GridItem = index$1;
module.exports = Grid;
//# sourceMappingURL=Grid.js.map