UNPKG

jobiqo-cl

Version:

[![CircleCI](https://circleci.com/gh/jobiqo/jobiqo-cl.svg?style=svg&circle-token=5a24efa5b8bbc4879276123e77d0d3f35ca7144c)](https://circleci.com/gh/jobiqo/jobiqo-cl)

43 lines (37 loc) 1.51 kB
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } var tslib_es6 = require('../../../../../../node_modules/tslib/tslib.es6.js'); var React = require('react'); var React__default = _interopDefault(React); var styled = require('styled-components'); var styled__default = _interopDefault(styled); var index_esm$9 = require('../../../../../../node_modules/@styled-system/space/dist/index.esm.js'); var index_esm$1 = require('../../../../../../node_modules/styled-system/dist/index.esm.js'); /** * Component that maps directly to CSS grid properties using styled-system. */ const StyledCell = styled__default.div ` ${index_esm$1.gridRow}; ${index_esm$1.gridArea}; ${index_esm$1.gridRowGap}; ${index_esm$1.gridColumn}; ${index_esm$1.gridColumnGap}; ${index_esm$1.width}; ${index_esm$1.height}; ${index_esm$9.space}; ${index_esm$1.textAlign}; ${index_esm$1.alignItems}; ${index_esm$1.justifyItems}; ${index_esm$1.justifyContent}; `; /** * A Cell is a child of the Grid Component. It allows items to be specifically displayed in one or multiple * cells of a grid. It maps directly to the CSS Grid spec. */ const Cell = (_a) => { var { children } = _a, props = tslib_es6.__rest(_a, ["children"]); return React__default.createElement(StyledCell, Object.assign({}, props), children); }; exports.Cell = Cell; exports.default = Cell;